aliyun-rtc-sdk 6.14.2-beta.2 → 6.14.2-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ var wt = (r, a) => {
18
18
  a.indexOf(t) < 0 && ms.call(r, t) && (e[t] = r[t]);
19
19
  return e;
20
20
  };
21
- var m = (r, a, e) => (Pi(r, typeof a != "symbol" ? a + "" : a, e), e);
21
+ var g = (r, a, e) => (Pi(r, typeof a != "symbol" ? a + "" : a, e), e);
22
22
  var ki = (r, a, e) => Wn(zn(r), e, a);
23
23
  var w = (r, a, e) => new Promise((t, i) => {
24
24
  var s = (o) => {
@@ -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, g = d.ignoreResErrors, l = d.ignoreUrls, S = 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, g) || r.ignoreByRule(r.decode(n.src), g)) || s === "api" && (r.ignoreByRule(n.api, S) || r.ignoreByRule(r.decode(n.api), S)) || !u.checkImgUrl(h.imgUrl) || !n || h.disabled || !h.pid || o === 0)
657
+ var u = this, h = u._conf, p = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, m = d.ignoreResErrors, l = d.ignoreUrls, S = 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, S) || r.ignoreByRule(r.decode(n.api), S)) || !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({
@@ -814,7 +814,7 @@ function Gn() {
814
814
  };
815
815
  return this._self("error", f, 1);
816
816
  }
817
- for (var g = {
817
+ for (var m = {
818
818
  begin: Date.now(),
819
819
  cate: c,
820
820
  msg: o && o.substring(0, 1e3),
@@ -829,10 +829,10 @@ function Gn() {
829
829
  dl: h
830
830
  }, l = ["tag", "c1", "c2", "c3"], S = 0; S < l.length; S++) {
831
831
  var v = l[S];
832
- n[v] && (g[v] = n[v]);
832
+ n[v] && (m[v] = n[v]);
833
833
  }
834
834
  var x = (this.getConfig("ignore") || {}).ignoreErrors;
835
- return r.ignoreByRule(g.msg, x) || r.ignoreByRule(r.decode(g.msg), x) ? this : (this.beforeSend && this.beforeSend("error", g), this._lg("error", g, 1));
835
+ return r.ignoreByRule(m.msg, x) || r.ignoreByRule(r.decode(m.msg), x) ? 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, g, l, S, v, x, b, E) {
845
+ api: function(s, n, c, o, u, h, p, d, f, m, l, S, v, x, b, E) {
846
846
  if (!s)
847
847
  return r.warn("[retcode] api is null"), this;
848
848
  if (s = typeof s == "string" ? {
@@ -855,7 +855,7 @@ function Gn() {
855
855
  traceId: p,
856
856
  pv_id: d,
857
857
  apiSnapshot: f,
858
- domain: g,
858
+ domain: m,
859
859
  flag: S,
860
860
  tag: v,
861
861
  c1: x,
@@ -966,29 +966,29 @@ function Zn() {
966
966
  ys = 1;
967
967
  var r = Ve();
968
968
  return ji = function(a, e) {
969
- var t = [], i = null, s = e && e.location && e.location.href, n = void 0, c = null, o = function(d, f, g) {
969
+ var t = [], i = null, s = e && e.location && e.location.href, n = void 0, c = null, o = function(d, f, m) {
970
970
  if (d !== null) {
971
971
  var l = d[f];
972
- d[f] = g(l);
972
+ d[f] = m(l);
973
973
  }
974
974
  }, u = function(d) {
975
- var f, g, l, S, v, x = [];
975
+ var f, m, l, S, v, x = [];
976
976
  if (!d || typeof d.tagName != "string")
977
977
  return "";
978
978
  if (x.push(d.tagName.toLowerCase()), typeof d.id == "string" && x.push("#".concat(d.id)), typeof (f = d.className) == "string")
979
- for (g = f.split(/\s+/), v = 0; v < g.length; v++)
980
- x.push(".".concat(g[v]));
979
+ for (m = f.split(/\s+/), v = 0; v < m.length; v++)
980
+ x.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
983
  l = b[v], typeof (S = d.getAttribute(l)) == "string" && x.push("[".concat(l, '="').concat(S, '"]'));
984
984
  return x.join("");
985
985
  }, h = function(d, f) {
986
- return function(g) {
987
- if (g && g !== c) {
988
- c = g;
986
+ return function(m) {
987
+ if (m && m !== c) {
988
+ c = m;
989
989
  var l;
990
990
  try {
991
- l = g.target;
991
+ l = m.target;
992
992
  } catch (v) {
993
993
  l = "<unknown>";
994
994
  }
@@ -1034,7 +1034,7 @@ function Zn() {
1034
1034
  if (d(s, x), f)
1035
1035
  return f.apply(this, S);
1036
1036
  };
1037
- var g = function(l) {
1037
+ var m = function(l) {
1038
1038
  return function() {
1039
1039
  for (var S = arguments.length, v = new Array(S), x = 0; x < S; x++)
1040
1040
  v[x] = arguments[x];
@@ -1042,19 +1042,19 @@ function Zn() {
1042
1042
  return b && d(s, String(b)), l.apply(this, v);
1043
1043
  };
1044
1044
  };
1045
- o(e.history, "pushState", g), o(e.history, "replaceState", g);
1045
+ o(e.history, "pushState", m), o(e.history, "replaceState", m);
1046
1046
  }
1047
1047
  };
1048
1048
  r.ext(a.prototype, {
1049
1049
  addBehavior: function(d) {
1050
1050
  if (this.getConfig("behavior") && d && typeof d == "object") {
1051
- var f = {}, g = d.data || {};
1051
+ var f = {}, m = d.data || {};
1052
1052
  if (d.type)
1053
- f = g;
1053
+ f = m;
1054
1054
  else {
1055
- if (typeof g.name != "string" || typeof g.message != "string")
1055
+ if (typeof m.name != "string" || typeof m.message != "string")
1056
1056
  return;
1057
- f.name = g.name.substr(0, 20), f.message = g.message.substr(0, 200);
1057
+ f.name = m.name.substr(0, 20), f.message = m.message.substr(0, 200);
1058
1058
  }
1059
1059
  f.message && (f.message = r.encode(f.message));
1060
1060
  var l = {
@@ -1083,26 +1083,26 @@ function Zn() {
1083
1083
  try {
1084
1084
  (function() {
1085
1085
  if (document && document.referrer && document.location) {
1086
- var f = document.referrer, g = document.location.href;
1086
+ var f = document.referrer, m = document.location.href;
1087
1087
  if (f !== "") {
1088
1088
  var l = {
1089
1089
  type: "navigation",
1090
1090
  data: {
1091
1091
  from: f,
1092
- to: g
1092
+ to: m
1093
1093
  }
1094
1094
  };
1095
- s = g, i && i.addBehavior(l);
1095
+ s = m, i && i.addBehavior(l);
1096
1096
  }
1097
1097
  }
1098
1098
  })(), e && e.document && e.document.addEventListener && (e.document.addEventListener("click", h("click"), !1), e.document.addEventListener("keypress", h("keypress"), !1)), p();
1099
1099
  var d = this.getConfig("enableConsole");
1100
1100
  d && function(f) {
1101
1101
  if (e && e.console) {
1102
- var g = ["debug", "info", "warn", "log", "error", "assert"];
1103
- r.isArray(f) && (g = f);
1104
- for (var l = 0; l < g.length; l++) {
1105
- var S = g[l];
1102
+ var m = ["debug", "info", "warn", "log", "error", "assert"];
1103
+ r.isArray(f) && (m = f);
1104
+ for (var l = 0; l < m.length; l++) {
1105
+ var S = m[l];
1106
1106
  S && r.isString(S) && e.console[S] && typeof e.console[S] == "function" && o(e.console, S, function(v) {
1107
1107
  var x = S;
1108
1108
  return function() {
@@ -1198,8 +1198,8 @@ function eo() {
1198
1198
  tti: [10, 1],
1199
1199
  ready: [12, 1],
1200
1200
  load: [14, 1]
1201
- }, function(g, l) {
1202
- var S = n[e[g[1]]], v = n[e[g[0]]];
1201
+ }, function(m, l) {
1202
+ var S = n[e[m[1]]], v = n[e[m[0]]];
1203
1203
  if (o === 2 || S > 0 && v > 0) {
1204
1204
  var x = Math.round(v - S);
1205
1205
  x >= 0 && x < 6e5 && (s[l] = x);
@@ -1243,7 +1243,7 @@ function to() {
1243
1243
  } catch (A) {
1244
1244
  return t.warn("[retcode] can not set cookie: ", A), !1;
1245
1245
  }
1246
- }, g = function(l) {
1246
+ }, m = function(l) {
1247
1247
  var S = l._conf.uid || f("_nk_") || f("_bl_uid");
1248
1248
  return !S && (S = t.uu(), !f("_bl_uid", S, 15552e3)) ? null : S;
1249
1249
  };
@@ -1324,7 +1324,7 @@ function to() {
1324
1324
  var l = this;
1325
1325
  l.onReady(function() {
1326
1326
  var S = function(v) {
1327
- var x = g(v), b = a.devicePixelRatio || 1;
1327
+ var x = m(v), b = a.devicePixelRatio || 1;
1328
1328
  return {
1329
1329
  uid: x,
1330
1330
  dt: e.title,
@@ -1340,7 +1340,7 @@ function to() {
1340
1340
  });
1341
1341
  },
1342
1342
  commonInfo: function() {
1343
- return p.uid = g(this), p.sid = function(l) {
1343
+ return p.uid = m(this), p.sid = function(l) {
1344
1344
  if (l.session)
1345
1345
  return l.session;
1346
1346
  var S;
@@ -1395,17 +1395,17 @@ function io() {
1395
1395
  var r = Ve(), a = 500;
1396
1396
  return $i = function(e, t, i) {
1397
1397
  function s(p, d, f) {
1398
- var g = 0, l = p.tagName;
1398
+ var m = 0, l = p.tagName;
1399
1399
  if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
1400
1400
  var S = p.children ? p.children.length : 0;
1401
1401
  if (S > 0)
1402
1402
  for (var v = p.children, x = S - 1; x >= 0; x--)
1403
- g += s(v[x], d + 1, g > 0);
1404
- if (g <= 0 && !f && !(p.getBoundingClientRect && p.getBoundingClientRect().top < c))
1403
+ m += s(v[x], d + 1, m > 0);
1404
+ if (m <= 0 && !f && !(p.getBoundingClientRect && p.getBoundingClientRect().top < c))
1405
1405
  return 0;
1406
- g += 1 + 0.5 * d;
1406
+ m += 1 + 0.5 * d;
1407
1407
  }
1408
- return g;
1408
+ return m;
1409
1409
  }
1410
1410
  function n(p) {
1411
1411
  for (var d = 1; d < p.length; d++)
@@ -1426,8 +1426,8 @@ function io() {
1426
1426
  });
1427
1427
  var f = t.MutationObserver;
1428
1428
  return (u = new f(function() {
1429
- (function(g) {
1430
- var l = Date.now() - g, S = i.querySelector("body");
1429
+ (function(m) {
1430
+ var l = Date.now() - m, S = i.querySelector("body");
1431
1431
  if (S) {
1432
1432
  var v = 0;
1433
1433
  v += s(S, 1, !1), o.push({
@@ -1455,16 +1455,16 @@ function io() {
1455
1455
  return !(b > x || 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
- for (var g = null, l = 1; l < o.length; l++)
1458
+ for (var m = null, l = 1; l < o.length; l++)
1459
1459
  if (o[l].t >= o[l - 1].t) {
1460
1460
  var S = o[l].score - o[l - 1].score;
1461
- (!g || g.rate <= S) && (g = {
1461
+ (!m || m.rate <= S) && (m = {
1462
1462
  t: o[l].t,
1463
1463
  rate: S
1464
1464
  });
1465
1465
  }
1466
- g && g.t > 0 && g.t < 36e5 ? f.sendPerformance({
1467
- fmp: g.t
1466
+ m && m.t > 0 && m.t < 36e5 ? f.sendPerformance({
1467
+ fmp: m.t
1468
1468
  }) : f.sendPerformance();
1469
1469
  } else
1470
1470
  f.fmpTimmer = r.delay(function() {
@@ -1477,8 +1477,8 @@ 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, g, l, S, v, x, b, E, _, y) {
1481
- var A = e.J(g) || null, R = e.safetyCall(p, [A, f], null);
1480
+ var e = Ve(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, m, l, S, v, x, b, E, _, y) {
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;
@@ -1493,15 +1493,15 @@ function ro() {
1493
1493
  if (typeof a[n] == "function") {
1494
1494
  var p = a[n];
1495
1495
  a[c] = p, a[n] = function(d, f) {
1496
- var g = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), l = t;
1496
+ var m = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), l = t;
1497
1497
  if (!l || !l.api || f && (f.method === "HEAD" || f.mode === "no-cors"))
1498
- return p.apply(a, g);
1498
+ return p.apply(a, m);
1499
1499
  f || (f = {});
1500
1500
  var S = Date.now(), v = l._conf, x = 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, _))
1504
- return p.apply(a, g);
1504
+ return p.apply(a, m);
1505
1505
  b = e.filterByRule(b, E, v.ignoreApiPath ? v.ignoreApiPath : v.apiHelper);
1506
1506
  var A = v.enableLinkTrace, R = "", M = "", C = l.getConfig("pid"), I = null, P = l.getConfig("sample"), B = l.getConfig("linkType"), $ = 1;
1507
1507
  if (P && !l.sampling(P) && ($ = 0), A) {
@@ -1515,26 +1515,26 @@ function ro() {
1515
1515
  if (l.getConfig("enableApiCors") || X)
1516
1516
  if (d && typeof d != "string")
1517
1517
  try {
1518
- if (g[0].headers && typeof g[0].headers.get == "function" && typeof g[0].headers.append == "function")
1518
+ if (m[0].headers && typeof m[0].headers.get == "function" && typeof m[0].headers.append == "function")
1519
1519
  switch (B) {
1520
1520
  case "arms":
1521
- var ae = g[0].headers.get("EagleEye-TraceID"), Q = g[0].headers.get("EagleEye-SessionID"), te = g[0].headers.get("EagleEye-pAppName");
1522
- ae ? R = ae : (R = l.getTraceId()["EagleEye-TraceID"], g[0].headers.append("EagleEye-TraceID", R)), Q ? M = Q : (M = l.getPageviewId()["EagleEye-SessionID"], g[0].headers.append("EagleEye-SessionID", M)), te || g[0].headers.append("EagleEye-pAppName", C);
1521
+ var ae = m[0].headers.get("EagleEye-TraceID"), Q = m[0].headers.get("EagleEye-SessionID"), te = m[0].headers.get("EagleEye-pAppName");
1522
+ ae ? R = ae : (R = l.getTraceId()["EagleEye-TraceID"], m[0].headers.append("EagleEye-TraceID", R)), Q ? M = Q : (M = l.getPageviewId()["EagleEye-SessionID"], m[0].headers.append("EagleEye-SessionID", M)), te || m[0].headers.append("EagleEye-pAppName", C);
1523
1523
  break;
1524
1524
  case "b3":
1525
- var ee = g[0].headers.get("X-B3-TraceId");
1525
+ var ee = m[0].headers.get("X-B3-TraceId");
1526
1526
  if (ee)
1527
1527
  R = ee;
1528
1528
  else {
1529
1529
  var k = l.getB3TraceId($);
1530
- g[0].headers.append("X-B3-TraceId", k["X-B3-TraceId"]), g[0].headers.append("X-B3-ParentSpanId", k["X-B3-ParentSpanId"]), g[0].headers.append("X-B3-SpanId", k["X-B3-SpanId"]), g[0].headers.append("X-B3-Sampled", k["X-B3-Sampled"]), g[0].headers.append("X-Request-ID", e.guid()), R = k["X-B3-TraceId"];
1530
+ m[0].headers.append("X-B3-TraceId", k["X-B3-TraceId"]), m[0].headers.append("X-B3-ParentSpanId", k["X-B3-ParentSpanId"]), m[0].headers.append("X-B3-SpanId", k["X-B3-SpanId"]), m[0].headers.append("X-B3-Sampled", k["X-B3-Sampled"]), m[0].headers.append("X-Request-ID", e.guid()), R = k["X-B3-TraceId"];
1531
1531
  }
1532
1532
  M = l.pageview;
1533
1533
  break;
1534
1534
  case "tracing":
1535
1535
  default:
1536
- var L = g[0].headers.get("uber-trace-id");
1537
- L ? R = L.split(":")[0] : (L = l.getUberTraceId($), g[0].headers.append("uber-trace-id", L["uber-trace-id"]), R = L.traceId), M = l.pageview;
1536
+ var L = m[0].headers.get("uber-trace-id");
1537
+ L ? R = L.split(":")[0] : (L = l.getUberTraceId($), m[0].headers.append("uber-trace-id", L["uber-trace-id"]), R = L.traceId), M = l.pageview;
1538
1538
  }
1539
1539
  } catch (J) {
1540
1540
  e.warn(`[retcode] fetch failed to set header, exception is :
@@ -1565,7 +1565,7 @@ function ro() {
1565
1565
  M = l.getPageviewId()["EagleEye-SessionID"];
1566
1566
  }
1567
1567
  }
1568
- return p.apply(a, g).then(function(J) {
1568
+ return p.apply(a, m).then(function(J) {
1569
1569
  if (!l || !l.api)
1570
1570
  return J;
1571
1571
  try {
@@ -1587,7 +1587,7 @@ function ro() {
1587
1587
  var et = y(j, Qe);
1588
1588
  et && e.isString(et) && (R = et);
1589
1589
  }
1590
- var Se = e.getFetchSnapshot(g, Qe, ce);
1590
+ var Se = e.getFetchSnapshot(m, Qe, ce);
1591
1591
  j.ok ? s(l, v.parseResponse, b, E, Qe, j.status || 200, ze, S, R, M, Se, I, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, S, R, M, Se, i, I, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1592
1592
  src: j.url,
1593
1593
  res_type: "api"
@@ -1611,8 +1611,8 @@ function ro() {
1611
1611
  if (typeof a[u] == "function") {
1612
1612
  var p, d = a[u];
1613
1613
  a[o] = d;
1614
- var f = function(g) {
1615
- var l = new d(g), S = t;
1614
+ var f = function(m) {
1615
+ var l = new d(m), S = t;
1616
1616
  if (!S || !S.api || !l.addEventListener)
1617
1617
  return l;
1618
1618
  var v, x, b, E, _ = l.send, y = l.open, A = l.setRequestHeader, R = S._conf, M = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = S.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null, X = S.getConfig("sample"), ae = S.getConfig("linkType"), Q = 1;
@@ -1675,8 +1675,8 @@ function ro() {
1675
1675
  }
1676
1676
  }), l;
1677
1677
  };
1678
- f.prototype = d.prototype, e.each(Object.keys(d), function(g) {
1679
- f[g] = d[g];
1678
+ f.prototype = d.prototype, e.each(Object.keys(d), function(m) {
1679
+ f[m] = d[m];
1680
1680
  }), a[u] = f, a[u].toString = e.createFakeToString(u);
1681
1681
  }
1682
1682
  }()), t = this, this);
@@ -1698,16 +1698,16 @@ function so() {
1698
1698
  }, n = function(c) {
1699
1699
  var o = t[c];
1700
1700
  typeof o == "function" && (t[c] = function(u, h, p) {
1701
- var d = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), f = location.href, g = o.apply(t, d);
1701
+ var d = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), f = location.href, m = o.apply(t, d);
1702
1702
  if (!p || typeof p != "string" || p === f)
1703
- return g;
1703
+ return m;
1704
1704
  try {
1705
1705
  var l = f.split("#"), S = p.split("#"), v = e.cutUrlSearch(l[0]), x = e.cutUrlSearch(S[0]), b = l[1] && l[1].replace(/^\/?(.*)/, "$1"), E = S[1] && S[1].replace(/^\/?(.*)/, "$1");
1706
1706
  b !== E ? s("historystatechange", E) : v !== x && s("historystatechange", x);
1707
1707
  } catch (_) {
1708
1708
  e.warn("[retcode] error in " + c + ": " + _);
1709
1709
  }
1710
- return g;
1710
+ return m;
1711
1711
  }, t[c].toString = e.createFakeToString(c));
1712
1712
  };
1713
1713
  e.ext(r.prototype, {
@@ -1728,10 +1728,10 @@ 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 g = o[e[0]], l = o[e[1]], S = o[e[2]], v = o[e[3]], x = 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(g, l, S, v, x, b, E, _, y) || g > _))
1731
+ var m = o[e[0]], l = o[e[1]], S = o[e[2]], v = o[e[3]], x = 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, S, v, x, b, E, _, y) || m > _))
1733
1733
  return;
1734
- if (A < g && (A = g), R < g && (R = l), r.areInOrder(g, A, R, l))
1734
+ if (A < m && (A = m), R < m && (R = l), r.areInOrder(m, A, R, l))
1735
1735
  return {
1736
1736
  domain: r.getURL(o.name).domain,
1737
1737
  res_type: p,
@@ -1769,9 +1769,9 @@ function ao() {
1769
1769
  if (r.isArray(o) && o.length) {
1770
1770
  this[n] || (this[n] = {});
1771
1771
  for (var p = this[n], d = 0, f = o.length; d < f; d += 1) {
1772
- var g = o[d];
1773
- if (r.checkAPI(g.name, !1)) {
1774
- var l = s(g, u, h);
1772
+ var m = o[d];
1773
+ if (r.checkAPI(m.name, !1)) {
1774
+ var l = s(m, u, h);
1775
1775
  if (l) {
1776
1776
  var S = l.res_type + "-" + l.domain;
1777
1777
  S in p || (p[S] = []), p[S].push(l);
@@ -1830,9 +1830,9 @@ function ao() {
1830
1830
  var f = {
1831
1831
  _combo: 1,
1832
1832
  resource: JSON.stringify(d)
1833
- }, g = i.navigator.connection;
1834
- f.ct = g ? g.effectiveType || g.type : "";
1835
- var l = g && (g.downlink || g.downlinkMax || g.bandwidth) || null;
1833
+ }, m = i.navigator.connection;
1834
+ f.ct = m ? m.effectiveType || m.type : "";
1835
+ var l = m && (m.downlink || m.downlinkMax || m.bandwidth) || null;
1836
1836
  (l = l > 999 ? 999 : l) && (f.bandwidth = l), this._lg("resource", f, this.getConfig("sample"));
1837
1837
  }
1838
1838
  }
@@ -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.2", Js = "web";
2267
+ const _i = "6.14.2-beta.3", Js = "web";
2268
2268
  class He {
2269
2269
  /**
2270
2270
  * 将版本号转换为number
@@ -2810,7 +2810,7 @@ function ne() {
2810
2810
  E[_ >>> 3] |= parseInt(x.substr(_, 2), 16) << 24 - _ % 8 * 4;
2811
2811
  return new p.init(E, b / 2);
2812
2812
  }
2813
- }, g = d.Latin1 = {
2813
+ }, m = d.Latin1 = {
2814
2814
  /**
2815
2815
  * Converts a word array to a Latin1 string.
2816
2816
  *
@@ -2865,7 +2865,7 @@ function ne() {
2865
2865
  */
2866
2866
  stringify: function(x) {
2867
2867
  try {
2868
- return decodeURIComponent(escape(g.stringify(x)));
2868
+ return decodeURIComponent(escape(m.stringify(x)));
2869
2869
  } catch (b) {
2870
2870
  throw new Error("Malformed UTF-8 data");
2871
2871
  }
@@ -2884,7 +2884,7 @@ function ne() {
2884
2884
  * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
2885
2885
  */
2886
2886
  parse: function(x) {
2887
- return g.parse(unescape(encodeURIComponent(x)));
2887
+ return m.parse(unescape(encodeURIComponent(x)));
2888
2888
  }
2889
2889
  }, S = u.BufferedBlockAlgorithm = h.extend({
2890
2890
  /**
@@ -3428,7 +3428,7 @@ 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 g = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, S = u[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, v = g << 16 | l << 8 | S, x = 0; x < 4 && f + x * 0.75 < h; x++)
3431
+ for (var m = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, S = u[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, v = m << 16 | l << 8 | S, x = 0; x < 4 && f + x * 0.75 < h; x++)
3432
3432
  d.push(p.charAt(v >>> 6 * (3 - x) & 63));
3433
3433
  var b = p.charAt(64);
3434
3434
  if (b)
@@ -3458,8 +3458,8 @@ function Ft() {
3458
3458
  }
3459
3459
  var f = h.charAt(64);
3460
3460
  if (f) {
3461
- var g = o.indexOf(f);
3462
- g !== -1 && (u = g);
3461
+ var m = o.indexOf(f);
3462
+ m !== -1 && (u = m);
3463
3463
  }
3464
3464
  return c(o, u, p);
3465
3465
  },
@@ -3468,7 +3468,7 @@ 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 g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, S = g | l;
3471
+ var m = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, S = m | l;
3472
3472
  p[d >>> 2] |= S << 24 - d % 4 * 8, d++;
3473
3473
  }
3474
3474
  return s.create(p, d);
@@ -3505,8 +3505,8 @@ function Lo() {
3505
3505
  u === void 0 && (u = !0);
3506
3506
  var h = o.words, p = o.sigBytes, d = u ? this._safe_map : this._map;
3507
3507
  o.clamp();
3508
- for (var f = [], g = 0; g < p; g += 3)
3509
- for (var l = h[g >>> 2] >>> 24 - g % 4 * 8 & 255, S = h[g + 1 >>> 2] >>> 24 - (g + 1) % 4 * 8 & 255, v = h[g + 2 >>> 2] >>> 24 - (g + 2) % 4 * 8 & 255, x = l << 16 | S << 8 | v, b = 0; b < 4 && g + b * 0.75 < p; b++)
3508
+ for (var f = [], m = 0; m < p; m += 3)
3509
+ for (var l = h[m >>> 2] >>> 24 - m % 4 * 8 & 255, S = h[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255, v = h[m + 2 >>> 2] >>> 24 - (m + 2) % 4 * 8 & 255, x = l << 16 | S << 8 | v, b = 0; b < 4 && m + b * 0.75 < p; b++)
3510
3510
  f.push(d.charAt(x >>> 6 * (3 - b) & 63));
3511
3511
  var E = d.charAt(64);
3512
3512
  if (E)
@@ -3537,9 +3537,9 @@ function Lo() {
3537
3537
  for (var f = 0; f < p.length; f++)
3538
3538
  d[p.charCodeAt(f)] = f;
3539
3539
  }
3540
- var g = p.charAt(64);
3541
- if (g) {
3542
- var l = o.indexOf(g);
3540
+ var m = p.charAt(64);
3541
+ if (m) {
3542
+ var l = o.indexOf(m);
3543
3543
  l !== -1 && (h = l);
3544
3544
  }
3545
3545
  return c(o, h, d);
@@ -3550,7 +3550,7 @@ 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 g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, S = g | l;
3553
+ var m = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, S = m | l;
3554
3554
  p[d >>> 2] |= S << 24 - d % 4 * 8, d++;
3555
3555
  }
3556
3556
  return s.create(p, d);
@@ -3586,7 +3586,7 @@ function Ot() {
3586
3586
  l[x] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
3587
3587
  }
3588
3588
  var E = this._hash.words, _ = l[S + 0], y = l[S + 1], A = l[S + 2], R = l[S + 3], M = l[S + 4], C = l[S + 5], I = l[S + 6], P = l[S + 7], B = l[S + 8], $ = l[S + 9], q = l[S + 10], X = l[S + 11], ae = l[S + 12], Q = l[S + 13], te = l[S + 14], ee = l[S + 15], k = E[0], L = E[1], V = E[2], N = E[3];
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 = g(k, L, V, N, _, 6, u[48]), N = g(N, k, L, V, P, 10, u[49]), V = g(V, N, k, L, te, 15, u[50]), L = g(L, V, N, k, C, 21, u[51]), k = g(k, L, V, N, ae, 6, u[52]), N = g(N, k, L, V, R, 10, u[53]), V = g(V, N, k, L, q, 15, u[54]), L = g(L, V, N, k, y, 21, u[55]), k = g(k, L, V, N, B, 6, u[56]), N = g(N, k, L, V, ee, 10, u[57]), V = g(V, N, k, L, I, 15, u[58]), L = g(L, V, N, k, Q, 21, u[59]), k = g(k, L, V, N, M, 6, u[60]), N = g(N, k, L, V, X, 10, u[61]), V = g(V, N, k, L, A, 15, u[62]), L = g(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;
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
3592
  var l = this._data, S = l.words, v = this._nDataBytes * 8, x = l.sigBytes * 8;
@@ -3616,7 +3616,7 @@ function Ot() {
3616
3616
  var y = l + (S ^ v ^ x) + b + _;
3617
3617
  return (y << E | y >>> 32 - E) + S;
3618
3618
  }
3619
- function g(l, S, v, x, b, E, _) {
3619
+ function m(l, S, v, x, b, E, _) {
3620
3620
  var y = l + (v ^ (S | ~x)) + b + _;
3621
3621
  return (y << E | y >>> 32 - E) + S;
3622
3622
  }
@@ -3643,7 +3643,7 @@ function cn() {
3643
3643
  ]);
3644
3644
  },
3645
3645
  _doProcessBlock: function(h, p) {
3646
- for (var d = this._hash.words, f = d[0], g = d[1], l = d[2], S = d[3], v = d[4], x = 0; x < 80; x++) {
3646
+ for (var d = this._hash.words, f = d[0], m = d[1], l = d[2], S = d[3], v = d[4], x = 0; x < 80; x++) {
3647
3647
  if (x < 16)
3648
3648
  o[x] = h[p + x] | 0;
3649
3649
  else {
@@ -3651,9 +3651,9 @@ function cn() {
3651
3651
  o[x] = b << 1 | b >>> 31;
3652
3652
  }
3653
3653
  var E = (f << 5 | f >>> 27) + v + o[x];
3654
- x < 20 ? E += (g & l | ~g & S) + 1518500249 : x < 40 ? E += (g ^ l ^ S) + 1859775393 : x < 60 ? E += (g & l | g & S | l & S) - 1894007588 : E += (g ^ l ^ S) - 899497514, v = S, S = l, l = g << 30 | g >>> 2, g = f, f = E;
3654
+ x < 20 ? E += (m & l | ~m & S) + 1518500249 : x < 40 ? E += (m ^ l ^ S) + 1859775393 : x < 60 ? E += (m & l | m & S | l & S) - 1894007588 : E += (m ^ l ^ S) - 899497514, v = S, S = l, l = m << 30 | m >>> 2, m = f, f = E;
3655
3655
  }
3656
- d[0] = d[0] + f | 0, d[1] = d[1] + g | 0, d[2] = d[2] + l | 0, d[3] = d[3] + S | 0, d[4] = d[4] + v | 0;
3656
+ d[0] = d[0] + f | 0, d[1] = d[1] + m | 0, d[2] = d[2] + l | 0, d[3] = d[3] + S | 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;
@@ -3684,20 +3684,20 @@ function Jr() {
3684
3684
  return !1;
3685
3685
  return !0;
3686
3686
  }
3687
- function g(v) {
3687
+ function m(v) {
3688
3688
  return (v - (v | 0)) * 4294967296 | 0;
3689
3689
  }
3690
3690
  for (var l = 2, S = 0; S < 64; )
3691
- f(l) && (S < 8 && (u[S] = g(t.pow(l, 1 / 2))), h[S] = g(t.pow(l, 1 / 3)), S++), l++;
3691
+ f(l) && (S < 8 && (u[S] = m(t.pow(l, 1 / 2))), h[S] = m(t.pow(l, 1 / 3)), S++), 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
- _doProcessBlock: function(f, g) {
3697
+ _doProcessBlock: function(f, m) {
3698
3698
  for (var l = this._hash.words, S = l[0], v = l[1], x = 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
- p[R] = f[g + R] | 0;
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];
@@ -3708,8 +3708,8 @@ function Jr() {
3708
3708
  l[0] = l[0] + S | 0, l[1] = l[1] + v | 0, l[2] = l[2] + x | 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, g = f.words, l = this._nDataBytes * 8, S = f.sigBytes * 8;
3712
- return g[S >>> 5] |= 128 << 24 - S % 32, g[(S + 64 >>> 9 << 4) + 14] = t.floor(l / 4294967296), g[(S + 64 >>> 9 << 4) + 15] = l, f.sigBytes = g.length * 4, this._process(), this._hash;
3711
+ var f = this._data, m = f.words, l = this._nDataBytes * 8, S = f.sigBytes * 8;
3712
+ return m[S >>> 5] |= 128 << 24 - S % 32, m[(S + 64 >>> 9 << 4) + 14] = t.floor(l / 4294967296), m[(S + 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);
@@ -3845,8 +3845,8 @@ function un() {
3845
3845
  h(1816402316, 1246189591)
3846
3846
  ], d = [];
3847
3847
  (function() {
3848
- for (var g = 0; g < 80; g++)
3849
- d[g] = h();
3848
+ for (var m = 0; m < 80; m++)
3849
+ d[m] = h();
3850
3850
  })();
3851
3851
  var f = u.SHA512 = s.extend({
3852
3852
  _doReset: function() {
@@ -3861,11 +3861,11 @@ function un() {
3861
3861
  new c.init(1541459225, 327033209)
3862
3862
  ]);
3863
3863
  },
3864
- _doProcessBlock: function(g, l) {
3864
+ _doProcessBlock: function(m, l) {
3865
3865
  for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], E = S[3], _ = S[4], y = S[5], A = S[6], R = S[7], M = v.high, C = v.low, I = x.high, P = x.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
- tt = It.high = g[l + Be * 2] | 0, Re = It.low = g[l + Be * 2 + 1] | 0;
3868
+ tt = It.high = m[l + Be * 2] | 0, Re = It.low = m[l + Be * 2 + 1] | 0;
3869
3869
  else {
3870
3870
  var gt = d[Be - 15], it = gt.high, ct = gt.low, Ti = (it >>> 1 | ct << 31) ^ (it >>> 8 | ct << 24) ^ it >>> 7, ci = (ct >>> 1 | it << 31) ^ (ct >>> 8 | it << 24) ^ (ct >>> 7 | it << 25), ui = d[Be - 2], We = ui.high, mt = ui.low, hi = (We >>> 19 | mt << 13) ^ (We << 3 | mt >>> 29) ^ We >>> 6, Yt = (mt >>> 19 | We << 13) ^ (mt << 3 | We >>> 29) ^ (mt >>> 6 | We << 26), os = d[Be - 7], Dn = os.high, Tn = os.low, cs = d[Be - 16], Pn = cs.high, us = cs.low;
3871
3871
  Re = ci + Tn, tt = Ti + Dn + (Re >>> 0 < ci >>> 0 ? 1 : 0), Re = Re + Yt, tt = tt + hi + (Re >>> 0 < Yt >>> 0 ? 1 : 0), Re = Re + us, tt = tt + Pn + (Re >>> 0 < us >>> 0 ? 1 : 0), It.high = tt, It.low = Re;
@@ -3876,14 +3876,14 @@ function un() {
3876
3876
  C = v.low = C + j, v.high = M + J + (C >>> 0 < j >>> 0 ? 1 : 0), P = x.low = P + Z, x.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 g = this._data, l = g.words, S = this._nDataBytes * 8, v = g.sigBytes * 8;
3880
- l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(S / 4294967296), l[(v + 128 >>> 10 << 5) + 31] = S, g.sigBytes = l.length * 4, this._process();
3879
+ var m = this._data, l = m.words, S = this._nDataBytes * 8, v = m.sigBytes * 8;
3880
+ l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(S / 4294967296), l[(v + 128 >>> 10 << 5) + 31] = S, m.sigBytes = l.length * 4, this._process();
3881
3881
  var x = this._hash.toX32();
3882
3882
  return x;
3883
3883
  },
3884
3884
  clone: function() {
3885
- var g = s.clone.call(this);
3886
- return g._hash = this._hash.clone(), g;
3885
+ var m = s.clone.call(this);
3886
+ return m._hash = this._hash.clone(), m;
3887
3887
  },
3888
3888
  blockSize: 1024 / 32
3889
3889
  });
@@ -3950,10 +3950,10 @@ function Oo() {
3950
3950
  f[y] = u.create(A, R);
3951
3951
  }
3952
3952
  })();
3953
- var g = [];
3953
+ var m = [];
3954
3954
  (function() {
3955
3955
  for (var S = 0; S < 25; S++)
3956
- g[S] = u.create();
3956
+ m[S] = u.create();
3957
3957
  })();
3958
3958
  var l = h.SHA3 = c.extend({
3959
3959
  /**
@@ -3985,25 +3985,25 @@ function Oo() {
3985
3985
  var A = x[M + 5 * P];
3986
3986
  C ^= A.high, I ^= A.low;
3987
3987
  }
3988
- var B = g[M];
3988
+ var B = m[M];
3989
3989
  B.high = C, B.low = I;
3990
3990
  }
3991
3991
  for (var M = 0; M < 5; M++)
3992
- for (var $ = g[(M + 4) % 5], q = g[(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++) {
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
3993
  var A = x[M + 5 * P];
3994
3994
  A.high ^= C, A.low ^= I;
3995
3995
  }
3996
3996
  for (var Q = 1; Q < 25; Q++) {
3997
3997
  var C, I, A = x[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
- var L = g[d[Q]];
3999
+ var L = m[d[Q]];
4000
4000
  L.high = C, L.low = I;
4001
4001
  }
4002
- var V = g[0], N = x[0];
4002
+ var V = m[0], N = x[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 = x[Q], J = g[Q], j = g[(M + 1) % 5 + 5 * P], ce = g[(M + 2) % 5 + 5 * P];
4006
+ var Q = M + 5 * P, A = x[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
4009
  var A = x[0], Z = f[R];
@@ -4373,7 +4373,7 @@ function Uo() {
4373
4373
  13,
4374
4374
  11,
4375
4375
  11
4376
- ]), f = n.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), g = n.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), l = o.RIPEMD160 = c.extend({
4376
+ ]), f = n.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), m = n.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), l = o.RIPEMD160 = c.extend({
4377
4377
  _doReset: function() {
4378
4378
  this._hash = n.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
4379
4379
  },
@@ -4382,7 +4382,7 @@ function Uo() {
4382
4382
  var M = A + R, C = y[M];
4383
4383
  y[M] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
4384
4384
  }
4385
- var I = this._hash.words, P = f.words, B = g.words, $ = u.words, q = h.words, X = p.words, ae = d.words, Q, te, ee, k, L, V, N, J, j, ce;
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
4388
  Z = Q + y[A + $[R]] | 0, R < 16 ? Z += S(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += x(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 += x(N, J, j) + B[2] : R < 64 ? Z += v(N, J, j) + B[3] : Z += S(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;
@@ -4448,9 +4448,9 @@ 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(), g = this._iKey = h.clone(), l = f.words, S = g.words, v = 0; v < p; v++)
4451
+ for (var f = this._oKey = h.clone(), m = this._iKey = h.clone(), l = f.words, S = m.words, v = 0; v < p; v++)
4452
4452
  l[v] ^= 1549556828, S[v] ^= 909522486;
4453
- f.sigBytes = g.sigBytes = d, this.reset();
4453
+ f.sigBytes = m.sigBytes = d, this.reset();
4454
4454
  },
4455
4455
  /**
4456
4456
  * Resets this HMAC to its initial state.
@@ -4550,11 +4550,11 @@ function Ho() {
4550
4550
  * var key = kdf.compute(password, salt);
4551
4551
  */
4552
4552
  compute: function(p, d) {
4553
- for (var f = this.cfg, g = u.create(f.hasher, p), l = n.create(), S = n.create([1]), v = l.words, x = S.words, b = f.keySize, E = f.iterations; v.length < b; ) {
4554
- var _ = g.update(d).finalize(S);
4555
- g.reset();
4553
+ for (var f = this.cfg, m = u.create(f.hasher, p), l = n.create(), S = n.create([1]), v = l.words, x = S.words, b = f.keySize, E = f.iterations; v.length < b; ) {
4554
+ var _ = m.update(d).finalize(S);
4555
+ m.reset();
4556
4556
  for (var y = _.words, A = y.length, R = _, M = 1; M < E; M++) {
4557
- R = g.finalize(R), g.reset();
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
  }
@@ -4617,10 +4617,10 @@ 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, g = f.hasher.create(), l = n.create(), S = l.words, v = f.keySize, x = f.iterations; S.length < v; ) {
4621
- d && g.update(d), d = g.update(h).finalize(p), g.reset();
4620
+ for (var d, f = this.cfg, m = f.hasher.create(), l = n.create(), S = l.words, v = f.keySize, x = f.iterations; S.length < v; ) {
4621
+ d && m.update(d), d = m.update(h).finalize(p), m.reset();
4622
4622
  for (var b = 1; b < x; b++)
4623
- d = g.finalize(d), g.reset();
4623
+ d = m.finalize(d), m.reset();
4624
4624
  l.concat(d);
4625
4625
  }
4626
4626
  return l.sigBytes = v * 4, l;
@@ -4781,7 +4781,7 @@ function ye() {
4781
4781
  },
4782
4782
  blockSize: 1
4783
4783
  });
4784
- var g = i.mode = {}, l = s.BlockCipherMode = n.extend({
4784
+ var m = i.mode = {}, l = s.BlockCipherMode = n.extend({
4785
4785
  /**
4786
4786
  * Creates this mode for encryption.
4787
4787
  *
@@ -4825,7 +4825,7 @@ function ye() {
4825
4825
  init: function(C, I) {
4826
4826
  this._cipher = C, this._iv = I;
4827
4827
  }
4828
- }), S = g.CBC = function() {
4828
+ }), S = m.CBC = function() {
4829
4829
  var C = l.extend();
4830
4830
  C.Encryptor = C.extend({
4831
4831
  /**
@@ -5253,8 +5253,8 @@ function Wo() {
5253
5253
  p && (d = this._counter = p.slice(0), this._iv = void 0), s(d);
5254
5254
  var f = d.slice(0);
5255
5255
  u.encryptBlock(f, 0);
5256
- for (var g = 0; g < h; g++)
5257
- c[o + g] ^= f[g];
5256
+ for (var m = 0; m < h; m++)
5257
+ c[o + m] ^= f[m];
5258
5258
  }
5259
5259
  });
5260
5260
  return t.Decryptor = n, t;
@@ -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 = [], g = [], l = [], S = [];
5452
+ var t = e, i = t.lib, s = i.BlockCipher, n = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], S = [];
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,7 +5459,7 @@ 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, g[A] = I << 16 | I >>> 16, l[A] = I << 8 | I >>> 24, S[A] = I, _ ? (_ = R ^ b[b[b[C ^ R]]], y ^= b[b[y]]) : _ = y = 1;
5462
+ f[A] = I << 24 | I >>> 8, m[A] = I << 16 | I >>> 16, l[A] = I << 8 | I >>> 24, S[A] = I, _ ? (_ = R ^ b[b[b[C ^ R]]], y ^= b[b[y]]) : _ = y = 1;
5463
5463
  }
5464
5464
  })();
5465
5465
  var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], x = n.AES = s.extend({
@@ -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]] ^ g[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^ S[c[b & 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]] ^ S[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, g, l, S, o);
5486
+ b[E + 1] = b[E + 3], b[E + 3] = _, this._doCryptBlock(b, E, this._invKeySchedule, f, m, l, S, o);
5487
5487
  var _ = b[E + 1];
5488
5488
  b[E + 1] = b[E + 3], b[E + 3] = _;
5489
5489
  },
@@ -6177,20 +6177,20 @@ function e0() {
6177
6177
  this._doCryptBlock(v, x, this._invSubKeys);
6178
6178
  },
6179
6179
  _doCryptBlock: function(v, x, b) {
6180
- this._lBlock = v[x], this._rBlock = v[x + 1], g.call(this, 4, 252645135), g.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), g.call(this, 1, 1431655765);
6180
+ this._lBlock = v[x], this._rBlock = v[x + 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, g.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), g.call(this, 16, 65535), g.call(this, 4, 252645135), v[x] = this._lBlock, v[x + 1] = this._rBlock;
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[x] = this._lBlock, v[x + 1] = this._rBlock;
6188
6188
  },
6189
6189
  keySize: 64 / 32,
6190
6190
  ivSize: 64 / 32,
6191
6191
  blockSize: 64 / 32
6192
6192
  });
6193
- function g(v, x) {
6193
+ function m(v, x) {
6194
6194
  var b = (this._lBlock >>> v ^ this._rBlock) & x;
6195
6195
  this._rBlock ^= b, this._lBlock ^= b << v;
6196
6196
  }
@@ -6231,13 +6231,13 @@ function t0() {
6231
6231
  return function() {
6232
6232
  var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = n.RC4 = s.extend({
6233
6233
  _doReset: function() {
6234
- for (var h = this._key, p = h.words, d = h.sigBytes, f = this._S = [], g = 0; g < 256; g++)
6235
- f[g] = g;
6236
- for (var g = 0, l = 0; g < 256; g++) {
6237
- var S = g % d, v = p[S >>> 2] >>> 24 - S % 4 * 8 & 255;
6238
- l = (l + f[g] + v) % 256;
6239
- var x = f[g];
6240
- f[g] = f[l], f[l] = x;
6234
+ for (var h = this._key, p = h.words, d = h.sigBytes, f = this._S = [], m = 0; m < 256; m++)
6235
+ f[m] = m;
6236
+ for (var m = 0, l = 0; m < 256; m++) {
6237
+ var S = m % d, v = p[S >>> 2] >>> 24 - S % 4 * 8 & 255;
6238
+ l = (l + f[m] + v) % 256;
6239
+ var x = f[m];
6240
+ f[m] = f[l], f[l] = x;
6241
6241
  }
6242
6242
  this._i = this._j = 0;
6243
6243
  },
@@ -6248,10 +6248,10 @@ function t0() {
6248
6248
  ivSize: 0
6249
6249
  });
6250
6250
  function o() {
6251
- for (var h = this._S, p = this._i, d = this._j, f = 0, g = 0; g < 4; g++) {
6251
+ for (var h = this._S, p = this._i, d = this._j, f = 0, m = 0; m < 4; m++) {
6252
6252
  p = (p + 1) % 256, d = (d + h[p]) % 256;
6253
6253
  var l = h[p];
6254
- h[p] = h[d], h[d] = l, f |= h[(h[p] + h[d]) % 256] << 24 - g * 8;
6254
+ h[p] = h[d], h[d] = l, f |= h[(h[p] + h[d]) % 256] << 24 - m * 8;
6255
6255
  }
6256
6256
  return this._i = p, this._j = d, f;
6257
6257
  }
@@ -6285,8 +6285,8 @@ function i0() {
6285
6285
  return function() {
6286
6286
  var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = [], o = [], u = [], h = n.Rabbit = s.extend({
6287
6287
  _doReset: function() {
6288
- for (var d = this._key.words, f = this.cfg.iv, g = 0; g < 4; g++)
6289
- d[g] = (d[g] << 8 | d[g] >>> 24) & 16711935 | (d[g] << 24 | d[g] >>> 8) & 4278255360;
6288
+ for (var d = this._key.words, f = this.cfg.iv, m = 0; m < 4; m++)
6289
+ d[m] = (d[m] << 8 | d[m] >>> 24) & 16711935 | (d[m] << 24 | d[m] >>> 8) & 4278255360;
6290
6290
  var l = this._X = [
6291
6291
  d[0],
6292
6292
  d[3] << 16 | d[2] >>> 16,
@@ -6307,20 +6307,20 @@ function i0() {
6307
6307
  d[3] & 4294901760 | d[0] & 65535
6308
6308
  ];
6309
6309
  this._b = 0;
6310
- for (var g = 0; g < 4; g++)
6310
+ for (var m = 0; m < 4; m++)
6311
6311
  p.call(this);
6312
- for (var g = 0; g < 8; g++)
6313
- S[g] ^= l[g + 4 & 7];
6312
+ for (var m = 0; m < 8; m++)
6313
+ S[m] ^= l[m + 4 & 7];
6314
6314
  if (f) {
6315
6315
  var v = f.words, x = v[0], b = v[1], E = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, _ = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, y = E >>> 16 | _ & 4294901760, A = _ << 16 | E & 65535;
6316
6316
  S[0] ^= E, S[1] ^= y, S[2] ^= _, S[3] ^= A, S[4] ^= E, S[5] ^= y, S[6] ^= _, S[7] ^= A;
6317
- for (var g = 0; g < 4; g++)
6317
+ for (var m = 0; m < 4; m++)
6318
6318
  p.call(this);
6319
6319
  }
6320
6320
  },
6321
6321
  _doProcessBlock: function(d, f) {
6322
- var g = this._X;
6323
- p.call(this), c[0] = g[0] ^ g[5] >>> 16 ^ g[3] << 16, c[1] = g[2] ^ g[7] >>> 16 ^ g[5] << 16, c[2] = g[4] ^ g[1] >>> 16 ^ g[7] << 16, c[3] = g[6] ^ g[3] >>> 16 ^ g[1] << 16;
6322
+ var m = this._X;
6323
+ p.call(this), c[0] = m[0] ^ m[5] >>> 16 ^ m[3] << 16, c[1] = m[2] ^ m[7] >>> 16 ^ m[5] << 16, c[2] = m[4] ^ m[1] >>> 16 ^ m[7] << 16, c[3] = m[6] ^ m[3] >>> 16 ^ m[1] << 16;
6324
6324
  for (var l = 0; l < 4; l++)
6325
6325
  c[l] = (c[l] << 8 | c[l] >>> 24) & 16711935 | (c[l] << 24 | c[l] >>> 8) & 4278255360, d[f + l] ^= c[l];
6326
6326
  },
@@ -6328,12 +6328,12 @@ function i0() {
6328
6328
  ivSize: 64 / 32
6329
6329
  });
6330
6330
  function p() {
6331
- for (var d = this._X, f = this._C, g = 0; g < 8; g++)
6332
- o[g] = f[g];
6331
+ for (var d = this._X, f = this._C, m = 0; m < 8; m++)
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
- for (var g = 0; g < 8; g++) {
6335
- var l = d[g] + f[g], S = l & 65535, v = l >>> 16, x = ((S * S >>> 17) + S * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
6336
- u[g] = x ^ b;
6334
+ for (var m = 0; m < 8; m++) {
6335
+ var l = d[m] + f[m], S = l & 65535, v = l >>> 16, x = ((S * S >>> 17) + S * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
6336
+ u[m] = x ^ 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
  }
@@ -6351,7 +6351,7 @@ function r0() {
6351
6351
  return function() {
6352
6352
  var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = [], o = [], u = [], h = n.RabbitLegacy = s.extend({
6353
6353
  _doReset: function() {
6354
- var d = this._key.words, f = this.cfg.iv, g = this._X = [
6354
+ var d = this._key.words, f = this.cfg.iv, m = this._X = [
6355
6355
  d[0],
6356
6356
  d[3] << 16 | d[2] >>> 16,
6357
6357
  d[1],
@@ -6374,7 +6374,7 @@ function r0() {
6374
6374
  for (var S = 0; S < 4; S++)
6375
6375
  p.call(this);
6376
6376
  for (var S = 0; S < 8; S++)
6377
- l[S] ^= g[S + 4 & 7];
6377
+ l[S] ^= m[S + 4 & 7];
6378
6378
  if (f) {
6379
6379
  var v = f.words, x = v[0], b = v[1], E = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 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;
@@ -6383,8 +6383,8 @@ function r0() {
6383
6383
  }
6384
6384
  },
6385
6385
  _doProcessBlock: function(d, f) {
6386
- var g = this._X;
6387
- p.call(this), c[0] = g[0] ^ g[5] >>> 16 ^ g[3] << 16, c[1] = g[2] ^ g[7] >>> 16 ^ g[5] << 16, c[2] = g[4] ^ g[1] >>> 16 ^ g[7] << 16, c[3] = g[6] ^ g[3] >>> 16 ^ g[1] << 16;
6386
+ var m = this._X;
6387
+ p.call(this), c[0] = m[0] ^ m[5] >>> 16 ^ m[3] << 16, c[1] = m[2] ^ m[7] >>> 16 ^ m[5] << 16, c[2] = m[4] ^ m[1] >>> 16 ^ m[7] << 16, c[3] = m[6] ^ m[3] >>> 16 ^ m[1] << 16;
6388
6388
  for (var l = 0; l < 4; l++)
6389
6389
  c[l] = (c[l] << 8 | c[l] >>> 24) & 16711935 | (c[l] << 24 | c[l] >>> 8) & 4278255360, d[f + l] ^= c[l];
6390
6390
  },
@@ -6392,12 +6392,12 @@ function r0() {
6392
6392
  ivSize: 64 / 32
6393
6393
  });
6394
6394
  function p() {
6395
- for (var d = this._X, f = this._C, g = 0; g < 8; g++)
6396
- o[g] = f[g];
6395
+ for (var d = this._X, f = this._C, m = 0; m < 8; m++)
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
- for (var g = 0; g < 8; g++) {
6399
- var l = d[g] + f[g], S = l & 65535, v = l >>> 16, x = ((S * S >>> 17) + S * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
6400
- u[g] = x ^ b;
6398
+ for (var m = 0; m < 8; m++) {
6399
+ var l = d[m] + f[m], S = l & 65535, v = l >>> 16, x = ((S * S >>> 17) + S * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
6400
+ u[m] = x ^ 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
  }
@@ -7487,7 +7487,7 @@ function s0() {
7487
7487
  b = b ^ S.pbox[y], E = p(S, b) ^ E, _ = b, b = E, E = _;
7488
7488
  return _ = b, b = E, E = _, E = E ^ S.pbox[1], b = b ^ S.pbox[0], { left: b, right: E };
7489
7489
  }
7490
- function g(S, v, x) {
7490
+ function m(S, v, x) {
7491
7491
  for (let A = 0; A < 4; A++) {
7492
7492
  S.sbox[A] = [];
7493
7493
  for (let R = 0; R < 256; R++)
@@ -7508,7 +7508,7 @@ function s0() {
7508
7508
  _doReset: function() {
7509
7509
  if (this._keyPriorReset !== this._key) {
7510
7510
  var S = this._keyPriorReset = this._key, v = S.words, x = S.sigBytes / 4;
7511
- g(h, v, x);
7511
+ m(h, v, x);
7512
7512
  }
7513
7513
  },
7514
7514
  encryptBlock: function(S, v) {
@@ -7548,17 +7548,17 @@ function o0(r, a, e, t, i, s, n, c) {
7548
7548
  ` + ((o = s.get("Content-Type")) != null ? o : "") + `
7549
7549
  ` + c + `
7550
7550
  `;
7551
- const h = (g, l) => g[0].localeCompare(l[0]), p = (g) => g[0].startsWith("x-log-") || g[0].startsWith("x-acs-");
7551
+ const h = (m, l) => m[0].localeCompare(l[0]), p = (m) => m[0].startsWith("x-log-") || m[0].startsWith("x-acs-");
7552
7552
  try {
7553
- const g = [...s.entries()].filter(p).sort(h).map((l) => l[0] + ":" + l[1] + `
7553
+ const m = [...s.entries()].filter(p).sort(h).map((l) => l[0] + ":" + l[1] + `
7554
7554
  `).join("");
7555
- u += g;
7556
- } catch (g) {
7555
+ u += m;
7556
+ } catch (m) {
7557
7557
  }
7558
7558
  u += a, i.size > 0 && (u += "?");
7559
7559
  try {
7560
- u += [...i.entries()].sort(h).map((g) => g[0] + "=" + g[1]).join("&");
7561
- } catch (g) {
7560
+ u += [...i.entries()].sort(h).map((m) => m[0] + "=" + m[1]).join("&");
7561
+ } catch (m) {
7562
7562
  }
7563
7563
  const d = si.HmacSHA1(u, t).toString(si.enc.Base64), f = "LOG " + e + ":" + d;
7564
7564
  return s.set("Authorization", f), s.set("x-log-date", c), f;
@@ -7667,7 +7667,7 @@ function Yr(r, a, e, t) {
7667
7667
  return r[s() + "Seconds"]();
7668
7668
  }, f = function() {
7669
7669
  return r[s() + "Milliseconds"]();
7670
- }, g = function() {
7670
+ }, m = function() {
7671
7671
  return e ? 0 : r.getTimezoneOffset();
7672
7672
  }, l = function() {
7673
7673
  return p0(r);
@@ -7728,9 +7728,9 @@ function Yr(r, a, e, t) {
7728
7728
  }, Z: function() {
7729
7729
  return t ? "GMT" : e ? "UTC" : m0(r);
7730
7730
  }, o: function() {
7731
- return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60) * 100 + Math.abs(g()) % 60, 4);
7731
+ return (m() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(m()) / 60) * 100 + Math.abs(m()) % 60, 4);
7732
7732
  }, p: function() {
7733
- return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60), 2) + ":" + Ke(Math.floor(Math.abs(g()) % 60), 2);
7733
+ return (m() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(m()) / 60), 2) + ":" + Ke(Math.floor(Math.abs(m()) % 60), 2);
7734
7734
  }, S: function() {
7735
7735
  return ["th", "st", "nd", "rd"][n() % 10 > 3 ? 0 : (n() % 100 - n() % 10 != 10) * n() % 10];
7736
7736
  }, W: function() {
@@ -7756,7 +7756,7 @@ var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7756
7756
  return u[s + "Date"]();
7757
7757
  }, f = function() {
7758
7758
  return u[s + "Month"]();
7759
- }, g = function() {
7759
+ }, m = function() {
7760
7760
  return u[s + "FullYear"]();
7761
7761
  }, l = function() {
7762
7762
  return h[s + "Date"]();
@@ -7771,7 +7771,7 @@ var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7771
7771
  }, E = function() {
7772
7772
  return p[s + "FullYear"]();
7773
7773
  };
7774
- return g() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && S() === t && l() === i ? o ? "Ysd" : "Yesterday" : E() === e && b() === t && x() === i ? o ? "Tmw" : "Tomorrow" : n;
7774
+ return m() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && S() === t && l() === i ? o ? "Ysd" : "Yesterday" : E() === e && b() === t && x() === 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);
@@ -8024,21 +8024,21 @@ function La() {
8024
8024
  var dn = /* @__PURE__ */ ((r) => (r[r.DEBUG = 0] = "DEBUG", r[r.INFO = 1] = "INFO", r[r.API = 2] = "API", r[r.WARNING = 3] = "WARNING", r[r.ERROR = 4] = "ERROR", r[r.NONE = 5] = "NONE", r))(dn || {});
8025
8025
  class R0 {
8026
8026
  constructor() {
8027
- m(this, "tracker");
8028
- m(this, "slsPlugin");
8029
- m(this, "stsData");
8030
- m(this, "stsExpiration", Date.now());
8031
- m(this, "clientId", rt());
8032
- m(this, "bSesid", rt());
8033
- m(this, "logLevel", 3);
8034
- m(this, "appId", "");
8035
- m(this, "sessionId", "");
8036
- m(this, "logCache", []);
8037
- m(this, "updateTaskTimer");
8038
- m(this, "endReported", !0);
8027
+ g(this, "tracker");
8028
+ g(this, "slsPlugin");
8029
+ g(this, "stsData");
8030
+ g(this, "stsExpiration", Date.now());
8031
+ g(this, "clientId", rt());
8032
+ g(this, "bSesid", rt());
8033
+ g(this, "logLevel", 3);
8034
+ g(this, "appId", "");
8035
+ g(this, "sessionId", "");
8036
+ g(this, "logCache", []);
8037
+ g(this, "updateTaskTimer");
8038
+ g(this, "endReported", !0);
8039
8039
  // 是否已上传结束事件,避免重复
8040
- m(this, "logSequence", 0);
8041
- m(this, "sendLogBeforeUnload", (a) => w(this, null, function* () {
8040
+ g(this, "logSequence", 0);
8041
+ g(this, "sendLogBeforeUnload", (a) => w(this, null, function* () {
8042
8042
  if (!this.slsPlugin)
8043
8043
  return;
8044
8044
  this.logSequence += 1, a.unshift(
@@ -8057,28 +8057,28 @@ class R0 {
8057
8057
  body: i
8058
8058
  });
8059
8059
  }));
8060
- m(this, "logMethod", (a, e = console.log) => (...t) => {
8060
+ g(this, "logMethod", (a, e = console.log) => (...t) => {
8061
8061
  let i = Tr();
8062
8062
  this.logLevel <= a && e(i, ...t);
8063
8063
  let s = He.paramArrayToString(t);
8064
8064
  a > 0 && this.addLog(s);
8065
8065
  });
8066
8066
  // debug level message
8067
- m(this, "d", this.logMethod(0, console.debug));
8068
- m(this, "i", this.logMethod(
8067
+ g(this, "d", this.logMethod(0, console.debug));
8068
+ g(this, "i", this.logMethod(
8069
8069
  1
8070
8070
  /* INFO */
8071
8071
  ));
8072
- m(this, "w", this.logMethod(3, console.warn));
8073
- m(this, "e", this.logMethod(4, (...a) => {
8072
+ g(this, "w", this.logMethod(3, console.warn));
8073
+ g(this, "e", this.logMethod(4, (...a) => {
8074
8074
  const [e, ...t] = a;
8075
8075
  console.error(e, "<error>", t);
8076
8076
  }));
8077
- m(this, "ev", this.logMethod(
8077
+ g(this, "ev", this.logMethod(
8078
8078
  2
8079
8079
  /* API */
8080
8080
  ));
8081
- m(this, "a", this.logMethod(2, (...a) => {
8081
+ g(this, "a", this.logMethod(2, (...a) => {
8082
8082
  const [e, ...t] = a;
8083
8083
  if (t.length > 2) {
8084
8084
  const i = `${t[1]}`;
@@ -8086,11 +8086,11 @@ class R0 {
8086
8086
  }
8087
8087
  console.log(e, ...t);
8088
8088
  }));
8089
- m(this, "ar", this.logMethod(2, (...a) => {
8089
+ g(this, "ar", this.logMethod(2, (...a) => {
8090
8090
  const [e, ...t] = a;
8091
8091
  console.log(e, ...t), t.length > 2 && `${t[1]}`.startsWith("__g__") && console.groupEnd();
8092
8092
  }));
8093
- m(this, "ae", this.logMethod(2, (...a) => {
8093
+ g(this, "ae", this.logMethod(2, (...a) => {
8094
8094
  const [e, ...t] = a;
8095
8095
  console.error(e, "<error>", ...t), t.length > 2 && `${t[1]}`.startsWith("__g__") && console.groupEnd();
8096
8096
  }));
@@ -8294,7 +8294,7 @@ class O {
8294
8294
  this.getLogger().e("[ERR]", ...a);
8295
8295
  }
8296
8296
  }
8297
- m(O, "logger");
8297
+ g(O, "logger");
8298
8298
  const I0 = (r) => w(void 0, null, function* () {
8299
8299
  const a = new le.SupportUtil();
8300
8300
  let e = {
@@ -8323,25 +8323,25 @@ class Jt extends De {
8323
8323
  constructor(e, t = be.AliRtcSdkStreamTypeCapture, i = 1) {
8324
8324
  super();
8325
8325
  // 扩展名
8326
- m(this, "name");
8326
+ g(this, "name");
8327
8327
  // 插件配置
8328
- m(this, "options");
8328
+ g(this, "options");
8329
8329
  // 扩展类型,当前均为前置处理
8330
- m(this, "type", 0);
8330
+ g(this, "type", 0);
8331
8331
  // 流类型,主流/辅流
8332
- m(this, "streamType");
8332
+ g(this, "streamType");
8333
8333
  // 扩展处理的流类型
8334
- m(this, "trackType");
8334
+ g(this, "trackType");
8335
8335
  // 层级,越小越先执行
8336
- m(this, "zIndex", 1);
8336
+ g(this, "zIndex", 1);
8337
8337
  // 是否启用
8338
- m(this, "_isEnable", !0);
8339
- m(this, "lastInputAudioTrack");
8340
- m(this, "lastOutputAudioTrack");
8341
- m(this, "lastInputVideoTrack");
8342
- m(this, "lastOutputVideoTrack");
8338
+ g(this, "_isEnable", !0);
8339
+ g(this, "lastInputAudioTrack");
8340
+ g(this, "lastOutputAudioTrack");
8341
+ g(this, "lastInputVideoTrack");
8342
+ g(this, "lastOutputVideoTrack");
8343
8343
  // 是否被清空,用于移除 Plugin 后重新添加强制执行
8344
- m(this, "_hasCleared", !0);
8344
+ g(this, "_hasCleared", !0);
8345
8345
  this.name = e, this.streamType = t, this.trackType = i, this.options = this.initOptions;
8346
8346
  }
8347
8347
  get initOptions() {
@@ -8422,20 +8422,20 @@ const P0 = {
8422
8422
  class xn {
8423
8423
  //[1,2]
8424
8424
  constructor(a, e, t, i, s, n, c, o) {
8425
- m(this, "videoWidth");
8425
+ g(this, "videoWidth");
8426
8426
  //(0-1920]
8427
- m(this, "videoHeight");
8427
+ g(this, "videoHeight");
8428
8428
  //(0-1920]
8429
- m(this, "videoFramerate", 20);
8429
+ g(this, "videoFramerate", 20);
8430
8430
  //[1,60]
8431
- m(this, "videoBitrate", 2e3);
8431
+ g(this, "videoBitrate", 2e3);
8432
8432
  //[1kbps,10000kbps]
8433
- m(this, "videoGop", 30);
8433
+ g(this, "videoGop", 30);
8434
8434
  //[1,60]
8435
- m(this, "audioSamplerate", Qr.LiveTranscoding_HZ_44100);
8436
- m(this, "audioBitrate", 500);
8435
+ g(this, "audioSamplerate", Qr.LiveTranscoding_HZ_44100);
8436
+ g(this, "audioBitrate", 500);
8437
8437
  //[8kbps,500kbps]
8438
- m(this, "audioChannels", 1);
8438
+ g(this, "audioChannels", 1);
8439
8439
  this.videoWidth = a, this.videoHeight = e, t && (this.videoFramerate = t), i && (this.videoBitrate = i), s && (this.videoGop = s), n && (this.audioSamplerate = n), c && (this.audioBitrate = c), o && (this.audioChannels = o);
8440
8440
  }
8441
8441
  }
@@ -8448,11 +8448,11 @@ const ts = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Ye =
8448
8448
  class Mr {
8449
8449
  constructor(a, e, t) {
8450
8450
  /*! 旁路模式 */
8451
- m(this, "mixMode", vi.LiveTranscodingSingle);
8451
+ g(this, "mixMode", vi.LiveTranscodingSingle);
8452
8452
  /*! 路模式单路参数 */
8453
- m(this, "singleParam");
8453
+ g(this, "singleParam");
8454
8454
  /*! 旁路模式混流参数 */
8455
- m(this, "mixParam");
8455
+ g(this, "mixParam");
8456
8456
  a && (this.mixMode = a), e && (this.singleParam = e), t && (this.mixParam = t);
8457
8457
  }
8458
8458
  toJson(a, e, t, i, s) {
@@ -8478,15 +8478,15 @@ class Mr {
8478
8478
  let u = o.videoWidth, h = o.videoHeight;
8479
8479
  const p = {};
8480
8480
  Object.keys(o).forEach((f) => {
8481
- const g = o[f];
8482
- g > 0 && (p[f.toLowerCase()] = g);
8481
+ const m = o[f];
8482
+ m > 0 && (p[f.toLowerCase()] = m);
8483
8483
  }), p.lowbitratehighquality = 0, n.encodeparam = p, n.backgrounds = c.backgrounds.map((f) => f.toJson(u, h)), n.watermarks = c.watermarks.map((f) => f.toJson(u, h)), n.clockwidgets = c.clockWidgets.map((f) => f.toJson(u, h));
8484
8484
  const d = c.users.map((f) => f.userId);
8485
8485
  n.subspecusers = [...new Set(d)], n.layouts = [
8486
8486
  {
8487
8487
  audiomixcount: c.users.length,
8488
8488
  panes: c.users.map(
8489
- (f, g) => f.toJson(g, u, h, c.mediaProcessMode)
8489
+ (f, m) => f.toJson(m, u, h, c.mediaProcessMode)
8490
8490
  )
8491
8491
  }
8492
8492
  ], n.layoutids = ["0"], n.cropmode = c.cropMode, n.backgroundcolor = ts(c.backgroundColor), n.taskmode = c.mediaProcessMode;
@@ -8500,23 +8500,23 @@ var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}),
8500
8500
  const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8501
8501
  constructor(e) {
8502
8502
  super();
8503
- m(this, "ws");
8503
+ g(this, "ws");
8504
8504
  // websocket对象
8505
- m(this, "socketStatus", 0);
8505
+ g(this, "socketStatus", 0);
8506
8506
  // websocket当前的连接状态
8507
- m(this, "wsUrl", "");
8507
+ g(this, "wsUrl", "");
8508
8508
  // 建立连接时候使用的url
8509
- m(this, "lastConnectStartTime", 0);
8509
+ g(this, "lastConnectStartTime", 0);
8510
8510
  // 上一次开始连接的时间
8511
- m(this, "maxConnectRetryCount", Va);
8512
- m(this, "connectRetryCount", 0);
8511
+ g(this, "maxConnectRetryCount", Va);
8512
+ g(this, "connectRetryCount", 0);
8513
8513
  // 尝试重连了多少次
8514
- m(this, "gotErr", !1);
8515
- m(this, "closedByInvoke", !0);
8514
+ g(this, "gotErr", !1);
8515
+ g(this, "closedByInvoke", !0);
8516
8516
  // 是否调用 close() 关闭的
8517
- m(this, "isReconnecting", !1);
8518
- m(this, "networkAvailableChecked", !0);
8519
- m(this, "reconnectTimeoutId", 0);
8517
+ g(this, "isReconnecting", !1);
8518
+ g(this, "networkAvailableChecked", !0);
8519
+ g(this, "reconnectTimeoutId", 0);
8520
8520
  this.maxConnectRetryCount = e != null ? e : Va, this.onOpen = this.onOpen.bind(this), this.onMessage = this.onMessage.bind(this), this.onError = this.onError.bind(this), this.onClose = this.onClose.bind(this);
8521
8521
  }
8522
8522
  get connectUrl() {
@@ -8613,14 +8613,14 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8613
8613
  /**
8614
8614
  * @ignore
8615
8615
  */
8616
- m(Wt, "logName", "Socket");
8616
+ g(Wt, "logName", "Socket");
8617
8617
  let Lr = Wt;
8618
8618
  var ve = /* @__PURE__ */ ((r) => (r.KEEPALIVE = "keepalive", r.JOINCHANNEL = "joinchannel", r.NOTIFYJOIN = "notifyjoin", r.NOTIFYSTATUS = "notifystatus", r.STATUSREPORT = "statusreport", r.LEAVECHANNEL = "leavechannel", r.NOTIFYLEAVE = "notifyleave", r.NOTIFYPUBLISH = "notifypublish", r.BYE = "bye", r.RECONNECT = "reconnect", r.PUBLISH = "publish", r.REFRESHURL = "refreshurl", r.UNSUBSCRIBE = "unsubscribe", r.ROLEUPDATE = "roleupdate", r))(ve || {});
8619
8619
  class k0 {
8620
8620
  constructor(a, e) {
8621
- m(this, "authInfo");
8622
- m(this, "userName");
8623
- m(this, "seqIndex", 0);
8621
+ g(this, "authInfo");
8622
+ g(this, "userName");
8623
+ g(this, "seqIndex", 0);
8624
8624
  this.authInfo = a, this.userName = e;
8625
8625
  }
8626
8626
  get roleAuth() {
@@ -8746,8 +8746,8 @@ var U = /* @__PURE__ */ ((r) => (r[r.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_
8746
8746
  class F extends Error {
8747
8747
  constructor(e, t, i) {
8748
8748
  super(t);
8749
- m(this, "_code");
8750
- m(this, "_extra");
8749
+ g(this, "_code");
8750
+ g(this, "_extra");
8751
8751
  this._code = e, this._extra = i;
8752
8752
  }
8753
8753
  static fromRtsError(e) {
@@ -8773,25 +8773,25 @@ const B0 = 3e4, qe = class qe extends De {
8773
8773
  // 发送重连信令时,房间信令凭这些信息找回 session
8774
8774
  constructor(e, t, i, s, n, c) {
8775
8775
  super();
8776
- m(this, "authInfo");
8776
+ g(this, "authInfo");
8777
8777
  // 登陆信息AliRtcAuthInfo
8778
- m(this, "userName");
8779
- m(this, "channelProfile");
8780
- m(this, "clientRole");
8781
- m(this, "slsReporter");
8782
- m(this, "wsClient");
8778
+ g(this, "userName");
8779
+ g(this, "channelProfile");
8780
+ g(this, "clientRole");
8781
+ g(this, "slsReporter");
8782
+ g(this, "wsClient");
8783
8783
  // websocket类
8784
- m(this, "packageCreater");
8784
+ g(this, "packageCreater");
8785
8785
  // 负责生成和解析业务信令数据包
8786
- m(this, "keepAliveTimer", 0);
8786
+ g(this, "keepAliveTimer", 0);
8787
8787
  // 心跳包计时器
8788
- m(this, "packageCache", /* @__PURE__ */ new Map());
8788
+ g(this, "packageCache", /* @__PURE__ */ new Map());
8789
8789
  // 已经发送的消息缓存队列,没有回复则需要触发消息重发
8790
- m(this, "isFirstConnect", !0);
8790
+ g(this, "isFirstConnect", !0);
8791
8791
  // 是否是首次连接
8792
- m(this, "aliveChecker", 0);
8792
+ g(this, "aliveChecker", 0);
8793
8793
  // 心跳检查定时器
8794
- m(this, "reconnectData");
8794
+ g(this, "reconnectData");
8795
8795
  this.authInfo = e, this.userName = t, this.packageCreater = new k0(e, t), this.channelProfile = i, this.clientRole = s, this.slsReporter = n, this.wsClient = new Lr(c), this.wsClient.on("onOpen", this.onOpen.bind(this)), this.wsClient.on("onMessage", this.onMessage.bind(this)), this.wsClient.on("onError", this.onError.bind(this)), this.wsClient.on("onClose", this.onClose.bind(this)), this.wsClient.on("onConnectFail", this.onConnectFail.bind(this)), this.wsClient.on("onAuthInvalid", this.onAuthInvalid.bind(this)), this.wsClient.on("onNetworkError", this.onNetworkError.bind(this)), this.wsClient.on("onReconnectStart", this.onReconnectStart.bind(this)), this.wsClient.on("onReconnectFail", this.onReconnectFail.bind(this));
8796
8796
  }
8797
8797
  get retryCount() {
@@ -9126,7 +9126,7 @@ const B0 = 3e4, qe = class qe extends De {
9126
9126
  this.stopKeepAlive(), this.emit("onBye", e.reason, e.description);
9127
9127
  }
9128
9128
  };
9129
- m(qe, "logName", "RSMessageCenter");
9129
+ g(qe, "logName", "RSMessageCenter");
9130
9130
  let Vr = qe;
9131
9131
  const D = (r, a) => (e, t, i) => {
9132
9132
  const s = i.value;
@@ -9144,11 +9144,11 @@ const D = (r, a) => (e, t, i) => {
9144
9144
  return Promise.resolve(h).then((d) => d).catch((d) => d).then((d) => {
9145
9145
  var S;
9146
9146
  let f = "";
9147
- const g = d instanceof Error, l = g && ((S = e.constructor) == null ? void 0 : S.logError);
9148
- if (!(!a && !g)) {
9147
+ const m = d instanceof Error, l = m && ((S = e.constructor) == null ? void 0 : S.logError);
9148
+ if (!(!a && !m)) {
9149
9149
  if (l)
9150
9150
  f = d;
9151
- else if (g)
9151
+ else if (m)
9152
9152
  f = d.message || "";
9153
9153
  else if (a)
9154
9154
  if (d === void 0)
@@ -9163,7 +9163,7 @@ const D = (r, a) => (e, t, i) => {
9163
9163
  O.interfaceResult(
9164
9164
  c,
9165
9165
  t,
9166
- !(g && l),
9166
+ !(m && l),
9167
9167
  `${Date.now() - o}ms`,
9168
9168
  f
9169
9169
  );
@@ -9179,15 +9179,15 @@ var N0 = Object.defineProperty, M0 = Object.getOwnPropertyDescriptor, rs = (r, a
9179
9179
  const Ri = (Ne = class extends De {
9180
9180
  constructor(e, t, i, s = pt.prod) {
9181
9181
  super();
9182
- m(this, "messageCenter");
9183
- m(this, "authInfo");
9184
- m(this, "userName");
9185
- m(this, "channelProfile");
9186
- m(this, "clientRole");
9187
- m(this, "slsReporter");
9188
- m(this, "reconnectData");
9182
+ g(this, "messageCenter");
9183
+ g(this, "authInfo");
9184
+ g(this, "userName");
9185
+ g(this, "channelProfile");
9186
+ g(this, "clientRole");
9187
+ g(this, "slsReporter");
9188
+ g(this, "reconnectData");
9189
9189
  // 重连房间信令的信息,在服务器宕机的时候,reconnect 成功
9190
- m(this, "roomServerUri", "");
9190
+ g(this, "roomServerUri", "");
9191
9191
  this.channelProfile = e, this.clientRole = t, this.slsReporter = i, this.reconnectData = {
9192
9192
  role: {
9193
9193
  channelprofile: e,
@@ -9335,26 +9335,26 @@ const Ri = (Ne = class extends De {
9335
9335
  var e, t, i, s, n, c, o, u, h, p, d, f;
9336
9336
  (e = this.messageCenter) == null || e.on("onKeepAliveRsp", () => {
9337
9337
  this.emit("onKeepAliveRsp");
9338
- }), (t = this.messageCenter) == null || t.on("onNotifyJoin", (g) => {
9339
- this.emit("onNotifyJoin", g);
9340
- }), (i = this.messageCenter) == null || i.on("onNotifyStatus", (g) => {
9341
- this.emit("onNotifyStatus", g);
9342
- }), (s = this.messageCenter) == null || s.on("onNotifyLeave", (g) => {
9343
- this.emit("onNotifyLeave", g);
9344
- }), (n = this.messageCenter) == null || n.on("onNotifyPublish", (g) => {
9345
- this.emit("onNotifyPublish", g);
9346
- }), (c = this.messageCenter) == null || c.on("onBye", (g, l) => {
9347
- this.emit("onBye", g, l);
9338
+ }), (t = this.messageCenter) == null || t.on("onNotifyJoin", (m) => {
9339
+ this.emit("onNotifyJoin", m);
9340
+ }), (i = this.messageCenter) == null || i.on("onNotifyStatus", (m) => {
9341
+ this.emit("onNotifyStatus", m);
9342
+ }), (s = this.messageCenter) == null || s.on("onNotifyLeave", (m) => {
9343
+ this.emit("onNotifyLeave", m);
9344
+ }), (n = this.messageCenter) == null || n.on("onNotifyPublish", (m) => {
9345
+ this.emit("onNotifyPublish", m);
9346
+ }), (c = this.messageCenter) == null || c.on("onBye", (m, l) => {
9347
+ this.emit("onBye", m, l);
9348
9348
  }), (o = this.messageCenter) == null || o.on("onReconnectStart", () => {
9349
9349
  this.emit("onReconnectStart");
9350
- }), (u = this.messageCenter) == null || u.on("onReconnectSuccess", (g) => {
9351
- this.emit("onReconnectSuccess", g);
9352
- }), (h = this.messageCenter) == null || h.on("onReconnectFail", (g) => {
9353
- this.emit("onReconnectFail", g);
9354
- }), (p = this.messageCenter) == null || p.on("onConnectFail", (g) => {
9355
- this.emit("onConnectFail", g), this.reset();
9356
- }), (d = this.messageCenter) == null || d.on("onNetworkError", (g) => {
9357
- this.emit("onNetworkError", g);
9350
+ }), (u = this.messageCenter) == null || u.on("onReconnectSuccess", (m) => {
9351
+ this.emit("onReconnectSuccess", m);
9352
+ }), (h = this.messageCenter) == null || h.on("onReconnectFail", (m) => {
9353
+ this.emit("onReconnectFail", m);
9354
+ }), (p = this.messageCenter) == null || p.on("onConnectFail", (m) => {
9355
+ this.emit("onConnectFail", m), this.reset();
9356
+ }), (d = this.messageCenter) == null || d.on("onNetworkError", (m) => {
9357
+ this.emit("onNetworkError", m);
9358
9358
  }), (f = this.messageCenter) == null || f.on("onAuthInvalid", () => {
9359
9359
  this.emit("onAuthInvalid");
9360
9360
  });
@@ -9362,7 +9362,7 @@ const Ri = (Ne = class extends De {
9362
9362
  }, /**
9363
9363
  * @ignore
9364
9364
  */
9365
- m(Ne, "logName", "RoomServerSignaling"), Ne);
9365
+ g(Ne, "logName", "RoomServerSignaling"), Ne);
9366
9366
  rs([
9367
9367
  D()
9368
9368
  ], Ri.prototype, "join", 1);
@@ -9376,13 +9376,13 @@ let L0 = Ri;
9376
9376
  const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", Oa = 10 * 60 * 1e3, O0 = 12, ii = class ii extends De {
9377
9377
  constructor(e, t) {
9378
9378
  super();
9379
- m(this, "env");
9380
- m(this, "authInfo");
9381
- m(this, "timer");
9382
- m(this, "slsReporter");
9383
- m(this, "expiration", 0);
9384
- m(this, "skipTime", 0);
9385
- m(this, "requestToken", () => w(this, null, function* () {
9379
+ g(this, "env");
9380
+ g(this, "authInfo");
9381
+ g(this, "timer");
9382
+ g(this, "slsReporter");
9383
+ g(this, "expiration", 0);
9384
+ g(this, "skipTime", 0);
9385
+ g(this, "requestToken", () => w(this, null, function* () {
9386
9386
  if (this.skipTime = 0, !this.authInfo)
9387
9387
  return;
9388
9388
  const { appId: e, channelId: t, userId: i, nonce: s = "", token: n, timestamp: c, sessionId: o, role: u } = this.authInfo;
@@ -9390,9 +9390,9 @@ const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", O
9390
9390
  this.env === pt.pre && (h = V0);
9391
9391
  const p = `${h}/gslb/v1/stsupdate?appid=${e}&channelid=${t}&userid=${i}&nonce=${s}&token=${n}&timestamp=${c}&session=${o}${u ? `&tokenrole=${u}` : ""}&slstoken=true&osstoken=true&tokensid=false`, d = Date.now();
9392
9392
  fetch(p).then((f) => f.json()).then((f) => {
9393
- var g, l;
9393
+ var m, l;
9394
9394
  if (f.code === 0) {
9395
- const S = (g = f.data) == null ? void 0 : g.oss, v = (l = f.data) == null ? void 0 : l.sls;
9395
+ const S = (m = f.data) == null ? void 0 : m.oss, v = (l = f.data) == null ? void 0 : l.sls;
9396
9396
  this.expiration = S.expiration || v.expiration, this.emit("onTokenUpdate", S, v), O.event(`[${ii.logName}]`, "getToken", S, v);
9397
9397
  } else
9398
9398
  throw new Error();
@@ -9419,7 +9419,7 @@ const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", O
9419
9419
  this.timer && clearInterval(this.timer);
9420
9420
  }
9421
9421
  };
9422
- m(ii, "logName", "StsManager");
9422
+ g(ii, "logName", "StsManager");
9423
9423
  let Fr = ii;
9424
9424
  var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, j0 = (r, a, e, t) => {
9425
9425
  for (var i = t > 1 ? void 0 : t ? H0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
@@ -9429,15 +9429,15 @@ var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, j0 = (r, a
9429
9429
  class ss extends De {
9430
9430
  constructor(e, t, i, s = pt.prod) {
9431
9431
  super();
9432
- m(this, "signaling");
9433
- m(this, "authInfo");
9434
- m(this, "userName");
9435
- m(this, "channelProfile");
9436
- m(this, "clientRole");
9437
- m(this, "env", pt.prod);
9438
- m(this, "maxConnectRetryCount");
9439
- m(this, "stsManager");
9440
- m(this, "slsReporter");
9432
+ g(this, "signaling");
9433
+ g(this, "authInfo");
9434
+ g(this, "userName");
9435
+ g(this, "channelProfile");
9436
+ g(this, "clientRole");
9437
+ g(this, "env", pt.prod);
9438
+ g(this, "maxConnectRetryCount");
9439
+ g(this, "stsManager");
9440
+ g(this, "slsReporter");
9441
9441
  this.channelProfile = e, this.clientRole = t, this.env = s, this.slsReporter = i, this.stsManager = new Fr(i, s);
9442
9442
  }
9443
9443
  reset() {
@@ -9549,8 +9549,8 @@ class ss extends De {
9549
9549
  * 监听业务信令相关的事件
9550
9550
  */
9551
9551
  initSignaling() {
9552
- var e, t, i, s, n, c, o, u, h, p, d, f, g;
9553
- (e = this.signaling) == null || e.on("onKeepAliveRsp", this.onKeepAliveRsp.bind(this)), (t = this.signaling) == null || t.on("onNotifyJoin", this.onNotifyJoin.bind(this)), (i = this.signaling) == null || i.on("onNotifyStatus", this.onNotifyStatus.bind(this)), (s = this.signaling) == null || s.on("onNotifyLeave", this.onNotifyLeave.bind(this)), (n = this.signaling) == null || n.on("onNotifyPublish", this.onNotifyPublish.bind(this)), (c = this.signaling) == null || c.on("onBye", this.onBye.bind(this)), (o = this.signaling) == null || o.on("onReconnectStart", this.onReconnectStart.bind(this)), (u = this.signaling) == null || u.on("onReconnectSuccess", this.onReconnectSuccess.bind(this)), (h = this.signaling) == null || h.on("onReconnectFail", this.onReconnectFail.bind(this)), (p = this.signaling) == null || p.on("onConnectFail", this.onConnectFail.bind(this)), (d = this.signaling) == null || d.on("onNetworkError", this.onNetworkError.bind(this)), (f = this.signaling) == null || f.on("onAuthInvalid", this.onAuthInvalid.bind(this)), (g = this.signaling) == null || g.on("onError", this.onError.bind(this));
9552
+ var e, t, i, s, n, c, o, u, h, p, d, f, m;
9553
+ (e = this.signaling) == null || e.on("onKeepAliveRsp", this.onKeepAliveRsp.bind(this)), (t = this.signaling) == null || t.on("onNotifyJoin", this.onNotifyJoin.bind(this)), (i = this.signaling) == null || i.on("onNotifyStatus", this.onNotifyStatus.bind(this)), (s = this.signaling) == null || s.on("onNotifyLeave", this.onNotifyLeave.bind(this)), (n = this.signaling) == null || n.on("onNotifyPublish", this.onNotifyPublish.bind(this)), (c = this.signaling) == null || c.on("onBye", this.onBye.bind(this)), (o = this.signaling) == null || o.on("onReconnectStart", this.onReconnectStart.bind(this)), (u = this.signaling) == null || u.on("onReconnectSuccess", this.onReconnectSuccess.bind(this)), (h = this.signaling) == null || h.on("onReconnectFail", this.onReconnectFail.bind(this)), (p = this.signaling) == null || p.on("onConnectFail", this.onConnectFail.bind(this)), (d = this.signaling) == null || d.on("onNetworkError", this.onNetworkError.bind(this)), (f = this.signaling) == null || f.on("onAuthInvalid", this.onAuthInvalid.bind(this)), (m = this.signaling) == null || m.on("onError", this.onError.bind(this));
9554
9554
  }
9555
9555
  /**
9556
9556
  * 收到心跳消息
@@ -9641,7 +9641,7 @@ class ss extends De {
9641
9641
  /**
9642
9642
  * @ignore
9643
9643
  */
9644
- m(ss, "logName", "SignalingManager");
9644
+ g(ss, "logName", "SignalingManager");
9645
9645
  j0([
9646
9646
  D(H)
9647
9647
  ], ss.prototype, "publish", 1);
@@ -9650,7 +9650,7 @@ const Nt = class Nt {
9650
9650
  return Nt.instance || (Nt.instance = new AudioContext()), Nt.instance.resume(), Nt.instance;
9651
9651
  }
9652
9652
  };
9653
- m(Nt, "instance");
9653
+ g(Nt, "instance");
9654
9654
  let $t = Nt;
9655
9655
  function z0(r, a, e, t, i) {
9656
9656
  let s = t, n = 0, c;
@@ -9663,7 +9663,7 @@ function z0(r, a, e, t, i) {
9663
9663
  }, p = () => {
9664
9664
  c = window.setInterval(() => {
9665
9665
  o.getByteFrequencyData(u);
9666
- let d = Math.round(u.reduce((f, g) => f + g) / u.length);
9666
+ let d = Math.round(u.reduce((f, m) => f + m) / u.length);
9667
9667
  d = Math.min(100, d), n = d, i && i(d);
9668
9668
  }, s);
9669
9669
  };
@@ -9680,10 +9680,10 @@ function z0(r, a, e, t, i) {
9680
9680
  class W0 extends De {
9681
9681
  constructor() {
9682
9682
  super();
9683
- m(this, "audioContext");
9684
- m(this, "stream");
9685
- m(this, "sourceNode");
9686
- m(this, "analyser");
9683
+ g(this, "audioContext");
9684
+ g(this, "stream");
9685
+ g(this, "sourceNode");
9686
+ g(this, "analyser");
9687
9687
  this.audioContext = $t.getInstance(), this.stream = new MediaStream();
9688
9688
  }
9689
9689
  getLevel() {
@@ -9714,13 +9714,13 @@ class W0 extends De {
9714
9714
  class Sn extends De {
9715
9715
  constructor(e, t, i, s) {
9716
9716
  super();
9717
- m(this, "uid");
9718
- m(this, "name");
9719
- m(this, "rtsManager");
9720
- m(this, "callId", "");
9717
+ g(this, "uid");
9718
+ g(this, "name");
9719
+ g(this, "rtsManager");
9720
+ g(this, "callId", "");
9721
9721
  // 本地音量检测
9722
- m(this, "audioLevelMonitor");
9723
- m(this, "audioVolumeIndicationInterval", 0);
9722
+ g(this, "audioLevelMonitor");
9723
+ g(this, "audioVolumeIndicationInterval", 0);
9724
9724
  this.uid = e, this.name = t, this.rtsManager = i, this.audioVolumeIndicationInterval = s, this.audioLevelMonitor = new W0();
9725
9725
  }
9726
9726
  get userId() {
@@ -9924,10 +9924,10 @@ const bn = (r, a, e = !1) => {
9924
9924
  var En = /* @__PURE__ */ ((r) => (r[r.AliEngineDataMsgNone = 0] = "AliEngineDataMsgNone", r[r.AliEngineDataMsgMusicProgress = 1] = "AliEngineDataMsgMusicProgress", r[r.AliEngineDataMsgCustom = 2] = "AliEngineDataMsgCustom", r))(En || {});
9925
9925
  class Ii {
9926
9926
  constructor(a, e, t, i = 0) {
9927
- m(this, "msgType");
9928
- m(this, "msgId");
9929
- m(this, "protocolVersion");
9930
- m(this, "tlvVersion");
9927
+ g(this, "msgType");
9928
+ g(this, "msgId");
9929
+ g(this, "protocolVersion");
9930
+ g(this, "tlvVersion");
9931
9931
  this.msgType = a, this.msgId = e, this.protocolVersion = t, this.tlvVersion = i;
9932
9932
  }
9933
9933
  build() {
@@ -9942,7 +9942,7 @@ class Ii {
9942
9942
  const Tt = 5;
9943
9943
  class mi {
9944
9944
  constructor(a, e, t) {
9945
- m(this, "_byteArray");
9945
+ g(this, "_byteArray");
9946
9946
  if (this._byteArray = new Uint8Array(0), a !== void 0 && e !== void 0 && t !== void 0) {
9947
9947
  const s = new Ii(a, e, t).build();
9948
9948
  this._byteArray = new Uint8Array(s.byteLength + this._byteArray.byteLength), this._byteArray.set(s, 0);
@@ -9973,14 +9973,14 @@ class mi {
9973
9973
  }
9974
9974
  class oi {
9975
9975
  constructor(a = 0, e = !0, t = 1, i = !1, s = 0, n = !1, c = !1, o = 3) {
9976
- m(this, "_fin", !0);
9977
- m(this, "_hasExtension", !1);
9978
- m(this, "_version", 0);
9979
- m(this, "_frameType", 1);
9980
- m(this, "_isEncrypted", !1);
9981
- m(this, "_isCompressed", !1);
9982
- m(this, "_signalType", 3);
9983
- m(this, "_payloadLength", 0);
9976
+ g(this, "_fin", !0);
9977
+ g(this, "_hasExtension", !1);
9978
+ g(this, "_version", 0);
9979
+ g(this, "_frameType", 1);
9980
+ g(this, "_isEncrypted", !1);
9981
+ g(this, "_isCompressed", !1);
9982
+ g(this, "_signalType", 3);
9983
+ g(this, "_payloadLength", 0);
9984
9984
  this._fin = e, this._hasExtension = i, this._version = s, this._frameType = t, this._isEncrypted = n, this._isCompressed = c, this._signalType = o, this._payloadLength = a;
9985
9985
  }
9986
9986
  get fin() {
@@ -10033,8 +10033,8 @@ class oi {
10033
10033
  }
10034
10034
  class wi {
10035
10035
  constructor(a, e) {
10036
- m(this, "_body");
10037
- m(this, "_header", new oi());
10036
+ g(this, "_body");
10037
+ g(this, "_header", new oi());
10038
10038
  this._header = a, this._body = e;
10039
10039
  }
10040
10040
  get header() {
@@ -10068,10 +10068,10 @@ const Pr = (r) => {
10068
10068
  let Wa = 0;
10069
10069
  class Kt {
10070
10070
  constructor(a, e = 0, t = 0, i = 0) {
10071
- m(this, "data");
10072
- m(this, "networkTime");
10073
- m(this, "futureOrProgress");
10074
- m(this, "type");
10071
+ g(this, "data");
10072
+ g(this, "networkTime");
10073
+ g(this, "futureOrProgress");
10074
+ g(this, "type");
10075
10075
  this.data = a, this.type = e, this.networkTime = t, this.futureOrProgress = i;
10076
10076
  }
10077
10077
  toBuffer() {
@@ -10124,8 +10124,8 @@ const $a = 30;
10124
10124
  class Zt extends De {
10125
10125
  constructor() {
10126
10126
  super();
10127
- m(this, "_state");
10128
- m(this, "time");
10127
+ g(this, "_state");
10128
+ g(this, "time");
10129
10129
  this._state = Y.AliRtcStatePublishIdle, this.time = Date.now();
10130
10130
  }
10131
10131
  get state() {
@@ -10141,38 +10141,38 @@ const ge = (lt = class extends Sn {
10141
10141
  constructor(e) {
10142
10142
  const { rtsManager: t, localStreamManager: i, slsReporter: s, signalingManager: n, audioVolumeIndicationInterval: c, parameter: o } = e;
10143
10143
  super("", "", t, c);
10144
- m(this, "_url", "");
10145
- m(this, "joinTime", 0);
10146
- m(this, "_isPublishing", !1);
10147
- m(this, "publishPromise", Promise.resolve({
10144
+ g(this, "_url", "");
10145
+ g(this, "joinTime", 0);
10146
+ g(this, "_isPublishing", !1);
10147
+ g(this, "publishPromise", Promise.resolve({
10148
10148
  traceId: "",
10149
10149
  l1ip: void 0
10150
10150
  }));
10151
- m(this, "previewElements", []);
10151
+ g(this, "previewElements", []);
10152
10152
  // 本地主流预览容器元素列表
10153
- m(this, "screenPreviewElements", []);
10153
+ g(this, "screenPreviewElements", []);
10154
10154
  // 本地辅流预览容器元素列表
10155
- m(this, "streamManager");
10156
- m(this, "dc");
10157
- m(this, "streamTracks");
10155
+ g(this, "streamManager");
10156
+ g(this, "dc");
10157
+ g(this, "streamTracks");
10158
10158
  // 本地流 track 信息
10159
- m(this, "publishId", rt());
10160
- m(this, "signalingManager");
10161
- m(this, "traceId", "");
10162
- m(this, "monitorTimerId");
10163
- m(this, "monitorDataCache", {});
10164
- m(this, "trackTraceIdMap", {});
10165
- m(this, "candidateDataCache", []);
10166
- m(this, "pcMediaStatsMap", {});
10167
- m(this, "slsReporter");
10168
- m(this, "audioPubState");
10169
- m(this, "videoPubState");
10170
- m(this, "videoSmallPubState");
10171
- m(this, "screenPubState");
10172
- m(this, "dataPubState");
10159
+ g(this, "publishId", rt());
10160
+ g(this, "signalingManager");
10161
+ g(this, "traceId", "");
10162
+ g(this, "monitorTimerId");
10163
+ g(this, "monitorDataCache", {});
10164
+ g(this, "trackTraceIdMap", {});
10165
+ g(this, "candidateDataCache", []);
10166
+ g(this, "pcMediaStatsMap", {});
10167
+ g(this, "slsReporter");
10168
+ g(this, "audioPubState");
10169
+ g(this, "videoPubState");
10170
+ g(this, "videoSmallPubState");
10171
+ g(this, "screenPubState");
10172
+ g(this, "dataPubState");
10173
10173
  // @ts-ignore
10174
- m(this, "parameter", {});
10175
- m(this, "onTrackEnd", (e) => {
10174
+ g(this, "parameter", {});
10175
+ g(this, "onTrackEnd", (e) => {
10176
10176
  this.emit(e);
10177
10177
  });
10178
10178
  this.streamManager = i, this.signalingManager = n, this.slsReporter = s, this.parameter = o, this.streamManager.on("trackended", (u) => {
@@ -10665,9 +10665,9 @@ const ge = (lt = class extends Sn {
10665
10665
  ({ ssrc: E, type: _, msid: y }) => _ === "audio" && E && y === T.Audio
10666
10666
  ), f = yield this.compareAndPublish(d, t.audio, T.Audio);
10667
10667
  f && (i = f);
10668
- const g = (c = this.streamTracks) == null ? void 0 : c.find(
10668
+ const m = (c = this.streamTracks) == null ? void 0 : c.find(
10669
10669
  ({ ssrc: E, type: _, msid: y }) => _ === "video" && E && y === T.VideoLarge
10670
- ), l = yield this.compareAndPublish(g, t.video, T.VideoLarge);
10670
+ ), l = yield this.compareAndPublish(m, t.video, T.VideoLarge);
10671
10671
  l && (i = l);
10672
10672
  const S = (o = this.streamTracks) == null ? void 0 : o.find(
10673
10673
  ({ ssrc: E, type: _, msid: y }) => _ === "video" && E && y === T.VideoSmall
@@ -10713,8 +10713,8 @@ const ge = (lt = class extends Sn {
10713
10713
  return;
10714
10714
  (p = this.parameter.data) != null && p.enablePubDataChannel && !this.dc && (yield this.publishDataChannel()), yield this.syncPublishToRoomServer(i, t, s);
10715
10715
  } catch (d) {
10716
- const { code: f } = d != null ? d : {}, g = this.url;
10717
- throw f === 403 && g && (yield this.refreshPushStreamUrl(), i = yield this.publishUpdate()), d;
10716
+ const { code: f } = d != null ? d : {}, m = this.url;
10717
+ throw f === 403 && m && (yield this.refreshPushStreamUrl(), i = yield this.publishUpdate()), d;
10718
10718
  }
10719
10719
  return i;
10720
10720
  });
@@ -10989,8 +10989,8 @@ const ge = (lt = class extends Sn {
10989
10989
  if (!f.timestamp)
10990
10990
  return;
10991
10991
  this.monitorDataCache[h] || (this.monitorDataCache[h] = []);
10992
- const g = this.getMediaStats(f.mediaSourceId);
10993
- f._source = g;
10992
+ const m = this.getMediaStats(f.mediaSourceId);
10993
+ f._source = m;
10994
10994
  const l = this.monitorDataCache[h];
10995
10995
  let S;
10996
10996
  if ((l == null ? void 0 : l.length) > 0) {
@@ -11106,7 +11106,7 @@ const ge = (lt = class extends Sn {
11106
11106
  }, /**
11107
11107
  * @ignore
11108
11108
  */
11109
- m(lt, "logName", "LocalUser"), lt);
11109
+ g(lt, "logName", "LocalUser"), lt);
11110
11110
  me([
11111
11111
  D()
11112
11112
  ], ge.prototype, "clearPublishState", 1);
@@ -11206,7 +11206,7 @@ var oc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, uc = (r, a
11206
11206
  class Ei extends De {
11207
11207
  constructor() {
11208
11208
  super();
11209
- m(this, "audioInfo", {
11209
+ g(this, "audioInfo", {
11210
11210
  subscribeState: re.NotSubscribe,
11211
11211
  ssrc: "",
11212
11212
  msid: "",
@@ -11214,7 +11214,7 @@ class Ei extends De {
11214
11214
  red: 0,
11215
11215
  codec: vt.UNKNOWN
11216
11216
  });
11217
- m(this, "videoLargeInfo", {
11217
+ g(this, "videoLargeInfo", {
11218
11218
  subscribeState: re.NotSubscribe,
11219
11219
  ssrc: "",
11220
11220
  msid: "",
@@ -11222,7 +11222,7 @@ class Ei extends De {
11222
11222
  red: 0,
11223
11223
  codec: vt.UNKNOWN
11224
11224
  });
11225
- m(this, "videoSmallInfo", {
11225
+ g(this, "videoSmallInfo", {
11226
11226
  subscribeState: re.NotSubscribe,
11227
11227
  ssrc: "",
11228
11228
  msid: "",
@@ -11230,7 +11230,7 @@ class Ei extends De {
11230
11230
  red: 0,
11231
11231
  codec: vt.UNKNOWN
11232
11232
  });
11233
- m(this, "screenInfo", {
11233
+ g(this, "screenInfo", {
11234
11234
  subscribeState: re.NotSubscribe,
11235
11235
  ssrc: "",
11236
11236
  msid: "",
@@ -11238,7 +11238,7 @@ class Ei extends De {
11238
11238
  red: 0,
11239
11239
  codec: vt.UNKNOWN
11240
11240
  });
11241
- m(this, "dataInfo", {
11241
+ g(this, "dataInfo", {
11242
11242
  subscribeState: re.NotSubscribe,
11243
11243
  ssrc: "",
11244
11244
  msid: "",
@@ -11246,9 +11246,9 @@ class Ei extends De {
11246
11246
  red: 0,
11247
11247
  codec: vt.UNKNOWN
11248
11248
  });
11249
- m(this, "audioVolume", 1);
11250
- m(this, "audioMuted", !1);
11251
- m(this, "userStatus");
11249
+ g(this, "audioVolume", 1);
11250
+ g(this, "audioMuted", !1);
11251
+ g(this, "userStatus");
11252
11252
  }
11253
11253
  /**
11254
11254
  * 远端流音频轨道信息
@@ -11441,13 +11441,13 @@ class Ei extends De {
11441
11441
  /**
11442
11442
  * @ignore
11443
11443
  */
11444
- m(Ei, "logName", "RemoteStreamInfo");
11444
+ g(Ei, "logName", "RemoteStreamInfo");
11445
11445
  uc([
11446
11446
  D()
11447
11447
  ], Ei.prototype, "updateRemoteTrackSubState", 1);
11448
11448
  class hc {
11449
11449
  constructor(a) {
11450
- m(this, "remoteUser");
11450
+ g(this, "remoteUser");
11451
11451
  this.remoteUser = a;
11452
11452
  }
11453
11453
  get userId() {
@@ -11501,9 +11501,9 @@ var dc = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, Te = (r, a
11501
11501
  class jt extends De {
11502
11502
  constructor() {
11503
11503
  super();
11504
- m(this, "state");
11505
- m(this, "time");
11506
- m(this, "_enabled");
11504
+ g(this, "state");
11505
+ g(this, "time");
11506
+ g(this, "_enabled");
11507
11507
  this.state = he.AliRtcStateSubscribeIdle, this.time = Date.now(), this._enabled = !0;
11508
11508
  }
11509
11509
  setState(e) {
@@ -11540,50 +11540,50 @@ const Ce = (Me = class extends Sn {
11540
11540
  parameter: d
11541
11541
  } = e;
11542
11542
  super(t, i, s, h);
11543
- m(this, "remoteCallid", "");
11544
- m(this, "remoteUserInfo");
11545
- m(this, "localUser");
11546
- m(this, "lastPubId", "");
11547
- m(this, "stream");
11548
- m(this, "screenStream");
11543
+ g(this, "remoteCallid", "");
11544
+ g(this, "remoteUserInfo");
11545
+ g(this, "localUser");
11546
+ g(this, "lastPubId", "");
11547
+ g(this, "stream");
11548
+ g(this, "screenStream");
11549
11549
  // 辅流
11550
- m(this, "viewMap");
11551
- m(this, "audioTrack");
11552
- m(this, "audioElement");
11553
- m(this, "subscribed", !1);
11550
+ g(this, "viewMap");
11551
+ g(this, "audioTrack");
11552
+ g(this, "audioElement");
11553
+ g(this, "subscribed", !1);
11554
11554
  // 是否有过订阅
11555
- m(this, "mediaStream");
11556
- m(this, "secondaryMediaStream");
11557
- m(this, "prevSubConfig");
11558
- m(this, "signalingManager");
11559
- m(this, "slsReporter");
11560
- m(this, "wantSubAudio", !1);
11561
- m(this, "wantSubVideo", !1);
11562
- m(this, "wantSubScreen", !1);
11563
- m(this, "defaultVideoStreamType", we.AliRtcVideoStreamTypeHigh);
11564
- m(this, "audioMuted", !1);
11565
- m(this, "playoutVolume", 1);
11566
- m(this, "playoutGainNode");
11567
- m(this, "audioSubState");
11568
- m(this, "videoSubState");
11569
- m(this, "videoLargeSubState", new jt());
11570
- m(this, "videoSmallSubState", new jt());
11571
- m(this, "screenSubState");
11555
+ g(this, "mediaStream");
11556
+ g(this, "secondaryMediaStream");
11557
+ g(this, "prevSubConfig");
11558
+ g(this, "signalingManager");
11559
+ g(this, "slsReporter");
11560
+ g(this, "wantSubAudio", !1);
11561
+ g(this, "wantSubVideo", !1);
11562
+ g(this, "wantSubScreen", !1);
11563
+ g(this, "defaultVideoStreamType", we.AliRtcVideoStreamTypeHigh);
11564
+ g(this, "audioMuted", !1);
11565
+ g(this, "playoutVolume", 1);
11566
+ g(this, "playoutGainNode");
11567
+ g(this, "audioSubState");
11568
+ g(this, "videoSubState");
11569
+ g(this, "videoLargeSubState", new jt());
11570
+ g(this, "videoSmallSubState", new jt());
11571
+ g(this, "screenSubState");
11572
11572
  // DataChannel 通道相关
11573
- m(this, "dataSubState");
11574
- m(this, "dc");
11575
- m(this, "dcMsgWaitingPieces", []);
11576
- m(this, "streamInfo");
11577
- m(this, "_streamUrl", "");
11578
- m(this, "parameter", {});
11573
+ g(this, "dataSubState");
11574
+ g(this, "dc");
11575
+ g(this, "dcMsgWaitingPieces", []);
11576
+ g(this, "streamInfo");
11577
+ g(this, "_streamUrl", "");
11578
+ g(this, "parameter", {});
11579
11579
  // 统计相关
11580
- m(this, "monitorTimerId");
11581
- m(this, "monitorDataCache", {});
11582
- m(this, "trackTraceIdMap", {});
11583
- m(this, "handleAudioContextSuspended", (e) => {
11580
+ g(this, "monitorTimerId");
11581
+ g(this, "monitorDataCache", {});
11582
+ g(this, "trackTraceIdMap", {});
11583
+ g(this, "handleAudioContextSuspended", (e) => {
11584
11584
  e.target.state === "suspended" && this.emit("remoteAudioPlayError", this.uid, "AudioContext suspended");
11585
11585
  });
11586
- m(this, "onDataChannelMessage", (e) => {
11586
+ g(this, "onDataChannelMessage", (e) => {
11587
11587
  var s;
11588
11588
  const t = wi.parse(e.slice(4));
11589
11589
  let i;
@@ -11620,25 +11620,25 @@ const Ce = (Me = class extends Sn {
11620
11620
  `receive data channel message, length: ${(s = i.data) == null ? void 0 : s.byteLength}`
11621
11621
  ), this.emit("remoteDataChannelMessage", this.uid, i));
11622
11622
  });
11623
- m(this, "onDataChannelError", (e) => {
11623
+ g(this, "onDataChannelError", (e) => {
11624
11624
  this.emit("occurError", F.fromError(e, U.ERR_SDK_SUBSCRIBE_DATA_ERROR));
11625
11625
  });
11626
- m(this, "dataChannelConnected", (e) => {
11626
+ g(this, "dataChannelConnected", (e) => {
11627
11627
  e && (this.dc = e, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dc.off("message", this.onDataChannelMessage), this.dc.off("error", this.onDataChannelError), this.dc.on("message", this.onDataChannelMessage), this.dc.on("error", this.onDataChannelError));
11628
11628
  });
11629
- m(this, "handleAudioPaused", () => {
11629
+ g(this, "handleAudioPaused", () => {
11630
11630
  this.emit("remoteAudioPlayError", this.uid, "paused");
11631
11631
  });
11632
- this.streamInfo = new Ei(), this.remoteUserInfo = new hc(this), this.parameter = d, this.streamInfo.on(Le.Remote, (g) => {
11633
- this.emit(Le.Remote, g, 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", (g, l, S) => {
11635
- this.emit("audioSubscribeStateChanged", this.uid, g, l, S);
11636
- }), this.videoSubState = new jt(), this.videoSubState.on("change", (g, l, S) => {
11637
- this.emit("videoSubscribeStateChanged", this.uid, g, l, S);
11638
- }), this.screenSubState = new jt(), this.screenSubState.on("change", (g, l, S) => {
11639
- this.emit("screenSubscribeStateChanged", this.uid, g, l, S);
11640
- }), this.dataSubState = new jt(), this.dataSubState.on("change", (g, l, S) => {
11641
- this.emit("dataSubscribeStateChanged", this.uid, g, l, S);
11632
+ this.streamInfo = new Ei(), this.remoteUserInfo = new hc(this), this.parameter = d, this.streamInfo.on(Le.Remote, (m) => {
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, S) => {
11635
+ this.emit("audioSubscribeStateChanged", this.uid, m, l, S);
11636
+ }), this.videoSubState = new jt(), this.videoSubState.on("change", (m, l, S) => {
11637
+ this.emit("videoSubscribeStateChanged", this.uid, m, l, S);
11638
+ }), this.screenSubState = new jt(), this.screenSubState.on("change", (m, l, S) => {
11639
+ this.emit("screenSubscribeStateChanged", this.uid, m, l, S);
11640
+ }), this.dataSubState = new jt(), this.dataSubState.on("change", (m, l, S) => {
11641
+ this.emit("dataSubscribeStateChanged", this.uid, m, l, S);
11642
11642
  }), this.playoutVolume = p;
11643
11643
  }
11644
11644
  get streamUrl() {
@@ -11787,7 +11787,7 @@ const Ce = (Me = class extends Sn {
11787
11787
  }
11788
11788
  subscribe(s, n) {
11789
11789
  return w(this, arguments, function* (e, t, i = Date.now()) {
11790
- var f, g;
11790
+ var f, m;
11791
11791
  let c = e;
11792
11792
  if (!c) {
11793
11793
  const { hasAudio: l, hasVideo: S, hasScreen: v, hasData: x } = (f = this.streamInfo) != null ? f : {};
@@ -11795,7 +11795,7 @@ const Ce = (Me = class extends Sn {
11795
11795
  audio: this.wantSubAudio && l,
11796
11796
  video: this.wantSubVideo && S,
11797
11797
  screen: this.wantSubScreen && v,
11798
- data: ((g = this.parameter.data) == null ? void 0 : g.enableSubDataChannel) && x
11798
+ data: ((m = this.parameter.data) == null ? void 0 : m.enableSubDataChannel) && x
11799
11799
  };
11800
11800
  }
11801
11801
  this.streamInfo.markRemoteTrackSubscribing(c);
@@ -11829,8 +11829,8 @@ const Ce = (Me = class extends Sn {
11829
11829
  const { stream: d } = p;
11830
11830
  if (e.audio) {
11831
11831
  this.trackTraceIdMap[T.Audio] = n;
11832
- const g = d.audioTrack;
11833
- g && (this.audioTrack = g, (o = d.mediaStream) == null || o.removeTrack(g), this.playAudio(), this.audioVolumeIndicationInterval && this.audioLevelMonitor.start(g, this.audioVolumeIndicationInterval)), this.audioSubState.setState(he.AliRtcStateSubscribed), this.audioSubState.getEnabled() || this.toggleAudio(!1);
11832
+ const m = d.audioTrack;
11833
+ m && (this.audioTrack = m, (o = d.mediaStream) == null || o.removeTrack(m), this.playAudio(), this.audioVolumeIndicationInterval && this.audioLevelMonitor.start(m, this.audioVolumeIndicationInterval)), this.audioSubState.setState(he.AliRtcStateSubscribed), this.audioSubState.getEnabled() || this.toggleAudio(!1);
11834
11834
  }
11835
11835
  e.video && (this.videoSubState.setState(he.AliRtcStateSubscribed), e.vMsid === T.VideoSmall ? (this.trackTraceIdMap[T.VideoSmall] = n, this.videoSmallSubState.setState(he.AliRtcStateSubscribed)) : (this.trackTraceIdMap[T.VideoLarge] = n, this.videoLargeSubState.setState(he.AliRtcStateSubscribed)), this.videoSubState.getEnabled() || this.toggleVideo(!1), this.updateStream(d, this.isVideoLargeSubscribing && this.isVideoSmallSubscribing)), e.screen && (this.screenSubState.setState(he.AliRtcStateSubscribed), this.trackTraceIdMap[T.Screen] = n, this.videoSubState.getEnabled() || this.toggleScreen(!1), this.updateScreenStream(d));
11836
11836
  const f = (/* @__PURE__ */ new Date()).getTime() - s;
@@ -11874,8 +11874,8 @@ const Ce = (Me = class extends Sn {
11874
11874
  est: s
11875
11875
  }
11876
11876
  );
11877
- const g = F.fromError(p, f);
11878
- throw this.emit("remoteSubscribeError", g), g;
11877
+ const m = F.fromError(p, f);
11878
+ throw this.emit("remoteSubscribeError", m), m;
11879
11879
  }
11880
11880
  });
11881
11881
  }
@@ -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, g, l, S, v, x, b, E, _, y;
12073
+ var n, c, o, u, h, p, d, f, m, l, S, v, x, 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 || !((g = this.streamInfo) != null && g.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 && ((S = this.streamInfo) != null && S.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (x = this.parameter.data) != null && x.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) {
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 && ((S = this.streamInfo) != null && S.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (x = this.parameter.data) != null && x.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,
@@ -12322,7 +12322,7 @@ const Ce = (Me = class extends Sn {
12322
12322
  }, /**
12323
12323
  * @ignore
12324
12324
  */
12325
- m(Me, "logName", "RemoteUser"), Me);
12325
+ g(Me, "logName", "RemoteUser"), Me);
12326
12326
  Te([
12327
12327
  D()
12328
12328
  ], Ce.prototype, "clear", 1);
@@ -12383,7 +12383,7 @@ var _t = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRt
12383
12383
  class gc extends De {
12384
12384
  constructor() {
12385
12385
  super(...arguments);
12386
- m(this, "plugins", /* @__PURE__ */ new Map());
12386
+ g(this, "plugins", /* @__PURE__ */ new Map());
12387
12387
  }
12388
12388
  add(e, t) {
12389
12389
  if (this.plugins.has(e.name))
@@ -12424,24 +12424,24 @@ var Ae;
12424
12424
  const xe = (Ae = class extends De {
12425
12425
  constructor(e, t, i) {
12426
12426
  super();
12427
- m(this, "rts");
12428
- m(this, "encodedInsertableStreams", !0);
12429
- m(this, "audioRedEnabled", !1);
12430
- m(this, "localStreamManager");
12431
- m(this, "slsReporter");
12432
- m(this, "_rtsReconnecting", !1);
12433
- m(this, "_rtsPeerConnectionType", "publish");
12434
- m(this, "connecting", !1);
12435
- m(this, "connected", !1);
12436
- m(this, "_pcTraceId", "");
12437
- m(this, "_localJoinTime", 0);
12438
- m(this, "connectionResolve");
12439
- m(this, "connectingPromise");
12440
- m(this, "dcResolve");
12441
- m(this, "dcReject");
12442
- m(this, "dcConnectingPromise");
12443
- m(this, "_publishingTracks", []);
12444
- m(this, "parameter", {});
12427
+ g(this, "rts");
12428
+ g(this, "encodedInsertableStreams", !0);
12429
+ g(this, "audioRedEnabled", !1);
12430
+ g(this, "localStreamManager");
12431
+ g(this, "slsReporter");
12432
+ g(this, "_rtsReconnecting", !1);
12433
+ g(this, "_rtsPeerConnectionType", "publish");
12434
+ g(this, "connecting", !1);
12435
+ g(this, "connected", !1);
12436
+ g(this, "_pcTraceId", "");
12437
+ g(this, "_localJoinTime", 0);
12438
+ g(this, "connectionResolve");
12439
+ g(this, "connectingPromise");
12440
+ g(this, "dcResolve");
12441
+ g(this, "dcReject");
12442
+ g(this, "dcConnectingPromise");
12443
+ g(this, "_publishingTracks", []);
12444
+ g(this, "parameter", {});
12445
12445
  this.localStreamManager = e, this.slsReporter = t, this.parameter = i, this.rts = le.createClient({
12446
12446
  singlePcConfig: {
12447
12447
  usePcReconnect: !0
@@ -12570,18 +12570,18 @@ const xe = (Ae = class extends De {
12570
12570
  traceId: "",
12571
12571
  l1ip: o
12572
12572
  };
12573
- const g = this.getPubMsid(h, {
12573
+ const m = this.getPubMsid(h, {
12574
12574
  vMsid: f
12575
12575
  });
12576
- this.encodedInsertableStreams && (g.encodedInsertableStreams = !0), g.answerSdpHook = (_) => {
12576
+ this.encodedInsertableStreams && (m.encodedInsertableStreams = !0), m.answerSdpHook = (_) => {
12577
12577
  const y = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(_);
12578
12578
  return y != null && y[0] && (o = y[0]), _;
12579
- }, (E = (b = this.parameter) == null ? void 0 : b.net) != null && E.useTCP && (g.tcpOnly = !0), g.retryTimes = qa, g.retryInterval = Ja, this._rtsPeerConnectionType = "publish";
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
12580
  let l = !h.hasVideo, S = f, v = "";
12581
12581
  this.startConnect();
12582
12582
  const x = Date.now();
12583
12583
  try {
12584
- v = yield this.rts.publish(za(e), h, g);
12584
+ v = yield this.rts.publish(za(e), h, m);
12585
12585
  } catch (_) {
12586
12586
  this.setConnected(!1);
12587
12587
  const y = 2e3 - (Date.now() - x);
@@ -12650,7 +12650,7 @@ const xe = (Ae = class extends De {
12650
12650
  x,
12651
12651
  _,
12652
12652
  this._localJoinTime,
12653
- l ? T.Audio : g.vMsid,
12653
+ l ? T.Audio : m.vMsid,
12654
12654
  v || "",
12655
12655
  v || "",
12656
12656
  s
@@ -12687,7 +12687,7 @@ const xe = (Ae = class extends De {
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
12689
  var l, S, v, x, b, E, _, y;
12690
- const f = Date.now(), g = this.getPubMsid(t, s);
12690
+ const f = Date.now(), m = this.getPubMsid(t, s);
12691
12691
  try {
12692
12692
  const A = yield ja(
12693
12693
  (R) => w(this, null, function* () {
@@ -12696,7 +12696,7 @@ const xe = (Ae = class extends De {
12696
12696
  url: e,
12697
12697
  stream: t,
12698
12698
  updateSourceStream: !1
12699
- }, g)
12699
+ }, m)
12700
12700
  ])) : Promise.reject(new F(U.ERR_INNER, "rts not connected"));
12701
12701
  }),
12702
12702
  Ka,
@@ -12709,10 +12709,10 @@ const xe = (Ae = class extends De {
12709
12709
  !1,
12710
12710
  e,
12711
12711
  i,
12712
- ((l = g.vMsid) == null ? void 0 : l[0]) === T.VideoLarge,
12713
- ((S = g.vMsid) == null ? void 0 : S[0]) === T.VideoSmall,
12714
- ((v = g.vMsid) == null ? void 0 : v[0]) === T.Screen,
12715
- ((x = g.aMsid) == null ? void 0 : x[0]) === T.Audio,
12712
+ ((l = m.vMsid) == null ? void 0 : l[0]) === T.VideoLarge,
12713
+ ((S = m.vMsid) == null ? void 0 : S[0]) === T.VideoSmall,
12714
+ ((v = m.vMsid) == null ? void 0 : v[0]) === T.Screen,
12715
+ ((x = m.aMsid) == null ? void 0 : x[0]) === T.Audio,
12716
12716
  0,
12717
12717
  this.pcTraceId,
12718
12718
  M.traceId || "",
@@ -12734,10 +12734,10 @@ const xe = (Ae = class extends De {
12734
12734
  !1,
12735
12735
  e,
12736
12736
  i,
12737
- ((b = g.vMsid) == null ? void 0 : b[0]) === T.VideoLarge,
12738
- ((E = g.vMsid) == null ? void 0 : E[0]) === T.VideoSmall,
12739
- ((_ = g.vMsid) == null ? void 0 : _[0]) === T.Screen,
12740
- ((y = g.aMsid) == null ? void 0 : y[0]) === T.Audio,
12737
+ ((b = m.vMsid) == null ? void 0 : b[0]) === T.VideoLarge,
12738
+ ((E = m.vMsid) == null ? void 0 : E[0]) === T.VideoSmall,
12739
+ ((_ = m.vMsid) == null ? void 0 : _[0]) === T.Screen,
12740
+ ((y = m.aMsid) == null ? void 0 : y[0]) === T.Audio,
12741
12741
  (A == null ? void 0 : A.errorCode) || -1,
12742
12742
  this.pcTraceId,
12743
12743
  "",
@@ -12749,9 +12749,9 @@ 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, g, l, S;
12752
+ var u, h, p, d, f, m, l, S;
12753
12753
  yield this.dcConnectingPromise;
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 = (g = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === T.Screen)) == null ? void 0 : g.msid, c = [];
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);
12756
12756
  const o = [];
12757
12757
  t.audio && i && o.push(i), O.event(Ae.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
@@ -12965,7 +12965,7 @@ const xe = (Ae = class extends De {
12965
12965
  if (this.connecting && (yield this.connectingPromise), this.connected) {
12966
12966
  yield this.dcConnectingPromise;
12967
12967
  let h = !1, p;
12968
- const { audio: d, video: f, videoSmall: g, screen: l } = this.localStreamManager.publishStreams;
12968
+ const { audio: d, video: f, videoSmall: m, screen: l } = this.localStreamManager.publishStreams;
12969
12969
  d && (o = yield this.publishAdd(
12970
12970
  e,
12971
12971
  d,
@@ -12982,9 +12982,9 @@ const xe = (Ae = class extends De {
12982
12982
  vMsid: T.VideoLarge
12983
12983
  },
12984
12984
  i
12985
- ), h = !1, p = T.VideoLarge, yield Et(100)), g && (o = yield this.publishAdd(
12985
+ ), h = !1, p = T.VideoLarge, yield Et(100)), m && (o = yield this.publishAdd(
12986
12986
  e,
12987
- g,
12987
+ m,
12988
12988
  t,
12989
12989
  {
12990
12990
  vMsid: T.VideoSmall
@@ -13045,7 +13045,7 @@ const xe = (Ae = class extends De {
13045
13045
  let h, p = Date.now();
13046
13046
  this.connected ? h = yield this.subscribeAdd(e) : (c = !0, h = yield this.httpSubscribe(e)), this.reportSubscribeLatency(o, i, p, c);
13047
13047
  const d = Date.now();
13048
- let f = T.VideoLarge, g = o.video || o.screen, l = o.audio;
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
13050
  let S = 0, v = 0, x = 0;
13051
13051
  const E = ((_, y) => {
@@ -13055,10 +13055,10 @@ const xe = (Ae = class extends De {
13055
13055
  return l && !S && (M = this.rts.getSubscribeAudioStats(u.streamUrl).then((C) => {
13056
13056
  if (C.packetsReceived > 0)
13057
13057
  S = Date.now();
13058
- else if (!g)
13058
+ else if (!m)
13059
13059
  return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : !1;
13060
13060
  return !0;
13061
- })), g && !x && (M = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((C) => {
13061
+ })), m && !x && (M = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((C) => {
13062
13062
  if (C.packetsReceived > 0 && (v = Date.now()), C.framesDecoded > 0)
13063
13063
  x = Date.now();
13064
13064
  else
@@ -13154,7 +13154,7 @@ const xe = (Ae = class extends De {
13154
13154
  }, /**
13155
13155
  * @ignore
13156
13156
  */
13157
- m(Ae, "logName", "RtsManager"), Ae);
13157
+ g(Ae, "logName", "RtsManager"), Ae);
13158
13158
  Ee([
13159
13159
  D(H)
13160
13160
  ], xe.prototype, "startConnect", 1);
@@ -13218,11 +13218,11 @@ Ee([
13218
13218
  let Sc = xe;
13219
13219
  class kr {
13220
13220
  constructor(a = Or) {
13221
- m(this, "defaultProfile");
13222
- m(this, "profile");
13223
- m(this, "profileMap", /* @__PURE__ */ new Map());
13224
- m(this, "audioProfile");
13225
- m(this, "contentHint");
13221
+ g(this, "defaultProfile");
13222
+ g(this, "profile");
13223
+ g(this, "profileMap", /* @__PURE__ */ new Map());
13224
+ g(this, "audioProfile");
13225
+ g(this, "contentHint");
13226
13226
  this.defaultProfile = a;
13227
13227
  }
13228
13228
  updateProfile(a, e) {
@@ -13248,7 +13248,8 @@ class kr {
13248
13248
  return;
13249
13249
  const i = this.profileMap.get(this.profile) || (e == null ? void 0 : e.VideoProfileMap.get(this.profile));
13250
13250
  if (i) {
13251
- if (!t && a && // @ts-ignore
13251
+ if (!t && a && // iOS 上如果 track 状态为 ended,applyConstraints 会无返回
13252
+ a.readyState === "live" && // @ts-ignore
13252
13253
  a.applyConstraints)
13253
13254
  try {
13254
13255
  yield a.applyConstraints(i);
@@ -13262,38 +13263,38 @@ class kr {
13262
13263
  class Ga extends De {
13263
13264
  constructor(e) {
13264
13265
  super();
13265
- m(this, "type");
13266
+ g(this, "type");
13266
13267
  // 源视频流
13267
- m(this, "originVideoTrack");
13268
- m(this, "videoSource");
13269
- m(this, "_videoMuted", !1);
13268
+ g(this, "originVideoTrack");
13269
+ g(this, "videoSource");
13270
+ g(this, "_videoMuted", !1);
13270
13271
  // 源音频流
13271
- m(this, "originAudioTrack");
13272
- m(this, "audioSource");
13273
- m(this, "_audioMuted", !1);
13272
+ g(this, "originAudioTrack");
13273
+ g(this, "audioSource");
13274
+ g(this, "_audioMuted", !1);
13274
13275
  // 目标音频流,用于流处理
13275
- m(this, "_targetVideoTrack");
13276
+ g(this, "_targetVideoTrack");
13276
13277
  // 小流
13277
- m(this, "_targetDualVideoTrack");
13278
+ g(this, "_targetDualVideoTrack");
13278
13279
  // 目标音频流,用于推流
13279
- m(this, "_targetAudioTrack");
13280
+ g(this, "_targetAudioTrack");
13280
13281
  // 目标视频流,用于推流
13281
- m(this, "_publishVideoStream");
13282
+ g(this, "_publishVideoStream");
13282
13283
  // 目标辅流,用于推流
13283
- m(this, "_publishDualVideoStream");
13284
+ g(this, "_publishDualVideoStream");
13284
13285
  // 目标音频流,用于推流
13285
- m(this, "_publishAudioStream");
13286
+ g(this, "_publishAudioStream");
13286
13287
  // 用来预览
13287
- m(this, "_previewStream");
13288
- m(this, "plugins", []);
13288
+ g(this, "_previewStream");
13289
+ g(this, "plugins", []);
13289
13290
  // 管理 Profile 相关配置
13290
- m(this, "_profileManager");
13291
- m(this, "cameraVideoConstraints");
13292
- m(this, "micAudioConstraints");
13293
- m(this, "onVideoTrackEnded", () => {
13291
+ g(this, "_profileManager");
13292
+ g(this, "cameraVideoConstraints");
13293
+ g(this, "micAudioConstraints");
13294
+ g(this, "onVideoTrackEnded", () => {
13294
13295
  this.emit("videotrackended");
13295
13296
  });
13296
- m(this, "onAudioTrackEnded", () => {
13297
+ g(this, "onAudioTrackEnded", () => {
13297
13298
  this.emit("audiotrackended");
13298
13299
  });
13299
13300
  this.type = e;
@@ -13389,7 +13390,7 @@ class Ga extends De {
13389
13390
  }
13390
13391
  process(e) {
13391
13392
  return w(this, null, function* () {
13392
- var t, i, s, n, c, o, u, h, p, d, f, g;
13393
+ var t, i, s, n, c, o, u, h, p, d, f, m;
13393
13394
  this._targetAudioTrack = this.originAudioTrack, this._targetVideoTrack = this.originVideoTrack;
13394
13395
  for (const l of this.plugins)
13395
13396
  try {
@@ -13397,7 +13398,7 @@ class Ga extends De {
13397
13398
  } catch (S) {
13398
13399
  console.error(`error in plugin-${l.name}, error: ${S}`);
13399
13400
  }
13400
- 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, (g = this.previewStream) == null || g.deleteTracks({ audio: !0 }));
13401
+ 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 }));
13401
13402
  });
13402
13403
  }
13403
13404
  /**
@@ -13484,26 +13485,26 @@ const Ze = (Vt = class extends De {
13484
13485
  // 设置是否发布屏幕流
13485
13486
  constructor(e, t) {
13486
13487
  super();
13487
- m(this, "pluginManager");
13488
- m(this, "slsReporter");
13488
+ g(this, "pluginManager");
13489
+ g(this, "slsReporter");
13489
13490
  // 当前正在推流的流,只有在使用 HTTP 推流的时候才有值,用于设置 peerconnection 的参数
13490
- m(this, "publishingCameraVideoStream");
13491
- m(this, "publishingScreenVideoStream");
13492
- m(this, "cameraStreamInfo", new Ga(be.AliRtcSdkStreamTypeCapture));
13493
- m(this, "screenStreamInfo", new Ga(be.AliRtcSdkStreamTypeScreen));
13494
- m(this, "streamInfos", [this.cameraStreamInfo, this.screenStreamInfo]);
13495
- m(this, "_audioCaptureDisabled", !1);
13491
+ g(this, "publishingCameraVideoStream");
13492
+ g(this, "publishingScreenVideoStream");
13493
+ g(this, "cameraStreamInfo", new Ga(be.AliRtcSdkStreamTypeCapture));
13494
+ g(this, "screenStreamInfo", new Ga(be.AliRtcSdkStreamTypeScreen));
13495
+ g(this, "streamInfos", [this.cameraStreamInfo, this.screenStreamInfo]);
13496
+ g(this, "_audioCaptureDisabled", !1);
13496
13497
  // 离会再入会,若不另外设置,则保持音频采集关闭
13497
- m(this, "_cameraCaptureDisabled", !1);
13498
+ g(this, "_cameraCaptureDisabled", !1);
13498
13499
  // 相机采集关闭,离会再入会则重置
13499
- m(this, "_publishLocalAudioStreamEnabled", !0);
13500
+ g(this, "_publishLocalAudioStreamEnabled", !0);
13500
13501
  // 设置是否发布音频流
13501
- m(this, "_publishLocalVideoStreamEnabled", !0);
13502
+ g(this, "_publishLocalVideoStreamEnabled", !0);
13502
13503
  // 设置是否发布视频流
13503
- m(this, "_publishLocalScreenStreamEnabled", !0);
13504
+ g(this, "_publishLocalScreenStreamEnabled", !0);
13504
13505
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13505
13506
  const i = (s) => w(this, null, function* () {
13506
- if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.2-beta.2")) {
13507
+ if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.2-beta.3")) {
13507
13508
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13508
13509
  return;
13509
13510
  }
@@ -13713,7 +13714,7 @@ const Ze = (Vt = class extends De {
13713
13714
  }, /**
13714
13715
  * @ignore
13715
13716
  */
13716
- m(Vt, "logName", "LocalStreamManager"), Vt);
13717
+ g(Vt, "logName", "LocalStreamManager"), Vt);
13717
13718
  st([
13718
13719
  D(([r]) => {
13719
13720
  const { audio: a, video: e, screen: t, custom: i, skipProfile: s, videoProfile: n, screenProfile: c } = r;
@@ -13764,10 +13765,10 @@ let Ec = Ze;
13764
13765
  class _c extends Jt {
13765
13766
  constructor() {
13766
13767
  super("AliRtcScreenStandardize", be.AliRtcSdkStreamTypeScreen);
13767
- m(this, "canvas");
13768
- m(this, "lastWidth");
13769
- m(this, "lastHeight");
13770
- m(this, "hasScreenTrack", !1);
13768
+ g(this, "canvas");
13769
+ g(this, "lastWidth");
13770
+ g(this, "lastHeight");
13771
+ g(this, "hasScreenTrack", !1);
13771
13772
  }
13772
13773
  get initOptions() {
13773
13774
  return {
@@ -13838,10 +13839,10 @@ class _c extends Jt {
13838
13839
  class Ac extends Jt {
13839
13840
  constructor() {
13840
13841
  super("blankAudio", be.AliRtcSdkStreamTypeCapture, yi.BOTH);
13841
- m(this, "hasTrack", !1);
13842
- m(this, "oscillator", null);
13843
- m(this, "audioTrack", null);
13844
- m(this, "createAudioTrack", () => {
13842
+ g(this, "hasTrack", !1);
13843
+ g(this, "oscillator", null);
13844
+ g(this, "audioTrack", null);
13845
+ g(this, "createAudioTrack", () => {
13845
13846
  const e = new AudioContext();
13846
13847
  this.oscillator = e.createOscillator();
13847
13848
  const t = e.createGain();
@@ -13872,7 +13873,7 @@ class Ac extends Jt {
13872
13873
  }
13873
13874
  class An {
13874
13875
  constructor(a) {
13875
- m(this, "name", "COMMON");
13876
+ g(this, "name", "COMMON");
13876
13877
  this.name = a || this.name;
13877
13878
  }
13878
13879
  info(...a) {
@@ -13884,14 +13885,14 @@ class An {
13884
13885
  t && console[t](`[${a}][${this.name}]`, ...e);
13885
13886
  }
13886
13887
  }
13887
- m(An, "LEVEL", 0);
13888
+ g(An, "LEVEL", 0);
13888
13889
  class yc {
13889
13890
  constructor() {
13890
- m(this, "logger", new An("AudioMixer"));
13891
- m(this, "audioContext", new AudioContext());
13892
- m(this, "audioDestination", this.audioContext.createMediaStreamDestination());
13893
- m(this, "audioTrack", J0(this.audioDestination.stream));
13894
- m(this, "sourceNodeMap", {});
13891
+ g(this, "logger", new An("AudioMixer"));
13892
+ g(this, "audioContext", new AudioContext());
13893
+ g(this, "audioDestination", this.audioContext.createMediaStreamDestination());
13894
+ g(this, "audioTrack", J0(this.audioDestination.stream));
13895
+ g(this, "sourceNodeMap", {});
13895
13896
  }
13896
13897
  get sourceNodeList() {
13897
13898
  return Object.values(this.sourceNodeMap).map((a) => a.sourceNode).filter((a) => !!a);
@@ -13956,10 +13957,10 @@ const Cc = 4;
13956
13957
  class Rc extends Jt {
13957
13958
  constructor() {
13958
13959
  super("audioMixer", be.AliRtcSdkStreamTypeCapture, yi.AUDIO);
13959
- m(this, "audioMixer");
13960
- m(this, "primaryAudioTrackId");
13961
- m(this, "screenAudioTrackId");
13962
- m(this, "dirty", !1);
13960
+ g(this, "audioMixer");
13961
+ g(this, "primaryAudioTrackId");
13962
+ g(this, "screenAudioTrackId");
13963
+ g(this, "dirty", !1);
13963
13964
  this.zIndex = 8;
13964
13965
  }
13965
13966
  get initOptions() {
@@ -14014,14 +14015,14 @@ class Rc extends Jt {
14014
14015
  }
14015
14016
  class as {
14016
14017
  constructor(a, e) {
14017
- m(this, "originTrack");
14018
- m(this, "originVideo");
14019
- m(this, "targetWidth");
14020
- m(this, "targetHeight");
14021
- m(this, "targetFrameRate");
14022
- m(this, "targetCanvas");
14023
- m(this, "animationFrameId");
14024
- m(this, "resultTrack");
14018
+ g(this, "originTrack");
14019
+ g(this, "originVideo");
14020
+ g(this, "targetWidth");
14021
+ g(this, "targetHeight");
14022
+ g(this, "targetFrameRate");
14023
+ g(this, "targetCanvas");
14024
+ g(this, "animationFrameId");
14025
+ g(this, "resultTrack");
14025
14026
  this.targetWidth = e.width, this.targetHeight = e.height, this.targetFrameRate = e.frameRate, this.originTrack = a, this.originVideo = document.createElement("video"), this.originVideo.muted = !0, this.originVideo.autoplay = !0, this.originVideo.controls = !1, this.targetCanvas = document.createElement("canvas"), this.targetCanvas.width = this.targetWidth, this.targetCanvas.height = this.targetHeight;
14026
14027
  }
14027
14028
  updateOptions(a) {
@@ -14048,7 +14049,7 @@ class as {
14048
14049
  class Ic extends as {
14049
14050
  constructor(e, t) {
14050
14051
  super(e, t);
14051
- m(this, "targetCtx");
14052
+ g(this, "targetCtx");
14052
14053
  this.targetCtx = this.targetCanvas.getContext("2d"), this.startRender = this.startRender.bind(this), this.stopRender = this.startRender.bind(this), this.initStream(e);
14053
14054
  }
14054
14055
  initStream(e) {
@@ -14162,9 +14163,9 @@ function Bc(r, a, e, t = 0, i = 0) {
14162
14163
  class Ya extends as {
14163
14164
  constructor(e, t) {
14164
14165
  super(e, t);
14165
- m(this, "targetCtx");
14166
- m(this, "targetTexture");
14167
- m(this, "locationMap");
14166
+ g(this, "targetCtx");
14167
+ g(this, "targetTexture");
14168
+ g(this, "locationMap");
14168
14169
  this.targetCtx = this.targetCanvas.getContext("webgl2"), this.locationMap = {}, this.startRender = this.startRender.bind(this), this.stopRender = this.startRender.bind(this), this.updateBuffer = this.updateBuffer.bind(this), this.initGL(), this.initStream(e);
14169
14170
  }
14170
14171
  static isSupport() {
@@ -14331,9 +14332,9 @@ onmessage = function(evt) {
14331
14332
  class Za extends as {
14332
14333
  constructor(e, t) {
14333
14334
  super(e, t);
14334
- m(this, "processor");
14335
- m(this, "trackGenerator");
14336
- m(this, "worker");
14335
+ g(this, "processor");
14336
+ g(this, "trackGenerator");
14337
+ g(this, "worker");
14337
14338
  this.processor = new MediaStreamTrackProcessor({ track: e }), this.trackGenerator = new MediaStreamTrackGenerator({ kind: "video" }), this.startTransform();
14338
14339
  }
14339
14340
  static isSupport() {
@@ -14387,8 +14388,8 @@ class Hr {
14387
14388
  class Mc extends Jt {
14388
14389
  constructor() {
14389
14390
  super(...arguments);
14390
- m(this, "hasVideoTrack", !1);
14391
- m(this, "videoScaler");
14391
+ g(this, "hasVideoTrack", !1);
14392
+ g(this, "videoScaler");
14392
14393
  }
14393
14394
  get initOptions() {
14394
14395
  return {
@@ -14432,34 +14433,34 @@ var Lc = Object.defineProperty, Vc = Object.getOwnPropertyDescriptor, je = (r, a
14432
14433
  class Pe extends De {
14433
14434
  constructor(e) {
14434
14435
  super();
14435
- m(this, "self");
14436
- m(this, "userMap", {});
14437
- m(this, "usersViewMap", {});
14438
- m(this, "rtsManager");
14439
- m(this, "localStreamManager");
14440
- m(this, "authInfo");
14441
- m(this, "signalingManager");
14442
- m(this, "pluginManager");
14443
- m(this, "audioMixerPlugin");
14444
- m(this, "dualVideoPlugin");
14445
- m(this, "blankAudioPlugin");
14446
- m(this, "slsReporter");
14447
- m(this, "statsMonitorId");
14448
- m(this, "autoSubAudio", !0);
14449
- m(this, "autoSubVideo", !0);
14450
- m(this, "autoSubScreen", !0);
14451
- m(this, "wantSubAudio", !0);
14452
- m(this, "wantSubVideo", !0);
14453
- m(this, "wantSubScreen", !0);
14454
- m(this, "defaultStreamType", we.AliRtcVideoStreamTypeHigh);
14455
- m(this, "audioMuted", !1);
14456
- m(this, "playoutVolume", 1);
14436
+ g(this, "self");
14437
+ g(this, "userMap", {});
14438
+ g(this, "usersViewMap", {});
14439
+ g(this, "rtsManager");
14440
+ g(this, "localStreamManager");
14441
+ g(this, "authInfo");
14442
+ g(this, "signalingManager");
14443
+ g(this, "pluginManager");
14444
+ g(this, "audioMixerPlugin");
14445
+ g(this, "dualVideoPlugin");
14446
+ g(this, "blankAudioPlugin");
14447
+ g(this, "slsReporter");
14448
+ g(this, "statsMonitorId");
14449
+ g(this, "autoSubAudio", !0);
14450
+ g(this, "autoSubVideo", !0);
14451
+ g(this, "autoSubScreen", !0);
14452
+ g(this, "wantSubAudio", !0);
14453
+ g(this, "wantSubVideo", !0);
14454
+ g(this, "wantSubScreen", !0);
14455
+ g(this, "defaultStreamType", we.AliRtcVideoStreamTypeHigh);
14456
+ g(this, "audioMuted", !1);
14457
+ g(this, "playoutVolume", 1);
14457
14458
  // 更新所有人推拉流地址的定时器
14458
- m(this, "refreshUrlTimer");
14459
+ g(this, "refreshUrlTimer");
14459
14460
  // 音量检测时间间隔
14460
- m(this, "audioVolumeIndicationInterval", 0);
14461
- m(this, "indicationTimer", 0);
14462
- m(this, "parameter", {});
14461
+ g(this, "audioVolumeIndicationInterval", 0);
14462
+ g(this, "indicationTimer", 0);
14463
+ g(this, "parameter", {});
14463
14464
  const { signalingManager: t, slsReporter: i } = e;
14464
14465
  this.signalingManager = t, this.addSignalingManagerListener(), this.slsReporter = i, this.pluginManager = new gc(), this.localStreamManager = new Ec(this.pluginManager, this.slsReporter), this.rtsManager = new Sc(this.localStreamManager, this.slsReporter, this.parameter), this.self = new Q0({
14465
14466
  rtsManager: this.rtsManager,
@@ -14875,7 +14876,7 @@ class Pe extends De {
14875
14876
  /**
14876
14877
  * @ignore
14877
14878
  */
14878
- m(Pe, "logName", "BizControl");
14879
+ g(Pe, "logName", "BizControl");
14879
14880
  je([
14880
14881
  D()
14881
14882
  ], Pe.prototype, "init", 1);
@@ -14940,8 +14941,8 @@ const Br = (r) => w(void 0, null, function* () {
14940
14941
  });
14941
14942
  class Fc {
14942
14943
  constructor(a) {
14943
- m(this, "authInfo");
14944
- m(this, "slsReporter");
14944
+ g(this, "authInfo");
14945
+ g(this, "slsReporter");
14945
14946
  this.slsReporter = a;
14946
14947
  }
14947
14948
  doRequest(a, e) {
@@ -15101,34 +15102,34 @@ class ns {
15101
15102
  }
15102
15103
  class Oc {
15103
15104
  constructor(a) {
15104
- m(this, "taskProfile");
15105
- m(this, "encodeParam");
15106
- m(this, "users", []);
15107
- m(this, "backgroundColor", 0);
15108
- m(this, "backgrounds", []);
15109
- m(this, "watermarks", []);
15110
- m(this, "clockWidgets", []);
15111
- m(this, "cropMode");
15112
- m(this, "mediaProcessMode");
15105
+ g(this, "taskProfile");
15106
+ g(this, "encodeParam");
15107
+ g(this, "users", []);
15108
+ g(this, "backgroundColor", 0);
15109
+ g(this, "backgrounds", []);
15110
+ g(this, "watermarks", []);
15111
+ g(this, "clockWidgets", []);
15112
+ g(this, "cropMode");
15113
+ g(this, "mediaProcessMode");
15113
15114
  this.taskProfile = a;
15114
15115
  }
15115
15116
  }
15116
15117
  class Uc {
15117
15118
  constructor(a, e, t) {
15118
- m(this, "userId");
15119
- m(this, "streamType");
15120
- m(this, "sourceType");
15119
+ g(this, "userId");
15120
+ g(this, "streamType");
15121
+ g(this, "sourceType");
15121
15122
  this.userId = a, this.streamType = e, this.sourceType = t;
15122
15123
  }
15123
15124
  }
15124
15125
  class Hc {
15125
15126
  constructor(a, e, t, i = 0, s = 16777215, n = Ci.NOTO_SERIF_CJKSC_REGULAR) {
15126
- m(this, "x");
15127
- m(this, "y");
15128
- m(this, "fontSize");
15129
- m(this, "zOrder");
15130
- m(this, "fontColor");
15131
- m(this, "fontType");
15127
+ g(this, "x");
15128
+ g(this, "y");
15129
+ g(this, "fontSize");
15130
+ g(this, "zOrder");
15131
+ g(this, "fontColor");
15132
+ g(this, "fontType");
15132
15133
  this.x = a, this.y = e, this.fontSize = t, this.zOrder = i, this.fontColor = s, this.fontType = n;
15133
15134
  }
15134
15135
  toJson(a, e) {
@@ -15145,14 +15146,14 @@ class Hc {
15145
15146
  var yn = /* @__PURE__ */ ((r) => (r[r.NOT_DISPLAY = 0] = "NOT_DISPLAY", r[r.ALWAYS = 1] = "ALWAYS", r[r.WHEN_NO_VIDEO = 2] = "WHEN_NO_VIDEO", r))(yn || {});
15146
15147
  class Cn {
15147
15148
  constructor(a, e, t, i, s, n = 0, c = 1, o = 1) {
15148
- m(this, "url");
15149
- m(this, "x");
15150
- m(this, "y");
15151
- m(this, "width");
15152
- m(this, "height");
15153
- m(this, "alpha");
15154
- m(this, "display", 1);
15155
- m(this, "zOrder");
15149
+ g(this, "url");
15150
+ g(this, "x");
15151
+ g(this, "y");
15152
+ g(this, "width");
15153
+ g(this, "height");
15154
+ g(this, "alpha");
15155
+ g(this, "display", 1);
15156
+ g(this, "zOrder");
15156
15157
  this.url = a, this.x = e, this.y = t, this.width = i, this.height = s, this.zOrder = n, this.alpha = c, this.display = o;
15157
15158
  }
15158
15159
  toJson(a, e) {
@@ -15168,16 +15169,16 @@ class Cn {
15168
15169
  };
15169
15170
  }
15170
15171
  }
15171
- m(Cn, "DisplayType", yn);
15172
+ g(Cn, "DisplayType", yn);
15172
15173
  class jc {
15173
15174
  constructor(a, e, t, i, s = 0, n = 16777215, c = Ci.NOTO_SERIF_CJKSC_REGULAR) {
15174
- m(this, "text");
15175
- m(this, "x");
15176
- m(this, "y");
15177
- m(this, "fontSize");
15178
- m(this, "zOrder");
15179
- m(this, "fontColor");
15180
- m(this, "fontType");
15175
+ g(this, "text");
15176
+ g(this, "x");
15177
+ g(this, "y");
15178
+ g(this, "fontSize");
15179
+ g(this, "zOrder");
15180
+ g(this, "fontColor");
15181
+ g(this, "fontType");
15181
15182
  this.text = a, this.x = e, this.y = t, this.fontSize = i, this.zOrder = s, this.fontColor = n, this.fontType = c;
15182
15183
  }
15183
15184
  toJson(a, e) {
@@ -15194,16 +15195,16 @@ class jc {
15194
15195
  }
15195
15196
  class zc {
15196
15197
  constructor(a, e, t, i, s, n = 0, c) {
15197
- m(this, "userId");
15198
- m(this, "x");
15199
- m(this, "y");
15200
- m(this, "width");
15201
- m(this, "height");
15202
- m(this, "zOrder");
15203
- m(this, "sourceType");
15204
- m(this, "segmentType", bi.LiveTranscodingNoBody);
15205
- m(this, "images", []);
15206
- m(this, "texts", []);
15198
+ g(this, "userId");
15199
+ g(this, "x");
15200
+ g(this, "y");
15201
+ g(this, "width");
15202
+ g(this, "height");
15203
+ g(this, "zOrder");
15204
+ g(this, "sourceType");
15205
+ g(this, "segmentType", bi.LiveTranscodingNoBody);
15206
+ g(this, "images", []);
15207
+ g(this, "texts", []);
15207
15208
  typeof a == "number" ? this.userId = a.toString() : this.userId = a, this.x = e, this.y = t, this.width = i, this.height = s, this.zOrder = n, c && (this.sourceType = c);
15208
15209
  }
15209
15210
  toJson(a, e, t, i) {
@@ -15225,7 +15226,7 @@ class zc {
15225
15226
  const Mt = class Mt {
15226
15227
  constructor() {
15227
15228
  // 使用 static 声明实例
15228
- m(this, "ntpClock");
15229
+ g(this, "ntpClock");
15229
15230
  this.ntpClock = new le.Clock();
15230
15231
  }
15231
15232
  static getInstance() {
@@ -15235,19 +15236,19 @@ const Mt = class Mt {
15235
15236
  return this.ntpClock.now();
15236
15237
  }
15237
15238
  };
15238
- m(Mt, "instance");
15239
+ g(Mt, "instance");
15239
15240
  let jr = Mt;
15240
15241
  const Rn = () => jr.getInstance(), { BrowserUtil: Nr, SystenUtil: Qa } = le;
15241
15242
  class en {
15242
15243
  constructor() {
15243
- m(this, "tracker");
15244
- m(this, "param");
15245
- m(this, "msgCacheArr", []);
15246
- m(this, "index", 0);
15247
- m(this, "stsOpt");
15248
- m(this, "slsToken");
15249
- m(this, "ossToken");
15250
- m(this, "ntpClock");
15244
+ g(this, "tracker");
15245
+ g(this, "param");
15246
+ g(this, "msgCacheArr", []);
15247
+ g(this, "index", 0);
15248
+ g(this, "stsOpt");
15249
+ g(this, "slsToken");
15250
+ g(this, "ossToken");
15251
+ g(this, "ntpClock");
15251
15252
  this.ntpClock = Rn();
15252
15253
  }
15253
15254
  createTracker() {
@@ -15371,10 +15372,10 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15371
15372
  return (((e = r == null ? void 0 : r._source) == null ? void 0 : e[a]) || 0) - (((i = (t = r == null ? void 0 : r._last) == null ? void 0 : t._source) == null ? void 0 : i[a]) || 0);
15372
15373
  }, rn = (r, a) => fe(pe(r, a), 1e3, 1e4), kt = (r, a = 2e7) => fe(r, 1, a), ri = class ri {
15373
15374
  constructor(a) {
15374
- m(this, "engine");
15375
- m(this, "logClient");
15376
- m(this, "authInfo");
15377
- m(this, "ntpClock");
15375
+ g(this, "engine");
15376
+ g(this, "logClient");
15377
+ g(this, "authInfo");
15378
+ g(this, "ntpClock");
15378
15379
  this.logClient = new en(), this.engine = a, this.ntpClock = Rn();
15379
15380
  }
15380
15381
  static getLogClient() {
@@ -15413,7 +15414,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15413
15414
  ctm: Math.floor(s[0].timestamp || 0),
15414
15415
  src: s[0].ssrc || "",
15415
15416
  codec: s[0]._codec || ""
15416
- }, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [];
15417
+ }, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [];
15417
15418
  try {
15418
15419
  if (s.forEach((I) => {
15419
15420
  var V, N, J, j, ce, Z;
@@ -15431,7 +15432,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15431
15432
  d.push(k);
15432
15433
  const L = Pt(ee, Q);
15433
15434
  if (f.push(L), n)
15434
- (N = I._source) != null && N.audioLevel && g.push(tn(I._source.audioLevel)), l.push(0);
15435
+ (N = I._source) != null && N.audioLevel && m.push(tn(I._source.audioLevel)), l.push(0);
15435
15436
  else {
15436
15437
  S.push(rn(I, "totalEncodeTime")), v.push(kt((J = I._source) == null ? void 0 : J.framesPerSecond, 100)), x.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));
15437
15438
  const Fe = pe(I, "totalPacketSendDelay");
@@ -15441,7 +15442,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15441
15442
  }
15442
15443
  }), c.sbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.ps = p.join(","), c.pl = d.join(","), c.plr = f.join(","), n) {
15443
15444
  const I = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
15444
- c.ailevel = g.join(","), c.arpc = l.join(","), c.arsr = I, c.aesr = I, c.publevel = -90, c.rawlevel = -90;
15445
+ c.ailevel = m.join(","), c.arpc = l.join(","), c.arsr = I, c.aesr = I, c.publevel = -90, c.rawlevel = -90;
15445
15446
  } else
15446
15447
  c.em = S.join(","), c.cfps = v.join(","), c.ifps = x.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(",");
15447
15448
  } catch (I) {
@@ -15464,7 +15465,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15464
15465
  ctm: Math.floor(s[0].timestamp || 0),
15465
15466
  src: s[0].ssrc || "",
15466
15467
  codec: s[0]._codec || ""
15467
- }, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], L = [], V = [], N = [], J = [];
15468
+ }, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], L = [], V = [], N = [], J = [];
15468
15469
  try {
15469
15470
  s.forEach((j) => {
15470
15471
  var tt, It;
@@ -15485,9 +15486,9 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15485
15486
  const Ct = pe(j, "jitterBufferDelay"), Xt = pe(j, "jitterBufferEmittedCount");
15486
15487
  if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
15487
15488
  const gt = fe(Ct, 1e3 / Xt, 1e4);
15488
- g.push(gt);
15489
+ m.push(gt);
15489
15490
  } else
15490
- g.push(0);
15491
+ m.push(0);
15491
15492
  const Rt = pe(j, "fecPacketsReceived");
15492
15493
  b.push(Pt(Rt, Se));
15493
15494
  const Be = pe(j, "retransmittedPacketsReceived"), Re = Se + ot - Be;
@@ -15519,7 +15520,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15519
15520
  const Yt = pe(j, "jitterBufferMinimumDelay");
15520
15521
  Yt && We ? L.push(fe(Yt, 1e3 / We, 3e4)) : L.push(0);
15521
15522
  }
15522
- }), 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 = g.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = S.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = x.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(","));
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 = S.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = x.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(","));
15523
15524
  } catch (j) {
15524
15525
  }
15525
15526
  this.log({
@@ -15539,12 +15540,12 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15539
15540
  if (a.length <= 0)
15540
15541
  return;
15541
15542
  const e = [], t = [], i = [], s = [], n = [], c = [], o = [], u = [], h = [], p = [];
15542
- a.forEach((f, g) => {
15543
+ a.forEach((f, m) => {
15543
15544
  var S;
15544
15545
  if (!f.timestamp)
15545
15546
  return;
15546
15547
  const l = (S = f._last) != null && S.timestamp ? f.timestamp - f._last.timestamp : 1e3;
15547
- 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), g % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
15548
+ 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(""));
15548
15549
  });
15549
15550
  const d = {
15550
15551
  ctm: Math.floor(a[0].timestamp || 0),
@@ -16122,7 +16123,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
16122
16123
  return e;
16123
16124
  }
16124
16125
  };
16125
- m(ri, "staticClient");
16126
+ g(ri, "staticClient");
16126
16127
  let zr = ri;
16127
16128
  var $c = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, W = (r, a, e, t) => {
16128
16129
  for (var i = t > 1 ? void 0 : t ? Kc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
@@ -16132,21 +16133,21 @@ var $c = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, W = (r, a,
16132
16133
  const z = (K = class extends De {
16133
16134
  constructor(e) {
16134
16135
  super();
16135
- m(this, "channelProfile");
16136
- m(this, "clientRole");
16137
- m(this, "signalingManager");
16138
- m(this, "bizControl");
16139
- m(this, "liveTranscoding");
16140
- m(this, "maxSignalingConnectRetryCount");
16136
+ g(this, "channelProfile");
16137
+ g(this, "clientRole");
16138
+ g(this, "signalingManager");
16139
+ g(this, "bizControl");
16140
+ g(this, "liveTranscoding");
16141
+ g(this, "maxSignalingConnectRetryCount");
16141
16142
  // 房间信令重连最大次数
16142
- m(this, "slsReporter");
16143
- m(this, "connectState", ue.AliRtcConnectionStatusInit);
16144
- m(this, "networkError", !1);
16145
- m(this, "_audioOnlyMode", !1);
16146
- m(this, "_authInfoWillExpireTimer", null);
16147
- m(this, "_authInfoExpiredTimer", null);
16148
- m(this, "_serverCheckAuthInfoTimestamp", null);
16149
- m(this, "_localCheckAuthInfoTimestamp", null);
16143
+ g(this, "slsReporter");
16144
+ g(this, "connectState", ue.AliRtcConnectionStatusInit);
16145
+ g(this, "networkError", !1);
16146
+ g(this, "_audioOnlyMode", !1);
16147
+ g(this, "_authInfoWillExpireTimer", null);
16148
+ g(this, "_authInfoExpiredTimer", null);
16149
+ g(this, "_serverCheckAuthInfoTimestamp", null);
16150
+ g(this, "_localCheckAuthInfoTimestamp", null);
16150
16151
  const t = Date.now();
16151
16152
  O.init(), this.slsReporter = new zr(this), this.channelProfile = bt.AliRtcSdkCommunication, this.clientRole = Bt.AliRtcSdkLive, this.liveTranscoding = new Fc(this.slsReporter), this.signalingManager = new ss(
16152
16153
  this.channelProfile,
@@ -16248,24 +16249,24 @@ const z = (K = class extends De {
16248
16249
  );
16249
16250
  }), (n = this.publisher) == null || n.on(
16250
16251
  "localDeviceException",
16251
- (d, f, g = "") => {
16252
- this.emit("localDeviceException", d, f, g);
16252
+ (d, f, m = "") => {
16253
+ this.emit("localDeviceException", d, f, m);
16253
16254
  }
16254
- ), (c = this.publisher) == null || c.on("audioPublishStateChanged", (d, f, g) => {
16255
+ ), (c = this.publisher) == null || c.on("audioPublishStateChanged", (d, f, m) => {
16255
16256
  var l;
16256
- this.emit("audioPublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16257
- }), (o = this.publisher) == null || o.on("videoPublishStateChanged", (d, f, g) => {
16257
+ this.emit("audioPublishStateChanged", d, f, m, (l = this.channel) != null ? l : "");
16258
+ }), (o = this.publisher) == null || o.on("videoPublishStateChanged", (d, f, m) => {
16258
16259
  var l;
16259
- this.emit("videoPublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16260
- }), (u = this.publisher) == null || u.on("dualStreamPublishStateChanged", (d, f, g) => {
16260
+ this.emit("videoPublishStateChanged", d, f, m, (l = this.channel) != null ? l : "");
16261
+ }), (u = this.publisher) == null || u.on("dualStreamPublishStateChanged", (d, f, m) => {
16261
16262
  var l;
16262
- this.emit("dualStreamPublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16263
- }), (h = this.publisher) == null || h.on("screenPublishStateChanged", (d, f, g) => {
16263
+ this.emit("dualStreamPublishStateChanged", d, f, m, (l = this.channel) != null ? l : "");
16264
+ }), (h = this.publisher) == null || h.on("screenPublishStateChanged", (d, f, m) => {
16264
16265
  var l;
16265
- this.emit("screenSharePublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16266
- }), (p = this.publisher) == null || p.on("dataPublishStateChanged", (d, f, g) => {
16266
+ this.emit("screenSharePublishStateChanged", d, f, m, (l = this.channel) != null ? l : "");
16267
+ }), (p = this.publisher) == null || p.on("dataPublishStateChanged", (d, f, m) => {
16267
16268
  var l;
16268
- this.emit("dataPublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16269
+ this.emit("dataPublishStateChanged", d, f, m, (l = this.channel) != null ? l : "");
16269
16270
  });
16270
16271
  }
16271
16272
  occurError(e, t) {
@@ -16570,8 +16571,8 @@ const z = (K = class extends De {
16570
16571
  yield (p = this.publisher) == null ? void 0 : p.startPublish(!1, e);
16571
16572
  } catch (d) {
16572
16573
  const f = [];
16573
- n != null && n.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), n != null && n.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((g) => {
16574
- this.occurError(new F(g, `auto publish stream failed, ${d.message || ""}`));
16574
+ n != null && n.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), n != null && n.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((m) => {
16575
+ this.occurError(new F(m, `auto publish stream failed, ${d.message || ""}`));
16575
16576
  });
16576
16577
  }
16577
16578
  });
@@ -17105,16 +17106,16 @@ const z = (K = class extends De {
17105
17106
  }
17106
17107
  switchCamera(e, t) {
17107
17108
  return w(this, null, function* () {
17108
- var s, n, c, o, u, h, p, d, f, g, l, S, v;
17109
+ var s, n, c, o, u, h;
17109
17110
  if (this._audioOnlyMode)
17110
17111
  throw new F(U.ERR_INNER, "Cannot switch camera in audio only mode");
17111
17112
  const i = {};
17112
- if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? ni.CAMERA_FRONT : ni.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
17113
- (u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (p = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : p.video) == null || d.disableVideo(), (S = (l = (g = (f = this.publisher) == null ? void 0 : f.publishStreams) == null ? void 0 : g.video) == null ? void 0 : l.videoTrack) == null || S.stop());
17114
- const x = {
17113
+ if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : t || (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? ni.CAMERA_FRONT : ni.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
17114
+ (u = (o = this.publisher) == null ? void 0 : o.cameraTrack) == null || u.stop();
17115
+ const p = {
17115
17116
  video: !0
17116
17117
  };
17117
- t && (x.mediaStream = new MediaStream([t])), yield (v = this.publisher) == null ? void 0 : v.createLocalStream(x);
17118
+ t && (p.mediaStream = new MediaStream([t])), yield (h = this.publisher) == null ? void 0 : h.createLocalStream(p);
17118
17119
  }
17119
17120
  });
17120
17121
  }
@@ -17335,29 +17336,29 @@ const z = (K = class extends De {
17335
17336
  }, /**
17336
17337
  * @ignore
17337
17338
  */
17338
- m(K, "logName", "AliRtcEngine"), /**
17339
+ g(K, "logName", "AliRtcEngine"), /**
17339
17340
  * @ignore
17340
17341
  */
17341
- m(K, "logError", !0), /**
17342
+ g(K, "logError", !0), /**
17342
17343
  * 检查浏览器是否支持 WebRTC
17343
17344
  * @param {string} direction
17344
17345
  * @returns {Promise<AliRtcCheckResult>}
17345
17346
  */
17346
- m(K, "isSupported", I0), /**
17347
+ g(K, "isSupported", I0), /**
17347
17348
  * 检查浏览器是否支持开启大小流
17348
17349
  * @returns {boolean}
17349
17350
  */
17350
- m(K, "isDualVideoStreamSupported", Hr.isSupport), /**
17351
+ g(K, "isDualVideoStreamSupported", Hr.isSupport), /**
17351
17352
  * 获取摄像头列表
17352
17353
  * @returns {Promise<string[]>}
17353
17354
  */
17354
- m(K, "getCameraList", () => w(K, null, function* () {
17355
+ g(K, "getCameraList", () => w(K, null, function* () {
17355
17356
  return (yield le.getCameraList()).filter((t) => t.deviceId);
17356
- })), m(K, "getMicrophoneList", () => w(K, null, function* () {
17357
+ })), g(K, "getMicrophoneList", () => w(K, null, function* () {
17357
17358
  return (yield le.getMicList()).filter((t) => t.deviceId);
17358
- })), m(K, "getSpeakerList", () => w(K, null, function* () {
17359
+ })), g(K, "getSpeakerList", () => w(K, null, function* () {
17359
17360
  return (yield le.getSpeakerList()).filter((t) => t.deviceId);
17360
- })), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", bt), m(K, "AliRtcSdkClientRole", Bt), m(K, "AliRtcVideoStreamType", we), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", Gt), m(K, "AliRtcPublishState", Y), m(K, "AliRtcSubscribeState", he), m(K, "AliRtcRawDataStreamType", be), m(K, "AliRtcLogLevel", dn), m(K, "AliRtcEngineLocalDeviceType", dt), m(K, "AliRtcEngineLocalDeviceExceptionType", _e), m(K, "AliRtcConnectionStatus", ue), m(K, "AliRtcConnectionStatusChangeReason", zt), m(K, "AliRtcPlugin", Jt), m(K, "AliRtcPluginTrackType", yi), m(K, "AliRtcLiveTranscodingParam", Mr), m(K, "AliRtcLiveTranscodingEncodeParam", xn), m(K, "AliRtcLiveTranscodingMixParam", Oc), m(K, "AliRtcLiveTranscodingSingleParam", Uc), m(K, "AliRtcTranscodingClockWidget", Hc), m(K, "AliRtcTranscodingImage", Cn), m(K, "AliRtcTranscodingText", jc), m(K, "AliRtcTranscodingUser", zc), m(K, "AliRtcLiveTranscodingMixMode", vi), m(K, "AliRtcLiveTranscodingStreamType", ln), m(K, "AliRtcLiveTranscodingSourceType", ai), m(K, "AliRtcLiveTranscodingTaskProfile", fn), m(K, "AliRtcLiveTranscodingAudioSampleRate", Qr), m(K, "AliRtcLiveTranscodingSegmentType", bi), m(K, "AliRtcLiveTranscodingFontType", Ci), m(K, "AliRtcLiveTranscodingCropMode", pn), m(K, "AliRtcLiveTranscodingMediaProcessMode", es), m(K, "AliRtcLiveTranscodingState", gn), m(K, "AliRtcLiveTranscodingErrorCode", ht), m(K, "AliRtcTrascodingPublishTaskStatus", mn), m(K, "AliRtcDataChannelMsg", Kt), m(K, "AliRtcDataMsgType", En), m(K, "Plugin", Jt), K);
17361
+ })), g(K, "_instance"), g(K, "AliRtcSdkChannelProfile", bt), g(K, "AliRtcSdkClientRole", Bt), g(K, "AliRtcVideoStreamType", we), g(K, "AliRtcVideoTrack", se), g(K, "AliRtcAudioTrack", Gt), g(K, "AliRtcPublishState", Y), g(K, "AliRtcSubscribeState", he), g(K, "AliRtcRawDataStreamType", be), g(K, "AliRtcLogLevel", dn), g(K, "AliRtcEngineLocalDeviceType", dt), g(K, "AliRtcEngineLocalDeviceExceptionType", _e), g(K, "AliRtcConnectionStatus", ue), g(K, "AliRtcConnectionStatusChangeReason", zt), g(K, "AliRtcPlugin", Jt), g(K, "AliRtcPluginTrackType", yi), g(K, "AliRtcLiveTranscodingParam", Mr), g(K, "AliRtcLiveTranscodingEncodeParam", xn), g(K, "AliRtcLiveTranscodingMixParam", Oc), g(K, "AliRtcLiveTranscodingSingleParam", Uc), g(K, "AliRtcTranscodingClockWidget", Hc), g(K, "AliRtcTranscodingImage", Cn), g(K, "AliRtcTranscodingText", jc), g(K, "AliRtcTranscodingUser", zc), g(K, "AliRtcLiveTranscodingMixMode", vi), g(K, "AliRtcLiveTranscodingStreamType", ln), g(K, "AliRtcLiveTranscodingSourceType", ai), g(K, "AliRtcLiveTranscodingTaskProfile", fn), g(K, "AliRtcLiveTranscodingAudioSampleRate", Qr), g(K, "AliRtcLiveTranscodingSegmentType", bi), g(K, "AliRtcLiveTranscodingFontType", Ci), g(K, "AliRtcLiveTranscodingCropMode", pn), g(K, "AliRtcLiveTranscodingMediaProcessMode", es), g(K, "AliRtcLiveTranscodingState", gn), g(K, "AliRtcLiveTranscodingErrorCode", ht), g(K, "AliRtcTrascodingPublishTaskStatus", mn), g(K, "AliRtcDataChannelMsg", Kt), g(K, "AliRtcDataMsgType", En), g(K, "Plugin", Jt), K);
17361
17362
  W([
17362
17363
  D()
17363
17364
  ], z.prototype, "destroy", 1);