@cloudflare/realtimekit 1.4.0-staging.4 → 1.4.0

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/index.es5.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { v4 as Bs, validate as mv } from "uuid";
2
2
  import yv from "bowser";
3
- import { MessageType as O, PbLong as Lo, typeofJsonValue as rm } from "@protobuf-ts/runtime";
3
+ import { MessageType as _, PbLong as Lo, typeofJsonValue as rm } from "@protobuf-ts/runtime";
4
4
  import * as kc from "worker-timers";
5
5
  import * as Rn from "sdp-transform";
6
6
  var Vg = ["chat", "connectedMeetings", "plugins", "polls", "media"], Ug = ["id"], jg = ["meetingId"], ee, jn, He, mi, Ac, xs, Fn, Ic, ic, Ka, za, mo, an, Ya, Hn, yi, eo, Bn, ro, to, sn, Qa, Ir, Qe, Mr, Xa, Za, St, xa, on, ei, Hr, ri, xr, ki, ti, ni, ai, Br, Ee, ii, si, Dr, qn, vn, Gn, sc, Et, no, cn, Wn, Ct, oc, ao, uc, cc, me, io, Jn, oi, Kn, Tr, qr, et, ui, ci, sr, li, $e, Rt, Ne, di, Ce, bi, Ti, so, up, zn, rt, X, or, un, ke, be, Gr, Be, oo, uo, he, Ve, Yn;
