@voicenter-team/events-sdk 0.0.54 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/voicenter-events-sdk.cjs.js +9 -9
- package/dist/voicenter-events-sdk.cjs.js.map +1 -1
- package/dist/voicenter-events-sdk.es.js +312 -312
- package/dist/voicenter-events-sdk.es.js.map +1 -1
- package/dist/voicenter-events-sdk.iife.js +9 -9
- package/dist/voicenter-events-sdk.iife.js.map +1 -1
- package/dist/voicenter-events-sdk.umd.js +9 -9
- package/dist/voicenter-events-sdk.umd.js.map +1 -1
- package/package.json +59 -59
|
@@ -97,7 +97,7 @@ var Tr = Ve.exports, ce = {
|
|
|
97
97
|
return e.join("");
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, Be = ce;
|
|
101
101
|
/*!
|
|
102
102
|
* Determine if an object is a Buffer
|
|
103
103
|
*
|
|
@@ -114,14 +114,14 @@ function xr(t) {
|
|
|
114
114
|
return typeof t.readFloatLE == "function" && typeof t.slice == "function" && $e(t.slice(0, 0));
|
|
115
115
|
}
|
|
116
116
|
(function() {
|
|
117
|
-
var t = Tr, e =
|
|
117
|
+
var t = Tr, e = Be.utf8, r = Nr, n = Be.bin, o = function(i, u) {
|
|
118
118
|
i.constructor == String ? u && u.encoding === "binary" ? i = n.stringToBytes(i) : i = e.stringToBytes(i) : r(i) ? i = Array.prototype.slice.call(i, 0) : !Array.isArray(i) && i.constructor !== Uint8Array && (i = i.toString());
|
|
119
119
|
for (var h = t.bytesToWords(i), d = i.length * 8, c = 1732584193, l = -271733879, p = -1732584194, a = 271733878, s = 0; s < h.length; s++)
|
|
120
120
|
h[s] = (h[s] << 8 | h[s] >>> 24) & 16711935 | (h[s] << 24 | h[s] >>> 8) & 4278255360;
|
|
121
121
|
h[d >>> 5] |= 128 << d % 32, h[(d + 64 >>> 9 << 4) + 14] = d;
|
|
122
|
-
for (var f = o._ff, y = o._gg, g = o._hh,
|
|
123
|
-
var
|
|
124
|
-
c = f(c, l, p, a, h[s + 0], 7, -680876936), a = f(a, c, l, p, h[s + 1], 12, -389564586), p = f(p, a, c, l, h[s + 2], 17, 606105819), l = f(l, p, a, c, h[s + 3], 22, -1044525330), c = f(c, l, p, a, h[s + 4], 7, -176418897), a = f(a, c, l, p, h[s + 5], 12, 1200080426), p = f(p, a, c, l, h[s + 6], 17, -1473231341), l = f(l, p, a, c, h[s + 7], 22, -45705983), c = f(c, l, p, a, h[s + 8], 7, 1770035416), a = f(a, c, l, p, h[s + 9], 12, -1958414417), p = f(p, a, c, l, h[s + 10], 17, -42063), l = f(l, p, a, c, h[s + 11], 22, -1990404162), c = f(c, l, p, a, h[s + 12], 7, 1804603682), a = f(a, c, l, p, h[s + 13], 12, -40341101), p = f(p, a, c, l, h[s + 14], 17, -1502002290), l = f(l, p, a, c, h[s + 15], 22, 1236535329), c = y(c, l, p, a, h[s + 1], 5, -165796510), a = y(a, c, l, p, h[s + 6], 9, -1069501632), p = y(p, a, c, l, h[s + 11], 14, 643717713), l = y(l, p, a, c, h[s + 0], 20, -373897302), c = y(c, l, p, a, h[s + 5], 5, -701558691), a = y(a, c, l, p, h[s + 10], 9, 38016083), p = y(p, a, c, l, h[s + 15], 14, -660478335), l = y(l, p, a, c, h[s + 4], 20, -405537848), c = y(c, l, p, a, h[s + 9], 5, 568446438), a = y(a, c, l, p, h[s + 14], 9, -1019803690), p = y(p, a, c, l, h[s + 3], 14, -187363961), l = y(l, p, a, c, h[s + 8], 20, 1163531501), c = y(c, l, p, a, h[s + 13], 5, -1444681467), a = y(a, c, l, p, h[s + 2], 9, -51403784), p = y(p, a, c, l, h[s + 7], 14, 1735328473), l = y(l, p, a, c, h[s + 12], 20, -1926607734), c = g(c, l, p, a, h[s + 5], 4, -378558), a = g(a, c, l, p, h[s + 8], 11, -2022574463), p = g(p, a, c, l, h[s + 11], 16, 1839030562), l = g(l, p, a, c, h[s + 14], 23, -35309556), c = g(c, l, p, a, h[s + 1], 4, -1530992060), a = g(a, c, l, p, h[s + 4], 11, 1272893353), p = g(p, a, c, l, h[s + 7], 16, -155497632), l = g(l, p, a, c, h[s + 10], 23, -1094730640), c = g(c, l, p, a, h[s + 13], 4, 681279174), a = g(a, c, l, p, h[s + 0], 11, -358537222), p = g(p, a, c, l, h[s + 3], 16, -722521979), l = g(l, p, a, c, h[s + 6], 23, 76029189), c = g(c, l, p, a, h[s + 9], 4, -640364487), a = g(a, c, l, p, h[s + 12], 11, -421815835), p = g(p, a, c, l, h[s + 15], 16, 530742520), l = g(l, p, a, c, h[s + 2], 23, -995338651), c =
|
|
122
|
+
for (var f = o._ff, y = o._gg, g = o._hh, C = o._ii, s = 0; s < h.length; s += 16) {
|
|
123
|
+
var B = c, _ = l, b = p, S = a;
|
|
124
|
+
c = f(c, l, p, a, h[s + 0], 7, -680876936), a = f(a, c, l, p, h[s + 1], 12, -389564586), p = f(p, a, c, l, h[s + 2], 17, 606105819), l = f(l, p, a, c, h[s + 3], 22, -1044525330), c = f(c, l, p, a, h[s + 4], 7, -176418897), a = f(a, c, l, p, h[s + 5], 12, 1200080426), p = f(p, a, c, l, h[s + 6], 17, -1473231341), l = f(l, p, a, c, h[s + 7], 22, -45705983), c = f(c, l, p, a, h[s + 8], 7, 1770035416), a = f(a, c, l, p, h[s + 9], 12, -1958414417), p = f(p, a, c, l, h[s + 10], 17, -42063), l = f(l, p, a, c, h[s + 11], 22, -1990404162), c = f(c, l, p, a, h[s + 12], 7, 1804603682), a = f(a, c, l, p, h[s + 13], 12, -40341101), p = f(p, a, c, l, h[s + 14], 17, -1502002290), l = f(l, p, a, c, h[s + 15], 22, 1236535329), c = y(c, l, p, a, h[s + 1], 5, -165796510), a = y(a, c, l, p, h[s + 6], 9, -1069501632), p = y(p, a, c, l, h[s + 11], 14, 643717713), l = y(l, p, a, c, h[s + 0], 20, -373897302), c = y(c, l, p, a, h[s + 5], 5, -701558691), a = y(a, c, l, p, h[s + 10], 9, 38016083), p = y(p, a, c, l, h[s + 15], 14, -660478335), l = y(l, p, a, c, h[s + 4], 20, -405537848), c = y(c, l, p, a, h[s + 9], 5, 568446438), a = y(a, c, l, p, h[s + 14], 9, -1019803690), p = y(p, a, c, l, h[s + 3], 14, -187363961), l = y(l, p, a, c, h[s + 8], 20, 1163531501), c = y(c, l, p, a, h[s + 13], 5, -1444681467), a = y(a, c, l, p, h[s + 2], 9, -51403784), p = y(p, a, c, l, h[s + 7], 14, 1735328473), l = y(l, p, a, c, h[s + 12], 20, -1926607734), c = g(c, l, p, a, h[s + 5], 4, -378558), a = g(a, c, l, p, h[s + 8], 11, -2022574463), p = g(p, a, c, l, h[s + 11], 16, 1839030562), l = g(l, p, a, c, h[s + 14], 23, -35309556), c = g(c, l, p, a, h[s + 1], 4, -1530992060), a = g(a, c, l, p, h[s + 4], 11, 1272893353), p = g(p, a, c, l, h[s + 7], 16, -155497632), l = g(l, p, a, c, h[s + 10], 23, -1094730640), c = g(c, l, p, a, h[s + 13], 4, 681279174), a = g(a, c, l, p, h[s + 0], 11, -358537222), p = g(p, a, c, l, h[s + 3], 16, -722521979), l = g(l, p, a, c, h[s + 6], 23, 76029189), c = g(c, l, p, a, h[s + 9], 4, -640364487), a = g(a, c, l, p, h[s + 12], 11, -421815835), p = g(p, a, c, l, h[s + 15], 16, 530742520), l = g(l, p, a, c, h[s + 2], 23, -995338651), c = C(c, l, p, a, h[s + 0], 6, -198630844), a = C(a, c, l, p, h[s + 7], 10, 1126891415), p = C(p, a, c, l, h[s + 14], 15, -1416354905), l = C(l, p, a, c, h[s + 5], 21, -57434055), c = C(c, l, p, a, h[s + 12], 6, 1700485571), a = C(a, c, l, p, h[s + 3], 10, -1894986606), p = C(p, a, c, l, h[s + 10], 15, -1051523), l = C(l, p, a, c, h[s + 1], 21, -2054922799), c = C(c, l, p, a, h[s + 8], 6, 1873313359), a = C(a, c, l, p, h[s + 15], 10, -30611744), p = C(p, a, c, l, h[s + 6], 15, -1560198380), l = C(l, p, a, c, h[s + 13], 21, 1309151649), c = C(c, l, p, a, h[s + 4], 6, -145523070), a = C(a, c, l, p, h[s + 11], 10, -1120210379), p = C(p, a, c, l, h[s + 2], 15, 718787259), l = C(l, p, a, c, h[s + 9], 21, -343485551), c = c + B >>> 0, l = l + _ >>> 0, p = p + b >>> 0, a = a + S >>> 0;
|
|
125
125
|
}
|
|
126
126
|
return t.endian([c, l, p, a]);
|
|
127
127
|
};
|
|
@@ -154,7 +154,7 @@ class Rt {
|
|
|
154
154
|
if (n[e])
|
|
155
155
|
return r ? JSON.parse(n[e]) : n[e];
|
|
156
156
|
}
|
|
157
|
-
if (typeof window < "u") {
|
|
157
|
+
if (typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.getItem == "function") {
|
|
158
158
|
const n = window.sessionStorage.getItem(e);
|
|
159
159
|
if (n)
|
|
160
160
|
return r ? JSON.parse(n) : n;
|
|
@@ -163,13 +163,13 @@ class Rt {
|
|
|
163
163
|
static async updateSessionStorageKey(e, r) {
|
|
164
164
|
typeof chrome < "u" && typeof chrome.storage < "u" && await chrome.storage.session.set({
|
|
165
165
|
[e]: JSON.stringify(r)
|
|
166
|
-
}), typeof window < "u" && window.sessionStorage.setItem(e, JSON.stringify(r));
|
|
166
|
+
}), typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.setItem == "function" && window.sessionStorage.setItem(e, JSON.stringify(r));
|
|
167
167
|
}
|
|
168
168
|
static clearSessionStorage() {
|
|
169
|
-
typeof chrome < "u" && typeof chrome.storage < "u" && chrome.storage.session.clear(), typeof window < "u" && window.sessionStorage.clear();
|
|
169
|
+
typeof chrome < "u" && typeof chrome.storage < "u" && chrome.storage.session.clear(), typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.clear == "function" && window.sessionStorage.clear();
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
var
|
|
172
|
+
var Ir = Object.defineProperty, Br = (t, e, r) => e in t ? Ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, V = (t, e, r) => (Br(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
173
173
|
function _r(t) {
|
|
174
174
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
175
175
|
}
|
|
@@ -226,7 +226,7 @@ function Fr(t, e) {
|
|
|
226
226
|
o && (r[o] = i);
|
|
227
227
|
}), r;
|
|
228
228
|
}
|
|
229
|
-
var pe = { exports: {} }, ue = { exports: {} },
|
|
229
|
+
var pe = { exports: {} }, ue = { exports: {} }, It = 1e3, Bt = It * 60, _t = Bt * 60, Lt = _t * 24, jr = Lt * 365.25, Mr = function(t, e) {
|
|
230
230
|
e = e || {};
|
|
231
231
|
var r = typeof t;
|
|
232
232
|
if (r === "string" && t.length > 0)
|
|
@@ -266,13 +266,13 @@ function qr(t) {
|
|
|
266
266
|
case "mins":
|
|
267
267
|
case "min":
|
|
268
268
|
case "m":
|
|
269
|
-
return r *
|
|
269
|
+
return r * Bt;
|
|
270
270
|
case "seconds":
|
|
271
271
|
case "second":
|
|
272
272
|
case "secs":
|
|
273
273
|
case "sec":
|
|
274
274
|
case "s":
|
|
275
|
-
return r *
|
|
275
|
+
return r * It;
|
|
276
276
|
case "milliseconds":
|
|
277
277
|
case "millisecond":
|
|
278
278
|
case "msecs":
|
|
@@ -286,10 +286,10 @@ function qr(t) {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
function zr(t) {
|
|
289
|
-
return t >= Lt ? Math.round(t / Lt) + "d" : t >= _t ? Math.round(t / _t) + "h" : t >=
|
|
289
|
+
return t >= Lt ? Math.round(t / Lt) + "d" : t >= _t ? Math.round(t / _t) + "h" : t >= Bt ? Math.round(t / Bt) + "m" : t >= It ? Math.round(t / It) + "s" : t + "ms";
|
|
290
290
|
}
|
|
291
291
|
function Xr(t) {
|
|
292
|
-
return Dt(t, Lt, "day") || Dt(t, _t, "hour") || Dt(t,
|
|
292
|
+
return Dt(t, Lt, "day") || Dt(t, _t, "hour") || Dt(t, Bt, "minute") || Dt(t, It, "second") || t + " ms";
|
|
293
293
|
}
|
|
294
294
|
function Dt(t, e, r) {
|
|
295
295
|
if (!(t < e))
|
|
@@ -312,20 +312,20 @@ function Dt(t, e, r) {
|
|
|
312
312
|
for (var y = new Array(arguments.length), g = 0; g < y.length; g++)
|
|
313
313
|
y[g] = arguments[g];
|
|
314
314
|
y[0] = e.coerce(y[0]), typeof y[0] != "string" && y.unshift("%O");
|
|
315
|
-
var
|
|
315
|
+
var C = 0;
|
|
316
316
|
y[0] = y[0].replace(/%([a-zA-Z%])/g, function(_, b) {
|
|
317
317
|
if (_ === "%%")
|
|
318
318
|
return _;
|
|
319
|
-
|
|
319
|
+
C++;
|
|
320
320
|
var S = e.formatters[b];
|
|
321
321
|
if (typeof S == "function") {
|
|
322
|
-
var m = y[
|
|
323
|
-
_ = S.call(a, m), y.splice(
|
|
322
|
+
var m = y[C];
|
|
323
|
+
_ = S.call(a, m), y.splice(C, 1), C--;
|
|
324
324
|
}
|
|
325
325
|
return _;
|
|
326
326
|
}), e.formatArgs.call(a, y);
|
|
327
|
-
var
|
|
328
|
-
|
|
327
|
+
var B = p.log || e.log || console.log.bind(console);
|
|
328
|
+
B.apply(a, y);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
return p.namespace = c, p.enabled = e.enabled(c), p.useColors = e.useColors(), p.color = r(c), p.destroy = o, typeof e.init == "function" && e.init(p), e.instances.push(p), p;
|
|
@@ -549,7 +549,7 @@ var Wt = {}, Ye = { exports: {} };
|
|
|
549
549
|
return !!this.listeners(n).length;
|
|
550
550
|
};
|
|
551
551
|
})(Ye);
|
|
552
|
-
var
|
|
552
|
+
var Ct = Ye.exports, Kt = {}, Vr = {}.toString, ve = Array.isArray || function(t) {
|
|
553
553
|
return Vr.call(t) == "[object Array]";
|
|
554
554
|
}, Qe = Qr, $r = typeof Buffer == "function" && typeof Buffer.isBuffer == "function", Gr = typeof ArrayBuffer == "function", Yr = function(t) {
|
|
555
555
|
return typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer;
|
|
@@ -620,7 +620,7 @@ Kt.removeBlobs = function(t, e) {
|
|
|
620
620
|
r(o), n || e(o);
|
|
621
621
|
};
|
|
622
622
|
(function(t) {
|
|
623
|
-
var e = lt("socket.io-parser"), r =
|
|
623
|
+
var e = lt("socket.io-parser"), r = Ct, n = Kt, o = ve, i = Qe;
|
|
624
624
|
t.protocol = 4, t.types = [
|
|
625
625
|
"CONNECT",
|
|
626
626
|
"DISCONNECT",
|
|
@@ -633,24 +633,24 @@ Kt.removeBlobs = function(t, e) {
|
|
|
633
633
|
function u() {
|
|
634
634
|
}
|
|
635
635
|
var h = t.ERROR + '"encode error"';
|
|
636
|
-
u.prototype.encode = function(g,
|
|
636
|
+
u.prototype.encode = function(g, C) {
|
|
637
637
|
if (e("encoding packet %j", g), t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type)
|
|
638
|
-
l(g,
|
|
638
|
+
l(g, C);
|
|
639
639
|
else {
|
|
640
|
-
var
|
|
641
|
-
|
|
640
|
+
var B = d(g);
|
|
641
|
+
C([B]);
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
644
|
function d(g) {
|
|
645
|
-
var
|
|
646
|
-
if ((t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type) && (
|
|
647
|
-
var
|
|
648
|
-
if (
|
|
649
|
-
|
|
645
|
+
var C = "" + g.type;
|
|
646
|
+
if ((t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type) && (C += g.attachments + "-"), g.nsp && g.nsp !== "/" && (C += g.nsp + ","), g.id != null && (C += g.id), g.data != null) {
|
|
647
|
+
var B = c(g.data);
|
|
648
|
+
if (B !== !1)
|
|
649
|
+
C += B;
|
|
650
650
|
else
|
|
651
651
|
return h;
|
|
652
652
|
}
|
|
653
|
-
return e("encoded %j as %s", g,
|
|
653
|
+
return e("encoded %j as %s", g, C), C;
|
|
654
654
|
}
|
|
655
655
|
function c(g) {
|
|
656
656
|
try {
|
|
@@ -659,74 +659,74 @@ Kt.removeBlobs = function(t, e) {
|
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function l(g,
|
|
663
|
-
function
|
|
662
|
+
function l(g, C) {
|
|
663
|
+
function B(_) {
|
|
664
664
|
var b = n.deconstructPacket(_), S = d(b.packet), m = b.buffers;
|
|
665
|
-
m.unshift(S),
|
|
665
|
+
m.unshift(S), C(m);
|
|
666
666
|
}
|
|
667
|
-
n.removeBlobs(g,
|
|
667
|
+
n.removeBlobs(g, B);
|
|
668
668
|
}
|
|
669
669
|
function p() {
|
|
670
670
|
this.reconstructor = null;
|
|
671
671
|
}
|
|
672
672
|
r(p.prototype), p.prototype.add = function(g) {
|
|
673
|
-
var
|
|
673
|
+
var C;
|
|
674
674
|
if (typeof g == "string") {
|
|
675
675
|
if (this.reconstructor)
|
|
676
676
|
throw new Error("got plaintext data when reconstructing a packet");
|
|
677
|
-
|
|
677
|
+
C = a(g), t.BINARY_EVENT === C.type || t.BINARY_ACK === C.type ? (this.reconstructor = new f(C), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", C)) : this.emit("decoded", C);
|
|
678
678
|
} else if (i(g) || g.base64)
|
|
679
679
|
if (this.reconstructor)
|
|
680
|
-
|
|
680
|
+
C = this.reconstructor.takeBinaryData(g), C && (this.reconstructor = null, this.emit("decoded", C));
|
|
681
681
|
else
|
|
682
682
|
throw new Error("got binary data when not reconstructing a packet");
|
|
683
683
|
else
|
|
684
684
|
throw new Error("Unknown type: " + g);
|
|
685
685
|
};
|
|
686
686
|
function a(g) {
|
|
687
|
-
var
|
|
687
|
+
var C = 0, B = {
|
|
688
688
|
type: Number(g.charAt(0))
|
|
689
689
|
};
|
|
690
|
-
if (t.types[
|
|
691
|
-
return y("unknown packet type " +
|
|
692
|
-
if (t.BINARY_EVENT ===
|
|
693
|
-
for (var _ =
|
|
690
|
+
if (t.types[B.type] == null)
|
|
691
|
+
return y("unknown packet type " + B.type);
|
|
692
|
+
if (t.BINARY_EVENT === B.type || t.BINARY_ACK === B.type) {
|
|
693
|
+
for (var _ = C + 1; g.charAt(++C) !== "-" && C != g.length; )
|
|
694
694
|
;
|
|
695
|
-
var b = g.substring(_,
|
|
696
|
-
if (b != Number(b) || g.charAt(
|
|
695
|
+
var b = g.substring(_, C);
|
|
696
|
+
if (b != Number(b) || g.charAt(C) !== "-")
|
|
697
697
|
throw new Error("Illegal attachments");
|
|
698
|
-
|
|
698
|
+
B.attachments = Number(b);
|
|
699
699
|
}
|
|
700
|
-
if (g.charAt(
|
|
701
|
-
for (var _ =
|
|
702
|
-
var S = g.charAt(
|
|
703
|
-
if (S === "," ||
|
|
700
|
+
if (g.charAt(C + 1) === "/") {
|
|
701
|
+
for (var _ = C + 1; ++C; ) {
|
|
702
|
+
var S = g.charAt(C);
|
|
703
|
+
if (S === "," || C === g.length)
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
|
-
|
|
706
|
+
B.nsp = g.substring(_, C);
|
|
707
707
|
} else
|
|
708
|
-
|
|
709
|
-
var m = g.charAt(
|
|
708
|
+
B.nsp = "/";
|
|
709
|
+
var m = g.charAt(C + 1);
|
|
710
710
|
if (m !== "" && Number(m) == m) {
|
|
711
|
-
for (var _ =
|
|
712
|
-
var S = g.charAt(
|
|
711
|
+
for (var _ = C + 1; ++C; ) {
|
|
712
|
+
var S = g.charAt(C);
|
|
713
713
|
if (S == null || Number(S) != S) {
|
|
714
|
-
--
|
|
714
|
+
--C;
|
|
715
715
|
break;
|
|
716
716
|
}
|
|
717
|
-
if (
|
|
717
|
+
if (C === g.length)
|
|
718
718
|
break;
|
|
719
719
|
}
|
|
720
|
-
|
|
720
|
+
B.id = Number(g.substring(_, C + 1));
|
|
721
721
|
}
|
|
722
|
-
if (g.charAt(++
|
|
723
|
-
var
|
|
722
|
+
if (g.charAt(++C)) {
|
|
723
|
+
var w = s(g.substr(C)), E = w !== !1 && (B.type === t.ERROR || o(w));
|
|
724
724
|
if (E)
|
|
725
|
-
|
|
725
|
+
B.data = w;
|
|
726
726
|
else
|
|
727
727
|
return y("invalid payload");
|
|
728
728
|
}
|
|
729
|
-
return e("decoded %s as %j", g,
|
|
729
|
+
return e("decoded %s as %j", g, B), B;
|
|
730
730
|
}
|
|
731
731
|
function s(g) {
|
|
732
732
|
try {
|
|
@@ -743,8 +743,8 @@ Kt.removeBlobs = function(t, e) {
|
|
|
743
743
|
}
|
|
744
744
|
f.prototype.takeBinaryData = function(g) {
|
|
745
745
|
if (this.buffers.push(g), this.buffers.length === this.reconPack.attachments) {
|
|
746
|
-
var
|
|
747
|
-
return this.finishedReconstruction(),
|
|
746
|
+
var C = n.reconstructPacket(this.reconPack, this.buffers);
|
|
747
|
+
return this.finishedReconstruction(), C;
|
|
748
748
|
}
|
|
749
749
|
return null;
|
|
750
750
|
}, f.prototype.finishedReconstruction = function() {
|
|
@@ -763,9 +763,9 @@ try {
|
|
|
763
763
|
} catch {
|
|
764
764
|
de.exports = !1;
|
|
765
765
|
}
|
|
766
|
-
var en = de.exports,
|
|
766
|
+
var en = de.exports, we = function() {
|
|
767
767
|
return typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
768
|
-
}(), rn = en, nn =
|
|
768
|
+
}(), rn = en, nn = we, Ce = function(t) {
|
|
769
769
|
var e = t.xdomain, r = t.xscheme, n = t.enablesXDR;
|
|
770
770
|
try {
|
|
771
771
|
if (typeof XMLHttpRequest < "u" && (!e || rn))
|
|
@@ -986,17 +986,17 @@ function bn() {
|
|
|
986
986
|
upgrade: 5,
|
|
987
987
|
noop: 6
|
|
988
988
|
}, p = e(l), a = { type: "error", data: "parser error" }, s = bn();
|
|
989
|
-
t.encodePacket = function(b, S, m,
|
|
990
|
-
typeof S == "function" && (
|
|
989
|
+
t.encodePacket = function(b, S, m, w) {
|
|
990
|
+
typeof S == "function" && (w = S, S = !1), typeof m == "function" && (w = m, m = null);
|
|
991
991
|
var E = b.data === void 0 ? void 0 : b.data.buffer || b.data;
|
|
992
992
|
if (typeof ArrayBuffer < "u" && E instanceof ArrayBuffer)
|
|
993
|
-
return y(b, S,
|
|
993
|
+
return y(b, S, w);
|
|
994
994
|
if (typeof s < "u" && E instanceof s)
|
|
995
|
-
return
|
|
995
|
+
return C(b, S, w);
|
|
996
996
|
if (E && E.base64)
|
|
997
|
-
return f(b,
|
|
997
|
+
return f(b, w);
|
|
998
998
|
var v = l[b.type];
|
|
999
|
-
return b.data !== void 0 && (v += m ? i.encode(String(b.data), { strict: !1 }) : String(b.data)),
|
|
999
|
+
return b.data !== void 0 && (v += m ? i.encode(String(b.data), { strict: !1 }) : String(b.data)), w("" + v);
|
|
1000
1000
|
};
|
|
1001
1001
|
function f(b, S) {
|
|
1002
1002
|
var m = "b" + t.packets[b.type] + b.data.data;
|
|
@@ -1005,7 +1005,7 @@ function bn() {
|
|
|
1005
1005
|
function y(b, S, m) {
|
|
1006
1006
|
if (!S)
|
|
1007
1007
|
return t.encodeBase64Packet(b, m);
|
|
1008
|
-
var
|
|
1008
|
+
var w = b.data, E = new Uint8Array(w), v = new Uint8Array(1 + w.byteLength);
|
|
1009
1009
|
v[0] = l[b.type];
|
|
1010
1010
|
for (var k = 0; k < E.length; k++)
|
|
1011
1011
|
v[k + 1] = E[k];
|
|
@@ -1014,29 +1014,29 @@ function bn() {
|
|
|
1014
1014
|
function g(b, S, m) {
|
|
1015
1015
|
if (!S)
|
|
1016
1016
|
return t.encodeBase64Packet(b, m);
|
|
1017
|
-
var
|
|
1018
|
-
return
|
|
1019
|
-
t.encodePacket({ type: b.type, data:
|
|
1020
|
-
},
|
|
1017
|
+
var w = new FileReader();
|
|
1018
|
+
return w.onload = function() {
|
|
1019
|
+
t.encodePacket({ type: b.type, data: w.result }, S, !0, m);
|
|
1020
|
+
}, w.readAsArrayBuffer(b.data);
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function C(b, S, m) {
|
|
1023
1023
|
if (!S)
|
|
1024
1024
|
return t.encodeBase64Packet(b, m);
|
|
1025
1025
|
if (c)
|
|
1026
1026
|
return g(b, S, m);
|
|
1027
|
-
var
|
|
1028
|
-
|
|
1029
|
-
var E = new s([
|
|
1027
|
+
var w = new Uint8Array(1);
|
|
1028
|
+
w[0] = l[b.type];
|
|
1029
|
+
var E = new s([w.buffer, b.data]);
|
|
1030
1030
|
return m(E);
|
|
1031
1031
|
}
|
|
1032
1032
|
t.encodeBase64Packet = function(b, S) {
|
|
1033
1033
|
var m = "b" + t.packets[b.type];
|
|
1034
1034
|
if (typeof s < "u" && b.data instanceof s) {
|
|
1035
|
-
var
|
|
1036
|
-
return
|
|
1037
|
-
var x =
|
|
1035
|
+
var w = new FileReader();
|
|
1036
|
+
return w.onload = function() {
|
|
1037
|
+
var x = w.result.split(",")[1];
|
|
1038
1038
|
S(m + x);
|
|
1039
|
-
},
|
|
1039
|
+
}, w.readAsDataURL(b.data);
|
|
1040
1040
|
}
|
|
1041
1041
|
var E;
|
|
1042
1042
|
try {
|
|
@@ -1053,15 +1053,15 @@ function bn() {
|
|
|
1053
1053
|
if (typeof b == "string") {
|
|
1054
1054
|
if (b.charAt(0) === "b")
|
|
1055
1055
|
return t.decodeBase64Packet(b.substr(1), S);
|
|
1056
|
-
if (m && (b =
|
|
1056
|
+
if (m && (b = B(b), b === !1))
|
|
1057
1057
|
return a;
|
|
1058
1058
|
var E = b.charAt(0);
|
|
1059
1059
|
return Number(E) != E || !p[E] ? a : b.length > 1 ? { type: p[E], data: b.substring(1) } : { type: p[E] };
|
|
1060
1060
|
}
|
|
1061
|
-
var
|
|
1061
|
+
var w = new Uint8Array(b), E = w[0], v = n(b, 1);
|
|
1062
1062
|
return s && S === "blob" && (v = new s([v])), { type: p[E], data: v };
|
|
1063
1063
|
};
|
|
1064
|
-
function
|
|
1064
|
+
function B(b) {
|
|
1065
1065
|
try {
|
|
1066
1066
|
b = i.decode(b, { strict: !1 });
|
|
1067
1067
|
} catch {
|
|
@@ -1073,12 +1073,12 @@ function bn() {
|
|
|
1073
1073
|
var m = p[b.charAt(0)];
|
|
1074
1074
|
if (!u)
|
|
1075
1075
|
return { type: m, data: { base64: !0, data: b.substr(1) } };
|
|
1076
|
-
var
|
|
1077
|
-
return S === "blob" && s && (
|
|
1076
|
+
var w = u.decode(b.substr(1));
|
|
1077
|
+
return S === "blob" && s && (w = new s([w])), { type: m, data: w };
|
|
1078
1078
|
}, t.encodePayload = function(b, S, m) {
|
|
1079
1079
|
typeof S == "function" && (m = S, S = null);
|
|
1080
|
-
var
|
|
1081
|
-
if (S &&
|
|
1080
|
+
var w = r(b);
|
|
1081
|
+
if (S && w)
|
|
1082
1082
|
return s && !c ? t.encodePayloadAsBlob(b, m) : t.encodePayloadAsArrayBuffer(b, m);
|
|
1083
1083
|
if (!b.length)
|
|
1084
1084
|
return m("0:");
|
|
@@ -1086,7 +1086,7 @@ function bn() {
|
|
|
1086
1086
|
return k.length + ":" + k;
|
|
1087
1087
|
}
|
|
1088
1088
|
function v(k, T) {
|
|
1089
|
-
t.encodePacket(k,
|
|
1089
|
+
t.encodePacket(k, w ? S : !1, !1, function(x) {
|
|
1090
1090
|
T(null, E(x));
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
@@ -1095,9 +1095,9 @@ function bn() {
|
|
|
1095
1095
|
});
|
|
1096
1096
|
};
|
|
1097
1097
|
function _(b, S, m) {
|
|
1098
|
-
for (var
|
|
1098
|
+
for (var w = new Array(b.length), E = o(b.length, m), v = function(T, x, O) {
|
|
1099
1099
|
S(x, function(A, q) {
|
|
1100
|
-
|
|
1100
|
+
w[T] = q, O(A, w);
|
|
1101
1101
|
});
|
|
1102
1102
|
}, k = 0; k < b.length; k++)
|
|
1103
1103
|
v(k, b[k], E);
|
|
@@ -1106,7 +1106,7 @@ function bn() {
|
|
|
1106
1106
|
if (typeof b != "string")
|
|
1107
1107
|
return t.decodePayloadAsBinary(b, S, m);
|
|
1108
1108
|
typeof S == "function" && (m = S, S = null);
|
|
1109
|
-
var
|
|
1109
|
+
var w;
|
|
1110
1110
|
if (b === "")
|
|
1111
1111
|
return m(a, 0, 1);
|
|
1112
1112
|
for (var E = "", v, k, T = 0, x = b.length; T < x; T++) {
|
|
@@ -1118,9 +1118,9 @@ function bn() {
|
|
|
1118
1118
|
if (E === "" || E != (v = Number(E)) || (k = b.substr(T + 1, v), E != k.length))
|
|
1119
1119
|
return m(a, 0, 1);
|
|
1120
1120
|
if (k.length) {
|
|
1121
|
-
if (
|
|
1121
|
+
if (w = t.decodePacket(k, S, !1), a.type === w.type && a.data === w.data)
|
|
1122
1122
|
return m(a, 0, 1);
|
|
1123
|
-
var A = m(
|
|
1123
|
+
var A = m(w, T + v, x);
|
|
1124
1124
|
if (A === !1)
|
|
1125
1125
|
return;
|
|
1126
1126
|
}
|
|
@@ -1131,12 +1131,12 @@ function bn() {
|
|
|
1131
1131
|
}, t.encodePayloadAsArrayBuffer = function(b, S) {
|
|
1132
1132
|
if (!b.length)
|
|
1133
1133
|
return S(new ArrayBuffer(0));
|
|
1134
|
-
function m(
|
|
1135
|
-
t.encodePacket(
|
|
1134
|
+
function m(w, E) {
|
|
1135
|
+
t.encodePacket(w, !0, !0, function(v) {
|
|
1136
1136
|
return E(null, v);
|
|
1137
1137
|
});
|
|
1138
1138
|
}
|
|
1139
|
-
_(b, m, function(
|
|
1139
|
+
_(b, m, function(w, E) {
|
|
1140
1140
|
var v = E.reduce(function(x, O) {
|
|
1141
1141
|
var A;
|
|
1142
1142
|
return typeof O == "string" ? A = O.length : A = O.byteLength, x + A.toString().length + A + 2;
|
|
@@ -1157,8 +1157,8 @@ function bn() {
|
|
|
1157
1157
|
}), S(k.buffer);
|
|
1158
1158
|
});
|
|
1159
1159
|
}, t.encodePayloadAsBlob = function(b, S) {
|
|
1160
|
-
function m(
|
|
1161
|
-
t.encodePacket(
|
|
1160
|
+
function m(w, E) {
|
|
1161
|
+
t.encodePacket(w, !0, !0, function(v) {
|
|
1162
1162
|
var k = new Uint8Array(1);
|
|
1163
1163
|
if (k[0] = 1, typeof v == "string") {
|
|
1164
1164
|
for (var T = new Uint8Array(v.length), x = 0; x < v.length; x++)
|
|
@@ -1173,19 +1173,19 @@ function bn() {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
1176
|
-
_(b, m, function(
|
|
1176
|
+
_(b, m, function(w, E) {
|
|
1177
1177
|
return S(new s(E));
|
|
1178
1178
|
});
|
|
1179
1179
|
}, t.decodePayloadAsBinary = function(b, S, m) {
|
|
1180
1180
|
typeof S == "function" && (m = S, S = null);
|
|
1181
|
-
for (var
|
|
1182
|
-
for (var v = new Uint8Array(
|
|
1181
|
+
for (var w = b, E = []; w.byteLength > 0; ) {
|
|
1182
|
+
for (var v = new Uint8Array(w), k = v[0] === 0, T = "", x = 1; v[x] !== 255; x++) {
|
|
1183
1183
|
if (T.length > 310)
|
|
1184
1184
|
return m(a, 0, 1);
|
|
1185
1185
|
T += v[x];
|
|
1186
1186
|
}
|
|
1187
|
-
|
|
1188
|
-
var O = n(
|
|
1187
|
+
w = n(w, 2 + T.length), T = parseInt(T);
|
|
1188
|
+
var O = n(w, 0, T);
|
|
1189
1189
|
if (k)
|
|
1190
1190
|
try {
|
|
1191
1191
|
O = String.fromCharCode.apply(null, new Uint8Array(O));
|
|
@@ -1195,7 +1195,7 @@ function bn() {
|
|
|
1195
1195
|
for (var x = 0; x < A.length; x++)
|
|
1196
1196
|
O += String.fromCharCode(A[x]);
|
|
1197
1197
|
}
|
|
1198
|
-
E.push(O),
|
|
1198
|
+
E.push(O), w = n(w, T);
|
|
1199
1199
|
}
|
|
1200
1200
|
var q = E.length;
|
|
1201
1201
|
E.forEach(function(j, $) {
|
|
@@ -1208,7 +1208,7 @@ function Ee() {
|
|
|
1208
1208
|
if (De)
|
|
1209
1209
|
return se;
|
|
1210
1210
|
De = 1;
|
|
1211
|
-
var t = vt, e =
|
|
1211
|
+
var t = vt, e = Ct;
|
|
1212
1212
|
se = r;
|
|
1213
1213
|
function r(n) {
|
|
1214
1214
|
this.path = n.path, this.hostname = n.hostname, this.port = n.port, this.secure = n.secure, this.query = n.query, this.timestampParam = n.timestampParam, this.timestampRequests = n.timestampRequests, this.readyState = "", this.agent = n.agent || !1, this.socket = n.socket, this.enablesXDR = n.enablesXDR, this.withCredentials = n.withCredentials, this.pfx = n.pfx, this.key = n.key, this.passphrase = n.passphrase, this.cert = n.cert, this.ca = n.ca, this.ciphers = n.ciphers, this.rejectUnauthorized = n.rejectUnauthorized, this.forceNode = n.forceNode, this.isReactNative = n.isReactNative, this.extraHeaders = n.extraHeaders, this.localAddress = n.localAddress;
|
|
@@ -1262,7 +1262,7 @@ function ye(t) {
|
|
|
1262
1262
|
while (t > 0);
|
|
1263
1263
|
return e;
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function wn(t) {
|
|
1266
1266
|
var e = 0;
|
|
1267
1267
|
for (gt = 0; gt < t.length; gt++)
|
|
1268
1268
|
e = e * zt + ir[t.charAt(gt)];
|
|
@@ -1275,9 +1275,9 @@ function Ae() {
|
|
|
1275
1275
|
for (; gt < zt; gt++)
|
|
1276
1276
|
ir[sr[gt]] = gt;
|
|
1277
1277
|
Ae.encode = ye;
|
|
1278
|
-
Ae.decode =
|
|
1279
|
-
var ar = Ae, cr = Ee(),
|
|
1280
|
-
var t =
|
|
1278
|
+
Ae.decode = wn;
|
|
1279
|
+
var ar = Ae, cr = Ee(), Cn = St, hr = vt, Sn = Jt, En = ar, ht = lt("engine.io-client:polling"), pr = pt, An = function() {
|
|
1280
|
+
var t = Ce, e = new t({ xdomain: !1 });
|
|
1281
1281
|
return e.responseType != null;
|
|
1282
1282
|
}();
|
|
1283
1283
|
function pt(t) {
|
|
@@ -1337,11 +1337,11 @@ pt.prototype.write = function(t) {
|
|
|
1337
1337
|
};
|
|
1338
1338
|
pt.prototype.uri = function() {
|
|
1339
1339
|
var t = this.query || {}, e = this.secure ? "https" : "http", r = "";
|
|
1340
|
-
this.timestampRequests !== !1 && (t[this.timestampParam] = En()), !this.supportsBinary && !t.sid && (t.b64 = 1), t =
|
|
1340
|
+
this.timestampRequests !== !1 && (t[this.timestampParam] = En()), !this.supportsBinary && !t.sid && (t.b64 = 1), t = Cn.encode(t), this.port && (e === "https" && Number(this.port) !== 443 || e === "http" && Number(this.port) !== 80) && (r = ":" + this.port), t.length && (t = "?" + t);
|
|
1341
1341
|
var n = this.hostname.indexOf(":") !== -1;
|
|
1342
1342
|
return e + "://" + (n ? "[" + this.hostname + "]" : this.hostname) + r + this.path + t;
|
|
1343
1343
|
};
|
|
1344
|
-
var Tn =
|
|
1344
|
+
var Tn = Ce, ur = pr, Nn = Ct, xn = Jt, ge = lt("engine.io-client:polling-xhr"), On = we;
|
|
1345
1345
|
Se.exports = Et;
|
|
1346
1346
|
Se.exports.Request = Y;
|
|
1347
1347
|
function je() {
|
|
@@ -1475,7 +1475,7 @@ function Me() {
|
|
|
1475
1475
|
for (var t in Y.requests)
|
|
1476
1476
|
Y.requests.hasOwnProperty(t) && Y.requests[t].abort();
|
|
1477
1477
|
}
|
|
1478
|
-
var
|
|
1478
|
+
var In = Se.exports, Te = pr, Bn = Jt, qe = we, _n = At, Ln = /\n/g, Un = /\\n/g, Pt;
|
|
1479
1479
|
function Dn() {
|
|
1480
1480
|
}
|
|
1481
1481
|
function At(t) {
|
|
@@ -1487,7 +1487,7 @@ function At(t) {
|
|
|
1487
1487
|
e.script && (e.script.onerror = Dn);
|
|
1488
1488
|
}, !1);
|
|
1489
1489
|
}
|
|
1490
|
-
|
|
1490
|
+
Bn(At, Te);
|
|
1491
1491
|
At.prototype.supportsBinary = !1;
|
|
1492
1492
|
At.prototype.doClose = function() {
|
|
1493
1493
|
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), Te.prototype.doClose.call(this);
|
|
@@ -1551,10 +1551,10 @@ if (typeof window > "u")
|
|
|
1551
1551
|
xe = jn;
|
|
1552
1552
|
} catch {
|
|
1553
1553
|
}
|
|
1554
|
-
var
|
|
1554
|
+
var wt = Xt || xe, Kn = st;
|
|
1555
1555
|
function st(t) {
|
|
1556
1556
|
var e = t && t.forceBase64;
|
|
1557
|
-
e && (this.supportsBinary = !1), this.perMessageDeflate = t.perMessageDeflate, this.usingBrowserWebSocket = Xt && !t.forceNode, this.protocols = t.protocols, this.usingBrowserWebSocket || (
|
|
1557
|
+
e && (this.supportsBinary = !1), this.perMessageDeflate = t.perMessageDeflate, this.usingBrowserWebSocket = Xt && !t.forceNode, this.protocols = t.protocols, this.usingBrowserWebSocket || (wt = xe), Ne.call(this, t);
|
|
1558
1558
|
}
|
|
1559
1559
|
zn(st, Ne);
|
|
1560
1560
|
st.prototype.name = "websocket";
|
|
@@ -1564,7 +1564,7 @@ st.prototype.doOpen = function() {
|
|
|
1564
1564
|
var t = this.uri(), e = this.protocols, r = {};
|
|
1565
1565
|
this.isReactNative || (r.agent = this.agent, r.perMessageDeflate = this.perMessageDeflate, r.pfx = this.pfx, r.key = this.key, r.passphrase = this.passphrase, r.cert = this.cert, r.ca = this.ca, r.ciphers = this.ciphers, r.rejectUnauthorized = this.rejectUnauthorized), this.extraHeaders && (r.headers = this.extraHeaders), this.localAddress && (r.localAddress = this.localAddress);
|
|
1566
1566
|
try {
|
|
1567
|
-
this.ws = this.usingBrowserWebSocket && !this.isReactNative ? e ? new
|
|
1567
|
+
this.ws = this.usingBrowserWebSocket && !this.isReactNative ? e ? new wt(t, e) : new wt(t) : new wt(t, e, r);
|
|
1568
1568
|
} catch (n) {
|
|
1569
1569
|
return this.emit("error", n);
|
|
1570
1570
|
}
|
|
@@ -1623,9 +1623,9 @@ st.prototype.uri = function() {
|
|
|
1623
1623
|
return e + "://" + (n ? "[" + this.hostname + "]" : this.hostname) + r + this.path + t;
|
|
1624
1624
|
};
|
|
1625
1625
|
st.prototype.check = function() {
|
|
1626
|
-
return !!
|
|
1626
|
+
return !!wt && !("__initialize" in wt && this.name === st.prototype.name);
|
|
1627
1627
|
};
|
|
1628
|
-
var Hn =
|
|
1628
|
+
var Hn = Ce, Jn = In, Vn = _n, $n = Kn;
|
|
1629
1629
|
Ht.polling = Gn;
|
|
1630
1630
|
Ht.websocket = $n;
|
|
1631
1631
|
function Gn(t) {
|
|
@@ -1647,7 +1647,7 @@ var Yn = [].indexOf, lr = function(t, e) {
|
|
|
1647
1647
|
if (t[r] === e)
|
|
1648
1648
|
return r;
|
|
1649
1649
|
return -1;
|
|
1650
|
-
}, Qn = Ht, Zn =
|
|
1650
|
+
}, Qn = Ht, Zn = Ct, G = lt("engine.io-client:socket"), to = lr, fr = vt, ze = Ge, eo = St, ro = W;
|
|
1651
1651
|
function W(t, e) {
|
|
1652
1652
|
if (!(this instanceof W))
|
|
1653
1653
|
return new W(t, e);
|
|
@@ -1914,7 +1914,7 @@ var Xe = [].slice, gr = function(t, e) {
|
|
|
1914
1914
|
};
|
|
1915
1915
|
};
|
|
1916
1916
|
(function(t, e) {
|
|
1917
|
-
var r = Wt, n =
|
|
1917
|
+
var r = Wt, n = Ct, o = so, i = yr, u = gr, h = lt("socket.io-client:socket"), d = St, c = rr;
|
|
1918
1918
|
t.exports = a;
|
|
1919
1919
|
var l = {
|
|
1920
1920
|
connect: 1,
|
|
@@ -2062,7 +2062,7 @@ Tt.prototype.setMax = function(t) {
|
|
|
2062
2062
|
Tt.prototype.setJitter = function(t) {
|
|
2063
2063
|
this.jitter = t;
|
|
2064
2064
|
};
|
|
2065
|
-
var ho = oo, po = mr, uo =
|
|
2065
|
+
var ho = oo, po = mr, uo = Ct, lo = Wt, ft = yr, bt = gr, Z = lt("socket.io-client:manager"), vr = lr, fo = co, kr = Object.prototype.hasOwnProperty, We = K;
|
|
2066
2066
|
function K(t, e) {
|
|
2067
2067
|
if (!(this instanceof K))
|
|
2068
2068
|
return new K(t, e);
|
|
@@ -2258,7 +2258,7 @@ function ko(t, e = 0) {
|
|
|
2258
2258
|
const bo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ke = {
|
|
2259
2259
|
randomUUID: bo
|
|
2260
2260
|
};
|
|
2261
|
-
function
|
|
2261
|
+
function wo(t, e, r) {
|
|
2262
2262
|
if (Ke.randomUUID && !e && !t)
|
|
2263
2263
|
return Ke.randomUUID();
|
|
2264
2264
|
t = t || {};
|
|
@@ -2271,7 +2271,7 @@ function Co(t, e, r) {
|
|
|
2271
2271
|
}
|
|
2272
2272
|
return ko(n);
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function Co(t, e) {
|
|
2275
2275
|
const r = e.map((o) => JSON.stringify(o)).join(" "), n = (/* @__PURE__ */ new Date()).toISOString();
|
|
2276
2276
|
return JSON.stringify({
|
|
2277
2277
|
level: t,
|
|
@@ -2397,7 +2397,7 @@ class xo {
|
|
|
2397
2397
|
* @return void
|
|
2398
2398
|
*/
|
|
2399
2399
|
setupStorageFunctions(e, r, n) {
|
|
2400
|
-
this.getItem = e && typeof e == "function" ? this.isGetItemAsync ? e : He(e) : this.defaultGetItemFunction, this.setItem = r && typeof r == "function" ? this.isSetItemAsync ? r : He(r) : this.defaultSetItemFunction, this.parseLog = n && typeof n == "function" ? n :
|
|
2400
|
+
this.getItem = e && typeof e == "function" ? this.isGetItemAsync ? e : He(e) : this.defaultGetItemFunction, this.setItem = r && typeof r == "function" ? this.isSetItemAsync ? r : He(r) : this.defaultSetItemFunction, this.parseLog = n && typeof n == "function" ? n : Co;
|
|
2401
2401
|
}
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Used to initialize logger. Initializes storage, establishes socket connection and overloads console if needed
|
|
@@ -2552,7 +2552,7 @@ class xo {
|
|
|
2552
2552
|
* @return string
|
|
2553
2553
|
*/
|
|
2554
2554
|
getStorageName() {
|
|
2555
|
-
const e =
|
|
2555
|
+
const e = wo();
|
|
2556
2556
|
return this.system.toString().toUpperCase() + e + Date.now();
|
|
2557
2557
|
}
|
|
2558
2558
|
/**
|
|
@@ -2889,8 +2889,8 @@ const Ro = {
|
|
|
2889
2889
|
debug: !1
|
|
2890
2890
|
}
|
|
2891
2891
|
};
|
|
2892
|
-
function
|
|
2893
|
-
return function t(e, r, n) {
|
|
2892
|
+
function Io() {
|
|
2893
|
+
return (typeof window.navigator > "u" || typeof window.navigator.userAgent > "u") && (window.navigator.userAgent = "react-native"), function t(e, r, n) {
|
|
2894
2894
|
function o(h, d) {
|
|
2895
2895
|
if (!r[h]) {
|
|
2896
2896
|
if (!e[h]) {
|
|
@@ -2973,14 +2973,14 @@ function Bo() {
|
|
|
2973
2973
|
f.maybeReconnectOnOpen();
|
|
2974
2974
|
});
|
|
2975
2975
|
if (this._timeout !== !1) {
|
|
2976
|
-
var
|
|
2977
|
-
c("connect attempt will timeout after %d",
|
|
2978
|
-
var
|
|
2979
|
-
c("connect attempt timed out after %d",
|
|
2980
|
-
},
|
|
2976
|
+
var C = this._timeout;
|
|
2977
|
+
c("connect attempt will timeout after %d", C);
|
|
2978
|
+
var B = setTimeout(function() {
|
|
2979
|
+
c("connect attempt timed out after %d", C), y.destroy(), s.close(), s.emit("error", "timeout"), f.emitAll("connect_timeout", C);
|
|
2980
|
+
}, C);
|
|
2981
2981
|
this.subs.push({
|
|
2982
2982
|
destroy: function() {
|
|
2983
|
-
clearTimeout(
|
|
2983
|
+
clearTimeout(B);
|
|
2984
2984
|
}
|
|
2985
2985
|
});
|
|
2986
2986
|
}
|
|
@@ -3151,8 +3151,8 @@ function Bo() {
|
|
|
3151
3151
|
y = !0;
|
|
3152
3152
|
var g = u(arguments);
|
|
3153
3153
|
c("sending ack %j", g);
|
|
3154
|
-
var
|
|
3155
|
-
f.packet({ type:
|
|
3154
|
+
var C = l(g) ? o.BINARY_ACK : o.ACK;
|
|
3155
|
+
f.packet({ type: C, id: s, data: g });
|
|
3156
3156
|
}
|
|
3157
3157
|
};
|
|
3158
3158
|
}, n.prototype.onack = function(s) {
|
|
@@ -3402,8 +3402,8 @@ function Bo() {
|
|
|
3402
3402
|
});
|
|
3403
3403
|
}, n.prototype.probe = function(s) {
|
|
3404
3404
|
function f() {
|
|
3405
|
-
if (
|
|
3406
|
-
var E = !this.supportsBinary &&
|
|
3405
|
+
if (w.onlyBinaryUpgrades) {
|
|
3406
|
+
var E = !this.supportsBinary && w.transport.supportsBinary;
|
|
3407
3407
|
m = m || E;
|
|
3408
3408
|
}
|
|
3409
3409
|
m || (h('probe transport "%s" opened', s), S.send([{
|
|
@@ -3412,15 +3412,15 @@ function Bo() {
|
|
|
3412
3412
|
}]), S.once("packet", function(v) {
|
|
3413
3413
|
if (!m)
|
|
3414
3414
|
if (v.type == "pong" && v.data == "probe") {
|
|
3415
|
-
if (h('probe transport "%s" pong', s),
|
|
3415
|
+
if (h('probe transport "%s" pong', s), w.upgrading = !0, w.emit("upgrading", S), !S)
|
|
3416
3416
|
return;
|
|
3417
|
-
n.priorWebsocketSuccess = S.name == "websocket", h('pausing current transport "%s"',
|
|
3418
|
-
m ||
|
|
3417
|
+
n.priorWebsocketSuccess = S.name == "websocket", h('pausing current transport "%s"', w.transport.name), w.transport.pause(function() {
|
|
3418
|
+
m || w.readyState != "closed" && (h("changing transport and sending upgrade packet"), b(), w.setTransport(S), S.send([{ type: "upgrade" }]), w.emit("upgrade", S), S = null, w.upgrading = !1, w.flush());
|
|
3419
3419
|
});
|
|
3420
3420
|
} else {
|
|
3421
3421
|
h('probe transport "%s" failed', s);
|
|
3422
3422
|
var k = new Error("probe error");
|
|
3423
|
-
k.transport = S.name,
|
|
3423
|
+
k.transport = S.name, w.emit("upgradeError", k);
|
|
3424
3424
|
}
|
|
3425
3425
|
}));
|
|
3426
3426
|
}
|
|
@@ -3429,23 +3429,23 @@ function Bo() {
|
|
|
3429
3429
|
}
|
|
3430
3430
|
function g(E) {
|
|
3431
3431
|
var v = new Error("probe error: " + E);
|
|
3432
|
-
v.transport = S.name, y(), h('probe transport "%s" failed because of error: %s', s, E),
|
|
3432
|
+
v.transport = S.name, y(), h('probe transport "%s" failed because of error: %s', s, E), w.emit("upgradeError", v);
|
|
3433
3433
|
}
|
|
3434
|
-
function
|
|
3434
|
+
function C() {
|
|
3435
3435
|
g("transport closed");
|
|
3436
3436
|
}
|
|
3437
|
-
function
|
|
3437
|
+
function B() {
|
|
3438
3438
|
g("socket closed");
|
|
3439
3439
|
}
|
|
3440
3440
|
function _(E) {
|
|
3441
3441
|
S && E.name != S.name && (h('"%s" works - aborting "%s"', E.name, S.name), y());
|
|
3442
3442
|
}
|
|
3443
3443
|
function b() {
|
|
3444
|
-
S.removeListener("open", f), S.removeListener("error", g), S.removeListener("close",
|
|
3444
|
+
S.removeListener("open", f), S.removeListener("error", g), S.removeListener("close", C), w.removeListener("close", B), w.removeListener("upgrading", _);
|
|
3445
3445
|
}
|
|
3446
3446
|
h('probing transport "%s"', s);
|
|
3447
|
-
var S = this.createTransport(s, { probe: 1 }), m = !1,
|
|
3448
|
-
n.priorWebsocketSuccess = !1, S.once("open", f), S.once("error", g), S.once("close",
|
|
3447
|
+
var S = this.createTransport(s, { probe: 1 }), m = !1, w = this;
|
|
3448
|
+
n.priorWebsocketSuccess = !1, S.once("open", f), S.once("error", g), S.once("close", C), this.once("close", B), this.once("upgrading", _), S.open();
|
|
3449
3449
|
}, n.prototype.onOpen = function() {
|
|
3450
3450
|
if (h("socket open"), this.readyState = "open", n.priorWebsocketSuccess = this.transport.name == "websocket", this.emit("open"), this.flush(), this.readyState == "open" && this.upgrade && this.transport.pause) {
|
|
3451
3451
|
h("starting upgrade probes");
|
|
@@ -3639,8 +3639,8 @@ function Bo() {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
var f = this;
|
|
3641
3641
|
if (!this.form) {
|
|
3642
|
-
var y, g = document.createElement("form"),
|
|
3643
|
-
g.className = "socketio", g.style.position = "absolute", g.style.top = "-1000px", g.style.left = "-1000px", g.target =
|
|
3642
|
+
var y, g = document.createElement("form"), C = document.createElement("textarea"), B = this.iframeId = "eio_iframe_" + this.index;
|
|
3643
|
+
g.className = "socketio", g.style.position = "absolute", g.style.top = "-1000px", g.style.left = "-1000px", g.target = B, g.method = "POST", g.setAttribute("accept-charset", "utf-8"), C.name = "d", g.appendChild(C), document.body.appendChild(g), this.form = g, this.area = C;
|
|
3644
3644
|
}
|
|
3645
3645
|
this.form.action = this.uri(), s(), l = l.replace(c, `\\
|
|
3646
3646
|
`), this.area.value = l.replace(d, "\\n");
|
|
@@ -3676,8 +3676,8 @@ function Bo() {
|
|
|
3676
3676
|
return a = a || {}, a.uri = this.uri(), a.xd = this.xd, a.xs = this.xs, a.agent = this.agent || !1, a.supportsBinary = this.supportsBinary, a.enablesXDR = this.enablesXDR, a.pfx = this.pfx, a.key = this.key, a.passphrase = this.passphrase, a.cert = this.cert, a.ca = this.ca, a.ciphers = this.ciphers, a.rejectUnauthorized = this.rejectUnauthorized, new i(a);
|
|
3677
3677
|
}, o.prototype.doWrite = function(a, s) {
|
|
3678
3678
|
var f = typeof a != "string" && a !== void 0, y = this.request({ method: "POST", data: a, isBinary: f }), g = this;
|
|
3679
|
-
y.on("success", s), y.on("error", function(
|
|
3680
|
-
g.onError("xhr post error",
|
|
3679
|
+
y.on("success", s), y.on("error", function(C) {
|
|
3680
|
+
g.onError("xhr post error", C);
|
|
3681
3681
|
}), this.sendXhr = y;
|
|
3682
3682
|
}, o.prototype.doPoll = function() {
|
|
3683
3683
|
p("xhr poll");
|
|
@@ -3935,24 +3935,24 @@ function Bo() {
|
|
|
3935
3935
|
function a() {
|
|
3936
3936
|
}
|
|
3937
3937
|
function s() {
|
|
3938
|
-
var y = s, g = +/* @__PURE__ */ new Date(),
|
|
3939
|
-
y.diff =
|
|
3940
|
-
var
|
|
3941
|
-
|
|
3938
|
+
var y = s, g = +/* @__PURE__ */ new Date(), C = g - (c || g);
|
|
3939
|
+
y.diff = C, y.prev = c, y.curr = g, c = g, y.useColors == null && (y.useColors = r.useColors()), y.color == null && y.useColors && (y.color = n());
|
|
3940
|
+
var B = Array.prototype.slice.call(arguments);
|
|
3941
|
+
B[0] = r.coerce(B[0]), typeof B[0] != "string" && (B = ["%o"].concat(B));
|
|
3942
3942
|
var _ = 0;
|
|
3943
|
-
|
|
3943
|
+
B[0] = B[0].replace(/%([a-z%])/g, function(S, m) {
|
|
3944
3944
|
if (S === "%%")
|
|
3945
3945
|
return S;
|
|
3946
3946
|
_++;
|
|
3947
|
-
var
|
|
3948
|
-
if (typeof
|
|
3949
|
-
var E =
|
|
3950
|
-
S =
|
|
3947
|
+
var w = r.formatters[m];
|
|
3948
|
+
if (typeof w == "function") {
|
|
3949
|
+
var E = B[_];
|
|
3950
|
+
S = w.call(y, E), B.splice(_, 1), _--;
|
|
3951
3951
|
}
|
|
3952
3952
|
return S;
|
|
3953
|
-
}), typeof r.formatArgs == "function" && (
|
|
3953
|
+
}), typeof r.formatArgs == "function" && (B = r.formatArgs.apply(y, B));
|
|
3954
3954
|
var b = s.log || r.log || console.log.bind(console);
|
|
3955
|
-
b.apply(y,
|
|
3955
|
+
b.apply(y, B);
|
|
3956
3956
|
}
|
|
3957
3957
|
a.enabled = !1, s.enabled = !0;
|
|
3958
3958
|
var f = r.enabled(p) ? s : a;
|
|
@@ -4029,66 +4029,66 @@ function Bo() {
|
|
|
4029
4029
|
}, {}],
|
|
4030
4030
|
25: [function(t, e, r) {
|
|
4031
4031
|
(function(n) {
|
|
4032
|
-
function o(m,
|
|
4032
|
+
function o(m, w) {
|
|
4033
4033
|
var E = "b" + r.packets[m.type] + m.data.data;
|
|
4034
|
-
return
|
|
4034
|
+
return w(E);
|
|
4035
4035
|
}
|
|
4036
|
-
function i(m,
|
|
4037
|
-
if (!
|
|
4036
|
+
function i(m, w, E) {
|
|
4037
|
+
if (!w)
|
|
4038
4038
|
return r.encodeBase64Packet(m, E);
|
|
4039
4039
|
var v = m.data, k = new Uint8Array(v), T = new Uint8Array(1 + v.byteLength);
|
|
4040
|
-
T[0] =
|
|
4040
|
+
T[0] = B[m.type];
|
|
4041
4041
|
for (var x = 0; x < k.length; x++)
|
|
4042
4042
|
T[x + 1] = k[x];
|
|
4043
4043
|
return E(T.buffer);
|
|
4044
4044
|
}
|
|
4045
|
-
function u(m,
|
|
4046
|
-
if (!
|
|
4045
|
+
function u(m, w, E) {
|
|
4046
|
+
if (!w)
|
|
4047
4047
|
return r.encodeBase64Packet(m, E);
|
|
4048
4048
|
var v = new FileReader();
|
|
4049
4049
|
return v.onload = function() {
|
|
4050
|
-
m.data = v.result, r.encodePacket(m,
|
|
4050
|
+
m.data = v.result, r.encodePacket(m, w, !0, E);
|
|
4051
4051
|
}, v.readAsArrayBuffer(m.data);
|
|
4052
4052
|
}
|
|
4053
|
-
function h(m,
|
|
4054
|
-
if (!
|
|
4053
|
+
function h(m, w, E) {
|
|
4054
|
+
if (!w)
|
|
4055
4055
|
return r.encodeBase64Packet(m, E);
|
|
4056
|
-
if (
|
|
4057
|
-
return u(m,
|
|
4056
|
+
if (C)
|
|
4057
|
+
return u(m, w, E);
|
|
4058
4058
|
var v = new Uint8Array(1);
|
|
4059
|
-
v[0] =
|
|
4059
|
+
v[0] = B[m.type];
|
|
4060
4060
|
var k = new S([v.buffer, m.data]);
|
|
4061
4061
|
return E(k);
|
|
4062
4062
|
}
|
|
4063
|
-
function d(m,
|
|
4063
|
+
function d(m, w, E) {
|
|
4064
4064
|
for (var v = new Array(m.length), k = s(m.length, E), T = function(O, A, q) {
|
|
4065
|
-
|
|
4065
|
+
w(A, function(j, $) {
|
|
4066
4066
|
v[O] = $, q(j, v);
|
|
4067
4067
|
});
|
|
4068
4068
|
}, x = 0; x < m.length; x++)
|
|
4069
4069
|
T(x, m[x], k);
|
|
4070
4070
|
}
|
|
4071
|
-
var c = t("./keys"), l = t("has-binary"), p = t("arraybuffer.slice"), a = t("base64-arraybuffer"), s = t("after"), f = t("utf8"), y = navigator.userAgent.match(/Android/i), g = /PhantomJS/i.test(navigator.userAgent),
|
|
4071
|
+
var c = t("./keys"), l = t("has-binary"), p = t("arraybuffer.slice"), a = t("base64-arraybuffer"), s = t("after"), f = t("utf8"), y = navigator.userAgent.match(/Android/i), g = /PhantomJS/i.test(navigator.userAgent), C = y || g;
|
|
4072
4072
|
r.protocol = 3;
|
|
4073
|
-
var
|
|
4074
|
-
r.encodePacket = function(m,
|
|
4075
|
-
typeof
|
|
4073
|
+
var B = r.packets = { open: 0, close: 1, ping: 2, pong: 3, message: 4, upgrade: 5, noop: 6 }, _ = c(B), b = { type: "error", data: "parser error" }, S = t("blob");
|
|
4074
|
+
r.encodePacket = function(m, w, E, v) {
|
|
4075
|
+
typeof w == "function" && (v = w, w = !1), typeof E == "function" && (v = E, E = null);
|
|
4076
4076
|
var k = m.data === void 0 ? void 0 : m.data.buffer || m.data;
|
|
4077
4077
|
if (n.ArrayBuffer && k instanceof ArrayBuffer)
|
|
4078
|
-
return i(m,
|
|
4078
|
+
return i(m, w, v);
|
|
4079
4079
|
if (S && k instanceof n.Blob)
|
|
4080
|
-
return h(m,
|
|
4080
|
+
return h(m, w, v);
|
|
4081
4081
|
if (k && k.base64)
|
|
4082
4082
|
return o(m, v);
|
|
4083
|
-
var T =
|
|
4083
|
+
var T = B[m.type];
|
|
4084
4084
|
return m.data !== void 0 && (T += E ? f.encode(String(m.data)) : String(m.data)), v("" + T);
|
|
4085
|
-
}, r.encodeBase64Packet = function(m,
|
|
4085
|
+
}, r.encodeBase64Packet = function(m, w) {
|
|
4086
4086
|
var E = "b" + r.packets[m.type];
|
|
4087
4087
|
if (S && m.data instanceof S) {
|
|
4088
4088
|
var v = new FileReader();
|
|
4089
4089
|
return v.onload = function() {
|
|
4090
4090
|
var A = v.result.split(",")[1];
|
|
4091
|
-
|
|
4091
|
+
w(E + A);
|
|
4092
4092
|
}, v.readAsDataURL(m.data);
|
|
4093
4093
|
}
|
|
4094
4094
|
var k;
|
|
@@ -4099,11 +4099,11 @@ function Bo() {
|
|
|
4099
4099
|
x[O] = T[O];
|
|
4100
4100
|
k = String.fromCharCode.apply(null, x);
|
|
4101
4101
|
}
|
|
4102
|
-
return E += n.btoa(k),
|
|
4103
|
-
}, r.decodePacket = function(m,
|
|
4102
|
+
return E += n.btoa(k), w(E);
|
|
4103
|
+
}, r.decodePacket = function(m, w, E) {
|
|
4104
4104
|
if (typeof m == "string" || m === void 0) {
|
|
4105
4105
|
if (m.charAt(0) == "b")
|
|
4106
|
-
return r.decodeBase64Packet(m.substr(1),
|
|
4106
|
+
return r.decodeBase64Packet(m.substr(1), w);
|
|
4107
4107
|
if (E)
|
|
4108
4108
|
try {
|
|
4109
4109
|
m = f.decode(m);
|
|
@@ -4117,31 +4117,31 @@ function Bo() {
|
|
|
4117
4117
|
} : { type: _[k] } : b;
|
|
4118
4118
|
}
|
|
4119
4119
|
var v = new Uint8Array(m), k = v[0], T = p(m, 1);
|
|
4120
|
-
return S &&
|
|
4121
|
-
}, r.decodeBase64Packet = function(m,
|
|
4120
|
+
return S && w === "blob" && (T = new S([T])), { type: _[k], data: T };
|
|
4121
|
+
}, r.decodeBase64Packet = function(m, w) {
|
|
4122
4122
|
var E = _[m.charAt(0)];
|
|
4123
4123
|
if (!n.ArrayBuffer)
|
|
4124
4124
|
return { type: E, data: { base64: !0, data: m.substr(1) } };
|
|
4125
4125
|
var v = a.decode(m.substr(1));
|
|
4126
|
-
return
|
|
4127
|
-
}, r.encodePayload = function(m,
|
|
4126
|
+
return w === "blob" && S && (v = new S([v])), { type: E, data: v };
|
|
4127
|
+
}, r.encodePayload = function(m, w, E) {
|
|
4128
4128
|
function v(x) {
|
|
4129
4129
|
return x.length + ":" + x;
|
|
4130
4130
|
}
|
|
4131
4131
|
function k(x, O) {
|
|
4132
|
-
r.encodePacket(x, T ?
|
|
4132
|
+
r.encodePacket(x, T ? w : !1, !0, function(A) {
|
|
4133
4133
|
O(null, v(A));
|
|
4134
4134
|
});
|
|
4135
4135
|
}
|
|
4136
|
-
typeof
|
|
4136
|
+
typeof w == "function" && (E = w, w = null);
|
|
4137
4137
|
var T = l(m);
|
|
4138
|
-
return
|
|
4138
|
+
return w && T ? S && !C ? r.encodePayloadAsBlob(m, E) : r.encodePayloadAsArrayBuffer(m, E) : m.length ? void d(m, k, function(x, O) {
|
|
4139
4139
|
return E(O.join(""));
|
|
4140
4140
|
}) : E("0:");
|
|
4141
|
-
}, r.decodePayload = function(m,
|
|
4141
|
+
}, r.decodePayload = function(m, w, E) {
|
|
4142
4142
|
if (typeof m != "string")
|
|
4143
|
-
return r.decodePayloadAsBinary(m,
|
|
4144
|
-
typeof
|
|
4143
|
+
return r.decodePayloadAsBinary(m, w, E);
|
|
4144
|
+
typeof w == "function" && (E = w, w = null);
|
|
4145
4145
|
var v;
|
|
4146
4146
|
if (m == "")
|
|
4147
4147
|
return E(b, 0, 1);
|
|
@@ -4153,7 +4153,7 @@ function Bo() {
|
|
|
4153
4153
|
if (x == "" || x != (k = Number(x)) || (T = m.substr(O + 1, k), x != T.length))
|
|
4154
4154
|
return E(b, 0, 1);
|
|
4155
4155
|
if (T.length) {
|
|
4156
|
-
if (v = r.decodePacket(T,
|
|
4156
|
+
if (v = r.decodePacket(T, w, !0), b.type == v.type && b.data == v.data)
|
|
4157
4157
|
return E(b, 0, 1);
|
|
4158
4158
|
var j = E(v, O + k, A);
|
|
4159
4159
|
if (j === !1)
|
|
@@ -4163,7 +4163,7 @@ function Bo() {
|
|
|
4163
4163
|
}
|
|
4164
4164
|
}
|
|
4165
4165
|
return x != "" ? E(b, 0, 1) : void 0;
|
|
4166
|
-
}, r.encodePayloadAsArrayBuffer = function(m,
|
|
4166
|
+
}, r.encodePayloadAsArrayBuffer = function(m, w) {
|
|
4167
4167
|
function E(v, k) {
|
|
4168
4168
|
r.encodePacket(v, !0, !0, function(T) {
|
|
4169
4169
|
return k(null, T);
|
|
@@ -4187,9 +4187,9 @@ function Bo() {
|
|
|
4187
4187
|
x[O++] = 255;
|
|
4188
4188
|
for (var $ = new Uint8Array(j), X = 0; X < $.length; X++)
|
|
4189
4189
|
x[O++] = $[X];
|
|
4190
|
-
}),
|
|
4191
|
-
}) :
|
|
4192
|
-
}, r.encodePayloadAsBlob = function(m,
|
|
4190
|
+
}), w(x.buffer);
|
|
4191
|
+
}) : w(new ArrayBuffer(0));
|
|
4192
|
+
}, r.encodePayloadAsBlob = function(m, w) {
|
|
4193
4193
|
function E(v, k) {
|
|
4194
4194
|
r.encodePacket(v, !0, !0, function(T) {
|
|
4195
4195
|
var x = new Uint8Array(1);
|
|
@@ -4207,10 +4207,10 @@ function Bo() {
|
|
|
4207
4207
|
});
|
|
4208
4208
|
}
|
|
4209
4209
|
d(m, E, function(v, k) {
|
|
4210
|
-
return
|
|
4210
|
+
return w(new S(k));
|
|
4211
4211
|
});
|
|
4212
|
-
}, r.decodePayloadAsBinary = function(m,
|
|
4213
|
-
typeof
|
|
4212
|
+
}, r.decodePayloadAsBinary = function(m, w, E) {
|
|
4213
|
+
typeof w == "function" && (E = w, w = null);
|
|
4214
4214
|
for (var v = m, k = [], T = !1; v.byteLength > 0; ) {
|
|
4215
4215
|
for (var x = new Uint8Array(v), O = x[0] === 0, A = "", q = 1; x[q] != 255; q++) {
|
|
4216
4216
|
if (A.length > 310) {
|
|
@@ -4236,7 +4236,7 @@ function Bo() {
|
|
|
4236
4236
|
}
|
|
4237
4237
|
var X = k.length;
|
|
4238
4238
|
k.forEach(function(et, Nt) {
|
|
4239
|
-
E(r.decodePacket(et,
|
|
4239
|
+
E(r.decodePacket(et, w, !0), Nt, X);
|
|
4240
4240
|
});
|
|
4241
4241
|
};
|
|
4242
4242
|
}).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -4378,20 +4378,20 @@ function Bo() {
|
|
|
4378
4378
|
return A;
|
|
4379
4379
|
}
|
|
4380
4380
|
function p() {
|
|
4381
|
-
if (_ >=
|
|
4381
|
+
if (_ >= B)
|
|
4382
4382
|
throw Error("Invalid byte index");
|
|
4383
|
-
var v = 255 &
|
|
4383
|
+
var v = 255 & C[_];
|
|
4384
4384
|
if (_++, (192 & v) == 128)
|
|
4385
4385
|
return 63 & v;
|
|
4386
4386
|
throw Error("Invalid continuation byte");
|
|
4387
4387
|
}
|
|
4388
4388
|
function a() {
|
|
4389
4389
|
var v, k, T, x, O;
|
|
4390
|
-
if (_ >
|
|
4390
|
+
if (_ > B)
|
|
4391
4391
|
throw Error("Invalid byte index");
|
|
4392
|
-
if (_ ==
|
|
4392
|
+
if (_ == B)
|
|
4393
4393
|
return !1;
|
|
4394
|
-
if (v = 255 &
|
|
4394
|
+
if (v = 255 & C[_], _++, (128 & v) == 0)
|
|
4395
4395
|
return v;
|
|
4396
4396
|
if ((224 & v) == 192) {
|
|
4397
4397
|
var k = p();
|
|
@@ -4409,21 +4409,21 @@ function Bo() {
|
|
|
4409
4409
|
throw Error("Invalid UTF-8 detected");
|
|
4410
4410
|
}
|
|
4411
4411
|
function s(v) {
|
|
4412
|
-
|
|
4412
|
+
C = i(v), B = C.length, _ = 0;
|
|
4413
4413
|
for (var k, T = []; (k = a()) !== !1; )
|
|
4414
4414
|
T.push(k);
|
|
4415
4415
|
return u(T);
|
|
4416
4416
|
}
|
|
4417
4417
|
var f = typeof r == "object" && r, y = typeof e == "object" && e && e.exports == f && e, g = typeof n == "object" && n;
|
|
4418
4418
|
(g.global === g || g.window === g) && (o = g);
|
|
4419
|
-
var
|
|
4419
|
+
var C, B, _, b = String.fromCharCode, S = { version: "2.0.0", encode: l, decode: s };
|
|
4420
4420
|
if (f && !f.nodeType)
|
|
4421
4421
|
if (y)
|
|
4422
4422
|
y.exports = S;
|
|
4423
4423
|
else {
|
|
4424
|
-
var m = {},
|
|
4424
|
+
var m = {}, w = m.hasOwnProperty;
|
|
4425
4425
|
for (var E in S)
|
|
4426
|
-
|
|
4426
|
+
w.call(S, E) && (f[E] = S[E]);
|
|
4427
4427
|
}
|
|
4428
4428
|
else
|
|
4429
4429
|
o.utf8 = S;
|
|
@@ -4627,54 +4627,54 @@ function Bo() {
|
|
|
4627
4627
|
function n() {
|
|
4628
4628
|
}
|
|
4629
4629
|
function o(y) {
|
|
4630
|
-
var g = "",
|
|
4631
|
-
return g += y.type, (r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type) && (g += y.attachments, g += "-"), y.nsp && y.nsp != "/" && (
|
|
4630
|
+
var g = "", C = !1;
|
|
4631
|
+
return g += y.type, (r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type) && (g += y.attachments, g += "-"), y.nsp && y.nsp != "/" && (C = !0, g += y.nsp), y.id != null && (C && (g += ",", C = !1), g += y.id), y.data != null && (C && (g += ","), g += p.stringify(y.data)), l("encoded %j as %s", y, g), g;
|
|
4632
4632
|
}
|
|
4633
4633
|
function i(y, g) {
|
|
4634
|
-
function
|
|
4635
|
-
var _ = s.deconstructPacket(
|
|
4634
|
+
function C(B) {
|
|
4635
|
+
var _ = s.deconstructPacket(B), b = o(_.packet), S = _.buffers;
|
|
4636
4636
|
S.unshift(b), g(S);
|
|
4637
4637
|
}
|
|
4638
|
-
s.removeBlobs(y,
|
|
4638
|
+
s.removeBlobs(y, C);
|
|
4639
4639
|
}
|
|
4640
4640
|
function u() {
|
|
4641
4641
|
this.reconstructor = null;
|
|
4642
4642
|
}
|
|
4643
4643
|
function h(y) {
|
|
4644
|
-
var g = {},
|
|
4644
|
+
var g = {}, C = 0;
|
|
4645
4645
|
if (g.type = Number(y.charAt(0)), r.types[g.type] == null)
|
|
4646
4646
|
return c();
|
|
4647
4647
|
if (r.BINARY_EVENT == g.type || r.BINARY_ACK == g.type) {
|
|
4648
|
-
for (var
|
|
4648
|
+
for (var B = ""; y.charAt(++C) != "-" && (B += y.charAt(C), C != y.length); )
|
|
4649
4649
|
;
|
|
4650
|
-
if (
|
|
4650
|
+
if (B != Number(B) || y.charAt(C) != "-")
|
|
4651
4651
|
throw new Error("Illegal attachments");
|
|
4652
|
-
g.attachments = Number(
|
|
4652
|
+
g.attachments = Number(B);
|
|
4653
4653
|
}
|
|
4654
|
-
if (y.charAt(
|
|
4655
|
-
for (g.nsp = ""; ++
|
|
4656
|
-
var _ = y.charAt(
|
|
4657
|
-
if (_ == "," || (g.nsp += _,
|
|
4654
|
+
if (y.charAt(C + 1) == "/")
|
|
4655
|
+
for (g.nsp = ""; ++C; ) {
|
|
4656
|
+
var _ = y.charAt(C);
|
|
4657
|
+
if (_ == "," || (g.nsp += _, C == y.length))
|
|
4658
4658
|
break;
|
|
4659
4659
|
}
|
|
4660
4660
|
else
|
|
4661
4661
|
g.nsp = "/";
|
|
4662
|
-
var b = y.charAt(
|
|
4662
|
+
var b = y.charAt(C + 1);
|
|
4663
4663
|
if (b !== "" && Number(b) == b) {
|
|
4664
|
-
for (g.id = ""; ++
|
|
4665
|
-
var _ = y.charAt(
|
|
4664
|
+
for (g.id = ""; ++C; ) {
|
|
4665
|
+
var _ = y.charAt(C);
|
|
4666
4666
|
if (_ == null || Number(_) != _) {
|
|
4667
|
-
--
|
|
4667
|
+
--C;
|
|
4668
4668
|
break;
|
|
4669
4669
|
}
|
|
4670
|
-
if (g.id += y.charAt(
|
|
4670
|
+
if (g.id += y.charAt(C), C == y.length)
|
|
4671
4671
|
break;
|
|
4672
4672
|
}
|
|
4673
4673
|
g.id = Number(g.id);
|
|
4674
4674
|
}
|
|
4675
|
-
if (y.charAt(++
|
|
4675
|
+
if (y.charAt(++C))
|
|
4676
4676
|
try {
|
|
4677
|
-
g.data = p.parse(y.substr(
|
|
4677
|
+
g.data = p.parse(y.substr(C));
|
|
4678
4678
|
} catch {
|
|
4679
4679
|
return c();
|
|
4680
4680
|
}
|
|
@@ -4691,8 +4691,8 @@ function Bo() {
|
|
|
4691
4691
|
if (l("encoding packet %j", y), r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type)
|
|
4692
4692
|
i(y, g);
|
|
4693
4693
|
else {
|
|
4694
|
-
var
|
|
4695
|
-
g([
|
|
4694
|
+
var C = o(y);
|
|
4695
|
+
g([C]);
|
|
4696
4696
|
}
|
|
4697
4697
|
}, a(u.prototype), u.prototype.add = function(y) {
|
|
4698
4698
|
var g;
|
|
@@ -4739,16 +4739,16 @@ function Bo() {
|
|
|
4739
4739
|
else if (R == "json")
|
|
4740
4740
|
U = o("json-stringify") && o("json-parse");
|
|
4741
4741
|
else {
|
|
4742
|
-
var
|
|
4742
|
+
var I, F = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
|
|
4743
4743
|
if (R == "json-stringify") {
|
|
4744
4744
|
var N = l.stringify, D = typeof N == "function" && p;
|
|
4745
4745
|
if (D) {
|
|
4746
|
-
(
|
|
4746
|
+
(I = function() {
|
|
4747
4747
|
return 1;
|
|
4748
|
-
}).toJSON =
|
|
4748
|
+
}).toJSON = I;
|
|
4749
4749
|
try {
|
|
4750
|
-
D = N(0) === "0" && N(new Number()) === "0" && N(new String()) == '""' && N(d) === h && N(h) === h && N() === h && N(
|
|
4751
|
-
\f\r `] }) == F && N(null,
|
|
4750
|
+
D = N(0) === "0" && N(new Number()) === "0" && N(new String()) == '""' && N(d) === h && N(h) === h && N() === h && N(I) === "1" && N([I]) == "[1]" && N([h]) == "[null]" && N(null) == "null" && N([h, d, null]) == "[null,null,null]" && N({ a: [I, !0, !1, null, `\0\b
|
|
4751
|
+
\f\r `] }) == F && N(null, I) === "1" && N([1, 2], null, 1) == `[
|
|
4752
4752
|
1,
|
|
4753
4753
|
2
|
|
4754
4754
|
]` && N(/* @__PURE__ */ new Date(-864e13)) == '"-271821-04-20T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(864e13)) == '"+275760-09-13T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(-621987552e5)) == '"-000001-01-01T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(-1)) == '"1969-12-31T23:59:59.999Z"';
|
|
@@ -4763,8 +4763,8 @@ function Bo() {
|
|
|
4763
4763
|
if (typeof P == "function")
|
|
4764
4764
|
try {
|
|
4765
4765
|
if (P("0") === 0 && !P(!1)) {
|
|
4766
|
-
|
|
4767
|
-
var L =
|
|
4766
|
+
I = P(F);
|
|
4767
|
+
var L = I.a.length == 5 && I.a[0] === 1;
|
|
4768
4768
|
if (L) {
|
|
4769
4769
|
try {
|
|
4770
4770
|
L = !P('" "');
|
|
@@ -4798,33 +4798,33 @@ function Bo() {
|
|
|
4798
4798
|
} catch {
|
|
4799
4799
|
}
|
|
4800
4800
|
if (!o("json")) {
|
|
4801
|
-
var a = "[object Function]", s = "[object Date]", f = "[object Number]", y = "[object String]", g = "[object Array]",
|
|
4801
|
+
var a = "[object Function]", s = "[object Date]", f = "[object Number]", y = "[object String]", g = "[object Array]", C = "[object Boolean]", B = o("bug-string-char-index");
|
|
4802
4802
|
if (!p)
|
|
4803
4803
|
var _ = Math.floor, b = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], S = function(R, U) {
|
|
4804
4804
|
return b[U] + 365 * (R - 1970) + _((R - 1969 + (U = +(U > 1))) / 4) - _((R - 1901 + U) / 100) + _((R - 1601 + U) / 400);
|
|
4805
4805
|
};
|
|
4806
4806
|
(i = {}.hasOwnProperty) || (i = function(R) {
|
|
4807
|
-
var U,
|
|
4808
|
-
return (
|
|
4807
|
+
var U, I = {};
|
|
4808
|
+
return (I.__proto__ = null, I.__proto__ = { toString: 1 }, I).toString != d ? i = function(F) {
|
|
4809
4809
|
var N = this.__proto__, D = F in (this.__proto__ = null, this);
|
|
4810
4810
|
return this.__proto__ = N, D;
|
|
4811
|
-
} : (U =
|
|
4811
|
+
} : (U = I.constructor, i = function(F) {
|
|
4812
4812
|
var N = (this.constructor || U).prototype;
|
|
4813
4813
|
return F in this && !(F in N && this[F] === N[F]);
|
|
4814
|
-
}),
|
|
4814
|
+
}), I = null, i.call(this, R);
|
|
4815
4815
|
});
|
|
4816
|
-
var m = { boolean: 1, number: 1, string: 1, undefined: 1 },
|
|
4817
|
-
var
|
|
4818
|
-
return
|
|
4816
|
+
var m = { boolean: 1, number: 1, string: 1, undefined: 1 }, w = function(R, U) {
|
|
4817
|
+
var I = typeof R[U];
|
|
4818
|
+
return I == "object" ? !!R[U] : !m[I];
|
|
4819
4819
|
};
|
|
4820
4820
|
if (u = function(R, U) {
|
|
4821
|
-
var
|
|
4822
|
-
(
|
|
4821
|
+
var I, F, N, D = 0;
|
|
4822
|
+
(I = function() {
|
|
4823
4823
|
this.valueOf = 0;
|
|
4824
|
-
}).prototype.valueOf = 0, F = new
|
|
4824
|
+
}).prototype.valueOf = 0, F = new I();
|
|
4825
4825
|
for (N in F)
|
|
4826
4826
|
i.call(F, N) && D++;
|
|
4827
|
-
return
|
|
4827
|
+
return I = F = null, D ? u = D == 2 ? function(P, L) {
|
|
4828
4828
|
var M, J = {}, nt = d.call(P) == a;
|
|
4829
4829
|
for (M in P)
|
|
4830
4830
|
nt && M == "prototype" || i.call(J, M) || !(J[M] = 1) || !i.call(P, M) || L(M);
|
|
@@ -4834,7 +4834,7 @@ function Bo() {
|
|
|
4834
4834
|
nt && M == "prototype" || !i.call(P, M) || (J = M === "constructor") || L(M);
|
|
4835
4835
|
(J || i.call(P, M = "constructor")) && L(M);
|
|
4836
4836
|
} : (F = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], u = function(P, L) {
|
|
4837
|
-
var M, J, nt = d.call(P) == a, ot = !nt && typeof P.constructor != "function" &&
|
|
4837
|
+
var M, J, nt = d.call(P) == a, ot = !nt && typeof P.constructor != "function" && w(P, "hasOwnProperty") ? P.hasOwnProperty : i;
|
|
4838
4838
|
for (M in P)
|
|
4839
4839
|
nt && M == "prototype" || !ot.call(P, M) || L(M);
|
|
4840
4840
|
for (J = F.length; M = F[--J]; ot.call(P, M) && L(M))
|
|
@@ -4844,7 +4844,7 @@ function Bo() {
|
|
|
4844
4844
|
var E = { 92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t" }, v = "000000", k = function(R, U) {
|
|
4845
4845
|
return (v + (U || 0)).slice(-R);
|
|
4846
4846
|
}, T = "\\u00", x = function(R) {
|
|
4847
|
-
var U,
|
|
4847
|
+
var U, I = '"', F = 0, N = R.length, D = N > 10 && B;
|
|
4848
4848
|
for (D && (U = R.split("")); N > F; F++) {
|
|
4849
4849
|
var P = R.charCodeAt(F);
|
|
4850
4850
|
switch (P) {
|
|
@@ -4855,18 +4855,18 @@ function Bo() {
|
|
|
4855
4855
|
case 13:
|
|
4856
4856
|
case 34:
|
|
4857
4857
|
case 92:
|
|
4858
|
-
|
|
4858
|
+
I += E[P];
|
|
4859
4859
|
break;
|
|
4860
4860
|
default:
|
|
4861
4861
|
if (32 > P) {
|
|
4862
|
-
|
|
4862
|
+
I += T + k(2, P.toString(16));
|
|
4863
4863
|
break;
|
|
4864
4864
|
}
|
|
4865
|
-
|
|
4865
|
+
I += D ? U[F] : B ? R.charAt(F) : R[F];
|
|
4866
4866
|
}
|
|
4867
4867
|
}
|
|
4868
|
-
return
|
|
4869
|
-
}, O = function(R, U,
|
|
4868
|
+
return I + '"';
|
|
4869
|
+
}, O = function(R, U, I, F, N, D, P) {
|
|
4870
4870
|
var L, M, J, nt, ot, xt, Vt, $t, Gt, Yt, ut, Qt, Ut, Ot, Zt, te;
|
|
4871
4871
|
try {
|
|
4872
4872
|
L = U[R];
|
|
@@ -4887,9 +4887,9 @@ function Bo() {
|
|
|
4887
4887
|
L = (0 >= J || J >= 1e4 ? (0 > J ? "-" : "+") + k(6, 0 > J ? -J : J) : k(4, J)) + "-" + k(2, nt + 1) + "-" + k(2, ot) + "T" + k(2, Vt) + ":" + k(2, $t) + ":" + k(2, Gt) + "." + k(3, Yt) + "Z";
|
|
4888
4888
|
} else
|
|
4889
4889
|
L = null;
|
|
4890
|
-
if (
|
|
4890
|
+
if (I && (L = I.call(U, R, L)), L === null)
|
|
4891
4891
|
return "null";
|
|
4892
|
-
if (M = d.call(L), M ==
|
|
4892
|
+
if (M = d.call(L), M == C)
|
|
4893
4893
|
return "" + L;
|
|
4894
4894
|
if (M == f)
|
|
4895
4895
|
return L > -1 / 0 && 1 / 0 > L ? "" + L : "null";
|
|
@@ -4901,15 +4901,15 @@ function Bo() {
|
|
|
4901
4901
|
throw TypeError();
|
|
4902
4902
|
if (P.push(L), ut = [], Zt = D, D += N, M == g) {
|
|
4903
4903
|
for (Ut = 0, Ot = L.length; Ot > Ut; Ut++)
|
|
4904
|
-
Qt = O(Ut, L,
|
|
4904
|
+
Qt = O(Ut, L, I, F, N, D, P), ut.push(Qt === h ? "null" : Qt);
|
|
4905
4905
|
te = ut.length ? N ? `[
|
|
4906
4906
|
` + D + ut.join(`,
|
|
4907
4907
|
` + D) + `
|
|
4908
4908
|
` + Zt + "]" : "[" + ut.join(",") + "]" : "[]";
|
|
4909
4909
|
} else
|
|
4910
4910
|
u(F || L, function(ee) {
|
|
4911
|
-
var
|
|
4912
|
-
|
|
4911
|
+
var Ie = O(ee, L, I, F, N, D, P);
|
|
4912
|
+
Ie !== h && ut.push(x(ee) + ":" + (N ? " " : "") + Ie);
|
|
4913
4913
|
}), te = ut.length ? N ? `{
|
|
4914
4914
|
` + D + ut.join(`,
|
|
4915
4915
|
` + D) + `
|
|
@@ -4917,7 +4917,7 @@ function Bo() {
|
|
|
4917
4917
|
return P.pop(), te;
|
|
4918
4918
|
}
|
|
4919
4919
|
};
|
|
4920
|
-
l.stringify = function(R, U,
|
|
4920
|
+
l.stringify = function(R, U, I) {
|
|
4921
4921
|
var F, N, D, P;
|
|
4922
4922
|
if (typeof U == "function" || typeof U == "object" && U) {
|
|
4923
4923
|
if ((P = d.call(U)) == a)
|
|
@@ -4928,13 +4928,13 @@ function Bo() {
|
|
|
4928
4928
|
;
|
|
4929
4929
|
}
|
|
4930
4930
|
}
|
|
4931
|
-
if (
|
|
4932
|
-
if ((P = d.call(
|
|
4933
|
-
if ((
|
|
4934
|
-
for (F = "",
|
|
4931
|
+
if (I)
|
|
4932
|
+
if ((P = d.call(I)) == f) {
|
|
4933
|
+
if ((I -= I % 1) > 0)
|
|
4934
|
+
for (F = "", I > 10 && (I = 10); F.length < I; F += " ")
|
|
4935
4935
|
;
|
|
4936
4936
|
} else
|
|
4937
|
-
P == y && (F =
|
|
4937
|
+
P == y && (F = I.length <= 10 ? I : I.slice(0, 10));
|
|
4938
4938
|
return O("", (L = {}, L[""] = R, L), N, D, F, "", []);
|
|
4939
4939
|
};
|
|
4940
4940
|
}
|
|
@@ -4943,7 +4943,7 @@ function Bo() {
|
|
|
4943
4943
|
`, 102: "\f", 114: "\r" }, X = function() {
|
|
4944
4944
|
throw A = q = null, SyntaxError();
|
|
4945
4945
|
}, et = function() {
|
|
4946
|
-
for (var R, U,
|
|
4946
|
+
for (var R, U, I, F, N, D = q, P = D.length; P > A; )
|
|
4947
4947
|
switch (N = D.charCodeAt(A)) {
|
|
4948
4948
|
case 9:
|
|
4949
4949
|
case 10:
|
|
@@ -4957,7 +4957,7 @@ function Bo() {
|
|
|
4957
4957
|
case 93:
|
|
4958
4958
|
case 58:
|
|
4959
4959
|
case 44:
|
|
4960
|
-
return R =
|
|
4960
|
+
return R = B ? D.charAt(A) : D[A], A++, R;
|
|
4961
4961
|
case 34:
|
|
4962
4962
|
for (R = "@", A++; P > A; )
|
|
4963
4963
|
if (N = D.charCodeAt(A), 32 > N)
|
|
@@ -4975,7 +4975,7 @@ function Bo() {
|
|
|
4975
4975
|
R += $[N], A++;
|
|
4976
4976
|
break;
|
|
4977
4977
|
case 117:
|
|
4978
|
-
for (U = ++A,
|
|
4978
|
+
for (U = ++A, I = A + 4; I > A; A++)
|
|
4979
4979
|
N = D.charCodeAt(A), N >= 48 && 57 >= N || N >= 97 && 102 >= N || N >= 65 && 70 >= N || X();
|
|
4980
4980
|
R += j("0x" + D.slice(U, A));
|
|
4981
4981
|
break;
|
|
@@ -4997,14 +4997,14 @@ function Bo() {
|
|
|
4997
4997
|
for (N == 48 && (N = D.charCodeAt(A + 1), N >= 48 && 57 >= N) && X(), F = !1; P > A && (N = D.charCodeAt(A), N >= 48 && 57 >= N); A++)
|
|
4998
4998
|
;
|
|
4999
4999
|
if (D.charCodeAt(A) == 46) {
|
|
5000
|
-
for (
|
|
5000
|
+
for (I = ++A; P > I && (N = D.charCodeAt(I), N >= 48 && 57 >= N); I++)
|
|
5001
5001
|
;
|
|
5002
|
-
|
|
5002
|
+
I == A && X(), A = I;
|
|
5003
5003
|
}
|
|
5004
5004
|
if (N = D.charCodeAt(A), N == 101 || N == 69) {
|
|
5005
|
-
for (N = D.charCodeAt(++A), (N == 43 || N == 45) && A++,
|
|
5005
|
+
for (N = D.charCodeAt(++A), (N == 43 || N == 45) && A++, I = A; P > I && (N = D.charCodeAt(I), N >= 48 && 57 >= N); I++)
|
|
5006
5006
|
;
|
|
5007
|
-
|
|
5007
|
+
I == A && X(), A = I;
|
|
5008
5008
|
}
|
|
5009
5009
|
return +D.slice(U, A);
|
|
5010
5010
|
}
|
|
@@ -5018,41 +5018,41 @@ function Bo() {
|
|
|
5018
5018
|
}
|
|
5019
5019
|
return "$";
|
|
5020
5020
|
}, Nt = function(R) {
|
|
5021
|
-
var U,
|
|
5021
|
+
var U, I;
|
|
5022
5022
|
if (R == "$" && X(), typeof R == "string") {
|
|
5023
|
-
if ((
|
|
5023
|
+
if ((B ? R.charAt(0) : R[0]) == "@")
|
|
5024
5024
|
return R.slice(1);
|
|
5025
5025
|
if (R == "[") {
|
|
5026
|
-
for (U = []; R = et(), R != "]";
|
|
5027
|
-
|
|
5026
|
+
for (U = []; R = et(), R != "]"; I || (I = !0))
|
|
5027
|
+
I && (R == "," ? (R = et(), R == "]" && X()) : X()), R == "," && X(), U.push(Nt(R));
|
|
5028
5028
|
return U;
|
|
5029
5029
|
}
|
|
5030
5030
|
if (R == "{") {
|
|
5031
|
-
for (U = {}; R = et(), R != "}";
|
|
5032
|
-
|
|
5031
|
+
for (U = {}; R = et(), R != "}"; I || (I = !0))
|
|
5032
|
+
I && (R == "," ? (R = et(), R == "}" && X()) : X()), (R == "," || typeof R != "string" || (B ? R.charAt(0) : R[0]) != "@" || et() != ":") && X(), U[R.slice(1)] = Nt(et());
|
|
5033
5033
|
return U;
|
|
5034
5034
|
}
|
|
5035
5035
|
X();
|
|
5036
5036
|
}
|
|
5037
5037
|
return R;
|
|
5038
|
-
}, Oe = function(R, U,
|
|
5039
|
-
var F = Re(R, U,
|
|
5038
|
+
}, Oe = function(R, U, I) {
|
|
5039
|
+
var F = Re(R, U, I);
|
|
5040
5040
|
F === h ? delete R[U] : R[U] = F;
|
|
5041
|
-
}, Re = function(R, U,
|
|
5041
|
+
}, Re = function(R, U, I) {
|
|
5042
5042
|
var F, N = R[U];
|
|
5043
5043
|
if (typeof N == "object" && N)
|
|
5044
5044
|
if (d.call(N) == g)
|
|
5045
5045
|
for (F = N.length; F--; )
|
|
5046
|
-
Oe(N, F,
|
|
5046
|
+
Oe(N, F, I);
|
|
5047
5047
|
else
|
|
5048
5048
|
u(N, function(D) {
|
|
5049
|
-
Oe(N, D,
|
|
5049
|
+
Oe(N, D, I);
|
|
5050
5050
|
});
|
|
5051
|
-
return
|
|
5051
|
+
return I.call(R, U, N);
|
|
5052
5052
|
};
|
|
5053
5053
|
l.parse = function(R, U) {
|
|
5054
|
-
var
|
|
5055
|
-
return A = 0, q = "" + R,
|
|
5054
|
+
var I, F;
|
|
5055
|
+
return A = 0, q = "" + R, I = Nt(et()), et() != "$" && X(), A = q = null, U && d.call(U) == a ? Re((F = {}, F[""] = I, F), "", U) : I;
|
|
5056
5056
|
};
|
|
5057
5057
|
}
|
|
5058
5058
|
}
|
|
@@ -5070,11 +5070,11 @@ function Bo() {
|
|
|
5070
5070
|
}, {}]
|
|
5071
5071
|
}, {}, [1])(1);
|
|
5072
5072
|
}
|
|
5073
|
-
const
|
|
5073
|
+
const Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5074
5074
|
__proto__: null,
|
|
5075
|
-
default:
|
|
5075
|
+
default: Io
|
|
5076
5076
|
}, Symbol.toStringTag, { value: "Module" })), _o = /* @__PURE__ */ Object.assign({
|
|
5077
|
-
"./v1_3_7.js":
|
|
5077
|
+
"./v1_3_7.js": Bo
|
|
5078
5078
|
}), Lo = /v\d+_\d+_\d+/;
|
|
5079
5079
|
function Uo(t) {
|
|
5080
5080
|
return typeof t == "function";
|
|
@@ -5095,7 +5095,7 @@ const me = Object.entries(_o).reduce(
|
|
|
5095
5095
|
getSocketVersion: br,
|
|
5096
5096
|
makeSocketVersion: Do
|
|
5097
5097
|
};
|
|
5098
|
-
var Fo = /* @__PURE__ */ ((t) => (t.RINGING = "Ringing", t.TALKING = "Talking", t.DIALING = "Dialing", t.HOLD = "Hold", t))(Fo || {}), jo = /* @__PURE__ */ ((t) => (t.INCOMING = "Incoming", t.OUTGOING = "Outgoing", t))(jo || {}), Mo = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "Automatic", t.IVR = "IVR", t))(Mo || {}), qo = /* @__PURE__ */ ((t) => (t.INCOMINC = "Incoming", t.OUTGOING = "Outgoing", t.SPY = "Spy", t.CLICK2CALL = "Click2Call", t))(qo || {}), zo = /* @__PURE__ */ ((t) => (t.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", t.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", t))(zo || {}), z = /* @__PURE__ */ ((t) => (t.ALL_DIALER_STATUS = "AllDialersStatus", t.ALL_EXTENSION_STATUS = "AllExtensionsStatus", t.ALL_USERS_STATUS = "AllUsersStatus", t.CONNECT = "connect", t.DISCONNECT = "disconnect", t.CONNECT_ERROR_EVENT = "connect_error", t.EXTENSION_EVENT = "ExtensionEvent", t.KEEP_ALIVE = "keepalive", t.KEEP_ALIVE_RESPONSE = "keepaliveResponse", t.LOGIN_STATUS = "loginStatus", t.LOGIN_SUCCESS = "loginSuccess", t.QUEUE_EVENT = "QueueEvent", t.ONLINE_STATUS_EVENT = "onlineStatusEvent", t.DIALER_EVENT = "DialerEvent", t.EXTENSIONS_UPDATED = "ExtensionsUpdated", t))(z || {}),
|
|
5098
|
+
var Fo = /* @__PURE__ */ ((t) => (t.RINGING = "Ringing", t.TALKING = "Talking", t.DIALING = "Dialing", t.HOLD = "Hold", t))(Fo || {}), jo = /* @__PURE__ */ ((t) => (t.INCOMING = "Incoming", t.OUTGOING = "Outgoing", t))(jo || {}), Mo = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "Automatic", t.IVR = "IVR", t))(Mo || {}), qo = /* @__PURE__ */ ((t) => (t.INCOMINC = "Incoming", t.OUTGOING = "Outgoing", t.SPY = "Spy", t.CLICK2CALL = "Click2Call", t))(qo || {}), zo = /* @__PURE__ */ ((t) => (t.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", t.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", t))(zo || {}), z = /* @__PURE__ */ ((t) => (t.ALL_DIALER_STATUS = "AllDialersStatus", t.ALL_EXTENSION_STATUS = "AllExtensionsStatus", t.ALL_USERS_STATUS = "AllUsersStatus", t.CONNECT = "connect", t.DISCONNECT = "disconnect", t.CONNECT_ERROR_EVENT = "connect_error", t.EXTENSION_EVENT = "ExtensionEvent", t.KEEP_ALIVE = "keepalive", t.KEEP_ALIVE_RESPONSE = "keepaliveResponse", t.LOGIN_STATUS = "loginStatus", t.LOGIN_SUCCESS = "loginSuccess", t.QUEUE_EVENT = "QueueEvent", t.ONLINE_STATUS_EVENT = "onlineStatusEvent", t.DIALER_EVENT = "DialerEvent", t.EXTENSIONS_UPDATED = "ExtensionsUpdated", t))(z || {}), wr = /* @__PURE__ */ ((t) => (t.NEWCALL = "NEWCALL", t.ANSWER = "ANSWER", t.HOLD = "HOLD", t.UNHOLD = "UNHOLD", t.HANGUP = "HANGUP", t.USER_STATUS_UPDATE = "userStatusUpdate", t))(wr || {}), Xo = /* @__PURE__ */ ((t) => (t.NORMAL_HANGUP = "Normal hangup", t.USER_BUSY = "User busy", t.CALL_REJECTED = "Call Rejected", t.UNALLOCATED_NUMBER = "Unallocated (unassigned) number", t.UNKNOWN = "Unknown", t.NO_USER_RESPONDING = "No user responding", t.USER_ALERTING = "User alerting, no answer", t.ANSWERED_ELSEWHERE = "Answered elsewhere", t))(Xo || {}), Wo = /* @__PURE__ */ ((t) => (t.ANSWER = "ANSWER", t.ABANDONED = "ABANDONED", t.EXIT = "EXIT", t.JOIN = "JOIN", t))(Wo || {});
|
|
5099
5099
|
class ae {
|
|
5100
5100
|
static mapExtensionEvent(e) {
|
|
5101
5101
|
var u, h;
|
|
@@ -5103,7 +5103,7 @@ class ae {
|
|
|
5103
5103
|
let n, o;
|
|
5104
5104
|
e.data.currentCall && (o = this.mapExtensionCall(e, e.data.currentCall));
|
|
5105
5105
|
const i = this.mapExtensionData(e, e.data);
|
|
5106
|
-
return r ===
|
|
5106
|
+
return r === wr.HANGUP ? n = {
|
|
5107
5107
|
...e,
|
|
5108
5108
|
reason: r,
|
|
5109
5109
|
data: {
|
|
@@ -5234,7 +5234,7 @@ class ae {
|
|
|
5234
5234
|
};
|
|
5235
5235
|
}
|
|
5236
5236
|
}
|
|
5237
|
-
var
|
|
5237
|
+
var Cr = /* @__PURE__ */ ((t) => (t.UPDATE_MONITORED_EXTENSIONS = "updateMonitoredExtensions", t.KEEP_ALIVE = "keepAlive", t))(Cr || {});
|
|
5238
5238
|
class Ko {
|
|
5239
5239
|
constructor(e) {
|
|
5240
5240
|
H(this, "io");
|
|
@@ -5304,7 +5304,7 @@ class Ko {
|
|
|
5304
5304
|
initKeepAlive() {
|
|
5305
5305
|
this.clearKeepAliveInterval(), this.keepAliveInterval = setInterval(async () => {
|
|
5306
5306
|
if ((/* @__PURE__ */ new Date()).getTime() > this.lastEventTimestamp + this.eventsSdkClass.options.keepAliveTimeout && this.io && this.eventsSdkClass.authClass.token) {
|
|
5307
|
-
this.eventsSdkClass.emit(
|
|
5307
|
+
this.eventsSdkClass.emit(Cr.KEEP_ALIVE, this.eventsSdkClass.authClass.token), this.eventsSdkClass.loggerClass.log({
|
|
5308
5308
|
Message: `Keep alive event emitted with this token: ${this.eventsSdkClass.authClass.token}`,
|
|
5309
5309
|
ActionName: at.WSCONNECT,
|
|
5310
5310
|
isShowClient: !1,
|
|
@@ -5567,10 +5567,10 @@ export {
|
|
|
5567
5567
|
qo as DirectionEnum,
|
|
5568
5568
|
zo as DoNotCallMeStatusCodeEnum,
|
|
5569
5569
|
z as EventsEnum,
|
|
5570
|
-
|
|
5570
|
+
wr as ExtensionEventReasonEnum,
|
|
5571
5571
|
Xo as ExtensionHangupCauseEnum,
|
|
5572
5572
|
Wo as QueueEventReasonEnum,
|
|
5573
|
-
|
|
5573
|
+
Cr as ServerListenerEventsEnum,
|
|
5574
5574
|
$o as default
|
|
5575
5575
|
};
|
|
5576
5576
|
//# sourceMappingURL=voicenter-events-sdk.es.js.map
|