@regulaforensics/idv-capture-web 3.2.263-nightly → 3.2.266-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 +1 -0
- package/dist/main.iife.js +11 -11
- package/dist/main.js +609 -601
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Pl = Object.defineProperty, Ml = Object.defineProperties;
|
|
2
2
|
var Fl = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var xn = Object.getOwnPropertySymbols;
|
|
4
4
|
var Vo = Object.prototype.hasOwnProperty, $o = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Lo = (t, e, r) => e in t ? Pl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, T = (t, e) => {
|
|
6
6
|
for (var r in e || (e = {}))
|
|
7
|
-
Vo.call(e, r) &&
|
|
7
|
+
Vo.call(e, r) && Lo(t, r, e[r]);
|
|
8
8
|
if (xn)
|
|
9
9
|
for (var r of xn(e))
|
|
10
|
-
$o.call(e, r) &&
|
|
10
|
+
$o.call(e, r) && Lo(t, r, e[r]);
|
|
11
11
|
return t;
|
|
12
|
-
}, X = (t, e) =>
|
|
12
|
+
}, X = (t, e) => Ml(t, Fl(e));
|
|
13
13
|
var Xt = (t, e) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var n in t)
|
|
@@ -59,7 +59,7 @@ let Ys = class {
|
|
|
59
59
|
return this.cssText;
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
const
|
|
62
|
+
const Ul = (t) => new Ys(typeof t == "string" ? t : t + "", void 0, eo), Ll = (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,14 +75,14 @@ const Ll = (t) => new Ys(typeof t == "string" ? t : t + "", void 0, eo), Ul = (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 Ul(r);
|
|
79
79
|
})(t) : t;
|
|
80
80
|
/**
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright 2017 Google LLC
|
|
83
83
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
84
84
|
*/
|
|
85
|
-
const { is: $l, defineProperty: Bl, getOwnPropertyDescriptor: Hl, getOwnPropertyNames: Wl, getOwnPropertySymbols: jl, getPrototypeOf: zl } = Object, qt = globalThis, Wo = qt.trustedTypes, Kl = Wo ? Wo.emptyScript : "", Ei = qt.reactiveElementPolyfillSupport, Nr = (t, e) => t,
|
|
85
|
+
const { is: $l, defineProperty: Bl, getOwnPropertyDescriptor: Hl, getOwnPropertyNames: Wl, getOwnPropertySymbols: jl, getPrototypeOf: zl } = Object, qt = globalThis, Wo = qt.trustedTypes, Kl = Wo ? Wo.emptyScript : "", Ei = qt.reactiveElementPolyfillSupport, Nr = (t, e) => t, Pn = { toAttribute(t, e) {
|
|
86
86
|
switch (e) {
|
|
87
87
|
case Boolean:
|
|
88
88
|
t = t ? Kl : null;
|
|
@@ -110,7 +110,7 @@ const { is: $l, defineProperty: Bl, getOwnPropertyDescriptor: Hl, getOwnProperty
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
return r;
|
|
113
|
-
} }, to = (t, e) => !$l(t, e), jo = { attribute: !0, type: String, converter:
|
|
113
|
+
} }, to = (t, e) => !$l(t, e), jo = { attribute: !0, type: String, converter: Pn, 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
116
|
let mr = class extends HTMLElement {
|
|
@@ -226,7 +226,7 @@ let mr = class extends HTMLElement {
|
|
|
226
226
|
var o;
|
|
227
227
|
const n = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, n);
|
|
228
228
|
if (i !== void 0 && n.reflect === !0) {
|
|
229
|
-
const s = (((o = n.converter) == null ? void 0 : o.toAttribute) !== void 0 ? n.converter :
|
|
229
|
+
const s = (((o = n.converter) == null ? void 0 : o.toAttribute) !== void 0 ? n.converter : Pn).toAttribute(r, n.type);
|
|
230
230
|
this._$Em = e, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -234,7 +234,7 @@ let mr = class extends HTMLElement {
|
|
|
234
234
|
var o, s, a;
|
|
235
235
|
const n = this.constructor, i = n._$Eh.get(e);
|
|
236
236
|
if (i !== void 0 && this._$Em !== i) {
|
|
237
|
-
const l = n.getPropertyOptions(i), d = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((o = l.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? l.converter :
|
|
237
|
+
const l = n.getPropertyOptions(i), d = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((o = l.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? l.converter : Pn;
|
|
238
238
|
this._$Em = i;
|
|
239
239
|
const p = d.fromAttribute(r, l.type);
|
|
240
240
|
this[i] = (a = p != null ? p : (s = this._$Ej) == null ? void 0 : s.get(i)) != null ? a : p, this._$Em = null;
|
|
@@ -330,7 +330,7 @@ mr.elementStyles = [], mr.shadowRootOptions = { mode: "open" }, mr[Nr("elementPr
|
|
|
330
330
|
* Copyright 2017 Google LLC
|
|
331
331
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
332
332
|
*/
|
|
333
|
-
const Dr = globalThis,
|
|
333
|
+
const Dr = globalThis, Mn = Dr.trustedTypes, zo = Mn ? Mn.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Js = "$lit$", Gt = `lit$${Math.random().toFixed(9).slice(2)}$`, Xs = "?" + Gt, Gl = `<${Xs}>`, lr = document, Wr = () => lr.createComment(""), jr = (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", Ti = `[
|
|
334
334
|
\f\r]`, Ir = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ko = /-->/g, Go = />/g, Qt = RegExp(`>|${Ti}(?:([^\\s"'>=/]+)(${Ti}*=${Ti}*(?:[^
|
|
335
335
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), qo = /'/g, Zo = /"/g, Qs = /^(?:script|style|textarea|title)$/i, Zl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), Oi = 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) {
|
|
@@ -368,7 +368,7 @@ let Bi = class ta {
|
|
|
368
368
|
if (Qs.test(i.tagName)) {
|
|
369
369
|
const f = i.textContent.split(Gt), c = f.length - 1;
|
|
370
370
|
if (c > 0) {
|
|
371
|
-
i.textContent =
|
|
371
|
+
i.textContent = Mn ? Mn.emptyScript : "";
|
|
372
372
|
for (let g = 0; g < c; g++) i.append(f[g], Wr()), or.nextNode(), l.push({ type: 2, index: ++o });
|
|
373
373
|
i.append(f[c], Wr());
|
|
374
374
|
}
|
|
@@ -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
|
|
569
|
+
let Pr = class extends mr {
|
|
570
570
|
constructor() {
|
|
571
571
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
572
572
|
}
|
|
@@ -592,9 +592,9 @@ let Mr = class extends mr {
|
|
|
592
592
|
}
|
|
593
593
|
};
|
|
594
594
|
var qs;
|
|
595
|
-
|
|
595
|
+
Pr._$litElement$ = !0, Pr.finalized = !0, (qs = ar.litElementHydrateSupport) == null || qs.call(ar, { LitElement: Pr });
|
|
596
596
|
const xi = ar.litElementPolyfillSupport;
|
|
597
|
-
xi == null || xi({ LitElement:
|
|
597
|
+
xi == null || xi({ LitElement: Pr });
|
|
598
598
|
var Zs;
|
|
599
599
|
((Zs = ar.litElementVersions) != null ? Zs : ar.litElementVersions = []).push("4.2.1");
|
|
600
600
|
/**
|
|
@@ -602,7 +602,7 @@ var Zs;
|
|
|
602
602
|
* Copyright 2017 Google LLC
|
|
603
603
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
604
604
|
*/
|
|
605
|
-
const nc = { attribute: !0, type: String, converter:
|
|
605
|
+
const nc = { attribute: !0, type: String, converter: Pn, reflect: !1, hasChanged: to }, ic = (t = nc, e, r) => {
|
|
606
606
|
const { kind: n, metadata: i } = r;
|
|
607
607
|
let o = globalThis.litPropertyMetadata.get(i);
|
|
608
608
|
if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(r.name, t), n === "accessor") {
|
|
@@ -635,7 +635,7 @@ function oc(t) {
|
|
|
635
635
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
636
636
|
*/
|
|
637
637
|
function Er(t) {
|
|
638
|
-
return oc(X(
|
|
638
|
+
return oc(X(T({}, t), { state: !0, attribute: !1 }));
|
|
639
639
|
}
|
|
640
640
|
class sc {
|
|
641
641
|
constructor() {
|
|
@@ -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 = Ll`
|
|
686
686
|
*,
|
|
687
687
|
::after,
|
|
688
688
|
::before {
|
|
@@ -750,7 +750,7 @@ const na = new sc(), ac = Ul`
|
|
|
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 || {}),
|
|
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 || {}), Le = /* @__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))(Le || {}), 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 || {}), ti = /* @__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))(ti || {}), Un = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 1] = "WORKFLOW_ISSUE", t))(Un || {}), 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 || {}), Ln = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Ln || {}), 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, Hi = "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) => {
|
|
@@ -1046,7 +1046,7 @@ function dr(t, e) {
|
|
|
1046
1046
|
var r = be.__H || (be.__H = { __: [], __h: [] });
|
|
1047
1047
|
return t >= r.__.length && r.__.push({}), r.__[t];
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function Pe(t) {
|
|
1050
1050
|
return Sr = 1, ri(ya, t);
|
|
1051
1051
|
}
|
|
1052
1052
|
function ri(t, e, r) {
|
|
@@ -1126,7 +1126,7 @@ function fo(t, e) {
|
|
|
1126
1126
|
Te.useDebugValue && Te.useDebugValue(e ? e(t) : t);
|
|
1127
1127
|
}
|
|
1128
1128
|
function bc(t) {
|
|
1129
|
-
var e = dr($t++, 10), r =
|
|
1129
|
+
var e = dr($t++, 10), r = Pe();
|
|
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() {
|
|
@@ -1221,7 +1221,7 @@ function qi(t, e) {
|
|
|
1221
1221
|
return !1;
|
|
1222
1222
|
}
|
|
1223
1223
|
function _o(t, e) {
|
|
1224
|
-
var r = e(), n =
|
|
1224
|
+
var r = e(), n = Pe({ t: { __: r, u: e } }), i = n[0].t, o = n[1];
|
|
1225
1225
|
return Zt(function() {
|
|
1226
1226
|
i.__ = r, i.u = e, Ri(i) && o({ t: i });
|
|
1227
1227
|
}, [t, r, e]), nt(function() {
|
|
@@ -1305,7 +1305,7 @@ function Oa(t, e, r) {
|
|
|
1305
1305
|
return Oa(n, e, r);
|
|
1306
1306
|
}), t.__c && t.__c.__P === e && (t.__e && r.appendChild(t.__e), t.__c.__e = !0, t.__c.__P = r)), t;
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function Ur() {
|
|
1309
1309
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1310
1310
|
}
|
|
1311
1311
|
function Ia(t) {
|
|
@@ -1331,7 +1331,7 @@ function wr() {
|
|
|
1331
1331
|
se.unmount = function(t) {
|
|
1332
1332
|
var e = t.__c;
|
|
1333
1333
|
e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), us && us(t);
|
|
1334
|
-
}, (
|
|
1334
|
+
}, (Ur.prototype = new ht()).__c = function(t, e) {
|
|
1335
1335
|
var r = e.__c, n = this;
|
|
1336
1336
|
n.o == null && (n.o = []), n.o.push(r);
|
|
1337
1337
|
var i = Ia(n.__v), o = !1, s = function() {
|
|
@@ -1349,9 +1349,9 @@ se.unmount = function(t) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
};
|
|
1351
1351
|
n.__u++ || 32 & e.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), t.then(s, s);
|
|
1352
|
-
},
|
|
1352
|
+
}, Ur.prototype.componentWillUnmount = function() {
|
|
1353
1353
|
this.o = [];
|
|
1354
|
-
},
|
|
1354
|
+
}, Ur.prototype.render = function(t, e) {
|
|
1355
1355
|
if (this.__b) {
|
|
1356
1356
|
if (this.__v.__k) {
|
|
1357
1357
|
var r = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
@@ -1433,14 +1433,14 @@ ht.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
1433
1433
|
var hs = se.event;
|
|
1434
1434
|
function Dc() {
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Pc() {
|
|
1437
1437
|
return this.cancelBubble;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function Mc() {
|
|
1440
1440
|
return this.defaultPrevented;
|
|
1441
1441
|
}
|
|
1442
1442
|
se.event = function(t) {
|
|
1443
|
-
return hs && (t = hs(t)), t.persist = Dc, t.isPropagationStopped =
|
|
1443
|
+
return hs && (t = hs(t)), t.persist = Dc, t.isPropagationStopped = Pc, t.isDefaultPrevented = Mc, t.nativeEvent = t;
|
|
1444
1444
|
};
|
|
1445
1445
|
var yo, Fc = { enumerable: !1, configurable: !0, get: function() {
|
|
1446
1446
|
return this.class;
|
|
@@ -1474,23 +1474,23 @@ 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: Yr, useDebugValue: fo, useDeferredValue: go, useEffect: nt, useId: ho, useImperativeHandle: co, useInsertionEffect: vo, useLayoutEffect: Zt, useMemo: Zr, useReducer: ri, useRef: it, useState:
|
|
1478
|
-
function
|
|
1477
|
+
}, useCallback: uo, useContext: Yr, useDebugValue: fo, useDeferredValue: go, useEffect: nt, useId: ho, useImperativeHandle: co, useInsertionEffect: vo, useLayoutEffect: Zt, useMemo: Zr, useReducer: ri, useRef: it, useState: Pe, useSyncExternalStore: _o, useTransition: wo } } }, Uc = "18.3.1";
|
|
1478
|
+
function Pa(t) {
|
|
1479
1479
|
return wt.bind(null, t);
|
|
1480
1480
|
}
|
|
1481
1481
|
function Jr(t) {
|
|
1482
1482
|
return !!t && t.$$typeof === Ra;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function Ma(t) {
|
|
1485
1485
|
return Jr(t) && t.type === We;
|
|
1486
1486
|
}
|
|
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 Ua(t) {
|
|
1491
1491
|
return Jr(t) ? yc.apply(null, arguments) : t;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function La(t) {
|
|
1494
1494
|
return !!t.__k && (cr(null, t), !0);
|
|
1495
1495
|
}
|
|
1496
1496
|
function Va(t) {
|
|
@@ -1500,21 +1500,21 @@ 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 = Jr, fe = { useState:
|
|
1504
|
-
const
|
|
1503
|
+
}, Ha = We, Wa = Jr, fe = { useState: Pe, useId: ho, useReducer: ri, useEffect: nt, useLayoutEffect: Zt, useInsertionEffect: vo, useTransition: wo, useDeferredValue: go, useSyncExternalStore: _o, startTransition: mo, useRef: it, useImperativeHandle: co, useMemo: Zr, useCallback: uo, useContext: Yr, useDebugValue: fo, version: "18.3.1", Children: Ea, render: ka, hydrate: Na, unmountComponentAtNode: La, createPortal: Aa, createElement: wt, createContext: lo, createFactory: Pa, cloneElement: Ua, createRef: ua, Fragment: We, isValidElement: Jr, isElement: Wa, isFragment: Ma, isMemo: Fa, findDOMNode: Va, Component: ht, PureComponent: $n, memo: Ca, forwardRef: Sa, flushSync: Ba, unstable_batchedUpdates: $a, StrictMode: Ha, Suspense: Ur, SuspenseList: wr, lazy: xa, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Da };
|
|
1504
|
+
const Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1505
1505
|
__proto__: null,
|
|
1506
1506
|
Children: Ea,
|
|
1507
1507
|
Component: ht,
|
|
1508
1508
|
Fragment: We,
|
|
1509
1509
|
PureComponent: $n,
|
|
1510
1510
|
StrictMode: Ha,
|
|
1511
|
-
Suspense:
|
|
1511
|
+
Suspense: Ur,
|
|
1512
1512
|
SuspenseList: wr,
|
|
1513
1513
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Da,
|
|
1514
|
-
cloneElement:
|
|
1514
|
+
cloneElement: Ua,
|
|
1515
1515
|
createContext: lo,
|
|
1516
1516
|
createElement: wt,
|
|
1517
|
-
createFactory:
|
|
1517
|
+
createFactory: Pa,
|
|
1518
1518
|
createPortal: Aa,
|
|
1519
1519
|
createRef: ua,
|
|
1520
1520
|
default: fe,
|
|
@@ -1523,14 +1523,14 @@ const Uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1523
1523
|
forwardRef: Sa,
|
|
1524
1524
|
hydrate: Na,
|
|
1525
1525
|
isElement: Wa,
|
|
1526
|
-
isFragment:
|
|
1526
|
+
isFragment: Ma,
|
|
1527
1527
|
isMemo: Fa,
|
|
1528
1528
|
isValidElement: Jr,
|
|
1529
1529
|
lazy: xa,
|
|
1530
1530
|
memo: Ca,
|
|
1531
1531
|
render: ka,
|
|
1532
1532
|
startTransition: mo,
|
|
1533
|
-
unmountComponentAtNode:
|
|
1533
|
+
unmountComponentAtNode: La,
|
|
1534
1534
|
unstable_batchedUpdates: $a,
|
|
1535
1535
|
useCallback: uo,
|
|
1536
1536
|
useContext: Yr,
|
|
@@ -1545,10 +1545,10 @@ const Uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1545
1545
|
useMemo: Zr,
|
|
1546
1546
|
useReducer: ri,
|
|
1547
1547
|
useRef: it,
|
|
1548
|
-
useState:
|
|
1548
|
+
useState: Pe,
|
|
1549
1549
|
useSyncExternalStore: _o,
|
|
1550
1550
|
useTransition: wo,
|
|
1551
|
-
version:
|
|
1551
|
+
version: Uc
|
|
1552
1552
|
}, Symbol.toStringTag, { value: "Module" })), Vc = (t) => t;
|
|
1553
1553
|
function $c(t, e = Vc) {
|
|
1554
1554
|
const r = fe.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(Lc);
|
|
1591
1591
|
var kr = { exports: {} }, jc = kr.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", f = "major", c = "model", g = "name", w = "type", h = "vendor", m = "version", S = "architecture", C = "console", b = "mobile", I = "tablet", k = "smarttv", N = "wearable", R = "embedded", ae = 500, _e = "Amazon", le = "Apple", Z = "ASUS", H = "BlackBerry", K = "Browser", ue = "Chrome", ce = "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", f = "major", c = "model", g = "name", w = "type", h = "vendor", m = "version", S = "architecture", C = "console", b = "mobile", I = "tablet", k = "smarttv", N = "wearable", R = "embedded", ae = 500, _e = "Amazon", le = "Apple", Z = "ASUS", H = "BlackBerry", K = "Browser", ue = "Chrome", ce = "Edge", we = "Firefox", ve = "Google", ee = "Honor", z = "Huawei", U = "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];
|
|
@@ -1605,7 +1605,7 @@ function zc() {
|
|
|
1605
1605
|
return typeof J === p ? y(oe).indexOf(y(J)) !== -1 : !1;
|
|
1606
1606
|
}, y = function(J) {
|
|
1607
1607
|
return J.toLowerCase();
|
|
1608
|
-
},
|
|
1608
|
+
}, O = function(J) {
|
|
1609
1609
|
return typeof J === p ? J.replace(/[^\d\.]/g, o).split(".")[0] : n;
|
|
1610
1610
|
}, A = function(J, oe) {
|
|
1611
1611
|
if (typeof J === p)
|
|
@@ -1619,7 +1619,7 @@ function zc() {
|
|
|
1619
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
|
+
}, P = function(J, oe) {
|
|
1623
1623
|
for (var j in oe)
|
|
1624
1624
|
if (typeof oe[j] === d && oe[j].length > 0) {
|
|
1625
1625
|
for (var me = 0; me < oe[j].length; me++)
|
|
@@ -1628,13 +1628,13 @@ 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, ue + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[g, ue + " 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, [h, 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, [h, je], [w, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [h, le], [w, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [h, le], [w, I]], [/(macintosh);/i], [c, [h, le]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [h, 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, [h, ee], [w, I]], [/honor([-\w ]+)[;\)]/i], [c, [h, 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, [h, z], [w, I]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [h, 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, " "], [h, 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, " "], [h, 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, [h, Be], [w, b]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [h, M, { OnePlus: ["304", "403", "203"], "*": Be }], [w, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [h, "Vivo"], [w, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [h, "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, [h, Se], [w, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [h, Se], [w, I]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [h, 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, [h, 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, [h, L], [w, I]], [/(nokia) (t[12][01])/i], [h, c, [w, I]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [w, b], [h, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [h, ve], [w, I]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [h, 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, [h, Xe], [w, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [h, Xe], [w, I]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [h, $], [w, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [h, _e], [w, I]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [h, _e], [w, b]], [/(playbook);[-\w\),; ]+(rim)/i], [c, h, [w, I]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [h, H], [w, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [h, Z], [w, I]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [h, Z], [w, b]], [/(nexus 9)/i], [c, [h, "HTC"], [w, I]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [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, [h, "TCL"], [w, I]], [/(itel) ((\w+))/i], [[h, y], c, [w, M, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [h, "Acer"], [w, I]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [h, "Meizu"], [w, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [h, "Ulefone"], [w, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [h, "Energizer"], [w, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [h, "Cat"], [w, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [h, "Smartfren"], [w, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [h, "Nothing"], [w, b]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [h, "Archos"], [w, I]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [h, "Archos"], [w, b]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [h, 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], [h, 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], [h, c, [w, I]], [/(surface duo)/i], [c, [h, te], [w, I]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [h, "Fairphone"], [w, b]], [/(u304aa)/i], [c, [h, "AT&T"], [w, b]], [/\bsie-(\w*)/i], [c, [h, "Siemens"], [w, b]], [/\b(rct\w+) b/i], [c, [h, "RCA"], [w, I]], [/\b(venue[\d ]{2,7}) b/i], [c, [h, "Dell"], [w, I]], [/\b(q(?:mv|ta)\w+) b/i], [c, [h, "Verizon"], [w, I]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [h, "Barnes & Noble"], [w, I]], [/\b(tm\d{3}\w+) b/i], [c, [h, "NuVision"], [w, I]], [/\b(k88) b/i], [c, [h, "ZTE"], [w, I]], [/\b(nx\d{3}j) b/i], [c, [h, "ZTE"], [w, b]], [/\b(gen\d{3}) b.+49h/i], [c, [h, "Swiss"], [w, b]], [/\b(zur\d{3}) b/i], [c, [h, "Swiss"], [w, I]], [/\b((zeki)?tb.*\b) b/i], [c, [h, "Zeki"], [w, I]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], c, [w, I]], [/\b(ns-?\w{0,9}) b/i], [c, [h, "Insignia"], [w, I]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [h, "NextBook"], [w, I]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], c, [w, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], c, [w, b]], [/\b(ph-1) /i], [c, [h, "Essential"], [w, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [h, "Envizen"], [w, I]], [/\b(trio[-\w\. ]+) b/i], [c, [h, "MachSpeed"], [w, I]], [/\btu_(1491) b/i], [c, [h, "Rotor"], [w, I]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [h, re], [w, I]], [/(sprint) (\w+)/i], [h, c, [w, b]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [h, te], [w, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [h, st], [w, I]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [h, st], [w, b]], [/smart-tv.+(samsung)/i], [h, [w, k]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [h, je], [w, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, Y], [w, k]], [/(apple) ?tv/i], [h, [c, le + " TV"], [w, k]], [/crkey/i], [[c, ue + "cast"], [h, ve], [w, k]], [/droid.+aft(\w+)( bui|\))/i], [c, [h, _e], [w, k]], [/(shield \w+ tv)/i], [c, [h, re], [w, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [h, ot], [w, k]], [/(bravia[\w ]+)( bui|\))/i], [c, [h, Xe], [w, k]], [/(mi(tv|box)-?\w+) bui/i], [c, [h, yt], [w, k]], [/Hbbtv.*(technisat) (.*);/i], [h, c, [w, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, A], [c, A], [w, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [w, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[w, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, c, [w, C]], [/droid.+; (shield)( bui|\))/i], [c, [h, re], [w, C]], [/(playstation \w+)/i], [c, [h, Xe], [w, C]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [h, te], [w, C]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [h, je], [w, N]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [h, c, [w, N]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [h, Be], [w, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [h, le], [w, N]], [/(opwwe\d{3})/i], [c, [h, $], [w, N]], [/(moto 360)/i], [c, [h, Se], [w, N]], [/(smartwatch 3)/i], [c, [h, Xe], [w, N]], [/(g watch r)/i], [c, [h, Y], [w, N]], [/droid.+; (wt63?0{2,3})\)/i], [c, [h, st], [w, N]], [/droid.+; (glass) \d/i], [c, [h, ve], [w, N]], [/(pico) (4|neo3(?: link|pro)?)/i], [h, c, [w, N]], [/; (quest( \d| pro)?)/i], [c, [h, Ht], [w, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [w, R]], [/(aeobc)\b/i], [c, [h, _e], [w, R]], [/(homepod).+mac os/i], [c, [h, le], [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, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [g, ce + "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, ue + "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
|
+
}, M = { "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, ue + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[g, ue + " 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, P, M]], [/(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, [h, 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, [h, je], [w, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [h, le], [w, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [h, le], [w, I]], [/(macintosh);/i], [c, [h, le]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [h, 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, [h, ee], [w, I]], [/honor([-\w ]+)[;\)]/i], [c, [h, 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, [h, z], [w, I]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [h, 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, " "], [h, 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, " "], [h, 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, [h, Be], [w, b]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [h, P, { OnePlus: ["304", "403", "203"], "*": Be }], [w, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [h, "Vivo"], [w, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [h, "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, [h, Se], [w, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [h, Se], [w, I]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [h, 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, [h, 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, [h, U], [w, I]], [/(nokia) (t[12][01])/i], [h, c, [w, I]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [w, b], [h, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [h, ve], [w, I]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [h, 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, [h, Xe], [w, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [h, Xe], [w, I]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [h, $], [w, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [h, _e], [w, I]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [h, _e], [w, b]], [/(playbook);[-\w\),; ]+(rim)/i], [c, h, [w, I]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [h, H], [w, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [h, Z], [w, I]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [h, Z], [w, b]], [/(nexus 9)/i], [c, [h, "HTC"], [w, I]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [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, [h, "TCL"], [w, I]], [/(itel) ((\w+))/i], [[h, y], c, [w, P, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [h, "Acer"], [w, I]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [h, "Meizu"], [w, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [h, "Ulefone"], [w, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [h, "Energizer"], [w, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [h, "Cat"], [w, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [h, "Smartfren"], [w, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [h, "Nothing"], [w, b]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [h, "Archos"], [w, I]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [h, "Archos"], [w, b]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [h, 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], [h, 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], [h, c, [w, I]], [/(surface duo)/i], [c, [h, te], [w, I]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [h, "Fairphone"], [w, b]], [/(u304aa)/i], [c, [h, "AT&T"], [w, b]], [/\bsie-(\w*)/i], [c, [h, "Siemens"], [w, b]], [/\b(rct\w+) b/i], [c, [h, "RCA"], [w, I]], [/\b(venue[\d ]{2,7}) b/i], [c, [h, "Dell"], [w, I]], [/\b(q(?:mv|ta)\w+) b/i], [c, [h, "Verizon"], [w, I]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [h, "Barnes & Noble"], [w, I]], [/\b(tm\d{3}\w+) b/i], [c, [h, "NuVision"], [w, I]], [/\b(k88) b/i], [c, [h, "ZTE"], [w, I]], [/\b(nx\d{3}j) b/i], [c, [h, "ZTE"], [w, b]], [/\b(gen\d{3}) b.+49h/i], [c, [h, "Swiss"], [w, b]], [/\b(zur\d{3}) b/i], [c, [h, "Swiss"], [w, I]], [/\b((zeki)?tb.*\b) b/i], [c, [h, "Zeki"], [w, I]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], c, [w, I]], [/\b(ns-?\w{0,9}) b/i], [c, [h, "Insignia"], [w, I]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [h, "NextBook"], [w, I]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], c, [w, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], c, [w, b]], [/\b(ph-1) /i], [c, [h, "Essential"], [w, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [h, "Envizen"], [w, I]], [/\b(trio[-\w\. ]+) b/i], [c, [h, "MachSpeed"], [w, I]], [/\btu_(1491) b/i], [c, [h, "Rotor"], [w, I]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [h, re], [w, I]], [/(sprint) (\w+)/i], [h, c, [w, b]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [h, te], [w, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [h, st], [w, I]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [h, st], [w, b]], [/smart-tv.+(samsung)/i], [h, [w, k]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [h, je], [w, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, Y], [w, k]], [/(apple) ?tv/i], [h, [c, le + " TV"], [w, k]], [/crkey/i], [[c, ue + "cast"], [h, ve], [w, k]], [/droid.+aft(\w+)( bui|\))/i], [c, [h, _e], [w, k]], [/(shield \w+ tv)/i], [c, [h, re], [w, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [h, ot], [w, k]], [/(bravia[\w ]+)( bui|\))/i], [c, [h, Xe], [w, k]], [/(mi(tv|box)-?\w+) bui/i], [c, [h, yt], [w, k]], [/Hbbtv.*(technisat) (.*);/i], [h, c, [w, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, A], [c, A], [w, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [w, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[w, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, c, [w, C]], [/droid.+; (shield)( bui|\))/i], [c, [h, re], [w, C]], [/(playstation \w+)/i], [c, [h, Xe], [w, C]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [h, te], [w, C]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [h, je], [w, N]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [h, c, [w, N]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [h, Be], [w, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [h, le], [w, N]], [/(opwwe\d{3})/i], [c, [h, $], [w, N]], [/(moto 360)/i], [c, [h, Se], [w, N]], [/(smartwatch 3)/i], [c, [h, Xe], [w, N]], [/(g watch r)/i], [c, [h, Y], [w, N]], [/droid.+; (wt63?0{2,3})\)/i], [c, [h, st], [w, N]], [/droid.+; (glass) \d/i], [c, [h, ve], [w, N]], [/(pico) (4|neo3(?: link|pro)?)/i], [h, c, [w, N]], [/; (quest( \d| pro)?)/i], [c, [h, Ht], [w, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [w, R]], [/(aeobc)\b/i], [c, [h, _e], [w, R]], [/(homepod).+mac os/i], [c, [h, le], [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, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [g, ce + "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, P, W]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[m, P, 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, ue + "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
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
|
-
return q[g] = n, q[m] = n, V.call(q, me, xe.browser), q[f] =
|
|
1637
|
+
return q[g] = n, q[m] = n, V.call(q, me, xe.browser), q[f] = O(q[m]), he && j && j.brave && typeof j.brave.isBrave == a && (q[g] = "Brave"), q;
|
|
1638
1638
|
}, this.getCPU = function() {
|
|
1639
1639
|
var q = {};
|
|
1640
1640
|
return q[S] = n, V.call(q, me, xe.cpu), q;
|
|
@@ -1658,12 +1658,12 @@ function zc() {
|
|
|
1658
1658
|
G.VERSION = i, G.BROWSER = _t([g, m, f]), G.CPU = _t([S]), G.DEVICE = _t([c, h, w, C, b, k, I, N, R]), G.ENGINE = G.OS = _t([g, m]), t.exports && (e = t.exports = G), e.UAParser = G;
|
|
1659
1659
|
var ge = typeof r !== l && (r.jQuery || r.Zepto);
|
|
1660
1660
|
if (ge && !ge.ua) {
|
|
1661
|
-
var
|
|
1662
|
-
ge.ua =
|
|
1663
|
-
return
|
|
1661
|
+
var Me = new G();
|
|
1662
|
+
ge.ua = Me.getResult(), ge.ua.get = function() {
|
|
1663
|
+
return Me.getUA();
|
|
1664
1664
|
}, ge.ua.set = function(J) {
|
|
1665
|
-
|
|
1666
|
-
var oe =
|
|
1665
|
+
Me.setUA(J);
|
|
1666
|
+
var oe = Me.getResult();
|
|
1667
1667
|
for (var j in oe)
|
|
1668
1668
|
ge.ua[j] = oe[j];
|
|
1669
1669
|
};
|
|
@@ -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
|
+
}, U = {
|
|
1873
1873
|
Chrome: "Chrome",
|
|
1874
1874
|
Firefox: "Firefox",
|
|
1875
1875
|
Opera: "Opera",
|
|
@@ -1999,19 +1999,19 @@ 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, D = _.engine, pe = _.os, Ae = _.ua, Ze = Se(v.type), In = Ze.isBrowser, Nl = Ze.isMobile, Dl = Ze.isTablet,
|
|
2002
|
+
var _ = E ? c(E) : g, v = _.device, x = _.browser, D = _.engine, pe = _.os, Ae = _.ua, Ze = Se(v.type), In = Ze.isBrowser, Nl = Ze.isMobile, Dl = Ze.isTablet, Po = Ze.isSmartTV, Mo = Ze.isConsole, Fo = Ze.isWearable, Uo = Ze.isEmbedded;
|
|
2003
2003
|
if (In)
|
|
2004
2004
|
return je(In, x, D, pe, Ae);
|
|
2005
|
-
if (Mo)
|
|
2006
|
-
return Xe(Mo, D, pe, Ae);
|
|
2007
2005
|
if (Po)
|
|
2008
|
-
return
|
|
2006
|
+
return Xe(Po, D, pe, Ae);
|
|
2007
|
+
if (Mo)
|
|
2008
|
+
return yt(Mo, D, pe, Ae);
|
|
2009
2009
|
if (Nl || Dl)
|
|
2010
2010
|
return ot(Ze, v, pe, Ae);
|
|
2011
2011
|
if (Fo)
|
|
2012
2012
|
return st(Fo, D, pe, Ae);
|
|
2013
|
-
if (
|
|
2014
|
-
return Ht(
|
|
2013
|
+
if (Uo)
|
|
2014
|
+
return Ht(Uo, v, D, pe, Ae);
|
|
2015
2015
|
}
|
|
2016
2016
|
var pt = function(_) {
|
|
2017
2017
|
var v = _.type;
|
|
@@ -2031,7 +2031,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2031
2031
|
}, y = function(_) {
|
|
2032
2032
|
var v = _.type;
|
|
2033
2033
|
return v === z.Wearable;
|
|
2034
|
-
},
|
|
2034
|
+
}, O = function(_) {
|
|
2035
2035
|
var v = _.type;
|
|
2036
2036
|
return v === z.Console;
|
|
2037
2037
|
}, A = function(_) {
|
|
@@ -2040,10 +2040,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2040
2040
|
}, V = function(_) {
|
|
2041
2041
|
var v = _.vendor;
|
|
2042
2042
|
return $(v);
|
|
2043
|
-
},
|
|
2043
|
+
}, P = function(_) {
|
|
2044
2044
|
var v = _.model;
|
|
2045
2045
|
return $(v);
|
|
2046
|
-
},
|
|
2046
|
+
}, M = function(_) {
|
|
2047
2047
|
var v = _.type;
|
|
2048
2048
|
return $(v, "browser");
|
|
2049
2049
|
}, W = function(_) {
|
|
@@ -2058,7 +2058,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2058
2058
|
}, ge = function(_) {
|
|
2059
2059
|
var v = _.name;
|
|
2060
2060
|
return v === Y.WindowsPhone;
|
|
2061
|
-
},
|
|
2061
|
+
}, Me = function(_) {
|
|
2062
2062
|
var v = _.name;
|
|
2063
2063
|
return v === Y.IOS;
|
|
2064
2064
|
}, J = function(_) {
|
|
@@ -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 === U.Chrome;
|
|
2073
2073
|
}, me = function(_) {
|
|
2074
2074
|
var v = _.name;
|
|
2075
|
-
return v ===
|
|
2075
|
+
return v === U.Firefox;
|
|
2076
2076
|
}, He = function(_) {
|
|
2077
2077
|
var v = _.name;
|
|
2078
|
-
return v ===
|
|
2078
|
+
return v === U.Chromium;
|
|
2079
2079
|
}, xe = function(_) {
|
|
2080
2080
|
var v = _.name;
|
|
2081
|
-
return v ===
|
|
2081
|
+
return v === U.Edge;
|
|
2082
2082
|
}, he = function(_) {
|
|
2083
2083
|
var v = _.name;
|
|
2084
|
-
return v ===
|
|
2084
|
+
return v === U.Yandex;
|
|
2085
2085
|
}, q = function(_) {
|
|
2086
2086
|
var v = _.name;
|
|
2087
|
-
return v ===
|
|
2087
|
+
return v === U.Safari || v === U.MobileSafari;
|
|
2088
2088
|
}, ze = function(_) {
|
|
2089
2089
|
var v = _.name;
|
|
2090
|
-
return v ===
|
|
2090
|
+
return v === U.MobileSafari;
|
|
2091
2091
|
}, jt = function(_) {
|
|
2092
2092
|
var v = _.name;
|
|
2093
|
-
return v ===
|
|
2093
|
+
return v === U.Opera;
|
|
2094
2094
|
}, Jt = function(_) {
|
|
2095
2095
|
var v = _.name;
|
|
2096
|
-
return v ===
|
|
2096
|
+
return v === U.InternetExplorer || v === U.Ie;
|
|
2097
2097
|
}, en = function(_) {
|
|
2098
2098
|
var v = _.name;
|
|
2099
|
-
return v ===
|
|
2099
|
+
return v === U.MIUI;
|
|
2100
2100
|
}, tn = function(_) {
|
|
2101
2101
|
var v = _.name;
|
|
2102
|
-
return v ===
|
|
2102
|
+
return v === U.SamsungBrowser;
|
|
2103
2103
|
}, rn = function(_) {
|
|
2104
2104
|
var v = _.version;
|
|
2105
2105
|
return $(v);
|
|
@@ -2136,7 +2136,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2136
2136
|
var _ = E || g, v = _.device, x = _.browser, D = _.os, pe = _.engine, Ae = _.ua;
|
|
2137
2137
|
return {
|
|
2138
2138
|
isSmartTV: _t(v),
|
|
2139
|
-
isConsole:
|
|
2139
|
+
isConsole: O(v),
|
|
2140
2140
|
isWearable: y(v),
|
|
2141
2141
|
isEmbedded: A(v),
|
|
2142
2142
|
isMobileSafari: ze(x) || rt(),
|
|
@@ -2148,7 +2148,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2148
2148
|
isDesktop: tt(v),
|
|
2149
2149
|
isAndroid: W(D),
|
|
2150
2150
|
isWinPhone: ge(D),
|
|
2151
|
-
isIOS:
|
|
2151
|
+
isIOS: Me(D) || rt(),
|
|
2152
2152
|
isChrome: j(x),
|
|
2153
2153
|
isFirefox: me(x),
|
|
2154
2154
|
isSafari: q(x),
|
|
@@ -2160,13 +2160,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2160
2160
|
browserVersion: nn(x),
|
|
2161
2161
|
browserName: on(x),
|
|
2162
2162
|
mobileVendor: V(v),
|
|
2163
|
-
mobileModel:
|
|
2163
|
+
mobileModel: P(v),
|
|
2164
2164
|
engineName: sn(pe),
|
|
2165
2165
|
engineVersion: an(pe),
|
|
2166
2166
|
getUA: fn(Ae),
|
|
2167
2167
|
isEdge: xe(x) || zt(Ae),
|
|
2168
2168
|
isYandex: he(x),
|
|
2169
|
-
deviceType:
|
|
2169
|
+
deviceType: M(v),
|
|
2170
2170
|
isIOS13: cn(),
|
|
2171
2171
|
isIPad13: rt(),
|
|
2172
2172
|
isIPhone13: dn(),
|
|
@@ -2180,7 +2180,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2180
2180
|
isSamsungBrowser: tn(x)
|
|
2181
2181
|
};
|
|
2182
2182
|
}
|
|
2183
|
-
var pn = _t(a), _n =
|
|
2183
|
+
var pn = _t(a), _n = O(a), mn = y(a), oi = A(a), si = ze(o) || rt(), ai = He(o), fr = Wt(a) || rt(), gn = pt(a), wn = Ct(a) || rt(), vn = tt(a), li = tt(a), yn = W(d), bn = ge(d), Cn = Me(d) || rt(), ci = j(o), di = me(o), ui = q(o), fi = jt(o), Sn = Jt(o), hi = J(d), pi = oe(d), _i = rn(o), mi = nn(o), gi = on(o), wi = V(a), vi = P(a), yi = sn(l), bi = an(l), Ci = fn(p), mt = xe(o) || zt(p), Si = he(o), ie = M(a), at = cn(), hr = rt(), En = dn(), Tn = un(), On = ln(), dl = zt(p), ul = xe(o) && !zt(p), fl = ne(d), hl = G(d), pl = en(o), _l = tn(o), ml = function(_) {
|
|
2184
2184
|
if (!_ || typeof _ != "string") {
|
|
2185
2185
|
console.error("No valid user agent string was provided");
|
|
2186
2186
|
return;
|
|
@@ -2315,7 +2315,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2315
2315
|
var _ = E || window.navigator.userAgent, v = Do(_), x = hn(v);
|
|
2316
2316
|
return [x, v];
|
|
2317
2317
|
}
|
|
2318
|
-
return B.AndroidView = gl, B.BrowserTypes =
|
|
2318
|
+
return B.AndroidView = gl, B.BrowserTypes = U, 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 = gi, B.browserVersion = mi, B.deviceDetect = bt, B.deviceType = ie, B.engineName = yi, B.engineVersion = bi, B.fullBrowserVersion = _i, B.getSelectorsByUserAgent = ml, B.getUA = Ci, B.isAndroid = yn, B.isBrowser = vn, B.isChrome = ci, B.isChromium = ai, B.isConsole = _n, B.isDesktop = li, B.isEdge = mt, B.isEdgeChromium = dl, B.isElectron = On, B.isEmbedded = oi, B.isFirefox = di, B.isIE = Sn, B.isIOS = Cn, B.isIOS13 = at, B.isIPad13 = hr, B.isIPhone13 = En, B.isIPod13 = Tn, B.isLegacyEdge = ul, B.isMIUI = pl, B.isMacOs = hl, B.isMobile = fr, B.isMobileOnly = gn, B.isMobileSafari = si, B.isOpera = fi, B.isSafari = ui, B.isSamsungBrowser = _l, B.isSmartTV = pn, B.isTablet = wn, B.isWearable = mn, B.isWinPhone = bn, B.isWindows = fl, B.isYandex = Si, B.mobileModel = vi, B.mobileVendor = wi, B.osName = pi, B.osVersion = hi, 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) => {
|
|
@@ -2467,7 +2467,7 @@ const id = (t, e, r) => {
|
|
|
2467
2467
|
return !1;
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
|
-
}, Ni = (t) => !!t && typeof t == "object" && !Array.isArray(t), Di = (t) => /^[^:{}\s]+:[^:{}\s]+$/.test(t),
|
|
2470
|
+
}, Ni = (t) => !!t && typeof t == "object" && !Array.isArray(t), Di = (t) => /^[^:{}\s]+:[^:{}\s]+$/.test(t), Pi = {
|
|
2471
2471
|
setSessionIdWorkflowIdToLs: (t, e) => {
|
|
2472
2472
|
const r = localStorage.getItem(er);
|
|
2473
2473
|
let n = {};
|
|
@@ -2551,7 +2551,7 @@ const fd = (t) => {
|
|
|
2551
2551
|
function Cs(t) {
|
|
2552
2552
|
return !("error" in t);
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2554
|
+
function Mi(t) {
|
|
2555
2555
|
try {
|
|
2556
2556
|
let e = t;
|
|
2557
2557
|
!t.includes("://") && t.includes(".") && (e = `http://${t}`);
|
|
@@ -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.266-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}`,
|
|
@@ -2636,7 +2636,7 @@ const Es = {
|
|
|
2636
2636
|
trackLocation: !1,
|
|
2637
2637
|
listener: () => {
|
|
2638
2638
|
}
|
|
2639
|
-
}, md = (t, e) => X(
|
|
2639
|
+
}, md = (t, e) => X(T({}, Es), {
|
|
2640
2640
|
setApiKeyAuthTokenCollection: (r, n, i) => {
|
|
2641
2641
|
t({ apiKeyAuthTokenCollection: {
|
|
2642
2642
|
authToken: n,
|
|
@@ -2654,15 +2654,15 @@ const Es = {
|
|
|
2654
2654
|
t({ listener: r });
|
|
2655
2655
|
},
|
|
2656
2656
|
getCurrentSessionDataLs: () => {
|
|
2657
|
-
const r =
|
|
2657
|
+
const r = Pi.getSessionIdWorkflowIdFromLS(), n = e().workflowId, o = r && r[n];
|
|
2658
2658
|
return n && o ? { workflowId: n, sessionId: o } : null;
|
|
2659
2659
|
},
|
|
2660
2660
|
setCurrentSessionDataLsAndStore: (r) => {
|
|
2661
|
-
|
|
2661
|
+
Pi.setSessionIdWorkflowIdToLs(r.sessionId, r.workflowId), t(() => ({ currentSessionData: r }));
|
|
2662
2662
|
},
|
|
2663
2663
|
removeCurrentSessionDataLsAndStore: () => {
|
|
2664
2664
|
const r = e().startConfig, n = "apiKey" in r && typeof r.apiKey == "string" ? r.apiKey : "", i = e().workflowId;
|
|
2665
|
-
n ? nr.removeAuthTokenLs(n) :
|
|
2665
|
+
n ? nr.removeAuthTokenLs(n) : Pi.removeSessionIdWorkflowIdFromLS({ workflowId: i }), t(() => ({ currentSessionData: null })), t({ _sessionIdFromUrl: null });
|
|
2666
2666
|
},
|
|
2667
2667
|
/** Idv integration service getter */
|
|
2668
2668
|
getCurrentSessionId() {
|
|
@@ -2688,7 +2688,7 @@ const Es = {
|
|
|
2688
2688
|
t(() => ({ nonce: r }));
|
|
2689
2689
|
},
|
|
2690
2690
|
getNonce: () => e().nonce,
|
|
2691
|
-
resetProps: () => t(() =>
|
|
2691
|
+
resetProps: () => t(() => T({}, Es)),
|
|
2692
2692
|
setStartConfig: (r) => {
|
|
2693
2693
|
t(() => ({ startConfig: r }));
|
|
2694
2694
|
},
|
|
@@ -2794,7 +2794,7 @@ const xt = class xt extends Ce {
|
|
|
2794
2794
|
underlyingError: n,
|
|
2795
2795
|
underlyingBaseError: i
|
|
2796
2796
|
}) {
|
|
2797
|
-
const o = Ce.getErrorKey(e,
|
|
2797
|
+
const o = Ce.getErrorKey(e, Un);
|
|
2798
2798
|
super({
|
|
2799
2799
|
errorCode: e,
|
|
2800
2800
|
errorCodeKey: o,
|
|
@@ -2840,7 +2840,7 @@ const Rt = class Rt extends Ce {
|
|
|
2840
2840
|
underlyingError: n,
|
|
2841
2841
|
underlyingBaseError: i
|
|
2842
2842
|
}) {
|
|
2843
|
-
const o = Ce.getErrorKey(e,
|
|
2843
|
+
const o = Ce.getErrorKey(e, Le);
|
|
2844
2844
|
super({
|
|
2845
2845
|
errorCode: e,
|
|
2846
2846
|
errorCodeKey: o,
|
|
@@ -2901,7 +2901,7 @@ const Nt = class Nt extends Ce {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
};
|
|
2903
2903
|
Nt.MODULE = vt, Nt.ERROR_ENUM_NAME = "ConnectionError", Nt.SHORT_CODE = "CO";
|
|
2904
|
-
let
|
|
2904
|
+
let Lr = Nt;
|
|
2905
2905
|
const Dt = class Dt extends Ce {
|
|
2906
2906
|
constructor({
|
|
2907
2907
|
errorCode: e,
|
|
@@ -2925,7 +2925,7 @@ const Dt = class Dt extends Ce {
|
|
|
2925
2925
|
};
|
|
2926
2926
|
Dt.MODULE = vt, Dt.ERROR_ENUM_NAME = "SessionError", Dt.SHORT_CODE = "SE";
|
|
2927
2927
|
let Vr = Dt;
|
|
2928
|
-
const
|
|
2928
|
+
const Pt = class Pt extends Ce {
|
|
2929
2929
|
constructor({
|
|
2930
2930
|
errorCode: e,
|
|
2931
2931
|
message: r,
|
|
@@ -2936,41 +2936,41 @@ const Mt = class Mt extends Ce {
|
|
|
2936
2936
|
super({
|
|
2937
2937
|
errorCode: e,
|
|
2938
2938
|
errorCodeKey: o,
|
|
2939
|
-
errorEnumName:
|
|
2940
|
-
module:
|
|
2939
|
+
errorEnumName: Pt.ERROR_ENUM_NAME,
|
|
2940
|
+
module: Pt.MODULE,
|
|
2941
2941
|
message: r,
|
|
2942
2942
|
underlyingError: n,
|
|
2943
2943
|
underlyingBaseError: i,
|
|
2944
|
-
domain:
|
|
2945
|
-
shortDomainCode:
|
|
2944
|
+
domain: Pt.ERROR_ENUM_NAME,
|
|
2945
|
+
shortDomainCode: Pt.SHORT_CODE
|
|
2946
2946
|
});
|
|
2947
2947
|
}
|
|
2948
2948
|
};
|
|
2949
|
-
|
|
2950
|
-
let ir =
|
|
2951
|
-
const
|
|
2949
|
+
Pt.MODULE = vt, Pt.ERROR_ENUM_NAME = "StartSessionError", Pt.SHORT_CODE = "ST";
|
|
2950
|
+
let ir = Pt;
|
|
2951
|
+
const Mt = class Mt extends Ce {
|
|
2952
2952
|
constructor({
|
|
2953
2953
|
errorCode: e,
|
|
2954
2954
|
message: r,
|
|
2955
2955
|
underlyingError: n,
|
|
2956
2956
|
underlyingBaseError: i
|
|
2957
2957
|
}) {
|
|
2958
|
-
const o = Ce.getErrorKey(e,
|
|
2958
|
+
const o = Ce.getErrorKey(e, Ln);
|
|
2959
2959
|
super({
|
|
2960
2960
|
errorCode: e,
|
|
2961
2961
|
errorCodeKey: o,
|
|
2962
|
-
errorEnumName:
|
|
2963
|
-
module:
|
|
2962
|
+
errorEnumName: Mt.ERROR_ENUM_NAME,
|
|
2963
|
+
module: Mt.MODULE,
|
|
2964
2964
|
message: r,
|
|
2965
2965
|
underlyingError: n,
|
|
2966
2966
|
underlyingBaseError: i,
|
|
2967
|
-
domain:
|
|
2968
|
-
shortDomainCode:
|
|
2967
|
+
domain: Mt.ERROR_ENUM_NAME,
|
|
2968
|
+
shortDomainCode: Mt.SHORT_CODE
|
|
2969
2969
|
});
|
|
2970
2970
|
}
|
|
2971
2971
|
};
|
|
2972
|
-
|
|
2973
|
-
let jn =
|
|
2972
|
+
Mt.MODULE = vt, Mt.ERROR_ENUM_NAME = "DeinitializationError", Mt.SHORT_CODE = "DE";
|
|
2973
|
+
let jn = Mt;
|
|
2974
2974
|
const Ft = class Ft extends Ce {
|
|
2975
2975
|
constructor({
|
|
2976
2976
|
errorCode: e,
|
|
@@ -3124,17 +3124,17 @@ const Ed = (t, e) => t.reduce((r, n) => {
|
|
|
3124
3124
|
if (n.answerType === Fi.text && (i = n.property) != null && i.id) {
|
|
3125
3125
|
const a = e.find((l) => l.name === n.property.id);
|
|
3126
3126
|
if (a != null && a.string)
|
|
3127
|
-
return X(
|
|
3127
|
+
return X(T({}, r), { [n.id]: a.string });
|
|
3128
3128
|
}
|
|
3129
3129
|
if (n.answerType === Fi.selector && (o = n.property) != null && o.id) {
|
|
3130
3130
|
const a = e.find((l) => l.name === n.property.id);
|
|
3131
3131
|
if (a != null && a.string)
|
|
3132
|
-
return X(
|
|
3132
|
+
return X(T({}, r), { [n.id]: a.string });
|
|
3133
3133
|
}
|
|
3134
3134
|
if (n.answerType === Fi.multiSelector && (s = n.property) != null && s.id) {
|
|
3135
3135
|
const a = e.find((l) => l.name === n.property.id);
|
|
3136
3136
|
if (a != null && a.array)
|
|
3137
|
-
return X(
|
|
3137
|
+
return X(T({}, r), { [n.id]: a.array });
|
|
3138
3138
|
}
|
|
3139
3139
|
return r;
|
|
3140
3140
|
}, {}), za = (t) => new Promise((e, r) => {
|
|
@@ -3302,7 +3302,7 @@ function Dd({ size: t }) {
|
|
|
3302
3302
|
/* @__PURE__ */ u("rect", { x: "29.9004", y: "23.3999", width: "12", height: "2.4", fill: "#0E1F97" })
|
|
3303
3303
|
] });
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function Pd({ size: t, color: e }) {
|
|
3306
3306
|
return /* @__PURE__ */ u("svg", { width: t || 24, height: t || 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3307
3307
|
/* @__PURE__ */ u(
|
|
3308
3308
|
"path",
|
|
@@ -3321,7 +3321,7 @@ function Md({ size: t, color: e }) {
|
|
|
3321
3321
|
/* @__PURE__ */ u("rect", { x: "13", y: "18", width: "2", height: "8", transform: "rotate(-180 13 18)", fill: "#8C8C8C" })
|
|
3322
3322
|
] });
|
|
3323
3323
|
}
|
|
3324
|
-
function
|
|
3324
|
+
function Md({ size: t }) {
|
|
3325
3325
|
return /* @__PURE__ */ u("svg", { width: t || 24, height: t || 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3326
3326
|
/* @__PURE__ */ u("rect", { x: "12.5", y: "1.5", width: "10", height: "21", rx: "1.5", stroke: "#8C8C8C" }),
|
|
3327
3327
|
/* @__PURE__ */ u(
|
|
@@ -3368,7 +3368,7 @@ const Is = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
|
3368
3368
|
fill: e || "rgba(0,0,0,0.6)",
|
|
3369
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" })
|
|
3370
3370
|
}
|
|
3371
|
-
),
|
|
3371
|
+
), Ud = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
3372
3372
|
"svg",
|
|
3373
3373
|
{
|
|
3374
3374
|
width: t ? t * 3 : 39,
|
|
@@ -3416,7 +3416,7 @@ const Is = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
|
3416
3416
|
]
|
|
3417
3417
|
}
|
|
3418
3418
|
);
|
|
3419
|
-
function
|
|
3419
|
+
function Ld({ size: t, color: e }) {
|
|
3420
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: [
|
|
3421
3421
|
/* @__PURE__ */ u(
|
|
3422
3422
|
"ellipse",
|
|
@@ -3610,7 +3610,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3610
3610
|
GALLERY_ICON: "gallery",
|
|
3611
3611
|
CAMERA_ICON: "camera"
|
|
3612
3612
|
}, Yi = {
|
|
3613
|
-
[ye.WARNING]:
|
|
3613
|
+
[ye.WARNING]: Ld,
|
|
3614
3614
|
[ye.SPINNER]: Ga,
|
|
3615
3615
|
[ye.ERROR]: Id,
|
|
3616
3616
|
[ye.AGE]: xd,
|
|
@@ -3619,11 +3619,11 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3619
3619
|
[ye.APPLE]: kd,
|
|
3620
3620
|
[ye.BACK]: Nd,
|
|
3621
3621
|
[ye.BIOMETRIC]: Dd,
|
|
3622
|
-
[ye.INFO]:
|
|
3623
|
-
[ye.TO_MOBILE]:
|
|
3622
|
+
[ye.INFO]: Pd,
|
|
3623
|
+
[ye.TO_MOBILE]: Md,
|
|
3624
3624
|
[ye.UNDERAGE]: Fd,
|
|
3625
3625
|
[ye.CROSS]: Is,
|
|
3626
|
-
[ye.REGULA_LOGO]:
|
|
3626
|
+
[ye.REGULA_LOGO]: Ud,
|
|
3627
3627
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3628
3628
|
// @ts-ignore
|
|
3629
3629
|
[ye.DEFAULT]: Zd,
|
|
@@ -3653,7 +3653,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3653
3653
|
if (f === Rn.ASPECT_FILL) return "cover";
|
|
3654
3654
|
if (f === Rn.ASPECT_FIT) return "contain";
|
|
3655
3655
|
if (f === Rn.FILL) return "fill";
|
|
3656
|
-
}, [a, l] =
|
|
3656
|
+
}, [a, l] = Pe(!0), d = a && e, p = () => {
|
|
3657
3657
|
l(!1);
|
|
3658
3658
|
};
|
|
3659
3659
|
if (r)
|
|
@@ -3717,7 +3717,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3717
3717
|
height: "100%",
|
|
3718
3718
|
width: "100%"
|
|
3719
3719
|
},
|
|
3720
|
-
children: /* @__PURE__ */ u("a", { href: "", children: /* @__PURE__ */ u($e,
|
|
3720
|
+
children: /* @__PURE__ */ u("a", { href: "", children: /* @__PURE__ */ u($e, T({}, t)) })
|
|
3721
3721
|
}
|
|
3722
3722
|
), Xd = {
|
|
3723
3723
|
display: "flex",
|
|
@@ -3738,7 +3738,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3738
3738
|
highlightColor: s
|
|
3739
3739
|
}) => {
|
|
3740
3740
|
var c;
|
|
3741
|
-
const [a, l] =
|
|
3741
|
+
const [a, l] = Pe(!1), d = a && s ? s : i, { perform: p } = ur();
|
|
3742
3742
|
return /* @__PURE__ */ u(
|
|
3743
3743
|
"button",
|
|
3744
3744
|
{
|
|
@@ -3750,7 +3750,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3750
3750
|
Eo(g), p(g, Bn.DATA);
|
|
3751
3751
|
},
|
|
3752
3752
|
className: "hover-button",
|
|
3753
|
-
style: X(
|
|
3753
|
+
style: X(T(T({}, Xd), o && { borderRadius: o }), {
|
|
3754
3754
|
backgroundColor: (c = de(d)) != null ? c : "transparent"
|
|
3755
3755
|
}),
|
|
3756
3756
|
onMouseEnter: () => l(!0),
|
|
@@ -3766,10 +3766,10 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3766
3766
|
width: "24px",
|
|
3767
3767
|
height: "24px"
|
|
3768
3768
|
},
|
|
3769
|
-
children: /* @__PURE__ */ u($e,
|
|
3769
|
+
children: /* @__PURE__ */ u($e, T({}, r))
|
|
3770
3770
|
}
|
|
3771
3771
|
),
|
|
3772
|
-
n && /* @__PURE__ */ u("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ u(Oe,
|
|
3772
|
+
n && /* @__PURE__ */ u("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ u(Oe, T({}, n)) })
|
|
3773
3773
|
]
|
|
3774
3774
|
}
|
|
3775
3775
|
);
|
|
@@ -3786,7 +3786,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3786
3786
|
},
|
|
3787
3787
|
"data-ui": "gui-header",
|
|
3788
3788
|
part: "gui-header",
|
|
3789
|
-
children: /* @__PURE__ */ u("div", { children: t && /* @__PURE__ */ u(Qd,
|
|
3789
|
+
children: /* @__PURE__ */ u("div", { children: t && /* @__PURE__ */ u(Qd, T({ dataTestId: "close-btn" }, t)) })
|
|
3790
3790
|
}
|
|
3791
3791
|
);
|
|
3792
3792
|
function tu(t) {
|
|
@@ -3844,7 +3844,7 @@ const Oe = ({
|
|
|
3844
3844
|
onClick: p
|
|
3845
3845
|
}) => {
|
|
3846
3846
|
var S, C;
|
|
3847
|
-
const [f, c] =
|
|
3847
|
+
const [f, c] = Pe(!1), g = f && de(o) ? o : n, { perform: w } = ur(), h = (b) => {
|
|
3848
3848
|
if (p && p(b), d !== "RESPONSE_BODY") return;
|
|
3849
3849
|
const I = JSON.parse(JSON.stringify(r));
|
|
3850
3850
|
Eo(I), w(I, Bn.DATA);
|
|
@@ -3882,14 +3882,14 @@ const Oe = ({
|
|
|
3882
3882
|
onMouseEnter: () => c(!0),
|
|
3883
3883
|
onMouseLeave: () => c(!1),
|
|
3884
3884
|
children: [
|
|
3885
|
-
e && /* @__PURE__ */ u($e,
|
|
3885
|
+
e && /* @__PURE__ */ u($e, T({}, e)),
|
|
3886
3886
|
t && /* @__PURE__ */ u(
|
|
3887
3887
|
"div",
|
|
3888
3888
|
{
|
|
3889
3889
|
style: {
|
|
3890
3890
|
flexGrow: e ? 0 : 1
|
|
3891
3891
|
},
|
|
3892
|
-
children: /* @__PURE__ */ u(Oe,
|
|
3892
|
+
children: /* @__PURE__ */ u(Oe, T({}, t))
|
|
3893
3893
|
}
|
|
3894
3894
|
)
|
|
3895
3895
|
]
|
|
@@ -3897,7 +3897,7 @@ const Oe = ({
|
|
|
3897
3897
|
);
|
|
3898
3898
|
}, ru = (r) => {
|
|
3899
3899
|
var n = r, { items: t } = n, e = Xt(n, ["items"]);
|
|
3900
|
-
return /* @__PURE__ */ u("div", { part: "gui-buttons", "data-ui": "gui-buttons", style:
|
|
3900
|
+
return /* @__PURE__ */ u("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: T(T({}, {
|
|
3901
3901
|
display: "flex",
|
|
3902
3902
|
flexDirection: "row",
|
|
3903
3903
|
flexWrap: "wrap",
|
|
@@ -3911,7 +3911,7 @@ const Oe = ({
|
|
|
3911
3911
|
paddingTop: "20px"
|
|
3912
3912
|
}), e), children: t.map((o) => {
|
|
3913
3913
|
var s;
|
|
3914
|
-
return /* @__PURE__ */ u(Zn,
|
|
3914
|
+
return /* @__PURE__ */ u(Zn, T({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Od());
|
|
3915
3915
|
}) });
|
|
3916
3916
|
}, Yt = ({
|
|
3917
3917
|
children: t,
|
|
@@ -3943,7 +3943,7 @@ const Oe = ({
|
|
|
3943
3943
|
part: "gui-base-container",
|
|
3944
3944
|
"data-ui": "gui-base-container",
|
|
3945
3945
|
id: "base-container",
|
|
3946
|
-
style:
|
|
3946
|
+
style: T({}, a),
|
|
3947
3947
|
children: [
|
|
3948
3948
|
e && /* @__PURE__ */ u(
|
|
3949
3949
|
"div",
|
|
@@ -3970,7 +3970,7 @@ const Oe = ({
|
|
|
3970
3970
|
width: "100%",
|
|
3971
3971
|
height: s
|
|
3972
3972
|
},
|
|
3973
|
-
children: /* @__PURE__ */ u(Jd,
|
|
3973
|
+
children: /* @__PURE__ */ u(Jd, T({}, r))
|
|
3974
3974
|
}
|
|
3975
3975
|
)
|
|
3976
3976
|
]
|
|
@@ -4009,7 +4009,7 @@ const Oe = ({
|
|
|
4009
4009
|
buttons: o,
|
|
4010
4010
|
backgroundColor: s
|
|
4011
4011
|
}) => {
|
|
4012
|
-
const a = it(null), [l, d] =
|
|
4012
|
+
const a = it(null), [l, d] = Pe(!1);
|
|
4013
4013
|
return nt(() => {
|
|
4014
4014
|
a.current && d(a.current.scrollHeight > a.current.clientHeight + 2);
|
|
4015
4015
|
}, []), /* @__PURE__ */ u(Yt, { header: t, buttons: o, footer: e, backgroundColor: s, children: /* @__PURE__ */ u(
|
|
@@ -4026,7 +4026,7 @@ const Oe = ({
|
|
|
4026
4026
|
flexDirection: "column"
|
|
4027
4027
|
},
|
|
4028
4028
|
children: [
|
|
4029
|
-
r && /* @__PURE__ */ u("div", { style: bd, children: /* @__PURE__ */ u($e,
|
|
4029
|
+
r && /* @__PURE__ */ u("div", { style: bd, children: /* @__PURE__ */ u($e, T({}, r)) }),
|
|
4030
4030
|
(n == null ? void 0 : n.text) && /* @__PURE__ */ u(
|
|
4031
4031
|
"div",
|
|
4032
4032
|
{
|
|
@@ -4051,12 +4051,12 @@ const Oe = ({
|
|
|
4051
4051
|
alignItems: "center",
|
|
4052
4052
|
alignContent: "center"
|
|
4053
4053
|
},
|
|
4054
|
-
children: n && /* @__PURE__ */ u(Oe,
|
|
4054
|
+
children: n && /* @__PURE__ */ u(Oe, T({}, n))
|
|
4055
4055
|
}
|
|
4056
4056
|
)
|
|
4057
4057
|
}
|
|
4058
4058
|
),
|
|
4059
|
-
i && /* @__PURE__ */ u("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ u(ni,
|
|
4059
|
+
i && /* @__PURE__ */ u("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ u(ni, T({}, i)) })
|
|
4060
4060
|
]
|
|
4061
4061
|
}
|
|
4062
4062
|
) });
|
|
@@ -4090,13 +4090,13 @@ const Oe = ({
|
|
|
4090
4090
|
part: "gui-info-screen-container",
|
|
4091
4091
|
"data-ui": "gui-info-screen-container",
|
|
4092
4092
|
id: "info-screen-container",
|
|
4093
|
-
style: X(
|
|
4093
|
+
style: X(T({}, ou), {
|
|
4094
4094
|
justifyContent: n ? "flex-start" : "center"
|
|
4095
4095
|
}),
|
|
4096
4096
|
children: [
|
|
4097
|
-
n && /* @__PURE__ */ u("div", { style: iu, children: /* @__PURE__ */ u($e,
|
|
4098
|
-
t && /* @__PURE__ */ u("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ u(Oe,
|
|
4099
|
-
i && /* @__PURE__ */ u("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ u(ni,
|
|
4097
|
+
n && /* @__PURE__ */ u("div", { style: iu, children: /* @__PURE__ */ u($e, T({}, n)) }),
|
|
4098
|
+
t && /* @__PURE__ */ u("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ u(Oe, T({}, t)) }),
|
|
4099
|
+
i && /* @__PURE__ */ u("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ u(ni, T({}, i)) })
|
|
4100
4100
|
]
|
|
4101
4101
|
}
|
|
4102
4102
|
) }) }), au = ({ indicatorColor: t = "black" }) => /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(Ga, { indicatorColor: t }) }), xs = ({
|
|
@@ -4130,7 +4130,7 @@ const Oe = ({
|
|
|
4130
4130
|
"div",
|
|
4131
4131
|
{
|
|
4132
4132
|
className: "details-item",
|
|
4133
|
-
style: X(
|
|
4133
|
+
style: X(T({}, {
|
|
4134
4134
|
display: "flex",
|
|
4135
4135
|
alignItems: "flex-start",
|
|
4136
4136
|
justifyContent: "space-between",
|
|
@@ -4149,12 +4149,12 @@ const Oe = ({
|
|
|
4149
4149
|
flex: "0 1 auto"
|
|
4150
4150
|
},
|
|
4151
4151
|
children: [
|
|
4152
|
-
/* @__PURE__ */ u("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ u(Oe,
|
|
4153
|
-
/* @__PURE__ */ u("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ u(ni,
|
|
4152
|
+
/* @__PURE__ */ u("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ u(Oe, T({}, t)) }),
|
|
4153
|
+
/* @__PURE__ */ u("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ u(ni, T({}, e)) })
|
|
4154
4154
|
]
|
|
4155
4155
|
}
|
|
4156
4156
|
),
|
|
4157
|
-
/* @__PURE__ */ u("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ u($e,
|
|
4157
|
+
/* @__PURE__ */ u("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ u($e, T({}, r)) })
|
|
4158
4158
|
]
|
|
4159
4159
|
}
|
|
4160
4160
|
), cu = {
|
|
@@ -4165,11 +4165,11 @@ const Oe = ({
|
|
|
4165
4165
|
"div",
|
|
4166
4166
|
{
|
|
4167
4167
|
className: "details",
|
|
4168
|
-
style: X(
|
|
4168
|
+
style: X(T({}, cu), {
|
|
4169
4169
|
backgroundColor: de(e) || "white",
|
|
4170
4170
|
borderRadius: r
|
|
4171
4171
|
}),
|
|
4172
|
-
children: t.map((n, i) => /* @__PURE__ */ u(lu,
|
|
4172
|
+
children: t.map((n, i) => /* @__PURE__ */ u(lu, T({ isLastChild: i === t.length - 1 }, n), i))
|
|
4173
4173
|
}
|
|
4174
4174
|
), uu = ({
|
|
4175
4175
|
title: t,
|
|
@@ -4179,7 +4179,7 @@ const Oe = ({
|
|
|
4179
4179
|
buttons: i,
|
|
4180
4180
|
backgroundColor: o
|
|
4181
4181
|
}) => {
|
|
4182
|
-
const s = it(null), [a, l] =
|
|
4182
|
+
const s = it(null), [a, l] = Pe(!1);
|
|
4183
4183
|
return nt(() => {
|
|
4184
4184
|
s.current && l(s.current.scrollHeight > s.current.clientHeight);
|
|
4185
4185
|
}, []), /* @__PURE__ */ u(Yt, { header: e, buttons: i, footer: r, backgroundColor: o, children: /* @__PURE__ */ u(
|
|
@@ -4195,8 +4195,8 @@ const Oe = ({
|
|
|
4195
4195
|
},
|
|
4196
4196
|
ref: s,
|
|
4197
4197
|
children: [
|
|
4198
|
-
/* @__PURE__ */ u("div", { style: { marginBottom: t ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: t && /* @__PURE__ */ u(Oe,
|
|
4199
|
-
n && /* @__PURE__ */ u(du,
|
|
4198
|
+
/* @__PURE__ */ u("div", { style: { marginBottom: t ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: t && /* @__PURE__ */ u(Oe, T({}, t)) }),
|
|
4199
|
+
n && /* @__PURE__ */ u(du, T({}, n))
|
|
4200
4200
|
]
|
|
4201
4201
|
}
|
|
4202
4202
|
) });
|
|
@@ -4222,7 +4222,7 @@ function De(t) {
|
|
|
4222
4222
|
return t;
|
|
4223
4223
|
return e;
|
|
4224
4224
|
}
|
|
4225
|
-
var ii = (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 ii = (t) => /^\w*$/.test(t), Ie = (t) => t === void 0, Oo = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Io = (t) => Oo(t.replace(/["|']|\]/g, "").split(/\.|\[/)), L = (t, e, r) => {
|
|
4226
4226
|
if (!e || !Ne(t))
|
|
4227
4227
|
return r;
|
|
4228
4228
|
const n = (ii(e) ? [e] : Io(e)).reduce((i, o) => qe(i) ? i : i[o], t);
|
|
@@ -4293,14 +4293,14 @@ function pu(t) {
|
|
|
4293
4293
|
formState: l.current,
|
|
4294
4294
|
exact: o,
|
|
4295
4295
|
callback: (d) => {
|
|
4296
|
-
!n && a(
|
|
4296
|
+
!n && a(T(T({}, r._formState), d));
|
|
4297
4297
|
}
|
|
4298
4298
|
}), [i, n, o]), fe.useEffect(() => {
|
|
4299
4299
|
l.current.isValid && r._setValid(!0);
|
|
4300
4300
|
}, [r]), fe.useMemo(() => Qa(s, r, l.current, !1), [s, r]);
|
|
4301
4301
|
}
|
|
4302
|
-
var et = (t) => typeof t == "string", el = (t, e, r, n, i) => et(t) ? (n && e.watch.add(t),
|
|
4303
|
-
function
|
|
4302
|
+
var et = (t) => typeof t == "string", el = (t, e, r, n, i) => et(t) ? (n && e.watch.add(t), L(r, t, i)) : Array.isArray(t) ? t.map((o) => (n && e.watch.add(o), L(r, o))) : (n && (e.watchAll = !0), r), Ji = (t) => qe(t) || !Za(t);
|
|
4303
|
+
function Lt(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
4304
4304
|
if (Ji(t) || Ji(e))
|
|
4305
4305
|
return t === e;
|
|
4306
4306
|
if (sr(t) && sr(e))
|
|
@@ -4317,7 +4317,7 @@ function Ut(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
4317
4317
|
return !1;
|
|
4318
4318
|
if (o !== "ref") {
|
|
4319
4319
|
const a = e[o];
|
|
4320
|
-
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) ? !Lt(s, a, r) : s !== a)
|
|
4321
4321
|
return !1;
|
|
4322
4322
|
}
|
|
4323
4323
|
}
|
|
@@ -4338,7 +4338,7 @@ function _u(t) {
|
|
|
4338
4338
|
const h = el(n, r._names, w.values || r._formValues, !1, l.current);
|
|
4339
4339
|
if (d.current) {
|
|
4340
4340
|
const m = d.current(h);
|
|
4341
|
-
|
|
4341
|
+
Lt(m, p.current) || (g(m), p.current = m);
|
|
4342
4342
|
} else
|
|
4343
4343
|
g(h);
|
|
4344
4344
|
}
|
|
@@ -4346,7 +4346,7 @@ function _u(t) {
|
|
|
4346
4346
|
}), [r, o, n, s]), fe.useEffect(() => r._removeUnmounted()), c;
|
|
4347
4347
|
}
|
|
4348
4348
|
function mu(t) {
|
|
4349
|
-
const e = xo(), { name: r, disabled: n, control: i = e.control, shouldUnregister: o, defaultValue: s } = t, a = Ja(i._names.array, r), l = fe.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 = fe.useMemo(() => L(i._formValues, r, L(i._defaultValues, r, s)), [i, r, s]), d = _u({
|
|
4350
4350
|
control: i,
|
|
4351
4351
|
name: r,
|
|
4352
4352
|
defaultValue: l,
|
|
@@ -4355,30 +4355,30 @@ function mu(t) {
|
|
|
4355
4355
|
control: i,
|
|
4356
4356
|
name: r,
|
|
4357
4357
|
exact: !0
|
|
4358
|
-
}), f = fe.useRef(t), c = fe.useRef(void 0), g = fe.useRef(i.register(r,
|
|
4358
|
+
}), f = fe.useRef(t), c = fe.useRef(void 0), g = fe.useRef(i.register(r, T(X(T({}, t.rules), {
|
|
4359
4359
|
value: d
|
|
4360
4360
|
}), Qe(t.disabled) ? { disabled: t.disabled } : {})));
|
|
4361
4361
|
f.current = t;
|
|
4362
4362
|
const w = fe.useMemo(() => Object.defineProperties({}, {
|
|
4363
4363
|
invalid: {
|
|
4364
4364
|
enumerable: !0,
|
|
4365
|
-
get: () => !!
|
|
4365
|
+
get: () => !!L(p.errors, r)
|
|
4366
4366
|
},
|
|
4367
4367
|
isDirty: {
|
|
4368
4368
|
enumerable: !0,
|
|
4369
|
-
get: () => !!
|
|
4369
|
+
get: () => !!L(p.dirtyFields, r)
|
|
4370
4370
|
},
|
|
4371
4371
|
isTouched: {
|
|
4372
4372
|
enumerable: !0,
|
|
4373
|
-
get: () => !!
|
|
4373
|
+
get: () => !!L(p.touchedFields, r)
|
|
4374
4374
|
},
|
|
4375
4375
|
isValidating: {
|
|
4376
4376
|
enumerable: !0,
|
|
4377
|
-
get: () => !!
|
|
4377
|
+
get: () => !!L(p.validatingFields, r)
|
|
4378
4378
|
},
|
|
4379
4379
|
error: {
|
|
4380
4380
|
enumerable: !0,
|
|
4381
|
-
get: () =>
|
|
4381
|
+
get: () => L(p.errors, r)
|
|
4382
4382
|
}
|
|
4383
4383
|
}), [p, r]), h = fe.useCallback((b) => g.current.onChange({
|
|
4384
4384
|
target: {
|
|
@@ -4388,19 +4388,19 @@ function mu(t) {
|
|
|
4388
4388
|
type: Yn.CHANGE
|
|
4389
4389
|
}), [r]), m = fe.useCallback(() => g.current.onBlur({
|
|
4390
4390
|
target: {
|
|
4391
|
-
value:
|
|
4391
|
+
value: L(i._formValues, r),
|
|
4392
4392
|
name: r
|
|
4393
4393
|
},
|
|
4394
4394
|
type: Yn.BLUR
|
|
4395
4395
|
}), [r, i._formValues]), S = fe.useCallback((b) => {
|
|
4396
|
-
const I =
|
|
4396
|
+
const I = L(i._fields, r);
|
|
4397
4397
|
I && b && (I._f.ref = {
|
|
4398
4398
|
focus: () => b.focus && b.focus(),
|
|
4399
4399
|
select: () => b.select && b.select(),
|
|
4400
4400
|
setCustomValidity: (k) => b.setCustomValidity(k),
|
|
4401
4401
|
reportValidity: () => b.reportValidity()
|
|
4402
4402
|
});
|
|
4403
|
-
}, [i._fields, r]), C = fe.useMemo(() => X(
|
|
4403
|
+
}, [i._fields, r]), C = fe.useMemo(() => X(T({
|
|
4404
4404
|
name: r,
|
|
4405
4405
|
value: d
|
|
4406
4406
|
}, Qe(n) || p.disabled ? { disabled: p.disabled || n } : {}), {
|
|
@@ -4410,14 +4410,14 @@ function mu(t) {
|
|
|
4410
4410
|
}), [r, n, p.disabled, h, m, S, d]);
|
|
4411
4411
|
return fe.useEffect(() => {
|
|
4412
4412
|
const b = i._options.shouldUnregister || o, I = c.current;
|
|
4413
|
-
I && I !== r && !a && i.unregister(I), i.register(r,
|
|
4413
|
+
I && I !== r && !a && i.unregister(I), i.register(r, T(T({}, f.current.rules), Qe(f.current.disabled) ? { disabled: f.current.disabled } : {}));
|
|
4414
4414
|
const k = (N, R) => {
|
|
4415
|
-
const ae =
|
|
4415
|
+
const ae = L(i._fields, N);
|
|
4416
4416
|
ae && ae._f && (ae._f.mount = R);
|
|
4417
4417
|
};
|
|
4418
4418
|
if (k(r, !0), b) {
|
|
4419
|
-
const N = De(
|
|
4420
|
-
Ee(i._defaultValues, r, N), Ie(
|
|
4419
|
+
const N = De(L(i._options.defaultValues, r, f.current.defaultValue));
|
|
4420
|
+
Ee(i._defaultValues, r, N), Ie(L(i._formValues, r)) && Ee(i._formValues, r, N);
|
|
4421
4421
|
}
|
|
4422
4422
|
return !a && i.register(r), c.current = r, () => {
|
|
4423
4423
|
(a ? b && !i._state.action : b) ? i.unregister(r) : k(r, !1);
|
|
@@ -4434,8 +4434,8 @@ function mu(t) {
|
|
|
4434
4434
|
}), [C, p, w]);
|
|
4435
4435
|
}
|
|
4436
4436
|
const tl = (t) => t.render(mu(t));
|
|
4437
|
-
var gu = (t, e, r, n, i) => e ? X(
|
|
4438
|
-
types: X(
|
|
4437
|
+
var gu = (t, e, r, n, i) => e ? X(T({}, r[t]), {
|
|
4438
|
+
types: X(T({}, r[t] && r[t].types ? r[t].types : {}), {
|
|
4439
4439
|
[n]: i || !0
|
|
4440
4440
|
})
|
|
4441
4441
|
}) : {}, $r = (t) => Array.isArray(t) ? t : [t], As = () => {
|
|
@@ -4475,7 +4475,7 @@ var Ye = (t) => Ne(t) && !Object.keys(t).length, Ro = (t) => t.type === "file",
|
|
|
4475
4475
|
return !1;
|
|
4476
4476
|
const e = t ? t.ownerDocument : 0;
|
|
4477
4477
|
return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
|
|
4478
|
-
}, nl = (t) => t.type === "select-multiple", ko = (t) => t.type === "radio", wu = (t) => ko(t) || Qr(t),
|
|
4478
|
+
}, nl = (t) => t.type === "select-multiple", ko = (t) => t.type === "radio", wu = (t) => ko(t) || Qr(t), Ui = (t) => Jn(t) && t.isConnected;
|
|
4479
4479
|
function vu(t, e) {
|
|
4480
4480
|
const r = e.slice(0, -1).length;
|
|
4481
4481
|
let n = 0;
|
|
@@ -4510,7 +4510,7 @@ function Xi(t, e = {}) {
|
|
|
4510
4510
|
function gr(t, e, r) {
|
|
4511
4511
|
r || (r = Xi(e));
|
|
4512
4512
|
for (const n in t)
|
|
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] = !
|
|
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] = !Lt(t[n], e[n]);
|
|
4514
4514
|
return r;
|
|
4515
4515
|
}
|
|
4516
4516
|
const Rs = {
|
|
@@ -4545,7 +4545,7 @@ function Ds(t) {
|
|
|
4545
4545
|
var Cu = (t, e, r, n) => {
|
|
4546
4546
|
const i = {};
|
|
4547
4547
|
for (const o of t) {
|
|
4548
|
-
const s =
|
|
4548
|
+
const s = L(e, o);
|
|
4549
4549
|
s && Ee(i, o, s._f);
|
|
4550
4550
|
}
|
|
4551
4551
|
return {
|
|
@@ -4554,18 +4554,18 @@ var Cu = (t, e, r, n) => {
|
|
|
4554
4554
|
fields: i,
|
|
4555
4555
|
shouldUseNativeValidation: n
|
|
4556
4556
|
};
|
|
4557
|
-
}, Xn = (t) => t instanceof RegExp, Ar = (t) => Ie(t) ? t : Xn(t) ? t.source : Ne(t) ? Xn(t.value) ? t.value.source : t.value : t,
|
|
4557
|
+
}, Xn = (t) => t instanceof RegExp, Ar = (t) => Ie(t) ? t : Xn(t) ? t.source : Ne(t) ? Xn(t.value) ? t.value.source : t.value : t, Ps = (t) => ({
|
|
4558
4558
|
isOnSubmit: !t || t === ut.onSubmit,
|
|
4559
4559
|
isOnBlur: t === ut.onBlur,
|
|
4560
4560
|
isOnChange: t === ut.onChange,
|
|
4561
4561
|
isOnAll: t === ut.all,
|
|
4562
4562
|
isOnTouch: t === ut.onTouched
|
|
4563
4563
|
});
|
|
4564
|
-
const
|
|
4565
|
-
var Su = (t) => !!t && !!t.validate && !!(ft(t.validate) && t.validate.constructor.name ===
|
|
4564
|
+
const Ms = "AsyncFunction";
|
|
4565
|
+
var Su = (t) => !!t && !!t.validate && !!(ft(t.validate) && t.validate.constructor.name === Ms || Ne(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Ms)), 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))));
|
|
4566
4566
|
const Br = (t, e, r, n) => {
|
|
4567
4567
|
for (const o of r || Object.keys(t)) {
|
|
4568
|
-
const s =
|
|
4568
|
+
const s = L(t, o);
|
|
4569
4569
|
if (s) {
|
|
4570
4570
|
const i = s, { _f: a } = i, l = Xt(i, ["_f"]);
|
|
4571
4571
|
if (a) {
|
|
@@ -4580,8 +4580,8 @@ const Br = (t, e, r, n) => {
|
|
|
4580
4580
|
}
|
|
4581
4581
|
}
|
|
4582
4582
|
};
|
|
4583
|
-
function
|
|
4584
|
-
const n =
|
|
4583
|
+
function Us(t, e, r) {
|
|
4584
|
+
const n = L(t, r);
|
|
4585
4585
|
if (n || ii(r))
|
|
4586
4586
|
return {
|
|
4587
4587
|
error: n,
|
|
@@ -4589,7 +4589,7 @@ function Ls(t, e, r) {
|
|
|
4589
4589
|
};
|
|
4590
4590
|
const i = r.split(".");
|
|
4591
4591
|
for (; i.length; ) {
|
|
4592
|
-
const o = i.join("."), s =
|
|
4592
|
+
const o = i.join("."), s = L(e, o), a = L(t, o);
|
|
4593
4593
|
if (s && !Array.isArray(s) && r !== o)
|
|
4594
4594
|
return { name: r };
|
|
4595
4595
|
if (a && a.type)
|
|
@@ -4612,11 +4612,11 @@ var Tu = (t, e, r, n) => {
|
|
|
4612
4612
|
r(t);
|
|
4613
4613
|
const s = t, { name: i } = s, o = Xt(s, ["name"]);
|
|
4614
4614
|
return Ye(o) || Object.keys(o).length >= Object.keys(e).length || Object.keys(o).find((a) => e[a] === (!n || ut.all));
|
|
4615
|
-
}, Ou = (t, e, r) => !t || !e || t === e || $r(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(
|
|
4616
|
-
const n = $r(
|
|
4615
|
+
}, Ou = (t, e, r) => !t || !e || t === e || $r(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(L(t, e)).length && Re(t, e), Au = (t, e, r) => {
|
|
4616
|
+
const n = $r(L(t, r));
|
|
4617
4617
|
return Ee(n, "root", e[r]), Ee(t, r, n), t;
|
|
4618
4618
|
};
|
|
4619
|
-
function
|
|
4619
|
+
function Ls(t, e, r = "validate") {
|
|
4620
4620
|
if (et(t) || Array.isArray(t) && t.every(et) || Qe(t) && !t)
|
|
4621
4621
|
return {
|
|
4622
4622
|
type: r,
|
|
@@ -4628,14 +4628,14 @@ var _r = (t) => Ne(t) && !Xn(t) ? t : {
|
|
|
4628
4628
|
value: t,
|
|
4629
4629
|
message: ""
|
|
4630
4630
|
}, Vs = (t, e, r, n, i, o) => F(null, null, function* () {
|
|
4631
|
-
const { ref: s, refs: a, required: l, maxLength: d, minLength: p, min: f, max: c, pattern: g, validate: w, name: h, valueAsNumber: m, mount: S } = t._f, C =
|
|
4631
|
+
const { ref: s, refs: a, required: l, maxLength: d, minLength: p, min: f, max: c, pattern: g, validate: w, name: h, valueAsNumber: m, mount: S } = t._f, C = L(r, h);
|
|
4632
4632
|
if (!S || e.has(h))
|
|
4633
4633
|
return {};
|
|
4634
4634
|
const b = a ? a[0] : s, I = (H) => {
|
|
4635
4635
|
i && b.reportValidity && (b.setCustomValidity(Qe(H) ? "" : H || ""), b.reportValidity());
|
|
4636
4636
|
}, k = {}, N = ko(s), R = Qr(s), ae = N || R, _e = (m || Ro(s)) && Ie(s.value) && Ie(C) || Jn(s) && s.value === "" || C === "" || Array.isArray(C) && !C.length, le = gu.bind(null, h, n, k), Z = (H, K, ue, ce = St.maxLength, we = St.minLength) => {
|
|
4637
4637
|
const ve = H ? K : ue;
|
|
4638
|
-
k[h] =
|
|
4638
|
+
k[h] = T({
|
|
4639
4639
|
type: H ? ce : we,
|
|
4640
4640
|
message: ve,
|
|
4641
4641
|
ref: s
|
|
@@ -4643,7 +4643,7 @@ var _r = (t) => Ne(t) && !Xn(t) ? t : {
|
|
|
4643
4643
|
};
|
|
4644
4644
|
if (o ? !Array.isArray(C) || !C.length : l && (!ae && (_e || qe(C)) || Qe(C) && !C || R && !ol(a).isValid || N && !al(a).isValid)) {
|
|
4645
4645
|
const { value: H, message: K } = et(l) ? { value: !!l, message: l } : _r(l);
|
|
4646
|
-
if (H && (k[h] =
|
|
4646
|
+
if (H && (k[h] = T({
|
|
4647
4647
|
type: St.required,
|
|
4648
4648
|
message: K,
|
|
4649
4649
|
ref: b
|
|
@@ -4657,7 +4657,7 @@ var _r = (t) => Ne(t) && !Xn(t) ? t : {
|
|
|
4657
4657
|
const we = s.valueAsNumber || C && +C;
|
|
4658
4658
|
qe(ue.value) || (H = we > ue.value), qe(ce.value) || (K = we < ce.value);
|
|
4659
4659
|
} else {
|
|
4660
|
-
const we = s.valueAsDate || new Date(C), ve = (
|
|
4660
|
+
const we = s.valueAsDate || new Date(C), ve = (U) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + U), ee = s.type == "time", z = s.type == "week";
|
|
4661
4661
|
et(ue.value) && C && (H = ee ? ve(C) > ve(ue.value) : z ? C > ue.value : we > new Date(ue.value)), et(ce.value) && C && (K = ee ? ve(C) < ve(ce.value) : z ? C < ce.value : we < new Date(ce.value));
|
|
4662
4662
|
}
|
|
4663
4663
|
if ((H || K) && (Z(!!H, ue.message, ce.message, St.max, St.min), !n))
|
|
@@ -4670,7 +4670,7 @@ var _r = (t) => Ne(t) && !Xn(t) ? t : {
|
|
|
4670
4670
|
}
|
|
4671
4671
|
if (g && !_e && et(C)) {
|
|
4672
4672
|
const { value: H, message: K } = _r(g);
|
|
4673
|
-
if (Xn(H) && !C.match(H) && (k[h] =
|
|
4673
|
+
if (Xn(H) && !C.match(H) && (k[h] = T({
|
|
4674
4674
|
type: St.pattern,
|
|
4675
4675
|
message: K,
|
|
4676
4676
|
ref: s
|
|
@@ -4679,18 +4679,18 @@ var _r = (t) => Ne(t) && !Xn(t) ? t : {
|
|
|
4679
4679
|
}
|
|
4680
4680
|
if (w) {
|
|
4681
4681
|
if (ft(w)) {
|
|
4682
|
-
const H = yield w(C, r), K =
|
|
4683
|
-
if (K && (k[h] =
|
|
4682
|
+
const H = yield w(C, r), K = Ls(H, b);
|
|
4683
|
+
if (K && (k[h] = T(T({}, K), le(St.validate, K.message)), !n))
|
|
4684
4684
|
return I(K.message), k;
|
|
4685
4685
|
} else if (Ne(w)) {
|
|
4686
4686
|
let H = {};
|
|
4687
4687
|
for (const K in w) {
|
|
4688
4688
|
if (!Ye(H) && !n)
|
|
4689
4689
|
break;
|
|
4690
|
-
const ue =
|
|
4691
|
-
ue && (H =
|
|
4690
|
+
const ue = Ls(yield w[K](C, r), b, K);
|
|
4691
|
+
ue && (H = T(T({}, ue), le(K, ue.message)), I(ue.message), n && (k[h] = H));
|
|
4692
4692
|
}
|
|
4693
|
-
if (!Ye(H) && (k[h] =
|
|
4693
|
+
if (!Ye(H) && (k[h] = T({
|
|
4694
4694
|
ref: b
|
|
4695
4695
|
}, H), !n))
|
|
4696
4696
|
return k;
|
|
@@ -4704,7 +4704,7 @@ const Ru = {
|
|
|
4704
4704
|
shouldFocusError: !0
|
|
4705
4705
|
};
|
|
4706
4706
|
function ku(t = {}) {
|
|
4707
|
-
let e =
|
|
4707
|
+
let e = T(T({}, Ru), t), r = {
|
|
4708
4708
|
submitCount: 0,
|
|
4709
4709
|
isDirty: !1,
|
|
4710
4710
|
isReady: !1,
|
|
@@ -4739,51 +4739,51 @@ function ku(t = {}) {
|
|
|
4739
4739
|
isValid: !1,
|
|
4740
4740
|
errors: !1
|
|
4741
4741
|
};
|
|
4742
|
-
let f =
|
|
4742
|
+
let f = T({}, p);
|
|
4743
4743
|
const c = {
|
|
4744
4744
|
array: As(),
|
|
4745
4745
|
state: As()
|
|
4746
|
-
}, g = e.criteriaMode === ut.all, w = (y) => (
|
|
4747
|
-
clearTimeout(d), d = setTimeout(y,
|
|
4746
|
+
}, g = e.criteriaMode === ut.all, w = (y) => (O) => {
|
|
4747
|
+
clearTimeout(d), d = setTimeout(y, O);
|
|
4748
4748
|
}, h = (y) => F(null, null, function* () {
|
|
4749
4749
|
if (!e.disabled && (p.isValid || f.isValid || y)) {
|
|
4750
|
-
const
|
|
4751
|
-
|
|
4752
|
-
isValid:
|
|
4750
|
+
const O = e.resolver ? Ye((yield R()).errors) : yield _e(n, !0);
|
|
4751
|
+
O !== r.isValid && c.state.next({
|
|
4752
|
+
isValid: O
|
|
4753
4753
|
});
|
|
4754
4754
|
}
|
|
4755
|
-
}), m = (y,
|
|
4755
|
+
}), m = (y, O) => {
|
|
4756
4756
|
!e.disabled && (p.isValidating || p.validatingFields || f.isValidating || f.validatingFields) && ((y || Array.from(a.mount)).forEach((A) => {
|
|
4757
|
-
A && (
|
|
4757
|
+
A && (O ? Ee(r.validatingFields, A, O) : Re(r.validatingFields, A));
|
|
4758
4758
|
}), c.state.next({
|
|
4759
4759
|
validatingFields: r.validatingFields,
|
|
4760
4760
|
isValidating: !Ye(r.validatingFields)
|
|
4761
4761
|
}));
|
|
4762
|
-
}, S = (y,
|
|
4762
|
+
}, S = (y, O = [], A, V, P = !0, M = !0) => {
|
|
4763
4763
|
if (V && A && !e.disabled) {
|
|
4764
|
-
if (s.action = !0,
|
|
4765
|
-
const W = A(
|
|
4766
|
-
|
|
4764
|
+
if (s.action = !0, M && Array.isArray(L(n, y))) {
|
|
4765
|
+
const W = A(L(n, y), V.argA, V.argB);
|
|
4766
|
+
P && Ee(n, y, W);
|
|
4767
4767
|
}
|
|
4768
|
-
if (
|
|
4769
|
-
const W = A(
|
|
4770
|
-
|
|
4768
|
+
if (M && Array.isArray(L(r.errors, y))) {
|
|
4769
|
+
const W = A(L(r.errors, y), V.argA, V.argB);
|
|
4770
|
+
P && Ee(r.errors, y, W), xu(r.errors, y);
|
|
4771
4771
|
}
|
|
4772
|
-
if ((p.touchedFields || f.touchedFields) &&
|
|
4773
|
-
const W = A(
|
|
4774
|
-
|
|
4772
|
+
if ((p.touchedFields || f.touchedFields) && M && Array.isArray(L(r.touchedFields, y))) {
|
|
4773
|
+
const W = A(L(r.touchedFields, y), V.argA, V.argB);
|
|
4774
|
+
P && Ee(r.touchedFields, y, W);
|
|
4775
4775
|
}
|
|
4776
4776
|
(p.dirtyFields || f.dirtyFields) && (r.dirtyFields = gr(i, o)), c.state.next({
|
|
4777
4777
|
name: y,
|
|
4778
|
-
isDirty: Z(y,
|
|
4778
|
+
isDirty: Z(y, O),
|
|
4779
4779
|
dirtyFields: r.dirtyFields,
|
|
4780
4780
|
errors: r.errors,
|
|
4781
4781
|
isValid: r.isValid
|
|
4782
4782
|
});
|
|
4783
4783
|
} else
|
|
4784
|
-
Ee(o, y,
|
|
4785
|
-
}, C = (y,
|
|
4786
|
-
Ee(r.errors, y,
|
|
4784
|
+
Ee(o, y, O);
|
|
4785
|
+
}, C = (y, O) => {
|
|
4786
|
+
Ee(r.errors, y, O), c.state.next({
|
|
4787
4787
|
errors: r.errors
|
|
4788
4788
|
});
|
|
4789
4789
|
}, b = (y) => {
|
|
@@ -4791,271 +4791,271 @@ function ku(t = {}) {
|
|
|
4791
4791
|
errors: r.errors,
|
|
4792
4792
|
isValid: !1
|
|
4793
4793
|
});
|
|
4794
|
-
}, I = (y,
|
|
4795
|
-
const
|
|
4796
|
-
if (
|
|
4797
|
-
const
|
|
4798
|
-
Ie(
|
|
4799
|
-
}
|
|
4800
|
-
}, k = (y,
|
|
4801
|
-
let
|
|
4794
|
+
}, I = (y, O, A, V) => {
|
|
4795
|
+
const P = L(n, y);
|
|
4796
|
+
if (P) {
|
|
4797
|
+
const M = L(o, y, Ie(A) ? L(i, y) : A);
|
|
4798
|
+
Ie(M) || V && V.defaultChecked || O ? Ee(o, y, O ? M : Ds(P._f)) : ue(y, M), s.mount && h();
|
|
4799
|
+
}
|
|
4800
|
+
}, k = (y, O, A, V, P) => {
|
|
4801
|
+
let M = !1, W = !1;
|
|
4802
4802
|
const ne = {
|
|
4803
4803
|
name: y
|
|
4804
4804
|
};
|
|
4805
4805
|
if (!e.disabled) {
|
|
4806
4806
|
if (!A || V) {
|
|
4807
|
-
(p.isDirty || f.isDirty) && (W = r.isDirty, r.isDirty = ne.isDirty = Z(),
|
|
4808
|
-
const G =
|
|
4809
|
-
W = !!
|
|
4807
|
+
(p.isDirty || f.isDirty) && (W = r.isDirty, r.isDirty = ne.isDirty = Z(), M = W !== ne.isDirty);
|
|
4808
|
+
const G = Lt(L(i, y), O);
|
|
4809
|
+
W = !!L(r.dirtyFields, y), G ? Re(r.dirtyFields, y) : Ee(r.dirtyFields, y, !0), ne.dirtyFields = r.dirtyFields, M = M || (p.dirtyFields || f.dirtyFields) && W !== !G;
|
|
4810
4810
|
}
|
|
4811
4811
|
if (A) {
|
|
4812
|
-
const G =
|
|
4813
|
-
G || (Ee(r.touchedFields, y, A), ne.touchedFields = r.touchedFields,
|
|
4812
|
+
const G = L(r.touchedFields, y);
|
|
4813
|
+
G || (Ee(r.touchedFields, y, A), ne.touchedFields = r.touchedFields, M = M || (p.touchedFields || f.touchedFields) && G !== A);
|
|
4814
4814
|
}
|
|
4815
|
-
|
|
4815
|
+
M && P && c.state.next(ne);
|
|
4816
4816
|
}
|
|
4817
|
-
return
|
|
4818
|
-
}, N = (y,
|
|
4819
|
-
const
|
|
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 ? !
|
|
4821
|
-
const W = X(
|
|
4817
|
+
return M ? ne : {};
|
|
4818
|
+
}, N = (y, O, A, V) => {
|
|
4819
|
+
const P = L(r.errors, y), M = (p.isValid || f.isValid) && Qe(O) && r.isValid !== O;
|
|
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 ? !Lt(P, A) : P) || !Ye(V) || M) {
|
|
4821
|
+
const W = X(T(T({}, V), M && Qe(O) ? { isValid: O } : {}), {
|
|
4822
4822
|
errors: r.errors,
|
|
4823
4823
|
name: y
|
|
4824
4824
|
});
|
|
4825
|
-
r =
|
|
4825
|
+
r = T(T({}, r), W), c.state.next(W);
|
|
4826
4826
|
}
|
|
4827
4827
|
}, R = (y) => F(null, null, function* () {
|
|
4828
4828
|
m(y, !0);
|
|
4829
|
-
const
|
|
4830
|
-
return m(y),
|
|
4829
|
+
const O = yield e.resolver(o, e.context, Cu(y || a.mount, n, e.criteriaMode, e.shouldUseNativeValidation));
|
|
4830
|
+
return m(y), O;
|
|
4831
4831
|
}), ae = (y) => F(null, null, function* () {
|
|
4832
|
-
const { errors:
|
|
4832
|
+
const { errors: O } = yield R(y);
|
|
4833
4833
|
if (y)
|
|
4834
4834
|
for (const A of y) {
|
|
4835
|
-
const V =
|
|
4835
|
+
const V = L(O, A);
|
|
4836
4836
|
V ? Ee(r.errors, A, V) : Re(r.errors, A);
|
|
4837
4837
|
}
|
|
4838
4838
|
else
|
|
4839
|
-
r.errors =
|
|
4840
|
-
return
|
|
4841
|
-
}), _e = (V,
|
|
4839
|
+
r.errors = O;
|
|
4840
|
+
return O;
|
|
4841
|
+
}), _e = (V, P, ...M) => F(null, [V, P, ...M], function* (y, O, A = {
|
|
4842
4842
|
valid: !0
|
|
4843
4843
|
}) {
|
|
4844
4844
|
for (const ne in y) {
|
|
4845
4845
|
const G = y[ne];
|
|
4846
4846
|
if (G) {
|
|
4847
|
-
const W = G, { _f: ge } = W,
|
|
4847
|
+
const W = G, { _f: ge } = W, Me = Xt(W, ["_f"]);
|
|
4848
4848
|
if (ge) {
|
|
4849
4849
|
const J = a.array.has(ge.name), oe = G._f && Su(G._f);
|
|
4850
4850
|
oe && p.validatingFields && m([ge.name], !0);
|
|
4851
|
-
const j = yield Vs(G, a.disabled, o, g, e.shouldUseNativeValidation && !
|
|
4852
|
-
if (oe && p.validatingFields && m([ge.name]), j[ge.name] && (A.valid = !1,
|
|
4851
|
+
const j = yield Vs(G, a.disabled, o, g, e.shouldUseNativeValidation && !O, J);
|
|
4852
|
+
if (oe && p.validatingFields && m([ge.name]), j[ge.name] && (A.valid = !1, O))
|
|
4853
4853
|
break;
|
|
4854
|
-
!
|
|
4854
|
+
!O && (L(j, ge.name) ? J ? Au(r.errors, j, ge.name) : Ee(r.errors, ge.name, j[ge.name]) : Re(r.errors, ge.name));
|
|
4855
4855
|
}
|
|
4856
|
-
!Ye(
|
|
4856
|
+
!Ye(Me) && (yield _e(Me, O, A));
|
|
4857
4857
|
}
|
|
4858
4858
|
}
|
|
4859
4859
|
return A.valid;
|
|
4860
4860
|
}), le = () => {
|
|
4861
4861
|
for (const y of a.unMount) {
|
|
4862
|
-
const
|
|
4863
|
-
|
|
4862
|
+
const O = L(n, y);
|
|
4863
|
+
O && (O._f.refs ? O._f.refs.every((A) => !Ui(A)) : !Ui(O._f.ref)) && Be(y);
|
|
4864
4864
|
}
|
|
4865
4865
|
a.unMount = /* @__PURE__ */ new Set();
|
|
4866
|
-
}, Z = (y,
|
|
4867
|
-
const V =
|
|
4868
|
-
let
|
|
4866
|
+
}, Z = (y, O) => !e.disabled && (y && O && Ee(o, y, O), !Lt(U(), i)), H = (y, O, A) => el(y, a, T({}, s.mount ? o : Ie(O) ? i : et(y) ? { [y]: O } : O), A, O), K = (y) => Oo(L(s.mount ? o : i, y, e.shouldUnregister ? L(i, y, []) : [])), ue = (y, O, A = {}) => {
|
|
4867
|
+
const V = L(n, y);
|
|
4868
|
+
let P = O;
|
|
4869
4869
|
if (V) {
|
|
4870
|
-
const
|
|
4871
|
-
|
|
4872
|
-
(!W.defaultChecked || !W.disabled) && (Array.isArray(
|
|
4873
|
-
}) :
|
|
4870
|
+
const M = V._f;
|
|
4871
|
+
M && (!M.disabled && Ee(o, y, sl(O, M)), P = Jn(M.ref) && qe(O) ? "" : O, nl(M.ref) ? [...M.ref.options].forEach((W) => W.selected = P.includes(W.value)) : M.refs ? Qr(M.ref) ? M.refs.forEach((W) => {
|
|
4872
|
+
(!W.defaultChecked || !W.disabled) && (Array.isArray(P) ? W.checked = !!P.find((ne) => ne === W.value) : W.checked = P === W.value || !!P);
|
|
4873
|
+
}) : M.refs.forEach((W) => W.checked = W.value === P) : Ro(M.ref) ? M.ref.value = "" : (M.ref.value = P, M.ref.type || c.state.next({
|
|
4874
4874
|
name: y,
|
|
4875
4875
|
values: De(o)
|
|
4876
4876
|
})));
|
|
4877
4877
|
}
|
|
4878
|
-
(A.shouldDirty || A.shouldTouch) && k(y,
|
|
4879
|
-
}, ce = (y,
|
|
4880
|
-
for (const V in
|
|
4881
|
-
if (!
|
|
4878
|
+
(A.shouldDirty || A.shouldTouch) && k(y, P, A.shouldTouch, A.shouldDirty, !0), A.shouldValidate && z(y);
|
|
4879
|
+
}, ce = (y, O, A) => {
|
|
4880
|
+
for (const V in O) {
|
|
4881
|
+
if (!O.hasOwnProperty(V))
|
|
4882
4882
|
return;
|
|
4883
|
-
const
|
|
4884
|
-
(a.array.has(y) || Ne(
|
|
4883
|
+
const P = O[V], M = y + "." + V, W = L(n, M);
|
|
4884
|
+
(a.array.has(y) || Ne(P) || W && !W._f) && !sr(P) ? ce(M, P, A) : ue(M, P, A);
|
|
4885
4885
|
}
|
|
4886
|
-
}, we = (y,
|
|
4887
|
-
const V =
|
|
4888
|
-
Ee(o, y,
|
|
4886
|
+
}, we = (y, O, A = {}) => {
|
|
4887
|
+
const V = L(n, y), P = a.array.has(y), M = De(O);
|
|
4888
|
+
Ee(o, y, M), P ? (c.array.next({
|
|
4889
4889
|
name: y,
|
|
4890
4890
|
values: De(o)
|
|
4891
4891
|
}), (p.isDirty || p.dirtyFields || f.isDirty || f.dirtyFields) && A.shouldDirty && c.state.next({
|
|
4892
4892
|
name: y,
|
|
4893
4893
|
dirtyFields: gr(i, o),
|
|
4894
|
-
isDirty: Z(y,
|
|
4895
|
-
})) : V && !V._f && !qe(
|
|
4894
|
+
isDirty: Z(y, M)
|
|
4895
|
+
})) : V && !V._f && !qe(M) ? ce(y, M, A) : ue(y, M, A), Fs(y, a) && c.state.next(X(T({}, r), { name: y })), c.state.next({
|
|
4896
4896
|
name: s.mount ? y : void 0,
|
|
4897
4897
|
values: De(o)
|
|
4898
4898
|
});
|
|
4899
4899
|
}, ve = (y) => F(null, null, function* () {
|
|
4900
4900
|
s.mount = !0;
|
|
4901
|
-
const
|
|
4902
|
-
let A =
|
|
4903
|
-
const
|
|
4904
|
-
V = Number.isNaN(G) || sr(G) && isNaN(G.getTime()) ||
|
|
4905
|
-
}, W =
|
|
4906
|
-
if (
|
|
4901
|
+
const O = y.target;
|
|
4902
|
+
let A = O.name, V = !0;
|
|
4903
|
+
const P = L(n, A), M = (G) => {
|
|
4904
|
+
V = Number.isNaN(G) || sr(G) && isNaN(G.getTime()) || Lt(G, L(o, A, G));
|
|
4905
|
+
}, W = Ps(e.mode), ne = Ps(e.reValidateMode);
|
|
4906
|
+
if (P) {
|
|
4907
4907
|
let G, ge;
|
|
4908
|
-
const
|
|
4909
|
-
Ee(o, A,
|
|
4910
|
-
const me = k(A,
|
|
4908
|
+
const Me = O.type ? Ds(P._f) : Ya(y), J = y.type === Yn.BLUR || y.type === Yn.FOCUS_OUT, oe = !Eu(P._f) && !e.resolver && !L(r.errors, A) && !P._f.deps || Iu(J, L(r.touchedFields, A), r.isSubmitted, ne, W), j = Fs(A, a, J);
|
|
4909
|
+
Ee(o, A, Me), J ? (!O || !O.readOnly) && (P._f.onBlur && P._f.onBlur(y), l && l(0)) : P._f.onChange && P._f.onChange(y);
|
|
4910
|
+
const me = k(A, Me, J), He = !Ye(me) || j;
|
|
4911
4911
|
if (!J && c.state.next({
|
|
4912
4912
|
name: A,
|
|
4913
4913
|
type: y.type,
|
|
4914
4914
|
values: De(o)
|
|
4915
4915
|
}), oe)
|
|
4916
|
-
return (p.isValid || f.isValid) && (e.mode === "onBlur" ? J && h() : J || h()), He && c.state.next(
|
|
4917
|
-
if (!J && j && c.state.next(
|
|
4916
|
+
return (p.isValid || f.isValid) && (e.mode === "onBlur" ? J && h() : J || h()), He && c.state.next(T({ name: A }, j ? {} : me));
|
|
4917
|
+
if (!J && j && c.state.next(T({}, r)), e.resolver) {
|
|
4918
4918
|
const { errors: xe } = yield R([A]);
|
|
4919
|
-
if (
|
|
4920
|
-
const he =
|
|
4919
|
+
if (M(Me), V) {
|
|
4920
|
+
const he = Us(r.errors, n, A), q = Us(xe, n, he.name || A);
|
|
4921
4921
|
G = q.error, A = q.name, ge = Ye(xe);
|
|
4922
4922
|
}
|
|
4923
4923
|
} else
|
|
4924
|
-
m([A], !0), G = (yield Vs(
|
|
4925
|
-
V && (
|
|
4924
|
+
m([A], !0), G = (yield Vs(P, a.disabled, o, g, e.shouldUseNativeValidation))[A], m([A]), M(Me), V && (G ? ge = !1 : (p.isValid || f.isValid) && (ge = yield _e(n, !0)));
|
|
4925
|
+
V && (P._f.deps && (!Array.isArray(P._f.deps) || P._f.deps.length > 0) && z(P._f.deps), N(A, ge, G, me));
|
|
4926
4926
|
}
|
|
4927
|
-
}), ee = (y,
|
|
4928
|
-
if (
|
|
4927
|
+
}), ee = (y, O) => {
|
|
4928
|
+
if (L(r.errors, O) && y.focus)
|
|
4929
4929
|
return y.focus(), 1;
|
|
4930
|
-
}, z = (A, ...V) => F(null, [A, ...V], function* (y,
|
|
4931
|
-
let
|
|
4930
|
+
}, z = (A, ...V) => F(null, [A, ...V], function* (y, O = {}) {
|
|
4931
|
+
let P, M;
|
|
4932
4932
|
const W = $r(y);
|
|
4933
4933
|
if (e.resolver) {
|
|
4934
4934
|
const ne = yield ae(Ie(y) ? y : W);
|
|
4935
|
-
|
|
4936
|
-
} else y ? (
|
|
4937
|
-
const G =
|
|
4935
|
+
P = Ye(ne), M = y ? !W.some((G) => L(ne, G)) : P;
|
|
4936
|
+
} else y ? (M = (yield Promise.all(W.map((ne) => F(null, null, function* () {
|
|
4937
|
+
const G = L(n, ne);
|
|
4938
4938
|
return yield _e(G && G._f ? { [ne]: G } : G);
|
|
4939
|
-
})))).every(Boolean), !(!
|
|
4940
|
-
return c.state.next(X(
|
|
4939
|
+
})))).every(Boolean), !(!M && !r.isValid) && h()) : M = P = yield _e(n);
|
|
4940
|
+
return c.state.next(X(T(T({}, !et(y) || (p.isValid || f.isValid) && P !== r.isValid ? {} : { name: y }), e.resolver || !y ? { isValid: P } : {}), {
|
|
4941
4941
|
errors: r.errors
|
|
4942
|
-
})),
|
|
4943
|
-
}),
|
|
4944
|
-
let A =
|
|
4945
|
-
return
|
|
4946
|
-
}, Y = (y,
|
|
4947
|
-
invalid: !!
|
|
4948
|
-
isDirty: !!
|
|
4949
|
-
error:
|
|
4950
|
-
isValidating: !!
|
|
4951
|
-
isTouched: !!
|
|
4942
|
+
})), O.shouldFocus && !M && Br(n, ee, y ? W : a.mount), M;
|
|
4943
|
+
}), U = (y, O) => {
|
|
4944
|
+
let A = T({}, s.mount ? o : i);
|
|
4945
|
+
return O && (A = rl(O.dirtyFields ? r.dirtyFields : r.touchedFields, A)), Ie(y) ? A : et(y) ? L(A, y) : y.map((V) => L(A, V));
|
|
4946
|
+
}, Y = (y, O) => ({
|
|
4947
|
+
invalid: !!L((O || r).errors, y),
|
|
4948
|
+
isDirty: !!L((O || r).dirtyFields, y),
|
|
4949
|
+
error: L((O || r).errors, y),
|
|
4950
|
+
isValidating: !!L(r.validatingFields, y),
|
|
4951
|
+
isTouched: !!L((O || r).touchedFields, y)
|
|
4952
4952
|
}), te = (y) => {
|
|
4953
|
-
y && $r(y).forEach((
|
|
4953
|
+
y && $r(y).forEach((O) => Re(r.errors, O)), c.state.next({
|
|
4954
4954
|
errors: y ? r.errors : {}
|
|
4955
4955
|
});
|
|
4956
|
-
}, Se = (y,
|
|
4957
|
-
const V = (
|
|
4958
|
-
Ee(r.errors, y, X(
|
|
4956
|
+
}, Se = (y, O, A) => {
|
|
4957
|
+
const V = (L(n, y, { _f: {} })._f || {}).ref, ge = L(r.errors, y) || {}, { ref: M, message: W, type: ne } = ge, G = Xt(ge, ["ref", "message", "type"]);
|
|
4958
|
+
Ee(r.errors, y, X(T(T({}, G), O), {
|
|
4959
4959
|
ref: V
|
|
4960
4960
|
})), c.state.next({
|
|
4961
4961
|
name: y,
|
|
4962
4962
|
errors: r.errors,
|
|
4963
4963
|
isValid: !1
|
|
4964
4964
|
}), A && A.shouldFocus && V && V.focus && V.focus();
|
|
4965
|
-
}, re = (y,
|
|
4966
|
-
next: (A) => "values" in A && y(H(void 0,
|
|
4967
|
-
}) : H(y,
|
|
4968
|
-
next: (
|
|
4969
|
-
Ou(y.name,
|
|
4970
|
-
values:
|
|
4971
|
-
}, r),
|
|
4965
|
+
}, re = (y, O) => ft(y) ? c.state.subscribe({
|
|
4966
|
+
next: (A) => "values" in A && y(H(void 0, O), A)
|
|
4967
|
+
}) : H(y, O, !0), $ = (y) => c.state.subscribe({
|
|
4968
|
+
next: (O) => {
|
|
4969
|
+
Ou(y.name, O.name, y.exact) && Tu(O, y.formState || p, Wt, y.reRenderRoot) && y.callback(X(T(T({
|
|
4970
|
+
values: T({}, o)
|
|
4971
|
+
}, r), O), {
|
|
4972
4972
|
defaultValues: i
|
|
4973
4973
|
}));
|
|
4974
4974
|
}
|
|
4975
|
-
}).unsubscribe, Q = (y) => (s.mount = !0, f =
|
|
4975
|
+
}).unsubscribe, Q = (y) => (s.mount = !0, f = T(T({}, f), y.formState), $(X(T({}, y), {
|
|
4976
4976
|
formState: f
|
|
4977
|
-
}))), Be = (y,
|
|
4977
|
+
}))), Be = (y, O = {}) => {
|
|
4978
4978
|
for (const A of y ? $r(y) : a.mount)
|
|
4979
|
-
a.mount.delete(A), a.array.delete(A),
|
|
4979
|
+
a.mount.delete(A), a.array.delete(A), O.keepValue || (Re(n, A), Re(o, A)), !O.keepError && Re(r.errors, A), !O.keepDirty && Re(r.dirtyFields, A), !O.keepTouched && Re(r.touchedFields, A), !O.keepIsValidating && Re(r.validatingFields, A), !e.shouldUnregister && !O.keepDefaultValue && Re(i, A);
|
|
4980
4980
|
c.state.next({
|
|
4981
4981
|
values: De(o)
|
|
4982
|
-
}), c.state.next(
|
|
4983
|
-
}, je = ({ disabled: y, name:
|
|
4984
|
-
(Qe(y) && s.mount || y || a.disabled.has(
|
|
4985
|
-
}, ot = (y,
|
|
4986
|
-
let A =
|
|
4987
|
-
const V = Qe(
|
|
4988
|
-
return Ee(n, y, X(
|
|
4989
|
-
_f:
|
|
4982
|
+
}), c.state.next(T(T({}, r), O.keepDirty ? { isDirty: Z() } : {})), !O.keepIsValid && h();
|
|
4983
|
+
}, je = ({ disabled: y, name: O }) => {
|
|
4984
|
+
(Qe(y) && s.mount || y || a.disabled.has(O)) && (y ? a.disabled.add(O) : a.disabled.delete(O));
|
|
4985
|
+
}, ot = (y, O = {}) => {
|
|
4986
|
+
let A = L(n, y);
|
|
4987
|
+
const V = Qe(O.disabled) || Qe(e.disabled);
|
|
4988
|
+
return Ee(n, y, X(T({}, A || {}), {
|
|
4989
|
+
_f: T(X(T({}, A && A._f ? A._f : { ref: { name: y } }), {
|
|
4990
4990
|
name: y,
|
|
4991
4991
|
mount: !0
|
|
4992
|
-
}),
|
|
4992
|
+
}), O)
|
|
4993
4993
|
})), a.mount.add(y), A ? je({
|
|
4994
|
-
disabled: Qe(
|
|
4994
|
+
disabled: Qe(O.disabled) ? O.disabled : e.disabled,
|
|
4995
4995
|
name: y
|
|
4996
|
-
}) : I(y, !0,
|
|
4997
|
-
required: !!
|
|
4998
|
-
min: Ar(
|
|
4999
|
-
max: Ar(
|
|
5000
|
-
minLength: Ar(
|
|
5001
|
-
maxLength: Ar(
|
|
5002
|
-
pattern: Ar(
|
|
4996
|
+
}) : I(y, !0, O.value), X(T(T({}, V ? { disabled: O.disabled || e.disabled } : {}), e.progressive ? {
|
|
4997
|
+
required: !!O.required,
|
|
4998
|
+
min: Ar(O.min),
|
|
4999
|
+
max: Ar(O.max),
|
|
5000
|
+
minLength: Ar(O.minLength),
|
|
5001
|
+
maxLength: Ar(O.maxLength),
|
|
5002
|
+
pattern: Ar(O.pattern)
|
|
5003
5003
|
} : {}), {
|
|
5004
5004
|
name: y,
|
|
5005
5005
|
onChange: ve,
|
|
5006
5006
|
onBlur: ve,
|
|
5007
|
-
ref: (
|
|
5008
|
-
if (
|
|
5009
|
-
ot(y,
|
|
5010
|
-
const
|
|
5011
|
-
if (W ? ne.find((G) => G ===
|
|
5007
|
+
ref: (P) => {
|
|
5008
|
+
if (P) {
|
|
5009
|
+
ot(y, O), A = L(n, y);
|
|
5010
|
+
const M = Ie(P.value) && P.querySelectorAll && P.querySelectorAll("input,select,textarea")[0] || P, W = wu(M), ne = A._f.refs || [];
|
|
5011
|
+
if (W ? ne.find((G) => G === M) : M === A._f.ref)
|
|
5012
5012
|
return;
|
|
5013
5013
|
Ee(n, y, {
|
|
5014
|
-
_f:
|
|
5014
|
+
_f: T(T({}, A._f), W ? {
|
|
5015
5015
|
refs: [
|
|
5016
|
-
...ne.filter(
|
|
5017
|
-
|
|
5018
|
-
...Array.isArray(
|
|
5016
|
+
...ne.filter(Ui),
|
|
5017
|
+
M,
|
|
5018
|
+
...Array.isArray(L(i, y)) ? [{}] : []
|
|
5019
5019
|
],
|
|
5020
|
-
ref: { type:
|
|
5021
|
-
} : { ref:
|
|
5022
|
-
}), I(y, !1, void 0,
|
|
5020
|
+
ref: { type: M.type, name: y }
|
|
5021
|
+
} : { ref: M })
|
|
5022
|
+
}), I(y, !1, void 0, M);
|
|
5023
5023
|
} else
|
|
5024
|
-
A =
|
|
5024
|
+
A = L(n, y, {}), A._f && (A._f.mount = !1), (e.shouldUnregister || O.shouldUnregister) && !(Ja(a.array, y) && s.action) && a.unMount.add(y);
|
|
5025
5025
|
}
|
|
5026
5026
|
});
|
|
5027
5027
|
}, Xe = () => e.shouldFocusError && Br(n, ee, a.mount), yt = (y) => {
|
|
5028
|
-
Qe(y) && (c.state.next({ disabled: y }), Br(n, (
|
|
5029
|
-
const V =
|
|
5030
|
-
V && (
|
|
5031
|
-
|
|
5028
|
+
Qe(y) && (c.state.next({ disabled: y }), Br(n, (O, A) => {
|
|
5029
|
+
const V = L(n, A);
|
|
5030
|
+
V && (O.disabled = V._f.disabled || y, Array.isArray(V._f.refs) && V._f.refs.forEach((P) => {
|
|
5031
|
+
P.disabled = V._f.disabled || y;
|
|
5032
5032
|
}));
|
|
5033
5033
|
}, 0, !1));
|
|
5034
|
-
}, st = (y,
|
|
5034
|
+
}, st = (y, O) => (A) => F(null, null, function* () {
|
|
5035
5035
|
let V;
|
|
5036
5036
|
A && (A.preventDefault && A.preventDefault(), A.persist && A.persist());
|
|
5037
|
-
let
|
|
5037
|
+
let P = De(o);
|
|
5038
5038
|
if (c.state.next({
|
|
5039
5039
|
isSubmitting: !0
|
|
5040
5040
|
}), e.resolver) {
|
|
5041
|
-
const { errors:
|
|
5042
|
-
r.errors =
|
|
5041
|
+
const { errors: M, values: W } = yield R();
|
|
5042
|
+
r.errors = M, P = De(W);
|
|
5043
5043
|
} else
|
|
5044
5044
|
yield _e(n);
|
|
5045
5045
|
if (a.disabled.size)
|
|
5046
|
-
for (const
|
|
5047
|
-
Re(
|
|
5046
|
+
for (const M of a.disabled)
|
|
5047
|
+
Re(P, M);
|
|
5048
5048
|
if (Re(r.errors, "root"), Ye(r.errors)) {
|
|
5049
5049
|
c.state.next({
|
|
5050
5050
|
errors: {}
|
|
5051
5051
|
});
|
|
5052
5052
|
try {
|
|
5053
|
-
yield y(
|
|
5054
|
-
} catch (
|
|
5055
|
-
V =
|
|
5053
|
+
yield y(P, A);
|
|
5054
|
+
} catch (M) {
|
|
5055
|
+
V = M;
|
|
5056
5056
|
}
|
|
5057
5057
|
} else
|
|
5058
|
-
|
|
5058
|
+
O && (yield O(T({}, r.errors), A)), Xe(), setTimeout(Xe);
|
|
5059
5059
|
if (c.state.next({
|
|
5060
5060
|
isSubmitted: !0,
|
|
5061
5061
|
isSubmitting: !1,
|
|
@@ -5064,22 +5064,22 @@ function ku(t = {}) {
|
|
|
5064
5064
|
errors: r.errors
|
|
5065
5065
|
}), V)
|
|
5066
5066
|
throw V;
|
|
5067
|
-
}), Ht = (y,
|
|
5068
|
-
|
|
5069
|
-
}, bt = (y,
|
|
5070
|
-
const A = y ? De(y) : i, V = De(A),
|
|
5071
|
-
if (
|
|
5072
|
-
if (
|
|
5067
|
+
}), Ht = (y, O = {}) => {
|
|
5068
|
+
L(n, y) && (Ie(O.defaultValue) ? we(y, De(L(i, y))) : (we(y, O.defaultValue), Ee(i, y, De(O.defaultValue))), O.keepTouched || Re(r.touchedFields, y), O.keepDirty || (Re(r.dirtyFields, y), r.isDirty = O.defaultValue ? Z(y, De(L(i, y))) : Z()), O.keepError || (Re(r.errors, y), p.isValid && h()), c.state.next(T({}, r)));
|
|
5069
|
+
}, bt = (y, O = {}) => {
|
|
5070
|
+
const A = y ? De(y) : i, V = De(A), P = Ye(y), M = P ? i : V;
|
|
5071
|
+
if (O.keepDefaultValues || (i = A), !O.keepValues) {
|
|
5072
|
+
if (O.keepDirtyValues) {
|
|
5073
5073
|
const W = /* @__PURE__ */ new Set([
|
|
5074
5074
|
...a.mount,
|
|
5075
5075
|
...Object.keys(gr(i, o))
|
|
5076
5076
|
]);
|
|
5077
5077
|
for (const ne of Array.from(W))
|
|
5078
|
-
|
|
5078
|
+
L(r.dirtyFields, ne) ? Ee(M, ne, L(o, ne)) : we(ne, L(M, ne));
|
|
5079
5079
|
} else {
|
|
5080
5080
|
if (To && Ie(y))
|
|
5081
5081
|
for (const W of a.mount) {
|
|
5082
|
-
const ne =
|
|
5082
|
+
const ne = L(n, W);
|
|
5083
5083
|
if (ne && ne._f) {
|
|
5084
5084
|
const G = Array.isArray(ne._f.refs) ? ne._f.refs[0] : ne._f.ref;
|
|
5085
5085
|
if (Jn(G)) {
|
|
@@ -5091,45 +5091,45 @@ function ku(t = {}) {
|
|
|
5091
5091
|
}
|
|
5092
5092
|
}
|
|
5093
5093
|
}
|
|
5094
|
-
if (
|
|
5094
|
+
if (O.keepFieldsRef)
|
|
5095
5095
|
for (const W of a.mount)
|
|
5096
|
-
we(W,
|
|
5096
|
+
we(W, L(M, W));
|
|
5097
5097
|
else
|
|
5098
5098
|
n = {};
|
|
5099
5099
|
}
|
|
5100
|
-
o = e.shouldUnregister ?
|
|
5101
|
-
values:
|
|
5100
|
+
o = e.shouldUnregister ? O.keepDefaultValues ? De(i) : {} : De(M), c.array.next({
|
|
5101
|
+
values: T({}, M)
|
|
5102
5102
|
}), c.state.next({
|
|
5103
|
-
values:
|
|
5103
|
+
values: T({}, M)
|
|
5104
5104
|
});
|
|
5105
5105
|
}
|
|
5106
5106
|
a = {
|
|
5107
|
-
mount:
|
|
5107
|
+
mount: O.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(),
|
|
5108
5108
|
unMount: /* @__PURE__ */ new Set(),
|
|
5109
5109
|
array: /* @__PURE__ */ new Set(),
|
|
5110
5110
|
disabled: /* @__PURE__ */ new Set(),
|
|
5111
5111
|
watch: /* @__PURE__ */ new Set(),
|
|
5112
5112
|
watchAll: !1,
|
|
5113
5113
|
focus: ""
|
|
5114
|
-
}, s.mount = !p.isValid || !!
|
|
5115
|
-
submitCount:
|
|
5116
|
-
isDirty:
|
|
5117
|
-
isSubmitted:
|
|
5118
|
-
dirtyFields:
|
|
5119
|
-
touchedFields:
|
|
5120
|
-
errors:
|
|
5121
|
-
isSubmitSuccessful:
|
|
5114
|
+
}, s.mount = !p.isValid || !!O.keepIsValid || !!O.keepDirtyValues, s.watch = !!e.shouldUnregister, c.state.next({
|
|
5115
|
+
submitCount: O.keepSubmitCount ? r.submitCount : 0,
|
|
5116
|
+
isDirty: P ? !1 : O.keepDirty ? r.isDirty : !!(O.keepDefaultValues && !Lt(y, i)),
|
|
5117
|
+
isSubmitted: O.keepIsSubmitted ? r.isSubmitted : !1,
|
|
5118
|
+
dirtyFields: P ? {} : O.keepDirtyValues ? O.keepDefaultValues && o ? gr(i, o) : r.dirtyFields : O.keepDefaultValues && y ? gr(i, y) : O.keepDirty ? r.dirtyFields : {},
|
|
5119
|
+
touchedFields: O.keepTouched ? r.touchedFields : {},
|
|
5120
|
+
errors: O.keepErrors ? r.errors : {},
|
|
5121
|
+
isSubmitSuccessful: O.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
|
|
5122
5122
|
isSubmitting: !1,
|
|
5123
5123
|
defaultValues: i
|
|
5124
5124
|
});
|
|
5125
|
-
}, pt = (y,
|
|
5126
|
-
const A =
|
|
5125
|
+
}, pt = (y, O) => bt(ft(y) ? y(o) : y, O), Ct = (y, O = {}) => {
|
|
5126
|
+
const A = L(n, y), V = A && A._f;
|
|
5127
5127
|
if (V) {
|
|
5128
|
-
const
|
|
5129
|
-
|
|
5128
|
+
const P = V.refs ? V.refs[0] : V.ref;
|
|
5129
|
+
P.focus && (P.focus(), O.shouldSelect && ft(P.select) && P.select());
|
|
5130
5130
|
}
|
|
5131
5131
|
}, Wt = (y) => {
|
|
5132
|
-
r =
|
|
5132
|
+
r = T(T({}, r), y);
|
|
5133
5133
|
}, tt = {
|
|
5134
5134
|
control: {
|
|
5135
5135
|
register: ot,
|
|
@@ -5185,7 +5185,7 @@ function ku(t = {}) {
|
|
|
5185
5185
|
return e;
|
|
5186
5186
|
},
|
|
5187
5187
|
set _options(y) {
|
|
5188
|
-
e =
|
|
5188
|
+
e = T(T({}, e), y);
|
|
5189
5189
|
}
|
|
5190
5190
|
},
|
|
5191
5191
|
subscribe: Q,
|
|
@@ -5194,7 +5194,7 @@ function ku(t = {}) {
|
|
|
5194
5194
|
handleSubmit: st,
|
|
5195
5195
|
watch: re,
|
|
5196
5196
|
setValue: we,
|
|
5197
|
-
getValues:
|
|
5197
|
+
getValues: U,
|
|
5198
5198
|
reset: pt,
|
|
5199
5199
|
resetField: Ht,
|
|
5200
5200
|
clearErrors: te,
|
|
@@ -5203,7 +5203,7 @@ function ku(t = {}) {
|
|
|
5203
5203
|
setFocus: Ct,
|
|
5204
5204
|
getFieldState: Y
|
|
5205
5205
|
};
|
|
5206
|
-
return X(
|
|
5206
|
+
return X(T({}, tt), {
|
|
5207
5207
|
formControl: tt
|
|
5208
5208
|
});
|
|
5209
5209
|
}
|
|
@@ -5227,12 +5227,12 @@ function Nu(t = {}) {
|
|
|
5227
5227
|
});
|
|
5228
5228
|
if (!e.current)
|
|
5229
5229
|
if (t.formControl)
|
|
5230
|
-
e.current = X(
|
|
5230
|
+
e.current = X(T({}, t.formControl), {
|
|
5231
5231
|
formState: n
|
|
5232
5232
|
}), t.defaultValues && !ft(t.defaultValues) && t.formControl.reset(t.defaultValues, t.resetOptions);
|
|
5233
5233
|
else {
|
|
5234
5234
|
const s = ku(t), { formControl: a } = s, l = Xt(s, ["formControl"]);
|
|
5235
|
-
e.current = X(
|
|
5235
|
+
e.current = X(T({}, l), {
|
|
5236
5236
|
formState: n
|
|
5237
5237
|
});
|
|
5238
5238
|
}
|
|
@@ -5240,10 +5240,10 @@ function Nu(t = {}) {
|
|
|
5240
5240
|
return o._options = t, Ao(() => {
|
|
5241
5241
|
const a = o._subscribe({
|
|
5242
5242
|
formState: o._proxyFormState,
|
|
5243
|
-
callback: () => i(
|
|
5243
|
+
callback: () => i(T({}, o._formState)),
|
|
5244
5244
|
reRenderRoot: !0
|
|
5245
5245
|
});
|
|
5246
|
-
return i((l) => X(
|
|
5246
|
+
return i((l) => X(T({}, l), {
|
|
5247
5247
|
isReady: !0
|
|
5248
5248
|
})), o._formState.isReady = !0, a;
|
|
5249
5249
|
}, [o]), fe.useEffect(() => o._disableForm(t.disabled), [o, t.disabled]), fe.useEffect(() => {
|
|
@@ -5262,11 +5262,11 @@ function Nu(t = {}) {
|
|
|
5262
5262
|
});
|
|
5263
5263
|
}
|
|
5264
5264
|
}, [o, n.isDirty]), fe.useEffect(() => {
|
|
5265
|
-
t.values && !
|
|
5265
|
+
t.values && !Lt(t.values, r.current) ? (o._reset(t.values, T({
|
|
5266
5266
|
keepFieldsRef: !0
|
|
5267
|
-
}, o._options.resetOptions)), r.current = t.values, i((a) =>
|
|
5267
|
+
}, o._options.resetOptions)), r.current = t.values, i((a) => T({}, a))) : o._resetDefaultValues();
|
|
5268
5268
|
}, [o, t.values]), fe.useEffect(() => {
|
|
5269
|
-
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(
|
|
5269
|
+
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(T({}, o._formState))), o._removeUnmounted();
|
|
5270
5270
|
}), e.current.formState = Qa(n, o), e.current;
|
|
5271
5271
|
}
|
|
5272
5272
|
const Tr = (t, e) => {
|
|
@@ -5292,9 +5292,9 @@ const Tr = (t, e) => {
|
|
|
5292
5292
|
transition: ".2s",
|
|
5293
5293
|
flexShrink: 0
|
|
5294
5294
|
},
|
|
5295
|
-
children: e ? /* @__PURE__ */ u($e,
|
|
5295
|
+
children: e ? /* @__PURE__ */ u($e, T({}, e)) : /* @__PURE__ */ u($e, { imageId: "chevronDown" })
|
|
5296
5296
|
}
|
|
5297
|
-
),
|
|
5297
|
+
), Pu = ({
|
|
5298
5298
|
isChosen: t,
|
|
5299
5299
|
option: e,
|
|
5300
5300
|
onOptionClickCallback: r,
|
|
@@ -5328,7 +5328,7 @@ const Tr = (t, e) => {
|
|
|
5328
5328
|
onMouseEnter: i,
|
|
5329
5329
|
onMouseLeave: o,
|
|
5330
5330
|
children: [
|
|
5331
|
-
/* @__PURE__ */ u(Oe, X(
|
|
5331
|
+
/* @__PURE__ */ u(Oe, X(T({}, e.layout.title), { text: e.label })),
|
|
5332
5332
|
/* @__PURE__ */ u(
|
|
5333
5333
|
"div",
|
|
5334
5334
|
{
|
|
@@ -5336,7 +5336,7 @@ const Tr = (t, e) => {
|
|
|
5336
5336
|
display: "flex",
|
|
5337
5337
|
flexShrink: 0
|
|
5338
5338
|
},
|
|
5339
|
-
children: /* @__PURE__ */ u($e,
|
|
5339
|
+
children: /* @__PURE__ */ u($e, T({}, s))
|
|
5340
5340
|
}
|
|
5341
5341
|
)
|
|
5342
5342
|
]
|
|
@@ -5358,26 +5358,26 @@ const Tr = (t, e) => {
|
|
|
5358
5358
|
pickerLayout: f
|
|
5359
5359
|
}) => {
|
|
5360
5360
|
var H, K, ue, ce, we, ve, ee, z;
|
|
5361
|
-
const [c, g] =
|
|
5361
|
+
const [c, g] = Pe(!1), [w, h] = Pe(i), [m, S] = Pe("down"), [C, b] = Pe(null), I = it(null), k = it(null);
|
|
5362
5362
|
Zt(() => {
|
|
5363
5363
|
var re, $, Q;
|
|
5364
5364
|
if (!c) return;
|
|
5365
|
-
const
|
|
5366
|
-
if (!
|
|
5367
|
-
const Se =
|
|
5365
|
+
const U = (re = I.current) == null ? void 0 : re.getBoundingClientRect(), Y = ($ = k.current) == null ? void 0 : $.getBoundingClientRect(), te = (Q = d.current) == null ? void 0 : Q.getBoundingClientRect();
|
|
5366
|
+
if (!U || !Y || !te) return;
|
|
5367
|
+
const Se = U.bottom + Y.height < te.bottom;
|
|
5368
5368
|
S(Se ? "down" : "up");
|
|
5369
5369
|
}, [c]), nt(() => {
|
|
5370
5370
|
o(w);
|
|
5371
5371
|
}, [w]);
|
|
5372
|
-
const N = (
|
|
5372
|
+
const N = (U) => (Y) => {
|
|
5373
5373
|
var te;
|
|
5374
|
-
Y.stopPropagation(), (Y.type === "touchend" || ((te = Y.nativeEvent) == null ? void 0 : te.pointerType) === "touch") && b(null), a && g(!1), h((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), h((Se) => r ? Se.some(($) => $.value === U.value) ? Se.filter(($) => $.value !== U.value) : [...Se, U] : [U]);
|
|
5375
5375
|
}, R = () => {
|
|
5376
5376
|
l && l(), g(!1);
|
|
5377
|
-
}, ae = (
|
|
5378
|
-
Y.stopPropagation(), h((te) => te.filter((Se) => Se.value !==
|
|
5379
|
-
}, _e = (
|
|
5380
|
-
|
|
5377
|
+
}, ae = (U) => (Y) => {
|
|
5378
|
+
Y.stopPropagation(), h((te) => te.filter((Se) => Se.value !== U.value));
|
|
5379
|
+
}, _e = (U) => {
|
|
5380
|
+
U.stopPropagation(), h([]);
|
|
5381
5381
|
}, le = (H = de(p == null ? void 0 : p.borderColor)) != null ? H : "#D9D9D9", Z = (K = de(p == null ? void 0 : p.highlightBorderColor)) != null ? K : "#7E57C5";
|
|
5382
5382
|
return /* @__PURE__ */ u("div", { "data-ui": "gui-custom-select", ref: I, children: /* @__PURE__ */ u(
|
|
5383
5383
|
"div",
|
|
@@ -5425,7 +5425,7 @@ const Tr = (t, e) => {
|
|
|
5425
5425
|
children: s
|
|
5426
5426
|
}
|
|
5427
5427
|
),
|
|
5428
|
-
w.map((
|
|
5428
|
+
w.map((U) => {
|
|
5429
5429
|
var Y, te, Se, re, $;
|
|
5430
5430
|
if (r) {
|
|
5431
5431
|
const Q = p == null ? void 0 : p.chip;
|
|
@@ -5444,9 +5444,9 @@ const Tr = (t, e) => {
|
|
|
5444
5444
|
children: [
|
|
5445
5445
|
/* @__PURE__ */ u(
|
|
5446
5446
|
Oe,
|
|
5447
|
-
X(
|
|
5447
|
+
X(T({}, Q == null ? void 0 : Q.title), {
|
|
5448
5448
|
fontSize: (re = (Se = Q == null ? void 0 : Q.title) == null ? void 0 : Se.fontSize) != null ? re : 13,
|
|
5449
|
-
text:
|
|
5449
|
+
text: U.label
|
|
5450
5450
|
})
|
|
5451
5451
|
),
|
|
5452
5452
|
/* @__PURE__ */ u(
|
|
@@ -5459,13 +5459,13 @@ const Tr = (t, e) => {
|
|
|
5459
5459
|
width: "16px",
|
|
5460
5460
|
height: "16px"
|
|
5461
5461
|
},
|
|
5462
|
-
onClick: ae(
|
|
5463
|
-
children: Q != null && Q.removeImage ? /* @__PURE__ */ u($e,
|
|
5462
|
+
onClick: ae(U),
|
|
5463
|
+
children: Q != null && Q.removeImage ? /* @__PURE__ */ u($e, T({}, Q.removeImage)) : /* @__PURE__ */ u($e, { imageId: "cross" })
|
|
5464
5464
|
}
|
|
5465
5465
|
)
|
|
5466
5466
|
]
|
|
5467
5467
|
},
|
|
5468
|
-
|
|
5468
|
+
U.value
|
|
5469
5469
|
);
|
|
5470
5470
|
} else {
|
|
5471
5471
|
const Q = p == null ? void 0 : p.title;
|
|
@@ -5476,9 +5476,9 @@ const Tr = (t, e) => {
|
|
|
5476
5476
|
display: "flex",
|
|
5477
5477
|
userSelect: "none"
|
|
5478
5478
|
},
|
|
5479
|
-
children: /* @__PURE__ */ u(Oe, X(
|
|
5479
|
+
children: /* @__PURE__ */ u(Oe, X(T({}, Q), { fontSize: ($ = Q == null ? void 0 : Q.fontSize) != null ? $ : 13, text: U.label }))
|
|
5480
5480
|
},
|
|
5481
|
-
|
|
5481
|
+
U.value
|
|
5482
5482
|
);
|
|
5483
5483
|
}
|
|
5484
5484
|
})
|
|
@@ -5497,7 +5497,7 @@ const Tr = (t, e) => {
|
|
|
5497
5497
|
zIndex: 1
|
|
5498
5498
|
},
|
|
5499
5499
|
onClick: _e,
|
|
5500
|
-
children: p != null && p.clearButton ? /* @__PURE__ */ u($e,
|
|
5500
|
+
children: p != null && p.clearButton ? /* @__PURE__ */ u($e, T({}, p.clearButton)) : /* @__PURE__ */ u($e, { imageId: "cross" })
|
|
5501
5501
|
}
|
|
5502
5502
|
) : null,
|
|
5503
5503
|
n ? /* @__PURE__ */ u(
|
|
@@ -5516,7 +5516,7 @@ const Tr = (t, e) => {
|
|
|
5516
5516
|
{
|
|
5517
5517
|
"data-ui": "gui-custom-select-dropdown-menu",
|
|
5518
5518
|
ref: k,
|
|
5519
|
-
style: X(
|
|
5519
|
+
style: X(T({
|
|
5520
5520
|
position: "absolute"
|
|
5521
5521
|
}, m === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
5522
5522
|
left: 0,
|
|
@@ -5537,20 +5537,20 @@ const Tr = (t, e) => {
|
|
|
5537
5537
|
gap: "2px",
|
|
5538
5538
|
cursor: "default"
|
|
5539
5539
|
}),
|
|
5540
|
-
onClick: (
|
|
5541
|
-
children: e.map((
|
|
5542
|
-
const Y = w.some((te) => te.value ===
|
|
5540
|
+
onClick: (U) => U.stopPropagation(),
|
|
5541
|
+
children: e.map((U) => {
|
|
5542
|
+
const Y = w.some((te) => te.value === U.value);
|
|
5543
5543
|
return /* @__PURE__ */ u(
|
|
5544
|
-
|
|
5544
|
+
Pu,
|
|
5545
5545
|
{
|
|
5546
5546
|
isChosen: Y,
|
|
5547
|
-
option:
|
|
5547
|
+
option: U,
|
|
5548
5548
|
onOptionClickCallback: N,
|
|
5549
|
-
isHovered: C ===
|
|
5550
|
-
onHover: () => b(
|
|
5549
|
+
isHovered: C === U.value,
|
|
5550
|
+
onHover: () => b(U.value),
|
|
5551
5551
|
onHoverEnd: () => b(null)
|
|
5552
5552
|
},
|
|
5553
|
-
|
|
5553
|
+
U.label
|
|
5554
5554
|
);
|
|
5555
5555
|
})
|
|
5556
5556
|
}
|
|
@@ -5558,7 +5558,7 @@ const Tr = (t, e) => {
|
|
|
5558
5558
|
]
|
|
5559
5559
|
}
|
|
5560
5560
|
) });
|
|
5561
|
-
},
|
|
5561
|
+
}, Mu = ({
|
|
5562
5562
|
control: t,
|
|
5563
5563
|
layout: e,
|
|
5564
5564
|
dataSourceQuestion: r,
|
|
@@ -5580,7 +5580,7 @@ const Tr = (t, e) => {
|
|
|
5580
5580
|
boxSizing: "border-box"
|
|
5581
5581
|
},
|
|
5582
5582
|
children: [
|
|
5583
|
-
e.title && /* @__PURE__ */ u(Oe, X(
|
|
5583
|
+
e.title && /* @__PURE__ */ u(Oe, X(T({}, e.title), { text: r.text, htmlFor: o })),
|
|
5584
5584
|
/* @__PURE__ */ u(
|
|
5585
5585
|
tl,
|
|
5586
5586
|
{
|
|
@@ -5639,7 +5639,7 @@ const Tr = (t, e) => {
|
|
|
5639
5639
|
boxSizing: "border-box"
|
|
5640
5640
|
},
|
|
5641
5641
|
children: [
|
|
5642
|
-
e.title && /* @__PURE__ */ u(Oe, X(
|
|
5642
|
+
e.title && /* @__PURE__ */ u(Oe, X(T({}, e.title), { text: r.text, htmlFor: o })),
|
|
5643
5643
|
/* @__PURE__ */ u(
|
|
5644
5644
|
tl,
|
|
5645
5645
|
{
|
|
@@ -5680,21 +5680,21 @@ const Tr = (t, e) => {
|
|
|
5680
5680
|
}
|
|
5681
5681
|
);
|
|
5682
5682
|
}, cl = () => {
|
|
5683
|
-
const [t, e] =
|
|
5683
|
+
const [t, e] = Pe(!1);
|
|
5684
5684
|
return nt(() => {
|
|
5685
5685
|
const r = () => e(!0), n = () => e(!1);
|
|
5686
5686
|
return window.addEventListener("keydown", r), window.addEventListener("mousedown", n), () => {
|
|
5687
5687
|
window.removeEventListener("keydown", r), window.removeEventListener("mousedown", n);
|
|
5688
5688
|
};
|
|
5689
5689
|
}, []), t;
|
|
5690
|
-
},
|
|
5690
|
+
}, Uu = ({
|
|
5691
5691
|
option: t,
|
|
5692
5692
|
layout: e,
|
|
5693
5693
|
dataSourceQuestion: r,
|
|
5694
5694
|
register: n,
|
|
5695
5695
|
watch: i
|
|
5696
5696
|
}) => {
|
|
5697
|
-
const [o, s] =
|
|
5697
|
+
const [o, s] = Pe(!1), a = cl(), l = String(r.id), p = i(l) === String(t.id), f = e.option, c = e.optionSelected, g = {
|
|
5698
5698
|
backgroundColor: de(c.backgroundColor),
|
|
5699
5699
|
borderRadius: c.cornerRadius
|
|
5700
5700
|
}, w = {
|
|
@@ -5704,7 +5704,7 @@ const Tr = (t, e) => {
|
|
|
5704
5704
|
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(
|
|
5705
5705
|
"label",
|
|
5706
5706
|
{
|
|
5707
|
-
style:
|
|
5707
|
+
style: T({
|
|
5708
5708
|
display: "flex",
|
|
5709
5709
|
alignItems: "center",
|
|
5710
5710
|
alignContent: "center",
|
|
@@ -5715,18 +5715,18 @@ const Tr = (t, e) => {
|
|
|
5715
5715
|
/* @__PURE__ */ u(
|
|
5716
5716
|
"div",
|
|
5717
5717
|
{
|
|
5718
|
-
style:
|
|
5718
|
+
style: T({
|
|
5719
5719
|
display: "flex",
|
|
5720
5720
|
alignItems: "center",
|
|
5721
5721
|
alignContent: "center"
|
|
5722
5722
|
}, h),
|
|
5723
|
-
children: /* @__PURE__ */ u($e,
|
|
5723
|
+
children: /* @__PURE__ */ u($e, T({}, p ? c.image : f.image))
|
|
5724
5724
|
}
|
|
5725
5725
|
),
|
|
5726
|
-
/* @__PURE__ */ u(Oe, X(
|
|
5726
|
+
/* @__PURE__ */ u(Oe, X(T({}, p ? c.title : f.title), { text: t.text })),
|
|
5727
5727
|
/* @__PURE__ */ u(
|
|
5728
5728
|
"input",
|
|
5729
|
-
X(
|
|
5729
|
+
X(T({
|
|
5730
5730
|
style: {
|
|
5731
5731
|
width: 1,
|
|
5732
5732
|
height: 1,
|
|
@@ -5750,7 +5750,7 @@ const Tr = (t, e) => {
|
|
|
5750
5750
|
]
|
|
5751
5751
|
}
|
|
5752
5752
|
) }, t.id);
|
|
5753
|
-
},
|
|
5753
|
+
}, Lu = ({
|
|
5754
5754
|
layout: t,
|
|
5755
5755
|
register: e,
|
|
5756
5756
|
watch: r,
|
|
@@ -5775,11 +5775,11 @@ const Tr = (t, e) => {
|
|
|
5775
5775
|
padding: 0,
|
|
5776
5776
|
marginBottom: "16px"
|
|
5777
5777
|
},
|
|
5778
|
-
children: /* @__PURE__ */ u(Oe, X(
|
|
5778
|
+
children: /* @__PURE__ */ u(Oe, X(T({}, t.title), { text: n.text }))
|
|
5779
5779
|
}
|
|
5780
5780
|
),
|
|
5781
5781
|
n.options.map((i) => /* @__PURE__ */ u(
|
|
5782
|
-
|
|
5782
|
+
Uu,
|
|
5783
5783
|
{
|
|
5784
5784
|
register: e,
|
|
5785
5785
|
watch: r,
|
|
@@ -5798,7 +5798,7 @@ const Tr = (t, e) => {
|
|
|
5798
5798
|
register: n,
|
|
5799
5799
|
watch: i
|
|
5800
5800
|
}) => {
|
|
5801
|
-
const [o, s] =
|
|
5801
|
+
const [o, s] = Pe(!1), a = cl(), l = String(r.id), p = i(l) === String(t.id), f = e.option, c = e.optionSelected, g = {
|
|
5802
5802
|
borderRadius: f.cornerRadius,
|
|
5803
5803
|
background: de(f.backgroundColor),
|
|
5804
5804
|
borderColor: de(f.borderColor),
|
|
@@ -5819,7 +5819,7 @@ const Tr = (t, e) => {
|
|
|
5819
5819
|
children: /* @__PURE__ */ u(
|
|
5820
5820
|
"label",
|
|
5821
5821
|
{
|
|
5822
|
-
style:
|
|
5822
|
+
style: T(T({
|
|
5823
5823
|
width: "100%",
|
|
5824
5824
|
padding: "8px 16px",
|
|
5825
5825
|
cursor: "pointer",
|
|
@@ -5829,7 +5829,7 @@ const Tr = (t, e) => {
|
|
|
5829
5829
|
children: [
|
|
5830
5830
|
/* @__PURE__ */ u(
|
|
5831
5831
|
"input",
|
|
5832
|
-
X(
|
|
5832
|
+
X(T({
|
|
5833
5833
|
style: {
|
|
5834
5834
|
width: 1,
|
|
5835
5835
|
height: 1,
|
|
@@ -5850,7 +5850,7 @@ const Tr = (t, e) => {
|
|
|
5850
5850
|
onBlur: () => s(!1)
|
|
5851
5851
|
})
|
|
5852
5852
|
),
|
|
5853
|
-
/* @__PURE__ */ u(Oe, X(
|
|
5853
|
+
/* @__PURE__ */ u(Oe, X(T({}, p ? c.title : f.title), { text: t.text }))
|
|
5854
5854
|
]
|
|
5855
5855
|
}
|
|
5856
5856
|
)
|
|
@@ -5879,7 +5879,7 @@ const Tr = (t, e) => {
|
|
|
5879
5879
|
padding: 0,
|
|
5880
5880
|
marginBottom: "16px"
|
|
5881
5881
|
},
|
|
5882
|
-
children: /* @__PURE__ */ u(Oe, X(
|
|
5882
|
+
children: /* @__PURE__ */ u(Oe, X(T({}, t.title), { text: n.text }))
|
|
5883
5883
|
}
|
|
5884
5884
|
),
|
|
5885
5885
|
/* @__PURE__ */ u("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: n.options.map((i) => /* @__PURE__ */ u(
|
|
@@ -5904,7 +5904,7 @@ const Tr = (t, e) => {
|
|
|
5904
5904
|
validationBorderColor: o,
|
|
5905
5905
|
validationBorderWidth: s
|
|
5906
5906
|
}) => {
|
|
5907
|
-
const a =
|
|
5907
|
+
const a = T({
|
|
5908
5908
|
position: "relative",
|
|
5909
5909
|
flexShrink: 0,
|
|
5910
5910
|
width: "100%",
|
|
@@ -5915,7 +5915,7 @@ const Tr = (t, e) => {
|
|
|
5915
5915
|
padding: "16px",
|
|
5916
5916
|
boxSizing: "border-box",
|
|
5917
5917
|
height: "auto"
|
|
5918
|
-
}, n &&
|
|
5918
|
+
}, n && T(T({}, de(o) && {
|
|
5919
5919
|
borderColor: o,
|
|
5920
5920
|
borderStyle: "solid"
|
|
5921
5921
|
}), s && { borderWidth: s }));
|
|
@@ -5934,7 +5934,7 @@ const Tr = (t, e) => {
|
|
|
5934
5934
|
),
|
|
5935
5935
|
t
|
|
5936
5936
|
] });
|
|
5937
|
-
}, Hu = ({ validationErrorsTypes: t, title: e }) => t ? /* @__PURE__ */ u("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(t).map(([r, n]) => /* @__PURE__ */ u(Oe, X(
|
|
5937
|
+
}, Hu = ({ validationErrorsTypes: t, title: e }) => t ? /* @__PURE__ */ u("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(t).map(([r, n]) => /* @__PURE__ */ u(Oe, X(T({}, e), { text: n }), r)) }) : null, Wu = ({
|
|
5938
5938
|
layout: t,
|
|
5939
5939
|
dataSourceQuestion: e,
|
|
5940
5940
|
register: r
|
|
@@ -5950,10 +5950,10 @@ const Tr = (t, e) => {
|
|
|
5950
5950
|
gap: "16px"
|
|
5951
5951
|
},
|
|
5952
5952
|
children: [
|
|
5953
|
-
/* @__PURE__ */ u(Oe, X(
|
|
5953
|
+
/* @__PURE__ */ u(Oe, X(T({}, t.title), { text: e.text, htmlFor: n })),
|
|
5954
5954
|
/* @__PURE__ */ u(
|
|
5955
5955
|
"input",
|
|
5956
|
-
X(
|
|
5956
|
+
X(T({}, r(n, {
|
|
5957
5957
|
required: !!e.required,
|
|
5958
5958
|
validate: Tr(e.validators, !!e.required)
|
|
5959
5959
|
})), {
|
|
@@ -5996,10 +5996,10 @@ const Tr = (t, e) => {
|
|
|
5996
5996
|
gap: "16px"
|
|
5997
5997
|
},
|
|
5998
5998
|
children: [
|
|
5999
|
-
/* @__PURE__ */ u(Oe, X(
|
|
5999
|
+
/* @__PURE__ */ u(Oe, X(T({}, t.title), { text: e.text, htmlFor: n })),
|
|
6000
6000
|
/* @__PURE__ */ u(
|
|
6001
6001
|
"textarea",
|
|
6002
|
-
X(
|
|
6002
|
+
X(T({}, r(n, {
|
|
6003
6003
|
required: !!e.required,
|
|
6004
6004
|
validate: Tr(e.validators, !!e.required)
|
|
6005
6005
|
})), {
|
|
@@ -6031,7 +6031,7 @@ const Tr = (t, e) => {
|
|
|
6031
6031
|
]
|
|
6032
6032
|
}
|
|
6033
6033
|
);
|
|
6034
|
-
},
|
|
6034
|
+
}, Ut = class Ut extends Ce {
|
|
6035
6035
|
constructor({
|
|
6036
6036
|
errorCode: e,
|
|
6037
6037
|
message: r,
|
|
@@ -6042,18 +6042,18 @@ const Tr = (t, e) => {
|
|
|
6042
6042
|
super({
|
|
6043
6043
|
errorCode: e,
|
|
6044
6044
|
errorCodeKey: o,
|
|
6045
|
-
errorEnumName:
|
|
6046
|
-
module:
|
|
6045
|
+
errorEnumName: Ut.ERROR_ENUM_NAME,
|
|
6046
|
+
module: Ut.MODULE,
|
|
6047
6047
|
message: r,
|
|
6048
6048
|
underlyingError: n,
|
|
6049
6049
|
underlyingBaseError: i,
|
|
6050
|
-
domain:
|
|
6051
|
-
shortDomainCode:
|
|
6050
|
+
domain: Ut.ERROR_ENUM_NAME,
|
|
6051
|
+
shortDomainCode: Ut.SHORT_CODE
|
|
6052
6052
|
});
|
|
6053
6053
|
}
|
|
6054
6054
|
};
|
|
6055
|
-
|
|
6056
|
-
let Kr =
|
|
6055
|
+
Ut.MODULE = Gn, Ut.ERROR_ENUM_NAME = "GuiModuleError", Ut.SHORT_CODE = "GM";
|
|
6056
|
+
let Kr = Ut;
|
|
6057
6057
|
const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSource: o, properties: s, backgroundColor: a }) => {
|
|
6058
6058
|
const l = Ka(r), { perform: d } = ur(), p = s ? Ed(o.questions, s) : {}, f = it(null), {
|
|
6059
6059
|
register: c,
|
|
@@ -6101,7 +6101,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6101
6101
|
ref: f,
|
|
6102
6102
|
children: [
|
|
6103
6103
|
e && /** Screen title */
|
|
6104
|
-
/* @__PURE__ */ u("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ u(Oe,
|
|
6104
|
+
/* @__PURE__ */ u("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ u(Oe, T({}, e)) }),
|
|
6105
6105
|
/* @__PURE__ */ u(
|
|
6106
6106
|
"div",
|
|
6107
6107
|
{
|
|
@@ -6154,7 +6154,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6154
6154
|
}
|
|
6155
6155
|
),
|
|
6156
6156
|
ae === pr.SELECTOR_OPTIONS && /* @__PURE__ */ u(
|
|
6157
|
-
|
|
6157
|
+
Lu,
|
|
6158
6158
|
{
|
|
6159
6159
|
layout: R,
|
|
6160
6160
|
dataSourceQuestion: b,
|
|
@@ -6172,7 +6172,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6172
6172
|
}
|
|
6173
6173
|
),
|
|
6174
6174
|
ae === pr.SELECTOR_DROPDOWN && /* @__PURE__ */ u(
|
|
6175
|
-
|
|
6175
|
+
Mu,
|
|
6176
6176
|
{
|
|
6177
6177
|
control: S,
|
|
6178
6178
|
layout: R,
|
|
@@ -6222,7 +6222,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6222
6222
|
alignItems: "flex-end",
|
|
6223
6223
|
padding: "2px"
|
|
6224
6224
|
},
|
|
6225
|
-
children: r.map((b, I) => /* @__PURE__ */ u(Zn,
|
|
6225
|
+
children: r.map((b, I) => /* @__PURE__ */ u(Zn, T({ dataTestId: "question-button" }, b), I))
|
|
6226
6226
|
}
|
|
6227
6227
|
)
|
|
6228
6228
|
]
|
|
@@ -6295,13 +6295,13 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6295
6295
|
return /* @__PURE__ */ u(Yt, { header: t, footer: e, backgroundColor: n, children: /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(
|
|
6296
6296
|
"div",
|
|
6297
6297
|
{
|
|
6298
|
-
style: X(
|
|
6298
|
+
style: X(T({}, qu), {
|
|
6299
6299
|
justifyContent: "center"
|
|
6300
6300
|
}),
|
|
6301
6301
|
children: [
|
|
6302
6302
|
/* @__PURE__ */ u(
|
|
6303
6303
|
"input",
|
|
6304
|
-
X(
|
|
6304
|
+
X(T({
|
|
6305
6305
|
style: Ku,
|
|
6306
6306
|
ref: s,
|
|
6307
6307
|
type: "file",
|
|
@@ -6388,13 +6388,13 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6388
6388
|
}, []), /* @__PURE__ */ u(Yt, { header: t, footer: e, backgroundColor: r, children: /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(
|
|
6389
6389
|
"div",
|
|
6390
6390
|
{
|
|
6391
|
-
style: X(
|
|
6391
|
+
style: X(T({}, Xu), {
|
|
6392
6392
|
justifyContent: "center"
|
|
6393
6393
|
}),
|
|
6394
6394
|
children: [
|
|
6395
6395
|
/* @__PURE__ */ u(
|
|
6396
6396
|
"input",
|
|
6397
|
-
X(
|
|
6397
|
+
X(T({
|
|
6398
6398
|
style: Yu,
|
|
6399
6399
|
ref: s,
|
|
6400
6400
|
type: "file",
|
|
@@ -6410,7 +6410,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6410
6410
|
) }) });
|
|
6411
6411
|
};
|
|
6412
6412
|
function e1() {
|
|
6413
|
-
const t = it(null), [e, r] =
|
|
6413
|
+
const t = it(null), [e, r] = Pe(!1);
|
|
6414
6414
|
return { ref: t, isPopoverOpen: e, openPopover: () => {
|
|
6415
6415
|
var o;
|
|
6416
6416
|
(o = t.current) == null || o.showPopover(), r(!0);
|
|
@@ -6419,7 +6419,7 @@ function e1() {
|
|
|
6419
6419
|
(o = t.current) == null || o.hidePopover(), r(!1);
|
|
6420
6420
|
} };
|
|
6421
6421
|
}
|
|
6422
|
-
const
|
|
6422
|
+
const Li = () => F(null, null, function* () {
|
|
6423
6423
|
var t;
|
|
6424
6424
|
try {
|
|
6425
6425
|
const e = yield navigator.permissions.query({ name: "geolocation" });
|
|
@@ -6562,7 +6562,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6562
6562
|
if (Je.isSafari || l) return;
|
|
6563
6563
|
let k = !0;
|
|
6564
6564
|
return F(null, null, function* () {
|
|
6565
|
-
if ((yield
|
|
6565
|
+
if ((yield Li()) !== "granted") {
|
|
6566
6566
|
f == null || f(!1);
|
|
6567
6567
|
return;
|
|
6568
6568
|
}
|
|
@@ -6600,7 +6600,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6600
6600
|
}, []);
|
|
6601
6601
|
const C = (k) => F(null, null, function* () {
|
|
6602
6602
|
k.preventDefault();
|
|
6603
|
-
const N = yield
|
|
6603
|
+
const N = yield Li();
|
|
6604
6604
|
if (N === "denied") {
|
|
6605
6605
|
w();
|
|
6606
6606
|
return;
|
|
@@ -6610,7 +6610,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6610
6610
|
p(R, d);
|
|
6611
6611
|
}
|
|
6612
6612
|
}), b = (k) => F(null, null, function* () {
|
|
6613
|
-
if (k.preventDefault(), (yield
|
|
6613
|
+
if (k.preventDefault(), (yield Li()) === "denied") {
|
|
6614
6614
|
w();
|
|
6615
6615
|
return;
|
|
6616
6616
|
}
|
|
@@ -6623,9 +6623,9 @@ const Ui = () => F(null, null, function* () {
|
|
|
6623
6623
|
return /* @__PURE__ */ u(Yt, { header: e, footer: r, backgroundColor: s, children: [
|
|
6624
6624
|
/* @__PURE__ */ u("div", { style: r1, children: [
|
|
6625
6625
|
/* @__PURE__ */ u("div", { style: n1, children: [
|
|
6626
|
-
n && /* @__PURE__ */ u("div", { style: o1, children: /* @__PURE__ */ u($e,
|
|
6627
|
-
t && /* @__PURE__ */ u("div", { style: s1, children: /* @__PURE__ */ u(Oe,
|
|
6628
|
-
i && /* @__PURE__ */ u("div", { style: a1, children: /* @__PURE__ */ u(ni,
|
|
6626
|
+
n && /* @__PURE__ */ u("div", { style: o1, children: /* @__PURE__ */ u($e, T({}, n)) }),
|
|
6627
|
+
t && /* @__PURE__ */ u("div", { style: s1, children: /* @__PURE__ */ u(Oe, T({}, t)) }),
|
|
6628
|
+
i && /* @__PURE__ */ u("div", { style: a1, children: /* @__PURE__ */ u(ni, T({}, i)) })
|
|
6629
6629
|
] }),
|
|
6630
6630
|
!!(o != null && o.length) && /* @__PURE__ */ u(
|
|
6631
6631
|
"div",
|
|
@@ -6636,7 +6636,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6636
6636
|
},
|
|
6637
6637
|
children: o.map((k, N) => /* @__PURE__ */ u("div", { style: { padding: "5px" }, children: /* @__PURE__ */ u(
|
|
6638
6638
|
Zn,
|
|
6639
|
-
|
|
6639
|
+
T(T({
|
|
6640
6640
|
dataTestId: "question-button"
|
|
6641
6641
|
}, k), k.type === "FORM" ? {
|
|
6642
6642
|
onClick: Je.isSafari ? b : C
|
|
@@ -6652,16 +6652,16 @@ const Ui = () => F(null, null, function* () {
|
|
|
6652
6652
|
popover: "manual",
|
|
6653
6653
|
role: "dialog",
|
|
6654
6654
|
"aria-modal": "true",
|
|
6655
|
-
style: X(
|
|
6655
|
+
style: X(T({}, l1), {
|
|
6656
6656
|
borderRadius: S.cornerRadius || "27px",
|
|
6657
6657
|
backgroundColor: S.backgroundColor || "#ffffff"
|
|
6658
6658
|
}),
|
|
6659
6659
|
children: [
|
|
6660
|
-
/* @__PURE__ */ u("div", { style: c1, children: /* @__PURE__ */ u(Oe,
|
|
6661
|
-
/* @__PURE__ */ u("div", { style: d1, children: /* @__PURE__ */ u("div", { style: u1, children: /* @__PURE__ */ u(Oe,
|
|
6660
|
+
/* @__PURE__ */ u("div", { style: c1, children: /* @__PURE__ */ u(Oe, T({}, T({ fontSize: "24px" }, S.title))) }),
|
|
6661
|
+
/* @__PURE__ */ u("div", { style: d1, children: /* @__PURE__ */ u("div", { style: u1, children: /* @__PURE__ */ u(Oe, T({}, T({ fontSize: "17px" }, S.message))) }) }),
|
|
6662
6662
|
S.actionButton1 && /* @__PURE__ */ u("div", { style: f1, children: /* @__PURE__ */ u(
|
|
6663
6663
|
Zn,
|
|
6664
|
-
|
|
6664
|
+
T(T({
|
|
6665
6665
|
dataTestId: "question-button"
|
|
6666
6666
|
}, S.actionButton1), S.actionButton1.type === "FORM" ? { onClick: I } : {})
|
|
6667
6667
|
) })
|
|
@@ -6810,7 +6810,7 @@ const Bs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id:
|
|
|
6810
6810
|
}
|
|
6811
6811
|
) }) }) : /* @__PURE__ */ u(Ts, { perform: a, setIsProcessingCallback: t, children: /* @__PURE__ */ u(Bs, { children: /* @__PURE__ */ u(
|
|
6812
6812
|
$s,
|
|
6813
|
-
|
|
6813
|
+
T(T({
|
|
6814
6814
|
templateId: n,
|
|
6815
6815
|
templateLayout: i
|
|
6816
6816
|
}, e.backgroundColor ? { backgroundColor: e.backgroundColor } : {}), typeof e.selectionLimit == "number" ? { selectionLimit: e.selectionLimit } : {})
|
|
@@ -6907,7 +6907,7 @@ const _1 = (t, e) => ({
|
|
|
6907
6907
|
},
|
|
6908
6908
|
_checkIsSessionDataValid: (n) => {
|
|
6909
6909
|
if ("httpCode" in n) {
|
|
6910
|
-
const i = "what" in n && typeof n.what == "string" && n.what.length ? n.what : null, o = new ir(
|
|
6910
|
+
const i = "what" in n && typeof n.what == "string" && n.what.length ? n.what : null, o = new ir(T({
|
|
6911
6911
|
errorCode: tr.HTTP_ISSUE
|
|
6912
6912
|
}, i ? { message: i } : {}));
|
|
6913
6913
|
return {
|
|
@@ -6945,7 +6945,7 @@ const _1 = (t, e) => ({
|
|
|
6945
6945
|
}),
|
|
6946
6946
|
_continueSession: (n, i) => F(null, null, function* () {
|
|
6947
6947
|
var g;
|
|
6948
|
-
const o = e().startConfig, s = "apiKey" in o && typeof o.apiKey == "string", a = e().workflowId, l = i ?
|
|
6948
|
+
const o = e().startConfig, s = "apiKey" in o && typeof o.apiKey == "string", a = e().workflowId, l = i ? Mr.DID_CONTINUE_REMOTE_SESSION : Mr.DID_START_RESTORE_SESSION;
|
|
6949
6949
|
let d;
|
|
6950
6950
|
if (i)
|
|
6951
6951
|
d = i;
|
|
@@ -7010,28 +7010,28 @@ const _1 = (t, e) => ({
|
|
|
7010
7010
|
if (!e()._isInitialized)
|
|
7011
7011
|
return {
|
|
7012
7012
|
error: new Ve({
|
|
7013
|
-
errorCode:
|
|
7013
|
+
errorCode: Le.INITIALIZATION_REQUIRED
|
|
7014
7014
|
})
|
|
7015
7015
|
};
|
|
7016
7016
|
if (e().currentScreenConfig)
|
|
7017
7017
|
return {
|
|
7018
7018
|
error: new Ve({
|
|
7019
|
-
errorCode:
|
|
7019
|
+
errorCode: Le.SCENARIO_IN_PROGRESS
|
|
7020
7020
|
})
|
|
7021
7021
|
};
|
|
7022
7022
|
const o = ["apiKey", "baseUrl"].filter((m) => !(n != null && n[m]));
|
|
7023
7023
|
if (o.length > 0)
|
|
7024
7024
|
return {
|
|
7025
7025
|
error: new Ve({
|
|
7026
|
-
errorCode:
|
|
7026
|
+
errorCode: Le.CONFIG_MISSED_OR_INVALID,
|
|
7027
7027
|
message: `Missing parameters: ${o.join(", ")}`
|
|
7028
7028
|
})
|
|
7029
7029
|
};
|
|
7030
|
-
const s =
|
|
7030
|
+
const s = Mi(n.baseUrl);
|
|
7031
7031
|
if (!s)
|
|
7032
7032
|
return {
|
|
7033
7033
|
error: new Ve({
|
|
7034
|
-
errorCode:
|
|
7034
|
+
errorCode: Le.CONFIG_MISSED_OR_INVALID,
|
|
7035
7035
|
message: `Invalid URL: ${n.baseUrl}`
|
|
7036
7036
|
})
|
|
7037
7037
|
};
|
|
@@ -7048,7 +7048,7 @@ const _1 = (t, e) => ({
|
|
|
7048
7048
|
}, p = nr.getAuthTokenLs(), f = p && p[n.apiKey] && p[n.apiKey].authToken ? p[n.apiKey] : null, c = f && f.authToken, g = yield e().connectByApiKey(d);
|
|
7049
7049
|
if (g.error)
|
|
7050
7050
|
return { error: new Ve({
|
|
7051
|
-
errorCode:
|
|
7051
|
+
errorCode: Le.CONNECTION_ISSUE,
|
|
7052
7052
|
underlyingBaseError: g.error
|
|
7053
7053
|
}) };
|
|
7054
7054
|
c && g.authToken !== c && nr.removeAuthTokenLs(n.apiKey);
|
|
@@ -7066,13 +7066,13 @@ const _1 = (t, e) => ({
|
|
|
7066
7066
|
if (!e()._isInitialized)
|
|
7067
7067
|
return {
|
|
7068
7068
|
error: new Ve({
|
|
7069
|
-
errorCode:
|
|
7069
|
+
errorCode: Le.INITIALIZATION_REQUIRED
|
|
7070
7070
|
})
|
|
7071
7071
|
};
|
|
7072
7072
|
if (e().currentScreenConfig)
|
|
7073
7073
|
return {
|
|
7074
7074
|
error: new Ve({
|
|
7075
|
-
errorCode:
|
|
7075
|
+
errorCode: Le.SCENARIO_IN_PROGRESS
|
|
7076
7076
|
})
|
|
7077
7077
|
};
|
|
7078
7078
|
const i = hd(n);
|
|
@@ -7081,17 +7081,17 @@ const _1 = (t, e) => ({
|
|
|
7081
7081
|
if (o.error)
|
|
7082
7082
|
return {
|
|
7083
7083
|
error: new Ve({
|
|
7084
|
-
errorCode:
|
|
7084
|
+
errorCode: Le.CONNECTION_ISSUE,
|
|
7085
7085
|
underlyingBaseError: o.error
|
|
7086
7086
|
})
|
|
7087
7087
|
};
|
|
7088
7088
|
t({ _isConnectedToPlatform: !0 });
|
|
7089
7089
|
try {
|
|
7090
|
-
const s =
|
|
7090
|
+
const s = Mi(n);
|
|
7091
7091
|
if (!s)
|
|
7092
7092
|
return {
|
|
7093
7093
|
error: new Ve({
|
|
7094
|
-
errorCode:
|
|
7094
|
+
errorCode: Le.CONFIG_MISSED_OR_INVALID,
|
|
7095
7095
|
message: `Invalid URL: ${n}`
|
|
7096
7096
|
})
|
|
7097
7097
|
};
|
|
@@ -7111,28 +7111,28 @@ const _1 = (t, e) => ({
|
|
|
7111
7111
|
if (!e()._isInitialized)
|
|
7112
7112
|
return {
|
|
7113
7113
|
error: new Ve({
|
|
7114
|
-
errorCode:
|
|
7114
|
+
errorCode: Le.INITIALIZATION_REQUIRED
|
|
7115
7115
|
})
|
|
7116
7116
|
};
|
|
7117
7117
|
if (e().currentScreenConfig)
|
|
7118
7118
|
return {
|
|
7119
7119
|
error: new Ve({
|
|
7120
|
-
errorCode:
|
|
7120
|
+
errorCode: Le.SCENARIO_IN_PROGRESS
|
|
7121
7121
|
})
|
|
7122
7122
|
};
|
|
7123
7123
|
const o = ["password", "userName", "baseUrl"].filter((d) => !(n != null && n[d]));
|
|
7124
7124
|
if (o.length > 0)
|
|
7125
7125
|
return {
|
|
7126
7126
|
error: new Ve({
|
|
7127
|
-
errorCode:
|
|
7127
|
+
errorCode: Le.CONFIG_MISSED_OR_INVALID,
|
|
7128
7128
|
message: `Missing parameters: ${o.join(", ")}`
|
|
7129
7129
|
})
|
|
7130
7130
|
};
|
|
7131
|
-
const s =
|
|
7131
|
+
const s = Mi(n.baseUrl);
|
|
7132
7132
|
if (!s)
|
|
7133
7133
|
return {
|
|
7134
7134
|
error: new Ve({
|
|
7135
|
-
errorCode:
|
|
7135
|
+
errorCode: Le.CONFIG_MISSED_OR_INVALID,
|
|
7136
7136
|
message: `Invalid URL: ${n.baseUrl}`
|
|
7137
7137
|
})
|
|
7138
7138
|
};
|
|
@@ -7144,7 +7144,7 @@ const _1 = (t, e) => ({
|
|
|
7144
7144
|
userName: n.userName
|
|
7145
7145
|
}, l = yield e().connectByUserPass(a);
|
|
7146
7146
|
return l.error ? { error: new Ve({
|
|
7147
|
-
errorCode:
|
|
7147
|
+
errorCode: Le.CONNECTION_ISSUE,
|
|
7148
7148
|
underlyingBaseError: l.error
|
|
7149
7149
|
}) } : (t({ _isConnectedToPlatform: !0 }), e().setStartConfig({
|
|
7150
7150
|
host: s.host,
|
|
@@ -7300,7 +7300,7 @@ const _1 = (t, e) => ({
|
|
|
7300
7300
|
locale: C.locale
|
|
7301
7301
|
}), e().listener({
|
|
7302
7302
|
eventType: Fn.MESSAGE,
|
|
7303
|
-
message:
|
|
7303
|
+
message: Mr.DID_START_SESSION,
|
|
7304
7304
|
module: "IDV"
|
|
7305
7305
|
}), {};
|
|
7306
7306
|
});
|
|
@@ -7320,11 +7320,11 @@ const _1 = (t, e) => ({
|
|
|
7320
7320
|
return F(this, null, function* () {
|
|
7321
7321
|
if (!e()._isInitialized)
|
|
7322
7322
|
return { error: new jn({
|
|
7323
|
-
errorCode:
|
|
7323
|
+
errorCode: Ln.INITIALIZATION_REQUIRED
|
|
7324
7324
|
}) };
|
|
7325
7325
|
if (e().currentScreenConfig)
|
|
7326
7326
|
return { error: new jn({
|
|
7327
|
-
errorCode:
|
|
7327
|
+
errorCode: Ln.SCENARIO_IN_PROGRESS
|
|
7328
7328
|
}) };
|
|
7329
7329
|
const n = yield e().deinitializationIdv();
|
|
7330
7330
|
return e().resetProps(), t({ _isInitialized: !1 }), n;
|
|
@@ -7351,6 +7351,14 @@ class m1 {
|
|
|
7351
7351
|
return "";
|
|
7352
7352
|
}
|
|
7353
7353
|
}
|
|
7354
|
+
_getSessionIdFromUrl(e) {
|
|
7355
|
+
var r;
|
|
7356
|
+
try {
|
|
7357
|
+
return (r = new URL(e).searchParams.get("sessionId")) != null ? r : "";
|
|
7358
|
+
} catch (n) {
|
|
7359
|
+
return "";
|
|
7360
|
+
}
|
|
7361
|
+
}
|
|
7354
7362
|
_getExpiresAtFromTtl(e) {
|
|
7355
7363
|
return Date.now() + 1e3 * e;
|
|
7356
7364
|
}
|
|
@@ -7458,41 +7466,41 @@ class m1 {
|
|
|
7458
7466
|
}
|
|
7459
7467
|
});
|
|
7460
7468
|
}
|
|
7461
|
-
_fetchConnection(e) {
|
|
7469
|
+
_fetchConnection(e, r) {
|
|
7462
7470
|
return F(this, null, function* () {
|
|
7463
|
-
const
|
|
7471
|
+
const n = "POST", i = `${this._origin}/api/device/connection`;
|
|
7464
7472
|
try {
|
|
7465
|
-
const
|
|
7473
|
+
const o = yield fetch(i, {
|
|
7466
7474
|
headers: {
|
|
7467
7475
|
authorization: e,
|
|
7468
7476
|
"content-type": "application/json"
|
|
7469
7477
|
},
|
|
7470
|
-
body: JSON.stringify(pd()),
|
|
7471
|
-
method:
|
|
7472
|
-
}),
|
|
7473
|
-
if (!
|
|
7474
|
-
const
|
|
7475
|
-
return
|
|
7478
|
+
body: JSON.stringify(T(T({}, pd()), r && { sessionId: r })),
|
|
7479
|
+
method: n
|
|
7480
|
+
}), s = { httpCode: o.status, method: n, url: i };
|
|
7481
|
+
if (!o.ok) {
|
|
7482
|
+
const l = yield this._getResponseTextFromBadResponse(o);
|
|
7483
|
+
return l && (s.what = l), { code: 5, data: s };
|
|
7476
7484
|
}
|
|
7477
|
-
let
|
|
7485
|
+
let a;
|
|
7478
7486
|
try {
|
|
7479
|
-
if (
|
|
7480
|
-
return { code: 6, data:
|
|
7481
|
-
} catch (
|
|
7482
|
-
const
|
|
7483
|
-
return
|
|
7487
|
+
if (a = yield o.json(), !(a != null && a.token) || !(a != null && a.expiresAt))
|
|
7488
|
+
return { code: 6, data: s };
|
|
7489
|
+
} catch (l) {
|
|
7490
|
+
const d = this._getErrorTextFromError(l);
|
|
7491
|
+
return s.what = d, { code: 6, data: s };
|
|
7484
7492
|
}
|
|
7485
7493
|
return {
|
|
7486
7494
|
code: 0,
|
|
7487
7495
|
data: {
|
|
7488
|
-
token:
|
|
7489
|
-
expiresAt: +new Date(
|
|
7490
|
-
workflows:
|
|
7496
|
+
token: a.token,
|
|
7497
|
+
expiresAt: +new Date(a.expiresAt),
|
|
7498
|
+
workflows: a.workflows
|
|
7491
7499
|
}
|
|
7492
7500
|
};
|
|
7493
|
-
} catch (
|
|
7494
|
-
const
|
|
7495
|
-
return { code: 4, data: { httpCode: 0, method:
|
|
7501
|
+
} catch (o) {
|
|
7502
|
+
const s = this._getErrorTextFromError(o);
|
|
7503
|
+
return { code: 4, data: { httpCode: 0, method: n, url: i, what: s } };
|
|
7496
7504
|
}
|
|
7497
7505
|
});
|
|
7498
7506
|
}
|
|
@@ -7648,7 +7656,7 @@ class m1 {
|
|
|
7648
7656
|
_fetchStep(e, r, n, i) {
|
|
7649
7657
|
return F(this, null, function* () {
|
|
7650
7658
|
var p;
|
|
7651
|
-
const o = "POST", s =
|
|
7659
|
+
const o = "POST", s = T({}, i && { type: i }), l = new URLSearchParams(s).toString(), d = `${this._origin}/api/sessions/${(p = this._session) == null ? void 0 : p.id}/step/${r}${l ? `?${l}` : ""}`;
|
|
7652
7660
|
try {
|
|
7653
7661
|
const f = yield fetch(d, {
|
|
7654
7662
|
headers: {
|
|
@@ -7739,15 +7747,15 @@ class m1 {
|
|
|
7739
7747
|
connectByUrl(e) {
|
|
7740
7748
|
return F(this, null, function* () {
|
|
7741
7749
|
this._connect = { type: "byUrl", arg: e };
|
|
7742
|
-
const r = this._getOriginFromUrl(e);
|
|
7750
|
+
const r = this._getOriginFromUrl(e), n = this._getSessionIdFromUrl(e);
|
|
7743
7751
|
this._origin = r;
|
|
7744
|
-
let
|
|
7745
|
-
const
|
|
7746
|
-
if (i.code !== 0) return i;
|
|
7747
|
-
let o = yield this._fetchMe(n);
|
|
7752
|
+
let i = this._getAuthorizationSearchParam(e);
|
|
7753
|
+
const o = yield this._fetchPing();
|
|
7748
7754
|
if (o.code !== 0) return o;
|
|
7749
|
-
|
|
7750
|
-
|
|
7755
|
+
let s = yield this._fetchMe(i);
|
|
7756
|
+
if (s.code !== 0) return s;
|
|
7757
|
+
const a = yield this._fetchConnection(i, n);
|
|
7758
|
+
return a.code !== 0 ? a : (this._setConnectionToken(a.data), i = this._getAuthorizationHeaderFromConnectionToken(a.data.token), s = yield this._fetchMe(i), s.code !== 0 ? s : { code: 0, data: { workflows: a.data.workflows } });
|
|
7751
7759
|
});
|
|
7752
7760
|
}
|
|
7753
7761
|
getConnectionToken(e) {
|
|
@@ -7824,12 +7832,12 @@ const g1 = (t, e) => ({
|
|
|
7824
7832
|
return F(this, null, function* () {
|
|
7825
7833
|
const o = yield e().fetchService.connectByApiKey(n, !1);
|
|
7826
7834
|
if (o.code !== 0) {
|
|
7827
|
-
const s = o.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR, a = new
|
|
7835
|
+
const s = o.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR, a = new Lr({
|
|
7828
7836
|
errorCode: s,
|
|
7829
7837
|
message: JSON.stringify(o.data)
|
|
7830
7838
|
});
|
|
7831
7839
|
return { error: new Wn({
|
|
7832
|
-
errorCode:
|
|
7840
|
+
errorCode: Un.CONNECTION_ISSUE,
|
|
7833
7841
|
underlyingBaseError: a
|
|
7834
7842
|
}) };
|
|
7835
7843
|
}
|
|
@@ -7841,7 +7849,7 @@ const g1 = (t, e) => ({
|
|
|
7841
7849
|
const i = yield e().fetchService.connectByUserPass(n);
|
|
7842
7850
|
if (i.code !== 0) {
|
|
7843
7851
|
const o = i.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR;
|
|
7844
|
-
return { error: new
|
|
7852
|
+
return { error: new Lr({
|
|
7845
7853
|
errorCode: o,
|
|
7846
7854
|
message: JSON.stringify(i.data)
|
|
7847
7855
|
}) };
|
|
@@ -7853,11 +7861,11 @@ const g1 = (t, e) => ({
|
|
|
7853
7861
|
return F(this, null, function* () {
|
|
7854
7862
|
const o = yield e().fetchService.connectByUrl(n);
|
|
7855
7863
|
if (o.code !== 0) {
|
|
7856
|
-
const s = o.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR, a = new
|
|
7864
|
+
const s = o.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR, a = new Lr({
|
|
7857
7865
|
errorCode: s,
|
|
7858
7866
|
message: JSON.stringify(o.data)
|
|
7859
7867
|
}), l = new Wn({
|
|
7860
|
-
errorCode:
|
|
7868
|
+
errorCode: Un.CONNECTION_ISSUE,
|
|
7861
7869
|
underlyingBaseError: a
|
|
7862
7870
|
});
|
|
7863
7871
|
return {
|
|
@@ -7876,9 +7884,9 @@ const g1 = (t, e) => ({
|
|
|
7876
7884
|
setWorkflowSessionCompletion: (n) => {
|
|
7877
7885
|
const i = (o) => {
|
|
7878
7886
|
var d;
|
|
7879
|
-
const s = (d = e().currentSessionData) == null ? void 0 : d.sessionId, a = X(
|
|
7887
|
+
const s = (d = e().currentSessionData) == null ? void 0 : d.sessionId, a = X(T({}, o.results), {
|
|
7880
7888
|
sessionId: s
|
|
7881
|
-
}), l =
|
|
7889
|
+
}), l = T({
|
|
7882
7890
|
results: a
|
|
7883
7891
|
}, o.error && { error: o.error });
|
|
7884
7892
|
if (e().removeCurrentSessionDataLsAndStore(), n(l), o.error) {
|
|
@@ -7992,7 +8000,7 @@ const g1 = (t, e) => ({
|
|
|
7992
8000
|
}
|
|
7993
8001
|
}), e().resetSession(), e().listener({
|
|
7994
8002
|
eventType: Fn.MESSAGE,
|
|
7995
|
-
message:
|
|
8003
|
+
message: Mr.DID_END_SESSION,
|
|
7996
8004
|
module: "IDV"
|
|
7997
8005
|
}));
|
|
7998
8006
|
},
|
|
@@ -8085,7 +8093,7 @@ const g1 = (t, e) => ({
|
|
|
8085
8093
|
});
|
|
8086
8094
|
} else {
|
|
8087
8095
|
const c = e()._findStepById(n);
|
|
8088
|
-
if (typeof ((l = c == null ? void 0 : c.client) == null ? void 0 : l.templateId) == "string" && (s = X(
|
|
8096
|
+
if (typeof ((l = c == null ? void 0 : c.client) == null ? void 0 : l.templateId) == "string" && (s = X(T({}, c == null ? void 0 : c.client), {
|
|
8089
8097
|
templateId: c.client.templateId,
|
|
8090
8098
|
dataSource: (d = c.dataSource) != null ? d : null,
|
|
8091
8099
|
properties: o,
|
|
@@ -8138,8 +8146,8 @@ function w1(t) {
|
|
|
8138
8146
|
return e.filter((n) => n !== null);
|
|
8139
8147
|
});
|
|
8140
8148
|
}
|
|
8141
|
-
const
|
|
8142
|
-
(...t) =>
|
|
8149
|
+
const Ue = Bc(
|
|
8150
|
+
(...t) => T(T(T({}, md(...t)), _1(...t)), g1(...t))
|
|
8143
8151
|
), v1 = (t) => /^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t) && t.length <= 100, Hs = (t, e) => {
|
|
8144
8152
|
if (!v1(t))
|
|
8145
8153
|
throw new Error(`Invalid component name: ${t}`);
|
|
@@ -8251,7 +8259,7 @@ function b1() {
|
|
|
8251
8259
|
/* 1 */
|
|
8252
8260
|
/***/
|
|
8253
8261
|
(function(e, r, n) {
|
|
8254
|
-
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, f = d.broPayload, c = d.mobilePayload, g = d.wearPayload, w = d.consolePayload, h = d.stvPayload, m = d.getNavigatorInstance, S = d.isIOS13Check, C = new i(), b = C.getBrowser(), I = C.getDevice(), k = C.getEngine(), N = C.getOS(), R = C.getUA(), ae = s.CHROME, _e = s.CHROMIUM, le = s.IE, Z = s.INTERNET_EXPLORER, H = s.OPERA, K = s.FIREFOX, ue = s.SAFARI, ce = s.EDGE, we = s.YANDEX, ve = s.MOBILE_SAFARI, ee = l.MOBILE, z = l.TABLET,
|
|
8262
|
+
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, f = d.broPayload, c = d.mobilePayload, g = d.wearPayload, w = d.consolePayload, h = d.stvPayload, m = d.getNavigatorInstance, S = d.isIOS13Check, C = new i(), b = C.getBrowser(), I = C.getDevice(), k = C.getEngine(), N = C.getOS(), R = C.getUA(), ae = s.CHROME, _e = s.CHROMIUM, le = s.IE, Z = s.INTERNET_EXPLORER, H = s.OPERA, K = s.FIREFOX, ue = s.SAFARI, ce = s.EDGE, we = s.YANDEX, ve = s.MOBILE_SAFARI, ee = l.MOBILE, z = l.TABLET, U = 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() {
|
|
8255
8263
|
return I.type === ee;
|
|
8256
8264
|
}, Xe = function() {
|
|
8257
8265
|
return I.type === z;
|
|
@@ -8266,7 +8274,7 @@ function b1() {
|
|
|
8266
8274
|
}, st = function() {
|
|
8267
8275
|
return N.name === a.WINDOWS && N.version === "10" ? typeof R == "string" && R.indexOf("Edg/") !== -1 : !1;
|
|
8268
8276
|
}, Ht = function() {
|
|
8269
|
-
return I.type ===
|
|
8277
|
+
return I.type === U;
|
|
8270
8278
|
}, bt = function() {
|
|
8271
8279
|
return I.type === Y;
|
|
8272
8280
|
}, pt = function() {
|
|
@@ -8281,15 +8289,15 @@ function b1() {
|
|
|
8281
8289
|
return N.name === je;
|
|
8282
8290
|
}, y = function() {
|
|
8283
8291
|
return N.name === $;
|
|
8284
|
-
},
|
|
8292
|
+
}, O = function() {
|
|
8285
8293
|
return N.name === Q;
|
|
8286
8294
|
}, A = function() {
|
|
8287
8295
|
return b.name === ae;
|
|
8288
8296
|
}, V = function() {
|
|
8289
8297
|
return b.name === K;
|
|
8290
|
-
}, M = function() {
|
|
8291
|
-
return b.name === _e;
|
|
8292
8298
|
}, P = function() {
|
|
8299
|
+
return b.name === _e;
|
|
8300
|
+
}, M = function() {
|
|
8293
8301
|
return b.name === ce;
|
|
8294
8302
|
}, W = function() {
|
|
8295
8303
|
return b.name === we;
|
|
@@ -8299,7 +8307,7 @@ function b1() {
|
|
|
8299
8307
|
return b.name === ve;
|
|
8300
8308
|
}, ge = function() {
|
|
8301
8309
|
return b.name === H;
|
|
8302
|
-
},
|
|
8310
|
+
}, Me = function() {
|
|
8303
8311
|
return b.name === Z || b.name === le;
|
|
8304
8312
|
}, J = function() {
|
|
8305
8313
|
var at = m(), hr = at && at.userAgent.toLowerCase();
|
|
@@ -8335,7 +8343,7 @@ function b1() {
|
|
|
8335
8343
|
return R;
|
|
8336
8344
|
}, on = function() {
|
|
8337
8345
|
return I.type;
|
|
8338
|
-
}, sn = Ht(), an = Ct(), ln = pt(), zt = G() || j(), cn =
|
|
8346
|
+
}, sn = Ht(), an = Ct(), ln = pt(), zt = G() || j(), cn = P(), rt = yt() || j(), dn = ot(), un = Xe() || j(), fn = bt(), hn = Wt(), pn = y(), _n = O() || j(), mn = A(), oi = V(), si = ne(), ai = ge(), fr = Me(), gn = q(), wn = ze(), vn = xe(), li = he(), yn = jt(), bn = Jt(), Cn = en(), ci = tn(), di = rn(), ui = nn(), fi = M() || st(), Sn = W(), hi = on(), pi = oe(), _i = j(), mi = me(), gi = He(), wi = J(), vi = st(), yi = M(), bi = _t(), Ci = tt(), mt = p(I.type);
|
|
8339
8347
|
function Si() {
|
|
8340
8348
|
var ie = mt.isBrowser, at = mt.isMobile, hr = mt.isTablet, En = mt.isSmartTV, Tn = mt.isConsole, On = mt.isWearable;
|
|
8341
8349
|
if (ie)
|
|
@@ -8406,10 +8414,10 @@ function b1() {
|
|
|
8406
8414
|
*/
|
|
8407
8415
|
(function(o, s) {
|
|
8408
8416
|
var a = "0.7.18", l = "", d = "?", p = "function", f = "undefined", c = "object", g = "string", w = "major", h = "model", m = "name", S = "type", C = "vendor", b = "version", I = "architecture", k = "console", N = "mobile", R = "tablet", ae = "smarttv", _e = "wearable", le = "embedded", Z = { extend: function(ee, z) {
|
|
8409
|
-
var
|
|
8417
|
+
var U = {};
|
|
8410
8418
|
for (var Y in ee)
|
|
8411
|
-
z[Y] && z[Y].length % 2 === 0 ?
|
|
8412
|
-
return
|
|
8419
|
+
z[Y] && z[Y].length % 2 === 0 ? U[Y] = z[Y].concat(ee[Y]) : U[Y] = ee[Y];
|
|
8420
|
+
return U;
|
|
8413
8421
|
}, has: function(ee, z) {
|
|
8414
8422
|
return typeof ee == "string" ? z.toLowerCase().indexOf(ee.toLowerCase()) !== -1 : !1;
|
|
8415
8423
|
}, lowerize: function(ee) {
|
|
@@ -8419,48 +8427,48 @@ function b1() {
|
|
|
8419
8427
|
}, trim: function(ee) {
|
|
8420
8428
|
return ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8421
8429
|
} }, H = { rgx: function(ee, z) {
|
|
8422
|
-
for (var
|
|
8423
|
-
var Be = z[
|
|
8430
|
+
for (var U = 0, Y, te, Se, re, $, Q; U < z.length && !$; ) {
|
|
8431
|
+
var Be = z[U], je = z[U + 1];
|
|
8424
8432
|
for (Y = te = 0; Y < Be.length && !$; )
|
|
8425
8433
|
if ($ = Be[Y++].exec(ee), $)
|
|
8426
8434
|
for (Se = 0; Se < je.length; Se++)
|
|
8427
8435
|
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;
|
|
8428
|
-
|
|
8436
|
+
U += 2;
|
|
8429
8437
|
}
|
|
8430
8438
|
}, str: function(ee, z) {
|
|
8431
|
-
for (var
|
|
8432
|
-
if (typeof z[
|
|
8433
|
-
for (var Y = 0; Y < z[
|
|
8434
|
-
if (Z.has(z[
|
|
8435
|
-
return
|
|
8436
|
-
} else if (Z.has(z[
|
|
8437
|
-
return
|
|
8439
|
+
for (var U in z)
|
|
8440
|
+
if (typeof z[U] === c && z[U].length > 0) {
|
|
8441
|
+
for (var Y = 0; Y < z[U].length; Y++)
|
|
8442
|
+
if (Z.has(z[U][Y], ee))
|
|
8443
|
+
return U === d ? s : U;
|
|
8444
|
+
} else if (Z.has(z[U], ee))
|
|
8445
|
+
return U === d ? s : U;
|
|
8438
8446
|
return ee;
|
|
8439
8447
|
} }, 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" } } } }, ue = { 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], [h, C, [S, R]], [/applecoremedia\/[\w\.]+ \((ipad)/], [h, [C, "Apple"], [S, R]], [/(apple\s{0,1}tv)/i], [[h, "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, h, [S, R]], [/(kf[A-z]+)\sbuild\/.+silk\//i], [h, [C, "Amazon"], [S, R]], [/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i], [[h, H.str, K.device.amazon.model], [C, "Amazon"], [S, N]], [/\((ip[honed|\s\w*]+);.+(apple)/i], [h, C, [S, N]], [/\((ip[honed|\s\w*]+);/i], [h, [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, h, [S, N]], [/\(bb10;\s(\w+)/i], [h, [C, "BlackBerry"], [S, N]], [/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i], [h, [C, "Asus"], [S, R]], [/(sony)\s(tablet\s[ps])\sbuild\//i, /(sony)?(?:sgp.+)\sbuild\//i], [[C, "Sony"], [h, "Xperia Tablet"], [S, R]], [/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i], [h, [C, "Sony"], [S, N]], [/\s(ouya)\s/i, /(nintendo)\s([wids3u]+)/i], [C, h, [S, k]], [/android.+;\s(shield)\sbuild/i], [h, [C, "Nvidia"], [S, k]], [/(playstation\s[34portablevi]+)/i], [h, [C, "Sony"], [S, k]], [/(sprint\s(\w+))/i], [[C, H.str, K.device.sprint.vendor], [h, H.str, K.device.sprint.model], [S, N]], [/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i], [C, h, [S, R]], [/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i, /(zte)-(\w*)/i, /(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i], [C, [h, /_/g, " "], [S, N]], [/(nexus\s9)/i], [h, [C, "HTC"], [S, R]], [/d\/huawei([\w\s-]+)[;\)]/i, /(nexus\s6p)/i], [h, [C, "Huawei"], [S, N]], [/(microsoft);\s(lumia[\s\w]+)/i], [C, h, [S, N]], [/[\s\(;](xbox(?:\sone)?)[\s\);]/i], [h, [C, "Microsoft"], [S, k]], [/(kin\.[onetw]{3})/i], [[h, /\./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], [h, [C, "Motorola"], [S, N]], [/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i], [h, [C, "Motorola"], [S, R]], [/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i], [[C, Z.trim], [h, Z.trim], [S, ae]], [/hbbtv.+maple;(\d+)/i], [[h, /^/, "SmartTV"], [C, "Samsung"], [S, ae]], [/\(dtv[\);].+(aquos)/i], [h, [C, "Sharp"], [S, ae]], [/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i, /((SM-T\w+))/i], [[C, "Samsung"], h, [S, R]], [/smart-tv.+(samsung)/i], [C, [S, ae], h], [/((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"], h, [S, N]], [/sie-(\w*)/i], [h, [C, "Siemens"], [S, N]], [/(maemo|nokia).*(n900|lumia\s\d+)/i, /(nokia)[\s_-]?([\w-]*)/i], [[C, "Nokia"], h, [S, N]], [/android\s3\.[\s\w;-]{10}(a\d{3})/i], [h, [C, "Acer"], [S, R]], [/android.+([vl]k\-?\d{3})\s+build/i], [h, [C, "LG"], [S, R]], [/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i], [[C, "LG"], h, [S, R]], [/(lg) netcast\.tv/i], [C, h, [S, ae]], [/(nexus\s[45])/i, /lg[e;\s\/-]+(\w*)/i, /android.+lg(\-?[\d\w]+)\s+build/i], [h, [C, "LG"], [S, N]], [/android.+(ideatab[a-z0-9\-\s]+)/i], [h, [C, "Lenovo"], [S, R]], [/linux;.+((jolla));/i], [C, h, [S, N]], [/((pebble))app\/[\d\.]+\s/i], [C, h, [S, _e]], [/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i], [C, h, [S, N]], [/crkey/i], [[h, "Chromecast"], [C, "Google"]], [/android.+;\s(glass)\s\d/i], [h, [C, "Google"], [S, _e]], [/android.+;\s(pixel c)\s/i], [h, [C, "Google"], [S, R]], [/android.+;\s(pixel xl|pixel)\s/i], [h, [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], [[h, /_/g, " "], [C, "Xiaomi"], [S, N]], [/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i], [[h, /_/g, " "], [C, "Xiaomi"], [S, R]], [/android.+;\s(m[1-5]\snote)\sbuild/i], [h, [C, "Meizu"], [S, R]], [/android.+a000(1)\s+build/i, /android.+oneplus\s(a\d{4})\s+build/i], [h, [C, "OnePlus"], [S, N]], [/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i], [h, [C, "RCA"], [S, R]], [/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i], [h, [C, "Dell"], [S, R]], [/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i], [h, [C, "Verizon"], [S, R]], [/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i], [[C, "Barnes & Noble"], h, [S, R]], [/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i], [h, [C, "NuVision"], [S, R]], [/android.+;\s(k88)\sbuild/i], [h, [C, "ZTE"], [S, R]], [/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i], [h, [C, "Swiss"], [S, N]], [/android.+[;\/]\s*(zur\d{3})\s+build/i], [h, [C, "Swiss"], [S, R]], [/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i], [h, [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"], h, [S, R]], [/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i], [h, [C, "Insignia"], [S, R]], [/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i], [h, [C, "NextBook"], [S, R]], [/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i], [[C, "Voice"], h, [S, N]], [/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i], [[C, "LvTel"], h, [S, N]], [/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i], [h, [C, "Envizen"], [S, R]], [/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i], [C, h, [S, R]], [/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i], [h, [C, "MachSpeed"], [S, R]], [/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i], [C, h, [S, R]], [/android.+[;\/]\s*TU_(1491)\s+build/i], [h, [C, "Rotor"], [S, R]], [/android.+(KS(.+))\s+build/i], [h, [C, "Amazon"], [S, R]], [/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i], [C, h, [S, R]], [/\s(tablet|tab)[;\/]/i, /\s(mobile)(?:[;\/]|\ssafari)/i], [[S, Z.lowerize], C, h], [/(android[\w\.\s\-]{0,9});.+build/i], [h, [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]] }, ce = function(ee, z) {
|
|
8440
8448
|
if (typeof ee == "object" && (z = ee, ee = s), !(this instanceof ce))
|
|
8441
8449
|
return new ce(ee, z).getResult();
|
|
8442
|
-
var
|
|
8450
|
+
var U = ee || (o && o.navigator && o.navigator.userAgent ? o.navigator.userAgent : l), Y = z ? Z.extend(ue, z) : ue;
|
|
8443
8451
|
return this.getBrowser = function() {
|
|
8444
8452
|
var te = { name: s, version: s };
|
|
8445
|
-
return H.rgx.call(te,
|
|
8453
|
+
return H.rgx.call(te, U, Y.browser), te.major = Z.major(te.version), te;
|
|
8446
8454
|
}, this.getCPU = function() {
|
|
8447
8455
|
var te = { architecture: s };
|
|
8448
|
-
return H.rgx.call(te,
|
|
8456
|
+
return H.rgx.call(te, U, Y.cpu), te;
|
|
8449
8457
|
}, this.getDevice = function() {
|
|
8450
8458
|
var te = { vendor: s, model: s, type: s };
|
|
8451
|
-
return H.rgx.call(te,
|
|
8459
|
+
return H.rgx.call(te, U, Y.device), te;
|
|
8452
8460
|
}, this.getEngine = function() {
|
|
8453
8461
|
var te = { name: s, version: s };
|
|
8454
|
-
return H.rgx.call(te,
|
|
8462
|
+
return H.rgx.call(te, U, Y.engine), te;
|
|
8455
8463
|
}, this.getOS = function() {
|
|
8456
8464
|
var te = { name: s, version: s };
|
|
8457
|
-
return H.rgx.call(te,
|
|
8465
|
+
return H.rgx.call(te, U, Y.os), te;
|
|
8458
8466
|
}, this.getResult = function() {
|
|
8459
8467
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
8460
8468
|
}, this.getUA = function() {
|
|
8461
|
-
return
|
|
8469
|
+
return U;
|
|
8462
8470
|
}, this.setUA = function(te) {
|
|
8463
|
-
return
|
|
8471
|
+
return U = te, this;
|
|
8464
8472
|
}, this;
|
|
8465
8473
|
};
|
|
8466
8474
|
ce.VERSION = a, ce.BROWSER = { NAME: m, MAJOR: w, VERSION: b }, ce.CPU = { ARCHITECTURE: I }, ce.DEVICE = { MODEL: h, VENDOR: C, TYPE: S, CONSOLE: k, MOBILE: N, SMARTTV: ae, TABLET: R, WEARABLE: _e, EMBEDDED: le }, ce.ENGINE = { NAME: m, VERSION: b }, ce.OS = { NAME: m, VERSION: b }, typeof r !== f ? (typeof e !== f && e.exports && (r = e.exports = ce), r.UAParser = ce) : n(3) ? (i = (function() {
|
|
@@ -8474,8 +8482,8 @@ function b1() {
|
|
|
8474
8482
|
}, we.ua.set = function(ee) {
|
|
8475
8483
|
ve.setUA(ee);
|
|
8476
8484
|
var z = ve.getResult();
|
|
8477
|
-
for (var
|
|
8478
|
-
we.ua[
|
|
8485
|
+
for (var U in z)
|
|
8486
|
+
we.ua[U] = z[U];
|
|
8479
8487
|
};
|
|
8480
8488
|
}
|
|
8481
8489
|
})(typeof window == "object" ? window : this);
|
|
@@ -8590,9 +8598,9 @@ var C1 = b1(), S1 = Object.defineProperty, Or = (t, e, r, n) => {
|
|
|
8590
8598
|
(s = t[o]) && (i = s(e, r, i) || i);
|
|
8591
8599
|
return i && S1(e, r, i), i;
|
|
8592
8600
|
};
|
|
8593
|
-
const No = class No extends
|
|
8601
|
+
const No = class No extends Pr {
|
|
8594
8602
|
constructor() {
|
|
8595
|
-
super(...arguments), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new y1(this), this.store =
|
|
8603
|
+
super(...arguments), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new y1(this), this.store = Ue.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) => {
|
|
8596
8604
|
this.store.listener({
|
|
8597
8605
|
eventType: Fn.MESSAGE,
|
|
8598
8606
|
message: r,
|
|
@@ -8605,7 +8613,7 @@ const No = class No extends Mr {
|
|
|
8605
8613
|
};
|
|
8606
8614
|
}
|
|
8607
8615
|
connectedCallback() {
|
|
8608
|
-
super.connectedCallback(), this.unsubscribeFromStore =
|
|
8616
|
+
super.connectedCallback(), this.unsubscribeFromStore = Ue.subscribe((e) => {
|
|
8609
8617
|
this.currentScreenConfig = e.currentScreenConfig, this.processingScreenFromWorkflow = e.processingTransformedTemplate, this.isProcessing = e.isProcessing, this.loadedModules = e.externalModules, this.modulesConfig = e.modulesConfig;
|
|
8610
8618
|
});
|
|
8611
8619
|
}
|
|
@@ -8614,7 +8622,7 @@ const No = class No extends Mr {
|
|
|
8614
8622
|
if (!e || !this.processingScreenFromWorkflow) return Oi`Processing...`;
|
|
8615
8623
|
const r = {
|
|
8616
8624
|
perform: this._performFromModule,
|
|
8617
|
-
moduleProps: X(
|
|
8625
|
+
moduleProps: X(T({}, this.processingScreenFromWorkflow), {
|
|
8618
8626
|
templateId: "PROGRESS"
|
|
8619
8627
|
}),
|
|
8620
8628
|
modulesConfig: this.modulesConfig,
|
|
@@ -8642,7 +8650,7 @@ const No = class No extends Mr {
|
|
|
8642
8650
|
return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = Hs(e.id, r), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
|
|
8643
8651
|
}
|
|
8644
8652
|
get version() {
|
|
8645
|
-
return `${"3.2.
|
|
8653
|
+
return `${"3.2.266-nightly".trim()}`;
|
|
8646
8654
|
}
|
|
8647
8655
|
disconnectedCallback() {
|
|
8648
8656
|
var e;
|
|
@@ -8682,18 +8690,18 @@ Or([
|
|
|
8682
8690
|
Or([
|
|
8683
8691
|
Er()
|
|
8684
8692
|
], Bt.prototype, "modulesConfig");
|
|
8685
|
-
class
|
|
8693
|
+
class M1 {
|
|
8686
8694
|
/** main commands */
|
|
8687
8695
|
initialize(e) {
|
|
8688
8696
|
return F(this, null, function* () {
|
|
8689
|
-
return
|
|
8697
|
+
return Ue.getState().initialize(e);
|
|
8690
8698
|
});
|
|
8691
8699
|
}
|
|
8692
8700
|
configure(e) {
|
|
8693
8701
|
return F(this, null, function* () {
|
|
8694
|
-
return "userName" in e ? yield
|
|
8702
|
+
return "userName" in e ? yield Ue.getState().configureByUserPass(e) : "apiKey" in e ? yield Ue.getState().configureByApiKey(e) : "url" in e && Object.keys(e).length === 1 ? yield Ue.getState().configureWithUrl(e.url) : {
|
|
8695
8703
|
error: new Ve({
|
|
8696
|
-
errorCode:
|
|
8704
|
+
errorCode: Le.CONFIG_MISSED_OR_INVALID,
|
|
8697
8705
|
message: "No valid config found"
|
|
8698
8706
|
})
|
|
8699
8707
|
};
|
|
@@ -8701,48 +8709,48 @@ class P1 {
|
|
|
8701
8709
|
}
|
|
8702
8710
|
getWorkFlows(e) {
|
|
8703
8711
|
return F(this, null, function* () {
|
|
8704
|
-
return yield
|
|
8712
|
+
return yield Ue.getState().getWorkflows(e);
|
|
8705
8713
|
});
|
|
8706
8714
|
}
|
|
8707
8715
|
prepareWorkflow(r) {
|
|
8708
8716
|
return F(this, arguments, function* ({ workflowId: e }) {
|
|
8709
|
-
return yield
|
|
8717
|
+
return yield Ue.getState().prepareWorkflowAndPrepareUi(e);
|
|
8710
8718
|
});
|
|
8711
8719
|
}
|
|
8712
8720
|
startWorkflow(e) {
|
|
8713
8721
|
return F(this, null, function* () {
|
|
8714
|
-
const n =
|
|
8722
|
+
const n = Ue.getState().trackLocation ? yield _d() : null;
|
|
8715
8723
|
return new Promise((i) => {
|
|
8716
8724
|
const o = (d) => {
|
|
8717
8725
|
i(d);
|
|
8718
8726
|
}, s = e == null ? void 0 : e.locale, a = e == null ? void 0 : e.metadata, l = fd(s);
|
|
8719
|
-
|
|
8720
|
-
d.error && (
|
|
8727
|
+
Ue.getState().startNewSession({ completion: o, locale: l, metadata: a, location: n }).then((d) => {
|
|
8728
|
+
d.error && (Ue.getState().removeCurrentSessionDataLsAndStore(), o(d)), d.results && (Ue.getState().removeCurrentSessionDataLsAndStore(), o(d)), Ue.getState().playWorkflow();
|
|
8721
8729
|
});
|
|
8722
8730
|
});
|
|
8723
8731
|
});
|
|
8724
8732
|
}
|
|
8725
8733
|
deinitialize() {
|
|
8726
8734
|
return F(this, null, function* () {
|
|
8727
|
-
return yield
|
|
8735
|
+
return yield Ue.getState().deinitialize();
|
|
8728
8736
|
});
|
|
8729
8737
|
}
|
|
8730
8738
|
/** service commands */
|
|
8731
8739
|
get version() {
|
|
8732
|
-
return "3.2.
|
|
8740
|
+
return "3.2.266-nightly";
|
|
8733
8741
|
}
|
|
8734
8742
|
set nonce(e) {
|
|
8735
|
-
|
|
8743
|
+
Ue.getState().setNonce(e);
|
|
8736
8744
|
}
|
|
8737
8745
|
set eventListener(e) {
|
|
8738
8746
|
if (!e || typeof e != "function") {
|
|
8739
8747
|
console.warn("IdvIntegrationService:: listener is not a function");
|
|
8740
8748
|
return;
|
|
8741
8749
|
}
|
|
8742
|
-
|
|
8750
|
+
Ue.getState().setListener(e);
|
|
8743
8751
|
}
|
|
8744
8752
|
set sessionRestoreMode(e) {
|
|
8745
|
-
|
|
8753
|
+
Ue.getState().setSessionRestoreMode(e);
|
|
8746
8754
|
}
|
|
8747
8755
|
}
|
|
8748
8756
|
const E1 = window.customElements.get("idv-flow");
|
|
@@ -8751,10 +8759,10 @@ export {
|
|
|
8751
8759
|
Ce as BaseError,
|
|
8752
8760
|
gd as BaseModule,
|
|
8753
8761
|
Kt as ConnectionError,
|
|
8754
|
-
|
|
8762
|
+
Ln as DeinitializationError,
|
|
8755
8763
|
Fn as IdvEventTypesEnum,
|
|
8756
|
-
|
|
8757
|
-
|
|
8764
|
+
M1 as IdvIntegrationService,
|
|
8765
|
+
Mr as IdvServiceMessages,
|
|
8758
8766
|
Bt as IdvWebComponent,
|
|
8759
8767
|
ti as InitializeError,
|
|
8760
8768
|
Et as PrepareWorkflowError,
|