aliyun-rtc-sdk 6.14.3 → 6.14.4-beta.1

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.
@@ -1,25 +1,25 @@
1
- var Un = Object.defineProperty, Hn = Object.defineProperties;
2
- var jn = Object.getOwnPropertyDescriptors;
3
- var di = Object.getOwnPropertySymbols, zn = Object.getPrototypeOf, gs = Object.prototype.hasOwnProperty, ms = Object.prototype.propertyIsEnumerable, Wn = Reflect.get;
4
- var Pi = (r, a, e) => a in r ? Un(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, G = (r, a) => {
1
+ var jn = Object.defineProperty, zn = Object.defineProperties;
2
+ var Wn = Object.getOwnPropertyDescriptors;
3
+ var li = Object.getOwnPropertySymbols, $n = Object.getPrototypeOf, xs = Object.prototype.hasOwnProperty, Ss = Object.prototype.propertyIsEnumerable, Kn = Reflect.get;
4
+ var Bi = (r, a, e) => a in r ? jn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, G = (r, a) => {
5
5
  for (var e in a || (a = {}))
6
- gs.call(a, e) && Pi(r, e, a[e]);
7
- if (di)
8
- for (var e of di(a))
9
- ms.call(a, e) && Pi(r, e, a[e]);
6
+ xs.call(a, e) && Bi(r, e, a[e]);
7
+ if (li)
8
+ for (var e of li(a))
9
+ Ss.call(a, e) && Bi(r, e, a[e]);
10
10
  return r;
11
- }, ut = (r, a) => Hn(r, jn(a));
11
+ }, ut = (r, a) => zn(r, Wn(a));
12
12
  var wt = (r, a) => {
13
13
  var e = {};
14
14
  for (var t in r)
15
- gs.call(r, t) && a.indexOf(t) < 0 && (e[t] = r[t]);
16
- if (r != null && di)
17
- for (var t of di(r))
18
- a.indexOf(t) < 0 && ms.call(r, t) && (e[t] = r[t]);
15
+ xs.call(r, t) && a.indexOf(t) < 0 && (e[t] = r[t]);
16
+ if (r != null && li)
17
+ for (var t of li(r))
18
+ a.indexOf(t) < 0 && Ss.call(r, t) && (e[t] = r[t]);
19
19
  return e;
20
20
  };
21
- var g = (r, a, e) => (Pi(r, typeof a != "symbol" ? a + "" : a, e), e);
22
- var ki = (r, a, e) => Wn(zn(r), e, a);
21
+ var g = (r, a, e) => (Bi(r, typeof a != "symbol" ? a + "" : a, e), e);
22
+ var Ni = (r, a, e) => Kn($n(r), e, a);
23
23
  var w = (r, a, e) => new Promise((t, i) => {
24
24
  var s = (o) => {
25
25
  try {
@@ -36,13 +36,13 @@ var w = (r, a, e) => new Promise((t, i) => {
36
36
  }, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
37
37
  c((e = e.apply(r, a)).next());
38
38
  });
39
- import { AliRTS as le, EConnectStatus as Bi, EDatachannelStatus as xs } from "aliyun-rts-sdk";
39
+ import { AliRTS as le, EConnectStatus as Li, EDatachannelStatus as vs } from "aliyun-rts-sdk";
40
40
  import De from "eventemitter3";
41
- var $n = Object.defineProperty, Kn = (r, a, e) => a in r ? $n(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, Dt = (r, a, e) => (Kn(r, typeof a != "symbol" ? a + "" : a, e), e), Ni = { exports: {} }, Mi = { exports: {} }, Li, Ss;
41
+ var qn = Object.defineProperty, Jn = (r, a, e) => a in r ? qn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, Dt = (r, a, e) => (Jn(r, typeof a != "symbol" ? a + "" : a, e), e), Mi = { exports: {} }, Vi = { exports: {} }, Fi, bs;
42
42
  function Ve() {
43
- if (Ss)
44
- return Li;
45
- Ss = 1, Date.now = Date.now || function() {
43
+ if (bs)
44
+ return Fi;
45
+ bs = 1, Date.now = Date.now || function() {
46
46
  return (/* @__PURE__ */ new Date()).getTime();
47
47
  };
48
48
  var r = Date.now(), a = function() {
@@ -479,26 +479,26 @@ function Ve() {
479
479
  return c;
480
480
  }
481
481
  };
482
- return Li = t, Li;
482
+ return Fi = t, Fi;
483
483
  }
484
- var Vi = { exports: {} }, Fi = { exports: {} }, Oi, vs;
485
- function qn() {
486
- if (vs)
487
- return Oi;
488
- vs = 1;
484
+ var Oi = { exports: {} }, Ui = { exports: {} }, Hi, Es;
485
+ function Gn() {
486
+ if (Es)
487
+ return Hi;
488
+ Es = 1;
489
489
  var r = Ve();
490
- return Oi = function(a, e, t) {
490
+ return Hi = function(a, e, t) {
491
491
  typeof a == "object" && (a = r.serialize(a));
492
492
  var i = e + a + (t ? "&post_res=" : "");
493
493
  window && window.navigator && typeof window.navigator.sendBeacon == "function" ? window.navigator.sendBeacon(i, t || "&post_res=") : r.warn("[arms] navigator.sendBeacon not surported");
494
- }, Oi;
494
+ }, Hi;
495
495
  }
496
- var bs;
497
- function Jn() {
498
- if (bs)
499
- return Fi.exports;
500
- bs = 1;
501
- var r = Ve(), a = qn(), e = "aokcdqn3ly@e629dabd48a9933", t = function(s, n) {
496
+ var _s;
497
+ function Xn() {
498
+ if (_s)
499
+ return Ui.exports;
500
+ _s = 1;
501
+ var r = Ve(), a = Gn(), e = "aokcdqn3ly@e629dabd48a9933", t = function(s, n) {
502
502
  var c;
503
503
  if (n.t === "error" && (c = s.requestQueue[0]) && c.t === "error" && n.msg === c.msg)
504
504
  return n.times = c.times + 1, void (s.requestQueue[0] = n);
@@ -726,14 +726,14 @@ function Jn() {
726
726
  return !(c = h && h.length <= 20) && r.warn("[retcode] invalid key: " + h), o["x-" + h] = u, c;
727
727
  }), c ? this._lg("custom", o, n || 1) : this;
728
728
  }
729
- }, Fi.exports = i, Fi.exports;
729
+ }, Ui.exports = i, Ui.exports;
730
730
  }
731
- var Es;
732
- function Gn() {
733
- if (Es)
734
- return Vi.exports;
735
- Es = 1;
736
- var r = Ve(), a = Jn(), e = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], t = function(s) {
731
+ var As;
732
+ function Yn() {
733
+ if (As)
734
+ return Oi.exports;
735
+ As = 1;
736
+ var r = Ve(), a = Xn(), e = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], t = function(s) {
737
737
  var n = (s.key || "default").split("::");
738
738
  return n.length > 1 ? r.ext(s, {
739
739
  group: n[0],
@@ -918,15 +918,15 @@ function Gn() {
918
918
  c.success = s.success === !1 ? 0 : 1, this._lg("event", c, n);
919
919
  }
920
920
  }
921
- }), i._super = a, i._root = a, a.Reporter = i, Vi.exports = i, Vi.exports;
921
+ }), i._super = a, i._root = a, a.Reporter = i, Oi.exports = i, Oi.exports;
922
922
  }
923
- var Ui = { exports: {} }, _s;
924
- function Xn() {
925
- if (_s)
926
- return Ui.exports;
927
- _s = 1;
923
+ var ji = { exports: {} }, ys;
924
+ function Zn() {
925
+ if (ys)
926
+ return ji.exports;
927
+ ys = 1;
928
928
  var r = Ve(), a = typeof window == "object" ? window : {}, e = "catch", t = a.__oFetch_ || a.fetch;
929
- return t = typeof t == "function" ? t : void 0, Ui.exports = function(i, s) {
929
+ return t = typeof t == "function" ? t : void 0, ji.exports = function(i, s) {
930
930
  var n = -1;
931
931
  typeof i == "object" && (n = i.z, i = r.serialize(i));
932
932
  var c = s + i;
@@ -941,15 +941,15 @@ function Xn() {
941
941
  a[o] = void 0;
942
942
  }, u.src = c, u = null;
943
943
  }
944
- }, Ui.exports;
944
+ }, ji.exports;
945
945
  }
946
- var Hi = { exports: {} }, As;
947
- function Yn() {
948
- if (As)
949
- return Hi.exports;
950
- As = 1;
946
+ var zi = { exports: {} }, Cs;
947
+ function Qn() {
948
+ if (Cs)
949
+ return zi.exports;
950
+ Cs = 1;
951
951
  var r = Ve(), a = typeof window == "object" ? window : {}, e = a.__oXMLHttpRequest_ || a.XMLHttpRequest;
952
- return e = typeof e == "function" ? e : void 0, Hi.exports = function(t, i) {
952
+ return e = typeof e == "function" ? e : void 0, zi.exports = function(t, i) {
953
953
  try {
954
954
  var s = new e();
955
955
  s.open("POST", i, !0), s.setRequestHeader("Content-Type", "text/plain"), s.send(JSON.stringify(t));
@@ -957,15 +957,15 @@ function Yn() {
957
957
  r.warn(`[retcode] Failed to log, exception is :
958
958
  ` + n);
959
959
  }
960
- }, Hi.exports;
960
+ }, zi.exports;
961
961
  }
962
- var ji, ys;
963
- function Zn() {
964
- if (ys)
965
- return ji;
966
- ys = 1;
962
+ var Wi, Rs;
963
+ function eo() {
964
+ if (Rs)
965
+ return Wi;
966
+ Rs = 1;
967
967
  var r = Ve();
968
- return ji = function(a, e) {
968
+ return Wi = function(a, e) {
969
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];
@@ -1137,19 +1137,19 @@ function Zn() {
1137
1137
  return this;
1138
1138
  }
1139
1139
  });
1140
- }, ji;
1140
+ }, Wi;
1141
1141
  }
1142
- var Cs = {}, Rs;
1143
- function Wr() {
1144
- return Rs || (Rs = 1, Cs.TIMING_KEYS = ["startTime", "fetchStart", "domainLookupStart", "domainLookupEnd", "connectStart", "connectEnd", "requestStart", "responseStart", "responseEnd", "", "domInteractive", "", "domContentLoadedEventEnd", "", "loadEventStart", "", "msFirstPaint", "secureConnectionStart", "redirectStart", "redirectEnd"]), Cs;
1142
+ var Is = {}, ws;
1143
+ function Kr() {
1144
+ return ws || (ws = 1, Is.TIMING_KEYS = ["startTime", "fetchStart", "domainLookupStart", "domainLookupEnd", "connectStart", "connectEnd", "requestStart", "responseStart", "responseEnd", "", "domInteractive", "", "domContentLoadedEventEnd", "", "loadEventStart", "", "msFirstPaint", "secureConnectionStart", "redirectStart", "redirectEnd"]), Is;
1145
1145
  }
1146
- var zi, Is;
1147
- function Qn() {
1148
- if (Is)
1149
- return zi;
1150
- Is = 1;
1151
- var r = Ve(), a = Wr(), e = a.TIMING_KEYS;
1152
- return zi = function() {
1146
+ var $i, Ds;
1147
+ function to() {
1148
+ if (Ds)
1149
+ return $i;
1150
+ Ds = 1;
1151
+ var r = Ve(), a = Kr(), e = a.TIMING_KEYS;
1152
+ return $i = function() {
1153
1153
  var t = r.win || {}, i = t.performance;
1154
1154
  if (!i || typeof i != "object" || typeof i.getEntriesByType != "function")
1155
1155
  return null;
@@ -1168,15 +1168,15 @@ function Qn() {
1168
1168
  f >= 0 && f < 6e5 && (s[h] = f);
1169
1169
  }
1170
1170
  }), s.res = JSON.stringify(c), s;
1171
- }, zi;
1171
+ }, $i;
1172
1172
  }
1173
- var Wi, ws;
1174
- function eo() {
1175
- if (ws)
1176
- return Wi;
1177
- ws = 1;
1178
- var r = Ve(), a = Wr(), e = a.TIMING_KEYS;
1179
- return Wi = function() {
1173
+ var Ki, Ts;
1174
+ function io() {
1175
+ if (Ts)
1176
+ return Ki;
1177
+ Ts = 1;
1178
+ var r = Ve(), a = Kr(), e = a.TIMING_KEYS;
1179
+ return Ki = function() {
1180
1180
  var t = r.win || {}, i = t.performance;
1181
1181
  if (!i || typeof i != "object")
1182
1182
  return null;
@@ -1213,12 +1213,12 @@ function eo() {
1213
1213
  f >= 0 && f < 36e5 && (s.fpt = f);
1214
1214
  }
1215
1215
  return o === 1 && n[e[1]] > 0 ? s.begin = n[e[1]] : o === 2 && s.load > 0 ? s.begin = c - s.load : s.begin = c, s;
1216
- }, Wi;
1216
+ }, Ki;
1217
1217
  }
1218
- var Ds, Ts;
1219
- function to() {
1220
- return Ts || (Ts = 1, Ds = function(r, a, e) {
1221
- var t = Ve(), i = Qn(), s = eo(), n = null, c = e.documentElement, o = a.innerWidth || c.clientWidth || e.body.clientWidth, u = a.innerHeight || c.clientHeight || e.body.clientHeight, h = a.navigator.connection, p = {
1218
+ var Ps, ks;
1219
+ function ro() {
1220
+ return ks || (ks = 1, Ps = function(r, a, e) {
1221
+ var t = Ve(), i = to(), s = io(), n = null, c = e.documentElement, o = a.innerWidth || c.clientWidth || e.body.clientWidth, u = a.innerHeight || c.clientHeight || e.body.clientHeight, h = a.navigator.connection, p = {
1222
1222
  sr: screen.width + "x" + screen.height,
1223
1223
  vp: o + "x" + u,
1224
1224
  ct: h ? h.effectiveType || h.type : ""
@@ -1385,15 +1385,15 @@ function to() {
1385
1385
  }, !1, !0).on(a, "unhandledrejection", function(l) {
1386
1386
  n && n.errorHandler(l);
1387
1387
  }), r;
1388
- }), Ds;
1388
+ }), Ps;
1389
1389
  }
1390
- var $i, Ps;
1391
- function io() {
1392
- if (Ps)
1393
- return $i;
1394
- Ps = 1;
1390
+ var qi, Bs;
1391
+ function so() {
1392
+ if (Bs)
1393
+ return qi;
1394
+ Bs = 1;
1395
1395
  var r = Ve(), a = 500;
1396
- return $i = function(e, t, i) {
1396
+ return qi = function(e, t, i) {
1397
1397
  function s(p, d, f) {
1398
1398
  var m = 0, l = p.tagName;
1399
1399
  if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
@@ -1472,17 +1472,17 @@ function io() {
1472
1472
  }, a);
1473
1473
  }
1474
1474
  });
1475
- }, $i;
1475
+ }, qi;
1476
1476
  }
1477
- var ks, Bs;
1478
- function ro() {
1479
- return Bs || (Bs = 1, ks = function(r, a) {
1477
+ var Ns, Ls;
1478
+ function ao() {
1479
+ return Ls || (Ls = 1, Ns = function(r, a) {
1480
1480
  var e = Ve(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, m, l, x, v, S, b, E, _, y) {
1481
1481
  var A = e.J(m) || null, R = e.safetyCall(p, [A, f], null);
1482
1482
  if (!R)
1483
1483
  return !1;
1484
- var M = R.code || l, C = !("success" in R) || R.success;
1485
- h.api(d, C, x, M, R.msg, v, S, b, C ? {} : E, i, _, y);
1484
+ var L = R.code || l, C = !("success" in R) || R.success;
1485
+ h.api(d, C, x, L, R.msg, v, S, b, C ? {} : E, i, _, y);
1486
1486
  }, n = "fetch", c = "__oFetch_", o = "__oXMLHttpRequest_", u = "XMLHttpRequest";
1487
1487
  return e.ext(r.prototype, {
1488
1488
  removeHook: function(h, p) {
@@ -1503,7 +1503,7 @@ function ro() {
1503
1503
  if (!e.checkAPI(b, !0) || e.ignoreByRule(b, _))
1504
1504
  return p.apply(a, m);
1505
1505
  b = e.filterByRule(b, E, v.ignoreApiPath ? v.ignoreApiPath : v.apiHelper);
1506
- var A = v.enableLinkTrace, R = "", M = "", C = l.getConfig("pid"), I = null, P = l.getConfig("sample"), B = l.getConfig("linkType"), $ = 1;
1506
+ var A = v.enableLinkTrace, R = "", L = "", C = l.getConfig("pid"), I = null, P = l.getConfig("sample"), B = l.getConfig("linkType"), $ = 1;
1507
1507
  if (P && !l.sampling(P) && ($ = 0), A) {
1508
1508
  var q = "";
1509
1509
  try {
@@ -1519,7 +1519,7 @@ function ro() {
1519
1519
  switch (B) {
1520
1520
  case "arms":
1521
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);
1522
+ ae ? R = ae : (R = l.getTraceId()["EagleEye-TraceID"], m[0].headers.append("EagleEye-TraceID", R)), Q ? L = Q : (L = l.getPageviewId()["EagleEye-SessionID"], m[0].headers.append("EagleEye-SessionID", L)), te || m[0].headers.append("EagleEye-pAppName", C);
1523
1523
  break;
1524
1524
  case "b3":
1525
1525
  var ee = m[0].headers.get("X-B3-TraceId");
@@ -1529,12 +1529,12 @@ function ro() {
1529
1529
  var k = l.getB3TraceId($);
1530
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
- M = l.pageview;
1532
+ L = l.pageview;
1533
1533
  break;
1534
1534
  case "tracing":
1535
1535
  default:
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;
1536
+ var M = m[0].headers.get("uber-trace-id");
1537
+ M ? R = M.split(":")[0] : (M = l.getUberTraceId($), m[0].headers.append("uber-trace-id", M["uber-trace-id"]), R = M.traceId), L = l.pageview;
1538
1538
  }
1539
1539
  } catch (J) {
1540
1540
  e.warn(`[retcode] fetch failed to set header, exception is :
@@ -1543,7 +1543,7 @@ function ro() {
1543
1543
  else
1544
1544
  switch (f.headers = f.headers ? f.headers : {}, B) {
1545
1545
  case "arms":
1546
- f.headers["EagleEye-TraceID"] ? R = f.headers["EagleEye-TraceID"] : (R = l.getTraceId()["EagleEye-TraceID"], f.headers["EagleEye-TraceID"] = R), f.headers["EagleEye-SessionID"] ? M = f.headers["EagleEye-SessionID"] : (M = l.getPageviewId()["EagleEye-SessionID"], f.headers["EagleEye-SessionID"] = M), f.headers["EagleEye-pAppName"] || (f.headers["EagleEye-pAppName"] = C);
1546
+ f.headers["EagleEye-TraceID"] ? R = f.headers["EagleEye-TraceID"] : (R = l.getTraceId()["EagleEye-TraceID"], f.headers["EagleEye-TraceID"] = R), f.headers["EagleEye-SessionID"] ? L = f.headers["EagleEye-SessionID"] : (L = l.getPageviewId()["EagleEye-SessionID"], f.headers["EagleEye-SessionID"] = L), f.headers["EagleEye-pAppName"] || (f.headers["EagleEye-pAppName"] = C);
1547
1547
  break;
1548
1548
  case "b3":
1549
1549
  if (f.headers["X-B3-TraceId"])
@@ -1552,7 +1552,7 @@ function ro() {
1552
1552
  var V = l.getB3TraceId($);
1553
1553
  f.headers["X-B3-TraceId"] = V["X-B3-TraceId"], f.headers["X-B3-ParentSpanId"] = V["X-B3-ParentSpanId"], f.headers["X-B3-SpanId"] = V["X-B3-SpanId"], f.headers["X-B3-Sampled"] = V["X-B3-Sampled"], f.headers["X-Request-ID"] = e.guid(), R = V["X-B3-TraceId"];
1554
1554
  }
1555
- M = l.getPageviewId()["EagleEye-SessionID"];
1555
+ L = l.getPageviewId()["EagleEye-SessionID"];
1556
1556
  break;
1557
1557
  case "tracing":
1558
1558
  default:
@@ -1562,7 +1562,7 @@ function ro() {
1562
1562
  var N = l.getUberTraceId($);
1563
1563
  f.headers["uber-trace-id"] = N["uber-trace-id"], R = N.traceId;
1564
1564
  }
1565
- M = l.getPageviewId()["EagleEye-SessionID"];
1565
+ L = l.getPageviewId()["EagleEye-SessionID"];
1566
1566
  }
1567
1567
  }
1568
1568
  return p.apply(a, m).then(function(J) {
@@ -1588,7 +1588,7 @@ function ro() {
1588
1588
  et && e.isString(et) && (R = et);
1589
1589
  }
1590
1590
  var Se = e.getFetchSnapshot(m, Qe, ce);
1591
- j.ok ? s(l, v.parseResponse, b, E, Qe, j.status || 200, ze, x, R, M, Se, I, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, x, R, M, Se, i, I, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1591
+ j.ok ? s(l, v.parseResponse, b, E, Qe, j.status || 200, ze, x, R, L, Se, I, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, x, R, L, Se, i, I, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1592
1592
  src: j.url,
1593
1593
  res_type: "api"
1594
1594
  }));
@@ -1600,7 +1600,7 @@ function ro() {
1600
1600
  if (!l || !l.api)
1601
1601
  throw J;
1602
1602
  var j = S();
1603
- throw l.api(b, !1, j, J.name || "Error", J.message, x, R, M, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1603
+ throw l.api(b, !1, j, J.name || "Error", J.message, x, R, L, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1604
1604
  src: E,
1605
1605
  res_type: "api"
1606
1606
  }), J;
@@ -1615,13 +1615,13 @@ function ro() {
1615
1615
  var l = new d(m), x = t;
1616
1616
  if (!x || !x.api || !l.addEventListener)
1617
1617
  return l;
1618
- var v, S, b, E, _ = l.send, y = l.open, A = l.setRequestHeader, R = x._conf, M = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = x.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null, X = x.getConfig("sample"), ae = x.getConfig("linkType"), Q = 1;
1618
+ var v, S, b, E, _ = l.send, y = l.open, A = l.setRequestHeader, R = x._conf, L = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = x.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null, X = x.getConfig("sample"), ae = x.getConfig("linkType"), Q = 1;
1619
1619
  return X && !x.sampling(X) && (Q = 0), l.open = function(te, ee) {
1620
1620
  p = te;
1621
1621
  var k = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
1622
1622
  y.apply(l, k), E = ee || "", b = e.cutUrlSearch(E);
1623
- var L = !e.checkAPI(b, !0) || e.ignoreByRule(b, M);
1624
- if (b = b ? e.filterByRule(b, E, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !L && I) {
1623
+ var M = !e.checkAPI(b, !0) || e.ignoreByRule(b, L);
1624
+ if (b = b ? e.filterByRule(b, E, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !M && I) {
1625
1625
  var V = "";
1626
1626
  try {
1627
1627
  V = location.origin ? location.origin : location.protocol + "//" + location.hostname + (location.port ? ":" + location.port : "");
@@ -1656,8 +1656,8 @@ function ro() {
1656
1656
  typeof k == "object" && k["eagleeye-traceid"] && (P = k["eagleeye-traceid"], q = "response");
1657
1657
  }
1658
1658
  if (!P && e.isFunction(C)) {
1659
- var L = C(l);
1660
- L && e.isString(L) && (P = L);
1659
+ var M = C(l);
1660
+ M && e.isString(M) && (P = M);
1661
1661
  }
1662
1662
  if (l.status >= 200 && l.status <= 299) {
1663
1663
  var V = l.status || 200;
@@ -1685,11 +1685,11 @@ function ro() {
1685
1685
  return this.hasInitHook ? this : (this.getConfig("disableHook") || this.addHook(), this.hasInitHook = !0, this);
1686
1686
  }
1687
1687
  }), r;
1688
- }), ks;
1688
+ }), Ns;
1689
1689
  }
1690
- var Ns, Ms;
1691
- function so() {
1692
- return Ms || (Ms = 1, Ns = function(r, a) {
1690
+ var Ms, Vs;
1691
+ function no() {
1692
+ return Vs || (Vs = 1, Ms = function(r, a) {
1693
1693
  var e = Ve(), t = a.history || {}, i = a.document, s = function(c, o) {
1694
1694
  var u;
1695
1695
  a.CustomEvent ? u = new CustomEvent(c, {
@@ -1715,15 +1715,15 @@ function so() {
1715
1715
  return this.hasHackedHistoryState ? this : (n("pushState"), n("replaceState"), this.hasHackedHistoryState = !0, this);
1716
1716
  }
1717
1717
  });
1718
- }), Ns;
1718
+ }), Ms;
1719
1719
  }
1720
- var Ki, Ls;
1721
- function ao() {
1722
- if (Ls)
1723
- return Ki;
1724
- Ls = 1;
1725
- var r = Ve(), a = Wr(), e = a.TIMING_KEYS;
1726
- return Ki = function(t, i) {
1720
+ var Ji, Fs;
1721
+ function oo() {
1722
+ if (Fs)
1723
+ return Ji;
1724
+ Fs = 1;
1725
+ var r = Ve(), a = Kr(), e = a.TIMING_KEYS;
1726
+ return Ji = function(t, i) {
1727
1727
  function s(o, u, h) {
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;
@@ -1821,7 +1821,7 @@ function ao() {
1821
1821
  try {
1822
1822
  var R = JSON.parse(JSON.stringify(E));
1823
1823
  R.success = y, R.resourceSlow = u, R.isSlow = A, S.timings.push(R);
1824
- } catch (M) {
1824
+ } catch (L) {
1825
1825
  }
1826
1826
  }), S.count && (S.size = Math.round(S.size / S.count), S.duration = Math.round(S.duration / S.count)), S.slow_count && (S.slow_duration = Math.round(S.slow_duration / S.slow_count)), S.err_count && (S.err_duration = Math.round(S.err_duration / S.err_count)), S.timings.length > 20 && (S.timings.sort(function(b, E) {
1827
1827
  return E.duration - b.duration;
@@ -1837,14 +1837,14 @@ function ao() {
1837
1837
  }
1838
1838
  }
1839
1839
  });
1840
- }, Ki;
1840
+ }, Ji;
1841
1841
  }
1842
- var Vs;
1843
- function no() {
1844
- if (Vs)
1845
- return Mi.exports;
1846
- Vs = 1;
1847
- var r = Ve(), a = Gn(), e = Xn(), t = Yn(), i = r.win, s = i.document, n = /^(error|api|speed|sum|avg|percent|custom|msg|setPage|setConfig|behavior|performance)$/, c = function(o) {
1842
+ var Os;
1843
+ function co() {
1844
+ if (Os)
1845
+ return Vi.exports;
1846
+ Os = 1;
1847
+ var r = Ve(), a = Yn(), e = Zn(), t = Qn(), i = r.win, s = i.document, n = /^(error|api|speed|sum|avg|percent|custom|msg|setPage|setConfig|behavior|performance)$/, c = function(o) {
1848
1848
  var u = this;
1849
1849
  return a.call(u, o), u._initialPage = o.page && r.safetyCall(o.page, [], o.page + "") || null, u._isRobot = r.isRobot(), u._health = {
1850
1850
  errcount: 0,
@@ -1980,13 +1980,13 @@ function no() {
1980
1980
  var u = this.__proto__.constructor(o);
1981
1981
  return o.page && u.sendPV(), u;
1982
1982
  }
1983
- }), Zn()(c, i), to()(c, i, s), io()(c, i, s), ro()(c, i), so()(c, i), ao()(c, i), c._super = a, c._root = a._root, a.Browser = c, Mi.exports = c, Mi.exports;
1983
+ }), eo()(c, i), ro()(c, i, s), so()(c, i, s), ao()(c, i), no()(c, i), oo()(c, i), c._super = a, c._root = a._root, a.Browser = c, Vi.exports = c, Vi.exports;
1984
1984
  }
1985
- var Fs;
1986
- function oo() {
1987
- if (Fs)
1988
- return Ni.exports;
1989
- Fs = 1;
1985
+ var Us;
1986
+ function uo() {
1987
+ if (Us)
1988
+ return Mi.exports;
1989
+ Us = 1;
1990
1990
  function r(c, o) {
1991
1991
  var u = e[i] = new t(c);
1992
1992
  u.sendPipe(o);
@@ -1999,7 +1999,7 @@ function oo() {
1999
1999
  var c = {}, o = [];
2000
2000
  return i in e && (c = e[i].config || {}, o = e[i].pipe || []), r(c, o);
2001
2001
  }
2002
- var e = window, t = e.BrowserLogger = no(), i = Ve().key, s = "__hasInitBlSdk";
2002
+ var e = window, t = e.BrowserLogger = co(), i = Ve().key, s = "__hasInitBlSdk";
2003
2003
  t.singleton = function(c, o) {
2004
2004
  return e[s] ? e[i] : r(c, o);
2005
2005
  }, t.createExtraInstance = function(c) {
@@ -2008,41 +2008,41 @@ function oo() {
2008
2008
  return u.enableInstanceAutoSend && (u.autoSendPv !== !1 && o.sendPV(), u && u.useFmp || o.sendPerformance(), u && u.sendResource && o.sendResources()), o;
2009
2009
  };
2010
2010
  var n = typeof window == "object" && !!window.navigator;
2011
- return n && e[i] && (t.bl = a()), Ni.exports = t, Ni.exports;
2011
+ return n && e[i] && (t.bl = a()), Mi.exports = t, Mi.exports;
2012
2012
  }
2013
- function co() {
2014
- return oo();
2013
+ function ho() {
2014
+ return uo();
2015
2015
  }
2016
- var uo = {
2017
- getArmsLogger: co
2016
+ var lo = {
2017
+ getArmsLogger: ho
2018
2018
  };
2019
- const Os = "https://arms-retcode.aliyuncs.com/r.png?", Us = "https://arms-retcode-sg.aliyuncs.com/r.png?", Hs = "https://retcode-us-west-1.arms.aliyuncs.com/r.png?", js = "e1iftji1w7@7ec1cef2cc88733", zs = "e1iftji1w7@10a06d1ec260adc", Ws = "e1iftji1w7@10a06d1ec260adc", qi = {
2019
+ const Hs = "https://arms-retcode.aliyuncs.com/r.png?", js = "https://arms-retcode-sg.aliyuncs.com/r.png?", zs = "https://retcode-us-west-1.arms.aliyuncs.com/r.png?", Ws = "e1iftji1w7@7ec1cef2cc88733", $s = "e1iftji1w7@10a06d1ec260adc", Ks = "e1iftji1w7@10a06d1ec260adc", Gi = {
2020
2020
  cn: {
2021
- reportUrl: Os,
2022
- pid: js
2021
+ reportUrl: Hs,
2022
+ pid: Ws
2023
2023
  },
2024
2024
  "cn-hangzhou": {
2025
- reportUrl: Os,
2026
- pid: js
2025
+ reportUrl: Hs,
2026
+ pid: Ws
2027
2027
  },
2028
2028
  sg: {
2029
- reportUrl: Us,
2030
- pid: zs
2029
+ reportUrl: js,
2030
+ pid: $s
2031
2031
  },
2032
2032
  "ap-southeast-1": {
2033
- reportUrl: Us,
2034
- pid: zs
2033
+ reportUrl: js,
2034
+ pid: $s
2035
2035
  },
2036
2036
  usw: {
2037
- reportUrl: Hs,
2038
- pid: Ws
2037
+ reportUrl: zs,
2038
+ pid: Ks
2039
2039
  },
2040
2040
  "us-west-1": {
2041
- reportUrl: Hs,
2042
- pid: Ws
2041
+ reportUrl: zs,
2042
+ pid: Ks
2043
2043
  }
2044
- }, ho = (r) => r !== null && typeof r == "object", lo = (r) => Object.prototype.toString.call(r).slice(8, -1), fo = (r) => Object.isExtensible(r) ? lo(r) === "Object" : !1;
2045
- function po(r, a, e) {
2044
+ }, fo = (r) => r !== null && typeof r == "object", po = (r) => Object.prototype.toString.call(r).slice(8, -1), go = (r) => Object.isExtensible(r) ? po(r) === "Object" : !1;
2045
+ function mo(r, a, e) {
2046
2046
  var n;
2047
2047
  if (Reflect.get(r, "__v_skip") === !0)
2048
2048
  return r;
@@ -2076,7 +2076,7 @@ function po(r, a, e) {
2076
2076
  set: s.MediaboxWrapperObjectSetter
2077
2077
  });
2078
2078
  }
2079
- function go(r, a, e) {
2079
+ function xo(r, a, e) {
2080
2080
  const t = {
2081
2081
  MediaboxWrapperFunctionApply(i, s, n) {
2082
2082
  let c;
@@ -2107,16 +2107,16 @@ function go(r, a, e) {
2107
2107
  construct: t.MediaboxWrapperClassConstructor
2108
2108
  });
2109
2109
  }
2110
- function mo(r, a) {
2110
+ function So(r, a) {
2111
2111
  if (typeof r != "string")
2112
2112
  return a;
2113
- if (an(r, a))
2113
+ if (on(r, a))
2114
2114
  return r;
2115
2115
  const e = r.indexOf(`
2116
2116
  `);
2117
2117
  return e < 0 ? `${r}${a}` : `${r.slice(0, e)}${a}${r.slice(e)}`;
2118
2118
  }
2119
- function an(r, a) {
2119
+ function on(r, a) {
2120
2120
  if (typeof r != "string")
2121
2121
  return !1;
2122
2122
  const e = r.indexOf(a);
@@ -2127,36 +2127,36 @@ function an(r, a) {
2127
2127
  return t < 0 ? !0 : e < t;
2128
2128
  }
2129
2129
  function ft(r, a, e) {
2130
- return typeof r == "function" ? go(r, a + 1, e) : r instanceof Promise ? r.then((t) => ft(t, a + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? (r.forEach((t, i) => {
2130
+ return typeof r == "function" ? xo(r, a + 1, e) : r instanceof Promise ? r.then((t) => ft(t, a + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? (r.forEach((t, i) => {
2131
2131
  r[i] = ft(t, a + 1, e);
2132
- }), r) : ho(r) && fo(r) ? po(r, a + 1, e) : r;
2132
+ }), r) : fo(r) && go(r) ? mo(r, a + 1, e) : r;
2133
2133
  }
2134
- function xo(r) {
2134
+ function vo(r) {
2135
2135
  return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1;
2136
2136
  }
2137
- function $s(r) {
2137
+ function qs(r) {
2138
2138
  return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1 || r.indexOf("MediaboxWrapper") > -1;
2139
2139
  }
2140
- class Ks extends Error {
2140
+ class Js extends Error {
2141
2141
  constructor(a) {
2142
2142
  super(a), this.name = "MQTError";
2143
2143
  }
2144
2144
  }
2145
- let So = 1;
2146
- class $r {
2145
+ let bo = 1;
2146
+ class qr {
2147
2147
  constructor(a) {
2148
2148
  var e, t;
2149
2149
  Dt(this, "armsLogger"), Dt(this, "isReady", !1), Dt(this, "isDestroyed", !1), Dt(this, "options"), Dt(this, "queue", []), Dt(this, "marker"), Dt(this, "helper", {
2150
2150
  MediaboxWrapperQueue(i) {
2151
- return new Ks(i);
2151
+ return new Js(i);
2152
2152
  },
2153
2153
  MediaboxWrapperInitiative(i) {
2154
- return new Ks(i);
2154
+ return new Js(i);
2155
2155
  }
2156
2156
  }), this.options = ut(G({}, a), {
2157
2157
  region: a.deferRegionSet ? void 0 : (e = a.region) != null ? e : "cn",
2158
2158
  env: (t = a.env) != null ? t : "prod"
2159
- }), this.marker = `-${So++}-`, this.initArmsLogger();
2159
+ }), this.marker = `-${bo++}-`, this.initArmsLogger();
2160
2160
  }
2161
2161
  static get version() {
2162
2162
  return "0.23.0";
@@ -2169,29 +2169,29 @@ class $r {
2169
2169
  throw new Error("region is required");
2170
2170
  if (!e)
2171
2171
  return;
2172
- if (!qi[e])
2172
+ if (!Gi[e])
2173
2173
  throw new Error(`region ${e} is not supported`);
2174
2174
  const s = (c) => {
2175
2175
  var o;
2176
- if (this.isDestroyed || an(c.stack, this.marker) || c.t !== "pv" && c.t !== "error")
2176
+ if (this.isDestroyed || on(c.stack, this.marker) || c.t !== "pv" && c.t !== "error")
2177
2177
  return !1;
2178
- if (c.c1 = (o = this.options.cid) != null ? o : window.location.host, c.c2 = $r.version, this.options.customData && (c.c3 = new URLSearchParams(this.options.customData).toString()), c.t === "error") {
2179
- if (xo(c.file) || $s(c.stack)) {
2178
+ if (c.c1 = (o = this.options.cid) != null ? o : window.location.host, c.c2 = qr.version, this.options.customData && (c.c3 = new URLSearchParams(this.options.customData).toString()), c.t === "error") {
2179
+ if (vo(c.file) || qs(c.stack)) {
2180
2180
  let u = c;
2181
2181
  return this.options.beforeSend && (u = this.options.beforeSend(c)), this.isReady ? u : (u && this.queue.push(u), !1);
2182
2182
  }
2183
2183
  return !1;
2184
2184
  }
2185
2185
  return c;
2186
- }, n = uo.getArmsLogger();
2186
+ }, n = lo.getArmsLogger();
2187
2187
  this.armsLogger = n.createExtraInstance({
2188
2188
  enableInstanceAutoSend: !0,
2189
- pid: qi[e].pid,
2189
+ pid: Gi[e].pid,
2190
2190
  tag: this.options.businessName,
2191
2191
  release: `${this.options.businessName}_${this.options.version}`,
2192
2192
  // release 参数只能初始化时设置
2193
2193
  // appType: "web",
2194
- imgUrl: qi[e].reportUrl,
2194
+ imgUrl: Gi[e].reportUrl,
2195
2195
  // sendResource: true,
2196
2196
  behavior: !0,
2197
2197
  sample: 1,
@@ -2206,7 +2206,7 @@ class $r {
2206
2206
  wrap(a) {
2207
2207
  return this.options.disabled || typeof Proxy > "u" ? a : ft(a, 0, (e) => {
2208
2208
  var t;
2209
- e instanceof Error && typeof e.stack == "string" && $s(e.stack) && ((t = this.armsLogger) == null || t.error(e), e.stack = mo(e.stack, this.marker));
2209
+ e instanceof Error && typeof e.stack == "string" && qs(e.stack) && ((t = this.armsLogger) == null || t.error(e), e.stack = So(e.stack, this.marker));
2210
2210
  });
2211
2211
  }
2212
2212
  updateOptions(a) {
@@ -2234,43 +2234,43 @@ class $r {
2234
2234
  this.isDestroyed = !0;
2235
2235
  }
2236
2236
  }
2237
- var oe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(oe || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), T = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(T || {}), Kr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(Kr || {}), St = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(St || {}), qt = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))(qt || {}), xi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(xi || {}), de = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(de || {}), nt = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(nt || {}), Ie = [];
2238
- for (var Ji = 0; Ji < 256; ++Ji)
2239
- Ie.push((Ji + 256).toString(16).slice(1));
2240
- function vo(r, a = 0) {
2237
+ var oe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(oe || {}), Me = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Me || {}), T = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(T || {}), Jr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(Jr || {}), St = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(St || {}), Jt = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))(Jt || {}), Si = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(Si || {}), de = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(de || {}), nt = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(nt || {}), Ie = [];
2238
+ for (var Xi = 0; Xi < 256; ++Xi)
2239
+ Ie.push((Xi + 256).toString(16).slice(1));
2240
+ function Eo(r, a = 0) {
2241
2241
  return (Ie[r[a + 0]] + Ie[r[a + 1]] + Ie[r[a + 2]] + Ie[r[a + 3]] + "-" + Ie[r[a + 4]] + Ie[r[a + 5]] + "-" + Ie[r[a + 6]] + Ie[r[a + 7]] + "-" + Ie[r[a + 8]] + Ie[r[a + 9]] + "-" + Ie[r[a + 10]] + Ie[r[a + 11]] + Ie[r[a + 12]] + Ie[r[a + 13]] + Ie[r[a + 14]] + Ie[r[a + 15]]).toLowerCase();
2242
2242
  }
2243
- var li, bo = new Uint8Array(16);
2244
- function Eo() {
2245
- if (!li && (li = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !li))
2243
+ var fi, _o = new Uint8Array(16);
2244
+ function Ao() {
2245
+ if (!fi && (fi = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !fi))
2246
2246
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2247
- return li(bo);
2247
+ return fi(_o);
2248
2248
  }
2249
- var _o = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2250
- const qs = {
2251
- randomUUID: _o
2249
+ var yo = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2250
+ const Gs = {
2251
+ randomUUID: yo
2252
2252
  };
2253
2253
  function rt(r, a, e) {
2254
- if (qs.randomUUID && !a && !r)
2255
- return qs.randomUUID();
2254
+ if (Gs.randomUUID && !a && !r)
2255
+ return Gs.randomUUID();
2256
2256
  r = r || {};
2257
- var t = r.random || (r.rng || Eo)();
2257
+ var t = r.random || (r.rng || Ao)();
2258
2258
  if (t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, a) {
2259
2259
  e = e || 0;
2260
2260
  for (var i = 0; i < 16; ++i)
2261
2261
  a[e + i] = t[i];
2262
2262
  return a;
2263
2263
  }
2264
- return vo(t);
2264
+ return Eo(t);
2265
2265
  }
2266
- var Si = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(Si || {});
2267
- const _i = "6.14.3", Js = "web";
2266
+ var vi = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(vi || {});
2267
+ const yi = "6.14.4-beta.1", Xs = "web";
2268
2268
  class He {
2269
2269
  /**
2270
2270
  * 将版本号转换为number
2271
2271
  */
2272
2272
  static getVersionNumber() {
2273
- let a = _i.split("."), e = "";
2273
+ let a = yi.split("."), e = "";
2274
2274
  return a.forEach((t) => {
2275
2275
  t.length === 1 ? e += "0" + t : e += t;
2276
2276
  }), parseInt(e);
@@ -2328,7 +2328,7 @@ class He {
2328
2328
  */
2329
2329
  static isNetworkAvailable() {
2330
2330
  return w(this, null, function* () {
2331
- const a = Si.prod, { onLine: e } = navigator;
2331
+ const a = vi.prod, { onLine: e } = navigator;
2332
2332
  if (!e)
2333
2333
  return !1;
2334
2334
  try {
@@ -2374,7 +2374,7 @@ class He {
2374
2374
  return e;
2375
2375
  }
2376
2376
  }
2377
- function Gs(r, a, e) {
2377
+ function Ys(r, a, e) {
2378
2378
  Object.defineProperty(r, a, {
2379
2379
  writable: !0,
2380
2380
  enumerable: !0,
@@ -2382,13 +2382,13 @@ function Gs(r, a, e) {
2382
2382
  value: e
2383
2383
  });
2384
2384
  }
2385
- function nn(r, a, e, t) {
2385
+ function cn(r, a, e, t) {
2386
2386
  t ? t(() => {
2387
- Gs(r, a, e);
2388
- }) : Gs(r, a, e);
2387
+ Ys(r, a, e);
2388
+ }) : Ys(r, a, e);
2389
2389
  }
2390
2390
  Array(32);
2391
- class Ao {
2391
+ class Co {
2392
2392
  constructor(a) {
2393
2393
  this.timer = null, this.time = 10, this.count = 10, this.arr = [];
2394
2394
  var e, t;
@@ -2450,7 +2450,7 @@ class Ao {
2450
2450
  return this.opt;
2451
2451
  }
2452
2452
  }
2453
- var yo = (r, a, e) => new Promise((t, i) => {
2453
+ var Ro = (r, a, e) => new Promise((t, i) => {
2454
2454
  var s = (o) => {
2455
2455
  try {
2456
2456
  c(e.next(o));
@@ -2466,27 +2466,27 @@ var yo = (r, a, e) => new Promise((t, i) => {
2466
2466
  }, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
2467
2467
  c((e = e.apply(r, a)).next());
2468
2468
  });
2469
- function Co(r, a) {
2469
+ function Io(r, a) {
2470
2470
  return navigator && navigator.sendBeacon ? navigator.sendBeacon(`${r}?APIVersion=0.6.0`, a) : !1;
2471
2471
  }
2472
- function Xs(r, a) {
2472
+ function Zs(r, a) {
2473
2473
  const e = new window.XMLHttpRequest();
2474
2474
  e.open("POST", `${r}?APIVersion=0.6.0`, !0), e.send(a);
2475
2475
  }
2476
- function Ro(r, a) {
2476
+ function wo(r, a) {
2477
2477
  try {
2478
2478
  if (a.length >= 32768) {
2479
- Xs(r, a);
2479
+ Zs(r, a);
2480
2480
  return;
2481
2481
  }
2482
- Co(r, a) || Xs(r, a);
2482
+ Io(r, a) || Zs(r, a);
2483
2483
  } catch (e) {
2484
2484
  window && window.console && typeof window.console.error == "function" && (console.error(`Failed to log to ali log service because of this exception:
2485
2485
  ` + e), console.error("Failed log data:", r));
2486
2486
  }
2487
2487
  }
2488
- function Io(r, a, e) {
2489
- return yo(this, null, function* () {
2488
+ function Do(r, a, e) {
2489
+ return Ro(this, null, function* () {
2490
2490
  try {
2491
2491
  r = r.slice(0, -6);
2492
2492
  const { data: t, header: i } = yield e.process(r, a), s = new window.XMLHttpRequest();
@@ -2500,7 +2500,7 @@ function Io(r, a, e) {
2500
2500
  }
2501
2501
  });
2502
2502
  }
2503
- class qr extends Ao {
2503
+ class Gr extends Co {
2504
2504
  constructor(a) {
2505
2505
  const e = Object.assign({}, a, {
2506
2506
  installUnloadHook: (t) => {
@@ -2509,23 +2509,23 @@ class qr extends Ao {
2509
2509
  });
2510
2510
  },
2511
2511
  sendPayload: (t, i) => {
2512
- Ro(t, i);
2512
+ wo(t, i);
2513
2513
  }
2514
2514
  });
2515
2515
  super(e);
2516
2516
  }
2517
2517
  useStsPlugin(a) {
2518
2518
  this.getOpt().sendPayload = (e, t) => {
2519
- Io(e, t, a);
2519
+ Do(e, t, a);
2520
2520
  }, this.overwriteTransString(a);
2521
2521
  }
2522
2522
  }
2523
- nn(window, "SLS_Tracker", qr);
2523
+ cn(window, "SLS_Tracker", Gr);
2524
2524
  var ie = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2525
- function wo(r) {
2525
+ function To(r) {
2526
2526
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
2527
2527
  }
2528
- function Do(r) {
2528
+ function Po(r) {
2529
2529
  if (r.__esModule)
2530
2530
  return r;
2531
2531
  var a = r.default;
@@ -2546,26 +2546,26 @@ function Do(r) {
2546
2546
  });
2547
2547
  }), e;
2548
2548
  }
2549
- var on = { exports: {} };
2550
- function To(r) {
2549
+ var un = { exports: {} };
2550
+ function ko(r) {
2551
2551
  throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2552
2552
  }
2553
- var Gi = { exports: {} };
2554
- const Po = {}, ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2553
+ var Yi = { exports: {} };
2554
+ const Bo = {}, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2555
2555
  __proto__: null,
2556
- default: Po
2557
- }, Symbol.toStringTag, { value: "Module" })), Bo = /* @__PURE__ */ Do(ko);
2558
- var Ys;
2556
+ default: Bo
2557
+ }, Symbol.toStringTag, { value: "Module" })), Lo = /* @__PURE__ */ Po(No);
2558
+ var Qs;
2559
2559
  function ne() {
2560
- return Ys || (Ys = 1, function(r, a) {
2560
+ return Qs || (Qs = 1, function(r, a) {
2561
2561
  (function(e, t) {
2562
2562
  r.exports = t();
2563
2563
  })(ie, function() {
2564
2564
  var e = e || function(t, i) {
2565
2565
  var s;
2566
- if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof ie != "undefined" && ie.crypto && (s = ie.crypto), !s && typeof To == "function")
2566
+ if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof ie != "undefined" && ie.crypto && (s = ie.crypto), !s && typeof ko == "function")
2567
2567
  try {
2568
- s = Bo;
2568
+ s = Lo;
2569
2569
  } catch (S) {
2570
2570
  }
2571
2571
  var n = function() {
@@ -2725,8 +2725,8 @@ function ne() {
2725
2725
  b[_ + A >>> 2] |= R << 24 - (_ + A) % 4 * 8;
2726
2726
  }
2727
2727
  else
2728
- for (var M = 0; M < y; M += 4)
2729
- b[_ + M >>> 2] = E[M >>> 2];
2728
+ for (var L = 0; L < y; L += 4)
2729
+ b[_ + L >>> 2] = E[L >>> 2];
2730
2730
  return this.sigBytes += y, this;
2731
2731
  },
2732
2732
  /**
@@ -2925,9 +2925,9 @@ function ne() {
2925
2925
  * var processedData = bufferedBlockAlgorithm._process(!!'flush');
2926
2926
  */
2927
2927
  _process: function(S) {
2928
- var b, E = this._data, _ = E.words, y = E.sigBytes, A = this.blockSize, R = A * 4, M = y / R;
2929
- S ? M = t.ceil(M) : M = t.max((M | 0) - this._minBufferSize, 0);
2930
- var C = M * A, I = t.min(C * 4, y);
2928
+ var b, E = this._data, _ = E.words, y = E.sigBytes, A = this.blockSize, R = A * 4, L = y / R;
2929
+ S ? L = t.ceil(L) : L = t.max((L | 0) - this._minBufferSize, 0);
2930
+ var C = L * A, I = t.min(C * 4, y);
2931
2931
  if (C) {
2932
2932
  for (var P = 0; P < C; P += A)
2933
2933
  this._doProcessBlock(_, P);
@@ -3054,11 +3054,11 @@ function ne() {
3054
3054
  }(Math);
3055
3055
  return e;
3056
3056
  });
3057
- }(Gi)), Gi.exports;
3057
+ }(Yi)), Yi.exports;
3058
3058
  }
3059
- var Xi = { exports: {} }, Zs;
3060
- function Ai() {
3061
- return Zs || (Zs = 1, function(r, a) {
3059
+ var Zi = { exports: {} }, ea;
3060
+ function Ci() {
3061
+ return ea || (ea = 1, function(r, a) {
3062
3062
  (function(e, t) {
3063
3063
  r.exports = t(ne());
3064
3064
  })(ie, function(e) {
@@ -3284,11 +3284,11 @@ function Ai() {
3284
3284
  });
3285
3285
  }(), e;
3286
3286
  });
3287
- }(Xi)), Xi.exports;
3287
+ }(Zi)), Zi.exports;
3288
3288
  }
3289
- var Yi = { exports: {} }, Qs;
3290
- function No() {
3291
- return Qs || (Qs = 1, function(r, a) {
3289
+ var Qi = { exports: {} }, ta;
3290
+ function Mo() {
3291
+ return ta || (ta = 1, function(r, a) {
3292
3292
  (function(e, t) {
3293
3293
  r.exports = t(ne());
3294
3294
  })(ie, function(e) {
@@ -3306,11 +3306,11 @@ function No() {
3306
3306
  }
3307
3307
  }(), e.lib.WordArray;
3308
3308
  });
3309
- }(Yi)), Yi.exports;
3309
+ }(Qi)), Qi.exports;
3310
3310
  }
3311
- var Zi = { exports: {} }, ea;
3312
- function Mo() {
3313
- return ea || (ea = 1, function(r, a) {
3311
+ var er = { exports: {} }, ia;
3312
+ function Vo() {
3313
+ return ia || (ia = 1, function(r, a) {
3314
3314
  (function(e, t) {
3315
3315
  r.exports = t(ne());
3316
3316
  })(ie, function(e) {
@@ -3400,11 +3400,11 @@ function Mo() {
3400
3400
  }
3401
3401
  }(), e.enc.Utf16;
3402
3402
  });
3403
- }(Zi)), Zi.exports;
3403
+ }(er)), er.exports;
3404
3404
  }
3405
- var Qi = { exports: {} }, ta;
3406
- function Ft() {
3407
- return ta || (ta = 1, function(r, a) {
3405
+ var tr = { exports: {} }, ra;
3406
+ function Ot() {
3407
+ return ra || (ra = 1, function(r, a) {
3408
3408
  (function(e, t) {
3409
3409
  r.exports = t(ne());
3410
3410
  })(ie, function(e) {
@@ -3475,11 +3475,11 @@ function Ft() {
3475
3475
  }
3476
3476
  }(), e.enc.Base64;
3477
3477
  });
3478
- }(Qi)), Qi.exports;
3478
+ }(tr)), tr.exports;
3479
3479
  }
3480
- var er = { exports: {} }, ia;
3481
- function Lo() {
3482
- return ia || (ia = 1, function(r, a) {
3480
+ var ir = { exports: {} }, sa;
3481
+ function Fo() {
3482
+ return sa || (sa = 1, function(r, a) {
3483
3483
  (function(e, t) {
3484
3484
  r.exports = t(ne());
3485
3485
  })(ie, function(e) {
@@ -3557,11 +3557,11 @@ function Lo() {
3557
3557
  }
3558
3558
  }(), e.enc.Base64url;
3559
3559
  });
3560
- }(er)), er.exports;
3560
+ }(ir)), ir.exports;
3561
3561
  }
3562
- var tr = { exports: {} }, ra;
3563
- function Ot() {
3564
- return ra || (ra = 1, function(r, a) {
3562
+ var rr = { exports: {} }, aa;
3563
+ function Ut() {
3564
+ return aa || (aa = 1, function(r, a) {
3565
3565
  (function(e, t) {
3566
3566
  r.exports = t(ne());
3567
3567
  })(ie, function(e) {
@@ -3585,8 +3585,8 @@ function Ot() {
3585
3585
  var S = x + v, b = l[S];
3586
3586
  l[S] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
3587
3587
  }
3588
- var E = this._hash.words, _ = l[x + 0], y = l[x + 1], A = l[x + 2], R = l[x + 3], M = l[x + 4], C = l[x + 5], I = l[x + 6], P = l[x + 7], B = l[x + 8], $ = l[x + 9], q = l[x + 10], X = l[x + 11], ae = l[x + 12], Q = l[x + 13], te = l[x + 14], ee = l[x + 15], k = E[0], L = E[1], V = E[2], N = E[3];
3589
- 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;
3588
+ var E = this._hash.words, _ = l[x + 0], y = l[x + 1], A = l[x + 2], R = l[x + 3], L = l[x + 4], C = l[x + 5], I = l[x + 6], P = l[x + 7], B = l[x + 8], $ = l[x + 9], q = l[x + 10], X = l[x + 11], ae = l[x + 12], Q = l[x + 13], te = l[x + 14], ee = l[x + 15], k = E[0], M = E[1], V = E[2], N = E[3];
3589
+ k = p(k, M, V, N, _, 7, u[0]), N = p(N, k, M, V, y, 12, u[1]), V = p(V, N, k, M, A, 17, u[2]), M = p(M, V, N, k, R, 22, u[3]), k = p(k, M, V, N, L, 7, u[4]), N = p(N, k, M, V, C, 12, u[5]), V = p(V, N, k, M, I, 17, u[6]), M = p(M, V, N, k, P, 22, u[7]), k = p(k, M, V, N, B, 7, u[8]), N = p(N, k, M, V, $, 12, u[9]), V = p(V, N, k, M, q, 17, u[10]), M = p(M, V, N, k, X, 22, u[11]), k = p(k, M, V, N, ae, 7, u[12]), N = p(N, k, M, V, Q, 12, u[13]), V = p(V, N, k, M, te, 17, u[14]), M = p(M, V, N, k, ee, 22, u[15]), k = d(k, M, V, N, y, 5, u[16]), N = d(N, k, M, V, I, 9, u[17]), V = d(V, N, k, M, X, 14, u[18]), M = d(M, V, N, k, _, 20, u[19]), k = d(k, M, V, N, C, 5, u[20]), N = d(N, k, M, V, q, 9, u[21]), V = d(V, N, k, M, ee, 14, u[22]), M = d(M, V, N, k, L, 20, u[23]), k = d(k, M, V, N, $, 5, u[24]), N = d(N, k, M, V, te, 9, u[25]), V = d(V, N, k, M, R, 14, u[26]), M = d(M, V, N, k, B, 20, u[27]), k = d(k, M, V, N, Q, 5, u[28]), N = d(N, k, M, V, A, 9, u[29]), V = d(V, N, k, M, P, 14, u[30]), M = d(M, V, N, k, ae, 20, u[31]), k = f(k, M, V, N, C, 4, u[32]), N = f(N, k, M, V, B, 11, u[33]), V = f(V, N, k, M, X, 16, u[34]), M = f(M, V, N, k, te, 23, u[35]), k = f(k, M, V, N, y, 4, u[36]), N = f(N, k, M, V, L, 11, u[37]), V = f(V, N, k, M, P, 16, u[38]), M = f(M, V, N, k, q, 23, u[39]), k = f(k, M, V, N, Q, 4, u[40]), N = f(N, k, M, V, _, 11, u[41]), V = f(V, N, k, M, R, 16, u[42]), M = f(M, V, N, k, I, 23, u[43]), k = f(k, M, V, N, $, 4, u[44]), N = f(N, k, M, V, ae, 11, u[45]), V = f(V, N, k, M, ee, 16, u[46]), M = f(M, V, N, k, A, 23, u[47]), k = m(k, M, V, N, _, 6, u[48]), N = m(N, k, M, V, P, 10, u[49]), V = m(V, N, k, M, te, 15, u[50]), M = m(M, V, N, k, C, 21, u[51]), k = m(k, M, V, N, ae, 6, u[52]), N = m(N, k, M, V, R, 10, u[53]), V = m(V, N, k, M, q, 15, u[54]), M = m(M, V, N, k, y, 21, u[55]), k = m(k, M, V, N, B, 6, u[56]), N = m(N, k, M, V, ee, 10, u[57]), V = m(V, N, k, M, I, 15, u[58]), M = m(M, V, N, k, Q, 21, u[59]), k = m(k, M, V, N, L, 6, u[60]), N = m(N, k, M, V, X, 10, u[61]), V = m(V, N, k, M, A, 15, u[62]), M = m(M, V, N, k, $, 21, u[63]), E[0] = E[0] + k | 0, E[1] = E[1] + M | 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, x = l.words, v = this._nDataBytes * 8, S = l.sigBytes * 8;
@@ -3623,11 +3623,11 @@ function Ot() {
3623
3623
  i.MD5 = c._createHelper(h), i.HmacMD5 = c._createHmacHelper(h);
3624
3624
  }(Math), e.MD5;
3625
3625
  });
3626
- }(tr)), tr.exports;
3626
+ }(rr)), rr.exports;
3627
3627
  }
3628
- var ir = { exports: {} }, sa;
3629
- function cn() {
3630
- return sa || (sa = 1, function(r, a) {
3628
+ var sr = { exports: {} }, na;
3629
+ function hn() {
3630
+ return na || (na = 1, function(r, a) {
3631
3631
  (function(e, t) {
3632
3632
  r.exports = t(ne());
3633
3633
  })(ie, function(e) {
@@ -3667,11 +3667,11 @@ function cn() {
3667
3667
  t.SHA1 = n._createHelper(u), t.HmacSHA1 = n._createHmacHelper(u);
3668
3668
  }(), e.SHA1;
3669
3669
  });
3670
- }(ir)), ir.exports;
3670
+ }(sr)), sr.exports;
3671
3671
  }
3672
- var rr = { exports: {} }, aa;
3673
- function Jr() {
3674
- return aa || (aa = 1, function(r, a) {
3672
+ var ar = { exports: {} }, oa;
3673
+ function Xr() {
3674
+ return oa || (oa = 1, function(r, a) {
3675
3675
  (function(e, t) {
3676
3676
  r.exports = t(ne());
3677
3677
  })(ie, function(e) {
@@ -3699,7 +3699,7 @@ function Jr() {
3699
3699
  if (R < 16)
3700
3700
  p[R] = f[m + R] | 0;
3701
3701
  else {
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;
3702
+ var L = p[R - 15], C = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, I = p[R - 2], P = (I << 15 | I >>> 17) ^ (I << 13 | I >>> 19) ^ I >>> 10;
3703
3703
  p[R] = C + p[R - 7] + P + p[R - 16];
3704
3704
  }
3705
3705
  var B = E & _ ^ ~E & y, $ = x & v ^ x & S ^ v & S, q = (x << 30 | x >>> 2) ^ (x << 19 | x >>> 13) ^ (x << 10 | x >>> 22), X = (E << 26 | E >>> 6) ^ (E << 21 | E >>> 11) ^ (E << 7 | E >>> 25), ae = A + X + B + h[R] + p[R], Q = q + $;
@@ -3719,13 +3719,13 @@ function Jr() {
3719
3719
  i.SHA256 = c._createHelper(d), i.HmacSHA256 = c._createHmacHelper(d);
3720
3720
  }(Math), e.SHA256;
3721
3721
  });
3722
- }(rr)), rr.exports;
3722
+ }(ar)), ar.exports;
3723
3723
  }
3724
- var sr = { exports: {} }, na;
3725
- function Vo() {
3726
- return na || (na = 1, function(r, a) {
3724
+ var nr = { exports: {} }, ca;
3725
+ function Oo() {
3726
+ return ca || (ca = 1, function(r, a) {
3727
3727
  (function(e, t, i) {
3728
- r.exports = t(ne(), Jr());
3728
+ r.exports = t(ne(), Xr());
3729
3729
  })(ie, function(e) {
3730
3730
  return function() {
3731
3731
  var t = e, i = t.lib, s = i.WordArray, n = t.algo, c = n.SHA256, o = n.SHA224 = c.extend({
@@ -3749,13 +3749,13 @@ function Vo() {
3749
3749
  t.SHA224 = c._createHelper(o), t.HmacSHA224 = c._createHmacHelper(o);
3750
3750
  }(), e.SHA224;
3751
3751
  });
3752
- }(sr)), sr.exports;
3752
+ }(nr)), nr.exports;
3753
3753
  }
3754
- var ar = { exports: {} }, oa;
3755
- function un() {
3756
- return oa || (oa = 1, function(r, a) {
3754
+ var or = { exports: {} }, ua;
3755
+ function dn() {
3756
+ return ua || (ua = 1, function(r, a) {
3757
3757
  (function(e, t, i) {
3758
- r.exports = t(ne(), Ai());
3758
+ r.exports = t(ne(), Ci());
3759
3759
  })(ie, function(e) {
3760
3760
  return function() {
3761
3761
  var t = e, i = t.lib, s = i.Hasher, n = t.x64, c = n.Word, o = n.WordArray, u = t.algo;
@@ -3862,18 +3862,18 @@ function un() {
3862
3862
  ]);
3863
3863
  },
3864
3864
  _doProcessBlock: function(m, l) {
3865
- for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], E = x[3], _ = x[4], y = x[5], A = x[6], R = x[7], M = v.high, C = v.low, I = S.high, P = S.low, B = b.high, $ = b.low, q = E.high, X = E.low, ae = _.high, Q = _.low, te = y.high, ee = y.low, k = A.high, L = A.low, V = R.high, N = R.low, J = M, j = C, ce = I, Z = P, Fe = B, ze = $, Qe = q, et = X, Se = ae, ke = Q, ot = te, yt = ee, Ut = k, Ct = L, Xt = V, Rt = N, Be = 0; Be < 80; Be++) {
3865
+ for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], E = x[3], _ = x[4], y = x[5], A = x[6], R = x[7], L = v.high, C = v.low, I = S.high, P = S.low, B = b.high, $ = b.low, q = E.high, X = E.low, ae = _.high, Q = _.low, te = y.high, ee = y.low, k = A.high, M = A.low, V = R.high, N = R.low, J = L, j = C, ce = I, Z = P, Fe = B, ze = $, Qe = q, et = X, Se = ae, ke = Q, ot = te, yt = ee, Ht = k, Ct = M, Yt = V, Rt = N, Be = 0; Be < 80; Be++) {
3866
3866
  var Re, tt, It = d[Be];
3867
3867
  if (Be < 16)
3868
3868
  tt = It.high = m[l + Be * 2] | 0, Re = It.low = m[l + Be * 2 + 1] | 0;
3869
3869
  else {
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
- 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;
3870
+ var gt = d[Be - 15], it = gt.high, ct = gt.low, ki = (it >>> 1 | ct << 31) ^ (it >>> 8 | ct << 24) ^ it >>> 7, ui = (ct >>> 1 | it << 31) ^ (ct >>> 8 | it << 24) ^ (ct >>> 7 | it << 25), hi = d[Be - 2], We = hi.high, mt = hi.low, di = (We >>> 19 | mt << 13) ^ (We << 3 | mt >>> 29) ^ We >>> 6, Zt = (mt >>> 19 | We << 13) ^ (mt << 3 | We >>> 29) ^ (mt >>> 6 | We << 26), us = d[Be - 7], Pn = us.high, kn = us.low, hs = d[Be - 16], Bn = hs.high, ds = hs.low;
3871
+ Re = ui + kn, tt = ki + Pn + (Re >>> 0 < ui >>> 0 ? 1 : 0), Re = Re + Zt, tt = tt + di + (Re >>> 0 < Zt >>> 0 ? 1 : 0), Re = Re + ds, tt = tt + Bn + (Re >>> 0 < ds >>> 0 ? 1 : 0), It.high = tt, It.low = Re;
3872
3872
  }
3873
- var kn = Se & ot ^ ~Se & Ut, hs = ke & yt ^ ~ke & Ct, Bn = J & ce ^ J & Fe ^ ce & Fe, Nn = j & Z ^ j & ze ^ Z & ze, Mn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), ds = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Ln = (Se >>> 14 | ke << 18) ^ (Se >>> 18 | ke << 14) ^ (Se << 23 | ke >>> 9), Vn = (ke >>> 14 | Se << 18) ^ (ke >>> 18 | Se << 14) ^ (ke << 23 | Se >>> 9), ls = p[Be], Fn = ls.high, fs = ls.low, $e = Rt + Vn, xt = Xt + Ln + ($e >>> 0 < Rt >>> 0 ? 1 : 0), $e = $e + hs, xt = xt + kn + ($e >>> 0 < hs >>> 0 ? 1 : 0), $e = $e + fs, xt = xt + Fn + ($e >>> 0 < fs >>> 0 ? 1 : 0), $e = $e + Re, xt = xt + tt + ($e >>> 0 < Re >>> 0 ? 1 : 0), ps = ds + Nn, On = Mn + Bn + (ps >>> 0 < ds >>> 0 ? 1 : 0);
3874
- Xt = Ut, Rt = Ct, Ut = ot, Ct = yt, ot = Se, yt = ke, ke = et + $e | 0, Se = Qe + xt + (ke >>> 0 < et >>> 0 ? 1 : 0) | 0, Qe = Fe, et = ze, Fe = ce, ze = Z, ce = J, Z = j, j = $e + ps | 0, J = xt + On + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
3873
+ var Nn = Se & ot ^ ~Se & Ht, ls = ke & yt ^ ~ke & Ct, Ln = J & ce ^ J & Fe ^ ce & Fe, Mn = j & Z ^ j & ze ^ Z & ze, Vn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), fs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Fn = (Se >>> 14 | ke << 18) ^ (Se >>> 18 | ke << 14) ^ (Se << 23 | ke >>> 9), On = (ke >>> 14 | Se << 18) ^ (ke >>> 18 | Se << 14) ^ (ke << 23 | Se >>> 9), ps = p[Be], Un = ps.high, gs = ps.low, $e = Rt + On, xt = Yt + Fn + ($e >>> 0 < Rt >>> 0 ? 1 : 0), $e = $e + ls, xt = xt + Nn + ($e >>> 0 < ls >>> 0 ? 1 : 0), $e = $e + gs, xt = xt + Un + ($e >>> 0 < gs >>> 0 ? 1 : 0), $e = $e + Re, xt = xt + tt + ($e >>> 0 < Re >>> 0 ? 1 : 0), ms = fs + Mn, Hn = Vn + Ln + (ms >>> 0 < fs >>> 0 ? 1 : 0);
3874
+ Yt = Ht, Rt = Ct, Ht = ot, Ct = yt, ot = Se, yt = ke, ke = et + $e | 0, Se = Qe + xt + (ke >>> 0 < et >>> 0 ? 1 : 0) | 0, Qe = Fe, et = ze, Fe = ce, ze = Z, ce = J, Z = j, j = $e + ms | 0, J = xt + Hn + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
3875
3875
  }
3876
- C = v.low = C + j, v.high = M + J + (C >>> 0 < j >>> 0 ? 1 : 0), P = S.low = P + Z, S.high = I + ce + (P >>> 0 < Z >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Fe + ($ >>> 0 < ze >>> 0 ? 1 : 0), X = E.low = X + et, E.high = q + Qe + (X >>> 0 < et >>> 0 ? 1 : 0), Q = _.low = Q + ke, _.high = ae + Se + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = y.low = ee + yt, y.high = te + ot + (ee >>> 0 < yt >>> 0 ? 1 : 0), L = A.low = L + Ct, A.high = k + Ut + (L >>> 0 < Ct >>> 0 ? 1 : 0), N = R.low = N + Rt, R.high = V + Xt + (N >>> 0 < Rt >>> 0 ? 1 : 0);
3876
+ C = v.low = C + j, v.high = L + J + (C >>> 0 < j >>> 0 ? 1 : 0), P = S.low = P + Z, S.high = I + ce + (P >>> 0 < Z >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Fe + ($ >>> 0 < ze >>> 0 ? 1 : 0), X = E.low = X + et, E.high = q + Qe + (X >>> 0 < et >>> 0 ? 1 : 0), Q = _.low = Q + ke, _.high = ae + Se + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = y.low = ee + yt, y.high = te + ot + (ee >>> 0 < yt >>> 0 ? 1 : 0), M = A.low = M + Ct, A.high = k + Ht + (M >>> 0 < Ct >>> 0 ? 1 : 0), N = R.low = N + Rt, R.high = V + Yt + (N >>> 0 < Rt >>> 0 ? 1 : 0);
3877
3877
  },
3878
3878
  _doFinalize: function() {
3879
3879
  var m = this._data, l = m.words, x = this._nDataBytes * 8, v = m.sigBytes * 8;
@@ -3890,13 +3890,13 @@ function un() {
3890
3890
  t.SHA512 = s._createHelper(f), t.HmacSHA512 = s._createHmacHelper(f);
3891
3891
  }(), e.SHA512;
3892
3892
  });
3893
- }(ar)), ar.exports;
3893
+ }(or)), or.exports;
3894
3894
  }
3895
- var nr = { exports: {} }, ca;
3896
- function Fo() {
3897
- return ca || (ca = 1, function(r, a) {
3895
+ var cr = { exports: {} }, ha;
3896
+ function Uo() {
3897
+ return ha || (ha = 1, function(r, a) {
3898
3898
  (function(e, t, i) {
3899
- r.exports = t(ne(), Ai(), un());
3899
+ r.exports = t(ne(), Ci(), dn());
3900
3900
  })(ie, function(e) {
3901
3901
  return function() {
3902
3902
  var t = e, i = t.x64, s = i.Word, n = i.WordArray, c = t.algo, o = c.SHA512, u = c.SHA384 = o.extend({
@@ -3920,13 +3920,13 @@ function Fo() {
3920
3920
  t.SHA384 = o._createHelper(u), t.HmacSHA384 = o._createHmacHelper(u);
3921
3921
  }(), e.SHA384;
3922
3922
  });
3923
- }(nr)), nr.exports;
3923
+ }(cr)), cr.exports;
3924
3924
  }
3925
- var or = { exports: {} }, ua;
3926
- function Oo() {
3927
- return ua || (ua = 1, function(r, a) {
3925
+ var ur = { exports: {} }, da;
3926
+ function Ho() {
3927
+ return da || (da = 1, function(r, a) {
3928
3928
  (function(e, t, i) {
3929
- r.exports = t(ne(), Ai());
3929
+ r.exports = t(ne(), Ci());
3930
3930
  })(ie, function(e) {
3931
3931
  return function(t) {
3932
3932
  var i = e, s = i.lib, n = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo, p = [], d = [], f = [];
@@ -3940,9 +3940,9 @@ function Oo() {
3940
3940
  for (var v = 0; v < 5; v++)
3941
3941
  d[x + 5 * v] = v + (2 * x + 3 * v) % 5 * 5;
3942
3942
  for (var _ = 1, y = 0; y < 24; y++) {
3943
- for (var A = 0, R = 0, M = 0; M < 7; M++) {
3943
+ for (var A = 0, R = 0, L = 0; L < 7; L++) {
3944
3944
  if (_ & 1) {
3945
- var C = (1 << M) - 1;
3945
+ var C = (1 << L) - 1;
3946
3946
  C < 32 ? R ^= 1 << C : A ^= 1 << C - 32;
3947
3947
  }
3948
3948
  _ & 128 ? _ = _ << 1 ^ 113 : _ <<= 1;
@@ -3980,30 +3980,30 @@ function Oo() {
3980
3980
  A.high ^= y, A.low ^= _;
3981
3981
  }
3982
3982
  for (var R = 0; R < 24; R++) {
3983
- for (var M = 0; M < 5; M++) {
3983
+ for (var L = 0; L < 5; L++) {
3984
3984
  for (var C = 0, I = 0, P = 0; P < 5; P++) {
3985
- var A = S[M + 5 * P];
3985
+ var A = S[L + 5 * P];
3986
3986
  C ^= A.high, I ^= A.low;
3987
3987
  }
3988
- var B = m[M];
3988
+ var B = m[L];
3989
3989
  B.high = C, B.low = I;
3990
3990
  }
3991
- for (var M = 0; M < 5; M++)
3992
- for (var $ = m[(M + 4) % 5], q = m[(M + 1) % 5], X = q.high, ae = q.low, C = $.high ^ (X << 1 | ae >>> 31), I = $.low ^ (ae << 1 | X >>> 31), P = 0; P < 5; P++) {
3993
- var A = S[M + 5 * P];
3991
+ for (var L = 0; L < 5; L++)
3992
+ for (var $ = m[(L + 4) % 5], q = m[(L + 1) % 5], X = q.high, ae = q.low, C = $.high ^ (X << 1 | ae >>> 31), I = $.low ^ (ae << 1 | X >>> 31), P = 0; P < 5; P++) {
3993
+ var A = S[L + 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 = S[Q], te = A.high, ee = A.low, k = p[Q];
3998
3998
  k < 32 ? (C = te << k | ee >>> 32 - k, I = ee << k | te >>> 32 - k) : (C = ee << k - 32 | te >>> 64 - k, I = te << k - 32 | ee >>> 64 - k);
3999
- var L = m[d[Q]];
4000
- L.high = C, L.low = I;
3999
+ var M = m[d[Q]];
4000
+ M.high = C, M.low = I;
4001
4001
  }
4002
4002
  var V = m[0], N = S[0];
4003
4003
  V.high = N.high, V.low = N.low;
4004
- for (var M = 0; M < 5; M++)
4004
+ for (var L = 0; L < 5; L++)
4005
4005
  for (var P = 0; P < 5; P++) {
4006
- var Q = M + 5 * P, A = S[Q], J = m[Q], j = m[(M + 1) % 5 + 5 * P], ce = m[(M + 2) % 5 + 5 * P];
4006
+ var Q = L + 5 * P, A = S[Q], J = m[Q], j = m[(L + 1) % 5 + 5 * P], ce = m[(L + 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 = S[0], Z = f[R];
@@ -4016,7 +4016,7 @@ function Oo() {
4016
4016
  var S = x.sigBytes * 8, b = this.blockSize * 32;
4017
4017
  v[S >>> 5] |= 1 << 24 - S % 32, v[(t.ceil((S + 1) / b) * b >>> 5) - 1] |= 128, x.sigBytes = v.length * 4, this._process();
4018
4018
  for (var E = this._state, _ = this.cfg.outputLength / 8, y = _ / 8, A = [], R = 0; R < y; R++) {
4019
- var M = E[R], C = M.high, I = M.low;
4019
+ var L = E[R], C = L.high, I = L.low;
4020
4020
  C = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, I = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360, A.push(I), A.push(C);
4021
4021
  }
4022
4022
  return new n.init(A, _);
@@ -4030,11 +4030,11 @@ function Oo() {
4030
4030
  i.SHA3 = c._createHelper(l), i.HmacSHA3 = c._createHmacHelper(l);
4031
4031
  }(Math), e.SHA3;
4032
4032
  });
4033
- }(or)), or.exports;
4033
+ }(ur)), ur.exports;
4034
4034
  }
4035
- var cr = { exports: {} }, ha;
4036
- function Uo() {
4037
- return ha || (ha = 1, function(r, a) {
4035
+ var hr = { exports: {} }, la;
4036
+ function jo() {
4037
+ return la || (la = 1, function(r, a) {
4038
4038
  (function(e, t) {
4039
4039
  r.exports = t(ne());
4040
4040
  })(ie, function(e) {
@@ -4379,18 +4379,18 @@ function Uo() {
4379
4379
  },
4380
4380
  _doProcessBlock: function(y, A) {
4381
4381
  for (var R = 0; R < 16; R++) {
4382
- var M = A + R, C = y[M];
4383
- y[M] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
4382
+ var L = A + R, C = y[L];
4383
+ y[L] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
4384
4384
  }
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
- V = Q = I[0], N = te = I[1], J = ee = I[2], j = k = I[3], ce = L = I[4];
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, M, V, N, J, j, ce;
4386
+ V = Q = I[0], N = te = I[1], J = ee = I[2], j = k = I[3], ce = M = I[4];
4387
4387
  for (var Z, R = 0; R < 80; R += 1)
4388
- Z = Q + y[A + $[R]] | 0, R < 16 ? Z += x(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += S(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, X[R]), Z = Z + L | 0, Q = L, L = k, k = _(ee, 10), ee = te, te = Z, Z = V + y[A + q[R]] | 0, R < 16 ? Z += E(N, J, j) + B[0] : R < 32 ? Z += b(N, J, j) + B[1] : R < 48 ? Z += S(N, J, j) + B[2] : R < 64 ? Z += v(N, J, j) + B[3] : Z += x(N, J, j) + B[4], Z = Z | 0, Z = _(Z, ae[R]), Z = Z + ce | 0, V = ce, ce = j, j = _(J, 10), J = N, N = Z;
4389
- Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] + L + V | 0, I[3] = I[4] + Q + N | 0, I[4] = I[0] + te + J | 0, I[0] = Z;
4388
+ Z = Q + y[A + $[R]] | 0, R < 16 ? Z += x(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += S(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, X[R]), Z = Z + M | 0, Q = M, M = k, k = _(ee, 10), ee = te, te = Z, Z = V + y[A + q[R]] | 0, R < 16 ? Z += E(N, J, j) + B[0] : R < 32 ? Z += b(N, J, j) + B[1] : R < 48 ? Z += S(N, J, j) + B[2] : R < 64 ? Z += v(N, J, j) + B[3] : Z += x(N, J, j) + B[4], Z = Z | 0, Z = _(Z, ae[R]), Z = Z + ce | 0, V = ce, ce = j, j = _(J, 10), J = N, N = Z;
4389
+ Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] + M + V | 0, I[3] = I[4] + Q + N | 0, I[4] = I[0] + te + J | 0, I[0] = Z;
4390
4390
  },
4391
4391
  _doFinalize: function() {
4392
- var y = this._data, A = y.words, R = this._nDataBytes * 8, M = y.sigBytes * 8;
4393
- A[M >>> 5] |= 128 << 24 - M % 32, A[(M + 64 >>> 9 << 4) + 14] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, y.sigBytes = (A.length + 1) * 4, this._process();
4392
+ var y = this._data, A = y.words, R = this._nDataBytes * 8, L = y.sigBytes * 8;
4393
+ A[L >>> 5] |= 128 << 24 - L % 32, A[(L + 64 >>> 9 << 4) + 14] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, y.sigBytes = (A.length + 1) * 4, this._process();
4394
4394
  for (var C = this._hash, I = C.words, P = 0; P < 5; P++) {
4395
4395
  var B = I[P];
4396
4396
  I[P] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
@@ -4423,11 +4423,11 @@ function Uo() {
4423
4423
  i.RIPEMD160 = c._createHelper(l), i.HmacRIPEMD160 = c._createHmacHelper(l);
4424
4424
  }(), e.RIPEMD160;
4425
4425
  });
4426
- }(cr)), cr.exports;
4426
+ }(hr)), hr.exports;
4427
4427
  }
4428
- var ur = { exports: {} }, da;
4429
- function Gr() {
4430
- return da || (da = 1, function(r, a) {
4428
+ var dr = { exports: {} }, fa;
4429
+ function Yr() {
4430
+ return fa || (fa = 1, function(r, a) {
4431
4431
  (function(e, t) {
4432
4432
  r.exports = t(ne());
4433
4433
  })(ie, function(e) {
@@ -4501,13 +4501,13 @@ function Gr() {
4501
4501
  });
4502
4502
  })();
4503
4503
  });
4504
- }(ur)), ur.exports;
4504
+ }(dr)), dr.exports;
4505
4505
  }
4506
- var hr = { exports: {} }, la;
4507
- function Ho() {
4508
- return la || (la = 1, function(r, a) {
4506
+ var lr = { exports: {} }, pa;
4507
+ function zo() {
4508
+ return pa || (pa = 1, function(r, a) {
4509
4509
  (function(e, t, i) {
4510
- r.exports = t(ne(), Jr(), Gr());
4510
+ r.exports = t(ne(), Xr(), Yr());
4511
4511
  })(ie, function(e) {
4512
4512
  return function() {
4513
4513
  var t = e, i = t.lib, s = i.Base, n = i.WordArray, c = t.algo, o = c.SHA256, u = c.HMAC, h = c.PBKDF2 = s.extend({
@@ -4553,7 +4553,7 @@ function Ho() {
4553
4553
  for (var f = this.cfg, m = u.create(f.hasher, p), l = n.create(), x = n.create([1]), v = l.words, S = x.words, b = f.keySize, E = f.iterations; v.length < b; ) {
4554
4554
  var _ = m.update(d).finalize(x);
4555
4555
  m.reset();
4556
- for (var y = _.words, A = y.length, R = _, M = 1; M < E; M++) {
4556
+ for (var y = _.words, A = y.length, R = _, L = 1; L < E; L++) {
4557
4557
  R = m.finalize(R), m.reset();
4558
4558
  for (var C = R.words, I = 0; I < A; I++)
4559
4559
  y[I] ^= C[I];
@@ -4568,13 +4568,13 @@ function Ho() {
4568
4568
  };
4569
4569
  }(), e.PBKDF2;
4570
4570
  });
4571
- }(hr)), hr.exports;
4571
+ }(lr)), lr.exports;
4572
4572
  }
4573
- var dr = { exports: {} }, fa;
4573
+ var fr = { exports: {} }, ga;
4574
4574
  function At() {
4575
- return fa || (fa = 1, function(r, a) {
4575
+ return ga || (ga = 1, function(r, a) {
4576
4576
  (function(e, t, i) {
4577
- r.exports = t(ne(), cn(), Gr());
4577
+ r.exports = t(ne(), hn(), Yr());
4578
4578
  })(ie, function(e) {
4579
4579
  return function() {
4580
4580
  var t = e, i = t.lib, s = i.Base, n = i.WordArray, c = t.algo, o = c.MD5, u = c.EvpKDF = s.extend({
@@ -4631,11 +4631,11 @@ function At() {
4631
4631
  };
4632
4632
  }(), e.EvpKDF;
4633
4633
  });
4634
- }(dr)), dr.exports;
4634
+ }(fr)), fr.exports;
4635
4635
  }
4636
- var lr = { exports: {} }, pa;
4636
+ var pr = { exports: {} }, ma;
4637
4637
  function ye() {
4638
- return pa || (pa = 1, function(r, a) {
4638
+ return ma || (ma = 1, function(r, a) {
4639
4639
  (function(e, t, i) {
4640
4640
  r.exports = t(ne(), At());
4641
4641
  })(ie, function(e) {
@@ -4760,7 +4760,7 @@ function ye() {
4760
4760
  */
4761
4761
  _createHelper: function() {
4762
4762
  function C(I) {
4763
- return typeof I == "string" ? M : y;
4763
+ return typeof I == "string" ? L : y;
4764
4764
  }
4765
4765
  return function(I) {
4766
4766
  return {
@@ -5109,7 +5109,7 @@ function ye() {
5109
5109
  var X = c.create(q.words.slice(I), P * 4);
5110
5110
  return q.sigBytes = I * 4, b.create({ key: q, iv: X, salt: B });
5111
5111
  }
5112
- }, M = s.PasswordBasedCipher = y.extend({
5112
+ }, L = s.PasswordBasedCipher = y.extend({
5113
5113
  /**
5114
5114
  * Configuration options.
5115
5115
  *
@@ -5169,11 +5169,11 @@ function ye() {
5169
5169
  });
5170
5170
  }();
5171
5171
  });
5172
- }(lr)), lr.exports;
5172
+ }(pr)), pr.exports;
5173
5173
  }
5174
- var fr = { exports: {} }, ga;
5175
- function jo() {
5176
- return ga || (ga = 1, function(r, a) {
5174
+ var gr = { exports: {} }, xa;
5175
+ function Wo() {
5176
+ return xa || (xa = 1, function(r, a) {
5177
5177
  (function(e, t, i) {
5178
5178
  r.exports = t(ne(), ye());
5179
5179
  })(ie, function(e) {
@@ -5199,11 +5199,11 @@ function jo() {
5199
5199
  return t;
5200
5200
  }(), e.mode.CFB;
5201
5201
  });
5202
- }(fr)), fr.exports;
5202
+ }(gr)), gr.exports;
5203
5203
  }
5204
- var pr = { exports: {} }, ma;
5205
- function zo() {
5206
- return ma || (ma = 1, function(r, a) {
5204
+ var mr = { exports: {} }, Sa;
5205
+ function $o() {
5206
+ return Sa || (Sa = 1, function(r, a) {
5207
5207
  (function(e, t, i) {
5208
5208
  r.exports = t(ne(), ye());
5209
5209
  })(ie, function(e) {
@@ -5221,11 +5221,11 @@ function zo() {
5221
5221
  return t.Decryptor = i, t;
5222
5222
  }(), e.mode.CTR;
5223
5223
  });
5224
- }(pr)), pr.exports;
5224
+ }(mr)), mr.exports;
5225
5225
  }
5226
- var gr = { exports: {} }, xa;
5227
- function Wo() {
5228
- return xa || (xa = 1, function(r, a) {
5226
+ var xr = { exports: {} }, va;
5227
+ function Ko() {
5228
+ return va || (va = 1, function(r, a) {
5229
5229
  (function(e, t, i) {
5230
5230
  r.exports = t(ne(), ye());
5231
5231
  })(ie, function(e) {
@@ -5260,11 +5260,11 @@ function Wo() {
5260
5260
  return t.Decryptor = n, t;
5261
5261
  }(), e.mode.CTRGladman;
5262
5262
  });
5263
- }(gr)), gr.exports;
5263
+ }(xr)), xr.exports;
5264
5264
  }
5265
- var mr = { exports: {} }, Sa;
5266
- function $o() {
5267
- return Sa || (Sa = 1, function(r, a) {
5265
+ var Sr = { exports: {} }, ba;
5266
+ function qo() {
5267
+ return ba || (ba = 1, function(r, a) {
5268
5268
  (function(e, t, i) {
5269
5269
  r.exports = t(ne(), ye());
5270
5270
  })(ie, function(e) {
@@ -5280,11 +5280,11 @@ function $o() {
5280
5280
  return t.Decryptor = i, t;
5281
5281
  }(), e.mode.OFB;
5282
5282
  });
5283
- }(mr)), mr.exports;
5283
+ }(Sr)), Sr.exports;
5284
5284
  }
5285
- var xr = { exports: {} }, va;
5286
- function Ko() {
5287
- return va || (va = 1, function(r, a) {
5285
+ var vr = { exports: {} }, Ea;
5286
+ function Jo() {
5287
+ return Ea || (Ea = 1, function(r, a) {
5288
5288
  (function(e, t, i) {
5289
5289
  r.exports = t(ne(), ye());
5290
5290
  })(ie, function(e) {
@@ -5301,11 +5301,11 @@ function Ko() {
5301
5301
  }), t;
5302
5302
  }(), e.mode.ECB;
5303
5303
  });
5304
- }(xr)), xr.exports;
5304
+ }(vr)), vr.exports;
5305
5305
  }
5306
- var Sr = { exports: {} }, ba;
5307
- function qo() {
5308
- return ba || (ba = 1, function(r, a) {
5306
+ var br = { exports: {} }, _a;
5307
+ function Go() {
5308
+ return _a || (_a = 1, function(r, a) {
5309
5309
  (function(e, t, i) {
5310
5310
  r.exports = t(ne(), ye());
5311
5311
  })(ie, function(e) {
@@ -5320,11 +5320,11 @@ function qo() {
5320
5320
  }
5321
5321
  }, e.pad.Ansix923;
5322
5322
  });
5323
- }(Sr)), Sr.exports;
5323
+ }(br)), br.exports;
5324
5324
  }
5325
- var vr = { exports: {} }, Ea;
5326
- function Jo() {
5327
- return Ea || (Ea = 1, function(r, a) {
5325
+ var Er = { exports: {} }, Aa;
5326
+ function Xo() {
5327
+ return Aa || (Aa = 1, function(r, a) {
5328
5328
  (function(e, t, i) {
5329
5329
  r.exports = t(ne(), ye());
5330
5330
  })(ie, function(e) {
@@ -5339,11 +5339,11 @@ function Jo() {
5339
5339
  }
5340
5340
  }, e.pad.Iso10126;
5341
5341
  });
5342
- }(vr)), vr.exports;
5342
+ }(Er)), Er.exports;
5343
5343
  }
5344
- var br = { exports: {} }, _a;
5345
- function Go() {
5346
- return _a || (_a = 1, function(r, a) {
5344
+ var _r = { exports: {} }, ya;
5345
+ function Yo() {
5346
+ return ya || (ya = 1, function(r, a) {
5347
5347
  (function(e, t, i) {
5348
5348
  r.exports = t(ne(), ye());
5349
5349
  })(ie, function(e) {
@@ -5356,11 +5356,11 @@ function Go() {
5356
5356
  }
5357
5357
  }, e.pad.Iso97971;
5358
5358
  });
5359
- }(br)), br.exports;
5359
+ }(_r)), _r.exports;
5360
5360
  }
5361
- var Er = { exports: {} }, Aa;
5362
- function Xo() {
5363
- return Aa || (Aa = 1, function(r, a) {
5361
+ var Ar = { exports: {} }, Ca;
5362
+ function Zo() {
5363
+ return Ca || (Ca = 1, function(r, a) {
5364
5364
  (function(e, t, i) {
5365
5365
  r.exports = t(ne(), ye());
5366
5366
  })(ie, function(e) {
@@ -5378,11 +5378,11 @@ function Xo() {
5378
5378
  }
5379
5379
  }, e.pad.ZeroPadding;
5380
5380
  });
5381
- }(Er)), Er.exports;
5381
+ }(Ar)), Ar.exports;
5382
5382
  }
5383
- var _r = { exports: {} }, ya;
5384
- function Yo() {
5385
- return ya || (ya = 1, function(r, a) {
5383
+ var yr = { exports: {} }, Ra;
5384
+ function Qo() {
5385
+ return Ra || (Ra = 1, function(r, a) {
5386
5386
  (function(e, t, i) {
5387
5387
  r.exports = t(ne(), ye());
5388
5388
  })(ie, function(e) {
@@ -5393,11 +5393,11 @@ function Yo() {
5393
5393
  }
5394
5394
  }, e.pad.NoPadding;
5395
5395
  });
5396
- }(_r)), _r.exports;
5396
+ }(yr)), yr.exports;
5397
5397
  }
5398
- var Ar = { exports: {} }, Ca;
5399
- function Zo() {
5400
- return Ca || (Ca = 1, function(r, a) {
5398
+ var Cr = { exports: {} }, Ia;
5399
+ function e0() {
5400
+ return Ia || (Ia = 1, function(r, a) {
5401
5401
  (function(e, t, i) {
5402
5402
  r.exports = t(ne(), ye());
5403
5403
  })(ie, function(e) {
@@ -5440,13 +5440,13 @@ function Zo() {
5440
5440
  };
5441
5441
  }(), e.format.Hex;
5442
5442
  });
5443
- }(Ar)), Ar.exports;
5443
+ }(Cr)), Cr.exports;
5444
5444
  }
5445
- var yr = { exports: {} }, Ra;
5446
- function Qo() {
5447
- return Ra || (Ra = 1, function(r, a) {
5445
+ var Rr = { exports: {} }, wa;
5446
+ function t0() {
5447
+ return wa || (wa = 1, function(r, a) {
5448
5448
  (function(e, t, i) {
5449
- r.exports = t(ne(), Ft(), Ot(), At(), ye());
5449
+ r.exports = t(ne(), Ot(), Ut(), At(), ye());
5450
5450
  })(ie, function(e) {
5451
5451
  return function() {
5452
5452
  var t = e, i = t.lib, s = i.BlockCipher, n = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [];
@@ -5456,9 +5456,9 @@ function Qo() {
5456
5456
  for (var _ = 0, y = 0, E = 0; E < 256; E++) {
5457
5457
  var A = y ^ y << 1 ^ y << 2 ^ y << 3 ^ y << 4;
5458
5458
  A = A >>> 8 ^ A & 255 ^ 99, c[_] = A, o[A] = _;
5459
- var R = b[_], M = b[R], C = b[M], I = b[A] * 257 ^ A * 16843008;
5459
+ var R = b[_], L = b[R], C = b[L], 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
- var I = C * 16843009 ^ M * 65537 ^ R * 257 ^ _ * 16843008;
5461
+ var I = C * 16843009 ^ L * 65537 ^ R * 257 ^ _ * 16843008;
5462
5462
  f[A] = I << 24 | I >>> 8, m[A] = I << 16 | I >>> 16, l[A] = I << 8 | I >>> 24, x[A] = I, _ ? (_ = R ^ b[b[b[C ^ R]]], y ^= b[b[y]]) : _ = y = 1;
5463
5463
  }
5464
5464
  })();
@@ -5466,14 +5466,14 @@ function Qo() {
5466
5466
  _doReset: function() {
5467
5467
  var b;
5468
5468
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
5469
- for (var E = this._keyPriorReset = this._key, _ = E.words, y = E.sigBytes / 4, A = this._nRounds = y + 6, R = (A + 1) * 4, M = this._keySchedule = [], C = 0; C < R; C++)
5470
- C < y ? M[C] = _[C] : (b = M[C - 1], C % y ? y > 6 && C % y == 4 && (b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255]) : (b = b << 8 | b >>> 24, b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255], b ^= v[C / y | 0] << 24), M[C] = M[C - y] ^ b);
5469
+ for (var E = this._keyPriorReset = this._key, _ = E.words, y = E.sigBytes / 4, A = this._nRounds = y + 6, R = (A + 1) * 4, L = this._keySchedule = [], C = 0; C < R; C++)
5470
+ C < y ? L[C] = _[C] : (b = L[C - 1], C % y ? y > 6 && C % y == 4 && (b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255]) : (b = b << 8 | b >>> 24, b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255], b ^= v[C / y | 0] << 24), L[C] = L[C - y] ^ b);
5471
5471
  for (var I = this._invKeySchedule = [], P = 0; P < R; P++) {
5472
5472
  var C = R - P;
5473
5473
  if (P % 4)
5474
- var b = M[C];
5474
+ var b = L[C];
5475
5475
  else
5476
- var b = M[C - 4];
5476
+ var b = L[C - 4];
5477
5477
  P < 4 || C <= 4 ? I[P] = b : I[P] = f[c[b >>> 24]] ^ m[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^ x[c[b & 255]];
5478
5478
  }
5479
5479
  }
@@ -5487,9 +5487,9 @@ function Qo() {
5487
5487
  var _ = b[E + 1];
5488
5488
  b[E + 1] = b[E + 3], b[E + 3] = _;
5489
5489
  },
5490
- _doCryptBlock: function(b, E, _, y, A, R, M, C) {
5490
+ _doCryptBlock: function(b, E, _, y, A, R, L, C) {
5491
5491
  for (var I = this._nRounds, P = b[E] ^ _[0], B = b[E + 1] ^ _[1], $ = b[E + 2] ^ _[2], q = b[E + 3] ^ _[3], X = 4, ae = 1; ae < I; ae++) {
5492
- var Q = y[P >>> 24] ^ A[B >>> 16 & 255] ^ R[$ >>> 8 & 255] ^ M[q & 255] ^ _[X++], te = y[B >>> 24] ^ A[$ >>> 16 & 255] ^ R[q >>> 8 & 255] ^ M[P & 255] ^ _[X++], ee = y[$ >>> 24] ^ A[q >>> 16 & 255] ^ R[P >>> 8 & 255] ^ M[B & 255] ^ _[X++], k = y[q >>> 24] ^ A[P >>> 16 & 255] ^ R[B >>> 8 & 255] ^ M[$ & 255] ^ _[X++];
5492
+ var Q = y[P >>> 24] ^ A[B >>> 16 & 255] ^ R[$ >>> 8 & 255] ^ L[q & 255] ^ _[X++], te = y[B >>> 24] ^ A[$ >>> 16 & 255] ^ R[q >>> 8 & 255] ^ L[P & 255] ^ _[X++], ee = y[$ >>> 24] ^ A[q >>> 16 & 255] ^ R[P >>> 8 & 255] ^ L[B & 255] ^ _[X++], k = y[q >>> 24] ^ A[P >>> 16 & 255] ^ R[B >>> 8 & 255] ^ L[$ & 255] ^ _[X++];
5493
5493
  P = Q, B = te, $ = ee, q = k;
5494
5494
  }
5495
5495
  var Q = (C[P >>> 24] << 24 | C[B >>> 16 & 255] << 16 | C[$ >>> 8 & 255] << 8 | C[q & 255]) ^ _[X++], te = (C[B >>> 24] << 24 | C[$ >>> 16 & 255] << 16 | C[q >>> 8 & 255] << 8 | C[P & 255]) ^ _[X++], ee = (C[$ >>> 24] << 24 | C[q >>> 16 & 255] << 16 | C[P >>> 8 & 255] << 8 | C[B & 255]) ^ _[X++], k = (C[q >>> 24] << 24 | C[P >>> 16 & 255] << 16 | C[B >>> 8 & 255] << 8 | C[$ & 255]) ^ _[X++];
@@ -5500,13 +5500,13 @@ function Qo() {
5500
5500
  t.AES = s._createHelper(S);
5501
5501
  }(), e.AES;
5502
5502
  });
5503
- }(yr)), yr.exports;
5503
+ }(Rr)), Rr.exports;
5504
5504
  }
5505
- var Cr = { exports: {} }, Ia;
5506
- function e0() {
5507
- return Ia || (Ia = 1, function(r, a) {
5505
+ var Ir = { exports: {} }, Da;
5506
+ function i0() {
5507
+ return Da || (Da = 1, function(r, a) {
5508
5508
  (function(e, t, i) {
5509
- r.exports = t(ne(), Ft(), Ot(), At(), ye());
5509
+ r.exports = t(ne(), Ot(), Ut(), At(), ye());
5510
5510
  })(ie, function(e) {
5511
5511
  return function() {
5512
5512
  var t = e, i = t.lib, s = i.WordArray, n = i.BlockCipher, c = t.algo, o = [
@@ -6160,8 +6160,8 @@ function e0() {
6160
6160
  b[E] = S[_ >>> 5] >>> 31 - _ % 32 & 1;
6161
6161
  }
6162
6162
  for (var y = this._subKeys = [], A = 0; A < 16; A++) {
6163
- for (var R = y[A] = [], M = h[A], E = 0; E < 24; E++)
6164
- R[E / 6 | 0] |= b[(u[E] - 1 + M) % 28] << 31 - E % 6, R[4 + (E / 6 | 0)] |= b[28 + (u[E + 24] - 1 + M) % 28] << 31 - E % 6;
6163
+ for (var R = y[A] = [], L = h[A], E = 0; E < 24; E++)
6164
+ R[E / 6 | 0] |= b[(u[E] - 1 + L) % 28] << 31 - E % 6, R[4 + (E / 6 | 0)] |= b[28 + (u[E + 24] - 1 + L) % 28] << 31 - E % 6;
6165
6165
  R[0] = R[0] << 1 | R[0] >>> 31;
6166
6166
  for (var E = 1; E < 7; E++)
6167
6167
  R[E] = R[E] >>> (E - 1) * 4 + 3;
@@ -6179,8 +6179,8 @@ function e0() {
6179
6179
  _doCryptBlock: function(v, S, b) {
6180
6180
  this._lBlock = v[S], this._rBlock = v[S + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), m.call(this, 1, 1431655765);
6181
6181
  for (var E = 0; E < 16; E++) {
6182
- for (var _ = b[E], y = this._lBlock, A = this._rBlock, R = 0, M = 0; M < 8; M++)
6183
- R |= p[M][((A ^ _[M]) & d[M]) >>> 0];
6182
+ for (var _ = b[E], y = this._lBlock, A = this._rBlock, R = 0, L = 0; L < 8; L++)
6183
+ R |= p[L][((A ^ _[L]) & d[L]) >>> 0];
6184
6184
  this._lBlock = A, this._rBlock = y ^ R;
6185
6185
  }
6186
6186
  var C = this._lBlock;
@@ -6220,13 +6220,13 @@ function e0() {
6220
6220
  t.TripleDES = n._createHelper(x);
6221
6221
  }(), e.TripleDES;
6222
6222
  });
6223
- }(Cr)), Cr.exports;
6223
+ }(Ir)), Ir.exports;
6224
6224
  }
6225
- var Rr = { exports: {} }, wa;
6226
- function t0() {
6227
- return wa || (wa = 1, function(r, a) {
6225
+ var wr = { exports: {} }, Ta;
6226
+ function r0() {
6227
+ return Ta || (Ta = 1, function(r, a) {
6228
6228
  (function(e, t, i) {
6229
- r.exports = t(ne(), Ft(), Ot(), At(), ye());
6229
+ r.exports = t(ne(), Ot(), Ut(), At(), ye());
6230
6230
  })(ie, function(e) {
6231
6231
  return function() {
6232
6232
  var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = n.RC4 = s.extend({
@@ -6274,13 +6274,13 @@ function t0() {
6274
6274
  t.RC4Drop = s._createHelper(u);
6275
6275
  }(), e.RC4;
6276
6276
  });
6277
- }(Rr)), Rr.exports;
6277
+ }(wr)), wr.exports;
6278
6278
  }
6279
- var Ir = { exports: {} }, Da;
6280
- function i0() {
6281
- return Da || (Da = 1, function(r, a) {
6279
+ var Dr = { exports: {} }, Pa;
6280
+ function s0() {
6281
+ return Pa || (Pa = 1, function(r, a) {
6282
6282
  (function(e, t, i) {
6283
- r.exports = t(ne(), Ft(), Ot(), At(), ye());
6283
+ r.exports = t(ne(), Ot(), Ut(), At(), ye());
6284
6284
  })(ie, function(e) {
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({
@@ -6340,13 +6340,13 @@ function i0() {
6340
6340
  t.Rabbit = s._createHelper(h);
6341
6341
  }(), e.Rabbit;
6342
6342
  });
6343
- }(Ir)), Ir.exports;
6343
+ }(Dr)), Dr.exports;
6344
6344
  }
6345
- var wr = { exports: {} }, Ta;
6346
- function r0() {
6347
- return Ta || (Ta = 1, function(r, a) {
6345
+ var Tr = { exports: {} }, ka;
6346
+ function a0() {
6347
+ return ka || (ka = 1, function(r, a) {
6348
6348
  (function(e, t, i) {
6349
- r.exports = t(ne(), Ft(), Ot(), At(), ye());
6349
+ r.exports = t(ne(), Ot(), Ut(), At(), ye());
6350
6350
  })(ie, function(e) {
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({
@@ -6404,13 +6404,13 @@ function r0() {
6404
6404
  t.RabbitLegacy = s._createHelper(h);
6405
6405
  }(), e.RabbitLegacy;
6406
6406
  });
6407
- }(wr)), wr.exports;
6407
+ }(Tr)), Tr.exports;
6408
6408
  }
6409
- var Dr = { exports: {} }, Pa;
6410
- function s0() {
6411
- return Pa || (Pa = 1, function(r, a) {
6409
+ var Pr = { exports: {} }, Ba;
6410
+ function n0() {
6411
+ return Ba || (Ba = 1, function(r, a) {
6412
6412
  (function(e, t, i) {
6413
- r.exports = t(ne(), Ft(), Ot(), At(), ye());
6413
+ r.exports = t(ne(), Ot(), Ut(), At(), ye());
6414
6414
  })(ie, function(e) {
6415
6415
  return function() {
6416
6416
  var t = e, i = t.lib, s = i.BlockCipher, n = t.algo;
@@ -7526,21 +7526,21 @@ function s0() {
7526
7526
  t.Blowfish = s._createHelper(l);
7527
7527
  }(), e.Blowfish;
7528
7528
  });
7529
- }(Dr)), Dr.exports;
7529
+ }(Pr)), Pr.exports;
7530
7530
  }
7531
7531
  (function(r, a) {
7532
7532
  (function(e, t, i) {
7533
- r.exports = t(ne(), Ai(), No(), Mo(), Ft(), Lo(), Ot(), cn(), Jr(), Vo(), un(), Fo(), Oo(), Uo(), Gr(), Ho(), At(), ye(), jo(), zo(), Wo(), $o(), Ko(), qo(), Jo(), Go(), Xo(), Yo(), Zo(), Qo(), e0(), t0(), i0(), r0(), s0());
7533
+ r.exports = t(ne(), Ci(), Mo(), Vo(), Ot(), Fo(), Ut(), hn(), Xr(), Oo(), dn(), Uo(), Ho(), jo(), Yr(), zo(), At(), ye(), Wo(), $o(), Ko(), qo(), Jo(), Go(), Xo(), Yo(), Zo(), Qo(), e0(), t0(), i0(), r0(), s0(), a0(), n0());
7534
7534
  })(ie, function(e) {
7535
7535
  return e;
7536
7536
  });
7537
- })(on);
7538
- var a0 = on.exports;
7539
- const si = /* @__PURE__ */ wo(a0);
7540
- function n0(r) {
7541
- return si.MD5(r).toString().toUpperCase();
7537
+ })(un);
7538
+ var o0 = un.exports;
7539
+ const ai = /* @__PURE__ */ To(o0);
7540
+ function c0(r) {
7541
+ return ai.MD5(r).toString().toUpperCase();
7542
7542
  }
7543
- function o0(r, a, e, t, i, s, n, c) {
7543
+ function u0(r, a, e, t, i, s, n, c) {
7544
7544
  var o;
7545
7545
  let u = "";
7546
7546
  s.set("x-log-apiversion", "0.6.0"), s.set("x-log-signaturemethod", "hmac-sha1"), u += r + `
@@ -7560,10 +7560,10 @@ function o0(r, a, e, t, i, s, n, c) {
7560
7560
  u += [...i.entries()].sort(h).map((m) => m[0] + "=" + m[1]).join("&");
7561
7561
  } catch (m) {
7562
7562
  }
7563
- const d = si.HmacSHA1(u, t).toString(si.enc.Base64), f = "LOG " + e + ":" + d;
7563
+ const d = ai.HmacSHA1(u, t).toString(ai.enc.Base64), f = "LOG " + e + ":" + d;
7564
7564
  return s.set("Authorization", f), s.set("x-log-date", c), f;
7565
7565
  }
7566
- var c0 = (r, a, e) => new Promise((t, i) => {
7566
+ var h0 = (r, a, e) => new Promise((t, i) => {
7567
7567
  var s = (o) => {
7568
7568
  try {
7569
7569
  c(e.next(o));
@@ -7579,8 +7579,8 @@ var c0 = (r, a, e) => new Promise((t, i) => {
7579
7579
  }, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
7580
7580
  c((e = e.apply(r, a)).next());
7581
7581
  });
7582
- function u0(r) {
7583
- return c0(this, null, function* () {
7582
+ function d0(r) {
7583
+ return h0(this, null, function* () {
7584
7584
  const a = /* @__PURE__ */ new Date();
7585
7585
  if (r.refreshSTSTokenInterval || (r.refreshSTSTokenInterval = 3e5), !r.stsTokenFreshTime || +a - r.stsTokenFreshTime >= r.refreshSTSTokenInterval) {
7586
7586
  r.stsTokenFreshTime = a;
@@ -7594,7 +7594,7 @@ function u0(r) {
7594
7594
  return null;
7595
7595
  });
7596
7596
  }
7597
- var h0 = (r, a, e) => new Promise((t, i) => {
7597
+ var l0 = (r, a, e) => new Promise((t, i) => {
7598
7598
  var s = (o) => {
7599
7599
  try {
7600
7600
  c(e.next(o));
@@ -7610,7 +7610,7 @@ var h0 = (r, a, e) => new Promise((t, i) => {
7610
7610
  }, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
7611
7611
  c((e = e.apply(r, a)).next());
7612
7612
  });
7613
- function Xr(r) {
7613
+ function Zr(r) {
7614
7614
  return {
7615
7615
  transString: function(a) {
7616
7616
  let e = {}, t = 0, i = !1;
@@ -7624,14 +7624,14 @@ function Xr(r) {
7624
7624
  return e.__time__ = i ? t : Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3), e;
7625
7625
  },
7626
7626
  process: function(a, e) {
7627
- return h0(this, null, function* () {
7628
- yield u0(r);
7629
- let t = a.slice(a.indexOf("/logstores")), i = e.length, s = n0(e), n = (/* @__PURE__ */ new Date()).toUTCString(), c = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map([
7627
+ return l0(this, null, function* () {
7628
+ yield d0(r);
7629
+ let t = a.slice(a.indexOf("/logstores")), i = e.length, s = c0(e), n = (/* @__PURE__ */ new Date()).toUTCString(), c = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map([
7630
7630
  ["Content-Type", "application/json"],
7631
7631
  ["Content-MD5", s],
7632
7632
  ["x-log-bodyrawsize", i.toString()]
7633
7633
  ]);
7634
- r.securityToken && o.set("x-acs-security-token", r.securityToken), o0("POST", t, r.accessKeyId, r.accessKeySecret, c, o, s, n);
7634
+ r.securityToken && o.set("x-acs-security-token", r.securityToken), u0("POST", t, r.accessKeyId, r.accessKeySecret, c, o, s, n);
7635
7635
  let u = Object.fromEntries(o);
7636
7636
  return {
7637
7637
  data: e,
@@ -7641,12 +7641,12 @@ function Xr(r) {
7641
7641
  }
7642
7642
  };
7643
7643
  }
7644
- typeof window != "undefined" && nn(window, "stsPlugin", Xr);
7645
- var d0 = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, l0 = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, f0 = /[^-+\dA-Z]/g;
7646
- function Yr(r, a, e, t) {
7644
+ typeof window != "undefined" && cn(window, "stsPlugin", Zr);
7645
+ var f0 = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, p0 = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, g0 = /[^-+\dA-Z]/g;
7646
+ function Qr(r, a, e, t) {
7647
7647
  if (arguments.length === 1 && typeof r == "string" && !/\d/.test(r) && (a = r, r = void 0), r = r || r === 0 ? r : /* @__PURE__ */ new Date(), r instanceof Date || (r = new Date(r)), isNaN(r))
7648
7648
  throw TypeError("Invalid date");
7649
- a = String(ka[a] || a || ka.default);
7649
+ a = String(Na[a] || a || Na.default);
7650
7650
  var i = a.slice(0, 4);
7651
7651
  (i === "UTC:" || i === "GMT:") && (a = a.slice(4), e = !0, i === "GMT:" && (t = !0));
7652
7652
  var s = function() {
@@ -7670,9 +7670,9 @@ function Yr(r, a, e, t) {
7670
7670
  }, m = function() {
7671
7671
  return e ? 0 : r.getTimezoneOffset();
7672
7672
  }, l = function() {
7673
- return p0(r);
7673
+ return m0(r);
7674
7674
  }, x = function() {
7675
- return g0(r);
7675
+ return x0(r);
7676
7676
  }, v = { d: function() {
7677
7677
  return n();
7678
7678
  }, dd: function() {
@@ -7680,11 +7680,11 @@ function Yr(r, a, e, t) {
7680
7680
  }, ddd: function() {
7681
7681
  return Oe.dayNames[c()];
7682
7682
  }, DDD: function() {
7683
- return Ba({ y: u(), m: o(), d: n(), _: s(), dayName: Oe.dayNames[c()], short: !0 });
7683
+ return La({ y: u(), m: o(), d: n(), _: s(), dayName: Oe.dayNames[c()], short: !0 });
7684
7684
  }, dddd: function() {
7685
7685
  return Oe.dayNames[c() + 7];
7686
7686
  }, DDDD: function() {
7687
- return Ba({ y: u(), m: o(), d: n(), _: s(), dayName: Oe.dayNames[c() + 7] });
7687
+ return La({ y: u(), m: o(), d: n(), _: s(), dayName: Oe.dayNames[c() + 7] });
7688
7688
  }, m: function() {
7689
7689
  return o() + 1;
7690
7690
  }, mm: function() {
@@ -7726,7 +7726,7 @@ function Yr(r, a, e, t) {
7726
7726
  }, TT: function() {
7727
7727
  return h() < 12 ? Oe.timeNames[6] : Oe.timeNames[7];
7728
7728
  }, Z: function() {
7729
- return t ? "GMT" : e ? "UTC" : m0(r);
7729
+ return t ? "GMT" : e ? "UTC" : S0(r);
7730
7730
  }, o: function() {
7731
7731
  return (m() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(m()) / 60) * 100 + Math.abs(m()) % 60, 4);
7732
7732
  }, p: function() {
@@ -7740,14 +7740,14 @@ function Yr(r, a, e, t) {
7740
7740
  }, N: function() {
7741
7741
  return x();
7742
7742
  } };
7743
- return a.replace(d0, function(S) {
7743
+ return a.replace(f0, function(S) {
7744
7744
  return S in v ? v[S]() : S.slice(1, S.length - 1);
7745
7745
  });
7746
7746
  }
7747
- var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Oe = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, Ke = function(a) {
7747
+ var Na = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Oe = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, Ke = function(a) {
7748
7748
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
7749
7749
  return String(a).padStart(e, "0");
7750
- }, Ba = function(a) {
7750
+ }, La = function(a) {
7751
7751
  var e = a.y, t = a.m, i = a.d, s = a._, n = a.dayName, c = a.short, o = c === void 0 ? !1 : c, u = /* @__PURE__ */ new Date(), h = /* @__PURE__ */ new Date();
7752
7752
  h.setDate(h[s + "Date"]() - 1);
7753
7753
  var p = /* @__PURE__ */ new Date();
@@ -7772,7 +7772,7 @@ var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7772
7772
  return p[s + "FullYear"]();
7773
7773
  };
7774
7774
  return m() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && x() === t && l() === i ? o ? "Ysd" : "Yesterday" : E() === e && b() === t && S() === i ? o ? "Tmw" : "Tomorrow" : n;
7775
- }, p0 = function(a) {
7775
+ }, m0 = 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);
7778
7778
  var t = new Date(e.getFullYear(), 0, 4);
@@ -7781,33 +7781,33 @@ var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7781
7781
  e.setHours(e.getHours() - i);
7782
7782
  var s = (e - t) / (864e5 * 7);
7783
7783
  return 1 + Math.floor(s);
7784
- }, g0 = function(a) {
7784
+ }, x0 = function(a) {
7785
7785
  var e = a.getDay();
7786
7786
  return e === 0 && (e = 7), e;
7787
- }, m0 = function(a) {
7788
- return (String(a).match(l0) || [""]).pop().replace(f0, "").replace(/GMT\+0000/g, "UTC");
7787
+ }, S0 = function(a) {
7788
+ return (String(a).match(p0) || [""]).pop().replace(g0, "").replace(/GMT\+0000/g, "UTC");
7789
7789
  };
7790
- const { BrowserUtil: x0 } = le, Ht = {
7790
+ const { BrowserUtil: v0 } = le, jt = {
7791
7791
  EdgeHTML: "EdgeHTML",
7792
7792
  Blink: "Blink",
7793
7793
  Trident: "Trident",
7794
7794
  Gecko: "Gecko",
7795
7795
  WebKit: "WebKit"
7796
- }, fi = (r, a) => {
7796
+ }, pi = (r, a) => {
7797
7797
  const e = a.match(r);
7798
7798
  return e && e.length > 0 && e[1] || "";
7799
- }, S0 = [
7799
+ }, b0 = [
7800
7800
  /* EdgeHTML */
7801
7801
  {
7802
7802
  test: [/\sedg\//i, [/edg([ea]|ios)/i]],
7803
7803
  describe(r) {
7804
7804
  if (/\sedg\//i.test(r))
7805
7805
  return {
7806
- name: Ht.Blink
7806
+ name: jt.Blink
7807
7807
  };
7808
- const e = fi(/edge\/(\d+(\.?_?\d+)+)/i, r);
7808
+ const e = pi(/edge\/(\d+(\.?_?\d+)+)/i, r);
7809
7809
  return {
7810
- name: Ht.EdgeHTML,
7810
+ name: jt.EdgeHTML,
7811
7811
  version: e
7812
7812
  };
7813
7813
  }
@@ -7817,8 +7817,8 @@ const { BrowserUtil: x0 } = le, Ht = {
7817
7817
  test: [/trident/i],
7818
7818
  describe(r) {
7819
7819
  const a = {
7820
- name: Ht.Trident
7821
- }, e = fi(/trident\/(\d+(\.?_?\d+)+)/i, r);
7820
+ name: jt.Trident
7821
+ }, e = pi(/trident\/(\d+(\.?_?\d+)+)/i, r);
7822
7822
  return e && (a.version = e), a;
7823
7823
  }
7824
7824
  },
@@ -7830,8 +7830,8 @@ const { BrowserUtil: x0 } = le, Ht = {
7830
7830
  },
7831
7831
  describe(r) {
7832
7832
  const a = {
7833
- name: Ht.Gecko
7834
- }, e = fi(/gecko\/(\d+(\.?_?\d+)+)/i, r);
7833
+ name: jt.Gecko
7834
+ }, e = pi(/gecko\/(\d+(\.?_?\d+)+)/i, r);
7835
7835
  return e && (a.version = e), a;
7836
7836
  }
7837
7837
  },
@@ -7840,7 +7840,7 @@ const { BrowserUtil: x0 } = le, Ht = {
7840
7840
  test: [/(apple)?webkit\/537\.36/i],
7841
7841
  describe() {
7842
7842
  return {
7843
- name: Ht.Blink
7843
+ name: jt.Blink
7844
7844
  };
7845
7845
  }
7846
7846
  },
@@ -7849,27 +7849,27 @@ const { BrowserUtil: x0 } = le, Ht = {
7849
7849
  test: [/(apple)?webkit/i],
7850
7850
  describe(r) {
7851
7851
  const a = {
7852
- name: Ht.WebKit
7853
- }, e = fi(/webkit\/(\d+(\.?_?\d+)+)/i, r);
7852
+ name: jt.WebKit
7853
+ }, e = pi(/webkit\/(\d+(\.?_?\d+)+)/i, r);
7854
7854
  return e && (a.version = e), a;
7855
7855
  }
7856
7856
  }
7857
- ], Zr = (r, a) => r.find((e) => {
7857
+ ], es = (r, a) => r.find((e) => {
7858
7858
  if (typeof e.test == "function")
7859
7859
  return e.test(a);
7860
7860
  if (Array.isArray(e.test))
7861
7861
  return e.test.some((t) => typeof t == "string" ? a.indexOf(t) > -1 : t instanceof RegExp ? t.test(a) : !1);
7862
- }), v0 = () => {
7862
+ }), E0 = () => {
7863
7863
  try {
7864
- const r = navigator.userAgent || "", a = Zr(S0, r);
7864
+ const r = navigator.userAgent || "", a = es(b0, r);
7865
7865
  if (a) {
7866
7866
  const e = a.describe(r);
7867
- return `${e.name}/${e.version || x0.browserVersion}`;
7867
+ return `${e.name}/${e.version || v0.browserVersion}`;
7868
7868
  }
7869
7869
  } catch (r) {
7870
7870
  }
7871
7871
  return navigator.userAgent;
7872
- }, b0 = [
7872
+ }, _0 = [
7873
7873
  {
7874
7874
  test: ["wow64", "win64", "x64"],
7875
7875
  describe() {
@@ -7894,17 +7894,17 @@ const { BrowserUtil: x0 } = le, Ht = {
7894
7894
  return "arm";
7895
7895
  }
7896
7896
  }
7897
- ], hn = () => {
7897
+ ], ln = () => {
7898
7898
  let r = "unknown";
7899
7899
  try {
7900
- const a = navigator.userAgent || "", e = Zr(b0, a);
7900
+ const a = navigator.userAgent || "", e = es(_0, a);
7901
7901
  if (!e)
7902
7902
  return r;
7903
7903
  r = e.describe(a);
7904
7904
  } catch (a) {
7905
7905
  }
7906
7906
  return r;
7907
- }, E0 = [
7907
+ }, A0 = [
7908
7908
  {
7909
7909
  test: [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i],
7910
7910
  describe() {
@@ -7993,17 +7993,17 @@ const { BrowserUtil: x0 } = le, Ht = {
7993
7993
  return "Meizu";
7994
7994
  }
7995
7995
  }
7996
- ], _0 = () => {
7996
+ ], y0 = () => {
7997
7997
  let r = "Unknown";
7998
7998
  try {
7999
- const a = navigator.userAgent || "", e = Zr(E0, a);
7999
+ const a = navigator.userAgent || "", e = es(A0, a);
8000
8000
  if (!e)
8001
8001
  return r;
8002
8002
  r = e.describe(a);
8003
8003
  } catch (a) {
8004
8004
  }
8005
8005
  return r;
8006
- }, { BrowserUtil: Na, SystenUtil: Ma } = le, A0 = hn(), y0 = "woMMssV6jmyol9fr", C0 = 200, pi = 10 * 60 * 1e3, gi = {
8006
+ }, { BrowserUtil: Ma, SystenUtil: Va } = le, C0 = ln(), R0 = "woMMssV6jmyol9fr", I0 = 200, gi = 10 * 60 * 1e3, mi = {
8007
8007
  host: "cn-hangzhou.log.aliyuncs.com",
8008
8008
  // 所在地域的服务入口。例如cn-hangzhou.log.aliyuncs.com
8009
8009
  project: "alivc-aio",
@@ -8015,14 +8015,14 @@ const { BrowserUtil: x0 } = le, Ht = {
8015
8015
  count: 10
8016
8016
  // 发送日志的数量大小,默认是10条。
8017
8017
  };
8018
- function Tr() {
8019
- return Yr(/* @__PURE__ */ new Date(), "HH:MM:ss.l");
8018
+ function kr() {
8019
+ return Qr(/* @__PURE__ */ new Date(), "HH:MM:ss.l");
8020
8020
  }
8021
- function La() {
8022
- return Yr(/* @__PURE__ */ new Date(), "isoDate");
8021
+ function Fa() {
8022
+ return Qr(/* @__PURE__ */ new Date(), "isoDate");
8023
8023
  }
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
- class R0 {
8024
+ var fn = /* @__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))(fn || {});
8025
+ class w0 {
8026
8026
  constructor() {
8027
8027
  g(this, "tracker");
8028
8028
  g(this, "slsPlugin");
@@ -8043,11 +8043,11 @@ class R0 {
8043
8043
  return;
8044
8044
  this.logSequence += 1, a.unshift(
8045
8045
  this.getLogParams(710203, {
8046
- log: `[${La()} ${Tr()}] [INF] beforeunload`,
8046
+ log: `[${Fa()} ${kr()}] [INF] beforeunload`,
8047
8047
  stat_log_seq: this.logSequence
8048
8048
  })
8049
8049
  );
8050
- const e = `https://${gi.project}.${gi.host}/logstores/${gi.logstore}`, t = {
8050
+ const e = `https://${mi.project}.${mi.host}/logstores/${mi.logstore}`, t = {
8051
8051
  __logs__: a.map((n) => this.slsPlugin.transString(n))
8052
8052
  }, { data: i, header: s } = yield this.slsPlugin.process(e, JSON.stringify(t));
8053
8053
  fetch(e, {
@@ -8058,7 +8058,7 @@ class R0 {
8058
8058
  });
8059
8059
  }));
8060
8060
  g(this, "logMethod", (a, e = console.log) => (...t) => {
8061
- let i = Tr();
8061
+ let i = kr();
8062
8062
  this.logLevel <= a && e(i, ...t);
8063
8063
  let s = He.paramArrayToString(t);
8064
8064
  a > 0 && this.addLog(s);
@@ -8117,22 +8117,22 @@ class R0 {
8117
8117
  }
8118
8118
  this.updateTaskTimer = setTimeout(() => {
8119
8119
  this.startSTSUpdateTask();
8120
- }, pi);
8120
+ }, gi);
8121
8121
  });
8122
8122
  }
8123
8123
  refreshSTSToken() {
8124
8124
  return w(this, null, function* () {
8125
- if (!this.stsData || this.stsExpiration <= Date.now() - pi) {
8126
- const a = yield this.requestSTSToken(), e = new Date(a == null ? void 0 : a.Expiration).getTime() || 0, t = Date.now() + pi;
8125
+ if (!this.stsData || this.stsExpiration <= Date.now() - gi) {
8126
+ const a = yield this.requestSTSToken(), e = new Date(a == null ? void 0 : a.Expiration).getTime() || 0, t = Date.now() + gi;
8127
8127
  this.stsExpiration = Math.max(e, t), this.stsData = a;
8128
8128
  }
8129
8129
  return this.stsData;
8130
8130
  });
8131
8131
  }
8132
8132
  requestSTSToken() {
8133
- const a = Date.now(), e = `${this.clientId}|${y0}|${a}`, i = {
8133
+ const a = Date.now(), e = `${this.clientId}|${R0}|${a}`, i = {
8134
8134
  Action: "AssumeSlsRoleV2",
8135
- AuthInfo: si.MD5(e).toString(si.enc.Hex),
8135
+ AuthInfo: ai.MD5(e).toString(ai.enc.Hex),
8136
8136
  ClientId: this.clientId,
8137
8137
  BusinessType: "logger",
8138
8138
  AppVersion: "1.0",
@@ -8143,7 +8143,7 @@ class R0 {
8143
8143
  Format: "JSON",
8144
8144
  SignatureMethod: "HMAC-SHA1",
8145
8145
  SignatureVersion: "1.0",
8146
- Timestamp: Yr(a, "isoUtcDateTime")
8146
+ Timestamp: Qr(a, "isoUtcDateTime")
8147
8147
  // SignatureNonce: generateRandomString(64),
8148
8148
  }, n = `https://slsrole.alicdn.com/?${new URLSearchParams(i).toString()}`;
8149
8149
  return fetch(n).then((c) => c.json()).then((c) => JSON.parse(window.atob(c.SlsAuthResult)));
@@ -8154,7 +8154,7 @@ class R0 {
8154
8154
  accessKeyId: a.AccessKeyId,
8155
8155
  accessKeySecret: a.AccessKeySecret,
8156
8156
  securityToken: a.SecurityToken,
8157
- refreshSTSTokenInterval: pi,
8157
+ refreshSTSTokenInterval: gi,
8158
8158
  stsTokenFreshTime: void 0,
8159
8159
  refreshSTSToken: () => {
8160
8160
  this.refreshSTSToken().then((s) => {
@@ -8162,7 +8162,7 @@ class R0 {
8162
8162
  }).catch(() => {
8163
8163
  });
8164
8164
  }
8165
- }, t = new qr(gi), i = Xr(e);
8165
+ }, t = new Gr(mi), i = Zr(e);
8166
8166
  t.useStsPlugin(i), this.slsPlugin = i, this.tracker = t, this.reportStartAndCache();
8167
8167
  }
8168
8168
  }
@@ -8216,16 +8216,16 @@ class R0 {
8216
8216
  b_sesid: this.bSesid,
8217
8217
  // 与其他端对齐,用于该字段标记某个上传任务
8218
8218
  biz_type: "rtc",
8219
- cpu_info: A0,
8220
- db: Na.browserName,
8221
- dm: Na.browserVersion,
8219
+ cpu_info: C0,
8220
+ db: Ma.browserName,
8221
+ dm: Ma.browserVersion,
8222
8222
  install_uuid: this.clientId,
8223
8223
  logger_v: "0.0.1",
8224
- os: Ma.systemName,
8225
- osv: Ma.systemVersion,
8224
+ os: Va.systemName,
8225
+ osv: Va.systemVersion,
8226
8226
  p_sesid: this.bSesid,
8227
8227
  // 与其他端对齐,用于该字段标记某个上传任务
8228
- sdk_version: _i,
8228
+ sdk_version: yi,
8229
8229
  sdkname: "AliRTCSdk",
8230
8230
  stm: Date.now(),
8231
8231
  tar_pf: "web",
@@ -8245,13 +8245,13 @@ class R0 {
8245
8245
  this.tracker.send(e);
8246
8246
  }
8247
8247
  addLog(a) {
8248
- const e = Tr(), i = `[${La()} ${e}] ${a}`;
8249
- !this.sessionId || !this.tracker ? (this.logCache.push(i), this.logCache.length >= C0 && this.logCache.shift()) : this.sendLog(i);
8248
+ const e = kr(), i = `[${Fa()} ${e}] ${a}`;
8249
+ !this.sessionId || !this.tracker ? (this.logCache.push(i), this.logCache.length >= I0 && this.logCache.shift()) : this.sendLog(i);
8250
8250
  }
8251
8251
  }
8252
8252
  class O {
8253
8253
  static getLogger() {
8254
- return this.logger || (this.logger = new R0()), this.logger;
8254
+ return this.logger || (this.logger = new w0()), this.logger;
8255
8255
  }
8256
8256
  static init() {
8257
8257
  this.getLogger().init();
@@ -8295,7 +8295,7 @@ class O {
8295
8295
  }
8296
8296
  }
8297
8297
  g(O, "logger");
8298
- const I0 = (r) => w(void 0, null, function* () {
8298
+ const D0 = (r) => w(void 0, null, function* () {
8299
8299
  const a = new le.SupportUtil();
8300
8300
  let e = {
8301
8301
  support: !1,
@@ -8317,9 +8317,9 @@ const I0 = (r) => w(void 0, null, function* () {
8317
8317
  e.detail.isH264EncodeSupported = t, e.support = e.support && t;
8318
8318
  }
8319
8319
  return e.detail.isScreenShareSupported = a.checkWebRtcSupport() && a.checkScreenCapture() && !le.SystenUtil.isAndroid && !le.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = a.checkWebRtcSupport() && a.checkEncodedTransformSupport(), e;
8320
- }), w0 = () => new le.SupportUtil().checkScreenCapture();
8321
- var be = /* @__PURE__ */ ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(be || {}), D0 = /* @__PURE__ */ ((r) => (r[r.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", r[r.POST_PROCESSOR = 1] = "POST_PROCESSOR", r))(D0 || {}), yi = /* @__PURE__ */ ((r) => (r[r.AUDIO = 0] = "AUDIO", r[r.VIDEO = 1] = "VIDEO", r[r.BOTH = 2] = "BOTH", r))(yi || {});
8322
- class Jt extends De {
8320
+ }), T0 = () => new le.SupportUtil().checkScreenCapture();
8321
+ var be = /* @__PURE__ */ ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(be || {}), P0 = /* @__PURE__ */ ((r) => (r[r.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", r[r.POST_PROCESSOR = 1] = "POST_PROCESSOR", r))(P0 || {}), Ri = /* @__PURE__ */ ((r) => (r[r.AUDIO = 0] = "AUDIO", r[r.VIDEO = 1] = "VIDEO", r[r.BOTH = 2] = "BOTH", r))(Ri || {});
8322
+ class Gt extends De {
8323
8323
  constructor(e, t = be.AliRtcSdkStreamTypeCapture, i = 1) {
8324
8324
  super();
8325
8325
  // 扩展名
@@ -8382,13 +8382,13 @@ class Jt extends De {
8382
8382
  this._hasCleared = !0, this.lastInputAudioTrack = void 0, this.lastInputVideoTrack = void 0, this.lastOutputAudioTrack = void 0, this.lastOutputVideoTrack = void 0;
8383
8383
  }
8384
8384
  }
8385
- var vi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingSingle = 0] = "LiveTranscodingSingle", r[r.LiveTranscodingMix = 1] = "LiveTranscodingMix", r))(vi || {}), ln = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingAudio = 1] = "LiveTranscodingAudio", r[r.LiveTranscodingVideo = 2] = "LiveTranscodingVideo", r))(ln || {}), ai = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingCamera = 0] = "LiveTranscodingCamera", r[r.LiveTranscodingShareScreen = 1] = "LiveTranscodingShareScreen", r))(ai || {});
8386
- const ti = {
8385
+ var bi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingSingle = 0] = "LiveTranscodingSingle", r[r.LiveTranscodingMix = 1] = "LiveTranscodingMix", r))(bi || {}), pn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingAudio = 1] = "LiveTranscodingAudio", r[r.LiveTranscodingVideo = 2] = "LiveTranscodingVideo", r))(pn || {}), ni = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingCamera = 0] = "LiveTranscodingCamera", r[r.LiveTranscodingShareScreen = 1] = "LiveTranscodingShareScreen", r))(ni || {});
8386
+ const ii = {
8387
8387
  0: "camera",
8388
8388
  1: "shareScreen"
8389
8389
  };
8390
- var fn = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_Profile_1IN_1080P = 0] = "LiveTranscoding_Profile_1IN_1080P", r[r.LiveTranscoding_Profile_1IN_720P = 1] = "LiveTranscoding_Profile_1IN_720P", r[r.LiveTranscoding_Profile_1IN_360P = 2] = "LiveTranscoding_Profile_1IN_360P", r[r.LiveTranscoding_Profile_2IN_1080P = 3] = "LiveTranscoding_Profile_2IN_1080P", r[r.LiveTranscoding_Profile_2IN_720P = 4] = "LiveTranscoding_Profile_2IN_720P", r[r.LiveTranscoding_Profile_2IN_360P = 5] = "LiveTranscoding_Profile_2IN_360P", r[r.LiveTranscoding_Profile_4IN_1080P = 6] = "LiveTranscoding_Profile_4IN_1080P", r[r.LiveTranscoding_Profile_4IN_720P = 7] = "LiveTranscoding_Profile_4IN_720P", r[r.LiveTranscoding_Profile_4IN_360P = 8] = "LiveTranscoding_Profile_4IN_360P", r[r.LiveTranscoding_Profile_9IN_1080P = 9] = "LiveTranscoding_Profile_9IN_1080P", r[r.LiveTranscoding_Profile_9IN_720P = 10] = "LiveTranscoding_Profile_9IN_720P", r[r.LiveTranscoding_Profile_9IN_360P = 11] = "LiveTranscoding_Profile_9IN_360P", r[r.LiveTranscoding_Profile_12IN_1080P = 12] = "LiveTranscoding_Profile_12IN_1080P", r[r.LiveTranscoding_Profile_12IN_720P = 13] = "LiveTranscoding_Profile_12IN_720P", r[r.LiveTranscoding_Profile_12IN_360P = 14] = "LiveTranscoding_Profile_12IN_360P", r[r.LiveTranscoding_Profile_16IN_1080P = 15] = "LiveTranscoding_Profile_16IN_1080P", r[r.LiveTranscoding_Profile_16IN_720P = 16] = "LiveTranscoding_Profile_16IN_720P", r[r.LiveTranscoding_Profile_16IN_360P = 17] = "LiveTranscoding_Profile_16IN_360P", r[r.LiveTranscoding_Profile_Mixed = 9999] = "LiveTranscoding_Profile_Mixed", r))(fn || {});
8391
- const T0 = {
8390
+ var gn = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_Profile_1IN_1080P = 0] = "LiveTranscoding_Profile_1IN_1080P", r[r.LiveTranscoding_Profile_1IN_720P = 1] = "LiveTranscoding_Profile_1IN_720P", r[r.LiveTranscoding_Profile_1IN_360P = 2] = "LiveTranscoding_Profile_1IN_360P", r[r.LiveTranscoding_Profile_2IN_1080P = 3] = "LiveTranscoding_Profile_2IN_1080P", r[r.LiveTranscoding_Profile_2IN_720P = 4] = "LiveTranscoding_Profile_2IN_720P", r[r.LiveTranscoding_Profile_2IN_360P = 5] = "LiveTranscoding_Profile_2IN_360P", r[r.LiveTranscoding_Profile_4IN_1080P = 6] = "LiveTranscoding_Profile_4IN_1080P", r[r.LiveTranscoding_Profile_4IN_720P = 7] = "LiveTranscoding_Profile_4IN_720P", r[r.LiveTranscoding_Profile_4IN_360P = 8] = "LiveTranscoding_Profile_4IN_360P", r[r.LiveTranscoding_Profile_9IN_1080P = 9] = "LiveTranscoding_Profile_9IN_1080P", r[r.LiveTranscoding_Profile_9IN_720P = 10] = "LiveTranscoding_Profile_9IN_720P", r[r.LiveTranscoding_Profile_9IN_360P = 11] = "LiveTranscoding_Profile_9IN_360P", r[r.LiveTranscoding_Profile_12IN_1080P = 12] = "LiveTranscoding_Profile_12IN_1080P", r[r.LiveTranscoding_Profile_12IN_720P = 13] = "LiveTranscoding_Profile_12IN_720P", r[r.LiveTranscoding_Profile_12IN_360P = 14] = "LiveTranscoding_Profile_12IN_360P", r[r.LiveTranscoding_Profile_16IN_1080P = 15] = "LiveTranscoding_Profile_16IN_1080P", r[r.LiveTranscoding_Profile_16IN_720P = 16] = "LiveTranscoding_Profile_16IN_720P", r[r.LiveTranscoding_Profile_16IN_360P = 17] = "LiveTranscoding_Profile_16IN_360P", r[r.LiveTranscoding_Profile_Mixed = 9999] = "LiveTranscoding_Profile_Mixed", r))(gn || {});
8391
+ const k0 = {
8392
8392
  0: "1IN_1080P",
8393
8393
  1: "1IN_720P",
8394
8394
  2: "1IN_360P",
@@ -8409,8 +8409,8 @@ const T0 = {
8409
8409
  17: "16IN_360P",
8410
8410
  9999: "Mixed_Audio"
8411
8411
  };
8412
- var Qr = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(Qr || {}), bi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(bi || {}), Ci = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(Ci || {}), pn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(pn || {}), es = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(es || {}), gn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(gn || {}), ht = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ht || {}), mn = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(mn || {}), Ue = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Ue || {});
8413
- const P0 = {
8412
+ var ts = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(ts || {}), Ei = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(Ei || {}), Ii = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(Ii || {}), mn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(mn || {}), is = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(is || {}), xn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(xn || {}), ht = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ht || {}), Sn = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(Sn || {}), Ue = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Ue || {});
8413
+ const B0 = {
8414
8414
  0: "/libra/v1/sdk/start-task",
8415
8415
  1: "/libra/v1/sdk/update-task",
8416
8416
  2: "/libra/v1/sdk/stop-task",
@@ -8419,7 +8419,7 @@ const P0 = {
8419
8419
  5: "/libra/v1/sdk/acknowledge",
8420
8420
  6: "/"
8421
8421
  };
8422
- class xn {
8422
+ class vn {
8423
8423
  //[1,2]
8424
8424
  constructor(a, e, t, i, s, n, c, o) {
8425
8425
  g(this, "videoWidth");
@@ -8432,23 +8432,23 @@ class xn {
8432
8432
  //[1kbps,10000kbps]
8433
8433
  g(this, "videoGop", 30);
8434
8434
  //[1,60]
8435
- g(this, "audioSamplerate", Qr.LiveTranscoding_HZ_44100);
8435
+ g(this, "audioSamplerate", ts.LiveTranscoding_HZ_44100);
8436
8436
  g(this, "audioBitrate", 500);
8437
8437
  //[8kbps,500kbps]
8438
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
  }
8442
- const ts = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Ye = (r = 0, a) => {
8442
+ const rs = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Ye = (r = 0, a) => {
8443
8443
  if (a == 0)
8444
8444
  return 0;
8445
8445
  let e = r / a;
8446
8446
  return e < 0 && (e = 0), e > 1 && (e = 1), e;
8447
8447
  };
8448
- class Mr {
8448
+ class Vr {
8449
8449
  constructor(a, e, t) {
8450
8450
  /*! 旁路模式 */
8451
- g(this, "mixMode", vi.LiveTranscodingSingle);
8451
+ g(this, "mixMode", bi.LiveTranscodingSingle);
8452
8452
  /*! 路模式单路参数 */
8453
8453
  g(this, "singleParam");
8454
8454
  /*! 旁路模式混流参数 */
@@ -8463,18 +8463,18 @@ class Mr {
8463
8463
  if (a === Ue.MPU_TASK_TRANSACTION_POLLING || a === Ue.MPU_TASK_TRANSACTION_LIST || a === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE)
8464
8464
  return a === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE && (n.messageid = s), n;
8465
8465
  if (n.taskid = t, a !== Ue.MPU_TASK_TRANSACTION_STOP) {
8466
- if (n.mixmode = this.mixMode, i && (n.streamurl = i), this.mixMode === vi.LiveTranscodingSingle) {
8466
+ if (n.mixmode = this.mixMode, i && (n.streamurl = i), this.mixMode === bi.LiveTranscodingSingle) {
8467
8467
  const c = this.singleParam;
8468
8468
  if (c) {
8469
- n.streamtype = c.streamType, c.sourceType === ai.LiveTranscodingShareScreen ? n.sourcetype = ti[c.sourceType] : n.sourcetype = ti[ai.LiveTranscodingCamera];
8469
+ n.streamtype = c.streamType, c.sourceType === ni.LiveTranscodingShareScreen ? n.sourcetype = ii[c.sourceType] : n.sourcetype = ii[ni.LiveTranscodingCamera];
8470
8470
  const o = [];
8471
8471
  c.userId && o.push(c.userId), n.subspecusers = o;
8472
8472
  }
8473
8473
  } else if (a === Ue.MPU_TASK_TRANSACTION_START || a === Ue.MPU_TASK_TRANSACTION_UPDATE) {
8474
8474
  const c = this.mixParam;
8475
8475
  if (c) {
8476
- c.taskProfile && (n.taskprofile = T0[c.taskProfile]);
8477
- const o = c.encodeParam || new xn(1280, 720);
8476
+ c.taskProfile && (n.taskprofile = k0[c.taskProfile]);
8477
+ const o = c.encodeParam || new vn(1280, 720);
8478
8478
  let u = o.videoWidth, h = o.videoHeight;
8479
8479
  const p = {};
8480
8480
  Object.keys(o).forEach((f) => {
@@ -8489,15 +8489,15 @@ class Mr {
8489
8489
  (f, m) => f.toJson(m, u, h, c.mediaProcessMode)
8490
8490
  )
8491
8491
  }
8492
- ], n.layoutids = ["0"], n.cropmode = c.cropMode, n.backgroundcolor = ts(c.backgroundColor), n.taskmode = c.mediaProcessMode;
8492
+ ], n.layoutids = ["0"], n.cropmode = c.cropMode, n.backgroundcolor = rs(c.backgroundColor), n.taskmode = c.mediaProcessMode;
8493
8493
  }
8494
8494
  }
8495
8495
  }
8496
8496
  return n;
8497
8497
  }
8498
8498
  }
8499
- var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}), Bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Bt || {}), dt = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(dt || {}), _e = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(_e || {}), ue = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(ue || {}), zt = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(zt || {}), is = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(is || {}), Gt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(Gt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Y = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Y || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(he || {}), we = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(we || {}), ni = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ni || {});
8500
- const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8499
+ var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}), Bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Bt || {}), dt = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(dt || {}), _e = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(_e || {}), ue = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(ue || {}), Wt = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Wt || {}), ss = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(ss || {}), Xt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(Xt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Y = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Y || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(he || {}), we = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(we || {}), oi = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(oi || {});
8500
+ const Oa = 12, Ua = 5e3, $t = class $t extends De {
8501
8501
  constructor(e) {
8502
8502
  super();
8503
8503
  g(this, "ws");
@@ -8508,7 +8508,7 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8508
8508
  // 建立连接时候使用的url
8509
8509
  g(this, "lastConnectStartTime", 0);
8510
8510
  // 上一次开始连接的时间
8511
- g(this, "maxConnectRetryCount", Va);
8511
+ g(this, "maxConnectRetryCount", Oa);
8512
8512
  g(this, "connectRetryCount", 0);
8513
8513
  // 尝试重连了多少次
8514
8514
  g(this, "gotErr", !1);
@@ -8517,7 +8517,7 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8517
8517
  g(this, "isReconnecting", !1);
8518
8518
  g(this, "networkAvailableChecked", !0);
8519
8519
  g(this, "reconnectTimeoutId", 0);
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);
8520
+ this.maxConnectRetryCount = e != null ? e : Oa, 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() {
8523
8523
  return this.wsUrl;
@@ -8556,7 +8556,7 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8556
8556
  * @param event
8557
8557
  */
8558
8558
  onOpen(e) {
8559
- O.info(`[${Wt.logName}]`, "onOpen"), this.socketStatus = 2, this.connectRetryCount = 0, this.networkAvailableChecked = !1, this.closedByInvoke = !1, this.gotErr = !1, this.isReconnecting = !1, this.emit("onOpen", e);
8559
+ O.info(`[${$t.logName}]`, "onOpen"), this.socketStatus = 2, this.connectRetryCount = 0, this.networkAvailableChecked = !1, this.closedByInvoke = !1, this.gotErr = !1, this.isReconnecting = !1, this.emit("onOpen", e);
8560
8560
  }
8561
8561
  /**
8562
8562
  * 收到消息
@@ -8571,7 +8571,7 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8571
8571
  */
8572
8572
  onError(e) {
8573
8573
  this.isReconnecting && this.emit("onReconnectFail", e), this.emit("onError", e), this.isReconnecting = !1, this.socketStatus !== 2 && He.isNetworkAvailable().then((t) => {
8574
- t && console.error(Wt.logName, "onError, Network is available, token may be invalid");
8574
+ t && console.error($t.logName, "onError, Network is available, token may be invalid");
8575
8575
  });
8576
8576
  }
8577
8577
  /**
@@ -8585,15 +8585,15 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8585
8585
  return;
8586
8586
  }
8587
8587
  if (O.info(
8588
- `[${Wt.logName}]`,
8588
+ `[${$t.logName}]`,
8589
8589
  `onClose, code: ${e.code}, reason: ${e.reason}, status: ${status}, retryCount: ${this.connectRetryCount}`
8590
8590
  ), (yield He.isNetworkAvailable()) && !this.networkAvailableChecked) {
8591
8591
  this.reconnect(), this.networkAvailableChecked = !0;
8592
8592
  return;
8593
8593
  } else
8594
- this.connectRetryCount || this.emit("onNetworkError"), this.reconnectTimeoutId || (this.connectRetryCount += 1, this.connectRetryCount > this.maxConnectRetryCount ? this.emit("onConnectFail") : Date.now() - this.lastConnectStartTime >= Fa ? this.reconnect() : this.reconnectTimeoutId = window.setTimeout(() => {
8594
+ this.connectRetryCount || this.emit("onNetworkError"), this.reconnectTimeoutId || (this.connectRetryCount += 1, this.connectRetryCount > this.maxConnectRetryCount ? this.emit("onConnectFail") : Date.now() - this.lastConnectStartTime >= Ua ? this.reconnect() : this.reconnectTimeoutId = window.setTimeout(() => {
8595
8595
  this.reconnect();
8596
- }, Fa));
8596
+ }, Ua));
8597
8597
  this.socketStatus = 0, this.emit("onClose", e);
8598
8598
  });
8599
8599
  }
@@ -8613,10 +8613,10 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
8613
8613
  /**
8614
8614
  * @ignore
8615
8615
  */
8616
- g(Wt, "logName", "Socket");
8617
- let Lr = Wt;
8616
+ g($t, "logName", "Socket");
8617
+ let Fr = $t;
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
- class k0 {
8619
+ class N0 {
8620
8620
  constructor(a, e) {
8621
8621
  g(this, "authInfo");
8622
8622
  g(this, "userName");
@@ -8654,7 +8654,7 @@ class k0 {
8654
8654
  "joinchannel"
8655
8655
  /* JOINCHANNEL */
8656
8656
  );
8657
- return a.header.displayName = this.userName, a.header.clientversion = He.getVersionNumber().toString(), a.header.platform = Js, this.roleAuth && (a.data.auth = this.roleAuth), a;
8657
+ return a.header.displayName = this.userName, a.header.clientversion = He.getVersionNumber().toString(), a.header.platform = Xs, this.roleAuth && (a.data.auth = this.roleAuth), a;
8658
8658
  }
8659
8659
  /**
8660
8660
  * 创建一个用于发送离会消息的Package
@@ -8696,7 +8696,7 @@ class k0 {
8696
8696
  "reconnect"
8697
8697
  /* RECONNECT */
8698
8698
  );
8699
- return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform = Js, e.data = G(G({}, e.data), a != null ? a : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
8699
+ return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform = Xs, e.data = G(G({}, e.data), a != null ? a : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
8700
8700
  }
8701
8701
  createRefreshUrlPackage() {
8702
8702
  let a = this.createBaseSendPackage(
@@ -8769,7 +8769,7 @@ class F extends Error {
8769
8769
  return this._extra;
8770
8770
  }
8771
8771
  }
8772
- const B0 = 3e4, qe = class qe extends De {
8772
+ const L0 = 3e4, qe = class qe extends De {
8773
8773
  // 发送重连信令时,房间信令凭这些信息找回 session
8774
8774
  constructor(e, t, i, s, n, c) {
8775
8775
  super();
@@ -8792,7 +8792,7 @@ const B0 = 3e4, qe = class qe extends De {
8792
8792
  g(this, "aliveChecker", 0);
8793
8793
  // 心跳检查定时器
8794
8794
  g(this, "reconnectData");
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));
8795
+ this.authInfo = e, this.userName = t, this.packageCreater = new N0(e, t), this.channelProfile = i, this.clientRole = s, this.slsReporter = n, this.wsClient = new Fr(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() {
8798
8798
  return this.wsClient.connectRetryCount;
@@ -8980,7 +8980,7 @@ const B0 = 3e4, qe = class qe extends De {
8980
8980
  checkAlive() {
8981
8981
  window.clearTimeout(this.aliveChecker), this.aliveChecker = window.setTimeout(() => {
8982
8982
  O.info(`[${qe.logName}] not alive, reconnect`), this.stopKeepAlive(), this.emit("onReconnectStart"), this.wsClient.reconnect();
8983
- }, B0);
8983
+ }, L0);
8984
8984
  }
8985
8985
  /**
8986
8986
  * 处理收到的业务信令
@@ -9127,7 +9127,7 @@ const B0 = 3e4, qe = class qe extends De {
9127
9127
  }
9128
9128
  };
9129
9129
  g(qe, "logName", "RSMessageCenter");
9130
- let Vr = qe;
9130
+ let Or = qe;
9131
9131
  const D = (r, a) => (e, t, i) => {
9132
9132
  const s = i.value;
9133
9133
  return i.value = function(...n) {
@@ -9171,12 +9171,12 @@ const D = (r, a) => (e, t, i) => {
9171
9171
  }), h;
9172
9172
  }, i;
9173
9173
  }, H = (r) => r;
9174
- var N0 = Object.defineProperty, M0 = Object.getOwnPropertyDescriptor, rs = (r, a, e, t) => {
9175
- for (var i = t > 1 ? void 0 : t ? M0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
9174
+ var M0 = Object.defineProperty, V0 = Object.getOwnPropertyDescriptor, as = (r, a, e, t) => {
9175
+ for (var i = t > 1 ? void 0 : t ? V0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
9176
9176
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
9177
- return t && i && N0(a, e, i), i;
9177
+ return t && i && M0(a, e, i), i;
9178
9178
  }, Ne;
9179
- const Ri = (Ne = class extends De {
9179
+ const wi = (Ne = class extends De {
9180
9180
  constructor(e, t, i, s = pt.prod) {
9181
9181
  super();
9182
9182
  g(this, "messageCenter");
@@ -9194,7 +9194,7 @@ const Ri = (Ne = class extends De {
9194
9194
  clientrole: t
9195
9195
  }
9196
9196
  };
9197
- const n = s === pt.pre ? Si.pre : Si.prod;
9197
+ const n = s === pt.pre ? vi.pre : vi.prod;
9198
9198
  this.roomServerUri = `wss://${n}/roomserver/v1/ws`;
9199
9199
  }
9200
9200
  /**
@@ -9215,7 +9215,7 @@ const Ri = (Ne = class extends De {
9215
9215
  return w(this, null, function* () {
9216
9216
  return new Promise((s, n) => {
9217
9217
  const c = {};
9218
- this.authInfo = e, this.userName = t, this.messageCenter = new Vr(
9218
+ this.authInfo = e, this.userName = t, this.messageCenter = new Or(
9219
9219
  e,
9220
9220
  t,
9221
9221
  this.channelProfile,
@@ -9363,17 +9363,17 @@ const Ri = (Ne = class extends De {
9363
9363
  * @ignore
9364
9364
  */
9365
9365
  g(Ne, "logName", "RoomServerSignaling"), Ne);
9366
- rs([
9366
+ as([
9367
9367
  D()
9368
- ], Ri.prototype, "join", 1);
9369
- rs([
9368
+ ], wi.prototype, "join", 1);
9369
+ as([
9370
9370
  D()
9371
- ], Ri.prototype, "publish", 1);
9372
- rs([
9371
+ ], wi.prototype, "publish", 1);
9372
+ as([
9373
9373
  D()
9374
- ], Ri.prototype, "roleUpdate", 1);
9375
- let L0 = Ri;
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 {
9374
+ ], wi.prototype, "roleUpdate", 1);
9375
+ let F0 = wi;
9376
+ const O0 = "https://pgw.rtn.aliyuncs.com", U0 = "https://gw.rtn.aliyuncs.com", Ha = 10 * 60 * 1e3, H0 = 12, ri = class ri extends De {
9377
9377
  constructor(e, t) {
9378
9378
  super();
9379
9379
  g(this, "env");
@@ -9386,19 +9386,19 @@ const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", O
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;
9389
- let h = F0;
9390
- this.env === pt.pre && (h = V0);
9389
+ let h = U0;
9390
+ this.env === pt.pre && (h = O0);
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
9393
  var m, l;
9394
9394
  if (f.code === 0) {
9395
9395
  const x = (m = f.data) == null ? void 0 : m.oss, v = (l = f.data) == null ? void 0 : l.sls;
9396
- this.expiration = x.expiration || v.expiration, this.emit("onTokenUpdate", x, v), O.event(`[${ii.logName}]`, "getToken", x, v);
9396
+ this.expiration = x.expiration || v.expiration, this.emit("onTokenUpdate", x, v), O.event(`[${ri.logName}]`, "getToken", x, v);
9397
9397
  } else
9398
9398
  throw new Error();
9399
9399
  this.slsReporter.reportSTSResult(200, d);
9400
9400
  }).catch((f) => {
9401
- this.slsReporter.reportSTSResult(-1, d), O.error(`[${ii.logName}]`, "getToken", f.message);
9401
+ this.slsReporter.reportSTSResult(-1, d), O.error(`[${ri.logName}]`, "getToken", f.message);
9402
9402
  });
9403
9403
  }));
9404
9404
  this.slsReporter = e, this.env = t;
@@ -9408,25 +9408,25 @@ const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", O
9408
9408
  }
9409
9409
  startSTSUpdate(e) {
9410
9410
  this.authInfo = e, this.requestToken(), this.timer && clearInterval(this.timer), this.timer = window.setInterval(() => {
9411
- if (this.expiration && Math.floor((Date.now() + Oa * 1.5) / 1e3) < this.expiration && this.skipTime < O0) {
9411
+ if (this.expiration && Math.floor((Date.now() + Ha * 1.5) / 1e3) < this.expiration && this.skipTime < H0) {
9412
9412
  this.skipTime += 1;
9413
9413
  return;
9414
9414
  }
9415
9415
  this.requestToken();
9416
- }, Oa);
9416
+ }, Ha);
9417
9417
  }
9418
9418
  clear() {
9419
9419
  this.timer && clearInterval(this.timer);
9420
9420
  }
9421
9421
  };
9422
- g(ii, "logName", "StsManager");
9423
- let Fr = ii;
9424
- var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, j0 = (r, a, e, t) => {
9425
- for (var i = t > 1 ? void 0 : t ? H0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
9422
+ g(ri, "logName", "StsManager");
9423
+ let Ur = ri;
9424
+ var j0 = Object.defineProperty, z0 = Object.getOwnPropertyDescriptor, W0 = (r, a, e, t) => {
9425
+ for (var i = t > 1 ? void 0 : t ? z0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
9426
9426
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
9427
- return t && i && U0(a, e, i), i;
9427
+ return t && i && j0(a, e, i), i;
9428
9428
  };
9429
- class ss extends De {
9429
+ class ns extends De {
9430
9430
  constructor(e, t, i, s = pt.prod) {
9431
9431
  super();
9432
9432
  g(this, "signaling");
@@ -9438,7 +9438,7 @@ class ss extends De {
9438
9438
  g(this, "maxConnectRetryCount");
9439
9439
  g(this, "stsManager");
9440
9440
  g(this, "slsReporter");
9441
- this.channelProfile = e, this.clientRole = t, this.env = s, this.slsReporter = i, this.stsManager = new Fr(i, s);
9441
+ this.channelProfile = e, this.clientRole = t, this.env = s, this.slsReporter = i, this.stsManager = new Ur(i, s);
9442
9442
  }
9443
9443
  reset() {
9444
9444
  var e;
@@ -9451,7 +9451,7 @@ class ss extends De {
9451
9451
  */
9452
9452
  join(e, t = e.userId, i, s) {
9453
9453
  return this.maxConnectRetryCount = i, this.userName = t, new Promise((n, c) => {
9454
- this.signaling ? c(new F(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new L0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
9454
+ this.signaling ? c(new F(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new F0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
9455
9455
  this.authInfo = e, s && (s.re = Date.now()), n(o);
9456
9456
  }).catch((o) => {
9457
9457
  this.reset(), c(o);
@@ -9641,18 +9641,28 @@ class ss extends De {
9641
9641
  /**
9642
9642
  * @ignore
9643
9643
  */
9644
- g(ss, "logName", "SignalingManager");
9645
- j0([
9644
+ g(ns, "logName", "SignalingManager");
9645
+ W0([
9646
9646
  D(H)
9647
- ], ss.prototype, "publish", 1);
9647
+ ], ns.prototype, "publish", 1);
9648
+ function Kt() {
9649
+ }
9648
9650
  const Nt = class Nt {
9649
9651
  static getInstance() {
9650
- return Nt.instance || (Nt.instance = new AudioContext()), Nt.instance.resume(), Nt.instance;
9652
+ var a;
9653
+ return Nt.instance || (Nt.instance = new AudioContext()), (a = Nt.instance.resume()) == null || a.then(Kt, Kt).catch(Kt), Nt.instance;
9651
9654
  }
9652
9655
  };
9653
9656
  g(Nt, "instance");
9654
- let $t = Nt;
9655
- function z0(r, a, e, t, i) {
9657
+ let Mt = Nt;
9658
+ const _i = () => {
9659
+ var a;
9660
+ const r = Mt.getInstance();
9661
+ r.state !== "running" && r.state !== "closed" && ((a = r.resume()) == null || a.then(Kt, Kt).catch(Kt)), window.removeEventListener("mousedown", _i), window.removeEventListener("touchstart", _i);
9662
+ };
9663
+ window.addEventListener("mousedown", _i);
9664
+ window.addEventListener("touchend", _i);
9665
+ function $0(r, a, e, t, i) {
9656
9666
  let s = t, n = 0, c;
9657
9667
  const o = r.createAnalyser();
9658
9668
  o.fftSize = 256;
@@ -9661,7 +9671,7 @@ function z0(r, a, e, t, i) {
9661
9671
  const h = () => {
9662
9672
  c && window.clearInterval(c);
9663
9673
  }, p = () => {
9664
- c = window.setInterval(() => {
9674
+ r.state === "suspended" && r.resume(), c = window.setInterval(() => {
9665
9675
  o.getByteFrequencyData(u);
9666
9676
  let d = Math.round(u.reduce((f, m) => f + m) / u.length);
9667
9677
  d = Math.min(100, d), n = d, i && i(d);
@@ -9677,14 +9687,14 @@ function z0(r, a, e, t, i) {
9677
9687
  }
9678
9688
  };
9679
9689
  }
9680
- class W0 extends De {
9690
+ class K0 extends De {
9681
9691
  constructor() {
9682
9692
  super();
9683
9693
  g(this, "audioContext");
9684
9694
  g(this, "stream");
9685
9695
  g(this, "sourceNode");
9686
9696
  g(this, "analyser");
9687
- this.audioContext = $t.getInstance(), this.stream = new MediaStream();
9697
+ this.audioContext = Mt.getInstance(), this.stream = new MediaStream();
9688
9698
  }
9689
9699
  getLevel() {
9690
9700
  return this.analyser ? this.analyser.getLevel() : 0;
@@ -9698,7 +9708,7 @@ class W0 extends De {
9698
9708
  start(e, t = 1e3) {
9699
9709
  this.sourceNode && this.stop(), this.stream.addTrack(e), this.sourceNode = this.audioContext.createMediaStreamSource(this.stream);
9700
9710
  const i = this.audioContext.createMediaStreamDestination();
9701
- this.analyser = z0(this.audioContext, this.sourceNode, i, t, (s) => {
9711
+ this.analyser = $0(this.audioContext, this.sourceNode, i, t, (s) => {
9702
9712
  this.emit("audioLevel", s);
9703
9713
  });
9704
9714
  }
@@ -9711,7 +9721,7 @@ class W0 extends De {
9711
9721
  this.stop();
9712
9722
  }
9713
9723
  }
9714
- class Sn extends De {
9724
+ class bn extends De {
9715
9725
  constructor(e, t, i, s) {
9716
9726
  super();
9717
9727
  g(this, "uid");
@@ -9721,7 +9731,7 @@ class Sn extends De {
9721
9731
  // 本地音量检测
9722
9732
  g(this, "audioLevelMonitor");
9723
9733
  g(this, "audioVolumeIndicationInterval", 0);
9724
- this.uid = e, this.name = t, this.rtsManager = i, this.audioVolumeIndicationInterval = s, this.audioLevelMonitor = new W0();
9734
+ this.uid = e, this.name = t, this.rtsManager = i, this.audioVolumeIndicationInterval = s, this.audioLevelMonitor = new K0();
9725
9735
  }
9726
9736
  get userId() {
9727
9737
  return this.uid;
@@ -9754,7 +9764,7 @@ class Sn extends De {
9754
9764
  this.audioLevelMonitor.dispose();
9755
9765
  }
9756
9766
  }
9757
- class vn {
9767
+ class En {
9758
9768
  /**
9759
9769
  * 将设备状态转换成String通过同名通道发送出去
9760
9770
  * @param status
@@ -9787,19 +9797,19 @@ class vn {
9787
9797
  };
9788
9798
  }
9789
9799
  }
9790
- const $0 = "customVideoProfile", K0 = "customScreenProfile", Or = {
9800
+ const q0 = "customVideoProfile", J0 = "customScreenProfile", Hr = {
9791
9801
  width: 1280,
9792
9802
  height: 720,
9793
9803
  frameRate: 30,
9794
9804
  maxBitrate: 2e3
9795
- }, Ua = {
9805
+ }, ja = {
9796
9806
  width: 1920,
9797
9807
  height: 1080,
9798
9808
  frameRate: 30,
9799
9809
  maxBitrate: 2600
9800
9810
  };
9801
- var ei = /* @__PURE__ */ ((r) => (r[r.ERROR_DEVICE_UNKNOWNERROR = 1e4] = "ERROR_DEVICE_UNKNOWNERROR", r[r.ERROR_DEVICE_AUDIODEVICE_NOTFOUND = 10001] = "ERROR_DEVICE_AUDIODEVICE_NOTFOUND", r[r.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED = 10002] = "ERROR_DEVICE_AUDIODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_AUDIODEVICE_NOTREADABLE = 10003] = "ERROR_DEVICE_AUDIODEVICE_NOTREADABLE", r[r.ERROR_DEVICE_VIDEODEVICE_NOTFOUND = 10004] = "ERROR_DEVICE_VIDEODEVICE_NOTFOUND", r[r.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED = 10005] = "ERROR_DEVICE_VIDEODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_VIDEODEVICE_NOTREADABLE = 10006] = "ERROR_DEVICE_VIDEODEVICE_NOTREADABLE", r[r.ERROR_SCREENSHARE_NOTSUPPORT = 10010] = "ERROR_SCREENSHARE_NOTSUPPORT", r[r.ERROR_SCREENSHARE_NOTALLOWED = 10011] = "ERROR_SCREENSHARE_NOTALLOWED", r[r.ERROR_SCREENSHARE_ENDED = 10012] = "ERROR_SCREENSHARE_ENDED", r[r.ERROR_SCREENSHARE_NOPERMISSION = 10013] = "ERROR_SCREENSHARE_NOPERMISSION", r[r.ERROR_SCREENSHARE_SAFARI_INVALIDACCESS = 10014] = "ERROR_SCREENSHARE_SAFARI_INVALIDACCESS", r[r.ERROR_SCREENSHARE_UNKNOWNERRO = 10019] = "ERROR_SCREENSHARE_UNKNOWNERRO", r[r.ERROR_DEVICE_NOTSUPPORT = 2e4] = "ERROR_DEVICE_NOTSUPPORT", r))(ei || {});
9802
- const q0 = {
9811
+ var ti = /* @__PURE__ */ ((r) => (r[r.ERROR_DEVICE_UNKNOWNERROR = 1e4] = "ERROR_DEVICE_UNKNOWNERROR", r[r.ERROR_DEVICE_AUDIODEVICE_NOTFOUND = 10001] = "ERROR_DEVICE_AUDIODEVICE_NOTFOUND", r[r.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED = 10002] = "ERROR_DEVICE_AUDIODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_AUDIODEVICE_NOTREADABLE = 10003] = "ERROR_DEVICE_AUDIODEVICE_NOTREADABLE", r[r.ERROR_DEVICE_VIDEODEVICE_NOTFOUND = 10004] = "ERROR_DEVICE_VIDEODEVICE_NOTFOUND", r[r.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED = 10005] = "ERROR_DEVICE_VIDEODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_VIDEODEVICE_NOTREADABLE = 10006] = "ERROR_DEVICE_VIDEODEVICE_NOTREADABLE", r[r.ERROR_SCREENSHARE_NOTSUPPORT = 10010] = "ERROR_SCREENSHARE_NOTSUPPORT", r[r.ERROR_SCREENSHARE_NOTALLOWED = 10011] = "ERROR_SCREENSHARE_NOTALLOWED", r[r.ERROR_SCREENSHARE_ENDED = 10012] = "ERROR_SCREENSHARE_ENDED", r[r.ERROR_SCREENSHARE_NOPERMISSION = 10013] = "ERROR_SCREENSHARE_NOPERMISSION", r[r.ERROR_SCREENSHARE_SAFARI_INVALIDACCESS = 10014] = "ERROR_SCREENSHARE_SAFARI_INVALIDACCESS", r[r.ERROR_SCREENSHARE_UNKNOWNERRO = 10019] = "ERROR_SCREENSHARE_UNKNOWNERRO", r[r.ERROR_DEVICE_NOTSUPPORT = 2e4] = "ERROR_DEVICE_NOTSUPPORT", r))(ti || {});
9812
+ const G0 = {
9803
9813
  1e4: _e.AliEngineLocalDeviceExceptionTypeUnknown,
9804
9814
  2e4: _e.AliEngineLocalDeviceExceptionTypeUnknown,
9805
9815
  10001: _e.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
@@ -9816,8 +9826,8 @@ const q0 = {
9816
9826
  10019: _e.AliEngineLocalDeviceExceptionTypeDisplayException
9817
9827
  };
9818
9828
  var Je = /* @__PURE__ */ ((r) => (r.CREATE_ENGINE = "create_engine", r.JOIN = "join", r.WANT_INSERT_PUB_TASK = "wantInsertPubTask", r.INSERT_PUB_TASK = "InsertPubTask", r.HANDLE_PUB_TASK = "HandlePubTask", r.RECV_NOTIFY_PUBLISH = "RecvNotifyPublish", r.INSERT_SUB_TASK = "InsertSubTask", r.HANDLE_SUB_TASK = "HandleSubTask", r.FIRST_REMOTE = "first_remote", r))(Je || {}), Xe = /* @__PURE__ */ ((r) => (r.START = "start", r.SEND_SIG = "send_sig", r.RECV_RST = "recv_rst", r.END = "end", r.RECEIVED = "received", r.DECODED = "decoded", r.PLAYED = "played", r))(Xe || {});
9819
- const J0 = (r) => r.getAudioTracks()[0];
9820
- function Ha(r) {
9829
+ const X0 = (r) => r.getAudioTracks()[0];
9830
+ function za(r) {
9821
9831
  var a;
9822
9832
  if (((a = r == null ? void 0 : r.nodeName) == null ? void 0 : a.toLowerCase()) === "video")
9823
9833
  return r.setAttribute("playsinline", ""), r;
@@ -9832,19 +9842,19 @@ function Ha(r) {
9832
9842
  } else
9833
9843
  throw new F(U.ERR_INVALID_ARGUMENTS, "element id should be string");
9834
9844
  }
9835
- function Ur(r) {
9845
+ function jr(r) {
9836
9846
  var e;
9837
9847
  const a = [];
9838
9848
  if (Array.isArray(r))
9839
9849
  r.forEach((t) => {
9840
9850
  try {
9841
- a.push(Ha(t));
9851
+ a.push(za(t));
9842
9852
  } catch (i) {
9843
9853
  }
9844
9854
  });
9845
9855
  else if (typeof r == "string" || ((e = r == null ? void 0 : r.nodeName) == null ? void 0 : e.toLowerCase()) === "video")
9846
9856
  try {
9847
- a.push(Ha(r));
9857
+ a.push(za(r));
9848
9858
  } catch (t) {
9849
9859
  }
9850
9860
  return a;
@@ -9852,7 +9862,7 @@ function Ur(r) {
9852
9862
  function Et(r) {
9853
9863
  return new Promise((a) => setTimeout(a, r));
9854
9864
  }
9855
- function ja(r, a, e = 1e3, t = (i) => !0) {
9865
+ function Wa(r, a, e = 1e3, t = (i) => !0) {
9856
9866
  return w(this, null, function* () {
9857
9867
  let i = 0, s;
9858
9868
  for (; i < a; )
@@ -9865,7 +9875,7 @@ function ja(r, a, e = 1e3, t = (i) => !0) {
9865
9875
  }
9866
9876
  });
9867
9877
  }
9868
- function G0(r, a) {
9878
+ function Y0(r, a) {
9869
9879
  let e = 0;
9870
9880
  const t = [];
9871
9881
  for (; e < r.byteLength; ) {
@@ -9874,7 +9884,7 @@ function G0(r, a) {
9874
9884
  }
9875
9885
  return t;
9876
9886
  }
9877
- function X0(r) {
9887
+ function Z0(r) {
9878
9888
  var a, e;
9879
9889
  try {
9880
9890
  const t = new URL(r), [i, s] = t.pathname.slice(1).split("/"), n = /(\w+)(web\w{5}-\w{4}-\w{4}-\w{4}-\w{12})/.exec(s), c = n == null ? void 0 : n[1], o = n == null ? void 0 : n[2], u = new URLSearchParams(t.search), h = parseInt((e = (a = u.get("auth_key")) == null ? void 0 : a.split("-")[0]) != null ? e : "0") * 1e3;
@@ -9888,11 +9898,11 @@ function X0(r) {
9888
9898
  return null;
9889
9899
  }
9890
9900
  }
9891
- function za(r, a) {
9901
+ function $a(r, a) {
9892
9902
  let e = a;
9893
9903
  return typeof window.__ali_prefer_media_server == "string" && window.__ali_prefer_media_server !== "" && (e = window.__ali_prefer_media_server), e ? `${r}&ali_prefer_media_server=${e}` : r;
9894
9904
  }
9895
- const bn = (r, a, e = !1) => {
9905
+ const _n = (r, a, e = !1) => {
9896
9906
  const t = () => (r.muted = !0, Promise.race([Et(500), r._playPromise || Promise.resolve()]).catch(() => {
9897
9907
  }).then(() => {
9898
9908
  let i;
@@ -9921,8 +9931,8 @@ const bn = (r, a, e = !1) => {
9921
9931
  r.srcObject = null, r._playPromise = void 0;
9922
9932
  });
9923
9933
  };
9924
- var En = /* @__PURE__ */ ((r) => (r[r.AliEngineDataMsgNone = 0] = "AliEngineDataMsgNone", r[r.AliEngineDataMsgMusicProgress = 1] = "AliEngineDataMsgMusicProgress", r[r.AliEngineDataMsgCustom = 2] = "AliEngineDataMsgCustom", r))(En || {});
9925
- class Ii {
9934
+ var An = /* @__PURE__ */ ((r) => (r[r.AliEngineDataMsgNone = 0] = "AliEngineDataMsgNone", r[r.AliEngineDataMsgMusicProgress = 1] = "AliEngineDataMsgMusicProgress", r[r.AliEngineDataMsgCustom = 2] = "AliEngineDataMsgCustom", r))(An || {});
9935
+ class Di {
9926
9936
  constructor(a, e, t, i = 0) {
9927
9937
  g(this, "msgType");
9928
9938
  g(this, "msgId");
@@ -9936,15 +9946,15 @@ class Ii {
9936
9946
  }
9937
9947
  static parse(a) {
9938
9948
  const e = new DataView(a), t = e.getUint8(0), i = e.getUint8(1) >> 4, s = e.getUint8(1) & 15, n = e.getUint16(2);
9939
- return new Ii(s, n, t, i);
9949
+ return new Di(s, n, t, i);
9940
9950
  }
9941
9951
  }
9942
9952
  const Tt = 5;
9943
- class mi {
9953
+ class xi {
9944
9954
  constructor(a, e, t) {
9945
9955
  g(this, "_byteArray");
9946
9956
  if (this._byteArray = new Uint8Array(0), a !== void 0 && e !== void 0 && t !== void 0) {
9947
- const s = new Ii(a, e, t).build();
9957
+ const s = new Di(a, e, t).build();
9948
9958
  this._byteArray = new Uint8Array(s.byteLength + this._byteArray.byteLength), this._byteArray.set(s, 0);
9949
9959
  }
9950
9960
  }
@@ -9971,7 +9981,7 @@ class mi {
9971
9981
  return this._byteArray.buffer;
9972
9982
  }
9973
9983
  }
9974
- class oi {
9984
+ class ci {
9975
9985
  constructor(a = 0, e = !0, t = 1, i = !1, s = 0, n = !1, c = !1, o = 3) {
9976
9986
  g(this, "_fin", !0);
9977
9987
  g(this, "_hasExtension", !1);
@@ -10019,7 +10029,7 @@ class oi {
10019
10029
  }
10020
10030
  static parse(a) {
10021
10031
  const e = new DataView(a), t = e.getUint8(0) >> 7 === 1, i = (e.getUint8(0) & 64) >> 6 === 1, s = (e.getUint8(0) & 48) >> 4, n = e.getUint8(0) & 15, c = e.getUint8(1) >> 7 === 1, o = (e.getUint8(1) & 64) >> 6 === 1, u = e.getUint8(1) & 15, h = e.getUint16(2);
10022
- return new oi(
10032
+ return new ci(
10023
10033
  h,
10024
10034
  t,
10025
10035
  n,
@@ -10031,10 +10041,10 @@ class oi {
10031
10041
  );
10032
10042
  }
10033
10043
  }
10034
- class wi {
10044
+ class Ti {
10035
10045
  constructor(a, e) {
10036
10046
  g(this, "_body");
10037
- g(this, "_header", new oi());
10047
+ g(this, "_header", new ci());
10038
10048
  this._header = a, this._body = e;
10039
10049
  }
10040
10050
  get header() {
@@ -10053,20 +10063,20 @@ class wi {
10053
10063
  return i.set(new Uint8Array(t), 0), i.set(new Uint8Array(a), t.byteLength), i.set(new Uint8Array(e), t.byteLength + a.byteLength), i.buffer;
10054
10064
  }
10055
10065
  static parse(a) {
10056
- const e = a.slice(0, 4), t = oi.parse(e);
10066
+ const e = a.slice(0, 4), t = ci.parse(e);
10057
10067
  let i = new ArrayBuffer(0);
10058
- return a.byteLength - 4 >= t.payloadLength && (i = a.slice(4, 4 + t.payloadLength)), new wi(t, i);
10068
+ return a.byteLength - 4 >= t.payloadLength && (i = a.slice(4, 4 + t.payloadLength)), new Ti(t, i);
10059
10069
  }
10060
10070
  }
10061
- const Pr = (r) => {
10071
+ const Br = (r) => {
10062
10072
  const a = r.byteLength, e = new DataView(r);
10063
10073
  let t = 0;
10064
10074
  for (let i = 0; i < a; i++)
10065
10075
  t = t * 256 + e.getUint8(i);
10066
10076
  return t;
10067
10077
  };
10068
- let Wa = 0;
10069
- class Kt {
10078
+ let Ka = 0;
10079
+ class qt {
10070
10080
  constructor(a, e = 0, t = 0, i = 0) {
10071
10081
  g(this, "data");
10072
10082
  g(this, "networkTime");
@@ -10075,9 +10085,9 @@ class Kt {
10075
10085
  this.data = a, this.type = e, this.networkTime = t, this.futureOrProgress = i;
10076
10086
  }
10077
10087
  toBuffer() {
10078
- const a = new mi(0, 0, 0);
10079
- a.write(1, Uint8Array.from([0]).buffer), a.write(2, Uint16Array.from([0]).buffer), Wa++, a.write(3, Uint32Array.from([Wa]).buffer);
10080
- const e = new mi();
10088
+ const a = new xi(0, 0, 0);
10089
+ a.write(1, Uint8Array.from([0]).buffer), a.write(2, Uint16Array.from([0]).buffer), Ka++, a.write(3, Uint32Array.from([Ka]).buffer);
10090
+ const e = new xi();
10081
10091
  return e.write(1, Uint8Array.from([0]).buffer), e.write(2, Uint8Array.from([this.type]).buffer), e.write(3, Uint32Array.from([this.futureOrProgress]).buffer), e.write(
10082
10092
  4,
10083
10093
  Uint32Array.from([Number(this.networkTime >> 32 & 4294967295), Number(this.networkTime & 4294967295)]).buffer
@@ -10086,14 +10096,14 @@ class Kt {
10086
10096
  static parse(a) {
10087
10097
  if (!a || a.byteLength < 4)
10088
10098
  return;
10089
- Ii.parse(a.slice(0, 4));
10090
- const t = mi.parse(a.slice(4))[
10099
+ Di.parse(a.slice(0, 4));
10100
+ const t = xi.parse(a.slice(4))[
10091
10101
  30
10092
10102
  /* TLV_TAG_Music */
10093
10103
  ];
10094
10104
  if (!t)
10095
10105
  return;
10096
- const i = mi.parse(t), s = i[
10106
+ const i = xi.parse(t), s = i[
10097
10107
  2
10098
10108
  /* TLV_TAG_Command */
10099
10109
  ], n = i[
@@ -10107,21 +10117,21 @@ class Kt {
10107
10117
  /* TLV_TAG_UserMsg */
10108
10118
  ];
10109
10119
  if (o.byteLength !== 0)
10110
- return new Kt(
10120
+ return new qt(
10111
10121
  o,
10112
- Pr(s),
10113
- Pr(c),
10114
- Pr(n)
10122
+ Br(s),
10123
+ Br(c),
10124
+ Br(n)
10115
10125
  );
10116
10126
  }
10117
10127
  }
10118
- var Y0 = Object.defineProperty, Z0 = Object.getOwnPropertyDescriptor, me = (r, a, e, t) => {
10119
- for (var i = t > 1 ? void 0 : t ? Z0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
10128
+ var Q0 = Object.defineProperty, ec = Object.getOwnPropertyDescriptor, me = (r, a, e, t) => {
10129
+ for (var i = t > 1 ? void 0 : t ? ec(a, e) : a, s = r.length - 1, n; s >= 0; s--)
10120
10130
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
10121
- return t && i && Y0(a, e, i), i;
10131
+ return t && i && Q0(a, e, i), i;
10122
10132
  };
10123
- const $a = 30;
10124
- class Zt extends De {
10133
+ const qa = 30;
10134
+ class Qt extends De {
10125
10135
  constructor() {
10126
10136
  super();
10127
10137
  g(this, "_state");
@@ -10137,7 +10147,7 @@ class Zt extends De {
10137
10147
  }
10138
10148
  }
10139
10149
  var lt;
10140
- const ge = (lt = class extends Sn {
10150
+ const ge = (lt = class extends bn {
10141
10151
  constructor(e) {
10142
10152
  const { rtsManager: t, localStreamManager: i, slsReporter: s, signalingManager: n, audioVolumeIndicationInterval: c, parameter: o } = e;
10143
10153
  super("", "", t, c);
@@ -10179,15 +10189,15 @@ const ge = (lt = class extends Sn {
10179
10189
  this.onTrackEnd(u);
10180
10190
  }), this.streamManager.on("publishupdate", () => {
10181
10191
  this.publishUpdate();
10182
- }), this.audioPubState = new Zt(), this.audioPubState.on("change", (u, h, p) => {
10192
+ }), this.audioPubState = new Qt(), this.audioPubState.on("change", (u, h, p) => {
10183
10193
  this.emit("audioPublishStateChanged", u, h, p);
10184
- }), this.videoPubState = new Zt(), this.videoPubState.on("change", (u, h, p) => {
10194
+ }), this.videoPubState = new Qt(), this.videoPubState.on("change", (u, h, p) => {
10185
10195
  this.emit("videoPublishStateChanged", u, h, p);
10186
- }), this.videoSmallPubState = new Zt(), this.videoSmallPubState.on("change", (u, h, p) => {
10196
+ }), this.videoSmallPubState = new Qt(), this.videoSmallPubState.on("change", (u, h, p) => {
10187
10197
  this.emit("dualStreamPublishStateChanged", u, h, p);
10188
- }), this.screenPubState = new Zt(), this.screenPubState.on("change", (u, h, p) => {
10198
+ }), this.screenPubState = new Qt(), this.screenPubState.on("change", (u, h, p) => {
10189
10199
  this.emit("screenPublishStateChanged", u, h, p);
10190
- }), this.dataPubState = new Zt(), this.dataPubState.on("change", (u, h, p) => {
10200
+ }), this.dataPubState = new Qt(), this.dataPubState.on("change", (u, h, p) => {
10191
10201
  this.emit("dataPublishStateChanged", u, h, p);
10192
10202
  }), this.startStreamMonitor();
10193
10203
  }
@@ -10280,7 +10290,7 @@ const ge = (lt = class extends Sn {
10280
10290
  }
10281
10291
  setVideoProfile(e) {
10282
10292
  return w(this, null, function* () {
10283
- yield this.streamManager.setVideoProfile($0, e);
10293
+ yield this.streamManager.setVideoProfile(q0, e);
10284
10294
  });
10285
10295
  }
10286
10296
  setVideoContentHint(e) {
@@ -10296,15 +10306,15 @@ const ge = (lt = class extends Sn {
10296
10306
  }
10297
10307
  setScreenProfile(e) {
10298
10308
  return w(this, null, function* () {
10299
- yield this.streamManager.setScreenProfile(K0, e);
10309
+ yield this.streamManager.setScreenProfile(J0, e);
10300
10310
  });
10301
10311
  }
10302
10312
  setCameraDirection(e) {
10303
- if (e === ni.CAMERA_FRONT)
10313
+ if (e === oi.CAMERA_FRONT)
10304
10314
  this.streamManager.setCameraVideoConstraints({
10305
10315
  facingMode: "user"
10306
10316
  });
10307
- else if (e === ni.CAMERA_REAR)
10317
+ else if (e === oi.CAMERA_REAR)
10308
10318
  this.streamManager.setCameraVideoConstraints({
10309
10319
  facingMode: "environment"
10310
10320
  });
@@ -10347,7 +10357,7 @@ const ge = (lt = class extends Sn {
10347
10357
  }
10348
10358
  clear() {
10349
10359
  return w(this, null, function* () {
10350
- ki(lt.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10360
+ Ni(lt.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10351
10361
  });
10352
10362
  }
10353
10363
  resetElement(e) {
@@ -10366,7 +10376,7 @@ const ge = (lt = class extends Sn {
10366
10376
  } catch (n) {
10367
10377
  const c = n.errorCode;
10368
10378
  let o = U.ERR_CAMERA_OPEN_FAIL;
10369
- throw c === ei.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? o = U.ERR_CAMERA_NOT_AVAILABLE : c === ei.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (o = U.ERR_CAMERA_AUTH_FAIL), new F(o, `camera open fail: ${n.message}`);
10379
+ throw c === ti.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? o = U.ERR_CAMERA_NOT_AVAILABLE : c === ti.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (o = U.ERR_CAMERA_AUTH_FAIL), new F(o, `camera open fail: ${n.message}`);
10370
10380
  }
10371
10381
  });
10372
10382
  }
@@ -10379,7 +10389,7 @@ const ge = (lt = class extends Sn {
10379
10389
  } catch (s) {
10380
10390
  const n = s.errorCode;
10381
10391
  let c = U.ERR_MIC_OPEN_FAIL;
10382
- throw n === ei.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? c = U.ERR_MIC_NOT_AVAILABLE : n === ei.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (c = U.ERR_MIC_AUTH_FAIL), new F(c, `mic open fail: ${s.message}`);
10392
+ throw n === ti.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? c = U.ERR_MIC_NOT_AVAILABLE : n === ti.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (c = U.ERR_MIC_AUTH_FAIL), new F(c, `mic open fail: ${s.message}`);
10383
10393
  }
10384
10394
  });
10385
10395
  }
@@ -10449,7 +10459,7 @@ const ge = (lt = class extends Sn {
10449
10459
  O.info(`[${lt.logName}]`, "preview no stream founded");
10450
10460
  return;
10451
10461
  }
10452
- return bn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
10462
+ return _n(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
10453
10463
  } catch (s) {
10454
10464
  const n = U.ERR_INNER;
10455
10465
  throw F.fromError(s, n, "preview failed");
@@ -10514,7 +10524,7 @@ const ge = (lt = class extends Sn {
10514
10524
  const t = yield this.streamManager.createLocalStream(e);
10515
10525
  return t != null && t.audioTrack && this.audioVolumeIndicationInterval > 0 && this.audioLevelMonitor.start(t.audioTrack, this.audioVolumeIndicationInterval), e.video ? this.previewAll({ primary: !0 }) : e.screen && this.previewAll({ screen: !0 }), t;
10516
10526
  } catch (t) {
10517
- const i = q0[t.errorCode];
10527
+ const i = G0[t.errorCode];
10518
10528
  throw i && (e.audio ? this.emit(
10519
10529
  "localDeviceException",
10520
10530
  dt.AliEngineLocalDeviceTypeMic,
@@ -10901,7 +10911,7 @@ const ge = (lt = class extends Sn {
10901
10911
  * 事件通知本地的设备使用状态
10902
10912
  */
10903
10913
  reportSelfDeviceStatus() {
10904
- this.emit(Le.Local, this.getDeviceStatus());
10914
+ this.emit(Me.Local, this.getDeviceStatus());
10905
10915
  }
10906
10916
  /**
10907
10917
  * 从localStream 中获取当前的设备状态
@@ -10920,7 +10930,7 @@ const ge = (lt = class extends Sn {
10920
10930
  backgroundMode: !1,
10921
10931
  accompanyPlaying: !1
10922
10932
  };
10923
- return e.cameraOpen = this.hasCamera, e.micOpen = this.hasMicrophone, e.screenShare = this.hasScreenShare, e.audioDisable = !((t = this.streamManager.cameraStreamInfo.originAudioTrack) != null && t.enabled), e.videoDisable = !((i = this.streamManager.cameraStreamInfo.originVideoTrack) != null && i.enabled), e.screenDisable = !this.hasScreenShare || !((n = (s = this.streamManager.screenStreamInfo) == null ? void 0 : s.originVideoTrack) != null && n.enabled), vn.getCurrentStatus(e);
10933
+ return e.cameraOpen = this.hasCamera, e.micOpen = this.hasMicrophone, e.screenShare = this.hasScreenShare, e.audioDisable = !((t = this.streamManager.cameraStreamInfo.originAudioTrack) != null && t.enabled), e.videoDisable = !((i = this.streamManager.cameraStreamInfo.originVideoTrack) != null && i.enabled), e.screenDisable = !this.hasScreenShare || !((n = (s = this.streamManager.screenStreamInfo) == null ? void 0 : s.originVideoTrack) != null && n.enabled), En.getCurrentStatus(e);
10924
10934
  }
10925
10935
  resetPreviewElements() {
10926
10936
  this.previewElements.forEach((e) => {
@@ -10974,7 +10984,7 @@ const ge = (lt = class extends Sn {
10974
10984
  const t = this.candidateDataCache[this.candidateDataCache.length - 1] || {}, { _last: h } = t;
10975
10985
  c = wt(t, ["_last"]);
10976
10986
  }
10977
- ((i = this.candidateDataCache) == null ? void 0 : i.length) >= $a && this.reportNetwork(), n && (n._last = c, this.candidateDataCache.push(n));
10987
+ ((i = this.candidateDataCache) == null ? void 0 : i.length) >= qa && this.reportNetwork(), n && (n._last = c, this.candidateDataCache.push(n));
10978
10988
  let o = Object.keys(this.monitorDataCache).filter((u) => {
10979
10989
  var h;
10980
10990
  return ((h = this.monitorDataCache[u]) == null ? void 0 : h.length) > 0;
@@ -10997,7 +11007,7 @@ const ge = (lt = class extends Sn {
10997
11007
  const v = l[l.length - 1] || {}, { _last: b } = v;
10998
11008
  x = wt(v, ["_last"]);
10999
11009
  }
11000
- (l == null ? void 0 : l.length) >= $a && this.reportPublishMonitor(h), f._last = x, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
11010
+ (l == null ? void 0 : l.length) >= qa && this.reportPublishMonitor(h), f._last = x, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
11001
11011
  });
11002
11012
  }), o.forEach((u) => {
11003
11013
  this.reportPublishMonitor(u);
@@ -11055,10 +11065,10 @@ const ge = (lt = class extends Sn {
11055
11065
  throw new F(U.ERR_INNER, "data channel publish is not enabled");
11056
11066
  if (!this.dc)
11057
11067
  throw new F(U.ERR_INNER, "data channel is not ready");
11058
- const t = e.toBuffer(), i = G0(t, 1156);
11068
+ const t = e.toBuffer(), i = Y0(t, 1156);
11059
11069
  i.forEach((n, c) => {
11060
- const o = new wi(
11061
- new oi(n.byteLength, c === i.length - 1, c === 0 ? 1 : 0),
11070
+ const o = new Ti(
11071
+ new ci(n.byteLength, c === i.length - 1, c === 0 ? 1 : 0),
11062
11072
  n
11063
11073
  );
11064
11074
  this.dc.send(o.toGRTNBuffer());
@@ -11070,7 +11080,7 @@ const ge = (lt = class extends Sn {
11070
11080
  const e = [];
11071
11081
  if (this.hasAudioTrackInMS) {
11072
11082
  const n = yield this.rtsManager.getPublishAudioStats(this.url);
11073
- n && e.push({ stats: n, track: Gt.AliRtcAudioTrackMic });
11083
+ n && e.push({ stats: n, track: Xt.AliRtcAudioTrackMic });
11074
11084
  }
11075
11085
  const t = [];
11076
11086
  if (this.hasCameraTrackInMS) {
@@ -11179,31 +11189,31 @@ me([
11179
11189
  me([
11180
11190
  D(([r, a, e]) => [r.length, a, e])
11181
11191
  ], ge.prototype, "sendSEI", 1);
11182
- let Q0 = ge;
11183
- var vt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(vt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), Lt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(Lt || {});
11184
- const ec = (r) => {
11192
+ let tc = ge;
11193
+ var vt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(vt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), Vt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(Vt || {});
11194
+ const ic = (r) => {
11185
11195
  const a = new MediaStream();
11186
11196
  return a.addTrack(r), a;
11187
- }, _n = (r) => w(void 0, null, function* () {
11197
+ }, yn = (r) => w(void 0, null, function* () {
11188
11198
  return yield le.createStream({
11189
11199
  custom: !0,
11190
11200
  mediaStream: r
11191
11201
  });
11192
- }), Qt = (r) => w(void 0, null, function* () {
11193
- const a = ec(r);
11194
- return yield _n(a);
11195
- }), tc = (r) => {
11202
+ }), ei = (r) => w(void 0, null, function* () {
11203
+ const a = ic(r);
11204
+ return yield yn(a);
11205
+ }), rc = (r) => {
11196
11206
  const { audio: a, video: e, screen: t } = r;
11197
11207
  if (e && t)
11198
11208
  throw new F(U.ERR_INNER, "create stream error, cannot create video && screen together");
11199
11209
  return !(!e && !a && !t);
11200
- }, ic = (r) => r === T.Audio || r === Kr.Audio, rc = (r) => r === T.VideoLarge || r === Kr.VideoLarge, sc = (r) => r === T.VideoSmall, ac = (r) => r === T.Screen, nc = (r) => r === T.Data;
11201
- var oc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, uc = (r, a, e, t) => {
11202
- for (var i = t > 1 ? void 0 : t ? cc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
11210
+ }, sc = (r) => r === T.Audio || r === Jr.Audio, ac = (r) => r === T.VideoLarge || r === Jr.VideoLarge, nc = (r) => r === T.VideoSmall, oc = (r) => r === T.Screen, cc = (r) => r === T.Data;
11211
+ var uc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor, dc = (r, a, e, t) => {
11212
+ for (var i = t > 1 ? void 0 : t ? hc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
11203
11213
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
11204
- return t && i && oc(a, e, i), i;
11214
+ return t && i && uc(a, e, i), i;
11205
11215
  };
11206
- class Ei extends De {
11216
+ class Ai extends De {
11207
11217
  constructor() {
11208
11218
  super();
11209
11219
  g(this, "audioInfo", {
@@ -11390,7 +11400,7 @@ class Ei extends De {
11390
11400
  return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec : vt.UNKNOWN;
11391
11401
  }
11392
11402
  get audioTrackInfo() {
11393
- return this.hasAudio ? Gt.AliRtcAudioTrackMic : Gt.AliRtcAudioTrackNo;
11403
+ return this.hasAudio ? Xt.AliRtcAudioTrackMic : Xt.AliRtcAudioTrackNo;
11394
11404
  }
11395
11405
  get videoTrackInfo() {
11396
11406
  return this.hasVideo && this.hasScreen ? se.AliRtcVideoTrackBoth : this.hasVideo ? se.AliRtcVideoTrackCamera : this.hasScreen ? se.AliRtcVideoTrackScreen : se.AliRtcVideoTrackNo;
@@ -11406,7 +11416,7 @@ class Ei extends De {
11406
11416
  const { codec: d } = JSON.parse(o.userdata);
11407
11417
  d && (u = d);
11408
11418
  }
11409
- ic(o.msid) ? (t = o.ssrc, this.audioInfo.msid = o.msid, this.audioInfo.codec = u, (h || this.audioInfo.ssrc !== t) && (this.audioInfo.subscribeState = re.NotSubscribe)) : sc(o.msid) ? (s = o.ssrc, this.videoSmallInfo.msid = o.msid, this.videoSmallInfo.codec = u, (h || this.videoSmallInfo.ssrc !== s) && (this.videoSmallInfo.subscribeState = re.NotSubscribe)) : rc(o.msid) ? (i = o.ssrc, this.videoLargeInfo.msid = o.msid, this.videoLargeInfo.codec = u, (h || this.videoLargeInfo.ssrc !== i) && (this.videoLargeInfo.subscribeState = re.NotSubscribe)) : ac(o.msid) ? (n = o.ssrc, this.screenInfo.msid = o.msid, this.screenInfo.codec = u, (h || this.screenInfo.ssrc !== n) && (this.screenInfo.subscribeState = re.NotSubscribe)) : nc(o.msid) && (c = o.ssrc, this.dataInfo.msid = o.msid, this.dataInfo.codec = u, (h || this.dataInfo.ssrc !== c) && (this.dataInfo.subscribeState = re.NotSubscribe));
11419
+ sc(o.msid) ? (t = o.ssrc, this.audioInfo.msid = o.msid, this.audioInfo.codec = u, (h || this.audioInfo.ssrc !== t) && (this.audioInfo.subscribeState = re.NotSubscribe)) : nc(o.msid) ? (s = o.ssrc, this.videoSmallInfo.msid = o.msid, this.videoSmallInfo.codec = u, (h || this.videoSmallInfo.ssrc !== s) && (this.videoSmallInfo.subscribeState = re.NotSubscribe)) : ac(o.msid) ? (i = o.ssrc, this.videoLargeInfo.msid = o.msid, this.videoLargeInfo.codec = u, (h || this.videoLargeInfo.ssrc !== i) && (this.videoLargeInfo.subscribeState = re.NotSubscribe)) : oc(o.msid) ? (n = o.ssrc, this.screenInfo.msid = o.msid, this.screenInfo.codec = u, (h || this.screenInfo.ssrc !== n) && (this.screenInfo.subscribeState = re.NotSubscribe)) : cc(o.msid) && (c = o.ssrc, this.dataInfo.msid = o.msid, this.dataInfo.codec = u, (h || this.dataInfo.ssrc !== c) && (this.dataInfo.subscribeState = re.NotSubscribe));
11410
11420
  }), this.updateRemoteTrackSsrc(t, i, s, n, c)) : this.updateRemoteTrackSsrc(t, i, s, n, c), {};
11411
11421
  }
11412
11422
  updateRemoteTrackSsrc(e, t, i, s, n) {
@@ -11433,19 +11443,19 @@ class Ei extends De {
11433
11443
  * @returns {boolean} 状态改变返回true,否则返回false
11434
11444
  */
11435
11445
  updateRemoteUserDeviceStatus(e) {
11436
- let t = vn.parseStatus(e);
11446
+ let t = En.parseStatus(e);
11437
11447
  const { audioDisable: i, videoDisable: s, screenDisable: n } = t;
11438
- return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Le.Remote, i ? oe.MuteAudio : oe.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Le.Remote, s ? oe.MuteVideo : oe.UnmuteVideo)), this.userStatus.screenDisable != n && (this.userStatus.screenDisable = n, this.emit(Le.Remote, n ? oe.MuteScreen : oe.UnmuteScreen))) : (this.userStatus = t, this.emit(Le.Remote, i ? oe.MuteAudio : oe.UnmuteAudio), this.emit(Le.Remote, s ? oe.MuteVideo : oe.UnmuteVideo), this.emit(Le.Remote, n ? oe.MuteScreen : oe.UnmuteScreen)), !1;
11448
+ return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Me.Remote, i ? oe.MuteAudio : oe.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Me.Remote, s ? oe.MuteVideo : oe.UnmuteVideo)), this.userStatus.screenDisable != n && (this.userStatus.screenDisable = n, this.emit(Me.Remote, n ? oe.MuteScreen : oe.UnmuteScreen))) : (this.userStatus = t, this.emit(Me.Remote, i ? oe.MuteAudio : oe.UnmuteAudio), this.emit(Me.Remote, s ? oe.MuteVideo : oe.UnmuteVideo), this.emit(Me.Remote, n ? oe.MuteScreen : oe.UnmuteScreen)), !1;
11439
11449
  }
11440
11450
  }
11441
11451
  /**
11442
11452
  * @ignore
11443
11453
  */
11444
- g(Ei, "logName", "RemoteStreamInfo");
11445
- uc([
11454
+ g(Ai, "logName", "RemoteStreamInfo");
11455
+ dc([
11446
11456
  D()
11447
- ], Ei.prototype, "updateRemoteTrackSubState", 1);
11448
- class hc {
11457
+ ], Ai.prototype, "updateRemoteTrackSubState", 1);
11458
+ class lc {
11449
11459
  constructor(a) {
11450
11460
  g(this, "remoteUser");
11451
11461
  this.remoteUser = a;
@@ -11493,12 +11503,12 @@ class hc {
11493
11503
  return this.remoteUser.getAudioElement();
11494
11504
  }
11495
11505
  }
11496
- var dc = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, Te = (r, a, e, t) => {
11497
- for (var i = t > 1 ? void 0 : t ? lc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
11506
+ var fc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, Te = (r, a, e, t) => {
11507
+ for (var i = t > 1 ? void 0 : t ? pc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
11498
11508
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
11499
- return t && i && dc(a, e, i), i;
11509
+ return t && i && fc(a, e, i), i;
11500
11510
  };
11501
- class jt extends De {
11511
+ class zt extends De {
11502
11512
  constructor() {
11503
11513
  super();
11504
11514
  g(this, "state");
@@ -11522,9 +11532,9 @@ class jt extends De {
11522
11532
  this._enabled = e;
11523
11533
  }
11524
11534
  }
11525
- const fc = 30;
11526
- var Me;
11527
- const Ce = (Me = class extends Sn {
11535
+ const gc = 30;
11536
+ var Le;
11537
+ const Ce = (Le = class extends bn {
11528
11538
  constructor(e) {
11529
11539
  var f;
11530
11540
  const {
@@ -11566,8 +11576,8 @@ const Ce = (Me = class extends Sn {
11566
11576
  g(this, "playoutGainNode");
11567
11577
  g(this, "audioSubState");
11568
11578
  g(this, "videoSubState");
11569
- g(this, "videoLargeSubState", new jt());
11570
- g(this, "videoSmallSubState", new jt());
11579
+ g(this, "videoLargeSubState", new zt());
11580
+ g(this, "videoSmallSubState", new zt());
11571
11581
  g(this, "screenSubState");
11572
11582
  // DataChannel 通道相关
11573
11583
  g(this, "dataSubState");
@@ -11585,7 +11595,7 @@ const Ce = (Me = class extends Sn {
11585
11595
  });
11586
11596
  g(this, "onDataChannelMessage", (e) => {
11587
11597
  var s;
11588
- const t = wi.parse(e.slice(4));
11598
+ const t = Ti.parse(e.slice(4));
11589
11599
  let i;
11590
11600
  if (t.body)
11591
11601
  if (t.isFin) {
@@ -11601,14 +11611,14 @@ const Ce = (Me = class extends Sn {
11601
11611
  const p = this.dcMsgWaitingPieces[h];
11602
11612
  new Uint8Array(c, o, p.byteLength).set(new Uint8Array(p)), o += p.byteLength;
11603
11613
  }
11604
- new Uint8Array(c, o, t.body.byteLength).set(new Uint8Array(t.body)), i = Kt.parse(c);
11614
+ new Uint8Array(c, o, t.body.byteLength).set(new Uint8Array(t.body)), i = qt.parse(c);
11605
11615
  } catch (c) {
11606
11616
  }
11607
- this.dcMsgWaitingPieces = [], i || (i = Kt.parse(t.body));
11617
+ this.dcMsgWaitingPieces = [], i || (i = qt.parse(t.body));
11608
11618
  } else
11609
- i = Kt.parse(t.body);
11619
+ i = qt.parse(t.body);
11610
11620
  i || O.event(
11611
- `[${Me.logName}]`,
11621
+ `[${Le.logName}]`,
11612
11622
  `parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`
11613
11623
  );
11614
11624
  } else {
@@ -11616,7 +11626,7 @@ const Ce = (Me = class extends Sn {
11616
11626
  return;
11617
11627
  }
11618
11628
  i && (O.event(
11619
- `[${Me.logName}]`,
11629
+ `[${Le.logName}]`,
11620
11630
  `receive data channel message, length: ${(s = i.data) == null ? void 0 : s.byteLength}`
11621
11631
  ), this.emit("remoteDataChannelMessage", this.uid, i));
11622
11632
  });
@@ -11629,15 +11639,15 @@ const Ce = (Me = class extends Sn {
11629
11639
  g(this, "handleAudioPaused", () => {
11630
11640
  this.emit("remoteAudioPlayError", this.uid, "paused");
11631
11641
  });
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, x) => {
11642
+ this.streamInfo = new Ai(), this.remoteUserInfo = new lc(this), this.parameter = d, this.streamInfo.on(Me.Remote, (m) => {
11643
+ this.emit(Me.Remote, m, this.userId);
11644
+ }), 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 zt(), this.audioSubState.on("change", (m, l, x) => {
11635
11645
  this.emit("audioSubscribeStateChanged", this.uid, m, l, x);
11636
- }), this.videoSubState = new jt(), this.videoSubState.on("change", (m, l, x) => {
11646
+ }), this.videoSubState = new zt(), this.videoSubState.on("change", (m, l, x) => {
11637
11647
  this.emit("videoSubscribeStateChanged", this.uid, m, l, x);
11638
- }), this.screenSubState = new jt(), this.screenSubState.on("change", (m, l, x) => {
11648
+ }), this.screenSubState = new zt(), this.screenSubState.on("change", (m, l, x) => {
11639
11649
  this.emit("screenSubscribeStateChanged", this.uid, m, l, x);
11640
- }), this.dataSubState = new jt(), this.dataSubState.on("change", (m, l, x) => {
11650
+ }), this.dataSubState = new zt(), this.dataSubState.on("change", (m, l, x) => {
11641
11651
  this.emit("dataSubscribeStateChanged", this.uid, m, l, x);
11642
11652
  }), this.playoutVolume = p;
11643
11653
  }
@@ -11682,7 +11692,7 @@ const Ce = (Me = class extends Sn {
11682
11692
  else {
11683
11693
  const t = this.audioElement.srcObject;
11684
11694
  if (t) {
11685
- const i = $t.getInstance();
11695
+ const i = Mt.getInstance();
11686
11696
  i.addEventListener("statechange", this.handleAudioContextSuspended);
11687
11697
  const s = i.createMediaStreamSource(t);
11688
11698
  this.audioElement.muted = !0, this.playoutGainNode = i.createGain(), s.connect(this.playoutGainNode), this.playoutGainNode.gain.value = e, this.playoutGainNode.connect(i.destination);
@@ -11765,14 +11775,14 @@ const Ce = (Me = class extends Sn {
11765
11775
  U.ERR_INVALID_ARGUMENTS,
11766
11776
  "track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
11767
11777
  );
11768
- e ? Ur(e).forEach((s) => {
11778
+ e ? jr(e).forEach((s) => {
11769
11779
  s.setAttribute("playsinline", ""), le.BrowserUtil.isMicroMessenger && (s.setAttribute("x5-video-player-type", "h5-page"), s.setAttribute("x5-playsinline", ""), le.SystenUtil.isAndroid || le.SystenUtil.isIos && s.setAttribute("x-webkit-airplay", "allow")), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(s) : this.viewMap.cameraViews.push(s), this.play(s, t === se.AliRtcVideoTrackScreen);
11770
11780
  }) : (this.stopPlayAll(t === se.AliRtcVideoTrackScreen), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews = [] : this.viewMap.cameraViews = []);
11771
11781
  }
11772
11782
  clear(e = !0) {
11773
11783
  return w(this, null, function* () {
11774
11784
  var t;
11775
- this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), ki(Me.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, $t.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Le.Remote);
11785
+ this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Ni(Le.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, Mt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Me.Remote);
11776
11786
  });
11777
11787
  }
11778
11788
  updateRemoteUserDeviceStatus(e) {
@@ -11782,7 +11792,7 @@ const Ce = (Me = class extends Sn {
11782
11792
  updateRemoteTracks(e, t, i, s) {
11783
11793
  return w(this, null, function* () {
11784
11794
  var c;
11785
- return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new Ei()), (c = this.streamInfo) == null ? void 0 : c.updateTracks(s);
11795
+ return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new Ai()), (c = this.streamInfo) == null ? void 0 : c.updateTracks(s);
11786
11796
  });
11787
11797
  }
11788
11798
  subscribe(s, n) {
@@ -11930,7 +11940,7 @@ const Ce = (Me = class extends Sn {
11930
11940
  }
11931
11941
  resumeAudio() {
11932
11942
  return w(this, null, function* () {
11933
- const e = $t.getInstance();
11943
+ const e = Mt.getInstance();
11934
11944
  return e.state !== "running" && e.resume(), this.audioElement ? this.audioElement.play() : this.playAudio();
11935
11945
  });
11936
11946
  }
@@ -12073,7 +12083,7 @@ const Ce = (Me = class extends Sn {
12073
12083
  var n, c, o, u, h, p, d, f, m, l, x, v, S, b, E, _, y;
12074
12084
  const t = Date.now(), i = {}, s = {};
12075
12085
  if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || T.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || T.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((p = this.streamInfo) != null && p.hasVideoSmall) ? (i.video = !0, i.vMsid = T.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || T.VideoLarge), this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = T.VideoLarge) : this.defaultVideoStreamType === we.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = T.VideoSmall)) : (!this.wantSubVideo || !((m = this.streamInfo) != null && m.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? T.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || T.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((x = this.streamInfo) != null && x.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (S = this.parameter.data) != null && S.enableSubDataChannel && !this.isDataSubscribing && ((b = this.streamInfo) != null && b.hasData) ? i.data = !0 : (!((E = this.parameter.data) != null && E.enableSubDataChannel) || !((_ = this.streamInfo) != null && _.hasData)) && this.isDataSubscribing && (s.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (s.audio || s.video || s.screen) && this.subscribeDeleteTracks(s), e === de.Reconnect) {
12076
- if (O.event(`[${Me.logName}]`, "reconnect, try to resume"), this.streamInfo.hasData && !i.data) {
12086
+ if (O.event(`[${Le.logName}]`, "reconnect, try to resume"), this.streamInfo.hasData && !i.data) {
12077
12087
  const A = this.rtsManager.getDatachannelByMsid({
12078
12088
  url: this.streamUrl,
12079
12089
  msid: this.streamInfo.getDataInfo().msid || T.Data
@@ -12108,7 +12118,7 @@ const Ce = (Me = class extends Sn {
12108
12118
  };
12109
12119
  }
12110
12120
  handleAutoPlayFailed() {
12111
- O.event(`[${Me.logName}]`, "auto play failed"), this.emit("remoteAudioAutoPlayFail", this.uid);
12121
+ O.event(`[${Le.logName}]`, "auto play failed"), this.emit("remoteAudioAutoPlayFail", this.uid);
12112
12122
  const e = () => {
12113
12123
  this.resumeAudio().then(() => {
12114
12124
  document.removeEventListener("click", e, !1), document.removeEventListener("touchstart", e, !1);
@@ -12129,17 +12139,17 @@ const Ce = (Me = class extends Sn {
12129
12139
  return w(this, null, function* () {
12130
12140
  var e, t;
12131
12141
  if (!this.audioTrack) {
12132
- O.event(`[${Me.logName}]`, this.userId, "audio track is null");
12142
+ O.event(`[${Le.logName}]`, this.userId, "audio track is null");
12133
12143
  return;
12134
12144
  }
12135
- if (this.toggleAudio(!this.audioMuted), this.audioElement || (O.event(`[${Me.logName}]`, this.userId, "create audio element"), this.audioElement = document.createElement("audio"), this.audioElement.setAttribute("autoplay", "autoplay"), this.audioElement.addEventListener("pause", this.handleAudioPaused), this.setPlayoutVolume(this.playoutVolume)), ((t = (e = this.audioElement.srcObject) == null ? void 0 : e.getAudioTracks()) == null ? void 0 : t[0]) !== this.audioTrack) {
12145
+ if (this.toggleAudio(!this.audioMuted), this.audioElement || (O.event(`[${Le.logName}]`, this.userId, "create audio element"), this.audioElement = document.createElement("audio"), this.audioElement.setAttribute("autoplay", "autoplay"), this.audioElement.addEventListener("pause", this.handleAudioPaused), this.setPlayoutVolume(this.playoutVolume)), ((t = (e = this.audioElement.srcObject) == null ? void 0 : e.getAudioTracks()) == null ? void 0 : t[0]) !== this.audioTrack) {
12136
12146
  let i = this.audioElement.srcObject;
12137
12147
  i ? i.getAudioTracks().forEach((s) => {
12138
12148
  i.removeTrack(s);
12139
12149
  }) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
12140
12150
  }
12141
12151
  if (le.SystenUtil.isIos && parseInt(le.SystenUtil.systemVersion) <= 13) {
12142
- O.event(`[${Me.logName}]`, "play audio for iOS 13-");
12152
+ O.event(`[${Le.logName}]`, "play audio for iOS 13-");
12143
12153
  const i = this.audioElement;
12144
12154
  i.setAttribute("autoplay", "");
12145
12155
  const s = () => {
@@ -12151,8 +12161,8 @@ const Ce = (Me = class extends Sn {
12151
12161
  } else
12152
12162
  (() => {
12153
12163
  var s;
12154
- O.event(`[${Me.logName}]`, "try play audio"), (s = this.audioElement) == null || s.play().then(() => {
12155
- O.event(`[${Me.logName}]`, "play audio success");
12164
+ O.event(`[${Le.logName}]`, "try play audio"), (s = this.audioElement) == null || s.play().then(() => {
12165
+ O.event(`[${Le.logName}]`, "play audio success");
12156
12166
  }).catch(() => {
12157
12167
  this.handleAutoPlayFailed();
12158
12168
  });
@@ -12171,7 +12181,7 @@ const Ce = (Me = class extends Sn {
12171
12181
  }
12172
12182
  play(e, t = !1, i = !1) {
12173
12183
  const s = t ? this.screenStream : this.stream;
12174
- !e || !s || !s.mediaStream || bn(e, s.mediaStream, i).catch((n) => {
12184
+ !e || !s || !s.mediaStream || _n(e, s.mediaStream, i).catch((n) => {
12175
12185
  n.code === 20 || n.name === "AbortError" || this.handleVideoPlayFailded(
12176
12186
  e,
12177
12187
  t ? se.AliRtcVideoTrackScreen : se.AliRtcVideoTrackCamera
@@ -12215,7 +12225,7 @@ const Ce = (Me = class extends Sn {
12215
12225
  const e = [];
12216
12226
  if (this.isAudioSubscribing) {
12217
12227
  const u = yield this.rtsManager.getSubscribeAudioStats(this.streamUrl);
12218
- u && e.push({ uid: this.uid, track: Gt.AliRtcAudioTrackMic, stats: u });
12228
+ u && e.push({ uid: this.uid, track: Xt.AliRtcAudioTrackMic, stats: u });
12219
12229
  }
12220
12230
  const t = [];
12221
12231
  if ((i = this.streamInfo) != null && i.isVideoLargeSubscribed) {
@@ -12302,7 +12312,7 @@ const Ce = (Me = class extends Sn {
12302
12312
  const h = o[o.length - 1] || {}, { _last: f } = h;
12303
12313
  u = wt(h, ["_last"]);
12304
12314
  }
12305
- (o == null ? void 0 : o.length) >= fc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, n && (c._source = (p = this.localUser) == null ? void 0 : p.getMediaStats(c.playoutId)), this.monitorDataCache[i].push(c);
12315
+ (o == null ? void 0 : o.length) >= gc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, n && (c._source = (p = this.localUser) == null ? void 0 : p.getMediaStats(c.playoutId)), this.monitorDataCache[i].push(c);
12306
12316
  });
12307
12317
  }), e.forEach((t) => {
12308
12318
  this.reportSubscribeMonitor(t);
@@ -12322,7 +12332,7 @@ const Ce = (Me = class extends Sn {
12322
12332
  }, /**
12323
12333
  * @ignore
12324
12334
  */
12325
- g(Me, "logName", "RemoteUser"), Me);
12335
+ g(Le, "logName", "RemoteUser"), Le);
12326
12336
  Te([
12327
12337
  D()
12328
12338
  ], Ce.prototype, "clear", 1);
@@ -12378,9 +12388,9 @@ Te([
12378
12388
  Te([
12379
12389
  D()
12380
12390
  ], Ce.prototype, "stopPlayAll", 1);
12381
- let pc = Ce;
12391
+ let mc = Ce;
12382
12392
  var _t = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(_t || {});
12383
- class gc extends De {
12393
+ class xc extends De {
12384
12394
  constructor() {
12385
12395
  super(...arguments);
12386
12396
  g(this, "plugins", /* @__PURE__ */ new Map());
@@ -12411,15 +12421,15 @@ class gc extends De {
12411
12421
  return Array.from(this.plugins.values());
12412
12422
  }
12413
12423
  }
12414
- var mc = Object.defineProperty, xc = Object.getOwnPropertyDescriptor, Ee = (r, a, e, t) => {
12415
- for (var i = t > 1 ? void 0 : t ? xc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
12424
+ var Sc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, Ee = (r, a, e, t) => {
12425
+ for (var i = t > 1 ? void 0 : t ? vc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
12416
12426
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
12417
- return t && i && mc(a, e, i), i;
12427
+ return t && i && Sc(a, e, i), i;
12418
12428
  };
12419
- const Di = ([r]) => {
12429
+ const Pi = ([r]) => {
12420
12430
  const { remoteUser: a, options: e } = r;
12421
12431
  return [`user(${a.userId})`, e];
12422
- }, Ka = 5, qa = 17, Ja = 5e3;
12432
+ }, Ja = 5, Ga = 17, Xa = 5e3;
12423
12433
  var Ae;
12424
12434
  const xe = (Ae = class extends De {
12425
12435
  constructor(e, t, i) {
@@ -12451,11 +12461,11 @@ const xe = (Ae = class extends De {
12451
12461
  addRTSListener() {
12452
12462
  this.rts.on("connectStatusChange", (e) => {
12453
12463
  var t, i, s, n;
12454
- if (O.event(`[${Ae.logName}]`, "rts connectStatusChange to:", e.status), e.status === Bi.CONNECT_STATUS_DISCONNECTED)
12464
+ if (O.event(`[${Ae.logName}]`, "rts connectStatusChange to:", e.status), e.status === Li.CONNECT_STATUS_DISCONNECTED)
12455
12465
  this.dcReject && this.dcReject(), this.setConnected(!1), this.slsReporter.reportWarning("rts disconnected"), this.emit("disconnected");
12456
- else if (e.status === Bi.CONNECT_STATUS_RECONNECTING)
12466
+ else if (e.status === Li.CONNECT_STATUS_RECONNECTING)
12457
12467
  this._rtsReconnecting = !0;
12458
- else if (e.status === Bi.CONNECT_STATUS_CONNECTED) {
12468
+ else if (e.status === Li.CONNECT_STATUS_CONNECTED) {
12459
12469
  const c = (n = (s = (i = (t = this.rts.commonController) == null ? void 0 : t.peerCore) == null ? void 0 : i.getSignal()) == null ? void 0 : s.getDatachannelCore()) == null ? void 0 : n.readyState;
12460
12470
  O.event(`[${Ae.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList()), this.setConnected(!0);
12461
12471
  }
@@ -12467,7 +12477,7 @@ const xe = (Ae = class extends De {
12467
12477
  O.error(`[${Ae.logName}]`, "emit connected error:", e);
12468
12478
  }
12469
12479
  }), this.rts.on("datachannelStatusChange", (e) => {
12470
- O.event(`[${Ae.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === xs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === xs.DATACHANNEL_STATUS_CLOSE && (this.dcReject && this.dcReject(), this.dcConnectingPromise = new Promise((t, i) => {
12480
+ O.event(`[${Ae.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === vs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === vs.DATACHANNEL_STATUS_CLOSE && (this.dcReject && this.dcReject(), this.dcConnectingPromise = new Promise((t, i) => {
12471
12481
  this.dcResolve = t, this.dcReject = i;
12472
12482
  }));
12473
12483
  }), this.rts.on("receivedSEI", (e) => {
@@ -12576,12 +12586,12 @@ const xe = (Ae = class extends De {
12576
12586
  this.encodedInsertableStreams && (m.encodedInsertableStreams = !0), m.answerSdpHook = (_) => {
12577
12587
  const y = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(_);
12578
12588
  return y != null && y[0] && (o = y[0]), _;
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";
12589
+ }, (E = (b = this.parameter) == null ? void 0 : b.net) != null && E.useTCP && (m.tcpOnly = !0), m.retryTimes = Ga, m.retryInterval = Xa, this._rtsPeerConnectionType = "publish";
12580
12590
  let l = !h.hasVideo, x = f, v = "";
12581
12591
  this.startConnect();
12582
12592
  const S = Date.now();
12583
12593
  try {
12584
- v = yield this.rts.publish(za(e), h, m);
12594
+ v = yield this.rts.publish($a(e), h, m);
12585
12595
  } catch (_) {
12586
12596
  this.setConnected(!1);
12587
12597
  const y = 2e3 - (Date.now() - S);
@@ -12687,9 +12697,10 @@ const xe = (Ae = class extends De {
12687
12697
  publishAdd(u, h, p, d) {
12688
12698
  return w(this, arguments, function* (e, t, i, s, n = !1, c = !1, o = nt.MANUAL) {
12689
12699
  var l, x, v, S, b, E, _, y;
12700
+ yield this.dcConnectingPromise;
12690
12701
  const f = Date.now(), m = this.getPubMsid(t, s);
12691
12702
  try {
12692
- const A = yield ja(
12703
+ const A = yield Wa(
12693
12704
  (R) => w(this, null, function* () {
12694
12705
  return R > 0 && O.event(`[${Ae.logName}]`, `publishAdd retry times: ${R}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
12695
12706
  G({
@@ -12699,12 +12710,12 @@ const xe = (Ae = class extends De {
12699
12710
  }, m)
12700
12711
  ])) : Promise.reject(new F(U.ERR_INNER, "rts not connected"));
12701
12712
  }),
12702
- Ka,
12713
+ Ja,
12703
12714
  0,
12704
12715
  (R) => (R == null ? void 0 : R.errorCode) === 15006
12705
12716
  );
12706
12717
  if (A) {
12707
- const R = Date.now(), [M] = A;
12718
+ const R = Date.now(), [L] = A;
12708
12719
  return this.slsReporter.reportPublish(
12709
12720
  !1,
12710
12721
  e,
@@ -12715,9 +12726,9 @@ const xe = (Ae = class extends De {
12715
12726
  ((S = m.aMsid) == null ? void 0 : S[0]) === T.Audio,
12716
12727
  0,
12717
12728
  this.pcTraceId,
12718
- M.traceId || "",
12729
+ L.traceId || "",
12719
12730
  f
12720
- ), this.updatePublishingTracks(M.trackInfoList), c && (yield this.waitPublishSender(e, !t.hasVideo, t.hasVideo ? s == null ? void 0 : s.vMsid : s == null ? void 0 : s.aMsid)), this.slsReporter.reportPublishFirstPacket(
12731
+ ), this.updatePublishingTracks(L.trackInfoList), c && (yield this.waitPublishSender(e, !t.hasVideo, t.hasVideo ? s == null ? void 0 : s.vMsid : s == null ? void 0 : s.aMsid)), this.slsReporter.reportPublishFirstPacket(
12721
12732
  n,
12722
12733
  i,
12723
12734
  f,
@@ -12725,9 +12736,9 @@ const xe = (Ae = class extends De {
12725
12736
  this._localJoinTime,
12726
12737
  (t.hasVideo ? s == null ? void 0 : s.vMsid : s == null ? void 0 : s.aMsid) || "",
12727
12738
  this.pcTraceId,
12728
- M.traceId || "",
12739
+ L.traceId || "",
12729
12740
  o
12730
- ), M.traceId || "";
12741
+ ), L.traceId || "";
12731
12742
  }
12732
12743
  } catch (A) {
12733
12744
  throw this.slsReporter.reportPublish(
@@ -12854,10 +12865,10 @@ const xe = (Ae = class extends De {
12854
12865
  const f = (d = (p = this.parameter) == null ? void 0 : p.net) == null ? void 0 : d.mediaTimeout;
12855
12866
  f > 1e3 && f < 1e5 && (n.mediaTimeout = f);
12856
12867
  }
12857
- n.retryTimes = qa, n.retryInterval = Ja, this._rtsPeerConnectionType = "subscribe";
12868
+ n.retryTimes = Ga, n.retryInterval = Xa, this._rtsPeerConnectionType = "subscribe";
12858
12869
  try {
12859
12870
  this.startConnect();
12860
- const f = yield this.rts.subscribe(za(s), n);
12871
+ const f = yield this.rts.subscribe($a(s), n);
12861
12872
  return this._pcTraceId = f.traceId, this.setConnected(!0), {
12862
12873
  traceId: f.traceId,
12863
12874
  stream: f
@@ -12877,12 +12888,13 @@ const xe = (Ae = class extends De {
12877
12888
  }, this.getSubConfig(t.streamInfo, i)), {
12878
12889
  targetStream: i.screen ? t.getScreenStream : t.getCameraStream
12879
12890
  });
12891
+ yield this.dcConnectingPromise;
12880
12892
  try {
12881
- return (yield ja(
12893
+ return (yield Wa(
12882
12894
  (p) => w(this, null, function* () {
12883
12895
  return yield this.dcConnectingPromise, p > 0 && O.event(`[${Ae.logName}]`, `subscribeAdd retry times: ${p}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12884
12896
  }),
12885
- Ka,
12897
+ Ja,
12886
12898
  0,
12887
12899
  // 仅超时重试
12888
12900
  (p) => (p == null ? void 0 : p.errorCode) === 15006
@@ -12897,7 +12909,6 @@ const xe = (Ae = class extends De {
12897
12909
  subscribeDelete(e) {
12898
12910
  return w(this, null, function* () {
12899
12911
  var n, c, o, u;
12900
- yield this.dcConnectingPromise;
12901
12912
  const { remoteUser: t, options: i } = e, s = ut(G({
12902
12913
  url: t.streamUrl,
12903
12914
  subAudio: !!i.audio,
@@ -12905,6 +12916,7 @@ const xe = (Ae = class extends De {
12905
12916
  }, this.getSubConfig(t.streamInfo, i)), {
12906
12917
  targetStream: i.screen ? t.getScreenStream : t.getCameraStream
12907
12918
  });
12919
+ yield this.dcConnectingPromise;
12908
12920
  try {
12909
12921
  return (yield this.rts.subscribeDeleteTracks([s]))[0];
12910
12922
  } catch (h) {
@@ -13051,20 +13063,20 @@ const xe = (Ae = class extends De {
13051
13063
  const E = ((_, y) => {
13052
13064
  let A = 0;
13053
13065
  const R = () => {
13054
- let M;
13055
- return l && !x && (M = this.rts.getSubscribeAudioStats(u.streamUrl).then((C) => {
13066
+ let L;
13067
+ return l && !x && (L = this.rts.getSubscribeAudioStats(u.streamUrl).then((C) => {
13056
13068
  if (C.packetsReceived > 0)
13057
13069
  x = Date.now();
13058
13070
  else if (!m)
13059
13071
  return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : !1;
13060
13072
  return !0;
13061
- })), m && !S && (M = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((C) => {
13073
+ })), m && !S && (L = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((C) => {
13062
13074
  if (C.packetsReceived > 0 && (v = Date.now()), C.framesDecoded > 0)
13063
13075
  S = Date.now();
13064
13076
  else
13065
13077
  return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : (O.event(`[${Ae.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
13066
13078
  return !0;
13067
- })), Promise.resolve(M);
13079
+ })), Promise.resolve(L);
13068
13080
  };
13069
13081
  return R();
13070
13082
  })(40, 100);
@@ -13190,13 +13202,13 @@ Ee([
13190
13202
  D()
13191
13203
  ], xe.prototype, "unpublish", 1);
13192
13204
  Ee([
13193
- D(Di, ({ traceId: r }) => r)
13205
+ D(Pi, ({ traceId: r }) => r)
13194
13206
  ], xe.prototype, "httpSubscribe", 1);
13195
13207
  Ee([
13196
- D(Di, ({ traceId: r }) => r)
13208
+ D(Pi, ({ traceId: r }) => r)
13197
13209
  ], xe.prototype, "subscribeAdd", 1);
13198
13210
  Ee([
13199
- D(Di)
13211
+ D(Pi)
13200
13212
  ], xe.prototype, "subscribeDelete", 1);
13201
13213
  Ee([
13202
13214
  D(H)
@@ -13211,14 +13223,14 @@ Ee([
13211
13223
  D(H)
13212
13224
  ], xe.prototype, "publish", 1);
13213
13225
  Ee([
13214
- D(Di)
13226
+ D(Pi)
13215
13227
  ], xe.prototype, "subscribe", 1);
13216
13228
  Ee([
13217
13229
  D()
13218
13230
  ], xe.prototype, "sendSEI", 1);
13219
- let Sc = xe;
13220
- class kr {
13221
- constructor(a = Or) {
13231
+ let bc = xe;
13232
+ class Nr {
13233
+ constructor(a = Hr) {
13222
13234
  g(this, "defaultProfile");
13223
13235
  g(this, "profile");
13224
13236
  g(this, "profileMap", /* @__PURE__ */ new Map());
@@ -13261,7 +13273,7 @@ class kr {
13261
13273
  });
13262
13274
  }
13263
13275
  }
13264
- class Ga extends De {
13276
+ class Ya extends De {
13265
13277
  constructor(e) {
13266
13278
  super();
13267
13279
  g(this, "type");
@@ -13311,7 +13323,7 @@ class Ga extends De {
13311
13323
  return w(this, null, function* () {
13312
13324
  var c, o, u, h, p, d;
13313
13325
  const { videoTrack: s, audioTrack: n } = e;
13314
- s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), n && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === be.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), n && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (p = this.originVideoTrack) == null || p.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t || qt.Camera, this.updateVideoTrack(s)), n && (this.originAudioTrack = n, (d = this.originAudioTrack) == null || d.addEventListener("ended", this.onAudioTrackEnded), this.audioSource = i || xi.Microphone, this.updateAudioTrack(n));
13326
+ s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), n && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === be.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), n && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (p = this.originVideoTrack) == null || p.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t || Jt.Camera, this.updateVideoTrack(s)), n && (this.originAudioTrack = n, (d = this.originAudioTrack) == null || d.addEventListener("ended", this.onAudioTrackEnded), this.audioSource = i || Si.Microphone, this.updateAudioTrack(n));
13315
13327
  });
13316
13328
  }
13317
13329
  get currentProfile() {
@@ -13399,7 +13411,7 @@ class Ga extends De {
13399
13411
  } catch (x) {
13400
13412
  console.error(`error in plugin-${l.name}, error: ${x}`);
13401
13413
  }
13402
- this._targetVideoTrack ? ((i = (t = this._publishVideoStream) == null ? void 0 : t.videoTrack) == null ? void 0 : i.id) !== this._targetVideoTrack.id && (this._publishVideoStream = yield Qt(this._targetVideoTrack), this.setVideoMuted(this._videoMuted), (s = this.profileManager) == null || s.setVideoProfile(this.originVideoTrack, this._publishVideoStream, !0), (n = this.profileManager) == null || n.setContentHint(this._targetVideoTrack), this.previewStream ? (c = this.previewStream) == null || c.mergeStream(this._publishVideoStream) : this._previewStream = yield Qt(this._targetVideoTrack)) : (this._publishVideoStream = void 0, (o = this.previewStream) == null || o.deleteTracks({ video: !0 })), this._targetDualVideoTrack ? ((h = (u = this._publishDualVideoStream) == null ? void 0 : u.videoTrack) == null ? void 0 : h.id) !== this._targetDualVideoTrack.id && (this._publishDualVideoStream = yield Qt(this._targetDualVideoTrack), this._videoMuted ? this._publishDualVideoStream.disableVideo() : this._publishDualVideoStream.enableVideo()) : this._publishDualVideoStream = void 0, this._targetAudioTrack ? ((d = (p = this._publishAudioStream) == null ? void 0 : p.audioTrack) == null ? void 0 : d.id) !== this._targetAudioTrack.id && (this._publishAudioStream = yield Qt(this._targetAudioTrack), this.setAudioMuted(this._audioMuted), this.previewStream ? (f = this.previewStream) == null || f.mergeStream(this._publishAudioStream) : this._previewStream = yield Qt(this._targetAudioTrack)) : (this._publishAudioStream = void 0, (m = this.previewStream) == null || m.deleteTracks({ audio: !0 }));
13414
+ this._targetVideoTrack ? ((i = (t = this._publishVideoStream) == null ? void 0 : t.videoTrack) == null ? void 0 : i.id) !== this._targetVideoTrack.id && (this._publishVideoStream = yield ei(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 ei(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 ei(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 ei(this._targetAudioTrack), this.setAudioMuted(this._audioMuted), this.previewStream ? (f = this.previewStream) == null || f.mergeStream(this._publishAudioStream) : this._previewStream = yield ei(this._targetAudioTrack)) : (this._publishAudioStream = void 0, (m = this.previewStream) == null || m.deleteTracks({ audio: !0 }));
13403
13415
  });
13404
13416
  }
13405
13417
  /**
@@ -13429,8 +13441,8 @@ class Ga extends De {
13429
13441
  */
13430
13442
  updateVideoProfile(e, t) {
13431
13443
  return w(this, null, function* () {
13432
- this._profileManager || (this._profileManager = new kr(
13433
- this.type === be.AliRtcSdkStreamTypeScreen ? Ua : Or
13444
+ this._profileManager || (this._profileManager = new Nr(
13445
+ this.type === be.AliRtcSdkStreamTypeScreen ? ja : Hr
13434
13446
  )), e && this._profileManager.updateProfile(e, t), yield this._profileManager.setVideoProfile(
13435
13447
  this.originVideoTrack,
13436
13448
  this._publishVideoStream,
@@ -13443,8 +13455,8 @@ class Ga extends De {
13443
13455
  return (e = this.profileManager) == null ? void 0 : e.videoProfile;
13444
13456
  }
13445
13457
  setVideoContentHint(e) {
13446
- this._profileManager || (this._profileManager = new kr(
13447
- this.type === be.AliRtcSdkStreamTypeScreen ? Ua : Or
13458
+ this._profileManager || (this._profileManager = new Nr(
13459
+ this.type === be.AliRtcSdkStreamTypeScreen ? ja : Hr
13448
13460
  )), this._profileManager.setContentHint(this.currentVideoTrack, e);
13449
13461
  }
13450
13462
  /**
@@ -13453,7 +13465,7 @@ class Ga extends De {
13453
13465
  */
13454
13466
  updateAudioProfile(e) {
13455
13467
  return w(this, null, function* () {
13456
- this._profileManager || (this._profileManager = new kr()), this._profileManager.updateAudioProfile(e);
13468
+ this._profileManager || (this._profileManager = new Nr()), this._profileManager.updateAudioProfile(e);
13457
13469
  });
13458
13470
  }
13459
13471
  /**
@@ -13477,12 +13489,12 @@ class Ga extends De {
13477
13489
  return t > -1 ? (e.clear(this), this.plugins.splice(t, 1), !0) : !1;
13478
13490
  }
13479
13491
  }
13480
- var vc = Object.defineProperty, bc = Object.getOwnPropertyDescriptor, st = (r, a, e, t) => {
13481
- for (var i = t > 1 ? void 0 : t ? bc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
13492
+ var Ec = Object.defineProperty, _c = Object.getOwnPropertyDescriptor, st = (r, a, e, t) => {
13493
+ for (var i = t > 1 ? void 0 : t ? _c(a, e) : a, s = r.length - 1, n; s >= 0; s--)
13482
13494
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
13483
- return t && i && vc(a, e, i), i;
13484
- }, Vt;
13485
- const Ze = (Vt = class extends De {
13495
+ return t && i && Ec(a, e, i), i;
13496
+ }, Ft;
13497
+ const Ze = (Ft = class extends De {
13486
13498
  // 设置是否发布屏幕流
13487
13499
  constructor(e, t) {
13488
13500
  super();
@@ -13491,8 +13503,8 @@ const Ze = (Vt = class extends De {
13491
13503
  // 当前正在推流的流,只有在使用 HTTP 推流的时候才有值,用于设置 peerconnection 的参数
13492
13504
  g(this, "publishingCameraVideoStream");
13493
13505
  g(this, "publishingScreenVideoStream");
13494
- g(this, "cameraStreamInfo", new Ga(be.AliRtcSdkStreamTypeCapture));
13495
- g(this, "screenStreamInfo", new Ga(be.AliRtcSdkStreamTypeScreen));
13506
+ g(this, "cameraStreamInfo", new Ya(be.AliRtcSdkStreamTypeCapture));
13507
+ g(this, "screenStreamInfo", new Ya(be.AliRtcSdkStreamTypeScreen));
13496
13508
  g(this, "streamInfos", [this.cameraStreamInfo, this.screenStreamInfo]);
13497
13509
  g(this, "_audioCaptureDisabled", !1);
13498
13510
  // 离会再入会,若不另外设置,则保持音频采集关闭
@@ -13505,7 +13517,7 @@ const Ze = (Vt = class extends De {
13505
13517
  g(this, "_publishLocalScreenStreamEnabled", !0);
13506
13518
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13507
13519
  const i = (s) => w(this, null, function* () {
13508
- if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.3")) {
13520
+ if (O.info(`[${Ft.logName}]`, "plugin added", s.name), !s.isSupported("6.14.4-beta.1")) {
13509
13521
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13510
13522
  return;
13511
13523
  }
@@ -13519,15 +13531,15 @@ const Ze = (Vt = class extends De {
13519
13531
  this.cameraStreamInfo.on("videotrackended", () => w(this, null, function* () {
13520
13532
  yield this.stopLocalStream({
13521
13533
  video: !0
13522
- }), this.emit("trackended", Lt.VideoTrackEnded);
13534
+ }), this.emit("trackended", Vt.VideoTrackEnded);
13523
13535
  })), this.cameraStreamInfo.on("audiotrackended", () => w(this, null, function* () {
13524
13536
  yield this.stopLocalStream({
13525
13537
  audio: !0
13526
- }), this.emit("trackended", Lt.AudioTrackEnded);
13538
+ }), this.emit("trackended", Vt.AudioTrackEnded);
13527
13539
  })), this.screenStreamInfo.on("videotrackended", () => w(this, null, function* () {
13528
13540
  yield this.stopLocalStream({
13529
13541
  screen: !0
13530
- }), this.emit("trackended", Lt.ScreenTrackEnded);
13542
+ }), this.emit("trackended", Vt.ScreenTrackEnded);
13531
13543
  })), this.pluginManager.on("added", i), this.pluginManager.on("removed", (s) => w(this, null, function* () {
13532
13544
  this.cameraStreamInfo.removePlugin(s) && (yield this.cameraStreamInfo.process(this.streamInfos)), this.screenStreamInfo.removePlugin(s) && (yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
13533
13545
  })), this.pluginManager.on("updated", () => w(this, null, function* () {
@@ -13617,7 +13629,7 @@ const Ze = (Vt = class extends De {
13617
13629
  var p;
13618
13630
  const { screen: t, mediaStream: i, videoProfile: s, screenProfile: n } = e;
13619
13631
  let { video: c, audio: o } = e;
13620
- const u = tc(e);
13632
+ const u = rc(e);
13621
13633
  let h;
13622
13634
  if (u) {
13623
13635
  i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c = G({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof c == "object" && (yield this.setAvailableCameraDeviceId(), c = G(G({}, c), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = G({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = G(G({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
@@ -13635,8 +13647,8 @@ const Ze = (Vt = class extends De {
13635
13647
  throw o && !i && this.slsReporter.reportAudio(f, Date.now() - d, ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d), f;
13636
13648
  }
13637
13649
  if (t)
13638
- yield this.screenStreamInfo.updateSource(h, qt.Screen, xi.Screen), yield this.setScreenProfile(n), this.setScreenContentHint(), this.publishingScreenVideoStream = void 0;
13639
- else if (yield this.cameraStreamInfo.updateSource(h, qt.Camera, xi.Microphone), h.hasVideo && (yield this.setVideoProfile(s), this.setVideoContentHint(), this.publishingCameraVideoStream = void 0), h.hasAudio && typeof o == "boolean") {
13650
+ yield this.screenStreamInfo.updateSource(h, Jt.Screen, Si.Screen), yield this.setScreenProfile(n), this.setScreenContentHint(), this.publishingScreenVideoStream = void 0;
13651
+ else if (yield this.cameraStreamInfo.updateSource(h, Jt.Camera, Si.Microphone), h.hasVideo && (yield this.setVideoProfile(s), this.setVideoContentHint(), this.publishingCameraVideoStream = void 0), h.hasAudio && typeof o == "boolean") {
13640
13652
  const f = this.cameraStreamInfo.audioProfile;
13641
13653
  f && (yield h.setAudioProfile(f));
13642
13654
  }
@@ -13671,9 +13683,9 @@ const Ze = (Vt = class extends De {
13671
13683
  const c = this.publishStreams;
13672
13684
  try {
13673
13685
  if (!c.audio && !c.video && !c.videoSmall && !c.screen)
13674
- throw O.error(`[${Vt.logName}]`, "no tracks founded"), new F(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13686
+ throw O.error(`[${Ft.logName}]`, "no tracks founded"), new F(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13675
13687
  const d = new MediaStream();
13676
- (o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, n = c.screen) : (h = c.screen) != null && h.videoTrack && (i = T.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield _n(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
13688
+ (o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, n = c.screen) : (h = c.screen) != null && h.videoTrack && (i = T.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield yn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
13677
13689
  } catch (d) {
13678
13690
  }
13679
13691
  return { publishStream: e, videoSmallStream: s, screenStream: n, vMsid: i };
@@ -13715,7 +13727,7 @@ const Ze = (Vt = class extends De {
13715
13727
  }, /**
13716
13728
  * @ignore
13717
13729
  */
13718
- g(Vt, "logName", "LocalStreamManager"), Vt);
13730
+ g(Ft, "logName", "LocalStreamManager"), Ft);
13719
13731
  st([
13720
13732
  D(([r]) => {
13721
13733
  const { audio: a, video: e, screen: t, custom: i, skipProfile: s, videoProfile: n, screenProfile: c } = r;
@@ -13762,8 +13774,8 @@ st([
13762
13774
  st([
13763
13775
  D(H)
13764
13776
  ], Ze.prototype, "setMicAudioConstraints", 1);
13765
- let Ec = Ze;
13766
- class _c extends Jt {
13777
+ let Ac = Ze;
13778
+ class yc extends Gt {
13767
13779
  constructor() {
13768
13780
  super("AliRtcScreenStandardize", be.AliRtcSdkStreamTypeScreen);
13769
13781
  g(this, "canvas");
@@ -13793,7 +13805,7 @@ class _c extends Jt {
13793
13805
  this.lastWidth = e, this.lastHeight = t;
13794
13806
  }
13795
13807
  shouldUpdate(e) {
13796
- return this.hasScreenTrack !== (!!e.originVideoTrack && e.videoSource === qt.Screen);
13808
+ return this.hasScreenTrack !== (!!e.originVideoTrack && e.videoSource === Jt.Screen);
13797
13809
  }
13798
13810
  handleFrame(e, t) {
13799
13811
  return w(this, null, function* () {
@@ -13816,7 +13828,7 @@ class _c extends Jt {
13816
13828
  process(e) {
13817
13829
  return w(this, null, function* () {
13818
13830
  var h;
13819
- if (!e.originVideoTrack || e.videoSource !== qt.Screen) {
13831
+ if (!e.originVideoTrack || e.videoSource !== Jt.Screen) {
13820
13832
  this.clear(e), this.hasScreenTrack = !1;
13821
13833
  return;
13822
13834
  }
@@ -13837,9 +13849,9 @@ class _c extends Jt {
13837
13849
  this.canvas = void 0, this.lastWidth = void 0, this.lastHeight = void 0, super.clear(e);
13838
13850
  }
13839
13851
  }
13840
- class Ac extends Jt {
13852
+ class Cc extends Gt {
13841
13853
  constructor() {
13842
- super("blankAudio", be.AliRtcSdkStreamTypeCapture, yi.BOTH);
13854
+ super("blankAudio", be.AliRtcSdkStreamTypeCapture, Ri.BOTH);
13843
13855
  g(this, "hasTrack", !1);
13844
13856
  g(this, "oscillator", null);
13845
13857
  g(this, "audioTrack", null);
@@ -13872,7 +13884,7 @@ class Ac extends Jt {
13872
13884
  });
13873
13885
  }
13874
13886
  }
13875
- class An {
13887
+ class Cn {
13876
13888
  constructor(a) {
13877
13889
  g(this, "name", "COMMON");
13878
13890
  this.name = a || this.name;
@@ -13886,13 +13898,13 @@ class An {
13886
13898
  t && console[t](`[${a}][${this.name}]`, ...e);
13887
13899
  }
13888
13900
  }
13889
- g(An, "LEVEL", 0);
13890
- class yc {
13901
+ g(Cn, "LEVEL", 0);
13902
+ class Rc {
13891
13903
  constructor() {
13892
- g(this, "logger", new An("AudioMixer"));
13904
+ g(this, "logger", new Cn("AudioMixer"));
13893
13905
  g(this, "audioContext", new AudioContext());
13894
13906
  g(this, "audioDestination", this.audioContext.createMediaStreamDestination());
13895
- g(this, "audioTrack", J0(this.audioDestination.stream));
13907
+ g(this, "audioTrack", X0(this.audioDestination.stream));
13896
13908
  g(this, "sourceNodeMap", {});
13897
13909
  }
13898
13910
  get sourceNodeList() {
@@ -13954,10 +13966,10 @@ class yc {
13954
13966
  return a / 100;
13955
13967
  }
13956
13968
  }
13957
- const Cc = 4;
13958
- class Rc extends Jt {
13969
+ const Ic = 4;
13970
+ class wc extends Gt {
13959
13971
  constructor() {
13960
- super("audioMixer", be.AliRtcSdkStreamTypeCapture, yi.AUDIO);
13972
+ super("audioMixer", be.AliRtcSdkStreamTypeCapture, Ri.AUDIO);
13961
13973
  g(this, "audioMixer");
13962
13974
  g(this, "primaryAudioTrackId");
13963
13975
  g(this, "screenAudioTrackId");
@@ -14000,11 +14012,11 @@ class Rc extends Jt {
14000
14012
  this.audioMixer && (this.audioMixer.dispose(), this.audioMixer = void 0), this.primaryAudioTrackId = s == null ? void 0 : s.id, e.updateAudioTrack(s);
14001
14013
  return;
14002
14014
  }
14003
- this.audioMixer || (this.audioMixer = new yc()), yield this.audioMixer.resume(), this.primaryAudioTrackId && (s == null ? void 0 : s.id) !== this.primaryAudioTrackId && ((c = this.audioMixer) == null || c.removeTrack(this.primaryAudioTrackId)), s && !this.audioMixer.hasTrack(s == null ? void 0 : s.id) && this.audioMixer.addTrack(s), this.primaryAudioTrackId = s == null ? void 0 : s.id, this.screenAudioTrackId && (n == null ? void 0 : n.id) !== this.screenAudioTrackId && ((o = this.audioMixer) == null || o.removeTrack(this.screenAudioTrackId)), n && !this.audioMixer.hasTrack(n == null ? void 0 : n.id) && this.audioMixer.addTrack(n), this.screenAudioTrackId = n == null ? void 0 : n.id, this.updateVolume(), e.updateAudioTrack(this.audioMixer.getAudioTrack());
14015
+ this.audioMixer || (this.audioMixer = new Rc()), yield this.audioMixer.resume(), this.primaryAudioTrackId && (s == null ? void 0 : s.id) !== this.primaryAudioTrackId && ((c = this.audioMixer) == null || c.removeTrack(this.primaryAudioTrackId)), s && !this.audioMixer.hasTrack(s == null ? void 0 : s.id) && this.audioMixer.addTrack(s), this.primaryAudioTrackId = s == null ? void 0 : s.id, this.screenAudioTrackId && (n == null ? void 0 : n.id) !== this.screenAudioTrackId && ((o = this.audioMixer) == null || o.removeTrack(this.screenAudioTrackId)), n && !this.audioMixer.hasTrack(n == null ? void 0 : n.id) && this.audioMixer.addTrack(n), this.screenAudioTrackId = n == null ? void 0 : n.id, this.updateVolume(), e.updateAudioTrack(this.audioMixer.getAudioTrack());
14004
14016
  });
14005
14017
  }
14006
14018
  isValidVolume(e) {
14007
- return e !== void 0 && e >= 0 && e <= Cc;
14019
+ return e !== void 0 && e >= 0 && e <= Ic;
14008
14020
  }
14009
14021
  updateVolume() {
14010
14022
  this.audioMixer && (this.primaryAudioTrackId && this.audioMixer.setVolume(this.options.audio * 100, this.primaryAudioTrackId), this.screenAudioTrackId && this.audioMixer.setVolume(this.options.screen * 100, this.screenAudioTrackId));
@@ -14014,7 +14026,7 @@ class Rc extends Jt {
14014
14026
  (t = this.audioMixer) == null || t.dispose(), super.clear(e);
14015
14027
  }
14016
14028
  }
14017
- class as {
14029
+ class os {
14018
14030
  constructor(a, e) {
14019
14031
  g(this, "originTrack");
14020
14032
  g(this, "originVideo");
@@ -14047,7 +14059,7 @@ class as {
14047
14059
  return n > s ? (c = Math.round(o / s), u = Math.round((t - c) / 2)) : n < s && (o = Math.round(c * s), h = Math.round((i - o) / 2)), { x: u, y: h, width: c, height: o };
14048
14060
  }
14049
14061
  }
14050
- class Ic extends as {
14062
+ class Dc extends os {
14051
14063
  constructor(e, t) {
14052
14064
  super(e, t);
14053
14065
  g(this, "targetCtx");
@@ -14089,7 +14101,7 @@ class Ic extends as {
14089
14101
  this.stopRender(), this.originVideo.removeEventListener("play", this.startRender), this.originVideo.removeEventListener("pause", this.stopRender), this.originVideo.removeEventListener("ended", this.stopRender), this.originVideo.pause(), this.originVideo.srcObject = null;
14090
14102
  }
14091
14103
  }
14092
- const wc = `
14104
+ const Tc = `
14093
14105
  attribute vec2 a_position;
14094
14106
  attribute vec2 a_texCoord;
14095
14107
 
@@ -14110,7 +14122,7 @@ void main() {
14110
14122
 
14111
14123
  v_texCoord = a_texCoord;
14112
14124
  }
14113
- `, Dc = `
14125
+ `, Pc = `
14114
14126
  precision mediump float;
14115
14127
 
14116
14128
  varying lowp vec2 v_texCoord;
@@ -14120,7 +14132,7 @@ void main() {
14120
14132
  gl_FragColor = texture2D(u_texture, v_texCoord);
14121
14133
  }
14122
14134
  `;
14123
- function Tc() {
14135
+ function kc() {
14124
14136
  let r;
14125
14137
  try {
14126
14138
  const a = document.createElement("canvas");
@@ -14138,11 +14150,11 @@ function Tc() {
14138
14150
  }
14139
14151
  return !!r;
14140
14152
  }
14141
- function Pc(r) {
14153
+ function Bc(r) {
14142
14154
  const a = r.createTexture();
14143
14155
  return r.bindTexture(r.TEXTURE_2D, a), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.LINEAR), a;
14144
14156
  }
14145
- function Xa(r, a, e) {
14157
+ function Za(r, a, e) {
14146
14158
  const t = r.createShader(a);
14147
14159
  if (!t) {
14148
14160
  console.error("create shader failed");
@@ -14150,18 +14162,18 @@ function Xa(r, a, e) {
14150
14162
  }
14151
14163
  return r.shaderSource(t, e), r.compileShader(t), r.getShaderParameter(t, r.COMPILE_STATUS) ? t : (console.error(`An error occurred compiling the shaders: ${r.getShaderInfoLog(t)}`), r.deleteShader(t), null);
14152
14164
  }
14153
- function kc(r, a, e) {
14154
- const t = Xa(r, r.VERTEX_SHADER, a), i = Xa(r, r.FRAGMENT_SHADER, e), s = r.createProgram();
14165
+ function Nc(r, a, e) {
14166
+ const t = Za(r, r.VERTEX_SHADER, a), i = Za(r, r.FRAGMENT_SHADER, e), s = r.createProgram();
14155
14167
  if (!(!s || !t || !i))
14156
14168
  return r.attachShader(s, t), r.attachShader(s, i), r.linkProgram(s), r.getProgramParameter(s, r.LINK_STATUS) ? s : (console.error(`Unable to initialize the shader program: ${r.getProgramInfoLog(s)}`), null);
14157
14169
  }
14158
- function Bc(r, a, e, t = 0, i = 0) {
14170
+ function Lc(r, a, e, t = 0, i = 0) {
14159
14171
  const s = r.createBuffer();
14160
14172
  r.bindBuffer(r.ARRAY_BUFFER, s);
14161
14173
  const n = t, c = i, o = a + t, u = e + i, h = [n, c, o, c, n, u, n, u, o, c, o, u];
14162
14174
  return r.bufferData(r.ARRAY_BUFFER, new Float32Array(h), r.STATIC_DRAW), s;
14163
14175
  }
14164
- class Ya extends as {
14176
+ class Qa extends os {
14165
14177
  constructor(e, t) {
14166
14178
  super(e, t);
14167
14179
  g(this, "targetCtx");
@@ -14170,14 +14182,14 @@ class Ya extends as {
14170
14182
  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);
14171
14183
  }
14172
14184
  static isSupport() {
14173
- return Tc();
14185
+ return kc();
14174
14186
  }
14175
14187
  initGL() {
14176
14188
  const e = this.targetCtx;
14177
14189
  if (!e)
14178
14190
  return;
14179
- this.targetTexture = Pc(e);
14180
- const t = kc(e, wc, Dc);
14191
+ this.targetTexture = Bc(e);
14192
+ const t = Nc(e, Tc, Pc);
14181
14193
  if (!t) {
14182
14194
  console.log("[ScalerWebGL] program is null.");
14183
14195
  return;
@@ -14221,7 +14233,7 @@ class Ya extends as {
14221
14233
  this.originVideo.videoHeight,
14222
14234
  this.targetWidth,
14223
14235
  this.targetHeight
14224
- ), c = Bc(e, n.width, n.height, n.x, n.y);
14236
+ ), c = Lc(e, n.width, n.height, n.x, n.y);
14225
14237
  e.enableVertexAttribArray(t), e.bindBuffer(e.ARRAY_BUFFER, c), e.vertexAttribPointer(t, 2, e.FLOAT, !1, 0, 0), e.enableVertexAttribArray(i);
14226
14238
  const o = e.createBuffer();
14227
14239
  e.bindBuffer(e.ARRAY_BUFFER, o), e.bufferData(
@@ -14244,7 +14256,7 @@ class Ya extends as {
14244
14256
  this.stopRender(), this.originVideo.removeEventListener("play", this.startRender), this.originVideo.removeEventListener("pause", this.stopRender), this.originVideo.removeEventListener("ended", this.stopRender), this.originVideo.removeEventListener("resize", this.updateBuffer), this.originVideo.pause(), this.originVideo.srcObject = null;
14245
14257
  }
14246
14258
  }
14247
- const Nc = `
14259
+ const Mc = `
14248
14260
  var targetOptions={
14249
14261
  width: 320,
14250
14262
  height: 180,
@@ -14330,7 +14342,7 @@ onmessage = function(evt) {
14330
14342
  }
14331
14343
  }
14332
14344
  `;
14333
- class Za extends as {
14345
+ class en extends os {
14334
14346
  constructor(e, t) {
14335
14347
  super(e, t);
14336
14348
  g(this, "processor");
@@ -14342,7 +14354,7 @@ class Za extends as {
14342
14354
  return "MediaStreamTrackProcessor" in window && "MediaStreamTrackGenerator" in window && "TransformStream" in window && "VideoFrame" in window;
14343
14355
  }
14344
14356
  startTransform() {
14345
- const e = new Blob([Nc], { type: "text/javascript" }), i = (window.URL || window.webkitURL).createObjectURL(e);
14357
+ const e = new Blob([Mc], { type: "text/javascript" }), i = (window.URL || window.webkitURL).createObjectURL(e);
14346
14358
  this.worker = new Worker(i);
14347
14359
  const { readable: s } = this.processor, { writable: n } = this.trackGenerator;
14348
14360
  this.worker.postMessage(
@@ -14372,7 +14384,7 @@ class Za extends as {
14372
14384
  return this.trackGenerator;
14373
14385
  }
14374
14386
  }
14375
- class Hr {
14387
+ class zr {
14376
14388
  static isSupport() {
14377
14389
  return typeof HTMLCanvasElement.prototype.captureStream == "function";
14378
14390
  }
@@ -14383,10 +14395,10 @@ class Hr {
14383
14395
  * @return {VideoScaler}
14384
14396
  */
14385
14397
  static getInstance(a, e) {
14386
- return Za.isSupport() ? new Za(a, e) : Ya.isSupport() ? new Ya(a, e) : new Ic(a, e);
14398
+ return en.isSupport() ? new en(a, e) : Qa.isSupport() ? new Qa(a, e) : new Dc(a, e);
14387
14399
  }
14388
14400
  }
14389
- class Mc extends Jt {
14401
+ class Vc extends Gt {
14390
14402
  constructor() {
14391
14403
  super(...arguments);
14392
14404
  g(this, "hasVideoTrack", !1);
@@ -14404,7 +14416,7 @@ class Mc extends Jt {
14404
14416
  this.options = e, (t = this.videoScaler) == null || t.updateOptions(e);
14405
14417
  }
14406
14418
  isSupported() {
14407
- return Hr.isSupport();
14419
+ return zr.isSupport();
14408
14420
  }
14409
14421
  shouldUpdate(e) {
14410
14422
  return this.hasVideoTrack !== !!e.currentVideoTrack;
@@ -14414,7 +14426,7 @@ class Mc extends Jt {
14414
14426
  if (e.currentVideoTrack) {
14415
14427
  if (this.hasVideoTrack = !0, !this.videoScaler) {
14416
14428
  const i = this.options || this.initOptions;
14417
- this.videoScaler = Hr.getInstance(e.currentVideoTrack, i);
14429
+ this.videoScaler = zr.getInstance(e.currentVideoTrack, i);
14418
14430
  }
14419
14431
  const t = this.videoScaler.getVideoTrack();
14420
14432
  t && e.updateDualVideoTrack(t);
@@ -14426,10 +14438,10 @@ class Mc extends Jt {
14426
14438
  super.clear(e), this.hasVideoTrack = !1, e == null || e.updateDualVideoTrack();
14427
14439
  }
14428
14440
  }
14429
- var Lc = Object.defineProperty, Vc = Object.getOwnPropertyDescriptor, je = (r, a, e, t) => {
14430
- for (var i = t > 1 ? void 0 : t ? Vc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
14441
+ var Fc = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, je = (r, a, e, t) => {
14442
+ for (var i = t > 1 ? void 0 : t ? Oc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
14431
14443
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
14432
- return t && i && Lc(a, e, i), i;
14444
+ return t && i && Fc(a, e, i), i;
14433
14445
  };
14434
14446
  class Pe extends De {
14435
14447
  constructor(e) {
@@ -14463,7 +14475,7 @@ class Pe extends De {
14463
14475
  g(this, "indicationTimer", 0);
14464
14476
  g(this, "parameter", {});
14465
14477
  const { signalingManager: t, slsReporter: i } = e;
14466
- 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({
14478
+ this.signalingManager = t, this.addSignalingManagerListener(), this.slsReporter = i, this.pluginManager = new xc(), this.localStreamManager = new Ac(this.pluginManager, this.slsReporter), this.rtsManager = new bc(this.localStreamManager, this.slsReporter, this.parameter), this.self = new tc({
14467
14479
  rtsManager: this.rtsManager,
14468
14480
  localStreamManager: this.localStreamManager,
14469
14481
  slsReporter: this.slsReporter,
@@ -14471,7 +14483,7 @@ class Pe extends De {
14471
14483
  pluginManager: this.pluginManager,
14472
14484
  audioVolumeIndicationInterval: this.audioVolumeIndicationInterval,
14473
14485
  parameter: this.parameter
14474
- }), this.audioMixerPlugin = new Rc(), this.pluginManager.add(this.audioMixerPlugin), this.dualVideoPlugin = new Mc("dualVideoPlugin"), w0() && this.pluginManager.add(new _c());
14486
+ }), this.audioMixerPlugin = new wc(), this.pluginManager.add(this.audioMixerPlugin), this.dualVideoPlugin = new Vc("dualVideoPlugin"), T0() && this.pluginManager.add(new yc());
14475
14487
  }
14476
14488
  addSignalingManagerListener() {
14477
14489
  this.signalingManager.on("onNotifyPublish", (e) => {
@@ -14543,7 +14555,7 @@ class Pe extends De {
14543
14555
  var s;
14544
14556
  if (!e)
14545
14557
  return (s = this.publisher) == null ? void 0 : s.setViewConfig(null, t);
14546
- const i = Ur(e);
14558
+ const i = jr(e);
14547
14559
  i.length !== 0 && i.forEach((n) => {
14548
14560
  var c, o;
14549
14561
  (c = this.publisher) == null || c.resetElement(n), Object.values(this.usersViewMap).forEach(({ cameraViews: u = [], screenViews: h = [] }) => {
@@ -14556,7 +14568,7 @@ class Pe extends De {
14556
14568
  var n, c;
14557
14569
  if (!t)
14558
14570
  return (n = this.userMap[e]) == null ? void 0 : n.setViewConfig(null, i);
14559
- const s = Ur(t);
14571
+ const s = jr(t);
14560
14572
  s.length !== 0 && (s.forEach((o) => {
14561
14573
  var u;
14562
14574
  (u = this.publisher) == null || u.resetElement(o), Object.values(this.usersViewMap).forEach(({ cameraViews: h = [], screenViews: p = [] }) => {
@@ -14620,7 +14632,7 @@ class Pe extends De {
14620
14632
  if (!e)
14621
14633
  return;
14622
14634
  let t = 59 * 60 * 1e3;
14623
- const i = (s = X0(e)) == null ? void 0 : s.timeoutTs;
14635
+ const i = (s = Z0(e)) == null ? void 0 : s.timeoutTs;
14624
14636
  i && (t = i - Date.now() - 60 * 1e3), this.refreshUrlTimer = window.setTimeout(() => w(this, null, function* () {
14625
14637
  var c;
14626
14638
  const n = yield this.signalingManager.refreshUrl({
@@ -14703,7 +14715,7 @@ class Pe extends De {
14703
14715
  * @returns {RemoteUser}
14704
14716
  */
14705
14717
  executeAddUser(e, t, i) {
14706
- const s = new pc({
14718
+ const s = new mc({
14707
14719
  userId: e,
14708
14720
  displayName: t,
14709
14721
  rtsManager: this.rtsManager,
@@ -14715,7 +14727,7 @@ class Pe extends De {
14715
14727
  playoutVolume: this.playoutVolume,
14716
14728
  parameter: this.parameter
14717
14729
  });
14718
- return s.on(Le.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(oe.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(oe.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (n, c, o, u) => {
14730
+ return s.on(Me.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(oe.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(oe.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (n, c, o, u) => {
14719
14731
  this.emit("audioSubscribeStateChanged", n, c, o, u, this.channel || "");
14720
14732
  }), s.on("videoSubscribeStateChanged", (n, c, o, u) => {
14721
14733
  this.emit("videoSubscribeStateChanged", n, c, o, u, this.channel || "");
@@ -14775,7 +14787,7 @@ class Pe extends De {
14775
14787
  s[o] || c.push({
14776
14788
  userid: o,
14777
14789
  reason: "",
14778
- leavecode: is.AliRtcUserOfflineQuit
14790
+ leavecode: ss.AliRtcUserOfflineQuit
14779
14791
  });
14780
14792
  }), this.userMap = s, { joinList: t, leaveList: c, presentList: i };
14781
14793
  }
@@ -14865,7 +14877,7 @@ class Pe extends De {
14865
14877
  Object.keys(t).forEach((c) => {
14866
14878
  const o = this.parameter[c], u = t[c];
14867
14879
  typeof o == "object" && typeof u == "object" ? this.parameter[c] = G(G({}, o), u) : this.parameter[c] = u;
14868
- }), t.enableBlankAudio === !0 ? (this.blankAudioPlugin || (this.blankAudioPlugin = new Ac()), this.pluginManager.has((i = this.blankAudioPlugin) == null ? void 0 : i.name) || this.pluginManager.add(this.blankAudioPlugin)) : t.enableBlankAudio === !1 && (this.blankAudioPlugin && this.pluginManager.remove((s = this.blankAudioPlugin) == null ? void 0 : s.name), (n = this.blankAudioPlugin) == null || n.clear(), this.blankAudioPlugin = void 0);
14880
+ }), t.enableBlankAudio === !0 ? (this.blankAudioPlugin || (this.blankAudioPlugin = new Cc()), this.pluginManager.has((i = this.blankAudioPlugin) == null ? void 0 : i.name) || this.pluginManager.add(this.blankAudioPlugin)) : t.enableBlankAudio === !1 && (this.blankAudioPlugin && this.pluginManager.remove((s = this.blankAudioPlugin) == null ? void 0 : s.name), (n = this.blankAudioPlugin) == null || n.clear(), this.blankAudioPlugin = void 0);
14869
14881
  }
14870
14882
  getParameter() {
14871
14883
  return JSON.stringify(this.parameter);
@@ -14920,7 +14932,7 @@ je([
14920
14932
  je([
14921
14933
  D()
14922
14934
  ], Pe.prototype, "enableAudioVolumeIndication", 1);
14923
- const Br = (r) => w(void 0, null, function* () {
14935
+ const Lr = (r) => w(void 0, null, function* () {
14924
14936
  const a = new Uint8Array(160).fill(170), e = new TextEncoder().encode(r), t = yield window.crypto.subtle.importKey(
14925
14937
  "raw",
14926
14938
  // 密钥格式
@@ -14940,7 +14952,7 @@ const Br = (r) => w(void 0, null, function* () {
14940
14952
  );
14941
14953
  return Array.from(new Uint8Array(i)).map((s) => s.toString(16).padStart(2, "0")).join("");
14942
14954
  });
14943
- class Fc {
14955
+ class Uc {
14944
14956
  constructor(a) {
14945
14957
  g(this, "authInfo");
14946
14958
  g(this, "slsReporter");
@@ -14951,7 +14963,7 @@ class Fc {
14951
14963
  const t = this.authInfo;
14952
14964
  if (!t)
14953
14965
  return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
14954
- const i = "https://gw.rtn.aliyuncs.com", s = P0[a], n = {
14966
+ const i = "https://gw.rtn.aliyuncs.com", s = B0[a], n = {
14955
14967
  appid: t.appId,
14956
14968
  userid: t.userId,
14957
14969
  channelid: t.channelId,
@@ -14984,7 +14996,7 @@ class Fc {
14984
14996
  return w(this, null, function* () {
14985
14997
  if (!this.authInfo)
14986
14998
  return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
14987
- const t = yield Br(a.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, a);
14999
+ const t = yield Lr(a.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, a);
14988
15000
  return this.doRequest(i, s);
14989
15001
  });
14990
15002
  }
@@ -15000,7 +15012,7 @@ class Fc {
15000
15012
  return w(this, null, function* () {
15001
15013
  if (!this.authInfo)
15002
15014
  return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
15003
- const t = yield Br(a.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, a);
15015
+ const t = yield Lr(a.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, a);
15004
15016
  return this.doRequest(i, s);
15005
15017
  });
15006
15018
  }
@@ -15016,21 +15028,21 @@ class Fc {
15016
15028
  return w(this, null, function* () {
15017
15029
  if (!this.authInfo)
15018
15030
  return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
15019
- const e = yield Br(a.split("?")[0]), t = Ue.MPU_TASK_TRANSACTION_STOP, i = new Mr().toJson(t, this.authInfo, e, a);
15031
+ const e = yield Lr(a.split("?")[0]), t = Ue.MPU_TASK_TRANSACTION_STOP, i = new Vr().toJson(t, this.authInfo, e, a);
15020
15032
  return this.doRequest(t, i);
15021
15033
  });
15022
15034
  }
15023
15035
  stopPublishLiveStreamWithTaskId(a) {
15024
15036
  if (!this.authInfo)
15025
15037
  return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
15026
- const e = Ue.MPU_TASK_TRANSACTION_STOP, t = new Mr().toJson(e, this.authInfo, a);
15038
+ const e = Ue.MPU_TASK_TRANSACTION_STOP, t = new Vr().toJson(e, this.authInfo, a);
15027
15039
  return this.doRequest(e, t);
15028
15040
  }
15029
15041
  refreshAuthInfo(a) {
15030
15042
  this.authInfo && this.setAuthInfo(G(G({}, this.authInfo), a));
15031
15043
  }
15032
15044
  }
15033
- class ns {
15045
+ class cs {
15034
15046
  /**
15035
15047
  * 检测是否是string类型
15036
15048
  * @param {any} param
@@ -15078,7 +15090,7 @@ class ns {
15078
15090
  if (!a.userId)
15079
15091
  return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
15080
15092
  if (a.timestamp) {
15081
- if (!ns.checkNumber(a.timestamp))
15093
+ if (!cs.checkNumber(a.timestamp))
15082
15094
  return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
15083
15095
  } else
15084
15096
  return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
@@ -15101,7 +15113,7 @@ class ns {
15101
15113
  return a && (a.width || a.height || a.frameRate || a.bitrateMax);
15102
15114
  }
15103
15115
  }
15104
- class Oc {
15116
+ class Hc {
15105
15117
  constructor(a) {
15106
15118
  g(this, "taskProfile");
15107
15119
  g(this, "encodeParam");
@@ -15115,7 +15127,7 @@ class Oc {
15115
15127
  this.taskProfile = a;
15116
15128
  }
15117
15129
  }
15118
- class Uc {
15130
+ class jc {
15119
15131
  constructor(a, e, t) {
15120
15132
  g(this, "userId");
15121
15133
  g(this, "streamType");
@@ -15123,8 +15135,8 @@ class Uc {
15123
15135
  this.userId = a, this.streamType = e, this.sourceType = t;
15124
15136
  }
15125
15137
  }
15126
- class Hc {
15127
- constructor(a, e, t, i = 0, s = 16777215, n = Ci.NOTO_SERIF_CJKSC_REGULAR) {
15138
+ class zc {
15139
+ constructor(a, e, t, i = 0, s = 16777215, n = Ii.NOTO_SERIF_CJKSC_REGULAR) {
15128
15140
  g(this, "x");
15129
15141
  g(this, "y");
15130
15142
  g(this, "fontSize");
@@ -15139,13 +15151,13 @@ class Hc {
15139
15151
  y: Ye(this.y, e),
15140
15152
  fonttype: this.fontType,
15141
15153
  fontsize: this.fontSize,
15142
- fontcolor: ts(this.fontColor),
15154
+ fontcolor: rs(this.fontColor),
15143
15155
  zorder: this.zOrder
15144
15156
  };
15145
15157
  }
15146
15158
  }
15147
- 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 || {});
15148
- class Cn {
15159
+ var Rn = /* @__PURE__ */ ((r) => (r[r.NOT_DISPLAY = 0] = "NOT_DISPLAY", r[r.ALWAYS = 1] = "ALWAYS", r[r.WHEN_NO_VIDEO = 2] = "WHEN_NO_VIDEO", r))(Rn || {});
15160
+ class In {
15149
15161
  constructor(a, e, t, i, s, n = 0, c = 1, o = 1) {
15150
15162
  g(this, "url");
15151
15163
  g(this, "x");
@@ -15170,9 +15182,9 @@ class Cn {
15170
15182
  };
15171
15183
  }
15172
15184
  }
15173
- g(Cn, "DisplayType", yn);
15174
- class jc {
15175
- constructor(a, e, t, i, s = 0, n = 16777215, c = Ci.NOTO_SERIF_CJKSC_REGULAR) {
15185
+ g(In, "DisplayType", Rn);
15186
+ class Wc {
15187
+ constructor(a, e, t, i, s = 0, n = 16777215, c = Ii.NOTO_SERIF_CJKSC_REGULAR) {
15176
15188
  g(this, "text");
15177
15189
  g(this, "x");
15178
15190
  g(this, "y");
@@ -15189,12 +15201,12 @@ class jc {
15189
15201
  y: Ye(this.y, e),
15190
15202
  fonttype: this.fontType,
15191
15203
  fontsize: this.fontSize,
15192
- fontcolor: ts(this.fontColor),
15204
+ fontcolor: rs(this.fontColor),
15193
15205
  zorder: this.zOrder
15194
15206
  };
15195
15207
  }
15196
15208
  }
15197
- class zc {
15209
+ class $c {
15198
15210
  constructor(a, e, t, i, s, n = 0, c) {
15199
15211
  g(this, "userId");
15200
15212
  g(this, "x");
@@ -15203,7 +15215,7 @@ class zc {
15203
15215
  g(this, "height");
15204
15216
  g(this, "zOrder");
15205
15217
  g(this, "sourceType");
15206
- g(this, "segmentType", bi.LiveTranscodingNoBody);
15218
+ g(this, "segmentType", Ei.LiveTranscodingNoBody);
15207
15219
  g(this, "images", []);
15208
15220
  g(this, "texts", []);
15209
15221
  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);
@@ -15221,26 +15233,26 @@ class zc {
15221
15233
  images: this.images.map((n) => n.toJson(e, t)),
15222
15234
  texts: this.texts.map((n) => n.toJson(e, t))
15223
15235
  };
15224
- return this.sourceType && ti[this.sourceType] ? s.sourcetype = ti[this.sourceType] : s.sourcetype = ti[ai.LiveTranscodingCamera], this.segmentType && i === es.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = bi.LiveTranscodingNoBody, s;
15236
+ return this.sourceType && ii[this.sourceType] ? s.sourcetype = ii[this.sourceType] : s.sourcetype = ii[ni.LiveTranscodingCamera], this.segmentType && i === is.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = Ei.LiveTranscodingNoBody, s;
15225
15237
  }
15226
15238
  }
15227
- const Mt = class Mt {
15239
+ const Lt = class Lt {
15228
15240
  constructor() {
15229
15241
  // 使用 static 声明实例
15230
15242
  g(this, "ntpClock");
15231
15243
  this.ntpClock = new le.Clock();
15232
15244
  }
15233
15245
  static getInstance() {
15234
- return Mt.instance || (Mt.instance = new Mt()), Mt.instance;
15246
+ return Lt.instance || (Lt.instance = new Lt()), Lt.instance;
15235
15247
  }
15236
15248
  now() {
15237
15249
  return this.ntpClock.now();
15238
15250
  }
15239
15251
  };
15240
- g(Mt, "instance");
15241
- let jr = Mt;
15242
- const Rn = () => jr.getInstance(), { BrowserUtil: Nr, SystenUtil: Qa } = le;
15243
- class en {
15252
+ g(Lt, "instance");
15253
+ let Wr = Lt;
15254
+ const wn = () => Wr.getInstance(), { BrowserUtil: Mr, SystenUtil: tn } = le;
15255
+ class rn {
15244
15256
  constructor() {
15245
15257
  g(this, "tracker");
15246
15258
  g(this, "param");
@@ -15250,13 +15262,13 @@ class en {
15250
15262
  g(this, "slsToken");
15251
15263
  g(this, "ossToken");
15252
15264
  g(this, "ntpClock");
15253
- this.ntpClock = Rn();
15265
+ this.ntpClock = wn();
15254
15266
  }
15255
15267
  createTracker() {
15256
15268
  if (!this.tracker && this.slsToken && this.param) {
15257
15269
  const a = this.slsToken;
15258
15270
  this.ossToken && (this.param.ossbn = this.ossToken.bucket_name, this.param.ossep = this.ossToken.region_endpoint);
15259
- const e = new qr({
15271
+ const e = new Gr({
15260
15272
  host: a.region_endpoint,
15261
15273
  project: a.project,
15262
15274
  logstore: a.log_store_stats
@@ -15270,7 +15282,7 @@ class en {
15270
15282
  }
15271
15283
  };
15272
15284
  this.stsOpt = t;
15273
- const i = Xr(t);
15285
+ const i = Zr(t);
15274
15286
  e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((s, n) => {
15275
15287
  var c, o;
15276
15288
  (o = this.tracker) == null || o.send(G(ut(G({}, this.param), { stat_log_id: `${((c = this.param) == null ? void 0 : c.sesid) || "nosession"}-${n}` }), s));
@@ -15300,7 +15312,7 @@ class en {
15300
15312
  try {
15301
15313
  e = JSON.parse(
15302
15314
  JSON.stringify(G(ut(G({
15303
- bt: Nr.browserName || "unknown",
15315
+ bt: Mr.browserName || "unknown",
15304
15316
  ntptm: this.ntpClock.now(),
15305
15317
  // NTP时间
15306
15318
  ntpofs: this.ntpClock.now() - Date.now()
@@ -15332,18 +15344,18 @@ class en {
15332
15344
  sessionId: a.sessionId,
15333
15345
  channelid: a.channelId,
15334
15346
  usrn: a.userId,
15335
- osn: Qa.systemName,
15336
- osv: Qa.systemVersion,
15337
- deb: _0(),
15338
- den: v0(),
15347
+ osn: tn.systemName,
15348
+ osv: tn.systemVersion,
15349
+ deb: y0(),
15350
+ den: E0(),
15339
15351
  udid: e,
15340
- sdkvrs: _i,
15352
+ sdkvrs: yi,
15341
15353
  acs: "Unknown",
15342
- cput: hn(),
15354
+ cput: ln(),
15343
15355
  dm: `${window.location.protocol}//${window.location.host}`,
15344
15356
  // bt 需要保证不为空
15345
- bt: Nr.browserName,
15346
- bv: Nr.browserVersion,
15357
+ bt: Mr.browserName,
15358
+ bv: Mr.browserVersion,
15347
15359
  envir: "PRODUCT",
15348
15360
  args: "",
15349
15361
  instid: rt()
@@ -15364,26 +15376,26 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15364
15376
  return "0.00";
15365
15377
  let e = r;
15366
15378
  return (!e || e < 0) && (e = 0), (e / a * 100).toFixed(2);
15367
- }, tn = (r) => r >= 0 && r <= 1 ? fe(Math.floor(32767 * r), 1, 32767) : 0, pe = (r, a) => {
15379
+ }, sn = (r) => r >= 0 && r <= 1 ? fe(Math.floor(32767 * r), 1, 32767) : 0, pe = (r, a) => {
15368
15380
  var t, i, s;
15369
15381
  let e = ((t = r._last) == null ? void 0 : t[a]) || 0;
15370
15382
  return r.ssrc && ((i = r._last) != null && i.ssrc) && r.ssrc !== ((s = r._last) == null ? void 0 : s.ssrc) && (e = 0), ((r == null ? void 0 : r[a]) || 0) - e;
15371
- }, Wc = (r, a) => {
15383
+ }, Kc = (r, a) => {
15372
15384
  var e, t, i;
15373
15385
  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);
15374
- }, rn = (r, a) => fe(pe(r, a), 1e3, 1e4), kt = (r, a = 2e7) => fe(r, 1, a), ri = class ri {
15386
+ }, an = (r, a) => fe(pe(r, a), 1e3, 1e4), kt = (r, a = 2e7) => fe(r, 1, a), si = class si {
15375
15387
  constructor(a) {
15376
15388
  g(this, "engine");
15377
15389
  g(this, "logClient");
15378
15390
  g(this, "authInfo");
15379
15391
  g(this, "ntpClock");
15380
- this.logClient = new en(), this.engine = a, this.ntpClock = Rn();
15392
+ this.logClient = new rn(), this.engine = a, this.ntpClock = wn();
15381
15393
  }
15382
15394
  static getLogClient() {
15383
- return this.staticClient || (this.staticClient = new en()), this.staticClient;
15395
+ return this.staticClient || (this.staticClient = new rn()), this.staticClient;
15384
15396
  }
15385
15397
  static reportOSSUpload(a, e, t = 0) {
15386
- ri.getLogClient().sendReport({
15398
+ si.getLogClient().sendReport({
15387
15399
  errmsg: `${e}/${a}.log`,
15388
15400
  errtype: t,
15389
15401
  evetid: 70017,
@@ -15400,7 +15412,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15400
15412
  this.authInfo = a, this.logClient.start(a);
15401
15413
  }
15402
15414
  updateToken(a, e) {
15403
- this.logClient.updateToken(a, e), ri.getLogClient().updateToken(a, e);
15415
+ this.logClient.updateToken(a, e), si.getLogClient().updateToken(a, e);
15404
15416
  }
15405
15417
  /**
15406
15418
  * 断开连接
@@ -15415,7 +15427,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15415
15427
  ctm: Math.floor(s[0].timestamp || 0),
15416
15428
  src: s[0].ssrc || "",
15417
15429
  codec: s[0]._codec || ""
15418
- }, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [];
15430
+ }, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], L = [], C = [];
15419
15431
  try {
15420
15432
  if (s.forEach((I) => {
15421
15433
  var V, N, J, j, ce, Z;
@@ -15431,21 +15443,21 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15431
15443
  p.push(te);
15432
15444
  const ee = pe(I, "packetsLost"), k = Ge(ee, P);
15433
15445
  d.push(k);
15434
- const L = Pt(ee, Q);
15435
- if (f.push(L), n)
15436
- (N = I._source) != null && N.audioLevel && m.push(tn(I._source.audioLevel)), l.push(0);
15446
+ const M = Pt(ee, Q);
15447
+ if (f.push(M), n)
15448
+ (N = I._source) != null && N.audioLevel && m.push(sn(I._source.audioLevel)), l.push(0);
15437
15449
  else {
15438
- x.push(rn(I, "totalEncodeTime")), v.push(kt((J = I._source) == null ? void 0 : J.framesPerSecond, 100)), S.push(kt((j = I._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(kt(I.framesPerSecond, 100)), E.push(kt((ce = I._source) == null ? void 0 : ce.height, 4400)), _.push(kt((Z = I._source) == null ? void 0 : Z.width, 7700)), y.push(kt(I.frameHeight, 4400)), A.push(kt(I.frameWidth, 7700));
15450
+ x.push(an(I, "totalEncodeTime")), v.push(kt((J = I._source) == null ? void 0 : J.framesPerSecond, 100)), S.push(kt((j = I._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(kt(I.framesPerSecond, 100)), E.push(kt((ce = I._source) == null ? void 0 : ce.height, 4400)), _.push(kt((Z = I._source) == null ? void 0 : Z.width, 7700)), y.push(kt(I.frameHeight, 4400)), A.push(kt(I.frameWidth, 7700));
15439
15451
  const Fe = pe(I, "totalPacketSendDelay");
15440
15452
  R.push(fe(Fe, 1 / (ee || 1), 2e3));
15441
15453
  const ze = pe(I, "qpSum");
15442
- M.push(fe(ze, 1 / (I.framesPerSecond || 1), 51)), C.push(0);
15454
+ L.push(fe(ze, 1 / (I.framesPerSecond || 1), 51)), C.push(0);
15443
15455
  }
15444
15456
  }), 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) {
15445
15457
  const I = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
15446
15458
  c.ailevel = m.join(","), c.arpc = l.join(","), c.arsr = I, c.aesr = I, c.publevel = -90, c.rawlevel = -90;
15447
15459
  } else
15448
- c.em = x.join(","), c.cfps = v.join(","), c.ifps = S.join(","), c.sfps = b.join(","), c.ih = E.join(","), c.iw = _.join(","), c.sh = y.join(","), c.sw = A.join(","), c.sd = R.join(","), c.aqp = M.join(","), c.caf = C.join(","), c.can = C.join(","), c.cav = u.join(","), c.ifimax = C.join(","), c.ifimin = C.join(","), c.efimax = C.join(","), c.efimin = C.join(","), c.sfimax = C.join(","), c.sfimin = C.join(","), c.apsnr = C.join(",");
15460
+ c.em = x.join(","), c.cfps = v.join(","), c.ifps = S.join(","), c.sfps = b.join(","), c.ih = E.join(","), c.iw = _.join(","), c.sh = y.join(","), c.sw = A.join(","), c.sd = R.join(","), c.aqp = L.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(",");
15449
15461
  } catch (I) {
15450
15462
  }
15451
15463
  this.log({
@@ -15466,7 +15478,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15466
15478
  ctm: Math.floor(s[0].timestamp || 0),
15467
15479
  src: s[0].ssrc || "",
15468
15480
  codec: s[0]._codec || ""
15469
- }, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], L = [], V = [], N = [], J = [];
15481
+ }, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], L = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], M = [], V = [], N = [], J = [];
15470
15482
  try {
15471
15483
  s.forEach((j) => {
15472
15484
  var tt, It;
@@ -15482,11 +15494,11 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15482
15494
  p.push(ke);
15483
15495
  const ot = pe(j, "packetsLost"), yt = Ge(ot, ce);
15484
15496
  d.push(yt);
15485
- const Ut = Pt(ot, Se);
15486
- f.push(Ut);
15487
- const Ct = pe(j, "jitterBufferDelay"), Xt = pe(j, "jitterBufferEmittedCount");
15497
+ const Ht = Pt(ot, Se);
15498
+ f.push(Ht);
15499
+ const Ct = pe(j, "jitterBufferDelay"), Yt = pe(j, "jitterBufferEmittedCount");
15488
15500
  if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
15489
- const gt = fe(Ct, 1e3 / Xt, 1e4);
15501
+ const gt = fe(Ct, 1e3 / Yt, 1e4);
15490
15502
  m.push(gt);
15491
15503
  } else
15492
15504
  m.push(0);
@@ -15494,34 +15506,34 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
15494
15506
  b.push(Pt(Rt, Se));
15495
15507
  const Be = pe(j, "retransmittedPacketsReceived"), Re = Se + ot - Be;
15496
15508
  if (x.push(Pt(Se - Be, Re)), v.push(Pt(ot, Re)), l.push(Pt(Be, Re)), S.push(Re), N.push(0), J.push(""), n) {
15497
- _.push(tn(j.audioLevel));
15498
- const gt = Wc(j, "synthesizedSamplesEvents");
15509
+ _.push(sn(j.audioLevel));
15510
+ const gt = Kc(j, "synthesizedSamplesEvents");
15499
15511
  y.push(gt);
15500
- const it = rn(j, "synthesizedSamplesDuration");
15512
+ const it = an(j, "synthesizedSamplesDuration");
15501
15513
  A.push(it);
15502
15514
  const ct = Pt(it, ce);
15503
15515
  E.push(ct), R.push(0);
15504
15516
  } else {
15505
15517
  const gt = (It = j._last) != null && It.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
15506
- M.push(fe(gt, 1e3 / (j.framesDecoded || 30), 500)), C.push(fe(j.framesPerSecond, 1, 100)), I.push(pe(j, "framesReceived")), V.push(pe(j, "framesRendered")), P.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
15518
+ L.push(fe(gt, 1e3 / (j.framesDecoded || 30), 500)), C.push(fe(j.framesPerSecond, 1, 100)), I.push(pe(j, "framesReceived")), V.push(pe(j, "framesRendered")), P.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
15507
15519
  const it = pe(j, "totalProcessingDelay");
15508
15520
  $.push(fe(it, 1e3 / (j.framesDecoded || 30), 12e4));
15509
15521
  const ct = pe(j, "nackCount");
15510
15522
  X.push(ct);
15511
- const Ti = pe(j, "pliCount");
15512
- q.push(Ti);
15513
- const ci = pe(j, "qpSum");
15514
- ae.push(fe(ci, 1 / (j.framesPerSecond || 1), 51)), Q.push(fe(j.framesDropped));
15515
- const ui = pe(j, "totalFreezesDuration");
15516
- te.push(fe(ui, 1e3, 3e4));
15523
+ const ki = pe(j, "pliCount");
15524
+ q.push(ki);
15525
+ const ui = pe(j, "qpSum");
15526
+ ae.push(fe(ui, 1 / (j.framesPerSecond || 1), 51)), Q.push(fe(j.framesDropped));
15527
+ const hi = pe(j, "totalFreezesDuration");
15528
+ te.push(fe(hi, 1e3, 3e4));
15517
15529
  const We = pe(j, "jitterBufferEmittedCount"), mt = pe(j, "jitterBufferDelay");
15518
15530
  mt && We ? ee.push(fe(mt, 1e3 / We, 3e4)) : ee.push(0);
15519
- const hi = pe(j, "jitterBufferTargetDelay");
15520
- hi && We ? k.push(fe(hi, 1e3 / We, 3e4)) : k.push(0);
15521
- const Yt = pe(j, "jitterBufferMinimumDelay");
15522
- Yt && We ? L.push(fe(Yt, 1e3 / We, 3e4)) : L.push(0);
15531
+ const di = pe(j, "jitterBufferTargetDelay");
15532
+ di && We ? k.push(fe(di, 1e3 / We, 3e4)) : k.push(0);
15533
+ const Zt = pe(j, "jitterBufferMinimumDelay");
15534
+ Zt && We ? M.push(fe(Zt, 1e3 / We, 3e4)) : M.push(0);
15523
15535
  }
15524
- }), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = x.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = S.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm = M.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt = J.join(","), c.ns = X.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = N.join(","), c.ofimin = N.join(","), c.dfimax = N.join(","), c.dfimin = N.join(","), c.rfimax = N.join(","), c.rfimin = N.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = k.join(","), c.pdm = L.join(","), c.ofps = V.join(","), c.dfbd = Q.join(","));
15536
+ }), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = x.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = S.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm = L.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 = M.join(","), c.ofps = V.join(","), c.dfbd = Q.join(","));
15525
15537
  } catch (j) {
15526
15538
  }
15527
15539
  this.log({
@@ -16124,12 +16136,12 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
16124
16136
  return e;
16125
16137
  }
16126
16138
  };
16127
- g(ri, "staticClient");
16128
- let zr = ri;
16129
- var $c = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, W = (r, a, e, t) => {
16130
- for (var i = t > 1 ? void 0 : t ? Kc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
16139
+ g(si, "staticClient");
16140
+ let $r = si;
16141
+ var qc = Object.defineProperty, Jc = Object.getOwnPropertyDescriptor, W = (r, a, e, t) => {
16142
+ for (var i = t > 1 ? void 0 : t ? Jc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
16131
16143
  (n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
16132
- return t && i && $c(a, e, i), i;
16144
+ return t && i && qc(a, e, i), i;
16133
16145
  }, K;
16134
16146
  const z = (K = class extends De {
16135
16147
  constructor(e) {
@@ -16150,7 +16162,7 @@ const z = (K = class extends De {
16150
16162
  g(this, "_serverCheckAuthInfoTimestamp", null);
16151
16163
  g(this, "_localCheckAuthInfoTimestamp", null);
16152
16164
  const t = Date.now();
16153
- 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(
16165
+ O.init(), this.slsReporter = new $r(this), this.channelProfile = bt.AliRtcSdkCommunication, this.clientRole = Bt.AliRtcSdkLive, this.liveTranscoding = new Uc(this.slsReporter), this.signalingManager = new ns(
16154
16166
  this.channelProfile,
16155
16167
  this.clientRole,
16156
16168
  this.slsReporter,
@@ -16173,7 +16185,7 @@ const z = (K = class extends De {
16173
16185
  ), this.slsReporter.reportSDKCreated(t);
16174
16186
  }
16175
16187
  static getSdkVersion() {
16176
- return _i;
16188
+ return yi;
16177
16189
  }
16178
16190
  static setLogLevel(e) {
16179
16191
  O.setLogLevel(e);
@@ -16225,23 +16237,23 @@ const z = (K = class extends De {
16225
16237
  */
16226
16238
  addPublisherListeners() {
16227
16239
  var e, t, i, s, n, c, o, u, h, p;
16228
- (e = this.publisher) == null || e.on(Le.Local, (d) => {
16240
+ (e = this.publisher) == null || e.on(Me.Local, (d) => {
16229
16241
  O.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
16230
- }), (t = this.publisher) == null || t.on(Lt.VideoTrackEnded, () => {
16242
+ }), (t = this.publisher) == null || t.on(Vt.VideoTrackEnded, () => {
16231
16243
  O.event("[Publisher] VideoTrack Ended"), this.emit(
16232
16244
  "localDeviceException",
16233
16245
  dt.AliEngineLocalDeviceTypeCamera,
16234
16246
  _e.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16235
16247
  ""
16236
16248
  );
16237
- }), (i = this.publisher) == null || i.on(Lt.ScreenTrackEnded, () => {
16249
+ }), (i = this.publisher) == null || i.on(Vt.ScreenTrackEnded, () => {
16238
16250
  O.event("[Publisher] ScreenTrack Ended"), this.emit(
16239
16251
  "localDeviceException",
16240
16252
  dt.AliEngineLocalDeviceTypeDisplay,
16241
16253
  _e.AliEngineLocalDeviceExceptionTypeDisplayException,
16242
16254
  ""
16243
16255
  );
16244
- }), (s = this.publisher) == null || s.on(Lt.AudioTrackEnded, () => {
16256
+ }), (s = this.publisher) == null || s.on(Vt.AudioTrackEnded, () => {
16245
16257
  O.event("[Publisher] AudioTrack Ended"), this.emit(
16246
16258
  "localDeviceException",
16247
16259
  dt.AliEngineLocalDeviceTypeMic,
@@ -16289,7 +16301,7 @@ const z = (K = class extends De {
16289
16301
  })), this.bizControl.rtsManager.on("seimessage", (e, t, i) => {
16290
16302
  const s = this.remoteUsers.find((n) => n.streamUrl === e);
16291
16303
  s && this.emit("mediaExtensionMsgReceived", s.userId, i, t);
16292
- }), this.bizControl.on(Le.Remote, (e, t) => {
16304
+ }), this.bizControl.on(Me.Remote, (e, t) => {
16293
16305
  O.event(`[${K.logName}]`, "RemoteUser Device Status Change", e, t);
16294
16306
  }), this.bizControl.on("remoteTrackAvailableChange", (e, t, i) => {
16295
16307
  this.emit("remoteTrackAvailableNotify", e, t, i);
@@ -16362,7 +16374,7 @@ const z = (K = class extends De {
16362
16374
  O.event("[Signaling] Connect Failed ", e), this.onError(e), this.backToUnpublishStatus(), this.connectState = ue.AliRtcConnectionStatusFailed, this.emit(
16363
16375
  "connectionStatusChange",
16364
16376
  ue.AliRtcConnectionStatusFailed,
16365
- zt.AliRtcConnectionChangedNetworkInterrupted
16377
+ Wt.AliRtcConnectionChangedNetworkInterrupted
16366
16378
  );
16367
16379
  }), this.signalingManager.on("onNetworkError", (e) => {
16368
16380
  this.slsReporter.reportWarning("signaling network error"), O.event("[Signaling] Network error ", e), this.onNetworkError();
@@ -16372,7 +16384,7 @@ const z = (K = class extends De {
16372
16384
  O.event("[Signaling] Reconnect Start "), this.connectState = ue.AliRtcConnectionStatusReconnecting, this.emit(
16373
16385
  "connectionStatusChange",
16374
16386
  ue.AliRtcConnectionStatusReconnecting,
16375
- zt.AliRtcConnectionSignalingConnecting
16387
+ Wt.AliRtcConnectionSignalingConnecting
16376
16388
  );
16377
16389
  }), this.signalingManager.on("onReconnectSuccess", (e) => {
16378
16390
  O.event("[Signaling] Reconnect Success ", e), this.onNetworkRecovery(e);
@@ -16406,7 +16418,7 @@ const z = (K = class extends De {
16406
16418
  * @returns {void}
16407
16419
  */
16408
16420
  onLocalDeviceStatusChange(e) {
16409
- O.event(`[${K.logName}]`, Le.Local, e), this.signalingManager.reportStatus(e).then(() => {
16421
+ O.event(`[${K.logName}]`, Me.Local, e), this.signalingManager.reportStatus(e).then(() => {
16410
16422
  O.debug("[signaling] reportStatus suc");
16411
16423
  }).catch((t) => {
16412
16424
  O.error("[signaling] reportStatus failed", t);
@@ -16452,7 +16464,7 @@ const z = (K = class extends De {
16452
16464
  ), !this.bizControl.rtsManager.isConnected && !this.bizControl.rtsManager.isConnecting ? (this.currentRoleCanPublish && (yield this.resumePublishForNetworkRecovery()), yield this.resumeSubList()) : e && (yield this.resumeSubList(e)), this.networkError && (this.networkError = !1, (t = this.publisher) == null || t.reportSelfDeviceStatus(), this.connectState = ue.AliRtcConnectionStatusConnected, this.emit(
16453
16465
  "connectionStatusChange",
16454
16466
  ue.AliRtcConnectionStatusConnected,
16455
- zt.AliRtcConnectionSignalingHeartbeatAlive
16467
+ Wt.AliRtcConnectionSignalingHeartbeatAlive
16456
16468
  ));
16457
16469
  });
16458
16470
  }
@@ -16465,7 +16477,7 @@ const z = (K = class extends De {
16465
16477
  leaveList: i,
16466
16478
  presentList: s
16467
16479
  }), this.handleUsersJoin(t), i.forEach((n) => {
16468
- O.event(K.logName, oe.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid, is.AliRtcUserOfflineQuit);
16480
+ O.event(K.logName, oe.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid, ss.AliRtcUserOfflineQuit);
16469
16481
  });
16470
16482
  for (let n = 0; n < s.length; n++) {
16471
16483
  const c = s[n], o = c.userid, u = this.bizControl.getRemoteUser(o);
@@ -16498,7 +16510,7 @@ const z = (K = class extends De {
16498
16510
  this.connectState === ue.AliRtcConnectionStatusConnected && (this.networkError || (this.connectState = ue.AliRtcConnectionStatusDisconnected, this.emit(
16499
16511
  "connectionStatusChange",
16500
16512
  ue.AliRtcConnectionStatusDisconnected,
16501
- zt.AliRtcConnectionChangedNetworkInterrupted
16513
+ Wt.AliRtcConnectionChangedNetworkInterrupted
16502
16514
  )), this.networkError = !0);
16503
16515
  }
16504
16516
  /**
@@ -16655,7 +16667,7 @@ const z = (K = class extends De {
16655
16667
  const c = {
16656
16668
  start: Date.now()
16657
16669
  };
16658
- let o = ns.checkAuthInfo(s);
16670
+ let o = cs.checkAuthInfo(s);
16659
16671
  if (ue.AliRtcConnectionStatusInit === this.connectState || ue.AliRtcConnectionStatusDisconnected === this.connectState || ue.AliRtcConnectionStatusFailed === this.connectState) {
16660
16672
  if (s.sessionId = He.createCallid("web"), this.slsReporter.start(s), this.slsReporter.reportConnectionLatencyEvent(
16661
16673
  Je.JOIN,
@@ -17111,7 +17123,7 @@ const z = (K = class extends De {
17111
17123
  if (this._audioOnlyMode)
17112
17124
  throw new F(U.ERR_INNER, "Cannot switch camera in audio only mode");
17113
17125
  const i = {};
17114
- 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)) {
17126
+ if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : t || (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? oi.CAMERA_FRONT : oi.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
17115
17127
  (u = (o = this.publisher) == null ? void 0 : o.cameraTrack) == null || u.stop();
17116
17128
  const p = {
17117
17129
  video: !0
@@ -17345,11 +17357,11 @@ g(K, "logError", !0), /**
17345
17357
  * @param {string} direction
17346
17358
  * @returns {Promise<AliRtcCheckResult>}
17347
17359
  */
17348
- g(K, "isSupported", I0), /**
17360
+ g(K, "isSupported", D0), /**
17349
17361
  * 检查浏览器是否支持开启大小流
17350
17362
  * @returns {boolean}
17351
17363
  */
17352
- g(K, "isDualVideoStreamSupported", Hr.isSupport), /**
17364
+ g(K, "isDualVideoStreamSupported", zr.isSupport), /**
17353
17365
  * 获取摄像头列表
17354
17366
  * @returns {Promise<string[]>}
17355
17367
  */
@@ -17359,7 +17371,7 @@ g(K, "getCameraList", () => w(K, null, function* () {
17359
17371
  return (yield le.getMicList()).filter((t) => t.deviceId);
17360
17372
  })), g(K, "getSpeakerList", () => w(K, null, function* () {
17361
17373
  return (yield le.getSpeakerList()).filter((t) => t.deviceId);
17362
- })), 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);
17374
+ })), g(K, "_instance"), g(K, "AliRtcSdkChannelProfile", bt), g(K, "AliRtcSdkClientRole", Bt), g(K, "AliRtcVideoStreamType", we), g(K, "AliRtcVideoTrack", se), g(K, "AliRtcAudioTrack", Xt), g(K, "AliRtcPublishState", Y), g(K, "AliRtcSubscribeState", he), g(K, "AliRtcRawDataStreamType", be), g(K, "AliRtcLogLevel", fn), g(K, "AliRtcEngineLocalDeviceType", dt), g(K, "AliRtcEngineLocalDeviceExceptionType", _e), g(K, "AliRtcConnectionStatus", ue), g(K, "AliRtcConnectionStatusChangeReason", Wt), g(K, "AliRtcPlugin", Gt), g(K, "AliRtcPluginTrackType", Ri), g(K, "AliRtcLiveTranscodingParam", Vr), g(K, "AliRtcLiveTranscodingEncodeParam", vn), g(K, "AliRtcLiveTranscodingMixParam", Hc), g(K, "AliRtcLiveTranscodingSingleParam", jc), g(K, "AliRtcTranscodingClockWidget", zc), g(K, "AliRtcTranscodingImage", In), g(K, "AliRtcTranscodingText", Wc), g(K, "AliRtcTranscodingUser", $c), g(K, "AliRtcLiveTranscodingMixMode", bi), g(K, "AliRtcLiveTranscodingStreamType", pn), g(K, "AliRtcLiveTranscodingSourceType", ni), g(K, "AliRtcLiveTranscodingTaskProfile", gn), g(K, "AliRtcLiveTranscodingAudioSampleRate", ts), g(K, "AliRtcLiveTranscodingSegmentType", Ei), g(K, "AliRtcLiveTranscodingFontType", Ii), g(K, "AliRtcLiveTranscodingCropMode", mn), g(K, "AliRtcLiveTranscodingMediaProcessMode", is), g(K, "AliRtcLiveTranscodingState", xn), g(K, "AliRtcLiveTranscodingErrorCode", ht), g(K, "AliRtcTrascodingPublishTaskStatus", Sn), g(K, "AliRtcDataChannelMsg", qt), g(K, "AliRtcDataMsgType", An), g(K, "Plugin", Gt), K);
17363
17375
  W([
17364
17376
  D()
17365
17377
  ], z.prototype, "destroy", 1);
@@ -17588,56 +17600,56 @@ W([
17588
17600
  W([
17589
17601
  D(H)
17590
17602
  ], z, "setLogLevel", 1);
17591
- let In = z;
17592
- var sn;
17593
- const wn = new $r({
17603
+ let Dn = z;
17604
+ var nn;
17605
+ const Tn = new qr({
17594
17606
  businessName: "imp-web-rtc",
17595
- version: (sn = In.getSdkVersion()) != null ? sn : "unknown",
17607
+ version: (nn = Dn.getSdkVersion()) != null ? nn : "unknown",
17596
17608
  env: "prod",
17597
17609
  disabled: window.AliRtcOptionsDisableProxy === !0
17598
17610
  });
17599
- wn.setReady();
17600
- const Xc = wn.wrap(In);
17611
+ Tn.setReady();
17612
+ const Zc = Tn.wrap(Dn);
17601
17613
  export {
17602
17614
  ue as AliRtcConnectionStatus,
17603
- zt as AliRtcConnectionStatusChangeReason,
17604
- Kt as AliRtcDataChannelMsg,
17605
- En as AliRtcDataMsgType,
17615
+ Wt as AliRtcConnectionStatusChangeReason,
17616
+ qt as AliRtcDataChannelMsg,
17617
+ An as AliRtcDataMsgType,
17606
17618
  _e as AliRtcEngineLocalDeviceExceptionType,
17607
17619
  dt as AliRtcEngineLocalDeviceType,
17608
17620
  U as AliRtcErrorCode,
17609
- Qr as AliRtcLiveTranscodingAudioSampleRate,
17610
- pn as AliRtcLiveTranscodingCropMode,
17611
- xn as AliRtcLiveTranscodingEncodeParam,
17621
+ ts as AliRtcLiveTranscodingAudioSampleRate,
17622
+ mn as AliRtcLiveTranscodingCropMode,
17623
+ vn as AliRtcLiveTranscodingEncodeParam,
17612
17624
  ht as AliRtcLiveTranscodingErrorCode,
17613
- Ci as AliRtcLiveTranscodingFontType,
17614
- es as AliRtcLiveTranscodingMediaProcessMode,
17615
- vi as AliRtcLiveTranscodingMixMode,
17616
- Oc as AliRtcLiveTranscodingMixParam,
17617
- Mr as AliRtcLiveTranscodingParam,
17618
- bi as AliRtcLiveTranscodingSegmentType,
17619
- Uc as AliRtcLiveTranscodingSingleParam,
17620
- ai as AliRtcLiveTranscodingSourceType,
17621
- gn as AliRtcLiveTranscodingState,
17622
- ln as AliRtcLiveTranscodingStreamType,
17623
- fn as AliRtcLiveTranscodingTaskProfile,
17624
- Ga as AliRtcLocalStreamInfo,
17625
- dn as AliRtcLogLevel,
17626
- Jt as AliRtcPlugin,
17627
- yi as AliRtcPluginTrackType,
17628
- D0 as AliRtcPluginType,
17625
+ Ii as AliRtcLiveTranscodingFontType,
17626
+ is as AliRtcLiveTranscodingMediaProcessMode,
17627
+ bi as AliRtcLiveTranscodingMixMode,
17628
+ Hc as AliRtcLiveTranscodingMixParam,
17629
+ Vr as AliRtcLiveTranscodingParam,
17630
+ Ei as AliRtcLiveTranscodingSegmentType,
17631
+ jc as AliRtcLiveTranscodingSingleParam,
17632
+ ni as AliRtcLiveTranscodingSourceType,
17633
+ xn as AliRtcLiveTranscodingState,
17634
+ pn as AliRtcLiveTranscodingStreamType,
17635
+ gn as AliRtcLiveTranscodingTaskProfile,
17636
+ Ya as AliRtcLocalStreamInfo,
17637
+ fn as AliRtcLogLevel,
17638
+ Gt as AliRtcPlugin,
17639
+ Ri as AliRtcPluginTrackType,
17640
+ P0 as AliRtcPluginType,
17629
17641
  Y as AliRtcPublishState,
17630
17642
  be as AliRtcRawDataStreamType,
17631
- hc as AliRtcRemoteUserInfo,
17643
+ lc as AliRtcRemoteUserInfo,
17632
17644
  bt as AliRtcSdkChannelProfile,
17633
17645
  Bt as AliRtcSdkClientRole,
17634
17646
  he as AliRtcSubscribeState,
17635
- Hc as AliRtcTranscodingClockWidget,
17636
- Cn as AliRtcTranscodingImage,
17637
- jc as AliRtcTranscodingText,
17638
- zc as AliRtcTranscodingUser,
17639
- mn as AliRtcTrascodingPublishTaskStatus,
17647
+ zc as AliRtcTranscodingClockWidget,
17648
+ In as AliRtcTranscodingImage,
17649
+ Wc as AliRtcTranscodingText,
17650
+ $c as AliRtcTranscodingUser,
17651
+ Sn as AliRtcTrascodingPublishTaskStatus,
17640
17652
  we as AliRtcVideoStreamType,
17641
17653
  se as AliRtcVideoTrack,
17642
- Xc as default
17654
+ Zc as default
17643
17655
  };