aliyun-rtc-sdk 6.14.2-beta.4 → 6.14.2-beta.5
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/aliyun-rtc-sdk.es.js +430 -429
- package/dist/aliyun-rtc-sdk.umd.js +9 -9
- package/package.json +1 -1
|
@@ -654,8 +654,8 @@ function Jn() {
|
|
|
654
654
|
return this;
|
|
655
655
|
},
|
|
656
656
|
_lg: function(s, n, c, o) {
|
|
657
|
-
var u = this, h = u._conf, p = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, m = d.ignoreResErrors, l = d.ignoreUrls,
|
|
658
|
-
if (u._isRobot || r.ignoreByRule(p, l) || r.ignoreByRule(r.decode(p), l) || s === "error" && (r.ignoreByRule(n.msg, f) || r.ignoreByRule(r.decode(n.msg), f)) || s === "resourceError" && (r.ignoreByRule(n.src, m) || r.ignoreByRule(r.decode(n.src), m)) || s === "api" && (r.ignoreByRule(n.api,
|
|
657
|
+
var u = this, h = u._conf, p = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, m = d.ignoreResErrors, l = d.ignoreUrls, x = d.ignoreApis;
|
|
658
|
+
if (u._isRobot || r.ignoreByRule(p, l) || r.ignoreByRule(r.decode(p), l) || s === "error" && (r.ignoreByRule(n.msg, f) || r.ignoreByRule(r.decode(n.msg), f)) || s === "resourceError" && (r.ignoreByRule(n.src, m) || r.ignoreByRule(r.decode(n.src), m)) || s === "api" && (r.ignoreByRule(n.api, x) || r.ignoreByRule(r.decode(n.api), x)) || !u.checkImgUrl(h.imgUrl) || !n || h.disabled || !h.pid || o === 0)
|
|
659
659
|
return u;
|
|
660
660
|
var v = n.dl;
|
|
661
661
|
if (delete n.dl, n = r.ext({
|
|
@@ -681,7 +681,7 @@ function Jn() {
|
|
|
681
681
|
try {
|
|
682
682
|
if (!(n = h.beforeReport(n)))
|
|
683
683
|
return u;
|
|
684
|
-
} catch (
|
|
684
|
+
} catch (S) {
|
|
685
685
|
return u;
|
|
686
686
|
}
|
|
687
687
|
return o === 1 ? t(u, n) : c && !u.sampling(c) ? u : t(u, n);
|
|
@@ -827,12 +827,12 @@ function Gn() {
|
|
|
827
827
|
stack_raw: r.encode(u)
|
|
828
828
|
},
|
|
829
829
|
dl: h
|
|
830
|
-
}, l = ["tag", "c1", "c2", "c3"],
|
|
831
|
-
var v = l[
|
|
830
|
+
}, l = ["tag", "c1", "c2", "c3"], x = 0; x < l.length; x++) {
|
|
831
|
+
var v = l[x];
|
|
832
832
|
n[v] && (m[v] = n[v]);
|
|
833
833
|
}
|
|
834
|
-
var
|
|
835
|
-
return r.ignoreByRule(m.msg,
|
|
834
|
+
var S = (this.getConfig("ignore") || {}).ignoreErrors;
|
|
835
|
+
return r.ignoreByRule(m.msg, S) || r.ignoreByRule(r.decode(m.msg), S) ? this : (this.beforeSend && this.beforeSend("error", m), this._lg("error", m, 1));
|
|
836
836
|
},
|
|
837
837
|
behavior: function(s) {
|
|
838
838
|
if (s) {
|
|
@@ -842,7 +842,7 @@ function Gn() {
|
|
|
842
842
|
return this.beforeSend && this.beforeSend("behavior", n), this._lg("behavior", n, 1);
|
|
843
843
|
}
|
|
844
844
|
},
|
|
845
|
-
api: function(s, n, c, o, u, h, p, d, f, m, l,
|
|
845
|
+
api: function(s, n, c, o, u, h, p, d, f, m, l, x, v, S, b, E) {
|
|
846
846
|
if (!s)
|
|
847
847
|
return r.warn("[retcode] api is null"), this;
|
|
848
848
|
if (s = typeof s == "string" ? {
|
|
@@ -856,9 +856,9 @@ function Gn() {
|
|
|
856
856
|
pv_id: d,
|
|
857
857
|
apiSnapshot: f,
|
|
858
858
|
domain: m,
|
|
859
|
-
flag:
|
|
859
|
+
flag: x,
|
|
860
860
|
tag: v,
|
|
861
|
-
c1:
|
|
861
|
+
c1: S,
|
|
862
862
|
c2: b,
|
|
863
863
|
c3: E
|
|
864
864
|
} : r.sub(s, e), !r.checkAPI(s.api, !0))
|
|
@@ -972,16 +972,16 @@ function Zn() {
|
|
|
972
972
|
d[f] = m(l);
|
|
973
973
|
}
|
|
974
974
|
}, u = function(d) {
|
|
975
|
-
var f, m, l,
|
|
975
|
+
var f, m, l, x, v, S = [];
|
|
976
976
|
if (!d || typeof d.tagName != "string")
|
|
977
977
|
return "";
|
|
978
|
-
if (
|
|
978
|
+
if (S.push(d.tagName.toLowerCase()), typeof d.id == "string" && S.push("#".concat(d.id)), typeof (f = d.className) == "string")
|
|
979
979
|
for (m = f.split(/\s+/), v = 0; v < m.length; v++)
|
|
980
|
-
|
|
980
|
+
S.push(".".concat(m[v]));
|
|
981
981
|
var b = ["type", "name", "title", "alt", "data-arms-attr"];
|
|
982
982
|
for (v = 0; v < b.length; v++)
|
|
983
|
-
l = b[v], typeof (
|
|
984
|
-
return
|
|
983
|
+
l = b[v], typeof (x = d.getAttribute(l)) == "string" && S.push("[".concat(l, '="').concat(x, '"]'));
|
|
984
|
+
return S.join("");
|
|
985
985
|
}, h = function(d, f) {
|
|
986
986
|
return function(m) {
|
|
987
987
|
if (m && m !== c) {
|
|
@@ -993,20 +993,20 @@ function Zn() {
|
|
|
993
993
|
l = "<unknown>";
|
|
994
994
|
}
|
|
995
995
|
if (l.length !== 0) {
|
|
996
|
-
var
|
|
996
|
+
var x = {
|
|
997
997
|
type: "ui.".concat(d),
|
|
998
998
|
data: {
|
|
999
999
|
message: function(v) {
|
|
1000
1000
|
if (!v || v.nodeType !== 1)
|
|
1001
1001
|
return "";
|
|
1002
|
-
for (var
|
|
1003
|
-
b.push(A), _ += A.length,
|
|
1002
|
+
for (var S = v || null, b = [], E = 0, _ = 0, y = 3, A = ""; S && E++ < 5 && !((A = u(S)) === "html" || E > 1 && _ + b.length * y + A.length >= 80); )
|
|
1003
|
+
b.push(A), _ += A.length, S = S.parentNode;
|
|
1004
1004
|
return b.reverse().join(" > ");
|
|
1005
1005
|
}(l)
|
|
1006
1006
|
},
|
|
1007
1007
|
timestamp: Date.now()
|
|
1008
1008
|
};
|
|
1009
|
-
d === "click" ? i && i.addBehavior(
|
|
1009
|
+
d === "click" ? i && i.addBehavior(x) : d === "keypress" && (n || i && i.addBehavior(x), clearTimeout(n), n = setTimeout(function() {
|
|
1010
1010
|
n = void 0;
|
|
1011
1011
|
}, 100));
|
|
1012
1012
|
}
|
|
@@ -1014,30 +1014,30 @@ function Zn() {
|
|
|
1014
1014
|
};
|
|
1015
1015
|
}, p = function() {
|
|
1016
1016
|
if (function() {
|
|
1017
|
-
var l = e && e.chrome,
|
|
1018
|
-
return !
|
|
1017
|
+
var l = e && e.chrome, x = l && l.app && l.app.runtime, v = "history" in e && !!e.history.pushState && !!e.history.replaceState;
|
|
1018
|
+
return !x && v;
|
|
1019
1019
|
}()) {
|
|
1020
|
-
var d = function(l,
|
|
1020
|
+
var d = function(l, x) {
|
|
1021
1021
|
var v = {
|
|
1022
1022
|
type: "navigation",
|
|
1023
1023
|
data: {
|
|
1024
1024
|
from: l,
|
|
1025
|
-
to:
|
|
1025
|
+
to: x
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
|
-
i && i.addBehavior(v), s =
|
|
1028
|
+
i && i.addBehavior(v), s = x;
|
|
1029
1029
|
}, f = e.onpopstate;
|
|
1030
1030
|
e.onpopstate = function() {
|
|
1031
|
-
for (var l = arguments.length,
|
|
1032
|
-
|
|
1033
|
-
var
|
|
1034
|
-
if (d(s,
|
|
1035
|
-
return f.apply(this,
|
|
1031
|
+
for (var l = arguments.length, x = new Array(l), v = 0; v < l; v++)
|
|
1032
|
+
x[v] = arguments[v];
|
|
1033
|
+
var S = e.location.href;
|
|
1034
|
+
if (d(s, S), f)
|
|
1035
|
+
return f.apply(this, x);
|
|
1036
1036
|
};
|
|
1037
1037
|
var m = function(l) {
|
|
1038
1038
|
return function() {
|
|
1039
|
-
for (var
|
|
1040
|
-
v[
|
|
1039
|
+
for (var x = arguments.length, v = new Array(x), S = 0; S < x; S++)
|
|
1040
|
+
v[S] = arguments[S];
|
|
1041
1041
|
var b = v.length > 2 ? v[2] : void 0;
|
|
1042
1042
|
return b && d(s, String(b)), l.apply(this, v);
|
|
1043
1043
|
};
|
|
@@ -1102,20 +1102,20 @@ function Zn() {
|
|
|
1102
1102
|
var m = ["debug", "info", "warn", "log", "error", "assert"];
|
|
1103
1103
|
r.isArray(f) && (m = f);
|
|
1104
1104
|
for (var l = 0; l < m.length; l++) {
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1107
|
-
var
|
|
1105
|
+
var x = m[l];
|
|
1106
|
+
x && r.isString(x) && e.console[x] && typeof e.console[x] == "function" && o(e.console, x, function(v) {
|
|
1107
|
+
var S = x;
|
|
1108
1108
|
return function() {
|
|
1109
1109
|
for (var b = arguments.length, E = new Array(b), _ = 0; _ < b; _++)
|
|
1110
1110
|
E[_] = arguments[_];
|
|
1111
1111
|
var y = {
|
|
1112
1112
|
type: "console",
|
|
1113
1113
|
data: {
|
|
1114
|
-
level:
|
|
1114
|
+
level: S,
|
|
1115
1115
|
message: E
|
|
1116
1116
|
}
|
|
1117
1117
|
};
|
|
1118
|
-
if (i && i.addBehavior(y),
|
|
1118
|
+
if (i && i.addBehavior(y), S === "error")
|
|
1119
1119
|
for (var A = 0; A < E.length; A++) {
|
|
1120
1120
|
var R = E[A];
|
|
1121
1121
|
R && R.message && R.stack && i && i.errorHandler(new ErrorEvent("error", {
|
|
@@ -1199,10 +1199,10 @@ function eo() {
|
|
|
1199
1199
|
ready: [12, 1],
|
|
1200
1200
|
load: [14, 1]
|
|
1201
1201
|
}, function(m, l) {
|
|
1202
|
-
var
|
|
1203
|
-
if (o === 2 ||
|
|
1204
|
-
var
|
|
1205
|
-
|
|
1202
|
+
var x = n[e[m[1]]], v = n[e[m[0]]];
|
|
1203
|
+
if (o === 2 || x > 0 && v > 0) {
|
|
1204
|
+
var S = Math.round(v - x);
|
|
1205
|
+
S >= 0 && S < 6e5 && (s[l] = S);
|
|
1206
1206
|
}
|
|
1207
1207
|
});
|
|
1208
1208
|
var h = t.navigator.connection, p = i.navigation || {};
|
|
@@ -1222,8 +1222,8 @@ function to() {
|
|
|
1222
1222
|
sr: screen.width + "x" + screen.height,
|
|
1223
1223
|
vp: o + "x" + u,
|
|
1224
1224
|
ct: h ? h.effectiveType || h.type : ""
|
|
1225
|
-
}, d = {}, f = function(l,
|
|
1226
|
-
if (
|
|
1225
|
+
}, d = {}, f = function(l, x, v, S, b) {
|
|
1226
|
+
if (x === void 0) {
|
|
1227
1227
|
var E, _;
|
|
1228
1228
|
if (!d[l]) {
|
|
1229
1229
|
E = new RegExp(l + "=([^;]+)");
|
|
@@ -1236,7 +1236,7 @@ function to() {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
return d[l];
|
|
1238
1238
|
}
|
|
1239
|
-
var y = l + "=" +
|
|
1239
|
+
var y = l + "=" + x;
|
|
1240
1240
|
y += "; path=/", v && (y += "; max-age=" + v);
|
|
1241
1241
|
try {
|
|
1242
1242
|
return e.cookie = y, !!e.cookie;
|
|
@@ -1244,8 +1244,8 @@ function to() {
|
|
|
1244
1244
|
return t.warn("[retcode] can not set cookie: ", A), !1;
|
|
1245
1245
|
}
|
|
1246
1246
|
}, m = function(l) {
|
|
1247
|
-
var
|
|
1248
|
-
return !
|
|
1247
|
+
var x = l._conf.uid || f("_nk_") || f("_bl_uid");
|
|
1248
|
+
return !x && (x = t.uu(), !f("_bl_uid", x, 15552e3)) ? null : x;
|
|
1249
1249
|
};
|
|
1250
1250
|
return t.ext(r.prototype, {
|
|
1251
1251
|
activeErrHandler: function(l) {
|
|
@@ -1254,79 +1254,79 @@ function to() {
|
|
|
1254
1254
|
errorHandler: function(l) {
|
|
1255
1255
|
if (!l)
|
|
1256
1256
|
return this;
|
|
1257
|
-
var
|
|
1258
|
-
if (
|
|
1257
|
+
var x = l.type;
|
|
1258
|
+
if (x === "error") {
|
|
1259
1259
|
var v = l.target || l.srcElement;
|
|
1260
1260
|
!v || !v.tagName || l.message || l.filename || l.lineno || l.colno ? this.error(l.error || {
|
|
1261
1261
|
message: l.message
|
|
1262
1262
|
}, l) : this.resourceErrorHandler(l);
|
|
1263
1263
|
} else
|
|
1264
|
-
|
|
1264
|
+
x === "unhandledrejection" && t.T(l.reason, "Error") && t.checkAutoError(l.reason) && this.error(l.reason);
|
|
1265
1265
|
try {
|
|
1266
1266
|
this.getConfig("behavior") && this.reportBehavior && this.reportBehavior();
|
|
1267
|
-
} catch (
|
|
1267
|
+
} catch (S) {
|
|
1268
1268
|
}
|
|
1269
1269
|
return this;
|
|
1270
1270
|
},
|
|
1271
1271
|
resourceErrorHandler: function(l) {
|
|
1272
|
-
var
|
|
1272
|
+
var x = this, v = l.target || l.srcElement;
|
|
1273
1273
|
try {
|
|
1274
|
-
var
|
|
1275
|
-
src:
|
|
1274
|
+
var S = x.getSrc(v), b = typeof v.tagName == "string" ? v.tagName.toLowerCase() : "", E = x.getXPath(v, 5), _ = t.getURL(S), y = {
|
|
1275
|
+
src: S && S.substring(0, 1e3),
|
|
1276
1276
|
node_name: b,
|
|
1277
1277
|
xpath: E,
|
|
1278
|
-
res_type: t.getResType(b,
|
|
1278
|
+
res_type: t.getResType(b, S),
|
|
1279
1279
|
res_name: _.path,
|
|
1280
1280
|
domain: _.domain
|
|
1281
1281
|
};
|
|
1282
|
-
return
|
|
1283
|
-
src:
|
|
1282
|
+
return x._conf.enableResource && x.fixResourceStatus && l.timeStamp && x.fixResourceStatus({
|
|
1283
|
+
src: S,
|
|
1284
1284
|
node_name: b,
|
|
1285
|
-
res_type: t.getResType(b,
|
|
1285
|
+
res_type: t.getResType(b, S),
|
|
1286
1286
|
timeStamp: l.timeStamp,
|
|
1287
1287
|
domain: _.domain
|
|
1288
|
-
}),
|
|
1288
|
+
}), x._lg("resourceError", y), x;
|
|
1289
1289
|
} catch (A) {
|
|
1290
|
-
return t.warn("[ARMS] resourceErrorHandler error :", A),
|
|
1290
|
+
return t.warn("[ARMS] resourceErrorHandler error :", A), x;
|
|
1291
1291
|
}
|
|
1292
1292
|
},
|
|
1293
1293
|
getSrc: function(l) {
|
|
1294
|
-
var
|
|
1294
|
+
var x = l.src || l.href;
|
|
1295
1295
|
try {
|
|
1296
|
-
if (!
|
|
1297
|
-
var v = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") === "object",
|
|
1298
|
-
v &&
|
|
1296
|
+
if (!x) {
|
|
1297
|
+
var v = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") === "object", S = l.getAttribute("classid") && l.getAttribute("classid").toLowerCase() === "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" || l.getAttribute("type") === "application/x-shockwave-flash";
|
|
1298
|
+
v && S && (x = l.getAttribute("data") || l.getAttribute("codebase")), x || (x = l.outerHTML || l.innerHTML);
|
|
1299
1299
|
}
|
|
1300
1300
|
} catch (b) {
|
|
1301
|
-
|
|
1301
|
+
x = "";
|
|
1302
1302
|
}
|
|
1303
|
-
return
|
|
1303
|
+
return x;
|
|
1304
1304
|
},
|
|
1305
|
-
getXPath: function(l,
|
|
1306
|
-
var v = l.id ? "#" + l.id : "",
|
|
1307
|
-
return l.parentNode && l.parentNode.tagName &&
|
|
1305
|
+
getXPath: function(l, x) {
|
|
1306
|
+
var v = l.id ? "#" + l.id : "", S = typeof l.className == "string" ? "." + l.className.split(" ").join(".") : "", b = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") + v + S;
|
|
1307
|
+
return l.parentNode && l.parentNode.tagName && x - 1 != 0 ? this.getXPath(l.parentNode, x - 1) + " > " + b : b;
|
|
1308
1308
|
},
|
|
1309
1309
|
sendPerformance: function(l) {
|
|
1310
|
-
var
|
|
1311
|
-
|
|
1310
|
+
var x = this;
|
|
1311
|
+
x.onReady(function() {
|
|
1312
1312
|
var v = s();
|
|
1313
|
-
v && v.load && v.load > 0 && (v.page =
|
|
1313
|
+
v && v.load && v.load > 0 && (v.page = x.getPage(!0), l && (v = t.ext(v, l)), v.autoSend = !0, x.performance(v));
|
|
1314
1314
|
});
|
|
1315
1315
|
},
|
|
1316
1316
|
sendResources: function(l) {
|
|
1317
|
-
var
|
|
1318
|
-
|
|
1317
|
+
var x = this;
|
|
1318
|
+
x.onReady(function() {
|
|
1319
1319
|
var v = i();
|
|
1320
|
-
v && v.load && v.load > 0 && (v.load && v.load <= 2e3 || v.load && v.load <= 8e3 && Math.random() > 0.05 || (v.page =
|
|
1320
|
+
v && v.load && v.load > 0 && (v.load && v.load <= 2e3 || v.load && v.load <= 8e3 && Math.random() > 0.05 || (v.page = x.getPage(!0), v.dl = location.href, l && (v = t.ext(v, l)), x._lg("res", v, x.getConfig("sample"))));
|
|
1321
1321
|
});
|
|
1322
1322
|
},
|
|
1323
1323
|
sendPV: function() {
|
|
1324
1324
|
var l = this;
|
|
1325
1325
|
l.onReady(function() {
|
|
1326
|
-
var
|
|
1327
|
-
var
|
|
1326
|
+
var x = function(v) {
|
|
1327
|
+
var S = m(v), b = a.devicePixelRatio || 1;
|
|
1328
1328
|
return {
|
|
1329
|
-
uid:
|
|
1329
|
+
uid: S,
|
|
1330
1330
|
dt: e.title,
|
|
1331
1331
|
dl: location.href,
|
|
1332
1332
|
dr: e.referrer,
|
|
@@ -1336,49 +1336,49 @@ function to() {
|
|
|
1336
1336
|
begin: Date.now()
|
|
1337
1337
|
};
|
|
1338
1338
|
}(l);
|
|
1339
|
-
|
|
1339
|
+
x && x.uid && l._lg("pv", x, l.getConfig("pvSample"));
|
|
1340
1340
|
});
|
|
1341
1341
|
},
|
|
1342
1342
|
commonInfo: function() {
|
|
1343
1343
|
return p.uid = m(this), p.sid = function(l) {
|
|
1344
1344
|
if (l.session)
|
|
1345
1345
|
return l.session;
|
|
1346
|
-
var
|
|
1346
|
+
var x;
|
|
1347
1347
|
try {
|
|
1348
1348
|
if (typeof window == "object" && typeof sessionStorage == "object" && typeof sessionStorage.getItem == "function")
|
|
1349
|
-
return typeof (
|
|
1349
|
+
return typeof (x = sessionStorage.getItem("_bl_sid")) == "string" ? (l.session = x, x) : (x = t.uu(), l.session = x, typeof sessionStorage.setItem == "function" && sessionStorage.setItem("_bl_sid", x), x);
|
|
1350
1350
|
} catch (v) {
|
|
1351
1351
|
t.warn("[ARMS] getSid error :", v);
|
|
1352
1352
|
}
|
|
1353
|
-
return l.session =
|
|
1353
|
+
return l.session = x = t.uu(), x;
|
|
1354
1354
|
}(this), p;
|
|
1355
1355
|
},
|
|
1356
1356
|
handleUnload: function(l) {
|
|
1357
|
-
var
|
|
1358
|
-
if (
|
|
1357
|
+
var x = Date.now();
|
|
1358
|
+
if (x - this._lastUnload < 200)
|
|
1359
1359
|
return this;
|
|
1360
|
-
this._lastUnload =
|
|
1360
|
+
this._lastUnload = x, this.sendHealth(l), this.speedCache && (this._lg("speed", this.speedCache), this.speedCache = null, clearTimeout(this.speedTimmer)), this._conf && this._conf.enableResource && this.resourceComboReport(), this.clear(!0);
|
|
1361
1361
|
},
|
|
1362
1362
|
bindHashChange: function(l) {
|
|
1363
|
-
var
|
|
1364
|
-
if (!l ^
|
|
1365
|
-
return
|
|
1366
|
-
l ? (
|
|
1367
|
-
var
|
|
1368
|
-
|
|
1369
|
-
},
|
|
1370
|
-
var
|
|
1371
|
-
|
|
1372
|
-
}, t.on(a, "hashchange",
|
|
1363
|
+
var x = this;
|
|
1364
|
+
if (!l ^ x.hashChangeHandler)
|
|
1365
|
+
return x;
|
|
1366
|
+
l ? (x.hackHistoryState(), x.hashChangeHandler = function(v) {
|
|
1367
|
+
var S = x._conf.parseHash(location.hash);
|
|
1368
|
+
S && x.setPage(S, v !== !1);
|
|
1369
|
+
}, x.stateChangeHandler = function(v) {
|
|
1370
|
+
var S = x._conf.parseHash(v.detail);
|
|
1371
|
+
S && x.setPage(S);
|
|
1372
|
+
}, t.on(a, "hashchange", x.hashChangeHandler), t.on(a, "historystatechange", x.stateChangeHandler), x.hashChangeHandler(!1)) : (t.off(a, "hashchange", x.hashChangeHandler), t.off(a, "historystatechange", x.stateChangeHandler), x.hashChangeHandler = null, x.stateChangeHandler = null);
|
|
1373
1373
|
},
|
|
1374
1374
|
initHandler: function() {
|
|
1375
1375
|
var l = this;
|
|
1376
1376
|
if (l.hasInitHandler)
|
|
1377
1377
|
return l;
|
|
1378
|
-
var
|
|
1378
|
+
var x = l._conf;
|
|
1379
1379
|
return t.on(a, "beforeunload", function() {
|
|
1380
1380
|
l.handleUnload(0);
|
|
1381
|
-
}), l.bindHashChange(
|
|
1381
|
+
}), l.bindHashChange(x.enableSPA), l.activeErrHandler(!1), l.hasInitHandler = !0, l;
|
|
1382
1382
|
}
|
|
1383
1383
|
}), t.on(a, "error", function(l) {
|
|
1384
1384
|
n && n.errorHandler(l);
|
|
@@ -1397,10 +1397,10 @@ function io() {
|
|
|
1397
1397
|
function s(p, d, f) {
|
|
1398
1398
|
var m = 0, l = p.tagName;
|
|
1399
1399
|
if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
|
|
1400
|
-
var
|
|
1401
|
-
if (
|
|
1402
|
-
for (var v = p.children,
|
|
1403
|
-
m += s(v[
|
|
1400
|
+
var x = p.children ? p.children.length : 0;
|
|
1401
|
+
if (x > 0)
|
|
1402
|
+
for (var v = p.children, S = x - 1; S >= 0; S--)
|
|
1403
|
+
m += s(v[S], d + 1, m > 0);
|
|
1404
1404
|
if (m <= 0 && !f && !(p.getBoundingClientRect && p.getBoundingClientRect().top < c))
|
|
1405
1405
|
return 0;
|
|
1406
1406
|
m += 1 + 0.5 * d;
|
|
@@ -1427,10 +1427,10 @@ function io() {
|
|
|
1427
1427
|
var f = t.MutationObserver;
|
|
1428
1428
|
return (u = new f(function() {
|
|
1429
1429
|
(function(m) {
|
|
1430
|
-
var l = Date.now() - m,
|
|
1431
|
-
if (
|
|
1430
|
+
var l = Date.now() - m, x = i.querySelector("body");
|
|
1431
|
+
if (x) {
|
|
1432
1432
|
var v = 0;
|
|
1433
|
-
v += s(
|
|
1433
|
+
v += s(x, 1, !1), o.push({
|
|
1434
1434
|
score: v,
|
|
1435
1435
|
t: l
|
|
1436
1436
|
});
|
|
@@ -1450,17 +1450,17 @@ function io() {
|
|
|
1450
1450
|
endObserving: function(p, d) {
|
|
1451
1451
|
var f = this;
|
|
1452
1452
|
if (u && h)
|
|
1453
|
-
if (f.fmpTimmer && (clearTimeout(f.fmpTimmer), f.fmpTimmer = null), d || !function(v,
|
|
1453
|
+
if (f.fmpTimmer && (clearTimeout(f.fmpTimmer), f.fmpTimmer = null), d || !function(v, S) {
|
|
1454
1454
|
var b = Date.now() - v;
|
|
1455
|
-
return !(b >
|
|
1455
|
+
return !(b > S || b - (o && o.length && o[o.length - 1].t || 0) > 2 * a);
|
|
1456
1456
|
}(f._startTime, p)) {
|
|
1457
1457
|
u.disconnect(), h = 0, o = n(o);
|
|
1458
1458
|
for (var m = null, l = 1; l < o.length; l++)
|
|
1459
1459
|
if (o[l].t >= o[l - 1].t) {
|
|
1460
|
-
var
|
|
1461
|
-
(!m || m.rate <=
|
|
1460
|
+
var x = o[l].score - o[l - 1].score;
|
|
1461
|
+
(!m || m.rate <= x) && (m = {
|
|
1462
1462
|
t: o[l].t,
|
|
1463
|
-
rate:
|
|
1463
|
+
rate: x
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
1466
|
m && m.t > 0 && m.t < 36e5 ? f.sendPerformance({
|
|
@@ -1477,12 +1477,12 @@ function io() {
|
|
|
1477
1477
|
var ks, Bs;
|
|
1478
1478
|
function ro() {
|
|
1479
1479
|
return Bs || (Bs = 1, ks = function(r, a) {
|
|
1480
|
-
var e = Ve(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, m, l,
|
|
1480
|
+
var e = Ve(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, m, l, x, v, S, b, E, _, y) {
|
|
1481
1481
|
var A = e.J(m) || null, R = e.safetyCall(p, [A, f], null);
|
|
1482
1482
|
if (!R)
|
|
1483
1483
|
return !1;
|
|
1484
1484
|
var M = R.code || l, C = !("success" in R) || R.success;
|
|
1485
|
-
h.api(d, C,
|
|
1485
|
+
h.api(d, C, x, M, R.msg, v, S, b, C ? {} : E, i, _, y);
|
|
1486
1486
|
}, n = "fetch", c = "__oFetch_", o = "__oXMLHttpRequest_", u = "XMLHttpRequest";
|
|
1487
1487
|
return e.ext(r.prototype, {
|
|
1488
1488
|
removeHook: function(h, p) {
|
|
@@ -1497,7 +1497,7 @@ function ro() {
|
|
|
1497
1497
|
if (!l || !l.api || f && (f.method === "HEAD" || f.mode === "no-cors"))
|
|
1498
1498
|
return p.apply(a, m);
|
|
1499
1499
|
f || (f = {});
|
|
1500
|
-
var
|
|
1500
|
+
var x = Date.now(), v = l._conf, S = e.duration(), b = (d && typeof d != "string" ? d.url : d) || "", E = b;
|
|
1501
1501
|
b = e.cutUrlSearch(b);
|
|
1502
1502
|
var _ = (v.ignore || {}).ignoreApis, y = v.parseTraceId;
|
|
1503
1503
|
if (!e.checkAPI(b, !0) || e.ignoreByRule(b, _))
|
|
@@ -1581,14 +1581,14 @@ function ro() {
|
|
|
1581
1581
|
typeof Fe == "object" && Fe["eagleeye-traceid"] && (R = Fe["eagleeye-traceid"], I = "response");
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
|
-
var ze =
|
|
1584
|
+
var ze = S();
|
|
1585
1585
|
return j.text().then(function(Qe) {
|
|
1586
1586
|
if (!R && e.isFunction(y)) {
|
|
1587
1587
|
var et = y(j, Qe);
|
|
1588
1588
|
et && e.isString(et) && (R = et);
|
|
1589
1589
|
}
|
|
1590
1590
|
var Se = e.getFetchSnapshot(m, Qe, ce);
|
|
1591
|
-
j.ok ? s(l, v.parseResponse, b, E, Qe, j.status || 200, ze,
|
|
1591
|
+
j.ok ? s(l, v.parseResponse, b, E, Qe, j.status || 200, ze, x, R, M, Se, I, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, x, R, M, Se, i, I, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1592
1592
|
src: j.url,
|
|
1593
1593
|
res_type: "api"
|
|
1594
1594
|
}));
|
|
@@ -1599,8 +1599,8 @@ function ro() {
|
|
|
1599
1599
|
}).catch(function(J) {
|
|
1600
1600
|
if (!l || !l.api)
|
|
1601
1601
|
throw J;
|
|
1602
|
-
var j =
|
|
1603
|
-
throw l.api(b, !1, j, J.name || "Error", J.message,
|
|
1602
|
+
var j = S();
|
|
1603
|
+
throw l.api(b, !1, j, J.name || "Error", J.message, x, R, M, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1604
1604
|
src: E,
|
|
1605
1605
|
res_type: "api"
|
|
1606
1606
|
}), J;
|
|
@@ -1612,11 +1612,11 @@ function ro() {
|
|
|
1612
1612
|
var p, d = a[u];
|
|
1613
1613
|
a[o] = d;
|
|
1614
1614
|
var f = function(m) {
|
|
1615
|
-
var l = new d(m),
|
|
1616
|
-
if (!
|
|
1615
|
+
var l = new d(m), x = t;
|
|
1616
|
+
if (!x || !x.api || !l.addEventListener)
|
|
1617
1617
|
return l;
|
|
1618
|
-
var v,
|
|
1619
|
-
return X && !
|
|
1618
|
+
var v, S, b, E, _ = l.send, y = l.open, A = l.setRequestHeader, R = x._conf, M = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = x.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null, X = x.getConfig("sample"), ae = x.getConfig("linkType"), Q = 1;
|
|
1619
|
+
return X && !x.sampling(X) && (Q = 0), l.open = function(te, ee) {
|
|
1620
1620
|
p = te;
|
|
1621
1621
|
var k = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1622
1622
|
y.apply(l, k), E = ee || "", b = e.cutUrlSearch(E);
|
|
@@ -1629,28 +1629,28 @@ function ro() {
|
|
|
1629
1629
|
V = "";
|
|
1630
1630
|
}
|
|
1631
1631
|
var N = e.checkSameOrigin(E, V);
|
|
1632
|
-
if ((
|
|
1632
|
+
if ((x.getConfig("enableApiCors") || N) && A && typeof A == "function")
|
|
1633
1633
|
switch (ae) {
|
|
1634
1634
|
case "arms":
|
|
1635
|
-
P =
|
|
1635
|
+
P = x.getTraceId()["EagleEye-TraceID"], A.apply(l, ["EagleEye-TraceID", P]), B = x.getPageviewId()["EagleEye-SessionID"], A.apply(l, ["EagleEye-SessionID", B]), $ = x.getConfig("pid"), A.apply(l, ["EagleEye-pAppName", $]);
|
|
1636
1636
|
break;
|
|
1637
1637
|
case "b3":
|
|
1638
|
-
var J =
|
|
1639
|
-
A.apply(l, ["X-B3-TraceId", J["X-B3-TraceId"]]), A.apply(l, ["X-B3-ParentSpanId", J["X-B3-ParentSpanId"]]), A.apply(l, ["X-B3-SpanId", J["X-B3-SpanId"]]), A.apply(l, ["X-B3-Sampled", J["X-B3-Sampled"]]), A.apply(l, ["X-Request-ID", e.guid()]), P = J["X-B3-TraceId"], B =
|
|
1638
|
+
var J = x.getB3TraceId(Q);
|
|
1639
|
+
A.apply(l, ["X-B3-TraceId", J["X-B3-TraceId"]]), A.apply(l, ["X-B3-ParentSpanId", J["X-B3-ParentSpanId"]]), A.apply(l, ["X-B3-SpanId", J["X-B3-SpanId"]]), A.apply(l, ["X-B3-Sampled", J["X-B3-Sampled"]]), A.apply(l, ["X-Request-ID", e.guid()]), P = J["X-B3-TraceId"], B = x.getPageviewId()["EagleEye-SessionID"];
|
|
1640
1640
|
break;
|
|
1641
1641
|
case "tracing":
|
|
1642
1642
|
default:
|
|
1643
|
-
var j =
|
|
1644
|
-
A.apply(l, ["uber-trace-id", j["uber-trace-id"]]), P = j.traceId, B =
|
|
1643
|
+
var j = x.getUberTraceId(Q);
|
|
1644
|
+
A.apply(l, ["uber-trace-id", j["uber-trace-id"]]), P = j.traceId, B = x.getPageviewId()["EagleEye-SessionID"];
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
}, l.send = function() {
|
|
1648
|
-
v = Date.now(),
|
|
1648
|
+
v = Date.now(), S = e.duration();
|
|
1649
1649
|
var te = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1650
1650
|
_.apply(l, te);
|
|
1651
1651
|
}, e.on(l, "readystatechange", function() {
|
|
1652
1652
|
if (b && l.readyState === 4) {
|
|
1653
|
-
var te =
|
|
1653
|
+
var te = S(), ee = e.getXhrSnapshot(E, p, l);
|
|
1654
1654
|
if (!P) {
|
|
1655
1655
|
var k = e.parseXhrHeaders(typeof l.getAllResponseHeaders == "function" && l.getAllResponseHeaders() || "");
|
|
1656
1656
|
typeof k == "object" && k["eagleeye-traceid"] && (P = k["eagleeye-traceid"], q = "response");
|
|
@@ -1666,9 +1666,9 @@ function ro() {
|
|
|
1666
1666
|
if (N && !/(text)|(json)/.test(N))
|
|
1667
1667
|
return;
|
|
1668
1668
|
}
|
|
1669
|
-
l.responseType && l.responseType !== "text" ?
|
|
1669
|
+
l.responseType && l.responseType !== "text" ? x.api(b, !0, te, V, "", v, P, B, {}, i, q, Q) : s(x, R.parseResponse, b, E, l.responseText, V, te, v, P, B, ee, q, Q);
|
|
1670
1670
|
} else
|
|
1671
|
-
|
|
1671
|
+
x.api(b, !1, te, l.status || "FAILED", l.statusText, v, P, B, ee, i, q, Q), R.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1672
1672
|
src: l.responseURL || E,
|
|
1673
1673
|
res_type: "api"
|
|
1674
1674
|
});
|
|
@@ -1702,8 +1702,8 @@ function so() {
|
|
|
1702
1702
|
if (!p || typeof p != "string" || p === f)
|
|
1703
1703
|
return m;
|
|
1704
1704
|
try {
|
|
1705
|
-
var l = f.split("#"),
|
|
1706
|
-
b !== E ? s("historystatechange", E) : v !==
|
|
1705
|
+
var l = f.split("#"), x = p.split("#"), v = e.cutUrlSearch(l[0]), S = e.cutUrlSearch(x[0]), b = l[1] && l[1].replace(/^\/?(.*)/, "$1"), E = x[1] && x[1].replace(/^\/?(.*)/, "$1");
|
|
1706
|
+
b !== E ? s("historystatechange", E) : v !== S && s("historystatechange", S);
|
|
1707
1707
|
} catch (_) {
|
|
1708
1708
|
e.warn("[retcode] error in " + c + ": " + _);
|
|
1709
1709
|
}
|
|
@@ -1728,8 +1728,8 @@ function ao() {
|
|
|
1728
1728
|
if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
|
|
1729
1729
|
var p = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
|
|
1730
1730
|
if (p && d.includes(p) && !r.ignoreByRule(o.name, f) && !r.ignoreByRule(r.decode(o.name), f)) {
|
|
1731
|
-
var m = o[e[0]], l = o[e[1]],
|
|
1732
|
-
if (!h.has(o) && (!r.areInOrder(m, l,
|
|
1731
|
+
var m = o[e[0]], l = o[e[1]], x = o[e[2]], v = o[e[3]], S = o[e[4]], b = o[e[5]], E = o[e[6]], _ = o[e[7]], y = o[e[8]], A = o[e[18]], R = o[e[19]];
|
|
1732
|
+
if (!h.has(o) && (!r.areInOrder(m, l, x, v, S, b, E, _, y) || m > _))
|
|
1733
1733
|
return;
|
|
1734
1734
|
if (A < m && (A = m), R < m && (R = l), r.areInOrder(m, A, R, l))
|
|
1735
1735
|
return {
|
|
@@ -1773,8 +1773,8 @@ function ao() {
|
|
|
1773
1773
|
if (r.checkAPI(m.name, !1)) {
|
|
1774
1774
|
var l = s(m, u, h);
|
|
1775
1775
|
if (l) {
|
|
1776
|
-
var
|
|
1777
|
-
|
|
1776
|
+
var x = l.res_type + "-" + l.domain;
|
|
1777
|
+
x in p || (p[x] = []), p[x].push(l);
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
@@ -1801,8 +1801,8 @@ function ao() {
|
|
|
1801
1801
|
var p = Object.keys(o);
|
|
1802
1802
|
if (p.length !== 0) {
|
|
1803
1803
|
var d = [];
|
|
1804
|
-
r.each(p, function(
|
|
1805
|
-
var v = o[
|
|
1804
|
+
r.each(p, function(x) {
|
|
1805
|
+
var v = o[x], S = {
|
|
1806
1806
|
domain: "",
|
|
1807
1807
|
res_type: "",
|
|
1808
1808
|
src_type: "",
|
|
@@ -1817,15 +1817,15 @@ function ao() {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
r.each(v, function(b) {
|
|
1819
1819
|
var E = b.timing || {}, _ = h.get(b.timing), y = _ ? _.success : 1, A = b.duration > u ? 1 : 0;
|
|
1820
|
-
|
|
1820
|
+
S.domain = b.domain, S.res_type = b.res_type, S.src_type = b.src_type, S.count += 1, S.duration += b.duration, S.size += b.size, y || (S.err_count += 1, S.err_duration += b.duration), A && (S.slow_count += 1, S.slow_duration += b.duration);
|
|
1821
1821
|
try {
|
|
1822
1822
|
var R = JSON.parse(JSON.stringify(E));
|
|
1823
|
-
R.success = y, R.resourceSlow = u, R.isSlow = A,
|
|
1823
|
+
R.success = y, R.resourceSlow = u, R.isSlow = A, S.timings.push(R);
|
|
1824
1824
|
} catch (M) {
|
|
1825
1825
|
}
|
|
1826
|
-
}),
|
|
1826
|
+
}), S.count && (S.size = Math.round(S.size / S.count), S.duration = Math.round(S.duration / S.count)), S.slow_count && (S.slow_duration = Math.round(S.slow_duration / S.slow_count)), S.err_count && (S.err_duration = Math.round(S.err_duration / S.err_count)), S.timings.length > 20 && (S.timings.sort(function(b, E) {
|
|
1827
1827
|
return E.duration - b.duration;
|
|
1828
|
-
}),
|
|
1828
|
+
}), S.timings.length = 20), S.timings = encodeURIComponent(JSON.stringify(S.timings)), d.push(S);
|
|
1829
1829
|
});
|
|
1830
1830
|
var f = {
|
|
1831
1831
|
_combo: 1,
|
|
@@ -2264,7 +2264,7 @@ function rt(r, a, e) {
|
|
|
2264
2264
|
return vo(t);
|
|
2265
2265
|
}
|
|
2266
2266
|
var Si = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(Si || {});
|
|
2267
|
-
const _i = "6.14.2-beta.
|
|
2267
|
+
const _i = "6.14.2-beta.5", Js = "web";
|
|
2268
2268
|
class He {
|
|
2269
2269
|
/**
|
|
2270
2270
|
* 将版本号转换为number
|
|
@@ -2566,28 +2566,28 @@ function ne() {
|
|
|
2566
2566
|
if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof ie != "undefined" && ie.crypto && (s = ie.crypto), !s && typeof To == "function")
|
|
2567
2567
|
try {
|
|
2568
2568
|
s = Bo;
|
|
2569
|
-
} catch (
|
|
2569
|
+
} catch (S) {
|
|
2570
2570
|
}
|
|
2571
2571
|
var n = function() {
|
|
2572
2572
|
if (s) {
|
|
2573
2573
|
if (typeof s.getRandomValues == "function")
|
|
2574
2574
|
try {
|
|
2575
2575
|
return s.getRandomValues(new Uint32Array(1))[0];
|
|
2576
|
-
} catch (
|
|
2576
|
+
} catch (S) {
|
|
2577
2577
|
}
|
|
2578
2578
|
if (typeof s.randomBytes == "function")
|
|
2579
2579
|
try {
|
|
2580
2580
|
return s.randomBytes(4).readInt32LE();
|
|
2581
|
-
} catch (
|
|
2581
|
+
} catch (S) {
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
2584
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
2585
2585
|
}, c = Object.create || function() {
|
|
2586
|
-
function
|
|
2586
|
+
function S() {
|
|
2587
2587
|
}
|
|
2588
2588
|
return function(b) {
|
|
2589
2589
|
var E;
|
|
2590
|
-
return
|
|
2590
|
+
return S.prototype = b, E = new S(), S.prototype = null, E;
|
|
2591
2591
|
};
|
|
2592
2592
|
}(), o = {}, u = o.lib = {}, h = u.Base = function() {
|
|
2593
2593
|
return {
|
|
@@ -2609,9 +2609,9 @@ function ne() {
|
|
|
2609
2609
|
* }
|
|
2610
2610
|
* });
|
|
2611
2611
|
*/
|
|
2612
|
-
extend: function(
|
|
2612
|
+
extend: function(S) {
|
|
2613
2613
|
var b = c(this);
|
|
2614
|
-
return
|
|
2614
|
+
return S && b.mixIn(S), (!b.hasOwnProperty("init") || this.init === b.init) && (b.init = function() {
|
|
2615
2615
|
b.$super.init.apply(this, arguments);
|
|
2616
2616
|
}), b.init.prototype = b, b.$super = this, b;
|
|
2617
2617
|
},
|
|
@@ -2628,8 +2628,8 @@ function ne() {
|
|
|
2628
2628
|
* var instance = MyType.create();
|
|
2629
2629
|
*/
|
|
2630
2630
|
create: function() {
|
|
2631
|
-
var
|
|
2632
|
-
return
|
|
2631
|
+
var S = this.extend();
|
|
2632
|
+
return S.init.apply(S, arguments), S;
|
|
2633
2633
|
},
|
|
2634
2634
|
/**
|
|
2635
2635
|
* Initializes a newly created object.
|
|
@@ -2656,10 +2656,10 @@ function ne() {
|
|
|
2656
2656
|
* field: 'value'
|
|
2657
2657
|
* });
|
|
2658
2658
|
*/
|
|
2659
|
-
mixIn: function(
|
|
2660
|
-
for (var b in
|
|
2661
|
-
|
|
2662
|
-
|
|
2659
|
+
mixIn: function(S) {
|
|
2660
|
+
for (var b in S)
|
|
2661
|
+
S.hasOwnProperty(b) && (this[b] = S[b]);
|
|
2662
|
+
S.hasOwnProperty("toString") && (this.toString = S.toString);
|
|
2663
2663
|
},
|
|
2664
2664
|
/**
|
|
2665
2665
|
* Creates a copy of this object.
|
|
@@ -2687,8 +2687,8 @@ function ne() {
|
|
|
2687
2687
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
2688
2688
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
2689
2689
|
*/
|
|
2690
|
-
init: function(
|
|
2691
|
-
|
|
2690
|
+
init: function(S, b) {
|
|
2691
|
+
S = this.words = S || [], b != i ? this.sigBytes = b : this.sigBytes = S.length * 4;
|
|
2692
2692
|
},
|
|
2693
2693
|
/**
|
|
2694
2694
|
* Converts this word array to a string.
|
|
@@ -2703,8 +2703,8 @@ function ne() {
|
|
|
2703
2703
|
* var string = wordArray.toString();
|
|
2704
2704
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
2705
2705
|
*/
|
|
2706
|
-
toString: function(
|
|
2707
|
-
return (
|
|
2706
|
+
toString: function(S) {
|
|
2707
|
+
return (S || f).stringify(this);
|
|
2708
2708
|
},
|
|
2709
2709
|
/**
|
|
2710
2710
|
* Concatenates a word array to this word array.
|
|
@@ -2717,8 +2717,8 @@ function ne() {
|
|
|
2717
2717
|
*
|
|
2718
2718
|
* wordArray1.concat(wordArray2);
|
|
2719
2719
|
*/
|
|
2720
|
-
concat: function(
|
|
2721
|
-
var b = this.words, E =
|
|
2720
|
+
concat: function(S) {
|
|
2721
|
+
var b = this.words, E = S.words, _ = this.sigBytes, y = S.sigBytes;
|
|
2722
2722
|
if (this.clamp(), _ % 4)
|
|
2723
2723
|
for (var A = 0; A < y; A++) {
|
|
2724
2724
|
var R = E[A >>> 2] >>> 24 - A % 4 * 8 & 255;
|
|
@@ -2737,8 +2737,8 @@ function ne() {
|
|
|
2737
2737
|
* wordArray.clamp();
|
|
2738
2738
|
*/
|
|
2739
2739
|
clamp: function() {
|
|
2740
|
-
var
|
|
2741
|
-
|
|
2740
|
+
var S = this.words, b = this.sigBytes;
|
|
2741
|
+
S[b >>> 2] &= 4294967295 << 32 - b % 4 * 8, S.length = t.ceil(b / 4);
|
|
2742
2742
|
},
|
|
2743
2743
|
/**
|
|
2744
2744
|
* Creates a copy of this word array.
|
|
@@ -2750,8 +2750,8 @@ function ne() {
|
|
|
2750
2750
|
* var clone = wordArray.clone();
|
|
2751
2751
|
*/
|
|
2752
2752
|
clone: function() {
|
|
2753
|
-
var
|
|
2754
|
-
return
|
|
2753
|
+
var S = h.clone.call(this);
|
|
2754
|
+
return S.words = this.words.slice(0), S;
|
|
2755
2755
|
},
|
|
2756
2756
|
/**
|
|
2757
2757
|
* Creates a word array filled with random bytes.
|
|
@@ -2766,10 +2766,10 @@ function ne() {
|
|
|
2766
2766
|
*
|
|
2767
2767
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
2768
2768
|
*/
|
|
2769
|
-
random: function(
|
|
2770
|
-
for (var b = [], E = 0; E <
|
|
2769
|
+
random: function(S) {
|
|
2770
|
+
for (var b = [], E = 0; E < S; E += 4)
|
|
2771
2771
|
b.push(n());
|
|
2772
|
-
return new p.init(b,
|
|
2772
|
+
return new p.init(b, S);
|
|
2773
2773
|
}
|
|
2774
2774
|
}), d = o.enc = {}, f = d.Hex = {
|
|
2775
2775
|
/**
|
|
@@ -2785,8 +2785,8 @@ function ne() {
|
|
|
2785
2785
|
*
|
|
2786
2786
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
2787
2787
|
*/
|
|
2788
|
-
stringify: function(
|
|
2789
|
-
for (var b =
|
|
2788
|
+
stringify: function(S) {
|
|
2789
|
+
for (var b = S.words, E = S.sigBytes, _ = [], y = 0; y < E; y++) {
|
|
2790
2790
|
var A = b[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
2791
2791
|
_.push((A >>> 4).toString(16)), _.push((A & 15).toString(16));
|
|
2792
2792
|
}
|
|
@@ -2805,9 +2805,9 @@ function ne() {
|
|
|
2805
2805
|
*
|
|
2806
2806
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
2807
2807
|
*/
|
|
2808
|
-
parse: function(
|
|
2809
|
-
for (var b =
|
|
2810
|
-
E[_ >>> 3] |= parseInt(
|
|
2808
|
+
parse: function(S) {
|
|
2809
|
+
for (var b = S.length, E = [], _ = 0; _ < b; _ += 2)
|
|
2810
|
+
E[_ >>> 3] |= parseInt(S.substr(_, 2), 16) << 24 - _ % 8 * 4;
|
|
2811
2811
|
return new p.init(E, b / 2);
|
|
2812
2812
|
}
|
|
2813
2813
|
}, m = d.Latin1 = {
|
|
@@ -2824,8 +2824,8 @@ function ne() {
|
|
|
2824
2824
|
*
|
|
2825
2825
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
2826
2826
|
*/
|
|
2827
|
-
stringify: function(
|
|
2828
|
-
for (var b =
|
|
2827
|
+
stringify: function(S) {
|
|
2828
|
+
for (var b = S.words, E = S.sigBytes, _ = [], y = 0; y < E; y++) {
|
|
2829
2829
|
var A = b[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
2830
2830
|
_.push(String.fromCharCode(A));
|
|
2831
2831
|
}
|
|
@@ -2844,9 +2844,9 @@ function ne() {
|
|
|
2844
2844
|
*
|
|
2845
2845
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
2846
2846
|
*/
|
|
2847
|
-
parse: function(
|
|
2848
|
-
for (var b =
|
|
2849
|
-
E[_ >>> 2] |= (
|
|
2847
|
+
parse: function(S) {
|
|
2848
|
+
for (var b = S.length, E = [], _ = 0; _ < b; _++)
|
|
2849
|
+
E[_ >>> 2] |= (S.charCodeAt(_) & 255) << 24 - _ % 4 * 8;
|
|
2850
2850
|
return new p.init(E, b);
|
|
2851
2851
|
}
|
|
2852
2852
|
}, l = d.Utf8 = {
|
|
@@ -2863,9 +2863,9 @@ function ne() {
|
|
|
2863
2863
|
*
|
|
2864
2864
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
2865
2865
|
*/
|
|
2866
|
-
stringify: function(
|
|
2866
|
+
stringify: function(S) {
|
|
2867
2867
|
try {
|
|
2868
|
-
return decodeURIComponent(escape(m.stringify(
|
|
2868
|
+
return decodeURIComponent(escape(m.stringify(S)));
|
|
2869
2869
|
} catch (b) {
|
|
2870
2870
|
throw new Error("Malformed UTF-8 data");
|
|
2871
2871
|
}
|
|
@@ -2883,10 +2883,10 @@ function ne() {
|
|
|
2883
2883
|
*
|
|
2884
2884
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
2885
2885
|
*/
|
|
2886
|
-
parse: function(
|
|
2887
|
-
return m.parse(unescape(encodeURIComponent(
|
|
2886
|
+
parse: function(S) {
|
|
2887
|
+
return m.parse(unescape(encodeURIComponent(S)));
|
|
2888
2888
|
}
|
|
2889
|
-
},
|
|
2889
|
+
}, x = u.BufferedBlockAlgorithm = h.extend({
|
|
2890
2890
|
/**
|
|
2891
2891
|
* Resets this block algorithm's data buffer to its initial state.
|
|
2892
2892
|
*
|
|
@@ -2907,8 +2907,8 @@ function ne() {
|
|
|
2907
2907
|
* bufferedBlockAlgorithm._append('data');
|
|
2908
2908
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
2909
2909
|
*/
|
|
2910
|
-
_append: function(
|
|
2911
|
-
typeof
|
|
2910
|
+
_append: function(S) {
|
|
2911
|
+
typeof S == "string" && (S = l.parse(S)), this._data.concat(S), this._nDataBytes += S.sigBytes;
|
|
2912
2912
|
},
|
|
2913
2913
|
/**
|
|
2914
2914
|
* Processes available data blocks.
|
|
@@ -2924,9 +2924,9 @@ function ne() {
|
|
|
2924
2924
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
2925
2925
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
2926
2926
|
*/
|
|
2927
|
-
_process: function(
|
|
2927
|
+
_process: function(S) {
|
|
2928
2928
|
var b, E = this._data, _ = E.words, y = E.sigBytes, A = this.blockSize, R = A * 4, M = y / R;
|
|
2929
|
-
|
|
2929
|
+
S ? M = t.ceil(M) : M = t.max((M | 0) - this._minBufferSize, 0);
|
|
2930
2930
|
var C = M * A, I = t.min(C * 4, y);
|
|
2931
2931
|
if (C) {
|
|
2932
2932
|
for (var P = 0; P < C; P += A)
|
|
@@ -2945,12 +2945,12 @@ function ne() {
|
|
|
2945
2945
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
2946
2946
|
*/
|
|
2947
2947
|
clone: function() {
|
|
2948
|
-
var
|
|
2949
|
-
return
|
|
2948
|
+
var S = h.clone.call(this);
|
|
2949
|
+
return S._data = this._data.clone(), S;
|
|
2950
2950
|
},
|
|
2951
2951
|
_minBufferSize: 0
|
|
2952
2952
|
});
|
|
2953
|
-
u.Hasher =
|
|
2953
|
+
u.Hasher = x.extend({
|
|
2954
2954
|
/**
|
|
2955
2955
|
* Configuration options.
|
|
2956
2956
|
*/
|
|
@@ -2964,8 +2964,8 @@ function ne() {
|
|
|
2964
2964
|
*
|
|
2965
2965
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
2966
2966
|
*/
|
|
2967
|
-
init: function(
|
|
2968
|
-
this.cfg = this.cfg.extend(
|
|
2967
|
+
init: function(S) {
|
|
2968
|
+
this.cfg = this.cfg.extend(S), this.reset();
|
|
2969
2969
|
},
|
|
2970
2970
|
/**
|
|
2971
2971
|
* Resets this hasher to its initial state.
|
|
@@ -2975,7 +2975,7 @@ function ne() {
|
|
|
2975
2975
|
* hasher.reset();
|
|
2976
2976
|
*/
|
|
2977
2977
|
reset: function() {
|
|
2978
|
-
|
|
2978
|
+
x.reset.call(this), this._doReset();
|
|
2979
2979
|
},
|
|
2980
2980
|
/**
|
|
2981
2981
|
* Updates this hasher with a message.
|
|
@@ -2989,8 +2989,8 @@ function ne() {
|
|
|
2989
2989
|
* hasher.update('message');
|
|
2990
2990
|
* hasher.update(wordArray);
|
|
2991
2991
|
*/
|
|
2992
|
-
update: function(
|
|
2993
|
-
return this._append(
|
|
2992
|
+
update: function(S) {
|
|
2993
|
+
return this._append(S), this._process(), this;
|
|
2994
2994
|
},
|
|
2995
2995
|
/**
|
|
2996
2996
|
* Finalizes the hash computation.
|
|
@@ -3006,8 +3006,8 @@ function ne() {
|
|
|
3006
3006
|
* var hash = hasher.finalize('message');
|
|
3007
3007
|
* var hash = hasher.finalize(wordArray);
|
|
3008
3008
|
*/
|
|
3009
|
-
finalize: function(
|
|
3010
|
-
|
|
3009
|
+
finalize: function(S) {
|
|
3010
|
+
S && this._append(S);
|
|
3011
3011
|
var b = this._doFinalize();
|
|
3012
3012
|
return b;
|
|
3013
3013
|
},
|
|
@@ -3025,9 +3025,9 @@ function ne() {
|
|
|
3025
3025
|
*
|
|
3026
3026
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
3027
3027
|
*/
|
|
3028
|
-
_createHelper: function(
|
|
3028
|
+
_createHelper: function(S) {
|
|
3029
3029
|
return function(b, E) {
|
|
3030
|
-
return new
|
|
3030
|
+
return new S.init(E).finalize(b);
|
|
3031
3031
|
};
|
|
3032
3032
|
},
|
|
3033
3033
|
/**
|
|
@@ -3043,9 +3043,9 @@ function ne() {
|
|
|
3043
3043
|
*
|
|
3044
3044
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
3045
3045
|
*/
|
|
3046
|
-
_createHmacHelper: function(
|
|
3046
|
+
_createHmacHelper: function(S) {
|
|
3047
3047
|
return function(b, E) {
|
|
3048
|
-
return new v.HMAC.init(
|
|
3048
|
+
return new v.HMAC.init(S, E).finalize(b);
|
|
3049
3049
|
};
|
|
3050
3050
|
}
|
|
3051
3051
|
});
|
|
@@ -3428,8 +3428,8 @@ function Ft() {
|
|
|
3428
3428
|
var u = o.words, h = o.sigBytes, p = this._map;
|
|
3429
3429
|
o.clamp();
|
|
3430
3430
|
for (var d = [], f = 0; f < h; f += 3)
|
|
3431
|
-
for (var m = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255,
|
|
3432
|
-
d.push(p.charAt(v >>> 6 * (3 -
|
|
3431
|
+
for (var m = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, x = u[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, v = m << 16 | l << 8 | x, S = 0; S < 4 && f + S * 0.75 < h; S++)
|
|
3432
|
+
d.push(p.charAt(v >>> 6 * (3 - S) & 63));
|
|
3433
3433
|
var b = p.charAt(64);
|
|
3434
3434
|
if (b)
|
|
3435
3435
|
for (; d.length % 4; )
|
|
@@ -3468,8 +3468,8 @@ function Ft() {
|
|
|
3468
3468
|
function c(o, u, h) {
|
|
3469
3469
|
for (var p = [], d = 0, f = 0; f < u; f++)
|
|
3470
3470
|
if (f % 4) {
|
|
3471
|
-
var m = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2,
|
|
3472
|
-
p[d >>> 2] |=
|
|
3471
|
+
var m = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, x = m | l;
|
|
3472
|
+
p[d >>> 2] |= x << 24 - d % 4 * 8, d++;
|
|
3473
3473
|
}
|
|
3474
3474
|
return s.create(p, d);
|
|
3475
3475
|
}
|
|
@@ -3506,8 +3506,8 @@ function Lo() {
|
|
|
3506
3506
|
var h = o.words, p = o.sigBytes, d = u ? this._safe_map : this._map;
|
|
3507
3507
|
o.clamp();
|
|
3508
3508
|
for (var f = [], m = 0; m < p; m += 3)
|
|
3509
|
-
for (var l = h[m >>> 2] >>> 24 - m % 4 * 8 & 255,
|
|
3510
|
-
f.push(d.charAt(
|
|
3509
|
+
for (var l = h[m >>> 2] >>> 24 - m % 4 * 8 & 255, x = h[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255, v = h[m + 2 >>> 2] >>> 24 - (m + 2) % 4 * 8 & 255, S = l << 16 | x << 8 | v, b = 0; b < 4 && m + b * 0.75 < p; b++)
|
|
3510
|
+
f.push(d.charAt(S >>> 6 * (3 - b) & 63));
|
|
3511
3511
|
var E = d.charAt(64);
|
|
3512
3512
|
if (E)
|
|
3513
3513
|
for (; f.length % 4; )
|
|
@@ -3550,8 +3550,8 @@ function Lo() {
|
|
|
3550
3550
|
function c(o, u, h) {
|
|
3551
3551
|
for (var p = [], d = 0, f = 0; f < u; f++)
|
|
3552
3552
|
if (f % 4) {
|
|
3553
|
-
var m = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2,
|
|
3554
|
-
p[d >>> 2] |=
|
|
3553
|
+
var m = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, x = m | l;
|
|
3554
|
+
p[d >>> 2] |= x << 24 - d % 4 * 8, d++;
|
|
3555
3555
|
}
|
|
3556
3556
|
return s.create(p, d);
|
|
3557
3557
|
}
|
|
@@ -3580,19 +3580,19 @@ function Ot() {
|
|
|
3580
3580
|
271733878
|
|
3581
3581
|
]);
|
|
3582
3582
|
},
|
|
3583
|
-
_doProcessBlock: function(l,
|
|
3583
|
+
_doProcessBlock: function(l, x) {
|
|
3584
3584
|
for (var v = 0; v < 16; v++) {
|
|
3585
|
-
var
|
|
3586
|
-
l[
|
|
3585
|
+
var S = x + v, b = l[S];
|
|
3586
|
+
l[S] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
3587
3587
|
}
|
|
3588
|
-
var E = this._hash.words, _ = l[
|
|
3588
|
+
var E = this._hash.words, _ = l[x + 0], y = l[x + 1], A = l[x + 2], R = l[x + 3], M = l[x + 4], C = l[x + 5], I = l[x + 6], P = l[x + 7], B = l[x + 8], $ = l[x + 9], q = l[x + 10], X = l[x + 11], ae = l[x + 12], Q = l[x + 13], te = l[x + 14], ee = l[x + 15], k = E[0], L = E[1], V = E[2], N = E[3];
|
|
3589
3589
|
k = p(k, L, V, N, _, 7, u[0]), N = p(N, k, L, V, y, 12, u[1]), V = p(V, N, k, L, A, 17, u[2]), L = p(L, V, N, k, R, 22, u[3]), k = p(k, L, V, N, M, 7, u[4]), N = p(N, k, L, V, C, 12, u[5]), V = p(V, N, k, L, I, 17, u[6]), L = p(L, V, N, k, P, 22, u[7]), k = p(k, L, V, N, B, 7, u[8]), N = p(N, k, L, V, $, 12, u[9]), V = p(V, N, k, L, q, 17, u[10]), L = p(L, V, N, k, X, 22, u[11]), k = p(k, L, V, N, ae, 7, u[12]), N = p(N, k, L, V, Q, 12, u[13]), V = p(V, N, k, L, te, 17, u[14]), L = p(L, V, N, k, ee, 22, u[15]), k = d(k, L, V, N, y, 5, u[16]), N = d(N, k, L, V, I, 9, u[17]), V = d(V, N, k, L, X, 14, u[18]), L = d(L, V, N, k, _, 20, u[19]), k = d(k, L, V, N, C, 5, u[20]), N = d(N, k, L, V, q, 9, u[21]), V = d(V, N, k, L, ee, 14, u[22]), L = d(L, V, N, k, M, 20, u[23]), k = d(k, L, V, N, $, 5, u[24]), N = d(N, k, L, V, te, 9, u[25]), V = d(V, N, k, L, R, 14, u[26]), L = d(L, V, N, k, B, 20, u[27]), k = d(k, L, V, N, Q, 5, u[28]), N = d(N, k, L, V, A, 9, u[29]), V = d(V, N, k, L, P, 14, u[30]), L = d(L, V, N, k, ae, 20, u[31]), k = f(k, L, V, N, C, 4, u[32]), N = f(N, k, L, V, B, 11, u[33]), V = f(V, N, k, L, X, 16, u[34]), L = f(L, V, N, k, te, 23, u[35]), k = f(k, L, V, N, y, 4, u[36]), N = f(N, k, L, V, M, 11, u[37]), V = f(V, N, k, L, P, 16, u[38]), L = f(L, V, N, k, q, 23, u[39]), k = f(k, L, V, N, Q, 4, u[40]), N = f(N, k, L, V, _, 11, u[41]), V = f(V, N, k, L, R, 16, u[42]), L = f(L, V, N, k, I, 23, u[43]), k = f(k, L, V, N, $, 4, u[44]), N = f(N, k, L, V, ae, 11, u[45]), V = f(V, N, k, L, ee, 16, u[46]), L = f(L, V, N, k, A, 23, u[47]), k = m(k, L, V, N, _, 6, u[48]), N = m(N, k, L, V, P, 10, u[49]), V = m(V, N, k, L, te, 15, u[50]), L = m(L, V, N, k, C, 21, u[51]), k = m(k, L, V, N, ae, 6, u[52]), N = m(N, k, L, V, R, 10, u[53]), V = m(V, N, k, L, q, 15, u[54]), L = m(L, V, N, k, y, 21, u[55]), k = m(k, L, V, N, B, 6, u[56]), N = m(N, k, L, V, ee, 10, u[57]), V = m(V, N, k, L, I, 15, u[58]), L = m(L, V, N, k, Q, 21, u[59]), k = m(k, L, V, N, M, 6, u[60]), N = m(N, k, L, V, X, 10, u[61]), V = m(V, N, k, L, A, 15, u[62]), L = m(L, V, N, k, $, 21, u[63]), E[0] = E[0] + k | 0, E[1] = E[1] + L | 0, E[2] = E[2] + V | 0, E[3] = E[3] + N | 0;
|
|
3590
3590
|
},
|
|
3591
3591
|
_doFinalize: function() {
|
|
3592
|
-
var l = this._data,
|
|
3593
|
-
S
|
|
3592
|
+
var l = this._data, x = l.words, v = this._nDataBytes * 8, S = l.sigBytes * 8;
|
|
3593
|
+
x[S >>> 5] |= 128 << 24 - S % 32;
|
|
3594
3594
|
var b = t.floor(v / 4294967296), E = v;
|
|
3595
|
-
|
|
3595
|
+
x[(S + 64 >>> 9 << 4) + 15] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, x[(S + 64 >>> 9 << 4) + 14] = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360, l.sigBytes = (x.length + 1) * 4, this._process();
|
|
3596
3596
|
for (var _ = this._hash, y = _.words, A = 0; A < 4; A++) {
|
|
3597
3597
|
var R = y[A];
|
|
3598
3598
|
y[A] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
|
|
@@ -3604,21 +3604,21 @@ function Ot() {
|
|
|
3604
3604
|
return l._hash = this._hash.clone(), l;
|
|
3605
3605
|
}
|
|
3606
3606
|
});
|
|
3607
|
-
function p(l,
|
|
3608
|
-
var y = l + (
|
|
3609
|
-
return (y << E | y >>> 32 - E) +
|
|
3607
|
+
function p(l, x, v, S, b, E, _) {
|
|
3608
|
+
var y = l + (x & v | ~x & S) + b + _;
|
|
3609
|
+
return (y << E | y >>> 32 - E) + x;
|
|
3610
3610
|
}
|
|
3611
|
-
function d(l,
|
|
3612
|
-
var y = l + (
|
|
3613
|
-
return (y << E | y >>> 32 - E) +
|
|
3611
|
+
function d(l, x, v, S, b, E, _) {
|
|
3612
|
+
var y = l + (x & S | v & ~S) + b + _;
|
|
3613
|
+
return (y << E | y >>> 32 - E) + x;
|
|
3614
3614
|
}
|
|
3615
|
-
function f(l,
|
|
3616
|
-
var y = l + (
|
|
3617
|
-
return (y << E | y >>> 32 - E) +
|
|
3615
|
+
function f(l, x, v, S, b, E, _) {
|
|
3616
|
+
var y = l + (x ^ v ^ S) + b + _;
|
|
3617
|
+
return (y << E | y >>> 32 - E) + x;
|
|
3618
3618
|
}
|
|
3619
|
-
function m(l,
|
|
3620
|
-
var y = l + (v ^ (
|
|
3621
|
-
return (y << E | y >>> 32 - E) +
|
|
3619
|
+
function m(l, x, v, S, b, E, _) {
|
|
3620
|
+
var y = l + (v ^ (x | ~S)) + b + _;
|
|
3621
|
+
return (y << E | y >>> 32 - E) + x;
|
|
3622
3622
|
}
|
|
3623
3623
|
i.MD5 = c._createHelper(h), i.HmacMD5 = c._createHmacHelper(h);
|
|
3624
3624
|
}(Math), e.MD5;
|
|
@@ -3643,17 +3643,17 @@ function cn() {
|
|
|
3643
3643
|
]);
|
|
3644
3644
|
},
|
|
3645
3645
|
_doProcessBlock: function(h, p) {
|
|
3646
|
-
for (var d = this._hash.words, f = d[0], m = d[1], l = d[2],
|
|
3647
|
-
if (
|
|
3648
|
-
o[
|
|
3646
|
+
for (var d = this._hash.words, f = d[0], m = d[1], l = d[2], x = d[3], v = d[4], S = 0; S < 80; S++) {
|
|
3647
|
+
if (S < 16)
|
|
3648
|
+
o[S] = h[p + S] | 0;
|
|
3649
3649
|
else {
|
|
3650
|
-
var b = o[
|
|
3651
|
-
o[
|
|
3650
|
+
var b = o[S - 3] ^ o[S - 8] ^ o[S - 14] ^ o[S - 16];
|
|
3651
|
+
o[S] = b << 1 | b >>> 31;
|
|
3652
3652
|
}
|
|
3653
|
-
var E = (f << 5 | f >>> 27) + v + o[
|
|
3654
|
-
|
|
3653
|
+
var E = (f << 5 | f >>> 27) + v + o[S];
|
|
3654
|
+
S < 20 ? E += (m & l | ~m & x) + 1518500249 : S < 40 ? E += (m ^ l ^ x) + 1859775393 : S < 60 ? E += (m & l | m & x | l & x) - 1894007588 : E += (m ^ l ^ x) - 899497514, v = x, x = l, l = m << 30 | m >>> 2, m = f, f = E;
|
|
3655
3655
|
}
|
|
3656
|
-
d[0] = d[0] + f | 0, d[1] = d[1] + m | 0, d[2] = d[2] + l | 0, d[3] = d[3] +
|
|
3656
|
+
d[0] = d[0] + f | 0, d[1] = d[1] + m | 0, d[2] = d[2] + l | 0, d[3] = d[3] + x | 0, d[4] = d[4] + v | 0;
|
|
3657
3657
|
},
|
|
3658
3658
|
_doFinalize: function() {
|
|
3659
3659
|
var h = this._data, p = h.words, d = this._nDataBytes * 8, f = h.sigBytes * 8;
|
|
@@ -3679,7 +3679,7 @@ function Jr() {
|
|
|
3679
3679
|
var i = e, s = i.lib, n = s.WordArray, c = s.Hasher, o = i.algo, u = [], h = [];
|
|
3680
3680
|
(function() {
|
|
3681
3681
|
function f(v) {
|
|
3682
|
-
for (var
|
|
3682
|
+
for (var S = t.sqrt(v), b = 2; b <= S; b++)
|
|
3683
3683
|
if (!(v % b))
|
|
3684
3684
|
return !1;
|
|
3685
3685
|
return !0;
|
|
@@ -3687,29 +3687,29 @@ function Jr() {
|
|
|
3687
3687
|
function m(v) {
|
|
3688
3688
|
return (v - (v | 0)) * 4294967296 | 0;
|
|
3689
3689
|
}
|
|
3690
|
-
for (var l = 2,
|
|
3691
|
-
f(l) && (
|
|
3690
|
+
for (var l = 2, x = 0; x < 64; )
|
|
3691
|
+
f(l) && (x < 8 && (u[x] = m(t.pow(l, 1 / 2))), h[x] = m(t.pow(l, 1 / 3)), x++), l++;
|
|
3692
3692
|
})();
|
|
3693
3693
|
var p = [], d = o.SHA256 = c.extend({
|
|
3694
3694
|
_doReset: function() {
|
|
3695
3695
|
this._hash = new n.init(u.slice(0));
|
|
3696
3696
|
},
|
|
3697
3697
|
_doProcessBlock: function(f, m) {
|
|
3698
|
-
for (var l = this._hash.words,
|
|
3698
|
+
for (var l = this._hash.words, x = l[0], v = l[1], S = l[2], b = l[3], E = l[4], _ = l[5], y = l[6], A = l[7], R = 0; R < 64; R++) {
|
|
3699
3699
|
if (R < 16)
|
|
3700
3700
|
p[R] = f[m + R] | 0;
|
|
3701
3701
|
else {
|
|
3702
3702
|
var M = p[R - 15], C = (M << 25 | M >>> 7) ^ (M << 14 | M >>> 18) ^ M >>> 3, I = p[R - 2], P = (I << 15 | I >>> 17) ^ (I << 13 | I >>> 19) ^ I >>> 10;
|
|
3703
3703
|
p[R] = C + p[R - 7] + P + p[R - 16];
|
|
3704
3704
|
}
|
|
3705
|
-
var B = E & _ ^ ~E & y, $ =
|
|
3706
|
-
A = y, y = _, _ = E, E = b + ae | 0, b =
|
|
3705
|
+
var B = E & _ ^ ~E & y, $ = x & v ^ x & S ^ v & S, q = (x << 30 | x >>> 2) ^ (x << 19 | x >>> 13) ^ (x << 10 | x >>> 22), X = (E << 26 | E >>> 6) ^ (E << 21 | E >>> 11) ^ (E << 7 | E >>> 25), ae = A + X + B + h[R] + p[R], Q = q + $;
|
|
3706
|
+
A = y, y = _, _ = E, E = b + ae | 0, b = S, S = v, v = x, x = ae + Q | 0;
|
|
3707
3707
|
}
|
|
3708
|
-
l[0] = l[0] +
|
|
3708
|
+
l[0] = l[0] + x | 0, l[1] = l[1] + v | 0, l[2] = l[2] + S | 0, l[3] = l[3] + b | 0, l[4] = l[4] + E | 0, l[5] = l[5] + _ | 0, l[6] = l[6] + y | 0, l[7] = l[7] + A | 0;
|
|
3709
3709
|
},
|
|
3710
3710
|
_doFinalize: function() {
|
|
3711
|
-
var f = this._data, m = f.words, l = this._nDataBytes * 8,
|
|
3712
|
-
return m[
|
|
3711
|
+
var f = this._data, m = f.words, l = this._nDataBytes * 8, x = f.sigBytes * 8;
|
|
3712
|
+
return m[x >>> 5] |= 128 << 24 - x % 32, m[(x + 64 >>> 9 << 4) + 14] = t.floor(l / 4294967296), m[(x + 64 >>> 9 << 4) + 15] = l, f.sigBytes = m.length * 4, this._process(), this._hash;
|
|
3713
3713
|
},
|
|
3714
3714
|
clone: function() {
|
|
3715
3715
|
var f = c.clone.call(this);
|
|
@@ -3862,7 +3862,7 @@ function un() {
|
|
|
3862
3862
|
]);
|
|
3863
3863
|
},
|
|
3864
3864
|
_doProcessBlock: function(m, l) {
|
|
3865
|
-
for (var
|
|
3865
|
+
for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], E = x[3], _ = x[4], y = x[5], A = x[6], R = x[7], M = v.high, C = v.low, I = S.high, P = S.low, B = b.high, $ = b.low, q = E.high, X = E.low, ae = _.high, Q = _.low, te = y.high, ee = y.low, k = A.high, L = A.low, V = R.high, N = R.low, J = M, j = C, ce = I, Z = P, Fe = B, ze = $, Qe = q, et = X, Se = ae, ke = Q, ot = te, yt = ee, Ut = k, Ct = L, Xt = V, Rt = N, Be = 0; Be < 80; Be++) {
|
|
3866
3866
|
var Re, tt, It = d[Be];
|
|
3867
3867
|
if (Be < 16)
|
|
3868
3868
|
tt = It.high = m[l + Be * 2] | 0, Re = It.low = m[l + Be * 2 + 1] | 0;
|
|
@@ -3873,13 +3873,13 @@ function un() {
|
|
|
3873
3873
|
var kn = Se & ot ^ ~Se & Ut, hs = ke & yt ^ ~ke & Ct, Bn = J & ce ^ J & Fe ^ ce & Fe, Nn = j & Z ^ j & ze ^ Z & ze, Mn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), ds = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Ln = (Se >>> 14 | ke << 18) ^ (Se >>> 18 | ke << 14) ^ (Se << 23 | ke >>> 9), Vn = (ke >>> 14 | Se << 18) ^ (ke >>> 18 | Se << 14) ^ (ke << 23 | Se >>> 9), ls = p[Be], Fn = ls.high, fs = ls.low, $e = Rt + Vn, xt = Xt + Ln + ($e >>> 0 < Rt >>> 0 ? 1 : 0), $e = $e + hs, xt = xt + kn + ($e >>> 0 < hs >>> 0 ? 1 : 0), $e = $e + fs, xt = xt + Fn + ($e >>> 0 < fs >>> 0 ? 1 : 0), $e = $e + Re, xt = xt + tt + ($e >>> 0 < Re >>> 0 ? 1 : 0), ps = ds + Nn, On = Mn + Bn + (ps >>> 0 < ds >>> 0 ? 1 : 0);
|
|
3874
3874
|
Xt = Ut, Rt = Ct, Ut = ot, Ct = yt, ot = Se, yt = ke, ke = et + $e | 0, Se = Qe + xt + (ke >>> 0 < et >>> 0 ? 1 : 0) | 0, Qe = Fe, et = ze, Fe = ce, ze = Z, ce = J, Z = j, j = $e + ps | 0, J = xt + On + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
|
|
3875
3875
|
}
|
|
3876
|
-
C = v.low = C + j, v.high = M + J + (C >>> 0 < j >>> 0 ? 1 : 0), P =
|
|
3876
|
+
C = v.low = C + j, v.high = M + J + (C >>> 0 < j >>> 0 ? 1 : 0), P = S.low = P + Z, S.high = I + ce + (P >>> 0 < Z >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Fe + ($ >>> 0 < ze >>> 0 ? 1 : 0), X = E.low = X + et, E.high = q + Qe + (X >>> 0 < et >>> 0 ? 1 : 0), Q = _.low = Q + ke, _.high = ae + Se + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = y.low = ee + yt, y.high = te + ot + (ee >>> 0 < yt >>> 0 ? 1 : 0), L = A.low = L + Ct, A.high = k + Ut + (L >>> 0 < Ct >>> 0 ? 1 : 0), N = R.low = N + Rt, R.high = V + Xt + (N >>> 0 < Rt >>> 0 ? 1 : 0);
|
|
3877
3877
|
},
|
|
3878
3878
|
_doFinalize: function() {
|
|
3879
|
-
var m = this._data, l = m.words,
|
|
3880
|
-
l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(
|
|
3881
|
-
var
|
|
3882
|
-
return
|
|
3879
|
+
var m = this._data, l = m.words, x = this._nDataBytes * 8, v = m.sigBytes * 8;
|
|
3880
|
+
l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(x / 4294967296), l[(v + 128 >>> 10 << 5) + 31] = x, m.sigBytes = l.length * 4, this._process();
|
|
3881
|
+
var S = this._hash.toX32();
|
|
3882
|
+
return S;
|
|
3883
3883
|
},
|
|
3884
3884
|
clone: function() {
|
|
3885
3885
|
var m = s.clone.call(this);
|
|
@@ -3931,14 +3931,14 @@ function Oo() {
|
|
|
3931
3931
|
return function(t) {
|
|
3932
3932
|
var i = e, s = i.lib, n = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo, p = [], d = [], f = [];
|
|
3933
3933
|
(function() {
|
|
3934
|
-
for (var
|
|
3935
|
-
p[
|
|
3936
|
-
var b = v % 5, E = (2 *
|
|
3937
|
-
|
|
3934
|
+
for (var x = 1, v = 0, S = 0; S < 24; S++) {
|
|
3935
|
+
p[x + 5 * v] = (S + 1) * (S + 2) / 2 % 64;
|
|
3936
|
+
var b = v % 5, E = (2 * x + 3 * v) % 5;
|
|
3937
|
+
x = b, v = E;
|
|
3938
3938
|
}
|
|
3939
|
-
for (var
|
|
3939
|
+
for (var x = 0; x < 5; x++)
|
|
3940
3940
|
for (var v = 0; v < 5; v++)
|
|
3941
|
-
d[
|
|
3941
|
+
d[x + 5 * v] = v + (2 * x + 3 * v) % 5 * 5;
|
|
3942
3942
|
for (var _ = 1, y = 0; y < 24; y++) {
|
|
3943
3943
|
for (var A = 0, R = 0, M = 0; M < 7; M++) {
|
|
3944
3944
|
if (_ & 1) {
|
|
@@ -3952,8 +3952,8 @@ function Oo() {
|
|
|
3952
3952
|
})();
|
|
3953
3953
|
var m = [];
|
|
3954
3954
|
(function() {
|
|
3955
|
-
for (var
|
|
3956
|
-
m[
|
|
3955
|
+
for (var x = 0; x < 25; x++)
|
|
3956
|
+
m[x] = u.create();
|
|
3957
3957
|
})();
|
|
3958
3958
|
var l = h.SHA3 = c.extend({
|
|
3959
3959
|
/**
|
|
@@ -3968,21 +3968,21 @@ function Oo() {
|
|
|
3968
3968
|
outputLength: 512
|
|
3969
3969
|
}),
|
|
3970
3970
|
_doReset: function() {
|
|
3971
|
-
for (var
|
|
3972
|
-
|
|
3971
|
+
for (var x = this._state = [], v = 0; v < 25; v++)
|
|
3972
|
+
x[v] = new u.init();
|
|
3973
3973
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
3974
3974
|
},
|
|
3975
|
-
_doProcessBlock: function(
|
|
3976
|
-
for (var
|
|
3977
|
-
var _ =
|
|
3975
|
+
_doProcessBlock: function(x, v) {
|
|
3976
|
+
for (var S = this._state, b = this.blockSize / 2, E = 0; E < b; E++) {
|
|
3977
|
+
var _ = x[v + 2 * E], y = x[v + 2 * E + 1];
|
|
3978
3978
|
_ = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, y = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360;
|
|
3979
|
-
var A =
|
|
3979
|
+
var A = S[E];
|
|
3980
3980
|
A.high ^= y, A.low ^= _;
|
|
3981
3981
|
}
|
|
3982
3982
|
for (var R = 0; R < 24; R++) {
|
|
3983
3983
|
for (var M = 0; M < 5; M++) {
|
|
3984
3984
|
for (var C = 0, I = 0, P = 0; P < 5; P++) {
|
|
3985
|
-
var A =
|
|
3985
|
+
var A = S[M + 5 * P];
|
|
3986
3986
|
C ^= A.high, I ^= A.low;
|
|
3987
3987
|
}
|
|
3988
3988
|
var B = m[M];
|
|
@@ -3990,31 +3990,31 @@ function Oo() {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
for (var M = 0; M < 5; M++)
|
|
3992
3992
|
for (var $ = m[(M + 4) % 5], q = m[(M + 1) % 5], X = q.high, ae = q.low, C = $.high ^ (X << 1 | ae >>> 31), I = $.low ^ (ae << 1 | X >>> 31), P = 0; P < 5; P++) {
|
|
3993
|
-
var A =
|
|
3993
|
+
var A = S[M + 5 * P];
|
|
3994
3994
|
A.high ^= C, A.low ^= I;
|
|
3995
3995
|
}
|
|
3996
3996
|
for (var Q = 1; Q < 25; Q++) {
|
|
3997
|
-
var C, I, A =
|
|
3997
|
+
var C, I, A = S[Q], te = A.high, ee = A.low, k = p[Q];
|
|
3998
3998
|
k < 32 ? (C = te << k | ee >>> 32 - k, I = ee << k | te >>> 32 - k) : (C = ee << k - 32 | te >>> 64 - k, I = te << k - 32 | ee >>> 64 - k);
|
|
3999
3999
|
var L = m[d[Q]];
|
|
4000
4000
|
L.high = C, L.low = I;
|
|
4001
4001
|
}
|
|
4002
|
-
var V = m[0], N =
|
|
4002
|
+
var V = m[0], N = S[0];
|
|
4003
4003
|
V.high = N.high, V.low = N.low;
|
|
4004
4004
|
for (var M = 0; M < 5; M++)
|
|
4005
4005
|
for (var P = 0; P < 5; P++) {
|
|
4006
|
-
var Q = M + 5 * P, A =
|
|
4006
|
+
var Q = M + 5 * P, A = S[Q], J = m[Q], j = m[(M + 1) % 5 + 5 * P], ce = m[(M + 2) % 5 + 5 * P];
|
|
4007
4007
|
A.high = J.high ^ ~j.high & ce.high, A.low = J.low ^ ~j.low & ce.low;
|
|
4008
4008
|
}
|
|
4009
|
-
var A =
|
|
4009
|
+
var A = S[0], Z = f[R];
|
|
4010
4010
|
A.high ^= Z.high, A.low ^= Z.low;
|
|
4011
4011
|
}
|
|
4012
4012
|
},
|
|
4013
4013
|
_doFinalize: function() {
|
|
4014
|
-
var
|
|
4014
|
+
var x = this._data, v = x.words;
|
|
4015
4015
|
this._nDataBytes * 8;
|
|
4016
|
-
var
|
|
4017
|
-
v[
|
|
4016
|
+
var S = x.sigBytes * 8, b = this.blockSize * 32;
|
|
4017
|
+
v[S >>> 5] |= 1 << 24 - S % 32, v[(t.ceil((S + 1) / b) * b >>> 5) - 1] |= 128, x.sigBytes = v.length * 4, this._process();
|
|
4018
4018
|
for (var E = this._state, _ = this.cfg.outputLength / 8, y = _ / 8, A = [], R = 0; R < y; R++) {
|
|
4019
4019
|
var M = E[R], C = M.high, I = M.low;
|
|
4020
4020
|
C = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, I = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360, A.push(I), A.push(C);
|
|
@@ -4022,9 +4022,9 @@ function Oo() {
|
|
|
4022
4022
|
return new n.init(A, _);
|
|
4023
4023
|
},
|
|
4024
4024
|
clone: function() {
|
|
4025
|
-
for (var
|
|
4026
|
-
v[
|
|
4027
|
-
return
|
|
4025
|
+
for (var x = c.clone.call(this), v = x._state = this._state.slice(0), S = 0; S < 25; S++)
|
|
4026
|
+
v[S] = v[S].clone();
|
|
4027
|
+
return x;
|
|
4028
4028
|
}
|
|
4029
4029
|
});
|
|
4030
4030
|
i.SHA3 = c._createHelper(l), i.HmacSHA3 = c._createHmacHelper(l);
|
|
@@ -4385,7 +4385,7 @@ function Uo() {
|
|
|
4385
4385
|
var I = this._hash.words, P = f.words, B = m.words, $ = u.words, q = h.words, X = p.words, ae = d.words, Q, te, ee, k, L, V, N, J, j, ce;
|
|
4386
4386
|
V = Q = I[0], N = te = I[1], J = ee = I[2], j = k = I[3], ce = L = I[4];
|
|
4387
4387
|
for (var Z, R = 0; R < 80; R += 1)
|
|
4388
|
-
Z = Q + y[A + $[R]] | 0, R < 16 ? Z +=
|
|
4388
|
+
Z = Q + y[A + $[R]] | 0, R < 16 ? Z += x(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += S(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, X[R]), Z = Z + L | 0, Q = L, L = k, k = _(ee, 10), ee = te, te = Z, Z = V + y[A + q[R]] | 0, R < 16 ? Z += E(N, J, j) + B[0] : R < 32 ? Z += b(N, J, j) + B[1] : R < 48 ? Z += S(N, J, j) + B[2] : R < 64 ? Z += v(N, J, j) + B[3] : Z += x(N, J, j) + B[4], Z = Z | 0, Z = _(Z, ae[R]), Z = Z + ce | 0, V = ce, ce = j, j = _(J, 10), J = N, N = Z;
|
|
4389
4389
|
Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] + L + V | 0, I[3] = I[4] + Q + N | 0, I[4] = I[0] + te + J | 0, I[0] = Z;
|
|
4390
4390
|
},
|
|
4391
4391
|
_doFinalize: function() {
|
|
@@ -4402,13 +4402,13 @@ function Uo() {
|
|
|
4402
4402
|
return y._hash = this._hash.clone(), y;
|
|
4403
4403
|
}
|
|
4404
4404
|
});
|
|
4405
|
-
function
|
|
4405
|
+
function x(y, A, R) {
|
|
4406
4406
|
return y ^ A ^ R;
|
|
4407
4407
|
}
|
|
4408
4408
|
function v(y, A, R) {
|
|
4409
4409
|
return y & A | ~y & R;
|
|
4410
4410
|
}
|
|
4411
|
-
function
|
|
4411
|
+
function S(y, A, R) {
|
|
4412
4412
|
return (y | ~A) ^ R;
|
|
4413
4413
|
}
|
|
4414
4414
|
function b(y, A, R) {
|
|
@@ -4448,8 +4448,8 @@ function Gr() {
|
|
|
4448
4448
|
u = this._hasher = new u.init(), typeof h == "string" && (h = c.parse(h));
|
|
4449
4449
|
var p = u.blockSize, d = p * 4;
|
|
4450
4450
|
h.sigBytes > d && (h = u.finalize(h)), h.clamp();
|
|
4451
|
-
for (var f = this._oKey = h.clone(), m = this._iKey = h.clone(), l = f.words,
|
|
4452
|
-
l[v] ^= 1549556828,
|
|
4451
|
+
for (var f = this._oKey = h.clone(), m = this._iKey = h.clone(), l = f.words, x = m.words, v = 0; v < p; v++)
|
|
4452
|
+
l[v] ^= 1549556828, x[v] ^= 909522486;
|
|
4453
4453
|
f.sigBytes = m.sigBytes = d, this.reset();
|
|
4454
4454
|
},
|
|
4455
4455
|
/**
|
|
@@ -4550,15 +4550,15 @@ function Ho() {
|
|
|
4550
4550
|
* var key = kdf.compute(password, salt);
|
|
4551
4551
|
*/
|
|
4552
4552
|
compute: function(p, d) {
|
|
4553
|
-
for (var f = this.cfg, m = u.create(f.hasher, p), l = n.create(),
|
|
4554
|
-
var _ = m.update(d).finalize(
|
|
4553
|
+
for (var f = this.cfg, m = u.create(f.hasher, p), l = n.create(), x = n.create([1]), v = l.words, S = x.words, b = f.keySize, E = f.iterations; v.length < b; ) {
|
|
4554
|
+
var _ = m.update(d).finalize(x);
|
|
4555
4555
|
m.reset();
|
|
4556
4556
|
for (var y = _.words, A = y.length, R = _, M = 1; M < E; M++) {
|
|
4557
4557
|
R = m.finalize(R), m.reset();
|
|
4558
4558
|
for (var C = R.words, I = 0; I < A; I++)
|
|
4559
4559
|
y[I] ^= C[I];
|
|
4560
4560
|
}
|
|
4561
|
-
l.concat(_),
|
|
4561
|
+
l.concat(_), S[0]++;
|
|
4562
4562
|
}
|
|
4563
4563
|
return l.sigBytes = b * 4, l;
|
|
4564
4564
|
}
|
|
@@ -4617,9 +4617,9 @@ function At() {
|
|
|
4617
4617
|
* var key = kdf.compute(password, salt);
|
|
4618
4618
|
*/
|
|
4619
4619
|
compute: function(h, p) {
|
|
4620
|
-
for (var d, f = this.cfg, m = f.hasher.create(), l = n.create(),
|
|
4620
|
+
for (var d, f = this.cfg, m = f.hasher.create(), l = n.create(), x = l.words, v = f.keySize, S = f.iterations; x.length < v; ) {
|
|
4621
4621
|
d && m.update(d), d = m.update(h).finalize(p), m.reset();
|
|
4622
|
-
for (var b = 1; b <
|
|
4622
|
+
for (var b = 1; b < S; b++)
|
|
4623
4623
|
d = m.finalize(d), m.reset();
|
|
4624
4624
|
l.concat(d);
|
|
4625
4625
|
}
|
|
@@ -4825,7 +4825,7 @@ function ye() {
|
|
|
4825
4825
|
init: function(C, I) {
|
|
4826
4826
|
this._cipher = C, this._iv = I;
|
|
4827
4827
|
}
|
|
4828
|
-
}),
|
|
4828
|
+
}), x = m.CBC = function() {
|
|
4829
4829
|
var C = l.extend();
|
|
4830
4830
|
C.Encryptor = C.extend({
|
|
4831
4831
|
/**
|
|
@@ -4865,7 +4865,7 @@ function ye() {
|
|
|
4865
4865
|
P[B + ae] ^= q[ae];
|
|
4866
4866
|
}
|
|
4867
4867
|
return C;
|
|
4868
|
-
}(), v = i.pad = {},
|
|
4868
|
+
}(), v = i.pad = {}, S = v.Pkcs7 = {
|
|
4869
4869
|
/**
|
|
4870
4870
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
4871
4871
|
*
|
|
@@ -4908,8 +4908,8 @@ function ye() {
|
|
|
4908
4908
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
4909
4909
|
*/
|
|
4910
4910
|
cfg: f.cfg.extend({
|
|
4911
|
-
mode:
|
|
4912
|
-
padding:
|
|
4911
|
+
mode: x,
|
|
4912
|
+
padding: S
|
|
4913
4913
|
}),
|
|
4914
4914
|
reset: function() {
|
|
4915
4915
|
var C;
|
|
@@ -5449,7 +5449,7 @@ function Qo() {
|
|
|
5449
5449
|
r.exports = t(ne(), Ft(), Ot(), At(), ye());
|
|
5450
5450
|
})(ie, function(e) {
|
|
5451
5451
|
return function() {
|
|
5452
|
-
var t = e, i = t.lib, s = i.BlockCipher, n = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [],
|
|
5452
|
+
var t = e, i = t.lib, s = i.BlockCipher, n = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [];
|
|
5453
5453
|
(function() {
|
|
5454
5454
|
for (var b = [], E = 0; E < 256; E++)
|
|
5455
5455
|
E < 128 ? b[E] = E << 1 : b[E] = E << 1 ^ 283;
|
|
@@ -5459,10 +5459,10 @@ function Qo() {
|
|
|
5459
5459
|
var R = b[_], M = b[R], C = b[M], I = b[A] * 257 ^ A * 16843008;
|
|
5460
5460
|
u[_] = I << 24 | I >>> 8, h[_] = I << 16 | I >>> 16, p[_] = I << 8 | I >>> 24, d[_] = I;
|
|
5461
5461
|
var I = C * 16843009 ^ M * 65537 ^ R * 257 ^ _ * 16843008;
|
|
5462
|
-
f[A] = I << 24 | I >>> 8, m[A] = I << 16 | I >>> 16, l[A] = I << 8 | I >>> 24,
|
|
5462
|
+
f[A] = I << 24 | I >>> 8, m[A] = I << 16 | I >>> 16, l[A] = I << 8 | I >>> 24, x[A] = I, _ ? (_ = R ^ b[b[b[C ^ R]]], y ^= b[b[y]]) : _ = y = 1;
|
|
5463
5463
|
}
|
|
5464
5464
|
})();
|
|
5465
|
-
var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
|
|
5465
|
+
var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], S = n.AES = s.extend({
|
|
5466
5466
|
_doReset: function() {
|
|
5467
5467
|
var b;
|
|
5468
5468
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
@@ -5474,7 +5474,7 @@ function Qo() {
|
|
|
5474
5474
|
var b = M[C];
|
|
5475
5475
|
else
|
|
5476
5476
|
var b = M[C - 4];
|
|
5477
|
-
P < 4 || C <= 4 ? I[P] = b : I[P] = f[c[b >>> 24]] ^ m[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^
|
|
5477
|
+
P < 4 || C <= 4 ? I[P] = b : I[P] = f[c[b >>> 24]] ^ m[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^ x[c[b & 255]];
|
|
5478
5478
|
}
|
|
5479
5479
|
}
|
|
5480
5480
|
},
|
|
@@ -5483,7 +5483,7 @@ function Qo() {
|
|
|
5483
5483
|
},
|
|
5484
5484
|
decryptBlock: function(b, E) {
|
|
5485
5485
|
var _ = b[E + 1];
|
|
5486
|
-
b[E + 1] = b[E + 3], b[E + 3] = _, this._doCryptBlock(b, E, this._invKeySchedule, f, m, l,
|
|
5486
|
+
b[E + 1] = b[E + 3], b[E + 3] = _, this._doCryptBlock(b, E, this._invKeySchedule, f, m, l, x, o);
|
|
5487
5487
|
var _ = b[E + 1];
|
|
5488
5488
|
b[E + 1] = b[E + 3], b[E + 3] = _;
|
|
5489
5489
|
},
|
|
@@ -5497,7 +5497,7 @@ function Qo() {
|
|
|
5497
5497
|
},
|
|
5498
5498
|
keySize: 256 / 32
|
|
5499
5499
|
});
|
|
5500
|
-
t.AES = s._createHelper(
|
|
5500
|
+
t.AES = s._createHelper(S);
|
|
5501
5501
|
}(), e.AES;
|
|
5502
5502
|
});
|
|
5503
5503
|
}(yr)), yr.exports;
|
|
@@ -6155,9 +6155,9 @@ function e0() {
|
|
|
6155
6155
|
2147483679
|
|
6156
6156
|
], f = c.DES = n.extend({
|
|
6157
6157
|
_doReset: function() {
|
|
6158
|
-
for (var v = this._key,
|
|
6158
|
+
for (var v = this._key, S = v.words, b = [], E = 0; E < 56; E++) {
|
|
6159
6159
|
var _ = o[E] - 1;
|
|
6160
|
-
b[E] =
|
|
6160
|
+
b[E] = S[_ >>> 5] >>> 31 - _ % 32 & 1;
|
|
6161
6161
|
}
|
|
6162
6162
|
for (var y = this._subKeys = [], A = 0; A < 16; A++) {
|
|
6163
6163
|
for (var R = y[A] = [], M = h[A], E = 0; E < 24; E++)
|
|
@@ -6170,54 +6170,54 @@ function e0() {
|
|
|
6170
6170
|
for (var C = this._invSubKeys = [], E = 0; E < 16; E++)
|
|
6171
6171
|
C[E] = y[15 - E];
|
|
6172
6172
|
},
|
|
6173
|
-
encryptBlock: function(v,
|
|
6174
|
-
this._doCryptBlock(v,
|
|
6173
|
+
encryptBlock: function(v, S) {
|
|
6174
|
+
this._doCryptBlock(v, S, this._subKeys);
|
|
6175
6175
|
},
|
|
6176
|
-
decryptBlock: function(v,
|
|
6177
|
-
this._doCryptBlock(v,
|
|
6176
|
+
decryptBlock: function(v, S) {
|
|
6177
|
+
this._doCryptBlock(v, S, this._invSubKeys);
|
|
6178
6178
|
},
|
|
6179
|
-
_doCryptBlock: function(v,
|
|
6180
|
-
this._lBlock = v[
|
|
6179
|
+
_doCryptBlock: function(v, S, b) {
|
|
6180
|
+
this._lBlock = v[S], this._rBlock = v[S + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), m.call(this, 1, 1431655765);
|
|
6181
6181
|
for (var E = 0; E < 16; E++) {
|
|
6182
6182
|
for (var _ = b[E], y = this._lBlock, A = this._rBlock, R = 0, M = 0; M < 8; M++)
|
|
6183
6183
|
R |= p[M][((A ^ _[M]) & d[M]) >>> 0];
|
|
6184
6184
|
this._lBlock = A, this._rBlock = y ^ R;
|
|
6185
6185
|
}
|
|
6186
6186
|
var C = this._lBlock;
|
|
6187
|
-
this._lBlock = this._rBlock, this._rBlock = C, m.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), m.call(this, 16, 65535), m.call(this, 4, 252645135), v[
|
|
6187
|
+
this._lBlock = this._rBlock, this._rBlock = C, m.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), m.call(this, 16, 65535), m.call(this, 4, 252645135), v[S] = this._lBlock, v[S + 1] = this._rBlock;
|
|
6188
6188
|
},
|
|
6189
6189
|
keySize: 64 / 32,
|
|
6190
6190
|
ivSize: 64 / 32,
|
|
6191
6191
|
blockSize: 64 / 32
|
|
6192
6192
|
});
|
|
6193
|
-
function m(v,
|
|
6194
|
-
var b = (this._lBlock >>> v ^ this._rBlock) &
|
|
6193
|
+
function m(v, S) {
|
|
6194
|
+
var b = (this._lBlock >>> v ^ this._rBlock) & S;
|
|
6195
6195
|
this._rBlock ^= b, this._lBlock ^= b << v;
|
|
6196
6196
|
}
|
|
6197
|
-
function l(v,
|
|
6198
|
-
var b = (this._rBlock >>> v ^ this._lBlock) &
|
|
6197
|
+
function l(v, S) {
|
|
6198
|
+
var b = (this._rBlock >>> v ^ this._lBlock) & S;
|
|
6199
6199
|
this._lBlock ^= b, this._rBlock ^= b << v;
|
|
6200
6200
|
}
|
|
6201
6201
|
t.DES = n._createHelper(f);
|
|
6202
|
-
var
|
|
6202
|
+
var x = c.TripleDES = n.extend({
|
|
6203
6203
|
_doReset: function() {
|
|
6204
|
-
var v = this._key,
|
|
6205
|
-
if (
|
|
6204
|
+
var v = this._key, S = v.words;
|
|
6205
|
+
if (S.length !== 2 && S.length !== 4 && S.length < 6)
|
|
6206
6206
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
6207
|
-
var b =
|
|
6207
|
+
var b = S.slice(0, 2), E = S.length < 4 ? S.slice(0, 2) : S.slice(2, 4), _ = S.length < 6 ? S.slice(0, 2) : S.slice(4, 6);
|
|
6208
6208
|
this._des1 = f.createEncryptor(s.create(b)), this._des2 = f.createEncryptor(s.create(E)), this._des3 = f.createEncryptor(s.create(_));
|
|
6209
6209
|
},
|
|
6210
|
-
encryptBlock: function(v,
|
|
6211
|
-
this._des1.encryptBlock(v,
|
|
6210
|
+
encryptBlock: function(v, S) {
|
|
6211
|
+
this._des1.encryptBlock(v, S), this._des2.decryptBlock(v, S), this._des3.encryptBlock(v, S);
|
|
6212
6212
|
},
|
|
6213
|
-
decryptBlock: function(v,
|
|
6214
|
-
this._des3.decryptBlock(v,
|
|
6213
|
+
decryptBlock: function(v, S) {
|
|
6214
|
+
this._des3.decryptBlock(v, S), this._des2.encryptBlock(v, S), this._des1.decryptBlock(v, S);
|
|
6215
6215
|
},
|
|
6216
6216
|
keySize: 192 / 32,
|
|
6217
6217
|
ivSize: 64 / 32,
|
|
6218
6218
|
blockSize: 64 / 32
|
|
6219
6219
|
});
|
|
6220
|
-
t.TripleDES = n._createHelper(
|
|
6220
|
+
t.TripleDES = n._createHelper(x);
|
|
6221
6221
|
}(), e.TripleDES;
|
|
6222
6222
|
});
|
|
6223
6223
|
}(Cr)), Cr.exports;
|
|
@@ -6234,10 +6234,10 @@ function t0() {
|
|
|
6234
6234
|
for (var h = this._key, p = h.words, d = h.sigBytes, f = this._S = [], m = 0; m < 256; m++)
|
|
6235
6235
|
f[m] = m;
|
|
6236
6236
|
for (var m = 0, l = 0; m < 256; m++) {
|
|
6237
|
-
var
|
|
6237
|
+
var x = m % d, v = p[x >>> 2] >>> 24 - x % 4 * 8 & 255;
|
|
6238
6238
|
l = (l + f[m] + v) % 256;
|
|
6239
|
-
var
|
|
6240
|
-
f[m] = f[l], f[l] =
|
|
6239
|
+
var S = f[m];
|
|
6240
|
+
f[m] = f[l], f[l] = S;
|
|
6241
6241
|
}
|
|
6242
6242
|
this._i = this._j = 0;
|
|
6243
6243
|
},
|
|
@@ -6296,7 +6296,7 @@ function i0() {
|
|
|
6296
6296
|
d[1] << 16 | d[0] >>> 16,
|
|
6297
6297
|
d[3],
|
|
6298
6298
|
d[2] << 16 | d[1] >>> 16
|
|
6299
|
-
],
|
|
6299
|
+
], x = this._C = [
|
|
6300
6300
|
d[2] << 16 | d[2] >>> 16,
|
|
6301
6301
|
d[0] & 4294901760 | d[1] & 65535,
|
|
6302
6302
|
d[3] << 16 | d[3] >>> 16,
|
|
@@ -6310,10 +6310,10 @@ function i0() {
|
|
|
6310
6310
|
for (var m = 0; m < 4; m++)
|
|
6311
6311
|
p.call(this);
|
|
6312
6312
|
for (var m = 0; m < 8; m++)
|
|
6313
|
-
|
|
6313
|
+
x[m] ^= l[m + 4 & 7];
|
|
6314
6314
|
if (f) {
|
|
6315
|
-
var v = f.words,
|
|
6316
|
-
|
|
6315
|
+
var v = f.words, S = v[0], b = v[1], E = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, _ = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, y = E >>> 16 | _ & 4294901760, A = _ << 16 | E & 65535;
|
|
6316
|
+
x[0] ^= E, x[1] ^= y, x[2] ^= _, x[3] ^= A, x[4] ^= E, x[5] ^= y, x[6] ^= _, x[7] ^= A;
|
|
6317
6317
|
for (var m = 0; m < 4; m++)
|
|
6318
6318
|
p.call(this);
|
|
6319
6319
|
}
|
|
@@ -6332,8 +6332,8 @@ function i0() {
|
|
|
6332
6332
|
o[m] = f[m];
|
|
6333
6333
|
f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < o[7] >>> 0 ? 1 : 0;
|
|
6334
6334
|
for (var m = 0; m < 8; m++) {
|
|
6335
|
-
var l = d[m] + f[m],
|
|
6336
|
-
u[m] =
|
|
6335
|
+
var l = d[m] + f[m], x = l & 65535, v = l >>> 16, S = ((x * x >>> 17) + x * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
|
|
6336
|
+
u[m] = S ^ b;
|
|
6337
6337
|
}
|
|
6338
6338
|
d[0] = u[0] + (u[7] << 16 | u[7] >>> 16) + (u[6] << 16 | u[6] >>> 16) | 0, d[1] = u[1] + (u[0] << 8 | u[0] >>> 24) + u[7] | 0, d[2] = u[2] + (u[1] << 16 | u[1] >>> 16) + (u[0] << 16 | u[0] >>> 16) | 0, d[3] = u[3] + (u[2] << 8 | u[2] >>> 24) + u[1] | 0, d[4] = u[4] + (u[3] << 16 | u[3] >>> 16) + (u[2] << 16 | u[2] >>> 16) | 0, d[5] = u[5] + (u[4] << 8 | u[4] >>> 24) + u[3] | 0, d[6] = u[6] + (u[5] << 16 | u[5] >>> 16) + (u[4] << 16 | u[4] >>> 16) | 0, d[7] = u[7] + (u[6] << 8 | u[6] >>> 24) + u[5] | 0;
|
|
6339
6339
|
}
|
|
@@ -6371,14 +6371,14 @@ function r0() {
|
|
|
6371
6371
|
d[3] & 4294901760 | d[0] & 65535
|
|
6372
6372
|
];
|
|
6373
6373
|
this._b = 0;
|
|
6374
|
-
for (var
|
|
6374
|
+
for (var x = 0; x < 4; x++)
|
|
6375
6375
|
p.call(this);
|
|
6376
|
-
for (var
|
|
6377
|
-
l[
|
|
6376
|
+
for (var x = 0; x < 8; x++)
|
|
6377
|
+
l[x] ^= m[x + 4 & 7];
|
|
6378
6378
|
if (f) {
|
|
6379
|
-
var v = f.words,
|
|
6379
|
+
var v = f.words, S = v[0], b = v[1], E = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, _ = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, y = E >>> 16 | _ & 4294901760, A = _ << 16 | E & 65535;
|
|
6380
6380
|
l[0] ^= E, l[1] ^= y, l[2] ^= _, l[3] ^= A, l[4] ^= E, l[5] ^= y, l[6] ^= _, l[7] ^= A;
|
|
6381
|
-
for (var
|
|
6381
|
+
for (var x = 0; x < 4; x++)
|
|
6382
6382
|
p.call(this);
|
|
6383
6383
|
}
|
|
6384
6384
|
},
|
|
@@ -6396,8 +6396,8 @@ function r0() {
|
|
|
6396
6396
|
o[m] = f[m];
|
|
6397
6397
|
f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < o[7] >>> 0 ? 1 : 0;
|
|
6398
6398
|
for (var m = 0; m < 8; m++) {
|
|
6399
|
-
var l = d[m] + f[m],
|
|
6400
|
-
u[m] =
|
|
6399
|
+
var l = d[m] + f[m], x = l & 65535, v = l >>> 16, S = ((x * x >>> 17) + x * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
|
|
6400
|
+
u[m] = S ^ b;
|
|
6401
6401
|
}
|
|
6402
6402
|
d[0] = u[0] + (u[7] << 16 | u[7] >>> 16) + (u[6] << 16 | u[6] >>> 16) | 0, d[1] = u[1] + (u[0] << 8 | u[0] >>> 24) + u[7] | 0, d[2] = u[2] + (u[1] << 16 | u[1] >>> 16) + (u[0] << 16 | u[0] >>> 16) | 0, d[3] = u[3] + (u[2] << 8 | u[2] >>> 24) + u[1] | 0, d[4] = u[4] + (u[3] << 16 | u[3] >>> 16) + (u[2] << 16 | u[2] >>> 16) | 0, d[5] = u[5] + (u[4] << 8 | u[4] >>> 24) + u[3] | 0, d[6] = u[6] + (u[5] << 16 | u[5] >>> 16) + (u[4] << 16 | u[4] >>> 16) | 0, d[7] = u[7] + (u[6] << 8 | u[6] >>> 24) + u[5] | 0;
|
|
6403
6403
|
}
|
|
@@ -7471,53 +7471,53 @@ function s0() {
|
|
|
7471
7471
|
pbox: [],
|
|
7472
7472
|
sbox: []
|
|
7473
7473
|
};
|
|
7474
|
-
function p(
|
|
7475
|
-
let
|
|
7476
|
-
return y = y ^
|
|
7474
|
+
function p(x, v) {
|
|
7475
|
+
let S = v >> 24 & 255, b = v >> 16 & 255, E = v >> 8 & 255, _ = v & 255, y = x.sbox[0][S] + x.sbox[1][b];
|
|
7476
|
+
return y = y ^ x.sbox[2][E], y = y + x.sbox[3][_], y;
|
|
7477
7477
|
}
|
|
7478
|
-
function d(
|
|
7479
|
-
let b = v, E =
|
|
7478
|
+
function d(x, v, S) {
|
|
7479
|
+
let b = v, E = S, _;
|
|
7480
7480
|
for (let y = 0; y < c; ++y)
|
|
7481
|
-
b = b ^
|
|
7482
|
-
return _ = b, b = E, E = _, E = E ^
|
|
7481
|
+
b = b ^ x.pbox[y], E = p(x, b) ^ E, _ = b, b = E, E = _;
|
|
7482
|
+
return _ = b, b = E, E = _, E = E ^ x.pbox[c], b = b ^ x.pbox[c + 1], { left: b, right: E };
|
|
7483
7483
|
}
|
|
7484
|
-
function f(
|
|
7485
|
-
let b = v, E =
|
|
7484
|
+
function f(x, v, S) {
|
|
7485
|
+
let b = v, E = S, _;
|
|
7486
7486
|
for (let y = c + 1; y > 1; --y)
|
|
7487
|
-
b = b ^
|
|
7488
|
-
return _ = b, b = E, E = _, E = E ^
|
|
7487
|
+
b = b ^ x.pbox[y], E = p(x, b) ^ E, _ = b, b = E, E = _;
|
|
7488
|
+
return _ = b, b = E, E = _, E = E ^ x.pbox[1], b = b ^ x.pbox[0], { left: b, right: E };
|
|
7489
7489
|
}
|
|
7490
|
-
function m(
|
|
7490
|
+
function m(x, v, S) {
|
|
7491
7491
|
for (let A = 0; A < 4; A++) {
|
|
7492
|
-
|
|
7492
|
+
x.sbox[A] = [];
|
|
7493
7493
|
for (let R = 0; R < 256; R++)
|
|
7494
|
-
|
|
7494
|
+
x.sbox[A][R] = u[A][R];
|
|
7495
7495
|
}
|
|
7496
7496
|
let b = 0;
|
|
7497
7497
|
for (let A = 0; A < c + 2; A++)
|
|
7498
|
-
|
|
7498
|
+
x.pbox[A] = o[A] ^ v[b], b++, b >= S && (b = 0);
|
|
7499
7499
|
let E = 0, _ = 0, y = 0;
|
|
7500
7500
|
for (let A = 0; A < c + 2; A += 2)
|
|
7501
|
-
y = d(
|
|
7501
|
+
y = d(x, E, _), E = y.left, _ = y.right, x.pbox[A] = E, x.pbox[A + 1] = _;
|
|
7502
7502
|
for (let A = 0; A < 4; A++)
|
|
7503
7503
|
for (let R = 0; R < 256; R += 2)
|
|
7504
|
-
y = d(
|
|
7504
|
+
y = d(x, E, _), E = y.left, _ = y.right, x.sbox[A][R] = E, x.sbox[A][R + 1] = _;
|
|
7505
7505
|
return !0;
|
|
7506
7506
|
}
|
|
7507
7507
|
var l = n.Blowfish = s.extend({
|
|
7508
7508
|
_doReset: function() {
|
|
7509
7509
|
if (this._keyPriorReset !== this._key) {
|
|
7510
|
-
var
|
|
7511
|
-
m(h, v,
|
|
7510
|
+
var x = this._keyPriorReset = this._key, v = x.words, S = x.sigBytes / 4;
|
|
7511
|
+
m(h, v, S);
|
|
7512
7512
|
}
|
|
7513
7513
|
},
|
|
7514
|
-
encryptBlock: function(
|
|
7515
|
-
var
|
|
7516
|
-
|
|
7514
|
+
encryptBlock: function(x, v) {
|
|
7515
|
+
var S = d(h, x[v], x[v + 1]);
|
|
7516
|
+
x[v] = S.left, x[v + 1] = S.right;
|
|
7517
7517
|
},
|
|
7518
|
-
decryptBlock: function(
|
|
7519
|
-
var
|
|
7520
|
-
|
|
7518
|
+
decryptBlock: function(x, v) {
|
|
7519
|
+
var S = f(h, x[v], x[v + 1]);
|
|
7520
|
+
x[v] = S.left, x[v + 1] = S.right;
|
|
7521
7521
|
},
|
|
7522
7522
|
blockSize: 64 / 32,
|
|
7523
7523
|
keySize: 128 / 32,
|
|
@@ -7671,7 +7671,7 @@ function Yr(r, a, e, t) {
|
|
|
7671
7671
|
return e ? 0 : r.getTimezoneOffset();
|
|
7672
7672
|
}, l = function() {
|
|
7673
7673
|
return p0(r);
|
|
7674
|
-
},
|
|
7674
|
+
}, x = function() {
|
|
7675
7675
|
return g0(r);
|
|
7676
7676
|
}, v = { d: function() {
|
|
7677
7677
|
return n();
|
|
@@ -7738,10 +7738,10 @@ function Yr(r, a, e, t) {
|
|
|
7738
7738
|
}, WW: function() {
|
|
7739
7739
|
return Ke(l());
|
|
7740
7740
|
}, N: function() {
|
|
7741
|
-
return
|
|
7741
|
+
return x();
|
|
7742
7742
|
} };
|
|
7743
|
-
return a.replace(d0, function(
|
|
7744
|
-
return
|
|
7743
|
+
return a.replace(d0, function(S) {
|
|
7744
|
+
return S in v ? v[S]() : S.slice(1, S.length - 1);
|
|
7745
7745
|
});
|
|
7746
7746
|
}
|
|
7747
7747
|
var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Oe = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, Ke = function(a) {
|
|
@@ -7760,18 +7760,18 @@ var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
7760
7760
|
return u[s + "FullYear"]();
|
|
7761
7761
|
}, l = function() {
|
|
7762
7762
|
return h[s + "Date"]();
|
|
7763
|
-
},
|
|
7763
|
+
}, x = function() {
|
|
7764
7764
|
return h[s + "Month"]();
|
|
7765
7765
|
}, v = function() {
|
|
7766
7766
|
return h[s + "FullYear"]();
|
|
7767
|
-
},
|
|
7767
|
+
}, S = function() {
|
|
7768
7768
|
return p[s + "Date"]();
|
|
7769
7769
|
}, b = function() {
|
|
7770
7770
|
return p[s + "Month"]();
|
|
7771
7771
|
}, E = function() {
|
|
7772
7772
|
return p[s + "FullYear"]();
|
|
7773
7773
|
};
|
|
7774
|
-
return m() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e &&
|
|
7774
|
+
return m() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && x() === t && l() === i ? o ? "Ysd" : "Yesterday" : E() === e && b() === t && S() === i ? o ? "Tmw" : "Tomorrow" : n;
|
|
7775
7775
|
}, p0 = function(a) {
|
|
7776
7776
|
var e = new Date(a.getFullYear(), a.getMonth(), a.getDate());
|
|
7777
7777
|
e.setDate(e.getDate() - (e.getDay() + 6) % 7 + 3);
|
|
@@ -9142,9 +9142,9 @@ const D = (r, a) => (e, t, i) => {
|
|
|
9142
9142
|
O.interface(c, t, ...u);
|
|
9143
9143
|
const h = s.apply(this, n);
|
|
9144
9144
|
return Promise.resolve(h).then((d) => d).catch((d) => d).then((d) => {
|
|
9145
|
-
var
|
|
9145
|
+
var x;
|
|
9146
9146
|
let f = "";
|
|
9147
|
-
const m = d instanceof Error, l = m && ((
|
|
9147
|
+
const m = d instanceof Error, l = m && ((x = e.constructor) == null ? void 0 : x.logError);
|
|
9148
9148
|
if (!(!a && !m)) {
|
|
9149
9149
|
if (l)
|
|
9150
9150
|
f = d;
|
|
@@ -9392,8 +9392,8 @@ const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", O
|
|
|
9392
9392
|
fetch(p).then((f) => f.json()).then((f) => {
|
|
9393
9393
|
var m, l;
|
|
9394
9394
|
if (f.code === 0) {
|
|
9395
|
-
const
|
|
9396
|
-
this.expiration =
|
|
9395
|
+
const x = (m = f.data) == null ? void 0 : m.oss, v = (l = f.data) == null ? void 0 : l.sls;
|
|
9396
|
+
this.expiration = x.expiration || v.expiration, this.emit("onTokenUpdate", x, v), O.event(`[${ii.logName}]`, "getToken", x, v);
|
|
9397
9397
|
} else
|
|
9398
9398
|
throw new Error();
|
|
9399
9399
|
this.slsReporter.reportSTSResult(200, d);
|
|
@@ -10669,17 +10669,17 @@ const ge = (lt = class extends Sn {
|
|
|
10669
10669
|
({ ssrc: E, type: _, msid: y }) => _ === "video" && E && y === T.VideoLarge
|
|
10670
10670
|
), l = yield this.compareAndPublish(m, t.video, T.VideoLarge);
|
|
10671
10671
|
l && (i = l);
|
|
10672
|
-
const
|
|
10672
|
+
const x = (o = this.streamTracks) == null ? void 0 : o.find(
|
|
10673
10673
|
({ ssrc: E, type: _, msid: y }) => _ === "video" && E && y === T.VideoSmall
|
|
10674
10674
|
), v = yield this.compareAndPublish(
|
|
10675
|
-
|
|
10675
|
+
x,
|
|
10676
10676
|
t.videoSmall,
|
|
10677
10677
|
T.VideoSmall
|
|
10678
10678
|
);
|
|
10679
10679
|
v && (i = v);
|
|
10680
|
-
const
|
|
10680
|
+
const S = (u = this.streamTracks) == null ? void 0 : u.find(
|
|
10681
10681
|
({ ssrc: E, type: _, msid: y }) => _ === "video" && E && y === T.Screen
|
|
10682
|
-
), b = yield this.compareAndPublish(
|
|
10682
|
+
), b = yield this.compareAndPublish(S, t.screen, T.Screen);
|
|
10683
10683
|
if (b && (i = b), !i)
|
|
10684
10684
|
if (e === nt.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
|
|
10685
10685
|
if ((h = this.parameter.data) != null && h.enablePubDataChannel) {
|
|
@@ -10992,12 +10992,12 @@ const ge = (lt = class extends Sn {
|
|
|
10992
10992
|
const m = this.getMediaStats(f.mediaSourceId);
|
|
10993
10993
|
f._source = m;
|
|
10994
10994
|
const l = this.monitorDataCache[h];
|
|
10995
|
-
let
|
|
10995
|
+
let x;
|
|
10996
10996
|
if ((l == null ? void 0 : l.length) > 0) {
|
|
10997
10997
|
const v = l[l.length - 1] || {}, { _last: b } = v;
|
|
10998
|
-
|
|
10998
|
+
x = wt(v, ["_last"]);
|
|
10999
10999
|
}
|
|
11000
|
-
(l == null ? void 0 : l.length) >= $a && this.reportPublishMonitor(h), f._last =
|
|
11000
|
+
(l == null ? void 0 : l.length) >= $a && this.reportPublishMonitor(h), f._last = x, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
|
|
11001
11001
|
});
|
|
11002
11002
|
}), o.forEach((u) => {
|
|
11003
11003
|
this.reportPublishMonitor(u);
|
|
@@ -11631,14 +11631,14 @@ const Ce = (Me = class extends Sn {
|
|
|
11631
11631
|
});
|
|
11632
11632
|
this.streamInfo = new Ei(), this.remoteUserInfo = new hc(this), this.parameter = d, this.streamInfo.on(Le.Remote, (m) => {
|
|
11633
11633
|
this.emit(Le.Remote, m, this.userId);
|
|
11634
|
-
}), this.signalingManager = o, this.viewMap = (f = n[t]) != null ? f : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new jt(), this.audioSubState.on("change", (m, l,
|
|
11635
|
-
this.emit("audioSubscribeStateChanged", this.uid, m, l,
|
|
11636
|
-
}), this.videoSubState = new jt(), this.videoSubState.on("change", (m, l,
|
|
11637
|
-
this.emit("videoSubscribeStateChanged", this.uid, m, l,
|
|
11638
|
-
}), this.screenSubState = new jt(), this.screenSubState.on("change", (m, l,
|
|
11639
|
-
this.emit("screenSubscribeStateChanged", this.uid, m, l,
|
|
11640
|
-
}), this.dataSubState = new jt(), this.dataSubState.on("change", (m, l,
|
|
11641
|
-
this.emit("dataSubscribeStateChanged", this.uid, m, l,
|
|
11634
|
+
}), this.signalingManager = o, this.viewMap = (f = n[t]) != null ? f : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new jt(), this.audioSubState.on("change", (m, l, x) => {
|
|
11635
|
+
this.emit("audioSubscribeStateChanged", this.uid, m, l, x);
|
|
11636
|
+
}), this.videoSubState = new jt(), this.videoSubState.on("change", (m, l, x) => {
|
|
11637
|
+
this.emit("videoSubscribeStateChanged", this.uid, m, l, x);
|
|
11638
|
+
}), this.screenSubState = new jt(), this.screenSubState.on("change", (m, l, x) => {
|
|
11639
|
+
this.emit("screenSubscribeStateChanged", this.uid, m, l, x);
|
|
11640
|
+
}), this.dataSubState = new jt(), this.dataSubState.on("change", (m, l, x) => {
|
|
11641
|
+
this.emit("dataSubscribeStateChanged", this.uid, m, l, x);
|
|
11642
11642
|
}), this.playoutVolume = p;
|
|
11643
11643
|
}
|
|
11644
11644
|
get streamUrl() {
|
|
@@ -11790,12 +11790,12 @@ const Ce = (Me = class extends Sn {
|
|
|
11790
11790
|
var f, m;
|
|
11791
11791
|
let c = e;
|
|
11792
11792
|
if (!c) {
|
|
11793
|
-
const { hasAudio: l, hasVideo:
|
|
11793
|
+
const { hasAudio: l, hasVideo: x, hasScreen: v, hasData: S } = (f = this.streamInfo) != null ? f : {};
|
|
11794
11794
|
c = {
|
|
11795
11795
|
audio: this.wantSubAudio && l,
|
|
11796
|
-
video: this.wantSubVideo &&
|
|
11796
|
+
video: this.wantSubVideo && x,
|
|
11797
11797
|
screen: this.wantSubScreen && v,
|
|
11798
|
-
data: ((m = this.parameter.data) == null ? void 0 : m.enableSubDataChannel) &&
|
|
11798
|
+
data: ((m = this.parameter.data) == null ? void 0 : m.enableSubDataChannel) && S
|
|
11799
11799
|
};
|
|
11800
11800
|
}
|
|
11801
11801
|
this.streamInfo.markRemoteTrackSubscribing(c);
|
|
@@ -12070,9 +12070,9 @@ const Ce = (Me = class extends Sn {
|
|
|
12070
12070
|
};
|
|
12071
12071
|
}
|
|
12072
12072
|
updateSubscribe(e) {
|
|
12073
|
-
var n, c, o, u, h, p, d, f, m, l,
|
|
12073
|
+
var n, c, o, u, h, p, d, f, m, l, x, v, S, b, E, _, y;
|
|
12074
12074
|
const t = Date.now(), i = {}, s = {};
|
|
12075
|
-
if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || T.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || T.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((p = this.streamInfo) != null && p.hasVideoSmall) ? (i.video = !0, i.vMsid = T.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || T.VideoLarge), this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = T.VideoLarge) : this.defaultVideoStreamType === we.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = T.VideoSmall)) : (!this.wantSubVideo || !((m = this.streamInfo) != null && m.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? T.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || T.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((
|
|
12075
|
+
if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || T.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || T.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((p = this.streamInfo) != null && p.hasVideoSmall) ? (i.video = !0, i.vMsid = T.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || T.VideoLarge), this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = T.VideoLarge) : this.defaultVideoStreamType === we.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = T.VideoSmall)) : (!this.wantSubVideo || !((m = this.streamInfo) != null && m.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? T.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || T.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((x = this.streamInfo) != null && x.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (S = this.parameter.data) != null && S.enableSubDataChannel && !this.isDataSubscribing && ((b = this.streamInfo) != null && b.hasData) ? i.data = !0 : (!((E = this.parameter.data) != null && E.enableSubDataChannel) || !((_ = this.streamInfo) != null && _.hasData)) && this.isDataSubscribing && (s.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (s.audio || s.video || s.screen) && this.subscribeDeleteTracks(s), e === de.Reconnect) {
|
|
12076
12076
|
if (O.event(`[${Me.logName}]`, "reconnect, try to resume"), this.streamInfo.hasData && !i.data) {
|
|
12077
12077
|
const A = this.rtsManager.getDatachannelByMsid({
|
|
12078
12078
|
url: this.streamUrl,
|
|
@@ -12577,14 +12577,14 @@ const xe = (Ae = class extends De {
|
|
|
12577
12577
|
const y = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(_);
|
|
12578
12578
|
return y != null && y[0] && (o = y[0]), _;
|
|
12579
12579
|
}, (E = (b = this.parameter) == null ? void 0 : b.net) != null && E.useTCP && (m.tcpOnly = !0), m.retryTimes = qa, m.retryInterval = Ja, this._rtsPeerConnectionType = "publish";
|
|
12580
|
-
let l = !h.hasVideo,
|
|
12580
|
+
let l = !h.hasVideo, x = f, v = "";
|
|
12581
12581
|
this.startConnect();
|
|
12582
|
-
const
|
|
12582
|
+
const S = Date.now();
|
|
12583
12583
|
try {
|
|
12584
12584
|
v = yield this.rts.publish(za(e), h, m);
|
|
12585
12585
|
} catch (_) {
|
|
12586
12586
|
this.setConnected(!1);
|
|
12587
|
-
const y = 2e3 - (Date.now() -
|
|
12587
|
+
const y = 2e3 - (Date.now() - S);
|
|
12588
12588
|
throw y <= 0 ? this.emit("disconnected") : setTimeout(() => {
|
|
12589
12589
|
this.emit("disconnected");
|
|
12590
12590
|
}, y), this.slsReporter.reportPublish(
|
|
@@ -12598,7 +12598,7 @@ const xe = (Ae = class extends De {
|
|
|
12598
12598
|
(_ == null ? void 0 : _.errorCode) || -1,
|
|
12599
12599
|
this.pcTraceId,
|
|
12600
12600
|
"",
|
|
12601
|
-
|
|
12601
|
+
S
|
|
12602
12602
|
), F.fromRtsError(_);
|
|
12603
12603
|
}
|
|
12604
12604
|
O.event(`[${Ae.logName}]`, "rts publish success", v), this.slsReporter.reportPublish(
|
|
@@ -12612,7 +12612,7 @@ const xe = (Ae = class extends De {
|
|
|
12612
12612
|
0,
|
|
12613
12613
|
v,
|
|
12614
12614
|
v,
|
|
12615
|
-
|
|
12615
|
+
S
|
|
12616
12616
|
), this.slsReporter.reportConnectionLatencyEvent(
|
|
12617
12617
|
Je.HANDLE_PUB_TASK,
|
|
12618
12618
|
Xe.START,
|
|
@@ -12636,7 +12636,7 @@ const xe = (Ae = class extends De {
|
|
|
12636
12636
|
vMsid: T.VideoSmall
|
|
12637
12637
|
},
|
|
12638
12638
|
i
|
|
12639
|
-
), l = !1,
|
|
12639
|
+
), l = !1, x = T.VideoSmall), d && (yield this.publishAdd(
|
|
12640
12640
|
e,
|
|
12641
12641
|
d,
|
|
12642
12642
|
t,
|
|
@@ -12644,10 +12644,10 @@ const xe = (Ae = class extends De {
|
|
|
12644
12644
|
vMsid: T.Screen
|
|
12645
12645
|
},
|
|
12646
12646
|
i
|
|
12647
|
-
), l = !1,
|
|
12647
|
+
), l = !1, x = T.Screen), yield this.waitPublishSender(e, l, x), this.slsReporter.reportPublishFirstPacket(
|
|
12648
12648
|
i,
|
|
12649
12649
|
t,
|
|
12650
|
-
|
|
12650
|
+
S,
|
|
12651
12651
|
_,
|
|
12652
12652
|
this._localJoinTime,
|
|
12653
12653
|
l ? T.Audio : m.vMsid,
|
|
@@ -12686,7 +12686,7 @@ const xe = (Ae = class extends De {
|
|
|
12686
12686
|
}
|
|
12687
12687
|
publishAdd(u, h, p, d) {
|
|
12688
12688
|
return w(this, arguments, function* (e, t, i, s, n = !1, c = !1, o = nt.MANUAL) {
|
|
12689
|
-
var l,
|
|
12689
|
+
var l, x, v, S, b, E, _, y;
|
|
12690
12690
|
const f = Date.now(), m = this.getPubMsid(t, s);
|
|
12691
12691
|
try {
|
|
12692
12692
|
const A = yield ja(
|
|
@@ -12710,9 +12710,9 @@ const xe = (Ae = class extends De {
|
|
|
12710
12710
|
e,
|
|
12711
12711
|
i,
|
|
12712
12712
|
((l = m.vMsid) == null ? void 0 : l[0]) === T.VideoLarge,
|
|
12713
|
-
((
|
|
12713
|
+
((x = m.vMsid) == null ? void 0 : x[0]) === T.VideoSmall,
|
|
12714
12714
|
((v = m.vMsid) == null ? void 0 : v[0]) === T.Screen,
|
|
12715
|
-
((
|
|
12715
|
+
((S = m.aMsid) == null ? void 0 : S[0]) === T.Audio,
|
|
12716
12716
|
0,
|
|
12717
12717
|
this.pcTraceId,
|
|
12718
12718
|
M.traceId || "",
|
|
@@ -12749,7 +12749,7 @@ const xe = (Ae = class extends De {
|
|
|
12749
12749
|
}
|
|
12750
12750
|
publishDelete(e, t) {
|
|
12751
12751
|
return w(this, null, function* () {
|
|
12752
|
-
var u, h, p, d, f, m, l,
|
|
12752
|
+
var u, h, p, d, f, m, l, x;
|
|
12753
12753
|
yield this.dcConnectingPromise;
|
|
12754
12754
|
const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === T.Audio)) == null ? void 0 : h.msid, s = (d = (p = this.publishingTracks) == null ? void 0 : p.find(({ msid: v }) => v === T.VideoLarge)) == null ? void 0 : d.msid, n = (m = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === T.Screen)) == null ? void 0 : m.msid, c = [];
|
|
12755
12755
|
t.screen && n ? c.push(n) : t.video && c.push(t.vMsid || s);
|
|
@@ -12763,7 +12763,7 @@ const xe = (Ae = class extends De {
|
|
|
12763
12763
|
vMsid: c
|
|
12764
12764
|
}
|
|
12765
12765
|
])) || [];
|
|
12766
|
-
return O.event(Ae.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((
|
|
12766
|
+
return O.event(Ae.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((x = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : x.trackId) || "";
|
|
12767
12767
|
} catch (v) {
|
|
12768
12768
|
throw F.fromRtsError(v);
|
|
12769
12769
|
}
|
|
@@ -13047,20 +13047,20 @@ const xe = (Ae = class extends De {
|
|
|
13047
13047
|
const d = Date.now();
|
|
13048
13048
|
let f = T.VideoLarge, m = o.video || o.screen, l = o.audio;
|
|
13049
13049
|
o.video && o.vMsid ? f = o.vMsid : o.screen && (f = T.Screen);
|
|
13050
|
-
let
|
|
13050
|
+
let x = 0, v = 0, S = 0;
|
|
13051
13051
|
const E = ((_, y) => {
|
|
13052
13052
|
let A = 0;
|
|
13053
13053
|
const R = () => {
|
|
13054
13054
|
let M;
|
|
13055
|
-
return l && !
|
|
13055
|
+
return l && !x && (M = this.rts.getSubscribeAudioStats(u.streamUrl).then((C) => {
|
|
13056
13056
|
if (C.packetsReceived > 0)
|
|
13057
|
-
|
|
13057
|
+
x = Date.now();
|
|
13058
13058
|
else if (!m)
|
|
13059
13059
|
return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : !1;
|
|
13060
13060
|
return !0;
|
|
13061
|
-
})), m && !
|
|
13061
|
+
})), m && !S && (M = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((C) => {
|
|
13062
13062
|
if (C.packetsReceived > 0 && (v = Date.now()), C.framesDecoded > 0)
|
|
13063
|
-
|
|
13063
|
+
S = Date.now();
|
|
13064
13064
|
else
|
|
13065
13065
|
return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : (O.event(`[${Ae.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
|
|
13066
13066
|
return !0;
|
|
@@ -13076,39 +13076,40 @@ const xe = (Ae = class extends De {
|
|
|
13076
13076
|
f,
|
|
13077
13077
|
{
|
|
13078
13078
|
fprt: v - p,
|
|
13079
|
-
ifsprtc:
|
|
13079
|
+
ifsprtc: S ? S - p : 0,
|
|
13080
13080
|
ajsub: t === de.Join ? 1 : 0,
|
|
13081
13081
|
pctid: this.pcTraceId,
|
|
13082
13082
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
13083
13083
|
sstc: d - p
|
|
13084
13084
|
}
|
|
13085
|
-
),
|
|
13085
|
+
), S && this.slsReporter.reportSubscribeFirstFrame(
|
|
13086
13086
|
t === de.Resume,
|
|
13087
13087
|
i,
|
|
13088
13088
|
s,
|
|
13089
13089
|
f,
|
|
13090
13090
|
{
|
|
13091
|
-
fvfrt:
|
|
13092
|
-
fp2fftc:
|
|
13091
|
+
fvfrt: S - p,
|
|
13092
|
+
fp2fftc: S - v,
|
|
13093
13093
|
ajsub: t === de.Join ? 1 : 0,
|
|
13094
|
-
tffrtc: t === de.Join ?
|
|
13094
|
+
tffrtc: t === de.Join ? S - this.localJoinTime : S - n,
|
|
13095
13095
|
pctid: this.pcTraceId,
|
|
13096
13096
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
13097
|
-
fvfdtc:
|
|
13097
|
+
fvfdtc: S - p
|
|
13098
13098
|
}
|
|
13099
|
-
),
|
|
13099
|
+
), x && (this.slsReporter.reportConnectionLatencyEvent(
|
|
13100
13100
|
Je.FIRST_REMOTE,
|
|
13101
13101
|
Xe.DECODED,
|
|
13102
13102
|
i,
|
|
13103
|
-
T.Audio
|
|
13103
|
+
T.Audio,
|
|
13104
|
+
x
|
|
13104
13105
|
), this.slsReporter.reportSubscribeFirstPacket(
|
|
13105
13106
|
t === de.Resume,
|
|
13106
13107
|
i,
|
|
13107
13108
|
s,
|
|
13108
13109
|
T.Audio,
|
|
13109
13110
|
{
|
|
13110
|
-
fprt:
|
|
13111
|
-
ifsprtc:
|
|
13111
|
+
fprt: x - p,
|
|
13112
|
+
ifsprtc: x - p,
|
|
13112
13113
|
ajsub: t === de.Join ? 1 : 0,
|
|
13113
13114
|
pctid: this.pcTraceId,
|
|
13114
13115
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
@@ -13395,8 +13396,8 @@ class Ga extends De {
|
|
|
13395
13396
|
for (const l of this.plugins)
|
|
13396
13397
|
try {
|
|
13397
13398
|
yield l.execute(this, e);
|
|
13398
|
-
} catch (
|
|
13399
|
-
console.error(`error in plugin-${l.name}, error: ${
|
|
13399
|
+
} catch (x) {
|
|
13400
|
+
console.error(`error in plugin-${l.name}, error: ${x}`);
|
|
13400
13401
|
}
|
|
13401
13402
|
this._targetVideoTrack ? ((i = (t = this._publishVideoStream) == null ? void 0 : t.videoTrack) == null ? void 0 : i.id) !== this._targetVideoTrack.id && (this._publishVideoStream = yield Qt(this._targetVideoTrack), this.setVideoMuted(this._videoMuted), (s = this.profileManager) == null || s.setVideoProfile(this.originVideoTrack, this._publishVideoStream, !0), (n = this.profileManager) == null || n.setContentHint(this._targetVideoTrack), this.previewStream ? (c = this.previewStream) == null || c.mergeStream(this._publishVideoStream) : this._previewStream = yield Qt(this._targetVideoTrack)) : (this._publishVideoStream = void 0, (o = this.previewStream) == null || o.deleteTracks({ video: !0 })), this._targetDualVideoTrack ? ((h = (u = this._publishDualVideoStream) == null ? void 0 : u.videoTrack) == null ? void 0 : h.id) !== this._targetDualVideoTrack.id && (this._publishDualVideoStream = yield Qt(this._targetDualVideoTrack), this._videoMuted ? this._publishDualVideoStream.disableVideo() : this._publishDualVideoStream.enableVideo()) : this._publishDualVideoStream = void 0, this._targetAudioTrack ? ((d = (p = this._publishAudioStream) == null ? void 0 : p.audioTrack) == null ? void 0 : d.id) !== this._targetAudioTrack.id && (this._publishAudioStream = yield Qt(this._targetAudioTrack), this.setAudioMuted(this._audioMuted), this.previewStream ? (f = this.previewStream) == null || f.mergeStream(this._publishAudioStream) : this._previewStream = yield Qt(this._targetAudioTrack)) : (this._publishAudioStream = void 0, (m = this.previewStream) == null || m.deleteTracks({ audio: !0 }));
|
|
13402
13403
|
});
|
|
@@ -13504,7 +13505,7 @@ const Ze = (Vt = class extends De {
|
|
|
13504
13505
|
g(this, "_publishLocalScreenStreamEnabled", !0);
|
|
13505
13506
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
13506
13507
|
const i = (s) => w(this, null, function* () {
|
|
13507
|
-
if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.2-beta.
|
|
13508
|
+
if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.2-beta.5")) {
|
|
13508
13509
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13509
13510
|
return;
|
|
13510
13511
|
}
|
|
@@ -15414,7 +15415,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15414
15415
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15415
15416
|
src: s[0].ssrc || "",
|
|
15416
15417
|
codec: s[0]._codec || ""
|
|
15417
|
-
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [],
|
|
15418
|
+
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [];
|
|
15418
15419
|
try {
|
|
15419
15420
|
if (s.forEach((I) => {
|
|
15420
15421
|
var V, N, J, j, ce, Z;
|
|
@@ -15434,7 +15435,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15434
15435
|
if (f.push(L), n)
|
|
15435
15436
|
(N = I._source) != null && N.audioLevel && m.push(tn(I._source.audioLevel)), l.push(0);
|
|
15436
15437
|
else {
|
|
15437
|
-
|
|
15438
|
+
x.push(rn(I, "totalEncodeTime")), v.push(kt((J = I._source) == null ? void 0 : J.framesPerSecond, 100)), S.push(kt((j = I._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(kt(I.framesPerSecond, 100)), E.push(kt((ce = I._source) == null ? void 0 : ce.height, 4400)), _.push(kt((Z = I._source) == null ? void 0 : Z.width, 7700)), y.push(kt(I.frameHeight, 4400)), A.push(kt(I.frameWidth, 7700));
|
|
15438
15439
|
const Fe = pe(I, "totalPacketSendDelay");
|
|
15439
15440
|
R.push(fe(Fe, 1 / (ee || 1), 2e3));
|
|
15440
15441
|
const ze = pe(I, "qpSum");
|
|
@@ -15444,7 +15445,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15444
15445
|
const I = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
|
|
15445
15446
|
c.ailevel = m.join(","), c.arpc = l.join(","), c.arsr = I, c.aesr = I, c.publevel = -90, c.rawlevel = -90;
|
|
15446
15447
|
} else
|
|
15447
|
-
c.em =
|
|
15448
|
+
c.em = x.join(","), c.cfps = v.join(","), c.ifps = S.join(","), c.sfps = b.join(","), c.ih = E.join(","), c.iw = _.join(","), c.sh = y.join(","), c.sw = A.join(","), c.sd = R.join(","), c.aqp = M.join(","), c.caf = C.join(","), c.can = C.join(","), c.cav = u.join(","), c.ifimax = C.join(","), c.ifimin = C.join(","), c.efimax = C.join(","), c.efimin = C.join(","), c.sfimax = C.join(","), c.sfimin = C.join(","), c.apsnr = C.join(",");
|
|
15448
15449
|
} catch (I) {
|
|
15449
15450
|
}
|
|
15450
15451
|
this.log({
|
|
@@ -15465,7 +15466,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15465
15466
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15466
15467
|
src: s[0].ssrc || "",
|
|
15467
15468
|
codec: s[0]._codec || ""
|
|
15468
|
-
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [],
|
|
15469
|
+
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], L = [], V = [], N = [], J = [];
|
|
15469
15470
|
try {
|
|
15470
15471
|
s.forEach((j) => {
|
|
15471
15472
|
var tt, It;
|
|
@@ -15492,7 +15493,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15492
15493
|
const Rt = pe(j, "fecPacketsReceived");
|
|
15493
15494
|
b.push(Pt(Rt, Se));
|
|
15494
15495
|
const Be = pe(j, "retransmittedPacketsReceived"), Re = Se + ot - Be;
|
|
15495
|
-
if (
|
|
15496
|
+
if (x.push(Pt(Se - Be, Re)), v.push(Pt(ot, Re)), l.push(Pt(Be, Re)), S.push(Re), N.push(0), J.push(""), n) {
|
|
15496
15497
|
_.push(tn(j.audioLevel));
|
|
15497
15498
|
const gt = Wc(j, "synthesizedSamplesEvents");
|
|
15498
15499
|
y.push(gt);
|
|
@@ -15520,7 +15521,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15520
15521
|
const Yt = pe(j, "jitterBufferMinimumDelay");
|
|
15521
15522
|
Yt && We ? L.push(fe(Yt, 1e3 / We, 3e4)) : L.push(0);
|
|
15522
15523
|
}
|
|
15523
|
-
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser =
|
|
15524
|
+
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = x.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = S.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm = M.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt = J.join(","), c.ns = X.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = N.join(","), c.ofimin = N.join(","), c.dfimax = N.join(","), c.dfimin = N.join(","), c.rfimax = N.join(","), c.rfimin = N.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = k.join(","), c.pdm = L.join(","), c.ofps = V.join(","), c.dfbd = Q.join(","));
|
|
15524
15525
|
} catch (j) {
|
|
15525
15526
|
}
|
|
15526
15527
|
this.log({
|
|
@@ -15541,10 +15542,10 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15541
15542
|
return;
|
|
15542
15543
|
const e = [], t = [], i = [], s = [], n = [], c = [], o = [], u = [], h = [], p = [];
|
|
15543
15544
|
a.forEach((f, m) => {
|
|
15544
|
-
var
|
|
15545
|
+
var x;
|
|
15545
15546
|
if (!f.timestamp)
|
|
15546
15547
|
return;
|
|
15547
|
-
const l = (
|
|
15548
|
+
const l = (x = f._last) != null && x.timestamp ? f.timestamp - f._last.timestamp : 1e3;
|
|
15548
15549
|
e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(Ge(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(Ge(fe(f.bytesReceived, 8, 2e7), l, 25e6)), n.push(0), c.push(0), m % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
|
|
15549
15550
|
});
|
|
15550
15551
|
const d = {
|