gc_mobile 1.1.2 → 1.1.3
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/libs/main.js +174 -169
- package/libs/main.umd.cjs +7 -7
- package/package.json +1 -1
- package/src/modules/dd.js +6 -1
package/libs/main.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import n0, { mapKeys as
|
|
1
|
+
import n0, { mapKeys as $e, isEmpty as C0, includes as Pe, sortBy as Se, map as Oe, isArray as rt, toLower as et, mapValues as tt, keys as nt, compact as xt, forEach as at, get as Mr, isString as ot, toString as Ur, now as it, random as st } from "lodash-es";
|
|
2
2
|
import * as e0 from "dingtalk-jsapi";
|
|
3
|
-
import w0, { stringify as
|
|
3
|
+
import w0, { stringify as ct } from "qs";
|
|
4
4
|
import m0 from "axios";
|
|
5
5
|
const R0 = window.navigator.userAgent.toLowerCase();
|
|
6
6
|
let Er = {
|
|
7
7
|
code: "",
|
|
8
8
|
name: "未知"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function ft() {
|
|
11
11
|
return typeof window < "u" && typeof document < "u" && typeof document.querySelector == "function" && typeof navigator < "u" && typeof XMLHttpRequest == "function";
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const ht = [
|
|
14
14
|
{
|
|
15
15
|
code: "weixin",
|
|
16
16
|
name: "微信",
|
|
@@ -26,8 +26,8 @@ const ft = [
|
|
|
26
26
|
name: "钉钉",
|
|
27
27
|
value: /DingTalk/i.test(R0)
|
|
28
28
|
}
|
|
29
|
-
],
|
|
30
|
-
Tr ? Er = Tr :
|
|
29
|
+
], ut = (x) => x.value, Tr = n0.find(ht, ut);
|
|
30
|
+
Tr ? Er = Tr : ft() && (Er = {
|
|
31
31
|
code: "h5",
|
|
32
32
|
name: "H5"
|
|
33
33
|
});
|
|
@@ -36,7 +36,7 @@ var U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
36
36
|
function H0(x) {
|
|
37
37
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function lt(x) {
|
|
40
40
|
if (x.__esModule)
|
|
41
41
|
return x;
|
|
42
42
|
var h = x.default;
|
|
@@ -57,15 +57,15 @@ function ut(x) {
|
|
|
57
57
|
});
|
|
58
58
|
}), r;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
61
|
-
function
|
|
60
|
+
var ke = { exports: {} };
|
|
61
|
+
function dt(x) {
|
|
62
62
|
throw new Error('Could not dynamically require "' + x + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
63
63
|
}
|
|
64
64
|
var q0 = { exports: {} };
|
|
65
|
-
const
|
|
65
|
+
const vt = {}, pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
66
66
|
__proto__: null,
|
|
67
|
-
default:
|
|
68
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
67
|
+
default: vt
|
|
68
|
+
}, Symbol.toStringTag, { value: "Module" })), At = /* @__PURE__ */ lt(pt);
|
|
69
69
|
var Gr;
|
|
70
70
|
function G() {
|
|
71
71
|
return Gr || (Gr = 1, function(x, h) {
|
|
@@ -74,9 +74,9 @@ function G() {
|
|
|
74
74
|
})(U, function() {
|
|
75
75
|
var r = r || function(e, p) {
|
|
76
76
|
var u;
|
|
77
|
-
if (typeof window < "u" && window.crypto && (u = window.crypto), typeof self < "u" && self.crypto && (u = self.crypto), typeof globalThis < "u" && globalThis.crypto && (u = globalThis.crypto), !u && typeof window < "u" && window.msCrypto && (u = window.msCrypto), !u && typeof U < "u" && U.crypto && (u = U.crypto), !u && typeof
|
|
77
|
+
if (typeof window < "u" && window.crypto && (u = window.crypto), typeof self < "u" && self.crypto && (u = self.crypto), typeof globalThis < "u" && globalThis.crypto && (u = globalThis.crypto), !u && typeof window < "u" && window.msCrypto && (u = window.msCrypto), !u && typeof U < "u" && U.crypto && (u = U.crypto), !u && typeof dt == "function")
|
|
78
78
|
try {
|
|
79
|
-
u =
|
|
79
|
+
u = At;
|
|
80
80
|
} catch {
|
|
81
81
|
}
|
|
82
82
|
var E = function() {
|
|
@@ -798,7 +798,7 @@ function k0() {
|
|
|
798
798
|
}(I0)), I0.exports;
|
|
799
799
|
}
|
|
800
800
|
var M0 = { exports: {} }, Qr;
|
|
801
|
-
function
|
|
801
|
+
function Bt() {
|
|
802
802
|
return Qr || (Qr = 1, function(x, h) {
|
|
803
803
|
(function(r, e) {
|
|
804
804
|
x.exports = e(G());
|
|
@@ -820,7 +820,7 @@ function At() {
|
|
|
820
820
|
}(M0)), M0.exports;
|
|
821
821
|
}
|
|
822
822
|
var U0 = { exports: {} }, Vr;
|
|
823
|
-
function
|
|
823
|
+
function Ct() {
|
|
824
824
|
return Vr || (Vr = 1, function(x, h) {
|
|
825
825
|
(function(r, e) {
|
|
826
826
|
x.exports = e(G());
|
|
@@ -989,7 +989,7 @@ function u0() {
|
|
|
989
989
|
}(T0)), T0.exports;
|
|
990
990
|
}
|
|
991
991
|
var G0 = { exports: {} }, Kr;
|
|
992
|
-
function
|
|
992
|
+
function Et() {
|
|
993
993
|
return Kr || (Kr = 1, function(x, h) {
|
|
994
994
|
(function(r, e) {
|
|
995
995
|
x.exports = e(G());
|
|
@@ -1137,7 +1137,7 @@ function l0() {
|
|
|
1137
1137
|
}(L0)), L0.exports;
|
|
1138
1138
|
}
|
|
1139
1139
|
var Q0 = { exports: {} }, Zr;
|
|
1140
|
-
function
|
|
1140
|
+
function ze() {
|
|
1141
1141
|
return Zr || (Zr = 1, function(x, h) {
|
|
1142
1142
|
(function(r, e) {
|
|
1143
1143
|
x.exports = e(G());
|
|
@@ -1233,7 +1233,7 @@ function z0() {
|
|
|
1233
1233
|
}(V0)), V0.exports;
|
|
1234
1234
|
}
|
|
1235
1235
|
var W0 = { exports: {} }, Jr;
|
|
1236
|
-
function
|
|
1236
|
+
function Ft() {
|
|
1237
1237
|
return Jr || (Jr = 1, function(x, h) {
|
|
1238
1238
|
(function(r, e, p) {
|
|
1239
1239
|
x.exports = e(G(), z0());
|
|
@@ -1263,7 +1263,7 @@ function Et() {
|
|
|
1263
1263
|
}(W0)), W0.exports;
|
|
1264
1264
|
}
|
|
1265
1265
|
var K0 = { exports: {} }, _r;
|
|
1266
|
-
function
|
|
1266
|
+
function je() {
|
|
1267
1267
|
return _r || (_r = 1, function(x, h) {
|
|
1268
1268
|
(function(r, e, p) {
|
|
1269
1269
|
x.exports = e(G(), k0());
|
|
@@ -1378,11 +1378,11 @@ function ze() {
|
|
|
1378
1378
|
if (o0 < 16)
|
|
1379
1379
|
f0 = S0.high = c[A + o0 * 2] | 0, a0 = S0.low = c[A + o0 * 2 + 1] | 0;
|
|
1380
1380
|
else {
|
|
1381
|
-
var wr = i[o0 - 15], v0 = wr.high, D0 = wr.low,
|
|
1382
|
-
a0 = Hr +
|
|
1381
|
+
var wr = i[o0 - 15], v0 = wr.high, D0 = wr.low, Ue = (v0 >>> 1 | D0 << 31) ^ (v0 >>> 8 | D0 << 24) ^ v0 >>> 7, Hr = (D0 >>> 1 | v0 << 31) ^ (D0 >>> 8 | v0 << 24) ^ (D0 >>> 7 | v0 << 25), Pr = i[o0 - 2], p0 = Pr.high, g0 = Pr.low, Te = (p0 >>> 19 | g0 << 13) ^ (p0 << 3 | g0 >>> 29) ^ p0 >>> 6, Sr = (g0 >>> 19 | p0 << 13) ^ (g0 << 3 | p0 >>> 29) ^ (g0 >>> 6 | p0 << 26), Or = i[o0 - 7], Ge = Or.high, Le = Or.low, kr = i[o0 - 16], Qe = kr.high, zr = kr.low;
|
|
1382
|
+
a0 = Hr + Le, f0 = Ue + Ge + (a0 >>> 0 < Hr >>> 0 ? 1 : 0), a0 = a0 + Sr, f0 = f0 + Te + (a0 >>> 0 < Sr >>> 0 ? 1 : 0), a0 = a0 + zr, f0 = f0 + Qe + (a0 >>> 0 < zr >>> 0 ? 1 : 0), S0.high = f0, S0.low = a0;
|
|
1383
1383
|
}
|
|
1384
|
-
var
|
|
1385
|
-
N0 = P0, F0 = E0, P0 = x0, E0 = s0, x0 = K, s0 = Y, Y = X + t0 | 0, K = Z + h0 + (Y >>> 0 < X >>> 0 ? 1 : 0) | 0, Z = $, X = r0, $ = W, r0 = q, W = T, q = M, M = t0 + Ir | 0, T = h0 +
|
|
1384
|
+
var Ve = K & x0 ^ ~K & P0, jr = Y & s0 ^ ~Y & E0, We = T & W ^ T & $ ^ W & $, Ke = M & q ^ M & r0 ^ q & r0, Ye = (T >>> 28 | M << 4) ^ (T << 30 | M >>> 2) ^ (T << 25 | M >>> 7), Nr = (M >>> 28 | T << 4) ^ (M << 30 | T >>> 2) ^ (M << 25 | T >>> 7), Ze = (K >>> 14 | Y << 18) ^ (K >>> 18 | Y << 14) ^ (K << 23 | Y >>> 9), Xe = (Y >>> 14 | K << 18) ^ (Y >>> 18 | K << 14) ^ (Y << 23 | K >>> 9), Rr = B[o0], Je = Rr.high, qr = Rr.low, t0 = F0 + Xe, h0 = N0 + Ze + (t0 >>> 0 < F0 >>> 0 ? 1 : 0), t0 = t0 + jr, h0 = h0 + Ve + (t0 >>> 0 < jr >>> 0 ? 1 : 0), t0 = t0 + qr, h0 = h0 + Je + (t0 >>> 0 < qr >>> 0 ? 1 : 0), t0 = t0 + a0, h0 = h0 + f0 + (t0 >>> 0 < a0 >>> 0 ? 1 : 0), Ir = Nr + Ke, _e = Ye + We + (Ir >>> 0 < Nr >>> 0 ? 1 : 0);
|
|
1385
|
+
N0 = P0, F0 = E0, P0 = x0, E0 = s0, x0 = K, s0 = Y, Y = X + t0 | 0, K = Z + h0 + (Y >>> 0 < X >>> 0 ? 1 : 0) | 0, Z = $, X = r0, $ = W, r0 = q, W = T, q = M, M = t0 + Ir | 0, T = h0 + _e + (M >>> 0 < t0 >>> 0 ? 1 : 0) | 0;
|
|
1386
1386
|
}
|
|
1387
1387
|
C = D.low = C + M, D.high = z + T + (C >>> 0 < M >>> 0 ? 1 : 0), k = a.low = k + q, a.high = y + W + (k >>> 0 < q >>> 0 ? 1 : 0), N = s.low = N + r0, s.high = O + $ + (N >>> 0 < r0 >>> 0 ? 1 : 0), I = v.low = I + X, v.high = R + Z + (I >>> 0 < X >>> 0 ? 1 : 0), L = F.low = L + Y, F.high = Q + K + (L >>> 0 < Y >>> 0 ? 1 : 0), j = g.low = j + s0, g.high = V + x0 + (j >>> 0 < s0 >>> 0 ? 1 : 0), H = m.low = H + E0, m.high = b + P0 + (H >>> 0 < E0 >>> 0 ? 1 : 0), P = w.low = P + F0, w.high = S + N0 + (P >>> 0 < F0 >>> 0 ? 1 : 0);
|
|
1388
1388
|
},
|
|
@@ -1404,10 +1404,10 @@ function ze() {
|
|
|
1404
1404
|
}(K0)), K0.exports;
|
|
1405
1405
|
}
|
|
1406
1406
|
var Y0 = { exports: {} }, $r;
|
|
1407
|
-
function
|
|
1407
|
+
function Dt() {
|
|
1408
1408
|
return $r || ($r = 1, function(x, h) {
|
|
1409
1409
|
(function(r, e, p) {
|
|
1410
|
-
x.exports = e(G(), k0(),
|
|
1410
|
+
x.exports = e(G(), k0(), je());
|
|
1411
1411
|
})(U, function(r) {
|
|
1412
1412
|
return function() {
|
|
1413
1413
|
var e = r, p = e.x64, u = p.Word, E = p.WordArray, n = e.algo, d = n.SHA512, t = n.SHA384 = d.extend({
|
|
@@ -1434,7 +1434,7 @@ function Ft() {
|
|
|
1434
1434
|
}(Y0)), Y0.exports;
|
|
1435
1435
|
}
|
|
1436
1436
|
var Z0 = { exports: {} }, re;
|
|
1437
|
-
function
|
|
1437
|
+
function gt() {
|
|
1438
1438
|
return re || (re = 1, function(x, h) {
|
|
1439
1439
|
(function(r, e, p) {
|
|
1440
1440
|
x.exports = e(G(), k0());
|
|
@@ -1544,7 +1544,7 @@ function Dt() {
|
|
|
1544
1544
|
}(Z0)), Z0.exports;
|
|
1545
1545
|
}
|
|
1546
1546
|
var X0 = { exports: {} }, ee;
|
|
1547
|
-
function
|
|
1547
|
+
function bt() {
|
|
1548
1548
|
return ee || (ee = 1, function(x, h) {
|
|
1549
1549
|
(function(r, e) {
|
|
1550
1550
|
x.exports = e(G());
|
|
@@ -2015,7 +2015,7 @@ function j0() {
|
|
|
2015
2015
|
}(J0)), J0.exports;
|
|
2016
2016
|
}
|
|
2017
2017
|
var _0 = { exports: {} }, ne;
|
|
2018
|
-
function
|
|
2018
|
+
function mt() {
|
|
2019
2019
|
return ne || (ne = 1, function(x, h) {
|
|
2020
2020
|
(function(r, e, p) {
|
|
2021
2021
|
x.exports = e(G(), z0(), j0());
|
|
@@ -2085,7 +2085,7 @@ var $0 = { exports: {} }, xe;
|
|
|
2085
2085
|
function d0() {
|
|
2086
2086
|
return xe || (xe = 1, function(x, h) {
|
|
2087
2087
|
(function(r, e, p) {
|
|
2088
|
-
x.exports = e(G(),
|
|
2088
|
+
x.exports = e(G(), ze(), j0());
|
|
2089
2089
|
})(U, function(r) {
|
|
2090
2090
|
return function() {
|
|
2091
2091
|
var e = r, p = e.lib, u = p.Base, E = p.WordArray, n = e.algo, d = n.MD5, t = n.EvpKDF = u.extend({
|
|
@@ -2683,7 +2683,7 @@ function J() {
|
|
|
2683
2683
|
}(rr)), rr.exports;
|
|
2684
2684
|
}
|
|
2685
2685
|
var er = { exports: {} }, oe;
|
|
2686
|
-
function
|
|
2686
|
+
function yt() {
|
|
2687
2687
|
return oe || (oe = 1, function(x, h) {
|
|
2688
2688
|
(function(r, e, p) {
|
|
2689
2689
|
x.exports = e(G(), J());
|
|
@@ -2713,7 +2713,7 @@ function mt() {
|
|
|
2713
2713
|
}(er)), er.exports;
|
|
2714
2714
|
}
|
|
2715
2715
|
var tr = { exports: {} }, ie;
|
|
2716
|
-
function
|
|
2716
|
+
function wt() {
|
|
2717
2717
|
return ie || (ie = 1, function(x, h) {
|
|
2718
2718
|
(function(r, e, p) {
|
|
2719
2719
|
x.exports = e(G(), J());
|
|
@@ -2735,7 +2735,7 @@ function yt() {
|
|
|
2735
2735
|
}(tr)), tr.exports;
|
|
2736
2736
|
}
|
|
2737
2737
|
var nr = { exports: {} }, se;
|
|
2738
|
-
function
|
|
2738
|
+
function Ht() {
|
|
2739
2739
|
return se || (se = 1, function(x, h) {
|
|
2740
2740
|
(function(r, e, p) {
|
|
2741
2741
|
x.exports = e(G(), J());
|
|
@@ -2774,7 +2774,7 @@ function wt() {
|
|
|
2774
2774
|
}(nr)), nr.exports;
|
|
2775
2775
|
}
|
|
2776
2776
|
var xr = { exports: {} }, ce;
|
|
2777
|
-
function
|
|
2777
|
+
function Pt() {
|
|
2778
2778
|
return ce || (ce = 1, function(x, h) {
|
|
2779
2779
|
(function(r, e, p) {
|
|
2780
2780
|
x.exports = e(G(), J());
|
|
@@ -2794,7 +2794,7 @@ function Ht() {
|
|
|
2794
2794
|
}(xr)), xr.exports;
|
|
2795
2795
|
}
|
|
2796
2796
|
var ar = { exports: {} }, fe;
|
|
2797
|
-
function
|
|
2797
|
+
function St() {
|
|
2798
2798
|
return fe || (fe = 1, function(x, h) {
|
|
2799
2799
|
(function(r, e, p) {
|
|
2800
2800
|
x.exports = e(G(), J());
|
|
@@ -2815,7 +2815,7 @@ function Pt() {
|
|
|
2815
2815
|
}(ar)), ar.exports;
|
|
2816
2816
|
}
|
|
2817
2817
|
var or = { exports: {} }, he;
|
|
2818
|
-
function
|
|
2818
|
+
function Ot() {
|
|
2819
2819
|
return he || (he = 1, function(x, h) {
|
|
2820
2820
|
(function(r, e, p) {
|
|
2821
2821
|
x.exports = e(G(), J());
|
|
@@ -2834,7 +2834,7 @@ function St() {
|
|
|
2834
2834
|
}(or)), or.exports;
|
|
2835
2835
|
}
|
|
2836
2836
|
var ir = { exports: {} }, ue;
|
|
2837
|
-
function
|
|
2837
|
+
function kt() {
|
|
2838
2838
|
return ue || (ue = 1, function(x, h) {
|
|
2839
2839
|
(function(r, e, p) {
|
|
2840
2840
|
x.exports = e(G(), J());
|
|
@@ -2853,7 +2853,7 @@ function Ot() {
|
|
|
2853
2853
|
}(ir)), ir.exports;
|
|
2854
2854
|
}
|
|
2855
2855
|
var sr = { exports: {} }, le;
|
|
2856
|
-
function
|
|
2856
|
+
function zt() {
|
|
2857
2857
|
return le || (le = 1, function(x, h) {
|
|
2858
2858
|
(function(r, e, p) {
|
|
2859
2859
|
x.exports = e(G(), J());
|
|
@@ -2870,7 +2870,7 @@ function kt() {
|
|
|
2870
2870
|
}(sr)), sr.exports;
|
|
2871
2871
|
}
|
|
2872
2872
|
var cr = { exports: {} }, de;
|
|
2873
|
-
function
|
|
2873
|
+
function jt() {
|
|
2874
2874
|
return de || (de = 1, function(x, h) {
|
|
2875
2875
|
(function(r, e, p) {
|
|
2876
2876
|
x.exports = e(G(), J());
|
|
@@ -2892,7 +2892,7 @@ function zt() {
|
|
|
2892
2892
|
}(cr)), cr.exports;
|
|
2893
2893
|
}
|
|
2894
2894
|
var fr = { exports: {} }, ve;
|
|
2895
|
-
function
|
|
2895
|
+
function Nt() {
|
|
2896
2896
|
return ve || (ve = 1, function(x, h) {
|
|
2897
2897
|
(function(r, e, p) {
|
|
2898
2898
|
x.exports = e(G(), J());
|
|
@@ -2907,7 +2907,7 @@ function jt() {
|
|
|
2907
2907
|
}(fr)), fr.exports;
|
|
2908
2908
|
}
|
|
2909
2909
|
var hr = { exports: {} }, pe;
|
|
2910
|
-
function
|
|
2910
|
+
function Rt() {
|
|
2911
2911
|
return pe || (pe = 1, function(x, h) {
|
|
2912
2912
|
(function(r, e, p) {
|
|
2913
2913
|
x.exports = e(G(), J());
|
|
@@ -2954,7 +2954,7 @@ function Nt() {
|
|
|
2954
2954
|
}(hr)), hr.exports;
|
|
2955
2955
|
}
|
|
2956
2956
|
var ur = { exports: {} }, Ae;
|
|
2957
|
-
function
|
|
2957
|
+
function qt() {
|
|
2958
2958
|
return Ae || (Ae = 1, function(x, h) {
|
|
2959
2959
|
(function(r, e, p) {
|
|
2960
2960
|
x.exports = e(G(), u0(), l0(), d0(), J());
|
|
@@ -3014,7 +3014,7 @@ function Rt() {
|
|
|
3014
3014
|
}(ur)), ur.exports;
|
|
3015
3015
|
}
|
|
3016
3016
|
var lr = { exports: {} }, Be;
|
|
3017
|
-
function
|
|
3017
|
+
function It() {
|
|
3018
3018
|
return Be || (Be = 1, function(x, h) {
|
|
3019
3019
|
(function(r, e, p) {
|
|
3020
3020
|
x.exports = e(G(), u0(), l0(), d0(), J());
|
|
@@ -3734,7 +3734,7 @@ function qt() {
|
|
|
3734
3734
|
}(lr)), lr.exports;
|
|
3735
3735
|
}
|
|
3736
3736
|
var dr = { exports: {} }, Ce;
|
|
3737
|
-
function
|
|
3737
|
+
function Mt() {
|
|
3738
3738
|
return Ce || (Ce = 1, function(x, h) {
|
|
3739
3739
|
(function(r, e, p) {
|
|
3740
3740
|
x.exports = e(G(), u0(), l0(), d0(), J());
|
|
@@ -3788,7 +3788,7 @@ function It() {
|
|
|
3788
3788
|
}(dr)), dr.exports;
|
|
3789
3789
|
}
|
|
3790
3790
|
var vr = { exports: {} }, Ee;
|
|
3791
|
-
function
|
|
3791
|
+
function Ut() {
|
|
3792
3792
|
return Ee || (Ee = 1, function(x, h) {
|
|
3793
3793
|
(function(r, e, p) {
|
|
3794
3794
|
x.exports = e(G(), u0(), l0(), d0(), J());
|
|
@@ -3854,7 +3854,7 @@ function Mt() {
|
|
|
3854
3854
|
}(vr)), vr.exports;
|
|
3855
3855
|
}
|
|
3856
3856
|
var pr = { exports: {} }, Fe;
|
|
3857
|
-
function
|
|
3857
|
+
function Tt() {
|
|
3858
3858
|
return Fe || (Fe = 1, function(x, h) {
|
|
3859
3859
|
(function(r, e, p) {
|
|
3860
3860
|
x.exports = e(G(), u0(), l0(), d0(), J());
|
|
@@ -3918,7 +3918,7 @@ function Ut() {
|
|
|
3918
3918
|
}(pr)), pr.exports;
|
|
3919
3919
|
}
|
|
3920
3920
|
var Ar = { exports: {} }, De;
|
|
3921
|
-
function
|
|
3921
|
+
function Gt() {
|
|
3922
3922
|
return De || (De = 1, function(x, h) {
|
|
3923
3923
|
(function(r, e, p) {
|
|
3924
3924
|
x.exports = e(G(), u0(), l0(), d0(), J());
|
|
@@ -5041,13 +5041,13 @@ function Tt() {
|
|
|
5041
5041
|
}
|
|
5042
5042
|
(function(x, h) {
|
|
5043
5043
|
(function(r, e, p) {
|
|
5044
|
-
x.exports = e(G(), k0(),
|
|
5044
|
+
x.exports = e(G(), k0(), Bt(), Ct(), u0(), Et(), l0(), ze(), z0(), Ft(), je(), Dt(), gt(), bt(), j0(), mt(), d0(), J(), yt(), wt(), Ht(), Pt(), St(), Ot(), kt(), zt(), jt(), Nt(), Rt(), qt(), It(), Mt(), Ut(), Tt(), Gt());
|
|
5045
5045
|
})(U, function(r) {
|
|
5046
5046
|
return r;
|
|
5047
5047
|
});
|
|
5048
|
-
})(
|
|
5049
|
-
var
|
|
5050
|
-
const b0 = /* @__PURE__ */ H0(
|
|
5048
|
+
})(ke);
|
|
5049
|
+
var Lt = ke.exports;
|
|
5050
|
+
const b0 = /* @__PURE__ */ H0(Lt), Qt = `<!DOCTYPE html>
|
|
5051
5051
|
<html lang="zh-CN">
|
|
5052
5052
|
<head>
|
|
5053
5053
|
<meta charset="UTF-8" />
|
|
@@ -5358,7 +5358,12 @@ const b0 = /* @__PURE__ */ H0(Gt), Lt = `<!DOCTYPE html>
|
|
|
5358
5358
|
<\/script>
|
|
5359
5359
|
</body>
|
|
5360
5360
|
</html>
|
|
5361
|
-
|
|
5361
|
+
`;
|
|
5362
|
+
var He;
|
|
5363
|
+
const Vt = w0.parse(
|
|
5364
|
+
(He = location.search) != null && He.endsWith("/") ? location.search.slice(0, -1) : location.search,
|
|
5365
|
+
{ ignoreQueryPrefix: !0 }
|
|
5366
|
+
), Br = n0.get(Vt, "corpId"), Wt = async ({
|
|
5362
5367
|
appCode: x,
|
|
5363
5368
|
apiPrefix: h,
|
|
5364
5369
|
manual: r = !1,
|
|
@@ -5381,7 +5386,7 @@ const b0 = /* @__PURE__ */ H0(Gt), Lt = `<!DOCTYPE html>
|
|
|
5381
5386
|
const t = n0.get(d, "retVal", n), { ucToken: o } = t;
|
|
5382
5387
|
n0.isEmpty(o) ? e0.biz.realm.getUserExclusiveInfo({
|
|
5383
5388
|
onSuccess: async function(B) {
|
|
5384
|
-
B.isExclusiveApp === 0 && !r ? await
|
|
5389
|
+
B.isExclusiveApp === 0 && !r ? await Ne({ apiPrefix: h, appCode: x, map: e, userInfo: t }) : u({ userInfo: t });
|
|
5385
5390
|
},
|
|
5386
5391
|
onFail: function(B) {
|
|
5387
5392
|
u({ userInfo: t });
|
|
@@ -5404,7 +5409,7 @@ const b0 = /* @__PURE__ */ H0(Gt), Lt = `<!DOCTYPE html>
|
|
|
5404
5409
|
}
|
|
5405
5410
|
});
|
|
5406
5411
|
});
|
|
5407
|
-
},
|
|
5412
|
+
}, Ne = async ({
|
|
5408
5413
|
apiPrefix: x,
|
|
5409
5414
|
userInfo: h,
|
|
5410
5415
|
appCode: r,
|
|
@@ -5415,7 +5420,7 @@ const b0 = /* @__PURE__ */ H0(Gt), Lt = `<!DOCTYPE html>
|
|
|
5415
5420
|
});
|
|
5416
5421
|
if (u) {
|
|
5417
5422
|
const E = n0.get(n0.get(u, e.dataPath, u), "retVal");
|
|
5418
|
-
let n =
|
|
5423
|
+
let n = Qt;
|
|
5419
5424
|
for (const t in E)
|
|
5420
5425
|
if (E.hasOwnProperty(t)) {
|
|
5421
5426
|
const o = new RegExp(`{{\\s*${t}\\s*}}`, "g");
|
|
@@ -5480,7 +5485,7 @@ const b0 = /* @__PURE__ */ H0(Gt), Lt = `<!DOCTYPE html>
|
|
|
5480
5485
|
}
|
|
5481
5486
|
}
|
|
5482
5487
|
e0.hideLoading();
|
|
5483
|
-
},
|
|
5488
|
+
}, Kt = async ({
|
|
5484
5489
|
appCode: x,
|
|
5485
5490
|
apiPrefix: h,
|
|
5486
5491
|
userInfo: r,
|
|
@@ -5495,58 +5500,58 @@ const b0 = /* @__PURE__ */ H0(Gt), Lt = `<!DOCTYPE html>
|
|
|
5495
5500
|
}), t = n0.get(d, e.dataPath, d);
|
|
5496
5501
|
t && n0.get(t, "result") === 0 ? n(!0) : n(!1);
|
|
5497
5502
|
});
|
|
5498
|
-
},
|
|
5499
|
-
bind:
|
|
5500
|
-
unBind:
|
|
5501
|
-
login:
|
|
5503
|
+
}, Yt = {
|
|
5504
|
+
bind: Ne,
|
|
5505
|
+
unBind: Kt,
|
|
5506
|
+
login: Wt,
|
|
5502
5507
|
dd: e0
|
|
5503
|
-
},
|
|
5508
|
+
}, Zt = () => new Promise(async (x) => {
|
|
5504
5509
|
const { token: h } = w0.parse(location.search, { ignoreQueryPrefix: !0 });
|
|
5505
5510
|
x(h ? {
|
|
5506
5511
|
userInfo: {
|
|
5507
5512
|
ucToken: h
|
|
5508
5513
|
}
|
|
5509
5514
|
} : { userInfo: null });
|
|
5510
|
-
}),
|
|
5511
|
-
login:
|
|
5512
|
-
},
|
|
5515
|
+
}), Xt = {
|
|
5516
|
+
login: Zt
|
|
5517
|
+
}, Jt = () => new Promise((x) => {
|
|
5513
5518
|
const { token: h } = w0.parse(location.search, { ignoreQueryPrefix: !0 });
|
|
5514
5519
|
x(h ? {
|
|
5515
5520
|
userInfo: {
|
|
5516
5521
|
ucToken: h
|
|
5517
5522
|
}
|
|
5518
5523
|
} : { userInfo: null });
|
|
5519
|
-
}),
|
|
5520
|
-
login:
|
|
5521
|
-
},
|
|
5524
|
+
}), _t = {
|
|
5525
|
+
login: Jt
|
|
5526
|
+
}, $t = () => new Promise((x) => {
|
|
5522
5527
|
const { token: h } = w0.parse(location.search, { ignoreQueryPrefix: !0 });
|
|
5523
5528
|
x(h ? {
|
|
5524
5529
|
userInfo: {
|
|
5525
5530
|
ucToken: h
|
|
5526
5531
|
}
|
|
5527
5532
|
} : { userInfo: null });
|
|
5528
|
-
}),
|
|
5529
|
-
login:
|
|
5530
|
-
},
|
|
5531
|
-
dd:
|
|
5532
|
-
h5:
|
|
5533
|
-
wxmp:
|
|
5534
|
-
weixin:
|
|
5535
|
-
}, en = (x) => {
|
|
5536
|
-
Fr.code === "dd" ? e0.setNavigationTitle(x) : Fr.code === "weixin" ? wx.setNavigationBarTitle(x) : document.title = x.title;
|
|
5537
|
-
}, rx = {
|
|
5538
|
-
setNavigationBarTitle: en
|
|
5533
|
+
}), rn = {
|
|
5534
|
+
login: $t
|
|
5535
|
+
}, en = {
|
|
5536
|
+
dd: Yt,
|
|
5537
|
+
h5: Xt,
|
|
5538
|
+
wxmp: rn,
|
|
5539
|
+
weixin: _t
|
|
5539
5540
|
}, tn = (x) => {
|
|
5541
|
+
Fr.code === "dd" ? e0.setNavigationTitle(x) : Fr.code === "weixin" ? wx.setNavigationBarTitle(x) : document.title = x.title;
|
|
5542
|
+
}, ex = {
|
|
5543
|
+
setNavigationBarTitle: tn
|
|
5544
|
+
}, nn = (x) => {
|
|
5540
5545
|
let h = "";
|
|
5541
|
-
return
|
|
5546
|
+
return $e(x, (r, e) => {
|
|
5542
5547
|
e && (C0(r) ? h += "&" + e : h += "&" + e + "=" + r);
|
|
5543
5548
|
}), h;
|
|
5544
|
-
},
|
|
5549
|
+
}, xn = (x, h) => C0(h) ? x : (Pe(x, "?") ? x : x + "?") + h.substring(1), an = (x, h) => C0(h) ? x : `${x}?${ct(h)}`;
|
|
5545
5550
|
var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
5546
5551
|
for (var x = [], h = 0; h < 256; ++h)
|
|
5547
5552
|
x.push("%" + ((h < 16 ? "0" : "") + h.toString(16)).toUpperCase());
|
|
5548
5553
|
return x;
|
|
5549
|
-
}(),
|
|
5554
|
+
}(), on = function(h) {
|
|
5550
5555
|
for (; h.length > 1; ) {
|
|
5551
5556
|
var r = h.pop(), e = r.obj[r.prop];
|
|
5552
5557
|
if (A0(e)) {
|
|
@@ -5555,11 +5560,11 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5555
5560
|
r.obj[r.prop] = p;
|
|
5556
5561
|
}
|
|
5557
5562
|
}
|
|
5558
|
-
},
|
|
5563
|
+
}, Re = function(h, r) {
|
|
5559
5564
|
for (var e = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, p = 0; p < h.length; ++p)
|
|
5560
5565
|
typeof h[p] < "u" && (e[p] = h[p]);
|
|
5561
5566
|
return e;
|
|
5562
|
-
},
|
|
5567
|
+
}, sn = function x(h, r, e) {
|
|
5563
5568
|
if (!r)
|
|
5564
5569
|
return h;
|
|
5565
5570
|
if (typeof r != "object") {
|
|
@@ -5574,7 +5579,7 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5574
5579
|
if (!h || typeof h != "object")
|
|
5575
5580
|
return [h].concat(r);
|
|
5576
5581
|
var p = h;
|
|
5577
|
-
return A0(h) && !A0(r) && (p =
|
|
5582
|
+
return A0(h) && !A0(r) && (p = Re(h, e)), A0(h) && A0(r) ? (r.forEach(function(u, E) {
|
|
5578
5583
|
if (Cr.call(h, E)) {
|
|
5579
5584
|
var n = h[E];
|
|
5580
5585
|
n && typeof n == "object" && u && typeof u == "object" ? h[E] = x(n, u, e) : h.push(u);
|
|
@@ -5584,11 +5589,11 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5584
5589
|
var n = r[E];
|
|
5585
5590
|
return Cr.call(u, E) ? u[E] = x(u[E], n, e) : u[E] = n, u;
|
|
5586
5591
|
}, p);
|
|
5587
|
-
},
|
|
5592
|
+
}, cn = function(h, r) {
|
|
5588
5593
|
return Object.keys(r).reduce(function(e, p) {
|
|
5589
5594
|
return e[p] = r[p], e;
|
|
5590
5595
|
}, h);
|
|
5591
|
-
},
|
|
5596
|
+
}, fn = function(x, h, r) {
|
|
5592
5597
|
var e = x.replace(/\+/g, " ");
|
|
5593
5598
|
if (r === "iso-8859-1")
|
|
5594
5599
|
return e.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -5597,7 +5602,7 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5597
5602
|
} catch {
|
|
5598
5603
|
return e;
|
|
5599
5604
|
}
|
|
5600
|
-
},
|
|
5605
|
+
}, hn = function(h, r, e) {
|
|
5601
5606
|
if (h.length === 0)
|
|
5602
5607
|
return h;
|
|
5603
5608
|
var p = h;
|
|
@@ -5626,30 +5631,30 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5626
5631
|
E += 1, n = 65536 + ((n & 1023) << 10 | p.charCodeAt(E) & 1023), u += i0[240 | n >> 18] + i0[128 | n >> 12 & 63] + i0[128 | n >> 6 & 63] + i0[128 | n & 63];
|
|
5627
5632
|
}
|
|
5628
5633
|
return u;
|
|
5629
|
-
},
|
|
5634
|
+
}, un = function(h) {
|
|
5630
5635
|
for (var r = [{ obj: { o: h }, prop: "o" }], e = [], p = 0; p < r.length; ++p)
|
|
5631
5636
|
for (var u = r[p], E = u.obj[u.prop], n = Object.keys(E), d = 0; d < n.length; ++d) {
|
|
5632
5637
|
var t = n[d], o = E[t];
|
|
5633
5638
|
typeof o == "object" && o !== null && e.indexOf(o) === -1 && (r.push({ obj: E, prop: t }), e.push(o));
|
|
5634
5639
|
}
|
|
5635
|
-
return
|
|
5636
|
-
}, un = function(h) {
|
|
5637
|
-
return Object.prototype.toString.call(h) === "[object RegExp]";
|
|
5640
|
+
return on(r), h;
|
|
5638
5641
|
}, ln = function(h) {
|
|
5642
|
+
return Object.prototype.toString.call(h) === "[object RegExp]";
|
|
5643
|
+
}, dn = function(h) {
|
|
5639
5644
|
return !h || typeof h != "object" ? !1 : !!(h.constructor && h.constructor.isBuffer && h.constructor.isBuffer(h));
|
|
5640
|
-
},
|
|
5645
|
+
}, vn = function(h, r) {
|
|
5641
5646
|
return [].concat(h, r);
|
|
5642
|
-
},
|
|
5643
|
-
arrayToObject:
|
|
5644
|
-
assign:
|
|
5645
|
-
combine:
|
|
5646
|
-
compact:
|
|
5647
|
-
decode:
|
|
5648
|
-
encode:
|
|
5649
|
-
isBuffer:
|
|
5650
|
-
isRegExp:
|
|
5651
|
-
merge:
|
|
5652
|
-
}, y0 =
|
|
5647
|
+
}, pn = {
|
|
5648
|
+
arrayToObject: Re,
|
|
5649
|
+
assign: cn,
|
|
5650
|
+
combine: vn,
|
|
5651
|
+
compact: un,
|
|
5652
|
+
decode: fn,
|
|
5653
|
+
encode: hn,
|
|
5654
|
+
isBuffer: dn,
|
|
5655
|
+
isRegExp: ln,
|
|
5656
|
+
merge: sn
|
|
5657
|
+
}, y0 = pn, Dr = Object.prototype.hasOwnProperty, An = Array.isArray, _ = {
|
|
5653
5658
|
allowDots: !1,
|
|
5654
5659
|
allowPrototypes: !1,
|
|
5655
5660
|
arrayLimit: 20,
|
|
@@ -5665,22 +5670,22 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5665
5670
|
parseArrays: !0,
|
|
5666
5671
|
plainObjects: !1,
|
|
5667
5672
|
strictNullHandling: !1
|
|
5668
|
-
},
|
|
5673
|
+
}, Bn = function(x) {
|
|
5669
5674
|
return x.replace(/&#(\d+);/g, function(h, r) {
|
|
5670
5675
|
return String.fromCharCode(parseInt(r, 10));
|
|
5671
5676
|
});
|
|
5672
|
-
},
|
|
5677
|
+
}, Cn = "utf8=%26%2310003%3B", En = "utf8=%E2%9C%93", Fn = function(h, r) {
|
|
5673
5678
|
var e = {}, p = r.ignoreQueryPrefix ? h.replace(/^\?/, "") : h, u = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, E = p.split(r.delimiter, u), n = -1, d, t = r.charset;
|
|
5674
5679
|
if (r.charsetSentinel)
|
|
5675
5680
|
for (d = 0; d < E.length; ++d)
|
|
5676
|
-
E[d].indexOf("utf8=") === 0 && (E[d] ===
|
|
5681
|
+
E[d].indexOf("utf8=") === 0 && (E[d] === En ? t = "utf-8" : E[d] === Cn && (t = "iso-8859-1"), n = d, d = E.length);
|
|
5677
5682
|
for (d = 0; d < E.length; ++d)
|
|
5678
5683
|
if (d !== n) {
|
|
5679
5684
|
var o = E[d], B = o.indexOf("]="), i = B === -1 ? o.indexOf("=") : B + 1, f, c;
|
|
5680
|
-
i === -1 ? (f = r.decoder(o, _.decoder, t, "key"), c = r.strictNullHandling ? null : "") : (f = r.decoder(o.slice(0, i), _.decoder, t, "key"), c = r.decoder(o.slice(i + 1), _.decoder, t, "value")), c && r.interpretNumericEntities && t === "iso-8859-1" && (c =
|
|
5685
|
+
i === -1 ? (f = r.decoder(o, _.decoder, t, "key"), c = r.strictNullHandling ? null : "") : (f = r.decoder(o.slice(0, i), _.decoder, t, "key"), c = r.decoder(o.slice(i + 1), _.decoder, t, "value")), c && r.interpretNumericEntities && t === "iso-8859-1" && (c = Bn(c)), c && typeof c == "string" && r.comma && c.indexOf(",") > -1 && (c = c.split(",")), o.indexOf("[]=") > -1 && (c = An(c) ? [c] : c), Dr.call(e, f) ? e[f] = y0.combine(e[f], c) : e[f] = c;
|
|
5681
5686
|
}
|
|
5682
5687
|
return e;
|
|
5683
|
-
},
|
|
5688
|
+
}, Dn = function(x, h, r) {
|
|
5684
5689
|
for (var e = h, p = x.length - 1; p >= 0; --p) {
|
|
5685
5690
|
var u, E = x[p];
|
|
5686
5691
|
if (E === "[]" && r.parseArrays)
|
|
@@ -5693,7 +5698,7 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5693
5698
|
e = u;
|
|
5694
5699
|
}
|
|
5695
5700
|
return e;
|
|
5696
|
-
},
|
|
5701
|
+
}, gn = function(h, r, e) {
|
|
5697
5702
|
if (h) {
|
|
5698
5703
|
var p = e.allowDots ? h.replace(/\.([^.[]+)/g, "[$1]") : h, u = /(\[[^[\]]*])/, E = /(\[[^[\]]*])/g, n = e.depth > 0 && u.exec(p), d = n ? p.slice(0, n.index) : p, t = [];
|
|
5699
5704
|
if (d) {
|
|
@@ -5706,9 +5711,9 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5706
5711
|
return;
|
|
5707
5712
|
t.push(n[1]);
|
|
5708
5713
|
}
|
|
5709
|
-
return n && t.push("[" + p.slice(n.index) + "]"),
|
|
5714
|
+
return n && t.push("[" + p.slice(n.index) + "]"), Dn(t, r, e);
|
|
5710
5715
|
}
|
|
5711
|
-
},
|
|
5716
|
+
}, bn = function(h) {
|
|
5712
5717
|
if (!h)
|
|
5713
5718
|
return _;
|
|
5714
5719
|
if (h.decoder !== null && h.decoder !== void 0 && typeof h.decoder != "function")
|
|
@@ -5734,17 +5739,17 @@ var Cr = Object.prototype.hasOwnProperty, A0 = Array.isArray, i0 = function() {
|
|
|
5734
5739
|
plainObjects: typeof h.plainObjects == "boolean" ? h.plainObjects : _.plainObjects,
|
|
5735
5740
|
strictNullHandling: typeof h.strictNullHandling == "boolean" ? h.strictNullHandling : _.strictNullHandling
|
|
5736
5741
|
};
|
|
5737
|
-
},
|
|
5738
|
-
var r =
|
|
5742
|
+
}, mn = function(x, h) {
|
|
5743
|
+
var r = bn(h);
|
|
5739
5744
|
if (x === "" || x === null || typeof x > "u")
|
|
5740
5745
|
return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
5741
|
-
for (var e = typeof x == "string" ?
|
|
5742
|
-
var n = u[E], d =
|
|
5746
|
+
for (var e = typeof x == "string" ? Fn(x, r) : x, p = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, u = Object.keys(e), E = 0; E < u.length; ++E) {
|
|
5747
|
+
var n = u[E], d = gn(n, e[n], r);
|
|
5743
5748
|
p = y0.merge(p, d, r);
|
|
5744
5749
|
}
|
|
5745
5750
|
return y0.compact(p);
|
|
5746
5751
|
};
|
|
5747
|
-
const
|
|
5752
|
+
const yn = /* @__PURE__ */ H0(mn);
|
|
5748
5753
|
var O0 = { exports: {} };
|
|
5749
5754
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
5750
5755
|
O0.exports;
|
|
@@ -5866,11 +5871,11 @@ O0.exports;
|
|
|
5866
5871
|
r.punycode = E;
|
|
5867
5872
|
})(U);
|
|
5868
5873
|
})(O0, O0.exports);
|
|
5869
|
-
var
|
|
5874
|
+
var wn = O0.exports, Hn = wn;
|
|
5870
5875
|
function c0() {
|
|
5871
5876
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
5872
5877
|
}
|
|
5873
|
-
var
|
|
5878
|
+
var Pn = /^([a-z0-9.+-]+:)/i, Sn = /:[0-9]*$/, On = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, kn = [
|
|
5874
5879
|
"<",
|
|
5875
5880
|
">",
|
|
5876
5881
|
'"',
|
|
@@ -5880,14 +5885,14 @@ var Hn = /^([a-z0-9.+-]+:)/i, Pn = /:[0-9]*$/, Sn = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5880
5885
|
`
|
|
5881
5886
|
`,
|
|
5882
5887
|
" "
|
|
5883
|
-
],
|
|
5888
|
+
], zn = [
|
|
5884
5889
|
"{",
|
|
5885
5890
|
"}",
|
|
5886
5891
|
"|",
|
|
5887
5892
|
"\\",
|
|
5888
5893
|
"^",
|
|
5889
5894
|
"`"
|
|
5890
|
-
].concat(
|
|
5895
|
+
].concat(kn), gr = ["'"].concat(zn), ge = [
|
|
5891
5896
|
"%",
|
|
5892
5897
|
"/",
|
|
5893
5898
|
"?",
|
|
@@ -5897,7 +5902,7 @@ var Hn = /^([a-z0-9.+-]+:)/i, Pn = /:[0-9]*$/, Sn = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5897
5902
|
"/",
|
|
5898
5903
|
"?",
|
|
5899
5904
|
"#"
|
|
5900
|
-
],
|
|
5905
|
+
], jn = 255, me = /^[+a-z0-9A-Z_-]{0,63}$/, Nn = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Rn = {
|
|
5901
5906
|
javascript: !0,
|
|
5902
5907
|
"javascript:": !0
|
|
5903
5908
|
}, br = {
|
|
@@ -5915,7 +5920,7 @@ var Hn = /^([a-z0-9.+-]+:)/i, Pn = /:[0-9]*$/, Sn = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5915
5920
|
"gopher:": !0,
|
|
5916
5921
|
"file:": !0
|
|
5917
5922
|
}, mr = w0;
|
|
5918
|
-
function
|
|
5923
|
+
function qe(x, h, r) {
|
|
5919
5924
|
if (x && typeof x == "object" && x instanceof c0)
|
|
5920
5925
|
return x;
|
|
5921
5926
|
var e = new c0();
|
|
@@ -5928,11 +5933,11 @@ c0.prototype.parse = function(x, h, r) {
|
|
|
5928
5933
|
u[0] = u[0].replace(E, "/"), x = u.join(p);
|
|
5929
5934
|
var n = x;
|
|
5930
5935
|
if (n = n.trim(), !r && x.split("#").length === 1) {
|
|
5931
|
-
var d =
|
|
5936
|
+
var d = On.exec(n);
|
|
5932
5937
|
if (d)
|
|
5933
5938
|
return this.path = n, this.href = n, this.pathname = d[1], d[2] ? (this.search = d[2], h ? this.query = mr.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : h && (this.search = "", this.query = {}), this;
|
|
5934
5939
|
}
|
|
5935
|
-
var t =
|
|
5940
|
+
var t = Pn.exec(n);
|
|
5936
5941
|
if (t) {
|
|
5937
5942
|
t = t[0];
|
|
5938
5943
|
var o = t.toLowerCase();
|
|
@@ -5962,17 +5967,17 @@ c0.prototype.parse = function(x, h, r) {
|
|
|
5962
5967
|
for (var F = "", g = 0, m = v.length; g < m; g++)
|
|
5963
5968
|
v.charCodeAt(g) > 127 ? F += "x" : F += v[g];
|
|
5964
5969
|
if (!F.match(me)) {
|
|
5965
|
-
var w = a.slice(0, f), z = a.slice(f + 1), C = v.match(
|
|
5970
|
+
var w = a.slice(0, f), z = a.slice(f + 1), C = v.match(Nn);
|
|
5966
5971
|
C && (w.push(C[1]), z.unshift(C[2])), z.length && (n = "/" + z.join(".") + n), this.hostname = w.join(".");
|
|
5967
5972
|
break;
|
|
5968
5973
|
}
|
|
5969
5974
|
}
|
|
5970
5975
|
}
|
|
5971
|
-
this.hostname.length >
|
|
5976
|
+
this.hostname.length > jn ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), D || (this.hostname = Hn.toASCII(this.hostname));
|
|
5972
5977
|
var y = this.port ? ":" + this.port : "", k = this.hostname || "";
|
|
5973
5978
|
this.host = k + y, this.href += this.host, D && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), n[0] !== "/" && (n = "/" + n));
|
|
5974
5979
|
}
|
|
5975
|
-
if (!
|
|
5980
|
+
if (!Rn[o])
|
|
5976
5981
|
for (var f = 0, s = gr.length; f < s; f++) {
|
|
5977
5982
|
var O = gr[f];
|
|
5978
5983
|
if (n.indexOf(O) !== -1) {
|
|
@@ -6003,7 +6008,7 @@ c0.prototype.format = function() {
|
|
|
6003
6008
|
}), E = E.replace("#", "%23"), h + p + r + E + e;
|
|
6004
6009
|
};
|
|
6005
6010
|
c0.prototype.resolve = function(x) {
|
|
6006
|
-
return this.resolveObject(
|
|
6011
|
+
return this.resolveObject(qe(x, !1, !0)).format();
|
|
6007
6012
|
};
|
|
6008
6013
|
c0.prototype.resolveObject = function(x) {
|
|
6009
6014
|
if (typeof x == "string") {
|
|
@@ -6073,39 +6078,39 @@ c0.prototype.resolveObject = function(x) {
|
|
|
6073
6078
|
return l = l || r.host && a.length, l && !C && a.unshift(""), a.length > 0 ? r.pathname = a.join("/") : (r.pathname = null, r.path = null), (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = x.auth || r.auth, r.slashes = r.slashes || x.slashes, r.href = r.format(), r;
|
|
6074
6079
|
};
|
|
6075
6080
|
c0.prototype.parseHost = function() {
|
|
6076
|
-
var x = this.host, h =
|
|
6081
|
+
var x = this.host, h = Sn.exec(x);
|
|
6077
6082
|
h && (h = h[0], h !== ":" && (this.port = h.substr(1)), x = x.substr(0, x.length - h.length)), x && (this.hostname = x);
|
|
6078
6083
|
};
|
|
6079
|
-
var
|
|
6084
|
+
var qn = qe, Ie = { exports: {} };
|
|
6080
6085
|
(function(x, h) {
|
|
6081
6086
|
(function(r, e, p) {
|
|
6082
6087
|
x.exports = e(G(), z0(), j0());
|
|
6083
6088
|
})(U, function(r) {
|
|
6084
6089
|
return r.HmacSHA256;
|
|
6085
6090
|
});
|
|
6086
|
-
})(
|
|
6087
|
-
var
|
|
6088
|
-
const
|
|
6089
|
-
var
|
|
6090
|
-
const
|
|
6091
|
-
var
|
|
6092
|
-
const
|
|
6091
|
+
})(Ie);
|
|
6092
|
+
var In = Ie.exports;
|
|
6093
|
+
const Mn = /* @__PURE__ */ H0(In);
|
|
6094
|
+
var Un = u0();
|
|
6095
|
+
const Me = /* @__PURE__ */ H0(Un);
|
|
6096
|
+
var Tn = l0();
|
|
6097
|
+
const Gn = /* @__PURE__ */ H0(Tn), Ln = (x, h) => Me.stringify(Mn(x, h)), Qn = (x) => C0(x) ? (
|
|
6093
6098
|
//createHash("md5").update(data, "utf-8").digest("base64")
|
|
6094
6099
|
""
|
|
6095
|
-
) :
|
|
6096
|
-
const h =
|
|
6100
|
+
) : Me.stringify(Gn(x)), ye = { sign: Ln, md5Content: Qn }, Vn = (x) => {
|
|
6101
|
+
const h = Se(Object.keys(x));
|
|
6097
6102
|
let r = {};
|
|
6098
|
-
return
|
|
6099
|
-
C0(x[e]) ? r[e] = null :
|
|
6103
|
+
return Oe(h, (e) => {
|
|
6104
|
+
C0(x[e]) ? r[e] = null : rt(x[e]) ? r[e] = x[e][0] : r[e] = x[e];
|
|
6100
6105
|
}), r;
|
|
6101
|
-
},
|
|
6102
|
-
map:
|
|
6103
|
-
keys:
|
|
6104
|
-
compact:
|
|
6105
|
-
sortBy:
|
|
6106
|
-
forEach:
|
|
6107
|
-
},
|
|
6108
|
-
let h = x, r =
|
|
6106
|
+
}, Wn = {
|
|
6107
|
+
map: Oe,
|
|
6108
|
+
keys: nt,
|
|
6109
|
+
compact: xt,
|
|
6110
|
+
sortBy: Se,
|
|
6111
|
+
forEach: at
|
|
6112
|
+
}, Kn = (x) => {
|
|
6113
|
+
let h = x, r = tt(Wn, (p) => (...u) => (h = p(h, ...u), e));
|
|
6109
6114
|
const e = Object.assign(r, {
|
|
6110
6115
|
value: () => h
|
|
6111
6116
|
});
|
|
@@ -6120,34 +6125,34 @@ const Tn = /* @__PURE__ */ H0(Un), Gn = (x, h) => Ie.stringify(In(x, h)), Ln = (
|
|
|
6120
6125
|
"Date"
|
|
6121
6126
|
];
|
|
6122
6127
|
let r = "", e = "", p = !0;
|
|
6123
|
-
return
|
|
6128
|
+
return Kn(x).keys(x).map((u) => (
|
|
6124
6129
|
//排除上面的已经存在的各种header
|
|
6125
|
-
!
|
|
6130
|
+
!Pe(h, u) && {
|
|
6126
6131
|
value: x[u],
|
|
6127
|
-
key:
|
|
6132
|
+
key: et(u)
|
|
6128
6133
|
}
|
|
6129
6134
|
)).compact().sortBy((u) => u.key).forEach((u) => {
|
|
6130
6135
|
r += `${u.key}:${u.value}
|
|
6131
6136
|
`, p ? e += u.key : e += "," + u.key, p = !1;
|
|
6132
6137
|
}), { transformHeader: r, transformHeaderKeys: e };
|
|
6133
|
-
},
|
|
6138
|
+
}, Yn = "application/x-www-form-urlencoded", Zn = (x, { appkey: h, appsecret: r, originQuery: e }) => {
|
|
6134
6139
|
try {
|
|
6135
6140
|
if (h && r) {
|
|
6136
6141
|
const { method: p, url: u } = x;
|
|
6137
|
-
let E = e ?
|
|
6138
|
-
const { Accept: d } = n, t =
|
|
6142
|
+
let E = e ? an(u, e) : u, n = Mr(x, "headers") || Mr(x, "header");
|
|
6143
|
+
const { Accept: d } = n, t = qn(E, !0), o = t.query;
|
|
6139
6144
|
let B = "", i = o;
|
|
6140
|
-
if (n["Content-Type"] || (n["Content-Type"] = "application/json"), n.Accept || (n.Accept = "*/*"), x.body && n["Content-Type"].indexOf(
|
|
6145
|
+
if (n["Content-Type"] || (n["Content-Type"] = "application/json"), n.Accept || (n.Accept = "*/*"), x.body && n["Content-Type"].indexOf(Yn) === -1)
|
|
6141
6146
|
B = ye.md5Content(x.body), n["Content-MD5"] = B;
|
|
6142
6147
|
else {
|
|
6143
6148
|
let l = x.body;
|
|
6144
|
-
if (
|
|
6145
|
-
const D =
|
|
6149
|
+
if (ot(l)) {
|
|
6150
|
+
const D = yn(l);
|
|
6146
6151
|
C0(i) ? i = D : i = Object.assign({}, i, D);
|
|
6147
6152
|
}
|
|
6148
6153
|
}
|
|
6149
|
-
const f =
|
|
6150
|
-
n["X-Gw-Key"] = h, n["X-Gw-Timestamp"] = Ur(
|
|
6154
|
+
const f = xn(t.pathname, nn(Vn(i))), c = n["Content-Type"] ? n["Content-Type"] : "";
|
|
6155
|
+
n["X-Gw-Key"] = h, n["X-Gw-Timestamp"] = Ur(it()), n["X-Gw-Nonce"] = Ur(st(1e12, 9999999999999));
|
|
6151
6156
|
const A = `${p}
|
|
6152
6157
|
${d || "*/*"}
|
|
6153
6158
|
${B}
|
|
@@ -6160,17 +6165,17 @@ ${we(n).transformHeader}${decodeURIComponent(f)}`;
|
|
|
6160
6165
|
} catch (p) {
|
|
6161
6166
|
console.log("error", p);
|
|
6162
6167
|
}
|
|
6163
|
-
},
|
|
6168
|
+
}, Xn = (x) => {
|
|
6164
6169
|
m0.interceptors.request.use(
|
|
6165
|
-
(h) => (h.method = h.method.toUpperCase(),
|
|
6170
|
+
(h) => (h.method = h.method.toUpperCase(), Zn(h, x), h),
|
|
6166
6171
|
(h) => (console.log(h), Promise.reject(h))
|
|
6167
6172
|
);
|
|
6168
6173
|
};
|
|
6169
|
-
class
|
|
6174
|
+
class Jn {
|
|
6170
6175
|
constructor(h) {
|
|
6171
|
-
this.config = h, this.env = Fr, this.js =
|
|
6176
|
+
this.config = h, this.env = Fr, this.js = en[this.env.code], this.userInfo = null;
|
|
6172
6177
|
const { gc_rsa: r } = h;
|
|
6173
|
-
console.log("网关配置:", r), r &&
|
|
6178
|
+
console.log("网关配置:", r), r && Xn(r);
|
|
6174
6179
|
}
|
|
6175
6180
|
async init() {
|
|
6176
6181
|
try {
|
|
@@ -6187,11 +6192,11 @@ class Xn {
|
|
|
6187
6192
|
return this.js.bind({ ...this.config, userInfo: this.userInfo });
|
|
6188
6193
|
}
|
|
6189
6194
|
}
|
|
6190
|
-
async function
|
|
6191
|
-
const h = new
|
|
6195
|
+
async function tx(x) {
|
|
6196
|
+
const h = new Jn(x);
|
|
6192
6197
|
return await h.init(), h;
|
|
6193
6198
|
}
|
|
6194
6199
|
export {
|
|
6195
|
-
|
|
6196
|
-
|
|
6200
|
+
tx as default,
|
|
6201
|
+
ex as utils
|
|
6197
6202
|
};
|