@regulaforensics/idv-capture-web 3.2.258-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 +12 -12
- package/dist/main.js +366 -361
- 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
|
|
@@ -113,7 +113,7 @@ const { is: $l, defineProperty: Bl, getOwnPropertyDescriptor: Hl, getOwnProperty
|
|
|
113
113
|
} }, to = (t, e) => !$l(t, e), jo = { attribute: !0, type: String, converter: Mn, reflect: !1, useDefault: !1, hasChanged: to };
|
|
114
114
|
var js, zs;
|
|
115
115
|
(js = Symbol.metadata) != null || (Symbol.metadata = Symbol("metadata")), (zs = qt.litPropertyMetadata) != null || (qt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
116
|
-
let
|
|
116
|
+
let mr = class extends HTMLElement {
|
|
117
117
|
static addInitializer(e) {
|
|
118
118
|
var r;
|
|
119
119
|
this._$Ei(), ((r = this.l) != null ? r : this.l = []).push(e);
|
|
@@ -324,7 +324,7 @@ let _r = class extends HTMLElement {
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
var Ks;
|
|
327
|
-
|
|
327
|
+
mr.elementStyles = [], mr.shadowRootOptions = { mode: "open" }, mr[kr("elementProperties")] = /* @__PURE__ */ new Map(), mr[kr("finalized")] = /* @__PURE__ */ new Map(), Si == null || Si({ ReactiveElement: mr }), ((Ks = qt.reactiveElementVersions) != null ? Ks : qt.reactiveElementVersions = []).push("2.1.1");
|
|
328
328
|
/**
|
|
329
329
|
* @license
|
|
330
330
|
* Copyright 2017 Google LLC
|
|
@@ -332,7 +332,7 @@ _r.elementStyles = [], _r.shadowRootOptions = { mode: "open" }, _r[kr("elementPr
|
|
|
332
332
|
*/
|
|
333
333
|
const Nr = globalThis, Pn = Nr.trustedTypes, zo = Pn ? Pn.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Js = "$lit$", Gt = `lit$${Math.random().toFixed(9).slice(2)}$`, Xs = "?" + Gt, Gl = `<${Xs}>`, lr = document, Hr = () => lr.createComment(""), Wr = (t) => t === null || typeof t != "object" && typeof t != "function", ro = Array.isArray, ql = (t) => ro(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Ei = `[
|
|
334
334
|
\f\r]`, Ir = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ko = /-->/g, Go = />/g, Qt = RegExp(`>|${Ei}(?:([^\\s"'>=/]+)(${Ei}*=${Ei}*(?:[^
|
|
335
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), qo = /'/g, Zo = /"/g, Qs = /^(?:script|style|textarea|title)$/i, Zl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), Ti = Zl(1),
|
|
335
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), qo = /'/g, Zo = /"/g, Qs = /^(?:script|style|textarea|title)$/i, Zl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), Ti = Zl(1), yr = Symbol.for("lit-noChange"), ke = Symbol.for("lit-nothing"), Yo = /* @__PURE__ */ new WeakMap(), or = lr.createTreeWalker(lr, 129);
|
|
336
336
|
function ea(t, e) {
|
|
337
337
|
if (!ro(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
338
338
|
return zo !== void 0 ? zo.createHTML(e) : e;
|
|
@@ -386,12 +386,12 @@ let $i = class ta {
|
|
|
386
386
|
return n.innerHTML = e, n;
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
|
-
function
|
|
389
|
+
function br(t, e, r = t, n) {
|
|
390
390
|
var s, a, l;
|
|
391
|
-
if (e ===
|
|
391
|
+
if (e === yr) return e;
|
|
392
392
|
let i = n !== void 0 ? (s = r._$Co) == null ? void 0 : s[n] : r._$Cl;
|
|
393
393
|
const o = Wr(e) ? void 0 : e._$litDirective$;
|
|
394
|
-
return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(t), i._$AT(t, r, n)), n !== void 0 ? ((l = r._$Co) != null ? l : r._$Co = [])[n] = i : r._$Cl = i), i !== void 0 && (e =
|
|
394
|
+
return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(t), i._$AT(t, r, n)), n !== void 0 ? ((l = r._$Co) != null ? l : r._$Co = [])[n] = i : r._$Cl = i), i !== void 0 && (e = br(t, i._$AS(t, e.values), i, n)), e;
|
|
395
395
|
}
|
|
396
396
|
let Jl = class {
|
|
397
397
|
constructor(e, r) {
|
|
@@ -442,7 +442,7 @@ let Jl = class {
|
|
|
442
442
|
return this._$AB;
|
|
443
443
|
}
|
|
444
444
|
_$AI(e, r = this) {
|
|
445
|
-
e =
|
|
445
|
+
e = br(this, e, r), Wr(e) ? e === ke || e == null || e === "" ? (this._$AH !== ke && this._$AR(), this._$AH = ke) : e !== this._$AH && e !== yr && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ql(e) ? this.k(e) : this._(e);
|
|
446
446
|
}
|
|
447
447
|
O(e) {
|
|
448
448
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -497,11 +497,11 @@ let Jl = class {
|
|
|
497
497
|
_$AI(e, r = this, n, i) {
|
|
498
498
|
const o = this.strings;
|
|
499
499
|
let s = !1;
|
|
500
|
-
if (o === void 0) e =
|
|
500
|
+
if (o === void 0) e = br(this, e, r, 0), s = !Wr(e) || e !== this._$AH && e !== yr, s && (this._$AH = e);
|
|
501
501
|
else {
|
|
502
502
|
const a = e;
|
|
503
503
|
let l, d;
|
|
504
|
-
for (e = o[0], l = 0; l < o.length - 1; l++) d =
|
|
504
|
+
for (e = o[0], l = 0; l < o.length - 1; l++) d = br(this, a[n + l], r, l), d === yr && (d = this._$AH[l]), s || (s = !Wr(d) || d !== this._$AH[l]), d === ke ? e = ke : e !== ke && (e += (d != null ? d : "") + o[l + 1]), this._$AH[l] = d;
|
|
505
505
|
}
|
|
506
506
|
s && !i && this.j(e);
|
|
507
507
|
}
|
|
@@ -528,7 +528,7 @@ let Jl = class {
|
|
|
528
528
|
}
|
|
529
529
|
_$AI(e, r = this) {
|
|
530
530
|
var s;
|
|
531
|
-
if ((e = (s =
|
|
531
|
+
if ((e = (s = br(this, e, r, 0)) != null ? s : ke) === yr) return;
|
|
532
532
|
const n = this._$AH, i = e === ke && n !== ke || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, o = e !== ke && (n === ke || i);
|
|
533
533
|
i && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
534
534
|
}
|
|
@@ -544,7 +544,7 @@ let Jl = class {
|
|
|
544
544
|
return this._$AM._$AU;
|
|
545
545
|
}
|
|
546
546
|
_$AI(e) {
|
|
547
|
-
|
|
547
|
+
br(this, e);
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
550
|
const Oi = Nr.litHtmlPolyfillSupport;
|
|
@@ -566,7 +566,7 @@ const rc = (t, e, r) => {
|
|
|
566
566
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
567
567
|
*/
|
|
568
568
|
const ar = globalThis;
|
|
569
|
-
let Dr = class extends
|
|
569
|
+
let Dr = class extends mr {
|
|
570
570
|
constructor() {
|
|
571
571
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
572
572
|
}
|
|
@@ -588,7 +588,7 @@ let Dr = class extends _r {
|
|
|
588
588
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
589
589
|
}
|
|
590
590
|
render() {
|
|
591
|
-
return
|
|
591
|
+
return yr;
|
|
592
592
|
}
|
|
593
593
|
};
|
|
594
594
|
var qs;
|
|
@@ -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) => {
|
|
@@ -789,10 +789,10 @@ function We(t) {
|
|
|
789
789
|
function ht(t, e) {
|
|
790
790
|
this.props = t, this.context = e;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
793
|
-
if (e == null) return t.__ ?
|
|
792
|
+
function Cr(t, e) {
|
|
793
|
+
if (e == null) return t.__ ? Cr(t.__, t.__i + 1) : null;
|
|
794
794
|
for (var r; e < t.__k.length; e++) if ((r = t.__k[e]) != null && r.__e != null) return r.__e;
|
|
795
|
-
return typeof t.type == "function" ?
|
|
795
|
+
return typeof t.type == "function" ? Cr(t) : null;
|
|
796
796
|
}
|
|
797
797
|
function fa(t) {
|
|
798
798
|
var e, r;
|
|
@@ -808,7 +808,7 @@ function ji(t) {
|
|
|
808
808
|
(!t.__d && (t.__d = !0) && rr.push(t) && !Vn.__r++ || Xo != se.debounceRendering) && ((Xo = se.debounceRendering) || sa)(Vn);
|
|
809
809
|
}
|
|
810
810
|
function Vn() {
|
|
811
|
-
for (var t, e, r, n, i, o, s, a = 1; rr.length; ) rr.length > a && rr.sort(aa), t = rr.shift(), a = rr.length, t.__d && (r = void 0, n = void 0, i = (n = (e = t).__v).__e, o = [], s = [], e.__P && ((r = gt({}, n)).__v = n.__v + 1, se.vnode && se.vnode(r), so(e.__P, r, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [i] : null, o, i == null ?
|
|
811
|
+
for (var t, e, r, n, i, o, s, a = 1; rr.length; ) rr.length > a && rr.sort(aa), t = rr.shift(), a = rr.length, t.__d && (r = void 0, n = void 0, i = (n = (e = t).__v).__e, o = [], s = [], e.__P && ((r = gt({}, n)).__v = n.__v + 1, se.vnode && se.vnode(r), so(e.__P, r, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [i] : null, o, i == null ? Cr(n) : i, !!(32 & n.__u), s), r.__v = n.__v, r.__.__k[r.__i] = r, _a(o, r, s), n.__e = n.__ = null, r.__e != i && fa(r)));
|
|
812
812
|
Vn.__r = 0;
|
|
813
813
|
}
|
|
814
814
|
function ha(t, e, r, n, i, o, s, a, l, d, p) {
|
|
@@ -819,7 +819,7 @@ function ha(t, e, r, n, i, o, s, a, l, d, p) {
|
|
|
819
819
|
function mc(t, e, r, n, i) {
|
|
820
820
|
var o, s, a, l, d, p = r.length, h = p, c = 0;
|
|
821
821
|
for (t.__k = new Array(i), o = 0; o < i; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (l = o + c, (s = t.__k[o] = typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? Pr(null, s, null, null, null) : Gr(s) ? Pr(We, { children: s }, null, null, null) : s.constructor == null && s.__b > 0 ? Pr(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : s).__ = t, s.__b = t.__b + 1, a = null, (d = s.__i = gc(s, r, l, h)) != -1 && (h--, (a = r[d]) && (a.__u |= 2)), a == null || a.__v == null ? (d == -1 && (i > p ? c-- : i < p && c++), typeof s.type != "function" && (s.__u |= 4)) : d != l && (d == l - 1 ? c-- : d == l + 1 ? c++ : (d > l ? c-- : c++, s.__u |= 4))) : t.__k[o] = null;
|
|
822
|
-
if (h) for (o = 0; o < p; o++) (a = r[o]) != null && (2 & a.__u) == 0 && (a.__e == n && (n =
|
|
822
|
+
if (h) for (o = 0; o < p; o++) (a = r[o]) != null && (2 & a.__u) == 0 && (a.__e == n && (n = Cr(a)), ga(a, a));
|
|
823
823
|
return n;
|
|
824
824
|
}
|
|
825
825
|
function pa(t, e, r, n) {
|
|
@@ -828,7 +828,7 @@ function pa(t, e, r, n) {
|
|
|
828
828
|
for (i = t.__k, o = 0; i && o < i.length; o++) i[o] && (i[o].__ = t, e = pa(i[o], e, r, n));
|
|
829
829
|
return e;
|
|
830
830
|
}
|
|
831
|
-
t.__e != e && (n && (e && t.type && !e.parentNode && (e =
|
|
831
|
+
t.__e != e && (n && (e && t.type && !e.parentNode && (e = Cr(t)), r.insertBefore(t.__e, e || null)), e = t.__e);
|
|
832
832
|
do
|
|
833
833
|
e = e && e.nextSibling;
|
|
834
834
|
while (e != null && e.nodeType == 8);
|
|
@@ -959,7 +959,7 @@ function wc(t, e, r, n, i, o, s, a, l) {
|
|
|
959
959
|
}
|
|
960
960
|
for (d in S) g = S[d], d == "children" ? c = g : d == "dangerouslySetInnerHTML" ? p = g : d == "value" ? w = g : d == "checked" ? f = g : a && typeof g != "function" || m[d] === g || xn(t, d, g, m[d], i);
|
|
961
961
|
if (p) a || h && (p.__html == h.__html || p.__html == t.innerHTML) || (t.innerHTML = p.__html), e.__k = [];
|
|
962
|
-
else if (h && (t.innerHTML = ""), ha(e.type == "template" ? t.content : t, Gr(c) ? c : [c], e, r, n, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, o, s, o ? o[0] : r.__k &&
|
|
962
|
+
else if (h && (t.innerHTML = ""), ha(e.type == "template" ? t.content : t, Gr(c) ? c : [c], e, r, n, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, o, s, o ? o[0] : r.__k && Cr(r, 0), a, l), o != null) for (d = o.length; d--; ) oo(o[d]);
|
|
963
963
|
a || (d = "value", C == "progress" && w == null ? t.removeAttribute("value") : w != null && (w !== t[d] || C == "progress" && !w || C == "option" && w != m[d]) && xn(t, d, w, m[d], i), d = "checked", f != null && f != t[d] && xn(t, d, f, m[d], i));
|
|
964
964
|
}
|
|
965
965
|
return t;
|
|
@@ -990,12 +990,12 @@ function ga(t, e, r) {
|
|
|
990
990
|
function vc(t, e, r) {
|
|
991
991
|
return this.constructor(t, r);
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function cr(t, e, r) {
|
|
994
994
|
var n, i, o, s;
|
|
995
995
|
e == document && (e = document.documentElement), se.__ && se.__(t, e), i = (n = typeof r == "function") ? null : r && r.__k || e.__k, o = [], s = [], so(e, t = (!n && r || e).__k = wt(We, null, [t]), i || jr, jr, e.namespaceURI, !n && r ? [r] : i ? null : e.firstChild ? Kr.call(e.childNodes) : null, o, !n && r ? r : i ? i.__e : e.firstChild, n, s), _a(o, t, s);
|
|
996
996
|
}
|
|
997
997
|
function wa(t, e) {
|
|
998
|
-
|
|
998
|
+
cr(t, e, wa);
|
|
999
999
|
}
|
|
1000
1000
|
function yc(t, e, r) {
|
|
1001
1001
|
var n, i, o, s, a = gt({}, t.props);
|
|
@@ -1041,7 +1041,7 @@ Kr = da.slice, se = { __e: function(t, e, r, n) {
|
|
|
1041
1041
|
return t.__v.__b - e.__v.__b;
|
|
1042
1042
|
}, Vn.__r = 0, la = /(PointerCapture)$|Capture$/i, io = 0, Hi = es(!1), Wi = es(!0), ca = 0;
|
|
1043
1043
|
var $t, be, xi, ts, Sr = 0, va = [], Te = se, rs = Te.__b, ns = Te.__r, is = Te.diffed, os = Te.__c, ss = Te.unmount, as = Te.__;
|
|
1044
|
-
function
|
|
1044
|
+
function dr(t, e) {
|
|
1045
1045
|
Te.__h && Te.__h(be, t, Sr || e), Sr = 0;
|
|
1046
1046
|
var r = be.__H || (be.__H = { __: [], __h: [] });
|
|
1047
1047
|
return t >= r.__.length && r.__.push({}), r.__[t];
|
|
@@ -1050,7 +1050,7 @@ function Me(t) {
|
|
|
1050
1050
|
return Sr = 1, ti(ya, t);
|
|
1051
1051
|
}
|
|
1052
1052
|
function ti(t, e, r) {
|
|
1053
|
-
var n =
|
|
1053
|
+
var n = dr($t++, 2);
|
|
1054
1054
|
if (n.t = t, !n.__c && (n.__ = [r ? r(e) : ya(void 0, e), function(a) {
|
|
1055
1055
|
var l = n.__N ? n.__N[0] : n.__[0], d = n.t(l, a);
|
|
1056
1056
|
l !== d && (n.__N = [d, n.__[1]], n.__c.setState({}));
|
|
@@ -1084,11 +1084,11 @@ function ti(t, e, r) {
|
|
|
1084
1084
|
return n.__N || n.__;
|
|
1085
1085
|
}
|
|
1086
1086
|
function nt(t, e) {
|
|
1087
|
-
var r =
|
|
1087
|
+
var r = dr($t++, 3);
|
|
1088
1088
|
!Te.__s && po(r.__H, e) && (r.__ = t, r.u = e, be.__H.__h.push(r));
|
|
1089
1089
|
}
|
|
1090
1090
|
function Zt(t, e) {
|
|
1091
|
-
var r =
|
|
1091
|
+
var r = dr($t++, 4);
|
|
1092
1092
|
!Te.__s && po(r.__H, e) && (r.__ = t, r.u = e, be.__h.push(r));
|
|
1093
1093
|
}
|
|
1094
1094
|
function it(t) {
|
|
@@ -1110,7 +1110,7 @@ function co(t, e, r) {
|
|
|
1110
1110
|
}, r == null ? r : r.concat(t));
|
|
1111
1111
|
}
|
|
1112
1112
|
function qr(t, e) {
|
|
1113
|
-
var r =
|
|
1113
|
+
var r = dr($t++, 7);
|
|
1114
1114
|
return po(r.__H, e) && (r.__ = t(), r.__H = e, r.__h = t), r.__;
|
|
1115
1115
|
}
|
|
1116
1116
|
function uo(t, e) {
|
|
@@ -1119,14 +1119,14 @@ function uo(t, e) {
|
|
|
1119
1119
|
}, e);
|
|
1120
1120
|
}
|
|
1121
1121
|
function Zr(t) {
|
|
1122
|
-
var e = be.context[t.__c], r =
|
|
1122
|
+
var e = be.context[t.__c], r = dr($t++, 9);
|
|
1123
1123
|
return r.c = t, e ? (r.__ == null && (r.__ = !0, e.sub(be)), e.props.value) : t.__;
|
|
1124
1124
|
}
|
|
1125
1125
|
function fo(t, e) {
|
|
1126
1126
|
Te.useDebugValue && Te.useDebugValue(e ? e(t) : t);
|
|
1127
1127
|
}
|
|
1128
1128
|
function bc(t) {
|
|
1129
|
-
var e =
|
|
1129
|
+
var e = dr($t++, 10), r = Me();
|
|
1130
1130
|
return e.__ = t, be.componentDidCatch || (be.componentDidCatch = function(n, i) {
|
|
1131
1131
|
e.__ && e.__(n, i), r[1](n);
|
|
1132
1132
|
}), [r[0], function() {
|
|
@@ -1134,7 +1134,7 @@ function bc(t) {
|
|
|
1134
1134
|
}];
|
|
1135
1135
|
}
|
|
1136
1136
|
function ho() {
|
|
1137
|
-
var t =
|
|
1137
|
+
var t = dr($t++, 11);
|
|
1138
1138
|
if (!t.__) {
|
|
1139
1139
|
for (var e = be.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__;
|
|
1140
1140
|
var r = e.__m || (e.__m = [0, 0]);
|
|
@@ -1325,7 +1325,7 @@ function xa(t) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
return i.displayName = "Lazy", i.__f = !0, i;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function wr() {
|
|
1329
1329
|
this.i = null, this.l = null;
|
|
1330
1330
|
}
|
|
1331
1331
|
se.unmount = function(t) {
|
|
@@ -1377,7 +1377,7 @@ function Oc(t) {
|
|
|
1377
1377
|
function Ic(t) {
|
|
1378
1378
|
var e = this, r = t.h;
|
|
1379
1379
|
if (e.componentWillUnmount = function() {
|
|
1380
|
-
|
|
1380
|
+
cr(null, e.v), e.v = null, e.h = null;
|
|
1381
1381
|
}, e.h && e.h !== r && e.componentWillUnmount(), !e.v) {
|
|
1382
1382
|
for (var n = e.__v; n !== null && !n.__m && n.__ !== null; ) n = n.__;
|
|
1383
1383
|
e.h = r, e.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: n.__m }, contains: function() {
|
|
@@ -1388,13 +1388,13 @@ function Ic(t) {
|
|
|
1388
1388
|
this.childNodes.splice(this.childNodes.indexOf(i) >>> 1, 1), e.h.removeChild(i);
|
|
1389
1389
|
} };
|
|
1390
1390
|
}
|
|
1391
|
-
|
|
1391
|
+
cr(wt(Oc, { context: e.context }, t.__v), e.v);
|
|
1392
1392
|
}
|
|
1393
1393
|
function Aa(t, e) {
|
|
1394
1394
|
var r = wt(Ic, { __v: t, h: e });
|
|
1395
1395
|
return r.containerInfo = e, r;
|
|
1396
1396
|
}
|
|
1397
|
-
(
|
|
1397
|
+
(wr.prototype = new ht()).__a = function(t) {
|
|
1398
1398
|
var e = this, r = Ia(e.__v), n = e.l.get(t);
|
|
1399
1399
|
return n[0]++, function(i) {
|
|
1400
1400
|
var o = function() {
|
|
@@ -1402,13 +1402,13 @@ function Aa(t, e) {
|
|
|
1402
1402
|
};
|
|
1403
1403
|
r ? r(o) : o();
|
|
1404
1404
|
};
|
|
1405
|
-
},
|
|
1405
|
+
}, wr.prototype.render = function(t) {
|
|
1406
1406
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1407
1407
|
var e = Vt(t.children);
|
|
1408
1408
|
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
|
|
1409
1409
|
for (var r = e.length; r--; ) this.l.set(e[r], this.i = [1, 0, this.i]);
|
|
1410
1410
|
return t.children;
|
|
1411
|
-
},
|
|
1411
|
+
}, wr.prototype.componentDidUpdate = wr.prototype.componentDidMount = function() {
|
|
1412
1412
|
var t = this;
|
|
1413
1413
|
this.l.forEach(function(e, r) {
|
|
1414
1414
|
fs(t, r, e);
|
|
@@ -1418,7 +1418,7 @@ var Ra = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element
|
|
|
1418
1418
|
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
|
|
1419
1419
|
};
|
|
1420
1420
|
function ka(t, e, r) {
|
|
1421
|
-
return e.__k == null && (e.textContent = ""),
|
|
1421
|
+
return e.__k == null && (e.textContent = ""), cr(t, e), typeof r == "function" && r(), t ? t.__c : null;
|
|
1422
1422
|
}
|
|
1423
1423
|
function Na(t, e, r) {
|
|
1424
1424
|
return wa(t, e), typeof r == "function" && r(), t ? t.__c : null;
|
|
@@ -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,11 +1487,11 @@ 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
|
|
1494
|
-
return !!t.__k && (
|
|
1493
|
+
function Ua(t) {
|
|
1494
|
+
return !!t.__k && (cr(null, t), !0);
|
|
1495
1495
|
}
|
|
1496
1496
|
function Va(t) {
|
|
1497
1497
|
return t && (t.base || t.nodeType === 1 && t) || null;
|
|
@@ -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,
|
|
@@ -1509,9 +1509,9 @@ const Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1509
1509
|
PureComponent: $n,
|
|
1510
1510
|
StrictMode: Ha,
|
|
1511
1511
|
Suspense: Fr,
|
|
1512
|
-
SuspenseList:
|
|
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;
|
|
@@ -2207,7 +2207,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2207
2207
|
return bn ? v ? r.createElement(e.Fragment, null, x) : r.createElement("div", k, x) : null;
|
|
2208
2208
|
}, bl = function(_) {
|
|
2209
2209
|
var v = _.renderWithFragment, x = _.children, k = ae(_, ["renderWithFragment", "children"]);
|
|
2210
|
-
return
|
|
2210
|
+
return fr ? v ? r.createElement(e.Fragment, null, x) : r.createElement("div", k, x) : null;
|
|
2211
2211
|
}, Cl = function(_) {
|
|
2212
2212
|
var v = _.renderWithFragment, x = _.children, k = ae(_, ["renderWithFragment", "children"]);
|
|
2213
2213
|
return gn ? v ? r.createElement(e.Fragment, null, x) : r.createElement("div", k, x) : null;
|
|
@@ -2267,7 +2267,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2267
2267
|
}, {
|
|
2268
2268
|
key: "componentDidMount",
|
|
2269
2269
|
value: function() {
|
|
2270
|
-
(typeof window == "undefined" ? "undefined" : m(window)) !== void 0 &&
|
|
2270
|
+
(typeof window == "undefined" ? "undefined" : m(window)) !== void 0 && fr && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
|
|
2271
2271
|
}
|
|
2272
2272
|
}, {
|
|
2273
2273
|
key: "componentWillUnmount",
|
|
@@ -2302,7 +2302,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2302
2302
|
v.orientation !== Ae.orientation && x(Ae);
|
|
2303
2303
|
}, [v.orientation]);
|
|
2304
2304
|
return e.useEffect(function() {
|
|
2305
|
-
return (typeof window == "undefined" ? "undefined" : m(window)) !== void 0 &&
|
|
2305
|
+
return (typeof window == "undefined" ? "undefined" : m(window)) !== void 0 && fr && (k(), window.addEventListener("load", k, !1), window.addEventListener("resize", k, !1)), function() {
|
|
2306
2306
|
window.removeEventListener("resize", k, !1), window.removeEventListener("load", k, !1);
|
|
2307
2307
|
};
|
|
2308
2308
|
}, [k]), v;
|
|
@@ -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,
|
|
@@ -2990,12 +2994,12 @@ const Ft = class Ft extends Ce {
|
|
|
2990
2994
|
};
|
|
2991
2995
|
Ft.MODULE = vt, Ft.ERROR_ENUM_NAME = "WorkflowPlatformError", Ft.SHORT_CODE = "WPE";
|
|
2992
2996
|
let jn = Ft;
|
|
2993
|
-
class
|
|
2997
|
+
class vr {
|
|
2994
2998
|
constructor() {
|
|
2995
2999
|
this.webSocket = null, this.callbacks = /* @__PURE__ */ new Set(), this.connected = !1;
|
|
2996
3000
|
}
|
|
2997
3001
|
static getInstance() {
|
|
2998
|
-
return
|
|
3002
|
+
return vr.instance || (vr.instance = new vr()), vr.instance;
|
|
2999
3003
|
}
|
|
3000
3004
|
isConnected() {
|
|
3001
3005
|
return this.connected;
|
|
@@ -3028,7 +3032,7 @@ class wr {
|
|
|
3028
3032
|
(e = this.webSocket) == null || e.close(), this.webSocket = null, this.connected = !1, this.callbacks.clear();
|
|
3029
3033
|
}
|
|
3030
3034
|
}
|
|
3031
|
-
const dt =
|
|
3035
|
+
const dt = vr.getInstance();
|
|
3032
3036
|
var vd = 0;
|
|
3033
3037
|
function u(t, e, r, n, i, o) {
|
|
3034
3038
|
e || (e = {});
|
|
@@ -3038,7 +3042,7 @@ function u(t, e, r, n, i, o) {
|
|
|
3038
3042
|
if (typeof t == "function" && (s = t.defaultProps)) for (a in s) l[a] === void 0 && (l[a] = s[a]);
|
|
3039
3043
|
return se.vnode && se.vnode(d), d;
|
|
3040
3044
|
}
|
|
3041
|
-
const So = lo(void 0), Ts = ({ perform: t, children: e, setIsProcessingCallback: r }) => /* @__PURE__ */ u(So.Provider, { value: { perform: t, setIsProcessingCallback: r }, children: e }),
|
|
3045
|
+
const So = lo(void 0), Ts = ({ perform: t, children: e, setIsProcessingCallback: r }) => /* @__PURE__ */ u(So.Provider, { value: { perform: t, setIsProcessingCallback: r }, children: e }), ur = () => {
|
|
3042
3046
|
const t = Zr(So);
|
|
3043
3047
|
if (!t)
|
|
3044
3048
|
throw new Error("usePerform must be used within a PerformProvider");
|
|
@@ -3074,7 +3078,7 @@ const So = lo(void 0), Ts = ({ perform: t, children: e, setIsProcessingCallback:
|
|
|
3074
3078
|
ASPECT_FILL: "ASPECT_FILL",
|
|
3075
3079
|
ASPECT_FIT: "ASPECT_FIT",
|
|
3076
3080
|
FILL: "FILL"
|
|
3077
|
-
},
|
|
3081
|
+
}, pr = {
|
|
3078
3082
|
TEXT_EXPANDABLE: "text_expandable",
|
|
3079
3083
|
TEXT_SINGLE_LINE: "text_single_line",
|
|
3080
3084
|
SELECTOR_OPTIONS: "selector_options",
|
|
@@ -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",
|
|
@@ -3734,7 +3738,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3734
3738
|
highlightColor: s
|
|
3735
3739
|
}) => {
|
|
3736
3740
|
var c;
|
|
3737
|
-
const [a, l] = Me(!1), d = a && s ? s : i, { perform: p } =
|
|
3741
|
+
const [a, l] = Me(!1), d = a && s ? s : i, { perform: p } = ur();
|
|
3738
3742
|
return /* @__PURE__ */ u(
|
|
3739
3743
|
"button",
|
|
3740
3744
|
{
|
|
@@ -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)) })
|
|
@@ -3840,7 +3844,7 @@ const Oe = ({
|
|
|
3840
3844
|
onClick: p
|
|
3841
3845
|
}) => {
|
|
3842
3846
|
var S, C;
|
|
3843
|
-
const [h, c] = Me(!1), g = h && ce(o) ? o : n, { perform: w } =
|
|
3847
|
+
const [h, c] = Me(!1), g = h && ce(o) ? o : n, { perform: w } = ur(), f = (b) => {
|
|
3844
3848
|
if (p && p(b), d !== "RESPONSE_BODY") return;
|
|
3845
3849
|
const I = JSON.parse(JSON.stringify(r));
|
|
3846
3850
|
Eo(I), w(I, Zi.DATA);
|
|
@@ -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);
|
|
@@ -4503,10 +4507,10 @@ function Xi(t, e = {}) {
|
|
|
4503
4507
|
il(t[r]) ? (e[r] = Array.isArray(t[r]) ? [] : {}, Xi(t[r], e[r])) : qe(t[r]) || (e[r] = !0);
|
|
4504
4508
|
return e;
|
|
4505
4509
|
}
|
|
4506
|
-
function
|
|
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]) ? [] : {}) :
|
|
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,
|
|
@@ -4620,11 +4624,11 @@ function Ls(t, e, r = "validate") {
|
|
|
4620
4624
|
ref: e
|
|
4621
4625
|
};
|
|
4622
4626
|
}
|
|
4623
|
-
var
|
|
4627
|
+
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) => {
|
|
@@ -4638,7 +4642,7 @@ var pr = (t) => Ne(t) && !Jn(t) ? t : {
|
|
|
4638
4642
|
}, ae(H ? le : we, ve));
|
|
4639
4643
|
};
|
|
4640
4644
|
if (o ? !Array.isArray(C) || !C.length : l && (!fe && (_e || qe(C)) || Qe(C) && !C || R && !ol(a).isValid || N && !al(a).isValid)) {
|
|
4641
|
-
const { value: H, message: K } = et(l) ? { value: !!l, message: l } :
|
|
4645
|
+
const { value: H, message: K } = et(l) ? { value: !!l, message: l } : _r(l);
|
|
4642
4646
|
if (H && (D[f] = O({
|
|
4643
4647
|
type: St.required,
|
|
4644
4648
|
message: K,
|
|
@@ -4648,24 +4652,24 @@ var pr = (t) => Ne(t) && !Jn(t) ? t : {
|
|
|
4648
4652
|
}
|
|
4649
4653
|
if (!_e && (!qe(h) || !qe(c))) {
|
|
4650
4654
|
let H, K;
|
|
4651
|
-
const de =
|
|
4655
|
+
const de = _r(c), le = _r(h);
|
|
4652
4656
|
if (!qe(C) && !isNaN(C)) {
|
|
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))
|
|
4660
4664
|
return I(D[f].message), D;
|
|
4661
4665
|
}
|
|
4662
4666
|
if ((d || p) && !_e && (et(C) || o && Array.isArray(C))) {
|
|
4663
|
-
const H =
|
|
4667
|
+
const H = _r(d), K = _r(p), de = !qe(H.value) && C.length > +H.value, le = !qe(K.value) && C.length < +K.value;
|
|
4664
4668
|
if ((de || le) && (Z(de, H.message, K.message), !n))
|
|
4665
4669
|
return I(D[f].message), D;
|
|
4666
4670
|
}
|
|
4667
4671
|
if (g && !_e && et(C)) {
|
|
4668
|
-
const { value: H, message: K } =
|
|
4672
|
+
const { value: H, message: K } = _r(g);
|
|
4669
4673
|
if (Jn(H) && !C.match(H) && (D[f] = O({
|
|
4670
4674
|
type: St.pattern,
|
|
4671
4675
|
message: K,
|
|
@@ -4675,7 +4679,7 @@ var pr = (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 pr = (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,19 +4761,19 @@ 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
|
-
(p.dirtyFields || h.dirtyFields) && (r.dirtyFields =
|
|
4776
|
+
(p.dirtyFields || h.dirtyFields) && (r.dirtyFields = gr(i, o)), c.state.next({
|
|
4773
4777
|
name: y,
|
|
4774
4778
|
isDirty: Z(y, T),
|
|
4775
4779
|
dirtyFields: r.dirtyFields,
|
|
@@ -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,17 +4880,17 @@ 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)
|
|
4887
4891
|
}), (p.isDirty || p.dirtyFields || h.isDirty || h.dirtyFields) && A.shouldDirty && c.state.next({
|
|
4888
4892
|
name: y,
|
|
4889
|
-
dirtyFields:
|
|
4893
|
+
dirtyFields: gr(i, o),
|
|
4890
4894
|
isDirty: Z(y, P)
|
|
4891
4895
|
})) : V && !V._f && !qe(P) ? le(y, P, A) : de(y, P, A), Fs(y, a) && c.state.next(X(O({}, r), { name: y })), c.state.next({
|
|
4892
4896
|
name: s.mount ? y : void 0,
|
|
@@ -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,21 +5065,21 @@ 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) {
|
|
5068
5072
|
if (T.keepDirtyValues) {
|
|
5069
5073
|
const W = /* @__PURE__ */ new Set([
|
|
5070
5074
|
...a.mount,
|
|
5071
|
-
...Object.keys(
|
|
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,9 +5113,9 @@ 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
|
-
dirtyFields: M ? {} : T.keepDirtyValues ? T.keepDefaultValues && o ?
|
|
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 : {},
|
|
5116
5120
|
errors: T.keepErrors ? r.errors : {},
|
|
5117
5121
|
isSubmitSuccessful: T.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
|
|
@@ -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,20 +6042,20 @@ 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
|
-
const l = Ka(r), { perform: d } =
|
|
6058
|
+
const l = Ka(r), { perform: d } = ur(), p = s ? Ed(o.questions, s) : {}, h = it(null), {
|
|
6055
6059
|
register: c,
|
|
6056
6060
|
handleSubmit: g,
|
|
6057
6061
|
formState: { errors: w },
|
|
@@ -6133,7 +6137,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6133
6137
|
validationBorderColor: R == null ? void 0 : R.validationBorderColor,
|
|
6134
6138
|
validationBorderWidth: R == null ? void 0 : R.validationBorderWidth,
|
|
6135
6139
|
children: [
|
|
6136
|
-
fe ===
|
|
6140
|
+
fe === pr.TEXT_EXPANDABLE && /* @__PURE__ */ u(
|
|
6137
6141
|
ju,
|
|
6138
6142
|
{
|
|
6139
6143
|
layout: R,
|
|
@@ -6141,7 +6145,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6141
6145
|
register: c
|
|
6142
6146
|
}
|
|
6143
6147
|
),
|
|
6144
|
-
fe ===
|
|
6148
|
+
fe === pr.TEXT_SINGLE_LINE && /* @__PURE__ */ u(
|
|
6145
6149
|
Wu,
|
|
6146
6150
|
{
|
|
6147
6151
|
layout: R,
|
|
@@ -6149,8 +6153,8 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6149
6153
|
register: c
|
|
6150
6154
|
}
|
|
6151
6155
|
),
|
|
6152
|
-
fe ===
|
|
6153
|
-
|
|
6156
|
+
fe === pr.SELECTOR_OPTIONS && /* @__PURE__ */ u(
|
|
6157
|
+
Uu,
|
|
6154
6158
|
{
|
|
6155
6159
|
layout: R,
|
|
6156
6160
|
dataSourceQuestion: b,
|
|
@@ -6158,7 +6162,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6158
6162
|
register: c
|
|
6159
6163
|
}
|
|
6160
6164
|
),
|
|
6161
|
-
fe ===
|
|
6165
|
+
fe === pr.SELECTOR_BUTTONS && /* @__PURE__ */ u(
|
|
6162
6166
|
$u,
|
|
6163
6167
|
{
|
|
6164
6168
|
layout: R,
|
|
@@ -6167,7 +6171,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6167
6171
|
register: c
|
|
6168
6172
|
}
|
|
6169
6173
|
),
|
|
6170
|
-
fe ===
|
|
6174
|
+
fe === pr.SELECTOR_DROPDOWN && /* @__PURE__ */ u(
|
|
6171
6175
|
Pu,
|
|
6172
6176
|
{
|
|
6173
6177
|
control: S,
|
|
@@ -6176,7 +6180,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6176
6180
|
parentElementRef: h
|
|
6177
6181
|
}
|
|
6178
6182
|
),
|
|
6179
|
-
fe ===
|
|
6183
|
+
fe === pr.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ u(
|
|
6180
6184
|
Fu,
|
|
6181
6185
|
{
|
|
6182
6186
|
control: S,
|
|
@@ -6256,7 +6260,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6256
6260
|
selectionLimit: i
|
|
6257
6261
|
}) => {
|
|
6258
6262
|
var p, h;
|
|
6259
|
-
const { perform: o } =
|
|
6263
|
+
const { perform: o } = ur(), s = it(null), a = typeof i == "number" && (i === 0 || i > 1), l = (c) => F(null, null, function* () {
|
|
6260
6264
|
var w;
|
|
6261
6265
|
const g = Array.from((w = c.currentTarget.files) != null ? w : []);
|
|
6262
6266
|
if (g.length)
|
|
@@ -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
|
) }) });
|
|
@@ -6339,7 +6343,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6339
6343
|
selectionLimit: i
|
|
6340
6344
|
}) => {
|
|
6341
6345
|
var p, h;
|
|
6342
|
-
const { perform: o } =
|
|
6346
|
+
const { perform: o } = ur(), s = it(null), a = typeof i == "number" && (i === 0 || i > 1), l = (c) => F(null, null, function* () {
|
|
6343
6347
|
var w;
|
|
6344
6348
|
const g = Array.from((w = c.currentTarget.files) != null ? w : []);
|
|
6345
6349
|
if (g.length)
|
|
@@ -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" });
|
|
@@ -6546,7 +6550,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6546
6550
|
backgroundColor: s,
|
|
6547
6551
|
popups: a
|
|
6548
6552
|
}) => {
|
|
6549
|
-
const l = Ka(o), { perform: d } =
|
|
6553
|
+
const l = Ka(o), { perform: d } = ur(), { setIsProcessingCallback: p } = yd(), { ref: h, isPopoverOpen: c, openPopover: g, closePopover: w } = e1(), f = {
|
|
6550
6554
|
enableHighAccuracy: !0,
|
|
6551
6555
|
timeout: 15e3,
|
|
6552
6556
|
maximumAge: 6e4
|
|
@@ -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
|
] }),
|
|
@@ -6671,7 +6675,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6671
6675
|
)
|
|
6672
6676
|
] });
|
|
6673
6677
|
}, $s = (t) => {
|
|
6674
|
-
const { templateId: e, templateLayout: r, dataSource: n, properties: i } = t, { perform: o } =
|
|
6678
|
+
const { templateId: e, templateLayout: r, dataSource: n, properties: i } = t, { perform: o } = ur();
|
|
6675
6679
|
if (!e || !r) return /* @__PURE__ */ u(xs, {});
|
|
6676
6680
|
const s = i != null && i.length ? JSON.stringify(i) : "default-key";
|
|
6677
6681
|
if (e === ct.STATUS)
|
|
@@ -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);
|
|
@@ -6845,7 +6849,7 @@ const Bs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id:
|
|
|
6845
6849
|
}
|
|
6846
6850
|
`, this.shadowRoot.querySelector("#idv-gui-styles") || this.shadowRoot.appendChild(e);
|
|
6847
6851
|
}
|
|
6848
|
-
|
|
6852
|
+
cr(
|
|
6849
6853
|
/* @__PURE__ */ u(
|
|
6850
6854
|
p1,
|
|
6851
6855
|
{
|
|
@@ -6859,19 +6863,19 @@ const Bs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id:
|
|
|
6859
6863
|
);
|
|
6860
6864
|
}
|
|
6861
6865
|
disconnectedCallback() {
|
|
6862
|
-
setTimeout(() => {
|
|
6866
|
+
cr(null, this._shadowRoot), setTimeout(() => {
|
|
6863
6867
|
this._mounted && (this._mounted = !1);
|
|
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() {
|
|
@@ -8294,8 +8299,8 @@ function b1() {
|
|
|
8294
8299
|
}, Pe = function() {
|
|
8295
8300
|
return b.name === Z || b.name === ae;
|
|
8296
8301
|
}, J = function() {
|
|
8297
|
-
var at = m(),
|
|
8298
|
-
return typeof
|
|
8302
|
+
var at = m(), hr = at && at.userAgent.toLowerCase();
|
|
8303
|
+
return typeof hr == "string" ? /electron/.test(hr) : !1;
|
|
8299
8304
|
}, oe = function() {
|
|
8300
8305
|
var at = m();
|
|
8301
8306
|
return at && (/iPad|iPhone|iPod/.test(at.platform) || at.platform === "MacIntel" && at.maxTouchPoints > 1) && !window.MSStream;
|
|
@@ -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,16 +8332,16 @@ 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(),
|
|
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
|
-
var ie = mt.isBrowser, at = mt.isMobile,
|
|
8337
|
+
var ie = mt.isBrowser, at = mt.isMobile, hr = mt.isTablet, Sn = mt.isSmartTV, En = mt.isConsole, Tn = mt.isWearable;
|
|
8333
8338
|
if (ie)
|
|
8334
8339
|
return h(ie, b, D, N, R);
|
|
8335
8340
|
if (Sn)
|
|
8336
8341
|
return f(Sn, D, N, R);
|
|
8337
8342
|
if (En)
|
|
8338
8343
|
return w(En, D, N, R);
|
|
8339
|
-
if (at ||
|
|
8344
|
+
if (at || hr)
|
|
8340
8345
|
return c(mt, I, N, R);
|
|
8341
8346
|
if (Tn)
|
|
8342
8347
|
return g(Tn, D, N, R);
|
|
@@ -8359,7 +8364,7 @@ function b1() {
|
|
|
8359
8364
|
isFirefox: ii,
|
|
8360
8365
|
isSafari: oi,
|
|
8361
8366
|
isOpera: si,
|
|
8362
|
-
isIE:
|
|
8367
|
+
isIE: fr,
|
|
8363
8368
|
osVersion: mn,
|
|
8364
8369
|
osName: gn,
|
|
8365
8370
|
fullBrowserVersion: wn,
|
|
@@ -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,
|