@cloudflare/realtimekit-react 0.5.0-staging.125 → 0.5.0-staging.126

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
@@ -4900,7 +4900,7 @@ function Yc({ packetsLost: s, packetsReceived: t }) {
4900
4900
  return t + s > 0 ? s * 100 / (t + s) : 0;
4901
4901
  }
4902
4902
  const Sm = 240, Em = 720, _m = 8, Pm = 3, il = 10, nl = 0.02, al = 0.03;
4903
- function sr({ stat: s, weight: t, rangeMin: e, rangeMax: r, rangeRankingDirection: i }) {
4903
+ function rr({ stat: s, weight: t, rangeMin: e, rangeMax: r, rangeRankingDirection: i }) {
4904
4904
  return s == null ? t : e === r ? i === "UP" ? s <= e ? t : 0 : s >= r ? t : 0 : i === "UP" ? (1 - Math.max(Math.min(r, Math.abs(s)) - e, 0) / (r - e)) * t : i === "DOWN" ? Math.max(Math.min(r, Math.abs(s)) - e, 0) / (r - e) * t : t;
4905
4905
  }
4906
4906
  function Cm({ isLowQualityVideo: s, isVideoStuck: t, isVideoLagging: e, jitterQuality: r, packetsLostQuality: i }) {
@@ -4911,7 +4911,7 @@ function Rm({ packetsLost: s, packetsSent: t }) {
4911
4911
  return t > 0 ? s * 100 / t : 0;
4912
4912
  }
4913
4913
  function wm({ packetsLost: s, packetsSent: t, jitter: e }) {
4914
- const i = sr({
4914
+ const i = rr({
4915
4915
  stat: Rm({
4916
4916
  packetsLost: s,
4917
4917
  packetsSent: t
@@ -4920,7 +4920,7 @@ function wm({ packetsLost: s, packetsSent: t, jitter: e }) {
4920
4920
  rangeMin: 0,
4921
4921
  rangeMax: il,
4922
4922
  rangeRankingDirection: "UP"
4923
- }), o = sr({
4923
+ }), o = rr({
4924
4924
  stat: e,
4925
4925
  weight: 0.3,
4926
4926
  rangeMin: nl,
@@ -4939,7 +4939,7 @@ function fv({ framesEncoded: s }) {
4939
4939
  return s === 0;
4940
4940
  }
4941
4941
  function bm({ frameWidth: s, framesPerSecond: t, packetsLost: e, packetsSent: r, jitter: i, isScreenShare: n, framesEncoded: o }) {
4942
- const c = sr({
4942
+ const c = rr({
4943
4943
  stat: Rm({
4944
4944
  packetsLost: e,
4945
4945
  packetsSent: r
@@ -4948,7 +4948,7 @@ function bm({ frameWidth: s, framesPerSecond: t, packetsLost: e, packetsSent: r,
4948
4948
  rangeMin: 0,
4949
4949
  rangeMax: il,
4950
4950
  rangeRankingDirection: "UP"
4951
- }), d = sr({
4951
+ }), d = rr({
4952
4952
  stat: i,
4953
4953
  weight: 1,
4954
4954
  rangeMin: nl,
@@ -4976,13 +4976,13 @@ function km({ packetsLost: s, packetsReceived: t }) {
4976
4976
  return t + s > 0 ? s * 100 / (t + s) : 0;
4977
4977
  }
4978
4978
  function Im({ concealmentEvents: s, packetsLost: t, packetsReceived: e, jitter: r }) {
4979
- const n = sr({
4979
+ const n = rr({
4980
4980
  stat: s,
4981
4981
  weight: 0.2,
4982
4982
  rangeMin: 0,
4983
4983
  rangeMax: 3,
4984
4984
  rangeRankingDirection: "UP"
4985
- }), o = 0.5, c = sr({
4985
+ }), o = 0.5, c = rr({
4986
4986
  stat: km({
4987
4987
  packetsLost: t,
4988
4988
  packetsReceived: e
@@ -4991,7 +4991,7 @@ function Im({ concealmentEvents: s, packetsLost: t, packetsReceived: e, jitter:
4991
4991
  rangeMin: 0,
4992
4992
  rangeMax: il,
4993
4993
  rangeRankingDirection: "UP"
4994
- }), h = sr({
4994
+ }), h = rr({
4995
4995
  stat: r,
4996
4996
  weight: 0.3,
4997
4997
  rangeMin: nl,
@@ -5010,7 +5010,7 @@ function yv({ frameWidth: s, isScreenShare: t }) {
5010
5010
  return s < (t ? Em : Sm);
5011
5011
  }
5012
5012
  function Am({ frameWidth: s, framesPerSecond: t, packetsLost: e, packetsReceived: r, jitter: i, isScreenShare: n, framesDecoded: o }) {
5013
- const c = sr({
5013
+ const c = rr({
5014
5014
  stat: km({
5015
5015
  packetsLost: e,
5016
5016
  packetsReceived: r
@@ -5019,7 +5019,7 @@ function Am({ frameWidth: s, framesPerSecond: t, packetsLost: e, packetsReceived
5019
5019
  rangeMin: 0,
5020
5020
  rangeMax: il,
5021
5021
  rangeRankingDirection: "UP"
5022
- }), d = sr({
5022
+ }), d = rr({
5023
5023
  stat: i,
5024
5024
  weight: 1,
5025
5025
  rangeMin: nl,
@@ -5043,7 +5043,7 @@ function Am({ frameWidth: s, framesPerSecond: t, packetsLost: e, packetsReceived
5043
5043
  packetsLostQuality: c
5044
5044
  });
5045
5045
  }
5046
- class rr {
5046
+ class ir {
5047
5047
  constructor(t) {
5048
5048
  p(this, "pc1");
5049
5049
  p(this, "pc2");
@@ -5051,7 +5051,7 @@ class rr {
5051
5051
  p(this, "constrainOfferToRemoveVideoFec", false);
5052
5052
  p(this, "iceCandidateFilter");
5053
5053
  const e = new RTCPeerConnection(t), r = new RTCPeerConnection(t);
5054
- this.pc1 = e, this.pc2 = r, this.iceCandidateFilter = rr.noFilter, this.pc1.addEventListener("icecandidate", this.onIceCandidate.bind(this, this.pc2)), this.pc2.addEventListener("icecandidate", this.onIceCandidate.bind(this, this.pc1));
5054
+ this.pc1 = e, this.pc2 = r, this.iceCandidateFilter = ir.noFilter, this.pc1.addEventListener("icecandidate", this.onIceCandidate.bind(this, this.pc2)), this.pc2.addEventListener("icecandidate", this.onIceCandidate.bind(this, this.pc1));
5055
5055
  }
5056
5056
  static parseCandidate(t) {
5057
5057
  const e = "candidate:", r = t.indexOf(e) + e.length, i = t.substr(r).split(" ");
@@ -5078,7 +5078,7 @@ class rr {
5078
5078
  }
5079
5079
  onIceCandidate(t, e) {
5080
5080
  if (e.candidate) {
5081
- const r = rr.parseCandidate(e.candidate.candidate);
5081
+ const r = ir.parseCandidate(e.candidate.candidate);
5082
5082
  this.iceCandidateFilter(r) && t.addIceCandidate(e.candidate);
5083
5083
  }
5084
5084
  }
@@ -5140,7 +5140,7 @@ class Mm extends lt {
5140
5140
  super();
5141
5141
  p(this, "call");
5142
5142
  p(this, "timeOut");
5143
- this.call = new rr(e);
5143
+ this.call = new ir(e);
5144
5144
  }
5145
5145
  start(e = 1e4) {
5146
5146
  this.call.establishConnection(), this.timeOut = setTimeout(this.testFailed.bind(this), e);
@@ -5171,7 +5171,7 @@ class _v extends Mm {
5171
5171
  p(this, "maxNumberOfPacketsToSend", 0);
5172
5172
  p(this, "bytesToKeepBuffered", 0);
5173
5173
  p(this, "testDurationSeconds", 5);
5174
- this.call.setIceCandidateFilter(rr.isNotHostCandidate), this.senderChannel = this.call.pc1.createDataChannel(null);
5174
+ this.call.setIceCandidateFilter(ir.isNotHostCandidate), this.senderChannel = this.call.pc1.createDataChannel(null);
5175
5175
  for (let r = 0; r < 1024 * 256; r += 1)
5176
5176
  this.samplePacket += "h";
5177
5177
  this.maxNumberOfPacketsToSend = 1, this.bytesToKeepBuffered = 1024 * this.maxNumberOfPacketsToSend, this.testDurationSeconds = 4, this.senderChannel.addEventListener("open", this.sendingStep.bind(this)), this.call.pc2.addEventListener("datachannel", this.onRecieverChannel.bind(this));
@@ -5215,7 +5215,7 @@ class _v extends Mm {
5215
5215
  }
5216
5216
  }
5217
5217
  class Uu extends Mm {
5218
- constructor(e, r = rr.noFilter) {
5218
+ constructor(e, r = ir.noFilter) {
5219
5219
  super(e);
5220
5220
  p(this, "ch1");
5221
5221
  p(this, "ch2");
@@ -5249,17 +5249,17 @@ class Uu extends Mm {
5249
5249
  }
5250
5250
  class Pv extends Uu {
5251
5251
  constructor(t) {
5252
- super(t, rr.isHost);
5252
+ super(t, ir.isHost);
5253
5253
  }
5254
5254
  }
5255
5255
  class Cv extends Uu {
5256
5256
  constructor(t) {
5257
- super(t, rr.isRelay);
5257
+ super(t, ir.isRelay);
5258
5258
  }
5259
5259
  }
5260
5260
  class Rv extends Uu {
5261
5261
  constructor(t) {
5262
- super(t, rr.isReflexive);
5262
+ super(t, ir.isReflexive);
5263
5263
  }
5264
5264
  }
5265
5265
  class wv {
@@ -5478,7 +5478,7 @@ class Om extends lt {
5478
5478
  }) || e[e.length - 1];
5479
5479
  }
5480
5480
  parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
5481
- var b, R, L, H, F, B, q, ie, pe, Ye, Ss, ts, cr;
5481
+ var b, R, L, H, F, B, q, ie, pe, Ye, Ss, ts, dr;
5482
5482
  const c = e, d = new Dm(), h = r.length ? new Set(r) : void 0, m = [], g = [], T = [], _ = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
5483
5483
  for (const M of c.values()) {
5484
5484
  if (h) {
@@ -5747,7 +5747,7 @@ class Om extends lt {
5747
5747
  }),
5748
5748
  jitter: k.jitter || 0,
5749
5749
  isScreenShare: this.screenShareConsumers.has(C),
5750
- bitrate: ((k.bytesReceived || 0) - (((cr = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : cr.bytesReceived) || 0)) * 8 / 7
5750
+ bitrate: ((k.bytesReceived || 0) - (((dr = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : dr.bytesReceived) || 0)) * 8 / 7
5751
5751
  }), this.audioConsumerToStatsMap.set(C, k), d.inboundAudioRtp.set(M.id, k), d.consumerStreamMap.get(C).inboundAudioRtpId.push(M.id), this.processInboundConsumerAudioStats(C, Ce, k);
5752
5752
  }
5753
5753
  } else
@@ -6111,7 +6111,7 @@ class Nm extends Om {
6111
6111
  };
6112
6112
  }
6113
6113
  parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
6114
- var b, R, L, H, F, B, q, ie, pe, Ye, Ss, ts, cr;
6114
+ var b, R, L, H, F, B, q, ie, pe, Ye, Ss, ts, dr;
6115
6115
  const c = e, d = new Dm(), h = r.length ? new Set(r) : void 0, m = [], g = [], T = [], _ = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
6116
6116
  for (const M of c.values()) {
6117
6117
  if (h) {
@@ -6380,7 +6380,7 @@ class Nm extends Om {
6380
6380
  }),
6381
6381
  jitter: k.jitter || 0,
6382
6382
  isScreenShare: this.screenShareConsumers.has(C),
6383
- bitrate: ((k.bytesReceived || 0) - (((cr = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : cr.bytesReceived) || 0)) * 8 / 7
6383
+ bitrate: ((k.bytesReceived || 0) - (((dr = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : dr.bytesReceived) || 0)) * 8 / 7
6384
6384
  }), this.audioConsumerToStatsMap.set(C, k), d.inboundAudioRtp.set(M.id, k), d.consumerStreamMap.get(C).inboundAudioRtpId.push(M.id), this.processInboundConsumerAudioStats(C, Ce, k);
6385
6385
  }
6386
6386
  } else
@@ -7535,20 +7535,20 @@ function Fv(s, t) {
7535
7535
  var e = this.__data__, r = ol(e, s);
7536
7536
  return r < 0 ? (++this.size, e.push([s, t])) : e[r][1] = t, this;
7537
7537
  }
7538
- function ar(s) {
7538
+ function or(s) {
7539
7539
  var t = -1, e = s == null ? 0 : s.length;
7540
7540
  for (this.clear(); ++t < e; ) {
7541
7541
  var r = s[t];
7542
7542
  this.set(r[0], r[1]);
7543
7543
  }
7544
7544
  }
7545
- ar.prototype.clear = Nv;
7546
- ar.prototype.delete = xv;
7547
- ar.prototype.get = Uv;
7548
- ar.prototype.has = $v;
7549
- ar.prototype.set = Fv;
7545
+ or.prototype.clear = Nv;
7546
+ or.prototype.delete = xv;
7547
+ or.prototype.get = Uv;
7548
+ or.prototype.has = $v;
7549
+ or.prototype.set = Fv;
7550
7550
  function Bv() {
7551
- this.__data__ = new ar(), this.size = 0;
7551
+ this.__data__ = new or(), this.size = 0;
7552
7552
  }
7553
7553
  function Hv(s) {
7554
7554
  var t = this.__data__, e = t.delete(s);
@@ -7582,7 +7582,7 @@ function eT(s) {
7582
7582
  return Zv.call(s);
7583
7583
  }
7584
7584
  var tT = "[object Null]", sT = "[object Undefined]", Ih = qr ? qr.toStringTag : void 0;
7585
- function Bi(s) {
7585
+ function Hi(s) {
7586
7586
  return s == null ? s === void 0 ? sT : tT : Ih && Ih in Object(s) ? Qv(s) : eT(s);
7587
7587
  }
7588
7588
  function gs(s) {
@@ -7593,7 +7593,7 @@ var rT = "[object AsyncFunction]", iT = "[object Function]", nT = "[object Gener
7593
7593
  function Fu(s) {
7594
7594
  if (!gs(s))
7595
7595
  return false;
7596
- var t = Bi(s);
7596
+ var t = Hi(s);
7597
7597
  return t == iT || t == nT || t == rT || t == aT;
7598
7598
  }
7599
7599
  var oT = fs["__core-js_shared__"];
@@ -7606,7 +7606,7 @@ function cT(s) {
7606
7606
  return !!Ah && Ah in s;
7607
7607
  }
7608
7608
  var dT = Function.prototype, lT = dT.toString;
7609
- function Hi(s) {
7609
+ function qi(s) {
7610
7610
  if (s != null) {
7611
7611
  try {
7612
7612
  return lT.call(s);
@@ -7626,18 +7626,18 @@ function TT(s) {
7626
7626
  if (!gs(s) || cT(s))
7627
7627
  return false;
7628
7628
  var t = Fu(s) ? vT : hT;
7629
- return t.test(Hi(s));
7629
+ return t.test(qi(s));
7630
7630
  }
7631
7631
  function yT(s, t) {
7632
7632
  return s == null ? void 0 : s[t];
7633
7633
  }
7634
- function qi(s, t) {
7634
+ function ji(s, t) {
7635
7635
  var e = yT(s, t);
7636
7636
  return TT(e) ? e : void 0;
7637
7637
  }
7638
- var ST = qi(fs, "Map");
7638
+ var ST = ji(fs, "Map");
7639
7639
  const mo = ST;
7640
- var ET = qi(Object, "create");
7640
+ var ET = ji(Object, "create");
7641
7641
  const go = ET;
7642
7642
  function _T() {
7643
7643
  this.__data__ = go ? go(null) : {}, this.size = 0;
@@ -7665,23 +7665,23 @@ function DT(s, t) {
7665
7665
  var e = this.__data__;
7666
7666
  return this.size += this.has(s) ? 0 : 1, e[s] = go && t === void 0 ? MT : t, this;
7667
7667
  }
7668
- function Ui(s) {
7668
+ function $i(s) {
7669
7669
  var t = -1, e = s == null ? 0 : s.length;
7670
7670
  for (this.clear(); ++t < e; ) {
7671
7671
  var r = s[t];
7672
7672
  this.set(r[0], r[1]);
7673
7673
  }
7674
7674
  }
7675
- Ui.prototype.clear = _T;
7676
- Ui.prototype.delete = PT;
7677
- Ui.prototype.get = bT;
7678
- Ui.prototype.has = AT;
7679
- Ui.prototype.set = DT;
7675
+ $i.prototype.clear = _T;
7676
+ $i.prototype.delete = PT;
7677
+ $i.prototype.get = bT;
7678
+ $i.prototype.has = AT;
7679
+ $i.prototype.set = DT;
7680
7680
  function OT() {
7681
7681
  this.size = 0, this.__data__ = {
7682
- hash: new Ui(),
7683
- map: new (mo || ar)(),
7684
- string: new Ui()
7682
+ hash: new $i(),
7683
+ map: new (mo || or)(),
7684
+ string: new $i()
7685
7685
  };
7686
7686
  }
7687
7687
  function NT(s) {
@@ -7706,31 +7706,31 @@ function UT(s, t) {
7706
7706
  var e = cl(this, s), r = e.size;
7707
7707
  return e.set(s, t), this.size += e.size == r ? 0 : 1, this;
7708
7708
  }
7709
- function ji(s) {
7709
+ function Gi(s) {
7710
7710
  var t = -1, e = s == null ? 0 : s.length;
7711
7711
  for (this.clear(); ++t < e; ) {
7712
7712
  var r = s[t];
7713
7713
  this.set(r[0], r[1]);
7714
7714
  }
7715
7715
  }
7716
- ji.prototype.clear = OT;
7717
- ji.prototype.delete = LT;
7718
- ji.prototype.get = VT;
7719
- ji.prototype.has = xT;
7720
- ji.prototype.set = UT;
7716
+ Gi.prototype.clear = OT;
7717
+ Gi.prototype.delete = LT;
7718
+ Gi.prototype.get = VT;
7719
+ Gi.prototype.has = xT;
7720
+ Gi.prototype.set = UT;
7721
7721
  var $T = 200;
7722
7722
  function FT(s, t) {
7723
7723
  var e = this.__data__;
7724
- if (e instanceof ar) {
7724
+ if (e instanceof or) {
7725
7725
  var r = e.__data__;
7726
7726
  if (!mo || r.length < $T - 1)
7727
7727
  return r.push([s, t]), this.size = ++e.size, this;
7728
- e = this.__data__ = new ji(r);
7728
+ e = this.__data__ = new Gi(r);
7729
7729
  }
7730
7730
  return e.set(s, t), this.size = e.size, this;
7731
7731
  }
7732
7732
  function Is(s) {
7733
- var t = this.__data__ = new ar(s);
7733
+ var t = this.__data__ = new or(s);
7734
7734
  this.size = t.size;
7735
7735
  }
7736
7736
  Is.prototype.clear = Bv;
@@ -7745,7 +7745,7 @@ function BT(s, t) {
7745
7745
  }
7746
7746
  var HT = function() {
7747
7747
  try {
7748
- var s = qi(Object, "defineProperty");
7748
+ var s = ji(Object, "defineProperty");
7749
7749
  return s({}, "", {}), s;
7750
7750
  } catch (t) {
7751
7751
  }
@@ -7783,7 +7783,7 @@ function As(s) {
7783
7783
  }
7784
7784
  var WT = "[object Arguments]";
7785
7785
  function Mh(s) {
7786
- return As(s) && Bi(s) == WT;
7786
+ return As(s) && Hi(s) == WT;
7787
7787
  }
7788
7788
  var Um = Object.prototype, JT = Um.hasOwnProperty, KT = Um.propertyIsEnumerable, zT = Mh(function() {
7789
7789
  return arguments;
@@ -7811,7 +7811,7 @@ var iy = "[object Arguments]", ny = "[object Array]", ay = "[object Boolean]", o
7811
7811
  Ee[yy] = Ee[Sy] = Ee[Ey] = Ee[_y] = Ee[Py] = Ee[Cy] = Ee[Ry] = Ee[wy] = Ee[by] = true;
7812
7812
  Ee[iy] = Ee[ny] = Ee[vy] = Ee[ay] = Ee[Ty] = Ee[oy] = Ee[cy] = Ee[dy] = Ee[ly] = Ee[uy] = Ee[hy] = Ee[py] = Ee[my] = Ee[gy] = Ee[fy] = false;
7813
7813
  function ky(s) {
7814
- return As(s) && Bm(s.length) && !!Ee[Bi(s)];
7814
+ return As(s) && Bm(s.length) && !!Ee[Hi(s)];
7815
7815
  }
7816
7816
  function Hu(s) {
7817
7817
  return function(t) {
@@ -7945,17 +7945,17 @@ function Bl(s) {
7945
7945
  function tS(s) {
7946
7946
  return Xm(s, gc, Qm);
7947
7947
  }
7948
- var sS = qi(fs, "DataView");
7948
+ var sS = ji(fs, "DataView");
7949
7949
  const Hl = sS;
7950
- var rS = qi(fs, "Promise");
7950
+ var rS = ji(fs, "Promise");
7951
7951
  const ql = rS;
7952
- var iS = qi(fs, "Set");
7952
+ var iS = ji(fs, "Set");
7953
7953
  const jl = iS;
7954
- var nS = qi(fs, "WeakMap");
7954
+ var nS = ji(fs, "WeakMap");
7955
7955
  const Gl = nS;
7956
- var $h = "[object Map]", aS = "[object Object]", Fh = "[object Promise]", Bh = "[object Set]", Hh = "[object WeakMap]", qh = "[object DataView]", oS = Hi(Hl), cS = Hi(mo), dS = Hi(ql), lS = Hi(jl), uS = Hi(Gl), Yr = Bi;
7956
+ var $h = "[object Map]", aS = "[object Object]", Fh = "[object Promise]", Bh = "[object Set]", Hh = "[object WeakMap]", qh = "[object DataView]", oS = qi(Hl), cS = qi(mo), dS = qi(ql), lS = qi(jl), uS = qi(Gl), Yr = Hi;
7957
7957
  (Hl && Yr(new Hl(new ArrayBuffer(1))) != qh || mo && Yr(new mo()) != $h || ql && Yr(ql.resolve()) != Fh || jl && Yr(new jl()) != Bh || Gl && Yr(new Gl()) != Hh) && (Yr = function(s) {
7958
- var t = Bi(s), e = t == aS ? s.constructor : void 0, r = e ? Hi(e) : "";
7958
+ var t = Hi(s), e = t == aS ? s.constructor : void 0, r = e ? qi(e) : "";
7959
7959
  if (r)
7960
7960
  switch (r) {
7961
7961
  case oS:
@@ -8109,7 +8109,7 @@ function Ju(s) {
8109
8109
  }
8110
8110
  var CE = "[object Symbol]";
8111
8111
  function RE(s) {
8112
- return typeof s == "symbol" || As(s) && Bi(s) == CE;
8112
+ return typeof s == "symbol" || As(s) && Hi(s) == CE;
8113
8113
  }
8114
8114
  var wE = Object.defineProperty, bE = (s, t) => {
8115
8115
  for (var e in t)
@@ -8795,7 +8795,7 @@ function u_(s) {
8795
8795
  }
8796
8796
  var h_ = "[object Object]", p_ = Function.prototype, m_ = Object.prototype, dg = p_.toString, g_ = m_.hasOwnProperty, f_ = dg.call(Object);
8797
8797
  function v_(s) {
8798
- if (!As(s) || Bi(s) != h_)
8798
+ if (!As(s) || Hi(s) != h_)
8799
8799
  return false;
8800
8800
  var t = Gu(s);
8801
8801
  if (t === null)
@@ -8812,7 +8812,7 @@ function S_(s) {
8812
8812
  }
8813
8813
  function td(s) {
8814
8814
  var t = -1, e = s == null ? 0 : s.length;
8815
- for (this.__data__ = new ji(); ++t < e; )
8815
+ for (this.__data__ = new Gi(); ++t < e; )
8816
8816
  this.add(s[t]);
8817
8817
  }
8818
8818
  td.prototype.add = td.prototype.push = y_;
@@ -9086,7 +9086,7 @@ function dP(s, t) {
9086
9086
  var lP = u_(function(s, t, e) {
9087
9087
  hg(s, t, e);
9088
9088
  });
9089
- const lr = lP;
9089
+ const ur = lP;
9090
9090
  var Kl = /* @__PURE__ */ ((s) => (s.PARTICIPANT = "PARTICIPANT", s.PEER = "PEER", s.CLIENT = "CLIENT", s))(Kl || {});
9091
9091
  const se = {
9092
9092
  PROPAGATE_KICK_ALL: "propagate_kick_across_rooms",
@@ -9570,9 +9570,9 @@ class wP {
9570
9570
  return this.mostRecentPeerId;
9571
9571
  }
9572
9572
  }
9573
- const Vi = new wP(), ae = class {
9573
+ const xi = new wP(), ae = class {
9574
9574
  static get logsEndpoint() {
9575
- const t = Vi.getContext(ae.meetingMetadata.peerId);
9575
+ const t = xi.getContext(ae.meetingMetadata.peerId);
9576
9576
  return `https://${dn({
9577
9577
  servicePrefix: "api-silos",
9578
9578
  baseURI: t.getValue("baseURI")
@@ -9621,7 +9621,7 @@ const Vi = new wP(), ae = class {
9621
9621
  }
9622
9622
  static addLogInCurrentSpan(t, e, r = {}, i = false) {
9623
9623
  r != null && r.error && Object.assign(r, { error: Vc(r.error) });
9624
- const n = Vi.getContext(ae.meetingMetadata.peerId);
9624
+ const n = xi.getContext(ae.meetingMetadata.peerId);
9625
9625
  if (uP(n) && (cP(r) ? console[t]("DyteInternalLogs:: ", t, e) : console[t](
9626
9626
  "DyteInternalLogs:: ",
9627
9627
  t,
@@ -9653,7 +9653,7 @@ const Vi = new wP(), ae = class {
9653
9653
  }
9654
9654
  }
9655
9655
  static sendOtelLogsToNewRelic(t) {
9656
- const e = Vi.getContext(ae.meetingMetadata.peerId);
9656
+ const e = xi.getContext(ae.meetingMetadata.peerId);
9657
9657
  fetch(ae.logsEndpoint, {
9658
9658
  method: "POST",
9659
9659
  headers: {
@@ -9913,7 +9913,7 @@ ${this.message}`;
9913
9913
  r && r.endsWith("00") && (n = true), n && l.error("DyteError", {
9914
9914
  error: { message: this.message, name: this.name, code: r }
9915
9915
  });
9916
- const o = Vi.getContext(Vi.getMostRecentPeerId());
9916
+ const o = xi.getContext(xi.getMostRecentPeerId());
9917
9917
  if (o) {
9918
9918
  const c = o.getValue("onError");
9919
9919
  try {
@@ -10542,10 +10542,10 @@ const vh = class extends xt {
10542
10542
  };
10543
10543
  let Yl = vh;
10544
10544
  Ht = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), is = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap();
10545
- var ir;
10545
+ var nr;
10546
10546
  (function(s) {
10547
10547
  s[s.PUBLISHER = 0] = "PUBLISHER", s[s.SUBSCRIBER = 1] = "SUBSCRIBER";
10548
- })(ir || (ir = {}));
10548
+ })(nr || (nr = {}));
10549
10549
  var ks;
10550
10550
  (function(s) {
10551
10551
  s[s.AUDIO = 0] = "AUDIO", s[s.VIDEO = 1] = "VIDEO";
@@ -10632,7 +10632,7 @@ new xP();
10632
10632
  class UP extends MessageType {
10633
10633
  constructor() {
10634
10634
  super("media.SessionDescription", [
10635
- { no: 1, name: "target", kind: "enum", T: () => ["media.Target", ir] },
10635
+ { no: 1, name: "target", kind: "enum", T: () => ["media.Target", nr] },
10636
10636
  {
10637
10637
  no: 2,
10638
10638
  name: "type",
@@ -12150,14 +12150,14 @@ class GR extends MessageType {
12150
12150
  }
12151
12151
  }
12152
12152
  const WR = new GR();
12153
- var xi;
12153
+ var Ui;
12154
12154
  (function(s) {
12155
12155
  s[s.BROWSER = 0] = "BROWSER", s[s.TRACK = 1] = "TRACK", s[s.COMPOSITE = 2] = "COMPOSITE";
12156
- })(xi || (xi = {}));
12157
- var er;
12156
+ })(Ui || (Ui = {}));
12157
+ var tr;
12158
12158
  (function(s) {
12159
12159
  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";
12160
- })(er || (er = {}));
12160
+ })(tr || (tr = {}));
12161
12161
  var eu;
12162
12162
  (function(s) {
12163
12163
  s[s.NONE = 0] = "NONE", s[s.RECORDER = 1] = "RECORDER", s[s.LIVESTREAMER = 2] = "LIVESTREAMER";
@@ -12216,7 +12216,7 @@ class zR extends MessageType {
12216
12216
  kind: "scalar",
12217
12217
  T: 9
12218
12218
  },
12219
- { no: 4, name: "stage_type", kind: "enum", opt: true, T: () => ["socket.room.StageType", er, "STAGE_TYPE_"] },
12219
+ { no: 4, name: "stage_type", kind: "enum", opt: true, T: () => ["socket.room.StageType", tr, "STAGE_TYPE_"] },
12220
12220
  {
12221
12221
  no: 5,
12222
12222
  name: "custom_participant_id",
@@ -12256,7 +12256,7 @@ class YR extends MessageType {
12256
12256
  ]);
12257
12257
  }
12258
12258
  }
12259
- const Yi = new YR();
12259
+ const Qi = new YR();
12260
12260
  class QR extends MessageType {
12261
12261
  constructor() {
12262
12262
  super("socket.room.PeerStatusUpdate", [
@@ -12272,7 +12272,7 @@ class QR extends MessageType {
12272
12272
  kind: "scalar",
12273
12273
  T: 9
12274
12274
  },
12275
- { no: 3, name: "stage_type", kind: "enum", opt: true, T: () => ["socket.room.StageType", er, "STAGE_TYPE_"] }
12275
+ { no: 3, name: "stage_type", kind: "enum", opt: true, T: () => ["socket.room.StageType", tr, "STAGE_TYPE_"] }
12276
12276
  ]);
12277
12277
  }
12278
12278
  }
@@ -12367,7 +12367,7 @@ class rw extends MessageType {
12367
12367
  kind: "scalar",
12368
12368
  T: 9
12369
12369
  },
12370
- { no: 2, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", xi] },
12370
+ { no: 2, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", Ui] },
12371
12371
  {
12372
12372
  no: 3,
12373
12373
  name: "recording_status",
@@ -13525,7 +13525,7 @@ class Vb extends MessageType {
13525
13525
  ]);
13526
13526
  }
13527
13527
  }
13528
- const Gi = new Vb();
13528
+ const Wi = new Vb();
13529
13529
  class xb extends MessageType {
13530
13530
  constructor() {
13531
13531
  super("socket.chat.GetPaginatedChatMessageRoomRequest", [
@@ -13568,7 +13568,7 @@ const Ub = new xb();
13568
13568
  class $b extends MessageType {
13569
13569
  constructor() {
13570
13570
  super("socket.chat.GetPaginatedChatMessageRoomResponse", [
13571
- { no: 1, name: "messages", kind: "message", repeat: 1, T: () => Gi },
13571
+ { no: 1, name: "messages", kind: "message", repeat: 1, T: () => Wi },
13572
13572
  {
13573
13573
  no: 2,
13574
13574
  name: "next",
@@ -13582,7 +13582,7 @@ const Fb = new $b();
13582
13582
  class Bb extends MessageType {
13583
13583
  constructor() {
13584
13584
  super("socket.chat.GetChatMessagesResponse", [
13585
- { no: 1, name: "messages", kind: "message", repeat: 1, T: () => Gi }
13585
+ { no: 1, name: "messages", kind: "message", repeat: 1, T: () => Wi }
13586
13586
  ]);
13587
13587
  }
13588
13588
  }
@@ -13609,7 +13609,7 @@ const qb = new Hb();
13609
13609
  class jb extends MessageType {
13610
13610
  constructor() {
13611
13611
  super("socket.chat.SendChatMessageToRoomResponse", [
13612
- { no: 1, name: "message", kind: "message", T: () => Gi }
13612
+ { no: 1, name: "message", kind: "message", T: () => Wi }
13613
13613
  ]);
13614
13614
  }
13615
13615
  }
@@ -13643,7 +13643,7 @@ const Wb = new Gb();
13643
13643
  class Jb extends MessageType {
13644
13644
  constructor() {
13645
13645
  super("socket.chat.SendChatMessageToPeersResponse", [
13646
- { no: 1, name: "message", kind: "message", T: () => Gi }
13646
+ { no: 1, name: "message", kind: "message", T: () => Wi }
13647
13647
  ]);
13648
13648
  }
13649
13649
  }
@@ -13676,7 +13676,7 @@ const zb = new Kb();
13676
13676
  class Yb extends MessageType {
13677
13677
  constructor() {
13678
13678
  super("socket.chat.SendChatMessageToChannelResponse", [
13679
- { no: 1, name: "message", kind: "message", T: () => Gi }
13679
+ { no: 1, name: "message", kind: "message", T: () => Wi }
13680
13680
  ]);
13681
13681
  }
13682
13682
  }
@@ -13777,7 +13777,7 @@ const kc = new tk();
13777
13777
  class sk extends MessageType {
13778
13778
  constructor() {
13779
13779
  super("socket.chat.EditChatMessageResponse", [
13780
- { no: 1, name: "message", kind: "message", T: () => Gi }
13780
+ { no: 1, name: "message", kind: "message", T: () => Wi }
13781
13781
  ]);
13782
13782
  }
13783
13783
  }
@@ -14021,7 +14021,7 @@ const Tk = new vk();
14021
14021
  class yk extends MessageType {
14022
14022
  constructor() {
14023
14023
  super("socket.chat.LatestMessageAndUnreadCount", [
14024
- { no: 1, name: "message", kind: "message", T: () => Gi },
14024
+ { no: 1, name: "message", kind: "message", T: () => Wi },
14025
14025
  {
14026
14026
  no: 2,
14027
14027
  name: "unread_count",
@@ -14838,7 +14838,7 @@ class kI extends MessageType {
14838
14838
  kind: "scalar",
14839
14839
  T: 9
14840
14840
  },
14841
- { no: 3, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", xi] }
14841
+ { no: 3, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", Ui] }
14842
14842
  ]);
14843
14843
  }
14844
14844
  }
@@ -15117,7 +15117,7 @@ function Vg(s, t) {
15117
15117
  const x = wa(OI, $I), Ie = wa(NI, FI), z = wa(
15118
15118
  LI,
15119
15119
  BI
15120
- ), Ls = wa(VI, HI), ti = wa(
15120
+ ), Ls = wa(VI, HI), si = wa(
15121
15121
  xI,
15122
15122
  qI
15123
15123
  ), Xt = Vg(Lg, 16777216), hs = Vg(Lg, 50331648), Uc = wa(
@@ -15128,11 +15128,11 @@ var GI = Object.defineProperty, WI = Object.getOwnPropertyDescriptor, eh = (s, t
15128
15128
  for (var i = r > 1 ? void 0 : r ? WI(t, e) : t, n = s.length - 1, o; n >= 0; n--)
15129
15129
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
15130
15130
  return r && i && GI(t, e, i), i;
15131
- }, fr, Gp;
15131
+ }, vr, Gp;
15132
15132
  const nu = (Gp = class {
15133
15133
  constructor(s) {
15134
- f(this, fr, void 0);
15135
- v(this, fr, s);
15134
+ f(this, vr, void 0);
15135
+ v(this, vr, s);
15136
15136
  }
15137
15137
  createChannel(s, t, e, r = "public", i = false) {
15138
15138
  return u(this, null, function* () {
@@ -15144,8 +15144,8 @@ const nu = (Gp = class {
15144
15144
  isDirectMessage: i
15145
15145
  };
15146
15146
  i && (n.visibility = "private");
15147
- const o = yield a(this, fr).sendMessagePromise(
15148
- ti.createChatChannel,
15147
+ const o = yield a(this, vr).sendMessagePromise(
15148
+ si.createChatChannel,
15149
15149
  pk.toBinary(n)
15150
15150
  ), c = Ds.fromBinary(
15151
15151
  o.payload
@@ -15155,8 +15155,8 @@ const nu = (Gp = class {
15155
15155
  }
15156
15156
  updateChannel(s, t) {
15157
15157
  return u(this, null, function* () {
15158
- const e = yield a(this, fr).sendMessagePromise(
15159
- ti.updateChatChannel,
15158
+ const e = yield a(this, vr).sendMessagePromise(
15159
+ si.updateChatChannel,
15160
15160
  gk.toBinary({
15161
15161
  chatChannelId: s,
15162
15162
  targetUserIds: t.memberIds,
@@ -15184,8 +15184,8 @@ const nu = (Gp = class {
15184
15184
  getChannelMembers(s) {
15185
15185
  return u(this, null, function* () {
15186
15186
  try {
15187
- const t = yield a(this, fr).sendMessagePromise(
15188
- ti.getChannelMembers,
15187
+ const t = yield a(this, vr).sendMessagePromise(
15188
+ si.getChannelMembers,
15189
15189
  Tk.toBinary({ chatChannelId: s })
15190
15190
  );
15191
15191
  return bk.fromBinary(t.payload).channelMembers.map((i) => {
@@ -15200,13 +15200,13 @@ const nu = (Gp = class {
15200
15200
  on(s, t) {
15201
15201
  let e, r;
15202
15202
  switch (s) {
15203
- case ti.createChatChannel: {
15203
+ case si.createChatChannel: {
15204
15204
  e = Ds.fromBinary.bind(
15205
15205
  Ds
15206
15206
  ), r = Ds.create();
15207
15207
  break;
15208
15208
  }
15209
- case ti.updateChatChannel: {
15209
+ case si.updateChatChannel: {
15210
15210
  e = Ds.fromBinary.bind(
15211
15211
  Ds
15212
15212
  ), r = Ds.create();
@@ -15219,7 +15219,7 @@ const nu = (Gp = class {
15219
15219
  );
15220
15220
  return;
15221
15221
  }
15222
- a(this, fr).on(s, ({ payload: i }) => {
15222
+ a(this, vr).on(s, ({ payload: i }) => {
15223
15223
  let n = r;
15224
15224
  try {
15225
15225
  n = e(i);
@@ -15231,17 +15231,17 @@ const nu = (Gp = class {
15231
15231
  return t(n);
15232
15232
  });
15233
15233
  }
15234
- }, fr = /* @__PURE__ */ new WeakMap(), Gp);
15235
- let $i = nu;
15234
+ }, vr = /* @__PURE__ */ new WeakMap(), Gp);
15235
+ let Fi = nu;
15236
15236
  eh([
15237
15237
  y.trace("ChatChannelHandler.createChannel")
15238
- ], $i.prototype, "createChannel", 1);
15238
+ ], Fi.prototype, "createChannel", 1);
15239
15239
  eh([
15240
15240
  y.trace("ChatChannelHandler.updateChannel")
15241
- ], $i.prototype, "updateChannel", 1);
15241
+ ], Fi.prototype, "updateChannel", 1);
15242
15242
  eh([
15243
15243
  y.trace("ChatChannelHandler.getChannelMembers")
15244
- ], $i.prototype, "getChannelMembers", 1);
15244
+ ], Fi.prototype, "getChannelMembers", 1);
15245
15245
  var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Ts = (s, t, e, r) => {
15246
15246
  for (var i = r > 1 ? void 0 : r ? KI(t, e) : t, n = s.length - 1, o; n >= 0; n--)
15247
15247
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
@@ -15372,7 +15372,7 @@ class Zt {
15372
15372
  const t = yield a(this, rt).sendMessagePromise(
15373
15373
  Ie.getAllChatChannels
15374
15374
  );
15375
- return Ds.fromBinary(t.payload).chatChannels.map($i.formatChannel);
15375
+ return Ds.fromBinary(t.payload).chatChannels.map(Fi.formatChannel);
15376
15376
  } catch (t) {
15377
15377
  return [];
15378
15378
  }
@@ -16026,7 +16026,7 @@ var nA = Object.defineProperty, aA = Object.getOwnPropertyDescriptor, ht = (s, t
16026
16026
  return r && i && nA(t, e, i), i;
16027
16027
  };
16028
16028
  const oA = ["text", "image", "file", "custom", "poll"], $c = { maxInvocations: 180, period: 60 };
16029
- var re, ni, Fe, ai, To, gd, Ug, yo, ou, Wp;
16029
+ var re, ai, Fe, oi, To, gd, Ug, yo, ou, Wp;
16030
16030
  let Ke = (Wp = class extends xt {
16031
16031
  constructor(t, e, r, i, n) {
16032
16032
  super();
@@ -16035,12 +16035,12 @@ let Ke = (Wp = class extends xt {
16035
16035
  p(this, "messages");
16036
16036
  p(this, "channels", []);
16037
16037
  f(this, re, void 0);
16038
- f(this, ni, void 0);
16039
- f(this, Fe, void 0);
16040
16038
  f(this, ai, void 0);
16039
+ f(this, Fe, void 0);
16040
+ f(this, oi, void 0);
16041
16041
  f(this, To, void 0);
16042
16042
  p(this, "maxTextLimit", 2e3);
16043
- v(this, To, t), v(this, Fe, e), v(this, ai, r), v(this, re, i), v(this, ni, n), this.messages = [];
16043
+ v(this, To, t), v(this, Fe, e), v(this, oi, r), v(this, re, i), v(this, ai, n), this.messages = [];
16044
16044
  }
16045
16045
  setMaxTextLimit(t) {
16046
16046
  this.maxTextLimit = t;
@@ -16084,7 +16084,7 @@ let Ke = (Wp = class extends xt {
16084
16084
  return;
16085
16085
  }
16086
16086
  let i = [];
16087
- e && e.length > 0 && (e.push(a(this, re).id), i = a(this, ni).joined.toArray().filter((g) => e.includes(g.id)).map((g) => g.userId), i.push(a(this, re).userId)), a(this, Fe).sendMessage(
16087
+ e && e.length > 0 && (e.push(a(this, re).id), i = a(this, ai).joined.toArray().filter((g) => e.includes(g.id)).map((g) => g.userId), i.push(a(this, re).userId)), a(this, Fe).sendMessage(
16088
16088
  t,
16089
16089
  St.TEXT,
16090
16090
  e
@@ -16125,7 +16125,7 @@ let Ke = (Wp = class extends xt {
16125
16125
  return;
16126
16126
  }
16127
16127
  let P = [];
16128
- e && e.length > 0 && (e.push(a(this, re).id), P = a(this, ni).joined.toArray().filter((b) => e.includes(b.id)).map((b) => b.userId), P.push(a(this, re).userId)), a(this, Fe).sendMessage(
16128
+ e && e.length > 0 && (e.push(a(this, re).id), P = a(this, ai).joined.toArray().filter((b) => e.includes(b.id)).map((b) => b.userId), P.push(a(this, re).userId)), a(this, Fe).sendMessage(
16129
16129
  T,
16130
16130
  St.IMAGE,
16131
16131
  e
@@ -16169,7 +16169,7 @@ let Ke = (Wp = class extends xt {
16169
16169
  return;
16170
16170
  }
16171
16171
  let _ = [];
16172
- e && e.length > 0 && (e.push(a(this, re).id), _ = a(this, ni).joined.toArray().filter((b) => e.includes(b.id)).map((b) => b.userId), _.push(a(this, re).userId));
16172
+ e && e.length > 0 && (e.push(a(this, re).id), _ = a(this, ai).joined.toArray().filter((b) => e.includes(b.id)).map((b) => b.userId), _.push(a(this, re).userId));
16173
16173
  const P = JSON.stringify({
16174
16174
  link: g,
16175
16175
  name: t.name,
@@ -16432,7 +16432,7 @@ let Ke = (Wp = class extends xt {
16432
16432
  if (!t || t.trim().length === 0)
16433
16433
  throw new w("channel name cannot be empty.", "0510");
16434
16434
  const c = [.../* @__PURE__ */ new Set([...e, a(this, re).userId])];
16435
- return yield a(this, ai).createChannel(
16435
+ return yield a(this, oi).createChannel(
16436
16436
  t.trim(),
16437
16437
  c,
16438
16438
  r.displayPictureUrl,
@@ -16458,7 +16458,7 @@ let Ke = (Wp = class extends xt {
16458
16458
  displayPictureUrl: (h = e.displayPictureUrl) != null ? h : r.displayPictureUrl,
16459
16459
  visibility: (m = e.visibility) != null ? m : r.visibility
16460
16460
  };
16461
- return a(this, ai).updateChannel(t, n);
16461
+ return a(this, oi).updateChannel(t, n);
16462
16462
  }
16463
16463
  sendMessageToChannel(i, n) {
16464
16464
  return u(this, arguments, function* (t, e, r = {}) {
@@ -16467,7 +16467,7 @@ let Ke = (Wp = class extends xt {
16467
16467
  }
16468
16468
  getChannelMembers(t) {
16469
16469
  return u(this, null, function* () {
16470
- return a(this, ai).getChannelMembers(t);
16470
+ return a(this, oi).getChannelMembers(t);
16471
16471
  });
16472
16472
  }
16473
16473
  searchMessages(r) {
@@ -16490,7 +16490,7 @@ let Ke = (Wp = class extends xt {
16490
16490
  get pinned() {
16491
16491
  return this.messages.filter((t) => t.pinned);
16492
16492
  }
16493
- }, re = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), gd = /* @__PURE__ */ new WeakSet(), Ug = function() {
16493
+ }, re = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), gd = /* @__PURE__ */ new WeakSet(), Ug = function() {
16494
16494
  return a(this, To).getValue("connectionHandler");
16495
16495
  }, yo = /* @__PURE__ */ new WeakSet(), ou = function() {
16496
16496
  return a(this, gd, Ug).socketJoined === true;
@@ -16728,9 +16728,9 @@ const Qr = (Jp = class {
16728
16728
  });
16729
16729
  }
16730
16730
  ), this.chatChannelSocketHandler.on(
16731
- ti.createChatChannel,
16731
+ si.createChatChannel,
16732
16732
  (s) => {
16733
- const [t] = s.chatChannels, e = $i.formatChannel(t);
16733
+ const [t] = s.chatChannels, e = Fi.formatChannel(t);
16734
16734
  this.chat.channels.push(e), this.chat.emit("channelCreate", e);
16735
16735
  }
16736
16736
  ), this.chatSocketHandler.on(
@@ -16747,9 +16747,9 @@ const Qr = (Jp = class {
16747
16747
  });
16748
16748
  }
16749
16749
  ), this.chatChannelSocketHandler.on(
16750
- ti.updateChatChannel,
16750
+ si.updateChatChannel,
16751
16751
  (s) => {
16752
- const [t] = s.chatChannels, e = $i.formatChannel(t);
16752
+ const [t] = s.chatChannels, e = Fi.formatChannel(t);
16753
16753
  this.chat.channels = this.chat.channels.map((r) => r.id === e.id ? e : r), this.chat.emit("channelUpdate", e);
16754
16754
  }
16755
16755
  );
@@ -16828,17 +16828,17 @@ var mA = Object.defineProperty, gA = Object.getOwnPropertyDescriptor, fA = (s, t
16828
16828
  for (var i = r > 1 ? void 0 : r ? gA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
16829
16829
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
16830
16830
  return r && i && mA(t, e, i), i;
16831
- }, yn, oi, zp;
16832
- const Qi = (zp = class {
16831
+ }, yn, ci, zp;
16832
+ const Xi = (zp = class {
16833
16833
  constructor(s, t, e) {
16834
16834
  p(this, "polls");
16835
16835
  f(this, yn, void 0);
16836
- f(this, oi, void 0);
16837
- this.polls = new cu(s, t, e), v(this, yn, t), v(this, oi, e), this.setupEvents();
16836
+ f(this, ci, void 0);
16837
+ this.polls = new cu(s, t, e), v(this, yn, t), v(this, ci, e), this.setupEvents();
16838
16838
  }
16839
16839
  static init(s, t, e) {
16840
16840
  return u(this, null, function* () {
16841
- return new Qi(s, t, e);
16841
+ return new Xi(s, t, e);
16842
16842
  });
16843
16843
  }
16844
16844
  canViewPolls() {
@@ -16847,25 +16847,25 @@ const Qi = (zp = class {
16847
16847
  setupEvents() {
16848
16848
  const s = {
16849
16849
  [Ls.createPoll]: (r) => {
16850
- r.poll && this.updatePoll(Qi.formatSocketServicePoll(r.poll));
16850
+ r.poll && this.updatePoll(Xi.formatSocketServicePoll(r.poll));
16851
16851
  },
16852
16852
  [Ls.updatePoll]: (r) => {
16853
- r.poll && this.updatePoll(Qi.formatSocketServicePoll(r.poll));
16853
+ r.poll && this.updatePoll(Xi.formatSocketServicePoll(r.poll));
16854
16854
  },
16855
16855
  [Ls.votePoll]: (r) => {
16856
- r.poll && this.updatePoll(Qi.formatSocketServicePoll(r.poll));
16856
+ r.poll && this.updatePoll(Xi.formatSocketServicePoll(r.poll));
16857
16857
  }
16858
16858
  }, t = () => {
16859
16859
  I.on(A.SOCKET_SERVICE_ROOM_JOINED, () => {
16860
16860
  this.getPolls();
16861
16861
  }), Object.keys(s).map(Number).forEach((r) => {
16862
- a(this, oi).on(r, s[r]);
16862
+ a(this, ci).on(r, s[r]);
16863
16863
  });
16864
16864
  }, e = () => {
16865
16865
  I.on(A.SOCKET_SERVICE_ROOM_JOINED, () => {
16866
16866
  this.getPolls();
16867
16867
  }), Object.keys(s).map(Number).forEach((r) => {
16868
- a(this, oi).removeListeners(r);
16868
+ a(this, ci).removeListeners(r);
16869
16869
  });
16870
16870
  };
16871
16871
  a(this, yn).permissions.on("permissionsUpdate", (r) => u(this, null, function* () {
@@ -16889,12 +16889,12 @@ const Qi = (zp = class {
16889
16889
  }
16890
16890
  getPolls() {
16891
16891
  return u(this, null, function* () {
16892
- const s = yield a(this, oi).getPolls();
16892
+ const s = yield a(this, ci).getPolls();
16893
16893
  if (!(s != null && s.payload))
16894
16894
  return;
16895
16895
  const { polls: t } = bI.fromBinary(s.payload);
16896
16896
  this.polls.items = t.map(
16897
- (e) => Qi.formatSocketServicePoll(e)
16897
+ (e) => Xi.formatSocketServicePoll(e)
16898
16898
  );
16899
16899
  });
16900
16900
  }
@@ -16918,8 +16918,8 @@ const Qi = (zp = class {
16918
16918
  voted: s.votes
16919
16919
  };
16920
16920
  }
16921
- }, yn = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap(), zp);
16922
- let Bg = Qi;
16921
+ }, yn = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), zp);
16922
+ let Bg = Xi;
16923
16923
  fA([
16924
16924
  y.trace("PollController.setupEvents")
16925
16925
  ], Bg.prototype, "setupEvents", 1);
@@ -16927,7 +16927,7 @@ var vA = Object.defineProperty, TA = Object.getOwnPropertyDescriptor, yA = (s, t
16927
16927
  for (var i = r > 1 ? void 0 : r ? TA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
16928
16928
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
16929
16929
  return r && i && vA(t, e, i), i;
16930
- }, Hg = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Hg || {}), Sn, Eo, lu, ci, _o, Yp;
16930
+ }, Hg = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Hg || {}), Sn, Eo, lu, di, _o, Yp;
16931
16931
  let du = (Yp = class extends xt {
16932
16932
  constructor(t, e, r, i, n) {
16933
16933
  super();
@@ -16935,13 +16935,13 @@ let du = (Yp = class extends xt {
16935
16935
  p(this, "selfActiveTab");
16936
16936
  p(this, "broadcastTabChanges");
16937
16937
  f(this, Sn, void 0);
16938
- f(this, ci, void 0);
16938
+ f(this, di, void 0);
16939
16939
  f(this, _o, void 0);
16940
16940
  p(this, "viewType");
16941
16941
  p(this, "meetingStartedTimestamp");
16942
16942
  p(this, "meetingTitle");
16943
16943
  p(this, "sessionId");
16944
- v(this, Sn, t), v(this, ci, e), this.viewType = r, v(this, _o, i), this.meetingTitle = n, this.broadcastTabChanges = e.permissions.canSpotlight;
16944
+ v(this, Sn, t), v(this, di, e), this.viewType = r, v(this, _o, i), this.meetingTitle = n, this.broadcastTabChanges = e.permissions.canSpotlight;
16945
16945
  }
16946
16946
  get socketState() {
16947
16947
  return a(this, Eo, lu).socketState;
@@ -16953,7 +16953,7 @@ let du = (Yp = class extends xt {
16953
16953
  return a(this, Sn).getValue("meetingId");
16954
16954
  }
16955
16955
  setBroadcastTabChanges(t) {
16956
- if (!a(this, ci).permissions.canSpotlight)
16956
+ if (!a(this, di).permissions.canSpotlight)
16957
16957
  throw l.error("DyteSpotlight::setSpotlighted::permission_denied"), new w("User does not have permission to toggle spotlight", "0801");
16958
16958
  this.broadcastTabChanges = t, this.emit("broadcastTabChangesUpdate", this.broadcastTabChanges), this.broadcastTabChanges && this.assertActiveTabToRoom();
16959
16959
  }
@@ -16966,17 +16966,17 @@ let du = (Yp = class extends xt {
16966
16966
  type: t.type
16967
16967
  }
16968
16968
  }
16969
- }), this.selfActiveTab = t, e === 0 && this.emit("selfTabUpdate", t), (r = a(this, ci).permissions) != null && r.canSpotlight && this.broadcastTabChanges && e === 0 && this.assertActiveTabToRoom();
16969
+ }), this.selfActiveTab = t, e === 0 && this.emit("selfTabUpdate", t), (r = a(this, di).permissions) != null && r.canSpotlight && this.broadcastTabChanges && e === 0 && this.assertActiveTabToRoom();
16970
16970
  }
16971
16971
  assertActiveTabToRoom() {
16972
16972
  a(this, _o).broadcastMessage("spotlight", {
16973
- userId: a(this, ci).userId,
16973
+ userId: a(this, di).userId,
16974
16974
  currentTab: this.selfActiveTab
16975
16975
  });
16976
16976
  }
16977
16977
  }, Sn = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakSet(), lu = function() {
16978
16978
  return a(this, Sn).getValue("connectionHandler");
16979
- }, ci = /* @__PURE__ */ new WeakMap(), _o = /* @__PURE__ */ new WeakMap(), Yp);
16979
+ }, di = /* @__PURE__ */ new WeakMap(), _o = /* @__PURE__ */ new WeakMap(), Yp);
16980
16980
  du = yA([
16981
16981
  ut("0800")
16982
16982
  ], du);
@@ -17074,12 +17074,12 @@ var PA = Object.defineProperty, CA = Object.getOwnPropertyDescriptor, RA = (s, t
17074
17074
  for (var i = r > 1 ? void 0 : r ? CA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17075
17075
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17076
17076
  return r && i && PA(t, e, i), i;
17077
- }, vr, En, yd, Qp;
17077
+ }, Tr, En, yd, Qp;
17078
17078
  const jg = (Qp = class {
17079
17079
  constructor(s, t, e, r, i, n) {
17080
17080
  p(this, "meta");
17081
17081
  p(this, "ai");
17082
- f(this, vr, void 0);
17082
+ f(this, Tr, void 0);
17083
17083
  f(this, En, void 0);
17084
17084
  p(this, "aiSocketHandler");
17085
17085
  f(this, yd, void 0);
@@ -17089,7 +17089,7 @@ const jg = (Qp = class {
17089
17089
  t.config.viewType,
17090
17090
  e,
17091
17091
  n
17092
- ), this.ai = r, v(this, vr, t), v(this, En, e), this.aiSocketHandler = i, t.config.viewType !== Et.Chat && this.setupEvents();
17092
+ ), this.ai = r, v(this, Tr, t), v(this, En, e), this.aiSocketHandler = i, t.config.viewType !== Et.Chat && this.setupEvents();
17093
17093
  }
17094
17094
  static init(s, t, e, r, i) {
17095
17095
  return u(this, null, function* () {
@@ -17138,14 +17138,14 @@ const jg = (Qp = class {
17138
17138
  ({ score: s }) => {
17139
17139
  s < 5 && this.meta.emit("poorConnection", { score: s });
17140
17140
  }
17141
- ), a(this, vr).permissions.canSpotlight && (l.info("DyteMetaController::Asserting Spotlight"), this.meta.selfActiveTab && a(this, En).broadcastMessage("spotlight", {
17142
- userId: a(this, vr).userId,
17141
+ ), a(this, Tr).permissions.canSpotlight && (l.info("DyteMetaController::Asserting Spotlight"), this.meta.selfActiveTab && a(this, En).broadcastMessage("spotlight", {
17142
+ userId: a(this, Tr).userId,
17143
17143
  currentTab: this.meta.selfActiveTab
17144
17144
  })), I.on(
17145
17145
  A.PEER_JOINED_INTERNAL,
17146
17146
  (s) => u(this, null, function* () {
17147
- a(this, vr).permissions.canSpotlight && this.meta.selfActiveTab && a(this, En).broadcastToPeers("spotlight", [s.id], {
17148
- userId: a(this, vr).userId,
17147
+ a(this, Tr).permissions.canSpotlight && this.meta.selfActiveTab && a(this, En).broadcastToPeers("spotlight", [s.id], {
17148
+ userId: a(this, Tr).userId,
17149
17149
  currentTab: this.meta.selfActiveTab
17150
17150
  });
17151
17151
  })
@@ -17214,12 +17214,12 @@ const jg = (Qp = class {
17214
17214
  l.debug(`${t} Received transcript for peer ${n} - ${o}: ${c}`);
17215
17215
  });
17216
17216
  }
17217
- }, vr = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), yd = /* @__PURE__ */ new WeakMap(), Qp);
17217
+ }, Tr = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), yd = /* @__PURE__ */ new WeakMap(), Qp);
17218
17218
  let Gg = jg;
17219
17219
  RA([
17220
17220
  y.trace("MetaController.setupEvents")
17221
17221
  ], Gg.prototype, "setupEvents", 1);
17222
- var wA = Object.defineProperty, bA = Object.getOwnPropertyDescriptor, Wi = (s, t, e, r) => {
17222
+ var wA = Object.defineProperty, bA = Object.getOwnPropertyDescriptor, Ji = (s, t, e, r) => {
17223
17223
  for (var i = r > 1 ? void 0 : r ? bA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17224
17224
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17225
17225
  return r && i && wA(t, e, i), i;
@@ -17375,25 +17375,25 @@ jt = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), oe = /*
17375
17375
  this.status !== e && a(this, ns).setValue("stageStatus", e);
17376
17376
  });
17377
17377
  };
17378
- Wi([
17378
+ Ji([
17379
17379
  y.trace("DyteStage.getStageRequests")
17380
17380
  ], Wr.prototype, "getAccessRequests", 1);
17381
- Wi([
17381
+ Ji([
17382
17382
  y.trace("DyteStage.requestAccess")
17383
17383
  ], Wr.prototype, "requestAccess", 1);
17384
- Wi([
17384
+ Ji([
17385
17385
  y.trace("DyteStage.cancelRequestAccess")
17386
17386
  ], Wr.prototype, "cancelRequestAccess", 1);
17387
- Wi([
17387
+ Ji([
17388
17388
  y.trace("DyteStage.grantAccess")
17389
17389
  ], Wr.prototype, "grantAccess", 1);
17390
- Wi([
17390
+ Ji([
17391
17391
  y.trace("DyteStage.denyAccess")
17392
17392
  ], Wr.prototype, "denyAccess", 1);
17393
- Wi([
17393
+ Ji([
17394
17394
  y.trace("DyteStage.joinStage")
17395
17395
  ], Wr.prototype, "join", 1);
17396
- Wi([
17396
+ Ji([
17397
17397
  y.trace("DyteStage.leaveStage")
17398
17398
  ], Wr.prototype, "leave", 1);
17399
17399
  function kA(s) {
@@ -17401,15 +17401,15 @@ function kA(s) {
17401
17401
  }
17402
17402
  function th(s) {
17403
17403
  switch (s) {
17404
- case er.UNSPECIFIED:
17404
+ case tr.UNSPECIFIED:
17405
17405
  return "OFF_STAGE";
17406
- case er.REQUESTED_STAGE:
17406
+ case tr.REQUESTED_STAGE:
17407
17407
  return "REQUESTED_TO_JOIN_STAGE";
17408
- case er.APPROVED_STAGE:
17408
+ case tr.APPROVED_STAGE:
17409
17409
  return "ACCEPTED_TO_JOIN_STAGE";
17410
- case er.OFF_STAGE:
17410
+ case tr.OFF_STAGE:
17411
17411
  return "OFF_STAGE";
17412
- case er.ON_STAGE:
17412
+ case tr.ON_STAGE:
17413
17413
  return "ON_STAGE";
17414
17414
  default:
17415
17415
  return "OFF_STAGE";
@@ -17419,13 +17419,13 @@ var IA = Object.defineProperty, AA = Object.getOwnPropertyDescriptor, MA = (s, t
17419
17419
  for (var i = r > 1 ? void 0 : r ? AA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17420
17420
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17421
17421
  return r && i && IA(t, e, i), i;
17422
- }, Tr, di, yr, Ro, Fs;
17422
+ }, yr, li, Sr, Ro, Fs;
17423
17423
  class Wg {
17424
17424
  constructor(t, e, r, i, n) {
17425
17425
  p(this, "stage");
17426
- f(this, Tr, void 0);
17427
- f(this, di, void 0);
17428
17426
  f(this, yr, void 0);
17427
+ f(this, li, void 0);
17428
+ f(this, Sr, void 0);
17429
17429
  f(this, Ro, 0);
17430
17430
  f(this, Fs, void 0);
17431
17431
  v(this, Fs, t), this.stage = new Wr(
@@ -17434,22 +17434,22 @@ class Wg {
17434
17434
  n,
17435
17435
  e,
17436
17436
  r
17437
- ), v(this, yr, e), v(this, Tr, i), v(this, di, n), this.setupEvents();
17437
+ ), v(this, Sr, e), v(this, yr, i), v(this, li, n), this.setupEvents();
17438
17438
  }
17439
17439
  setupEvents() {
17440
17440
  a(this, Fs).subscribe("stageStatus", (t) => {
17441
17441
  this.stage.emit("stageStatusUpdate", t);
17442
- }), a(this, yr).on(x.grantStageAccess, () => {
17443
- a(this, Tr).permissions.stageAccess !== K.Allowed && (this.stage.emit("stageRequestApproved"), this.setStageStatus("ACCEPTED_TO_JOIN_STAGE"));
17444
- }), a(this, yr).on(x.peerStageStatusUpdate, (t) => {
17445
- t !== void 0 && (t.peerId === a(this, Tr).id ? this.selfStageStatusHandler(t) : this.peerStageStatusHandler(t));
17446
- }), a(this, yr).on(x.denyStageAccess, () => {
17447
- a(this, Tr).permissions.stageAccess !== K.Allowed && (this.stage.emit("stageRequestRejected"), this.setStageStatus("OFF_STAGE"));
17448
- }), a(this, yr).on(
17442
+ }), a(this, Sr).on(x.grantStageAccess, () => {
17443
+ a(this, yr).permissions.stageAccess !== K.Allowed && (this.stage.emit("stageRequestApproved"), this.setStageStatus("ACCEPTED_TO_JOIN_STAGE"));
17444
+ }), a(this, Sr).on(x.peerStageStatusUpdate, (t) => {
17445
+ t !== void 0 && (t.peerId === a(this, yr).id ? this.selfStageStatusHandler(t) : this.peerStageStatusHandler(t));
17446
+ }), a(this, Sr).on(x.denyStageAccess, () => {
17447
+ a(this, yr).permissions.stageAccess !== K.Allowed && (this.stage.emit("stageRequestRejected"), this.setStageStatus("OFF_STAGE"));
17448
+ }), a(this, Sr).on(
17449
17449
  x.getStageRequests,
17450
17450
  (t) => u(this, null, function* () {
17451
17451
  var r;
17452
- if (a(this, Tr).permissions.stageAccess !== K.Allowed)
17452
+ if (a(this, yr).permissions.stageAccess !== K.Allowed)
17453
17453
  return;
17454
17454
  const e = (r = t == null ? void 0 : t.stageRequests) != null ? r : [];
17455
17455
  yield I.emitAsync(A.GET_STAGE_REQUESTS, e), a(this, Ro) < e.length && e.length > 0 && this.stage.emit("newStageRequest", { count: e.length }), v(this, Ro, e.length), this.stage.emit("stageAccessRequestUpdate", e);
@@ -17457,7 +17457,7 @@ class Wg {
17457
17457
  );
17458
17458
  }
17459
17459
  getCurrentStageRequests() {
17460
- return a(this, di).joined.toArray().filter(
17460
+ return a(this, li).joined.toArray().filter(
17461
17461
  (e) => e.stageStatus === "REQUESTED_TO_JOIN_STAGE"
17462
17462
  ).map((e) => ({
17463
17463
  displayName: e.name,
@@ -17490,7 +17490,7 @@ class Wg {
17490
17490
  }
17491
17491
  peerStageStatusHandler(t) {
17492
17492
  return u(this, null, function* () {
17493
- const e = a(this, di).joined.get(t.peerId), r = a(this, di).viewMode === "ACTIVE_GRID";
17493
+ const e = a(this, li).joined.get(t.peerId), r = a(this, li).viewMode === "ACTIVE_GRID";
17494
17494
  if (!e) {
17495
17495
  l.warn("err::peerStageStatusUpdate: participant not found");
17496
17496
  return;
@@ -17518,7 +17518,7 @@ class Wg {
17518
17518
  });
17519
17519
  }
17520
17520
  }
17521
- Tr = /* @__PURE__ */ new WeakMap(), di = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Ro = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ new WeakMap();
17521
+ yr = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Ro = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ new WeakMap();
17522
17522
  MA([
17523
17523
  y.trace("DyteStage.setupEvents")
17524
17524
  ], Wg.prototype, "setupEvents", 1);
@@ -17541,7 +17541,7 @@ const Me = {
17541
17541
  stageStatusUpdate: 25,
17542
17542
  peerStageStatusUpdate: 26
17543
17543
  };
17544
- var it, Nt, Cn, Rn, Bs, wn, li, bn, Xp;
17544
+ var it, Nt, Cn, Rn, Bs, wn, ui, bn, Xp;
17545
17545
  let Pa = (Xp = class extends Ra {
17546
17546
  constructor(t, {
17547
17547
  baseURL: e,
@@ -17582,9 +17582,9 @@ let Pa = (Xp = class extends Ra {
17582
17582
  p(this, "active");
17583
17583
  p(this, "iframes");
17584
17584
  p(this, "enabledBy");
17585
- f(this, li, void 0);
17585
+ f(this, ui, void 0);
17586
17586
  f(this, bn, void 0);
17587
- v(this, li, t), this.baseURL = e, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = o, v(this, Nt, R), this.organizationId = c, this.picture = d, this.private = h, this.published = m, this.staggered = g, this.tags = T, this.type = _, this.updatedAt = new Date(P), this.active = false, this.iframes = /* @__PURE__ */ new Map(), v(this, it, b), v(this, Cn, L), v(this, Rn, H), this.enabledBy = "", v(this, bn, F);
17587
+ v(this, ui, t), this.baseURL = e, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = o, v(this, Nt, R), this.organizationId = c, this.picture = d, this.private = h, this.published = m, this.staggered = g, this.tags = T, this.type = _, this.updatedAt = new Date(P), this.active = false, this.iframes = /* @__PURE__ */ new Map(), v(this, it, b), v(this, Cn, L), v(this, Rn, H), this.enabledBy = "", v(this, bn, F);
17588
17588
  }
17589
17589
  sendIframeEvent(t) {
17590
17590
  this.iframes.size && this.iframes.forEach((e) => {
@@ -17744,7 +17744,7 @@ let Pa = (Xp = class extends Ra {
17744
17744
  case Me.getRoomName: {
17745
17745
  this.sendIframeEvent({
17746
17746
  type: Me.getRoomName,
17747
- payload: { roomName: a(this, li).getValue("meetingId") },
17747
+ payload: { roomName: a(this, ui).getValue("meetingId") },
17748
17748
  uuid: e.uuid
17749
17749
  });
17750
17750
  break;
@@ -17788,9 +17788,9 @@ let Pa = (Xp = class extends Ra {
17788
17788
  const r = t, i = new URL(this.baseURL), n = {
17789
17789
  auth: a(this, wn),
17790
17790
  parent: navigator.isReactNative ? this.baseURL : window.location.origin,
17791
- backend: a(this, li).getValue("apiBase"),
17791
+ backend: a(this, ui).getValue("apiBase"),
17792
17792
  pluginId: this.id,
17793
- roomName: (o = a(this, li).getValue("meetingId")) != null ? o : "",
17793
+ roomName: (o = a(this, ui).getValue("meetingId")) != null ? o : "",
17794
17794
  displayTitle: a(this, bn)
17795
17795
  };
17796
17796
  if (Object.keys(n).forEach((c) => {
@@ -17873,7 +17873,7 @@ let Pa = (Xp = class extends Ra {
17873
17873
  }), v(this, Bs, void 0)));
17874
17874
  });
17875
17875
  }
17876
- }, it = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Xp);
17876
+ }, it = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Xp);
17877
17877
  hl([
17878
17878
  At({ maxInvocations: 5, period: 1 })
17879
17879
  ], Pa.prototype, "sendData", 1);
@@ -17886,7 +17886,7 @@ hl([
17886
17886
  Pa = hl([
17887
17887
  ut("0600")
17888
17888
  ], Pa);
17889
- var Ve, ui;
17889
+ var Ve, hi;
17890
17890
  class Jg extends Map {
17891
17891
  constructor(e) {
17892
17892
  const {
@@ -17896,11 +17896,11 @@ class Jg extends Map {
17896
17896
  } = e;
17897
17897
  super();
17898
17898
  f(this, Ve, void 0);
17899
- f(this, ui, void 0);
17899
+ f(this, hi, void 0);
17900
17900
  p(this, "onAddEvent");
17901
17901
  p(this, "onDeleteEvent");
17902
17902
  p(this, "onClearEvent");
17903
- v(this, Ve, new Ra()), this.onAddEvent = r, this.onDeleteEvent = i, this.onClearEvent = n, v(this, ui, /* @__PURE__ */ new Map());
17903
+ v(this, Ve, new Ra()), this.onAddEvent = r, this.onDeleteEvent = i, this.onClearEvent = n, v(this, hi, /* @__PURE__ */ new Map());
17904
17904
  }
17905
17905
  emit(e, ...r) {
17906
17906
  return a(this, Ve).emit(e, ...r);
@@ -17951,19 +17951,19 @@ class Jg extends Map {
17951
17951
  const n = super.set(e, r), o = (c, ...d) => {
17952
17952
  this.emit(c, r, ...d);
17953
17953
  };
17954
- return a(this, ui).set(e, o), r.on("*", o), i && a(this, Ve).emit(this.onAddEvent, r), n;
17954
+ return a(this, hi).set(e, o), r.on("*", o), i && a(this, Ve).emit(this.onAddEvent, r), n;
17955
17955
  }
17956
17956
  delete(e, r = true, i = false) {
17957
17957
  const n = this.get(e);
17958
17958
  if (!n)
17959
17959
  return false;
17960
- n.removeListener("*", a(this, ui).get(e));
17960
+ n.removeListener("*", a(this, hi).get(e));
17961
17961
  const o = super.delete(e);
17962
17962
  return i && n.removeAllListeners(), r && a(this, Ve).emit(this.onDeleteEvent, n), o;
17963
17963
  }
17964
17964
  clear(e = true, r = false) {
17965
17965
  this.forEach((n) => {
17966
- n.removeListener("*", a(this, ui).get(n.id)), r && n.removeAllListeners();
17966
+ n.removeListener("*", a(this, hi).get(n.id)), r && n.removeAllListeners();
17967
17967
  });
17968
17968
  const i = super.clear();
17969
17969
  return e && a(this, Ve).emit(this.onClearEvent), i;
@@ -17972,7 +17972,7 @@ class Jg extends Map {
17972
17972
  return Array.from(this.values());
17973
17973
  }
17974
17974
  }
17975
- Ve = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap();
17975
+ Ve = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap();
17976
17976
  class Mp extends Jg {
17977
17977
  constructor() {
17978
17978
  super({
@@ -18293,7 +18293,7 @@ var FA = Object.defineProperty, BA = Object.getOwnPropertyDescriptor, Tc = (s, t
18293
18293
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
18294
18294
  return r && i && FA(t, e, i), i;
18295
18295
  }, In, bo, An, Bc, em;
18296
- let Fi = (em = class extends xt {
18296
+ let Bi = (em = class extends xt {
18297
18297
  constructor(t, e) {
18298
18298
  super();
18299
18299
  f(this, An);
@@ -18386,19 +18386,19 @@ let Fi = (em = class extends xt {
18386
18386
  }, em);
18387
18387
  Tc([
18388
18388
  y.trace("DyteRecording.start")
18389
- ], Fi.prototype, "start", 1);
18389
+ ], Bi.prototype, "start", 1);
18390
18390
  Tc([
18391
18391
  y.trace("DyteRecording.stop")
18392
- ], Fi.prototype, "stop", 1);
18392
+ ], Bi.prototype, "stop", 1);
18393
18393
  Tc([
18394
18394
  y.trace("DyteRecording.stop")
18395
- ], Fi.prototype, "pause", 1);
18395
+ ], Bi.prototype, "pause", 1);
18396
18396
  Tc([
18397
18397
  y.trace("DyteRecording.stop")
18398
- ], Fi.prototype, "resume", 1);
18399
- Fi = Tc([
18398
+ ], Bi.prototype, "resume", 1);
18399
+ Bi = Tc([
18400
18400
  ut("1000")
18401
- ], Fi);
18401
+ ], Bi);
18402
18402
  var HA = Object.defineProperty, qA = Object.getOwnPropertyDescriptor, jA = (s, t, e, r) => {
18403
18403
  for (var i = r > 1 ? void 0 : r ? qA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
18404
18404
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
@@ -18409,18 +18409,18 @@ class zg {
18409
18409
  p(this, "recording");
18410
18410
  p(this, "room");
18411
18411
  f(this, Sd, void 0);
18412
- v(this, Sd, t), this.recording = new Fi(t, e), this.room = r, this.setupEvents();
18412
+ v(this, Sd, t), this.recording = new Bi(t, e), this.room = r, this.setupEvents();
18413
18413
  }
18414
18414
  getRecordingTypeFromProtoType(t) {
18415
18415
  let e;
18416
18416
  switch (t) {
18417
- case xi.BROWSER:
18417
+ case Ui.BROWSER:
18418
18418
  e = "BROWSER";
18419
18419
  break;
18420
- case xi.COMPOSITE:
18420
+ case Ui.COMPOSITE:
18421
18421
  e = "COMPOSITE";
18422
18422
  break;
18423
- case xi.TRACK:
18423
+ case Ui.TRACK:
18424
18424
  e = "TRACK";
18425
18425
  break;
18426
18426
  default:
@@ -18925,15 +18925,15 @@ function zA(s, t) {
18925
18925
  return n.stream.getAudioTracks()[0];
18926
18926
  });
18927
18927
  }
18928
- var hi;
18928
+ var pi;
18929
18929
  class YA {
18930
18930
  constructor() {
18931
- f(this, hi, void 0);
18931
+ f(this, pi, void 0);
18932
18932
  }
18933
18933
  terminateMiddlewareWebWorker() {
18934
- if (a(this, hi))
18934
+ if (a(this, pi))
18935
18935
  try {
18936
- clearInterval$1(a(this, hi)), v(this, hi, void 0);
18936
+ clearInterval$1(a(this, pi)), v(this, pi, void 0);
18937
18937
  } catch (t) {
18938
18938
  l.debug("WorkerTimers::terminateMiddlewareWebWorker::failed");
18939
18939
  }
@@ -18984,7 +18984,7 @@ class YA {
18984
18984
  o.addEventListener(
18985
18985
  "play",
18986
18986
  () => {
18987
- i.width = o.width || e.getSettings().width, i.height = o.width || e.getSettings().height, v(this, hi, setInterval$1(
18987
+ i.width = o.width || e.getSettings().width, i.height = o.width || e.getSettings().height, v(this, pi, setInterval$1(
18988
18988
  h,
18989
18989
  50
18990
18990
  ));
@@ -18998,7 +18998,7 @@ class YA {
18998
18998
  });
18999
18999
  }
19000
19000
  }
19001
- hi = /* @__PURE__ */ new WeakMap();
19001
+ pi = /* @__PURE__ */ new WeakMap();
19002
19002
  const Dp = {
19003
19003
  gross: { width: { ideal: 192 }, height: { ideal: 144 } },
19004
19004
  qvga: { width: { ideal: 384 }, height: { ideal: 288 } },
@@ -19075,7 +19075,7 @@ const Dp = {
19075
19075
  }), e[n][1];
19076
19076
  };
19077
19077
  var fe = /* @__PURE__ */ ((s) => (s.WEBCAM = "webcam", s.WEBCAM_BACKUP = "webcam_backup", s.MIC = "mic", s.SCREENSHARE_VIDEO = "screenshare_video", s.SCREENSHARE_AUDIO = "screenshare_audio", s))(fe || {});
19078
- const ZA = HE(), zi = ms(
19078
+ const ZA = HE(), Yi = ms(
19079
19079
  ZA.config.media
19080
19080
  );
19081
19081
  function eM(s) {
@@ -19086,14 +19086,14 @@ function eM(s) {
19086
19086
  enableHighBitrate: (r = s.audio.enableHighBitrate) != null ? r : false
19087
19087
  }), t.video = s.video.quality, t;
19088
19088
  }
19089
- var pi, _d;
19089
+ var mi, _d;
19090
19090
  class tM {
19091
19091
  constructor(t, e) {
19092
- f(this, pi, void 0);
19092
+ f(this, mi, void 0);
19093
19093
  f(this, _d, void 0);
19094
19094
  p(this, "getScreenShareConstraints", () => {
19095
19095
  var h, m, g, T, _, P, b, R, L, H, F;
19096
- const t2 = (h = a(this, pi)) == null ? void 0 : h.screenshare, e2 = (g = (m = t2 == null ? void 0 : t2.width) == null ? void 0 : m.max) != null ? g : 1920, r = (_ = (T = t2 == null ? void 0 : t2.height) == null ? void 0 : T.max) != null ? _ : 1080, i = (b = (P = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : P.max) != null ? b : 5;
19096
+ const t2 = (h = a(this, mi)) == null ? void 0 : h.screenshare, e2 = (g = (m = t2 == null ? void 0 : t2.width) == null ? void 0 : m.max) != null ? g : 1920, r = (_ = (T = t2 == null ? void 0 : t2.height) == null ? void 0 : T.max) != null ? _ : 1080, i = (b = (P = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : P.max) != null ? b : 5;
19097
19097
  let n = (L = (R = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : R.ideal) != null ? L : 5;
19098
19098
  const o = t2 == null ? void 0 : t2.displaySurface, c = t2 == null ? void 0 : t2.selfBrowserSurface;
19099
19099
  Y.getValue(se.VAL_MIN_FRAMERATE) && (n = parseInt(
@@ -19121,7 +19121,7 @@ class tM {
19121
19121
  });
19122
19122
  p(this, "getAudioConstraints", (t2) => {
19123
19123
  var n, o, c, d, h, m, g, T;
19124
- const e2 = {}, r = (n = a(this, pi)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
19124
+ const e2 = {}, r = (n = a(this, mi)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
19125
19125
  return Pe.isFirefox() || Pe.isWebKitBased() ? (e2.audio = {
19126
19126
  deviceId: t2,
19127
19127
  autoGainControl: (o = r == null ? void 0 : r.autoGainControl) != null ? o : true,
@@ -19140,7 +19140,7 @@ class tM {
19140
19140
  });
19141
19141
  p(this, "getVideoConstraints", (t2) => {
19142
19142
  var n, o, c, d;
19143
- const e2 = {}, r = (n = a(this, pi)) == null ? void 0 : n.video;
19143
+ const e2 = {}, r = (n = a(this, mi)) == null ? void 0 : n.video;
19144
19144
  let i = Dp.vga;
19145
19145
  if (typeof r == "string" ? i = Dp[r] : r !== void 0 && (i.height.ideal = r.height.ideal, i.width.ideal = r.width.ideal), i.frameRate = {
19146
19146
  ideal: (c = (o = i.frameRate) == null ? void 0 : o.ideal) != null ? c : 24
@@ -19152,13 +19152,13 @@ class tM {
19152
19152
  }
19153
19153
  return e2.video = i, typeof e2.video == "boolean" || (t2 ? e2.video.deviceId = { exact: t2 } : e2.video.facingMode = "user"), e2;
19154
19154
  });
19155
- v(this, _d, t), v(this, pi, e);
19155
+ v(this, _d, t), v(this, mi, e);
19156
19156
  }
19157
19157
  getUpdatedVideoConstraints(t) {
19158
19158
  return t;
19159
19159
  }
19160
19160
  }
19161
- pi = /* @__PURE__ */ new WeakMap(), _d = /* @__PURE__ */ new WeakMap();
19161
+ mi = /* @__PURE__ */ new WeakMap(), _d = /* @__PURE__ */ new WeakMap();
19162
19162
  class xl extends Error {
19163
19163
  constructor(e, r, i) {
19164
19164
  super(r);
@@ -20197,16 +20197,16 @@ gl([
20197
20197
  const _M = yc, Lp = ms(
20198
20198
  Ku()
20199
20199
  );
20200
- var Ct, mi, Ao, Nn;
20200
+ var Ct, gi, Ao, Nn;
20201
20201
  const rn = class {
20202
20202
  constructor(t) {
20203
20203
  f(this, Ct, void 0);
20204
- f(this, mi, void 0);
20204
+ f(this, gi, void 0);
20205
20205
  f(this, Ao, void 0);
20206
20206
  f(this, Nn, void 0);
20207
20207
  if (!t)
20208
20208
  throw new w("Could not load preset.", "0904");
20209
- v(this, Ct, t.config), v(this, Ao, t.name), v(this, mi, t.ui || ms(Ku().ui)), v(this, Nn, t.permissions.plugins.config);
20209
+ v(this, Ct, t.config), v(this, Ao, t.name), v(this, gi, t.ui || ms(Ku().ui)), v(this, Nn, t.permissions.plugins.config);
20210
20210
  }
20211
20211
  static fromResponse(t) {
20212
20212
  return new rn(t);
@@ -20247,7 +20247,7 @@ const rn = class {
20247
20247
  return {
20248
20248
  isEnabled: true,
20249
20249
  elements: {
20250
- logo: a(this, mi).designTokens.logo,
20250
+ logo: a(this, gi).designTokens.logo,
20251
20251
  timer: true,
20252
20252
  title: true,
20253
20253
  participantCount: true,
@@ -20277,25 +20277,25 @@ const rn = class {
20277
20277
  return Object.keys(a(this, Nn)).filter((t) => a(this, Nn)[t].disabled);
20278
20278
  }
20279
20279
  get designTokens() {
20280
- return a(this, mi).designTokens;
20280
+ return a(this, gi).designTokens;
20281
20281
  }
20282
20282
  get configDiff() {
20283
- return a(this, mi).configDiff;
20283
+ return a(this, gi).configDiff;
20284
20284
  }
20285
20285
  get mediaConstraints() {
20286
20286
  var t, e, r, i, n, o, c, d, h, m, g, T, _, P, b, R, L, H, F, B, q, ie, pe, Ye;
20287
20287
  return {
20288
20288
  audio: {
20289
- enableStereo: (i = (r = (e = (t = a(this, Ct)) == null ? void 0 : t.media) == null ? void 0 : e.audio) == null ? void 0 : r.enableStereo) != null ? i : zi.audio.enableStereo,
20290
- enableHighBitrate: (d = (c = (o = (n = a(this, Ct)) == null ? void 0 : n.media) == null ? void 0 : o.audio) == null ? void 0 : c.enableHighBitrate) != null ? d : zi.audio.enableHighBitrate
20289
+ enableStereo: (i = (r = (e = (t = a(this, Ct)) == null ? void 0 : t.media) == null ? void 0 : e.audio) == null ? void 0 : r.enableStereo) != null ? i : Yi.audio.enableStereo,
20290
+ enableHighBitrate: (d = (c = (o = (n = a(this, Ct)) == null ? void 0 : n.media) == null ? void 0 : o.audio) == null ? void 0 : c.enableHighBitrate) != null ? d : Yi.audio.enableHighBitrate
20291
20291
  },
20292
20292
  video: {
20293
- quality: (T = (g = (m = (h = a(this, Ct)) == null ? void 0 : h.media) == null ? void 0 : m.video) == null ? void 0 : g.quality) != null ? T : zi.video.quality,
20294
- frameRate: (R = (b = (P = (_ = a(this, Ct)) == null ? void 0 : _.media) == null ? void 0 : P.video) == null ? void 0 : b.frameRate) != null ? R : zi.video.frameRate
20293
+ quality: (T = (g = (m = (h = a(this, Ct)) == null ? void 0 : h.media) == null ? void 0 : m.video) == null ? void 0 : g.quality) != null ? T : Yi.video.quality,
20294
+ frameRate: (R = (b = (P = (_ = a(this, Ct)) == null ? void 0 : _.media) == null ? void 0 : P.video) == null ? void 0 : b.frameRate) != null ? R : Yi.video.frameRate
20295
20295
  },
20296
20296
  screenshare: {
20297
- quality: (B = (F = (H = (L = a(this, Ct)) == null ? void 0 : L.media) == null ? void 0 : H.screenshare) == null ? void 0 : F.quality) != null ? B : zi.screenshare.quality,
20298
- frameRate: (Ye = (pe = (ie = (q = a(this, Ct)) == null ? void 0 : q.media) == null ? void 0 : ie.screenshare) == null ? void 0 : pe.frameRate) != null ? Ye : zi.screenshare.frameRate
20297
+ quality: (B = (F = (H = (L = a(this, Ct)) == null ? void 0 : L.media) == null ? void 0 : H.screenshare) == null ? void 0 : F.quality) != null ? B : Yi.screenshare.quality,
20298
+ frameRate: (Ye = (pe = (ie = (q = a(this, Ct)) == null ? void 0 : q.media) == null ? void 0 : ie.screenshare) == null ? void 0 : pe.frameRate) != null ? Ye : Yi.screenshare.frameRate
20299
20299
  }
20300
20300
  };
20301
20301
  }
@@ -20304,7 +20304,7 @@ const rn = class {
20304
20304
  }
20305
20305
  };
20306
20306
  let mu = rn;
20307
- Ct = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap();
20307
+ Ct = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap();
20308
20308
  var PM = Object.defineProperty, CM = Object.getOwnPropertyDescriptor, Zg = (s, t, e, r) => {
20309
20309
  for (var i = r > 1 ? void 0 : r ? CM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
20310
20310
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
@@ -20459,14 +20459,14 @@ var kM = Object.defineProperty, IM = Object.getOwnPropertyDescriptor, Sc = (s, t
20459
20459
  for (var i = r > 1 ? void 0 : r ? IM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
20460
20460
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
20461
20461
  return r && i && kM(t, e, i), i;
20462
- }, nt, Sr, Er, Cd, tf;
20462
+ }, nt, Er, _r, Cd, tf;
20463
20463
  class ka {
20464
20464
  constructor({ name: t, socketHandler: e, meetingId: r }) {
20465
20465
  f(this, Cd);
20466
20466
  p(this, "name", "");
20467
20467
  f(this, nt, {});
20468
- f(this, Sr, "");
20469
- f(this, Er, void 0);
20468
+ f(this, Er, "");
20469
+ f(this, _r, void 0);
20470
20470
  p(this, "rateLimitConfig", {
20471
20471
  maxInvocations: 5,
20472
20472
  period: 1
@@ -20476,7 +20476,7 @@ class ka {
20476
20476
  period: 1
20477
20477
  });
20478
20478
  p(this, "listeners", {});
20479
- this.name = t, v(this, Er, e), v(this, Sr, r);
20479
+ this.name = t, v(this, _r, e), v(this, Er, r);
20480
20480
  }
20481
20481
  set(t, e, r = true, i = false) {
20482
20482
  return u(this, null, function* () {
@@ -20488,13 +20488,13 @@ class ka {
20488
20488
  });
20489
20489
  }
20490
20490
  remoteSet(t, e) {
20491
- a(this, Er).storeInsertKeys(a(this, Sr), this.name, [{ key: t, payload: e }]);
20491
+ a(this, _r).storeInsertKeys(a(this, Er), this.name, [{ key: t, payload: e }]);
20492
20492
  }
20493
20493
  bulkSet(t) {
20494
20494
  return u(this, null, function* () {
20495
20495
  t.forEach(({ key: e, payload: r }) => {
20496
20496
  a(this, nt)[e] = r;
20497
- }), a(this, Er).storeInsertKeys(a(this, Sr), this.name, t);
20497
+ }), a(this, _r).storeInsertKeys(a(this, Er), this.name, t);
20498
20498
  });
20499
20499
  }
20500
20500
  update(t, e, r = true) {
@@ -20505,8 +20505,8 @@ class ka {
20505
20505
  delete(t, e = true, r = false) {
20506
20506
  return u(this, null, function* () {
20507
20507
  if (a(this, nt)[t] && delete a(this, nt)[t], e)
20508
- return a(this, Er).storeDeleteKeys(
20509
- a(this, Sr),
20508
+ return a(this, _r).storeDeleteKeys(
20509
+ a(this, Er),
20510
20510
  this.name,
20511
20511
  [{ key: t }]
20512
20512
  );
@@ -20517,8 +20517,8 @@ class ka {
20517
20517
  return u(this, null, function* () {
20518
20518
  return t.forEach(({ key: e }) => {
20519
20519
  a(this, nt)[e] && delete a(this, nt)[e];
20520
- }), a(this, Er).storeDeleteKeys(
20521
- a(this, Sr),
20520
+ }), a(this, _r).storeDeleteKeys(
20521
+ a(this, Er),
20522
20522
  this.name,
20523
20523
  t
20524
20524
  );
@@ -20562,7 +20562,7 @@ class ka {
20562
20562
  v(this, nt, t);
20563
20563
  }
20564
20564
  }
20565
- nt = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), Cd = /* @__PURE__ */ new WeakSet(), tf = function(t, e, r = true) {
20565
+ nt = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Cd = /* @__PURE__ */ new WeakSet(), tf = function(t, e, r = true) {
20566
20566
  let i;
20567
20567
  const n = a(this, nt)[t], o = Object.prototype.toString.call(e), c = Object.prototype.toString.call(n);
20568
20568
  if (o !== c) {
@@ -20603,41 +20603,41 @@ Sc([
20603
20603
  Sc([
20604
20604
  At(ba, "bulkRateLimitConfig")
20605
20605
  ], ka.prototype, "bulkDelete", 1);
20606
- var gi, fi, Mo, gu, Do, _r, Rd, sf;
20606
+ var fi, vi, Mo, gu, Do, Pr, Rd, sf;
20607
20607
  class AM {
20608
20608
  constructor(t, e) {
20609
20609
  f(this, Mo);
20610
20610
  f(this, Rd);
20611
20611
  p(this, "stores", /* @__PURE__ */ new Map());
20612
- f(this, gi, void 0);
20613
- f(this, fi, "");
20612
+ f(this, fi, void 0);
20613
+ f(this, vi, "");
20614
20614
  f(this, Do, void 0);
20615
- f(this, _r, /* @__PURE__ */ new Map());
20616
- v(this, gi, e), v(this, fi, t.getValue("meetingId")), v(this, Do, t), $(this, Rd, sf).call(this);
20615
+ f(this, Pr, /* @__PURE__ */ new Map());
20616
+ v(this, fi, e), v(this, vi, t.getValue("meetingId")), v(this, Do, t), $(this, Rd, sf).call(this);
20617
20617
  }
20618
20618
  create(t) {
20619
20619
  const e = new ka(
20620
- { name: t, socketHandler: a(this, gi), meetingId: a(this, fi) }
20620
+ { name: t, socketHandler: a(this, fi), meetingId: a(this, vi) }
20621
20621
  );
20622
- return a(this, gi).storeGetKeys(a(this, fi), t, []), new Promise((i, n) => {
20622
+ return a(this, fi).storeGetKeys(a(this, vi), t, []), new Promise((i, n) => {
20623
20623
  const o = setTimeout(() => n(Error("Failed")), 3e3);
20624
- a(this, _r).set(t, { rejectTimeout: o, resolve: i, store: e });
20624
+ a(this, Pr).set(t, { rejectTimeout: o, resolve: i, store: e });
20625
20625
  });
20626
20626
  }
20627
20627
  }
20628
- gi = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakSet(), gu = function() {
20628
+ fi = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakSet(), gu = function() {
20629
20629
  return a(this, Do).getValue("peerId");
20630
- }, Do = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Rd = /* @__PURE__ */ new WeakSet(), sf = function() {
20630
+ }, Do = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), Rd = /* @__PURE__ */ new WeakSet(), sf = function() {
20631
20631
  [
20632
20632
  z.storeInsertKeys,
20633
20633
  z.storeGetKeys,
20634
20634
  z.storeDeleteKeys
20635
20635
  ].forEach((t) => {
20636
- a(this, gi).on(
20636
+ a(this, fi).on(
20637
20637
  t,
20638
20638
  (e) => u(this, null, function* () {
20639
20639
  var n, o;
20640
- if (e.pluginId !== a(this, fi))
20640
+ if (e.pluginId !== a(this, vi))
20641
20641
  return;
20642
20642
  const r = (n = e.storeItems) == null ? void 0 : n.map((c) => {
20643
20643
  var d;
@@ -20651,13 +20651,13 @@ gi = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), Mo = /*
20651
20651
  };
20652
20652
  });
20653
20653
  if (t === z.storeGetKeys) {
20654
- const c = a(this, _r).get(e.storeName), d = this.stores.get(e.storeName) || (c == null ? void 0 : c.store);
20655
- a(this, _r).get(e.storeName) && (this.stores.set(e.storeName, c.store), c.resolve(d), clearTimeout(c.rejectTimeout), a(this, _r).delete(e.storeName)), r.forEach((h) => {
20654
+ const c = a(this, Pr).get(e.storeName), d = this.stores.get(e.storeName) || (c == null ? void 0 : c.store);
20655
+ a(this, Pr).get(e.storeName) && (this.stores.set(e.storeName, c.store), c.resolve(d), clearTimeout(c.rejectTimeout), a(this, Pr).delete(e.storeName)), r.forEach((h) => {
20656
20656
  d.set(h.key, h.payload, false, false);
20657
20657
  });
20658
20658
  return;
20659
20659
  }
20660
- const i = this.stores.get(e.storeName) || ((o = a(this, _r).get(e.storeName)) == null ? void 0 : o.store);
20660
+ const i = this.stores.get(e.storeName) || ((o = a(this, Pr).get(e.storeName)) == null ? void 0 : o.store);
20661
20661
  i !== void 0 && (t === z.storeInsertKeys && r.forEach(({ key: c, peerId: d, payload: h }) => {
20662
20662
  d !== a(this, Mo, gu) && i.set(c, h, false, true);
20663
20663
  }), t === z.storeDeleteKeys && r.forEach(({ key: c, peerId: d }) => {
@@ -20667,7 +20667,7 @@ gi = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), Mo = /*
20667
20667
  );
20668
20668
  });
20669
20669
  };
20670
- function si(s) {
20670
+ function ri(s) {
20671
20671
  var t, e, r, i, n, o, c, d, h, m, g, T, _;
20672
20672
  return s ? {
20673
20673
  media: {
@@ -20702,12 +20702,12 @@ var MM = Object.defineProperty, DM = Object.getOwnPropertyDescriptor, Ia = (s, t
20702
20702
  return r && i && MM(t, e, i), i;
20703
20703
  };
20704
20704
  const OM = 0.8, NM = 1.2;
20705
- var Un, $n, Pr, vi, Qa, Ti, Xa, wd, rf, qs, Oo, Cr, Fn, Hc, js, bd, No, fu, sm;
20706
- let nr = (sm = class extends xt {
20705
+ var Un, $n, Cr, Ti, Qa, yi, Xa, wd, rf, qs, Oo, Rr, Fn, Hc, js, bd, No, fu, sm;
20706
+ let ar = (sm = class extends xt {
20707
20707
  constructor(t, e, r, i) {
20708
20708
  super();
20709
- f(this, vi);
20710
20709
  f(this, Ti);
20710
+ f(this, yi);
20711
20711
  f(this, wd);
20712
20712
  f(this, Fn);
20713
20713
  f(this, No);
@@ -20731,10 +20731,10 @@ let nr = (sm = class extends xt {
20731
20731
  p(this, "supportsRemoteControl", false);
20732
20732
  f(this, $n, void 0);
20733
20733
  p(this, "presetName");
20734
- f(this, Pr, void 0);
20734
+ f(this, Cr, void 0);
20735
20735
  f(this, qs, void 0);
20736
20736
  f(this, Oo, void 0);
20737
- f(this, Cr, /* @__PURE__ */ new Map());
20737
+ f(this, Rr, /* @__PURE__ */ new Map());
20738
20738
  f(this, js, 1);
20739
20739
  f(this, bd, zu((t2) => {
20740
20740
  if (!this.videoTrack)
@@ -20751,7 +20751,7 @@ let nr = (sm = class extends xt {
20751
20751
  maxSpatialLayer: a(this, js)
20752
20752
  }));
20753
20753
  }, 2e3));
20754
- v(this, Pr, t);
20754
+ v(this, Cr, t);
20755
20755
  const {
20756
20756
  id: n,
20757
20757
  userId: o,
@@ -20782,13 +20782,13 @@ let nr = (sm = class extends xt {
20782
20782
  return a(this, $n);
20783
20783
  }
20784
20784
  setVideoEnabled(t, e = true) {
20785
- this.videoEnabled = t, e && (l.info("DyteParticipant::setVideoEnabled::videoUpdate", O({}, si(this))), this.emit("videoUpdate", {
20785
+ this.videoEnabled = t, e && (l.info("DyteParticipant::setVideoEnabled::videoUpdate", O({}, ri(this))), this.emit("videoUpdate", {
20786
20786
  videoEnabled: this.videoEnabled,
20787
20787
  videoTrack: this.videoTrack
20788
20788
  }));
20789
20789
  }
20790
20790
  setAudioEnabled(t, e = true) {
20791
- this.audioEnabled = t, e && (l.info("DyteParticipant::setAudioEnabled::audioUpdate", O({}, si(this))), this.emit("audioUpdate", {
20791
+ this.audioEnabled = t, e && (l.info("DyteParticipant::setAudioEnabled::audioUpdate", O({}, ri(this))), this.emit("audioUpdate", {
20792
20792
  audioEnabled: this.audioEnabled,
20793
20793
  audioTrack: this.audioTrack
20794
20794
  }));
@@ -20804,20 +20804,20 @@ let nr = (sm = class extends xt {
20804
20804
  }
20805
20805
  pin() {
20806
20806
  return u(this, null, function* () {
20807
- if (!a(this, Ti, Xa))
20807
+ if (!a(this, yi, Xa))
20808
20808
  throw new w("Can`t pin participant without joining room", "1205");
20809
20809
  if (!a(this, qs).permissions.pinParticipant)
20810
20810
  throw new w("You do not have permission to pin participants.", "1201");
20811
- return a(this, vi, Qa).pinPeer(this.id);
20811
+ return a(this, Ti, Qa).pinPeer(this.id);
20812
20812
  });
20813
20813
  }
20814
20814
  unpin() {
20815
20815
  return u(this, null, function* () {
20816
- if (!a(this, Ti, Xa))
20816
+ if (!a(this, yi, Xa))
20817
20817
  throw new w("Can`t unpin participant without joining room", "1205");
20818
20818
  if (!a(this, qs).permissions.pinParticipant)
20819
20819
  throw new w("You do not have permission to unpin participants.", "1201");
20820
- return a(this, vi, Qa).pinPeer(null);
20820
+ return a(this, Ti, Qa).pinPeer(null);
20821
20821
  });
20822
20822
  }
20823
20823
  setIsPinned(t, e = true) {
@@ -20831,13 +20831,13 @@ let nr = (sm = class extends xt {
20831
20831
  const t = this.id;
20832
20832
  if (l.info("DyteParticipant::disable_audio", {
20833
20833
  dyteParticipant: { id: t }
20834
- }), !a(this, Ti, Xa))
20834
+ }), !a(this, yi, Xa))
20835
20835
  throw new w(
20836
20836
  "Can`t disable participant audio without joining room",
20837
20837
  "1205"
20838
20838
  );
20839
20839
  if (a(this, qs).permissions.canDisableParticipantAudio)
20840
- return a(this, vi, Qa).disableAudio(t);
20840
+ return a(this, Ti, Qa).disableAudio(t);
20841
20841
  throw l.error("DyteParticipant::unauthorized_disable_audio", {
20842
20842
  dyteParticipant: { id: t }
20843
20843
  }), new w(
@@ -20872,13 +20872,13 @@ let nr = (sm = class extends xt {
20872
20872
  const t = this.id;
20873
20873
  if (l.info("DyteParticipant::disable_video", {
20874
20874
  dyteParticipant: { id: t }
20875
- }), !a(this, Ti, Xa))
20875
+ }), !a(this, yi, Xa))
20876
20876
  throw new w(
20877
20877
  "Can`t disable participant video without joining room",
20878
20878
  "1205"
20879
20879
  );
20880
20880
  if (a(this, qs).permissions.canDisableParticipantVideo)
20881
- return a(this, vi, Qa).disableVideo(t);
20881
+ return a(this, Ti, Qa).disableVideo(t);
20882
20882
  throw l.error("DyteParticipant::unauthorized_disable_video", {
20883
20883
  dyteParticipant: { id: t }
20884
20884
  }), new w(
@@ -20901,7 +20901,7 @@ let nr = (sm = class extends xt {
20901
20901
  registerVideoElement(t) {
20902
20902
  var r, i, n, o;
20903
20903
  let e;
20904
- (i = (r = a(this, Cr).get(t)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (e = new ResizeObserver(() => a(this, bd).call(this, t)), e.observe(t)), a(this, Cr).set(t, { observer: e }), this.updateVideo(t), (o = a(this, Fn, Hc)) == null || o.addSource(
20904
+ (i = (r = a(this, Rr).get(t)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (e = new ResizeObserver(() => a(this, bd).call(this, t)), e.observe(t)), a(this, Rr).set(t, { observer: e }), this.updateVideo(t), (o = a(this, Fn, Hc)) == null || o.addSource(
20905
20905
  this.id,
20906
20906
  t,
20907
20907
  this.videoEnabled,
@@ -20913,7 +20913,7 @@ let nr = (sm = class extends xt {
20913
20913
  }
20914
20914
  deregisterVideoElement(t) {
20915
20915
  var e, r, i;
20916
- t.srcObject = void 0, (r = (e = a(this, Cr).get(t)) == null ? void 0 : e.observer) == null || r.disconnect(), a(this, Cr).delete(t), (i = a(this, Fn, Hc)) == null || i.removeSource(this.id);
20916
+ t !== void 0 && (t.srcObject = void 0, (r = (e = a(this, Rr).get(t)) == null ? void 0 : e.observer) == null || r.disconnect(), a(this, Rr).delete(t), (i = a(this, Fn, Hc)) == null || i.removeSource(this.id));
20917
20917
  }
20918
20918
  updateVideo(t) {
20919
20919
  var e;
@@ -20929,36 +20929,36 @@ let nr = (sm = class extends xt {
20929
20929
  t.srcObject = void 0;
20930
20930
  t.style.display = this.videoEnabled ? "block" : "none";
20931
20931
  }
20932
- }, Un = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakSet(), Qa = function() {
20933
- return a(this, Pr).getValue("roomNodeClient");
20934
- }, Ti = /* @__PURE__ */ new WeakSet(), Xa = function() {
20935
- return a(this, Pr).getValue("connectionHandler").mediaJoined;
20932
+ }, Un = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakSet(), Qa = function() {
20933
+ return a(this, Cr).getValue("roomNodeClient");
20934
+ }, yi = /* @__PURE__ */ new WeakSet(), Xa = function() {
20935
+ return a(this, Cr).getValue("connectionHandler").mediaJoined;
20936
20936
  }, wd = /* @__PURE__ */ new WeakSet(), rf = function() {
20937
- return a(this, Pr).getValue("connectionHandler").socketJoined;
20938
- }, qs = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakSet(), Hc = function() {
20939
- return a(this, Pr).getValue("pip");
20937
+ return a(this, Cr).getValue("connectionHandler").socketJoined;
20938
+ }, qs = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakSet(), Hc = function() {
20939
+ return a(this, Cr).getValue("pip");
20940
20940
  }, js = /* @__PURE__ */ new WeakMap(), bd = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakSet(), fu = function() {
20941
- Array.from(a(this, Cr).keys()).forEach(this.updateVideo);
20941
+ Array.from(a(this, Rr).keys()).forEach(this.updateVideo);
20942
20942
  }, sm);
20943
20943
  Ia([
20944
20944
  y.trace("DyteParticipant.disableAudio")
20945
- ], nr.prototype, "disableAudio", 1);
20945
+ ], ar.prototype, "disableAudio", 1);
20946
20946
  Ia([
20947
20947
  y.trace("DyteParticipant.kick")
20948
- ], nr.prototype, "kick", 1);
20948
+ ], ar.prototype, "kick", 1);
20949
20949
  Ia([
20950
20950
  y.trace("DyteParticipant.disableVideo")
20951
- ], nr.prototype, "disableVideo", 1);
20951
+ ], ar.prototype, "disableVideo", 1);
20952
20952
  Ia([
20953
20953
  y.trace("DyteParticipant.getPermissions")
20954
- ], nr.prototype, "getPermissions", 1);
20954
+ ], ar.prototype, "getPermissions", 1);
20955
20955
  Ia([
20956
20956
  y.trace("DyteParticipant.setStageStatus")
20957
- ], nr.prototype, "setStageStatus", 1);
20958
- nr = Ia([
20957
+ ], ar.prototype, "setStageStatus", 1);
20958
+ ar = Ia([
20959
20959
  ut("1200")
20960
- ], nr);
20961
- class ri extends Jg {
20960
+ ], ar);
20961
+ class ii extends Jg {
20962
20962
  constructor(t) {
20963
20963
  const {
20964
20964
  onAddEvent: e = "participantJoined",
@@ -20981,27 +20981,27 @@ class ri extends Jg {
20981
20981
  return super.delete(t, e, r);
20982
20982
  }
20983
20983
  }
20984
- var Rr;
20984
+ var wr;
20985
20985
  class LM extends Ra {
20986
20986
  constructor() {
20987
20987
  super();
20988
- f(this, Rr, void 0);
20989
- v(this, Rr, /* @__PURE__ */ new Map());
20988
+ f(this, wr, void 0);
20989
+ v(this, wr, /* @__PURE__ */ new Map());
20990
20990
  }
20991
20991
  __set(e, r) {
20992
- return a(this, Rr).set(e, r);
20992
+ return a(this, wr).set(e, r);
20993
20993
  }
20994
20994
  __clear() {
20995
- return a(this, Rr).clear();
20995
+ return a(this, wr).clear();
20996
20996
  }
20997
20997
  get(e) {
20998
- return a(this, Rr).get(e);
20998
+ return a(this, wr).get(e);
20999
20999
  }
21000
21000
  toArray() {
21001
- return Array.from(a(this, Rr).values());
21001
+ return Array.from(a(this, wr).values());
21002
21002
  }
21003
21003
  }
21004
- Rr = /* @__PURE__ */ new WeakMap();
21004
+ wr = /* @__PURE__ */ new WeakMap();
21005
21005
  class VM {
21006
21006
  constructor() {
21007
21007
  p(this, "_orderedArray");
@@ -21081,12 +21081,12 @@ var UM = Object.defineProperty, $M = Object.getOwnPropertyDescriptor, Ft = (s, t
21081
21081
  return r && i && UM(t, e, i), i;
21082
21082
  };
21083
21083
  const FM = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
21084
- var Kt, yi, Za, Si, eo, Bn, qc, Ei, Rt, rm;
21084
+ var Kt, Si, Za, Ei, eo, Bn, qc, _i, Rt, rm;
21085
21085
  let _t = (rm = class extends xt {
21086
21086
  constructor(t, e, r) {
21087
21087
  super();
21088
- f(this, yi);
21089
21088
  f(this, Si);
21089
+ f(this, Ei);
21090
21090
  f(this, Bn);
21091
21091
  p(this, "waitlisted");
21092
21092
  p(this, "joined");
@@ -21096,7 +21096,7 @@ let _t = (rm = class extends xt {
21096
21096
  p(this, "pinned");
21097
21097
  p(this, "all");
21098
21098
  f(this, Kt, void 0);
21099
- f(this, Ei, void 0);
21099
+ f(this, _i, void 0);
21100
21100
  f(this, Rt, void 0);
21101
21101
  p(this, "rateLimitConfig", {
21102
21102
  maxInvocations: 5,
@@ -21106,7 +21106,7 @@ let _t = (rm = class extends xt {
21106
21106
  p(this, "currentPage");
21107
21107
  p(this, "lastActiveSpeaker");
21108
21108
  p(this, "selectedPeers", nf);
21109
- v(this, Kt, t), v(this, Ei, e), v(this, Rt, r), this.waitlisted = new ri(), this.joined = new ri(), this.videoSubscribed = new ri(), this.audioSubscribed = new ri(), this.active = this.videoSubscribed, this.pinned = new ri(), this.all = new LM(), this.viewMode = "ACTIVE_GRID", this.currentPage = 0, this.setupEvents();
21109
+ v(this, Kt, t), v(this, _i, e), v(this, Rt, r), this.waitlisted = new ii(), this.joined = new ii(), this.videoSubscribed = new ii(), this.audioSubscribed = new ii(), this.active = this.videoSubscribed, this.pinned = new ii(), this.all = new LM(), this.viewMode = "ACTIVE_GRID", this.currentPage = 0, this.setupEvents();
21110
21110
  }
21111
21111
  get pip() {
21112
21112
  return a(this, Kt).getValue("pip");
@@ -21149,7 +21149,7 @@ let _t = (rm = class extends xt {
21149
21149
  }
21150
21150
  acceptWaitingRoomRequest(t) {
21151
21151
  var r, i;
21152
- if (!a(this, Si, eo))
21152
+ if (!a(this, Ei, eo))
21153
21153
  throw new w(
21154
21154
  "Can`t accept waiting room request without joining room",
21155
21155
  "1205"
@@ -21169,7 +21169,7 @@ let _t = (rm = class extends xt {
21169
21169
  rejectWaitingRoomRequest(t) {
21170
21170
  return u(this, null, function* () {
21171
21171
  var r, i;
21172
- if (!a(this, Si, eo))
21172
+ if (!a(this, Ei, eo))
21173
21173
  throw new w(
21174
21174
  "Can`t reject waiting room request without joining room",
21175
21175
  "1205"
@@ -21258,7 +21258,7 @@ let _t = (rm = class extends xt {
21258
21258
  i.push(c);
21259
21259
  }
21260
21260
  }
21261
- }), yield a(this, yi, Za).createConsumers(i);
21261
+ }), yield a(this, Si, Za).createConsumers(i);
21262
21262
  });
21263
21263
  }
21264
21264
  unsubscribe(r) {
@@ -21302,7 +21302,7 @@ let _t = (rm = class extends xt {
21302
21302
  i.push(c);
21303
21303
  }
21304
21304
  }
21305
- }), yield a(this, yi, Za).closeConsumers(i);
21305
+ }), yield a(this, Si, Za).closeConsumers(i);
21306
21306
  });
21307
21307
  }
21308
21308
  getPeerIdsForCurrentPage() {
@@ -21350,8 +21350,8 @@ let _t = (rm = class extends xt {
21350
21350
  actions: { disableAllAudio: { allowUnmute: t } }
21351
21351
  }), !a(this, Bn, qc))
21352
21352
  throw new w("Can`t disable all audio without joining room", "1205");
21353
- if (a(this, Ei).permissions.canAllowParticipantAudio)
21354
- return a(this, yi, Za).muteAll(t);
21353
+ if (a(this, _i).permissions.canAllowParticipantAudio)
21354
+ return a(this, Si, Za).muteAll(t);
21355
21355
  throw l.error("DyteParticipants::unauthorized_disable_all_audio", {
21356
21356
  actions: { disableAllAudio: { allowUnmute: t } }
21357
21357
  }), new w(
@@ -21364,8 +21364,8 @@ let _t = (rm = class extends xt {
21364
21364
  return u(this, null, function* () {
21365
21365
  if (l.info("DyteParticipants::disable_all_video"), !a(this, Bn, qc))
21366
21366
  throw new w("Can`t disable all video without joining room", "1205");
21367
- if (a(this, Ei).permissions.canAllowParticipantVideo)
21368
- return a(this, yi, Za).muteAllVideo();
21367
+ if (a(this, _i).permissions.canAllowParticipantVideo)
21368
+ return a(this, Si, Za).muteAllVideo();
21369
21369
  throw l.error("DyteParticipants::unauthorized_disable_all_video"), new w(
21370
21370
  "Unauthorized: User does not have permission to disable peer video.",
21371
21371
  "1201"
@@ -21391,9 +21391,9 @@ let _t = (rm = class extends xt {
21391
21391
  }
21392
21392
  kickAll() {
21393
21393
  return u(this, null, function* () {
21394
- if (l.info("DyteParticipants::kick_all"), a(this, Kt).getValue("viewType") !== "LIVESTREAM" && !a(this, Si, eo))
21394
+ if (l.info("DyteParticipants::kick_all"), a(this, Kt).getValue("viewType") !== "LIVESTREAM" && !a(this, Ei, eo))
21395
21395
  throw new w("Can`t kick all without joining room", "1205");
21396
- if (!a(this, Ei).permissions.kickParticipant)
21396
+ if (!a(this, _i).permissions.kickParticipant)
21397
21397
  throw l.error("DyteParticipants::unauthorized_kick_all"), new w(
21398
21398
  "Unauthorized: User does not have permission to kick peers.",
21399
21399
  "1201"
@@ -21404,7 +21404,7 @@ let _t = (rm = class extends xt {
21404
21404
  }
21405
21405
  broadcastMessage(t, e, r) {
21406
21406
  return u(this, null, function* () {
21407
- if (l.info("DyteParticipants::broadcastMessage"), !a(this, Si, eo))
21407
+ if (l.info("DyteParticipants::broadcastMessage"), !a(this, Ei, eo))
21408
21408
  throw new w("Can`t broadcast message without joining room", "1205");
21409
21409
  if (!(t != null && t.trim()))
21410
21410
  throw new w("`type` must be a non-empty string.", "1209");
@@ -21426,7 +21426,7 @@ let _t = (rm = class extends xt {
21426
21426
  }
21427
21427
  getAllJoinedPeers(t, e, r) {
21428
21428
  return u(this, null, function* () {
21429
- return (yield a(this, Rt).getRoomPeers(t, e, r)).peers.map(or.formatSocketServiceMessage);
21429
+ return (yield a(this, Rt).getRoomPeers(t, e, r)).peers.map(cr.formatSocketServiceMessage);
21430
21430
  });
21431
21431
  }
21432
21432
  updatePermissions(t, e) {
@@ -21442,15 +21442,15 @@ let _t = (rm = class extends xt {
21442
21442
  return a(this, Rt).getRoomPeersNonPaginated();
21443
21443
  });
21444
21444
  }
21445
- }, Kt = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakSet(), Za = function() {
21445
+ }, Kt = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakSet(), Za = function() {
21446
21446
  return a(this, Kt).getValue("roomNodeClient");
21447
- }, Si = /* @__PURE__ */ new WeakSet(), eo = function() {
21447
+ }, Ei = /* @__PURE__ */ new WeakSet(), eo = function() {
21448
21448
  var t;
21449
21449
  return ((t = a(this, Kt).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === true;
21450
21450
  }, Bn = /* @__PURE__ */ new WeakSet(), qc = function() {
21451
21451
  var t;
21452
21452
  return ((t = a(this, Kt).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === true;
21453
- }, Ei = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), rm);
21453
+ }, _i = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), rm);
21454
21454
  Ft([
21455
21455
  y.trace("DyteParticipants.setViewMode")
21456
21456
  ], _t.prototype, "setViewMode", 1);
@@ -21493,11 +21493,11 @@ Ft([
21493
21493
  _t = Ft([
21494
21494
  ut("1200")
21495
21495
  ], _t);
21496
- var ln = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(ln || {}), Je = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(Je || {}), BM = Object.defineProperty, HM = Object.getOwnPropertyDescriptor, Ji = (s, t, e, r) => {
21496
+ var ln = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(ln || {}), Je = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(Je || {}), BM = Object.defineProperty, HM = Object.getOwnPropertyDescriptor, Ki = (s, t, e, r) => {
21497
21497
  for (var i = r > 1 ? void 0 : r ? HM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
21498
21498
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
21499
21499
  return r && i && BM(t, e, i), i;
21500
- }, Hn, qn, _i, jn, im;
21500
+ }, Hn, qn, Pi, jn, im;
21501
21501
  const jc = (im = class {
21502
21502
  constructor(s, t, e, r) {
21503
21503
  p(this, "participants");
@@ -21509,9 +21509,9 @@ const jc = (im = class {
21509
21509
  p(this, "roomSocketHandler");
21510
21510
  p(this, "context");
21511
21511
  p(this, "videoPeerConsumerMap", /* @__PURE__ */ new Map());
21512
- f(this, Hn, new ri());
21513
- f(this, qn, new ri());
21514
- f(this, _i, false);
21512
+ f(this, Hn, new ii());
21513
+ f(this, qn, new ii());
21514
+ f(this, Pi, false);
21515
21515
  f(this, jn, false);
21516
21516
  p(this, "currentViewMode", "ACTIVE_GRID");
21517
21517
  p(this, "updateConsumerSpatialLayers", zu(() => {
@@ -21739,7 +21739,7 @@ const jc = (im = class {
21739
21739
  (r) => !s.requests.find((i) => i.userId === r.userId)
21740
21740
  );
21741
21741
  t.forEach((r) => this.participants.waitlisted.add(
21742
- new nr(
21742
+ new ar(
21743
21743
  this.context,
21744
21744
  {
21745
21745
  id: r.peerId,
@@ -21812,18 +21812,18 @@ const jc = (im = class {
21812
21812
  default:
21813
21813
  throw new Error(`View mode ${s} not supported`);
21814
21814
  }
21815
- setTimeout(() => this.syncConsumers(), this.currentViewMode === "PAGINATED" && !a(this, _i) ? 200 : 0);
21815
+ setTimeout(() => this.syncConsumers(), this.currentViewMode === "PAGINATED" && !a(this, Pi) ? 200 : 0);
21816
21816
  }
21817
21817
  syncConsumers() {
21818
21818
  return u(this, null, function* () {
21819
21819
  var o, c, d;
21820
21820
  if (((d = (c = (o = this.context.getValue("connectionHandler")) == null ? void 0 : o.mediaState) == null ? void 0 : c.recv) == null ? void 0 : d.state) !== "connected")
21821
21821
  return;
21822
- if (a(this, _i)) {
21822
+ if (a(this, Pi)) {
21823
21823
  v(this, jn, true);
21824
21824
  return;
21825
21825
  }
21826
- v(this, _i, true), v(this, jn, false);
21826
+ v(this, Pi, true), v(this, jn, false);
21827
21827
  const [s, t] = jc.mapDiff(
21828
21828
  a(this, Hn),
21829
21829
  this.participants.videoSubscribed
@@ -21850,7 +21850,7 @@ const jc = (im = class {
21850
21850
  try {
21851
21851
  (i.length > 0 || n.length > 0) && (yield this.updateConsumers(i, n));
21852
21852
  } finally {
21853
- v(this, _i, false);
21853
+ v(this, Pi, false);
21854
21854
  }
21855
21855
  a(this, jn) && this.syncConsumers();
21856
21856
  });
@@ -21878,7 +21878,7 @@ const jc = (im = class {
21878
21878
  }
21879
21879
  fromSocketService(s) {
21880
21880
  const t = jc.formatSocketServiceMessage(s);
21881
- return new nr(this.context, j(O({}, t), {
21881
+ return new ar(this.context, j(O({}, t), {
21882
21882
  isHost: false,
21883
21883
  videoEnabled: false,
21884
21884
  audioMuted: true,
@@ -22373,29 +22373,29 @@ const jc = (im = class {
22373
22373
  volume: 1
22374
22374
  })), t && this.updateSubscriptions(this.participants.viewMode);
22375
22375
  }
22376
- }, Hn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), im);
22377
- let or = jc;
22378
- Ji([
22376
+ }, Hn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), im);
22377
+ let cr = jc;
22378
+ Ki([
22379
22379
  y.trace("ParticipantController.setupEvents")
22380
- ], or.prototype, "setupEvents", 1);
22381
- Ji([
22380
+ ], cr.prototype, "setupEvents", 1);
22381
+ Ki([
22382
22382
  y.trace("ParticipantController.setupEvents")
22383
- ], or.prototype, "setupEventsGlobal", 1);
22384
- Ji([
22383
+ ], cr.prototype, "setupEventsGlobal", 1);
22384
+ Ki([
22385
22385
  y.trace("ParticipantController.processMedia")
22386
- ], or.prototype, "processMedia", 1);
22387
- Ji([
22386
+ ], cr.prototype, "processMedia", 1);
22387
+ Ki([
22388
22388
  y.trace("ParticipantController.processConsumerClosed")
22389
- ], or.prototype, "processConsumerClosed", 1);
22390
- Ji([
22389
+ ], cr.prototype, "processConsumerClosed", 1);
22390
+ Ki([
22391
22391
  y.trace("ParticipantController.processConsumerResumed")
22392
- ], or.prototype, "processConsumerResumed", 1);
22393
- Ji([
22392
+ ], cr.prototype, "processConsumerResumed", 1);
22393
+ Ki([
22394
22394
  y.trace("ParticipantController.processConsumerPaused")
22395
- ], or.prototype, "processConsumerPaused", 1);
22396
- Ji([
22395
+ ], cr.prototype, "processConsumerPaused", 1);
22396
+ Ki([
22397
22397
  y.trace("ParticipantController.processNewConsumer")
22398
- ], or.prototype, "processNewConsumer", 1);
22398
+ ], cr.prototype, "processNewConsumer", 1);
22399
22399
  const ge = ms(
22400
22400
  Ku().permissions
22401
22401
  );
@@ -22422,7 +22422,7 @@ const nn = class extends xt {
22422
22422
  "polls",
22423
22423
  "media"
22424
22424
  ]);
22425
- if (r2 && (r2.private && lr(a(this, G).chat.private, r2.private), r2.public && lr(a(this, G).chat.public, r2.public), this.emit("chatUpdate")), i2 && lr(a(this, G).connectedMeetings, i2), c) {
22425
+ if (r2 && (r2.private && ur(a(this, G).chat.private, r2.private), r2.public && ur(a(this, G).chat.public, r2.public), this.emit("chatUpdate")), i2 && ur(a(this, G).connectedMeetings, i2), c) {
22426
22426
  const _ = (b) => {
22427
22427
  switch (b) {
22428
22428
  case $r.NONE:
@@ -22447,9 +22447,9 @@ const nn = class extends xt {
22447
22447
  canProduce: _(c.video.canProduce)
22448
22448
  }), (T = c.screenshare) != null && T.canProduce && (P.screenshare = {
22449
22449
  canProduce: _(c.screenshare.canProduce)
22450
- }), lr(a(this, G).media, P);
22450
+ }), ur(a(this, G).media, P);
22451
22451
  }
22452
- n2 && (lr(a(this, G).plugins, n2), this.emit("pluginsUpdate")), o && (lr(a(this, G).polls, o), this.emit("pollsUpdate")), Object.keys(d).length !== 0 && lr(a(this, G), d), this.emit("permissionsUpdate", e2);
22452
+ n2 && (ur(a(this, G).plugins, n2), this.emit("pluginsUpdate")), o && (ur(a(this, G).polls, o), this.emit("pollsUpdate")), Object.keys(d).length !== 0 && ur(a(this, G), d), this.emit("permissionsUpdate", e2);
22453
22453
  });
22454
22454
  if (!r)
22455
22455
  throw l.error("DytePermissionsPreset::load_preset_permissions_failed"), new w("Could not load preset permissions.", "0904");
@@ -22978,12 +22978,12 @@ var jM = Object.defineProperty, GM = Object.getOwnPropertyDescriptor, Pt = (s, t
22978
22978
  for (var i = r > 1 ? void 0 : r ? GM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
22979
22979
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
22980
22980
  return r && i && jM(t, e, i), i;
22981
- }, Jn, ft, Kn, Cs, wr, Xi, qe, Qe, xe, Be, zn, Yn, Lo, Tu, nm;
22981
+ }, Jn, ft, Kn, Cs, Gs, Xr, qe, Qe, xe, Be, zn, Yn, Lo, Tu, nm;
22982
22982
  let ze = (nm = class extends qM {
22983
22983
  constructor(t, e, r, i, n) {
22984
22984
  var o;
22985
22985
  super();
22986
- f(this, wr);
22986
+ f(this, Gs);
22987
22987
  f(this, qe);
22988
22988
  f(this, xe);
22989
22989
  f(this, Lo);
@@ -23022,7 +23022,7 @@ let ze = (nm = class extends qM {
23022
23022
  if (i.viewType === Et.Chat)
23023
23023
  return h;
23024
23024
  const m = eM(i.mediaConstraints);
23025
- return lr(m, (b = t.getValue("defaults")) == null ? void 0 : b.mediaConfiguration), yield h.init({
23025
+ return ur(m, (b = t.getValue("defaults")) == null ? void 0 : b.mediaConfiguration), yield h.init({
23026
23026
  audio: c,
23027
23027
  video: d,
23028
23028
  constraints: m
@@ -23034,7 +23034,7 @@ let ze = (nm = class extends qM {
23034
23034
  }
23035
23035
  setupEvents() {
23036
23036
  this.on("videoUpdate", $(this, Lo, Tu)), this.localMediaHandler.on("AUDIO_TRACK_CHANGE", () => u(this, null, function* () {
23037
- if (l.info("DyteSelf::setupEvents::AUDIO_TRACK_CHANGE", O({}, si(this))), a(this, xe, Be) && this.audioEnabled)
23037
+ if (l.info("DyteSelf::setupEvents::AUDIO_TRACK_CHANGE", O({}, ri(this))), a(this, xe, Be) && this.audioEnabled)
23038
23038
  try {
23039
23039
  yield a(this, qe, Qe).shareMic(this.audioTrack);
23040
23040
  } catch (t) {
@@ -23047,7 +23047,7 @@ let ze = (nm = class extends qM {
23047
23047
  audioTrack: this.audioTrack
23048
23048
  });
23049
23049
  })), this.localMediaHandler.on("VIDEO_TRACK_CHANGE", () => u(this, null, function* () {
23050
- if (l.info("DyteSelf::setupEvents::VIDEO_TRACK_CHANGE", O({}, si(this))), a(this, xe, Be) && this.rawVideoTrack === void 0)
23050
+ if (l.info("DyteSelf::setupEvents::VIDEO_TRACK_CHANGE", O({}, ri(this))), a(this, xe, Be) && this.rawVideoTrack === void 0)
23051
23051
  l.info("DyteSelf::VIDEO_TRACK_CHANGE::Forcing_disable_video"), this.disableVideo();
23052
23052
  else if (this.videoEnabled && a(this, xe, Be))
23053
23053
  try {
@@ -23089,12 +23089,12 @@ let ze = (nm = class extends qM {
23089
23089
  }
23090
23090
  ), this.screenShareEnabled && (yield this.localMediaHandler.disableScreenShare());
23091
23091
  }
23092
- l.info("DyteSelf::setupEvents::SCREENSHARE_TRACK_CHANGE", O({}, si(this))), this.emit("screenShareUpdate", {
23092
+ l.info("DyteSelf::setupEvents::SCREENSHARE_TRACK_CHANGE", O({}, ri(this))), this.emit("screenShareUpdate", {
23093
23093
  screenShareEnabled: this.screenShareEnabled,
23094
23094
  screenShareTracks: this.screenShareTracks
23095
23095
  });
23096
23096
  })), this.localMediaHandler.on("SCREENSHARE_ENDED", () => u(this, null, function* () {
23097
- l.log("Disabling screenshare due to SCREENSHARE_ENDED"), yield this.disableScreenShare(), l.info("DyteSelf::setupEvents::SCREENSHARE_ENDED", O({}, si(this)));
23097
+ l.log("Disabling screenshare due to SCREENSHARE_ENDED"), yield this.disableScreenShare(), l.info("DyteSelf::setupEvents::SCREENSHARE_ENDED", O({}, ri(this)));
23098
23098
  })), this.localMediaHandler.on("AUDIO_TRACK_SILENT", () => {
23099
23099
  W.mediaTrackMuted("AUDIO");
23100
23100
  }), this.localMediaHandler.on("FORCE_MUTE_AUDIO", () => {
@@ -23176,7 +23176,7 @@ let ze = (nm = class extends qM {
23176
23176
  this.emit("videoUpdate", {
23177
23177
  videoEnabled: this.videoEnabled,
23178
23178
  videoTrack: this.videoTrack
23179
- }), l.info("DyteSelf.enableVideo", O({}, si(this)));
23179
+ }), l.info("DyteSelf.enableVideo", O({}, ri(this)));
23180
23180
  }
23181
23181
  });
23182
23182
  }
@@ -23247,7 +23247,7 @@ let ze = (nm = class extends qM {
23247
23247
  var i;
23248
23248
  v(this, Kn, t);
23249
23249
  const r = t ? "pinned" : "unpinned";
23250
- (i = a(this, wr, Xi)) == null || i.updateSource(this.id, { pinned: t }), e && this.emit(r, this);
23250
+ (i = a(this, Gs, Xr)) == null || i.updateSource(this.id, { pinned: t }), e && this.emit(r, this);
23251
23251
  }
23252
23252
  get isPinned() {
23253
23253
  return a(this, Kn);
@@ -23319,7 +23319,7 @@ let ze = (nm = class extends qM {
23319
23319
  }
23320
23320
  registerVideoElement(t, e = false) {
23321
23321
  var r, i;
23322
- e ? a(this, zn).add(t) : a(this, Yn).add(t), this.updateVideo(t), e || (i = a(this, wr, Xi)) == null || i.addSource(
23322
+ e ? a(this, zn).add(t) : a(this, Yn).add(t), this.updateVideo(t), e || (i = a(this, Gs, Xr)) == null || i.addSource(
23323
23323
  this.id,
23324
23324
  t,
23325
23325
  this.videoEnabled,
@@ -23330,7 +23330,11 @@ let ze = (nm = class extends qM {
23330
23330
  );
23331
23331
  }
23332
23332
  deregisterVideoElement(t, e = false) {
23333
- t.srcObject = void 0, e ? a(this, zn).delete(t) : (a(this, Yn).delete(t), a(this, wr, Xi).removeSource(this.id));
23333
+ if (t === void 0) {
23334
+ a(this, Gs, Xr).removeSource(this.id);
23335
+ return;
23336
+ }
23337
+ t.srcObject = void 0, e ? a(this, zn).delete(t) : (a(this, Yn).delete(t), a(this, Gs, Xr).removeSource(this.id));
23334
23338
  }
23335
23339
  updateVideo(t, e = false) {
23336
23340
  var r, i, n;
@@ -23341,12 +23345,12 @@ let ze = (nm = class extends qM {
23341
23345
  if ((o == null ? void 0 : o.id) === this.videoTrack.id)
23342
23346
  return;
23343
23347
  const c = new MediaStream();
23344
- c.addTrack(this.videoTrack), t.srcObject = c, e || (i = a(this, wr, Xi)) == null || i.enableSource(this.id);
23348
+ c.addTrack(this.videoTrack), t.srcObject = c, e || (i = a(this, Gs, Xr)) == null || i.enableSource(this.id);
23345
23349
  } else
23346
- t.srcObject = void 0, e || (n = a(this, wr, Xi)) == null || n.disableSource(this.id);
23350
+ t.srcObject = void 0, e || (n = a(this, Gs, Xr)) == null || n.disableSource(this.id);
23347
23351
  t.style.display = this.videoEnabled ? "block" : "none";
23348
23352
  }
23349
- }, Jn = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakSet(), Xi = function() {
23353
+ }, Jn = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakSet(), Xr = function() {
23350
23354
  return a(this, Cs).getValue("pip");
23351
23355
  }, qe = /* @__PURE__ */ new WeakSet(), Qe = function() {
23352
23356
  return a(this, Cs).getValue("roomNodeClient");
@@ -23476,7 +23480,7 @@ const af = (am = class {
23476
23480
  dw.toBinary(t)
23477
23481
  );
23478
23482
  try {
23479
- const { peer: i } = Yi.fromBinary((yield e).payload);
23483
+ const { peer: i } = Qi.fromBinary((yield e).payload);
23480
23484
  a(this, Vo).getValue("connectionHandler").socketJoined = true, I.emit(A.SOCKET_SERVICE_ROOM_JOINED, { peer: i });
23481
23485
  const n = this.getRoomState(), o = this.getRoomPeersNonPaginated(), [{ room: c }, { peers: d }] = yield Promise.all([n, o]);
23482
23486
  return I.emit(A.ROOM_STATE, c), I.emit(A.SOCKET_PEERS, d), { peer: i };
@@ -23562,7 +23566,7 @@ const af = (am = class {
23562
23566
  x.getPeerInfo,
23563
23567
  Ig.toBinary({ peerId: s })
23564
23568
  );
23565
- t = Yi.fromBinary(e.payload);
23569
+ t = Qi.fromBinary(e.payload);
23566
23570
  } catch (e) {
23567
23571
  l.error("getPeerInfo::binary_decode_error", { error: e });
23568
23572
  }
@@ -23736,7 +23740,7 @@ const af = (am = class {
23736
23740
  case x.leaveRoom:
23737
23741
  case x.kick:
23738
23742
  case x.kickAll: {
23739
- e = Yi.fromBinary.bind(Yi), r = Yi.create();
23743
+ e = Qi.fromBinary.bind(Qi), r = Qi.create();
23740
23744
  break;
23741
23745
  }
23742
23746
  case x.getWaitingRoomRequests: {
@@ -23942,7 +23946,7 @@ class It extends w {
23942
23946
  super(t), this.name = "InvalidStateError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, It) : this.stack = new Error(t).stack;
23943
23947
  }
23944
23948
  }
23945
- class ii extends w {
23949
+ class ni extends w {
23946
23950
  constructor(t) {
23947
23951
  super(t), this.name = "TransportConnectionError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, It) : this.stack = new Error(t).stack;
23948
23952
  }
@@ -24707,7 +24711,7 @@ class uh extends dh {
24707
24711
  function e0(s, t) {
24708
24712
  return typeof s == "undefined" ? t : typeof window != "undefined" && Object.getOwnPropertyDescriptor(window, "structuredClone") ? structuredClone(s) : JSON.parse(JSON.stringify(s));
24709
24713
  }
24710
- var Uo, Pi, Rs, ws, ur, $o, Su, Id, cf, Ad, df;
24714
+ var Uo, Ci, Rs, ws, hr, $o, Su, Id, cf, Ad, df;
24711
24715
  class t0 extends fl {
24712
24716
  constructor(e) {
24713
24717
  var r;
@@ -24727,9 +24731,9 @@ class t0 extends fl {
24727
24731
  p(this, "appData");
24728
24732
  p(this, "transceiver");
24729
24733
  f(this, Uo, void 0);
24730
- f(this, Pi, void 0);
24734
+ f(this, Ci, void 0);
24731
24735
  f(this, Rs, void 0);
24732
- this.id = e.id, this.localId = e.localId, v(this, Uo, e.handler), this.appData = e.appData, this.peerId = e.producingPeerId, this.producingTransportId = e.producingTransportId, v(this, Rs, false), this.producerId = e.producerId, this.track = e.track, v(this, Pi, (r = e.paused) != null ? r : false), this.mimeType = e.mimeType, this.transceiver = e.transceiver, this.rtpReceiver = e.rtpReceiver, $(this, Id, cf).call(this);
24736
+ this.id = e.id, this.localId = e.localId, v(this, Uo, e.handler), this.appData = e.appData, this.peerId = e.producingPeerId, this.producingTransportId = e.producingTransportId, v(this, Rs, false), this.producerId = e.producerId, this.track = e.track, v(this, Ci, (r = e.paused) != null ? r : false), this.mimeType = e.mimeType, this.transceiver = e.transceiver, this.rtpReceiver = e.rtpReceiver, $(this, Id, cf).call(this);
24733
24737
  }
24734
24738
  get closed() {
24735
24739
  return a(this, Rs);
@@ -24738,10 +24742,10 @@ class t0 extends fl {
24738
24742
  return this.track.kind;
24739
24743
  }
24740
24744
  get paused() {
24741
- return a(this, Pi);
24745
+ return a(this, Ci);
24742
24746
  }
24743
24747
  close(e, r) {
24744
- a(this, Rs) || (l.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, ws, ur)), v(this, Rs, true), r && ($(this, Ad, df).call(this), this.transceiver.stop()), this.safeEmit("close", e));
24748
+ a(this, Rs) || (l.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, ws, hr)), v(this, Rs, true), r && ($(this, Ad, df).call(this), this.transceiver.stop()), this.safeEmit("close", e));
24745
24749
  }
24746
24750
  getStats() {
24747
24751
  return u(this, null, function* () {
@@ -24751,21 +24755,21 @@ class t0 extends fl {
24751
24755
  });
24752
24756
  }
24753
24757
  pause() {
24754
- if (l.debug("consumer::pause()", a(this, ws, ur)), a(this, Rs)) {
24755
- l.error("consumer::pause() | Consumer closed", a(this, ws, ur));
24758
+ if (l.debug("consumer::pause()", a(this, ws, hr)), a(this, Rs)) {
24759
+ l.error("consumer::pause() | Consumer closed", a(this, ws, hr));
24756
24760
  return;
24757
24761
  }
24758
- v(this, Pi, true), this.track.enabled = false, this.safeEmit("pause");
24762
+ v(this, Ci, true), this.track.enabled = false, this.safeEmit("pause");
24759
24763
  }
24760
24764
  resume() {
24761
- if (l.debug("consumer::resume()", a(this, ws, ur)), a(this, Rs)) {
24762
- l.error("Consumer::resume() | Consumer closed", a(this, ws, ur));
24765
+ if (l.debug("consumer::resume()", a(this, ws, hr)), a(this, Rs)) {
24766
+ l.error("Consumer::resume() | Consumer closed", a(this, ws, hr));
24763
24767
  return;
24764
24768
  }
24765
- v(this, Pi, false), this.track.enabled = true, this.safeEmit("resume");
24769
+ v(this, Ci, false), this.track.enabled = true, this.safeEmit("resume");
24766
24770
  }
24767
24771
  }
24768
- Uo = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakSet(), ur = function() {
24772
+ Uo = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakSet(), hr = function() {
24769
24773
  return {
24770
24774
  consumer: {
24771
24775
  id: this.id,
@@ -24775,19 +24779,19 @@ Uo = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Rs = /*
24775
24779
  }
24776
24780
  };
24777
24781
  }, $o = /* @__PURE__ */ new WeakSet(), Su = function() {
24778
- l.debug('Consumer::track "ended" event', a(this, ws, ur)), this.safeEmit("trackended");
24782
+ l.debug('Consumer::track "ended" event', a(this, ws, hr)), this.safeEmit("trackended");
24779
24783
  }, Id = /* @__PURE__ */ new WeakSet(), cf = function() {
24780
24784
  this.track.addEventListener("ended", $(this, $o, Su).bind(this));
24781
24785
  }, Ad = /* @__PURE__ */ new WeakSet(), df = function() {
24782
24786
  try {
24783
24787
  this.track.removeEventListener("ended", $(this, $o, Su)), this.track.stop();
24784
24788
  } catch (e) {
24785
- l.error("Consumer::destroyTrack()", j(O({}, a(this, ws, ur)), {
24789
+ l.error("Consumer::destroyTrack()", j(O({}, a(this, ws, hr)), {
24786
24790
  error: e
24787
24791
  }));
24788
24792
  }
24789
24793
  };
24790
- var as, Qn, Xn, Ci, zt, Ze, br, Zn, Lt, ss;
24794
+ var as, Qn, Xn, Ri, zt, Ze, br, Zn, Lt, ss;
24791
24795
  class s0 extends fl {
24792
24796
  constructor(e) {
24793
24797
  var r, i;
@@ -24801,12 +24805,12 @@ class s0 extends fl {
24801
24805
  p(this, "rtpSender");
24802
24806
  f(this, Qn, void 0);
24803
24807
  f(this, Xn, void 0);
24804
- f(this, Ci, void 0);
24808
+ f(this, Ri, void 0);
24805
24809
  f(this, zt, false);
24806
24810
  f(this, Ze, void 0);
24807
24811
  f(this, br, void 0);
24808
24812
  f(this, Zn, void 0);
24809
- this.id = e.id, this.localId = e.localId, v(this, Ze, e.track), this.kind = (r = e.track) == null ? void 0 : r.kind, v(this, br, e.disableTrackOnPause ? !((i = e.track) != null && i.enabled) : false), v(this, Zn, void 0), v(this, Qn, e.stopTracks), v(this, Xn, e.disableTrackOnPause), v(this, Ci, e.zeroRtpOnPause), this.appData = e.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), v(this, as, e.handler), this.rtpSender = e.rtpSender, this._handleTrack();
24813
+ this.id = e.id, this.localId = e.localId, v(this, Ze, e.track), this.kind = (r = e.track) == null ? void 0 : r.kind, v(this, br, e.disableTrackOnPause ? !((i = e.track) != null && i.enabled) : false), v(this, Zn, void 0), v(this, Qn, e.stopTracks), v(this, Xn, e.disableTrackOnPause), v(this, Ri, e.zeroRtpOnPause), this.appData = e.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), v(this, as, e.handler), this.rtpSender = e.rtpSender, this._handleTrack();
24810
24814
  }
24811
24815
  get closed() {
24812
24816
  return a(this, zt);
@@ -24840,14 +24844,14 @@ class s0 extends fl {
24840
24844
  });
24841
24845
  }
24842
24846
  pause() {
24843
- l.debug("Producer::pause()", a(this, Lt, ss)), a(this, zt) && l.error("Producer::pause() | Producer closed", a(this, Lt, ss)), v(this, br, true), a(this, Ze) && a(this, Xn) && (a(this, Ze).enabled = false), a(this, Ci) && a(this, as).replaceTrack(this.localId, null), this.emit("pause");
24847
+ l.debug("Producer::pause()", a(this, Lt, ss)), a(this, zt) && l.error("Producer::pause() | Producer closed", a(this, Lt, ss)), v(this, br, true), a(this, Ze) && a(this, Xn) && (a(this, Ze).enabled = false), a(this, Ri) && a(this, as).replaceTrack(this.localId, null), this.emit("pause");
24844
24848
  }
24845
24849
  resume() {
24846
24850
  if (l.debug("Producer::resume()", a(this, Lt, ss)), a(this, zt)) {
24847
24851
  l.error("Producer::resume() | Producer closed", a(this, Lt, ss));
24848
24852
  return;
24849
24853
  }
24850
- v(this, br, false), a(this, Ze) && a(this, Xn) && (a(this, Ze).enabled = true), a(this, Ci) && a(this, as).replaceTrack(this.localId, a(this, Ze)), this.emit("resume");
24854
+ v(this, br, false), a(this, Ze) && a(this, Xn) && (a(this, Ze).enabled = true), a(this, Ri) && a(this, as).replaceTrack(this.localId, a(this, Ze)), this.emit("resume");
24851
24855
  }
24852
24856
  replaceTrack(r) {
24853
24857
  return u(this, arguments, function* ({
@@ -24869,7 +24873,7 @@ class s0 extends fl {
24869
24873
  l.debug(`replaceTrack() | same track, ignored trackId: ${e.id}`, a(this, Lt, ss));
24870
24874
  return;
24871
24875
  }
24872
- (!a(this, Ci) || !a(this, br)) && (yield a(this, as).replaceTrack(this.localId, e)), this._destroyTrack(), v(this, Ze, e), this._handleTrack();
24876
+ (!a(this, Ri) || !a(this, br)) && (yield a(this, as).replaceTrack(this.localId, e)), this._destroyTrack(), v(this, Ze, e), this._handleTrack();
24873
24877
  });
24874
24878
  }
24875
24879
  setMaxSpatialLayer(e) {
@@ -24910,7 +24914,7 @@ class s0 extends fl {
24910
24914
  }
24911
24915
  }
24912
24916
  }
24913
- as = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakSet(), ss = function() {
24917
+ as = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakSet(), ss = function() {
24914
24918
  return {
24915
24919
  producer: {
24916
24920
  id: this.id,
@@ -25022,8 +25026,8 @@ const an = class extends lt.EventEmitter {
25022
25026
  this.label = r, this.transportId = i, this.channel = e, this.queue = /* @__PURE__ */ new Map();
25023
25027
  }
25024
25028
  };
25025
- let Xr = an;
25026
- kr = /* @__PURE__ */ new WeakMap(), p(Xr, "createRequest", (e) => {
25029
+ let Zr = an;
25030
+ kr = /* @__PURE__ */ new WeakMap(), p(Zr, "createRequest", (e) => {
25027
25031
  var r;
25028
25032
  if ((r = e.payload) != null && r._bolt)
25029
25033
  throw new Error("rpc fields are internal values");
@@ -25037,7 +25041,7 @@ kr = /* @__PURE__ */ new WeakMap(), p(Xr, "createRequest", (e) => {
25037
25041
  }
25038
25042
  })
25039
25043
  };
25040
- }), p(Xr, "createResponse", (e, r) => {
25044
+ }), p(Zr, "createResponse", (e, r) => {
25041
25045
  var i;
25042
25046
  if ((i = r.payload) != null && i._bolt)
25043
25047
  throw new Error("rpc fields are internal values");
@@ -25051,7 +25055,7 @@ kr = /* @__PURE__ */ new WeakMap(), p(Xr, "createRequest", (e) => {
25051
25055
  }
25052
25056
  })
25053
25057
  };
25054
- }), p(Xr, "createNotification", (e) => {
25058
+ }), p(Zr, "createNotification", (e) => {
25055
25059
  var r;
25056
25060
  if ((r = e.payload) != null && r._bolt)
25057
25061
  throw new Error("rpc fields are internal values");
@@ -25065,7 +25069,7 @@ kr = /* @__PURE__ */ new WeakMap(), p(Xr, "createRequest", (e) => {
25065
25069
  }
25066
25070
  })
25067
25071
  };
25068
- }), p(Xr, "createErrorResponse", (e, r) => ({
25072
+ }), p(Zr, "createErrorResponse", (e, r) => ({
25069
25073
  type: "error",
25070
25074
  payload: {
25071
25075
  error: r.message,
@@ -25143,7 +25147,7 @@ const on = class extends fl {
25143
25147
  }
25144
25148
  ), this.handler.on("dc_open", (R) => {
25145
25149
  let L = this.datachannels.get(R.label);
25146
- L || (L || (L = new Xr(R, R.label, this.serverId), this.datachannels.set(R.label, L)), this.eventsDCFailureTimer = setTimeout(() => {
25150
+ L || (L || (L = new Zr(R, R.label, this.serverId), this.datachannels.set(R.label, L)), this.eventsDCFailureTimer = setTimeout(() => {
25147
25151
  R.label === "events" && (this.eventsDCReadyPromiseResolver(false), this.safeEmit("dc_error", R.label));
25148
25152
  }, 5e3));
25149
25153
  }), this.handler.on("datachannel", (R, L) => {
@@ -25249,7 +25253,7 @@ const on = class extends fl {
25249
25253
  } else
25250
25254
  throw new TypeError("missing track");
25251
25255
  if (!(yield this.transportConnectionPromise))
25252
- throw new ii("transport not connected");
25256
+ throw new ni("transport not connected");
25253
25257
  return true;
25254
25258
  });
25255
25259
  }
@@ -25323,7 +25327,7 @@ const on = class extends fl {
25323
25327
  if (this.direction !== "recv")
25324
25328
  throw new vo("not a receiving transport");
25325
25329
  if (!(yield this.transportConnectionPromise))
25326
- throw new ii("transport not connected");
25330
+ throw new ni("transport not connected");
25327
25331
  return true;
25328
25332
  });
25329
25333
  }
@@ -25639,7 +25643,7 @@ class n0 {
25639
25643
  }
25640
25644
  Fo = /* @__PURE__ */ new WeakMap();
25641
25645
  const a0 = 2e3;
25642
- var Gs, ta, at, ot, Bo, Ho, Ri, sa, ra, ia, wi, Ir, na, aa, Gc, qo, _u, Md, hf, jo, Pu, Dd, pf, Od, mf, Nd, gf, Ld, ff, Vd, vf, Go, Cu, Wo, Ru;
25646
+ var Ws, ta, at, ot, Bo, Ho, wi, sa, ra, ia, bi, Ir, na, aa, Gc, qo, _u, Md, hf, jo, Pu, Dd, pf, Od, mf, Nd, gf, Ld, ff, Vd, vf, Go, Cu, Wo, Ru;
25643
25647
  class o0 extends lt.EventEmitter {
25644
25648
  constructor(e, r, i) {
25645
25649
  super();
@@ -25654,13 +25658,13 @@ class o0 extends lt.EventEmitter {
25654
25658
  f(this, Vd);
25655
25659
  f(this, Go);
25656
25660
  f(this, Wo);
25657
- f(this, Gs, void 0);
25661
+ f(this, Ws, void 0);
25658
25662
  f(this, ta, void 0);
25659
25663
  f(this, at, void 0);
25660
25664
  f(this, ot, void 0);
25661
25665
  f(this, Bo, void 0);
25662
25666
  f(this, Ho, void 0);
25663
- f(this, Ri, void 0);
25667
+ f(this, wi, void 0);
25664
25668
  f(this, sa, void 0);
25665
25669
  f(this, ra, void 0);
25666
25670
  f(this, ia, {
@@ -25670,10 +25674,10 @@ class o0 extends lt.EventEmitter {
25670
25674
  },
25671
25675
  lastConnectionTime: 0
25672
25676
  });
25673
- f(this, wi, void 0);
25677
+ f(this, bi, void 0);
25674
25678
  f(this, Ir, "all");
25675
25679
  f(this, na, void 0);
25676
- switch (v(this, Gs, e), v(this, Ri, r), v(this, na, i), v(this, ta, new n0(i)), v(this, sa, new ZM(r, i)), i) {
25680
+ switch (v(this, Ws, e), v(this, wi, r), v(this, na, i), v(this, ta, new n0(i)), v(this, sa, new ZM(r, i)), i) {
25677
25681
  case Je.CF: {
25678
25682
  v(this, ra, hs);
25679
25683
  break;
@@ -25690,7 +25694,7 @@ class o0 extends lt.EventEmitter {
25690
25694
  }, Y.hasFeature(se.FORCE_RELAY) && v(this, Ir, "relay"), $(this, qo, _u).call(this);
25691
25695
  }
25692
25696
  get socket() {
25693
- return a(this, Ri);
25697
+ return a(this, wi);
25694
25698
  }
25695
25699
  get socketHandler() {
25696
25700
  return a(this, sa);
@@ -25751,10 +25755,10 @@ class o0 extends lt.EventEmitter {
25751
25755
  throw new Error("Method not implemented.");
25752
25756
  }
25753
25757
  }
25754
- Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Bo = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakSet(), Gc = function() {
25755
- return a(this, Gs).getValue("connectionHandler");
25758
+ Ws = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Bo = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakSet(), Gc = function() {
25759
+ return a(this, Ws).getValue("connectionHandler");
25756
25760
  }, qo = /* @__PURE__ */ new WeakSet(), _u = function() {
25757
- v(this, wi, {
25761
+ v(this, bi, {
25758
25762
  send: void 0,
25759
25763
  recv: void 0
25760
25764
  });
@@ -25770,11 +25774,11 @@ Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /*
25770
25774
  $(this, Od, mf).call(this, {
25771
25775
  iceServers: i,
25772
25776
  additionalSettings: {
25773
- encodedInsertableStreams: (n = a(this, Gs).getValue("modules").e2ee) == null ? void 0 : n.enabled
25777
+ encodedInsertableStreams: (n = a(this, Ws).getValue("modules").e2ee) == null ? void 0 : n.enabled
25774
25778
  },
25775
25779
  config: {
25776
- enableHighBitrate: (d = (c = (o = a(this, Gs).getValue("defaults").mediaConfiguration) == null ? void 0 : o.audio) == null ? void 0 : c.enableHighBitrate) != null ? d : false,
25777
- enableStereo: (g = (m = (h = a(this, Gs).getValue("defaults").mediaConfiguration) == null ? void 0 : h.audio) == null ? void 0 : m.enableStereo) != null ? g : false,
25780
+ enableHighBitrate: (d = (c = (o = a(this, Ws).getValue("defaults").mediaConfiguration) == null ? void 0 : o.audio) == null ? void 0 : c.enableHighBitrate) != null ? d : false,
25781
+ enableStereo: (g = (m = (h = a(this, Ws).getValue("defaults").mediaConfiguration) == null ? void 0 : h.audio) == null ? void 0 : m.enableStereo) != null ? g : false,
25778
25782
  enableDtx: a(this, na) === Je.HIVE ? true : !!_
25779
25783
  },
25780
25784
  iceTransportPolicy: a(this, Ir)
@@ -25783,7 +25787,7 @@ Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /*
25783
25787
  e.recv && $(this, Nd, gf).call(this, {
25784
25788
  iceServers: i,
25785
25789
  additionalSettings: {
25786
- encodedInsertableStreams: (T = a(this, Gs).getValue("modules").e2ee) == null ? void 0 : T.enabled
25790
+ encodedInsertableStreams: (T = a(this, Ws).getValue("modules").e2ee) == null ? void 0 : T.enabled
25787
25791
  },
25788
25792
  iceTransportPolicy: a(this, Ir)
25789
25793
  });
@@ -25802,10 +25806,10 @@ Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /*
25802
25806
  });
25803
25807
  try {
25804
25808
  if (e.closed)
25805
- throw new ii("Cannot reconnect closed transport");
25809
+ throw new ni("Cannot reconnect closed transport");
25806
25810
  yield $(this, Dd, pf).call(this, e);
25807
25811
  } catch (h) {
25808
- if (h instanceof ii) {
25812
+ if (h instanceof ni) {
25809
25813
  d(h);
25810
25814
  return;
25811
25815
  }
@@ -25831,10 +25835,10 @@ Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /*
25831
25835
  const { id: r, direction: i } = e;
25832
25836
  if (l.info(`Connecting ${i} transport`, {
25833
25837
  transport: { id: r, type: i }
25834
- }), !a(this, Ri).isConnected)
25835
- throw new ii("Socket is not connected");
25838
+ }), !a(this, wi).isConnected)
25839
+ throw new ni("Socket is not connected");
25836
25840
  if (e.connectionState === "closed")
25837
- throw new ii("Transport is closed");
25841
+ throw new ni("Transport is closed");
25838
25842
  try {
25839
25843
  yield e.connect(
25840
25844
  (n) => $(this, Vd, vf).call(this, i, n)
@@ -25842,7 +25846,7 @@ Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /*
25842
25846
  transport: { id: r, serverId: e.serverId, type: i }
25843
25847
  });
25844
25848
  } catch (n) {
25845
- throw a(this, ia).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new ii(n.message) : n;
25849
+ throw a(this, ia).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new ni(n.message) : n;
25846
25850
  }
25847
25851
  });
25848
25852
  }, Od = /* @__PURE__ */ new WeakSet(), mf = function(e) {
@@ -25890,15 +25894,15 @@ Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /*
25890
25894
  }
25891
25895
  );
25892
25896
  const o = () => {
25893
- const c = a(this, wi)[r];
25894
- c !== void 0 && (clearTimeout(c), a(this, wi)[r] = void 0);
25897
+ const c = a(this, bi)[r];
25898
+ c !== void 0 && (clearTimeout(c), a(this, bi)[r] = void 0);
25895
25899
  };
25896
25900
  switch (n) {
25897
25901
  case "connected":
25898
25902
  o(), a(this, ia).lastConnectionTime = performance.now();
25899
25903
  break;
25900
25904
  case "disconnected":
25901
- a(this, wi)[r] = setTimeout(() => u(this, null, function* () {
25905
+ a(this, bi)[r] = setTimeout(() => u(this, null, function* () {
25902
25906
  yield $(this, Go, Cu).call(this, e.direction);
25903
25907
  }), a0);
25904
25908
  break;
@@ -25953,7 +25957,7 @@ Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /*
25953
25957
  description: {
25954
25958
  sdp: n,
25955
25959
  type: o,
25956
- target: i ? ir.SUBSCRIBER : ir.PUBLISHER
25960
+ target: i ? nr.SUBSCRIBER : nr.PUBLISHER
25957
25961
  },
25958
25962
  producers: []
25959
25963
  };
@@ -25969,7 +25973,7 @@ Gs = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), at = /*
25969
25973
  return u(this, null, function* () {
25970
25974
  switch (l.info("Called reconnect transport", { transport: { type: e } }), this.stopTransports({ [e]: true }), Y.hasFeature(
25971
25975
  se.HIVE_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED
25972
- ) && a(this, Ri).isConnected && a(this, ia).transportFailureCount[e] > 2 && (l.warn(`Multiple disconnections in ${e} transport, forcing relay`), v(this, Ir, "relay")), yield this.setupTransports({ [e]: true }), e) {
25976
+ ) && a(this, wi).isConnected && a(this, ia).transportFailureCount[e] > 2 && (l.warn(`Multiple disconnections in ${e} transport, forcing relay`), v(this, Ir, "relay")), yield this.setupTransports({ [e]: true }), e) {
25973
25977
  case "send": {
25974
25978
  l.info("Transport reconnected", { transport: a(this, at) }), I.emit(A.RESET_PRODUCER_STATE);
25975
25979
  break;
@@ -26156,7 +26160,7 @@ class d0 {
26156
26160
  description: {
26157
26161
  sdp: e.sdp,
26158
26162
  type: e.type,
26159
- target: ir.SUBSCRIBER
26163
+ target: nr.SUBSCRIBER
26160
26164
  }
26161
26165
  };
26162
26166
  return l.debug(`sending renegotiate request: ${JSON.stringify(r)} on recvTransport`, {
@@ -26182,7 +26186,7 @@ class d0 {
26182
26186
  description: {
26183
26187
  sdp: i.sdp,
26184
26188
  type: i.type,
26185
- target: ir.SUBSCRIBER
26189
+ target: nr.SUBSCRIBER
26186
26190
  },
26187
26191
  consumerIds: n,
26188
26192
  consumingTransportId: this.recvTransport.serverId
@@ -26219,7 +26223,7 @@ class hh {
26219
26223
  description: {
26220
26224
  sdp: t.sdp,
26221
26225
  type: t.type,
26222
- target: ir.PUBLISHER
26226
+ target: nr.PUBLISHER
26223
26227
  },
26224
26228
  paused: r,
26225
26229
  kind: e,
@@ -26233,7 +26237,7 @@ class hh {
26233
26237
  });
26234
26238
  }
26235
26239
  }
26236
- var oa, bi, Ar, ca, Jo, bs, Ud, Ws, da, xu, Ko, wu, $d, yf, Fd, Sf, Bd, Ef, Hd, _f;
26240
+ var oa, ki, Ar, ca, Jo, bs, Ud, Js, da, xu, Ko, wu, $d, yf, Fd, Sf, Bd, Ef, Hd, _f;
26237
26241
  class l0 extends o0 {
26238
26242
  constructor(e, r, i) {
26239
26243
  super(e, r, i);
@@ -26244,7 +26248,7 @@ class l0 extends o0 {
26244
26248
  f(this, Bd);
26245
26249
  f(this, Hd);
26246
26250
  f(this, oa, void 0);
26247
- f(this, bi, void 0);
26251
+ f(this, ki, void 0);
26248
26252
  f(this, Ar, void 0);
26249
26253
  f(this, ca, void 0);
26250
26254
  f(this, Jo, void 0);
@@ -26254,7 +26258,7 @@ class l0 extends o0 {
26254
26258
  consumerCreationFailureCount: 0,
26255
26259
  producerNotReadyFailureCount: 0
26256
26260
  });
26257
- f(this, Ws, []);
26261
+ f(this, Js, []);
26258
26262
  f(this, da, void 0);
26259
26263
  v(this, oa, e), this.sendTransportConnectedCallback = () => u(this, null, function* () {
26260
26264
  v(this, Jo, new hh(this.socketHandler));
@@ -26279,7 +26283,7 @@ class l0 extends o0 {
26279
26283
  return super.socketHandler;
26280
26284
  }
26281
26285
  get producers() {
26282
- return a(this, bi);
26286
+ return a(this, ki);
26283
26287
  }
26284
26288
  get consumers() {
26285
26289
  return a(this, Ar);
@@ -26288,7 +26292,7 @@ class l0 extends o0 {
26288
26292
  return a(this, ca);
26289
26293
  }
26290
26294
  reset() {
26291
- v(this, bi, /* @__PURE__ */ new Map()), v(this, Ar, /* @__PURE__ */ new Map()), v(this, ca, /* @__PURE__ */ new Map());
26295
+ v(this, ki, /* @__PURE__ */ new Map()), v(this, Ar, /* @__PURE__ */ new Map()), v(this, ca, /* @__PURE__ */ new Map());
26292
26296
  }
26293
26297
  createProducer(e, r) {
26294
26298
  return u(this, null, function* () {
@@ -26323,14 +26327,14 @@ class l0 extends o0 {
26323
26327
  });
26324
26328
  }
26325
26329
  closeAllProducers() {
26326
- return Promise.all(Array.from(a(this, bi).entries()).map(([, e]) => e.close()));
26330
+ return Promise.all(Array.from(a(this, ki).entries()).map(([, e]) => e.close()));
26327
26331
  }
26328
26332
  createConsumer(e) {
26329
26333
  return this.createConsumers([e]);
26330
26334
  }
26331
26335
  createConsumers(e) {
26332
26336
  return u(this, null, function* () {
26333
- a(this, da) || clearTimeout(a(this, da)), v(this, Ws, a(this, Ws).concat(e)), yield $(this, Ko, wu).call(this);
26337
+ a(this, da) || clearTimeout(a(this, da)), v(this, Js, a(this, Js).concat(e)), yield $(this, Ko, wu).call(this);
26334
26338
  });
26335
26339
  }
26336
26340
  closeConsumer(e) {
@@ -26368,11 +26372,11 @@ class l0 extends o0 {
26368
26372
  });
26369
26373
  }
26370
26374
  }
26371
- oa = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), Ud = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), xu = /* @__PURE__ */ new WeakSet(), Ko = /* @__PURE__ */ new WeakSet(), wu = function() {
26375
+ oa = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), Ud = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), xu = /* @__PURE__ */ new WeakSet(), Ko = /* @__PURE__ */ new WeakSet(), wu = function() {
26372
26376
  return u(this, null, function* () {
26373
26377
  if (!this.recvTransport || this.recvTransport.closed)
26374
26378
  throw new Error("Recv transport is closed");
26375
- const e = 500, r = a(this, Ws).splice(0, a(this, Ws).length);
26379
+ const e = 500, r = a(this, Js).splice(0, a(this, Js).length);
26376
26380
  try {
26377
26381
  const i = r.filter(({ producerId: c }) => !this.producers.get(c));
26378
26382
  if (i.length === 0)
@@ -26385,7 +26389,7 @@ oa = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ar = /*
26385
26389
  if (n.forEach($(this, Hd, _f).bind(this)), o != null && o.length) {
26386
26390
  l.error("Failed to create consumers for producers", { producers: o });
26387
26391
  const c = o.filter(({ errorCode: d, producerId: h }) => d === "not_found_track_error" ? (l.error(`Track not found for producer: ${h}. This will not be retried.`), false) : d === "backend_error" ? (l.error("Unrecoverable error: backend error"), false) : true);
26388
- v(this, Ws, a(this, Ws).concat(c)), v(this, da, setTimeout(
26392
+ v(this, Js, a(this, Js).concat(c)), v(this, da, setTimeout(
26389
26393
  $(this, Ko, wu).bind(this),
26390
26394
  e
26391
26395
  ));
@@ -26421,7 +26425,7 @@ oa = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ar = /*
26421
26425
  description: {
26422
26426
  sdp: o.sdp,
26423
26427
  type: o.type,
26424
- target: ir.PUBLISHER
26428
+ target: nr.PUBLISHER
26425
26429
  }
26426
26430
  };
26427
26431
  try {
@@ -26437,7 +26441,7 @@ oa = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ar = /*
26437
26441
  this.producers.delete(e.id), r();
26438
26442
  })), e.on("trackended", () => {
26439
26443
  l.info("producer::trackended", { producer: j(O({}, e), { status: "UNKNOWN" }) });
26440
- }), a(this, bi).set(e.id, e);
26444
+ }), a(this, ki).set(e.id, e);
26441
26445
  }, Bd = /* @__PURE__ */ new WeakSet(), Ef = function(e) {
26442
26446
  return u(this, null, function* () {
26443
26447
  try {
@@ -26462,7 +26466,7 @@ oa = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ar = /*
26462
26466
  peerId: e.peerId
26463
26467
  });
26464
26468
  };
26465
- var zo, Yo, Qo, la, ua, ha, Xo, Zo, pa, wt, os, cs, ki, Ii, Js, ec, qd, Pf, jd, Cf, Gd, Rf, Wd, wf;
26469
+ var zo, Yo, Qo, la, ua, ha, Xo, Zo, pa, wt, os, cs, Ii, Ai, Ks, ec, qd, Pf, jd, Cf, Gd, Rf, Wd, wf;
26466
26470
  const Jd = class {
26467
26471
  constructor({
26468
26472
  initialEnergyThreshold: t = 0.015,
@@ -26490,9 +26494,9 @@ const Jd = class {
26490
26494
  f(this, wt, void 0);
26491
26495
  f(this, os, void 0);
26492
26496
  f(this, cs, false);
26493
- f(this, ki, 0);
26494
26497
  f(this, Ii, 0);
26495
- f(this, Js, []);
26498
+ f(this, Ai, 0);
26499
+ f(this, Ks, []);
26496
26500
  f(this, ec, void 0);
26497
26501
  v(this, la, t), v(this, wt, t), v(this, zo, e), v(this, Yo, r), v(this, Qo, i), v(this, ua, n), v(this, ha, o), v(this, Xo, c), v(this, Zo, d), v(this, pa, h), v(this, ec, m), v(this, os, t / 2);
26498
26502
  }
@@ -26502,10 +26506,10 @@ const Jd = class {
26502
26506
  processAudioChunk(t) {
26503
26507
  var o, c;
26504
26508
  const e = $(o = Jd, Gd, Rf).call(o, t), r = $(c = Jd, Wd, wf).call(c, t);
26505
- return $(this, qd, Pf).call(this, e), e / a(this, os) > a(this, pa) && e > a(this, wt) && r > a(this, zo) ? (v(this, ki, a(this, ki) + 1), v(this, Ii, a(this, Qo)), a(this, ki) >= a(this, Yo) && v(this, cs, true)) : (v(this, ki, 0), a(this, Ii) > 0 ? v(this, Ii, a(this, Ii) - 1) : a(this, cs) && v(this, cs, false), a(this, cs) || $(this, jd, Cf).call(this, e)), { energy: e, isVoice: a(this, cs) };
26509
+ return $(this, qd, Pf).call(this, e), e / a(this, os) > a(this, pa) && e > a(this, wt) && r > a(this, zo) ? (v(this, Ii, a(this, Ii) + 1), v(this, Ai, a(this, Qo)), a(this, Ii) >= a(this, Yo) && v(this, cs, true)) : (v(this, Ii, 0), a(this, Ai) > 0 ? v(this, Ai, a(this, Ai) - 1) : a(this, cs) && v(this, cs, false), a(this, cs) || $(this, jd, Cf).call(this, e)), { energy: e, isVoice: a(this, cs) };
26506
26510
  }
26507
26511
  reset() {
26508
- v(this, cs, false), v(this, ki, 0), v(this, Ii, 0), v(this, wt, a(this, la)), v(this, os, a(this, la) / 2), v(this, Js, []);
26512
+ v(this, cs, false), v(this, Ii, 0), v(this, Ai, 0), v(this, wt, a(this, la)), v(this, os, a(this, la) / 2), v(this, Ks, []);
26509
26513
  }
26510
26514
  getThresholdInfo() {
26511
26515
  return {
@@ -26516,15 +26520,15 @@ const Jd = class {
26516
26520
  }
26517
26521
  };
26518
26522
  let to = Jd;
26519
- zo = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), os = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), qd = /* @__PURE__ */ new WeakSet(), Pf = function(t) {
26523
+ zo = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), os = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), qd = /* @__PURE__ */ new WeakSet(), Pf = function(t) {
26520
26524
  a(this, cs) ? v(this, wt, a(this, ha) * a(this, wt) + (1 - a(this, ha)) * t) : v(this, wt, a(this, ua) * a(this, wt) + (1 - a(this, ua)) * a(this, os)), v(this, wt, Math.max(
26521
26525
  a(this, Xo),
26522
26526
  Math.min(a(this, Zo), a(this, wt))
26523
26527
  ));
26524
26528
  }, jd = /* @__PURE__ */ new WeakSet(), Cf = function(t) {
26525
26529
  if (t < a(this, wt) * 1.2)
26526
- if (a(this, Js).push(t), a(this, Js).length > a(this, ec) && a(this, Js).shift(), a(this, Js).length >= 10) {
26527
- const e = [...a(this, Js)].sort((i, n) => i - n), r = Math.floor(e.length / 2);
26530
+ if (a(this, Ks).push(t), a(this, Ks).length > a(this, ec) && a(this, Ks).shift(), a(this, Ks).length >= 10) {
26531
+ const e = [...a(this, Ks)].sort((i, n) => i - n), r = Math.floor(e.length / 2);
26528
26532
  v(this, os, e[r]);
26529
26533
  } else
26530
26534
  v(this, os, 0.95 * a(this, os) + 0.05 * t);
@@ -26539,20 +26543,20 @@ zo = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Qo = /*
26539
26543
  return e;
26540
26544
  }, f(to, Gd), f(to, Wd);
26541
26545
  const h0 = 60, p0 = 400;
26542
- var Ks, zs, ds, Mr, Dr, ma, Ai, ga, Ys, Or, fa, Kd, bf, tc, bu, zd, kf, Yd, If;
26546
+ var zs, Ys, ds, Mr, Dr, ma, Mi, ga, Qs, Or, fa, Kd, bf, tc, bu, zd, kf, Yd, If;
26543
26547
  const po = class {
26544
26548
  constructor(t) {
26545
26549
  f(this, Kd);
26546
26550
  f(this, zd);
26547
- f(this, Ks, void 0);
26548
26551
  f(this, zs, void 0);
26552
+ f(this, Ys, void 0);
26549
26553
  f(this, ds, void 0);
26550
26554
  f(this, Mr, void 0);
26551
26555
  f(this, Dr, void 0);
26552
26556
  f(this, ma, void 0);
26553
- f(this, Ai, void 0);
26557
+ f(this, Mi, void 0);
26554
26558
  f(this, ga, void 0);
26555
- f(this, Ys, void 0);
26559
+ f(this, Qs, void 0);
26556
26560
  f(this, Or, void 0);
26557
26561
  f(this, fa, void 0);
26558
26562
  this.reportRequest = t, v(this, Mr, new AudioContext()), v(this, Dr, a(this, Mr).createAnalyser()), a(this, Dr).fftSize = 2048, v(this, ga, new to());
@@ -26566,28 +26570,28 @@ const po = class {
26566
26570
  e.addTrack(a(this, ma)), a(this, Mr).createMediaStreamSource(e).connect(a(this, Dr));
26567
26571
  }
26568
26572
  start() {
26569
- l.debug(`AudioActivityReporter: Starting audio activity reporter: ${a(this, ds)}`), a(this, Ks) && clearInterval$1(a(this, Ks)), v(this, Ks, setInterval$1(() => u(this, null, function* () {
26573
+ l.debug(`AudioActivityReporter: Starting audio activity reporter: ${a(this, ds)}`), a(this, zs) && clearInterval$1(a(this, zs)), v(this, zs, setInterval$1(() => u(this, null, function* () {
26570
26574
  var i;
26571
26575
  if (!a(this, ma) || !a(this, ds))
26572
26576
  return;
26573
26577
  const { energy: t } = $(this, Kd, bf).call(this), e = $(i = po, tc, bu).call(i, t);
26574
26578
  let r = 0.9;
26575
- a(this, fa) !== e && a(this, fa) ? r = 0.9 : e ? r = 0.3 : r = 0.5, v(this, Ai, (a(this, Ai) || 0) * (1 - r) + t * r);
26576
- }), h0)), a(this, zs) && clearInterval$1(a(this, zs)), v(this, zs, setInterval$1(
26579
+ a(this, fa) !== e && a(this, fa) ? r = 0.9 : e ? r = 0.3 : r = 0.5, v(this, Mi, (a(this, Mi) || 0) * (1 - r) + t * r);
26580
+ }), h0)), a(this, Ys) && clearInterval$1(a(this, Ys)), v(this, Ys, setInterval$1(
26577
26581
  $(this, zd, kf).bind(this),
26578
26582
  p0
26579
26583
  ));
26580
26584
  }
26581
26585
  stop() {
26582
26586
  try {
26583
- l.debug(`AudioActivityReporter: Stopping audio activity reporter: ${a(this, ds)}`), a(this, Ks) && (clearInterval$1(a(this, Ks)), v(this, Ks, void 0)), a(this, zs) && (clearInterval$1(a(this, zs)), v(this, zs, void 0));
26587
+ l.debug(`AudioActivityReporter: Stopping audio activity reporter: ${a(this, ds)}`), a(this, zs) && (clearInterval$1(a(this, zs)), v(this, zs, void 0)), a(this, Ys) && (clearInterval$1(a(this, Ys)), v(this, Ys, void 0));
26584
26588
  } catch (t) {
26585
26589
  }
26586
26590
  a(this, ga).reset();
26587
26591
  }
26588
26592
  };
26589
26593
  let so = po;
26590
- Ks = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), Kd = /* @__PURE__ */ new WeakSet(), bf = function() {
26594
+ zs = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), Kd = /* @__PURE__ */ new WeakSet(), bf = function() {
26591
26595
  var o;
26592
26596
  a(this, Mr).state === "suspended" && a(this, Mr).resume().then(() => {
26593
26597
  l.debug("AudioActivityReporter: AudioContext forced resumed");
@@ -26598,13 +26602,13 @@ Ks = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), ds = /*
26598
26602
  a(this, Dr).getFloatTimeDomainData(t);
26599
26603
  const { energy: e, isVoice: r } = a(this, ga).processAudioChunk(t), i = $(o = po, Yd, If).call(o, e);
26600
26604
  return Y.hasFeature(se.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && l.debug(
26601
- `AudioActivityReporter: producer: ${a(this, ds)}, energy: ${a(this, Ai)},
26602
- slogScale: ${i}, isVoice: ${r}, minEnergy: ${a(this, Ys)},
26605
+ `AudioActivityReporter: producer: ${a(this, ds)}, energy: ${a(this, Mi)},
26606
+ slogScale: ${i}, isVoice: ${r}, minEnergy: ${a(this, Qs)},
26603
26607
  maxEnergy: ${a(this, Or)}`
26604
- ), i === -1 / 0 || e < 1e-6 ? { energy: 0, isVoice: false } : ((!a(this, Ys) || i < a(this, Ys)) && v(this, Ys, i), (!a(this, Or) || i > a(this, Or)) && v(this, Or, i), { energy: (i - a(this, Ys)) / (a(this, Or) - a(this, Ys)) * 10 || 0, isVoice: r });
26608
+ ), i === -1 / 0 || e < 1e-6 ? { energy: 0, isVoice: false } : ((!a(this, Qs) || i < a(this, Qs)) && v(this, Qs, i), (!a(this, Or) || i > a(this, Or)) && v(this, Or, i), { energy: (i - a(this, Qs)) / (a(this, Or) - a(this, Qs)) * 10 || 0, isVoice: r });
26605
26609
  }, tc = /* @__PURE__ */ new WeakSet(), bu = function(t) {
26606
26610
  return t < 5;
26607
- }, zd = /* @__PURE__ */ new WeakSet(), kf = function(t = a(this, Ai)) {
26611
+ }, zd = /* @__PURE__ */ new WeakSet(), kf = function(t = a(this, Mi)) {
26608
26612
  var r;
26609
26613
  if (!a(this, ds) || !t) {
26610
26614
  Y.hasFeature(se.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && l.debug(`AudioActivityReporter: No producerId or energy to report: ${a(this, ds)}`);
@@ -26646,12 +26650,12 @@ var f0 = Object.defineProperty, v0 = Object.getOwnPropertyDescriptor, le = (s, t
26646
26650
  return r && i && f0(t, e, i), i;
26647
26651
  };
26648
26652
  const Es = ["video/VP9", "video/VP8"];
26649
- var sc, rc, ct, J, va, Nr, vt, Mi, Di, Lr, ic, Qs, Ta, Oi, Ni, Tt, bt, Vr, Zi, et, pt, Li, ro, Qd, Af, Xd, Mf, Zd, Df;
26653
+ var sc, rc, ct, J, va, Nr, vt, Di, Oi, Lr, ic, Xs, Ta, Ni, Li, Tt, bt, Vr, Zi, et, pt, Vi, ro, Qd, Af, Xd, Mf, Zd, Df;
26650
26654
  class ce {
26651
26655
  constructor(t, e, r) {
26652
26656
  f(this, Vr);
26653
26657
  f(this, et);
26654
- f(this, Li);
26658
+ f(this, Vi);
26655
26659
  f(this, Qd);
26656
26660
  f(this, Xd);
26657
26661
  f(this, Zd);
@@ -26665,14 +26669,14 @@ class ce {
26665
26669
  f(this, va, void 0);
26666
26670
  f(this, Nr, void 0);
26667
26671
  f(this, vt, void 0);
26668
- f(this, Mi, void 0);
26669
26672
  f(this, Di, void 0);
26673
+ f(this, Oi, void 0);
26670
26674
  f(this, Lr, void 0);
26671
26675
  f(this, ic, void 0);
26672
- f(this, Qs, void 0);
26676
+ f(this, Xs, void 0);
26673
26677
  f(this, Ta, void 0);
26674
- f(this, Oi, void 0);
26675
26678
  f(this, Ni, void 0);
26679
+ f(this, Li, void 0);
26676
26680
  f(this, Tt, void 0);
26677
26681
  f(this, bt, void 0);
26678
26682
  p(this, "partialJoinRoomPromise");
@@ -26681,13 +26685,13 @@ class ce {
26681
26685
  const {
26682
26686
  socket: i
26683
26687
  } = r;
26684
- this.mediaJoined = false, v(this, Oi, /* @__PURE__ */ new Map([
26688
+ this.mediaJoined = false, v(this, Ni, /* @__PURE__ */ new Map([
26685
26689
  ["video/VP9", /* @__PURE__ */ new Set()],
26686
26690
  ["video/VP8", /* @__PURE__ */ new Set()]
26687
- ])), v(this, Ni, /* @__PURE__ */ new Map([
26691
+ ])), v(this, Li, /* @__PURE__ */ new Map([
26688
26692
  ["video/VP9", /* @__PURE__ */ new Set()],
26689
26693
  ["video/VP8", /* @__PURE__ */ new Set()]
26690
- ])), v(this, Nr, e), v(this, ct, i), v(this, Mi, false), v(this, J, new l0(t, i, e)), v(this, vt, a(this, J).events), v(this, Qs, /* @__PURE__ */ new Set()), v(this, Tt, /* @__PURE__ */ new Map()), v(this, Di, false), v(this, Lr, new yu()), e === Je.CF && !navigator.isReactNative && v(this, bt, new so(
26694
+ ])), v(this, Nr, e), v(this, ct, i), v(this, Di, false), v(this, J, new l0(t, i, e)), v(this, vt, a(this, J).events), v(this, Xs, /* @__PURE__ */ new Set()), v(this, Tt, /* @__PURE__ */ new Map()), v(this, Oi, false), v(this, Lr, new yu()), e === Je.CF && !navigator.isReactNative && v(this, bt, new so(
26691
26695
  a(this, J).socketHandler.audioActivity.bind(a(this, J).socketHandler)
26692
26696
  )), this.e2ee = (o = (n = t.getValue("modules").e2ee) == null ? void 0 : n.enabled) != null ? o : false, this.handleSocketEvents(), this.handleCallstatsEvents(), v(this, ic, zu(
26693
26697
  () => u(this, null, function* () {
@@ -26716,11 +26720,11 @@ class ce {
26716
26720
  a(this, Vr, Zi).mediaJoined = t;
26717
26721
  }
26718
26722
  reset(t = true) {
26719
- a(this, J).closeAllProducers(), a(this, J).closeAllConsumers(), a(this, Tt).clear(), a(this, Qs).clear(), t && (this.partialJoinRoomPromise = void 0, a(this, Lr).stop(), a(this, J).stopAllTransports(), a(this, J).reset(), v(this, Lr, new yu()));
26723
+ a(this, J).closeAllProducers(), a(this, J).closeAllConsumers(), a(this, Tt).clear(), a(this, Xs).clear(), t && (this.partialJoinRoomPromise = void 0, a(this, Lr).stop(), a(this, J).stopAllTransports(), a(this, J).reset(), v(this, Lr, new yu()));
26720
26724
  }
26721
26725
  joinRoom(o, c) {
26722
26726
  return u(this, arguments, function* (t, e, r = {}, i = false, n = false) {
26723
- a(this, Vr, Zi).mediaJoinAttempted = true, v(this, Mi, true), this.reset(i);
26727
+ a(this, Vr, Zi).mediaJoinAttempted = true, v(this, Di, true), this.reset(i);
26724
26728
  const d = tt().ipInfo;
26725
26729
  if (d != null && d.loc && !a(this, Ta)) {
26726
26730
  const m = d.loc.split(",");
@@ -26838,7 +26842,7 @@ class ce {
26838
26842
  try {
26839
26843
  this.mediaJoined = true;
26840
26844
  const { roomState: t } = yield a(this, J).socketHandler.notifySelfJoinComplete();
26841
- return v(this, sc, t.roomUuid), v(this, Di, true), v(this, Mi, false), true;
26845
+ return v(this, sc, t.roomUuid), v(this, Oi, true), v(this, Di, false), true;
26842
26846
  } catch (t) {
26843
26847
  return l.error("error on completing join room:", { error: t }), this.mediaJoined = false, false;
26844
26848
  }
@@ -26846,7 +26850,7 @@ class ce {
26846
26850
  }
26847
26851
  leaveRoom() {
26848
26852
  return u(this, null, function* () {
26849
- a(this, J).stopAllTransports(), v(this, Di, false), a(this, Vr, Zi).mediaJoinAttempted = false;
26853
+ a(this, J).stopAllTransports(), v(this, Oi, false), a(this, Vr, Zi).mediaJoinAttempted = false;
26850
26854
  const t = {
26851
26855
  closeRoom: false
26852
26856
  };
@@ -26912,7 +26916,7 @@ class ce {
26912
26916
  n,
26913
26917
  d
26914
26918
  );
26915
- return $(this, Li, ro).call(this, r, h.then((m) => m.id)), h.then((m) => m.track);
26919
+ return $(this, Vi, ro).call(this, r, h.then((m) => m.id)), h.then((m) => m.track);
26916
26920
  });
26917
26921
  }
26918
26922
  shareWebcam(t) {
@@ -26929,7 +26933,7 @@ class ce {
26929
26933
  var r, i;
26930
26934
  return ((i = (r = a(this, va).sender) == null ? void 0 : r.video) == null ? void 0 : i.codecs.findIndex(
26931
26935
  (n) => n.mimeType === e
26932
- )) >= 0 && a(this, Ni).get(e).size > 0 ? (l.debug(
26936
+ )) >= 0 && a(this, Li).get(e).size > 0 ? (l.debug(
26933
26937
  `Calling _shareWebcam with video codec: ${e}`
26934
26938
  ), this._shareWebcam(t, e)) : t;
26935
26939
  })
@@ -26960,7 +26964,7 @@ class ce {
26960
26964
  i,
26961
26965
  n
26962
26966
  );
26963
- $(this, Li, ro).call(this, fe.SCREENSHARE_VIDEO, o.then((d) => d.id));
26967
+ $(this, Vi, ro).call(this, fe.SCREENSHARE_VIDEO, o.then((d) => d.id));
26964
26968
  let c;
26965
26969
  if (r) {
26966
26970
  const d = {
@@ -26978,7 +26982,7 @@ class ce {
26978
26982
  c = a(this, J).createProducer(
26979
26983
  d,
26980
26984
  h
26981
- ), $(this, Li, ro).call(this, fe.SCREENSHARE_AUDIO, c.then((m) => m.id));
26985
+ ), $(this, Vi, ro).call(this, fe.SCREENSHARE_AUDIO, c.then((m) => m.id));
26982
26986
  }
26983
26987
  yield Promise.all([o, c || Promise.resolve()]), W.screenShareStart();
26984
26988
  });
@@ -27008,7 +27012,7 @@ class ce {
27008
27012
  r,
27009
27013
  i
27010
27014
  );
27011
- $(this, Li, ro).call(this, fe.MIC, n.then((o) => o.id)), yield n.then((o) => {
27015
+ $(this, Vi, ro).call(this, fe.MIC, n.then((o) => o.id)), yield n.then((o) => {
27012
27016
  a(this, bt) && (a(this, bt).audioTrack = o.track, a(this, bt).producerId = o.id, a(this, bt).start());
27013
27017
  });
27014
27018
  } catch (e) {
@@ -27120,7 +27124,7 @@ class ce {
27120
27124
  return u(this, null, function* () {
27121
27125
  l.info("screen_sharing_stopped"), W.screenShareStop();
27122
27126
  const t = yield $(this, et, pt).call(this, fe.SCREENSHARE_VIDEO), e = yield $(this, et, pt).call(this, fe.SCREENSHARE_AUDIO);
27123
- t && (yield a(this, J).closeProducer(t)), e && (yield a(this, J).closeProducer(e)), a(this, Qs).clear(), a(this, Tt).delete(fe.SCREENSHARE_VIDEO), a(this, Tt).delete(fe.SCREENSHARE_AUDIO);
27127
+ t && (yield a(this, J).closeProducer(t)), e && (yield a(this, J).closeProducer(e)), a(this, Xs).clear(), a(this, Tt).delete(fe.SCREENSHARE_VIDEO), a(this, Tt).delete(fe.SCREENSHARE_AUDIO);
27124
27128
  });
27125
27129
  }
27126
27130
  muteSelf() {
@@ -27212,7 +27216,7 @@ class ce {
27212
27216
  });
27213
27217
  }
27214
27218
  validateScreenShare(t) {
27215
- return this.peerId === t.peerId && a(this, J).producers.get(t.producerId) && a(this, Qs).add(t.consumerPeerId), a(this, Qs).size;
27219
+ return this.peerId === t.peerId && a(this, J).producers.get(t.producerId) && a(this, Xs).add(t.consumerPeerId), a(this, Xs).size;
27216
27220
  }
27217
27221
  switchConsumersToLayer(t, e) {
27218
27222
  return u(this, null, function* () {
@@ -27232,7 +27236,7 @@ class ce {
27232
27236
  return;
27233
27237
  if (n != null && n.mimeType || (n.mimeType = n.kind === ks.AUDIO ? "audio/opus" : "video/VP8"), n.kind === ks.VIDEO && !n.screenShare && ((r = (e = a(this, va).receiver) == null ? void 0 : e.video) == null ? void 0 : r.codecs.findIndex(
27234
27238
  (o) => o.mimeType === Es[0]
27235
- )) >= 0 && a(this, Oi).get(Es[0]).has(i) && n.mimeType !== Es[0]) {
27239
+ )) >= 0 && a(this, Ni).get(Es[0]).has(i) && n.mimeType !== Es[0]) {
27236
27240
  l.warn(`Ignoring producer: ${n.producerId}`);
27237
27241
  return;
27238
27242
  }
@@ -27295,7 +27299,7 @@ class ce {
27295
27299
  const { participantId: e } = Zl.fromBinary(t);
27296
27300
  if (e === this.peerId)
27297
27301
  return;
27298
- l.info(`peer left broadcast:${e}`), a(this, Qs).delete(e), a(this, J).consumers.forEach(
27302
+ l.info(`peer left broadcast:${e}`), a(this, Xs).delete(e), a(this, J).consumers.forEach(
27299
27303
  (r) => {
27300
27304
  r.peerId === e && r.close();
27301
27305
  }
@@ -27339,7 +27343,7 @@ class ce {
27339
27343
  ), a(this, ct).on(
27340
27344
  a(this, vt).mediaRoomTerminationBroadcastResponse,
27341
27345
  () => {
27342
- !this.mediaJoined && !a(this, Mi) && !a(this, Di) || (l.warn(
27346
+ !this.mediaJoined && !a(this, Di) && !a(this, Oi) || (l.warn(
27343
27347
  "media hub termination broadcast received, rejoining room"
27344
27348
  ), I.emit(A.ROOM_NODE_DISCONNECTED), a(this, ic).call(this));
27345
27349
  }
@@ -27380,7 +27384,7 @@ class ce {
27380
27384
  if (((i = (r = e == null ? void 0 : e.receiver) == null ? void 0 : r.video) == null ? void 0 : i.codecs.findIndex(
27381
27385
  (h) => h.mimeType === d
27382
27386
  )) >= 0 || c === Es.length - 1) {
27383
- a(this, Ni).get(d).add(t);
27387
+ a(this, Li).get(d).add(t);
27384
27388
  break;
27385
27389
  }
27386
27390
  }
@@ -27389,22 +27393,22 @@ class ce {
27389
27393
  if (((o = (n = e == null ? void 0 : e.sender) == null ? void 0 : n.video) == null ? void 0 : o.codecs.findIndex(
27390
27394
  (h) => h.mimeType === d
27391
27395
  )) >= 0 || c === Es.length - 1) {
27392
- a(this, Oi).get(d).add(t);
27396
+ a(this, Ni).get(d).add(t);
27393
27397
  break;
27394
27398
  }
27395
27399
  }
27396
27400
  }
27397
27401
  handlePeerLeaving(t) {
27398
- Y.hasFeature(se.FORCE_VIDEO_CODEC) || (a(this, Oi).forEach((e) => e.delete(t)), a(this, Ni).forEach((e, r) => {
27402
+ Y.hasFeature(se.FORCE_VIDEO_CODEC) || (a(this, Ni).forEach((e) => e.delete(t)), a(this, Li).forEach((e, r) => {
27399
27403
  e.delete(t), e.size === 0 && this.disableWebcam(r);
27400
27404
  }));
27401
27405
  }
27402
27406
  }
27403
- sc = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakSet(), Zi = function() {
27407
+ sc = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakSet(), Zi = function() {
27404
27408
  return this.context.getValue("connectionHandler");
27405
27409
  }, et = /* @__PURE__ */ new WeakSet(), pt = function(t) {
27406
27410
  return a(this, Tt).get(t);
27407
- }, Li = /* @__PURE__ */ new WeakSet(), ro = function(t, e) {
27411
+ }, Vi = /* @__PURE__ */ new WeakSet(), ro = function(t, e) {
27408
27412
  return a(this, Tt).set(t, e);
27409
27413
  }, Qd = /* @__PURE__ */ new WeakSet(), Af = function(t) {
27410
27414
  return a(this, Tt).delete(t);
@@ -27548,7 +27552,7 @@ function Nf(s) {
27548
27552
  }
27549
27553
  s.setValue("roomNodeClient", void 0);
27550
27554
  }
27551
- var T0 = Object.defineProperty, y0 = Object.getOwnPropertyDescriptor, Ki = (s, t, e, r) => {
27555
+ var T0 = Object.defineProperty, y0 = Object.getOwnPropertyDescriptor, zi = (s, t, e, r) => {
27552
27556
  for (var i = r > 1 ? void 0 : r ? y0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
27553
27557
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
27554
27558
  return r && i && T0(t, e, i), i;
@@ -27688,7 +27692,7 @@ const Lf = (om = class {
27688
27692
  if (this.self.roomState === "disconnected")
27689
27693
  return;
27690
27694
  let { peerId: t } = this;
27691
- s && Y.hasFeature(se.REFRESH_ID_ON_DISCONNECTION) && (t = v4()), a(this, xr).updateURL(t), y.resetPeerId(t), tt().setHeader("dyte-tracing-id", t), Vi.remapContext(t, a(this, dt)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
27695
+ s && Y.hasFeature(se.REFRESH_ID_ON_DISCONNECTION) && (t = v4()), a(this, xr).updateURL(t), y.resetPeerId(t), tt().setHeader("dyte-tracing-id", t), xi.remapContext(t, a(this, dt)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
27692
27696
  }), I.on(A.SOCKET_SERVICE_FAILED, () => {
27693
27697
  this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
27694
27698
  }), a(this, ls).on(x.waitingRoomRequestAccepted, () => {
@@ -27827,25 +27831,25 @@ const Lf = (om = class {
27827
27831
  return a(this, dt).getValue("roomNodeClient");
27828
27832
  }, om);
27829
27833
  let Kr = Lf;
27830
- Ki([
27834
+ zi([
27831
27835
  y.trace("SelfController.resetSelf")
27832
27836
  ], Kr.prototype, "resetSelf", 1);
27833
- Ki([
27837
+ zi([
27834
27838
  y.trace("SelfController.setupEvents")
27835
27839
  ], Kr.prototype, "setupEvents", 1);
27836
- Ki([
27840
+ zi([
27837
27841
  y.trace("SelfController.joinRoom")
27838
27842
  ], Kr.prototype, "joinRoom", 1);
27839
- Ki([
27843
+ zi([
27840
27844
  y.trace("SelfController.leaveRoom")
27841
27845
  ], Kr.prototype, "leaveRoom", 1);
27842
- Ki([
27846
+ zi([
27843
27847
  y.trace("SelfController.joinMediaRoom")
27844
27848
  ], Kr.prototype, "joinMediaRoom", 1);
27845
- Ki([
27849
+ zi([
27846
27850
  y.trace("SelfController.leaveMediaRoom")
27847
27851
  ], Kr.prototype, "leaveMediaRoom", 1);
27848
- Ki([
27852
+ zi([
27849
27853
  y.trace("SelfController.init")
27850
27854
  ], Kr, "init", 1);
27851
27855
  var nc;
@@ -27901,14 +27905,14 @@ var _0 = Object.defineProperty, P0 = Object.getOwnPropertyDescriptor, ph = (s, t
27901
27905
  for (var i = r > 1 ? void 0 : r ? P0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
27902
27906
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
27903
27907
  return r && i && _0(t, e, i), i;
27904
- }, Xs;
27908
+ }, Zs;
27905
27909
  class vl {
27906
27910
  constructor(t) {
27907
- f(this, Xs, void 0);
27908
- v(this, Xs, t);
27911
+ f(this, Zs, void 0);
27912
+ v(this, Zs, t);
27909
27913
  }
27910
27914
  getPolls() {
27911
- return a(this, Xs).sendMessagePromise(Ls.getPolls);
27915
+ return a(this, Zs).sendMessagePromise(Ls.getPolls);
27912
27916
  }
27913
27917
  createPoll(t, e, r = false, i = false) {
27914
27918
  const n = {
@@ -27917,7 +27921,7 @@ class vl {
27917
27921
  question: t,
27918
27922
  options: e
27919
27923
  };
27920
- return a(this, Xs).sendMessage(
27924
+ return a(this, Zs).sendMessage(
27921
27925
  Ls.createPoll,
27922
27926
  _I.toBinary(n)
27923
27927
  );
@@ -27927,7 +27931,7 @@ class vl {
27927
27931
  index: e,
27928
27932
  pollId: t
27929
27933
  };
27930
- return a(this, Xs).sendMessage(
27934
+ return a(this, Zs).sendMessage(
27931
27935
  Ls.votePoll,
27932
27936
  CI.toBinary(r)
27933
27937
  );
@@ -27942,7 +27946,7 @@ class vl {
27942
27946
  break;
27943
27947
  }
27944
27948
  }
27945
- a(this, Xs).on(t, ({ payload: n }) => {
27949
+ a(this, Zs).on(t, ({ payload: n }) => {
27946
27950
  let o = i;
27947
27951
  try {
27948
27952
  o = r(n);
@@ -27955,10 +27959,10 @@ class vl {
27955
27959
  });
27956
27960
  }
27957
27961
  removeListeners(t) {
27958
- a(this, Xs).removeListeners(t);
27962
+ a(this, Zs).removeListeners(t);
27959
27963
  }
27960
27964
  }
27961
- Xs = /* @__PURE__ */ new WeakMap();
27965
+ Zs = /* @__PURE__ */ new WeakMap();
27962
27966
  ph([
27963
27967
  y.trace("PollSocketHandler.getPolls")
27964
27968
  ], vl.prototype, "getPolls", 1);
@@ -28078,7 +28082,7 @@ class C0 {
28078
28082
  x.getPeerInfo,
28079
28083
  Ig.toBinary({ peerId: t })
28080
28084
  );
28081
- return Yi.fromBinary(e.payload);
28085
+ return Qi.fromBinary(e.payload);
28082
28086
  });
28083
28087
  }
28084
28088
  }
@@ -28547,66 +28551,66 @@ class jf {
28547
28551
  function x0(s, t) {
28548
28552
  return Math.floor(Math.random() * (t - s + 1) + s);
28549
28553
  }
28550
- var hr;
28554
+ var pr;
28551
28555
  class U0 {
28552
28556
  constructor(t = {}) {
28553
- k0(this, "opts"), ye(this, hr, void 0), this.opts = {
28557
+ k0(this, "opts"), ye(this, pr, void 0), this.opts = {
28554
28558
  initialTimeout: t.initialTimeout || 1e3,
28555
28559
  maxTimeout: t.maxTimeout || 1e4,
28556
28560
  factor: t.factor || 2
28557
- }, de(this, hr, 0);
28561
+ }, de(this, pr, 0);
28558
28562
  }
28559
28563
  wait() {
28560
28564
  return u(this, null, function* () {
28561
- de(this, hr, D(this, hr) + 1);
28562
- const t = x0(0, Math.min(this.opts.maxTimeout, this.opts.initialTimeout * Sh(2, D(this, hr))));
28565
+ de(this, pr, D(this, pr) + 1);
28566
+ const t = x0(0, Math.min(this.opts.maxTimeout, this.opts.initialTimeout * Sh(2, D(this, pr))));
28563
28567
  yield new Promise((e) => {
28564
28568
  setTimeout(e, t);
28565
28569
  });
28566
28570
  });
28567
28571
  }
28568
28572
  getAttempts() {
28569
- return D(this, hr);
28573
+ return D(this, pr);
28570
28574
  }
28571
28575
  reset() {
28572
- de(this, hr, 0);
28576
+ de(this, pr, 0);
28573
28577
  }
28574
28578
  }
28575
- hr = /* @__PURE__ */ new WeakMap();
28576
- const dr = {
28579
+ pr = /* @__PURE__ */ new WeakMap();
28580
+ const lr = {
28577
28581
  debug: 0,
28578
28582
  info: 1,
28579
28583
  warn: 2,
28580
28584
  error: 3
28581
28585
  };
28582
- var Zr, ei;
28586
+ var ei, ti;
28583
28587
  class $0 {
28584
28588
  constructor(t) {
28585
- ye(this, Zr, void 0), ye(this, ei, void 0), de(this, Zr, console), de(this, ei, t);
28589
+ ye(this, ei, void 0), ye(this, ti, void 0), de(this, ei, console), de(this, ti, t);
28586
28590
  }
28587
28591
  debug(...t) {
28588
- dr[D(this, ei)] > dr.debug || D(this, Zr).debug("[Sockrates]:", ...t);
28592
+ lr[D(this, ti)] > lr.debug || D(this, ei).debug("[Sockrates]:", ...t);
28589
28593
  }
28590
28594
  info(...t) {
28591
- dr[D(this, ei)] > dr.info || D(this, Zr).info("[Sockrates]:", ...t);
28595
+ lr[D(this, ti)] > lr.info || D(this, ei).info("[Sockrates]:", ...t);
28592
28596
  }
28593
28597
  warn(...t) {
28594
- dr[D(this, ei)] > dr.warn || D(this, Zr).warn("[Sockrates]:", ...t);
28598
+ lr[D(this, ti)] > lr.warn || D(this, ei).warn("[Sockrates]:", ...t);
28595
28599
  }
28596
28600
  error(...t) {
28597
- dr[D(this, ei)] > dr.error || D(this, Zr).error("[Sockrates]:", ...t);
28601
+ lr[D(this, ti)] > lr.error || D(this, ei).error("[Sockrates]:", ...t);
28598
28602
  }
28599
28603
  }
28600
- Zr = /* @__PURE__ */ new WeakMap(), ei = /* @__PURE__ */ new WeakMap();
28604
+ ei = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap();
28601
28605
  var Gf = /* @__PURE__ */ ((s) => (s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s))(Gf || {});
28602
28606
  const F0 = "2", B0 = "3";
28603
- var De, en, Re, Ue, pr, We, tr, Fr, us, tn, Os, ku, Wf, io, Jc, Iu, Jf, Au, Bp, ud, Mu, Du, Kf, co, Kc, lo, hd, pd, Ou, hn, uo, ho, md;
28607
+ var De, en, Re, Ue, mr, We, sr, Fr, us, tn, Os, ku, Wf, io, Jc, Iu, Jf, Au, Bp, ud, Mu, Du, Kf, co, Kc, lo, hd, pd, Ou, hn, uo, ho, md;
28604
28608
  class H0 {
28605
28609
  constructor(t, e) {
28606
28610
  var q;
28607
- ye(this, ku), ye(this, io), ye(this, Iu), ye(this, Au), ye(this, ud), ye(this, Du), ye(this, co), ye(this, lo), ye(this, pd), ye(this, hn), ye(this, ho), ye(this, De, void 0), ye(this, en, void 0), ye(this, Re, void 0), ye(this, Ue, void 0), ye(this, pr, void 0), ye(this, We, void 0), ye(this, tr, void 0), ye(this, Fr, void 0), ye(this, us, void 0), ye(this, tn, void 0), ye(this, Os, void 0);
28611
+ ye(this, ku), ye(this, io), ye(this, Iu), ye(this, Au), ye(this, ud), ye(this, Du), ye(this, co), ye(this, lo), ye(this, pd), ye(this, hn), ye(this, ho), ye(this, De, void 0), ye(this, en, void 0), ye(this, Re, void 0), ye(this, Ue, void 0), ye(this, mr, void 0), ye(this, We, void 0), ye(this, sr, void 0), ye(this, Fr, void 0), ye(this, us, void 0), ye(this, tn, void 0), ye(this, Os, void 0);
28608
28612
  var r, i, n, o, c, d, h, m, g;
28609
- de(this, en, t), de(this, pr, []), de(this, We, new ld()), de(this, tr, true), de(this, us, false), de(this, Re, e != null ? e : {}), (r = D(this, Re)).autoReconnect != null || (r.autoReconnect = true), (i = D(this, Re)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = D(this, Re)).pingTimeout != null || (n.pingTimeout = 3e4), (o = D(this, Re)).connectionTimeout != null || (o.connectionTimeout = 5e3), (c = D(this, Re)).debug != null || (c.debug = true), (d = D(this, Re)).maxReconnectionAttempts != null || (d.maxReconnectionAttempts = 10), (h = D(this, Re)).disconnectOnPingTimeout != null || (h.disconnectOnPingTimeout = true), (m = D(this, Re)).queueOnDisconnect != null || (m.queueOnDisconnect = false), (g = D(this, Re)).flushOnReconnect != null || (g.flushOnReconnect = false), de(this, Fr, {
28613
+ de(this, en, t), de(this, mr, []), de(this, We, new ld()), de(this, sr, true), de(this, us, false), de(this, Re, e != null ? e : {}), (r = D(this, Re)).autoReconnect != null || (r.autoReconnect = true), (i = D(this, Re)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = D(this, Re)).pingTimeout != null || (n.pingTimeout = 3e4), (o = D(this, Re)).connectionTimeout != null || (o.connectionTimeout = 5e3), (c = D(this, Re)).debug != null || (c.debug = true), (d = D(this, Re)).maxReconnectionAttempts != null || (d.maxReconnectionAttempts = 10), (h = D(this, Re)).disconnectOnPingTimeout != null || (h.disconnectOnPingTimeout = true), (m = D(this, Re)).queueOnDisconnect != null || (m.queueOnDisconnect = false), (g = D(this, Re)).flushOnReconnect != null || (g.flushOnReconnect = false), de(this, Fr, {
28610
28614
  code: void 0,
28611
28615
  reason: void 0
28612
28616
  }), de(this, Ue, (q = D(this, Re).logger) != null ? q : new $0(D(this, Re).debug ? "debug" : "info")), de(this, Os, new U0());
@@ -28625,15 +28629,15 @@ class H0 {
28625
28629
  return D(this, Re);
28626
28630
  }
28627
28631
  get sendQueue() {
28628
- return D(this, pr);
28632
+ return D(this, mr);
28629
28633
  }
28630
28634
  flush() {
28631
28635
  if (!D(this, Re).queueOnDisconnect)
28632
28636
  return false;
28633
28637
  const t = [];
28634
- return D(this, pr).forEach((e) => {
28638
+ return D(this, mr).forEach((e) => {
28635
28639
  this.send(e.event, e.id, e.payload, e.metadata) || t.push(e);
28636
- }), de(this, pr, t), D(this, pr);
28640
+ }), de(this, mr, t), D(this, mr);
28637
28641
  }
28638
28642
  connect(t = false) {
28639
28643
  return u(this, null, function* () {
@@ -28644,13 +28648,13 @@ class H0 {
28644
28648
  D(this, Ue).debug("Websocket was already connecting or connected.");
28645
28649
  return;
28646
28650
  }
28647
- if (D(this, tr) !== false)
28651
+ if (D(this, sr) !== false)
28648
28652
  return new Promise((e, r) => {
28649
28653
  we(this, hn, uo).call(this), we(this, ho, md).call(this);
28650
28654
  try {
28651
28655
  de(this, De, new WebSocket(we(this, ku, Wf).call(this, D(this, en)))), D(this, De).binaryType = "arraybuffer", D(this, Ue).debug("Connecting");
28652
28656
  const i = setTimeout(() => {
28653
- D(this, Ue).debug("Connection timeout. Closing socket"), de(this, tr, true), we(this, ho, md).call(this), D(this, De).close(3001, "Connection Timeout"), D(this, Re).autoReconnect && !D(this, us) && (D(this, We).emit(
28657
+ D(this, Ue).debug("Connection timeout. Closing socket"), de(this, sr, true), we(this, ho, md).call(this), D(this, De).close(3001, "Connection Timeout"), D(this, Re).autoReconnect && !D(this, us) && (D(this, We).emit(
28654
28658
  "reconnecting"
28655
28659
  ), we(this, co, Kc).call(this)), r(new Error("Connection timed out!"));
28656
28660
  }, D(this, Re).connectionTimeout);
@@ -28681,7 +28685,7 @@ class H0 {
28681
28685
  send(t, e, r, i) {
28682
28686
  const n = { event: t, id: e, payload: r, metadata: i };
28683
28687
  if (D(this, Re).queueOnDisconnect && (!D(this, De) || D(this, De).readyState !== 1))
28684
- return D(this, Ue).debug("Queuing message since socket is not connected!", n), D(this, pr).push(n), false;
28688
+ return D(this, Ue).debug("Queuing message since socket is not connected!", n), D(this, mr).push(n), false;
28685
28689
  const o = jf.encode(n);
28686
28690
  return we(this, lo, hd).call(this, o);
28687
28691
  }
@@ -28719,13 +28723,13 @@ class H0 {
28719
28723
  );
28720
28724
  }
28721
28725
  disconnect() {
28722
- de(this, tr, false), we(this, hn, uo).call(this), this.removeAllListeners(), de(this, Fr, {
28726
+ de(this, sr, false), we(this, hn, uo).call(this), this.removeAllListeners(), de(this, Fr, {
28723
28727
  code: 1e3,
28724
28728
  reason: "Sockrates disconnect method called"
28725
28729
  }), D(this, De).close(1e3, "Sockrates disconnect method called.");
28726
28730
  }
28727
28731
  }
28728
- De = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), Fr = /* @__PURE__ */ new WeakMap(), us = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ku = /* @__PURE__ */ new WeakSet(), Wf = function(s) {
28732
+ De = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), Fr = /* @__PURE__ */ new WeakMap(), us = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ku = /* @__PURE__ */ new WeakSet(), Wf = function(s) {
28729
28733
  if (s.startsWith("ws://") || s.startsWith("wss://"))
28730
28734
  return s;
28731
28735
  if (s.startsWith("https://"))
@@ -28748,7 +28752,7 @@ De = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Re = /*
28748
28752
  de(this, Fr, { reason: t, code: s }), D(this, We).emit("disconnected", { code: s, reason: t });
28749
28753
  }, Du = /* @__PURE__ */ new WeakSet(), Kf = function() {
28750
28754
  const { reason: s, code: t } = D(this, Fr);
28751
- t && t !== 1e3 && D(this, tr) && D(this, Re).autoReconnect && !D(this, us) && (D(this, Ue).debug(`Triggering reconnection due to ${s}.`), D(this, We).emit(
28755
+ t && t !== 1e3 && D(this, sr) && D(this, Re).autoReconnect && !D(this, us) && (D(this, Ue).debug(`Triggering reconnection due to ${s}.`), D(this, We).emit(
28752
28756
  "reconnecting"
28753
28757
  ), we(this, co, Kc).call(this));
28754
28758
  }, co = /* @__PURE__ */ new WeakSet(), Kc = function(s = true) {
@@ -28765,7 +28769,7 @@ De = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Re = /*
28765
28769
  }
28766
28770
  de(this, us, true), we(this, ho, md).call(this), we(this, hn, uo).call(this);
28767
28771
  try {
28768
- if (yield D(this, Os).wait(), D(this, tr) === false)
28772
+ if (yield D(this, Os).wait(), D(this, sr) === false)
28769
28773
  return;
28770
28774
  if (D(this, Ue).debug(`Reconnection attempt ${D(this, Os).getAttempts()}`), D(this, We).emit("reconnectAttempt", { attempt: D(this, Os).getAttempts() }), yield this.connect(), !we(this, Au, Bp).call(this))
28771
28775
  throw Error("Reconnect Failed");
@@ -28788,7 +28792,7 @@ De = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Re = /*
28788
28792
  }, pd = /* @__PURE__ */ new WeakSet(), Ou = function() {
28789
28793
  this.config.disconnectOnPingTimeout && (D(this, Ue).debug("Resetting ping timeout"), we(this, hn, uo).call(this), de(this, tn, setTimeout(() => {
28790
28794
  var s;
28791
- D(this, Ue).debug("Disconnecting the socket due to ping timeout"), de(this, tr, true);
28795
+ D(this, Ue).debug("Disconnecting the socket due to ping timeout"), de(this, sr, true);
28792
28796
  const t = 3002, e = "Ping timeout";
28793
28797
  (s = D(this, De)) == null || s.close(t, e), we(this, ud, Mu).call(this, t, e);
28794
28798
  }, D(this, Re).pingTimeout)));
@@ -28803,7 +28807,7 @@ var q0 = Object.defineProperty, j0 = Object.getOwnPropertyDescriptor, yl = (s, t
28803
28807
  return r && i && q0(t, e, i), i;
28804
28808
  };
28805
28809
  const Hp = 65535, G0 = 3e3;
28806
- var Ur, be, ke, Ne, Yt, Zs, oc, Nu, cc, Lu, cm;
28810
+ var Ur, be, ke, Ne, Yt, er, oc, Nu, cc, Lu, cm;
28807
28811
  const zf = (cm = class {
28808
28812
  constructor(s, {
28809
28813
  peerId: t,
@@ -28820,11 +28824,11 @@ const zf = (cm = class {
28820
28824
  p(this, "authToken");
28821
28825
  p(this, "capabilities");
28822
28826
  f(this, Yt, void 0);
28823
- f(this, Zs, void 0);
28827
+ f(this, er, void 0);
28824
28828
  var n;
28825
28829
  if (!t || !e || !r)
28826
28830
  throw new w("peerId, meetingId, or authToken can not be empty", "0404");
28827
- v(this, Yt, void 0), v(this, Zs, s), this.capabilities = i, this.roomName = e, this.authToken = r, v(this, Ur, $(this, oc, Nu).call(this, t)), v(this, be, new H0(a(this, Ur), {
28831
+ v(this, Yt, void 0), v(this, er, s), this.capabilities = i, this.roomName = e, this.authToken = r, v(this, Ur, $(this, oc, Nu).call(this, t)), v(this, be, new H0(a(this, Ur), {
28828
28832
  autoReconnect: true,
28829
28833
  disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
28830
28834
  queueOnDisconnect: true,
@@ -28839,7 +28843,7 @@ const zf = (cm = class {
28839
28843
  a(this, ke, Ne).socketJoinAttempted = s;
28840
28844
  }
28841
28845
  get peerId() {
28842
- return a(this, Zs).getValue("peerId");
28846
+ return a(this, er).getValue("peerId");
28843
28847
  }
28844
28848
  updateURL(s) {
28845
28849
  s !== this.peerId && (v(this, Ur, $(this, oc, Nu).call(this, s)), l.debug("SocketService:: Connection URL updated.")), a(this, be).updateURL(a(this, Ur));
@@ -29007,10 +29011,10 @@ const zf = (cm = class {
29007
29011
  }));
29008
29012
  }
29009
29013
  }, Ur = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakSet(), Ne = function() {
29010
- return a(this, Zs).getValue("connectionHandler");
29011
- }, Yt = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakSet(), Nu = function(s) {
29012
- let t = zf.getSocketEdgeDomain(a(this, Zs).getValue("baseURI"));
29013
- typeof rd(a(this, Zs), "socket_server_base") == "string" && (t = rd(a(this, Zs), "socket_server_base"));
29014
+ return a(this, er).getValue("connectionHandler");
29015
+ }, Yt = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakSet(), Nu = function(s) {
29016
+ let t = zf.getSocketEdgeDomain(a(this, er).getValue("baseURI"));
29017
+ typeof rd(a(this, er), "socket_server_base") == "string" && (t = rd(a(this, er), "socket_server_base"));
29014
29018
  const e = `wss://${t}`, r = new URL(`${e}/ws`), i = this.peerId, n = j(O({
29015
29019
  roomID: this.roomName,
29016
29020
  peerID: s,
@@ -29041,7 +29045,7 @@ yl([
29041
29045
  yl([
29042
29046
  y.trace("SocketService.sendMessagePromiseWithTimeout")
29043
29047
  ], Ec.prototype, "sendMessagePromiseWithTimeout", 1);
29044
- const gr = class {
29048
+ const fr = class {
29045
29049
  static handleConnectedRoomsDumpRaw({ payload: t }) {
29046
29050
  var n;
29047
29051
  const e = yw.fromBinary(t), r = e.meetings.map((o) => {
@@ -29083,15 +29087,15 @@ const gr = class {
29083
29087
  }
29084
29088
  static getConnectedRoomsDump() {
29085
29089
  return u(this, null, function* () {
29086
- const t = yield gr.socketService.sendMessagePromise(
29090
+ const t = yield fr.socketService.sendMessagePromise(
29087
29091
  x.getConnectedRoomsDump
29088
29092
  );
29089
- return gr.handleConnectedRoomsDumpRaw(t);
29093
+ return fr.handleConnectedRoomsDumpRaw(t);
29090
29094
  });
29091
29095
  }
29092
29096
  static createConnectedRooms(t) {
29093
29097
  return u(this, null, function* () {
29094
- const { payload: e } = yield gr.socketService.sendMessagePromise(
29098
+ const { payload: e } = yield fr.socketService.sendMessagePromise(
29095
29099
  x.createConnectedRooms,
29096
29100
  Pw.toBinary({ payloads: t })
29097
29101
  );
@@ -29107,11 +29111,11 @@ const gr = class {
29107
29111
  }
29108
29112
  static disableConnectedRooms(t) {
29109
29113
  return u(this, null, function* () {
29110
- const e = t.map((i) => ({ id: i })), r = yield gr.socketService.sendMessagePromise(
29114
+ const e = t.map((i) => ({ id: i })), r = yield fr.socketService.sendMessagePromise(
29111
29115
  x.deleteConnectedRooms,
29112
29116
  Ow.toBinary({ payloads: e })
29113
29117
  );
29114
- return gr.handleConnectedRoomsDeletedRaw(
29118
+ return fr.handleConnectedRoomsDeletedRaw(
29115
29119
  r
29116
29120
  );
29117
29121
  });
@@ -29119,7 +29123,7 @@ const gr = class {
29119
29123
  static movePeersBetweenRooms(t) {
29120
29124
  return u(this, null, function* () {
29121
29125
  try {
29122
- const e = yield gr.socketService.sendMessagePromise(
29126
+ const e = yield fr.socketService.sendMessagePromise(
29123
29127
  x.movePeers,
29124
29128
  Bw.toBinary({
29125
29129
  sourceMeetingId: t.sourceMeetingId,
@@ -29134,7 +29138,7 @@ const gr = class {
29134
29138
  });
29135
29139
  }
29136
29140
  };
29137
- let _e = gr;
29141
+ let _e = fr;
29138
29142
  p(_e, "socketService"), p(_e, "currentMeetingId");
29139
29143
  var W0 = Object.defineProperty, J0 = Object.getOwnPropertyDescriptor, Sl = (s, t, e, r) => {
29140
29144
  for (var i = r > 1 ? void 0 : r ? J0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
@@ -29283,7 +29287,7 @@ const sn = class {
29283
29287
  let P, b, R, L, H, F, B, q;
29284
29288
  const ie = new E0(s);
29285
29289
  _e.socketService = s;
29286
- const pe = new vl(s), Ye = new Zt(s), Ss = new C0(s), ts = od.create(s, t), cr = new R0(s), M = new S0(s), E = new $i(s), C = yield Kr.init(
29290
+ const pe = new vl(s), Ye = new Zt(s), Ss = new C0(s), ts = od.create(s, t), dr = new R0(s), M = new S0(s), E = new Fi(s), C = yield Kr.init(
29287
29291
  t,
29288
29292
  ts,
29289
29293
  d,
@@ -29296,7 +29300,7 @@ const sn = class {
29296
29300
  ie,
29297
29301
  i
29298
29302
  );
29299
- if (o.participant && (q = new or(
29303
+ if (o.participant && (q = new cr(
29300
29304
  t,
29301
29305
  C.self,
29302
29306
  ts,
@@ -29335,7 +29339,7 @@ const sn = class {
29335
29339
  L = yield vc.init(
29336
29340
  t,
29337
29341
  Ms,
29338
- cr,
29342
+ dr,
29339
29343
  Ye,
29340
29344
  b == null ? void 0 : b.chat,
29341
29345
  C.self,
@@ -29349,7 +29353,7 @@ const sn = class {
29349
29353
  }
29350
29354
  }
29351
29355
  const Oe = {
29352
- storesManager: new AM(t, cr),
29356
+ storesManager: new AM(t, dr),
29353
29357
  pollController: P,
29354
29358
  selfController: C,
29355
29359
  metaController: U,
@@ -29535,7 +29539,7 @@ var Q0 = Object.defineProperty, X0 = Object.getOwnPropertyDescriptor, gh = (s, t
29535
29539
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
29536
29540
  return r && i && Q0(t, e, i), i;
29537
29541
  }, ya, Qt, Fl, tl;
29538
- const mr = (Fl = class {
29542
+ const gr = (Fl = class {
29539
29543
  constructor(s, t, e) {
29540
29544
  p(this, "connectedMeetings");
29541
29545
  f(this, ya, void 0);
@@ -29544,14 +29548,14 @@ const mr = (Fl = class {
29544
29548
  v(this, tl, s), v(this, ya, e), this.connectedMeetings = new Yf(s, t), this.setCurrentMeeting(t);
29545
29549
  }
29546
29550
  static init(s, t, e) {
29547
- return mr.instance || (mr.instance = new mr(
29551
+ return gr.instance || (gr.instance = new gr(
29548
29552
  s,
29549
29553
  t,
29550
29554
  e
29551
- )), mr.instance.connectedMeetings.supportsConnectedMeetings && (mr.instance.setupEvents(), t.self.once(
29555
+ )), gr.instance.connectedMeetings.supportsConnectedMeetings && (gr.instance.setupEvents(), t.self.once(
29552
29556
  "roomJoined",
29553
- () => mr.instance.getConnectedMeetings()
29554
- )), mr.instance;
29557
+ () => gr.instance.getConnectedMeetings()
29558
+ )), gr.instance;
29555
29559
  }
29556
29560
  setCurrentMeeting(s) {
29557
29561
  v(this, Qt, s), _e.currentMeetingId = s.meta.meetingId;
@@ -29654,7 +29658,7 @@ const mr = (Fl = class {
29654
29658
  });
29655
29659
  }
29656
29660
  }, ya = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), p(Fl, "instance"), Fl);
29657
- let El = mr;
29661
+ let El = gr;
29658
29662
  gh([
29659
29663
  y.trace("ConnectedMeetingsController.getConnectedMeetings")
29660
29664
  ], El.prototype, "getConnectedMeetings", 1);
@@ -29763,7 +29767,7 @@ let Gr = (dm = class {
29763
29767
  }
29764
29768
  static setupContext(t, e, r, i) {
29765
29769
  var c;
29766
- const n = Vi.createContext(t, e), o = O(O({}, EP), e == null ? void 0 : e.modules);
29770
+ const n = xi.createContext(t, e), o = O(O({}, EP), e == null ? void 0 : e.modules);
29767
29771
  return n.setValue("peerId", t), n.setValue("modules", o), 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", e.authToken), n.setValue("overrides", (c = e.overrides) != null ? c : {}), n.setValue("env", _P({ baseURI: i.baseURI })), n.setValue("defaults", e.defaults || { audio: true, video: true }), n.setValue("onError", e.onError || (() => {
29768
29772
  })), n.setValue("cachedUserDetails", ms(e.cachedUserDetails)), n.setValue("sdkVersion", "VERSION_PLACEHOLDER"), n;
29769
29773
  }