@voicenter-team/events-sdk 0.0.118 → 0.0.119

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.
@@ -2,7 +2,7 @@ var Ie = Object.defineProperty;
2
2
  var Re = (a, t, e) => t in a ? Ie(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var q = (a, t, e) => (Re(a, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import Be from "ws";
5
- import Ue, { LevelEnum as z, LogTypeEnum as Y, ActionNameEnum as Q } from "@voicenter-team/socketio-storage-logger";
5
+ import Ue, { LevelEnum as J, ActionNameEnum as Q, LogTypeEnum as Z } from "@voicenter-team/socketio-storage-logger";
6
6
  function xe(a) {
7
7
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
8
8
  }
@@ -58,8 +58,8 @@ var be = { exports: {} }, we = { exports: {} };
58
58
  // Convert a byte array to a base-64 string
59
59
  bytesToBase64: function(e) {
60
60
  for (var r = [], o = 0; o < e.length; o += 3)
61
- for (var c = e[o] << 16 | e[o + 1] << 8 | e[o + 2], f = 0; f < 4; f++)
62
- o * 8 + f * 6 <= e.length * 8 ? r.push(a.charAt(c >>> 6 * (3 - f) & 63)) : r.push("=");
61
+ for (var c = e[o] << 16 | e[o + 1] << 8 | e[o + 2], u = 0; u < 4; u++)
62
+ o * 8 + u * 6 <= e.length * 8 ? r.push(a.charAt(c >>> 6 * (3 - u) & 63)) : r.push("=");
63
63
  return r.join("");
64
64
  },
65
65
  // Convert a base-64 string to a byte array
@@ -116,39 +116,39 @@ function je(a) {
116
116
  return typeof a.readFloatLE == "function" && typeof a.slice == "function" && Ae(a.slice(0, 0));
117
117
  }
118
118
  (function() {
119
- var a = De, t = Te.utf8, e = Ve, r = Te.bin, o = function(c, f) {
120
- c.constructor == String ? f && f.encoding === "binary" ? c = r.stringToBytes(c) : c = t.stringToBytes(c) : e(c) ? c = Array.prototype.slice.call(c, 0) : !Array.isArray(c) && c.constructor !== Uint8Array && (c = c.toString());
121
- for (var h = a.bytesToWords(c), d = c.length * 8, i = 1732584193, u = -271733879, l = -1732584194, s = 271733878, n = 0; n < h.length; n++)
119
+ var a = De, t = Te.utf8, e = Ve, r = Te.bin, o = function(c, u) {
120
+ c.constructor == String ? u && u.encoding === "binary" ? c = r.stringToBytes(c) : c = t.stringToBytes(c) : e(c) ? c = Array.prototype.slice.call(c, 0) : !Array.isArray(c) && c.constructor !== Uint8Array && (c = c.toString());
121
+ for (var h = a.bytesToWords(c), d = c.length * 8, i = 1732584193, p = -271733879, l = -1732584194, s = 271733878, n = 0; n < h.length; n++)
122
122
  h[n] = (h[n] << 8 | h[n] >>> 24) & 16711935 | (h[n] << 24 | h[n] >>> 8) & 4278255360;
123
123
  h[d >>> 5] |= 128 << d % 32, h[(d + 64 >>> 9 << 4) + 14] = d;
124
- for (var p = o._ff, g = o._gg, y = o._hh, b = o._ii, n = 0; n < h.length; n += 16) {
125
- var j = i, x = u, P = l, I = s;
126
- i = p(i, u, l, s, h[n + 0], 7, -680876936), s = p(s, i, u, l, h[n + 1], 12, -389564586), l = p(l, s, i, u, h[n + 2], 17, 606105819), u = p(u, l, s, i, h[n + 3], 22, -1044525330), i = p(i, u, l, s, h[n + 4], 7, -176418897), s = p(s, i, u, l, h[n + 5], 12, 1200080426), l = p(l, s, i, u, h[n + 6], 17, -1473231341), u = p(u, l, s, i, h[n + 7], 22, -45705983), i = p(i, u, l, s, h[n + 8], 7, 1770035416), s = p(s, i, u, l, h[n + 9], 12, -1958414417), l = p(l, s, i, u, h[n + 10], 17, -42063), u = p(u, l, s, i, h[n + 11], 22, -1990404162), i = p(i, u, l, s, h[n + 12], 7, 1804603682), s = p(s, i, u, l, h[n + 13], 12, -40341101), l = p(l, s, i, u, h[n + 14], 17, -1502002290), u = p(u, l, s, i, h[n + 15], 22, 1236535329), i = g(i, u, l, s, h[n + 1], 5, -165796510), s = g(s, i, u, l, h[n + 6], 9, -1069501632), l = g(l, s, i, u, h[n + 11], 14, 643717713), u = g(u, l, s, i, h[n + 0], 20, -373897302), i = g(i, u, l, s, h[n + 5], 5, -701558691), s = g(s, i, u, l, h[n + 10], 9, 38016083), l = g(l, s, i, u, h[n + 15], 14, -660478335), u = g(u, l, s, i, h[n + 4], 20, -405537848), i = g(i, u, l, s, h[n + 9], 5, 568446438), s = g(s, i, u, l, h[n + 14], 9, -1019803690), l = g(l, s, i, u, h[n + 3], 14, -187363961), u = g(u, l, s, i, h[n + 8], 20, 1163531501), i = g(i, u, l, s, h[n + 13], 5, -1444681467), s = g(s, i, u, l, h[n + 2], 9, -51403784), l = g(l, s, i, u, h[n + 7], 14, 1735328473), u = g(u, l, s, i, h[n + 12], 20, -1926607734), i = y(i, u, l, s, h[n + 5], 4, -378558), s = y(s, i, u, l, h[n + 8], 11, -2022574463), l = y(l, s, i, u, h[n + 11], 16, 1839030562), u = y(u, l, s, i, h[n + 14], 23, -35309556), i = y(i, u, l, s, h[n + 1], 4, -1530992060), s = y(s, i, u, l, h[n + 4], 11, 1272893353), l = y(l, s, i, u, h[n + 7], 16, -155497632), u = y(u, l, s, i, h[n + 10], 23, -1094730640), i = y(i, u, l, s, h[n + 13], 4, 681279174), s = y(s, i, u, l, h[n + 0], 11, -358537222), l = y(l, s, i, u, h[n + 3], 16, -722521979), u = y(u, l, s, i, h[n + 6], 23, 76029189), i = y(i, u, l, s, h[n + 9], 4, -640364487), s = y(s, i, u, l, h[n + 12], 11, -421815835), l = y(l, s, i, u, h[n + 15], 16, 530742520), u = y(u, l, s, i, h[n + 2], 23, -995338651), i = b(i, u, l, s, h[n + 0], 6, -198630844), s = b(s, i, u, l, h[n + 7], 10, 1126891415), l = b(l, s, i, u, h[n + 14], 15, -1416354905), u = b(u, l, s, i, h[n + 5], 21, -57434055), i = b(i, u, l, s, h[n + 12], 6, 1700485571), s = b(s, i, u, l, h[n + 3], 10, -1894986606), l = b(l, s, i, u, h[n + 10], 15, -1051523), u = b(u, l, s, i, h[n + 1], 21, -2054922799), i = b(i, u, l, s, h[n + 8], 6, 1873313359), s = b(s, i, u, l, h[n + 15], 10, -30611744), l = b(l, s, i, u, h[n + 6], 15, -1560198380), u = b(u, l, s, i, h[n + 13], 21, 1309151649), i = b(i, u, l, s, h[n + 4], 6, -145523070), s = b(s, i, u, l, h[n + 11], 10, -1120210379), l = b(l, s, i, u, h[n + 2], 15, 718787259), u = b(u, l, s, i, h[n + 9], 21, -343485551), i = i + j >>> 0, u = u + x >>> 0, l = l + P >>> 0, s = s + I >>> 0;
124
+ for (var f = o._ff, g = o._gg, y = o._hh, b = o._ii, n = 0; n < h.length; n += 16) {
125
+ var j = i, x = p, P = l, I = s;
126
+ i = f(i, p, l, s, h[n + 0], 7, -680876936), s = f(s, i, p, l, h[n + 1], 12, -389564586), l = f(l, s, i, p, h[n + 2], 17, 606105819), p = f(p, l, s, i, h[n + 3], 22, -1044525330), i = f(i, p, l, s, h[n + 4], 7, -176418897), s = f(s, i, p, l, h[n + 5], 12, 1200080426), l = f(l, s, i, p, h[n + 6], 17, -1473231341), p = f(p, l, s, i, h[n + 7], 22, -45705983), i = f(i, p, l, s, h[n + 8], 7, 1770035416), s = f(s, i, p, l, h[n + 9], 12, -1958414417), l = f(l, s, i, p, h[n + 10], 17, -42063), p = f(p, l, s, i, h[n + 11], 22, -1990404162), i = f(i, p, l, s, h[n + 12], 7, 1804603682), s = f(s, i, p, l, h[n + 13], 12, -40341101), l = f(l, s, i, p, h[n + 14], 17, -1502002290), p = f(p, l, s, i, h[n + 15], 22, 1236535329), i = g(i, p, l, s, h[n + 1], 5, -165796510), s = g(s, i, p, l, h[n + 6], 9, -1069501632), l = g(l, s, i, p, h[n + 11], 14, 643717713), p = g(p, l, s, i, h[n + 0], 20, -373897302), i = g(i, p, l, s, h[n + 5], 5, -701558691), s = g(s, i, p, l, h[n + 10], 9, 38016083), l = g(l, s, i, p, h[n + 15], 14, -660478335), p = g(p, l, s, i, h[n + 4], 20, -405537848), i = g(i, p, l, s, h[n + 9], 5, 568446438), s = g(s, i, p, l, h[n + 14], 9, -1019803690), l = g(l, s, i, p, h[n + 3], 14, -187363961), p = g(p, l, s, i, h[n + 8], 20, 1163531501), i = g(i, p, l, s, h[n + 13], 5, -1444681467), s = g(s, i, p, l, h[n + 2], 9, -51403784), l = g(l, s, i, p, h[n + 7], 14, 1735328473), p = g(p, l, s, i, h[n + 12], 20, -1926607734), i = y(i, p, l, s, h[n + 5], 4, -378558), s = y(s, i, p, l, h[n + 8], 11, -2022574463), l = y(l, s, i, p, h[n + 11], 16, 1839030562), p = y(p, l, s, i, h[n + 14], 23, -35309556), i = y(i, p, l, s, h[n + 1], 4, -1530992060), s = y(s, i, p, l, h[n + 4], 11, 1272893353), l = y(l, s, i, p, h[n + 7], 16, -155497632), p = y(p, l, s, i, h[n + 10], 23, -1094730640), i = y(i, p, l, s, h[n + 13], 4, 681279174), s = y(s, i, p, l, h[n + 0], 11, -358537222), l = y(l, s, i, p, h[n + 3], 16, -722521979), p = y(p, l, s, i, h[n + 6], 23, 76029189), i = y(i, p, l, s, h[n + 9], 4, -640364487), s = y(s, i, p, l, h[n + 12], 11, -421815835), l = y(l, s, i, p, h[n + 15], 16, 530742520), p = y(p, l, s, i, h[n + 2], 23, -995338651), i = b(i, p, l, s, h[n + 0], 6, -198630844), s = b(s, i, p, l, h[n + 7], 10, 1126891415), l = b(l, s, i, p, h[n + 14], 15, -1416354905), p = b(p, l, s, i, h[n + 5], 21, -57434055), i = b(i, p, l, s, h[n + 12], 6, 1700485571), s = b(s, i, p, l, h[n + 3], 10, -1894986606), l = b(l, s, i, p, h[n + 10], 15, -1051523), p = b(p, l, s, i, h[n + 1], 21, -2054922799), i = b(i, p, l, s, h[n + 8], 6, 1873313359), s = b(s, i, p, l, h[n + 15], 10, -30611744), l = b(l, s, i, p, h[n + 6], 15, -1560198380), p = b(p, l, s, i, h[n + 13], 21, 1309151649), i = b(i, p, l, s, h[n + 4], 6, -145523070), s = b(s, i, p, l, h[n + 11], 10, -1120210379), l = b(l, s, i, p, h[n + 2], 15, 718787259), p = b(p, l, s, i, h[n + 9], 21, -343485551), i = i + j >>> 0, p = p + x >>> 0, l = l + P >>> 0, s = s + I >>> 0;
127
127
  }
128
- return a.endian([i, u, l, s]);
128
+ return a.endian([i, p, l, s]);
129
129
  };
130
- o._ff = function(c, f, h, d, i, u, l) {
131
- var s = c + (f & h | ~f & d) + (i >>> 0) + l;
132
- return (s << u | s >>> 32 - u) + f;
133
- }, o._gg = function(c, f, h, d, i, u, l) {
134
- var s = c + (f & d | h & ~d) + (i >>> 0) + l;
135
- return (s << u | s >>> 32 - u) + f;
136
- }, o._hh = function(c, f, h, d, i, u, l) {
137
- var s = c + (f ^ h ^ d) + (i >>> 0) + l;
138
- return (s << u | s >>> 32 - u) + f;
139
- }, o._ii = function(c, f, h, d, i, u, l) {
140
- var s = c + (h ^ (f | ~d)) + (i >>> 0) + l;
141
- return (s << u | s >>> 32 - u) + f;
142
- }, o._blocksize = 16, o._digestsize = 16, be.exports = function(c, f) {
130
+ o._ff = function(c, u, h, d, i, p, l) {
131
+ var s = c + (u & h | ~u & d) + (i >>> 0) + l;
132
+ return (s << p | s >>> 32 - p) + u;
133
+ }, o._gg = function(c, u, h, d, i, p, l) {
134
+ var s = c + (u & d | h & ~d) + (i >>> 0) + l;
135
+ return (s << p | s >>> 32 - p) + u;
136
+ }, o._hh = function(c, u, h, d, i, p, l) {
137
+ var s = c + (u ^ h ^ d) + (i >>> 0) + l;
138
+ return (s << p | s >>> 32 - p) + u;
139
+ }, o._ii = function(c, u, h, d, i, p, l) {
140
+ var s = c + (h ^ (u | ~d)) + (i >>> 0) + l;
141
+ return (s << p | s >>> 32 - p) + u;
142
+ }, o._blocksize = 16, o._digestsize = 16, be.exports = function(c, u) {
143
143
  if (c == null)
144
144
  throw new Error("Illegal argument " + c);
145
- var h = a.wordsToBytes(o(c, f));
146
- return f && f.asBytes ? h : f && f.asString ? r.bytesToString(h) : a.bytesToHex(h);
145
+ var h = a.wordsToBytes(o(c, u));
146
+ return u && u.asBytes ? h : u && u.asString ? r.bytesToString(h) : a.bytesToHex(h);
147
147
  };
148
148
  })();
149
149
  var Fe = be.exports;
150
150
  const Pe = /* @__PURE__ */ xe(Fe);
151
- var ne = /* @__PURE__ */ ((a) => (a.BOOTSTRAP = "bootstrap", a.DEBUG_EXTENSIONS = "debugExtensions", a.DEBUG_QUEUE = "debugQueue", a.DEBUG_DIALER = "debugDialer", a.FULL = "full", a))(ne || {}), se = /* @__PURE__ */ ((a) => (a.MAIN = "main", a.NEXT = "next", a))(se || {}), Z = /* @__PURE__ */ ((a) => (a.USER = "User", a.TOKEN = "Token", a))(Z || {});
151
+ var ne = /* @__PURE__ */ ((a) => (a.BOOTSTRAP = "bootstrap", a.DEBUG_EXTENSIONS = "debugExtensions", a.DEBUG_QUEUE = "debugQueue", a.DEBUG_DIALER = "debugDialer", a.FULL = "full", a))(ne || {}), se = /* @__PURE__ */ ((a) => (a.MAIN = "main", a.NEXT = "next", a))(se || {}), H = /* @__PURE__ */ ((a) => (a.USER = "User", a.TOKEN = "Token", a.JWT = "Jwt", a))(H || {});
152
152
  class ce {
153
153
  static async getSessionStorageDataByKey(t, e = !0) {
154
154
  if (typeof chrome < "u" && typeof chrome.storage < "u") {
@@ -205,21 +205,23 @@ class Me {
205
205
  return e;
206
206
  }
207
207
  async userLoginFunction(t, e, r) {
208
- let o, c, f;
209
- return this.eventsSdkClass.options.isNewStack ? (o = await this.externalLogin(
208
+ let o, c, u;
209
+ return this.eventsSdkClass.options.isNewStack ? ((this.eventsSdkClass.options.loginType === H.TOKEN || this.eventsSdkClass.options.loginType === H.USER) && (o = await this.externalLogin(
210
210
  this.eventsSdkClass.options.loginUrl,
211
211
  t,
212
212
  r
213
- ), c = await this.getSettings(o.Data.AccessToken), f = {
213
+ ), c = await this.getSettings(o.Data.AccessToken), u = {
214
214
  ...o.Data,
215
215
  ...c
216
- }) : (o = await this.externalLogin(
216
+ }), this.eventsSdkClass.options.loginType === H.JWT && (c = await this.getSettings(t.token), u = {
217
+ ...c
218
+ })) : (o = await this.externalLogin(
217
219
  this.eventsSdkClass.options.loginUrl,
218
220
  t,
219
221
  r
220
- ), f = {
222
+ ), u = {
221
223
  ...o.Data.Socket
222
- }), await ce.updateSessionStorageKey(e, f), f;
224
+ }), await ce.updateSessionStorageKey(e, u), u;
223
225
  }
224
226
  onLoginResponse(t) {
225
227
  if (!this.eventsSdkClass.options.isNewStack && this.eventsSdkClass.options.servers && (this.eventsSdkClass.servers = [...this.eventsSdkClass.options.servers], this.eventsSdkClass.server = this.eventsSdkClass.servers.reduce(
@@ -232,7 +234,7 @@ class Me {
232
234
  throw new Error("Socket servers not defined");
233
235
  if (this.eventsSdkClass.options.isNewStack && !this.eventsSdkClass.servers.length)
234
236
  throw new Error("Socket servers not defined");
235
- this.eventsSdkClass.server && this.eventsSdkClass.socketIoClass.getSocketIoFunction(`v=${this.eventsSdkClass.server.Version}`), !this.eventsSdkClass.server && this.eventsSdkClass.URLList.length && this.eventsSdkClass.socketIoClass.getSocketIoFunction(`v=${t.Version}`), t.IdentityCode && (this.token = t.IdentityCode, this.eventsSdkClass.connect(se.MAIN)), t.Token && (this.token = t.Token, this.eventsSdkClass.connect(se.MAIN)), t.RefreshToken && t.IdentityCodeExpiry && this.eventsSdkClass.options.loginType === Z.USER && (this.refreshToken = t.RefreshToken, this.tokenExpiry = t.IdentityCodeExpiry, this.handleTokenExpiry()), t.RefreshToken && t.TokenExpiry && this.normalizeLoginType(this.eventsSdkClass.options.loginType) === Z.USER && (this.refreshToken = t.RefreshToken, this.tokenExpiry = t.TokenExpiry, this.handleTokenExpiry());
237
+ this.eventsSdkClass.server && this.eventsSdkClass.socketIoClass.getSocketIoFunction(`v=${this.eventsSdkClass.server.Version}`), !this.eventsSdkClass.server && this.eventsSdkClass.URLList.length && this.eventsSdkClass.socketIoClass.getSocketIoFunction(`v=${t.Version}`), t.IdentityCode && (this.token = t.IdentityCode, this.eventsSdkClass.connect(se.MAIN)), t.Token && (this.token = t.Token, this.eventsSdkClass.connect(se.MAIN)), t.RefreshToken && t.IdentityCodeExpiry && this.eventsSdkClass.options.loginType === H.USER && (this.refreshToken = t.RefreshToken, this.tokenExpiry = t.IdentityCodeExpiry, this.handleTokenExpiry()), t.RefreshToken && t.TokenExpiry && this.normalizeLoginType(this.eventsSdkClass.options.loginType) === H.USER && (this.refreshToken = t.RefreshToken, this.tokenExpiry = t.TokenExpiry, this.handleTokenExpiry());
236
238
  }
237
239
  handleTokenExpiry() {
238
240
  if (!this.eventsSdkClass.options.refreshTokenUrl)
@@ -249,12 +251,12 @@ class Me {
249
251
  this.eventsSdkClass.socketIoClass.closeAllConnections();
250
252
  let o, c;
251
253
  if (this.eventsSdkClass.options.isNewStack) {
252
- const f = await this.externalRefreshToken(
254
+ const u = await this.externalRefreshToken(
253
255
  this.eventsSdkClass.options.refreshTokenUrl,
254
256
  this.refreshToken
255
257
  );
256
- o = await this.getSettings(f.Data.AccessToken), c = {
257
- ...f.Data,
258
+ o = await this.getSettings(u.Data.AccessToken), c = {
259
+ ...u.Data,
258
260
  ...o
259
261
  };
260
262
  } else
@@ -273,18 +275,18 @@ class Me {
273
275
  async externalLogin(t, { password: e, token: r, email: o }, c) {
274
276
  if (!t)
275
277
  throw new Error("loginUrl not provided");
276
- let f;
277
- this.eventsSdkClass.options.isNewStack ? c === Z.TOKEN ? f = JSON.stringify({
278
- identityType: Z.TOKEN,
278
+ let u;
279
+ this.eventsSdkClass.options.isNewStack ? c === H.TOKEN ? u = JSON.stringify({
280
+ identityType: H.TOKEN,
279
281
  token: r
280
- }) : f = JSON.stringify({
281
- identityType: Z.USER,
282
+ }) : u = JSON.stringify({
283
+ identityType: H.USER,
282
284
  username: o,
283
285
  password: e
284
- }) : this.eventsSdkClass.options.loginType === Z.TOKEN ? (f = JSON.stringify({ token: r }), t = `${t}/${Z.TOKEN}`) : (f = JSON.stringify({
286
+ }) : this.eventsSdkClass.options.loginType === H.TOKEN ? (u = JSON.stringify({ token: r }), t = `${t}/${H.TOKEN}`) : (u = JSON.stringify({
285
287
  email: o,
286
288
  pin: e
287
- }), t = `${t}/${Z.USER}`);
289
+ }), t = `${t}/${H.USER}`);
288
290
  let h;
289
291
  try {
290
292
  const d = await fetch(t, {
@@ -292,7 +294,7 @@ class Me {
292
294
  headers: {
293
295
  "Content-Type": "application/json"
294
296
  },
295
- body: f
297
+ body: u
296
298
  });
297
299
  if (!d.ok && d.status === 400)
298
300
  throw h = 400, new Error("Bad body request. Login type or isNewStack values not correct or not provided");
@@ -312,6 +314,8 @@ class Me {
312
314
  try {
313
315
  if (!this.eventsSdkClass.options.getSettingsUrl)
314
316
  throw new Error("getSettingsUrl not provided");
317
+ if (!t)
318
+ throw new Error("token property not provided or not defined");
315
319
  const e = await fetch(this.eventsSdkClass.options.getSettingsUrl, {
316
320
  headers: {
317
321
  Authorization: `Bearer ${t}`
@@ -321,7 +325,7 @@ class Me {
321
325
  throw new Error("Unauthorized. Access token not provided or not valid");
322
326
  return e.json();
323
327
  } catch (e) {
324
- throw this.eventsSdkClass.loggerClass.getSettingsError(t, e), e;
328
+ throw this.eventsSdkClass.loggerClass.getSettingsError(t || "NOT DEFINED", e), e;
325
329
  }
326
330
  }
327
331
  async externalRefreshToken(t, e) {
@@ -382,28 +386,28 @@ function qe() {
382
386
  return c(h, !0);
383
387
  throw new Error("Cannot find module '" + h + "'");
384
388
  }
385
- var u = e[h] = { exports: {} };
386
- t[h][0].call(u.exports, function(l) {
389
+ var p = e[h] = { exports: {} };
390
+ t[h][0].call(p.exports, function(l) {
387
391
  var s = t[h][1][l];
388
392
  return o(s || l);
389
- }, u, u.exports, a, t, e, r);
393
+ }, p, p.exports, a, t, e, r);
390
394
  }
391
395
  return e[h].exports;
392
396
  }
393
- for (var c = typeof require == "function" && require, f = 0; f < r.length; f++)
394
- o(r[f]);
397
+ for (var c = typeof require == "function" && require, u = 0; u < r.length; u++)
398
+ o(r[u]);
395
399
  return o;
396
400
  }({
397
401
  1: [function(a, t) {
398
402
  t.exports = a("./lib/");
399
403
  }, { "./lib/": 2 }],
400
404
  2: [function(a, t, e) {
401
- function r(i, u) {
402
- typeof i == "object" && (u = i, i = void 0), u = u || {};
403
- var l, s = o(i), n = s.source, p = s.id;
404
- return u.forceNew || u["force new connection"] || u.multiplex === !1 ? (h("ignoring socket cache for %s", n), l = f(n, u)) : (d[p] || (h("new io instance for %s", n), d[p] = f(n, u)), l = d[p]), l.socket(s.path);
405
+ function r(i, p) {
406
+ typeof i == "object" && (p = i, i = void 0), p = p || {};
407
+ var l, s = o(i), n = s.source, f = s.id;
408
+ return p.forceNew || p["force new connection"] || p.multiplex === !1 ? (h("ignoring socket cache for %s", n), l = u(n, p)) : (d[f] || (h("new io instance for %s", n), d[f] = u(n, p)), l = d[f]), l.socket(s.path);
405
409
  }
406
- var o = a("./url"), c = a("socket.io-parser"), f = a("./manager"), h = a("debug")("socket.io-client");
410
+ var o = a("./url"), c = a("socket.io-parser"), u = a("./manager"), h = a("debug")("socket.io-client");
407
411
  t.exports = e = r;
408
412
  var d = e.managers = {};
409
413
  e.protocol = c.protocol, e.connect = r, e.Manager = a("./manager"), e.Socket = a("./socket");
@@ -414,9 +418,9 @@ function qe() {
414
418
  min: this.reconnectionDelay(),
415
419
  max: this.reconnectionDelayMax(),
416
420
  jitter: this.randomizationFactor()
417
- }), this.timeout(n.timeout == null ? 2e4 : n.timeout), this.readyState = "closed", this.uri = s, this.connected = [], this.encoding = !1, this.packetBuffer = [], this.encoder = new f.Encoder(), this.decoder = new f.Decoder(), this.autoConnect = n.autoConnect !== !1, void (this.autoConnect && this.open())) : new e(s, n);
421
+ }), this.timeout(n.timeout == null ? 2e4 : n.timeout), this.readyState = "closed", this.uri = s, this.connected = [], this.encoding = !1, this.packetBuffer = [], this.encoder = new u.Encoder(), this.decoder = new u.Decoder(), this.autoConnect = n.autoConnect !== !1, void (this.autoConnect && this.open())) : new e(s, n);
418
422
  }
419
- var r = (a("./url"), a("engine.io-client")), o = a("./socket"), c = a("component-emitter"), f = a("socket.io-parser"), h = a("./on"), d = a("component-bind"), i = (a("object-component"), a("debug")("socket.io-client:manager")), u = a("indexof"), l = a("backo2");
423
+ var r = (a("./url"), a("engine.io-client")), o = a("./socket"), c = a("component-emitter"), u = a("socket.io-parser"), h = a("./on"), d = a("component-bind"), i = (a("object-component"), a("debug")("socket.io-client:manager")), p = a("indexof"), l = a("backo2");
420
424
  t.exports = e, e.prototype.emitAll = function() {
421
425
  this.emit.apply(this, arguments);
422
426
  for (var s in this.nsps)
@@ -442,22 +446,22 @@ function qe() {
442
446
  if (i("readyState %s", this.readyState), ~this.readyState.indexOf("open"))
443
447
  return this;
444
448
  i("opening %s", this.uri), this.engine = r(this.uri, this.opts);
445
- var n = this.engine, p = this;
449
+ var n = this.engine, f = this;
446
450
  this.readyState = "opening", this.skipReconnect = !1;
447
451
  var g = h(n, "open", function() {
448
- p.onopen(), s && s();
452
+ f.onopen(), s && s();
449
453
  }), y = h(n, "error", function(x) {
450
- if (i("connect_error"), p.cleanup(), p.readyState = "closed", p.emitAll("connect_error", x), s) {
454
+ if (i("connect_error"), f.cleanup(), f.readyState = "closed", f.emitAll("connect_error", x), s) {
451
455
  var P = new Error("Connection error");
452
456
  P.data = x, s(P);
453
457
  } else
454
- p.maybeReconnectOnOpen();
458
+ f.maybeReconnectOnOpen();
455
459
  });
456
460
  if (this._timeout !== !1) {
457
461
  var b = this._timeout;
458
462
  i("connect attempt will timeout after %d", b);
459
463
  var j = setTimeout(function() {
460
- i("connect attempt timed out after %d", b), g.destroy(), n.close(), n.emit("error", "timeout"), p.emitAll("connect_timeout", b);
464
+ i("connect attempt timed out after %d", b), g.destroy(), n.close(), n.emit("error", "timeout"), f.emitAll("connect_timeout", b);
461
465
  }, b);
462
466
  this.subs.push({
463
467
  destroy: function() {
@@ -480,21 +484,21 @@ function qe() {
480
484
  var n = this.nsps[s];
481
485
  if (!n) {
482
486
  n = new o(this, s), this.nsps[s] = n;
483
- var p = this;
487
+ var f = this;
484
488
  n.on("connect", function() {
485
- n.id = p.engine.id, ~u(p.connected, n) || p.connected.push(n);
489
+ n.id = f.engine.id, ~p(f.connected, n) || f.connected.push(n);
486
490
  });
487
491
  }
488
492
  return n;
489
493
  }, e.prototype.destroy = function(s) {
490
- var n = u(this.connected, s);
494
+ var n = p(this.connected, s);
491
495
  ~n && this.connected.splice(n, 1), this.connected.length || this.close();
492
496
  }, e.prototype.packet = function(s) {
493
497
  i("writing packet %j", s);
494
498
  var n = this;
495
- n.encoding ? n.packetBuffer.push(s) : (n.encoding = !0, this.encoder.encode(s, function(p) {
496
- for (var g = 0; g < p.length; g++)
497
- n.engine.write(p[g]);
499
+ n.encoding ? n.packetBuffer.push(s) : (n.encoding = !0, this.encoder.encode(s, function(f) {
500
+ for (var g = 0; g < f.length; g++)
501
+ n.engine.write(f[g]);
498
502
  n.encoding = !1, n.processPacketQueue();
499
503
  }));
500
504
  }, e.prototype.processPacketQueue = function() {
@@ -519,14 +523,14 @@ function qe() {
519
523
  else {
520
524
  var n = this.backoff.duration();
521
525
  i("will wait %dms before reconnect attempt", n), this.reconnecting = !0;
522
- var p = setTimeout(function() {
526
+ var f = setTimeout(function() {
523
527
  s.skipReconnect || (i("attempting reconnect"), s.emitAll("reconnect_attempt", s.backoff.attempts), s.emitAll("reconnecting", s.backoff.attempts), s.skipReconnect || s.open(function(g) {
524
528
  g ? (i("reconnect attempt error"), s.reconnecting = !1, s.reconnect(), s.emitAll("reconnect_error", g.data)) : (i("reconnect success"), s.onreconnect());
525
529
  }));
526
530
  }, n);
527
531
  this.subs.push({
528
532
  destroy: function() {
529
- clearTimeout(p);
533
+ clearTimeout(f);
530
534
  }
531
535
  });
532
536
  }
@@ -558,10 +562,10 @@ function qe() {
558
562
  t.exports = e;
559
563
  }, {}],
560
564
  5: [function(a, t, e) {
561
- function r(n, p) {
562
- this.io = n, this.nsp = p, this.json = this, this.ids = 0, this.acks = {}, this.io.autoConnect && this.open(), this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0;
565
+ function r(n, f) {
566
+ this.io = n, this.nsp = f, this.json = this, this.ids = 0, this.acks = {}, this.io.autoConnect && this.open(), this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0;
563
567
  }
564
- var o = a("socket.io-parser"), c = a("component-emitter"), f = a("to-array"), h = a("./on"), d = a("component-bind"), i = a("debug")("socket.io-client:socket"), u = a("has-binary");
568
+ var o = a("socket.io-parser"), c = a("component-emitter"), u = a("to-array"), h = a("./on"), d = a("component-bind"), i = a("debug")("socket.io-client:socket"), p = a("has-binary");
565
569
  t.exports = r;
566
570
  var l = {
567
571
  connect: 1,
@@ -583,15 +587,15 @@ function qe() {
583
587
  }, r.prototype.open = r.prototype.connect = function() {
584
588
  return this.connected ? this : (this.subEvents(), this.io.open(), this.io.readyState == "open" && this.onopen(), this);
585
589
  }, r.prototype.send = function() {
586
- var n = f(arguments);
590
+ var n = u(arguments);
587
591
  return n.unshift("message"), this.emit.apply(this, n), this;
588
592
  }, r.prototype.emit = function(n) {
589
593
  if (l.hasOwnProperty(n))
590
594
  return s.apply(this, arguments), this;
591
- var p = f(arguments), g = o.EVENT;
592
- u(p) && (g = o.BINARY_EVENT);
593
- var y = { type: g, data: p };
594
- return typeof p[p.length - 1] == "function" && (i("emitting packet with ack id %d", this.ids), this.acks[this.ids] = p.pop(), y.id = this.ids++), this.connected ? this.packet(y) : this.sendBuffer.push(y), this;
595
+ var f = u(arguments), g = o.EVENT;
596
+ p(f) && (g = o.BINARY_EVENT);
597
+ var y = { type: g, data: f };
598
+ return typeof f[f.length - 1] == "function" && (i("emitting packet with ack id %d", this.ids), this.acks[this.ids] = f.pop(), y.id = this.ids++), this.connected ? this.packet(y) : this.sendBuffer.push(y), this;
595
599
  }, r.prototype.packet = function(n) {
596
600
  n.nsp = this.nsp, this.io.packet(n);
597
601
  }, r.prototype.onopen = function() {
@@ -623,23 +627,23 @@ function qe() {
623
627
  this.emit("error", n.data);
624
628
  }
625
629
  }, r.prototype.onevent = function(n) {
626
- var p = n.data || [];
627
- i("emitting event %j", p), n.id != null && (i("attaching ack callback to event"), p.push(this.ack(n.id))), this.connected ? s.apply(this, p) : this.receiveBuffer.push(p);
630
+ var f = n.data || [];
631
+ i("emitting event %j", f), n.id != null && (i("attaching ack callback to event"), f.push(this.ack(n.id))), this.connected ? s.apply(this, f) : this.receiveBuffer.push(f);
628
632
  }, r.prototype.ack = function(n) {
629
- var p = this, g = !1;
633
+ var f = this, g = !1;
630
634
  return function() {
631
635
  if (!g) {
632
636
  g = !0;
633
- var y = f(arguments);
637
+ var y = u(arguments);
634
638
  i("sending ack %j", y);
635
- var b = u(y) ? o.BINARY_ACK : o.ACK;
636
- p.packet({ type: b, id: n, data: y });
639
+ var b = p(y) ? o.BINARY_ACK : o.ACK;
640
+ f.packet({ type: b, id: n, data: y });
637
641
  }
638
642
  };
639
643
  }, r.prototype.onack = function(n) {
640
644
  i("calling ack %s with %j", n.id, n.data);
641
- var p = this.acks[n.id];
642
- p.apply(this, n.data), delete this.acks[n.id];
645
+ var f = this.acks[n.id];
646
+ f.apply(this, n.data), delete this.acks[n.id];
643
647
  }, r.prototype.onconnect = function() {
644
648
  this.connected = !0, this.disconnected = !1, this.emit("connect"), this.emitBuffered();
645
649
  }, r.prototype.emitBuffered = function() {
@@ -672,9 +676,9 @@ function qe() {
672
676
  }],
673
677
  6: [function(a, t) {
674
678
  (function(e) {
675
- function r(f, i) {
676
- var d = f, i = i || e.location;
677
- return f == null && (f = i.protocol + "//" + i.host), typeof f == "string" && (f.charAt(0) == "/" && (f = f.charAt(1) == "/" ? i.protocol + f : i.hostname + f), /^(https?|wss?):\/\//.test(f) || (c("protocol-less url %s", f), f = typeof i < "u" ? i.protocol + "//" + f : "https://" + f), c("parse %s", f), d = o(f)), d.port || (/^(http|ws)$/.test(d.protocol) ? d.port = "80" : /^(http|ws)s$/.test(d.protocol) && (d.port = "443")), d.path = d.path || "/", d.id = d.protocol + "://" + d.host + ":" + d.port, d.href = d.protocol + "://" + d.host + (i && i.port == d.port ? "" : ":" + d.port), d;
679
+ function r(u, i) {
680
+ var d = u, i = i || e.location;
681
+ return u == null && (u = i.protocol + "//" + i.host), typeof u == "string" && (u.charAt(0) == "/" && (u = u.charAt(1) == "/" ? i.protocol + u : i.hostname + u), /^(https?|wss?):\/\//.test(u) || (c("protocol-less url %s", u), u = typeof i < "u" ? i.protocol + "//" + u : "https://" + u), c("parse %s", u), d = o(u)), d.port || (/^(http|ws)$/.test(d.protocol) ? d.port = "80" : /^(http|ws)s$/.test(d.protocol) && (d.port = "443")), d.path = d.path || "/", d.id = d.protocol + "://" + d.host + ":" + d.port, d.href = d.protocol + "://" + d.host + (i && i.port == d.port ? "" : ":" + d.port), d;
678
682
  }
679
683
  var o = a("parseuri"), c = a("debug")("socket.io-client:url");
680
684
  t.exports = r;
@@ -724,32 +728,32 @@ function qe() {
724
728
  t.exports = e, e.prototype.on = e.prototype.addEventListener = function(o, c) {
725
729
  return this._callbacks = this._callbacks || {}, (this._callbacks[o] = this._callbacks[o] || []).push(c), this;
726
730
  }, e.prototype.once = function(o, c) {
727
- function f() {
728
- h.off(o, f), c.apply(this, arguments);
731
+ function u() {
732
+ h.off(o, u), c.apply(this, arguments);
729
733
  }
730
734
  var h = this;
731
- return this._callbacks = this._callbacks || {}, f.fn = c, this.on(o, f), this;
735
+ return this._callbacks = this._callbacks || {}, u.fn = c, this.on(o, u), this;
732
736
  }, e.prototype.off = e.prototype.removeListener = e.prototype.removeAllListeners = e.prototype.removeEventListener = function(o, c) {
733
737
  if (this._callbacks = this._callbacks || {}, arguments.length == 0)
734
738
  return this._callbacks = {}, this;
735
- var f = this._callbacks[o];
736
- if (!f)
739
+ var u = this._callbacks[o];
740
+ if (!u)
737
741
  return this;
738
742
  if (arguments.length == 1)
739
743
  return delete this._callbacks[o], this;
740
- for (var h, d = 0; d < f.length; d++)
741
- if (h = f[d], h === c || h.fn === c) {
742
- f.splice(d, 1);
744
+ for (var h, d = 0; d < u.length; d++)
745
+ if (h = u[d], h === c || h.fn === c) {
746
+ u.splice(d, 1);
743
747
  break;
744
748
  }
745
749
  return this;
746
750
  }, e.prototype.emit = function(o) {
747
751
  this._callbacks = this._callbacks || {};
748
- var c = [].slice.call(arguments, 1), f = this._callbacks[o];
749
- if (f) {
750
- f = f.slice(0);
751
- for (var h = 0, d = f.length; d > h; ++h)
752
- f[h].apply(this, c);
752
+ var c = [].slice.call(arguments, 1), u = this._callbacks[o];
753
+ if (u) {
754
+ u = u.slice(0);
755
+ for (var h = 0, d = u.length; d > h; ++h)
756
+ u[h].apply(this, c);
753
757
  }
754
758
  return this;
755
759
  }, e.prototype.listeners = function(o) {
@@ -762,8 +766,8 @@ function qe() {
762
766
  function e(o) {
763
767
  return e.enabled(o) ? function(c) {
764
768
  c = r(c);
765
- var f = /* @__PURE__ */ new Date(), h = f - (e[o] || f);
766
- e[o] = f, c = o + " " + c + " +" + e.humanize(h), window.console && console.log && Function.prototype.apply.call(console.log, console, arguments);
769
+ var u = /* @__PURE__ */ new Date(), h = u - (e[o] || u);
770
+ e[o] = u, c = o + " " + c + " +" + e.humanize(h), window.console && console.log && Function.prototype.apply.call(console.log, console, arguments);
767
771
  } : function() {
768
772
  };
769
773
  }
@@ -775,18 +779,18 @@ function qe() {
775
779
  localStorage.debug = o;
776
780
  } catch {
777
781
  }
778
- for (var c = (o || "").split(/[\s,]+/), f = c.length, h = 0; f > h; h++)
782
+ for (var c = (o || "").split(/[\s,]+/), u = c.length, h = 0; u > h; h++)
779
783
  o = c[h].replace("*", ".*?"), o[0] === "-" ? e.skips.push(new RegExp("^" + o.substr(1) + "$")) : e.names.push(new RegExp("^" + o + "$"));
780
784
  }, e.disable = function() {
781
785
  e.enable("");
782
786
  }, e.humanize = function(o) {
783
- var c = 1e3, f = 6e4, h = 60 * f;
784
- return o >= h ? (o / h).toFixed(1) + "h" : o >= f ? (o / f).toFixed(1) + "m" : o >= c ? (o / c | 0) + "s" : o + "ms";
787
+ var c = 1e3, u = 6e4, h = 60 * u;
788
+ return o >= h ? (o / h).toFixed(1) + "h" : o >= u ? (o / u).toFixed(1) + "m" : o >= c ? (o / c | 0) + "s" : o + "ms";
785
789
  }, e.enabled = function(o) {
786
- for (var c = 0, f = e.skips.length; f > c; c++)
790
+ for (var c = 0, u = e.skips.length; u > c; c++)
787
791
  if (e.skips[c].test(o))
788
792
  return !1;
789
- for (var c = 0, f = e.names.length; f > c; c++)
793
+ for (var c = 0, u = e.names.length; u > c; c++)
790
794
  if (e.names[c].test(o))
791
795
  return !0;
792
796
  return !1;
@@ -804,33 +808,33 @@ function qe() {
804
808
  }, { "./socket": 13, "engine.io-parser": 25 }],
805
809
  13: [function(a, t) {
806
810
  (function(e) {
807
- function r(n, p) {
811
+ function r(n, f) {
808
812
  if (!(this instanceof r))
809
- return new r(n, p);
810
- if (p = p || {}, n && typeof n == "object" && (p = n, n = null), n && (n = u(n), p.host = n.host, p.secure = n.protocol == "https" || n.protocol == "wss", p.port = n.port, n.query && (p.query = n.query)), this.secure = p.secure != null ? p.secure : e.location && location.protocol == "https:", p.host) {
811
- var g = p.host.split(":");
812
- p.hostname = g.shift(), g.length ? p.port = g.pop() : p.port || (p.port = this.secure ? "443" : "80");
813
+ return new r(n, f);
814
+ if (f = f || {}, n && typeof n == "object" && (f = n, n = null), n && (n = p(n), f.host = n.host, f.secure = n.protocol == "https" || n.protocol == "wss", f.port = n.port, n.query && (f.query = n.query)), this.secure = f.secure != null ? f.secure : e.location && location.protocol == "https:", f.host) {
815
+ var g = f.host.split(":");
816
+ f.hostname = g.shift(), g.length ? f.port = g.pop() : f.port || (f.port = this.secure ? "443" : "80");
813
817
  }
814
- this.agent = p.agent || !1, this.hostname = p.hostname || (e.location ? location.hostname : "localhost"), this.port = p.port || (e.location && location.port ? location.port : this.secure ? 443 : 80), this.query = p.query || {}, typeof this.query == "string" && (this.query = s.decode(this.query)), this.upgrade = p.upgrade !== !1, this.path = (p.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!p.forceJSONP, this.jsonp = p.jsonp !== !1, this.forceBase64 = !!p.forceBase64, this.enablesXDR = !!p.enablesXDR, this.timestampParam = p.timestampParam || "t", this.timestampRequests = p.timestampRequests, this.transports = p.transports || ["polling", "websocket"], this.readyState = "", this.writeBuffer = [], this.callbackBuffer = [], this.policyPort = p.policyPort || 843, this.rememberUpgrade = p.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = p.onlyBinaryUpgrades, this.pfx = p.pfx || null, this.key = p.key || null, this.passphrase = p.passphrase || null, this.cert = p.cert || null, this.ca = p.ca || null, this.ciphers = p.ciphers || null, this.rejectUnauthorized = p.rejectUnauthorized || null, this.open();
818
+ this.agent = f.agent || !1, this.hostname = f.hostname || (e.location ? location.hostname : "localhost"), this.port = f.port || (e.location && location.port ? location.port : this.secure ? 443 : 80), this.query = f.query || {}, typeof this.query == "string" && (this.query = s.decode(this.query)), this.upgrade = f.upgrade !== !1, this.path = (f.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!f.forceJSONP, this.jsonp = f.jsonp !== !1, this.forceBase64 = !!f.forceBase64, this.enablesXDR = !!f.enablesXDR, this.timestampParam = f.timestampParam || "t", this.timestampRequests = f.timestampRequests, this.transports = f.transports || ["polling", "websocket"], this.readyState = "", this.writeBuffer = [], this.callbackBuffer = [], this.policyPort = f.policyPort || 843, this.rememberUpgrade = f.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = f.onlyBinaryUpgrades, this.pfx = f.pfx || null, this.key = f.key || null, this.passphrase = f.passphrase || null, this.cert = f.cert || null, this.ca = f.ca || null, this.ciphers = f.ciphers || null, this.rejectUnauthorized = f.rejectUnauthorized || null, this.open();
815
819
  }
816
820
  function o(n) {
817
- var p = {};
821
+ var f = {};
818
822
  for (var g in n)
819
- n.hasOwnProperty(g) && (p[g] = n[g]);
820
- return p;
823
+ n.hasOwnProperty(g) && (f[g] = n[g]);
824
+ return f;
821
825
  }
822
- var c = a("./transports"), f = a("component-emitter"), h = a("debug")("engine.io-client:socket"), d = a("indexof"), i = a("engine.io-parser"), u = a("parseuri"), l = a("parsejson"), s = a("parseqs");
823
- t.exports = r, r.priorWebsocketSuccess = !1, f(r.prototype), r.protocol = i.protocol, r.Socket = r, r.Transport = a("./transport"), r.transports = a("./transports"), r.parser = a("engine.io-parser"), r.prototype.createTransport = function(n) {
826
+ var c = a("./transports"), u = a("component-emitter"), h = a("debug")("engine.io-client:socket"), d = a("indexof"), i = a("engine.io-parser"), p = a("parseuri"), l = a("parsejson"), s = a("parseqs");
827
+ t.exports = r, r.priorWebsocketSuccess = !1, u(r.prototype), r.protocol = i.protocol, r.Socket = r, r.Transport = a("./transport"), r.transports = a("./transports"), r.parser = a("engine.io-parser"), r.prototype.createTransport = function(n) {
824
828
  h('creating transport "%s"', n);
825
- var p = o(this.query);
826
- p.EIO = i.protocol, p.transport = n, this.id && (p.sid = this.id);
829
+ var f = o(this.query);
830
+ f.EIO = i.protocol, f.transport = n, this.id && (f.sid = this.id);
827
831
  var g = new c[n]({
828
832
  agent: this.agent,
829
833
  hostname: this.hostname,
830
834
  port: this.port,
831
835
  secure: this.secure,
832
836
  path: this.path,
833
- query: p,
837
+ query: f,
834
838
  forceJSONP: this.forceJSONP,
835
839
  jsonp: this.jsonp,
836
840
  forceBase64: this.forceBase64,
@@ -849,9 +853,9 @@ function qe() {
849
853
  });
850
854
  return g;
851
855
  }, r.prototype.open = function() {
852
- var p;
856
+ var f;
853
857
  if (this.rememberUpgrade && r.priorWebsocketSuccess && this.transports.indexOf("websocket") != -1)
854
- p = "websocket";
858
+ f = "websocket";
855
859
  else {
856
860
  if (this.transports.length == 0) {
857
861
  var n = this;
@@ -859,30 +863,30 @@ function qe() {
859
863
  n.emit("error", "No transports available");
860
864
  }, 0);
861
865
  }
862
- p = this.transports[0];
866
+ f = this.transports[0];
863
867
  }
864
868
  this.readyState = "opening";
865
- var p;
869
+ var f;
866
870
  try {
867
- p = this.createTransport(p);
871
+ f = this.createTransport(f);
868
872
  } catch {
869
873
  return this.transports.shift(), void this.open();
870
874
  }
871
- p.open(), this.setTransport(p);
875
+ f.open(), this.setTransport(f);
872
876
  }, r.prototype.setTransport = function(n) {
873
877
  h("setting transport %s", n.name);
874
- var p = this;
878
+ var f = this;
875
879
  this.transport && (h("clearing existing transport %s", this.transport.name), this.transport.removeAllListeners()), this.transport = n, n.on("drain", function() {
876
- p.onDrain();
880
+ f.onDrain();
877
881
  }).on("packet", function(g) {
878
- p.onPacket(g);
882
+ f.onPacket(g);
879
883
  }).on("error", function(g) {
880
- p.onError(g);
884
+ f.onError(g);
881
885
  }).on("close", function() {
882
- p.onClose("transport close");
886
+ f.onClose("transport close");
883
887
  });
884
888
  }, r.prototype.probe = function(n) {
885
- function p() {
889
+ function f() {
886
890
  if (w.onlyBinaryUpgrades) {
887
891
  var A = !this.supportsBinary && w.transport.supportsBinary;
888
892
  k = k || A;
@@ -922,15 +926,15 @@ function qe() {
922
926
  I && A.name != I.name && (h('"%s" works - aborting "%s"', A.name, I.name), g());
923
927
  }
924
928
  function P() {
925
- I.removeListener("open", p), I.removeListener("error", y), I.removeListener("close", b), w.removeListener("close", j), w.removeListener("upgrading", x);
929
+ I.removeListener("open", f), I.removeListener("error", y), I.removeListener("close", b), w.removeListener("close", j), w.removeListener("upgrading", x);
926
930
  }
927
931
  h('probing transport "%s"', n);
928
932
  var I = this.createTransport(n, { probe: 1 }), k = !1, w = this;
929
- r.priorWebsocketSuccess = !1, I.once("open", p), I.once("error", y), I.once("close", b), this.once("close", j), this.once("upgrading", x), I.open();
933
+ r.priorWebsocketSuccess = !1, I.once("open", f), I.once("error", y), I.once("close", b), this.once("close", j), this.once("upgrading", x), I.open();
930
934
  }, r.prototype.onOpen = function() {
931
935
  if (h("socket open"), this.readyState = "open", r.priorWebsocketSuccess = this.transport.name == "websocket", this.emit("open"), this.flush(), this.readyState == "open" && this.upgrade && this.transport.pause) {
932
936
  h("starting upgrade probes");
933
- for (var n = 0, p = this.upgrades.length; p > n; n++)
937
+ for (var n = 0, f = this.upgrades.length; f > n; n++)
934
938
  this.probe(this.upgrades[n]);
935
939
  }
936
940
  }, r.prototype.onPacket = function(n) {
@@ -943,8 +947,8 @@ function qe() {
943
947
  this.setPing();
944
948
  break;
945
949
  case "error":
946
- var p = new Error("server error");
947
- p.code = n.data, this.emit("error", p);
950
+ var f = new Error("server error");
951
+ f.code = n.data, this.emit("error", f);
948
952
  break;
949
953
  case "message":
950
954
  this.emit("data", n.data), this.emit("message", n.data);
@@ -955,10 +959,10 @@ function qe() {
955
959
  this.emit("handshake", n), this.id = n.sid, this.transport.query.sid = n.sid, this.upgrades = this.filterUpgrades(n.upgrades), this.pingInterval = n.pingInterval, this.pingTimeout = n.pingTimeout, this.onOpen(), this.readyState != "closed" && (this.setPing(), this.removeListener("heartbeat", this.onHeartbeat), this.on("heartbeat", this.onHeartbeat));
956
960
  }, r.prototype.onHeartbeat = function(n) {
957
961
  clearTimeout(this.pingTimeoutTimer);
958
- var p = this;
959
- p.pingTimeoutTimer = setTimeout(function() {
960
- p.readyState != "closed" && p.onClose("ping timeout");
961
- }, n || p.pingInterval + p.pingTimeout);
962
+ var f = this;
963
+ f.pingTimeoutTimer = setTimeout(function() {
964
+ f.readyState != "closed" && f.onClose("ping timeout");
965
+ }, n || f.pingInterval + f.pingTimeout);
962
966
  }, r.prototype.setPing = function() {
963
967
  var n = this;
964
968
  clearTimeout(n.pingIntervalTimer), n.pingIntervalTimer = setTimeout(function() {
@@ -972,22 +976,22 @@ function qe() {
972
976
  this.writeBuffer.splice(0, this.prevBufferLen), this.callbackBuffer.splice(0, this.prevBufferLen), this.prevBufferLen = 0, this.writeBuffer.length == 0 ? this.emit("drain") : this.flush();
973
977
  }, r.prototype.flush = function() {
974
978
  this.readyState != "closed" && this.transport.writable && !this.upgrading && this.writeBuffer.length && (h("flushing %d packets in socket", this.writeBuffer.length), this.transport.send(this.writeBuffer), this.prevBufferLen = this.writeBuffer.length, this.emit("flush"));
975
- }, r.prototype.write = r.prototype.send = function(n, p) {
976
- return this.sendPacket("message", n, p), this;
977
- }, r.prototype.sendPacket = function(n, p, g) {
979
+ }, r.prototype.write = r.prototype.send = function(n, f) {
980
+ return this.sendPacket("message", n, f), this;
981
+ }, r.prototype.sendPacket = function(n, f, g) {
978
982
  if (this.readyState != "closing" && this.readyState != "closed") {
979
- var y = { type: n, data: p };
983
+ var y = { type: n, data: f };
980
984
  this.emit("packetCreate", y), this.writeBuffer.push(y), this.callbackBuffer.push(g), this.flush();
981
985
  }
982
986
  }, r.prototype.close = function() {
983
987
  function n() {
984
988
  y.onClose("forced close"), h("socket closing - telling transport to close"), y.transport.close();
985
989
  }
986
- function p() {
987
- y.removeListener("upgrade", p), y.removeListener("upgradeError", p), n();
990
+ function f() {
991
+ y.removeListener("upgrade", f), y.removeListener("upgradeError", f), n();
988
992
  }
989
993
  function g() {
990
- y.once("upgrade", p), y.once("upgradeError", p);
994
+ y.once("upgrade", f), y.once("upgradeError", f);
991
995
  }
992
996
  if (this.readyState == "opening" || this.readyState == "open") {
993
997
  this.readyState = "closing";
@@ -999,18 +1003,18 @@ function qe() {
999
1003
  return this;
1000
1004
  }, r.prototype.onError = function(n) {
1001
1005
  h("socket error %j", n), r.priorWebsocketSuccess = !1, this.emit("error", n), this.onClose("transport error", n);
1002
- }, r.prototype.onClose = function(n, p) {
1006
+ }, r.prototype.onClose = function(n, f) {
1003
1007
  if (this.readyState == "opening" || this.readyState == "open" || this.readyState == "closing") {
1004
1008
  h('socket close with reason: "%s"', n);
1005
1009
  var g = this;
1006
1010
  clearTimeout(this.pingIntervalTimer), clearTimeout(this.pingTimeoutTimer), setTimeout(function() {
1007
1011
  g.writeBuffer = [], g.callbackBuffer = [], g.prevBufferLen = 0;
1008
- }, 0), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), this.readyState = "closed", this.id = null, this.emit("close", n, p);
1012
+ }, 0), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), this.readyState = "closed", this.id = null, this.emit("close", n, f);
1009
1013
  }
1010
1014
  }, r.prototype.filterUpgrades = function(n) {
1011
- for (var p = [], g = 0, y = n.length; y > g; g++)
1012
- ~d(this.transports, n[g]) && p.push(n[g]);
1013
- return p;
1015
+ for (var f = [], g = 0, y = n.length; y > g; g++)
1016
+ ~d(this.transports, n[g]) && f.push(n[g]);
1017
+ return f;
1014
1018
  };
1015
1019
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
1016
1020
  }, {
@@ -1029,9 +1033,9 @@ function qe() {
1029
1033
  this.path = c.path, this.hostname = c.hostname, this.port = c.port, this.secure = c.secure, this.query = c.query, this.timestampParam = c.timestampParam, this.timestampRequests = c.timestampRequests, this.readyState = "", this.agent = c.agent || !1, this.socket = c.socket, this.enablesXDR = c.enablesXDR, this.pfx = c.pfx, this.key = c.key, this.passphrase = c.passphrase, this.cert = c.cert, this.ca = c.ca, this.ciphers = c.ciphers, this.rejectUnauthorized = c.rejectUnauthorized;
1030
1034
  }
1031
1035
  var r = a("engine.io-parser"), o = a("component-emitter");
1032
- t.exports = e, o(e.prototype), e.timestamps = 0, e.prototype.onError = function(c, f) {
1036
+ t.exports = e, o(e.prototype), e.timestamps = 0, e.prototype.onError = function(c, u) {
1033
1037
  var h = new Error(c);
1034
- return h.type = "TransportError", h.description = f, this.emit("error", h), this;
1038
+ return h.type = "TransportError", h.description = u, this.emit("error", h), this;
1035
1039
  }, e.prototype.open = function() {
1036
1040
  return (this.readyState == "closed" || this.readyState == "") && (this.readyState = "opening", this.doOpen()), this;
1037
1041
  }, e.prototype.close = function() {
@@ -1043,8 +1047,8 @@ function qe() {
1043
1047
  }, e.prototype.onOpen = function() {
1044
1048
  this.readyState = "open", this.writable = !0, this.emit("open");
1045
1049
  }, e.prototype.onData = function(c) {
1046
- var f = r.decodePacket(c, this.socket.binaryType);
1047
- this.onPacket(f);
1050
+ var u = r.decodePacket(c, this.socket.binaryType);
1051
+ this.onPacket(u);
1048
1052
  }, e.prototype.onPacket = function(c) {
1049
1053
  this.emit("packet", c);
1050
1054
  }, e.prototype.onClose = function() {
@@ -1054,18 +1058,18 @@ function qe() {
1054
1058
  15: [function(a, t, e) {
1055
1059
  (function(r) {
1056
1060
  function o(i) {
1057
- var u, l = !1, s = !1, n = i.jsonp !== !1;
1061
+ var p, l = !1, s = !1, n = i.jsonp !== !1;
1058
1062
  if (r.location) {
1059
- var p = location.protocol == "https:", g = location.port;
1060
- g || (g = p ? 443 : 80), l = i.hostname != location.hostname || g != i.port, s = i.secure != p;
1063
+ var f = location.protocol == "https:", g = location.port;
1064
+ g || (g = f ? 443 : 80), l = i.hostname != location.hostname || g != i.port, s = i.secure != f;
1061
1065
  }
1062
- if (i.xdomain = l, i.xscheme = s, u = new c(i), "open" in u && !i.forceJSONP)
1063
- return new f(i);
1066
+ if (i.xdomain = l, i.xscheme = s, p = new c(i), "open" in p && !i.forceJSONP)
1067
+ return new u(i);
1064
1068
  if (!n)
1065
1069
  throw new Error("JSONP disabled");
1066
1070
  return new h(i);
1067
1071
  }
1068
- var c = a("xmlhttprequest"), f = a("./polling-xhr"), h = a("./polling-jsonp"), d = a("./websocket");
1072
+ var c = a("xmlhttprequest"), u = a("./polling-xhr"), h = a("./polling-jsonp"), d = a("./websocket");
1069
1073
  e.polling = o, e.websocket = d;
1070
1074
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
1071
1075
  }, { "./polling-jsonp": 16, "./polling-xhr": 17, "./websocket": 19, xmlhttprequest: 20 }],
@@ -1073,8 +1077,8 @@ function qe() {
1073
1077
  (function(e) {
1074
1078
  function r() {
1075
1079
  }
1076
- function o(u) {
1077
- c.call(this, u), this.query = this.query || {}, h || (e.___eio || (e.___eio = []), h = e.___eio), this.index = h.length;
1080
+ function o(p) {
1081
+ c.call(this, p), this.query = this.query || {}, h || (e.___eio || (e.___eio = []), h = e.___eio), this.index = h.length;
1078
1082
  var l = this;
1079
1083
  h.push(function(s) {
1080
1084
  l.onData(s);
@@ -1082,55 +1086,55 @@ function qe() {
1082
1086
  l.script && (l.script.onerror = r);
1083
1087
  }, !1);
1084
1088
  }
1085
- var c = a("./polling"), f = a("component-inherit");
1089
+ var c = a("./polling"), u = a("component-inherit");
1086
1090
  t.exports = o;
1087
1091
  var h, d = /\n/g, i = /\\n/g;
1088
- f(o, c), o.prototype.supportsBinary = !1, o.prototype.doClose = function() {
1092
+ u(o, c), o.prototype.supportsBinary = !1, o.prototype.doClose = function() {
1089
1093
  this.script && (this.script.parentNode.removeChild(this.script), this.script = null), this.form && (this.form.parentNode.removeChild(this.form), this.form = null, this.iframe = null), c.prototype.doClose.call(this);
1090
1094
  }, o.prototype.doPoll = function() {
1091
- var u = this, l = document.createElement("script");
1092
- this.script && (this.script.parentNode.removeChild(this.script), this.script = null), l.async = !0, l.src = this.uri(), l.onerror = function(p) {
1093
- u.onError("jsonp poll error", p);
1095
+ var p = this, l = document.createElement("script");
1096
+ this.script && (this.script.parentNode.removeChild(this.script), this.script = null), l.async = !0, l.src = this.uri(), l.onerror = function(f) {
1097
+ p.onError("jsonp poll error", f);
1094
1098
  };
1095
1099
  var s = document.getElementsByTagName("script")[0];
1096
1100
  s.parentNode.insertBefore(l, s), this.script = l;
1097
1101
  var n = typeof navigator < "u" && /gecko/i.test(navigator.userAgent);
1098
1102
  n && setTimeout(function() {
1099
- var p = document.createElement("iframe");
1100
- document.body.appendChild(p), document.body.removeChild(p);
1103
+ var f = document.createElement("iframe");
1104
+ document.body.appendChild(f), document.body.removeChild(f);
1101
1105
  }, 100);
1102
- }, o.prototype.doWrite = function(u, l) {
1106
+ }, o.prototype.doWrite = function(p, l) {
1103
1107
  function s() {
1104
1108
  n(), l();
1105
1109
  }
1106
1110
  function n() {
1107
- if (p.iframe)
1111
+ if (f.iframe)
1108
1112
  try {
1109
- p.form.removeChild(p.iframe);
1113
+ f.form.removeChild(f.iframe);
1110
1114
  } catch (P) {
1111
- p.onError("jsonp polling iframe removal error", P);
1115
+ f.onError("jsonp polling iframe removal error", P);
1112
1116
  }
1113
1117
  try {
1114
- var x = '<iframe src="javascript:0" name="' + p.iframeId + '">';
1118
+ var x = '<iframe src="javascript:0" name="' + f.iframeId + '">';
1115
1119
  g = document.createElement(x);
1116
1120
  } catch {
1117
- g = document.createElement("iframe"), g.name = p.iframeId, g.src = "javascript:0";
1121
+ g = document.createElement("iframe"), g.name = f.iframeId, g.src = "javascript:0";
1118
1122
  }
1119
- g.id = p.iframeId, p.form.appendChild(g), p.iframe = g;
1123
+ g.id = f.iframeId, f.form.appendChild(g), f.iframe = g;
1120
1124
  }
1121
- var p = this;
1125
+ var f = this;
1122
1126
  if (!this.form) {
1123
1127
  var g, y = document.createElement("form"), b = document.createElement("textarea"), j = this.iframeId = "eio_iframe_" + this.index;
1124
1128
  y.className = "socketio", y.style.position = "absolute", y.style.top = "-1000px", y.style.left = "-1000px", y.target = j, y.method = "POST", y.setAttribute("accept-charset", "utf-8"), b.name = "d", y.appendChild(b), document.body.appendChild(y), this.form = y, this.area = b;
1125
1129
  }
1126
- this.form.action = this.uri(), n(), u = u.replace(i, `\\
1127
- `), this.area.value = u.replace(d, "\\n");
1130
+ this.form.action = this.uri(), n(), p = p.replace(i, `\\
1131
+ `), this.area.value = p.replace(d, "\\n");
1128
1132
  try {
1129
1133
  this.form.submit();
1130
1134
  } catch {
1131
1135
  }
1132
1136
  this.iframe.attachEvent ? this.iframe.onreadystatechange = function() {
1133
- p.iframe.readyState == "complete" && s();
1137
+ f.iframe.readyState == "complete" && s();
1134
1138
  } : this.iframe.onload = s;
1135
1139
  };
1136
1140
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -1141,37 +1145,37 @@ function qe() {
1141
1145
  }
1142
1146
  function o(s) {
1143
1147
  if (d.call(this, s), e.location) {
1144
- var n = location.protocol == "https:", p = location.port;
1145
- p || (p = n ? 443 : 80), this.xd = s.hostname != e.location.hostname || p != s.port, this.xs = s.secure != n;
1148
+ var n = location.protocol == "https:", f = location.port;
1149
+ f || (f = n ? 443 : 80), this.xd = s.hostname != e.location.hostname || f != s.port, this.xs = s.secure != n;
1146
1150
  }
1147
1151
  }
1148
1152
  function c(s) {
1149
1153
  this.method = s.method || "GET", this.uri = s.uri, this.xd = !!s.xd, this.xs = !!s.xs, this.async = s.async !== !1, this.data = s.data != null ? s.data : null, this.agent = s.agent, this.isBinary = s.isBinary, this.supportsBinary = s.supportsBinary, this.enablesXDR = s.enablesXDR, this.pfx = s.pfx, this.key = s.key, this.passphrase = s.passphrase, this.cert = s.cert, this.ca = s.ca, this.ciphers = s.ciphers, this.rejectUnauthorized = s.rejectUnauthorized, this.create();
1150
1154
  }
1151
- function f() {
1155
+ function u() {
1152
1156
  for (var s in c.requests)
1153
1157
  c.requests.hasOwnProperty(s) && c.requests[s].abort();
1154
1158
  }
1155
- var h = a("xmlhttprequest"), d = a("./polling"), i = a("component-emitter"), u = a("component-inherit"), l = a("debug")("engine.io-client:polling-xhr");
1156
- t.exports = o, t.exports.Request = c, u(o, d), o.prototype.supportsBinary = !0, o.prototype.request = function(s) {
1159
+ var h = a("xmlhttprequest"), d = a("./polling"), i = a("component-emitter"), p = a("component-inherit"), l = a("debug")("engine.io-client:polling-xhr");
1160
+ t.exports = o, t.exports.Request = c, p(o, d), o.prototype.supportsBinary = !0, o.prototype.request = function(s) {
1157
1161
  return s = s || {}, s.uri = this.uri(), s.xd = this.xd, s.xs = this.xs, s.agent = this.agent || !1, s.supportsBinary = this.supportsBinary, s.enablesXDR = this.enablesXDR, s.pfx = this.pfx, s.key = this.key, s.passphrase = this.passphrase, s.cert = this.cert, s.ca = this.ca, s.ciphers = this.ciphers, s.rejectUnauthorized = this.rejectUnauthorized, new c(s);
1158
1162
  }, o.prototype.doWrite = function(s, n) {
1159
- var p = typeof s != "string" && s !== void 0, g = this.request({ method: "POST", data: s, isBinary: p }), y = this;
1163
+ var f = typeof s != "string" && s !== void 0, g = this.request({ method: "POST", data: s, isBinary: f }), y = this;
1160
1164
  g.on("success", n), g.on("error", function(b) {
1161
1165
  y.onError("xhr post error", b);
1162
1166
  }), this.sendXhr = g;
1163
1167
  }, o.prototype.doPoll = function() {
1164
1168
  l("xhr poll");
1165
1169
  var s = this.request(), n = this;
1166
- s.on("data", function(p) {
1167
- n.onData(p);
1168
- }), s.on("error", function(p) {
1169
- n.onError("xhr poll error", p);
1170
+ s.on("data", function(f) {
1171
+ n.onData(f);
1172
+ }), s.on("error", function(f) {
1173
+ n.onError("xhr poll error", f);
1170
1174
  }), this.pollXhr = s;
1171
1175
  }, i(c.prototype), c.prototype.create = function() {
1172
1176
  var s = { agent: this.agent, xdomain: this.xd, xscheme: this.xs, enablesXDR: this.enablesXDR };
1173
1177
  s.pfx = this.pfx, s.key = this.key, s.passphrase = this.passphrase, s.cert = this.cert, s.ca = this.ca, s.ciphers = this.ciphers, s.rejectUnauthorized = this.rejectUnauthorized;
1174
- var n = this.xhr = new h(s), p = this;
1178
+ var n = this.xhr = new h(s), f = this;
1175
1179
  try {
1176
1180
  if (l("xhr open %s: %s", this.method, this.uri), n.open(this.method, this.uri, this.async), this.supportsBinary && (n.responseType = "arraybuffer"), this.method == "POST")
1177
1181
  try {
@@ -1179,17 +1183,17 @@ function qe() {
1179
1183
  } catch {
1180
1184
  }
1181
1185
  "withCredentials" in n && (n.withCredentials = !0), this.hasXDR() ? (n.onload = function() {
1182
- p.onLoad();
1186
+ f.onLoad();
1183
1187
  }, n.onerror = function() {
1184
- p.onError(n.responseText);
1188
+ f.onError(n.responseText);
1185
1189
  }) : n.onreadystatechange = function() {
1186
- n.readyState == 4 && (n.status == 200 || n.status == 1223 ? p.onLoad() : setTimeout(function() {
1187
- p.onError(n.status);
1190
+ n.readyState == 4 && (n.status == 200 || n.status == 1223 ? f.onLoad() : setTimeout(function() {
1191
+ f.onError(n.status);
1188
1192
  }, 0));
1189
1193
  }, l("xhr data %s", this.data), n.send(this.data);
1190
1194
  } catch (g) {
1191
1195
  return void setTimeout(function() {
1192
- p.onError(g);
1196
+ f.onError(g);
1193
1197
  }, 0);
1194
1198
  }
1195
1199
  e.document && (this.index = c.requestsCount++, c.requests[this.index] = this);
@@ -1217,71 +1221,71 @@ function qe() {
1217
1221
  } catch {
1218
1222
  }
1219
1223
  s = n === "application/octet-stream" ? this.xhr.response : this.supportsBinary ? "ok" : this.xhr.responseText;
1220
- } catch (p) {
1221
- this.onError(p);
1224
+ } catch (f) {
1225
+ this.onError(f);
1222
1226
  }
1223
1227
  s != null && this.onData(s);
1224
1228
  }, c.prototype.hasXDR = function() {
1225
1229
  return typeof e.XDomainRequest < "u" && !this.xs && this.enablesXDR;
1226
1230
  }, c.prototype.abort = function() {
1227
1231
  this.cleanup();
1228
- }, e.document && (c.requestsCount = 0, c.requests = {}, e.attachEvent ? e.attachEvent("onunload", f) : e.addEventListener && e.addEventListener("beforeunload", f, !1));
1232
+ }, e.document && (c.requestsCount = 0, c.requests = {}, e.attachEvent ? e.attachEvent("onunload", u) : e.addEventListener && e.addEventListener("beforeunload", u, !1));
1229
1233
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
1230
1234
  }, { "./polling": 18, "component-emitter": 9, "component-inherit": 21, debug: 22, xmlhttprequest: 20 }],
1231
1235
  18: [function(a, t) {
1232
1236
  function e(i) {
1233
- var u = i && i.forceBase64;
1234
- (!d || u) && (this.supportsBinary = !1), r.call(this, i);
1237
+ var p = i && i.forceBase64;
1238
+ (!d || p) && (this.supportsBinary = !1), r.call(this, i);
1235
1239
  }
1236
- var r = a("../transport"), o = a("parseqs"), c = a("engine.io-parser"), f = a("component-inherit"), h = a("debug")("engine.io-client:polling");
1240
+ var r = a("../transport"), o = a("parseqs"), c = a("engine.io-parser"), u = a("component-inherit"), h = a("debug")("engine.io-client:polling");
1237
1241
  t.exports = e;
1238
1242
  var d = function() {
1239
- var i = a("xmlhttprequest"), u = new i({ xdomain: !1 });
1240
- return u.responseType != null;
1243
+ var i = a("xmlhttprequest"), p = new i({ xdomain: !1 });
1244
+ return p.responseType != null;
1241
1245
  }();
1242
- f(e, r), e.prototype.name = "polling", e.prototype.doOpen = function() {
1246
+ u(e, r), e.prototype.name = "polling", e.prototype.doOpen = function() {
1243
1247
  this.poll();
1244
1248
  }, e.prototype.pause = function(i) {
1245
- function u() {
1249
+ function p() {
1246
1250
  h("paused"), l.readyState = "paused", i();
1247
1251
  }
1248
1252
  var l = this;
1249
1253
  if (this.readyState = "pausing", this.polling || !this.writable) {
1250
1254
  var s = 0;
1251
1255
  this.polling && (h("we are currently polling - waiting to pause"), s++, this.once("pollComplete", function() {
1252
- h("pre-pause polling complete"), --s || u();
1256
+ h("pre-pause polling complete"), --s || p();
1253
1257
  })), this.writable || (h("we are currently writing - waiting to pause"), s++, this.once("drain", function() {
1254
- h("pre-pause writing complete"), --s || u();
1258
+ h("pre-pause writing complete"), --s || p();
1255
1259
  }));
1256
1260
  } else
1257
- u();
1261
+ p();
1258
1262
  }, e.prototype.poll = function() {
1259
1263
  h("polling"), this.polling = !0, this.doPoll(), this.emit("poll");
1260
1264
  }, e.prototype.onData = function(i) {
1261
- var u = this;
1265
+ var p = this;
1262
1266
  h("polling got data %s", i);
1263
1267
  var l = function(s) {
1264
- return u.readyState == "opening" && u.onOpen(), s.type == "close" ? (u.onClose(), !1) : void u.onPacket(s);
1268
+ return p.readyState == "opening" && p.onOpen(), s.type == "close" ? (p.onClose(), !1) : void p.onPacket(s);
1265
1269
  };
1266
1270
  c.decodePayload(i, this.socket.binaryType, l), this.readyState != "closed" && (this.polling = !1, this.emit("pollComplete"), this.readyState == "open" ? this.poll() : h('ignoring poll - transport state "%s"', this.readyState));
1267
1271
  }, e.prototype.doClose = function() {
1268
1272
  function i() {
1269
- h("writing close packet"), u.write([{ type: "close" }]);
1273
+ h("writing close packet"), p.write([{ type: "close" }]);
1270
1274
  }
1271
- var u = this;
1275
+ var p = this;
1272
1276
  this.readyState == "open" ? (h("transport open - closing"), i()) : (h("transport not open - deferring close"), this.once("open", i));
1273
1277
  }, e.prototype.write = function(i) {
1274
1278
  var l = this;
1275
1279
  this.writable = !1;
1276
- var u = function() {
1280
+ var p = function() {
1277
1281
  l.writable = !0, l.emit("drain");
1278
1282
  }, l = this;
1279
1283
  c.encodePayload(i, this.supportsBinary, function(s) {
1280
- l.doWrite(s, u);
1284
+ l.doWrite(s, p);
1281
1285
  });
1282
1286
  }, e.prototype.uri = function() {
1283
- var i = this.query || {}, u = this.secure ? "https" : "http", l = "";
1284
- return this.timestampRequests !== !1 && (i[this.timestampParam] = +/* @__PURE__ */ new Date() + "-" + r.timestamps++), this.supportsBinary || i.sid || (i.b64 = 1), i = o.encode(i), this.port && (u == "https" && this.port != 443 || u == "http" && this.port != 80) && (l = ":" + this.port), i.length && (i = "?" + i), u + "://" + this.hostname + l + this.path + i;
1287
+ var i = this.query || {}, p = this.secure ? "https" : "http", l = "";
1288
+ return this.timestampRequests !== !1 && (i[this.timestampParam] = +/* @__PURE__ */ new Date() + "-" + r.timestamps++), this.supportsBinary || i.sid || (i.b64 = 1), i = o.encode(i), this.port && (p == "https" && this.port != 443 || p == "http" && this.port != 80) && (l = ":" + this.port), i.length && (i = "?" + i), p + "://" + this.hostname + l + this.path + i;
1285
1289
  };
1286
1290
  }, {
1287
1291
  "../transport": 14,
@@ -1293,14 +1297,14 @@ function qe() {
1293
1297
  }],
1294
1298
  19: [function(a, t) {
1295
1299
  function e(i) {
1296
- var u = i && i.forceBase64;
1297
- u && (this.supportsBinary = !1), r.call(this, i);
1300
+ var p = i && i.forceBase64;
1301
+ p && (this.supportsBinary = !1), r.call(this, i);
1298
1302
  }
1299
- var r = a("../transport"), o = a("engine.io-parser"), c = a("parseqs"), f = a("component-inherit"), h = a("debug")("engine.io-client:websocket"), d = a("ws");
1300
- t.exports = e, f(e, r), e.prototype.name = "websocket", e.prototype.supportsBinary = !0, e.prototype.doOpen = function() {
1303
+ var r = a("../transport"), o = a("engine.io-parser"), c = a("parseqs"), u = a("component-inherit"), h = a("debug")("engine.io-client:websocket"), d = a("ws");
1304
+ t.exports = e, u(e, r), e.prototype.name = "websocket", e.prototype.supportsBinary = !0, e.prototype.doOpen = function() {
1301
1305
  if (this.check()) {
1302
- var i = this.uri(), u = void 0, l = { agent: this.agent };
1303
- l.pfx = this.pfx, l.key = this.key, l.passphrase = this.passphrase, l.cert = this.cert, l.ca = this.ca, l.ciphers = this.ciphers, l.rejectUnauthorized = this.rejectUnauthorized, this.ws = new d(i, u, l), this.ws.binaryType === void 0 && (this.supportsBinary = !1), this.ws.binaryType = "arraybuffer", this.addEventListeners();
1306
+ var i = this.uri(), p = void 0, l = { agent: this.agent };
1307
+ l.pfx = this.pfx, l.key = this.key, l.passphrase = this.passphrase, l.cert = this.cert, l.ca = this.ca, l.ciphers = this.ciphers, l.rejectUnauthorized = this.rejectUnauthorized, this.ws = new d(i, p, l), this.ws.binaryType === void 0 && (this.supportsBinary = !1), this.ws.binaryType = "arraybuffer", this.addEventListeners();
1304
1308
  }
1305
1309
  }, e.prototype.addEventListeners = function() {
1306
1310
  var i = this;
@@ -1308,38 +1312,38 @@ function qe() {
1308
1312
  i.onOpen();
1309
1313
  }, this.ws.onclose = function() {
1310
1314
  i.onClose();
1311
- }, this.ws.onmessage = function(u) {
1312
- i.onData(u.data);
1313
- }, this.ws.onerror = function(u) {
1314
- i.onError("websocket error", u);
1315
+ }, this.ws.onmessage = function(p) {
1316
+ i.onData(p.data);
1317
+ }, this.ws.onerror = function(p) {
1318
+ i.onError("websocket error", p);
1315
1319
  };
1316
1320
  }, typeof navigator < "u" && /iPad|iPhone|iPod/i.test(navigator.userAgent) && (e.prototype.onData = function(i) {
1317
- var u = this;
1321
+ var p = this;
1318
1322
  setTimeout(function() {
1319
- r.prototype.onData.call(u, i);
1323
+ r.prototype.onData.call(p, i);
1320
1324
  }, 0);
1321
1325
  }), e.prototype.write = function(i) {
1322
- function u() {
1326
+ function p() {
1323
1327
  l.writable = !0, l.emit("drain");
1324
1328
  }
1325
1329
  var l = this;
1326
1330
  this.writable = !1;
1327
1331
  for (var s = 0, n = i.length; n > s; s++)
1328
- o.encodePacket(i[s], this.supportsBinary, function(p) {
1332
+ o.encodePacket(i[s], this.supportsBinary, function(f) {
1329
1333
  try {
1330
- l.ws.send(p);
1334
+ l.ws.send(f);
1331
1335
  } catch {
1332
1336
  h("websocket closed before onclose event");
1333
1337
  }
1334
1338
  });
1335
- setTimeout(u, 0);
1339
+ setTimeout(p, 0);
1336
1340
  }, e.prototype.onClose = function() {
1337
1341
  r.prototype.onClose.call(this);
1338
1342
  }, e.prototype.doClose = function() {
1339
1343
  typeof this.ws < "u" && this.ws.close();
1340
1344
  }, e.prototype.uri = function() {
1341
- var i = this.query || {}, u = this.secure ? "wss" : "ws", l = "";
1342
- return this.port && (u == "wss" && this.port != 443 || u == "ws" && this.port != 80) && (l = ":" + this.port), this.timestampRequests && (i[this.timestampParam] = +/* @__PURE__ */ new Date()), this.supportsBinary || (i.b64 = 1), i = c.encode(i), i.length && (i = "?" + i), u + "://" + this.hostname + l + this.path + i;
1345
+ var i = this.query || {}, p = this.secure ? "wss" : "ws", l = "";
1346
+ return this.port && (p == "wss" && this.port != 443 || p == "ws" && this.port != 80) && (l = ":" + this.port), this.timestampRequests && (i[this.timestampParam] = +/* @__PURE__ */ new Date()), this.supportsBinary || (i.b64 = 1), i = c.encode(i), i.length && (i = "?" + i), p + "://" + this.hostname + l + this.path + i;
1343
1347
  }, e.prototype.check = function() {
1344
1348
  return !(!d || "__initialize" in d && this.name === e.prototype.name);
1345
1349
  };
@@ -1347,14 +1351,14 @@ function qe() {
1347
1351
  20: [function(a, t) {
1348
1352
  var e = a("has-cors");
1349
1353
  t.exports = function(r) {
1350
- var o = r.xdomain, c = r.xscheme, f = r.enablesXDR;
1354
+ var o = r.xdomain, c = r.xscheme, u = r.enablesXDR;
1351
1355
  try {
1352
1356
  if (typeof XMLHttpRequest < "u" && (!o || e))
1353
1357
  return new XMLHttpRequest();
1354
1358
  } catch {
1355
1359
  }
1356
1360
  try {
1357
- if (typeof XDomainRequest < "u" && !c && f)
1361
+ if (typeof XDomainRequest < "u" && !c && u)
1358
1362
  return new XDomainRequest();
1359
1363
  } catch {
1360
1364
  }
@@ -1380,17 +1384,17 @@ function qe() {
1380
1384
  var d = arguments, i = this.useColors;
1381
1385
  if (d[0] = (i ? "%c" : "") + this.namespace + (i ? " %c" : " ") + d[0] + (i ? "%c " : " ") + "+" + e.humanize(this.diff), !i)
1382
1386
  return d;
1383
- var u = "color: " + this.color;
1384
- d = [d[0], u, "color: inherit"].concat(Array.prototype.slice.call(d, 1));
1387
+ var p = "color: " + this.color;
1388
+ d = [d[0], p, "color: inherit"].concat(Array.prototype.slice.call(d, 1));
1385
1389
  var l = 0, s = 0;
1386
1390
  return d[0].replace(/%[a-z%]/g, function(n) {
1387
1391
  n !== "%%" && (l++, n === "%c" && (s = l));
1388
- }), d.splice(s, 0, u), d;
1392
+ }), d.splice(s, 0, p), d;
1389
1393
  }
1390
1394
  function c() {
1391
1395
  return typeof console == "object" && typeof console.log == "function" && Function.prototype.apply.call(console.log, console, arguments);
1392
1396
  }
1393
- function f(d) {
1397
+ function u(d) {
1394
1398
  try {
1395
1399
  d == null ? localStorage.removeItem("debug") : localStorage.debug = d;
1396
1400
  } catch {
@@ -1404,13 +1408,13 @@ function qe() {
1404
1408
  }
1405
1409
  return d;
1406
1410
  }
1407
- e = t.exports = a("./debug"), e.log = c, e.formatArgs = o, e.save = f, e.load = h, e.useColors = r, e.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], e.formatters.j = function(d) {
1411
+ e = t.exports = a("./debug"), e.log = c, e.formatArgs = o, e.save = u, e.load = h, e.useColors = r, e.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], e.formatters.j = function(d) {
1408
1412
  return JSON.stringify(d);
1409
1413
  }, e.enable(h());
1410
1414
  }, { "./debug": 23 }],
1411
1415
  23: [function(a, t, e) {
1412
1416
  function r() {
1413
- return e.colors[u++ % e.colors.length];
1417
+ return e.colors[p++ % e.colors.length];
1414
1418
  }
1415
1419
  function o(l) {
1416
1420
  function s() {
@@ -1436,15 +1440,15 @@ function qe() {
1436
1440
  P.apply(g, j);
1437
1441
  }
1438
1442
  s.enabled = !1, n.enabled = !0;
1439
- var p = e.enabled(l) ? n : s;
1440
- return p.namespace = l, p;
1443
+ var f = e.enabled(l) ? n : s;
1444
+ return f.namespace = l, f;
1441
1445
  }
1442
1446
  function c(l) {
1443
1447
  e.save(l);
1444
- for (var s = (l || "").split(/[\s,]+/), n = s.length, p = 0; n > p; p++)
1445
- s[p] && (l = s[p].replace(/\*/g, ".*?"), l[0] === "-" ? e.skips.push(new RegExp("^" + l.substr(1) + "$")) : e.names.push(new RegExp("^" + l + "$")));
1448
+ for (var s = (l || "").split(/[\s,]+/), n = s.length, f = 0; n > f; f++)
1449
+ s[f] && (l = s[f].replace(/\*/g, ".*?"), l[0] === "-" ? e.skips.push(new RegExp("^" + l.substr(1) + "$")) : e.names.push(new RegExp("^" + l + "$")));
1446
1450
  }
1447
- function f() {
1451
+ function u() {
1448
1452
  e.enable("");
1449
1453
  }
1450
1454
  function h(l) {
@@ -1460,19 +1464,19 @@ function qe() {
1460
1464
  function d(l) {
1461
1465
  return l instanceof Error ? l.stack || l.message : l;
1462
1466
  }
1463
- e = t.exports = o, e.coerce = d, e.disable = f, e.enable = c, e.enabled = h, e.humanize = a("ms"), e.names = [], e.skips = [], e.formatters = {};
1464
- var i, u = 0;
1467
+ e = t.exports = o, e.coerce = d, e.disable = u, e.enable = c, e.enabled = h, e.humanize = a("ms"), e.names = [], e.skips = [], e.formatters = {};
1468
+ var i, p = 0;
1465
1469
  }, { ms: 24 }],
1466
1470
  24: [function(a, t) {
1467
1471
  function e(l) {
1468
1472
  var s = /^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(l);
1469
1473
  if (s) {
1470
- var n = parseFloat(s[1]), p = (s[2] || "ms").toLowerCase();
1471
- switch (p) {
1474
+ var n = parseFloat(s[1]), f = (s[2] || "ms").toLowerCase();
1475
+ switch (f) {
1472
1476
  case "years":
1473
1477
  case "year":
1474
1478
  case "y":
1475
- return n * u;
1479
+ return n * p;
1476
1480
  case "days":
1477
1481
  case "day":
1478
1482
  case "d":
@@ -1488,22 +1492,22 @@ function qe() {
1488
1492
  case "seconds":
1489
1493
  case "second":
1490
1494
  case "s":
1491
- return n * f;
1495
+ return n * u;
1492
1496
  case "ms":
1493
1497
  return n;
1494
1498
  }
1495
1499
  }
1496
1500
  }
1497
1501
  function r(l) {
1498
- return l >= i ? Math.round(l / i) + "d" : l >= d ? Math.round(l / d) + "h" : l >= h ? Math.round(l / h) + "m" : l >= f ? Math.round(l / f) + "s" : l + "ms";
1502
+ return l >= i ? Math.round(l / i) + "d" : l >= d ? Math.round(l / d) + "h" : l >= h ? Math.round(l / h) + "m" : l >= u ? Math.round(l / u) + "s" : l + "ms";
1499
1503
  }
1500
1504
  function o(l) {
1501
- return c(l, i, "day") || c(l, d, "hour") || c(l, h, "minute") || c(l, f, "second") || l + " ms";
1505
+ return c(l, i, "day") || c(l, d, "hour") || c(l, h, "minute") || c(l, u, "second") || l + " ms";
1502
1506
  }
1503
1507
  function c(l, s, n) {
1504
1508
  return s > l ? void 0 : 1.5 * s > l ? Math.floor(l / s) + " " + n : Math.ceil(l / s) + " " + n + "s";
1505
1509
  }
1506
- var f = 1e3, h = 60 * f, d = 60 * h, i = 24 * d, u = 365.25 * i;
1510
+ var u = 1e3, h = 60 * u, d = 60 * h, i = 24 * d, p = 365.25 * i;
1507
1511
  t.exports = function(l, s) {
1508
1512
  return s = s || {}, typeof l == "string" ? e(l) : s.long ? o(l) : r(l);
1509
1513
  };
@@ -1523,7 +1527,7 @@ function qe() {
1523
1527
  O[B + 1] = m[B];
1524
1528
  return A(O.buffer);
1525
1529
  }
1526
- function f(k, w, A) {
1530
+ function u(k, w, A) {
1527
1531
  if (!w)
1528
1532
  return e.encodeBase64Packet(k, A);
1529
1533
  var v = new FileReader();
@@ -1535,21 +1539,21 @@ function qe() {
1535
1539
  if (!w)
1536
1540
  return e.encodeBase64Packet(k, A);
1537
1541
  if (b)
1538
- return f(k, w, A);
1542
+ return u(k, w, A);
1539
1543
  var v = new Uint8Array(1);
1540
1544
  v[0] = j[k.type];
1541
1545
  var m = new I([v.buffer, k.data]);
1542
1546
  return A(m);
1543
1547
  }
1544
1548
  function d(k, w, A) {
1545
- for (var v = new Array(k.length), m = n(k.length, A), O = function(R, S, X) {
1546
- w(S, function(K, G) {
1547
- v[R] = G, X(K, v);
1549
+ for (var v = new Array(k.length), m = n(k.length, A), O = function(R, S, K) {
1550
+ w(S, function(X, G) {
1551
+ v[R] = G, K(X, v);
1548
1552
  });
1549
1553
  }, B = 0; B < k.length; B++)
1550
1554
  O(B, k[B], m);
1551
1555
  }
1552
- var i = a("./keys"), u = a("has-binary"), l = a("arraybuffer.slice"), s = a("base64-arraybuffer"), n = a("after"), p = a("utf8"), g = navigator.userAgent.match(/Android/i), y = /PhantomJS/i.test(navigator.userAgent), b = g || y;
1556
+ var i = a("./keys"), p = a("has-binary"), l = a("arraybuffer.slice"), s = a("base64-arraybuffer"), n = a("after"), f = a("utf8"), g = navigator.userAgent.match(/Android/i), y = /PhantomJS/i.test(navigator.userAgent), b = g || y;
1553
1557
  e.protocol = 3;
1554
1558
  var j = e.packets = { open: 0, close: 1, ping: 2, pong: 3, message: 4, upgrade: 5, noop: 6 }, x = i(j), P = { type: "error", data: "parser error" }, I = a("blob");
1555
1559
  e.encodePacket = function(k, w, A, v) {
@@ -1562,7 +1566,7 @@ function qe() {
1562
1566
  if (m && m.base64)
1563
1567
  return o(k, v);
1564
1568
  var O = j[k.type];
1565
- return k.data !== void 0 && (O += A ? p.encode(String(k.data)) : String(k.data)), v("" + O);
1569
+ return k.data !== void 0 && (O += A ? f.encode(String(k.data)) : String(k.data)), v("" + O);
1566
1570
  }, e.encodeBase64Packet = function(k, w) {
1567
1571
  var A = "b" + e.packets[k.type];
1568
1572
  if (I && k.data instanceof I) {
@@ -1587,7 +1591,7 @@ function qe() {
1587
1591
  return e.decodeBase64Packet(k.substr(1), w);
1588
1592
  if (A)
1589
1593
  try {
1590
- k = p.decode(k);
1594
+ k = f.decode(k);
1591
1595
  } catch {
1592
1596
  return P;
1593
1597
  }
@@ -1615,7 +1619,7 @@ function qe() {
1615
1619
  });
1616
1620
  }
1617
1621
  typeof w == "function" && (A = w, w = null);
1618
- var O = u(k);
1622
+ var O = p(k);
1619
1623
  return w && O ? I && !b ? e.encodePayloadAsBlob(k, A) : e.encodePayloadAsArrayBuffer(k, A) : k.length ? void d(k, m, function(B, R) {
1620
1624
  return A(R.join(""));
1621
1625
  }) : A("0:");
@@ -1627,17 +1631,17 @@ function qe() {
1627
1631
  if (k == "")
1628
1632
  return A(P, 0, 1);
1629
1633
  for (var m, O, B = "", R = 0, S = k.length; S > R; R++) {
1630
- var X = k.charAt(R);
1631
- if (X != ":")
1632
- B += X;
1634
+ var K = k.charAt(R);
1635
+ if (K != ":")
1636
+ B += K;
1633
1637
  else {
1634
1638
  if (B == "" || B != (m = Number(B)) || (O = k.substr(R + 1, m), B != O.length))
1635
1639
  return A(P, 0, 1);
1636
1640
  if (O.length) {
1637
1641
  if (v = e.decodePacket(O, w, !0), P.type == v.type && P.data == v.data)
1638
1642
  return A(P, 0, 1);
1639
- var K = A(v, R + m, S);
1640
- if (K === !1)
1643
+ var X = A(v, R + m, S);
1644
+ if (X === !1)
1641
1645
  return;
1642
1646
  }
1643
1647
  R += m, B = "";
@@ -1651,22 +1655,22 @@ function qe() {
1651
1655
  });
1652
1656
  }
1653
1657
  return k.length ? void d(k, A, function(v, m) {
1654
- var O = m.reduce(function(S, X) {
1655
- var K;
1656
- return K = typeof X == "string" ? X.length : X.byteLength, S + K.toString().length + K + 2;
1658
+ var O = m.reduce(function(S, K) {
1659
+ var X;
1660
+ return X = typeof K == "string" ? K.length : K.byteLength, S + X.toString().length + X + 2;
1657
1661
  }, 0), B = new Uint8Array(O), R = 0;
1658
1662
  return m.forEach(function(S) {
1659
- var X = typeof S == "string", K = S;
1660
- if (X) {
1663
+ var K = typeof S == "string", X = S;
1664
+ if (K) {
1661
1665
  for (var G = new Uint8Array(S.length), M = 0; M < S.length; M++)
1662
1666
  G[M] = S.charCodeAt(M);
1663
- K = G.buffer;
1667
+ X = G.buffer;
1664
1668
  }
1665
- B[R++] = X ? 0 : 1;
1666
- for (var J = K.byteLength.toString(), M = 0; M < J.length; M++)
1667
- B[R++] = parseInt(J[M]);
1669
+ B[R++] = K ? 0 : 1;
1670
+ for (var z = X.byteLength.toString(), M = 0; M < z.length; M++)
1671
+ B[R++] = parseInt(z[M]);
1668
1672
  B[R++] = 255;
1669
- for (var G = new Uint8Array(K), M = 0; M < G.length; M++)
1673
+ for (var G = new Uint8Array(X), M = 0; M < G.length; M++)
1670
1674
  B[R++] = G[M];
1671
1675
  }), w(B.buffer);
1672
1676
  }) : w(new ArrayBuffer(0));
@@ -1679,9 +1683,9 @@ function qe() {
1679
1683
  R[S] = O.charCodeAt(S);
1680
1684
  O = R.buffer, B[0] = 0;
1681
1685
  }
1682
- for (var X = O instanceof ArrayBuffer ? O.byteLength : O.size, K = X.toString(), G = new Uint8Array(K.length + 1), S = 0; S < K.length; S++)
1683
- G[S] = parseInt(K[S]);
1684
- if (G[K.length] = 255, I) {
1686
+ for (var K = O instanceof ArrayBuffer ? O.byteLength : O.size, X = K.toString(), G = new Uint8Array(X.length + 1), S = 0; S < X.length; S++)
1687
+ G[S] = parseInt(X[S]);
1688
+ if (G[X.length] = 255, I) {
1685
1689
  var M = new I([B.buffer, G.buffer, O]);
1686
1690
  m(null, M);
1687
1691
  }
@@ -1693,31 +1697,31 @@ function qe() {
1693
1697
  }, e.decodePayloadAsBinary = function(k, w, A) {
1694
1698
  typeof w == "function" && (A = w, w = null);
1695
1699
  for (var v = k, m = [], O = !1; v.byteLength > 0; ) {
1696
- for (var B = new Uint8Array(v), R = B[0] === 0, S = "", X = 1; B[X] != 255; X++) {
1700
+ for (var B = new Uint8Array(v), R = B[0] === 0, S = "", K = 1; B[K] != 255; K++) {
1697
1701
  if (S.length > 310) {
1698
1702
  O = !0;
1699
1703
  break;
1700
1704
  }
1701
- S += B[X];
1705
+ S += B[K];
1702
1706
  }
1703
1707
  if (O)
1704
1708
  return A(P, 0, 1);
1705
1709
  v = l(v, 2 + S.length), S = parseInt(S);
1706
- var K = l(v, 0, S);
1710
+ var X = l(v, 0, S);
1707
1711
  if (R)
1708
1712
  try {
1709
- K = String.fromCharCode.apply(null, new Uint8Array(K));
1713
+ X = String.fromCharCode.apply(null, new Uint8Array(X));
1710
1714
  } catch {
1711
- var G = new Uint8Array(K);
1712
- K = "";
1713
- for (var X = 0; X < G.length; X++)
1714
- K += String.fromCharCode(G[X]);
1715
+ var G = new Uint8Array(X);
1716
+ X = "";
1717
+ for (var K = 0; K < G.length; K++)
1718
+ X += String.fromCharCode(G[K]);
1715
1719
  }
1716
- m.push(K), v = l(v, S);
1720
+ m.push(X), v = l(v, S);
1717
1721
  }
1718
1722
  var M = m.length;
1719
- m.forEach(function(J, oe) {
1720
- A(e.decodePacket(J, w, !0), oe, M);
1723
+ m.forEach(function(z, oe) {
1724
+ A(e.decodePacket(z, w, !0), oe, M);
1721
1725
  });
1722
1726
  };
1723
1727
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -1739,14 +1743,14 @@ function qe() {
1739
1743
  };
1740
1744
  }, {}],
1741
1745
  27: [function(a, t) {
1742
- function e(o, c, f) {
1743
- function h(i, u) {
1746
+ function e(o, c, u) {
1747
+ function h(i, p) {
1744
1748
  if (h.count <= 0)
1745
1749
  throw new Error("after called too many times");
1746
- --h.count, i ? (d = !0, c(i), c = f) : h.count !== 0 || d || c(null, u);
1750
+ --h.count, i ? (d = !0, c(i), c = u) : h.count !== 0 || d || c(null, p);
1747
1751
  }
1748
1752
  var d = !1;
1749
- return f = f || r, h.count = o, o === 0 ? c() : h;
1753
+ return u = u || r, h.count = o, o === 0 ? c() : h;
1750
1754
  }
1751
1755
  function r() {
1752
1756
  }
@@ -1759,69 +1763,69 @@ function qe() {
1759
1763
  return e.slice(r, o);
1760
1764
  if (0 > r && (r += c), 0 > o && (o += c), o > c && (o = c), r >= c || r >= o || c === 0)
1761
1765
  return new ArrayBuffer(0);
1762
- for (var f = new Uint8Array(e), h = new Uint8Array(o - r), d = r, i = 0; o > d; d++, i++)
1763
- h[i] = f[d];
1766
+ for (var u = new Uint8Array(e), h = new Uint8Array(o - r), d = r, i = 0; o > d; d++, i++)
1767
+ h[i] = u[d];
1764
1768
  return h.buffer;
1765
1769
  };
1766
1770
  }, {}],
1767
1771
  29: [function(a, t, e) {
1768
1772
  (function(r) {
1769
1773
  e.encode = function(o) {
1770
- var c, f = new Uint8Array(o), h = f.length, d = "";
1774
+ var c, u = new Uint8Array(o), h = u.length, d = "";
1771
1775
  for (c = 0; h > c; c += 3)
1772
- d += r[f[c] >> 2], d += r[(3 & f[c]) << 4 | f[c + 1] >> 4], d += r[(15 & f[c + 1]) << 2 | f[c + 2] >> 6], d += r[63 & f[c + 2]];
1776
+ d += r[u[c] >> 2], d += r[(3 & u[c]) << 4 | u[c + 1] >> 4], d += r[(15 & u[c + 1]) << 2 | u[c + 2] >> 6], d += r[63 & u[c + 2]];
1773
1777
  return h % 3 === 2 ? d = d.substring(0, d.length - 1) + "=" : h % 3 === 1 && (d = d.substring(0, d.length - 2) + "=="), d;
1774
1778
  }, e.decode = function(o) {
1775
- var c, f, h, d, i, u = 0.75 * o.length, l = o.length, s = 0;
1776
- o[o.length - 1] === "=" && (u--, o[o.length - 2] === "=" && u--);
1777
- var n = new ArrayBuffer(u), p = new Uint8Array(n);
1779
+ var c, u, h, d, i, p = 0.75 * o.length, l = o.length, s = 0;
1780
+ o[o.length - 1] === "=" && (p--, o[o.length - 2] === "=" && p--);
1781
+ var n = new ArrayBuffer(p), f = new Uint8Array(n);
1778
1782
  for (c = 0; l > c; c += 4)
1779
- f = r.indexOf(o[c]), h = r.indexOf(o[c + 1]), d = r.indexOf(o[c + 2]), i = r.indexOf(o[c + 3]), p[s++] = f << 2 | h >> 4, p[s++] = (15 & h) << 4 | d >> 2, p[s++] = (3 & d) << 6 | 63 & i;
1783
+ u = r.indexOf(o[c]), h = r.indexOf(o[c + 1]), d = r.indexOf(o[c + 2]), i = r.indexOf(o[c + 3]), f[s++] = u << 2 | h >> 4, f[s++] = (15 & h) << 4 | d >> 2, f[s++] = (3 & d) << 6 | 63 & i;
1780
1784
  return n;
1781
1785
  };
1782
1786
  })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
1783
1787
  }, {}],
1784
1788
  30: [function(a, t) {
1785
1789
  (function(e) {
1786
- function r(u) {
1787
- for (var l = 0; l < u.length; l++) {
1788
- var s = u[l];
1790
+ function r(p) {
1791
+ for (var l = 0; l < p.length; l++) {
1792
+ var s = p[l];
1789
1793
  if (s.buffer instanceof ArrayBuffer) {
1790
1794
  var n = s.buffer;
1791
1795
  if (s.byteLength !== n.byteLength) {
1792
- var p = new Uint8Array(s.byteLength);
1793
- p.set(new Uint8Array(n, s.byteOffset, s.byteLength)), n = p.buffer;
1796
+ var f = new Uint8Array(s.byteLength);
1797
+ f.set(new Uint8Array(n, s.byteOffset, s.byteLength)), n = f.buffer;
1794
1798
  }
1795
- u[l] = n;
1799
+ p[l] = n;
1796
1800
  }
1797
1801
  }
1798
1802
  }
1799
- function o(u, l) {
1803
+ function o(p, l) {
1800
1804
  l = l || {};
1801
- var s = new f();
1802
- r(u);
1803
- for (var n = 0; n < u.length; n++)
1804
- s.append(u[n]);
1805
+ var s = new u();
1806
+ r(p);
1807
+ for (var n = 0; n < p.length; n++)
1808
+ s.append(p[n]);
1805
1809
  return l.type ? s.getBlob(l.type) : s.getBlob();
1806
1810
  }
1807
- function c(u, l) {
1808
- return r(u), new Blob(u, l || {});
1811
+ function c(p, l) {
1812
+ return r(p), new Blob(p, l || {});
1809
1813
  }
1810
- var f = e.BlobBuilder || e.WebKitBlobBuilder || e.MSBlobBuilder || e.MozBlobBuilder, h = function() {
1814
+ var u = e.BlobBuilder || e.WebKitBlobBuilder || e.MSBlobBuilder || e.MozBlobBuilder, h = function() {
1811
1815
  try {
1812
- var u = new Blob(["hi"]);
1813
- return u.size === 2;
1816
+ var p = new Blob(["hi"]);
1817
+ return p.size === 2;
1814
1818
  } catch {
1815
1819
  return !1;
1816
1820
  }
1817
1821
  }(), d = h && function() {
1818
1822
  try {
1819
- var u = new Blob([new Uint8Array([1, 2])]);
1820
- return u.size === 2;
1823
+ var p = new Blob([new Uint8Array([1, 2])]);
1824
+ return p.size === 2;
1821
1825
  } catch {
1822
1826
  return !1;
1823
1827
  }
1824
- }(), i = f && f.prototype.append && f.prototype.getBlob;
1828
+ }(), i = u && u.prototype.append && u.prototype.getBlob;
1825
1829
  t.exports = function() {
1826
1830
  return h ? d ? e.Blob : c : i ? o : void 0;
1827
1831
  }();
@@ -1835,7 +1839,7 @@ function qe() {
1835
1839
  m = v.charCodeAt(R++), m >= 55296 && 56319 >= m && S > R ? (O = v.charCodeAt(R++), (64512 & O) == 56320 ? B.push(((1023 & m) << 10) + (1023 & O) + 65536) : (B.push(m), R--)) : B.push(m);
1836
1840
  return B;
1837
1841
  }
1838
- function f(v) {
1842
+ function u(v) {
1839
1843
  for (var m, O = v.length, B = -1, R = ""; ++B < O; )
1840
1844
  m = v[B], m > 65535 && (m -= 65536, R += P(m >>> 10 & 1023 | 55296), m = 56320 | 1023 & m), R += P(m);
1841
1845
  return R;
@@ -1853,7 +1857,7 @@ function qe() {
1853
1857
  var m = "";
1854
1858
  return 4294965248 & v ? 4294901760 & v ? !(4292870144 & v) && (m = P(v >> 18 & 7 | 240), m += d(v, 12), m += d(v, 6)) : (h(v), m = P(v >> 12 & 15 | 224), m += d(v, 6)) : m = P(v >> 6 & 31 | 192), m += P(63 & v | 128);
1855
1859
  }
1856
- function u(v) {
1860
+ function p(v) {
1857
1861
  for (var m, O = c(v), B = O.length, R = -1, S = ""; ++R < B; )
1858
1862
  m = O[R], S += i(m);
1859
1863
  return S;
@@ -1893,18 +1897,18 @@ function qe() {
1893
1897
  b = c(v), j = b.length, x = 0;
1894
1898
  for (var m, O = []; (m = s()) !== !1; )
1895
1899
  O.push(m);
1896
- return f(O);
1900
+ return u(O);
1897
1901
  }
1898
- var p = typeof e == "object" && e, g = typeof t == "object" && t && t.exports == p && t, y = typeof r == "object" && r;
1902
+ var f = typeof e == "object" && e, g = typeof t == "object" && t && t.exports == f && t, y = typeof r == "object" && r;
1899
1903
  (y.global === y || y.window === y) && (o = y);
1900
- var b, j, x, P = String.fromCharCode, I = { version: "2.0.0", encode: u, decode: n };
1901
- if (p && !p.nodeType)
1904
+ var b, j, x, P = String.fromCharCode, I = { version: "2.0.0", encode: p, decode: n };
1905
+ if (f && !f.nodeType)
1902
1906
  if (g)
1903
1907
  g.exports = I;
1904
1908
  else {
1905
1909
  var k = {}, w = k.hasOwnProperty;
1906
1910
  for (var A in I)
1907
- w.call(I, A) && (p[A] = I[A]);
1911
+ w.call(I, A) && (f[A] = I[A]);
1908
1912
  }
1909
1913
  else
1910
1914
  o.utf8 = I;
@@ -1913,9 +1917,9 @@ function qe() {
1913
1917
  }, {}],
1914
1918
  32: [function(a, t) {
1915
1919
  (function(e) {
1916
- var r = /^[\],:{}\s]*$/, o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, c = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, f = /(?:^|:|,)(?:\s*\[)+/g, h = /^\s+/, d = /\s+$/;
1920
+ var r = /^[\],:{}\s]*$/, o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, c = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, u = /(?:^|:|,)(?:\s*\[)+/g, h = /^\s+/, d = /\s+$/;
1917
1921
  t.exports = function(i) {
1918
- return typeof i == "string" && i ? (i = i.replace(h, "").replace(d, ""), e.JSON && JSON.parse ? JSON.parse(i) : r.test(i.replace(o, "@").replace(c, "]").replace(f, "")) ? new Function("return " + i)() : void 0) : null;
1922
+ return typeof i == "string" && i ? (i = i.replace(h, "").replace(d, ""), e.JSON && JSON.parse ? JSON.parse(i) : r.test(i.replace(o, "@").replace(c, "]").replace(u, "")) ? new Function("return " + i)() : void 0) : null;
1919
1923
  };
1920
1924
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
1921
1925
  }, {}],
@@ -1926,8 +1930,8 @@ function qe() {
1926
1930
  r.hasOwnProperty(c) && (o.length && (o += "&"), o += encodeURIComponent(c) + "=" + encodeURIComponent(r[c]));
1927
1931
  return o;
1928
1932
  }, e.decode = function(r) {
1929
- for (var o = {}, c = r.split("&"), f = 0, h = c.length; h > f; f++) {
1930
- var d = c[f].split("=");
1933
+ for (var o = {}, c = r.split("&"), u = 0, h = c.length; h > u; u++) {
1934
+ var d = c[u].split("=");
1931
1935
  o[decodeURIComponent(d[0])] = decodeURIComponent(d[1]);
1932
1936
  }
1933
1937
  return o;
@@ -1936,16 +1940,16 @@ function qe() {
1936
1940
  34: [function(a, t) {
1937
1941
  var e = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, r = ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"];
1938
1942
  t.exports = function(o) {
1939
- var c = o, f = o.indexOf("["), h = o.indexOf("]");
1940
- f != -1 && h != -1 && (o = o.substring(0, f) + o.substring(f, h).replace(/:/g, ";") + o.substring(h, o.length));
1941
- for (var d = e.exec(o || ""), i = {}, u = 14; u--; )
1942
- i[r[u]] = d[u] || "";
1943
- return f != -1 && h != -1 && (i.source = c, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i;
1943
+ var c = o, u = o.indexOf("["), h = o.indexOf("]");
1944
+ u != -1 && h != -1 && (o = o.substring(0, u) + o.substring(u, h).replace(/:/g, ";") + o.substring(h, o.length));
1945
+ for (var d = e.exec(o || ""), i = {}, p = 14; p--; )
1946
+ i[r[p]] = d[p] || "";
1947
+ return u != -1 && h != -1 && (i.source = c, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i;
1944
1948
  };
1945
1949
  }, {}],
1946
1950
  35: [function(a, t) {
1947
- function e(c, f) {
1948
- return f ? new o(c, f) : new o(c);
1951
+ function e(c, u) {
1952
+ return u ? new o(c, u) : new o(c);
1949
1953
  }
1950
1954
  var r = /* @__PURE__ */ function() {
1951
1955
  return self;
@@ -1955,24 +1959,24 @@ function qe() {
1955
1959
  36: [function(a, t) {
1956
1960
  (function(e) {
1957
1961
  function r(c) {
1958
- function f(h) {
1962
+ function u(h) {
1959
1963
  if (!h)
1960
1964
  return !1;
1961
1965
  if (e.Buffer && e.Buffer.isBuffer(h) || e.ArrayBuffer && h instanceof ArrayBuffer || e.Blob && h instanceof Blob || e.File && h instanceof File)
1962
1966
  return !0;
1963
1967
  if (o(h)) {
1964
1968
  for (var d = 0; d < h.length; d++)
1965
- if (f(h[d]))
1969
+ if (u(h[d]))
1966
1970
  return !0;
1967
1971
  } else if (h && typeof h == "object") {
1968
1972
  h.toJSON && (h = h.toJSON());
1969
1973
  for (var i in h)
1970
- if (Object.prototype.hasOwnProperty.call(h, i) && f(h[i]))
1974
+ if (Object.prototype.hasOwnProperty.call(h, i) && u(h[i]))
1971
1975
  return !0;
1972
1976
  }
1973
1977
  return !1;
1974
1978
  }
1975
- return f(c);
1979
+ return u(c);
1976
1980
  }
1977
1981
  var o = a("isarray");
1978
1982
  t.exports = r;
@@ -2011,17 +2015,17 @@ function qe() {
2011
2015
  var r = Object.prototype.hasOwnProperty;
2012
2016
  e.keys = Object.keys || function(o) {
2013
2017
  var c = [];
2014
- for (var f in o)
2015
- r.call(o, f) && c.push(f);
2018
+ for (var u in o)
2019
+ r.call(o, u) && c.push(u);
2016
2020
  return c;
2017
2021
  }, e.values = function(o) {
2018
2022
  var c = [];
2019
- for (var f in o)
2020
- r.call(o, f) && c.push(o[f]);
2023
+ for (var u in o)
2024
+ r.call(o, u) && c.push(o[u]);
2021
2025
  return c;
2022
2026
  }, e.merge = function(o, c) {
2023
- for (var f in c)
2024
- r.call(c, f) && (o[f] = c[f]);
2027
+ for (var u in c)
2028
+ r.call(c, u) && (o[u] = c[u]);
2025
2029
  return o;
2026
2030
  }, e.length = function(o) {
2027
2031
  return e.keys(o).length;
@@ -2032,15 +2036,15 @@ function qe() {
2032
2036
  42: [function(a, t) {
2033
2037
  var e = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, r = ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"];
2034
2038
  t.exports = function(o) {
2035
- for (var c = e.exec(o || ""), f = {}, h = 14; h--; )
2036
- f[r[h]] = c[h] || "";
2037
- return f;
2039
+ for (var c = e.exec(o || ""), u = {}, h = 14; h--; )
2040
+ u[r[h]] = c[h] || "";
2041
+ return u;
2038
2042
  };
2039
2043
  }, {}],
2040
2044
  43: [function(a, t, e) {
2041
2045
  (function(r) {
2042
2046
  var o = a("isarray"), c = a("./is-buffer");
2043
- e.deconstructPacket = function(f) {
2047
+ e.deconstructPacket = function(u) {
2044
2048
  function h(l) {
2045
2049
  if (!l)
2046
2050
  return l;
@@ -2049,8 +2053,8 @@ function qe() {
2049
2053
  return d.push(l), s;
2050
2054
  }
2051
2055
  if (o(l)) {
2052
- for (var n = new Array(l.length), p = 0; p < l.length; p++)
2053
- n[p] = h(l[p]);
2056
+ for (var n = new Array(l.length), f = 0; f < l.length; f++)
2057
+ n[f] = h(l[f]);
2054
2058
  return n;
2055
2059
  }
2056
2060
  if (typeof l == "object" && !(l instanceof Date)) {
@@ -2061,13 +2065,13 @@ function qe() {
2061
2065
  }
2062
2066
  return l;
2063
2067
  }
2064
- var d = [], i = f.data, u = f;
2065
- return u.data = h(i), u.attachments = d.length, { packet: u, buffers: d };
2066
- }, e.reconstructPacket = function(f, h) {
2068
+ var d = [], i = u.data, p = u;
2069
+ return p.data = h(i), p.attachments = d.length, { packet: p, buffers: d };
2070
+ }, e.reconstructPacket = function(u, h) {
2067
2071
  function d(i) {
2068
2072
  if (i && i._placeholder) {
2069
- var u = h[i.num];
2070
- return u;
2073
+ var p = h[i.num];
2074
+ return p;
2071
2075
  }
2072
2076
  if (o(i)) {
2073
2077
  for (var l = 0; l < i.length; l++)
@@ -2081,17 +2085,17 @@ function qe() {
2081
2085
  }
2082
2086
  return i;
2083
2087
  }
2084
- return f.data = d(f.data), f.attachments = void 0, f;
2085
- }, e.removeBlobs = function(f, h) {
2088
+ return u.data = d(u.data), u.attachments = void 0, u;
2089
+ }, e.removeBlobs = function(u, h) {
2086
2090
  function d(l, s, n) {
2087
2091
  if (!l)
2088
2092
  return l;
2089
2093
  if (r.Blob && l instanceof Blob || r.File && l instanceof File) {
2090
2094
  i++;
2091
- var p = new FileReader();
2092
- p.onload = function() {
2093
- n ? n[s] = this.result : u = this.result, --i || h(u);
2094
- }, p.readAsArrayBuffer(l);
2095
+ var f = new FileReader();
2096
+ f.onload = function() {
2097
+ n ? n[s] = this.result : p = this.result, --i || h(p);
2098
+ }, f.readAsArrayBuffer(l);
2095
2099
  } else if (o(l))
2096
2100
  for (var g = 0; g < l.length; g++)
2097
2101
  d(l[g], g, l);
@@ -2099,8 +2103,8 @@ function qe() {
2099
2103
  for (var y in l)
2100
2104
  d(l[y], y, l);
2101
2105
  }
2102
- var i = 0, u = f;
2103
- d(u), i || h(u);
2106
+ var i = 0, p = u;
2107
+ d(p), i || h(p);
2104
2108
  };
2105
2109
  }).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
2106
2110
  }, { "./is-buffer": 45, isarray: 46 }],
@@ -2109,7 +2113,7 @@ function qe() {
2109
2113
  }
2110
2114
  function o(g) {
2111
2115
  var y = "", b = !1;
2112
- return y += g.type, (e.BINARY_EVENT == g.type || e.BINARY_ACK == g.type) && (y += g.attachments, y += "-"), g.nsp && g.nsp != "/" && (b = !0, y += g.nsp), g.id != null && (b && (y += ",", b = !1), y += g.id), g.data != null && (b && (y += ","), y += l.stringify(g.data)), u("encoded %j as %s", g, y), y;
2116
+ return y += g.type, (e.BINARY_EVENT == g.type || e.BINARY_ACK == g.type) && (y += g.attachments, y += "-"), g.nsp && g.nsp != "/" && (b = !0, y += g.nsp), g.id != null && (b && (y += ",", b = !1), y += g.id), g.data != null && (b && (y += ","), y += l.stringify(g.data)), p("encoded %j as %s", g, y), y;
2113
2117
  }
2114
2118
  function c(g, y) {
2115
2119
  function b(j) {
@@ -2118,7 +2122,7 @@ function qe() {
2118
2122
  }
2119
2123
  n.removeBlobs(g, b);
2120
2124
  }
2121
- function f() {
2125
+ function u() {
2122
2126
  this.reconstructor = null;
2123
2127
  }
2124
2128
  function h(g) {
@@ -2159,7 +2163,7 @@ function qe() {
2159
2163
  } catch {
2160
2164
  return i();
2161
2165
  }
2162
- return u("decoded %s as %j", g, y), y;
2166
+ return p("decoded %s as %j", g, y), y;
2163
2167
  }
2164
2168
  function d(g) {
2165
2169
  this.reconPack = g, this.buffers = [];
@@ -2167,26 +2171,26 @@ function qe() {
2167
2171
  function i() {
2168
2172
  return { type: e.ERROR, data: "parser error" };
2169
2173
  }
2170
- var u = a("debug")("socket.io-parser"), l = a("json3"), s = (a("isarray"), a("component-emitter")), n = a("./binary"), p = a("./is-buffer");
2171
- e.protocol = 4, e.types = ["CONNECT", "DISCONNECT", "EVENT", "BINARY_EVENT", "ACK", "BINARY_ACK", "ERROR"], e.CONNECT = 0, e.DISCONNECT = 1, e.EVENT = 2, e.ACK = 3, e.ERROR = 4, e.BINARY_EVENT = 5, e.BINARY_ACK = 6, e.Encoder = r, e.Decoder = f, r.prototype.encode = function(g, y) {
2172
- if (u("encoding packet %j", g), e.BINARY_EVENT == g.type || e.BINARY_ACK == g.type)
2174
+ var p = a("debug")("socket.io-parser"), l = a("json3"), s = (a("isarray"), a("component-emitter")), n = a("./binary"), f = a("./is-buffer");
2175
+ e.protocol = 4, e.types = ["CONNECT", "DISCONNECT", "EVENT", "BINARY_EVENT", "ACK", "BINARY_ACK", "ERROR"], e.CONNECT = 0, e.DISCONNECT = 1, e.EVENT = 2, e.ACK = 3, e.ERROR = 4, e.BINARY_EVENT = 5, e.BINARY_ACK = 6, e.Encoder = r, e.Decoder = u, r.prototype.encode = function(g, y) {
2176
+ if (p("encoding packet %j", g), e.BINARY_EVENT == g.type || e.BINARY_ACK == g.type)
2173
2177
  c(g, y);
2174
2178
  else {
2175
2179
  var b = o(g);
2176
2180
  y([b]);
2177
2181
  }
2178
- }, s(f.prototype), f.prototype.add = function(g) {
2182
+ }, s(u.prototype), u.prototype.add = function(g) {
2179
2183
  var y;
2180
2184
  if (typeof g == "string")
2181
2185
  y = h(g), e.BINARY_EVENT == y.type || e.BINARY_ACK == y.type ? (this.reconstructor = new d(y), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", y)) : this.emit("decoded", y);
2182
2186
  else {
2183
- if (!p(g) && !g.base64)
2187
+ if (!f(g) && !g.base64)
2184
2188
  throw new Error("Unknown type: " + g);
2185
2189
  if (!this.reconstructor)
2186
2190
  throw new Error("got binary data when not reconstructing a packet");
2187
2191
  y = this.reconstructor.takeBinaryData(g), y && (this.reconstructor = null, this.emit("decoded", y));
2188
2192
  }
2189
- }, f.prototype.destroy = function() {
2193
+ }, u.prototype.destroy = function() {
2190
2194
  this.reconstructor && this.reconstructor.finishedReconstruction();
2191
2195
  }, d.prototype.takeBinaryData = function(g) {
2192
2196
  if (this.buffers.push(g), this.buffers.length == this.reconPack.attachments) {
@@ -2222,7 +2226,7 @@ function qe() {
2222
2226
  else {
2223
2227
  var T, V = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
2224
2228
  if (E == "json-stringify") {
2225
- var C = u.stringify, U = typeof C == "function" && l;
2229
+ var C = p.stringify, U = typeof C == "function" && l;
2226
2230
  if (U) {
2227
2231
  (T = function() {
2228
2232
  return 1;
@@ -2240,7 +2244,7 @@ function qe() {
2240
2244
  _ = U;
2241
2245
  }
2242
2246
  if (E == "json-parse") {
2243
- var D = u.parse;
2247
+ var D = p.parse;
2244
2248
  if (typeof D == "function")
2245
2249
  try {
2246
2250
  if (D("0") === 0 && !D(!1)) {
@@ -2271,15 +2275,15 @@ function qe() {
2271
2275
  }
2272
2276
  return o[E] = !!_;
2273
2277
  }
2274
- var c, f, h, d = {}.toString, i = typeof JSON == "object" && JSON, u = typeof e == "object" && e && !e.nodeType && e;
2275
- u && i ? (u.stringify = i.stringify, u.parse = i.parse) : u = r.JSON = i || {};
2278
+ var c, u, h, d = {}.toString, i = typeof JSON == "object" && JSON, p = typeof e == "object" && e && !e.nodeType && e;
2279
+ p && i ? (p.stringify = i.stringify, p.parse = i.parse) : p = r.JSON = i || {};
2276
2280
  var l = /* @__PURE__ */ new Date(-3509827334573292);
2277
2281
  try {
2278
2282
  l = l.getUTCFullYear() == -109252 && l.getUTCMonth() === 0 && l.getUTCDate() === 1 && l.getUTCHours() == 10 && l.getUTCMinutes() == 37 && l.getUTCSeconds() == 6 && l.getUTCMilliseconds() == 708;
2279
2283
  } catch {
2280
2284
  }
2281
2285
  if (!o("json")) {
2282
- var s = "[object Function]", n = "[object Date]", p = "[object Number]", g = "[object String]", y = "[object Array]", b = "[object Boolean]", j = o("bug-string-char-index");
2286
+ var s = "[object Function]", n = "[object Date]", f = "[object Number]", g = "[object String]", y = "[object Array]", b = "[object Boolean]", j = o("bug-string-char-index");
2283
2287
  if (!l)
2284
2288
  var x = Math.floor, P = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], I = function(E, _) {
2285
2289
  return P[_] + 365 * (E - 1970) + x((E - 1969 + (_ = +(_ > 1))) / 4) - x((E - 1901 + _) / 100) + x((E - 1601 + _) / 400);
@@ -2298,14 +2302,14 @@ function qe() {
2298
2302
  var T = typeof E[_];
2299
2303
  return T == "object" ? !!E[_] : !k[T];
2300
2304
  };
2301
- if (f = function(E, _) {
2305
+ if (u = function(E, _) {
2302
2306
  var T, V, C, U = 0;
2303
2307
  (T = function() {
2304
2308
  this.valueOf = 0;
2305
2309
  }).prototype.valueOf = 0, V = new T();
2306
2310
  for (C in V)
2307
2311
  c.call(V, C) && U++;
2308
- return T = V = null, U ? f = U == 2 ? function(D, N) {
2312
+ return T = V = null, U ? u = U == 2 ? function(D, N) {
2309
2313
  var F, $ = {}, W = d.call(D) == s;
2310
2314
  for (F in D)
2311
2315
  W && F == "prototype" || c.call($, F) || !($[F] = 1) || !c.call(D, F) || N(F);
@@ -2314,13 +2318,13 @@ function qe() {
2314
2318
  for (F in D)
2315
2319
  W && F == "prototype" || !c.call(D, F) || ($ = F === "constructor") || N(F);
2316
2320
  ($ || c.call(D, F = "constructor")) && N(F);
2317
- } : (V = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], f = function(D, N) {
2318
- var F, $, W = d.call(D) == s, H = !W && typeof D.constructor != "function" && w(D, "hasOwnProperty") ? D.hasOwnProperty : c;
2321
+ } : (V = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], u = function(D, N) {
2322
+ var F, $, W = d.call(D) == s, Y = !W && typeof D.constructor != "function" && w(D, "hasOwnProperty") ? D.hasOwnProperty : c;
2319
2323
  for (F in D)
2320
- W && F == "prototype" || !H.call(D, F) || N(F);
2321
- for ($ = V.length; F = V[--$]; H.call(D, F) && N(F))
2324
+ W && F == "prototype" || !Y.call(D, F) || N(F);
2325
+ for ($ = V.length; F = V[--$]; Y.call(D, F) && N(F))
2322
2326
  ;
2323
- }), f(E, _);
2327
+ }), u(E, _);
2324
2328
  }, !o("json-stringify")) {
2325
2329
  var A = { 92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t" }, v = "000000", m = function(E, _) {
2326
2330
  return (v + (_ || 0)).slice(-E);
@@ -2348,31 +2352,31 @@ function qe() {
2348
2352
  }
2349
2353
  return T + '"';
2350
2354
  }, R = function(E, _, T, V, C, U, D) {
2351
- var N, F, $, W, H, ie, he, ue, pe, fe, ee, de, le, ae, ge, ye;
2355
+ var N, F, $, W, Y, ie, he, pe, ue, fe, ee, de, le, ae, ge, ye;
2352
2356
  try {
2353
2357
  N = _[E];
2354
2358
  } catch {
2355
2359
  }
2356
2360
  if (typeof N == "object" && N)
2357
2361
  if (F = d.call(N), F != n || c.call(N, "toJSON"))
2358
- typeof N.toJSON == "function" && (F != p && F != g && F != y || c.call(N, "toJSON")) && (N = N.toJSON(E));
2362
+ typeof N.toJSON == "function" && (F != f && F != g && F != y || c.call(N, "toJSON")) && (N = N.toJSON(E));
2359
2363
  else if (N > -1 / 0 && 1 / 0 > N) {
2360
2364
  if (I) {
2361
- for (H = x(N / 864e5), $ = x(H / 365.2425) + 1970 - 1; I($ + 1, 0) <= H; $++)
2365
+ for (Y = x(N / 864e5), $ = x(Y / 365.2425) + 1970 - 1; I($ + 1, 0) <= Y; $++)
2362
2366
  ;
2363
- for (W = x((H - I($, 0)) / 30.42); I($, W + 1) <= H; W++)
2367
+ for (W = x((Y - I($, 0)) / 30.42); I($, W + 1) <= Y; W++)
2364
2368
  ;
2365
- H = 1 + H - I($, W), ie = (N % 864e5 + 864e5) % 864e5, he = x(ie / 36e5) % 24, ue = x(ie / 6e4) % 60, pe = x(ie / 1e3) % 60, fe = ie % 1e3;
2369
+ Y = 1 + Y - I($, W), ie = (N % 864e5 + 864e5) % 864e5, he = x(ie / 36e5) % 24, pe = x(ie / 6e4) % 60, ue = x(ie / 1e3) % 60, fe = ie % 1e3;
2366
2370
  } else
2367
- $ = N.getUTCFullYear(), W = N.getUTCMonth(), H = N.getUTCDate(), he = N.getUTCHours(), ue = N.getUTCMinutes(), pe = N.getUTCSeconds(), fe = N.getUTCMilliseconds();
2368
- N = (0 >= $ || $ >= 1e4 ? (0 > $ ? "-" : "+") + m(6, 0 > $ ? -$ : $) : m(4, $)) + "-" + m(2, W + 1) + "-" + m(2, H) + "T" + m(2, he) + ":" + m(2, ue) + ":" + m(2, pe) + "." + m(3, fe) + "Z";
2371
+ $ = N.getUTCFullYear(), W = N.getUTCMonth(), Y = N.getUTCDate(), he = N.getUTCHours(), pe = N.getUTCMinutes(), ue = N.getUTCSeconds(), fe = N.getUTCMilliseconds();
2372
+ N = (0 >= $ || $ >= 1e4 ? (0 > $ ? "-" : "+") + m(6, 0 > $ ? -$ : $) : m(4, $)) + "-" + m(2, W + 1) + "-" + m(2, Y) + "T" + m(2, he) + ":" + m(2, pe) + ":" + m(2, ue) + "." + m(3, fe) + "Z";
2369
2373
  } else
2370
2374
  N = null;
2371
2375
  if (T && (N = T.call(_, E, N)), N === null)
2372
2376
  return "null";
2373
2377
  if (F = d.call(N), F == b)
2374
2378
  return "" + N;
2375
- if (F == p)
2379
+ if (F == f)
2376
2380
  return N > -1 / 0 && 1 / 0 > N ? "" + N : "null";
2377
2381
  if (F == g)
2378
2382
  return B("" + N);
@@ -2388,7 +2392,7 @@ function qe() {
2388
2392
  ` + U) + `
2389
2393
  ` + ge + "]" : "[" + ee.join(",") + "]" : "[]";
2390
2394
  } else
2391
- f(V || N, function(ve) {
2395
+ u(V || N, function(ve) {
2392
2396
  var Ee = R(ve, N, T, V, C, U, D);
2393
2397
  Ee !== h && ee.push(B(ve) + ":" + (C ? " " : "") + Ee);
2394
2398
  }), ye = ee.length ? C ? `{
@@ -2398,19 +2402,19 @@ function qe() {
2398
2402
  return D.pop(), ye;
2399
2403
  }
2400
2404
  };
2401
- u.stringify = function(E, _, T) {
2405
+ p.stringify = function(E, _, T) {
2402
2406
  var V, C, U, D;
2403
2407
  if (typeof _ == "function" || typeof _ == "object" && _) {
2404
2408
  if ((D = d.call(_)) == s)
2405
2409
  C = _;
2406
2410
  else if (D == y) {
2407
2411
  U = {};
2408
- for (var N, F = 0, $ = _.length; $ > F; N = _[F++], D = d.call(N), (D == g || D == p) && (U[N] = 1))
2412
+ for (var N, F = 0, $ = _.length; $ > F; N = _[F++], D = d.call(N), (D == g || D == f) && (U[N] = 1))
2409
2413
  ;
2410
2414
  }
2411
2415
  }
2412
2416
  if (T)
2413
- if ((D = d.call(T)) == p) {
2417
+ if ((D = d.call(T)) == f) {
2414
2418
  if ((T -= T % 1) > 0)
2415
2419
  for (V = "", T > 10 && (T = 10); V.length < T; V += " ")
2416
2420
  ;
@@ -2420,11 +2424,11 @@ function qe() {
2420
2424
  };
2421
2425
  }
2422
2426
  if (!o("json-parse")) {
2423
- var S, X, K = String.fromCharCode, G = { 92: "\\", 34: '"', 47: "/", 98: "\b", 116: " ", 110: `
2427
+ var S, K, X = String.fromCharCode, G = { 92: "\\", 34: '"', 47: "/", 98: "\b", 116: " ", 110: `
2424
2428
  `, 102: "\f", 114: "\r" }, M = function() {
2425
- throw S = X = null, SyntaxError();
2426
- }, J = function() {
2427
- for (var E, _, T, V, C, U = X, D = U.length; D > S; )
2429
+ throw S = K = null, SyntaxError();
2430
+ }, z = function() {
2431
+ for (var E, _, T, V, C, U = K, D = U.length; D > S; )
2428
2432
  switch (C = U.charCodeAt(S)) {
2429
2433
  case 9:
2430
2434
  case 10:
@@ -2458,7 +2462,7 @@ function qe() {
2458
2462
  case 117:
2459
2463
  for (_ = ++S, T = S + 4; T > S; S++)
2460
2464
  C = U.charCodeAt(S), C >= 48 && 57 >= C || C >= 97 && 102 >= C || C >= 65 && 70 >= C || M();
2461
- E += K("0x" + U.slice(_, S));
2465
+ E += X("0x" + U.slice(_, S));
2462
2466
  break;
2463
2467
  default:
2464
2468
  M();
@@ -2504,13 +2508,13 @@ function qe() {
2504
2508
  if ((j ? E.charAt(0) : E[0]) == "@")
2505
2509
  return E.slice(1);
2506
2510
  if (E == "[") {
2507
- for (_ = []; E = J(), E != "]"; T || (T = !0))
2508
- T && (E == "," ? (E = J(), E == "]" && M()) : M()), E == "," && M(), _.push(oe(E));
2511
+ for (_ = []; E = z(), E != "]"; T || (T = !0))
2512
+ T && (E == "," ? (E = z(), E == "]" && M()) : M()), E == "," && M(), _.push(oe(E));
2509
2513
  return _;
2510
2514
  }
2511
2515
  if (E == "{") {
2512
- for (_ = {}; E = J(), E != "}"; T || (T = !0))
2513
- T && (E == "," ? (E = J(), E == "}" && M()) : M()), (E == "," || typeof E != "string" || (j ? E.charAt(0) : E[0]) != "@" || J() != ":") && M(), _[E.slice(1)] = oe(J());
2516
+ for (_ = {}; E = z(), E != "}"; T || (T = !0))
2517
+ T && (E == "," ? (E = z(), E == "}" && M()) : M()), (E == "," || typeof E != "string" || (j ? E.charAt(0) : E[0]) != "@" || z() != ":") && M(), _[E.slice(1)] = oe(z());
2514
2518
  return _;
2515
2519
  }
2516
2520
  M();
@@ -2526,14 +2530,14 @@ function qe() {
2526
2530
  for (V = C.length; V--; )
2527
2531
  Ce(C, V, T);
2528
2532
  else
2529
- f(C, function(U) {
2533
+ u(C, function(U) {
2530
2534
  Ce(C, U, T);
2531
2535
  });
2532
2536
  return T.call(E, _, C);
2533
2537
  };
2534
- u.parse = function(E, _) {
2538
+ p.parse = function(E, _) {
2535
2539
  var T, V;
2536
- return S = 0, X = "" + E, T = oe(J()), J() != "$" && M(), S = X = null, _ && d.call(_) == s ? ke((V = {}, V[""] = T, V), "", _) : T;
2540
+ return S = 0, K = "" + E, T = oe(z()), z() != "$" && M(), S = K = null, _ && d.call(_) == s ? ke((V = {}, V[""] = T, V), "", _) : T;
2537
2541
  };
2538
2542
  }
2539
2543
  }
@@ -2543,24 +2547,24 @@ function qe() {
2543
2547
  function e(r, o) {
2544
2548
  var c = [];
2545
2549
  o = o || 0;
2546
- for (var f = o || 0; f < r.length; f++)
2547
- c[f - o] = r[f];
2550
+ for (var u = o || 0; u < r.length; u++)
2551
+ c[u - o] = r[u];
2548
2552
  return c;
2549
2553
  }
2550
2554
  t.exports = e;
2551
2555
  }, {}]
2552
2556
  }, {}, [1])(1);
2553
2557
  }
2554
- const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2558
+ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2555
2559
  __proto__: null,
2556
2560
  default: qe
2557
- }, Symbol.toStringTag, { value: "Module" })), Ke = /* @__PURE__ */ Object.assign({
2558
- "./v1_3_7.js": Xe
2561
+ }, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({
2562
+ "./v1_3_7.js": Ke
2559
2563
  }), $e = /v\d+_\d+_\d+/;
2560
2564
  function Ge(a) {
2561
2565
  return typeof a == "function";
2562
2566
  }
2563
- const Se = Object.entries(Ke).reduce(
2567
+ const Se = Object.entries(Xe).reduce(
2564
2568
  (a, t) => {
2565
2569
  var o;
2566
2570
  const e = t[1].default, r = (o = t[0].match($e)) == null ? void 0 : o[0];
@@ -2571,15 +2575,15 @@ const Se = Object.entries(Ke).reduce(
2571
2575
  if (a in Se)
2572
2576
  return Se[a];
2573
2577
  throw new Error(`Socket version ${a} not found`);
2574
- }, ze = (a, ...t) => Ne(a)(...t), Je = {
2578
+ }, Je = (a, ...t) => Ne(a)(...t), ze = {
2575
2579
  ...Se,
2576
2580
  getSocketVersion: Ne,
2577
- makeSocketVersion: ze
2581
+ makeSocketVersion: Je
2578
2582
  };
2579
2583
  var We = /* @__PURE__ */ ((a) => (a.RINGING = "Ringing", a.TALKING = "Talking", a.DIALING = "Dialing", a.HOLD = "Hold", a))(We || {}), He = /* @__PURE__ */ ((a) => (a.INCOMING = "Incoming", a.OUTGOING = "Outgoing", a))(He || {}), re = /* @__PURE__ */ ((a) => (a.CONNECTED = "connected", a.DISCONNECTED = "disconnected", a.TRYING_TO_CONNECT = "tryingToConnect", a))(re || {}), Ye = /* @__PURE__ */ ((a) => (a.AUTOMATIC = "Automatic", a.IVR = "IVR", a))(Ye || {}), Qe = /* @__PURE__ */ ((a) => (a.INCOMINC = "Incoming", a.OUTGOING = "Outgoing", a.SPY = "Spy", a.CLICK2CALL = "Click2Call", a))(Qe || {}), Ze = /* @__PURE__ */ ((a) => (a.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", a.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", a))(Ze || {}), L = /* @__PURE__ */ ((a) => (a.ALL_DIALER_STATUS = "AllDialersStatus", a.ALL_EXTENSION_STATUS = "AllExtensionsStatus", a.ALL_USERS_STATUS = "AllUsersStatus", a.CONNECT = "connect", a.DISCONNECT = "disconnect", a.CONNECT_ERROR_EVENT = "connect_error", a.EXTENSION_EVENT = "ExtensionEvent", a.KEEP_ALIVE = "keepalive", a.KEEP_ALIVE_RESPONSE = "keepaliveResponse", a.LOGIN_STATUS = "loginStatus", a.LOGIN_SUCCESS = "loginSuccess", a.QUEUE_EVENT = "QueueEvent", a.ONLINE_STATUS_EVENT = "onlineStatusEvent", a.DIALER_EVENT = "DialerEvent", a.EXTENSIONS_UPDATED = "ExtensionsUpdated", a.ALL_VOICEBOTS_STATUS = "AllVoicebotsStatus", a.VOICEBOT_SUBSCRIBE_TO_CALL_FAILED = "subscribeToCallFailed", a.VOICEBOT_SUBSCRIBED_TO_CALL = "subscribedToCall", a.VOICEBOT_INITIAL_CALL_HISTORY = "initialCallHistory", a.VOICEBOT_UNSUBSCRIBED_FROM_CALL = "unsubscribedFromCall", a.VOICEBOT_EVENT = "VoicebotEvent", a))(L || {}), Oe = /* @__PURE__ */ ((a) => (a.NEWCALL = "NEWCALL", a.ANSWER = "ANSWER", a.HOLD = "HOLD", a.UNHOLD = "UNHOLD", a.HANGUP = "HANGUP", a.USER_STATUS_UPDATE = "userStatusUpdate", a))(Oe || {}), et = /* @__PURE__ */ ((a) => (a.NORMAL_HANGUP = "Normal hangup", a.USER_BUSY = "User busy", a.CALL_REJECTED = "Call Rejected", a.UNALLOCATED_NUMBER = "Unallocated (unassigned) number", a.UNKNOWN = "Unknown", a.NO_USER_RESPONDING = "No user responding", a.USER_ALERTING = "User alerting, no answer", a.ANSWERED_ELSEWHERE = "Answered elsewhere", a))(et || {}), tt = /* @__PURE__ */ ((a) => (a.ANSWER = "ANSWER", a.ABANDONED = "ABANDONED", a.EXIT = "EXIT", a.JOIN = "JOIN", a))(tt || {});
2580
2584
  class te {
2581
2585
  static mapExtensionEvent(t) {
2582
- var f, h;
2586
+ var u, h;
2583
2587
  const e = t.reason;
2584
2588
  let r, o;
2585
2589
  t.data.currentCall && (o = this.mapExtensionCall(t, t.data.currentCall));
@@ -2593,7 +2597,7 @@ class te {
2593
2597
  ...o,
2594
2598
  duration: o.callAnswered_UTC_CLIENT ? Date.now() - o.callAnswered_UTC_CLIENT : 0
2595
2599
  } : void 0,
2596
- calls: (f = t.data.calls) == null ? void 0 : f.map((d) => {
2600
+ calls: (u = t.data.calls) == null ? void 0 : u.map((d) => {
2597
2601
  const i = this.mapExtensionCall(t, d);
2598
2602
  return {
2599
2603
  ...i,
@@ -2804,16 +2808,16 @@ class te {
2804
2808
  * @returns Original object extended with new _UTC and _UTC_CLIENT properties for each configured timestamp
2805
2809
  */
2806
2810
  static configureUTCForObject(t, e, r, o) {
2807
- const c = (r - o * 60) * 1e3, f = Date.now() - c, h = {};
2811
+ const c = (r - o * 60) * 1e3, u = Date.now() - c, h = {};
2808
2812
  return e.forEach((d) => {
2809
- const i = t[d.key], u = d.key;
2813
+ const i = t[d.key], p = d.key;
2810
2814
  if (i !== 0 && typeof i == "number" && !isNaN(i)) {
2811
2815
  let l = i;
2812
2816
  d.format === "ms" && (l = Math.floor(l / 1e3));
2813
2817
  const s = (l - o * 60) * 1e3;
2814
- this.assignProperty(h, `${u}_UTC`, s), this.assignProperty(h, `${u}_UTC_CLIENT`, s + f);
2818
+ this.assignProperty(h, `${p}_UTC`, s), this.assignProperty(h, `${p}_UTC_CLIENT`, s + u);
2815
2819
  } else
2816
- this.assignProperty(h, `${u}_UTC`, 0), this.assignProperty(h, `${u}_UTC_CLIENT`, 0);
2820
+ this.assignProperty(h, `${p}_UTC`, 0), this.assignProperty(h, `${p}_UTC_CLIENT`, 0);
2817
2821
  }), {
2818
2822
  ...t,
2819
2823
  ...h
@@ -2876,7 +2880,7 @@ class nt {
2876
2880
  */
2877
2881
  getSocketIoFunction(t) {
2878
2882
  const e = t.split("v="), r = "v".concat(e[e.length - 1]).replaceAll(".", "_");
2879
- this.ioFunction = Je.getSocketVersion(r);
2883
+ this.ioFunction = ze.getSocketVersion(r);
2880
2884
  }
2881
2885
  /**
2882
2886
  * Initializes a new Socket.IO connection. Prevents multiple simultaneous connections.
@@ -2887,7 +2891,7 @@ class nt {
2887
2891
  this.connectionState = "connecting";
2888
2892
  const t = this.eventsSdkClass.authClass.token, e = this.eventsSdkClass.options.protocol, r = this.eventsSdkClass.server;
2889
2893
  try {
2890
- const o = r ? r.Domain : this.eventsSdkClass.URL, c = r ? `${e}://${o}` : this.eventsSdkClass.URL, f = {
2894
+ const o = r ? r.Domain : this.eventsSdkClass.URL, c = r ? `${e}://${o}` : this.eventsSdkClass.URL, u = {
2891
2895
  reconnection: !1,
2892
2896
  upgrade: !1,
2893
2897
  transports: ["websocket"],
@@ -2896,7 +2900,7 @@ class nt {
2896
2900
  timeout: this.eventsSdkClass.options.timeout
2897
2901
  };
2898
2902
  if (this.ioFunction && c)
2899
- this.io = this.ioFunction(c, f), this.initSocketEvents(), this.eventsSdkClass.eventEmitterClass.emit(
2903
+ this.io = this.ioFunction(c, u), this.initSocketEvents(), this.eventsSdkClass.eventEmitterClass.emit(
2900
2904
  L.ONLINE_STATUS_EVENT,
2901
2905
  {
2902
2906
  attemptToConnect: c,
@@ -3099,20 +3103,20 @@ class st {
3099
3103
  if (this.eventsSdkClass.options.useLogger)
3100
3104
  if (this.storageLogger)
3101
3105
  switch (t.Level) {
3102
- case z.INFO:
3106
+ case J.INFO:
3103
3107
  this.storageLogger.log(t);
3104
3108
  break;
3105
- case z.DEBUG:
3109
+ case J.DEBUG:
3106
3110
  this.storageLogger.debug(t);
3107
3111
  break;
3108
- case z.WARNING:
3112
+ case J.WARNING:
3109
3113
  this.storageLogger.warn(t);
3110
3114
  break;
3111
- case z.ERROR:
3115
+ case J.ERROR:
3112
3116
  this.storageLogger.error(t);
3113
3117
  }
3114
3118
  else
3115
- t.Level === z.INFO ? console.log(t) : t.Level === z.ERROR && console.error(t);
3119
+ t.Level === J.INFO ? console.log(t) : t.Level === J.ERROR && console.error(t);
3116
3120
  }
3117
3121
  sdkConnectionSuccess() {
3118
3122
  const t = {
@@ -3127,8 +3131,8 @@ class st {
3127
3131
  isShowClient: !1,
3128
3132
  Status: "Connection established",
3129
3133
  StatusCode: 200,
3130
- Level: z.INFO,
3131
- LogType: Y.INFO
3134
+ Level: J.INFO,
3135
+ LogType: Z.INFO
3132
3136
  });
3133
3137
  }
3134
3138
  sdkDisconnect(t) {
@@ -3138,8 +3142,8 @@ class st {
3138
3142
  isShowClient: !1,
3139
3143
  Status: "Connection closed",
3140
3144
  StatusCode: 200,
3141
- Level: z.INFO,
3142
- LogType: Y.INFO
3145
+ Level: J.INFO,
3146
+ LogType: Z.INFO
3143
3147
  });
3144
3148
  }
3145
3149
  sdkAttemptToConnect(t) {
@@ -3149,8 +3153,8 @@ class st {
3149
3153
  isShowClient: !1,
3150
3154
  Status: "Switching Protocols",
3151
3155
  StatusCode: 101,
3152
- Level: z.INFO,
3153
- LogType: Y.INFO
3156
+ Level: J.INFO,
3157
+ LogType: Z.INFO
3154
3158
  });
3155
3159
  }
3156
3160
  sdkAttemptToConnectError(t) {
@@ -3160,19 +3164,19 @@ class st {
3160
3164
  isShowClient: !1,
3161
3165
  Status: "Connection error",
3162
3166
  StatusCode: 500,
3163
- Level: z.ERROR,
3164
- LogType: Y.ERROR
3167
+ Level: J.ERROR,
3168
+ LogType: Z.ERROR
3165
3169
  });
3166
3170
  }
3167
3171
  loginError(t, e, r, o) {
3168
3172
  this.log({
3169
- Message: `External login request error with the login type ${t} ${t === Z.TOKEN ? r : o}`,
3173
+ Message: `External login request error with the login type ${t} ${t === H.TOKEN ? r : o}`,
3170
3174
  ActionName: Q.WSCONNECT,
3171
3175
  isShowClient: !1,
3172
3176
  Status: "External login error",
3173
3177
  StatusCode: e || 400,
3174
- Level: z.ERROR,
3175
- LogType: Y.ERROR
3178
+ Level: J.ERROR,
3179
+ LogType: Z.ERROR
3176
3180
  });
3177
3181
  }
3178
3182
  getSettingsError(t, e) {
@@ -3182,8 +3186,8 @@ class st {
3182
3186
  isShowClient: !1,
3183
3187
  Status: "Get settings error",
3184
3188
  StatusCode: 400,
3185
- Level: z.ERROR,
3186
- LogType: Y.ERROR
3189
+ Level: J.ERROR,
3190
+ LogType: Z.ERROR
3187
3191
  });
3188
3192
  }
3189
3193
  refreshTokenError(t, e, r) {
@@ -3193,8 +3197,8 @@ class st {
3193
3197
  isShowClient: !1,
3194
3198
  Status: "Get settings error",
3195
3199
  StatusCode: 400,
3196
- Level: z.ERROR,
3197
- LogType: Y.ERROR
3200
+ Level: J.ERROR,
3201
+ LogType: Z.ERROR
3198
3202
  });
3199
3203
  }
3200
3204
  keepAliveEmit() {
@@ -3202,8 +3206,8 @@ class st {
3202
3206
  Message: `Keep alive event emitted with this token: ${this.eventsSdkClass.authClass.token}`,
3203
3207
  ActionName: Q.WSCONNECT,
3204
3208
  isShowClient: !1,
3205
- Level: z.INFO,
3206
- LogType: Y.INFO
3209
+ Level: J.INFO,
3210
+ LogType: Z.INFO
3207
3211
  });
3208
3212
  }
3209
3213
  keepAliveResponse(t) {
@@ -3213,8 +3217,8 @@ class st {
3213
3217
  isShowClient: !1,
3214
3218
  Status: "Successful",
3215
3219
  StatusCode: 200,
3216
- Level: z.INFO,
3217
- LogType: Y.INFO
3220
+ Level: J.INFO,
3221
+ LogType: Z.INFO
3218
3222
  });
3219
3223
  }
3220
3224
  eventLog(t, e) {
@@ -3234,8 +3238,8 @@ class st {
3234
3238
  ActionName: Q.WSCONNECT,
3235
3239
  isShowClient: !1,
3236
3240
  Status: "Successful",
3237
- Level: z.DEBUG,
3238
- LogType: Y.INFO
3241
+ Level: J.DEBUG,
3242
+ LogType: Z.INFO
3239
3243
  });
3240
3244
  }
3241
3245
  getStaticData() {
@@ -3391,7 +3395,7 @@ export {
3391
3395
  L as EventsEnum,
3392
3396
  Oe as ExtensionEventReasonEnum,
3393
3397
  et as ExtensionHangupCauseEnum,
3394
- Z as LoginType,
3398
+ H as LoginType,
3395
3399
  tt as QueueEventReasonEnum,
3396
3400
  _e as ServerListenerEventsEnum,
3397
3401
  se as ServerParameter,