@regulaforensics/vp-frontend-document-components 9.2.2695-nightly → 9.3.2697-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.iife.js +12 -12
- package/dist/main.js +360 -352
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -13,7 +13,7 @@ var uf = (e, t, r) => t in e ? Dv(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
13
13
|
Tv.call(t, r) && uf(e, r, t[r]);
|
|
14
14
|
return e;
|
|
15
15
|
}, Ia = (e, t) => Rv(e, gv(t));
|
|
16
|
-
var
|
|
16
|
+
var ae = (e, t, r) => new Promise((n, a) => {
|
|
17
17
|
var i = (l) => {
|
|
18
18
|
try {
|
|
19
19
|
c(r.next(l));
|
|
@@ -1080,7 +1080,7 @@ function tI() {
|
|
|
1080
1080
|
return function() {
|
|
1081
1081
|
return new T(this);
|
|
1082
1082
|
};
|
|
1083
|
-
}, x = y + " Iterator", $ = !1, ee = R.prototype, G = ee[I] || ee["@@iterator"] || b && ee[b], j = !C && G || M(b), Z = y === "Array" && ee.entries || G, W, re,
|
|
1083
|
+
}, x = y + " Iterator", $ = !1, ee = R.prototype, G = ee[I] || ee["@@iterator"] || b && ee[b], j = !C && G || M(b), Z = y === "Array" && ee.entries || G, W, re, ue;
|
|
1084
1084
|
if (Z && (W = o(Z.call(new R())), W !== Object.prototype && W.next && (!r && o(W) !== m && (c ? c(W, m) : a(W[I]) || u(W, I, g)), l(W, x, !0, !0), r && (_[x] = g))), h && b === S && G && G.name !== S && (!r && p ? s(ee, "name", S) : ($ = !0, j = function() {
|
|
1085
1085
|
return t(G, this);
|
|
1086
1086
|
})), b)
|
|
@@ -1088,8 +1088,8 @@ function tI() {
|
|
|
1088
1088
|
values: M(S),
|
|
1089
1089
|
keys: N ? j : M(E),
|
|
1090
1090
|
entries: M(v)
|
|
1091
|
-
}, V) for (
|
|
1092
|
-
(C || $ || !(
|
|
1091
|
+
}, V) for (ue in re)
|
|
1092
|
+
(C || $ || !(ue in ee)) && u(ee, ue, re[ue]);
|
|
1093
1093
|
else e({ target: y, proto: !0, forced: C || $ }, re);
|
|
1094
1094
|
return (!r || V) && ee[I] !== j && u(ee, I, j, { name: b }), _[y] = j, re;
|
|
1095
1095
|
}, us;
|
|
@@ -1841,38 +1841,38 @@ function lD() {
|
|
|
1841
1841
|
}), $ = i(function() {
|
|
1842
1842
|
return I("\uDF06\uD834") !== '"\\udf06\\ud834"' || I("\uDEAD") !== '"\\udead"';
|
|
1843
1843
|
}), ee = x ? function(Z, W) {
|
|
1844
|
-
var re = _(arguments),
|
|
1845
|
-
if (!(!c(
|
|
1844
|
+
var re = _(arguments), ue = j(W);
|
|
1845
|
+
if (!(!c(ue) && (Z === void 0 || s(Z))))
|
|
1846
1846
|
return re[1] = function(J, q) {
|
|
1847
|
-
if (c(
|
|
1847
|
+
if (c(ue) && (q = n(ue, this, C(J), q)), !s(q)) return q;
|
|
1848
1848
|
}, r(I, null, re);
|
|
1849
1849
|
} : I, G = function(Z, W, re) {
|
|
1850
|
-
var
|
|
1851
|
-
return E(b, Z) && !E(N, J) || E(N, Z) && !E(b,
|
|
1850
|
+
var ue = S(re, W - 1), J = S(re, W + 1);
|
|
1851
|
+
return E(b, Z) && !E(N, J) || E(N, Z) && !E(b, ue) ? "\\u" + T(v(Z, 0), 16) : Z;
|
|
1852
1852
|
}, j = function(Z) {
|
|
1853
1853
|
if (c(Z)) return Z;
|
|
1854
1854
|
if (o(Z)) {
|
|
1855
|
-
for (var W = Z.length, re = [],
|
|
1856
|
-
var J = Z[
|
|
1855
|
+
for (var W = Z.length, re = [], ue = 0; ue < W; ue++) {
|
|
1856
|
+
var J = Z[ue];
|
|
1857
1857
|
typeof J == "string" ? y(re, J) : (typeof J == "number" || u(J) === "Number" || u(J) === "String") && y(re, d(J));
|
|
1858
1858
|
}
|
|
1859
1859
|
var q = re.length, ie = !0;
|
|
1860
|
-
return function(te,
|
|
1860
|
+
return function(te, fe) {
|
|
1861
1861
|
if (ie)
|
|
1862
|
-
return ie = !1,
|
|
1863
|
-
if (o(this)) return
|
|
1864
|
-
for (var de = 0; de < q; de++) if (re[de] === te) return
|
|
1862
|
+
return ie = !1, fe;
|
|
1863
|
+
if (o(this)) return fe;
|
|
1864
|
+
for (var de = 0; de < q; de++) if (re[de] === te) return fe;
|
|
1865
1865
|
};
|
|
1866
1866
|
}
|
|
1867
1867
|
};
|
|
1868
1868
|
return I && e({ target: "JSON", stat: !0, arity: 3, forced: x || $ || !m }, {
|
|
1869
|
-
stringify: function(W, re,
|
|
1869
|
+
stringify: function(W, re, ue) {
|
|
1870
1870
|
var J = j(re), q = [], ie = ee(W, function(je, rt) {
|
|
1871
1871
|
var ze = c(J) ? n(J, this, C(je), rt) : rt;
|
|
1872
1872
|
return !m && l(ze) ? V + (y(q, ze.rawJSON) - 1) : ze;
|
|
1873
|
-
},
|
|
1873
|
+
}, ue);
|
|
1874
1874
|
if (typeof ie != "string" || ($ && (ie = g(ie, O, G)), m)) return ie;
|
|
1875
|
-
for (var te = "",
|
|
1875
|
+
for (var te = "", fe = ie.length, de = 0; de < fe; de++) {
|
|
1876
1876
|
var Se = S(ie, de);
|
|
1877
1877
|
if (Se === '"') {
|
|
1878
1878
|
var Ne = f(ie, ++de).end - 1, ge = R(ie, de, Ne);
|
|
@@ -2260,7 +2260,7 @@ var nc, X5;
|
|
|
2260
2260
|
function h1() {
|
|
2261
2261
|
if (X5) return nc;
|
|
2262
2262
|
X5 = 1;
|
|
2263
|
-
var e = qe(), t = We(), r = ht(), n = d1(), a = so(), i = Er(), o = nn(), c = n1(), l = Ke(), s = Ya(), u = Br(), d = la(), _ = _1(), f = CD(), h = SD(), p = Wa(), m = fa(), C = SI(), I = _o(), E = t1(), S = Ju(), v = ua(), g = Nr(), R = a.PROPER, y = a.CONFIGURABLE, T = "ArrayBuffer", O = "DataView", b = "prototype", N = "Wrong length", V = "Wrong index", M = g.getterFor(T), x = g.getterFor(O), $ = g.set, ee = e[T], G = ee, j = G && G[b], Z = e[O], W = Z && Z[b], re = Object.prototype,
|
|
2263
|
+
var e = qe(), t = We(), r = ht(), n = d1(), a = so(), i = Er(), o = nn(), c = n1(), l = Ke(), s = Ya(), u = Br(), d = la(), _ = _1(), f = CD(), h = SD(), p = Wa(), m = fa(), C = SI(), I = _o(), E = t1(), S = Ju(), v = ua(), g = Nr(), R = a.PROPER, y = a.CONFIGURABLE, T = "ArrayBuffer", O = "DataView", b = "prototype", N = "Wrong length", V = "Wrong index", M = g.getterFor(T), x = g.getterFor(O), $ = g.set, ee = e[T], G = ee, j = G && G[b], Z = e[O], W = Z && Z[b], re = Object.prototype, ue = e.Array, J = e.RangeError, q = t(C), ie = t([].reverse), te = h.pack, fe = h.unpack, de = function(K) {
|
|
2264
2264
|
return [K & 255];
|
|
2265
2265
|
}, Se = function(K) {
|
|
2266
2266
|
return [K & 255, K >> 8 & 255];
|
|
@@ -2287,7 +2287,7 @@ function h1() {
|
|
|
2287
2287
|
}, Le = function(K, ne, pe, Be, we, Ae) {
|
|
2288
2288
|
var xe = x(K), Qe = _(pe), nt = Be(+we), Ye = !!Ae;
|
|
2289
2289
|
if (Qe + ne > xe.byteLength) throw new J(V);
|
|
2290
|
-
for (var De = xe.bytes, ve = Qe + xe.byteOffset,
|
|
2290
|
+
for (var De = xe.bytes, ve = Qe + xe.byteOffset, oe = 0; oe < ne; oe++) De[ve + oe] = nt[Ye ? oe : ne - oe - 1];
|
|
2291
2291
|
};
|
|
2292
2292
|
if (!n)
|
|
2293
2293
|
G = function(ne) {
|
|
@@ -2295,7 +2295,7 @@ function h1() {
|
|
|
2295
2295
|
var pe = _(ne);
|
|
2296
2296
|
$(this, {
|
|
2297
2297
|
type: T,
|
|
2298
|
-
bytes: q(
|
|
2298
|
+
bytes: q(ue(pe), 0),
|
|
2299
2299
|
byteLength: pe
|
|
2300
2300
|
}), r || (this.byteLength = pe, this.detached = !1);
|
|
2301
2301
|
}, j = G[b], Z = function(ne, pe, Be) {
|
|
@@ -2332,10 +2332,10 @@ function h1() {
|
|
|
2332
2332
|
return ge(Xe(this, 4, ne, arguments.length > 1 ? arguments[1] : !1)) >>> 0;
|
|
2333
2333
|
},
|
|
2334
2334
|
getFloat32: function(ne) {
|
|
2335
|
-
return
|
|
2335
|
+
return fe(Xe(this, 4, ne, arguments.length > 1 ? arguments[1] : !1), 23);
|
|
2336
2336
|
},
|
|
2337
2337
|
getFloat64: function(ne) {
|
|
2338
|
-
return
|
|
2338
|
+
return fe(Xe(this, 8, ne, arguments.length > 1 ? arguments[1] : !1), 52);
|
|
2339
2339
|
},
|
|
2340
2340
|
setInt8: function(ne, pe) {
|
|
2341
2341
|
Le(this, 1, ne, de, pe);
|
|
@@ -2648,57 +2648,57 @@ function Cr() {
|
|
|
2648
2648
|
if (!a(de)) return !1;
|
|
2649
2649
|
var Se = o(de);
|
|
2650
2650
|
return Se === "DataView" || i(j, Se) || i(Z, Se);
|
|
2651
|
-
}, re = function(
|
|
2652
|
-
var de = _(
|
|
2651
|
+
}, re = function(fe) {
|
|
2652
|
+
var de = _(fe);
|
|
2653
2653
|
if (a(de)) {
|
|
2654
2654
|
var Se = I(de);
|
|
2655
2655
|
return Se && i(Se, V) ? Se[V] : re(de);
|
|
2656
2656
|
}
|
|
2657
|
-
},
|
|
2658
|
-
if (!a(
|
|
2659
|
-
var de = o(
|
|
2657
|
+
}, ue = function(fe) {
|
|
2658
|
+
if (!a(fe)) return !1;
|
|
2659
|
+
var de = o(fe);
|
|
2660
2660
|
return i(j, de) || i(Z, de);
|
|
2661
|
-
}, J = function(
|
|
2662
|
-
if (fe
|
|
2661
|
+
}, J = function(fe) {
|
|
2662
|
+
if (ue(fe)) return fe;
|
|
2663
2663
|
throw new O("Target is not a typed array");
|
|
2664
|
-
}, q = function(
|
|
2665
|
-
if (n(
|
|
2666
|
-
throw new O(c(
|
|
2667
|
-
}, ie = function(
|
|
2664
|
+
}, q = function(fe) {
|
|
2665
|
+
if (n(fe) && (!f || d(R, fe))) return fe;
|
|
2666
|
+
throw new O(c(fe) + " is not a typed array constructor");
|
|
2667
|
+
}, ie = function(fe, de, Se, Ne) {
|
|
2668
2668
|
if (t) {
|
|
2669
2669
|
if (Se) for (var ge in j) {
|
|
2670
2670
|
var je = r[ge];
|
|
2671
|
-
if (je && i(je.prototype,
|
|
2672
|
-
delete je.prototype[
|
|
2671
|
+
if (je && i(je.prototype, fe)) try {
|
|
2672
|
+
delete je.prototype[fe];
|
|
2673
2673
|
} catch (rt) {
|
|
2674
2674
|
try {
|
|
2675
|
-
je.prototype[
|
|
2675
|
+
je.prototype[fe] = de;
|
|
2676
2676
|
} catch (ze) {
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
}
|
|
2680
|
-
(!y[
|
|
2680
|
+
(!y[fe] || Se) && s(y, fe, Se ? de : M && S[fe] || de, Ne);
|
|
2681
2681
|
}
|
|
2682
|
-
}, te = function(
|
|
2682
|
+
}, te = function(fe, de, Se) {
|
|
2683
2683
|
var Ne, ge;
|
|
2684
2684
|
if (t) {
|
|
2685
2685
|
if (f) {
|
|
2686
2686
|
if (Se) {
|
|
2687
2687
|
for (Ne in j)
|
|
2688
|
-
if (ge = r[Ne], ge && i(ge,
|
|
2689
|
-
delete ge[
|
|
2688
|
+
if (ge = r[Ne], ge && i(ge, fe)) try {
|
|
2689
|
+
delete ge[fe];
|
|
2690
2690
|
} catch (je) {
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
|
-
if (!R[
|
|
2693
|
+
if (!R[fe] || Se)
|
|
2694
2694
|
try {
|
|
2695
|
-
return s(R,
|
|
2695
|
+
return s(R, fe, Se ? de : M && R[fe] || de);
|
|
2696
2696
|
} catch (je) {
|
|
2697
2697
|
}
|
|
2698
2698
|
else return;
|
|
2699
2699
|
}
|
|
2700
2700
|
for (Ne in j)
|
|
2701
|
-
ge = r[Ne], ge && (!ge[
|
|
2701
|
+
ge = r[Ne], ge && (!ge[fe] || Se) && s(ge, fe, de);
|
|
2702
2702
|
}
|
|
2703
2703
|
};
|
|
2704
2704
|
for ($ in j)
|
|
@@ -2731,7 +2731,7 @@ function Cr() {
|
|
|
2731
2731
|
exportTypedArrayStaticMethod: te,
|
|
2732
2732
|
getTypedArrayConstructor: re,
|
|
2733
2733
|
isView: W,
|
|
2734
|
-
isTypedArray:
|
|
2734
|
+
isTypedArray: ue,
|
|
2735
2735
|
TypedArray: R,
|
|
2736
2736
|
TypedArrayPrototype: y
|
|
2737
2737
|
}, pc;
|
|
@@ -2963,7 +2963,7 @@ var w_;
|
|
|
2963
2963
|
function BD() {
|
|
2964
2964
|
if (w_) return Si.exports;
|
|
2965
2965
|
w_ = 1;
|
|
2966
|
-
var e = pt(), t = qe(), r = ot(), n = ht(), a = LD(), i = Cr(), o = h1(), c = Ya(), l = Mn(), s = Er(), u = MD(), d = la(), _ = _1(), f = OI(), h = wD(), p = Ku(), m = xt(), C = mn(), I = Bt(), E = io(), S = Ln(), v = Nn(), g = fa(), R = Q7().f, y = VD(), T = UD().forEach, O = vI(), b = nn(), N = br(), V = Qu(), M = bI(), x = Nr(), $ = t1(), ee = x.get, G = x.set, j = x.enforce, Z = N.f, W = V.f, re = t.RangeError,
|
|
2966
|
+
var e = pt(), t = qe(), r = ot(), n = ht(), a = LD(), i = Cr(), o = h1(), c = Ya(), l = Mn(), s = Er(), u = MD(), d = la(), _ = _1(), f = OI(), h = wD(), p = Ku(), m = xt(), C = mn(), I = Bt(), E = io(), S = Ln(), v = Nn(), g = fa(), R = Q7().f, y = VD(), T = UD().forEach, O = vI(), b = nn(), N = br(), V = Qu(), M = bI(), x = Nr(), $ = t1(), ee = x.get, G = x.set, j = x.enforce, Z = N.f, W = V.f, re = t.RangeError, ue = o.ArrayBuffer, J = ue.prototype, q = o.DataView, ie = i.NATIVE_ARRAY_BUFFER_VIEWS, te = i.TYPED_ARRAY_TAG, fe = i.TypedArray, de = i.TypedArrayPrototype, Se = i.isTypedArray, Ne = "BYTES_PER_ELEMENT", ge = "Wrong length", je = function($e, Ie) {
|
|
2967
2967
|
b($e, Ie, {
|
|
2968
2968
|
configurable: !0,
|
|
2969
2969
|
get: function() {
|
|
@@ -2984,14 +2984,14 @@ function BD() {
|
|
|
2984
2984
|
getOwnPropertyDescriptor: Xe,
|
|
2985
2985
|
defineProperty: Le
|
|
2986
2986
|
}), Si.exports = function($e, Ie, Ue) {
|
|
2987
|
-
var K = $e.match(/\d+/)[0] / 8, ne = $e + (Ue ? "Clamped" : "") + "Array", pe = "get" + $e, Be = "set" + $e, we = t[ne], Ae = we, xe = Ae && Ae.prototype, Qe = {}, nt = function(
|
|
2988
|
-
var et = ee(
|
|
2987
|
+
var K = $e.match(/\d+/)[0] / 8, ne = $e + (Ue ? "Clamped" : "") + "Array", pe = "get" + $e, Be = "set" + $e, we = t[ne], Ae = we, xe = Ae && Ae.prototype, Qe = {}, nt = function(oe, Ce) {
|
|
2988
|
+
var et = ee(oe);
|
|
2989
2989
|
return et.view[pe](Ce * K + et.byteOffset, !0);
|
|
2990
|
-
}, Ye = function(
|
|
2991
|
-
var tt = ee(
|
|
2990
|
+
}, Ye = function(oe, Ce, et) {
|
|
2991
|
+
var tt = ee(oe);
|
|
2992
2992
|
tt.view[Be](Ce * K + tt.byteOffset, Ue ? h(et) : et, !0);
|
|
2993
|
-
}, De = function(
|
|
2994
|
-
Z(
|
|
2993
|
+
}, De = function(oe, Ce) {
|
|
2994
|
+
Z(oe, Ce, {
|
|
2995
2995
|
get: function() {
|
|
2996
2996
|
return nt(this, Ce);
|
|
2997
2997
|
},
|
|
@@ -3001,19 +3001,19 @@ function BD() {
|
|
|
3001
3001
|
enumerable: !0
|
|
3002
3002
|
});
|
|
3003
3003
|
};
|
|
3004
|
-
ie ? a && (Ae = Ie(function(
|
|
3005
|
-
return c(
|
|
3004
|
+
ie ? a && (Ae = Ie(function(oe, Ce, et, tt) {
|
|
3005
|
+
return c(oe, xe), $((function() {
|
|
3006
3006
|
return I(Ce) ? rt(Ce) ? tt !== void 0 ? new we(Ce, f(et, K), tt) : et !== void 0 ? new we(Ce, f(et, K)) : new we(Ce) : Se(Ce) ? M(Ae, Ce) : r(y, Ae, Ce) : new we(_(Ce));
|
|
3007
|
-
})(),
|
|
3008
|
-
}), g && g(Ae,
|
|
3009
|
-
|
|
3010
|
-
}), Ae.prototype = xe) : (Ae = Ie(function(
|
|
3011
|
-
c(
|
|
3012
|
-
var Me = 0, U = 0,
|
|
3007
|
+
})(), oe, Ae);
|
|
3008
|
+
}), g && g(Ae, fe), T(R(we), function(oe) {
|
|
3009
|
+
oe in Ae || s(Ae, oe, we[oe]);
|
|
3010
|
+
}), Ae.prototype = xe) : (Ae = Ie(function(oe, Ce, et, tt) {
|
|
3011
|
+
c(oe, xe);
|
|
3012
|
+
var Me = 0, U = 0, se, ce, me;
|
|
3013
3013
|
if (!I(Ce))
|
|
3014
|
-
me = _(Ce), ce = me * K,
|
|
3014
|
+
me = _(Ce), ce = me * K, se = new ue(ce);
|
|
3015
3015
|
else if (rt(Ce)) {
|
|
3016
|
-
|
|
3016
|
+
se = Ce, U = f(et, K);
|
|
3017
3017
|
var Te = Ce.byteLength;
|
|
3018
3018
|
if (tt === void 0) {
|
|
3019
3019
|
if (Te % K) throw new re(ge);
|
|
@@ -3021,14 +3021,14 @@ function BD() {
|
|
|
3021
3021
|
} else if (ce = d(tt) * K, ce + U > Te) throw new re(ge);
|
|
3022
3022
|
me = ce / K;
|
|
3023
3023
|
} else return Se(Ce) ? M(Ae, Ce) : r(y, Ae, Ce);
|
|
3024
|
-
for (G(
|
|
3025
|
-
buffer:
|
|
3024
|
+
for (G(oe, {
|
|
3025
|
+
buffer: se,
|
|
3026
3026
|
byteOffset: U,
|
|
3027
3027
|
byteLength: ce,
|
|
3028
3028
|
length: me,
|
|
3029
|
-
view: new q(
|
|
3030
|
-
}); Me < me; ) De(
|
|
3031
|
-
}), g && g(Ae,
|
|
3029
|
+
view: new q(se)
|
|
3030
|
+
}); Me < me; ) De(oe, Me++);
|
|
3031
|
+
}), g && g(Ae, fe), xe = Ae.prototype = S(de)), xe.constructor !== Ae && s(xe, "constructor", Ae), j(xe).TypedArrayConstructor = Ae, te && s(xe, te, ne);
|
|
3032
3032
|
var ve = Ae !== we;
|
|
3033
3033
|
Qe[ne] = Ae, e({ global: !0, constructor: !0, forced: ve, sham: !ie }, Qe), Ne in Ae || s(Ae, Ne, K), Ne in xe || s(xe, Ne, K), O(ne);
|
|
3034
3034
|
}) : Si.exports = function() {
|
|
@@ -3619,9 +3619,9 @@ function S1() {
|
|
|
3619
3619
|
var R = this, y = c(R), T = r(g), O = y.raw, b, N, V, M, x, $, ee;
|
|
3620
3620
|
if (O)
|
|
3621
3621
|
return O.lastIndex = R.lastIndex, b = e(_, O, T), R.lastIndex = O.lastIndex, b;
|
|
3622
|
-
var G = y.groups, j = I && R.sticky, Z = e(n, R), W = R.source, re = 0,
|
|
3623
|
-
if (j && (Z = p(Z, "y", ""), h(Z, "g") === -1 && (Z += "g"),
|
|
3624
|
-
`) && (W = "(?: " + W + ")",
|
|
3622
|
+
var G = y.groups, j = I && R.sticky, Z = e(n, R), W = R.source, re = 0, ue = T;
|
|
3623
|
+
if (j && (Z = p(Z, "y", ""), h(Z, "g") === -1 && (Z += "g"), ue = m(T, R.lastIndex), R.lastIndex > 0 && (!R.multiline || R.multiline && f(T, R.lastIndex - 1) !== `
|
|
3624
|
+
`) && (W = "(?: " + W + ")", ue = " " + ue, re++), N = new RegExp("^(?:" + W + ")", Z)), E && (N = new RegExp("^" + W + "$(?!\\s)", Z)), C && (V = R.lastIndex), M = e(d, j ? N : R, ue), j ? M ? (M.input = m(M.input, re), M[0] = m(M[0], re), M.index = R.lastIndex, R.lastIndex += M[0].length) : R.lastIndex = 0 : C && M && (R.lastIndex = R.global ? M.index + M[0].length : V), E && M && M.length > 1 && e(u, M[0], N, function() {
|
|
3625
3625
|
for (x = 1; x < arguments.length - 2; x++)
|
|
3626
3626
|
arguments[x] === void 0 && (M[x] = void 0);
|
|
3627
3627
|
}), M && G)
|
|
@@ -3826,11 +3826,11 @@ function $R() {
|
|
|
3826
3826
|
}
|
|
3827
3827
|
var re = o(G);
|
|
3828
3828
|
re || (G = u(G));
|
|
3829
|
-
var
|
|
3830
|
-
J && (q = R(
|
|
3829
|
+
var ue = u(p(j)), J = R(ue, "g") !== -1, q;
|
|
3830
|
+
J && (q = R(ue, "u") !== -1, j.lastIndex = 0);
|
|
3831
3831
|
for (var ie = [], te; te = m(j, Z), !(te === null || (g(ie, te), !J)); ) {
|
|
3832
|
-
var
|
|
3833
|
-
|
|
3832
|
+
var fe = u(te[0]);
|
|
3833
|
+
fe === "" && (j.lastIndex = _(Z, s(j.lastIndex), q));
|
|
3834
3834
|
}
|
|
3835
3835
|
for (var de = "", Se = 0, Ne = 0; Ne < ie.length; Ne++) {
|
|
3836
3836
|
te = ie[Ne];
|
|
@@ -3953,20 +3953,20 @@ function qR() {
|
|
|
3953
3953
|
var re = t;
|
|
3954
3954
|
for (G = 0; G < N.length; G++)
|
|
3955
3955
|
j = N[G], j >= x && j < re && (re = j);
|
|
3956
|
-
var
|
|
3957
|
-
if (re - x > m((t - $) /
|
|
3956
|
+
var ue = W + 1;
|
|
3957
|
+
if (re - x > m((t - $) / ue))
|
|
3958
3958
|
throw new h(_);
|
|
3959
|
-
for ($ += (re - x) *
|
|
3959
|
+
for ($ += (re - x) * ue, x = re, G = 0; G < N.length; G++) {
|
|
3960
3960
|
if (j = N[G], j < x && ++$ > t)
|
|
3961
3961
|
throw new h(_);
|
|
3962
3962
|
if (j === x) {
|
|
3963
3963
|
for (var J = $, q = r; ; ) {
|
|
3964
3964
|
var ie = q <= ee ? n : q >= ee + a ? a : q - ee;
|
|
3965
3965
|
if (J < ie) break;
|
|
3966
|
-
var te = J - ie,
|
|
3967
|
-
S(V, C(T(ie + te %
|
|
3966
|
+
var te = J - ie, fe = r - ie;
|
|
3967
|
+
S(V, C(T(ie + te % fe))), J = m(te / fe), q += r;
|
|
3968
3968
|
}
|
|
3969
|
-
S(V, C(T(J))), ee = O($,
|
|
3969
|
+
S(V, C(T(J))), ee = O($, ue, W === Z), $ = 0, W++;
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
3972
|
$++, x++;
|
|
@@ -4021,36 +4021,36 @@ var nl, Kh;
|
|
|
4021
4021
|
function KI() {
|
|
4022
4022
|
if (Kh) return nl;
|
|
4023
4023
|
Kh = 1, rI(), zR();
|
|
4024
|
-
var e = pt(), t = qe(), r = KR(), n = pn(), a = ot(), i = We(), o = ht(), c = zI(), l = xr(), s = nn(), u = n1(), d = ua(), _ = eI(), f = Nr(), h = Ya(), p = vt(), m = xt(), C = Hn(), I = mn(), E = Tt(), S = Bt(), v = Ir(), g = Ln(), R = Mn(), y = fo(), T = Xa(), O = lo(), b = ho(), N = yt(), V = E1(), M = N("iterator"), x = "URLSearchParams", $ = x + "Iterator", ee = f.set, G = f.getterFor(x), j = f.getterFor($), Z = r("fetch"), W = r("Request"), re = r("Headers"),
|
|
4025
|
-
var ce = Le(U,
|
|
4024
|
+
var e = pt(), t = qe(), r = KR(), n = pn(), a = ot(), i = We(), o = ht(), c = zI(), l = xr(), s = nn(), u = n1(), d = ua(), _ = eI(), f = Nr(), h = Ya(), p = vt(), m = xt(), C = Hn(), I = mn(), E = Tt(), S = Bt(), v = Ir(), g = Ln(), R = Mn(), y = fo(), T = Xa(), O = lo(), b = ho(), N = yt(), V = E1(), M = N("iterator"), x = "URLSearchParams", $ = x + "Iterator", ee = f.set, G = f.getterFor(x), j = f.getterFor($), Z = r("fetch"), W = r("Request"), re = r("Headers"), ue = W && W.prototype, J = re && re.prototype, q = t.TypeError, ie = t.encodeURIComponent, te = String.fromCharCode, fe = n("String", "fromCodePoint"), de = parseInt, Se = i("".charAt), Ne = i([].join), ge = i([].push), je = i("".replace), rt = i([].shift), ze = i([].splice), Xe = i("".split), Le = i("".slice), $e = i(/./.exec), Ie = /\+/g, Ue = "�", K = /^[0-9a-f]+$/i, ne = function(U, se) {
|
|
4025
|
+
var ce = Le(U, se, se + 2);
|
|
4026
4026
|
return $e(K, ce) ? de(ce, 16) : NaN;
|
|
4027
4027
|
}, pe = function(U) {
|
|
4028
|
-
for (var
|
|
4029
|
-
|
|
4030
|
-
return
|
|
4028
|
+
for (var se = 0, ce = 128; ce > 0 && (U & ce) !== 0; ce >>= 1)
|
|
4029
|
+
se++;
|
|
4030
|
+
return se;
|
|
4031
4031
|
}, Be = function(U) {
|
|
4032
|
-
var
|
|
4032
|
+
var se = null;
|
|
4033
4033
|
switch (U.length) {
|
|
4034
4034
|
case 1:
|
|
4035
|
-
|
|
4035
|
+
se = U[0];
|
|
4036
4036
|
break;
|
|
4037
4037
|
case 2:
|
|
4038
|
-
|
|
4038
|
+
se = (U[0] & 31) << 6 | U[1] & 63;
|
|
4039
4039
|
break;
|
|
4040
4040
|
case 3:
|
|
4041
|
-
|
|
4041
|
+
se = (U[0] & 15) << 12 | (U[1] & 63) << 6 | U[2] & 63;
|
|
4042
4042
|
break;
|
|
4043
4043
|
case 4:
|
|
4044
|
-
|
|
4044
|
+
se = (U[0] & 7) << 18 | (U[1] & 63) << 12 | (U[2] & 63) << 6 | U[3] & 63;
|
|
4045
4045
|
break;
|
|
4046
4046
|
}
|
|
4047
|
-
return
|
|
4047
|
+
return se > 1114111 ? null : se;
|
|
4048
4048
|
}, we = function(U) {
|
|
4049
4049
|
U = je(U, Ie, " ");
|
|
4050
|
-
for (var
|
|
4050
|
+
for (var se = U.length, ce = "", me = 0; me < se; ) {
|
|
4051
4051
|
var Te = Se(U, me);
|
|
4052
4052
|
if (Te === "%") {
|
|
4053
|
-
if (Se(U, me + 1) === "%" || me + 3 >
|
|
4053
|
+
if (Se(U, me + 1) === "%" || me + 3 > se) {
|
|
4054
4054
|
ce += "%", me++;
|
|
4055
4055
|
continue;
|
|
4056
4056
|
}
|
|
@@ -4068,7 +4068,7 @@ function KI() {
|
|
|
4068
4068
|
ce += Ue, me++;
|
|
4069
4069
|
continue;
|
|
4070
4070
|
}
|
|
4071
|
-
for (var st = [ke], mt = 1; mt < at && (me++, !(me + 3 >
|
|
4071
|
+
for (var st = [ke], mt = 1; mt < at && (me++, !(me + 3 > se || Se(U, me) !== "%")); ) {
|
|
4072
4072
|
var bt = ne(U, me + 1);
|
|
4073
4073
|
if (bt !== bt) {
|
|
4074
4074
|
me += 3;
|
|
@@ -4082,7 +4082,7 @@ function KI() {
|
|
|
4082
4082
|
continue;
|
|
4083
4083
|
}
|
|
4084
4084
|
var Jt = Be(st);
|
|
4085
|
-
Jt === null ? ce += Ue : Te =
|
|
4085
|
+
Jt === null ? ce += Ue : Te = fe(Jt);
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
4088
|
ce += Te, me++;
|
|
@@ -4099,19 +4099,19 @@ function KI() {
|
|
|
4099
4099
|
return xe[U];
|
|
4100
4100
|
}, nt = function(U) {
|
|
4101
4101
|
return je(ie(U), Ae, Qe);
|
|
4102
|
-
}, Ye = _(function(
|
|
4102
|
+
}, Ye = _(function(se, ce) {
|
|
4103
4103
|
ee(this, {
|
|
4104
4104
|
type: $,
|
|
4105
|
-
target: G(
|
|
4105
|
+
target: G(se).entries,
|
|
4106
4106
|
index: 0,
|
|
4107
4107
|
kind: ce
|
|
4108
4108
|
});
|
|
4109
4109
|
}, x, function() {
|
|
4110
|
-
var
|
|
4110
|
+
var se = j(this), ce = se.target, me = se.index++;
|
|
4111
4111
|
if (!ce || me >= ce.length)
|
|
4112
|
-
return
|
|
4112
|
+
return se.target = null, O(void 0, !0);
|
|
4113
4113
|
var Te = ce[me];
|
|
4114
|
-
switch (
|
|
4114
|
+
switch (se.kind) {
|
|
4115
4115
|
case "keys":
|
|
4116
4116
|
return O(Te.key, !1);
|
|
4117
4117
|
case "values":
|
|
@@ -4127,26 +4127,26 @@ function KI() {
|
|
|
4127
4127
|
this.url = U, this.update();
|
|
4128
4128
|
},
|
|
4129
4129
|
parseObject: function(U) {
|
|
4130
|
-
var
|
|
4130
|
+
var se = this.entries, ce = T(U), me, Te, ke, at, st, mt, bt;
|
|
4131
4131
|
if (ce)
|
|
4132
4132
|
for (me = y(U, ce), Te = me.next; !(ke = a(Te, me)).done; ) {
|
|
4133
4133
|
if (at = y(E(ke.value)), st = at.next, (mt = a(st, at)).done || (bt = a(st, at)).done || !a(st, at).done) throw new q("Expected sequence with length 2");
|
|
4134
|
-
ge(
|
|
4134
|
+
ge(se, { key: v(mt.value), value: v(bt.value) });
|
|
4135
4135
|
}
|
|
4136
|
-
else for (var Jt in U) m(U, Jt) && ge(
|
|
4136
|
+
else for (var Jt in U) m(U, Jt) && ge(se, { key: Jt, value: v(U[Jt]) });
|
|
4137
4137
|
},
|
|
4138
4138
|
parseQuery: function(U) {
|
|
4139
4139
|
if (U)
|
|
4140
|
-
for (var
|
|
4141
|
-
Te = ce[me++], Te.length && (ke = Xe(Te, "="), ge(
|
|
4140
|
+
for (var se = this.entries, ce = Xe(U, "&"), me = 0, Te, ke; me < ce.length; )
|
|
4141
|
+
Te = ce[me++], Te.length && (ke = Xe(Te, "="), ge(se, {
|
|
4142
4142
|
key: we(rt(ke)),
|
|
4143
4143
|
value: we(Ne(ke, "="))
|
|
4144
4144
|
}));
|
|
4145
4145
|
},
|
|
4146
4146
|
serialize: function() {
|
|
4147
|
-
for (var U = this.entries,
|
|
4148
|
-
me = U[ce++], ge(
|
|
4149
|
-
return Ne(
|
|
4147
|
+
for (var U = this.entries, se = [], ce = 0, me; ce < U.length; )
|
|
4148
|
+
me = U[ce++], ge(se, nt(me.key) + "=" + nt(me.value));
|
|
4149
|
+
return Ne(se, "&");
|
|
4150
4150
|
},
|
|
4151
4151
|
update: function() {
|
|
4152
4152
|
this.entries.length = 0, this.parseQuery(this.url.query);
|
|
@@ -4156,50 +4156,50 @@ function KI() {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
};
|
|
4158
4158
|
var ve = function() {
|
|
4159
|
-
h(this,
|
|
4160
|
-
var
|
|
4159
|
+
h(this, oe);
|
|
4160
|
+
var se = arguments.length > 0 ? arguments[0] : void 0, ce = ee(this, new De(se));
|
|
4161
4161
|
o || (this.size = ce.entries.length);
|
|
4162
|
-
},
|
|
4163
|
-
if (u(
|
|
4162
|
+
}, oe = ve.prototype;
|
|
4163
|
+
if (u(oe, {
|
|
4164
4164
|
// `URLSearchParams.prototype.append` method
|
|
4165
4165
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
4166
|
-
append: function(
|
|
4166
|
+
append: function(se, ce) {
|
|
4167
4167
|
var me = G(this);
|
|
4168
|
-
b(arguments.length, 2), ge(me.entries, { key: v(
|
|
4168
|
+
b(arguments.length, 2), ge(me.entries, { key: v(se), value: v(ce) }), o || this.size++, me.updateURL();
|
|
4169
4169
|
},
|
|
4170
4170
|
// `URLSearchParams.prototype.delete` method
|
|
4171
4171
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
|
4172
4172
|
delete: function(U) {
|
|
4173
|
-
for (var
|
|
4173
|
+
for (var se = G(this), ce = b(arguments.length, 1), me = se.entries, Te = v(U), ke = ce < 2 ? void 0 : arguments[1], at = ke === void 0 ? ke : v(ke), st = 0; st < me.length; ) {
|
|
4174
4174
|
var mt = me[st];
|
|
4175
4175
|
if (mt.key === Te && (at === void 0 || mt.value === at)) {
|
|
4176
4176
|
if (ze(me, st, 1), at !== void 0) break;
|
|
4177
4177
|
} else st++;
|
|
4178
4178
|
}
|
|
4179
|
-
o || (this.size = me.length),
|
|
4179
|
+
o || (this.size = me.length), se.updateURL();
|
|
4180
4180
|
},
|
|
4181
4181
|
// `URLSearchParams.prototype.get` method
|
|
4182
4182
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
|
4183
|
-
get: function(
|
|
4183
|
+
get: function(se) {
|
|
4184
4184
|
var ce = G(this).entries;
|
|
4185
4185
|
b(arguments.length, 1);
|
|
4186
|
-
for (var me = v(
|
|
4186
|
+
for (var me = v(se), Te = 0; Te < ce.length; Te++)
|
|
4187
4187
|
if (ce[Te].key === me) return ce[Te].value;
|
|
4188
4188
|
return null;
|
|
4189
4189
|
},
|
|
4190
4190
|
// `URLSearchParams.prototype.getAll` method
|
|
4191
4191
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
|
4192
|
-
getAll: function(
|
|
4192
|
+
getAll: function(se) {
|
|
4193
4193
|
var ce = G(this).entries;
|
|
4194
4194
|
b(arguments.length, 1);
|
|
4195
|
-
for (var me = v(
|
|
4195
|
+
for (var me = v(se), Te = [], ke = 0; ke < ce.length; ke++)
|
|
4196
4196
|
ce[ke].key === me && ge(Te, ce[ke].value);
|
|
4197
4197
|
return Te;
|
|
4198
4198
|
},
|
|
4199
4199
|
// `URLSearchParams.prototype.has` method
|
|
4200
4200
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
|
4201
|
-
has: function(
|
|
4202
|
-
for (var ce = G(this).entries, me = b(arguments.length, 1), Te = v(
|
|
4201
|
+
has: function(se) {
|
|
4202
|
+
for (var ce = G(this).entries, me = b(arguments.length, 1), Te = v(se), ke = me < 2 ? void 0 : arguments[1], at = ke === void 0 ? ke : v(ke), st = 0; st < ce.length; ) {
|
|
4203
4203
|
var mt = ce[st++];
|
|
4204
4204
|
if (mt.key === Te && (at === void 0 || mt.value === at)) return !0;
|
|
4205
4205
|
}
|
|
@@ -4207,24 +4207,24 @@ function KI() {
|
|
|
4207
4207
|
},
|
|
4208
4208
|
// `URLSearchParams.prototype.set` method
|
|
4209
4209
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
4210
|
-
set: function(
|
|
4210
|
+
set: function(se, ce) {
|
|
4211
4211
|
var me = G(this);
|
|
4212
4212
|
b(arguments.length, 1);
|
|
4213
|
-
for (var Te = me.entries, ke = !1, at = v(
|
|
4213
|
+
for (var Te = me.entries, ke = !1, at = v(se), st = v(ce), mt = 0, bt; mt < Te.length; mt++)
|
|
4214
4214
|
bt = Te[mt], bt.key === at && (ke ? ze(Te, mt--, 1) : (ke = !0, bt.value = st));
|
|
4215
4215
|
ke || ge(Te, { key: at, value: st }), o || (this.size = Te.length), me.updateURL();
|
|
4216
4216
|
},
|
|
4217
4217
|
// `URLSearchParams.prototype.sort` method
|
|
4218
4218
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
|
4219
4219
|
sort: function() {
|
|
4220
|
-
var
|
|
4221
|
-
V(
|
|
4220
|
+
var se = G(this);
|
|
4221
|
+
V(se.entries, function(ce, me) {
|
|
4222
4222
|
return ce.key > me.key ? 1 : -1;
|
|
4223
|
-
}),
|
|
4223
|
+
}), se.updateURL();
|
|
4224
4224
|
},
|
|
4225
4225
|
// `URLSearchParams.prototype.forEach` method
|
|
4226
|
-
forEach: function(
|
|
4227
|
-
for (var ce = G(this).entries, me = C(
|
|
4226
|
+
forEach: function(se) {
|
|
4227
|
+
for (var ce = G(this).entries, me = C(se, arguments.length > 1 ? arguments[1] : void 0), Te = 0, ke; Te < ce.length; )
|
|
4228
4228
|
ke = ce[Te++], me(ke.value, ke.key, this);
|
|
4229
4229
|
},
|
|
4230
4230
|
// `URLSearchParams.prototype.keys` method
|
|
@@ -4239,9 +4239,9 @@ function KI() {
|
|
|
4239
4239
|
entries: function() {
|
|
4240
4240
|
return new Ye(this, "entries");
|
|
4241
4241
|
}
|
|
4242
|
-
}, { enumerable: !0 }), l(
|
|
4242
|
+
}, { enumerable: !0 }), l(oe, M, oe.entries, { name: "entries" }), l(oe, "toString", function() {
|
|
4243
4243
|
return G(this).serialize();
|
|
4244
|
-
}, { enumerable: !0 }), o && s(
|
|
4244
|
+
}, { enumerable: !0 }), o && s(oe, "size", {
|
|
4245
4245
|
get: function() {
|
|
4246
4246
|
return G(this).entries.length;
|
|
4247
4247
|
},
|
|
@@ -4252,24 +4252,24 @@ function KI() {
|
|
|
4252
4252
|
}), !c && p(re)) {
|
|
4253
4253
|
var Ce = i(J.has), et = i(J.set), tt = function(U) {
|
|
4254
4254
|
if (S(U)) {
|
|
4255
|
-
var
|
|
4256
|
-
if (I(
|
|
4255
|
+
var se = U.body, ce;
|
|
4256
|
+
if (I(se) === x)
|
|
4257
4257
|
return ce = U.headers ? new re(U.headers) : new re(), Ce(ce, "content-type") || et(ce, "content-type", "application/x-www-form-urlencoded;charset=UTF-8"), g(U, {
|
|
4258
|
-
body: R(0, v(
|
|
4258
|
+
body: R(0, v(se)),
|
|
4259
4259
|
headers: R(0, ce)
|
|
4260
4260
|
});
|
|
4261
4261
|
}
|
|
4262
4262
|
return U;
|
|
4263
4263
|
};
|
|
4264
4264
|
if (p(Z) && e({ global: !0, enumerable: !0, dontCallGetSet: !0, forced: !0 }, {
|
|
4265
|
-
fetch: function(
|
|
4266
|
-
return Z(
|
|
4265
|
+
fetch: function(se) {
|
|
4266
|
+
return Z(se, arguments.length > 1 ? tt(arguments[1]) : {});
|
|
4267
4267
|
}
|
|
4268
4268
|
}), p(W)) {
|
|
4269
|
-
var Me = function(
|
|
4270
|
-
return h(this,
|
|
4269
|
+
var Me = function(se) {
|
|
4270
|
+
return h(this, ue), new W(se, arguments.length > 1 ? tt(arguments[1]) : {});
|
|
4271
4271
|
};
|
|
4272
|
-
|
|
4272
|
+
ue.constructor = Me, Me.prototype = ue, e({ global: !0, constructor: !0, dontCallGetSet: !0, forced: !0 }, {
|
|
4273
4273
|
Request: Me
|
|
4274
4274
|
});
|
|
4275
4275
|
}
|
|
@@ -4283,7 +4283,7 @@ var Wh;
|
|
|
4283
4283
|
function WR() {
|
|
4284
4284
|
if (Wh) return kh;
|
|
4285
4285
|
Wh = 1, GR();
|
|
4286
|
-
var e = pt(), t = ht(), r = zI(), n = qe(), a = Hn(), i = We(), o = xr(), c = nn(), l = Ya(), s = xt(), u = ZR(), d = jR(), _ = _o(), f = v1().codeAt, h = qR(), p = Ir(), m = ua(), C = ho(), I = KI(), E = Nr(), S = E.set, v = E.getterFor("URL"), g = I.URLSearchParams, R = I.getState, y = n.URL, T = n.TypeError, O = n.parseInt, b = Math.floor, N = Math.pow, V = i("".charAt), M = i(/./.exec), x = i([].join), $ = i(1.1.toString), ee = i([].pop), G = i([].push), j = i("".replace), Z = i([].shift), W = i("".split), re = i("".slice),
|
|
4286
|
+
var e = pt(), t = ht(), r = zI(), n = qe(), a = Hn(), i = We(), o = xr(), c = nn(), l = Ya(), s = xt(), u = ZR(), d = jR(), _ = _o(), f = v1().codeAt, h = qR(), p = Ir(), m = ua(), C = ho(), I = KI(), E = Nr(), S = E.set, v = E.getterFor("URL"), g = I.URLSearchParams, R = I.getState, y = n.URL, T = n.TypeError, O = n.parseInt, b = Math.floor, N = Math.pow, V = i("".charAt), M = i(/./.exec), x = i([].join), $ = i(1.1.toString), ee = i([].pop), G = i([].push), j = i("".replace), Z = i([].shift), W = i("".split), re = i("".slice), ue = i("".toLowerCase), J = i([].unshift), q = "Invalid authority", ie = "Invalid scheme", te = "Invalid host", fe = "Invalid port", de = /[a-z]/i, Se = /[\d+-.a-z]/i, Ne = /\d/, ge = /^0x/i, je = /^[0-7]+$/, rt = /^\d+$/, ze = /^[\da-f]+$/i, Xe = /[\0\t\n\r #%/:<>?@[\\\]^|]/, Le = /[\0\t\n\r #/:<>?@[\\\]^|]/, $e = /^[\u0000-\u0020]+/, Ie = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/, Ue = /[\t\n\r]/g, K, ne = function(H) {
|
|
4287
4287
|
var Y = W(H, "."), F, L, z, ye, Ee, dt, Rt;
|
|
4288
4288
|
if (Y.length && Y[Y.length - 1] === "" && Y.length--, F = Y.length, F > 4) return H;
|
|
4289
4289
|
for (L = [], z = 0; z < F; z++) {
|
|
@@ -4402,14 +4402,14 @@ function WR() {
|
|
|
4402
4402
|
}, ve = function(H, Y) {
|
|
4403
4403
|
var F;
|
|
4404
4404
|
return H.length === 2 && M(de, V(H, 0)) && ((F = V(H, 1)) === ":" || !Y && F === "|");
|
|
4405
|
-
},
|
|
4405
|
+
}, oe = function(H) {
|
|
4406
4406
|
var Y;
|
|
4407
4407
|
return H.length > 1 && ve(re(H, 0, 2)) && (H.length === 2 || (Y = V(H, 2)) === "/" || Y === "\\" || Y === "?" || Y === "#");
|
|
4408
4408
|
}, Ce = function(H) {
|
|
4409
|
-
return H === "." ||
|
|
4409
|
+
return H === "." || ue(H) === "%2e";
|
|
4410
4410
|
}, et = function(H) {
|
|
4411
|
-
return H =
|
|
4412
|
-
}, tt = {}, Me = {}, U = {},
|
|
4411
|
+
return H = ue(H), H === ".." || H === "%2e." || H === ".%2e" || H === "%2e%2e";
|
|
4412
|
+
}, tt = {}, Me = {}, U = {}, se = {}, ce = {}, me = {}, Te = {}, ke = {}, at = {}, st = {}, mt = {}, bt = {}, Jt = {}, Bn = {}, Gr = {}, xn = {}, kt = {}, er = {}, pa = {}, Pr = {}, sr = {}, $n = function(H, Y, F) {
|
|
4413
4413
|
var L = p(H), z, ye, Ee;
|
|
4414
4414
|
if (Y) {
|
|
4415
4415
|
if (ye = this.parse(L), ye) throw new T(ye);
|
|
@@ -4429,7 +4429,7 @@ function WR() {
|
|
|
4429
4429
|
switch (X = zt[ye], z) {
|
|
4430
4430
|
case tt:
|
|
4431
4431
|
if (X && M(de, X))
|
|
4432
|
-
Ee +=
|
|
4432
|
+
Ee += ue(X), z = Me;
|
|
4433
4433
|
else {
|
|
4434
4434
|
if (Y)
|
|
4435
4435
|
return ie;
|
|
@@ -4439,14 +4439,14 @@ function WR() {
|
|
|
4439
4439
|
break;
|
|
4440
4440
|
case Me:
|
|
4441
4441
|
if (X && (M(Se, X) || X === "+" || X === "-" || X === "."))
|
|
4442
|
-
Ee +=
|
|
4442
|
+
Ee += ue(X);
|
|
4443
4443
|
else if (X === ":") {
|
|
4444
4444
|
if (Y && (L.isSpecial() !== s(De, Ee) || Ee === "file" && (L.includesCredentials() || L.port !== null) || L.scheme === "file" && !L.host)) return;
|
|
4445
4445
|
if (L.scheme = Ee, Y) {
|
|
4446
4446
|
L.isSpecial() && De[L.scheme] === L.port && (L.port = null);
|
|
4447
4447
|
return;
|
|
4448
4448
|
}
|
|
4449
|
-
Ee = "", L.scheme === "file" ? z = Bn : L.isSpecial() && F && F.scheme === L.scheme ? z =
|
|
4449
|
+
Ee = "", L.scheme === "file" ? z = Bn : L.isSpecial() && F && F.scheme === L.scheme ? z = se : L.isSpecial() ? z = ke : zt[ye + 1] === "/" ? (z = ce, ye++) : (L.cannotBeABaseURL = !0, G(L.path, ""), z = pa);
|
|
4450
4450
|
} else {
|
|
4451
4451
|
if (Y)
|
|
4452
4452
|
return ie;
|
|
@@ -4462,7 +4462,7 @@ function WR() {
|
|
|
4462
4462
|
}
|
|
4463
4463
|
z = F.scheme === "file" ? Bn : me;
|
|
4464
4464
|
continue;
|
|
4465
|
-
case
|
|
4465
|
+
case se:
|
|
4466
4466
|
if (X === "/" && zt[ye + 1] === "/")
|
|
4467
4467
|
z = at, ye++;
|
|
4468
4468
|
else {
|
|
@@ -4554,13 +4554,13 @@ function WR() {
|
|
|
4554
4554
|
else if (X === K || X === "/" || X === "?" || X === "#" || X === "\\" && L.isSpecial() || Y) {
|
|
4555
4555
|
if (Ee !== "") {
|
|
4556
4556
|
var Ea = O(Ee, 10);
|
|
4557
|
-
if (Ea > 65535) return
|
|
4557
|
+
if (Ea > 65535) return fe;
|
|
4558
4558
|
L.port = L.isSpecial() && Ea === De[L.scheme] ? null : Ea, Ee = "";
|
|
4559
4559
|
}
|
|
4560
4560
|
if (Y) return;
|
|
4561
4561
|
z = kt;
|
|
4562
4562
|
continue;
|
|
4563
|
-
} else return
|
|
4563
|
+
} else return fe;
|
|
4564
4564
|
break;
|
|
4565
4565
|
case Bn:
|
|
4566
4566
|
if (L.scheme = "file", X === "/" || X === "\\") z = Gr;
|
|
@@ -4576,7 +4576,7 @@ function WR() {
|
|
|
4576
4576
|
L.host = F.host, L.path = _(F.path), L.query = F.query, L.fragment = "", z = sr;
|
|
4577
4577
|
break;
|
|
4578
4578
|
default:
|
|
4579
|
-
|
|
4579
|
+
oe(x(_(zt, ye), "")) || (L.host = F.host, L.path = _(F.path), L.shortenPath()), z = er;
|
|
4580
4580
|
continue;
|
|
4581
4581
|
}
|
|
4582
4582
|
else {
|
|
@@ -4589,7 +4589,7 @@ function WR() {
|
|
|
4589
4589
|
z = xn;
|
|
4590
4590
|
break;
|
|
4591
4591
|
}
|
|
4592
|
-
F && F.scheme === "file" && !
|
|
4592
|
+
F && F.scheme === "file" && !oe(x(_(zt, ye), "")) && (ve(F.path[0], !0) ? G(L.path, F.path[0]) : L.host = F.host), z = er;
|
|
4593
4593
|
continue;
|
|
4594
4594
|
case xn:
|
|
4595
4595
|
if (X === K || X === "/" || X === "\\" || X === "?" || X === "#") {
|
|
@@ -5420,14 +5420,14 @@ var Ta = { exports: {} }, Dg = Ta.exports, gp;
|
|
|
5420
5420
|
function Rg() {
|
|
5421
5421
|
return gp || (gp = 1, (function(e, t) {
|
|
5422
5422
|
(function(r, n) {
|
|
5423
|
-
var a = "1.0.41", i = "", o = "?", c = "function", l = "undefined", s = "object", u = "string", d = "major", _ = "model", f = "name", h = "type", p = "vendor", m = "version", C = "architecture", I = "console", E = "mobile", S = "tablet", v = "smarttv", g = "wearable", R = "embedded", y = 500, T = "Amazon", O = "Apple", b = "ASUS", N = "BlackBerry", V = "Browser", M = "Chrome", x = "Edge", $ = "Firefox", ee = "Google", G = "Honor", j = "Huawei", Z = "Lenovo", W = "LG", re = "Microsoft",
|
|
5424
|
-
var
|
|
5423
|
+
var a = "1.0.41", i = "", o = "?", c = "function", l = "undefined", s = "object", u = "string", d = "major", _ = "model", f = "name", h = "type", p = "vendor", m = "version", C = "architecture", I = "console", E = "mobile", S = "tablet", v = "smarttv", g = "wearable", R = "embedded", y = 500, T = "Amazon", O = "Apple", b = "ASUS", N = "BlackBerry", V = "Browser", M = "Chrome", x = "Edge", $ = "Firefox", ee = "Google", G = "Honor", j = "Huawei", Z = "Lenovo", W = "LG", re = "Microsoft", ue = "Motorola", J = "Nvidia", q = "OnePlus", ie = "Opera", te = "OPPO", fe = "Samsung", de = "Sharp", Se = "Sony", Ne = "Xiaomi", ge = "Zebra", je = "Facebook", rt = "Chromium OS", ze = "Mac OS", Xe = " Browser", Le = function(De, ve) {
|
|
5424
|
+
var oe = {};
|
|
5425
5425
|
for (var Ce in De)
|
|
5426
|
-
ve[Ce] && ve[Ce].length % 2 === 0 ?
|
|
5427
|
-
return
|
|
5426
|
+
ve[Ce] && ve[Ce].length % 2 === 0 ? oe[Ce] = ve[Ce].concat(De[Ce]) : oe[Ce] = De[Ce];
|
|
5427
|
+
return oe;
|
|
5428
5428
|
}, $e = function(De) {
|
|
5429
|
-
for (var ve = {},
|
|
5430
|
-
ve[De[
|
|
5429
|
+
for (var ve = {}, oe = 0; oe < De.length; oe++)
|
|
5430
|
+
ve[De[oe].toUpperCase()] = De[oe];
|
|
5431
5431
|
return ve;
|
|
5432
5432
|
}, Ie = function(De, ve) {
|
|
5433
5433
|
return typeof De === u ? Ue(ve).indexOf(Ue(De)) !== -1 : !1;
|
|
@@ -5439,36 +5439,36 @@ function Rg() {
|
|
|
5439
5439
|
if (typeof De === u)
|
|
5440
5440
|
return De = De.replace(/^\s\s*/, i), typeof ve === l ? De : De.substring(0, y);
|
|
5441
5441
|
}, pe = function(De, ve) {
|
|
5442
|
-
for (var
|
|
5443
|
-
var ce = ve[
|
|
5442
|
+
for (var oe = 0, Ce, et, tt, Me, U, se; oe < ve.length && !U; ) {
|
|
5443
|
+
var ce = ve[oe], me = ve[oe + 1];
|
|
5444
5444
|
for (Ce = et = 0; Ce < ce.length && !U && ce[Ce]; )
|
|
5445
5445
|
if (U = ce[Ce++].exec(De), U)
|
|
5446
5446
|
for (tt = 0; tt < me.length; tt++)
|
|
5447
|
-
|
|
5448
|
-
|
|
5447
|
+
se = U[++et], Me = me[tt], typeof Me === s && Me.length > 0 ? Me.length === 2 ? typeof Me[1] == c ? this[Me[0]] = Me[1].call(this, se) : this[Me[0]] = Me[1] : Me.length === 3 ? typeof Me[1] === c && !(Me[1].exec && Me[1].test) ? this[Me[0]] = se ? Me[1].call(this, se, Me[2]) : n : this[Me[0]] = se ? se.replace(Me[1], Me[2]) : n : Me.length === 4 && (this[Me[0]] = se ? Me[3].call(this, se.replace(Me[1], Me[2])) : n) : this[Me] = se || n;
|
|
5448
|
+
oe += 2;
|
|
5449
5449
|
}
|
|
5450
5450
|
}, Be = function(De, ve) {
|
|
5451
|
-
for (var
|
|
5452
|
-
if (typeof ve[
|
|
5453
|
-
for (var Ce = 0; Ce < ve[
|
|
5454
|
-
if (Ie(ve[
|
|
5455
|
-
return
|
|
5456
|
-
} else if (Ie(ve[
|
|
5457
|
-
return
|
|
5451
|
+
for (var oe in ve)
|
|
5452
|
+
if (typeof ve[oe] === s && ve[oe].length > 0) {
|
|
5453
|
+
for (var Ce = 0; Ce < ve[oe].length; Ce++)
|
|
5454
|
+
if (Ie(ve[oe][Ce], De))
|
|
5455
|
+
return oe === o ? n : oe;
|
|
5456
|
+
} else if (Ie(ve[oe], De))
|
|
5457
|
+
return oe === o ? n : oe;
|
|
5458
5458
|
return ve.hasOwnProperty("*") ? ve["*"] : De;
|
|
5459
|
-
}, we = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Ae = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, xe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [m, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [m, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, m], [/opios[\/ ]+([\w\.]+)/i], [m, [f, ie + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [m, [f, ie + " GX"]], [/\bopr\/([\w\.]+)/i], [m, [f, ie]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [m, [f, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [m, [f, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, m], [/quark(?:pc)?\/([-\w\.]+)/i], [m, [f, "Quark"]], [/\bddg\/([\w\.]+)/i], [m, [f, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [m, [f, "UC" + V]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [m, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [m, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [m, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [m, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [m, [f, "Smart Lenovo " + V]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + V], m], [/\bfocus\/([\w\.]+)/i], [m, [f, $ + " Focus"]], [/\bopt\/([\w\.]+)/i], [m, [f, ie + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [m, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [m, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [m, [f, ie + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [m, [f, "MIUI" + Xe]], [/fxios\/([\w\.-]+)/i], [m, [f, $]], [/\bqihoobrowser\/?([\w\.]*)/i], [m, [f, "360"]], [/\b(qq)\/([\w\.]+)/i], [[f, /(.+)/, "$1Browser"], m], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1" + Xe], m], [/samsungbrowser\/([\w\.]+)/i], [m, [f, ue + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [m, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], m], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [f, m], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [f], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [m, f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, je], m], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, m], [/\bgsa\/([\w\.]+) .*safari\//i], [m, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [m, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [m, [f, M + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, M + " WebView"], m], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [m, [f, "Android " + V]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, m], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [m, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [m, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [m, Be, we]], [/(webkit|khtml)\/([\w\.]+)/i], [f, m], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], m], [/(wolvic|librewolf)\/([\w\.]+)/i], [f, m], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [m, [f, $ + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [f, [m, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [f, [m, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[C, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[C, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[C, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[C, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[C, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[C, /ower/, i, Ue]], [/ sun4\w[;\)]/i], [[C, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[C, Ue]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [_, [p, ue], [h, S]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [_, [p, ue], [h, E]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [_, [p, O], [h, E]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [_, [p, O], [h, S]], [/(macintosh);/i], [_, [p, O]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [_, [p, de], [h, E]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [_, [p, G], [h, S]], [/honor([-\w ]+)[;\)]/i], [_, [p, G], [h, E]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [_, [p, j], [h, S]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [_, [p, j], [h, E]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[_, /_/g, " "], [p, Ne], [h, S]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[_, /_/g, " "], [p, Ne], [h, E]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [_, [p, te], [h, E]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [_, [p, Be, { OnePlus: ["304", "403", "203"], "*": te }], [h, S]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [_, [p, "Vivo"], [h, E]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [_, [p, "Realme"], [h, E]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [_, [p, fe], [h, E]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [_, [p, fe], [h, S]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [_, [p, W], [h, S]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [_, [p, W], [h, E]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [_, [p, Z], [h, S]], [/(nokia) (t[12][01])/i], [p, _, [h, S]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[_, /_/g, " "], [h, E], [p, "Nokia"]], [/(pixel (c|tablet))\b/i], [_, [p, ee], [h, S]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [_, [p, ee], [h, E]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [_, [p, Se], [h, E]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[_, "Xperia Tablet"], [p, Se], [h, S]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [_, [p, q], [h, E]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [_, [p, T], [h, S]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[_, /(.+)/g, "Fire Phone $1"], [p, T], [h, E]], [/(playbook);[-\w\),; ]+(rim)/i], [_, p, [h, S]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [_, [p, N], [h, E]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [_, [p, b], [h, S]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [_, [p, b], [h, E]], [/(nexus 9)/i], [_, [p, "HTC"], [h, S]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [p, [_, /_/g, " "], [h, E]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [_, [p, "TCL"], [h, S]], [/(itel) ((\w+))/i], [[p, Ue], _, [h, Be, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [_, [p, "Acer"], [h, S]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [_, [p, "Meizu"], [h, E]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [_, [p, "Ulefone"], [h, E]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [_, [p, "Energizer"], [h, E]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [_, [p, "Cat"], [h, E]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [_, [p, "Smartfren"], [h, E]], [/droid.+; (a(?:015|06[35]|142p?))/i], [_, [p, "Nothing"], [h, E]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [_, [p, "Archos"], [h, S]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [_, [p, "Archos"], [h, E]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [p, _, [h, S]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [p, _, [h, E]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [p, _, [h, S]], [/(surface duo)/i], [_, [p, re], [h, S]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [_, [p, "Fairphone"], [h, E]], [/(u304aa)/i], [_, [p, "AT&T"], [h, E]], [/\bsie-(\w*)/i], [_, [p, "Siemens"], [h, E]], [/\b(rct\w+) b/i], [_, [p, "RCA"], [h, S]], [/\b(venue[\d ]{2,7}) b/i], [_, [p, "Dell"], [h, S]], [/\b(q(?:mv|ta)\w+) b/i], [_, [p, "Verizon"], [h, S]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [_, [p, "Barnes & Noble"], [h, S]], [/\b(tm\d{3}\w+) b/i], [_, [p, "NuVision"], [h, S]], [/\b(k88) b/i], [_, [p, "ZTE"], [h, S]], [/\b(nx\d{3}j) b/i], [_, [p, "ZTE"], [h, E]], [/\b(gen\d{3}) b.+49h/i], [_, [p, "Swiss"], [h, E]], [/\b(zur\d{3}) b/i], [_, [p, "Swiss"], [h, S]], [/\b((zeki)?tb.*\b) b/i], [_, [p, "Zeki"], [h, S]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[p, "Dragon Touch"], _, [h, S]], [/\b(ns-?\w{0,9}) b/i], [_, [p, "Insignia"], [h, S]], [/\b((nxa|next)-?\w{0,9}) b/i], [_, [p, "NextBook"], [h, S]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[p, "Voice"], _, [h, E]], [/\b(lvtel\-)?(v1[12]) b/i], [[p, "LvTel"], _, [h, E]], [/\b(ph-1) /i], [_, [p, "Essential"], [h, E]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [_, [p, "Envizen"], [h, S]], [/\b(trio[-\w\. ]+) b/i], [_, [p, "MachSpeed"], [h, S]], [/\btu_(1491) b/i], [_, [p, "Rotor"], [h, S]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [_, [p, J], [h, S]], [/(sprint) (\w+)/i], [p, _, [h, E]], [/(kin\.[onetw]{3})/i], [[_, /\./g, " "], [p, re], [h, E]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [_, [p, ge], [h, S]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [_, [p, ge], [h, E]], [/smart-tv.+(samsung)/i], [p, [h, v]], [/hbbtv.+maple;(\d+)/i], [[_, /^/, "SmartTV"], [p, ue], [h, v]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[p, W], [h, v]], [/(apple) ?tv/i], [p, [_, O + " TV"], [h, v]], [/crkey/i], [[_, M + "cast"], [p, ee], [h, v]], [/droid.+aft(\w+)( bui|\))/i], [_, [p, T], [h, v]], [/(shield \w+ tv)/i], [_, [p, J], [h, v]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [_, [p, de], [h, v]], [/(bravia[\w ]+)( bui|\))/i], [_, [p, Se], [h, v]], [/(mi(tv|box)-?\w+) bui/i], [_, [p, Ne], [h, v]], [/Hbbtv.*(technisat) (.*);/i], [p, _, [h, v]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[p, ne], [_, ne], [h, v]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [_, [h, v]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, v]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [p, _, [h, I]], [/droid.+; (shield)( bui|\))/i], [_, [p, J], [h, I]], [/(playstation \w+)/i], [_, [p, Se], [h, I]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [_, [p, re], [h, I]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [_, [p, ue], [h, g]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [p, _, [h, g]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [_, [p, te], [h, g]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [_, [p, O], [h, g]], [/(opwwe\d{3})/i], [_, [p, q], [h, g]], [/(moto 360)/i], [_, [p, fe], [h, g]], [/(smartwatch 3)/i], [_, [p, Se], [h, g]], [/(g watch r)/i], [_, [p, W], [h, g]], [/droid.+; (wt63?0{2,3})\)/i], [_, [p, ge], [h, g]], [/droid.+; (glass) \d/i], [_, [p, ee], [h, g]], [/(pico) (4|neo3(?: link|pro)?)/i], [p, _, [h, g]], [/; (quest( \d| pro)?)/i], [_, [p, je], [h, g]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [p, [h, R]], [/(aeobc)\b/i], [_, [p, T], [h, R]], [/(homepod).+mac os/i], [_, [p, O], [h, R]], [/windows iot/i], [[h, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [_, [h, E]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [_, [h, S]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, S]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, E]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [_, [p, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [f, x + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [f, m], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [m, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, m], [/ladybird\//i], [[f, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [m, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, m], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [f, [m, Be, Ae]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[m, Be, Ae], [f, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[m, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, ze], [m, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [m, f], [/(ubuntu) ([\w\.]+) like android/i], [[f, /(.+)/, "$1 Touch"], m], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [f, m], [/\(bb(10);/i], [m, [f, N]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [m, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [m, [f, $ + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [m, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [m, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [m, [f, M + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, rt], m], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, m], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], m], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, m]] }, Qe = function(De, ve) {
|
|
5459
|
+
}, we = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Ae = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, xe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [m, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [m, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, m], [/opios[\/ ]+([\w\.]+)/i], [m, [f, ie + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [m, [f, ie + " GX"]], [/\bopr\/([\w\.]+)/i], [m, [f, ie]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [m, [f, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [m, [f, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, m], [/quark(?:pc)?\/([-\w\.]+)/i], [m, [f, "Quark"]], [/\bddg\/([\w\.]+)/i], [m, [f, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [m, [f, "UC" + V]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [m, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [m, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [m, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [m, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [m, [f, "Smart Lenovo " + V]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + V], m], [/\bfocus\/([\w\.]+)/i], [m, [f, $ + " Focus"]], [/\bopt\/([\w\.]+)/i], [m, [f, ie + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [m, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [m, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [m, [f, ie + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [m, [f, "MIUI" + Xe]], [/fxios\/([\w\.-]+)/i], [m, [f, $]], [/\bqihoobrowser\/?([\w\.]*)/i], [m, [f, "360"]], [/\b(qq)\/([\w\.]+)/i], [[f, /(.+)/, "$1Browser"], m], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1" + Xe], m], [/samsungbrowser\/([\w\.]+)/i], [m, [f, fe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [m, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], m], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [f, m], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [f], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [m, f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, je], m], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, m], [/\bgsa\/([\w\.]+) .*safari\//i], [m, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [m, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [m, [f, M + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, M + " WebView"], m], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [m, [f, "Android " + V]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, m], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [m, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [m, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [m, Be, we]], [/(webkit|khtml)\/([\w\.]+)/i], [f, m], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], m], [/(wolvic|librewolf)\/([\w\.]+)/i], [f, m], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [m, [f, $ + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [f, [m, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [f, [m, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[C, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[C, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[C, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[C, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[C, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[C, /ower/, i, Ue]], [/ sun4\w[;\)]/i], [[C, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[C, Ue]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [_, [p, fe], [h, S]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [_, [p, fe], [h, E]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [_, [p, O], [h, E]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [_, [p, O], [h, S]], [/(macintosh);/i], [_, [p, O]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [_, [p, de], [h, E]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [_, [p, G], [h, S]], [/honor([-\w ]+)[;\)]/i], [_, [p, G], [h, E]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [_, [p, j], [h, S]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [_, [p, j], [h, E]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[_, /_/g, " "], [p, Ne], [h, S]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[_, /_/g, " "], [p, Ne], [h, E]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [_, [p, te], [h, E]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [_, [p, Be, { OnePlus: ["304", "403", "203"], "*": te }], [h, S]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [_, [p, "Vivo"], [h, E]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [_, [p, "Realme"], [h, E]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [_, [p, ue], [h, E]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [_, [p, ue], [h, S]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [_, [p, W], [h, S]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [_, [p, W], [h, E]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [_, [p, Z], [h, S]], [/(nokia) (t[12][01])/i], [p, _, [h, S]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[_, /_/g, " "], [h, E], [p, "Nokia"]], [/(pixel (c|tablet))\b/i], [_, [p, ee], [h, S]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [_, [p, ee], [h, E]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [_, [p, Se], [h, E]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[_, "Xperia Tablet"], [p, Se], [h, S]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [_, [p, q], [h, E]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [_, [p, T], [h, S]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[_, /(.+)/g, "Fire Phone $1"], [p, T], [h, E]], [/(playbook);[-\w\),; ]+(rim)/i], [_, p, [h, S]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [_, [p, N], [h, E]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [_, [p, b], [h, S]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [_, [p, b], [h, E]], [/(nexus 9)/i], [_, [p, "HTC"], [h, S]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [p, [_, /_/g, " "], [h, E]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [_, [p, "TCL"], [h, S]], [/(itel) ((\w+))/i], [[p, Ue], _, [h, Be, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [_, [p, "Acer"], [h, S]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [_, [p, "Meizu"], [h, E]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [_, [p, "Ulefone"], [h, E]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [_, [p, "Energizer"], [h, E]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [_, [p, "Cat"], [h, E]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [_, [p, "Smartfren"], [h, E]], [/droid.+; (a(?:015|06[35]|142p?))/i], [_, [p, "Nothing"], [h, E]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [_, [p, "Archos"], [h, S]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [_, [p, "Archos"], [h, E]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [p, _, [h, S]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [p, _, [h, E]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [p, _, [h, S]], [/(surface duo)/i], [_, [p, re], [h, S]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [_, [p, "Fairphone"], [h, E]], [/(u304aa)/i], [_, [p, "AT&T"], [h, E]], [/\bsie-(\w*)/i], [_, [p, "Siemens"], [h, E]], [/\b(rct\w+) b/i], [_, [p, "RCA"], [h, S]], [/\b(venue[\d ]{2,7}) b/i], [_, [p, "Dell"], [h, S]], [/\b(q(?:mv|ta)\w+) b/i], [_, [p, "Verizon"], [h, S]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [_, [p, "Barnes & Noble"], [h, S]], [/\b(tm\d{3}\w+) b/i], [_, [p, "NuVision"], [h, S]], [/\b(k88) b/i], [_, [p, "ZTE"], [h, S]], [/\b(nx\d{3}j) b/i], [_, [p, "ZTE"], [h, E]], [/\b(gen\d{3}) b.+49h/i], [_, [p, "Swiss"], [h, E]], [/\b(zur\d{3}) b/i], [_, [p, "Swiss"], [h, S]], [/\b((zeki)?tb.*\b) b/i], [_, [p, "Zeki"], [h, S]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[p, "Dragon Touch"], _, [h, S]], [/\b(ns-?\w{0,9}) b/i], [_, [p, "Insignia"], [h, S]], [/\b((nxa|next)-?\w{0,9}) b/i], [_, [p, "NextBook"], [h, S]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[p, "Voice"], _, [h, E]], [/\b(lvtel\-)?(v1[12]) b/i], [[p, "LvTel"], _, [h, E]], [/\b(ph-1) /i], [_, [p, "Essential"], [h, E]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [_, [p, "Envizen"], [h, S]], [/\b(trio[-\w\. ]+) b/i], [_, [p, "MachSpeed"], [h, S]], [/\btu_(1491) b/i], [_, [p, "Rotor"], [h, S]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [_, [p, J], [h, S]], [/(sprint) (\w+)/i], [p, _, [h, E]], [/(kin\.[onetw]{3})/i], [[_, /\./g, " "], [p, re], [h, E]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [_, [p, ge], [h, S]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [_, [p, ge], [h, E]], [/smart-tv.+(samsung)/i], [p, [h, v]], [/hbbtv.+maple;(\d+)/i], [[_, /^/, "SmartTV"], [p, fe], [h, v]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[p, W], [h, v]], [/(apple) ?tv/i], [p, [_, O + " TV"], [h, v]], [/crkey/i], [[_, M + "cast"], [p, ee], [h, v]], [/droid.+aft(\w+)( bui|\))/i], [_, [p, T], [h, v]], [/(shield \w+ tv)/i], [_, [p, J], [h, v]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [_, [p, de], [h, v]], [/(bravia[\w ]+)( bui|\))/i], [_, [p, Se], [h, v]], [/(mi(tv|box)-?\w+) bui/i], [_, [p, Ne], [h, v]], [/Hbbtv.*(technisat) (.*);/i], [p, _, [h, v]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[p, ne], [_, ne], [h, v]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [_, [h, v]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, v]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [p, _, [h, I]], [/droid.+; (shield)( bui|\))/i], [_, [p, J], [h, I]], [/(playstation \w+)/i], [_, [p, Se], [h, I]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [_, [p, re], [h, I]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [_, [p, fe], [h, g]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [p, _, [h, g]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [_, [p, te], [h, g]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [_, [p, O], [h, g]], [/(opwwe\d{3})/i], [_, [p, q], [h, g]], [/(moto 360)/i], [_, [p, ue], [h, g]], [/(smartwatch 3)/i], [_, [p, Se], [h, g]], [/(g watch r)/i], [_, [p, W], [h, g]], [/droid.+; (wt63?0{2,3})\)/i], [_, [p, ge], [h, g]], [/droid.+; (glass) \d/i], [_, [p, ee], [h, g]], [/(pico) (4|neo3(?: link|pro)?)/i], [p, _, [h, g]], [/; (quest( \d| pro)?)/i], [_, [p, je], [h, g]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [p, [h, R]], [/(aeobc)\b/i], [_, [p, T], [h, R]], [/(homepod).+mac os/i], [_, [p, O], [h, R]], [/windows iot/i], [[h, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [_, [h, E]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [_, [h, S]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, S]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, E]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [_, [p, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [f, x + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [f, m], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [m, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, m], [/ladybird\//i], [[f, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [m, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, m], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [f, [m, Be, Ae]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[m, Be, Ae], [f, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[m, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, ze], [m, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [m, f], [/(ubuntu) ([\w\.]+) like android/i], [[f, /(.+)/, "$1 Touch"], m], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [f, m], [/\(bb(10);/i], [m, [f, N]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [m, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [m, [f, $ + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [m, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [m, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [m, [f, M + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, rt], m], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, m], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], m], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, m]] }, Qe = function(De, ve) {
|
|
5460
5460
|
if (typeof De === s && (ve = De, De = n), !(this instanceof Qe))
|
|
5461
5461
|
return new Qe(De, ve).getResult();
|
|
5462
|
-
var
|
|
5462
|
+
var oe = typeof r !== l && r.navigator ? r.navigator : n, Ce = De || (oe && oe.userAgent ? oe.userAgent : i), et = oe && oe.userAgentData ? oe.userAgentData : n, tt = ve ? Le(xe, ve) : xe, Me = oe && oe.userAgent == Ce;
|
|
5463
5463
|
return this.getBrowser = function() {
|
|
5464
5464
|
var U = {};
|
|
5465
|
-
return U[f] = n, U[m] = n, pe.call(U, Ce, tt.browser), U[d] = K(U[m]), Me &&
|
|
5465
|
+
return U[f] = n, U[m] = n, pe.call(U, Ce, tt.browser), U[d] = K(U[m]), Me && oe && oe.brave && typeof oe.brave.isBrave == c && (U[f] = "Brave"), U;
|
|
5466
5466
|
}, this.getCPU = function() {
|
|
5467
5467
|
var U = {};
|
|
5468
5468
|
return U[C] = n, pe.call(U, Ce, tt.cpu), U;
|
|
5469
5469
|
}, this.getDevice = function() {
|
|
5470
5470
|
var U = {};
|
|
5471
|
-
return U[p] = n, U[_] = n, U[h] = n, pe.call(U, Ce, tt.device), Me && !U[h] && et && et.mobile && (U[h] = E), Me && U[_] == "Macintosh" &&
|
|
5471
|
+
return U[p] = n, U[_] = n, U[h] = n, pe.call(U, Ce, tt.device), Me && !U[h] && et && et.mobile && (U[h] = E), Me && U[_] == "Macintosh" && oe && typeof oe.standalone !== l && oe.maxTouchPoints && oe.maxTouchPoints > 2 && (U[_] = "iPad", U[h] = S), U;
|
|
5472
5472
|
}, this.getEngine = function() {
|
|
5473
5473
|
var U = {};
|
|
5474
5474
|
return U[f] = n, U[m] = n, pe.call(U, Ce, tt.engine), U;
|
|
@@ -5492,8 +5492,8 @@ function Rg() {
|
|
|
5492
5492
|
}, nt.ua.set = function(De) {
|
|
5493
5493
|
Ye.setUA(De);
|
|
5494
5494
|
var ve = Ye.getResult();
|
|
5495
|
-
for (var
|
|
5496
|
-
nt.ua[
|
|
5495
|
+
for (var oe in ve)
|
|
5496
|
+
nt.ua[oe] = ve[oe];
|
|
5497
5497
|
};
|
|
5498
5498
|
}
|
|
5499
5499
|
})(typeof window == "object" ? window : Dg);
|
|
@@ -5724,7 +5724,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5724
5724
|
isSmartTV: !1,
|
|
5725
5725
|
isConsole: !1,
|
|
5726
5726
|
isWearable: !1
|
|
5727
|
-
},
|
|
5727
|
+
}, ue = function(D) {
|
|
5728
5728
|
switch (D) {
|
|
5729
5729
|
case j.Mobile:
|
|
5730
5730
|
return {
|
|
@@ -5767,7 +5767,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5767
5767
|
}, te = function(D) {
|
|
5768
5768
|
var A = ie();
|
|
5769
5769
|
return A && A.platform && (A.platform.indexOf(D) !== -1 || A.platform === "MacIntel" && A.maxTouchPoints > 1 && !window.MSStream);
|
|
5770
|
-
},
|
|
5770
|
+
}, fe = function(D, A, B, Q, Ge) {
|
|
5771
5771
|
return {
|
|
5772
5772
|
isBrowser: D,
|
|
5773
5773
|
browserMajorVersion: q(A.major),
|
|
@@ -5827,9 +5827,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5827
5827
|
};
|
|
5828
5828
|
};
|
|
5829
5829
|
function rt(w) {
|
|
5830
|
-
var D = w ? _(w) : f, A = D.device, B = D.browser, Q = D.engine, Ge = D.os, Ot = D.ua, Kt =
|
|
5830
|
+
var D = w ? _(w) : f, A = D.device, B = D.browser, Q = D.engine, Ge = D.os, Ot = D.ua, Kt = ue(A.type), Ii = Kt.isBrowser, Sv = Kt.isMobile, vv = Kt.isTablet, af = Kt.isSmartTV, of = Kt.isConsole, sf = Kt.isWearable, cf = Kt.isEmbedded;
|
|
5831
5831
|
if (Ii)
|
|
5832
|
-
return
|
|
5832
|
+
return fe(Ii, B, Q, Ge, Ot);
|
|
5833
5833
|
if (af)
|
|
5834
5834
|
return Se(af, Q, Ge, Ot);
|
|
5835
5835
|
if (of)
|
|
@@ -5895,7 +5895,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5895
5895
|
}, ve = function(D) {
|
|
5896
5896
|
var A = D.name;
|
|
5897
5897
|
return q(A);
|
|
5898
|
-
},
|
|
5898
|
+
}, oe = function(D) {
|
|
5899
5899
|
var A = D.name;
|
|
5900
5900
|
return A === Z.Chrome;
|
|
5901
5901
|
}, Ce = function(D) {
|
|
@@ -5913,7 +5913,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5913
5913
|
}, U = function(D) {
|
|
5914
5914
|
var A = D.name;
|
|
5915
5915
|
return A === Z.Safari || A === Z.MobileSafari;
|
|
5916
|
-
},
|
|
5916
|
+
}, se = function(D) {
|
|
5917
5917
|
var A = D.name;
|
|
5918
5918
|
return A === Z.MobileSafari;
|
|
5919
5919
|
}, ce = function(D) {
|
|
@@ -5967,7 +5967,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5967
5967
|
isConsole: K(A),
|
|
5968
5968
|
isWearable: Ue(A),
|
|
5969
5969
|
isEmbedded: ne(A),
|
|
5970
|
-
isMobileSafari:
|
|
5970
|
+
isMobileSafari: se(B) || kt(),
|
|
5971
5971
|
isChromium: et(B),
|
|
5972
5972
|
isMobile: Le(A) || kt(),
|
|
5973
5973
|
isMobileOnly: ze(A),
|
|
@@ -5977,7 +5977,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5977
5977
|
isAndroid: Ae(Q),
|
|
5978
5978
|
isWinPhone: nt(Q),
|
|
5979
5979
|
isIOS: Ye(Q) || kt(),
|
|
5980
|
-
isChrome:
|
|
5980
|
+
isChrome: oe(B),
|
|
5981
5981
|
isFirefox: Ce(B),
|
|
5982
5982
|
isSafari: U(B),
|
|
5983
5983
|
isOpera: ce(B),
|
|
@@ -6008,7 +6008,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6008
6008
|
isSamsungBrowser: ke(B)
|
|
6009
6009
|
};
|
|
6010
6010
|
}
|
|
6011
|
-
var $n = $e(c), Zr = K(c), wt = Ue(c), qt = ne(c), hi =
|
|
6011
|
+
var $n = $e(c), Zr = K(c), wt = Ue(c), qt = ne(c), hi = se(i) || kt(), pi = et(i), H = Le(c) || kt(), Y = ze(c), F = Xe(c) || kt(), L = Ie(c), z = Ie(c), ye = Ae(s), Ee = nt(s), dt = Ye(s) || kt(), Rt = oe(i), Nt = Ce(i), zt = U(i), X = ce(i), gt = me(i), Sr = De(s), ma = ve(s), mi = at(i), Ei = st(i), Ea = mt(i), US = pe(c), BS = Be(c), xS = bt(l), $S = Jt(l), GS = Pr(u), ZS = tt(i) || Gr(u), jS = Me(i), qS = we(c), zS = xn(), KS = kt(), WS = er(), YS = pa(), XS = Bn(), QS = Gr(u), JS = tt(i) && !Gr(u), ev = xe(s), tv = Qe(s), rv = Te(i), nv = ke(i), av = function(D) {
|
|
6012
6012
|
if (!D || typeof D != "string") {
|
|
6013
6013
|
console.error("No valid user agent string was provided");
|
|
6014
6014
|
return;
|
|
@@ -6216,7 +6216,7 @@ function vC(e, t) {
|
|
|
6216
6216
|
});
|
|
6217
6217
|
}
|
|
6218
6218
|
function DC() {
|
|
6219
|
-
return
|
|
6219
|
+
return ae(this, null, function* () {
|
|
6220
6220
|
const t = (yield navigator.mediaDevices.enumerateDevices()).filter((n) => n.kind === "videoinput"), r = t.every((n) => n.label !== "");
|
|
6221
6221
|
return {
|
|
6222
6222
|
videoDevices: t,
|
|
@@ -6229,7 +6229,7 @@ function Ng(e, t) {
|
|
|
6229
6229
|
return t.some((n) => r.includes(n));
|
|
6230
6230
|
}
|
|
6231
6231
|
function RC(e) {
|
|
6232
|
-
return
|
|
6232
|
+
return ae(this, null, function* () {
|
|
6233
6233
|
const t = {
|
|
6234
6234
|
frontCameras: [],
|
|
6235
6235
|
backCameras: []
|
|
@@ -6290,7 +6290,7 @@ const Cu = (e) => {
|
|
|
6290
6290
|
e.getTracks().forEach((t) => t.stop());
|
|
6291
6291
|
};
|
|
6292
6292
|
function AC(e, t, r) {
|
|
6293
|
-
return
|
|
6293
|
+
return ae(this, null, function* () {
|
|
6294
6294
|
const n = {
|
|
6295
6295
|
status: ct.PREPARING,
|
|
6296
6296
|
stream: null,
|
|
@@ -6388,7 +6388,7 @@ function Zt(e, t) {
|
|
|
6388
6388
|
return n;
|
|
6389
6389
|
}
|
|
6390
6390
|
function TC(e) {
|
|
6391
|
-
return
|
|
6391
|
+
return ae(this, null, function* () {
|
|
6392
6392
|
return new Promise((t) => setTimeout(t, e));
|
|
6393
6393
|
});
|
|
6394
6394
|
}
|
|
@@ -6409,42 +6409,48 @@ const OC = (e) => {
|
|
|
6409
6409
|
} catch (e) {
|
|
6410
6410
|
return window.location.origin;
|
|
6411
6411
|
}
|
|
6412
|
-
}, P1 = (e) => {
|
|
6412
|
+
}, P1 = (e) => ae(null, null, function* () {
|
|
6413
|
+
var t;
|
|
6413
6414
|
let {
|
|
6414
|
-
cameras:
|
|
6415
|
-
cameraID:
|
|
6416
|
-
sdkVersion:
|
|
6417
|
-
serviceUrl:
|
|
6418
|
-
customMetadata:
|
|
6415
|
+
cameras: r,
|
|
6416
|
+
cameraID: n,
|
|
6417
|
+
sdkVersion: a,
|
|
6418
|
+
serviceUrl: i,
|
|
6419
|
+
customMetadata: o
|
|
6419
6420
|
} = e;
|
|
6420
|
-
const
|
|
6421
|
+
const c = navigator;
|
|
6422
|
+
let l = ut.osName, s = ut.osVersion, u = null;
|
|
6423
|
+
if ((t = c.userAgentData) !== null && t !== void 0 && t.getHighEntropyValues)
|
|
6424
|
+
try {
|
|
6425
|
+
var d, _;
|
|
6426
|
+
const h = yield c.userAgentData.getHighEntropyValues(["platform", "platformVersion"]);
|
|
6427
|
+
l = String((d = (_ = h.platform) !== null && _ !== void 0 ? _ : c.userAgentData.platform) !== null && d !== void 0 ? d : ut.osName), s = h.platformVersion ? String(h.platformVersion) : ut.osVersion, u = h;
|
|
6428
|
+
} catch (h) {
|
|
6429
|
+
u = null;
|
|
6430
|
+
}
|
|
6431
|
+
const f = {
|
|
6421
6432
|
platform: "Web",
|
|
6422
|
-
osVersion: "".concat(
|
|
6423
|
-
sdkVersion:
|
|
6433
|
+
osVersion: "".concat(s),
|
|
6434
|
+
sdkVersion: a,
|
|
6424
6435
|
hostAppId: Pg(),
|
|
6425
6436
|
userID: OC(ZI),
|
|
6426
|
-
deviceModel: "".concat(
|
|
6427
|
-
hostAppVersion: "".concat(ut.browserName, "/").concat(ut.fullBrowserVersion)
|
|
6428
|
-
currentCameraInfo: {
|
|
6429
|
-
cameraID: r
|
|
6430
|
-
}
|
|
6437
|
+
deviceModel: "".concat(l, "/").concat(s, " ").concat(ut.browserName, "/").concat(ut.fullBrowserVersion),
|
|
6438
|
+
hostAppVersion: "".concat(ut.browserName, "/").concat(ut.fullBrowserVersion)
|
|
6431
6439
|
};
|
|
6432
|
-
|
|
6433
|
-
cameraID:
|
|
6434
|
-
label:
|
|
6435
|
-
groupId:
|
|
6436
|
-
facing:
|
|
6437
|
-
}))),
|
|
6438
|
-
cameraID:
|
|
6439
|
-
})
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
return i && i instanceof Object && Object.keys(i).length > 0 && (o.customMetadata = i), o;
|
|
6447
|
-
};
|
|
6440
|
+
if (u && (f.rawCH = u), r && (f.cameraState = r.map((h) => ({
|
|
6441
|
+
cameraID: h.deviceId,
|
|
6442
|
+
label: h.label,
|
|
6443
|
+
groupId: h.groupId,
|
|
6444
|
+
facing: h.facing === or.user ? "front" : "back"
|
|
6445
|
+
}))), i && (f.serviceUrl = i), n && (f.currentCameraInfo = {
|
|
6446
|
+
cameraID: n
|
|
6447
|
+
}), c) {
|
|
6448
|
+
f.rawUA = c.userAgent;
|
|
6449
|
+
const h = c.deviceMemory;
|
|
6450
|
+
typeof h == "number" && (f.ramTotalGB = h);
|
|
6451
|
+
}
|
|
6452
|
+
return o && o instanceof Object && Object.keys(o).length > 0 && (f.customMetadata = o), f;
|
|
6453
|
+
});
|
|
6448
6454
|
function Sa(e, t, r) {
|
|
6449
6455
|
return (t = wg(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
6450
6456
|
}
|
|
@@ -6590,7 +6596,7 @@ function Bg() {
|
|
|
6590
6596
|
}, [c]), He(() => {
|
|
6591
6597
|
let f = !0;
|
|
6592
6598
|
const h = n === ct.PREPARING || n === ct.REQUESTING;
|
|
6593
|
-
return !s || !h ? void 0 : (
|
|
6599
|
+
return !s || !h ? void 0 : (ae(null, null, function* () {
|
|
6594
6600
|
try {
|
|
6595
6601
|
const m = ut.isFirefox ? $I : 0;
|
|
6596
6602
|
yield TC(m);
|
|
@@ -6677,7 +6683,7 @@ class jg {
|
|
|
6677
6683
|
videoBitsPerSecond: this.bitrate
|
|
6678
6684
|
}), this.recorder.addEventListener("dataavailable", this.setChunk.bind(this)), this.recorder.addEventListener("error", this.errorHandle.bind(this)), this.delay ? this.delayTimeout = setTimeout(() => {
|
|
6679
6685
|
this.delayTimeout = null, this.startRecording();
|
|
6680
|
-
}, this.delay) : this.startRecording(), this.duration && (this.durationTimeout = setTimeout(() =>
|
|
6686
|
+
}, this.delay) : this.startRecording(), this.duration && (this.durationTimeout = setTimeout(() => ae(this, null, function* () {
|
|
6681
6687
|
this.durationTimeout = null, this.record = yield this.getRecord();
|
|
6682
6688
|
}), this.delay + this.duration)), jn("MediaRecorder initialized: { duration: ".concat(this.duration, ", delay: ").concat(this.delay, ", mimeType: ").concat(this.mimeType, " }"));
|
|
6683
6689
|
}
|
|
@@ -6688,7 +6694,7 @@ class jg {
|
|
|
6688
6694
|
this.delayTimeout && clearTimeout(this.delayTimeout), this.durationTimeout && clearTimeout(this.durationTimeout);
|
|
6689
6695
|
}
|
|
6690
6696
|
getRecord() {
|
|
6691
|
-
return
|
|
6697
|
+
return ae(this, null, function* () {
|
|
6692
6698
|
if (this.record) {
|
|
6693
6699
|
const t = this.record;
|
|
6694
6700
|
return this.record = null, t;
|
|
@@ -6696,7 +6702,7 @@ class jg {
|
|
|
6696
6702
|
return !this.recorder || this.recorder.state === "inactive" ? null : (this.stopRecord(), new Promise((t) => {
|
|
6697
6703
|
if (!this.recorder)
|
|
6698
6704
|
return t(null);
|
|
6699
|
-
this.recorder.onstop = () =>
|
|
6705
|
+
this.recorder.onstop = () => ae(this, null, function* () {
|
|
6700
6706
|
const r = yield this.getVideoData();
|
|
6701
6707
|
jn("Video record resolved"), t(r);
|
|
6702
6708
|
});
|
|
@@ -6718,7 +6724,7 @@ class jg {
|
|
|
6718
6724
|
this.chunks.push(t.data);
|
|
6719
6725
|
}
|
|
6720
6726
|
getVideoData() {
|
|
6721
|
-
return
|
|
6727
|
+
return ae(this, null, function* () {
|
|
6722
6728
|
const t = new Blob(this.chunks, {
|
|
6723
6729
|
type: this.mimeType
|
|
6724
6730
|
});
|
|
@@ -7806,8 +7812,8 @@ function w8(e) {
|
|
|
7806
7812
|
};
|
|
7807
7813
|
if (h && E.current && r) {
|
|
7808
7814
|
var $, ee, G;
|
|
7809
|
-
const Z = (($ = l == null ? void 0 : l.top) !== null && $ !== void 0 ? $ : 0) + ((ee = i == null ? void 0 : i.height) !== null && ee !== void 0 ? ee : 0) + E.current.clientHeight + 18, re = ((G = l == null ? void 0 : l.main) !== null && G !== void 0 ? G : 0) > r.height - Z ? O.clientHeight / 2 - 18 - E.current.clientHeight : O.clientHeight / 2 + 18,
|
|
7810
|
-
x(O, "--message-top", s ?
|
|
7815
|
+
const Z = (($ = l == null ? void 0 : l.top) !== null && $ !== void 0 ? $ : 0) + ((ee = i == null ? void 0 : i.height) !== null && ee !== void 0 ? ee : 0) + E.current.clientHeight + 18, re = ((G = l == null ? void 0 : l.main) !== null && G !== void 0 ? G : 0) > r.height - Z ? O.clientHeight / 2 - 18 - E.current.clientHeight : O.clientHeight / 2 + 18, ue = O.clientHeight / 2 - E.current.clientHeight - 18 / 3;
|
|
7816
|
+
x(O, "--message-top", s ? ue : re);
|
|
7811
7817
|
}
|
|
7812
7818
|
if (N && E.current) {
|
|
7813
7819
|
const Z = ((h && r ? r.height : c.height) - E.current.clientHeight) / 2 * d - M;
|
|
@@ -7940,12 +7946,12 @@ function V8(e) {
|
|
|
7940
7946
|
newLayout: g
|
|
7941
7947
|
} = Dt(), {
|
|
7942
7948
|
translate: R
|
|
7943
|
-
} = on.useLocalize(), [y, T] = Re(v === void 0), O = it(null), b = it(null), N = it(null), V = it(null), M = _ && u && y, x = I, $ = d !== or.environment && E, ee = a && S, G = C, j = M || !!f || x, Z = $ || ee, W = M || !!f || $ || ee, re = W || x,
|
|
7949
|
+
} = on.useLocalize(), [y, T] = Re(v === void 0), O = it(null), b = it(null), N = it(null), V = it(null), M = _ && u && y, x = I, $ = d !== or.environment && E, ee = a && S, G = C, j = M || !!f || x, Z = $ || ee, W = M || !!f || $ || ee, re = W || x, ue = {
|
|
7944
7950
|
"--skip-position": ((t = m === Fa.Ltr && g ? s == null ? void 0 : s.right : s == null ? void 0 : s.left) !== null && t !== void 0 ? t : 0) + pR + "px"
|
|
7945
7951
|
};
|
|
7946
7952
|
return He(() => {
|
|
7947
|
-
var J, q, ie, te,
|
|
7948
|
-
const Se = ((J = O.current) === null || J === void 0 ? void 0 : J.offsetWidth) || 0, Ne = ((q = b.current) === null || q === void 0 ? void 0 : q.offsetWidth) || 0, ge = ((ie = N.current) === null || ie === void 0 ? void 0 : ie.offsetWidth) || 0, je = ((te = V.current) === null || te === void 0 ? void 0 : te.offsetWidth) || 0, rt = ((
|
|
7953
|
+
var J, q, ie, te, fe, de;
|
|
7954
|
+
const Se = ((J = O.current) === null || J === void 0 ? void 0 : J.offsetWidth) || 0, Ne = ((q = b.current) === null || q === void 0 ? void 0 : q.offsetWidth) || 0, ge = ((ie = N.current) === null || ie === void 0 ? void 0 : ie.offsetWidth) || 0, je = ((te = V.current) === null || te === void 0 ? void 0 : te.offsetWidth) || 0, rt = ((fe = V.current) === null || fe === void 0 ? void 0 : fe.offsetHeight) || 0, ze = ((de = O.current) === null || de === void 0 ? void 0 : de.offsetHeight) || 0, Xe = i ? Math.max(Se, Ne, ge, je) : rt;
|
|
7949
7955
|
p({
|
|
7950
7956
|
top: ze,
|
|
7951
7957
|
main: i && !W && !G ? 0 : Xe
|
|
@@ -7961,7 +7967,7 @@ function V8(e) {
|
|
|
7961
7967
|
}, [v]), P("div", {
|
|
7962
7968
|
part: "controls-container",
|
|
7963
7969
|
className: Lt["controls-container"],
|
|
7964
|
-
style: i ?
|
|
7970
|
+
style: i ? ue : void 0,
|
|
7965
7971
|
children: [P("div", {
|
|
7966
7972
|
part: "controls-top-buttons",
|
|
7967
7973
|
className: Lt["top-functional-buttons"],
|
|
@@ -8140,7 +8146,7 @@ function MC(e) {
|
|
|
8140
8146
|
manualMultipageMode: R
|
|
8141
8147
|
} = Dt(), y = it(null), T = it(null), [O, b] = Re(!1), [N, V] = Re(null), [M, x] = Re(null), [$, ee] = Re(null), G = !!(c.sortedDevices && c.sortedDevices.frontCameras.length + c.sortedDevices.backCameras.length > gR), j = r === be.HOLD || r === be.FOCUS || r === be.RESOLUTION || r === be.PROCESSING || r === be.GLARE, Z = r !== be.SERVICE_PREPARING, W = c.videoStatus === ct.PLAY, {
|
|
8142
8148
|
icon: re,
|
|
8143
|
-
title:
|
|
8149
|
+
title: ue
|
|
8144
8150
|
} = zg(r), J = l.videoParams.width > l.videoParams.height, q = S ? l.videoContainerParams : M;
|
|
8145
8151
|
return He(() => {
|
|
8146
8152
|
r !== be.START_NEXT_PAGE || R || b(!0);
|
|
@@ -8148,10 +8154,10 @@ function MC(e) {
|
|
|
8148
8154
|
const ie = y.current;
|
|
8149
8155
|
if (!W || !ie || !Z) return;
|
|
8150
8156
|
const te = Op(l.videoParams.width, l.videoParams.height, l.videoContainerParams.width, l.videoContainerParams.height, l.videoParams.width, l.videoParams.height, 0, 0, zi.contain);
|
|
8151
|
-
let
|
|
8157
|
+
let fe = te.width, de = te.height, Se = te.left, Ne = te.right, ge = te.top;
|
|
8152
8158
|
const je = te.stroke, rt = S ? 0 : Zn / 2;
|
|
8153
|
-
if (S || (
|
|
8154
|
-
width:
|
|
8159
|
+
if (S || (fe += Zn, de += Zn, Se -= Zn / 2, Ne -= Zn / 2, ge -= Zn / 2, ie.style.width = "".concat(fe, "px"), ie.style.height = "".concat(de, "px"), ie.style.top = "".concat(ge, "px"), ie.style.left = "".concat(Se, "px"), ie.style.right = "".concat(Ne, "px")), x({
|
|
8160
|
+
width: fe,
|
|
8155
8161
|
height: de,
|
|
8156
8162
|
left: Se,
|
|
8157
8163
|
right: Ne,
|
|
@@ -8166,12 +8172,12 @@ function MC(e) {
|
|
|
8166
8172
|
if (l.videoElement.style.position = "absolute", J) {
|
|
8167
8173
|
var Ae, xe;
|
|
8168
8174
|
const nt = (Ae = (xe = T.current) === null || xe === void 0 ? void 0 : xe.offsetHeight) !== null && Ae !== void 0 ? Ae : 0, Ye = l.videoContainerParams.width - $.main, De = t === Fa.Rtl ? $.main : 0;
|
|
8169
|
-
let ve = te.width,
|
|
8175
|
+
let ve = te.width, oe = te.height;
|
|
8170
8176
|
Ie.width > Ye - 20 && (pe = Ye - 20, Be = Math.round(pe * (Ie.height / Ie.width)), ve = Math.round(te.width * (pe / Ie.width)));
|
|
8171
8177
|
const Ce = (Ye - pe) / 2 * ((g != null ? g : 1) - 1);
|
|
8172
|
-
we = (l.videoContainerParams.height - Be) / 2, we < nt && (we = nt, Be = l.videoContainerParams.height - we * 2, pe = Math.round(Be * (Ie.width / Ie.height)),
|
|
8178
|
+
we = (l.videoContainerParams.height - Be) / 2, we < nt && (we = nt, Be = l.videoContainerParams.height - we * 2, pe = Math.round(Be * (Ie.width / Ie.height)), oe = Math.round(te.height * (Be / Ie.height))), K = (Ye - pe) / 2 + Ce + De, ne = l.videoContainerParams.width - (K + pe);
|
|
8173
8179
|
const et = Math.round(K - (ve - pe) / 2);
|
|
8174
|
-
l.videoElement.style.width = "".concat(ve, "px"), l.videoElement.style.left = "".concat(et, "px"), l.videoElement.style.height = "".concat(
|
|
8180
|
+
l.videoElement.style.width = "".concat(ve, "px"), l.videoElement.style.left = "".concat(et, "px"), l.videoElement.style.height = "".concat(oe, "px"), l.videoElement.style.top = "auto";
|
|
8175
8181
|
} else {
|
|
8176
8182
|
const Qe = l.videoContainerParams.height - $.top - $.main;
|
|
8177
8183
|
let nt = te.height;
|
|
@@ -8211,7 +8217,7 @@ function MC(e) {
|
|
|
8211
8217
|
isDocumentAvailable: j
|
|
8212
8218
|
}), P(w8, {
|
|
8213
8219
|
layoutParams: q,
|
|
8214
|
-
title:
|
|
8220
|
+
title: ue,
|
|
8215
8221
|
icon: re,
|
|
8216
8222
|
maskParams: N,
|
|
8217
8223
|
videoSize: M,
|
|
@@ -9606,7 +9612,7 @@ const YC = (e) => {
|
|
|
9606
9612
|
};
|
|
9607
9613
|
return new ReadableStream({
|
|
9608
9614
|
pull(s) {
|
|
9609
|
-
return
|
|
9615
|
+
return ae(this, null, function* () {
|
|
9610
9616
|
try {
|
|
9611
9617
|
const { done: u, value: d } = yield a.next();
|
|
9612
9618
|
if (u) {
|
|
@@ -9649,7 +9655,7 @@ const YC = (e) => {
|
|
|
9649
9655
|
const { fetch: t, Request: r, Response: n } = e, a = t ? Ti(t) : typeof fetch == "function", i = Ti(r), o = Ti(n);
|
|
9650
9656
|
if (!a)
|
|
9651
9657
|
return !1;
|
|
9652
|
-
const c = a && Ti(tm), l = a && (typeof rm == "function" ? /* @__PURE__ */ ((h) => (p) => h.encode(p))(new rm()) : (h) =>
|
|
9658
|
+
const c = a && Ti(tm), l = a && (typeof rm == "function" ? /* @__PURE__ */ ((h) => (p) => h.encode(p))(new rm()) : (h) => ae(null, null, function* () {
|
|
9653
9659
|
return new Uint8Array(yield new r(h).arrayBuffer());
|
|
9654
9660
|
})), s = i && c && nm(() => {
|
|
9655
9661
|
let h = !1;
|
|
@@ -9672,7 +9678,7 @@ const YC = (e) => {
|
|
|
9672
9678
|
throw new Oe(`Response type '${h}' is not supported`, Oe.ERR_NOT_SUPPORT, m);
|
|
9673
9679
|
});
|
|
9674
9680
|
});
|
|
9675
|
-
const _ = (h) =>
|
|
9681
|
+
const _ = (h) => ae(null, null, function* () {
|
|
9676
9682
|
if (h == null)
|
|
9677
9683
|
return 0;
|
|
9678
9684
|
if (k.isBlob(h))
|
|
@@ -9686,11 +9692,11 @@ const YC = (e) => {
|
|
|
9686
9692
|
return h.byteLength;
|
|
9687
9693
|
if (k.isURLSearchParams(h) && (h = h + ""), k.isString(h))
|
|
9688
9694
|
return (yield l(h)).byteLength;
|
|
9689
|
-
}), f = (h, p) =>
|
|
9695
|
+
}), f = (h, p) => ae(null, null, function* () {
|
|
9690
9696
|
const m = k.toFiniteNumber(h.getContentLength());
|
|
9691
9697
|
return m != null ? m : _(p);
|
|
9692
9698
|
});
|
|
9693
|
-
return (h) =>
|
|
9699
|
+
return (h) => ae(null, null, function* () {
|
|
9694
9700
|
let {
|
|
9695
9701
|
url: p,
|
|
9696
9702
|
method: m,
|
|
@@ -9719,11 +9725,11 @@ const YC = (e) => {
|
|
|
9719
9725
|
duplex: "half"
|
|
9720
9726
|
}), re;
|
|
9721
9727
|
if (k.isFormData(C) && (re = W.headers.get("content-type")) && y.setContentType(re), W.body) {
|
|
9722
|
-
const [
|
|
9728
|
+
const [ue, J] = Yp(
|
|
9723
9729
|
x,
|
|
9724
9730
|
Xi(Xp(g))
|
|
9725
9731
|
);
|
|
9726
|
-
C = Jp(W.body, em,
|
|
9732
|
+
C = Jp(W.body, em, ue, J);
|
|
9727
9733
|
}
|
|
9728
9734
|
}
|
|
9729
9735
|
k.isString(T) || (T = T ? "include" : "omit");
|
|
@@ -9743,12 +9749,12 @@ const YC = (e) => {
|
|
|
9743
9749
|
["status", "statusText", "headers"].forEach((q) => {
|
|
9744
9750
|
W[q] = G[q];
|
|
9745
9751
|
});
|
|
9746
|
-
const re = k.toFiniteNumber(G.headers.get("content-length")), [
|
|
9752
|
+
const re = k.toFiniteNumber(G.headers.get("content-length")), [ue, J] = v && Yp(
|
|
9747
9753
|
re,
|
|
9748
9754
|
Xi(Xp(v), !0)
|
|
9749
9755
|
) || [];
|
|
9750
9756
|
G = new n(
|
|
9751
|
-
Jp(G.body, em,
|
|
9757
|
+
Jp(G.body, em, ue, () => {
|
|
9752
9758
|
J && J(), M && M();
|
|
9753
9759
|
}),
|
|
9754
9760
|
W
|
|
@@ -9932,7 +9938,7 @@ let Rn = class {
|
|
|
9932
9938
|
* @returns {Promise} The Promise to be fulfilled
|
|
9933
9939
|
*/
|
|
9934
9940
|
request(e, t) {
|
|
9935
|
-
return
|
|
9941
|
+
return ae(this, null, function* () {
|
|
9936
9942
|
try {
|
|
9937
9943
|
return yield this._request(e, t);
|
|
9938
9944
|
} catch (r) {
|
|
@@ -10289,7 +10295,7 @@ const gr = function(e, ...t) {
|
|
|
10289
10295
|
* @param {*} [options] Override http request option.
|
|
10290
10296
|
* @throws {RequiredError}
|
|
10291
10297
|
*/
|
|
10292
|
-
healthz: (n, ...a) =>
|
|
10298
|
+
healthz: (n, ...a) => ae(null, [n, ...a], function* (t, r = {}) {
|
|
10293
10299
|
const i = "/api/healthz", o = new URL(i, Rr);
|
|
10294
10300
|
let c;
|
|
10295
10301
|
e && (c = e.baseOptions);
|
|
@@ -10309,7 +10315,7 @@ const gr = function(e, ...t) {
|
|
|
10309
10315
|
* @deprecated
|
|
10310
10316
|
* @throws {RequiredError}
|
|
10311
10317
|
*/
|
|
10312
|
-
ping: (n, ...a) =>
|
|
10318
|
+
ping: (n, ...a) => ae(null, [n, ...a], function* (t, r = {}) {
|
|
10313
10319
|
const i = "/api/ping", o = new URL(i, Rr);
|
|
10314
10320
|
let c;
|
|
10315
10321
|
e && (c = e.baseOptions);
|
|
@@ -10328,7 +10334,7 @@ const gr = function(e, ...t) {
|
|
|
10328
10334
|
* @param {*} [options] Override http request option.
|
|
10329
10335
|
* @throws {RequiredError}
|
|
10330
10336
|
*/
|
|
10331
|
-
readyz: (n, ...a) =>
|
|
10337
|
+
readyz: (n, ...a) => ae(null, [n, ...a], function* (t, r = {}) {
|
|
10332
10338
|
const i = "/api/readyz", o = new URL(i, Rr);
|
|
10333
10339
|
let c;
|
|
10334
10340
|
e && (c = e.baseOptions);
|
|
@@ -10352,7 +10358,7 @@ const gr = function(e, ...t) {
|
|
|
10352
10358
|
* @throws {RequiredError}
|
|
10353
10359
|
*/
|
|
10354
10360
|
healthz(n, a) {
|
|
10355
|
-
return
|
|
10361
|
+
return ae(this, null, function* () {
|
|
10356
10362
|
var l, s, u;
|
|
10357
10363
|
const i = yield t.healthz(n, a), o = (l = e == null ? void 0 : e.serverIndex) != null ? l : 0, c = (u = (s = Dr["HealthcheckApi.healthz"]) == null ? void 0 : s[o]) == null ? void 0 : u.url;
|
|
10358
10364
|
return (d, _) => Tr(i, Je, ir, e)(d, c || _);
|
|
@@ -10367,7 +10373,7 @@ const gr = function(e, ...t) {
|
|
|
10367
10373
|
* @throws {RequiredError}
|
|
10368
10374
|
*/
|
|
10369
10375
|
ping(n, a) {
|
|
10370
|
-
return
|
|
10376
|
+
return ae(this, null, function* () {
|
|
10371
10377
|
var l, s, u;
|
|
10372
10378
|
const i = yield t.ping(n, a), o = (l = e == null ? void 0 : e.serverIndex) != null ? l : 0, c = (u = (s = Dr["HealthcheckApi.ping"]) == null ? void 0 : s[o]) == null ? void 0 : u.url;
|
|
10373
10379
|
return (d, _) => Tr(i, Je, ir, e)(d, c || _);
|
|
@@ -10381,7 +10387,7 @@ const gr = function(e, ...t) {
|
|
|
10381
10387
|
* @throws {RequiredError}
|
|
10382
10388
|
*/
|
|
10383
10389
|
readyz(n, a) {
|
|
10384
|
-
return
|
|
10390
|
+
return ae(this, null, function* () {
|
|
10385
10391
|
var l, s, u;
|
|
10386
10392
|
const i = yield t.readyz(n, a), o = (l = e == null ? void 0 : e.serverIndex) != null ? l : 0, c = (u = (s = Dr["HealthcheckApi.readyz"]) == null ? void 0 : s[o]) == null ? void 0 : u.url;
|
|
10387
10393
|
return (d, _) => Tr(i, Je, ir, e)(d, c || _);
|
|
@@ -10435,7 +10441,7 @@ const PT = function(e) {
|
|
|
10435
10441
|
* @param {*} [options] Override http request option.
|
|
10436
10442
|
* @throws {RequiredError}
|
|
10437
10443
|
*/
|
|
10438
|
-
apiProcess: (a, i, ...o) =>
|
|
10444
|
+
apiProcess: (a, i, ...o) => ae(null, [a, i, ...o], function* (t, r, n = {}) {
|
|
10439
10445
|
Wr("apiProcess", "processRequest", t);
|
|
10440
10446
|
const c = "/api/process", l = new URL(c, Rr);
|
|
10441
10447
|
let s;
|
|
@@ -10461,7 +10467,7 @@ const PT = function(e) {
|
|
|
10461
10467
|
* @throws {RequiredError}
|
|
10462
10468
|
*/
|
|
10463
10469
|
apiProcess(n, a, i) {
|
|
10464
|
-
return
|
|
10470
|
+
return ae(this, null, function* () {
|
|
10465
10471
|
var s, u, d;
|
|
10466
10472
|
const o = yield t.apiProcess(n, a, i), c = (s = e == null ? void 0 : e.serverIndex) != null ? s : 0, l = (d = (u = Dr["ProcessApi.apiProcess"]) == null ? void 0 : u[c]) == null ? void 0 : d.url;
|
|
10467
10473
|
return (_, f) => Tr(o, Je, ir, e)(_, l || f);
|
|
@@ -10492,7 +10498,7 @@ const VT = function(e) {
|
|
|
10492
10498
|
* @param {*} [options] Override http request option.
|
|
10493
10499
|
* @throws {RequiredError}
|
|
10494
10500
|
*/
|
|
10495
|
-
apiV2TagTagIdDelete: (n, ...a) =>
|
|
10501
|
+
apiV2TagTagIdDelete: (n, ...a) => ae(null, [n, ...a], function* (t, r = {}) {
|
|
10496
10502
|
Wr("apiV2TagTagIdDelete", "tagId", t);
|
|
10497
10503
|
const i = "/api/v2/tag/{tagId}".replace("{tagId}", encodeURIComponent(String(t))), o = new URL(i, Rr);
|
|
10498
10504
|
let c;
|
|
@@ -10512,7 +10518,7 @@ const VT = function(e) {
|
|
|
10512
10518
|
* @param {*} [options] Override http request option.
|
|
10513
10519
|
* @throws {RequiredError}
|
|
10514
10520
|
*/
|
|
10515
|
-
apiV2TagTagIdTransactionsGet: (n, ...a) =>
|
|
10521
|
+
apiV2TagTagIdTransactionsGet: (n, ...a) => ae(null, [n, ...a], function* (t, r = {}) {
|
|
10516
10522
|
Wr("apiV2TagTagIdTransactionsGet", "tagId", t);
|
|
10517
10523
|
const i = "/api/v2/tag/{tagId}/transactions".replace("{tagId}", encodeURIComponent(String(t))), o = new URL(i, Rr);
|
|
10518
10524
|
let c;
|
|
@@ -10533,7 +10539,7 @@ const VT = function(e) {
|
|
|
10533
10539
|
* @param {*} [options] Override http request option.
|
|
10534
10540
|
* @throws {RequiredError}
|
|
10535
10541
|
*/
|
|
10536
|
-
apiV2TransactionTransactionIdFileGet: (a, i, ...o) =>
|
|
10542
|
+
apiV2TransactionTransactionIdFileGet: (a, i, ...o) => ae(null, [a, i, ...o], function* (t, r, n = {}) {
|
|
10537
10543
|
Wr("apiV2TransactionTransactionIdFileGet", "transactionId", t), Wr("apiV2TransactionTransactionIdFileGet", "name", r);
|
|
10538
10544
|
const c = "/api/v2/transaction/{transactionId}/file".replace("{transactionId}", encodeURIComponent(String(t))), l = new URL(c, Rr);
|
|
10539
10545
|
let s;
|
|
@@ -10553,7 +10559,7 @@ const VT = function(e) {
|
|
|
10553
10559
|
* @param {*} [options] Override http request option.
|
|
10554
10560
|
* @throws {RequiredError}
|
|
10555
10561
|
*/
|
|
10556
|
-
apiV2TransactionTransactionIdGet: (n, ...a) =>
|
|
10562
|
+
apiV2TransactionTransactionIdGet: (n, ...a) => ae(null, [n, ...a], function* (t, r = {}) {
|
|
10557
10563
|
Wr("apiV2TransactionTransactionIdGet", "transactionId", t);
|
|
10558
10564
|
const i = "/api/v2/transaction/{transactionId}".replace("{transactionId}", encodeURIComponent(String(t))), o = new URL(i, Rr);
|
|
10559
10565
|
let c;
|
|
@@ -10575,7 +10581,7 @@ const VT = function(e) {
|
|
|
10575
10581
|
* @param {*} [options] Override http request option.
|
|
10576
10582
|
* @throws {RequiredError}
|
|
10577
10583
|
*/
|
|
10578
|
-
apiV2TransactionTransactionIdProcessPost: (i, o, c, ...l) =>
|
|
10584
|
+
apiV2TransactionTransactionIdProcessPost: (i, o, c, ...l) => ae(null, [i, o, c, ...l], function* (t, r, n, a = {}) {
|
|
10579
10585
|
Wr("apiV2TransactionTransactionIdProcessPost", "transactionId", t), Wr("apiV2TransactionTransactionIdProcessPost", "transactionProcessRequest", r);
|
|
10580
10586
|
const s = "/api/v2/transaction/{transactionId}/process".replace("{transactionId}", encodeURIComponent(String(t))), u = new URL(s, Rr);
|
|
10581
10587
|
let d;
|
|
@@ -10596,7 +10602,7 @@ const VT = function(e) {
|
|
|
10596
10602
|
* @param {*} [options] Override http request option.
|
|
10597
10603
|
* @throws {RequiredError}
|
|
10598
10604
|
*/
|
|
10599
|
-
apiV2TransactionTransactionIdResultsGet: (a, i, ...o) =>
|
|
10605
|
+
apiV2TransactionTransactionIdResultsGet: (a, i, ...o) => ae(null, [a, i, ...o], function* (t, r, n = {}) {
|
|
10600
10606
|
Wr("apiV2TransactionTransactionIdResultsGet", "transactionId", t);
|
|
10601
10607
|
const c = "/api/v2/transaction/{transactionId}/results".replace("{transactionId}", encodeURIComponent(String(t))), l = new URL(c, Rr);
|
|
10602
10608
|
let s;
|
|
@@ -10621,7 +10627,7 @@ const VT = function(e) {
|
|
|
10621
10627
|
* @throws {RequiredError}
|
|
10622
10628
|
*/
|
|
10623
10629
|
apiV2TagTagIdDelete(n, a) {
|
|
10624
|
-
return
|
|
10630
|
+
return ae(this, null, function* () {
|
|
10625
10631
|
var l, s, u;
|
|
10626
10632
|
const i = yield t.apiV2TagTagIdDelete(n, a), o = (l = e == null ? void 0 : e.serverIndex) != null ? l : 0, c = (u = (s = Dr["TransactionApi.apiV2TagTagIdDelete"]) == null ? void 0 : s[o]) == null ? void 0 : u.url;
|
|
10627
10633
|
return (d, _) => Tr(i, Je, ir, e)(d, c || _);
|
|
@@ -10635,7 +10641,7 @@ const VT = function(e) {
|
|
|
10635
10641
|
* @throws {RequiredError}
|
|
10636
10642
|
*/
|
|
10637
10643
|
apiV2TagTagIdTransactionsGet(n, a) {
|
|
10638
|
-
return
|
|
10644
|
+
return ae(this, null, function* () {
|
|
10639
10645
|
var l, s, u;
|
|
10640
10646
|
const i = yield t.apiV2TagTagIdTransactionsGet(n, a), o = (l = e == null ? void 0 : e.serverIndex) != null ? l : 0, c = (u = (s = Dr["TransactionApi.apiV2TagTagIdTransactionsGet"]) == null ? void 0 : s[o]) == null ? void 0 : u.url;
|
|
10641
10647
|
return (d, _) => Tr(i, Je, ir, e)(d, c || _);
|
|
@@ -10650,7 +10656,7 @@ const VT = function(e) {
|
|
|
10650
10656
|
* @throws {RequiredError}
|
|
10651
10657
|
*/
|
|
10652
10658
|
apiV2TransactionTransactionIdFileGet(n, a, i) {
|
|
10653
|
-
return
|
|
10659
|
+
return ae(this, null, function* () {
|
|
10654
10660
|
var s, u, d;
|
|
10655
10661
|
const o = yield t.apiV2TransactionTransactionIdFileGet(n, a, i), c = (s = e == null ? void 0 : e.serverIndex) != null ? s : 0, l = (d = (u = Dr["TransactionApi.apiV2TransactionTransactionIdFileGet"]) == null ? void 0 : u[c]) == null ? void 0 : d.url;
|
|
10656
10662
|
return (_, f) => Tr(o, Je, ir, e)(_, l || f);
|
|
@@ -10664,7 +10670,7 @@ const VT = function(e) {
|
|
|
10664
10670
|
* @throws {RequiredError}
|
|
10665
10671
|
*/
|
|
10666
10672
|
apiV2TransactionTransactionIdGet(n, a) {
|
|
10667
|
-
return
|
|
10673
|
+
return ae(this, null, function* () {
|
|
10668
10674
|
var l, s, u;
|
|
10669
10675
|
const i = yield t.apiV2TransactionTransactionIdGet(n, a), o = (l = e == null ? void 0 : e.serverIndex) != null ? l : 0, c = (u = (s = Dr["TransactionApi.apiV2TransactionTransactionIdGet"]) == null ? void 0 : s[o]) == null ? void 0 : u.url;
|
|
10670
10676
|
return (d, _) => Tr(i, Je, ir, e)(d, c || _);
|
|
@@ -10680,7 +10686,7 @@ const VT = function(e) {
|
|
|
10680
10686
|
* @throws {RequiredError}
|
|
10681
10687
|
*/
|
|
10682
10688
|
apiV2TransactionTransactionIdProcessPost(n, a, i, o) {
|
|
10683
|
-
return
|
|
10689
|
+
return ae(this, null, function* () {
|
|
10684
10690
|
var u, d, _;
|
|
10685
10691
|
const c = yield t.apiV2TransactionTransactionIdProcessPost(n, a, i, o), l = (u = e == null ? void 0 : e.serverIndex) != null ? u : 0, s = (_ = (d = Dr["TransactionApi.apiV2TransactionTransactionIdProcessPost"]) == null ? void 0 : d[l]) == null ? void 0 : _.url;
|
|
10686
10692
|
return (f, h) => Tr(c, Je, ir, e)(f, s || h);
|
|
@@ -10695,7 +10701,7 @@ const VT = function(e) {
|
|
|
10695
10701
|
* @throws {RequiredError}
|
|
10696
10702
|
*/
|
|
10697
10703
|
apiV2TransactionTransactionIdResultsGet(n, a, i) {
|
|
10698
|
-
return
|
|
10704
|
+
return ae(this, null, function* () {
|
|
10699
10705
|
var s, u, d;
|
|
10700
10706
|
const o = yield t.apiV2TransactionTransactionIdResultsGet(n, a, i), c = (s = e == null ? void 0 : e.serverIndex) != null ? s : 0, l = (d = (u = Dr["TransactionApi.apiV2TransactionTransactionIdResultsGet"]) == null ? void 0 : u[c]) == null ? void 0 : d.url;
|
|
10701
10707
|
return (_, f) => Tr(o, Je, ir, e)(_, l || f);
|
|
@@ -10783,7 +10789,7 @@ const FT = function(e) {
|
|
|
10783
10789
|
* @param {*} [options] Override http request option.
|
|
10784
10790
|
* @throws {RequiredError}
|
|
10785
10791
|
*/
|
|
10786
|
-
doclist: (...r) =>
|
|
10792
|
+
doclist: (...r) => ae(null, [...r], function* (t = {}) {
|
|
10787
10793
|
const n = "/api/doclist", a = new URL(n, Rr);
|
|
10788
10794
|
let i;
|
|
10789
10795
|
e && (i = e.baseOptions);
|
|
@@ -10806,7 +10812,7 @@ const FT = function(e) {
|
|
|
10806
10812
|
* @throws {RequiredError}
|
|
10807
10813
|
*/
|
|
10808
10814
|
doclist(n) {
|
|
10809
|
-
return
|
|
10815
|
+
return ae(this, null, function* () {
|
|
10810
10816
|
var c, l, s;
|
|
10811
10817
|
const a = yield t.doclist(n), i = (c = e == null ? void 0 : e.serverIndex) != null ? c : 0, o = (s = (l = Dr["ResourcesApi.doclist"]) == null ? void 0 : l[i]) == null ? void 0 : s.url;
|
|
10812
10818
|
return (u, d) => Tr(a, Je, ir, e)(u, o || d);
|
|
@@ -12417,17 +12423,17 @@ class D6 {
|
|
|
12417
12423
|
this.healthcheckApi = new MT(new Mi(t), r, n), this.processApi = new HT(new Mi(t), r, n), this.transactionApi = new kT(new Mi(t), r, n), this.resourcesApi = new BT(new Mi(t), r, n);
|
|
12418
12424
|
}
|
|
12419
12425
|
doclist(t) {
|
|
12420
|
-
return
|
|
12426
|
+
return ae(this, null, function* () {
|
|
12421
12427
|
return (yield this.resourcesApi.doclist(t)).data;
|
|
12422
12428
|
});
|
|
12423
12429
|
}
|
|
12424
12430
|
ping(t, r) {
|
|
12425
|
-
return
|
|
12431
|
+
return ae(this, null, function* () {
|
|
12426
12432
|
return (yield this.healthcheckApi.ping(t, r)).data;
|
|
12427
12433
|
});
|
|
12428
12434
|
}
|
|
12429
12435
|
health(t, r) {
|
|
12430
|
-
return
|
|
12436
|
+
return ae(this, null, function* () {
|
|
12431
12437
|
return (yield this.healthcheckApi.healthz(t, r)).data;
|
|
12432
12438
|
});
|
|
12433
12439
|
}
|
|
@@ -12440,7 +12446,7 @@ class D6 {
|
|
|
12440
12446
|
* @throws {RequiredError} If some request params are missed
|
|
12441
12447
|
* */
|
|
12442
12448
|
process(t, r, n) {
|
|
12443
|
-
return
|
|
12449
|
+
return ae(this, null, function* () {
|
|
12444
12450
|
let a;
|
|
12445
12451
|
Q9(t) ? (t.processParam || (t.processParam = {
|
|
12446
12452
|
scenario: n6.FULL_PROCESS,
|
|
@@ -12479,7 +12485,7 @@ class D6 {
|
|
|
12479
12485
|
* @throws {RequiredError}
|
|
12480
12486
|
*/
|
|
12481
12487
|
getReprocessTransactionResult(t, r, n) {
|
|
12482
|
-
return
|
|
12488
|
+
return ae(this, null, function* () {
|
|
12483
12489
|
const a = yield this.transactionApi.apiV2TransactionTransactionIdResultsGet(
|
|
12484
12490
|
t,
|
|
12485
12491
|
r,
|
|
@@ -12496,7 +12502,7 @@ class D6 {
|
|
|
12496
12502
|
* @throws {RequiredError}
|
|
12497
12503
|
*/
|
|
12498
12504
|
getTransactionsByTag(t, r) {
|
|
12499
|
-
return
|
|
12505
|
+
return ae(this, null, function* () {
|
|
12500
12506
|
return this.transactionApi.apiV2TagTagIdTransactionsGet(t, r);
|
|
12501
12507
|
});
|
|
12502
12508
|
}
|
|
@@ -12508,7 +12514,7 @@ class D6 {
|
|
|
12508
12514
|
* @throws {RequiredError}
|
|
12509
12515
|
*/
|
|
12510
12516
|
deleteReprocessTransactionsByTag(t, r) {
|
|
12511
|
-
return
|
|
12517
|
+
return ae(this, null, function* () {
|
|
12512
12518
|
return this.transactionApi.apiV2TagTagIdDelete(t, r);
|
|
12513
12519
|
});
|
|
12514
12520
|
}
|
|
@@ -12521,7 +12527,7 @@ class D6 {
|
|
|
12521
12527
|
* @throws {RequiredError}
|
|
12522
12528
|
*/
|
|
12523
12529
|
getReprocessTransactionFile(t, r, n) {
|
|
12524
|
-
return
|
|
12530
|
+
return ae(this, null, function* () {
|
|
12525
12531
|
return this.transactionApi.apiV2TransactionTransactionIdFileGet(t, r, n);
|
|
12526
12532
|
});
|
|
12527
12533
|
}
|
|
@@ -12533,7 +12539,7 @@ class D6 {
|
|
|
12533
12539
|
* @throws {RequiredError}
|
|
12534
12540
|
*/
|
|
12535
12541
|
getReprocessTransactionData(t, r) {
|
|
12536
|
-
return
|
|
12542
|
+
return ae(this, null, function* () {
|
|
12537
12543
|
return this.transactionApi.apiV2TransactionTransactionIdGet(t, r);
|
|
12538
12544
|
});
|
|
12539
12545
|
}
|
|
@@ -12564,8 +12570,8 @@ function Z1(e) {
|
|
|
12564
12570
|
return yO(e);
|
|
12565
12571
|
}
|
|
12566
12572
|
function R6(e) {
|
|
12567
|
-
return
|
|
12568
|
-
const r = Array.from(e).map((n) =>
|
|
12573
|
+
return ae(this, null, function* () {
|
|
12574
|
+
const r = Array.from(e).map((n) => ae(null, null, function* () {
|
|
12569
12575
|
if (!n || !n.size) throw new ft(St.INCORRECT_FILE);
|
|
12570
12576
|
const a = URL.createObjectURL(n), o = yield ((c) => new Promise((l, s) => {
|
|
12571
12577
|
const u = new Image();
|
|
@@ -12617,11 +12623,11 @@ function ny(e, t) {
|
|
|
12617
12623
|
var r, n;
|
|
12618
12624
|
const a = {
|
|
12619
12625
|
[Vi.BarcodeMRZ]: {
|
|
12620
|
-
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.
|
|
12626
|
+
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.3/barcodemrz/b0e1a964-8df12162a",
|
|
12621
12627
|
DEV: "./wasm/barcode-mrz/"
|
|
12622
12628
|
},
|
|
12623
12629
|
[Vi.BoundsLite]: {
|
|
12624
|
-
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.
|
|
12630
|
+
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.3/boundslite/b0e1a964-8df12162a",
|
|
12625
12631
|
DEV: "./wasm/bounds-lite/"
|
|
12626
12632
|
}
|
|
12627
12633
|
};
|
|
@@ -12826,7 +12832,7 @@ function _y(e) {
|
|
|
12826
12832
|
controlsWidth: i,
|
|
12827
12833
|
scenario: b,
|
|
12828
12834
|
scenarioParams: j == null ? void 0 : j.scenario
|
|
12829
|
-
}), re = o === dn.captureFrame,
|
|
12835
|
+
}), re = o === dn.captureFrame, ue = ee.status === be.START_NEXT_PAGE;
|
|
12830
12836
|
return He(() => {
|
|
12831
12837
|
if (c) {
|
|
12832
12838
|
if (c.recognizerProcessParam = Zt(ER, c.recognizerProcessParam), s !== void 0) {
|
|
@@ -12865,25 +12871,27 @@ function _y(e) {
|
|
|
12865
12871
|
}
|
|
12866
12872
|
});
|
|
12867
12873
|
}, [W, x]), He(() => {
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12874
|
+
((J) => ae(null, null, function* () {
|
|
12875
|
+
if (!c || !Z || v || re || r.videoStatus !== ct.PLAY || !r.sortedDevices) return;
|
|
12876
|
+
if (p) {
|
|
12877
|
+
g(!0), qr("New document started (manual multipage)");
|
|
12878
|
+
return;
|
|
12879
|
+
}
|
|
12880
|
+
const q = yield P1({
|
|
12881
|
+
cameras: [...r.sortedDevices.frontCameras, ...r.sortedDevices.backCameras],
|
|
12882
|
+
cameraID: r.camera.deviceId,
|
|
12883
|
+
sdkVersion: "9.3.2697-nightly".trim(),
|
|
12884
|
+
serviceUrl: ((J = c.recognizerProcessParam.processParam.backendProcessing) === null || J === void 0 ? void 0 : J.serviceURL) || ""
|
|
12885
|
+
});
|
|
12886
|
+
qr("Metadata: ".concat(JSON.stringify(q)));
|
|
12887
|
+
try {
|
|
12888
|
+
c.recognizerProcessParam.processParam.backendProcessing ? yield c.createBackendTransaction(q) : yield c.startNewDocument(q), g(!0), qr("New document started");
|
|
12889
|
+
} catch (ie) {
|
|
12890
|
+
G((te) => ur(ur({}, te), {}, {
|
|
12891
|
+
status: be.FAILED
|
|
12892
|
+
})), a(new ft(St.WASM_ERROR, ie));
|
|
12893
|
+
}
|
|
12894
|
+
}))();
|
|
12887
12895
|
}, [Z, v, o, r, p]), He(() => {
|
|
12888
12896
|
const J = v && (!o || o === dn.auto), q = v && o === dn.captureVideo;
|
|
12889
12897
|
(Z && o === dn.captureFrame || q || J) && (G((te) => ur(ur({}, te), {}, {
|
|
@@ -12909,8 +12917,8 @@ function _y(e) {
|
|
|
12909
12917
|
status: te,
|
|
12910
12918
|
response: ie
|
|
12911
12919
|
})), y(!1), qr("Image processing is finished");
|
|
12912
|
-
const
|
|
12913
|
-
if (te === be.START_NEXT_PAGE ||
|
|
12920
|
+
const fe = !!C1[te];
|
|
12921
|
+
if (te === be.START_NEXT_PAGE || fe) {
|
|
12914
12922
|
const {
|
|
12915
12923
|
multipageAnimationImage: de
|
|
12916
12924
|
} = ie.rawResponse;
|
|
@@ -12941,12 +12949,12 @@ function _y(e) {
|
|
|
12941
12949
|
}), a(new ft(St.WASM_ERROR, ie)), S(!1);
|
|
12942
12950
|
});
|
|
12943
12951
|
}, [R, t.videoElement, r.videoStatus, T, E, m, p]), He(() => {
|
|
12944
|
-
if (!c || !
|
|
12952
|
+
if (!c || !ue || p) return;
|
|
12945
12953
|
qr("More pages available"), l({
|
|
12946
12954
|
action: Fe.NEW_PAGE_AVAILABLE,
|
|
12947
12955
|
data: null
|
|
12948
12956
|
});
|
|
12949
|
-
const J = setTimeout(() =>
|
|
12957
|
+
const J = setTimeout(() => ae(null, null, function* () {
|
|
12950
12958
|
try {
|
|
12951
12959
|
yield c.startNewPage(), l({
|
|
12952
12960
|
action: Fe.NEW_PAGE_STARTED,
|
|
@@ -12961,7 +12969,7 @@ function _y(e) {
|
|
|
12961
12969
|
return () => {
|
|
12962
12970
|
clearTimeout(J);
|
|
12963
12971
|
};
|
|
12964
|
-
}, [
|
|
12972
|
+
}, [ue, p]), ur(ur({}, ee), {}, {
|
|
12965
12973
|
frameParams: W,
|
|
12966
12974
|
setIsRecognitionStarted: S,
|
|
12967
12975
|
animation: V
|
|
@@ -12980,7 +12988,7 @@ function hy() {
|
|
|
12980
12988
|
tag: c,
|
|
12981
12989
|
basePath: l,
|
|
12982
12990
|
headers: s
|
|
12983
|
-
}))),
|
|
12991
|
+
}))), ae(null, null, function* () {
|
|
12984
12992
|
try {
|
|
12985
12993
|
var d;
|
|
12986
12994
|
const _ = new D6({
|
|
@@ -13078,7 +13086,7 @@ function Iy(e) {
|
|
|
13078
13086
|
onError: a,
|
|
13079
13087
|
captureMode: d,
|
|
13080
13088
|
controlsWidth: O
|
|
13081
|
-
}),
|
|
13089
|
+
}), ue = hy(), [J, q] = Re(null), ie = (Le, $e, Ie) => ae(null, null, function* () {
|
|
13082
13090
|
r(le.PROCESSING);
|
|
13083
13091
|
const {
|
|
13084
13092
|
backendProcessing: Ue
|
|
@@ -13122,12 +13130,12 @@ function Iy(e) {
|
|
|
13122
13130
|
action: Fe.PRESS_MIRRORING_BUTTON,
|
|
13123
13131
|
data: null
|
|
13124
13132
|
}), (Le = g.current) === null || Le === void 0 || Le.changeMirror();
|
|
13125
|
-
},
|
|
13133
|
+
}, fe = _n(() => {
|
|
13126
13134
|
o({
|
|
13127
13135
|
action: Fe.CAMERA_PROCESS_CLOSED,
|
|
13128
13136
|
data: null
|
|
13129
13137
|
}), l && r(le.CHOOSE_INPUT_SOURCE);
|
|
13130
|
-
}, [l]), de = () =>
|
|
13138
|
+
}, [l]), de = () => ae(null, null, function* () {
|
|
13131
13139
|
o({
|
|
13132
13140
|
action: Fe.PRESS_SKIP_BUTTON,
|
|
13133
13141
|
data: null
|
|
@@ -13168,8 +13176,8 @@ function Iy(e) {
|
|
|
13168
13176
|
}
|
|
13169
13177
|
}
|
|
13170
13178
|
}, [G, j, m, I]), He(() => {
|
|
13171
|
-
|
|
13172
|
-
}, [
|
|
13179
|
+
ue === Xr.AVAILABLE && r(le.DELEGATE_SUCCESS), ue === Xr.ERROR && a(new ft(St.CONNECTION_ERROR, "Transaction check failed."));
|
|
13180
|
+
}, [ue]);
|
|
13173
13181
|
const ze = () => {
|
|
13174
13182
|
o({
|
|
13175
13183
|
action: Fe.VIDEO_STARTED,
|
|
@@ -13189,7 +13197,7 @@ function Iy(e) {
|
|
|
13189
13197
|
videoStatusParams: M,
|
|
13190
13198
|
frameParams: Z,
|
|
13191
13199
|
videoElementParams: N,
|
|
13192
|
-
onProcessClose:
|
|
13200
|
+
onProcessClose: fe,
|
|
13193
13201
|
onClose: i,
|
|
13194
13202
|
onSnapshotProcess: Ne,
|
|
13195
13203
|
onSkip: de,
|
|
@@ -13197,7 +13205,7 @@ function Iy(e) {
|
|
|
13197
13205
|
captureButton: rt,
|
|
13198
13206
|
animation: re,
|
|
13199
13207
|
onControlsWidth: b,
|
|
13200
|
-
children:
|
|
13208
|
+
children: ue === Xr.NOT_AVAILABLE ? P(yC, {
|
|
13201
13209
|
onVideoSizeChange: V,
|
|
13202
13210
|
onVideoStatusChange: x,
|
|
13203
13211
|
resolution: S,
|
|
@@ -13212,7 +13220,7 @@ function Iy(e) {
|
|
|
13212
13220
|
mirrorType: p,
|
|
13213
13221
|
ref: g
|
|
13214
13222
|
}) : null
|
|
13215
|
-
}), [$, y, Ne, G, M, Z,
|
|
13223
|
+
}), [$, y, Ne, G, M, Z, fe, Se, N, rt, S, f, h, re, ue]);
|
|
13216
13224
|
}
|
|
13217
13225
|
const Cy = "_title_1fk4r_28", Sy = "_subtitle_1fk4r_37", ga = {
|
|
13218
13226
|
"info-message": "_info-message_1fk4r_1",
|
|
@@ -13474,7 +13482,7 @@ function Ly(e) {
|
|
|
13474
13482
|
data: null
|
|
13475
13483
|
});
|
|
13476
13484
|
const f = a ? i.recognizerProcessParam : i.imageProcessParam;
|
|
13477
|
-
i.processingListener = (h) =>
|
|
13485
|
+
i.processingListener = (h) => ae(null, null, function* () {
|
|
13478
13486
|
let {
|
|
13479
13487
|
isProcessing: p
|
|
13480
13488
|
} = h;
|
|
@@ -13483,8 +13491,8 @@ function Ly(e) {
|
|
|
13483
13491
|
try {
|
|
13484
13492
|
var m;
|
|
13485
13493
|
if ((m = i.imageProcessParam.processParam) !== null && m !== void 0 && m.backendProcessing) {
|
|
13486
|
-
const I = P1({
|
|
13487
|
-
sdkVersion: "9.
|
|
13494
|
+
const I = yield P1({
|
|
13495
|
+
sdkVersion: "9.3.2697-nightly".trim()
|
|
13488
13496
|
});
|
|
13489
13497
|
yield i.createBackendTransaction(I, i.imageProcessParam);
|
|
13490
13498
|
}
|
|
@@ -14471,8 +14479,8 @@ var nb = (function() {
|
|
|
14471
14479
|
M.height = M.width = i * j;
|
|
14472
14480
|
const Z = i / O * j;
|
|
14473
14481
|
x.scale(Z, Z), x.fillStyle = c, x.fillRect(0, 0, O, O), x.fillStyle = l, nb ? x.fill(new Path2D(F6($, y))) : T.forEach(function(W, re) {
|
|
14474
|
-
W.forEach(function(
|
|
14475
|
-
|
|
14482
|
+
W.forEach(function(ue, J) {
|
|
14483
|
+
ue && x.fillRect(J + y, re + y, 1, 1);
|
|
14476
14484
|
});
|
|
14477
14485
|
}), b && (x.globalAlpha = b.opacity), G && x.drawImage(
|
|
14478
14486
|
ee,
|
|
@@ -16377,7 +16385,7 @@ function oL(e) {
|
|
|
16377
16385
|
tag: u,
|
|
16378
16386
|
url: d
|
|
16379
16387
|
})));
|
|
16380
|
-
const C = () =>
|
|
16388
|
+
const C = () => ae(null, null, function* () {
|
|
16381
16389
|
try {
|
|
16382
16390
|
const {
|
|
16383
16391
|
data: I
|
|
@@ -18514,7 +18522,7 @@ class z2e {
|
|
|
18514
18522
|
}
|
|
18515
18523
|
}
|
|
18516
18524
|
function K2e(e) {
|
|
18517
|
-
return
|
|
18525
|
+
return ae(this, null, function* () {
|
|
18518
18526
|
const t = [];
|
|
18519
18527
|
for (let r = 0; r < e.length; r++) {
|
|
18520
18528
|
const n = new Promise((a, i) => {
|
|
@@ -19846,7 +19854,7 @@ class Gse {
|
|
|
19846
19854
|
}
|
|
19847
19855
|
addTask(t) {
|
|
19848
19856
|
return new Promise((r, n) => {
|
|
19849
|
-
this.taskSubject.next(() =>
|
|
19857
|
+
this.taskSubject.next(() => ae(this, null, function* () {
|
|
19850
19858
|
try {
|
|
19851
19859
|
const a = yield t();
|
|
19852
19860
|
r(a);
|
|
@@ -20005,12 +20013,12 @@ const lu = jt.create("wasm"), Ht = jt.create("main");
|
|
|
20005
20013
|
class Qse {
|
|
20006
20014
|
constructor() {
|
|
20007
20015
|
$t(this, "_worker", null), $t(this, "_initializeListener", null), $t(this, "_processingListener", null), $t(this, "_queueService", new Gse()), $t(this, "_initProcess", null), $t(this, "version", {
|
|
20008
|
-
component: "9.
|
|
20016
|
+
component: "9.3.2697-nightly".trim()
|
|
20009
20017
|
}), $t(this, "onFinalize", null), $t(this, "isPrepared", !1), $t(this, "isInitialized", !1), $t(this, "isProcessing", !1), $t(this, "initData", null), $t(this, "recognizerProcessParam", {
|
|
20010
20018
|
processParam: {}
|
|
20011
20019
|
}), $t(this, "imageProcessParam", {
|
|
20012
20020
|
processParam: {}
|
|
20013
|
-
}), $t(this, "recognizeListener", null), $t(this, "workerPath", "https://wasm-development.regulaforensics.com/document/nightly/9.
|
|
20021
|
+
}), $t(this, "recognizeListener", null), $t(this, "workerPath", "https://wasm-development.regulaforensics.com/document/nightly/9.3/barcodemrz/b0e1a964-8df12162a");
|
|
20014
20022
|
}
|
|
20015
20023
|
get processingListener() {
|
|
20016
20024
|
return this._processingListener;
|
|
@@ -20074,11 +20082,11 @@ class Qse {
|
|
|
20074
20082
|
}));
|
|
20075
20083
|
}
|
|
20076
20084
|
prepare(t) {
|
|
20077
|
-
return
|
|
20085
|
+
return ae(this, null, function* () {
|
|
20078
20086
|
var r;
|
|
20079
20087
|
Ht("Preparing the service");
|
|
20080
20088
|
{
|
|
20081
|
-
const n = this.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.
|
|
20089
|
+
const n = this.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.3/barcodemrz/b0e1a964-8df12162a", a = Wse(t && n ? ny(t, "PROD") : this.workerPath);
|
|
20082
20090
|
let o = yield (yield fetch("".concat(a, "/").concat(_R))).text();
|
|
20083
20091
|
!n && !t && (o = ry(o, a));
|
|
20084
20092
|
const c = new Blob([o], {
|
|
@@ -20099,14 +20107,14 @@ class Qse {
|
|
|
20099
20107
|
});
|
|
20100
20108
|
}
|
|
20101
20109
|
initialize(t) {
|
|
20102
|
-
return
|
|
20110
|
+
return ae(this, null, function* () {
|
|
20103
20111
|
return this._initProcess || (this._initProcess = this.doInitialize(t), this._initProcess.catch(() => {
|
|
20104
20112
|
this._initProcess = null;
|
|
20105
20113
|
})), this._initProcess;
|
|
20106
20114
|
});
|
|
20107
20115
|
}
|
|
20108
20116
|
doInitialize(t) {
|
|
20109
|
-
return
|
|
20117
|
+
return ae(this, null, function* () {
|
|
20110
20118
|
var r, n;
|
|
20111
20119
|
this.isPrepared || (yield this.prepare(t == null ? void 0 : t.module)), Ht("Initializing the service");
|
|
20112
20120
|
const {
|
|
@@ -20121,8 +20129,8 @@ class Qse {
|
|
|
20121
20129
|
hostName: (r = document.location) === null || r === void 0 ? void 0 : r.origin,
|
|
20122
20130
|
license: t == null ? void 0 : t.license
|
|
20123
20131
|
},
|
|
20124
|
-
telemetry: P1({
|
|
20125
|
-
sdkVersion: "9.
|
|
20132
|
+
telemetry: yield P1({
|
|
20133
|
+
sdkVersion: "9.3.2697-nightly".trim()
|
|
20126
20134
|
}),
|
|
20127
20135
|
processParam: this.recognizerProcessParam.processParam || this.imageProcessParam.processParam
|
|
20128
20136
|
}
|
|
@@ -20139,7 +20147,7 @@ class Qse {
|
|
|
20139
20147
|
});
|
|
20140
20148
|
}
|
|
20141
20149
|
doProcess(t, r, n) {
|
|
20142
|
-
return
|
|
20150
|
+
return ae(this, null, function* () {
|
|
20143
20151
|
var a, i;
|
|
20144
20152
|
Ht("Process method ".concat(t, " started")), this.isProcessing = !0, (a = this._processingListener) === null || a === void 0 || a.call(this, {
|
|
20145
20153
|
isProcessing: this.isProcessing
|
|
@@ -20156,25 +20164,25 @@ class Qse {
|
|
|
20156
20164
|
});
|
|
20157
20165
|
}
|
|
20158
20166
|
processImageBase64(t, r) {
|
|
20159
|
-
return
|
|
20167
|
+
return ae(this, null, function* () {
|
|
20160
20168
|
return this.doProcess(fr.processImage, this.createProcessImageRequest(t, r));
|
|
20161
20169
|
});
|
|
20162
20170
|
}
|
|
20163
20171
|
process(t, r) {
|
|
20164
|
-
return
|
|
20172
|
+
return ae(this, null, function* () {
|
|
20165
20173
|
var n;
|
|
20166
20174
|
const a = this.prepareImageData(t), i = yield this.doProcess(fr.process, r || this.recognizerProcessParam, a);
|
|
20167
20175
|
return (n = this.recognizeListener) === null || n === void 0 || n.call(this, i), i;
|
|
20168
20176
|
});
|
|
20169
20177
|
}
|
|
20170
20178
|
processImage(t, r) {
|
|
20171
|
-
return
|
|
20179
|
+
return ae(this, null, function* () {
|
|
20172
20180
|
const n = this.prepareImageData(t);
|
|
20173
20181
|
return this.doProcess(fr.processImage, r || this.imageProcessParam, n);
|
|
20174
20182
|
});
|
|
20175
20183
|
}
|
|
20176
20184
|
startNewPage() {
|
|
20177
|
-
return
|
|
20185
|
+
return ae(this, null, function* () {
|
|
20178
20186
|
Ht("Starting new page"), yield this.sendMessage({
|
|
20179
20187
|
target: ar.custom,
|
|
20180
20188
|
method: fr.startNewPage
|
|
@@ -20182,7 +20190,7 @@ class Qse {
|
|
|
20182
20190
|
});
|
|
20183
20191
|
}
|
|
20184
20192
|
startNewDocument(t, r) {
|
|
20185
|
-
return
|
|
20193
|
+
return ae(this, null, function* () {
|
|
20186
20194
|
return Ht("Starting new document"), yield this.sendMessage({
|
|
20187
20195
|
target: ar.custom,
|
|
20188
20196
|
method: fr.startNewDocument,
|
|
@@ -20193,7 +20201,7 @@ class Qse {
|
|
|
20193
20201
|
});
|
|
20194
20202
|
}
|
|
20195
20203
|
createBackendTransaction(t, r) {
|
|
20196
|
-
return
|
|
20204
|
+
return ae(this, null, function* () {
|
|
20197
20205
|
return Ht("Create backend transaction"), yield this.sendMessage({
|
|
20198
20206
|
target: ar.custom,
|
|
20199
20207
|
method: fr.createBackendTransaction,
|
|
@@ -20204,7 +20212,7 @@ class Qse {
|
|
|
20204
20212
|
});
|
|
20205
20213
|
}
|
|
20206
20214
|
finalizePackage() {
|
|
20207
|
-
return
|
|
20215
|
+
return ae(this, null, function* () {
|
|
20208
20216
|
try {
|
|
20209
20217
|
var t;
|
|
20210
20218
|
Ht("Finalize package");
|
|
@@ -20223,7 +20231,7 @@ class Qse {
|
|
|
20223
20231
|
});
|
|
20224
20232
|
}
|
|
20225
20233
|
addDataToPackage(t, r) {
|
|
20226
|
-
return
|
|
20234
|
+
return ae(this, null, function* () {
|
|
20227
20235
|
Ht("Add data to package"), yield this.sendMessage({
|
|
20228
20236
|
target: ar.custom,
|
|
20229
20237
|
method: fr.addDataToPackage,
|
|
@@ -20295,10 +20303,10 @@ class Sce {
|
|
|
20295
20303
|
}
|
|
20296
20304
|
startStream() {
|
|
20297
20305
|
return new Promise((t, r) => {
|
|
20298
|
-
|
|
20306
|
+
ae(this, null, function* () {
|
|
20299
20307
|
try {
|
|
20300
20308
|
if (this._devices || (this._devices = yield DC()), this._sortedDevices || (this._sortedDevices = yield RC(this._devices), this._devices.isCameraAllowed = !0), this._cameraInfo = gC(this._streamParam.cameraMode, this._sortedDevices, this._streamParam.preferredCameraId), this._streamData = yield new Promise((a, i) => {
|
|
20301
|
-
|
|
20309
|
+
ae(this, null, function* () {
|
|
20302
20310
|
const c = ut.isFirefox ? $I : 0;
|
|
20303
20311
|
yield TC(c);
|
|
20304
20312
|
try {
|
|
@@ -20333,7 +20341,7 @@ class Sce {
|
|
|
20333
20341
|
this._videoEventListener && this.videoElement && (this.videoElement.removeEventListener("play", this._videoEventListener), this._videoEventListener = null), (t = this._streamData) !== null && t !== void 0 && t.stream && (Cu(this._streamData.stream), this._streamData = null);
|
|
20334
20342
|
}
|
|
20335
20343
|
startRecognizeProcess() {
|
|
20336
|
-
return
|
|
20344
|
+
return ae(this, null, function* () {
|
|
20337
20345
|
for (this.isProcessing = !0; this.isProcessing; ) {
|
|
20338
20346
|
if (!this.videoElement) return;
|
|
20339
20347
|
const {
|
|
@@ -20347,27 +20355,27 @@ class Sce {
|
|
|
20347
20355
|
this.isProcessing = !1;
|
|
20348
20356
|
}
|
|
20349
20357
|
startNewPage() {
|
|
20350
|
-
return
|
|
20358
|
+
return ae(this, null, function* () {
|
|
20351
20359
|
this._pageIdx++, yield this._documentReaderService.startNewPage();
|
|
20352
20360
|
});
|
|
20353
20361
|
}
|
|
20354
20362
|
startNewDocument() {
|
|
20355
|
-
return
|
|
20363
|
+
return ae(this, null, function* () {
|
|
20356
20364
|
yield this._documentReaderService.startNewDocument();
|
|
20357
20365
|
});
|
|
20358
20366
|
}
|
|
20359
20367
|
switchCamera() {
|
|
20360
|
-
return
|
|
20368
|
+
return ae(this, null, function* () {
|
|
20361
20369
|
this._cameraInfo && (this.stopRecognizeProcess(), this.stopStream(), this._sortedDevices && (this._streamParam.preferredCameraId = M1(this._sortedDevices, this._cameraInfo.deviceId), yield this.startStream(), yield this.startRecognizeProcess()));
|
|
20362
20370
|
});
|
|
20363
20371
|
}
|
|
20364
20372
|
startRecognition(t) {
|
|
20365
|
-
return
|
|
20373
|
+
return ae(this, null, function* () {
|
|
20366
20374
|
return yield this.startNewDocument(), this._streamData || (yield this.startStream()), new Promise((r) => {
|
|
20367
20375
|
this._frameListener = (n) => {
|
|
20368
20376
|
const a = g6(n.rawResponse, this._pageIdx, this._documentReaderService.recognizerProcessParam.processParam.multipageProcessing), i = () => {
|
|
20369
20377
|
this.stopRecognition(), r(n);
|
|
20370
|
-
}, o = () =>
|
|
20378
|
+
}, o = () => ae(this, null, function* () {
|
|
20371
20379
|
yield this.startNewPage(), yield this.startRecognizeProcess();
|
|
20372
20380
|
});
|
|
20373
20381
|
if (a === be.START_NEXT_PAGE && t)
|
|
@@ -20385,7 +20393,7 @@ class Sce {
|
|
|
20385
20393
|
});
|
|
20386
20394
|
}
|
|
20387
20395
|
processImage(t) {
|
|
20388
|
-
return
|
|
20396
|
+
return ae(this, null, function* () {
|
|
20389
20397
|
const r = yield R6(t);
|
|
20390
20398
|
if (r.reduce((a, i) => a + i.width * i.height, 0) > HI)
|
|
20391
20399
|
return Promise.reject(new ft(St.FILE_SIZE));
|
|
@@ -20404,7 +20412,7 @@ class Sce {
|
|
|
20404
20412
|
this._pageIdx = 0, this._cameraInfo = null, this._devices = null, this._sortedDevices = null, this.stopRecognizeProcess(), this.stopStream();
|
|
20405
20413
|
}
|
|
20406
20414
|
initialize(t) {
|
|
20407
|
-
return
|
|
20415
|
+
return ae(this, null, function* () {
|
|
20408
20416
|
const r = yield this._documentReaderService.initialize({
|
|
20409
20417
|
license: t == null ? void 0 : t.license
|
|
20410
20418
|
});
|
|
@@ -20416,7 +20424,7 @@ class Sce {
|
|
|
20416
20424
|
}
|
|
20417
20425
|
}
|
|
20418
20426
|
function vce() {
|
|
20419
|
-
return
|
|
20427
|
+
return ae(this, null, function* () {
|
|
20420
20428
|
const e = window.customElements.get("document-reader"), t = window.customElements.get("camera-snapshot"), r = window.customElements.get("fullscreen-container");
|
|
20421
20429
|
e || window.customElements.define("document-reader", G2e), t || window.customElements.define("camera-snapshot", ase), r || window.customElements.define("fullscreen-container", cse);
|
|
20422
20430
|
const n = window.customElements.whenDefined("document-reader"), a = window.customElements.whenDefined("camera-snapshot"), i = window.customElements.whenDefined("fullscreen-container");
|