@cloudflare/realtimekit-react 0.5.0-staging.94 → 0.5.0-staging.95

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.es.js CHANGED
@@ -4537,10 +4537,10 @@ var Et = {}, cT = {
4537
4537
  set exports(s) {
4538
4538
  Et = s;
4539
4539
  }
4540
- }, In = typeof Reflect == "object" ? Reflect : null, Oh = In && typeof In.apply == "function" ? In.apply : function(e, t, r) {
4540
+ }, Dn = typeof Reflect == "object" ? Reflect : null, Oh = Dn && typeof Dn.apply == "function" ? Dn.apply : function(e, t, r) {
4541
4541
  return Function.prototype.apply.call(e, t, r);
4542
4542
  }, ad;
4543
- In && typeof In.ownKeys == "function" ? ad = In.ownKeys : Object.getOwnPropertySymbols ? ad = function(e) {
4543
+ Dn && typeof Dn.ownKeys == "function" ? ad = Dn.ownKeys : Object.getOwnPropertySymbols ? ad = function(e) {
4544
4544
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
4545
4545
  } : ad = function(e) {
4546
4546
  return Object.getOwnPropertyNames(e);
@@ -4889,7 +4889,7 @@ var xh;
4889
4889
  (function(s) {
4890
4890
  s[s.INIT = 0] = "INIT", s[s.ACCEPTED = 1] = "ACCEPTED", s[s.DENIED = 2] = "DENIED", s[s.SYS_DENIED = 3] = "SYS_DENIED", s[s.FAILED = 4] = "FAILED", s[s.NOTFOUND = 5] = "NOTFOUND", s[s.NOT_APPLICABLE = 6] = "NOT_APPLICABLE";
4891
4891
  })(xh || (xh = {}));
4892
- function ui(s) {
4892
+ function pi(s) {
4893
4893
  return s ? s.split(".").slice(0, 2).concat(["0", "0"]).join(".") : "";
4894
4894
  }
4895
4895
  function Pd({ packetsLost: s, packetsSent: e }) {
@@ -5272,7 +5272,7 @@ class IT {
5272
5272
  try {
5273
5273
  const d = `https://${t.location}`, g = yield (yield fetch(d)).json();
5274
5274
  if (((n = g.loc) == null ? void 0 : n.length) > 5)
5275
- return this.ipInformation = g, (a = this.ipInformation) != null && a.ip && (this.ipInformation.ip = ui(this.ipInformation.ip)), g;
5275
+ return this.ipInformation = g, (a = this.ipInformation) != null && a.ip && (this.ipInformation.ip = pi(this.ipInformation.ip)), g;
5276
5276
  throw Error("Insufficient data");
5277
5277
  } catch (d) {
5278
5278
  r.error("callstats::ipDetails:: failed to fetch ip using location service", { error: d });
@@ -5281,7 +5281,7 @@ class IT {
5281
5281
  const d = yield fetch(`https://${t.locationLegacy}/?token=3c493932b0624c&peerId=${e}`, {
5282
5282
  method: "POST"
5283
5283
  });
5284
- this.ipInformation = yield d.json(), (c = this.ipInformation) != null && c.ip && (this.ipInformation.ip = ui(this.ipInformation.ip));
5284
+ this.ipInformation = yield d.json(), (c = this.ipInformation) != null && c.ip && (this.ipInformation.ip = pi(this.ipInformation.ip));
5285
5285
  } catch (d) {
5286
5286
  r.error("callstats::ipDetails:: failed to fetch ip using legacy location service", { error: d });
5287
5287
  }
@@ -5805,7 +5805,7 @@ class fg extends Et {
5805
5805
  }
5806
5806
  }), y.forEach((D) => {
5807
5807
  const E = g.find(($) => $.id === D.localCandidateId ? (D.localCandidateId = $.id, $) : null), C = m.find(($) => $.id === D.remoteCandidateId ? (D.remoteCandidateId = $.id, $) : null);
5808
- E && (D.localCandidateType = E.type, D.localCandidateAddress = ui(E.address), D.localCandidatePort = E.port, D.localCandidateProtocol = E.protocol, D.localCandidateUrl = E.url, D.localCandidateNetworkType = E.networkType, D.localCandidateRelatedAddress = ui(E.relatedAddress), D.localCandidateRelatedPort = E.relatedPort), C && (D.remoteCandidateType = C.type, D.remoteCandidateAddress = ui(C.address), D.remoteCandidatePort = C.port, D.remoteCandidateProtocol = C.protocol, D.remoteCandidateUrl = C.url);
5808
+ E && (D.localCandidateType = E.type, D.localCandidateAddress = pi(E.address), D.localCandidatePort = E.port, D.localCandidateProtocol = E.protocol, D.localCandidateUrl = E.url, D.localCandidateNetworkType = E.networkType, D.localCandidateRelatedAddress = pi(E.relatedAddress), D.localCandidateRelatedPort = E.relatedPort), C && (D.remoteCandidateType = C.type, D.remoteCandidateAddress = pi(C.address), D.remoteCandidatePort = C.port, D.remoteCandidateProtocol = C.protocol, D.remoteCandidateUrl = C.url);
5809
5809
  }), d.candidatePair && (d.transport ? (d.transport.totalRoundTripTime = d.candidatePair.totalRoundTripTime, d.transport.availableOutgoingBitrate = d.candidatePair.availableOutgoingBitrate, d.transport.availableIncomingBitrate = d.candidatePair.availableIncomingBitrate, d.transport.roundTripTime = d.candidatePair.currentRoundTripTime) : d.transport = {
5810
5810
  bytesReceived: d.candidatePair.bytesReceived,
5811
5811
  bytesSent: d.candidatePair.bytesSent,
@@ -6438,7 +6438,7 @@ class gg extends fg {
6438
6438
  }
6439
6439
  }), y.forEach((D) => {
6440
6440
  const E = g.find(($) => $.id === D.localCandidateId ? (D.localCandidateId = $.id, $) : null), C = m.find(($) => $.id === D.remoteCandidateId ? (D.remoteCandidateId = $.id, $) : null);
6441
- E && (D.localCandidateType = E.type, D.localCandidateAddress = ui(E.address), D.localCandidatePort = E.port, D.localCandidateProtocol = E.protocol, D.localCandidateUrl = E.url, D.localCandidateNetworkType = E.networkType, D.localCandidateRelatedAddress = ui(E.relatedAddress), D.localCandidateRelatedPort = E.relatedPort), C && (D.remoteCandidateType = C.type, D.remoteCandidateAddress = ui(C.address), D.remoteCandidatePort = C.port, D.remoteCandidateProtocol = C.protocol, D.remoteCandidateUrl = C.url);
6441
+ E && (D.localCandidateType = E.type, D.localCandidateAddress = pi(E.address), D.localCandidatePort = E.port, D.localCandidateProtocol = E.protocol, D.localCandidateUrl = E.url, D.localCandidateNetworkType = E.networkType, D.localCandidateRelatedAddress = pi(E.relatedAddress), D.localCandidateRelatedPort = E.relatedPort), C && (D.remoteCandidateType = C.type, D.remoteCandidateAddress = pi(C.address), D.remoteCandidatePort = C.port, D.remoteCandidateProtocol = C.protocol, D.remoteCandidateUrl = C.url);
6442
6442
  }), d.candidatePair && (d.transport ? (d.transport.bytesReceived = d.candidatePair.bytesReceived, d.transport.bytesSent = d.candidatePair.bytesSent, d.transport.totalRoundTripTime = d.candidatePair.totalRoundTripTime, d.transport.availableOutgoingBitrate = d.candidatePair.availableOutgoingBitrate, d.transport.availableIncomingBitrate = d.candidatePair.availableIncomingBitrate, d.transport.roundTripTime = d.candidatePair.currentRoundTripTime) : d.transport = {
6443
6443
  bytesReceived: d.candidatePair.bytesReceived,
6444
6444
  bytesSent: d.candidatePair.bytesSent,
@@ -7555,20 +7555,20 @@ function $T(s) {
7555
7555
  }
7556
7556
  }
7557
7557
  }
7558
- var Er = [], Dn = false, Ai, od = -1;
7558
+ var Er = [], Mn = false, Ii, od = -1;
7559
7559
  function FT() {
7560
- !Dn || !Ai || (Dn = false, Ai.length ? Er = Ai.concat(Er) : od = -1, Er.length && Tg());
7560
+ !Mn || !Ii || (Mn = false, Ii.length ? Er = Ii.concat(Er) : od = -1, Er.length && Tg());
7561
7561
  }
7562
7562
  function Tg() {
7563
- if (!Dn) {
7563
+ if (!Mn) {
7564
7564
  var s = yg(FT);
7565
- Dn = true;
7565
+ Mn = true;
7566
7566
  for (var e = Er.length; e; ) {
7567
- for (Ai = Er, Er = []; ++od < e; )
7568
- Ai && Ai[od].run();
7567
+ for (Ii = Er, Er = []; ++od < e; )
7568
+ Ii && Ii[od].run();
7569
7569
  od = -1, e = Er.length;
7570
7570
  }
7571
- Ai = null, Dn = false, $T(s);
7571
+ Ii = null, Mn = false, $T(s);
7572
7572
  }
7573
7573
  }
7574
7574
  Ye.nextTick = function(s) {
@@ -7576,7 +7576,7 @@ Ye.nextTick = function(s) {
7576
7576
  if (arguments.length > 1)
7577
7577
  for (var t = 1; t < arguments.length; t++)
7578
7578
  e[t - 1] = arguments[t];
7579
- Er.push(new Sg(s, e)), Er.length === 1 && !Dn && yg(Tg);
7579
+ Er.push(new Sg(s, e)), Er.length === 1 && !Mn && yg(Tg);
7580
7580
  };
7581
7581
  function Sg(s, e) {
7582
7582
  this.fun = s, this.array = e;
@@ -7638,7 +7638,7 @@ var Yu = {}, HT = {
7638
7638
  i[n] = arguments[n];
7639
7639
  return e.apply(t, i);
7640
7640
  };
7641
- }, jT = Eg, gi = Object.prototype.toString;
7641
+ }, jT = Eg, vi = Object.prototype.toString;
7642
7642
  function jp(s) {
7643
7643
  return Array.isArray(s);
7644
7644
  }
@@ -7649,10 +7649,10 @@ function GT(s) {
7649
7649
  return s !== null && !Qu(s) && s.constructor !== null && !Qu(s.constructor) && typeof s.constructor.isBuffer == "function" && s.constructor.isBuffer(s);
7650
7650
  }
7651
7651
  function _g(s) {
7652
- return gi.call(s) === "[object ArrayBuffer]";
7652
+ return vi.call(s) === "[object ArrayBuffer]";
7653
7653
  }
7654
7654
  function WT(s) {
7655
- return gi.call(s) === "[object FormData]";
7655
+ return vi.call(s) === "[object FormData]";
7656
7656
  }
7657
7657
  function JT(s) {
7658
7658
  var e;
@@ -7668,28 +7668,28 @@ function Pg(s) {
7668
7668
  return s !== null && typeof s == "object";
7669
7669
  }
7670
7670
  function cd(s) {
7671
- if (gi.call(s) !== "[object Object]")
7671
+ if (vi.call(s) !== "[object Object]")
7672
7672
  return false;
7673
7673
  var e = Object.getPrototypeOf(s);
7674
7674
  return e === null || e === Object.prototype;
7675
7675
  }
7676
7676
  function YT(s) {
7677
- return gi.call(s) === "[object Date]";
7677
+ return vi.call(s) === "[object Date]";
7678
7678
  }
7679
7679
  function QT(s) {
7680
- return gi.call(s) === "[object File]";
7680
+ return vi.call(s) === "[object File]";
7681
7681
  }
7682
7682
  function XT(s) {
7683
- return gi.call(s) === "[object Blob]";
7683
+ return vi.call(s) === "[object Blob]";
7684
7684
  }
7685
7685
  function Cg(s) {
7686
- return gi.call(s) === "[object Function]";
7686
+ return vi.call(s) === "[object Function]";
7687
7687
  }
7688
7688
  function ZT(s) {
7689
7689
  return Pg(s) && Cg(s.pipe);
7690
7690
  }
7691
7691
  function eS(s) {
7692
- return gi.call(s) === "[object URLSearchParams]";
7692
+ return vi.call(s) === "[object URLSearchParams]";
7693
7693
  }
7694
7694
  function tS(s) {
7695
7695
  return s.trim ? s.trim() : s.replace(/^\s+|\s+$/g, "");
@@ -7746,7 +7746,7 @@ var Ut = {
7746
7746
  extend: rS,
7747
7747
  trim: tS,
7748
7748
  stripBOM: iS
7749
- }, yn = Ut;
7749
+ }, Tn = Ut;
7750
7750
  function Fh(s) {
7751
7751
  return encodeURIComponent(s).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
7752
7752
  }
@@ -7756,13 +7756,13 @@ var Rg = function(e, t, r) {
7756
7756
  var i;
7757
7757
  if (r)
7758
7758
  i = r(t);
7759
- else if (yn.isURLSearchParams(t))
7759
+ else if (Tn.isURLSearchParams(t))
7760
7760
  i = t.toString();
7761
7761
  else {
7762
7762
  var n = [];
7763
- yn.forEach(t, function(d, l) {
7764
- d === null || typeof d == "undefined" || (yn.isArray(d) ? l = l + "[]" : d = [d], yn.forEach(d, function(m) {
7765
- yn.isDate(m) ? m = m.toISOString() : yn.isObject(m) && (m = JSON.stringify(m)), n.push(Fh(l) + "=" + Fh(m));
7763
+ Tn.forEach(t, function(d, l) {
7764
+ d === null || typeof d == "undefined" || (Tn.isArray(d) ? l = l + "[]" : d = [d], Tn.forEach(d, function(m) {
7765
+ Tn.isDate(m) ? m = m.toISOString() : Tn.isObject(m) && (m = JSON.stringify(m)), n.push(Fh(l) + "=" + Fh(m));
7766
7766
  }));
7767
7767
  }), i = n.join("&");
7768
7768
  }
@@ -8257,7 +8257,7 @@ function CS(s, e, t) {
8257
8257
  var RS = {
8258
8258
  assertOptions: CS,
8259
8259
  validators: Wp
8260
- }, Dg = Ut, wS = Rg, rm = aS, im = _S, jl = Ag, Mg = RS, Tn = Mg.validators;
8260
+ }, Dg = Ut, wS = Rg, rm = aS, im = _S, jl = Ag, Mg = RS, Sn = Mg.validators;
8261
8261
  function xc(s) {
8262
8262
  this.defaults = s, this.interceptors = {
8263
8263
  request: new rm(),
@@ -8270,9 +8270,9 @@ xc.prototype.request = function(e, t) {
8270
8270
  t = jl(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
8271
8271
  var r = t.transitional;
8272
8272
  r !== void 0 && Mg.assertOptions(r, {
8273
- silentJSONParsing: Tn.transitional(Tn.boolean),
8274
- forcedJSONParsing: Tn.transitional(Tn.boolean),
8275
- clarifyTimeoutError: Tn.transitional(Tn.boolean)
8273
+ silentJSONParsing: Sn.transitional(Sn.boolean),
8274
+ forcedJSONParsing: Sn.transitional(Sn.boolean),
8275
+ clarifyTimeoutError: Sn.transitional(Sn.boolean)
8276
8276
  }, false);
8277
8277
  var i = [], n = true;
8278
8278
  this.interceptors.request.forEach(function(_) {
@@ -8490,8 +8490,8 @@ const Ng = WS;
8490
8490
  var JS = typeof self == "object" && self && self.Object === Object && self, KS = Ng || JS || Function("return this")();
8491
8491
  const Os = KS;
8492
8492
  var zS = Os.Symbol;
8493
- const hi = zS;
8494
- var Lg = Object.prototype, YS = Lg.hasOwnProperty, QS = Lg.toString, vo = hi ? hi.toStringTag : void 0;
8493
+ const mi = zS;
8494
+ var Lg = Object.prototype, YS = Lg.hasOwnProperty, QS = Lg.toString, vo = mi ? mi.toStringTag : void 0;
8495
8495
  function XS(s) {
8496
8496
  var e = YS.call(s, vo), t = s[vo];
8497
8497
  try {
@@ -8506,8 +8506,8 @@ var ZS = Object.prototype, eE = ZS.toString;
8506
8506
  function tE(s) {
8507
8507
  return eE.call(s);
8508
8508
  }
8509
- var sE = "[object Null]", rE = "[object Undefined]", dm = hi ? hi.toStringTag : void 0;
8510
- function pn(s) {
8509
+ var sE = "[object Null]", rE = "[object Undefined]", dm = mi ? mi.toStringTag : void 0;
8510
+ function hn(s) {
8511
8511
  return s == null ? s === void 0 ? rE : sE : dm && dm in Object(s) ? XS(s) : tE(s);
8512
8512
  }
8513
8513
  function Ms(s) {
@@ -8518,7 +8518,7 @@ var iE = "[object AsyncFunction]", nE = "[object Function]", aE = "[object Gener
8518
8518
  function Jp(s) {
8519
8519
  if (!Ms(s))
8520
8520
  return false;
8521
- var e = pn(s);
8521
+ var e = hn(s);
8522
8522
  return e == nE || e == aE || e == iE || e == oE;
8523
8523
  }
8524
8524
  var cE = Os["__core-js_shared__"];
@@ -8531,7 +8531,7 @@ function dE(s) {
8531
8531
  return !!lm && lm in s;
8532
8532
  }
8533
8533
  var lE = Function.prototype, uE = lE.toString;
8534
- function hn(s) {
8534
+ function mn(s) {
8535
8535
  if (s != null) {
8536
8536
  try {
8537
8537
  return uE.call(s);
@@ -8551,18 +8551,18 @@ function TE(s) {
8551
8551
  if (!Ms(s) || dE(s))
8552
8552
  return false;
8553
8553
  var e = Jp(s) ? yE : hE;
8554
- return e.test(hn(s));
8554
+ return e.test(mn(s));
8555
8555
  }
8556
8556
  function SE(s, e) {
8557
8557
  return s == null ? void 0 : s[e];
8558
8558
  }
8559
- function mn(s, e) {
8559
+ function fn(s, e) {
8560
8560
  var t = SE(s, e);
8561
8561
  return TE(t) ? t : void 0;
8562
8562
  }
8563
- var EE = mn(Os, "Map");
8563
+ var EE = fn(Os, "Map");
8564
8564
  const $o = EE;
8565
- var _E = mn(Object, "create");
8565
+ var _E = fn(Object, "create");
8566
8566
  const Fo = _E;
8567
8567
  function PE() {
8568
8568
  this.__data__ = Fo ? Fo(null) : {}, this.size = 0;
@@ -8590,23 +8590,23 @@ function OE(s, e) {
8590
8590
  var t = this.__data__;
8591
8591
  return this.size += this.has(s) ? 0 : 1, t[s] = Fo && e === void 0 ? ME : e, this;
8592
8592
  }
8593
- function ln(s) {
8593
+ function un(s) {
8594
8594
  var e = -1, t = s == null ? 0 : s.length;
8595
8595
  for (this.clear(); ++e < t; ) {
8596
8596
  var r = s[e];
8597
8597
  this.set(r[0], r[1]);
8598
8598
  }
8599
8599
  }
8600
- ln.prototype.clear = PE;
8601
- ln.prototype.delete = CE;
8602
- ln.prototype.get = kE;
8603
- ln.prototype.has = DE;
8604
- ln.prototype.set = OE;
8600
+ un.prototype.clear = PE;
8601
+ un.prototype.delete = CE;
8602
+ un.prototype.get = kE;
8603
+ un.prototype.has = DE;
8604
+ un.prototype.set = OE;
8605
8605
  function NE() {
8606
8606
  this.size = 0, this.__data__ = {
8607
- hash: new ln(),
8607
+ hash: new un(),
8608
8608
  map: new ($o || wr)(),
8609
- string: new ln()
8609
+ string: new un()
8610
8610
  };
8611
8611
  }
8612
8612
  function LE(s) {
@@ -8631,18 +8631,18 @@ function $E(s, e) {
8631
8631
  var t = Wl(this, s), r = t.size;
8632
8632
  return t.set(s, e), this.size += t.size == r ? 0 : 1, this;
8633
8633
  }
8634
- function fn(s) {
8634
+ function gn(s) {
8635
8635
  var e = -1, t = s == null ? 0 : s.length;
8636
8636
  for (this.clear(); ++e < t; ) {
8637
8637
  var r = s[e];
8638
8638
  this.set(r[0], r[1]);
8639
8639
  }
8640
8640
  }
8641
- fn.prototype.clear = NE;
8642
- fn.prototype.delete = xE;
8643
- fn.prototype.get = VE;
8644
- fn.prototype.has = UE;
8645
- fn.prototype.set = $E;
8641
+ gn.prototype.clear = NE;
8642
+ gn.prototype.delete = xE;
8643
+ gn.prototype.get = VE;
8644
+ gn.prototype.has = UE;
8645
+ gn.prototype.set = $E;
8646
8646
  var FE = 200;
8647
8647
  function BE(s, e) {
8648
8648
  var t = this.__data__;
@@ -8650,7 +8650,7 @@ function BE(s, e) {
8650
8650
  var r = t.__data__;
8651
8651
  if (!$o || r.length < FE - 1)
8652
8652
  return r.push([s, e]), this.size = ++t.size, this;
8653
- t = this.__data__ = new fn(r);
8653
+ t = this.__data__ = new gn(r);
8654
8654
  }
8655
8655
  return t.set(s, e), this.size = t.size, this;
8656
8656
  }
@@ -8670,7 +8670,7 @@ function HE(s, e) {
8670
8670
  }
8671
8671
  var qE = function() {
8672
8672
  try {
8673
- var s = mn(Object, "defineProperty");
8673
+ var s = fn(Object, "defineProperty");
8674
8674
  return s({}, "", {}), s;
8675
8675
  } catch (e) {
8676
8676
  }
@@ -8708,7 +8708,7 @@ function zs(s) {
8708
8708
  }
8709
8709
  var JE = "[object Arguments]";
8710
8710
  function um(s) {
8711
- return zs(s) && pn(s) == JE;
8711
+ return zs(s) && hn(s) == JE;
8712
8712
  }
8713
8713
  var Vg = Object.prototype, KE = Vg.hasOwnProperty, zE = Vg.propertyIsEnumerable, YE = um(function() {
8714
8714
  return arguments;
@@ -8717,7 +8717,7 @@ var Vg = Object.prototype, KE = Vg.hasOwnProperty, zE = Vg.propertyIsEnumerable,
8717
8717
  };
8718
8718
  const kd = YE;
8719
8719
  var QE = Array.isArray;
8720
- const mi = QE;
8720
+ const fi = QE;
8721
8721
  function XE() {
8722
8722
  return false;
8723
8723
  }
@@ -8736,7 +8736,7 @@ var n_ = "[object Arguments]", a_ = "[object Array]", o_ = "[object Boolean]", c
8736
8736
  Pe[S_] = Pe[E_] = Pe[__] = Pe[P_] = Pe[C_] = Pe[R_] = Pe[w_] = Pe[b_] = Pe[k_] = true;
8737
8737
  Pe[n_] = Pe[a_] = Pe[y_] = Pe[o_] = Pe[T_] = Pe[c_] = Pe[d_] = Pe[l_] = Pe[u_] = Pe[p_] = Pe[h_] = Pe[m_] = Pe[f_] = Pe[g_] = Pe[v_] = false;
8738
8738
  function A_(s) {
8739
- return zs(s) && Fg(s.length) && !!Pe[pn(s)];
8739
+ return zs(s) && Fg(s.length) && !!Pe[hn(s)];
8740
8740
  }
8741
8741
  function zp(s) {
8742
8742
  return function(e) {
@@ -8755,7 +8755,7 @@ var mm = Ba && Ba.isTypedArray, M_ = mm ? zp(mm) : A_;
8755
8755
  const Jl = M_;
8756
8756
  var O_ = Object.prototype, N_ = O_.hasOwnProperty;
8757
8757
  function Hg(s, e) {
8758
- var t = mi(s), r = !t && kd(s), i = !t && !r && Fa(s), n = !t && !r && !i && Jl(s), a = t || r || i || n, c = a ? WE(s.length, String) : [], d = c.length;
8758
+ var t = fi(s), r = !t && kd(s), i = !t && !r && Fa(s), n = !t && !r && !i && Jl(s), a = t || r || i || n, c = a ? WE(s.length, String) : [], d = c.length;
8759
8759
  for (var l in s)
8760
8760
  (e || N_.call(s, l)) && !(a && (l == "length" || i && (l == "offset" || l == "parent") || n && (l == "buffer" || l == "byteLength" || l == "byteOffset") || $g(l, d))) && c.push(l);
8761
8761
  return c;
@@ -8862,7 +8862,7 @@ function tP(s, e) {
8862
8862
  }
8863
8863
  function Qg(s, e, t) {
8864
8864
  var r = e(s);
8865
- return mi(s) ? r : zg(r, t(s));
8865
+ return fi(s) ? r : zg(r, t(s));
8866
8866
  }
8867
8867
  function Zu(s) {
8868
8868
  return Qg(s, Yp, Qp);
@@ -8870,17 +8870,17 @@ function Zu(s) {
8870
8870
  function sP(s) {
8871
8871
  return Qg(s, Fc, Yg);
8872
8872
  }
8873
- var rP = mn(Os, "DataView");
8873
+ var rP = fn(Os, "DataView");
8874
8874
  const ep = rP;
8875
- var iP = mn(Os, "Promise");
8875
+ var iP = fn(Os, "Promise");
8876
8876
  const tp = iP;
8877
- var nP = mn(Os, "Set");
8877
+ var nP = fn(Os, "Set");
8878
8878
  const sp = nP;
8879
- var aP = mn(Os, "WeakMap");
8879
+ var aP = fn(Os, "WeakMap");
8880
8880
  const rp = aP;
8881
- var Tm = "[object Map]", oP = "[object Object]", Sm = "[object Promise]", Em = "[object Set]", _m = "[object WeakMap]", Pm = "[object DataView]", cP = hn(ep), dP = hn($o), lP = hn(tp), uP = hn(sp), pP = hn(rp), Ei = pn;
8882
- (ep && Ei(new ep(new ArrayBuffer(1))) != Pm || $o && Ei(new $o()) != Tm || tp && Ei(tp.resolve()) != Sm || sp && Ei(new sp()) != Em || rp && Ei(new rp()) != _m) && (Ei = function(s) {
8883
- var e = pn(s), t = e == oP ? s.constructor : void 0, r = t ? hn(t) : "";
8881
+ var Tm = "[object Map]", oP = "[object Object]", Sm = "[object Promise]", Em = "[object Set]", _m = "[object WeakMap]", Pm = "[object DataView]", cP = mn(ep), dP = mn($o), lP = mn(tp), uP = mn(sp), pP = mn(rp), _i = hn;
8882
+ (ep && _i(new ep(new ArrayBuffer(1))) != Pm || $o && _i(new $o()) != Tm || tp && _i(tp.resolve()) != Sm || sp && _i(new sp()) != Em || rp && _i(new rp()) != _m) && (_i = function(s) {
8883
+ var e = hn(s), t = e == oP ? s.constructor : void 0, r = t ? mn(t) : "";
8884
8884
  if (r)
8885
8885
  switch (r) {
8886
8886
  case cP:
@@ -8896,7 +8896,7 @@ var Tm = "[object Map]", oP = "[object Object]", Sm = "[object Promise]", Em = "
8896
8896
  }
8897
8897
  return e;
8898
8898
  });
8899
- const Ha = Ei;
8899
+ const Ha = _i;
8900
8900
  var hP = Object.prototype, mP = hP.hasOwnProperty;
8901
8901
  function fP(s) {
8902
8902
  var e = s.length, t = new s.constructor(e);
@@ -8917,7 +8917,7 @@ function TP(s) {
8917
8917
  var e = new s.constructor(s.source, yP.exec(s));
8918
8918
  return e.lastIndex = s.lastIndex, e;
8919
8919
  }
8920
- var Cm = hi ? hi.prototype : void 0, Rm = Cm ? Cm.valueOf : void 0;
8920
+ var Cm = mi ? mi.prototype : void 0, Rm = Cm ? Cm.valueOf : void 0;
8921
8921
  function SP(s) {
8922
8922
  return Rm ? Object(Rm.call(s)) : {};
8923
8923
  }
@@ -8997,7 +8997,7 @@ function ld(s, e, t, r, i, n) {
8997
8997
  return a;
8998
8998
  if (!Ms(s))
8999
8999
  return s;
9000
- var g = mi(s);
9000
+ var g = fi(s);
9001
9001
  if (g) {
9002
9002
  if (a = fP(s), !c)
9003
9003
  return Jg(s, a);
@@ -9034,7 +9034,7 @@ function eh(s) {
9034
9034
  }
9035
9035
  var RC = "[object Symbol]";
9036
9036
  function wC(s) {
9037
- return typeof s == "symbol" || zs(s) && pn(s) == RC;
9037
+ return typeof s == "symbol" || zs(s) && hn(s) == RC;
9038
9038
  }
9039
9039
  var bC = Object.defineProperty, kC = (s, e) => {
9040
9040
  for (var t in e)
@@ -9713,7 +9713,7 @@ function pR(s) {
9713
9713
  }
9714
9714
  var hR = "[object Object]", mR = Function.prototype, fR = Object.prototype, cv = mR.toString, gR = fR.hasOwnProperty, vR = cv.call(Object);
9715
9715
  function yR(s) {
9716
- if (!zs(s) || pn(s) != hR)
9716
+ if (!zs(s) || hn(s) != hR)
9717
9717
  return false;
9718
9718
  var e = Xp(s);
9719
9719
  if (e === null)
@@ -9730,7 +9730,7 @@ function ER(s) {
9730
9730
  }
9731
9731
  function Id(s) {
9732
9732
  var e = -1, t = s == null ? 0 : s.length;
9733
- for (this.__data__ = new fn(); ++e < t; )
9733
+ for (this.__data__ = new gn(); ++e < t; )
9734
9734
  this.add(s[e]);
9735
9735
  }
9736
9736
  Id.prototype.add = Id.prototype.push = SR;
@@ -9790,7 +9790,7 @@ function bR(s) {
9790
9790
  t[++e] = r;
9791
9791
  }), t;
9792
9792
  }
9793
- var kR = 1, AR = 2, IR = "[object Boolean]", DR = "[object Date]", MR = "[object Error]", OR = "[object Map]", NR = "[object Number]", LR = "[object RegExp]", xR = "[object Set]", VR = "[object String]", UR = "[object Symbol]", $R = "[object ArrayBuffer]", FR = "[object DataView]", Om = hi ? hi.prototype : void 0, Lu = Om ? Om.valueOf : void 0;
9793
+ var kR = 1, AR = 2, IR = "[object Boolean]", DR = "[object Date]", MR = "[object Error]", OR = "[object Map]", NR = "[object Number]", LR = "[object RegExp]", xR = "[object Set]", VR = "[object String]", UR = "[object Symbol]", $R = "[object ArrayBuffer]", FR = "[object DataView]", Om = mi ? mi.prototype : void 0, Lu = Om ? Om.valueOf : void 0;
9794
9794
  function BR(s, e, t, r, i, n, a) {
9795
9795
  switch (t) {
9796
9796
  case FR:
@@ -9860,7 +9860,7 @@ function GR(s, e, t, r, i, n) {
9860
9860
  }
9861
9861
  var WR = 1, Nm = "[object Arguments]", Lm = "[object Array]", Yc = "[object Object]", JR = Object.prototype, xm = JR.hasOwnProperty;
9862
9862
  function KR(s, e, t, r, i, n) {
9863
- var a = mi(s), c = mi(e), d = a ? Lm : Ha(s), l = c ? Lm : Ha(e);
9863
+ var a = fi(s), c = fi(e), d = a ? Lm : Ha(s), l = c ? Lm : Ha(e);
9864
9864
  d = d == Nm ? Yc : d, l = l == Nm ? Yc : l;
9865
9865
  var g = d == Yc, m = l == Yc, y = d == l;
9866
9866
  if (y && Fa(s)) {
@@ -9967,8 +9967,8 @@ function iw(s, e, t, r, i, n, a) {
9967
9967
  }
9968
9968
  var g = n ? n(c, d, t + "", s, e, a) : void 0, m = g === void 0;
9969
9969
  if (m) {
9970
- var y = mi(d), _ = !y && Fa(d), P = !y && !_ && Jl(d);
9971
- g = d, y || _ || P ? mi(c) ? g = c : sw(c) ? g = Jg(c) : _ ? (m = false, g = Wg(d, true)) : P ? (m = false, g = Xg(d, true)) : g = [] : yR(d) || kd(d) ? (g = c, kd(c) ? g = rw(c) : (!Ms(c) || Jp(c)) && (g = Zg(d))) : m = false;
9970
+ var y = fi(d), _ = !y && Fa(d), P = !y && !_ && Jl(d);
9971
+ g = d, y || _ || P ? fi(c) ? g = c : sw(c) ? g = Jg(c) : _ ? (m = false, g = Wg(d, true)) : P ? (m = false, g = Xg(d, true)) : g = [] : yR(d) || kd(d) ? (g = c, kd(c) ? g = rw(c) : (!Ms(c) || Jp(c)) && (g = Zg(d))) : m = false;
9972
9972
  }
9973
9973
  m && (a.set(d, g), i(g, d, r, n, a), a.delete(d)), ip(s, t, g);
9974
9974
  }
@@ -9986,7 +9986,7 @@ var nw = "[object Map]", aw = "[object Set]", ow = Object.prototype, cw = ow.has
9986
9986
  function dw(s) {
9987
9987
  if (s == null)
9988
9988
  return true;
9989
- if ($c(s) && (mi(s) || typeof s == "string" || typeof s.splice == "function" || Fa(s) || Jl(s) || kd(s)))
9989
+ if ($c(s) && (fi(s) || typeof s == "string" || typeof s.splice == "function" || Fa(s) || Jl(s) || kd(s)))
9990
9990
  return !s.length;
9991
9991
  var e = Ha(s);
9992
9992
  if (e == nw || e == aw)
@@ -10413,21 +10413,21 @@ function Od(s, e) {
10413
10413
  function _w({ baseURI: s }) {
10414
10414
  return s != null && s.includes("preprod.dyte") ? Do.PREPROD : s != null && s.includes("devel.dyte") ? Do.DEVEL : Do.PROD;
10415
10415
  }
10416
- function Mn({ servicePrefix: s, baseURI: e }) {
10416
+ function On({ servicePrefix: s, baseURI: e }) {
10417
10417
  return `${s}.${e}`;
10418
10418
  }
10419
10419
  function Ev(s) {
10420
10420
  const e = s.getValue("baseURI");
10421
10421
  return {
10422
- location: Mn({
10422
+ location: On({
10423
10423
  servicePrefix: "location",
10424
10424
  baseURI: e
10425
10425
  }),
10426
- locationLegacy: Mn({
10426
+ locationLegacy: On({
10427
10427
  servicePrefix: "location-legacy",
10428
10428
  baseURI: e
10429
10429
  }),
10430
- daCollector: Mn({
10430
+ daCollector: On({
10431
10431
  servicePrefix: "da-collector",
10432
10432
  baseURI: e
10433
10433
  })
@@ -10496,10 +10496,10 @@ class ww {
10496
10496
  return this.mostRecentPeerId;
10497
10497
  }
10498
10498
  }
10499
- const on = new ww(), ae = class {
10499
+ const cn = new ww(), ae = class {
10500
10500
  static get logsEndpoint() {
10501
- const e = on.getContext(ae.meetingMetadata.peerId);
10502
- return `https://${Mn({
10501
+ const e = cn.getContext(ae.meetingMetadata.peerId);
10502
+ return `https://${On({
10503
10503
  servicePrefix: "api-silos",
10504
10504
  baseURI: e.getValue("baseURI")
10505
10505
  })}/otel/logs`;
@@ -10547,7 +10547,7 @@ const on = new ww(), ae = class {
10547
10547
  }
10548
10548
  static addLogInCurrentSpan(e, t, r = {}, i = false) {
10549
10549
  r != null && r.error && Object.assign(r, { error: ud(r.error) });
10550
- const n = on.getContext(ae.meetingMetadata.peerId);
10550
+ const n = cn.getContext(ae.meetingMetadata.peerId);
10551
10551
  if (pv(n) && (dw(r) ? console[e]("DyteInternalLogs:: ", e, t) : console[e](
10552
10552
  "DyteInternalLogs:: ",
10553
10553
  e,
@@ -10579,7 +10579,7 @@ const on = new ww(), ae = class {
10579
10579
  }
10580
10580
  }
10581
10581
  static sendOtelLogsToNewRelic(e) {
10582
- const t = on.getContext(ae.meetingMetadata.peerId);
10582
+ const t = cn.getContext(ae.meetingMetadata.peerId);
10583
10583
  fetch(ae.logsEndpoint, {
10584
10584
  method: "POST",
10585
10585
  headers: {
@@ -10859,7 +10859,7 @@ ${this.message}`;
10859
10859
  r && r.endsWith("00") && (n = true), n && p.error("DyteError", {
10860
10860
  error: { message: this.message, name: this.name, code: r }
10861
10861
  });
10862
- const a = on.getContext(on.getMostRecentPeerId());
10862
+ const a = cn.getContext(cn.getMostRecentPeerId());
10863
10863
  if (a) {
10864
10864
  const c = a.getValue("onError");
10865
10865
  try {
@@ -11150,12 +11150,12 @@ const $m = 1080, Fm = 1920, Vw = (s, e, t, r, i, n) => {
11150
11150
  let m = d * g, y = l * g, _, P, b, R, L = 1;
11151
11151
  return m < t && (L = t / m), Math.abs(L - 1) < 1e-14 && y < r && (L = r / y), m *= L, y *= L, b = d / (m / t), R = l / (y / r), _ = (d - b) * a, P = (l - R) * c, _ < 0 && (_ = 0), P < 0 && (P = 0), b > d && (b = d), R > l && (R = l), [_, P, b, R, s, e, t, r];
11152
11152
  };
11153
- var is, Ln, ht, ns, Ve, _s, nr, Rt, Ge, xn, Vn, ar, Un, Rf;
11153
+ var is, xn, ht, ns, Ve, _s, nr, Rt, Ge, Vn, Un, ar, $n, Rf;
11154
11154
  const _v = (Rf = class extends Xt {
11155
11155
  constructor(e, t, r, i) {
11156
11156
  super();
11157
11157
  v(this, is, void 0);
11158
- v(this, Ln, void 0);
11158
+ v(this, xn, void 0);
11159
11159
  v(this, ht, void 0);
11160
11160
  v(this, ns, void 0);
11161
11161
  v(this, Ve, {
@@ -11172,12 +11172,12 @@ const _v = (Rf = class extends Xt {
11172
11172
  v(this, nr, void 0);
11173
11173
  v(this, Rt, {});
11174
11174
  v(this, Ge, void 0);
11175
- v(this, xn, void 0);
11176
11175
  v(this, Vn, void 0);
11176
+ v(this, Un, void 0);
11177
11177
  v(this, ar, void 0);
11178
- v(this, Un, false);
11178
+ v(this, $n, false);
11179
11179
  f(this, "cleanupEventListeners", () => {
11180
- o(this, Ln).unsubscribe("stageStatus", this.handlePipMediaControls), o(this, Ge).removeListener("videoUpdate", this.onSelfVideoUpdateListener), o(this, Ge).removeListener("audioUpdate", this.onSelfAudioUpdateListener), o(this, Ge).removeListener("roomLeft", () => this.disable());
11180
+ o(this, xn).unsubscribe("stageStatus", this.handlePipMediaControls), o(this, Ge).removeListener("videoUpdate", this.onSelfVideoUpdateListener), o(this, Ge).removeListener("audioUpdate", this.onSelfAudioUpdateListener), o(this, Ge).removeListener("roomLeft", () => this.disable());
11181
11181
  });
11182
11182
  f(this, "enablePipMediaControls", () => {
11183
11183
  this.mountAudioEvents(), this.mountVideoEvents();
@@ -11207,7 +11207,7 @@ const _v = (Rf = class extends Xt {
11207
11207
  f(this, "disable", (e2 = false) => {
11208
11208
  T(this, ar, "idle"), this.cleanupEventListeners(), cancelAnimationFrame(o(this, nr)), e2 !== true && document.body.removeChild(o(this, ht)), T(this, nr, void 0), document.pictureInPictureElement && document.exitPictureInPicture();
11209
11209
  });
11210
- T(this, Ln, e), T(this, ar, "idle"), T(this, Ge, t), T(this, _s, {
11210
+ T(this, xn, e), T(this, ar, "idle"), T(this, Ge, t), T(this, _s, {
11211
11211
  brand: t.config.designTokens.colors.brand[500],
11212
11212
  background: t.config.designTokens.colors.background[1e3],
11213
11213
  text: t.config.designTokens.colors.text,
@@ -11229,10 +11229,10 @@ const _v = (Rf = class extends Xt {
11229
11229
  return u(this, null, function* () {
11230
11230
  switch (e) {
11231
11231
  case "handRaise":
11232
- T(this, Vn, t);
11232
+ T(this, Un, t);
11233
11233
  break;
11234
11234
  case "pin":
11235
- T(this, xn, t);
11235
+ T(this, Vn, t);
11236
11236
  break;
11237
11237
  }
11238
11238
  });
@@ -11241,10 +11241,10 @@ const _v = (Rf = class extends Xt {
11241
11241
  return u(this, null, function* () {
11242
11242
  switch (e) {
11243
11243
  case "handRaise":
11244
- T(this, Vn, yield Qc(t));
11244
+ T(this, Un, yield Qc(t));
11245
11245
  break;
11246
11246
  case "pin":
11247
- T(this, xn, yield Qc(t));
11247
+ T(this, Vn, yield Qc(t));
11248
11248
  break;
11249
11249
  }
11250
11250
  });
@@ -11261,7 +11261,7 @@ const _v = (Rf = class extends Xt {
11261
11261
  T(this, ht, document.createElement("div")), o(this, ht).style.width = "0.1px", o(this, ht).style.height = "0.1px", o(this, ht).style.overflow = "hidden", o(this, ht).style.position = "absolute", o(this, ht).style.bottom = "0", o(this, ht).style.right = "0", o(this, ht).style.opacity = "0", o(this, ht).appendChild(o(this, ns));
11262
11262
  }
11263
11263
  setupEventListeners() {
11264
- o(this, Ln).subscribe("stageStatus", this.handlePipMediaControls), o(this, Ge).addListener("videoUpdate", this.onSelfVideoUpdateListener), o(this, Ge).addListener("audioUpdate", this.onSelfAudioUpdateListener), o(this, Ge).addListener("roomLeft", () => this.disable());
11264
+ o(this, xn).subscribe("stageStatus", this.handlePipMediaControls), o(this, Ge).addListener("videoUpdate", this.onSelfVideoUpdateListener), o(this, Ge).addListener("audioUpdate", this.onSelfAudioUpdateListener), o(this, Ge).addListener("roomLeft", () => this.disable());
11265
11265
  }
11266
11266
  createCanvas() {
11267
11267
  const e = document.createElement("canvas");
@@ -11328,7 +11328,7 @@ const _v = (Rf = class extends Xt {
11328
11328
  n - a * 2
11329
11329
  ), d += n + a, y.restore();
11330
11330
  };
11331
- e.pinned && g(o(this, xn)), e.handRaised && g(o(this, Vn));
11331
+ e.pinned && g(o(this, Vn)), e.handRaised && g(o(this, Un));
11332
11332
  }
11333
11333
  drawTile(e, t, r) {
11334
11334
  var d, l;
@@ -11391,7 +11391,7 @@ const _v = (Rf = class extends Xt {
11391
11391
  return document.pictureInPictureElement !== null;
11392
11392
  }
11393
11393
  cleanup() {
11394
- if (T(this, Un, false), this.isSupported() && document.exitPictureInPicture !== void 0 && document.pictureInPictureElement !== null && document.exitPictureInPicture(), o(this, ht))
11394
+ if (T(this, $n, false), this.isSupported() && document.exitPictureInPicture !== void 0 && document.pictureInPictureElement !== null && document.exitPictureInPicture(), o(this, ht))
11395
11395
  try {
11396
11396
  document.body.removeChild(o(this, ht));
11397
11397
  } catch (e) {
@@ -11401,9 +11401,9 @@ const _v = (Rf = class extends Xt {
11401
11401
  init({ height: e, width: t } = {}) {
11402
11402
  if (!this.isSupported())
11403
11403
  throw p.error("DytePip.unsupported"), new Error("Picture-in-picture is not available in this environment");
11404
- if (o(this, Un))
11404
+ if (o(this, $n))
11405
11405
  return;
11406
- T(this, Un, true), this.createCanvas(), this.setupMediaSessionEvents();
11406
+ T(this, $n, true), this.createCanvas(), this.setupMediaSessionEvents();
11407
11407
  const r = document.createElement("video");
11408
11408
  T(this, Ve, {
11409
11409
  height: e != null ? e : $m,
@@ -11490,7 +11490,7 @@ const _v = (Rf = class extends Xt {
11490
11490
  T(this, ar, "active");
11491
11491
  });
11492
11492
  }
11493
- }, is = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Rf);
11493
+ }, is = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Rf);
11494
11494
  let Zt = _v;
11495
11495
  gs([
11496
11496
  h.trace("DytePip.overrideIcon")
@@ -13136,10 +13136,10 @@ class Xk extends MessageType {
13136
13136
  }
13137
13137
  }
13138
13138
  const Zk = new Xk();
13139
- var cn;
13139
+ var dn;
13140
13140
  (function(s) {
13141
13141
  s[s.BROWSER = 0] = "BROWSER", s[s.TRACK = 1] = "TRACK", s[s.COMPOSITE = 2] = "COMPOSITE";
13142
- })(cn || (cn = {}));
13142
+ })(dn || (dn = {}));
13143
13143
  var Tr;
13144
13144
  (function(s) {
13145
13145
  s[s.UNSPECIFIED = 0] = "UNSPECIFIED", s[s.ON_STAGE = 1] = "ON_STAGE", s[s.APPROVED_STAGE = 2] = "APPROVED_STAGE", s[s.REQUESTED_STAGE = 3] = "REQUESTED_STAGE", s[s.OFF_STAGE = 4] = "OFF_STAGE";
@@ -13242,7 +13242,7 @@ class rA extends MessageType {
13242
13242
  ]);
13243
13243
  }
13244
13244
  }
13245
- const En = new rA();
13245
+ const _n = new rA();
13246
13246
  class iA extends MessageType {
13247
13247
  constructor() {
13248
13248
  super("socket.room.PeerStatusUpdate", [
@@ -13353,7 +13353,7 @@ class lA extends MessageType {
13353
13353
  kind: "scalar",
13354
13354
  T: 9
13355
13355
  },
13356
- { no: 2, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", cn] },
13356
+ { no: 2, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", dn] },
13357
13357
  {
13358
13358
  no: 3,
13359
13359
  name: "recording_status",
@@ -14010,10 +14010,10 @@ var hp;
14010
14010
  (function(s) {
14011
14011
  s[s.NONE = 0] = "NONE", s[s.SKIP = 1] = "SKIP", s[s.ON_PRIVILEGED_USER_ENTRY = 2] = "ON_PRIVILEGED_USER_ENTRY", s[s.SKIP_ON_ACCEPT = 3] = "SKIP_ON_ACCEPT";
14012
14012
  })(hp || (hp = {}));
14013
- var di;
14013
+ var li;
14014
14014
  (function(s) {
14015
14015
  s[s.NONE = 0] = "NONE", s[s.ALLOWED = 1] = "ALLOWED", s[s.NOT_ALLOWED = 2] = "NOT_ALLOWED", s[s.CAN_REQUEST = 3] = "CAN_REQUEST";
14016
- })(di || (di = {}));
14016
+ })(li || (li = {}));
14017
14017
  class mI extends MessageType {
14018
14018
  constructor() {
14019
14019
  super("socket.preset.PollsPermissionUpdate", [
@@ -14166,8 +14166,8 @@ const RI = new CI();
14166
14166
  class wI extends MessageType {
14167
14167
  constructor() {
14168
14168
  super("socket.preset.StreamPermission", [
14169
- { no: 1, name: "can_produce", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", di, "STREAM_PERMISSION_TYPE_"] },
14170
- { no: 2, name: "can_consume", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", di, "STREAM_PERMISSION_TYPE_"] }
14169
+ { no: 1, name: "can_produce", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", li, "STREAM_PERMISSION_TYPE_"] },
14170
+ { no: 2, name: "can_consume", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", li, "STREAM_PERMISSION_TYPE_"] }
14171
14171
  ]);
14172
14172
  }
14173
14173
  }
@@ -14511,7 +14511,7 @@ class jI extends MessageType {
14511
14511
  ]);
14512
14512
  }
14513
14513
  }
14514
- const gn = new jI();
14514
+ const vn = new jI();
14515
14515
  class GI extends MessageType {
14516
14516
  constructor() {
14517
14517
  super("socket.chat.GetPaginatedChatMessageRoomRequest", [
@@ -14554,7 +14554,7 @@ const WI = new GI();
14554
14554
  class JI extends MessageType {
14555
14555
  constructor() {
14556
14556
  super("socket.chat.GetPaginatedChatMessageRoomResponse", [
14557
- { no: 1, name: "messages", kind: "message", repeat: 1, T: () => gn },
14557
+ { no: 1, name: "messages", kind: "message", repeat: 1, T: () => vn },
14558
14558
  {
14559
14559
  no: 2,
14560
14560
  name: "next",
@@ -14568,7 +14568,7 @@ const KI = new JI();
14568
14568
  class zI extends MessageType {
14569
14569
  constructor() {
14570
14570
  super("socket.chat.GetChatMessagesResponse", [
14571
- { no: 1, name: "messages", kind: "message", repeat: 1, T: () => gn }
14571
+ { no: 1, name: "messages", kind: "message", repeat: 1, T: () => vn }
14572
14572
  ]);
14573
14573
  }
14574
14574
  }
@@ -14595,7 +14595,7 @@ const QI = new YI();
14595
14595
  class XI extends MessageType {
14596
14596
  constructor() {
14597
14597
  super("socket.chat.SendChatMessageToRoomResponse", [
14598
- { no: 1, name: "message", kind: "message", T: () => gn }
14598
+ { no: 1, name: "message", kind: "message", T: () => vn }
14599
14599
  ]);
14600
14600
  }
14601
14601
  }
@@ -14629,7 +14629,7 @@ const eD = new ZI();
14629
14629
  class tD extends MessageType {
14630
14630
  constructor() {
14631
14631
  super("socket.chat.SendChatMessageToPeersResponse", [
14632
- { no: 1, name: "message", kind: "message", T: () => gn }
14632
+ { no: 1, name: "message", kind: "message", T: () => vn }
14633
14633
  ]);
14634
14634
  }
14635
14635
  }
@@ -14662,7 +14662,7 @@ const rD = new sD();
14662
14662
  class iD extends MessageType {
14663
14663
  constructor() {
14664
14664
  super("socket.chat.SendChatMessageToChannelResponse", [
14665
- { no: 1, name: "message", kind: "message", T: () => gn }
14665
+ { no: 1, name: "message", kind: "message", T: () => vn }
14666
14666
  ]);
14667
14667
  }
14668
14668
  }
@@ -14763,7 +14763,7 @@ const ed = new dD();
14763
14763
  class lD extends MessageType {
14764
14764
  constructor() {
14765
14765
  super("socket.chat.EditChatMessageResponse", [
14766
- { no: 1, name: "message", kind: "message", T: () => gn }
14766
+ { no: 1, name: "message", kind: "message", T: () => vn }
14767
14767
  ]);
14768
14768
  }
14769
14769
  }
@@ -15007,7 +15007,7 @@ const wD = new RD();
15007
15007
  class bD extends MessageType {
15008
15008
  constructor() {
15009
15009
  super("socket.chat.LatestMessageAndUnreadCount", [
15010
- { no: 1, name: "message", kind: "message", T: () => gn },
15010
+ { no: 1, name: "message", kind: "message", T: () => vn },
15011
15011
  {
15012
15012
  no: 2,
15013
15013
  name: "unread_count",
@@ -15824,7 +15824,7 @@ class xM extends MessageType {
15824
15824
  kind: "scalar",
15825
15825
  T: 9
15826
15826
  },
15827
- { no: 3, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", cn] }
15827
+ { no: 3, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", dn] }
15828
15828
  ]);
15829
15829
  }
15830
15830
  }
@@ -16103,7 +16103,7 @@ function xv(s, e) {
16103
16103
  const U = Ga(BM, JM), Le = Ga(HM, KM), z = Ga(
16104
16104
  qM,
16105
16105
  zM
16106
- ), sr = Ga(jM, YM), wi = Ga(
16106
+ ), sr = Ga(jM, YM), bi = Ga(
16107
16107
  GM,
16108
16108
  QM
16109
16109
  ), ms = xv(Lv, 16777216), Is = xv(Lv, 50331648), hd = Ga(
@@ -16131,7 +16131,7 @@ const gp = (wf = class {
16131
16131
  };
16132
16132
  i && (n.visibility = "private");
16133
16133
  const a = yield o(this, $r).sendMessagePromise(
16134
- wi.createChatChannel,
16134
+ bi.createChatChannel,
16135
16135
  ED.toBinary(n)
16136
16136
  ), c = Zs.fromBinary(
16137
16137
  a.payload
@@ -16142,7 +16142,7 @@ const gp = (wf = class {
16142
16142
  updateChannel(s, e) {
16143
16143
  return u(this, null, function* () {
16144
16144
  const t = yield o(this, $r).sendMessagePromise(
16145
- wi.updateChatChannel,
16145
+ bi.updateChatChannel,
16146
16146
  PD.toBinary({
16147
16147
  chatChannelId: s,
16148
16148
  targetUserIds: e.memberIds,
@@ -16171,7 +16171,7 @@ const gp = (wf = class {
16171
16171
  return u(this, null, function* () {
16172
16172
  try {
16173
16173
  const e = yield o(this, $r).sendMessagePromise(
16174
- wi.getChannelMembers,
16174
+ bi.getChannelMembers,
16175
16175
  wD.toBinary({ chatChannelId: s })
16176
16176
  );
16177
16177
  return LD.fromBinary(e.payload).channelMembers.map((i) => {
@@ -16186,13 +16186,13 @@ const gp = (wf = class {
16186
16186
  on(s, e) {
16187
16187
  let t, r;
16188
16188
  switch (s) {
16189
- case wi.createChatChannel: {
16189
+ case bi.createChatChannel: {
16190
16190
  t = Zs.fromBinary.bind(
16191
16191
  Zs
16192
16192
  ), r = Zs.create();
16193
16193
  break;
16194
16194
  }
16195
- case wi.updateChatChannel: {
16195
+ case bi.updateChatChannel: {
16196
16196
  t = Zs.fromBinary.bind(
16197
16197
  Zs
16198
16198
  ), r = Zs.create();
@@ -16218,16 +16218,16 @@ const gp = (wf = class {
16218
16218
  });
16219
16219
  }
16220
16220
  }, $r = /* @__PURE__ */ new WeakMap(), wf);
16221
- let un = gp;
16221
+ let pn = gp;
16222
16222
  ah([
16223
16223
  h.trace("ChatChannelHandler.createChannel")
16224
- ], un.prototype, "createChannel", 1);
16224
+ ], pn.prototype, "createChannel", 1);
16225
16225
  ah([
16226
16226
  h.trace("ChatChannelHandler.updateChannel")
16227
- ], un.prototype, "updateChannel", 1);
16227
+ ], pn.prototype, "updateChannel", 1);
16228
16228
  ah([
16229
16229
  h.trace("ChatChannelHandler.getChannelMembers")
16230
- ], un.prototype, "getChannelMembers", 1);
16230
+ ], pn.prototype, "getChannelMembers", 1);
16231
16231
  var t0 = Object.defineProperty, s0 = Object.getOwnPropertyDescriptor, Ls = (s, e, t, r) => {
16232
16232
  for (var i = r > 1 ? void 0 : r ? s0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
16233
16233
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
@@ -16358,7 +16358,7 @@ class vs {
16358
16358
  const e = yield o(this, mt).sendMessagePromise(
16359
16359
  Le.getAllChatChannels
16360
16360
  );
16361
- return Zs.fromBinary(e.payload).chatChannels.map(un.formatChannel);
16361
+ return Zs.fromBinary(e.payload).chatChannels.map(pn.formatChannel);
16362
16362
  } catch (e) {
16363
16363
  return [];
16364
16364
  }
@@ -17012,7 +17012,7 @@ var h0 = Object.defineProperty, m0 = Object.getOwnPropertyDescriptor, Ie = (s, e
17012
17012
  return r && i && h0(e, t, i), i;
17013
17013
  };
17014
17014
  const f0 = ["text", "image", "file", "custom", "poll"], md = { maxInvocations: 180, period: 60 };
17015
- var ie, Ii, Xe, Di, Wo, Jd, Uv, Jo, yp, bf;
17015
+ var ie, Di, Xe, Mi, Wo, Jd, Uv, Jo, yp, bf;
17016
17016
  let Te = (bf = class extends Xt {
17017
17017
  constructor(e, t, r, i, n) {
17018
17018
  super();
@@ -17021,12 +17021,12 @@ let Te = (bf = class extends Xt {
17021
17021
  f(this, "messages");
17022
17022
  f(this, "channels", []);
17023
17023
  v(this, ie, void 0);
17024
- v(this, Ii, void 0);
17025
- v(this, Xe, void 0);
17026
17024
  v(this, Di, void 0);
17025
+ v(this, Xe, void 0);
17026
+ v(this, Mi, void 0);
17027
17027
  v(this, Wo, void 0);
17028
17028
  f(this, "maxTextLimit", 2e3);
17029
- T(this, Wo, e), T(this, Xe, t), T(this, Di, r), T(this, ie, i), T(this, Ii, n), this.messages = [];
17029
+ T(this, Wo, e), T(this, Xe, t), T(this, Mi, r), T(this, ie, i), T(this, Di, n), this.messages = [];
17030
17030
  }
17031
17031
  setMaxTextLimit(e) {
17032
17032
  this.maxTextLimit = e;
@@ -17070,7 +17070,7 @@ let Te = (bf = class extends Xt {
17070
17070
  return;
17071
17071
  }
17072
17072
  let i = [];
17073
- t && t.length > 0 && (t.push(o(this, ie).id), i = o(this, Ii).joined.toArray().filter((m) => t.includes(m.id)).map((m) => m.userId), i.push(o(this, ie).userId)), o(this, Xe).sendMessage(
17073
+ t && t.length > 0 && (t.push(o(this, ie).id), i = o(this, Di).joined.toArray().filter((m) => t.includes(m.id)).map((m) => m.userId), i.push(o(this, ie).userId)), o(this, Xe).sendMessage(
17074
17074
  e,
17075
17075
  It.TEXT,
17076
17076
  t
@@ -17111,7 +17111,7 @@ let Te = (bf = class extends Xt {
17111
17111
  return;
17112
17112
  }
17113
17113
  let P = [];
17114
- t && t.length > 0 && (t.push(o(this, ie).id), P = o(this, Ii).joined.toArray().filter((b) => t.includes(b.id)).map((b) => b.userId), P.push(o(this, ie).userId)), o(this, Xe).sendMessage(
17114
+ t && t.length > 0 && (t.push(o(this, ie).id), P = o(this, Di).joined.toArray().filter((b) => t.includes(b.id)).map((b) => b.userId), P.push(o(this, ie).userId)), o(this, Xe).sendMessage(
17115
17115
  y,
17116
17116
  It.IMAGE,
17117
17117
  t
@@ -17155,7 +17155,7 @@ let Te = (bf = class extends Xt {
17155
17155
  return;
17156
17156
  }
17157
17157
  let _ = [];
17158
- t && t.length > 0 && (t.push(o(this, ie).id), _ = o(this, Ii).joined.toArray().filter((b) => t.includes(b.id)).map((b) => b.userId), _.push(o(this, ie).userId));
17158
+ t && t.length > 0 && (t.push(o(this, ie).id), _ = o(this, Di).joined.toArray().filter((b) => t.includes(b.id)).map((b) => b.userId), _.push(o(this, ie).userId));
17159
17159
  const P = JSON.stringify({
17160
17160
  link: m,
17161
17161
  name: e.name,
@@ -17418,7 +17418,7 @@ let Te = (bf = class extends Xt {
17418
17418
  if (!e || e.trim().length === 0)
17419
17419
  throw new w("channel name cannot be empty.", "0510");
17420
17420
  const c = [.../* @__PURE__ */ new Set([...t, o(this, ie).userId])];
17421
- return yield o(this, Di).createChannel(
17421
+ return yield o(this, Mi).createChannel(
17422
17422
  e.trim(),
17423
17423
  c,
17424
17424
  r.displayPictureUrl,
@@ -17444,7 +17444,7 @@ let Te = (bf = class extends Xt {
17444
17444
  displayPictureUrl: (l = t.displayPictureUrl) != null ? l : r.displayPictureUrl,
17445
17445
  visibility: (g = t.visibility) != null ? g : r.visibility
17446
17446
  };
17447
- return o(this, Di).updateChannel(e, n);
17447
+ return o(this, Mi).updateChannel(e, n);
17448
17448
  }
17449
17449
  sendMessageToChannel(i, n) {
17450
17450
  return u(this, arguments, function* (e, t, r = {}) {
@@ -17453,7 +17453,7 @@ let Te = (bf = class extends Xt {
17453
17453
  }
17454
17454
  getChannelMembers(e) {
17455
17455
  return u(this, null, function* () {
17456
- return o(this, Di).getChannelMembers(e);
17456
+ return o(this, Mi).getChannelMembers(e);
17457
17457
  });
17458
17458
  }
17459
17459
  searchMessages(r) {
@@ -17476,7 +17476,7 @@ let Te = (bf = class extends Xt {
17476
17476
  get pinned() {
17477
17477
  return this.messages.filter((e) => e.pinned);
17478
17478
  }
17479
- }, ie = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Jd = /* @__PURE__ */ new WeakSet(), Uv = function() {
17479
+ }, ie = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Jd = /* @__PURE__ */ new WeakSet(), Uv = function() {
17480
17480
  return o(this, Wo).getValue("connectionHandler");
17481
17481
  }, Jo = /* @__PURE__ */ new WeakSet(), yp = function() {
17482
17482
  return o(this, Jd, Uv).socketJoined === true;
@@ -17562,7 +17562,7 @@ var g0 = Object.defineProperty, v0 = Object.getOwnPropertyDescriptor, oh = (s, e
17562
17562
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
17563
17563
  return r && i && g0(e, t, i), i;
17564
17564
  }, Kd, kf;
17565
- const _i = (kf = class {
17565
+ const Pi = (kf = class {
17566
17566
  constructor(s, e, t, r, i) {
17567
17567
  f(this, "chat");
17568
17568
  f(this, "chatSocketHandler");
@@ -17579,7 +17579,7 @@ const _i = (kf = class {
17579
17579
  }
17580
17580
  static init(s, e, t, r, i) {
17581
17581
  return u(this, null, function* () {
17582
- return new _i(
17582
+ return new Pi(
17583
17583
  s,
17584
17584
  e,
17585
17585
  t,
@@ -17642,7 +17642,7 @@ const _i = (kf = class {
17642
17642
  break;
17643
17643
  }
17644
17644
  }
17645
- return _i.formatMessage(t);
17645
+ return Pi.formatMessage(t);
17646
17646
  }
17647
17647
  getChatMessages() {
17648
17648
  return u(this, null, function* () {
@@ -17655,7 +17655,7 @@ const _i = (kf = class {
17655
17655
  s.payload
17656
17656
  ).messages;
17657
17657
  this.chat.messages = e.map(
17658
- (t) => _i.formatSocketServiceMessage(t)
17658
+ (t) => Pi.formatSocketServiceMessage(t)
17659
17659
  );
17660
17660
  });
17661
17661
  }
@@ -17668,7 +17668,7 @@ const _i = (kf = class {
17668
17668
  ), this.chatSocketHandler.on(
17669
17669
  Le.sendMessageToRoom,
17670
17670
  (s) => {
17671
- const e = _i.formatSocketServiceMessage(
17671
+ const e = Pi.formatSocketServiceMessage(
17672
17672
  s.message
17673
17673
  );
17674
17674
  if (!e.channelId)
@@ -17686,7 +17686,7 @@ const _i = (kf = class {
17686
17686
  ), this.chatSocketHandler.on(
17687
17687
  Le.sendMessageToPeers,
17688
17688
  (s) => {
17689
- const e = _i.formatSocketServiceMessage(
17689
+ const e = Pi.formatSocketServiceMessage(
17690
17690
  s.message
17691
17691
  );
17692
17692
  this.chat.messages = [...this.chat.messages, e], this.chat.emit("chatUpdate", {
@@ -17698,7 +17698,7 @@ const _i = (kf = class {
17698
17698
  ), this.chatSocketHandler.on(
17699
17699
  Le.editMessage,
17700
17700
  (s) => {
17701
- const e = _i.formatSocketServiceMessage(
17701
+ const e = Pi.formatSocketServiceMessage(
17702
17702
  s.message
17703
17703
  );
17704
17704
  if (e.channelId) {
@@ -17738,9 +17738,9 @@ const _i = (kf = class {
17738
17738
  });
17739
17739
  }
17740
17740
  ), this.chatChannelSocketHandler.on(
17741
- wi.createChatChannel,
17741
+ bi.createChatChannel,
17742
17742
  (s) => {
17743
- const [e] = s.chatChannels, t = un.formatChannel(e);
17743
+ const [e] = s.chatChannels, t = pn.formatChannel(e);
17744
17744
  this.chat.channels.push(t), this.chat.emit("channelCreate", t);
17745
17745
  }
17746
17746
  ), this.chatSocketHandler.on(
@@ -17757,15 +17757,15 @@ const _i = (kf = class {
17757
17757
  });
17758
17758
  }
17759
17759
  ), this.chatChannelSocketHandler.on(
17760
- wi.updateChatChannel,
17760
+ bi.updateChatChannel,
17761
17761
  (s) => {
17762
- const [e] = s.chatChannels, t = un.formatChannel(e);
17762
+ const [e] = s.chatChannels, t = pn.formatChannel(e);
17763
17763
  this.chat.channels = this.chat.channels.map((r) => r.id === t.id ? t : r), this.chat.emit("channelUpdate", t);
17764
17764
  }
17765
17765
  );
17766
17766
  }
17767
17767
  }, Kd = /* @__PURE__ */ new WeakMap(), kf);
17768
- let zt = _i;
17768
+ let zt = Pi;
17769
17769
  oh([
17770
17770
  h.trace("ChatController.setupEvents")
17771
17771
  ], zt.prototype, "setupEvents", 1);
@@ -17779,23 +17779,23 @@ var y0 = Object.defineProperty, T0 = Object.getOwnPropertyDescriptor, ch = (s, e
17779
17779
  for (var i = r > 1 ? void 0 : r ? T0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
17780
17780
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
17781
17781
  return r && i && y0(e, t, i), i;
17782
- }, zd, $v, Yd, Fv, $n, Fn, Ko, Af;
17782
+ }, zd, $v, Yd, Fv, Fn, Bn, Ko, Af;
17783
17783
  let Ho = (Af = class extends Xt {
17784
17784
  constructor(e, t, r) {
17785
17785
  super();
17786
17786
  v(this, zd);
17787
17787
  v(this, Yd);
17788
17788
  f(this, "items");
17789
- v(this, $n, void 0);
17790
17789
  v(this, Fn, void 0);
17790
+ v(this, Bn, void 0);
17791
17791
  v(this, Ko, void 0);
17792
- T(this, Ko, e), T(this, $n, t), T(this, Fn, r), this.items = [];
17792
+ T(this, Ko, e), T(this, Fn, t), T(this, Bn, r), this.items = [];
17793
17793
  }
17794
17794
  create(e, t, r = false, i = false) {
17795
17795
  return u(this, null, function* () {
17796
17796
  if (!o(this, Yd, Fv))
17797
17797
  throw new w("Can't create polls without joining room", "0705");
17798
- if (!o(this, $n).permissions.polls.canCreate) {
17798
+ if (!o(this, Fn).permissions.polls.canCreate) {
17799
17799
  p.error("DytePolls::create::permission_denied");
17800
17800
  return;
17801
17801
  }
@@ -17814,7 +17814,7 @@ let Ho = (Af = class extends Xt {
17814
17814
  });
17815
17815
  return;
17816
17816
  }
17817
- yield o(this, Fn).createPoll(
17817
+ yield o(this, Bn).createPoll(
17818
17818
  e,
17819
17819
  t,
17820
17820
  r,
@@ -17824,11 +17824,11 @@ let Ho = (Af = class extends Xt {
17824
17824
  }
17825
17825
  vote(e, t) {
17826
17826
  return u(this, null, function* () {
17827
- if (!o(this, $n).permissions.polls.canVote) {
17827
+ if (!o(this, Fn).permissions.polls.canVote) {
17828
17828
  p.error("DytePolls::vote::permission_denied");
17829
17829
  return;
17830
17830
  }
17831
- yield o(this, Fn).votePoll(e, t);
17831
+ yield o(this, Bn).votePoll(e, t);
17832
17832
  });
17833
17833
  }
17834
17834
  }, zd = /* @__PURE__ */ new WeakSet(), $v = function() {
@@ -17836,7 +17836,7 @@ let Ho = (Af = class extends Xt {
17836
17836
  }, Yd = /* @__PURE__ */ new WeakSet(), Fv = function() {
17837
17837
  var e;
17838
17838
  return ((e = o(this, zd, $v)) == null ? void 0 : e.socketJoined) === true;
17839
- }, $n = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), Af);
17839
+ }, Fn = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), Af);
17840
17840
  ch([
17841
17841
  h.trace("DytePolls.create")
17842
17842
  ], Ho.prototype, "create", 1);
@@ -17850,47 +17850,47 @@ var S0 = Object.defineProperty, E0 = Object.getOwnPropertyDescriptor, dh = (s, e
17850
17850
  for (var i = r > 1 ? void 0 : r ? E0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
17851
17851
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
17852
17852
  return r && i && S0(e, t, i), i;
17853
- }, Bn, Mi, If;
17854
- const _n = (If = class {
17853
+ }, Hn, Oi, If;
17854
+ const Pn = (If = class {
17855
17855
  constructor(s, e, t) {
17856
17856
  f(this, "polls");
17857
- v(this, Bn, void 0);
17858
- v(this, Mi, void 0);
17859
- this.polls = new Ho(s, e, t), T(this, Bn, e), T(this, Mi, t), this.setupEvents();
17857
+ v(this, Hn, void 0);
17858
+ v(this, Oi, void 0);
17859
+ this.polls = new Ho(s, e, t), T(this, Hn, e), T(this, Oi, t), this.setupEvents();
17860
17860
  }
17861
17861
  static init(s, e, t) {
17862
17862
  return u(this, null, function* () {
17863
- return new _n(s, e, t);
17863
+ return new Pn(s, e, t);
17864
17864
  });
17865
17865
  }
17866
17866
  canViewPolls() {
17867
- return o(this, Bn).permissions.polls.canView;
17867
+ return o(this, Hn).permissions.polls.canView;
17868
17868
  }
17869
17869
  setupEvents() {
17870
17870
  const s = {
17871
17871
  [sr.createPoll]: (r) => {
17872
- r.poll && this.updatePoll(_n.formatSocketServicePoll(r.poll));
17872
+ r.poll && this.updatePoll(Pn.formatSocketServicePoll(r.poll));
17873
17873
  },
17874
17874
  [sr.updatePoll]: (r) => {
17875
- r.poll && this.updatePoll(_n.formatSocketServicePoll(r.poll));
17875
+ r.poll && this.updatePoll(Pn.formatSocketServicePoll(r.poll));
17876
17876
  },
17877
17877
  [sr.votePoll]: (r) => {
17878
- r.poll && this.updatePoll(_n.formatSocketServicePoll(r.poll));
17878
+ r.poll && this.updatePoll(Pn.formatSocketServicePoll(r.poll));
17879
17879
  }
17880
17880
  }, e = () => {
17881
17881
  A.on(I.SOCKET_SERVICE_ROOM_JOINED, () => {
17882
17882
  this.getPolls();
17883
17883
  }), Object.keys(s).map(Number).forEach((r) => {
17884
- o(this, Mi).on(r, s[r]);
17884
+ o(this, Oi).on(r, s[r]);
17885
17885
  });
17886
17886
  }, t = () => {
17887
17887
  A.on(I.SOCKET_SERVICE_ROOM_JOINED, () => {
17888
17888
  this.getPolls();
17889
17889
  }), Object.keys(s).map(Number).forEach((r) => {
17890
- o(this, Mi).removeListeners(r);
17890
+ o(this, Oi).removeListeners(r);
17891
17891
  });
17892
17892
  };
17893
- o(this, Bn).permissions.on("permissionsUpdate", (r) => u(this, null, function* () {
17893
+ o(this, Hn).permissions.on("permissionsUpdate", (r) => u(this, null, function* () {
17894
17894
  var i;
17895
17895
  (i = r == null ? void 0 : r.polls) != null && i.canView ? (yield this.getPolls(), e()) : (this.polls.items = [], t());
17896
17896
  })), this.canViewPolls() && e();
@@ -17911,12 +17911,12 @@ const _n = (If = class {
17911
17911
  }
17912
17912
  getPolls() {
17913
17913
  return u(this, null, function* () {
17914
- const s = yield o(this, Mi).getPolls();
17914
+ const s = yield o(this, Oi).getPolls();
17915
17915
  if (!(s != null && s.payload))
17916
17916
  return;
17917
17917
  const { polls: e } = LM.fromBinary(s.payload);
17918
17918
  this.polls.items = e.map(
17919
- (t) => _n.formatSocketServicePoll(t)
17919
+ (t) => Pn.formatSocketServicePoll(t)
17920
17920
  );
17921
17921
  });
17922
17922
  }
@@ -17940,8 +17940,8 @@ const _n = (If = class {
17940
17940
  voted: s.votes
17941
17941
  };
17942
17942
  }
17943
- }, Bn = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), If);
17944
- let Yl = _n;
17943
+ }, Hn = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), If);
17944
+ let Yl = Pn;
17945
17945
  dh([
17946
17946
  h.trace("PollController.setupEvents")
17947
17947
  ], Yl.prototype, "setupEvents", 1);
@@ -17955,21 +17955,21 @@ var _0 = Object.defineProperty, P0 = Object.getOwnPropertyDescriptor, lh = (s, e
17955
17955
  for (var i = r > 1 ? void 0 : r ? P0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
17956
17956
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
17957
17957
  return r && i && _0(e, t, i), i;
17958
- }, Bv = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Bv || {}), Hn, zo, Tp, Oi, Yo, Df;
17958
+ }, Bv = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Bv || {}), qn, zo, Tp, Ni, Yo, Df;
17959
17959
  let qo = (Df = class extends Xt {
17960
17960
  constructor(e, t, r, i, n) {
17961
17961
  super();
17962
17962
  v(this, zo);
17963
17963
  f(this, "selfActiveTab");
17964
17964
  f(this, "broadcastTabChanges");
17965
- v(this, Hn, void 0);
17966
- v(this, Oi, void 0);
17965
+ v(this, qn, void 0);
17966
+ v(this, Ni, void 0);
17967
17967
  v(this, Yo, void 0);
17968
17968
  f(this, "viewType");
17969
17969
  f(this, "meetingStartedTimestamp");
17970
17970
  f(this, "meetingTitle");
17971
17971
  f(this, "sessionId");
17972
- T(this, Hn, e), T(this, Oi, t), this.viewType = r, T(this, Yo, i), this.meetingTitle = n, this.broadcastTabChanges = t.permissions.canSpotlight;
17972
+ T(this, qn, e), T(this, Ni, t), this.viewType = r, T(this, Yo, i), this.meetingTitle = n, this.broadcastTabChanges = t.permissions.canSpotlight;
17973
17973
  }
17974
17974
  get socketState() {
17975
17975
  return o(this, zo, Tp).socketState;
@@ -17978,10 +17978,10 @@ let qo = (Df = class extends Xt {
17978
17978
  return o(this, zo, Tp).mediaState;
17979
17979
  }
17980
17980
  get meetingId() {
17981
- return o(this, Hn).getValue("meetingId");
17981
+ return o(this, qn).getValue("meetingId");
17982
17982
  }
17983
17983
  setBroadcastTabChanges(e) {
17984
- if (!o(this, Oi).permissions.canSpotlight)
17984
+ if (!o(this, Ni).permissions.canSpotlight)
17985
17985
  throw p.error("DyteSpotlight::setSpotlighted::permission_denied"), new w("User does not have permission to toggle spotlight", "0801");
17986
17986
  this.broadcastTabChanges = e, this.emit("broadcastTabChangesUpdate", this.broadcastTabChanges), this.broadcastTabChanges && this.assertActiveTabToRoom();
17987
17987
  }
@@ -17994,17 +17994,17 @@ let qo = (Df = class extends Xt {
17994
17994
  type: e.type
17995
17995
  }
17996
17996
  }
17997
- }), this.selfActiveTab = e, t === 0 && this.emit("selfTabUpdate", e), (r = o(this, Oi).permissions) != null && r.canSpotlight && this.broadcastTabChanges && t === 0 && this.assertActiveTabToRoom();
17997
+ }), this.selfActiveTab = e, t === 0 && this.emit("selfTabUpdate", e), (r = o(this, Ni).permissions) != null && r.canSpotlight && this.broadcastTabChanges && t === 0 && this.assertActiveTabToRoom();
17998
17998
  }
17999
17999
  assertActiveTabToRoom() {
18000
18000
  o(this, Yo).broadcastMessage("spotlight", {
18001
- userId: o(this, Oi).userId,
18001
+ userId: o(this, Ni).userId,
18002
18002
  currentTab: this.selfActiveTab
18003
18003
  });
18004
18004
  }
18005
- }, Hn = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakSet(), Tp = function() {
18006
- return o(this, Hn).getValue("connectionHandler");
18007
- }, Oi = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Df);
18005
+ }, qn = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakSet(), Tp = function() {
18006
+ return o(this, qn).getValue("connectionHandler");
18007
+ }, Ni = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Df);
18008
18008
  lh([
18009
18009
  h.trace("DyteMeta.setBroadcastTabChanges")
18010
18010
  ], qo.prototype, "setBroadcastTabChanges", 1);
@@ -18120,13 +18120,13 @@ var b0 = Object.defineProperty, k0 = Object.getOwnPropertyDescriptor, Hv = (s, e
18120
18120
  for (var i = r > 1 ? void 0 : r ? k0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
18121
18121
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
18122
18122
  return r && i && b0(e, t, i), i;
18123
- }, Fr, qn, Qd, Mf;
18123
+ }, Fr, jn, Qd, Mf;
18124
18124
  const qv = (Mf = class {
18125
18125
  constructor(s, e, t, r, i, n) {
18126
18126
  f(this, "meta");
18127
18127
  f(this, "ai");
18128
18128
  v(this, Fr, void 0);
18129
- v(this, qn, void 0);
18129
+ v(this, jn, void 0);
18130
18130
  f(this, "aiSocketHandler");
18131
18131
  v(this, Qd, void 0);
18132
18132
  T(this, Qd, s), this.meta = new qo(
@@ -18135,7 +18135,7 @@ const qv = (Mf = class {
18135
18135
  e.config.viewType,
18136
18136
  t,
18137
18137
  n
18138
- ), this.ai = r, T(this, Fr, e), T(this, qn, t), this.aiSocketHandler = i, e.config.viewType !== Dt.Chat && this.setupEvents();
18138
+ ), this.ai = r, T(this, Fr, e), T(this, jn, t), this.aiSocketHandler = i, e.config.viewType !== Dt.Chat && this.setupEvents();
18139
18139
  }
18140
18140
  static init(s, e, t, r, i) {
18141
18141
  return u(this, null, function* () {
@@ -18184,13 +18184,13 @@ const qv = (Mf = class {
18184
18184
  ({ score: s }) => {
18185
18185
  s < 5 && this.meta.emit("poorConnection", { score: s });
18186
18186
  }
18187
- ), o(this, Fr).permissions.canSpotlight && (p.info("DyteMetaController::Asserting Spotlight"), this.meta.selfActiveTab && o(this, qn).broadcastMessage("spotlight", {
18187
+ ), o(this, Fr).permissions.canSpotlight && (p.info("DyteMetaController::Asserting Spotlight"), this.meta.selfActiveTab && o(this, jn).broadcastMessage("spotlight", {
18188
18188
  userId: o(this, Fr).userId,
18189
18189
  currentTab: this.meta.selfActiveTab
18190
18190
  })), A.on(
18191
18191
  I.PEER_JOINED_INTERNAL,
18192
18192
  (s) => u(this, null, function* () {
18193
- o(this, Fr).permissions.canSpotlight && this.meta.selfActiveTab && o(this, qn).broadcastToPeers("spotlight", [s.id], {
18193
+ o(this, Fr).permissions.canSpotlight && this.meta.selfActiveTab && o(this, jn).broadcastToPeers("spotlight", [s.id], {
18194
18194
  userId: o(this, Fr).userId,
18195
18195
  currentTab: this.meta.selfActiveTab
18196
18196
  });
@@ -18260,7 +18260,7 @@ const qv = (Mf = class {
18260
18260
  p.debug(`${e} Received transcript for peer ${n} - ${a}: ${c}`);
18261
18261
  });
18262
18262
  }
18263
- }, Fr = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Qd = /* @__PURE__ */ new WeakMap(), Mf);
18263
+ }, Fr = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Qd = /* @__PURE__ */ new WeakMap(), Mf);
18264
18264
  let uh = qv;
18265
18265
  Hv([
18266
18266
  h.trace("MetaController.setupEvents")
@@ -18268,23 +18268,23 @@ Hv([
18268
18268
  Hv([
18269
18269
  h.trace("MetaController.init")
18270
18270
  ], uh, "init", 1);
18271
- var A0 = Object.defineProperty, I0 = Object.getOwnPropertyDescriptor, vi = (s, e, t, r) => {
18271
+ var A0 = Object.defineProperty, I0 = Object.getOwnPropertyDescriptor, yi = (s, e, t, r) => {
18272
18272
  for (var i = r > 1 ? void 0 : r ? I0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
18273
18273
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
18274
18274
  return r && i && A0(e, t, i), i;
18275
- }, as, jn, de, Qo, Bs, Ps, Xo, Sp, Gn, fd;
18275
+ }, as, Gn, de, Qo, Bs, Ps, Xo, Sp, Wn, fd;
18276
18276
  class br extends Xt {
18277
18277
  constructor(t, r, i, n, a) {
18278
18278
  super();
18279
18279
  v(this, Xo);
18280
- v(this, Gn);
18280
+ v(this, Wn);
18281
18281
  v(this, as, void 0);
18282
- v(this, jn, void 0);
18282
+ v(this, Gn, void 0);
18283
18283
  v(this, de, void 0);
18284
18284
  v(this, Qo, void 0);
18285
18285
  v(this, Bs, void 0);
18286
18286
  v(this, Ps, void 0);
18287
- T(this, Ps, t), T(this, as, n), T(this, jn, a), T(this, de, r), T(this, Qo, i), T(this, Bs, []), this.setupEvents();
18287
+ T(this, Ps, t), T(this, as, n), T(this, Gn, a), T(this, de, r), T(this, Qo, i), T(this, Bs, []), this.setupEvents();
18288
18288
  }
18289
18289
  get status() {
18290
18290
  return o(this, Ps).getValue("stageStatus");
@@ -18342,17 +18342,17 @@ class br extends Xt {
18342
18342
  "2006"
18343
18343
  );
18344
18344
  if (o(this, de).permissions.stageAccess === K.Allowed) {
18345
- F(this, Gn, fd).call(this, "ACCEPTED_TO_JOIN_STAGE");
18345
+ F(this, Wn, fd).call(this, "ACCEPTED_TO_JOIN_STAGE");
18346
18346
  return;
18347
18347
  }
18348
- o(this, as).requestAccess(), F(this, Gn, fd).call(this, "REQUESTED_TO_JOIN_STAGE");
18348
+ o(this, as).requestAccess(), F(this, Wn, fd).call(this, "REQUESTED_TO_JOIN_STAGE");
18349
18349
  });
18350
18350
  }
18351
18351
  cancelRequestAccess() {
18352
18352
  return u(this, null, function* () {
18353
18353
  if (!o(this, de).permissions.stageEnabled)
18354
18354
  throw p.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
18355
- o(this, as).cancelRequestAccess(), F(this, Gn, fd).call(this, "OFF_STAGE");
18355
+ o(this, as).cancelRequestAccess(), F(this, Wn, fd).call(this, "OFF_STAGE");
18356
18356
  });
18357
18357
  }
18358
18358
  grantAccess(t) {
@@ -18386,8 +18386,8 @@ class br extends Xt {
18386
18386
  if (this.status !== "ACCEPTED_TO_JOIN_STAGE" || o(this, de).permissions.stageAccess === K.NotAllowed)
18387
18387
  throw new w(`Unable to join stage you are currently ${this.status}`, "2006");
18388
18388
  if (yield o(this, as).joinStage(), t === Dt.Livestream) {
18389
- yield o(this, jn).joinRoom(o(this, de));
18390
- const { peers: r } = yield o(this, jn).getStagePeers();
18389
+ yield o(this, Gn).joinRoom(o(this, de));
18390
+ const { peers: r } = yield o(this, Gn).getStagePeers();
18391
18391
  A.emit(I.SOCKET_PEERS, r);
18392
18392
  }
18393
18393
  o(this, Ps).setValue("stageStatus", "ON_STAGE"), o(this, de).audioEnabled && o(this, Xo, Sp).shareMic(o(this, de).audioTrack), o(this, de).videoEnabled && o(this, Xo, Sp).shareWebcam(o(this, de).videoTrack);
@@ -18417,35 +18417,35 @@ class br extends Xt {
18417
18417
  });
18418
18418
  }
18419
18419
  }
18420
- as = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakSet(), Sp = function() {
18420
+ as = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakSet(), Sp = function() {
18421
18421
  return o(this, Ps).getValue("roomNodeClient");
18422
- }, Gn = /* @__PURE__ */ new WeakSet(), fd = function(t) {
18422
+ }, Wn = /* @__PURE__ */ new WeakSet(), fd = function(t) {
18423
18423
  return u(this, null, function* () {
18424
18424
  this.status !== t && o(this, Ps).setValue("stageStatus", t);
18425
18425
  });
18426
18426
  };
18427
- vi([
18427
+ yi([
18428
18428
  h.trace("DyteStage.getStageRequests")
18429
18429
  ], br.prototype, "getAccessRequests", 1);
18430
- vi([
18430
+ yi([
18431
18431
  h.trace("DyteStage.requestAccess")
18432
18432
  ], br.prototype, "requestAccess", 1);
18433
- vi([
18433
+ yi([
18434
18434
  h.trace("DyteStage.cancelRequestAccess")
18435
18435
  ], br.prototype, "cancelRequestAccess", 1);
18436
- vi([
18436
+ yi([
18437
18437
  h.trace("DyteStage.grantAccess")
18438
18438
  ], br.prototype, "grantAccess", 1);
18439
- vi([
18439
+ yi([
18440
18440
  h.trace("DyteStage.denyAccess")
18441
18441
  ], br.prototype, "denyAccess", 1);
18442
- vi([
18442
+ yi([
18443
18443
  h.trace("DyteStage.joinStage")
18444
18444
  ], br.prototype, "join", 1);
18445
- vi([
18445
+ yi([
18446
18446
  h.trace("DyteStage.leaveStage")
18447
18447
  ], br.prototype, "leave", 1);
18448
- vi([
18448
+ yi([
18449
18449
  h.trace("DyteStage.kick")
18450
18450
  ], br.prototype, "kick", 1);
18451
18451
  function D0(s) {
@@ -18471,12 +18471,12 @@ var M0 = Object.defineProperty, O0 = Object.getOwnPropertyDescriptor, N0 = (s, e
18471
18471
  for (var i = r > 1 ? void 0 : r ? O0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
18472
18472
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
18473
18473
  return r && i && M0(e, t, i), i;
18474
- }, Br, Ni, Hr, Zo, or;
18474
+ }, Br, Li, Hr, Zo, or;
18475
18475
  class jv {
18476
18476
  constructor(e, t, r, i, n) {
18477
18477
  f(this, "stage");
18478
18478
  v(this, Br, void 0);
18479
- v(this, Ni, void 0);
18479
+ v(this, Li, void 0);
18480
18480
  v(this, Hr, void 0);
18481
18481
  v(this, Zo, 0);
18482
18482
  v(this, or, void 0);
@@ -18486,7 +18486,7 @@ class jv {
18486
18486
  n,
18487
18487
  t,
18488
18488
  r
18489
- ), T(this, Hr, t), T(this, Br, i), T(this, Ni, n), this.setupEvents();
18489
+ ), T(this, Hr, t), T(this, Br, i), T(this, Li, n), this.setupEvents();
18490
18490
  }
18491
18491
  setupEvents() {
18492
18492
  o(this, or).subscribe("stageStatus", (e) => {
@@ -18509,7 +18509,7 @@ class jv {
18509
18509
  );
18510
18510
  }
18511
18511
  getCurrentStageRequests() {
18512
- return o(this, Ni).joined.toArray().filter(
18512
+ return o(this, Li).joined.toArray().filter(
18513
18513
  (t) => t.stageStatus === "REQUESTED_TO_JOIN_STAGE"
18514
18514
  ).map((t) => ({
18515
18515
  displayName: t.name,
@@ -18542,7 +18542,7 @@ class jv {
18542
18542
  }
18543
18543
  peerStageStatusHandler(e) {
18544
18544
  return u(this, null, function* () {
18545
- const t = o(this, Ni).joined.get(e.peerId), r = o(this, Ni).viewMode === "ACTIVE_GRID";
18545
+ const t = o(this, Li).joined.get(e.peerId), r = o(this, Li).viewMode === "ACTIVE_GRID";
18546
18546
  if (!t) {
18547
18547
  p.warn("err::peerStageStatusUpdate: participant not found");
18548
18548
  return;
@@ -18570,7 +18570,7 @@ class jv {
18570
18570
  });
18571
18571
  }
18572
18572
  }
18573
- Br = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap();
18573
+ Br = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap();
18574
18574
  N0([
18575
18575
  h.trace("DyteStage.setupEvents")
18576
18576
  ], jv.prototype, "setupEvents", 1);
@@ -18593,7 +18593,7 @@ const Ue = {
18593
18593
  stageStatusUpdate: 25,
18594
18594
  peerStageStatusUpdate: 26
18595
18595
  };
18596
- var ft, Wt, Wn, Jn, cr, Kn, Li, zn, Of;
18596
+ var ft, Wt, Jn, Kn, cr, zn, xi, Yn, Of;
18597
18597
  let Yt = (Of = class extends ja {
18598
18598
  constructor(e, {
18599
18599
  baseURL: t,
@@ -18618,8 +18618,8 @@ let Yt = (Of = class extends ja {
18618
18618
  f(this, "id");
18619
18619
  f(this, "name");
18620
18620
  v(this, Wt, void 0);
18621
- v(this, Wn, void 0);
18622
18621
  v(this, Jn, void 0);
18622
+ v(this, Kn, void 0);
18623
18623
  f(this, "organizationId");
18624
18624
  f(this, "picture");
18625
18625
  f(this, "private");
@@ -18630,13 +18630,13 @@ let Yt = (Of = class extends ja {
18630
18630
  f(this, "updatedAt");
18631
18631
  v(this, cr, void 0);
18632
18632
  f(this, "config");
18633
- v(this, Kn, void 0);
18633
+ v(this, zn, void 0);
18634
18634
  f(this, "active");
18635
18635
  f(this, "iframes");
18636
18636
  f(this, "enabledBy");
18637
- v(this, Li, void 0);
18638
- v(this, zn, void 0);
18639
- T(this, Li, e), this.baseURL = t, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = a, T(this, Wt, R), this.organizationId = c, this.picture = d, this.private = l, this.published = g, this.staggered = m, this.tags = y, this.type = _, this.updatedAt = new Date(P), this.active = false, this.iframes = /* @__PURE__ */ new Map(), T(this, ft, b), T(this, Wn, L), T(this, Jn, B), this.enabledBy = "", T(this, zn, H);
18637
+ v(this, xi, void 0);
18638
+ v(this, Yn, void 0);
18639
+ T(this, xi, e), this.baseURL = t, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = a, T(this, Wt, R), this.organizationId = c, this.picture = d, this.private = l, this.published = g, this.staggered = m, this.tags = y, this.type = _, this.updatedAt = new Date(P), this.active = false, this.iframes = /* @__PURE__ */ new Map(), T(this, ft, b), T(this, Jn, L), T(this, Kn, B), this.enabledBy = "", T(this, Yn, H);
18640
18640
  }
18641
18641
  sendIframeEvent(e) {
18642
18642
  this.iframes.size && this.iframes.forEach((t) => {
@@ -18728,7 +18728,7 @@ let Yt = (Of = class extends ja {
18728
18728
  messagePayload: c,
18729
18729
  peerIds: d
18730
18730
  } = r;
18731
- if (!o(this, Jn)) {
18731
+ if (!o(this, Kn)) {
18732
18732
  this.sendIframeEvent({
18733
18733
  type: Ue.chatMessage,
18734
18734
  uuid: t.uuid,
@@ -18737,7 +18737,7 @@ let Yt = (Of = class extends ja {
18737
18737
  return;
18738
18738
  }
18739
18739
  try {
18740
- yield o(this, Jn).sendMessage(c, d), this.sendIframeEvent({
18740
+ yield o(this, Kn).sendMessage(c, d), this.sendIframeEvent({
18741
18741
  type: Ue.chatMessage,
18742
18742
  uuid: t.uuid,
18743
18743
  payload: { success: true }
@@ -18761,7 +18761,7 @@ let Yt = (Of = class extends ja {
18761
18761
  isHidden: o(this, Wt).permissions.hiddenParticipant,
18762
18762
  stageStatus: o(this, Wt).stageStatus
18763
18763
  });
18764
- d ? (c = o(this, Wn).joined.get(r.peerId), o(this, Wt).id === d && (c = l)) : c = l, this.sendIframeEvent({
18764
+ d ? (c = o(this, Jn).joined.get(r.peerId), o(this, Wt).id === d && (c = l)) : c = l, this.sendIframeEvent({
18765
18765
  type: Ue.getPeer,
18766
18766
  payload: { peer: c && Ld(c) },
18767
18767
  uuid: t.uuid
@@ -18769,7 +18769,7 @@ let Yt = (Of = class extends ja {
18769
18769
  break;
18770
18770
  }
18771
18771
  case Ue.getPeers: {
18772
- const c = o(this, Wn).joined.toArray().map((d) => Ld(d));
18772
+ const c = o(this, Jn).joined.toArray().map((d) => Ld(d));
18773
18773
  this.sendIframeEvent({
18774
18774
  type: Ue.getPeers,
18775
18775
  payload: { peers: c },
@@ -18788,7 +18788,7 @@ let Yt = (Of = class extends ja {
18788
18788
  case Ue.getDisplayTitle: {
18789
18789
  this.sendIframeEvent({
18790
18790
  type: Ue.getDisplayTitle,
18791
- payload: { displayTitle: o(this, zn) },
18791
+ payload: { displayTitle: o(this, Yn) },
18792
18792
  uuid: t.uuid
18793
18793
  });
18794
18794
  break;
@@ -18796,7 +18796,7 @@ let Yt = (Of = class extends ja {
18796
18796
  case Ue.getRoomName: {
18797
18797
  this.sendIframeEvent({
18798
18798
  type: Ue.getRoomName,
18799
- payload: { roomName: o(this, Li).getValue("meetingId") },
18799
+ payload: { roomName: o(this, xi).getValue("meetingId") },
18800
18800
  uuid: t.uuid
18801
18801
  });
18802
18802
  break;
@@ -18830,7 +18830,7 @@ let Yt = (Of = class extends ja {
18830
18830
  }
18831
18831
  addPluginView(e, t = "default") {
18832
18832
  var a;
18833
- if (!o(this, Kn))
18833
+ if (!o(this, zn))
18834
18834
  throw p.error(
18835
18835
  "DytePlugin::addPluginView::no_auth_token_set_for_plugin"
18836
18836
  ), new w("No auth token set for plugin.", "0602");
@@ -18838,12 +18838,12 @@ let Yt = (Of = class extends ja {
18838
18838
  throw p.error("DytePlugin::addPluginView::iframe_was_not_provided"), new w("Iframe was not provided.", "0603");
18839
18839
  this.removePluginView(t);
18840
18840
  const r = e, i = new URL(this.baseURL), n = {
18841
- auth: o(this, Kn),
18841
+ auth: o(this, zn),
18842
18842
  parent: navigator.isReactNative ? this.baseURL : window.location.origin,
18843
- backend: o(this, Li).getValue("apiBase"),
18843
+ backend: o(this, xi).getValue("apiBase"),
18844
18844
  pluginId: this.id,
18845
- roomName: (a = o(this, Li).getValue("meetingId")) != null ? a : "",
18846
- displayTitle: o(this, zn)
18845
+ roomName: (a = o(this, xi).getValue("meetingId")) != null ? a : "",
18846
+ displayTitle: o(this, Yn)
18847
18847
  };
18848
18848
  if (Object.keys(n).forEach((c) => {
18849
18849
  i.searchParams.set(c, n[c]);
@@ -18878,7 +18878,7 @@ let Yt = (Of = class extends ja {
18878
18878
  activateForSelf() {
18879
18879
  return u(this, null, function* () {
18880
18880
  const e = ut(), t = yield e.authorizePlugin(this.id);
18881
- T(this, Kn, t), T(this, cr, new Date());
18881
+ T(this, zn, t), T(this, cr, new Date());
18882
18882
  try {
18883
18883
  const r = yield e.getPluginConfig(this.baseURL);
18884
18884
  this.config = r;
@@ -18925,7 +18925,7 @@ let Yt = (Of = class extends ja {
18925
18925
  }), T(this, cr, void 0)));
18926
18926
  });
18927
18927
  }
18928
- }, ft = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Of);
18928
+ }, ft = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Of);
18929
18929
  xs([
18930
18930
  h.trace("DytePlugin.sendIframeEvent")
18931
18931
  ], Yt.prototype, "sendIframeEvent", 1);
@@ -18960,7 +18960,7 @@ xs([
18960
18960
  Yt = xs([
18961
18961
  _t("0600")
18962
18962
  ], Yt);
18963
- var We, xi;
18963
+ var We, Vi;
18964
18964
  class Gv extends Map {
18965
18965
  constructor(t) {
18966
18966
  const {
@@ -18970,11 +18970,11 @@ class Gv extends Map {
18970
18970
  } = t;
18971
18971
  super();
18972
18972
  v(this, We, void 0);
18973
- v(this, xi, void 0);
18973
+ v(this, Vi, void 0);
18974
18974
  f(this, "onAddEvent");
18975
18975
  f(this, "onDeleteEvent");
18976
18976
  f(this, "onClearEvent");
18977
- T(this, We, new ja()), this.onAddEvent = r, this.onDeleteEvent = i, this.onClearEvent = n, T(this, xi, /* @__PURE__ */ new Map());
18977
+ T(this, We, new ja()), this.onAddEvent = r, this.onDeleteEvent = i, this.onClearEvent = n, T(this, Vi, /* @__PURE__ */ new Map());
18978
18978
  }
18979
18979
  emit(t, ...r) {
18980
18980
  return o(this, We).emit(t, ...r);
@@ -19025,19 +19025,19 @@ class Gv extends Map {
19025
19025
  const n = super.set(t, r), a = (c, ...d) => {
19026
19026
  this.emit(c, r, ...d);
19027
19027
  };
19028
- return o(this, xi).set(t, a), r.on("*", a), i && o(this, We).emit(this.onAddEvent, r), n;
19028
+ return o(this, Vi).set(t, a), r.on("*", a), i && o(this, We).emit(this.onAddEvent, r), n;
19029
19029
  }
19030
19030
  delete(t, r = true, i = false) {
19031
19031
  const n = this.get(t);
19032
19032
  if (!n)
19033
19033
  return false;
19034
- n.removeListener("*", o(this, xi).get(t));
19034
+ n.removeListener("*", o(this, Vi).get(t));
19035
19035
  const a = super.delete(t);
19036
19036
  return i && n.removeAllListeners(), r && o(this, We).emit(this.onDeleteEvent, n), a;
19037
19037
  }
19038
19038
  clear(t = true, r = false) {
19039
19039
  this.forEach((n) => {
19040
- n.removeListener("*", o(this, xi).get(n.id)), r && n.removeAllListeners();
19040
+ n.removeListener("*", o(this, Vi).get(n.id)), r && n.removeAllListeners();
19041
19041
  });
19042
19042
  const i = super.clear();
19043
19043
  return t && o(this, We).emit(this.onClearEvent), i;
@@ -19046,7 +19046,7 @@ class Gv extends Map {
19046
19046
  return Array.from(this.values());
19047
19047
  }
19048
19048
  }
19049
- We = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap();
19049
+ We = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap();
19050
19050
  var V0 = Object.defineProperty, U0 = Object.getOwnPropertyDescriptor, Wv = (s, e, t, r) => {
19051
19051
  for (var i = r > 1 ? void 0 : r ? U0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
19052
19052
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
@@ -19091,14 +19091,14 @@ var H0 = Object.defineProperty, q0 = Object.getOwnPropertyDescriptor, qc = (s, e
19091
19091
  for (var i = r > 1 ? void 0 : r ? q0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
19092
19092
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
19093
19093
  return r && i && H0(e, t, i), i;
19094
- }, os, Yn, ec, Nf;
19094
+ }, os, Qn, ec, Nf;
19095
19095
  const Jv = (Nf = class {
19096
19096
  constructor(s, e, t, r) {
19097
19097
  f(this, "plugins");
19098
19098
  v(this, os, void 0);
19099
- v(this, Yn, void 0);
19099
+ v(this, Qn, void 0);
19100
19100
  v(this, ec, void 0);
19101
- T(this, os, e), T(this, Yn, t), T(this, ec, s), this.plugins = r, this.setupEvents();
19101
+ T(this, os, e), T(this, Qn, t), T(this, ec, s), this.plugins = r, this.setupEvents();
19102
19102
  }
19103
19103
  static init(s, e, t, r, i, n, a, c) {
19104
19104
  return u(this, null, function* () {
@@ -19259,7 +19259,7 @@ const Jv = (Nf = class {
19259
19259
  storeName: s.storeName
19260
19260
  });
19261
19261
  })
19262
- ), o(this, Yn).on(
19262
+ ), o(this, Qn).on(
19263
19263
  Le.sendMessageToPeers,
19264
19264
  (s) => {
19265
19265
  const e = zt == null ? void 0 : zt.formatSocketServiceMessage(
@@ -19267,7 +19267,7 @@ const Jv = (Nf = class {
19267
19267
  );
19268
19268
  this.broadcastIframeEvent(Ue.chatMessage, { message: e });
19269
19269
  }
19270
- ), o(this, Yn).on(
19270
+ ), o(this, Qn).on(
19271
19271
  Le.sendMessageToRoom,
19272
19272
  (s) => {
19273
19273
  const e = zt == null ? void 0 : zt.formatSocketServiceMessage(
@@ -19286,7 +19286,7 @@ const Jv = (Nf = class {
19286
19286
  this.broadcastIframeEvent(Ue.stageStatusUpdate, s);
19287
19287
  });
19288
19288
  }
19289
- }, os = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), Nf);
19289
+ }, os = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), Nf);
19290
19290
  let Ka = Jv;
19291
19291
  qc([
19292
19292
  h.trace("PluginController.getRoomPlugins")
@@ -19380,16 +19380,16 @@ var G0 = Object.defineProperty, W0 = Object.getOwnPropertyDescriptor, za = (s, e
19380
19380
  for (var i = r > 1 ? void 0 : r ? W0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
19381
19381
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
19382
19382
  return r && i && G0(e, t, i), i;
19383
- }, Qn, tc, Xn, gd, Lf;
19384
- let fi = (Lf = class extends Xt {
19383
+ }, Xn, tc, Zn, gd, Lf;
19384
+ let gi = (Lf = class extends Xt {
19385
19385
  constructor(e, t) {
19386
19386
  super();
19387
- v(this, Xn);
19388
- v(this, Qn, void 0);
19387
+ v(this, Zn);
19388
+ v(this, Xn, void 0);
19389
19389
  v(this, tc, void 0);
19390
19390
  f(this, "recordingPeerIds", []);
19391
19391
  f(this, "recordings", []);
19392
- T(this, tc, e), T(this, Qn, t);
19392
+ T(this, tc, e), T(this, Xn, t);
19393
19393
  }
19394
19394
  get recordingState() {
19395
19395
  return this.recordings.some((e) => e.state === "RECORDING") ? "RECORDING" : this.recordings.some((e) => e.state === "PAUSED") ? "PAUSED" : this.recordings.some((e) => e.state === "STARTING") ? "STARTING" : this.recordings.some((e) => e.state === "STOPPING") ? "STOPPING" : "IDLE";
@@ -19399,7 +19399,7 @@ let fi = (Lf = class extends Xt {
19399
19399
  }
19400
19400
  start(e) {
19401
19401
  return u(this, null, function* () {
19402
- if (!o(this, Qn).permissions.canRecord)
19402
+ if (!o(this, Xn).permissions.canRecord)
19403
19403
  throw p.error("DyteRecording::start::permission_denied"), new w("User does not have permission to start recording", "1001");
19404
19404
  if ((e == null ? void 0 : e.allowMultiple) !== true && (this.recordingState === "STARTING" || this.recordingState === "RECORDING" || this.recordingState === "STOPPING"))
19405
19405
  throw p.error("DyteRecording::start::recording_in_progress", {
@@ -19426,22 +19426,22 @@ let fi = (Lf = class extends Xt {
19426
19426
  }
19427
19427
  stop(e) {
19428
19428
  return u(this, null, function* () {
19429
- yield F(this, Xn, gd).call(this, "stop", ["RECORDING", "PAUSED"], e);
19429
+ yield F(this, Zn, gd).call(this, "stop", ["RECORDING", "PAUSED"], e);
19430
19430
  });
19431
19431
  }
19432
19432
  pause(e) {
19433
19433
  return u(this, null, function* () {
19434
- yield F(this, Xn, gd).call(this, "pause", ["RECORDING"], e);
19434
+ yield F(this, Zn, gd).call(this, "pause", ["RECORDING"], e);
19435
19435
  });
19436
19436
  }
19437
19437
  resume(e) {
19438
19438
  return u(this, null, function* () {
19439
- yield F(this, Xn, gd).call(this, "resume", ["PAUSED"], e);
19439
+ yield F(this, Zn, gd).call(this, "resume", ["PAUSED"], e);
19440
19440
  });
19441
19441
  }
19442
- }, Qn = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakSet(), gd = function(e, t, r) {
19442
+ }, Xn = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakSet(), gd = function(e, t, r) {
19443
19443
  return u(this, null, function* () {
19444
- if (!o(this, Qn).permissions.canRecord)
19444
+ if (!o(this, Xn).permissions.canRecord)
19445
19445
  throw p.error("DyteRecording::stop::permission_denied"), new w("User does not have permission to stop recording", "1001");
19446
19446
  let i = [];
19447
19447
  if (r !== void 0) {
@@ -19474,22 +19474,22 @@ let fi = (Lf = class extends Xt {
19474
19474
  }, Lf);
19475
19475
  za([
19476
19476
  h.trace("DyteRecording.updateRecordings")
19477
- ], fi.prototype, "updateRecordings", 1);
19477
+ ], gi.prototype, "updateRecordings", 1);
19478
19478
  za([
19479
19479
  h.trace("DyteRecording.start")
19480
- ], fi.prototype, "start", 1);
19480
+ ], gi.prototype, "start", 1);
19481
19481
  za([
19482
19482
  h.trace("DyteRecording.stop")
19483
- ], fi.prototype, "stop", 1);
19483
+ ], gi.prototype, "stop", 1);
19484
19484
  za([
19485
19485
  h.trace("DyteRecording.stop")
19486
- ], fi.prototype, "pause", 1);
19486
+ ], gi.prototype, "pause", 1);
19487
19487
  za([
19488
19488
  h.trace("DyteRecording.stop")
19489
- ], fi.prototype, "resume", 1);
19490
- fi = za([
19489
+ ], gi.prototype, "resume", 1);
19490
+ gi = za([
19491
19491
  _t("1000")
19492
- ], fi);
19492
+ ], gi);
19493
19493
  var J0 = Object.defineProperty, K0 = Object.getOwnPropertyDescriptor, z0 = (s, e, t, r) => {
19494
19494
  for (var i = r > 1 ? void 0 : r ? K0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
19495
19495
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
@@ -19500,18 +19500,18 @@ class Kv {
19500
19500
  f(this, "recording");
19501
19501
  f(this, "room");
19502
19502
  v(this, Xd, void 0);
19503
- T(this, Xd, e), this.recording = new fi(e, t), this.room = r, this.setupEvents();
19503
+ T(this, Xd, e), this.recording = new gi(e, t), this.room = r, this.setupEvents();
19504
19504
  }
19505
19505
  getRecordingTypeFromProtoType(e) {
19506
19506
  let t;
19507
19507
  switch (e) {
19508
- case cn.BROWSER:
19508
+ case dn.BROWSER:
19509
19509
  t = "BROWSER";
19510
19510
  break;
19511
- case cn.COMPOSITE:
19511
+ case dn.COMPOSITE:
19512
19512
  t = "COMPOSITE";
19513
19513
  break;
19514
- case cn.TRACK:
19514
+ case dn.TRACK:
19515
19515
  t = "TRACK";
19516
19516
  break;
19517
19517
  default:
@@ -20048,15 +20048,15 @@ function oO(s, e) {
20048
20048
  return n.stream.getAudioTracks()[0];
20049
20049
  });
20050
20050
  }
20051
- var Vi;
20051
+ var Ui;
20052
20052
  class cO {
20053
20053
  constructor() {
20054
- v(this, Vi, void 0);
20054
+ v(this, Ui, void 0);
20055
20055
  }
20056
20056
  terminateMiddlewareWebWorker() {
20057
- if (o(this, Vi))
20057
+ if (o(this, Ui))
20058
20058
  try {
20059
- clearInterval$1(o(this, Vi)), T(this, Vi, void 0);
20059
+ clearInterval$1(o(this, Ui)), T(this, Ui, void 0);
20060
20060
  } catch (e) {
20061
20061
  p.debug("WorkerTimers::terminateMiddlewareWebWorker::failed");
20062
20062
  }
@@ -20107,7 +20107,7 @@ class cO {
20107
20107
  a.addEventListener(
20108
20108
  "play",
20109
20109
  () => {
20110
- i.width = a.width || t.getSettings().width, i.height = a.width || t.getSettings().height, T(this, Vi, setInterval$1(
20110
+ i.width = a.width || t.getSettings().width, i.height = a.width || t.getSettings().height, T(this, Ui, setInterval$1(
20111
20111
  l,
20112
20112
  50
20113
20113
  ));
@@ -20121,7 +20121,7 @@ class cO {
20121
20121
  });
20122
20122
  }
20123
20123
  }
20124
- Vi = /* @__PURE__ */ new WeakMap();
20124
+ Ui = /* @__PURE__ */ new WeakMap();
20125
20125
  const pf = {
20126
20126
  gross: { width: { ideal: 192 }, height: { ideal: 144 } },
20127
20127
  qvga: { width: { ideal: 384 }, height: { ideal: 288 } },
@@ -20198,7 +20198,7 @@ const pf = {
20198
20198
  }), t[n][1];
20199
20199
  };
20200
20200
  var ve = /* @__PURE__ */ ((s) => (s.WEBCAM = "webcam", s.WEBCAM_BACKUP = "webcam_backup", s.MIC = "mic", s.SCREENSHARE_VIDEO = "screenshare_video", s.SCREENSHARE_AUDIO = "screenshare_audio", s))(ve || {});
20201
- const uO = qC(), Sn = Ds(
20201
+ const uO = qC(), En = Ds(
20202
20202
  uO.config.media
20203
20203
  );
20204
20204
  function pO(s) {
@@ -20209,14 +20209,14 @@ function pO(s) {
20209
20209
  enableHighBitrate: (r = s.audio.enableHighBitrate) != null ? r : false
20210
20210
  }), e.video = s.video.quality, e;
20211
20211
  }
20212
- var Ui, el;
20212
+ var $i, el;
20213
20213
  class hO {
20214
20214
  constructor(e, t) {
20215
- v(this, Ui, void 0);
20215
+ v(this, $i, void 0);
20216
20216
  v(this, el, void 0);
20217
20217
  f(this, "getScreenShareConstraints", () => {
20218
20218
  var l, g, m, y, _, P, b, R, L, B, H;
20219
- const e2 = (l = o(this, Ui)) == null ? void 0 : l.screenshare, t2 = (m = (g = e2 == null ? void 0 : e2.width) == null ? void 0 : g.max) != null ? m : 1920, r = (_ = (y = e2 == null ? void 0 : e2.height) == null ? void 0 : y.max) != null ? _ : 1080, i = (b = (P = e2 == null ? void 0 : e2.frameRate) == null ? void 0 : P.max) != null ? b : 5;
20219
+ const e2 = (l = o(this, $i)) == null ? void 0 : l.screenshare, t2 = (m = (g = e2 == null ? void 0 : e2.width) == null ? void 0 : g.max) != null ? m : 1920, r = (_ = (y = e2 == null ? void 0 : e2.height) == null ? void 0 : y.max) != null ? _ : 1080, i = (b = (P = e2 == null ? void 0 : e2.frameRate) == null ? void 0 : P.max) != null ? b : 5;
20220
20220
  let n = (L = (R = e2 == null ? void 0 : e2.frameRate) == null ? void 0 : R.ideal) != null ? L : 5;
20221
20221
  const a = e2 == null ? void 0 : e2.displaySurface, c = e2 == null ? void 0 : e2.selfBrowserSurface;
20222
20222
  Y.getValue(se.VAL_MIN_FRAMERATE) && (n = parseInt(
@@ -20244,7 +20244,7 @@ class hO {
20244
20244
  });
20245
20245
  f(this, "getAudioConstraints", (e2) => {
20246
20246
  var n, a, c, d, l, g, m, y;
20247
- const t2 = {}, r = (n = o(this, Ui)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
20247
+ const t2 = {}, r = (n = o(this, $i)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
20248
20248
  return Re.isFirefox() || Re.isWebKitBased() ? (t2.audio = {
20249
20249
  deviceId: e2,
20250
20250
  autoGainControl: (a = r == null ? void 0 : r.autoGainControl) != null ? a : true,
@@ -20263,7 +20263,7 @@ class hO {
20263
20263
  });
20264
20264
  f(this, "getVideoConstraints", (e2) => {
20265
20265
  var n, a, c, d;
20266
- const t2 = {}, r = (n = o(this, Ui)) == null ? void 0 : n.video;
20266
+ const t2 = {}, r = (n = o(this, $i)) == null ? void 0 : n.video;
20267
20267
  let i = pf.vga;
20268
20268
  if (typeof r == "string" ? i = pf[r] : r !== void 0 && (i.height.ideal = r.height.ideal, i.width.ideal = r.width.ideal), i.frameRate = {
20269
20269
  ideal: (c = (a = i.frameRate) == null ? void 0 : a.ideal) != null ? c : 24
@@ -20275,13 +20275,13 @@ class hO {
20275
20275
  }
20276
20276
  return t2.video = i, typeof t2.video == "boolean" || (e2 ? t2.video.deviceId = { exact: e2 } : t2.video.facingMode = "user"), t2;
20277
20277
  });
20278
- T(this, el, e), T(this, Ui, t);
20278
+ T(this, el, e), T(this, $i, t);
20279
20279
  }
20280
20280
  getUpdatedVideoConstraints(e) {
20281
20281
  return e;
20282
20282
  }
20283
20283
  }
20284
- Ui = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap();
20284
+ $i = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap();
20285
20285
  class ju extends Error {
20286
20286
  constructor(t, r, i) {
20287
20287
  super(r);
@@ -20322,15 +20322,15 @@ var fO = Object.defineProperty, gO = Object.getOwnPropertyDescriptor, Vs = (s, e
20322
20322
  for (var i = r > 1 ? void 0 : r ? gO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
20323
20323
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
20324
20324
  return r && i && fO(e, t, i), i;
20325
- }, Zn, ds, tl, xf;
20325
+ }, ea, ds, tl, xf;
20326
20326
  let Qt = (xf = class extends mO {
20327
20327
  constructor(e, t) {
20328
20328
  super();
20329
20329
  f(this, "availableDevices");
20330
- v(this, Zn, void 0);
20330
+ v(this, ea, void 0);
20331
20331
  v(this, ds, void 0);
20332
20332
  v(this, tl, void 0);
20333
- T(this, tl, e), T(this, ds, new hO(e, t)), T(this, Zn, new AbortController()), this.availableDevices = [], this.getAvailableDevices();
20333
+ T(this, tl, e), T(this, ds, new hO(e, t)), T(this, ea, new AbortController()), this.availableDevices = [], this.getAvailableDevices();
20334
20334
  }
20335
20335
  get constraintsBuilder() {
20336
20336
  return o(this, ds);
@@ -20338,7 +20338,7 @@ let Qt = (xf = class extends mO {
20338
20338
  destruct() {
20339
20339
  return u(this, null, function* () {
20340
20340
  var e;
20341
- (e = o(this, Zn)) == null || e.abort();
20341
+ (e = o(this, ea)) == null || e.abort();
20342
20342
  });
20343
20343
  }
20344
20344
  handlePermissionErrors(e, t) {
@@ -20610,11 +20610,11 @@ let Qt = (xf = class extends mO {
20610
20610
  m.some((y) => y.kind === "audioinput") && J.devices("AUDIO", a == null ? void 0 : a.filter((y) => y.kind === "audioinput")), m.some((y) => y.kind === "videoinput") && J.devices("VIDEO", a == null ? void 0 : a.filter((y) => y.kind === "videoinput")), m.some((y) => y.kind === "audiooutput") && J.devices("SPEAKER", a == null ? void 0 : a.filter((y) => y.kind === "audiooutput")), e(t, d, false);
20611
20611
  }
20612
20612
  }),
20613
- { signal: o(this, Zn).signal }
20613
+ { signal: o(this, ea).signal }
20614
20614
  );
20615
20615
  });
20616
20616
  }
20617
- }, Zn = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), xf);
20617
+ }, ea = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), xf);
20618
20618
  Vs([
20619
20619
  h.trace("WebMediaInterface.destruct")
20620
20620
  ], Qt.prototype, "destruct", 1);
@@ -21068,20 +21068,20 @@ fh([
21068
21068
  h.trace("AudioMediaHandler.conditionallyChangeTrack")
21069
21069
  ], Xl.prototype, "conditionallyChangeTrack", 1);
21070
21070
  const bO = Xl;
21071
- var ea;
21071
+ var ta;
21072
21072
  class kO {
21073
21073
  constructor(e) {
21074
- v(this, ea, void 0);
21074
+ v(this, ta, void 0);
21075
21075
  f(this, "currentDevice");
21076
- T(this, ea, e);
21076
+ T(this, ta, e);
21077
21077
  }
21078
21078
  setupSpeaker(e) {
21079
21079
  return u(this, null, function* () {
21080
21080
  var i, n;
21081
- if (!(o(this, ea) instanceof Zv))
21081
+ if (!(o(this, ta) instanceof Zv))
21082
21082
  return;
21083
21083
  let t = e;
21084
- if (e || ([t] = (yield o(this, ea).getAvailableDevicesByKind(
21084
+ if (e || ([t] = (yield o(this, ta).getAvailableDevicesByKind(
21085
21085
  "audiooutput"
21086
21086
  )).filter((c) => !_p(c))), !t)
21087
21087
  throw new w("No speaker found", "1608");
@@ -21099,7 +21099,7 @@ class kO {
21099
21099
  });
21100
21100
  }
21101
21101
  }
21102
- ea = /* @__PURE__ */ new WeakMap();
21102
+ ta = /* @__PURE__ */ new WeakMap();
21103
21103
  const AO = kO;
21104
21104
  class IO extends ja {
21105
21105
  constructor(t) {
@@ -21172,15 +21172,15 @@ var MO = Object.defineProperty, OO = Object.getOwnPropertyDescriptor, Zl = (s, e
21172
21172
  for (var i = r > 1 ? void 0 : r ? OO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
21173
21173
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
21174
21174
  return r && i && MO(e, t, i), i;
21175
- }, ta, rc;
21175
+ }, sa, rc;
21176
21176
  class jc extends ty {
21177
21177
  constructor(t, r, i) {
21178
21178
  super(t, r, i);
21179
- v(this, ta, void 0);
21179
+ v(this, sa, void 0);
21180
21180
  v(this, rc, {
21181
21181
  disablePerFrameCanvasRendering: false
21182
21182
  });
21183
- T(this, ta, new cO());
21183
+ T(this, sa, new cO());
21184
21184
  }
21185
21185
  onSetDevice(t) {
21186
21186
  return u(this, null, function* () {
@@ -21232,7 +21232,7 @@ class jc extends ty {
21232
21232
  return;
21233
21233
  }
21234
21234
  try {
21235
- this.transformedMediaTrack = yield o(this, ta).getTransformedVideoTrack(
21235
+ this.transformedMediaTrack = yield o(this, sa).getTransformedVideoTrack(
21236
21236
  this.middlewares,
21237
21237
  this.mediaTrack,
21238
21238
  o(this, rc)
@@ -21268,7 +21268,7 @@ class jc extends ty {
21268
21268
  });
21269
21269
  }
21270
21270
  terminateMiddlewareWebWorker() {
21271
- o(this, ta).terminateMiddlewareWebWorker();
21271
+ o(this, sa).terminateMiddlewareWebWorker();
21272
21272
  }
21273
21273
  onTrackEnded() {
21274
21274
  return u(this, null, function* () {
@@ -21292,7 +21292,7 @@ class jc extends ty {
21292
21292
  });
21293
21293
  }
21294
21294
  }
21295
- ta = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap();
21295
+ sa = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap();
21296
21296
  Zl([
21297
21297
  h.trace("VideoMediaHandler.setTransformedTrack")
21298
21298
  ], jc.prototype, "setTransformedTrack", 1);
@@ -21314,16 +21314,16 @@ var LO = Object.defineProperty, xO = Object.getOwnPropertyDescriptor, gh = (s, e
21314
21314
  const ff = Ds(
21315
21315
  th()
21316
21316
  );
21317
- var Mt, $i, ic, sa, Vf;
21317
+ var Mt, Fi, ic, ra, Vf;
21318
21318
  const Eo = (Vf = class {
21319
21319
  constructor(s) {
21320
21320
  v(this, Mt, void 0);
21321
- v(this, $i, void 0);
21321
+ v(this, Fi, void 0);
21322
21322
  v(this, ic, void 0);
21323
- v(this, sa, void 0);
21323
+ v(this, ra, void 0);
21324
21324
  if (!s)
21325
21325
  throw new w("Could not load preset.", "0904");
21326
- T(this, Mt, s.config), T(this, ic, s.name), T(this, $i, s.ui || Ds(th().ui)), T(this, sa, s.permissions.plugins.config);
21326
+ T(this, Mt, s.config), T(this, ic, s.name), T(this, Fi, s.ui || Ds(th().ui)), T(this, ra, s.permissions.plugins.config);
21327
21327
  }
21328
21328
  static fromResponse(s) {
21329
21329
  return new Eo(s);
@@ -21364,7 +21364,7 @@ const Eo = (Vf = class {
21364
21364
  return {
21365
21365
  isEnabled: true,
21366
21366
  elements: {
21367
- logo: o(this, $i).designTokens.logo,
21367
+ logo: o(this, Fi).designTokens.logo,
21368
21368
  timer: true,
21369
21369
  title: true,
21370
21370
  participantCount: true,
@@ -21391,35 +21391,35 @@ const Eo = (Vf = class {
21391
21391
  return [];
21392
21392
  }
21393
21393
  get disabledPlugins() {
21394
- return Object.keys(o(this, sa)).filter((s) => o(this, sa)[s].disabled);
21394
+ return Object.keys(o(this, ra)).filter((s) => o(this, ra)[s].disabled);
21395
21395
  }
21396
21396
  get designTokens() {
21397
- return o(this, $i).designTokens;
21397
+ return o(this, Fi).designTokens;
21398
21398
  }
21399
21399
  get configDiff() {
21400
- return o(this, $i).configDiff;
21400
+ return o(this, Fi).configDiff;
21401
21401
  }
21402
21402
  get mediaConstraints() {
21403
21403
  var s, e, t, r, i, n, a, c, d, l, g, m, y, _, P, b, R, L, B, H, O, G, re, ce;
21404
21404
  return {
21405
21405
  audio: {
21406
- enableStereo: (r = (t = (e = (s = o(this, Mt)) == null ? void 0 : s.media) == null ? void 0 : e.audio) == null ? void 0 : t.enableStereo) != null ? r : Sn.audio.enableStereo,
21407
- enableHighBitrate: (c = (a = (n = (i = o(this, Mt)) == null ? void 0 : i.media) == null ? void 0 : n.audio) == null ? void 0 : a.enableHighBitrate) != null ? c : Sn.audio.enableHighBitrate
21406
+ enableStereo: (r = (t = (e = (s = o(this, Mt)) == null ? void 0 : s.media) == null ? void 0 : e.audio) == null ? void 0 : t.enableStereo) != null ? r : En.audio.enableStereo,
21407
+ enableHighBitrate: (c = (a = (n = (i = o(this, Mt)) == null ? void 0 : i.media) == null ? void 0 : n.audio) == null ? void 0 : a.enableHighBitrate) != null ? c : En.audio.enableHighBitrate
21408
21408
  },
21409
21409
  video: {
21410
- quality: (m = (g = (l = (d = o(this, Mt)) == null ? void 0 : d.media) == null ? void 0 : l.video) == null ? void 0 : g.quality) != null ? m : Sn.video.quality,
21411
- frameRate: (b = (P = (_ = (y = o(this, Mt)) == null ? void 0 : y.media) == null ? void 0 : _.video) == null ? void 0 : P.frameRate) != null ? b : Sn.video.frameRate
21410
+ quality: (m = (g = (l = (d = o(this, Mt)) == null ? void 0 : d.media) == null ? void 0 : l.video) == null ? void 0 : g.quality) != null ? m : En.video.quality,
21411
+ frameRate: (b = (P = (_ = (y = o(this, Mt)) == null ? void 0 : y.media) == null ? void 0 : _.video) == null ? void 0 : P.frameRate) != null ? b : En.video.frameRate
21412
21412
  },
21413
21413
  screenshare: {
21414
- quality: (H = (B = (L = (R = o(this, Mt)) == null ? void 0 : R.media) == null ? void 0 : L.screenshare) == null ? void 0 : B.quality) != null ? H : Sn.screenshare.quality,
21415
- frameRate: (ce = (re = (G = (O = o(this, Mt)) == null ? void 0 : O.media) == null ? void 0 : G.screenshare) == null ? void 0 : re.frameRate) != null ? ce : Sn.screenshare.frameRate
21414
+ quality: (H = (B = (L = (R = o(this, Mt)) == null ? void 0 : R.media) == null ? void 0 : L.screenshare) == null ? void 0 : B.quality) != null ? H : En.screenshare.quality,
21415
+ frameRate: (ce = (re = (G = (O = o(this, Mt)) == null ? void 0 : O.media) == null ? void 0 : G.screenshare) == null ? void 0 : re.frameRate) != null ? ce : En.screenshare.frameRate
21416
21416
  }
21417
21417
  };
21418
21418
  }
21419
21419
  get name() {
21420
21420
  return o(this, ic);
21421
21421
  }
21422
- }, Mt = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), Vf);
21422
+ }, Mt = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), Vf);
21423
21423
  let eu = Eo;
21424
21424
  gh([
21425
21425
  h.trace("DyteThemePreset.fromResponse")
@@ -21434,16 +21434,16 @@ var VO = Object.defineProperty, UO = Object.getOwnPropertyDescriptor, vh = (s, e
21434
21434
  for (var i = r > 1 ? void 0 : r ? UO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
21435
21435
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
21436
21436
  return r && i && VO(e, t, i), i;
21437
- }, ra;
21437
+ }, ia;
21438
21438
  class tu extends Xt {
21439
21439
  constructor(t) {
21440
21440
  super();
21441
- v(this, ra, void 0);
21441
+ v(this, ia, void 0);
21442
21442
  f(this, "state", "IDLE");
21443
21443
  f(this, "playbackUrl");
21444
21444
  f(this, "ingestionCredentials");
21445
21445
  f(this, "viewerCount");
21446
- T(this, ra, t), this.viewerCount = 0;
21446
+ T(this, ia, t), this.viewerCount = 0;
21447
21447
  }
21448
21448
  setLivestreamState(t) {
21449
21449
  const r = this.state;
@@ -21456,7 +21456,7 @@ class tu extends Xt {
21456
21456
  return u(this, arguments, function* (t = {
21457
21457
  manualIngestion: false
21458
21458
  }) {
21459
- if (!o(this, ra).permissions.canLivestream)
21459
+ if (!o(this, ia).permissions.canLivestream)
21460
21460
  throw p.error("DyteLivestream::start::permission_denied"), new w(
21461
21461
  "User does not have permission to start livestreaming",
21462
21462
  "1901"
@@ -21477,7 +21477,7 @@ class tu extends Xt {
21477
21477
  }
21478
21478
  stop() {
21479
21479
  return u(this, null, function* () {
21480
- if (!o(this, ra).permissions.canLivestream)
21480
+ if (!o(this, ia).permissions.canLivestream)
21481
21481
  throw p.error("DyteLivestream::stop::permission_denied"), new w(
21482
21482
  "User does not have permission to stop livestreaming",
21483
21483
  "1901"
@@ -21494,7 +21494,7 @@ class tu extends Xt {
21494
21494
  });
21495
21495
  }
21496
21496
  }
21497
- ra = /* @__PURE__ */ new WeakMap();
21497
+ ia = /* @__PURE__ */ new WeakMap();
21498
21498
  vh([
21499
21499
  h.trace("DyteLivestream.setLivestreamState")
21500
21500
  ], tu.prototype, "setLivestreamState", 1);
@@ -21508,14 +21508,14 @@ var $O = Object.defineProperty, FO = Object.getOwnPropertyDescriptor, BO = (s, e
21508
21508
  for (var i = r > 1 ? void 0 : r ? FO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
21509
21509
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
21510
21510
  return r && i && $O(e, t, i), i;
21511
- }, ia, na, dr;
21511
+ }, na, aa, dr;
21512
21512
  class sy {
21513
21513
  constructor(e, t) {
21514
21514
  f(this, "livestream");
21515
- v(this, ia, void 0);
21516
21515
  v(this, na, void 0);
21516
+ v(this, aa, void 0);
21517
21517
  v(this, dr, void 0);
21518
- T(this, na, e), this.livestream = new tu(e), T(this, dr, t), this.setupEvents();
21518
+ T(this, aa, e), this.livestream = new tu(e), T(this, dr, t), this.setupEvents();
21519
21519
  }
21520
21520
  fetchInitialLivestreamingState() {
21521
21521
  return u(this, null, function* () {
@@ -21534,7 +21534,7 @@ class sy {
21534
21534
  (e) => u(this, null, function* () {
21535
21535
  this.livestream.playbackUrl = e.playbackUrl, this.livestream.setLivestreamState("LIVESTREAMING");
21536
21536
  try {
21537
- o(this, na).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
21537
+ o(this, aa).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
21538
21538
  } catch (t) {
21539
21539
  p.error("Error: LivestreamController.fetchLivestream during startedLivestream re-fetch");
21540
21540
  }
@@ -21545,7 +21545,7 @@ class sy {
21545
21545
  if (e.manualIngest) {
21546
21546
  this.livestream.setLivestreamState("WAITING_ON_MANUAL_INGESTION");
21547
21547
  try {
21548
- o(this, na).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
21548
+ o(this, aa).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
21549
21549
  } catch (t) {
21550
21550
  p.error("Error: LivestreamController.fetchLivestream during livestreamingInvoked re-fetch");
21551
21551
  }
@@ -21564,10 +21564,10 @@ class sy {
21564
21564
  I.PEER_JOINED_INTERNAL,
21565
21565
  (e) => u(this, null, function* () {
21566
21566
  var t;
21567
- ((t = e.flags) == null ? void 0 : t.hiddenParticipant) === true && e.recorderType === "LIVESTREAMER" && (T(this, ia, e.id), this.livestream.setLivestreamState("LIVESTREAMING"));
21567
+ ((t = e.flags) == null ? void 0 : t.hiddenParticipant) === true && e.recorderType === "LIVESTREAMER" && (T(this, na, e.id), this.livestream.setLivestreamState("LIVESTREAMING"));
21568
21568
  })
21569
21569
  ), A.on(I.PEER_CLOSED, (e) => {
21570
- e.id === o(this, ia) && (T(this, ia, void 0), this.livestream.setLivestreamState("IDLE"));
21570
+ e.id === o(this, na) && (T(this, na, void 0), this.livestream.setLivestreamState("IDLE"));
21571
21571
  }), A.onAsync(I.LEAVE_MEDIA_ROOM, () => u(this, null, function* () {
21572
21572
  this.livestream.playbackUrl || (p.info("Fetching livestreaming state on leave stage"), yield this.fetchInitialLivestreamingState());
21573
21573
  })), A.on(I.SOCKET_SERVICE_ROOM_JOINED, () => u(this, null, function* () {
@@ -21579,7 +21579,7 @@ class sy {
21579
21579
  }));
21580
21580
  }
21581
21581
  }
21582
- ia = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap();
21582
+ na = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap();
21583
21583
  BO([
21584
21584
  h.trace("LivestreamController.setupEvents")
21585
21585
  ], sy.prototype, "setupEvents", 1);
@@ -21763,29 +21763,29 @@ var jO = Object.defineProperty, GO = Object.getOwnPropertyDescriptor, WO = (s, e
21763
21763
  for (var i = r > 1 ? void 0 : r ? GO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
21764
21764
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
21765
21765
  return r && i && jO(e, t, i), i;
21766
- }, Fi, Bi, nc, Pp, ac, Gr, rl, ny;
21766
+ }, Bi, Hi, nc, Pp, ac, Gr, rl, ny;
21767
21767
  class iy {
21768
21768
  constructor(e, t) {
21769
21769
  v(this, nc);
21770
21770
  v(this, rl);
21771
21771
  f(this, "stores", /* @__PURE__ */ new Map());
21772
- v(this, Fi, void 0);
21773
- v(this, Bi, "");
21772
+ v(this, Bi, void 0);
21773
+ v(this, Hi, "");
21774
21774
  v(this, ac, void 0);
21775
21775
  v(this, Gr, /* @__PURE__ */ new Map());
21776
- T(this, Fi, t), T(this, Bi, e.getValue("meetingId")), T(this, ac, e), F(this, rl, ny).call(this);
21776
+ T(this, Bi, t), T(this, Hi, e.getValue("meetingId")), T(this, ac, e), F(this, rl, ny).call(this);
21777
21777
  }
21778
21778
  create(e) {
21779
21779
  const t = new Bt(
21780
- { name: e, socketHandler: o(this, Fi), meetingId: o(this, Bi) }
21780
+ { name: e, socketHandler: o(this, Bi), meetingId: o(this, Hi) }
21781
21781
  );
21782
- return o(this, Fi).storeGetKeys(o(this, Bi), e, []), new Promise((i, n) => {
21782
+ return o(this, Bi).storeGetKeys(o(this, Hi), e, []), new Promise((i, n) => {
21783
21783
  const a = setTimeout(() => n(Error("Failed")), 3e3);
21784
21784
  o(this, Gr).set(e, { rejectTimeout: a, resolve: i, store: t });
21785
21785
  });
21786
21786
  }
21787
21787
  }
21788
- Fi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakSet(), Pp = function() {
21788
+ Bi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakSet(), Pp = function() {
21789
21789
  return o(this, ac).getValue("peerId");
21790
21790
  }, ac = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), rl = /* @__PURE__ */ new WeakSet(), ny = function() {
21791
21791
  [
@@ -21793,11 +21793,11 @@ Fi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), nc = /*
21793
21793
  z.storeGetKeys,
21794
21794
  z.storeDeleteKeys
21795
21795
  ].forEach((e) => {
21796
- o(this, Fi).on(
21796
+ o(this, Bi).on(
21797
21797
  e,
21798
21798
  (t) => u(this, null, function* () {
21799
21799
  var n, a;
21800
- if (t.pluginId !== o(this, Bi))
21800
+ if (t.pluginId !== o(this, Hi))
21801
21801
  return;
21802
21802
  const r = (n = t.storeItems) == null ? void 0 : n.map((c) => {
21803
21803
  var d;
@@ -21830,7 +21830,7 @@ Fi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), nc = /*
21830
21830
  WO([
21831
21831
  h.trace("DyteStoreManager.create")
21832
21832
  ], iy.prototype, "create", 1);
21833
- function bi(s) {
21833
+ function ki(s) {
21834
21834
  var e, t, r, i, n, a, c, d, l, g, m, y, _;
21835
21835
  return s ? {
21836
21836
  media: {
@@ -21865,14 +21865,14 @@ var JO = Object.defineProperty, KO = Object.getOwnPropertyDescriptor, Ht = (s, e
21865
21865
  return r && i && JO(e, t, i), i;
21866
21866
  };
21867
21867
  const zO = 0.8, YO = 1.2;
21868
- var aa, oa, Wr, Hi, _o, qi, Po, il, ay, lr, oc, Jr, ca, vd, ur, nl, cc, Cp, Uf;
21868
+ var oa, ca, Wr, qi, _o, ji, Po, il, ay, lr, oc, Jr, da, vd, ur, nl, cc, Cp, Uf;
21869
21869
  let pt = (Uf = class extends Xt {
21870
21870
  constructor(e, t, r, i) {
21871
21871
  super();
21872
- v(this, Hi);
21873
21872
  v(this, qi);
21873
+ v(this, ji);
21874
21874
  v(this, il);
21875
- v(this, ca);
21875
+ v(this, da);
21876
21876
  v(this, cc);
21877
21877
  f(this, "id");
21878
21878
  f(this, "userId");
@@ -21890,9 +21890,9 @@ let pt = (Uf = class extends Xt {
21890
21890
  f(this, "screenShareEnabled");
21891
21891
  f(this, "producers");
21892
21892
  f(this, "manualProducerConfig");
21893
- v(this, aa, void 0);
21894
- f(this, "supportsRemoteControl", false);
21895
21893
  v(this, oa, void 0);
21894
+ f(this, "supportsRemoteControl", false);
21895
+ v(this, ca, void 0);
21896
21896
  f(this, "presetName");
21897
21897
  v(this, Wr, void 0);
21898
21898
  v(this, lr, void 0);
@@ -21933,25 +21933,25 @@ let pt = (Uf = class extends Xt {
21933
21933
  producers: H,
21934
21934
  metadata: O
21935
21935
  } = t;
21936
- this.id = n, this.userId = a, this.name = c, this.device = d, this.picture = l, this.isHost = g, this.flags = m, this.manualProducerConfig = Sw, T(this, oa, _ != null ? _ : "ON_STAGE"), this.customParticipantId = P != null ? P : y, this.audioEnabled = !b, this.audioTrack = R, this.videoEnabled = L, this.videoTrack = B, this.screenShareTracks = {
21936
+ this.id = n, this.userId = a, this.name = c, this.device = d, this.picture = l, this.isHost = g, this.flags = m, this.manualProducerConfig = Sw, T(this, ca, _ != null ? _ : "ON_STAGE"), this.customParticipantId = P != null ? P : y, this.audioEnabled = !b, this.audioTrack = R, this.videoEnabled = L, this.videoTrack = B, this.screenShareTracks = {
21937
21937
  audio: void 0,
21938
21938
  video: void 0
21939
- }, this.producers = H != null ? H : [], this.presetName = O == null ? void 0 : O.preset_name, T(this, aa, false), T(this, lr, r), T(this, oc, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this), F(this, cc, Cp).call(this);
21939
+ }, this.producers = H != null ? H : [], this.presetName = O == null ? void 0 : O.preset_name, T(this, oa, false), T(this, lr, r), T(this, oc, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this), F(this, cc, Cp).call(this);
21940
21940
  }
21941
21941
  get clientSpecificId() {
21942
21942
  return this.customParticipantId;
21943
21943
  }
21944
21944
  get stageStatus() {
21945
- return o(this, oa);
21945
+ return o(this, ca);
21946
21946
  }
21947
21947
  setVideoEnabled(e, t = true) {
21948
- this.videoEnabled = e, t && (p.info("DyteParticipant::setVideoEnabled::videoUpdate", N({}, bi(this))), this.emit("videoUpdate", {
21948
+ this.videoEnabled = e, t && (p.info("DyteParticipant::setVideoEnabled::videoUpdate", N({}, ki(this))), this.emit("videoUpdate", {
21949
21949
  videoEnabled: this.videoEnabled,
21950
21950
  videoTrack: this.videoTrack
21951
21951
  }));
21952
21952
  }
21953
21953
  setAudioEnabled(e, t = true) {
21954
- this.audioEnabled = e, t && (p.info("DyteParticipant::setAudioEnabled::audioUpdate", N({}, bi(this))), this.emit("audioUpdate", {
21954
+ this.audioEnabled = e, t && (p.info("DyteParticipant::setAudioEnabled::audioUpdate", N({}, ki(this))), this.emit("audioUpdate", {
21955
21955
  audioEnabled: this.audioEnabled,
21956
21956
  audioTrack: this.audioTrack
21957
21957
  }));
@@ -21967,40 +21967,40 @@ let pt = (Uf = class extends Xt {
21967
21967
  }
21968
21968
  pin() {
21969
21969
  return u(this, null, function* () {
21970
- if (!o(this, qi, Po))
21970
+ if (!o(this, ji, Po))
21971
21971
  throw new w("Can`t pin participant without joining room", "1205");
21972
21972
  if (!o(this, lr).permissions.pinParticipant)
21973
21973
  throw new w("You do not have permission to pin participants.", "1201");
21974
- return o(this, Hi, _o).pinPeer(this.id);
21974
+ return o(this, qi, _o).pinPeer(this.id);
21975
21975
  });
21976
21976
  }
21977
21977
  unpin() {
21978
21978
  return u(this, null, function* () {
21979
- if (!o(this, qi, Po))
21979
+ if (!o(this, ji, Po))
21980
21980
  throw new w("Can`t unpin participant without joining room", "1205");
21981
21981
  if (!o(this, lr).permissions.pinParticipant)
21982
21982
  throw new w("You do not have permission to unpin participants.", "1201");
21983
- return o(this, Hi, _o).pinPeer(null);
21983
+ return o(this, qi, _o).pinPeer(null);
21984
21984
  });
21985
21985
  }
21986
21986
  setIsPinned(e, t = true) {
21987
21987
  var i;
21988
- T(this, aa, e);
21988
+ T(this, oa, e);
21989
21989
  const r = e ? "pinned" : "unpinned";
21990
- (i = o(this, ca, vd)) == null || i.updateSource(this.id, { pinned: e }), t && this.emit(r, this);
21990
+ (i = o(this, da, vd)) == null || i.updateSource(this.id, { pinned: e }), t && this.emit(r, this);
21991
21991
  }
21992
21992
  disableAudio() {
21993
21993
  return u(this, null, function* () {
21994
21994
  const e = this.id;
21995
21995
  if (p.info("DyteParticipant::disable_audio", {
21996
21996
  dyteParticipant: { id: e }
21997
- }), !o(this, qi, Po))
21997
+ }), !o(this, ji, Po))
21998
21998
  throw new w(
21999
21999
  "Can`t disable participant audio without joining room",
22000
22000
  "1205"
22001
22001
  );
22002
22002
  if (o(this, lr).permissions.canDisableParticipantAudio)
22003
- return o(this, Hi, _o).disableAudio(e);
22003
+ return o(this, qi, _o).disableAudio(e);
22004
22004
  throw p.error("DyteParticipant::unauthorized_disable_audio", {
22005
22005
  dyteParticipant: { id: e }
22006
22006
  }), new w(
@@ -22035,13 +22035,13 @@ let pt = (Uf = class extends Xt {
22035
22035
  const e = this.id;
22036
22036
  if (p.info("DyteParticipant::disable_video", {
22037
22037
  dyteParticipant: { id: e }
22038
- }), !o(this, qi, Po))
22038
+ }), !o(this, ji, Po))
22039
22039
  throw new w(
22040
22040
  "Can`t disable participant video without joining room",
22041
22041
  "1205"
22042
22042
  );
22043
22043
  if (o(this, lr).permissions.canDisableParticipantVideo)
22044
- return o(this, Hi, _o).disableVideo(e);
22044
+ return o(this, qi, _o).disableVideo(e);
22045
22045
  throw p.error("DyteParticipant::unauthorized_disable_video", {
22046
22046
  dyteParticipant: { id: e }
22047
22047
  }), new w(
@@ -22056,15 +22056,15 @@ let pt = (Uf = class extends Xt {
22056
22056
  });
22057
22057
  }
22058
22058
  setStageStatus(e) {
22059
- T(this, oa, e), this.emit("stageStatusUpdate", this);
22059
+ T(this, ca, e), this.emit("stageStatusUpdate", this);
22060
22060
  }
22061
22061
  get isPinned() {
22062
- return o(this, aa);
22062
+ return o(this, oa);
22063
22063
  }
22064
22064
  registerVideoElement(e) {
22065
22065
  var r, i, n, a;
22066
22066
  let t;
22067
- (i = (r = o(this, Jr).get(e)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (t = new ResizeObserver(() => o(this, nl).call(this, e)), t.observe(e)), o(this, Jr).set(e, { observer: t }), this.updateVideo(e), (a = o(this, ca, vd)) == null || a.addSource(
22067
+ (i = (r = o(this, Jr).get(e)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (t = new ResizeObserver(() => o(this, nl).call(this, e)), t.observe(e)), o(this, Jr).set(e, { observer: t }), this.updateVideo(e), (a = o(this, da, vd)) == null || a.addSource(
22068
22068
  this.id,
22069
22069
  e,
22070
22070
  this.videoEnabled,
@@ -22076,7 +22076,7 @@ let pt = (Uf = class extends Xt {
22076
22076
  }
22077
22077
  deregisterVideoElement(e) {
22078
22078
  var t, r, i;
22079
- e.srcObject = void 0, (r = (t = o(this, Jr).get(e)) == null ? void 0 : t.observer) == null || r.disconnect(), o(this, Jr).delete(e), (i = o(this, ca, vd)) == null || i.removeSource(this.id);
22079
+ e.srcObject = void 0, (r = (t = o(this, Jr).get(e)) == null ? void 0 : t.observer) == null || r.disconnect(), o(this, Jr).delete(e), (i = o(this, da, vd)) == null || i.removeSource(this.id);
22080
22080
  }
22081
22081
  updateVideo(e) {
22082
22082
  var t;
@@ -22092,13 +22092,13 @@ let pt = (Uf = class extends Xt {
22092
22092
  e.srcObject = void 0;
22093
22093
  e.style.display = this.videoEnabled ? "block" : "none";
22094
22094
  }
22095
- }, aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakSet(), _o = function() {
22095
+ }, oa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakSet(), _o = function() {
22096
22096
  return o(this, Wr).getValue("roomNodeClient");
22097
- }, qi = /* @__PURE__ */ new WeakSet(), Po = function() {
22097
+ }, ji = /* @__PURE__ */ new WeakSet(), Po = function() {
22098
22098
  return o(this, Wr).getValue("connectionHandler").mediaJoined;
22099
22099
  }, il = /* @__PURE__ */ new WeakSet(), ay = function() {
22100
22100
  return o(this, Wr).getValue("connectionHandler").socketJoined;
22101
- }, lr = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakSet(), vd = function() {
22101
+ }, lr = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakSet(), vd = function() {
22102
22102
  return o(this, Wr).getValue("pip");
22103
22103
  }, ur = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), cc = /* @__PURE__ */ new WeakSet(), Cp = function() {
22104
22104
  Array.from(o(this, Jr).keys()).forEach(this.updateVideo);
@@ -22305,13 +22305,13 @@ var s1 = Object.defineProperty, r1 = Object.getOwnPropertyDescriptor, Fe = (s, e
22305
22305
  return r && i && s1(e, t, i), i;
22306
22306
  };
22307
22307
  const i1 = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
22308
- var ls, ji, Co, Gi, Ro, da, yd, Wi, Ot, $f;
22308
+ var ls, Gi, Co, Wi, Ro, la, yd, Ji, Ot, $f;
22309
22309
  let Ae = ($f = class extends Xt {
22310
22310
  constructor(e, t, r) {
22311
22311
  super();
22312
- v(this, ji);
22313
22312
  v(this, Gi);
22314
- v(this, da);
22313
+ v(this, Wi);
22314
+ v(this, la);
22315
22315
  f(this, "waitlisted");
22316
22316
  f(this, "joined");
22317
22317
  f(this, "active");
@@ -22320,7 +22320,7 @@ let Ae = ($f = class extends Xt {
22320
22320
  f(this, "pinned");
22321
22321
  f(this, "all");
22322
22322
  v(this, ls, void 0);
22323
- v(this, Wi, void 0);
22323
+ v(this, Ji, void 0);
22324
22324
  v(this, Ot, void 0);
22325
22325
  f(this, "rateLimitConfig", {
22326
22326
  maxInvocations: 5,
@@ -22330,7 +22330,7 @@ let Ae = ($f = class extends Xt {
22330
22330
  f(this, "currentPage");
22331
22331
  f(this, "lastActiveSpeaker");
22332
22332
  f(this, "selectedPeers", oy);
22333
- T(this, ls, e), T(this, Wi, t), T(this, Ot, r), this.waitlisted = new Ur(), this.joined = new Ur(), this.videoSubscribed = new Ur(), this.audioSubscribed = new Ur(), this.active = this.videoSubscribed, this.pinned = new Ur(), this.all = new ZO(), this.viewMode = "ACTIVE_GRID", this.currentPage = 0, this.setupEvents();
22333
+ T(this, ls, e), T(this, Ji, t), T(this, Ot, r), this.waitlisted = new Ur(), this.joined = new Ur(), this.videoSubscribed = new Ur(), this.audioSubscribed = new Ur(), this.active = this.videoSubscribed, this.pinned = new Ur(), this.all = new ZO(), this.viewMode = "ACTIVE_GRID", this.currentPage = 0, this.setupEvents();
22334
22334
  }
22335
22335
  get pip() {
22336
22336
  return o(this, ls).getValue("pip");
@@ -22360,7 +22360,7 @@ let Ae = ($f = class extends Xt {
22360
22360
  setMaxActiveParticipantsCount(e) {
22361
22361
  if (e < 0 || e > 24)
22362
22362
  throw new w("0 <= Max active participants count limit <= 24", "1203");
22363
- o(this, ls).setValue("maxPreferredStreams", e), o(this, da, yd) && A.emit(I.UPDATE_ACTIVE);
22363
+ o(this, ls).setValue("maxPreferredStreams", e), o(this, la, yd) && A.emit(I.UPDATE_ACTIVE);
22364
22364
  }
22365
22365
  get pageCount() {
22366
22366
  if (this.viewMode === "PAGINATED") {
@@ -22373,7 +22373,7 @@ let Ae = ($f = class extends Xt {
22373
22373
  }
22374
22374
  acceptWaitingRoomRequest(e) {
22375
22375
  var r, i;
22376
- if (!o(this, Gi, Ro))
22376
+ if (!o(this, Wi, Ro))
22377
22377
  throw new w(
22378
22378
  "Can`t accept waiting room request without joining room",
22379
22379
  "1205"
@@ -22393,7 +22393,7 @@ let Ae = ($f = class extends Xt {
22393
22393
  rejectWaitingRoomRequest(e) {
22394
22394
  return u(this, null, function* () {
22395
22395
  var r, i;
22396
- if (!o(this, Gi, Ro))
22396
+ if (!o(this, Wi, Ro))
22397
22397
  throw new w(
22398
22398
  "Can`t reject waiting room request without joining room",
22399
22399
  "1205"
@@ -22482,7 +22482,7 @@ let Ae = ($f = class extends Xt {
22482
22482
  i.push(c);
22483
22483
  }
22484
22484
  }
22485
- }), yield o(this, ji, Co).createConsumers(i);
22485
+ }), yield o(this, Gi, Co).createConsumers(i);
22486
22486
  });
22487
22487
  }
22488
22488
  unsubscribe(r) {
@@ -22526,7 +22526,7 @@ let Ae = ($f = class extends Xt {
22526
22526
  i.push(c);
22527
22527
  }
22528
22528
  }
22529
- }), yield o(this, ji, Co).closeConsumers(i);
22529
+ }), yield o(this, Gi, Co).closeConsumers(i);
22530
22530
  });
22531
22531
  }
22532
22532
  getPeerIdsForCurrentPage() {
@@ -22572,10 +22572,10 @@ let Ae = ($f = class extends Xt {
22572
22572
  return u(this, null, function* () {
22573
22573
  if (p.info("DyteParticipants::disable_all_audio", {
22574
22574
  actions: { disableAllAudio: { allowUnmute: e } }
22575
- }), !o(this, da, yd))
22575
+ }), !o(this, la, yd))
22576
22576
  throw new w("Can`t disable all audio without joining room", "1205");
22577
- if (o(this, Wi).permissions.canAllowParticipantAudio)
22578
- return o(this, ji, Co).muteAll(e);
22577
+ if (o(this, Ji).permissions.canAllowParticipantAudio)
22578
+ return o(this, Gi, Co).muteAll(e);
22579
22579
  throw p.error("DyteParticipants::unauthorized_disable_all_audio", {
22580
22580
  actions: { disableAllAudio: { allowUnmute: e } }
22581
22581
  }), new w(
@@ -22586,10 +22586,10 @@ let Ae = ($f = class extends Xt {
22586
22586
  }
22587
22587
  disableAllVideo() {
22588
22588
  return u(this, null, function* () {
22589
- if (p.info("DyteParticipants::disable_all_video"), !o(this, da, yd))
22589
+ if (p.info("DyteParticipants::disable_all_video"), !o(this, la, yd))
22590
22590
  throw new w("Can`t disable all video without joining room", "1205");
22591
- if (o(this, Wi).permissions.canAllowParticipantVideo)
22592
- return o(this, ji, Co).muteAllVideo();
22591
+ if (o(this, Ji).permissions.canAllowParticipantVideo)
22592
+ return o(this, Gi, Co).muteAllVideo();
22593
22593
  throw p.error("DyteParticipants::unauthorized_disable_all_video"), new w(
22594
22594
  "Unauthorized: User does not have permission to disable peer video.",
22595
22595
  "1201"
@@ -22615,9 +22615,9 @@ let Ae = ($f = class extends Xt {
22615
22615
  }
22616
22616
  kickAll() {
22617
22617
  return u(this, null, function* () {
22618
- if (p.info("DyteParticipants::kick_all"), o(this, ls).getValue("viewType") !== "LIVESTREAM" && !o(this, Gi, Ro))
22618
+ if (p.info("DyteParticipants::kick_all"), o(this, ls).getValue("viewType") !== "LIVESTREAM" && !o(this, Wi, Ro))
22619
22619
  throw new w("Can`t kick all without joining room", "1205");
22620
- if (!o(this, Wi).permissions.kickParticipant)
22620
+ if (!o(this, Ji).permissions.kickParticipant)
22621
22621
  throw p.error("DyteParticipants::unauthorized_kick_all"), new w(
22622
22622
  "Unauthorized: User does not have permission to kick peers.",
22623
22623
  "1201"
@@ -22628,7 +22628,7 @@ let Ae = ($f = class extends Xt {
22628
22628
  }
22629
22629
  broadcastMessage(e, t, r) {
22630
22630
  return u(this, null, function* () {
22631
- if (p.info("DyteParticipants::broadcastMessage"), !o(this, Gi, Ro))
22631
+ if (p.info("DyteParticipants::broadcastMessage"), !o(this, Wi, Ro))
22632
22632
  throw new w("Can`t broadcast message without joining room", "1205");
22633
22633
  if (!(e != null && e.trim()))
22634
22634
  throw new w("`type` must be a non-empty string.", "1209");
@@ -22666,15 +22666,15 @@ let Ae = ($f = class extends Xt {
22666
22666
  return o(this, Ot).getRoomPeersNonPaginated();
22667
22667
  });
22668
22668
  }
22669
- }, ls = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakSet(), Co = function() {
22669
+ }, ls = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakSet(), Co = function() {
22670
22670
  return o(this, ls).getValue("roomNodeClient");
22671
- }, Gi = /* @__PURE__ */ new WeakSet(), Ro = function() {
22671
+ }, Wi = /* @__PURE__ */ new WeakSet(), Ro = function() {
22672
22672
  var e;
22673
22673
  return ((e = o(this, ls).getValue("connectionHandler")) == null ? void 0 : e.socketJoined) === true;
22674
- }, da = /* @__PURE__ */ new WeakSet(), yd = function() {
22674
+ }, la = /* @__PURE__ */ new WeakSet(), yd = function() {
22675
22675
  var e;
22676
22676
  return ((e = o(this, ls).getValue("connectionHandler")) == null ? void 0 : e.mediaJoined) === true;
22677
- }, Wi = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), $f);
22677
+ }, Ji = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), $f);
22678
22678
  Fe([
22679
22679
  h.trace("DyteParticipants.updateRateLimits")
22680
22680
  ], Ae.prototype, "updateRateLimits", 1);
@@ -22744,7 +22744,7 @@ Fe([
22744
22744
  Ae = Fe([
22745
22745
  _t("1200")
22746
22746
  ], Ae);
22747
- var pi = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(pi || {}), nt = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(nt || {}), n1 = Object.defineProperty, a1 = Object.getOwnPropertyDescriptor, Be = (s, e, t, r) => {
22747
+ var hi = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(hi || {}), nt = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(nt || {}), n1 = Object.defineProperty, a1 = Object.getOwnPropertyDescriptor, Be = (s, e, t, r) => {
22748
22748
  for (var i = r > 1 ? void 0 : r ? a1(e, t) : e, n = s.length - 1, a; n >= 0; n--)
22749
22749
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
22750
22750
  return r && i && n1(e, t, i), i;
@@ -23681,14 +23681,14 @@ var o1 = Object.defineProperty, c1 = Object.getOwnPropertyDescriptor, Th = (s, e
23681
23681
  const ge = Ds(
23682
23682
  th().permissions
23683
23683
  );
23684
- var q, la, ua, al, wt, Gt, Ff;
23684
+ var q, ua, pa, al, wt, Gt, Ff;
23685
23685
  const wo = (Ff = class extends Xt {
23686
23686
  constructor(e, t, r, i = false) {
23687
23687
  super();
23688
23688
  v(this, wt);
23689
23689
  v(this, q, void 0);
23690
- v(this, la, void 0);
23691
23690
  v(this, ua, void 0);
23691
+ v(this, pa, void 0);
23692
23692
  v(this, al, (e2) => {
23693
23693
  var l, g, m;
23694
23694
  const d = e2, {
@@ -23707,13 +23707,13 @@ const wo = (Ff = class extends Xt {
23707
23707
  if (t2 && (t2.private && Dr(o(this, q).chat.private, t2.private), t2.public && Dr(o(this, q).chat.public, t2.public), this.emit("chatUpdate")), r2 && Dr(o(this, q).connectedMeetings, r2), a) {
23708
23708
  const y = (P) => {
23709
23709
  switch (P) {
23710
- case di.NONE:
23710
+ case li.NONE:
23711
23711
  return K.Allowed;
23712
- case di.ALLOWED:
23712
+ case li.ALLOWED:
23713
23713
  return K.Allowed;
23714
- case di.NOT_ALLOWED:
23714
+ case li.NOT_ALLOWED:
23715
23715
  return K.NotAllowed;
23716
- case di.CAN_REQUEST:
23716
+ case li.CAN_REQUEST:
23717
23717
  return K.CanRequest;
23718
23718
  default:
23719
23719
  return;
@@ -23735,7 +23735,7 @@ const wo = (Ff = class extends Xt {
23735
23735
  });
23736
23736
  if (!t)
23737
23737
  throw p.error("DytePermissionsPreset::load_preset_permissions_failed"), new w("Could not load preset permissions.", "0904");
23738
- T(this, ua, e), T(this, la, r), T(this, q, t), i && this.setupEvents();
23738
+ T(this, pa, e), T(this, ua, r), T(this, q, t), i && this.setupEvents();
23739
23739
  }
23740
23740
  setupEvents() {
23741
23741
  A.on(I.UPDATE_PERMISSIONS, o(this, al));
@@ -23751,12 +23751,12 @@ const wo = (Ff = class extends Xt {
23751
23751
  return r ? i = new wo(e, r, t, true) : i = new wo(e, ge, t), i;
23752
23752
  }
23753
23753
  get mediaRoomType() {
23754
- const { sfu: e } = o(this, ua).getValue("roomNodeOptions");
23754
+ const { sfu: e } = o(this, pa).getValue("roomNodeOptions");
23755
23755
  return e === nt.CF ? "CF" : "HIVE";
23756
23756
  }
23757
23757
  get stageEnabled() {
23758
23758
  var e;
23759
- return ((e = o(this, q)) == null ? void 0 : e.stageEnabled) || o(this, la) === Dt.Webinar || o(this, la) === Dt.Livestream;
23759
+ return ((e = o(this, q)) == null ? void 0 : e.stageEnabled) || o(this, ua) === Dt.Webinar || o(this, ua) === Dt.Livestream;
23760
23760
  }
23761
23761
  get acceptStageRequests() {
23762
23762
  var e, t;
@@ -23919,8 +23919,8 @@ const wo = (Ff = class extends Xt {
23919
23919
  get transcriptionEnabled() {
23920
23920
  return o(this, q).transcriptionEnabled;
23921
23921
  }
23922
- }, q = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakSet(), Gt = function() {
23923
- return o(this, ua).getValue("stageStatus");
23922
+ }, q = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakSet(), Gt = function() {
23923
+ return o(this, pa).getValue("stageStatus");
23924
23924
  }, Ff);
23925
23925
  let iu = wo;
23926
23926
  Th([
@@ -24297,7 +24297,7 @@ He([
24297
24297
  He([
24298
24298
  h.trace("DyteSelfMedia.setDevice")
24299
24299
  ], xe.prototype, "setDevice", 1);
24300
- const So = {}, yi = {
24300
+ const So = {}, Ti = {
24301
24301
  executeWithLock({
24302
24302
  methodName: s,
24303
24303
  lockName: e,
@@ -24338,7 +24338,7 @@ var u1 = Object.defineProperty, p1 = Object.getOwnPropertyDescriptor, Se = (s, e
24338
24338
  for (var i = r > 1 ? void 0 : r ? p1(e, t) : e, n = s.length - 1, a; n >= 0; n--)
24339
24339
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
24340
24340
  return r && i && u1(e, t, i), i;
24341
- }, pa, bt, ha, qs, zr, Pn, tt, ot, Ke, Ze, ma, fa, dc, Rp, Bf;
24341
+ }, ha, bt, ma, qs, zr, Cn, tt, ot, Ke, Ze, fa, ga, dc, Rp, Bf;
24342
24342
  let pe = (Bf = class extends xe {
24343
24343
  constructor(e, t, r, i, n) {
24344
24344
  var a;
@@ -24351,9 +24351,9 @@ let pe = (Bf = class extends xe {
24351
24351
  f(this, "picture");
24352
24352
  f(this, "customParticipantId");
24353
24353
  f(this, "waitlistStatus");
24354
- v(this, pa, void 0);
24355
- v(this, bt, void 0);
24356
24354
  v(this, ha, void 0);
24355
+ v(this, bt, void 0);
24356
+ v(this, ma, void 0);
24357
24357
  f(this, "role");
24358
24358
  f(this, "userId");
24359
24359
  f(this, "organizationId");
@@ -24363,9 +24363,9 @@ let pe = (Bf = class extends xe {
24363
24363
  f(this, "hidden", false);
24364
24364
  f(this, "presetName");
24365
24365
  f(this, "roomState", "init");
24366
- v(this, ma, /* @__PURE__ */ new Set());
24367
24366
  v(this, fa, /* @__PURE__ */ new Set());
24368
- T(this, qs, e), this.userId = t.id, this.name = t.name, this.picture = t.picture, this.customParticipantId = (a = t.customParticipantId) != null ? a : t.clientSpecificId, this.waitlistStatus = "none", T(this, bt, r), T(this, pa, i), this.hidden = false, T(this, ha, false), this.organizationId = t.organizationId, this.supportsRemoteControl = Re.isElectron(), this.device = Re.getDeviceInfo(), this.presetName = n, i.viewType !== Dt.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), F(this, dc, Rp).call(this);
24367
+ v(this, ga, /* @__PURE__ */ new Set());
24368
+ T(this, qs, e), this.userId = t.id, this.name = t.name, this.picture = t.picture, this.customParticipantId = (a = t.customParticipantId) != null ? a : t.clientSpecificId, this.waitlistStatus = "none", T(this, bt, r), T(this, ha, i), this.hidden = false, T(this, ma, false), this.organizationId = t.organizationId, this.supportsRemoteControl = Re.isElectron(), this.device = Re.getDeviceInfo(), this.presetName = n, i.viewType !== Dt.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), F(this, dc, Rp).call(this);
24369
24369
  }
24370
24370
  get stageStatus() {
24371
24371
  return o(this, qs).getValue("stageStatus");
@@ -24394,7 +24394,7 @@ let pe = (Bf = class extends xe {
24394
24394
  }
24395
24395
  setupEvents() {
24396
24396
  this.on("videoUpdate", F(this, dc, Rp)), this.localMediaHandler.on("AUDIO_TRACK_CHANGE", () => u(this, null, function* () {
24397
- if (p.info("DyteSelf::setupEvents::AUDIO_TRACK_CHANGE", N({}, bi(this))), o(this, Ke, Ze) && this.audioEnabled)
24397
+ if (p.info("DyteSelf::setupEvents::AUDIO_TRACK_CHANGE", N({}, ki(this))), o(this, Ke, Ze) && this.audioEnabled)
24398
24398
  try {
24399
24399
  yield o(this, tt, ot).shareMic(this.audioTrack);
24400
24400
  } catch (e) {
@@ -24407,7 +24407,7 @@ let pe = (Bf = class extends xe {
24407
24407
  audioTrack: this.audioTrack
24408
24408
  });
24409
24409
  })), this.localMediaHandler.on("VIDEO_TRACK_CHANGE", () => u(this, null, function* () {
24410
- if (p.info("DyteSelf::setupEvents::VIDEO_TRACK_CHANGE", N({}, bi(this))), o(this, Ke, Ze) && this.rawVideoTrack === void 0)
24410
+ if (p.info("DyteSelf::setupEvents::VIDEO_TRACK_CHANGE", N({}, ki(this))), o(this, Ke, Ze) && this.rawVideoTrack === void 0)
24411
24411
  p.info("DyteSelf::VIDEO_TRACK_CHANGE::Forcing_disable_video"), this.disableVideo();
24412
24412
  else if (this.videoEnabled && o(this, Ke, Ze))
24413
24413
  try {
@@ -24449,12 +24449,12 @@ let pe = (Bf = class extends xe {
24449
24449
  }
24450
24450
  ), this.screenShareEnabled && (yield this.localMediaHandler.disableScreenShare());
24451
24451
  }
24452
- p.info("DyteSelf::setupEvents::SCREENSHARE_TRACK_CHANGE", N({}, bi(this))), this.emit("screenShareUpdate", {
24452
+ p.info("DyteSelf::setupEvents::SCREENSHARE_TRACK_CHANGE", N({}, ki(this))), this.emit("screenShareUpdate", {
24453
24453
  screenShareEnabled: this.screenShareEnabled,
24454
24454
  screenShareTracks: this.screenShareTracks
24455
24455
  });
24456
24456
  })), this.localMediaHandler.on("SCREENSHARE_ENDED", () => u(this, null, function* () {
24457
- p.log("Disabling screenshare due to SCREENSHARE_ENDED"), yield this.disableScreenShare(), p.info("DyteSelf::setupEvents::SCREENSHARE_ENDED", N({}, bi(this)));
24457
+ p.log("Disabling screenshare due to SCREENSHARE_ENDED"), yield this.disableScreenShare(), p.info("DyteSelf::setupEvents::SCREENSHARE_ENDED", N({}, ki(this)));
24458
24458
  })), this.localMediaHandler.on("AUDIO_TRACK_SILENT", () => {
24459
24459
  J.mediaTrackMuted("AUDIO");
24460
24460
  }), this.localMediaHandler.on("FORCE_MUTE_AUDIO", () => {
@@ -24473,11 +24473,11 @@ let pe = (Bf = class extends xe {
24473
24473
  return o(this, bt);
24474
24474
  }
24475
24475
  get config() {
24476
- return o(this, pa);
24476
+ return o(this, ha);
24477
24477
  }
24478
24478
  get roomJoined() {
24479
24479
  var e;
24480
- return o(this, pa).viewType === Dt.Livestream && this.stageStatus !== "ON_STAGE" ? ((e = o(this, qs).getValue("connectionHandler")) == null ? void 0 : e.socketJoined) === true : o(this, Ke, Ze);
24480
+ return o(this, ha).viewType === Dt.Livestream && this.stageStatus !== "ON_STAGE" ? ((e = o(this, qs).getValue("connectionHandler")) == null ? void 0 : e.socketJoined) === true : o(this, Ke, Ze);
24481
24481
  }
24482
24482
  setName(e) {
24483
24483
  if (!e)
@@ -24536,7 +24536,7 @@ let pe = (Bf = class extends xe {
24536
24536
  this.emit("videoUpdate", {
24537
24537
  videoEnabled: this.videoEnabled,
24538
24538
  videoTrack: this.videoTrack
24539
- }), p.info("DyteSelf.enableVideo", N({}, bi(this)));
24539
+ }), p.info("DyteSelf.enableVideo", N({}, ki(this)));
24540
24540
  }
24541
24541
  });
24542
24542
  }
@@ -24605,12 +24605,12 @@ let pe = (Bf = class extends xe {
24605
24605
  }
24606
24606
  setIsPinned(e, t = true) {
24607
24607
  var i;
24608
- T(this, ha, e);
24608
+ T(this, ma, e);
24609
24609
  const r = e ? "pinned" : "unpinned";
24610
- (i = o(this, zr, Pn)) == null || i.updateSource(this.id, { pinned: e }), t && this.emit(r, this);
24610
+ (i = o(this, zr, Cn)) == null || i.updateSource(this.id, { pinned: e }), t && this.emit(r, this);
24611
24611
  }
24612
24612
  get isPinned() {
24613
- return o(this, ha);
24613
+ return o(this, ma);
24614
24614
  }
24615
24615
  pin() {
24616
24616
  return u(this, null, function* () {
@@ -24679,7 +24679,7 @@ let pe = (Bf = class extends xe {
24679
24679
  }
24680
24680
  registerVideoElement(e, t = false) {
24681
24681
  var r, i;
24682
- t ? o(this, ma).add(e) : o(this, fa).add(e), this.updateVideo(e), t || (i = o(this, zr, Pn)) == null || i.addSource(
24682
+ t ? o(this, fa).add(e) : o(this, ga).add(e), this.updateVideo(e), t || (i = o(this, zr, Cn)) == null || i.addSource(
24683
24683
  this.id,
24684
24684
  e,
24685
24685
  this.videoEnabled,
@@ -24690,7 +24690,7 @@ let pe = (Bf = class extends xe {
24690
24690
  );
24691
24691
  }
24692
24692
  deregisterVideoElement(e, t = false) {
24693
- e.srcObject = void 0, t ? o(this, ma).delete(e) : (o(this, fa).delete(e), o(this, zr, Pn).removeSource(this.id));
24693
+ e.srcObject = void 0, t ? o(this, fa).delete(e) : (o(this, ga).delete(e), o(this, zr, Cn).removeSource(this.id));
24694
24694
  }
24695
24695
  updateVideo(e, t = false) {
24696
24696
  var r, i, n;
@@ -24701,20 +24701,20 @@ let pe = (Bf = class extends xe {
24701
24701
  if ((a == null ? void 0 : a.id) === this.videoTrack.id)
24702
24702
  return;
24703
24703
  const c = new MediaStream();
24704
- c.addTrack(this.videoTrack), e.srcObject = c, t || (i = o(this, zr, Pn)) == null || i.enableSource(this.id);
24704
+ c.addTrack(this.videoTrack), e.srcObject = c, t || (i = o(this, zr, Cn)) == null || i.enableSource(this.id);
24705
24705
  } else
24706
- e.srcObject = void 0, t || (n = o(this, zr, Pn)) == null || n.disableSource(this.id);
24706
+ e.srcObject = void 0, t || (n = o(this, zr, Cn)) == null || n.disableSource(this.id);
24707
24707
  e.style.display = this.videoEnabled ? "block" : "none";
24708
24708
  }
24709
- }, pa = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakSet(), Pn = function() {
24709
+ }, ha = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakSet(), Cn = function() {
24710
24710
  return o(this, qs).getValue("pip");
24711
24711
  }, tt = /* @__PURE__ */ new WeakSet(), ot = function() {
24712
24712
  return o(this, qs).getValue("roomNodeClient");
24713
24713
  }, Ke = /* @__PURE__ */ new WeakSet(), Ze = function() {
24714
24714
  var e;
24715
24715
  return ((e = o(this, qs).getValue("connectionHandler")) == null ? void 0 : e.mediaJoined) === true;
24716
- }, ma = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), dc = /* @__PURE__ */ new WeakSet(), Rp = function() {
24717
- Array.from(o(this, fa)).forEach((e) => this.updateVideo(e, false)), Array.from(o(this, ma)).forEach((e) => this.updateVideo(e, true));
24716
+ }, fa = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), dc = /* @__PURE__ */ new WeakSet(), Rp = function() {
24717
+ Array.from(o(this, ga)).forEach((e) => this.updateVideo(e, false)), Array.from(o(this, fa)).forEach((e) => this.updateVideo(e, true));
24718
24718
  }, Bf);
24719
24719
  Se([
24720
24720
  h.trace("DyteSelf.cleanupEvents")
@@ -24735,7 +24735,7 @@ Se([
24735
24735
  h.trace("DyteSelf.removeDocumentEventListeners")
24736
24736
  ], pe.prototype, "removeDocumentEventListeners", 1);
24737
24737
  Se([
24738
- yi.executeWithLock({
24738
+ Ti.executeWithLock({
24739
24739
  methodName: "meeting.self.enableAudio",
24740
24740
  lockName: "DyteSelf.toggleAudio",
24741
24741
  timeout: 3e3
@@ -24743,7 +24743,7 @@ Se([
24743
24743
  h.trace("DyteSelf.enableAudio")
24744
24744
  ], pe.prototype, "enableAudio", 1);
24745
24745
  Se([
24746
- yi.executeWithLock({
24746
+ Ti.executeWithLock({
24747
24747
  methodName: "meeting.self.enableVideo",
24748
24748
  lockName: "DyteSelf.toggleVideo",
24749
24749
  timeout: 3e3
@@ -24755,7 +24755,7 @@ Se([
24755
24755
  ], pe.prototype, "updateVideoConstraints", 1);
24756
24756
  Se([
24757
24757
  h.trace("DyteSelf.enableScreenShare"),
24758
- yi.executeWithLock({
24758
+ Ti.executeWithLock({
24759
24759
  methodName: "meeting.self.enableScreenShare",
24760
24760
  lockName: "DyteSelf.toggleScreenShare",
24761
24761
  timeout: 3e3
@@ -24765,7 +24765,7 @@ Se([
24765
24765
  h.trace("DyteSelf.updateScreenshareConstraints")
24766
24766
  ], pe.prototype, "updateScreenshareConstraints", 1);
24767
24767
  Se([
24768
- yi.executeWithLock({
24768
+ Ti.executeWithLock({
24769
24769
  methodName: "meeting.self.disableAudio",
24770
24770
  lockName: "DyteSelf.toggleAudio",
24771
24771
  timeout: 3e3
@@ -24773,7 +24773,7 @@ Se([
24773
24773
  h.trace("DyteSelf.disableAudio")
24774
24774
  ], pe.prototype, "disableAudio", 1);
24775
24775
  Se([
24776
- yi.executeWithLock({
24776
+ Ti.executeWithLock({
24777
24777
  methodName: "meeting.self.disableVideo",
24778
24778
  lockName: "DyteSelf.toggleVideo",
24779
24779
  timeout: 3e3
@@ -24781,7 +24781,7 @@ Se([
24781
24781
  h.trace("DyteSelf.disableVideo")
24782
24782
  ], pe.prototype, "disableVideo", 1);
24783
24783
  Se([
24784
- yi.executeWithLock({
24784
+ Ti.executeWithLock({
24785
24785
  methodName: "meeting.self.disableScreenShare",
24786
24786
  lockName: "DyteSelf.toggleScreenShare",
24787
24787
  timeout: 3e3
@@ -24829,7 +24829,7 @@ var h1 = Object.defineProperty, m1 = Object.getOwnPropertyDescriptor, f1 = (s, e
24829
24829
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
24830
24830
  return r && i && h1(e, t, i), i;
24831
24831
  };
24832
- let Si;
24832
+ let Ei;
24833
24833
  var lc, Hf;
24834
24834
  const dy = (Hf = class {
24835
24835
  constructor(s, e) {
@@ -24838,16 +24838,16 @@ const dy = (Hf = class {
24838
24838
  T(this, lc, e), this.socket = s, this.handleSocketEvents();
24839
24839
  }
24840
24840
  static create(s, e) {
24841
- return Si || (Si = new dy(s, e)), Si;
24841
+ return Ei || (Ei = new dy(s, e)), Ei;
24842
24842
  }
24843
24843
  static cleanup() {
24844
24844
  var s;
24845
24845
  try {
24846
- (s = Si == null ? void 0 : Si.socket) == null || s.disconnect();
24846
+ (s = Ei == null ? void 0 : Ei.socket) == null || s.disconnect();
24847
24847
  } catch (e) {
24848
24848
  p.error("roomSocketHandler::cleanup");
24849
24849
  }
24850
- Si = void 0;
24850
+ Ei = void 0;
24851
24851
  }
24852
24852
  joinRoom(s) {
24853
24853
  return u(this, null, function* () {
@@ -24869,7 +24869,7 @@ const dy = (Hf = class {
24869
24869
  gA.toBinary(e)
24870
24870
  );
24871
24871
  try {
24872
- const { peer: i } = En.fromBinary((yield t).payload);
24872
+ const { peer: i } = _n.fromBinary((yield t).payload);
24873
24873
  o(this, lc).getValue("connectionHandler").socketJoined = true, A.emit(I.SOCKET_SERVICE_ROOM_JOINED, { peer: i });
24874
24874
  const n = this.getRoomState(), a = this.getRoomPeersNonPaginated(), [{ room: c }, { peers: d }] = yield Promise.all([n, a]);
24875
24875
  return A.emit(I.ROOM_STATE, c), A.emit(I.SOCKET_PEERS, d), { peer: i };
@@ -24955,7 +24955,7 @@ const dy = (Hf = class {
24955
24955
  U.getPeerInfo,
24956
24956
  Iv.toBinary({ peerId: s })
24957
24957
  );
24958
- e = En.fromBinary(t.payload);
24958
+ e = _n.fromBinary(t.payload);
24959
24959
  } catch (t) {
24960
24960
  p.error("getPeerInfo::binary_decode_error", { error: t });
24961
24961
  }
@@ -25129,7 +25129,7 @@ const dy = (Hf = class {
25129
25129
  case U.leaveRoom:
25130
25130
  case U.kick:
25131
25131
  case U.kickAll: {
25132
- t = En.fromBinary.bind(En), r = En.create();
25132
+ t = _n.fromBinary.bind(_n), r = _n.create();
25133
25133
  break;
25134
25134
  }
25135
25135
  case U.getWaitingRoomRequests: {
@@ -25212,7 +25212,7 @@ let Ud = dy;
25212
25212
  f1([
25213
25213
  h.trace("RoomSocketHandler.joinRoom")
25214
25214
  ], Ud.prototype, "joinRoom", 1);
25215
- var dn = {}, nu = {};
25215
+ var ln = {}, nu = {};
25216
25216
  Object.defineProperty(nu, "__esModule", { value: true });
25217
25217
  nu.Logger = void 0;
25218
25218
  class g1 {
@@ -25226,21 +25226,21 @@ class g1 {
25226
25226
  }
25227
25227
  }
25228
25228
  nu.Logger = g1;
25229
- Object.defineProperty(dn, "__esModule", { value: true });
25230
- var $d = dn.AwaitQueue = dn.AwaitQueueRemovedTaskError = dn.AwaitQueueStoppedError = void 0;
25229
+ Object.defineProperty(ln, "__esModule", { value: true });
25230
+ var $d = ln.AwaitQueue = ln.AwaitQueueRemovedTaskError = ln.AwaitQueueStoppedError = void 0;
25231
25231
  const v1 = nu, Ar = new v1.Logger();
25232
25232
  class Sh extends Error {
25233
25233
  constructor(e) {
25234
25234
  super(e != null ? e : "AwaitQueue stopped"), this.name = "AwaitQueueStoppedError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Sh);
25235
25235
  }
25236
25236
  }
25237
- dn.AwaitQueueStoppedError = Sh;
25237
+ ln.AwaitQueueStoppedError = Sh;
25238
25238
  class au extends Error {
25239
25239
  constructor(e) {
25240
25240
  super(e != null ? e : "AwaitQueue task removed"), this.name = "AwaitQueueRemovedTaskError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, au);
25241
25241
  }
25242
25242
  }
25243
- dn.AwaitQueueRemovedTaskError = au;
25243
+ ln.AwaitQueueRemovedTaskError = au;
25244
25244
  class y1 {
25245
25245
  constructor() {
25246
25246
  this.pendingTasks = /* @__PURE__ */ new Map(), this.nextTaskId = 0, this.stopping = false;
@@ -25323,7 +25323,7 @@ class y1 {
25323
25323
  });
25324
25324
  }
25325
25325
  }
25326
- $d = dn.AwaitQueue = y1;
25326
+ $d = ln.AwaitQueue = y1;
25327
25327
  function T1(s, e) {
25328
25328
  const t = new Error(e);
25329
25329
  return t.name = s, t;
@@ -25338,7 +25338,7 @@ class Vt extends w {
25338
25338
  super(e), this.name = "InvalidStateError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, Vt) : this.stack = new Error(e).stack;
25339
25339
  }
25340
25340
  }
25341
- class ki extends w {
25341
+ class Ai extends w {
25342
25342
  constructor(e) {
25343
25343
  super(e), this.name = "TransportConnectionError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, Vt) : this.stack = new Error(e).stack;
25344
25344
  }
@@ -26110,7 +26110,7 @@ class Ch extends _h {
26110
26110
  function C1(s, e) {
26111
26111
  return typeof s == "undefined" ? e : typeof window != "undefined" && Object.getOwnPropertyDescriptor(window, "structuredClone") ? structuredClone(s) : JSON.parse(JSON.stringify(s));
26112
26112
  }
26113
- var uc, Ji, js, Gs, Mr, pc, wp, ol, ly, cl, uy;
26113
+ var uc, Ki, js, Gs, Mr, pc, wp, ol, ly, cl, uy;
26114
26114
  class R1 extends Go {
26115
26115
  constructor(t) {
26116
26116
  var r;
@@ -26130,9 +26130,9 @@ class R1 extends Go {
26130
26130
  f(this, "appData");
26131
26131
  f(this, "transceiver");
26132
26132
  v(this, uc, void 0);
26133
- v(this, Ji, void 0);
26133
+ v(this, Ki, void 0);
26134
26134
  v(this, js, void 0);
26135
- this.id = t.id, this.localId = t.localId, T(this, uc, t.handler), this.appData = t.appData, this.peerId = t.producingPeerId, this.producingTransportId = t.producingTransportId, T(this, js, false), this.producerId = t.producerId, this.track = t.track, T(this, Ji, (r = t.paused) != null ? r : false), this.mimeType = t.mimeType, this.transceiver = t.transceiver, this.rtpReceiver = t.rtpReceiver, F(this, ol, ly).call(this);
26135
+ this.id = t.id, this.localId = t.localId, T(this, uc, t.handler), this.appData = t.appData, this.peerId = t.producingPeerId, this.producingTransportId = t.producingTransportId, T(this, js, false), this.producerId = t.producerId, this.track = t.track, T(this, Ki, (r = t.paused) != null ? r : false), this.mimeType = t.mimeType, this.transceiver = t.transceiver, this.rtpReceiver = t.rtpReceiver, F(this, ol, ly).call(this);
26136
26136
  }
26137
26137
  get closed() {
26138
26138
  return o(this, js);
@@ -26141,7 +26141,7 @@ class R1 extends Go {
26141
26141
  return this.track.kind;
26142
26142
  }
26143
26143
  get paused() {
26144
- return o(this, Ji);
26144
+ return o(this, Ki);
26145
26145
  }
26146
26146
  close(t, r) {
26147
26147
  o(this, js) || (p.debug(`Consumer::close() ${t ? `with reason ${t}` : ""}`, o(this, Gs, Mr)), T(this, js, true), r && (F(this, cl, uy).call(this), this.transceiver.stop()), this.safeEmit("close", t));
@@ -26158,17 +26158,17 @@ class R1 extends Go {
26158
26158
  p.error("consumer::pause() | Consumer closed", o(this, Gs, Mr));
26159
26159
  return;
26160
26160
  }
26161
- T(this, Ji, true), this.track.enabled = false, this.safeEmit("pause");
26161
+ T(this, Ki, true), this.track.enabled = false, this.safeEmit("pause");
26162
26162
  }
26163
26163
  resume() {
26164
26164
  if (p.debug("consumer::resume()", o(this, Gs, Mr)), o(this, js)) {
26165
26165
  p.error("Consumer::resume() | Consumer closed", o(this, Gs, Mr));
26166
26166
  return;
26167
26167
  }
26168
- T(this, Ji, false), this.track.enabled = true, this.safeEmit("resume");
26168
+ T(this, Ki, false), this.track.enabled = true, this.safeEmit("resume");
26169
26169
  }
26170
26170
  }
26171
- uc = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakSet(), Mr = function() {
26171
+ uc = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakSet(), Mr = function() {
26172
26172
  return {
26173
26173
  consumer: {
26174
26174
  id: this.id,
@@ -26190,7 +26190,7 @@ uc = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), js = /*
26190
26190
  }));
26191
26191
  }
26192
26192
  };
26193
- var Cs, ga, va, Ki, us, dt, Yr, ya, Jt, Ts;
26193
+ var Cs, va, ya, zi, us, dt, Yr, Ta, Jt, Ts;
26194
26194
  class w1 extends Go {
26195
26195
  constructor(t) {
26196
26196
  var r, i;
@@ -26202,14 +26202,14 @@ class w1 extends Go {
26202
26202
  f(this, "kind");
26203
26203
  f(this, "appData");
26204
26204
  f(this, "rtpSender");
26205
- v(this, ga, void 0);
26206
26205
  v(this, va, void 0);
26207
- v(this, Ki, void 0);
26206
+ v(this, ya, void 0);
26207
+ v(this, zi, void 0);
26208
26208
  v(this, us, false);
26209
26209
  v(this, dt, void 0);
26210
26210
  v(this, Yr, void 0);
26211
- v(this, ya, void 0);
26212
- this.id = t.id, this.localId = t.localId, T(this, dt, t.track), this.kind = (r = t.track) == null ? void 0 : r.kind, T(this, Yr, t.disableTrackOnPause ? !((i = t.track) != null && i.enabled) : false), T(this, ya, void 0), T(this, ga, t.stopTracks), T(this, va, t.disableTrackOnPause), T(this, Ki, t.zeroRtpOnPause), this.appData = t.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), T(this, Cs, t.handler), this.rtpSender = t.rtpSender, this._handleTrack();
26211
+ v(this, Ta, void 0);
26212
+ this.id = t.id, this.localId = t.localId, T(this, dt, t.track), this.kind = (r = t.track) == null ? void 0 : r.kind, T(this, Yr, t.disableTrackOnPause ? !((i = t.track) != null && i.enabled) : false), T(this, Ta, void 0), T(this, va, t.stopTracks), T(this, ya, t.disableTrackOnPause), T(this, zi, t.zeroRtpOnPause), this.appData = t.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), T(this, Cs, t.handler), this.rtpSender = t.rtpSender, this._handleTrack();
26213
26213
  }
26214
26214
  get closed() {
26215
26215
  return o(this, us);
@@ -26221,7 +26221,7 @@ class w1 extends Go {
26221
26221
  return o(this, Yr);
26222
26222
  }
26223
26223
  get maxSpatialLayer() {
26224
- return o(this, ya);
26224
+ return o(this, Ta);
26225
26225
  }
26226
26226
  close(t) {
26227
26227
  return u(this, null, function* () {
@@ -26243,21 +26243,21 @@ class w1 extends Go {
26243
26243
  });
26244
26244
  }
26245
26245
  pause() {
26246
- p.debug("Producer::pause()", o(this, Jt, Ts)), o(this, us) && p.error("Producer::pause() | Producer closed", o(this, Jt, Ts)), T(this, Yr, true), o(this, dt) && o(this, va) && (o(this, dt).enabled = false), o(this, Ki) && o(this, Cs).replaceTrack(this.localId, null), this.emit("pause");
26246
+ p.debug("Producer::pause()", o(this, Jt, Ts)), o(this, us) && p.error("Producer::pause() | Producer closed", o(this, Jt, Ts)), T(this, Yr, true), o(this, dt) && o(this, ya) && (o(this, dt).enabled = false), o(this, zi) && o(this, Cs).replaceTrack(this.localId, null), this.emit("pause");
26247
26247
  }
26248
26248
  resume() {
26249
26249
  if (p.debug("Producer::resume()", o(this, Jt, Ts)), o(this, us)) {
26250
26250
  p.error("Producer::resume() | Producer closed", o(this, Jt, Ts));
26251
26251
  return;
26252
26252
  }
26253
- T(this, Yr, false), o(this, dt) && o(this, va) && (o(this, dt).enabled = true), o(this, Ki) && o(this, Cs).replaceTrack(this.localId, o(this, dt)), this.emit("resume");
26253
+ T(this, Yr, false), o(this, dt) && o(this, ya) && (o(this, dt).enabled = true), o(this, zi) && o(this, Cs).replaceTrack(this.localId, o(this, dt)), this.emit("resume");
26254
26254
  }
26255
26255
  replaceTrack(r) {
26256
26256
  return u(this, arguments, function* ({
26257
26257
  track: t
26258
26258
  }) {
26259
26259
  if (p.debug(`Producer::replaceTrack() trackId: ${t == null ? void 0 : t.id}`, o(this, Jt, Ts)), o(this, us)) {
26260
- if (t && o(this, ga))
26260
+ if (t && o(this, va))
26261
26261
  try {
26262
26262
  t.stop();
26263
26263
  } catch (i) {
@@ -26272,7 +26272,7 @@ class w1 extends Go {
26272
26272
  p.debug(`replaceTrack() | same track, ignored trackId: ${t.id}`, o(this, Jt, Ts));
26273
26273
  return;
26274
26274
  }
26275
- (!o(this, Ki) || !o(this, Yr)) && (yield o(this, Cs).replaceTrack(this.localId, t)), this._destroyTrack(), T(this, dt, t), this._handleTrack();
26275
+ (!o(this, zi) || !o(this, Yr)) && (yield o(this, Cs).replaceTrack(this.localId, t)), this._destroyTrack(), T(this, dt, t), this._handleTrack();
26276
26276
  });
26277
26277
  }
26278
26278
  setMaxSpatialLayer(t) {
@@ -26283,7 +26283,7 @@ class w1 extends Go {
26283
26283
  throw new jo("not a video Producer");
26284
26284
  if (typeof t != "number")
26285
26285
  throw new TypeError("invalid spatialLayer");
26286
- yield o(this, Cs).setMaxSpatialLayer(this.localId, t), T(this, ya, t);
26286
+ yield o(this, Cs).setMaxSpatialLayer(this.localId, t), T(this, Ta, t);
26287
26287
  });
26288
26288
  }
26289
26289
  setRtpEncodingParameters(t) {
@@ -26305,7 +26305,7 @@ class w1 extends Go {
26305
26305
  var t;
26306
26306
  if (o(this, dt))
26307
26307
  try {
26308
- o(this, dt).removeEventListener("ended", this._onTrackEnded), o(this, ga) && o(this, dt).stop();
26308
+ o(this, dt).removeEventListener("ended", this._onTrackEnded), o(this, va) && o(this, dt).stop();
26309
26309
  } catch (r) {
26310
26310
  p.error(`Producer::_destroyTrack trackId: ${(t = this.track) == null ? void 0 : t.id}`, j(N({}, o(this, Jt, Ts)), {
26311
26311
  error: r
@@ -26313,7 +26313,7 @@ class w1 extends Go {
26313
26313
  }
26314
26314
  }
26315
26315
  }
26316
- Cs = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), us = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakSet(), Ts = function() {
26316
+ Cs = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), us = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakSet(), Ts = function() {
26317
26317
  return {
26318
26318
  producer: {
26319
26319
  id: this.id,
@@ -26341,7 +26341,7 @@ function hy(s) {
26341
26341
  return b1(s) && (t = (e = s.payload._bolt) == null ? void 0 : e.id) != null ? t : "";
26342
26342
  }
26343
26343
  var Qr;
26344
- const kn = class extends Et.EventEmitter {
26344
+ const An = class extends Et.EventEmitter {
26345
26345
  constructor(t, r, i) {
26346
26346
  super();
26347
26347
  f(this, "channel");
@@ -26350,14 +26350,14 @@ const kn = class extends Et.EventEmitter {
26350
26350
  v(this, Qr, /* @__PURE__ */ new Map());
26351
26351
  f(this, "respond", (t2, r2, i2 = false) => {
26352
26352
  let n;
26353
- i2 ? n = kn.createErrorResponse(t2, r2) : n = kn.createResponse(t2, r2), this.channel.send(JSON.stringify(n));
26353
+ i2 ? n = An.createErrorResponse(t2, r2) : n = An.createResponse(t2, r2), this.channel.send(JSON.stringify(n));
26354
26354
  });
26355
26355
  f(this, "notify", (t2) => {
26356
- const r2 = kn.createNotification(t2);
26356
+ const r2 = An.createNotification(t2);
26357
26357
  this.channel.send(JSON.stringify(r2));
26358
26358
  });
26359
26359
  f(this, "request", (t2) => u(this, null, function* () {
26360
- const r2 = kn.createRequest(t2), i2 = new Promise((n, a) => {
26360
+ const r2 = An.createRequest(t2), i2 = new Promise((n, a) => {
26361
26361
  const { id: d } = r2.payload._bolt, l = {
26362
26362
  id: d,
26363
26363
  method: r2.type,
@@ -26425,8 +26425,8 @@ const kn = class extends Et.EventEmitter {
26425
26425
  this.label = r, this.transportId = i, this.channel = t, this.queue = /* @__PURE__ */ new Map();
26426
26426
  }
26427
26427
  };
26428
- let Pi = kn;
26429
- Qr = /* @__PURE__ */ new WeakMap(), f(Pi, "createRequest", (t) => {
26428
+ let Ci = An;
26429
+ Qr = /* @__PURE__ */ new WeakMap(), f(Ci, "createRequest", (t) => {
26430
26430
  var r;
26431
26431
  if ((r = t.payload) != null && r._bolt)
26432
26432
  throw new Error("rpc fields are internal values");
@@ -26440,7 +26440,7 @@ Qr = /* @__PURE__ */ new WeakMap(), f(Pi, "createRequest", (t) => {
26440
26440
  }
26441
26441
  })
26442
26442
  };
26443
- }), f(Pi, "createResponse", (t, r) => {
26443
+ }), f(Ci, "createResponse", (t, r) => {
26444
26444
  var i;
26445
26445
  if ((i = r.payload) != null && i._bolt)
26446
26446
  throw new Error("rpc fields are internal values");
@@ -26454,7 +26454,7 @@ Qr = /* @__PURE__ */ new WeakMap(), f(Pi, "createRequest", (t) => {
26454
26454
  }
26455
26455
  })
26456
26456
  };
26457
- }), f(Pi, "createNotification", (t) => {
26457
+ }), f(Ci, "createNotification", (t) => {
26458
26458
  var r;
26459
26459
  if ((r = t.payload) != null && r._bolt)
26460
26460
  throw new Error("rpc fields are internal values");
@@ -26468,7 +26468,7 @@ Qr = /* @__PURE__ */ new WeakMap(), f(Pi, "createRequest", (t) => {
26468
26468
  }
26469
26469
  })
26470
26470
  };
26471
- }), f(Pi, "createErrorResponse", (t, r) => ({
26471
+ }), f(Ci, "createErrorResponse", (t, r) => ({
26472
26472
  type: "error",
26473
26473
  payload: {
26474
26474
  error: r.message,
@@ -26492,8 +26492,8 @@ function k1(s) {
26492
26492
  return Promise.all(e);
26493
26493
  }
26494
26494
  const Bd = "transport closed";
26495
- var Ta;
26496
- const An = class extends Go {
26495
+ var Sa;
26496
+ const In = class extends Go {
26497
26497
  constructor(t, {
26498
26498
  id: r,
26499
26499
  direction: i,
@@ -26509,7 +26509,7 @@ const An = class extends Go {
26509
26509
  super();
26510
26510
  f(this, "awaitQueue");
26511
26511
  f(this, "observer");
26512
- v(this, Ta, void 0);
26512
+ v(this, Sa, void 0);
26513
26513
  f(this, "id");
26514
26514
  f(this, "serverId");
26515
26515
  f(this, "direction");
@@ -26527,7 +26527,7 @@ const An = class extends Go {
26527
26527
  f(this, "consumerTrackEvents");
26528
26528
  f(this, "unknownTracksMap");
26529
26529
  f(this, "appData");
26530
- p.debug(`constructor() [id: ${r}, direction: ${i}]`), T(this, Ta, t), this.id = r, this.direction = i;
26530
+ p.debug(`constructor() [id: ${r}, direction: ${i}]`), T(this, Sa, t), this.id = r, this.direction = i;
26531
26531
  const y = C1(l, {});
26532
26532
  delete y.iceServers, delete y.iceTransportPolicy, delete y.bundlePolicy, delete y.rtcpMuxPolicy, delete y.sdpSemantics, this.producers = /* @__PURE__ */ new Map(), this.consumers = /* @__PURE__ */ new Map(), this.datachannels = /* @__PURE__ */ new Map(), this.consumerTrackEvents = /* @__PURE__ */ new Map(), this.unknownTracksMap = /* @__PURE__ */ new Map(), this.awaitQueue = new $d(), this.observer = new Go(), this.handler = n(), this.handler.enableHighBitrate = (_ = m == null ? void 0 : m.enableHighBitrate) != null ? _ : false, this.handler.enableStereo = (P = m == null ? void 0 : m.enableStereo) != null ? P : false, this.handler.enableDtx = (b = m == null ? void 0 : m.enableDtx) != null ? b : true, this.handler.init({
26533
26533
  onTrackHandler: this._ontrack.bind(this),
@@ -26558,7 +26558,7 @@ const An = class extends Go {
26558
26558
  }
26559
26559
  ), this.handler.on("dc_open", (R) => {
26560
26560
  let L = this.datachannels.get(R.label);
26561
- L || (L || (L = new Pi(R, R.label, this.serverId), this.datachannels.set(R.label, L)), this.eventsDCFailureTimer = setTimeout(() => {
26561
+ L || (L || (L = new Ci(R, R.label, this.serverId), this.datachannels.set(R.label, L)), this.eventsDCFailureTimer = setTimeout(() => {
26562
26562
  R.label === "events" && (this.eventsDCReadyPromiseResolver(false), this.safeEmit("dc_error", R.label));
26563
26563
  }, 5e3));
26564
26564
  }), this.handler.on("datachannel", (R, L) => {
@@ -26637,7 +26637,7 @@ const An = class extends Go {
26637
26637
  this.setServerId(n), yield i(a);
26638
26638
  })), !(yield this.transportConnectionPromise))
26639
26639
  throw new Error("ice connection failed");
26640
- if (o(this, Ta) === nt.HIVE && !(yield this.isEventsDCReady))
26640
+ if (o(this, Sa) === nt.HIVE && !(yield this.isEventsDCReady))
26641
26641
  throw new Error("events datachannel not open");
26642
26642
  } catch (r) {
26643
26643
  throw p.error("transport failed to connect:", { error: r }), r;
@@ -26666,7 +26666,7 @@ const An = class extends Go {
26666
26666
  } else
26667
26667
  throw new TypeError("missing track");
26668
26668
  if (!(yield this.transportConnectionPromise))
26669
- throw new ki("transport not connected");
26669
+ throw new Ai("transport not connected");
26670
26670
  return true;
26671
26671
  });
26672
26672
  }
@@ -26742,7 +26742,7 @@ const An = class extends Go {
26742
26742
  if (this.listenerCount("connect") === 0 && this.connectionState === "new")
26743
26743
  throw new TypeError('no "connect" listener set into this transport');
26744
26744
  if (!(yield this.transportConnectionPromise))
26745
- throw new ki("transport not connected");
26745
+ throw new Ai("transport not connected");
26746
26746
  return true;
26747
26747
  });
26748
26748
  }
@@ -26816,20 +26816,20 @@ const An = class extends Go {
26816
26816
  }
26817
26817
  closeConsumers(t, r) {
26818
26818
  return u(this, null, function* () {
26819
- const i = t.map((l) => l.transceiver.mid), n = An.parseHeaderExtensionMappings(
26819
+ const i = t.map((l) => l.transceiver.mid), n = In.parseHeaderExtensionMappings(
26820
26820
  this.handler.pc.remoteDescription,
26821
26821
  i
26822
- ), a = An.parseCodecAndFmtpMappings(
26822
+ ), a = In.parseCodecAndFmtpMappings(
26823
26823
  this.handler.pc.remoteDescription,
26824
26824
  i
26825
26825
  );
26826
26826
  t.forEach((l) => l.close(void 0, true));
26827
26827
  let c = yield this.handler.pc.createOffer();
26828
- c = An.setHeaderExtensionMappings(
26828
+ c = In.setHeaderExtensionMappings(
26829
26829
  c,
26830
26830
  i,
26831
26831
  n
26832
- ), c = An.setCodecAndFmtpMappings(
26832
+ ), c = In.setCodecAndFmtpMappings(
26833
26833
  c,
26834
26834
  i,
26835
26835
  a
@@ -26862,7 +26862,7 @@ const An = class extends Go {
26862
26862
  const { track: r, transceiver: i, streams: n } = t;
26863
26863
  p.info(`track event received [trackId: ${r.id}]`);
26864
26864
  let a;
26865
- o(this, Ta) === nt.HIVE ? a = `${n[0].id}:${r.kind}` : a = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
26865
+ o(this, Sa) === nt.HIVE ? a = `${n[0].id}:${r.kind}` : a = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
26866
26866
  p.info(`rtc consumer track ended [trackId: ${r.id}]`), this.unknownTracksMap.delete(a);
26867
26867
  });
26868
26868
  const c = this.consumerTrackEvents.get(a);
@@ -26980,8 +26980,8 @@ const An = class extends Go {
26980
26980
  });
26981
26981
  }
26982
26982
  };
26983
- let bp = An;
26984
- Ta = /* @__PURE__ */ new WeakMap();
26983
+ let bp = In;
26984
+ Sa = /* @__PURE__ */ new WeakMap();
26985
26985
  function A1() {
26986
26986
  if (typeof navigator == "object" && navigator.product === "ReactNative") {
26987
26987
  if (typeof RTCPeerConnection == "undefined") {
@@ -27068,11 +27068,11 @@ class I1 {
27068
27068
  }
27069
27069
  hc = /* @__PURE__ */ new WeakMap();
27070
27070
  const D1 = 2e3;
27071
- var pr, Sa, vt, yt, zi, Ea, _a, Pa, Yi, Xr, Ca, Ra, Td, mc, kp, dl, my, ll, fy, ul, gy, pl, vy, hl, yy, fc, Ap, gc, Ip;
27071
+ var pr, Ea, vt, yt, Yi, _a, Pa, Ca, Qi, Xr, Ra, wa, Td, mc, kp, dl, my, ll, fy, ul, gy, pl, vy, hl, yy, fc, Ap, gc, Ip;
27072
27072
  class M1 extends Et.EventEmitter {
27073
27073
  constructor(t, r, i) {
27074
27074
  super();
27075
- v(this, Ra);
27075
+ v(this, wa);
27076
27076
  v(this, mc);
27077
27077
  v(this, dl);
27078
27078
  v(this, ll);
@@ -27082,43 +27082,43 @@ class M1 extends Et.EventEmitter {
27082
27082
  v(this, fc);
27083
27083
  v(this, gc);
27084
27084
  v(this, pr, void 0);
27085
- v(this, Sa, void 0);
27085
+ v(this, Ea, void 0);
27086
27086
  v(this, vt, void 0);
27087
27087
  v(this, yt, void 0);
27088
- v(this, zi, void 0);
27089
- v(this, Ea, void 0);
27088
+ v(this, Yi, void 0);
27090
27089
  v(this, _a, void 0);
27091
- v(this, Pa, {
27090
+ v(this, Pa, void 0);
27091
+ v(this, Ca, {
27092
27092
  transportFailureCount: {
27093
27093
  send: 0,
27094
27094
  recv: 0
27095
27095
  },
27096
27096
  lastConnectionTime: 0
27097
27097
  });
27098
- v(this, Yi, void 0);
27098
+ v(this, Qi, void 0);
27099
27099
  v(this, Xr, "all");
27100
- v(this, Ca, void 0);
27101
- switch (T(this, pr, t), T(this, zi, r), T(this, Ca, i), T(this, Sa, new I1(i)), T(this, Ea, new P1(r, i)), i) {
27100
+ v(this, Ra, void 0);
27101
+ switch (T(this, pr, t), T(this, Yi, r), T(this, Ra, i), T(this, Ea, new I1(i)), T(this, _a, new P1(r, i)), i) {
27102
27102
  case nt.CF: {
27103
- T(this, _a, Is);
27103
+ T(this, Pa, Is);
27104
27104
  break;
27105
27105
  }
27106
27106
  case nt.HIVE:
27107
27107
  default: {
27108
- T(this, _a, ms);
27108
+ T(this, Pa, ms);
27109
27109
  break;
27110
27110
  }
27111
27111
  }
27112
- o(this, Ra, Td).mediaState = {
27113
- send: { state: pi.NEW, reconnected: false },
27114
- recv: { state: pi.NEW, reconnected: false }
27112
+ o(this, wa, Td).mediaState = {
27113
+ send: { state: hi.NEW, reconnected: false },
27114
+ recv: { state: hi.NEW, reconnected: false }
27115
27115
  }, Y.hasFeature(se.FORCE_RELAY) && T(this, Xr, "relay"), F(this, mc, kp).call(this);
27116
27116
  }
27117
27117
  get socket() {
27118
- return o(this, zi);
27118
+ return o(this, Yi);
27119
27119
  }
27120
27120
  get socketHandler() {
27121
- return o(this, Ea);
27121
+ return o(this, _a);
27122
27122
  }
27123
27123
  get sendTransport() {
27124
27124
  return o(this, vt);
@@ -27127,10 +27127,10 @@ class M1 extends Et.EventEmitter {
27127
27127
  return o(this, yt);
27128
27128
  }
27129
27129
  get events() {
27130
- return o(this, _a);
27130
+ return o(this, Pa);
27131
27131
  }
27132
27132
  get nodeType() {
27133
- return o(this, Ca);
27133
+ return o(this, Ra);
27134
27134
  }
27135
27135
  createTransports(t) {
27136
27136
  return u(this, null, function* () {
@@ -27148,7 +27148,7 @@ class M1 extends Et.EventEmitter {
27148
27148
  config: {
27149
27149
  enableHighBitrate: (l = (d = (c = o(this, pr).getValue("defaults").mediaConfiguration) == null ? void 0 : c.audio) == null ? void 0 : d.enableHighBitrate) != null ? l : false,
27150
27150
  enableStereo: (y = (m = (g = o(this, pr).getValue("defaults").mediaConfiguration) == null ? void 0 : g.audio) == null ? void 0 : m.enableStereo) != null ? y : false,
27151
- enableDtx: o(this, Ca) === nt.HIVE ? true : !!P
27151
+ enableDtx: o(this, Ra) === nt.HIVE ? true : !!P
27152
27152
  },
27153
27153
  iceTransportPolicy: o(this, Xr)
27154
27154
  });
@@ -27196,10 +27196,10 @@ class M1 extends Et.EventEmitter {
27196
27196
  });
27197
27197
  try {
27198
27198
  if (t.closed)
27199
- throw new ki("Cannot reconnect closed transport");
27199
+ throw new Ai("Cannot reconnect closed transport");
27200
27200
  yield F(this, dl, my).call(this, t);
27201
27201
  } catch (l) {
27202
- if (l instanceof ki) {
27202
+ if (l instanceof Ai) {
27203
27203
  d(l);
27204
27204
  return;
27205
27205
  }
@@ -27225,10 +27225,10 @@ class M1 extends Et.EventEmitter {
27225
27225
  throw new Error("Method not implemented.");
27226
27226
  }
27227
27227
  }
27228
- pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakSet(), Td = function() {
27228
+ pr = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakSet(), Td = function() {
27229
27229
  return o(this, pr).getValue("connectionHandler");
27230
27230
  }, mc = /* @__PURE__ */ new WeakSet(), kp = function() {
27231
- T(this, Yi, {
27231
+ T(this, Qi, {
27232
27232
  send: void 0,
27233
27233
  recv: void 0
27234
27234
  });
@@ -27237,10 +27237,10 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27237
27237
  const { id: r, direction: i } = t;
27238
27238
  if (p.info(`Connecting ${i} transport`, {
27239
27239
  transport: { id: r, type: i }
27240
- }), !o(this, zi).isConnected)
27241
- throw new ki("Socket is not connected");
27240
+ }), !o(this, Yi).isConnected)
27241
+ throw new Ai("Socket is not connected");
27242
27242
  if (t.connectionState === "closed")
27243
- throw new ki("Transport is closed");
27243
+ throw new Ai("Transport is closed");
27244
27244
  try {
27245
27245
  yield t.connect(
27246
27246
  (n) => F(this, hl, yy).call(this, i, n)
@@ -27248,7 +27248,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27248
27248
  transport: { id: r, serverId: t.serverId, type: i }
27249
27249
  });
27250
27250
  } catch (n) {
27251
- throw o(this, Pa).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new ki(n.message) : n;
27251
+ throw o(this, Ca).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new Ai(n.message) : n;
27252
27252
  }
27253
27253
  });
27254
27254
  }, ll = /* @__PURE__ */ new WeakSet(), fy = function(t) {
@@ -27264,7 +27264,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27264
27264
  });
27265
27265
  return;
27266
27266
  }
27267
- T(this, vt, o(this, Sa).createTransport(j(N({}, t), {
27267
+ T(this, vt, o(this, Ea).createTransport(j(N({}, t), {
27268
27268
  direction: "send"
27269
27269
  }))), J.configureSendTransport(o(this, vt));
27270
27270
  });
@@ -27281,7 +27281,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27281
27281
  });
27282
27282
  return;
27283
27283
  }
27284
- T(this, yt, o(this, Sa).createTransport(j(N({}, t), {
27284
+ T(this, yt, o(this, Ea).createTransport(j(N({}, t), {
27285
27285
  direction: "recv"
27286
27286
  }))), J.configureRecvTransport(o(this, yt));
27287
27287
  });
@@ -27300,15 +27300,15 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27300
27300
  }
27301
27301
  );
27302
27302
  const a = () => {
27303
- const c = o(this, Yi)[r];
27304
- c !== void 0 && (clearTimeout(c), o(this, Yi)[r] = void 0);
27303
+ const c = o(this, Qi)[r];
27304
+ c !== void 0 && (clearTimeout(c), o(this, Qi)[r] = void 0);
27305
27305
  };
27306
27306
  switch (n) {
27307
27307
  case "connected":
27308
- a(), o(this, Pa).lastConnectionTime = performance.now();
27308
+ a(), o(this, Ca).lastConnectionTime = performance.now();
27309
27309
  break;
27310
27310
  case "disconnected":
27311
- o(this, Yi)[r] = setTimeout(() => u(this, null, function* () {
27311
+ o(this, Qi)[r] = setTimeout(() => u(this, null, function* () {
27312
27312
  yield F(this, fc, Ap).call(this, t);
27313
27313
  }), D1);
27314
27314
  break;
@@ -27367,7 +27367,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27367
27367
  },
27368
27368
  producers: []
27369
27369
  };
27370
- return o(this, Ea).connectTransport(c);
27370
+ return o(this, _a).connectTransport(c);
27371
27371
  } catch (n) {
27372
27372
  throw p.error(
27373
27373
  `Error in ${t} transport connection:`,
@@ -27381,7 +27381,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27381
27381
  const { direction: r } = t;
27382
27382
  switch (Y.hasFeature(
27383
27383
  se.HIVE_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED
27384
- ) && o(this, zi).isConnected && o(this, Pa).transportFailureCount[r] > 2 && (p.warn(`Multiple disconnections in ${r} transport, forcing relay`), T(this, Xr, "relay")), yield this.createTransports({ [r]: true }), r) {
27384
+ ) && o(this, Yi).isConnected && o(this, Ca).transportFailureCount[r] > 2 && (p.warn(`Multiple disconnections in ${r} transport, forcing relay`), T(this, Xr, "relay")), yield this.createTransports({ [r]: true }), r) {
27385
27385
  case "send": {
27386
27386
  yield this.connectTransportWithRetry(o(this, vt)), p.info("Transport reconnected", { transport: o(this, vt) }), A.emit(I.RESET_PRODUCER_STATE);
27387
27387
  break;
@@ -27394,20 +27394,20 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27394
27394
  p.warn("Unknown transport direction", { transport: t });
27395
27395
  }
27396
27396
  F(this, gc, Ip).call(this, {
27397
- state: pi.CONNECTED,
27397
+ state: hi.CONNECTED,
27398
27398
  direction: r
27399
27399
  });
27400
27400
  });
27401
27401
  }, gc = /* @__PURE__ */ new WeakSet(), Ip = function(t) {
27402
27402
  const { state: r, direction: i } = t;
27403
- o(this, Ra, Td).mediaState[i] = {
27403
+ o(this, wa, Td).mediaState[i] = {
27404
27404
  state: r,
27405
27405
  reconnected: true
27406
27406
  }, A.emit(
27407
27407
  I.TRANSPORT_STATE_UPDATE,
27408
27408
  N({
27409
27409
  transport: i
27410
- }, o(this, Ra, Td).mediaState[i])
27410
+ }, o(this, wa, Td).mediaState[i])
27411
27411
  );
27412
27412
  };
27413
27413
  var ml, Ty;
@@ -27645,7 +27645,7 @@ class Rh {
27645
27645
  });
27646
27646
  }
27647
27647
  }
27648
- var wa, Qi, Zr, ba, vc, Ws, fl, hr, ka, gl, Sy, yc, Dp, vl, Ey, yl, _y, Tl, Py, Sl, Cy, El, Ry, _l, wy;
27648
+ var ba, Xi, Zr, ka, vc, Ws, fl, hr, Aa, gl, Sy, yc, Dp, vl, Ey, yl, _y, Tl, Py, Sl, Cy, El, Ry, _l, wy;
27649
27649
  class L1 extends M1 {
27650
27650
  constructor(t, r, i) {
27651
27651
  super(t, r, i);
@@ -27657,10 +27657,10 @@ class L1 extends M1 {
27657
27657
  v(this, Sl);
27658
27658
  v(this, El);
27659
27659
  v(this, _l);
27660
- v(this, wa, void 0);
27661
- v(this, Qi, void 0);
27662
- v(this, Zr, void 0);
27663
27660
  v(this, ba, void 0);
27661
+ v(this, Xi, void 0);
27662
+ v(this, Zr, void 0);
27663
+ v(this, ka, void 0);
27664
27664
  v(this, vc, void 0);
27665
27665
  v(this, Ws, void 0);
27666
27666
  v(this, fl, {
@@ -27669,26 +27669,26 @@ class L1 extends M1 {
27669
27669
  producerNotReadyFailureCount: 0
27670
27670
  });
27671
27671
  v(this, hr, []);
27672
- v(this, ka, void 0);
27673
- T(this, wa, t), o(this, gl, Sy).mediaState = {
27674
- send: { state: pi.NEW, reconnected: false },
27675
- recv: { state: pi.NEW, reconnected: false }
27672
+ v(this, Aa, void 0);
27673
+ T(this, ba, t), o(this, gl, Sy).mediaState = {
27674
+ send: { state: hi.NEW, reconnected: false },
27675
+ recv: { state: hi.NEW, reconnected: false }
27676
27676
  }, this.reset();
27677
27677
  }
27678
27678
  get socketHandler() {
27679
27679
  return super.socketHandler;
27680
27680
  }
27681
27681
  get producers() {
27682
- return o(this, Qi);
27682
+ return o(this, Xi);
27683
27683
  }
27684
27684
  get consumers() {
27685
27685
  return o(this, Zr);
27686
27686
  }
27687
27687
  get producerIdToConsumerIdMap() {
27688
- return o(this, ba);
27688
+ return o(this, ka);
27689
27689
  }
27690
27690
  reset() {
27691
- T(this, Qi, /* @__PURE__ */ new Map()), T(this, Zr, /* @__PURE__ */ new Map()), T(this, ba, /* @__PURE__ */ new Map());
27691
+ T(this, Xi, /* @__PURE__ */ new Map()), T(this, Zr, /* @__PURE__ */ new Map()), T(this, ka, /* @__PURE__ */ new Map());
27692
27692
  }
27693
27693
  setupTransports(t) {
27694
27694
  return u(this, null, function* () {
@@ -27723,21 +27723,21 @@ class L1 extends M1 {
27723
27723
  }
27724
27724
  r != null && r.stopTrack && i.track.stop();
27725
27725
  try {
27726
- yield this.sendTransport.closeProducer(i), (n = o(this, wa).getValue("modules").e2ee) != null && n.enabled && A.emit(I.E2EE_INACTIVE_PRODUCER, i);
27726
+ yield this.sendTransport.closeProducer(i), (n = o(this, ba).getValue("modules").e2ee) != null && n.enabled && A.emit(I.E2EE_INACTIVE_PRODUCER, i);
27727
27727
  } catch (a) {
27728
27728
  p.error("Failed to close producer on server", { error: a, producer: i });
27729
27729
  }
27730
27730
  });
27731
27731
  }
27732
27732
  closeAllProducers() {
27733
- return Promise.all(Array.from(o(this, Qi).entries()).map(([, t]) => t.close()));
27733
+ return Promise.all(Array.from(o(this, Xi).entries()).map(([, t]) => t.close()));
27734
27734
  }
27735
27735
  createConsumer(t) {
27736
27736
  return this.createConsumers([t]);
27737
27737
  }
27738
27738
  createConsumers(t) {
27739
27739
  return u(this, null, function* () {
27740
- o(this, ka) || clearTimeout(o(this, ka)), T(this, hr, o(this, hr).concat(t)), yield F(this, yc, Dp).call(this);
27740
+ o(this, Aa) || clearTimeout(o(this, Aa)), T(this, hr, o(this, hr).concat(t)), yield F(this, yc, Dp).call(this);
27741
27741
  });
27742
27742
  }
27743
27743
  closeConsumer(t) {
@@ -27775,8 +27775,8 @@ class L1 extends M1 {
27775
27775
  });
27776
27776
  }
27777
27777
  }
27778
- wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), fl = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), gl = /* @__PURE__ */ new WeakSet(), Sy = function() {
27779
- return o(this, wa).getValue("connectionHandler");
27778
+ ba = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), fl = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), gl = /* @__PURE__ */ new WeakSet(), Sy = function() {
27779
+ return o(this, ba).getValue("connectionHandler");
27780
27780
  }, yc = /* @__PURE__ */ new WeakSet(), Dp = function() {
27781
27781
  return u(this, null, function* () {
27782
27782
  if (!this.recvTransport || this.recvTransport.closed)
@@ -27791,7 +27791,7 @@ wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /*
27791
27791
  F(this, El, Ry).bind(this),
27792
27792
  o(this, Ws).negotiate.bind(o(this, Ws))
27793
27793
  );
27794
- n.forEach(F(this, _l, wy).bind(this)), a != null && a.length && (p.error("Failed to create consumers for producers", { producers: a }), T(this, hr, o(this, hr).concat(a)), T(this, ka, setTimeout(
27794
+ n.forEach(F(this, _l, wy).bind(this)), a != null && a.length && (p.error("Failed to create consumers for producers", { producers: a }), T(this, hr, o(this, hr).concat(a)), T(this, Aa, setTimeout(
27795
27795
  F(this, yc, Dp).bind(this),
27796
27796
  t
27797
27797
  )));
@@ -27806,7 +27806,7 @@ wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /*
27806
27806
  }, yl = /* @__PURE__ */ new WeakSet(), _y = function() {
27807
27807
  return u(this, null, function* () {
27808
27808
  switch (this.recvTransport.on("connect", () => {
27809
- o(this, ba).clear();
27809
+ o(this, ka).clear();
27810
27810
  }), yield this.connectTransportWithRetry(this.recvTransport), this.nodeType) {
27811
27811
  case nt.CF: {
27812
27812
  T(this, Ws, new N1(
@@ -27852,7 +27852,7 @@ wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /*
27852
27852
  this.producers.delete(t.id), r();
27853
27853
  })), t.on("trackended", () => {
27854
27854
  p.info("producer::trackended", { producer: j(N({}, t), { status: "UNKNOWN" }) });
27855
- }), o(this, Qi).set(t.id, t);
27855
+ }), o(this, Xi).set(t.id, t);
27856
27856
  }, El = /* @__PURE__ */ new WeakSet(), Ry = function(t) {
27857
27857
  return u(this, null, function* () {
27858
27858
  try {
@@ -27877,7 +27877,7 @@ wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /*
27877
27877
  peerId: t.peerId
27878
27878
  });
27879
27879
  };
27880
- var Tc, Sc, Ec, Aa, Ia, Da, _c, Pc, Ma, Nt, Rs, ws, Xi, Zi, mr, Cc, Pl, by, Cl, ky, Rl, Ay, wl, Iy;
27880
+ var Tc, Sc, Ec, Ia, Da, Ma, _c, Pc, Oa, Nt, Rs, ws, Zi, en, mr, Cc, Pl, by, Cl, ky, Rl, Ay, wl, Iy;
27881
27881
  const bl = class {
27882
27882
  constructor({
27883
27883
  initialEnergyThreshold: e = 0.015,
@@ -27896,20 +27896,20 @@ const bl = class {
27896
27896
  v(this, Tc, void 0);
27897
27897
  v(this, Sc, void 0);
27898
27898
  v(this, Ec, void 0);
27899
- v(this, Aa, void 0);
27900
27899
  v(this, Ia, void 0);
27901
27900
  v(this, Da, void 0);
27901
+ v(this, Ma, void 0);
27902
27902
  v(this, _c, void 0);
27903
27903
  v(this, Pc, void 0);
27904
- v(this, Ma, void 0);
27904
+ v(this, Oa, void 0);
27905
27905
  v(this, Nt, void 0);
27906
27906
  v(this, Rs, void 0);
27907
27907
  v(this, ws, false);
27908
- v(this, Xi, 0);
27909
27908
  v(this, Zi, 0);
27909
+ v(this, en, 0);
27910
27910
  v(this, mr, []);
27911
27911
  v(this, Cc, void 0);
27912
- T(this, Aa, e), T(this, Nt, e), T(this, Tc, t), T(this, Sc, r), T(this, Ec, i), T(this, Ia, n), T(this, Da, a), T(this, _c, c), T(this, Pc, d), T(this, Ma, l), T(this, Cc, g), T(this, Rs, e / 2);
27912
+ T(this, Ia, e), T(this, Nt, e), T(this, Tc, t), T(this, Sc, r), T(this, Ec, i), T(this, Da, n), T(this, Ma, a), T(this, _c, c), T(this, Pc, d), T(this, Oa, l), T(this, Cc, g), T(this, Rs, e / 2);
27913
27913
  }
27914
27914
  get voiceDetected() {
27915
27915
  return o(this, ws);
@@ -27917,22 +27917,22 @@ const bl = class {
27917
27917
  processAudioChunk(e) {
27918
27918
  var a, c;
27919
27919
  const t = F(a = bl, Rl, Ay).call(a, e), r = F(c = bl, wl, Iy).call(c, e);
27920
- return F(this, Pl, by).call(this, t), t / o(this, Rs) > o(this, Ma) && t > o(this, Nt) && r > o(this, Tc) ? (T(this, Xi, o(this, Xi) + 1), T(this, Zi, o(this, Ec)), o(this, Xi) >= o(this, Sc) && T(this, ws, true)) : (T(this, Xi, 0), o(this, Zi) > 0 ? T(this, Zi, o(this, Zi) - 1) : o(this, ws) && T(this, ws, false), o(this, ws) || F(this, Cl, ky).call(this, t)), { energy: t, isVoice: o(this, ws) };
27920
+ return F(this, Pl, by).call(this, t), t / o(this, Rs) > o(this, Oa) && t > o(this, Nt) && r > o(this, Tc) ? (T(this, Zi, o(this, Zi) + 1), T(this, en, o(this, Ec)), o(this, Zi) >= o(this, Sc) && T(this, ws, true)) : (T(this, Zi, 0), o(this, en) > 0 ? T(this, en, o(this, en) - 1) : o(this, ws) && T(this, ws, false), o(this, ws) || F(this, Cl, ky).call(this, t)), { energy: t, isVoice: o(this, ws) };
27921
27921
  }
27922
27922
  reset() {
27923
- T(this, ws, false), T(this, Xi, 0), T(this, Zi, 0), T(this, Nt, o(this, Aa)), T(this, Rs, o(this, Aa) / 2), T(this, mr, []);
27923
+ T(this, ws, false), T(this, Zi, 0), T(this, en, 0), T(this, Nt, o(this, Ia)), T(this, Rs, o(this, Ia) / 2), T(this, mr, []);
27924
27924
  }
27925
27925
  getThresholdInfo() {
27926
27926
  return {
27927
27927
  currentEnergyThreshold: o(this, Nt),
27928
27928
  backgroundNoiseEnergy: o(this, Rs),
27929
- energyRatioThreshold: o(this, Ma)
27929
+ energyRatioThreshold: o(this, Oa)
27930
27930
  };
27931
27931
  }
27932
27932
  };
27933
27933
  let bo = bl;
27934
- Tc = /* @__PURE__ */ new WeakMap(), Sc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), Cc = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakSet(), by = function(e) {
27935
- o(this, ws) ? T(this, Nt, o(this, Da) * o(this, Nt) + (1 - o(this, Da)) * e) : T(this, Nt, o(this, Ia) * o(this, Nt) + (1 - o(this, Ia)) * o(this, Rs)), T(this, Nt, Math.max(
27934
+ Tc = /* @__PURE__ */ new WeakMap(), Sc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), Cc = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakSet(), by = function(e) {
27935
+ o(this, ws) ? T(this, Nt, o(this, Ma) * o(this, Nt) + (1 - o(this, Ma)) * e) : T(this, Nt, o(this, Da) * o(this, Nt) + (1 - o(this, Da)) * o(this, Rs)), T(this, Nt, Math.max(
27936
27936
  o(this, _c),
27937
27937
  Math.min(o(this, Pc), o(this, Nt))
27938
27938
  ));
@@ -27954,7 +27954,7 @@ Tc = /* @__PURE__ */ new WeakMap(), Sc = /* @__PURE__ */ new WeakMap(), Ec = /*
27954
27954
  return t;
27955
27955
  }, v(bo, Rl), v(bo, wl);
27956
27956
  const x1 = 60, V1 = 400;
27957
- var ei, ti, bs, Oa, si, Na, en, La, fr, ri, xa, kl, Dy, Rc, Mp, Al, My, Il, Oy;
27957
+ var ei, ti, bs, si, ri, Na, tn, La, fr, ii, xa, kl, Dy, Rc, Mp, Al, My, Il, Oy;
27958
27958
  const Uo = class {
27959
27959
  constructor(e) {
27960
27960
  v(this, kl);
@@ -27962,15 +27962,15 @@ const Uo = class {
27962
27962
  v(this, ei, void 0);
27963
27963
  v(this, ti, void 0);
27964
27964
  v(this, bs, void 0);
27965
- v(this, Oa, void 0);
27966
27965
  v(this, si, void 0);
27966
+ v(this, ri, void 0);
27967
27967
  v(this, Na, void 0);
27968
- v(this, en, void 0);
27968
+ v(this, tn, void 0);
27969
27969
  v(this, La, void 0);
27970
27970
  v(this, fr, void 0);
27971
- v(this, ri, void 0);
27971
+ v(this, ii, void 0);
27972
27972
  v(this, xa, void 0);
27973
- this.reportRequest = e, T(this, Oa, new AudioContext()), T(this, si, o(this, Oa).createAnalyser()), o(this, si).fftSize = 2048, T(this, La, new bo());
27973
+ this.reportRequest = e, T(this, si, new AudioContext()), T(this, ri, o(this, si).createAnalyser()), o(this, ri).fftSize = 2048, T(this, La, new bo());
27974
27974
  }
27975
27975
  set producerId(e) {
27976
27976
  T(this, bs, e);
@@ -27978,7 +27978,7 @@ const Uo = class {
27978
27978
  set audioTrack(e) {
27979
27979
  T(this, Na, e);
27980
27980
  const t = new MediaStream();
27981
- t.addTrack(o(this, Na)), o(this, Oa).createMediaStreamSource(t).connect(o(this, si));
27981
+ t.addTrack(o(this, Na)), o(this, si).createMediaStreamSource(t).connect(o(this, ri));
27982
27982
  }
27983
27983
  start() {
27984
27984
  p.debug(`AudioActivityReporter: Starting audio activity reporter: ${o(this, bs)}`), o(this, ei) && clearInterval$1(o(this, ei)), T(this, ei, setInterval$1(() => u(this, null, function* () {
@@ -27987,7 +27987,7 @@ const Uo = class {
27987
27987
  return;
27988
27988
  const { energy: e } = F(this, kl, Dy).call(this), t = F(i = Uo, Rc, Mp).call(i, e);
27989
27989
  let r = 0.9;
27990
- o(this, xa) !== t && o(this, xa) ? r = 0.9 : t ? r = 0.3 : r = 0.5, T(this, en, (o(this, en) || 0) * (1 - r) + e * r);
27990
+ o(this, xa) !== t && o(this, xa) ? r = 0.9 : t ? r = 0.3 : r = 0.5, T(this, tn, (o(this, tn) || 0) * (1 - r) + e * r);
27991
27991
  }), x1)), o(this, ti) && clearInterval$1(o(this, ti)), T(this, ti, setInterval$1(
27992
27992
  F(this, Al, My).bind(this),
27993
27993
  V1
@@ -27998,19 +27998,24 @@ const Uo = class {
27998
27998
  }
27999
27999
  };
28000
28000
  let ko = Uo;
28001
- ei = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), kl = /* @__PURE__ */ new WeakSet(), Dy = function() {
28001
+ ei = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), kl = /* @__PURE__ */ new WeakSet(), Dy = function() {
28002
28002
  var a;
28003
- const e = new Float32Array(o(this, si).frequencyBinCount);
28004
- o(this, si).getFloatTimeDomainData(e);
28003
+ o(this, si).state === "suspended" && o(this, si).resume().then(() => {
28004
+ p.debug("AudioActivityReporter: AudioContext forced resumed");
28005
+ }).catch((c) => {
28006
+ p.error("AudioActivityReporter: Error resuming AudioContext", c);
28007
+ });
28008
+ const e = new Float32Array(o(this, ri).frequencyBinCount);
28009
+ o(this, ri).getFloatTimeDomainData(e);
28005
28010
  const { energy: t, isVoice: r } = o(this, La).processAudioChunk(e), i = F(a = Uo, Il, Oy).call(a, t);
28006
28011
  return Y.hasFeature(se.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && p.debug(
28007
- `AudioActivityReporter: producer: ${o(this, bs)}, energy: ${o(this, en)},
28012
+ `AudioActivityReporter: producer: ${o(this, bs)}, energy: ${o(this, tn)},
28008
28013
  slogScale: ${i}, isVoice: ${r}, minEnergy: ${o(this, fr)},
28009
- maxEnergy: ${o(this, ri)}`
28010
- ), i === -1 / 0 || t < 1e-6 ? { energy: 0, isVoice: false } : ((!o(this, fr) || i < o(this, fr)) && T(this, fr, i), (!o(this, ri) || i > o(this, ri)) && T(this, ri, i), { energy: (i - o(this, fr)) / (o(this, ri) - o(this, fr)) * 10 || 0, isVoice: r });
28014
+ maxEnergy: ${o(this, ii)}`
28015
+ ), i === -1 / 0 || t < 1e-6 ? { energy: 0, isVoice: false } : ((!o(this, fr) || i < o(this, fr)) && T(this, fr, i), (!o(this, ii) || i > o(this, ii)) && T(this, ii, i), { energy: (i - o(this, fr)) / (o(this, ii) - o(this, fr)) * 10 || 0, isVoice: r });
28011
28016
  }, Rc = /* @__PURE__ */ new WeakSet(), Mp = function(e) {
28012
28017
  return e < 5;
28013
- }, Al = /* @__PURE__ */ new WeakSet(), My = function(e = o(this, en)) {
28018
+ }, Al = /* @__PURE__ */ new WeakSet(), My = function(e = o(this, tn)) {
28014
28019
  var r;
28015
28020
  if (!o(this, bs) || !e) {
28016
28021
  Y.hasFeature(se.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && p.debug(`AudioActivityReporter: No producerId or energy to report: ${o(this, bs)}`);
@@ -28048,12 +28053,12 @@ var F1 = Object.defineProperty, B1 = Object.getOwnPropertyDescriptor, le = (s, e
28048
28053
  return r && i && F1(e, t, i), i;
28049
28054
  };
28050
28055
  const Us = ["video/VP9", "video/VP8"];
28051
- var wc, bc, Tt, W, Va, ii, kt, tn, sn, ni, kc, gr, Ua, rn, nn, At, Lt, ai, Cn, lt, Ct, an, Ao, Dl, Ny, Ml, Ly, Ol, xy;
28056
+ var wc, bc, Tt, W, Va, ni, kt, sn, rn, ai, kc, gr, Ua, nn, an, At, Lt, oi, Rn, lt, Ct, on, Ao, Dl, Ny, Ml, Ly, Ol, xy;
28052
28057
  class oe {
28053
28058
  constructor(e, t, r) {
28054
- v(this, ai);
28059
+ v(this, oi);
28055
28060
  v(this, lt);
28056
- v(this, an);
28061
+ v(this, on);
28057
28062
  v(this, Dl);
28058
28063
  v(this, Ml);
28059
28064
  v(this, Ol);
@@ -28065,16 +28070,16 @@ class oe {
28065
28070
  v(this, Tt, void 0);
28066
28071
  v(this, W, void 0);
28067
28072
  v(this, Va, void 0);
28068
- v(this, ii, void 0);
28073
+ v(this, ni, void 0);
28069
28074
  v(this, kt, void 0);
28070
- v(this, tn, void 0);
28071
28075
  v(this, sn, void 0);
28072
- v(this, ni, void 0);
28076
+ v(this, rn, void 0);
28077
+ v(this, ai, void 0);
28073
28078
  v(this, kc, void 0);
28074
28079
  v(this, gr, void 0);
28075
28080
  v(this, Ua, void 0);
28076
- v(this, rn, void 0);
28077
28081
  v(this, nn, void 0);
28082
+ v(this, an, void 0);
28078
28083
  v(this, At, void 0);
28079
28084
  v(this, Lt, void 0);
28080
28085
  f(this, "partialJoinRoomPromise");
@@ -28083,17 +28088,17 @@ class oe {
28083
28088
  const {
28084
28089
  socket: i
28085
28090
  } = r;
28086
- this.mediaJoined = false, T(this, rn, /* @__PURE__ */ new Map([
28091
+ this.mediaJoined = false, T(this, nn, /* @__PURE__ */ new Map([
28087
28092
  ["video/VP9", /* @__PURE__ */ new Set()],
28088
28093
  ["video/VP8", /* @__PURE__ */ new Set()]
28089
- ])), T(this, nn, /* @__PURE__ */ new Map([
28094
+ ])), T(this, an, /* @__PURE__ */ new Map([
28090
28095
  ["video/VP9", /* @__PURE__ */ new Set()],
28091
28096
  ["video/VP8", /* @__PURE__ */ new Set()]
28092
- ])), T(this, ii, t), T(this, Tt, i), T(this, tn, false), T(this, W, new L1(e, i, t)), T(this, kt, o(this, W).events), T(this, gr, /* @__PURE__ */ new Set()), T(this, At, /* @__PURE__ */ new Map()), T(this, sn, false), T(this, ni, new $d()), t === nt.CF && T(this, Lt, new ko(
28097
+ ])), T(this, ni, t), T(this, Tt, i), T(this, sn, false), T(this, W, new L1(e, i, t)), T(this, kt, o(this, W).events), T(this, gr, /* @__PURE__ */ new Set()), T(this, At, /* @__PURE__ */ new Map()), T(this, rn, false), T(this, ai, new $d()), t === nt.CF && T(this, Lt, new ko(
28093
28098
  o(this, W).socketHandler.audioActivity.bind(o(this, W).socketHandler)
28094
28099
  )), this.e2ee = (a = (n = e.getValue("modules").e2ee) == null ? void 0 : n.enabled) != null ? a : false, this.handleSocketEvents(), this.handleCallstatsEvents(), T(this, kc, Dd(
28095
28100
  () => u(this, null, function* () {
28096
- if (!o(this, ai, Cn).mediaJoinAttempted)
28101
+ if (!o(this, oi, Rn).mediaJoinAttempted)
28097
28102
  return;
28098
28103
  const { roomJoined: c } = yield this.joinRoom(
28099
28104
  o(this, bc),
@@ -28112,17 +28117,17 @@ class oe {
28112
28117
  return this.context.getValue("peerId");
28113
28118
  }
28114
28119
  get mediaJoined() {
28115
- return o(this, ai, Cn).mediaJoined;
28120
+ return o(this, oi, Rn).mediaJoined;
28116
28121
  }
28117
28122
  set mediaJoined(e) {
28118
- o(this, ai, Cn).mediaJoined = e;
28123
+ o(this, oi, Rn).mediaJoined = e;
28119
28124
  }
28120
28125
  reset(e = true) {
28121
- o(this, W).closeAllProducers(), o(this, W).closeAllConsumers(), o(this, At).clear(), o(this, gr).clear(), e && (this.partialJoinRoomPromise = void 0, o(this, ni).stop(), o(this, W).stopAllTransports(), o(this, W).reset(), T(this, ni, new $d()));
28126
+ o(this, W).closeAllProducers(), o(this, W).closeAllConsumers(), o(this, At).clear(), o(this, gr).clear(), e && (this.partialJoinRoomPromise = void 0, o(this, ai).stop(), o(this, W).stopAllTransports(), o(this, W).reset(), T(this, ai, new $d()));
28122
28127
  }
28123
28128
  joinRoom(a, c) {
28124
28129
  return u(this, arguments, function* (e, t, r = {}, i = false, n = false) {
28125
- o(this, ai, Cn).mediaJoinAttempted = true, T(this, tn, true), this.reset(i);
28130
+ o(this, oi, Rn).mediaJoinAttempted = true, T(this, sn, true), this.reset(i);
28126
28131
  const d = ut().ipInfo;
28127
28132
  if (d != null && d.loc && !o(this, Ua)) {
28128
28133
  const g = d.loc.split(",");
@@ -28133,7 +28138,7 @@ class oe {
28133
28138
  }
28134
28139
  let l;
28135
28140
  try {
28136
- return l = yield o(this, ni).push(
28141
+ return l = yield o(this, ai).push(
28137
28142
  () => this._joinRoom(
28138
28143
  e,
28139
28144
  t,
@@ -28188,12 +28193,12 @@ class oe {
28188
28193
  se.ENABLE_HIVE_INFINITE_RETRIES
28189
28194
  ) ? 1 / 0 : 3
28190
28195
  }
28191
- ), yield o(this, W).setupTransports({ send: true, recv: true }), o(this, ii) !== nt.HIVE && Y.hasFeature(se.PRECREATE_PRODUCERS) && (this.shareWebcam($1()), this.shareMic(U1()));
28196
+ ), yield o(this, W).setupTransports({ send: true, recv: true }), o(this, ni) !== nt.HIVE && Y.hasFeature(se.PRECREATE_PRODUCERS) && (this.shareWebcam($1()), this.shareMic(U1()));
28192
28197
  });
28193
28198
  }
28194
28199
  partialJoinRoom(e, t, r = false, i = void 0) {
28195
28200
  return u(this, null, function* () {
28196
- return this.partialJoinRoomPromise = o(this, ni).push(() => this._partialJoinRoom(
28201
+ return this.partialJoinRoomPromise = o(this, ai).push(() => this._partialJoinRoom(
28197
28202
  e,
28198
28203
  t,
28199
28204
  r,
@@ -28240,7 +28245,7 @@ class oe {
28240
28245
  try {
28241
28246
  this.mediaJoined = true;
28242
28247
  const { roomState: e } = yield o(this, W).socketHandler.notifySelfJoinComplete();
28243
- return T(this, wc, e.roomUuid), T(this, sn, true), T(this, tn, false), true;
28248
+ return T(this, wc, e.roomUuid), T(this, rn, true), T(this, sn, false), true;
28244
28249
  } catch (e) {
28245
28250
  return p.error("error on completing join room:", { error: e }), this.mediaJoined = false, false;
28246
28251
  }
@@ -28248,7 +28253,7 @@ class oe {
28248
28253
  }
28249
28254
  leaveRoom() {
28250
28255
  return u(this, null, function* () {
28251
- o(this, W).stopAllTransports(), T(this, sn, false), o(this, ai, Cn).mediaJoinAttempted = false;
28256
+ o(this, W).stopAllTransports(), T(this, rn, false), o(this, oi, Rn).mediaJoinAttempted = false;
28252
28257
  const e = {
28253
28258
  closeRoom: false
28254
28259
  };
@@ -28329,8 +28334,8 @@ class oe {
28329
28334
  }
28330
28335
  return this._shareWebcam(e, t);
28331
28336
  }
28332
- const n = F(this, Ol, xy).call(this, e, t), a = Od(this.context, "disableSimulcast"), c = o(this, ii) === nt.CF ? se.ENABLE_CF_SIMULCAST : se.ENABLE_HIVE_SIMULCAST;
28333
- !a && Y.hasFeature(c) ? (p.info(`Simulcast enabled for SFU: ${o(this, ii)}`), n.encodings = lO(e)) : p.info(`Simulcast disabled for webcam producer, SFU: ${o(this, ii)}`), Y.hasFeature(se.TRACK_HINT) && (n.track.contentHint = Y.getValue(
28337
+ const n = F(this, Ol, xy).call(this, e, t), a = Od(this.context, "disableSimulcast"), c = o(this, ni) === nt.CF ? se.ENABLE_CF_SIMULCAST : se.ENABLE_HIVE_SIMULCAST;
28338
+ !a && Y.hasFeature(c) ? (p.info(`Simulcast enabled for SFU: ${o(this, ni)}`), n.encodings = lO(e)) : p.info(`Simulcast disabled for webcam producer, SFU: ${o(this, ni)}`), Y.hasFeature(se.TRACK_HINT) && (n.track.contentHint = Y.getValue(
28334
28339
  se.TRACK_HINT
28335
28340
  ));
28336
28341
  const d = () => {
@@ -28339,7 +28344,7 @@ class oe {
28339
28344
  n,
28340
28345
  d
28341
28346
  );
28342
- return F(this, an, Ao).call(this, r, l.then((g) => g.id)), l.then((g) => g.track);
28347
+ return F(this, on, Ao).call(this, r, l.then((g) => g.id)), l.then((g) => g.track);
28343
28348
  });
28344
28349
  }
28345
28350
  shareWebcam(e) {
@@ -28356,7 +28361,7 @@ class oe {
28356
28361
  var r, i;
28357
28362
  return ((i = (r = o(this, Va).sender) == null ? void 0 : r.video) == null ? void 0 : i.codecs.findIndex(
28358
28363
  (n) => n.mimeType === t
28359
- )) >= 0 && o(this, nn).get(t).size > 0 ? (p.debug(
28364
+ )) >= 0 && o(this, an).get(t).size > 0 ? (p.debug(
28360
28365
  `Calling _shareWebcam with video codec: ${t}`
28361
28366
  ), this._shareWebcam(e, t)) : e;
28362
28367
  })
@@ -28387,7 +28392,7 @@ class oe {
28387
28392
  i,
28388
28393
  n
28389
28394
  );
28390
- F(this, an, Ao).call(this, ve.SCREENSHARE_VIDEO, a.then((d) => d.id));
28395
+ F(this, on, Ao).call(this, ve.SCREENSHARE_VIDEO, a.then((d) => d.id));
28391
28396
  let c;
28392
28397
  if (r) {
28393
28398
  const d = {
@@ -28405,7 +28410,7 @@ class oe {
28405
28410
  c = o(this, W).createProducer(
28406
28411
  d,
28407
28412
  l
28408
- ), F(this, an, Ao).call(this, ve.SCREENSHARE_AUDIO, c.then((g) => g.id));
28413
+ ), F(this, on, Ao).call(this, ve.SCREENSHARE_AUDIO, c.then((g) => g.id));
28409
28414
  }
28410
28415
  yield Promise.all([a, c || Promise.resolve()]), J.screenShareStart();
28411
28416
  });
@@ -28435,7 +28440,7 @@ class oe {
28435
28440
  r,
28436
28441
  i
28437
28442
  );
28438
- F(this, an, Ao).call(this, ve.MIC, n.then((a) => a.id)), yield n.then((a) => {
28443
+ F(this, on, Ao).call(this, ve.MIC, n.then((a) => a.id)), yield n.then((a) => {
28439
28444
  o(this, Lt) && (o(this, Lt).audioTrack = a.track, o(this, Lt).producerId = a.id, o(this, Lt).start());
28440
28445
  });
28441
28446
  } catch (t) {
@@ -28665,7 +28670,7 @@ class oe {
28665
28670
  return;
28666
28671
  if (n != null && n.mimeType || (n.mimeType = n.kind === Js.AUDIO ? "audio/opus" : "video/VP8"), n.kind === Js.VIDEO && !n.screenShare && ((r = (t = o(this, Va).receiver) == null ? void 0 : t.video) == null ? void 0 : r.codecs.findIndex(
28667
28672
  (a) => a.mimeType === Us[0]
28668
- )) >= 0 && o(this, rn).get(Us[0]).has(i) && n.mimeType !== Us[0]) {
28673
+ )) >= 0 && o(this, nn).get(Us[0]).has(i) && n.mimeType !== Us[0]) {
28669
28674
  p.warn(`Ignoring producer: ${n.producerId}`);
28670
28675
  return;
28671
28676
  }
@@ -28772,7 +28777,7 @@ class oe {
28772
28777
  ), o(this, Tt).on(
28773
28778
  o(this, kt).mediaRoomTerminationBroadcastResponse,
28774
28779
  () => {
28775
- !this.mediaJoined && !o(this, tn) && !o(this, sn) || (p.warn(
28780
+ !this.mediaJoined && !o(this, sn) && !o(this, rn) || (p.warn(
28776
28781
  "media hub termination broadcast received, rejoining room"
28777
28782
  ), A.emit(I.ROOM_NODE_DISCONNECTED), o(this, kc).call(this));
28778
28783
  }
@@ -28813,7 +28818,7 @@ class oe {
28813
28818
  if (((i = (r = t == null ? void 0 : t.receiver) == null ? void 0 : r.video) == null ? void 0 : i.codecs.findIndex(
28814
28819
  (l) => l.mimeType === d
28815
28820
  )) >= 0 || c === Us.length - 1) {
28816
- o(this, nn).get(d).add(e);
28821
+ o(this, an).get(d).add(e);
28817
28822
  break;
28818
28823
  }
28819
28824
  }
@@ -28822,22 +28827,22 @@ class oe {
28822
28827
  if (((a = (n = t == null ? void 0 : t.sender) == null ? void 0 : n.video) == null ? void 0 : a.codecs.findIndex(
28823
28828
  (l) => l.mimeType === d
28824
28829
  )) >= 0 || c === Us.length - 1) {
28825
- o(this, rn).get(d).add(e);
28830
+ o(this, nn).get(d).add(e);
28826
28831
  break;
28827
28832
  }
28828
28833
  }
28829
28834
  }
28830
28835
  handlePeerLeaving(e) {
28831
- Y.hasFeature(se.FORCE_VIDEO_CODEC) || (o(this, rn).forEach((t) => t.delete(e)), o(this, nn).forEach((t, r) => {
28836
+ Y.hasFeature(se.FORCE_VIDEO_CODEC) || (o(this, nn).forEach((t) => t.delete(e)), o(this, an).forEach((t, r) => {
28832
28837
  t.delete(e), t.size === 0 && this.disableWebcam(r);
28833
28838
  }));
28834
28839
  }
28835
28840
  }
28836
- wc = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), Va = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), kc = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Ua = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakSet(), Cn = function() {
28841
+ wc = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), Va = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), kc = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Ua = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakSet(), Rn = function() {
28837
28842
  return this.context.getValue("connectionHandler");
28838
28843
  }, lt = /* @__PURE__ */ new WeakSet(), Ct = function(e) {
28839
28844
  return o(this, At).get(e);
28840
- }, an = /* @__PURE__ */ new WeakSet(), Ao = function(e, t) {
28845
+ }, on = /* @__PURE__ */ new WeakSet(), Ao = function(e, t) {
28841
28846
  return o(this, At).set(e, t);
28842
28847
  }, Dl = /* @__PURE__ */ new WeakSet(), Ny = function(e) {
28843
28848
  return o(this, At).delete(e);
@@ -28984,22 +28989,22 @@ function Uy(s) {
28984
28989
  }
28985
28990
  s.setValue("roomNodeClient", void 0);
28986
28991
  }
28987
- var H1 = Object.defineProperty, q1 = Object.getOwnPropertyDescriptor, Ti = (s, e, t, r) => {
28992
+ var H1 = Object.defineProperty, q1 = Object.getOwnPropertyDescriptor, Si = (s, e, t, r) => {
28988
28993
  for (var i = r > 1 ? void 0 : r ? q1(e, t) : e, n = s.length - 1, a; n >= 0; n--)
28989
28994
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
28990
28995
  return r && i && H1(e, t, i), i;
28991
- }, oi, ks, St, Kt, Ss, qf;
28996
+ }, ci, ks, St, Kt, Ss, qf;
28992
28997
  const $y = (qf = class {
28993
28998
  constructor(s, e, t, r) {
28994
28999
  v(this, Kt);
28995
29000
  f(this, "self");
28996
29001
  f(this, "authToken");
28997
- v(this, oi, void 0);
29002
+ v(this, ci, void 0);
28998
29003
  f(this, "viewType");
28999
29004
  v(this, ks, void 0);
29000
29005
  v(this, St, void 0);
29001
29006
  const { socket: i } = t, n = s.getValue("authToken");
29002
- this.self = e, T(this, St, s), this.viewType = r, this.authToken = n, T(this, oi, i), T(this, ks, t), e.config.viewType !== Dt.Chat && this.setupEvents();
29007
+ this.self = e, T(this, St, s), this.viewType = r, this.authToken = n, T(this, ci, i), T(this, ks, t), e.config.viewType !== Dt.Chat && this.setupEvents();
29003
29008
  }
29004
29009
  get peerId() {
29005
29010
  return o(this, St).getValue("peerId");
@@ -29124,7 +29129,7 @@ const $y = (qf = class {
29124
29129
  if (this.self.roomState === "disconnected")
29125
29130
  return;
29126
29131
  let { peerId: e } = this;
29127
- s && Y.hasFeature(se.REFRESH_ID_ON_DISCONNECTION) && (e = v4()), o(this, oi).updateURL(e), h.resetPeerId(e), ut().setHeader("dyte-tracing-id", e), on.remapContext(e, o(this, St)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
29132
+ s && Y.hasFeature(se.REFRESH_ID_ON_DISCONNECTION) && (e = v4()), o(this, ci).updateURL(e), h.resetPeerId(e), ut().setHeader("dyte-tracing-id", e), cn.remapContext(e, o(this, St)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
29128
29133
  }), A.on(I.SOCKET_SERVICE_FAILED, () => {
29129
29134
  this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
29130
29135
  }), o(this, ks).on(U.waitingRoomRequestAccepted, () => {
@@ -29192,7 +29197,7 @@ const $y = (qf = class {
29192
29197
  var e, t;
29193
29198
  if (s === "rejected") {
29194
29199
  try {
29195
- (e = o(this, oi)) == null || e.disconnect();
29200
+ (e = o(this, ci)) == null || e.disconnect();
29196
29201
  } catch (r) {
29197
29202
  p.error("SelfController::leaveRoom::socketDisconnect");
29198
29203
  }
@@ -29201,7 +29206,7 @@ const $y = (qf = class {
29201
29206
  }
29202
29207
  this.self.setIsPinned(false), o(this, St).setValue("stageStatus", "OFF_STAGE", false), yield this.leaveMediaRoom(s), o(this, St).notify("stageStatus");
29203
29208
  try {
29204
- (t = o(this, oi)) == null || t.disconnect();
29209
+ (t = o(this, ci)) == null || t.disconnect();
29205
29210
  } catch (r) {
29206
29211
  p.error("SelfController::leaveRoom::socketDisconnect");
29207
29212
  }
@@ -29225,7 +29230,7 @@ const $y = (qf = class {
29225
29230
  return;
29226
29231
  }
29227
29232
  Vy(o(this, St), a, {
29228
- socket: o(this, oi),
29233
+ socket: o(this, ci),
29229
29234
  peerId: e
29230
29235
  });
29231
29236
  }
@@ -29259,32 +29264,32 @@ const $y = (qf = class {
29259
29264
  yield this.self.disableAudio(), yield this.self.disableVideo(), yield this.self.disableScreenShare(), this.self.cleanUpTracks(), this.self.destructMediaHandler(), navigator.isReactNative || this.self.removeDocumentEventListeners();
29260
29265
  });
29261
29266
  }
29262
- }, oi = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakSet(), Ss = function() {
29267
+ }, ci = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakSet(), Ss = function() {
29263
29268
  return o(this, St).getValue("roomNodeClient");
29264
29269
  }, qf);
29265
29270
  let kr = $y;
29266
- Ti([
29271
+ Si([
29267
29272
  h.trace("SelfController.shareMediaTracks")
29268
29273
  ], kr.prototype, "shareMediaTracks", 1);
29269
- Ti([
29274
+ Si([
29270
29275
  h.trace("SelfController.resetSelf")
29271
29276
  ], kr.prototype, "resetSelf", 1);
29272
- Ti([
29277
+ Si([
29273
29278
  h.trace("SelfController.setupEvents")
29274
29279
  ], kr.prototype, "setupEvents", 1);
29275
- Ti([
29280
+ Si([
29276
29281
  h.trace("SelfController.joinRoom")
29277
29282
  ], kr.prototype, "joinRoom", 1);
29278
- Ti([
29283
+ Si([
29279
29284
  h.trace("SelfController.leaveRoom")
29280
29285
  ], kr.prototype, "leaveRoom", 1);
29281
- Ti([
29286
+ Si([
29282
29287
  h.trace("SelfController.joinMediaRoom")
29283
29288
  ], kr.prototype, "joinMediaRoom", 1);
29284
- Ti([
29289
+ Si([
29285
29290
  h.trace("SelfController.leaveMediaRoom")
29286
29291
  ], kr.prototype, "leaveMediaRoom", 1);
29287
- Ti([
29292
+ Si([
29288
29293
  h.trace("SelfController.init")
29289
29294
  ], kr, "init", 1);
29290
29295
  var Ac;
@@ -29517,7 +29522,7 @@ class K1 {
29517
29522
  U.getPeerInfo,
29518
29523
  Iv.toBinary({ peerId: e })
29519
29524
  );
29520
- return En.fromBinary(t.payload);
29525
+ return _n.fromBinary(t.payload);
29521
29526
  });
29522
29527
  }
29523
29528
  }
@@ -29717,10 +29722,10 @@ var Y1 = Object.defineProperty, Q1 = (s, e, t) => e in s ? Y1(s, e, { enumerable
29717
29722
  set exports(s) {
29718
29723
  Hd = s;
29719
29724
  }
29720
- }, On = typeof Reflect == "object" ? Reflect : null, yf = On && typeof On.apply == "function" ? On.apply : function(s, e, t) {
29725
+ }, Nn = typeof Reflect == "object" ? Reflect : null, yf = Nn && typeof Nn.apply == "function" ? Nn.apply : function(s, e, t) {
29721
29726
  return Function.prototype.apply.call(s, e, t);
29722
29727
  }, Sd;
29723
- On && typeof On.ownKeys == "function" ? Sd = On.ownKeys : Object.getOwnPropertySymbols ? Sd = function(s) {
29728
+ Nn && typeof Nn.ownKeys == "function" ? Sd = Nn.ownKeys : Object.getOwnPropertySymbols ? Sd = function(s) {
29724
29729
  return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s));
29725
29730
  } : Sd = function(s) {
29726
29731
  return Object.getOwnPropertyNames(s);
@@ -30018,34 +30023,34 @@ const Ir = {
30018
30023
  warn: 2,
30019
30024
  error: 3
30020
30025
  };
30021
- var Ci, Ri;
30026
+ var Ri, wi;
30022
30027
  class dN {
30023
30028
  constructor(e) {
30024
- Ee(this, Ci, void 0), Ee(this, Ri, void 0), ue(this, Ci, console), ue(this, Ri, e);
30029
+ Ee(this, Ri, void 0), Ee(this, wi, void 0), ue(this, Ri, console), ue(this, wi, e);
30025
30030
  }
30026
30031
  debug(...e) {
30027
- Ir[M(this, Ri)] > Ir.debug || M(this, Ci).debug("[Sockrates]:", ...e);
30032
+ Ir[M(this, wi)] > Ir.debug || M(this, Ri).debug("[Sockrates]:", ...e);
30028
30033
  }
30029
30034
  info(...e) {
30030
- Ir[M(this, Ri)] > Ir.info || M(this, Ci).info("[Sockrates]:", ...e);
30035
+ Ir[M(this, wi)] > Ir.info || M(this, Ri).info("[Sockrates]:", ...e);
30031
30036
  }
30032
30037
  warn(...e) {
30033
- Ir[M(this, Ri)] > Ir.warn || M(this, Ci).warn("[Sockrates]:", ...e);
30038
+ Ir[M(this, wi)] > Ir.warn || M(this, Ri).warn("[Sockrates]:", ...e);
30034
30039
  }
30035
30040
  error(...e) {
30036
- Ir[M(this, Ri)] > Ir.error || M(this, Ci).error("[Sockrates]:", ...e);
30041
+ Ir[M(this, wi)] > Ir.error || M(this, Ri).error("[Sockrates]:", ...e);
30037
30042
  }
30038
30043
  }
30039
- Ci = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap();
30044
+ Ri = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap();
30040
30045
  var zy = /* @__PURE__ */ ((s) => (s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s))(zy || {});
30041
30046
  const lN = "2", uN = "3";
30042
- var $e, Rn, be, ze, Nr, it, Sr, li, As, wn, er, Op, Yy, Io, Ed, Np, Qy, Lp, Ef, qd, xp, Vp, Xy, No, _d, Lo, jd, Gd, Up, Nn, xo, Vo, Wd;
30047
+ var $e, wn, be, ze, Nr, it, Sr, ui, As, bn, er, Op, Yy, Io, Ed, Np, Qy, Lp, Ef, qd, xp, Vp, Xy, No, _d, Lo, jd, Gd, Up, Ln, xo, Vo, Wd;
30043
30048
  class pN {
30044
30049
  constructor(e, t) {
30045
30050
  var G;
30046
- Ee(this, Op), Ee(this, Io), Ee(this, Np), Ee(this, Lp), Ee(this, qd), Ee(this, Vp), Ee(this, No), Ee(this, Lo), Ee(this, Gd), Ee(this, Nn), Ee(this, Vo), Ee(this, $e, void 0), Ee(this, Rn, void 0), Ee(this, be, void 0), Ee(this, ze, void 0), Ee(this, Nr, void 0), Ee(this, it, void 0), Ee(this, Sr, void 0), Ee(this, li, void 0), Ee(this, As, void 0), Ee(this, wn, void 0), Ee(this, er, void 0);
30051
+ Ee(this, Op), Ee(this, Io), Ee(this, Np), Ee(this, Lp), Ee(this, qd), Ee(this, Vp), Ee(this, No), Ee(this, Lo), Ee(this, Gd), Ee(this, Ln), Ee(this, Vo), Ee(this, $e, void 0), Ee(this, wn, void 0), Ee(this, be, void 0), Ee(this, ze, void 0), Ee(this, Nr, void 0), Ee(this, it, void 0), Ee(this, Sr, void 0), Ee(this, ui, void 0), Ee(this, As, void 0), Ee(this, bn, void 0), Ee(this, er, void 0);
30047
30052
  var r, i, n, a, c, d, l, g, m;
30048
- ue(this, Rn, e), ue(this, Nr, []), ue(this, it, new Hd()), ue(this, Sr, true), ue(this, As, false), ue(this, be, t != null ? t : {}), (r = M(this, be)).autoReconnect != null || (r.autoReconnect = true), (i = M(this, be)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = M(this, be)).pingTimeout != null || (n.pingTimeout = 3e4), (a = M(this, be)).connectionTimeout != null || (a.connectionTimeout = 5e3), (c = M(this, be)).debug != null || (c.debug = true), (d = M(this, be)).maxReconnectionAttempts != null || (d.maxReconnectionAttempts = 10), (l = M(this, be)).disconnectOnPingTimeout != null || (l.disconnectOnPingTimeout = true), (g = M(this, be)).queueOnDisconnect != null || (g.queueOnDisconnect = false), (m = M(this, be)).flushOnReconnect != null || (m.flushOnReconnect = false), ue(this, li, {
30053
+ ue(this, wn, e), ue(this, Nr, []), ue(this, it, new Hd()), ue(this, Sr, true), ue(this, As, false), ue(this, be, t != null ? t : {}), (r = M(this, be)).autoReconnect != null || (r.autoReconnect = true), (i = M(this, be)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = M(this, be)).pingTimeout != null || (n.pingTimeout = 3e4), (a = M(this, be)).connectionTimeout != null || (a.connectionTimeout = 5e3), (c = M(this, be)).debug != null || (c.debug = true), (d = M(this, be)).maxReconnectionAttempts != null || (d.maxReconnectionAttempts = 10), (l = M(this, be)).disconnectOnPingTimeout != null || (l.disconnectOnPingTimeout = true), (g = M(this, be)).queueOnDisconnect != null || (g.queueOnDisconnect = false), (m = M(this, be)).flushOnReconnect != null || (m.flushOnReconnect = false), ue(this, ui, {
30049
30054
  code: void 0,
30050
30055
  reason: void 0
30051
30056
  }), ue(this, ze, (G = M(this, be).logger) != null ? G : new dN(M(this, be).debug ? "debug" : "info")), ue(this, er, new cN());
@@ -30055,10 +30060,10 @@ class pN {
30055
30060
  return (e = M(this, $e)) == null ? void 0 : e.readyState;
30056
30061
  }
30057
30062
  get url() {
30058
- return M(this, Rn);
30063
+ return M(this, wn);
30059
30064
  }
30060
30065
  updateURL(e) {
30061
- ue(this, Rn, e), ke(this, Vp, Xy).call(this);
30066
+ ue(this, wn, e), ke(this, Vp, Xy).call(this);
30062
30067
  }
30063
30068
  get config() {
30064
30069
  return M(this, be);
@@ -30085,16 +30090,16 @@ class pN {
30085
30090
  }
30086
30091
  if (M(this, Sr) !== false)
30087
30092
  return new Promise((t, r) => {
30088
- ke(this, Nn, xo).call(this), ke(this, Vo, Wd).call(this);
30093
+ ke(this, Ln, xo).call(this), ke(this, Vo, Wd).call(this);
30089
30094
  try {
30090
- ue(this, $e, new WebSocket(ke(this, Op, Yy).call(this, M(this, Rn)))), M(this, $e).binaryType = "arraybuffer", M(this, ze).debug("Connecting");
30095
+ ue(this, $e, new WebSocket(ke(this, Op, Yy).call(this, M(this, wn)))), M(this, $e).binaryType = "arraybuffer", M(this, ze).debug("Connecting");
30091
30096
  const i = setTimeout(() => {
30092
30097
  M(this, ze).debug("Connection timeout. Closing socket"), ue(this, Sr, true), ke(this, Vo, Wd).call(this), M(this, $e).close(3001, "Connection Timeout"), M(this, be).autoReconnect && !M(this, As) && (M(this, it).emit(
30093
30098
  "reconnecting"
30094
30099
  ), ke(this, No, _d).call(this)), r(new Error("Connection timed out!"));
30095
30100
  }, M(this, be).connectionTimeout);
30096
30101
  M(this, $e).onopen = () => {
30097
- M(this, ze).debug(`Ready State: ${zy[M(this, $e).readyState]}`), i && clearTimeout(i), ke(this, Gd, Up).call(this), ue(this, li, {
30102
+ M(this, ze).debug(`Ready State: ${zy[M(this, $e).readyState]}`), i && clearTimeout(i), ke(this, Gd, Up).call(this), ue(this, ui, {
30098
30103
  code: void 0,
30099
30104
  reason: void 0
30100
30105
  }), M(this, it).emit(
@@ -30158,13 +30163,13 @@ class pN {
30158
30163
  );
30159
30164
  }
30160
30165
  disconnect() {
30161
- ue(this, Sr, false), ke(this, Nn, xo).call(this), this.removeAllListeners(), ue(this, li, {
30166
+ ue(this, Sr, false), ke(this, Ln, xo).call(this), this.removeAllListeners(), ue(this, ui, {
30162
30167
  code: 1e3,
30163
30168
  reason: "Sockrates disconnect method called"
30164
30169
  }), M(this, $e).close(1e3, "Sockrates disconnect method called.");
30165
30170
  }
30166
30171
  }
30167
- $e = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), Op = /* @__PURE__ */ new WeakSet(), Yy = function(s) {
30172
+ $e = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), Op = /* @__PURE__ */ new WeakSet(), Yy = function(s) {
30168
30173
  if (s.startsWith("ws://") || s.startsWith("wss://"))
30169
30174
  return s;
30170
30175
  if (s.startsWith("https://"))
@@ -30184,9 +30189,9 @@ $e = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), be = /*
30184
30189
  }, Lp = /* @__PURE__ */ new WeakSet(), Ef = function() {
30185
30190
  return M(this, $e).readyState === 1;
30186
30191
  }, qd = /* @__PURE__ */ new WeakSet(), xp = function(s, e) {
30187
- ue(this, li, { reason: e, code: s }), M(this, it).emit("disconnected", { code: s, reason: e });
30192
+ ue(this, ui, { reason: e, code: s }), M(this, it).emit("disconnected", { code: s, reason: e });
30188
30193
  }, Vp = /* @__PURE__ */ new WeakSet(), Xy = function() {
30189
- const { reason: s, code: e } = M(this, li);
30194
+ const { reason: s, code: e } = M(this, ui);
30190
30195
  e && e !== 1e3 && M(this, Sr) && M(this, be).autoReconnect && !M(this, As) && (M(this, ze).debug(`Triggering reconnection due to ${s}.`), M(this, it).emit(
30191
30196
  "reconnecting"
30192
30197
  ), ke(this, No, _d).call(this));
@@ -30202,13 +30207,13 @@ $e = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), be = /*
30202
30207
  ), ue(this, As, false);
30203
30208
  return;
30204
30209
  }
30205
- ue(this, As, true), ke(this, Vo, Wd).call(this), ke(this, Nn, xo).call(this);
30210
+ ue(this, As, true), ke(this, Vo, Wd).call(this), ke(this, Ln, xo).call(this);
30206
30211
  try {
30207
30212
  if (yield M(this, er).wait(), M(this, Sr) === false)
30208
30213
  return;
30209
30214
  if (M(this, ze).debug(`Reconnection attempt ${M(this, er).getAttempts()}`), M(this, it).emit("reconnectAttempt", { attempt: M(this, er).getAttempts() }), yield this.connect(), !ke(this, Lp, Ef).call(this))
30210
30215
  throw Error("Reconnect Failed");
30211
- ue(this, As, false), ue(this, li, {
30216
+ ue(this, As, false), ue(this, ui, {
30212
30217
  code: void 0,
30213
30218
  reason: void 0
30214
30219
  }), M(this, it).emit(
@@ -30225,14 +30230,14 @@ $e = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), be = /*
30225
30230
  return M(this, ze).error(e.message), false;
30226
30231
  }
30227
30232
  }, Gd = /* @__PURE__ */ new WeakSet(), Up = function() {
30228
- this.config.disconnectOnPingTimeout && (M(this, ze).debug("Resetting ping timeout"), ke(this, Nn, xo).call(this), ue(this, wn, setTimeout(() => {
30233
+ this.config.disconnectOnPingTimeout && (M(this, ze).debug("Resetting ping timeout"), ke(this, Ln, xo).call(this), ue(this, bn, setTimeout(() => {
30229
30234
  var s;
30230
30235
  M(this, ze).debug("Disconnecting the socket due to ping timeout"), ue(this, Sr, true);
30231
30236
  const e = 3002, t = "Ping timeout";
30232
30237
  (s = M(this, $e)) == null || s.close(e, t), ke(this, qd, xp).call(this, e, t);
30233
30238
  }, M(this, be).pingTimeout)));
30234
- }, Nn = /* @__PURE__ */ new WeakSet(), xo = function() {
30235
- M(this, wn) && (clearTimeout(M(this, wn)), ue(this, wn, void 0));
30239
+ }, Ln = /* @__PURE__ */ new WeakSet(), xo = function() {
30240
+ M(this, bn) && (clearTimeout(M(this, bn)), ue(this, bn, void 0));
30236
30241
  }, Vo = /* @__PURE__ */ new WeakSet(), Wd = function() {
30237
30242
  M(this, $e) && (M(this, $e).onopen = void 0, M(this, $e).onerror = void 0, M(this, $e).onmessage = void 0, M(this, $e).onclose = void 0);
30238
30243
  };
@@ -30242,7 +30247,7 @@ var hN = Object.defineProperty, mN = Object.getOwnPropertyDescriptor, du = (s, e
30242
30247
  return r && i && hN(e, t, i), i;
30243
30248
  };
30244
30249
  const _f = 65535, fN = 3e3;
30245
- var ci, Oe, Ne, je, ps, yr, Dc, $p, Mc, Fp, jf;
30250
+ var di, Oe, Ne, je, ps, yr, Dc, $p, Mc, Fp, jf;
30246
30251
  const Zy = (jf = class {
30247
30252
  constructor(s, {
30248
30253
  peerId: e,
@@ -30253,7 +30258,7 @@ const Zy = (jf = class {
30253
30258
  v(this, Ne);
30254
30259
  v(this, Dc);
30255
30260
  v(this, Mc);
30256
- v(this, ci, void 0);
30261
+ v(this, di, void 0);
30257
30262
  v(this, Oe, void 0);
30258
30263
  f(this, "roomName");
30259
30264
  f(this, "authToken");
@@ -30263,7 +30268,7 @@ const Zy = (jf = class {
30263
30268
  var n;
30264
30269
  if (!e || !t || !r)
30265
30270
  throw new w("peerId, meetingId, or authToken can not be empty", "0404");
30266
- T(this, ps, void 0), T(this, yr, s), this.capabilities = i, this.roomName = t, this.authToken = r, T(this, ci, F(this, Dc, $p).call(this, e)), T(this, Oe, new pN(o(this, ci), {
30271
+ T(this, ps, void 0), T(this, yr, s), this.capabilities = i, this.roomName = t, this.authToken = r, T(this, di, F(this, Dc, $p).call(this, e)), T(this, Oe, new pN(o(this, di), {
30267
30272
  autoReconnect: true,
30268
30273
  disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
30269
30274
  queueOnDisconnect: true,
@@ -30281,13 +30286,13 @@ const Zy = (jf = class {
30281
30286
  return o(this, yr).getValue("peerId");
30282
30287
  }
30283
30288
  updateURL(s) {
30284
- s !== this.peerId && (T(this, ci, F(this, Dc, $p).call(this, s)), p.debug("SocketService:: Connection URL updated.")), o(this, Oe).updateURL(o(this, ci));
30289
+ s !== this.peerId && (T(this, di, F(this, Dc, $p).call(this, s)), p.debug("SocketService:: Connection URL updated.")), o(this, Oe).updateURL(o(this, di));
30285
30290
  }
30286
30291
  static getSocketEdgeDomain(s) {
30287
- return Mn({ servicePrefix: "socket-edge", baseURI: s });
30292
+ return On({ servicePrefix: "socket-edge", baseURI: s });
30288
30293
  }
30289
30294
  get url() {
30290
- return o(this, ci);
30295
+ return o(this, di);
30291
30296
  }
30292
30297
  connect() {
30293
30298
  return u(this, null, function* () {
@@ -30412,7 +30417,7 @@ const Zy = (jf = class {
30412
30417
  var i;
30413
30418
  p.info("SocketService::Disconnected from socket-edge", { error: { code: s, reason: e }, country: h.location.country });
30414
30419
  const { recv: t, send: r } = (i = o(this, Ne, je).mediaState) != null ? i : {};
30415
- t != null && t.state && (t == null ? void 0 : t.state) !== pi.CONNECTED || r != null && r.state && (r == null ? void 0 : r.state) !== pi.CONNECTED ? A.emit(
30420
+ t != null && t.state && (t == null ? void 0 : t.state) !== hi.CONNECTED || r != null && r.state && (r == null ? void 0 : r.state) !== hi.CONNECTED ? A.emit(
30416
30421
  I.SOCKET_SERVICE_DISCONNECTED,
30417
30422
  {
30418
30423
  joinAttempted: o(this, Ne, je).joinAttempted
@@ -30445,7 +30450,7 @@ const Zy = (jf = class {
30445
30450
  p.info("SocketService::Failed to connect to socket-edge", { country: h.location.country }), A.emit(I.SOCKET_SERVICE_FAILED), o(this, Ne, je).updateSocketConnectionState("failed");
30446
30451
  }));
30447
30452
  }
30448
- }, ci = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakSet(), je = function() {
30453
+ }, di = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakSet(), je = function() {
30449
30454
  return o(this, yr).getValue("connectionHandler");
30450
30455
  }, ps = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakSet(), $p = function(s) {
30451
30456
  let e = Zy.getSocketEdgeDomain(o(this, yr).getValue("baseURI"));
@@ -30580,7 +30585,7 @@ var gN = Object.defineProperty, vN = Object.getOwnPropertyDescriptor, lu = (s, e
30580
30585
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
30581
30586
  return r && i && gN(e, t, i), i;
30582
30587
  };
30583
- const bn = class {
30588
+ const kn = class {
30584
30589
  constructor(s, e) {
30585
30590
  f(this, "apiBase");
30586
30591
  f(this, "selfController");
@@ -30620,10 +30625,10 @@ const bn = class {
30620
30625
  c.setRoomName(i), c.setRoomUUID(i), c.setOrganizationId(n), c.setHeader("dyte-tracing-id", e), s.setValue("apiClient", c);
30621
30626
  const d = new j0();
30622
30627
  s.setValue("connectionHandler", d);
30623
- const l = bn.createSocketService(s), g = l.connect(), m = c.getUserDetails(), y = c.getPlugins();
30628
+ const l = kn.createSocketService(s), g = l.connect(), m = c.getUserDetails(), y = c.getPlugins();
30624
30629
  let _ = nt.HIVE, P, b = "";
30625
30630
  try {
30626
- yield bn.setupFlagsmith(s);
30631
+ yield kn.setupFlagsmith(s);
30627
30632
  } catch (G) {
30628
30633
  p.error("Failed to setup flagsmith", { error: G });
30629
30634
  }
@@ -30640,7 +30645,7 @@ const bn = class {
30640
30645
  } catch (G) {
30641
30646
  p.error("Failed to get room metadata", { error: G });
30642
30647
  }
30643
- const R = eu.init(P.preset, !s.getValue("modules").theme), L = bn.setupControllers(
30648
+ const R = eu.init(P.preset, !s.getValue("modules").theme), L = kn.setupControllers(
30644
30649
  l,
30645
30650
  s,
30646
30651
  P,
@@ -30648,7 +30653,7 @@ const bn = class {
30648
30653
  b,
30649
30654
  R
30650
30655
  );
30651
- D0(R) && ((H = bn.createRoomNodeClient(s, l).partialJoinRoom(
30656
+ D0(R) && ((H = kn.createRoomNodeClient(s, l).partialJoinRoom(
30652
30657
  P.participant.name,
30653
30658
  i,
30654
30659
  void 0
@@ -30659,7 +30664,7 @@ const bn = class {
30659
30664
  );
30660
30665
  })), h.location.country = (O = c.ipInfo) == null ? void 0 : O.country;
30661
30666
  const { controllers: B } = yield L;
30662
- return Ow(), new bn(t, B);
30667
+ return Ow(), new kn(t, B);
30663
30668
  });
30664
30669
  }
30665
30670
  static setupFlagsmith(s) {
@@ -30683,7 +30688,7 @@ const bn = class {
30683
30688
  isReactNative: navigator.isReactNative
30684
30689
  });
30685
30690
  try {
30686
- const l = (d = r == null ? void 0 : r.whitelabelled_flags_endpoint) == null || d ? Mn({ servicePrefix: "flags", baseURI: t }) : "edge.api.flagsmith.com";
30691
+ const l = (d = r == null ? void 0 : r.whitelabelled_flags_endpoint) == null || d ? On({ servicePrefix: "flags", baseURI: t }) : "edge.api.flagsmith.com";
30687
30692
  yield Y.identify(
30688
30693
  `${ap.PEER}_${e}`,
30689
30694
  JSON.parse(JSON.stringify(c)),
@@ -30722,7 +30727,7 @@ const bn = class {
30722
30727
  let P, b, R, L, B, H, O, G;
30723
30728
  const re = new G1(s);
30724
30729
  Ce.socketService = s;
30725
- const ce = new ou(s), at = new vs(s), qt = new K1(s), Me = Ud.create(s, e), Pt = new z1(s), D = new j1(s), E = new un(s), C = yield kr.init(
30730
+ const ce = new ou(s), at = new vs(s), qt = new K1(s), Me = Ud.create(s, e), Pt = new z1(s), D = new j1(s), E = new pn(s), C = yield kr.init(
30726
30731
  e,
30727
30732
  Me,
30728
30733
  d,
@@ -30831,7 +30836,7 @@ const bn = class {
30831
30836
  });
30832
30837
  }
30833
30838
  };
30834
- let Wc = bn;
30839
+ let Wc = kn;
30835
30840
  lu([
30836
30841
  h.trace("Controller.init")
30837
30842
  ], Wc, "init", 1);
@@ -30849,7 +30854,7 @@ var yN = Object.defineProperty, TN = Object.getOwnPropertyDescriptor, Qa = (s, e
30849
30854
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
30850
30855
  return r && i && yN(e, t, i), i;
30851
30856
  }, Oc, Nl;
30852
- class vn extends Xt {
30857
+ class yn extends Xt {
30853
30858
  constructor(t, r) {
30854
30859
  super();
30855
30860
  v(this, Oc, void 0);
@@ -30969,22 +30974,22 @@ Oc = /* @__PURE__ */ new WeakMap(), Nl = /* @__PURE__ */ new WeakMap();
30969
30974
  Qa([
30970
30975
  h.trace("DyteConnectedMeetings.getConnectedMeetings"),
30971
30976
  $t({ maxInvocations: 60, period: 60 })
30972
- ], vn.prototype, "getConnectedMeetings", 1);
30977
+ ], yn.prototype, "getConnectedMeetings", 1);
30973
30978
  Qa([
30974
30979
  h.trace("DyteConnectedMeetings.createMeetings")
30975
- ], vn.prototype, "createMeetings", 1);
30980
+ ], yn.prototype, "createMeetings", 1);
30976
30981
  Qa([
30977
30982
  h.trace("DyteConnectedMeetings.updateMeetings")
30978
- ], vn.prototype, "updateMeetings", 1);
30983
+ ], yn.prototype, "updateMeetings", 1);
30979
30984
  Qa([
30980
30985
  h.trace("DyteConnectedMeetings.deleteMeetings")
30981
- ], vn.prototype, "deleteMeetings", 1);
30986
+ ], yn.prototype, "deleteMeetings", 1);
30982
30987
  Qa([
30983
30988
  h.trace("DyteConnectedMeetings.moveParticipants")
30984
- ], vn.prototype, "moveParticipants", 1);
30989
+ ], yn.prototype, "moveParticipants", 1);
30985
30990
  Qa([
30986
30991
  h.trace("DyteConnectedMeetings.moveParticipantsWithCustomPreset")
30987
- ], vn.prototype, "moveParticipantsWithCustomPreset", 1);
30992
+ ], yn.prototype, "moveParticipantsWithCustomPreset", 1);
30988
30993
  var SN = Object.defineProperty, EN = Object.getOwnPropertyDescriptor, uu = (s, e, t, r) => {
30989
30994
  for (var i = r > 1 ? void 0 : r ? EN(e, t) : e, n = s.length - 1, a; n >= 0; n--)
30990
30995
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
@@ -30996,7 +31001,7 @@ const Lr = (Ju = class {
30996
31001
  v(this, $a, void 0);
30997
31002
  v(this, hs, void 0);
30998
31003
  v(this, Ll, void 0);
30999
- T(this, Ll, s), T(this, $a, t), this.connectedMeetings = new vn(s, e), this.setCurrentMeeting(e);
31004
+ T(this, Ll, s), T(this, $a, t), this.connectedMeetings = new yn(s, e), this.setCurrentMeeting(e);
31000
31005
  }
31001
31006
  static init(s, e, t) {
31002
31007
  return Lr.instance || (Lr.instance = new Lr(
@@ -31221,7 +31226,7 @@ let Ys = (Gf = class {
31221
31226
  }
31222
31227
  static setupContext(e, t, r, i) {
31223
31228
  var c;
31224
- const n = on.createContext(e, t), a = N(N({}, Ew), t == null ? void 0 : t.modules);
31229
+ const n = cn.createContext(e, t), a = N(N({}, Ew), t == null ? void 0 : t.modules);
31225
31230
  return n.setValue("peerId", e), n.setValue("modules", a), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", t.authToken), n.setValue("overrides", (c = t.overrides) != null ? c : {}), n.setValue("env", _w({ baseURI: i.baseURI })), n.setValue("defaults", t.defaults || { audio: true, video: true }), n.setValue("onError", t.onError || (() => {
31226
31231
  })), n.setValue("cachedUserDetails", Ds(t.cachedUserDetails)), n.setValue("sdkVersion", "VERSION_PLACEHOLDER"), n;
31227
31232
  }
@@ -31309,7 +31314,7 @@ let Ys = (Gf = class {
31309
31314
  Xa([
31310
31315
  h.trace("DyteClient.join"),
31311
31316
  _t("0002"),
31312
- yi.executeWithLock({
31317
+ Ti.executeWithLock({
31313
31318
  methodName: "meeting.join",
31314
31319
  lockName: "DyteClient.join",
31315
31320
  timeout: 3e3
@@ -31328,7 +31333,7 @@ Xa([
31328
31333
  Xa([
31329
31334
  h.trace("DyteClient.init"),
31330
31335
  _t("0001"),
31331
- yi.executeWithLock({
31336
+ Ti.executeWithLock({
31332
31337
  methodName: "DyteClient.init",
31333
31338
  lockName: "DyteClient.init",
31334
31339
  timeout: 3e3