@cloudflare/realtimekit 1.2.3 → 1.2.4-staging.2
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/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +4 -4
- package/dist/EncryptionManager.es.js +13 -13
- package/dist/browser.js +12 -12
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +10 -10
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +574 -312
- package/dist/index.es5.js +892 -710
- package/dist/index.rn.js +10 -10
- package/dist/ts3.4/dist/EncryptionManager.d.ts +4 -4
- package/dist/ts3.4/dist/index.d.ts +4 -4
- package/package.json +2 -3
package/dist/index.es.js
CHANGED
|
@@ -926,7 +926,7 @@ var np;
|
|
|
926
926
|
(function(s) {
|
|
927
927
|
s[s.INIT = 0] = "INIT", s[s.ACCEPTED = 1] = "ACCEPTED", s[s.DENIED = 2] = "DENIED", s[s.SYS_DENIED = 3] = "SYS_DENIED", s[s.FAILED = 4] = "FAILED", s[s.NOTFOUND = 5] = "NOTFOUND", s[s.NOT_APPLICABLE = 6] = "NOT_APPLICABLE";
|
|
928
928
|
})(np || (np = {}));
|
|
929
|
-
function
|
|
929
|
+
function Xr(s) {
|
|
930
930
|
return s ? s.split(".").slice(0, 2).concat(["0", "0"]).join(".") : "";
|
|
931
931
|
}
|
|
932
932
|
function Ed({ packetsLost: s, packetsSent: t }) {
|
|
@@ -1312,7 +1312,7 @@ class $S {
|
|
|
1312
1312
|
try {
|
|
1313
1313
|
const d = `https://${e.location}`, p = yield (yield fetch(d)).json();
|
|
1314
1314
|
if (((a = p.loc) == null ? void 0 : a.length) > 5)
|
|
1315
|
-
return this.ipInformation = p, (o = this.ipInformation) != null && o.ip && (this.ipInformation.ip =
|
|
1315
|
+
return this.ipInformation = p, (o = this.ipInformation) != null && o.ip && (this.ipInformation.ip = Xr(this.ipInformation.ip)), p;
|
|
1316
1316
|
throw Error("Insufficient data");
|
|
1317
1317
|
} catch (d) {
|
|
1318
1318
|
r.error("callstats::ipDetails:: failed to fetch ip using location service", { error: d });
|
|
@@ -1321,7 +1321,7 @@ class $S {
|
|
|
1321
1321
|
const d = yield fetch(`https://${e.locationLegacy}/?token=3c493932b0624c&peerId=${t}`, {
|
|
1322
1322
|
method: "POST"
|
|
1323
1323
|
});
|
|
1324
|
-
this.ipInformation = yield d.json(), (c = this.ipInformation) != null && c.ip && (this.ipInformation.ip =
|
|
1324
|
+
this.ipInformation = yield d.json(), (c = this.ipInformation) != null && c.ip && (this.ipInformation.ip = Xr(this.ipInformation.ip));
|
|
1325
1325
|
} catch (d) {
|
|
1326
1326
|
r.error("callstats::ipDetails:: failed to fetch ip using legacy location service", { error: d });
|
|
1327
1327
|
}
|
|
@@ -1519,7 +1519,7 @@ class wm extends lt {
|
|
|
1519
1519
|
}) || e[e.length - 1];
|
|
1520
1520
|
}
|
|
1521
1521
|
parseRTCReport(e, r = [], i = !1, a = void 0, o = void 0) {
|
|
1522
|
-
var _, C, w, L, F, N, B, G, re, tt, ds,
|
|
1522
|
+
var _, C, w, L, F, N, B, G, re, tt, ds, ri, ls;
|
|
1523
1523
|
const c = e, d = new Cm(), l = r.length ? new Set(r) : void 0, p = [], g = [], v = [], S = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
1524
1524
|
for (const A of c.values()) {
|
|
1525
1525
|
if (l) {
|
|
@@ -1793,7 +1793,7 @@ class wm extends lt {
|
|
|
1793
1793
|
score: +(I.score * 10).toFixed(),
|
|
1794
1794
|
packetsLostPercentage: Pd({
|
|
1795
1795
|
packetsLost: (I.packetsLost || 0) - (((ds = this.audioConsumerToStatsMap.get(R)) == null ? void 0 : ds.packetsLost) || 0),
|
|
1796
|
-
packetsReceived: (I.packetsReceived || 0) - (((
|
|
1796
|
+
packetsReceived: (I.packetsReceived || 0) - (((ri = this.audioConsumerToStatsMap.get(R)) == null ? void 0 : ri.packetsReceived) || 0)
|
|
1797
1797
|
}),
|
|
1798
1798
|
jitter: I.jitter || 0,
|
|
1799
1799
|
isScreenShare: this.screenShareConsumers.has(R),
|
|
@@ -1857,7 +1857,7 @@ class wm extends lt {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
}), v.forEach((A) => {
|
|
1859
1859
|
const y = p.find((x) => x.id === A.localCandidateId ? (A.localCandidateId = x.id, x) : null), R = g.find((x) => x.id === A.remoteCandidateId ? (A.remoteCandidateId = x.id, x) : null);
|
|
1860
|
-
y && (A.localCandidateType = y.type, A.localCandidateAddress =
|
|
1860
|
+
y && (A.localCandidateType = y.type, A.localCandidateAddress = Xr(y.address), A.localCandidatePort = y.port, A.localCandidateProtocol = y.protocol, A.localCandidateUrl = y.url, A.localCandidateNetworkType = y.networkType, A.localCandidateRelatedAddress = Xr(y.relatedAddress), A.localCandidateRelatedPort = y.relatedPort), R && (A.remoteCandidateType = R.type, A.remoteCandidateAddress = Xr(R.address), A.remoteCandidatePort = R.port, A.remoteCandidateProtocol = R.protocol, A.remoteCandidateUrl = R.url);
|
|
1861
1861
|
}), d.candidatePair && (d.transport ? (d.transport.totalRoundTripTime = d.candidatePair.totalRoundTripTime, d.transport.availableOutgoingBitrate = d.candidatePair.availableOutgoingBitrate, d.transport.availableIncomingBitrate = d.candidatePair.availableIncomingBitrate, d.transport.roundTripTime = d.candidatePair.currentRoundTripTime) : d.transport = {
|
|
1862
1862
|
// candidateStats: result.candidatePair,
|
|
1863
1863
|
bytesReceived: d.candidatePair.bytesReceived,
|
|
@@ -2170,7 +2170,7 @@ class Rm extends wm {
|
|
|
2170
2170
|
};
|
|
2171
2171
|
}
|
|
2172
2172
|
parseRTCReport(e, r = [], i = !1, a = void 0, o = void 0) {
|
|
2173
|
-
var _, C, w, L, F, N, B, G, re, tt, ds,
|
|
2173
|
+
var _, C, w, L, F, N, B, G, re, tt, ds, ri, ls;
|
|
2174
2174
|
const c = e, d = new Cm(), l = r.length ? new Set(r) : void 0, p = [], g = [], v = [], S = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
2175
2175
|
for (const A of c.values()) {
|
|
2176
2176
|
if (l) {
|
|
@@ -2440,7 +2440,7 @@ class Rm extends wm {
|
|
|
2440
2440
|
score: +(I.score * 10).toFixed(),
|
|
2441
2441
|
packetsLostPercentage: Pd({
|
|
2442
2442
|
packetsLost: (I.packetsLost || 0) - (((ds = this.audioConsumerToStatsMap.get(R)) == null ? void 0 : ds.packetsLost) || 0),
|
|
2443
|
-
packetsReceived: (I.packetsReceived || 0) - (((
|
|
2443
|
+
packetsReceived: (I.packetsReceived || 0) - (((ri = this.audioConsumerToStatsMap.get(R)) == null ? void 0 : ri.packetsReceived) || 0)
|
|
2444
2444
|
}),
|
|
2445
2445
|
jitter: I.jitter || 0,
|
|
2446
2446
|
isScreenShare: this.screenShareConsumers.has(R),
|
|
@@ -2504,7 +2504,7 @@ class Rm extends wm {
|
|
|
2504
2504
|
}
|
|
2505
2505
|
}), v.forEach((A) => {
|
|
2506
2506
|
const y = p.find((x) => x.id === A.localCandidateId ? (A.localCandidateId = x.id, x) : null), R = g.find((x) => x.id === A.remoteCandidateId ? (A.remoteCandidateId = x.id, x) : null);
|
|
2507
|
-
y && (A.localCandidateType = y.type, A.localCandidateAddress =
|
|
2507
|
+
y && (A.localCandidateType = y.type, A.localCandidateAddress = Xr(y.address), A.localCandidatePort = y.port, A.localCandidateProtocol = y.protocol, A.localCandidateUrl = y.url, A.localCandidateNetworkType = y.networkType, A.localCandidateRelatedAddress = Xr(y.relatedAddress), A.localCandidateRelatedPort = y.relatedPort), R && (A.remoteCandidateType = R.type, A.remoteCandidateAddress = Xr(R.address), A.remoteCandidatePort = R.port, A.remoteCandidateProtocol = R.protocol, A.remoteCandidateUrl = R.url);
|
|
2508
2508
|
}), d.candidatePair && (d.transport ? (d.transport.bytesReceived = d.candidatePair.bytesReceived, d.transport.bytesSent = d.candidatePair.bytesSent, d.transport.totalRoundTripTime = d.candidatePair.totalRoundTripTime, d.transport.availableOutgoingBitrate = d.candidatePair.availableOutgoingBitrate, d.transport.availableIncomingBitrate = d.candidatePair.availableIncomingBitrate, d.transport.roundTripTime = d.candidatePair.currentRoundTripTime) : d.transport = {
|
|
2509
2509
|
// candidateStats: result.candidatePair,
|
|
2510
2510
|
bytesReceived: d.candidatePair.bytesReceived,
|
|
@@ -4016,8 +4016,8 @@ var mE = pn(ks, "Set");
|
|
|
4016
4016
|
const Mn = mE;
|
|
4017
4017
|
var fE = pn(ks, "WeakMap");
|
|
4018
4018
|
const yu = fE;
|
|
4019
|
-
var Tp = "[object Map]", vE = "[object Object]", yp = "[object Promise]", Ep = "[object Set]", Pp = "[object WeakMap]", _p = "[object DataView]", SE = hn(Su), TE = hn(ko), yE = hn(Tu), EE = hn(Mn), PE = hn(yu),
|
|
4020
|
-
(Su &&
|
|
4019
|
+
var Tp = "[object Map]", vE = "[object Object]", yp = "[object Promise]", Ep = "[object Set]", Pp = "[object WeakMap]", _p = "[object DataView]", SE = hn(Su), TE = hn(ko), yE = hn(Tu), EE = hn(Mn), PE = hn(yu), ii = un;
|
|
4020
|
+
(Su && ii(new Su(new ArrayBuffer(1))) != _p || ko && ii(new ko()) != Tp || Tu && ii(Tu.resolve()) != yp || Mn && ii(new Mn()) != Ep || yu && ii(new yu()) != Pp) && (ii = function(s) {
|
|
4021
4021
|
var t = un(s), e = t == vE ? s.constructor : void 0, r = e ? hn(e) : "";
|
|
4022
4022
|
if (r)
|
|
4023
4023
|
switch (r) {
|
|
@@ -4034,7 +4034,7 @@ var Tp = "[object Map]", vE = "[object Object]", yp = "[object Promise]", Ep = "
|
|
|
4034
4034
|
}
|
|
4035
4035
|
return t;
|
|
4036
4036
|
});
|
|
4037
|
-
const La =
|
|
4037
|
+
const La = ii;
|
|
4038
4038
|
var _E = Object.prototype, CE = _E.hasOwnProperty;
|
|
4039
4039
|
function wE(s) {
|
|
4040
4040
|
var t = s.length, e = new s.constructor(t);
|
|
@@ -5517,7 +5517,6 @@ const ee = {
|
|
|
5517
5517
|
LOG_LEVEL: "log_level",
|
|
5518
5518
|
V1_PLUGINS: "v1_plugins",
|
|
5519
5519
|
LIVESTREAM: "feat_livestream",
|
|
5520
|
-
FEAT_PAGINATED_CHAT: "feat_paginated_chat",
|
|
5521
5520
|
VAL_MIN_FRAMERATE: "val_min_framerate",
|
|
5522
5521
|
SCREEENSHARE_ERR_HACK: "screenshare_err_hack",
|
|
5523
5522
|
SCREEENSHARE_CONSTRAINTS_RETRY: "screenshare_constraints_retry",
|
|
@@ -5626,7 +5625,7 @@ const uw = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=
|
|
|
5626
5625
|
o(), window.URL.revokeObjectURL(i);
|
|
5627
5626
|
}, r.src = i;
|
|
5628
5627
|
});
|
|
5629
|
-
},
|
|
5628
|
+
}, pi = {
|
|
5630
5629
|
logs: "https://api-silos.dyte.io/otel/logs",
|
|
5631
5630
|
mock: {
|
|
5632
5631
|
url: "https://mock.dyte.io",
|
|
@@ -5646,7 +5645,7 @@ const uw = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=
|
|
|
5646
5645
|
};
|
|
5647
5646
|
function pw(s) {
|
|
5648
5647
|
var r, i, a;
|
|
5649
|
-
const t = typeof navigator != "undefined" && !navigator.isReactNative && typeof window != "undefined" && ((r = window.location.host) == null ? void 0 : r.includes(
|
|
5648
|
+
const t = typeof navigator != "undefined" && !navigator.isReactNative && typeof window != "undefined" && ((r = window.location.host) == null ? void 0 : r.includes(pi.baseURI.staging)), e = !!((a = (i = s == null ? void 0 : s.getValue("modules")) == null ? void 0 : i.devTools) != null && a.logs);
|
|
5650
5649
|
return t || e;
|
|
5651
5650
|
}
|
|
5652
5651
|
function gw(s, t) {
|
|
@@ -6294,13 +6293,19 @@ const Bp = 1080, Hp = 1920, Pw = (s, t, e, r, i, a) => {
|
|
|
6294
6293
|
let g = d * p, v = l * p, S, P, _, C, w = 1;
|
|
6295
6294
|
return g < e && (w = e / g), Math.abs(w - 1) < 1e-14 && v < r && (w = r / v), g *= w, v *= w, _ = d / (g / e), C = l / (v / r), S = (d - _) * o, P = (l - C) * c, S < 0 && (S = 0), P < 0 && (P = 0), _ > d && (_ = d), C > l && (C = l), [S, P, _, C, s, t, e, r];
|
|
6296
6295
|
};
|
|
6297
|
-
var zt,
|
|
6296
|
+
var zt, gi, st, Yt, be, ps, zs, gt, De, Vn, Ln, Ys, xn;
|
|
6298
6297
|
const Qh = class extends jt {
|
|
6298
|
+
/**
|
|
6299
|
+
* @param {Context} context
|
|
6300
|
+
* @param {Self} self
|
|
6301
|
+
* @param {(string|HTMLImageElement)} [pin]
|
|
6302
|
+
* @param {(string|HTMLImageElement)} [handraise]
|
|
6303
|
+
*/
|
|
6299
6304
|
constructor(e, r, i, a) {
|
|
6300
6305
|
const o = e.getValue("logger");
|
|
6301
6306
|
super(o);
|
|
6302
6307
|
m(this, zt, void 0);
|
|
6303
|
-
m(this,
|
|
6308
|
+
m(this, gi, void 0);
|
|
6304
6309
|
m(this, st, void 0);
|
|
6305
6310
|
m(this, Yt, void 0);
|
|
6306
6311
|
m(this, be, {
|
|
@@ -6322,7 +6327,7 @@ const Qh = class extends jt {
|
|
|
6322
6327
|
m(this, Ys, void 0);
|
|
6323
6328
|
m(this, xn, !1);
|
|
6324
6329
|
h(this, "cleanupEventListeners", () => {
|
|
6325
|
-
n(this,
|
|
6330
|
+
n(this, gi).unsubscribe("stageStatus", this.handlePipMediaControls), n(this, De).removeListener("videoUpdate", this.onSelfVideoUpdateListener), n(this, De).removeListener("audioUpdate", this.onSelfAudioUpdateListener), n(this, De).removeListener("roomLeft", () => this.disable());
|
|
6326
6331
|
});
|
|
6327
6332
|
h(this, "enablePipMediaControls", () => {
|
|
6328
6333
|
this.mountAudioEvents(), this.mountVideoEvents();
|
|
@@ -6337,7 +6342,7 @@ const Qh = class extends jt {
|
|
|
6337
6342
|
e === "ON_STAGE" ? this.enablePipMediaControls() : this.unmountEvents();
|
|
6338
6343
|
});
|
|
6339
6344
|
h(this, "eventCallback", (e) => {
|
|
6340
|
-
e === "CAMERA" && (n(this, De).videoEnabled ? n(this, De).disableVideo() : n(this, De).enableVideo(), this.emit("cameraToggled")), e === "MIC" && (n(this, De).audioEnabled ? n(this, De).disableAudio() : n(this, De).enableAudio(), this.emit("micToggled")), e === "END" && (n(this,
|
|
6345
|
+
e === "CAMERA" && (n(this, De).videoEnabled ? n(this, De).disableVideo() : n(this, De).enableVideo(), this.emit("cameraToggled")), e === "MIC" && (n(this, De).audioEnabled ? n(this, De).disableAudio() : n(this, De).enableAudio(), this.emit("micToggled")), e === "END" && (n(this, gi).getValue("peerSessionStore").emit(k.PIP_HANGUP), this.cleanupEventListeners(), this.emit("hangup"), this.cleanup());
|
|
6341
6346
|
});
|
|
6342
6347
|
h(this, "unmountEvents", () => {
|
|
6343
6348
|
navigator.mediaSession === void 0 || navigator.mediaSession.setCameraActive === void 0 || (navigator.mediaSession.setActionHandler("togglemicrophone", void 0), navigator.mediaSession.setActionHandler("togglecamera", void 0));
|
|
@@ -6355,7 +6360,7 @@ const Qh = class extends jt {
|
|
|
6355
6360
|
h(this, "disable", (e = !1) => {
|
|
6356
6361
|
f(this, Ys, "idle"), this.cleanupEventListeners(), cancelAnimationFrame(n(this, zs)), e !== !0 && document.body.removeChild(n(this, st)), f(this, zs, void 0), document.pictureInPictureElement && document.exitPictureInPicture();
|
|
6357
6362
|
});
|
|
6358
|
-
f(this,
|
|
6363
|
+
f(this, gi, e), f(this, Ys, "idle"), f(this, De, r), f(this, ps, {
|
|
6359
6364
|
brand: r.config.designTokens.colors.brand[500],
|
|
6360
6365
|
background: r.config.designTokens.colors.background[1e3],
|
|
6361
6366
|
text: r.config.designTokens.colors.text,
|
|
@@ -6363,6 +6368,10 @@ const Qh = class extends jt {
|
|
|
6363
6368
|
textOnBrand: r.config.designTokens.colors.textOnBrand
|
|
6364
6369
|
}), i && this.setupIcon("pin", i), a && this.setupIcon("handRaise", a);
|
|
6365
6370
|
}
|
|
6371
|
+
/**
|
|
6372
|
+
* @param {Context} context
|
|
6373
|
+
* @param {Self} self
|
|
6374
|
+
*/
|
|
6366
6375
|
static _init(e, r) {
|
|
6367
6376
|
return u(this, null, function* () {
|
|
6368
6377
|
let i, a;
|
|
@@ -6409,7 +6418,7 @@ const Qh = class extends jt {
|
|
|
6409
6418
|
f(this, st, document.createElement("div")), n(this, st).style.width = "0.1px", n(this, st).style.height = "0.1px", n(this, st).style.overflow = "hidden", n(this, st).style.position = "absolute", n(this, st).style.bottom = "0", n(this, st).style.right = "0", n(this, st).style.opacity = "0", n(this, st).appendChild(n(this, Yt));
|
|
6410
6419
|
}
|
|
6411
6420
|
setupEventListeners() {
|
|
6412
|
-
n(this,
|
|
6421
|
+
n(this, gi).subscribe("stageStatus", this.handlePipMediaControls), n(this, De).addListener("videoUpdate", this.onSelfVideoUpdateListener), n(this, De).addListener("audioUpdate", this.onSelfAudioUpdateListener), n(this, De).addListener("roomLeft", () => this.disable());
|
|
6413
6422
|
}
|
|
6414
6423
|
createCanvas() {
|
|
6415
6424
|
const e = document.createElement("canvas");
|
|
@@ -6547,8 +6556,11 @@ const Qh = class extends jt {
|
|
|
6547
6556
|
this.removeAllSources(), f(this, zt, void 0), f(this, Yt, void 0), f(this, zs, void 0);
|
|
6548
6557
|
}
|
|
6549
6558
|
/**
|
|
6550
|
-
|
|
6551
|
-
|
|
6559
|
+
* Initialize PiP and prepare sources
|
|
6560
|
+
* @param {Object} [options]
|
|
6561
|
+
* @param {number} [options.height]
|
|
6562
|
+
* @param {number} [options.width]
|
|
6563
|
+
*/
|
|
6552
6564
|
init({ height: e, width: r } = {}) {
|
|
6553
6565
|
if (!this.isSupported())
|
|
6554
6566
|
throw this.logger.error("Pip.unsupported"), new Error("Picture-in-picture is not available in this environment");
|
|
@@ -6575,6 +6587,9 @@ const Qh = class extends jt {
|
|
|
6575
6587
|
enableSource(e) {
|
|
6576
6588
|
n(this, gt)[e] !== void 0 && (n(this, gt)[e].enabled = !0);
|
|
6577
6589
|
}
|
|
6590
|
+
/**
|
|
6591
|
+
* @param {string} source
|
|
6592
|
+
*/
|
|
6578
6593
|
disableSource(e) {
|
|
6579
6594
|
n(this, gt)[e] !== void 0 && (n(this, gt)[e].enabled = !1);
|
|
6580
6595
|
}
|
|
@@ -6618,7 +6633,11 @@ const Qh = class extends jt {
|
|
|
6618
6633
|
handRaised: d
|
|
6619
6634
|
}, c && this.generateAvatar(e, c);
|
|
6620
6635
|
}
|
|
6621
|
-
/**
|
|
6636
|
+
/**
|
|
6637
|
+
* Update a video source
|
|
6638
|
+
* @param {string} id
|
|
6639
|
+
* @param {any} source
|
|
6640
|
+
*/
|
|
6622
6641
|
updateSource(e, r) {
|
|
6623
6642
|
this.logger.info("Pip::UpdateSource", {
|
|
6624
6643
|
pip: {
|
|
@@ -6666,7 +6685,7 @@ const Qh = class extends jt {
|
|
|
6666
6685
|
}
|
|
6667
6686
|
};
|
|
6668
6687
|
let wu = Qh;
|
|
6669
|
-
zt = new WeakMap(),
|
|
6688
|
+
zt = new WeakMap(), gi = new WeakMap(), st = new WeakMap(), Yt = new WeakMap(), be = new WeakMap(), ps = new WeakMap(), zs = new WeakMap(), gt = new WeakMap(), De = new WeakMap(), Vn = new WeakMap(), Ln = new WeakMap(), Ys = new WeakMap(), xn = new WeakMap();
|
|
6670
6689
|
var Sr;
|
|
6671
6690
|
(function(s) {
|
|
6672
6691
|
s[s.PUBLISHER = 0] = "PUBLISHER", s[s.SUBSCRIBER = 1] = "SUBSCRIBER";
|
|
@@ -9458,10 +9477,10 @@ var Mu;
|
|
|
9458
9477
|
(function(s) {
|
|
9459
9478
|
s[s.NONE = 0] = "NONE", s[s.SKIP = 1] = "SKIP", s[s.ON_PRIVILEGED_USER_ENTRY = 2] = "ON_PRIVILEGED_USER_ENTRY", s[s.SKIP_ON_ACCEPT = 3] = "SKIP_ON_ACCEPT";
|
|
9460
9479
|
})(Mu || (Mu = {}));
|
|
9461
|
-
var
|
|
9480
|
+
var Yr;
|
|
9462
9481
|
(function(s) {
|
|
9463
9482
|
s[s.NONE = 0] = "NONE", s[s.ALLOWED = 1] = "ALLOWED", s[s.NOT_ALLOWED = 2] = "NOT_ALLOWED", s[s.CAN_REQUEST = 3] = "CAN_REQUEST";
|
|
9464
|
-
})(
|
|
9483
|
+
})(Yr || (Yr = {}));
|
|
9465
9484
|
class eI extends T {
|
|
9466
9485
|
constructor() {
|
|
9467
9486
|
super("socket.preset.PollsPermissionUpdate", [
|
|
@@ -9629,8 +9648,8 @@ const uI = new lI();
|
|
|
9629
9648
|
class hI extends T {
|
|
9630
9649
|
constructor() {
|
|
9631
9650
|
super("socket.preset.StreamPermission", [
|
|
9632
|
-
{ no: 1, name: "can_produce", kind: "enum", opt: !0, T: () => ["socket.preset.StreamPermissionType",
|
|
9633
|
-
{ no: 2, name: "can_consume", kind: "enum", opt: !0, T: () => ["socket.preset.StreamPermissionType",
|
|
9651
|
+
{ no: 1, name: "can_produce", kind: "enum", opt: !0, T: () => ["socket.preset.StreamPermissionType", Yr, "STREAM_PERMISSION_TYPE_"] },
|
|
9652
|
+
{ no: 2, name: "can_consume", kind: "enum", opt: !0, T: () => ["socket.preset.StreamPermissionType", Yr, "STREAM_PERMISSION_TYPE_"] }
|
|
9634
9653
|
]);
|
|
9635
9654
|
}
|
|
9636
9655
|
}
|
|
@@ -11793,7 +11812,7 @@ function If(s, t) {
|
|
|
11793
11812
|
const $ = Fa(bM, OM), Re = Fa(kM, NM), J = Fa(
|
|
11794
11813
|
IM,
|
|
11795
11814
|
VM
|
|
11796
|
-
), Ws = Fa(AM, LM),
|
|
11815
|
+
), Ws = Fa(AM, LM), li = Fa(
|
|
11797
11816
|
MM,
|
|
11798
11817
|
xM
|
|
11799
11818
|
), Ar = If(kf, 16777216), Cs = If(kf, 50331648), ld = Fa(
|
|
@@ -11836,7 +11855,7 @@ const Nu = (Ig = class {
|
|
|
11836
11855
|
};
|
|
11837
11856
|
i && (a.visibility = "private");
|
|
11838
11857
|
const o = yield n(this, Mr).sendMessagePromise(
|
|
11839
|
-
|
|
11858
|
+
li.createChatChannel,
|
|
11840
11859
|
oA.toBinary(a)
|
|
11841
11860
|
), c = js.fromBinary(
|
|
11842
11861
|
o.payload
|
|
@@ -11847,7 +11866,7 @@ const Nu = (Ig = class {
|
|
|
11847
11866
|
updateChannel(s, t) {
|
|
11848
11867
|
return u(this, null, function* () {
|
|
11849
11868
|
const e = yield n(this, Mr).sendMessagePromise(
|
|
11850
|
-
|
|
11869
|
+
li.updateChatChannel,
|
|
11851
11870
|
dA.toBinary({
|
|
11852
11871
|
chatChannelId: s,
|
|
11853
11872
|
targetUserIds: t.memberIds,
|
|
@@ -11876,7 +11895,7 @@ const Nu = (Ig = class {
|
|
|
11876
11895
|
return u(this, null, function* () {
|
|
11877
11896
|
try {
|
|
11878
11897
|
const t = yield n(this, Mr).sendMessagePromise(
|
|
11879
|
-
|
|
11898
|
+
li.getChannelMembers,
|
|
11880
11899
|
hA.toBinary({ chatChannelId: s })
|
|
11881
11900
|
);
|
|
11882
11901
|
return EA.fromBinary(t.payload).channelMembers.map((i) => {
|
|
@@ -11891,13 +11910,13 @@ const Nu = (Ig = class {
|
|
|
11891
11910
|
on(s, t) {
|
|
11892
11911
|
let e, r;
|
|
11893
11912
|
switch (s) {
|
|
11894
|
-
case
|
|
11913
|
+
case li.createChatChannel: {
|
|
11895
11914
|
e = js.fromBinary.bind(
|
|
11896
11915
|
js
|
|
11897
11916
|
), r = js.create();
|
|
11898
11917
|
break;
|
|
11899
11918
|
}
|
|
11900
|
-
case
|
|
11919
|
+
case li.updateChatChannel: {
|
|
11901
11920
|
e = js.fromBinary.bind(
|
|
11902
11921
|
js
|
|
11903
11922
|
), r = js.create();
|
|
@@ -12299,7 +12318,7 @@ class hg {
|
|
|
12299
12318
|
return L;
|
|
12300
12319
|
} catch (v) {
|
|
12301
12320
|
if (v instanceof Error && l > 0)
|
|
12302
|
-
return yield new Promise((S) => setTimeout(S, p)), this.defaults.baseURL ===
|
|
12321
|
+
return yield new Promise((S) => setTimeout(S, p)), this.defaults.baseURL === pi.apiBase.prod ? this.defaults.baseURL = pi.apiBase.prodAlternate : this.defaults.baseURL === pi.apiBase.prodAlternate && (this.defaults.baseURL = pi.apiBase.prod), this.request(H(D({}, t), {
|
|
12303
12322
|
retry: l - 1
|
|
12304
12323
|
}));
|
|
12305
12324
|
throw v;
|
|
@@ -12353,7 +12372,7 @@ class KM {
|
|
|
12353
12372
|
timeout: r = JM,
|
|
12354
12373
|
retry: i = GM,
|
|
12355
12374
|
retryDelay: a = WM,
|
|
12356
|
-
baseURL: o =
|
|
12375
|
+
baseURL: o = pi.apiBase.prod,
|
|
12357
12376
|
authToken: c,
|
|
12358
12377
|
cachedUserDetails: d
|
|
12359
12378
|
} = e || {};
|
|
@@ -12737,8 +12756,15 @@ var ZM = Object.defineProperty, e0 = Object.getOwnPropertyDescriptor, ht = (s, t
|
|
|
12737
12756
|
return r && i && ZM(t, e, i), i;
|
|
12738
12757
|
};
|
|
12739
12758
|
const t0 = ["text", "image", "file", "custom", "poll"], ud = { maxInvocations: 180, period: 60 };
|
|
12740
|
-
var Z,
|
|
12759
|
+
var Z, mi, $e, fi, vi, xd, Mf, No, Lu, Ag;
|
|
12741
12760
|
let ze = (Ag = class extends jt {
|
|
12761
|
+
/**
|
|
12762
|
+
* @param {Context} context
|
|
12763
|
+
* @param {ChatSocketHandler} chatSocketHandler
|
|
12764
|
+
* @param {ChatChannelSocketHandler} chatChannelSocketHandler
|
|
12765
|
+
* @param {Self} self
|
|
12766
|
+
* @param {Participants} participants
|
|
12767
|
+
*/
|
|
12742
12768
|
constructor(t, e, r, i, a) {
|
|
12743
12769
|
const o = t.getValue("logger");
|
|
12744
12770
|
super(o);
|
|
@@ -12757,26 +12783,34 @@ let ze = (Ag = class extends jt {
|
|
|
12757
12783
|
*/
|
|
12758
12784
|
h(this, "channels", []);
|
|
12759
12785
|
m(this, Z, void 0);
|
|
12760
|
-
m(this,
|
|
12786
|
+
m(this, mi, void 0);
|
|
12761
12787
|
m(this, $e, void 0);
|
|
12788
|
+
m(this, fi, void 0);
|
|
12762
12789
|
m(this, vi, void 0);
|
|
12763
|
-
m(this, Si, void 0);
|
|
12764
12790
|
h(this, "maxTextLimit", 2e3);
|
|
12765
|
-
f(this,
|
|
12791
|
+
f(this, vi, t), f(this, $e, e), f(this, fi, r), f(this, Z, i), f(this, mi, a), this.messages = [];
|
|
12766
12792
|
}
|
|
12767
12793
|
/**
|
|
12768
12794
|
* @access private
|
|
12769
12795
|
* Not for external use
|
|
12770
12796
|
*/
|
|
12771
12797
|
get telemetry() {
|
|
12772
|
-
return n(this,
|
|
12798
|
+
return n(this, vi).getValue("telemetry");
|
|
12773
12799
|
}
|
|
12774
12800
|
/**
|
|
12775
|
-
|
|
12776
|
-
|
|
12801
|
+
* Set the max character limit of a text message
|
|
12802
|
+
* @param {number} limit - Max character limit for a text message.
|
|
12803
|
+
*/
|
|
12777
12804
|
setMaxTextLimit(t) {
|
|
12778
12805
|
this.maxTextLimit = t;
|
|
12779
12806
|
}
|
|
12807
|
+
/**
|
|
12808
|
+
* @param {MessagePayload} message - Message payload to send.
|
|
12809
|
+
* @param {string[]} [participantIds] - Participant ids to send the message to.
|
|
12810
|
+
* @param {string} [channelId] - Channel id (if sending to a channel).
|
|
12811
|
+
* @param {Object} [options] - Additional options.
|
|
12812
|
+
* @param {Message} [options.replyTo] - Message to reply to.
|
|
12813
|
+
*/
|
|
12780
12814
|
sendMessageInternal(a, o, c) {
|
|
12781
12815
|
return u(this, arguments, function* (t, e, r, i = {}) {
|
|
12782
12816
|
switch (t.type) {
|
|
@@ -12799,6 +12833,11 @@ let ze = (Ag = class extends jt {
|
|
|
12799
12833
|
}
|
|
12800
12834
|
});
|
|
12801
12835
|
}
|
|
12836
|
+
/**
|
|
12837
|
+
* @param {string} message - Text message to send.
|
|
12838
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
12839
|
+
* @param {string} [channelId] - Channel id (if sending to a channel).
|
|
12840
|
+
*/
|
|
12802
12841
|
sendTextMessageInternal(t, e, r) {
|
|
12803
12842
|
return u(this, null, function* () {
|
|
12804
12843
|
var a, o, c, d, l, p;
|
|
@@ -12816,13 +12855,18 @@ let ze = (Ag = class extends jt {
|
|
|
12816
12855
|
return;
|
|
12817
12856
|
}
|
|
12818
12857
|
let i = [];
|
|
12819
|
-
e && e.length > 0 && (e.push(n(this, Z).id), i = n(this,
|
|
12858
|
+
e && e.length > 0 && (e.push(n(this, Z).id), i = n(this, mi).joined.toArray().filter((g) => e.includes(g.id)).map((g) => g.userId), i.push(n(this, Z).userId)), n(this, $e).sendMessage(
|
|
12820
12859
|
t,
|
|
12821
12860
|
Et.TEXT,
|
|
12822
12861
|
e
|
|
12823
12862
|
);
|
|
12824
12863
|
});
|
|
12825
12864
|
}
|
|
12865
|
+
/**
|
|
12866
|
+
* @param {(File|ReactNativeFile)} image - Image file to send.
|
|
12867
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
12868
|
+
* @param {string} [channelId] - Channel id (if sending to a channel).
|
|
12869
|
+
*/
|
|
12826
12870
|
sendImageMessageInternal(t, e, r) {
|
|
12827
12871
|
return u(this, null, function* () {
|
|
12828
12872
|
var a, o, c, d, l, p;
|
|
@@ -12857,7 +12901,7 @@ let ze = (Ag = class extends jt {
|
|
|
12857
12901
|
return;
|
|
12858
12902
|
}
|
|
12859
12903
|
let P = [];
|
|
12860
|
-
e && e.length > 0 && (e.push(n(this, Z).id), P = n(this,
|
|
12904
|
+
e && e.length > 0 && (e.push(n(this, Z).id), P = n(this, mi).joined.toArray().filter((_) => e.includes(_.id)).map((_) => _.userId), P.push(n(this, Z).userId)), n(this, $e).sendMessage(
|
|
12861
12905
|
v,
|
|
12862
12906
|
Et.IMAGE,
|
|
12863
12907
|
e
|
|
@@ -12867,6 +12911,11 @@ let ze = (Ag = class extends jt {
|
|
|
12867
12911
|
}
|
|
12868
12912
|
});
|
|
12869
12913
|
}
|
|
12914
|
+
/**
|
|
12915
|
+
* @param {(File|ReactNativeFile)} file - File to send.
|
|
12916
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
12917
|
+
* @param {string} [channelId] - Channel id (if sending to a channel).
|
|
12918
|
+
*/
|
|
12870
12919
|
sendFileMessageInternal(t, e, r) {
|
|
12871
12920
|
return u(this, null, function* () {
|
|
12872
12921
|
var i, a, o, c, d, l;
|
|
@@ -12901,7 +12950,7 @@ let ze = (Ag = class extends jt {
|
|
|
12901
12950
|
return;
|
|
12902
12951
|
}
|
|
12903
12952
|
let S = [];
|
|
12904
|
-
e && e.length > 0 && (e.push(n(this, Z).id), S = n(this,
|
|
12953
|
+
e && e.length > 0 && (e.push(n(this, Z).id), S = n(this, mi).joined.toArray().filter((_) => e.includes(_.id)).map((_) => _.userId), S.push(n(this, Z).userId));
|
|
12905
12954
|
const P = JSON.stringify({
|
|
12906
12955
|
link: g,
|
|
12907
12956
|
name: t.name,
|
|
@@ -12921,6 +12970,10 @@ let ze = (Ag = class extends jt {
|
|
|
12921
12970
|
get rateLimits() {
|
|
12922
12971
|
return ud;
|
|
12923
12972
|
}
|
|
12973
|
+
/**
|
|
12974
|
+
* @param {number} num
|
|
12975
|
+
* @param {number} period
|
|
12976
|
+
*/
|
|
12924
12977
|
// eslint-disable-next-line class-methods-use-this
|
|
12925
12978
|
updateRateLimits(t, e) {
|
|
12926
12979
|
ud.maxInvocations = t, ud.period = e;
|
|
@@ -12930,6 +12983,10 @@ let ze = (Ag = class extends jt {
|
|
|
12930
12983
|
return this.sendTextMessageInternal(t, e);
|
|
12931
12984
|
});
|
|
12932
12985
|
}
|
|
12986
|
+
/**
|
|
12987
|
+
* @param {CustomMessagePayload} message - Custom message payload.
|
|
12988
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
12989
|
+
*/
|
|
12933
12990
|
sendCustomMessage(t, e) {
|
|
12934
12991
|
return u(this, null, function* () {
|
|
12935
12992
|
var a, o, c, d, l, p, g, v, S, P, _, C, w, L, F;
|
|
@@ -13108,21 +13165,23 @@ let ze = (Ag = class extends jt {
|
|
|
13108
13165
|
}
|
|
13109
13166
|
/**
|
|
13110
13167
|
* Returns an array of messages sent by a specific userId.
|
|
13111
|
-
* @param userId The user id of the user that sent the message.
|
|
13168
|
+
* @param {string} userId The user id of the user that sent the message.
|
|
13112
13169
|
*/
|
|
13113
13170
|
getMessagesByUser(t) {
|
|
13114
13171
|
return this.messages.filter((e) => e.userId === t);
|
|
13115
13172
|
}
|
|
13116
13173
|
/**
|
|
13117
13174
|
* Returns an array of 'text', 'image' or 'file' messages.
|
|
13118
|
-
* @param
|
|
13175
|
+
* @param {(
|
|
13176
|
+
* 'text'|'image'|'file'|'custom'|'poll'
|
|
13177
|
+
* )} type 'text', 'image', 'file', 'custom', or 'poll'.
|
|
13119
13178
|
*/
|
|
13120
13179
|
getMessagesByType(t) {
|
|
13121
13180
|
return this.messages.filter((e) => e.type === t);
|
|
13122
13181
|
}
|
|
13123
13182
|
/**
|
|
13124
13183
|
* Pins a chat message
|
|
13125
|
-
* @param id ID of the message to be pinned
|
|
13184
|
+
* @param {string} id ID of the message to be pinned
|
|
13126
13185
|
*/
|
|
13127
13186
|
pin(t) {
|
|
13128
13187
|
return u(this, null, function* () {
|
|
@@ -13140,7 +13199,7 @@ let ze = (Ag = class extends jt {
|
|
|
13140
13199
|
}
|
|
13141
13200
|
/**
|
|
13142
13201
|
* Unpins a chat message
|
|
13143
|
-
* @param id ID of the message to be unpinned
|
|
13202
|
+
* @param {string} id ID of the message to be unpinned
|
|
13144
13203
|
*/
|
|
13145
13204
|
unpin(t) {
|
|
13146
13205
|
return u(this, null, function* () {
|
|
@@ -13158,6 +13217,11 @@ let ze = (Ag = class extends jt {
|
|
|
13158
13217
|
}
|
|
13159
13218
|
/**
|
|
13160
13219
|
* Gets chat messages in a paginated manner
|
|
13220
|
+
* @param {number} timeStamp
|
|
13221
|
+
* @param {number} size
|
|
13222
|
+
* @param {boolean} reversed
|
|
13223
|
+
* @param {number} [offset=0]
|
|
13224
|
+
* @param {string} [channelId]
|
|
13161
13225
|
*/
|
|
13162
13226
|
getMessages(t, e, r, i = 0, a = void 0) {
|
|
13163
13227
|
return u(this, null, function* () {
|
|
@@ -13185,7 +13249,7 @@ let ze = (Ag = class extends jt {
|
|
|
13185
13249
|
if (!t || t.trim().length === 0)
|
|
13186
13250
|
throw new b("channel name cannot be empty.", "0510");
|
|
13187
13251
|
const c = [.../* @__PURE__ */ new Set([...e, n(this, Z).userId])];
|
|
13188
|
-
return yield n(this,
|
|
13252
|
+
return yield n(this, fi).createChannel(
|
|
13189
13253
|
t.trim(),
|
|
13190
13254
|
c,
|
|
13191
13255
|
r.displayPictureUrl,
|
|
@@ -13211,7 +13275,7 @@ let ze = (Ag = class extends jt {
|
|
|
13211
13275
|
displayPictureUrl: (l = e.displayPictureUrl) != null ? l : r.displayPictureUrl,
|
|
13212
13276
|
visibility: (p = e.visibility) != null ? p : r.visibility
|
|
13213
13277
|
};
|
|
13214
|
-
return n(this,
|
|
13278
|
+
return n(this, fi).updateChannel(t, a);
|
|
13215
13279
|
}
|
|
13216
13280
|
sendMessageToChannel(i, a) {
|
|
13217
13281
|
return u(this, arguments, function* (t, e, r = {}) {
|
|
@@ -13220,12 +13284,12 @@ let ze = (Ag = class extends jt {
|
|
|
13220
13284
|
}
|
|
13221
13285
|
getChannelMembers(t) {
|
|
13222
13286
|
return u(this, null, function* () {
|
|
13223
|
-
return n(this,
|
|
13287
|
+
return n(this, fi).getChannelMembers(t);
|
|
13224
13288
|
});
|
|
13225
13289
|
}
|
|
13226
13290
|
searchMessages(r) {
|
|
13227
13291
|
return u(this, arguments, function* (t, e = {}) {
|
|
13228
|
-
if (!n(this,
|
|
13292
|
+
if (!n(this, vi).getValue("flagsmith").hasFeature(ee.FEAT_CHAT_SDK_SEARCH))
|
|
13229
13293
|
throw new b("searchMessages is temporarily disabled!", "0506");
|
|
13230
13294
|
return (yield n(this, $e).searchMessages(t, e)).map(ws.formatSocketPeerMessage);
|
|
13231
13295
|
});
|
|
@@ -13246,8 +13310,8 @@ let ze = (Ag = class extends jt {
|
|
|
13246
13310
|
get pinned() {
|
|
13247
13311
|
return this.messages.filter((t) => t.pinned);
|
|
13248
13312
|
}
|
|
13249
|
-
}, Z = new WeakMap(),
|
|
13250
|
-
return n(this,
|
|
13313
|
+
}, Z = new WeakMap(), mi = new WeakMap(), $e = new WeakMap(), fi = new WeakMap(), vi = new WeakMap(), xd = new WeakSet(), Mf = function() {
|
|
13314
|
+
return n(this, vi).getValue("connectionHandler");
|
|
13251
13315
|
}, No = new WeakSet(), Lu = function() {
|
|
13252
13316
|
return n(this, xd, Mf).socketJoined === !0;
|
|
13253
13317
|
}, Ag);
|
|
@@ -13307,15 +13371,15 @@ var s0 = Object.defineProperty, r0 = Object.getOwnPropertyDescriptor, i0 = (s, t
|
|
|
13307
13371
|
for (var i = r > 1 ? void 0 : r ? r0(t, e) : t, a = s.length - 1, o; a >= 0; a--)
|
|
13308
13372
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
13309
13373
|
return r && i && s0(t, e, i), i;
|
|
13310
|
-
},
|
|
13311
|
-
const
|
|
13374
|
+
}, Si, Mg;
|
|
13375
|
+
const ni = (Mg = class {
|
|
13312
13376
|
constructor(s, t, e, r, i) {
|
|
13313
13377
|
h(this, "chat");
|
|
13314
13378
|
h(this, "chatSocketHandler");
|
|
13315
13379
|
h(this, "chatChannelSocketHandler");
|
|
13316
13380
|
h(this, "self");
|
|
13317
|
-
m(this,
|
|
13318
|
-
f(this,
|
|
13381
|
+
m(this, Si, void 0);
|
|
13382
|
+
f(this, Si, s), this.chatSocketHandler = t, this.chatChannelSocketHandler = e, this.chat = new ze(
|
|
13319
13383
|
s,
|
|
13320
13384
|
t,
|
|
13321
13385
|
e,
|
|
@@ -13328,18 +13392,18 @@ const ai = (Mg = class {
|
|
|
13328
13392
|
* Not for external use
|
|
13329
13393
|
*/
|
|
13330
13394
|
get telemetry() {
|
|
13331
|
-
return n(this,
|
|
13395
|
+
return n(this, Si).getValue("telemetry");
|
|
13332
13396
|
}
|
|
13333
13397
|
/**
|
|
13334
13398
|
* @access private
|
|
13335
13399
|
* Not for external use
|
|
13336
13400
|
*/
|
|
13337
13401
|
get logger() {
|
|
13338
|
-
return n(this,
|
|
13402
|
+
return n(this, Si).getValue("logger");
|
|
13339
13403
|
}
|
|
13340
13404
|
static init(s, t, e, r, i) {
|
|
13341
13405
|
return u(this, null, function* () {
|
|
13342
|
-
return new
|
|
13406
|
+
return new ni(
|
|
13343
13407
|
s,
|
|
13344
13408
|
t,
|
|
13345
13409
|
e,
|
|
@@ -13407,11 +13471,11 @@ const ai = (Mg = class {
|
|
|
13407
13471
|
break;
|
|
13408
13472
|
}
|
|
13409
13473
|
}
|
|
13410
|
-
return
|
|
13474
|
+
return ni.formatMessage(e);
|
|
13411
13475
|
}
|
|
13412
13476
|
getChatMessages() {
|
|
13413
13477
|
return u(this, null, function* () {
|
|
13414
|
-
if (this.self.config.viewType === "LIVESTREAM"
|
|
13478
|
+
if (this.self.config.viewType === "LIVESTREAM")
|
|
13415
13479
|
return;
|
|
13416
13480
|
const s = yield this.chatSocketHandler.getChatMessages();
|
|
13417
13481
|
if (!(s != null && s.payload))
|
|
@@ -13420,12 +13484,12 @@ const ai = (Mg = class {
|
|
|
13420
13484
|
s.payload
|
|
13421
13485
|
).messages;
|
|
13422
13486
|
this.chat.messages = t.map(
|
|
13423
|
-
(e) =>
|
|
13487
|
+
(e) => ni.formatSocketPeerMessage(e)
|
|
13424
13488
|
);
|
|
13425
13489
|
});
|
|
13426
13490
|
}
|
|
13427
13491
|
setupEvents() {
|
|
13428
|
-
n(this,
|
|
13492
|
+
n(this, Si).getValue("peerSessionStore").on(
|
|
13429
13493
|
k.SOCKET_SERVICE_ROOM_JOINED,
|
|
13430
13494
|
() => u(this, null, function* () {
|
|
13431
13495
|
this.getChatMessages();
|
|
@@ -13433,7 +13497,7 @@ const ai = (Mg = class {
|
|
|
13433
13497
|
), this.chatSocketHandler.on(
|
|
13434
13498
|
Re.sendMessageToRoom,
|
|
13435
13499
|
(s) => {
|
|
13436
|
-
const t =
|
|
13500
|
+
const t = ni.formatSocketPeerMessage(
|
|
13437
13501
|
s.message
|
|
13438
13502
|
);
|
|
13439
13503
|
if (!t.channelId)
|
|
@@ -13451,7 +13515,7 @@ const ai = (Mg = class {
|
|
|
13451
13515
|
), this.chatSocketHandler.on(
|
|
13452
13516
|
Re.sendMessageToPeers,
|
|
13453
13517
|
(s) => {
|
|
13454
|
-
const t =
|
|
13518
|
+
const t = ni.formatSocketPeerMessage(
|
|
13455
13519
|
s.message
|
|
13456
13520
|
);
|
|
13457
13521
|
this.chat.messages = [...this.chat.messages, t], this.chat.emit("chatUpdate", {
|
|
@@ -13463,7 +13527,7 @@ const ai = (Mg = class {
|
|
|
13463
13527
|
), this.chatSocketHandler.on(
|
|
13464
13528
|
Re.editMessage,
|
|
13465
13529
|
(s) => {
|
|
13466
|
-
const t =
|
|
13530
|
+
const t = ni.formatSocketPeerMessage(
|
|
13467
13531
|
s.message
|
|
13468
13532
|
);
|
|
13469
13533
|
if (t.channelId) {
|
|
@@ -13503,7 +13567,7 @@ const ai = (Mg = class {
|
|
|
13503
13567
|
});
|
|
13504
13568
|
}
|
|
13505
13569
|
), this.chatChannelSocketHandler.on(
|
|
13506
|
-
|
|
13570
|
+
li.createChatChannel,
|
|
13507
13571
|
(s) => {
|
|
13508
13572
|
const [t] = s.chatChannels, e = dn.formatChannel(t);
|
|
13509
13573
|
this.chat.channels.push(e), this.chat.emit("channelCreate", e);
|
|
@@ -13522,15 +13586,15 @@ const ai = (Mg = class {
|
|
|
13522
13586
|
});
|
|
13523
13587
|
}
|
|
13524
13588
|
), this.chatChannelSocketHandler.on(
|
|
13525
|
-
|
|
13589
|
+
li.updateChatChannel,
|
|
13526
13590
|
(s) => {
|
|
13527
13591
|
const [t] = s.chatChannels, e = dn.formatChannel(t);
|
|
13528
13592
|
this.chat.channels = this.chat.channels.map((r) => r.id === e.id ? e : r), this.chat.emit("channelUpdate", e);
|
|
13529
13593
|
}
|
|
13530
13594
|
);
|
|
13531
13595
|
}
|
|
13532
|
-
},
|
|
13533
|
-
let ws =
|
|
13596
|
+
}, Si = new WeakMap(), Mg);
|
|
13597
|
+
let ws = ni;
|
|
13534
13598
|
i0([
|
|
13535
13599
|
E.trace("ChatController.setupEvents")
|
|
13536
13600
|
], ws.prototype, "setupEvents", 1);
|
|
@@ -13623,28 +13687,28 @@ var c0 = Object.defineProperty, d0 = Object.getOwnPropertyDescriptor, l0 = (s, t
|
|
|
13623
13687
|
for (var i = r > 1 ? void 0 : r ? d0(t, e) : t, a = s.length - 1, o; a >= 0; a--)
|
|
13624
13688
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
13625
13689
|
return r && i && c0(t, e, i), i;
|
|
13626
|
-
},
|
|
13690
|
+
}, Dr, Hn, Ti, Og;
|
|
13627
13691
|
const yn = (Og = class {
|
|
13628
13692
|
constructor(s, t, e) {
|
|
13629
13693
|
h(this, "polls");
|
|
13630
|
-
m(this,
|
|
13694
|
+
m(this, Dr, void 0);
|
|
13631
13695
|
m(this, Hn, void 0);
|
|
13632
13696
|
m(this, Ti, void 0);
|
|
13633
|
-
this.polls = new xu(s, t, e), f(this, Hn, t), f(this,
|
|
13697
|
+
this.polls = new xu(s, t, e), f(this, Hn, t), f(this, Dr, s), f(this, Ti, e), this.setupEvents();
|
|
13634
13698
|
}
|
|
13635
13699
|
/**
|
|
13636
13700
|
* @access private
|
|
13637
13701
|
* Not for external use
|
|
13638
13702
|
*/
|
|
13639
13703
|
get telemetry() {
|
|
13640
|
-
return n(this,
|
|
13704
|
+
return n(this, Dr).getValue("telemetry");
|
|
13641
13705
|
}
|
|
13642
13706
|
/**
|
|
13643
13707
|
* @access private
|
|
13644
13708
|
* Not for external use
|
|
13645
13709
|
*/
|
|
13646
13710
|
get logger() {
|
|
13647
|
-
return n(this,
|
|
13711
|
+
return n(this, Dr).getValue("logger");
|
|
13648
13712
|
}
|
|
13649
13713
|
static init(s, t, e) {
|
|
13650
13714
|
return u(this, null, function* () {
|
|
@@ -13666,13 +13730,13 @@ const yn = (Og = class {
|
|
|
13666
13730
|
r.poll && this.updatePoll(yn.formatSocketServicePoll(r.poll));
|
|
13667
13731
|
}
|
|
13668
13732
|
}, t = () => {
|
|
13669
|
-
n(this,
|
|
13733
|
+
n(this, Dr).getValue("peerSessionStore").on(k.SOCKET_SERVICE_ROOM_JOINED, () => {
|
|
13670
13734
|
this.getPolls();
|
|
13671
13735
|
}), Object.keys(s).map(Number).forEach((r) => {
|
|
13672
13736
|
n(this, Ti).on(r, s[r]);
|
|
13673
13737
|
});
|
|
13674
13738
|
}, e = () => {
|
|
13675
|
-
n(this,
|
|
13739
|
+
n(this, Dr).getValue("peerSessionStore").on(k.SOCKET_SERVICE_ROOM_JOINED, () => {
|
|
13676
13740
|
this.getPolls();
|
|
13677
13741
|
}), Object.keys(s).map(Number).forEach((r) => {
|
|
13678
13742
|
n(this, Ti).removeListeners(r);
|
|
@@ -13728,7 +13792,7 @@ const yn = (Og = class {
|
|
|
13728
13792
|
voted: s.votes
|
|
13729
13793
|
};
|
|
13730
13794
|
}
|
|
13731
|
-
},
|
|
13795
|
+
}, Dr = new WeakMap(), Hn = new WeakMap(), Ti = new WeakMap(), Og);
|
|
13732
13796
|
let Nf = yn;
|
|
13733
13797
|
l0([
|
|
13734
13798
|
E.trace("PollController.setupEvents")
|
|
@@ -13739,6 +13803,13 @@ var u0 = Object.defineProperty, h0 = Object.getOwnPropertyDescriptor, p0 = (s, t
|
|
|
13739
13803
|
return r && i && u0(t, e, i), i;
|
|
13740
13804
|
}, Vf = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Vf || {}), qn, Lo, $u, yi, xo, Ng;
|
|
13741
13805
|
let Uu = (Ng = class extends jt {
|
|
13806
|
+
/**
|
|
13807
|
+
* @param {Context} context
|
|
13808
|
+
* @param {Self} self
|
|
13809
|
+
* @param {string} viewType
|
|
13810
|
+
* @param {RoomSocketHandler} roomSocketHandler
|
|
13811
|
+
* @param {string} meetingTitle
|
|
13812
|
+
*/
|
|
13742
13813
|
constructor(t, e, r, i, a) {
|
|
13743
13814
|
const o = t.getValue("logger");
|
|
13744
13815
|
super(o);
|
|
@@ -13787,7 +13858,7 @@ let Uu = (Ng = class extends jt {
|
|
|
13787
13858
|
}
|
|
13788
13859
|
/**
|
|
13789
13860
|
* Sets current user as broadcasting tab changes
|
|
13790
|
-
* @param broadcastTabChanges
|
|
13861
|
+
* @param {boolean} broadcastTabChanges
|
|
13791
13862
|
*/
|
|
13792
13863
|
setBroadcastTabChanges(t) {
|
|
13793
13864
|
if (!n(this, yi).permissions.canSpotlight)
|
|
@@ -13796,7 +13867,8 @@ let Uu = (Ng = class extends jt {
|
|
|
13796
13867
|
}
|
|
13797
13868
|
/**
|
|
13798
13869
|
* Sets current active tab for user
|
|
13799
|
-
* @param spotlightTab
|
|
13870
|
+
* @param {ActiveTab} spotlightTab
|
|
13871
|
+
* @param {TabChangeSource} tabChangeSource
|
|
13800
13872
|
*/
|
|
13801
13873
|
setSelfActiveTab(t, e) {
|
|
13802
13874
|
var r;
|
|
@@ -13835,7 +13907,7 @@ var m0 = Object.defineProperty, f0 = Object.getOwnPropertyDescriptor, Lf = (s, t
|
|
|
13835
13907
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
13836
13908
|
return r && i && m0(t, e, i), i;
|
|
13837
13909
|
}, Uo, Vg;
|
|
13838
|
-
let
|
|
13910
|
+
let Zr = (Vg = class extends jt {
|
|
13839
13911
|
constructor(t) {
|
|
13840
13912
|
const e = t.getValue("logger");
|
|
13841
13913
|
super(e);
|
|
@@ -13852,7 +13924,7 @@ let ei = (Vg = class extends jt {
|
|
|
13852
13924
|
}
|
|
13853
13925
|
static init(t, e) {
|
|
13854
13926
|
return u(this, null, function* () {
|
|
13855
|
-
const r = new
|
|
13927
|
+
const r = new Zr(t), i = t.getValue("logger");
|
|
13856
13928
|
try {
|
|
13857
13929
|
e && r.getActiveTranscript();
|
|
13858
13930
|
} catch (a) {
|
|
@@ -13863,6 +13935,8 @@ let ei = (Vg = class extends jt {
|
|
|
13863
13935
|
}
|
|
13864
13936
|
/**
|
|
13865
13937
|
* Parse a single line transcript
|
|
13938
|
+
* @param {string} transcriptData - The transcript data to parse
|
|
13939
|
+
* @param {boolean} [isPartialTranscript=false] - Whether the transcript is partial
|
|
13866
13940
|
*/
|
|
13867
13941
|
static parseTranscript(t, e = !1) {
|
|
13868
13942
|
if (!t)
|
|
@@ -13888,20 +13962,24 @@ let ei = (Vg = class extends jt {
|
|
|
13888
13962
|
}
|
|
13889
13963
|
/**
|
|
13890
13964
|
* Parse a multi-line transcript
|
|
13965
|
+
* @param {string} transcriptData - The transcript data to parse
|
|
13891
13966
|
*/
|
|
13892
13967
|
static parseTranscripts(t) {
|
|
13893
13968
|
return t ? t.split(`
|
|
13894
|
-
`).map((e) =>
|
|
13969
|
+
`).map((e) => Zr.parseTranscript(e, !1)).filter(Boolean) : [];
|
|
13895
13970
|
}
|
|
13896
13971
|
getActiveTranscript() {
|
|
13897
13972
|
return u(this, null, function* () {
|
|
13898
13973
|
try {
|
|
13899
13974
|
const t = dt(), { transcript: e } = yield t.getActiveTranscript();
|
|
13900
|
-
this.transcripts =
|
|
13975
|
+
this.transcripts = Zr.parseTranscripts(e);
|
|
13901
13976
|
} catch (t) {
|
|
13902
13977
|
}
|
|
13903
13978
|
});
|
|
13904
13979
|
}
|
|
13980
|
+
/**
|
|
13981
|
+
* @param {TranscriptionData} transcript - Transcript data received for a participant.
|
|
13982
|
+
*/
|
|
13905
13983
|
onTranscript(t) {
|
|
13906
13984
|
return u(this, null, function* () {
|
|
13907
13985
|
var r;
|
|
@@ -13917,20 +13995,20 @@ let ei = (Vg = class extends jt {
|
|
|
13917
13995
|
}, Uo = new WeakMap(), Vg);
|
|
13918
13996
|
Lf([
|
|
13919
13997
|
E.trace("Ai.getActiveTranscript")
|
|
13920
|
-
],
|
|
13921
|
-
|
|
13998
|
+
], Zr.prototype, "getActiveTranscript", 1);
|
|
13999
|
+
Zr = Lf([
|
|
13922
14000
|
ut("0000")
|
|
13923
|
-
],
|
|
14001
|
+
], Zr);
|
|
13924
14002
|
var v0 = Object.defineProperty, S0 = Object.getOwnPropertyDescriptor, T0 = (s, t, e, r) => {
|
|
13925
14003
|
for (var i = r > 1 ? void 0 : r ? S0(t, e) : t, a = s.length - 1, o; a >= 0; a--)
|
|
13926
14004
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
13927
14005
|
return r && i && v0(t, e, i), i;
|
|
13928
|
-
},
|
|
14006
|
+
}, Or, jn, Lt, Lg;
|
|
13929
14007
|
const xf = (Lg = class {
|
|
13930
14008
|
constructor(s, t, e, r, i, a) {
|
|
13931
14009
|
h(this, "meta");
|
|
13932
14010
|
h(this, "ai");
|
|
13933
|
-
m(this,
|
|
14011
|
+
m(this, Or, void 0);
|
|
13934
14012
|
m(this, jn, void 0);
|
|
13935
14013
|
h(this, "aiSocketHandler");
|
|
13936
14014
|
m(this, Lt, void 0);
|
|
@@ -13940,7 +14018,7 @@ const xf = (Lg = class {
|
|
|
13940
14018
|
t.config.viewType,
|
|
13941
14019
|
e,
|
|
13942
14020
|
a
|
|
13943
|
-
), this.ai = r, f(this,
|
|
14021
|
+
), this.ai = r, f(this, Or, t), f(this, jn, e), this.aiSocketHandler = i, t.config.viewType !== At.Chat && this.setupEvents();
|
|
13944
14022
|
}
|
|
13945
14023
|
/**
|
|
13946
14024
|
* @access private
|
|
@@ -13961,7 +14039,7 @@ const xf = (Lg = class {
|
|
|
13961
14039
|
*/
|
|
13962
14040
|
static init(s, t, e, r, i) {
|
|
13963
14041
|
return u(this, null, function* () {
|
|
13964
|
-
const a = yield
|
|
14042
|
+
const a = yield Zr.init(s, t.permissions.transcriptionEnabled);
|
|
13965
14043
|
return new xf(
|
|
13966
14044
|
s,
|
|
13967
14045
|
t,
|
|
@@ -14006,14 +14084,14 @@ const xf = (Lg = class {
|
|
|
14006
14084
|
({ score: s }) => {
|
|
14007
14085
|
s < 5 && this.meta.emit("poorConnection", { score: s });
|
|
14008
14086
|
}
|
|
14009
|
-
), n(this,
|
|
14010
|
-
userId: n(this,
|
|
14087
|
+
), n(this, Or).permissions.canSpotlight && (this.logger.info("MetaController::Asserting Spotlight"), this.meta.selfActiveTab && n(this, jn).broadcastMessage("spotlight", {
|
|
14088
|
+
userId: n(this, Or).userId,
|
|
14011
14089
|
currentTab: this.meta.selfActiveTab
|
|
14012
14090
|
})), n(this, Lt).getValue("peerSessionStore").on(
|
|
14013
14091
|
k.PEER_JOINED_INTERNAL,
|
|
14014
14092
|
(s) => u(this, null, function* () {
|
|
14015
|
-
n(this,
|
|
14016
|
-
userId: n(this,
|
|
14093
|
+
n(this, Or).permissions.canSpotlight && this.meta.selfActiveTab && n(this, jn).broadcastToPeers("spotlight", [s.id], {
|
|
14094
|
+
userId: n(this, Or).userId,
|
|
14017
14095
|
currentTab: this.meta.selfActiveTab
|
|
14018
14096
|
});
|
|
14019
14097
|
})
|
|
@@ -14075,7 +14153,7 @@ const xf = (Lg = class {
|
|
|
14075
14153
|
} = s;
|
|
14076
14154
|
let i;
|
|
14077
14155
|
try {
|
|
14078
|
-
i =
|
|
14156
|
+
i = Zr.parseTranscript(e, r);
|
|
14079
14157
|
} catch (d) {
|
|
14080
14158
|
this.logger.error(`Failed to parse transcript: ${e}`, d);
|
|
14081
14159
|
}
|
|
@@ -14088,7 +14166,7 @@ const xf = (Lg = class {
|
|
|
14088
14166
|
this.logger.debug(`${t} Received transcript for peer ${a} - ${o}: ${c}`);
|
|
14089
14167
|
});
|
|
14090
14168
|
}
|
|
14091
|
-
},
|
|
14169
|
+
}, Or = new WeakMap(), jn = new WeakMap(), Lt = new WeakMap(), Lg);
|
|
14092
14170
|
let Uf = xf;
|
|
14093
14171
|
T0([
|
|
14094
14172
|
E.trace("MetaController.setupEvents")
|
|
@@ -14156,12 +14234,22 @@ var y0 = Object.defineProperty, E0 = Object.getOwnPropertyDescriptor, mn = (s, t
|
|
|
14156
14234
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
14157
14235
|
return r && i && y0(t, e, i), i;
|
|
14158
14236
|
}, Qt, Fd, ie, $o, Ds, We, Fo, Fu, Gn, hd;
|
|
14159
|
-
class
|
|
14237
|
+
class ti extends jt {
|
|
14238
|
+
/**
|
|
14239
|
+
* @param {Context} context
|
|
14240
|
+
* @param {Self} self
|
|
14241
|
+
* @param {Participants} participants
|
|
14242
|
+
* @param {StageSocketHandler} stageSocketHandler
|
|
14243
|
+
* @param {RoomSocketHandler} roomSocketHandler
|
|
14244
|
+
*/
|
|
14160
14245
|
constructor(e, r, i, a, o) {
|
|
14161
14246
|
const c = e.getValue("logger");
|
|
14162
14247
|
super(c);
|
|
14163
14248
|
// eslint-disable-next-line class-methods-use-this
|
|
14164
14249
|
m(this, Fo);
|
|
14250
|
+
/**
|
|
14251
|
+
* @param {StageStatus} status
|
|
14252
|
+
*/
|
|
14165
14253
|
m(this, Gn);
|
|
14166
14254
|
m(this, Qt, void 0);
|
|
14167
14255
|
m(this, Fd, void 0);
|
|
@@ -14254,6 +14342,9 @@ class si extends jt {
|
|
|
14254
14342
|
n(this, Qt).cancelRequestAccess(), U(this, Gn, hd).call(this, "OFF_STAGE");
|
|
14255
14343
|
});
|
|
14256
14344
|
}
|
|
14345
|
+
/**
|
|
14346
|
+
* @param {string[]} userIds
|
|
14347
|
+
*/
|
|
14257
14348
|
grantAccess(e) {
|
|
14258
14349
|
if (!n(this, ie).roomJoined)
|
|
14259
14350
|
throw new b(
|
|
@@ -14265,6 +14356,9 @@ class si extends jt {
|
|
|
14265
14356
|
throw this.logger.error("Stage::grant_access::permission_denied"), new b("You do not have permission to perform this action", "2001");
|
|
14266
14357
|
return n(this, Qt).grantAccess(e);
|
|
14267
14358
|
}
|
|
14359
|
+
/**
|
|
14360
|
+
* @param {string[]} userIds
|
|
14361
|
+
*/
|
|
14268
14362
|
denyAccess(e) {
|
|
14269
14363
|
if (!n(this, ie).roomJoined)
|
|
14270
14364
|
throw new b(
|
|
@@ -14316,6 +14410,7 @@ class si extends jt {
|
|
|
14316
14410
|
* Method to kick a user off the stage
|
|
14317
14411
|
*
|
|
14318
14412
|
* `permissions.acceptStageRequests` privilege required
|
|
14413
|
+
* @param {string[]} userIds
|
|
14319
14414
|
*/
|
|
14320
14415
|
kick(e) {
|
|
14321
14416
|
return u(this, null, function* () {
|
|
@@ -14341,19 +14436,19 @@ Qt = new WeakMap(), Fd = new WeakMap(), ie = new WeakMap(), $o = new WeakMap(),
|
|
|
14341
14436
|
};
|
|
14342
14437
|
mn([
|
|
14343
14438
|
E.trace("Stage.getStageRequests")
|
|
14344
|
-
],
|
|
14439
|
+
], ti.prototype, "getAccessRequests", 1);
|
|
14345
14440
|
mn([
|
|
14346
14441
|
E.trace("Stage.requestAccess")
|
|
14347
|
-
],
|
|
14442
|
+
], ti.prototype, "requestAccess", 1);
|
|
14348
14443
|
mn([
|
|
14349
14444
|
E.trace("Stage.cancelRequestAccess")
|
|
14350
|
-
],
|
|
14445
|
+
], ti.prototype, "cancelRequestAccess", 1);
|
|
14351
14446
|
mn([
|
|
14352
14447
|
E.trace("Stage.grantAccess")
|
|
14353
|
-
],
|
|
14448
|
+
], ti.prototype, "grantAccess", 1);
|
|
14354
14449
|
mn([
|
|
14355
14450
|
E.trace("Stage.denyAccess")
|
|
14356
|
-
],
|
|
14451
|
+
], ti.prototype, "denyAccess", 1);
|
|
14357
14452
|
mn([
|
|
14358
14453
|
Pr.executeWithLock({
|
|
14359
14454
|
methodName: "joinStage",
|
|
@@ -14361,10 +14456,10 @@ mn([
|
|
|
14361
14456
|
timeout: 5e3
|
|
14362
14457
|
}),
|
|
14363
14458
|
E.trace("Stage.joinStage")
|
|
14364
|
-
],
|
|
14459
|
+
], ti.prototype, "join", 1);
|
|
14365
14460
|
mn([
|
|
14366
14461
|
E.trace("Stage.leaveStage")
|
|
14367
|
-
],
|
|
14462
|
+
], ti.prototype, "leave", 1);
|
|
14368
14463
|
function P0(s) {
|
|
14369
14464
|
return !(s.viewType === "LIVESTREAM" || s.viewType === "CHAT");
|
|
14370
14465
|
}
|
|
@@ -14388,22 +14483,22 @@ var _0 = Object.defineProperty, C0 = Object.getOwnPropertyDescriptor, w0 = (s, t
|
|
|
14388
14483
|
for (var i = r > 1 ? void 0 : r ? C0(t, e) : t, a = s.length - 1, o; a >= 0; a--)
|
|
14389
14484
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
14390
14485
|
return r && i && _0(t, e, i), i;
|
|
14391
|
-
},
|
|
14486
|
+
}, Nr, gs, Vr, Bo, mt;
|
|
14392
14487
|
class $f {
|
|
14393
14488
|
constructor(t, e, r, i, a) {
|
|
14394
14489
|
h(this, "stage");
|
|
14395
|
-
m(this,
|
|
14490
|
+
m(this, Nr, void 0);
|
|
14396
14491
|
m(this, gs, void 0);
|
|
14397
|
-
m(this,
|
|
14492
|
+
m(this, Vr, void 0);
|
|
14398
14493
|
m(this, Bo, 0);
|
|
14399
14494
|
m(this, mt, void 0);
|
|
14400
|
-
f(this, mt, t), this.stage = new
|
|
14495
|
+
f(this, mt, t), this.stage = new ti(
|
|
14401
14496
|
t,
|
|
14402
14497
|
i,
|
|
14403
14498
|
a,
|
|
14404
14499
|
e,
|
|
14405
14500
|
r
|
|
14406
|
-
), f(this,
|
|
14501
|
+
), f(this, Vr, e), f(this, Nr, i), f(this, gs, a), this.setupEvents();
|
|
14407
14502
|
}
|
|
14408
14503
|
/**
|
|
14409
14504
|
* @access private
|
|
@@ -14422,17 +14517,17 @@ class $f {
|
|
|
14422
14517
|
setupEvents() {
|
|
14423
14518
|
n(this, mt).subscribe("stageStatus", (t) => {
|
|
14424
14519
|
this.stage.emit("stageStatusUpdate", t);
|
|
14425
|
-
}), n(this,
|
|
14426
|
-
n(this,
|
|
14427
|
-
}), n(this,
|
|
14428
|
-
t !== void 0 && (t.peerId === n(this,
|
|
14429
|
-
}), n(this,
|
|
14430
|
-
n(this,
|
|
14431
|
-
}), n(this,
|
|
14520
|
+
}), n(this, Vr).on($.grantStageAccess, () => {
|
|
14521
|
+
n(this, Nr).permissions.stageAccess !== j.Allowed && (this.stage.emit("stageRequestApproved"), this.setStageStatus("ACCEPTED_TO_JOIN_STAGE"));
|
|
14522
|
+
}), n(this, Vr).on($.peerStageStatusUpdate, (t) => {
|
|
14523
|
+
t !== void 0 && (t.peerId === n(this, Nr).id ? this.selfStageStatusHandler(t) : this.peerStageStatusHandler(t));
|
|
14524
|
+
}), n(this, Vr).on($.denyStageAccess, () => {
|
|
14525
|
+
n(this, Nr).permissions.stageAccess !== j.Allowed && (this.stage.emit("stageRequestRejected"), this.setStageStatus("OFF_STAGE"));
|
|
14526
|
+
}), n(this, Vr).on(
|
|
14432
14527
|
$.getStageRequests,
|
|
14433
14528
|
(t) => u(this, null, function* () {
|
|
14434
14529
|
var r;
|
|
14435
|
-
if (n(this,
|
|
14530
|
+
if (n(this, Nr).permissions.stageAccess !== j.Allowed)
|
|
14436
14531
|
return;
|
|
14437
14532
|
const e = (r = t == null ? void 0 : t.stageRequests) != null ? r : [];
|
|
14438
14533
|
yield n(this, mt).getValue("peerSessionStore").emitAsync(k.GET_STAGE_REQUESTS, e), n(this, Bo) < e.length && e.length > 0 && this.stage.emit("newStageRequest", { count: e.length }), f(this, Bo, e.length), this.stage.emit("stageAccessRequestUpdate", e);
|
|
@@ -14509,7 +14604,7 @@ class $f {
|
|
|
14509
14604
|
});
|
|
14510
14605
|
}
|
|
14511
14606
|
}
|
|
14512
|
-
|
|
14607
|
+
Nr = new WeakMap(), gs = new WeakMap(), Vr = new WeakMap(), Bo = new WeakMap(), mt = new WeakMap();
|
|
14513
14608
|
w0([
|
|
14514
14609
|
E.trace("Stage.setupEvents")
|
|
14515
14610
|
], $f.prototype, "setupEvents", 1);
|
|
@@ -14532,8 +14627,17 @@ const Ie = {
|
|
|
14532
14627
|
stageStatusUpdate: 25,
|
|
14533
14628
|
peerStageStatusUpdate: 26
|
|
14534
14629
|
};
|
|
14535
|
-
var it, xt, Wn, Jn, Qs, Kn,
|
|
14630
|
+
var it, xt, Wn, Jn, Qs, Kn, Lr, zn, xg;
|
|
14536
14631
|
let Ua = (xg = class extends $a {
|
|
14632
|
+
/**
|
|
14633
|
+
* @param {Context} context
|
|
14634
|
+
* @param {PluginResponse} plugin
|
|
14635
|
+
* @param {PluginSocketHandler} pluginSocketHandler
|
|
14636
|
+
* @param {Self} self
|
|
14637
|
+
* @param {Participants} participants
|
|
14638
|
+
* @param {Chat} chat
|
|
14639
|
+
* @param {string} meetingTitle
|
|
14640
|
+
*/
|
|
14537
14641
|
constructor(t, {
|
|
14538
14642
|
baseURL: e,
|
|
14539
14643
|
createdAt: r,
|
|
@@ -14574,21 +14678,21 @@ let Ua = (xg = class extends $a {
|
|
|
14574
14678
|
h(this, "active");
|
|
14575
14679
|
h(this, "iframes");
|
|
14576
14680
|
h(this, "enabledBy");
|
|
14577
|
-
m(this,
|
|
14681
|
+
m(this, Lr, void 0);
|
|
14578
14682
|
m(this, zn, void 0);
|
|
14579
|
-
f(this,
|
|
14683
|
+
f(this, Lr, t), this.baseURL = e, this.createdAt = new Date(r), this.description = i, this.id = a, this.name = o, f(this, xt, C), this.organizationId = c, this.picture = d, this.private = l, this.published = p, this.staggered = g, this.tags = v, this.type = S, this.updatedAt = new Date(P), this.active = !1, this.iframes = /* @__PURE__ */ new Map(), f(this, it, _), f(this, Wn, w), f(this, Jn, L), this.enabledBy = "", f(this, zn, F);
|
|
14580
14684
|
}
|
|
14581
14685
|
/**
|
|
14582
14686
|
* @access private
|
|
14583
14687
|
* Not for external use
|
|
14584
14688
|
*/
|
|
14585
14689
|
get telemetry() {
|
|
14586
|
-
return n(this,
|
|
14690
|
+
return n(this, Lr).getValue("telemetry");
|
|
14587
14691
|
}
|
|
14588
14692
|
/**
|
|
14589
14693
|
* @access private
|
|
14590
14694
|
* This function forwards events to plugin. This is not meant for external use.
|
|
14591
|
-
* @param message Socket message forwarded to this plugin.
|
|
14695
|
+
* @param {PluginIframeMessage} message Socket message forwarded to this plugin.
|
|
14592
14696
|
*/
|
|
14593
14697
|
sendIframeEvent(t) {
|
|
14594
14698
|
this.iframes.size && this.iframes.forEach((e) => {
|
|
@@ -14596,6 +14700,9 @@ let Ua = (xg = class extends $a {
|
|
|
14596
14700
|
r && (navigator.isReactNative ? r.postMessage(JSON.stringify(t)) : r.contentWindow.postMessage(t, "*"));
|
|
14597
14701
|
});
|
|
14598
14702
|
}
|
|
14703
|
+
/**
|
|
14704
|
+
* @param {PluginIframeMessage} iframeMessage
|
|
14705
|
+
*/
|
|
14599
14706
|
handleIframeMessage(t) {
|
|
14600
14707
|
return u(this, null, function* () {
|
|
14601
14708
|
var o;
|
|
@@ -14748,7 +14855,7 @@ let Ua = (xg = class extends $a {
|
|
|
14748
14855
|
case Ie.getRoomName: {
|
|
14749
14856
|
this.sendIframeEvent({
|
|
14750
14857
|
type: Ie.getRoomName,
|
|
14751
|
-
payload: { roomName: n(this,
|
|
14858
|
+
payload: { roomName: n(this, Lr).getValue("meetingId") },
|
|
14752
14859
|
uuid: e.uuid
|
|
14753
14860
|
});
|
|
14754
14861
|
break;
|
|
@@ -14778,7 +14885,7 @@ let Ua = (xg = class extends $a {
|
|
|
14778
14885
|
/**
|
|
14779
14886
|
* This method is used for cleaning up event listeners attached to an iframe. It must
|
|
14780
14887
|
* be used before the iframe is removed from the DOM.
|
|
14781
|
-
* @param viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14888
|
+
* @param {string} viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14782
14889
|
*/
|
|
14783
14890
|
removePluginView(t = "default") {
|
|
14784
14891
|
var i;
|
|
@@ -14788,8 +14895,8 @@ let Ua = (xg = class extends $a {
|
|
|
14788
14895
|
/**
|
|
14789
14896
|
* This method adds the communcation layer between the plugin inside the iframe
|
|
14790
14897
|
* and the core application (meeting object) in the main window.
|
|
14791
|
-
* @param iframe Iframe element to display this plugin.
|
|
14792
|
-
* @param viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14898
|
+
* @param {(HTMLIFrameElement|ReactNativeWebView)} iframe Iframe element to display this plugin.
|
|
14899
|
+
* @param {string} viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14793
14900
|
*/
|
|
14794
14901
|
addPluginView(t, e = "default") {
|
|
14795
14902
|
var o;
|
|
@@ -14803,9 +14910,9 @@ let Ua = (xg = class extends $a {
|
|
|
14803
14910
|
const r = t, i = new URL(this.baseURL), a = {
|
|
14804
14911
|
auth: n(this, Kn),
|
|
14805
14912
|
parent: navigator.isReactNative ? this.baseURL : window.location.origin,
|
|
14806
|
-
backend: n(this,
|
|
14913
|
+
backend: n(this, Lr).getValue("apiBase"),
|
|
14807
14914
|
pluginId: this.id,
|
|
14808
|
-
roomName: (o = n(this,
|
|
14915
|
+
roomName: (o = n(this, Lr).getValue("meetingId")) != null ? o : "",
|
|
14809
14916
|
displayTitle: n(this, zn)
|
|
14810
14917
|
};
|
|
14811
14918
|
if (Object.keys(a).forEach((c) => {
|
|
@@ -14821,6 +14928,9 @@ let Ua = (xg = class extends $a {
|
|
|
14821
14928
|
window.addEventListener("message", c), this.iframes.set(e, { iframe: r, listener: c });
|
|
14822
14929
|
}
|
|
14823
14930
|
}
|
|
14931
|
+
/**
|
|
14932
|
+
* @param {boolean} active
|
|
14933
|
+
*/
|
|
14824
14934
|
setActive(t) {
|
|
14825
14935
|
var e, r;
|
|
14826
14936
|
if (this.active = t, t) {
|
|
@@ -14904,7 +15014,7 @@ let Ua = (xg = class extends $a {
|
|
|
14904
15014
|
}), f(this, Qs, void 0)));
|
|
14905
15015
|
});
|
|
14906
15016
|
}
|
|
14907
|
-
}, it = new WeakMap(), xt = new WeakMap(), Wn = new WeakMap(), Jn = new WeakMap(), Qs = new WeakMap(), Kn = new WeakMap(),
|
|
15017
|
+
}, it = new WeakMap(), xt = new WeakMap(), Wn = new WeakMap(), Jn = new WeakMap(), Qs = new WeakMap(), Kn = new WeakMap(), Lr = new WeakMap(), zn = new WeakMap(), xg);
|
|
14908
15018
|
Hl([
|
|
14909
15019
|
Mt({ maxInvocations: 5, period: 1 })
|
|
14910
15020
|
], Ua.prototype, "sendData", 1);
|
|
@@ -15024,6 +15134,9 @@ var k0 = Object.defineProperty, I0 = Object.getOwnPropertyDescriptor, A0 = (s, t
|
|
|
15024
15134
|
return r && i && k0(t, e, i), i;
|
|
15025
15135
|
};
|
|
15026
15136
|
let Bu = class {
|
|
15137
|
+
/**
|
|
15138
|
+
* @param {Logger} logger
|
|
15139
|
+
*/
|
|
15027
15140
|
constructor(s) {
|
|
15028
15141
|
/**
|
|
15029
15142
|
* All plugins accessible by the current user.
|
|
@@ -17506,6 +17619,9 @@ const fD = jc, vg = Rs(
|
|
|
17506
17619
|
);
|
|
17507
17620
|
var Ct, bi, Jo, sa;
|
|
17508
17621
|
const Rn = class {
|
|
17622
|
+
/**
|
|
17623
|
+
* @param {PresetV2CamelCased} preset
|
|
17624
|
+
*/
|
|
17509
17625
|
constructor(t) {
|
|
17510
17626
|
m(this, Ct, void 0);
|
|
17511
17627
|
m(this, bi, void 0);
|
|
@@ -17515,7 +17631,10 @@ const Rn = class {
|
|
|
17515
17631
|
throw new b("Could not load preset.", "0904");
|
|
17516
17632
|
f(this, Ct, t.config), f(this, Jo, t.name), f(this, bi, t.ui || Rs(Rh().ui)), f(this, sa, t.permissions.plugins.config);
|
|
17517
17633
|
}
|
|
17518
|
-
/**
|
|
17634
|
+
/**
|
|
17635
|
+
* @deprecated. Use init()
|
|
17636
|
+
* @param {PresetV2CamelCased} preset
|
|
17637
|
+
*/
|
|
17519
17638
|
static fromResponse(t) {
|
|
17520
17639
|
return new Rn(t);
|
|
17521
17640
|
}
|
|
@@ -17523,6 +17642,10 @@ const Rn = class {
|
|
|
17523
17642
|
static default() {
|
|
17524
17643
|
return new Rn(vg);
|
|
17525
17644
|
}
|
|
17645
|
+
/**
|
|
17646
|
+
* @param {PresetV2CamelCased} [preset]
|
|
17647
|
+
* @param {boolean} [useDefault=true]
|
|
17648
|
+
*/
|
|
17526
17649
|
static init(t, e = !0) {
|
|
17527
17650
|
return !t || e ? new Rn(vg) : new Rn(t);
|
|
17528
17651
|
}
|
|
@@ -17672,6 +17795,10 @@ var vD = Object.defineProperty, SD = Object.getOwnPropertyDescriptor, Wf = (s, t
|
|
|
17672
17795
|
return r && i && vD(t, e, i), i;
|
|
17673
17796
|
}, ra, Ko;
|
|
17674
17797
|
class $h extends jt {
|
|
17798
|
+
/**
|
|
17799
|
+
* @param {Context} context
|
|
17800
|
+
* @param {Self} self
|
|
17801
|
+
*/
|
|
17675
17802
|
constructor(e, r) {
|
|
17676
17803
|
const i = e.getValue("logger");
|
|
17677
17804
|
super(i);
|
|
@@ -17690,6 +17817,9 @@ class $h extends jt {
|
|
|
17690
17817
|
get telemetry() {
|
|
17691
17818
|
return n(this, Ko).getValue("telemetry");
|
|
17692
17819
|
}
|
|
17820
|
+
/**
|
|
17821
|
+
* @param {LivestreamState} livestreamState
|
|
17822
|
+
*/
|
|
17693
17823
|
setLivestreamState(e) {
|
|
17694
17824
|
const r = this.state;
|
|
17695
17825
|
this.state = e, r !== e && this.emitCurrentLivestreamState();
|
|
@@ -17851,14 +17981,20 @@ var PD = Object.defineProperty, _D = Object.getOwnPropertyDescriptor, Gc = (s, t
|
|
|
17851
17981
|
for (var i = r > 1 ? void 0 : r ? _D(t, e) : t, a = s.length - 1, o; a >= 0; a--)
|
|
17852
17982
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17853
17983
|
return r && i && PD(t, e, i), i;
|
|
17854
|
-
}, nt,
|
|
17984
|
+
}, nt, xr, Ur, Bd, Kf;
|
|
17855
17985
|
class Ha {
|
|
17986
|
+
/**
|
|
17987
|
+
* @param {Object} args
|
|
17988
|
+
* @param {string} args.name
|
|
17989
|
+
* @param {PluginSocketHandler} args.socketHandler
|
|
17990
|
+
* @param {string} args.meetingId
|
|
17991
|
+
*/
|
|
17856
17992
|
constructor({ name: t, socketHandler: e, meetingId: r }) {
|
|
17857
17993
|
m(this, Bd);
|
|
17858
17994
|
h(this, "name", "");
|
|
17859
17995
|
m(this, nt, {});
|
|
17860
|
-
m(this,
|
|
17861
|
-
m(this,
|
|
17996
|
+
m(this, xr, "");
|
|
17997
|
+
m(this, Ur, void 0);
|
|
17862
17998
|
h(this, "rateLimitConfig", {
|
|
17863
17999
|
maxInvocations: 5,
|
|
17864
18000
|
period: 1
|
|
@@ -17868,12 +18004,14 @@ class Ha {
|
|
|
17868
18004
|
period: 1
|
|
17869
18005
|
});
|
|
17870
18006
|
h(this, "listeners", {});
|
|
17871
|
-
this.name = t, f(this,
|
|
18007
|
+
this.name = t, f(this, Ur, e), f(this, xr, r);
|
|
17872
18008
|
}
|
|
17873
18009
|
/**
|
|
17874
18010
|
* @description Sets a value in the store.
|
|
17875
18011
|
* @param {string} key - Unique identifier used to store value.
|
|
17876
18012
|
* @param {any} value - Data to be set.
|
|
18013
|
+
* @param {boolean} [sync=true] - Whether to sync change to remote store.
|
|
18014
|
+
* @param {boolean} [emit=false] - Whether to emit to local subscribers.
|
|
17877
18015
|
* @returns {Promise<void>} A promise.
|
|
17878
18016
|
*/
|
|
17879
18017
|
set(t, e, r = !0, i = !1) {
|
|
@@ -17886,13 +18024,13 @@ class Ha {
|
|
|
17886
18024
|
});
|
|
17887
18025
|
}
|
|
17888
18026
|
remoteSet(t, e) {
|
|
17889
|
-
n(this,
|
|
18027
|
+
n(this, Ur).storeInsertKeys(n(this, xr), this.name, [{ key: t, payload: e }]);
|
|
17890
18028
|
}
|
|
17891
18029
|
bulkSet(t) {
|
|
17892
18030
|
return u(this, null, function* () {
|
|
17893
18031
|
t.forEach(({ key: e, payload: r }) => {
|
|
17894
18032
|
n(this, nt)[e] = r;
|
|
17895
|
-
}), n(this,
|
|
18033
|
+
}), n(this, Ur).storeInsertKeys(n(this, xr), this.name, t);
|
|
17896
18034
|
});
|
|
17897
18035
|
}
|
|
17898
18036
|
update(t, e, r = !0) {
|
|
@@ -17904,8 +18042,8 @@ class Ha {
|
|
|
17904
18042
|
delete(t, e = !0, r = !1) {
|
|
17905
18043
|
return u(this, null, function* () {
|
|
17906
18044
|
if (n(this, nt)[t] && delete n(this, nt)[t], e)
|
|
17907
|
-
return n(this,
|
|
17908
|
-
n(this,
|
|
18045
|
+
return n(this, Ur).storeDeleteKeys(
|
|
18046
|
+
n(this, xr),
|
|
17909
18047
|
this.name,
|
|
17910
18048
|
[{ key: t }]
|
|
17911
18049
|
);
|
|
@@ -17916,8 +18054,8 @@ class Ha {
|
|
|
17916
18054
|
return u(this, null, function* () {
|
|
17917
18055
|
return t.forEach(({ key: e }) => {
|
|
17918
18056
|
n(this, nt)[e] && delete n(this, nt)[e];
|
|
17919
|
-
}), n(this,
|
|
17920
|
-
n(this,
|
|
18057
|
+
}), n(this, Ur).storeDeleteKeys(
|
|
18058
|
+
n(this, xr),
|
|
17921
18059
|
this.name,
|
|
17922
18060
|
t
|
|
17923
18061
|
);
|
|
@@ -17942,12 +18080,20 @@ class Ha {
|
|
|
17942
18080
|
get rateLimits() {
|
|
17943
18081
|
return this.rateLimitConfig;
|
|
17944
18082
|
}
|
|
18083
|
+
/**
|
|
18084
|
+
* @param {number} num
|
|
18085
|
+
* @param {number} period
|
|
18086
|
+
*/
|
|
17945
18087
|
updateRateLimits(t, e) {
|
|
17946
18088
|
this.rateLimitConfig.maxInvocations = t, this.rateLimitConfig.period = e;
|
|
17947
18089
|
}
|
|
17948
18090
|
get bulkRateLimits() {
|
|
17949
18091
|
return this.bulkRateLimitConfig;
|
|
17950
18092
|
}
|
|
18093
|
+
/**
|
|
18094
|
+
* @param {number} num
|
|
18095
|
+
* @param {number} period
|
|
18096
|
+
*/
|
|
17951
18097
|
// eslint-disable-next-line class-methods-use-this
|
|
17952
18098
|
updateBulkRateLimits(t, e) {
|
|
17953
18099
|
this.bulkRateLimitConfig.maxInvocations = t, this.bulkRateLimitConfig.period = e;
|
|
@@ -17967,11 +18113,11 @@ class Ha {
|
|
|
17967
18113
|
this.listeners[t] = [e];
|
|
17968
18114
|
}
|
|
17969
18115
|
/**
|
|
17970
|
-
|
|
17971
|
-
|
|
17972
|
-
|
|
17973
|
-
|
|
17974
|
-
|
|
18116
|
+
* @description Removes all listeners for a key on the store.
|
|
18117
|
+
* @param {string} key - Unique identifier used to store value.
|
|
18118
|
+
* @param {Function} [cb] - Callback to be removed.
|
|
18119
|
+
* @returns {void} void
|
|
18120
|
+
*/
|
|
17975
18121
|
unsubscribe(t, e) {
|
|
17976
18122
|
var r;
|
|
17977
18123
|
if (e) {
|
|
@@ -17980,11 +18126,14 @@ class Ha {
|
|
|
17980
18126
|
}
|
|
17981
18127
|
this.listeners[t] && delete this.listeners[t];
|
|
17982
18128
|
}
|
|
18129
|
+
/**
|
|
18130
|
+
* @param {StoreData} data
|
|
18131
|
+
*/
|
|
17983
18132
|
populate(t) {
|
|
17984
18133
|
f(this, nt, t);
|
|
17985
18134
|
}
|
|
17986
18135
|
}
|
|
17987
|
-
nt = new WeakMap(),
|
|
18136
|
+
nt = new WeakMap(), xr = new WeakMap(), Ur = new WeakMap(), Bd = new WeakSet(), Kf = function(t, e, r = !0) {
|
|
17988
18137
|
let i;
|
|
17989
18138
|
const a = n(this, nt)[t], o = Object.prototype.toString.call(e), c = Object.prototype.toString.call(a);
|
|
17990
18139
|
if (o !== c) {
|
|
@@ -18025,7 +18174,7 @@ Gc([
|
|
|
18025
18174
|
Gc([
|
|
18026
18175
|
Mt(Ba, "bulkRateLimitConfig")
|
|
18027
18176
|
], Ha.prototype, "bulkDelete", 1);
|
|
18028
|
-
var ki, Ii, zo, qu, Yo,
|
|
18177
|
+
var ki, Ii, zo, qu, Yo, $r, Hd, zf;
|
|
18029
18178
|
class CD {
|
|
18030
18179
|
constructor(t, e) {
|
|
18031
18180
|
m(this, zo);
|
|
@@ -18034,7 +18183,7 @@ class CD {
|
|
|
18034
18183
|
m(this, ki, void 0);
|
|
18035
18184
|
m(this, Ii, "");
|
|
18036
18185
|
m(this, Yo, void 0);
|
|
18037
|
-
m(this,
|
|
18186
|
+
m(this, $r, /* @__PURE__ */ new Map());
|
|
18038
18187
|
f(this, ki, e), f(this, Ii, t.getValue("meetingId")), f(this, Yo, t), U(this, Hd, zf).call(this);
|
|
18039
18188
|
}
|
|
18040
18189
|
create(t) {
|
|
@@ -18043,13 +18192,13 @@ class CD {
|
|
|
18043
18192
|
);
|
|
18044
18193
|
return n(this, ki).storeGetKeys(n(this, Ii), t, []), new Promise((i, a) => {
|
|
18045
18194
|
const o = setTimeout(() => a(Error("Failed")), 3e3);
|
|
18046
|
-
n(this,
|
|
18195
|
+
n(this, $r).set(t, { rejectTimeout: o, resolve: i, store: e });
|
|
18047
18196
|
});
|
|
18048
18197
|
}
|
|
18049
18198
|
}
|
|
18050
18199
|
ki = new WeakMap(), Ii = new WeakMap(), zo = new WeakSet(), qu = function() {
|
|
18051
18200
|
return n(this, Yo).getValue("peerId");
|
|
18052
|
-
}, Yo = new WeakMap(),
|
|
18201
|
+
}, Yo = new WeakMap(), $r = new WeakMap(), Hd = new WeakSet(), zf = function() {
|
|
18053
18202
|
[
|
|
18054
18203
|
J.storeInsertKeys,
|
|
18055
18204
|
J.storeGetKeys,
|
|
@@ -18073,13 +18222,13 @@ ki = new WeakMap(), Ii = new WeakMap(), zo = new WeakSet(), qu = function() {
|
|
|
18073
18222
|
};
|
|
18074
18223
|
});
|
|
18075
18224
|
if (t === J.storeGetKeys) {
|
|
18076
|
-
const c = n(this,
|
|
18077
|
-
n(this,
|
|
18225
|
+
const c = n(this, $r).get(e.storeName), d = this.stores.get(e.storeName) || (c == null ? void 0 : c.store);
|
|
18226
|
+
n(this, $r).get(e.storeName) && (this.stores.set(e.storeName, c.store), c.resolve(d), clearTimeout(c.rejectTimeout), n(this, $r).delete(e.storeName)), r.forEach((l) => {
|
|
18078
18227
|
d.set(l.key, l.payload, !1, !1);
|
|
18079
18228
|
});
|
|
18080
18229
|
return;
|
|
18081
18230
|
}
|
|
18082
|
-
const i = this.stores.get(e.storeName) || ((o = n(this,
|
|
18231
|
+
const i = this.stores.get(e.storeName) || ((o = n(this, $r).get(e.storeName)) == null ? void 0 : o.store);
|
|
18083
18232
|
i !== void 0 && (t === J.storeInsertKeys && r.forEach(({ key: c, peerId: d, payload: l }) => {
|
|
18084
18233
|
d !== n(this, zo, qu) && i.set(c, l, !1, !0);
|
|
18085
18234
|
}), t === J.storeDeleteKeys && r.forEach(({ key: c, peerId: d }) => {
|
|
@@ -18089,7 +18238,7 @@ ki = new WeakMap(), Ii = new WeakMap(), zo = new WeakSet(), qu = function() {
|
|
|
18089
18238
|
);
|
|
18090
18239
|
});
|
|
18091
18240
|
};
|
|
18092
|
-
function
|
|
18241
|
+
function ui(s) {
|
|
18093
18242
|
var t, e, r, i, a, o, c, d, l, p, g, v, S;
|
|
18094
18243
|
return s ? {
|
|
18095
18244
|
media: {
|
|
@@ -18124,14 +18273,20 @@ var wD = Object.defineProperty, RD = Object.getOwnPropertyDescriptor, qa = (s, t
|
|
|
18124
18273
|
return r && i && wD(t, e, i), i;
|
|
18125
18274
|
};
|
|
18126
18275
|
const bD = 0.8, kD = 1.2;
|
|
18127
|
-
var aa, oa, Ut, Ai, ho,
|
|
18276
|
+
var aa, oa, Ut, Ai, ho, Fr, En, Mi, po, qd, Yf, er, Qo, Br, Di, go, tr, jd, Xo, ju, Gd, Qf, Wd, Xf, Bg;
|
|
18128
18277
|
let Tr = (Bg = class extends jt {
|
|
18278
|
+
/**
|
|
18279
|
+
* @param {Context} context
|
|
18280
|
+
* @param {IParticipant} participant
|
|
18281
|
+
* @param {Self} self
|
|
18282
|
+
* @param {RoomSocketHandler} roomSocket
|
|
18283
|
+
*/
|
|
18129
18284
|
constructor(t, e, r, i) {
|
|
18130
18285
|
const a = t.getValue("logger");
|
|
18131
18286
|
super(a);
|
|
18132
18287
|
// eslint-disable-next-line class-methods-use-this
|
|
18133
18288
|
m(this, Ai);
|
|
18134
|
-
m(this,
|
|
18289
|
+
m(this, Fr);
|
|
18135
18290
|
/**
|
|
18136
18291
|
* Returns true if the local participant has joined the meeting.
|
|
18137
18292
|
*/
|
|
@@ -18222,7 +18377,7 @@ let Tr = (Bg = class extends jt {
|
|
|
18222
18377
|
m(this, Ut, void 0);
|
|
18223
18378
|
m(this, er, void 0);
|
|
18224
18379
|
m(this, Qo, void 0);
|
|
18225
|
-
m(this,
|
|
18380
|
+
m(this, Br, /* @__PURE__ */ new Map());
|
|
18226
18381
|
/*
|
|
18227
18382
|
* Specifies the currently set max spatial layer
|
|
18228
18383
|
* Assuming a two layer simulcast, 0 being the lower layer
|
|
@@ -18286,18 +18441,30 @@ let Tr = (Bg = class extends jt {
|
|
|
18286
18441
|
get telemetry() {
|
|
18287
18442
|
return n(this, Ut).getValue("telemetry");
|
|
18288
18443
|
}
|
|
18444
|
+
/**
|
|
18445
|
+
* @param {boolean} videoEnabled
|
|
18446
|
+
* @param {boolean} [emitEvent=true]
|
|
18447
|
+
*/
|
|
18289
18448
|
setVideoEnabled(t, e = !0) {
|
|
18290
|
-
this.videoEnabled = t, e && (this.logger.info("Participant::setVideoEnabled::videoUpdate", D({},
|
|
18449
|
+
this.videoEnabled = t, e && (this.logger.info("Participant::setVideoEnabled::videoUpdate", D({}, ui(this))), this.emit("videoUpdate", {
|
|
18291
18450
|
videoEnabled: this.videoEnabled,
|
|
18292
18451
|
videoTrack: this.videoTrack
|
|
18293
18452
|
}));
|
|
18294
18453
|
}
|
|
18454
|
+
/**
|
|
18455
|
+
* @param {boolean} audioEnabled
|
|
18456
|
+
* @param {boolean} [emitEvent=true]
|
|
18457
|
+
*/
|
|
18295
18458
|
setAudioEnabled(t, e = !0) {
|
|
18296
|
-
this.audioEnabled = t, e && (this.logger.info("Participant::setAudioEnabled::audioUpdate", D({},
|
|
18459
|
+
this.audioEnabled = t, e && (this.logger.info("Participant::setAudioEnabled::audioUpdate", D({}, ui(this))), this.emit("audioUpdate", {
|
|
18297
18460
|
audioEnabled: this.audioEnabled,
|
|
18298
18461
|
audioTrack: this.audioTrack
|
|
18299
18462
|
}));
|
|
18300
18463
|
}
|
|
18464
|
+
/**
|
|
18465
|
+
* @param {boolean} screenShareEnabled
|
|
18466
|
+
* @param {boolean} [emitEvent=true]
|
|
18467
|
+
*/
|
|
18301
18468
|
setScreenShareEnabled(t, e = !0) {
|
|
18302
18469
|
this.screenShareEnabled = t, e && this.emit("screenShareUpdate", {
|
|
18303
18470
|
screenShareEnabled: this.screenShareEnabled,
|
|
@@ -18305,7 +18472,7 @@ let Tr = (Bg = class extends jt {
|
|
|
18305
18472
|
});
|
|
18306
18473
|
}
|
|
18307
18474
|
setupEvents() {
|
|
18308
|
-
this.on("videoUpdate", U(this, Xo, ju)), n(this,
|
|
18475
|
+
this.on("videoUpdate", U(this, Xo, ju)), n(this, Fr, En) && (this.on("audioUpdate", U(this, Gd, Qf)), this.on("screenShareUpdate", U(this, Wd, Xf)));
|
|
18309
18476
|
}
|
|
18310
18477
|
/**
|
|
18311
18478
|
* Returns `participant.id` if user has permission
|
|
@@ -18336,6 +18503,8 @@ let Tr = (Bg = class extends jt {
|
|
|
18336
18503
|
/**
|
|
18337
18504
|
* @access private
|
|
18338
18505
|
* Not for external use
|
|
18506
|
+
* @param {boolean} isPinned
|
|
18507
|
+
* @param {boolean} [emitEvent=true]
|
|
18339
18508
|
*/
|
|
18340
18509
|
setIsPinned(t, e = !0) {
|
|
18341
18510
|
var i;
|
|
@@ -18409,6 +18578,9 @@ let Tr = (Bg = class extends jt {
|
|
|
18409
18578
|
return n(this, Qo).getUserPermissions(this.userId);
|
|
18410
18579
|
});
|
|
18411
18580
|
}
|
|
18581
|
+
/**
|
|
18582
|
+
* @param {StageStatus} stageStatus
|
|
18583
|
+
*/
|
|
18412
18584
|
setStageStatus(t) {
|
|
18413
18585
|
f(this, oa, t), this.emit("stageStatusUpdate", this);
|
|
18414
18586
|
}
|
|
@@ -18418,12 +18590,15 @@ let Tr = (Bg = class extends jt {
|
|
|
18418
18590
|
get isPinned() {
|
|
18419
18591
|
return n(this, aa);
|
|
18420
18592
|
}
|
|
18593
|
+
/**
|
|
18594
|
+
* @param {HTMLVideoElement} videoElem
|
|
18595
|
+
*/
|
|
18421
18596
|
registerVideoElement(t) {
|
|
18422
18597
|
var r, i, a, o;
|
|
18423
18598
|
if (!t)
|
|
18424
18599
|
return;
|
|
18425
18600
|
let e;
|
|
18426
|
-
(i = (r = n(this,
|
|
18601
|
+
(i = (r = n(this, Br).get(t)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (e = new ResizeObserver(() => n(this, jd).call(this, t)), e.observe(t)), n(this, Br).set(t, { observer: e }), this.updateVideo(t), (o = n(this, Di, go)) == null || o.addSource(
|
|
18427
18602
|
this.id,
|
|
18428
18603
|
t,
|
|
18429
18604
|
this.videoEnabled,
|
|
@@ -18433,16 +18608,20 @@ let Tr = (Bg = class extends jt {
|
|
|
18433
18608
|
(a = this.raised) != null ? a : !1
|
|
18434
18609
|
);
|
|
18435
18610
|
}
|
|
18611
|
+
/**
|
|
18612
|
+
* @param {HTMLVideoElement} [videoElem]
|
|
18613
|
+
*/
|
|
18436
18614
|
deregisterVideoElement(t) {
|
|
18437
18615
|
var e, r, i, a;
|
|
18438
18616
|
if (!t) {
|
|
18439
18617
|
(e = n(this, Di, go)) == null || e.removeSource(this.id);
|
|
18440
18618
|
return;
|
|
18441
18619
|
}
|
|
18442
|
-
t.srcObject = void 0, (i = (r = n(this,
|
|
18620
|
+
t.srcObject = void 0, (i = (r = n(this, Br).get(t)) == null ? void 0 : r.observer) == null || i.disconnect(), n(this, Br).delete(t), (a = n(this, Di, go)) == null || a.removeSource(this.id);
|
|
18443
18621
|
}
|
|
18444
18622
|
/**
|
|
18445
18623
|
* Internal method, do not use
|
|
18624
|
+
* @param {HTMLVideoElement} e
|
|
18446
18625
|
*/
|
|
18447
18626
|
updateVideo(t) {
|
|
18448
18627
|
var e;
|
|
@@ -18460,22 +18639,22 @@ let Tr = (Bg = class extends jt {
|
|
|
18460
18639
|
}
|
|
18461
18640
|
}, aa = new WeakMap(), oa = new WeakMap(), Ut = new WeakMap(), Ai = new WeakSet(), ho = function() {
|
|
18462
18641
|
return n(this, Ut).getValue("roomNodeClient");
|
|
18463
|
-
},
|
|
18642
|
+
}, Fr = new WeakSet(), En = function() {
|
|
18464
18643
|
return n(this, Ut).getValue("audioPlayback");
|
|
18465
18644
|
}, Mi = new WeakSet(), po = function() {
|
|
18466
18645
|
return n(this, Ut).getValue("connectionHandler").mediaJoined;
|
|
18467
18646
|
}, qd = new WeakSet(), Yf = function() {
|
|
18468
18647
|
return n(this, Ut).getValue("connectionHandler").socketJoined;
|
|
18469
|
-
}, er = new WeakMap(), Qo = new WeakMap(),
|
|
18648
|
+
}, er = new WeakMap(), Qo = new WeakMap(), Br = new WeakMap(), Di = new WeakSet(), go = function() {
|
|
18470
18649
|
return n(this, Ut).getValue("pip");
|
|
18471
18650
|
}, tr = new WeakMap(), jd = new WeakMap(), Xo = new WeakSet(), ju = function() {
|
|
18472
|
-
Array.from(n(this,
|
|
18651
|
+
Array.from(n(this, Br).keys()).forEach(this.updateVideo);
|
|
18473
18652
|
}, Gd = new WeakSet(), Qf = function() {
|
|
18474
18653
|
var t, e;
|
|
18475
|
-
this.audioEnabled && this.audioTrack ? (t = n(this,
|
|
18654
|
+
this.audioEnabled && this.audioTrack ? (t = n(this, Fr, En)) == null || t.addParticipantTrack(this.id, this.audioTrack) : (e = n(this, Fr, En)) == null || e.removeParticipantTrack(this.id);
|
|
18476
18655
|
}, Wd = new WeakSet(), Xf = function() {
|
|
18477
18656
|
var t, e;
|
|
18478
|
-
this.screenShareEnabled && this.screenShareTracks.audio ? (t = n(this,
|
|
18657
|
+
this.screenShareEnabled && this.screenShareTracks.audio ? (t = n(this, Fr, En)) == null || t.addParticipantTrack(`screenshare-${this.id}`, this.screenShareTracks.audio) : (e = n(this, Fr, En)) == null || e.removeParticipantTrack(`screenshare-${this.id}`);
|
|
18479
18658
|
}, Bg);
|
|
18480
18659
|
qa([
|
|
18481
18660
|
E.trace("Participant.disableAudio")
|
|
@@ -18496,6 +18675,10 @@ Tr = qa([
|
|
|
18496
18675
|
ut("1200")
|
|
18497
18676
|
], Tr);
|
|
18498
18677
|
class uo extends Ff {
|
|
18678
|
+
/**
|
|
18679
|
+
* @param {Logger} logger
|
|
18680
|
+
* @param {MapEvents} [options]
|
|
18681
|
+
*/
|
|
18499
18682
|
constructor(t, e) {
|
|
18500
18683
|
const {
|
|
18501
18684
|
onAddEvent: r = "participantJoined",
|
|
@@ -18508,43 +18691,56 @@ class uo extends Ff {
|
|
|
18508
18691
|
onClearEvent: a
|
|
18509
18692
|
}, t);
|
|
18510
18693
|
}
|
|
18694
|
+
/**
|
|
18695
|
+
* @param {T} participant
|
|
18696
|
+
* @param {boolean} [emitEvent=true]
|
|
18697
|
+
*/
|
|
18511
18698
|
add(t, e = !0) {
|
|
18512
18699
|
return this.has(t.id) && Object.is(this.get(t.id), t) === !1 && this.delete(t.id), super.add(t, e);
|
|
18513
18700
|
}
|
|
18701
|
+
/**
|
|
18702
|
+
* @param {boolean} [emitEvent=true]
|
|
18703
|
+
* @param {boolean} [removeListeners=false]
|
|
18704
|
+
*/
|
|
18514
18705
|
clear(t = !0, e = !1) {
|
|
18515
18706
|
return super.clear(t, e);
|
|
18516
18707
|
}
|
|
18708
|
+
/**
|
|
18709
|
+
* @param {string} participantId
|
|
18710
|
+
* @param {boolean} [emitEvent=true]
|
|
18711
|
+
* @param {boolean} [removeListeners=false]
|
|
18712
|
+
*/
|
|
18517
18713
|
delete(t, e = !0, r = !1) {
|
|
18518
18714
|
return super.delete(t, e, r);
|
|
18519
18715
|
}
|
|
18520
18716
|
}
|
|
18521
|
-
var
|
|
18717
|
+
var Hr;
|
|
18522
18718
|
class ID extends $a {
|
|
18523
18719
|
constructor(e) {
|
|
18524
18720
|
super(e);
|
|
18525
|
-
m(this,
|
|
18526
|
-
f(this,
|
|
18721
|
+
m(this, Hr, void 0);
|
|
18722
|
+
f(this, Hr, /* @__PURE__ */ new Map());
|
|
18527
18723
|
}
|
|
18528
18724
|
/**
|
|
18529
18725
|
* @private
|
|
18530
18726
|
*/
|
|
18531
18727
|
__set(e, r) {
|
|
18532
|
-
return n(this,
|
|
18728
|
+
return n(this, Hr).set(e, r);
|
|
18533
18729
|
}
|
|
18534
18730
|
/**
|
|
18535
18731
|
* @private
|
|
18536
18732
|
*/
|
|
18537
18733
|
__clear() {
|
|
18538
|
-
return n(this,
|
|
18734
|
+
return n(this, Hr).clear();
|
|
18539
18735
|
}
|
|
18540
18736
|
get(e) {
|
|
18541
|
-
return n(this,
|
|
18737
|
+
return n(this, Hr).get(e);
|
|
18542
18738
|
}
|
|
18543
18739
|
toArray() {
|
|
18544
|
-
return Array.from(n(this,
|
|
18740
|
+
return Array.from(n(this, Hr).values());
|
|
18545
18741
|
}
|
|
18546
18742
|
}
|
|
18547
|
-
|
|
18743
|
+
Hr = new WeakMap();
|
|
18548
18744
|
class AD {
|
|
18549
18745
|
constructor() {
|
|
18550
18746
|
h(this, "_orderedArray");
|
|
@@ -18628,6 +18824,14 @@ var DD = Object.defineProperty, OD = Object.getOwnPropertyDescriptor, Jt = (s, t
|
|
|
18628
18824
|
const ND = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
|
|
18629
18825
|
var Ee, Zo, Gu, Oi, mo, ca, gd, Ni, wt, Hg;
|
|
18630
18826
|
let Pt = (Hg = class extends jt {
|
|
18827
|
+
/**
|
|
18828
|
+
* This constructs a new Participant object and maintains
|
|
18829
|
+
* the maps of active/joined/waitlisted/pinned/selectedPeers maps.
|
|
18830
|
+
* self : Self
|
|
18831
|
+
* @param {Context} context
|
|
18832
|
+
* @param {Self} self
|
|
18833
|
+
* @param {RoomSocketHandler} roomSocketHandler
|
|
18834
|
+
*/
|
|
18631
18835
|
constructor(t, e, r) {
|
|
18632
18836
|
const i = t.getValue("logger");
|
|
18633
18837
|
super(i);
|
|
@@ -18703,11 +18907,6 @@ let Pt = (Hg = class extends jt {
|
|
|
18703
18907
|
* This stores the `participantId` of the last participant who spoke in the meeting.
|
|
18704
18908
|
*/
|
|
18705
18909
|
h(this, "lastActiveSpeaker");
|
|
18706
|
-
/**
|
|
18707
|
-
* This constructs a new Participant object and maintains
|
|
18708
|
-
* the maps of active/joined/waitlisted/pinned/selectedPeers maps.
|
|
18709
|
-
* @param self : Self
|
|
18710
|
-
*/
|
|
18711
18910
|
/**
|
|
18712
18911
|
* Keeps a list of all participants who have been present in the selected peers list.
|
|
18713
18912
|
*/
|
|
@@ -18764,7 +18963,7 @@ let Pt = (Hg = class extends jt {
|
|
|
18764
18963
|
* Updates the maximum number of participants that are populated in
|
|
18765
18964
|
* the active map.
|
|
18766
18965
|
*
|
|
18767
|
-
* @param limit
|
|
18966
|
+
* @param {number} limit Updated max limit
|
|
18768
18967
|
*/
|
|
18769
18968
|
setMaxActiveParticipantsCount(t) {
|
|
18770
18969
|
if (t < 0 || t > 24)
|
|
@@ -18787,7 +18986,7 @@ let Pt = (Hg = class extends jt {
|
|
|
18787
18986
|
/**
|
|
18788
18987
|
* Accepts requests from waitlisted participants if user
|
|
18789
18988
|
* has appropriate permissions.
|
|
18790
|
-
* @param id peerId or userId of the waitlisted participant.
|
|
18989
|
+
* @param {string} id peerId or userId of the waitlisted participant.
|
|
18791
18990
|
*/
|
|
18792
18991
|
acceptWaitingRoomRequest(t) {
|
|
18793
18992
|
var r, i;
|
|
@@ -18803,6 +19002,7 @@ let Pt = (Hg = class extends jt {
|
|
|
18803
19002
|
* We need a new event for socket service events
|
|
18804
19003
|
* since if we send them all together, sequence of events
|
|
18805
19004
|
* can be unreliable
|
|
19005
|
+
* @param {string[]} userIds
|
|
18806
19006
|
*/
|
|
18807
19007
|
acceptAllWaitingRoomRequest(t) {
|
|
18808
19008
|
return u(this, null, function* () {
|
|
@@ -18816,7 +19016,7 @@ let Pt = (Hg = class extends jt {
|
|
|
18816
19016
|
/**
|
|
18817
19017
|
* Rejects requests from waitlisted participants if user
|
|
18818
19018
|
* has appropriate permissions.
|
|
18819
|
-
* @param id participantId of the waitlisted participant.
|
|
19019
|
+
* @param {string} id participantId of the waitlisted participant.
|
|
18820
19020
|
*/
|
|
18821
19021
|
rejectWaitingRoomRequest(t) {
|
|
18822
19022
|
return u(this, null, function* () {
|
|
@@ -18864,6 +19064,10 @@ let Pt = (Hg = class extends jt {
|
|
|
18864
19064
|
});
|
|
18865
19065
|
});
|
|
18866
19066
|
}
|
|
19067
|
+
/**
|
|
19068
|
+
* @param {string[]} peerIds
|
|
19069
|
+
* @param {Array.<('audio'|'video'|'screenshareAudio'|'screenshareVideo')>} [kinds]
|
|
19070
|
+
*/
|
|
18867
19071
|
subscribe(r) {
|
|
18868
19072
|
return u(this, arguments, function* (t, e = ["audio", "video", "screenshareAudio", "screenshareVideo"]) {
|
|
18869
19073
|
if (this.viewMode !== "MANUAL")
|
|
@@ -18882,6 +19086,10 @@ let Pt = (Hg = class extends jt {
|
|
|
18882
19086
|
}), n(this, Ee).getValue("peerSessionStore").emit(k.UPDATE_ACTIVE, { viewMode: this.viewMode, page: this.currentPage });
|
|
18883
19087
|
});
|
|
18884
19088
|
}
|
|
19089
|
+
/**
|
|
19090
|
+
* @param {string[]} peerIds
|
|
19091
|
+
* @param {Array.<('audio'|'video'|'screenshareAudio'|'screenshareVideo')>} [kinds]
|
|
19092
|
+
*/
|
|
18885
19093
|
unsubscribe(r) {
|
|
18886
19094
|
return u(this, arguments, function* (t, e = ["audio", "video", "screenshareAudio", "screenshareVideo"]) {
|
|
18887
19095
|
if (this.viewMode !== "MANUAL")
|
|
@@ -19024,6 +19232,10 @@ let Pt = (Hg = class extends jt {
|
|
|
19024
19232
|
return (yield n(this, wt).getRoomPeers(t, e, r)).peers.map(_r.formatSocketPeerMessage);
|
|
19025
19233
|
});
|
|
19026
19234
|
}
|
|
19235
|
+
/**
|
|
19236
|
+
* @param {string[]} participantIds
|
|
19237
|
+
* @param {PresetUpdates} permissions
|
|
19238
|
+
*/
|
|
19027
19239
|
updatePermissions(t, e) {
|
|
19028
19240
|
return u(this, null, function* () {
|
|
19029
19241
|
const r = this.joined.toArray().filter((a) => t.includes(a.id)).map((a) => a.userId), i = [...new Set(r)];
|
|
@@ -20141,13 +20353,13 @@ const bn = class extends jt {
|
|
|
20141
20353
|
if (r && (r.private && Rr(n(this, q).chat.private, r.private), r.public && Rr(n(this, q).chat.public, r.public), this.emit("chatUpdate")), i && Rr(n(this, q).connectedMeetings, i), c) {
|
|
20142
20354
|
const S = (_) => {
|
|
20143
20355
|
switch (_) {
|
|
20144
|
-
case
|
|
20356
|
+
case Yr.NONE:
|
|
20145
20357
|
return j.Allowed;
|
|
20146
|
-
case
|
|
20358
|
+
case Yr.ALLOWED:
|
|
20147
20359
|
return j.Allowed;
|
|
20148
|
-
case
|
|
20360
|
+
case Yr.NOT_ALLOWED:
|
|
20149
20361
|
return j.NotAllowed;
|
|
20150
|
-
case
|
|
20362
|
+
case Yr.CAN_REQUEST:
|
|
20151
20363
|
return j.CanRequest;
|
|
20152
20364
|
default:
|
|
20153
20365
|
return;
|
|
@@ -20523,6 +20735,10 @@ q = new WeakMap(), la = new WeakMap(), ua = new WeakMap(), Jd = new WeakMap(), f
|
|
|
20523
20735
|
};
|
|
20524
20736
|
var $t;
|
|
20525
20737
|
class tv extends jt {
|
|
20738
|
+
/**
|
|
20739
|
+
* @param {Context} context
|
|
20740
|
+
* @param {Logger} logger
|
|
20741
|
+
*/
|
|
20526
20742
|
constructor(e, r) {
|
|
20527
20743
|
super(r);
|
|
20528
20744
|
h(this, "localMediaHandler");
|
|
@@ -20585,6 +20801,14 @@ class tv extends jt {
|
|
|
20585
20801
|
var e;
|
|
20586
20802
|
return (e = n(this, $t)) == null ? void 0 : e.getValue("peerId");
|
|
20587
20803
|
}
|
|
20804
|
+
/**
|
|
20805
|
+
* @param {Object} options
|
|
20806
|
+
* @param {boolean} [options.video]
|
|
20807
|
+
* @param {boolean} [options.audio]
|
|
20808
|
+
* @param {MediaConstraints} [options.constraints]
|
|
20809
|
+
* @param {boolean} [skipAwaits=false]
|
|
20810
|
+
* @param {Context} [context=null]
|
|
20811
|
+
*/
|
|
20588
20812
|
init() {
|
|
20589
20813
|
return u(this, arguments, function* (e = {}, r = !1, i = null) {
|
|
20590
20814
|
var a, o, c, d, l, p, g;
|
|
@@ -20684,6 +20908,7 @@ class tv extends jt {
|
|
|
20684
20908
|
* If there are more than 1 audio middlewares,
|
|
20685
20909
|
* they will be executed in the sequence they were added in.
|
|
20686
20910
|
* If you want the sequence to be altered, please remove all previous middlewares and re-add.
|
|
20911
|
+
* @param {AudioMiddleware} audioMiddleware
|
|
20687
20912
|
*/
|
|
20688
20913
|
addAudioMiddleware(e) {
|
|
20689
20914
|
return u(this, null, function* () {
|
|
@@ -20692,6 +20917,7 @@ class tv extends jt {
|
|
|
20692
20917
|
}
|
|
20693
20918
|
/**
|
|
20694
20919
|
* Removes the audio middleware, if it is there.
|
|
20920
|
+
* @param {AudioMiddleware} audioMiddleware
|
|
20695
20921
|
*/
|
|
20696
20922
|
removeAudioMiddleware(e) {
|
|
20697
20923
|
return u(this, null, function* () {
|
|
@@ -20723,6 +20949,7 @@ class tv extends jt {
|
|
|
20723
20949
|
* If there are more than 1 video middlewares,
|
|
20724
20950
|
* they will be executed in the sequence they were added in.
|
|
20725
20951
|
* If you want the sequence to be altered, please remove all previous middlewares and re-add.
|
|
20952
|
+
* @param {VideoMiddleware} videoMiddleware
|
|
20726
20953
|
*/
|
|
20727
20954
|
addVideoMiddleware(e) {
|
|
20728
20955
|
return u(this, null, function* () {
|
|
@@ -20731,8 +20958,8 @@ class tv extends jt {
|
|
|
20731
20958
|
}
|
|
20732
20959
|
/**
|
|
20733
20960
|
* Sets global config to be used by video middlewares.
|
|
20734
|
-
* @param config config
|
|
20735
|
-
* @param config.disablePerFrameCanvasRendering If set to true,
|
|
20961
|
+
* @param {VideoMiddlewareGlobalConfig} config config
|
|
20962
|
+
* @param {boolean} config.disablePerFrameCanvasRendering If set to true,
|
|
20736
20963
|
* Instead of calling Middleware for every frame,
|
|
20737
20964
|
* Middleware will only be called once that too with empty canvas,
|
|
20738
20965
|
* it is the responsibility of the middleware author to keep updating this canvas.
|
|
@@ -20747,6 +20974,7 @@ class tv extends jt {
|
|
|
20747
20974
|
}
|
|
20748
20975
|
/**
|
|
20749
20976
|
* Removes the video middleware, if it is there.
|
|
20977
|
+
* @param {VideoMiddleware} videoMiddleware
|
|
20750
20978
|
*/
|
|
20751
20979
|
removeVideoMiddleware(e) {
|
|
20752
20980
|
return u(this, null, function* () {
|
|
@@ -20865,8 +21093,8 @@ class tv extends jt {
|
|
|
20865
21093
|
}
|
|
20866
21094
|
/**
|
|
20867
21095
|
* Returns the local participant's device, indexed by ID and kind.
|
|
20868
|
-
* @param deviceId The ID of the device.
|
|
20869
|
-
* @param kind The kind of the device: audio, video, or speaker.
|
|
21096
|
+
* @param {string} deviceId The ID of the device.
|
|
21097
|
+
* @param {('audio'|'video'|'speaker')} kind The kind of the device: audio, video, or speaker.
|
|
20870
21098
|
*/
|
|
20871
21099
|
getDeviceById(e, r) {
|
|
20872
21100
|
let i;
|
|
@@ -20874,7 +21102,8 @@ class tv extends jt {
|
|
|
20874
21102
|
}
|
|
20875
21103
|
/**
|
|
20876
21104
|
* Change the current media device that is being used by the local participant.
|
|
20877
|
-
* @param device The device that is to be used.
|
|
21105
|
+
* @param {MediaDeviceInfo} device The device that is to be used.
|
|
21106
|
+
* A device of the same `kind` will be replaced.
|
|
20878
21107
|
* the primary stream.
|
|
20879
21108
|
*/
|
|
20880
21109
|
setDevice(e) {
|
|
@@ -20917,7 +21146,7 @@ var xD = Object.defineProperty, UD = Object.getOwnPropertyDescriptor, _t = (s, t
|
|
|
20917
21146
|
for (var i = r > 1 ? void 0 : r ? UD(t, e) : t, a = s.length - 1, o; a >= 0; a--)
|
|
20918
21147
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
20919
21148
|
return r && i && xD(t, e, i), i;
|
|
20920
|
-
}, ha, vt, pa, Fe, sr,
|
|
21149
|
+
}, ha, vt, pa, Fe, sr, ai, qe, Qe, ga, md, Ve, Be, ma, fa, ec, Ju, jg;
|
|
20921
21150
|
let Ye = (jg = class extends tv {
|
|
20922
21151
|
constructor(t, e, r, i, a) {
|
|
20923
21152
|
var c;
|
|
@@ -21013,7 +21242,7 @@ let Ye = (jg = class extends tv {
|
|
|
21013
21242
|
t && t.onError((e) => {
|
|
21014
21243
|
this.emit("autoplayError", e);
|
|
21015
21244
|
}), this.localMediaHandler.on("AUDIO_TRACK_CHANGE", () => u(this, null, function* () {
|
|
21016
|
-
if (this.logger.info("Self::setupEvents::AUDIO_TRACK_CHANGE", D({},
|
|
21245
|
+
if (this.logger.info("Self::setupEvents::AUDIO_TRACK_CHANGE", D({}, ui(this))), n(this, Ve, Be) && this.audioEnabled)
|
|
21017
21246
|
try {
|
|
21018
21247
|
yield n(this, qe, Qe).shareMic(this.audioTrack);
|
|
21019
21248
|
} catch (e) {
|
|
@@ -21026,7 +21255,7 @@ let Ye = (jg = class extends tv {
|
|
|
21026
21255
|
audioTrack: this.audioTrack
|
|
21027
21256
|
});
|
|
21028
21257
|
})), this.localMediaHandler.on("VIDEO_TRACK_CHANGE", () => u(this, null, function* () {
|
|
21029
|
-
if (this.logger.info("Self::setupEvents::VIDEO_TRACK_CHANGE", D({},
|
|
21258
|
+
if (this.logger.info("Self::setupEvents::VIDEO_TRACK_CHANGE", D({}, ui(this))), n(this, Ve, Be) && this.rawVideoTrack === void 0)
|
|
21030
21259
|
this.logger.info("Self::VIDEO_TRACK_CHANGE::Forcing_disable_video"), this.disableVideo();
|
|
21031
21260
|
else if (this.videoEnabled && n(this, Ve, Be))
|
|
21032
21261
|
try {
|
|
@@ -21069,12 +21298,12 @@ let Ye = (jg = class extends tv {
|
|
|
21069
21298
|
}
|
|
21070
21299
|
), this.screenShareEnabled && (yield this.localMediaHandler.disableScreenShare());
|
|
21071
21300
|
}
|
|
21072
|
-
this.logger.info("Self::setupEvents::SCREENSHARE_TRACK_CHANGE", D({},
|
|
21301
|
+
this.logger.info("Self::setupEvents::SCREENSHARE_TRACK_CHANGE", D({}, ui(this))), this.emit("screenShareUpdate", {
|
|
21073
21302
|
screenShareEnabled: this.screenShareEnabled,
|
|
21074
21303
|
screenShareTracks: this.screenShareTracks
|
|
21075
21304
|
});
|
|
21076
21305
|
})), this.localMediaHandler.on("SCREENSHARE_ENDED", () => u(this, null, function* () {
|
|
21077
|
-
this.logger.log("Disabling screenshare due to SCREENSHARE_ENDED"), yield this.disableScreenShare(), this.logger.info("Self::setupEvents::SCREENSHARE_ENDED", D({},
|
|
21306
|
+
this.logger.log("Disabling screenshare due to SCREENSHARE_ENDED"), yield this.disableScreenShare(), this.logger.info("Self::setupEvents::SCREENSHARE_ENDED", D({}, ui(this)));
|
|
21078
21307
|
})), this.localMediaHandler.on("AUDIO_TRACK_SILENT", () => {
|
|
21079
21308
|
var e;
|
|
21080
21309
|
(e = n(this, Fe)) == null || e.getValue("callstats").mediaTrackMuted("AUDIO");
|
|
@@ -21114,7 +21343,7 @@ let Ye = (jg = class extends tv {
|
|
|
21114
21343
|
* The name of the user can be set by calling this method.
|
|
21115
21344
|
* This will get reflected to other participants ONLY if
|
|
21116
21345
|
* this method is called before the room is joined.
|
|
21117
|
-
* @param name Name of the user.
|
|
21346
|
+
* @param {string} name Name of the user.
|
|
21118
21347
|
*/
|
|
21119
21348
|
setName(t) {
|
|
21120
21349
|
if (!t)
|
|
@@ -21174,7 +21403,7 @@ let Ye = (jg = class extends tv {
|
|
|
21174
21403
|
this.emit("videoUpdate", {
|
|
21175
21404
|
videoEnabled: this.videoEnabled,
|
|
21176
21405
|
videoTrack: this.videoTrack
|
|
21177
|
-
}), this.logger.info("Self.enableVideo", D({},
|
|
21406
|
+
}), this.logger.info("Self.enableVideo", D({}, ui(this)));
|
|
21178
21407
|
}
|
|
21179
21408
|
});
|
|
21180
21409
|
}
|
|
@@ -21254,7 +21483,7 @@ let Ye = (jg = class extends tv {
|
|
|
21254
21483
|
var i;
|
|
21255
21484
|
f(this, pa, t);
|
|
21256
21485
|
const r = t ? "pinned" : "unpinned";
|
|
21257
|
-
(i = n(this, sr,
|
|
21486
|
+
(i = n(this, sr, ai)) == null || i.updateSource(this.id, { pinned: t }), e && this.emit(r, this);
|
|
21258
21487
|
}
|
|
21259
21488
|
/**
|
|
21260
21489
|
* Returns true if the current user is pinned.
|
|
@@ -21347,7 +21576,7 @@ let Ye = (jg = class extends tv {
|
|
|
21347
21576
|
}
|
|
21348
21577
|
registerVideoElement(t, e = !1) {
|
|
21349
21578
|
var r, i;
|
|
21350
|
-
t && (e ? n(this, ma).add(t) : n(this, fa).add(t), this.updateVideo(t), e || (i = n(this, sr,
|
|
21579
|
+
t && (e ? n(this, ma).add(t) : n(this, fa).add(t), this.updateVideo(t), e || (i = n(this, sr, ai)) == null || i.addSource(
|
|
21351
21580
|
this.id,
|
|
21352
21581
|
t,
|
|
21353
21582
|
this.videoEnabled,
|
|
@@ -21359,10 +21588,10 @@ let Ye = (jg = class extends tv {
|
|
|
21359
21588
|
}
|
|
21360
21589
|
deregisterVideoElement(t, e = !1) {
|
|
21361
21590
|
if (!t) {
|
|
21362
|
-
n(this, sr,
|
|
21591
|
+
n(this, sr, ai).removeSource(this.id);
|
|
21363
21592
|
return;
|
|
21364
21593
|
}
|
|
21365
|
-
t.srcObject = void 0, e ? n(this, ma).delete(t) : (n(this, fa).delete(t), n(this, sr,
|
|
21594
|
+
t.srcObject = void 0, e ? n(this, ma).delete(t) : (n(this, fa).delete(t), n(this, sr, ai).removeSource(this.id));
|
|
21366
21595
|
}
|
|
21367
21596
|
/**
|
|
21368
21597
|
* Internal method, do not use
|
|
@@ -21376,12 +21605,12 @@ let Ye = (jg = class extends tv {
|
|
|
21376
21605
|
if ((o == null ? void 0 : o.id) === this.videoTrack.id)
|
|
21377
21606
|
return;
|
|
21378
21607
|
const c = new MediaStream();
|
|
21379
|
-
c.addTrack(this.videoTrack), t.srcObject = c, e || (i = n(this, sr,
|
|
21608
|
+
c.addTrack(this.videoTrack), t.srcObject = c, e || (i = n(this, sr, ai)) == null || i.enableSource(this.id);
|
|
21380
21609
|
} else
|
|
21381
|
-
t.srcObject = void 0, e || (a = n(this, sr,
|
|
21610
|
+
t.srcObject = void 0, e || (a = n(this, sr, ai)) == null || a.disableSource(this.id);
|
|
21382
21611
|
t.style.display = this.videoEnabled ? "block" : "none";
|
|
21383
21612
|
}
|
|
21384
|
-
}, ha = new WeakMap(), vt = new WeakMap(), pa = new WeakMap(), Fe = new WeakMap(), sr = new WeakSet(),
|
|
21613
|
+
}, ha = new WeakMap(), vt = new WeakMap(), pa = new WeakMap(), Fe = new WeakMap(), sr = new WeakSet(), ai = function() {
|
|
21385
21614
|
return n(this, Fe).getValue("pip");
|
|
21386
21615
|
}, qe = new WeakSet(), Qe = function() {
|
|
21387
21616
|
return n(this, Fe).getValue("roomNodeClient");
|
|
@@ -21594,7 +21823,7 @@ class It extends b {
|
|
|
21594
21823
|
super(t), this.name = "InvalidStateError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, It) : this.stack = new Error(t).stack;
|
|
21595
21824
|
}
|
|
21596
21825
|
}
|
|
21597
|
-
class
|
|
21826
|
+
class hi extends b {
|
|
21598
21827
|
constructor(t) {
|
|
21599
21828
|
super(t), this.name = "TransportConnectionError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, It) : this.stack = new Error(t).stack;
|
|
21600
21829
|
}
|
|
@@ -22542,7 +22771,7 @@ rc = new WeakMap(), Vi = new WeakMap(), Vs = new WeakMap(), Kd = new WeakMap(),
|
|
|
22542
22771
|
}));
|
|
22543
22772
|
}
|
|
22544
22773
|
};
|
|
22545
|
-
var vs, va, Sa, Li, ss, Xe,
|
|
22774
|
+
var vs, va, Sa, Li, ss, Xe, qr, Ta, Qd, Ft, us;
|
|
22546
22775
|
class WD extends Wl {
|
|
22547
22776
|
/**
|
|
22548
22777
|
* @emits transportclose
|
|
@@ -22594,10 +22823,10 @@ class WD extends Wl {
|
|
|
22594
22823
|
m(this, Li, void 0);
|
|
22595
22824
|
m(this, ss, !1);
|
|
22596
22825
|
m(this, Xe, void 0);
|
|
22597
|
-
m(this,
|
|
22826
|
+
m(this, qr, void 0);
|
|
22598
22827
|
m(this, Ta, void 0);
|
|
22599
22828
|
m(this, Qd, void 0);
|
|
22600
|
-
this.id = r.id, this.localId = r.localId, f(this, Xe, r.track), this.kind = (i = r.track) == null ? void 0 : i.kind, f(this,
|
|
22829
|
+
this.id = r.id, this.localId = r.localId, f(this, Xe, r.track), this.kind = (i = r.track) == null ? void 0 : i.kind, f(this, qr, r.disableTrackOnPause ? !((a = r.track) != null && a.enabled) : !1), f(this, Ta, void 0), f(this, va, r.stopTracks), f(this, Sa, r.disableTrackOnPause), f(this, Li, r.zeroRtpOnPause), this.appData = r.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), f(this, vs, r.handler), this.rtpSender = r.rtpSender, this._handleTrack(), f(this, Qd, e);
|
|
22601
22830
|
}
|
|
22602
22831
|
/**
|
|
22603
22832
|
* Whether the Producer is closed.
|
|
@@ -22615,7 +22844,7 @@ class WD extends Wl {
|
|
|
22615
22844
|
* Whether the Producer is paused.
|
|
22616
22845
|
*/
|
|
22617
22846
|
get paused() {
|
|
22618
|
-
return n(this,
|
|
22847
|
+
return n(this, qr);
|
|
22619
22848
|
}
|
|
22620
22849
|
/**
|
|
22621
22850
|
* Max spatial layer.
|
|
@@ -22654,7 +22883,7 @@ class WD extends Wl {
|
|
|
22654
22883
|
* Pauses sending media.
|
|
22655
22884
|
*/
|
|
22656
22885
|
pause() {
|
|
22657
|
-
this.logger.debug("Producer::pause()", n(this, Ft, us)), n(this, ss) && this.logger.error("Producer::pause() | Producer closed", n(this, Ft, us)), f(this,
|
|
22886
|
+
this.logger.debug("Producer::pause()", n(this, Ft, us)), n(this, ss) && this.logger.error("Producer::pause() | Producer closed", n(this, Ft, us)), f(this, qr, !0), n(this, Xe) && n(this, Sa) && (n(this, Xe).enabled = !1), n(this, Li) && n(this, vs).replaceTrack(this.localId, null), this.emit("pause");
|
|
22658
22887
|
}
|
|
22659
22888
|
/**
|
|
22660
22889
|
* Resumes sending media.
|
|
@@ -22664,7 +22893,7 @@ class WD extends Wl {
|
|
|
22664
22893
|
this.logger.error("Producer::resume() | Producer closed", n(this, Ft, us));
|
|
22665
22894
|
return;
|
|
22666
22895
|
}
|
|
22667
|
-
f(this,
|
|
22896
|
+
f(this, qr, !1), n(this, Xe) && n(this, Sa) && (n(this, Xe).enabled = !0), n(this, Li) && n(this, vs).replaceTrack(this.localId, n(this, Xe)), this.emit("resume");
|
|
22668
22897
|
}
|
|
22669
22898
|
/**
|
|
22670
22899
|
* Replaces the current track with a new one or null.
|
|
@@ -22689,7 +22918,7 @@ class WD extends Wl {
|
|
|
22689
22918
|
this.logger.debug(`replaceTrack() | same track, ignored trackId: ${e.id}`, n(this, Ft, us));
|
|
22690
22919
|
return;
|
|
22691
22920
|
}
|
|
22692
|
-
(!n(this, Li) || !n(this,
|
|
22921
|
+
(!n(this, Li) || !n(this, qr)) && (yield n(this, vs).replaceTrack(this.localId, e)), this._destroyTrack(), f(this, Xe, e), this._handleTrack();
|
|
22693
22922
|
});
|
|
22694
22923
|
}
|
|
22695
22924
|
/**
|
|
@@ -22736,7 +22965,7 @@ class WD extends Wl {
|
|
|
22736
22965
|
}
|
|
22737
22966
|
}
|
|
22738
22967
|
}
|
|
22739
|
-
vs = new WeakMap(), va = new WeakMap(), Sa = new WeakMap(), Li = new WeakMap(), ss = new WeakMap(), Xe = new WeakMap(),
|
|
22968
|
+
vs = new WeakMap(), va = new WeakMap(), Sa = new WeakMap(), Li = new WeakMap(), ss = new WeakMap(), Xe = new WeakMap(), qr = new WeakMap(), Ta = new WeakMap(), Qd = new WeakMap(), Ft = new WeakSet(), us = function() {
|
|
22740
22969
|
return {
|
|
22741
22970
|
producer: {
|
|
22742
22971
|
id: this.id,
|
|
@@ -22763,14 +22992,14 @@ function KD(s) {
|
|
|
22763
22992
|
var t, e;
|
|
22764
22993
|
return JD(s) && (e = (t = s.payload._bolt) == null ? void 0 : t.id) != null ? e : "";
|
|
22765
22994
|
}
|
|
22766
|
-
var
|
|
22995
|
+
var jr, Xd, xi;
|
|
22767
22996
|
const kn = class extends lt.EventEmitter {
|
|
22768
22997
|
constructor(e, r, i, a) {
|
|
22769
22998
|
super();
|
|
22770
22999
|
h(this, "channel");
|
|
22771
23000
|
h(this, "queue");
|
|
22772
23001
|
h(this, "serverProtocolVersion");
|
|
22773
|
-
m(this,
|
|
23002
|
+
m(this, jr, /* @__PURE__ */ new Map());
|
|
22774
23003
|
m(this, Xd, void 0);
|
|
22775
23004
|
m(this, xi, void 0);
|
|
22776
23005
|
h(this, "respond", (e, r, i = !1) => {
|
|
@@ -22823,11 +23052,11 @@ const kn = class extends lt.EventEmitter {
|
|
|
22823
23052
|
});
|
|
22824
23053
|
h(this, "processMessage", (e) => {
|
|
22825
23054
|
var i;
|
|
22826
|
-
n(this,
|
|
22827
|
-
const r = n(this,
|
|
23055
|
+
n(this, jr).has(e.id) || n(this, jr).set(e.id, []);
|
|
23056
|
+
const r = n(this, jr).get(e.id);
|
|
22828
23057
|
if (r[e.chunkIndex] = e, (r == null ? void 0 : r.length) === e.count && !r.some((a) => a === void 0)) {
|
|
22829
|
-
const a = n(this,
|
|
22830
|
-
n(this,
|
|
23058
|
+
const a = n(this, jr).get(e.id), o = a == null ? void 0 : a.reduce((d, l) => d + l.chunk, "");
|
|
23059
|
+
n(this, jr).delete(e.id);
|
|
22831
23060
|
const c = JSON.parse(o);
|
|
22832
23061
|
if (!c.payload || !nv(c.payload))
|
|
22833
23062
|
throw new Error("corrupted incoming message over dc", {
|
|
@@ -22850,8 +23079,8 @@ const kn = class extends lt.EventEmitter {
|
|
|
22850
23079
|
this.label = i, this.transportId = a, f(this, Xd, e), f(this, xi, e.getValue("logger")), this.channel = r, this.queue = /* @__PURE__ */ new Map();
|
|
22851
23080
|
}
|
|
22852
23081
|
};
|
|
22853
|
-
let
|
|
22854
|
-
|
|
23082
|
+
let oi = kn;
|
|
23083
|
+
jr = new WeakMap(), Xd = new WeakMap(), xi = new WeakMap(), h(oi, "createRequest", (e) => {
|
|
22855
23084
|
var r;
|
|
22856
23085
|
if ((r = e.payload) != null && r._bolt)
|
|
22857
23086
|
throw new Error("rpc fields are internal values");
|
|
@@ -22865,7 +23094,7 @@ Gr = new WeakMap(), Xd = new WeakMap(), xi = new WeakMap(), h(ci, "createRequest
|
|
|
22865
23094
|
}
|
|
22866
23095
|
})
|
|
22867
23096
|
};
|
|
22868
|
-
}), h(
|
|
23097
|
+
}), h(oi, "createResponse", (e, r) => {
|
|
22869
23098
|
var i;
|
|
22870
23099
|
if ((i = r.payload) != null && i._bolt)
|
|
22871
23100
|
throw new Error("rpc fields are internal values");
|
|
@@ -22879,7 +23108,7 @@ Gr = new WeakMap(), Xd = new WeakMap(), xi = new WeakMap(), h(ci, "createRequest
|
|
|
22879
23108
|
}
|
|
22880
23109
|
})
|
|
22881
23110
|
};
|
|
22882
|
-
}), h(
|
|
23111
|
+
}), h(oi, "createNotification", (e) => {
|
|
22883
23112
|
var r;
|
|
22884
23113
|
if ((r = e.payload) != null && r._bolt)
|
|
22885
23114
|
throw new Error("rpc fields are internal values");
|
|
@@ -22893,7 +23122,7 @@ Gr = new WeakMap(), Xd = new WeakMap(), xi = new WeakMap(), h(ci, "createRequest
|
|
|
22893
23122
|
}
|
|
22894
23123
|
})
|
|
22895
23124
|
};
|
|
22896
|
-
}), h(
|
|
23125
|
+
}), h(oi, "createErrorResponse", (e, r) => ({
|
|
22897
23126
|
type: "error",
|
|
22898
23127
|
payload: {
|
|
22899
23128
|
error: r.message,
|
|
@@ -22982,7 +23211,7 @@ const In = class extends Wl {
|
|
|
22982
23211
|
}
|
|
22983
23212
|
), this.handler.on("dc_open", (w) => {
|
|
22984
23213
|
let L = this.datachannels.get(w.label);
|
|
22985
|
-
L || (L || (L = new
|
|
23214
|
+
L || (L || (L = new oi(n(this, Ui), w, w.label, this.serverId), this.datachannels.set(w.label, L)), this.eventsDCFailureTimer = setTimeout(() => {
|
|
22986
23215
|
w.label === "events" && (this.eventsDCReadyPromiseResolver(!1), this.safeEmit("dc_error", w.label));
|
|
22987
23216
|
}, 5e3));
|
|
22988
23217
|
}), this.handler.on("datachannel", (w, L) => {
|
|
@@ -23097,7 +23326,7 @@ const In = class extends Wl {
|
|
|
23097
23326
|
} else
|
|
23098
23327
|
throw new TypeError("missing track");
|
|
23099
23328
|
if (!(yield this.transportConnectionPromise))
|
|
23100
|
-
throw new
|
|
23329
|
+
throw new hi("transport not connected");
|
|
23101
23330
|
return !0;
|
|
23102
23331
|
});
|
|
23103
23332
|
}
|
|
@@ -23171,7 +23400,7 @@ const In = class extends Wl {
|
|
|
23171
23400
|
if (this.direction !== "recv")
|
|
23172
23401
|
throw new Do("not a receiving transport");
|
|
23173
23402
|
if (!(yield this.transportConnectionPromise))
|
|
23174
|
-
throw new
|
|
23403
|
+
throw new hi("transport not connected");
|
|
23175
23404
|
return !0;
|
|
23176
23405
|
});
|
|
23177
23406
|
}
|
|
@@ -23662,10 +23891,10 @@ ya = new WeakMap(), at = new WeakMap(), ot = new WeakMap(), nc = new WeakMap(),
|
|
|
23662
23891
|
});
|
|
23663
23892
|
try {
|
|
23664
23893
|
if (e.closed)
|
|
23665
|
-
throw new
|
|
23894
|
+
throw new hi("Cannot reconnect closed transport");
|
|
23666
23895
|
yield U(this, el, ov).call(this, e);
|
|
23667
23896
|
} catch (l) {
|
|
23668
|
-
if (l instanceof
|
|
23897
|
+
if (l instanceof hi) {
|
|
23669
23898
|
d(l);
|
|
23670
23899
|
return;
|
|
23671
23900
|
}
|
|
@@ -23692,9 +23921,9 @@ ya = new WeakMap(), at = new WeakMap(), ot = new WeakMap(), nc = new WeakMap(),
|
|
|
23692
23921
|
if (this.logger.info(`Connecting ${i} transport`, {
|
|
23693
23922
|
transport: { id: r, type: i }
|
|
23694
23923
|
}), !n(this, Fi).isConnected)
|
|
23695
|
-
throw new
|
|
23924
|
+
throw new hi("Socket is not connected");
|
|
23696
23925
|
if (e.connectionState === "closed")
|
|
23697
|
-
throw new
|
|
23926
|
+
throw new hi("Transport is closed");
|
|
23698
23927
|
try {
|
|
23699
23928
|
yield e.connect(
|
|
23700
23929
|
(a) => U(this, il, uv).call(this, i, a)
|
|
@@ -23702,7 +23931,7 @@ ya = new WeakMap(), at = new WeakMap(), ot = new WeakMap(), nc = new WeakMap(),
|
|
|
23702
23931
|
transport: { id: r, serverId: e.serverId, type: i }
|
|
23703
23932
|
});
|
|
23704
23933
|
} catch (a) {
|
|
23705
|
-
throw n(this, Pa).transportFailureCount[i] += 1, a.message === "ice connection failed" ? new
|
|
23934
|
+
throw n(this, Pa).transportFailureCount[i] += 1, a.message === "ice connection failed" ? new hi(a.message) : a;
|
|
23706
23935
|
}
|
|
23707
23936
|
});
|
|
23708
23937
|
}, tl = new WeakSet(), cv = function(e) {
|
|
@@ -24030,7 +24259,7 @@ class Gh {
|
|
|
24030
24259
|
});
|
|
24031
24260
|
}
|
|
24032
24261
|
}
|
|
24033
|
-
var Hi,
|
|
24262
|
+
var Hi, Gr, Ca, pc, Us, nl, ir, wa, gc, th, al, hv, ol, pv, cl, gv, dl, mv;
|
|
24034
24263
|
class eO extends XD {
|
|
24035
24264
|
constructor(e, r) {
|
|
24036
24265
|
super(e, r);
|
|
@@ -24040,7 +24269,7 @@ class eO extends XD {
|
|
|
24040
24269
|
m(this, cl);
|
|
24041
24270
|
m(this, dl);
|
|
24042
24271
|
m(this, Hi, void 0);
|
|
24043
|
-
m(this,
|
|
24272
|
+
m(this, Gr, void 0);
|
|
24044
24273
|
m(this, Ca, void 0);
|
|
24045
24274
|
m(this, pc, void 0);
|
|
24046
24275
|
m(this, Us, void 0);
|
|
@@ -24070,7 +24299,7 @@ class eO extends XD {
|
|
|
24070
24299
|
return n(this, Hi);
|
|
24071
24300
|
}
|
|
24072
24301
|
get consumers() {
|
|
24073
|
-
return n(this,
|
|
24302
|
+
return n(this, Gr);
|
|
24074
24303
|
}
|
|
24075
24304
|
get producerIdToConsumerIdMap() {
|
|
24076
24305
|
return n(this, Ca);
|
|
@@ -24083,7 +24312,7 @@ class eO extends XD {
|
|
|
24083
24312
|
return this.context.getValue("logger");
|
|
24084
24313
|
}
|
|
24085
24314
|
reset() {
|
|
24086
|
-
f(this, Hi, /* @__PURE__ */ new Map()), f(this,
|
|
24315
|
+
f(this, Hi, /* @__PURE__ */ new Map()), f(this, Gr, /* @__PURE__ */ new Map()), f(this, Ca, /* @__PURE__ */ new Map());
|
|
24087
24316
|
}
|
|
24088
24317
|
createProducer(e, r) {
|
|
24089
24318
|
return u(this, null, function* () {
|
|
@@ -24143,7 +24372,7 @@ class eO extends XD {
|
|
|
24143
24372
|
});
|
|
24144
24373
|
}
|
|
24145
24374
|
closeAllConsumers() {
|
|
24146
|
-
return this.closeConsumers(Array.from(n(this,
|
|
24375
|
+
return this.closeConsumers(Array.from(n(this, Gr).keys()));
|
|
24147
24376
|
}
|
|
24148
24377
|
switchConsumersToLayer(e, r) {
|
|
24149
24378
|
return u(this, null, function* () {
|
|
@@ -24151,7 +24380,7 @@ class eO extends XD {
|
|
|
24151
24380
|
});
|
|
24152
24381
|
}
|
|
24153
24382
|
}
|
|
24154
|
-
Hi = new WeakMap(),
|
|
24383
|
+
Hi = new WeakMap(), Gr = new WeakMap(), Ca = new WeakMap(), pc = new WeakMap(), Us = new WeakMap(), nl = new WeakMap(), ir = new WeakMap(), wa = new WeakMap(), gc = new WeakSet(), th = function() {
|
|
24155
24384
|
return u(this, null, function* () {
|
|
24156
24385
|
if (!this.recvTransport || this.recvTransport.closed)
|
|
24157
24386
|
throw new Error("Recv transport is closed");
|
|
@@ -24238,8 +24467,8 @@ Hi = new WeakMap(), Wr = new WeakMap(), Ca = new WeakMap(), pc = new WeakMap(),
|
|
|
24238
24467
|
kind: e.kind,
|
|
24239
24468
|
appData: e.appData
|
|
24240
24469
|
}
|
|
24241
|
-
}), n(this,
|
|
24242
|
-
})), n(this,
|
|
24470
|
+
}), n(this, Gr).delete(e.id), this.context.getValue("peerSessionStore").emit(k.CONSUMER_CLOSED, { id: e.id });
|
|
24471
|
+
})), n(this, Gr).set(e.id, e), this.producerIdToConsumerIdMap.set(e.producerId, e.id), this.context.getValue("peerSessionStore").emit(k.NEW_CONSUMER, {
|
|
24243
24472
|
id: e.id,
|
|
24244
24473
|
appData: e.appData,
|
|
24245
24474
|
peerId: e.peerId
|
|
@@ -24419,7 +24648,7 @@ class tO {
|
|
|
24419
24648
|
}
|
|
24420
24649
|
}
|
|
24421
24650
|
const sO = 60, rO = 400;
|
|
24422
|
-
var ar, or, ys, _c, Gi, Aa, cr,
|
|
24651
|
+
var ar, or, ys, _c, Gi, Aa, cr, Wr, Ma, dr, lr, $s, ml, yv, Cc, sh, fl, Ev, vl, Pv;
|
|
24423
24652
|
const Ro = class {
|
|
24424
24653
|
constructor(t, e) {
|
|
24425
24654
|
m(this, ml);
|
|
@@ -24431,7 +24660,7 @@ const Ro = class {
|
|
|
24431
24660
|
m(this, Gi, void 0);
|
|
24432
24661
|
m(this, Aa, void 0);
|
|
24433
24662
|
m(this, cr, void 0);
|
|
24434
|
-
m(this,
|
|
24663
|
+
m(this, Wr, void 0);
|
|
24435
24664
|
m(this, Ma, void 0);
|
|
24436
24665
|
m(this, dr, void 0);
|
|
24437
24666
|
m(this, lr, void 0);
|
|
@@ -24475,14 +24704,14 @@ const Ro = class {
|
|
|
24475
24704
|
}
|
|
24476
24705
|
};
|
|
24477
24706
|
let vo = Ro;
|
|
24478
|
-
ar = new WeakMap(), or = new WeakMap(), ys = new WeakMap(), _c = new WeakMap(), Gi = new WeakMap(), Aa = new WeakMap(), cr = new WeakMap(),
|
|
24707
|
+
ar = new WeakMap(), or = new WeakMap(), ys = new WeakMap(), _c = new WeakMap(), Gi = new WeakMap(), Aa = new WeakMap(), cr = new WeakMap(), Wr = new WeakMap(), Ma = new WeakMap(), dr = new WeakMap(), lr = new WeakMap(), $s = new WeakMap(), ml = new WeakSet(), yv = function() {
|
|
24479
24708
|
var o;
|
|
24480
24709
|
const { samples: t } = n(this, lr), { energy: e, isVoice: r } = n(this, Aa).processAudioChunk(t), i = U(o = Ro, vl, Pv).call(o, e);
|
|
24481
24710
|
return n(this, dr).getValue("flagsmith").hasFeature(ee.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug(
|
|
24482
24711
|
`AudioActivityReporter: producer: ${n(this, ys)}, energy: ${n(this, Gi)},
|
|
24483
24712
|
slogScale: ${i}, isVoice: ${r}, minEnergy: ${n(this, cr)},
|
|
24484
|
-
maxEnergy: ${n(this,
|
|
24485
|
-
), i === -1 / 0 || e < 1e-6 ? { energy: 0, isVoice: !1 } : ((!n(this, cr) || i < n(this, cr)) && f(this, cr, i), (!n(this,
|
|
24713
|
+
maxEnergy: ${n(this, Wr)}`
|
|
24714
|
+
), i === -1 / 0 || e < 1e-6 ? { energy: 0, isVoice: !1 } : ((!n(this, cr) || i < n(this, cr)) && f(this, cr, i), (!n(this, Wr) || i > n(this, Wr)) && f(this, Wr, i), { energy: (i - n(this, cr)) / (n(this, Wr) - n(this, cr)) * 10 || 0, isVoice: r });
|
|
24486
24715
|
}, Cc = new WeakSet(), sh = function(t) {
|
|
24487
24716
|
return t < 5;
|
|
24488
24717
|
}, fl = new WeakSet(), Ev = function(t = n(this, Gi)) {
|
|
@@ -24562,10 +24791,10 @@ var aO = Object.defineProperty, oO = Object.getOwnPropertyDescriptor, de = (s, t
|
|
|
24562
24791
|
return r && i && aO(t, e, i), i;
|
|
24563
24792
|
};
|
|
24564
24793
|
const Ot = ["video/VP9", "video/VP8"];
|
|
24565
|
-
var wc, Rc, ct, W, Da, St, Wi, Ji, Ki, bc, is, ur, kc, zi, Yi, Tt, bt,
|
|
24794
|
+
var wc, Rc, ct, W, Da, St, Wi, Ji, Ki, bc, is, ur, kc, zi, Yi, Tt, bt, Jr, Pn, Sl, Cv, Tl, wv, yl, Rv, Ic, rh, El, fu, bv, Pl, kv, _l, Iv, Cl, Av, Ze, pt, Qi, So, wl, Mv, Rl, Dv, bl, Ov;
|
|
24566
24795
|
const _v = (fu = class {
|
|
24567
24796
|
constructor(s, t) {
|
|
24568
|
-
m(this,
|
|
24797
|
+
m(this, Jr);
|
|
24569
24798
|
/**
|
|
24570
24799
|
* Wait for the transports to be established and notify join room completion
|
|
24571
24800
|
*/
|
|
@@ -24628,7 +24857,7 @@ const _v = (fu = class {
|
|
|
24628
24857
|
n(this, W).socketHandler.audioActivity.bind(n(this, W).socketHandler)
|
|
24629
24858
|
)), this.e2ee = (i = (r = s.getValue("modules").e2ee) == null ? void 0 : r.enabled) != null ? i : !1, this.handleSocketEvents(), this.handleCallstatsEvents(), f(this, bc, Ih(
|
|
24630
24859
|
() => u(this, null, function* () {
|
|
24631
|
-
if (!n(this,
|
|
24860
|
+
if (!n(this, Jr, Pn).mediaJoinAttempted)
|
|
24632
24861
|
return;
|
|
24633
24862
|
const { roomJoined: a } = yield this.joinRoom(
|
|
24634
24863
|
n(this, Rc),
|
|
@@ -24660,17 +24889,17 @@ const _v = (fu = class {
|
|
|
24660
24889
|
return this.context.getValue("logger");
|
|
24661
24890
|
}
|
|
24662
24891
|
get mediaJoined() {
|
|
24663
|
-
return n(this,
|
|
24892
|
+
return n(this, Jr, Pn).mediaJoined;
|
|
24664
24893
|
}
|
|
24665
24894
|
set mediaJoined(s) {
|
|
24666
|
-
n(this,
|
|
24895
|
+
n(this, Jr, Pn).mediaJoined = s;
|
|
24667
24896
|
}
|
|
24668
24897
|
reset() {
|
|
24669
24898
|
n(this, W).closeAllProducers(), n(this, W).closeAllConsumers(), n(this, Tt).clear(), n(this, ur).clear(), f(this, is, null), n(this, Ki).stop(), n(this, W).stopAllTransports(), n(this, W).reset(), f(this, Ki, new Ku());
|
|
24670
24899
|
}
|
|
24671
24900
|
joinRoom(a, o) {
|
|
24672
24901
|
return u(this, arguments, function* (s, t, e = !1, r = !1, i = {}) {
|
|
24673
|
-
n(this,
|
|
24902
|
+
n(this, Jr, Pn).mediaJoinAttempted = !0, f(this, Wi, !0), e && this.reset();
|
|
24674
24903
|
try {
|
|
24675
24904
|
return yield n(this, Ki).push(
|
|
24676
24905
|
() => U(this, Sl, Cv).call(this, s, t, r, i),
|
|
@@ -24705,7 +24934,7 @@ const _v = (fu = class {
|
|
|
24705
24934
|
}
|
|
24706
24935
|
leaveRoom() {
|
|
24707
24936
|
return u(this, null, function* () {
|
|
24708
|
-
n(this, W).stopAllTransports(), f(this, Ji, !1), n(this,
|
|
24937
|
+
n(this, W).stopAllTransports(), f(this, Ji, !1), n(this, Jr, Pn).mediaJoinAttempted = !1;
|
|
24709
24938
|
const s = {
|
|
24710
24939
|
closeRoom: !1
|
|
24711
24940
|
};
|
|
@@ -25268,7 +25497,7 @@ const _v = (fu = class {
|
|
|
25268
25497
|
t.delete(s), !(t.size !== 0 || e === Ot[0]) && this.disableWebcam(e);
|
|
25269
25498
|
}));
|
|
25270
25499
|
}
|
|
25271
|
-
}, wc = new WeakMap(), Rc = new WeakMap(), ct = new WeakMap(), W = new WeakMap(), Da = new WeakMap(), St = new WeakMap(), Wi = new WeakMap(), Ji = new WeakMap(), Ki = new WeakMap(), bc = new WeakMap(), is = new WeakMap(), ur = new WeakMap(), kc = new WeakMap(), zi = new WeakMap(), Yi = new WeakMap(), Tt = new WeakMap(), bt = new WeakMap(),
|
|
25500
|
+
}, wc = new WeakMap(), Rc = new WeakMap(), ct = new WeakMap(), W = new WeakMap(), Da = new WeakMap(), St = new WeakMap(), Wi = new WeakMap(), Ji = new WeakMap(), Ki = new WeakMap(), bc = new WeakMap(), is = new WeakMap(), ur = new WeakMap(), kc = new WeakMap(), zi = new WeakMap(), Yi = new WeakMap(), Tt = new WeakMap(), bt = new WeakMap(), Jr = new WeakSet(), Pn = function() {
|
|
25272
25501
|
return this.context.getValue("connectionHandler");
|
|
25273
25502
|
}, Sl = new WeakSet(), Cv = function(s, t, e, r) {
|
|
25274
25503
|
return u(this, null, function* () {
|
|
@@ -25818,28 +26047,28 @@ const Lv = (Gg = class {
|
|
|
25818
26047
|
}, Xi = new WeakMap(), Es = new WeakMap(), te = new WeakMap(), yt = new WeakSet(), Vt = function() {
|
|
25819
26048
|
return n(this, te).getValue("roomNodeClient");
|
|
25820
26049
|
}, Gg);
|
|
25821
|
-
let
|
|
26050
|
+
let si = Lv;
|
|
25822
26051
|
vn([
|
|
25823
26052
|
E.trace("SelfController.resetSelf")
|
|
25824
|
-
],
|
|
26053
|
+
], si.prototype, "resetSelf", 1);
|
|
25825
26054
|
vn([
|
|
25826
26055
|
E.trace("SelfController.setupEvents")
|
|
25827
|
-
],
|
|
26056
|
+
], si.prototype, "setupEvents", 1);
|
|
25828
26057
|
vn([
|
|
25829
26058
|
E.trace("SelfController.joinRoom")
|
|
25830
|
-
],
|
|
26059
|
+
], si.prototype, "joinRoom", 1);
|
|
25831
26060
|
vn([
|
|
25832
26061
|
E.trace("SelfController.leaveRoom")
|
|
25833
|
-
],
|
|
26062
|
+
], si.prototype, "leaveRoom", 1);
|
|
25834
26063
|
vn([
|
|
25835
26064
|
E.trace("SelfController.joinMediaRoom")
|
|
25836
|
-
],
|
|
26065
|
+
], si.prototype, "joinMediaRoom", 1);
|
|
25837
26066
|
vn([
|
|
25838
26067
|
E.trace("SelfController.leaveMediaRoom")
|
|
25839
|
-
],
|
|
26068
|
+
], si.prototype, "leaveMediaRoom", 1);
|
|
25840
26069
|
vn([
|
|
25841
26070
|
E.trace("SelfController.init")
|
|
25842
|
-
],
|
|
26071
|
+
], si, "init", 1);
|
|
25843
26072
|
var Ac;
|
|
25844
26073
|
class lO {
|
|
25845
26074
|
constructor(t) {
|
|
@@ -27022,34 +27251,34 @@ const wr = {
|
|
|
27022
27251
|
warn: 2,
|
|
27023
27252
|
error: 3
|
|
27024
27253
|
};
|
|
27025
|
-
var
|
|
27254
|
+
var ci, di;
|
|
27026
27255
|
class DO {
|
|
27027
27256
|
constructor(t) {
|
|
27028
|
-
ve(this,
|
|
27257
|
+
ve(this, ci, void 0), ve(this, di, void 0), ne(this, ci, console), ne(this, di, t);
|
|
27029
27258
|
}
|
|
27030
27259
|
debug(...t) {
|
|
27031
|
-
wr[M(this,
|
|
27260
|
+
wr[M(this, di)] > wr.debug || M(this, ci).debug("[Sockrates]:", ...t);
|
|
27032
27261
|
}
|
|
27033
27262
|
info(...t) {
|
|
27034
|
-
wr[M(this,
|
|
27263
|
+
wr[M(this, di)] > wr.info || M(this, ci).info("[Sockrates]:", ...t);
|
|
27035
27264
|
}
|
|
27036
27265
|
warn(...t) {
|
|
27037
|
-
wr[M(this,
|
|
27266
|
+
wr[M(this, di)] > wr.warn || M(this, ci).warn("[Sockrates]:", ...t);
|
|
27038
27267
|
}
|
|
27039
27268
|
error(...t) {
|
|
27040
|
-
wr[M(this,
|
|
27269
|
+
wr[M(this, di)] > wr.error || M(this, ci).error("[Sockrates]:", ...t);
|
|
27041
27270
|
}
|
|
27042
27271
|
}
|
|
27043
|
-
|
|
27272
|
+
ci = /* @__PURE__ */ new WeakMap(), di = /* @__PURE__ */ new WeakMap();
|
|
27044
27273
|
var Jv = /* @__PURE__ */ ((s) => (s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s))(Jv || {});
|
|
27045
27274
|
const OO = "2", NO = "3";
|
|
27046
|
-
var Ae, _n, Pe, Le, Ir, Ke, gr,
|
|
27275
|
+
var Ae, _n, Pe, Le, Ir, Ke, gr, Qr, _s, Cn, Gs, ih, Kv, To, Sd, nh, zv, ah, wg, Od, oh, ch, Yv, Po, Td, _o, Nd, Vd, dh, Nn, Co, wo, Ld;
|
|
27047
27276
|
class VO {
|
|
27048
27277
|
constructor(t, e) {
|
|
27049
27278
|
var v, S, P, _, C, w, L, F, N, B;
|
|
27050
|
-
ve(this, ih), ve(this, To), ve(this, nh), ve(this, ah), ve(this, Od), ve(this, ch), ve(this, Po), ve(this, _o), ve(this, Vd), ve(this, Nn), ve(this, wo), ve(this, Ae, void 0), ve(this, _n, void 0), ve(this, Pe, void 0), ve(this, Le, void 0), ve(this, Ir, void 0), ve(this, Ke, void 0), ve(this, gr, void 0), ve(this,
|
|
27279
|
+
ve(this, ih), ve(this, To), ve(this, nh), ve(this, ah), ve(this, Od), ve(this, ch), ve(this, Po), ve(this, _o), ve(this, Vd), ve(this, Nn), ve(this, wo), ve(this, Ae, void 0), ve(this, _n, void 0), ve(this, Pe, void 0), ve(this, Le, void 0), ve(this, Ir, void 0), ve(this, Ke, void 0), ve(this, gr, void 0), ve(this, Qr, void 0), ve(this, _s, void 0), ve(this, Cn, void 0), ve(this, Gs, void 0);
|
|
27051
27280
|
var r, i, a, o, c, d, l, p, g;
|
|
27052
|
-
ne(this, _n, t), ne(this, Ir, []), ne(this, Ke, new Dd()), ne(this, gr, !0), ne(this, _s, !1), ne(this, Pe, e != null ? e : {}), (v = (r = M(this, Pe)).autoReconnect) != null || (r.autoReconnect = !0), (S = (i = M(this, Pe)).retryConnectionInterval) != null || (i.retryConnectionInterval = 1e3), (P = (a = M(this, Pe)).pingTimeout) != null || (a.pingTimeout = 3e4), (_ = (o = M(this, Pe)).connectionTimeout) != null || (o.connectionTimeout = 5e3), (C = (c = M(this, Pe)).debug) != null || (c.debug = !0), (w = (d = M(this, Pe)).maxReconnectionAttempts) != null || (d.maxReconnectionAttempts = 10), (L = (l = M(this, Pe)).disconnectOnPingTimeout) != null || (l.disconnectOnPingTimeout = !0), (F = (p = M(this, Pe)).queueOnDisconnect) != null || (p.queueOnDisconnect = !1), (N = (g = M(this, Pe)).flushOnReconnect) != null || (g.flushOnReconnect = !1), ne(this,
|
|
27281
|
+
ne(this, _n, t), ne(this, Ir, []), ne(this, Ke, new Dd()), ne(this, gr, !0), ne(this, _s, !1), ne(this, Pe, e != null ? e : {}), (v = (r = M(this, Pe)).autoReconnect) != null || (r.autoReconnect = !0), (S = (i = M(this, Pe)).retryConnectionInterval) != null || (i.retryConnectionInterval = 1e3), (P = (a = M(this, Pe)).pingTimeout) != null || (a.pingTimeout = 3e4), (_ = (o = M(this, Pe)).connectionTimeout) != null || (o.connectionTimeout = 5e3), (C = (c = M(this, Pe)).debug) != null || (c.debug = !0), (w = (d = M(this, Pe)).maxReconnectionAttempts) != null || (d.maxReconnectionAttempts = 10), (L = (l = M(this, Pe)).disconnectOnPingTimeout) != null || (l.disconnectOnPingTimeout = !0), (F = (p = M(this, Pe)).queueOnDisconnect) != null || (p.queueOnDisconnect = !1), (N = (g = M(this, Pe)).flushOnReconnect) != null || (g.flushOnReconnect = !1), ne(this, Qr, {
|
|
27053
27282
|
code: void 0,
|
|
27054
27283
|
reason: void 0
|
|
27055
27284
|
}), ne(this, Le, (B = M(this, Pe).logger) != null ? B : new DO(M(this, Pe).debug ? "debug" : "info")), ne(this, Gs, new MO());
|
|
@@ -27120,7 +27349,7 @@ class VO {
|
|
|
27120
27349
|
), _e(this, Po, Td).call(this)), r(new Error("Connection timed out!"));
|
|
27121
27350
|
}, M(this, Pe).connectionTimeout);
|
|
27122
27351
|
M(this, Ae).onopen = () => {
|
|
27123
|
-
M(this, Le).debug(`Ready State: ${Jv[M(this, Ae).readyState]}`), i && clearTimeout(i), _e(this, Vd, dh).call(this), ne(this,
|
|
27352
|
+
M(this, Le).debug(`Ready State: ${Jv[M(this, Ae).readyState]}`), i && clearTimeout(i), _e(this, Vd, dh).call(this), ne(this, Qr, {
|
|
27124
27353
|
code: void 0,
|
|
27125
27354
|
reason: void 0
|
|
27126
27355
|
}), M(this, Ke).emit(
|
|
@@ -27219,13 +27448,13 @@ class VO {
|
|
|
27219
27448
|
* Disconnect the socket.
|
|
27220
27449
|
*/
|
|
27221
27450
|
disconnect() {
|
|
27222
|
-
ne(this, gr, !1), _e(this, Nn, Co).call(this), this.removeAllListeners(), ne(this,
|
|
27451
|
+
ne(this, gr, !1), _e(this, Nn, Co).call(this), this.removeAllListeners(), ne(this, Qr, {
|
|
27223
27452
|
code: 1e3,
|
|
27224
27453
|
reason: "Sockrates disconnect method called"
|
|
27225
27454
|
}), M(this, Ae).close(1e3, "Sockrates disconnect method called.");
|
|
27226
27455
|
}
|
|
27227
27456
|
}
|
|
27228
|
-
Ae = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(),
|
|
27457
|
+
Ae = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakMap(), ih = /* @__PURE__ */ new WeakSet(), Kv = function(s) {
|
|
27229
27458
|
if (s.startsWith("ws://") || s.startsWith("wss://"))
|
|
27230
27459
|
return s;
|
|
27231
27460
|
if (s.startsWith("https://"))
|
|
@@ -27245,9 +27474,9 @@ Ae = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), Pe = /*
|
|
|
27245
27474
|
}, ah = /* @__PURE__ */ new WeakSet(), wg = function() {
|
|
27246
27475
|
return M(this, Ae).readyState === 1;
|
|
27247
27476
|
}, Od = /* @__PURE__ */ new WeakSet(), oh = function(s, t) {
|
|
27248
|
-
ne(this,
|
|
27477
|
+
ne(this, Qr, { reason: t, code: s }), M(this, Ke).emit("disconnected", { code: s, reason: t });
|
|
27249
27478
|
}, ch = /* @__PURE__ */ new WeakSet(), Yv = function() {
|
|
27250
|
-
const { reason: s, code: t } = M(this,
|
|
27479
|
+
const { reason: s, code: t } = M(this, Qr);
|
|
27251
27480
|
t && t !== 1e3 && M(this, gr) && M(this, Pe).autoReconnect && !M(this, _s) && (M(this, Le).debug(`Triggering reconnection due to ${s}.`), M(this, Ke).emit(
|
|
27252
27481
|
"reconnecting"
|
|
27253
27482
|
/* reconnecting */
|
|
@@ -27271,7 +27500,7 @@ Ae = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), Pe = /*
|
|
|
27271
27500
|
return;
|
|
27272
27501
|
if (M(this, Le).debug(`Reconnection attempt ${M(this, Gs).getAttempts()}`), M(this, Ke).emit("reconnectAttempt", { attempt: M(this, Gs).getAttempts() }), yield this.connect(), !_e(this, ah, wg).call(this))
|
|
27273
27502
|
throw Error("Reconnect Failed");
|
|
27274
|
-
ne(this, _s, !1), ne(this,
|
|
27503
|
+
ne(this, _s, !1), ne(this, Qr, {
|
|
27275
27504
|
code: void 0,
|
|
27276
27505
|
reason: void 0
|
|
27277
27506
|
}), M(this, Ke).emit(
|
|
@@ -27306,7 +27535,7 @@ var LO = Object.defineProperty, xO = Object.getOwnPropertyDescriptor, zl = (s, t
|
|
|
27306
27535
|
return r && i && LO(t, e, i), i;
|
|
27307
27536
|
};
|
|
27308
27537
|
const Rg = 65535, UO = 3e3;
|
|
27309
|
-
var
|
|
27538
|
+
var Kr, Ce, we, Me, ns, et, Nc, lh, Vc, uh, Wg;
|
|
27310
27539
|
const Qv = (Wg = class {
|
|
27311
27540
|
constructor(s, {
|
|
27312
27541
|
peerId: t,
|
|
@@ -27317,7 +27546,7 @@ const Qv = (Wg = class {
|
|
|
27317
27546
|
m(this, we);
|
|
27318
27547
|
m(this, Nc);
|
|
27319
27548
|
m(this, Vc);
|
|
27320
|
-
m(this,
|
|
27549
|
+
m(this, Kr, void 0);
|
|
27321
27550
|
m(this, Ce, void 0);
|
|
27322
27551
|
h(this, "roomName");
|
|
27323
27552
|
h(this, "authToken");
|
|
@@ -27327,7 +27556,7 @@ const Qv = (Wg = class {
|
|
|
27327
27556
|
var a;
|
|
27328
27557
|
if (!t || !e || !r)
|
|
27329
27558
|
throw new b("peerId, meetingId, or authToken can not be empty", "0404");
|
|
27330
|
-
f(this, ns, void 0), f(this, et, s), this.capabilities = i, this.roomName = e, this.authToken = r, f(this,
|
|
27559
|
+
f(this, ns, void 0), f(this, et, s), this.capabilities = i, this.roomName = e, this.authToken = r, f(this, Kr, U(this, Nc, lh).call(this, t)), f(this, Ce, new VO(n(this, Kr), {
|
|
27331
27560
|
autoReconnect: !0,
|
|
27332
27561
|
disconnectOnPingTimeout: (a = i.includes("PING")) != null ? a : !1,
|
|
27333
27562
|
queueOnDisconnect: !0,
|
|
@@ -27359,13 +27588,13 @@ const Qv = (Wg = class {
|
|
|
27359
27588
|
return n(this, et).getValue("peerId");
|
|
27360
27589
|
}
|
|
27361
27590
|
updateURL(s) {
|
|
27362
|
-
s !== this.peerId && (f(this,
|
|
27591
|
+
s !== this.peerId && (f(this, Kr, U(this, Nc, lh).call(this, s)), this.logger.debug("SocketService:: Connection URL updated.")), n(this, Ce).updateURL(n(this, Kr));
|
|
27363
27592
|
}
|
|
27364
27593
|
static getSocketEdgeDomain(s) {
|
|
27365
27594
|
return rn({ servicePrefix: "socket-edge", baseURI: s });
|
|
27366
27595
|
}
|
|
27367
27596
|
get url() {
|
|
27368
|
-
return n(this,
|
|
27597
|
+
return n(this, Kr);
|
|
27369
27598
|
}
|
|
27370
27599
|
connect() {
|
|
27371
27600
|
return u(this, null, function* () {
|
|
@@ -27521,7 +27750,7 @@ const Qv = (Wg = class {
|
|
|
27521
27750
|
this.logger.info("SocketService::Failed to connect to socket-edge", { country: E.location.country }), n(this, et).getValue("peerSessionStore").emit(k.SOCKET_SERVICE_FAILED), n(this, we, Me).updateSocketConnectionState("failed");
|
|
27522
27751
|
}));
|
|
27523
27752
|
}
|
|
27524
|
-
},
|
|
27753
|
+
}, Kr = new WeakMap(), Ce = new WeakMap(), we = new WeakSet(), Me = function() {
|
|
27525
27754
|
return n(this, et).getValue("connectionHandler");
|
|
27526
27755
|
}, ns = new WeakMap(), et = new WeakMap(), Nc = new WeakSet(), lh = function(s) {
|
|
27527
27756
|
let t = Qv.getSocketEdgeDomain(n(this, et).getValue("baseURI"));
|
|
@@ -27666,6 +27895,9 @@ var FO = Object.defineProperty, BO = Object.getOwnPropertyDescriptor, HO = (s, t
|
|
|
27666
27895
|
return r && i && FO(t, e, i), i;
|
|
27667
27896
|
}, Ps;
|
|
27668
27897
|
class Xv extends jt {
|
|
27898
|
+
/**
|
|
27899
|
+
* @param {Context} context
|
|
27900
|
+
*/
|
|
27669
27901
|
constructor(e) {
|
|
27670
27902
|
const r = e.getValue("logger");
|
|
27671
27903
|
super(r);
|
|
@@ -27694,6 +27926,7 @@ class Xv extends jt {
|
|
|
27694
27926
|
}
|
|
27695
27927
|
/**
|
|
27696
27928
|
* create connected meetings
|
|
27929
|
+
* @param {Array.<{ title: string }>} request
|
|
27697
27930
|
*/
|
|
27698
27931
|
createMeetings(e) {
|
|
27699
27932
|
return u(this, null, function* () {
|
|
@@ -27709,6 +27942,7 @@ class Xv extends jt {
|
|
|
27709
27942
|
}
|
|
27710
27943
|
/**
|
|
27711
27944
|
* update meeting title
|
|
27945
|
+
* @param {Array.<{ id: string, title: string }>} request
|
|
27712
27946
|
*/
|
|
27713
27947
|
updateMeetings(e) {
|
|
27714
27948
|
return u(this, null, function* () {
|
|
@@ -27719,6 +27953,7 @@ class Xv extends jt {
|
|
|
27719
27953
|
}
|
|
27720
27954
|
/**
|
|
27721
27955
|
* delete connected meetings
|
|
27956
|
+
* @param {string[]} meetingIds
|
|
27722
27957
|
*/
|
|
27723
27958
|
deleteMeetings(e) {
|
|
27724
27959
|
return u(this, null, function* () {
|
|
@@ -27759,6 +27994,9 @@ class Xv extends jt {
|
|
|
27759
27994
|
}
|
|
27760
27995
|
/**
|
|
27761
27996
|
* Trigger event to move participants with custom preset
|
|
27997
|
+
* @param {string} sourceMeetingId - id of source meeting
|
|
27998
|
+
* @param {string} destinationMeetingId - id of destination meeting
|
|
27999
|
+
* @param {Array.<{ id: string, presetId: string }>} participants
|
|
27762
28000
|
*/
|
|
27763
28001
|
moveParticipantsWithCustomPreset(e, r, i) {
|
|
27764
28002
|
return u(this, null, function* () {
|
|
@@ -28126,7 +28364,7 @@ const wn = class {
|
|
|
28126
28364
|
s
|
|
28127
28365
|
);
|
|
28128
28366
|
t.setValue("connectedMeetingsSocketHandler", re);
|
|
28129
|
-
const tt = new Jl(t, s), ds = new os(t, s),
|
|
28367
|
+
const tt = new Jl(t, s), ds = new os(t, s), ri = new vO(s), ls = new xv(t, s), A = new SO(t, s), y = new lO(s), R = new dn(t, s), x = yield si.init(
|
|
28130
28368
|
t,
|
|
28131
28369
|
ls,
|
|
28132
28370
|
d,
|
|
@@ -28166,7 +28404,7 @@ const wn = class {
|
|
|
28166
28404
|
ls
|
|
28167
28405
|
)), c.stage && (_ = new $f(
|
|
28168
28406
|
t,
|
|
28169
|
-
|
|
28407
|
+
ri,
|
|
28170
28408
|
ls,
|
|
28171
28409
|
x.self,
|
|
28172
28410
|
N.participants
|
|
@@ -28293,7 +28531,7 @@ function KO(s, t) {
|
|
|
28293
28531
|
const { meetingId: e, orgId: r, participantId: i } = JSON.parse(atob(s.split(".")[1]));
|
|
28294
28532
|
if (!e)
|
|
28295
28533
|
throw Error(`Received V1 auth token ${s}`);
|
|
28296
|
-
let a =
|
|
28534
|
+
let a = pi.baseURI.prod;
|
|
28297
28535
|
t && (a = t);
|
|
28298
28536
|
const o = `https://${rn({ servicePrefix: "api", baseURI: a })}`;
|
|
28299
28537
|
return {
|
|
@@ -28307,15 +28545,15 @@ function KO(s, t) {
|
|
|
28307
28545
|
throw new b("Invalid auth token", "0004");
|
|
28308
28546
|
}
|
|
28309
28547
|
}
|
|
28310
|
-
var
|
|
28548
|
+
var zr, Zi, en, Lc, kl, eS;
|
|
28311
28549
|
class zO {
|
|
28312
28550
|
constructor() {
|
|
28313
28551
|
m(this, kl);
|
|
28314
|
-
m(this,
|
|
28552
|
+
m(this, zr, new Audio());
|
|
28315
28553
|
m(this, Zi, new MediaStream());
|
|
28316
28554
|
m(this, en, /* @__PURE__ */ new Map());
|
|
28317
28555
|
m(this, Lc, void 0);
|
|
28318
|
-
n(this,
|
|
28556
|
+
n(this, zr).srcObject = n(this, Zi), n(this, zr).autoplay = !0;
|
|
28319
28557
|
}
|
|
28320
28558
|
playTracks(t) {
|
|
28321
28559
|
return u(this, null, function* () {
|
|
@@ -28325,7 +28563,7 @@ class zO {
|
|
|
28325
28563
|
});
|
|
28326
28564
|
}
|
|
28327
28565
|
setSpeakerDevice(t) {
|
|
28328
|
-
typeof HTMLAudioElement.prototype.setSinkId == "function" && n(this,
|
|
28566
|
+
typeof HTMLAudioElement.prototype.setSinkId == "function" && n(this, zr).setSinkId(t);
|
|
28329
28567
|
}
|
|
28330
28568
|
removeTrack(t) {
|
|
28331
28569
|
const e = n(this, en).get(t);
|
|
@@ -28333,7 +28571,7 @@ class zO {
|
|
|
28333
28571
|
}
|
|
28334
28572
|
play() {
|
|
28335
28573
|
return u(this, null, function* () {
|
|
28336
|
-
return n(this,
|
|
28574
|
+
return n(this, zr).srcObject = n(this, Zi), n(this, zr).play().catch((t) => {
|
|
28337
28575
|
U(this, kl, eS).call(this, t);
|
|
28338
28576
|
});
|
|
28339
28577
|
});
|
|
@@ -28342,7 +28580,7 @@ class zO {
|
|
|
28342
28580
|
f(this, Lc, t);
|
|
28343
28581
|
}
|
|
28344
28582
|
}
|
|
28345
|
-
|
|
28583
|
+
zr = new WeakMap(), Zi = new WeakMap(), en = new WeakMap(), Lc = new WeakMap(), kl = new WeakSet(), eS = function(t) {
|
|
28346
28584
|
var e;
|
|
28347
28585
|
(e = n(this, Lc)) == null || e.call(this, t);
|
|
28348
28586
|
};
|
|
@@ -28368,7 +28606,11 @@ var QO = Object.defineProperty, XO = Object.getOwnPropertyDescriptor, Xl = (s, t
|
|
|
28368
28606
|
(o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
28369
28607
|
return r && i && QO(t, e, i), i;
|
|
28370
28608
|
}, Ge, sn, Kg;
|
|
28371
|
-
let
|
|
28609
|
+
let ei = (Kg = class {
|
|
28610
|
+
/**
|
|
28611
|
+
* @param {IContext} context
|
|
28612
|
+
* @param {Controller} controller
|
|
28613
|
+
*/
|
|
28372
28614
|
constructor(t, e) {
|
|
28373
28615
|
m(this, Ge, void 0);
|
|
28374
28616
|
m(this, sn, void 0);
|
|
@@ -28377,6 +28619,14 @@ let ti = (Kg = class {
|
|
|
28377
28619
|
get peerId() {
|
|
28378
28620
|
return n(this, sn).getValue("peerId");
|
|
28379
28621
|
}
|
|
28622
|
+
/**
|
|
28623
|
+
* @param {Object} [options]
|
|
28624
|
+
* @param {boolean} [options.video]
|
|
28625
|
+
* @param {boolean} [options.audio]
|
|
28626
|
+
* @param {MediaConstraints} [options.constraints]
|
|
28627
|
+
* @param {boolean} [skipAwaits=false]
|
|
28628
|
+
* @param {CachedUserDetails} [cachedUserDetails]
|
|
28629
|
+
*/
|
|
28380
28630
|
static initMedia() {
|
|
28381
28631
|
return u(this, arguments, function* (t = {}, e = !1, r = void 0) {
|
|
28382
28632
|
var d;
|
|
@@ -28394,7 +28644,7 @@ let ti = (Kg = class {
|
|
|
28394
28644
|
ye.init();
|
|
28395
28645
|
const { mediaHandler: e } = (S = t.defaults) != null ? S : {}, r = (e == null ? void 0 : e.peerId) || ((_ = (P = t == null ? void 0 : t.cachedUserDetails) == null ? void 0 : P.peerId) != null ? _ : on()), { authToken: i, baseURI: a } = t, C = KO(i, a), { meetingId: o } = C, c = io(C, ["meetingId"]);
|
|
28396
28646
|
window.__zone_symbol__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION = !0;
|
|
28397
|
-
const d =
|
|
28647
|
+
const d = ei.setupContext(
|
|
28398
28648
|
r,
|
|
28399
28649
|
t,
|
|
28400
28650
|
o,
|
|
@@ -28411,10 +28661,16 @@ let ti = (Kg = class {
|
|
|
28411
28661
|
${(N = t.authToken) == null ? void 0 : N.slice(-10)}`
|
|
28412
28662
|
})
|
|
28413
28663
|
});
|
|
28414
|
-
const g = yield Jc.init(d), v = new
|
|
28664
|
+
const g = yield Jc.init(d), v = new ei(d, g);
|
|
28415
28665
|
return d.setValue("meeting", v), v;
|
|
28416
28666
|
});
|
|
28417
28667
|
}
|
|
28668
|
+
/**
|
|
28669
|
+
* @param {string} peerId
|
|
28670
|
+
* @param {ClientOptions} options
|
|
28671
|
+
* @param {string} meetingId
|
|
28672
|
+
* @param {any} args
|
|
28673
|
+
*/
|
|
28418
28674
|
static setupContext(t, e, r, i) {
|
|
28419
28675
|
var d, l;
|
|
28420
28676
|
const a = mr.createContext(t, e), o = D(D({}, dw), e == null ? void 0 : e.modules), c = e.defaults || {
|
|
@@ -28422,7 +28678,7 @@ let ti = (Kg = class {
|
|
|
28422
28678
|
video: !0
|
|
28423
28679
|
};
|
|
28424
28680
|
return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", lw({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
|
|
28425
|
-
})), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.
|
|
28681
|
+
})), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.4-staging.2"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
|
|
28426
28682
|
}
|
|
28427
28683
|
join() {
|
|
28428
28684
|
return u(this, null, function* () {
|
|
@@ -28430,6 +28686,9 @@ let ti = (Kg = class {
|
|
|
28430
28686
|
return t.self.roomJoined ? null : t.joinRoom();
|
|
28431
28687
|
});
|
|
28432
28688
|
}
|
|
28689
|
+
/**
|
|
28690
|
+
* @param {LeaveRoomState} [state]
|
|
28691
|
+
*/
|
|
28433
28692
|
leave(t) {
|
|
28434
28693
|
return u(this, null, function* () {
|
|
28435
28694
|
bg.cleanup(), n(this, sn).getValue("peerSessionStore").reset();
|
|
@@ -28542,7 +28801,10 @@ let ti = (Kg = class {
|
|
|
28542
28801
|
return this.join();
|
|
28543
28802
|
});
|
|
28544
28803
|
}
|
|
28545
|
-
/**
|
|
28804
|
+
/**
|
|
28805
|
+
* @deprecated Use `leave()` instead
|
|
28806
|
+
* @param {LeaveRoomState} [state]
|
|
28807
|
+
*/
|
|
28546
28808
|
leaveRoom(t) {
|
|
28547
28809
|
return u(this, null, function* () {
|
|
28548
28810
|
return this.leave(t);
|
|
@@ -28556,10 +28818,10 @@ Xl([
|
|
|
28556
28818
|
lockName: "Client.join",
|
|
28557
28819
|
timeout: 3e3
|
|
28558
28820
|
})
|
|
28559
|
-
],
|
|
28821
|
+
], ei.prototype, "join", 1);
|
|
28560
28822
|
Xl([
|
|
28561
28823
|
ut("0003")
|
|
28562
|
-
],
|
|
28824
|
+
], ei.prototype, "leave", 1);
|
|
28563
28825
|
Xl([
|
|
28564
28826
|
ut("0001"),
|
|
28565
28827
|
Pr.executeWithLock({
|
|
@@ -28567,11 +28829,11 @@ Xl([
|
|
|
28567
28829
|
lockName: "Client.init",
|
|
28568
28830
|
timeout: 3e3
|
|
28569
28831
|
})
|
|
28570
|
-
],
|
|
28571
|
-
|
|
28832
|
+
], ei, "init", 1);
|
|
28833
|
+
ei = Xl([
|
|
28572
28834
|
ut("0000")
|
|
28573
|
-
],
|
|
28574
|
-
const ZO =
|
|
28835
|
+
], ei);
|
|
28836
|
+
const ZO = ei;
|
|
28575
28837
|
export {
|
|
28576
28838
|
ZO as default
|
|
28577
28839
|
};
|