aliyun-rtc-sdk 6.13.1 → 6.13.2-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.
- package/dist/aliyun-rtc-sdk.es.js +525 -506
- package/dist/aliyun-rtc-sdk.umd.js +5 -5
- package/dist/types/index.d.ts +12 -5
- package/package.json +1 -1
|
@@ -48,13 +48,13 @@ var O = (s, c, e) => new Promise((t, i) => {
|
|
|
48
48
|
}, i = (n) => r[n] = (a) => new Promise((o, u) => t(n, a, o, u)), r = {};
|
|
49
49
|
return e = e.apply(s, c), r[Symbol.asyncIterator] = () => r, i("next"), i("throw"), i("return"), r;
|
|
50
50
|
};
|
|
51
|
-
import { AliRTS as
|
|
51
|
+
import { AliRTS as we, EConnectStatus as Ts, EDatachannelStatus as Bs } from "aliyun-rts-sdk";
|
|
52
52
|
import Ge from "eventemitter3";
|
|
53
|
-
var ho = Object.defineProperty, lo = (s, c, e) => c in s ? ho(s, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[c] = e, Jt = (s, c, e) => (lo(s, typeof c != "symbol" ? c + "" : c, e), e), $i = { exports: {} }, qi = { exports: {} }, Gi,
|
|
53
|
+
var ho = Object.defineProperty, lo = (s, c, e) => c in s ? ho(s, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[c] = e, Jt = (s, c, e) => (lo(s, typeof c != "symbol" ? c + "" : c, e), e), $i = { exports: {} }, qi = { exports: {} }, Gi, Ps;
|
|
54
54
|
function tt() {
|
|
55
|
-
if (
|
|
55
|
+
if (Ps)
|
|
56
56
|
return Gi;
|
|
57
|
-
|
|
57
|
+
Ps = 1, Date.now = Date.now || function() {
|
|
58
58
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
59
59
|
};
|
|
60
60
|
var s = Date.now(), c = function() {
|
|
@@ -1523,8 +1523,8 @@ function Eo() {
|
|
|
1523
1523
|
} catch (K) {
|
|
1524
1524
|
U = "";
|
|
1525
1525
|
}
|
|
1526
|
-
var
|
|
1527
|
-
if (d.getConfig("enableApiCors") ||
|
|
1526
|
+
var ie = e.checkSameOrigin(y, U);
|
|
1527
|
+
if (d.getConfig("enableApiCors") || ie)
|
|
1528
1528
|
if (f && typeof f != "string")
|
|
1529
1529
|
try {
|
|
1530
1530
|
if (p[0].headers && typeof p[0].headers.get == "function" && typeof p[0].headers.append == "function")
|
|
@@ -1545,8 +1545,8 @@ function Eo() {
|
|
|
1545
1545
|
break;
|
|
1546
1546
|
case "tracing":
|
|
1547
1547
|
default:
|
|
1548
|
-
var
|
|
1549
|
-
|
|
1548
|
+
var B = p[0].headers.get("uber-trace-id");
|
|
1549
|
+
B ? R = B.split(":")[0] : (B = d.getUberTraceId(E), p[0].headers.append("uber-trace-id", B["uber-trace-id"]), R = B.traceId), L = d.pageview;
|
|
1550
1550
|
}
|
|
1551
1551
|
} catch (K) {
|
|
1552
1552
|
e.warn(`[retcode] fetch failed to set header, exception is :
|
|
@@ -1593,14 +1593,14 @@ function Eo() {
|
|
|
1593
1593
|
typeof ve == "object" && ve["eagleeye-traceid"] && (R = ve["eagleeye-traceid"], N = "response");
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
|
-
var
|
|
1596
|
+
var Ce = v();
|
|
1597
1597
|
return Q.text().then(function(Ae) {
|
|
1598
1598
|
if (!R && e.isFunction(I)) {
|
|
1599
1599
|
var Fe = I(Q, Ae);
|
|
1600
1600
|
Fe && e.isString(Fe) && (R = Fe);
|
|
1601
1601
|
}
|
|
1602
|
-
var
|
|
1603
|
-
Q.ok ? r(d, b.parseResponse, x, y, Ae, Q.status || 200,
|
|
1602
|
+
var Ie = e.getFetchSnapshot(p, Ae, pe);
|
|
1603
|
+
Q.ok ? r(d, b.parseResponse, x, y, Ae, Q.status || 200, Ce, g, R, L, Ie, N, E) : (d.api(x, !1, Ce, Q.status || 404, Q.statusText, g, R, L, Ie, i, N, E), b.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1604
1604
|
src: Q.url,
|
|
1605
1605
|
res_type: "api"
|
|
1606
1606
|
}));
|
|
@@ -1627,13 +1627,13 @@ function Eo() {
|
|
|
1627
1627
|
var d = new f(p), g = t;
|
|
1628
1628
|
if (!g || !g.api || !d.addEventListener)
|
|
1629
1629
|
return d;
|
|
1630
|
-
var b, v, x, y, A = d.send, I = d.open, w = d.setRequestHeader, R = g._conf, L = (R.ignore || {}).ignoreApis, D = R.parseTraceId, N = g.getConfig("enableLinkTrace"), C = "", M = "", E = "", U = null,
|
|
1631
|
-
return
|
|
1630
|
+
var b, v, x, y, A = d.send, I = d.open, w = d.setRequestHeader, R = g._conf, L = (R.ignore || {}).ignoreApis, D = R.parseTraceId, N = g.getConfig("enableLinkTrace"), C = "", M = "", E = "", U = null, ie = g.getConfig("sample"), q = g.getConfig("linkType"), oe = 1;
|
|
1631
|
+
return ie && !g.sampling(ie) && (oe = 0), d.open = function($, se) {
|
|
1632
1632
|
m = $;
|
|
1633
1633
|
var T = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1634
1634
|
I.apply(d, T), y = se || "", x = e.cutUrlSearch(y);
|
|
1635
|
-
var
|
|
1636
|
-
if (x = x ? e.filterByRule(x, y, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !
|
|
1635
|
+
var B = !e.checkAPI(x, !0) || e.ignoreByRule(x, L);
|
|
1636
|
+
if (x = x ? e.filterByRule(x, y, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !B && N) {
|
|
1637
1637
|
var z = "";
|
|
1638
1638
|
try {
|
|
1639
1639
|
z = location.origin ? location.origin : location.protocol + "//" + location.hostname + (location.port ? ":" + location.port : "");
|
|
@@ -1668,8 +1668,8 @@ function Eo() {
|
|
|
1668
1668
|
typeof T == "object" && T["eagleeye-traceid"] && (C = T["eagleeye-traceid"], U = "response");
|
|
1669
1669
|
}
|
|
1670
1670
|
if (!C && e.isFunction(D)) {
|
|
1671
|
-
var
|
|
1672
|
-
|
|
1671
|
+
var B = D(d);
|
|
1672
|
+
B && e.isString(B) && (C = B);
|
|
1673
1673
|
}
|
|
1674
1674
|
if (d.status >= 200 && d.status <= 299) {
|
|
1675
1675
|
var z = d.status || 200;
|
|
@@ -2094,7 +2094,7 @@ function To(s, c, e) {
|
|
|
2094
2094
|
set: r.MediaboxWrapperObjectSetter
|
|
2095
2095
|
});
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function Bo(s, c, e) {
|
|
2098
2098
|
const t = {
|
|
2099
2099
|
MediaboxWrapperFunctionApply(i, r, n) {
|
|
2100
2100
|
let a;
|
|
@@ -2126,7 +2126,7 @@ function Po(s, c, e) {
|
|
|
2126
2126
|
});
|
|
2127
2127
|
}
|
|
2128
2128
|
const Vt = "-c-";
|
|
2129
|
-
function
|
|
2129
|
+
function Po(s) {
|
|
2130
2130
|
if (typeof s != "string")
|
|
2131
2131
|
return Vt;
|
|
2132
2132
|
if (cs(s))
|
|
@@ -2149,7 +2149,7 @@ function cs(s) {
|
|
|
2149
2149
|
return e < 0 ? c === s.length - Vt.length : c === e - Vt.length;
|
|
2150
2150
|
}
|
|
2151
2151
|
function bt(s, c, e) {
|
|
2152
|
-
return typeof s == "function" ?
|
|
2152
|
+
return typeof s == "function" ? Bo(s, c + 1, e) : s instanceof Promise ? s.then((t) => bt(t, c + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(s) ? s.map((t) => bt(t, c + 1, e)) : _a(s) && ya(s) ? To(s, c + 1, e) : s;
|
|
2153
2153
|
}
|
|
2154
2154
|
function Mo(s) {
|
|
2155
2155
|
return typeof s != "string" ? !1 : s.indexOf("g.alicdn.com/apsara-media-") > -1 || s.indexOf("g.alicdn.com/thor-server") > -1;
|
|
@@ -2212,7 +2212,7 @@ class us {
|
|
|
2212
2212
|
}
|
|
2213
2213
|
wrap(c) {
|
|
2214
2214
|
return this.options.disabled || typeof Proxy > "u" ? c : bt(c, 0, (e) => {
|
|
2215
|
-
e instanceof Error && typeof e.stack == "string" && on(e.stack) && (e.stack = Lo(e.stack), this.armsLogger.error(e), e.stack =
|
|
2215
|
+
e instanceof Error && typeof e.stack == "string" && on(e.stack) && (e.stack = Lo(e.stack), this.armsLogger.error(e), e.stack = Po(e.stack));
|
|
2216
2216
|
});
|
|
2217
2217
|
}
|
|
2218
2218
|
updateOptions(c) {
|
|
@@ -2238,7 +2238,7 @@ class us {
|
|
|
2238
2238
|
this.isDestroyed = !0;
|
|
2239
2239
|
}
|
|
2240
2240
|
}
|
|
2241
|
-
var
|
|
2241
|
+
var Re = /* @__PURE__ */ ((s) => (s.PullStreamStats = "remoteStat", s.RtsSubscribeExceeds = "rtsSubscribeExceeds", s.UserJoined = "userJoined", s.UserLeft = "userLeft", s.Bye = "bye", s.MuteAudio = "muteAudio", s.UnmuteAudio = "unmuteAudio", s.MuteVideo = "muteVideo", s.UnmuteVideo = "unmuteVideo", s.MuteScreen = "muteScreen", s.UnmuteScreen = "unmuteScreen", s.Error = "error", s))(Re || {}), et = /* @__PURE__ */ ((s) => (s.Local = "local-device-status-change", s.Remote = "remote-device-status-change", s))(et || {}), G = /* @__PURE__ */ ((s) => (s.Audio = "sophon_audio", s.VideoLarge = "sophon_video_camera_large", s.VideoSmall = "sophon_video_camera_small", s.Screen = "sophon_video_screen_share", s.Data = "sophon_data", s))(G || {}), hs = /* @__PURE__ */ ((s) => (s.Audio = "rts audio", s.VideoLarge = "rts video", s))(hs || {}), Nt = /* @__PURE__ */ ((s) => (s.Add = "add", s.Delete = "delete", s.Replace = "replace", s.Stop = "stop", s.UnPublish = "unpublish", s))(Nt || {}), ii = /* @__PURE__ */ ((s) => (s[s.Camera = 0] = "Camera", s[s.Screen = 1] = "Screen", s[s.Image = 2] = "Image", s))(ii || {}), Ii = /* @__PURE__ */ ((s) => (s[s.Microphone = 0] = "Microphone", s[s.Screen = 1] = "Screen", s[s.Mixed = 2] = "Mixed", s))(Ii || {}), Te = /* @__PURE__ */ ((s) => (s.InRoom = "inRoom", s.Join = "join", s.Publish = "publish", s.User = "user", s.Resume = "resume", s.Retry = "retry", s.Reconnect = "reconnect", s))(Te || {}), kt = /* @__PURE__ */ ((s) => (s[s.MANUAL = 0] = "MANUAL", s[s.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", s[s.ROLE_CHANGE = 2] = "ROLE_CHANGE", s))(kt || {}), $e = [];
|
|
2242
2242
|
for (var ar = 0; ar < 256; ++ar)
|
|
2243
2243
|
$e.push((ar + 256).toString(16).slice(1));
|
|
2244
2244
|
function No(s, c = 0) {
|
|
@@ -2268,7 +2268,7 @@ function jt(s, c, e) {
|
|
|
2268
2268
|
return No(t);
|
|
2269
2269
|
}
|
|
2270
2270
|
var Ri = /* @__PURE__ */ ((s) => (s.prod = "rs.rtn.aliyuncs.com", s.pre = "prs.rtn.aliyuncs.com", s))(Ri || {});
|
|
2271
|
-
const ds = "6.13.1", hn = "web";
|
|
2271
|
+
const ds = "6.13.2-beta.1", hn = "web";
|
|
2272
2272
|
class ft {
|
|
2273
2273
|
/**
|
|
2274
2274
|
* 将版本号转换为number
|
|
@@ -2510,20 +2510,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2510
2510
|
return g;
|
|
2511
2511
|
}
|
|
2512
2512
|
function n(l, p, d, g, b, v) {
|
|
2513
|
-
var x, y, A = l.file, I = l.compression, w = v !== u.utf8encode, R = a.transformTo("string", v(A.name)), L = a.transformTo("string", u.utf8encode(A.name)), D = A.comment, N = a.transformTo("string", v(D)), C = a.transformTo("string", u.utf8encode(D)), M = L.length !== A.name.length, E = C.length !== D.length, U = "",
|
|
2513
|
+
var x, y, A = l.file, I = l.compression, w = v !== u.utf8encode, R = a.transformTo("string", v(A.name)), L = a.transformTo("string", u.utf8encode(A.name)), D = A.comment, N = a.transformTo("string", v(D)), C = a.transformTo("string", u.utf8encode(D)), M = L.length !== A.name.length, E = C.length !== D.length, U = "", ie = "", q = "", oe = A.dir, $ = A.date, se = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
2514
2514
|
p && !d || (se.crc32 = l.crc32, se.compressedSize = l.compressedSize, se.uncompressedSize = l.uncompressedSize);
|
|
2515
2515
|
var T = 0;
|
|
2516
2516
|
p && (T |= 8), w || !M && !E || (T |= 2048);
|
|
2517
|
-
var
|
|
2518
|
-
oe && (
|
|
2517
|
+
var B = 0, z = 0;
|
|
2518
|
+
oe && (B |= 16), b === "UNIX" ? (z = 798, B |= function(K, Q) {
|
|
2519
2519
|
var pe = K;
|
|
2520
2520
|
return K || (pe = Q ? 16893 : 33204), (65535 & pe) << 16;
|
|
2521
|
-
}(A.unixPermissions, oe)) : (z = 20,
|
|
2521
|
+
}(A.unixPermissions, oe)) : (z = 20, B |= function(K) {
|
|
2522
2522
|
return 63 & (K || 0);
|
|
2523
|
-
}(A.dosPermissions)), x = $.getUTCHours(), x <<= 6, x |= $.getUTCMinutes(), x <<= 5, x |= $.getUTCSeconds() / 2, y = $.getUTCFullYear() - 1980, y <<= 4, y |= $.getUTCMonth() + 1, y <<= 5, y |= $.getUTCDate(), M && (
|
|
2523
|
+
}(A.dosPermissions)), x = $.getUTCHours(), x <<= 6, x |= $.getUTCMinutes(), x <<= 5, x |= $.getUTCSeconds() / 2, y = $.getUTCFullYear() - 1980, y <<= 4, y |= $.getUTCMonth() + 1, y <<= 5, y |= $.getUTCDate(), M && (ie = r(1, 1) + r(h(R), 4) + L, U += "up" + r(ie.length, 2) + ie), E && (q = r(1, 1) + r(h(N), 4) + C, U += "uc" + r(q.length, 2) + q);
|
|
2524
2524
|
var F = "";
|
|
2525
2525
|
return F += `
|
|
2526
|
-
\0`, F += r(T, 2), F += I.magic, F += r(x, 2), F += r(y, 2), F += r(se.crc32, 4), F += r(se.compressedSize, 4), F += r(se.uncompressedSize, 4), F += r(R.length, 2), F += r(U.length, 2), { fileRecord: m.LOCAL_FILE_HEADER + F + R + U, dirRecord: m.CENTRAL_FILE_HEADER + r(z, 2) + F + r(N.length, 2) + "\0\0\0\0" + r(
|
|
2526
|
+
\0`, F += r(T, 2), F += I.magic, F += r(x, 2), F += r(y, 2), F += r(se.crc32, 4), F += r(se.compressedSize, 4), F += r(se.uncompressedSize, 4), F += r(R.length, 2), F += r(U.length, 2), { fileRecord: m.LOCAL_FILE_HEADER + F + R + U, dirRecord: m.CENTRAL_FILE_HEADER + r(z, 2) + F + r(N.length, 2) + "\0\0\0\0" + r(B, 4) + r(g, 4) + R + U + N };
|
|
2527
2527
|
}
|
|
2528
2528
|
var a = e("../utils"), o = e("../stream/GenericWorker"), u = e("../utf8"), h = e("../crc32"), m = e("../signature");
|
|
2529
2529
|
function f(l, p, d, g) {
|
|
@@ -3885,7 +3885,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3885
3885
|
return -1 ^ n;
|
|
3886
3886
|
};
|
|
3887
3887
|
}, {}], 46: [function(e, t, i) {
|
|
3888
|
-
var r, n = e("../utils/common"), a = e("./trees"), o = e("./adler32"), u = e("./crc32"), h = e("./messages"), m = 0, f = 4, l = 0, p = -2, d = -1, g = 4, b = 2, v = 8, x = 9, y = 286, A = 30, I = 19, w = 2 * y + 1, R = 15, L = 3, D = 258, N = D + L + 1, C = 42, M = 113, E = 1, U = 2,
|
|
3888
|
+
var r, n = e("../utils/common"), a = e("./trees"), o = e("./adler32"), u = e("./crc32"), h = e("./messages"), m = 0, f = 4, l = 0, p = -2, d = -1, g = 4, b = 2, v = 8, x = 9, y = 286, A = 30, I = 19, w = 2 * y + 1, R = 15, L = 3, D = 258, N = D + L + 1, C = 42, M = 113, E = 1, U = 2, ie = 3, q = 4;
|
|
3889
3889
|
function oe(S, J) {
|
|
3890
3890
|
return S.msg = h[J], J;
|
|
3891
3891
|
}
|
|
@@ -3900,7 +3900,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3900
3900
|
var J = S.state, W = J.pending;
|
|
3901
3901
|
W > S.avail_out && (W = S.avail_out), W !== 0 && (n.arraySet(S.output, J.pending_buf, J.pending_out, W, S.next_out), S.next_out += W, J.pending_out += W, S.total_out += W, S.avail_out -= W, J.pending -= W, J.pending === 0 && (J.pending_out = 0));
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function B(S, J) {
|
|
3904
3904
|
a._tr_flush_block(S, 0 <= S.block_start ? S.block_start : -1, S.strstart - S.block_start, J), S.block_start = S.strstart, T(S.strm);
|
|
3905
3905
|
}
|
|
3906
3906
|
function z(S, J) {
|
|
@@ -3910,7 +3910,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3910
3910
|
S.pending_buf[S.pending++] = J >>> 8 & 255, S.pending_buf[S.pending++] = 255 & J;
|
|
3911
3911
|
}
|
|
3912
3912
|
function K(S, J) {
|
|
3913
|
-
var W,
|
|
3913
|
+
var W, P, k = S.max_chain_length, V = S.strstart, Z = S.prev_length, X = S.nice_match, H = S.strstart > S.w_size - N ? S.strstart - (S.w_size - N) : 0, ee = S.window, he = S.w_mask, re = S.prev, fe = S.strstart + D, _e = ee[V + Z - 1], xe = ee[V + Z];
|
|
3914
3914
|
S.prev_length >= S.good_match && (k >>= 2), X > S.lookahead && (X = S.lookahead);
|
|
3915
3915
|
do
|
|
3916
3916
|
if (ee[(W = J) + Z] === xe && ee[W + Z - 1] === _e && ee[W] === ee[V] && ee[++W] === ee[V + 1]) {
|
|
@@ -3918,24 +3918,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3918
3918
|
do
|
|
3919
3919
|
;
|
|
3920
3920
|
while (ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && V < fe);
|
|
3921
|
-
if (
|
|
3922
|
-
if (S.match_start = J, X <= (Z =
|
|
3921
|
+
if (P = D - (fe - V), V = fe - D, Z < P) {
|
|
3922
|
+
if (S.match_start = J, X <= (Z = P))
|
|
3923
3923
|
break;
|
|
3924
3924
|
_e = ee[V + Z - 1], xe = ee[V + Z];
|
|
3925
3925
|
}
|
|
3926
3926
|
}
|
|
3927
|
-
while ((J =
|
|
3927
|
+
while ((J = re[J & he]) > H && --k != 0);
|
|
3928
3928
|
return Z <= S.lookahead ? Z : S.lookahead;
|
|
3929
3929
|
}
|
|
3930
3930
|
function Q(S) {
|
|
3931
|
-
var J, W,
|
|
3931
|
+
var J, W, P, k, V, Z, X, H, ee, he, re = S.w_size;
|
|
3932
3932
|
do {
|
|
3933
|
-
if (k = S.window_size - S.lookahead - S.strstart, S.strstart >=
|
|
3934
|
-
for (n.arraySet(S.window, S.window,
|
|
3933
|
+
if (k = S.window_size - S.lookahead - S.strstart, S.strstart >= re + (re - N)) {
|
|
3934
|
+
for (n.arraySet(S.window, S.window, re, re, 0), S.match_start -= re, S.strstart -= re, S.block_start -= re, J = W = S.hash_size; P = S.head[--J], S.head[J] = re <= P ? P - re : 0, --W; )
|
|
3935
3935
|
;
|
|
3936
|
-
for (J = W =
|
|
3936
|
+
for (J = W = re; P = S.prev[--J], S.prev[J] = re <= P ? P - re : 0, --W; )
|
|
3937
3937
|
;
|
|
3938
|
-
k +=
|
|
3938
|
+
k += re;
|
|
3939
3939
|
}
|
|
3940
3940
|
if (S.strm.avail_in === 0)
|
|
3941
3941
|
break;
|
|
@@ -3945,7 +3945,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3945
3945
|
} while (S.lookahead < N && S.strm.avail_in !== 0);
|
|
3946
3946
|
}
|
|
3947
3947
|
function pe(S, J) {
|
|
3948
|
-
for (var W,
|
|
3948
|
+
for (var W, P; ; ) {
|
|
3949
3949
|
if (S.lookahead < N) {
|
|
3950
3950
|
if (Q(S), S.lookahead < N && J === m)
|
|
3951
3951
|
return E;
|
|
@@ -3953,21 +3953,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3953
3953
|
break;
|
|
3954
3954
|
}
|
|
3955
3955
|
if (W = 0, S.lookahead >= L && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + L - 1]) & S.hash_mask, W = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), W !== 0 && S.strstart - W <= S.w_size - N && (S.match_length = K(S, W)), S.match_length >= L)
|
|
3956
|
-
if (
|
|
3956
|
+
if (P = a._tr_tally(S, S.strstart - S.match_start, S.match_length - L), S.lookahead -= S.match_length, S.match_length <= S.max_lazy_match && S.lookahead >= L) {
|
|
3957
3957
|
for (S.match_length--; S.strstart++, S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + L - 1]) & S.hash_mask, W = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart, --S.match_length != 0; )
|
|
3958
3958
|
;
|
|
3959
3959
|
S.strstart++;
|
|
3960
3960
|
} else
|
|
3961
3961
|
S.strstart += S.match_length, S.match_length = 0, S.ins_h = S.window[S.strstart], S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + 1]) & S.hash_mask;
|
|
3962
3962
|
else
|
|
3963
|
-
|
|
3964
|
-
if (
|
|
3963
|
+
P = a._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++;
|
|
3964
|
+
if (P && (B(S, !1), S.strm.avail_out === 0))
|
|
3965
3965
|
return E;
|
|
3966
3966
|
}
|
|
3967
|
-
return S.insert = S.strstart < L - 1 ? S.strstart : L - 1, J === f ? (
|
|
3967
|
+
return S.insert = S.strstart < L - 1 ? S.strstart : L - 1, J === f ? (B(S, !0), S.strm.avail_out === 0 ? ie : q) : S.last_lit && (B(S, !1), S.strm.avail_out === 0) ? E : U;
|
|
3968
3968
|
}
|
|
3969
3969
|
function ce(S, J) {
|
|
3970
|
-
for (var W,
|
|
3970
|
+
for (var W, P, k; ; ) {
|
|
3971
3971
|
if (S.lookahead < N) {
|
|
3972
3972
|
if (Q(S), S.lookahead < N && J === m)
|
|
3973
3973
|
return E;
|
|
@@ -3975,22 +3975,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3975
3975
|
break;
|
|
3976
3976
|
}
|
|
3977
3977
|
if (W = 0, S.lookahead >= L && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + L - 1]) & S.hash_mask, W = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), S.prev_length = S.match_length, S.prev_match = S.match_start, S.match_length = L - 1, W !== 0 && S.prev_length < S.max_lazy_match && S.strstart - W <= S.w_size - N && (S.match_length = K(S, W), S.match_length <= 5 && (S.strategy === 1 || S.match_length === L && 4096 < S.strstart - S.match_start) && (S.match_length = L - 1)), S.prev_length >= L && S.match_length <= S.prev_length) {
|
|
3978
|
-
for (k = S.strstart + S.lookahead - L,
|
|
3978
|
+
for (k = S.strstart + S.lookahead - L, P = a._tr_tally(S, S.strstart - 1 - S.prev_match, S.prev_length - L), S.lookahead -= S.prev_length - 1, S.prev_length -= 2; ++S.strstart <= k && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + L - 1]) & S.hash_mask, W = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), --S.prev_length != 0; )
|
|
3979
3979
|
;
|
|
3980
|
-
if (S.match_available = 0, S.match_length = L - 1, S.strstart++,
|
|
3980
|
+
if (S.match_available = 0, S.match_length = L - 1, S.strstart++, P && (B(S, !1), S.strm.avail_out === 0))
|
|
3981
3981
|
return E;
|
|
3982
3982
|
} else if (S.match_available) {
|
|
3983
|
-
if ((
|
|
3983
|
+
if ((P = a._tr_tally(S, 0, S.window[S.strstart - 1])) && B(S, !1), S.strstart++, S.lookahead--, S.strm.avail_out === 0)
|
|
3984
3984
|
return E;
|
|
3985
3985
|
} else
|
|
3986
3986
|
S.match_available = 1, S.strstart++, S.lookahead--;
|
|
3987
3987
|
}
|
|
3988
|
-
return S.match_available && (
|
|
3988
|
+
return S.match_available && (P = a._tr_tally(S, 0, S.window[S.strstart - 1]), S.match_available = 0), S.insert = S.strstart < L - 1 ? S.strstart : L - 1, J === f ? (B(S, !0), S.strm.avail_out === 0 ? ie : q) : S.last_lit && (B(S, !1), S.strm.avail_out === 0) ? E : U;
|
|
3989
3989
|
}
|
|
3990
|
-
function ve(S, J, W,
|
|
3991
|
-
this.good_length = S, this.max_lazy = J, this.nice_length = W, this.max_chain =
|
|
3990
|
+
function ve(S, J, W, P, k) {
|
|
3991
|
+
this.good_length = S, this.max_lazy = J, this.nice_length = W, this.max_chain = P, this.func = k;
|
|
3992
3992
|
}
|
|
3993
|
-
function
|
|
3993
|
+
function Ce() {
|
|
3994
3994
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = v, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new n.Buf16(2 * w), this.dyn_dtree = new n.Buf16(2 * (2 * A + 1)), this.bl_tree = new n.Buf16(2 * (2 * I + 1)), se(this.dyn_ltree), se(this.dyn_dtree), se(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new n.Buf16(R + 1), this.heap = new n.Buf16(2 * y + 1), se(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new n.Buf16(2 * y + 1), se(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
3995
3995
|
}
|
|
3996
3996
|
function Ae(S) {
|
|
@@ -4003,15 +4003,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4003
4003
|
W.window_size = 2 * W.w_size, se(W.head), W.max_lazy_match = r[W.level].max_lazy, W.good_match = r[W.level].good_length, W.nice_match = r[W.level].nice_length, W.max_chain_length = r[W.level].max_chain, W.strstart = 0, W.block_start = 0, W.lookahead = 0, W.insert = 0, W.match_length = W.prev_length = L - 1, W.match_available = 0, W.ins_h = 0;
|
|
4004
4004
|
}(S.state), J;
|
|
4005
4005
|
}
|
|
4006
|
-
function
|
|
4006
|
+
function Ie(S, J, W, P, k, V) {
|
|
4007
4007
|
if (!S)
|
|
4008
4008
|
return p;
|
|
4009
4009
|
var Z = 1;
|
|
4010
|
-
if (J === d && (J = 6),
|
|
4010
|
+
if (J === d && (J = 6), P < 0 ? (Z = 0, P = -P) : 15 < P && (Z = 2, P -= 16), k < 1 || x < k || W !== v || P < 8 || 15 < P || J < 0 || 9 < J || V < 0 || g < V)
|
|
4011
4011
|
return oe(S, p);
|
|
4012
|
-
|
|
4013
|
-
var X = new
|
|
4014
|
-
return (S.state = X).strm = S, X.wrap = Z, X.gzhead = null, X.w_bits =
|
|
4012
|
+
P === 8 && (P = 9);
|
|
4013
|
+
var X = new Ce();
|
|
4014
|
+
return (S.state = X).strm = S, X.wrap = Z, X.gzhead = null, X.w_bits = P, X.w_size = 1 << X.w_bits, X.w_mask = X.w_size - 1, X.hash_bits = k + 7, X.hash_size = 1 << X.hash_bits, X.hash_mask = X.hash_size - 1, X.hash_shift = ~~((X.hash_bits + L - 1) / L), X.window = new n.Buf8(2 * X.w_size), X.head = new n.Buf16(X.hash_size), X.prev = new n.Buf16(X.w_size), X.lit_bufsize = 1 << k + 6, X.pending_buf_size = 4 * X.lit_bufsize, X.pending_buf = new n.Buf8(X.pending_buf_size), X.d_buf = 1 * X.lit_bufsize, X.l_buf = 3 * X.lit_bufsize, X.level = J, X.strategy = V, X.method = W, Fe(S);
|
|
4015
4015
|
}
|
|
4016
4016
|
r = [new ve(0, 0, 0, 0, function(S, J) {
|
|
4017
4017
|
var W = 65535;
|
|
@@ -4023,117 +4023,117 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4023
4023
|
break;
|
|
4024
4024
|
}
|
|
4025
4025
|
S.strstart += S.lookahead, S.lookahead = 0;
|
|
4026
|
-
var
|
|
4027
|
-
if ((S.strstart === 0 || S.strstart >=
|
|
4026
|
+
var P = S.block_start + W;
|
|
4027
|
+
if ((S.strstart === 0 || S.strstart >= P) && (S.lookahead = S.strstart - P, S.strstart = P, B(S, !1), S.strm.avail_out === 0) || S.strstart - S.block_start >= S.w_size - N && (B(S, !1), S.strm.avail_out === 0))
|
|
4028
4028
|
return E;
|
|
4029
4029
|
}
|
|
4030
|
-
return S.insert = 0, J === f ? (
|
|
4030
|
+
return S.insert = 0, J === f ? (B(S, !0), S.strm.avail_out === 0 ? ie : q) : (S.strstart > S.block_start && (B(S, !1), S.strm.avail_out), E);
|
|
4031
4031
|
}), new ve(4, 4, 8, 4, pe), new ve(4, 5, 16, 8, pe), new ve(4, 6, 32, 32, pe), new ve(4, 4, 16, 16, ce), new ve(8, 16, 32, 32, ce), new ve(8, 16, 128, 128, ce), new ve(8, 32, 128, 256, ce), new ve(32, 128, 258, 1024, ce), new ve(32, 258, 258, 4096, ce)], i.deflateInit = function(S, J) {
|
|
4032
|
-
return
|
|
4033
|
-
}, i.deflateInit2 =
|
|
4032
|
+
return Ie(S, J, v, 15, 8, 0);
|
|
4033
|
+
}, i.deflateInit2 = Ie, i.deflateReset = Fe, i.deflateResetKeep = Ae, i.deflateSetHeader = function(S, J) {
|
|
4034
4034
|
return S && S.state ? S.state.wrap !== 2 ? p : (S.state.gzhead = J, l) : p;
|
|
4035
4035
|
}, i.deflate = function(S, J) {
|
|
4036
|
-
var W,
|
|
4036
|
+
var W, P, k, V;
|
|
4037
4037
|
if (!S || !S.state || 5 < J || J < 0)
|
|
4038
4038
|
return S ? oe(S, p) : p;
|
|
4039
|
-
if (
|
|
4039
|
+
if (P = S.state, !S.output || !S.input && S.avail_in !== 0 || P.status === 666 && J !== f)
|
|
4040
4040
|
return oe(S, S.avail_out === 0 ? -5 : p);
|
|
4041
|
-
if (
|
|
4042
|
-
if (
|
|
4043
|
-
S.adler = 0, z(
|
|
4041
|
+
if (P.strm = S, W = P.last_flush, P.last_flush = J, P.status === C)
|
|
4042
|
+
if (P.wrap === 2)
|
|
4043
|
+
S.adler = 0, z(P, 31), z(P, 139), z(P, 8), P.gzhead ? (z(P, (P.gzhead.text ? 1 : 0) + (P.gzhead.hcrc ? 2 : 0) + (P.gzhead.extra ? 4 : 0) + (P.gzhead.name ? 8 : 0) + (P.gzhead.comment ? 16 : 0)), z(P, 255 & P.gzhead.time), z(P, P.gzhead.time >> 8 & 255), z(P, P.gzhead.time >> 16 & 255), z(P, P.gzhead.time >> 24 & 255), z(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), z(P, 255 & P.gzhead.os), P.gzhead.extra && P.gzhead.extra.length && (z(P, 255 & P.gzhead.extra.length), z(P, P.gzhead.extra.length >> 8 & 255)), P.gzhead.hcrc && (S.adler = u(S.adler, P.pending_buf, P.pending, 0)), P.gzindex = 0, P.status = 69) : (z(P, 0), z(P, 0), z(P, 0), z(P, 0), z(P, 0), z(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), z(P, 3), P.status = M);
|
|
4044
4044
|
else {
|
|
4045
|
-
var Z = v + (
|
|
4046
|
-
Z |= (2 <=
|
|
4045
|
+
var Z = v + (P.w_bits - 8 << 4) << 8;
|
|
4046
|
+
Z |= (2 <= P.strategy || P.level < 2 ? 0 : P.level < 6 ? 1 : P.level === 6 ? 2 : 3) << 6, P.strstart !== 0 && (Z |= 32), Z += 31 - Z % 31, P.status = M, F(P, Z), P.strstart !== 0 && (F(P, S.adler >>> 16), F(P, 65535 & S.adler)), S.adler = 1;
|
|
4047
4047
|
}
|
|
4048
|
-
if (
|
|
4049
|
-
if (
|
|
4050
|
-
for (k =
|
|
4051
|
-
z(
|
|
4052
|
-
|
|
4048
|
+
if (P.status === 69)
|
|
4049
|
+
if (P.gzhead.extra) {
|
|
4050
|
+
for (k = P.pending; P.gzindex < (65535 & P.gzhead.extra.length) && (P.pending !== P.pending_buf_size || (P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), T(S), k = P.pending, P.pending !== P.pending_buf_size)); )
|
|
4051
|
+
z(P, 255 & P.gzhead.extra[P.gzindex]), P.gzindex++;
|
|
4052
|
+
P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), P.gzindex === P.gzhead.extra.length && (P.gzindex = 0, P.status = 73);
|
|
4053
4053
|
} else
|
|
4054
|
-
|
|
4055
|
-
if (
|
|
4056
|
-
if (
|
|
4057
|
-
k =
|
|
4054
|
+
P.status = 73;
|
|
4055
|
+
if (P.status === 73)
|
|
4056
|
+
if (P.gzhead.name) {
|
|
4057
|
+
k = P.pending;
|
|
4058
4058
|
do {
|
|
4059
|
-
if (
|
|
4059
|
+
if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), T(S), k = P.pending, P.pending === P.pending_buf_size)) {
|
|
4060
4060
|
V = 1;
|
|
4061
4061
|
break;
|
|
4062
4062
|
}
|
|
4063
|
-
V =
|
|
4063
|
+
V = P.gzindex < P.gzhead.name.length ? 255 & P.gzhead.name.charCodeAt(P.gzindex++) : 0, z(P, V);
|
|
4064
4064
|
} while (V !== 0);
|
|
4065
|
-
|
|
4065
|
+
P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), V === 0 && (P.gzindex = 0, P.status = 91);
|
|
4066
4066
|
} else
|
|
4067
|
-
|
|
4068
|
-
if (
|
|
4069
|
-
if (
|
|
4070
|
-
k =
|
|
4067
|
+
P.status = 91;
|
|
4068
|
+
if (P.status === 91)
|
|
4069
|
+
if (P.gzhead.comment) {
|
|
4070
|
+
k = P.pending;
|
|
4071
4071
|
do {
|
|
4072
|
-
if (
|
|
4072
|
+
if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), T(S), k = P.pending, P.pending === P.pending_buf_size)) {
|
|
4073
4073
|
V = 1;
|
|
4074
4074
|
break;
|
|
4075
4075
|
}
|
|
4076
|
-
V =
|
|
4076
|
+
V = P.gzindex < P.gzhead.comment.length ? 255 & P.gzhead.comment.charCodeAt(P.gzindex++) : 0, z(P, V);
|
|
4077
4077
|
} while (V !== 0);
|
|
4078
|
-
|
|
4078
|
+
P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), V === 0 && (P.status = 103);
|
|
4079
4079
|
} else
|
|
4080
|
-
|
|
4081
|
-
if (
|
|
4080
|
+
P.status = 103;
|
|
4081
|
+
if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size && T(S), P.pending + 2 <= P.pending_buf_size && (z(P, 255 & S.adler), z(P, S.adler >> 8 & 255), S.adler = 0, P.status = M)) : P.status = M), P.pending !== 0) {
|
|
4082
4082
|
if (T(S), S.avail_out === 0)
|
|
4083
|
-
return
|
|
4083
|
+
return P.last_flush = -1, l;
|
|
4084
4084
|
} else if (S.avail_in === 0 && $(J) <= $(W) && J !== f)
|
|
4085
4085
|
return oe(S, -5);
|
|
4086
|
-
if (
|
|
4086
|
+
if (P.status === 666 && S.avail_in !== 0)
|
|
4087
4087
|
return oe(S, -5);
|
|
4088
|
-
if (S.avail_in !== 0 ||
|
|
4089
|
-
var X =
|
|
4088
|
+
if (S.avail_in !== 0 || P.lookahead !== 0 || J !== m && P.status !== 666) {
|
|
4089
|
+
var X = P.strategy === 2 ? function(H, ee) {
|
|
4090
4090
|
for (var he; ; ) {
|
|
4091
4091
|
if (H.lookahead === 0 && (Q(H), H.lookahead === 0)) {
|
|
4092
4092
|
if (ee === m)
|
|
4093
4093
|
return E;
|
|
4094
4094
|
break;
|
|
4095
4095
|
}
|
|
4096
|
-
if (H.match_length = 0, he = a._tr_tally(H, 0, H.window[H.strstart]), H.lookahead--, H.strstart++, he && (
|
|
4096
|
+
if (H.match_length = 0, he = a._tr_tally(H, 0, H.window[H.strstart]), H.lookahead--, H.strstart++, he && (B(H, !1), H.strm.avail_out === 0))
|
|
4097
4097
|
return E;
|
|
4098
4098
|
}
|
|
4099
|
-
return H.insert = 0, ee === f ? (
|
|
4100
|
-
}(
|
|
4101
|
-
for (var he,
|
|
4099
|
+
return H.insert = 0, ee === f ? (B(H, !0), H.strm.avail_out === 0 ? ie : q) : H.last_lit && (B(H, !1), H.strm.avail_out === 0) ? E : U;
|
|
4100
|
+
}(P, J) : P.strategy === 3 ? function(H, ee) {
|
|
4101
|
+
for (var he, re, fe, _e, xe = H.window; ; ) {
|
|
4102
4102
|
if (H.lookahead <= D) {
|
|
4103
4103
|
if (Q(H), H.lookahead <= D && ee === m)
|
|
4104
4104
|
return E;
|
|
4105
4105
|
if (H.lookahead === 0)
|
|
4106
4106
|
break;
|
|
4107
4107
|
}
|
|
4108
|
-
if (H.match_length = 0, H.lookahead >= L && 0 < H.strstart && (
|
|
4108
|
+
if (H.match_length = 0, H.lookahead >= L && 0 < H.strstart && (re = xe[fe = H.strstart - 1]) === xe[++fe] && re === xe[++fe] && re === xe[++fe]) {
|
|
4109
4109
|
_e = H.strstart + D;
|
|
4110
4110
|
do
|
|
4111
4111
|
;
|
|
4112
|
-
while (
|
|
4112
|
+
while (re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && fe < _e);
|
|
4113
4113
|
H.match_length = D - (_e - fe), H.match_length > H.lookahead && (H.match_length = H.lookahead);
|
|
4114
4114
|
}
|
|
4115
|
-
if (H.match_length >= L ? (he = a._tr_tally(H, 1, H.match_length - L), H.lookahead -= H.match_length, H.strstart += H.match_length, H.match_length = 0) : (he = a._tr_tally(H, 0, H.window[H.strstart]), H.lookahead--, H.strstart++), he && (
|
|
4115
|
+
if (H.match_length >= L ? (he = a._tr_tally(H, 1, H.match_length - L), H.lookahead -= H.match_length, H.strstart += H.match_length, H.match_length = 0) : (he = a._tr_tally(H, 0, H.window[H.strstart]), H.lookahead--, H.strstart++), he && (B(H, !1), H.strm.avail_out === 0))
|
|
4116
4116
|
return E;
|
|
4117
4117
|
}
|
|
4118
|
-
return H.insert = 0, ee === f ? (
|
|
4119
|
-
}(
|
|
4120
|
-
if (X !==
|
|
4121
|
-
return S.avail_out === 0 && (
|
|
4122
|
-
if (X === U && (J === 1 ? a._tr_align(
|
|
4123
|
-
return
|
|
4118
|
+
return H.insert = 0, ee === f ? (B(H, !0), H.strm.avail_out === 0 ? ie : q) : H.last_lit && (B(H, !1), H.strm.avail_out === 0) ? E : U;
|
|
4119
|
+
}(P, J) : r[P.level].func(P, J);
|
|
4120
|
+
if (X !== ie && X !== q || (P.status = 666), X === E || X === ie)
|
|
4121
|
+
return S.avail_out === 0 && (P.last_flush = -1), l;
|
|
4122
|
+
if (X === U && (J === 1 ? a._tr_align(P) : J !== 5 && (a._tr_stored_block(P, 0, 0, !1), J === 3 && (se(P.head), P.lookahead === 0 && (P.strstart = 0, P.block_start = 0, P.insert = 0))), T(S), S.avail_out === 0))
|
|
4123
|
+
return P.last_flush = -1, l;
|
|
4124
4124
|
}
|
|
4125
|
-
return J !== f ? l :
|
|
4125
|
+
return J !== f ? l : P.wrap <= 0 ? 1 : (P.wrap === 2 ? (z(P, 255 & S.adler), z(P, S.adler >> 8 & 255), z(P, S.adler >> 16 & 255), z(P, S.adler >> 24 & 255), z(P, 255 & S.total_in), z(P, S.total_in >> 8 & 255), z(P, S.total_in >> 16 & 255), z(P, S.total_in >> 24 & 255)) : (F(P, S.adler >>> 16), F(P, 65535 & S.adler)), T(S), 0 < P.wrap && (P.wrap = -P.wrap), P.pending !== 0 ? l : 1);
|
|
4126
4126
|
}, i.deflateEnd = function(S) {
|
|
4127
4127
|
var J;
|
|
4128
4128
|
return S && S.state ? (J = S.state.status) !== C && J !== 69 && J !== 73 && J !== 91 && J !== 103 && J !== M && J !== 666 ? oe(S, p) : (S.state = null, J === M ? oe(S, -3) : l) : p;
|
|
4129
4129
|
}, i.deflateSetDictionary = function(S, J) {
|
|
4130
|
-
var W,
|
|
4130
|
+
var W, P, k, V, Z, X, H, ee, he = J.length;
|
|
4131
4131
|
if (!S || !S.state || (V = (W = S.state).wrap) === 2 || V === 1 && W.status !== C || W.lookahead)
|
|
4132
4132
|
return p;
|
|
4133
4133
|
for (V === 1 && (S.adler = o(S.adler, J, he, 0)), W.wrap = 0, he >= W.w_size && (V === 0 && (se(W.head), W.strstart = 0, W.block_start = 0, W.insert = 0), ee = new n.Buf8(W.w_size), n.arraySet(ee, J, he - W.w_size, W.w_size, 0), J = ee, he = W.w_size), Z = S.avail_in, X = S.next_in, H = S.input, S.avail_in = he, S.next_in = 0, S.input = J, Q(W); W.lookahead >= L; ) {
|
|
4134
|
-
for (
|
|
4134
|
+
for (P = W.strstart, k = W.lookahead - (L - 1); W.ins_h = (W.ins_h << W.hash_shift ^ W.window[P + L - 1]) & W.hash_mask, W.prev[P & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = P, P++, --k; )
|
|
4135
4135
|
;
|
|
4136
|
-
W.strstart =
|
|
4136
|
+
W.strstart = P, W.lookahead = L - 1, Q(W);
|
|
4137
4137
|
}
|
|
4138
4138
|
return W.strstart += W.lookahead, W.block_start = W.strstart, W.insert = W.lookahead, W.lookahead = 0, W.match_length = W.prev_length = L - 1, W.match_available = 0, S.next_in = X, S.input = H, S.avail_in = Z, W.wrap = V, l;
|
|
4139
4139
|
}, i.deflateInfo = "pako deflate (from Nodeca project)";
|
|
@@ -4265,16 +4265,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4265
4265
|
C.lencode = w, C.lenbits = 9, C.distcode = R, C.distbits = 5;
|
|
4266
4266
|
}
|
|
4267
4267
|
function N(C, M, E, U) {
|
|
4268
|
-
var
|
|
4269
|
-
return q.window === null && (q.wsize = 1 << q.wbits, q.wnext = 0, q.whave = 0, q.window = new r.Buf8(q.wsize)), U >= q.wsize ? (r.arraySet(q.window, M, E - q.wsize, q.wsize, 0), q.wnext = 0, q.whave = q.wsize) : (U < (
|
|
4268
|
+
var ie, q = C.state;
|
|
4269
|
+
return q.window === null && (q.wsize = 1 << q.wbits, q.wnext = 0, q.whave = 0, q.window = new r.Buf8(q.wsize)), U >= q.wsize ? (r.arraySet(q.window, M, E - q.wsize, q.wsize, 0), q.wnext = 0, q.whave = q.wsize) : (U < (ie = q.wsize - q.wnext) && (ie = U), r.arraySet(q.window, M, E - U, ie, q.wnext), (U -= ie) ? (r.arraySet(q.window, M, E - U, U, 0), q.wnext = U, q.whave = q.wsize) : (q.wnext += ie, q.wnext === q.wsize && (q.wnext = 0), q.whave < q.wsize && (q.whave += ie))), 0;
|
|
4270
4270
|
}
|
|
4271
4271
|
i.inflateReset = y, i.inflateReset2 = A, i.inflateResetKeep = x, i.inflateInit = function(C) {
|
|
4272
4272
|
return I(C, 15);
|
|
4273
4273
|
}, i.inflateInit2 = I, i.inflate = function(C, M) {
|
|
4274
|
-
var E, U,
|
|
4274
|
+
var E, U, ie, q, oe, $, se, T, B, z, F, K, Q, pe, ce, ve, Ce, Ae, Fe, Ie, S, J, W, P, k = 0, V = new r.Buf8(4), Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
4275
4275
|
if (!C || !C.state || !C.output || !C.input && C.avail_in !== 0)
|
|
4276
4276
|
return l;
|
|
4277
|
-
(E = C.state).mode === 12 && (E.mode = 13), oe = C.next_out,
|
|
4277
|
+
(E = C.state).mode === 12 && (E.mode = 13), oe = C.next_out, ie = C.output, se = C.avail_out, q = C.next_in, U = C.input, $ = C.avail_in, T = E.hold, B = E.bits, z = $, F = se, J = f;
|
|
4278
4278
|
e:
|
|
4279
4279
|
for (; ; )
|
|
4280
4280
|
switch (E.mode) {
|
|
@@ -4283,13 +4283,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4283
4283
|
E.mode = 13;
|
|
4284
4284
|
break;
|
|
4285
4285
|
}
|
|
4286
|
-
for (;
|
|
4286
|
+
for (; B < 16; ) {
|
|
4287
4287
|
if ($ === 0)
|
|
4288
4288
|
break e;
|
|
4289
|
-
$--, T += U[q++] <<
|
|
4289
|
+
$--, T += U[q++] << B, B += 8;
|
|
4290
4290
|
}
|
|
4291
4291
|
if (2 & E.wrap && T === 35615) {
|
|
4292
|
-
V[E.check = 0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0),
|
|
4292
|
+
V[E.check = 0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0), B = T = 0, E.mode = 2;
|
|
4293
4293
|
break;
|
|
4294
4294
|
}
|
|
4295
4295
|
if (E.flags = 0, E.head && (E.head.done = !1), !(1 & E.wrap) || (((255 & T) << 8) + (T >> 8)) % 31) {
|
|
@@ -4300,19 +4300,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4300
4300
|
C.msg = "unknown compression method", E.mode = 30;
|
|
4301
4301
|
break;
|
|
4302
4302
|
}
|
|
4303
|
-
if (
|
|
4303
|
+
if (B -= 4, S = 8 + (15 & (T >>>= 4)), E.wbits === 0)
|
|
4304
4304
|
E.wbits = S;
|
|
4305
4305
|
else if (S > E.wbits) {
|
|
4306
4306
|
C.msg = "invalid window size", E.mode = 30;
|
|
4307
4307
|
break;
|
|
4308
4308
|
}
|
|
4309
|
-
E.dmax = 1 << S, C.adler = E.check = 1, E.mode = 512 & T ? 10 : 12,
|
|
4309
|
+
E.dmax = 1 << S, C.adler = E.check = 1, E.mode = 512 & T ? 10 : 12, B = T = 0;
|
|
4310
4310
|
break;
|
|
4311
4311
|
case 2:
|
|
4312
|
-
for (;
|
|
4312
|
+
for (; B < 16; ) {
|
|
4313
4313
|
if ($ === 0)
|
|
4314
4314
|
break e;
|
|
4315
|
-
$--, T += U[q++] <<
|
|
4315
|
+
$--, T += U[q++] << B, B += 8;
|
|
4316
4316
|
}
|
|
4317
4317
|
if (E.flags = T, (255 & E.flags) != 8) {
|
|
4318
4318
|
C.msg = "unknown compression method", E.mode = 30;
|
|
@@ -4322,29 +4322,29 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4322
4322
|
C.msg = "unknown header flags set", E.mode = 30;
|
|
4323
4323
|
break;
|
|
4324
4324
|
}
|
|
4325
|
-
E.head && (E.head.text = T >> 8 & 1), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)),
|
|
4325
|
+
E.head && (E.head.text = T >> 8 & 1), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)), B = T = 0, E.mode = 3;
|
|
4326
4326
|
case 3:
|
|
4327
|
-
for (;
|
|
4327
|
+
for (; B < 32; ) {
|
|
4328
4328
|
if ($ === 0)
|
|
4329
4329
|
break e;
|
|
4330
|
-
$--, T += U[q++] <<
|
|
4330
|
+
$--, T += U[q++] << B, B += 8;
|
|
4331
4331
|
}
|
|
4332
|
-
E.head && (E.head.time = T), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, V[2] = T >>> 16 & 255, V[3] = T >>> 24 & 255, E.check = a(E.check, V, 4, 0)),
|
|
4332
|
+
E.head && (E.head.time = T), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, V[2] = T >>> 16 & 255, V[3] = T >>> 24 & 255, E.check = a(E.check, V, 4, 0)), B = T = 0, E.mode = 4;
|
|
4333
4333
|
case 4:
|
|
4334
|
-
for (;
|
|
4334
|
+
for (; B < 16; ) {
|
|
4335
4335
|
if ($ === 0)
|
|
4336
4336
|
break e;
|
|
4337
|
-
$--, T += U[q++] <<
|
|
4337
|
+
$--, T += U[q++] << B, B += 8;
|
|
4338
4338
|
}
|
|
4339
|
-
E.head && (E.head.xflags = 255 & T, E.head.os = T >> 8), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)),
|
|
4339
|
+
E.head && (E.head.xflags = 255 & T, E.head.os = T >> 8), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)), B = T = 0, E.mode = 5;
|
|
4340
4340
|
case 5:
|
|
4341
4341
|
if (1024 & E.flags) {
|
|
4342
|
-
for (;
|
|
4342
|
+
for (; B < 16; ) {
|
|
4343
4343
|
if ($ === 0)
|
|
4344
4344
|
break e;
|
|
4345
|
-
$--, T += U[q++] <<
|
|
4345
|
+
$--, T += U[q++] << B, B += 8;
|
|
4346
4346
|
}
|
|
4347
|
-
E.length = T, E.head && (E.head.extra_len = T), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)),
|
|
4347
|
+
E.length = T, E.head && (E.head.extra_len = T), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)), B = T = 0;
|
|
4348
4348
|
} else
|
|
4349
4349
|
E.head && (E.head.extra = null);
|
|
4350
4350
|
E.mode = 6;
|
|
@@ -4376,51 +4376,51 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4376
4376
|
E.mode = 9;
|
|
4377
4377
|
case 9:
|
|
4378
4378
|
if (512 & E.flags) {
|
|
4379
|
-
for (;
|
|
4379
|
+
for (; B < 16; ) {
|
|
4380
4380
|
if ($ === 0)
|
|
4381
4381
|
break e;
|
|
4382
|
-
$--, T += U[q++] <<
|
|
4382
|
+
$--, T += U[q++] << B, B += 8;
|
|
4383
4383
|
}
|
|
4384
4384
|
if (T !== (65535 & E.check)) {
|
|
4385
4385
|
C.msg = "header crc mismatch", E.mode = 30;
|
|
4386
4386
|
break;
|
|
4387
4387
|
}
|
|
4388
|
-
|
|
4388
|
+
B = T = 0;
|
|
4389
4389
|
}
|
|
4390
4390
|
E.head && (E.head.hcrc = E.flags >> 9 & 1, E.head.done = !0), C.adler = E.check = 0, E.mode = 12;
|
|
4391
4391
|
break;
|
|
4392
4392
|
case 10:
|
|
4393
|
-
for (;
|
|
4393
|
+
for (; B < 32; ) {
|
|
4394
4394
|
if ($ === 0)
|
|
4395
4395
|
break e;
|
|
4396
|
-
$--, T += U[q++] <<
|
|
4396
|
+
$--, T += U[q++] << B, B += 8;
|
|
4397
4397
|
}
|
|
4398
|
-
C.adler = E.check = b(T),
|
|
4398
|
+
C.adler = E.check = b(T), B = T = 0, E.mode = 11;
|
|
4399
4399
|
case 11:
|
|
4400
4400
|
if (E.havedict === 0)
|
|
4401
|
-
return C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits =
|
|
4401
|
+
return C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits = B, 2;
|
|
4402
4402
|
C.adler = E.check = 1, E.mode = 12;
|
|
4403
4403
|
case 12:
|
|
4404
4404
|
if (M === 5 || M === 6)
|
|
4405
4405
|
break e;
|
|
4406
4406
|
case 13:
|
|
4407
4407
|
if (E.last) {
|
|
4408
|
-
T >>>= 7 &
|
|
4408
|
+
T >>>= 7 & B, B -= 7 & B, E.mode = 27;
|
|
4409
4409
|
break;
|
|
4410
4410
|
}
|
|
4411
|
-
for (;
|
|
4411
|
+
for (; B < 3; ) {
|
|
4412
4412
|
if ($ === 0)
|
|
4413
4413
|
break e;
|
|
4414
|
-
$--, T += U[q++] <<
|
|
4414
|
+
$--, T += U[q++] << B, B += 8;
|
|
4415
4415
|
}
|
|
4416
|
-
switch (E.last = 1 & T,
|
|
4416
|
+
switch (E.last = 1 & T, B -= 1, 3 & (T >>>= 1)) {
|
|
4417
4417
|
case 0:
|
|
4418
4418
|
E.mode = 14;
|
|
4419
4419
|
break;
|
|
4420
4420
|
case 1:
|
|
4421
4421
|
if (D(E), E.mode = 20, M !== 6)
|
|
4422
4422
|
break;
|
|
4423
|
-
T >>>= 2,
|
|
4423
|
+
T >>>= 2, B -= 2;
|
|
4424
4424
|
break e;
|
|
4425
4425
|
case 2:
|
|
4426
4426
|
E.mode = 17;
|
|
@@ -4428,19 +4428,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4428
4428
|
case 3:
|
|
4429
4429
|
C.msg = "invalid block type", E.mode = 30;
|
|
4430
4430
|
}
|
|
4431
|
-
T >>>= 2,
|
|
4431
|
+
T >>>= 2, B -= 2;
|
|
4432
4432
|
break;
|
|
4433
4433
|
case 14:
|
|
4434
|
-
for (T >>>= 7 &
|
|
4434
|
+
for (T >>>= 7 & B, B -= 7 & B; B < 32; ) {
|
|
4435
4435
|
if ($ === 0)
|
|
4436
4436
|
break e;
|
|
4437
|
-
$--, T += U[q++] <<
|
|
4437
|
+
$--, T += U[q++] << B, B += 8;
|
|
4438
4438
|
}
|
|
4439
4439
|
if ((65535 & T) != (T >>> 16 ^ 65535)) {
|
|
4440
4440
|
C.msg = "invalid stored block lengths", E.mode = 30;
|
|
4441
4441
|
break;
|
|
4442
4442
|
}
|
|
4443
|
-
if (E.length = 65535 & T,
|
|
4443
|
+
if (E.length = 65535 & T, B = T = 0, E.mode = 15, M === 6)
|
|
4444
4444
|
break e;
|
|
4445
4445
|
case 15:
|
|
4446
4446
|
E.mode = 16;
|
|
@@ -4448,30 +4448,30 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4448
4448
|
if (K = E.length) {
|
|
4449
4449
|
if ($ < K && (K = $), se < K && (K = se), K === 0)
|
|
4450
4450
|
break e;
|
|
4451
|
-
r.arraySet(
|
|
4451
|
+
r.arraySet(ie, U, q, K, oe), $ -= K, q += K, se -= K, oe += K, E.length -= K;
|
|
4452
4452
|
break;
|
|
4453
4453
|
}
|
|
4454
4454
|
E.mode = 12;
|
|
4455
4455
|
break;
|
|
4456
4456
|
case 17:
|
|
4457
|
-
for (;
|
|
4457
|
+
for (; B < 14; ) {
|
|
4458
4458
|
if ($ === 0)
|
|
4459
4459
|
break e;
|
|
4460
|
-
$--, T += U[q++] <<
|
|
4460
|
+
$--, T += U[q++] << B, B += 8;
|
|
4461
4461
|
}
|
|
4462
|
-
if (E.nlen = 257 + (31 & T), T >>>= 5,
|
|
4462
|
+
if (E.nlen = 257 + (31 & T), T >>>= 5, B -= 5, E.ndist = 1 + (31 & T), T >>>= 5, B -= 5, E.ncode = 4 + (15 & T), T >>>= 4, B -= 4, 286 < E.nlen || 30 < E.ndist) {
|
|
4463
4463
|
C.msg = "too many length or distance symbols", E.mode = 30;
|
|
4464
4464
|
break;
|
|
4465
4465
|
}
|
|
4466
4466
|
E.have = 0, E.mode = 18;
|
|
4467
4467
|
case 18:
|
|
4468
4468
|
for (; E.have < E.ncode; ) {
|
|
4469
|
-
for (;
|
|
4469
|
+
for (; B < 3; ) {
|
|
4470
4470
|
if ($ === 0)
|
|
4471
4471
|
break e;
|
|
4472
|
-
$--, T += U[q++] <<
|
|
4472
|
+
$--, T += U[q++] << B, B += 8;
|
|
4473
4473
|
}
|
|
4474
|
-
E.lens[Z[E.have++]] = 7 & T, T >>>= 3,
|
|
4474
|
+
E.lens[Z[E.have++]] = 7 & T, T >>>= 3, B -= 3;
|
|
4475
4475
|
}
|
|
4476
4476
|
for (; E.have < 19; )
|
|
4477
4477
|
E.lens[Z[E.have++]] = 0;
|
|
@@ -4482,39 +4482,39 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4482
4482
|
E.have = 0, E.mode = 19;
|
|
4483
4483
|
case 19:
|
|
4484
4484
|
for (; E.have < E.nlen + E.ndist; ) {
|
|
4485
|
-
for (; ve = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255,
|
|
4485
|
+
for (; ve = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255, Ce = 65535 & k, !((ce = k >>> 24) <= B); ) {
|
|
4486
4486
|
if ($ === 0)
|
|
4487
4487
|
break e;
|
|
4488
|
-
$--, T += U[q++] <<
|
|
4488
|
+
$--, T += U[q++] << B, B += 8;
|
|
4489
4489
|
}
|
|
4490
|
-
if (
|
|
4491
|
-
T >>>= ce,
|
|
4490
|
+
if (Ce < 16)
|
|
4491
|
+
T >>>= ce, B -= ce, E.lens[E.have++] = Ce;
|
|
4492
4492
|
else {
|
|
4493
|
-
if (
|
|
4494
|
-
for (
|
|
4493
|
+
if (Ce === 16) {
|
|
4494
|
+
for (P = ce + 2; B < P; ) {
|
|
4495
4495
|
if ($ === 0)
|
|
4496
4496
|
break e;
|
|
4497
|
-
$--, T += U[q++] <<
|
|
4497
|
+
$--, T += U[q++] << B, B += 8;
|
|
4498
4498
|
}
|
|
4499
|
-
if (T >>>= ce,
|
|
4499
|
+
if (T >>>= ce, B -= ce, E.have === 0) {
|
|
4500
4500
|
C.msg = "invalid bit length repeat", E.mode = 30;
|
|
4501
4501
|
break;
|
|
4502
4502
|
}
|
|
4503
|
-
S = E.lens[E.have - 1], K = 3 + (3 & T), T >>>= 2,
|
|
4504
|
-
} else if (
|
|
4505
|
-
for (
|
|
4503
|
+
S = E.lens[E.have - 1], K = 3 + (3 & T), T >>>= 2, B -= 2;
|
|
4504
|
+
} else if (Ce === 17) {
|
|
4505
|
+
for (P = ce + 3; B < P; ) {
|
|
4506
4506
|
if ($ === 0)
|
|
4507
4507
|
break e;
|
|
4508
|
-
$--, T += U[q++] <<
|
|
4508
|
+
$--, T += U[q++] << B, B += 8;
|
|
4509
4509
|
}
|
|
4510
|
-
|
|
4510
|
+
B -= ce, S = 0, K = 3 + (7 & (T >>>= ce)), T >>>= 3, B -= 3;
|
|
4511
4511
|
} else {
|
|
4512
|
-
for (
|
|
4512
|
+
for (P = ce + 7; B < P; ) {
|
|
4513
4513
|
if ($ === 0)
|
|
4514
4514
|
break e;
|
|
4515
|
-
$--, T += U[q++] <<
|
|
4515
|
+
$--, T += U[q++] << B, B += 8;
|
|
4516
4516
|
}
|
|
4517
|
-
|
|
4517
|
+
B -= ce, S = 0, K = 11 + (127 & (T >>>= ce)), T >>>= 7, B -= 7;
|
|
4518
4518
|
}
|
|
4519
4519
|
if (E.have + K > E.nlen + E.ndist) {
|
|
4520
4520
|
C.msg = "invalid bit length repeat", E.mode = 30;
|
|
@@ -4544,23 +4544,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4544
4544
|
E.mode = 21;
|
|
4545
4545
|
case 21:
|
|
4546
4546
|
if (6 <= $ && 258 <= se) {
|
|
4547
|
-
C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits =
|
|
4547
|
+
C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits = B, o(C, F), oe = C.next_out, ie = C.output, se = C.avail_out, q = C.next_in, U = C.input, $ = C.avail_in, T = E.hold, B = E.bits, E.mode === 12 && (E.back = -1);
|
|
4548
4548
|
break;
|
|
4549
4549
|
}
|
|
4550
|
-
for (E.back = 0; ve = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255,
|
|
4550
|
+
for (E.back = 0; ve = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255, Ce = 65535 & k, !((ce = k >>> 24) <= B); ) {
|
|
4551
4551
|
if ($ === 0)
|
|
4552
4552
|
break e;
|
|
4553
|
-
$--, T += U[q++] <<
|
|
4553
|
+
$--, T += U[q++] << B, B += 8;
|
|
4554
4554
|
}
|
|
4555
4555
|
if (ve && !(240 & ve)) {
|
|
4556
|
-
for (Ae = ce, Fe = ve,
|
|
4556
|
+
for (Ae = ce, Fe = ve, Ie = Ce; ve = (k = E.lencode[Ie + ((T & (1 << Ae + Fe) - 1) >> Ae)]) >>> 16 & 255, Ce = 65535 & k, !(Ae + (ce = k >>> 24) <= B); ) {
|
|
4557
4557
|
if ($ === 0)
|
|
4558
4558
|
break e;
|
|
4559
|
-
$--, T += U[q++] <<
|
|
4559
|
+
$--, T += U[q++] << B, B += 8;
|
|
4560
4560
|
}
|
|
4561
|
-
T >>>= Ae,
|
|
4561
|
+
T >>>= Ae, B -= Ae, E.back += Ae;
|
|
4562
4562
|
}
|
|
4563
|
-
if (T >>>= ce,
|
|
4563
|
+
if (T >>>= ce, B -= ce, E.back += ce, E.length = Ce, ve === 0) {
|
|
4564
4564
|
E.mode = 26;
|
|
4565
4565
|
break;
|
|
4566
4566
|
}
|
|
@@ -4575,41 +4575,41 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4575
4575
|
E.extra = 15 & ve, E.mode = 22;
|
|
4576
4576
|
case 22:
|
|
4577
4577
|
if (E.extra) {
|
|
4578
|
-
for (
|
|
4578
|
+
for (P = E.extra; B < P; ) {
|
|
4579
4579
|
if ($ === 0)
|
|
4580
4580
|
break e;
|
|
4581
|
-
$--, T += U[q++] <<
|
|
4581
|
+
$--, T += U[q++] << B, B += 8;
|
|
4582
4582
|
}
|
|
4583
|
-
E.length += T & (1 << E.extra) - 1, T >>>= E.extra,
|
|
4583
|
+
E.length += T & (1 << E.extra) - 1, T >>>= E.extra, B -= E.extra, E.back += E.extra;
|
|
4584
4584
|
}
|
|
4585
4585
|
E.was = E.length, E.mode = 23;
|
|
4586
4586
|
case 23:
|
|
4587
|
-
for (; ve = (k = E.distcode[T & (1 << E.distbits) - 1]) >>> 16 & 255,
|
|
4587
|
+
for (; ve = (k = E.distcode[T & (1 << E.distbits) - 1]) >>> 16 & 255, Ce = 65535 & k, !((ce = k >>> 24) <= B); ) {
|
|
4588
4588
|
if ($ === 0)
|
|
4589
4589
|
break e;
|
|
4590
|
-
$--, T += U[q++] <<
|
|
4590
|
+
$--, T += U[q++] << B, B += 8;
|
|
4591
4591
|
}
|
|
4592
4592
|
if (!(240 & ve)) {
|
|
4593
|
-
for (Ae = ce, Fe = ve,
|
|
4593
|
+
for (Ae = ce, Fe = ve, Ie = Ce; ve = (k = E.distcode[Ie + ((T & (1 << Ae + Fe) - 1) >> Ae)]) >>> 16 & 255, Ce = 65535 & k, !(Ae + (ce = k >>> 24) <= B); ) {
|
|
4594
4594
|
if ($ === 0)
|
|
4595
4595
|
break e;
|
|
4596
|
-
$--, T += U[q++] <<
|
|
4596
|
+
$--, T += U[q++] << B, B += 8;
|
|
4597
4597
|
}
|
|
4598
|
-
T >>>= Ae,
|
|
4598
|
+
T >>>= Ae, B -= Ae, E.back += Ae;
|
|
4599
4599
|
}
|
|
4600
|
-
if (T >>>= ce,
|
|
4600
|
+
if (T >>>= ce, B -= ce, E.back += ce, 64 & ve) {
|
|
4601
4601
|
C.msg = "invalid distance code", E.mode = 30;
|
|
4602
4602
|
break;
|
|
4603
4603
|
}
|
|
4604
|
-
E.offset =
|
|
4604
|
+
E.offset = Ce, E.extra = 15 & ve, E.mode = 24;
|
|
4605
4605
|
case 24:
|
|
4606
4606
|
if (E.extra) {
|
|
4607
|
-
for (
|
|
4607
|
+
for (P = E.extra; B < P; ) {
|
|
4608
4608
|
if ($ === 0)
|
|
4609
4609
|
break e;
|
|
4610
|
-
$--, T += U[q++] <<
|
|
4610
|
+
$--, T += U[q++] << B, B += 8;
|
|
4611
4611
|
}
|
|
4612
|
-
E.offset += T & (1 << E.extra) - 1, T >>>= E.extra,
|
|
4612
|
+
E.offset += T & (1 << E.extra) - 1, T >>>= E.extra, B -= E.extra, E.back += E.extra;
|
|
4613
4613
|
}
|
|
4614
4614
|
if (E.offset > E.dmax) {
|
|
4615
4615
|
C.msg = "invalid distance too far back", E.mode = 30;
|
|
@@ -4626,42 +4626,42 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4626
4626
|
}
|
|
4627
4627
|
Q = K > E.wnext ? (K -= E.wnext, E.wsize - K) : E.wnext - K, K > E.length && (K = E.length), pe = E.window;
|
|
4628
4628
|
} else
|
|
4629
|
-
pe =
|
|
4630
|
-
for (se < K && (K = se), se -= K, E.length -= K;
|
|
4629
|
+
pe = ie, Q = oe - E.offset, K = E.length;
|
|
4630
|
+
for (se < K && (K = se), se -= K, E.length -= K; ie[oe++] = pe[Q++], --K; )
|
|
4631
4631
|
;
|
|
4632
4632
|
E.length === 0 && (E.mode = 21);
|
|
4633
4633
|
break;
|
|
4634
4634
|
case 26:
|
|
4635
4635
|
if (se === 0)
|
|
4636
4636
|
break e;
|
|
4637
|
-
|
|
4637
|
+
ie[oe++] = E.length, se--, E.mode = 21;
|
|
4638
4638
|
break;
|
|
4639
4639
|
case 27:
|
|
4640
4640
|
if (E.wrap) {
|
|
4641
|
-
for (;
|
|
4641
|
+
for (; B < 32; ) {
|
|
4642
4642
|
if ($ === 0)
|
|
4643
4643
|
break e;
|
|
4644
|
-
$--, T |= U[q++] <<
|
|
4644
|
+
$--, T |= U[q++] << B, B += 8;
|
|
4645
4645
|
}
|
|
4646
|
-
if (F -= se, C.total_out += F, E.total += F, F && (C.adler = E.check = E.flags ? a(E.check,
|
|
4646
|
+
if (F -= se, C.total_out += F, E.total += F, F && (C.adler = E.check = E.flags ? a(E.check, ie, F, oe - F) : n(E.check, ie, F, oe - F)), F = se, (E.flags ? T : b(T)) !== E.check) {
|
|
4647
4647
|
C.msg = "incorrect data check", E.mode = 30;
|
|
4648
4648
|
break;
|
|
4649
4649
|
}
|
|
4650
|
-
|
|
4650
|
+
B = T = 0;
|
|
4651
4651
|
}
|
|
4652
4652
|
E.mode = 28;
|
|
4653
4653
|
case 28:
|
|
4654
4654
|
if (E.wrap && E.flags) {
|
|
4655
|
-
for (;
|
|
4655
|
+
for (; B < 32; ) {
|
|
4656
4656
|
if ($ === 0)
|
|
4657
4657
|
break e;
|
|
4658
|
-
$--, T += U[q++] <<
|
|
4658
|
+
$--, T += U[q++] << B, B += 8;
|
|
4659
4659
|
}
|
|
4660
4660
|
if (T !== (4294967295 & E.total)) {
|
|
4661
4661
|
C.msg = "incorrect length check", E.mode = 30;
|
|
4662
4662
|
break;
|
|
4663
4663
|
}
|
|
4664
|
-
|
|
4664
|
+
B = T = 0;
|
|
4665
4665
|
}
|
|
4666
4666
|
E.mode = 29;
|
|
4667
4667
|
case 29:
|
|
@@ -4676,7 +4676,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4676
4676
|
default:
|
|
4677
4677
|
return l;
|
|
4678
4678
|
}
|
|
4679
|
-
return C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits =
|
|
4679
|
+
return C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits = B, (E.wsize || F !== C.avail_out && E.mode < 30 && (E.mode < 27 || M !== 4)) && N(C, C.output, C.next_out, F - C.avail_out) ? (E.mode = 31, -4) : (z -= C.avail_in, F -= C.avail_out, C.total_in += z, C.total_out += F, E.total += F, E.wrap && F && (C.adler = E.check = E.flags ? a(E.check, ie, F, C.next_out - F) : n(E.check, ie, F, C.next_out - F)), C.data_type = E.bits + (E.last ? 64 : 0) + (E.mode === 12 ? 128 : 0) + (E.mode === 20 || E.mode === 15 ? 256 : 0), (z == 0 && F === 0 || M === 4) && J === f && (J = -5), J);
|
|
4680
4680
|
}, i.inflateEnd = function(C) {
|
|
4681
4681
|
if (!C || !C.state)
|
|
4682
4682
|
return l;
|
|
@@ -4692,18 +4692,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4692
4692
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, i) {
|
|
4693
4693
|
var r = e("../utils/common"), n = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], a = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], o = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], u = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
4694
4694
|
t.exports = function(h, m, f, l, p, d, g, b) {
|
|
4695
|
-
var v, x, y, A, I, w, R, L, D, N = b.bits, C = 0, M = 0, E = 0, U = 0,
|
|
4695
|
+
var v, x, y, A, I, w, R, L, D, N = b.bits, C = 0, M = 0, E = 0, U = 0, ie = 0, q = 0, oe = 0, $ = 0, se = 0, T = 0, B = null, z = 0, F = new r.Buf16(16), K = new r.Buf16(16), Q = null, pe = 0;
|
|
4696
4696
|
for (C = 0; C <= 15; C++)
|
|
4697
4697
|
F[C] = 0;
|
|
4698
4698
|
for (M = 0; M < l; M++)
|
|
4699
4699
|
F[m[f + M]]++;
|
|
4700
|
-
for (
|
|
4700
|
+
for (ie = N, U = 15; 1 <= U && F[U] === 0; U--)
|
|
4701
4701
|
;
|
|
4702
|
-
if (U <
|
|
4702
|
+
if (U < ie && (ie = U), U === 0)
|
|
4703
4703
|
return p[d++] = 20971520, p[d++] = 20971520, b.bits = 1, 0;
|
|
4704
4704
|
for (E = 1; E < U && F[E] === 0; E++)
|
|
4705
4705
|
;
|
|
4706
|
-
for (
|
|
4706
|
+
for (ie < E && (ie = E), C = $ = 1; C <= 15; C++)
|
|
4707
4707
|
if ($ <<= 1, ($ -= F[C]) < 0)
|
|
4708
4708
|
return -1;
|
|
4709
4709
|
if (0 < $ && (h === 0 || U !== 1))
|
|
@@ -4712,10 +4712,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4712
4712
|
K[C + 1] = K[C] + F[C];
|
|
4713
4713
|
for (M = 0; M < l; M++)
|
|
4714
4714
|
m[f + M] !== 0 && (g[K[m[f + M]]++] = M);
|
|
4715
|
-
if (w = h === 0 ? (
|
|
4715
|
+
if (w = h === 0 ? (B = Q = g, 19) : h === 1 ? (B = n, z -= 257, Q = a, pe -= 257, 256) : (B = o, Q = u, -1), C = E, I = d, oe = M = T = 0, y = -1, A = (se = 1 << (q = ie)) - 1, h === 1 && 852 < se || h === 2 && 592 < se)
|
|
4716
4716
|
return 1;
|
|
4717
4717
|
for (; ; ) {
|
|
4718
|
-
for (R = C - oe, D = g[M] < w ? (L = 0, g[M]) : g[M] > w ? (L = Q[pe + g[M]],
|
|
4718
|
+
for (R = C - oe, D = g[M] < w ? (L = 0, g[M]) : g[M] > w ? (L = Q[pe + g[M]], B[z + g[M]]) : (L = 96, 0), v = 1 << C - oe, E = x = 1 << q; p[I + (T >> oe) + (x -= v)] = R << 24 | L << 16 | D | 0, x !== 0; )
|
|
4719
4719
|
;
|
|
4720
4720
|
for (v = 1 << C - 1; T & v; )
|
|
4721
4721
|
v >>= 1;
|
|
@@ -4724,15 +4724,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4724
4724
|
break;
|
|
4725
4725
|
C = m[f + g[M]];
|
|
4726
4726
|
}
|
|
4727
|
-
if (
|
|
4728
|
-
for (oe === 0 && (oe =
|
|
4727
|
+
if (ie < C && (T & A) !== y) {
|
|
4728
|
+
for (oe === 0 && (oe = ie), I += E, $ = 1 << (q = C - oe); q + oe < U && !(($ -= F[q + oe]) <= 0); )
|
|
4729
4729
|
q++, $ <<= 1;
|
|
4730
4730
|
if (se += 1 << q, h === 1 && 852 < se || h === 2 && 592 < se)
|
|
4731
4731
|
return 1;
|
|
4732
|
-
p[y = T & A] =
|
|
4732
|
+
p[y = T & A] = ie << 24 | q << 16 | I - d | 0;
|
|
4733
4733
|
}
|
|
4734
4734
|
}
|
|
4735
|
-
return T !== 0 && (p[I + T] = C - oe << 24 | 64 << 16 | 0), b.bits =
|
|
4735
|
+
return T !== 0 && (p[I + T] = C - oe << 24 | 64 << 16 | 0), b.bits = ie, 0;
|
|
4736
4736
|
};
|
|
4737
4737
|
}, { "../utils/common": 41 }], 51: [function(e, t, i) {
|
|
4738
4738
|
t.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
@@ -4752,14 +4752,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4752
4752
|
o(E);
|
|
4753
4753
|
var U = new Array(h);
|
|
4754
4754
|
o(U);
|
|
4755
|
-
var
|
|
4755
|
+
var ie, q, oe, $ = new Array(l);
|
|
4756
4756
|
function se(k, V, Z, X, H) {
|
|
4757
4757
|
this.static_tree = k, this.extra_bits = V, this.extra_base = Z, this.elems = X, this.max_length = H, this.has_stree = k && k.length;
|
|
4758
4758
|
}
|
|
4759
4759
|
function T(k, V) {
|
|
4760
4760
|
this.dyn_tree = k, this.max_code = 0, this.stat_desc = V;
|
|
4761
4761
|
}
|
|
4762
|
-
function
|
|
4762
|
+
function B(k) {
|
|
4763
4763
|
return k < 256 ? M[k] : M[256 + (k >>> 7)];
|
|
4764
4764
|
}
|
|
4765
4765
|
function z(k, V) {
|
|
@@ -4781,8 +4781,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4781
4781
|
for (X = 1; X <= g; X++)
|
|
4782
4782
|
ee[X] = he = he + Z[X - 1] << 1;
|
|
4783
4783
|
for (H = 0; H <= V; H++) {
|
|
4784
|
-
var
|
|
4785
|
-
|
|
4784
|
+
var re = k[2 * H + 1];
|
|
4785
|
+
re !== 0 && (k[2 * H] = Q(ee[re]++, re));
|
|
4786
4786
|
}
|
|
4787
4787
|
}
|
|
4788
4788
|
function ce(k) {
|
|
@@ -4798,72 +4798,72 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4798
4798
|
function ve(k) {
|
|
4799
4799
|
8 < k.bi_valid ? z(k, k.bi_buf) : 0 < k.bi_valid && (k.pending_buf[k.pending++] = k.bi_buf), k.bi_buf = 0, k.bi_valid = 0;
|
|
4800
4800
|
}
|
|
4801
|
-
function
|
|
4801
|
+
function Ce(k, V, Z, X) {
|
|
4802
4802
|
var H = 2 * V, ee = 2 * Z;
|
|
4803
4803
|
return k[H] < k[ee] || k[H] === k[ee] && X[V] <= X[Z];
|
|
4804
4804
|
}
|
|
4805
4805
|
function Ae(k, V, Z) {
|
|
4806
|
-
for (var X = k.heap[Z], H = Z << 1; H <= k.heap_len && (H < k.heap_len &&
|
|
4806
|
+
for (var X = k.heap[Z], H = Z << 1; H <= k.heap_len && (H < k.heap_len && Ce(V, k.heap[H + 1], k.heap[H], k.depth) && H++, !Ce(V, X, k.heap[H], k.depth)); )
|
|
4807
4807
|
k.heap[Z] = k.heap[H], Z = H, H <<= 1;
|
|
4808
4808
|
k.heap[Z] = X;
|
|
4809
4809
|
}
|
|
4810
4810
|
function Fe(k, V, Z) {
|
|
4811
|
-
var X, H, ee, he,
|
|
4811
|
+
var X, H, ee, he, re = 0;
|
|
4812
4812
|
if (k.last_lit !== 0)
|
|
4813
|
-
for (; X = k.pending_buf[k.d_buf + 2 *
|
|
4813
|
+
for (; X = k.pending_buf[k.d_buf + 2 * re] << 8 | k.pending_buf[k.d_buf + 2 * re + 1], H = k.pending_buf[k.l_buf + re], re++, X === 0 ? K(k, H, V) : (K(k, (ee = E[H]) + m + 1, V), (he = w[ee]) !== 0 && F(k, H -= U[ee], he), K(k, ee = B(--X), Z), (he = R[ee]) !== 0 && F(k, X -= $[ee], he)), re < k.last_lit; )
|
|
4814
4814
|
;
|
|
4815
4815
|
K(k, x, V);
|
|
4816
4816
|
}
|
|
4817
|
-
function
|
|
4818
|
-
var Z, X, H, ee = V.dyn_tree, he = V.stat_desc.static_tree,
|
|
4817
|
+
function Ie(k, V) {
|
|
4818
|
+
var Z, X, H, ee = V.dyn_tree, he = V.stat_desc.static_tree, re = V.stat_desc.has_stree, fe = V.stat_desc.elems, _e = -1;
|
|
4819
4819
|
for (k.heap_len = 0, k.heap_max = d, Z = 0; Z < fe; Z++)
|
|
4820
4820
|
ee[2 * Z] !== 0 ? (k.heap[++k.heap_len] = _e = Z, k.depth[Z] = 0) : ee[2 * Z + 1] = 0;
|
|
4821
4821
|
for (; k.heap_len < 2; )
|
|
4822
|
-
ee[2 * (H = k.heap[++k.heap_len] = _e < 2 ? ++_e : 0)] = 1, k.depth[H] = 0, k.opt_len--,
|
|
4822
|
+
ee[2 * (H = k.heap[++k.heap_len] = _e < 2 ? ++_e : 0)] = 1, k.depth[H] = 0, k.opt_len--, re && (k.static_len -= he[2 * H + 1]);
|
|
4823
4823
|
for (V.max_code = _e, Z = k.heap_len >> 1; 1 <= Z; Z--)
|
|
4824
4824
|
Ae(k, ee, Z);
|
|
4825
4825
|
for (H = fe; Z = k.heap[1], k.heap[1] = k.heap[k.heap_len--], Ae(k, ee, 1), X = k.heap[1], k.heap[--k.heap_max] = Z, k.heap[--k.heap_max] = X, ee[2 * H] = ee[2 * Z] + ee[2 * X], k.depth[H] = (k.depth[Z] >= k.depth[X] ? k.depth[Z] : k.depth[X]) + 1, ee[2 * Z + 1] = ee[2 * X + 1] = H, k.heap[1] = H++, Ae(k, ee, 1), 2 <= k.heap_len; )
|
|
4826
4826
|
;
|
|
4827
4827
|
k.heap[--k.heap_max] = k.heap[1], function(xe, Ke) {
|
|
4828
|
-
var mt, Me, it,
|
|
4829
|
-
for (
|
|
4830
|
-
xe.bl_count[
|
|
4828
|
+
var mt, Me, it, Pe, gt, $t, lt = Ke.dyn_tree, bi = Ke.max_code, xi = Ke.stat_desc.static_tree, ji = Ke.stat_desc.has_stree, Si = Ke.stat_desc.extra_bits, _i = Ke.stat_desc.extra_base, Et = Ke.stat_desc.max_length, qt = 0;
|
|
4829
|
+
for (Pe = 0; Pe <= g; Pe++)
|
|
4830
|
+
xe.bl_count[Pe] = 0;
|
|
4831
4831
|
for (lt[2 * xe.heap[xe.heap_max] + 1] = 0, mt = xe.heap_max + 1; mt < d; mt++)
|
|
4832
|
-
Et < (
|
|
4832
|
+
Et < (Pe = lt[2 * lt[2 * (Me = xe.heap[mt]) + 1] + 1] + 1) && (Pe = Et, qt++), lt[2 * Me + 1] = Pe, bi < Me || (xe.bl_count[Pe]++, gt = 0, _i <= Me && (gt = Si[Me - _i]), $t = lt[2 * Me], xe.opt_len += $t * (Pe + gt), ji && (xe.static_len += $t * (xi[2 * Me + 1] + gt)));
|
|
4833
4833
|
if (qt !== 0) {
|
|
4834
4834
|
do {
|
|
4835
|
-
for (
|
|
4836
|
-
|
|
4837
|
-
xe.bl_count[
|
|
4835
|
+
for (Pe = Et - 1; xe.bl_count[Pe] === 0; )
|
|
4836
|
+
Pe--;
|
|
4837
|
+
xe.bl_count[Pe]--, xe.bl_count[Pe + 1] += 2, xe.bl_count[Et]--, qt -= 2;
|
|
4838
4838
|
} while (0 < qt);
|
|
4839
|
-
for (
|
|
4840
|
-
for (Me = xe.bl_count[
|
|
4841
|
-
bi < (it = xe.heap[--mt]) || (lt[2 * it + 1] !==
|
|
4839
|
+
for (Pe = Et; Pe !== 0; Pe--)
|
|
4840
|
+
for (Me = xe.bl_count[Pe]; Me !== 0; )
|
|
4841
|
+
bi < (it = xe.heap[--mt]) || (lt[2 * it + 1] !== Pe && (xe.opt_len += (Pe - lt[2 * it + 1]) * lt[2 * it], lt[2 * it + 1] = Pe), Me--);
|
|
4842
4842
|
}
|
|
4843
4843
|
}(k, V), pe(ee, _e, k.bl_count);
|
|
4844
4844
|
}
|
|
4845
4845
|
function S(k, V, Z) {
|
|
4846
|
-
var X, H, ee = -1, he = V[1],
|
|
4846
|
+
var X, H, ee = -1, he = V[1], re = 0, fe = 7, _e = 4;
|
|
4847
4847
|
for (he === 0 && (fe = 138, _e = 3), V[2 * (Z + 1) + 1] = 65535, X = 0; X <= Z; X++)
|
|
4848
|
-
H = he, he = V[2 * (X + 1) + 1], ++
|
|
4848
|
+
H = he, he = V[2 * (X + 1) + 1], ++re < fe && H === he || (re < _e ? k.bl_tree[2 * H] += re : H !== 0 ? (H !== ee && k.bl_tree[2 * H]++, k.bl_tree[2 * y]++) : re <= 10 ? k.bl_tree[2 * A]++ : k.bl_tree[2 * I]++, ee = H, _e = (re = 0) === he ? (fe = 138, 3) : H === he ? (fe = 6, 3) : (fe = 7, 4));
|
|
4849
4849
|
}
|
|
4850
4850
|
function J(k, V, Z) {
|
|
4851
|
-
var X, H, ee = -1, he = V[1],
|
|
4851
|
+
var X, H, ee = -1, he = V[1], re = 0, fe = 7, _e = 4;
|
|
4852
4852
|
for (he === 0 && (fe = 138, _e = 3), X = 0; X <= Z; X++)
|
|
4853
|
-
if (H = he, he = V[2 * (X + 1) + 1], !(++
|
|
4854
|
-
if (
|
|
4855
|
-
for (; K(k, H, k.bl_tree), --
|
|
4853
|
+
if (H = he, he = V[2 * (X + 1) + 1], !(++re < fe && H === he)) {
|
|
4854
|
+
if (re < _e)
|
|
4855
|
+
for (; K(k, H, k.bl_tree), --re != 0; )
|
|
4856
4856
|
;
|
|
4857
4857
|
else
|
|
4858
|
-
H !== 0 ? (H !== ee && (K(k, H, k.bl_tree),
|
|
4859
|
-
ee = H, _e = (
|
|
4858
|
+
H !== 0 ? (H !== ee && (K(k, H, k.bl_tree), re--), K(k, y, k.bl_tree), F(k, re - 3, 2)) : re <= 10 ? (K(k, A, k.bl_tree), F(k, re - 3, 3)) : (K(k, I, k.bl_tree), F(k, re - 11, 7));
|
|
4859
|
+
ee = H, _e = (re = 0) === he ? (fe = 138, 3) : H === he ? (fe = 6, 3) : (fe = 7, 4);
|
|
4860
4860
|
}
|
|
4861
4861
|
}
|
|
4862
4862
|
o($);
|
|
4863
4863
|
var W = !1;
|
|
4864
|
-
function
|
|
4865
|
-
F(k, (u << 1) + (X ? 1 : 0), 3), function(H, ee, he,
|
|
4866
|
-
ve(H),
|
|
4864
|
+
function P(k, V, Z, X) {
|
|
4865
|
+
F(k, (u << 1) + (X ? 1 : 0), 3), function(H, ee, he, re) {
|
|
4866
|
+
ve(H), re && (z(H, he), z(H, ~he)), r.arraySet(H.pending_buf, H.window, ee, he, H.pending), H.pending += he;
|
|
4867
4867
|
}(k, V, Z, !0);
|
|
4868
4868
|
}
|
|
4869
4869
|
i._tr_init = function(k) {
|
|
@@ -4890,34 +4890,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4890
4890
|
N[2 * V + 1] = 8, V++, he[8]++;
|
|
4891
4891
|
for (pe(N, f + 1, he), V = 0; V < l; V++)
|
|
4892
4892
|
C[2 * V + 1] = 5, C[2 * V] = Q(V, 5);
|
|
4893
|
-
|
|
4894
|
-
}(), W = !0), k.l_desc = new T(k.dyn_ltree,
|
|
4895
|
-
}, i._tr_stored_block =
|
|
4893
|
+
ie = new se(N, w, m + 1, f, g), q = new se(C, R, 0, l, g), oe = new se(new Array(0), L, 0, p, v);
|
|
4894
|
+
}(), W = !0), k.l_desc = new T(k.dyn_ltree, ie), k.d_desc = new T(k.dyn_dtree, q), k.bl_desc = new T(k.bl_tree, oe), k.bi_buf = 0, k.bi_valid = 0, ce(k);
|
|
4895
|
+
}, i._tr_stored_block = P, i._tr_flush_block = function(k, V, Z, X) {
|
|
4896
4896
|
var H, ee, he = 0;
|
|
4897
|
-
0 < k.level ? (k.strm.data_type === 2 && (k.strm.data_type = function(
|
|
4897
|
+
0 < k.level ? (k.strm.data_type === 2 && (k.strm.data_type = function(re) {
|
|
4898
4898
|
var fe, _e = 4093624447;
|
|
4899
4899
|
for (fe = 0; fe <= 31; fe++, _e >>>= 1)
|
|
4900
|
-
if (1 & _e &&
|
|
4900
|
+
if (1 & _e && re.dyn_ltree[2 * fe] !== 0)
|
|
4901
4901
|
return n;
|
|
4902
|
-
if (
|
|
4902
|
+
if (re.dyn_ltree[18] !== 0 || re.dyn_ltree[20] !== 0 || re.dyn_ltree[26] !== 0)
|
|
4903
4903
|
return a;
|
|
4904
4904
|
for (fe = 32; fe < m; fe++)
|
|
4905
|
-
if (
|
|
4905
|
+
if (re.dyn_ltree[2 * fe] !== 0)
|
|
4906
4906
|
return a;
|
|
4907
4907
|
return n;
|
|
4908
|
-
}(k)),
|
|
4908
|
+
}(k)), Ie(k, k.l_desc), Ie(k, k.d_desc), he = function(re) {
|
|
4909
4909
|
var fe;
|
|
4910
|
-
for (S(
|
|
4910
|
+
for (S(re, re.dyn_ltree, re.l_desc.max_code), S(re, re.dyn_dtree, re.d_desc.max_code), Ie(re, re.bl_desc), fe = p - 1; 3 <= fe && re.bl_tree[2 * D[fe] + 1] === 0; fe--)
|
|
4911
4911
|
;
|
|
4912
|
-
return
|
|
4913
|
-
}(k), H = k.opt_len + 3 + 7 >>> 3, (ee = k.static_len + 3 + 7 >>> 3) <= H && (H = ee)) : H = ee = Z + 5, Z + 4 <= H && V !== -1 ?
|
|
4912
|
+
return re.opt_len += 3 * (fe + 1) + 5 + 5 + 4, fe;
|
|
4913
|
+
}(k), H = k.opt_len + 3 + 7 >>> 3, (ee = k.static_len + 3 + 7 >>> 3) <= H && (H = ee)) : H = ee = Z + 5, Z + 4 <= H && V !== -1 ? P(k, V, Z, X) : k.strategy === 4 || ee === H ? (F(k, 2 + (X ? 1 : 0), 3), Fe(k, N, C)) : (F(k, 4 + (X ? 1 : 0), 3), function(re, fe, _e, xe) {
|
|
4914
4914
|
var Ke;
|
|
4915
|
-
for (F(
|
|
4916
|
-
F(
|
|
4917
|
-
J(
|
|
4915
|
+
for (F(re, fe - 257, 5), F(re, _e - 1, 5), F(re, xe - 4, 4), Ke = 0; Ke < xe; Ke++)
|
|
4916
|
+
F(re, re.bl_tree[2 * D[Ke] + 1], 3);
|
|
4917
|
+
J(re, re.dyn_ltree, fe - 1), J(re, re.dyn_dtree, _e - 1);
|
|
4918
4918
|
}(k, k.l_desc.max_code + 1, k.d_desc.max_code + 1, he + 1), Fe(k, k.dyn_ltree, k.dyn_dtree)), ce(k), X && ve(k);
|
|
4919
4919
|
}, i._tr_tally = function(k, V, Z) {
|
|
4920
|
-
return k.pending_buf[k.d_buf + 2 * k.last_lit] = V >>> 8 & 255, k.pending_buf[k.d_buf + 2 * k.last_lit + 1] = 255 & V, k.pending_buf[k.l_buf + k.last_lit] = 255 & Z, k.last_lit++, V === 0 ? k.dyn_ltree[2 * Z]++ : (k.matches++, V--, k.dyn_ltree[2 * (E[Z] + m + 1)]++, k.dyn_dtree[2 *
|
|
4920
|
+
return k.pending_buf[k.d_buf + 2 * k.last_lit] = V >>> 8 & 255, k.pending_buf[k.d_buf + 2 * k.last_lit + 1] = 255 & V, k.pending_buf[k.l_buf + k.last_lit] = 255 & Z, k.last_lit++, V === 0 ? k.dyn_ltree[2 * Z]++ : (k.matches++, V--, k.dyn_ltree[2 * (E[Z] + m + 1)]++, k.dyn_dtree[2 * B(V)]++), k.last_lit === k.lit_bufsize - 1;
|
|
4921
4921
|
}, i._tr_align = function(k) {
|
|
4922
4922
|
F(k, 2, 3), K(k, x, N), function(V) {
|
|
4923
4923
|
V.bi_valid === 16 ? (z(V, V.bi_buf), V.bi_buf = 0, V.bi_valid = 0) : 8 <= V.bi_valid && (V.pending_buf[V.pending++] = 255 & V.bi_buf, V.bi_buf >>= 8, V.bi_valid -= 8);
|
|
@@ -5027,7 +5027,7 @@ function Wo() {
|
|
|
5027
5027
|
IDBCursor.prototype.continuePrimaryKey
|
|
5028
5028
|
]);
|
|
5029
5029
|
}
|
|
5030
|
-
const Zr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(),
|
|
5030
|
+
const Zr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap();
|
|
5031
5031
|
function Ko(s) {
|
|
5032
5032
|
const c = new Promise((e, t) => {
|
|
5033
5033
|
const i = () => {
|
|
@@ -5039,7 +5039,7 @@ function Ko(s) {
|
|
|
5039
5039
|
};
|
|
5040
5040
|
s.addEventListener("success", r), s.addEventListener("error", n);
|
|
5041
5041
|
});
|
|
5042
|
-
return
|
|
5042
|
+
return Pi.set(c, s), c;
|
|
5043
5043
|
}
|
|
5044
5044
|
function $o(s) {
|
|
5045
5045
|
if (Zr.has(s))
|
|
@@ -5092,9 +5092,9 @@ function Ut(s) {
|
|
|
5092
5092
|
if (or.has(s))
|
|
5093
5093
|
return or.get(s);
|
|
5094
5094
|
const c = Go(s);
|
|
5095
|
-
return c !== s && (or.set(s, c),
|
|
5095
|
+
return c !== s && (or.set(s, c), Pi.set(c, s)), c;
|
|
5096
5096
|
}
|
|
5097
|
-
const Qr = (s) =>
|
|
5097
|
+
const Qr = (s) => Pi.get(s);
|
|
5098
5098
|
function Jo(s, c, { blocked: e, upgrade: t, blocking: i, terminated: r } = {}) {
|
|
5099
5099
|
const n = indexedDB.open(s, c), a = Ut(n);
|
|
5100
5100
|
return t && n.addEventListener("upgradeneeded", (o) => {
|
|
@@ -5154,7 +5154,7 @@ function ec(...s) {
|
|
|
5154
5154
|
return;
|
|
5155
5155
|
c = c;
|
|
5156
5156
|
const e = new Proxy(c, Qo);
|
|
5157
|
-
for (Ca.set(e, c),
|
|
5157
|
+
for (Ca.set(e, c), Pi.set(e, Qr(c)); c; )
|
|
5158
5158
|
yield e, c = yield new Ei(es.get(e) || c.continue()), es.delete(e);
|
|
5159
5159
|
});
|
|
5160
5160
|
}
|
|
@@ -6236,8 +6236,8 @@ function Kt() {
|
|
|
6236
6236
|
var v = g + b, x = d[v];
|
|
6237
6237
|
d[v] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
6238
6238
|
}
|
|
6239
|
-
var y = this._hash.words, A = d[g + 0], I = d[g + 1], w = d[g + 2], R = d[g + 3], L = d[g + 4], D = d[g + 5], N = d[g + 6], C = d[g + 7], M = d[g + 8], E = d[g + 9], U = d[g + 10],
|
|
6240
|
-
T = m(T,
|
|
6239
|
+
var y = this._hash.words, A = d[g + 0], I = d[g + 1], w = d[g + 2], R = d[g + 3], L = d[g + 4], D = d[g + 5], N = d[g + 6], C = d[g + 7], M = d[g + 8], E = d[g + 9], U = d[g + 10], ie = d[g + 11], q = d[g + 12], oe = d[g + 13], $ = d[g + 14], se = d[g + 15], T = y[0], B = y[1], z = y[2], F = y[3];
|
|
6240
|
+
T = m(T, B, z, F, A, 7, u[0]), F = m(F, T, B, z, I, 12, u[1]), z = m(z, F, T, B, w, 17, u[2]), B = m(B, z, F, T, R, 22, u[3]), T = m(T, B, z, F, L, 7, u[4]), F = m(F, T, B, z, D, 12, u[5]), z = m(z, F, T, B, N, 17, u[6]), B = m(B, z, F, T, C, 22, u[7]), T = m(T, B, z, F, M, 7, u[8]), F = m(F, T, B, z, E, 12, u[9]), z = m(z, F, T, B, U, 17, u[10]), B = m(B, z, F, T, ie, 22, u[11]), T = m(T, B, z, F, q, 7, u[12]), F = m(F, T, B, z, oe, 12, u[13]), z = m(z, F, T, B, $, 17, u[14]), B = m(B, z, F, T, se, 22, u[15]), T = f(T, B, z, F, I, 5, u[16]), F = f(F, T, B, z, N, 9, u[17]), z = f(z, F, T, B, ie, 14, u[18]), B = f(B, z, F, T, A, 20, u[19]), T = f(T, B, z, F, D, 5, u[20]), F = f(F, T, B, z, U, 9, u[21]), z = f(z, F, T, B, se, 14, u[22]), B = f(B, z, F, T, L, 20, u[23]), T = f(T, B, z, F, E, 5, u[24]), F = f(F, T, B, z, $, 9, u[25]), z = f(z, F, T, B, R, 14, u[26]), B = f(B, z, F, T, M, 20, u[27]), T = f(T, B, z, F, oe, 5, u[28]), F = f(F, T, B, z, w, 9, u[29]), z = f(z, F, T, B, C, 14, u[30]), B = f(B, z, F, T, q, 20, u[31]), T = l(T, B, z, F, D, 4, u[32]), F = l(F, T, B, z, M, 11, u[33]), z = l(z, F, T, B, ie, 16, u[34]), B = l(B, z, F, T, $, 23, u[35]), T = l(T, B, z, F, I, 4, u[36]), F = l(F, T, B, z, L, 11, u[37]), z = l(z, F, T, B, C, 16, u[38]), B = l(B, z, F, T, U, 23, u[39]), T = l(T, B, z, F, oe, 4, u[40]), F = l(F, T, B, z, A, 11, u[41]), z = l(z, F, T, B, R, 16, u[42]), B = l(B, z, F, T, N, 23, u[43]), T = l(T, B, z, F, E, 4, u[44]), F = l(F, T, B, z, q, 11, u[45]), z = l(z, F, T, B, se, 16, u[46]), B = l(B, z, F, T, w, 23, u[47]), T = p(T, B, z, F, A, 6, u[48]), F = p(F, T, B, z, C, 10, u[49]), z = p(z, F, T, B, $, 15, u[50]), B = p(B, z, F, T, D, 21, u[51]), T = p(T, B, z, F, q, 6, u[52]), F = p(F, T, B, z, R, 10, u[53]), z = p(z, F, T, B, U, 15, u[54]), B = p(B, z, F, T, I, 21, u[55]), T = p(T, B, z, F, M, 6, u[56]), F = p(F, T, B, z, se, 10, u[57]), z = p(z, F, T, B, N, 15, u[58]), B = p(B, z, F, T, oe, 21, u[59]), T = p(T, B, z, F, L, 6, u[60]), F = p(F, T, B, z, ie, 10, u[61]), z = p(z, F, T, B, w, 15, u[62]), B = p(B, z, F, T, E, 21, u[63]), y[0] = y[0] + T | 0, y[1] = y[1] + B | 0, y[2] = y[2] + z | 0, y[3] = y[3] + F | 0;
|
|
6241
6241
|
},
|
|
6242
6242
|
_doFinalize: function() {
|
|
6243
6243
|
var d = this._data, g = d.words, b = this._nDataBytes * 8, v = d.sigBytes * 8;
|
|
@@ -6353,7 +6353,7 @@ function ls() {
|
|
|
6353
6353
|
var L = m[R - 15], D = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, N = m[R - 2], C = (N << 15 | N >>> 17) ^ (N << 13 | N >>> 19) ^ N >>> 10;
|
|
6354
6354
|
m[R] = D + m[R - 7] + C + m[R - 16];
|
|
6355
6355
|
}
|
|
6356
|
-
var M = y & A ^ ~y & I, E = g & b ^ g & v ^ b & v, U = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22),
|
|
6356
|
+
var M = y & A ^ ~y & I, E = g & b ^ g & v ^ b & v, U = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22), ie = (y << 26 | y >>> 6) ^ (y << 21 | y >>> 11) ^ (y << 7 | y >>> 25), q = w + ie + M + h[R] + m[R], oe = U + E;
|
|
6357
6357
|
w = I, I = A, A = y, y = x + q | 0, x = v, v = b, b = g, g = q + oe | 0;
|
|
6358
6358
|
}
|
|
6359
6359
|
d[0] = d[0] + g | 0, d[1] = d[1] + b | 0, d[2] = d[2] + v | 0, d[3] = d[3] + x | 0, d[4] = d[4] + y | 0, d[5] = d[5] + A | 0, d[6] = d[6] + I | 0, d[7] = d[7] + w | 0;
|
|
@@ -6513,18 +6513,18 @@ function Da() {
|
|
|
6513
6513
|
]);
|
|
6514
6514
|
},
|
|
6515
6515
|
_doProcessBlock: function(p, d) {
|
|
6516
|
-
for (var g = this._hash.words, b = g[0], v = g[1], x = g[2], y = g[3], A = g[4], I = g[5], w = g[6], R = g[7], L = b.high, D = b.low, N = v.high, C = v.low, M = x.high, E = x.low, U = y.high,
|
|
6516
|
+
for (var g = this._hash.words, b = g[0], v = g[1], x = g[2], y = g[3], A = g[4], I = g[5], w = g[6], R = g[7], L = b.high, D = b.low, N = v.high, C = v.low, M = x.high, E = x.low, U = y.high, ie = y.low, q = A.high, oe = A.low, $ = I.high, se = I.low, T = w.high, B = w.low, z = R.high, F = R.low, K = L, Q = D, pe = N, ce = C, ve = M, Ce = E, Ae = U, Fe = ie, Ie = q, S = oe, J = $, W = se, P = T, k = B, V = z, Z = F, X = 0; X < 80; X++) {
|
|
6517
6517
|
var H, ee, he = f[X];
|
|
6518
6518
|
if (X < 16)
|
|
6519
6519
|
ee = he.high = p[d + X * 2] | 0, H = he.low = p[d + X * 2 + 1] | 0;
|
|
6520
6520
|
else {
|
|
6521
|
-
var
|
|
6522
|
-
H = Ke + bi, ee = xe + lt + (H >>> 0 < Ke >>> 0 ? 1 : 0), H = H + gt, ee = ee +
|
|
6521
|
+
var re = f[X - 15], fe = re.high, _e = re.low, xe = (fe >>> 1 | _e << 31) ^ (fe >>> 8 | _e << 24) ^ fe >>> 7, Ke = (_e >>> 1 | fe << 31) ^ (_e >>> 8 | fe << 24) ^ (_e >>> 7 | fe << 25), mt = f[X - 2], Me = mt.high, it = mt.low, Pe = (Me >>> 19 | it << 13) ^ (Me << 3 | it >>> 29) ^ Me >>> 6, gt = (it >>> 19 | Me << 13) ^ (it << 3 | Me >>> 29) ^ (it >>> 6 | Me << 26), $t = f[X - 7], lt = $t.high, bi = $t.low, xi = f[X - 16], ji = xi.high, Si = xi.low;
|
|
6522
|
+
H = Ke + bi, ee = xe + lt + (H >>> 0 < Ke >>> 0 ? 1 : 0), H = H + gt, ee = ee + Pe + (H >>> 0 < gt >>> 0 ? 1 : 0), H = H + Si, ee = ee + ji + (H >>> 0 < Si >>> 0 ? 1 : 0), he.high = ee, he.low = H;
|
|
6523
6523
|
}
|
|
6524
|
-
var _i =
|
|
6525
|
-
V =
|
|
6524
|
+
var _i = Ie & J ^ ~Ie & P, Et = S & W ^ ~S & k, qt = K & pe ^ K & ve ^ pe & ve, Qa = Q & ce ^ Q & Ce ^ ce & Ce, eo = (K >>> 28 | Q << 4) ^ (K << 30 | Q >>> 2) ^ (K << 25 | Q >>> 7), As = (Q >>> 28 | K << 4) ^ (Q << 30 | K >>> 2) ^ (Q << 25 | K >>> 7), to = (Ie >>> 14 | S << 18) ^ (Ie >>> 18 | S << 14) ^ (Ie << 23 | S >>> 9), io = (S >>> 14 | Ie << 18) ^ (S >>> 18 | Ie << 14) ^ (S << 23 | Ie >>> 9), ws = m[X], ro = ws.high, Cs = ws.low, at = Z + io, At = V + to + (at >>> 0 < Z >>> 0 ? 1 : 0), at = at + Et, At = At + _i + (at >>> 0 < Et >>> 0 ? 1 : 0), at = at + Cs, At = At + ro + (at >>> 0 < Cs >>> 0 ? 1 : 0), at = at + H, At = At + ee + (at >>> 0 < H >>> 0 ? 1 : 0), Is = As + Qa, so = eo + qt + (Is >>> 0 < As >>> 0 ? 1 : 0);
|
|
6525
|
+
V = P, Z = k, P = J, k = W, J = Ie, W = S, S = Fe + at | 0, Ie = Ae + At + (S >>> 0 < Fe >>> 0 ? 1 : 0) | 0, Ae = ve, Fe = Ce, ve = pe, Ce = ce, pe = K, ce = Q, Q = at + Is | 0, K = At + so + (Q >>> 0 < at >>> 0 ? 1 : 0) | 0;
|
|
6526
6526
|
}
|
|
6527
|
-
D = b.low = D + Q, b.high = L + K + (D >>> 0 < Q >>> 0 ? 1 : 0), C = v.low = C + ce, v.high = N + pe + (C >>> 0 < ce >>> 0 ? 1 : 0), E = x.low = E +
|
|
6527
|
+
D = b.low = D + Q, b.high = L + K + (D >>> 0 < Q >>> 0 ? 1 : 0), C = v.low = C + ce, v.high = N + pe + (C >>> 0 < ce >>> 0 ? 1 : 0), E = x.low = E + Ce, x.high = M + ve + (E >>> 0 < Ce >>> 0 ? 1 : 0), ie = y.low = ie + Fe, y.high = U + Ae + (ie >>> 0 < Fe >>> 0 ? 1 : 0), oe = A.low = oe + S, A.high = q + Ie + (oe >>> 0 < S >>> 0 ? 1 : 0), se = I.low = se + W, I.high = $ + J + (se >>> 0 < W >>> 0 ? 1 : 0), B = w.low = B + k, w.high = T + P + (B >>> 0 < k >>> 0 ? 1 : 0), F = R.low = F + Z, R.high = z + V + (F >>> 0 < Z >>> 0 ? 1 : 0);
|
|
6528
6528
|
},
|
|
6529
6529
|
_doFinalize: function() {
|
|
6530
6530
|
var p = this._data, d = p.words, g = this._nDataBytes * 8, b = p.sigBytes * 8;
|
|
@@ -6640,15 +6640,15 @@ function pc() {
|
|
|
6640
6640
|
M.high = D, M.low = N;
|
|
6641
6641
|
}
|
|
6642
6642
|
for (var L = 0; L < 5; L++)
|
|
6643
|
-
for (var E = p[(L + 4) % 5], U = p[(L + 1) % 5],
|
|
6643
|
+
for (var E = p[(L + 4) % 5], U = p[(L + 1) % 5], ie = U.high, q = U.low, D = E.high ^ (ie << 1 | q >>> 31), N = E.low ^ (q << 1 | ie >>> 31), C = 0; C < 5; C++) {
|
|
6644
6644
|
var w = v[L + 5 * C];
|
|
6645
6645
|
w.high ^= D, w.low ^= N;
|
|
6646
6646
|
}
|
|
6647
6647
|
for (var oe = 1; oe < 25; oe++) {
|
|
6648
6648
|
var D, N, w = v[oe], $ = w.high, se = w.low, T = m[oe];
|
|
6649
6649
|
T < 32 ? (D = $ << T | se >>> 32 - T, N = se << T | $ >>> 32 - T) : (D = se << T - 32 | $ >>> 64 - T, N = $ << T - 32 | se >>> 64 - T);
|
|
6650
|
-
var
|
|
6651
|
-
|
|
6650
|
+
var B = p[f[oe]];
|
|
6651
|
+
B.high = D, B.low = N;
|
|
6652
6652
|
}
|
|
6653
6653
|
var z = p[0], F = v[0];
|
|
6654
6654
|
z.high = F.high, z.low = F.low;
|
|
@@ -7033,11 +7033,11 @@ function mc() {
|
|
|
7033
7033
|
var L = w + R, D = I[L];
|
|
7034
7034
|
I[L] = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360;
|
|
7035
7035
|
}
|
|
7036
|
-
var N = this._hash.words, C = l.words, M = p.words, E = u.words, U = h.words,
|
|
7037
|
-
z = oe = N[0], F = $ = N[1], K = se = N[2], Q = T = N[3], pe =
|
|
7036
|
+
var N = this._hash.words, C = l.words, M = p.words, E = u.words, U = h.words, ie = m.words, q = f.words, oe, $, se, T, B, z, F, K, Q, pe;
|
|
7037
|
+
z = oe = N[0], F = $ = N[1], K = se = N[2], Q = T = N[3], pe = B = N[4];
|
|
7038
7038
|
for (var ce, R = 0; R < 80; R += 1)
|
|
7039
|
-
ce = oe + I[w + E[R]] | 0, R < 16 ? ce += g($, se, T) + C[0] : R < 32 ? ce += b($, se, T) + C[1] : R < 48 ? ce += v($, se, T) + C[2] : R < 64 ? ce += x($, se, T) + C[3] : ce += y($, se, T) + C[4], ce = ce | 0, ce = A(ce,
|
|
7040
|
-
ce = N[1] + se + Q | 0, N[1] = N[2] + T + pe | 0, N[2] = N[3] +
|
|
7039
|
+
ce = oe + I[w + E[R]] | 0, R < 16 ? ce += g($, se, T) + C[0] : R < 32 ? ce += b($, se, T) + C[1] : R < 48 ? ce += v($, se, T) + C[2] : R < 64 ? ce += x($, se, T) + C[3] : ce += y($, se, T) + C[4], ce = ce | 0, ce = A(ce, ie[R]), ce = ce + B | 0, oe = B, B = T, T = A(se, 10), se = $, $ = ce, ce = z + I[w + U[R]] | 0, R < 16 ? ce += y(F, K, Q) + M[0] : R < 32 ? ce += x(F, K, Q) + M[1] : R < 48 ? ce += v(F, K, Q) + M[2] : R < 64 ? ce += b(F, K, Q) + M[3] : ce += g(F, K, Q) + M[4], ce = ce | 0, ce = A(ce, q[R]), ce = ce + pe | 0, z = pe, pe = Q, Q = A(K, 10), K = F, F = ce;
|
|
7040
|
+
ce = N[1] + se + Q | 0, N[1] = N[2] + T + pe | 0, N[2] = N[3] + B + z | 0, N[3] = N[4] + oe + F | 0, N[4] = N[0] + $ + K | 0, N[0] = ce;
|
|
7041
7041
|
},
|
|
7042
7042
|
_doFinalize: function() {
|
|
7043
7043
|
var I = this._data, w = I.words, R = this._nDataBytes * 8, L = I.sigBytes * 8;
|
|
@@ -7076,9 +7076,9 @@ function mc() {
|
|
|
7076
7076
|
});
|
|
7077
7077
|
}(Er)), Er.exports;
|
|
7078
7078
|
}
|
|
7079
|
-
var Ar = { exports: {} },
|
|
7079
|
+
var Ar = { exports: {} }, Bn;
|
|
7080
7080
|
function fs() {
|
|
7081
|
-
return
|
|
7081
|
+
return Bn || (Bn = 1, function(s, c) {
|
|
7082
7082
|
(function(e, t) {
|
|
7083
7083
|
s.exports = t(Ee());
|
|
7084
7084
|
})(be, function(e) {
|
|
@@ -7154,9 +7154,9 @@ function fs() {
|
|
|
7154
7154
|
});
|
|
7155
7155
|
}(Ar)), Ar.exports;
|
|
7156
7156
|
}
|
|
7157
|
-
var wr = { exports: {} },
|
|
7157
|
+
var wr = { exports: {} }, Pn;
|
|
7158
7158
|
function gc() {
|
|
7159
|
-
return
|
|
7159
|
+
return Pn || (Pn = 1, function(s, c) {
|
|
7160
7160
|
(function(e, t, i) {
|
|
7161
7161
|
s.exports = t(Ee(), ls(), fs());
|
|
7162
7162
|
})(be, function(e) {
|
|
@@ -7222,7 +7222,7 @@ function gc() {
|
|
|
7222
7222
|
}(wr)), wr.exports;
|
|
7223
7223
|
}
|
|
7224
7224
|
var Cr = { exports: {} }, Ln;
|
|
7225
|
-
function
|
|
7225
|
+
function Bt() {
|
|
7226
7226
|
return Ln || (Ln = 1, function(s, c) {
|
|
7227
7227
|
(function(e, t, i) {
|
|
7228
7228
|
s.exports = t(Ee(), Ra(), fs());
|
|
@@ -7288,7 +7288,7 @@ var Ir = { exports: {} }, Mn;
|
|
|
7288
7288
|
function We() {
|
|
7289
7289
|
return Mn || (Mn = 1, function(s, c) {
|
|
7290
7290
|
(function(e, t, i) {
|
|
7291
|
-
s.exports = t(Ee(),
|
|
7291
|
+
s.exports = t(Ee(), Bt());
|
|
7292
7292
|
})(be, function(e) {
|
|
7293
7293
|
e.lib.Cipher || function(t) {
|
|
7294
7294
|
var i = e, r = i.lib, n = r.Base, a = r.WordArray, o = r.BufferedBlockAlgorithm, u = i.enc;
|
|
@@ -7505,13 +7505,13 @@ function We() {
|
|
|
7505
7505
|
* mode.processBlock(data.words, offset);
|
|
7506
7506
|
*/
|
|
7507
7507
|
processBlock: function(C, M) {
|
|
7508
|
-
var E = this._cipher, U = E.blockSize,
|
|
7509
|
-
E.decryptBlock(C, M), N.call(this, C, M, U), this._prevBlock =
|
|
7508
|
+
var E = this._cipher, U = E.blockSize, ie = C.slice(M, M + U);
|
|
7509
|
+
E.decryptBlock(C, M), N.call(this, C, M, U), this._prevBlock = ie;
|
|
7510
7510
|
}
|
|
7511
7511
|
});
|
|
7512
7512
|
function N(C, M, E) {
|
|
7513
|
-
var U,
|
|
7514
|
-
|
|
7513
|
+
var U, ie = this._iv;
|
|
7514
|
+
ie ? (U = ie, this._iv = t) : U = this._prevBlock;
|
|
7515
7515
|
for (var q = 0; q < E; q++)
|
|
7516
7516
|
C[M + q] ^= U[q];
|
|
7517
7517
|
}
|
|
@@ -7530,7 +7530,7 @@ function We() {
|
|
|
7530
7530
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
7531
7531
|
*/
|
|
7532
7532
|
pad: function(D, N) {
|
|
7533
|
-
for (var C = N * 4, M = C - D.sigBytes % C, E = M << 24 | M << 16 | M << 8 | M, U = [],
|
|
7533
|
+
for (var C = N * 4, M = C - D.sigBytes % C, E = M << 24 | M << 16 | M << 8 | M, U = [], ie = 0; ie < M; ie += 4)
|
|
7534
7534
|
U.push(E);
|
|
7535
7535
|
var q = a.create(U, M);
|
|
7536
7536
|
D.concat(q);
|
|
@@ -7682,14 +7682,14 @@ function We() {
|
|
|
7682
7682
|
*/
|
|
7683
7683
|
encrypt: function(D, N, C, M) {
|
|
7684
7684
|
M = this.cfg.extend(M);
|
|
7685
|
-
var E = D.createEncryptor(C, M), U = E.finalize(N),
|
|
7685
|
+
var E = D.createEncryptor(C, M), U = E.finalize(N), ie = E.cfg;
|
|
7686
7686
|
return x.create({
|
|
7687
7687
|
ciphertext: U,
|
|
7688
7688
|
key: C,
|
|
7689
|
-
iv:
|
|
7689
|
+
iv: ie.iv,
|
|
7690
7690
|
algorithm: D,
|
|
7691
|
-
mode:
|
|
7692
|
-
padding:
|
|
7691
|
+
mode: ie.mode,
|
|
7692
|
+
padding: ie.padding,
|
|
7693
7693
|
blockSize: D.blockSize,
|
|
7694
7694
|
formatter: M.format
|
|
7695
7695
|
});
|
|
@@ -7757,8 +7757,8 @@ function We() {
|
|
|
7757
7757
|
var U = f.create({ keySize: N + C, hasher: E }).compute(D, M);
|
|
7758
7758
|
else
|
|
7759
7759
|
var U = f.create({ keySize: N + C }).compute(D, M);
|
|
7760
|
-
var
|
|
7761
|
-
return U.sigBytes = N * 4, x.create({ key: U, iv:
|
|
7760
|
+
var ie = a.create(U.words.slice(N), C * 4);
|
|
7761
|
+
return U.sigBytes = N * 4, x.create({ key: U, iv: ie, salt: M });
|
|
7762
7762
|
}
|
|
7763
7763
|
}, L = r.PasswordBasedCipher = I.extend({
|
|
7764
7764
|
/**
|
|
@@ -7933,7 +7933,7 @@ function Sc() {
|
|
|
7933
7933
|
});
|
|
7934
7934
|
}(Tr)), Tr.exports;
|
|
7935
7935
|
}
|
|
7936
|
-
var
|
|
7936
|
+
var Br = { exports: {} }, Un;
|
|
7937
7937
|
function _c() {
|
|
7938
7938
|
return Un || (Un = 1, function(s, c) {
|
|
7939
7939
|
(function(e, t, i) {
|
|
@@ -7952,9 +7952,9 @@ function _c() {
|
|
|
7952
7952
|
}), t;
|
|
7953
7953
|
}(), e.mode.ECB;
|
|
7954
7954
|
});
|
|
7955
|
-
}(
|
|
7955
|
+
}(Br)), Br.exports;
|
|
7956
7956
|
}
|
|
7957
|
-
var
|
|
7957
|
+
var Pr = { exports: {} }, Hn;
|
|
7958
7958
|
function yc() {
|
|
7959
7959
|
return Hn || (Hn = 1, function(s, c) {
|
|
7960
7960
|
(function(e, t, i) {
|
|
@@ -7971,7 +7971,7 @@ function yc() {
|
|
|
7971
7971
|
}
|
|
7972
7972
|
}, e.pad.Ansix923;
|
|
7973
7973
|
});
|
|
7974
|
-
}(
|
|
7974
|
+
}(Pr)), Pr.exports;
|
|
7975
7975
|
}
|
|
7976
7976
|
var Lr = { exports: {} }, zn;
|
|
7977
7977
|
function Ec() {
|
|
@@ -8097,7 +8097,7 @@ var Vr = { exports: {} }, qn;
|
|
|
8097
8097
|
function Rc() {
|
|
8098
8098
|
return qn || (qn = 1, function(s, c) {
|
|
8099
8099
|
(function(e, t, i) {
|
|
8100
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
8100
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
8101
8101
|
})(be, function(e) {
|
|
8102
8102
|
return function() {
|
|
8103
8103
|
var t = e, i = t.lib, r = i.BlockCipher, n = t.algo, a = [], o = [], u = [], h = [], m = [], f = [], l = [], p = [], d = [], g = [];
|
|
@@ -8139,11 +8139,11 @@ function Rc() {
|
|
|
8139
8139
|
x[y + 1] = x[y + 3], x[y + 3] = A;
|
|
8140
8140
|
},
|
|
8141
8141
|
_doCryptBlock: function(x, y, A, I, w, R, L, D) {
|
|
8142
|
-
for (var N = this._nRounds, C = x[y] ^ A[0], M = x[y + 1] ^ A[1], E = x[y + 2] ^ A[2], U = x[y + 3] ^ A[3],
|
|
8143
|
-
var oe = I[C >>> 24] ^ w[M >>> 16 & 255] ^ R[E >>> 8 & 255] ^ L[U & 255] ^ A[
|
|
8142
|
+
for (var N = this._nRounds, C = x[y] ^ A[0], M = x[y + 1] ^ A[1], E = x[y + 2] ^ A[2], U = x[y + 3] ^ A[3], ie = 4, q = 1; q < N; q++) {
|
|
8143
|
+
var oe = I[C >>> 24] ^ w[M >>> 16 & 255] ^ R[E >>> 8 & 255] ^ L[U & 255] ^ A[ie++], $ = I[M >>> 24] ^ w[E >>> 16 & 255] ^ R[U >>> 8 & 255] ^ L[C & 255] ^ A[ie++], se = I[E >>> 24] ^ w[U >>> 16 & 255] ^ R[C >>> 8 & 255] ^ L[M & 255] ^ A[ie++], T = I[U >>> 24] ^ w[C >>> 16 & 255] ^ R[M >>> 8 & 255] ^ L[E & 255] ^ A[ie++];
|
|
8144
8144
|
C = oe, M = $, E = se, U = T;
|
|
8145
8145
|
}
|
|
8146
|
-
var oe = (D[C >>> 24] << 24 | D[M >>> 16 & 255] << 16 | D[E >>> 8 & 255] << 8 | D[U & 255]) ^ A[
|
|
8146
|
+
var oe = (D[C >>> 24] << 24 | D[M >>> 16 & 255] << 16 | D[E >>> 8 & 255] << 8 | D[U & 255]) ^ A[ie++], $ = (D[M >>> 24] << 24 | D[E >>> 16 & 255] << 16 | D[U >>> 8 & 255] << 8 | D[C & 255]) ^ A[ie++], se = (D[E >>> 24] << 24 | D[U >>> 16 & 255] << 16 | D[C >>> 8 & 255] << 8 | D[M & 255]) ^ A[ie++], T = (D[U >>> 24] << 24 | D[C >>> 16 & 255] << 16 | D[M >>> 8 & 255] << 8 | D[E & 255]) ^ A[ie++];
|
|
8147
8147
|
x[y] = oe, x[y + 1] = $, x[y + 2] = se, x[y + 3] = T;
|
|
8148
8148
|
},
|
|
8149
8149
|
keySize: 256 / 32
|
|
@@ -8157,7 +8157,7 @@ var Ur = { exports: {} }, Gn;
|
|
|
8157
8157
|
function Dc() {
|
|
8158
8158
|
return Gn || (Gn = 1, function(s, c) {
|
|
8159
8159
|
(function(e, t, i) {
|
|
8160
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
8160
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
8161
8161
|
})(be, function(e) {
|
|
8162
8162
|
return function() {
|
|
8163
8163
|
var t = e, i = t.lib, r = i.WordArray, n = i.BlockCipher, a = t.algo, o = [
|
|
@@ -8877,7 +8877,7 @@ var Hr = { exports: {} }, Jn;
|
|
|
8877
8877
|
function kc() {
|
|
8878
8878
|
return Jn || (Jn = 1, function(s, c) {
|
|
8879
8879
|
(function(e, t, i) {
|
|
8880
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
8880
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
8881
8881
|
})(be, function(e) {
|
|
8882
8882
|
return function() {
|
|
8883
8883
|
var t = e, i = t.lib, r = i.StreamCipher, n = t.algo, a = n.RC4 = r.extend({
|
|
@@ -8931,7 +8931,7 @@ var zr = { exports: {} }, Xn;
|
|
|
8931
8931
|
function Tc() {
|
|
8932
8932
|
return Xn || (Xn = 1, function(s, c) {
|
|
8933
8933
|
(function(e, t, i) {
|
|
8934
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
8934
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
8935
8935
|
})(be, function(e) {
|
|
8936
8936
|
return function() {
|
|
8937
8937
|
var t = e, i = t.lib, r = i.StreamCipher, n = t.algo, a = [], o = [], u = [], h = n.Rabbit = r.extend({
|
|
@@ -8994,10 +8994,10 @@ function Tc() {
|
|
|
8994
8994
|
}(zr)), zr.exports;
|
|
8995
8995
|
}
|
|
8996
8996
|
var jr = { exports: {} }, Zn;
|
|
8997
|
-
function
|
|
8997
|
+
function Bc() {
|
|
8998
8998
|
return Zn || (Zn = 1, function(s, c) {
|
|
8999
8999
|
(function(e, t, i) {
|
|
9000
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
9000
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
9001
9001
|
})(be, function(e) {
|
|
9002
9002
|
return function() {
|
|
9003
9003
|
var t = e, i = t.lib, r = i.StreamCipher, n = t.algo, a = [], o = [], u = [], h = n.RabbitLegacy = r.extend({
|
|
@@ -9058,10 +9058,10 @@ function Pc() {
|
|
|
9058
9058
|
}(jr)), jr.exports;
|
|
9059
9059
|
}
|
|
9060
9060
|
var Wr = { exports: {} }, Yn;
|
|
9061
|
-
function
|
|
9061
|
+
function Pc() {
|
|
9062
9062
|
return Yn || (Yn = 1, function(s, c) {
|
|
9063
9063
|
(function(e, t, i) {
|
|
9064
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
9064
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
9065
9065
|
})(be, function(e) {
|
|
9066
9066
|
return function() {
|
|
9067
9067
|
var t = e, i = t.lib, r = i.BlockCipher, n = t.algo;
|
|
@@ -10181,7 +10181,7 @@ function Bc() {
|
|
|
10181
10181
|
}
|
|
10182
10182
|
(function(s, c) {
|
|
10183
10183
|
(function(e, t, i) {
|
|
10184
|
-
s.exports = t(Ee(), Ni(), uc(), hc(), Wt(), dc(), Kt(), Ra(), ls(), lc(), Da(), fc(), pc(), mc(), fs(), gc(),
|
|
10184
|
+
s.exports = t(Ee(), Ni(), uc(), hc(), Wt(), dc(), Kt(), Ra(), ls(), lc(), Da(), fc(), pc(), mc(), fs(), gc(), Bt(), We(), vc(), bc(), xc(), Sc(), _c(), yc(), Ec(), Ac(), wc(), Cc(), Ic(), Rc(), Dc(), kc(), Tc(), Bc(), Pc());
|
|
10185
10185
|
})(be, function(e) {
|
|
10186
10186
|
return e;
|
|
10187
10187
|
});
|
|
@@ -10480,7 +10480,7 @@ function Gc(s, c, e) {
|
|
|
10480
10480
|
}
|
|
10481
10481
|
});
|
|
10482
10482
|
}
|
|
10483
|
-
class
|
|
10483
|
+
class Ba extends Wc {
|
|
10484
10484
|
constructor(c) {
|
|
10485
10485
|
const e = Object.assign({}, c, {
|
|
10486
10486
|
installUnloadHook: (t) => {
|
|
@@ -10500,7 +10500,7 @@ class Pa extends Wc {
|
|
|
10500
10500
|
}, this.overwriteTransString(c);
|
|
10501
10501
|
}
|
|
10502
10502
|
}
|
|
10503
|
-
Ta(window, "SLS_Tracker",
|
|
10503
|
+
Ta(window, "SLS_Tracker", Ba);
|
|
10504
10504
|
function Jc(s) {
|
|
10505
10505
|
return fi.MD5(s).toString().toUpperCase();
|
|
10506
10506
|
}
|
|
@@ -10574,7 +10574,7 @@ var Qc = (s, c, e) => new Promise((t, i) => {
|
|
|
10574
10574
|
}, a = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(r, n);
|
|
10575
10575
|
a((e = e.apply(s, c)).next());
|
|
10576
10576
|
});
|
|
10577
|
-
function
|
|
10577
|
+
function Pa(s) {
|
|
10578
10578
|
return {
|
|
10579
10579
|
transString: function(c) {
|
|
10580
10580
|
let e = {}, t = 0, i = !1;
|
|
@@ -10605,8 +10605,8 @@ function Ba(s) {
|
|
|
10605
10605
|
}
|
|
10606
10606
|
};
|
|
10607
10607
|
}
|
|
10608
|
-
typeof window != "undefined" && Ta(window, "stsPlugin",
|
|
10609
|
-
const { BrowserUtil: e0 } =
|
|
10608
|
+
typeof window != "undefined" && Ta(window, "stsPlugin", Pa);
|
|
10609
|
+
const { BrowserUtil: e0 } = we, Xt = {
|
|
10610
10610
|
EdgeHTML: "EdgeHTML",
|
|
10611
10611
|
Blink: "Blink",
|
|
10612
10612
|
Trident: "Trident",
|
|
@@ -10822,7 +10822,7 @@ const { BrowserUtil: e0 } = Re, Xt = {
|
|
|
10822
10822
|
} catch (c) {
|
|
10823
10823
|
}
|
|
10824
10824
|
return s;
|
|
10825
|
-
}, { BrowserUtil: $r, SystenUtil: ra } =
|
|
10825
|
+
}, { BrowserUtil: $r, SystenUtil: ra } = we;
|
|
10826
10826
|
class sa {
|
|
10827
10827
|
constructor() {
|
|
10828
10828
|
_(this, "tracker");
|
|
@@ -10837,7 +10837,7 @@ class sa {
|
|
|
10837
10837
|
if (!this.tracker && this.slsToken && this.param) {
|
|
10838
10838
|
const c = this.slsToken;
|
|
10839
10839
|
this.ossToken && (this.param.ossbn = this.ossToken.bucket_name, this.param.ossep = this.ossToken.region_endpoint);
|
|
10840
|
-
const e = new
|
|
10840
|
+
const e = new Ba({
|
|
10841
10841
|
host: c.region_endpoint,
|
|
10842
10842
|
project: c.project,
|
|
10843
10843
|
logstore: c.log_store_stats
|
|
@@ -10851,7 +10851,7 @@ class sa {
|
|
|
10851
10851
|
}
|
|
10852
10852
|
};
|
|
10853
10853
|
this.stsOpt = t;
|
|
10854
|
-
const i =
|
|
10854
|
+
const i = Pa(t);
|
|
10855
10855
|
e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((r, n) => {
|
|
10856
10856
|
var a, o;
|
|
10857
10857
|
(o = this.tracker) == null || o.send(me(vt(me({}, this.param), { stat_log_id: `${((a = this.param) == null ? void 0 : a.sesid) || "nosession"}-${n}` }), r));
|
|
@@ -10927,7 +10927,7 @@ class sa {
|
|
|
10927
10927
|
});
|
|
10928
10928
|
}
|
|
10929
10929
|
}
|
|
10930
|
-
const
|
|
10930
|
+
const Be = (s, c = 1, e = 6e4, t = 0) => {
|
|
10931
10931
|
let i = s;
|
|
10932
10932
|
return i || (i = 0), Math.min(e, Math.max(t, Math.round(i * c)));
|
|
10933
10933
|
}, ut = (s, c, e = 2e7, t = 0) => {
|
|
@@ -10935,19 +10935,19 @@ const Pe = (s, c = 1, e = 6e4, t = 0) => {
|
|
|
10935
10935
|
(!c || c < 0 || c > 1e4) && (i = 1e3);
|
|
10936
10936
|
let r = s;
|
|
10937
10937
|
return r || (r = 0), Math.min(e, Math.max(t, Math.round(r / (i / 1e3))));
|
|
10938
|
-
},
|
|
10938
|
+
}, Pt = (s, c) => {
|
|
10939
10939
|
if (c === 0 || !c)
|
|
10940
10940
|
return "0.00";
|
|
10941
10941
|
let e = s;
|
|
10942
10942
|
return (!e || e < 0) && (e = 0), (e / c * 100).toFixed(2);
|
|
10943
|
-
}, na = (s) => s >= 0 && s <= 1 ?
|
|
10943
|
+
}, na = (s) => s >= 0 && s <= 1 ? Be(Math.floor(32767 * s), 1, 32767) : 0, Le = (s, c) => {
|
|
10944
10944
|
var t, i, r;
|
|
10945
10945
|
let e = ((t = s._last) == null ? void 0 : t[c]) || 0;
|
|
10946
10946
|
return s.ssrc && ((i = s._last) != null && i.ssrc) && s.ssrc !== ((r = s._last) == null ? void 0 : r.ssrc) && (e = 0), ((s == null ? void 0 : s[c]) || 0) - e;
|
|
10947
10947
|
}, o0 = (s, c) => {
|
|
10948
10948
|
var e, t, i;
|
|
10949
10949
|
return (((e = s == null ? void 0 : s._source) == null ? void 0 : e[c]) || 0) - (((i = (t = s == null ? void 0 : s._last) == null ? void 0 : t._source) == null ? void 0 : i[c]) || 0);
|
|
10950
|
-
}, aa = (s, c) =>
|
|
10950
|
+
}, aa = (s, c) => Be(Le(s, c), 1e3, 1e4), Lt = (s, c = 2e7) => Be(s, 1, c), di = class di {
|
|
10951
10951
|
constructor(c) {
|
|
10952
10952
|
_(this, "engine");
|
|
10953
10953
|
_(this, "logClient");
|
|
@@ -10996,25 +10996,25 @@ const Pe = (s, c = 1, e = 6e4, t = 0) => {
|
|
|
10996
10996
|
var z, F, K, Q, pe, ce;
|
|
10997
10997
|
if (!N || !N.timestamp)
|
|
10998
10998
|
return;
|
|
10999
|
-
const C = (z = N._last) != null && z.timestamp ? N.timestamp - N._last.timestamp : 1e3, M = Le(N, "bytesSent"), E = Le(N, "headerBytesSent"), U = ut(
|
|
10999
|
+
const C = (z = N._last) != null && z.timestamp ? N.timestamp - N._last.timestamp : 1e3, M = Le(N, "bytesSent"), E = Le(N, "headerBytesSent"), U = ut(Be(M + E, 8, 2e7), C);
|
|
11000
11000
|
o.push(U);
|
|
11001
|
-
const
|
|
11002
|
-
u.push(
|
|
11003
|
-
const q = ut(
|
|
11001
|
+
const ie = ut(Be(M, 8, 2e7), C);
|
|
11002
|
+
u.push(ie);
|
|
11003
|
+
const q = ut(Be(E, 8, 2e7), C);
|
|
11004
11004
|
h.push(q);
|
|
11005
11005
|
const oe = Le(N, "packetsSent"), $ = ut(oe, C);
|
|
11006
11006
|
m.push($);
|
|
11007
11007
|
const se = Le(N, "packetsLost"), T = ut(se, C);
|
|
11008
11008
|
f.push(T);
|
|
11009
|
-
const
|
|
11010
|
-
if (l.push(
|
|
11009
|
+
const B = Pt(se, oe);
|
|
11010
|
+
if (l.push(B), n)
|
|
11011
11011
|
(F = N._source) != null && F.audioLevel && p.push(na(N._source.audioLevel)), d.push(0);
|
|
11012
11012
|
else {
|
|
11013
11013
|
g.push(aa(N, "totalEncodeTime")), b.push(Lt((K = N._source) == null ? void 0 : K.framesPerSecond, 100)), v.push(Lt((Q = N._source) == null ? void 0 : Q.framesPerSecond, 100)), x.push(Lt(N.framesPerSecond, 100)), y.push(Lt((pe = N._source) == null ? void 0 : pe.height, 4400)), A.push(Lt((ce = N._source) == null ? void 0 : ce.width, 7700)), I.push(Lt(N.frameHeight, 4400)), w.push(Lt(N.frameWidth, 7700));
|
|
11014
11014
|
const ve = Le(N, "totalPacketSendDelay");
|
|
11015
|
-
R.push(
|
|
11016
|
-
const
|
|
11017
|
-
L.push(
|
|
11015
|
+
R.push(Be(ve, 1 / (se || 1), 2e3));
|
|
11016
|
+
const Ce = Le(N, "qpSum");
|
|
11017
|
+
L.push(Be(Ce, 1 / (N.framesPerSecond || 1), 51)), D.push(0);
|
|
11018
11018
|
}
|
|
11019
11019
|
}), a.sbr = o.join(","), a.mbrs = u.join(","), a.pbrs = h.join(","), a.ps = m.join(","), a.pl = f.join(","), a.plr = l.join(","), n) {
|
|
11020
11020
|
const N = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
|
|
@@ -11041,62 +11041,62 @@ const Pe = (s, c = 1, e = 6e4, t = 0) => {
|
|
|
11041
11041
|
ctm: Math.floor(r[0].timestamp || 0),
|
|
11042
11042
|
src: r[0].ssrc || "",
|
|
11043
11043
|
codec: r[0]._codec || ""
|
|
11044
|
-
}, o = [], u = [], h = [], m = [], f = [], l = [], p = [], d = [], g = [], b = [], v = [], x = [], y = [], A = [], I = [], w = [], R = [], L = [], D = [], N = [], C = [], M = [], E = [], U = [],
|
|
11044
|
+
}, o = [], u = [], h = [], m = [], f = [], l = [], p = [], d = [], g = [], b = [], v = [], x = [], y = [], A = [], I = [], w = [], R = [], L = [], D = [], N = [], C = [], M = [], E = [], U = [], ie = [], q = [], oe = [], $ = [], se = [], T = [], B = [], z = [], F = [], K = [];
|
|
11045
11045
|
try {
|
|
11046
11046
|
r.forEach((Q) => {
|
|
11047
11047
|
var ee, he;
|
|
11048
11048
|
if (!Q || !Q.timestamp)
|
|
11049
11049
|
return;
|
|
11050
|
-
const pe = (ee = Q._last) != null && ee.timestamp ? Q.timestamp - Q._last.timestamp : 1e3, ce = Le(Q, "bytesReceived"), ve = Le(Q, "headerBytesReceived"),
|
|
11051
|
-
o.push(
|
|
11052
|
-
const Ae = ut(
|
|
11050
|
+
const pe = (ee = Q._last) != null && ee.timestamp ? Q.timestamp - Q._last.timestamp : 1e3, ce = Le(Q, "bytesReceived"), ve = Le(Q, "headerBytesReceived"), Ce = ut(Be(ce + ve, 8, 2e7), pe);
|
|
11051
|
+
o.push(Ce);
|
|
11052
|
+
const Ae = ut(Be(ce, 8, 2e7), pe);
|
|
11053
11053
|
u.push(Ae);
|
|
11054
|
-
const Fe = ut(
|
|
11054
|
+
const Fe = ut(Be(ve, 8, 2e7), pe);
|
|
11055
11055
|
h.push(Fe);
|
|
11056
|
-
const
|
|
11056
|
+
const Ie = Le(Q, "packetsReceived"), S = ut(Ie, pe);
|
|
11057
11057
|
m.push(S);
|
|
11058
11058
|
const J = Le(Q, "packetsLost"), W = ut(J, pe);
|
|
11059
11059
|
f.push(W);
|
|
11060
|
-
const
|
|
11061
|
-
l.push(
|
|
11060
|
+
const P = Pt(J, Ie);
|
|
11061
|
+
l.push(P);
|
|
11062
11062
|
const k = Le(Q, "jitterBufferDelay"), V = Le(Q, "jitterBufferEmittedCount");
|
|
11063
11063
|
if (Q.jitterBufferDelay && Q.jitterBufferEmittedCount) {
|
|
11064
|
-
const
|
|
11065
|
-
p.push(
|
|
11064
|
+
const re = Be(k, 1e3 / V, 1e4);
|
|
11065
|
+
p.push(re);
|
|
11066
11066
|
} else
|
|
11067
11067
|
p.push(0);
|
|
11068
11068
|
const Z = Le(Q, "fecPacketsReceived");
|
|
11069
|
-
x.push(
|
|
11070
|
-
const X = Le(Q, "retransmittedPacketsReceived"), H =
|
|
11071
|
-
if (g.push(
|
|
11069
|
+
x.push(Pt(Z, Ie));
|
|
11070
|
+
const X = Le(Q, "retransmittedPacketsReceived"), H = Ie + J - X;
|
|
11071
|
+
if (g.push(Pt(Ie - X, H)), b.push(Pt(J, H)), d.push(Pt(X, H)), v.push(H), F.push(0), K.push(""), n) {
|
|
11072
11072
|
A.push(na(Q.audioLevel));
|
|
11073
|
-
const
|
|
11074
|
-
I.push(
|
|
11073
|
+
const re = o0(Q, "synthesizedSamplesEvents");
|
|
11074
|
+
I.push(re);
|
|
11075
11075
|
const fe = aa(Q, "synthesizedSamplesDuration");
|
|
11076
11076
|
w.push(fe);
|
|
11077
|
-
const _e =
|
|
11077
|
+
const _e = Pt(fe, pe);
|
|
11078
11078
|
y.push(_e), R.push(0);
|
|
11079
11079
|
} else {
|
|
11080
|
-
const
|
|
11081
|
-
L.push(
|
|
11080
|
+
const re = (he = Q._last) != null && he.totalInterFrameDelay ? Q.totalInterFrameDelay - Q._last.totalInterFrameDelay : 0;
|
|
11081
|
+
L.push(Be(re, 1e3 / (Q.framesDecoded || 30), 500)), D.push(Be(Q.framesPerSecond, 1, 100)), N.push(Le(Q, "framesReceived")), z.push(Le(Q, "framesRendered")), C.push(Be(Q.frameHeight, 1, 4400)), M.push(Be(Q.frameWidth, 1, 7700));
|
|
11082
11082
|
const fe = Le(Q, "totalProcessingDelay");
|
|
11083
|
-
E.push(
|
|
11083
|
+
E.push(Be(fe, 1e3 / (Q.framesDecoded || 30), 12e4));
|
|
11084
11084
|
const _e = Le(Q, "nackCount");
|
|
11085
|
-
|
|
11085
|
+
ie.push(_e);
|
|
11086
11086
|
const xe = Le(Q, "pliCount");
|
|
11087
11087
|
U.push(xe);
|
|
11088
11088
|
const Ke = Le(Q, "qpSum");
|
|
11089
|
-
q.push(
|
|
11089
|
+
q.push(Be(Ke, 1 / (Q.framesPerSecond || 1), 51)), oe.push(Be(Q.framesDropped));
|
|
11090
11090
|
const mt = Le(Q, "totalFreezesDuration");
|
|
11091
|
-
$.push(
|
|
11091
|
+
$.push(Be(mt, 1e3, 3e4));
|
|
11092
11092
|
const Me = Le(Q, "jitterBufferEmittedCount"), it = Le(Q, "jitterBufferDelay");
|
|
11093
|
-
it && Me ? se.push(
|
|
11094
|
-
const
|
|
11095
|
-
|
|
11093
|
+
it && Me ? se.push(Be(it, 1e3 / Me, 3e4)) : se.push(0);
|
|
11094
|
+
const Pe = Le(Q, "jitterBufferTargetDelay");
|
|
11095
|
+
Pe && Me ? T.push(Be(Pe, 1e3 / Me, 3e4)) : T.push(0);
|
|
11096
11096
|
const gt = Le(Q, "jitterBufferMinimumDelay");
|
|
11097
|
-
gt && Me ?
|
|
11097
|
+
gt && Me ? B.push(Be(gt, 1e3 / Me, 3e4)) : B.push(0);
|
|
11098
11098
|
}
|
|
11099
|
-
}), a.rbr = o.join(","), a.mbrs = u.join(","), a.pbrs = h.join(","), a.pr = m.join(","), a.pl = f.join(","), a.plr = l.join(","), a.jd = p.join(","), a.fecr = x.join(","), a.retransr = d.join(","), a.baser = g.join(","), a.basel = b.join(","), a.recoverr = F.join(","), a.alll = b.join(","), a.totalc = v.join(","), n ? (a.er = y.join(","), a.aolevel = A.join(","), a.asrc = R.join(","), a.scnt = I.join(","), a.sdura = w.join(",")) : (a.dm = L.join(","), a.dfps = D.join(","), a.rfps = N.join(","), a.rh = C.join(","), a.rw = M.join(","), a.fpt = K.join(","), a.ns =
|
|
11099
|
+
}), a.rbr = o.join(","), a.mbrs = u.join(","), a.pbrs = h.join(","), a.pr = m.join(","), a.pl = f.join(","), a.plr = l.join(","), a.jd = p.join(","), a.fecr = x.join(","), a.retransr = d.join(","), a.baser = g.join(","), a.basel = b.join(","), a.recoverr = F.join(","), a.alll = b.join(","), a.totalc = v.join(","), n ? (a.er = y.join(","), a.aolevel = A.join(","), a.asrc = R.join(","), a.scnt = I.join(","), a.sdura = w.join(",")) : (a.dm = L.join(","), a.dfps = D.join(","), a.rfps = N.join(","), a.rh = C.join(","), a.rw = M.join(","), a.fpt = K.join(","), a.ns = ie.join(","), a.pliss = U.join(","), a.aqp = q.join(","), a.ofimax = F.join(","), a.ofimin = F.join(","), a.dfimax = F.join(","), a.dfimin = F.join(","), a.rfimax = F.join(","), a.rfimin = F.join(","), a.vrstutter = $.join(","), a.cdm = se.join(","), a.tdm = T.join(","), a.pdm = B.join(","), a.ofps = z.join(","), a.dfbd = oe.join(","));
|
|
11100
11100
|
} catch (Q) {
|
|
11101
11101
|
}
|
|
11102
11102
|
this.log({
|
|
@@ -11121,7 +11121,7 @@ const Pe = (s, c = 1, e = 6e4, t = 0) => {
|
|
|
11121
11121
|
if (!l.timestamp)
|
|
11122
11122
|
return;
|
|
11123
11123
|
const d = (g = l._last) != null && g.timestamp ? l.timestamp - l._last.timestamp : 1e3;
|
|
11124
|
-
e.push(
|
|
11124
|
+
e.push(Be(l.currentRoundTripTime, 1e3)), t.push(Be(l.availableOutgoingBitrate, 8, 2e8)), i.push(ut(Be(l.bytesSent, 8, 2e7), d, 25e6)), r.push(ut(Be(l.bytesReceived, 8, 2e7), d, 25e6)), n.push(0), a.push(0), p % 5 === 0 && (o.push(""), u.push(""), h.push(""), m.push(""));
|
|
11125
11125
|
});
|
|
11126
11126
|
const f = {
|
|
11127
11127
|
ctm: Math.floor(c[0].timestamp || 0),
|
|
@@ -11921,7 +11921,7 @@ class ae {
|
|
|
11921
11921
|
}
|
|
11922
11922
|
_(ae, "logger");
|
|
11923
11923
|
const h0 = (s) => O(void 0, null, function* () {
|
|
11924
|
-
const c = new
|
|
11924
|
+
const c = new we.SupportUtil();
|
|
11925
11925
|
let e = {
|
|
11926
11926
|
support: !1,
|
|
11927
11927
|
detail: {
|
|
@@ -11941,8 +11941,8 @@ const h0 = (s) => O(void 0, null, function* () {
|
|
|
11941
11941
|
const t = yield c.checkH264Encode();
|
|
11942
11942
|
e.detail.isH264EncodeSupported = t, e.support = e.support && t;
|
|
11943
11943
|
}
|
|
11944
|
-
return e.detail.isScreenShareSupported = c.checkWebRtcSupport() && c.checkScreenCapture() && !
|
|
11945
|
-
}), d0 = () => new
|
|
11944
|
+
return e.detail.isScreenShareSupported = c.checkWebRtcSupport() && c.checkScreenCapture() && !we.SystenUtil.isAndroid && !we.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = c.checkWebRtcSupport() && c.checkEncodedTransformSupport(), e;
|
|
11945
|
+
}), d0 = () => new we.SupportUtil().checkScreenCapture();
|
|
11946
11946
|
var je = /* @__PURE__ */ ((s) => (s[s.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", s[s.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", s))(je || {}), l0 = /* @__PURE__ */ ((s) => (s[s.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", s[s.POST_PROCESSOR = 1] = "POST_PROCESSOR", s))(l0 || {}), Fi = /* @__PURE__ */ ((s) => (s[s.AUDIO = 0] = "AUDIO", s[s.VIDEO = 1] = "VIDEO", s[s.BOTH = 2] = "BOTH", s))(Fi || {});
|
|
11947
11947
|
class ri extends Ge {
|
|
11948
11948
|
constructor(e, t = je.AliRtcSdkStreamTypeCapture, i = 1) {
|
|
@@ -12367,7 +12367,7 @@ class m0 {
|
|
|
12367
12367
|
};
|
|
12368
12368
|
}
|
|
12369
12369
|
}
|
|
12370
|
-
var
|
|
12370
|
+
var te = /* @__PURE__ */ ((s) => (s[s.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", s[s.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", s[s.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", s[s.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", s[s.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", s[s.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", s[s.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", s[s.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", s[s.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", s[s.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", s[s.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", s[s.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", s[s.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", s[s.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", s[s.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", s[s.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", s[s.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", s[s.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", s[s.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", s[s.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", s[s.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", s[s.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", s[s.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", s[s.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", s[s.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", s[s.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", s[s.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", s[s.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", s[s.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", s[s.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", s[s.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", s[s.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", s[s.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", s[s.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", s[s.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", s[s.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", s[s.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", s[s.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", s[s.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", s[s.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", s[s.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", s[s.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", s[s.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", s[s.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", s[s.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", s[s.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", s[s.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", s[s.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", s[s.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", s[s.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", s[s.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", s[s.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", s[s.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", s[s.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", s[s.ERR_INNER = -1] = "ERR_INNER", s[s.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", s[s.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", s[s.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", s[s.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", s[s.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", s[s.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", s[s.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", s[s.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", s[s.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", s[s.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", s[s.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", s[s.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", s[s.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", s[s.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", s[s.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", s[s.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", s))(te || {});
|
|
12371
12371
|
class Y extends Error {
|
|
12372
12372
|
constructor(e, t, i) {
|
|
12373
12373
|
super(t);
|
|
@@ -12376,14 +12376,10 @@ class Y extends Error {
|
|
|
12376
12376
|
this._code = e, this._extra = i;
|
|
12377
12377
|
}
|
|
12378
12378
|
static fromRtsError(e) {
|
|
12379
|
-
return e instanceof Y ? e : new Y(
|
|
12380
|
-
(e == null ? void 0 : e.errorCode) || -1,
|
|
12381
|
-
(e == null ? void 0 : e.message) || (e == null ? void 0 : e.errorCodeName) || "rts error",
|
|
12382
|
-
e == null ? void 0 : e.extraInfo
|
|
12383
|
-
);
|
|
12379
|
+
return e instanceof Y ? e : new Y((e == null ? void 0 : e.errorCode) || -1, (e == null ? void 0 : e.message) || (e == null ? void 0 : e.errorCodeName) || "rts error", e);
|
|
12384
12380
|
}
|
|
12385
12381
|
static fromError(e, t = -1, i = "") {
|
|
12386
|
-
return new Y(t, (e == null ? void 0 : e.message) || (e == null ? void 0 : e.reason) || i || "error", e
|
|
12382
|
+
return new Y(t, (e == null ? void 0 : e.message) || (e == null ? void 0 : e.reason) || i || "error", e);
|
|
12387
12383
|
}
|
|
12388
12384
|
get code() {
|
|
12389
12385
|
return this._code;
|
|
@@ -12570,7 +12566,7 @@ const g0 = 3e4, ct = class ct extends Ge {
|
|
|
12570
12566
|
*/
|
|
12571
12567
|
onConnectFail() {
|
|
12572
12568
|
ae.warn(`[${ct.logName}] onConnectFail`);
|
|
12573
|
-
const e = new Y(
|
|
12569
|
+
const e = new Y(te.ERR_INNER, "Signaling connect failed.");
|
|
12574
12570
|
this.isFirstConnect ? this.emit("onJoinChannelResult", e) : this.emit("onConnectFail", e);
|
|
12575
12571
|
}
|
|
12576
12572
|
/**
|
|
@@ -12584,7 +12580,7 @@ const g0 = 3e4, ct = class ct extends Ge {
|
|
|
12584
12580
|
*/
|
|
12585
12581
|
onNetworkError() {
|
|
12586
12582
|
ae.warn(`[${ct.logName}] onNetworkError`);
|
|
12587
|
-
const e = new Y(
|
|
12583
|
+
const e = new Y(te.ERR_INNER, "Network error, signaling connect failed.");
|
|
12588
12584
|
this.emit("onNetworkError", e);
|
|
12589
12585
|
}
|
|
12590
12586
|
/**
|
|
@@ -12601,7 +12597,7 @@ const g0 = 3e4, ct = class ct extends Ge {
|
|
|
12601
12597
|
this.emit("onReconnectStart");
|
|
12602
12598
|
}
|
|
12603
12599
|
onReconnectFail() {
|
|
12604
|
-
this.emit("onReconnectFail", new Y(
|
|
12600
|
+
this.emit("onReconnectFail", new Y(te.ERR_INNER, "signaling reconnect failed."));
|
|
12605
12601
|
}
|
|
12606
12602
|
/**
|
|
12607
12603
|
* 处理 Keepalive 心跳,加速判断网络异常
|
|
@@ -12702,7 +12698,7 @@ const g0 = 3e4, ct = class ct extends Ge {
|
|
|
12702
12698
|
this.sendPkgCache(), this.startKeepAlive(), this.emit("onReconnectSuccess", e.data.users);
|
|
12703
12699
|
else {
|
|
12704
12700
|
const t = new Y(
|
|
12705
|
-
|
|
12701
|
+
te.ERR_INNER,
|
|
12706
12702
|
`reconnect failed, code: ${e.code};description: ${e.description}`
|
|
12707
12703
|
);
|
|
12708
12704
|
e.code === 403 && (t.code = 403), this.emit("onReconnectFail", t), this.close();
|
|
@@ -12858,9 +12854,9 @@ const Vi = (Ye = class extends Ge {
|
|
|
12858
12854
|
let l = u.data;
|
|
12859
12855
|
l.tid = u.tid, l.users = u.data.users, l.timestamp = u.timestamp, a.est && (a.joinconnecttc = Date.now() - a.est), this.slsReporter.reportJoinConnection(a), r(l);
|
|
12860
12856
|
} else
|
|
12861
|
-
this.reset(), n(this.handleSignalError(u.code, u.reason,
|
|
12857
|
+
this.reset(), n(this.handleSignalError(u.code, u.reason, te.ERR_JOIN_CHANNEL_FAILED));
|
|
12862
12858
|
}), this.messageCenter.once("onAuthInvalid", () => {
|
|
12863
|
-
this.reset(), n(new Y(
|
|
12859
|
+
this.reset(), n(new Y(te.ERR_JOIN_BAD_TOKEN, "join failed because authentication failed"));
|
|
12864
12860
|
}), ae.info(
|
|
12865
12861
|
`[${Ye.logName}]`,
|
|
12866
12862
|
"start ws connecting roomserver and auto join when connected"
|
|
@@ -12947,7 +12943,7 @@ const Vi = (Ye = class extends Ge {
|
|
|
12947
12943
|
}), this.messageCenter.reportStatus(e)) : i(new Y(-1, "No messageCenter"));
|
|
12948
12944
|
});
|
|
12949
12945
|
}
|
|
12950
|
-
handleSignalError(e, t, i =
|
|
12946
|
+
handleSignalError(e, t, i = te.ERR_INNER) {
|
|
12951
12947
|
const r = `signal error: code - ${e}; description - ${t}`;
|
|
12952
12948
|
return new Y(i, r);
|
|
12953
12949
|
}
|
|
@@ -13080,7 +13076,7 @@ class _s extends Ge {
|
|
|
13080
13076
|
*/
|
|
13081
13077
|
join(e, t = e.userId, i, r) {
|
|
13082
13078
|
return this.maxConnectRetryCount = i, this.userName = t, new Promise((n, a) => {
|
|
13083
|
-
this.signaling ? a(new Y(
|
|
13079
|
+
this.signaling ? a(new Y(te.ERR_JOIN_ALREADY_JOINED, "already joined")) : (ae.info("[signalingmanager] create signaling"), this.signaling = new x0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), r && (r.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
|
|
13084
13080
|
this.authInfo = e, r && (r.re = Date.now()), n(o);
|
|
13085
13081
|
}).catch((o) => {
|
|
13086
13082
|
this.reset(), a(o);
|
|
@@ -13111,7 +13107,7 @@ class _s extends Ge {
|
|
|
13111
13107
|
t(n);
|
|
13112
13108
|
}).catch((n) => {
|
|
13113
13109
|
i(n);
|
|
13114
|
-
})) : i(new Y(
|
|
13110
|
+
})) : i(new Y(te.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL, "no signaling"));
|
|
13115
13111
|
});
|
|
13116
13112
|
}
|
|
13117
13113
|
/**
|
|
@@ -13162,7 +13158,7 @@ class _s extends Ge {
|
|
|
13162
13158
|
* @returns
|
|
13163
13159
|
*/
|
|
13164
13160
|
refreshUrl(e) {
|
|
13165
|
-
return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new Y(
|
|
13161
|
+
return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new Y(te.ERR_SDK_INVALID_STATE, "should join first"));
|
|
13166
13162
|
}
|
|
13167
13163
|
refreshAuthInfo(e) {
|
|
13168
13164
|
return O(this, null, function* () {
|
|
@@ -13452,11 +13448,11 @@ function ha(s) {
|
|
|
13452
13448
|
if (e) {
|
|
13453
13449
|
if (e.nodeName.toLocaleLowerCase() === "video")
|
|
13454
13450
|
return e.setAttribute("playsinline", ""), e;
|
|
13455
|
-
throw new Y(
|
|
13451
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "element should be HtmlVideoElement");
|
|
13456
13452
|
} else
|
|
13457
|
-
throw new Y(
|
|
13453
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "element not founded");
|
|
13458
13454
|
} else
|
|
13459
|
-
throw new Y(
|
|
13455
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "element id should be string");
|
|
13460
13456
|
}
|
|
13461
13457
|
function ns(s) {
|
|
13462
13458
|
var e;
|
|
@@ -13507,7 +13503,7 @@ const Ka = (s, c, e = !1) => {
|
|
|
13507
13503
|
return e && s.srcObject === c ? i = Promise.resolve() : (s.load(), s.srcObject = c, i = s.play(), s._playPromise = i), i;
|
|
13508
13504
|
}));
|
|
13509
13505
|
return new Promise((i) => {
|
|
13510
|
-
if (
|
|
13506
|
+
if (we.BrowserUtil.isMicroMessenger) {
|
|
13511
13507
|
const r = window.top !== window.self, n = window.WeixinJSBridge || window.top.WeixinJSBridge;
|
|
13512
13508
|
n ? n.invoke("getNetworkType", {}, () => {
|
|
13513
13509
|
i(t());
|
|
@@ -13723,8 +13719,8 @@ class ti {
|
|
|
13723
13719
|
);
|
|
13724
13720
|
}
|
|
13725
13721
|
}
|
|
13726
|
-
var T0 = Object.defineProperty,
|
|
13727
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
13722
|
+
var T0 = Object.defineProperty, B0 = Object.getOwnPropertyDescriptor, Oe = (s, c, e, t) => {
|
|
13723
|
+
for (var i = t > 1 ? void 0 : t ? B0(c, e) : c, r = s.length - 1, n; r >= 0; r--)
|
|
13728
13724
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
13729
13725
|
return t && i && T0(c, e, i), i;
|
|
13730
13726
|
};
|
|
@@ -13905,7 +13901,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
13905
13901
|
facingMode: "environment"
|
|
13906
13902
|
});
|
|
13907
13903
|
else
|
|
13908
|
-
throw new Y(
|
|
13904
|
+
throw new Y(te.ERR_CAMERA_OPEN_FAIL, `camera direction set to ${e} failed`);
|
|
13909
13905
|
}
|
|
13910
13906
|
setCameraDeviceId(e) {
|
|
13911
13907
|
this.streamManager.setCameraVideoConstraints({
|
|
@@ -13956,12 +13952,12 @@ const Ne = (Tt = class extends Ha {
|
|
|
13956
13952
|
let n = [];
|
|
13957
13953
|
if (!t && !e && !i && r) {
|
|
13958
13954
|
try {
|
|
13959
|
-
n = yield
|
|
13955
|
+
n = yield we.getCameraList(), n.length && (yield this.startCameraCapture());
|
|
13960
13956
|
} catch (a) {
|
|
13961
|
-
throw a.code ===
|
|
13957
|
+
throw a.code === we.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new Y(te.ERR_CAMERA_AUTH_FAIL, "camera auth fail") : new Y(te.ERR_CAMERA_OPEN_FAIL, `camera open fail: ${a.message}`);
|
|
13962
13958
|
}
|
|
13963
13959
|
if (!n.length)
|
|
13964
|
-
throw new Y(
|
|
13960
|
+
throw new Y(te.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
|
|
13965
13961
|
}
|
|
13966
13962
|
});
|
|
13967
13963
|
}
|
|
@@ -13971,12 +13967,12 @@ const Ne = (Tt = class extends Ha {
|
|
|
13971
13967
|
let r = [];
|
|
13972
13968
|
if (!e && !t && i) {
|
|
13973
13969
|
try {
|
|
13974
|
-
r = yield
|
|
13970
|
+
r = yield we.getMicList(), r.length && (yield this.startAudioCapture());
|
|
13975
13971
|
} catch (n) {
|
|
13976
|
-
throw n.code ===
|
|
13972
|
+
throw n.code === we.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new Y(te.ERR_MIC_AUTH_FAIL, "microphone auth fail") : new Y(te.ERR_MIC_OPEN_FAIL, `microphone open fail: ${n.message}`);
|
|
13977
13973
|
}
|
|
13978
13974
|
if (!r.length)
|
|
13979
|
-
throw new Y(
|
|
13975
|
+
throw new Y(te.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
|
|
13980
13976
|
}
|
|
13981
13977
|
});
|
|
13982
13978
|
}
|
|
@@ -13992,7 +13988,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
13992
13988
|
return;
|
|
13993
13989
|
}
|
|
13994
13990
|
if (![ye.AliRtcVideoTrackCamera, ye.AliRtcVideoTrackScreen].includes(t))
|
|
13995
|
-
throw new Y(
|
|
13991
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "set view config invalid track", { track: t });
|
|
13996
13992
|
e.forEach((i) => {
|
|
13997
13993
|
this.setPreviewElement({
|
|
13998
13994
|
videoElement: i,
|
|
@@ -14039,7 +14035,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14039
14035
|
try {
|
|
14040
14036
|
let r = i ? this.streamManager.screenStreamInfo.previewStream : this.streamManager.cameraStreamInfo.previewStream;
|
|
14041
14037
|
if (!t)
|
|
14042
|
-
throw new Y(
|
|
14038
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "no video element found", {
|
|
14043
14039
|
videoElement: t
|
|
14044
14040
|
});
|
|
14045
14041
|
if (!r) {
|
|
@@ -14048,7 +14044,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14048
14044
|
}
|
|
14049
14045
|
return Ka(t, r.mediaStream), this.setPreviewElement(e), r.mediaStream;
|
|
14050
14046
|
} catch (r) {
|
|
14051
|
-
const n =
|
|
14047
|
+
const n = te.ERR_INNER;
|
|
14052
14048
|
throw Y.fromError(r, n, "preview failed");
|
|
14053
14049
|
}
|
|
14054
14050
|
});
|
|
@@ -14151,7 +14147,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14151
14147
|
});
|
|
14152
14148
|
}
|
|
14153
14149
|
reportAudioProfile() {
|
|
14154
|
-
const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t =
|
|
14150
|
+
const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t = we.AudioProfileMap.get(e);
|
|
14155
14151
|
this.slsReporter.reportPublishProfile(G.Audio, {
|
|
14156
14152
|
a_profile: e,
|
|
14157
14153
|
bits: (t == null ? void 0 : t.maxBitrate) || 0,
|
|
@@ -14160,7 +14156,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14160
14156
|
});
|
|
14161
14157
|
}
|
|
14162
14158
|
reportVideoProfile() {
|
|
14163
|
-
const e = this.streamManager.cameraStreamInfo.videoProfile || "", t =
|
|
14159
|
+
const e = this.streamManager.cameraStreamInfo.videoProfile || "", t = we.VideoProfileMap.get(e);
|
|
14164
14160
|
t && this.slsReporter.reportPublishProfile(G.VideoLarge, {
|
|
14165
14161
|
v_profile: e,
|
|
14166
14162
|
wdth: (t == null ? void 0 : t.width) || 0,
|
|
@@ -14170,7 +14166,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14170
14166
|
});
|
|
14171
14167
|
}
|
|
14172
14168
|
reportScreenProfile() {
|
|
14173
|
-
const e = this.streamManager.screenStreamInfo.videoProfile || "", t =
|
|
14169
|
+
const e = this.streamManager.screenStreamInfo.videoProfile || "", t = we.VideoProfileMap.get(e);
|
|
14174
14170
|
t && this.slsReporter.reportPublishProfile(G.Screen, {
|
|
14175
14171
|
v_profile: e,
|
|
14176
14172
|
wdth: (t == null ? void 0 : t.width) || 0,
|
|
@@ -14193,7 +14189,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14193
14189
|
if (this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = m, (u = this.parameter.data) != null && u.enablePubDataChannel) {
|
|
14194
14190
|
this.dataPubState.setState(ge.AliRtcStatePublishing);
|
|
14195
14191
|
const p = yield this.rtsManager.publishAddDataChannel(this.url);
|
|
14196
|
-
p ? (this.dc = p, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(ge.AliRtcStatePublished)) : this.emit("publishDataError", new Y(
|
|
14192
|
+
p ? (this.dc = p, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(ge.AliRtcStatePublished)) : this.emit("publishDataError", new Y(te.ERR_INNER, "publishDataError"));
|
|
14197
14193
|
}
|
|
14198
14194
|
r && (this.trackTraceIdMap[G.Audio] = m, this.reportAudioProfile()), a && (this.trackTraceIdMap[G.VideoSmall] = m), n && (this.trackTraceIdMap[G.VideoLarge] = m, this.reportVideoProfile()), o && (this.trackTraceIdMap[G.Screen] = m, this.reportScreenProfile());
|
|
14199
14195
|
const l = {
|
|
@@ -14273,7 +14269,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14273
14269
|
return O(this, null, function* () {
|
|
14274
14270
|
var o;
|
|
14275
14271
|
if (!e)
|
|
14276
|
-
throw new Y(
|
|
14272
|
+
throw new Y(te.ERR_INNER, "sync publish to room server failed because no publishInfo");
|
|
14277
14273
|
let r = e;
|
|
14278
14274
|
if (this.dc) {
|
|
14279
14275
|
const a = e, { tracks: u } = a, h = Gt(a, ["tracks"]);
|
|
@@ -14295,7 +14291,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14295
14291
|
}
|
|
14296
14292
|
refreshPushStreamUrl() {
|
|
14297
14293
|
return O(this, null, function* () {
|
|
14298
|
-
const e = new Y(
|
|
14294
|
+
const e = new Y(te.ERR_INNER, "refresh push stream url error"), t = this.url;
|
|
14299
14295
|
if (!t)
|
|
14300
14296
|
throw e;
|
|
14301
14297
|
const i = yield this.signalingManager.refreshUrl({
|
|
@@ -14331,8 +14327,8 @@ const Ne = (Tt = class extends Ha {
|
|
|
14331
14327
|
};
|
|
14332
14328
|
return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), m;
|
|
14333
14329
|
} catch (h) {
|
|
14334
|
-
let m =
|
|
14335
|
-
if (n && (this.audioPubState.setState(ge.AliRtcStateNoPublish), m =
|
|
14330
|
+
let m = te.ERR_SDK_PUBLISH_INVAILD;
|
|
14331
|
+
if (n && (this.audioPubState.setState(ge.AliRtcStateNoPublish), m = te.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a && (this.videoPubState.setState(ge.AliRtcStateNoPublish), m = te.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(ge.AliRtcStateNoPublish), m = te.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(ge.AliRtcStateNoPublish), m = te.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && r < 3)
|
|
14336
14332
|
return this.publishAdd(e, t, i, r + 1);
|
|
14337
14333
|
throw Y.fromError(h, m, "publish add failed");
|
|
14338
14334
|
}
|
|
@@ -14359,7 +14355,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14359
14355
|
} catch (i) {
|
|
14360
14356
|
throw Y.fromError(
|
|
14361
14357
|
i,
|
|
14362
|
-
|
|
14358
|
+
te.ERR_INNER,
|
|
14363
14359
|
`publish replace failed, vMsid: ${t == null ? void 0 : t.vMsid} aMsid: ${t == null ? void 0 : t.aMsid}`
|
|
14364
14360
|
);
|
|
14365
14361
|
}
|
|
@@ -14383,7 +14379,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14383
14379
|
try {
|
|
14384
14380
|
return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(ge.AliRtcStateNoPublish), e.video && (e.vMsid === G.VideoSmall ? this.videoSmallPubState.setState(ge.AliRtcStateNoPublish) : this.videoPubState.setState(ge.AliRtcStateNoPublish)), e.screen && this.screenPubState.setState(ge.AliRtcStateNoPublish), t.tracks = this.streamTracks, this.reportSelfDeviceStatus(), t;
|
|
14385
14381
|
} catch (i) {
|
|
14386
|
-
throw Y.fromError(i,
|
|
14382
|
+
throw Y.fromError(i, te.ERR_INNER, "publish delete tracks failed");
|
|
14387
14383
|
}
|
|
14388
14384
|
});
|
|
14389
14385
|
}
|
|
@@ -14391,7 +14387,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14391
14387
|
return O(this, null, function* () {
|
|
14392
14388
|
if (!this._isPublishing)
|
|
14393
14389
|
throw new Y(
|
|
14394
|
-
|
|
14390
|
+
te.ERR_INNER,
|
|
14395
14391
|
"publish stop failed, previous localStream is required for publishing stopping"
|
|
14396
14392
|
);
|
|
14397
14393
|
ae.info(`[${Tt.logName}]`, "publishStop", { url: this.url });
|
|
@@ -14416,7 +14412,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14416
14412
|
};
|
|
14417
14413
|
return this.syncPublishToRoomServer(a, {}, e), a;
|
|
14418
14414
|
} catch (t) {
|
|
14419
|
-
throw Y.fromError(t,
|
|
14415
|
+
throw Y.fromError(t, te.ERR_INNER, "publish stop failed");
|
|
14420
14416
|
}
|
|
14421
14417
|
});
|
|
14422
14418
|
}
|
|
@@ -14443,7 +14439,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14443
14439
|
}
|
|
14444
14440
|
return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(ge.AliRtcStateNoPublish), this.dc = void 0), this.slsReporter.reportUnpublish(this.callId || "", e, 0, ""), t;
|
|
14445
14441
|
} catch (i) {
|
|
14446
|
-
throw Y.fromError(i,
|
|
14442
|
+
throw Y.fromError(i, te.ERR_INNER, "unpublish failed");
|
|
14447
14443
|
}
|
|
14448
14444
|
});
|
|
14449
14445
|
}
|
|
@@ -14602,9 +14598,9 @@ const Ne = (Tt = class extends Ha {
|
|
|
14602
14598
|
return O(this, null, function* () {
|
|
14603
14599
|
var r;
|
|
14604
14600
|
if (!((r = this.parameter.data) != null && r.enablePubDataChannel))
|
|
14605
|
-
throw new Y(
|
|
14601
|
+
throw new Y(te.ERR_INNER, "data channel publish is not enabled");
|
|
14606
14602
|
if (!this.dc)
|
|
14607
|
-
throw new Y(
|
|
14603
|
+
throw new Y(te.ERR_INNER, "data channel is not ready");
|
|
14608
14604
|
const t = e.toBuffer(), i = k0(t, 1156);
|
|
14609
14605
|
i.forEach((n, a) => {
|
|
14610
14606
|
const o = new Hi(
|
|
@@ -14725,21 +14721,21 @@ Oe([
|
|
|
14725
14721
|
], Ne.prototype, "sendSEI", 1);
|
|
14726
14722
|
let pa = Ne;
|
|
14727
14723
|
var wt = /* @__PURE__ */ ((s) => (s.OPUS = "opus", s.H264 = "H264", s.UNKNOWN = "", s))(wt || {}), Se = /* @__PURE__ */ ((s) => (s[s.NotSubscribe = 0] = "NotSubscribe", s[s.Subscribing = 1] = "Subscribing", s[s.Subscribed = 2] = "Subscribed", s))(Se || {}), Ht = /* @__PURE__ */ ((s) => (s.VideoTrackEnded = "videoTrackEnded", s.AudioTrackEnded = "audioTrackEnded", s.ScreenTrackEnded = "screenTrackEnded", s))(Ht || {});
|
|
14728
|
-
const
|
|
14724
|
+
const P0 = (s) => {
|
|
14729
14725
|
const c = new MediaStream();
|
|
14730
14726
|
return c.addTrack(s), c;
|
|
14731
14727
|
}, qa = (s) => O(void 0, null, function* () {
|
|
14732
|
-
return yield
|
|
14728
|
+
return yield we.createStream({
|
|
14733
14729
|
custom: !0,
|
|
14734
14730
|
mediaStream: s
|
|
14735
14731
|
});
|
|
14736
14732
|
}), ai = (s) => O(void 0, null, function* () {
|
|
14737
|
-
const c =
|
|
14733
|
+
const c = P0(s);
|
|
14738
14734
|
return yield qa(c);
|
|
14739
14735
|
}), L0 = (s) => {
|
|
14740
14736
|
const { audio: c, video: e, screen: t } = s;
|
|
14741
14737
|
if (e && t)
|
|
14742
|
-
throw new Y(
|
|
14738
|
+
throw new Y(te.ERR_INNER, "create stream error, cannot create video && screen together");
|
|
14743
14739
|
return !(!e && !c && !t);
|
|
14744
14740
|
}, M0 = (s) => s === G.Audio || s === hs.Audio, N0 = (s) => s === G.VideoLarge || s === hs.VideoLarge, F0 = (s) => s === G.VideoSmall, O0 = (s) => s === G.Screen, V0 = (s) => s === G.Data;
|
|
14745
14741
|
var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, z0 = (s, c, e, t) => {
|
|
@@ -14747,7 +14743,7 @@ var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, z0 = (s, c
|
|
|
14747
14743
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
14748
14744
|
return t && i && U0(c, e, i), i;
|
|
14749
14745
|
};
|
|
14750
|
-
class
|
|
14746
|
+
class Bi extends Ge {
|
|
14751
14747
|
constructor() {
|
|
14752
14748
|
super();
|
|
14753
14749
|
_(this, "audioInfo", {
|
|
@@ -14979,16 +14975,16 @@ class Pi extends Ge {
|
|
|
14979
14975
|
updateRemoteUserDeviceStatus(e) {
|
|
14980
14976
|
let t = za.parseStatus(e);
|
|
14981
14977
|
const { audioDisable: i, videoDisable: r, screenDisable: n } = t;
|
|
14982
|
-
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(et.Remote, i ?
|
|
14978
|
+
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(et.Remote, i ? Re.MuteAudio : Re.UnmuteAudio)), this.userStatus.videoDisable != r && (this.userStatus.videoDisable = r, this.emit(et.Remote, r ? Re.MuteVideo : Re.UnmuteVideo)), this.userStatus.screenDisable != n && (this.userStatus.screenDisable = n, this.emit(et.Remote, n ? Re.MuteScreen : Re.UnmuteScreen))) : (this.userStatus = t, this.emit(et.Remote, i ? Re.MuteAudio : Re.UnmuteAudio), this.emit(et.Remote, r ? Re.MuteVideo : Re.UnmuteVideo), this.emit(et.Remote, n ? Re.MuteScreen : Re.UnmuteScreen)), !1;
|
|
14983
14979
|
}
|
|
14984
14980
|
}
|
|
14985
14981
|
/**
|
|
14986
14982
|
* @ignore
|
|
14987
14983
|
*/
|
|
14988
|
-
_(
|
|
14984
|
+
_(Bi, "logName", "RemoteStreamInfo");
|
|
14989
14985
|
z0([
|
|
14990
14986
|
j()
|
|
14991
|
-
],
|
|
14987
|
+
], Bi.prototype, "updateRemoteTrackSubState", 1);
|
|
14992
14988
|
class j0 {
|
|
14993
14989
|
constructor(c) {
|
|
14994
14990
|
_(this, "remoteUser");
|
|
@@ -15033,6 +15029,9 @@ class j0 {
|
|
|
15033
15029
|
get isScreenSubscribing() {
|
|
15034
15030
|
return this.remoteUser.isScreenSubscribing;
|
|
15035
15031
|
}
|
|
15032
|
+
get audioElement() {
|
|
15033
|
+
return this.remoteUser.getAudioElement();
|
|
15034
|
+
}
|
|
15036
15035
|
}
|
|
15037
15036
|
var W0 = Object.defineProperty, K0 = Object.getOwnPropertyDescriptor, Xe = (s, c, e, t) => {
|
|
15038
15037
|
for (var i = t > 1 ? void 0 : t ? K0(c, e) : c, r = s.length - 1, n; r >= 0; r--)
|
|
@@ -15161,10 +15160,13 @@ const Je = (_t = class extends Ha {
|
|
|
15161
15160
|
`receive data channel message, length: ${(r = i.data) == null ? void 0 : r.byteLength}`
|
|
15162
15161
|
), this.emit("remoteDataChannelMessage", this.uid, i));
|
|
15163
15162
|
});
|
|
15163
|
+
_(this, "onDataChannelError", (e) => {
|
|
15164
|
+
this.emit("occurError", Y.fromError(e, te.ERR_SDK_SUBSCRIBE_DATA_ERROR));
|
|
15165
|
+
});
|
|
15164
15166
|
_(this, "handleAudioPaused", () => {
|
|
15165
15167
|
this.emit("remoteAudioPlayError", "paused");
|
|
15166
15168
|
});
|
|
15167
|
-
this.streamInfo = new
|
|
15169
|
+
this.streamInfo = new Bi(), this.remoteUserInfo = new j0(this), this.parameter = f, this.streamInfo.on(et.Remote, (p) => {
|
|
15168
15170
|
this.emit(et.Remote, p, this.userId);
|
|
15169
15171
|
}), this.signalingManager = o, this.viewMap = (l = n[t]) != null ? l : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = a, this.localUser = u, this.audioSubState = new Zt(), this.audioSubState.on("change", (p, d, g) => {
|
|
15170
15172
|
this.emit("audioSubscribeStateChanged", this.uid, p, d, g);
|
|
@@ -15200,6 +15202,9 @@ const Je = (_t = class extends Ha {
|
|
|
15200
15202
|
setAudioMuted(e) {
|
|
15201
15203
|
this.audioMuted = e, this.toggleAudio(!e);
|
|
15202
15204
|
}
|
|
15205
|
+
getAudioElement() {
|
|
15206
|
+
return this.audioElement;
|
|
15207
|
+
}
|
|
15203
15208
|
setPlayoutVolume(e) {
|
|
15204
15209
|
if (this.playoutVolume = e, this.audioElement)
|
|
15205
15210
|
if (this.parameter.enableAudioContextPlayoutVolume)
|
|
@@ -15288,11 +15293,11 @@ const Je = (_t = class extends Ha {
|
|
|
15288
15293
|
setViewConfig(e, t) {
|
|
15289
15294
|
if (t !== ye.AliRtcVideoTrackScreen && t !== ye.AliRtcVideoTrackCamera)
|
|
15290
15295
|
throw new Y(
|
|
15291
|
-
|
|
15296
|
+
te.ERR_INVALID_ARGUMENTS,
|
|
15292
15297
|
"track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
|
|
15293
15298
|
);
|
|
15294
15299
|
e ? ns(e).forEach((r) => {
|
|
15295
|
-
r.setAttribute("playsinline", ""),
|
|
15300
|
+
r.setAttribute("playsinline", ""), we.BrowserUtil.isMicroMessenger && (r.setAttribute("x5-video-player-type", "h5-page"), r.setAttribute("x5-playsinline", ""), we.SystenUtil.isAndroid || we.SystenUtil.isIos && r.setAttribute("x-webkit-airplay", "allow")), t === ye.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(r) : this.viewMap.cameraViews.push(r), this.play(r, t === ye.AliRtcVideoTrackScreen);
|
|
15296
15301
|
}) : (this.stopPlayAll(t === ye.AliRtcVideoTrackScreen), t === ye.AliRtcVideoTrackScreen ? this.viewMap.screenViews = [] : this.viewMap.cameraViews = []);
|
|
15297
15302
|
}
|
|
15298
15303
|
clear(e = !0) {
|
|
@@ -15308,7 +15313,7 @@ const Je = (_t = class extends Ha {
|
|
|
15308
15313
|
updateRemoteTracks(e, t, i, r) {
|
|
15309
15314
|
return O(this, null, function* () {
|
|
15310
15315
|
var a;
|
|
15311
|
-
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t != null ? t : ""), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new
|
|
15316
|
+
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t != null ? t : ""), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new Bi()), (a = this.streamInfo) == null ? void 0 : a.updateTracks(r);
|
|
15312
15317
|
});
|
|
15313
15318
|
}
|
|
15314
15319
|
subscribe(r, n) {
|
|
@@ -15381,8 +15386,8 @@ const Je = (_t = class extends Ha {
|
|
|
15381
15386
|
} catch (m) {
|
|
15382
15387
|
const f = (/* @__PURE__ */ new Date()).getTime() - r;
|
|
15383
15388
|
e.audio && this.audioSubState.setState(ke.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(ke.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(ke.AliRtcStateNoSubscribe), m && (m.message = `user(${this.uid}) subscribe error, ${(m == null ? void 0 : m.message) || ""}`);
|
|
15384
|
-
let l =
|
|
15385
|
-
e.audio && (l =
|
|
15389
|
+
let l = te.ERR_INNER;
|
|
15390
|
+
e.audio && (l = te.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === G.VideoSmall ? l = te.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : l = te.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (l = te.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
|
|
15386
15391
|
((h = this.localUser) == null ? void 0 : h.callId) || "",
|
|
15387
15392
|
this.callId,
|
|
15388
15393
|
!!e.video && e.vMsid === G.VideoLarge,
|
|
@@ -15442,7 +15447,7 @@ const Je = (_t = class extends Ha {
|
|
|
15442
15447
|
vMsid: e.vMsid
|
|
15443
15448
|
}), o;
|
|
15444
15449
|
} catch (t) {
|
|
15445
|
-
throw Y.fromError(t,
|
|
15450
|
+
throw Y.fromError(t, te.ERR_INNER, "subscribe delete failed");
|
|
15446
15451
|
}
|
|
15447
15452
|
});
|
|
15448
15453
|
}
|
|
@@ -15504,7 +15509,7 @@ const Je = (_t = class extends Ha {
|
|
|
15504
15509
|
return this.callId = "", u;
|
|
15505
15510
|
} catch (u) {
|
|
15506
15511
|
if (((o = (a = (n = (r = u == null ? void 0 : u.extraInfo) == null ? void 0 : r.parsedData) == null ? void 0 : n.streams) == null ? void 0 : a[0]) == null ? void 0 : o.res_code) !== 404)
|
|
15507
|
-
throw Y.fromError(u,
|
|
15512
|
+
throw Y.fromError(u, te.ERR_INNER, "subscribe stop failed");
|
|
15508
15513
|
}
|
|
15509
15514
|
});
|
|
15510
15515
|
}
|
|
@@ -15547,14 +15552,14 @@ const Je = (_t = class extends Ha {
|
|
|
15547
15552
|
}
|
|
15548
15553
|
!this.streamInfo.hasAudio && !this.streamInfo.hasVideo && !this.streamInfo.hasScreen || (this.dataSubState.setState(ke.AliRtcStateSubscribing), this.rtsManager.subscribeAddDataChannel(this.streamUrl).then((e) => {
|
|
15549
15554
|
if (e) {
|
|
15550
|
-
this.dc = e, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dc.on("message", this.onDataChannelMessage), this.dataSubState.setState(ke.AliRtcStateSubscribed), this.streamInfo.updateRemoteTrackSubState({
|
|
15555
|
+
this.dc = e, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dc.on("message", this.onDataChannelMessage), this.dc.on("error", this.onDataChannelError), this.dataSubState.setState(ke.AliRtcStateSubscribed), this.streamInfo.updateRemoteTrackSubState({
|
|
15551
15556
|
data: !0
|
|
15552
15557
|
});
|
|
15553
15558
|
return;
|
|
15554
15559
|
} else
|
|
15555
15560
|
throw new Error("no dc founded");
|
|
15556
15561
|
}).catch((e) => {
|
|
15557
|
-
const t = Y.fromError(e,
|
|
15562
|
+
const t = Y.fromError(e, te.ERR_INNER, "subscribe data failed");
|
|
15558
15563
|
this.emit("remoteSubscribeError", t), this.dataSubState.setState(ke.AliRtcStateNoSubscribe);
|
|
15559
15564
|
}));
|
|
15560
15565
|
}
|
|
@@ -15564,7 +15569,7 @@ const Je = (_t = class extends Ha {
|
|
|
15564
15569
|
this.rtsManager.subscribeStopDatachannel(this.streamUrl, this.dc);
|
|
15565
15570
|
} catch (e) {
|
|
15566
15571
|
}
|
|
15567
|
-
this.dcMsgWaitingPieces = [], this.dc.off("message", this.onDataChannelMessage), this.dataSubState.setState(ke.AliRtcStateNoSubscribe), this.dc = void 0, this.streamInfo.updateRemoteTrackSubState({
|
|
15572
|
+
this.dcMsgWaitingPieces = [], this.dc.off("message", this.onDataChannelMessage), this.dc.off("error", this.onDataChannelError), this.dataSubState.setState(ke.AliRtcStateNoSubscribe), this.dc = void 0, this.streamInfo.updateRemoteTrackSubState({
|
|
15568
15573
|
data: !1
|
|
15569
15574
|
});
|
|
15570
15575
|
}
|
|
@@ -15649,7 +15654,17 @@ const Je = (_t = class extends Ha {
|
|
|
15649
15654
|
var t, i;
|
|
15650
15655
|
if (!this.audioTrack)
|
|
15651
15656
|
return;
|
|
15652
|
-
if (this.toggleAudio(!this.audioMuted), this.audioElement
|
|
15657
|
+
if (this.toggleAudio(!this.audioMuted), !this.audioElement) {
|
|
15658
|
+
if (this.audioElement = document.createElement("audio"), this.audioElement.addEventListener("pause", this.handleAudioPaused), we.SystenUtil.isIos && parseInt(we.SystenUtil.systemVersion) <= 14) {
|
|
15659
|
+
const r = () => {
|
|
15660
|
+
const n = this.audioElement;
|
|
15661
|
+
n && (n.removeEventListener("playing", r), n.muted || (n.pause(), n.play()));
|
|
15662
|
+
};
|
|
15663
|
+
this.audioElement.addEventListener("playing", r);
|
|
15664
|
+
}
|
|
15665
|
+
this.setPlayoutVolume(this.playoutVolume);
|
|
15666
|
+
}
|
|
15667
|
+
if (((i = (t = this.audioElement.srcObject) == null ? void 0 : t.getAudioTracks()) == null ? void 0 : i[0]) !== this.audioTrack) {
|
|
15653
15668
|
let r = this.audioElement.srcObject;
|
|
15654
15669
|
r ? r.getAudioTracks().forEach((n) => {
|
|
15655
15670
|
r.removeTrack(n);
|
|
@@ -15660,12 +15675,12 @@ const Je = (_t = class extends Ha {
|
|
|
15660
15675
|
});
|
|
15661
15676
|
const e = this.audioElement;
|
|
15662
15677
|
this.audioElement.addEventListener("playing", function r() {
|
|
15663
|
-
e.removeEventListener("playing", r),
|
|
15678
|
+
e.removeEventListener("playing", r), we.SystenUtil.isIos && parseInt(we.SystenUtil.systemVersion) <= 14 && (e.muted || (e.pause(), e.play()));
|
|
15664
15679
|
});
|
|
15665
15680
|
});
|
|
15666
15681
|
}
|
|
15667
15682
|
stopPlayAudio() {
|
|
15668
|
-
this.audioElement && (this.audioElement.pause(), this.audioElement.srcObject = null, this.audioElement.removeEventListener("pause", this.handleAudioPaused)
|
|
15683
|
+
this.audioElement && (this.audioElement.pause(), this.audioElement.srcObject = null, this.audioElement.removeEventListener("pause", this.handleAudioPaused));
|
|
15669
15684
|
}
|
|
15670
15685
|
playAll(e = !1, t = !1) {
|
|
15671
15686
|
e ? (this.viewMap.screenViews || []).forEach((i) => {
|
|
@@ -15945,7 +15960,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
15945
15960
|
_(this, "dcConnectingPromise");
|
|
15946
15961
|
_(this, "_publishingTracks", []);
|
|
15947
15962
|
_(this, "parameter", {});
|
|
15948
|
-
this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = r, this.parameter = n, this.rts =
|
|
15963
|
+
this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = r, this.parameter = n, this.rts = we.createClient(), this.addRTSListener();
|
|
15949
15964
|
}
|
|
15950
15965
|
addRTSListener() {
|
|
15951
15966
|
this.rts.on("connectStatusChange", (e) => {
|
|
@@ -15962,7 +15977,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
15962
15977
|
this.setConnected(!0);
|
|
15963
15978
|
}
|
|
15964
15979
|
}), this.rts.on("datachannelStatusChange", (e) => {
|
|
15965
|
-
ae.event(`[${Qe.logName}]`, "rts datachannelStatusChange to:", e.status), e.status ===
|
|
15980
|
+
ae.event(`[${Qe.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === Bs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === Bs.DATACHANNEL_STATUS_CLOSE && (this.dcConnectingPromise = new Promise((t) => {
|
|
15966
15981
|
this.dcResolve = t;
|
|
15967
15982
|
}));
|
|
15968
15983
|
}), this.rts.on("receivedSEI", (e) => {
|
|
@@ -16008,7 +16023,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
16008
16023
|
this.rts.unpublish();
|
|
16009
16024
|
} catch (e) {
|
|
16010
16025
|
}
|
|
16011
|
-
this.rts =
|
|
16026
|
+
this.rts = we.createClient(), this.addRTSListener();
|
|
16012
16027
|
}
|
|
16013
16028
|
startConnect() {
|
|
16014
16029
|
this.connecting = !0, this.connectingPromise = new Promise((e) => {
|
|
@@ -16180,7 +16195,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
16180
16195
|
stream: t,
|
|
16181
16196
|
updateSourceStream: !1
|
|
16182
16197
|
}, p)
|
|
16183
|
-
])) : Promise.reject(new Y(
|
|
16198
|
+
])) : Promise.reject(new Y(te.ERR_INNER, "rts not connected"));
|
|
16184
16199
|
}),
|
|
16185
16200
|
ma,
|
|
16186
16201
|
0,
|
|
@@ -16519,7 +16534,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
16519
16534
|
const { options: o, remoteUser: u } = e;
|
|
16520
16535
|
if (o.video && o.screen)
|
|
16521
16536
|
throw new Y(
|
|
16522
|
-
|
|
16537
|
+
te.ERR_INNER,
|
|
16523
16538
|
"subscribe error, video and screen cannot be subscribed at the same time"
|
|
16524
16539
|
);
|
|
16525
16540
|
this.connecting && (yield this.connectingPromise);
|
|
@@ -16967,7 +16982,7 @@ const dt = (zt = class extends Ge {
|
|
|
16967
16982
|
_(this, "_publishLocalScreenStreamEnabled", !0);
|
|
16968
16983
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
16969
16984
|
const i = (r) => O(this, null, function* () {
|
|
16970
|
-
if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.1")) {
|
|
16985
|
+
if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.2-beta.1")) {
|
|
16971
16986
|
console.warn(`${r.name} is not supported!!!`), r.emit("unsupported");
|
|
16972
16987
|
return;
|
|
16973
16988
|
}
|
|
@@ -17058,7 +17073,7 @@ const dt = (zt = class extends Ge {
|
|
|
17058
17073
|
var e, t, i, r;
|
|
17059
17074
|
if ((e = this.cameraStreamInfo.cameraVideoConstraints) != null && e.deviceId) {
|
|
17060
17075
|
let n = (t = this.cameraStreamInfo.cameraVideoConstraints) == null ? void 0 : t.deviceId;
|
|
17061
|
-
const a = yield
|
|
17076
|
+
const a = yield we.getCameraList();
|
|
17062
17077
|
a.find((o) => o.deviceId === n) || (n = (r = (i = a.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? r : ""), this.cameraStreamInfo.cameraVideoConstraints.deviceId = n;
|
|
17063
17078
|
}
|
|
17064
17079
|
});
|
|
@@ -17069,7 +17084,7 @@ const dt = (zt = class extends Ge {
|
|
|
17069
17084
|
var e, t, i, r;
|
|
17070
17085
|
if ((e = this.cameraStreamInfo.micAudioConstraints) != null && e.deviceId) {
|
|
17071
17086
|
let n = (t = this.cameraStreamInfo.micAudioConstraints) == null ? void 0 : t.deviceId;
|
|
17072
|
-
const a = yield
|
|
17087
|
+
const a = yield we.getMicList();
|
|
17073
17088
|
a.find((o) => o.deviceId === n) || (n = (r = (i = a.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? r : ""), this.cameraStreamInfo.micAudioConstraints.deviceId = n;
|
|
17074
17089
|
}
|
|
17075
17090
|
});
|
|
@@ -17085,7 +17100,7 @@ const dt = (zt = class extends Ge {
|
|
|
17085
17100
|
i || (a === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), a = me({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof a == "object" && (yield this.setAvailableCameraDeviceId(), a = me(me({}, a), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = me({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = me(me({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
|
|
17086
17101
|
const f = Date.now();
|
|
17087
17102
|
try {
|
|
17088
|
-
h = yield
|
|
17103
|
+
h = yield we.createStream({
|
|
17089
17104
|
audio: o,
|
|
17090
17105
|
video: a,
|
|
17091
17106
|
screen: t,
|
|
@@ -17103,7 +17118,7 @@ const dt = (zt = class extends Ge {
|
|
|
17103
17118
|
l && (yield h.setAudioProfile(l));
|
|
17104
17119
|
}
|
|
17105
17120
|
}
|
|
17106
|
-
return
|
|
17121
|
+
return we.SystenUtil.isIos && we.SystenUtil.compareVersion("15.1") && !we.SystenUtil.compareVersion("15.2") && (yield Rt(1e3)), yield this.updateStreams(), h;
|
|
17107
17122
|
});
|
|
17108
17123
|
}
|
|
17109
17124
|
stopLocalStream(e) {
|
|
@@ -17133,7 +17148,7 @@ const dt = (zt = class extends Ge {
|
|
|
17133
17148
|
const a = yield this.publishStreams;
|
|
17134
17149
|
try {
|
|
17135
17150
|
if (!a.audio && !a.video && !a.videoSmall && !a.screen)
|
|
17136
|
-
throw ae.error(`[${zt.logName}]`, "no tracks founded"), new Y(
|
|
17151
|
+
throw ae.error(`[${zt.logName}]`, "no tracks founded"), new Y(te.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
|
|
17137
17152
|
const f = new MediaStream();
|
|
17138
17153
|
(o = a.audio) != null && o.audioTrack && f.addTrack(a.audio.audioTrack), (u = a.video) != null && u.videoTrack ? (f.addTrack(a.video.videoTrack), r = a.videoSmall, n = a.screen) : (h = a.screen) != null && h.videoTrack && (i = G.Screen, f.addTrack((m = a.screen) == null ? void 0 : m.videoTrack), t = !0), e = yield qa(f), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
|
|
17139
17154
|
} catch (f) {
|
|
@@ -18179,7 +18194,7 @@ class Ze extends Ge {
|
|
|
18179
18194
|
playoutVolume: this.playoutVolume,
|
|
18180
18195
|
parameter: this.parameter
|
|
18181
18196
|
});
|
|
18182
|
-
return r.on(et.Remote, this.onRemoteDeviceStatusChange.bind(this)), r.on(
|
|
18197
|
+
return r.on(et.Remote, this.onRemoteDeviceStatusChange.bind(this)), r.on(Re.PullStreamStats, this.onRemoteStatReport.bind(this)), r.on(Re.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), r.on("audioSubscribeStateChanged", (n, a, o, u) => {
|
|
18183
18198
|
this.emit("audioSubscribeStateChanged", n, a, o, u, this.channel || "");
|
|
18184
18199
|
}), r.on("videoSubscribeStateChanged", (n, a, o, u) => {
|
|
18185
18200
|
this.emit("videoSubscribeStateChanged", n, a, o, u, this.channel || "");
|
|
@@ -18196,7 +18211,9 @@ class Ze extends Ge {
|
|
|
18196
18211
|
}), r.on("remoteVideoPlayError", (n, a) => {
|
|
18197
18212
|
this.emit("remoteVideoPlayError", n, a);
|
|
18198
18213
|
}), r.on("remoteSubscribeError", (n) => {
|
|
18199
|
-
this.emit("remoteSubscribeError", n);
|
|
18214
|
+
this.emit("remoteSubscribeError", n, r.userId);
|
|
18215
|
+
}), r.on("occurError", (n) => {
|
|
18216
|
+
this.emit("occurError", n, r.userId);
|
|
18200
18217
|
}), r.on("remoteDataChannelMessage", (n, a) => {
|
|
18201
18218
|
this.emit("remoteDataChannelMessage", n, a);
|
|
18202
18219
|
}), r.setWantSubAudio(this.autoSubAudio && this.wantSubAudio), r.setWantSubVideo(this.autoSubVideo && this.wantSubVideo), r.setWantSubScreen(this.autoSubScreen && this.wantSubScreen), r.setRemoteDefaultVideoStreamType(this.defaultStreamType), r.setAudioMuted(this.audioMuted), (this.autoSubAudio || this.autoSubVideo || this.autoSubScreen) && r.updateSubscribe(i), r;
|
|
@@ -18207,20 +18224,20 @@ class Ze extends Ge {
|
|
|
18207
18224
|
* @param {string} userId
|
|
18208
18225
|
*/
|
|
18209
18226
|
onRemoteDeviceStatusChange(e, t) {
|
|
18210
|
-
e ===
|
|
18227
|
+
e === Re.MuteAudio ? this.emit("userAudioMuted", t, !0) : e === Re.UnmuteAudio ? this.emit("userAudioMuted", t, !1) : e === Re.MuteVideo ? this.emit("userVideoMuted", t, !0) : e === Re.UnmuteVideo ? this.emit("userVideoMuted", t, !1) : e === Re.MuteScreen ? this.emit("userScreenMuted", t, !0) : e === Re.UnmuteScreen && this.emit("userScreenMuted", t, !1);
|
|
18211
18228
|
}
|
|
18212
18229
|
/**
|
|
18213
18230
|
* 远端流数据采集上报
|
|
18214
18231
|
* @param {any} stat
|
|
18215
18232
|
*/
|
|
18216
18233
|
onRemoteStatReport(e, t, i) {
|
|
18217
|
-
this.emit(
|
|
18234
|
+
this.emit(Re.PullStreamStats, e, t, i);
|
|
18218
18235
|
}
|
|
18219
18236
|
/**
|
|
18220
18237
|
* rts 单 PC 订阅超限
|
|
18221
18238
|
*/
|
|
18222
18239
|
onSubscribeExceeds(e, t) {
|
|
18223
|
-
this.emit(
|
|
18240
|
+
this.emit(Re.RtsSubscribeExceeds, e, t);
|
|
18224
18241
|
}
|
|
18225
18242
|
removeLeftUser(e) {
|
|
18226
18243
|
return O(this, null, function* () {
|
|
@@ -18260,19 +18277,19 @@ class Ze extends Ge {
|
|
|
18260
18277
|
updateAudioWant(e, t) {
|
|
18261
18278
|
const i = this.userMap[e];
|
|
18262
18279
|
if (!i)
|
|
18263
|
-
throw new Y(
|
|
18280
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
18264
18281
|
i.setWantSubAudio(t), t ? i.updateSubscribe(Te.User) : i.stopSubscribe({ audio: !0 });
|
|
18265
18282
|
}
|
|
18266
18283
|
updateVideoWant(e, t) {
|
|
18267
18284
|
const i = this.userMap[e];
|
|
18268
18285
|
if (!i)
|
|
18269
|
-
throw new Y(
|
|
18286
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
18270
18287
|
i.setWantSubVideo(t), t ? i.updateSubscribe(Te.User) : i.stopSubscribe({ video: !0 });
|
|
18271
18288
|
}
|
|
18272
18289
|
updateScreenWant(e, t) {
|
|
18273
18290
|
const i = this.userMap[e];
|
|
18274
18291
|
if (!i)
|
|
18275
|
-
throw new Y(
|
|
18292
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
18276
18293
|
i.setWantSubScreen(t), t ? i.updateSubscribe(Te.User) : i.stopSubscribe({ screen: !0 });
|
|
18277
18294
|
}
|
|
18278
18295
|
stopIndication() {
|
|
@@ -18435,9 +18452,9 @@ class vu {
|
|
|
18435
18452
|
},
|
|
18436
18453
|
body: JSON.stringify(e)
|
|
18437
18454
|
}).then((h) => h.status !== 200 ? (this.slsReporter.reportTranscodingError(h.status, e.taskid || ""), Promise.reject(
|
|
18438
|
-
new Y(
|
|
18455
|
+
new Y(te.ERR_INNER, `transcoding request failed, status: ${h.status}`)
|
|
18439
18456
|
)) : h).catch((h) => Promise.reject(
|
|
18440
|
-
new Y(
|
|
18457
|
+
new Y(te.ERR_INNER, `transcoding request failed, err: ${h.message}`)
|
|
18441
18458
|
));
|
|
18442
18459
|
}
|
|
18443
18460
|
setAuthInfo(c) {
|
|
@@ -18536,19 +18553,19 @@ class Es {
|
|
|
18536
18553
|
*/
|
|
18537
18554
|
static checkAuthInfo(c) {
|
|
18538
18555
|
if (!c)
|
|
18539
|
-
return new Y(
|
|
18556
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no authInfo founded");
|
|
18540
18557
|
if (!c.appId)
|
|
18541
|
-
return new Y(
|
|
18558
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no appId founded");
|
|
18542
18559
|
if (!c.channelId)
|
|
18543
|
-
return new Y(
|
|
18560
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no channelId founded");
|
|
18544
18561
|
if (!c.userId)
|
|
18545
|
-
return new Y(
|
|
18562
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
|
|
18546
18563
|
if (c.timestamp) {
|
|
18547
18564
|
if (!Es.checkNumber(c.timestamp))
|
|
18548
|
-
return new Y(
|
|
18565
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
|
|
18549
18566
|
} else
|
|
18550
|
-
return new Y(
|
|
18551
|
-
return c.token ? null : new Y(
|
|
18567
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
|
|
18568
|
+
return c.token ? null : new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no token founded");
|
|
18552
18569
|
}
|
|
18553
18570
|
/**
|
|
18554
18571
|
* 检测是否是MediaStreamTrack类型
|
|
@@ -18822,8 +18839,8 @@ const ue = (le = class extends Ge {
|
|
|
18822
18839
|
this.emit("dataPublishStateChanged", f, l, p, (d = this.channel) != null ? d : "");
|
|
18823
18840
|
});
|
|
18824
18841
|
}
|
|
18825
|
-
occurError(e) {
|
|
18826
|
-
this.emit("onOccurError", e), this.emit("occurError", e);
|
|
18842
|
+
occurError(e, t) {
|
|
18843
|
+
this.emit("onOccurError", e, t), this.emit("occurError", e, t);
|
|
18827
18844
|
}
|
|
18828
18845
|
/**
|
|
18829
18846
|
* 监听 UM 事件
|
|
@@ -18879,8 +18896,10 @@ const ue = (le = class extends Ge {
|
|
|
18879
18896
|
this.emit("rtcRemoteAudioStats", e);
|
|
18880
18897
|
}), this.bizControl.on("rtcRemoteVideoStats", (e) => {
|
|
18881
18898
|
this.emit("rtcRemoteVideoStats", e);
|
|
18882
|
-
}), this.bizControl.on("remoteSubscribeError", (e) => {
|
|
18883
|
-
this.occurError(e), this.slsReporter.reportError(e);
|
|
18899
|
+
}), this.bizControl.on("remoteSubscribeError", (e, t) => {
|
|
18900
|
+
this.occurError(e, t), this.slsReporter.reportError(e);
|
|
18901
|
+
}), this.bizControl.on("occurError", (e, t) => {
|
|
18902
|
+
this.occurError(e, t), this.slsReporter.reportError(e);
|
|
18884
18903
|
}), this.bizControl.on("remoteDataChannelMessage", (e, t) => {
|
|
18885
18904
|
this.emit("dataChannelMsg", e, t);
|
|
18886
18905
|
});
|
|
@@ -18946,7 +18965,7 @@ const ue = (le = class extends Ge {
|
|
|
18946
18965
|
const i = t.userid;
|
|
18947
18966
|
if (i) {
|
|
18948
18967
|
const r = this.bizControl.addUser(i, t.displayname, Te.Join);
|
|
18949
|
-
ae.event(`[${le.logName}]`,
|
|
18968
|
+
ae.event(`[${le.logName}]`, Re.UserJoined, r);
|
|
18950
18969
|
}
|
|
18951
18970
|
});
|
|
18952
18971
|
}
|
|
@@ -19015,7 +19034,7 @@ const ue = (le = class extends Ge {
|
|
|
19015
19034
|
leaveList: i,
|
|
19016
19035
|
presentList: r
|
|
19017
19036
|
}), this.handleUsersJoin(t), i.forEach((n) => {
|
|
19018
|
-
ae.event(le.logName,
|
|
19037
|
+
ae.event(le.logName, Re.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid, xs.AliRtcUserOfflineQuit);
|
|
19019
19038
|
});
|
|
19020
19039
|
for (let n = 0; n < r.length; n++) {
|
|
19021
19040
|
const a = r[n], o = a.userid, u = this.bizControl.getRemoteUser(o);
|
|
@@ -19035,7 +19054,7 @@ const ue = (le = class extends Ge {
|
|
|
19035
19054
|
return O(this, null, function* () {
|
|
19036
19055
|
const t = this.bizControl.getRemoteUser(e);
|
|
19037
19056
|
if (!t)
|
|
19038
|
-
throw new Y(
|
|
19057
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19039
19058
|
t.restore(), t.updateSubscribe(Te.Retry);
|
|
19040
19059
|
});
|
|
19041
19060
|
}
|
|
@@ -19057,7 +19076,7 @@ const ue = (le = class extends Ge {
|
|
|
19057
19076
|
* @returns {void}
|
|
19058
19077
|
*/
|
|
19059
19078
|
onError(e) {
|
|
19060
|
-
this.slsReporter.reportError(e), ae.event(le.logName,
|
|
19079
|
+
this.slsReporter.reportError(e), ae.event(le.logName, Re.Error, e);
|
|
19061
19080
|
}
|
|
19062
19081
|
setEnableDualVideoStream(e, t) {
|
|
19063
19082
|
this.bizControl.setEnableDualVideoStream(e, t);
|
|
@@ -19068,7 +19087,7 @@ const ue = (le = class extends Ge {
|
|
|
19068
19087
|
// @ts-ignore
|
|
19069
19088
|
hadPushStream(e) {
|
|
19070
19089
|
if (!(this.publisher && e))
|
|
19071
|
-
throw new Y(
|
|
19090
|
+
throw new Y(te.ERR_INNER, "stream is not publishing");
|
|
19072
19091
|
}
|
|
19073
19092
|
/**
|
|
19074
19093
|
* 获取当前使用的麦克风 deviceId
|
|
@@ -19084,7 +19103,7 @@ const ue = (le = class extends Ge {
|
|
|
19084
19103
|
De.AliRtcConnectionStatusDisconnected,
|
|
19085
19104
|
De.AliRtcConnectionStatusFailed
|
|
19086
19105
|
].includes(this.connectState))
|
|
19087
|
-
throw new Y(
|
|
19106
|
+
throw new Y(te.ERR_INNER, "cannot set channel profile in call");
|
|
19088
19107
|
this.channelProfile = e, this.channelProfile === It.AliRtcSdkCommunication && (this.clientRole = Ft.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
|
|
19089
19108
|
}
|
|
19090
19109
|
startAndPublishDefaultDevices(e) {
|
|
@@ -19100,7 +19119,7 @@ const ue = (le = class extends Ge {
|
|
|
19100
19119
|
} catch (f) {
|
|
19101
19120
|
ae.warn(`[${le.logName}]`, "startDefaultCamera failed", f.code, f.message), f instanceof Y && this.occurError(f), this.occurError(
|
|
19102
19121
|
new Y(
|
|
19103
|
-
|
|
19122
|
+
te.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
|
|
19104
19123
|
`auto start video failed, ${f.message || ""}`
|
|
19105
19124
|
)
|
|
19106
19125
|
);
|
|
@@ -19110,7 +19129,7 @@ const ue = (le = class extends Ge {
|
|
|
19110
19129
|
} catch (f) {
|
|
19111
19130
|
ae.warn(`[${le.logName}]`, "startDefaultAUdio failed", f.code, f.message), f instanceof Y && this.occurError(f), this.occurError(
|
|
19112
19131
|
new Y(
|
|
19113
|
-
|
|
19132
|
+
te.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
|
|
19114
19133
|
`auto start audio failed, ${f.message || ""}`
|
|
19115
19134
|
)
|
|
19116
19135
|
);
|
|
@@ -19122,7 +19141,7 @@ const ue = (le = class extends Ge {
|
|
|
19122
19141
|
yield (m = this.publisher) == null ? void 0 : m.startPublish(!1, e);
|
|
19123
19142
|
} catch (f) {
|
|
19124
19143
|
const l = [];
|
|
19125
|
-
n != null && n.audio && l.push(
|
|
19144
|
+
n != null && n.audio && l.push(te.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), n != null && n.video && l.push(te.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), l.forEach((p) => {
|
|
19126
19145
|
this.occurError(new Y(p, `auto publish stream failed, ${f.message || ""}`));
|
|
19127
19146
|
});
|
|
19128
19147
|
}
|
|
@@ -19136,7 +19155,7 @@ const ue = (le = class extends Ge {
|
|
|
19136
19155
|
return;
|
|
19137
19156
|
if (!Object.values(Ft).includes(e))
|
|
19138
19157
|
throw new Y(
|
|
19139
|
-
|
|
19158
|
+
te.ERR_INVALID_ARGUMENTS,
|
|
19140
19159
|
`set client role error, role value(${e}) is invalid`
|
|
19141
19160
|
);
|
|
19142
19161
|
if (this.clientRole === e)
|
|
@@ -19156,12 +19175,12 @@ const ue = (le = class extends Ge {
|
|
|
19156
19175
|
}
|
|
19157
19176
|
setAudioOnlyMode(e) {
|
|
19158
19177
|
if (this.isInCall())
|
|
19159
|
-
throw new Y(
|
|
19178
|
+
throw new Y(te.ERR_INNER, "can not change audioOnly mode in call");
|
|
19160
19179
|
this._audioOnlyMode = e;
|
|
19161
19180
|
}
|
|
19162
19181
|
setAudioRedEnabled(e) {
|
|
19163
19182
|
if (this.isInCall())
|
|
19164
|
-
throw new Y(
|
|
19183
|
+
throw new Y(te.ERR_INNER, "can not change audioRedEnabled in call");
|
|
19165
19184
|
this.bizControl.setAudioRedEnabled(e);
|
|
19166
19185
|
}
|
|
19167
19186
|
/**
|
|
@@ -19196,7 +19215,7 @@ const ue = (le = class extends Ge {
|
|
|
19196
19215
|
token: h.token
|
|
19197
19216
|
};
|
|
19198
19217
|
} catch (h) {
|
|
19199
|
-
throw new Y(
|
|
19218
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
|
|
19200
19219
|
}
|
|
19201
19220
|
else
|
|
19202
19221
|
i = e;
|
|
@@ -19225,7 +19244,7 @@ const ue = (le = class extends Ge {
|
|
|
19225
19244
|
h.updateSubscribe(Te.Join);
|
|
19226
19245
|
});
|
|
19227
19246
|
} else {
|
|
19228
|
-
const h = new Y(
|
|
19247
|
+
const h = new Y(te.ERR_JOIN_ALREADY_JOINED, "already joined");
|
|
19229
19248
|
throw this.connectState === De.AliRtcConnectionStatusConnecting && (h.message = "Repeated operation during login"), this.slsReporter.reportJoin(h.code, n, ""), h;
|
|
19230
19249
|
}
|
|
19231
19250
|
});
|
|
@@ -19273,7 +19292,7 @@ const ue = (le = class extends Ge {
|
|
|
19273
19292
|
token: h.token
|
|
19274
19293
|
};
|
|
19275
19294
|
} catch (h) {
|
|
19276
|
-
throw new Y(
|
|
19295
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
|
|
19277
19296
|
}
|
|
19278
19297
|
else
|
|
19279
19298
|
t = e;
|
|
@@ -19323,7 +19342,7 @@ const ue = (le = class extends Ge {
|
|
|
19323
19342
|
subscribeRemoteAudioStream(e, t) {
|
|
19324
19343
|
if (t && !this.bizControl.isWantSubAudio)
|
|
19325
19344
|
throw new Y(
|
|
19326
|
-
|
|
19345
|
+
te.ERR_INVALID_ARGUMENTS,
|
|
19327
19346
|
"subscribeAllRemoteAudioStreams(true) must be called first"
|
|
19328
19347
|
);
|
|
19329
19348
|
this.bizControl.updateAudioWant(e, t);
|
|
@@ -19331,13 +19350,13 @@ const ue = (le = class extends Ge {
|
|
|
19331
19350
|
resumeRemoteAudioStream(e) {
|
|
19332
19351
|
const t = this.bizControl.getRemoteUser(e);
|
|
19333
19352
|
if (!t)
|
|
19334
|
-
throw new Y(
|
|
19353
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19335
19354
|
t.resumeAudio();
|
|
19336
19355
|
}
|
|
19337
19356
|
stopRemoteAudioPlay(e) {
|
|
19338
19357
|
const t = this.bizControl.getRemoteUser(e);
|
|
19339
19358
|
if (!t)
|
|
19340
|
-
throw new Y(
|
|
19359
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19341
19360
|
t.stopPlayAudio();
|
|
19342
19361
|
}
|
|
19343
19362
|
publishLocalVideoStream(e) {
|
|
@@ -19372,7 +19391,7 @@ const ue = (le = class extends Ge {
|
|
|
19372
19391
|
subscribeRemoteMediaStream(e, t, i, r) {
|
|
19373
19392
|
const n = this.bizControl.getRemoteUser(e);
|
|
19374
19393
|
if (!n)
|
|
19375
|
-
throw new Y(
|
|
19394
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19376
19395
|
i && (t === ye.AliRtcVideoTrackScreen || t === ye.AliRtcVideoTrackBoth) ? n.setWantSubScreen(!0) : n.setWantSubScreen(!1), i && (t === ye.AliRtcVideoTrackCamera || t === ye.AliRtcVideoTrackBoth) ? n.setWantSubVideo(!0) : n.setWantSubVideo(!1), n.setWantSubAudio(r), n.updateSubscribe(Te.User);
|
|
19377
19396
|
}
|
|
19378
19397
|
resumeRemoteMediaStream(e, t) {
|
|
@@ -19492,7 +19511,7 @@ const ue = (le = class extends Ge {
|
|
|
19492
19511
|
}
|
|
19493
19512
|
setAudioShareVolume(e) {
|
|
19494
19513
|
if (typeof e != "number")
|
|
19495
|
-
throw new Y(
|
|
19514
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "volume must be a number");
|
|
19496
19515
|
this.bizControl.setAudioVolume({
|
|
19497
19516
|
screen: Math.max(0, Math.min(e, 400)) / 100
|
|
19498
19517
|
});
|
|
@@ -19502,12 +19521,12 @@ const ue = (le = class extends Ge {
|
|
|
19502
19521
|
}
|
|
19503
19522
|
muteLocalMic(e = !1) {
|
|
19504
19523
|
var t;
|
|
19505
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
19524
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? Re.MuteAudio : Re.UnmuteAudio), (t = this.publisher) == null || t.muteLocalMic(e);
|
|
19506
19525
|
}
|
|
19507
19526
|
muteRemoteAudioPlaying(e, t = !1) {
|
|
19508
19527
|
const i = this.bizControl.getRemoteUser(e);
|
|
19509
19528
|
if (!i)
|
|
19510
|
-
throw new Y(
|
|
19529
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19511
19530
|
i.setAudioMuted(t);
|
|
19512
19531
|
}
|
|
19513
19532
|
muteAllRemoteAudioPlaying(e = !1) {
|
|
@@ -19547,22 +19566,22 @@ const ue = (le = class extends Ge {
|
|
|
19547
19566
|
}
|
|
19548
19567
|
setRecordingVolume(e) {
|
|
19549
19568
|
if (typeof e != "number")
|
|
19550
|
-
throw new Y(
|
|
19569
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "volume must be a number");
|
|
19551
19570
|
this.bizControl.setAudioVolume({
|
|
19552
19571
|
audio: Math.max(0, Math.min(e, 400)) / 100
|
|
19553
19572
|
});
|
|
19554
19573
|
}
|
|
19555
19574
|
setPlayoutVolume(e) {
|
|
19556
19575
|
if (typeof e != "number")
|
|
19557
|
-
throw new Y(
|
|
19576
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "volume must be a number");
|
|
19558
19577
|
this.bizControl.setPlayoutVolume(Math.max(0, Math.min(e, 100)) / 100);
|
|
19559
19578
|
}
|
|
19560
19579
|
setRemoteAudioVolume(e, t) {
|
|
19561
19580
|
const i = this.bizControl.getRemoteUser(e);
|
|
19562
19581
|
if (!i)
|
|
19563
|
-
throw new Y(
|
|
19582
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19564
19583
|
if (typeof t != "number")
|
|
19565
|
-
throw new Y(
|
|
19584
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "volume must be a number");
|
|
19566
19585
|
i.setPlayoutVolume(Math.max(0, Math.min(t, 100)) / 100);
|
|
19567
19586
|
}
|
|
19568
19587
|
setAudioProfile(e) {
|
|
@@ -19584,7 +19603,7 @@ const ue = (le = class extends Ge {
|
|
|
19584
19603
|
return O(this, null, function* () {
|
|
19585
19604
|
var i, r, n;
|
|
19586
19605
|
if (this._audioOnlyMode)
|
|
19587
|
-
throw new Y(
|
|
19606
|
+
throw new Y(te.ERR_INNER, "Cannot set local view in audio only mode");
|
|
19588
19607
|
(i = this.bizControl) == null || i.setLocalViewConfig(e, t), t === ye.AliRtcVideoTrackCamera && ((r = this.publisher) != null && r.hasCamera) ? yield this.startPreview() : t === ye.AliRtcVideoTrackScreen && ((n = this.publisher) != null && n.hasScreenShare) && (yield this.startPreviewScreen());
|
|
19589
19608
|
});
|
|
19590
19609
|
}
|
|
@@ -19617,20 +19636,20 @@ const ue = (le = class extends Ge {
|
|
|
19617
19636
|
return O(this, null, function* () {
|
|
19618
19637
|
var t, i, r, n, a, o, u, h, m, f, l;
|
|
19619
19638
|
if (this._audioOnlyMode)
|
|
19620
|
-
throw new Y(
|
|
19639
|
+
throw new Y(te.ERR_INNER, "Cannot enable local video in audio only mode");
|
|
19621
19640
|
e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((a = (n = (r = this.publisher) == null ? void 0 : r.publishStreams) == null ? void 0 : n.video) == null || a.disableVideo(), (m = (h = (u = (o = this.publisher) == null ? void 0 : o.publishStreams) == null ? void 0 : u.video) == null ? void 0 : h.videoTrack) == null || m.stop()), yield (f = this.publisher) == null ? void 0 : f.startCameraCapture()) : yield (l = this.publisher) == null ? void 0 : l.stopCameraCapture();
|
|
19622
19641
|
});
|
|
19623
19642
|
}
|
|
19624
19643
|
muteLocalCamera(e) {
|
|
19625
19644
|
return O(this, null, function* () {
|
|
19626
19645
|
var t;
|
|
19627
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
19646
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? Re.MuteVideo : Re.UnmuteVideo), (t = this.publisher) == null || t.muteLocalCamera(e);
|
|
19628
19647
|
});
|
|
19629
19648
|
}
|
|
19630
19649
|
muteLocalScreen(e) {
|
|
19631
19650
|
return O(this, null, function* () {
|
|
19632
19651
|
var t;
|
|
19633
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
19652
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? Re.MuteScreen : Re.UnmuteScreen), (t = this.publisher) == null || t.muteLocalScreen(e);
|
|
19634
19653
|
});
|
|
19635
19654
|
}
|
|
19636
19655
|
setRemoteViewConfig(e, t, i) {
|
|
@@ -19651,7 +19670,7 @@ const ue = (le = class extends Ge {
|
|
|
19651
19670
|
return O(this, null, function* () {
|
|
19652
19671
|
var r, n, a, o, u, h, m, f, l, p, d, g, b;
|
|
19653
19672
|
if (this._audioOnlyMode)
|
|
19654
|
-
throw new Y(
|
|
19673
|
+
throw new Y(te.ERR_INNER, "Cannot switch camera in audio only mode");
|
|
19655
19674
|
const i = {};
|
|
19656
19675
|
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((r = this.publisher) == null ? void 0 : r.cameraDirection) === "environment" ? gi.CAMERA_FRONT : gi.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((a = this.publisher) != null && a.cameraCaptureDisabled)) {
|
|
19657
19676
|
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((f = (m = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : m.video) == null || f.disableVideo(), (g = (d = (p = (l = this.publisher) == null ? void 0 : l.publishStreams) == null ? void 0 : p.video) == null ? void 0 : d.videoTrack) == null || g.stop());
|
|
@@ -19674,7 +19693,7 @@ const ue = (le = class extends Ge {
|
|
|
19674
19693
|
return O(this, null, function* () {
|
|
19675
19694
|
var e, t;
|
|
19676
19695
|
if (this._audioOnlyMode)
|
|
19677
|
-
throw new Y(
|
|
19696
|
+
throw new Y(te.ERR_INNER, "Cannot start preview camera in audio only mode");
|
|
19678
19697
|
(e = this.publisher) != null && e.hasCamera || (yield this.enableLocalVideo(!0)), yield (t = this.publisher) == null ? void 0 : t.previewAll({
|
|
19679
19698
|
screen: !1
|
|
19680
19699
|
});
|
|
@@ -19684,7 +19703,7 @@ const ue = (le = class extends Ge {
|
|
|
19684
19703
|
return O(this, null, function* () {
|
|
19685
19704
|
var t, i;
|
|
19686
19705
|
if (this._audioOnlyMode)
|
|
19687
|
-
throw new Y(
|
|
19706
|
+
throw new Y(te.ERR_INNER, "Cannot start preview screen share in audio only mode");
|
|
19688
19707
|
(t = this.publisher) != null && t.hasScreenShare || (yield this.startScreenShare(e)), yield (i = this.publisher) == null ? void 0 : i.previewAll({
|
|
19689
19708
|
primary: !1
|
|
19690
19709
|
});
|
|
@@ -19777,7 +19796,7 @@ const ue = (le = class extends Ge {
|
|
|
19777
19796
|
return O(this, null, function* () {
|
|
19778
19797
|
var r;
|
|
19779
19798
|
if (!this.publisher || !this.isPublishing)
|
|
19780
|
-
throw new Y(
|
|
19799
|
+
throw new Y(te.ERR_INNER, "you should publish first");
|
|
19781
19800
|
return this.slsReporter.reportSEIMessage(i, e.byteLength, t, 0, !1), (r = this.publisher) == null ? void 0 : r.sendSEI(e, t, i);
|
|
19782
19801
|
});
|
|
19783
19802
|
}
|
|
@@ -19896,11 +19915,11 @@ _(le, "isDualVideoStreamSupported", as.isSupport), /**
|
|
|
19896
19915
|
* @returns {Promise<string[]>}
|
|
19897
19916
|
*/
|
|
19898
19917
|
_(le, "getCameraList", () => O(le, null, function* () {
|
|
19899
|
-
return (yield
|
|
19918
|
+
return (yield we.getCameraList()).filter((t) => t.deviceId);
|
|
19900
19919
|
})), _(le, "getMicrophoneList", () => O(le, null, function* () {
|
|
19901
|
-
return (yield
|
|
19920
|
+
return (yield we.getMicList()).filter((t) => t.deviceId);
|
|
19902
19921
|
})), _(le, "getSpeakerList", () => O(le, null, function* () {
|
|
19903
|
-
return (yield
|
|
19922
|
+
return (yield we.getSpeakerList()).filter((t) => t.deviceId);
|
|
19904
19923
|
})), _(le, "_instance"), _(le, "AliRtcSdkChannelProfile", It), _(le, "AliRtcSdkClientRole", Ft), _(le, "AliRtcVideoStreamType", qe), _(le, "AliRtcVideoTrack", ye), _(le, "AliRtcAudioTrack", si), _(le, "AliRtcPublishState", ge), _(le, "AliRtcSubscribeState", ke), _(le, "AliRtcRawDataStreamType", je), _(le, "AliRtcLogLevel", La), _(le, "AliRtcEngineLocalDeviceType", St), _(le, "AliRtcEngineLocalDeviceExceptionType", He), _(le, "AliRtcConnectionStatus", De), _(le, "AliRtcConnectionStatusChangeReason", Yt), _(le, "AliRtcPlugin", ri), _(le, "AliRtcPluginTrackType", Fi), _(le, "AliRtcLiveTranscodingParam", ts), _(le, "AliRtcLiveTranscodingEncodeParam", Ua), _(le, "AliRtcLiveTranscodingMixParam", bu), _(le, "AliRtcLiveTranscodingSingleParam", xu), _(le, "AliRtcTranscodingClockWidget", Su), _(le, "AliRtcTranscodingImage", Xa), _(le, "AliRtcTranscodingText", _u), _(le, "AliRtcTranscodingUser", yu), _(le, "AliRtcLiveTranscodingMixMode", ki), _(le, "AliRtcLiveTranscodingStreamType", Ma), _(le, "AliRtcLiveTranscodingSourceType", mi), _(le, "AliRtcLiveTranscodingTaskProfile", Na), _(le, "AliRtcLiveTranscodingAudioSampleRate", gs), _(le, "AliRtcLiveTranscodingSegmentType", Ti), _(le, "AliRtcLiveTranscodingFontType", Oi), _(le, "AliRtcLiveTranscodingCropMode", Fa), _(le, "AliRtcLiveTranscodingMediaProcessMode", vs), _(le, "AliRtcLiveTranscodingState", Oa), _(le, "AliRtcLiveTranscodingErrorCode", xt), _(le, "AliRtcTrascodingPublishTaskStatus", Va), _(le, "AliRtcDataChannelMsg", ti), _(le, "AliRtcDataMsgType", $a), _(le, "Plugin", ri), le);
|
|
19905
19924
|
de([
|
|
19906
19925
|
j()
|
|
@@ -20144,7 +20163,7 @@ export {
|
|
|
20144
20163
|
$a as AliRtcDataMsgType,
|
|
20145
20164
|
He as AliRtcEngineLocalDeviceExceptionType,
|
|
20146
20165
|
St as AliRtcEngineLocalDeviceType,
|
|
20147
|
-
|
|
20166
|
+
te as AliRtcErrorCode,
|
|
20148
20167
|
gs as AliRtcLiveTranscodingAudioSampleRate,
|
|
20149
20168
|
Fa as AliRtcLiveTranscodingCropMode,
|
|
20150
20169
|
Ua as AliRtcLiveTranscodingEncodeParam,
|