@@ -244,7 +244,7 @@ function h() {
244
244
  for (ie.method = br, ie.arg = z; ; ) {
245
245
  var nn = ie.delegate;
246
246
  if (nn) {
247
- var Fe = _(nn, ie);
247
+ var Fe = I(nn, ie);
248
248
  if (Fe) {
249
249
  if (Fe === p)
250
250
  continue;
@@ -327,17 +327,17 @@ function h() {
327
327
  return Y = Y ? Y.then(Z, Z) : Z();
328
328
  }, !0);
329
329
  }
330
- function _(N, D) {
330
+ function I(N, D) {
331
331
  var F = D.method, Y = N.i[F];
332
332
  if (Y === o)
333
- return D.delegate = null, F === "throw" && N.i.return && (D.method = "return", D.arg = o, _(N, D), D.method === "throw") || F !== "return" && (D.method = "throw", D.arg = new TypeError("The iterator does not provide a '" + F + "' method")), p;
333
+ return D.delegate = null, F === "throw" && N.i.return && (D.method = "return", D.arg = o, I(N, D), D.method === "throw") || F !== "return" && (D.method = "throw", D.arg = new TypeError("The iterator does not provide a '" + F + "' method")), p;
334
334
  var B = d(Y, N.i, D.arg);
335
335
  if (B.type === "throw")
336
336
  return D.method = "throw", D.arg = B.arg, D.delegate = null, p;
337
337
  var H = B.arg;
338
338
  return H ? H.done ? (D[N.r] = H.value, D.next = N.n, D.method !== "return" && (D.method = "next", D.arg = o), D.delegate = null, p) : H : (D.method = "throw", D.arg = new TypeError("iterator result is not an object"), D.delegate = null, p);
339
339
  }
340
- function I(N) {
340
+ function O(N) {
341
341
  this.tryEntries.push(N);
342
342
  }
343
343
  function M(N) {
@@ -345,7 +345,7 @@ function h() {
345
345
  D.type = "normal", D.arg = o, N[4] = D;
346
346
  }
347
347
  function L(N) {
348
- this.tryEntries = [[-1]], N.forEach(I, this), this.reset(!0);
348
+ this.tryEntries = [[-1]], N.forEach(O, this), this.reset(!0);
349
349
  }
350
350
  function U(N) {
351
351
  if (N != null) {
@@ -1386,28 +1386,30 @@ var km = /* @__PURE__ */ new Map([
1386
1386
  } }]);
1387
1387
  }(), Tm = /* @__PURE__ */ function(o) {
1388
1388
  function t(e) {
1389
- var r, n = e.logger, a = e.peerId, i = e.apiHostnames;
1390
- return w(this, t), r = R(this, t), r.logger = void 0, r.peerId = void 0, r.eventStore = void 0, r.apiEndpoint = void 0, r.logger = n, r.peerId = a, r.apiEndpoint = "https://".concat(i.daCollector, "/api/v1/message"), r.eventStore = new bm(), r;
1389
+ var r, n = e.logger, a = e.peerId, i = e.apiHostnames, s = e.authToken;
1390
+ return w(this, t), r = R(this, t), r.logger = void 0, r.peerId = void 0, r.eventStore = void 0, r.apiEndpoint = void 0, r.authToken = void 0, r.logger = n, r.peerId = a, r.authToken = s, r.apiEndpoint = "https://".concat(i.daCollector, "/api/v1/message"), r.eventStore = new bm(), r;
1391
1391
  }
1392
1392
  return A(t, o), P(t, [{ key: "sendEventsChunkToServer", value: function() {
1393
1393
  var e = m(/* @__PURE__ */ h().mark(function n(a) {
1394
- var i = this, s, u;
1394
+ var i, s, u;
1395
1395
  return h().wrap(function(d) {
1396
1396
  for (; ; )
1397
1397
  switch (d.prev = d.next) {
1398
1398
  case 0:
1399
- return s = { payload: a, peerId: this.peerId }, d.prev = 1, d.next = 4, fetch(this.apiEndpoint, { method: "POST", body: JSON.stringify(s) });
1400
- case 4:
1399
+ return i = { payload: a, peerId: this.peerId }, s = new AbortController(), u = setTimeout(function() {
1400
+ return s.abort();
1401
+ }, 3e3), d.prev = 3, d.next = 6, fetch(this.apiEndpoint, { method: "POST", headers: { "Content-Type": "application/json", Authorization: "Bearer ".concat(this.authToken) }, body: JSON.stringify(i), signal: s.signal });
1402
+ case 6:
1401
1403
  return d.abrupt("return", !0);
1402
- case 7:
1403
- return d.prev = 7, d.t0 = d.catch(1), this.logger.error("callStats::sendEventsChunkToServer::catch", { error: d.t0 }), (u = a.entries) === null || u === void 0 || u.forEach(function(p) {
1404
- i.eventStore.add(p);
1405
- }), d.abrupt("return", !1);
1406
- case 12:
1404
+ case 9:
1405
+ return d.prev = 9, d.t0 = d.catch(3), this.logger.error("callStats::sendEventsChunkToServer::catch", { peerId: this.peerId, endpoint: this.apiEndpoint, error: d.t0 instanceof Error ? d.t0.message : String(d.t0), stack: d.t0 instanceof Error ? d.t0.stack : void 0 }), d.abrupt("return", !1);
1406
+ case 13:
1407
+ return d.prev = 13, clearTimeout(u), d.finish(13);
1408
+ case 16:
1407
1409
  case "end":
1408
1410
  return d.stop();
1409
1411
  }
1410
- }, n, this, [[1, 7]]);
1412
+ }, n, this, [[3, 9, 13, 16]]);
1411
1413
  }));
1412
1414
  function r(n) {
1413
1415
  return e.apply(this, arguments);
@@ -1417,23 +1419,25 @@ var km = /* @__PURE__ */ new Map([
1417
1419
  r.timestamp = new Date(), this.eventStore.add(r), this.emit(r.event, r.metaData), km.get(r.event) === ce.MAJOR_EVENT && this.flush();
1418
1420
  } }, { key: "flush", value: function() {
1419
1421
  var e = m(/* @__PURE__ */ h().mark(function n() {
1420
- var a, i;
1421
- return h().wrap(function(u) {
1422
+ var a, i = this, s, u;
1423
+ return h().wrap(function(d) {
1422
1424
  for (; ; )
1423
- switch (u.prev = u.next) {
1425
+ switch (d.prev = d.next) {
1424
1426
  case 0:
1425
- if (i = this.eventStore.flush(), !(i != null && (a = i.entries) !== null && a !== void 0 && a.length)) {
1426
- u.next = 5;
1427
+ if (s = this.eventStore.flush(), !(s != null && (a = s.entries) !== null && a !== void 0 && a.length)) {
1428
+ d.next = 7;
1427
1429
  break;
1428
1430
  }
1429
- return u.next = 4, this.sendEventsChunkToServer(i);
1431
+ return d.next = 4, this.sendEventsChunkToServer(s);
1430
1432
  case 4:
1431
- return u.abrupt("return", !0);
1432
- case 5:
1433
- return u.abrupt("return", !1);
1434
- case 6:
1433
+ return u = d.sent, u || s.entries.forEach(function(p) {
1434
+ i.eventStore.add(p);
1435
+ }), d.abrupt("return", u);
1436
+ case 7:
1437
+ return d.abrupt("return", !1);
1438
+ case 8:
1435
1439
  case "end":
1436
- return u.stop();
1440
+ return d.stop();
1437
1441
  }
1438
1442
  }, n, this);
1439
1443
  }));
@@ -1971,7 +1975,7 @@ var Kv = /* @__PURE__ */ P(function o() {
1971
1975
  break;
1972
1976
  }
1973
1977
  case "candidate-pair": {
1974
- var C = S.nominated, _ = S.selected, I = S, M = { nominated: C != null ? C : _, currentRoundTripTime: I.currentRoundTripTime, totalRoundTripTime: I.totalRoundTripTime, bytesReceived: I.bytesReceived, bytesSent: I.bytesSent, availableOutgoingBitrate: I.availableOutgoingBitrate, availableIncomingBitrate: I.availableIncomingBitrate, lastPacketReceivedTimestamp: I.lastPacketReceivedTimestamp, lastPacketSentTimestamp: I.lastPacketSentTimestamp, localCandidateId: I.localCandidateId, remoteCandidateId: I.remoteCandidateId, bytesDiscardedOnSend: I.bytesDiscardedOnSend, packetsSent: I.packetsSent, packetsReceived: I.packetsReceived, packetsDiscardedOnSend: I.packetsDiscardedOnSend };
1978
+ var C = S.nominated, I = S.selected, O = S, M = { nominated: C != null ? C : I, currentRoundTripTime: O.currentRoundTripTime, totalRoundTripTime: O.totalRoundTripTime, bytesReceived: O.bytesReceived, bytesSent: O.bytesSent, availableOutgoingBitrate: O.availableOutgoingBitrate, availableIncomingBitrate: O.availableIncomingBitrate, lastPacketReceivedTimestamp: O.lastPacketReceivedTimestamp, lastPacketSentTimestamp: O.lastPacketSentTimestamp, localCandidateId: O.localCandidateId, remoteCandidateId: O.remoteCandidateId, bytesDiscardedOnSend: O.bytesDiscardedOnSend, packetsSent: O.packetsSent, packetsReceived: O.packetsReceived, packetsDiscardedOnSend: O.packetsDiscardedOnSend };
1975
1979
  g.push(M), (S.nominated === !0 || S.selected === !0) && (d.candidatePair = M);
1976
1980
  break;
1977
1981
  }
@@ -2643,7 +2647,7 @@ var Kv = /* @__PURE__ */ P(function o() {
2643
2647
  break;
2644
2648
  }
2645
2649
  case "candidate-pair": {
2646
- var C = S.nominated, _ = S.selected, I = S, M = { nominated: C != null ? C : _, currentRoundTripTime: I.currentRoundTripTime, totalRoundTripTime: I.totalRoundTripTime, bytesReceived: I.bytesReceived, bytesSent: I.bytesSent, availableOutgoingBitrate: I.availableOutgoingBitrate, availableIncomingBitrate: I.availableIncomingBitrate, lastPacketReceivedTimestamp: I.lastPacketReceivedTimestamp, lastPacketSentTimestamp: I.lastPacketSentTimestamp, localCandidateId: I.localCandidateId, remoteCandidateId: I.remoteCandidateId, bytesDiscardedOnSend: I.bytesDiscardedOnSend, packetsSent: I.packetsSent, packetsReceived: I.packetsReceived, packetsDiscardedOnSend: I.packetsDiscardedOnSend };
2650
+ var C = S.nominated, I = S.selected, O = S, M = { nominated: C != null ? C : I, currentRoundTripTime: O.currentRoundTripTime, totalRoundTripTime: O.totalRoundTripTime, bytesReceived: O.bytesReceived, bytesSent: O.bytesSent, availableOutgoingBitrate: O.availableOutgoingBitrate, availableIncomingBitrate: O.availableIncomingBitrate, lastPacketReceivedTimestamp: O.lastPacketReceivedTimestamp, lastPacketSentTimestamp: O.lastPacketSentTimestamp, localCandidateId: O.localCandidateId, remoteCandidateId: O.remoteCandidateId, bytesDiscardedOnSend: O.bytesDiscardedOnSend, packetsSent: O.packetsSent, packetsReceived: O.packetsReceived, packetsDiscardedOnSend: O.packetsDiscardedOnSend };
2647
2651
  g.push(M), (S.nominated === !0 || S.selected === !0) && (d.candidatePair = M);
2648
2652
  break;
2649
2653
  }
@@ -2935,8 +2939,10 @@ var pe = function(t, e) {
2935
2939
  return n > 3 && a && Object.defineProperty(t, e, a), a;
2936
2940
  }, de = console, ue = /* @__PURE__ */ function(o) {
2937
2941
  function t() {
2938
- var e, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "https://api.testingv3.dyte.in", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Blink", a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : bu.PROD, i = arguments.length > 3 ? arguments[3] : void 0, s = arguments.length > 4 ? arguments[4] : void 0, u = arguments.length > 5 ? arguments[5] : void 0, l = arguments.length > 6 ? arguments[6] : void 0;
2939
- switch (w(this, t), e = R(this, t), e.observer = void 0, e.eventHandler = void 0, e.measurements = void 0, e.producingTransport = void 0, e.consumingTransport = void 0, e.producers = /* @__PURE__ */ new Map(), e.consumers = /* @__PURE__ */ new Map(), e.iceServers = void 0, e.connectionInfoPromise = void 0, e.pingStatsTimeout = void 0, e.logger = void 0, e.env = void 0, e.apiHostnames = void 0, e.peerId = void 0, e.consumerSharedMediaStatesMap = /* @__PURE__ */ new Map(), e.currentUserMediaStates = {}, e.env = a, e.apiHostnames = l, e.logger = s, e.peerId = u, e.eventHandler = new Tm({ logger: s, peerId: u, apiHostnames: l }), e.logger.debug("callStats::engineName: ", { engineName: n }), n) {
2942
+ var e, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "https://api.testingv3.dyte.in", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Blink", a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : bu.PROD, i = arguments.length > 3 ? arguments[3] : void 0, s = arguments.length > 4 ? arguments[4] : void 0, u = arguments.length > 5 ? arguments[5] : void 0, l = arguments.length > 6 ? arguments[6] : void 0, d = arguments.length > 7 ? arguments[7] : void 0;
2943
+ if (w(this, t), e = R(this, t), e.observer = void 0, e.eventHandler = void 0, e.measurements = void 0, e.producingTransport = void 0, e.consumingTransport = void 0, e.producers = /* @__PURE__ */ new Map(), e.consumers = /* @__PURE__ */ new Map(), e.iceServers = void 0, e.connectionInfoPromise = void 0, e.pingStatsTimeout = void 0, e.logger = void 0, e.env = void 0, e.apiHostnames = void 0, e.peerId = void 0, e.consumerSharedMediaStatesMap = /* @__PURE__ */ new Map(), e.currentUserMediaStates = {}, !d)
2944
+ throw Error("authToken is missing but required to initialize CallStats!");
2945
+ switch (e.env = a, e.apiHostnames = l, e.logger = s, e.peerId = u, e.eventHandler = new Tm({ logger: s, peerId: u, apiHostnames: l, authToken: d }), e.logger.debug("callStats::engineName: ", { engineName: n }), n) {
2940
2946
  case "Blink":
2941
2947
  e.measurements = new Lm();
2942
2948
  break;
@@ -2949,10 +2955,10 @@ var pe = function(t, e) {
2949
2955
  default:
2950
2956
  throw Error("Unknown engineName! ".concat(n));
2951
2957
  }
2952
- return e.measurements.callStatsInstance = e, e.registerProducer = e.registerProducer.bind(e), e.registerConsumer = e.registerConsumer.bind(e), e.observer = new dt(), e.measurements.observer.on("consumer_score", function(d) {
2953
- s.debug("callStats::consumer_score ".concat(Re(d.entries()))), e.eventHandler.emit("consumer_score", d);
2954
- }), e.measurements.observer.on("producer_score", function(d) {
2955
- s.debug("callStats::producer_score ".concat(Re(d.entries()))), e.eventHandler.emit("producer_score", d);
2958
+ return e.measurements.callStatsInstance = e, e.registerProducer = e.registerProducer.bind(e), e.registerConsumer = e.registerConsumer.bind(e), e.observer = new dt(), e.measurements.observer.on("consumer_score", function(p) {
2959
+ s.debug("callStats::consumer_score ".concat(Re(p.entries()))), e.eventHandler.emit("consumer_score", p);
2960
+ }), e.measurements.observer.on("producer_score", function(p) {
2961
+ s.debug("callStats::producer_score ".concat(Re(p.entries()))), e.eventHandler.emit("producer_score", p);
2956
2962
  }), e;
2957
2963
  }
2958
2964
  return A(t, o), P(t, [{ key: "registerIceServers", value: function(r) {
@@ -3124,12 +3130,12 @@ var pe = function(t, e) {
3124
3130
  clearInterval(this.pingStatsTimeout);
3125
3131
  } }, { key: "sendPingStatsEvent", value: function() {
3126
3132
  var e = m(/* @__PURE__ */ h().mark(function n() {
3127
- var a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, _ = arguments;
3133
+ var a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, I = arguments;
3128
3134
  return h().wrap(function(M) {
3129
3135
  for (; ; )
3130
3136
  switch (M.prev = M.next) {
3131
3137
  case 0:
3132
- if (p = _.length > 0 && _[0] !== void 0 ? _[0] : !0, v = _.length > 1 ? _[1] : void 0, !this.producingTransport) {
3138
+ if (p = I.length > 0 && I[0] !== void 0 ? I[0] : !0, v = I.length > 1 ? I[1] : void 0, !this.producingTransport) {
3133
3139
  M.next = 19;
3134
3140
  break;
3135
3141
  }
@@ -3391,22 +3397,28 @@ var Um = ue, Qv = /* @__PURE__ */ function(o) {
3391
3397
  }
3392
3398
  return A(t, o), P(t, [{ key: "initialize", value: function() {
3393
3399
  var e = m(/* @__PURE__ */ h().mark(function n(a) {
3394
- var i, s, u, l, d, p, v, f, g, k, y, b, T, S, C;
3395
- return h().wrap(function(I) {
3400
+ var i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, I;
3401
+ return h().wrap(function(M) {
3396
3402
  for (; ; )
3397
- switch (I.prev = I.next) {
3403
+ switch (M.prev = M.next) {
3398
3404
  case 0:
3399
- return i = a.peerId, s = a.engineName, u = a.env, l = u === void 0 ? bu.PROD : u, d = a.iceServers, p = a.apiBase, v = p === void 0 ? "https://api.cluster.dyte.in" : p, f = a.flags, g = a.logger, k = g === void 0 ? console : g, y = a.apiHostnames, b = a.skipConnectivityChecks, T = b === void 0 ? !1 : b, I.prev = 1, this.peerId = i, this.logger = k, I.next = 6, Jv.getIPDetails({ peerId: i, apiHostnames: y, logger: k });
3400
- case 6:
3401
- this.ipInformation = I.sent, this.backend = new Um(v, s, l, f, k, i, y), this.iceServers = d, (S = this.backend) === null || S === void 0 || S.registerIceServers(this.iceServers), this.initialized = !0, (C = this.backend) === null || C === void 0 || (C = C.eventHandler) === null || C === void 0 || C.emit("initialized", this.ipInformation), this.emit("initialized", this.ipInformation), this.startPreCallTest(T), I.next = 20;
3405
+ if (i = a.peerId, s = a.engineName, u = a.env, l = u === void 0 ? bu.PROD : u, d = a.iceServers, p = a.apiBase, v = p === void 0 ? "https://api.cluster.dyte.in" : p, f = a.flags, g = a.logger, k = g === void 0 ? console : g, y = a.apiHostnames, b = a.skipConnectivityChecks, T = b === void 0 ? !1 : b, S = a.authToken, M.prev = 1, this.peerId = i, this.logger = k, S) {
3406
+ M.next = 8;
3407
+ break;
3408
+ }
3409
+ return this.logger.error("callStats::initialize", { event: "auth_token_missing", peerId: this.peerId }), this.stallCallStats(), M.abrupt("return");
3410
+ case 8:
3411
+ return M.next = 10, Jv.getIPDetails({ peerId: i, apiHostnames: y, logger: k });
3412
+ case 10:
3413
+ this.ipInformation = M.sent, this.backend = new Um(v, s, l, f, k, i, y, S), this.iceServers = d, (C = this.backend) === null || C === void 0 || C.registerIceServers(this.iceServers), this.initialized = !0, (I = this.backend) === null || I === void 0 || (I = I.eventHandler) === null || I === void 0 || I.emit("initialized", this.ipInformation), this.emit("initialized", this.ipInformation), this.startPreCallTest(T), M.next = 24;
3402
3414
  break;
3403
- case 16:
3404
- I.prev = 16, I.t0 = I.catch(1), this.logger.error("callStats::CallStatsIntegration: ", { error: I.t0 }), this.stallCallStats();
3405
3415
  case 20:
3416
+ M.prev = 20, M.t0 = M.catch(1), this.logger.error("callStats::CallStatsIntegration", { peerId: this.peerId, error: M.t0 instanceof Error ? M.t0.message : String(M.t0), stack: M.t0 instanceof Error ? M.t0.stack : void 0 }), this.stallCallStats();
3417
+ case 24:
3406
3418
  case "end":
3407
- return I.stop();
3419
+ return M.stop();
3408
3420
  }
3409
- }, n, this, [[1, 16]]);
3421
+ }, n, this, [[1, 20]]);
3410
3422
  }));
3411
3423
  function r(n) {
3412
3424
  return e.apply(this, arguments);
@@ -4403,13 +4415,13 @@ var Pf = /* @__PURE__ */ function() {
4403
4415
  return P(o, [{ key: "identifyAndFetchFlagsWithRetry", value: function() {
4404
4416
  var t = m(/* @__PURE__ */ h().mark(function r(n) {
4405
4417
  var a = this, i, s, u, l, d, p, v, f, g, k, y, b, T, S;
4406
- return h().wrap(function(_) {
4418
+ return h().wrap(function(I) {
4407
4419
  for (; ; )
4408
- switch (_.prev = _.next) {
4420
+ switch (I.prev = I.next) {
4409
4421
  case 0:
4410
- i = n.primaryEndpoint, s = n.secondaryEndpoint, u = n.forceEvaluate, l = n.timeout, d = n.uniqueIdentifier, p = n.traitsObj, v = n.logger, f = JSON.parse(JSON.stringify(p)), g = Object.entries(f).map(function(I) {
4411
- return { trait_key: I[0], trait_value: I[1] };
4412
- }), k = [i, s, s], y = /* @__PURE__ */ h().mark(function I() {
4422
+ i = n.primaryEndpoint, s = n.secondaryEndpoint, u = n.forceEvaluate, l = n.timeout, d = n.uniqueIdentifier, p = n.traitsObj, v = n.logger, f = JSON.parse(JSON.stringify(p)), g = Object.entries(f).map(function(O) {
4423
+ return { trait_key: O[0], trait_value: O[1] };
4424
+ }), k = [i, s, s], y = /* @__PURE__ */ h().mark(function O() {
4413
4425
  var M, L, U, N, D, F;
4414
4426
  return h().wrap(function(B) {
4415
4427
  for (; ; )
@@ -4440,28 +4452,28 @@ var Pf = /* @__PURE__ */ function() {
4440
4452
  case "end":
4441
4453
  return B.stop();
4442
4454
  }
4443
- }, I, null, [[1, 17]]);
4455
+ }, O, null, [[1, 17]]);
4444
4456
  }), T = 0, S = k;
4445
4457
  case 6:
4446
4458
  if (!(T < S.length)) {
4447
- _.next = 14;
4459
+ I.next = 14;
4448
4460
  break;
4449
4461
  }
4450
- return _.delegateYield(y(), "t0", 8);
4462
+ return I.delegateYield(y(), "t0", 8);
4451
4463
  case 8:
4452
- if (b = _.t0, !b) {
4453
- _.next = 11;
4464
+ if (b = I.t0, !b) {
4465
+ I.next = 11;
4454
4466
  break;
4455
4467
  }
4456
- return _.abrupt("return", b.v);
4468
+ return I.abrupt("return", b.v);
4457
4469
  case 11:
4458
- T++, _.next = 6;
4470
+ T++, I.next = 6;
4459
4471
  break;
4460
4472
  case 14:
4461
- return _.abrupt("return", {});
4473
+ return I.abrupt("return", {});
4462
4474
  case 15:
4463
4475
  case "end":
4464
- return _.stop();
4476
+ return I.stop();
4465
4477
  }
4466
4478
  }, r);
4467
4479
  }));
@@ -4551,18 +4563,18 @@ var Xb = function(t, e, r) {
4551
4563
  });
4552
4564
  if (y === -1)
4553
4565
  throw new Error("Invalid reducer provided, it must contain atleast one zero");
4554
- var b = 5 - y, T = y + 1, S = (100 - k) / b, C = k / T, _ = On(e), I;
4566
+ var b = 5 - y, T = y + 1, S = (100 - k) / b, C = k / T, I = On(e), O;
4555
4567
  try {
4556
- for (_.s(); !(I = _.n()).done; ) {
4557
- var M = I.value, L = void 0;
4568
+ for (I.s(); !(O = I.n()).done; ) {
4569
+ var M = O.value, L = void 0;
4558
4570
  M < 0 ? L = k + M * C * r : M > 0 ? L = k + M * S * r : L = k;
4559
4571
  var U = Xb(v, f, L / 100), N = We(U, 3), D = N[0], F = N[1], Y = N[2];
4560
4572
  n.push(xb(D, F, Y));
4561
4573
  }
4562
4574
  } catch (B) {
4563
- _.e(B);
4575
+ I.e(B);
4564
4576
  } finally {
4565
- _.f();
4577
+ I.f();
4566
4578
  }
4567
4579
  return n;
4568
4580
  }, kh = { dark: { background: { 1e3: "#252525", 900: "#2F2F2F", 800: "#323232", 700: "#3E3E3E", 600: "#4A4A4A" }, text: "#F5F5F5", "video-bg": "#1C1C1C" }, light: { background: { 1e3: "#FFFFFF", 900: "#F5F5F5", 800: "#EBEBEB", 700: "#E0E0E0", 600: "#D6D6D6" }, text: "#111111", "text-on-brand": "#ffffff", "video-bg": "#DADADA" } }, eT = function(t) {
@@ -5042,8 +5054,8 @@ function vw(o, t, e, r, n, a) {
5042
5054
  y || (y = v == "constructor");
5043
5055
  }
5044
5056
  if (k && !y) {
5045
- var C = o.constructor, _ = t.constructor;
5046
- C != _ && "constructor" in o && "constructor" in t && !(typeof C == "function" && C instanceof C && typeof _ == "function" && _ instanceof _) && (k = !1);
5057
+ var C = o.constructor, I = t.constructor;
5058
+ C != I && "constructor" in o && "constructor" in t && !(typeof C == "function" && C instanceof C && typeof I == "function" && I instanceof I) && (k = !1);
5047
5059
  }
5048
5060
  return a.delete(o), a.delete(t), k;
5049
5061
  }
@@ -5165,29 +5177,29 @@ function Ap(o, t, e) {
5165
5177
  if (typeof o != "function")
5166
5178
  throw new TypeError(Nw);
5167
5179
  t = Th(t) || 0, fn(e) && (d = !!e.leading, p = "maxWait" in e, a = p ? Vw(Th(e.maxWait) || 0, t) : a, v = "trailing" in e ? !!e.trailing : v);
5168
- function f(I) {
5180
+ function f(O) {
5169
5181
  var M = r, L = n;
5170
- return r = n = void 0, l = I, i = o.apply(L, M), i;
5182
+ return r = n = void 0, l = O, i = o.apply(L, M), i;
5171
5183
  }
5172
- function g(I) {
5173
- return l = I, s = setTimeout(b, t), d ? f(I) : i;
5184
+ function g(O) {
5185
+ return l = O, s = setTimeout(b, t), d ? f(O) : i;
5174
5186
  }
5175
- function k(I) {
5176
- var M = I - u, L = I - l, U = t - M;
5187
+ function k(O) {
5188
+ var M = O - u, L = O - l, U = t - M;
5177
5189
  return p ? Uw(U, a - L) : U;
5178
5190
  }
5179
- function y(I) {
5180
- var M = I - u, L = I - l;
5191
+ function y(O) {
5192
+ var M = O - u, L = O - l;
5181
5193
  return u === void 0 || M >= t || M < 0 || p && L >= a;
5182
5194
  }
5183
5195
  function b() {
5184
- var I = wl();
5185
- if (y(I))
5186
- return T(I);
5187
- s = setTimeout(b, k(I));
5196
+ var O = wl();
5197
+ if (y(O))
5198
+ return T(O);
5199
+ s = setTimeout(b, k(O));
5188
5200
  }
5189
- function T(I) {
5190
- return s = void 0, v && r ? f(I) : (r = n = void 0, i);
5201
+ function T(O) {
5202
+ return s = void 0, v && r ? f(O) : (r = n = void 0, i);
5191
5203
  }
5192
5204
  function S() {
5193
5205
  s !== void 0 && clearTimeout(s), l = 0, r = u = n = s = void 0;
@@ -5195,9 +5207,9 @@ function Ap(o, t, e) {
5195
5207
  function C() {
5196
5208
  return s === void 0 ? i : T(wl());
5197
5209
  }
5198
- function _() {
5199
- var I = wl(), M = y(I);
5200
- if (r = arguments, n = this, u = I, M) {
5210
+ function I() {
5211
+ var O = wl(), M = y(O);
5212
+ if (r = arguments, n = this, u = O, M) {
5201
5213
  if (s === void 0)
5202
5214
  return g(u);
5203
5215
  if (p)
@@ -5205,7 +5217,7 @@ function Ap(o, t, e) {
5205
5217
  }
5206
5218
  return s === void 0 && (s = setTimeout(b, t)), i;
5207
5219
  }
5208
- return _.cancel = S, _.flush = C, _;
5220
+ return I.cancel = S, I.flush = C, I;
5209
5221
  }
5210
5222
  function od(o, t, e) {
5211
5223
  (e !== void 0 && !Ju(o[t], e) || e === void 0 && !(t in o)) && fp(o, t, e);
@@ -5993,8 +6005,8 @@ var Ih = 1080, Mh = 1920, mP = function(t, e, r, n, a, i) {
5993
6005
  if (c(this, Jr)[Jr] !== void 0) {
5994
6006
  var s = c(this, Jr)[Jr].getContext("2d"), u = c(this, Jr)[Jr].width, l = 0, d = 0, p = n - l * 2, v = a - l * 2, f = Math.floor(u / p), g = Math.floor(r / f), k = r % f, y = k * (p + l) + l, b = g * (v + l) + l, T = i != null ? i : {}, S = T.displayText, C = T.image;
5995
6007
  s.fillStyle = S || C ? c(this, at)[at].videoBackground : c(this, at)[at].background, s.strokeStyle = c(this, at)[at].brand, s.beginPath(), s.moveTo(y + d, b), s.arcTo(y + p, b, y + p, b + d, d), s.arcTo(y + p, b + v, y + p - d, b + v, d), s.arcTo(y, b + v, y, b + v - d, d), s.arcTo(y, b, y + d, b, d), s.closePath(), s.fill(), s.stroke();
5996
- var _ = p / 6, I = p / 2 + y, M = v / 2 + b;
5997
- s.save(), (S || C) && (s.beginPath(), s.arc(I, M, _, 0, Math.PI * 2), s.fillStyle = c(this, at)[at].brand, s.fill(), C ? (s.clip(), s.drawImage(C, I - _, M - _, _ * 2, _ * 2), s.restore()) : S && (s.fillStyle = c(this, at)[at].textOnBrand, s.font = "".concat(_ / 2, "px sans-serif"), s.textAlign = "center", s.textBaseline = "middle", s.fillText(S, I, M)), this.drawIcons(i, y, b, Math.max(p, v)));
6008
+ var I = p / 6, O = p / 2 + y, M = v / 2 + b;
6009
+ s.save(), (S || C) && (s.beginPath(), s.arc(O, M, I, 0, Math.PI * 2), s.fillStyle = c(this, at)[at].brand, s.fill(), C ? (s.clip(), s.drawImage(C, O - I, M - I, I * 2, I * 2), s.restore()) : S && (s.fillStyle = c(this, at)[at].textOnBrand, s.font = "".concat(I / 2, "px sans-serif"), s.textAlign = "center", s.textBaseline = "middle", s.fillText(S, O, M)), this.drawIcons(i, y, b, Math.max(p, v)));
5998
6010
  }
5999
6011
  } }, { key: "drawIcons", value: function(r, n, a, i) {
6000
6012
  var s = this, u = Math.min(Math.max(i * 0.15, 100), 200), l = u * 0.2, d = u * 0.2, p = n + l, v = a + l, f = function(k) {
@@ -6008,8 +6020,8 @@ var Ih = 1080, Mh = 1920, mP = function(t, e, r, n, a, i) {
6008
6020
  for (var d = 0; d < c(this, we)[we].width - 5 && l < a; ) {
6009
6021
  var p;
6010
6022
  if ((p = s[l]) !== null && p !== void 0 && p.enabled) {
6011
- var v, f = s[l].element, g = mP(d, u, r, n, f.videoWidth, f.videoHeight), k = We(g, 8), y = k[0], b = k[1], T = k[2], S = k[3], C = k[4], _ = k[5], I = k[6], M = k[7], L = f == null || (v = f.classList) === null || v === void 0 ? void 0 : v.contains("mirror");
6012
- L ? (i.save(), i.scale(-1, 1), i.drawImage(f, y, b, T, S, -1 * C, _, -1 * I, M), i.restore()) : i.drawImage(f, y, b, T, S, C, _, I, M), this.drawIcons(s[l], C, _, Math.max(I, M));
6023
+ var v, f = s[l].element, g = mP(d, u, r, n, f.videoWidth, f.videoHeight), k = We(g, 8), y = k[0], b = k[1], T = k[2], S = k[3], C = k[4], I = k[5], O = k[6], M = k[7], L = f == null || (v = f.classList) === null || v === void 0 ? void 0 : v.contains("mirror");
6024
+ L ? (i.save(), i.scale(-1, 1), i.drawImage(f, y, b, T, S, -1 * C, I, -1 * O, M), i.restore()) : i.drawImage(f, y, b, T, S, C, I, O, M), this.drawIcons(s[l], C, I, Math.max(O, M));
6013
6025
  } else
6014
6026
  this.drawEmptyTile(l, r, n, s[l]);
6015
6027
  l += 1, d += r;
@@ -6269,7 +6281,7 @@ var kP = /* @__PURE__ */ function(o) {
6269
6281
  }]]);
6270
6282
  }
6271
6283
  return A(t, o), P(t);
6272
- }(O), Lf = new kP(), bP = /* @__PURE__ */ function(o) {
6284
+ }(_), Lf = new kP(), bP = /* @__PURE__ */ function(o) {
6273
6285
  function t() {
6274
6286
  return w(this, t), R(this, t, ["media.HeaderExtension", [{
6275
6287
  no: 1,
@@ -6287,7 +6299,7 @@ var kP = /* @__PURE__ */ function(o) {
6287
6299
  }]]);
6288
6300
  }
6289
6301
  return A(t, o), P(t);
6290
- }(O), TP = new bP(), wP = /* @__PURE__ */ function(o) {
6302
+ }(_), TP = new bP(), wP = /* @__PURE__ */ function(o) {
6291
6303
  function t() {
6292
6304
  return w(this, t), R(this, t, ["media.Fingerprint", [{
6293
6305
  no: 1,
@@ -6304,7 +6316,7 @@ var kP = /* @__PURE__ */ function(o) {
6304
6316
  }]]);
6305
6317
  }
6306
6318
  return A(t, o), P(t);
6307
- }(O);
6319
+ }(_);
6308
6320
  new wP();
6309
6321
  var PP = /* @__PURE__ */ function(o) {
6310
6322
  function t() {
@@ -6325,7 +6337,7 @@ var PP = /* @__PURE__ */ function(o) {
6325
6337
  }]]);
6326
6338
  }
6327
6339
  return A(t, o), P(t);
6328
- }(O), Ln = new PP(), SP = /* @__PURE__ */ function(o) {
6340
+ }(_), Ln = new PP(), SP = /* @__PURE__ */ function(o) {
6329
6341
  function t() {
6330
6342
  return w(this, t), R(this, t, ["media.ProducerPayload", [{
6331
6343
  no: 1,
@@ -6368,7 +6380,7 @@ var PP = /* @__PURE__ */ function(o) {
6368
6380
  }]]);
6369
6381
  }
6370
6382
  return A(t, o), P(t);
6371
- }(O), EP = new SP(), CP = /* @__PURE__ */ function(o) {
6383
+ }(_), EP = new SP(), CP = /* @__PURE__ */ function(o) {
6372
6384
  function t() {
6373
6385
  return w(this, t), R(this, t, ["media.CreateTransportRequest", [{
6374
6386
  no: 1,
@@ -6397,7 +6409,7 @@ var PP = /* @__PURE__ */ function(o) {
6397
6409
  } }]]);
6398
6410
  }
6399
6411
  return A(t, o), P(t);
6400
- }(O), RP = new CP(), AP = /* @__PURE__ */ function(o) {
6412
+ }(_), RP = new CP(), AP = /* @__PURE__ */ function(o) {
6401
6413
  function t() {
6402
6414
  return w(this, t), R(this, t, ["media.AudioActivityRequest", [{
6403
6415
  no: 1,
@@ -6420,7 +6432,7 @@ var PP = /* @__PURE__ */ function(o) {
6420
6432
  }]]);
6421
6433
  }
6422
6434
  return A(t, o), P(t);
6423
- }(O), IP = new AP(), MP = /* @__PURE__ */ function(o) {
6435
+ }(_), IP = new AP(), MP = /* @__PURE__ */ function(o) {
6424
6436
  function t() {
6425
6437
  return w(this, t), R(this, t, ["media.CreateTransportResponse", [{
6426
6438
  no: 1,
@@ -6447,7 +6459,7 @@ var PP = /* @__PURE__ */ function(o) {
6447
6459
  }]]);
6448
6460
  }
6449
6461
  return A(t, o), P(t);
6450
- }(O), Nf = new MP(), _P = /* @__PURE__ */ function(o) {
6462
+ }(_), Nf = new MP(), _P = /* @__PURE__ */ function(o) {
6451
6463
  function t() {
6452
6464
  return w(this, t), R(this, t, ["media.RenegotiateRequest", [{
6453
6465
  no: 1,
@@ -6460,7 +6472,7 @@ var PP = /* @__PURE__ */ function(o) {
6460
6472
  } }]]);
6461
6473
  }
6462
6474
  return A(t, o), P(t);
6463
- }(O), OP = new _P(), DP = /* @__PURE__ */ function(o) {
6475
+ }(_), OP = new _P(), DP = /* @__PURE__ */ function(o) {
6464
6476
  function t() {
6465
6477
  return w(this, t), R(this, t, ["media.RenegotiateResponse", [{
6466
6478
  no: 1,
@@ -6473,7 +6485,7 @@ var PP = /* @__PURE__ */ function(o) {
6473
6485
  } }]]);
6474
6486
  }
6475
6487
  return A(t, o), P(t);
6476
- }(O);
6488
+ }(_);
6477
6489
  new DP();
6478
6490
  var $P = /* @__PURE__ */ function(o) {
6479
6491
  function t() {
@@ -6505,7 +6517,7 @@ var $P = /* @__PURE__ */ function(o) {
6505
6517
  }]]);
6506
6518
  }
6507
6519
  return A(t, o), P(t);
6508
- }(O), LP = new $P(), NP = /* @__PURE__ */ function(o) {
6520
+ }(_), LP = new $P(), NP = /* @__PURE__ */ function(o) {
6509
6521
  function t() {
6510
6522
  return w(this, t), R(this, t, ["media.ProducerTrack", [{
6511
6523
  no: 1,
@@ -6528,7 +6540,7 @@ var $P = /* @__PURE__ */ function(o) {
6528
6540
  }]]);
6529
6541
  }
6530
6542
  return A(t, o), P(t);
6531
- }(O), VP = new NP(), UP = /* @__PURE__ */ function(o) {
6543
+ }(_), VP = new NP(), UP = /* @__PURE__ */ function(o) {
6532
6544
  function t() {
6533
6545
  return w(this, t), R(this, t, ["media.ProducerEntry", [{
6534
6546
  no: 1,
@@ -6545,7 +6557,7 @@ var $P = /* @__PURE__ */ function(o) {
6545
6557
  }]]);
6546
6558
  }
6547
6559
  return A(t, o), P(t);
6548
- }(O);
6560
+ }(_);
6549
6561
  new UP();
6550
6562
  var jP = /* @__PURE__ */ function(o) {
6551
6563
  function t() {
@@ -6564,7 +6576,7 @@ var jP = /* @__PURE__ */ function(o) {
6564
6576
  }]]);
6565
6577
  }
6566
6578
  return A(t, o), P(t);
6567
- }(O);
6579
+ }(_);
6568
6580
  new jP();
6569
6581
  var FP = /* @__PURE__ */ function(o) {
6570
6582
  function t() {
@@ -6614,7 +6626,7 @@ var FP = /* @__PURE__ */ function(o) {
6614
6626
  } }]]);
6615
6627
  }
6616
6628
  return A(t, o), P(t);
6617
- }(O), Qu = new FP(), HP = /* @__PURE__ */ function(o) {
6629
+ }(_), Qu = new FP(), HP = /* @__PURE__ */ function(o) {
6618
6630
  function t() {
6619
6631
  return w(this, t), R(this, t, ["media.ConsumerState", [{
6620
6632
  no: 1,
@@ -6636,14 +6648,14 @@ var FP = /* @__PURE__ */ function(o) {
6636
6648
  }]]);
6637
6649
  }
6638
6650
  return A(t, o), P(t);
6639
- }(O), BP = new HP(), qP = /* @__PURE__ */ function(o) {
6651
+ }(_), BP = new HP(), qP = /* @__PURE__ */ function(o) {
6640
6652
  function t() {
6641
6653
  return w(this, t), R(this, t, ["media.ProducerIdToConsumerMap", [{ no: 1, name: "map", kind: "map", K: 9, V: { kind: "message", T: function() {
6642
6654
  return BP;
6643
6655
  } } }]]);
6644
6656
  }
6645
6657
  return A(t, o), P(t);
6646
- }(O), Vf = new qP(), GP = /* @__PURE__ */ function(o) {
6658
+ }(_), Vf = new qP(), GP = /* @__PURE__ */ function(o) {
6647
6659
  function t() {
6648
6660
  return w(this, t), R(this, t, ["media.PeerRtpCapabilitites", [{ no: 1, name: "sender", kind: "message", T: function() {
6649
6661
  return Oh;
@@ -6652,7 +6664,7 @@ var FP = /* @__PURE__ */ function(o) {
6652
6664
  } }]]);
6653
6665
  }
6654
6666
  return A(t, o), P(t);
6655
- }(O), Uf = new GP(), WP = /* @__PURE__ */ function(o) {
6667
+ }(_), Uf = new GP(), WP = /* @__PURE__ */ function(o) {
6656
6668
  function t() {
6657
6669
  return w(this, t), R(this, t, ["media.RtpCapability", [{ no: 1, name: "codecs", kind: "message", repeat: 1, T: function() {
6658
6670
  return Lf;
@@ -6661,7 +6673,7 @@ var FP = /* @__PURE__ */ function(o) {
6661
6673
  } }]]);
6662
6674
  }
6663
6675
  return A(t, o), P(t);
6664
- }(O), _h = new WP(), JP = /* @__PURE__ */ function(o) {
6676
+ }(_), _h = new WP(), JP = /* @__PURE__ */ function(o) {
6665
6677
  function t() {
6666
6678
  return w(this, t), R(this, t, ["media.RtpCapabilitites", [{ no: 1, name: "audio", kind: "message", T: function() {
6667
6679
  return _h;
@@ -6670,7 +6682,7 @@ var FP = /* @__PURE__ */ function(o) {
6670
6682
  } }]]);
6671
6683
  }
6672
6684
  return A(t, o), P(t);
6673
- }(O), Oh = new JP(), KP = /* @__PURE__ */ function(o) {
6685
+ }(_), Oh = new JP(), KP = /* @__PURE__ */ function(o) {
6674
6686
  function t() {
6675
6687
  return w(this, t), R(this, t, ["media.PreferredCodec", [{
6676
6688
  no: 1,
@@ -6689,7 +6701,7 @@ var FP = /* @__PURE__ */ function(o) {
6689
6701
  }]]);
6690
6702
  }
6691
6703
  return A(t, o), P(t);
6692
- }(O), zP = new KP(), YP = /* @__PURE__ */ function(o) {
6704
+ }(_), zP = new KP(), YP = /* @__PURE__ */ function(o) {
6693
6705
  function t() {
6694
6706
  return w(this, t), R(this, t, ["media.Simulcast", [{
6695
6707
  no: 1,
@@ -6715,7 +6727,7 @@ var FP = /* @__PURE__ */ function(o) {
6715
6727
  }]]);
6716
6728
  }
6717
6729
  return A(t, o), P(t);
6718
- }(O), jf = new YP(), QP = /* @__PURE__ */ function(o) {
6730
+ }(_), jf = new YP(), QP = /* @__PURE__ */ function(o) {
6719
6731
  function t() {
6720
6732
  return w(this, t), R(this, t, ["media.edge.GeoLocation", [{
6721
6733
  no: 1,
@@ -6739,7 +6751,7 @@ var FP = /* @__PURE__ */ function(o) {
6739
6751
  }]]);
6740
6752
  }
6741
6753
  return A(t, o), P(t);
6742
- }(O), XP = new QP(), ZP = /* @__PURE__ */ function(o) {
6754
+ }(_), XP = new QP(), ZP = /* @__PURE__ */ function(o) {
6743
6755
  function t() {
6744
6756
  return w(this, t), R(this, t, ["media.edge.PeerJoinRequest", [{
6745
6757
  no: 1,
@@ -6795,12 +6807,12 @@ var FP = /* @__PURE__ */ function(o) {
6795
6807
  } }]]);
6796
6808
  }
6797
6809
  return A(t, o), P(t);
6798
- }(O), xP = new ZP(), eS = /* @__PURE__ */ function(o) {
6810
+ }(_), xP = new ZP(), eS = /* @__PURE__ */ function(o) {
6799
6811
  function t() {
6800
6812
  return w(this, t), R(this, t, ["media.edge.PeerJoinCompleteRequest", []]);
6801
6813
  }
6802
6814
  return A(t, o), P(t);
6803
- }(O), rS = new eS(), tS = /* @__PURE__ */ function(o) {
6815
+ }(_), rS = new eS(), tS = /* @__PURE__ */ function(o) {
6804
6816
  function t() {
6805
6817
  return w(this, t), R(this, t, ["media.edge.PeerLeaveRequest", [{
6806
6818
  no: 1,
@@ -6811,7 +6823,7 @@ var FP = /* @__PURE__ */ function(o) {
6811
6823
  }]]);
6812
6824
  }
6813
6825
  return A(t, o), P(t);
6814
- }(O), nS = new tS(), aS = /* @__PURE__ */ function(o) {
6826
+ }(_), nS = new tS(), aS = /* @__PURE__ */ function(o) {
6815
6827
  function t() {
6816
6828
  return w(this, t), R(this, t, ["media.edge.ConsumeMultipleProducerRequest", [{
6817
6829
  no: 1,
@@ -6830,7 +6842,7 @@ var FP = /* @__PURE__ */ function(o) {
6830
6842
  }]]);
6831
6843
  }
6832
6844
  return A(t, o), P(t);
6833
- }(O);
6845
+ }(_);
6834
6846
  new aS();
6835
6847
  var iS = /* @__PURE__ */ function(o) {
6836
6848
  function t() {
@@ -6868,7 +6880,7 @@ var iS = /* @__PURE__ */ function(o) {
6868
6880
  } }]]);
6869
6881
  }
6870
6882
  return A(t, o), P(t);
6871
- }(O), sS = new iS(), oS = /* @__PURE__ */ function(o) {
6883
+ }(_), sS = new iS(), oS = /* @__PURE__ */ function(o) {
6872
6884
  function t() {
6873
6885
  return w(this, t), R(this, t, ["media.edge.ConsumePeersRequest", [{ no: 1, name: "requests", kind: "message", repeat: 1, T: function() {
6874
6886
  return sS;
@@ -6882,7 +6894,7 @@ var iS = /* @__PURE__ */ function(o) {
6882
6894
  }]]);
6883
6895
  }
6884
6896
  return A(t, o), P(t);
6885
- }(O), uS = new oS(), cS = /* @__PURE__ */ function(o) {
6897
+ }(_), uS = new oS(), cS = /* @__PURE__ */ function(o) {
6886
6898
  function t() {
6887
6899
  return w(this, t), R(this, t, ["media.edge.UpdateConsumerSimulcastConfigRequest", [{
6888
6900
  no: 1,
@@ -6907,7 +6919,7 @@ var iS = /* @__PURE__ */ function(o) {
6907
6919
  }]]);
6908
6920
  }
6909
6921
  return A(t, o), P(t);
6910
- }(O), lS = new cS(), dS = /* @__PURE__ */ function(o) {
6922
+ }(_), lS = new cS(), dS = /* @__PURE__ */ function(o) {
6911
6923
  function t() {
6912
6924
  return w(this, t), R(this, t, ["media.edge.UpdateConsumersSimulcastConfigRequest", [{ no: 1, name: "requests", kind: "message", repeat: 1, T: function() {
6913
6925
  return lS;
@@ -6921,7 +6933,7 @@ var iS = /* @__PURE__ */ function(o) {
6921
6933
  }]]);
6922
6934
  }
6923
6935
  return A(t, o), P(t);
6924
- }(O), pS = new dS(), hS = /* @__PURE__ */ function(o) {
6936
+ }(_), pS = new dS(), hS = /* @__PURE__ */ function(o) {
6925
6937
  function t() {
6926
6938
  return w(this, t), R(this, t, ["media.edge.ProducerCreateRequest", [{
6927
6939
  no: 1,
@@ -6973,12 +6985,12 @@ var iS = /* @__PURE__ */ function(o) {
6973
6985
  }]]);
6974
6986
  }
6975
6987
  return A(t, o), P(t);
6976
- }(O), vS = new hS(), fS = /* @__PURE__ */ function(o) {
6988
+ }(_), vS = new hS(), fS = /* @__PURE__ */ function(o) {
6977
6989
  function t() {
6978
6990
  return w(this, t), R(this, t, ["media.edge.SelectedPeersRequest", []]);
6979
6991
  }
6980
6992
  return A(t, o), P(t);
6981
- }(O);
6993
+ }(_);
6982
6994
  new fS();
6983
6995
  var gS = /* @__PURE__ */ function(o) {
6984
6996
  function t() {
@@ -6991,7 +7003,7 @@ var gS = /* @__PURE__ */ function(o) {
6991
7003
  }]]);
6992
7004
  }
6993
7005
  return A(t, o), P(t);
6994
- }(O), mS = new gS(), yS = /* @__PURE__ */ function(o) {
7006
+ }(_), mS = new gS(), yS = /* @__PURE__ */ function(o) {
6995
7007
  function t() {
6996
7008
  return w(this, t), R(this, t, ["media.edge.ProducerToggleRequest", [{
6997
7009
  no: 1,
@@ -7008,7 +7020,7 @@ var gS = /* @__PURE__ */ function(o) {
7008
7020
  }]]);
7009
7021
  }
7010
7022
  return A(t, o), P(t);
7011
- }(O), hc = new yS(), kS = /* @__PURE__ */ function(o) {
7023
+ }(_), hc = new yS(), kS = /* @__PURE__ */ function(o) {
7012
7024
  function t() {
7013
7025
  return w(this, t), R(this, t, ["media.edge.ConsumerToggleRequest", [{
7014
7026
  no: 1,
@@ -7025,7 +7037,7 @@ var gS = /* @__PURE__ */ function(o) {
7025
7037
  }]]);
7026
7038
  }
7027
7039
  return A(t, o), P(t);
7028
- }(O);
7040
+ }(_);
7029
7041
  new kS();
7030
7042
  var bS = /* @__PURE__ */ function(o) {
7031
7043
  function t() {
@@ -7047,7 +7059,7 @@ var bS = /* @__PURE__ */ function(o) {
7047
7059
  }]]);
7048
7060
  }
7049
7061
  return A(t, o), P(t);
7050
- }(O), TS = new bS(), wS = /* @__PURE__ */ function(o) {
7062
+ }(_), TS = new bS(), wS = /* @__PURE__ */ function(o) {
7051
7063
  function t() {
7052
7064
  return w(this, t), R(this, t, ["media.edge.ConsumerCloseRequest", [{
7053
7065
  no: 1,
@@ -7068,7 +7080,7 @@ var bS = /* @__PURE__ */ function(o) {
7068
7080
  }]]);
7069
7081
  }
7070
7082
  return A(t, o), P(t);
7071
- }(O), PS = new wS(), SS = /* @__PURE__ */ function(o) {
7083
+ }(_), PS = new wS(), SS = /* @__PURE__ */ function(o) {
7072
7084
  function t() {
7073
7085
  return w(this, t), R(this, t, ["media.edge.KickPeerRequest", [{
7074
7086
  no: 1,
@@ -7079,7 +7091,7 @@ var bS = /* @__PURE__ */ function(o) {
7079
7091
  }]]);
7080
7092
  }
7081
7093
  return A(t, o), P(t);
7082
- }(O);
7094
+ }(_);
7083
7095
  new SS();
7084
7096
  var ES = /* @__PURE__ */ function(o) {
7085
7097
  function t() {
@@ -7092,7 +7104,7 @@ var ES = /* @__PURE__ */ function(o) {
7092
7104
  }]]);
7093
7105
  }
7094
7106
  return A(t, o), P(t);
7095
- }(O), Ff = new ES(), CS = /* @__PURE__ */ function(o) {
7107
+ }(_), Ff = new ES(), CS = /* @__PURE__ */ function(o) {
7096
7108
  function t() {
7097
7109
  return w(this, t), R(this, t, ["media.edge.PeerDisplayNameEditRequest", [{
7098
7110
  no: 1,
@@ -7109,7 +7121,7 @@ var ES = /* @__PURE__ */ function(o) {
7109
7121
  }]]);
7110
7122
  }
7111
7123
  return A(t, o), P(t);
7112
- }(O), RS = new CS(), AS = /* @__PURE__ */ function(o) {
7124
+ }(_), RS = new CS(), AS = /* @__PURE__ */ function(o) {
7113
7125
  function t() {
7114
7126
  return w(this, t), R(this, t, ["media.edge.HostMediaControlForPeerRequest", [{
7115
7127
  no: 1,
@@ -7138,7 +7150,7 @@ var ES = /* @__PURE__ */ function(o) {
7138
7150
  }]]);
7139
7151
  }
7140
7152
  return A(t, o), P(t);
7141
- }(O), IS = new AS(), MS = /* @__PURE__ */ function(o) {
7153
+ }(_), IS = new AS(), MS = /* @__PURE__ */ function(o) {
7142
7154
  function t() {
7143
7155
  return w(this, t), R(this, t, ["media.edge.HostMediaControlForAllPeerRequest", [{
7144
7156
  no: 1,
@@ -7161,7 +7173,7 @@ var ES = /* @__PURE__ */ function(o) {
7161
7173
  }]]);
7162
7174
  }
7163
7175
  return A(t, o), P(t);
7164
- }(O), _S = new MS(), OS = /* @__PURE__ */ function(o) {
7176
+ }(_), _S = new MS(), OS = /* @__PURE__ */ function(o) {
7165
7177
  function t() {
7166
7178
  return w(this, t), R(this, t, ["media.edge.GetRoomStateResponse", [{
7167
7179
  no: 1,
@@ -7217,7 +7229,7 @@ var ES = /* @__PURE__ */ function(o) {
7217
7229
  }]]);
7218
7230
  }
7219
7231
  return A(t, o), P(t);
7220
- }(O), DS = new OS(), $S = /* @__PURE__ */ function(o) {
7232
+ }(_), DS = new OS(), $S = /* @__PURE__ */ function(o) {
7221
7233
  function t() {
7222
7234
  return w(this, t), R(this, t, ["media.edge.ErrorResponse", [{
7223
7235
  no: 1,
@@ -7234,12 +7246,12 @@ var ES = /* @__PURE__ */ function(o) {
7234
7246
  }]]);
7235
7247
  }
7236
7248
  return A(t, o), P(t);
7237
- }(O), LS = new $S(), NS = /* @__PURE__ */ function(o) {
7249
+ }(_), LS = new $S(), NS = /* @__PURE__ */ function(o) {
7238
7250
  function t() {
7239
7251
  return w(this, t), R(this, t, ["media.edge.EmptyResponse", []]);
7240
7252
  }
7241
7253
  return A(t, o), P(t);
7242
- }(O);
7254
+ }(_);
7243
7255
  new NS();
7244
7256
  var VS = /* @__PURE__ */ function(o) {
7245
7257
  function t() {
@@ -7269,7 +7281,7 @@ var VS = /* @__PURE__ */ function(o) {
7269
7281
  } }]]);
7270
7282
  }
7271
7283
  return A(t, o), P(t);
7272
- }(O), Hf = new VS(), US = /* @__PURE__ */ function(o) {
7284
+ }(_), Hf = new VS(), US = /* @__PURE__ */ function(o) {
7273
7285
  function t() {
7274
7286
  return w(this, t), R(this, t, ["media.edge.SelectedPeersResponse", [{
7275
7287
  no: 1,
@@ -7288,7 +7300,7 @@ var VS = /* @__PURE__ */ function(o) {
7288
7300
  }]]);
7289
7301
  }
7290
7302
  return A(t, o), P(t);
7291
- }(O), ld = new US(), jS = /* @__PURE__ */ function(o) {
7303
+ }(_), ld = new US(), jS = /* @__PURE__ */ function(o) {
7292
7304
  function t() {
7293
7305
  return w(this, t), R(this, t, ["media.edge.SelectedPeersDiffEntry", [{
7294
7306
  no: 1,
@@ -7305,19 +7317,19 @@ var VS = /* @__PURE__ */ function(o) {
7305
7317
  }]]);
7306
7318
  }
7307
7319
  return A(t, o), P(t);
7308
- }(O), FS = new jS(), HS = /* @__PURE__ */ function(o) {
7320
+ }(_), FS = new jS(), HS = /* @__PURE__ */ function(o) {
7309
7321
  function t() {
7310
7322
  return w(this, t), R(this, t, ["media.edge.SelectedPeersDiffResponse", [{ no: 1, name: "entries", kind: "message", repeat: 1, T: function() {
7311
7323
  return FS;
7312
7324
  } }]]);
7313
7325
  }
7314
7326
  return A(t, o), P(t);
7315
- }(O), Dh = new HS(), BS = /* @__PURE__ */ function(o) {
7327
+ }(_), Dh = new HS(), BS = /* @__PURE__ */ function(o) {
7316
7328
  function t() {
7317
7329
  return w(this, t), R(this, t, ["media.edge.PeerJoinResponse", []]);
7318
7330
  }
7319
7331
  return A(t, o), P(t);
7320
- }(O);
7332
+ }(_);
7321
7333
  new BS();
7322
7334
  var qS = /* @__PURE__ */ function(o) {
7323
7335
  function t() {
@@ -7336,7 +7348,7 @@ var qS = /* @__PURE__ */ function(o) {
7336
7348
  }]]);
7337
7349
  }
7338
7350
  return A(t, o), P(t);
7339
- }(O), dd = new qS(), GS = /* @__PURE__ */ function(o) {
7351
+ }(_), dd = new qS(), GS = /* @__PURE__ */ function(o) {
7340
7352
  function t() {
7341
7353
  return w(this, t), R(this, t, ["media.edge.PeerLeaveResponse", [{
7342
7354
  no: 1,
@@ -7347,7 +7359,7 @@ var qS = /* @__PURE__ */ function(o) {
7347
7359
  }]]);
7348
7360
  }
7349
7361
  return A(t, o), P(t);
7350
- }(O), WS = new GS(), JS = /* @__PURE__ */ function(o) {
7362
+ }(_), WS = new GS(), JS = /* @__PURE__ */ function(o) {
7351
7363
  function t() {
7352
7364
  return w(this, t), R(this, t, ["media.edge.ConsumeMultipleProducerResponse", [{
7353
7365
  no: 1,
@@ -7360,7 +7372,7 @@ var qS = /* @__PURE__ */ function(o) {
7360
7372
  } }]]);
7361
7373
  }
7362
7374
  return A(t, o), P(t);
7363
- }(O);
7375
+ }(_);
7364
7376
  new JS();
7365
7377
  var KS = /* @__PURE__ */ function(o) {
7366
7378
  function t() {
@@ -7377,7 +7389,7 @@ var KS = /* @__PURE__ */ function(o) {
7377
7389
  } }]]);
7378
7390
  }
7379
7391
  return A(t, o), P(t);
7380
- }(O), zS = new KS(), YS = /* @__PURE__ */ function(o) {
7392
+ }(_), zS = new KS(), YS = /* @__PURE__ */ function(o) {
7381
7393
  function t() {
7382
7394
  return w(this, t), R(this, t, ["media.edge.ProducerCreateResponse", [{
7383
7395
  no: 1,
@@ -7396,7 +7408,7 @@ var KS = /* @__PURE__ */ function(o) {
7396
7408
  } }]]);
7397
7409
  }
7398
7410
  return A(t, o), P(t);
7399
- }(O), QS = new YS(), XS = /* @__PURE__ */ function(o) {
7411
+ }(_), QS = new YS(), XS = /* @__PURE__ */ function(o) {
7400
7412
  function t() {
7401
7413
  return w(this, t), R(this, t, ["media.edge.ProducerScoreResponse", [{
7402
7414
  no: 1,
@@ -7409,7 +7421,7 @@ var KS = /* @__PURE__ */ function(o) {
7409
7421
  } }]]);
7410
7422
  }
7411
7423
  return A(t, o), P(t);
7412
- }(O);
7424
+ }(_);
7413
7425
  new XS();
7414
7426
  var ZS = /* @__PURE__ */ function(o) {
7415
7427
  function t() {
@@ -7428,28 +7440,28 @@ var ZS = /* @__PURE__ */ function(o) {
7428
7440
  }]]);
7429
7441
  }
7430
7442
  return A(t, o), P(t);
7431
- }(O);
7443
+ }(_);
7432
7444
  new ZS();
7433
7445
  var xS = /* @__PURE__ */ function(o) {
7434
7446
  function t() {
7435
7447
  return w(this, t), R(this, t, ["media.edge.NoActiveSpeakerResponse", []]);
7436
7448
  }
7437
7449
  return A(t, o), P(t);
7438
- }(O);
7450
+ }(_);
7439
7451
  new xS();
7440
7452
  var eE = /* @__PURE__ */ function(o) {
7441
7453
  function t() {
7442
7454
  return w(this, t), R(this, t, ["media.edge.ProducerToggleResponse", []]);
7443
7455
  }
7444
7456
  return A(t, o), P(t);
7445
- }(O);
7457
+ }(_);
7446
7458
  new eE();
7447
7459
  var rE = /* @__PURE__ */ function(o) {
7448
7460
  function t() {
7449
7461
  return w(this, t), R(this, t, ["media.edge.ConsumerToggleResponse", []]);
7450
7462
  }
7451
7463
  return A(t, o), P(t);
7452
- }(O);
7464
+ }(_);
7453
7465
  new rE();
7454
7466
  var tE = /* @__PURE__ */ function(o) {
7455
7467
  function t() {
@@ -7458,19 +7470,19 @@ var tE = /* @__PURE__ */ function(o) {
7458
7470
  } }]]);
7459
7471
  }
7460
7472
  return A(t, o), P(t);
7461
- }(O), nE = new tE(), aE = /* @__PURE__ */ function(o) {
7473
+ }(_), nE = new tE(), aE = /* @__PURE__ */ function(o) {
7462
7474
  function t() {
7463
7475
  return w(this, t), R(this, t, ["media.edge.ConsumerClosingResponse", [{ no: 1, name: "description", kind: "message", T: function() {
7464
7476
  return Ln;
7465
7477
  } }]]);
7466
7478
  }
7467
7479
  return A(t, o), P(t);
7468
- }(O), iE = new aE(), sE = /* @__PURE__ */ function(o) {
7480
+ }(_), iE = new aE(), sE = /* @__PURE__ */ function(o) {
7469
7481
  function t() {
7470
7482
  return w(this, t), R(this, t, ["media.edge.GlobalPeerPinningResponse", []]);
7471
7483
  }
7472
7484
  return A(t, o), P(t);
7473
- }(O);
7485
+ }(_);
7474
7486
  new sE();
7475
7487
  var oE = /* @__PURE__ */ function(o) {
7476
7488
  function t() {
@@ -7483,7 +7495,7 @@ var oE = /* @__PURE__ */ function(o) {
7483
7495
  }]]);
7484
7496
  }
7485
7497
  return A(t, o), P(t);
7486
- }(O);
7498
+ }(_);
7487
7499
  new oE();
7488
7500
  var uE = /* @__PURE__ */ function(o) {
7489
7501
  function t() {
@@ -7496,7 +7508,7 @@ var uE = /* @__PURE__ */ function(o) {
7496
7508
  }]]);
7497
7509
  }
7498
7510
  return A(t, o), P(t);
7499
- }(O);
7511
+ }(_);
7500
7512
  new uE();
7501
7513
  var cE = /* @__PURE__ */ function(o) {
7502
7514
  function t() {
@@ -7509,7 +7521,7 @@ var cE = /* @__PURE__ */ function(o) {
7509
7521
  }]]);
7510
7522
  }
7511
7523
  return A(t, o), P(t);
7512
- }(O), lE = new cE(), dE = /* @__PURE__ */ function(o) {
7524
+ }(_), lE = new cE(), dE = /* @__PURE__ */ function(o) {
7513
7525
  function t() {
7514
7526
  return w(this, t), R(this, t, ["media.edge.HostMediaControlForAllPeerResponse", [{
7515
7527
  no: 1,
@@ -7520,7 +7532,7 @@ var cE = /* @__PURE__ */ function(o) {
7520
7532
  }]]);
7521
7533
  }
7522
7534
  return A(t, o), P(t);
7523
- }(O), pE = new dE(), hE = /* @__PURE__ */ function(o) {
7535
+ }(_), pE = new dE(), hE = /* @__PURE__ */ function(o) {
7524
7536
  function t() {
7525
7537
  return w(this, t), R(this, t, ["media.edge.PeerDisplayNameEditResponse", [{
7526
7538
  no: 1,
@@ -7531,14 +7543,14 @@ var cE = /* @__PURE__ */ function(o) {
7531
7543
  }]]);
7532
7544
  }
7533
7545
  return A(t, o), P(t);
7534
- }(O), vE = new hE(), fE = /* @__PURE__ */ function(o) {
7546
+ }(_), vE = new hE(), fE = /* @__PURE__ */ function(o) {
7535
7547
  function t() {
7536
7548
  return w(this, t), R(this, t, ["media.edge.PeerJoinBroadcastResponse", [{ no: 1, name: "participant", kind: "message", T: function() {
7537
7549
  return Hf;
7538
7550
  } }]]);
7539
7551
  }
7540
7552
  return A(t, o), P(t);
7541
- }(O), $h = new fE(), gE = /* @__PURE__ */ function(o) {
7553
+ }(_), $h = new fE(), gE = /* @__PURE__ */ function(o) {
7542
7554
  function t() {
7543
7555
  return w(this, t), R(this, t, ["media.edge.TrackSubscriptionKind", [{
7544
7556
  no: 1,
@@ -7555,7 +7567,7 @@ var cE = /* @__PURE__ */ function(o) {
7555
7567
  }]]);
7556
7568
  }
7557
7569
  return A(t, o), P(t);
7558
- }(O), Lh = new gE(), mE = /* @__PURE__ */ function(o) {
7570
+ }(_), Lh = new gE(), mE = /* @__PURE__ */ function(o) {
7559
7571
  function t() {
7560
7572
  return w(this, t), R(this, t, ["media.edge.TrackSubscription", [{
7561
7573
  no: 1,
@@ -7570,7 +7582,7 @@ var cE = /* @__PURE__ */ function(o) {
7570
7582
  } }]]);
7571
7583
  }
7572
7584
  return A(t, o), P(t);
7573
- }(O), yE = new mE(), kE = /* @__PURE__ */ function(o) {
7585
+ }(_), yE = new mE(), kE = /* @__PURE__ */ function(o) {
7574
7586
  function t() {
7575
7587
  return w(this, t), R(this, t, ["media.edge.PeerProducingTransportCreateBroadcastResponse", [{
7576
7588
  no: 1,
@@ -7585,7 +7597,7 @@ var cE = /* @__PURE__ */ function(o) {
7585
7597
  } }]]);
7586
7598
  }
7587
7599
  return A(t, o), P(t);
7588
- }(O);
7600
+ }(_);
7589
7601
  new kE();
7590
7602
  var bE = /* @__PURE__ */ function(o) {
7591
7603
  function t() {
@@ -7600,7 +7612,7 @@ var bE = /* @__PURE__ */ function(o) {
7600
7612
  } }]]);
7601
7613
  }
7602
7614
  return A(t, o), P(t);
7603
- }(O), TE = new bE(), wE = /* @__PURE__ */ function(o) {
7615
+ }(_), TE = new bE(), wE = /* @__PURE__ */ function(o) {
7604
7616
  function t() {
7605
7617
  return w(this, t), R(this, t, ["media.edge.PeerProducerToggleBroadcastResponse", [{
7606
7618
  no: 1,
@@ -7620,7 +7632,7 @@ var bE = /* @__PURE__ */ function(o) {
7620
7632
  }]]);
7621
7633
  }
7622
7634
  return A(t, o), P(t);
7623
- }(O), Nh = new wE(), PE = /* @__PURE__ */ function(o) {
7635
+ }(_), Nh = new wE(), PE = /* @__PURE__ */ function(o) {
7624
7636
  function t() {
7625
7637
  return w(this, t), R(this, t, ["media.edge.PeerProducerCloseBroadcastResponse", [{
7626
7638
  no: 1,
@@ -7633,7 +7645,7 @@ var bE = /* @__PURE__ */ function(o) {
7633
7645
  } }]]);
7634
7646
  }
7635
7647
  return A(t, o), P(t);
7636
- }(O), SE = new PE(), EE = /* @__PURE__ */ function(o) {
7648
+ }(_), SE = new PE(), EE = /* @__PURE__ */ function(o) {
7637
7649
  function t() {
7638
7650
  return w(this, t), R(this, t, ["media.edge.PeerLeaveBroadcastResponse", [{
7639
7651
  no: 1,
@@ -7644,7 +7656,7 @@ var bE = /* @__PURE__ */ function(o) {
7644
7656
  }]]);
7645
7657
  }
7646
7658
  return A(t, o), P(t);
7647
- }(O), pd = new EE(), CE = /* @__PURE__ */ function(o) {
7659
+ }(_), pd = new EE(), CE = /* @__PURE__ */ function(o) {
7648
7660
  function t() {
7649
7661
  return w(this, t), R(this, t, ["media.edge.GlobalPeerPinningBroadcastResponse", [{
7650
7662
  no: 1,
@@ -7655,7 +7667,7 @@ var bE = /* @__PURE__ */ function(o) {
7655
7667
  }]]);
7656
7668
  }
7657
7669
  return A(t, o), P(t);
7658
- }(O), Vh = new CE(), RE = /* @__PURE__ */ function(o) {
7670
+ }(_), Vh = new CE(), RE = /* @__PURE__ */ function(o) {
7659
7671
  function t() {
7660
7672
  return w(this, t), R(this, t, ["media.edge.GlobalPeerUnPinningBroadcastResponse", [{
7661
7673
  no: 1,
@@ -7666,7 +7678,7 @@ var bE = /* @__PURE__ */ function(o) {
7666
7678
  }]]);
7667
7679
  }
7668
7680
  return A(t, o), P(t);
7669
- }(O);
7681
+ }(_);
7670
7682
  new RE();
7671
7683
  var AE = /* @__PURE__ */ function(o) {
7672
7684
  function t() {
@@ -7679,7 +7691,7 @@ var AE = /* @__PURE__ */ function(o) {
7679
7691
  }]]);
7680
7692
  }
7681
7693
  return A(t, o), P(t);
7682
- }(O);
7694
+ }(_);
7683
7695
  new AE();
7684
7696
  var IE = /* @__PURE__ */ function(o) {
7685
7697
  function t() {
@@ -7692,7 +7704,7 @@ var IE = /* @__PURE__ */ function(o) {
7692
7704
  }]]);
7693
7705
  }
7694
7706
  return A(t, o), P(t);
7695
- }(O);
7707
+ }(_);
7696
7708
  new IE();
7697
7709
  var ME = /* @__PURE__ */ function(o) {
7698
7710
  function t() {
@@ -7711,7 +7723,7 @@ var ME = /* @__PURE__ */ function(o) {
7711
7723
  }]]);
7712
7724
  }
7713
7725
  return A(t, o), P(t);
7714
- }(O);
7726
+ }(_);
7715
7727
  new ME();
7716
7728
  var _E = /* @__PURE__ */ function(o) {
7717
7729
  function t() {
@@ -7724,7 +7736,7 @@ var _E = /* @__PURE__ */ function(o) {
7724
7736
  }]]);
7725
7737
  }
7726
7738
  return A(t, o), P(t);
7727
- }(O);
7739
+ }(_);
7728
7740
  new _E();
7729
7741
  var OE = /* @__PURE__ */ function(o) {
7730
7742
  function t() {
@@ -7737,7 +7749,7 @@ var OE = /* @__PURE__ */ function(o) {
7737
7749
  }]]);
7738
7750
  }
7739
7751
  return A(t, o), P(t);
7740
- }(O);
7752
+ }(_);
7741
7753
  new OE();
