@tsocial/tvweb-sdk.tcli 0.0.0-beta.20251215-170414 → 0.0.0-beta.20251217-142321
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/build/tvweb-sdk.cjs.min.js +774 -758
- package/build/tvweb-sdk.esm.min.js +774 -758
- package/build/tvweb-sdk.tcli.standalone.js +624 -558
- package/build/tvweb-sdk.tcli.standalone.min.js +774 -758
- package/build/types/index.d.ts +2 -0
- package/package.json +5 -5
|
@@ -33783,7 +33783,7 @@
|
|
|
33783
33783
|
}, nS$1;
|
|
33784
33784
|
}();
|
|
33785
33785
|
function nB$1() {
|
|
33786
|
-
return "0.0.0-beta.
|
|
33786
|
+
return "0.0.0-beta.20251217-142321";
|
|
33787
33787
|
}
|
|
33788
33788
|
function nI$1() {
|
|
33789
33789
|
return {
|
|
@@ -41260,52 +41260,49 @@
|
|
|
41260
41260
|
}(), uG);
|
|
41261
41261
|
}();
|
|
41262
41262
|
function dm(e, t) {
|
|
41263
|
-
let r =
|
|
41263
|
+
let r = dv();
|
|
41264
41264
|
return (dm = function(e, t) {
|
|
41265
|
-
return r[e -=
|
|
41265
|
+
return r[e -= 360];
|
|
41266
41266
|
})(e, t);
|
|
41267
41267
|
}
|
|
41268
|
-
let dg = dm;
|
|
41269
|
-
|
|
41268
|
+
let dg = dm, dy = dm, db = dv();
|
|
41269
|
+
for(;;)try {
|
|
41270
|
+
if (parseInt(dy(360)) / 1 + parseInt(dy(376)) / 2 * (parseInt(dy(364)) / 3) + parseInt(dy(377)) / 4 * (parseInt(dy(367)) / 5) + -parseInt(dy(380)) / 6 + parseInt(dy(374)) / 7 * (parseInt(dy(369)) / 8) + -parseInt(dy(373)) / 9 * (parseInt(dy(378)) / 10) + parseInt(dy(365)) / 11 === 431675) break;
|
|
41271
|
+
db.push(db.shift());
|
|
41272
|
+
} catch (e) {
|
|
41273
|
+
db.push(db.shift());
|
|
41274
|
+
}
|
|
41275
|
+
function dv() {
|
|
41270
41276
|
let e = [
|
|
41271
|
-
"
|
|
41272
|
-
"
|
|
41273
|
-
"DepBO8t60S",
|
|
41274
|
-
"+faHkP3QC3",
|
|
41275
|
-
"D9EKOWS+U4",
|
|
41276
|
-
"KA==",
|
|
41277
|
-
"000",
|
|
41278
|
-
"KoZIzj0DAQ",
|
|
41279
|
-
"ssRdXLZEX8",
|
|
41280
|
-
"78pJsmjA",
|
|
41281
|
-
"23755112qixOGK",
|
|
41282
|
-
"ytJdcsPxrD",
|
|
41277
|
+
"431298HdIesc",
|
|
41278
|
+
"28QBzsDj",
|
|
41283
41279
|
"MfPrcYTM70",
|
|
41284
|
-
"
|
|
41285
|
-
"
|
|
41280
|
+
"278jLdKKf",
|
|
41281
|
+
"69524PqGfjj",
|
|
41282
|
+
"40oyrDAO",
|
|
41283
|
+
"Mjci1ul8mm",
|
|
41284
|
+
"4090686MGSzKL",
|
|
41285
|
+
"ssRdXLZEX8",
|
|
41286
41286
|
"44P0rKKsZK",
|
|
41287
|
-
"
|
|
41288
|
-
"
|
|
41289
|
-
"
|
|
41290
|
-
"653601YIYffL",
|
|
41291
|
-
"2315541rITdMg",
|
|
41287
|
+
"388265omPOkm",
|
|
41288
|
+
"D9EKOWS+U4",
|
|
41289
|
+
"KA==",
|
|
41292
41290
|
"2a8648ce3d",
|
|
41293
|
-
"
|
|
41294
|
-
"
|
|
41295
|
-
"
|
|
41291
|
+
"1131IWqIwd",
|
|
41292
|
+
"3490498FdsWqz",
|
|
41293
|
+
"MFkwEwYHKo",
|
|
41294
|
+
"130pWIRuI",
|
|
41295
|
+
"KoZIzj0DAQ",
|
|
41296
|
+
"190504tfNTkt",
|
|
41297
|
+
"ZIzj0CAQYI",
|
|
41298
|
+
"3d02010608",
|
|
41299
|
+
"DepBO8t60S"
|
|
41296
41300
|
];
|
|
41297
|
-
return (
|
|
41301
|
+
return (dv = function() {
|
|
41298
41302
|
return e;
|
|
41299
41303
|
})();
|
|
41300
41304
|
}
|
|
41301
|
-
let
|
|
41302
|
-
for(;;)try {
|
|
41303
|
-
if (parseInt(db(350)) / 1 + parseInt(db(353)) / 2 + parseInt(db(351)) / 3 + parseInt(db(349)) / 4 + parseInt(db(345)) / 5 * (parseInt(db(340)) / 6) + parseInt(db(348)) / 7 + -parseInt(db(341)) / 8 === 573683) break;
|
|
41304
|
-
dv.push(dv.shift());
|
|
41305
|
-
} catch (e) {
|
|
41306
|
-
dv.push(dv.shift());
|
|
41307
|
-
}
|
|
41308
|
-
let d_ = dg(355) + dg(357) + "3d02010608" + dg(352) + dg(356) + dg(337), dx = dg(344) + "ZIzj0CAQYI" + dg(338) + dg(347) + dg(358) + dg(342) + dg(334) + dg(346) + dg(354) + dg(335) + dg(343) + dg(339) + dg(336);
|
|
41305
|
+
let d_ = "3059301306072a8648ce" + dg(371) + dg(363) + "0301070342000", dx = dg(366) + dg(370) + dg(368) + "cDQgAE9h6Z" + dg(372) + "ytJdcsPxrD+faHkP3QC3" + dg(382) + dg(379) + dg(361) + dg(375) + dg(381) + dg(362);
|
|
41309
41306
|
async function dC(e) {
|
|
41310
41307
|
let t = new TextEncoder().encode(e);
|
|
41311
41308
|
return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", t))).map((e)=>e.toString(16).padStart(2, "0")).join("");
|
|
@@ -43601,6 +43598,10 @@
|
|
|
43601
43598
|
}
|
|
43602
43599
|
}), f0 = Object.freeze({
|
|
43603
43600
|
__proto__: null,
|
|
43601
|
+
getTheme: (e, t = "")=>(r)=>{
|
|
43602
|
+
let { theme: n } = r, i = "function" == typeof e ? e(r) : e, a = dN(n, "themeVersion"), o = dN(n, "defaultThemes", {}), s = dN(o, a, {});
|
|
43603
|
+
return dN(n, i, dN(s, i, t));
|
|
43604
|
+
},
|
|
43604
43605
|
useThemeContext: ()=>reactExports.useContext(et$2)
|
|
43605
43606
|
});
|
|
43606
43607
|
function f1(e) {
|
|
@@ -53110,7 +53111,7 @@
|
|
|
53110
53111
|
});
|
|
53111
53112
|
};
|
|
53112
53113
|
|
|
53113
|
-
var Z, K, Y, J, ee, et, er, eo, en$1, ei, ea, es, ec, el, ed, eu,
|
|
53114
|
+
var Z, K, Y, J, ee, et, er, eo, en$1, ei, ea, es, ec, el, ed, eu, ep, ef, eh, em, eg, eb, ev, ew, ek, ey, eC, eB, e_, ex, eP, eS, eE, eT, eD, e$, ej, eI, eO, eM, eA, eR, eL, eF, eN, ez, eV, eW, eU, eq, eQ, eX, eH, eG, eZ, eK, eY, eJ, e3, e2, e5, e0, e1, e8, e9, e4, e7, e6, te, tt, tr, to, tn, ti, ta, ts, tc, tl, td, tu, tp, tf, th, tm, tg, tb, tv, tw, tk, ty, tC, tB, t_, tx, tP, tS, tE, tT, tD, t$, tj, tI, tO, tM, tA, tR, tL, tF, tN, tz, tV, tW, tU, tq, tQ, tX, tH, tG, tZ, tK, tY, tJ, t3, t2, t5, t0, t1, t8, t9, t4, t7, t6, re, rt, rr, ro, rn, ri, ra, rs, rc, rl, rd, ru, rp, rf, rh, rm, rg, rb, rv, rw, rk, ry, rC, rB, r_, rx, rP, rS, rE, rT, rD, r$, rj, rI, rO, rM, rA, rR, rL, rF, rN, rz, rV, rW, rU, rq, rQ, rX, rH, rG, rZ, rK, rY, rJ, r3, r2, r5, r0, r1, r8, r9, r4, r7, r6, oe, ot, or, oo, on, oi, oa, os, oc, ol, od, ou, op, of, oh, om, og, ob, ov, ow, ok, oy, oC, oB, o_, ox, oP, oS, oE, oT, oD, o$, oj, oI, oO, oM, oA, oR, oL, oF, oN, oz, oV, oW, oq, oQ = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
|
53114
53115
|
function oX(t) {
|
|
53115
53116
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
53116
53117
|
}
|
|
@@ -53189,7 +53190,7 @@
|
|
|
53189
53190
|
};
|
|
53190
53191
|
}
|
|
53191
53192
|
function o5() {
|
|
53192
|
-
return
|
|
53193
|
+
return ef ? ep : (ef = 1, ep = function(t) {
|
|
53193
53194
|
return null != t && "object" == typeof t;
|
|
53194
53195
|
});
|
|
53195
53196
|
}
|
|
@@ -53421,10 +53422,10 @@
|
|
|
53421
53422
|
return t(this, r).get(r);
|
|
53422
53423
|
};
|
|
53423
53424
|
}(), n = function() {
|
|
53424
|
-
if (
|
|
53425
|
-
|
|
53425
|
+
if (tf) return tp;
|
|
53426
|
+
tf = 1;
|
|
53426
53427
|
var t = nr();
|
|
53427
|
-
return
|
|
53428
|
+
return tp = function(r) {
|
|
53428
53429
|
return t(this, r).has(r);
|
|
53429
53430
|
};
|
|
53430
53431
|
}(), i = function() {
|
|
@@ -53567,16 +53568,16 @@
|
|
|
53567
53568
|
function nc(t, r) {
|
|
53568
53569
|
return t.replace(RegExp("(^|\\s)" + r + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
53569
53570
|
}
|
|
53570
|
-
var nl = !1, nd = /*#__PURE__*/ React.createContext(null), nu = "unmounted",
|
|
53571
|
+
var nl = !1, nd = /*#__PURE__*/ React.createContext(null), nu = "unmounted", np = "exited", nf = "entering", nh = "entered", nm = "exiting", ng = function(r) {
|
|
53571
53572
|
function o(t, o) {
|
|
53572
53573
|
var n, i = r.call(this, t, o) || this, a = o && !o.isMounting ? t.enter : t.appear;
|
|
53573
|
-
return i.appearStatus = null, t.in ? a ? (n =
|
|
53574
|
+
return i.appearStatus = null, t.in ? a ? (n = np, i.appearStatus = nf) : n = nh : n = t.unmountOnExit || t.mountOnEnter ? nu : np, i.state = {
|
|
53574
53575
|
status: n
|
|
53575
53576
|
}, i.nextCallback = null, i;
|
|
53576
53577
|
}
|
|
53577
53578
|
ns(o, r), o.getDerivedStateFromProps = function(t, r) {
|
|
53578
53579
|
return t.in && r.status === nu ? {
|
|
53579
|
-
status:
|
|
53580
|
+
status: np
|
|
53580
53581
|
} : null;
|
|
53581
53582
|
};
|
|
53582
53583
|
var n = o.prototype;
|
|
@@ -53586,7 +53587,7 @@
|
|
|
53586
53587
|
var r = null;
|
|
53587
53588
|
if (t !== this.props) {
|
|
53588
53589
|
var o = this.state.status;
|
|
53589
|
-
this.props.in ? o !==
|
|
53590
|
+
this.props.in ? o !== nf && o !== nh && (r = nf) : (o === nf || o === nh) && (r = nm);
|
|
53590
53591
|
}
|
|
53591
53592
|
this.updateStatus(!1, r);
|
|
53592
53593
|
}, n.componentWillUnmount = function() {
|
|
@@ -53599,7 +53600,7 @@
|
|
|
53599
53600
|
appear: o
|
|
53600
53601
|
};
|
|
53601
53602
|
}, n.updateStatus = function(t, r) {
|
|
53602
|
-
void 0 === t && (t = !1), null !== r ? (this.cancelNextCallback(), r ===
|
|
53603
|
+
void 0 === t && (t = !1), null !== r ? (this.cancelNextCallback(), r === nf ? this.performEnter(t) : this.performExit()) : this.props.unmountOnExit && this.state.status === np && this.setState({
|
|
53603
53604
|
status: nu
|
|
53604
53605
|
});
|
|
53605
53606
|
}, n.performEnter = function(t) {
|
|
@@ -53610,7 +53611,7 @@
|
|
|
53610
53611
|
n
|
|
53611
53612
|
], a = i[0], s = i[1], c = this.getTimeouts(), l = n ? c.appear : c.enter;
|
|
53612
53613
|
(t || o) && !nl ? (this.props.onEnter(a, s), this.safeSetState({
|
|
53613
|
-
status:
|
|
53614
|
+
status: nf
|
|
53614
53615
|
}, function() {
|
|
53615
53616
|
r.props.onEntering(a, s), r.onTransitionEnd(l, function() {
|
|
53616
53617
|
r.safeSetState({
|
|
@@ -53627,7 +53628,7 @@
|
|
|
53627
53628
|
}, n.performExit = function() {
|
|
53628
53629
|
var t = this, r = this.props.exit, o = this.getTimeouts(), n = this.props.nodeRef ? void 0 : ReactDOM.findDOMNode(this);
|
|
53629
53630
|
!r || nl ? this.safeSetState({
|
|
53630
|
-
status:
|
|
53631
|
+
status: np
|
|
53631
53632
|
}, function() {
|
|
53632
53633
|
t.props.onExited(n);
|
|
53633
53634
|
}) : (this.props.onExit(n), this.safeSetState({
|
|
@@ -53635,7 +53636,7 @@
|
|
|
53635
53636
|
}, function() {
|
|
53636
53637
|
t.props.onExiting(n), t.onTransitionEnd(o.exit, function() {
|
|
53637
53638
|
t.safeSetState({
|
|
53638
|
-
status:
|
|
53639
|
+
status: np
|
|
53639
53640
|
}, function() {
|
|
53640
53641
|
t.props.onExited(n);
|
|
53641
53642
|
});
|
|
@@ -53708,7 +53709,7 @@
|
|
|
53708
53709
|
onExit: nb,
|
|
53709
53710
|
onExiting: nb,
|
|
53710
53711
|
onExited: nb
|
|
53711
|
-
}, ng.UNMOUNTED = nu, ng.EXITED =
|
|
53712
|
+
}, ng.UNMOUNTED = nu, ng.EXITED = np, ng.ENTERING = nf, ng.ENTERED = nh, ng.EXITING = nm;
|
|
53712
53713
|
var nv = function(t, r) {
|
|
53713
53714
|
return t && r && r.split(" ").forEach(function(r) {
|
|
53714
53715
|
var o, n;
|
|
@@ -53803,7 +53804,7 @@
|
|
|
53803
53804
|
return /*#__PURE__*/ React.cloneElement(o, {
|
|
53804
53805
|
in: !1,
|
|
53805
53806
|
onExited: nC(o, "onExited", function() {
|
|
53806
|
-
n(
|
|
53807
|
+
n(nf, null);
|
|
53807
53808
|
})
|
|
53808
53809
|
});
|
|
53809
53810
|
}, tL[ny] = function(r) {
|
|
@@ -53813,7 +53814,7 @@
|
|
|
53813
53814
|
/*#__PURE__*/ React.cloneElement(i, {
|
|
53814
53815
|
in: !0,
|
|
53815
53816
|
onEntered: nC(i, "onEntered", function() {
|
|
53816
|
-
n(
|
|
53817
|
+
n(nf);
|
|
53817
53818
|
})
|
|
53818
53819
|
})
|
|
53819
53820
|
];
|
|
@@ -53866,8 +53867,8 @@
|
|
|
53866
53867
|
if (null == r.children) return {
|
|
53867
53868
|
current: null
|
|
53868
53869
|
};
|
|
53869
|
-
if (o.status ===
|
|
53870
|
-
status:
|
|
53870
|
+
if (o.status === nf && r.mode === ny) return {
|
|
53871
|
+
status: nf
|
|
53871
53872
|
};
|
|
53872
53873
|
return o.current && (n = o.current, !(n === (i = r.children) || /*#__PURE__*/ React.isValidElement(n) && /*#__PURE__*/ React.isValidElement(i) && null != n.key && n.key === i.key) && 1) ? {
|
|
53873
53874
|
status: nm
|
|
@@ -53884,7 +53885,7 @@
|
|
|
53884
53885
|
status: s
|
|
53885
53886
|
};
|
|
53886
53887
|
switch(s){
|
|
53887
|
-
case
|
|
53888
|
+
case nf:
|
|
53888
53889
|
r = n_[i](l);
|
|
53889
53890
|
break;
|
|
53890
53891
|
case nm:
|
|
@@ -53914,7 +53915,7 @@
|
|
|
53914
53915
|
var t, r;
|
|
53915
53916
|
if (tN) return nS.exports;
|
|
53916
53917
|
return tN = 1, t = nS, r = nS.exports, function(o, n) {
|
|
53917
|
-
var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name",
|
|
53918
|
+
var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name", p = "type", f = "vendor", h = "version", m = "architecture", g = "console", b = "mobile", v = "tablet", w = "smarttv", k = "wearable", y = "embedded", C = "Amazon", B = "Apple", _ = "ASUS", x = "BlackBerry", P = "Browser", S = "Chrome", E = "Firefox", T = "Google", D = "Huawei", $ = "Microsoft", j = "Motorola", I = "Opera", O = "Samsung", M = "Sharp", A = "Sony", R = "Xiaomi", L = "Zebra", F = "Facebook", N = "Chromium OS", z = "Mac OS", V = function(t, r) {
|
|
53918
53919
|
var o = {};
|
|
53919
53920
|
for(var n in t)r[n] && r[n].length % 2 == 0 ? o[n] = r[n].concat(t[n]) : o[n] = t[n];
|
|
53920
53921
|
return o;
|
|
@@ -53929,9 +53930,9 @@
|
|
|
53929
53930
|
if (typeof t === c) return t = t.replace(/^\s\s*/, ""), typeof r === a ? t : t.substring(0, 500);
|
|
53930
53931
|
}, X = function(t, r) {
|
|
53931
53932
|
for(var o, n, a, c, l, d, u = 0; u < r.length && !l;){
|
|
53932
|
-
var
|
|
53933
|
-
for(o = n = 0; o <
|
|
53934
|
-
if (l =
|
|
53933
|
+
var p = r[u], f = r[u + 1];
|
|
53934
|
+
for(o = n = 0; o < p.length && !l && p[o];){
|
|
53935
|
+
if (l = p[o++].exec(t)) for(a = 0; a < f.length; a++)d = l[++n], typeof (c = f[a]) === s && c.length > 0 ? 2 === c.length ? typeof c[1] == i ? this[c[0]] = c[1].call(this, d) : this[c[0]] = c[1] : 3 === c.length ? typeof c[1] !== i || c[1].exec && c[1].test ? this[c[0]] = d ? d.replace(c[1], c[2]) : void 0 : this[c[0]] = d ? c[1].call(this, d, c[2]) : void 0 : 4 === c.length && (this[c[0]] = d ? c[3].call(this, d.replace(c[1], c[2])) : void 0) : this[c] = d || void 0;
|
|
53935
53936
|
}
|
|
53936
53937
|
u += 2;
|
|
53937
53938
|
}
|
|
@@ -54515,11 +54516,11 @@
|
|
|
54515
54516
|
[
|
|
54516
54517
|
d,
|
|
54517
54518
|
[
|
|
54518
|
-
|
|
54519
|
+
f,
|
|
54519
54520
|
O
|
|
54520
54521
|
],
|
|
54521
54522
|
[
|
|
54522
|
-
|
|
54523
|
+
p,
|
|
54523
54524
|
v
|
|
54524
54525
|
]
|
|
54525
54526
|
],
|
|
@@ -54531,11 +54532,11 @@
|
|
|
54531
54532
|
[
|
|
54532
54533
|
d,
|
|
54533
54534
|
[
|
|
54534
|
-
|
|
54535
|
+
f,
|
|
54535
54536
|
O
|
|
54536
54537
|
],
|
|
54537
54538
|
[
|
|
54538
|
-
|
|
54539
|
+
p,
|
|
54539
54540
|
b
|
|
54540
54541
|
]
|
|
54541
54542
|
],
|
|
@@ -54545,11 +54546,11 @@
|
|
|
54545
54546
|
[
|
|
54546
54547
|
d,
|
|
54547
54548
|
[
|
|
54548
|
-
|
|
54549
|
+
f,
|
|
54549
54550
|
B
|
|
54550
54551
|
],
|
|
54551
54552
|
[
|
|
54552
|
-
|
|
54553
|
+
p,
|
|
54553
54554
|
b
|
|
54554
54555
|
]
|
|
54555
54556
|
],
|
|
@@ -54561,11 +54562,11 @@
|
|
|
54561
54562
|
[
|
|
54562
54563
|
d,
|
|
54563
54564
|
[
|
|
54564
|
-
|
|
54565
|
+
f,
|
|
54565
54566
|
B
|
|
54566
54567
|
],
|
|
54567
54568
|
[
|
|
54568
|
-
|
|
54569
|
+
p,
|
|
54569
54570
|
v
|
|
54570
54571
|
]
|
|
54571
54572
|
],
|
|
@@ -54575,7 +54576,7 @@
|
|
|
54575
54576
|
[
|
|
54576
54577
|
d,
|
|
54577
54578
|
[
|
|
54578
|
-
|
|
54579
|
+
f,
|
|
54579
54580
|
B
|
|
54580
54581
|
]
|
|
54581
54582
|
],
|
|
@@ -54585,11 +54586,11 @@
|
|
|
54585
54586
|
[
|
|
54586
54587
|
d,
|
|
54587
54588
|
[
|
|
54588
|
-
|
|
54589
|
+
f,
|
|
54589
54590
|
M
|
|
54590
54591
|
],
|
|
54591
54592
|
[
|
|
54592
|
-
|
|
54593
|
+
p,
|
|
54593
54594
|
b
|
|
54594
54595
|
]
|
|
54595
54596
|
],
|
|
@@ -54599,11 +54600,11 @@
|
|
|
54599
54600
|
[
|
|
54600
54601
|
d,
|
|
54601
54602
|
[
|
|
54602
|
-
|
|
54603
|
+
f,
|
|
54603
54604
|
D
|
|
54604
54605
|
],
|
|
54605
54606
|
[
|
|
54606
|
-
|
|
54607
|
+
p,
|
|
54607
54608
|
v
|
|
54608
54609
|
]
|
|
54609
54610
|
],
|
|
@@ -54614,11 +54615,11 @@
|
|
|
54614
54615
|
[
|
|
54615
54616
|
d,
|
|
54616
54617
|
[
|
|
54617
|
-
|
|
54618
|
+
f,
|
|
54618
54619
|
D
|
|
54619
54620
|
],
|
|
54620
54621
|
[
|
|
54621
|
-
|
|
54622
|
+
p,
|
|
54622
54623
|
b
|
|
54623
54624
|
]
|
|
54624
54625
|
],
|
|
@@ -54637,11 +54638,11 @@
|
|
|
54637
54638
|
" "
|
|
54638
54639
|
],
|
|
54639
54640
|
[
|
|
54640
|
-
|
|
54641
|
+
f,
|
|
54641
54642
|
R
|
|
54642
54643
|
],
|
|
54643
54644
|
[
|
|
54644
|
-
|
|
54645
|
+
p,
|
|
54645
54646
|
b
|
|
54646
54647
|
]
|
|
54647
54648
|
],
|
|
@@ -54656,11 +54657,11 @@
|
|
|
54656
54657
|
" "
|
|
54657
54658
|
],
|
|
54658
54659
|
[
|
|
54659
|
-
|
|
54660
|
+
f,
|
|
54660
54661
|
R
|
|
54661
54662
|
],
|
|
54662
54663
|
[
|
|
54663
|
-
|
|
54664
|
+
p,
|
|
54664
54665
|
v
|
|
54665
54666
|
]
|
|
54666
54667
|
],
|
|
@@ -54671,11 +54672,11 @@
|
|
|
54671
54672
|
[
|
|
54672
54673
|
d,
|
|
54673
54674
|
[
|
|
54674
|
-
|
|
54675
|
+
f,
|
|
54675
54676
|
"OPPO"
|
|
54676
54677
|
],
|
|
54677
54678
|
[
|
|
54678
|
-
|
|
54679
|
+
p,
|
|
54679
54680
|
b
|
|
54680
54681
|
]
|
|
54681
54682
|
],
|
|
@@ -54686,11 +54687,11 @@
|
|
|
54686
54687
|
[
|
|
54687
54688
|
d,
|
|
54688
54689
|
[
|
|
54689
|
-
|
|
54690
|
+
f,
|
|
54690
54691
|
"Vivo"
|
|
54691
54692
|
],
|
|
54692
54693
|
[
|
|
54693
|
-
|
|
54694
|
+
p,
|
|
54694
54695
|
b
|
|
54695
54696
|
]
|
|
54696
54697
|
],
|
|
@@ -54700,11 +54701,11 @@
|
|
|
54700
54701
|
[
|
|
54701
54702
|
d,
|
|
54702
54703
|
[
|
|
54703
|
-
|
|
54704
|
+
f,
|
|
54704
54705
|
"Realme"
|
|
54705
54706
|
],
|
|
54706
54707
|
[
|
|
54707
|
-
|
|
54708
|
+
p,
|
|
54708
54709
|
b
|
|
54709
54710
|
]
|
|
54710
54711
|
],
|
|
@@ -54716,11 +54717,11 @@
|
|
|
54716
54717
|
[
|
|
54717
54718
|
d,
|
|
54718
54719
|
[
|
|
54719
|
-
|
|
54720
|
+
f,
|
|
54720
54721
|
j
|
|
54721
54722
|
],
|
|
54722
54723
|
[
|
|
54723
|
-
|
|
54724
|
+
p,
|
|
54724
54725
|
b
|
|
54725
54726
|
]
|
|
54726
54727
|
],
|
|
@@ -54730,11 +54731,11 @@
|
|
|
54730
54731
|
[
|
|
54731
54732
|
d,
|
|
54732
54733
|
[
|
|
54733
|
-
|
|
54734
|
+
f,
|
|
54734
54735
|
j
|
|
54735
54736
|
],
|
|
54736
54737
|
[
|
|
54737
|
-
|
|
54738
|
+
p,
|
|
54738
54739
|
v
|
|
54739
54740
|
]
|
|
54740
54741
|
],
|
|
@@ -54744,11 +54745,11 @@
|
|
|
54744
54745
|
[
|
|
54745
54746
|
d,
|
|
54746
54747
|
[
|
|
54747
|
-
|
|
54748
|
+
f,
|
|
54748
54749
|
"LG"
|
|
54749
54750
|
],
|
|
54750
54751
|
[
|
|
54751
|
-
|
|
54752
|
+
p,
|
|
54752
54753
|
v
|
|
54753
54754
|
]
|
|
54754
54755
|
],
|
|
@@ -54760,11 +54761,11 @@
|
|
|
54760
54761
|
[
|
|
54761
54762
|
d,
|
|
54762
54763
|
[
|
|
54763
|
-
|
|
54764
|
+
f,
|
|
54764
54765
|
"LG"
|
|
54765
54766
|
],
|
|
54766
54767
|
[
|
|
54767
|
-
|
|
54768
|
+
p,
|
|
54768
54769
|
b
|
|
54769
54770
|
]
|
|
54770
54771
|
],
|
|
@@ -54775,11 +54776,11 @@
|
|
|
54775
54776
|
[
|
|
54776
54777
|
d,
|
|
54777
54778
|
[
|
|
54778
|
-
|
|
54779
|
+
f,
|
|
54779
54780
|
"Lenovo"
|
|
54780
54781
|
],
|
|
54781
54782
|
[
|
|
54782
|
-
|
|
54783
|
+
p,
|
|
54783
54784
|
v
|
|
54784
54785
|
]
|
|
54785
54786
|
],
|
|
@@ -54794,11 +54795,11 @@
|
|
|
54794
54795
|
" "
|
|
54795
54796
|
],
|
|
54796
54797
|
[
|
|
54797
|
-
|
|
54798
|
+
f,
|
|
54798
54799
|
"Nokia"
|
|
54799
54800
|
],
|
|
54800
54801
|
[
|
|
54801
|
-
|
|
54802
|
+
p,
|
|
54802
54803
|
b
|
|
54803
54804
|
]
|
|
54804
54805
|
],
|
|
@@ -54808,11 +54809,11 @@
|
|
|
54808
54809
|
[
|
|
54809
54810
|
d,
|
|
54810
54811
|
[
|
|
54811
|
-
|
|
54812
|
+
f,
|
|
54812
54813
|
T
|
|
54813
54814
|
],
|
|
54814
54815
|
[
|
|
54815
|
-
|
|
54816
|
+
p,
|
|
54816
54817
|
v
|
|
54817
54818
|
]
|
|
54818
54819
|
],
|
|
@@ -54822,11 +54823,11 @@
|
|
|
54822
54823
|
[
|
|
54823
54824
|
d,
|
|
54824
54825
|
[
|
|
54825
|
-
|
|
54826
|
+
f,
|
|
54826
54827
|
T
|
|
54827
54828
|
],
|
|
54828
54829
|
[
|
|
54829
|
-
|
|
54830
|
+
p,
|
|
54830
54831
|
b
|
|
54831
54832
|
]
|
|
54832
54833
|
],
|
|
@@ -54836,11 +54837,11 @@
|
|
|
54836
54837
|
[
|
|
54837
54838
|
d,
|
|
54838
54839
|
[
|
|
54839
|
-
|
|
54840
|
+
f,
|
|
54840
54841
|
A
|
|
54841
54842
|
],
|
|
54842
54843
|
[
|
|
54843
|
-
|
|
54844
|
+
p,
|
|
54844
54845
|
b
|
|
54845
54846
|
]
|
|
54846
54847
|
],
|
|
@@ -54854,11 +54855,11 @@
|
|
|
54854
54855
|
"Xperia Tablet"
|
|
54855
54856
|
],
|
|
54856
54857
|
[
|
|
54857
|
-
|
|
54858
|
+
f,
|
|
54858
54859
|
A
|
|
54859
54860
|
],
|
|
54860
54861
|
[
|
|
54861
|
-
|
|
54862
|
+
p,
|
|
54862
54863
|
v
|
|
54863
54864
|
]
|
|
54864
54865
|
],
|
|
@@ -54869,11 +54870,11 @@
|
|
|
54869
54870
|
[
|
|
54870
54871
|
d,
|
|
54871
54872
|
[
|
|
54872
|
-
|
|
54873
|
+
f,
|
|
54873
54874
|
"OnePlus"
|
|
54874
54875
|
],
|
|
54875
54876
|
[
|
|
54876
|
-
|
|
54877
|
+
p,
|
|
54877
54878
|
b
|
|
54878
54879
|
]
|
|
54879
54880
|
],
|
|
@@ -54885,11 +54886,11 @@
|
|
|
54885
54886
|
[
|
|
54886
54887
|
d,
|
|
54887
54888
|
[
|
|
54888
|
-
|
|
54889
|
+
f,
|
|
54889
54890
|
C
|
|
54890
54891
|
],
|
|
54891
54892
|
[
|
|
54892
|
-
|
|
54893
|
+
p,
|
|
54893
54894
|
v
|
|
54894
54895
|
]
|
|
54895
54896
|
],
|
|
@@ -54903,11 +54904,11 @@
|
|
|
54903
54904
|
"Fire Phone $1"
|
|
54904
54905
|
],
|
|
54905
54906
|
[
|
|
54906
|
-
|
|
54907
|
+
f,
|
|
54907
54908
|
C
|
|
54908
54909
|
],
|
|
54909
54910
|
[
|
|
54910
|
-
|
|
54911
|
+
p,
|
|
54911
54912
|
b
|
|
54912
54913
|
]
|
|
54913
54914
|
],
|
|
@@ -54916,9 +54917,9 @@
|
|
|
54916
54917
|
],
|
|
54917
54918
|
[
|
|
54918
54919
|
d,
|
|
54919
|
-
|
|
54920
|
+
f,
|
|
54920
54921
|
[
|
|
54921
|
-
|
|
54922
|
+
p,
|
|
54922
54923
|
v
|
|
54923
54924
|
]
|
|
54924
54925
|
],
|
|
@@ -54929,11 +54930,11 @@
|
|
|
54929
54930
|
[
|
|
54930
54931
|
d,
|
|
54931
54932
|
[
|
|
54932
|
-
|
|
54933
|
+
f,
|
|
54933
54934
|
x
|
|
54934
54935
|
],
|
|
54935
54936
|
[
|
|
54936
|
-
|
|
54937
|
+
p,
|
|
54937
54938
|
b
|
|
54938
54939
|
]
|
|
54939
54940
|
],
|
|
@@ -54943,11 +54944,11 @@
|
|
|
54943
54944
|
[
|
|
54944
54945
|
d,
|
|
54945
54946
|
[
|
|
54946
|
-
|
|
54947
|
+
f,
|
|
54947
54948
|
_
|
|
54948
54949
|
],
|
|
54949
54950
|
[
|
|
54950
|
-
|
|
54951
|
+
p,
|
|
54951
54952
|
v
|
|
54952
54953
|
]
|
|
54953
54954
|
],
|
|
@@ -54957,11 +54958,11 @@
|
|
|
54957
54958
|
[
|
|
54958
54959
|
d,
|
|
54959
54960
|
[
|
|
54960
|
-
|
|
54961
|
+
f,
|
|
54961
54962
|
_
|
|
54962
54963
|
],
|
|
54963
54964
|
[
|
|
54964
|
-
|
|
54965
|
+
p,
|
|
54965
54966
|
b
|
|
54966
54967
|
]
|
|
54967
54968
|
],
|
|
@@ -54971,11 +54972,11 @@
|
|
|
54971
54972
|
[
|
|
54972
54973
|
d,
|
|
54973
54974
|
[
|
|
54974
|
-
|
|
54975
|
+
f,
|
|
54975
54976
|
"HTC"
|
|
54976
54977
|
],
|
|
54977
54978
|
[
|
|
54978
|
-
|
|
54979
|
+
p,
|
|
54979
54980
|
v
|
|
54980
54981
|
]
|
|
54981
54982
|
],
|
|
@@ -54985,14 +54986,14 @@
|
|
|
54985
54986
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
54986
54987
|
],
|
|
54987
54988
|
[
|
|
54988
|
-
|
|
54989
|
+
f,
|
|
54989
54990
|
[
|
|
54990
54991
|
d,
|
|
54991
54992
|
/_/g,
|
|
54992
54993
|
" "
|
|
54993
54994
|
],
|
|
54994
54995
|
[
|
|
54995
|
-
|
|
54996
|
+
p,
|
|
54996
54997
|
b
|
|
54997
54998
|
]
|
|
54998
54999
|
],
|
|
@@ -55002,11 +55003,11 @@
|
|
|
55002
55003
|
[
|
|
55003
55004
|
d,
|
|
55004
55005
|
[
|
|
55005
|
-
|
|
55006
|
+
f,
|
|
55006
55007
|
"Acer"
|
|
55007
55008
|
],
|
|
55008
55009
|
[
|
|
55009
|
-
|
|
55010
|
+
p,
|
|
55010
55011
|
v
|
|
55011
55012
|
]
|
|
55012
55013
|
],
|
|
@@ -55017,11 +55018,11 @@
|
|
|
55017
55018
|
[
|
|
55018
55019
|
d,
|
|
55019
55020
|
[
|
|
55020
|
-
|
|
55021
|
+
f,
|
|
55021
55022
|
"Meizu"
|
|
55022
55023
|
],
|
|
55023
55024
|
[
|
|
55024
|
-
|
|
55025
|
+
p,
|
|
55025
55026
|
b
|
|
55026
55027
|
]
|
|
55027
55028
|
],
|
|
@@ -55031,11 +55032,11 @@
|
|
|
55031
55032
|
[
|
|
55032
55033
|
d,
|
|
55033
55034
|
[
|
|
55034
|
-
|
|
55035
|
+
f,
|
|
55035
55036
|
"Ulefone"
|
|
55036
55037
|
],
|
|
55037
55038
|
[
|
|
55038
|
-
|
|
55039
|
+
p,
|
|
55039
55040
|
b
|
|
55040
55041
|
]
|
|
55041
55042
|
],
|
|
@@ -55049,10 +55050,10 @@
|
|
|
55049
55050
|
/(oppo) ?([\w ]+) bui/i
|
|
55050
55051
|
],
|
|
55051
55052
|
[
|
|
55052
|
-
|
|
55053
|
+
f,
|
|
55053
55054
|
d,
|
|
55054
55055
|
[
|
|
55055
|
-
|
|
55056
|
+
p,
|
|
55056
55057
|
b
|
|
55057
55058
|
]
|
|
55058
55059
|
],
|
|
@@ -55069,10 +55070,10 @@
|
|
|
55069
55070
|
/(vodafone) ([\w ]+)(?:\)| bui)/i
|
|
55070
55071
|
],
|
|
55071
55072
|
[
|
|
55072
|
-
|
|
55073
|
+
f,
|
|
55073
55074
|
d,
|
|
55074
55075
|
[
|
|
55075
|
-
|
|
55076
|
+
p,
|
|
55076
55077
|
v
|
|
55077
55078
|
]
|
|
55078
55079
|
],
|
|
@@ -55082,11 +55083,11 @@
|
|
|
55082
55083
|
[
|
|
55083
55084
|
d,
|
|
55084
55085
|
[
|
|
55085
|
-
|
|
55086
|
+
f,
|
|
55086
55087
|
$
|
|
55087
55088
|
],
|
|
55088
55089
|
[
|
|
55089
|
-
|
|
55090
|
+
p,
|
|
55090
55091
|
v
|
|
55091
55092
|
]
|
|
55092
55093
|
],
|
|
@@ -55096,11 +55097,11 @@
|
|
|
55096
55097
|
[
|
|
55097
55098
|
d,
|
|
55098
55099
|
[
|
|
55099
|
-
|
|
55100
|
+
f,
|
|
55100
55101
|
"Fairphone"
|
|
55101
55102
|
],
|
|
55102
55103
|
[
|
|
55103
|
-
|
|
55104
|
+
p,
|
|
55104
55105
|
b
|
|
55105
55106
|
]
|
|
55106
55107
|
],
|
|
@@ -55110,11 +55111,11 @@
|
|
|
55110
55111
|
[
|
|
55111
55112
|
d,
|
|
55112
55113
|
[
|
|
55113
|
-
|
|
55114
|
+
f,
|
|
55114
55115
|
"AT&T"
|
|
55115
55116
|
],
|
|
55116
55117
|
[
|
|
55117
|
-
|
|
55118
|
+
p,
|
|
55118
55119
|
b
|
|
55119
55120
|
]
|
|
55120
55121
|
],
|
|
@@ -55124,11 +55125,11 @@
|
|
|
55124
55125
|
[
|
|
55125
55126
|
d,
|
|
55126
55127
|
[
|
|
55127
|
-
|
|
55128
|
+
f,
|
|
55128
55129
|
"Siemens"
|
|
55129
55130
|
],
|
|
55130
55131
|
[
|
|
55131
|
-
|
|
55132
|
+
p,
|
|
55132
55133
|
b
|
|
55133
55134
|
]
|
|
55134
55135
|
],
|
|
@@ -55138,11 +55139,11 @@
|
|
|
55138
55139
|
[
|
|
55139
55140
|
d,
|
|
55140
55141
|
[
|
|
55141
|
-
|
|
55142
|
+
f,
|
|
55142
55143
|
"RCA"
|
|
55143
55144
|
],
|
|
55144
55145
|
[
|
|
55145
|
-
|
|
55146
|
+
p,
|
|
55146
55147
|
v
|
|
55147
55148
|
]
|
|
55148
55149
|
],
|
|
@@ -55152,11 +55153,11 @@
|
|
|
55152
55153
|
[
|
|
55153
55154
|
d,
|
|
55154
55155
|
[
|
|
55155
|
-
|
|
55156
|
+
f,
|
|
55156
55157
|
"Dell"
|
|
55157
55158
|
],
|
|
55158
55159
|
[
|
|
55159
|
-
|
|
55160
|
+
p,
|
|
55160
55161
|
v
|
|
55161
55162
|
]
|
|
55162
55163
|
],
|
|
@@ -55166,11 +55167,11 @@
|
|
|
55166
55167
|
[
|
|
55167
55168
|
d,
|
|
55168
55169
|
[
|
|
55169
|
-
|
|
55170
|
+
f,
|
|
55170
55171
|
"Verizon"
|
|
55171
55172
|
],
|
|
55172
55173
|
[
|
|
55173
|
-
|
|
55174
|
+
p,
|
|
55174
55175
|
v
|
|
55175
55176
|
]
|
|
55176
55177
|
],
|
|
@@ -55180,11 +55181,11 @@
|
|
|
55180
55181
|
[
|
|
55181
55182
|
d,
|
|
55182
55183
|
[
|
|
55183
|
-
|
|
55184
|
+
f,
|
|
55184
55185
|
"Barnes & Noble"
|
|
55185
55186
|
],
|
|
55186
55187
|
[
|
|
55187
|
-
|
|
55188
|
+
p,
|
|
55188
55189
|
v
|
|
55189
55190
|
]
|
|
55190
55191
|
],
|
|
@@ -55194,11 +55195,11 @@
|
|
|
55194
55195
|
[
|
|
55195
55196
|
d,
|
|
55196
55197
|
[
|
|
55197
|
-
|
|
55198
|
+
f,
|
|
55198
55199
|
"NuVision"
|
|
55199
55200
|
],
|
|
55200
55201
|
[
|
|
55201
|
-
|
|
55202
|
+
p,
|
|
55202
55203
|
v
|
|
55203
55204
|
]
|
|
55204
55205
|
],
|
|
@@ -55208,11 +55209,11 @@
|
|
|
55208
55209
|
[
|
|
55209
55210
|
d,
|
|
55210
55211
|
[
|
|
55211
|
-
|
|
55212
|
+
f,
|
|
55212
55213
|
"ZTE"
|
|
55213
55214
|
],
|
|
55214
55215
|
[
|
|
55215
|
-
|
|
55216
|
+
p,
|
|
55216
55217
|
v
|
|
55217
55218
|
]
|
|
55218
55219
|
],
|
|
@@ -55222,11 +55223,11 @@
|
|
|
55222
55223
|
[
|
|
55223
55224
|
d,
|
|
55224
55225
|
[
|
|
55225
|
-
|
|
55226
|
+
f,
|
|
55226
55227
|
"ZTE"
|
|
55227
55228
|
],
|
|
55228
55229
|
[
|
|
55229
|
-
|
|
55230
|
+
p,
|
|
55230
55231
|
b
|
|
55231
55232
|
]
|
|
55232
55233
|
],
|
|
@@ -55236,11 +55237,11 @@
|
|
|
55236
55237
|
[
|
|
55237
55238
|
d,
|
|
55238
55239
|
[
|
|
55239
|
-
|
|
55240
|
+
f,
|
|
55240
55241
|
"Swiss"
|
|
55241
55242
|
],
|
|
55242
55243
|
[
|
|
55243
|
-
|
|
55244
|
+
p,
|
|
55244
55245
|
b
|
|
55245
55246
|
]
|
|
55246
55247
|
],
|
|
@@ -55250,11 +55251,11 @@
|
|
|
55250
55251
|
[
|
|
55251
55252
|
d,
|
|
55252
55253
|
[
|
|
55253
|
-
|
|
55254
|
+
f,
|
|
55254
55255
|
"Swiss"
|
|
55255
55256
|
],
|
|
55256
55257
|
[
|
|
55257
|
-
|
|
55258
|
+
p,
|
|
55258
55259
|
v
|
|
55259
55260
|
]
|
|
55260
55261
|
],
|
|
@@ -55264,11 +55265,11 @@
|
|
|
55264
55265
|
[
|
|
55265
55266
|
d,
|
|
55266
55267
|
[
|
|
55267
|
-
|
|
55268
|
+
f,
|
|
55268
55269
|
"Zeki"
|
|
55269
55270
|
],
|
|
55270
55271
|
[
|
|
55271
|
-
|
|
55272
|
+
p,
|
|
55272
55273
|
v
|
|
55273
55274
|
]
|
|
55274
55275
|
],
|
|
@@ -55278,12 +55279,12 @@
|
|
|
55278
55279
|
],
|
|
55279
55280
|
[
|
|
55280
55281
|
[
|
|
55281
|
-
|
|
55282
|
+
f,
|
|
55282
55283
|
"Dragon Touch"
|
|
55283
55284
|
],
|
|
55284
55285
|
d,
|
|
55285
55286
|
[
|
|
55286
|
-
|
|
55287
|
+
p,
|
|
55287
55288
|
v
|
|
55288
55289
|
]
|
|
55289
55290
|
],
|
|
@@ -55293,11 +55294,11 @@
|
|
|
55293
55294
|
[
|
|
55294
55295
|
d,
|
|
55295
55296
|
[
|
|
55296
|
-
|
|
55297
|
+
f,
|
|
55297
55298
|
"Insignia"
|
|
55298
55299
|
],
|
|
55299
55300
|
[
|
|
55300
|
-
|
|
55301
|
+
p,
|
|
55301
55302
|
v
|
|
55302
55303
|
]
|
|
55303
55304
|
],
|
|
@@ -55307,11 +55308,11 @@
|
|
|
55307
55308
|
[
|
|
55308
55309
|
d,
|
|
55309
55310
|
[
|
|
55310
|
-
|
|
55311
|
+
f,
|
|
55311
55312
|
"NextBook"
|
|
55312
55313
|
],
|
|
55313
55314
|
[
|
|
55314
|
-
|
|
55315
|
+
p,
|
|
55315
55316
|
v
|
|
55316
55317
|
]
|
|
55317
55318
|
],
|
|
@@ -55320,12 +55321,12 @@
|
|
|
55320
55321
|
],
|
|
55321
55322
|
[
|
|
55322
55323
|
[
|
|
55323
|
-
|
|
55324
|
+
f,
|
|
55324
55325
|
"Voice"
|
|
55325
55326
|
],
|
|
55326
55327
|
d,
|
|
55327
55328
|
[
|
|
55328
|
-
|
|
55329
|
+
p,
|
|
55329
55330
|
b
|
|
55330
55331
|
]
|
|
55331
55332
|
],
|
|
@@ -55334,12 +55335,12 @@
|
|
|
55334
55335
|
],
|
|
55335
55336
|
[
|
|
55336
55337
|
[
|
|
55337
|
-
|
|
55338
|
+
f,
|
|
55338
55339
|
"LvTel"
|
|
55339
55340
|
],
|
|
55340
55341
|
d,
|
|
55341
55342
|
[
|
|
55342
|
-
|
|
55343
|
+
p,
|
|
55343
55344
|
b
|
|
55344
55345
|
]
|
|
55345
55346
|
],
|
|
@@ -55349,11 +55350,11 @@
|
|
|
55349
55350
|
[
|
|
55350
55351
|
d,
|
|
55351
55352
|
[
|
|
55352
|
-
|
|
55353
|
+
f,
|
|
55353
55354
|
"Essential"
|
|
55354
55355
|
],
|
|
55355
55356
|
[
|
|
55356
|
-
|
|
55357
|
+
p,
|
|
55357
55358
|
b
|
|
55358
55359
|
]
|
|
55359
55360
|
],
|
|
@@ -55363,11 +55364,11 @@
|
|
|
55363
55364
|
[
|
|
55364
55365
|
d,
|
|
55365
55366
|
[
|
|
55366
|
-
|
|
55367
|
+
f,
|
|
55367
55368
|
"Envizen"
|
|
55368
55369
|
],
|
|
55369
55370
|
[
|
|
55370
|
-
|
|
55371
|
+
p,
|
|
55371
55372
|
v
|
|
55372
55373
|
]
|
|
55373
55374
|
],
|
|
@@ -55377,11 +55378,11 @@
|
|
|
55377
55378
|
[
|
|
55378
55379
|
d,
|
|
55379
55380
|
[
|
|
55380
|
-
|
|
55381
|
+
f,
|
|
55381
55382
|
"MachSpeed"
|
|
55382
55383
|
],
|
|
55383
55384
|
[
|
|
55384
|
-
|
|
55385
|
+
p,
|
|
55385
55386
|
v
|
|
55386
55387
|
]
|
|
55387
55388
|
],
|
|
@@ -55391,11 +55392,11 @@
|
|
|
55391
55392
|
[
|
|
55392
55393
|
d,
|
|
55393
55394
|
[
|
|
55394
|
-
|
|
55395
|
+
f,
|
|
55395
55396
|
"Rotor"
|
|
55396
55397
|
],
|
|
55397
55398
|
[
|
|
55398
|
-
|
|
55399
|
+
p,
|
|
55399
55400
|
v
|
|
55400
55401
|
]
|
|
55401
55402
|
],
|
|
@@ -55405,11 +55406,11 @@
|
|
|
55405
55406
|
[
|
|
55406
55407
|
d,
|
|
55407
55408
|
[
|
|
55408
|
-
|
|
55409
|
+
f,
|
|
55409
55410
|
"Nvidia"
|
|
55410
55411
|
],
|
|
55411
55412
|
[
|
|
55412
|
-
|
|
55413
|
+
p,
|
|
55413
55414
|
v
|
|
55414
55415
|
]
|
|
55415
55416
|
],
|
|
@@ -55417,10 +55418,10 @@
|
|
|
55417
55418
|
/(sprint) (\w+)/i
|
|
55418
55419
|
],
|
|
55419
55420
|
[
|
|
55420
|
-
|
|
55421
|
+
f,
|
|
55421
55422
|
d,
|
|
55422
55423
|
[
|
|
55423
|
-
|
|
55424
|
+
p,
|
|
55424
55425
|
b
|
|
55425
55426
|
]
|
|
55426
55427
|
],
|
|
@@ -55434,11 +55435,11 @@
|
|
|
55434
55435
|
" "
|
|
55435
55436
|
],
|
|
55436
55437
|
[
|
|
55437
|
-
|
|
55438
|
+
f,
|
|
55438
55439
|
$
|
|
55439
55440
|
],
|
|
55440
55441
|
[
|
|
55441
|
-
|
|
55442
|
+
p,
|
|
55442
55443
|
b
|
|
55443
55444
|
]
|
|
55444
55445
|
],
|
|
@@ -55448,11 +55449,11 @@
|
|
|
55448
55449
|
[
|
|
55449
55450
|
d,
|
|
55450
55451
|
[
|
|
55451
|
-
|
|
55452
|
+
f,
|
|
55452
55453
|
L
|
|
55453
55454
|
],
|
|
55454
55455
|
[
|
|
55455
|
-
|
|
55456
|
+
p,
|
|
55456
55457
|
v
|
|
55457
55458
|
]
|
|
55458
55459
|
],
|
|
@@ -55462,11 +55463,11 @@
|
|
|
55462
55463
|
[
|
|
55463
55464
|
d,
|
|
55464
55465
|
[
|
|
55465
|
-
|
|
55466
|
+
f,
|
|
55466
55467
|
L
|
|
55467
55468
|
],
|
|
55468
55469
|
[
|
|
55469
|
-
|
|
55470
|
+
p,
|
|
55470
55471
|
b
|
|
55471
55472
|
]
|
|
55472
55473
|
],
|
|
@@ -55474,9 +55475,9 @@
|
|
|
55474
55475
|
/smart-tv.+(samsung)/i
|
|
55475
55476
|
],
|
|
55476
55477
|
[
|
|
55477
|
-
|
|
55478
|
+
f,
|
|
55478
55479
|
[
|
|
55479
|
-
|
|
55480
|
+
p,
|
|
55480
55481
|
w
|
|
55481
55482
|
]
|
|
55482
55483
|
],
|
|
@@ -55490,11 +55491,11 @@
|
|
|
55490
55491
|
"SmartTV"
|
|
55491
55492
|
],
|
|
55492
55493
|
[
|
|
55493
|
-
|
|
55494
|
+
f,
|
|
55494
55495
|
O
|
|
55495
55496
|
],
|
|
55496
55497
|
[
|
|
55497
|
-
|
|
55498
|
+
p,
|
|
55498
55499
|
w
|
|
55499
55500
|
]
|
|
55500
55501
|
],
|
|
@@ -55503,11 +55504,11 @@
|
|
|
55503
55504
|
],
|
|
55504
55505
|
[
|
|
55505
55506
|
[
|
|
55506
|
-
|
|
55507
|
+
f,
|
|
55507
55508
|
"LG"
|
|
55508
55509
|
],
|
|
55509
55510
|
[
|
|
55510
|
-
|
|
55511
|
+
p,
|
|
55511
55512
|
w
|
|
55512
55513
|
]
|
|
55513
55514
|
],
|
|
@@ -55515,13 +55516,13 @@
|
|
|
55515
55516
|
/(apple) ?tv/i
|
|
55516
55517
|
],
|
|
55517
55518
|
[
|
|
55518
|
-
|
|
55519
|
+
f,
|
|
55519
55520
|
[
|
|
55520
55521
|
d,
|
|
55521
55522
|
B + " TV"
|
|
55522
55523
|
],
|
|
55523
55524
|
[
|
|
55524
|
-
|
|
55525
|
+
p,
|
|
55525
55526
|
w
|
|
55526
55527
|
]
|
|
55527
55528
|
],
|
|
@@ -55534,11 +55535,11 @@
|
|
|
55534
55535
|
S + "cast"
|
|
55535
55536
|
],
|
|
55536
55537
|
[
|
|
55537
|
-
|
|
55538
|
+
f,
|
|
55538
55539
|
T
|
|
55539
55540
|
],
|
|
55540
55541
|
[
|
|
55541
|
-
|
|
55542
|
+
p,
|
|
55542
55543
|
w
|
|
55543
55544
|
]
|
|
55544
55545
|
],
|
|
@@ -55548,11 +55549,11 @@
|
|
|
55548
55549
|
[
|
|
55549
55550
|
d,
|
|
55550
55551
|
[
|
|
55551
|
-
|
|
55552
|
+
f,
|
|
55552
55553
|
C
|
|
55553
55554
|
],
|
|
55554
55555
|
[
|
|
55555
|
-
|
|
55556
|
+
p,
|
|
55556
55557
|
w
|
|
55557
55558
|
]
|
|
55558
55559
|
],
|
|
@@ -55563,11 +55564,11 @@
|
|
|
55563
55564
|
[
|
|
55564
55565
|
d,
|
|
55565
55566
|
[
|
|
55566
|
-
|
|
55567
|
+
f,
|
|
55567
55568
|
M
|
|
55568
55569
|
],
|
|
55569
55570
|
[
|
|
55570
|
-
|
|
55571
|
+
p,
|
|
55571
55572
|
w
|
|
55572
55573
|
]
|
|
55573
55574
|
],
|
|
@@ -55577,11 +55578,11 @@
|
|
|
55577
55578
|
[
|
|
55578
55579
|
d,
|
|
55579
55580
|
[
|
|
55580
|
-
|
|
55581
|
+
f,
|
|
55581
55582
|
A
|
|
55582
55583
|
],
|
|
55583
55584
|
[
|
|
55584
|
-
|
|
55585
|
+
p,
|
|
55585
55586
|
w
|
|
55586
55587
|
]
|
|
55587
55588
|
],
|
|
@@ -55591,11 +55592,11 @@
|
|
|
55591
55592
|
[
|
|
55592
55593
|
d,
|
|
55593
55594
|
[
|
|
55594
|
-
|
|
55595
|
+
f,
|
|
55595
55596
|
R
|
|
55596
55597
|
],
|
|
55597
55598
|
[
|
|
55598
|
-
|
|
55599
|
+
p,
|
|
55599
55600
|
w
|
|
55600
55601
|
]
|
|
55601
55602
|
],
|
|
@@ -55603,10 +55604,10 @@
|
|
|
55603
55604
|
/Hbbtv.*(technisat) (.*);/i
|
|
55604
55605
|
],
|
|
55605
55606
|
[
|
|
55606
|
-
|
|
55607
|
+
f,
|
|
55607
55608
|
d,
|
|
55608
55609
|
[
|
|
55609
|
-
|
|
55610
|
+
p,
|
|
55610
55611
|
w
|
|
55611
55612
|
]
|
|
55612
55613
|
],
|
|
@@ -55616,7 +55617,7 @@
|
|
|
55616
55617
|
],
|
|
55617
55618
|
[
|
|
55618
55619
|
[
|
|
55619
|
-
|
|
55620
|
+
f,
|
|
55620
55621
|
Q
|
|
55621
55622
|
],
|
|
55622
55623
|
[
|
|
@@ -55624,7 +55625,7 @@
|
|
|
55624
55625
|
Q
|
|
55625
55626
|
],
|
|
55626
55627
|
[
|
|
55627
|
-
|
|
55628
|
+
p,
|
|
55628
55629
|
w
|
|
55629
55630
|
]
|
|
55630
55631
|
],
|
|
@@ -55633,7 +55634,7 @@
|
|
|
55633
55634
|
],
|
|
55634
55635
|
[
|
|
55635
55636
|
[
|
|
55636
|
-
|
|
55637
|
+
p,
|
|
55637
55638
|
w
|
|
55638
55639
|
]
|
|
55639
55640
|
],
|
|
@@ -55642,10 +55643,10 @@
|
|
|
55642
55643
|
/(nintendo) ([wids3utch]+)/i
|
|
55643
55644
|
],
|
|
55644
55645
|
[
|
|
55645
|
-
|
|
55646
|
+
f,
|
|
55646
55647
|
d,
|
|
55647
55648
|
[
|
|
55648
|
-
|
|
55649
|
+
p,
|
|
55649
55650
|
g
|
|
55650
55651
|
]
|
|
55651
55652
|
],
|
|
@@ -55655,11 +55656,11 @@
|
|
|
55655
55656
|
[
|
|
55656
55657
|
d,
|
|
55657
55658
|
[
|
|
55658
|
-
|
|
55659
|
+
f,
|
|
55659
55660
|
"Nvidia"
|
|
55660
55661
|
],
|
|
55661
55662
|
[
|
|
55662
|
-
|
|
55663
|
+
p,
|
|
55663
55664
|
g
|
|
55664
55665
|
]
|
|
55665
55666
|
],
|
|
@@ -55669,11 +55670,11 @@
|
|
|
55669
55670
|
[
|
|
55670
55671
|
d,
|
|
55671
55672
|
[
|
|
55672
|
-
|
|
55673
|
+
f,
|
|
55673
55674
|
A
|
|
55674
55675
|
],
|
|
55675
55676
|
[
|
|
55676
|
-
|
|
55677
|
+
p,
|
|
55677
55678
|
g
|
|
55678
55679
|
]
|
|
55679
55680
|
],
|
|
@@ -55683,11 +55684,11 @@
|
|
|
55683
55684
|
[
|
|
55684
55685
|
d,
|
|
55685
55686
|
[
|
|
55686
|
-
|
|
55687
|
+
f,
|
|
55687
55688
|
$
|
|
55688
55689
|
],
|
|
55689
55690
|
[
|
|
55690
|
-
|
|
55691
|
+
p,
|
|
55691
55692
|
g
|
|
55692
55693
|
]
|
|
55693
55694
|
],
|
|
@@ -55695,10 +55696,10 @@
|
|
|
55695
55696
|
/((pebble))app/i
|
|
55696
55697
|
],
|
|
55697
55698
|
[
|
|
55698
|
-
|
|
55699
|
+
f,
|
|
55699
55700
|
d,
|
|
55700
55701
|
[
|
|
55701
|
-
|
|
55702
|
+
p,
|
|
55702
55703
|
k
|
|
55703
55704
|
]
|
|
55704
55705
|
],
|
|
@@ -55708,11 +55709,11 @@
|
|
|
55708
55709
|
[
|
|
55709
55710
|
d,
|
|
55710
55711
|
[
|
|
55711
|
-
|
|
55712
|
+
f,
|
|
55712
55713
|
B
|
|
55713
55714
|
],
|
|
55714
55715
|
[
|
|
55715
|
-
|
|
55716
|
+
p,
|
|
55716
55717
|
k
|
|
55717
55718
|
]
|
|
55718
55719
|
],
|
|
@@ -55722,11 +55723,11 @@
|
|
|
55722
55723
|
[
|
|
55723
55724
|
d,
|
|
55724
55725
|
[
|
|
55725
|
-
|
|
55726
|
+
f,
|
|
55726
55727
|
T
|
|
55727
55728
|
],
|
|
55728
55729
|
[
|
|
55729
|
-
|
|
55730
|
+
p,
|
|
55730
55731
|
k
|
|
55731
55732
|
]
|
|
55732
55733
|
],
|
|
@@ -55736,11 +55737,11 @@
|
|
|
55736
55737
|
[
|
|
55737
55738
|
d,
|
|
55738
55739
|
[
|
|
55739
|
-
|
|
55740
|
+
f,
|
|
55740
55741
|
L
|
|
55741
55742
|
],
|
|
55742
55743
|
[
|
|
55743
|
-
|
|
55744
|
+
p,
|
|
55744
55745
|
k
|
|
55745
55746
|
]
|
|
55746
55747
|
],
|
|
@@ -55750,11 +55751,11 @@
|
|
|
55750
55751
|
[
|
|
55751
55752
|
d,
|
|
55752
55753
|
[
|
|
55753
|
-
|
|
55754
|
+
f,
|
|
55754
55755
|
F
|
|
55755
55756
|
],
|
|
55756
55757
|
[
|
|
55757
|
-
|
|
55758
|
+
p,
|
|
55758
55759
|
k
|
|
55759
55760
|
]
|
|
55760
55761
|
],
|
|
@@ -55762,9 +55763,9 @@
|
|
|
55762
55763
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
55763
55764
|
],
|
|
55764
55765
|
[
|
|
55765
|
-
|
|
55766
|
+
f,
|
|
55766
55767
|
[
|
|
55767
|
-
|
|
55768
|
+
p,
|
|
55768
55769
|
y
|
|
55769
55770
|
]
|
|
55770
55771
|
],
|
|
@@ -55774,11 +55775,11 @@
|
|
|
55774
55775
|
[
|
|
55775
55776
|
d,
|
|
55776
55777
|
[
|
|
55777
|
-
|
|
55778
|
+
f,
|
|
55778
55779
|
C
|
|
55779
55780
|
],
|
|
55780
55781
|
[
|
|
55781
|
-
|
|
55782
|
+
p,
|
|
55782
55783
|
y
|
|
55783
55784
|
]
|
|
55784
55785
|
],
|
|
@@ -55788,7 +55789,7 @@
|
|
|
55788
55789
|
[
|
|
55789
55790
|
d,
|
|
55790
55791
|
[
|
|
55791
|
-
|
|
55792
|
+
p,
|
|
55792
55793
|
b
|
|
55793
55794
|
]
|
|
55794
55795
|
],
|
|
@@ -55798,7 +55799,7 @@
|
|
|
55798
55799
|
[
|
|
55799
55800
|
d,
|
|
55800
55801
|
[
|
|
55801
|
-
|
|
55802
|
+
p,
|
|
55802
55803
|
v
|
|
55803
55804
|
]
|
|
55804
55805
|
],
|
|
@@ -55807,7 +55808,7 @@
|
|
|
55807
55808
|
],
|
|
55808
55809
|
[
|
|
55809
55810
|
[
|
|
55810
|
-
|
|
55811
|
+
p,
|
|
55811
55812
|
v
|
|
55812
55813
|
]
|
|
55813
55814
|
],
|
|
@@ -55816,7 +55817,7 @@
|
|
|
55816
55817
|
],
|
|
55817
55818
|
[
|
|
55818
55819
|
[
|
|
55819
|
-
|
|
55820
|
+
p,
|
|
55820
55821
|
b
|
|
55821
55822
|
]
|
|
55822
55823
|
],
|
|
@@ -55826,7 +55827,7 @@
|
|
|
55826
55827
|
[
|
|
55827
55828
|
d,
|
|
55828
55829
|
[
|
|
55829
|
-
|
|
55830
|
+
f,
|
|
55830
55831
|
"Generic"
|
|
55831
55832
|
]
|
|
55832
55833
|
]
|
|
@@ -56077,7 +56078,7 @@
|
|
|
56077
56078
|
return t[m] = void 0, X.call(t, g, k.cpu), t;
|
|
56078
56079
|
}, this.getDevice = function() {
|
|
56079
56080
|
var t = {};
|
|
56080
|
-
return t[
|
|
56081
|
+
return t[f] = void 0, t[d] = void 0, t[p] = void 0, X.call(t, g, k.device), y && !t[p] && w && w.mobile && (t[p] = b), y && "Macintosh" == t[d] && n && typeof n.standalone !== a && n.maxTouchPoints && n.maxTouchPoints > 2 && (t[d] = "iPad", t[p] = v), t;
|
|
56081
56082
|
}, this.getEngine = function() {
|
|
56082
56083
|
var t = {};
|
|
56083
56084
|
return t[u] = void 0, t[h] = void 0, X.call(t, g, k.engine), t;
|
|
@@ -56107,8 +56108,8 @@
|
|
|
56107
56108
|
m
|
|
56108
56109
|
]), K.DEVICE = W([
|
|
56109
56110
|
d,
|
|
56110
|
-
p,
|
|
56111
56111
|
f,
|
|
56112
|
+
p,
|
|
56112
56113
|
g,
|
|
56113
56114
|
b,
|
|
56114
56115
|
w,
|
|
@@ -56131,9 +56132,9 @@
|
|
|
56131
56132
|
};
|
|
56132
56133
|
}
|
|
56133
56134
|
}("object" == typeof window ? window : nE), nS.exports;
|
|
56134
|
-
}(), i = new n, a = i.getBrowser(), s = i.getCPU(), c = i.getDevice(), l = i.getEngine(), d = i.getOS(), u = i.getUA(),
|
|
56135
|
+
}(), i = new n, a = i.getBrowser(), s = i.getCPU(), c = i.getDevice(), l = i.getEngine(), d = i.getOS(), u = i.getUA(), p = function(t) {
|
|
56135
56136
|
return i.setUA(t);
|
|
56136
|
-
},
|
|
56137
|
+
}, f = function(t) {
|
|
56137
56138
|
if (!t) return void console.error("No userAgent string was provided");
|
|
56138
56139
|
var r = new n(t);
|
|
56139
56140
|
return {
|
|
@@ -56156,8 +56157,8 @@
|
|
|
56156
56157
|
engine: l,
|
|
56157
56158
|
os: d,
|
|
56158
56159
|
ua: u,
|
|
56159
|
-
setUa:
|
|
56160
|
-
parseUserAgent:
|
|
56160
|
+
setUa: p,
|
|
56161
|
+
parseUserAgent: f
|
|
56161
56162
|
});
|
|
56162
56163
|
function m(t, r) {
|
|
56163
56164
|
var o = Object.keys(t);
|
|
@@ -56376,9 +56377,9 @@
|
|
|
56376
56377
|
}, eu = function(t) {
|
|
56377
56378
|
var r = t.name;
|
|
56378
56379
|
return r === $.InternetExplorer || r === $.Ie;
|
|
56379
|
-
}, ef = function(t) {
|
|
56380
|
-
return t.name === $.MIUI;
|
|
56381
56380
|
}, ep = function(t) {
|
|
56381
|
+
return t.name === $.MIUI;
|
|
56382
|
+
}, ef = function(t) {
|
|
56382
56383
|
return t.name === $.SamsungBrowser;
|
|
56383
56384
|
}, eh = function(t) {
|
|
56384
56385
|
return M(t.version);
|
|
@@ -56451,13 +56452,13 @@
|
|
|
56451
56452
|
isLegacyEdge: ea(n) && !ek(s),
|
|
56452
56453
|
isWindows: K(i),
|
|
56453
56454
|
isMacOs: Y(i),
|
|
56454
|
-
isMIUI:
|
|
56455
|
-
isSamsungBrowser:
|
|
56455
|
+
isMIUI: ep(n),
|
|
56456
|
+
isSamsungBrowser: ef(n)
|
|
56456
56457
|
};
|
|
56457
56458
|
}
|
|
56458
|
-
var eS = V(c), eE = q(c), eT = U(c), eD = Q(c), e$ = el(a) || eC(), ej = ei(a), eI = z(c) || eC(), eO = F(c), eM = N(c) || eC(), eA = W(c), eR = W(c), eL = Z(d), eF = J(d), eN = ee(d) || eC(), ez = eo(a), eV = en(a), eW = ec(a), eU = ed(a), eq = eu(a), eQ = et(d), eX = er(d), eH = eh(a), eG = em(a), eZ = eg(a), eK = X(c), eY = H(c), eJ = eb(l), e3 = ev(l), e2 = ex(u), e5 = ea(a) || ek(u), e0 = es(a), e1 = G(c), e8 = ey(), e9 = eC(), e4 = eB(), e7 = e_(), e6 = ew(), te = ek(u), tt = ea(a) && !ek(u), tr = K(d), to = Y(d), tn =
|
|
56459
|
+
var eS = V(c), eE = q(c), eT = U(c), eD = Q(c), e$ = el(a) || eC(), ej = ei(a), eI = z(c) || eC(), eO = F(c), eM = N(c) || eC(), eA = W(c), eR = W(c), eL = Z(d), eF = J(d), eN = ee(d) || eC(), ez = eo(a), eV = en(a), eW = ec(a), eU = ed(a), eq = eu(a), eQ = et(d), eX = er(d), eH = eh(a), eG = em(a), eZ = eg(a), eK = X(c), eY = H(c), eJ = eb(l), e3 = ev(l), e2 = ex(u), e5 = ea(a) || ek(u), e0 = es(a), e1 = G(c), e8 = ey(), e9 = eC(), e4 = eB(), e7 = e_(), e6 = ew(), te = ek(u), tt = ea(a) && !ek(u), tr = K(d), to = Y(d), tn = ep(a), ti = ef(a);
|
|
56459
56460
|
function ta(t) {
|
|
56460
|
-
return
|
|
56461
|
+
return f(t || window.navigator.userAgent);
|
|
56461
56462
|
}
|
|
56462
56463
|
return nP.AndroidView = function(r) {
|
|
56463
56464
|
var n = r.renderWithFragment, i = r.children, a = y(r, [
|
|
@@ -56541,7 +56542,7 @@
|
|
|
56541
56542
|
]);
|
|
56542
56543
|
return eF ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
|
|
56543
56544
|
}, nP.browserName = eZ, nP.browserVersion = eG, nP.deviceDetect = function(t) {
|
|
56544
|
-
var r, o, n, i, a, s, c, l, d, u,
|
|
56545
|
+
var r, o, n, i, a, s, c, l, d, u, p, m, g, b, v, w, k, y, C, B, _, x, P = t ? f(t) : h, S = P.device, E = P.browser, T = P.engine, D = P.os, $ = P.ua, j = O(S.type), I = j.isBrowser, A = j.isMobile, R = j.isTablet, F = j.isSmartTV, N = j.isConsole, z = j.isWearable, V = j.isEmbedded;
|
|
56545
56546
|
if (I) {
|
|
56546
56547
|
return r = I, o = E, n = T, i = D, a = $, {
|
|
56547
56548
|
isBrowser: r,
|
|
@@ -56566,10 +56567,10 @@
|
|
|
56566
56567
|
};
|
|
56567
56568
|
}
|
|
56568
56569
|
if (N) {
|
|
56569
|
-
return u = N,
|
|
56570
|
+
return u = N, p = T, m = D, g = $, {
|
|
56570
56571
|
isConsole: u,
|
|
56571
|
-
engineName: M(
|
|
56572
|
-
engineVersion: M(
|
|
56572
|
+
engineName: M(p.name),
|
|
56573
|
+
engineVersion: M(p.version),
|
|
56573
56574
|
osName: M(m.name),
|
|
56574
56575
|
osVersion: M(m.version),
|
|
56575
56576
|
userAgent: M(g)
|
|
@@ -56600,7 +56601,7 @@
|
|
|
56600
56601
|
}
|
|
56601
56602
|
}, nP.deviceType = e1, nP.engineName = eJ, nP.engineVersion = e3, nP.fullBrowserVersion = eH, nP.getSelectorsByUserAgent = function(t) {
|
|
56602
56603
|
if (!t || "string" != typeof t) return void console.error("No valid user agent string was provided");
|
|
56603
|
-
var r =
|
|
56604
|
+
var r = f(t);
|
|
56604
56605
|
return eP({
|
|
56605
56606
|
device: r.device,
|
|
56606
56607
|
browser: r.browser,
|
|
@@ -56608,8 +56609,8 @@
|
|
|
56608
56609
|
engine: r.engine,
|
|
56609
56610
|
ua: r.ua
|
|
56610
56611
|
});
|
|
56611
|
-
}, nP.getUA = e2, nP.isAndroid = eL, nP.isBrowser = eA, nP.isChrome = ez, nP.isChromium = ej, nP.isConsole = eE, nP.isDesktop = eR, nP.isEdge = e5, nP.isEdgeChromium = te, nP.isElectron = e6, nP.isEmbedded = eD, nP.isFirefox = eV, nP.isIE = eq, nP.isIOS = eN, nP.isIOS13 = e8, nP.isIPad13 = e9, nP.isIPhone13 = e4, nP.isIPod13 = e7, nP.isLegacyEdge = tt, nP.isMIUI = tn, nP.isMacOs = to, nP.isMobile = eI, nP.isMobileOnly = eO, nP.isMobileSafari = e$, nP.isOpera = eU, nP.isSafari = eW, nP.isSamsungBrowser = ti, nP.isSmartTV = eS, nP.isTablet = eM, nP.isWearable = eT, nP.isWinPhone = eF, nP.isWindows = tr, nP.isYandex = e0, nP.mobileModel = eY, nP.mobileVendor = eK, nP.osName = eX, nP.osVersion = eQ, nP.parseUserAgent =
|
|
56612
|
-
return
|
|
56612
|
+
}, nP.getUA = e2, nP.isAndroid = eL, nP.isBrowser = eA, nP.isChrome = ez, nP.isChromium = ej, nP.isConsole = eE, nP.isDesktop = eR, nP.isEdge = e5, nP.isEdgeChromium = te, nP.isElectron = e6, nP.isEmbedded = eD, nP.isFirefox = eV, nP.isIE = eq, nP.isIOS = eN, nP.isIOS13 = e8, nP.isIPad13 = e9, nP.isIPhone13 = e4, nP.isIPod13 = e7, nP.isLegacyEdge = tt, nP.isMIUI = tn, nP.isMacOs = to, nP.isMobile = eI, nP.isMobileOnly = eO, nP.isMobileSafari = e$, nP.isOpera = eU, nP.isSafari = eW, nP.isSamsungBrowser = ti, nP.isSmartTV = eS, nP.isTablet = eM, nP.isWearable = eT, nP.isWinPhone = eF, nP.isWindows = tr, nP.isYandex = e0, nP.mobileModel = eY, nP.mobileVendor = eK, nP.osName = eX, nP.osVersion = eQ, nP.parseUserAgent = f, nP.setUserAgent = function(t) {
|
|
56613
|
+
return p(t);
|
|
56613
56614
|
}, nP.useDeviceData = ta, nP.useDeviceSelectors = function(t) {
|
|
56614
56615
|
var r = ta(t || window.navigator.userAgent);
|
|
56615
56616
|
return [
|
|
@@ -56815,7 +56816,7 @@
|
|
|
56815
56816
|
var nM = oX(function() {
|
|
56816
56817
|
if (tW) return tV;
|
|
56817
56818
|
tW = 1;
|
|
56818
|
-
var t = 0 / 0, r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, i = /^0o[0-7]+$/i, a = parseInt, s = "object" == typeof oQ && oQ && oQ.Object === Object && oQ, c = "object" == typeof self && self && self.Object === Object && self, l = s || c || Function("return this")(), d = Object.prototype.toString, u = Math.max,
|
|
56819
|
+
var t = 0 / 0, r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, i = /^0o[0-7]+$/i, a = parseInt, s = "object" == typeof oQ && oQ && oQ.Object === Object && oQ, c = "object" == typeof self && self && self.Object === Object && self, l = s || c || Function("return this")(), d = Object.prototype.toString, u = Math.max, p = Math.min, f = function() {
|
|
56819
56820
|
return l.Date.now();
|
|
56820
56821
|
};
|
|
56821
56822
|
function h(t) {
|
|
@@ -56831,8 +56832,8 @@
|
|
|
56831
56832
|
}
|
|
56832
56833
|
if ("string" != typeof s) return 0 === s ? s : +s;
|
|
56833
56834
|
s = s.replace(r, "");
|
|
56834
|
-
var
|
|
56835
|
-
return
|
|
56835
|
+
var p = n.test(s);
|
|
56836
|
+
return p || i.test(s) ? a(s.slice(2), p ? 2 : 8) : o.test(s) ? t : +s;
|
|
56836
56837
|
}
|
|
56837
56838
|
return tV = function(t, r, o) {
|
|
56838
56839
|
var n, i, a, s, c, l, d = 0, g = !1, b = !1, v = !0;
|
|
@@ -56847,15 +56848,15 @@
|
|
|
56847
56848
|
return void 0 === l || o >= r || o < 0 || b && n >= a;
|
|
56848
56849
|
}
|
|
56849
56850
|
function y() {
|
|
56850
|
-
var t, o, n, i, s =
|
|
56851
|
+
var t, o, n, i, s = f();
|
|
56851
56852
|
if (k(s)) return C(s);
|
|
56852
|
-
c = setTimeout(y, (o = (t = s) - l, n = t - d, i = r - o, b ?
|
|
56853
|
+
c = setTimeout(y, (o = (t = s) - l, n = t - d, i = r - o, b ? p(i, a - n) : i));
|
|
56853
56854
|
}
|
|
56854
56855
|
function C(t) {
|
|
56855
56856
|
return (c = void 0, v && n) ? w(t) : (n = i = void 0, s);
|
|
56856
56857
|
}
|
|
56857
56858
|
function B() {
|
|
56858
|
-
var t, o =
|
|
56859
|
+
var t, o = f(), a = k(o);
|
|
56859
56860
|
if (n = arguments, i = this, l = o, a) {
|
|
56860
56861
|
if (void 0 === c) {
|
|
56861
56862
|
return d = t = l, c = setTimeout(y, r), g ? w(t) : s;
|
|
@@ -56867,7 +56868,7 @@
|
|
|
56867
56868
|
return B.cancel = function() {
|
|
56868
56869
|
void 0 !== c && clearTimeout(c), d = 0, n = l = i = c = void 0;
|
|
56869
56870
|
}, B.flush = function() {
|
|
56870
|
-
return void 0 === c ? s : C(
|
|
56871
|
+
return void 0 === c ? s : C(f());
|
|
56871
56872
|
}, B;
|
|
56872
56873
|
};
|
|
56873
56874
|
}()), nA = {
|
|
@@ -56878,11 +56879,11 @@
|
|
|
56878
56879
|
var t = tq ? nA.exports : (tq = 1, nA.exports = function() {
|
|
56879
56880
|
if (tU) return nR;
|
|
56880
56881
|
tU = 1;
|
|
56881
|
-
var t = "function" == typeof Symbol && Symbol.for, r = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112,
|
|
56882
|
+
var t = "function" == typeof Symbol && Symbol.for, r = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
56882
56883
|
function k(t) {
|
|
56883
56884
|
if ("object" == typeof t && null !== t) {
|
|
56884
|
-
var
|
|
56885
|
-
switch(
|
|
56885
|
+
var f = t.$$typeof;
|
|
56886
|
+
switch(f){
|
|
56886
56887
|
case r:
|
|
56887
56888
|
switch(t = t.type){
|
|
56888
56889
|
case l:
|
|
@@ -56890,7 +56891,7 @@
|
|
|
56890
56891
|
case n:
|
|
56891
56892
|
case a:
|
|
56892
56893
|
case i:
|
|
56893
|
-
case
|
|
56894
|
+
case p:
|
|
56894
56895
|
return t;
|
|
56895
56896
|
default:
|
|
56896
56897
|
switch(t = t && t.$$typeof){
|
|
@@ -56901,18 +56902,18 @@
|
|
|
56901
56902
|
case s:
|
|
56902
56903
|
return t;
|
|
56903
56904
|
default:
|
|
56904
|
-
return
|
|
56905
|
+
return f;
|
|
56905
56906
|
}
|
|
56906
56907
|
}
|
|
56907
56908
|
case o:
|
|
56908
|
-
return
|
|
56909
|
+
return f;
|
|
56909
56910
|
}
|
|
56910
56911
|
}
|
|
56911
56912
|
}
|
|
56912
56913
|
function y(t) {
|
|
56913
56914
|
return k(t) === d;
|
|
56914
56915
|
}
|
|
56915
|
-
return nR.AsyncMode = l, nR.ConcurrentMode = d, nR.ContextConsumer = c, nR.ContextProvider = s, nR.Element = r, nR.ForwardRef = u, nR.Fragment = n, nR.Lazy = m, nR.Memo = h, nR.Portal = o, nR.Profiler = a, nR.StrictMode = i, nR.Suspense =
|
|
56916
|
+
return nR.AsyncMode = l, nR.ConcurrentMode = d, nR.ContextConsumer = c, nR.ContextProvider = s, nR.Element = r, nR.ForwardRef = u, nR.Fragment = n, nR.Lazy = m, nR.Memo = h, nR.Portal = o, nR.Profiler = a, nR.StrictMode = i, nR.Suspense = p, nR.isAsyncMode = function(t) {
|
|
56916
56917
|
return y(t) || k(t) === l;
|
|
56917
56918
|
}, nR.isConcurrentMode = y, nR.isContextConsumer = function(t) {
|
|
56918
56919
|
return k(t) === c;
|
|
@@ -56935,9 +56936,9 @@
|
|
|
56935
56936
|
}, nR.isStrictMode = function(t) {
|
|
56936
56937
|
return k(t) === i;
|
|
56937
56938
|
}, nR.isSuspense = function(t) {
|
|
56938
|
-
return k(t) ===
|
|
56939
|
+
return k(t) === p;
|
|
56939
56940
|
}, nR.isValidElementType = function(t) {
|
|
56940
|
-
return "string" == typeof t || "function" == typeof t || t === n || t === d || t === a || t === i || t ===
|
|
56941
|
+
return "string" == typeof t || "function" == typeof t || t === n || t === d || t === a || t === i || t === p || t === f || "object" == typeof t && null !== t && (t.$$typeof === m || t.$$typeof === h || t.$$typeof === s || t.$$typeof === c || t.$$typeof === u || t.$$typeof === b || t.$$typeof === v || t.$$typeof === w || t.$$typeof === g);
|
|
56941
56942
|
}, nR.typeOf = k, nR;
|
|
56942
56943
|
}(), nA.exports), r = {
|
|
56943
56944
|
childContextTypes: !0,
|
|
@@ -56977,12 +56978,12 @@
|
|
|
56977
56978
|
displayName: !0,
|
|
56978
56979
|
propTypes: !0
|
|
56979
56980
|
}, i[t.Memo] = n;
|
|
56980
|
-
var s = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf,
|
|
56981
|
+
var s = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf, p = Object.prototype;
|
|
56981
56982
|
return tQ = function t(r, n, i) {
|
|
56982
56983
|
if ("string" != typeof n) {
|
|
56983
|
-
if (
|
|
56984
|
-
var
|
|
56985
|
-
|
|
56984
|
+
if (p) {
|
|
56985
|
+
var f = u(n);
|
|
56986
|
+
f && f !== p && t(r, f, i);
|
|
56986
56987
|
}
|
|
56987
56988
|
var h = c(n);
|
|
56988
56989
|
l && (h = h.concat(l(n)));
|
|
@@ -57139,7 +57140,7 @@
|
|
|
57139
57140
|
else console.warn("Flashlight is not supported or not initialized.");
|
|
57140
57141
|
}, [
|
|
57141
57142
|
c
|
|
57142
|
-
]),
|
|
57143
|
+
]), p = reactExports.useCallback(async ()=>{
|
|
57143
57144
|
if (c && c.isSupported()) try {
|
|
57144
57145
|
await c.turnOff(), d.current = !1;
|
|
57145
57146
|
} catch (t) {
|
|
@@ -57147,15 +57148,15 @@
|
|
|
57147
57148
|
}
|
|
57148
57149
|
}, [
|
|
57149
57150
|
c
|
|
57150
|
-
]),
|
|
57151
|
+
]), f = React.useMemo(()=>({
|
|
57151
57152
|
turnOnFlashlight: u,
|
|
57152
|
-
turnOffFlashlight:
|
|
57153
|
+
turnOffFlashlight: p
|
|
57153
57154
|
}), [
|
|
57154
57155
|
u,
|
|
57155
|
-
|
|
57156
|
+
p
|
|
57156
57157
|
]);
|
|
57157
57158
|
return oZ.jsx(nU.Provider, {
|
|
57158
|
-
value:
|
|
57159
|
+
value: f,
|
|
57159
57160
|
children: s
|
|
57160
57161
|
});
|
|
57161
57162
|
}, { Errors: nQ } = ra$1, nX = dt$1.div`
|
|
@@ -57201,7 +57202,7 @@
|
|
|
57201
57202
|
`;
|
|
57202
57203
|
function nJ(r) {
|
|
57203
57204
|
var s, c;
|
|
57204
|
-
let l, { checkCameraMode: d, frontCamera: u, onClose:
|
|
57205
|
+
let l, { checkCameraMode: d, frontCamera: u, onClose: p, children: f, onVideoPlayed: w, flipHorizontal: k, videoSettings: y, refVideo: C, onError: B, closeButton: _, videoClassName: x, scale: P, defaultCameraId: S, onWarning: E } = r, T = reactExports.useRef(), { lang: D } = no$1.useSDKSettings(), { sendEvent: $ } = iN$1.useSDKTracking(), j = nz("closeButton.src", "ic_close.svg"), [I, O] = reactExports.useState(""), M = reactExports.useRef(!1), A = reactExports.useRef(!1), R = reactExports.useRef(!1), L = reactExports.useRef(), F = reactExports.useRef([]), N = reactExports.useRef(""), z = gB(), V = reactExports.useCallback((t)=>{
|
|
57205
57206
|
B && B(t);
|
|
57206
57207
|
}, [
|
|
57207
57208
|
B
|
|
@@ -57277,8 +57278,8 @@
|
|
|
57277
57278
|
},
|
|
57278
57279
|
...o
|
|
57279
57280
|
}
|
|
57280
|
-
},
|
|
57281
|
-
if (await U(), q(), !
|
|
57281
|
+
}, p = await navigator.mediaDevices.getUserMedia(n);
|
|
57282
|
+
if (await U(), q(), !p) return O(z("not_supported")), V(nQ.not_supported), null;
|
|
57282
57283
|
a(performance.now(), "end"), window.tv_last_req_camera_complete = !0, c() - s() < 1600 ? $({
|
|
57283
57284
|
tag: "cam_permission",
|
|
57284
57285
|
event: "user_activity.cam",
|
|
@@ -57291,13 +57292,13 @@
|
|
|
57291
57292
|
log: {}
|
|
57292
57293
|
});
|
|
57293
57294
|
try {
|
|
57294
|
-
let t =
|
|
57295
|
-
if (h7.addExifData("device_info.camera_label_dimension.got", `${t.width}x${t.height}`), h7.addExifData("camera_res_selected", `${t.width}x${t.height}`), "function" == typeof
|
|
57296
|
-
let t =
|
|
57295
|
+
let t = p.getVideoTracks()[0].getSettings();
|
|
57296
|
+
if (h7.addExifData("device_info.camera_label_dimension.got", `${t.width}x${t.height}`), h7.addExifData("camera_res_selected", `${t.width}x${t.height}`), "function" == typeof p.getVideoTracks()[0].getCapabilities) {
|
|
57297
|
+
let t = p.getVideoTracks()[0].getCapabilities();
|
|
57297
57298
|
h7.addExifData("device_info.camera_capabilities", JSON.stringify(t));
|
|
57298
57299
|
}
|
|
57299
57300
|
} catch (t) {}
|
|
57300
|
-
return
|
|
57301
|
+
return p;
|
|
57301
57302
|
} catch (t) {
|
|
57302
57303
|
a(performance.now(), "end"), "NotAllowedError" === t.name ? (O(z("no_permission")), V(nQ.no_permission), A.current = !0, $({
|
|
57303
57304
|
tag: "cam_permission",
|
|
@@ -57408,13 +57409,13 @@
|
|
|
57408
57409
|
z
|
|
57409
57410
|
]);
|
|
57410
57411
|
let H = reactExports.useCallback(()=>{
|
|
57411
|
-
W(),
|
|
57412
|
+
W(), p && p(), $({
|
|
57412
57413
|
tag: "result",
|
|
57413
57414
|
event: "user_activity.cancel",
|
|
57414
57415
|
log: {}
|
|
57415
57416
|
});
|
|
57416
57417
|
}, [
|
|
57417
|
-
|
|
57418
|
+
p,
|
|
57418
57419
|
W,
|
|
57419
57420
|
$
|
|
57420
57421
|
]);
|
|
@@ -57477,7 +57478,7 @@
|
|
|
57477
57478
|
className: x,
|
|
57478
57479
|
scale: P
|
|
57479
57480
|
}),
|
|
57480
|
-
|
|
57481
|
+
f,
|
|
57481
57482
|
_ ? /*#__PURE__*/ React.cloneElement(_, {
|
|
57482
57483
|
onClick: H,
|
|
57483
57484
|
"data-testid": "close-camera"
|
|
@@ -57677,32 +57678,32 @@
|
|
|
57677
57678
|
"left center",
|
|
57678
57679
|
"left bottom"
|
|
57679
57680
|
], io = function(t, r, o, n, i) {
|
|
57680
|
-
var a = i.offsetX, s = i.offsetY, c = 8 * !!n, l = o.split(" "), d = t.top + t.height / 2, u = t.left + t.width / 2,
|
|
57681
|
+
var a = i.offsetX, s = i.offsetY, c = 8 * !!n, l = o.split(" "), d = t.top + t.height / 2, u = t.left + t.width / 2, p = r.height, f = r.width, h = d - p / 2, m = u - f / 2, g = "", b = "0%", v = "0%";
|
|
57681
57682
|
switch(l[0]){
|
|
57682
57683
|
case "top":
|
|
57683
|
-
h -=
|
|
57684
|
+
h -= p / 2 + t.height / 2 + c, g = "rotate(180deg) translateX(50%)", b = "100%", v = "50%";
|
|
57684
57685
|
break;
|
|
57685
57686
|
case "bottom":
|
|
57686
|
-
h +=
|
|
57687
|
+
h += p / 2 + t.height / 2 + c, g = "rotate(0deg) translateY(-100%) translateX(-50%)", v = "50%";
|
|
57687
57688
|
break;
|
|
57688
57689
|
case "left":
|
|
57689
|
-
m -=
|
|
57690
|
+
m -= f / 2 + t.width / 2 + c, g = " rotate(90deg) translateY(50%) translateX(-25%)", v = "100%", b = "50%";
|
|
57690
57691
|
break;
|
|
57691
57692
|
case "right":
|
|
57692
|
-
m +=
|
|
57693
|
+
m += f / 2 + t.width / 2 + c, g = "rotate(-90deg) translateY(-150%) translateX(25%)", b = "50%";
|
|
57693
57694
|
}
|
|
57694
57695
|
switch(l[1]){
|
|
57695
57696
|
case "top":
|
|
57696
57697
|
h = t.top, b = t.height / 2 + "px";
|
|
57697
57698
|
break;
|
|
57698
57699
|
case "bottom":
|
|
57699
|
-
h = t.top -
|
|
57700
|
+
h = t.top - p + t.height, b = p - t.height / 2 + "px";
|
|
57700
57701
|
break;
|
|
57701
57702
|
case "left":
|
|
57702
57703
|
m = t.left, v = t.width / 2 + "px";
|
|
57703
57704
|
break;
|
|
57704
57705
|
case "right":
|
|
57705
|
-
m = t.left -
|
|
57706
|
+
m = t.left - f + t.width, v = f - t.width / 2 + "px";
|
|
57706
57707
|
}
|
|
57707
57708
|
return h = "top" === l[0] ? h - s : h + s, {
|
|
57708
57709
|
top: h,
|
|
@@ -57730,12 +57731,12 @@
|
|
|
57730
57731
|
left: 0,
|
|
57731
57732
|
top: 0,
|
|
57732
57733
|
transform: "rotate(135deg)"
|
|
57733
|
-
}, d = 0, u = ii(a),
|
|
57734
|
+
}, d = 0, u = ii(a), p = Array.isArray(o) ? o : [
|
|
57734
57735
|
o
|
|
57735
57736
|
];
|
|
57736
|
-
for((a || Array.isArray(o)) && (
|
|
57737
|
-
var
|
|
57738
|
-
top: (l = io(t, r,
|
|
57737
|
+
for((a || Array.isArray(o)) && (p = [].concat(p, ir)); d < p.length;){
|
|
57738
|
+
var f = {
|
|
57739
|
+
top: (l = io(t, r, p[d], n, {
|
|
57739
57740
|
offsetX: s,
|
|
57740
57741
|
offsetY: c
|
|
57741
57742
|
})).top,
|
|
@@ -57743,7 +57744,7 @@
|
|
|
57743
57744
|
width: r.width,
|
|
57744
57745
|
height: r.height
|
|
57745
57746
|
};
|
|
57746
|
-
if (
|
|
57747
|
+
if (f.top <= u.top || f.left <= u.left || f.top + f.height >= u.top + u.height || f.left + f.width >= u.left + u.width) d++;
|
|
57747
57748
|
else break;
|
|
57748
57749
|
}
|
|
57749
57750
|
return l;
|
|
@@ -57751,7 +57752,7 @@
|
|
|
57751
57752
|
var t = document.getElementById("popup-root");
|
|
57752
57753
|
return null === t && ((t = document.createElement("div")).setAttribute("id", "popup-root"), document.body.appendChild(t)), t;
|
|
57753
57754
|
}, il = /*#__PURE__*/ reactExports.forwardRef(function(r, a) {
|
|
57754
|
-
var s = r.trigger, c = void 0 === s ? null : s, l = r.onOpen, u = void 0 === l ? function() {} : l,
|
|
57755
|
+
var s = r.trigger, c = void 0 === s ? null : s, l = r.onOpen, u = void 0 === l ? function() {} : l, p = r.onClose, f = void 0 === p ? function() {} : p, h = r.defaultOpen, m = r.open, g = void 0 === m ? void 0 : m, b = r.disabled, v = void 0 !== b && b, w = r.nested, k = void 0 !== w && w, y = r.closeOnDocumentClick, C = void 0 === y || y, B = r.repositionOnResize, _ = r.closeOnEscape, x = r.on, P = void 0 === x ? [
|
|
57755
57756
|
"click"
|
|
57756
57757
|
] : x, S = r.contentStyle, E = void 0 === S ? {} : S, T = r.arrowStyle, D = void 0 === T ? {} : T, $ = r.overlayStyle, j = r.className, I = void 0 === j ? "" : j, O = r.position, M = void 0 === O ? "bottom center" : O, A = r.modal, R = void 0 !== A && A, L = r.lockScroll, F = void 0 !== L && L, N = r.arrow, z = void 0 === N || N, V = r.offsetX, W = void 0 === V ? 0 : V, U = r.offsetY, q = void 0 === U ? 0 : U, Q = r.mouseEnterDelay, X = void 0 === Q ? 100 : Q, H = r.mouseLeaveDelay, Z = void 0 === H ? 100 : H, K = r.keepTooltipInside, Y = void 0 !== K && K, J = r.children, ee = reactExports.useState(g || void 0 !== h && h), et = ee[0], er = ee[1], eo = reactExports.useRef(null), en = reactExports.useRef(null), ei = reactExports.useRef(null), ea = reactExports.useRef(null), es = reactExports.useRef("popup-" + ++is), ec = !!R || !c, el = reactExports.useRef(0);
|
|
57757
57758
|
n7(function() {
|
|
@@ -57773,16 +57774,16 @@
|
|
|
57773
57774
|
}, eu = function(t) {
|
|
57774
57775
|
var r;
|
|
57775
57776
|
et && !v && (er(!1), ec && (null == (r = ea.current) || r.focus()), setTimeout(function() {
|
|
57776
|
-
return
|
|
57777
|
+
return f(t);
|
|
57777
57778
|
}, 0));
|
|
57778
|
-
}, ef = function(t) {
|
|
57779
|
-
null == t || t.stopPropagation(), et ? eu(t) : ed(t);
|
|
57780
57779
|
}, ep = function(t) {
|
|
57780
|
+
null == t || t.stopPropagation(), et ? eu(t) : ed(t);
|
|
57781
|
+
}, ef = function(t) {
|
|
57781
57782
|
clearTimeout(el.current), el.current = setTimeout(function() {
|
|
57782
57783
|
return ed(t);
|
|
57783
57784
|
}, X);
|
|
57784
57785
|
}, eh = function(t) {
|
|
57785
|
-
null == t || t.preventDefault(),
|
|
57786
|
+
null == t || t.preventDefault(), ep();
|
|
57786
57787
|
}, em = function(t) {
|
|
57787
57788
|
clearTimeout(el.current), el.current = setTimeout(function() {
|
|
57788
57789
|
return eu(t);
|
|
@@ -57804,7 +57805,7 @@
|
|
|
57804
57805
|
eu();
|
|
57805
57806
|
},
|
|
57806
57807
|
toggle: function() {
|
|
57807
|
-
|
|
57808
|
+
ep();
|
|
57808
57809
|
}
|
|
57809
57810
|
};
|
|
57810
57811
|
});
|
|
@@ -57838,7 +57839,7 @@
|
|
|
57838
57839
|
t.stopPropagation();
|
|
57839
57840
|
}
|
|
57840
57841
|
};
|
|
57841
|
-
return !R && P.indexOf("hover") >= 0 && (r.onMouseEnter =
|
|
57842
|
+
return !R && P.indexOf("hover") >= 0 && (r.onMouseEnter = ef, r.onMouseLeave = em), r;
|
|
57842
57843
|
}, ey = function() {
|
|
57843
57844
|
return /*#__PURE__*/ React.createElement("div", Object.assign({}, ek(), {
|
|
57844
57845
|
key: "C",
|
|
@@ -57885,16 +57886,16 @@
|
|
|
57885
57886
|
P
|
|
57886
57887
|
], n = 0, i = o.length; n < i; n++)switch(o[n]){
|
|
57887
57888
|
case "click":
|
|
57888
|
-
r.onClick =
|
|
57889
|
+
r.onClick = ep;
|
|
57889
57890
|
break;
|
|
57890
57891
|
case "right-click":
|
|
57891
57892
|
r.onContextMenu = eh;
|
|
57892
57893
|
break;
|
|
57893
57894
|
case "hover":
|
|
57894
|
-
r.onMouseEnter =
|
|
57895
|
+
r.onMouseEnter = ef, r.onMouseLeave = em;
|
|
57895
57896
|
break;
|
|
57896
57897
|
case "focus":
|
|
57897
|
-
r.onFocus =
|
|
57898
|
+
r.onFocus = ef, r.onBlur = em;
|
|
57898
57899
|
}
|
|
57899
57900
|
if ("function" == typeof c) {
|
|
57900
57901
|
var a = c(et);
|
|
@@ -58160,8 +58161,8 @@
|
|
|
58160
58161
|
}
|
|
58161
58162
|
}
|
|
58162
58163
|
}, im = "default", ig = "error";
|
|
58163
|
-
function ib({ className: t, width: r, height: o, type: n, strokeStyles: i, strokeWidth: a, radius: s, paddingStyle: c, defaultRectStyles: l, errorRectStyles: d }) {
|
|
58164
|
-
let
|
|
58164
|
+
function ib({ className: t, width: r, height: o, type: n, strokeStyles: i, strokeWidth: a, radius: s, paddingStyle: c, defaultRectStyles: l, errorRectStyles: d, paddingCornerMultiplier: u = 1.5 }) {
|
|
58165
|
+
let f = reactExports.useMemo(()=>({
|
|
58165
58166
|
[im]: l,
|
|
58166
58167
|
[ig]: d,
|
|
58167
58168
|
...i
|
|
@@ -58169,7 +58170,7 @@
|
|
|
58169
58170
|
l,
|
|
58170
58171
|
d,
|
|
58171
58172
|
i
|
|
58172
|
-
]),
|
|
58173
|
+
]), h = s + a * u, m = f[n];
|
|
58173
58174
|
return oZ.jsxs("svg", {
|
|
58174
58175
|
width: r,
|
|
58175
58176
|
height: o,
|
|
@@ -58182,22 +58183,22 @@
|
|
|
58182
58183
|
ry: s,
|
|
58183
58184
|
width: r - a,
|
|
58184
58185
|
height: o - a,
|
|
58185
|
-
style:
|
|
58186
|
+
style: m
|
|
58186
58187
|
}),
|
|
58187
58188
|
oZ.jsx("path", {
|
|
58188
|
-
d: `M0,${
|
|
58189
|
+
d: `M0,${h} Q0,0 ${h},0 L0,0 Z`,
|
|
58189
58190
|
style: c
|
|
58190
58191
|
}),
|
|
58191
58192
|
oZ.jsx("path", {
|
|
58192
|
-
d: `M0,${o -
|
|
58193
|
+
d: `M0,${o - h} Q0,${o} ${h},${o} L0,${o} Z`,
|
|
58193
58194
|
style: c
|
|
58194
58195
|
}),
|
|
58195
58196
|
oZ.jsx("path", {
|
|
58196
|
-
d: `M${r -
|
|
58197
|
+
d: `M${r - h},${o} Q${r},${o} ${r},${o - h} L${r},${o} Z`,
|
|
58197
58198
|
style: c
|
|
58198
58199
|
}),
|
|
58199
58200
|
oZ.jsx("path", {
|
|
58200
|
-
d: `M${r -
|
|
58201
|
+
d: `M${r - h},0 Q${r},0 ${r},${h} L${r},0 Z`,
|
|
58201
58202
|
style: c
|
|
58202
58203
|
})
|
|
58203
58204
|
]
|
|
@@ -58216,7 +58217,8 @@
|
|
|
58216
58217
|
radius: PropTypes.number,
|
|
58217
58218
|
paddingStyle: PropTypes.shape({}),
|
|
58218
58219
|
defaultRectStyles: PropTypes.shape({}),
|
|
58219
|
-
errorRectStyles: PropTypes.shape({})
|
|
58220
|
+
errorRectStyles: PropTypes.shape({}),
|
|
58221
|
+
paddingCornerMultiplier: PropTypes.number
|
|
58220
58222
|
}, ib.defaultProps = {
|
|
58221
58223
|
className: "",
|
|
58222
58224
|
width: ih.IDCapturing.rectangleMask.width,
|
|
@@ -58227,7 +58229,8 @@
|
|
|
58227
58229
|
radius: ih.IDCapturing.rectangleMask.radius,
|
|
58228
58230
|
paddingStyle: ih.IDCapturing.rectangleMask.paddingStyle,
|
|
58229
58231
|
defaultRectStyles: ih.IDCapturing.rectangleMask.default,
|
|
58230
|
-
errorRectStyles: ih.IDCapturing.rectangleMask.error
|
|
58232
|
+
errorRectStyles: ih.IDCapturing.rectangleMask.error,
|
|
58233
|
+
paddingCornerMultiplier: 1.5
|
|
58231
58234
|
};
|
|
58232
58235
|
let iv = mt$1`
|
|
58233
58236
|
from {
|
|
@@ -58386,8 +58389,8 @@
|
|
|
58386
58389
|
if (o && !a || !o && !s) return null;
|
|
58387
58390
|
let { width: c, height: l } = r, d = document.createElement("canvas"), u = document.createElement("canvas");
|
|
58388
58391
|
d.width = c / 2, u.width = c / 2, d.height = l, u.height = l;
|
|
58389
|
-
let
|
|
58390
|
-
|
|
58392
|
+
let p = d.getContext("2d"), f = u.getContext("2d");
|
|
58393
|
+
p.drawImage(r, 0, 0, c / 2, l, 0, 0, c / 2, l), f.drawImage(r, c / 2, 0, c / 2, l, 0, 0, c / 2, l);
|
|
58391
58394
|
let [h, m] = await Promise.all([
|
|
58392
58395
|
fb.getModelPredictions({
|
|
58393
58396
|
model: t,
|
|
@@ -58428,13 +58431,13 @@
|
|
|
58428
58431
|
return i;
|
|
58429
58432
|
}, iz = (t, r)=>parseFloat(t.toFixed(r)), iV = ({ currentFrameBlurScore: t, incomingFrameBlurScore: r, currentFrameGlareScore: o, incomingFrameGlareScore: n, settings: i, blurLargeThreshold: a, blurSmallThreshold: s })=>{
|
|
58430
58433
|
if (null === t) return !0;
|
|
58431
|
-
let { enableBlurCheck: c, enableGlareCheck: l } = i, d = t?.small, u = t?.large,
|
|
58432
|
-
return (!c || !(
|
|
58434
|
+
let { enableBlurCheck: c, enableGlareCheck: l } = i, d = t?.small, u = t?.large, p = r?.small, f = r?.large;
|
|
58435
|
+
return (!c || !(p < s) && !(f < a)) && (Math.abs(p - d) > Number.EPSILON ? p > d : Math.abs(f - u) > Number.EPSILON ? f > u : !!(l && Math.abs(n - o) > Number.EPSILON) && n > o);
|
|
58433
58436
|
};
|
|
58434
58437
|
function iW(t, r, o, n, i) {
|
|
58435
58438
|
o && (o.strokeStyle = r, o.lineWidth = 2, t.forEach((t)=>{
|
|
58436
|
-
let [r, a, s, c] = t, l = (r + i.x) * n, d = (a + i.y) * n, u = (s + i.x) * n,
|
|
58437
|
-
o.strokeRect(l, d, u - l,
|
|
58439
|
+
let [r, a, s, c] = t, l = (r + i.x) * n, d = (a + i.y) * n, u = (s + i.x) * n, p = (c + i.y) * n;
|
|
58440
|
+
o.strokeRect(l, d, u - l, p - d);
|
|
58438
58441
|
}));
|
|
58439
58442
|
}
|
|
58440
58443
|
function iU(t) {
|
|
@@ -59240,14 +59243,14 @@
|
|
|
59240
59243
|
_drawToCanvas(t, r, o, n, i, a) {
|
|
59241
59244
|
if (this._animationFrameId && cancelAnimationFrame(this._animationFrameId), !t || !a || this._stopDrawing) return;
|
|
59242
59245
|
this._lastFrameTime = 0;
|
|
59243
|
-
let { cropX: s, cropY: c, cropWidth: l, cropHeight: d } = a, u = 1e3 / i,
|
|
59246
|
+
let { cropX: s, cropY: c, cropWidth: l, cropHeight: d } = a, u = 1e3 / i, p = (i)=>{
|
|
59244
59247
|
if (this._stopDrawing) {
|
|
59245
59248
|
this._animationFrameId = null;
|
|
59246
59249
|
return;
|
|
59247
59250
|
}
|
|
59248
|
-
i - this._lastFrameTime >= u && (this._lastFrameTime = i, t.drawImage(r, s, c, l, d, 0, 0, o, n)), this._animationFrameId = requestAnimationFrame(
|
|
59251
|
+
i - this._lastFrameTime >= u && (this._lastFrameTime = i, t.drawImage(r, s, c, l, d, 0, 0, o, n)), this._animationFrameId = requestAnimationFrame(p);
|
|
59249
59252
|
};
|
|
59250
|
-
this._animationFrameId = requestAnimationFrame(
|
|
59253
|
+
this._animationFrameId = requestAnimationFrame(p);
|
|
59251
59254
|
}
|
|
59252
59255
|
stopDrawing() {
|
|
59253
59256
|
this._stopDrawing = !0, this._animationFrameId && (cancelAnimationFrame(this._animationFrameId), this._animationFrameId = null);
|
|
@@ -59257,10 +59260,10 @@
|
|
|
59257
59260
|
this.clearVideoChunks(), this._stopDrawing = !1;
|
|
59258
59261
|
let { videoFrameWidth: a, videoFrameHeight: s, videoBitrate: c, fps: l } = o, d = l || this.DEFAULT_VIDEO_FPS, u = r.cropWidth / r.cropHeight;
|
|
59259
59262
|
aE(a) ? (n = a, i = a / u) : aE(s) ? (n = s * u, i = s) : (n = 400, i = 800);
|
|
59260
|
-
let
|
|
59261
|
-
|
|
59262
|
-
let
|
|
59263
|
-
if (!
|
|
59263
|
+
let p = document.createElement("canvas");
|
|
59264
|
+
p.width = n, p.height = i;
|
|
59265
|
+
let f = p.getContext("2d");
|
|
59266
|
+
if (!f) return console.error("Could not get canvas context."), {
|
|
59264
59267
|
mediaRecorder: null
|
|
59265
59268
|
};
|
|
59266
59269
|
try {
|
|
@@ -59268,7 +59271,7 @@
|
|
|
59268
59271
|
mimeType: "video/webm",
|
|
59269
59272
|
videoBitsPerSecond: c
|
|
59270
59273
|
}, i = nT.isIOS ? "video/mp4" : "video/webm";
|
|
59271
|
-
if (MediaRecorder.isTypeSupported(i) && (this._stream && this._stream.getTracks().forEach((t)=>t.stop()), this._stopDrawing = !1, this._drawToCanvas(
|
|
59274
|
+
if (MediaRecorder.isTypeSupported(i) && (this._stream && this._stream.getTracks().forEach((t)=>t.stop()), this._stopDrawing = !1, this._drawToCanvas(f, t, n, n / u, d, r), this._stream = p.captureStream(), o = {
|
|
59272
59275
|
mimeType: i,
|
|
59273
59276
|
videoBitsPerSecond: Math.min(c, this.MAX_VIDEO_BITRATE)
|
|
59274
59277
|
}), !this._stream) throw Error("Failed to create a media stream for recording.");
|
|
@@ -59323,7 +59326,7 @@
|
|
|
59323
59326
|
}
|
|
59324
59327
|
}, [
|
|
59325
59328
|
i
|
|
59326
|
-
]),
|
|
59329
|
+
]), f = reactExports.useCallback(()=>{
|
|
59327
59330
|
if (s.current && r.current) try {
|
|
59328
59331
|
s.current.discardRecording(), r.current = !1;
|
|
59329
59332
|
} catch (t) {
|
|
@@ -59332,19 +59335,19 @@
|
|
|
59332
59335
|
}, []);
|
|
59333
59336
|
return reactExports.useEffect(()=>{
|
|
59334
59337
|
let t = ()=>{
|
|
59335
|
-
"hidden" === document.visibilityState ?
|
|
59338
|
+
"hidden" === document.visibilityState ? f() : "visible" === document.visibilityState && c.current && l(c.current);
|
|
59336
59339
|
};
|
|
59337
59340
|
return document.addEventListener("visibilitychange", t), ()=>{
|
|
59338
59341
|
document.removeEventListener("visibilitychange", t);
|
|
59339
59342
|
};
|
|
59340
59343
|
}, [
|
|
59341
59344
|
l,
|
|
59342
|
-
|
|
59345
|
+
f
|
|
59343
59346
|
]), {
|
|
59344
59347
|
startRecording: l,
|
|
59345
59348
|
stopRecording: d,
|
|
59346
59349
|
resetRecording: u,
|
|
59347
|
-
discardRecording:
|
|
59350
|
+
discardRecording: f
|
|
59348
59351
|
};
|
|
59349
59352
|
}, { Errors: a$ } = ra$1, aj = ()=>({
|
|
59350
59353
|
imageBlob: null,
|
|
@@ -59557,22 +59560,22 @@
|
|
|
59557
59560
|
});
|
|
59558
59561
|
}
|
|
59559
59562
|
let aU = /*#__PURE__*/ reactExports.forwardRef((t, r)=>{
|
|
59560
|
-
let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo:
|
|
59563
|
+
let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo: f, frontSide: k, allowedCardTypes: y, settings: C, onCaptureDone: B, onUISpacingChange: x, outputEncryptionSettings: S, isShowingSpinner: E } = t, T = nt$2(), [D, F] = reactExports.useState({}), { yMessage: N, yCaptureButton: z, yToggleButton: V, yInstruction: U, yCountdown: q } = D, Q = nz("IDCapturing.captureIcon.src", "ic_camera.svg"), X = nz("IDCapturing.captureIcon.disabled.src", "ic_camera.svg"), H = nN("IDCapturing.countdown.color")({
|
|
59561
59564
|
theme: T
|
|
59562
|
-
}), G = nz("IDCapturing.loadingIcon.src", "ic_loading.gif"), [Z, K] = reactExports.useState(""), Y = gB(), [J, ee] = reactExports.useState(null), [et, er] = reactExports.useState(""), [eo, en] = reactExports.useState(null), { showPopup: ei, popupShown: ea, popupType: es } = ad(), ec = reactExports.useContext(aO), [el, ed] = reactExports.useState(!1), eu = reactExports.useRef(()=>{}),
|
|
59565
|
+
}), G = nz("IDCapturing.loadingIcon.src", "ic_loading.gif"), [Z, K] = reactExports.useState(""), Y = gB(), [J, ee] = reactExports.useState(null), [et, er] = reactExports.useState(""), [eo, en] = reactExports.useState(null), { showPopup: ei, popupShown: ea, popupType: es } = ad(), ec = reactExports.useContext(aO), [el, ed] = reactExports.useState(!1), eu = reactExports.useRef(()=>{}), ep = reactExports.useCallback((t)=>{
|
|
59563
59566
|
null === t ? er("") : er(Y(t?.code, {
|
|
59564
59567
|
side: k ? Y("front") : Y("back")
|
|
59565
59568
|
}));
|
|
59566
59569
|
}, [
|
|
59567
59570
|
Y,
|
|
59568
59571
|
k
|
|
59569
|
-
]),
|
|
59572
|
+
]), ef = reactExports.useCallback(()=>{
|
|
59570
59573
|
ee(""), eu.current();
|
|
59571
59574
|
}, []), eh = reactExports.useCallback((...t)=>{
|
|
59572
59575
|
ee(""), B(...t);
|
|
59573
59576
|
}, [
|
|
59574
59577
|
B
|
|
59575
|
-
]), { warmupDone: em, isPostProcessing: eg, isAutoCapturing: eb, takePictureManually: ev, restartSession: ew, resetIsProcessingImageBlobTaken: ek, isAutoCaptureModeOn: ey, onToggleAutoCaptureMode: eC, autoCaptureDuration: eB } = (({ shouldStart: t, refVideo: r, cropArea: s, settings: l, onModelErrorChange: d, frontSide: u, onDebugInfoChange:
|
|
59578
|
+
]), { warmupDone: em, isPostProcessing: eg, isAutoCapturing: eb, takePictureManually: ev, restartSession: ew, resetIsProcessingImageBlobTaken: ek, isAutoCaptureModeOn: ey, onToggleAutoCaptureMode: eC, autoCaptureDuration: eB } = (({ shouldStart: t, refVideo: r, cropArea: s, settings: l, onModelErrorChange: d, frontSide: u, onDebugInfoChange: f, onAboutToTimeout: g, onSessionTimeout: k, onCaptureDone: y, outputEncryptionSettings: C, quality: B })=>{
|
|
59576
59579
|
let x = reactExports.useRef(!1), [S, E] = reactExports.useState(!1), T = reactExports.useRef(()=>{}), { sendEvent: D } = iN$1.useSDKTracking(), L = reactExports.useRef(), F = reactExports.useRef(), N = reactExports.useRef(), z = reactExports.useContext(aO), { enableAntiDebug: V } = no$1.useSDKSettings(), { onErrorCallback: W } = aS(), { playVoice: U } = iJ$1.useVoicePlayer(), [q, Q] = reactExports.useState(nn(l, "enableAutoCapture")), X = reactExports.useCallback(()=>{
|
|
59577
59580
|
Q((t)=>!t);
|
|
59578
59581
|
}, []), { autoCaptureWaitForBestImageTimeMs: H, manualCaptureWaitForBestImageTimeMs: G } = l, Z = q ? H : G;
|
|
@@ -59613,30 +59616,30 @@
|
|
|
59613
59616
|
l.blurLargeThresholdAuto,
|
|
59614
59617
|
l.blurLargeThresholdManual,
|
|
59615
59618
|
l.enableAutoCapture
|
|
59616
|
-
]), { isCapturing: et, refWorkingCanvas: er, stopCheckFrame: eo, checkFrame: en, warmupDone: ei, takePictureManually: ea, refAbleToRunBurstMode: es, refVirtualFrames: ec, refCardCoordinates: el, refBlurScores: ed, refGlareScores: eu, resetState:
|
|
59619
|
+
]), { isCapturing: et, refWorkingCanvas: er, stopCheckFrame: eo, checkFrame: en, warmupDone: ei, takePictureManually: ea, refAbleToRunBurstMode: es, refVirtualFrames: ec, refCardCoordinates: el, refBlurScores: ed, refGlareScores: eu, resetState: ep, resetRecordVideo: ef } = function({ isAutoCapture: t, blurSmallThreshold: r, blurLargeThreshold: s, refVideo: l, shouldStart: d, cropArea: u, settings: f, onError: m, frontSide: g, onAutoCaptureSuccess: b, quality: k, debug: y }) {
|
|
59617
59620
|
let C = reactExports.useRef(null);
|
|
59618
59621
|
null === C.current && (C.current = document.createElement("canvas"));
|
|
59619
|
-
let B = reactExports.useRef([]), x = reactExports.useRef({}), S = reactExports.useRef(!1), E = reactExports.useRef([]), T = reactExports.useRef(!1), D = reactExports.useRef(null), [I, O] = reactExports.useState(!1), M = reactExports.useRef(aj()), A = reactExports.useRef(aI()), R = reactExports.useRef(null), L = reactExports.useRef(!1), F = reactExports.useRef(!1), N = reactExports.useRef(null), z = reactExports.useRef(!1), V = reactExports.useRef({}), { customUrls: W } = no$1.useSDKSettings(), { onErrorCallback: U } = aS(), [q, Q] = reactExports.useState(!0), X = reactExports.useRef([]), H = reactExports.useRef([]), G = reactExports.useRef(t), { allowedCards: Z } =
|
|
59620
|
-
videoFrameWidth:
|
|
59621
|
-
videoFrameHeight:
|
|
59622
|
-
videoBitrate:
|
|
59623
|
-
fps:
|
|
59622
|
+
let B = reactExports.useRef([]), x = reactExports.useRef({}), S = reactExports.useRef(!1), E = reactExports.useRef([]), T = reactExports.useRef(!1), D = reactExports.useRef(null), [I, O] = reactExports.useState(!1), M = reactExports.useRef(aj()), A = reactExports.useRef(aI()), R = reactExports.useRef(null), L = reactExports.useRef(!1), F = reactExports.useRef(!1), N = reactExports.useRef(null), z = reactExports.useRef(!1), V = reactExports.useRef({}), { customUrls: W } = no$1.useSDKSettings(), { onErrorCallback: U } = aS(), [q, Q] = reactExports.useState(!0), X = reactExports.useRef([]), H = reactExports.useRef([]), G = reactExports.useRef(t), { allowedCards: Z } = f, K = reactExports.useRef(null), [Y, J] = reactExports.useState(!1), ee = reactExports.useRef(!1), et = reactExports.useMemo(()=>({
|
|
59623
|
+
videoFrameWidth: f.recordVideoFrameWidth,
|
|
59624
|
+
videoFrameHeight: f.recordVideoFrameHeight,
|
|
59625
|
+
videoBitrate: f.recordVideoBitrate,
|
|
59626
|
+
fps: f.recordVideoFps
|
|
59624
59627
|
}), [
|
|
59625
|
-
|
|
59626
|
-
|
|
59627
|
-
|
|
59628
|
-
|
|
59628
|
+
f.recordVideoBitrate,
|
|
59629
|
+
f.recordVideoFps,
|
|
59630
|
+
f.recordVideoFrameHeight,
|
|
59631
|
+
f.recordVideoFrameWidth
|
|
59629
59632
|
]), { startRecording: er, stopRecording: eo, resetRecording: en } = aD({
|
|
59630
|
-
shouldRecord: reactExports.useMemo(()=>g ?
|
|
59633
|
+
shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordCapturingFront : f.enableRecordCapturingBack, [
|
|
59631
59634
|
g,
|
|
59632
|
-
|
|
59633
|
-
|
|
59635
|
+
f.enableRecordCapturingBack,
|
|
59636
|
+
f.enableRecordCapturingFront
|
|
59634
59637
|
])
|
|
59635
59638
|
}), { startRecording: ei, stopRecording: ea, resetRecording: es } = aD({
|
|
59636
|
-
shouldRecord: reactExports.useMemo(()=>g ?
|
|
59639
|
+
shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordFullSessionFront : f.enableRecordFullSessionBack, [
|
|
59637
59640
|
g,
|
|
59638
|
-
|
|
59639
|
-
|
|
59641
|
+
f.enableRecordFullSessionBack,
|
|
59642
|
+
f.enableRecordFullSessionFront
|
|
59640
59643
|
])
|
|
59641
59644
|
}), { turnOnFlashlight: ec, turnOffFlashlight: el } = (()=>{
|
|
59642
59645
|
let t = reactExports.useContext(nU);
|
|
@@ -59650,8 +59653,8 @@
|
|
|
59650
59653
|
]), reactExports.useEffect(()=>{
|
|
59651
59654
|
let t = !1;
|
|
59652
59655
|
return async function r() {
|
|
59653
|
-
if (
|
|
59654
|
-
if (
|
|
59656
|
+
if (f && !I) {
|
|
59657
|
+
if (f.enableIdDetection) {
|
|
59655
59658
|
let t = ((t, r)=>{
|
|
59656
59659
|
if (0 === t.length) return {
|
|
59657
59660
|
isValid: !1
|
|
@@ -59672,7 +59675,7 @@
|
|
|
59672
59675
|
} : {
|
|
59673
59676
|
isValid: !1
|
|
59674
59677
|
};
|
|
59675
|
-
})(Z.map((t)=>t.code),
|
|
59678
|
+
})(Z.map((t)=>t.code), f?.cardTypeModelMapping);
|
|
59676
59679
|
if (!t.isValid) {
|
|
59677
59680
|
U(a$.invalid_card_type_config), Q(!1), O(!0);
|
|
59678
59681
|
return;
|
|
@@ -59681,7 +59684,7 @@
|
|
|
59681
59684
|
V.current = await a_({
|
|
59682
59685
|
...W,
|
|
59683
59686
|
idCardModelUrl: r
|
|
59684
|
-
}, t.cardModel), await fY.initTensorFlow(), N.current =
|
|
59687
|
+
}, t.cardModel), await fY.initTensorFlow(), N.current = f.enableBlurCheck && V.current.ableToUseModel, Q(!t.forceOffDetection);
|
|
59685
59688
|
} else Q(!1), N.current = !1;
|
|
59686
59689
|
t || O(!0);
|
|
59687
59690
|
}
|
|
@@ -59690,7 +59693,7 @@
|
|
|
59690
59693
|
};
|
|
59691
59694
|
}, [
|
|
59692
59695
|
I,
|
|
59693
|
-
|
|
59696
|
+
f,
|
|
59694
59697
|
W,
|
|
59695
59698
|
Z,
|
|
59696
59699
|
U
|
|
@@ -59707,13 +59710,13 @@
|
|
|
59707
59710
|
});
|
|
59708
59711
|
}, [
|
|
59709
59712
|
k
|
|
59710
|
-
]),
|
|
59713
|
+
]), ep = reactExports.useCallback(()=>{
|
|
59711
59714
|
Y || (en(), es());
|
|
59712
59715
|
}, [
|
|
59713
59716
|
Y,
|
|
59714
59717
|
en,
|
|
59715
59718
|
es
|
|
59716
|
-
]),
|
|
59719
|
+
]), ef = reactExports.useCallback(async ()=>{
|
|
59717
59720
|
let t = {
|
|
59718
59721
|
capturingVideo: {
|
|
59719
59722
|
blob: null
|
|
@@ -59728,18 +59731,18 @@
|
|
|
59728
59731
|
}, [
|
|
59729
59732
|
eo,
|
|
59730
59733
|
ea
|
|
59731
|
-
]), eh = reactExports.useMemo(()=>g ?
|
|
59734
|
+
]), eh = reactExports.useMemo(()=>g ? f.enableFlashlightFront : f.enableFlashlightBack, [
|
|
59732
59735
|
g,
|
|
59733
|
-
|
|
59734
|
-
|
|
59735
|
-
]), em = reactExports.useMemo(()=>g ?
|
|
59736
|
+
f.enableFlashlightBack,
|
|
59737
|
+
f.enableFlashlightFront
|
|
59738
|
+
]), em = reactExports.useMemo(()=>g ? f.flashlightActivationDelayFront : f.flashlightActivationDelayBack, [
|
|
59736
59739
|
g,
|
|
59737
|
-
|
|
59738
|
-
|
|
59739
|
-
]), eg = reactExports.useMemo(()=>g ?
|
|
59740
|
+
f.flashlightActivationDelayBack,
|
|
59741
|
+
f.flashlightActivationDelayFront
|
|
59742
|
+
]), eg = reactExports.useMemo(()=>g ? f.flashlightDurationFront : f.flashlightDurationBack, [
|
|
59740
59743
|
g,
|
|
59741
|
-
|
|
59742
|
-
|
|
59744
|
+
f.flashlightDurationBack,
|
|
59745
|
+
f.flashlightDurationFront
|
|
59743
59746
|
]), eb = reactExports.useCallback(()=>{
|
|
59744
59747
|
!ed.current && eh && (ed.current = !0, setTimeout(()=>{
|
|
59745
59748
|
ec(eg);
|
|
@@ -59756,9 +59759,9 @@
|
|
|
59756
59759
|
]), ew = reactExports.useCallback(()=>{
|
|
59757
59760
|
!0 === T.current && (T.current = !1);
|
|
59758
59761
|
}, []), ek = reactExports.useCallback(()=>{
|
|
59759
|
-
|
|
59762
|
+
ep(), X.current = [], H.current = [], R.current = null, z.current = !1, ee.current = !1;
|
|
59760
59763
|
}, [
|
|
59761
|
-
|
|
59764
|
+
ep
|
|
59762
59765
|
]), ey = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n })=>{
|
|
59763
59766
|
await er({
|
|
59764
59767
|
videoEl: l.current,
|
|
@@ -59771,7 +59774,7 @@
|
|
|
59771
59774
|
incomingFrameBlurScore: t,
|
|
59772
59775
|
currentFrameGlareScore: i.glareScore,
|
|
59773
59776
|
incomingFrameGlareScore: n,
|
|
59774
|
-
settings:
|
|
59777
|
+
settings: f,
|
|
59775
59778
|
blurLargeThreshold: s,
|
|
59776
59779
|
blurSmallThreshold: r
|
|
59777
59780
|
})) {
|
|
@@ -59789,25 +59792,25 @@
|
|
|
59789
59792
|
}
|
|
59790
59793
|
i.takenAt = new Date().getTime(), i.blurScore = t, i.glareScore = n, i.detectedCard = o, i.captureType = "auto";
|
|
59791
59794
|
}
|
|
59792
|
-
|
|
59795
|
+
f.enableBlurCheck && X.current.push(t), f.enableGlareCheck && H.current.push(n);
|
|
59793
59796
|
}, [
|
|
59794
59797
|
er,
|
|
59795
59798
|
l,
|
|
59796
59799
|
et,
|
|
59797
59800
|
eb,
|
|
59798
|
-
|
|
59801
|
+
f,
|
|
59799
59802
|
s,
|
|
59800
59803
|
r,
|
|
59801
59804
|
k
|
|
59802
59805
|
]), eC = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n })=>{
|
|
59803
59806
|
F.current = !0;
|
|
59804
59807
|
let i = A.current;
|
|
59805
|
-
if (
|
|
59808
|
+
if (f.enableBlurCheck && X.current.push(t), f.enableGlareCheck && H.current.push(n), iV({
|
|
59806
59809
|
currentFrameBlurScore: i.blurScore,
|
|
59807
59810
|
currentFrameGlareScore: i.glareScore,
|
|
59808
59811
|
incomingFrameBlurScore: t,
|
|
59809
59812
|
incomingFrameGlareScore: n,
|
|
59810
|
-
settings:
|
|
59813
|
+
settings: f,
|
|
59811
59814
|
blurLargeThreshold: s,
|
|
59812
59815
|
blurSmallThreshold: r
|
|
59813
59816
|
})) {
|
|
@@ -59826,19 +59829,19 @@
|
|
|
59826
59829
|
s,
|
|
59827
59830
|
r,
|
|
59828
59831
|
k,
|
|
59829
|
-
|
|
59832
|
+
f
|
|
59830
59833
|
]), eB = reactExports.useCallback(async ()=>{
|
|
59831
|
-
let { autoCaptureWaitForBestImageTimeMs: t } =
|
|
59834
|
+
let { autoCaptureWaitForBestImageTimeMs: t } = f, r = M.current;
|
|
59832
59835
|
if (null !== r.imageBlob && new Date().getTime() - R.current > t) {
|
|
59833
|
-
let t = await
|
|
59836
|
+
let t = await ef();
|
|
59834
59837
|
await ev(), await b({
|
|
59835
59838
|
...r,
|
|
59836
59839
|
...t
|
|
59837
59840
|
}), J(!1), R.current = null;
|
|
59838
59841
|
}
|
|
59839
59842
|
}, [
|
|
59840
|
-
|
|
59841
|
-
|
|
59843
|
+
f,
|
|
59844
|
+
ef,
|
|
59842
59845
|
ev,
|
|
59843
59846
|
b
|
|
59844
59847
|
]), e_ = reactExports.useCallback(()=>{
|
|
@@ -59853,7 +59856,7 @@
|
|
|
59853
59856
|
resultAnalyzeVideoAndWindowSizes: D.current,
|
|
59854
59857
|
recordVideoSettings: et
|
|
59855
59858
|
}), eb(), new Promise((t)=>{
|
|
59856
|
-
let { enableVirtualCamHashes: o, manualCaptureWaitForBestImageTimeMs: n } =
|
|
59859
|
+
let { enableVirtualCamHashes: o, manualCaptureWaitForBestImageTimeMs: n } = f, i = A.current;
|
|
59857
59860
|
if (i.captureTime = Date.now(), N.current) J(!0), e_(), setTimeout(()=>{
|
|
59858
59861
|
ex().then(async ()=>{
|
|
59859
59862
|
await ev(), (i.blurScore?.small <= r || i.blurScore?.large <= s) && (i.error = a$.id_detector_error_blur);
|
|
@@ -59868,7 +59871,7 @@
|
|
|
59868
59871
|
quality: k
|
|
59869
59872
|
}).then(async (n)=>{
|
|
59870
59873
|
i.imageBlob = n, i.captureTime = Date.now(), i.hash = r, o && await eu(i.detectedCard);
|
|
59871
|
-
let a = await
|
|
59874
|
+
let a = await ef();
|
|
59872
59875
|
t({
|
|
59873
59876
|
...i,
|
|
59874
59877
|
...a
|
|
@@ -59876,7 +59879,7 @@
|
|
|
59876
59879
|
});
|
|
59877
59880
|
} else {
|
|
59878
59881
|
o && await eu(i.detectedCard);
|
|
59879
|
-
let r = await
|
|
59882
|
+
let r = await ef();
|
|
59880
59883
|
t({
|
|
59881
59884
|
...i,
|
|
59882
59885
|
...r
|
|
@@ -59903,10 +59906,10 @@
|
|
|
59903
59906
|
l,
|
|
59904
59907
|
et,
|
|
59905
59908
|
eb,
|
|
59906
|
-
|
|
59909
|
+
f,
|
|
59907
59910
|
e_,
|
|
59908
59911
|
ex,
|
|
59909
|
-
|
|
59912
|
+
ef,
|
|
59910
59913
|
ev,
|
|
59911
59914
|
r,
|
|
59912
59915
|
s,
|
|
@@ -59940,10 +59943,10 @@
|
|
|
59940
59943
|
portraitTopLeft: c,
|
|
59941
59944
|
portraitBottomRight: l
|
|
59942
59945
|
};
|
|
59943
|
-
}(t,
|
|
59946
|
+
}(t, f.blurFullFaceImageRatio, r), a = function(t, r) {
|
|
59944
59947
|
let { cv: o } = window;
|
|
59945
59948
|
if (!o) throw Error("Opencv not found!");
|
|
59946
|
-
let { topLeft: n, topRight: i, bottomRight: a, bottomLeft: s, maxWidth: c, maxHeight: l } = r, { portraitTopLeft: d, portraitBottomRight: u } = t,
|
|
59949
|
+
let { topLeft: n, topRight: i, bottomRight: a, bottomLeft: s, maxWidth: c, maxHeight: l } = r, { portraitTopLeft: d, portraitBottomRight: u } = t, p = o.matFromArray(4, 1, o.CV_32FC2, [
|
|
59947
59950
|
n.x,
|
|
59948
59951
|
n.y,
|
|
59949
59952
|
i.x,
|
|
@@ -59952,7 +59955,7 @@
|
|
|
59952
59955
|
a.y,
|
|
59953
59956
|
s.x,
|
|
59954
59957
|
s.y
|
|
59955
|
-
]),
|
|
59958
|
+
]), f = o.matFromArray(4, 1, o.CV_32FC2, [
|
|
59956
59959
|
0,
|
|
59957
59960
|
0,
|
|
59958
59961
|
c - 1,
|
|
@@ -59961,7 +59964,7 @@
|
|
|
59961
59964
|
l - 1,
|
|
59962
59965
|
0,
|
|
59963
59966
|
l - 1
|
|
59964
|
-
]), h = o.getPerspectiveTransform(
|
|
59967
|
+
]), h = o.getPerspectiveTransform(p, f), m = (t)=>{
|
|
59965
59968
|
let r = o.matFromArray(1, 1, o.CV_32FC2, [
|
|
59966
59969
|
t[0],
|
|
59967
59970
|
t[1]
|
|
@@ -59975,7 +59978,7 @@
|
|
|
59975
59978
|
Math.max(0, Math.min(i[1] * (ra$1.RESIZE_IMAGE_HEIGHT / l), l))
|
|
59976
59979
|
];
|
|
59977
59980
|
}, g = m(d), b = m(u);
|
|
59978
|
-
return
|
|
59981
|
+
return p.delete(), f.delete(), h.delete(), [
|
|
59979
59982
|
parseInt(g[0], 10),
|
|
59980
59983
|
parseInt(g[1], 10),
|
|
59981
59984
|
parseInt(b[0], 10),
|
|
@@ -60053,9 +60056,9 @@
|
|
|
60053
60056
|
};
|
|
60054
60057
|
}
|
|
60055
60058
|
}, [
|
|
60056
|
-
|
|
60059
|
+
f
|
|
60057
60060
|
]), e$ = reactExports.useCallback(async ({ result: t, workingCanvas: o })=>{
|
|
60058
|
-
let n, i, { cropX: a, cropY: c, cropWidth: d, cropHeight: u, cropWidthWithoutPadding:
|
|
60061
|
+
let n, i, { cropX: a, cropY: c, cropWidth: d, cropHeight: u, cropWidthWithoutPadding: p, cropHeightWithoutPadding: h } = D.current, { enableBlurCheck: m, enableGlareCheck: b, glareThreshold: v, isVietnameseCardFlow: k, hasFrontFace: C, hasBackFace: B, genericEnableCheckFrontFace: x, genericEnableCheckBackFace: P } = f, { blazefaceModel: S, blurDetector: E } = V.current, T = {
|
|
60059
60062
|
error: null
|
|
60060
60063
|
};
|
|
60061
60064
|
try {
|
|
@@ -60072,12 +60075,12 @@
|
|
|
60072
60075
|
area: c.width * c.height
|
|
60073
60076
|
},
|
|
60074
60077
|
big: {
|
|
60075
|
-
area:
|
|
60078
|
+
area: p * h
|
|
60076
60079
|
}
|
|
60077
60080
|
});
|
|
60078
60081
|
if (l < .5) throw Error("id_detector_card_too_small");
|
|
60079
60082
|
if (l > .95) throw Error("id_detector_error_incomplete");
|
|
60080
|
-
if (k && nn(
|
|
60083
|
+
if (k && nn(f, "enableCardTypeCheck")) {
|
|
60081
60084
|
let r = nn(t, "card.label", ""), { isAllowed: o, cardType: n } = ((t, r)=>{
|
|
60082
60085
|
let o = t.split(".")?.[0];
|
|
60083
60086
|
if (o !== r[0].split(".")?.[0]) return {
|
|
@@ -60151,8 +60154,8 @@
|
|
|
60151
60154
|
smallThreshold: r,
|
|
60152
60155
|
largeThreshold: s
|
|
60153
60156
|
}), u = {
|
|
60154
|
-
small: iz(d?.[0],
|
|
60155
|
-
large: iz(d?.[1],
|
|
60157
|
+
small: iz(d?.[0], f.blurSmallDecimal),
|
|
60158
|
+
large: iz(d?.[1], f.blurLargeDecimal)
|
|
60156
60159
|
};
|
|
60157
60160
|
if (eT.current = {
|
|
60158
60161
|
...eT.current,
|
|
@@ -60168,10 +60171,10 @@
|
|
|
60168
60171
|
}
|
|
60169
60172
|
if (y) {
|
|
60170
60173
|
var I, O, M, A, R, L, F, N;
|
|
60171
|
-
let r, s,
|
|
60174
|
+
let r, s, p, f = nn(t, "card.label"), h = nn(t, "card.corners");
|
|
60172
60175
|
eT.current = {
|
|
60173
60176
|
...eT.current,
|
|
60174
|
-
label:
|
|
60177
|
+
label: f,
|
|
60175
60178
|
corner_size: h?.length
|
|
60176
60179
|
}, p_.drawDebugCanvas(eE.current, eT.current);
|
|
60177
60180
|
let m = i$ / o.width, g = eS.current.getContext("2d");
|
|
@@ -60183,7 +60186,7 @@
|
|
|
60183
60186
|
o.strokeRect(s, c, l - s, d - c);
|
|
60184
60187
|
}(O[0], "black", I, R), s = M.filter((t)=>"small" === t.lapType), s.length > 0 && s.forEach((t)=>{
|
|
60185
60188
|
iW(t.bboxes, "blue", I, R, r);
|
|
60186
|
-
}),
|
|
60189
|
+
}), p = M.filter((t)=>"large" === t.lapType), p.length > 0 && p.forEach((t)=>{
|
|
60187
60190
|
iW(t.bboxes, "green", I, R, r);
|
|
60188
60191
|
}), L = A.map((t)=>t.location), F = I, N = R, F && (F.strokeStyle = "red", F.lineWidth = 2, L.forEach((t)=>{
|
|
60189
60192
|
let r = t.x * N, o = t.y * N;
|
|
@@ -60192,7 +60195,7 @@
|
|
|
60192
60195
|
}
|
|
60193
60196
|
return T;
|
|
60194
60197
|
}, [
|
|
60195
|
-
|
|
60198
|
+
f,
|
|
60196
60199
|
y,
|
|
60197
60200
|
l,
|
|
60198
60201
|
Z,
|
|
@@ -60201,13 +60204,13 @@
|
|
|
60201
60204
|
s,
|
|
60202
60205
|
eD
|
|
60203
60206
|
]), ej = reactExports.useCallback(async ()=>{
|
|
60204
|
-
if (!
|
|
60207
|
+
if (!f || !I || T.current) return;
|
|
60205
60208
|
M.current = aj(), A.current = aI();
|
|
60206
|
-
let { enableVirtualCamHashes: t } =
|
|
60209
|
+
let { enableVirtualCamHashes: t } = f, { idCardModel: r, ableToUseModel: o } = V.current, n = D.current, i = l.current;
|
|
60207
60210
|
T.current = !0;
|
|
60208
60211
|
let { cropX: a, cropY: s, cropWidth: c, cropHeight: d } = n, u = C.current;
|
|
60209
60212
|
u.width = c, u.height = d;
|
|
60210
|
-
let
|
|
60213
|
+
let p = u.getContext("2d"), h = async ()=>{
|
|
60211
60214
|
if (!1 === T.current) return;
|
|
60212
60215
|
await ei({
|
|
60213
60216
|
videoEl: l.current,
|
|
@@ -60215,11 +60218,11 @@
|
|
|
60215
60218
|
recordVideoSettings: et
|
|
60216
60219
|
});
|
|
60217
60220
|
let n = K.current;
|
|
60218
|
-
|
|
60221
|
+
p.drawImage(i, a, s, c, d, 0, 0, c, d);
|
|
60219
60222
|
let g = performance.now();
|
|
60220
60223
|
if (z.current = !1, q && o) {
|
|
60221
60224
|
let o = await r.predict(u);
|
|
60222
|
-
!
|
|
60225
|
+
!f?.trackCardCoordinates || A.current.imageBlob || M.current.imageBlob || E.current.push(((t)=>{
|
|
60223
60226
|
let r = nn(t, "card.corners");
|
|
60224
60227
|
if (r && Array.isArray(r) && r.length > 0) {
|
|
60225
60228
|
let { x: t, y: o } = nn(r, "[0].location");
|
|
@@ -60248,7 +60251,7 @@
|
|
|
60248
60251
|
};
|
|
60249
60252
|
K.current = window.requestAnimationFrame(h);
|
|
60250
60253
|
}, [
|
|
60251
|
-
|
|
60254
|
+
f,
|
|
60252
60255
|
I,
|
|
60253
60256
|
l,
|
|
60254
60257
|
ei,
|
|
@@ -60301,7 +60304,7 @@
|
|
|
60301
60304
|
refBlurScores: X,
|
|
60302
60305
|
refGlareScores: H,
|
|
60303
60306
|
resetState: ek,
|
|
60304
|
-
resetRecordVideo:
|
|
60307
|
+
resetRecordVideo: ep
|
|
60305
60308
|
};
|
|
60306
60309
|
}({
|
|
60307
60310
|
isAutoCapture: q,
|
|
@@ -60319,17 +60322,17 @@
|
|
|
60319
60322
|
});
|
|
60320
60323
|
reactExports.useContext(aO);
|
|
60321
60324
|
let eh = reactExports.useCallback(()=>{
|
|
60322
|
-
|
|
60325
|
+
ef(), eo(), k();
|
|
60323
60326
|
}, [
|
|
60324
60327
|
eo,
|
|
60325
|
-
|
|
60328
|
+
ef,
|
|
60326
60329
|
k
|
|
60327
60330
|
]), { resumeTimer: em, pauseTimer: eg } = ((t)=>{
|
|
60328
|
-
let { interruptible: r = !0, totalTime: i, maxRetriesSettings: s, onAboutToTimeout: c, onTimeout: l, shouldStart: d, onError: u } = t,
|
|
60331
|
+
let { interruptible: r = !0, totalTime: i, maxRetriesSettings: s, onAboutToTimeout: c, onTimeout: l, shouldStart: d, onError: u } = t, p = reactExports.useRef(new pT({
|
|
60329
60332
|
totalTime: i,
|
|
60330
60333
|
interruptible: r
|
|
60331
60334
|
}));
|
|
60332
|
-
reactExports.useEffect(()=>
|
|
60335
|
+
reactExports.useEffect(()=>p.current.on("tick", ({ remainTime: t })=>{
|
|
60333
60336
|
t >= 0 && t <= i / 3 && "function" == typeof c && c({
|
|
60334
60337
|
curTimeLeft: t
|
|
60335
60338
|
});
|
|
@@ -60338,24 +60341,24 @@
|
|
|
60338
60341
|
c,
|
|
60339
60342
|
i,
|
|
60340
60343
|
r
|
|
60341
|
-
]), reactExports.useEffect(()=>
|
|
60342
|
-
r &&
|
|
60344
|
+
]), reactExports.useEffect(()=>p.current.on("reset", ({ attemptCount: t })=>{
|
|
60345
|
+
r && p.current.pause(), l(), s?.enable && t >= s?.total && u(ra$1.Errors.max_retry_reached);
|
|
60343
60346
|
}), [
|
|
60344
60347
|
l,
|
|
60345
60348
|
u,
|
|
60346
60349
|
s?.enable,
|
|
60347
60350
|
s?.total,
|
|
60348
60351
|
r
|
|
60349
|
-
]), reactExports.useEffect(()=>d ?
|
|
60352
|
+
]), reactExports.useEffect(()=>d ? p.current.start() : ()=>{}, [
|
|
60350
60353
|
d
|
|
60351
60354
|
]);
|
|
60352
|
-
let
|
|
60353
|
-
|
|
60355
|
+
let f = reactExports.useCallback(()=>{
|
|
60356
|
+
p.current.resume();
|
|
60354
60357
|
}, []);
|
|
60355
60358
|
return {
|
|
60356
|
-
resumeTimer:
|
|
60359
|
+
resumeTimer: f,
|
|
60357
60360
|
pauseTimer: reactExports.useCallback(()=>{
|
|
60358
|
-
|
|
60361
|
+
p.current.pause();
|
|
60359
60362
|
}, [])
|
|
60360
60363
|
};
|
|
60361
60364
|
})({
|
|
@@ -60369,24 +60372,24 @@
|
|
|
60369
60372
|
}), eb = reactExports.useCallback(()=>{
|
|
60370
60373
|
x.current = !1;
|
|
60371
60374
|
}, []), ev = reactExports.useCallback(async ()=>{
|
|
60372
|
-
eb(), em(),
|
|
60375
|
+
eb(), em(), ep(), E(!1), U(u ? "keep_front_id_fit_border" : "keep_back_id_fit_border"), await Promise.all([
|
|
60373
60376
|
en()
|
|
60374
60377
|
]);
|
|
60375
60378
|
}, [
|
|
60376
60379
|
eb,
|
|
60377
|
-
|
|
60380
|
+
ep,
|
|
60378
60381
|
U,
|
|
60379
60382
|
u,
|
|
60380
60383
|
en,
|
|
60381
60384
|
em
|
|
60382
60385
|
]), ew = reactExports.useCallback(async (t = {})=>{
|
|
60383
|
-
let r, { imageBlob: o, error: n, detectedCard: i, captureTime: a, captureCount: s, captureDuration: c, captureType: d, hash:
|
|
60386
|
+
let r, { imageBlob: o, error: n, detectedCard: i, captureTime: a, captureCount: s, captureDuration: c, captureType: d, hash: p, blurScore: f, glareScore: h, fullVideo: m, capturingVideo: g } = t;
|
|
60384
60387
|
if (x.current) return;
|
|
60385
60388
|
x.current = !0, E(!0), eo(), eg(), Y(null);
|
|
60386
60389
|
let v = l?.enableVirtualCamHashes, w = l?.enableGlareCheck, k = l?.enableBlurCheck, B = {};
|
|
60387
|
-
if (v && null !==
|
|
60390
|
+
if (v && null !== p) {
|
|
60388
60391
|
let t = [
|
|
60389
|
-
|
|
60392
|
+
p,
|
|
60390
60393
|
...ec.current
|
|
60391
60394
|
];
|
|
60392
60395
|
t.length > 0 && (B = t.reduce((t, r, o)=>(t[`hash${o + 1}`] = r, t), {}));
|
|
@@ -60395,7 +60398,7 @@
|
|
|
60395
60398
|
h7.addExifData("user_action", {
|
|
60396
60399
|
start_id_card: F.current,
|
|
60397
60400
|
end_id_card: Date.now()
|
|
60398
|
-
}), h7.addExifData("id_detection_settings.blur_check.large_threshold", ee), h7.addExifData("id_detection_settings.blur_check.small_threshold", J), h7.addExifData("capture_time", a), h7.addExifData("type", i?.label), v && h7.addExifData("v_cam", B), h7.addExifData("capture_count", s), h7.addExifData("capture_duration", c), h7.addExifData("capture_type", d), _ && h7.addExifData("card_tracking", S), k && (h7.addExifData("model_score.blurry_score",
|
|
60401
|
+
}), h7.addExifData("id_detection_settings.blur_check.large_threshold", ee), h7.addExifData("id_detection_settings.blur_check.small_threshold", J), h7.addExifData("capture_time", a), h7.addExifData("type", i?.label), v && h7.addExifData("v_cam", B), h7.addExifData("capture_count", s), h7.addExifData("capture_duration", c), h7.addExifData("capture_type", d), _ && h7.addExifData("card_tracking", S), k && (h7.addExifData("model_score.blurry_score", f), h7.addExifData("blur_score_frames", JSON.stringify(ed.current))), w && (h7.addExifData("model_score.glare_score", h), h7.addExifData("glare_score_frames", JSON.stringify(eu.current)));
|
|
60399
60402
|
let T = await h7.writeCurrentExif({
|
|
60400
60403
|
imageData: {
|
|
60401
60404
|
blob: o
|
|
@@ -60533,14 +60536,14 @@
|
|
|
60533
60536
|
};
|
|
60534
60537
|
})({
|
|
60535
60538
|
shouldStart: !0,
|
|
60536
|
-
refVideo:
|
|
60539
|
+
refVideo: f,
|
|
60537
60540
|
cropArea: eo,
|
|
60538
60541
|
settings: C,
|
|
60539
|
-
onModelErrorChange:
|
|
60542
|
+
onModelErrorChange: ep,
|
|
60540
60543
|
frontSide: k,
|
|
60541
60544
|
allowedCardTypes: y,
|
|
60542
60545
|
onDebugInfoChange: K,
|
|
60543
|
-
onSessionTimeout:
|
|
60546
|
+
onSessionTimeout: ef,
|
|
60544
60547
|
onCaptureDone: eh,
|
|
60545
60548
|
onAboutToTimeout: reactExports.useCallback(({ curTimeLeft: t })=>{
|
|
60546
60549
|
ee(Y("remaining_time", {
|
|
@@ -60569,9 +60572,9 @@
|
|
|
60569
60572
|
}), { showCaptureButtonInAuto: eS = !0, showHoldStillProgress: eE = !1, showAutoCaptureToggle: eT } = C ?? {};
|
|
60570
60573
|
reactExports.useEffect(()=>{
|
|
60571
60574
|
if (u) {
|
|
60572
|
-
let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX:
|
|
60573
|
-
l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 *
|
|
60574
|
-
x: Math.floor((c - i) / 2) +
|
|
60575
|
+
let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX: p, lostY: f, clientHeight: h } = u;
|
|
60576
|
+
l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 * f - 80 - 100)), n = (t = (s = f + 140) - 70) + 30, o = eT ? s + a + 20 : s + a, r = s + a + 135, en({
|
|
60577
|
+
x: Math.floor((c - i) / 2) + p,
|
|
60575
60578
|
y: s,
|
|
60576
60579
|
width: i,
|
|
60577
60580
|
height: a,
|
|
@@ -61041,8 +61044,8 @@
|
|
|
61041
61044
|
Object.keys(l || {}).forEach(function(t) {
|
|
61042
61045
|
l[t] = i[t] || l[t];
|
|
61043
61046
|
});
|
|
61044
|
-
var a = "attemptBoth" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, s = "onlyInvert" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, d = n.binarize(t, r, o, a), u = d.binarized,
|
|
61045
|
-
return
|
|
61047
|
+
var a = "attemptBoth" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, s = "onlyInvert" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, d = n.binarize(t, r, o, a), u = d.binarized, p = d.inverted, f = c(s ? p : u);
|
|
61048
|
+
return f || "attemptBoth" !== l.inversionAttempts && "invertFirst" !== l.inversionAttempts || (f = c(s ? u : p)), f;
|
|
61046
61049
|
}
|
|
61047
61050
|
d.default = d, r.default = d;
|
|
61048
61051
|
},
|
|
@@ -61063,10 +61066,10 @@
|
|
|
61063
61066
|
r.binarize = function(t, r, o, a) {
|
|
61064
61067
|
if (t.length !== r * o * 4) throw Error("Malformed data passed to binarizer.");
|
|
61065
61068
|
for(var s = new i(r, o), c = 0; c < r; c++)for(var l = 0; l < o; l++){
|
|
61066
|
-
var d = t[(l * r + c) * 4 + 0], u = t[(l * r + c) * 4 + 1],
|
|
61067
|
-
s.set(c, l, .2126 * d + .7152 * u + .0722 *
|
|
61069
|
+
var d = t[(l * r + c) * 4 + 0], u = t[(l * r + c) * 4 + 1], p = t[(l * r + c) * 4 + 2];
|
|
61070
|
+
s.set(c, l, .2126 * d + .7152 * u + .0722 * p);
|
|
61068
61071
|
}
|
|
61069
|
-
for(var
|
|
61072
|
+
for(var f = Math.ceil(r / 8), h = Math.ceil(o / 8), m = new i(f, h), g = 0; g < h; g++)for(var b = 0; b < f; b++){
|
|
61070
61073
|
for(var v = 0, w = 1 / 0, k = 0, l = 0; l < 8; l++)for(var c = 0; c < 8; c++){
|
|
61071
61074
|
var y = s.get(8 * b + c, 8 * g + l);
|
|
61072
61075
|
v += y, w = Math.min(w, y), k = Math.max(k, y);
|
|
@@ -61080,8 +61083,8 @@
|
|
|
61080
61083
|
}
|
|
61081
61084
|
var _ = n.BitMatrix.createEmpty(r, o), x = null;
|
|
61082
61085
|
a && (x = n.BitMatrix.createEmpty(r, o));
|
|
61083
|
-
for(var g = 0; g < h; g++)for(var b = 0; b <
|
|
61084
|
-
for(var P, S, E, T, D = (P = b, S =
|
|
61086
|
+
for(var g = 0; g < h; g++)for(var b = 0; b < f; b++){
|
|
61087
|
+
for(var P, S, E, T, D = (P = b, S = f - 3, P < 2 ? 2 : P > S ? S : P), $ = (E = g, T = h - 3, E < 2 ? 2 : E > T ? T : E), v = 0, j = -2; j <= 2; j++)for(var I = -2; I <= 2; I++)v += m.get(D + j, $ + I);
|
|
61085
61088
|
for(var O = v / 25, j = 0; j < 8; j++)for(var I = 0; I < 8; I++){
|
|
61086
61089
|
var c = 8 * b + j, l = 8 * g + I, M = s.get(c, l);
|
|
61087
61090
|
_.set(c, l, M <= O), a && x.set(c, l, !(M <= O));
|
|
@@ -61362,16 +61365,16 @@
|
|
|
61362
61365
|
for(var l = 0, d = 5; d >= 0; d--)for(var u = i - 9; u >= i - 11; u--){
|
|
61363
61366
|
r = t.get(u, d), l = l << 1 | r;
|
|
61364
61367
|
}
|
|
61365
|
-
for(var
|
|
61366
|
-
o = t.get(u, d),
|
|
61368
|
+
for(var p = 0, u = 5; u >= 0; u--)for(var d = i - 9; d >= i - 11; d--){
|
|
61369
|
+
o = t.get(u, d), p = p << 1 | o;
|
|
61367
61370
|
}
|
|
61368
|
-
for(var
|
|
61371
|
+
for(var f = 1 / 0, h = 0, m = s.VERSIONS; h < m.length; h++){
|
|
61369
61372
|
var g = m[h];
|
|
61370
|
-
if (g.infoBits === l || g.infoBits ===
|
|
61373
|
+
if (g.infoBits === l || g.infoBits === p) return g;
|
|
61371
61374
|
var b = c(l, g.infoBits);
|
|
61372
|
-
b <
|
|
61375
|
+
b < f && (n = g, f = b), (b = c(p, g.infoBits)) < f && (n = g, f = b);
|
|
61373
61376
|
}
|
|
61374
|
-
if (
|
|
61377
|
+
if (f <= 3) return n;
|
|
61375
61378
|
}(t);
|
|
61376
61379
|
if (!r) return null;
|
|
61377
61380
|
var o = function(t) {
|
|
@@ -61381,19 +61384,19 @@
|
|
|
61381
61384
|
for(var d = 7; d >= 0; d--){
|
|
61382
61385
|
6 !== d && (o = t.get(8, d), a = a << 1 | o);
|
|
61383
61386
|
}
|
|
61384
|
-
for(var u = t.height,
|
|
61385
|
-
n = t.get(8, d),
|
|
61387
|
+
for(var u = t.height, p = 0, d = u - 1; d >= u - 7; d--){
|
|
61388
|
+
n = t.get(8, d), p = p << 1 | n;
|
|
61386
61389
|
}
|
|
61387
61390
|
for(var s = u - 8; s < u; s++){
|
|
61388
|
-
i = t.get(s, 8),
|
|
61391
|
+
i = t.get(s, 8), p = p << 1 | i;
|
|
61389
61392
|
}
|
|
61390
|
-
for(var
|
|
61393
|
+
for(var f = 1 / 0, h = null, m = 0; m < l.length; m++){
|
|
61391
61394
|
var g = l[m], b = g.bits, v = g.formatInfo;
|
|
61392
|
-
if (b === a || b ===
|
|
61395
|
+
if (b === a || b === p) return v;
|
|
61393
61396
|
var w = c(a, b);
|
|
61394
|
-
w <
|
|
61397
|
+
w < f && (h = v, f = w), a !== p && (w = c(p, b)) < f && (h = v, f = w);
|
|
61395
61398
|
}
|
|
61396
|
-
return
|
|
61399
|
+
return f <= 3 ? h : null;
|
|
61397
61400
|
}(t);
|
|
61398
61401
|
if (!o) return null;
|
|
61399
61402
|
var u = function(t, r, o) {
|
|
@@ -61410,10 +61413,10 @@
|
|
|
61410
61413
|
d.codewords.push(t.shift());
|
|
61411
61414
|
}
|
|
61412
61415
|
if (n.ecBlocks.length > 1) {
|
|
61413
|
-
for(var u = n.ecBlocks[0].numBlocks,
|
|
61416
|
+
for(var u = n.ecBlocks[0].numBlocks, p = n.ecBlocks[1].numBlocks, c = 0; c < p; c++)i[u + c].codewords.push(t.shift());
|
|
61414
61417
|
}
|
|
61415
|
-
for(; t.length > 0;)for(var
|
|
61416
|
-
var d = i[
|
|
61418
|
+
for(; t.length > 0;)for(var f = 0; f < i.length; f++){
|
|
61419
|
+
var d = i[f];
|
|
61417
61420
|
d.codewords.push(t.shift());
|
|
61418
61421
|
}
|
|
61419
61422
|
return i;
|
|
@@ -61428,11 +61431,11 @@
|
|
|
61428
61431
|
}
|
|
61429
61432
|
}
|
|
61430
61433
|
return o.setRegion(6, 9, 1, r - 17, !0), o.setRegion(9, 6, r - 17, 1, !0), t.versionNumber > 6 && (o.setRegion(r - 11, 0, 3, 6, !0), o.setRegion(0, r - 11, 6, 3, !0)), o;
|
|
61431
|
-
}(r), c = [], l = 0, u = 0,
|
|
61432
|
-
6 ===
|
|
61434
|
+
}(r), c = [], l = 0, u = 0, p = !0, f = a - 1; f > 0; f -= 2){
|
|
61435
|
+
6 === f && f--;
|
|
61433
61436
|
for(var h = 0; h < a; h++){
|
|
61434
|
-
for(var m =
|
|
61435
|
-
var b =
|
|
61437
|
+
for(var m = p ? a - 1 - h : h, g = 0; g < 2; g++){
|
|
61438
|
+
var b = f - g;
|
|
61436
61439
|
if (!s.get(b, m)) {
|
|
61437
61440
|
u++;
|
|
61438
61441
|
var v = t.get(b, m);
|
|
@@ -61443,20 +61446,20 @@
|
|
|
61443
61446
|
}
|
|
61444
61447
|
}
|
|
61445
61448
|
}
|
|
61446
|
-
|
|
61449
|
+
p = !p;
|
|
61447
61450
|
}
|
|
61448
61451
|
return c;
|
|
61449
61452
|
}(t, r, o), r, o.errorCorrectionLevel);
|
|
61450
61453
|
if (!u) return null;
|
|
61451
|
-
for(var
|
|
61454
|
+
for(var p = new Uint8ClampedArray(u.reduce(function(t, r) {
|
|
61452
61455
|
return t + r.numDataCodewords;
|
|
61453
|
-
}, 0)),
|
|
61456
|
+
}, 0)), f = 0, h = 0; h < u.length; h++){
|
|
61454
61457
|
var m = u[h], g = a.decode(m.codewords, m.codewords.length - m.numDataCodewords);
|
|
61455
61458
|
if (!g) return null;
|
|
61456
|
-
for(var b = 0; b < m.numDataCodewords; b++)f
|
|
61459
|
+
for(var b = 0; b < m.numDataCodewords; b++)p[f++] = g[b];
|
|
61457
61460
|
}
|
|
61458
61461
|
try {
|
|
61459
|
-
return i.decode(
|
|
61462
|
+
return i.decode(p, r.versionNumber);
|
|
61460
61463
|
} catch (t) {
|
|
61461
61464
|
return null;
|
|
61462
61465
|
}
|
|
@@ -61523,23 +61526,23 @@
|
|
|
61523
61526
|
":"
|
|
61524
61527
|
];
|
|
61525
61528
|
r.decode = function(t, r) {
|
|
61526
|
-
for(var o, n, i, u,
|
|
61529
|
+
for(var o, n, i, u, p = new c.BitStream(t), f = r <= 9 ? 0 : r <= 26 ? 1 : 2, h = {
|
|
61527
61530
|
text: "",
|
|
61528
61531
|
bytes: [],
|
|
61529
61532
|
chunks: [],
|
|
61530
61533
|
version: r
|
|
61531
|
-
};
|
|
61532
|
-
var m =
|
|
61534
|
+
}; p.available() >= 4;){
|
|
61535
|
+
var m = p.readBits(4);
|
|
61533
61536
|
if (m === s.Terminator) return h;
|
|
61534
|
-
if (m === s.ECI) 0 ===
|
|
61537
|
+
if (m === s.ECI) 0 === p.readBits(1) ? h.chunks.push({
|
|
61535
61538
|
type: a.ECI,
|
|
61536
|
-
assignmentNumber:
|
|
61537
|
-
}) : 0 ===
|
|
61539
|
+
assignmentNumber: p.readBits(7)
|
|
61540
|
+
}) : 0 === p.readBits(1) ? h.chunks.push({
|
|
61538
61541
|
type: a.ECI,
|
|
61539
|
-
assignmentNumber:
|
|
61540
|
-
}) : 0 ===
|
|
61542
|
+
assignmentNumber: p.readBits(14)
|
|
61543
|
+
}) : 0 === p.readBits(1) ? h.chunks.push({
|
|
61541
61544
|
type: a.ECI,
|
|
61542
|
-
assignmentNumber:
|
|
61545
|
+
assignmentNumber: p.readBits(21)
|
|
61543
61546
|
}) : h.chunks.push({
|
|
61544
61547
|
type: a.ECI,
|
|
61545
61548
|
assignmentNumber: -1
|
|
@@ -61570,7 +61573,7 @@
|
|
|
61570
61573
|
bytes: o,
|
|
61571
61574
|
text: n
|
|
61572
61575
|
};
|
|
61573
|
-
}(
|
|
61576
|
+
}(p, f);
|
|
61574
61577
|
h.text += g.text, (o = h.bytes).push.apply(o, g.bytes), h.chunks.push({
|
|
61575
61578
|
type: a.Numeric,
|
|
61576
61579
|
text: g.text
|
|
@@ -61593,7 +61596,7 @@
|
|
|
61593
61596
|
bytes: o,
|
|
61594
61597
|
text: n
|
|
61595
61598
|
};
|
|
61596
|
-
}(
|
|
61599
|
+
}(p, f);
|
|
61597
61600
|
h.text += b.text, (n = h.bytes).push.apply(n, b.bytes), h.chunks.push({
|
|
61598
61601
|
type: a.Alphanumeric,
|
|
61599
61602
|
text: b.text
|
|
@@ -61617,7 +61620,7 @@
|
|
|
61617
61620
|
bytes: o,
|
|
61618
61621
|
text: n
|
|
61619
61622
|
};
|
|
61620
|
-
}(
|
|
61623
|
+
}(p, f);
|
|
61621
61624
|
h.text += v.text, (i = h.bytes).push.apply(i, v.bytes), h.chunks.push({
|
|
61622
61625
|
type: a.Byte,
|
|
61623
61626
|
bytes: v.bytes,
|
|
@@ -61637,7 +61640,7 @@
|
|
|
61637
61640
|
bytes: o,
|
|
61638
61641
|
text: n
|
|
61639
61642
|
};
|
|
61640
|
-
}(
|
|
61643
|
+
}(p, f);
|
|
61641
61644
|
h.text += w.text, (u = h.bytes).push.apply(u, w.bytes), h.chunks.push({
|
|
61642
61645
|
type: a.Kanji,
|
|
61643
61646
|
bytes: w.bytes,
|
|
@@ -61645,7 +61648,7 @@
|
|
|
61645
61648
|
});
|
|
61646
61649
|
}
|
|
61647
61650
|
}
|
|
61648
|
-
if (0 ===
|
|
61651
|
+
if (0 === p.available() || 0 === p.readBits(p.available())) return h;
|
|
61649
61652
|
};
|
|
61650
61653
|
},
|
|
61651
61654
|
function(t, r, o) {
|
|
@@ -68731,7 +68734,7 @@
|
|
|
68731
68734
|
c[c.length - 1 - d] = u, 0 !== u && (l = !0);
|
|
68732
68735
|
}
|
|
68733
68736
|
if (!l) return o;
|
|
68734
|
-
var
|
|
68737
|
+
var p = new i.default(a, c), f = function(t, r, o, n) {
|
|
68735
68738
|
r.degree() < o.degree() && (r = (i = [
|
|
68736
68739
|
o,
|
|
68737
68740
|
r
|
|
@@ -68740,11 +68743,11 @@
|
|
|
68740
68743
|
var d = a, u = c;
|
|
68741
68744
|
if (a = s, c = l, a.isZero()) return null;
|
|
68742
68745
|
s = d;
|
|
68743
|
-
for(var
|
|
68746
|
+
for(var p = t.zero, f = a.getCoefficient(a.degree()), h = t.inverse(f); s.degree() >= a.degree() && !s.isZero();){
|
|
68744
68747
|
var m = s.degree() - a.degree(), g = t.multiply(s.getCoefficient(s.degree()), h);
|
|
68745
|
-
|
|
68748
|
+
p = p.addOrSubtract(t.buildMonomial(m, g)), s = s.addOrSubtract(a.multiplyByMonomial(m, g));
|
|
68746
68749
|
}
|
|
68747
|
-
if (l =
|
|
68750
|
+
if (l = p.multiplyPoly(c).addOrSubtract(u), s.degree() >= a.degree()) return null;
|
|
68748
68751
|
}
|
|
68749
68752
|
var b = l.getCoefficient(0);
|
|
68750
68753
|
if (0 === b) return null;
|
|
@@ -68753,8 +68756,8 @@
|
|
|
68753
68756
|
l.multiply(v),
|
|
68754
68757
|
s.multiply(v)
|
|
68755
68758
|
];
|
|
68756
|
-
}(a, a.buildMonomial(r, 1),
|
|
68757
|
-
if (null ===
|
|
68759
|
+
}(a, a.buildMonomial(r, 1), p, r);
|
|
68760
|
+
if (null === f) return null;
|
|
68758
68761
|
var h = function(t, r) {
|
|
68759
68762
|
var o = r.degree();
|
|
68760
68763
|
if (1 === o) return [
|
|
@@ -68762,7 +68765,7 @@
|
|
|
68762
68765
|
];
|
|
68763
68766
|
for(var n = Array(o), i = 0, a = 1; a < t.size && i < o; a++)0 === r.evaluateAt(a) && (n[i] = t.inverse(a), i++);
|
|
68764
68767
|
return i !== o ? null : n;
|
|
68765
|
-
}(a,
|
|
68768
|
+
}(a, f[0]);
|
|
68766
68769
|
if (null == h) return null;
|
|
68767
68770
|
for(var m = function(t, r, o) {
|
|
68768
68771
|
for(var i = o.length, a = Array(i), s = 0; s < i; s++){
|
|
@@ -68770,7 +68773,7 @@
|
|
|
68770
68773
|
a[s] = t.multiply(r.evaluateAt(c), t.inverse(l)), 0 !== t.generatorBase && (a[s] = t.multiply(a[s], c));
|
|
68771
68774
|
}
|
|
68772
68775
|
return a;
|
|
68773
|
-
}(a,
|
|
68776
|
+
}(a, f[1], h), g = 0; g < h.length; g++){
|
|
68774
68777
|
var b = o.length - 1 - a.log(h[g]);
|
|
68775
68778
|
if (b < 0) return null;
|
|
68776
68779
|
o[b] = n.addOrSubtractGF(o[b], m[g]);
|
|
@@ -71251,14 +71254,14 @@
|
|
|
71251
71254
|
a32: t.y,
|
|
71252
71255
|
a33: 1
|
|
71253
71256
|
};
|
|
71254
|
-
var s = r.x - o.x, c = n.x - o.x, l = r.y - o.y, d = n.y - o.y, u = s * d - c * l,
|
|
71257
|
+
var s = r.x - o.x, c = n.x - o.x, l = r.y - o.y, d = n.y - o.y, u = s * d - c * l, p = (i * d - c * a) / u, f = (s * a - i * l) / u;
|
|
71255
71258
|
return {
|
|
71256
|
-
a11: r.x - t.x +
|
|
71257
|
-
a12: r.y - t.y +
|
|
71258
|
-
a13:
|
|
71259
|
-
a21: n.x - t.x +
|
|
71260
|
-
a22: n.y - t.y +
|
|
71261
|
-
a23:
|
|
71259
|
+
a11: r.x - t.x + p * r.x,
|
|
71260
|
+
a12: r.y - t.y + p * r.y,
|
|
71261
|
+
a13: p,
|
|
71262
|
+
a21: n.x - t.x + f * n.x,
|
|
71263
|
+
a22: n.y - t.y + f * n.y,
|
|
71264
|
+
a23: f,
|
|
71262
71265
|
a31: t.x,
|
|
71263
71266
|
a32: t.y,
|
|
71264
71267
|
a33: 1
|
|
@@ -71287,7 +71290,7 @@
|
|
|
71287
71290
|
a31: c.a21 * c.a32 - c.a22 * c.a31,
|
|
71288
71291
|
a32: c.a12 * c.a31 - c.a11 * c.a32,
|
|
71289
71292
|
a33: c.a11 * c.a22 - c.a12 * c.a21
|
|
71290
|
-
}),
|
|
71293
|
+
}), p = (l = i(r.topLeft, r.topRight, r.alignmentPattern, r.bottomLeft), d = u, {
|
|
71291
71294
|
a11: l.a11 * d.a11 + l.a21 * d.a12 + l.a31 * d.a13,
|
|
71292
71295
|
a12: l.a12 * d.a11 + l.a22 * d.a12 + l.a32 * d.a13,
|
|
71293
71296
|
a13: l.a13 * d.a11 + l.a23 * d.a12 + l.a33 * d.a13,
|
|
@@ -71297,18 +71300,18 @@
|
|
|
71297
71300
|
a31: l.a11 * d.a31 + l.a21 * d.a32 + l.a31 * d.a33,
|
|
71298
71301
|
a32: l.a12 * d.a31 + l.a22 * d.a32 + l.a32 * d.a33,
|
|
71299
71302
|
a33: l.a13 * d.a31 + l.a23 * d.a32 + l.a33 * d.a33
|
|
71300
|
-
}),
|
|
71301
|
-
var o =
|
|
71303
|
+
}), f = n.BitMatrix.createEmpty(r.dimension, r.dimension), h = function(t, r) {
|
|
71304
|
+
var o = p.a13 * t + p.a23 * r + p.a33;
|
|
71302
71305
|
return {
|
|
71303
|
-
x: (
|
|
71304
|
-
y: (
|
|
71306
|
+
x: (p.a11 * t + p.a21 * r + p.a31) / o,
|
|
71307
|
+
y: (p.a12 * t + p.a22 * r + p.a32) / o
|
|
71305
71308
|
};
|
|
71306
71309
|
}, m = 0; m < r.dimension; m++)for(var g = 0; g < r.dimension; g++){
|
|
71307
71310
|
var b = h(g + .5, m + .5);
|
|
71308
|
-
|
|
71311
|
+
f.set(g, m, t.get(Math.floor(b.x), Math.floor(b.y)));
|
|
71309
71312
|
}
|
|
71310
71313
|
return {
|
|
71311
|
-
matrix:
|
|
71314
|
+
matrix: f,
|
|
71312
71315
|
mappingFunction: h
|
|
71313
71316
|
};
|
|
71314
71317
|
};
|
|
@@ -71333,15 +71336,15 @@
|
|
|
71333
71336
|
}
|
|
71334
71337
|
], u = Math.abs(r.y - t.y) > Math.abs(r.x - t.x);
|
|
71335
71338
|
u ? (a = Math.floor(t.y), s = Math.floor(t.x), c = Math.floor(r.y), l = Math.floor(r.x)) : (a = Math.floor(t.x), s = Math.floor(t.y), c = Math.floor(r.x), l = Math.floor(r.y));
|
|
71336
|
-
for(var
|
|
71339
|
+
for(var p = Math.abs(c - a), f = Math.abs(l - s), h = Math.floor(-p / 2), m = a < c ? 1 : -1, g = s < l ? 1 : -1, b = !0, v = a, w = s; v !== c + m; v += m){
|
|
71337
71340
|
var k = u ? w : v, y = u ? v : w;
|
|
71338
71341
|
if (o.get(k, y) !== b && (b = !b, d.push({
|
|
71339
71342
|
x: k,
|
|
71340
71343
|
y: y
|
|
71341
71344
|
}), d.length === i + 1)) break;
|
|
71342
|
-
if ((h +=
|
|
71345
|
+
if ((h += f) > 0) {
|
|
71343
71346
|
if (w === l) break;
|
|
71344
|
-
w += g, h -=
|
|
71347
|
+
w += g, h -= p;
|
|
71345
71348
|
}
|
|
71346
71349
|
}
|
|
71347
71350
|
for(var C = [], B = 0; B < i; B++)d[B] && d[B + 1] ? C.push(n(d[B], d[B + 1])) : C.push(0);
|
|
@@ -71377,7 +71380,7 @@
|
|
|
71377
71380
|
}, l = s(t, a, o, r.length), d = {
|
|
71378
71381
|
x: Math.min(o.width, t.x + t.y) + 1,
|
|
71379
71382
|
y: Math.min(o.height, t.y + t.x) + 1
|
|
71380
|
-
}, u = s(t, d, o, r.length),
|
|
71383
|
+
}, u = s(t, d, o, r.length), p = c(n, r), f = c(i, r), h = c(l, r), m = c(u, r), g = Math.sqrt(p.error * p.error + f.error * f.error + h.error * h.error + m.error * m.error), b = (p.averageSize + f.averageSize + h.averageSize + m.averageSize) / 4, v = (Math.pow(p.averageSize - b, 2) + Math.pow(f.averageSize - b, 2) + Math.pow(h.averageSize - b, 2) + Math.pow(m.averageSize - b, 2)) / b;
|
|
71381
71384
|
return g + v;
|
|
71382
71385
|
} catch (t) {
|
|
71383
71386
|
return 1 / 0;
|
|
@@ -71410,16 +71413,16 @@
|
|
|
71410
71413
|
dimension: l,
|
|
71411
71414
|
moduleSize: c
|
|
71412
71415
|
};
|
|
71413
|
-
}(a, o, c, t)).dimension,
|
|
71416
|
+
}(a, o, c, t)).dimension, p = d.moduleSize;
|
|
71414
71417
|
} catch (t) {
|
|
71415
71418
|
return null;
|
|
71416
71419
|
}
|
|
71417
|
-
var d, u,
|
|
71420
|
+
var d, u, p, f = {
|
|
71418
71421
|
x: o.x - a.x + c.x,
|
|
71419
71422
|
y: o.y - a.y + c.y
|
|
71420
|
-
}, h = (n(a, c) + n(a, o)) / 2 /
|
|
71421
|
-
x: a.x + m * (
|
|
71422
|
-
y: a.y + m * (
|
|
71423
|
+
}, h = (n(a, c) + n(a, o)) / 2 / p, m = 1 - 3 / h, g = {
|
|
71424
|
+
x: a.x + m * (f.x - a.x),
|
|
71425
|
+
y: a.y + m * (f.y - a.y)
|
|
71423
71426
|
}, b = r.map(function(r) {
|
|
71424
71427
|
var o = (r.top.startX + r.top.endX + r.bottom.startX + r.bottom.endX) / 4, a = (r.top.y + r.bottom.y + 1) / 2;
|
|
71425
71428
|
if (t.get(Math.floor(o), Math.floor(a))) {
|
|
@@ -71457,7 +71460,7 @@
|
|
|
71457
71460
|
};
|
|
71458
71461
|
}
|
|
71459
71462
|
r.locate = function(t) {
|
|
71460
|
-
for(var r, o, a, s, c,
|
|
71463
|
+
for(var r, o, a, s, c, p, f, h, m, g, b, v, w, k = [], y = [], C = [], B = [], _ = function(r) {
|
|
71461
71464
|
for(var o = 0, n = !1, a = [
|
|
71462
71465
|
0,
|
|
71463
71466
|
0,
|
|
@@ -71475,21 +71478,21 @@
|
|
|
71475
71478
|
a[4],
|
|
71476
71479
|
o
|
|
71477
71480
|
], o = 1, n = c;
|
|
71478
|
-
var l = i(a) / 7, d = Math.abs(a[0] - l) < l && Math.abs(a[1] - l) < l && Math.abs(a[2] - 3 * l) < 3 * l && Math.abs(a[3] - l) < l && Math.abs(a[4] - l) < l && !c, u = i(a.slice(-3)) / 3,
|
|
71481
|
+
var l = i(a) / 7, d = Math.abs(a[0] - l) < l && Math.abs(a[1] - l) < l && Math.abs(a[2] - 3 * l) < 3 * l && Math.abs(a[3] - l) < l && Math.abs(a[4] - l) < l && !c, u = i(a.slice(-3)) / 3, p = Math.abs(a[2] - u) < u && Math.abs(a[3] - u) < u && Math.abs(a[4] - u) < u && c;
|
|
71479
71482
|
if (d) {
|
|
71480
|
-
var
|
|
71483
|
+
var f = s - a[3] - a[4], h = f - a[2], m = {
|
|
71481
71484
|
startX: h,
|
|
71482
|
-
endX:
|
|
71485
|
+
endX: f,
|
|
71483
71486
|
y: r
|
|
71484
71487
|
}, g = y.filter(function(t) {
|
|
71485
|
-
return h >= t.bottom.startX && h <= t.bottom.endX ||
|
|
71488
|
+
return h >= t.bottom.startX && h <= t.bottom.endX || f >= t.bottom.startX && h <= t.bottom.endX || h <= t.bottom.startX && f >= t.bottom.endX && a[2] / (t.bottom.endX - t.bottom.startX) < 1.5 && a[2] / (t.bottom.endX - t.bottom.startX) > .5;
|
|
71486
71489
|
});
|
|
71487
71490
|
g.length > 0 ? g[0].bottom = m : y.push({
|
|
71488
71491
|
top: m,
|
|
71489
71492
|
bottom: m
|
|
71490
71493
|
});
|
|
71491
71494
|
}
|
|
71492
|
-
if (
|
|
71495
|
+
if (p) {
|
|
71493
71496
|
var b = s - a[4], v = b - a[3], m = {
|
|
71494
71497
|
startX: v,
|
|
71495
71498
|
y: r,
|
|
@@ -71583,14 +71586,14 @@
|
|
|
71583
71586
|
r,
|
|
71584
71587
|
o,
|
|
71585
71588
|
a
|
|
71586
|
-
])[0], m = c[1], g = c[2]) : (h = (
|
|
71589
|
+
])[0], m = c[1], g = c[2]) : (h = (p = [
|
|
71587
71590
|
r,
|
|
71588
71591
|
a,
|
|
71589
71592
|
o
|
|
71590
|
-
])[0], m =
|
|
71593
|
+
])[0], m = p[1], g = p[2]), (g.x - m.x) * (h.y - m.y) - (g.y - m.y) * (h.x - m.x) < 0 && (h = (f = [
|
|
71591
71594
|
g,
|
|
71592
71595
|
h
|
|
71593
|
-
])[0], g =
|
|
71596
|
+
])[0], g = f[1]), {
|
|
71594
71597
|
bottomLeft: h,
|
|
71595
71598
|
topLeft: m,
|
|
71596
71599
|
topRight: g
|
|
@@ -71804,10 +71807,10 @@
|
|
|
71804
71807
|
}
|
|
71805
71808
|
];
|
|
71806
71809
|
function sV() {
|
|
71807
|
-
if (rh) return
|
|
71810
|
+
if (rh) return rf;
|
|
71808
71811
|
rh = 1;
|
|
71809
71812
|
var t = o9();
|
|
71810
|
-
return
|
|
71813
|
+
return rf = function() {
|
|
71811
71814
|
try {
|
|
71812
71815
|
var r = t(Object, "defineProperty");
|
|
71813
71816
|
return r({}, "", {}), r;
|
|
@@ -71954,14 +71957,14 @@
|
|
|
71954
71957
|
return n;
|
|
71955
71958
|
}), r = sH(), o = oK(), n = sY(), i = s5(), a = s3(), s = Object.prototype.hasOwnProperty;
|
|
71956
71959
|
return od = function(c, l) {
|
|
71957
|
-
var d = o(c), u = !d && r(c),
|
|
71958
|
-
for(var b in c)(l || s.call(c, b)) && !(h && ("length" == b ||
|
|
71960
|
+
var d = o(c), u = !d && r(c), p = !d && !u && n(c), f = !d && !u && !p && a(c), h = d || u || p || f, m = h ? t(c.length, String) : [], g = m.length;
|
|
71961
|
+
for(var b in c)(l || s.call(c, b)) && !(h && ("length" == b || p && ("offset" == b || "parent" == b) || f && ("buffer" == b || "byteLength" == b || "byteOffset" == b) || i(b, g))) && m.push(b);
|
|
71959
71962
|
return m;
|
|
71960
71963
|
};
|
|
71961
71964
|
}(), r = function() {
|
|
71962
71965
|
if (om) return oh;
|
|
71963
71966
|
om = 1;
|
|
71964
|
-
var t = o1(), r = sX(), o =
|
|
71967
|
+
var t = o1(), r = sX(), o = of ? op : (of = 1, op = function(t) {
|
|
71965
71968
|
var r = [];
|
|
71966
71969
|
if (null != t) for(var o in Object(t))r.push(o);
|
|
71967
71970
|
return r;
|
|
@@ -71989,8 +71992,8 @@
|
|
|
71989
71992
|
if (oB) return oC;
|
|
71990
71993
|
oB = 1;
|
|
71991
71994
|
var t = function() {
|
|
71992
|
-
if (
|
|
71993
|
-
|
|
71995
|
+
if (rp) return ru;
|
|
71996
|
+
rp = 1;
|
|
71994
71997
|
var t = ne(), r = function() {
|
|
71995
71998
|
if (rr) return rt;
|
|
71996
71999
|
rr = 1;
|
|
@@ -72094,7 +72097,7 @@
|
|
|
72094
72097
|
return rZ = function(o) {
|
|
72095
72098
|
return r(o) && t(o);
|
|
72096
72099
|
};
|
|
72097
|
-
}(), l = sY(), d = o8(), u = o1(),
|
|
72100
|
+
}(), l = sY(), d = o8(), u = o1(), p = function() {
|
|
72098
72101
|
if (r5) return r2;
|
|
72099
72102
|
r5 = 1;
|
|
72100
72103
|
var t = o2(), r = sQ(), o = o5(), n = Object.prototype, i = Function.prototype.toString, a = n.hasOwnProperty, s = i.call(Object);
|
|
@@ -72105,7 +72108,7 @@
|
|
|
72105
72108
|
var l = a.call(c, "constructor") && c.constructor;
|
|
72106
72109
|
return "function" == typeof l && l instanceof l && i.call(l) == s;
|
|
72107
72110
|
};
|
|
72108
|
-
}(),
|
|
72111
|
+
}(), f = s3(), h = s2(), m = function() {
|
|
72109
72112
|
if (ow) return ov;
|
|
72110
72113
|
ow = 1;
|
|
72111
72114
|
var t = function() {
|
|
@@ -72139,17 +72142,17 @@
|
|
|
72139
72142
|
if (x) return void t(g, v, x);
|
|
72140
72143
|
var P = y ? y(B, _, v + "", g, b, C) : void 0, S = void 0 === P;
|
|
72141
72144
|
if (S) {
|
|
72142
|
-
var E = s(_), T = !E && l(_), D = !E && !T &&
|
|
72143
|
-
P = _, E || T || D ? s(B) ? P = B : c(B) ? P = n(B) : T ? (S = !1, P = r(_, !0)) : D ? (S = !1, P = o(_, !0)) : P = [] :
|
|
72145
|
+
var E = s(_), T = !E && l(_), D = !E && !T && f(_);
|
|
72146
|
+
P = _, E || T || D ? s(B) ? P = B : c(B) ? P = n(B) : T ? (S = !1, P = r(_, !0)) : D ? (S = !1, P = o(_, !0)) : P = [] : p(_) || a(_) ? (P = B, a(B) ? P = m(B) : (!u(B) || d(B)) && (P = i(_))) : S = !1;
|
|
72144
72147
|
}
|
|
72145
72148
|
S && (C.set(_, P), k(P, _, w, y, C), C.delete(_)), t(g, v, P);
|
|
72146
72149
|
};
|
|
72147
72150
|
}(), i = o1(), a = s0(), s = s2();
|
|
72148
|
-
return oC = function c(l, d, u,
|
|
72151
|
+
return oC = function c(l, d, u, p, f) {
|
|
72149
72152
|
l !== d && o(d, function(o, a) {
|
|
72150
|
-
if (
|
|
72153
|
+
if (f || (f = new t), i(o)) n(l, d, a, u, c, p, f);
|
|
72151
72154
|
else {
|
|
72152
|
-
var h =
|
|
72155
|
+
var h = p ? p(s(l, a), o, a + "", l, d, f) : void 0;
|
|
72153
72156
|
void 0 === h && (h = o), r(l, a, h);
|
|
72154
72157
|
}
|
|
72155
72158
|
}, a);
|
|
@@ -89123,7 +89126,7 @@
|
|
|
89123
89126
|
});
|
|
89124
89127
|
};
|
|
89125
89128
|
|
|
89126
|
-
const CloseIconComponent = (props)=>{
|
|
89129
|
+
const CloseIconComponent$1 = (props)=>{
|
|
89127
89130
|
return(// eslint-disable-next-line react/jsx-props-no-spreading
|
|
89128
89131
|
/*#__PURE__*/ jsxRuntimeExports.jsxs("svg", {
|
|
89129
89132
|
width: "24",
|
|
@@ -89159,7 +89162,7 @@
|
|
|
89159
89162
|
]
|
|
89160
89163
|
}));
|
|
89161
89164
|
};
|
|
89162
|
-
const CloseIcon = dt$1(CloseIconComponent)`
|
|
89165
|
+
const CloseIcon$1 = dt$1(CloseIconComponent$1)`
|
|
89163
89166
|
z-index: ${BASE_Z_INDEX + 10};
|
|
89164
89167
|
cursor: pointer;
|
|
89165
89168
|
position: fixed;
|
|
@@ -89260,7 +89263,7 @@
|
|
|
89260
89263
|
`;
|
|
89261
89264
|
}}
|
|
89262
89265
|
`;
|
|
89263
|
-
dt$1(CloseIcon)`
|
|
89266
|
+
dt$1(CloseIcon$1)`
|
|
89264
89267
|
z-index: 1001;
|
|
89265
89268
|
cursor: pointer;
|
|
89266
89269
|
position: fixed;
|
|
@@ -90658,6 +90661,7 @@
|
|
|
90658
90661
|
const DefaultFlashLivenessBody = FlashLivenessBody$1;
|
|
90659
90662
|
const DefaultFlashLivenessOverlay = FlashLivenessOverlay$1;
|
|
90660
90663
|
const DefaultFlashLivenessError = FlashLivenessError$1;
|
|
90664
|
+
const DefaultFlashLivenessCloseIcon = CloseIcon$1;
|
|
90661
90665
|
function FlashLivenessImpl(props) {
|
|
90662
90666
|
const { onReset, onFlashDone: onFlashDoneCallback, frontCamera, styledComponent, onFramesCaptured, customComponent, extraConfig, onImageCaptured } = props;
|
|
90663
90667
|
const { onCloseCallback, onErrorCallback } = useSDKCallback();
|
|
@@ -90665,6 +90669,7 @@
|
|
|
90665
90669
|
const FlashLivenessBodyComponent = customComponent?.FlashLivenessBody ?? DefaultFlashLivenessBody;
|
|
90666
90670
|
const FlashLivenessOverlayComponent = customComponent?.FlashLivenessOverlay ?? DefaultFlashLivenessOverlay;
|
|
90667
90671
|
const FlashLivenessErrorComponent = customComponent?.FlashLivenessError ?? DefaultFlashLivenessError;
|
|
90672
|
+
const FlashLivenessCloseIconComponent = customComponent?.FlashLivenessCloseIcon ?? DefaultFlashLivenessCloseIcon;
|
|
90668
90673
|
const { maskSettings, flashSettings, faceSettings, livenessSettings, captureFrameSettings, imageSettings, timeoutSettings, blurCheckFarSettings, blurCheckCloseSettings, exifSettings, autoGenFrameIds } = flashLivenessSettings;
|
|
90669
90674
|
if (maskSettings.smallScale > maskSettings.largeScale) {
|
|
90670
90675
|
throw new Error('smallScale must be smaller than largeScale');
|
|
@@ -91391,7 +91396,7 @@
|
|
|
91391
91396
|
ref: videoRef,
|
|
91392
91397
|
onError: onErrorCallback,
|
|
91393
91398
|
videoSettings: videoSettings$5,
|
|
91394
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(
|
|
91399
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(FlashLivenessCloseIconComponent, {}),
|
|
91395
91400
|
children: /*#__PURE__*/ jsxRuntimeExports.jsxs(WarmUpOverlay, {
|
|
91396
91401
|
overlay: !warmupDone || !isPlaying,
|
|
91397
91402
|
loadingComponent: Loading,
|
|
@@ -92136,7 +92141,7 @@
|
|
|
92136
92141
|
onError: onErrorCallback,
|
|
92137
92142
|
scale: cameraScale,
|
|
92138
92143
|
defaultCameraId: defaultCameraId,
|
|
92139
|
-
closeButton: CloseCameraButton || /*#__PURE__*/ jsxRuntimeExports.jsx(CloseIcon, {}),
|
|
92144
|
+
closeButton: CloseCameraButton || /*#__PURE__*/ jsxRuntimeExports.jsx(CloseIcon$1, {}),
|
|
92140
92145
|
children: [
|
|
92141
92146
|
!warmupDone && /*#__PURE__*/ jsxRuntimeExports.jsx(WarmupPopup, {}),
|
|
92142
92147
|
videoPlayed ? /*#__PURE__*/ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
@@ -92673,12 +92678,14 @@
|
|
|
92673
92678
|
};
|
|
92674
92679
|
const DefaultPassiveLivenessBody = PassiveLivenessBody$1;
|
|
92675
92680
|
const DefaultPassiveLivenessError = PassiveLivenessError;
|
|
92681
|
+
const DefaultPassiveLivenessCloseIcon = CloseIcon$1;
|
|
92676
92682
|
function PassiveLivenessUI(props) {
|
|
92677
92683
|
const { onReset, onDone: onDoneCallback, frontCamera, styledComponent, onFramesCaptured, customComponent, extraConfig } = props;
|
|
92678
92684
|
const { onErrorCallback, onCloseCallback } = useSDKCallback();
|
|
92679
92685
|
const passiveLivenessSettings = usePassiveLivenessV2Settings();
|
|
92680
92686
|
const PassiveLivenessBodyComponent = customComponent?.PassiveLivenessBody ?? DefaultPassiveLivenessBody;
|
|
92681
92687
|
const PassiveLivenessErrorComponent = customComponent?.PassiveLivenessError ?? DefaultPassiveLivenessError;
|
|
92688
|
+
const PassiveLivenessCloseIconComponent = customComponent?.PassiveLivenessCloseIcon ?? DefaultPassiveLivenessCloseIcon;
|
|
92682
92689
|
const { maskSettings, faceSettings, captureFrameSettings, exifSettings, imageSettings, timeoutSettings, blurCheckFarSettings, outputImageSettings, autoGenFrameIds } = passiveLivenessSettings;
|
|
92683
92690
|
const farFaceTimeRef = reactExports.useRef();
|
|
92684
92691
|
const logEvent = useEventLogging();
|
|
@@ -93164,7 +93171,7 @@
|
|
|
93164
93171
|
ref: videoRef,
|
|
93165
93172
|
onError: onErrorCallback,
|
|
93166
93173
|
videoSettings: videoSettings$3,
|
|
93167
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(
|
|
93174
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(PassiveLivenessCloseIconComponent, {}),
|
|
93168
93175
|
children: /*#__PURE__*/ jsxRuntimeExports.jsxs(WarmUpOverlay, {
|
|
93169
93176
|
overlay: !warmupDone || !isPlaying,
|
|
93170
93177
|
loadingComponent: Loading,
|
|
@@ -93685,7 +93692,7 @@
|
|
|
93685
93692
|
onError: onErrorCallback,
|
|
93686
93693
|
scale: cameraScale,
|
|
93687
93694
|
defaultCameraId: defaultCameraId,
|
|
93688
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(CloseIcon, {}),
|
|
93695
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(CloseIcon$1, {}),
|
|
93689
93696
|
children: [
|
|
93690
93697
|
!warmupDone && /*#__PURE__*/ jsxRuntimeExports.jsx(WarmupPopup, {}),
|
|
93691
93698
|
videoPlayed ? /*#__PURE__*/ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
@@ -94824,7 +94831,7 @@
|
|
|
94824
94831
|
DEFAULT: 'default',
|
|
94825
94832
|
ERROR: 'error'
|
|
94826
94833
|
};
|
|
94827
|
-
function RectangleMask({ className, width, height, type, strokeStyles, strokeWidth, radius, paddingStyle, defaultRectStyles, errorRectStyles }) {
|
|
94834
|
+
function RectangleMask({ className, width, height, type, strokeStyles, strokeWidth, radius, paddingStyle, defaultRectStyles, errorRectStyles, paddingCornerMultiplier = 1.5 }) {
|
|
94828
94835
|
const styleMapping = reactExports.useMemo(()=>{
|
|
94829
94836
|
return {
|
|
94830
94837
|
[Type.DEFAULT]: defaultRectStyles,
|
|
@@ -94836,7 +94843,7 @@
|
|
|
94836
94843
|
errorRectStyles,
|
|
94837
94844
|
strokeStyles
|
|
94838
94845
|
]);
|
|
94839
|
-
const paddingCornerSize = radius + strokeWidth *
|
|
94846
|
+
const paddingCornerSize = radius + strokeWidth * paddingCornerMultiplier;
|
|
94840
94847
|
const rectStyle = styleMapping[type];
|
|
94841
94848
|
return /*#__PURE__*/ jsxRuntimeExports.jsxs("svg", {
|
|
94842
94849
|
width: width,
|
|
@@ -94884,7 +94891,8 @@
|
|
|
94884
94891
|
radius: PropTypes.number,
|
|
94885
94892
|
paddingStyle: PropTypes.shape({}),
|
|
94886
94893
|
defaultRectStyles: PropTypes.shape({}),
|
|
94887
|
-
errorRectStyles: PropTypes.shape({})
|
|
94894
|
+
errorRectStyles: PropTypes.shape({}),
|
|
94895
|
+
paddingCornerMultiplier: PropTypes.number
|
|
94888
94896
|
};
|
|
94889
94897
|
RectangleMask.defaultProps = {
|
|
94890
94898
|
className: '',
|
|
@@ -94896,7 +94904,8 @@
|
|
|
94896
94904
|
radius: defaultIDThemeV2$1.IDCapturing.rectangleMask.radius,
|
|
94897
94905
|
paddingStyle: defaultIDThemeV2$1.IDCapturing.rectangleMask.paddingStyle,
|
|
94898
94906
|
defaultRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.default,
|
|
94899
|
-
errorRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.error
|
|
94907
|
+
errorRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.error,
|
|
94908
|
+
paddingCornerMultiplier: 1.5
|
|
94900
94909
|
};
|
|
94901
94910
|
|
|
94902
94911
|
const StyledRectangleMask$1 = dt$1(RectangleMask)``;
|
|
@@ -113299,6 +113308,17 @@
|
|
|
113299
113308
|
});
|
|
113300
113309
|
};
|
|
113301
113310
|
};
|
|
113311
|
+
const withLocale = (Component)=>{
|
|
113312
|
+
return function WrappedComponent(props) {
|
|
113313
|
+
const { customTexts } = props;
|
|
113314
|
+
return /*#__PURE__*/ jsxRuntimeExports.jsx(SDKLocaleProvider, {
|
|
113315
|
+
customTexts: customTexts,
|
|
113316
|
+
children: /*#__PURE__*/ jsxRuntimeExports.jsx(Component, {
|
|
113317
|
+
...props
|
|
113318
|
+
})
|
|
113319
|
+
});
|
|
113320
|
+
};
|
|
113321
|
+
};
|
|
113302
113322
|
// eslint-disable-next-line react/require-default-props
|
|
113303
113323
|
function FaceAuthenticationContainer(props) {
|
|
113304
113324
|
const { apiCheck, mode, authType, authMethod, apiCredentials, onDone: onDoneFromProp, onError: onErrorFromProp, onClose: onCloseFromProp, onReset, captureFrameSettings, onFramesCaptured, clientSettings: clientSettingsFromProp, outputEncryptionSettings, logCredentials, flowId, serviceSettings, cameraScale, offsetFaceY, frontalMinSize, customTheme, livenessDetectionComponent: LivenessDetectionComponent, customComponent, customTexts, extraConfig } = props;
|
|
@@ -113550,7 +113570,7 @@
|
|
|
113550
113570
|
onFramesCaptured: ()=>{},
|
|
113551
113571
|
customTexts: {}
|
|
113552
113572
|
};
|
|
113553
|
-
var FaceAuthenticationContainer$1 = withClientSettings(FaceAuthenticationContainer);
|
|
113573
|
+
var FaceAuthenticationContainer$1 = withClientSettings(withLocale(FaceAuthenticationContainer));
|
|
113554
113574
|
|
|
113555
113575
|
// eslint-disable-next-line react/require-default-props
|
|
113556
113576
|
function FaceAuthentication(props) {
|
|
@@ -113583,6 +113603,8 @@
|
|
|
113583
113603
|
FlashLivenessOverlay: FlashLivenessOverlay$1,
|
|
113584
113604
|
FlashLivenessLoading,
|
|
113585
113605
|
FlashLivenessError: FlashLivenessError$1,
|
|
113606
|
+
FlashLivenessCloseIcon: CloseIcon$1,
|
|
113607
|
+
PassiveLivenessCloseIcon: CloseIcon$1,
|
|
113586
113608
|
PassiveLivenessBody: PassiveLivenessBody$1,
|
|
113587
113609
|
PassiveLivenessError
|
|
113588
113610
|
}
|
|
@@ -115034,9 +115056,16 @@
|
|
|
115034
115056
|
position: absolute;
|
|
115035
115057
|
top: ${(props)=>props.y};
|
|
115036
115058
|
z-index: ${BASE_Z_INDEX + 20};
|
|
115037
|
-
|
|
115038
|
-
|
|
115039
|
-
|
|
115059
|
+
|
|
115060
|
+
@media (max-width: 480px) {
|
|
115061
|
+
width: 80%;
|
|
115062
|
+
}
|
|
115063
|
+
|
|
115064
|
+
@media (min-width: 481px) {
|
|
115065
|
+
left: 50%;
|
|
115066
|
+
transform: translateX(-50%);
|
|
115067
|
+
width: fit-content;
|
|
115068
|
+
}
|
|
115040
115069
|
`;
|
|
115041
115070
|
const ErrorMessageText = dt$1(Text)`
|
|
115042
115071
|
text-align: center;
|
|
@@ -115287,7 +115316,8 @@
|
|
|
115287
115316
|
errorColor: dangerColor,
|
|
115288
115317
|
width: cropArea.width,
|
|
115289
115318
|
height: cropArea.height,
|
|
115290
|
-
type: errorMessage ? Type.ERROR : Type.DEFAULT
|
|
115319
|
+
type: errorMessage ? Type.ERROR : Type.DEFAULT,
|
|
115320
|
+
paddingCornerMultiplier: 0.8
|
|
115291
115321
|
})
|
|
115292
115322
|
}),
|
|
115293
115323
|
errorMessage && /*#__PURE__*/ jsxRuntimeExports.jsx(ErrorMessage, {
|
|
@@ -115494,7 +115524,7 @@
|
|
|
115494
115524
|
path: 'M299 150.325C299 232.242 292.613 439 150.5 439C5.18661 439 2 232.242 2 150.325C2 68.4073 68.4857 2 150.5 2C232.514 2 299 68.4073 299 150.325Z',
|
|
115495
115525
|
strokeColor: '#007AFF',
|
|
115496
115526
|
strokeColorError: '#FF3B30',
|
|
115497
|
-
strokeWidth:
|
|
115527
|
+
strokeWidth: 3
|
|
115498
115528
|
},
|
|
115499
115529
|
errorOverlay: {
|
|
115500
115530
|
backgroundColor: 'transparent'
|
|
@@ -116170,7 +116200,41 @@
|
|
|
116170
116200
|
});
|
|
116171
116201
|
};
|
|
116172
116202
|
|
|
116173
|
-
const
|
|
116203
|
+
const CloseIconComponent = (props)=>{
|
|
116204
|
+
return /*#__PURE__*/ jsxRuntimeExports.jsx("svg", {
|
|
116205
|
+
style: {
|
|
116206
|
+
top: 12,
|
|
116207
|
+
left: 12,
|
|
116208
|
+
width: 28,
|
|
116209
|
+
height: 28,
|
|
116210
|
+
position: 'fixed',
|
|
116211
|
+
cursor: 'pointer',
|
|
116212
|
+
display: 'block'
|
|
116213
|
+
},
|
|
116214
|
+
width: "24",
|
|
116215
|
+
height: "24",
|
|
116216
|
+
viewBox: "0 0 24 24",
|
|
116217
|
+
fill: "none",
|
|
116218
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
116219
|
+
...props,
|
|
116220
|
+
children: /*#__PURE__*/ jsxRuntimeExports.jsx("path", {
|
|
116221
|
+
d: "M19.7273 10.7249C20.154 10.7249 20.5 11.0718 20.5 11.4998C20.5 11.9278 20.154 12.2748 19.7273 12.2748L6.14405 12.2748L11.0512 17.1759C11.3536 17.4779 11.3546 17.9686 11.0535 18.2719C10.7524 18.5752 10.2631 18.5762 9.96071 18.2742L3.72746 12.0486C3.58184 11.9032 3.49999 11.7056 3.5 11.4995C3.50001 11.2933 3.58188 11.0957 3.7275 10.9503L9.96076 4.7258C10.2632 4.42381 10.7524 4.42487 11.0535 4.72816C11.3547 5.03146 11.3536 5.52214 11.0512 5.82413L6.14357 10.7249L19.7273 10.7249Z",
|
|
116222
|
+
fill: "black"
|
|
116223
|
+
})
|
|
116224
|
+
});
|
|
116225
|
+
};
|
|
116226
|
+
const CloseIcon = dt$1(CloseIconComponent)`
|
|
116227
|
+
z-index: 1010;
|
|
116228
|
+
cursor: pointer;
|
|
116229
|
+
position: fixed;
|
|
116230
|
+
top: ${f0.getTheme('closeButton.top')};
|
|
116231
|
+
right: ${f0.getTheme('closeButton.right')};
|
|
116232
|
+
left: ${f0.getTheme('closeButton.left')};
|
|
116233
|
+
bottom: ${f0.getTheme('closeButton.bottom')};
|
|
116234
|
+
display: ${f0.getTheme('closeButton.display')};
|
|
116235
|
+
`;
|
|
116236
|
+
|
|
116237
|
+
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.tcli/0.0.0-beta.20251217-142321/assets";
|
|
116174
116238
|
class TVWebSDK extends gU {
|
|
116175
116239
|
constructor(props){
|
|
116176
116240
|
super({
|
|
@@ -116187,6 +116251,8 @@
|
|
|
116187
116251
|
FlashLivenessBody,
|
|
116188
116252
|
FlashLivenessOverlay,
|
|
116189
116253
|
FlashLivenessLoading: Loading,
|
|
116254
|
+
FlashLivenessCloseIcon: CloseIcon,
|
|
116255
|
+
PassiveLivenessCloseIcon: CloseIcon,
|
|
116190
116256
|
PassiveLivenessBody,
|
|
116191
116257
|
FlashLivenessError,
|
|
116192
116258
|
PassiveLivenessError: FlashLivenessError
|