@voicenter-team/events-sdk 0.0.55 → 0.0.56

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.
@@ -119,9 +119,9 @@ function xr(t) {
119
119
  for (var h = t.bytesToWords(i), d = i.length * 8, c = 1732584193, l = -271733879, p = -1732584194, a = 271733878, s = 0; s < h.length; s++)
120
120
  h[s] = (h[s] << 8 | h[s] >>> 24) & 16711935 | (h[s] << 24 | h[s] >>> 8) & 4278255360;
121
121
  h[d >>> 5] |= 128 << d % 32, h[(d + 64 >>> 9 << 4) + 14] = d;
122
- for (var f = o._ff, y = o._gg, g = o._hh, w = o._ii, s = 0; s < h.length; s += 16) {
122
+ for (var f = o._ff, y = o._gg, g = o._hh, C = o._ii, s = 0; s < h.length; s += 16) {
123
123
  var B = c, _ = l, b = p, S = a;
124
- c = f(c, l, p, a, h[s + 0], 7, -680876936), a = f(a, c, l, p, h[s + 1], 12, -389564586), p = f(p, a, c, l, h[s + 2], 17, 606105819), l = f(l, p, a, c, h[s + 3], 22, -1044525330), c = f(c, l, p, a, h[s + 4], 7, -176418897), a = f(a, c, l, p, h[s + 5], 12, 1200080426), p = f(p, a, c, l, h[s + 6], 17, -1473231341), l = f(l, p, a, c, h[s + 7], 22, -45705983), c = f(c, l, p, a, h[s + 8], 7, 1770035416), a = f(a, c, l, p, h[s + 9], 12, -1958414417), p = f(p, a, c, l, h[s + 10], 17, -42063), l = f(l, p, a, c, h[s + 11], 22, -1990404162), c = f(c, l, p, a, h[s + 12], 7, 1804603682), a = f(a, c, l, p, h[s + 13], 12, -40341101), p = f(p, a, c, l, h[s + 14], 17, -1502002290), l = f(l, p, a, c, h[s + 15], 22, 1236535329), c = y(c, l, p, a, h[s + 1], 5, -165796510), a = y(a, c, l, p, h[s + 6], 9, -1069501632), p = y(p, a, c, l, h[s + 11], 14, 643717713), l = y(l, p, a, c, h[s + 0], 20, -373897302), c = y(c, l, p, a, h[s + 5], 5, -701558691), a = y(a, c, l, p, h[s + 10], 9, 38016083), p = y(p, a, c, l, h[s + 15], 14, -660478335), l = y(l, p, a, c, h[s + 4], 20, -405537848), c = y(c, l, p, a, h[s + 9], 5, 568446438), a = y(a, c, l, p, h[s + 14], 9, -1019803690), p = y(p, a, c, l, h[s + 3], 14, -187363961), l = y(l, p, a, c, h[s + 8], 20, 1163531501), c = y(c, l, p, a, h[s + 13], 5, -1444681467), a = y(a, c, l, p, h[s + 2], 9, -51403784), p = y(p, a, c, l, h[s + 7], 14, 1735328473), l = y(l, p, a, c, h[s + 12], 20, -1926607734), c = g(c, l, p, a, h[s + 5], 4, -378558), a = g(a, c, l, p, h[s + 8], 11, -2022574463), p = g(p, a, c, l, h[s + 11], 16, 1839030562), l = g(l, p, a, c, h[s + 14], 23, -35309556), c = g(c, l, p, a, h[s + 1], 4, -1530992060), a = g(a, c, l, p, h[s + 4], 11, 1272893353), p = g(p, a, c, l, h[s + 7], 16, -155497632), l = g(l, p, a, c, h[s + 10], 23, -1094730640), c = g(c, l, p, a, h[s + 13], 4, 681279174), a = g(a, c, l, p, h[s + 0], 11, -358537222), p = g(p, a, c, l, h[s + 3], 16, -722521979), l = g(l, p, a, c, h[s + 6], 23, 76029189), c = g(c, l, p, a, h[s + 9], 4, -640364487), a = g(a, c, l, p, h[s + 12], 11, -421815835), p = g(p, a, c, l, h[s + 15], 16, 530742520), l = g(l, p, a, c, h[s + 2], 23, -995338651), c = w(c, l, p, a, h[s + 0], 6, -198630844), a = w(a, c, l, p, h[s + 7], 10, 1126891415), p = w(p, a, c, l, h[s + 14], 15, -1416354905), l = w(l, p, a, c, h[s + 5], 21, -57434055), c = w(c, l, p, a, h[s + 12], 6, 1700485571), a = w(a, c, l, p, h[s + 3], 10, -1894986606), p = w(p, a, c, l, h[s + 10], 15, -1051523), l = w(l, p, a, c, h[s + 1], 21, -2054922799), c = w(c, l, p, a, h[s + 8], 6, 1873313359), a = w(a, c, l, p, h[s + 15], 10, -30611744), p = w(p, a, c, l, h[s + 6], 15, -1560198380), l = w(l, p, a, c, h[s + 13], 21, 1309151649), c = w(c, l, p, a, h[s + 4], 6, -145523070), a = w(a, c, l, p, h[s + 11], 10, -1120210379), p = w(p, a, c, l, h[s + 2], 15, 718787259), l = w(l, p, a, c, h[s + 9], 21, -343485551), c = c + B >>> 0, l = l + _ >>> 0, p = p + b >>> 0, a = a + S >>> 0;
124
+ c = f(c, l, p, a, h[s + 0], 7, -680876936), a = f(a, c, l, p, h[s + 1], 12, -389564586), p = f(p, a, c, l, h[s + 2], 17, 606105819), l = f(l, p, a, c, h[s + 3], 22, -1044525330), c = f(c, l, p, a, h[s + 4], 7, -176418897), a = f(a, c, l, p, h[s + 5], 12, 1200080426), p = f(p, a, c, l, h[s + 6], 17, -1473231341), l = f(l, p, a, c, h[s + 7], 22, -45705983), c = f(c, l, p, a, h[s + 8], 7, 1770035416), a = f(a, c, l, p, h[s + 9], 12, -1958414417), p = f(p, a, c, l, h[s + 10], 17, -42063), l = f(l, p, a, c, h[s + 11], 22, -1990404162), c = f(c, l, p, a, h[s + 12], 7, 1804603682), a = f(a, c, l, p, h[s + 13], 12, -40341101), p = f(p, a, c, l, h[s + 14], 17, -1502002290), l = f(l, p, a, c, h[s + 15], 22, 1236535329), c = y(c, l, p, a, h[s + 1], 5, -165796510), a = y(a, c, l, p, h[s + 6], 9, -1069501632), p = y(p, a, c, l, h[s + 11], 14, 643717713), l = y(l, p, a, c, h[s + 0], 20, -373897302), c = y(c, l, p, a, h[s + 5], 5, -701558691), a = y(a, c, l, p, h[s + 10], 9, 38016083), p = y(p, a, c, l, h[s + 15], 14, -660478335), l = y(l, p, a, c, h[s + 4], 20, -405537848), c = y(c, l, p, a, h[s + 9], 5, 568446438), a = y(a, c, l, p, h[s + 14], 9, -1019803690), p = y(p, a, c, l, h[s + 3], 14, -187363961), l = y(l, p, a, c, h[s + 8], 20, 1163531501), c = y(c, l, p, a, h[s + 13], 5, -1444681467), a = y(a, c, l, p, h[s + 2], 9, -51403784), p = y(p, a, c, l, h[s + 7], 14, 1735328473), l = y(l, p, a, c, h[s + 12], 20, -1926607734), c = g(c, l, p, a, h[s + 5], 4, -378558), a = g(a, c, l, p, h[s + 8], 11, -2022574463), p = g(p, a, c, l, h[s + 11], 16, 1839030562), l = g(l, p, a, c, h[s + 14], 23, -35309556), c = g(c, l, p, a, h[s + 1], 4, -1530992060), a = g(a, c, l, p, h[s + 4], 11, 1272893353), p = g(p, a, c, l, h[s + 7], 16, -155497632), l = g(l, p, a, c, h[s + 10], 23, -1094730640), c = g(c, l, p, a, h[s + 13], 4, 681279174), a = g(a, c, l, p, h[s + 0], 11, -358537222), p = g(p, a, c, l, h[s + 3], 16, -722521979), l = g(l, p, a, c, h[s + 6], 23, 76029189), c = g(c, l, p, a, h[s + 9], 4, -640364487), a = g(a, c, l, p, h[s + 12], 11, -421815835), p = g(p, a, c, l, h[s + 15], 16, 530742520), l = g(l, p, a, c, h[s + 2], 23, -995338651), c = C(c, l, p, a, h[s + 0], 6, -198630844), a = C(a, c, l, p, h[s + 7], 10, 1126891415), p = C(p, a, c, l, h[s + 14], 15, -1416354905), l = C(l, p, a, c, h[s + 5], 21, -57434055), c = C(c, l, p, a, h[s + 12], 6, 1700485571), a = C(a, c, l, p, h[s + 3], 10, -1894986606), p = C(p, a, c, l, h[s + 10], 15, -1051523), l = C(l, p, a, c, h[s + 1], 21, -2054922799), c = C(c, l, p, a, h[s + 8], 6, 1873313359), a = C(a, c, l, p, h[s + 15], 10, -30611744), p = C(p, a, c, l, h[s + 6], 15, -1560198380), l = C(l, p, a, c, h[s + 13], 21, 1309151649), c = C(c, l, p, a, h[s + 4], 6, -145523070), a = C(a, c, l, p, h[s + 11], 10, -1120210379), p = C(p, a, c, l, h[s + 2], 15, 718787259), l = C(l, p, a, c, h[s + 9], 21, -343485551), c = c + B >>> 0, l = l + _ >>> 0, p = p + b >>> 0, a = a + S >>> 0;
125
125
  }
126
126
  return t.endian([c, l, p, a]);
127
127
  };
@@ -154,7 +154,7 @@ class Rt {
154
154
  if (n[e])
155
155
  return r ? JSON.parse(n[e]) : n[e];
156
156
  }
157
- if (typeof window < "u") {
157
+ if (typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.getItem == "function") {
158
158
  const n = window.sessionStorage.getItem(e);
159
159
  if (n)
160
160
  return r ? JSON.parse(n) : n;
@@ -312,15 +312,15 @@ function Dt(t, e, r) {
312
312
  for (var y = new Array(arguments.length), g = 0; g < y.length; g++)
313
313
  y[g] = arguments[g];
314
314
  y[0] = e.coerce(y[0]), typeof y[0] != "string" && y.unshift("%O");
315
- var w = 0;
315
+ var C = 0;
316
316
  y[0] = y[0].replace(/%([a-zA-Z%])/g, function(_, b) {
317
317
  if (_ === "%%")
318
318
  return _;
319
- w++;
319
+ C++;
320
320
  var S = e.formatters[b];
321
321
  if (typeof S == "function") {
322
- var m = y[w];
323
- _ = S.call(a, m), y.splice(w, 1), w--;
322
+ var m = y[C];
323
+ _ = S.call(a, m), y.splice(C, 1), C--;
324
324
  }
325
325
  return _;
326
326
  }), e.formatArgs.call(a, y);
@@ -549,7 +549,7 @@ var Wt = {}, Ye = { exports: {} };
549
549
  return !!this.listeners(n).length;
550
550
  };
551
551
  })(Ye);
552
- var wt = Ye.exports, Kt = {}, Vr = {}.toString, ve = Array.isArray || function(t) {
552
+ var Ct = Ye.exports, Kt = {}, Vr = {}.toString, ve = Array.isArray || function(t) {
553
553
  return Vr.call(t) == "[object Array]";
554
554
  }, Qe = Qr, $r = typeof Buffer == "function" && typeof Buffer.isBuffer == "function", Gr = typeof ArrayBuffer == "function", Yr = function(t) {
555
555
  return typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer;
@@ -620,7 +620,7 @@ Kt.removeBlobs = function(t, e) {
620
620
  r(o), n || e(o);
621
621
  };
622
622
  (function(t) {
623
- var e = lt("socket.io-parser"), r = wt, n = Kt, o = ve, i = Qe;
623
+ var e = lt("socket.io-parser"), r = Ct, n = Kt, o = ve, i = Qe;
624
624
  t.protocol = 4, t.types = [
625
625
  "CONNECT",
626
626
  "DISCONNECT",
@@ -633,24 +633,24 @@ Kt.removeBlobs = function(t, e) {
633
633
  function u() {
634
634
  }
635
635
  var h = t.ERROR + '"encode error"';
636
- u.prototype.encode = function(g, w) {
636
+ u.prototype.encode = function(g, C) {
637
637
  if (e("encoding packet %j", g), t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type)
638
- l(g, w);
638
+ l(g, C);
639
639
  else {
640
640
  var B = d(g);
641
- w([B]);
641
+ C([B]);
642
642
  }
643
643
  };
644
644
  function d(g) {
645
- var w = "" + g.type;
646
- if ((t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type) && (w += g.attachments + "-"), g.nsp && g.nsp !== "/" && (w += g.nsp + ","), g.id != null && (w += g.id), g.data != null) {
645
+ var C = "" + g.type;
646
+ if ((t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type) && (C += g.attachments + "-"), g.nsp && g.nsp !== "/" && (C += g.nsp + ","), g.id != null && (C += g.id), g.data != null) {
647
647
  var B = c(g.data);
648
648
  if (B !== !1)
649
- w += B;
649
+ C += B;
650
650
  else
651
651
  return h;
652
652
  }
653
- return e("encoded %j as %s", g, w), w;
653
+ return e("encoded %j as %s", g, C), C;
654
654
  }
655
655
  function c(g) {
656
656
  try {
@@ -659,10 +659,10 @@ Kt.removeBlobs = function(t, e) {
659
659
  return !1;
660
660
  }
661
661
  }
662
- function l(g, w) {
662
+ function l(g, C) {
663
663
  function B(_) {
664
664
  var b = n.deconstructPacket(_), S = d(b.packet), m = b.buffers;
665
- m.unshift(S), w(m);
665
+ m.unshift(S), C(m);
666
666
  }
667
667
  n.removeBlobs(g, B);
668
668
  }
@@ -670,59 +670,59 @@ Kt.removeBlobs = function(t, e) {
670
670
  this.reconstructor = null;
671
671
  }
672
672
  r(p.prototype), p.prototype.add = function(g) {
673
- var w;
673
+ var C;
674
674
  if (typeof g == "string") {
675
675
  if (this.reconstructor)
676
676
  throw new Error("got plaintext data when reconstructing a packet");
677
- w = a(g), t.BINARY_EVENT === w.type || t.BINARY_ACK === w.type ? (this.reconstructor = new f(w), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", w)) : this.emit("decoded", w);
677
+ C = a(g), t.BINARY_EVENT === C.type || t.BINARY_ACK === C.type ? (this.reconstructor = new f(C), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", C)) : this.emit("decoded", C);
678
678
  } else if (i(g) || g.base64)
679
679
  if (this.reconstructor)
680
- w = this.reconstructor.takeBinaryData(g), w && (this.reconstructor = null, this.emit("decoded", w));
680
+ C = this.reconstructor.takeBinaryData(g), C && (this.reconstructor = null, this.emit("decoded", C));
681
681
  else
682
682
  throw new Error("got binary data when not reconstructing a packet");
683
683
  else
684
684
  throw new Error("Unknown type: " + g);
685
685
  };
686
686
  function a(g) {
687
- var w = 0, B = {
687
+ var C = 0, B = {
688
688
  type: Number(g.charAt(0))
689
689
  };
690
690
  if (t.types[B.type] == null)
691
691
  return y("unknown packet type " + B.type);
692
692
  if (t.BINARY_EVENT === B.type || t.BINARY_ACK === B.type) {
693
- for (var _ = w + 1; g.charAt(++w) !== "-" && w != g.length; )
693
+ for (var _ = C + 1; g.charAt(++C) !== "-" && C != g.length; )
694
694
  ;
695
- var b = g.substring(_, w);
696
- if (b != Number(b) || g.charAt(w) !== "-")
695
+ var b = g.substring(_, C);
696
+ if (b != Number(b) || g.charAt(C) !== "-")
697
697
  throw new Error("Illegal attachments");
698
698
  B.attachments = Number(b);
699
699
  }
700
- if (g.charAt(w + 1) === "/") {
701
- for (var _ = w + 1; ++w; ) {
702
- var S = g.charAt(w);
703
- if (S === "," || w === g.length)
700
+ if (g.charAt(C + 1) === "/") {
701
+ for (var _ = C + 1; ++C; ) {
702
+ var S = g.charAt(C);
703
+ if (S === "," || C === g.length)
704
704
  break;
705
705
  }
706
- B.nsp = g.substring(_, w);
706
+ B.nsp = g.substring(_, C);
707
707
  } else
708
708
  B.nsp = "/";
709
- var m = g.charAt(w + 1);
709
+ var m = g.charAt(C + 1);
710
710
  if (m !== "" && Number(m) == m) {
711
- for (var _ = w + 1; ++w; ) {
712
- var S = g.charAt(w);
711
+ for (var _ = C + 1; ++C; ) {
712
+ var S = g.charAt(C);
713
713
  if (S == null || Number(S) != S) {
714
- --w;
714
+ --C;
715
715
  break;
716
716
  }
717
- if (w === g.length)
717
+ if (C === g.length)
718
718
  break;
719
719
  }
720
- B.id = Number(g.substring(_, w + 1));
720
+ B.id = Number(g.substring(_, C + 1));
721
721
  }
722
- if (g.charAt(++w)) {
723
- var C = s(g.substr(w)), E = C !== !1 && (B.type === t.ERROR || o(C));
722
+ if (g.charAt(++C)) {
723
+ var w = s(g.substr(C)), E = w !== !1 && (B.type === t.ERROR || o(w));
724
724
  if (E)
725
- B.data = C;
725
+ B.data = w;
726
726
  else
727
727
  return y("invalid payload");
728
728
  }
@@ -743,8 +743,8 @@ Kt.removeBlobs = function(t, e) {
743
743
  }
744
744
  f.prototype.takeBinaryData = function(g) {
745
745
  if (this.buffers.push(g), this.buffers.length === this.reconPack.attachments) {
746
- var w = n.reconstructPacket(this.reconPack, this.buffers);
747
- return this.finishedReconstruction(), w;
746
+ var C = n.reconstructPacket(this.reconPack, this.buffers);
747
+ return this.finishedReconstruction(), C;
748
748
  }
749
749
  return null;
750
750
  }, f.prototype.finishedReconstruction = function() {
@@ -763,9 +763,9 @@ try {
763
763
  } catch {
764
764
  de.exports = !1;
765
765
  }
766
- var en = de.exports, Ce = function() {
766
+ var en = de.exports, we = function() {
767
767
  return typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
768
- }(), rn = en, nn = Ce, we = function(t) {
768
+ }(), rn = en, nn = we, Ce = function(t) {
769
769
  var e = t.xdomain, r = t.xscheme, n = t.enablesXDR;
770
770
  try {
771
771
  if (typeof XMLHttpRequest < "u" && (!e || rn))
@@ -986,17 +986,17 @@ function bn() {
986
986
  upgrade: 5,
987
987
  noop: 6
988
988
  }, p = e(l), a = { type: "error", data: "parser error" }, s = bn();
989
- t.encodePacket = function(b, S, m, C) {
990
- typeof S == "function" && (C = S, S = !1), typeof m == "function" && (C = m, m = null);
989
+ t.encodePacket = function(b, S, m, w) {
990
+ typeof S == "function" && (w = S, S = !1), typeof m == "function" && (w = m, m = null);
991
991
  var E = b.data === void 0 ? void 0 : b.data.buffer || b.data;
992
992
  if (typeof ArrayBuffer < "u" && E instanceof ArrayBuffer)
993
- return y(b, S, C);
993
+ return y(b, S, w);
994
994
  if (typeof s < "u" && E instanceof s)
995
- return w(b, S, C);
995
+ return C(b, S, w);
996
996
  if (E && E.base64)
997
- return f(b, C);
997
+ return f(b, w);
998
998
  var v = l[b.type];
999
- return b.data !== void 0 && (v += m ? i.encode(String(b.data), { strict: !1 }) : String(b.data)), C("" + v);
999
+ return b.data !== void 0 && (v += m ? i.encode(String(b.data), { strict: !1 }) : String(b.data)), w("" + v);
1000
1000
  };
1001
1001
  function f(b, S) {
1002
1002
  var m = "b" + t.packets[b.type] + b.data.data;
@@ -1005,7 +1005,7 @@ function bn() {
1005
1005
  function y(b, S, m) {
1006
1006
  if (!S)
1007
1007
  return t.encodeBase64Packet(b, m);
1008
- var C = b.data, E = new Uint8Array(C), v = new Uint8Array(1 + C.byteLength);
1008
+ var w = b.data, E = new Uint8Array(w), v = new Uint8Array(1 + w.byteLength);
1009
1009
  v[0] = l[b.type];
1010
1010
  for (var k = 0; k < E.length; k++)
1011
1011
  v[k + 1] = E[k];
@@ -1014,29 +1014,29 @@ function bn() {
1014
1014
  function g(b, S, m) {
1015
1015
  if (!S)
1016
1016
  return t.encodeBase64Packet(b, m);
1017
- var C = new FileReader();
1018
- return C.onload = function() {
1019
- t.encodePacket({ type: b.type, data: C.result }, S, !0, m);
1020
- }, C.readAsArrayBuffer(b.data);
1017
+ var w = new FileReader();
1018
+ return w.onload = function() {
1019
+ t.encodePacket({ type: b.type, data: w.result }, S, !0, m);
1020
+ }, w.readAsArrayBuffer(b.data);
1021
1021
  }
1022
- function w(b, S, m) {
1022
+ function C(b, S, m) {
1023
1023
  if (!S)
1024
1024
  return t.encodeBase64Packet(b, m);
1025
1025
  if (c)
1026
1026
  return g(b, S, m);
1027
- var C = new Uint8Array(1);
1028
- C[0] = l[b.type];
1029
- var E = new s([C.buffer, b.data]);
1027
+ var w = new Uint8Array(1);
1028
+ w[0] = l[b.type];
1029
+ var E = new s([w.buffer, b.data]);
1030
1030
  return m(E);
1031
1031
  }
1032
1032
  t.encodeBase64Packet = function(b, S) {
1033
1033
  var m = "b" + t.packets[b.type];
1034
1034
  if (typeof s < "u" && b.data instanceof s) {
1035
- var C = new FileReader();
1036
- return C.onload = function() {
1037
- var x = C.result.split(",")[1];
1035
+ var w = new FileReader();
1036
+ return w.onload = function() {
1037
+ var x = w.result.split(",")[1];
1038
1038
  S(m + x);
1039
- }, C.readAsDataURL(b.data);
1039
+ }, w.readAsDataURL(b.data);
1040
1040
  }
1041
1041
  var E;
1042
1042
  try {
@@ -1058,7 +1058,7 @@ function bn() {
1058
1058
  var E = b.charAt(0);
1059
1059
  return Number(E) != E || !p[E] ? a : b.length > 1 ? { type: p[E], data: b.substring(1) } : { type: p[E] };
1060
1060
  }
1061
- var C = new Uint8Array(b), E = C[0], v = n(b, 1);
1061
+ var w = new Uint8Array(b), E = w[0], v = n(b, 1);
1062
1062
  return s && S === "blob" && (v = new s([v])), { type: p[E], data: v };
1063
1063
  };
1064
1064
  function B(b) {
@@ -1073,12 +1073,12 @@ function bn() {
1073
1073
  var m = p[b.charAt(0)];
1074
1074
  if (!u)
1075
1075
  return { type: m, data: { base64: !0, data: b.substr(1) } };
1076
- var C = u.decode(b.substr(1));
1077
- return S === "blob" && s && (C = new s([C])), { type: m, data: C };
1076
+ var w = u.decode(b.substr(1));
1077
+ return S === "blob" && s && (w = new s([w])), { type: m, data: w };
1078
1078
  }, t.encodePayload = function(b, S, m) {
1079
1079
  typeof S == "function" && (m = S, S = null);
1080
- var C = r(b);
1081
- if (S && C)
1080
+ var w = r(b);
1081
+ if (S && w)
1082
1082
  return s && !c ? t.encodePayloadAsBlob(b, m) : t.encodePayloadAsArrayBuffer(b, m);
1083
1083
  if (!b.length)
1084
1084
  return m("0:");
@@ -1086,7 +1086,7 @@ function bn() {
1086
1086
  return k.length + ":" + k;
1087
1087
  }
1088
1088
  function v(k, T) {
1089
- t.encodePacket(k, C ? S : !1, !1, function(x) {
1089
+ t.encodePacket(k, w ? S : !1, !1, function(x) {
1090
1090
  T(null, E(x));
1091
1091
  });
1092
1092
  }
@@ -1095,9 +1095,9 @@ function bn() {
1095
1095
  });
1096
1096
  };
1097
1097
  function _(b, S, m) {
1098
- for (var C = new Array(b.length), E = o(b.length, m), v = function(T, x, O) {
1098
+ for (var w = new Array(b.length), E = o(b.length, m), v = function(T, x, O) {
1099
1099
  S(x, function(A, q) {
1100
- C[T] = q, O(A, C);
1100
+ w[T] = q, O(A, w);
1101
1101
  });
1102
1102
  }, k = 0; k < b.length; k++)
1103
1103
  v(k, b[k], E);
@@ -1106,7 +1106,7 @@ function bn() {
1106
1106
  if (typeof b != "string")
1107
1107
  return t.decodePayloadAsBinary(b, S, m);
1108
1108
  typeof S == "function" && (m = S, S = null);
1109
- var C;
1109
+ var w;
1110
1110
  if (b === "")
1111
1111
  return m(a, 0, 1);
1112
1112
  for (var E = "", v, k, T = 0, x = b.length; T < x; T++) {
@@ -1118,9 +1118,9 @@ function bn() {
1118
1118
  if (E === "" || E != (v = Number(E)) || (k = b.substr(T + 1, v), E != k.length))
1119
1119
  return m(a, 0, 1);
1120
1120
  if (k.length) {
1121
- if (C = t.decodePacket(k, S, !1), a.type === C.type && a.data === C.data)
1121
+ if (w = t.decodePacket(k, S, !1), a.type === w.type && a.data === w.data)
1122
1122
  return m(a, 0, 1);
1123
- var A = m(C, T + v, x);
1123
+ var A = m(w, T + v, x);
1124
1124
  if (A === !1)
1125
1125
  return;
1126
1126
  }
@@ -1131,12 +1131,12 @@ function bn() {
1131
1131
  }, t.encodePayloadAsArrayBuffer = function(b, S) {
1132
1132
  if (!b.length)
1133
1133
  return S(new ArrayBuffer(0));
1134
- function m(C, E) {
1135
- t.encodePacket(C, !0, !0, function(v) {
1134
+ function m(w, E) {
1135
+ t.encodePacket(w, !0, !0, function(v) {
1136
1136
  return E(null, v);
1137
1137
  });
1138
1138
  }
1139
- _(b, m, function(C, E) {
1139
+ _(b, m, function(w, E) {
1140
1140
  var v = E.reduce(function(x, O) {
1141
1141
  var A;
1142
1142
  return typeof O == "string" ? A = O.length : A = O.byteLength, x + A.toString().length + A + 2;
@@ -1157,8 +1157,8 @@ function bn() {
1157
1157
  }), S(k.buffer);
1158
1158
  });
1159
1159
  }, t.encodePayloadAsBlob = function(b, S) {
1160
- function m(C, E) {
1161
- t.encodePacket(C, !0, !0, function(v) {
1160
+ function m(w, E) {
1161
+ t.encodePacket(w, !0, !0, function(v) {
1162
1162
  var k = new Uint8Array(1);
1163
1163
  if (k[0] = 1, typeof v == "string") {
1164
1164
  for (var T = new Uint8Array(v.length), x = 0; x < v.length; x++)
@@ -1173,19 +1173,19 @@ function bn() {
1173
1173
  }
1174
1174
  });
1175
1175
  }
1176
- _(b, m, function(C, E) {
1176
+ _(b, m, function(w, E) {
1177
1177
  return S(new s(E));
1178
1178
  });
1179
1179
  }, t.decodePayloadAsBinary = function(b, S, m) {
1180
1180
  typeof S == "function" && (m = S, S = null);
1181
- for (var C = b, E = []; C.byteLength > 0; ) {
1182
- for (var v = new Uint8Array(C), k = v[0] === 0, T = "", x = 1; v[x] !== 255; x++) {
1181
+ for (var w = b, E = []; w.byteLength > 0; ) {
1182
+ for (var v = new Uint8Array(w), k = v[0] === 0, T = "", x = 1; v[x] !== 255; x++) {
1183
1183
  if (T.length > 310)
1184
1184
  return m(a, 0, 1);
1185
1185
  T += v[x];
1186
1186
  }
1187
- C = n(C, 2 + T.length), T = parseInt(T);
1188
- var O = n(C, 0, T);
1187
+ w = n(w, 2 + T.length), T = parseInt(T);
1188
+ var O = n(w, 0, T);
1189
1189
  if (k)
1190
1190
  try {
1191
1191
  O = String.fromCharCode.apply(null, new Uint8Array(O));
@@ -1195,7 +1195,7 @@ function bn() {
1195
1195
  for (var x = 0; x < A.length; x++)
1196
1196
  O += String.fromCharCode(A[x]);
1197
1197
  }
1198
- E.push(O), C = n(C, T);
1198
+ E.push(O), w = n(w, T);
1199
1199
  }
1200
1200
  var q = E.length;
1201
1201
  E.forEach(function(j, $) {
@@ -1208,7 +1208,7 @@ function Ee() {
1208
1208
  if (De)
1209
1209
  return se;
1210
1210
  De = 1;
1211
- var t = vt, e = wt;
1211
+ var t = vt, e = Ct;
1212
1212
  se = r;
1213
1213
  function r(n) {
1214
1214
  this.path = n.path, this.hostname = n.hostname, this.port = n.port, this.secure = n.secure, this.query = n.query, this.timestampParam = n.timestampParam, this.timestampRequests = n.timestampRequests, this.readyState = "", this.agent = n.agent || !1, this.socket = n.socket, this.enablesXDR = n.enablesXDR, this.withCredentials = n.withCredentials, this.pfx = n.pfx, this.key = n.key, this.passphrase = n.passphrase, this.cert = n.cert, this.ca = n.ca, this.ciphers = n.ciphers, this.rejectUnauthorized = n.rejectUnauthorized, this.forceNode = n.forceNode, this.isReactNative = n.isReactNative, this.extraHeaders = n.extraHeaders, this.localAddress = n.localAddress;
@@ -1262,7 +1262,7 @@ function ye(t) {
1262
1262
  while (t > 0);
1263
1263
  return e;
1264
1264
  }
1265
- function Cn(t) {
1265
+ function wn(t) {
1266
1266
  var e = 0;
1267
1267
  for (gt = 0; gt < t.length; gt++)
1268
1268
  e = e * zt + ir[t.charAt(gt)];
@@ -1275,9 +1275,9 @@ function Ae() {
1275
1275
  for (; gt < zt; gt++)
1276
1276
  ir[sr[gt]] = gt;
1277
1277
  Ae.encode = ye;
1278
- Ae.decode = Cn;
1279
- var ar = Ae, cr = Ee(), wn = St, hr = vt, Sn = Jt, En = ar, ht = lt("engine.io-client:polling"), pr = pt, An = function() {
1280
- var t = we, e = new t({ xdomain: !1 });
1278
+ Ae.decode = wn;
1279
+ var ar = Ae, cr = Ee(), Cn = St, hr = vt, Sn = Jt, En = ar, ht = lt("engine.io-client:polling"), pr = pt, An = function() {
1280
+ var t = Ce, e = new t({ xdomain: !1 });
1281
1281
  return e.responseType != null;
1282
1282
  }();
1283
1283
  function pt(t) {
@@ -1337,11 +1337,11 @@ pt.prototype.write = function(t) {
1337
1337
  };
1338
1338
  pt.prototype.uri = function() {
1339
1339
  var t = this.query || {}, e = this.secure ? "https" : "http", r = "";
1340
- this.timestampRequests !== !1 && (t[this.timestampParam] = En()), !this.supportsBinary && !t.sid && (t.b64 = 1), t = wn.encode(t), this.port && (e === "https" && Number(this.port) !== 443 || e === "http" && Number(this.port) !== 80) && (r = ":" + this.port), t.length && (t = "?" + t);
1340
+ this.timestampRequests !== !1 && (t[this.timestampParam] = En()), !this.supportsBinary && !t.sid && (t.b64 = 1), t = Cn.encode(t), this.port && (e === "https" && Number(this.port) !== 443 || e === "http" && Number(this.port) !== 80) && (r = ":" + this.port), t.length && (t = "?" + t);
1341
1341
  var n = this.hostname.indexOf(":") !== -1;
1342
1342
  return e + "://" + (n ? "[" + this.hostname + "]" : this.hostname) + r + this.path + t;
1343
1343
  };
1344
- var Tn = we, ur = pr, Nn = wt, xn = Jt, ge = lt("engine.io-client:polling-xhr"), On = Ce;
1344
+ var Tn = Ce, ur = pr, Nn = Ct, xn = Jt, ge = lt("engine.io-client:polling-xhr"), On = we;
1345
1345
  Se.exports = Et;
1346
1346
  Se.exports.Request = Y;
1347
1347
  function je() {
@@ -1475,7 +1475,7 @@ function Me() {
1475
1475
  for (var t in Y.requests)
1476
1476
  Y.requests.hasOwnProperty(t) && Y.requests[t].abort();
1477
1477
  }
1478
- var In = Se.exports, Te = pr, Bn = Jt, qe = Ce, _n = At, Ln = /\n/g, Un = /\\n/g, Pt;
1478
+ var In = Se.exports, Te = pr, Bn = Jt, qe = we, _n = At, Ln = /\n/g, Un = /\\n/g, Pt;
1479
1479
  function Dn() {
1480
1480
  }
1481
1481
  function At(t) {
@@ -1551,10 +1551,10 @@ if (typeof window > "u")
1551
1551
  xe = jn;
1552
1552
  } catch {
1553
1553
  }
1554
- var Ct = Xt || xe, Kn = st;
1554
+ var wt = Xt || xe, Kn = st;
1555
1555
  function st(t) {
1556
1556
  var e = t && t.forceBase64;
1557
- e && (this.supportsBinary = !1), this.perMessageDeflate = t.perMessageDeflate, this.usingBrowserWebSocket = Xt && !t.forceNode, this.protocols = t.protocols, this.usingBrowserWebSocket || (Ct = xe), Ne.call(this, t);
1557
+ e && (this.supportsBinary = !1), this.perMessageDeflate = t.perMessageDeflate, this.usingBrowserWebSocket = Xt && !t.forceNode, this.protocols = t.protocols, this.usingBrowserWebSocket || (wt = xe), Ne.call(this, t);
1558
1558
  }
1559
1559
  zn(st, Ne);
1560
1560
  st.prototype.name = "websocket";
@@ -1564,7 +1564,7 @@ st.prototype.doOpen = function() {
1564
1564
  var t = this.uri(), e = this.protocols, r = {};
1565
1565
  this.isReactNative || (r.agent = this.agent, r.perMessageDeflate = this.perMessageDeflate, r.pfx = this.pfx, r.key = this.key, r.passphrase = this.passphrase, r.cert = this.cert, r.ca = this.ca, r.ciphers = this.ciphers, r.rejectUnauthorized = this.rejectUnauthorized), this.extraHeaders && (r.headers = this.extraHeaders), this.localAddress && (r.localAddress = this.localAddress);
1566
1566
  try {
1567
- this.ws = this.usingBrowserWebSocket && !this.isReactNative ? e ? new Ct(t, e) : new Ct(t) : new Ct(t, e, r);
1567
+ this.ws = this.usingBrowserWebSocket && !this.isReactNative ? e ? new wt(t, e) : new wt(t) : new wt(t, e, r);
1568
1568
  } catch (n) {
1569
1569
  return this.emit("error", n);
1570
1570
  }
@@ -1623,9 +1623,9 @@ st.prototype.uri = function() {
1623
1623
  return e + "://" + (n ? "[" + this.hostname + "]" : this.hostname) + r + this.path + t;
1624
1624
  };
1625
1625
  st.prototype.check = function() {
1626
- return !!Ct && !("__initialize" in Ct && this.name === st.prototype.name);
1626
+ return !!wt && !("__initialize" in wt && this.name === st.prototype.name);
1627
1627
  };
1628
- var Hn = we, Jn = In, Vn = _n, $n = Kn;
1628
+ var Hn = Ce, Jn = In, Vn = _n, $n = Kn;
1629
1629
  Ht.polling = Gn;
1630
1630
  Ht.websocket = $n;
1631
1631
  function Gn(t) {
@@ -1647,7 +1647,7 @@ var Yn = [].indexOf, lr = function(t, e) {
1647
1647
  if (t[r] === e)
1648
1648
  return r;
1649
1649
  return -1;
1650
- }, Qn = Ht, Zn = wt, G = lt("engine.io-client:socket"), to = lr, fr = vt, ze = Ge, eo = St, ro = W;
1650
+ }, Qn = Ht, Zn = Ct, G = lt("engine.io-client:socket"), to = lr, fr = vt, ze = Ge, eo = St, ro = W;
1651
1651
  function W(t, e) {
1652
1652
  if (!(this instanceof W))
1653
1653
  return new W(t, e);
@@ -1914,7 +1914,7 @@ var Xe = [].slice, gr = function(t, e) {
1914
1914
  };
1915
1915
  };
1916
1916
  (function(t, e) {
1917
- var r = Wt, n = wt, o = so, i = yr, u = gr, h = lt("socket.io-client:socket"), d = St, c = rr;
1917
+ var r = Wt, n = Ct, o = so, i = yr, u = gr, h = lt("socket.io-client:socket"), d = St, c = rr;
1918
1918
  t.exports = a;
1919
1919
  var l = {
1920
1920
  connect: 1,
@@ -2062,7 +2062,7 @@ Tt.prototype.setMax = function(t) {
2062
2062
  Tt.prototype.setJitter = function(t) {
2063
2063
  this.jitter = t;
2064
2064
  };
2065
- var ho = oo, po = mr, uo = wt, lo = Wt, ft = yr, bt = gr, Z = lt("socket.io-client:manager"), vr = lr, fo = co, kr = Object.prototype.hasOwnProperty, We = K;
2065
+ var ho = oo, po = mr, uo = Ct, lo = Wt, ft = yr, bt = gr, Z = lt("socket.io-client:manager"), vr = lr, fo = co, kr = Object.prototype.hasOwnProperty, We = K;
2066
2066
  function K(t, e) {
2067
2067
  if (!(this instanceof K))
2068
2068
  return new K(t, e);
@@ -2258,7 +2258,7 @@ function ko(t, e = 0) {
2258
2258
  const bo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ke = {
2259
2259
  randomUUID: bo
2260
2260
  };
2261
- function Co(t, e, r) {
2261
+ function wo(t, e, r) {
2262
2262
  if (Ke.randomUUID && !e && !t)
2263
2263
  return Ke.randomUUID();
2264
2264
  t = t || {};
@@ -2271,7 +2271,7 @@ function Co(t, e, r) {
2271
2271
  }
2272
2272
  return ko(n);
2273
2273
  }
2274
- function wo(t, e) {
2274
+ function Co(t, e) {
2275
2275
  const r = e.map((o) => JSON.stringify(o)).join(" "), n = (/* @__PURE__ */ new Date()).toISOString();
2276
2276
  return JSON.stringify({
2277
2277
  level: t,
@@ -2397,7 +2397,7 @@ class xo {
2397
2397
  * @return void
2398
2398
  */
2399
2399
  setupStorageFunctions(e, r, n) {
2400
- this.getItem = e && typeof e == "function" ? this.isGetItemAsync ? e : He(e) : this.defaultGetItemFunction, this.setItem = r && typeof r == "function" ? this.isSetItemAsync ? r : He(r) : this.defaultSetItemFunction, this.parseLog = n && typeof n == "function" ? n : wo;
2400
+ this.getItem = e && typeof e == "function" ? this.isGetItemAsync ? e : He(e) : this.defaultGetItemFunction, this.setItem = r && typeof r == "function" ? this.isSetItemAsync ? r : He(r) : this.defaultSetItemFunction, this.parseLog = n && typeof n == "function" ? n : Co;
2401
2401
  }
2402
2402
  /**
2403
2403
  * Used to initialize logger. Initializes storage, establishes socket connection and overloads console if needed
@@ -2552,7 +2552,7 @@ class xo {
2552
2552
  * @return string
2553
2553
  */
2554
2554
  getStorageName() {
2555
- const e = Co();
2555
+ const e = wo();
2556
2556
  return this.system.toString().toUpperCase() + e + Date.now();
2557
2557
  }
2558
2558
  /**
@@ -2973,11 +2973,11 @@ function Io() {
2973
2973
  f.maybeReconnectOnOpen();
2974
2974
  });
2975
2975
  if (this._timeout !== !1) {
2976
- var w = this._timeout;
2977
- c("connect attempt will timeout after %d", w);
2976
+ var C = this._timeout;
2977
+ c("connect attempt will timeout after %d", C);
2978
2978
  var B = setTimeout(function() {
2979
- c("connect attempt timed out after %d", w), y.destroy(), s.close(), s.emit("error", "timeout"), f.emitAll("connect_timeout", w);
2980
- }, w);
2979
+ c("connect attempt timed out after %d", C), y.destroy(), s.close(), s.emit("error", "timeout"), f.emitAll("connect_timeout", C);
2980
+ }, C);
2981
2981
  this.subs.push({
2982
2982
  destroy: function() {
2983
2983
  clearTimeout(B);
@@ -3151,8 +3151,8 @@ function Io() {
3151
3151
  y = !0;
3152
3152
  var g = u(arguments);
3153
3153
  c("sending ack %j", g);
3154
- var w = l(g) ? o.BINARY_ACK : o.ACK;
3155
- f.packet({ type: w, id: s, data: g });
3154
+ var C = l(g) ? o.BINARY_ACK : o.ACK;
3155
+ f.packet({ type: C, id: s, data: g });
3156
3156
  }
3157
3157
  };
3158
3158
  }, n.prototype.onack = function(s) {
@@ -3402,8 +3402,8 @@ function Io() {
3402
3402
  });
3403
3403
  }, n.prototype.probe = function(s) {
3404
3404
  function f() {
3405
- if (C.onlyBinaryUpgrades) {
3406
- var E = !this.supportsBinary && C.transport.supportsBinary;
3405
+ if (w.onlyBinaryUpgrades) {
3406
+ var E = !this.supportsBinary && w.transport.supportsBinary;
3407
3407
  m = m || E;
3408
3408
  }
3409
3409
  m || (h('probe transport "%s" opened', s), S.send([{
@@ -3412,15 +3412,15 @@ function Io() {
3412
3412
  }]), S.once("packet", function(v) {
3413
3413
  if (!m)
3414
3414
  if (v.type == "pong" && v.data == "probe") {
3415
- if (h('probe transport "%s" pong', s), C.upgrading = !0, C.emit("upgrading", S), !S)
3415
+ if (h('probe transport "%s" pong', s), w.upgrading = !0, w.emit("upgrading", S), !S)
3416
3416
  return;
3417
- n.priorWebsocketSuccess = S.name == "websocket", h('pausing current transport "%s"', C.transport.name), C.transport.pause(function() {
3418
- m || C.readyState != "closed" && (h("changing transport and sending upgrade packet"), b(), C.setTransport(S), S.send([{ type: "upgrade" }]), C.emit("upgrade", S), S = null, C.upgrading = !1, C.flush());
3417
+ n.priorWebsocketSuccess = S.name == "websocket", h('pausing current transport "%s"', w.transport.name), w.transport.pause(function() {
3418
+ m || w.readyState != "closed" && (h("changing transport and sending upgrade packet"), b(), w.setTransport(S), S.send([{ type: "upgrade" }]), w.emit("upgrade", S), S = null, w.upgrading = !1, w.flush());
3419
3419
  });
3420
3420
  } else {
3421
3421
  h('probe transport "%s" failed', s);
3422
3422
  var k = new Error("probe error");
3423
- k.transport = S.name, C.emit("upgradeError", k);
3423
+ k.transport = S.name, w.emit("upgradeError", k);
3424
3424
  }
3425
3425
  }));
3426
3426
  }
@@ -3429,9 +3429,9 @@ function Io() {
3429
3429
  }
3430
3430
  function g(E) {
3431
3431
  var v = new Error("probe error: " + E);
3432
- v.transport = S.name, y(), h('probe transport "%s" failed because of error: %s', s, E), C.emit("upgradeError", v);
3432
+ v.transport = S.name, y(), h('probe transport "%s" failed because of error: %s', s, E), w.emit("upgradeError", v);
3433
3433
  }
3434
- function w() {
3434
+ function C() {
3435
3435
  g("transport closed");
3436
3436
  }
3437
3437
  function B() {
@@ -3441,11 +3441,11 @@ function Io() {
3441
3441
  S && E.name != S.name && (h('"%s" works - aborting "%s"', E.name, S.name), y());
3442
3442
  }
3443
3443
  function b() {
3444
- S.removeListener("open", f), S.removeListener("error", g), S.removeListener("close", w), C.removeListener("close", B), C.removeListener("upgrading", _);
3444
+ S.removeListener("open", f), S.removeListener("error", g), S.removeListener("close", C), w.removeListener("close", B), w.removeListener("upgrading", _);
3445
3445
  }
3446
3446
  h('probing transport "%s"', s);
3447
- var S = this.createTransport(s, { probe: 1 }), m = !1, C = this;
3448
- n.priorWebsocketSuccess = !1, S.once("open", f), S.once("error", g), S.once("close", w), this.once("close", B), this.once("upgrading", _), S.open();
3447
+ var S = this.createTransport(s, { probe: 1 }), m = !1, w = this;
3448
+ n.priorWebsocketSuccess = !1, S.once("open", f), S.once("error", g), S.once("close", C), this.once("close", B), this.once("upgrading", _), S.open();
3449
3449
  }, n.prototype.onOpen = function() {
3450
3450
  if (h("socket open"), this.readyState = "open", n.priorWebsocketSuccess = this.transport.name == "websocket", this.emit("open"), this.flush(), this.readyState == "open" && this.upgrade && this.transport.pause) {
3451
3451
  h("starting upgrade probes");
@@ -3639,8 +3639,8 @@ function Io() {
3639
3639
  }
3640
3640
  var f = this;
3641
3641
  if (!this.form) {
3642
- var y, g = document.createElement("form"), w = document.createElement("textarea"), B = this.iframeId = "eio_iframe_" + this.index;
3643
- g.className = "socketio", g.style.position = "absolute", g.style.top = "-1000px", g.style.left = "-1000px", g.target = B, g.method = "POST", g.setAttribute("accept-charset", "utf-8"), w.name = "d", g.appendChild(w), document.body.appendChild(g), this.form = g, this.area = w;
3642
+ var y, g = document.createElement("form"), C = document.createElement("textarea"), B = this.iframeId = "eio_iframe_" + this.index;
3643
+ g.className = "socketio", g.style.position = "absolute", g.style.top = "-1000px", g.style.left = "-1000px", g.target = B, g.method = "POST", g.setAttribute("accept-charset", "utf-8"), C.name = "d", g.appendChild(C), document.body.appendChild(g), this.form = g, this.area = C;
3644
3644
  }
3645
3645
  this.form.action = this.uri(), s(), l = l.replace(c, `\\
3646
3646
  `), this.area.value = l.replace(d, "\\n");
@@ -3676,8 +3676,8 @@ function Io() {
3676
3676
  return a = a || {}, a.uri = this.uri(), a.xd = this.xd, a.xs = this.xs, a.agent = this.agent || !1, a.supportsBinary = this.supportsBinary, a.enablesXDR = this.enablesXDR, a.pfx = this.pfx, a.key = this.key, a.passphrase = this.passphrase, a.cert = this.cert, a.ca = this.ca, a.ciphers = this.ciphers, a.rejectUnauthorized = this.rejectUnauthorized, new i(a);
3677
3677
  }, o.prototype.doWrite = function(a, s) {
3678
3678
  var f = typeof a != "string" && a !== void 0, y = this.request({ method: "POST", data: a, isBinary: f }), g = this;
3679
- y.on("success", s), y.on("error", function(w) {
3680
- g.onError("xhr post error", w);
3679
+ y.on("success", s), y.on("error", function(C) {
3680
+ g.onError("xhr post error", C);
3681
3681
  }), this.sendXhr = y;
3682
3682
  }, o.prototype.doPoll = function() {
3683
3683
  p("xhr poll");
@@ -3935,8 +3935,8 @@ function Io() {
3935
3935
  function a() {
3936
3936
  }
3937
3937
  function s() {
3938
- var y = s, g = +/* @__PURE__ */ new Date(), w = g - (c || g);
3939
- y.diff = w, y.prev = c, y.curr = g, c = g, y.useColors == null && (y.useColors = r.useColors()), y.color == null && y.useColors && (y.color = n());
3938
+ var y = s, g = +/* @__PURE__ */ new Date(), C = g - (c || g);
3939
+ y.diff = C, y.prev = c, y.curr = g, c = g, y.useColors == null && (y.useColors = r.useColors()), y.color == null && y.useColors && (y.color = n());
3940
3940
  var B = Array.prototype.slice.call(arguments);
3941
3941
  B[0] = r.coerce(B[0]), typeof B[0] != "string" && (B = ["%o"].concat(B));
3942
3942
  var _ = 0;
@@ -3944,10 +3944,10 @@ function Io() {
3944
3944
  if (S === "%%")
3945
3945
  return S;
3946
3946
  _++;
3947
- var C = r.formatters[m];
3948
- if (typeof C == "function") {
3947
+ var w = r.formatters[m];
3948
+ if (typeof w == "function") {
3949
3949
  var E = B[_];
3950
- S = C.call(y, E), B.splice(_, 1), _--;
3950
+ S = w.call(y, E), B.splice(_, 1), _--;
3951
3951
  }
3952
3952
  return S;
3953
3953
  }), typeof r.formatArgs == "function" && (B = r.formatArgs.apply(y, B));
@@ -4029,12 +4029,12 @@ function Io() {
4029
4029
  }, {}],
4030
4030
  25: [function(t, e, r) {
4031
4031
  (function(n) {
4032
- function o(m, C) {
4032
+ function o(m, w) {
4033
4033
  var E = "b" + r.packets[m.type] + m.data.data;
4034
- return C(E);
4034
+ return w(E);
4035
4035
  }
4036
- function i(m, C, E) {
4037
- if (!C)
4036
+ function i(m, w, E) {
4037
+ if (!w)
4038
4038
  return r.encodeBase64Packet(m, E);
4039
4039
  var v = m.data, k = new Uint8Array(v), T = new Uint8Array(1 + v.byteLength);
4040
4040
  T[0] = B[m.type];
@@ -4042,53 +4042,53 @@ function Io() {
4042
4042
  T[x + 1] = k[x];
4043
4043
  return E(T.buffer);
4044
4044
  }
4045
- function u(m, C, E) {
4046
- if (!C)
4045
+ function u(m, w, E) {
4046
+ if (!w)
4047
4047
  return r.encodeBase64Packet(m, E);
4048
4048
  var v = new FileReader();
4049
4049
  return v.onload = function() {
4050
- m.data = v.result, r.encodePacket(m, C, !0, E);
4050
+ m.data = v.result, r.encodePacket(m, w, !0, E);
4051
4051
  }, v.readAsArrayBuffer(m.data);
4052
4052
  }
4053
- function h(m, C, E) {
4054
- if (!C)
4053
+ function h(m, w, E) {
4054
+ if (!w)
4055
4055
  return r.encodeBase64Packet(m, E);
4056
- if (w)
4057
- return u(m, C, E);
4056
+ if (C)
4057
+ return u(m, w, E);
4058
4058
  var v = new Uint8Array(1);
4059
4059
  v[0] = B[m.type];
4060
4060
  var k = new S([v.buffer, m.data]);
4061
4061
  return E(k);
4062
4062
  }
4063
- function d(m, C, E) {
4063
+ function d(m, w, E) {
4064
4064
  for (var v = new Array(m.length), k = s(m.length, E), T = function(O, A, q) {
4065
- C(A, function(j, $) {
4065
+ w(A, function(j, $) {
4066
4066
  v[O] = $, q(j, v);
4067
4067
  });
4068
4068
  }, x = 0; x < m.length; x++)
4069
4069
  T(x, m[x], k);
4070
4070
  }
4071
- var c = t("./keys"), l = t("has-binary"), p = t("arraybuffer.slice"), a = t("base64-arraybuffer"), s = t("after"), f = t("utf8"), y = navigator.userAgent.match(/Android/i), g = /PhantomJS/i.test(navigator.userAgent), w = y || g;
4071
+ var c = t("./keys"), l = t("has-binary"), p = t("arraybuffer.slice"), a = t("base64-arraybuffer"), s = t("after"), f = t("utf8"), y = navigator.userAgent.match(/Android/i), g = /PhantomJS/i.test(navigator.userAgent), C = y || g;
4072
4072
  r.protocol = 3;
4073
4073
  var B = r.packets = { open: 0, close: 1, ping: 2, pong: 3, message: 4, upgrade: 5, noop: 6 }, _ = c(B), b = { type: "error", data: "parser error" }, S = t("blob");
4074
- r.encodePacket = function(m, C, E, v) {
4075
- typeof C == "function" && (v = C, C = !1), typeof E == "function" && (v = E, E = null);
4074
+ r.encodePacket = function(m, w, E, v) {
4075
+ typeof w == "function" && (v = w, w = !1), typeof E == "function" && (v = E, E = null);
4076
4076
  var k = m.data === void 0 ? void 0 : m.data.buffer || m.data;
4077
4077
  if (n.ArrayBuffer && k instanceof ArrayBuffer)
4078
- return i(m, C, v);
4078
+ return i(m, w, v);
4079
4079
  if (S && k instanceof n.Blob)
4080
- return h(m, C, v);
4080
+ return h(m, w, v);
4081
4081
  if (k && k.base64)
4082
4082
  return o(m, v);
4083
4083
  var T = B[m.type];
4084
4084
  return m.data !== void 0 && (T += E ? f.encode(String(m.data)) : String(m.data)), v("" + T);
4085
- }, r.encodeBase64Packet = function(m, C) {
4085
+ }, r.encodeBase64Packet = function(m, w) {
4086
4086
  var E = "b" + r.packets[m.type];
4087
4087
  if (S && m.data instanceof S) {
4088
4088
  var v = new FileReader();
4089
4089
  return v.onload = function() {
4090
4090
  var A = v.result.split(",")[1];
4091
- C(E + A);
4091
+ w(E + A);
4092
4092
  }, v.readAsDataURL(m.data);
4093
4093
  }
4094
4094
  var k;
@@ -4099,11 +4099,11 @@ function Io() {
4099
4099
  x[O] = T[O];
4100
4100
  k = String.fromCharCode.apply(null, x);
4101
4101
  }
4102
- return E += n.btoa(k), C(E);
4103
- }, r.decodePacket = function(m, C, E) {
4102
+ return E += n.btoa(k), w(E);
4103
+ }, r.decodePacket = function(m, w, E) {
4104
4104
  if (typeof m == "string" || m === void 0) {
4105
4105
  if (m.charAt(0) == "b")
4106
- return r.decodeBase64Packet(m.substr(1), C);
4106
+ return r.decodeBase64Packet(m.substr(1), w);
4107
4107
  if (E)
4108
4108
  try {
4109
4109
  m = f.decode(m);
@@ -4117,31 +4117,31 @@ function Io() {
4117
4117
  } : { type: _[k] } : b;
4118
4118
  }
4119
4119
  var v = new Uint8Array(m), k = v[0], T = p(m, 1);
4120
- return S && C === "blob" && (T = new S([T])), { type: _[k], data: T };
4121
- }, r.decodeBase64Packet = function(m, C) {
4120
+ return S && w === "blob" && (T = new S([T])), { type: _[k], data: T };
4121
+ }, r.decodeBase64Packet = function(m, w) {
4122
4122
  var E = _[m.charAt(0)];
4123
4123
  if (!n.ArrayBuffer)
4124
4124
  return { type: E, data: { base64: !0, data: m.substr(1) } };
4125
4125
  var v = a.decode(m.substr(1));
4126
- return C === "blob" && S && (v = new S([v])), { type: E, data: v };
4127
- }, r.encodePayload = function(m, C, E) {
4126
+ return w === "blob" && S && (v = new S([v])), { type: E, data: v };
4127
+ }, r.encodePayload = function(m, w, E) {
4128
4128
  function v(x) {
4129
4129
  return x.length + ":" + x;
4130
4130
  }
4131
4131
  function k(x, O) {
4132
- r.encodePacket(x, T ? C : !1, !0, function(A) {
4132
+ r.encodePacket(x, T ? w : !1, !0, function(A) {
4133
4133
  O(null, v(A));
4134
4134
  });
4135
4135
  }
4136
- typeof C == "function" && (E = C, C = null);
4136
+ typeof w == "function" && (E = w, w = null);
4137
4137
  var T = l(m);
4138
- return C && T ? S && !w ? r.encodePayloadAsBlob(m, E) : r.encodePayloadAsArrayBuffer(m, E) : m.length ? void d(m, k, function(x, O) {
4138
+ return w && T ? S && !C ? r.encodePayloadAsBlob(m, E) : r.encodePayloadAsArrayBuffer(m, E) : m.length ? void d(m, k, function(x, O) {
4139
4139
  return E(O.join(""));
4140
4140
  }) : E("0:");
4141
- }, r.decodePayload = function(m, C, E) {
4141
+ }, r.decodePayload = function(m, w, E) {
4142
4142
  if (typeof m != "string")
4143
- return r.decodePayloadAsBinary(m, C, E);
4144
- typeof C == "function" && (E = C, C = null);
4143
+ return r.decodePayloadAsBinary(m, w, E);
4144
+ typeof w == "function" && (E = w, w = null);
4145
4145
  var v;
4146
4146
  if (m == "")
4147
4147
  return E(b, 0, 1);
@@ -4153,7 +4153,7 @@ function Io() {
4153
4153
  if (x == "" || x != (k = Number(x)) || (T = m.substr(O + 1, k), x != T.length))
4154
4154
  return E(b, 0, 1);
4155
4155
  if (T.length) {
4156
- if (v = r.decodePacket(T, C, !0), b.type == v.type && b.data == v.data)
4156
+ if (v = r.decodePacket(T, w, !0), b.type == v.type && b.data == v.data)
4157
4157
  return E(b, 0, 1);
4158
4158
  var j = E(v, O + k, A);
4159
4159
  if (j === !1)
@@ -4163,7 +4163,7 @@ function Io() {
4163
4163
  }
4164
4164
  }
4165
4165
  return x != "" ? E(b, 0, 1) : void 0;
4166
- }, r.encodePayloadAsArrayBuffer = function(m, C) {
4166
+ }, r.encodePayloadAsArrayBuffer = function(m, w) {
4167
4167
  function E(v, k) {
4168
4168
  r.encodePacket(v, !0, !0, function(T) {
4169
4169
  return k(null, T);
@@ -4187,9 +4187,9 @@ function Io() {
4187
4187
  x[O++] = 255;
4188
4188
  for (var $ = new Uint8Array(j), X = 0; X < $.length; X++)
4189
4189
  x[O++] = $[X];
4190
- }), C(x.buffer);
4191
- }) : C(new ArrayBuffer(0));
4192
- }, r.encodePayloadAsBlob = function(m, C) {
4190
+ }), w(x.buffer);
4191
+ }) : w(new ArrayBuffer(0));
4192
+ }, r.encodePayloadAsBlob = function(m, w) {
4193
4193
  function E(v, k) {
4194
4194
  r.encodePacket(v, !0, !0, function(T) {
4195
4195
  var x = new Uint8Array(1);
@@ -4207,10 +4207,10 @@ function Io() {
4207
4207
  });
4208
4208
  }
4209
4209
  d(m, E, function(v, k) {
4210
- return C(new S(k));
4210
+ return w(new S(k));
4211
4211
  });
4212
- }, r.decodePayloadAsBinary = function(m, C, E) {
4213
- typeof C == "function" && (E = C, C = null);
4212
+ }, r.decodePayloadAsBinary = function(m, w, E) {
4213
+ typeof w == "function" && (E = w, w = null);
4214
4214
  for (var v = m, k = [], T = !1; v.byteLength > 0; ) {
4215
4215
  for (var x = new Uint8Array(v), O = x[0] === 0, A = "", q = 1; x[q] != 255; q++) {
4216
4216
  if (A.length > 310) {
@@ -4236,7 +4236,7 @@ function Io() {
4236
4236
  }
4237
4237
  var X = k.length;
4238
4238
  k.forEach(function(et, Nt) {
4239
- E(r.decodePacket(et, C, !0), Nt, X);
4239
+ E(r.decodePacket(et, w, !0), Nt, X);
4240
4240
  });
4241
4241
  };
4242
4242
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -4380,7 +4380,7 @@ function Io() {
4380
4380
  function p() {
4381
4381
  if (_ >= B)
4382
4382
  throw Error("Invalid byte index");
4383
- var v = 255 & w[_];
4383
+ var v = 255 & C[_];
4384
4384
  if (_++, (192 & v) == 128)
4385
4385
  return 63 & v;
4386
4386
  throw Error("Invalid continuation byte");
@@ -4391,7 +4391,7 @@ function Io() {
4391
4391
  throw Error("Invalid byte index");
4392
4392
  if (_ == B)
4393
4393
  return !1;
4394
- if (v = 255 & w[_], _++, (128 & v) == 0)
4394
+ if (v = 255 & C[_], _++, (128 & v) == 0)
4395
4395
  return v;
4396
4396
  if ((224 & v) == 192) {
4397
4397
  var k = p();
@@ -4409,21 +4409,21 @@ function Io() {
4409
4409
  throw Error("Invalid UTF-8 detected");
4410
4410
  }
4411
4411
  function s(v) {
4412
- w = i(v), B = w.length, _ = 0;
4412
+ C = i(v), B = C.length, _ = 0;
4413
4413
  for (var k, T = []; (k = a()) !== !1; )
4414
4414
  T.push(k);
4415
4415
  return u(T);
4416
4416
  }
4417
4417
  var f = typeof r == "object" && r, y = typeof e == "object" && e && e.exports == f && e, g = typeof n == "object" && n;
4418
4418
  (g.global === g || g.window === g) && (o = g);
4419
- var w, B, _, b = String.fromCharCode, S = { version: "2.0.0", encode: l, decode: s };
4419
+ var C, B, _, b = String.fromCharCode, S = { version: "2.0.0", encode: l, decode: s };
4420
4420
  if (f && !f.nodeType)
4421
4421
  if (y)
4422
4422
  y.exports = S;
4423
4423
  else {
4424
- var m = {}, C = m.hasOwnProperty;
4424
+ var m = {}, w = m.hasOwnProperty;
4425
4425
  for (var E in S)
4426
- C.call(S, E) && (f[E] = S[E]);
4426
+ w.call(S, E) && (f[E] = S[E]);
4427
4427
  }
4428
4428
  else
4429
4429
  o.utf8 = S;
@@ -4627,54 +4627,54 @@ function Io() {
4627
4627
  function n() {
4628
4628
  }
4629
4629
  function o(y) {
4630
- var g = "", w = !1;
4631
- return g += y.type, (r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type) && (g += y.attachments, g += "-"), y.nsp && y.nsp != "/" && (w = !0, g += y.nsp), y.id != null && (w && (g += ",", w = !1), g += y.id), y.data != null && (w && (g += ","), g += p.stringify(y.data)), l("encoded %j as %s", y, g), g;
4630
+ var g = "", C = !1;
4631
+ return g += y.type, (r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type) && (g += y.attachments, g += "-"), y.nsp && y.nsp != "/" && (C = !0, g += y.nsp), y.id != null && (C && (g += ",", C = !1), g += y.id), y.data != null && (C && (g += ","), g += p.stringify(y.data)), l("encoded %j as %s", y, g), g;
4632
4632
  }
4633
4633
  function i(y, g) {
4634
- function w(B) {
4634
+ function C(B) {
4635
4635
  var _ = s.deconstructPacket(B), b = o(_.packet), S = _.buffers;
4636
4636
  S.unshift(b), g(S);
4637
4637
  }
4638
- s.removeBlobs(y, w);
4638
+ s.removeBlobs(y, C);
4639
4639
  }
4640
4640
  function u() {
4641
4641
  this.reconstructor = null;
4642
4642
  }
4643
4643
  function h(y) {
4644
- var g = {}, w = 0;
4644
+ var g = {}, C = 0;
4645
4645
  if (g.type = Number(y.charAt(0)), r.types[g.type] == null)
4646
4646
  return c();
4647
4647
  if (r.BINARY_EVENT == g.type || r.BINARY_ACK == g.type) {
4648
- for (var B = ""; y.charAt(++w) != "-" && (B += y.charAt(w), w != y.length); )
4648
+ for (var B = ""; y.charAt(++C) != "-" && (B += y.charAt(C), C != y.length); )
4649
4649
  ;
4650
- if (B != Number(B) || y.charAt(w) != "-")
4650
+ if (B != Number(B) || y.charAt(C) != "-")
4651
4651
  throw new Error("Illegal attachments");
4652
4652
  g.attachments = Number(B);
4653
4653
  }
4654
- if (y.charAt(w + 1) == "/")
4655
- for (g.nsp = ""; ++w; ) {
4656
- var _ = y.charAt(w);
4657
- if (_ == "," || (g.nsp += _, w == y.length))
4654
+ if (y.charAt(C + 1) == "/")
4655
+ for (g.nsp = ""; ++C; ) {
4656
+ var _ = y.charAt(C);
4657
+ if (_ == "," || (g.nsp += _, C == y.length))
4658
4658
  break;
4659
4659
  }
4660
4660
  else
4661
4661
  g.nsp = "/";
4662
- var b = y.charAt(w + 1);
4662
+ var b = y.charAt(C + 1);
4663
4663
  if (b !== "" && Number(b) == b) {
4664
- for (g.id = ""; ++w; ) {
4665
- var _ = y.charAt(w);
4664
+ for (g.id = ""; ++C; ) {
4665
+ var _ = y.charAt(C);
4666
4666
  if (_ == null || Number(_) != _) {
4667
- --w;
4667
+ --C;
4668
4668
  break;
4669
4669
  }
4670
- if (g.id += y.charAt(w), w == y.length)
4670
+ if (g.id += y.charAt(C), C == y.length)
4671
4671
  break;
4672
4672
  }
4673
4673
  g.id = Number(g.id);
4674
4674
  }
4675
- if (y.charAt(++w))
4675
+ if (y.charAt(++C))
4676
4676
  try {
4677
- g.data = p.parse(y.substr(w));
4677
+ g.data = p.parse(y.substr(C));
4678
4678
  } catch {
4679
4679
  return c();
4680
4680
  }
@@ -4691,8 +4691,8 @@ function Io() {
4691
4691
  if (l("encoding packet %j", y), r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type)
4692
4692
  i(y, g);
4693
4693
  else {
4694
- var w = o(y);
4695
- g([w]);
4694
+ var C = o(y);
4695
+ g([C]);
4696
4696
  }
4697
4697
  }, a(u.prototype), u.prototype.add = function(y) {
4698
4698
  var g;
@@ -4798,7 +4798,7 @@ function Io() {
4798
4798
  } catch {
4799
4799
  }
4800
4800
  if (!o("json")) {
4801
- var a = "[object Function]", s = "[object Date]", f = "[object Number]", y = "[object String]", g = "[object Array]", w = "[object Boolean]", B = o("bug-string-char-index");
4801
+ var a = "[object Function]", s = "[object Date]", f = "[object Number]", y = "[object String]", g = "[object Array]", C = "[object Boolean]", B = o("bug-string-char-index");
4802
4802
  if (!p)
4803
4803
  var _ = Math.floor, b = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], S = function(R, U) {
4804
4804
  return b[U] + 365 * (R - 1970) + _((R - 1969 + (U = +(U > 1))) / 4) - _((R - 1901 + U) / 100) + _((R - 1601 + U) / 400);
@@ -4813,7 +4813,7 @@ function Io() {
4813
4813
  return F in this && !(F in N && this[F] === N[F]);
4814
4814
  }), I = null, i.call(this, R);
4815
4815
  });
4816
- var m = { boolean: 1, number: 1, string: 1, undefined: 1 }, C = function(R, U) {
4816
+ var m = { boolean: 1, number: 1, string: 1, undefined: 1 }, w = function(R, U) {
4817
4817
  var I = typeof R[U];
4818
4818
  return I == "object" ? !!R[U] : !m[I];
4819
4819
  };
@@ -4834,7 +4834,7 @@ function Io() {
4834
4834
  nt && M == "prototype" || !i.call(P, M) || (J = M === "constructor") || L(M);
4835
4835
  (J || i.call(P, M = "constructor")) && L(M);
4836
4836
  } : (F = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], u = function(P, L) {
4837
- var M, J, nt = d.call(P) == a, ot = !nt && typeof P.constructor != "function" && C(P, "hasOwnProperty") ? P.hasOwnProperty : i;
4837
+ var M, J, nt = d.call(P) == a, ot = !nt && typeof P.constructor != "function" && w(P, "hasOwnProperty") ? P.hasOwnProperty : i;
4838
4838
  for (M in P)
4839
4839
  nt && M == "prototype" || !ot.call(P, M) || L(M);
4840
4840
  for (J = F.length; M = F[--J]; ot.call(P, M) && L(M))
@@ -4889,7 +4889,7 @@ function Io() {
4889
4889
  L = null;
4890
4890
  if (I && (L = I.call(U, R, L)), L === null)
4891
4891
  return "null";
4892
- if (M = d.call(L), M == w)
4892
+ if (M = d.call(L), M == C)
4893
4893
  return "" + L;
4894
4894
  if (M == f)
4895
4895
  return L > -1 / 0 && 1 / 0 > L ? "" + L : "null";
@@ -5095,7 +5095,7 @@ const me = Object.entries(_o).reduce(
5095
5095
  getSocketVersion: br,
5096
5096
  makeSocketVersion: Do
5097
5097
  };
5098
- var Fo = /* @__PURE__ */ ((t) => (t.RINGING = "Ringing", t.TALKING = "Talking", t.DIALING = "Dialing", t.HOLD = "Hold", t))(Fo || {}), jo = /* @__PURE__ */ ((t) => (t.INCOMING = "Incoming", t.OUTGOING = "Outgoing", t))(jo || {}), Mo = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "Automatic", t.IVR = "IVR", t))(Mo || {}), qo = /* @__PURE__ */ ((t) => (t.INCOMINC = "Incoming", t.OUTGOING = "Outgoing", t.SPY = "Spy", t.CLICK2CALL = "Click2Call", t))(qo || {}), zo = /* @__PURE__ */ ((t) => (t.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", t.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", t))(zo || {}), z = /* @__PURE__ */ ((t) => (t.ALL_DIALER_STATUS = "AllDialersStatus", t.ALL_EXTENSION_STATUS = "AllExtensionsStatus", t.ALL_USERS_STATUS = "AllUsersStatus", t.CONNECT = "connect", t.DISCONNECT = "disconnect", t.CONNECT_ERROR_EVENT = "connect_error", t.EXTENSION_EVENT = "ExtensionEvent", t.KEEP_ALIVE = "keepalive", t.KEEP_ALIVE_RESPONSE = "keepaliveResponse", t.LOGIN_STATUS = "loginStatus", t.LOGIN_SUCCESS = "loginSuccess", t.QUEUE_EVENT = "QueueEvent", t.ONLINE_STATUS_EVENT = "onlineStatusEvent", t.DIALER_EVENT = "DialerEvent", t.EXTENSIONS_UPDATED = "ExtensionsUpdated", t))(z || {}), Cr = /* @__PURE__ */ ((t) => (t.NEWCALL = "NEWCALL", t.ANSWER = "ANSWER", t.HOLD = "HOLD", t.UNHOLD = "UNHOLD", t.HANGUP = "HANGUP", t.USER_STATUS_UPDATE = "userStatusUpdate", t))(Cr || {}), Xo = /* @__PURE__ */ ((t) => (t.NORMAL_HANGUP = "Normal hangup", t.USER_BUSY = "User busy", t.CALL_REJECTED = "Call Rejected", t.UNALLOCATED_NUMBER = "Unallocated (unassigned) number", t.UNKNOWN = "Unknown", t.NO_USER_RESPONDING = "No user responding", t.USER_ALERTING = "User alerting, no answer", t.ANSWERED_ELSEWHERE = "Answered elsewhere", t))(Xo || {}), Wo = /* @__PURE__ */ ((t) => (t.ANSWER = "ANSWER", t.ABANDONED = "ABANDONED", t.EXIT = "EXIT", t.JOIN = "JOIN", t))(Wo || {});
5098
+ var Fo = /* @__PURE__ */ ((t) => (t.RINGING = "Ringing", t.TALKING = "Talking", t.DIALING = "Dialing", t.HOLD = "Hold", t))(Fo || {}), jo = /* @__PURE__ */ ((t) => (t.INCOMING = "Incoming", t.OUTGOING = "Outgoing", t))(jo || {}), Mo = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "Automatic", t.IVR = "IVR", t))(Mo || {}), qo = /* @__PURE__ */ ((t) => (t.INCOMINC = "Incoming", t.OUTGOING = "Outgoing", t.SPY = "Spy", t.CLICK2CALL = "Click2Call", t))(qo || {}), zo = /* @__PURE__ */ ((t) => (t.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", t.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", t))(zo || {}), z = /* @__PURE__ */ ((t) => (t.ALL_DIALER_STATUS = "AllDialersStatus", t.ALL_EXTENSION_STATUS = "AllExtensionsStatus", t.ALL_USERS_STATUS = "AllUsersStatus", t.CONNECT = "connect", t.DISCONNECT = "disconnect", t.CONNECT_ERROR_EVENT = "connect_error", t.EXTENSION_EVENT = "ExtensionEvent", t.KEEP_ALIVE = "keepalive", t.KEEP_ALIVE_RESPONSE = "keepaliveResponse", t.LOGIN_STATUS = "loginStatus", t.LOGIN_SUCCESS = "loginSuccess", t.QUEUE_EVENT = "QueueEvent", t.ONLINE_STATUS_EVENT = "onlineStatusEvent", t.DIALER_EVENT = "DialerEvent", t.EXTENSIONS_UPDATED = "ExtensionsUpdated", t))(z || {}), wr = /* @__PURE__ */ ((t) => (t.NEWCALL = "NEWCALL", t.ANSWER = "ANSWER", t.HOLD = "HOLD", t.UNHOLD = "UNHOLD", t.HANGUP = "HANGUP", t.USER_STATUS_UPDATE = "userStatusUpdate", t))(wr || {}), Xo = /* @__PURE__ */ ((t) => (t.NORMAL_HANGUP = "Normal hangup", t.USER_BUSY = "User busy", t.CALL_REJECTED = "Call Rejected", t.UNALLOCATED_NUMBER = "Unallocated (unassigned) number", t.UNKNOWN = "Unknown", t.NO_USER_RESPONDING = "No user responding", t.USER_ALERTING = "User alerting, no answer", t.ANSWERED_ELSEWHERE = "Answered elsewhere", t))(Xo || {}), Wo = /* @__PURE__ */ ((t) => (t.ANSWER = "ANSWER", t.ABANDONED = "ABANDONED", t.EXIT = "EXIT", t.JOIN = "JOIN", t))(Wo || {});
5099
5099
  class ae {
5100
5100
  static mapExtensionEvent(e) {
5101
5101
  var u, h;
@@ -5103,7 +5103,7 @@ class ae {
5103
5103
  let n, o;
5104
5104
  e.data.currentCall && (o = this.mapExtensionCall(e, e.data.currentCall));
5105
5105
  const i = this.mapExtensionData(e, e.data);
5106
- return r === Cr.HANGUP ? n = {
5106
+ return r === wr.HANGUP ? n = {
5107
5107
  ...e,
5108
5108
  reason: r,
5109
5109
  data: {
@@ -5234,7 +5234,7 @@ class ae {
5234
5234
  };
5235
5235
  }
5236
5236
  }
5237
- var wr = /* @__PURE__ */ ((t) => (t.UPDATE_MONITORED_EXTENSIONS = "updateMonitoredExtensions", t.KEEP_ALIVE = "keepAlive", t))(wr || {});
5237
+ var Cr = /* @__PURE__ */ ((t) => (t.UPDATE_MONITORED_EXTENSIONS = "updateMonitoredExtensions", t.KEEP_ALIVE = "keepAlive", t))(Cr || {});
5238
5238
  class Ko {
5239
5239
  constructor(e) {
5240
5240
  H(this, "io");
@@ -5304,7 +5304,7 @@ class Ko {
5304
5304
  initKeepAlive() {
5305
5305
  this.clearKeepAliveInterval(), this.keepAliveInterval = setInterval(async () => {
5306
5306
  if ((/* @__PURE__ */ new Date()).getTime() > this.lastEventTimestamp + this.eventsSdkClass.options.keepAliveTimeout && this.io && this.eventsSdkClass.authClass.token) {
5307
- this.eventsSdkClass.emit(wr.KEEP_ALIVE, this.eventsSdkClass.authClass.token), this.eventsSdkClass.loggerClass.log({
5307
+ this.eventsSdkClass.emit(Cr.KEEP_ALIVE, this.eventsSdkClass.authClass.token), this.eventsSdkClass.loggerClass.log({
5308
5308
  Message: `Keep alive event emitted with this token: ${this.eventsSdkClass.authClass.token}`,
5309
5309
  ActionName: at.WSCONNECT,
5310
5310
  isShowClient: !1,
@@ -5567,10 +5567,10 @@ export {
5567
5567
  qo as DirectionEnum,
5568
5568
  zo as DoNotCallMeStatusCodeEnum,
5569
5569
  z as EventsEnum,
5570
- Cr as ExtensionEventReasonEnum,
5570
+ wr as ExtensionEventReasonEnum,
5571
5571
  Xo as ExtensionHangupCauseEnum,
5572
5572
  Wo as QueueEventReasonEnum,
5573
- wr as ServerListenerEventsEnum,
5573
+ Cr as ServerListenerEventsEnum,
5574
5574
  $o as default
5575
5575
  };
5576
5576
  //# sourceMappingURL=voicenter-events-sdk.es.js.map