7742
7754
  var DE = /* @__PURE__ */ function(o) {
7743
7755
  function t() {
@@ -7762,7 +7774,7 @@ var DE = /* @__PURE__ */ function(o) {
7762
7774
  }]]);
7763
7775
  }
7764
7776
  return A(t, o), P(t);
7765
- }(O), Pl = new DE(), $E = /* @__PURE__ */ function(o) {
7777
+ }(_), Pl = new DE(), $E = /* @__PURE__ */ function(o) {
7766
7778
  function t() {
7767
7779
  return w(this, t), R(this, t, ["socket.api.BaseSocketHubMessage", [{
7768
7780
  no: 1,
@@ -7817,7 +7829,7 @@ var DE = /* @__PURE__ */ function(o) {
7817
7829
  }]]);
7818
7830
  }
7819
7831
  return A(t, o), P(t);
7820
- }(O);
7832
+ }(_);
7821
7833
  new $E();
7822
7834
  var LE = /* @__PURE__ */ function(o) {
7823
7835
  function t() {
@@ -7837,7 +7849,7 @@ var LE = /* @__PURE__ */ function(o) {
7837
7849
  }]]);
7838
7850
  }
7839
7851
  return A(t, o), P(t);
7840
- }(O), NE = new LE(), Vs;
7852
+ }(_), NE = new LE(), Vs;
7841
7853
  (function(o) {
7842
7854
  o[o.BROWSER = 0] = "BROWSER", o[o.TRACK = 1] = "TRACK", o[o.COMPOSITE = 2] = "COMPOSITE";
7843
7855
  })(Vs || (Vs = {}));
@@ -7880,7 +7892,7 @@ var VE = /* @__PURE__ */ function(o) {
7880
7892
  }]]);
7881
7893
  }
7882
7894
  return A(t, o), P(t);
7883
- }(O), UE = new VE(), jE = /* @__PURE__ */ function(o) {
7895
+ }(_), UE = new VE(), jE = /* @__PURE__ */ function(o) {
7884
7896
  function t() {
7885
7897
  return w(this, t), R(this, t, ["socket.room.Peer", [{
7886
7898
  no: 1,
@@ -7934,14 +7946,14 @@ var VE = /* @__PURE__ */ function(o) {
7934
7946
  } }]]);
7935
7947
  }
7936
7948
  return A(t, o), P(t);
7937
- }(O), al = new jE(), FE = /* @__PURE__ */ function(o) {
7949
+ }(_), al = new jE(), FE = /* @__PURE__ */ function(o) {
7938
7950
  function t() {
7939
7951
  return w(this, t), R(this, t, ["socket.room.PeerInfoResponse", [{ no: 1, name: "peer", kind: "message", T: function() {
7940
7952
  return al;
7941
7953
  } }]]);
7942
7954
  }
7943
7955
  return A(t, o), P(t);
7944
- }(O), po = new FE(), HE = /* @__PURE__ */ function(o) {
7956
+ }(_), po = new FE(), HE = /* @__PURE__ */ function(o) {
7945
7957
  function t() {
7946
7958
  return w(this, t), R(this, t, ["socket.room.PeerStatusUpdate", [{
7947
7959
  no: 1,
@@ -7960,7 +7972,7 @@ var VE = /* @__PURE__ */ function(o) {
7960
7972
  } }]]);
7961
7973
  }
7962
7974
  return A(t, o), P(t);
7963
- }(O), Uh = new HE(), BE = /* @__PURE__ */ function(o) {
7975
+ }(_), Uh = new HE(), BE = /* @__PURE__ */ function(o) {
7964
7976
  function t() {
7965
7977
  return w(this, t), R(this, t, ["socket.room.RoomPeersInfoRequest", [{
7966
7978
  no: 1,
@@ -7983,14 +7995,14 @@ var VE = /* @__PURE__ */ function(o) {
7983
7995
  }]]);
7984
7996
  }
7985
7997
  return A(t, o), P(t);
7986
- }(O), qE = new BE(), GE = /* @__PURE__ */ function(o) {
7998
+ }(_), qE = new BE(), GE = /* @__PURE__ */ function(o) {
7987
7999
  function t() {
7988
8000
  return w(this, t), R(this, t, ["socket.room.RoomPeersInfoResponse", [{ no: 1, name: "peers", kind: "message", repeat: 1, T: function() {
7989
8001
  return al;
7990
8002
  } }]]);
7991
8003
  }
7992
8004
  return A(t, o), P(t);
7993
- }(O), Sl = new GE(), WE = /* @__PURE__ */ function(o) {
8005
+ }(_), Sl = new GE(), WE = /* @__PURE__ */ function(o) {
7994
8006
  function t() {
7995
8007
  return w(this, t), R(this, t, ["socket.room.RoomPeerCountResponse", [{
7996
8008
  no: 1,
@@ -8002,7 +8014,7 @@ var VE = /* @__PURE__ */ function(o) {
8002
8014
  }]]);
8003
8015
  }
8004
8016
  return A(t, o), P(t);
8005
- }(O), jh = new WE(), JE = /* @__PURE__ */ function(o) {
8017
+ }(_), jh = new WE(), JE = /* @__PURE__ */ function(o) {
8006
8018
  function t() {
8007
8019
  return w(this, t), R(this, t, ["socket.room.Room", [{
8008
8020
  no: 1,
@@ -8035,7 +8047,7 @@ var VE = /* @__PURE__ */ function(o) {
8035
8047
  }]]);
8036
8048
  }
8037
8049
  return A(t, o), P(t);
8038
- }(O), Bf = new JE(), KE = /* @__PURE__ */ function(o) {
8050
+ }(_), Bf = new JE(), KE = /* @__PURE__ */ function(o) {
8039
8051
  function t() {
8040
8052
  return w(this, t), R(this, t, ["socket.room.ActiveRecording", [{
8041
8053
  no: 1,
@@ -8054,14 +8066,14 @@ var VE = /* @__PURE__ */ function(o) {
8054
8066
  }]]);
8055
8067
  }
8056
8068
  return A(t, o), P(t);
8057
- }(O), zE = new KE(), YE = /* @__PURE__ */ function(o) {
8069
+ }(_), zE = new KE(), YE = /* @__PURE__ */ function(o) {
8058
8070
  function t() {
8059
8071
  return w(this, t), R(this, t, ["socket.room.RoomInfoResponse", [{ no: 1, name: "room", kind: "message", T: function() {
8060
8072
  return Bf;
8061
8073
  } }]]);
8062
8074
  }
8063
8075
  return A(t, o), P(t);
8064
- }(O), Fh = new YE(), QE = /* @__PURE__ */ function(o) {
8076
+ }(_), Fh = new YE(), QE = /* @__PURE__ */ function(o) {
8065
8077
  function t() {
8066
8078
  return w(this, t), R(this, t, ["socket.room.GetPeerInfoRequest", [{
8067
8079
  no: 1,
@@ -8072,7 +8084,7 @@ var VE = /* @__PURE__ */ function(o) {
8072
8084
  }]]);
8073
8085
  }
8074
8086
  return A(t, o), P(t);
8075
- }(O), qf = new QE(), XE = /* @__PURE__ */ function(o) {
8087
+ }(_), qf = new QE(), XE = /* @__PURE__ */ function(o) {
8076
8088
  function t() {
8077
8089
  return w(this, t), R(this, t, ["socket.room.UpdatePeerInfoRequest", [{
8078
8090
  no: 1,
@@ -8090,7 +8102,7 @@ var VE = /* @__PURE__ */ function(o) {
8090
8102
  }]]);
8091
8103
  }
8092
8104
  return A(t, o), P(t);
8093
- }(O);
8105
+ }(_);
8094
8106
  new XE();
8095
8107
  var ZE = /* @__PURE__ */ function(o) {
8096
8108
  function t() {
@@ -8136,7 +8148,7 @@ var ZE = /* @__PURE__ */ function(o) {
8136
8148
  }]]);
8137
8149
  }
8138
8150
  return A(t, o), P(t);
8139
- }(O), xE = new ZE(), eC = /* @__PURE__ */ function(o) {
8151
+ }(_), xE = new ZE(), eC = /* @__PURE__ */ function(o) {
8140
8152
  function t() {
8141
8153
  return w(this, t), R(this, t, ["socket.room.LeaveRoomRequest", [{ no: 1, name: "peer", kind: "message", T: function() {
8142
8154
  return al;
@@ -8151,21 +8163,21 @@ var ZE = /* @__PURE__ */ function(o) {
8151
8163
  }]]);
8152
8164
  }
8153
8165
  return A(t, o), P(t);
8154
- }(O), rC = new eC(), tC = /* @__PURE__ */ function(o) {
8166
+ }(_), rC = new eC(), tC = /* @__PURE__ */ function(o) {
8155
8167
  function t() {
8156
8168
  return w(this, t), R(this, t, ["socket.room.UpdateRoomInfoRequest", [{ no: 1, name: "room", kind: "message", T: function() {
8157
8169
  return Bf;
8158
8170
  } }]]);
8159
8171
  }
8160
8172
  return A(t, o), P(t);
8161
- }(O);
8173
+ }(_);
8162
8174
  new tC();
8163
8175
  var nC = /* @__PURE__ */ function(o) {
8164
8176
  function t() {
8165
8177
  return w(this, t), R(this, t, ["socket.room.GetConnectedRoomsDumpRequest", []]);
8166
8178
  }
8167
8179
  return A(t, o), P(t);
8168
- }(O);
8180
+ }(_);
8169
8181
  new nC();
8170
8182
  var aC = /* @__PURE__ */ function(o) {
8171
8183
  function t() {
@@ -8186,7 +8198,7 @@ var aC = /* @__PURE__ */ function(o) {
8186
8198
  }]]);
8187
8199
  }
8188
8200
  return A(t, o), P(t);
8189
- }(O), Ip = new aC(), iC = /* @__PURE__ */ function(o) {
8201
+ }(_), Ip = new aC(), iC = /* @__PURE__ */ function(o) {
8190
8202
  function t() {
8191
8203
  return w(this, t), R(this, t, ["socket.room.ConnectedMeetingPeer", [{
8192
8204
  no: 1,
@@ -8226,7 +8238,7 @@ var aC = /* @__PURE__ */ function(o) {
8226
8238
  }]]);
8227
8239
  }
8228
8240
  return A(t, o), P(t);
8229
- }(O), sC = new iC(), oC = /* @__PURE__ */ function(o) {
8241
+ }(_), sC = new iC(), oC = /* @__PURE__ */ function(o) {
8230
8242
  function t() {
8231
8243
  return w(this, t), R(this, t, ["socket.room.ConnectedMeetingDump", [{
8232
8244
  no: 1,
@@ -8247,7 +8259,7 @@ var aC = /* @__PURE__ */ function(o) {
8247
8259
  } }]]);
8248
8260
  }
8249
8261
  return A(t, o), P(t);
8250
- }(O), Hh = new oC(), uC = /* @__PURE__ */ function(o) {
8262
+ }(_), Hh = new oC(), uC = /* @__PURE__ */ function(o) {
8251
8263
  function t() {
8252
8264
  return w(this, t), R(this, t, ["socket.room.GetConnectedRoomsDumpResponse", [{ no: 1, name: "parent_meeting", kind: "message", T: function() {
8253
8265
  return Hh;
@@ -8256,7 +8268,7 @@ var aC = /* @__PURE__ */ function(o) {
8256
8268
  } }]]);
8257
8269
  }
8258
8270
  return A(t, o), P(t);
8259
- }(O), cC = new uC(), lC = /* @__PURE__ */ function(o) {
8271
+ }(_), cC = new uC(), lC = /* @__PURE__ */ function(o) {
8260
8272
  function t() {
8261
8273
  return w(this, t), R(this, t, ["socket.room.CreateRoomRequestPayload", [{
8262
8274
  no: 1,
@@ -8268,14 +8280,14 @@ var aC = /* @__PURE__ */ function(o) {
8268
8280
  }]]);
8269
8281
  }
8270
8282
  return A(t, o), P(t);
8271
- }(O), dC = new lC(), pC = /* @__PURE__ */ function(o) {
8283
+ }(_), dC = new lC(), pC = /* @__PURE__ */ function(o) {
8272
8284
  function t() {
8273
8285
  return w(this, t), R(this, t, ["socket.room.CreateConnectedRoomsRequest", [{ no: 1, name: "payloads", kind: "message", repeat: 1, T: function() {
8274
8286
  return dC;
8275
8287
  } }]]);
8276
8288
  }
8277
8289
  return A(t, o), P(t);
8278
- }(O), hC = new pC(), vC = /* @__PURE__ */ function(o) {
8290
+ }(_), hC = new pC(), vC = /* @__PURE__ */ function(o) {
8279
8291
  function t() {
8280
8292
  return w(this, t), R(this, t, ["socket.room.CreateRoomResponsePayload", [{
8281
8293
  no: 1,
@@ -8296,14 +8308,14 @@ var aC = /* @__PURE__ */ function(o) {
8296
8308
  } }]]);
8297
8309
  }
8298
8310
  return A(t, o), P(t);
8299
- }(O), fC = new vC(), gC = /* @__PURE__ */ function(o) {
8311
+ }(_), fC = new vC(), gC = /* @__PURE__ */ function(o) {
8300
8312
  function t() {
8301
8313
  return w(this, t), R(this, t, ["socket.room.CreateConnectedRoomsResponse", [{ no: 1, name: "payloads", kind: "message", repeat: 1, T: function() {
8302
8314
  return fC;
8303
8315
  } }]]);
8304
8316
  }
8305
8317
  return A(t, o), P(t);
8306
- }(O), Bh = new gC(), mC = /* @__PURE__ */ function(o) {
8318
+ }(_), Bh = new gC(), mC = /* @__PURE__ */ function(o) {
8307
8319
  function t() {
8308
8320
  return w(this, t), R(this, t, ["socket.room.UpdateRoomRequestPayload", [{
8309
8321
  no: 1,
@@ -8322,14 +8334,14 @@ var aC = /* @__PURE__ */ function(o) {
8322
8334
  }]]);
8323
8335
  }
8324
8336
  return A(t, o), P(t);
8325
- }(O), yC = new mC(), kC = /* @__PURE__ */ function(o) {
8337
+ }(_), yC = new mC(), kC = /* @__PURE__ */ function(o) {
8326
8338
  function t() {
8327
8339
  return w(this, t), R(this, t, ["socket.room.UpdateConnectedRoomsRequest", [{ no: 1, name: "payloads", kind: "message", repeat: 1, T: function() {
8328
8340
  return yC;
8329
8341
  } }]]);
8330
8342
  }
8331
8343
  return A(t, o), P(t);
8332
- }(O);
8344
+ }(_);
8333
8345
  new kC();
8334
8346
  var bC = /* @__PURE__ */ function(o) {
8335
8347
  function t() {
@@ -8343,21 +8355,21 @@ var bC = /* @__PURE__ */ function(o) {
8343
8355
  }]]);
8344
8356
  }
8345
8357
  return A(t, o), P(t);
8346
- }(O), TC = new bC(), wC = /* @__PURE__ */ function(o) {
8358
+ }(_), TC = new bC(), wC = /* @__PURE__ */ function(o) {
8347
8359
  function t() {
8348
8360
  return w(this, t), R(this, t, ["socket.room.DisableConnectedRoomsRequest", [{ no: 1, name: "payloads", kind: "message", repeat: 1, T: function() {
8349
8361
  return TC;
8350
8362
  } }]]);
8351
8363
  }
8352
8364
  return A(t, o), P(t);
8353
- }(O), PC = new wC(), SC = /* @__PURE__ */ function(o) {
8365
+ }(_), PC = new wC(), SC = /* @__PURE__ */ function(o) {
8354
8366
  function t() {
8355
8367
  return w(this, t), R(this, t, ["socket.room.DisableConnectedRoomsResponse", [{ no: 1, name: "payloads", kind: "message", repeat: 1, T: function() {
8356
8368
  return RC;
8357
8369
  } }]]);
8358
8370
  }
8359
8371
  return A(t, o), P(t);
8360
- }(O), EC = new SC(), CC = /* @__PURE__ */ function(o) {
8372
+ }(_), EC = new SC(), CC = /* @__PURE__ */ function(o) {
8361
8373
  function t() {
8362
8374
  return w(this, t), R(this, t, ["socket.room.DisableConnectedRoomPayload", [{
8363
8375
  no: 1,
@@ -8385,7 +8397,7 @@ var bC = /* @__PURE__ */ function(o) {
8385
8397
  } }]]);
8386
8398
  }
8387
8399
  return A(t, o), P(t);
8388
- }(O), RC = new CC(), AC = /* @__PURE__ */ function(o) {
8400
+ }(_), RC = new CC(), AC = /* @__PURE__ */ function(o) {
8389
8401
  function t() {
8390
8402
  return w(this, t), R(this, t, ["socket.room.MovePeerPayload", [{
8391
8403
  no: 1,
@@ -8404,7 +8416,7 @@ var bC = /* @__PURE__ */ function(o) {
8404
8416
  }]]);
8405
8417
  }
8406
8418
  return A(t, o), P(t);
8407
- }(O), IC = new AC(), MC = /* @__PURE__ */ function(o) {
8419
+ }(_), IC = new AC(), MC = /* @__PURE__ */ function(o) {
8408
8420
  function t() {
8409
8421
  return w(this, t), R(this, t, ["socket.room.MovePeersBetweenRoomsRequest", [{
8410
8422
  no: 1,
@@ -8425,7 +8437,7 @@ var bC = /* @__PURE__ */ function(o) {
8425
8437
  } }]]);
8426
8438
  }
8427
8439
  return A(t, o), P(t);
8428
- }(O), _C = new MC(), OC = /* @__PURE__ */ function(o) {
8440
+ }(_), _C = new MC(), OC = /* @__PURE__ */ function(o) {
8429
8441
  function t() {
8430
8442
  return w(this, t), R(this, t, ["socket.room.MovedPeer", [{
8431
8443
  no: 1,
@@ -8446,14 +8458,14 @@ var bC = /* @__PURE__ */ function(o) {
8446
8458
  } }]]);
8447
8459
  }
8448
8460
  return A(t, o), P(t);
8449
- }(O), Gf = new OC(), DC = /* @__PURE__ */ function(o) {
8461
+ }(_), Gf = new OC(), DC = /* @__PURE__ */ function(o) {
8450
8462
  function t() {
8451
8463
  return w(this, t), R(this, t, ["socket.room.MovePeersBetweenRoomsResponse", [{ no: 1, name: "payloads", kind: "message", repeat: 1, T: function() {
8452
8464
  return Gf;
8453
8465
  } }]]);
8454
8466
  }
8455
8467
  return A(t, o), P(t);
8456
- }(O);
8468
+ }(_);
8457
8469
  new DC();
8458
8470
  var $C = /* @__PURE__ */ function(o) {
8459
8471
  function t() {
@@ -8474,14 +8486,14 @@ var $C = /* @__PURE__ */ function(o) {
8474
8486
  }]]);
8475
8487
  }
8476
8488
  return A(t, o), P(t);
