pptx-svelte-viewer 2.3.0 → 2.4.0

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.
@@ -1,35 +1,48 @@
1
- import { i as ot, r as ke, t as at } from "./rolldown-runtime--_vEcKDh.js";
2
- import { a as ct, c as ut, d as ht, i as Ve, l as lt, n as ft, o as Ke, r as Oe, s as dt, t as pt, u as gt } from "./awareness-CkFlr7xx.js";
3
- import { A as Re, B as yt, C as re, D as $e, E as bt, F as Me, I as mt, L as _t, M as wt, N as vt, O as je, P as Je, R as Et, S as De, T as ie, U as Pe, V as Ct, _ as Fe, a as Xe, b as Qe, i as ue, j as Ye, k as se, l as Rt, n as qe, o as Te, r as St, s as Ze, t as Tt, u as At, v as kt, x as Ot, y as Lt } from "./yjs-CE9F053g.js";
4
- var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
5
- if (R.shouldConnect && R.ws === null) {
6
- const D = new WebSocket(R.url), U = R.binaryType;
7
- let j = null;
8
- U && (D.binaryType = U), R.ws = D, R.connecting = !0, R.connected = !1, D.onmessage = (N) => {
9
- R.lastMessageReceived = Me();
10
- const w = N.data, c = typeof w == "string" ? JSON.parse(w) : w;
11
- c && c.type === "pong" && (clearTimeout(j), j = setTimeout(C, Le / 2)), R.emit("message", [c, R]);
1
+ import { a as at, c as ct, d as ut, i as Ve, l as ht, n as lt, o as Ke, r as Oe, s as ft, t as dt, u as pt } from "./awareness-CkFlr7xx.js";
2
+ import { A as Re, B as gt, C as re, D as $e, E as yt, F as Me, I as bt, L as mt, M as _t, N as vt, O as Ue, P as Je, R as wt, S as Pe, T as ie, U as De, V as Et, _ as Fe, a as Xe, b as Qe, i as ue, j as Ye, k as se, l as Ct, n as qe, o as Te, r as Rt, s as Ze, t as St, u as Tt, v as At, x as kt, y as Ot } from "./yjs-CE9F053g.js";
3
+ var Lt = Object.create, et = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, Nt = Object.getOwnPropertyNames, It = Object.getPrototypeOf, Mt = Object.prototype.hasOwnProperty, Pt = (v, x) => () => (x || (v((x = { exports: {} }).exports, x), v = null), x.exports), Dt = (v, x, j, U) => {
4
+ if (x && typeof x == "object" || typeof x == "function")
5
+ for (var F = Nt(x), R = 0, M = F.length, m; R < M; R++)
6
+ m = F[R], !Mt.call(v, m) && m !== j && et(v, m, {
7
+ get: ((c) => x[c]).bind(null, m),
8
+ enumerable: !(U = xt(x, m)) || U.enumerable
9
+ });
10
+ return v;
11
+ }, jt = (v, x, j) => (j = v != null ? Lt(It(v)) : {}, Dt(x || !v || !v.__esModule ? et(j, "default", {
12
+ value: v,
13
+ enumerable: !0
14
+ }) : j, v)), ke = /* @__PURE__ */ ((v) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(v, { get: (x, j) => (typeof require < "u" ? require : x)[j] }) : v)(function(v) {
15
+ if (typeof require < "u") return require.apply(this, arguments);
16
+ throw Error('Calling `require` for "' + v + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
17
+ }), Bt = 1200, Ut = 2500, Le = 3e4, je = (v) => {
18
+ if (v.shouldConnect && v.ws === null) {
19
+ const x = new WebSocket(v.url), j = v.binaryType;
20
+ let U = null;
21
+ j && (x.binaryType = j), v.ws = x, v.connecting = !0, v.connected = !1, x.onmessage = (M) => {
22
+ v.lastMessageReceived = Me();
23
+ const m = M.data, c = typeof m == "string" ? JSON.parse(m) : m;
24
+ c && c.type === "pong" && (clearTimeout(U), U = setTimeout(R, Le / 2)), v.emit("message", [c, v]);
12
25
  };
13
- const F = (N) => {
14
- R.ws !== null && (R.ws = null, R.connecting = !1, R.connected ? (R.connected = !1, R.emit("disconnect", [{
26
+ const F = (M) => {
27
+ v.ws !== null && (v.ws = null, v.connecting = !1, v.connected ? (v.connected = !1, v.emit("disconnect", [{
15
28
  type: "disconnect",
16
- error: N
17
- }, R])) : R.unsuccessfulReconnects++, setTimeout(Be, Et(_t(R.unsuccessfulReconnects + 1) * xt, It), R)), clearTimeout(j);
18
- }, C = () => {
19
- R.ws === D && R.send({ type: "ping" });
29
+ error: M
30
+ }, v])) : v.unsuccessfulReconnects++, setTimeout(je, wt(mt(v.unsuccessfulReconnects + 1) * Bt, Ut), v)), clearTimeout(U);
31
+ }, R = () => {
32
+ v.ws === x && v.send({ type: "ping" });
20
33
  };
21
- D.onclose = () => F(null), D.onerror = (N) => F(N), D.onopen = () => {
22
- R.lastMessageReceived = Me(), R.connecting = !1, R.connected = !0, R.unsuccessfulReconnects = 0, R.emit("connect", [{ type: "connect" }, R]), j = setTimeout(C, Le / 2);
34
+ x.onclose = () => F(null), x.onerror = (M) => F(M), x.onopen = () => {
35
+ v.lastMessageReceived = Me(), v.connecting = !1, v.connected = !0, v.unsuccessfulReconnects = 0, v.emit("connect", [{ type: "connect" }, v]), U = setTimeout(R, Le / 2);
23
36
  };
24
37
  }
25
- }, Nt = class extends yt {
26
- constructor(R, { binaryType: D } = {}) {
27
- super(), this.url = R, this.ws = null, this.binaryType = D || null, this.connected = !1, this.connecting = !1, this.unsuccessfulReconnects = 0, this.lastMessageReceived = 0, this.shouldConnect = !0, this._checkInterval = setInterval(() => {
38
+ }, Ft = class extends gt {
39
+ constructor(v, { binaryType: x } = {}) {
40
+ super(), this.url = v, this.ws = null, this.binaryType = x || null, this.connected = !1, this.connecting = !1, this.unsuccessfulReconnects = 0, this.lastMessageReceived = 0, this.shouldConnect = !0, this._checkInterval = setInterval(() => {
28
41
  this.connected && Le < Me() - this.lastMessageReceived && this.ws.close();
29
- }, Le / 2), Be(this);
42
+ }, Le / 2), je(this);
30
43
  }
31
- send(R) {
32
- this.ws && this.ws.send(JSON.stringify(R));
44
+ send(v) {
45
+ this.ws && this.ws.send(JSON.stringify(v));
33
46
  }
34
47
  destroy() {
35
48
  clearInterval(this._checkInterval), this.disconnect(), super.destroy();
@@ -38,55 +51,55 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
38
51
  this.shouldConnect = !1, this.ws !== null && this.ws.close();
39
52
  }
40
53
  connect() {
41
- this.shouldConnect = !0, !this.connected && this.ws === null && Be(this);
54
+ this.shouldConnect = !0, !this.connected && this.ws === null && je(this);
42
55
  }
43
- }, Mt = () => {
44
- let R = !0;
45
- return (D, U) => {
46
- if (R) {
47
- R = !1;
56
+ }, qt = () => {
57
+ let v = !0;
58
+ return (x, j) => {
59
+ if (v) {
60
+ v = !1;
48
61
  try {
49
- D();
62
+ x();
50
63
  } finally {
51
- R = !0;
64
+ v = !0;
52
65
  }
53
- } else U !== void 0 && U();
66
+ } else j !== void 0 && j();
54
67
  };
55
- }, Dt = /* @__PURE__ */ at(((R, D) => {
56
- (function(U) {
57
- if (typeof R == "object" && typeof D < "u") D.exports = U();
58
- else if (typeof define == "function" && define.amd) define([], U);
68
+ }, Wt = /* @__PURE__ */ Pt(((v, x) => {
69
+ (function(j) {
70
+ if (typeof v == "object" && typeof x < "u") x.exports = j();
71
+ else if (typeof define == "function" && define.amd) define([], j);
59
72
  else {
60
- var j = typeof window > "u" ? typeof global > "u" ? typeof self > "u" ? this : self : global : window;
61
- j.SimplePeer = U();
73
+ var U = typeof window > "u" ? typeof global > "u" ? typeof self > "u" ? this : self : global : window;
74
+ U.SimplePeer = j();
62
75
  }
63
76
  })(function() {
64
- var U = Math.floor, j = Math.abs, F = Math.pow;
77
+ var j = Math.floor, U = Math.abs, F = Math.pow;
65
78
  return (/* @__PURE__ */ (function() {
66
- function C(N, w, c) {
79
+ function R(M, m, c) {
67
80
  function S(h, d) {
68
- if (!w[h]) {
69
- if (!N[h]) {
81
+ if (!m[h]) {
82
+ if (!M[h]) {
70
83
  var a = typeof ke == "function" && ke;
71
84
  if (!d && a) return a(h, !0);
72
85
  if (O) return O(h, !0);
73
86
  var g = /* @__PURE__ */ new Error("Cannot find module '" + h + "'");
74
87
  throw g.code = "MODULE_NOT_FOUND", g;
75
88
  }
76
- var L = w[h] = { exports: {} };
77
- N[h][0].call(L.exports, function(_) {
78
- var b = N[h][1][_];
79
- return S(b || _);
80
- }, L, L.exports, C, N, w, c);
89
+ var L = m[h] = { exports: {} };
90
+ M[h][0].call(L.exports, function(w) {
91
+ var b = M[h][1][w];
92
+ return S(b || w);
93
+ }, L, L.exports, R, M, m, c);
81
94
  }
82
- return w[h].exports;
95
+ return m[h].exports;
83
96
  }
84
97
  for (var O = typeof ke == "function" && ke, i = 0; i < c.length; i++) S(c[i]);
85
98
  return S;
86
99
  }
87
- return C;
100
+ return R;
88
101
  })())({
89
- 1: [function(C, N, w) {
102
+ 1: [function(R, M, m) {
90
103
  "use strict";
91
104
  function c(l) {
92
105
  var y = l.length;
@@ -100,31 +113,31 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
100
113
  return 3 * (y + k) / 4 - k;
101
114
  }
102
115
  function O(l) {
103
- var y, k, f = c(l), T = f[0], M = f[1], p = new L(S(l, T, M)), m = 0, I = 0 < M ? T - 4 : T;
104
- for (k = 0; k < I; k += 4) y = g[l.charCodeAt(k)] << 18 | g[l.charCodeAt(k + 1)] << 12 | g[l.charCodeAt(k + 2)] << 6 | g[l.charCodeAt(k + 3)], p[m++] = 255 & y >> 16, p[m++] = 255 & y >> 8, p[m++] = 255 & y;
105
- return M === 2 && (y = g[l.charCodeAt(k)] << 2 | g[l.charCodeAt(k + 1)] >> 4, p[m++] = 255 & y), M === 1 && (y = g[l.charCodeAt(k)] << 10 | g[l.charCodeAt(k + 1)] << 4 | g[l.charCodeAt(k + 2)] >> 2, p[m++] = 255 & y >> 8, p[m++] = 255 & y), p;
116
+ var y, k, f = c(l), T = f[0], P = f[1], p = new L(S(l, T, P)), _ = 0, I = 0 < P ? T - 4 : T;
117
+ for (k = 0; k < I; k += 4) y = g[l.charCodeAt(k)] << 18 | g[l.charCodeAt(k + 1)] << 12 | g[l.charCodeAt(k + 2)] << 6 | g[l.charCodeAt(k + 3)], p[_++] = 255 & y >> 16, p[_++] = 255 & y >> 8, p[_++] = 255 & y;
118
+ return P === 2 && (y = g[l.charCodeAt(k)] << 2 | g[l.charCodeAt(k + 1)] >> 4, p[_++] = 255 & y), P === 1 && (y = g[l.charCodeAt(k)] << 10 | g[l.charCodeAt(k + 1)] << 4 | g[l.charCodeAt(k + 2)] >> 2, p[_++] = 255 & y >> 8, p[_++] = 255 & y), p;
106
119
  }
107
120
  function i(l) {
108
121
  return a[63 & l >> 18] + a[63 & l >> 12] + a[63 & l >> 6] + a[63 & l];
109
122
  }
110
123
  function h(l, y, k) {
111
- for (var f, T = [], M = y; M < k; M += 3) f = (16711680 & l[M] << 16) + (65280 & l[M + 1] << 8) + (255 & l[M + 2]), T.push(i(f));
124
+ for (var f, T = [], P = y; P < k; P += 3) f = (16711680 & l[P] << 16) + (65280 & l[P + 1] << 8) + (255 & l[P + 2]), T.push(i(f));
112
125
  return T.join("");
113
126
  }
114
127
  function d(l) {
115
- for (var y, k = l.length, f = k % 3, T = [], M = 16383, p = 0, m = k - f; p < m; p += M) T.push(h(l, p, p + M > m ? m : p + M));
128
+ for (var y, k = l.length, f = k % 3, T = [], P = 16383, p = 0, _ = k - f; p < _; p += P) T.push(h(l, p, p + P > _ ? _ : p + P));
116
129
  return f === 1 ? (y = l[k - 1], T.push(a[y >> 2] + a[63 & y << 4] + "==")) : f === 2 && (y = (l[k - 2] << 8) + l[k - 1], T.push(a[y >> 10] + a[63 & y >> 4] + a[63 & y << 2] + "=")), T.join("");
117
130
  }
118
- w.byteLength = function(l) {
131
+ m.byteLength = function(l) {
119
132
  var y = c(l), k = y[0], f = y[1];
120
133
  return 3 * (k + f) / 4 - f;
121
- }, w.toByteArray = O, w.fromByteArray = d;
122
- for (var a = [], g = [], L = typeof Uint8Array > "u" ? Array : Uint8Array, _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", b = 0, n = _.length; b < n; ++b) a[b] = _[b], g[_.charCodeAt(b)] = b;
134
+ }, m.toByteArray = O, m.fromByteArray = d;
135
+ for (var a = [], g = [], L = typeof Uint8Array > "u" ? Array : Uint8Array, w = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", b = 0, n = w.length; b < n; ++b) a[b] = w[b], g[w.charCodeAt(b)] = b;
123
136
  g[45] = 62, g[95] = 63;
124
137
  }, {}],
125
138
  2: [function() {
126
139
  }, {}],
127
- 3: [function(C, N, w) {
140
+ 3: [function(R, M, m) {
128
141
  (function() {
129
142
  (function() {
130
143
  "use strict";
@@ -143,14 +156,14 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
143
156
  }
144
157
  function h(e, t, r) {
145
158
  if (typeof e == "string") return L(e, t);
146
- if (ArrayBuffer.isView(e)) return _(e);
159
+ if (ArrayBuffer.isView(e)) return w(e);
147
160
  if (e == null) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
148
161
  if (A(e, ArrayBuffer) || e && A(e.buffer, ArrayBuffer)) return b(e, t, r);
149
162
  if (typeof e == "number") throw new TypeError('The "value" argument must not be of type number. Received type number');
150
163
  var u = e.valueOf && e.valueOf();
151
164
  if (u != null && u !== e) return i.from(u, t, r);
152
- var v = n(e);
153
- if (v) return v;
165
+ var E = n(e);
166
+ if (E) return E;
154
167
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] == "function") return i.from(e[Symbol.toPrimitive]("string"), t, r);
155
168
  throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
156
169
  }
@@ -166,10 +179,10 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
166
179
  }
167
180
  function L(e, t) {
168
181
  if ((typeof t != "string" || t === "") && (t = "utf8"), !i.isEncoding(t)) throw new TypeError("Unknown encoding: " + t);
169
- var r = 0 | y(e, t), u = O(r), v = u.write(e, t);
170
- return v !== r && (u = u.slice(0, v)), u;
182
+ var r = 0 | y(e, t), u = O(r), E = u.write(e, t);
183
+ return E !== r && (u = u.slice(0, E)), u;
171
184
  }
172
- function _(e) {
185
+ function w(e) {
173
186
  for (var t = 0 > e.length ? 0 : 0 | l(e.length), r = O(t), u = 0; u < t; u += 1) r[u] = 255 & e[u];
174
187
  return r;
175
188
  }
@@ -184,7 +197,7 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
184
197
  var t = 0 | l(e.length), r = O(t);
185
198
  return r.length === 0 || e.copy(r, 0, 0, t), r;
186
199
  }
187
- return e.length === void 0 ? e.type === "Buffer" && Array.isArray(e.data) ? _(e.data) : void 0 : typeof e.length != "number" || P(e.length) ? O(0) : _(e);
200
+ return e.length === void 0 ? e.type === "Buffer" && Array.isArray(e.data) ? w(e.data) : void 0 : typeof e.length != "number" || D(e.length) ? O(0) : w(e);
188
201
  }
189
202
  function l(e) {
190
203
  if (e >= 2147483647) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");
@@ -196,7 +209,7 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
196
209
  if (typeof e != "string") throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof e);
197
210
  var r = e.length, u = 2 < arguments.length && arguments[2] === !0;
198
211
  if (!u && r === 0) return 0;
199
- for (var v = !1; ; ) switch (t) {
212
+ for (var E = !1; ; ) switch (t) {
200
213
  case "ascii":
201
214
  case "latin1":
202
215
  case "binary":
@@ -214,8 +227,8 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
214
227
  case "base64":
215
228
  return he(e).length;
216
229
  default:
217
- if (v) return u ? -1 : _e(e).length;
218
- t = ("" + t).toLowerCase(), v = !0;
230
+ if (E) return u ? -1 : _e(e).length;
231
+ t = ("" + t).toLowerCase(), E = !0;
219
232
  }
220
233
  }
221
234
  function k(e, t, r) {
@@ -248,19 +261,19 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
248
261
  var u = e[t];
249
262
  e[t] = e[r], e[r] = u;
250
263
  }
251
- function T(e, t, r, u, v) {
264
+ function T(e, t, r, u, E) {
252
265
  if (e.length === 0) return -1;
253
- if (typeof r == "string" ? (u = r, r = 0) : 2147483647 < r ? r = 2147483647 : -2147483648 > r && (r = -2147483648), r = +r, P(r) && (r = v ? 0 : e.length - 1), 0 > r && (r = e.length + r), r >= e.length) {
254
- if (v) return -1;
266
+ if (typeof r == "string" ? (u = r, r = 0) : 2147483647 < r ? r = 2147483647 : -2147483648 > r && (r = -2147483648), r = +r, D(r) && (r = E ? 0 : e.length - 1), 0 > r && (r = e.length + r), r >= e.length) {
267
+ if (E) return -1;
255
268
  r = e.length - 1;
256
- } else if (0 > r) if (v) r = 0;
269
+ } else if (0 > r) if (E) r = 0;
257
270
  else return -1;
258
- if (typeof t == "string" && (t = i.from(t, u)), i.isBuffer(t)) return t.length === 0 ? -1 : M(e, t, r, u, v);
259
- if (typeof t == "number") return t &= 255, typeof Uint8Array.prototype.indexOf == "function" ? v ? Uint8Array.prototype.indexOf.call(e, t, r) : Uint8Array.prototype.lastIndexOf.call(e, t, r) : M(e, [t], r, u, v);
271
+ if (typeof t == "string" && (t = i.from(t, u)), i.isBuffer(t)) return t.length === 0 ? -1 : P(e, t, r, u, E);
272
+ if (typeof t == "number") return t &= 255, typeof Uint8Array.prototype.indexOf == "function" ? E ? Uint8Array.prototype.indexOf.call(e, t, r) : Uint8Array.prototype.lastIndexOf.call(e, t, r) : P(e, [t], r, u, E);
260
273
  throw new TypeError("val must be string, number or Buffer");
261
274
  }
262
- function M(e, t, r, u, v) {
263
- function x(le, fe) {
275
+ function P(e, t, r, u, E) {
276
+ function N(le, fe) {
264
277
  return q === 1 ? le[fe] : le.readUInt16BE(fe * q);
265
278
  }
266
279
  var q = 1, G = e.length, $ = t.length;
@@ -269,12 +282,12 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
269
282
  q = 2, G /= 2, $ /= 2, r /= 2;
270
283
  }
271
284
  var Y;
272
- if (v) {
285
+ if (E) {
273
286
  var X = -1;
274
- for (Y = r; Y < G; Y++) if (x(e, Y) !== x(t, X === -1 ? 0 : Y - X)) X !== -1 && (Y -= Y - X), X = -1;
287
+ for (Y = r; Y < G; Y++) if (N(e, Y) !== N(t, X === -1 ? 0 : Y - X)) X !== -1 && (Y -= Y - X), X = -1;
275
288
  else if (X === -1 && (X = Y), Y - X + 1 === $) return X * q;
276
289
  } else for (r + $ > G && (r = G - $), Y = r; 0 <= Y; Y--) {
277
- for (var ee = !0, we = 0; we < $; we++) if (x(e, Y + we) !== x(t, we)) {
290
+ for (var ee = !0, ve = 0; ve < $; ve++) if (N(e, Y + ve) !== N(t, ve)) {
278
291
  ee = !1;
279
292
  break;
280
293
  }
@@ -284,43 +297,43 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
284
297
  }
285
298
  function p(e, t, r, u) {
286
299
  r = +r || 0;
287
- var v = e.length - r;
288
- u ? (u = +u, u > v && (u = v)) : u = v;
289
- var x = t.length;
290
- u > x / 2 && (u = x / 2);
300
+ var E = e.length - r;
301
+ u ? (u = +u, u > E && (u = E)) : u = E;
302
+ var N = t.length;
303
+ u > N / 2 && (u = N / 2);
291
304
  for (var q, G = 0; G < u; ++G) {
292
- if (q = parseInt(t.substr(2 * G, 2), 16), P(q)) return G;
305
+ if (q = parseInt(t.substr(2 * G, 2), 16), D(q)) return G;
293
306
  e[r + G] = q;
294
307
  }
295
308
  return G;
296
309
  }
297
- function m(e, t, r, u) {
298
- return E(_e(t, e.length - r), e, r, u);
310
+ function _(e, t, r, u) {
311
+ return C(_e(t, e.length - r), e, r, u);
299
312
  }
300
313
  function I(e, t, r, u) {
301
- return E(ye(t), e, r, u);
314
+ return C(ye(t), e, r, u);
302
315
  }
303
316
  function B(e, t, r, u) {
304
317
  return I(e, t, r, u);
305
318
  }
306
319
  function V(e, t, r, u) {
307
- return E(he(t), e, r, u);
320
+ return C(he(t), e, r, u);
308
321
  }
309
322
  function z(e, t, r, u) {
310
- return E(ce(t, e.length - r), e, r, u);
323
+ return C(ce(t, e.length - r), e, r, u);
311
324
  }
312
325
  function K(e, t, r) {
313
326
  return t === 0 && r === e.length ? W.fromByteArray(e) : W.fromByteArray(e.slice(t, r));
314
327
  }
315
328
  function Z(e, t, r) {
316
329
  r = S(e.length, r);
317
- for (var u = [], v = t; v < r; ) {
318
- var x = e[v], q = null, G = 239 < x ? 4 : 223 < x ? 3 : 191 < x ? 2 : 1;
319
- if (v + G <= r) {
330
+ for (var u = [], E = t; E < r; ) {
331
+ var N = e[E], q = null, G = 239 < N ? 4 : 223 < N ? 3 : 191 < N ? 2 : 1;
332
+ if (E + G <= r) {
320
333
  var $, Y, X, ee;
321
- G === 1 ? 128 > x && (q = x) : G === 2 ? ($ = e[v + 1], (192 & $) == 128 && (ee = (31 & x) << 6 | 63 & $, 127 < ee && (q = ee))) : G === 3 ? ($ = e[v + 1], Y = e[v + 2], (192 & $) == 128 && (192 & Y) == 128 && (ee = (15 & x) << 12 | (63 & $) << 6 | 63 & Y, 2047 < ee && (55296 > ee || 57343 < ee) && (q = ee))) : G === 4 && ($ = e[v + 1], Y = e[v + 2], X = e[v + 3], (192 & $) == 128 && (192 & Y) == 128 && (192 & X) == 128 && (ee = (15 & x) << 18 | (63 & $) << 12 | (63 & Y) << 6 | 63 & X, 65535 < ee && 1114112 > ee && (q = ee)));
334
+ G === 1 ? 128 > N && (q = N) : G === 2 ? ($ = e[E + 1], (192 & $) == 128 && (ee = (31 & N) << 6 | 63 & $, 127 < ee && (q = ee))) : G === 3 ? ($ = e[E + 1], Y = e[E + 2], (192 & $) == 128 && (192 & Y) == 128 && (ee = (15 & N) << 12 | (63 & $) << 6 | 63 & Y, 2047 < ee && (55296 > ee || 57343 < ee) && (q = ee))) : G === 4 && ($ = e[E + 1], Y = e[E + 2], X = e[E + 3], (192 & $) == 128 && (192 & Y) == 128 && (192 & X) == 128 && (ee = (15 & N) << 18 | (63 & $) << 12 | (63 & Y) << 6 | 63 & X, 65535 < ee && 1114112 > ee && (q = ee)));
322
335
  }
323
- q === null ? (q = 65533, G = 1) : 65535 < q && (q -= 65536, u.push(55296 | 1023 & q >>> 10), q = 56320 | 1023 & q), u.push(q), v += G;
336
+ q === null ? (q = 65533, G = 1) : 65535 < q && (q -= 65536, u.push(55296 | 1023 & q >>> 10), q = 56320 | 1023 & q), u.push(q), E += G;
324
337
  }
325
338
  return te(u);
326
339
  }
@@ -333,43 +346,43 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
333
346
  function H(e, t, r) {
334
347
  var u = "";
335
348
  r = S(e.length, r);
336
- for (var v = t; v < r; ++v) u += c(127 & e[v]);
349
+ for (var E = t; E < r; ++E) u += c(127 & e[E]);
337
350
  return u;
338
351
  }
339
352
  function Ee(e, t, r) {
340
353
  var u = "";
341
354
  r = S(e.length, r);
342
- for (var v = t; v < r; ++v) u += c(e[v]);
355
+ for (var E = t; E < r; ++E) u += c(e[E]);
343
356
  return u;
344
357
  }
345
358
  function oe(e, t, r) {
346
359
  var u = e.length;
347
360
  (!t || 0 > t) && (t = 0), (!r || 0 > r || r > u) && (r = u);
348
- for (var v = "", x = t; x < r; ++x) v += me(e[x]);
349
- return v;
361
+ for (var E = "", N = t; N < r; ++N) E += me(e[N]);
362
+ return E;
350
363
  }
351
364
  function de(e, t, r) {
352
- for (var u = e.slice(t, r), v = "", x = 0; x < u.length; x += 2) v += c(u[x] + 256 * u[x + 1]);
353
- return v;
365
+ for (var u = e.slice(t, r), E = "", N = 0; N < u.length; N += 2) E += c(u[N] + 256 * u[N + 1]);
366
+ return E;
354
367
  }
355
368
  function J(e, t, r) {
356
369
  if (e % 1 != 0 || 0 > e) throw new RangeError("offset is not uint");
357
370
  if (e + t > r) throw new RangeError("Trying to access beyond buffer length");
358
371
  }
359
- function Q(e, t, r, u, v, x) {
372
+ function Q(e, t, r, u, E, N) {
360
373
  if (!i.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
361
- if (t > v || t < x) throw new RangeError('"value" argument is out of bounds');
374
+ if (t > E || t < N) throw new RangeError('"value" argument is out of bounds');
362
375
  if (r + u > e.length) throw new RangeError("Index out of range");
363
376
  }
364
377
  function ae(e, t, r, u) {
365
378
  if (r + u > e.length) throw new RangeError("Index out of range");
366
379
  if (0 > r) throw new RangeError("Index out of range");
367
380
  }
368
- function pe(e, t, r, u, v) {
369
- return t = +t, r >>>= 0, v || ae(e, t, r, 4, 34028234663852886e22, -34028234663852886e22), s.write(e, t, r, u, 23, 4), r + 4;
381
+ function pe(e, t, r, u, E) {
382
+ return t = +t, r >>>= 0, E || ae(e, t, r, 4, 34028234663852886e22, -34028234663852886e22), s.write(e, t, r, u, 23, 4), r + 4;
370
383
  }
371
- function ge(e, t, r, u, v) {
372
- return t = +t, r >>>= 0, v || ae(e, t, r, 8, 17976931348623157e292, -17976931348623157e292), s.write(e, t, r, u, 52, 8), r + 8;
384
+ function ge(e, t, r, u, E) {
385
+ return t = +t, r >>>= 0, E || ae(e, t, r, 8, 17976931348623157e292, -17976931348623157e292), s.write(e, t, r, u, 52, 8), r + 8;
373
386
  }
374
387
  function Se(e) {
375
388
  if (e = e.split("=")[0], e = e.trim().replace(o, ""), 2 > e.length) return "";
@@ -381,66 +394,66 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
381
394
  }
382
395
  function _e(e, t) {
383
396
  t = t || 1 / 0;
384
- for (var r, u = e.length, v = null, x = [], q = 0; q < u; ++q) {
397
+ for (var r, u = e.length, E = null, N = [], q = 0; q < u; ++q) {
385
398
  if (r = e.charCodeAt(q), 55295 < r && 57344 > r) {
386
- if (!v) {
399
+ if (!E) {
387
400
  if (56319 < r) {
388
- -1 < (t -= 3) && x.push(239, 191, 189);
401
+ -1 < (t -= 3) && N.push(239, 191, 189);
389
402
  continue;
390
403
  } else if (q + 1 === u) {
391
- -1 < (t -= 3) && x.push(239, 191, 189);
404
+ -1 < (t -= 3) && N.push(239, 191, 189);
392
405
  continue;
393
406
  }
394
- v = r;
407
+ E = r;
395
408
  continue;
396
409
  }
397
410
  if (56320 > r) {
398
- -1 < (t -= 3) && x.push(239, 191, 189), v = r;
411
+ -1 < (t -= 3) && N.push(239, 191, 189), E = r;
399
412
  continue;
400
413
  }
401
- r = (v - 55296 << 10 | r - 56320) + 65536;
402
- } else v && -1 < (t -= 3) && x.push(239, 191, 189);
403
- if (v = null, 128 > r) {
414
+ r = (E - 55296 << 10 | r - 56320) + 65536;
415
+ } else E && -1 < (t -= 3) && N.push(239, 191, 189);
416
+ if (E = null, 128 > r) {
404
417
  if (0 > (t -= 1)) break;
405
- x.push(r);
418
+ N.push(r);
406
419
  } else if (2048 > r) {
407
420
  if (0 > (t -= 2)) break;
408
- x.push(192 | r >> 6, 128 | 63 & r);
421
+ N.push(192 | r >> 6, 128 | 63 & r);
409
422
  } else if (65536 > r) {
410
423
  if (0 > (t -= 3)) break;
411
- x.push(224 | r >> 12, 128 | 63 & r >> 6, 128 | 63 & r);
424
+ N.push(224 | r >> 12, 128 | 63 & r >> 6, 128 | 63 & r);
412
425
  } else if (1114112 > r) {
413
426
  if (0 > (t -= 4)) break;
414
- x.push(240 | r >> 18, 128 | 63 & r >> 12, 128 | 63 & r >> 6, 128 | 63 & r);
427
+ N.push(240 | r >> 18, 128 | 63 & r >> 12, 128 | 63 & r >> 6, 128 | 63 & r);
415
428
  } else throw new Error("Invalid code point");
416
429
  }
417
- return x;
430
+ return N;
418
431
  }
419
432
  function ye(e) {
420
433
  for (var t = [], r = 0; r < e.length; ++r) t.push(255 & e.charCodeAt(r));
421
434
  return t;
422
435
  }
423
436
  function ce(e, t) {
424
- for (var r, u, v, x = [], q = 0; q < e.length && !(0 > (t -= 2)); ++q) r = e.charCodeAt(q), u = r >> 8, v = r % 256, x.push(v), x.push(u);
425
- return x;
437
+ for (var r, u, E, N = [], q = 0; q < e.length && !(0 > (t -= 2)); ++q) r = e.charCodeAt(q), u = r >> 8, E = r % 256, N.push(E), N.push(u);
438
+ return N;
426
439
  }
427
440
  function he(e) {
428
441
  return W.toByteArray(Se(e));
429
442
  }
430
- function E(e, t, r, u) {
431
- for (var v = 0; v < u && !(v + r >= t.length || v >= e.length); ++v) t[v + r] = e[v];
432
- return v;
443
+ function C(e, t, r, u) {
444
+ for (var E = 0; E < u && !(E + r >= t.length || E >= e.length); ++E) t[E + r] = e[E];
445
+ return E;
433
446
  }
434
447
  function A(e, t) {
435
448
  return e instanceof t || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === t.name;
436
449
  }
437
- function P(e) {
450
+ function D(e) {
438
451
  return e !== e;
439
452
  }
440
- var W = C("base64-js"), s = C("ieee754");
441
- w.Buffer = i, w.SlowBuffer = function(e) {
453
+ var W = R("base64-js"), s = R("ieee754");
454
+ m.Buffer = i, m.SlowBuffer = function(e) {
442
455
  return +e != e && (e = 0), i.alloc(+e);
443
- }, w.INSPECT_MAX_BYTES = 50, w.kMaxLength = 2147483647, i.TYPED_ARRAY_SUPPORT = (function() {
456
+ }, m.INSPECT_MAX_BYTES = 50, m.kMaxLength = 2147483647, i.TYPED_ARRAY_SUPPORT = (function() {
444
457
  try {
445
458
  var e = /* @__PURE__ */ new Uint8Array(1);
446
459
  return e.__proto__ = {
@@ -480,8 +493,8 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
480
493
  }, i.compare = function(e, t) {
481
494
  if (A(e, Uint8Array) && (e = i.from(e, e.offset, e.byteLength)), A(t, Uint8Array) && (t = i.from(t, t.offset, t.byteLength)), !i.isBuffer(e) || !i.isBuffer(t)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
482
495
  if (e === t) return 0;
483
- for (var r = e.length, u = t.length, v = 0, x = S(r, u); v < x; ++v) if (e[v] !== t[v]) {
484
- r = e[v], u = t[v];
496
+ for (var r = e.length, u = t.length, E = 0, N = S(r, u); E < N; ++E) if (e[E] !== t[E]) {
497
+ r = e[E], u = t[E];
485
498
  break;
486
499
  }
487
500
  return r < u ? -1 : u < r ? 1 : 0;
@@ -507,11 +520,11 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
507
520
  if (e.length === 0) return i.alloc(0);
508
521
  var r;
509
522
  if (t === void 0) for (t = 0, r = 0; r < e.length; ++r) t += e[r].length;
510
- var u = i.allocUnsafe(t), v = 0;
523
+ var u = i.allocUnsafe(t), E = 0;
511
524
  for (r = 0; r < e.length; ++r) {
512
- var x = e[r];
513
- if (A(x, Uint8Array) && (x = i.from(x)), !i.isBuffer(x)) throw new TypeError('"list" argument must be an Array of Buffers');
514
- x.copy(u, v), v += x.length;
525
+ var N = e[r];
526
+ if (A(N, Uint8Array) && (N = i.from(N)), !i.isBuffer(N)) throw new TypeError('"list" argument must be an Array of Buffers');
527
+ N.copy(u, E), E += N.length;
515
528
  }
516
529
  return u;
517
530
  }, i.byteLength = y, i.prototype._isBuffer = !0, i.prototype.swap16 = function() {
@@ -536,20 +549,20 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
536
549
  if (!i.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
537
550
  return this === e || i.compare(this, e) === 0;
538
551
  }, i.prototype.inspect = function() {
539
- var e = "", t = w.INSPECT_MAX_BYTES;
552
+ var e = "", t = m.INSPECT_MAX_BYTES;
540
553
  return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
541
- }, i.prototype.compare = function(e, t, r, u, v) {
554
+ }, i.prototype.compare = function(e, t, r, u, E) {
542
555
  if (A(e, Uint8Array) && (e = i.from(e, e.offset, e.byteLength)), !i.isBuffer(e)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e);
543
- if (t === void 0 && (t = 0), r === void 0 && (r = e ? e.length : 0), u === void 0 && (u = 0), v === void 0 && (v = this.length), 0 > t || r > e.length || 0 > u || v > this.length) throw new RangeError("out of range index");
544
- if (u >= v && t >= r) return 0;
545
- if (u >= v) return -1;
556
+ if (t === void 0 && (t = 0), r === void 0 && (r = e ? e.length : 0), u === void 0 && (u = 0), E === void 0 && (E = this.length), 0 > t || r > e.length || 0 > u || E > this.length) throw new RangeError("out of range index");
557
+ if (u >= E && t >= r) return 0;
558
+ if (u >= E) return -1;
546
559
  if (t >= r) return 1;
547
- if (t >>>= 0, r >>>= 0, u >>>= 0, v >>>= 0, this === e) return 0;
548
- for (var x = v - u, q = r - t, G = S(x, q), $ = this.slice(u, v), Y = e.slice(t, r), X = 0; X < G; ++X) if ($[X] !== Y[X]) {
549
- x = $[X], q = Y[X];
560
+ if (t >>>= 0, r >>>= 0, u >>>= 0, E >>>= 0, this === e) return 0;
561
+ for (var N = E - u, q = r - t, G = S(N, q), $ = this.slice(u, E), Y = e.slice(t, r), X = 0; X < G; ++X) if ($[X] !== Y[X]) {
562
+ N = $[X], q = Y[X];
550
563
  break;
551
564
  }
552
- return x < q ? -1 : q < x ? 1 : 0;
565
+ return N < q ? -1 : q < N ? 1 : 0;
553
566
  }, i.prototype.includes = function(e, t, r) {
554
567
  return this.indexOf(e, t, r) !== -1;
555
568
  }, i.prototype.indexOf = function(e, t, r) {
@@ -561,15 +574,15 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
561
574
  else if (r === void 0 && typeof t == "string") u = t, r = this.length, t = 0;
562
575
  else if (isFinite(t)) t >>>= 0, isFinite(r) ? (r >>>= 0, u === void 0 && (u = "utf8")) : (u = r, r = void 0);
563
576
  else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
564
- var v = this.length - t;
565
- if ((r === void 0 || r > v) && (r = v), 0 < e.length && (0 > r || 0 > t) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds");
577
+ var E = this.length - t;
578
+ if ((r === void 0 || r > E) && (r = E), 0 < e.length && (0 > r || 0 > t) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds");
566
579
  u || (u = "utf8");
567
- for (var x = !1; ; ) switch (u) {
580
+ for (var N = !1; ; ) switch (u) {
568
581
  case "hex":
569
582
  return p(this, e, t, r);
570
583
  case "utf8":
571
584
  case "utf-8":
572
- return m(this, e, t, r);
585
+ return _(this, e, t, r);
573
586
  case "ascii":
574
587
  return I(this, e, t, r);
575
588
  case "latin1":
@@ -583,8 +596,8 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
583
596
  case "utf-16le":
584
597
  return z(this, e, t, r);
585
598
  default:
586
- if (x) throw new TypeError("Unknown encoding: " + u);
587
- u = ("" + u).toLowerCase(), x = !0;
599
+ if (N) throw new TypeError("Unknown encoding: " + u);
600
+ u = ("" + u).toLowerCase(), N = !0;
588
601
  }
589
602
  }, i.prototype.toJSON = function() {
590
603
  return {
@@ -598,11 +611,11 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
598
611
  return u.__proto__ = i.prototype, u;
599
612
  }, i.prototype.readUIntLE = function(e, t, r) {
600
613
  e >>>= 0, t >>>= 0, r || J(e, t, this.length);
601
- for (var u = this[e], v = 1, x = 0; ++x < t && (v *= 256); ) u += this[e + x] * v;
614
+ for (var u = this[e], E = 1, N = 0; ++N < t && (E *= 256); ) u += this[e + N] * E;
602
615
  return u;
603
616
  }, i.prototype.readUIntBE = function(e, t, r) {
604
617
  e >>>= 0, t >>>= 0, r || J(e, t, this.length);
605
- for (var u = this[e + --t], v = 1; 0 < t && (v *= 256); ) u += this[e + --t] * v;
618
+ for (var u = this[e + --t], E = 1; 0 < t && (E *= 256); ) u += this[e + --t] * E;
606
619
  return u;
607
620
  }, i.prototype.readUInt8 = function(e, t) {
608
621
  return e >>>= 0, t || J(e, 1, this.length), this[e];
@@ -616,12 +629,12 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
616
629
  return e >>>= 0, t || J(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
617
630
  }, i.prototype.readIntLE = function(e, t, r) {
618
631
  e >>>= 0, t >>>= 0, r || J(e, t, this.length);
619
- for (var u = this[e], v = 1, x = 0; ++x < t && (v *= 256); ) u += this[e + x] * v;
620
- return v *= 128, u >= v && (u -= F(2, 8 * t)), u;
632
+ for (var u = this[e], E = 1, N = 0; ++N < t && (E *= 256); ) u += this[e + N] * E;
633
+ return E *= 128, u >= E && (u -= F(2, 8 * t)), u;
621
634
  }, i.prototype.readIntBE = function(e, t, r) {
622
635
  e >>>= 0, t >>>= 0, r || J(e, t, this.length);
623
- for (var u = t, v = 1, x = this[e + --u]; 0 < u && (v *= 256); ) x += this[e + --u] * v;
624
- return v *= 128, x >= v && (x -= F(2, 8 * t)), x;
636
+ for (var u = t, E = 1, N = this[e + --u]; 0 < u && (E *= 256); ) N += this[e + --u] * E;
637
+ return E *= 128, N >= E && (N -= F(2, 8 * t)), N;
625
638
  }, i.prototype.readInt8 = function(e, t) {
626
639
  return e >>>= 0, t || J(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e];
627
640
  }, i.prototype.readInt16LE = function(e, t) {
@@ -646,19 +659,19 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
646
659
  return e >>>= 0, t || J(e, 8, this.length), s.read(this, e, !1, 52, 8);
647
660
  }, i.prototype.writeUIntLE = function(e, t, r, u) {
648
661
  if (e = +e, t >>>= 0, r >>>= 0, !u) {
649
- var v = F(2, 8 * r) - 1;
650
- Q(this, e, t, r, v, 0);
662
+ var E = F(2, 8 * r) - 1;
663
+ Q(this, e, t, r, E, 0);
651
664
  }
652
- var x = 1, q = 0;
653
- for (this[t] = 255 & e; ++q < r && (x *= 256); ) this[t + q] = 255 & e / x;
665
+ var N = 1, q = 0;
666
+ for (this[t] = 255 & e; ++q < r && (N *= 256); ) this[t + q] = 255 & e / N;
654
667
  return t + r;
655
668
  }, i.prototype.writeUIntBE = function(e, t, r, u) {
656
669
  if (e = +e, t >>>= 0, r >>>= 0, !u) {
657
- var v = F(2, 8 * r) - 1;
658
- Q(this, e, t, r, v, 0);
670
+ var E = F(2, 8 * r) - 1;
671
+ Q(this, e, t, r, E, 0);
659
672
  }
660
- var x = r - 1, q = 1;
661
- for (this[t + x] = 255 & e; 0 <= --x && (q *= 256); ) this[t + x] = 255 & e / q;
673
+ var N = r - 1, q = 1;
674
+ for (this[t + N] = 255 & e; 0 <= --N && (q *= 256); ) this[t + N] = 255 & e / q;
662
675
  return t + r;
663
676
  }, i.prototype.writeUInt8 = function(e, t, r) {
664
677
  return e = +e, t >>>= 0, r || Q(this, e, t, 1, 255, 0), this[t] = 255 & e, t + 1;
@@ -672,19 +685,19 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
672
685
  return e = +e, t >>>= 0, r || Q(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e, t + 4;
673
686
  }, i.prototype.writeIntLE = function(e, t, r, u) {
674
687
  if (e = +e, t >>>= 0, !u) {
675
- var v = F(2, 8 * r - 1);
676
- Q(this, e, t, r, v - 1, -v);
688
+ var E = F(2, 8 * r - 1);
689
+ Q(this, e, t, r, E - 1, -E);
677
690
  }
678
- var x = 0, q = 1, G = 0;
679
- for (this[t] = 255 & e; ++x < r && (q *= 256); ) 0 > e && G === 0 && this[t + x - 1] !== 0 && (G = 1), this[t + x] = 255 & (e / q >> 0) - G;
691
+ var N = 0, q = 1, G = 0;
692
+ for (this[t] = 255 & e; ++N < r && (q *= 256); ) 0 > e && G === 0 && this[t + N - 1] !== 0 && (G = 1), this[t + N] = 255 & (e / q >> 0) - G;
680
693
  return t + r;
681
694
  }, i.prototype.writeIntBE = function(e, t, r, u) {
682
695
  if (e = +e, t >>>= 0, !u) {
683
- var v = F(2, 8 * r - 1);
684
- Q(this, e, t, r, v - 1, -v);
696
+ var E = F(2, 8 * r - 1);
697
+ Q(this, e, t, r, E - 1, -E);
685
698
  }
686
- var x = r - 1, q = 1, G = 0;
687
- for (this[t + x] = 255 & e; 0 <= --x && (q *= 256); ) 0 > e && G === 0 && this[t + x + 1] !== 0 && (G = 1), this[t + x] = 255 & (e / q >> 0) - G;
699
+ var N = r - 1, q = 1, G = 0;
700
+ for (this[t + N] = 255 & e; 0 <= --N && (q *= 256); ) 0 > e && G === 0 && this[t + N + 1] !== 0 && (G = 1), this[t + N] = 255 & (e / q >> 0) - G;
688
701
  return t + r;
689
702
  }, i.prototype.writeInt8 = function(e, t, r) {
690
703
  return e = +e, t >>>= 0, r || Q(this, e, t, 1, 127, -128), 0 > e && (e = 255 + e + 1), this[t] = 255 & e, t + 1;
@@ -711,77 +724,77 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
711
724
  if (0 > r || r >= this.length) throw new RangeError("Index out of range");
712
725
  if (0 > u) throw new RangeError("sourceEnd out of bounds");
713
726
  u > this.length && (u = this.length), e.length - t < u - r && (u = e.length - t + r);
714
- var v = u - r;
727
+ var E = u - r;
715
728
  if (this === e && typeof Uint8Array.prototype.copyWithin == "function") this.copyWithin(t, r, u);
716
- else if (this === e && r < t && t < u) for (var x = v - 1; 0 <= x; --x) e[x + t] = this[x + r];
729
+ else if (this === e && r < t && t < u) for (var N = E - 1; 0 <= N; --N) e[N + t] = this[N + r];
717
730
  else Uint8Array.prototype.set.call(e, this.subarray(r, u), t);
718
- return v;
731
+ return E;
719
732
  }, i.prototype.fill = function(e, t, r, u) {
720
733
  if (typeof e == "string") {
721
734
  if (typeof t == "string" ? (u = t, t = 0, r = this.length) : typeof r == "string" && (u = r, r = this.length), u !== void 0 && typeof u != "string") throw new TypeError("encoding must be a string");
722
735
  if (typeof u == "string" && !i.isEncoding(u)) throw new TypeError("Unknown encoding: " + u);
723
736
  if (e.length === 1) {
724
- var v = e.charCodeAt(0);
725
- (u === "utf8" && 128 > v || u === "latin1") && (e = v);
737
+ var E = e.charCodeAt(0);
738
+ (u === "utf8" && 128 > E || u === "latin1") && (e = E);
726
739
  }
727
740
  } else typeof e == "number" && (e &= 255);
728
741
  if (0 > t || this.length < t || this.length < r) throw new RangeError("Out of range index");
729
742
  if (r <= t) return this;
730
743
  t >>>= 0, r = r === void 0 ? this.length : r >>> 0, e || (e = 0);
731
- var x;
732
- if (typeof e == "number") for (x = t; x < r; ++x) this[x] = e;
744
+ var N;
745
+ if (typeof e == "number") for (N = t; N < r; ++N) this[N] = e;
733
746
  else {
734
747
  var q = i.isBuffer(e) ? e : i.from(e, u), G = q.length;
735
748
  if (G === 0) throw new TypeError('The value "' + e + '" is invalid for argument "value"');
736
- for (x = 0; x < r - t; ++x) this[x + t] = q[x % G];
749
+ for (N = 0; N < r - t; ++N) this[N + t] = q[N % G];
737
750
  }
738
751
  return this;
739
752
  };
740
753
  var o = /[^+/0-9A-Za-z-_]/g;
741
754
  }).call(this);
742
- }).call(this, C("buffer").Buffer);
755
+ }).call(this, R("buffer").Buffer);
743
756
  }, {
744
757
  "base64-js": 1,
745
758
  buffer: 3,
746
759
  ieee754: 9
747
760
  }],
748
- 4: [function(C, N, w) {
761
+ 4: [function(R, M, m) {
749
762
  (function(c) {
750
763
  (function() {
751
764
  function S() {
752
765
  let i;
753
766
  try {
754
- i = w.storage.getItem("debug");
767
+ i = m.storage.getItem("debug");
755
768
  } catch {
756
769
  }
757
770
  return !i && typeof c < "u" && "env" in c && (i = c.env.DEBUG), i;
758
771
  }
759
- w.formatArgs = function(i) {
760
- if (i[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + i[0] + (this.useColors ? "%c " : " ") + "+" + N.exports.humanize(this.diff), !this.useColors) return;
772
+ m.formatArgs = function(i) {
773
+ if (i[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + i[0] + (this.useColors ? "%c " : " ") + "+" + M.exports.humanize(this.diff), !this.useColors) return;
761
774
  const h = "color: " + this.color;
762
775
  i.splice(1, 0, h, "color: inherit");
763
776
  let d = 0, a = 0;
764
777
  i[0].replace(/%[a-zA-Z%]/g, (g) => {
765
778
  g === "%%" || (d++, g === "%c" && (a = d));
766
779
  }), i.splice(a, 0, h);
767
- }, w.save = function(i) {
780
+ }, m.save = function(i) {
768
781
  try {
769
- i ? w.storage.setItem("debug", i) : w.storage.removeItem("debug");
782
+ i ? m.storage.setItem("debug", i) : m.storage.removeItem("debug");
770
783
  } catch {
771
784
  }
772
- }, w.load = S, w.useColors = function() {
785
+ }, m.load = S, m.useColors = function() {
773
786
  return !!(typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) || !(typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) && (typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && 31 <= parseInt(RegExp.$1, 10) || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
774
- }, w.storage = (function() {
787
+ }, m.storage = (function() {
775
788
  try {
776
789
  return localStorage;
777
790
  } catch {
778
791
  }
779
- })(), w.destroy = /* @__PURE__ */ (() => {
792
+ })(), m.destroy = /* @__PURE__ */ (() => {
780
793
  let i = !1;
781
794
  return () => {
782
795
  i || (i = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
783
796
  };
784
- })(), w.colors = [
797
+ })(), m.colors = [
785
798
  "#0000CC",
786
799
  "#0000FF",
787
800
  "#0033CC",
@@ -858,9 +871,9 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
858
871
  "#FF9933",
859
872
  "#FFCC00",
860
873
  "#FFCC33"
861
- ], w.log = console.debug || console.log || (() => {
862
- }), N.exports = C("./common")(w);
863
- const { formatters: O } = N.exports;
874
+ ], m.log = console.debug || console.log || (() => {
875
+ }), M.exports = R("./common")(m);
876
+ const { formatters: O } = M.exports;
864
877
  O.j = function(i) {
865
878
  try {
866
879
  return JSON.stringify(i);
@@ -869,18 +882,18 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
869
882
  }
870
883
  };
871
884
  }).call(this);
872
- }).call(this, C("_process"));
885
+ }).call(this, R("_process"));
873
886
  }, {
874
887
  "./common": 5,
875
888
  _process: 12
876
889
  }],
877
- 5: [function(C, N) {
878
- N.exports = function(w) {
890
+ 5: [function(R, M) {
891
+ M.exports = function(m) {
879
892
  function c(i) {
880
893
  function h(...g) {
881
894
  if (!h.enabled) return;
882
- const L = h, _ = +/* @__PURE__ */ new Date();
883
- L.diff = _ - (d || _), L.prev = d, L.curr = _, d = _, g[0] = c.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O");
895
+ const L = h, w = +/* @__PURE__ */ new Date();
896
+ L.diff = w - (d || w), L.prev = d, L.curr = w, d = w, g[0] = c.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O");
884
897
  let b = 0;
885
898
  g[0] = g[0].replace(/%([a-zA-Z%])/g, (n, l) => {
886
899
  if (n === "%%") return "%";
@@ -926,20 +939,20 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
926
939
  for (h = 0, d = c.skips.length; h < d; h++) if (c.skips[h].test(i)) return !1;
927
940
  for (h = 0, d = c.names.length; h < d; h++) if (c.names[h].test(i)) return !0;
928
941
  return !1;
929
- }, c.humanize = C("ms"), c.destroy = function() {
942
+ }, c.humanize = R("ms"), c.destroy = function() {
930
943
  console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
931
- }, Object.keys(w).forEach((i) => {
932
- c[i] = w[i];
944
+ }, Object.keys(m).forEach((i) => {
945
+ c[i] = m[i];
933
946
  }), c.names = [], c.skips = [], c.formatters = {}, c.selectColor = function(i) {
934
947
  let h = 0;
935
948
  for (let d = 0; d < i.length; d++) h = (h << 5) - h + i.charCodeAt(d), h |= 0;
936
- return c.colors[j(h) % c.colors.length];
949
+ return c.colors[U(h) % c.colors.length];
937
950
  }, c.enable(c.load()), c;
938
951
  };
939
952
  }, { ms: 11 }],
940
- 6: [function(C, N) {
953
+ 6: [function(R, M) {
941
954
  "use strict";
942
- function w(c, S) {
955
+ function m(c, S) {
943
956
  for (const O in S) Object.defineProperty(c, O, {
944
957
  value: S[O],
945
958
  enumerable: !0,
@@ -947,22 +960,22 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
947
960
  });
948
961
  return c;
949
962
  }
950
- N.exports = function(c, S, O) {
963
+ M.exports = function(c, S, O) {
951
964
  if (!c || typeof c == "string") throw new TypeError("Please pass an Error to err-code");
952
965
  O || (O = {}), typeof S == "object" && (O = S, S = ""), S && (O.code = S);
953
966
  try {
954
- return w(c, O);
967
+ return m(c, O);
955
968
  } catch {
956
969
  O.message = c.message, O.stack = c.stack;
957
970
  const h = function() {
958
971
  };
959
- return h.prototype = Object.create(Object.getPrototypeOf(c)), w(new h(), O);
972
+ return h.prototype = Object.create(Object.getPrototypeOf(c)), m(new h(), O);
960
973
  }
961
974
  };
962
975
  }, {}],
963
- 7: [function(C, N) {
976
+ 7: [function(R, M) {
964
977
  "use strict";
965
- function w(p) {
978
+ function m(p) {
966
979
  console && console.warn && console.warn(p);
967
980
  }
968
981
  function c() {
@@ -974,68 +987,68 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
974
987
  function O(p) {
975
988
  return p._maxListeners === void 0 ? c.defaultMaxListeners : p._maxListeners;
976
989
  }
977
- function i(p, m, I, B) {
990
+ function i(p, _, I, B) {
978
991
  var V, z, K;
979
- if (S(I), z = p._events, z === void 0 ? (z = p._events = /* @__PURE__ */ Object.create(null), p._eventsCount = 0) : (z.newListener !== void 0 && (p.emit("newListener", m, I.listener ? I.listener : I), z = p._events), K = z[m]), K === void 0) K = z[m] = I, ++p._eventsCount;
980
- else if (typeof K == "function" ? K = z[m] = B ? [I, K] : [K, I] : B ? K.unshift(I) : K.push(I), V = O(p), 0 < V && K.length > V && !K.warned) {
992
+ if (S(I), z = p._events, z === void 0 ? (z = p._events = /* @__PURE__ */ Object.create(null), p._eventsCount = 0) : (z.newListener !== void 0 && (p.emit("newListener", _, I.listener ? I.listener : I), z = p._events), K = z[_]), K === void 0) K = z[_] = I, ++p._eventsCount;
993
+ else if (typeof K == "function" ? K = z[_] = B ? [I, K] : [K, I] : B ? K.unshift(I) : K.push(I), V = O(p), 0 < V && K.length > V && !K.warned) {
981
994
  K.warned = !0;
982
- var Z = /* @__PURE__ */ new Error("Possible EventEmitter memory leak detected. " + K.length + " " + (m + " listeners added. Use emitter.setMaxListeners() to increase limit"));
983
- Z.name = "MaxListenersExceededWarning", Z.emitter = p, Z.type = m, Z.count = K.length, w(Z);
995
+ var Z = /* @__PURE__ */ new Error("Possible EventEmitter memory leak detected. " + K.length + " " + (_ + " listeners added. Use emitter.setMaxListeners() to increase limit"));
996
+ Z.name = "MaxListenersExceededWarning", Z.emitter = p, Z.type = _, Z.count = K.length, m(Z);
984
997
  }
985
998
  return p;
986
999
  }
987
1000
  function h() {
988
1001
  if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
989
1002
  }
990
- function d(p, m, I) {
1003
+ function d(p, _, I) {
991
1004
  var B = {
992
1005
  fired: !1,
993
1006
  wrapFn: void 0,
994
1007
  target: p,
995
- type: m,
1008
+ type: _,
996
1009
  listener: I
997
1010
  }, V = h.bind(B);
998
1011
  return V.listener = I, B.wrapFn = V, V;
999
1012
  }
1000
- function a(p, m, I) {
1013
+ function a(p, _, I) {
1001
1014
  var B = p._events;
1002
1015
  if (B === void 0) return [];
1003
- var V = B[m];
1016
+ var V = B[_];
1004
1017
  return V === void 0 ? [] : typeof V == "function" ? I ? [V.listener || V] : [V] : I ? b(V) : L(V, V.length);
1005
1018
  }
1006
1019
  function g(p) {
1007
- var m = this._events;
1008
- if (m !== void 0) {
1009
- var I = m[p];
1020
+ var _ = this._events;
1021
+ if (_ !== void 0) {
1022
+ var I = _[p];
1010
1023
  if (typeof I == "function") return 1;
1011
1024
  if (I !== void 0) return I.length;
1012
1025
  }
1013
1026
  return 0;
1014
1027
  }
1015
- function L(p, m) {
1016
- for (var I = Array(m), B = 0; B < m; ++B) I[B] = p[B];
1028
+ function L(p, _) {
1029
+ for (var I = Array(_), B = 0; B < _; ++B) I[B] = p[B];
1017
1030
  return I;
1018
1031
  }
1019
- function _(p, m) {
1020
- for (; m + 1 < p.length; m++) p[m] = p[m + 1];
1032
+ function w(p, _) {
1033
+ for (; _ + 1 < p.length; _++) p[_] = p[_ + 1];
1021
1034
  p.pop();
1022
1035
  }
1023
1036
  function b(p) {
1024
- for (var m = Array(p.length), I = 0; I < m.length; ++I) m[I] = p[I].listener || p[I];
1025
- return m;
1037
+ for (var _ = Array(p.length), I = 0; I < _.length; ++I) _[I] = p[I].listener || p[I];
1038
+ return _;
1026
1039
  }
1027
- function n(p, m, I) {
1028
- typeof p.on == "function" && l(p, "error", m, I);
1040
+ function n(p, _, I) {
1041
+ typeof p.on == "function" && l(p, "error", _, I);
1029
1042
  }
1030
- function l(p, m, I, B) {
1031
- if (typeof p.on == "function") B.once ? p.once(m, I) : p.on(m, I);
1032
- else if (typeof p.addEventListener == "function") p.addEventListener(m, function V(z) {
1033
- B.once && p.removeEventListener(m, V), I(z);
1043
+ function l(p, _, I, B) {
1044
+ if (typeof p.on == "function") B.once ? p.once(_, I) : p.on(_, I);
1045
+ else if (typeof p.addEventListener == "function") p.addEventListener(_, function V(z) {
1046
+ B.once && p.removeEventListener(_, V), I(z);
1034
1047
  });
1035
1048
  else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof p);
1036
1049
  }
1037
- var y, k = typeof Reflect == "object" ? Reflect : null, f = k && typeof k.apply == "function" ? k.apply : function(p, m, I) {
1038
- return Function.prototype.apply.call(p, m, I);
1050
+ var y, k = typeof Reflect == "object" ? Reflect : null, f = k && typeof k.apply == "function" ? k.apply : function(p, _, I) {
1051
+ return Function.prototype.apply.call(p, _, I);
1039
1052
  };
1040
1053
  y = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(p) {
1041
1054
  return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p));
@@ -1045,26 +1058,26 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1045
1058
  var T = Number.isNaN || function(p) {
1046
1059
  return p !== p;
1047
1060
  };
1048
- N.exports = c, N.exports.once = function(p, m) {
1061
+ M.exports = c, M.exports.once = function(p, _) {
1049
1062
  return new Promise(function(I, B) {
1050
1063
  function V(K) {
1051
- p.removeListener(m, z), B(K);
1064
+ p.removeListener(_, z), B(K);
1052
1065
  }
1053
1066
  function z() {
1054
1067
  typeof p.removeListener == "function" && p.removeListener("error", V), I([].slice.call(arguments));
1055
1068
  }
1056
- l(p, m, z, { once: !0 }), m !== "error" && n(p, V, { once: !0 });
1069
+ l(p, _, z, { once: !0 }), _ !== "error" && n(p, V, { once: !0 });
1057
1070
  });
1058
1071
  }, c.EventEmitter = c, c.prototype._events = void 0, c.prototype._eventsCount = 0, c.prototype._maxListeners = void 0;
1059
- var M = 10;
1072
+ var P = 10;
1060
1073
  Object.defineProperty(c, "defaultMaxListeners", {
1061
1074
  enumerable: !0,
1062
1075
  get: function() {
1063
- return M;
1076
+ return P;
1064
1077
  },
1065
1078
  set: function(p) {
1066
1079
  if (typeof p != "number" || 0 > p || T(p)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + p + ".");
1067
- M = p;
1080
+ P = p;
1068
1081
  }
1069
1082
  }), c.init = function() {
1070
1083
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
@@ -1074,45 +1087,45 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1074
1087
  }, c.prototype.getMaxListeners = function() {
1075
1088
  return O(this);
1076
1089
  }, c.prototype.emit = function(p) {
1077
- for (var m = [], I = 1; I < arguments.length; I++) m.push(arguments[I]);
1090
+ for (var _ = [], I = 1; I < arguments.length; I++) _.push(arguments[I]);
1078
1091
  var B = p === "error", V = this._events;
1079
1092
  if (V !== void 0) B = B && V.error === void 0;
1080
1093
  else if (!B) return !1;
1081
1094
  if (B) {
1082
1095
  var z;
1083
- if (0 < m.length && (z = m[0]), z instanceof Error) throw z;
1096
+ if (0 < _.length && (z = _[0]), z instanceof Error) throw z;
1084
1097
  var K = /* @__PURE__ */ new Error("Unhandled error." + (z ? " (" + z.message + ")" : ""));
1085
1098
  throw K.context = z, K;
1086
1099
  }
1087
1100
  var Z = V[p];
1088
1101
  if (Z === void 0) return !1;
1089
- if (typeof Z == "function") f(Z, this, m);
1090
- else for (var te = Z.length, H = L(Z, te), I = 0; I < te; ++I) f(H[I], this, m);
1102
+ if (typeof Z == "function") f(Z, this, _);
1103
+ else for (var te = Z.length, H = L(Z, te), I = 0; I < te; ++I) f(H[I], this, _);
1091
1104
  return !0;
1092
- }, c.prototype.addListener = function(p, m) {
1093
- return i(this, p, m, !1);
1094
- }, c.prototype.on = c.prototype.addListener, c.prototype.prependListener = function(p, m) {
1095
- return i(this, p, m, !0);
1096
- }, c.prototype.once = function(p, m) {
1097
- return S(m), this.on(p, d(this, p, m)), this;
1098
- }, c.prototype.prependOnceListener = function(p, m) {
1099
- return S(m), this.prependListener(p, d(this, p, m)), this;
1100
- }, c.prototype.removeListener = function(p, m) {
1105
+ }, c.prototype.addListener = function(p, _) {
1106
+ return i(this, p, _, !1);
1107
+ }, c.prototype.on = c.prototype.addListener, c.prototype.prependListener = function(p, _) {
1108
+ return i(this, p, _, !0);
1109
+ }, c.prototype.once = function(p, _) {
1110
+ return S(_), this.on(p, d(this, p, _)), this;
1111
+ }, c.prototype.prependOnceListener = function(p, _) {
1112
+ return S(_), this.prependListener(p, d(this, p, _)), this;
1113
+ }, c.prototype.removeListener = function(p, _) {
1101
1114
  var I, B, V, z, K;
1102
- if (S(m), B = this._events, B === void 0) return this;
1115
+ if (S(_), B = this._events, B === void 0) return this;
1103
1116
  if (I = B[p], I === void 0) return this;
1104
- if (I === m || I.listener === m) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[p], B.removeListener && this.emit("removeListener", p, I.listener || m));
1117
+ if (I === _ || I.listener === _) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[p], B.removeListener && this.emit("removeListener", p, I.listener || _));
1105
1118
  else if (typeof I != "function") {
1106
- for (V = -1, z = I.length - 1; 0 <= z; z--) if (I[z] === m || I[z].listener === m) {
1119
+ for (V = -1, z = I.length - 1; 0 <= z; z--) if (I[z] === _ || I[z].listener === _) {
1107
1120
  K = I[z].listener, V = z;
1108
1121
  break;
1109
1122
  }
1110
1123
  if (0 > V) return this;
1111
- V === 0 ? I.shift() : _(I, V), I.length === 1 && (B[p] = I[0]), B.removeListener !== void 0 && this.emit("removeListener", p, K || m);
1124
+ V === 0 ? I.shift() : w(I, V), I.length === 1 && (B[p] = I[0]), B.removeListener !== void 0 && this.emit("removeListener", p, K || _);
1112
1125
  }
1113
1126
  return this;
1114
1127
  }, c.prototype.off = c.prototype.removeListener, c.prototype.removeAllListeners = function(p) {
1115
- var m, I, B;
1128
+ var _, I, B;
1116
1129
  if (I = this._events, I === void 0) return this;
1117
1130
  if (I.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : I[p] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete I[p]), this;
1118
1131
  if (arguments.length === 0) {
@@ -1120,67 +1133,67 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1120
1133
  for (B = 0; B < z.length; ++B) V = z[B], V !== "removeListener" && this.removeAllListeners(V);
1121
1134
  return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
1122
1135
  }
1123
- if (m = I[p], typeof m == "function") this.removeListener(p, m);
1124
- else if (m !== void 0) for (B = m.length - 1; 0 <= B; B--) this.removeListener(p, m[B]);
1136
+ if (_ = I[p], typeof _ == "function") this.removeListener(p, _);
1137
+ else if (_ !== void 0) for (B = _.length - 1; 0 <= B; B--) this.removeListener(p, _[B]);
1125
1138
  return this;
1126
1139
  }, c.prototype.listeners = function(p) {
1127
1140
  return a(this, p, !0);
1128
1141
  }, c.prototype.rawListeners = function(p) {
1129
1142
  return a(this, p, !1);
1130
- }, c.listenerCount = function(p, m) {
1131
- return typeof p.listenerCount == "function" ? p.listenerCount(m) : g.call(p, m);
1143
+ }, c.listenerCount = function(p, _) {
1144
+ return typeof p.listenerCount == "function" ? p.listenerCount(_) : g.call(p, _);
1132
1145
  }, c.prototype.listenerCount = g, c.prototype.eventNames = function() {
1133
1146
  return 0 < this._eventsCount ? y(this._events) : [];
1134
1147
  };
1135
1148
  }, {}],
1136
- 8: [function(C, N) {
1137
- N.exports = function() {
1149
+ 8: [function(R, M) {
1150
+ M.exports = function() {
1138
1151
  if (typeof globalThis > "u") return null;
1139
- var w = {
1152
+ var m = {
1140
1153
  RTCPeerConnection: globalThis.RTCPeerConnection || globalThis.mozRTCPeerConnection || globalThis.webkitRTCPeerConnection,
1141
1154
  RTCSessionDescription: globalThis.RTCSessionDescription || globalThis.mozRTCSessionDescription || globalThis.webkitRTCSessionDescription,
1142
1155
  RTCIceCandidate: globalThis.RTCIceCandidate || globalThis.mozRTCIceCandidate || globalThis.webkitRTCIceCandidate
1143
1156
  };
1144
- return w.RTCPeerConnection ? w : null;
1157
+ return m.RTCPeerConnection ? m : null;
1145
1158
  };
1146
1159
  }, {}],
1147
- 9: [function(C, N, w) {
1148
- w.read = function(c, S, O, i, h) {
1149
- var d, a, g = 8 * h - i - 1, L = (1 << g) - 1, _ = L >> 1, b = -7, n = O ? h - 1 : 0, l = O ? -1 : 1, y = c[S + n];
1160
+ 9: [function(R, M, m) {
1161
+ m.read = function(c, S, O, i, h) {
1162
+ var d, a, g = 8 * h - i - 1, L = (1 << g) - 1, w = L >> 1, b = -7, n = O ? h - 1 : 0, l = O ? -1 : 1, y = c[S + n];
1150
1163
  for (n += l, d = y & (1 << -b) - 1, y >>= -b, b += g; 0 < b; d = 256 * d + c[S + n], n += l, b -= 8) ;
1151
1164
  for (a = d & (1 << -b) - 1, d >>= -b, b += i; 0 < b; a = 256 * a + c[S + n], n += l, b -= 8) ;
1152
- if (d === 0) d = 1 - _;
1165
+ if (d === 0) d = 1 - w;
1153
1166
  else {
1154
1167
  if (d === L) return a ? NaN : (y ? -1 : 1) * (1 / 0);
1155
- a += F(2, i), d -= _;
1168
+ a += F(2, i), d -= w;
1156
1169
  }
1157
1170
  return (y ? -1 : 1) * a * F(2, d - i);
1158
- }, w.write = function(c, S, O, i, h, d) {
1159
- var a, g, L, _ = Math.LN2, b = Math.log, n = 8 * d - h - 1, l = (1 << n) - 1, y = l >> 1, k = h === 23 ? F(2, -24) - F(2, -77) : 0, f = i ? 0 : d - 1, T = i ? 1 : -1, M = 0 > S || S === 0 && 0 > 1 / S ? 1 : 0;
1160
- for (S = j(S), isNaN(S) || S === 1 / 0 ? (g = isNaN(S) ? 1 : 0, a = l) : (a = U(b(S) / _), 1 > S * (L = F(2, -a)) && (a--, L *= 2), S += 1 <= a + y ? k / L : k * F(2, 1 - y), 2 <= S * L && (a++, L /= 2), a + y >= l ? (g = 0, a = l) : 1 <= a + y ? (g = (S * L - 1) * F(2, h), a += y) : (g = S * F(2, y - 1) * F(2, h), a = 0)); 8 <= h; c[O + f] = 255 & g, f += T, g /= 256, h -= 8) ;
1171
+ }, m.write = function(c, S, O, i, h, d) {
1172
+ var a, g, L, w = Math.LN2, b = Math.log, n = 8 * d - h - 1, l = (1 << n) - 1, y = l >> 1, k = h === 23 ? F(2, -24) - F(2, -77) : 0, f = i ? 0 : d - 1, T = i ? 1 : -1, P = 0 > S || S === 0 && 0 > 1 / S ? 1 : 0;
1173
+ for (S = U(S), isNaN(S) || S === 1 / 0 ? (g = isNaN(S) ? 1 : 0, a = l) : (a = j(b(S) / w), 1 > S * (L = F(2, -a)) && (a--, L *= 2), S += 1 <= a + y ? k / L : k * F(2, 1 - y), 2 <= S * L && (a++, L /= 2), a + y >= l ? (g = 0, a = l) : 1 <= a + y ? (g = (S * L - 1) * F(2, h), a += y) : (g = S * F(2, y - 1) * F(2, h), a = 0)); 8 <= h; c[O + f] = 255 & g, f += T, g /= 256, h -= 8) ;
1161
1174
  for (a = a << h | g, n += h; 0 < n; c[O + f] = 255 & a, f += T, a /= 256, n -= 8) ;
1162
- c[O + f - T] |= 128 * M;
1175
+ c[O + f - T] |= 128 * P;
1163
1176
  };
1164
1177
  }, {}],
1165
- 10: [function(C, N) {
1166
- N.exports = typeof Object.create == "function" ? function(w, c) {
1167
- c && (w.super_ = c, w.prototype = Object.create(c.prototype, { constructor: {
1168
- value: w,
1178
+ 10: [function(R, M) {
1179
+ M.exports = typeof Object.create == "function" ? function(m, c) {
1180
+ c && (m.super_ = c, m.prototype = Object.create(c.prototype, { constructor: {
1181
+ value: m,
1169
1182
  enumerable: !1,
1170
1183
  writable: !0,
1171
1184
  configurable: !0
1172
1185
  } }));
1173
- } : function(w, c) {
1186
+ } : function(m, c) {
1174
1187
  if (c) {
1175
- w.super_ = c;
1188
+ m.super_ = c;
1176
1189
  var S = function() {
1177
1190
  };
1178
- S.prototype = c.prototype, w.prototype = new S(), w.prototype.constructor = w;
1191
+ S.prototype = c.prototype, m.prototype = new S(), m.prototype.constructor = m;
1179
1192
  }
1180
1193
  };
1181
1194
  }, {}],
1182
- 11: [function(C, N) {
1183
- var w = Math.round;
1195
+ 11: [function(R, M) {
1196
+ var m = Math.round;
1184
1197
  function c(h) {
1185
1198
  if (h += "", !(100 < h.length)) {
1186
1199
  var d = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);
@@ -1191,17 +1204,17 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1191
1204
  }
1192
1205
  }
1193
1206
  function S(h) {
1194
- var d = j(h);
1195
- return 864e5 <= d ? w(h / 864e5) + "d" : 36e5 <= d ? w(h / 36e5) + "h" : 6e4 <= d ? w(h / 6e4) + "m" : 1e3 <= d ? w(h / 1e3) + "s" : h + "ms";
1207
+ var d = U(h);
1208
+ return 864e5 <= d ? m(h / 864e5) + "d" : 36e5 <= d ? m(h / 36e5) + "h" : 6e4 <= d ? m(h / 6e4) + "m" : 1e3 <= d ? m(h / 1e3) + "s" : h + "ms";
1196
1209
  }
1197
1210
  function O(h) {
1198
- var d = j(h);
1211
+ var d = U(h);
1199
1212
  return 864e5 <= d ? i(h, d, 864e5, "day") : 36e5 <= d ? i(h, d, 36e5, "hour") : 6e4 <= d ? i(h, d, 6e4, "minute") : 1e3 <= d ? i(h, d, 1e3, "second") : h + " ms";
1200
1213
  }
1201
1214
  function i(h, d, a, g) {
1202
- return w(h / a) + " " + g + (d >= 1.5 * a ? "s" : "");
1215
+ return m(h / a) + " " + g + (d >= 1.5 * a ? "s" : "");
1203
1216
  }
1204
- N.exports = function(h, d) {
1217
+ M.exports = function(h, d) {
1205
1218
  d = d || {};
1206
1219
  var a = typeof h;
1207
1220
  if (a == "string" && 0 < h.length) return c(h);
@@ -1209,8 +1222,8 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1209
1222
  throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(h));
1210
1223
  };
1211
1224
  }, {}],
1212
- 12: [function(C, N) {
1213
- function w() {
1225
+ 12: [function(R, M) {
1226
+ function m() {
1214
1227
  throw new Error("setTimeout has not been defined");
1215
1228
  }
1216
1229
  function c() {
@@ -1218,7 +1231,7 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1218
1231
  }
1219
1232
  function S(k) {
1220
1233
  if (g === setTimeout) return setTimeout(k, 0);
1221
- if ((g === w || !g) && setTimeout) return g = setTimeout, setTimeout(k, 0);
1234
+ if ((g === m || !g) && setTimeout) return g = setTimeout, setTimeout(k, 0);
1222
1235
  try {
1223
1236
  return g(k, 0);
1224
1237
  } catch {
@@ -1261,12 +1274,12 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1261
1274
  }
1262
1275
  function a() {
1263
1276
  }
1264
- var g, L, _ = N.exports = {};
1277
+ var g, L, w = M.exports = {};
1265
1278
  (function() {
1266
1279
  try {
1267
- g = typeof setTimeout == "function" ? setTimeout : w;
1280
+ g = typeof setTimeout == "function" ? setTimeout : m;
1268
1281
  } catch {
1269
- g = w;
1282
+ g = m;
1270
1283
  }
1271
1284
  try {
1272
1285
  L = typeof clearTimeout == "function" ? clearTimeout : c;
@@ -1275,45 +1288,45 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1275
1288
  }
1276
1289
  })();
1277
1290
  var b, n = [], l = !1, y = -1;
1278
- _.nextTick = function(k) {
1291
+ w.nextTick = function(k) {
1279
1292
  var f = Array(arguments.length - 1);
1280
1293
  if (1 < arguments.length) for (var T = 1; T < arguments.length; T++) f[T - 1] = arguments[T];
1281
1294
  n.push(new d(k, f)), n.length !== 1 || l || S(h);
1282
1295
  }, d.prototype.run = function() {
1283
1296
  this.fun.apply(null, this.array);
1284
- }, _.title = "browser", _.browser = !0, _.env = {}, _.argv = [], _.version = "", _.versions = {}, _.on = a, _.addListener = a, _.once = a, _.off = a, _.removeListener = a, _.removeAllListeners = a, _.emit = a, _.prependListener = a, _.prependOnceListener = a, _.listeners = function() {
1297
+ }, w.title = "browser", w.browser = !0, w.env = {}, w.argv = [], w.version = "", w.versions = {}, w.on = a, w.addListener = a, w.once = a, w.off = a, w.removeListener = a, w.removeAllListeners = a, w.emit = a, w.prependListener = a, w.prependOnceListener = a, w.listeners = function() {
1285
1298
  return [];
1286
- }, _.binding = function() {
1299
+ }, w.binding = function() {
1287
1300
  throw new Error("process.binding is not supported");
1288
- }, _.cwd = function() {
1301
+ }, w.cwd = function() {
1289
1302
  return "/";
1290
- }, _.chdir = function() {
1303
+ }, w.chdir = function() {
1291
1304
  throw new Error("process.chdir is not supported");
1292
- }, _.umask = function() {
1305
+ }, w.umask = function() {
1293
1306
  return 0;
1294
1307
  };
1295
1308
  }, {}],
1296
- 13: [function(C, N) {
1297
- (function(w) {
1309
+ 13: [function(R, M) {
1310
+ (function(m) {
1298
1311
  (function() {
1299
1312
  let c;
1300
- N.exports = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window > "u" ? w : window) : (S) => (c || (c = Promise.resolve())).then(S).catch((O) => setTimeout(() => {
1313
+ M.exports = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window > "u" ? m : window) : (S) => (c || (c = Promise.resolve())).then(S).catch((O) => setTimeout(() => {
1301
1314
  throw O;
1302
1315
  }, 0));
1303
1316
  }).call(this);
1304
1317
  }).call(this, typeof global > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : global);
1305
1318
  }, {}],
1306
- 14: [function(C, N) {
1307
- (function(w, c) {
1319
+ 14: [function(R, M) {
1320
+ (function(m, c) {
1308
1321
  (function() {
1309
1322
  "use strict";
1310
- var S = C("safe-buffer").Buffer, O = c.crypto || c.msCrypto;
1311
- N.exports = O && O.getRandomValues ? function(i, h) {
1323
+ var S = R("safe-buffer").Buffer, O = c.crypto || c.msCrypto;
1324
+ M.exports = O && O.getRandomValues ? function(i, h) {
1312
1325
  if (i > 4294967295) throw new RangeError("requested too many random bytes");
1313
1326
  var d = S.allocUnsafe(i);
1314
1327
  if (0 < i) if (65536 < i) for (var a = 0; a < i; a += 65536) O.getRandomValues(d.slice(a, a + 65536));
1315
1328
  else O.getRandomValues(d);
1316
- return typeof h == "function" ? w.nextTick(function() {
1329
+ return typeof h == "function" ? m.nextTick(function() {
1317
1330
  h(null, d);
1318
1331
  }) : d;
1319
1332
  } : function() {
@@ -1321,34 +1334,34 @@ var xt = 1200, It = 2500, Le = 3e4, Be = (R) => {
1321
1334
  Use Chrome, Firefox or Internet Explorer 11`);
1322
1335
  };
1323
1336
  }).call(this);
1324
- }).call(this, C("_process"), typeof global > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : global);
1337
+ }).call(this, R("_process"), typeof global > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : global);
1325
1338
  }, {
1326
1339
  _process: 12,
1327
1340
  "safe-buffer": 30
1328
1341
  }],
1329
- 15: [function(C, N) {
1342
+ 15: [function(R, M) {
1330
1343
  "use strict";
1331
- function w(a, g) {
1344
+ function m(a, g) {
1332
1345
  a.prototype = Object.create(g.prototype), a.prototype.constructor = a, a.__proto__ = g;
1333
1346
  }
1334
1347
  function c(a, g, L) {
1335
- function _(n, l, y) {
1348
+ function w(n, l, y) {
1336
1349
  return typeof g == "string" ? g : g(n, l, y);
1337
1350
  }
1338
1351
  L || (L = Error);
1339
1352
  var b = (function(n) {
1340
1353
  function l(y, k, f) {
1341
- return n.call(this, _(y, k, f)) || this;
1354
+ return n.call(this, w(y, k, f)) || this;
1342
1355
  }
1343
- return w(l, n), l;
1356
+ return m(l, n), l;
1344
1357
  })(L);
1345
1358
  b.prototype.name = L.name, b.prototype.code = a, d[a] = b;
1346
1359
  }
1347
1360
  function S(a, g) {
1348
1361
  if (Array.isArray(a)) {
1349
1362
  var L = a.length;
1350
- return a = a.map(function(_) {
1351
- return _ + "";
1363
+ return a = a.map(function(w) {
1364
+ return w + "";
1352
1365
  }), 2 < L ? "one of ".concat(g, " ").concat(a.slice(0, L - 1).join(", "), ", or ") + a[L - 1] : L === 2 ? "one of ".concat(g, " ").concat(a[0], " or ").concat(a[1]) : "of ".concat(g, " ").concat(a[0]);
1353
1366
  }
1354
1367
  return "of ".concat(g, " ").concat(a + "");
@@ -1366,13 +1379,13 @@ Use Chrome, Firefox or Internet Explorer 11`);
1366
1379
  c("ERR_INVALID_OPT_VALUE", function(a, g) {
1367
1380
  return 'The value "' + g + '" is invalid for option "' + a + '"';
1368
1381
  }, TypeError), c("ERR_INVALID_ARG_TYPE", function(a, g, L) {
1369
- var _;
1370
- typeof g == "string" && O(g, "not ") ? (_ = "must not be", g = g.replace(/^not /, "")) : _ = "must be";
1382
+ var w;
1383
+ typeof g == "string" && O(g, "not ") ? (w = "must not be", g = g.replace(/^not /, "")) : w = "must be";
1371
1384
  var b;
1372
- if (i(a, " argument")) b = "The ".concat(a, " ").concat(_, " ").concat(S(g, "type"));
1385
+ if (i(a, " argument")) b = "The ".concat(a, " ").concat(w, " ").concat(S(g, "type"));
1373
1386
  else {
1374
1387
  var n = h(a, ".") ? "property" : "argument";
1375
- b = 'The "'.concat(a, '" ').concat(n, " ").concat(_, " ").concat(S(g, "type"));
1388
+ b = 'The "'.concat(a, '" ').concat(n, " ").concat(w, " ").concat(S(g, "type"));
1376
1389
  }
1377
1390
  return b += ". Received type ".concat(typeof L), b;
1378
1391
  }, TypeError), c("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), c("ERR_METHOD_NOT_IMPLEMENTED", function(a) {
@@ -1381,29 +1394,29 @@ Use Chrome, Firefox or Internet Explorer 11`);
1381
1394
  return "Cannot call " + a + " after a stream was destroyed";
1382
1395
  }), c("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), c("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), c("ERR_STREAM_WRITE_AFTER_END", "write after end"), c("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), c("ERR_UNKNOWN_ENCODING", function(a) {
1383
1396
  return "Unknown encoding: " + a;
1384
- }, TypeError), c("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), N.exports.codes = d;
1397
+ }, TypeError), c("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), M.exports.codes = d;
1385
1398
  }, {}],
1386
- 16: [function(C, N) {
1387
- (function(w) {
1399
+ 16: [function(R, M) {
1400
+ (function(m) {
1388
1401
  (function() {
1389
1402
  "use strict";
1390
- function c(_) {
1391
- return this instanceof c ? (h.call(this, _), d.call(this, _), this.allowHalfOpen = !0, void (_ && (_.readable === !1 && (this.readable = !1), _.writable === !1 && (this.writable = !1), _.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", S))))) : new c(_);
1403
+ function c(w) {
1404
+ return this instanceof c ? (h.call(this, w), d.call(this, w), this.allowHalfOpen = !0, void (w && (w.readable === !1 && (this.readable = !1), w.writable === !1 && (this.writable = !1), w.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", S))))) : new c(w);
1392
1405
  }
1393
1406
  function S() {
1394
- this._writableState.ended || w.nextTick(O, this);
1407
+ this._writableState.ended || m.nextTick(O, this);
1395
1408
  }
1396
- function O(_) {
1397
- _.end();
1409
+ function O(w) {
1410
+ w.end();
1398
1411
  }
1399
- var i = Object.keys || function(_) {
1412
+ var i = Object.keys || function(w) {
1400
1413
  var b = [];
1401
- for (var n in _) b.push(n);
1414
+ for (var n in w) b.push(n);
1402
1415
  return b;
1403
1416
  };
1404
- N.exports = c;
1405
- var h = C("./_stream_readable"), d = C("./_stream_writable");
1406
- C("inherits")(c, h);
1417
+ M.exports = c;
1418
+ var h = R("./_stream_readable"), d = R("./_stream_writable");
1419
+ R("inherits")(c, h);
1407
1420
  for (var a, g = i(d.prototype), L = 0; L < g.length; L++) a = g[L], c.prototype[a] || (c.prototype[a] = d.prototype[a]);
1408
1421
  Object.defineProperty(c.prototype, "writableHighWaterMark", {
1409
1422
  enumerable: !1,
@@ -1425,34 +1438,34 @@ Use Chrome, Firefox or Internet Explorer 11`);
1425
1438
  get: function() {
1426
1439
  return this._readableState !== void 0 && this._writableState !== void 0 && this._readableState.destroyed && this._writableState.destroyed;
1427
1440
  },
1428
- set: function(_) {
1429
- this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = _, this._writableState.destroyed = _);
1441
+ set: function(w) {
1442
+ this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = w, this._writableState.destroyed = w);
1430
1443
  }
1431
1444
  });
1432
1445
  }).call(this);
1433
- }).call(this, C("_process"));
1446
+ }).call(this, R("_process"));
1434
1447
  }, {
1435
1448
  "./_stream_readable": 18,
1436
1449
  "./_stream_writable": 20,
1437
1450
  _process: 12,
1438
1451
  inherits: 10
1439
1452
  }],
1440
- 17: [function(C, N) {
1453
+ 17: [function(R, M) {
1441
1454
  "use strict";
1442
- function w(S) {
1443
- return this instanceof w ? void c.call(this, S) : new w(S);
1455
+ function m(S) {
1456
+ return this instanceof m ? void c.call(this, S) : new m(S);
1444
1457
  }
1445
- N.exports = w;
1446
- var c = C("./_stream_transform");
1447
- C("inherits")(w, c), w.prototype._transform = function(S, O, i) {
1458
+ M.exports = m;
1459
+ var c = R("./_stream_transform");
1460
+ R("inherits")(m, c), m.prototype._transform = function(S, O, i) {
1448
1461
  i(null, S);
1449
1462
  };
1450
1463
  }, {
1451
1464
  "./_stream_transform": 19,
1452
1465
  inherits: 10
1453
1466
  }],
1454
- 18: [function(C, N) {
1455
- (function(w, c) {
1467
+ 18: [function(R, M) {
1468
+ (function(m, c) {
1456
1469
  (function() {
1457
1470
  "use strict";
1458
1471
  function S(s) {
@@ -1465,10 +1478,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
1465
1478
  return typeof s.prependListener == "function" ? s.prependListener(o, e) : void (s._events && s._events[o] ? Array.isArray(s._events[o]) ? s._events[o].unshift(e) : s._events[o] = [e, s._events[o]] : s.on(o, e));
1466
1479
  }
1467
1480
  function h(s, o, e) {
1468
- te = te || C("./_stream_duplex"), s = s || {}, typeof e != "boolean" && (e = o instanceof te), this.objectMode = !!s.objectMode, e && (this.objectMode = this.objectMode || !!s.readableObjectMode), this.highWaterMark = _e(this, s, "readableHighWaterMark", e), this.buffer = new Se(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = s.emitClose !== !1, this.autoDestroy = !!s.autoDestroy, this.destroyed = !1, this.defaultEncoding = s.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, s.encoding && (!ae && (ae = C("string_decoder/").StringDecoder), this.decoder = new ae(s.encoding), this.encoding = s.encoding);
1481
+ te = te || R("./_stream_duplex"), s = s || {}, typeof e != "boolean" && (e = o instanceof te), this.objectMode = !!s.objectMode, e && (this.objectMode = this.objectMode || !!s.readableObjectMode), this.highWaterMark = _e(this, s, "readableHighWaterMark", e), this.buffer = new Se(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = s.emitClose !== !1, this.autoDestroy = !!s.autoDestroy, this.destroyed = !1, this.defaultEncoding = s.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, s.encoding && (!ae && (ae = R("string_decoder/").StringDecoder), this.decoder = new ae(s.encoding), this.encoding = s.encoding);
1469
1482
  }
1470
1483
  function d(s) {
1471
- if (te = te || C("./_stream_duplex"), !(this instanceof d)) return new d(s);
1484
+ if (te = te || R("./_stream_duplex"), !(this instanceof d)) return new d(s);
1472
1485
  var o = this instanceof te;
1473
1486
  this._readableState = new h(s, this, o), this.readable = !0, s && (typeof s.read == "function" && (this._read = s.read), typeof s.destroy == "function" && (this._destroy = s.destroy)), oe.call(this);
1474
1487
  }
@@ -1477,11 +1490,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
1477
1490
  var u = s._readableState;
1478
1491
  if (o === null) u.reading = !1, n(s, u);
1479
1492
  else {
1480
- var v;
1481
- if (r || (v = L(u, o)), v) P(s, v);
1493
+ var E;
1494
+ if (r || (E = L(u, o)), E) D(s, E);
1482
1495
  else if (!(u.objectMode || o && 0 < o.length)) t || (u.reading = !1, k(s, u));
1483
- else if (typeof o == "string" || u.objectMode || Object.getPrototypeOf(o) === de.prototype || (o = S(o)), t) u.endEmitted ? P(s, new A()) : g(s, u, o, !0);
1484
- else if (u.ended) P(s, new he());
1496
+ else if (typeof o == "string" || u.objectMode || Object.getPrototypeOf(o) === de.prototype || (o = S(o)), t) u.endEmitted ? D(s, new A()) : g(s, u, o, !0);
1497
+ else if (u.ended) D(s, new he());
1485
1498
  else {
1486
1499
  if (u.destroyed) return !1;
1487
1500
  u.reading = !1, u.decoder && !e ? (o = u.decoder.write(o), u.objectMode || o.length !== 0 ? g(s, u, o, !1) : k(s, u)) : g(s, u, o, !1);
@@ -1500,11 +1513,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
1500
1513
  "Uint8Array"
1501
1514
  ], o)), e;
1502
1515
  }
1503
- function _(s) {
1516
+ function w(s) {
1504
1517
  return 1073741824 <= s ? s = 1073741824 : (s--, s |= s >>> 1, s |= s >>> 2, s |= s >>> 4, s |= s >>> 8, s |= s >>> 16, s++), s;
1505
1518
  }
1506
1519
  function b(s, o) {
1507
- return 0 >= s || o.length === 0 && o.ended ? 0 : o.objectMode ? 1 : s === s ? (s > o.highWaterMark && (o.highWaterMark = _(s)), s <= o.length ? s : o.ended ? o.length : (o.needReadable = !0, 0)) : o.flowing && o.length ? o.buffer.head.data.length : o.length;
1520
+ return 0 >= s || o.length === 0 && o.ended ? 0 : o.objectMode ? 1 : s === s ? (s > o.highWaterMark && (o.highWaterMark = w(s)), s <= o.length ? s : o.ended ? o.length : (o.needReadable = !0, 0)) : o.flowing && o.length ? o.buffer.head.data.length : o.length;
1508
1521
  }
1509
1522
  function n(s, o) {
1510
1523
  if (H("onEofChunk"), !o.ended) {
@@ -1517,14 +1530,14 @@ Use Chrome, Firefox or Internet Explorer 11`);
1517
1530
  }
1518
1531
  function l(s) {
1519
1532
  var o = s._readableState;
1520
- H("emitReadable", o.needReadable, o.emittedReadable), o.needReadable = !1, o.emittedReadable || (H("emitReadable", o.flowing), o.emittedReadable = !0, w.nextTick(y, s));
1533
+ H("emitReadable", o.needReadable, o.emittedReadable), o.needReadable = !1, o.emittedReadable || (H("emitReadable", o.flowing), o.emittedReadable = !0, m.nextTick(y, s));
1521
1534
  }
1522
1535
  function y(s) {
1523
1536
  var o = s._readableState;
1524
1537
  H("emitReadable_", o.destroyed, o.length, o.ended), !o.destroyed && (o.length || o.ended) && (s.emit("readable"), o.emittedReadable = !1), o.needReadable = !o.flowing && !o.ended && o.length <= o.highWaterMark, B(s);
1525
1538
  }
1526
1539
  function k(s, o) {
1527
- o.readingMore || (o.readingMore = !0, w.nextTick(f, s, o));
1540
+ o.readingMore || (o.readingMore = !0, m.nextTick(f, s, o));
1528
1541
  }
1529
1542
  function f(s, o) {
1530
1543
  for (; !o.reading && !o.ended && (o.length < o.highWaterMark || o.flowing && o.length === 0); ) {
@@ -1539,15 +1552,15 @@ Use Chrome, Firefox or Internet Explorer 11`);
1539
1552
  H("pipeOnDrain", o.awaitDrain), o.awaitDrain && o.awaitDrain--, o.awaitDrain === 0 && Ee(s, "data") && (o.flowing = !0, B(s));
1540
1553
  };
1541
1554
  }
1542
- function M(s) {
1555
+ function P(s) {
1543
1556
  var o = s._readableState;
1544
1557
  o.readableListening = 0 < s.listenerCount("readable"), o.resumeScheduled && !o.paused ? o.flowing = !0 : 0 < s.listenerCount("data") && s.resume();
1545
1558
  }
1546
1559
  function p(s) {
1547
1560
  H("readable nexttick read 0"), s.read(0);
1548
1561
  }
1549
- function m(s, o) {
1550
- o.resumeScheduled || (o.resumeScheduled = !0, w.nextTick(I, s, o));
1562
+ function _(s, o) {
1563
+ o.resumeScheduled || (o.resumeScheduled = !0, m.nextTick(I, s, o));
1551
1564
  }
1552
1565
  function I(s, o) {
1553
1566
  H("resume", o.reading), o.reading || s.read(0), o.resumeScheduled = !1, s.emit("resume"), B(s), o.flowing && !o.reading && s.read(0);
@@ -1563,7 +1576,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
1563
1576
  }
1564
1577
  function z(s) {
1565
1578
  var o = s._readableState;
1566
- H("endReadable", o.endEmitted), o.endEmitted || (o.ended = !0, w.nextTick(K, o, s));
1579
+ H("endReadable", o.endEmitted), o.endEmitted || (o.ended = !0, m.nextTick(K, o, s));
1567
1580
  }
1568
1581
  function K(s, o) {
1569
1582
  if (H("endReadableNT", s.endEmitted, s.length), !s.endEmitted && s.length === 0 && (s.endEmitted = !0, o.readable = !1, o.emit("end"), s.autoDestroy)) {
@@ -1575,20 +1588,20 @@ Use Chrome, Firefox or Internet Explorer 11`);
1575
1588
  for (var e = 0, t = s.length; e < t; e++) if (s[e] === o) return e;
1576
1589
  return -1;
1577
1590
  }
1578
- N.exports = d;
1591
+ M.exports = d;
1579
1592
  var te;
1580
1593
  d.ReadableState = h;
1581
1594
  var H;
1582
- C("events").EventEmitter;
1595
+ R("events").EventEmitter;
1583
1596
  var Ee = function(s, o) {
1584
1597
  return s.listeners(o).length;
1585
- }, oe = C("./internal/streams/stream"), de = C("buffer").Buffer, J = c.Uint8Array || function() {
1586
- }, Q = C("util");
1598
+ }, oe = R("./internal/streams/stream"), de = R("buffer").Buffer, J = c.Uint8Array || function() {
1599
+ }, Q = R("util");
1587
1600
  H = Q && Q.debuglog ? Q.debuglog("stream") : function() {
1588
1601
  };
1589
- var ae, pe, ge, Se = C("./internal/streams/buffer_list"), me = C("./internal/streams/destroy"), _e = C("./internal/streams/state").getHighWaterMark, ye = C("../errors").codes, ce = ye.ERR_INVALID_ARG_TYPE, he = ye.ERR_STREAM_PUSH_AFTER_EOF, E = ye.ERR_METHOD_NOT_IMPLEMENTED, A = ye.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
1590
- C("inherits")(d, oe);
1591
- var P = me.errorOrDestroy, W = [
1602
+ var ae, pe, ge, Se = R("./internal/streams/buffer_list"), me = R("./internal/streams/destroy"), _e = R("./internal/streams/state").getHighWaterMark, ye = R("../errors").codes, ce = ye.ERR_INVALID_ARG_TYPE, he = ye.ERR_STREAM_PUSH_AFTER_EOF, C = ye.ERR_METHOD_NOT_IMPLEMENTED, A = ye.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
1603
+ R("inherits")(d, oe);
1604
+ var D = me.errorOrDestroy, W = [
1592
1605
  "error",
1593
1606
  "close",
1594
1607
  "destroy",
@@ -1613,7 +1626,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
1613
1626
  }, d.prototype.isPaused = function() {
1614
1627
  return this._readableState.flowing === !1;
1615
1628
  }, d.prototype.setEncoding = function(s) {
1616
- ae || (ae = C("string_decoder/").StringDecoder);
1629
+ ae || (ae = R("string_decoder/").StringDecoder);
1617
1630
  var o = new ae(s);
1618
1631
  this._readableState.decoder = o, this._readableState.encoding = this._readableState.decoder.encoding;
1619
1632
  for (var e = this._readableState.buffer.head, t = ""; e !== null; ) t += o.write(e.data), e = e.next;
@@ -1628,7 +1641,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
1628
1641
  var r;
1629
1642
  return r = 0 < s ? V(s, o) : null, r === null ? (o.needReadable = o.length <= o.highWaterMark, s = 0) : (o.length -= s, o.awaitDrain = 0), o.length === 0 && (!o.ended && (o.needReadable = !0), e !== s && o.ended && z(this)), r !== null && this.emit("data", r), r;
1630
1643
  }, d.prototype._read = function() {
1631
- P(this, new E("_read()"));
1644
+ D(this, new C("_read()"));
1632
1645
  }, d.prototype.pipe = function(s, o) {
1633
1646
  function e(le, fe) {
1634
1647
  H("onunpipe"), le === $ && fe && fe.hasUnpiped === !1 && (fe.hasUnpiped = !0, r());
@@ -1637,21 +1650,21 @@ Use Chrome, Firefox or Internet Explorer 11`);
1637
1650
  H("onend"), s.end();
1638
1651
  }
1639
1652
  function r() {
1640
- H("cleanup"), s.removeListener("close", x), s.removeListener("finish", q), s.removeListener("drain", ee), s.removeListener("error", v), s.removeListener("unpipe", e), $.removeListener("end", t), $.removeListener("end", G), $.removeListener("data", u), we = !0, Y.awaitDrain && (!s._writableState || s._writableState.needDrain) && ee();
1653
+ H("cleanup"), s.removeListener("close", N), s.removeListener("finish", q), s.removeListener("drain", ee), s.removeListener("error", E), s.removeListener("unpipe", e), $.removeListener("end", t), $.removeListener("end", G), $.removeListener("data", u), ve = !0, Y.awaitDrain && (!s._writableState || s._writableState.needDrain) && ee();
1641
1654
  }
1642
1655
  function u(le) {
1643
1656
  H("ondata");
1644
1657
  var fe = s.write(le);
1645
- H("dest.write", fe), fe === !1 && ((Y.pipesCount === 1 && Y.pipes === s || 1 < Y.pipesCount && Z(Y.pipes, s) !== -1) && !we && (H("false write response, pause", Y.awaitDrain), Y.awaitDrain++), $.pause());
1658
+ H("dest.write", fe), fe === !1 && ((Y.pipesCount === 1 && Y.pipes === s || 1 < Y.pipesCount && Z(Y.pipes, s) !== -1) && !ve && (H("false write response, pause", Y.awaitDrain), Y.awaitDrain++), $.pause());
1646
1659
  }
1647
- function v(le) {
1648
- H("onerror", le), G(), s.removeListener("error", v), Ee(s, "error") === 0 && P(s, le);
1660
+ function E(le) {
1661
+ H("onerror", le), G(), s.removeListener("error", E), Ee(s, "error") === 0 && D(s, le);
1649
1662
  }
1650
- function x() {
1663
+ function N() {
1651
1664
  s.removeListener("finish", q), G();
1652
1665
  }
1653
1666
  function q() {
1654
- H("onfinish"), s.removeListener("close", x), G();
1667
+ H("onfinish"), s.removeListener("close", N), G();
1655
1668
  }
1656
1669
  function G() {
1657
1670
  H("unpipe"), $.unpipe(s);
@@ -1668,12 +1681,12 @@ Use Chrome, Firefox or Internet Explorer 11`);
1668
1681
  Y.pipes.push(s);
1669
1682
  }
1670
1683
  Y.pipesCount += 1, H("pipe count=%d opts=%j", Y.pipesCount, o);
1671
- var X = (!o || o.end !== !1) && s !== w.stdout && s !== w.stderr ? t : G;
1672
- Y.endEmitted ? w.nextTick(X) : $.once("end", X), s.on("unpipe", e);
1684
+ var X = (!o || o.end !== !1) && s !== m.stdout && s !== m.stderr ? t : G;
1685
+ Y.endEmitted ? m.nextTick(X) : $.once("end", X), s.on("unpipe", e);
1673
1686
  var ee = T($);
1674
1687
  s.on("drain", ee);
1675
- var we = !1;
1676
- return $.on("data", u), i(s, "error", v), s.once("close", x), s.once("finish", q), s.emit("pipe", $), Y.flowing || (H("pipe resume"), $.resume()), s;
1688
+ var ve = !1;
1689
+ return $.on("data", u), i(s, "error", E), s.once("close", N), s.once("finish", q), s.emit("pipe", $), Y.flowing || (H("pipe resume"), $.resume()), s;
1677
1690
  }, d.prototype.unpipe = function(s) {
1678
1691
  var o = this._readableState, e = { hasUnpiped: !1 };
1679
1692
  if (o.pipesCount === 0) return this;
@@ -1684,43 +1697,43 @@ Use Chrome, Firefox or Internet Explorer 11`);
1684
1697
  for (var u = 0; u < r; u++) t[u].emit("unpipe", this, { hasUnpiped: !1 });
1685
1698
  return this;
1686
1699
  }
1687
- var v = Z(o.pipes, s);
1688
- return v === -1 ? this : (o.pipes.splice(v, 1), o.pipesCount -= 1, o.pipesCount === 1 && (o.pipes = o.pipes[0]), s.emit("unpipe", this, e), this);
1700
+ var E = Z(o.pipes, s);
1701
+ return E === -1 ? this : (o.pipes.splice(E, 1), o.pipesCount -= 1, o.pipesCount === 1 && (o.pipes = o.pipes[0]), s.emit("unpipe", this, e), this);
1689
1702
  }, d.prototype.on = function(s, o) {
1690
1703
  var e = oe.prototype.on.call(this, s, o), t = this._readableState;
1691
- return s === "data" ? (t.readableListening = 0 < this.listenerCount("readable"), t.flowing !== !1 && this.resume()) : s == "readable" && !t.endEmitted && !t.readableListening && (t.readableListening = t.needReadable = !0, t.flowing = !1, t.emittedReadable = !1, H("on readable", t.length, t.reading), t.length ? l(this) : !t.reading && w.nextTick(p, this)), e;
1704
+ return s === "data" ? (t.readableListening = 0 < this.listenerCount("readable"), t.flowing !== !1 && this.resume()) : s == "readable" && !t.endEmitted && !t.readableListening && (t.readableListening = t.needReadable = !0, t.flowing = !1, t.emittedReadable = !1, H("on readable", t.length, t.reading), t.length ? l(this) : !t.reading && m.nextTick(p, this)), e;
1692
1705
  }, d.prototype.addListener = d.prototype.on, d.prototype.removeListener = function(s, o) {
1693
1706
  var e = oe.prototype.removeListener.call(this, s, o);
1694
- return s === "readable" && w.nextTick(M, this), e;
1707
+ return s === "readable" && m.nextTick(P, this), e;
1695
1708
  }, d.prototype.removeAllListeners = function(s) {
1696
1709
  var o = oe.prototype.removeAllListeners.apply(this, arguments);
1697
- return (s === "readable" || s === void 0) && w.nextTick(M, this), o;
1710
+ return (s === "readable" || s === void 0) && m.nextTick(P, this), o;
1698
1711
  }, d.prototype.resume = function() {
1699
1712
  var s = this._readableState;
1700
- return s.flowing || (H("resume"), s.flowing = !s.readableListening, m(this, s)), s.paused = !1, this;
1713
+ return s.flowing || (H("resume"), s.flowing = !s.readableListening, _(this, s)), s.paused = !1, this;
1701
1714
  }, d.prototype.pause = function() {
1702
1715
  return H("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (H("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
1703
1716
  }, d.prototype.wrap = function(s) {
1704
1717
  var o = this, e = this._readableState, t = !1;
1705
1718
  for (var r in s.on("end", function() {
1706
1719
  if (H("wrapped end"), e.decoder && !e.ended) {
1707
- var v = e.decoder.end();
1708
- v && v.length && o.push(v);
1720
+ var E = e.decoder.end();
1721
+ E && E.length && o.push(E);
1709
1722
  }
1710
1723
  o.push(null);
1711
- }), s.on("data", function(v) {
1712
- H("wrapped data"), e.decoder && (v = e.decoder.write(v)), !(e.objectMode && v == null) && (e.objectMode || v && v.length) && (o.push(v) || (t = !0, s.pause()));
1713
- }), s) this[r] === void 0 && typeof s[r] == "function" && (this[r] = /* @__PURE__ */ (function(v) {
1724
+ }), s.on("data", function(E) {
1725
+ H("wrapped data"), e.decoder && (E = e.decoder.write(E)), !(e.objectMode && E == null) && (e.objectMode || E && E.length) && (o.push(E) || (t = !0, s.pause()));
1726
+ }), s) this[r] === void 0 && typeof s[r] == "function" && (this[r] = /* @__PURE__ */ (function(E) {
1714
1727
  return function() {
1715
- return s[v].apply(s, arguments);
1728
+ return s[E].apply(s, arguments);
1716
1729
  };
1717
1730
  })(r));
1718
1731
  for (var u = 0; u < W.length; u++) s.on(W[u], this.emit.bind(this, W[u]));
1719
- return this._read = function(v) {
1720
- H("wrapped _read", v), t && (t = !1, s.resume());
1732
+ return this._read = function(E) {
1733
+ H("wrapped _read", E), t && (t = !1, s.resume());
1721
1734
  }, this;
1722
1735
  }, typeof Symbol == "function" && (d.prototype[Symbol.asyncIterator] = function() {
1723
- return pe === void 0 && (pe = C("./internal/streams/async_iterator")), pe(this);
1736
+ return pe === void 0 && (pe = R("./internal/streams/async_iterator")), pe(this);
1724
1737
  }), Object.defineProperty(d.prototype, "readableHighWaterMark", {
1725
1738
  enumerable: !1,
1726
1739
  get: function() {
@@ -1745,10 +1758,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
1745
1758
  return this._readableState.length;
1746
1759
  }
1747
1760
  }), typeof Symbol == "function" && (d.from = function(s, o) {
1748
- return ge === void 0 && (ge = C("./internal/streams/from")), ge(d, s, o);
1761
+ return ge === void 0 && (ge = R("./internal/streams/from")), ge(d, s, o);
1749
1762
  });
1750
1763
  }).call(this);
1751
- }).call(this, C("_process"), typeof global > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : global);
1764
+ }).call(this, R("_process"), typeof global > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : global);
1752
1765
  }, {
1753
1766
  "../errors": 15,
1754
1767
  "./_stream_duplex": 16,
@@ -1765,56 +1778,56 @@ Use Chrome, Firefox or Internet Explorer 11`);
1765
1778
  "string_decoder/": 31,
1766
1779
  util: 2
1767
1780
  }],
1768
- 19: [function(C, N) {
1781
+ 19: [function(R, M) {
1769
1782
  "use strict";
1770
- function w(_, b) {
1783
+ function m(w, b) {
1771
1784
  var n = this._transformState;
1772
1785
  n.transforming = !1;
1773
1786
  var l = n.writecb;
1774
1787
  if (l === null) return this.emit("error", new d());
1775
- n.writechunk = null, n.writecb = null, b != null && this.push(b), l(_);
1788
+ n.writechunk = null, n.writecb = null, b != null && this.push(b), l(w);
1776
1789
  var y = this._readableState;
1777
1790
  y.reading = !1, (y.needReadable || y.length < y.highWaterMark) && this._read(y.highWaterMark);
1778
1791
  }
1779
- function c(_) {
1780
- return this instanceof c ? (L.call(this, _), this._transformState = {
1781
- afterTransform: w.bind(this),
1792
+ function c(w) {
1793
+ return this instanceof c ? (L.call(this, w), this._transformState = {
1794
+ afterTransform: m.bind(this),
1782
1795
  needTransform: !1,
1783
1796
  transforming: !1,
1784
1797
  writecb: null,
1785
1798
  writechunk: null,
1786
1799
  writeencoding: null
1787
- }, this._readableState.needReadable = !0, this._readableState.sync = !1, _ && (typeof _.transform == "function" && (this._transform = _.transform), typeof _.flush == "function" && (this._flush = _.flush)), void this.on("prefinish", S)) : new c(_);
1800
+ }, this._readableState.needReadable = !0, this._readableState.sync = !1, w && (typeof w.transform == "function" && (this._transform = w.transform), typeof w.flush == "function" && (this._flush = w.flush)), void this.on("prefinish", S)) : new c(w);
1788
1801
  }
1789
1802
  function S() {
1790
- var _ = this;
1803
+ var w = this;
1791
1804
  typeof this._flush != "function" || this._readableState.destroyed ? O(this, null, null) : this._flush(function(b, n) {
1792
- O(_, b, n);
1805
+ O(w, b, n);
1793
1806
  });
1794
1807
  }
1795
- function O(_, b, n) {
1796
- if (b) return _.emit("error", b);
1797
- if (n != null && _.push(n), _._writableState.length) throw new g();
1798
- if (_._transformState.transforming) throw new a();
1799
- return _.push(null);
1800
- }
1801
- N.exports = c;
1802
- var i = C("../errors").codes, h = i.ERR_METHOD_NOT_IMPLEMENTED, d = i.ERR_MULTIPLE_CALLBACK, a = i.ERR_TRANSFORM_ALREADY_TRANSFORMING, g = i.ERR_TRANSFORM_WITH_LENGTH_0, L = C("./_stream_duplex");
1803
- C("inherits")(c, L), c.prototype.push = function(_, b) {
1804
- return this._transformState.needTransform = !1, L.prototype.push.call(this, _, b);
1805
- }, c.prototype._transform = function(_, b, n) {
1808
+ function O(w, b, n) {
1809
+ if (b) return w.emit("error", b);
1810
+ if (n != null && w.push(n), w._writableState.length) throw new g();
1811
+ if (w._transformState.transforming) throw new a();
1812
+ return w.push(null);
1813
+ }
1814
+ M.exports = c;
1815
+ var i = R("../errors").codes, h = i.ERR_METHOD_NOT_IMPLEMENTED, d = i.ERR_MULTIPLE_CALLBACK, a = i.ERR_TRANSFORM_ALREADY_TRANSFORMING, g = i.ERR_TRANSFORM_WITH_LENGTH_0, L = R("./_stream_duplex");
1816
+ R("inherits")(c, L), c.prototype.push = function(w, b) {
1817
+ return this._transformState.needTransform = !1, L.prototype.push.call(this, w, b);
1818
+ }, c.prototype._transform = function(w, b, n) {
1806
1819
  n(new h("_transform()"));
1807
- }, c.prototype._write = function(_, b, n) {
1820
+ }, c.prototype._write = function(w, b, n) {
1808
1821
  var l = this._transformState;
1809
- if (l.writecb = n, l.writechunk = _, l.writeencoding = b, !l.transforming) {
1822
+ if (l.writecb = n, l.writechunk = w, l.writeencoding = b, !l.transforming) {
1810
1823
  var y = this._readableState;
1811
1824
  (l.needTransform || y.needReadable || y.length < y.highWaterMark) && this._read(y.highWaterMark);
1812
1825
  }
1813
1826
  }, c.prototype._read = function() {
1814
- var _ = this._transformState;
1815
- _.writechunk === null || _.transforming ? _.needTransform = !0 : (_.transforming = !0, this._transform(_.writechunk, _.writeencoding, _.afterTransform));
1816
- }, c.prototype._destroy = function(_, b) {
1817
- L.prototype._destroy.call(this, _, function(n) {
1827
+ var w = this._transformState;
1828
+ w.writechunk === null || w.transforming ? w.needTransform = !0 : (w.transforming = !0, this._transform(w.writechunk, w.writeencoding, w.afterTransform));
1829
+ }, c.prototype._destroy = function(w, b) {
1830
+ L.prototype._destroy.call(this, w, function(n) {
1818
1831
  b(n);
1819
1832
  });
1820
1833
  };
@@ -1823,51 +1836,51 @@ Use Chrome, Firefox or Internet Explorer 11`);
1823
1836
  "./_stream_duplex": 16,
1824
1837
  inherits: 10
1825
1838
  }],
1826
- 20: [function(C, N) {
1827
- (function(w, c) {
1839
+ 20: [function(R, M) {
1840
+ (function(m, c) {
1828
1841
  (function() {
1829
1842
  "use strict";
1830
- function S(E) {
1843
+ function S(C) {
1831
1844
  var A = this;
1832
1845
  this.next = null, this.entry = null, this.finish = function() {
1833
- z(A, E);
1846
+ z(A, C);
1834
1847
  };
1835
1848
  }
1836
- function O(E) {
1837
- return H.from(E);
1849
+ function O(C) {
1850
+ return H.from(C);
1838
1851
  }
1839
- function i(E) {
1840
- return H.isBuffer(E) || E instanceof Ee;
1852
+ function i(C) {
1853
+ return H.isBuffer(C) || C instanceof Ee;
1841
1854
  }
1842
1855
  function h() {
1843
1856
  }
1844
- function d(E, A, P) {
1845
- K = K || C("./_stream_duplex"), E = E || {}, typeof P != "boolean" && (P = A instanceof K), this.objectMode = !!E.objectMode, P && (this.objectMode = this.objectMode || !!E.writableObjectMode), this.highWaterMark = de(this, E, "writableHighWaterMark", P), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
1846
- var W = E.decodeStrings === !1;
1847
- this.decodeStrings = !W, this.defaultEncoding = E.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(s) {
1857
+ function d(C, A, D) {
1858
+ K = K || R("./_stream_duplex"), C = C || {}, typeof D != "boolean" && (D = A instanceof K), this.objectMode = !!C.objectMode, D && (this.objectMode = this.objectMode || !!C.writableObjectMode), this.highWaterMark = de(this, C, "writableHighWaterMark", D), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
1859
+ var W = C.decodeStrings === !1;
1860
+ this.decodeStrings = !W, this.defaultEncoding = C.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(s) {
1848
1861
  k(A, s);
1849
- }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = E.emitClose !== !1, this.autoDestroy = !!E.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new S(this);
1862
+ }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = C.emitClose !== !1, this.autoDestroy = !!C.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new S(this);
1850
1863
  }
1851
- function a(E) {
1852
- K = K || C("./_stream_duplex");
1864
+ function a(C) {
1865
+ K = K || R("./_stream_duplex");
1853
1866
  var A = this instanceof K;
1854
- return A || he.call(a, this) ? (this._writableState = new d(E, this, A), this.writable = !0, E && (typeof E.write == "function" && (this._write = E.write), typeof E.writev == "function" && (this._writev = E.writev), typeof E.destroy == "function" && (this._destroy = E.destroy), typeof E.final == "function" && (this._final = E.final)), void te.call(this)) : new a(E);
1867
+ return A || he.call(a, this) ? (this._writableState = new d(C, this, A), this.writable = !0, C && (typeof C.write == "function" && (this._write = C.write), typeof C.writev == "function" && (this._writev = C.writev), typeof C.destroy == "function" && (this._destroy = C.destroy), typeof C.final == "function" && (this._final = C.final)), void te.call(this)) : new a(C);
1855
1868
  }
1856
- function g(E, A) {
1857
- var P = new _e();
1858
- ce(E, P), w.nextTick(A, P);
1869
+ function g(C, A) {
1870
+ var D = new _e();
1871
+ ce(C, D), m.nextTick(A, D);
1859
1872
  }
1860
- function L(E, A, P, W) {
1873
+ function L(C, A, D, W) {
1861
1874
  var s;
1862
- return P === null ? s = new me() : typeof P != "string" && !A.objectMode && (s = new Q("chunk", ["string", "Buffer"], P)), !s || (ce(E, s), w.nextTick(W, s), !1);
1875
+ return D === null ? s = new me() : typeof D != "string" && !A.objectMode && (s = new Q("chunk", ["string", "Buffer"], D)), !s || (ce(C, s), m.nextTick(W, s), !1);
1863
1876
  }
1864
- function _(E, A, P) {
1865
- return E.objectMode || E.decodeStrings === !1 || typeof A != "string" || (A = H.from(A, P)), A;
1877
+ function w(C, A, D) {
1878
+ return C.objectMode || C.decodeStrings === !1 || typeof A != "string" || (A = H.from(A, D)), A;
1866
1879
  }
1867
- function b(E, A, P, W, s, o) {
1868
- if (!P) {
1869
- var e = _(A, W, s);
1870
- W !== e && (P = !0, s = "buffer", W = e);
1880
+ function b(C, A, D, W, s, o) {
1881
+ if (!D) {
1882
+ var e = w(A, W, s);
1883
+ W !== e && (D = !0, s = "buffer", W = e);
1871
1884
  }
1872
1885
  var t = A.objectMode ? 1 : W.length;
1873
1886
  A.length += t;
@@ -1877,91 +1890,91 @@ Use Chrome, Firefox or Internet Explorer 11`);
1877
1890
  A.lastBufferedRequest = {
1878
1891
  chunk: W,
1879
1892
  encoding: s,
1880
- isBuf: P,
1893
+ isBuf: D,
1881
1894
  callback: o,
1882
1895
  next: null
1883
1896
  }, u ? u.next = A.lastBufferedRequest : A.bufferedRequest = A.lastBufferedRequest, A.bufferedRequestCount += 1;
1884
- } else n(E, A, !1, t, W, s, o);
1897
+ } else n(C, A, !1, t, W, s, o);
1885
1898
  return r;
1886
1899
  }
1887
- function n(E, A, P, W, s, o, e) {
1888
- A.writelen = W, A.writecb = e, A.writing = !0, A.sync = !0, A.destroyed ? A.onwrite(new Se("write")) : P ? E._writev(s, A.onwrite) : E._write(s, o, A.onwrite), A.sync = !1;
1900
+ function n(C, A, D, W, s, o, e) {
1901
+ A.writelen = W, A.writecb = e, A.writing = !0, A.sync = !0, A.destroyed ? A.onwrite(new Se("write")) : D ? C._writev(s, A.onwrite) : C._write(s, o, A.onwrite), A.sync = !1;
1889
1902
  }
1890
- function l(E, A, P, W, s) {
1891
- --A.pendingcb, P ? (w.nextTick(s, W), w.nextTick(B, E, A), E._writableState.errorEmitted = !0, ce(E, W)) : (s(W), E._writableState.errorEmitted = !0, ce(E, W), B(E, A));
1903
+ function l(C, A, D, W, s) {
1904
+ --A.pendingcb, D ? (m.nextTick(s, W), m.nextTick(B, C, A), C._writableState.errorEmitted = !0, ce(C, W)) : (s(W), C._writableState.errorEmitted = !0, ce(C, W), B(C, A));
1892
1905
  }
1893
- function y(E) {
1894
- E.writing = !1, E.writecb = null, E.length -= E.writelen, E.writelen = 0;
1906
+ function y(C) {
1907
+ C.writing = !1, C.writecb = null, C.length -= C.writelen, C.writelen = 0;
1895
1908
  }
1896
- function k(E, A) {
1897
- var P = E._writableState, W = P.sync, s = P.writecb;
1909
+ function k(C, A) {
1910
+ var D = C._writableState, W = D.sync, s = D.writecb;
1898
1911
  if (typeof s != "function") throw new pe();
1899
- if (y(P), A) l(E, P, W, A, s);
1912
+ if (y(D), A) l(C, D, W, A, s);
1900
1913
  else {
1901
- var o = p(P) || E.destroyed;
1902
- o || P.corked || P.bufferProcessing || !P.bufferedRequest || M(E, P), W ? w.nextTick(f, E, P, o, s) : f(E, P, o, s);
1914
+ var o = p(D) || C.destroyed;
1915
+ o || D.corked || D.bufferProcessing || !D.bufferedRequest || P(C, D), W ? m.nextTick(f, C, D, o, s) : f(C, D, o, s);
1903
1916
  }
1904
1917
  }
1905
- function f(E, A, P, W) {
1906
- P || T(E, A), A.pendingcb--, W(), B(E, A);
1918
+ function f(C, A, D, W) {
1919
+ D || T(C, A), A.pendingcb--, W(), B(C, A);
1907
1920
  }
1908
- function T(E, A) {
1909
- A.length === 0 && A.needDrain && (A.needDrain = !1, E.emit("drain"));
1921
+ function T(C, A) {
1922
+ A.length === 0 && A.needDrain && (A.needDrain = !1, C.emit("drain"));
1910
1923
  }
1911
- function M(E, A) {
1924
+ function P(C, A) {
1912
1925
  A.bufferProcessing = !0;
1913
- var P = A.bufferedRequest;
1914
- if (E._writev && P && P.next) {
1926
+ var D = A.bufferedRequest;
1927
+ if (C._writev && D && D.next) {
1915
1928
  var W = A.bufferedRequestCount, s = Array(W), o = A.corkedRequestsFree;
1916
- o.entry = P;
1917
- for (var e = 0, t = !0; P; ) s[e] = P, P.isBuf || (t = !1), P = P.next, e += 1;
1918
- s.allBuffers = t, n(E, A, !0, A.length, s, "", o.finish), A.pendingcb++, A.lastBufferedRequest = null, o.next ? (A.corkedRequestsFree = o.next, o.next = null) : A.corkedRequestsFree = new S(A), A.bufferedRequestCount = 0;
1929
+ o.entry = D;
1930
+ for (var e = 0, t = !0; D; ) s[e] = D, D.isBuf || (t = !1), D = D.next, e += 1;
1931
+ s.allBuffers = t, n(C, A, !0, A.length, s, "", o.finish), A.pendingcb++, A.lastBufferedRequest = null, o.next ? (A.corkedRequestsFree = o.next, o.next = null) : A.corkedRequestsFree = new S(A), A.bufferedRequestCount = 0;
1919
1932
  } else {
1920
- for (; P; ) {
1921
- var r = P.chunk, u = P.encoding, v = P.callback;
1922
- if (n(E, A, !1, A.objectMode ? 1 : r.length, r, u, v), P = P.next, A.bufferedRequestCount--, A.writing) break;
1933
+ for (; D; ) {
1934
+ var r = D.chunk, u = D.encoding, E = D.callback;
1935
+ if (n(C, A, !1, A.objectMode ? 1 : r.length, r, u, E), D = D.next, A.bufferedRequestCount--, A.writing) break;
1923
1936
  }
1924
- P === null && (A.lastBufferedRequest = null);
1937
+ D === null && (A.lastBufferedRequest = null);
1925
1938
  }
1926
- A.bufferedRequest = P, A.bufferProcessing = !1;
1939
+ A.bufferedRequest = D, A.bufferProcessing = !1;
1927
1940
  }
1928
- function p(E) {
1929
- return E.ending && E.length === 0 && E.bufferedRequest === null && !E.finished && !E.writing;
1941
+ function p(C) {
1942
+ return C.ending && C.length === 0 && C.bufferedRequest === null && !C.finished && !C.writing;
1930
1943
  }
1931
- function m(E, A) {
1932
- E._final(function(P) {
1933
- A.pendingcb--, P && ce(E, P), A.prefinished = !0, E.emit("prefinish"), B(E, A);
1944
+ function _(C, A) {
1945
+ C._final(function(D) {
1946
+ A.pendingcb--, D && ce(C, D), A.prefinished = !0, C.emit("prefinish"), B(C, A);
1934
1947
  });
1935
1948
  }
1936
- function I(E, A) {
1937
- A.prefinished || A.finalCalled || (typeof E._final != "function" || A.destroyed ? (A.prefinished = !0, E.emit("prefinish")) : (A.pendingcb++, A.finalCalled = !0, w.nextTick(m, E, A)));
1949
+ function I(C, A) {
1950
+ A.prefinished || A.finalCalled || (typeof C._final != "function" || A.destroyed ? (A.prefinished = !0, C.emit("prefinish")) : (A.pendingcb++, A.finalCalled = !0, m.nextTick(_, C, A)));
1938
1951
  }
1939
- function B(E, A) {
1940
- var P = p(A);
1941
- if (P && (I(E, A), A.pendingcb === 0 && (A.finished = !0, E.emit("finish"), A.autoDestroy))) {
1942
- var W = E._readableState;
1943
- (!W || W.autoDestroy && W.endEmitted) && E.destroy();
1952
+ function B(C, A) {
1953
+ var D = p(A);
1954
+ if (D && (I(C, A), A.pendingcb === 0 && (A.finished = !0, C.emit("finish"), A.autoDestroy))) {
1955
+ var W = C._readableState;
1956
+ (!W || W.autoDestroy && W.endEmitted) && C.destroy();
1944
1957
  }
1945
- return P;
1958
+ return D;
1946
1959
  }
1947
- function V(E, A, P) {
1948
- A.ending = !0, B(E, A), P && (A.finished ? w.nextTick(P) : E.once("finish", P)), A.ended = !0, E.writable = !1;
1960
+ function V(C, A, D) {
1961
+ A.ending = !0, B(C, A), D && (A.finished ? m.nextTick(D) : C.once("finish", D)), A.ended = !0, C.writable = !1;
1949
1962
  }
1950
- function z(E, A, P) {
1951
- var W = E.entry;
1952
- for (E.entry = null; W; ) {
1963
+ function z(C, A, D) {
1964
+ var W = C.entry;
1965
+ for (C.entry = null; W; ) {
1953
1966
  var s = W.callback;
1954
- A.pendingcb--, s(P), W = W.next;
1967
+ A.pendingcb--, s(D), W = W.next;
1955
1968
  }
1956
- A.corkedRequestsFree.next = E;
1969
+ A.corkedRequestsFree.next = C;
1957
1970
  }
1958
- N.exports = a;
1971
+ M.exports = a;
1959
1972
  var K;
1960
1973
  a.WritableState = d;
1961
- var Z = { deprecate: C("util-deprecate") }, te = C("./internal/streams/stream"), H = C("buffer").Buffer, Ee = c.Uint8Array || function() {
1962
- }, oe = C("./internal/streams/destroy"), de = C("./internal/streams/state").getHighWaterMark, J = C("../errors").codes, Q = J.ERR_INVALID_ARG_TYPE, ae = J.ERR_METHOD_NOT_IMPLEMENTED, pe = J.ERR_MULTIPLE_CALLBACK, ge = J.ERR_STREAM_CANNOT_PIPE, Se = J.ERR_STREAM_DESTROYED, me = J.ERR_STREAM_NULL_VALUES, _e = J.ERR_STREAM_WRITE_AFTER_END, ye = J.ERR_UNKNOWN_ENCODING, ce = oe.errorOrDestroy;
1963
- C("inherits")(a, te), d.prototype.getBuffer = function() {
1964
- for (var E = this.bufferedRequest, A = []; E; ) A.push(E), E = E.next;
1974
+ var Z = { deprecate: R("util-deprecate") }, te = R("./internal/streams/stream"), H = R("buffer").Buffer, Ee = c.Uint8Array || function() {
1975
+ }, oe = R("./internal/streams/destroy"), de = R("./internal/streams/state").getHighWaterMark, J = R("../errors").codes, Q = J.ERR_INVALID_ARG_TYPE, ae = J.ERR_METHOD_NOT_IMPLEMENTED, pe = J.ERR_MULTIPLE_CALLBACK, ge = J.ERR_STREAM_CANNOT_PIPE, Se = J.ERR_STREAM_DESTROYED, me = J.ERR_STREAM_NULL_VALUES, _e = J.ERR_STREAM_WRITE_AFTER_END, ye = J.ERR_UNKNOWN_ENCODING, ce = oe.errorOrDestroy;
1976
+ R("inherits")(a, te), d.prototype.getBuffer = function() {
1977
+ for (var C = this.bufferedRequest, A = []; C; ) A.push(C), C = C.next;
1965
1978
  return A;
1966
1979
  }, (function() {
1967
1980
  try {
@@ -1972,22 +1985,22 @@ Use Chrome, Firefox or Internet Explorer 11`);
1972
1985
  }
1973
1986
  })();
1974
1987
  var he;
1975
- typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (he = Function.prototype[Symbol.hasInstance], Object.defineProperty(a, Symbol.hasInstance, { value: function(E) {
1976
- return !!he.call(this, E) || this === a && E && E._writableState instanceof d;
1977
- } })) : he = function(E) {
1978
- return E instanceof this;
1988
+ typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (he = Function.prototype[Symbol.hasInstance], Object.defineProperty(a, Symbol.hasInstance, { value: function(C) {
1989
+ return !!he.call(this, C) || this === a && C && C._writableState instanceof d;
1990
+ } })) : he = function(C) {
1991
+ return C instanceof this;
1979
1992
  }, a.prototype.pipe = function() {
1980
1993
  ce(this, new ge());
1981
- }, a.prototype.write = function(E, A, P) {
1982
- var W = this._writableState, s = !1, o = !W.objectMode && i(E);
1983
- return o && !H.isBuffer(E) && (E = O(E)), typeof A == "function" && (P = A, A = null), o ? A = "buffer" : !A && (A = W.defaultEncoding), typeof P != "function" && (P = h), W.ending ? g(this, P) : (o || L(this, W, E, P)) && (W.pendingcb++, s = b(this, W, o, E, A, P)), s;
1994
+ }, a.prototype.write = function(C, A, D) {
1995
+ var W = this._writableState, s = !1, o = !W.objectMode && i(C);
1996
+ return o && !H.isBuffer(C) && (C = O(C)), typeof A == "function" && (D = A, A = null), o ? A = "buffer" : !A && (A = W.defaultEncoding), typeof D != "function" && (D = h), W.ending ? g(this, D) : (o || L(this, W, C, D)) && (W.pendingcb++, s = b(this, W, o, C, A, D)), s;
1984
1997
  }, a.prototype.cork = function() {
1985
1998
  this._writableState.corked++;
1986
1999
  }, a.prototype.uncork = function() {
1987
- var E = this._writableState;
1988
- E.corked && (E.corked--, !E.writing && !E.corked && !E.bufferProcessing && E.bufferedRequest && M(this, E));
1989
- }, a.prototype.setDefaultEncoding = function(E) {
1990
- if (typeof E == "string" && (E = E.toLowerCase()), !(-1 < [
2000
+ var C = this._writableState;
2001
+ C.corked && (C.corked--, !C.writing && !C.corked && !C.bufferProcessing && C.bufferedRequest && P(this, C));
2002
+ }, a.prototype.setDefaultEncoding = function(C) {
2003
+ if (typeof C == "string" && (C = C.toLowerCase()), !(-1 < [
1991
2004
  "hex",
1992
2005
  "utf8",
1993
2006
  "utf-8",
@@ -1999,8 +2012,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
1999
2012
  "utf16le",
2000
2013
  "utf-16le",
2001
2014
  "raw"
2002
- ].indexOf((E + "").toLowerCase()))) throw new ye(E);
2003
- return this._writableState.defaultEncoding = E, this;
2015
+ ].indexOf((C + "").toLowerCase()))) throw new ye(C);
2016
+ return this._writableState.defaultEncoding = C, this;
2004
2017
  }, Object.defineProperty(a.prototype, "writableBuffer", {
2005
2018
  enumerable: !1,
2006
2019
  get: function() {
@@ -2011,11 +2024,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
2011
2024
  get: function() {
2012
2025
  return this._writableState.highWaterMark;
2013
2026
  }
2014
- }), a.prototype._write = function(E, A, P) {
2015
- P(new ae("_write()"));
2016
- }, a.prototype._writev = null, a.prototype.end = function(E, A, P) {
2027
+ }), a.prototype._write = function(C, A, D) {
2028
+ D(new ae("_write()"));
2029
+ }, a.prototype._writev = null, a.prototype.end = function(C, A, D) {
2017
2030
  var W = this._writableState;
2018
- return typeof E == "function" ? (P = E, E = null, A = null) : typeof A == "function" && (P = A, A = null), E != null && this.write(E, A), W.corked && (W.corked = 1, this.uncork()), W.ending || V(this, W, P), this;
2031
+ return typeof C == "function" ? (D = C, C = null, A = null) : typeof A == "function" && (D = A, A = null), C != null && this.write(C, A), W.corked && (W.corked = 1, this.uncork()), W.ending || V(this, W, D), this;
2019
2032
  }, Object.defineProperty(a.prototype, "writableLength", {
2020
2033
  enumerable: !1,
2021
2034
  get: function() {
@@ -2026,14 +2039,14 @@ Use Chrome, Firefox or Internet Explorer 11`);
2026
2039
  get: function() {
2027
2040
  return this._writableState !== void 0 && this._writableState.destroyed;
2028
2041
  },
2029
- set: function(E) {
2030
- this._writableState && (this._writableState.destroyed = E);
2042
+ set: function(C) {
2043
+ this._writableState && (this._writableState.destroyed = C);
2031
2044
  }
2032
- }), a.prototype.destroy = oe.destroy, a.prototype._undestroy = oe.undestroy, a.prototype._destroy = function(E, A) {
2033
- A(E);
2045
+ }), a.prototype.destroy = oe.destroy, a.prototype._undestroy = oe.undestroy, a.prototype._destroy = function(C, A) {
2046
+ A(C);
2034
2047
  };
2035
2048
  }).call(this);
2036
- }).call(this, C("_process"), typeof global > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : global);
2049
+ }).call(this, R("_process"), typeof global > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : global);
2037
2050
  }, {
2038
2051
  "../errors": 15,
2039
2052
  "./_stream_duplex": 16,
@@ -2045,57 +2058,57 @@ Use Chrome, Firefox or Internet Explorer 11`);
2045
2058
  inherits: 10,
2046
2059
  "util-deprecate": 32
2047
2060
  }],
2048
- 21: [function(C, N) {
2049
- (function(w) {
2061
+ 21: [function(R, M) {
2062
+ (function(m) {
2050
2063
  (function() {
2051
2064
  "use strict";
2052
- function c(T, M, p) {
2053
- return M in T ? Object.defineProperty(T, M, {
2065
+ function c(T, P, p) {
2066
+ return P in T ? Object.defineProperty(T, P, {
2054
2067
  value: p,
2055
2068
  enumerable: !0,
2056
2069
  configurable: !0,
2057
2070
  writable: !0
2058
- }) : T[M] = p, T;
2071
+ }) : T[P] = p, T;
2059
2072
  }
2060
- function S(T, M) {
2073
+ function S(T, P) {
2061
2074
  return {
2062
2075
  value: T,
2063
- done: M
2076
+ done: P
2064
2077
  };
2065
2078
  }
2066
2079
  function O(T) {
2067
- var M = T[g];
2068
- if (M !== null) {
2080
+ var P = T[g];
2081
+ if (P !== null) {
2069
2082
  var p = T[y].read();
2070
- p !== null && (T[n] = null, T[g] = null, T[L] = null, M(S(p, !1)));
2083
+ p !== null && (T[n] = null, T[g] = null, T[L] = null, P(S(p, !1)));
2071
2084
  }
2072
2085
  }
2073
2086
  function i(T) {
2074
- w.nextTick(O, T);
2087
+ m.nextTick(O, T);
2075
2088
  }
2076
- function h(T, M) {
2077
- return function(p, m) {
2089
+ function h(T, P) {
2090
+ return function(p, _) {
2078
2091
  T.then(function() {
2079
- M[b] ? p(S(void 0, !0)) : M[l](p, m);
2080
- }, m);
2092
+ P[b] ? p(S(void 0, !0)) : P[l](p, _);
2093
+ }, _);
2081
2094
  };
2082
2095
  }
2083
- var d, a = C("./end-of-stream"), g = /* @__PURE__ */ Symbol("lastResolve"), L = /* @__PURE__ */ Symbol("lastReject"), _ = /* @__PURE__ */ Symbol("error"), b = /* @__PURE__ */ Symbol("ended"), n = /* @__PURE__ */ Symbol("lastPromise"), l = /* @__PURE__ */ Symbol("handlePromise"), y = /* @__PURE__ */ Symbol("stream"), k = Object.getPrototypeOf(function() {
2096
+ var d, a = R("./end-of-stream"), g = /* @__PURE__ */ Symbol("lastResolve"), L = /* @__PURE__ */ Symbol("lastReject"), w = /* @__PURE__ */ Symbol("error"), b = /* @__PURE__ */ Symbol("ended"), n = /* @__PURE__ */ Symbol("lastPromise"), l = /* @__PURE__ */ Symbol("handlePromise"), y = /* @__PURE__ */ Symbol("stream"), k = Object.getPrototypeOf(function() {
2084
2097
  }), f = Object.setPrototypeOf((d = {
2085
2098
  get stream() {
2086
2099
  return this[y];
2087
2100
  },
2088
2101
  next: function() {
2089
- var T = this, M = this[_];
2090
- if (M !== null) return Promise.reject(M);
2102
+ var T = this, P = this[w];
2103
+ if (P !== null) return Promise.reject(P);
2091
2104
  if (this[b]) return Promise.resolve(S(void 0, !0));
2092
2105
  if (this[y].destroyed) return new Promise(function(B, V) {
2093
- w.nextTick(function() {
2094
- T[_] ? V(T[_]) : B(S(void 0, !0));
2106
+ m.nextTick(function() {
2107
+ T[w] ? V(T[w]) : B(S(void 0, !0));
2095
2108
  });
2096
2109
  });
2097
- var p, m = this[n];
2098
- if (m) p = new Promise(h(m, this));
2110
+ var p, _ = this[n];
2111
+ if (_) p = new Promise(h(_, this));
2099
2112
  else {
2100
2113
  var I = this[y].read();
2101
2114
  if (I !== null) return Promise.resolve(S(I, !1));
@@ -2107,39 +2120,39 @@ Use Chrome, Firefox or Internet Explorer 11`);
2107
2120
  return this;
2108
2121
  }), c(d, "return", function() {
2109
2122
  var T = this;
2110
- return new Promise(function(M, p) {
2111
- T[y].destroy(null, function(m) {
2112
- m ? p(m) : M(S(void 0, !0));
2123
+ return new Promise(function(P, p) {
2124
+ T[y].destroy(null, function(_) {
2125
+ _ ? p(_) : P(S(void 0, !0));
2113
2126
  });
2114
2127
  });
2115
2128
  }), d), k);
2116
- N.exports = function(T) {
2117
- var M, p = Object.create(f, (M = {}, c(M, y, {
2129
+ M.exports = function(T) {
2130
+ var P, p = Object.create(f, (P = {}, c(P, y, {
2118
2131
  value: T,
2119
2132
  writable: !0
2120
- }), c(M, g, {
2133
+ }), c(P, g, {
2121
2134
  value: null,
2122
2135
  writable: !0
2123
- }), c(M, L, {
2136
+ }), c(P, L, {
2124
2137
  value: null,
2125
2138
  writable: !0
2126
- }), c(M, _, {
2139
+ }), c(P, w, {
2127
2140
  value: null,
2128
2141
  writable: !0
2129
- }), c(M, b, {
2142
+ }), c(P, b, {
2130
2143
  value: T._readableState.endEmitted,
2131
2144
  writable: !0
2132
- }), c(M, l, {
2133
- value: function(m, I) {
2145
+ }), c(P, l, {
2146
+ value: function(_, I) {
2134
2147
  var B = p[y].read();
2135
- B ? (p[n] = null, p[g] = null, p[L] = null, m(S(B, !1))) : (p[g] = m, p[L] = I);
2148
+ B ? (p[n] = null, p[g] = null, p[L] = null, _(S(B, !1))) : (p[g] = _, p[L] = I);
2136
2149
  },
2137
2150
  writable: !0
2138
- }), M));
2139
- return p[n] = null, a(T, function(m) {
2140
- if (m && m.code !== "ERR_STREAM_PREMATURE_CLOSE") {
2151
+ }), P));
2152
+ return p[n] = null, a(T, function(_) {
2153
+ if (_ && _.code !== "ERR_STREAM_PREMATURE_CLOSE") {
2141
2154
  var I = p[L];
2142
- I !== null && (p[n] = null, p[g] = null, p[L] = null, I(m)), p[_] = m;
2155
+ I !== null && (p[n] = null, p[g] = null, p[L] = null, I(_)), p[w] = _;
2143
2156
  return;
2144
2157
  }
2145
2158
  var B = p[g];
@@ -2147,57 +2160,57 @@ Use Chrome, Firefox or Internet Explorer 11`);
2147
2160
  }), T.on("readable", i.bind(null, p)), p;
2148
2161
  };
2149
2162
  }).call(this);
2150
- }).call(this, C("_process"));
2163
+ }).call(this, R("_process"));
2151
2164
  }, {
2152
2165
  "./end-of-stream": 24,
2153
2166
  _process: 12
2154
2167
  }],
2155
- 22: [function(C, N) {
2168
+ 22: [function(R, M) {
2156
2169
  "use strict";
2157
- function w(_, b) {
2158
- var n = Object.keys(_);
2170
+ function m(w, b) {
2171
+ var n = Object.keys(w);
2159
2172
  if (Object.getOwnPropertySymbols) {
2160
- var l = Object.getOwnPropertySymbols(_);
2173
+ var l = Object.getOwnPropertySymbols(w);
2161
2174
  b && (l = l.filter(function(y) {
2162
- return Object.getOwnPropertyDescriptor(_, y).enumerable;
2175
+ return Object.getOwnPropertyDescriptor(w, y).enumerable;
2163
2176
  })), n.push.apply(n, l);
2164
2177
  }
2165
2178
  return n;
2166
2179
  }
2167
- function c(_) {
2168
- for (var b, n = 1; n < arguments.length; n++) b = arguments[n] == null ? {} : arguments[n], n % 2 ? w(Object(b), !0).forEach(function(l) {
2169
- S(_, l, b[l]);
2170
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(b)) : w(Object(b)).forEach(function(l) {
2171
- Object.defineProperty(_, l, Object.getOwnPropertyDescriptor(b, l));
2180
+ function c(w) {
2181
+ for (var b, n = 1; n < arguments.length; n++) b = arguments[n] == null ? {} : arguments[n], n % 2 ? m(Object(b), !0).forEach(function(l) {
2182
+ S(w, l, b[l]);
2183
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(w, Object.getOwnPropertyDescriptors(b)) : m(Object(b)).forEach(function(l) {
2184
+ Object.defineProperty(w, l, Object.getOwnPropertyDescriptor(b, l));
2172
2185
  });
2173
- return _;
2186
+ return w;
2174
2187
  }
2175
- function S(_, b, n) {
2176
- return b in _ ? Object.defineProperty(_, b, {
2188
+ function S(w, b, n) {
2189
+ return b in w ? Object.defineProperty(w, b, {
2177
2190
  value: n,
2178
2191
  enumerable: !0,
2179
2192
  configurable: !0,
2180
2193
  writable: !0
2181
- }) : _[b] = n, _;
2194
+ }) : w[b] = n, w;
2182
2195
  }
2183
- function O(_, b) {
2184
- if (!(_ instanceof b)) throw new TypeError("Cannot call a class as a function");
2196
+ function O(w, b) {
2197
+ if (!(w instanceof b)) throw new TypeError("Cannot call a class as a function");
2185
2198
  }
2186
- function i(_, b) {
2187
- for (var n, l = 0; l < b.length; l++) n = b[l], n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(_, n.key, n);
2199
+ function i(w, b) {
2200
+ for (var n, l = 0; l < b.length; l++) n = b[l], n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(w, n.key, n);
2188
2201
  }
2189
- function h(_, b, n) {
2190
- return b && i(_.prototype, b), n && i(_, n), _;
2202
+ function h(w, b, n) {
2203
+ return b && i(w.prototype, b), n && i(w, n), w;
2191
2204
  }
2192
- function d(_, b, n) {
2193
- a.prototype.copy.call(_, b, n);
2205
+ function d(w, b, n) {
2206
+ a.prototype.copy.call(w, b, n);
2194
2207
  }
2195
- var a = C("buffer").Buffer, g = C("util").inspect, L = g && g.custom || "inspect";
2196
- N.exports = (function() {
2197
- function _() {
2198
- O(this, _), this.head = null, this.tail = null, this.length = 0;
2208
+ var a = R("buffer").Buffer, g = R("util").inspect, L = g && g.custom || "inspect";
2209
+ M.exports = (function() {
2210
+ function w() {
2211
+ O(this, w), this.head = null, this.tail = null, this.length = 0;
2199
2212
  }
2200
- return h(_, [
2213
+ return h(w, [
2201
2214
  {
2202
2215
  key: "push",
2203
2216
  value: function(b) {
@@ -2301,14 +2314,14 @@ Use Chrome, Firefox or Internet Explorer 11`);
2301
2314
  }));
2302
2315
  }
2303
2316
  }
2304
- ]), _;
2317
+ ]), w;
2305
2318
  })();
2306
2319
  }, {
2307
2320
  buffer: 3,
2308
2321
  util: 2
2309
2322
  }],
2310
- 23: [function(C, N) {
2311
- (function(w) {
2323
+ 23: [function(R, M) {
2324
+ (function(m) {
2312
2325
  (function() {
2313
2326
  "use strict";
2314
2327
  function c(i, h) {
@@ -2320,11 +2333,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
2320
2333
  function O(i, h) {
2321
2334
  i.emit("error", h);
2322
2335
  }
2323
- N.exports = {
2336
+ M.exports = {
2324
2337
  destroy: function(i, h) {
2325
2338
  var d = this, a = this._readableState && this._readableState.destroyed, g = this._writableState && this._writableState.destroyed;
2326
- return a || g ? (h ? h(i) : i && (this._writableState ? !this._writableState.errorEmitted && (this._writableState.errorEmitted = !0, w.nextTick(O, this, i)) : w.nextTick(O, this, i)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(i || null, function(L) {
2327
- !h && L ? d._writableState ? d._writableState.errorEmitted ? w.nextTick(S, d) : (d._writableState.errorEmitted = !0, w.nextTick(c, d, L)) : w.nextTick(c, d, L) : h ? (w.nextTick(S, d), h(L)) : w.nextTick(S, d);
2339
+ return a || g ? (h ? h(i) : i && (this._writableState ? !this._writableState.errorEmitted && (this._writableState.errorEmitted = !0, m.nextTick(O, this, i)) : m.nextTick(O, this, i)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(i || null, function(L) {
2340
+ !h && L ? d._writableState ? d._writableState.errorEmitted ? m.nextTick(S, d) : (d._writableState.errorEmitted = !0, m.nextTick(c, d, L)) : m.nextTick(c, d, L) : h ? (m.nextTick(S, d), h(L)) : m.nextTick(S, d);
2328
2341
  }), this);
2329
2342
  },
2330
2343
  undestroy: function() {
@@ -2336,11 +2349,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
2336
2349
  }
2337
2350
  };
2338
2351
  }).call(this);
2339
- }).call(this, C("_process"));
2352
+ }).call(this, R("_process"));
2340
2353
  }, { _process: 12 }],
2341
- 24: [function(C, N) {
2354
+ 24: [function(R, M) {
2342
2355
  "use strict";
2343
- function w(h) {
2356
+ function m(h) {
2344
2357
  var d = !1;
2345
2358
  return function() {
2346
2359
  if (!d) {
@@ -2357,36 +2370,36 @@ Use Chrome, Firefox or Internet Explorer 11`);
2357
2370
  }
2358
2371
  function O(h, d, a) {
2359
2372
  if (typeof d == "function") return O(h, null, d);
2360
- d || (d = {}), a = w(a || c);
2361
- var g = d.readable || d.readable !== !1 && h.readable, L = d.writable || d.writable !== !1 && h.writable, _ = function() {
2373
+ d || (d = {}), a = m(a || c);
2374
+ var g = d.readable || d.readable !== !1 && h.readable, L = d.writable || d.writable !== !1 && h.writable, w = function() {
2362
2375
  h.writable || n();
2363
2376
  }, b = h._writableState && h._writableState.finished, n = function() {
2364
2377
  L = !1, b = !0, g || a.call(h);
2365
2378
  }, l = h._readableState && h._readableState.endEmitted, y = function() {
2366
2379
  g = !1, l = !0, L || a.call(h);
2367
- }, k = function(M) {
2368
- a.call(h, M);
2380
+ }, k = function(P) {
2381
+ a.call(h, P);
2369
2382
  }, f = function() {
2370
- var M;
2371
- return g && !l ? (h._readableState && h._readableState.ended || (M = new i()), a.call(h, M)) : L && !b ? (h._writableState && h._writableState.ended || (M = new i()), a.call(h, M)) : void 0;
2383
+ var P;
2384
+ return g && !l ? (h._readableState && h._readableState.ended || (P = new i()), a.call(h, P)) : L && !b ? (h._writableState && h._writableState.ended || (P = new i()), a.call(h, P)) : void 0;
2372
2385
  }, T = function() {
2373
2386
  h.req.on("finish", n);
2374
2387
  };
2375
- return S(h) ? (h.on("complete", n), h.on("abort", f), h.req ? T() : h.on("request", T)) : L && !h._writableState && (h.on("end", _), h.on("close", _)), h.on("end", y), h.on("finish", n), d.error !== !1 && h.on("error", k), h.on("close", f), function() {
2376
- h.removeListener("complete", n), h.removeListener("abort", f), h.removeListener("request", T), h.req && h.req.removeListener("finish", n), h.removeListener("end", _), h.removeListener("close", _), h.removeListener("finish", n), h.removeListener("end", y), h.removeListener("error", k), h.removeListener("close", f);
2388
+ return S(h) ? (h.on("complete", n), h.on("abort", f), h.req ? T() : h.on("request", T)) : L && !h._writableState && (h.on("end", w), h.on("close", w)), h.on("end", y), h.on("finish", n), d.error !== !1 && h.on("error", k), h.on("close", f), function() {
2389
+ h.removeListener("complete", n), h.removeListener("abort", f), h.removeListener("request", T), h.req && h.req.removeListener("finish", n), h.removeListener("end", w), h.removeListener("close", w), h.removeListener("finish", n), h.removeListener("end", y), h.removeListener("error", k), h.removeListener("close", f);
2377
2390
  };
2378
2391
  }
2379
- var i = C("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;
2380
- N.exports = O;
2392
+ var i = R("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;
2393
+ M.exports = O;
2381
2394
  }, { "../../../errors": 15 }],
2382
- 25: [function(C, N) {
2383
- N.exports = function() {
2395
+ 25: [function(R, M) {
2396
+ M.exports = function() {
2384
2397
  throw new Error("Readable.from is not available in the browser");
2385
2398
  };
2386
2399
  }, {}],
2387
- 26: [function(C, N) {
2400
+ 26: [function(R, M) {
2388
2401
  "use strict";
2389
- function w(b) {
2402
+ function m(b) {
2390
2403
  var n = !1;
2391
2404
  return function() {
2392
2405
  n || (n = !0, b.apply(void 0, arguments));
@@ -2399,11 +2412,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
2399
2412
  return b.setHeader && typeof b.abort == "function";
2400
2413
  }
2401
2414
  function O(b, n, l, y) {
2402
- y = w(y);
2415
+ y = m(y);
2403
2416
  var k = !1;
2404
2417
  b.on("close", function() {
2405
2418
  k = !0;
2406
- }), a === void 0 && (a = C("./end-of-stream")), a(b, {
2419
+ }), a === void 0 && (a = R("./end-of-stream")), a(b, {
2407
2420
  readable: n,
2408
2421
  writable: l
2409
2422
  }, function(T) {
@@ -2411,7 +2424,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
2411
2424
  });
2412
2425
  var f = !1;
2413
2426
  return function(T) {
2414
- if (!k) return f ? void 0 : (f = !0, S(b) ? b.abort() : typeof b.destroy == "function" ? b.destroy() : void y(T || new _("pipe")));
2427
+ if (!k) return f ? void 0 : (f = !0, S(b) ? b.abort() : typeof b.destroy == "function" ? b.destroy() : void y(T || new w("pipe")));
2415
2428
  };
2416
2429
  }
2417
2430
  function i(b) {
@@ -2423,15 +2436,15 @@ Use Chrome, Firefox or Internet Explorer 11`);
2423
2436
  function d(b) {
2424
2437
  return b.length && typeof b[b.length - 1] == "function" ? b.pop() : c;
2425
2438
  }
2426
- var a, g = C("../../../errors").codes, L = g.ERR_MISSING_ARGS, _ = g.ERR_STREAM_DESTROYED;
2427
- N.exports = function() {
2439
+ var a, g = R("../../../errors").codes, L = g.ERR_MISSING_ARGS, w = g.ERR_STREAM_DESTROYED;
2440
+ M.exports = function() {
2428
2441
  for (var b = arguments.length, n = Array(b), l = 0; l < b; l++) n[l] = arguments[l];
2429
2442
  var y = d(n);
2430
2443
  if (Array.isArray(n[0]) && (n = n[0]), 2 > n.length) throw new L("streams");
2431
- var k, f = n.map(function(T, M) {
2432
- var p = M < n.length - 1;
2433
- return O(T, p, 0 < M, function(m) {
2434
- k || (k = m), m && f.forEach(i), p || (f.forEach(i), y(k));
2444
+ var k, f = n.map(function(T, P) {
2445
+ var p = P < n.length - 1;
2446
+ return O(T, p, 0 < P, function(_) {
2447
+ k || (k = _), _ && f.forEach(i), p || (f.forEach(i), y(k));
2435
2448
  });
2436
2449
  });
2437
2450
  return n.reduce(h);
@@ -2440,26 +2453,26 @@ Use Chrome, Firefox or Internet Explorer 11`);
2440
2453
  "../../../errors": 15,
2441
2454
  "./end-of-stream": 24
2442
2455
  }],
2443
- 27: [function(C, N) {
2456
+ 27: [function(R, M) {
2444
2457
  "use strict";
2445
- function w(S, O, i) {
2458
+ function m(S, O, i) {
2446
2459
  return S.highWaterMark == null ? O ? S[i] : null : S.highWaterMark;
2447
2460
  }
2448
- var c = C("../../../errors").codes.ERR_INVALID_OPT_VALUE;
2449
- N.exports = { getHighWaterMark: function(S, O, i, h) {
2450
- var d = w(O, h, i);
2461
+ var c = R("../../../errors").codes.ERR_INVALID_OPT_VALUE;
2462
+ M.exports = { getHighWaterMark: function(S, O, i, h) {
2463
+ var d = m(O, h, i);
2451
2464
  if (d != null) {
2452
- if (!(isFinite(d) && U(d) === d) || 0 > d) throw new c(h ? i : "highWaterMark", d);
2453
- return U(d);
2465
+ if (!(isFinite(d) && j(d) === d) || 0 > d) throw new c(h ? i : "highWaterMark", d);
2466
+ return j(d);
2454
2467
  }
2455
2468
  return S.objectMode ? 16 : 16384;
2456
2469
  } };
2457
2470
  }, { "../../../errors": 15 }],
2458
- 28: [function(C, N) {
2459
- N.exports = C("events").EventEmitter;
2471
+ 28: [function(R, M) {
2472
+ M.exports = R("events").EventEmitter;
2460
2473
  }, { events: 7 }],
2461
- 29: [function(C, N, w) {
2462
- w = N.exports = C("./lib/_stream_readable.js"), w.Stream = w, w.Readable = w, w.Writable = C("./lib/_stream_writable.js"), w.Duplex = C("./lib/_stream_duplex.js"), w.Transform = C("./lib/_stream_transform.js"), w.PassThrough = C("./lib/_stream_passthrough.js"), w.finished = C("./lib/internal/streams/end-of-stream.js"), w.pipeline = C("./lib/internal/streams/pipeline.js");
2474
+ 29: [function(R, M, m) {
2475
+ m = M.exports = R("./lib/_stream_readable.js"), m.Stream = m, m.Readable = m, m.Writable = R("./lib/_stream_writable.js"), m.Duplex = R("./lib/_stream_duplex.js"), m.Transform = R("./lib/_stream_transform.js"), m.PassThrough = R("./lib/_stream_passthrough.js"), m.finished = R("./lib/internal/streams/end-of-stream.js"), m.pipeline = R("./lib/internal/streams/pipeline.js");
2463
2476
  }, {
2464
2477
  "./lib/_stream_duplex.js": 16,
2465
2478
  "./lib/_stream_passthrough.js": 17,
@@ -2469,15 +2482,15 @@ Use Chrome, Firefox or Internet Explorer 11`);
2469
2482
  "./lib/internal/streams/end-of-stream.js": 24,
2470
2483
  "./lib/internal/streams/pipeline.js": 26
2471
2484
  }],
2472
- 30: [function(C, N, w) {
2485
+ 30: [function(R, M, m) {
2473
2486
  function c(h, d) {
2474
2487
  for (var a in h) d[a] = h[a];
2475
2488
  }
2476
2489
  function S(h, d, a) {
2477
2490
  return i(h, d, a);
2478
2491
  }
2479
- var O = C("buffer"), i = O.Buffer;
2480
- i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? N.exports = O : (c(O, w), w.Buffer = S), S.prototype = Object.create(i.prototype), c(i, S), S.from = function(h, d, a) {
2492
+ var O = R("buffer"), i = O.Buffer;
2493
+ i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? M.exports = O : (c(O, m), m.Buffer = S), S.prototype = Object.create(i.prototype), c(i, S), S.from = function(h, d, a) {
2481
2494
  if (typeof h == "number") throw new TypeError("Argument must not be a number");
2482
2495
  return i(h, d, a);
2483
2496
  }, S.alloc = function(h, d, a) {
@@ -2492,7 +2505,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
2492
2505
  return O.SlowBuffer(h);
2493
2506
  };
2494
2507
  }, { buffer: 3 }],
2495
- 31: [function(C, N, w) {
2508
+ 31: [function(R, M, m) {
2496
2509
  "use strict";
2497
2510
  function c(f) {
2498
2511
  if (!f) return "utf8";
@@ -2533,7 +2546,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
2533
2546
  this.fillLast = a, T = 4;
2534
2547
  break;
2535
2548
  case "base64":
2536
- this.text = _, this.end = b, T = 3;
2549
+ this.text = w, this.end = b, T = 3;
2537
2550
  break;
2538
2551
  default:
2539
2552
  this.write = n, this.end = l;
@@ -2544,11 +2557,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
2544
2557
  function i(f) {
2545
2558
  return 127 >= f ? 0 : f >> 5 == 6 ? 2 : f >> 4 == 14 ? 3 : f >> 3 == 30 ? 4 : f >> 6 == 2 ? -1 : -2;
2546
2559
  }
2547
- function h(f, T, M) {
2560
+ function h(f, T, P) {
2548
2561
  var p = T.length - 1;
2549
- if (p < M) return 0;
2550
- var m = i(T[p]);
2551
- return 0 <= m ? (0 < m && (f.lastNeed = m - 1), m) : --p < M || m === -2 ? 0 : (m = i(T[p]), 0 <= m ? (0 < m && (f.lastNeed = m - 2), m) : --p < M || m === -2 ? 0 : (m = i(T[p]), 0 <= m ? (0 < m && (m === 2 ? m = 0 : f.lastNeed = m - 3), m) : 0));
2562
+ if (p < P) return 0;
2563
+ var _ = i(T[p]);
2564
+ return 0 <= _ ? (0 < _ && (f.lastNeed = _ - 1), _) : --p < P || _ === -2 ? 0 : (_ = i(T[p]), 0 <= _ ? (0 < _ && (f.lastNeed = _ - 2), _) : --p < P || _ === -2 ? 0 : (_ = i(T[p]), 0 <= _ ? (0 < _ && (_ === 2 ? _ = 0 : f.lastNeed = _ - 3), _) : 0));
2552
2565
  }
2553
2566
  function d(f, T) {
2554
2567
  if ((192 & T[0]) != 128) return f.lastNeed = 0, "�";
@@ -2558,31 +2571,31 @@ Use Chrome, Firefox or Internet Explorer 11`);
2558
2571
  }
2559
2572
  }
2560
2573
  function a(f) {
2561
- var T = this.lastTotal - this.lastNeed, M = d(this, f, T);
2562
- return M === void 0 ? this.lastNeed <= f.length ? (f.copy(this.lastChar, T, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (f.copy(this.lastChar, T, 0, f.length), void (this.lastNeed -= f.length)) : M;
2574
+ var T = this.lastTotal - this.lastNeed, P = d(this, f, T);
2575
+ return P === void 0 ? this.lastNeed <= f.length ? (f.copy(this.lastChar, T, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (f.copy(this.lastChar, T, 0, f.length), void (this.lastNeed -= f.length)) : P;
2563
2576
  }
2564
2577
  function g(f, T) {
2565
2578
  if ((f.length - T) % 2 == 0) {
2566
- var M = f.toString("utf16le", T);
2567
- if (M) {
2568
- var p = M.charCodeAt(M.length - 1);
2569
- if (55296 <= p && 56319 >= p) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = f[f.length - 2], this.lastChar[1] = f[f.length - 1], M.slice(0, -1);
2579
+ var P = f.toString("utf16le", T);
2580
+ if (P) {
2581
+ var p = P.charCodeAt(P.length - 1);
2582
+ if (55296 <= p && 56319 >= p) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = f[f.length - 2], this.lastChar[1] = f[f.length - 1], P.slice(0, -1);
2570
2583
  }
2571
- return M;
2584
+ return P;
2572
2585
  }
2573
2586
  return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = f[f.length - 1], f.toString("utf16le", T, f.length - 1);
2574
2587
  }
2575
2588
  function L(f) {
2576
2589
  var T = f && f.length ? this.write(f) : "";
2577
2590
  if (this.lastNeed) {
2578
- var M = this.lastTotal - this.lastNeed;
2579
- return T + this.lastChar.toString("utf16le", 0, M);
2591
+ var P = this.lastTotal - this.lastNeed;
2592
+ return T + this.lastChar.toString("utf16le", 0, P);
2580
2593
  }
2581
2594
  return T;
2582
2595
  }
2583
- function _(f, T) {
2584
- var M = (f.length - T) % 3;
2585
- return M == 0 ? f.toString("base64", T) : (this.lastNeed = 3 - M, this.lastTotal = 3, M == 1 ? this.lastChar[0] = f[f.length - 1] : (this.lastChar[0] = f[f.length - 2], this.lastChar[1] = f[f.length - 1]), f.toString("base64", T, f.length - M));
2596
+ function w(f, T) {
2597
+ var P = (f.length - T) % 3;
2598
+ return P == 0 ? f.toString("base64", T) : (this.lastNeed = 3 - P, this.lastTotal = 3, P == 1 ? this.lastChar[0] = f[f.length - 1] : (this.lastChar[0] = f[f.length - 2], this.lastChar[1] = f[f.length - 1]), f.toString("base64", T, f.length - P));
2586
2599
  }
2587
2600
  function b(f) {
2588
2601
  var T = f && f.length ? this.write(f) : "";
@@ -2594,7 +2607,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
2594
2607
  function l(f) {
2595
2608
  return f && f.length ? this.write(f) : "";
2596
2609
  }
2597
- var y = C("safe-buffer").Buffer, k = y.isEncoding || function(f) {
2610
+ var y = R("safe-buffer").Buffer, k = y.isEncoding || function(f) {
2598
2611
  switch (f = "" + f, f && f.toLowerCase()) {
2599
2612
  case "hex":
2600
2613
  case "utf8":
@@ -2612,40 +2625,40 @@ Use Chrome, Firefox or Internet Explorer 11`);
2612
2625
  return !1;
2613
2626
  }
2614
2627
  };
2615
- w.StringDecoder = O, O.prototype.write = function(f) {
2628
+ m.StringDecoder = O, O.prototype.write = function(f) {
2616
2629
  if (f.length === 0) return "";
2617
- var T, M;
2630
+ var T, P;
2618
2631
  if (this.lastNeed) {
2619
2632
  if (T = this.fillLast(f), T === void 0) return "";
2620
- M = this.lastNeed, this.lastNeed = 0;
2621
- } else M = 0;
2622
- return M < f.length ? T ? T + this.text(f, M) : this.text(f, M) : T || "";
2633
+ P = this.lastNeed, this.lastNeed = 0;
2634
+ } else P = 0;
2635
+ return P < f.length ? T ? T + this.text(f, P) : this.text(f, P) : T || "";
2623
2636
  }, O.prototype.end = function(f) {
2624
2637
  var T = f && f.length ? this.write(f) : "";
2625
2638
  return this.lastNeed ? T + "�" : T;
2626
2639
  }, O.prototype.text = function(f, T) {
2627
- var M = h(this, f, T);
2640
+ var P = h(this, f, T);
2628
2641
  if (!this.lastNeed) return f.toString("utf8", T);
2629
- this.lastTotal = M;
2630
- var p = f.length - (M - this.lastNeed);
2642
+ this.lastTotal = P;
2643
+ var p = f.length - (P - this.lastNeed);
2631
2644
  return f.copy(this.lastChar, 0, p), f.toString("utf8", T, p);
2632
2645
  }, O.prototype.fillLast = function(f) {
2633
2646
  return this.lastNeed <= f.length ? (f.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (f.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, f.length), void (this.lastNeed -= f.length));
2634
2647
  };
2635
2648
  }, { "safe-buffer": 30 }],
2636
- 32: [function(C, N) {
2637
- (function(w) {
2649
+ 32: [function(R, M) {
2650
+ (function(m) {
2638
2651
  (function() {
2639
2652
  function c(S) {
2640
2653
  try {
2641
- if (!w.localStorage) return !1;
2654
+ if (!m.localStorage) return !1;
2642
2655
  } catch {
2643
2656
  return !1;
2644
2657
  }
2645
- var O = w.localStorage[S];
2658
+ var O = m.localStorage[S];
2646
2659
  return O != null && (O + "").toLowerCase() === "true";
2647
2660
  }
2648
- N.exports = function(S, O) {
2661
+ M.exports = function(S, O) {
2649
2662
  function i() {
2650
2663
  if (!h) {
2651
2664
  if (c("throwDeprecation")) throw new Error(O);
@@ -2660,17 +2673,17 @@ Use Chrome, Firefox or Internet Explorer 11`);
2660
2673
  }).call(this);
2661
2674
  }).call(this, typeof global > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : global);
2662
2675
  }, {}],
2663
- "/": [function(C, N) {
2664
- function w(b) {
2676
+ "/": [function(R, M) {
2677
+ function m(b) {
2665
2678
  return b.replace(/a=ice-options:trickle\s\n/g, "");
2666
2679
  }
2667
2680
  function c(b) {
2668
2681
  console.warn(b);
2669
2682
  }
2670
- const S = C("debug")("simple-peer"), O = C("get-browser-rtc"), i = C("randombytes"), h = C("readable-stream"), d = C("queue-microtask"), a = C("err-code"), { Buffer: g } = C("buffer"), L = 65536;
2671
- class _ extends h.Duplex {
2683
+ const S = R("debug")("simple-peer"), O = R("get-browser-rtc"), i = R("randombytes"), h = R("readable-stream"), d = R("queue-microtask"), a = R("err-code"), { Buffer: g } = R("buffer"), L = 65536;
2684
+ class w extends h.Duplex {
2672
2685
  constructor(n) {
2673
- if (n = Object.assign({ allowHalfOpen: !1 }, n), super(n), this._id = i(4).toString("hex").slice(0, 7), this._debug("new peer %o", n), this.channelName = n.initiator ? n.channelName || i(20).toString("hex") : null, this.initiator = n.initiator || !1, this.channelConfig = n.channelConfig || _.channelConfig, this.channelNegotiated = this.channelConfig.negotiated, this.config = Object.assign({}, _.config, n.config), this.offerOptions = n.offerOptions || {}, this.answerOptions = n.answerOptions || {}, this.sdpTransform = n.sdpTransform || ((l) => l), this.streams = n.streams || (n.stream ? [n.stream] : []), this.trickle = n.trickle === void 0 || n.trickle, this.allowHalfTrickle = n.allowHalfTrickle !== void 0 && n.allowHalfTrickle, this.iceCompleteTimeout = n.iceCompleteTimeout || 5e3, this.destroyed = !1, this.destroying = !1, this._connected = !1, this.remoteAddress = void 0, this.remoteFamily = void 0, this.remotePort = void 0, this.localAddress = void 0, this.localFamily = void 0, this.localPort = void 0, this._wrtc = n.wrtc && typeof n.wrtc == "object" ? n.wrtc : O(), !this._wrtc) throw a(typeof window > "u" ? /* @__PURE__ */ new Error("No WebRTC support: Specify `opts.wrtc` option in this environment") : /* @__PURE__ */ new Error("No WebRTC support: Not a supported browser"), "ERR_WEBRTC_SUPPORT");
2686
+ if (n = Object.assign({ allowHalfOpen: !1 }, n), super(n), this._id = i(4).toString("hex").slice(0, 7), this._debug("new peer %o", n), this.channelName = n.initiator ? n.channelName || i(20).toString("hex") : null, this.initiator = n.initiator || !1, this.channelConfig = n.channelConfig || w.channelConfig, this.channelNegotiated = this.channelConfig.negotiated, this.config = Object.assign({}, w.config, n.config), this.offerOptions = n.offerOptions || {}, this.answerOptions = n.answerOptions || {}, this.sdpTransform = n.sdpTransform || ((l) => l), this.streams = n.streams || (n.stream ? [n.stream] : []), this.trickle = n.trickle === void 0 || n.trickle, this.allowHalfTrickle = n.allowHalfTrickle !== void 0 && n.allowHalfTrickle, this.iceCompleteTimeout = n.iceCompleteTimeout || 5e3, this.destroyed = !1, this.destroying = !1, this._connected = !1, this.remoteAddress = void 0, this.remoteFamily = void 0, this.remotePort = void 0, this.localAddress = void 0, this.localFamily = void 0, this.localPort = void 0, this._wrtc = n.wrtc && typeof n.wrtc == "object" ? n.wrtc : O(), !this._wrtc) throw a(typeof window > "u" ? /* @__PURE__ */ new Error("No WebRTC support: Specify `opts.wrtc` option in this environment") : /* @__PURE__ */ new Error("No WebRTC support: Not a supported browser"), "ERR_WEBRTC_SUPPORT");
2674
2687
  this._pcReady = !1, this._channelReady = !1, this._iceComplete = !1, this._iceCompleteTimer = null, this._channel = null, this._pendingCandidates = [], this._isNegotiating = !1, this._firstNegotiation = !0, this._batchedNegotiation = !1, this._queuedNegotiation = !1, this._sendersAwaitingStable = [], this._senderMap = /* @__PURE__ */ new Map(), this._closingInterval = null, this._remoteTracks = [], this._remoteStreams = [], this._chunk = null, this._cb = null, this._interval = null;
2675
2688
  try {
2676
2689
  this._pc = new this._wrtc.RTCPeerConnection(this.config);
@@ -2892,7 +2905,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
2892
2905
  _createOffer() {
2893
2906
  this.destroyed || this._pc.createOffer(this.offerOptions).then((n) => {
2894
2907
  if (this.destroyed) return;
2895
- this.trickle || this.allowHalfTrickle || (n.sdp = w(n.sdp)), n.sdp = this.sdpTransform(n.sdp);
2908
+ this.trickle || this.allowHalfTrickle || (n.sdp = m(n.sdp)), n.sdp = this.sdpTransform(n.sdp);
2896
2909
  const l = () => {
2897
2910
  if (!this.destroyed) {
2898
2911
  const y = this._pc.localDescription || n;
@@ -2919,7 +2932,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
2919
2932
  _createAnswer() {
2920
2933
  this.destroyed || this._pc.createAnswer(this.answerOptions).then((n) => {
2921
2934
  if (this.destroyed) return;
2922
- this.trickle || this.allowHalfTrickle || (n.sdp = w(n.sdp)), n.sdp = this.sdpTransform(n.sdp);
2935
+ this.trickle || this.allowHalfTrickle || (n.sdp = m(n.sdp)), n.sdp = this.sdpTransform(n.sdp);
2923
2936
  const l = () => {
2924
2937
  if (!this.destroyed) {
2925
2938
  const y = this._pc.localDescription || n;
@@ -2960,8 +2973,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
2960
2973
  const k = [];
2961
2974
  y.result().forEach((f) => {
2962
2975
  const T = {};
2963
- f.names().forEach((M) => {
2964
- T[M] = f.stat(M);
2976
+ f.names().forEach((P) => {
2977
+ T[P] = f.stat(P);
2965
2978
  }), T.id = f.id, T.type = f.type, T.timestamp = f.timestamp, k.push(l(T));
2966
2979
  }), n(null, k);
2967
2980
  }, (y) => n(y)) : n(null, []);
@@ -2974,20 +2987,20 @@ Use Chrome, Firefox or Internet Explorer 11`);
2974
2987
  if (this.destroyed) return;
2975
2988
  l && (y = []);
2976
2989
  const k = {}, f = {}, T = {};
2977
- let M = !1;
2978
- y.forEach((m) => {
2979
- (m.type === "remotecandidate" || m.type === "remote-candidate") && (k[m.id] = m), (m.type === "localcandidate" || m.type === "local-candidate") && (f[m.id] = m), (m.type === "candidatepair" || m.type === "candidate-pair") && (T[m.id] = m);
2990
+ let P = !1;
2991
+ y.forEach((_) => {
2992
+ (_.type === "remotecandidate" || _.type === "remote-candidate") && (k[_.id] = _), (_.type === "localcandidate" || _.type === "local-candidate") && (f[_.id] = _), (_.type === "candidatepair" || _.type === "candidate-pair") && (T[_.id] = _);
2980
2993
  });
2981
- const p = (m) => {
2982
- M = !0;
2983
- let I = f[m.localCandidateId];
2984
- I && (I.ip || I.address) ? (this.localAddress = I.ip || I.address, this.localPort = +I.port) : I && I.ipAddress ? (this.localAddress = I.ipAddress, this.localPort = +I.portNumber) : typeof m.googLocalAddress == "string" && (I = m.googLocalAddress.split(":"), this.localAddress = I[0], this.localPort = +I[1]), this.localAddress && (this.localFamily = this.localAddress.includes(":") ? "IPv6" : "IPv4");
2985
- let B = k[m.remoteCandidateId];
2986
- B && (B.ip || B.address) ? (this.remoteAddress = B.ip || B.address, this.remotePort = +B.port) : B && B.ipAddress ? (this.remoteAddress = B.ipAddress, this.remotePort = +B.portNumber) : typeof m.googRemoteAddress == "string" && (B = m.googRemoteAddress.split(":"), this.remoteAddress = B[0], this.remotePort = +B[1]), this.remoteAddress && (this.remoteFamily = this.remoteAddress.includes(":") ? "IPv6" : "IPv4"), this._debug("connect local: %s:%s remote: %s:%s", this.localAddress, this.localPort, this.remoteAddress, this.remotePort);
2994
+ const p = (_) => {
2995
+ P = !0;
2996
+ let I = f[_.localCandidateId];
2997
+ I && (I.ip || I.address) ? (this.localAddress = I.ip || I.address, this.localPort = +I.port) : I && I.ipAddress ? (this.localAddress = I.ipAddress, this.localPort = +I.portNumber) : typeof _.googLocalAddress == "string" && (I = _.googLocalAddress.split(":"), this.localAddress = I[0], this.localPort = +I[1]), this.localAddress && (this.localFamily = this.localAddress.includes(":") ? "IPv6" : "IPv4");
2998
+ let B = k[_.remoteCandidateId];
2999
+ B && (B.ip || B.address) ? (this.remoteAddress = B.ip || B.address, this.remotePort = +B.port) : B && B.ipAddress ? (this.remoteAddress = B.ipAddress, this.remotePort = +B.portNumber) : typeof _.googRemoteAddress == "string" && (B = _.googRemoteAddress.split(":"), this.remoteAddress = B[0], this.remotePort = +B[1]), this.remoteAddress && (this.remoteFamily = this.remoteAddress.includes(":") ? "IPv6" : "IPv4"), this._debug("connect local: %s:%s remote: %s:%s", this.localAddress, this.localPort, this.remoteAddress, this.remotePort);
2987
3000
  };
2988
- if (y.forEach((m) => {
2989
- m.type === "transport" && m.selectedCandidatePairId && p(T[m.selectedCandidatePairId]), (m.type === "googCandidatePair" && m.googActiveConnection === "true" || (m.type === "candidatepair" || m.type === "candidate-pair") && m.selected) && p(m);
2990
- }), !M && (!Object.keys(T).length || Object.keys(f).length)) return void setTimeout(n, 100);
3001
+ if (y.forEach((_) => {
3002
+ _.type === "transport" && _.selectedCandidatePairId && p(T[_.selectedCandidatePairId]), (_.type === "googCandidatePair" && _.googActiveConnection === "true" || (_.type === "candidatepair" || _.type === "candidate-pair") && _.selected) && p(_);
3003
+ }), !P && (!Object.keys(T).length || Object.keys(f).length)) return void setTimeout(n, 100);
2991
3004
  if (this._connecting = !1, this._connected = !0, this._chunk) {
2992
3005
  try {
2993
3006
  this.send(this._chunk);
@@ -2995,8 +3008,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
2995
3008
  return this.destroy(a(I, "ERR_DATA_CHANNEL"));
2996
3009
  }
2997
3010
  this._chunk = null, this._debug('sent chunk from "write before connect"');
2998
- const m = this._cb;
2999
- this._cb = null, m(null);
3011
+ const _ = this._cb;
3012
+ this._cb = null, _(null);
3000
3013
  }
3001
3014
  typeof this._channel.bufferedAmountLowThreshold != "number" && (this._interval = setInterval(() => this._onInterval(), 150), this._interval.unref && this._interval.unref()), this._debug("connect"), this.emit("connect");
3002
3015
  });
@@ -3054,10 +3067,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
3054
3067
  n[0] = "[" + this._id + "] " + n[0], S.apply(null, n);
3055
3068
  }
3056
3069
  }
3057
- _.WEBRTC_SUPPORT = !!O(), _.config = {
3070
+ w.WEBRTC_SUPPORT = !!O(), w.config = {
3058
3071
  iceServers: [{ urls: ["stun:stun.l.google.com:19302", "stun:global.stun.twilio.com:3478"] }],
3059
3072
  sdpSemantics: "unified-plan"
3060
- }, _.channelConfig = {}, N.exports = _;
3073
+ }, w.channelConfig = {}, M.exports = w;
3061
3074
  }, {
3062
3075
  buffer: 3,
3063
3076
  debug: 4,
@@ -3069,72 +3082,72 @@ Use Chrome, Firefox or Internet Explorer 11`);
3069
3082
  }]
3070
3083
  }, {}, [])("/");
3071
3084
  });
3072
- })), Pt = /* @__PURE__ */ ot(Dt(), 1), Bt = (R, D) => {
3073
- const U = Ye(R).buffer, j = Ye(D).buffer;
3074
- return crypto.subtle.importKey("raw", U, "PBKDF2", !1, ["deriveKey"]).then((F) => crypto.subtle.deriveKey({
3085
+ })), Ht = /* @__PURE__ */ jt(Wt(), 1), Vt = (v, x) => {
3086
+ const j = Ye(v).buffer, U = Ye(x).buffer;
3087
+ return crypto.subtle.importKey("raw", j, "PBKDF2", !1, ["deriveKey"]).then((F) => crypto.subtle.deriveKey({
3075
3088
  name: "PBKDF2",
3076
- salt: j,
3089
+ salt: U,
3077
3090
  iterations: 1e5,
3078
3091
  hash: "SHA-256"
3079
3092
  }, F, {
3080
3093
  name: "AES-GCM",
3081
3094
  length: 256
3082
3095
  }, !0, ["encrypt", "decrypt"]));
3083
- }, et = (R, D) => {
3084
- if (!D) return qe(R);
3085
- const U = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(12));
3096
+ }, tt = (v, x) => {
3097
+ if (!x) return qe(v);
3098
+ const j = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(12));
3086
3099
  return crypto.subtle.encrypt({
3087
3100
  name: "AES-GCM",
3088
- iv: U
3089
- }, D, R).then((j) => {
3101
+ iv: j
3102
+ }, x, v).then((U) => {
3090
3103
  const F = re();
3091
- return je(F, "AES-GCM"), Re(F, U), Re(F, new Uint8Array(j)), ie(F);
3104
+ return Ue(F, "AES-GCM"), Re(F, j), Re(F, new Uint8Array(U)), ie(F);
3092
3105
  });
3093
- }, Ut = (R, D) => {
3094
- const U = re();
3095
- return bt(U, R), et(ie(U), D);
3096
- }, tt = (R, D) => {
3097
- if (!D) return qe(R);
3098
- const U = Fe(R);
3099
- Qe(U) !== "AES-GCM" && Tt(Je("Unknown encryption algorithm"));
3100
- const j = De(U), F = De(U);
3106
+ }, Yt = (v, x) => {
3107
+ const j = re();
3108
+ return yt(j, v), tt(ie(j), x);
3109
+ }, rt = (v, x) => {
3110
+ if (!x) return qe(v);
3111
+ const j = Fe(v);
3112
+ Qe(j) !== "AES-GCM" && St(Je("Unknown encryption algorithm"));
3113
+ const U = Pe(j), F = Pe(j);
3101
3114
  return crypto.subtle.decrypt({
3102
3115
  name: "AES-GCM",
3103
- iv: j
3104
- }, D, F).then((C) => new Uint8Array(C));
3105
- }, jt = (R, D) => tt(R, D).then((U) => kt(Fe(new Uint8Array(U)))), ne = St("y-webrtc"), Ce = 0, rt = 3, Ae = 1, We = 4, xe = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new Map(), nt = (R) => {
3106
- let D = !0;
3107
- R.webrtcConns.forEach((U) => {
3108
- U.synced || (D = !1);
3109
- }), (!D && R.synced || D && !R.synced) && (R.synced = D, R.provider.emit("synced", [{ synced: D }]), ne("synced ", ue, R.name, Te, " with all peers"));
3110
- }, it = (R, D, U) => {
3111
- const j = Fe(D), F = re(), C = Ot(j);
3112
- if (R === void 0) return null;
3113
- const N = R.awareness, w = R.doc;
3116
+ iv: U
3117
+ }, x, F).then((R) => new Uint8Array(R));
3118
+ }, zt = (v, x) => rt(v, x).then((j) => At(Fe(new Uint8Array(j)))), ne = Rt("y-webrtc"), Ce = 0, nt = 3, Ae = 1, We = 4, xe = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new Map(), it = (v) => {
3119
+ let x = !0;
3120
+ v.webrtcConns.forEach((j) => {
3121
+ j.synced || (x = !1);
3122
+ }), (!x && v.synced || x && !v.synced) && (v.synced = x, v.provider.emit("synced", [{ synced: x }]), ne("synced ", ue, v.name, Te, " with all peers"));
3123
+ }, st = (v, x, j) => {
3124
+ const U = Fe(x), F = re(), R = kt(U);
3125
+ if (v === void 0) return null;
3126
+ const M = v.awareness, m = v.doc;
3114
3127
  let c = !1;
3115
- switch (C) {
3128
+ switch (R) {
3116
3129
  case Ce: {
3117
3130
  se(F, Ce);
3118
- const S = ct(j, F, w, R);
3119
- S === 1 && !R.synced && U(), S === 0 && (c = !0);
3131
+ const S = at(U, F, m, v);
3132
+ S === 1 && !v.synced && j(), S === 0 && (c = !0);
3120
3133
  break;
3121
3134
  }
3122
- case rt:
3123
- se(F, Ae), Re(F, Oe(N, Array.from(N.getStates().keys()))), c = !0;
3135
+ case nt:
3136
+ se(F, Ae), Re(F, Oe(M, Array.from(M.getStates().keys()))), c = !0;
3124
3137
  break;
3125
3138
  case Ae:
3126
- ft(N, De(j), R);
3139
+ lt(M, Pe(U), v);
3127
3140
  break;
3128
3141
  case We: {
3129
- const S = Lt(j) === 1, O = Qe(j);
3130
- if (O !== R.peerId && (R.bcConns.has(O) && !S || !R.bcConns.has(O) && S)) {
3142
+ const S = Ot(U) === 1, O = Qe(U);
3143
+ if (O !== v.peerId && (v.bcConns.has(O) && !S || !v.bcConns.has(O) && S)) {
3131
3144
  const i = [], h = [];
3132
- S ? (R.bcConns.add(O), h.push(O)) : (R.bcConns.delete(O), i.push(O)), R.provider.emit("peers", [{
3145
+ S ? (v.bcConns.add(O), h.push(O)) : (v.bcConns.delete(O), i.push(O)), v.provider.emit("peers", [{
3133
3146
  added: h,
3134
3147
  removed: i,
3135
- webrtcPeers: Array.from(R.webrtcConns.keys()),
3136
- bcPeers: Array.from(R.bcConns)
3137
- }]), st(R);
3148
+ webrtcPeers: Array.from(v.webrtcConns.keys()),
3149
+ bcPeers: Array.from(v.bcConns)
3150
+ }]), ot(v);
3138
3151
  }
3139
3152
  break;
3140
3153
  }
@@ -3142,225 +3155,225 @@ Use Chrome, Firefox or Internet Explorer 11`);
3142
3155
  return console.error("Unable to compute message"), F;
3143
3156
  }
3144
3157
  return c ? F : null;
3145
- }, Ft = (R, D) => {
3146
- const U = R.room;
3147
- return ne("received message from ", ue, R.remotePeerId, Xe, " (", U.name, ")", Te, Ze), it(U, D, () => {
3148
- R.synced = !0, ne("synced ", ue, U.name, Te, " with ", ue, R.remotePeerId), nt(U);
3158
+ }, Gt = (v, x) => {
3159
+ const j = v.room;
3160
+ return ne("received message from ", ue, v.remotePeerId, Xe, " (", j.name, ")", Te, Ze), st(j, x, () => {
3161
+ v.synced = !0, ne("synced ", ue, j.name, Te, " with ", ue, v.remotePeerId), it(j);
3149
3162
  });
3150
- }, Ie = (R, D) => {
3151
- ne("send message to ", ue, R.remotePeerId, Te, Xe, " (", R.room.name, ")", Ze);
3163
+ }, Ne = (v, x) => {
3164
+ ne("send message to ", ue, v.remotePeerId, Te, Xe, " (", v.room.name, ")", Ze);
3152
3165
  try {
3153
- R.peer.send(ie(D));
3166
+ v.peer.send(ie(x));
3154
3167
  } catch {
3155
3168
  }
3156
- }, qt = (R, D) => {
3157
- ne("broadcast message in ", ue, R.name, Te), R.webrtcConns.forEach((U) => {
3169
+ }, Kt = (v, x) => {
3170
+ ne("broadcast message in ", ue, v.name, Te), v.webrtcConns.forEach((j) => {
3158
3171
  try {
3159
- U.peer.send(D);
3172
+ j.peer.send(x);
3160
3173
  } catch {
3161
3174
  }
3162
3175
  });
3163
3176
  }, ze = class {
3164
- constructor(R, D, U, j) {
3165
- ne("establishing connection to ", ue, U), this.room = j, this.remotePeerId = U, this.glareToken = void 0, this.closed = !1, this.connected = !1, this.synced = !1, this.peer = new Pt.default({
3166
- initiator: D,
3167
- ...j.provider.peerOpts
3177
+ constructor(v, x, j, U) {
3178
+ ne("establishing connection to ", ue, j), this.room = U, this.remotePeerId = j, this.glareToken = void 0, this.closed = !1, this.connected = !1, this.synced = !1, this.peer = new Ht.default({
3179
+ initiator: x,
3180
+ ...U.provider.peerOpts
3168
3181
  }), this.peer.on("signal", (F) => {
3169
- this.glareToken === void 0 && (this.glareToken = Date.now() + Math.random()), He(R, j, {
3170
- to: U,
3171
- from: j.peerId,
3182
+ this.glareToken === void 0 && (this.glareToken = Date.now() + Math.random()), He(v, U, {
3183
+ to: j,
3184
+ from: U.peerId,
3172
3185
  type: "signal",
3173
3186
  token: this.glareToken,
3174
3187
  signal: F
3175
3188
  });
3176
3189
  }), this.peer.on("connect", () => {
3177
- ne("connected to ", ue, U), this.connected = !0;
3178
- const F = j.provider.doc, C = j.awareness, N = re();
3179
- se(N, Ce), Ke(N, F), Ie(this, N);
3180
- const w = C.getStates();
3181
- if (w.size > 0) {
3190
+ ne("connected to ", ue, j), this.connected = !0;
3191
+ const F = U.provider.doc, R = U.awareness, M = re();
3192
+ se(M, Ce), Ke(M, F), Ne(this, M);
3193
+ const m = R.getStates();
3194
+ if (m.size > 0) {
3182
3195
  const c = re();
3183
- se(c, Ae), Re(c, Oe(C, Array.from(w.keys()))), Ie(this, c);
3196
+ se(c, Ae), Re(c, Oe(R, Array.from(m.keys()))), Ne(this, c);
3184
3197
  }
3185
3198
  }), this.peer.on("close", () => {
3186
- this.connected = !1, this.closed = !0, j.webrtcConns.has(this.remotePeerId) && (j.webrtcConns.delete(this.remotePeerId), j.provider.emit("peers", [{
3199
+ this.connected = !1, this.closed = !0, U.webrtcConns.has(this.remotePeerId) && (U.webrtcConns.delete(this.remotePeerId), U.provider.emit("peers", [{
3187
3200
  removed: [this.remotePeerId],
3188
3201
  added: [],
3189
- webrtcPeers: Array.from(j.webrtcConns.keys()),
3190
- bcPeers: Array.from(j.bcConns)
3191
- }])), nt(j), this.peer.destroy(), ne("closed connection to ", ue, U), Ue(j);
3202
+ webrtcPeers: Array.from(U.webrtcConns.keys()),
3203
+ bcPeers: Array.from(U.bcConns)
3204
+ }])), it(U), this.peer.destroy(), ne("closed connection to ", ue, j), Be(U);
3192
3205
  }), this.peer.on("error", (F) => {
3193
- ne("Error in connection to ", ue, U, ": ", F), Ue(j);
3206
+ ne("Error in connection to ", ue, j, ": ", F), Be(U);
3194
3207
  }), this.peer.on("data", (F) => {
3195
- const C = Ft(this, F);
3196
- C !== null && Ie(this, C);
3208
+ const R = Gt(this, F);
3209
+ R !== null && Ne(this, R);
3197
3210
  });
3198
3211
  }
3199
3212
  destroy() {
3200
3213
  this.peer.destroy();
3201
3214
  }
3202
- }, be = (R, D) => et(D, R.key).then((U) => R.mux(() => lt(R.name, U))), Ge = (R, D) => {
3203
- R.bcconnected && be(R, D), qt(R, D);
3204
- }, Ue = (R) => {
3205
- xe.forEach((D) => {
3206
- D.connected && (D.send({
3215
+ }, be = (v, x) => tt(x, v.key).then((j) => v.mux(() => ht(v.name, j))), Ge = (v, x) => {
3216
+ v.bcconnected && be(v, x), Kt(v, x);
3217
+ }, Be = (v) => {
3218
+ xe.forEach((x) => {
3219
+ x.connected && (x.send({
3207
3220
  type: "subscribe",
3208
- topics: [R.name]
3209
- }), R.webrtcConns.size < R.provider.maxConns && He(D, R, {
3221
+ topics: [v.name]
3222
+ }), v.webrtcConns.size < v.provider.maxConns && He(x, v, {
3210
3223
  type: "announce",
3211
- from: R.peerId
3224
+ from: v.peerId
3212
3225
  }));
3213
3226
  });
3214
- }, st = (R) => {
3215
- if (R.provider.filterBcConns) {
3216
- const D = re();
3217
- se(D, We), $e(D, 1), je(D, R.peerId), be(R, ie(D));
3227
+ }, ot = (v) => {
3228
+ if (v.provider.filterBcConns) {
3229
+ const x = re();
3230
+ se(x, We), $e(x, 1), Ue(x, v.peerId), be(v, ie(x));
3218
3231
  }
3219
- }, Wt = class {
3220
- constructor(R, D, U, j) {
3221
- this.peerId = vt(), this.doc = R, this.awareness = D.awareness, this.provider = D, this.synced = !1, this.name = U, this.key = j, this.webrtcConns = /* @__PURE__ */ new Map(), this.bcConns = /* @__PURE__ */ new Set(), this.mux = Mt(), this.bcconnected = !1, this._bcSubscriber = (F) => tt(new Uint8Array(F), j).then((C) => this.mux(() => {
3222
- const N = it(this, C, () => {
3232
+ }, $t = class {
3233
+ constructor(v, x, j, U) {
3234
+ this.peerId = vt(), this.doc = v, this.awareness = x.awareness, this.provider = x, this.synced = !1, this.name = j, this.key = U, this.webrtcConns = /* @__PURE__ */ new Map(), this.bcConns = /* @__PURE__ */ new Set(), this.mux = qt(), this.bcconnected = !1, this._bcSubscriber = (F) => rt(new Uint8Array(F), U).then((R) => this.mux(() => {
3235
+ const M = st(this, R, () => {
3223
3236
  });
3224
- N && be(this, ie(N));
3225
- })), this._docUpdateHandler = (F, C) => {
3226
- const N = re();
3227
- se(N, Ce), ut(N, F), Ge(this, ie(N));
3228
- }, this._awarenessUpdateHandler = ({ added: F, updated: C, removed: N }, w) => {
3229
- const c = F.concat(C).concat(N), S = re();
3237
+ M && be(this, ie(M));
3238
+ })), this._docUpdateHandler = (F, R) => {
3239
+ const M = re();
3240
+ se(M, Ce), ct(M, F), Ge(this, ie(M));
3241
+ }, this._awarenessUpdateHandler = ({ added: F, updated: R, removed: M }, m) => {
3242
+ const c = F.concat(R).concat(M), S = re();
3230
3243
  se(S, Ae), Re(S, Oe(this.awareness, c)), Ge(this, ie(S));
3231
3244
  }, this._beforeUnloadHandler = () => {
3232
- Ve(this.awareness, [R.clientID], "window unload"), ve.forEach((F) => {
3245
+ Ve(this.awareness, [v.clientID], "window unload"), we.forEach((F) => {
3233
3246
  F.disconnect();
3234
3247
  });
3235
3248
  }, typeof window < "u" ? window.addEventListener("beforeunload", this._beforeUnloadHandler) : typeof process < "u" && process.on("exit", this._beforeUnloadHandler);
3236
3249
  }
3237
3250
  connect() {
3238
- this.doc.on("update", this._docUpdateHandler), this.awareness.on("update", this._awarenessUpdateHandler), Ue(this);
3239
- const R = this.name;
3240
- gt(R, this._bcSubscriber), this.bcconnected = !0, st(this);
3241
- const D = re();
3242
- se(D, Ce), Ke(D, this.doc), be(this, ie(D));
3243
- const U = re();
3244
- se(U, Ce), dt(U, this.doc), be(this, ie(U));
3251
+ this.doc.on("update", this._docUpdateHandler), this.awareness.on("update", this._awarenessUpdateHandler), Be(this);
3252
+ const v = this.name;
3253
+ pt(v, this._bcSubscriber), this.bcconnected = !0, ot(this);
3254
+ const x = re();
3255
+ se(x, Ce), Ke(x, this.doc), be(this, ie(x));
3245
3256
  const j = re();
3246
- se(j, rt), be(this, ie(j));
3257
+ se(j, Ce), ft(j, this.doc), be(this, ie(j));
3258
+ const U = re();
3259
+ se(U, nt), be(this, ie(U));
3247
3260
  const F = re();
3248
3261
  se(F, Ae), Re(F, Oe(this.awareness, [this.doc.clientID])), be(this, ie(F));
3249
3262
  }
3250
3263
  disconnect() {
3251
- xe.forEach((D) => {
3252
- D.connected && D.send({
3264
+ xe.forEach((x) => {
3265
+ x.connected && x.send({
3253
3266
  type: "unsubscribe",
3254
3267
  topics: [this.name]
3255
3268
  });
3256
3269
  }), Ve(this.awareness, [this.doc.clientID], "disconnect");
3257
- const R = re();
3258
- se(R, We), $e(R, 0), je(R, this.peerId), be(this, ie(R)), ht(this.name, this._bcSubscriber), this.bcconnected = !1, this.doc.off("update", this._docUpdateHandler), this.awareness.off("update", this._awarenessUpdateHandler), this.webrtcConns.forEach((D) => D.destroy());
3270
+ const v = re();
3271
+ se(v, We), $e(v, 0), Ue(v, this.peerId), be(this, ie(v)), ut(this.name, this._bcSubscriber), this.bcconnected = !1, this.doc.off("update", this._docUpdateHandler), this.awareness.off("update", this._awarenessUpdateHandler), this.webrtcConns.forEach((x) => x.destroy());
3259
3272
  }
3260
3273
  destroy() {
3261
3274
  this.disconnect(), typeof window < "u" ? window.removeEventListener("beforeunload", this._beforeUnloadHandler) : typeof process < "u" && process.off("exit", this._beforeUnloadHandler);
3262
3275
  }
3263
- }, Ht = (R, D, U, j) => {
3264
- if (ve.has(U)) throw Je(`A Yjs Doc connected to room "${U}" already exists!`);
3265
- const F = new Wt(R, D, U, j);
3266
- return ve.set(U, F), F;
3267
- }, He = (R, D, U) => {
3268
- D.key ? Ut(U, D.key).then((j) => {
3269
- R.send({
3276
+ }, Jt = (v, x, j, U) => {
3277
+ if (we.has(j)) throw Je(`A Yjs Doc connected to room "${j}" already exists!`);
3278
+ const F = new $t(v, x, j, U);
3279
+ return we.set(j, F), F;
3280
+ }, He = (v, x, j) => {
3281
+ x.key ? Yt(j, x.key).then((U) => {
3282
+ v.send({
3270
3283
  type: "publish",
3271
- topic: D.name,
3272
- data: At(j)
3284
+ topic: x.name,
3285
+ data: Tt(U)
3273
3286
  });
3274
- }) : R.send({
3287
+ }) : v.send({
3275
3288
  type: "publish",
3276
- topic: D.name,
3277
- data: U
3289
+ topic: x.name,
3290
+ data: j
3278
3291
  });
3279
- }, Vt = class extends Nt {
3280
- constructor(R) {
3281
- super(R), this.providers = /* @__PURE__ */ new Set(), this.on("connect", () => {
3282
- ne(`connected (${R})`);
3283
- const D = Array.from(ve.keys());
3292
+ }, Xt = class extends Ft {
3293
+ constructor(v) {
3294
+ super(v), this.providers = /* @__PURE__ */ new Set(), this.on("connect", () => {
3295
+ ne(`connected (${v})`);
3296
+ const x = Array.from(we.keys());
3284
3297
  this.send({
3285
3298
  type: "subscribe",
3286
- topics: D
3287
- }), ve.forEach((U) => He(this, U, {
3299
+ topics: x
3300
+ }), we.forEach((j) => He(this, j, {
3288
3301
  type: "announce",
3289
- from: U.peerId
3302
+ from: j.peerId
3290
3303
  }));
3291
- }), this.on("message", (D) => {
3292
- switch (D.type) {
3304
+ }), this.on("message", (x) => {
3305
+ switch (x.type) {
3293
3306
  case "publish": {
3294
- const U = D.topic, j = ve.get(U);
3295
- if (j == null || typeof U != "string") return;
3296
- const F = (C) => {
3297
- const N = j.webrtcConns, w = j.peerId;
3298
- if (C == null || C.from === w || C.to !== void 0 && C.to !== w || j.bcConns.has(C.from)) return;
3299
- const c = N.has(C.from) ? () => {
3300
- } : () => j.provider.emit("peers", [{
3307
+ const j = x.topic, U = we.get(j);
3308
+ if (U == null || typeof j != "string") return;
3309
+ const F = (R) => {
3310
+ const M = U.webrtcConns, m = U.peerId;
3311
+ if (R == null || R.from === m || R.to !== void 0 && R.to !== m || U.bcConns.has(R.from)) return;
3312
+ const c = M.has(R.from) ? () => {
3313
+ } : () => U.provider.emit("peers", [{
3301
3314
  removed: [],
3302
- added: [C.from],
3303
- webrtcPeers: Array.from(j.webrtcConns.keys()),
3304
- bcPeers: Array.from(j.bcConns)
3315
+ added: [R.from],
3316
+ webrtcPeers: Array.from(U.webrtcConns.keys()),
3317
+ bcPeers: Array.from(U.bcConns)
3305
3318
  }]);
3306
- switch (C.type) {
3319
+ switch (R.type) {
3307
3320
  case "announce":
3308
- N.size < j.provider.maxConns && (Pe(N, C.from, () => new ze(this, !0, C.from, j)), c());
3321
+ M.size < U.provider.maxConns && (De(M, R.from, () => new ze(this, !0, R.from, U)), c());
3309
3322
  break;
3310
3323
  case "signal":
3311
- if (C.signal.type === "offer") {
3312
- const S = N.get(C.from);
3324
+ if (R.signal.type === "offer") {
3325
+ const S = M.get(R.from);
3313
3326
  if (S) {
3314
- const O = C.token, i = S.glareToken;
3327
+ const O = R.token, i = S.glareToken;
3315
3328
  if (i && i > O) {
3316
- ne("offer rejected: ", C.from);
3329
+ ne("offer rejected: ", R.from);
3317
3330
  return;
3318
3331
  }
3319
3332
  S.glareToken = void 0;
3320
3333
  }
3321
3334
  }
3322
- if (C.signal.type === "answer") {
3323
- ne("offer answered by: ", C.from);
3324
- const S = N.get(C.from);
3335
+ if (R.signal.type === "answer") {
3336
+ ne("offer answered by: ", R.from);
3337
+ const S = M.get(R.from);
3325
3338
  S.glareToken = void 0;
3326
3339
  }
3327
- C.to === w && (Pe(N, C.from, () => new ze(this, !1, C.from, j)).peer.signal(C.signal), c());
3340
+ R.to === m && (De(M, R.from, () => new ze(this, !1, R.from, U)).peer.signal(R.signal), c());
3328
3341
  break;
3329
3342
  }
3330
3343
  };
3331
- j.key ? typeof D.data == "string" && jt(Rt(D.data), j.key).then(F) : F(D.data);
3344
+ U.key ? typeof x.data == "string" && zt(Ct(x.data), U.key).then(F) : F(x.data);
3332
3345
  }
3333
3346
  }
3334
- }), this.on("disconnect", () => ne(`disconnect (${R})`));
3347
+ }), this.on("disconnect", () => ne(`disconnect (${v})`));
3335
3348
  }
3336
- }, Ne = (R) => {
3337
- R.emit("status", [{ connected: R.connected }]);
3338
- }, Kt = class extends Ct {
3339
- constructor(R, D, { signaling: U = ["wss://y-webrtc-eu.fly.dev"], password: j = null, awareness: F = new pt(D), maxConns: C = 20 + mt(wt() * 15), filterBcConns: N = !0, peerOpts: w = {} } = {}) {
3340
- super(), this.roomName = R, this.doc = D, this.filterBcConns = N, this.awareness = F, this.shouldConnect = !1, this.signalingUrls = U, this.signalingConns = [], this.maxConns = C, this.peerOpts = w, this.key = j ? Bt(j, R) : qe(null), this.room = null, this.key.then((c) => {
3341
- this.room = Ht(D, this, R, c), this.shouldConnect ? this.room.connect() : this.room.disconnect(), Ne(this);
3342
- }), this.connect(), this.destroy = this.destroy.bind(this), D.on("destroy", this.destroy);
3349
+ }, Ie = (v) => {
3350
+ v.emit("status", [{ connected: v.connected }]);
3351
+ }, er = class extends Et {
3352
+ constructor(v, x, { signaling: j = ["wss://y-webrtc-eu.fly.dev"], password: U = null, awareness: F = new dt(x), maxConns: R = 20 + bt(_t() * 15), filterBcConns: M = !0, peerOpts: m = {} } = {}) {
3353
+ super(), this.roomName = v, this.doc = x, this.filterBcConns = M, this.awareness = F, this.shouldConnect = !1, this.signalingUrls = j, this.signalingConns = [], this.maxConns = R, this.peerOpts = m, this.key = U ? Vt(U, v) : qe(null), this.room = null, this.key.then((c) => {
3354
+ this.room = Jt(x, this, v, c), this.shouldConnect ? this.room.connect() : this.room.disconnect(), Ie(this);
3355
+ }), this.connect(), this.destroy = this.destroy.bind(this), x.on("destroy", this.destroy);
3343
3356
  }
3344
3357
  get connected() {
3345
3358
  return this.room !== null && this.shouldConnect;
3346
3359
  }
3347
3360
  connect() {
3348
- this.shouldConnect = !0, this.signalingUrls.forEach((R) => {
3349
- const D = Pe(xe, R, () => new Vt(R));
3350
- this.signalingConns.push(D), D.providers.add(this);
3351
- }), this.room && (this.room.connect(), Ne(this));
3361
+ this.shouldConnect = !0, this.signalingUrls.forEach((v) => {
3362
+ const x = De(xe, v, () => new Xt(v));
3363
+ this.signalingConns.push(x), x.providers.add(this);
3364
+ }), this.room && (this.room.connect(), Ie(this));
3352
3365
  }
3353
3366
  disconnect() {
3354
- this.shouldConnect = !1, this.signalingConns.forEach((R) => {
3355
- R.providers.delete(this), R.providers.size === 0 && (R.destroy(), xe.delete(R.url));
3356
- }), this.room && (this.room.disconnect(), Ne(this));
3367
+ this.shouldConnect = !1, this.signalingConns.forEach((v) => {
3368
+ v.providers.delete(this), v.providers.size === 0 && (v.destroy(), xe.delete(v.url));
3369
+ }), this.room && (this.room.disconnect(), Ie(this));
3357
3370
  }
3358
3371
  destroy() {
3359
3372
  this.doc.off("destroy", this.destroy), this.key.then(() => {
3360
- this.room.destroy(), ve.delete(this.roomName);
3373
+ this.room.destroy(), we.delete(this.roomName);
3361
3374
  }), super.destroy();
3362
3375
  }
3363
3376
  };
3364
3377
  export {
3365
- Kt as WebrtcProvider
3378
+ er as WebrtcProvider
3366
3379
  };