8477
- }(O), LC = new $C(), NC = /* @__PURE__ */ function(o) {
8489
+ }(_), LC = new $C(), NC = /* @__PURE__ */ function(o) {
8478
8490
  function t() {
8479
8491
  return w(this, t), R(this, t, ["socket.room.GetAllAddedParticipantsResponse", [{ no: 1, name: "participants", kind: "message", repeat: 1, T: function() {
8480
8492
  return jC;
8481
8493
  } }]]);
8482
8494
  }
8483
8495
  return A(t, o), P(t);
8484
- }(O), VC = new NC(), UC = /* @__PURE__ */ function(o) {
8496
+ }(_), VC = new NC(), UC = /* @__PURE__ */ function(o) {
8485
8497
  function t() {
8486
8498
  return w(this, t), R(this, t, ["socket.room.AddedParticipant", [{
8487
8499
  no: 1,
@@ -8512,7 +8524,7 @@ var $C = /* @__PURE__ */ function(o) {
8512
8524
  }]]);
8513
8525
  }
8514
8526
  return A(t, o), P(t);
8515
- }(O), jC = new UC(), FC = /* @__PURE__ */ function(o) {
8527
+ }(_), jC = new UC(), FC = /* @__PURE__ */ function(o) {
8516
8528
  function t() {
8517
8529
  return w(this, t), R(this, t, ["socket.room.RemoveParticipantsRequest", [{
8518
8530
  no: 1,
@@ -8524,7 +8536,7 @@ var $C = /* @__PURE__ */ function(o) {
8524
8536
  }]]);
8525
8537
  }
8526
8538
  return A(t, o), P(t);
8527
- }(O), Wf = new FC(), HC = /* @__PURE__ */ function(o) {
8539
+ }(_), Wf = new FC(), HC = /* @__PURE__ */ function(o) {
8528
8540
  function t() {
8529
8541
  return w(this, t), R(this, t, ["socket.room.BroadcastMessage", [{
8530
8542
  no: 1,
@@ -8557,7 +8569,7 @@ var $C = /* @__PURE__ */ function(o) {
8557
8569
  } }]]);
8558
8570
  }
8559
8571
  return A(t, o), P(t);
8560
- }(O), jo = new HC(), BC = /* @__PURE__ */ function(o) {
8572
+ }(_), jo = new HC(), BC = /* @__PURE__ */ function(o) {
8561
8573
  function t() {
8562
8574
  return w(this, t), R(this, t, ["socket.room.AcceptWaitingRoomRequests", [{
8563
8575
  no: 1,
@@ -8569,7 +8581,7 @@ var $C = /* @__PURE__ */ function(o) {
8569
8581
  }]]);
8570
8582
  }
8571
8583
  return A(t, o), P(t);
8572
- }(O), qC = new BC(), GC = /* @__PURE__ */ function(o) {
8584
+ }(_), qC = new BC(), GC = /* @__PURE__ */ function(o) {
8573
8585
  function t() {
8574
8586
  return w(this, t), R(this, t, ["socket.room.DenyWaitingRoomRequests", [{
8575
8587
  no: 1,
@@ -8581,7 +8593,7 @@ var $C = /* @__PURE__ */ function(o) {
8581
8593
  }]]);
8582
8594
  }
8583
8595
  return A(t, o), P(t);
8584
- }(O), WC = new GC(), JC = /* @__PURE__ */ function(o) {
8596
+ }(_), WC = new GC(), JC = /* @__PURE__ */ function(o) {
8585
8597
  function t() {
8586
8598
  return w(this, t), R(this, t, ["socket.room.WaitingRoomRequest", [{
8587
8599
  no: 1,
@@ -8625,14 +8637,14 @@ var $C = /* @__PURE__ */ function(o) {
8625
8637
  }]]);
8626
8638
  }
8627
8639
  return A(t, o), P(t);
8628
- }(O), KC = new JC(), zC = /* @__PURE__ */ function(o) {
8640
+ }(_), KC = new JC(), zC = /* @__PURE__ */ function(o) {
8629
8641
  function t() {
8630
8642
  return w(this, t), R(this, t, ["socket.room.GetWaitingRoomRequests", [{ no: 1, name: "requests", kind: "message", repeat: 1, T: function() {
8631
8643
  return KC;
8632
8644
  } }]]);
8633
8645
  }
8634
8646
  return A(t, o), P(t);
8635
- }(O), qh = new zC(), YC = /* @__PURE__ */ function(o) {
8647
+ }(_), qh = new zC(), YC = /* @__PURE__ */ function(o) {
8636
8648
  function t() {
8637
8649
  return w(this, t), R(this, t, ["socket.room.GetRoomStageStateResponse", [{
8638
8650
  no: 1,
@@ -8658,7 +8670,7 @@ var $C = /* @__PURE__ */ function(o) {
8658
8670
  }]]);
8659
8671
  }
8660
8672
  return A(t, o), P(t);
8661
- }(O), Gh = new YC(), fd;
8673
+ }(_), Gh = new YC(), fd;
8662
8674
  (function(o) {
8663
8675
  o[o.NONE = 0] = "NONE", o[o.SKIP = 1] = "SKIP", o[o.ON_PRIVILEGED_USER_ENTRY = 2] = "ON_PRIVILEGED_USER_ENTRY", o[o.SKIP_ON_ACCEPT = 3] = "SKIP_ON_ACCEPT";
8664
8676
  })(fd || (fd = {}));
@@ -8692,7 +8704,7 @@ var QC = /* @__PURE__ */ function(o) {
8692
8704
  }]]);
8693
8705
  }
8694
8706
  return A(t, o), P(t);
8695
- }(O), XC = new QC(), ZC = /* @__PURE__ */ function(o) {
8707
+ }(_), XC = new QC(), ZC = /* @__PURE__ */ function(o) {
8696
8708
  function t() {
8697
8709
  return w(this, t), R(this, t, ["socket.preset.PluginsPermissionsUpdate", [{
8698
8710
  no: 1,
@@ -8711,7 +8723,7 @@ var QC = /* @__PURE__ */ function(o) {
8711
8723
  }]]);
8712
8724
  }
8713
8725
  return A(t, o), P(t);
8714
- }(O), xC = new ZC(), eR = /* @__PURE__ */ function(o) {
8726
+ }(_), xC = new ZC(), eR = /* @__PURE__ */ function(o) {
8715
8727
  function t() {
8716
8728
  return w(this, t), R(this, t, ["socket.preset.PublicChatPermission", [{
8717
8729
  no: 1,
@@ -8737,7 +8749,7 @@ var QC = /* @__PURE__ */ function(o) {
8737
8749
  }]]);
8738
8750
  }
8739
8751
  return A(t, o), P(t);
8740
- }(O), rR = new eR(), tR = /* @__PURE__ */ function(o) {
8752
+ }(_), rR = new eR(), tR = /* @__PURE__ */ function(o) {
8741
8753
  function t() {
8742
8754
  return w(this, t), R(this, t, ["socket.preset.PrivateChatPermission", [{
8743
8755
  no: 1,
@@ -8770,7 +8782,7 @@ var QC = /* @__PURE__ */ function(o) {
8770
8782
  }]]);
8771
8783
  }
8772
8784
  return A(t, o), P(t);
8773
- }(O), nR = new tR(), aR = /* @__PURE__ */ function(o) {
8785
+ }(_), nR = new tR(), aR = /* @__PURE__ */ function(o) {
8774
8786
  function t() {
8775
8787
  return w(this, t), R(this, t, ["socket.preset.ChatPermissionUpdate", [{ no: 1, name: "public", kind: "message", T: function() {
8776
8788
  return rR;
@@ -8779,7 +8791,7 @@ var QC = /* @__PURE__ */ function(o) {
8779
8791
  } }]]);
8780
8792
  }
8781
8793
  return A(t, o), P(t);
8782
- }(O), iR = new aR(), sR = /* @__PURE__ */ function(o) {
8794
+ }(_), iR = new aR(), sR = /* @__PURE__ */ function(o) {
8783
8795
  function t() {
8784
8796
  return w(this, t), R(this, t, ["socket.preset.ConnectedMeetingPermissionUpdate", [{
8785
8797
  no: 1,
@@ -8805,7 +8817,7 @@ var QC = /* @__PURE__ */ function(o) {
8805
8817
  }]]);
8806
8818
  }
8807
8819
  return A(t, o), P(t);
8808
- }(O), oR = new sR(), uR = /* @__PURE__ */ function(o) {
8820
+ }(_), oR = new sR(), uR = /* @__PURE__ */ function(o) {
8809
8821
  function t() {
8810
8822
  return w(this, t), R(this, t, ["socket.preset.StreamPermission", [{ no: 1, name: "can_produce", kind: "enum", opt: !0, T: function() {
8811
8823
  return ["socket.preset.StreamPermissionType", Pi, "STREAM_PERMISSION_TYPE_"];
@@ -8814,7 +8826,7 @@ var QC = /* @__PURE__ */ function(o) {
8814
8826
  } }]]);
8815
8827
  }
8816
8828
  return A(t, o), P(t);
8817
- }(O), El = new uR(), cR = /* @__PURE__ */ function(o) {
8829
+ }(_), El = new uR(), cR = /* @__PURE__ */ function(o) {
8818
8830
  function t() {
8819
8831
  return w(this, t), R(this, t, ["socket.preset.MediaPermissionUpdate", [{ no: 1, name: "video", kind: "message", T: function() {
8820
8832
  return El;
@@ -8825,7 +8837,7 @@ var QC = /* @__PURE__ */ function(o) {
8825
8837
  } }]]);
8826
8838
  }
8827
8839
  return A(t, o), P(t);
8828
- }(O), lR = new cR(), dR = /* @__PURE__ */ function(o) {
8840
+ }(_), lR = new cR(), dR = /* @__PURE__ */ function(o) {
8829
8841
  function t() {
8830
8842
  return w(this, t), R(this, t, ["socket.preset.PresetUpdates", [{ no: 1, name: "polls", kind: "message", T: function() {
8831
8843
  return XC;
@@ -8956,7 +8968,7 @@ var QC = /* @__PURE__ */ function(o) {
8956
8968
  } }]]);
8957
8969
  }
8958
8970
  return A(t, o), P(t);
8959
- }(O), Mp = new dR(), pR = /* @__PURE__ */ function(o) {
8971
+ }(_), Mp = new dR(), pR = /* @__PURE__ */ function(o) {
8960
8972
  function t() {
8961
8973
  return w(this, t), R(this, t, ["socket.preset.ReadPeersPresetRequest", [{
8962
8974
  no: 1,
@@ -8968,7 +8980,7 @@ var QC = /* @__PURE__ */ function(o) {
8968
8980
  }]]);
8969
8981
  }
8970
8982
  return A(t, o), P(t);
8971
- }(O), hR = new pR(), vR = /* @__PURE__ */ function(o) {
8983
+ }(_), hR = new pR(), vR = /* @__PURE__ */ function(o) {
8972
8984
  function t() {
8973
8985
  return w(this, t), R(this, t, ["socket.preset.PeerPreset", [{
8974
8986
  no: 1,
@@ -8991,14 +9003,14 @@ var QC = /* @__PURE__ */ function(o) {
8991
9003
  }]]);
8992
9004
  }
8993
9005
  return A(t, o), P(t);
8994
- }(O), fR = new vR(), gR = /* @__PURE__ */ function(o) {
9006
+ }(_), fR = new vR(), gR = /* @__PURE__ */ function(o) {
8995
9007
  function t() {
8996
9008
  return w(this, t), R(this, t, ["socket.preset.ReadPeersPresetResponse", [{ no: 1, name: "peer_presets", kind: "message", repeat: 1, T: function() {
8997
9009
  return fR;
8998
9010
  } }]]);
8999
9011
  }
9000
9012
  return A(t, o), P(t);
9001
- }(O), mR = new gR(), yR = /* @__PURE__ */ function(o) {
9013
+ }(_), mR = new gR(), yR = /* @__PURE__ */ function(o) {
9002
9014
  function t() {
9003
9015
  return w(this, t), R(this, t, ["socket.preset.UpdatePeerPreset", [{
9004
9016
  no: 1,
@@ -9011,21 +9023,21 @@ var QC = /* @__PURE__ */ function(o) {
9011
9023
  } }]]);
9012
9024
  }
9013
9025
  return A(t, o), P(t);
9014
- }(O), Jf = new yR(), kR = /* @__PURE__ */ function(o) {
9026
+ }(_), Jf = new yR(), kR = /* @__PURE__ */ function(o) {
9015
9027
  function t() {
9016
9028
  return w(this, t), R(this, t, ["socket.preset.UpdatePeersPresetRequest", [{ no: 1, name: "update_peers_presets", kind: "message", repeat: 1, T: function() {
9017
9029
  return Jf;
9018
9030
  } }]]);
9019
9031
  }
9020
9032
  return A(t, o), P(t);
9021
- }(O), bR = new kR(), TR = /* @__PURE__ */ function(o) {
9033
+ }(_), bR = new kR(), TR = /* @__PURE__ */ function(o) {
9022
9034
  function t() {
9023
9035
  return w(this, t), R(this, t, ["socket.preset.UpdatePeersPresetResponse", [{ no: 1, name: "update_peers_presets", kind: "message", repeat: 1, T: function() {
9024
9036
  return Jf;
9025
9037
  } }]]);
9026
9038
  }
9027
9039
  return A(t, o), P(t);
9028
- }(O), Wh = new TR(), wR = /* @__PURE__ */ function(o) {
9040
+ }(_), Wh = new TR(), wR = /* @__PURE__ */ function(o) {
9029
9041
  function t() {
9030
9042
  return w(this, t), R(this, t, ["socket.preset.PeerUserIDMap", [{
9031
9043
  no: 1,
@@ -9042,7 +9054,7 @@ var QC = /* @__PURE__ */ function(o) {
9042
9054
  }]]);
9043
9055
  }
9044
9056
  return A(t, o), P(t);
9045
- }(O), PR = new wR(), SR = /* @__PURE__ */ function(o) {
9057
+ }(_), PR = new wR(), SR = /* @__PURE__ */ function(o) {
9046
9058
  function t() {
9047
9059
  return w(this, t), R(this, t, ["socket.preset.BulkUpdatePeerPresetRequest", [{ no: 1, name: "peers", kind: "message", repeat: 1, T: function() {
9048
9060
  return PR;
@@ -9051,7 +9063,7 @@ var QC = /* @__PURE__ */ function(o) {
9051
9063
  } }]]);
9052
9064
  }
9053
9065
  return A(t, o), P(t);
9054
- }(O);
9066
+ }(_);
9055
9067
  new SR();
9056
9068
  var ER = /* @__PURE__ */ function(o) {
9057
9069
  function t() {
@@ -9060,7 +9072,7 @@ var ER = /* @__PURE__ */ function(o) {
9060
9072
  } }]]);
9061
9073
  }
9062
9074
  return A(t, o), P(t);
9063
- }(O);
9075
+ }(_);
9064
9076
  new ER();
9065
9077
  var CR = /* @__PURE__ */ function(o) {
9066
9078
  function t() {
@@ -9151,7 +9163,7 @@ var CR = /* @__PURE__ */ function(o) {
9151
9163
  }]]);
9152
9164
  }
9153
9165
  return A(t, o), P(t);
9154
- }(O), Ai = new CR(), RR = /* @__PURE__ */ function(o) {
9166
+ }(_), Ai = new CR(), RR = /* @__PURE__ */ function(o) {
9155
9167
  function t() {
9156
9168
  return w(this, t), R(this, t, ["socket.chat.GetPaginatedChatMessageFilters", [{
9157
9169
  no: 1,
@@ -9170,7 +9182,7 @@ var CR = /* @__PURE__ */ function(o) {
9170
9182
  }]]);
9171
9183
  }
9172
9184
  return A(t, o), P(t);
9173
- }(O), AR = new RR(), IR = /* @__PURE__ */ function(o) {
9185
+ }(_), AR = new RR(), IR = /* @__PURE__ */ function(o) {
9174
9186
  function t() {
9175
9187
  return w(this, t), R(this, t, ["socket.chat.GetPaginatedChatMessageRoomRequest", [{
9176
9188
  no: 1,
@@ -9209,7 +9221,7 @@ var CR = /* @__PURE__ */ function(o) {
9209
9221
  } }]]);
9210
9222
  }
9211
9223
  return A(t, o), P(t);
9212
- }(O), MR = new IR(), _R = /* @__PURE__ */ function(o) {
9224
+ }(_), MR = new IR(), _R = /* @__PURE__ */ function(o) {
9213
9225
  function t() {
9214
9226
  return w(this, t), R(this, t, ["socket.chat.GetPaginatedChatMessageRoomResponse", [{ no: 1, name: "messages", kind: "message", repeat: 1, T: function() {
9215
9227
  return Ai;
@@ -9222,14 +9234,14 @@ var CR = /* @__PURE__ */ function(o) {
9222
9234
  }]]);
9223
9235
  }
9224
9236
  return A(t, o), P(t);
9225
- }(O), OR = new _R(), DR = /* @__PURE__ */ function(o) {
9237
+ }(_), OR = new _R(), DR = /* @__PURE__ */ function(o) {
9226
9238
  function t() {
9227
9239
  return w(this, t), R(this, t, ["socket.chat.GetChatMessagesResponse", [{ no: 1, name: "messages", kind: "message", repeat: 1, T: function() {
9228
9240
  return Ai;
9229
9241
  } }]]);
9230
9242
  }
9231
9243
  return A(t, o), P(t);
9232
- }(O), Kf = new DR(), $R = /* @__PURE__ */ function(o) {
9244
+ }(_), Kf = new DR(), $R = /* @__PURE__ */ function(o) {
9233
9245
  function t() {
9234
9246
  return w(this, t), R(this, t, ["socket.chat.SendChatMessageToRoomRequest", [{
9235
9247
  no: 1,
@@ -9246,14 +9258,14 @@ var CR = /* @__PURE__ */ function(o) {
9246
9258
  }]]);
9247
9259
  }
9248
9260
  return A(t, o), P(t);
9249
- }(O), LR = new $R(), NR = /* @__PURE__ */ function(o) {
9261
+ }(_), LR = new $R(), NR = /* @__PURE__ */ function(o) {
9250
9262
  function t() {
9251
9263
  return w(this, t), R(this, t, ["socket.chat.SendChatMessageToRoomResponse", [{ no: 1, name: "message", kind: "message", T: function() {
9252
9264
  return Ai;
9253
9265
  } }]]);
9254
9266
  }
9255
9267
  return A(t, o), P(t);
9256
- }(O), Cl = new NR(), VR = /* @__PURE__ */ function(o) {
9268
+ }(_), Cl = new NR(), VR = /* @__PURE__ */ function(o) {
9257
9269
  function t() {
9258
9270
  return w(this, t), R(this, t, ["socket.chat.SendChatMessageToPeersRequest", [{
9259
9271
  no: 1,
@@ -9277,14 +9289,14 @@ var CR = /* @__PURE__ */ function(o) {
9277
9289
  }]]);
9278
9290
  }
9279
9291
  return A(t, o), P(t);
9280
- }(O), UR = new VR(), jR = /* @__PURE__ */ function(o) {
9292
+ }(_), UR = new VR(), jR = /* @__PURE__ */ function(o) {
9281
9293
  function t() {
9282
9294
  return w(this, t), R(this, t, ["socket.chat.SendChatMessageToPeersResponse", [{ no: 1, name: "message", kind: "message", T: function() {
9283
9295
  return Ai;
9284
9296
  } }]]);
9285
9297
  }
9286
9298
  return A(t, o), P(t);
9287
- }(O), Rl = new jR(), FR = /* @__PURE__ */ function(o) {
9299
+ }(_), Rl = new jR(), FR = /* @__PURE__ */ function(o) {
9288
9300
  function t() {
9289
9301
  return w(this, t), R(this, t, ["socket.chat.SendChatMessageToChannelRequest", [{
9290
9302
  no: 1,
@@ -9307,7 +9319,7 @@ var CR = /* @__PURE__ */ function(o) {
9307
9319
  }]]);
9308
9320
  }
9309
9321
  return A(t, o), P(t);
9310
- }(O);
9322
+ }(_);
9311
9323
  new FR();
9312
9324
  var HR = /* @__PURE__ */ function(o) {
9313
9325
  function t() {
@@ -9316,7 +9328,7 @@ var HR = /* @__PURE__ */ function(o) {
9316
9328
  } }]]);
9317
9329
  }
9318
9330
  return A(t, o), P(t);
9319
- }(O);
9331
+ }(_);
9320
9332
  new HR();
9321
9333
  var BR = /* @__PURE__ */ function(o) {
9322
9334
  function t() {
@@ -9357,7 +9369,7 @@ var BR = /* @__PURE__ */ function(o) {
9357
9369
  }]]);
9358
9370
  }
9359
9371
  return A(t, o), P(t);
9360
- }(O), qR = new BR(), GR = /* @__PURE__ */ function(o) {
9372
+ }(_), qR = new BR(), GR = /* @__PURE__ */ function(o) {
9361
9373
  function t() {
9362
9374
  return w(this, t), R(this, t, ["socket.chat.PinChatMessageRequest", [{
9363
9375
  no: 1,
@@ -9381,7 +9393,7 @@ var BR = /* @__PURE__ */ function(o) {
9381
9393
  }]]);
9382
9394
  }
9383
9395
  return A(t, o), P(t);
9384
- }(O), WR = new GR(), JR = /* @__PURE__ */ function(o) {
9396
+ }(_), WR = new GR(), JR = /* @__PURE__ */ function(o) {
9385
9397
  function t() {
9386
9398
  return w(this, t), R(this, t, ["socket.chat.PinChatMessageResponse", [{
9387
9399
  no: 1,
@@ -9407,14 +9419,14 @@ var BR = /* @__PURE__ */ function(o) {
9407
9419
  } }]]);
9408
9420
  }
9409
9421
  return A(t, o), P(t);
9410
- }(O), vc = new JR(), KR = /* @__PURE__ */ function(o) {
9422
+ }(_), vc = new JR(), KR = /* @__PURE__ */ function(o) {
9411
9423
  function t() {
9412
9424
  return w(this, t), R(this, t, ["socket.chat.EditChatMessageResponse", [{ no: 1, name: "message", kind: "message", T: function() {
9413
9425
  return Ai;
9414
9426
  } }]]);
9415
9427
  }
9416
9428
  return A(t, o), P(t);
9417
- }(O), fc = new KR(), zR = /* @__PURE__ */ function(o) {
9429
+ }(_), fc = new KR(), zR = /* @__PURE__ */ function(o) {
9418
9430
  function t() {
9419
9431
  return w(this, t), R(this, t, ["socket.chat.DeleteChatMessageRequest", [{
9420
9432
  no: 1,
@@ -9432,7 +9444,7 @@ var BR = /* @__PURE__ */ function(o) {
9432
9444
  }]]);
9433
9445
  }
9434
9446
  return A(t, o), P(t);
9435
- }(O), YR = new zR(), QR = /* @__PURE__ */ function(o) {
9447
+ }(_), YR = new zR(), QR = /* @__PURE__ */ function(o) {
9436
9448
  function t() {
9437
9449
  return w(this, t), R(this, t, ["socket.chat.DeleteChatMessageResponse", [{
9438
9450
  no: 1,
@@ -9450,7 +9462,7 @@ var BR = /* @__PURE__ */ function(o) {
9450
9462
  }]]);
9451
9463
  }
9452
9464
  return A(t, o), P(t);
9453
- }(O), gc = new QR(), XR = /* @__PURE__ */ function(o) {
9465
+ }(_), gc = new QR(), XR = /* @__PURE__ */ function(o) {
9454
9466
  function t() {
9455
9467
  return w(this, t), R(this, t, ["socket.chat.SearchChatMessagesRequest", [{
9456
9468
  no: 1,
@@ -9493,7 +9505,7 @@ var BR = /* @__PURE__ */ function(o) {
9493
9505
  }]]);
9494
9506
  }
9495
9507
  return A(t, o), P(t);
9496
- }(O), ZR = new XR(), xR = /* @__PURE__ */ function(o) {
9508
+ }(_), ZR = new XR(), xR = /* @__PURE__ */ function(o) {
9497
9509
  function t() {
9498
9510
  return w(this, t), R(this, t, ["socket.chat.MarkChannelIndexAsReadRequest", [{
9499
9511
  no: 1,
@@ -9516,7 +9528,7 @@ var BR = /* @__PURE__ */ function(o) {
9516
9528
  }]]);
9517
9529
  }
9518
9530
  return A(t, o), P(t);
9519
- }(O);
9531
+ }(_);
9520
9532
  new xR();
9521
9533
  var e1 = /* @__PURE__ */ function(o) {
9522
9534
  function t() {
@@ -9529,7 +9541,7 @@ var e1 = /* @__PURE__ */ function(o) {
9529
9541
  }]]);
9530
9542
  }
9531
9543
  return A(t, o), P(t);
9532
- }(O);
9544
+ }(_);
9533
9545
  new e1();
9534
9546
  var r1 = /* @__PURE__ */ function(o) {
9535
9547
  function t() {
@@ -9568,7 +9580,7 @@ var r1 = /* @__PURE__ */ function(o) {
9568
9580
  }]]);
9569
9581
  }
9570
9582
  return A(t, o), P(t);
9571
- }(O);
9583
+ }(_);
9572
9584
  new r1();
9573
9585
  var t1 = /* @__PURE__ */ function(o) {
9574
9586
  function t() {
@@ -9616,7 +9628,7 @@ var t1 = /* @__PURE__ */ function(o) {
9616
9628
  }]]);
9617
9629
  }
9618
9630
  return A(t, o), P(t);
9619
- }(O);
9631
+ }(_);
9620
9632
  new t1();
9621
9633
  var n1 = /* @__PURE__ */ function(o) {
9622
9634
  function t() {
@@ -9629,7 +9641,7 @@ var n1 = /* @__PURE__ */ function(o) {
9629
9641
  }]]);
9630
9642
  }
9631
9643
  return A(t, o), P(t);
9632
- }(O);
9644
+ }(_);
9633
9645
  new n1();
9634
9646
  var a1 = /* @__PURE__ */ function(o) {
9635
9647
  function t() {
@@ -9642,7 +9654,7 @@ var a1 = /* @__PURE__ */ function(o) {
9642
9654
  }]]);
9643
9655
  }
9644
9656
  return A(t, o), P(t);
9645
- }(O);
9657
+ }(_);
9646
9658
  new a1();
9647
9659
  var i1 = /* @__PURE__ */ function(o) {
9648
9660
  function t() {
@@ -9658,7 +9670,7 @@ var i1 = /* @__PURE__ */ function(o) {
9658
9670
  }]]);
9659
9671
  }
9660
9672
  return A(t, o), P(t);
9661
- }(O), s1 = new i1(), o1 = /* @__PURE__ */ function(o) {
9673
+ }(_), s1 = new i1(), o1 = /* @__PURE__ */ function(o) {
9662
9674
  function t() {
9663
9675
  return w(this, t), R(this, t, ["socket.chat.ChatChannel", [{
9664
9676
  no: 1,
@@ -9703,14 +9715,14 @@ var i1 = /* @__PURE__ */ function(o) {
9703
9715
  }]]);
9704
9716
  }
9705
9717
  return A(t, o), P(t);
9706
- }(O), u1 = new o1(), c1 = /* @__PURE__ */ function(o) {
9718
+ }(_), u1 = new o1(), c1 = /* @__PURE__ */ function(o) {
9707
9719
  function t() {
9708
9720
  return w(this, t), R(this, t, ["socket.chat.GetChatChannelResponse", [{ no: 1, name: "chat_channels", kind: "message", repeat: 1, T: function() {
9709
9721
  return u1;
9710
9722
  } }]]);
9711
9723
  }
9712
9724
  return A(t, o), P(t);
9713
- }(O);
9725
+ }(_);
9714
9726
  new c1();
9715
9727
  var l1 = /* @__PURE__ */ function(o) {
9716
9728
  function t() {
@@ -9743,14 +9755,14 @@ var l1 = /* @__PURE__ */ function(o) {
9743
9755
  }]]);
9744
9756
  }
9745
9757
  return A(t, o), P(t);
9746
- }(O), d1 = new l1(), p1 = /* @__PURE__ */ function(o) {
9758
+ }(_), d1 = new l1(), p1 = /* @__PURE__ */ function(o) {
9747
9759
  function t() {
9748
9760
  return w(this, t), R(this, t, ["socket.chat.GetChatChannelMembersResponse", [{ no: 1, name: "channel_members", kind: "message", repeat: 1, T: function() {
9749
9761
  return d1;
9750
9762
  } }]]);
9751
9763
  }
9752
9764
  return A(t, o), P(t);
9753
- }(O);
9765
+ }(_);
9754
9766
  new p1();
9755
9767
  var h1 = /* @__PURE__ */ function(o) {
9756
9768
  function t() {
@@ -9769,7 +9781,7 @@ var h1 = /* @__PURE__ */ function(o) {
9769
9781
  }]]);
9770
9782
  }
9771
9783
  return A(t, o), P(t);
9772
- }(O), v1 = new h1(), f1 = /* @__PURE__ */ function(o) {
9784
+ }(_), v1 = new h1(), f1 = /* @__PURE__ */ function(o) {
9773
9785
  function t() {
9774
9786
  return w(this, t), R(this, t, ["socket.plugin.RemovePluginRequest", [{
9775
9787
  no: 1,
@@ -9786,7 +9798,7 @@ var h1 = /* @__PURE__ */ function(o) {
9786
9798
  }]]);
9787
9799
  }
9788
9800
  return A(t, o), P(t);
9789
- }(O), g1 = new f1(), m1 = /* @__PURE__ */ function(o) {
9801
+ }(_), g1 = new f1(), m1 = /* @__PURE__ */ function(o) {
9790
9802
  function t() {
9791
9803
  return w(this, t), R(this, t, ["socket.plugin.EnablePluginForRoomRequest", [{
9792
9804
  no: 1,
@@ -9797,7 +9809,7 @@ var h1 = /* @__PURE__ */ function(o) {
9797
9809
  }]]);
9798
9810
  }
9799
9811
  return A(t, o), P(t);
9800
- }(O), y1 = new m1(), k1 = /* @__PURE__ */ function(o) {
9812
+ }(_), y1 = new m1(), k1 = /* @__PURE__ */ function(o) {
9801
9813
  function t() {
9802
9814
  return w(this, t), R(this, t, ["socket.plugin.DisablePluginForRoomRequest", [{
9803
9815
  no: 1,
@@ -9808,7 +9820,7 @@ var h1 = /* @__PURE__ */ function(o) {
9808
9820
  }]]);
9809
9821
  }
9810
9822
  return A(t, o), P(t);
9811
- }(O), b1 = new k1(), T1 = /* @__PURE__ */ function(o) {
9823
+ }(_), b1 = new k1(), T1 = /* @__PURE__ */ function(o) {
9812
9824
  function t() {
9813
9825
  return w(this, t), R(this, t, ["socket.plugin.EnablePluginForPeersRequest", [{
9814
9826
  no: 1,
@@ -9826,7 +9838,7 @@ var h1 = /* @__PURE__ */ function(o) {
9826
9838
  }]]);
9827
9839
  }
9828
9840
  return A(t, o), P(t);
9829
- }(O), w1 = new T1(), P1 = /* @__PURE__ */ function(o) {
9841
+ }(_), w1 = new T1(), P1 = /* @__PURE__ */ function(o) {
9830
9842
  function t() {
9831
9843
  return w(this, t), R(this, t, ["socket.plugin.DisablePluginForPeersRequest", [{
9832
9844
  no: 1,
@@ -9844,7 +9856,7 @@ var h1 = /* @__PURE__ */ function(o) {
9844
9856
  }]]);
9845
9857
  }
9846
9858
  return A(t, o), P(t);
9847
- }(O), S1 = new P1(), E1 = /* @__PURE__ */ function(o) {
9859
+ }(_), S1 = new P1(), E1 = /* @__PURE__ */ function(o) {
9848
9860
  function t() {
9849
9861
  return w(this, t), R(this, t, ["socket.plugin.PluginEventToRoomRequest", [{
9850
9862
  no: 1,
@@ -9861,7 +9873,7 @@ var h1 = /* @__PURE__ */ function(o) {
9861
9873
  }]]);
9862
9874
  }
9863
9875
  return A(t, o), P(t);
9864
- }(O), C1 = new E1(), R1 = /* @__PURE__ */ function(o) {
9876
+ }(_), C1 = new E1(), R1 = /* @__PURE__ */ function(o) {
9865
9877
  function t() {
9866
9878
  return w(this, t), R(this, t, ["socket.plugin.PluginEventToPeersRequest", [{
9867
9879
  no: 1,
@@ -9885,7 +9897,7 @@ var h1 = /* @__PURE__ */ function(o) {
9885
9897
  }]]);
9886
9898
  }
9887
9899
  return A(t, o), P(t);
9888
- }(O), A1 = new R1(), I1 = /* @__PURE__ */ function(o) {
9900
+ }(_), A1 = new R1(), I1 = /* @__PURE__ */ function(o) {
9889
9901
  function t() {
9890
9902
  return w(this, t), R(this, t, ["socket.plugin.StoreKeys", [{
9891
9903
  no: 1,
@@ -9903,7 +9915,7 @@ var h1 = /* @__PURE__ */ function(o) {
9903
9915
  }]]);
9904
9916
  }
9905
9917
  return A(t, o), P(t);
9906
- }(O), _p = new I1(), M1 = /* @__PURE__ */ function(o) {
9918
+ }(_), _p = new I1(), M1 = /* @__PURE__ */ function(o) {
9907
9919
  function t() {
9908
9920
  return w(this, t), R(this, t, ["socket.plugin.PluginStoreInsertKeysRequest", [{
9909
9921
  no: 1,
@@ -9922,7 +9934,7 @@ var h1 = /* @__PURE__ */ function(o) {
9922
9934
  } }]]);
9923
9935
  }
9924
9936
  return A(t, o), P(t);
9925
- }(O), Jh = new M1(), _1 = /* @__PURE__ */ function(o) {
9937
+ }(_), Jh = new M1(), _1 = /* @__PURE__ */ function(o) {
9926
9938
  function t() {
9927
9939
  return w(this, t), R(this, t, ["socket.plugin.PluginStoreGetKeysRequest", [{
9928
9940
  no: 1,
@@ -9941,7 +9953,7 @@ var h1 = /* @__PURE__ */ function(o) {
9941
9953
  } }]]);
9942
9954
  }
9943
9955
  return A(t, o), P(t);
9944
- }(O), O1 = new _1(), D1 = /* @__PURE__ */ function(o) {
9956
+ }(_), O1 = new _1(), D1 = /* @__PURE__ */ function(o) {
9945
9957
  function t() {
9946
9958
  return w(this, t), R(this, t, ["socket.plugin.PluginStoreDeleteKeysRequest", [{
9947
9959
  no: 1,
@@ -9960,7 +9972,7 @@ var h1 = /* @__PURE__ */ function(o) {
9960
9972
  } }]]);
9961
9973
  }
9962
9974
  return A(t, o), P(t);
9963
- }(O), $1 = new D1(), L1 = /* @__PURE__ */ function(o) {
9975
+ }(_), $1 = new D1(), L1 = /* @__PURE__ */ function(o) {
9964
9976
  function t() {
9965
9977
  return w(this, t), R(this, t, ["socket.plugin.PluginStoreDeleteRequest", [{
9966
9978
  no: 1,
@@ -9977,7 +9989,7 @@ var h1 = /* @__PURE__ */ function(o) {
9977
9989
  }]]);
9978
9990
  }
9979
9991
  return A(t, o), P(t);
9980
- }(O), N1 = new L1(), V1 = /* @__PURE__ */ function(o) {
9992
+ }(_), N1 = new L1(), V1 = /* @__PURE__ */ function(o) {
9981
9993
  function t() {
9982
9994
  return w(this, t), R(this, t, ["socket.plugin.EnablePluginResponse", [{
9983
9995
  no: 1,
@@ -9994,14 +10006,14 @@ var h1 = /* @__PURE__ */ function(o) {
9994
10006
  }]]);
9995
10007
  }
9996
10008
  return A(t, o), P(t);
9997
- }(O), gd = new V1(), U1 = /* @__PURE__ */ function(o) {
10009
+ }(_), gd = new V1(), U1 = /* @__PURE__ */ function(o) {
9998
10010
  function t() {
9999
10011
  return w(this, t), R(this, t, ["socket.plugin.EnablePluginsResponse", [{ no: 1, name: "plugins", kind: "message", repeat: 1, T: function() {
10000
10012
  return gd;
10001
10013
  } }]]);
10002
10014
  }
10003
10015
  return A(t, o), P(t);
10004
- }(O), j1 = new U1(), F1 = /* @__PURE__ */ function(o) {
10016
+ }(_), j1 = new U1(), F1 = /* @__PURE__ */ function(o) {
10005
10017
  function t() {
10006
10018
  return w(this, t), R(this, t, ["socket.plugin.DisablePluginResponse", [{
10007
10019
  no: 1,
@@ -10018,7 +10030,7 @@ var h1 = /* @__PURE__ */ function(o) {
10018
10030
  }]]);
10019
10031
  }
10020
10032
  return A(t, o), P(t);
10021
- }(O), Kh = new F1(), H1 = /* @__PURE__ */ function(o) {
10033
+ }(_), Kh = new F1(), H1 = /* @__PURE__ */ function(o) {
10022
10034
  function t() {
10023
10035
  return w(this, t), R(this, t, ["socket.plugin.PluginStoreItem", [{
10024
10036
  no: 1,
@@ -10047,7 +10059,7 @@ var h1 = /* @__PURE__ */ function(o) {
10047
10059
  }]]);
10048
10060
  }
10049
10061
  return A(t, o), P(t);
10050
- }(O), B1 = new H1(), q1 = /* @__PURE__ */ function(o) {
10062
+ }(_), B1 = new H1(), q1 = /* @__PURE__ */ function(o) {
10051
10063
  function t() {
10052
10064
  return w(this, t), R(this, t, ["socket.plugin.PluginStoreResponse", [{
10053
10065
  no: 1,
@@ -10066,7 +10078,7 @@ var h1 = /* @__PURE__ */ function(o) {
10066
10078
  } }]]);
10067
10079
  }
10068
10080
  return A(t, o), P(t);
10069
- }(O), zh = new q1(), G1 = /* @__PURE__ */ function(o) {
10081
+ }(_), zh = new q1(), G1 = /* @__PURE__ */ function(o) {
10070
10082
  function t() {
10071
10083
  return w(this, t), R(this, t, ["socket.plugin.PluginEventResponse", [{
10072
10084
  no: 1,
@@ -10083,7 +10095,7 @@ var h1 = /* @__PURE__ */ function(o) {
10083
10095
  }]]);
10084
10096
  }
10085
10097
  return A(t, o), P(t);
10086
- }(O), Yh = new G1(), W1 = /* @__PURE__ */ function(o) {
10098
+ }(_), Yh = new G1(), W1 = /* @__PURE__ */ function(o) {
10087
10099
  function t() {
10088
10100
  return w(this, t), R(this, t, ["socket.livestreaming.LiveStreamingEvent", [{
10089
10101
  no: 1,
@@ -10149,7 +10161,7 @@ var h1 = /* @__PURE__ */ function(o) {
10149
10161
  }]]);
10150
10162
  }
10151
10163
  return A(t, o), P(t);
10152
- }(O), Qh = new W1(), J1 = /* @__PURE__ */ function(o) {
10164
+ }(_), Qh = new W1(), J1 = /* @__PURE__ */ function(o) {
10153
10165
  function t() {
10154
10166
  return w(this, t), R(this, t, ["socket.livestreaming.GetStagePeersResponse", [{
10155
10167
  no: 1,
@@ -10161,7 +10173,7 @@ var h1 = /* @__PURE__ */ function(o) {
10161
10173
  }]]);
10162
10174
  }
10163
10175
  return A(t, o), P(t);
10164
- }(O), Xh = new J1(), K1 = /* @__PURE__ */ function(o) {
10176
+ }(_), Xh = new J1(), K1 = /* @__PURE__ */ function(o) {
10165
10177
  function t() {
10166
10178
  return w(this, t), R(this, t, ["socket.livestreaming.StageRequest", [{
10167
10179
  no: 1,
@@ -10184,14 +10196,14 @@ var h1 = /* @__PURE__ */ function(o) {
10184
10196
  }]]);
10185
10197
  }
10186
10198
  return A(t, o), P(t);
10187
- }(O), z1 = new K1(), Y1 = /* @__PURE__ */ function(o) {
10199
+ }(_), z1 = new K1(), Y1 = /* @__PURE__ */ function(o) {
10188
10200
  function t() {
10189
10201
  return w(this, t), R(this, t, ["socket.livestreaming.GetStageRequestsResponse", [{ no: 1, name: "stage_requests", kind: "message", repeat: 1, T: function() {
10190
10202
  return z1;
10191
10203
  } }]]);
10192
10204
  }
10193
10205
  return A(t, o), P(t);
10194
- }(O), Al = new Y1(), Q1 = /* @__PURE__ */ function(o) {
10206
+ }(_), Al = new Y1(), Q1 = /* @__PURE__ */ function(o) {
10195
10207
  function t() {
10196
10208
  return w(this, t), R(this, t, ["socket.livestreaming.GrantStageAccessRequest", [{
10197
10209
  no: 1,
@@ -10203,7 +10215,7 @@ var h1 = /* @__PURE__ */ function(o) {
10203
10215
  }]]);
10204
10216
  }
10205
10217
  return A(t, o), P(t);
10206
- }(O), X1 = new Q1(), Z1 = /* @__PURE__ */ function(o) {
10218
+ }(_), X1 = new Q1(), Z1 = /* @__PURE__ */ function(o) {
10207
10219
  function t() {
10208
10220
  return w(this, t), R(this, t, ["socket.livestreaming.DenyStageAccessRequest", [{
10209
10221
  no: 1,
@@ -10215,7 +10227,7 @@ var h1 = /* @__PURE__ */ function(o) {
10215
10227
  }]]);
10216
10228
  }
10217
10229
  return A(t, o), P(t);
10218
- }(O), x1 = new Z1(), eA = /* @__PURE__ */ function(o) {
10230
+ }(_), x1 = new Z1(), eA = /* @__PURE__ */ function(o) {
10219
10231
  function t() {
10220
10232
  return w(this, t), R(this, t, ["socket.livestreaming.LeaveStageRequest", [{
10221
10233
  no: 1,
@@ -10227,7 +10239,7 @@ var h1 = /* @__PURE__ */ function(o) {
10227
10239
  }]]);
10228
10240
  }
10229
10241
  return A(t, o), P(t);
10230
- }(O), Zh = new eA(), rA = /* @__PURE__ */ function(o) {
10242
+ }(_), Zh = new eA(), rA = /* @__PURE__ */ function(o) {
10231
10243
  function t() {
10232
10244
  return w(this, t), R(this, t, ["socket.polls.Poll", [{
10233
10245
  no: 1,
@@ -10277,7 +10289,7 @@ var h1 = /* @__PURE__ */ function(o) {
10277
10289
  }]]);
10278
10290
  }
10279
10291
  return A(t, o), P(t);
10280
- }(O), zf = new rA(), tA = /* @__PURE__ */ function(o) {
10292
+ }(_), zf = new rA(), tA = /* @__PURE__ */ function(o) {
10281
10293
  function t() {
10282
10294
  return w(this, t), R(this, t, ["socket.polls.PollOption", [{
10283
10295
  no: 1,
@@ -10298,7 +10310,7 @@ var h1 = /* @__PURE__ */ function(o) {
10298
10310
  } }]]);
10299
10311
  }
10300
10312
  return A(t, o), P(t);
10301
- }(O), nA = new tA(), aA = /* @__PURE__ */ function(o) {
10313
+ }(_), nA = new tA(), aA = /* @__PURE__ */ function(o) {
10302
10314
  function t() {
10303
10315
  return w(this, t), R(this, t, ["socket.polls.PollVote", [{
10304
10316
  no: 1,
@@ -10315,7 +10327,7 @@ var h1 = /* @__PURE__ */ function(o) {
10315
10327
  }]]);
10316
10328
  }
10317
10329
  return A(t, o), P(t);
10318
- }(O), iA = new aA(), sA = /* @__PURE__ */ function(o) {
10330
+ }(_), iA = new aA(), sA = /* @__PURE__ */ function(o) {
10319
10331
  function t() {
10320
10332
  return w(this, t), R(this, t, ["socket.polls.NewPollRequest", [{
10321
10333
  no: 1,
@@ -10359,7 +10371,7 @@ var h1 = /* @__PURE__ */ function(o) {
10359
10371
  }]]);
10360
10372
  }
10361
10373
  return A(t, o), P(t);
10362
- }(O), oA = new sA(), uA = /* @__PURE__ */ function(o) {
10374
+ }(_), oA = new sA(), uA = /* @__PURE__ */ function(o) {
10363
10375
  function t() {
10364
10376
  return w(this, t), R(this, t, ["socket.polls.VotePollRequest", [{
10365
10377
  no: 1,
@@ -10377,21 +10389,21 @@ var h1 = /* @__PURE__ */ function(o) {
10377
10389
  }]]);
10378
10390
  }
10379
10391
  return A(t, o), P(t);
10380
- }(O), cA = new uA(), lA = /* @__PURE__ */ function(o) {
10392
+ }(_), cA = new uA(), lA = /* @__PURE__ */ function(o) {
10381
10393
  function t() {
10382
10394
  return w(this, t), R(this, t, ["socket.polls.UpdatePollResponse", [{ no: 1, name: "poll", kind: "message", T: function() {
10383
10395
  return zf;
10384
10396
  } }]]);
10385
10397
  }
10386
10398
  return A(t, o), P(t);
10387
- }(O), Il = new lA(), dA = /* @__PURE__ */ function(o) {
10399
+ }(_), Il = new lA(), dA = /* @__PURE__ */ function(o) {
10388
10400
  function t() {
10389
10401
  return w(this, t), R(this, t, ["socket.polls.GetPollsResponse", [{ no: 1, name: "polls", kind: "message", repeat: 1, T: function() {
10390
10402
  return zf;
10391
10403
  } }]]);
10392
10404
  }
10393
10405
  return A(t, o), P(t);
10394
- }(O), pA = new dA(), hA = /* @__PURE__ */ function(o) {
10406
+ }(_), pA = new dA(), hA = /* @__PURE__ */ function(o) {
10395
10407
  function t() {
10396
10408
  return w(this, t), R(this, t, ["socket.recording.RecordingEvent", [{
10397
10409
  no: 1,
@@ -10410,7 +10422,7 @@ var h1 = /* @__PURE__ */ function(o) {
10410
10422
  } }]]);
10411
10423
  }
10412
10424
  return A(t, o), P(t);
10413
- }(O), xh = new hA(), vA = /* @__PURE__ */ function(o) {
10425
+ }(_), xh = new hA(), vA = /* @__PURE__ */ function(o) {
10414
10426
  function t() {
10415
10427
  return w(this, t), R(this, t, ["google.protobuf.Timestamp", [{
10416
10428
  no: 1,
@@ -10486,7 +10498,7 @@ var h1 = /* @__PURE__ */ function(o) {
10486
10498
  throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
10487
10499
  return a || (a = this.create()), a.seconds = Lo.from(s / 1e3).toBigInt(), a.nanos = 0, i[7] && (a.nanos = parseInt("1" + i[7] + "0".repeat(9 - i[7].length)) - 1e9), a;
10488
10500
  } }]);
10489
- }(O);
10501
+ }(_);
10490
10502
  new vA();
10491
10503
  var fA = /* @__PURE__ */ function(o) {
10492
10504
  function t() {
@@ -10564,14 +10576,14 @@ var fA = /* @__PURE__ */ function(o) {
10564
10576
  }]]);
10565
10577
  }
10566
10578
  return A(t, o), P(t);
10567
- }(O), md = new fA(), gA = /* @__PURE__ */ function(o) {
10579
+ }(_), md = new fA(), gA = /* @__PURE__ */ function(o) {
10568
10580
  function t() {
10569
10581
  return w(this, t), R(this, t, ["common.BulkedHubMessage", [{ no: 1, name: "messages", kind: "message", repeat: 1, T: function() {
10570
10582
  return md;
10571
10583
  } }]]);
10572
10584
  }
10573
10585
  return A(t, o), P(t);
10574
- }(O);
10586
+ }(_);
10575
10587
  new gA();
10576
10588
  var mA = /* @__PURE__ */ function(o) {
10577
10589
  function t() {
@@ -10582,7 +10594,7 @@ var mA = /* @__PURE__ */ function(o) {
10582
10594
  } }]]);
10583
10595
  }
10584
10596
  return A(t, o), P(t);
10585
- }(O);
10597
+ }(_);
10586
10598
  new mA();
10587
10599
  var yA = 0, kA = 1, bA = 2, TA = 3, wA = 5, PA = {
10588
10600
  getPeerInfo: 0,
@@ -10956,7 +10968,7 @@ var ev = /* @__PURE__ */ function() {
10956
10968
  return a;
10957
10969
  } }, { key: "request", value: function() {
10958
10970
  var t = m(/* @__PURE__ */ h().mark(function r(n) {
10959
- var a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, _;
10971
+ var a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, I;
10960
10972
  return h().wrap(function(M) {
10961
10973
  for (; ; )
10962
10974
  switch (M.prev = M.next) {
@@ -10980,13 +10992,13 @@ var ev = /* @__PURE__ */ function() {
10980
10992
  case 29:
10981
10993
  if (C = {}, b.headers.forEach(function(L, U) {
10982
10994
  C[U] = L;
10983
- }), _ = { data: T, status: b.status, statusText: b.statusText, headers: C, config: n }, b.ok) {
10995
+ }), I = { data: T, status: b.status, statusText: b.statusText, headers: C, config: n }, b.ok) {
10984
10996
  M.next = 34;
10985
10997
  break;
10986
10998
  }
10987
- throw _;
10999
+ throw I;
10988
11000
  case 34:
10989
- return M.abrupt("return", _);
11001
+ return M.abrupt("return", I);
10990
11002
  case 37:
10991
11003
  if (M.prev = 37, M.t0 = M.catch(10), !(M.t0 instanceof Error && f > 0)) {
10992
11004
  M.next = 44;
@@ -11080,7 +11092,7 @@ var ev = /* @__PURE__ */ function() {
11080
11092
  var k = this.requests.request.bind(this.requests);
11081
11093
  this.requests.request = /* @__PURE__ */ function() {
11082
11094
  var y = m(/* @__PURE__ */ h().mark(function b(T) {
11083
- var S, C, _, I, M, L, U;
11095
+ var S, C, I, O, M, L, U;
11084
11096
  return h().wrap(function(D) {
11085
11097
  for (; ; )
11086
11098
  switch (D.prev = D.next) {
@@ -11095,7 +11107,7 @@ var ev = /* @__PURE__ */ function() {
11095
11107
  }
11096
11108
  throw new q("Unknown network error occurred", "0011");
11097
11109
  case 14:
11098
- throw ((_ = D.t0.config) === null || _ === void 0 ? void 0 : _.url) !== S.logsEndpoint && r.logger.error("xhr::fetch", { error: D.t0, networkCall: { status: D.t0.status, statusText: D.t0.statusText, baseURL: ((I = D.t0.config) === null || I === void 0 ? void 0 : I.baseURL) || r.requests.defaults.baseURL, url: (M = D.t0.config) === null || M === void 0 ? void 0 : M.url, retries: (L = D.t0.config) === null || L === void 0 ? void 0 : L.retry, method: (U = D.t0.config) === null || U === void 0 ? void 0 : U.method, isOnline: navigator.onLine ? "online" : "offline" } }), new q(D.t0.message || "Network request failed", "0011");
11110
+ throw ((I = D.t0.config) === null || I === void 0 ? void 0 : I.url) !== S.logsEndpoint && r.logger.error("xhr::fetch", { error: D.t0, networkCall: { status: D.t0.status, statusText: D.t0.statusText, baseURL: ((O = D.t0.config) === null || O === void 0 ? void 0 : O.baseURL) || r.requests.defaults.baseURL, url: (M = D.t0.config) === null || M === void 0 ? void 0 : M.url, retries: (L = D.t0.config) === null || L === void 0 ? void 0 : L.retry, method: (U = D.t0.config) === null || U === void 0 ? void 0 : U.method, isOnline: navigator.onLine ? "online" : "offline" } }), new q(D.t0.message || "Network request failed", "0011");
11099
11111
  case 16:
11100
11112
  case "end":
11101
11113
  return D.stop();
@@ -11777,7 +11789,7 @@ var jA = Object.defineProperty, FA = Object.getOwnPropertyDescriptor, Vn = funct
11777
11789
  */
11778
11790
  }, { key: "sendCustomMessage", value: function() {
11779
11791
  var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
11780
- var s, u, l, d = this, p, v, f, g, k, y, b, T, S, C, _;
11792
+ var s, u, l, d = this, p, v, f, g, k, y, b, T, S, C, I;
11781
11793
  return h().wrap(function(M) {
11782
11794
  for (; ; )
11783
11795
  switch (M.prev = M.next) {
@@ -11884,7 +11896,7 @@ var jA = Object.defineProperty, FA = Object.getOwnPropertyDescriptor, Vn = funct
11884
11896
  };
11885
11897
  }()));
11886
11898
  case 21:
11887
- M.t5 = M.sent, M.t6 = { files: M.t3, images: M.t4, videos: M.t5 }, _ = (0, M.t0)(M.t1, M.t2, M.t6), c(this, He)[He].sendMessage(JSON.stringify(_), dn.CUSTOM, i);
11899
+ M.t5 = M.sent, M.t6 = { files: M.t3, images: M.t4, videos: M.t5 }, I = (0, M.t0)(M.t1, M.t2, M.t6), c(this, He)[He].sendMessage(JSON.stringify(I), dn.CUSTOM, i);
11888
11900
  case 25:
11889
11901
  case "end":
11890
11902
  return M.stop();
@@ -13600,10 +13612,10 @@ var kI = Object.defineProperty, bI = Object.getOwnPropertyDescriptor, il = funct
13600
13612
  return n && a && kI(e, r, a), a;
13601
13613
  }, _r = { getPeer: 14, getPeers: 15, chatMessage: 16, getRoomName: 17, getDisplayTitle: 18, getPluginInitiator: 19, customPluginEventToParent: 20, peerJoined: 22, peerLeft: 23, sendData: 24, stageStatusUpdate: 25, peerStageStatusUpdate: 26 }, Co = (Qe = /* @__PURE__ */ E("pluginSocketHandler"), Mr = /* @__PURE__ */ E("self"), Xa = /* @__PURE__ */ E("participants"), Za = /* @__PURE__ */ E("chat"), St = /* @__PURE__ */ E("startedAt"), xa = /* @__PURE__ */ E("authToken"), on = /* @__PURE__ */ E("context"), ei = /* @__PURE__ */ E("meetingTitle"), /* @__PURE__ */ function(o) {
13602
13614
  function t(e, r, n, a, i, s, u) {
13603
- var l, d = r.baseURL, p = r.createdAt, v = r.description, f = r.id, g = r.name, k = r.organizationId, y = r.picture, b = r.private, T = r.published, S = r.staggered, C = r.tags, _ = r.type, I = r.updatedAt;
13615
+ var l, d = r.baseURL, p = r.createdAt, v = r.description, f = r.id, g = r.name, k = r.organizationId, y = r.picture, b = r.private, T = r.published, S = r.staggered, C = r.tags, I = r.type, O = r.updatedAt;
13604
13616
  w(this, t);
13605
13617
  var M = e.getValue("logger");
13606
- return l = R(this, t, [M]), Object.defineProperty(l, Qe, { writable: !0, value: void 0 }), l.baseURL = void 0, l.createdAt = void 0, l.description = void 0, l.id = void 0, l.name = void 0, Object.defineProperty(l, Mr, { writable: !0, value: void 0 }), Object.defineProperty(l, Xa, { writable: !0, value: void 0 }), Object.defineProperty(l, Za, { writable: !0, value: void 0 }), l.organizationId = void 0, l.picture = void 0, l.private = void 0, l.published = void 0, l.staggered = void 0, l.tags = void 0, l.type = void 0, l.updatedAt = void 0, Object.defineProperty(l, St, { writable: !0, value: void 0 }), l.config = void 0, Object.defineProperty(l, xa, { writable: !0, value: void 0 }), l.active = void 0, l.iframes = void 0, l.enabledBy = void 0, Object.defineProperty(l, on, { writable: !0, value: void 0 }), Object.defineProperty(l, ei, { writable: !0, value: void 0 }), c(l, on)[on] = e, l.baseURL = d, l.createdAt = new Date(p), l.description = v, l.id = f, l.name = g, c(l, Mr)[Mr] = a, l.organizationId = k, l.picture = y, l.private = b, l.published = T, l.staggered = S, l.tags = C, l.type = _, l.updatedAt = new Date(I), l.active = !1, l.iframes = /* @__PURE__ */ new Map(), c(l, Qe)[Qe] = n, c(l, Xa)[Xa] = i, c(l, Za)[Za] = s, l.enabledBy = "", c(l, ei)[ei] = u, l;
13618
+ return l = R(this, t, [M]), Object.defineProperty(l, Qe, { writable: !0, value: void 0 }), l.baseURL = void 0, l.createdAt = void 0, l.description = void 0, l.id = void 0, l.name = void 0, Object.defineProperty(l, Mr, { writable: !0, value: void 0 }), Object.defineProperty(l, Xa, { writable: !0, value: void 0 }), Object.defineProperty(l, Za, { writable: !0, value: void 0 }), l.organizationId = void 0, l.picture = void 0, l.private = void 0, l.published = void 0, l.staggered = void 0, l.tags = void 0, l.type = void 0, l.updatedAt = void 0, Object.defineProperty(l, St, { writable: !0, value: void 0 }), l.config = void 0, Object.defineProperty(l, xa, { writable: !0, value: void 0 }), l.active = void 0, l.iframes = void 0, l.enabledBy = void 0, Object.defineProperty(l, on, { writable: !0, value: void 0 }), Object.defineProperty(l, ei, { writable: !0, value: void 0 }), c(l, on)[on] = e, l.baseURL = d, l.createdAt = new Date(p), l.description = v, l.id = f, l.name = g, c(l, Mr)[Mr] = a, l.organizationId = k, l.picture = y, l.private = b, l.published = T, l.staggered = S, l.tags = C, l.type = I, l.updatedAt = new Date(O), l.active = !1, l.iframes = /* @__PURE__ */ new Map(), c(l, Qe)[Qe] = n, c(l, Xa)[Xa] = i, c(l, Za)[Za] = s, l.enabledBy = "", c(l, ei)[ei] = u, l;
13607
13619
  }
13608
13620
  return A(t, o), P(t, [{ key: "telemetry", get: (
13609
13621
  /**
@@ -15398,8 +15410,8 @@ var sa = /* @__PURE__ */ E("middlewareWebWorkerInterval"), Jo = /* @__PURE__ */
15398
15410
  return d = u.captureStream(), p = d.getVideoTracks()[0], Object.defineProperty(p, "originalSettings", { value: a.getSettings() }), S.abrupt("return", p);
15399
15411
  case 11:
15400
15412
  v = document.createElement("video"), f = new MediaStream(), f.addTrack(a), g = u.getContext("2d"), v.srcObject = f, v.autoplay = !0, this.terminateMiddlewareWebWorker(), k = /* @__PURE__ */ function() {
15401
- var C = m(/* @__PURE__ */ h().mark(function _() {
15402
- var I;
15413
+ var C = m(/* @__PURE__ */ h().mark(function I() {
15414
+ var O;
15403
15415
  return h().wrap(function(L) {
15404
15416
  for (; ; )
15405
15417
  switch (L.prev = L.next) {
@@ -15410,19 +15422,19 @@ var sa = /* @__PURE__ */ E("middlewareWebWorkerInterval"), Jo = /* @__PURE__ */
15410
15422
  }
15411
15423
  return s.terminateMiddlewareWebWorker(), v.remove(), u.remove(), L.abrupt("return");
15412
15424
  case 5:
15413
- L.prev = 5, g.drawImage(v, 0, 0), I = 0;
15425
+ L.prev = 5, g.drawImage(v, 0, 0), O = 0;
15414
15426
  case 8:
15415
- if (!(I < l.length)) {
15427
+ if (!(O < l.length)) {
15416
15428
  L.next = 15;
15417
15429
  break;
15418
15430
  }
15419
- if (typeof l[I] != "function") {
15431
+ if (typeof l[O] != "function") {
15420
15432
  L.next = 12;
15421
15433
  break;
15422
15434
  }
15423
- return L.next = 12, l[I](u, g);
15435
+ return L.next = 12, l[O](u, g);
15424
15436
  case 12:
15425
- I += 1, L.next = 8;
15437
+ O += 1, L.next = 8;
15426
15438
  break;
15427
15439
  case 15:
15428
15440
  L.next = 20;
@@ -15433,7 +15445,7 @@ var sa = /* @__PURE__ */ E("middlewareWebWorkerInterval"), Jo = /* @__PURE__ */
15433
15445
  case "end":
15434
15446
  return L.stop();
15435
15447
  }
15436
- }, _, null, [[5, 17]]);
15448
+ }, I, null, [[5, 17]]);
15437
15449
  }));
15438
15450
  return function() {
15439
15451
  return C.apply(this, arguments);
@@ -15490,12 +15502,12 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
15490
15502
  var C;
15491
15503
  b = parseInt((C = c(r, yn)[yn].getValue("flagsmith").getValue(Oe.VAL_MIN_FRAMERATE)) === null || C === void 0 ? void 0 : C.toString(), 10);
15492
15504
  }
15493
- var _ = { width: { max: g }, height: { max: k }, frameRate: { ideal: b, max: y } };
15505
+ var I = { width: { max: g }, height: { max: k }, frameRate: { ideal: b, max: y } };
15494
15506
  if (c(r, yn)[yn].getValue("flagsmith").hasFeature(Oe.SCREENSHARE_CONSTRAINTS)) {
15495
- var I, M = (I = c(r, yn)[yn].getValue("flagsmith").getValue(Oe.SCREENSHARE_CONSTRAINTS)) === null || I === void 0 ? void 0 : I.toString();
15496
- _ = JSON.parse(M);
15507
+ var O, M = (O = c(r, yn)[yn].getValue("flagsmith").getValue(Oe.SCREENSHARE_CONSTRAINTS)) === null || O === void 0 ? void 0 : O.toString();
15508
+ I = JSON.parse(M);
15497
15509
  }
15498
- return T !== void 0 && ["monitor", "browser", "window"].includes(T) && (_ = V(V({}, _), {}, { displaySurface: T })), S !== void 0 && (_ = V(V({}, _), {}, { selfBrowserSurface: S })), { audio: !0, video: _ };
15510
+ return T !== void 0 && ["monitor", "browser", "window"].includes(T) && (I = V(V({}, I), {}, { displaySurface: T })), S !== void 0 && (I = V(V({}, I), {}, { selfBrowserSurface: S })), { audio: !0, video: I };
15499
15511
  }, this.getAudioConstraints = function(n) {
15500
15512
  var a, i, s, u, l = {}, d = (a = c(r, oa)[oa]) === null || a === void 0 ? void 0 : a.audio, p = d != null && d.enableStereo ? 2 : 1;
15501
15513
  if (Sr.isFirefox() || Sr.isWebKitBased()) {
@@ -15668,7 +15680,7 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
15668
15680
  return this.permissions[r] = a, c(this, Ee)[Ee].getValue("peerSessionStore").emit(j.MEDIA_PERMISSION_ERROR, { message: a, constraints: n.constraints, kind: r }), a;
15669
15681
  } }, { key: "getAudioAndVideoTrack", value: function() {
15670
15682
  var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
15671
- var s, u, l, d, p, v, f, g, k, y, b, T, S, C, _, I, M;
15683
+ var s, u, l, d, p, v, f, g, k, y, b, T, S, C, I, O, M;
15672
15684
  return h().wrap(function(U) {
15673
15685
  for (; ; )
15674
15686
  switch (U.prev = U.next) {
@@ -15683,13 +15695,13 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
15683
15695
  return N.deviceId === i;
15684
15696
  })), i && g ? k = i : d && (u = d[0]) !== null && u !== void 0 && u.deviceId && (k = (y = d[0]) === null || y === void 0 ? void 0 : y.deviceId), b = { audio: c(this, Br)[Br].getAudioConstraints(v).audio, video: c(this, Br)[Br].getVideoConstraints(k).video }, this.logger.info("getUserMediaWithoutTimeout::requesting_user_media", { constraints: JSON.stringify(b) }), U.next = 15, navigator.mediaDevices.getUserMedia(b);
15685
15697
  case 15:
15686
- if (T = U.sent, this.logger.info("getUserMediaWithoutTimeout::received_user_media", { constraints: JSON.stringify(b) }), S = T.getAudioTracks()[0], C = T.getVideoTracks()[0], this.permissions.audio = "ACCEPTED", this.permissions.video = "ACCEPTED", _ = c(this, Ee)[Ee].getValue("flagsmith").hasFeature(Oe.OBS_QUALITY), !(_ && C.label.includes("OBS Virtual"))) {
15698
+ if (T = U.sent, this.logger.info("getUserMediaWithoutTimeout::received_user_media", { constraints: JSON.stringify(b) }), S = T.getAudioTracks()[0], C = T.getVideoTracks()[0], this.permissions.audio = "ACCEPTED", this.permissions.video = "ACCEPTED", I = c(this, Ee)[Ee].getValue("flagsmith").hasFeature(Oe.OBS_QUALITY), !(I && C.label.includes("OBS Virtual"))) {
15687
15699
  U.next = 30;
15688
15700
  break;
15689
15701
  }
15690
15702
  return U.next = 25, this.getVideoInputDevices();
15691
15703
  case 25:
15692
- return I = U.sent, M = I.find(function(N) {
15704
+ return O = U.sent, M = O.find(function(N) {
15693
15705
  return N.label.includes("OBS Virtual");
15694
15706
  }), U.next = 29, this.getVideoTrack(M.deviceId);
15695
15707
  case 29:
@@ -15726,19 +15738,19 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
15726
15738
  return v = !!((u = p) !== null && u !== void 0 && u.find(function(S) {
15727
15739
  return S.deviceId === i;
15728
15740
  })), i && v ? f = i : (l = p[0]) !== null && l !== void 0 && l.deviceId && (f = (g = p[0]) === null || g === void 0 ? void 0 : g.deviceId), k = /* @__PURE__ */ function() {
15729
- var S = m(/* @__PURE__ */ h().mark(function C(_) {
15730
- var I, M, L, U, N, D, F, Y;
15741
+ var S = m(/* @__PURE__ */ h().mark(function C(I) {
15742
+ var O, M, L, U, N, D, F, Y;
15731
15743
  return h().wrap(function(H) {
15732
15744
  for (; ; )
15733
15745
  switch (H.prev = H.next) {
15734
15746
  case 0:
15735
15747
  return H.prev = 0, p = p.filter(function(Z) {
15736
- return Z.deviceId !== _;
15737
- }), I = c(d, Br)[Br].getAudioConstraints(_), d.logger.info("getUserMediaWithoutTimeout::requesting_user_media", { constraints: JSON.stringify(I) }), H.next = 6, navigator.mediaDevices.getUserMedia(I);
15748
+ return Z.deviceId !== I;
15749
+ }), O = c(d, Br)[Br].getAudioConstraints(I), d.logger.info("getUserMediaWithoutTimeout::requesting_user_media", { constraints: JSON.stringify(O) }), H.next = 6, navigator.mediaDevices.getUserMedia(O);
15738
15750
  case 6:
15739
- return M = H.sent.getAudioTracks(), L = We(M, 1), U = L[0], d.logger.info("getUserMediaWithoutTimeout::received_user_media", { constraints: JSON.stringify(I) }), H.abrupt("return", U);
15751
+ return M = H.sent.getAudioTracks(), L = We(M, 1), U = L[0], d.logger.info("getUserMediaWithoutTimeout::received_user_media", { constraints: JSON.stringify(O) }), H.abrupt("return", U);
15740
15752
  case 13:
15741
- if (H.prev = 13, H.t0 = H.catch(0), N = mc("audio", H.t0.name, H.t0.message), D = new _l(H.t0.name, H.t0.message, I), N !== "COULD_NOT_START") {
15753
+ if (H.prev = 13, H.t0 = H.catch(0), N = mc("audio", H.t0.name, H.t0.message), D = new _l(H.t0.name, H.t0.message, O), N !== "COULD_NOT_START") {
15742
15754
  H.next = 25;
15743
15755
  break;
15744
15756
  }
@@ -15748,7 +15760,7 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
15748
15760
  }
15749
15761
  throw D;
15750
15762
  case 21:
15751
- return d.logger.info("getAudioTrack::gum_failed", { constraints: JSON.stringify(I), error: H.t0 }), Y = c(d, Br)[Br].getAudioConstraints(F.deviceId), d.logger.info("getAudioTrack::retrying_gum_for_next_device", { constraints: JSON.stringify(Y) }), H.abrupt("return", k(F.deviceId));
15763
+ return d.logger.info("getAudioTrack::gum_failed", { constraints: JSON.stringify(O), error: H.t0 }), Y = c(d, Br)[Br].getAudioConstraints(F.deviceId), d.logger.info("getAudioTrack::retrying_gum_for_next_device", { constraints: JSON.stringify(Y) }), H.abrupt("return", k(F.deviceId));
15752
15764
  case 25:
15753
15765
  throw D;
15754
15766
  case 26:
@@ -15757,7 +15769,7 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
15757
15769
  }
15758
15770
  }, C, null, [[0, 13]]);
15759
15771
  }));
15760
- return function(_) {
15772
+ return function(I) {
15761
15773
  return S.apply(this, arguments);
15762
15774
  };
15763
15775
  }(), T.prev = 10, T.next = 13, k(f);
@@ -15807,10 +15819,10 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
15807
15819
  }
15808
15820
  throw this.permissions.video = "NO_DEVICES_AVAILABLE", c(this, Ee)[Ee].getValue("peerSessionStore").emit(j.MEDIA_PERMISSION_UPDATE, { message: this.permissions.video, kind: "video" }), new q("No video devices available", "1607");
15809
15821
  case 21:
15810
- return f = !!(v != null && v.find(function(_) {
15811
- return _.deviceId === a;
15822
+ return f = !!(v != null && v.find(function(I) {
15823
+ return I.deviceId === a;
15812
15824
  })), a && f ? g = a : (s = v[0]) !== null && s !== void 0 && s.deviceId && (g = (k = v[0]) === null || k === void 0 ? void 0 : k.deviceId), y = /* @__PURE__ */ function() {
15813
- var _ = m(/* @__PURE__ */ h().mark(function I(M) {
15825
+ var I = m(/* @__PURE__ */ h().mark(function O(M) {
15814
15826
  var L, U, N, D, F, Y, B, H, Z, Te, ie, De, br, z;
15815
15827
  return h().wrap(function(Fe) {
15816
15828
  for (; ; )
@@ -15837,10 +15849,10 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
15837
15849
  case "end":
15838
15850
  return Fe.stop();
15839
15851
  }
15840
- }, I, null, [[0, 15]]);
15852
+ }, O, null, [[0, 15]]);
15841
15853
  }));
15842
15854
  return function(M) {
15843
- return _.apply(this, arguments);
15855
+ return I.apply(this, arguments);
15844
15856
  };
15845
15857
  }(), C.prev = 24, b = c(this, Br)[Br].getVideoConstraints(g), C.next = 28, y(b);
15846
15858
  case 28:
@@ -16068,17 +16080,17 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
16068
16080
  s = l.sent, navigator.mediaDevices.addEventListener("devicechange", /* @__PURE__ */ function() {
16069
16081
  var d = m(/* @__PURE__ */ h().mark(function p(v) {
16070
16082
  var f, g, k, y, b, T, S, C;
16071
- return h().wrap(function(I) {
16083
+ return h().wrap(function(O) {
16072
16084
  for (; ; )
16073
- switch (I.prev = I.next) {
16085
+ switch (O.prev = O.next) {
16074
16086
  case 0:
16075
16087
  return k = function(L) {
16076
16088
  return "".concat(L.kind, "-").concat(L.label, "-").concat(L.deviceId, "-").concat(L.groupId);
16077
16089
  }, y = new Set(s.map(function(M) {
16078
16090
  return k(M);
16079
- })), I.next = 4, i.getAvailableDevices();
16091
+ })), O.next = 4, i.getAvailableDevices();
16080
16092
  case 4:
16081
- b = I.sent, T = new Set(b.map(function(M) {
16093
+ b = O.sent, T = new Set(b.map(function(M) {
16082
16094
  return k(M);
16083
16095
  })), S = { added: b.filter(function(M) {
16084
16096
  return !y.has(k(M));
@@ -16099,7 +16111,7 @@ var oa = /* @__PURE__ */ E("mediaConstraints"), yn = /* @__PURE__ */ E("context"
16099
16111
  })), a(v, S, !1));
16100
16112
  case 9:
16101
16113
  case "end":
16102
- return I.stop();
16114
+ return O.stop();
16103
16115
  }
16104
16116
  }, p);
16105
16117
  }));
@@ -16727,7 +16739,7 @@ var cg = jc, iM = Object.defineProperty, sM = Object.getOwnPropertyDescriptor, D
16727
16739
  return T.deviceId !== g;
16728
16740
  }).some(/* @__PURE__ */ function() {
16729
16741
  var T = m(/* @__PURE__ */ h().mark(function S(C) {
16730
- var _, I;
16742
+ var I, O;
16731
16743
  return h().wrap(function(L) {
16732
16744
  for (; ; )
16733
16745
  switch (L.prev = L.next) {
@@ -16740,7 +16752,7 @@ var cg = jc, iM = Object.defineProperty, sM = Object.getOwnPropertyDescriptor, D
16740
16752
  L.next = 10;
16741
16753
  break;
16742
16754
  }
16743
- return I = (_ = p == null ? void 0 : p.devices.concat({ label: u.label })) !== null && _ !== void 0 ? _ : [{ label: u.label }], Us.setItem(Ol, JSON.stringify({ devices: I }), i.logger), i.logger.info("AudioMediaHandler.conditionallyChangeTrack.SuccesfullyChangedTrack"), L.abrupt("return", !0);
16755
+ return O = (I = p == null ? void 0 : p.devices.concat({ label: u.label })) !== null && I !== void 0 ? I : [{ label: u.label }], Us.setItem(Ol, JSON.stringify({ devices: O }), i.logger), i.logger.info("AudioMediaHandler.conditionallyChangeTrack.SuccesfullyChangedTrack"), L.abrupt("return", !0);
16744
16756
  case 10:
16745
16757
  return i.logger.info("AudioMediaHandler.conditionallyChangeTrack.AnotherSilentTrackFound"), L.abrupt("return", !1);
16746
16758
  case 12:
@@ -16842,23 +16854,23 @@ var oM = ol, ua = /* @__PURE__ */ E("mediaInterface"), uM = /* @__PURE__ */ func
16842
16854
  case 20:
16843
16855
  g.forEach(/* @__PURE__ */ function() {
16844
16856
  var b = m(/* @__PURE__ */ h().mark(function T(S) {
16845
- return h().wrap(function(_) {
16857
+ return h().wrap(function(I) {
16846
16858
  for (; ; )
16847
- switch (_.prev = _.next) {
16859
+ switch (I.prev = I.next) {
16848
16860
  case 0:
16849
16861
  if (!(typeof S.sinkId != "undefined" && u.currentDevice.deviceId && S.sinkId !== u.currentDevice.deviceId)) {
16850
- _.next = 8;
16862
+ I.next = 8;
16851
16863
  break;
16852
16864
  }
16853
- return _.prev = 1, _.next = 4, S.setSinkId(u.currentDevice.deviceId);
16865
+ return I.prev = 1, I.next = 4, S.setSinkId(u.currentDevice.deviceId);
16854
16866
  case 4:
16855
- _.next = 8;
16867
+ I.next = 8;
16856
16868
  break;
16857
16869
  case 6:
16858
- _.prev = 6, _.t0 = _.catch(1);
16870
+ I.prev = 6, I.t0 = I.catch(1);
16859
16871
  case 8:
16860
16872
  case "end":
16861
- return _.stop();
16873
+ return I.stop();
16862
16874
  }
16863
16875
  }, T, null, [[1, 6]]);
16864
16876
  }));
@@ -17959,8 +17971,8 @@ var RM = Object.defineProperty, AM = Object.getOwnPropertyDescriptor, Oo = funct
17959
17971
  }
17960
17972
  }
17961
17973
  }, 2e3) }), c(i, Dr)[Dr] = e;
17962
- var u = r.id, l = r.userId, d = r.displayName, p = r.device, v = r.picture, f = r.isHost, g = r.flags, k = r.clientSpecificId, y = r.stageStatus, b = r.customParticipantId, T = r.audioMuted, S = r.audioTrack, C = r.videoEnabled, _ = C === void 0 ? !1 : C, I = r.videoTrack, M = r.producers, L = r.metadata;
17963
- return i.id = u, i.userId = l, i.name = d, i.device = p, i.picture = v, i.isHost = f, i.flags = g, i.manualProducerConfig = tP, c(i, si)[si] = y != null ? y : "ON_STAGE", i.customParticipantId = b != null ? b : k, i.audioEnabled = !T, i.audioTrack = S, i.videoEnabled = _, i.videoTrack = I, i.screenShareTracks = { audio: void 0, video: void 0 }, i.producers = M != null ? M : [], i.presetName = L == null ? void 0 : L.preset_name, c(i, ii)[ii] = !1, c(i, Et)[Et] = n, c(i, no)[no] = a, i.setupEvents(), i.updateVideo = i.updateVideo.bind(i), c(i, ao)[ao](), i;
17974
+ var u = r.id, l = r.userId, d = r.displayName, p = r.device, v = r.picture, f = r.isHost, g = r.flags, k = r.clientSpecificId, y = r.stageStatus, b = r.customParticipantId, T = r.audioMuted, S = r.audioTrack, C = r.videoEnabled, I = C === void 0 ? !1 : C, O = r.videoTrack, M = r.producers, L = r.metadata;
17975
+ return i.id = u, i.userId = l, i.name = d, i.device = p, i.picture = v, i.isHost = f, i.flags = g, i.manualProducerConfig = tP, c(i, si)[si] = y != null ? y : "ON_STAGE", i.customParticipantId = b != null ? b : k, i.audioEnabled = !T, i.audioTrack = S, i.videoEnabled = I, i.videoTrack = O, i.screenShareTracks = { audio: void 0, video: void 0 }, i.producers = M != null ? M : [], i.presetName = L == null ? void 0 : L.preset_name, c(i, ii)[ii] = !1, c(i, Et)[Et] = n, c(i, no)[no] = a, i.setupEvents(), i.updateVideo = i.updateVideo.bind(i), c(i, ao)[ao](), i;
17964
17976
  }
17965
17977
  return A(t, o), P(t, [{ key: "clientSpecificId", get: (
17966
17978
  /**
@@ -19307,20 +19319,20 @@ var zM = Object.defineProperty, YM = Object.getOwnPropertyDescriptor, Qs = funct
19307
19319
  return c(this, ui)[ui] = !0, this.logger.info("syncConsumers: Sync in progress, marking resyncRequired=true and exiting."), y.abrupt("return");
19308
19320
  case 7:
19309
19321
  if (this.logger.info("syncConsumers: Starting sync operation."), c(this, et)[et] = !0, c(this, ui)[ui] = !1, l = [], this.participants.videoSubscribed.forEach(function(b) {
19310
- var T, S, C = a.participants.joined.get(b.id), _ = (T = (S = b.producers) === null || S === void 0 ? void 0 : S.filter(function(I) {
19311
- return I.kind === "video";
19322
+ var T, S, C = a.participants.joined.get(b.id), I = (T = (S = b.producers) === null || S === void 0 ? void 0 : S.filter(function(O) {
19323
+ return O.kind === "video";
19312
19324
  })) !== null && T !== void 0 ? T : [];
19313
- C && _ !== null && _ !== void 0 && _.length && _.forEach(function(I) {
19314
- var M, L, U, N, D = ((M = (L = C.manualProducerConfig) === null || L === void 0 ? void 0 : L.video) !== null && M !== void 0 ? M : !0) && I.kind === "video" && !I.screenShare, F = ((U = (N = C.manualProducerConfig) === null || N === void 0 ? void 0 : N.screenshareVideo) !== null && U !== void 0 ? U : !0) && I.kind === "video" && I.screenShare;
19315
- (D || F) && (I.pause || l.push(I));
19325
+ C && I !== null && I !== void 0 && I.length && I.forEach(function(O) {
19326
+ var M, L, U, N, D = ((M = (L = C.manualProducerConfig) === null || L === void 0 ? void 0 : L.video) !== null && M !== void 0 ? M : !0) && O.kind === "video" && !O.screenShare, F = ((U = (N = C.manualProducerConfig) === null || N === void 0 ? void 0 : N.screenshareVideo) !== null && U !== void 0 ? U : !0) && O.kind === "video" && O.screenShare;
19327
+ (D || F) && (O.pause || l.push(O));
19316
19328
  });
19317
19329
  }), this.participants.audioSubscribed.forEach(function(b) {
19318
- var T, S, C = a.participants.joined.get(b.id), _ = (T = (S = b.producers) === null || S === void 0 ? void 0 : S.filter(function(I) {
19319
- return I.kind === "audio";
19330
+ var T, S, C = a.participants.joined.get(b.id), I = (T = (S = b.producers) === null || S === void 0 ? void 0 : S.filter(function(O) {
19331
+ return O.kind === "audio";
19320
19332
  })) !== null && T !== void 0 ? T : [];
19321
- C && _ !== null && _ !== void 0 && _.length && _.forEach(function(I) {
19322
- var M, L, U, N, D = ((M = (L = C.manualProducerConfig) === null || L === void 0 ? void 0 : L.audio) !== null && M !== void 0 ? M : !0) && I.kind === "audio" && !I.screenShare, F = ((U = (N = C.manualProducerConfig) === null || N === void 0 ? void 0 : N.screenshareAudio) !== null && U !== void 0 ? U : !0) && I.kind === "audio" && I.screenShare;
19323
- (D || F) && l.push(I);
19333
+ C && I !== null && I !== void 0 && I.length && I.forEach(function(O) {
19334
+ var M, L, U, N, D = ((M = (L = C.manualProducerConfig) === null || L === void 0 ? void 0 : L.audio) !== null && M !== void 0 ? M : !0) && O.kind === "audio" && !O.screenShare, F = ((U = (N = C.manualProducerConfig) === null || N === void 0 ? void 0 : N.screenshareAudio) !== null && U !== void 0 ? U : !0) && O.kind === "audio" && O.screenShare;
19335
+ (D || F) && l.push(O);
19324
19336
  });
19325
19337
  }), l = rP(l, function(b) {
19326
19338
  return b.producerId;
@@ -19337,8 +19349,8 @@ var zM = Object.defineProperty, YM = Object.getOwnPropertyDescriptor, Qs = funct
19337
19349
  return;
19338
19350
  }
19339
19351
  (T = S.producers) !== null && T !== void 0 && T.length && S.producers.forEach(function(C) {
19340
- var _ = C.consumer && p.has(C.consumer.id);
19341
- !d.has(C.producerId) && (p.has(C.producerId) || _) && f.push(C);
19352
+ var I = C.consumer && p.has(C.consumer.id);
19353
+ !d.has(C.producerId) && (p.has(C.producerId) || I) && f.push(C);
19342
19354
  });
19343
19355
  }), this.logger.info("syncConsumers: Computed changes - AddProducers: ".concat(v.length, " [").concat(v.map(function(b) {
19344
19356
  return b.producerId;
@@ -19770,8 +19782,8 @@ var vr = Xn(Ep().permissions), G = /* @__PURE__ */ E("permissions"), vs = /* @__
19770
19782
  if (a = R(this, t, [s]), Object.defineProperty(a, fr, { get: XM, set: void 0 }), Object.defineProperty(a, G, { writable: !0, value: void 0 }), Object.defineProperty(a, vs, { writable: !0, value: void 0 }), Object.defineProperty(a, Cs, { writable: !0, value: void 0 }), Object.defineProperty(a, Ll, { writable: !0, value: function(l) {
19771
19783
  var d = l.chat, p = l.connectedMeetings, v = l.plugins, f = l.polls, g = l.media, k = cp(l, Vg);
19772
19784
  if (d && (d.private && hi(c(a, G)[G].chat.private, d.private), d.public && hi(c(a, G)[G].chat.public, d.public), a.emit("chatUpdate")), p && hi(c(a, G)[G].connectedMeetings, p), g) {
19773
- var y, b, T, S = function(I) {
19774
- switch (I) {
19785
+ var y, b, T, S = function(O) {
19786
+ switch (O) {
19775
19787
  case Pi.NONE:
19776
19788
  return te.Allowed;
19777
19789
  case Pi.ALLOWED:
@@ -20302,30 +20314,30 @@ var Vr = /* @__PURE__ */ E("context"), vg = /* @__PURE__ */ function(o) {
20302
20314
  }, { key: "init", value: function() {
20303
20315
  var e = m(/* @__PURE__ */ h().mark(function n() {
20304
20316
  var a = this, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C = arguments;
20305
- return h().wrap(function(I) {
20317
+ return h().wrap(function(O) {
20306
20318
  for (; ; )
20307
- switch (I.prev = I.next) {
20319
+ switch (O.prev = O.next) {
20308
20320
  case 0:
20309
20321
  if (i = C.length > 0 && C[0] !== void 0 ? C[0] : {}, s = C.length > 1 && C[1] !== void 0 ? C[1] : !1, u = C.length > 2 && C[2] !== void 0 ? C[2] : null, Sr.init(), u && (c(this, Vr)[Vr] = u), !this.localMediaHandler) {
20310
- I.next = 7;
20322
+ O.next = 7;
20311
20323
  break;
20312
20324
  }
20313
- return I.abrupt("return");
20325
+ return O.abrupt("return");
20314
20326
  case 7:
20315
- if (I.prev = 7, d = !0, !(u != null && (l = u.getValue("defaults")) !== null && l !== void 0 && l.mediaHandler)) {
20316
- I.next = 14;
20327
+ if (O.prev = 7, d = !0, !(u != null && (l = u.getValue("defaults")) !== null && l !== void 0 && l.mediaHandler)) {
20328
+ O.next = 14;
20317
20329
  break;
20318
20330
  }
20319
- d = !1, this.localMediaHandler = u.getValue("defaults").mediaHandler.localMediaHandler, I.next = 22;
20331
+ d = !1, this.localMediaHandler = u.getValue("defaults").mediaHandler.localMediaHandler, O.next = 22;
20320
20332
  break;
20321
20333
  case 14:
20322
20334
  if (!navigator.RNLocalMediaHandlerImpl) {
20323
- I.next = 21;
20335
+ O.next = 21;
20324
20336
  break;
20325
20337
  }
20326
- return p = navigator, v = p.RNLocalMediaHandlerImpl, I.next = 18, v.init(i);
20338
+ return p = navigator, v = p.RNLocalMediaHandlerImpl, O.next = 18, v.init(i);
20327
20339
  case 18:
20328
- this.localMediaHandler = I.sent, I.next = 22;
20340
+ this.localMediaHandler = O.sent, O.next = 22;
20329
20341
  break;
20330
20342
  case 21:
20331
20343
  this.localMediaHandler = new It(u, i.constraints, u == null || (f = u.getValue("defaults")) === null || f === void 0 ? void 0 : f.isNonPreferredDevice, u == null || (g = u.getValue("defaults")) === null || g === void 0 ? void 0 : g.autoSwitchAudioDevice);
@@ -20377,22 +20389,22 @@ var Vr = /* @__PURE__ */ E("context"), vg = /* @__PURE__ */ function(o) {
20377
20389
  return M.apply(this, arguments);
20378
20390
  };
20379
20391
  }()), !d) {
20380
- I.next = 30;
20392
+ O.next = 30;
20381
20393
  break;
20382
20394
  }
20383
20395
  if (this.logger.info("Setting up SelfMedia streams using media handler. audio:".concat((k = i == null ? void 0 : i.audio) !== null && k !== void 0 ? k : !0, " video:").concat((y = i == null ? void 0 : i.video) !== null && y !== void 0 ? y : !0)), S = this.localMediaHandler.setupStreams({ video: (b = i == null ? void 0 : i.video) !== null && b !== void 0 ? b : !0, audio: (T = i == null ? void 0 : i.audio) !== null && T !== void 0 ? T : !0 }), s) {
20384
- I.next = 30;
20396
+ O.next = 30;
20385
20397
  break;
20386
20398
  }
20387
- return I.next = 30, S;
20399
+ return O.next = 30, S;
20388
20400
  case 30:
20389
- I.next = 35;
20401
+ O.next = 35;
20390
20402
  break;
20391
20403
  case 32:
20392
- I.prev = 32, I.t0 = I.catch(7), this.logger.error("Self::init::Failed To Setup Streams", { error: { name: I.t0.name, message: I.t0.message } });
20404
+ O.prev = 32, O.t0 = O.catch(7), this.logger.error("Self::init::Failed To Setup Streams", { error: { name: O.t0.name, message: O.t0.message } });
20393
20405
  case 35:
20394
20406
  case "end":
20395
- return I.stop();
20407
+ return O.stop();
20396
20408
  }
20397
20409
  }, n, this, [[7, 32]]);
20398
20410
  }));
@@ -21674,12 +21686,12 @@ var Vr = /* @__PURE__ */ E("context"), vg = /* @__PURE__ */ function(o) {
21674
21686
  r.style.display = this.videoEnabled ? "block" : "none";
21675
21687
  } }], [{ key: "__init__", value: function() {
21676
21688
  var e = m(/* @__PURE__ */ h().mark(function n(a, i, s, u, l) {
21677
- var d, p, v, f, g, k, y, b, T, S, C, _, I = arguments;
21689
+ var d, p, v, f, g, k, y, b, T, S, C, I, O = arguments;
21678
21690
  return h().wrap(function(L) {
21679
21691
  for (; ; )
21680
21692
  switch (L.prev = L.next) {
21681
21693
  case 0:
21682
- return y = I.length > 5 && I[5] !== void 0 ? I[5] : !1, b = (d = (p = a.getValue("defaults")) === null || p === void 0 ? void 0 : p.audio) !== null && d !== void 0 ? d : !0, T = (v = (f = a.getValue("defaults")) === null || f === void 0 ? void 0 : f.video) !== null && v !== void 0 ? v : !0, s.canProduceAudio !== "ALLOWED" && (b = !1), s.canProduceVideo !== "ALLOWED" && (T = !1), S = new nt(a, i, s, u, l), C = WI(u.mediaConstraints), hi(C, (g = a.getValue("defaults")) === null || g === void 0 ? void 0 : g.mediaConfiguration), _ = (k = a.getValue("defaults")) === null || k === void 0 ? void 0 : k.mediaHandler, _ && (_.context = a), L.next = 12, S.init({ audio: b, video: T, constraints: C }, y, a);
21694
+ return y = O.length > 5 && O[5] !== void 0 ? O[5] : !1, b = (d = (p = a.getValue("defaults")) === null || p === void 0 ? void 0 : p.audio) !== null && d !== void 0 ? d : !0, T = (v = (f = a.getValue("defaults")) === null || f === void 0 ? void 0 : f.video) !== null && v !== void 0 ? v : !0, s.canProduceAudio !== "ALLOWED" && (b = !1), s.canProduceVideo !== "ALLOWED" && (T = !1), S = new nt(a, i, s, u, l), C = WI(u.mediaConstraints), hi(C, (g = a.getValue("defaults")) === null || g === void 0 ? void 0 : g.mediaConfiguration), I = (k = a.getValue("defaults")) === null || k === void 0 ? void 0 : k.mediaHandler, I && (I.context = a), L.next = 12, S.init({ audio: b, video: T, constraints: C }, y, a);
21683
21695
  case 12:
21684
21696
  return S.setupEvents(), L.abrupt("return", S);
21685
21697
  case 14:
@@ -21891,8 +21903,8 @@ function Ad() {
21891
21903
  for (; ; )
21892
21904
  switch (S.prev = S.next) {
21893
21905
  case 0:
21894
- l = V({ strategy: "linear", maxRetryCount: 3, delayTime: 10 }, e), d = l.strategy, p = l.maxRetryCount, v = l.delayTime, f = 0, k = !1, y = function(_) {
21895
- k = !0, u(_);
21906
+ l = V({ strategy: "linear", maxRetryCount: 3, delayTime: 10 }, e), d = l.strategy, p = l.maxRetryCount, v = l.delayTime, f = 0, k = !1, y = function(I) {
21907
+ k = !0, u(I);
21896
21908
  };
21897
21909
  case 4:
21898
21910
  if (!(f < p)) {
@@ -22715,29 +22727,29 @@ var qe = /* @__PURE__ */ E("socket"), d_ = /* @__PURE__ */ function() {
22715
22727
  for (; ; )
22716
22728
  switch (C.prev = C.next) {
22717
22729
  case 0:
22718
- return s = a.track, u = a.encodings, l = a.codecOptions, d = a.screenShare, this._assertSendDirection(), p = this.pc.addTransceiver(s, { direction: "sendonly", streams: [d ? this._sendScreenShareStream : this._sendWebStream], sendEncodings: u }), navigator.isReactNative || (this.logger.debug("creating new transceiver"), v = RTCRtpSender.getCapabilities(typeof s == "string" ? s : s.kind), this.logger.info("senders available params: ".concat(JSON.stringify(v))), f = [], l && l.length && l.forEach(function(_) {
22719
- var I = v.codecs.find(function(N) {
22720
- return N.mimeType.includes(_.name);
22730
+ return s = a.track, u = a.encodings, l = a.codecOptions, d = a.screenShare, this._assertSendDirection(), p = this.pc.addTransceiver(s, { direction: "sendonly", streams: [d ? this._sendScreenShareStream : this._sendWebStream], sendEncodings: u }), navigator.isReactNative || (this.logger.debug("creating new transceiver"), v = RTCRtpSender.getCapabilities(typeof s == "string" ? s : s.kind), this.logger.info("senders available params: ".concat(JSON.stringify(v))), f = [], l && l.length && l.forEach(function(I) {
22731
+ var O = v.codecs.find(function(N) {
22732
+ return N.mimeType.includes(I.name);
22721
22733
  });
22722
- if (_.parameters) {
22734
+ if (I.parameters) {
22723
22735
  var M;
22724
- i.logger.debug("codecOption.parameters:".concat(JSON.stringify(_.parameters)));
22725
- var L = ((M = I.sdpFmtpLine) === null || M === void 0 ? void 0 : M.split(";")) || [];
22726
- L.push.apply(L, Re(_.parameters));
22736
+ i.logger.debug("codecOption.parameters:".concat(JSON.stringify(I.parameters)));
22737
+ var L = ((M = O.sdpFmtpLine) === null || M === void 0 ? void 0 : M.split(";")) || [];
22738
+ L.push.apply(L, Re(I.parameters));
22727
22739
  var U = Array.from(new Set(L).values());
22728
- I.sdpFmtpLine = U.join(";");
22740
+ O.sdpFmtpLine = U.join(";");
22729
22741
  }
22730
- f.push(I);
22742
+ f.push(O);
22731
22743
  }), this.logger.info("selected codecs: ".concat(JSON.stringify(f))), p.setCodecPreferences(f)), C.next = 6, this.pc.createOffer();
22732
22744
  case 6:
22733
22745
  return g = C.sent, C.next = 9, this.pc.setLocalDescription(g);
22734
22746
  case 9:
22735
- return l && l.findIndex(function(_) {
22736
- var I = _.name;
22737
- return I === "opus";
22747
+ return l && l.findIndex(function(I) {
22748
+ var O = I.name;
22749
+ return O === "opus";
22738
22750
  }) >= 0 && (k = this.enableDtx, y = this.enableStereo, b = this.enableHighBitrate ? y ? 128e3 : 64e3 : y ? 64e3 : 32e3, g.sdp = g.sdp.replace("minptime=10;useinbandfec=1", "minptime=10;useinbandfec=1;".concat(k ? "usedtx=1;" : "").concat(y ? "stereo=1;sprop-stereo=1;" : "", "maxaveragebitrate=").concat(b)), g.sdp += `a=rtcp-fb:111 nack\r
22739
22751
  `), this.midTransceiverMap.set(p.mid, p), T = /* @__PURE__ */ function() {
22740
- var _ = m(/* @__PURE__ */ h().mark(function I(M) {
22752
+ var I = m(/* @__PURE__ */ h().mark(function O(M) {
22741
22753
  return h().wrap(function(U) {
22742
22754
  for (; ; )
22743
22755
  switch (U.prev = U.next) {
@@ -22749,10 +22761,10 @@ var qe = /* @__PURE__ */ E("socket"), d_ = /* @__PURE__ */ function() {
22749
22761
  case "end":
22750
22762
  return U.stop();
22751
22763
  }
22752
- }, I);
22764
+ }, O);
22753
22765
  }));
22754
22766
  return function(M) {
22755
- return _.apply(this, arguments);
22767
+ return I.apply(this, arguments);
22756
22768
  };
22757
22769
  }(), this.logger.debug("send() | calling pc.setLocalDescription() [offer: ".concat(JSON.stringify(g, void 0, 2), "]")), C.abrupt("return", { offerSdp: g, callback: T, sender: p.sender, mid: p.mid });
22758
22770
  case 14:
@@ -22793,15 +22805,15 @@ var qe = /* @__PURE__ */ E("socket"), d_ = /* @__PURE__ */ function() {
22793
22805
  } }, { key: "send", value: function() {
22794
22806
  var e = m(/* @__PURE__ */ h().mark(function n(a) {
22795
22807
  var i = this, s, u, l, d, p, v, f, g, k, y, b, T, S;
22796
- return h().wrap(function(_) {
22808
+ return h().wrap(function(I) {
22797
22809
  for (; ; )
22798
- switch (_.prev = _.next) {
22810
+ switch (I.prev = I.next) {
22799
22811
  case 0:
22800
22812
  if (s = a.track, u = a.encodings, l = a.codecOptions, d = a.screenShare, this._assertSendDirection(), p = this.supportsSendEncodings && u !== void 0 ? { sendEncodings: u } : {}, v = this.pc.addTransceiver(s, V({ direction: "sendonly", streams: [d ? this._sendScreenShareStream : this._sendWebStream] }, p)), !(!this.supportsSendEncodings && u)) {
22801
- _.next = 10;
22813
+ I.next = 10;
22802
22814
  break;
22803
22815
  }
22804
- return u.reverse(), f = v.sender.getParameters(), f.encodings = u, _.next = 10, v.sender.setParameters(f);
22816
+ return u.reverse(), f = v.sender.getParameters(), f.encodings = u, I.next = 10, v.sender.setParameters(f);
22805
22817
  case 10:
22806
22818
  return g = function(M, L) {
22807
22819
  var U, N = Rn.parse(M), D = N.media[N.media.length - 1], F = D.rtp.filter(function(Z) {
@@ -22820,12 +22832,12 @@ var qe = /* @__PURE__ */ E("socket"), d_ = /* @__PURE__ */ function() {
22820
22832
  return Z.payload;
22821
22833
  });
22822
22834
  return N.media[N.media.length - 1].rtp = F, N.media[N.media.length - 1].fmtp = Y, N.media[N.media.length - 1].rtcpFb = B, N.media[N.media.length - 1].payloads = H.join(" "), Rn.write(N);
22823
- }, _.next = 13, this.pc.createOffer();
22835
+ }, I.next = 13, this.pc.createOffer();
22824
22836
  case 13:
22825
- return k = _.sent, k.sdp = g(k.sdp, l), this.logger.debug("send() | calling pc.setLocalDescription() [offer:".concat(JSON.stringify(k), "]")), _.next = 18, this.pc.setLocalDescription(k);
22837
+ return k = I.sent, k.sdp = g(k.sdp, l), this.logger.debug("send() | calling pc.setLocalDescription() [offer:".concat(JSON.stringify(k), "]")), I.next = 18, this.pc.setLocalDescription(k);
22826
22838
  case 18:
22827
22839
  return (s === "audio" || s.kind === "audio") && (y = this.enableDtx, b = this.enableStereo, T = this.enableHighBitrate ? b ? 128e3 : 64e3 : b ? 64e3 : 32e3, k.sdp = k.sdp.replace("minptime=10;useinbandfec=1", "minptime=10;useinbandfec=1;".concat(y ? "usedtx=1;" : "").concat(b ? "stereo=1;sprop-stereo=1;" : "", "maxaveragebitrate=").concat(T))), this.midTransceiverMap.set(v.mid, v), S = /* @__PURE__ */ function() {
22828
- var I = m(/* @__PURE__ */ h().mark(function M(L) {
22840
+ var O = m(/* @__PURE__ */ h().mark(function M(L) {
22829
22841
  return h().wrap(function(N) {
22830
22842
  for (; ; )
22831
22843
  switch (N.prev = N.next) {
@@ -22840,12 +22852,12 @@ var qe = /* @__PURE__ */ E("socket"), d_ = /* @__PURE__ */ function() {
22840
22852
  }, M);
22841
22853
  }));
22842
22854
  return function(L) {
22843
- return I.apply(this, arguments);
22855
+ return O.apply(this, arguments);
22844
22856
  };
22845
- }(), _.abrupt("return", { offerSdp: k, callback: S, sender: v.sender, mid: v.mid });
22857
+ }(), I.abrupt("return", { offerSdp: k, callback: S, sender: v.sender, mid: v.mid });
22846
22858
  case 22:
22847
22859
  case "end":
22848
- return _.stop();
22860
+ return I.stop();
22849
22861
  }
22850
22862
  }, n, this);
22851
22863
  }));
@@ -22930,25 +22942,25 @@ var qe = /* @__PURE__ */ E("socket"), d_ = /* @__PURE__ */ function() {
22930
22942
  for (; ; )
22931
22943
  switch (C.prev = C.next) {
22932
22944
  case 0:
22933
- return s = a.track, u = a.encodings, l = a.codecOptions, d = a.screenShare, this._assertSendDirection(), this.logger.debug("Safari12::creating new transceiver"), p = this.pc.addTransceiver(s, { direction: "sendonly", streams: [d ? this._sendScreenShareStream : this._sendWebStream], sendEncodings: u }), v = RTCRtpSender.getCapabilities(typeof s == "string" ? s : s.kind), this.logger.info("Safari12::senders available params: ".concat(JSON.stringify(v))), f = [], l && l.length > 0 && l.forEach(function(_) {
22934
- var I = v.codecs.find(function(N) {
22935
- return N.mimeType.includes(_.name);
22945
+ return s = a.track, u = a.encodings, l = a.codecOptions, d = a.screenShare, this._assertSendDirection(), this.logger.debug("Safari12::creating new transceiver"), p = this.pc.addTransceiver(s, { direction: "sendonly", streams: [d ? this._sendScreenShareStream : this._sendWebStream], sendEncodings: u }), v = RTCRtpSender.getCapabilities(typeof s == "string" ? s : s.kind), this.logger.info("Safari12::senders available params: ".concat(JSON.stringify(v))), f = [], l && l.length > 0 && l.forEach(function(I) {
22946
+ var O = v.codecs.find(function(N) {
22947
+ return N.mimeType.includes(I.name);
22936
22948
  });
22937
- if (_.parameters) {
22949
+ if (I.parameters) {
22938
22950
  var M;
22939
- i.logger.info("Safari12::codecOption.parameters:, ".concat(JSON.stringify(_.parameters)));
22940
- var L = ((M = I.sdpFmtpLine) === null || M === void 0 ? void 0 : M.split(";")) || [];
22941
- L.push.apply(L, Re(_.parameters));
22951
+ i.logger.info("Safari12::codecOption.parameters:, ".concat(JSON.stringify(I.parameters)));
22952
+ var L = ((M = O.sdpFmtpLine) === null || M === void 0 ? void 0 : M.split(";")) || [];
22953
+ L.push.apply(L, Re(I.parameters));
22942
22954
  var U = Re(new Set(L).values());
22943
- I.sdpFmtpLine = U.join(";");
22955
+ O.sdpFmtpLine = U.join(";");
22944
22956
  }
22945
- f.push(I);
22957
+ f.push(O);
22946
22958
  }), this.logger.info("Safari12::selected codecs: ".concat(JSON.stringify(f))), p.setCodecPreferences(f), C.next = 12, this.pc.createOffer();
22947
22959
  case 12:
22948
22960
  return g = C.sent, C.next = 15, this.pc.setLocalDescription(g);
22949
22961
  case 15:
22950
22962
  return (s === "audio" || s.kind === "audio") && (k = this.enableStereo, y = this.enableDtx, b = this.enableHighBitrate ? k ? 128e3 : 64e3 : k ? 64e3 : 32e3, g.sdp = g.sdp.replace("minptime=10;useinbandfec=1", "minptime=10;useinbandfec=1;".concat(y ? "usedtx=1;" : "").concat(k ? "stereo=1;sprop-stereo=1;" : "", "maxaveragebitrate=").concat(b))), this.midTransceiverMap.set(p.mid, p), T = /* @__PURE__ */ function() {
22951
- var _ = m(/* @__PURE__ */ h().mark(function I(M) {
22963
+ var I = m(/* @__PURE__ */ h().mark(function O(M) {
22952
22964
  return h().wrap(function(U) {
22953
22965
  for (; ; )
22954
22966
  switch (U.prev = U.next) {
@@ -22960,10 +22972,10 @@ var qe = /* @__PURE__ */ E("socket"), d_ = /* @__PURE__ */ function() {
22960
22972
  case "end":
22961
22973
  return U.stop();
22962
22974
  }
22963
- }, I);
22975
+ }, O);
22964
22976
  }));
22965
22977
  return function(M) {
22966
- return _.apply(this, arguments);
22978
+ return I.apply(this, arguments);
22967
22979
  };
22968
22980
  }(), C.abrupt("return", { offerSdp: g, callback: T, sender: p.sender, mid: p.mid });
22969
22981
  case 19:
@@ -23482,42 +23494,42 @@ var Fc = "transport closed", ha = /* @__PURE__ */ E("context"), S_ = /* @__PURE_
23482
23494
  delete T.iceServers, delete T.iceTransportPolicy, delete T.bundlePolicy, delete T.rtcpMuxPolicy, delete T.sdpSemantics, s.producers = /* @__PURE__ */ new Map(), s.consumers = /* @__PURE__ */ new Map(), s.datachannels = /* @__PURE__ */ new Map(), s.consumerTrackEvents = /* @__PURE__ */ new Map(), s.unknownTracksMap = /* @__PURE__ */ new Map(), s.awaitQueue = new Cd(b, !0), s.handler = d(), s.handler.enableHighBitrate = (n = y == null ? void 0 : y.enableHighBitrate) !== null && n !== void 0 ? n : !1, s.handler.enableStereo = (a = y == null ? void 0 : y.enableStereo) !== null && a !== void 0 ? a : !1, s.handler.enableDtx = (i = y == null ? void 0 : y.enableDtx) !== null && i !== void 0 ? i : !0, s.handler.init({ onTrackHandler: s._ontrack.bind(s), direction: l, iceServers: p, iceTransportPolicy: v, additionalSettings: g, proprietaryConstraints: f }), s.appData = k || {};
23483
23495
  var S = 3e4;
23484
23496
  return s.transportConnectionPromise = new Promise(function(C) {
23485
- var _ = setTimeout(function() {
23497
+ var I = setTimeout(function() {
23486
23498
  b.error("ICE connection timeout - possible firewall blocking WebRTC or TURN unreachable", { transport: { id: s.id, type: s.direction } }), C(!1);
23487
23499
  }, S);
23488
23500
  s.once("connected", function() {
23489
- clearTimeout(_), C(!0);
23501
+ clearTimeout(I), C(!0);
23490
23502
  }), s.once("disconnect", function() {
23491
- clearTimeout(_), C(!1);
23503
+ clearTimeout(I), C(!1);
23492
23504
  }), s.once("close", function() {
23493
- clearTimeout(_), C(!1);
23505
+ clearTimeout(I), C(!1);
23494
23506
  });
23495
23507
  }), s.eventsDCReadyPromise = new Promise(function(C) {
23496
23508
  s.eventsDCReadyPromiseResolver = C;
23497
23509
  }), s.handler.on("@connectionstatechange", function(C) {
23498
23510
  C !== s.connectionState && (s.logger.debug("connection state changed to ".concat(C)), s.connectionState = C, C === "connected" && (s.connected = !0, s.emit("connected")), C === "disconnected" && (s.connected = !1, s.emit("disconnect")), (C === "failed" || C === "closed") && (s.connected = !1, s.emit("close")), s.closed || s.safeEmit("connectionstatechange", C));
23499
23511
  }), s.handler.on("@icecandidate", function(C) {
23500
- var _ = C.candidate;
23501
- s.closed || s.safeEmit("icecandidate", _);
23512
+ var I = C.candidate;
23513
+ s.closed || s.safeEmit("icecandidate", I);
23502
23514
  }), s.handler.on("dc_open", function(C) {
23503
- var _ = s.datachannels.get(C.label);
23504
- _ || (_ || (_ = new tc(c(s, ha)[ha], C, C.label, s.serverId), s.datachannels.set(C.label, _)), s.eventsDCFailureTimer = setTimeout(function() {
23515
+ var I = s.datachannels.get(C.label);
23516
+ I || (I || (I = new tc(c(s, ha)[ha], C, C.label, s.serverId), s.datachannels.set(C.label, I)), s.eventsDCFailureTimer = setTimeout(function() {
23505
23517
  C.label === "events" && (s.eventsDCReadyPromiseResolver(!1), s.safeEmit("dc_error", C.label));
23506
23518
  }, 5e3));
23507
- }), s.handler.on("datachannel", function(C, _) {
23519
+ }), s.handler.on("datachannel", function(C, I) {
23508
23520
  C.label === "events" && (s.eventsDCReadyPromiseResolver(!0), s.eventsDCFailureTimer && clearTimeout(s.eventsDCFailureTimer));
23509
- var I = s.datachannels.get(C.label);
23510
- if (!I) {
23511
- s.logger.error("unregistered datachannel for message", { rtcChannel: { label: C.label, message: _ } });
23521
+ var O = s.datachannels.get(C.label);
23522
+ if (!O) {
23523
+ s.logger.error("unregistered datachannel for message", { rtcChannel: { label: C.label, message: I } });
23512
23524
  return;
23513
23525
  }
23514
23526
  try {
23515
- var M = JSON.parse(_);
23527
+ var M = JSON.parse(I);
23516
23528
  s.logger.debug("datachannel message chunk recieved", { dataChannelMessageChunk: { id: M.id, count: M.count, chunkIndex: M.chunkIndex, chunk: M.chunk, transprtId: s.serverId } });
23517
- var L = I.processMessage(M);
23529
+ var L = O.processMessage(M);
23518
23530
  if (!L)
23519
23531
  return;
23520
- s.logger.debug("datachannel message with id:".concat(M.id, " on transport:").concat(s.serverId, "complete - ").concat(JSON.stringify(L))), s.emit("datachannel:".concat(C.label), I.label, L);
23532
+ s.logger.debug("datachannel message with id:".concat(M.id, " on transport:").concat(s.serverId, "complete - ").concat(JSON.stringify(L))), s.emit("datachannel:".concat(C.label), O.label, L);
23521
23533
  } catch (U) {
23522
23534
  s.logger.error("error parsing message", { error: U });
23523
23535
  }
@@ -23703,7 +23715,7 @@ var Fc = "transport closed", ha = /* @__PURE__ */ E("context"), S_ = /* @__PURE_
23703
23715
  return r;
23704
23716
  }() }, { key: "produce", value: function() {
23705
23717
  var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
23706
- var s = this, u, l, d, p, v, f, g, k, y, b, T, S, C, _, I, M;
23718
+ var s = this, u, l, d, p, v, f, g, k, y, b, T, S, C, I, O, M;
23707
23719
  return h().wrap(function(U) {
23708
23720
  for (; ; )
23709
23721
  switch (U.prev = U.next) {
@@ -23736,7 +23748,7 @@ var Fc = "transport closed", ha = /* @__PURE__ */ E("context"), S_ = /* @__PURE_
23736
23748
  }, N);
23737
23749
  })), "Transport.produce");
23738
23750
  case 9:
23739
- return C = U.sent, _ = C.producerId, I = C.localId, M = C.rtpSender, U.abrupt("return", this.createProducerObject({ id: _, localId: I, track: l, stopTracks: f, disableTrackOnPause: k, zeroRtpOnPause: b, appData: S, handler: this.handler, rtpSender: M }));
23751
+ return C = U.sent, I = C.producerId, O = C.localId, M = C.rtpSender, U.abrupt("return", this.createProducerObject({ id: I, localId: O, track: l, stopTracks: f, disableTrackOnPause: k, zeroRtpOnPause: b, appData: S, handler: this.handler, rtpSender: M }));
23740
23752
  case 14:
23741
23753
  case "end":
23742
23754
  return U.stop();
@@ -23836,8 +23848,8 @@ var Fc = "transport closed", ha = /* @__PURE__ */ E("context"), S_ = /* @__PURE_
23836
23848
  case 0:
23837
23849
  return v = {}, S.next = 3, i(a);
23838
23850
  case 3:
23839
- if (f = S.sent, g = f.consumerStates, k = f.sessionDescription, y = f.failedProducers, g.forEach(function(C, _) {
23840
- v[_] = u.createConsumerObjectAndWaitForTrack(V(V({}, C), {}, { producerId: _ }));
23851
+ if (f = S.sent, g = f.consumerStates, k = f.sessionDescription, y = f.failedProducers, g.forEach(function(C, I) {
23852
+ v[I] = u.createConsumerObjectAndWaitForTrack(V(V({}, C), {}, { producerId: I }));
23841
23853
  }), !k) {
23842
23854
  S.next = 12;
23843
23855
  break;
@@ -23845,11 +23857,11 @@ var Fc = "transport closed", ha = /* @__PURE__ */ E("context"), S_ = /* @__PURE_
23845
23857
  return u.logger.info("Session description found, sending negotiation request"), S.next = 12, s(k);
23846
23858
  case 12:
23847
23859
  return b = [], S.next = 15, Promise.all(Object.entries(v).map(function(C) {
23848
- var _ = We(C, 2), I = _[0], M = _[1];
23860
+ var I = We(C, 2), O = I[0], M = I[1];
23849
23861
  return M.then(function(L) {
23850
23862
  return b.push(L);
23851
23863
  }).catch(function() {
23852
- u.logger.error("Failed to create consumer object, producer: ".concat(I), { error: { message: "This should not happen" }, transport: { serverId: u.serverId } });
23864
+ u.logger.error("Failed to create consumer object, producer: ".concat(O), { error: { message: "This should not happen" }, transport: { serverId: u.serverId } });
23853
23865
  });
23854
23866
  }));
23855
23867
  case 15:
@@ -23971,7 +23983,7 @@ var Fc = "transport closed", ha = /* @__PURE__ */ E("context"), S_ = /* @__PURE_
23971
23983
  switch (C.prev = C.next) {
23972
23984
  case 0:
23973
23985
  return s = a.consumerId, u = a.producerId, l = a.producingPeerId, d = a.producingTransportId, p = a.streamId, v = a.paused, f = a.screenShare, g = a.appData, k = a.kind, y = a.mimeType, b = "".concat(p, ":").concat(k), T = V(V({}, a), {}, { name: "consumer creation task error", message: "consumer creation failed" }), C.abrupt("return", new Promise(/* @__PURE__ */ function() {
23974
- var _ = m(/* @__PURE__ */ h().mark(function I(M, L) {
23986
+ var I = m(/* @__PURE__ */ h().mark(function O(M, L) {
23975
23987
  var U, N, D;
23976
23988
  return h().wrap(function(Y) {
23977
23989
  for (; ; )
@@ -23999,10 +24011,10 @@ var Fc = "transport closed", ha = /* @__PURE__ */ E("context"), S_ = /* @__PURE_
23999
24011
  case "end":
24000
24012
  return Y.stop();
24001
24013
  }
24002
- }, I);
24014
+ }, O);
24003
24015
  }));
24004
- return function(I, M) {
24005
- return _.apply(this, arguments);
24016
+ return function(O, M) {
24017
+ return I.apply(this, arguments);
24006
24018
  };
24007
24019
  }()));
24008
24020
  case 4:
@@ -25075,8 +25087,8 @@ function K_(o) {
25075
25087
  }
25076
25088
  var su = /* @__PURE__ */ E("zeroCrossingThreshold"), ou = /* @__PURE__ */ E("minVoiceDuration"), uu = /* @__PURE__ */ E("hangoverFrames"), ks = /* @__PURE__ */ E("initialEnergyThreshold"), $s = /* @__PURE__ */ E("noiseAdaptationRate"), Ls = /* @__PURE__ */ E("voiceAdaptationRate"), Cu = /* @__PURE__ */ E("minEnergyThreshold"), Ru = /* @__PURE__ */ E("maxEnergyThreshold"), bs = /* @__PURE__ */ E("energyRatioThreshold"), Ar = /* @__PURE__ */ E("currentEnergyThreshold"), ct = /* @__PURE__ */ E("backgroundNoiseEnergy"), ut = /* @__PURE__ */ E("voiceDetected"), fa = /* @__PURE__ */ E("consecutiveVoiceFrames"), ga = /* @__PURE__ */ E("hangoverCount"), zt = /* @__PURE__ */ E("noiseEnergyHistory"), Au = /* @__PURE__ */ E("noiseHistorySize"), Jl = /* @__PURE__ */ E("updateEnergyThreshold"), Kl = /* @__PURE__ */ E("updateNoiseEstimate"), qd = /* @__PURE__ */ E("calculateEnergy"), Gd = /* @__PURE__ */ E("calculateZeroCrossingRate"), Vp = /* @__PURE__ */ function() {
25077
25089
  function o() {
25078
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.initialEnergyThreshold, r = e === void 0 ? 0.015 : e, n = t.zeroCrossingThreshold, a = n === void 0 ? 20 : n, i = t.minVoiceDuration, s = i === void 0 ? 3 : i, u = t.hangoverFrames, l = u === void 0 ? 5 : u, d = t.noiseAdaptationRate, p = d === void 0 ? 0.95 : d, v = t.voiceAdaptationRate, f = v === void 0 ? 0.99 : v, g = t.minEnergyThreshold, k = g === void 0 ? 5e-3 : g, y = t.maxEnergyThreshold, b = y === void 0 ? 0.2 : y, T = t.energyRatioThreshold, S = T === void 0 ? 1.5 : T, C = t.noiseHistorySize, _ = C === void 0 ? 50 : C;
25079
- w(this, o), Object.defineProperty(this, Kl, { value: Y_ }), Object.defineProperty(this, Jl, { value: z_ }), Object.defineProperty(this, su, { writable: !0, value: void 0 }), Object.defineProperty(this, ou, { writable: !0, value: void 0 }), Object.defineProperty(this, uu, { writable: !0, value: void 0 }), Object.defineProperty(this, ks, { writable: !0, value: void 0 }), Object.defineProperty(this, $s, { writable: !0, value: void 0 }), Object.defineProperty(this, Ls, { writable: !0, value: void 0 }), Object.defineProperty(this, Cu, { writable: !0, value: void 0 }), Object.defineProperty(this, Ru, { writable: !0, value: void 0 }), Object.defineProperty(this, bs, { writable: !0, value: void 0 }), Object.defineProperty(this, Ar, { writable: !0, value: void 0 }), Object.defineProperty(this, ct, { writable: !0, value: void 0 }), Object.defineProperty(this, ut, { writable: !0, value: !1 }), Object.defineProperty(this, fa, { writable: !0, value: 0 }), Object.defineProperty(this, ga, { writable: !0, value: 0 }), Object.defineProperty(this, zt, { writable: !0, value: [] }), Object.defineProperty(this, Au, { writable: !0, value: void 0 }), c(this, ks)[ks] = r, c(this, Ar)[Ar] = r, c(this, su)[su] = a, c(this, ou)[ou] = s, c(this, uu)[uu] = l, c(this, $s)[$s] = p, c(this, Ls)[Ls] = f, c(this, Cu)[Cu] = k, c(this, Ru)[Ru] = b, c(this, bs)[bs] = S, c(this, Au)[Au] = _, c(this, ct)[ct] = r / 2;
25090
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.initialEnergyThreshold, r = e === void 0 ? 0.015 : e, n = t.zeroCrossingThreshold, a = n === void 0 ? 20 : n, i = t.minVoiceDuration, s = i === void 0 ? 3 : i, u = t.hangoverFrames, l = u === void 0 ? 5 : u, d = t.noiseAdaptationRate, p = d === void 0 ? 0.95 : d, v = t.voiceAdaptationRate, f = v === void 0 ? 0.99 : v, g = t.minEnergyThreshold, k = g === void 0 ? 5e-3 : g, y = t.maxEnergyThreshold, b = y === void 0 ? 0.2 : y, T = t.energyRatioThreshold, S = T === void 0 ? 1.5 : T, C = t.noiseHistorySize, I = C === void 0 ? 50 : C;
25091
+ w(this, o), Object.defineProperty(this, Kl, { value: Y_ }), Object.defineProperty(this, Jl, { value: z_ }), Object.defineProperty(this, su, { writable: !0, value: void 0 }), Object.defineProperty(this, ou, { writable: !0, value: void 0 }), Object.defineProperty(this, uu, { writable: !0, value: void 0 }), Object.defineProperty(this, ks, { writable: !0, value: void 0 }), Object.defineProperty(this, $s, { writable: !0, value: void 0 }), Object.defineProperty(this, Ls, { writable: !0, value: void 0 }), Object.defineProperty(this, Cu, { writable: !0, value: void 0 }), Object.defineProperty(this, Ru, { writable: !0, value: void 0 }), Object.defineProperty(this, bs, { writable: !0, value: void 0 }), Object.defineProperty(this, Ar, { writable: !0, value: void 0 }), Object.defineProperty(this, ct, { writable: !0, value: void 0 }), Object.defineProperty(this, ut, { writable: !0, value: !1 }), Object.defineProperty(this, fa, { writable: !0, value: 0 }), Object.defineProperty(this, ga, { writable: !0, value: 0 }), Object.defineProperty(this, zt, { writable: !0, value: [] }), Object.defineProperty(this, Au, { writable: !0, value: void 0 }), c(this, ks)[ks] = r, c(this, Ar)[Ar] = r, c(this, su)[su] = a, c(this, ou)[ou] = s, c(this, uu)[uu] = l, c(this, $s)[$s] = p, c(this, Ls)[Ls] = f, c(this, Cu)[Cu] = k, c(this, Ru)[Ru] = b, c(this, bs)[bs] = S, c(this, Au)[Au] = I, c(this, ct)[ct] = r / 2;
25080
25092
  }
25081
25093
  return P(o, [{
25082
25094
  key: "voiceDetected",
@@ -25297,14 +25309,14 @@ var iO = function() {
25297
25309
  try {
25298
25310
  var e = new window.MediaStreamTrackGenerator({ kind: "audio" }), r = e.writable.getWriter(), n = 48e3, a = 128, i = 1, s = 0, u = null, l = /* @__PURE__ */ function() {
25299
25311
  var T = m(/* @__PURE__ */ h().mark(function S() {
25300
- var C, _;
25312
+ var C, I;
25301
25313
  return h().wrap(function(M) {
25302
25314
  for (; ; )
25303
25315
  switch (M.prev = M.next) {
25304
25316
  case 0:
25305
- return M.prev = 0, C = new Float32Array(a * i), _ = new window.AudioData({ format: "f32", sampleRate: n, numberOfFrames: a, numberOfChannels: i, timestamp: s, data: C }), s += a / n * 1e6, M.next = 6, r.ready;
25317
+ return M.prev = 0, C = new Float32Array(a * i), I = new window.AudioData({ format: "f32", sampleRate: n, numberOfFrames: a, numberOfChannels: i, timestamp: s, data: C }), s += a / n * 1e6, M.next = 6, r.ready;
25306
25318
  case 6:
25307
- return M.next = 8, r.write(_);
25319
+ return M.next = 8, r.write(I);
25308
25320
  case 8:
25309
25321
  M.next = 15;
25310
25322
  break;
@@ -25578,46 +25590,46 @@ var iO = function() {
25578
25590
  }() }, { key: "_shareWebcam", value: function() {
25579
25591
  var t = m(/* @__PURE__ */ h().mark(function r(n, a) {
25580
25592
  var i, s, u = this, l, d, p, v, f, g, k, y, b, T, S;
25581
- return h().wrap(function(_) {
25593
+ return h().wrap(function(I) {
25582
25594
  for (; ; )
25583
- switch (_.prev = _.next) {
25595
+ switch (I.prev = I.next) {
25584
25596
  case 0:
25585
25597
  if (l = a === "video/VP9" ? ur.WEBCAM : ur.WEBCAM_BACKUP, d = c(this, Ke)[Ke](l), !d) {
25586
- _.next = 17;
25598
+ I.next = 17;
25587
25599
  break;
25588
25600
  }
25589
- return _.next = 5, d;
25601
+ return I.next = 5, d;
25590
25602
  case 5:
25591
- if (p = _.sent, !c(this, W)[W].producers.has(p)) {
25592
- _.next = 16;
25603
+ if (p = I.sent, !c(this, W)[W].producers.has(p)) {
25604
+ I.next = 16;
25593
25605
  break;
25594
25606
  }
25595
25607
  if (v = c(this, W)[W].producers.get(p), v.closed) {
25596
- _.next = 14;
25608
+ I.next = 14;
25597
25609
  break;
25598
25610
  }
25599
- return _.next = 11, v.replaceTrack({ track: n });
25611
+ return I.next = 11, v.replaceTrack({ track: n });
25600
25612
  case 11:
25601
- return _.next = 13, this.resumeWebcam(l);
25613
+ return I.next = 13, this.resumeWebcam(l);
25602
25614
  case 13:
25603
- return _.abrupt("return", n);
25615
+ return I.abrupt("return", n);
25604
25616
  case 14:
25605
- return _.next = 16, this.disableWebcam(a);
25617
+ return I.next = 16, this.disableWebcam(a);
25606
25618
  case 16:
25607
- return _.abrupt("return", this._shareWebcam(n, a));
25619
+ return I.abrupt("return", this._shareWebcam(n, a));
25608
25620
  case 17:
25609
- return f = [a].concat(qt.filter(function(I) {
25610
- return I !== a;
25621
+ return f = [a].concat(qt.filter(function(O) {
25622
+ return O !== a;
25611
25623
  })), g = c(this, xl)[xl](n, f), k = Eo(this.context, "disableSimulcast"), y = (i = this.context) === null || i === void 0 || (i = i.getValue("overrides")) === null || i === void 0 ? void 0 : i.simulcastConfig, b = k || y && y.disable || !((s = this.context) !== null && s !== void 0 && (s = s.getValue("theme")) !== null && s !== void 0 && s.isSimulcastEnabled), b ? this.logger.info("Simulcast disabled for webcam producer, SFU: CF") : (this.logger.info("Simulcast enabled for SFU: CF"), g.encodings = qI(this.context, n), this.logger.info("Simulcast encodings: ".concat(JSON.stringify(g.encodings)))), this.context.getValue("flagsmith").hasFeature(Oe.TRACK_HINT) && (g.track.contentHint = this.context.getValue("flagsmith").getValue(Oe.TRACK_HINT)), T = function() {
25612
25624
  u.logger.info("Disabling video due to the producer closure"), c(u, yr)[yr].delete(l);
25613
- }, S = c(this, W)[W].createProducer(g, T), c(this, ba)[ba](l, S.then(function(I) {
25614
- return I.id;
25615
- })), _.abrupt("return", S.then(function(I) {
25616
- return I.track;
25625
+ }, S = c(this, W)[W].createProducer(g, T), c(this, ba)[ba](l, S.then(function(O) {
25626
+ return O.id;
25627
+ })), I.abrupt("return", S.then(function(O) {
25628
+ return O.track;
25617
25629
  }));
25618
25630
  case 28:
25619
25631
  case "end":
25620
- return _.stop();
25632
+ return I.stop();
25621
25633
  }
25622
25634
  }, r, this);
25623
25635
  }));
@@ -26355,34 +26367,34 @@ function lO(o, t, e, r) {
26355
26367
  }
26356
26368
  function Xd() {
26357
26369
  return Xd = m(/* @__PURE__ */ h().mark(function o(t, e, r, n) {
26358
- var a;
26359
- return h().wrap(function(s) {
26370
+ var a, i, s;
26371
+ return h().wrap(function(l) {
26360
26372
  for (; ; )
26361
- switch (s.prev = s.next) {
26373
+ switch (l.prev = l.next) {
26362
26374
  case 0:
26363
- if (c(this, Mu)[Mu] = t, s.prev = 1, !c(this, Zr)[Zr]) {
26364
- s.next = 7;
26375
+ if (c(this, Mu)[Mu] = t, l.prev = 1, !c(this, Zr)[Zr]) {
26376
+ l.next = 7;
26365
26377
  break;
26366
26378
  }
26367
- return s.next = 5, c(this, Zr)[Zr];
26379
+ return l.next = 5, c(this, Zr)[Zr];
26368
26380
  case 5:
26369
- s.next = 9;
26381
+ l.next = 9;
26370
26382
  break;
26371
26383
  case 7:
26372
- return s.next = 9, c(this, _u)[_u](t, e, r, n);
26384
+ return l.next = 9, c(this, _u)[_u](t, e, r, n);
26373
26385
  case 9:
26374
- return c(this, Kd)[Kd](e), s.next = 12, c(this, Jd)[Jd]();
26386
+ return c(this, Kd)[Kd](e), l.next = 12, c(this, Jd)[Jd]();
26375
26387
  case 12:
26376
- return a = s.sent, s.abrupt("return", { roomJoined: a });
26377
- case 16:
26378
- return s.prev = 16, s.t0 = s.catch(1), this.logger.error("Failed to complete room join", { error: s.t0 }), s.abrupt("return", { roomJoined: !1, error: s.t0 });
26379
- case 20:
26380
- return s.prev = 20, c(this, Zr)[Zr] = null, s.finish(20);
26381
- case 23:
26388
+ return a = l.sent, i = a.joined, s = a.error, l.abrupt("return", { roomJoined: i, error: s });
26389
+ case 18:
26390
+ return l.prev = 18, l.t0 = l.catch(1), this.logger.error("Failed to complete room join", { error: l.t0 }), l.abrupt("return", { roomJoined: !1, error: l.t0 });
26391
+ case 22:
26392
+ return l.prev = 22, c(this, Zr)[Zr] = null, l.finish(22);
26393
+ case 25:
26382
26394
  case "end":
26383
- return s.stop();
26395
+ return l.stop();
26384
26396
  }
26385
- }, o, this, [[1, 16, 20, 23]]);
26397
+ }, o, this, [[1, 18, 22, 25]]);
26386
26398
  })), Xd.apply(this, arguments);
26387
26399
  }
26388
26400
  function dO() {
@@ -26397,9 +26409,9 @@ function Zd() {
26397
26409
  case 0:
26398
26410
  return n.prev = 0, this.mediaJoined = !0, n.next = 4, c(this, W)[W].socketHandler.notifySelfJoinComplete();
26399
26411
  case 4:
26400
- return t = n.sent, e = t.roomState, c(this, Iu)[Iu] = e.roomUuid, c(this, Aa)[Aa] = !0, c(this, Ra)[Ra] = !1, n.abrupt("return", !0);
26412
+ return t = n.sent, e = t.roomState, c(this, Iu)[Iu] = e.roomUuid, c(this, Aa)[Aa] = !0, c(this, Ra)[Ra] = !1, n.abrupt("return", { joined: !0 });
26401
26413
  case 12:
26402
- return n.prev = 12, n.t0 = n.catch(0), this.logger.error("Error completing room join", { error: n.t0 }), this.mediaJoined = !1, n.abrupt("return", !1);
26414
+ return n.prev = 12, n.t0 = n.catch(0), this.logger.error("Error completing room join", { error: n.t0 }), this.mediaJoined = !1, n.abrupt("return", { joined: !1, error: n.t0 });
26403
26415
  case 17:
26404
26416
  case "end":
26405
26417
  return n.stop();
@@ -26841,17 +26853,22 @@ var wO = Object.defineProperty, PO = Object.getOwnPropertyDescriptor, Xs = funct
26841
26853
  }
26842
26854
  return this.waitlistedHandler(), d.abrupt("return");
26843
26855
  case 12:
26844
- return d.next = 14, this.joinMediaRoom(n);
26845
- case 14:
26846
- c(this, X)[X].notify("stageStatus"), d.next = 21;
26856
+ d.next = 18;
26847
26857
  break;
26848
- case 17:
26849
- throw d.prev = 17, d.t0 = d.catch(1), this.logger.error("Error in joinRoom", { error: d.t0 }), d.t0;
26858
+ case 14:
26859
+ throw d.prev = 14, d.t0 = d.catch(1), this.logger.error("SelfController.joinRoom: socket join failed", { error: d.t0 }), new q("Could not connect to the room.", "0002");
26860
+ case 18:
26861
+ return d.prev = 18, d.next = 21, this.joinMediaRoom(n);
26850
26862
  case 21:
26863
+ c(this, X)[X].notify("stageStatus"), d.next = 28;
26864
+ break;
26865
+ case 24:
26866
+ throw d.prev = 24, d.t1 = d.catch(18), this.logger.error("SelfController.joinRoom: media room join failed", { error: d.t1 }), new q("Could not establish media connection.", "0002");
26867
+ case 28:
26851
26868
  case "end":
26852
26869
  return d.stop();
26853
26870
  }
26854
- }, r, this, [[1, 17]]);
26871
+ }, r, this, [[1, 14], [18, 24]]);
26855
26872
  }));
26856
26873
  function e() {
26857
26874
  return t.apply(this, arguments);
@@ -26891,12 +26908,12 @@ var wO = Object.defineProperty, PO = Object.getOwnPropertyDescriptor, Xs = funct
26891
26908
  return e;
26892
26909
  }() }, { key: "joinMediaRoom", value: function() {
26893
26910
  var t = m(/* @__PURE__ */ h().mark(function r() {
26894
- var n, a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C = arguments;
26911
+ var n, a, i, s, u, l, d, p, v, f, g, k, y, b, T, S = arguments;
26895
26912
  return h().wrap(function(I) {
26896
26913
  for (; ; )
26897
26914
  switch (I.prev = I.next) {
26898
26915
  case 0:
26899
- if (n = C.length > 0 && C[0] !== void 0 ? C[0] : !1, a = c(this, X)[X].getAllValues(), i = a.peerId, s = a.viewType, u = a.meetingId, l = a.stageStatus, I.prev = 2, s !== Ua.Livestream) {
26916
+ if (n = S.length > 0 && S[0] !== void 0 ? S[0] : !1, a = c(this, X)[X].getAllValues(), i = a.peerId, s = a.viewType, u = a.meetingId, l = a.stageStatus, I.prev = 2, s !== Ua.Livestream) {
26900
26917
  I.next = 9;
26901
26918
  break;
26902
26919
  }
@@ -26926,26 +26943,26 @@ var wO = Object.defineProperty, PO = Object.getOwnPropertyDescriptor, Xs = funct
26926
26943
  I.t2 = {};
26927
26944
  case 21:
26928
26945
  if (y = I.t2, b = y.roomJoined, T = y.error, b) {
26929
- I.next = 27;
26946
+ I.next = 26;
26930
26947
  break;
26931
26948
  }
26932
- throw this.logger.error("Error:SelfController.mediaRoomJoin", { error: T }), T;
26933
- case 27:
26949
+ throw T != null ? T : new Error("Could not connect to media server");
26950
+ case 26:
26934
26951
  if (l !== "ON_STAGE") {
26935
- I.next = 30;
26952
+ I.next = 29;
26936
26953
  break;
26937
26954
  }
26938
- return I.next = 30, this.shareMediaTracks();
26939
- case 30:
26940
- this.self.roomState = "joined", this.self.emit("roomJoined", { reconnected: n }), I.next = 38;
26955
+ return I.next = 29, this.shareMediaTracks();
26956
+ case 29:
26957
+ this.self.roomState = "joined", this.self.emit("roomJoined", { reconnected: n }), I.next = 37;
26941
26958
  break;
26942
- case 34:
26943
- throw I.prev = 34, I.t3 = I.catch(2), this.logger.error("Error:SelfController.mediaRoomJoin", { error: I.t3 }), new q("".concat((S = I.t3 === null || I.t3 === void 0 ? void 0 : I.t3.message) !== null && S !== void 0 ? S : "could not connect to media servers"), "0002");
26944
- case 38:
26959
+ case 33:
26960
+ throw I.prev = 33, I.t3 = I.catch(2), this.logger.error("SelfController.mediaRoomJoin", { error: I.t3 }), I.t3;
26961
+ case 37:
26945
26962
  case "end":
26946
26963
  return I.stop();
26947
26964
  }
26948
- }, r, this, [[2, 34]]);
26965
+ }, r, this, [[2, 33]]);
26949
26966
  }));
26950
26967
  function e() {
26951
26968
  return t.apply(this, arguments);
@@ -27039,12 +27056,12 @@ var wO = Object.defineProperty, PO = Object.getOwnPropertyDescriptor, Xs = funct
27039
27056
  case 0:
27040
27057
  return C.next = 2, v.getAllDevices();
27041
27058
  case 2:
27042
- return T = C.sent, f.info("populated_full_device_list", { devices: JSON.stringify(T) }), n.getValue("callstats").devices("AUDIO", T == null ? void 0 : T.filter(function(_) {
27043
- return _.kind === "audioinput";
27044
- })), n.getValue("callstats").devices("VIDEO", T == null ? void 0 : T.filter(function(_) {
27045
- return _.kind === "videoinput";
27046
- })), n.getValue("callstats").devices("SPEAKER", T == null ? void 0 : T.filter(function(_) {
27047
- return _.kind === "audiooutput";
27059
+ return T = C.sent, f.info("populated_full_device_list", { devices: JSON.stringify(T) }), n.getValue("callstats").devices("AUDIO", T == null ? void 0 : T.filter(function(I) {
27060
+ return I.kind === "audioinput";
27061
+ })), n.getValue("callstats").devices("VIDEO", T == null ? void 0 : T.filter(function(I) {
27062
+ return I.kind === "videoinput";
27063
+ })), n.getValue("callstats").devices("SPEAKER", T == null ? void 0 : T.filter(function(I) {
27064
+ return I.kind === "audiooutput";
27048
27065
  })), f.info("Callstats:: initializing"), C.prev = 8, C.t0 = n.getValue("callstats"), C.t1 = d, C.t2 = Sr.getDeviceInfo().engineName, C.t3 = n.getValue("env"), C.next = 15, l.getICEServers();
27049
27066
  case 15:
27050
27067
  return C.t4 = C.sent, C.t5 = n.getValue("apiBase"), C.t6 = n.getValue("flagsmith").getAllFlags(), C.t7 = f, C.t8 = iP(n), C.t9 = g, C.t10 = n.getValue("authToken"), C.t11 = { peerId: C.t1, engineName: C.t2, env: C.t3, iceServers: C.t4, apiBase: C.t5, flags: C.t6, logger: C.t7, apiHostnames: C.t8, skipConnectivityChecks: C.t9, authToken: C.t10 }, C.next = 25, C.t0.initialize.call(C.t0, C.t11);
@@ -27234,7 +27251,7 @@ var IO = Object.defineProperty, MO = Object.getOwnPropertyDescriptor, _O = funct
27234
27251
  case 16:
27235
27252
  return v = b.sent, f = We(v, 2), g = f[0].room, k = f[1].peers, c(this, jr)[jr].getValue("peerSessionStore").emit(j.ROOM_STATE, g), c(this, jr)[jr].getValue("peerSessionStore").emit(j.SOCKET_PEERS, k), b.abrupt("return", { peer: l });
27236
27253
  case 25:
27237
- throw b.prev = 25, b.t2 = b.catch(3), this.logger.error("RoomSocketHandler.joinRoom.failed", { error: b.t2 }), new q("Error: RoomSocketHandler.joinRoom failed.", "0002", this.logger, b.t2);
27254
+ throw b.prev = 25, b.t2 = b.catch(3), this.logger.error("RoomSocketHandler.joinRoom.failed", { error: b.t2 }), b.t2;
27238
27255
  case 29:
27239
27256
  case "end":
27240
27257
  return b.stop();
@@ -28205,7 +28222,7 @@ var GO = /* @__PURE__ */ function(o) {
28205
28222
  }]]);
28206
28223
  }
28207
28224
  return A(t, o), P(t);
28208
- }(O), pv = new GO(), Ig = /* @__PURE__ */ function() {
28225
+ }(_), pv = new GO(), Ig = /* @__PURE__ */ function() {
28209
28226
  function o() {
28210
28227
  w(this, o);
28211
28228
  }
@@ -28279,8 +28296,8 @@ var Mg = /* @__PURE__ */ function(o) {
28279
28296
  function o(t, e) {
28280
28297
  var r, n, a, i, s, u, l, d, p, v;
28281
28298
  w(this, o), mr(this, tp), mr(this, ku), mr(this, np), mr(this, ap), mr(this, Bc), mr(this, sp), mr(this, Ou), mr(this, Du), mr(this, Gc), mr(this, To), mr(this, Lu), mr(this, Or, void 0), mr(this, vo, void 0), mr(this, wr, void 0), mr(this, Fr, void 0), mr(this, gi, void 0), mr(this, tt, void 0), mr(this, La, void 0), mr(this, Si, void 0), mr(this, Mn, void 0), mr(this, fo, void 0), mr(this, Ia, void 0);
28282
- var f, g, k, y, b, T, S, C, _;
28283
- ze(this, vo, t), ze(this, gi, []), ze(this, tt, new Hc()), ze(this, La, !0), ze(this, Mn, !1), ze(this, wr, e != null ? e : {}), (r = (f = J(this, wr)).autoReconnect) !== null && r !== void 0 || (f.autoReconnect = !0), (n = (g = J(this, wr)).retryConnectionInterval) !== null && n !== void 0 || (g.retryConnectionInterval = 1e3), (a = (k = J(this, wr)).pingTimeout) !== null && a !== void 0 || (k.pingTimeout = 3e4), (i = (y = J(this, wr)).connectionTimeout) !== null && i !== void 0 || (y.connectionTimeout = 5e3), (s = (b = J(this, wr)).debug) !== null && s !== void 0 || (b.debug = !0), (u = (T = J(this, wr)).maxReconnectionAttempts) !== null && u !== void 0 || (T.maxReconnectionAttempts = 10), (l = (S = J(this, wr)).disconnectOnPingTimeout) !== null && l !== void 0 || (S.disconnectOnPingTimeout = !0), (d = (C = J(this, wr)).queueOnDisconnect) !== null && d !== void 0 || (C.queueOnDisconnect = !1), (p = (_ = J(this, wr)).flushOnReconnect) !== null && p !== void 0 || (_.flushOnReconnect = !1), ze(this, Si, { code: void 0, reason: void 0 }), ze(this, Fr, (v = J(this, wr).logger) !== null && v !== void 0 ? v : new KO(J(this, wr).debug ? "debug" : "info")), ze(this, Ia, new JO());
28299
+ var f, g, k, y, b, T, S, C, I;
28300
+ ze(this, vo, t), ze(this, gi, []), ze(this, tt, new Hc()), ze(this, La, !0), ze(this, Mn, !1), ze(this, wr, e != null ? e : {}), (r = (f = J(this, wr)).autoReconnect) !== null && r !== void 0 || (f.autoReconnect = !0), (n = (g = J(this, wr)).retryConnectionInterval) !== null && n !== void 0 || (g.retryConnectionInterval = 1e3), (a = (k = J(this, wr)).pingTimeout) !== null && a !== void 0 || (k.pingTimeout = 3e4), (i = (y = J(this, wr)).connectionTimeout) !== null && i !== void 0 || (y.connectionTimeout = 5e3), (s = (b = J(this, wr)).debug) !== null && s !== void 0 || (b.debug = !0), (u = (T = J(this, wr)).maxReconnectionAttempts) !== null && u !== void 0 || (T.maxReconnectionAttempts = 10), (l = (S = J(this, wr)).disconnectOnPingTimeout) !== null && l !== void 0 || (S.disconnectOnPingTimeout = !0), (d = (C = J(this, wr)).queueOnDisconnect) !== null && d !== void 0 || (C.queueOnDisconnect = !1), (p = (I = J(this, wr)).flushOnReconnect) !== null && p !== void 0 || (I.flushOnReconnect = !1), ze(this, Si, { code: void 0, reason: void 0 }), ze(this, Fr, (v = J(this, wr).logger) !== null && v !== void 0 ? v : new KO(J(this, wr).debug ? "debug" : "info")), ze(this, Ia, new JO());
28284
28301
  }
28285
28302
  return P(o, [{
28286
28303
  key: "readyState",
@@ -28677,26 +28694,26 @@ var XO = Object.defineProperty, ZO = Object.getOwnPropertyDescriptor, vl = funct
28677
28694
  }, f = s != null ? s : c(r, uo)[uo](), g = {}, k = c(r, Be)[Be].getValue("telemetry");
28678
28695
  k.injectContext(g);
28679
28696
  var y = function(S) {
28680
- var C = S.id, _ = S.payload;
28697
+ var C = S.id, I = S.payload;
28681
28698
  if (f === C) {
28682
- var I;
28699
+ var O;
28683
28700
  try {
28684
- var M = LS.fromBinary(_);
28685
- I = new Error(M.errorMessage);
28701
+ var M = LS.fromBinary(I);
28702
+ O = new Error(M.errorMessage);
28686
28703
  } catch (U) {
28687
- I = new Error("failed to parse error message", { cause: U });
28704
+ O = new Error("failed to parse error message", { cause: U });
28688
28705
  try {
28689
- var L = NE.fromBinary(_);
28690
- I = new Error(L.message);
28706
+ var L = NE.fromBinary(I);
28707
+ O = new Error(L.message);
28691
28708
  } catch (N) {
28692
- I = new Error("failed to parse error message", { cause: N });
28709
+ O = new Error("failed to parse error message", { cause: N });
28693
28710
  }
28694
28711
  }
28695
- p(I), v(b, y);
28712
+ p(O), v(b, y);
28696
28713
  }
28697
28714
  }, b = function(S) {
28698
- var C = S.id, _ = S.payload;
28699
- f === C && (d({ id: C, payload: _ }), v(b, y));
28715
+ var C = S.id, I = S.payload;
28716
+ f === C && (d({ id: C, payload: I }), v(b, y));
28700
28717
  };
28701
28718
  c(r, ke)[ke].on(l, b), c(r, ke)[ke].on(vv, y), c(r, ke)[ke].on(wi.errorResponse, y), c(r, ke)[ke].on(_n.errorResponse, y), setTimeout(function() {
28702
28719
  v(b, y), p(new Error("request timeout for callback eventId:".concat(n)));
@@ -29289,7 +29306,7 @@ var cD = Object.defineProperty, lD = Object.getOwnPropertyDescriptor, gl = funct
29289
29306
  }
29290
29307
  return P(o, null, [{ key: "init", value: function() {
29291
29308
  var t = m(/* @__PURE__ */ h().mark(function r(n) {
29292
- var a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, _, I, M, L, U, N, D, F, Y;
29309
+ var a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, I, O, M, L, U, N, D, F, Y;
29293
29310
  return h().wrap(function(H) {
29294
29311
  for (; ; )
29295
29312
  switch (H.prev = H.next) {
@@ -29307,21 +29324,21 @@ var cD = Object.defineProperty, lD = Object.getOwnPropertyDescriptor, gl = funct
29307
29324
  case 27:
29308
29325
  throw H.prev = 27, H.t0 = H.catch(16), v.error("Failed to get user details", { error: H.t0 }), new q("SDK initialization failed: /participant-details API request failed", "0001");
29309
29326
  case 31:
29310
- return C = go.createSocketService(n), _ = C.connect(), I = f.getPlugins(), H.prev = 34, H.next = 37, go.setupFlagsmith(n);
29327
+ return C = go.createSocketService(n), I = C.connect(), O = f.getPlugins(), H.prev = 34, H.next = 37, go.setupFlagsmith(n);
29311
29328
  case 37:
29312
29329
  H.next = 42;
29313
29330
  break;
29314
29331
  case 39:
29315
29332
  H.prev = 39, H.t1 = H.catch(34), v.error("Failed to setup flagsmith", { error: H.t1 });
29316
29333
  case 42:
29317
- return H.prev = 42, H.next = 45, _;
29334
+ return H.prev = 42, H.next = 45, I;
29318
29335
  case 45:
29319
29336
  H.next = 50;
29320
29337
  break;
29321
29338
  case 47:
29322
29339
  H.prev = 47, H.t2 = H.catch(42), v.error("[Controller]: Failed to connect to socket server:", { error: H.t2 });
29323
29340
  case 50:
29324
- return M = fM.init(b.preset, !n.getValue("modules").theme), n.setValue("theme", M), L = QM.init(n, M.viewType, b.preset.permissions), U = go.setupControllers(C, n, b, I, k, M, L), fI(M) && (D = go.createRoomNodeClient(n, C), (N = D.initializeConnection(b.participant.name, l, !1, L)) === null || N === void 0 || N.catch(function(Z) {
29341
+ return M = fM.init(b.preset, !n.getValue("modules").theme), n.setValue("theme", M), L = QM.init(n, M.viewType, b.preset.permissions), U = go.setupControllers(C, n, b, O, k, M, L), fI(M) && (D = go.createRoomNodeClient(n, C), (N = D.initializeConnection(b.participant.name, l, !1, L)) === null || N === void 0 || N.catch(function(Z) {
29325
29342
  v.error("[Controller]: Failed to queue partial media room promise:", { error: Z });
29326
29343
  })), H.next = 57, U;
29327
29344
  case 57:
@@ -29370,7 +29387,7 @@ var cD = Object.defineProperty, lD = Object.getOwnPropertyDescriptor, gl = funct
29370
29387
  return e;
29371
29388
  }() }, { key: "setupControllers", value: function() {
29372
29389
  var t = m(/* @__PURE__ */ h().mark(function r(n, a, i, s, u, l, d) {
29373
- var p, v, f, g, k, y, b, T, S, C, _, I, M, L, U, N, D, F, Y, B, H, Z, Te, ie, De, br, z, nn, Fe, Pt, ae, x, Ja;
29390
+ var p, v, f, g, k, y, b, T, S, C, I, O, M, L, U, N, D, F, Y, B, H, Z, Te, ie, De, br, z, nn, Fe, Pt, ae, x, Ja;
29374
29391
  return h().wrap(function(Le) {
29375
29392
  for (; ; )
29376
29393
  switch (Le.prev = Le.next) {
@@ -29385,7 +29402,7 @@ var cD = Object.defineProperty, lD = Object.getOwnPropertyDescriptor, gl = funct
29385
29402
  }
29386
29403
  return Le.next = 29, pn.init(a, Z, z.self, D.participants);
29387
29404
  case 29:
29388
- _ = Le.sent;
29405
+ I = Le.sent;
29389
29406
  case 30:
29390
29407
  if (!g.internals) {
29391
29408
  Le.next = 34;
@@ -29403,7 +29420,7 @@ var cD = Object.defineProperty, lD = Object.getOwnPropertyDescriptor, gl = funct
29403
29420
  case 38:
29404
29421
  C = Le.sent;
29405
29422
  case 39:
29406
- if (g.recording && (U = new sg(a, z.self, ie)), g.stage && (I = new ng(a, Te, ie, z.self, D.participants)), !g.plugin) {
29423
+ if (g.recording && (U = new sg(a, z.self, ie)), g.stage && (O = new ng(a, Te, ie, z.self, D.participants)), !g.plugin) {
29407
29424
  Le.next = 50;
29408
29425
  break;
29409
29426
  }
@@ -29415,7 +29432,7 @@ var cD = Object.defineProperty, lD = Object.getOwnPropertyDescriptor, gl = funct
29415
29432
  case 44:
29416
29433
  return Le.next = 46, s;
29417
29434
  case 46:
29418
- return Pt = Le.sent, Le.next = 49, Zu.init(a, Pt, De, Z, (Fe = _) === null || Fe === void 0 ? void 0 : Fe.chat, z.self, D.participants, u);
29435
+ return Pt = Le.sent, Le.next = 49, Zu.init(a, Pt, De, Z, (Fe = I) === null || Fe === void 0 ? void 0 : Fe.chat, z.self, D.participants, u);
29419
29436
  case 49:
29420
29437
  M = Le.sent;
29421
29438
  case 50:
@@ -29435,7 +29452,7 @@ var cD = Object.defineProperty, lD = Object.getOwnPropertyDescriptor, gl = funct
29435
29452
  case 57:
29436
29453
  ae = Le.sent, a.setValue("pip", ae);
29437
29454
  case 59:
29438
- return x = new SM(a, De), Ja = { storesManager: x, pollController: C, selfController: z, metaController: nn, chatController: _, stageController: I, pluginController: M, recordingController: U, internalsController: L, livestreamController: N, participantController: D, connectedMeetingsController: F }, Le.abrupt("return", { theme: l, permissions: d, controllers: Ja });
29455
+ return x = new SM(a, De), Ja = { storesManager: x, pollController: C, selfController: z, metaController: nn, chatController: I, stageController: O, pluginController: M, recordingController: U, internalsController: L, livestreamController: N, participantController: D, connectedMeetingsController: F }, Le.abrupt("return", { theme: l, permissions: d, controllers: Ja });
29439
29456
  case 62:
29440
29457
  case "end":
29441
29458
  return Le.stop();
@@ -29825,7 +29842,7 @@ var Pa = /* @__PURE__ */ E("trackMap"), fD = /* @__PURE__ */ function(o) {
29825
29842
  key: "init",
29826
29843
  value: function() {
29827
29844
  var t = m(/* @__PURE__ */ h().mark(function r(n) {
29828
- var a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, _, I;
29845
+ var a, i, s, u, l, d, p, v, f, g, k, y, b, T, S, C, I, O;
29829
29846
  return h().wrap(function(L) {
29830
29847
  for (; ; )
29831
29848
  switch (L.prev = L.next) {
@@ -29839,7 +29856,7 @@ var Pa = /* @__PURE__ */ E("trackMap"), fD = /* @__PURE__ */ function(o) {
29839
29856
  return window.__zone_symbol__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION = !0, T = Ri.setupContext(v, n, y, b), S = T.getValue("telemetry"), C = T.getValue("logger"), am(C), fv.init(C), S.init(T, { roomName: y, userId: b.participantId, organizationId: b.orgId, peerId: v }, (u = (l = n.modules) === null || l === void 0 ? void 0 : l.tracing) !== null && u !== void 0 ? u : !0), C.init(T), C.info("Client::init::options", { clientInitOptions: V(V({}, n), {}, { authToken: "".concat((d = n.authToken) === null || d === void 0 ? void 0 : d.slice(0, 10), `...
29840
29857
  `).concat((p = n.authToken) === null || p === void 0 ? void 0 : p.slice(-10)) }) }), L.next = 17, ac.init(T);
29841
29858
  case 17:
29842
- return _ = L.sent, I = new Ri(T, _), T.setValue("meeting", I), L.abrupt("return", I);
29859
+ return I = L.sent, O = new Ri(T, I), T.setValue("meeting", O), L.abrupt("return", O);
29843
29860
  case 21:
29844
29861
  case "end":
29845
29862
  return L.stop();