@formant/data-sdk 0.0.83 → 0.0.86

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.
@@ -75,37 +75,37 @@ var dist = { exports: {} };
75
75
  for (var a2 = 0; a2 < i.length; a2++)
76
76
  t(i[a2]);
77
77
  var l = s;
78
- return o(o.s = 228);
78
+ return o(o.s = 226);
79
79
  }([function(e, t, r) {
80
80
  r.d(t, "a", function() {
81
- return M;
81
+ return L;
82
82
  });
83
83
  const n = Math.pow(2, 20), o = n;
84
- var i = r(54), s = r(15), a2 = r(53), l = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), u = new Uint8Array(16);
85
- function g() {
86
- if (!l)
84
+ var i = r(54), s = r.n(i), a2 = r(15), l = r(53), u = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), g = new Uint8Array(16);
85
+ function c() {
86
+ if (!u)
87
87
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
88
- return l(u);
88
+ return u(g);
89
89
  }
90
- for (var c = [], f = 0; f < 256; ++f)
91
- c[f] = (f + 256).toString(16).substr(1);
92
- var p = function(e2, t2) {
93
- var r2 = t2 || 0, n2 = c;
90
+ for (var f = [], p = 0; p < 256; ++p)
91
+ f[p] = (p + 256).toString(16).substr(1);
92
+ var h = function(e2, t2) {
93
+ var r2 = t2 || 0, n2 = f;
94
94
  return [n2[e2[r2++]], n2[e2[r2++]], n2[e2[r2++]], n2[e2[r2++]], "-", n2[e2[r2++]], n2[e2[r2++]], "-", n2[e2[r2++]], n2[e2[r2++]], "-", n2[e2[r2++]], n2[e2[r2++]], "-", n2[e2[r2++]], n2[e2[r2++]], n2[e2[r2++]], n2[e2[r2++]], n2[e2[r2++]], n2[e2[r2++]]].join("");
95
95
  };
96
- var h = function(e2, t2, r2) {
96
+ var d = function(e2, t2, r2) {
97
97
  var n2 = t2 && r2 || 0;
98
98
  typeof e2 == "string" && (t2 = e2 === "binary" ? new Array(16) : null, e2 = null);
99
- var o2 = (e2 = e2 || {}).random || (e2.rng || g)();
99
+ var o2 = (e2 = e2 || {}).random || (e2.rng || c)();
100
100
  if (o2[6] = 15 & o2[6] | 64, o2[8] = 63 & o2[8] | 128, t2)
101
101
  for (var i2 = 0; i2 < 16; ++i2)
102
102
  t2[n2 + i2] = o2[i2];
103
- return t2 || p(o2);
104
- }, d = r(16), y = r(6), m = r(29), b = r(35);
105
- function v(e2) {
106
- return b(e2, { cycles: true });
103
+ return t2 || h(o2);
104
+ }, y = r(16), m = r(6), b = r(29), _ = r(35), v = r.n(_);
105
+ function S(e2) {
106
+ return v()(e2, { cycles: true });
107
107
  }
108
- var _ = function(e2, t2) {
108
+ var w = function(e2, t2) {
109
109
  var r2 = {};
110
110
  for (var n2 in e2)
111
111
  Object.prototype.hasOwnProperty.call(e2, n2) && t2.indexOf(n2) < 0 && (r2[n2] = e2[n2]);
@@ -116,18 +116,18 @@ var dist = { exports: {} };
116
116
  }
117
117
  return r2;
118
118
  };
119
- function S(e2, t2 = {}) {
120
- const r2 = (e3) => t2.redacted !== false ? Object(m.a)(e3) : e3;
119
+ function E(e2, t2 = {}) {
120
+ const r2 = (e3) => t2.redacted !== false ? Object(b.a)(e3) : e3;
121
121
  if (!e2.stack)
122
- return { message: v(r2(e2)) };
123
- const { name: n2, message: o2, stack: i2 } = e2, s2 = _(e2, ["name", "message", "stack"]);
124
- return { name: n2, message: o2 !== void 0 ? o2 : v(r2(e2)), stack: i2, meta: s2 && Object.keys(s2).length === 0 ? void 0 : r2(s2) };
122
+ return { message: S(r2(e2)) };
123
+ const { name: n2, message: o2, stack: i2 } = e2, s2 = w(e2, ["name", "message", "stack"]);
124
+ return { name: n2, message: o2 !== void 0 ? o2 : S(r2(e2)), stack: i2, meta: s2 && Object.keys(s2).length === 0 ? void 0 : r2(s2) };
125
125
  }
126
- function w(e2, t2 = {}) {
127
- const { message: r2, stack: n2, meta: o2 } = S(e2, t2);
128
- return `${n2 || r2 || ""}${o2 && Object.keys(o2).length > 0 ? ` -- ${v(o2)}` : ""}`;
126
+ function T(e2, t2 = {}) {
127
+ const { message: r2, stack: n2, meta: o2 } = E(e2, t2);
128
+ return `${n2 || r2 || ""}${o2 && Object.keys(o2).length > 0 ? ` -- ${S(o2)}` : ""}`;
129
129
  }
130
- var E = r(99), T = function(e2, t2, r2, n2) {
130
+ var R = r(99), A = r.n(R), O = function(e2, t2, r2, n2) {
131
131
  return new (r2 || (r2 = Promise))(function(o2, i2) {
132
132
  function s2(e3) {
133
133
  try {
@@ -151,7 +151,7 @@ var dist = { exports: {} };
151
151
  }
152
152
  l2((n2 = n2.apply(e2, t2 || [])).next());
153
153
  });
154
- }, R = function(e2, t2) {
154
+ }, I = function(e2, t2) {
155
155
  var r2 = {};
156
156
  for (var n2 in e2)
157
157
  Object.prototype.hasOwnProperty.call(e2, n2) && t2.indexOf(n2) < 0 && (r2[n2] = e2[n2]);
@@ -162,30 +162,30 @@ var dist = { exports: {} };
162
162
  }
163
163
  return r2;
164
164
  };
165
- class A extends E {
165
+ class j extends A.a {
166
166
  constructor(e2, t2) {
167
167
  super(), this.endpoint = e2, this.meta = t2, this.logClient = this.getLogClient();
168
168
  }
169
169
  getLogClient() {
170
- return T(this, void 0, void 0, function* () {
171
- const { LogClient: e2 } = yield Promise.resolve().then(r.bind(null, 230));
170
+ return O(this, void 0, void 0, function* () {
171
+ const { LogClient: e2 } = yield Promise.resolve().then(r.bind(null, 228));
172
172
  return new e2(this.endpoint);
173
173
  });
174
174
  }
175
175
  log(e2, t2) {
176
- return T(this, void 0, void 0, function* () {
177
- const { level: r2, message: n2, error: o2 } = e2, i2 = R(e2, ["level", "message", "error"]);
176
+ return O(this, void 0, void 0, function* () {
177
+ const { level: r2, message: n2, error: o2 } = e2, i2 = I(e2, ["level", "message", "error"]);
178
178
  this.emit("logged");
179
179
  try {
180
- yield (yield this.logClient).log([{ timestamp: new Date().toISOString(), level: r2, message: n2.substring(0, 1e3), error: o2 !== void 0 ? S(o2) : void 0, meta: Object.assign(Object.assign({}, i2), this.meta()) }]);
180
+ yield (yield this.logClient).log([{ timestamp: new Date().toISOString(), level: r2, message: n2.substring(0, 1e3), error: o2 !== void 0 ? E(o2) : void 0, meta: Object.assign(Object.assign({}, i2), this.meta()) }]);
181
181
  } catch (o3) {
182
- console.error(`Failed to log to log-api: ${w(o3)}`);
182
+ console.error(`Failed to log to log-api: ${T(o3)}`);
183
183
  }
184
184
  t2();
185
185
  });
186
186
  }
187
187
  }
188
- var O = function(e2, t2) {
188
+ var C = function(e2, t2) {
189
189
  var r2 = {};
190
190
  for (var n2 in e2)
191
191
  Object.prototype.hasOwnProperty.call(e2, n2) && t2.indexOf(n2) < 0 && (r2[n2] = e2[n2]);
@@ -196,35 +196,35 @@ var dist = { exports: {} };
196
196
  }
197
197
  return r2;
198
198
  };
199
- const j = { app: y.a, namespace: y.i, buildTag: y.b, instanceId: h() };
200
- let I = {};
201
- const C = y.e ? d.format.printf((e2) => {
202
- var { timestamp: t2, level: r2, message: n2, error: o2 } = e2, s2 = O(e2, ["timestamp", "level", "message", "error"]);
203
- const a3 = Object.assign(Object.assign({ timestamp: t2 ? new Date(t2).getTime() : new Date().getTime(), level: r2.toUpperCase(), message: n2 }, o2 ? { error: S(o2) } : {}), { meta: Object.assign(Object.assign(Object.assign({}, j), I), s2) });
199
+ const M = { app: m.a, namespace: m.i, buildTag: m.b, instanceId: d() };
200
+ let P = {};
201
+ const N = m.e ? y.format.printf((e2) => {
202
+ var { timestamp: t2, level: r2, message: n2, error: o2 } = e2, i2 = C(e2, ["timestamp", "level", "message", "error"]);
203
+ const a3 = Object.assign(Object.assign({ timestamp: t2 ? new Date(t2).getTime() : new Date().getTime(), level: r2.toUpperCase(), message: n2 }, o2 ? { error: E(o2) } : {}), { meta: Object.assign(Object.assign(Object.assign({}, M), P), i2) });
204
204
  try {
205
205
  return JSON.stringify(a3);
206
206
  } catch (o3) {
207
- return i(a3);
207
+ return s()(a3);
208
208
  }
209
- }) : d.format.printf((e2) => {
210
- var { timestamp: t2, level: r2, message: n2, error: o2 } = e2, s2 = O(e2, ["timestamp", "level", "message", "error"]);
209
+ }) : y.format.printf((e2) => {
210
+ var { timestamp: t2, level: r2, message: n2, error: o2 } = e2, i2 = C(e2, ["timestamp", "level", "message", "error"]);
211
211
  let a3 = `${t2 || new Date().toISOString()} ${r2.toUpperCase()}: ${n2} `;
212
- if (Object.keys(s2).length > 0)
212
+ if (Object.keys(i2).length > 0)
213
213
  try {
214
- a3 += JSON.stringify(s2);
214
+ a3 += JSON.stringify(i2);
215
215
  } catch (o3) {
216
- a3 += i(s2);
216
+ a3 += s()(i2);
217
217
  }
218
218
  return o2 && (a3 += `
219
- ${w(o2)}`), a3;
219
+ ${T(o2)}`), a3;
220
220
  });
221
- const M = Object(d.createLogger)({ level: y.f });
222
- y.g && M.add(new d.transports.Console({ format: C, level: "debug" })), y.d && M.add(new A(y.d, () => Object.assign(Object.assign(Object.assign({}, j), I), { level: "debug" })));
223
- if (y.h) {
224
- const e2 = a2.resolve(s.tmpdir(), `silly-${y.a}.log`);
225
- M.debug("Logging silly logs to file", { filename: e2 }), M.add(new d.transports.File({ filename: e2, maxsize: 1 * o, maxFiles: 10, format: d.format.combine((P = "silly", Object(d.format)((e3) => e3.level === P && e3)()), C), level: "silly" }));
221
+ const L = Object(y.createLogger)({ level: m.f });
222
+ m.g && L.add(new y.transports.Console({ format: N, level: "debug" })), m.d && L.add(new j(m.d, () => Object.assign(Object.assign(Object.assign({}, M), P), { level: "debug" })));
223
+ if (m.h) {
224
+ const e2 = l.resolve(a2.tmpdir(), `silly-${m.a}.log`);
225
+ L.debug("Logging silly logs to file", { filename: e2 }), L.add(new y.transports.File({ filename: e2, maxsize: 1 * o, maxFiles: 10, format: y.format.combine((D = "silly", Object(y.format)((e3) => e3.level === D && e3)()), N), level: "silly" }));
226
226
  }
227
- var P;
227
+ var D;
228
228
  }, function(e, t, r) {
229
229
  r.d(t, "a", function() {
230
230
  return n;
@@ -444,7 +444,7 @@ ${w(o2)}`), a3;
444
444
  for (e3 || (e3 = "utf8"); ; )
445
445
  switch (e3) {
446
446
  case "hex":
447
- return I(this, t2, r2);
447
+ return j(this, t2, r2);
448
448
  case "utf8":
449
449
  case "utf-8":
450
450
  return A(this, t2, r2);
@@ -452,7 +452,7 @@ ${w(o2)}`), a3;
452
452
  return O(this, t2, r2);
453
453
  case "latin1":
454
454
  case "binary":
455
- return j(this, t2, r2);
455
+ return I(this, t2, r2);
456
456
  case "base64":
457
457
  return R(this, t2, r2);
458
458
  case "ucs2":
@@ -518,7 +518,7 @@ ${w(o2)}`), a3;
518
518
  }
519
519
  return -1;
520
520
  }
521
- function v(e3, t2, r2, n2) {
521
+ function _(e3, t2, r2, n2) {
522
522
  r2 = Number(r2) || 0;
523
523
  var o2 = e3.length - r2;
524
524
  n2 ? (n2 = Number(n2)) > o2 && (n2 = o2) : n2 = o2;
@@ -534,7 +534,7 @@ ${w(o2)}`), a3;
534
534
  }
535
535
  return s2;
536
536
  }
537
- function _(e3, t2, r2, n2) {
537
+ function v(e3, t2, r2, n2) {
538
538
  return V(F(t2, e3.length - r2), e3, r2, n2);
539
539
  }
540
540
  function S(e3, t2, r2, n2) {
@@ -734,10 +734,10 @@ ${w(o2)}`), a3;
734
734
  for (var i2 = false; ; )
735
735
  switch (n2) {
736
736
  case "hex":
737
- return v(this, e3, t2, r2);
737
+ return _(this, e3, t2, r2);
738
738
  case "utf8":
739
739
  case "utf-8":
740
- return _(this, e3, t2, r2);
740
+ return v(this, e3, t2, r2);
741
741
  case "ascii":
742
742
  return S(this, e3, t2, r2);
743
743
  case "latin1":
@@ -765,14 +765,14 @@ ${w(o2)}`), a3;
765
765
  n2 += String.fromCharCode(127 & e3[o2]);
766
766
  return n2;
767
767
  }
768
- function j(e3, t2, r2) {
768
+ function I(e3, t2, r2) {
769
769
  var n2 = "";
770
770
  r2 = Math.min(e3.length, r2);
771
771
  for (var o2 = t2; o2 < r2; ++o2)
772
772
  n2 += String.fromCharCode(e3[o2]);
773
773
  return n2;
774
774
  }
775
- function I(e3, t2, r2) {
775
+ function j(e3, t2, r2) {
776
776
  var n2 = e3.length;
777
777
  (!t2 || t2 < 0) && (t2 = 0), (!r2 || r2 < 0 || r2 > n2) && (r2 = n2);
778
778
  for (var o2 = "", i2 = t2; i2 < r2; ++i2)
@@ -803,22 +803,22 @@ ${w(o2)}`), a3;
803
803
  for (var o2 = 0, i2 = Math.min(e3.length - r2, 2); o2 < i2; ++o2)
804
804
  e3[r2 + o2] = (t2 & 255 << 8 * (n2 ? o2 : 1 - o2)) >>> 8 * (n2 ? o2 : 1 - o2);
805
805
  }
806
- function D(e3, t2, r2, n2) {
806
+ function L(e3, t2, r2, n2) {
807
807
  t2 < 0 && (t2 = 4294967295 + t2 + 1);
808
808
  for (var o2 = 0, i2 = Math.min(e3.length - r2, 4); o2 < i2; ++o2)
809
809
  e3[r2 + o2] = t2 >>> 8 * (n2 ? o2 : 3 - o2) & 255;
810
810
  }
811
- function L(e3, t2, r2, n2, o2, i2) {
811
+ function D(e3, t2, r2, n2, o2, i2) {
812
812
  if (r2 + n2 > e3.length)
813
813
  throw new RangeError("Index out of range");
814
814
  if (r2 < 0)
815
815
  throw new RangeError("Index out of range");
816
816
  }
817
817
  function x(e3, t2, r2, n2, i2) {
818
- return i2 || L(e3, 0, r2, 4), o.write(e3, t2, r2, n2, 23, 4), r2 + 4;
818
+ return i2 || D(e3, 0, r2, 4), o.write(e3, t2, r2, n2, 23, 4), r2 + 4;
819
819
  }
820
820
  function U(e3, t2, r2, n2, i2) {
821
- return i2 || L(e3, 0, r2, 8), o.write(e3, t2, r2, n2, 52, 8), r2 + 8;
821
+ return i2 || D(e3, 0, r2, 8), o.write(e3, t2, r2, n2, 52, 8), r2 + 8;
822
822
  }
823
823
  l.prototype.slice = function(e3, t2) {
824
824
  var r2, n2 = this.length;
@@ -902,9 +902,9 @@ ${w(o2)}`), a3;
902
902
  }, l.prototype.writeUInt16BE = function(e3, t2, r2) {
903
903
  return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 8, this[t2 + 1] = 255 & e3) : N(this, e3, t2, false), t2 + 2;
904
904
  }, l.prototype.writeUInt32LE = function(e3, t2, r2) {
905
- return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2 + 3] = e3 >>> 24, this[t2 + 2] = e3 >>> 16, this[t2 + 1] = e3 >>> 8, this[t2] = 255 & e3) : D(this, e3, t2, true), t2 + 4;
905
+ return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2 + 3] = e3 >>> 24, this[t2 + 2] = e3 >>> 16, this[t2 + 1] = e3 >>> 8, this[t2] = 255 & e3) : L(this, e3, t2, true), t2 + 4;
906
906
  }, l.prototype.writeUInt32BE = function(e3, t2, r2) {
907
- return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 24, this[t2 + 1] = e3 >>> 16, this[t2 + 2] = e3 >>> 8, this[t2 + 3] = 255 & e3) : D(this, e3, t2, false), t2 + 4;
907
+ return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 24, this[t2 + 1] = e3 >>> 16, this[t2 + 2] = e3 >>> 8, this[t2 + 3] = 255 & e3) : L(this, e3, t2, false), t2 + 4;
908
908
  }, l.prototype.writeIntLE = function(e3, t2, r2, n2) {
909
909
  if (e3 = +e3, t2 |= 0, !n2) {
910
910
  var o2 = Math.pow(2, 8 * r2 - 1);
@@ -930,9 +930,9 @@ ${w(o2)}`), a3;
930
930
  }, l.prototype.writeInt16BE = function(e3, t2, r2) {
931
931
  return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 8, this[t2 + 1] = 255 & e3) : N(this, e3, t2, false), t2 + 2;
932
932
  }, l.prototype.writeInt32LE = function(e3, t2, r2) {
933
- return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 4, 2147483647, -2147483648), l.TYPED_ARRAY_SUPPORT ? (this[t2] = 255 & e3, this[t2 + 1] = e3 >>> 8, this[t2 + 2] = e3 >>> 16, this[t2 + 3] = e3 >>> 24) : D(this, e3, t2, true), t2 + 4;
933
+ return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 4, 2147483647, -2147483648), l.TYPED_ARRAY_SUPPORT ? (this[t2] = 255 & e3, this[t2 + 1] = e3 >>> 8, this[t2 + 2] = e3 >>> 16, this[t2 + 3] = e3 >>> 24) : L(this, e3, t2, true), t2 + 4;
934
934
  }, l.prototype.writeInt32BE = function(e3, t2, r2) {
935
- return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 4, 2147483647, -2147483648), e3 < 0 && (e3 = 4294967295 + e3 + 1), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 24, this[t2 + 1] = e3 >>> 16, this[t2 + 2] = e3 >>> 8, this[t2 + 3] = 255 & e3) : D(this, e3, t2, false), t2 + 4;
935
+ return e3 = +e3, t2 |= 0, r2 || P(this, e3, t2, 4, 2147483647, -2147483648), e3 < 0 && (e3 = 4294967295 + e3 + 1), l.TYPED_ARRAY_SUPPORT ? (this[t2] = e3 >>> 24, this[t2 + 1] = e3 >>> 16, this[t2 + 2] = e3 >>> 8, this[t2 + 3] = 255 & e3) : L(this, e3, t2, false), t2 + 4;
936
936
  }, l.prototype.writeFloatLE = function(e3, t2, r2) {
937
937
  return x(this, e3, t2, true, r2);
938
938
  }, l.prototype.writeFloatBE = function(e3, t2, r2) {
@@ -1106,7 +1106,9 @@ ${w(o2)}`), a3;
1106
1106
  }
1107
1107
  };
1108
1108
  }, function(e, t, r) {
1109
- var n = r(95), o = n, i = Function("return this")(), s = r(94);
1109
+ var n = r(95), o = n, i = function() {
1110
+ return this || window || i || self || Function("return this")();
1111
+ }.call(null), s = r(94);
1110
1112
  o.object.extend(proto, s), o.exportSymbol("proto.v1.signaling.api.CreatePeerRequest", null, i), o.exportSymbol("proto.v1.signaling.api.CreatePeerResponse", null, i), o.exportSymbol("proto.v1.signaling.api.DeletePeerRequest", null, i), o.exportSymbol("proto.v1.signaling.api.DeletePeerResponse", null, i), o.exportSymbol("proto.v1.signaling.api.GetIceServersRequest", null, i), o.exportSymbol("proto.v1.signaling.api.GetIceServersResponse", null, i), o.exportSymbol("proto.v1.signaling.api.GetPeersRequest", null, i), o.exportSymbol("proto.v1.signaling.api.GetPeersResponse", null, i), o.exportSymbol("proto.v1.signaling.api.Peer", null, i), o.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamRequest", null, i), o.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamResponse", null, i), o.exportSymbol("proto.v1.signaling.api.RefreshPeerRequest", null, i), o.exportSymbol("proto.v1.signaling.api.RefreshPeerResponse", null, i), o.exportSymbol("proto.v1.signaling.api.SendSignalRequest", null, i), o.exportSymbol("proto.v1.signaling.api.SendSignalResponse", null, i), o.exportSymbol("proto.v1.signaling.api.SessionType", null, i), o.exportSymbol("proto.v1.signaling.api.Signal", null, i), proto.v1.signaling.api.Peer = function(e2) {
1111
1113
  n.Message.initialize(this, e2, 0, -1, proto.v1.signaling.api.Peer.repeatedFields_, null);
1112
1114
  }, o.inherits(proto.v1.signaling.api.Peer, n.Message), o.DEBUG && !COMPILED && (proto.v1.signaling.api.Peer.displayName = "proto.v1.signaling.api.Peer"), proto.v1.signaling.api.Signal = function(e2) {
@@ -1853,7 +1855,7 @@ ${w(o2)}`), a3;
1853
1855
  return e4;
1854
1856
  }
1855
1857
  }), l2 = n2[r2]; r2 < i2; l2 = n2[++r2])
1856
- d(l2) || !_(l2) ? s2 += " " + l2 : s2 += " " + a2(l2);
1858
+ d(l2) || !v(l2) ? s2 += " " + l2 : s2 += " " + a2(l2);
1857
1859
  return s2;
1858
1860
  }, t.deprecate = function(r2, n2) {
1859
1861
  if (e2 !== void 0 && e2.noDeprecation === true)
@@ -1918,18 +1920,18 @@ ${w(o2)}`), a3;
1918
1920
  var l2 = r2.name ? ": " + r2.name : "";
1919
1921
  return e3.stylize("[Function" + l2 + "]", "special");
1920
1922
  }
1921
- if (v(r2))
1923
+ if (_(r2))
1922
1924
  return e3.stylize(RegExp.prototype.toString.call(r2), "regexp");
1923
1925
  if (S(r2))
1924
1926
  return e3.stylize(Date.prototype.toString.call(r2), "date");
1925
1927
  if (w(r2))
1926
1928
  return c(r2);
1927
1929
  }
1928
- var u2, _2 = "", T2 = false, R2 = ["{", "}"];
1929
- (p(r2) && (T2 = true, R2 = ["[", "]"]), E(r2)) && (_2 = " [Function" + (r2.name ? ": " + r2.name : "") + "]");
1930
- return v(r2) && (_2 = " " + RegExp.prototype.toString.call(r2)), S(r2) && (_2 = " " + Date.prototype.toUTCString.call(r2)), w(r2) && (_2 = " " + c(r2)), s2.length !== 0 || T2 && r2.length != 0 ? n2 < 0 ? v(r2) ? e3.stylize(RegExp.prototype.toString.call(r2), "regexp") : e3.stylize("[Object]", "special") : (e3.seen.push(r2), u2 = T2 ? function(e4, t2, r3, n3, o3) {
1930
+ var u2, v2 = "", T2 = false, R2 = ["{", "}"];
1931
+ (p(r2) && (T2 = true, R2 = ["[", "]"]), E(r2)) && (v2 = " [Function" + (r2.name ? ": " + r2.name : "") + "]");
1932
+ return _(r2) && (v2 = " " + RegExp.prototype.toString.call(r2)), S(r2) && (v2 = " " + Date.prototype.toUTCString.call(r2)), w(r2) && (v2 = " " + c(r2)), s2.length !== 0 || T2 && r2.length != 0 ? n2 < 0 ? _(r2) ? e3.stylize(RegExp.prototype.toString.call(r2), "regexp") : e3.stylize("[Object]", "special") : (e3.seen.push(r2), u2 = T2 ? function(e4, t2, r3, n3, o3) {
1931
1933
  for (var i3 = [], s3 = 0, a4 = t2.length; s3 < a4; ++s3)
1932
- j(t2, String(s3)) ? i3.push(f(e4, t2, r3, n3, String(s3), true)) : i3.push("");
1934
+ I(t2, String(s3)) ? i3.push(f(e4, t2, r3, n3, String(s3), true)) : i3.push("");
1933
1935
  return o3.forEach(function(o4) {
1934
1936
  o4.match(/^\d+$/) || i3.push(f(e4, t2, r3, n3, o4, true));
1935
1937
  }), i3;
@@ -1941,14 +1943,14 @@ ${w(o2)}`), a3;
1941
1943
  }, 0) > 60)
1942
1944
  return r3[0] + (t2 === "" ? "" : t2 + "\n ") + " " + e4.join(",\n ") + " " + r3[1];
1943
1945
  return r3[0] + t2 + " " + e4.join(", ") + " " + r3[1];
1944
- }(u2, _2, R2)) : R2[0] + _2 + R2[1];
1946
+ }(u2, v2, R2)) : R2[0] + v2 + R2[1];
1945
1947
  }
1946
1948
  function c(e3) {
1947
1949
  return "[" + Error.prototype.toString.call(e3) + "]";
1948
1950
  }
1949
1951
  function f(e3, t2, r2, n2, o2, i2) {
1950
1952
  var s2, a3, l2;
1951
- if ((l2 = Object.getOwnPropertyDescriptor(t2, o2) || { value: t2[o2] }).get ? a3 = l2.set ? e3.stylize("[Getter/Setter]", "special") : e3.stylize("[Getter]", "special") : l2.set && (a3 = e3.stylize("[Setter]", "special")), j(n2, o2) || (s2 = "[" + o2 + "]"), a3 || (e3.seen.indexOf(l2.value) < 0 ? (a3 = d(r2) ? g(e3, l2.value, null) : g(e3, l2.value, r2 - 1)).indexOf("\n") > -1 && (a3 = i2 ? a3.split("\n").map(function(e4) {
1953
+ if ((l2 = Object.getOwnPropertyDescriptor(t2, o2) || { value: t2[o2] }).get ? a3 = l2.set ? e3.stylize("[Getter/Setter]", "special") : e3.stylize("[Getter]", "special") : l2.set && (a3 = e3.stylize("[Setter]", "special")), I(n2, o2) || (s2 = "[" + o2 + "]"), a3 || (e3.seen.indexOf(l2.value) < 0 ? (a3 = d(r2) ? g(e3, l2.value, null) : g(e3, l2.value, r2 - 1)).indexOf("\n") > -1 && (a3 = i2 ? a3.split("\n").map(function(e4) {
1952
1954
  return " " + e4;
1953
1955
  }).join("\n").substr(2) : "\n" + a3.split("\n").map(function(e4) {
1954
1956
  return " " + e4;
@@ -1977,17 +1979,17 @@ ${w(o2)}`), a3;
1977
1979
  function b(e3) {
1978
1980
  return e3 === void 0;
1979
1981
  }
1980
- function v(e3) {
1981
- return _(e3) && T(e3) === "[object RegExp]";
1982
- }
1983
1982
  function _(e3) {
1983
+ return v(e3) && T(e3) === "[object RegExp]";
1984
+ }
1985
+ function v(e3) {
1984
1986
  return typeof e3 == "object" && e3 !== null;
1985
1987
  }
1986
1988
  function S(e3) {
1987
- return _(e3) && T(e3) === "[object Date]";
1989
+ return v(e3) && T(e3) === "[object Date]";
1988
1990
  }
1989
1991
  function w(e3) {
1990
- return _(e3) && (T(e3) === "[object Error]" || e3 instanceof Error);
1992
+ return v(e3) && (T(e3) === "[object Error]" || e3 instanceof Error);
1991
1993
  }
1992
1994
  function E(e3) {
1993
1995
  return typeof e3 == "function";
@@ -2014,7 +2016,7 @@ ${w(o2)}`), a3;
2014
2016
  return e3 == null;
2015
2017
  }, t.isNumber = y, t.isString = m, t.isSymbol = function(e3) {
2016
2018
  return typeof e3 == "symbol";
2017
- }, t.isUndefined = b, t.isRegExp = v, t.isObject = _, t.isDate = S, t.isError = w, t.isFunction = E, t.isPrimitive = function(e3) {
2019
+ }, t.isUndefined = b, t.isRegExp = _, t.isObject = v, t.isDate = S, t.isError = w, t.isFunction = E, t.isPrimitive = function(e3) {
2018
2020
  return e3 === null || typeof e3 == "boolean" || typeof e3 == "number" || typeof e3 == "string" || typeof e3 == "symbol" || e3 === void 0;
2019
2021
  }, t.isBuffer = r(106);
2020
2022
  var A = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
@@ -2022,19 +2024,19 @@ ${w(o2)}`), a3;
2022
2024
  var e3 = new Date(), t2 = [R(e3.getHours()), R(e3.getMinutes()), R(e3.getSeconds())].join(":");
2023
2025
  return [e3.getDate(), A[e3.getMonth()], t2].join(" ");
2024
2026
  }
2025
- function j(e3, t2) {
2027
+ function I(e3, t2) {
2026
2028
  return Object.prototype.hasOwnProperty.call(e3, t2);
2027
2029
  }
2028
2030
  t.log = function() {
2029
2031
  console.log("%s - %s", O(), t.format.apply(t, arguments));
2030
2032
  }, t.inherits = r(107), t._extend = function(e3, t2) {
2031
- if (!t2 || !_(t2))
2033
+ if (!t2 || !v(t2))
2032
2034
  return e3;
2033
2035
  for (var r2 = Object.keys(t2), n2 = r2.length; n2--; )
2034
2036
  e3[r2[n2]] = t2[r2[n2]];
2035
2037
  return e3;
2036
2038
  };
2037
- var I = typeof Symbol != "undefined" ? Symbol("util.promisify.custom") : void 0;
2039
+ var j = typeof Symbol != "undefined" ? Symbol("util.promisify.custom") : void 0;
2038
2040
  function C(e3, t2) {
2039
2041
  if (!e3) {
2040
2042
  var r2 = new Error("Promise was rejected with a falsy value");
@@ -2045,11 +2047,11 @@ ${w(o2)}`), a3;
2045
2047
  t.promisify = function(e3) {
2046
2048
  if (typeof e3 != "function")
2047
2049
  throw new TypeError('The "original" argument must be of type Function');
2048
- if (I && e3[I]) {
2050
+ if (j && e3[j]) {
2049
2051
  var t2;
2050
- if (typeof (t2 = e3[I]) != "function")
2052
+ if (typeof (t2 = e3[j]) != "function")
2051
2053
  throw new TypeError('The "util.promisify.custom" argument must be of type Function');
2052
- return Object.defineProperty(t2, I, { value: t2, enumerable: false, writable: false, configurable: true }), t2;
2054
+ return Object.defineProperty(t2, j, { value: t2, enumerable: false, writable: false, configurable: true }), t2;
2053
2055
  }
2054
2056
  function t2() {
2055
2057
  for (var t3, r2, n2 = new Promise(function(e4, n3) {
@@ -2066,8 +2068,8 @@ ${w(o2)}`), a3;
2066
2068
  }
2067
2069
  return n2;
2068
2070
  }
2069
- return Object.setPrototypeOf(t2, Object.getPrototypeOf(e3)), I && Object.defineProperty(t2, I, { value: t2, enumerable: false, writable: false, configurable: true }), Object.defineProperties(t2, n(e3));
2070
- }, t.promisify.custom = I, t.callbackify = function(t2) {
2071
+ return Object.setPrototypeOf(t2, Object.getPrototypeOf(e3)), j && Object.defineProperty(t2, j, { value: t2, enumerable: false, writable: false, configurable: true }), Object.defineProperties(t2, n(e3));
2072
+ }, t.promisify.custom = j, t.callbackify = function(t2) {
2071
2073
  if (typeof t2 != "function")
2072
2074
  throw new TypeError('The "original" argument must be of type Function');
2073
2075
  function r2() {
@@ -2939,12 +2941,12 @@ ${w(o2)}`), a3;
2939
2941
  function m(e2, t3, r3) {
2940
2942
  return (m = Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? d : y).apply(null, arguments);
2941
2943
  }
2942
- function v(e2, t3) {
2944
+ function _(e2, t3) {
2943
2945
  function r3() {
2944
2946
  }
2945
2947
  r3.prototype = t3.prototype, e2.S = t3.prototype, e2.prototype = new r3(), e2.prototype.constructor = e2;
2946
2948
  }
2947
- function _() {
2949
+ function v() {
2948
2950
  this.a = {};
2949
2951
  }
2950
2952
  function S(e2, t3, r3, n2) {
@@ -2958,7 +2960,7 @@ ${w(o2)}`), a3;
2958
2960
  }
2959
2961
  function T(e2, t3, r3) {
2960
2962
  r3 = r3 === void 0 ? {} : r3;
2961
- var n2 = n2 === void 0 ? new _() : n2;
2963
+ var n2 = n2 === void 0 ? new v() : n2;
2962
2964
  return new S(t3, e2, r3, n2);
2963
2965
  }
2964
2966
  function R(e2, t3, r3, n2) {
@@ -2993,26 +2995,26 @@ ${w(o2)}`), a3;
2993
2995
  return "Unrecognized error code";
2994
2996
  }
2995
2997
  }
2996
- function j(e2) {
2998
+ function I(e2) {
2997
2999
  if (Error.captureStackTrace)
2998
- Error.captureStackTrace(this, j);
3000
+ Error.captureStackTrace(this, I);
2999
3001
  else {
3000
3002
  var t3 = Error().stack;
3001
3003
  t3 && (this.stack = t3);
3002
3004
  }
3003
3005
  e2 && (this.message = String(e2));
3004
3006
  }
3005
- function I(e2, t3) {
3007
+ function j(e2, t3) {
3006
3008
  for (var r3 = "", n2 = (e2 = e2.split("%s")).length - 1, o2 = 0; o2 < n2; o2++)
3007
3009
  r3 += e2[o2] + (o2 < t3.length ? t3[o2] : "%s");
3008
- j.call(this, r3 + e2[n2]);
3010
+ I.call(this, r3 + e2[n2]);
3009
3011
  }
3010
3012
  function C() {
3011
3013
  this.j = null, this.i = [], this.l = 0, this.b = M, this.f = this.a = this.h = 0, this.c = null, this.g = 0;
3012
3014
  }
3013
- _.prototype.get = function(e2) {
3015
+ v.prototype.get = function(e2) {
3014
3016
  return this.a[e2];
3015
- }, _.prototype.f = function() {
3017
+ }, v.prototype.f = function() {
3016
3018
  return Object.keys(this.a);
3017
3019
  }, S.prototype.getRequestMessage = function() {
3018
3020
  return this.f;
@@ -3036,10 +3038,10 @@ ${w(o2)}`), a3;
3036
3038
  return this.a.removeListener(e2, t3);
3037
3039
  }, A.prototype.cancel = function() {
3038
3040
  this.a.cancel();
3039
- }, v(j, Error), j.prototype.name = "CustomError", v(I, j), I.prototype.name = "AssertionError";
3040
- var M = 0, P = 1, N = 2, D = 3, L = 0, x = 128;
3041
+ }, _(I, Error), I.prototype.name = "CustomError", _(j, I), j.prototype.name = "AssertionError";
3042
+ var M = 0, P = 1, N = 2, L = 3, D = 0, x = 128;
3041
3043
  function U(e2, t3, r3, n2) {
3042
- throw e2.b = D, e2.j = "The stream is broken @" + e2.l + "/" + r3 + ". Error: " + n2 + ". With input:\n" + t3, Error(e2.j);
3044
+ throw e2.b = L, e2.j = "The stream is broken @" + e2.l + "/" + r3 + ". Error: " + n2 + ". With input:\n" + t3, Error(e2.j);
3043
3045
  }
3044
3046
  var B = Array.prototype.indexOf ? function(e2, t3) {
3045
3047
  return Array.prototype.indexOf.call(e2, t3, void 0);
@@ -3085,13 +3087,13 @@ ${w(o2)}`), a3;
3085
3087
  return Y[" "](e2), e2;
3086
3088
  }
3087
3089
  Y[" "] = g;
3088
- var Z, K, $ = W(k, "Opera"), X = W(k, "Trident") || W(k, "MSIE"), J = W(k, "Edge"), Q = W(k, "Gecko") && !(W(k.toLowerCase(), "webkit") && !W(k, "Edge")) && !(W(k, "Trident") || W(k, "MSIE")) && !W(k, "Edge"), ee = W(k.toLowerCase(), "webkit") && !W(k, "Edge");
3090
+ var Z, $, K = W(k, "Opera"), X = W(k, "Trident") || W(k, "MSIE"), J = W(k, "Edge"), Q = W(k, "Gecko") && !(W(k.toLowerCase(), "webkit") && !W(k, "Edge")) && !(W(k, "Trident") || W(k, "MSIE")) && !W(k, "Edge"), ee = W(k.toLowerCase(), "webkit") && !W(k, "Edge");
3089
3091
  function te() {
3090
3092
  var e2 = l.document;
3091
3093
  return e2 ? e2.documentMode : void 0;
3092
3094
  }
3093
3095
  e: {
3094
- var re = "", ne = (K = k, Q ? /rv:([^\);]+)(\)|;)/.exec(K) : J ? /Edge\/([\d\.]+)/.exec(K) : X ? /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(K) : ee ? /WebKit\/(\S+)/.exec(K) : $ ? /(?:Version)[ \/]?(\S+)/.exec(K) : void 0);
3096
+ var re = "", ne = ($ = k, Q ? /rv:([^\);]+)(\)|;)/.exec($) : J ? /Edge\/([\d\.]+)/.exec($) : X ? /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec($) : ee ? /WebKit\/(\S+)/.exec($) : K ? /(?:Version)[ \/]?(\S+)/.exec($) : void 0);
3095
3097
  if (ne && (re = ne ? ne[1] : ""), X) {
3096
3098
  var oe = te();
3097
3099
  if (oe != null && oe > parseFloat(re)) {
@@ -3165,13 +3167,13 @@ ${w(o2)}`), a3;
3165
3167
  }
3166
3168
  } else
3167
3169
  r3 == "mouseover" ? t3 = e2.fromElement : r3 == "mouseout" && (t3 = e2.toElement);
3168
- this.relatedTarget = t3, n2 ? (this.clientX = n2.clientX !== void 0 ? n2.clientX : n2.pageX, this.clientY = n2.clientY !== void 0 ? n2.clientY : n2.pageY, this.screenX = n2.screenX || 0, this.screenY = n2.screenY || 0) : (this.clientX = e2.clientX !== void 0 ? e2.clientX : e2.pageX, this.clientY = e2.clientY !== void 0 ? e2.clientY : e2.pageY, this.screenX = e2.screenX || 0, this.screenY = e2.screenY || 0), this.button = e2.button, this.key = e2.key || "", this.ctrlKey = e2.ctrlKey, this.altKey = e2.altKey, this.shiftKey = e2.shiftKey, this.metaKey = e2.metaKey, this.pointerId = e2.pointerId || 0, this.pointerType = typeof e2.pointerType == "string" ? e2.pointerType : ve[e2.pointerType] || "", this.c = e2, e2.defaultPrevented && this.b();
3170
+ this.relatedTarget = t3, n2 ? (this.clientX = n2.clientX !== void 0 ? n2.clientX : n2.pageX, this.clientY = n2.clientY !== void 0 ? n2.clientY : n2.pageY, this.screenX = n2.screenX || 0, this.screenY = n2.screenY || 0) : (this.clientX = e2.clientX !== void 0 ? e2.clientX : e2.pageX, this.clientY = e2.clientY !== void 0 ? e2.clientY : e2.pageY, this.screenX = e2.screenX || 0, this.screenY = e2.screenY || 0), this.button = e2.button, this.key = e2.key || "", this.ctrlKey = e2.ctrlKey, this.altKey = e2.altKey, this.shiftKey = e2.shiftKey, this.metaKey = e2.metaKey, this.pointerId = e2.pointerId || 0, this.pointerType = typeof e2.pointerType == "string" ? e2.pointerType : _e[e2.pointerType] || "", this.c = e2, e2.defaultPrevented && this.b();
3169
3171
  }
3170
3172
  }
3171
3173
  me.prototype.b = function() {
3172
3174
  this.defaultPrevented = true;
3173
- }, v(be, me);
3174
- var ve = pe({ 2: "touch", 3: "pen", 4: "mouse" });
3175
+ }, _(be, me);
3176
+ var _e = pe({ 2: "touch", 3: "pen", 4: "mouse" });
3175
3177
  be.prototype.b = function() {
3176
3178
  be.S.b.call(this);
3177
3179
  var e2 = this.c;
@@ -3183,7 +3185,7 @@ ${w(o2)}`), a3;
3183
3185
  } catch (e3) {
3184
3186
  }
3185
3187
  };
3186
- var _e = "closure_listenable_" + (1e6 * Math.random() | 0), Se = 0;
3188
+ var ve = "closure_listenable_" + (1e6 * Math.random() | 0), Se = 0;
3187
3189
  function we(e2, t3, r3, n2, o2) {
3188
3190
  this.listener = e2, this.proxy = null, this.src = t3, this.type = r3, this.capture = !!n2, this.A = o2, this.key = ++Se, this.s = this.v = false;
3189
3191
  }
@@ -3214,21 +3216,21 @@ ${w(o2)}`), a3;
3214
3216
  var s2 = Ae(e2, t3, n2, o2);
3215
3217
  return -1 < s2 ? (t3 = e2[s2], r3 || (t3.v = false)) : ((t3 = new we(t3, this.src, i2, !!n2, o2)).v = r3, e2.push(t3)), t3;
3216
3218
  };
3217
- var Oe = "closure_lm_" + (1e6 * Math.random() | 0), je = {};
3218
- function Ie(e2, t3, r3, n2, o2) {
3219
+ var Oe = "closure_lm_" + (1e6 * Math.random() | 0), Ie = {};
3220
+ function je(e2, t3, r3, n2, o2) {
3219
3221
  if (n2 && n2.once)
3220
3222
  !function e3(t4, r4, n3, o3, i3) {
3221
3223
  if (Array.isArray(r4))
3222
3224
  for (var s2 = 0; s2 < r4.length; s2++)
3223
3225
  e3(t4, r4[s2], n3, o3, i3);
3224
3226
  else
3225
- n3 = Be(n3), t4 && t4[_e] ? t4.f.add(String(r4), n3, true, f(o3) ? !!o3.capture : !!o3, i3) : Ce(t4, r4, n3, true, o3, i3);
3227
+ n3 = Be(n3), t4 && t4[ve] ? t4.f.add(String(r4), n3, true, f(o3) ? !!o3.capture : !!o3, i3) : Ce(t4, r4, n3, true, o3, i3);
3226
3228
  }(e2, t3, r3, n2, o2);
3227
3229
  else if (Array.isArray(t3))
3228
3230
  for (var i2 = 0; i2 < t3.length; i2++)
3229
- Ie(e2, t3[i2], r3, n2, o2);
3231
+ je(e2, t3[i2], r3, n2, o2);
3230
3232
  else
3231
- r3 = Be(r3), e2 && e2[_e] ? e2.f.add(String(t3), r3, false, f(n2) ? !!n2.capture : !!n2, o2) : Ce(e2, t3, r3, false, n2, o2);
3233
+ r3 = Be(r3), e2 && e2[ve] ? e2.f.add(String(t3), r3, false, f(n2) ? !!n2.capture : !!n2, o2) : Ce(e2, t3, r3, false, n2, o2);
3232
3234
  }
3233
3235
  function Ce(e2, t3, r3, n2, o2, i2) {
3234
3236
  if (!t3)
@@ -3236,7 +3238,7 @@ ${w(o2)}`), a3;
3236
3238
  var s2 = f(o2) ? !!o2.capture : !!o2, a3 = xe(e2);
3237
3239
  if (a3 || (e2[Oe] = a3 = new Te(e2)), !(r3 = a3.add(t3, r3, n2, s2, i2)).proxy) {
3238
3240
  if (n2 = function() {
3239
- var e3 = Le, t4 = he ? function(r4) {
3241
+ var e3 = De, t4 = he ? function(r4) {
3240
3242
  return e3.call(t4.src, t4.listener, r4);
3241
3243
  } : function(r4) {
3242
3244
  if (!(r4 = e3.call(t4.src, t4.listener, r4)))
@@ -3257,7 +3259,7 @@ ${w(o2)}`), a3;
3257
3259
  function Me(e2) {
3258
3260
  if (typeof e2 != "number" && e2 && !e2.s) {
3259
3261
  var t3 = e2.src;
3260
- if (t3 && t3[_e])
3262
+ if (t3 && t3[ve])
3261
3263
  Re(t3.f, e2);
3262
3264
  else {
3263
3265
  var r3 = e2.type, n2 = e2.proxy;
@@ -3266,22 +3268,22 @@ ${w(o2)}`), a3;
3266
3268
  }
3267
3269
  }
3268
3270
  function Pe(e2) {
3269
- return e2 in je ? je[e2] : je[e2] = "on" + e2;
3271
+ return e2 in Ie ? Ie[e2] : Ie[e2] = "on" + e2;
3270
3272
  }
3271
3273
  function Ne(e2, t3, r3, n2) {
3272
3274
  var o2 = true;
3273
3275
  if ((e2 = xe(e2)) && (t3 = e2.a[t3.toString()]))
3274
3276
  for (t3 = t3.concat(), e2 = 0; e2 < t3.length; e2++) {
3275
3277
  var i2 = t3[e2];
3276
- i2 && i2.capture == r3 && !i2.s && (i2 = De(i2, n2), o2 = o2 && i2 !== false);
3278
+ i2 && i2.capture == r3 && !i2.s && (i2 = Le(i2, n2), o2 = o2 && i2 !== false);
3277
3279
  }
3278
3280
  return o2;
3279
3281
  }
3280
- function De(e2, t3) {
3282
+ function Le(e2, t3) {
3281
3283
  var r3 = e2.listener, n2 = e2.A || e2.src;
3282
3284
  return e2.v && Me(e2), r3.call(n2, t3);
3283
3285
  }
3284
- function Le(e2, t3) {
3286
+ function De(e2, t3) {
3285
3287
  if (e2.s)
3286
3288
  return true;
3287
3289
  if (!he) {
@@ -3312,7 +3314,7 @@ ${w(o2)}`), a3;
3312
3314
  }
3313
3315
  return n2;
3314
3316
  }
3315
- return De(e2, new be(t3, this));
3317
+ return Le(e2, new be(t3, this));
3316
3318
  }
3317
3319
  function xe(e2) {
3318
3320
  return (e2 = e2[Oe]) instanceof Te ? e2 : null;
@@ -3371,15 +3373,15 @@ ${w(o2)}`), a3;
3371
3373
  function He(e2, t3, r3) {
3372
3374
  this.reset(e2, t3, r3, void 0, void 0);
3373
3375
  }
3374
- v(ke, ge), ke.prototype[_e] = true, ke.prototype.addEventListener = function(e2, t3, r3, n2) {
3375
- Ie(this, e2, t3, r3, n2);
3376
+ _(ke, ge), ke.prototype[ve] = true, ke.prototype.addEventListener = function(e2, t3, r3, n2) {
3377
+ je(this, e2, t3, r3, n2);
3376
3378
  }, ke.prototype.removeEventListener = function(e2, t3, r3, n2) {
3377
3379
  !function e3(t4, r4, n3, o2, i2) {
3378
3380
  if (Array.isArray(r4))
3379
3381
  for (var s2 = 0; s2 < r4.length; s2++)
3380
3382
  e3(t4, r4[s2], n3, o2, i2);
3381
3383
  else
3382
- o2 = f(o2) ? !!o2.capture : !!o2, n3 = Be(n3), t4 && t4[_e] ? (t4 = t4.f, (r4 = String(r4).toString()) in t4.a && (-1 < (n3 = Ae(s2 = t4.a[r4], n3, o2, i2)) && (Ee(s2[n3]), Array.prototype.splice.call(s2, n3, 1), s2.length == 0 && (delete t4.a[r4], t4.b--)))) : t4 && (t4 = xe(t4)) && (r4 = t4.a[r4.toString()], t4 = -1, r4 && (t4 = Ae(r4, n3, o2, i2)), (n3 = -1 < t4 ? r4[t4] : null) && Me(n3));
3384
+ o2 = f(o2) ? !!o2.capture : !!o2, n3 = Be(n3), t4 && t4[ve] ? (t4 = t4.f, (r4 = String(r4).toString()) in t4.a && (-1 < (n3 = Ae(s2 = t4.a[r4], n3, o2, i2)) && (Ee(s2[n3]), Array.prototype.splice.call(s2, n3, 1), s2.length == 0 && (delete t4.a[r4], t4.b--)))) : t4 && (t4 = xe(t4)) && (r4 = t4.a[r4.toString()], t4 = -1, r4 && (t4 = Ae(r4, n3, o2, i2)), (n3 = -1 < t4 ? r4[t4] : null) && Me(n3));
3383
3385
  }(this, e2, t3, r3, n2);
3384
3386
  }, He.prototype.a = null;
3385
3387
  function ze(e2) {
@@ -3394,17 +3396,17 @@ ${w(o2)}`), a3;
3394
3396
  return this.name;
3395
3397
  };
3396
3398
  var qe = new Ge("SEVERE", 1e3), Ye = new Ge("CONFIG", 700), Ze = new Ge("FINE", 500);
3397
- function Ke(e2) {
3398
- return e2.c ? e2.c : e2.a ? Ke(e2.a) : (function(e3, t3) {
3399
- throw new I("Failure" + (e3 ? ": " + e3 : ""), Array.prototype.slice.call(arguments, 1));
3399
+ function $e(e2) {
3400
+ return e2.c ? e2.c : e2.a ? $e(e2.a) : (function(e3, t3) {
3401
+ throw new j("Failure" + (e3 ? ": " + e3 : ""), Array.prototype.slice.call(arguments, 1));
3400
3402
  }("Root logger has no level set."), null);
3401
3403
  }
3402
3404
  ze.prototype.log = function(e2, t3, r3) {
3403
- if (e2.value >= Ke(this).value)
3405
+ if (e2.value >= $e(this).value)
3404
3406
  for (c(t3) == "function" && (t3 = t3()), e2 = new He(e2, String(t3), this.f), r3 && (e2.a = r3), r3 = this; r3; )
3405
3407
  r3 = r3.a;
3406
3408
  };
3407
- var $e, Xe = {}, Je = null;
3409
+ var Ke, Xe = {}, Je = null;
3408
3410
  function Qe(e2, t3) {
3409
3411
  e2 && e2.log(Ze, t3, void 0);
3410
3412
  }
@@ -3469,7 +3471,7 @@ ${w(o2)}`), a3;
3469
3471
  function lt(e2, t3) {
3470
3472
  return Object.prototype.hasOwnProperty.call(e2, t3);
3471
3473
  }
3472
- et.prototype.a = null, v(rt, et), $e = new rt(), it.prototype.f = function() {
3474
+ et.prototype.a = null, _(rt, et), Ke = new rt(), it.prototype.f = function() {
3473
3475
  return st(this), this.a.concat();
3474
3476
  }, it.prototype.get = function(e2, t3) {
3475
3477
  return lt(this.b, e2) ? this.b[e2] : t3;
@@ -3485,7 +3487,7 @@ ${w(o2)}`), a3;
3485
3487
  function gt(e2) {
3486
3488
  ke.call(this), this.headers = new it(), this.D = e2 || null, this.c = false, this.C = this.a = null, this.J = this.o = "", this.g = 0, this.i = "", this.h = this.I = this.m = this.G = false, this.l = 0, this.u = null, this.j = ct, this.B = this.H = false;
3487
3489
  }
3488
- v(gt, ke);
3490
+ _(gt, ke);
3489
3491
  var ct = "", ft = gt.prototype, pt = function e2(t3) {
3490
3492
  var r3;
3491
3493
  if (Je || (Je = new ze(""), Xe[""] = Je, Je.c = Ye), !(r3 = Xe[t3])) {
@@ -3500,7 +3502,7 @@ ${w(o2)}`), a3;
3500
3502
  function yt(e2, t3, r3) {
3501
3503
  if (e2.a)
3502
3504
  throw Error("[goog.net.XhrIo] Object is active with another request=" + e2.o + "; newUri=" + t3);
3503
- e2.o = t3, e2.i = "", e2.g = 0, e2.J = "POST", e2.G = false, e2.c = true, e2.a = e2.D ? nt(e2.D) : nt($e), e2.C = e2.D ? tt(e2.D) : tt($e), e2.a.onreadystatechange = m(e2.K, e2);
3505
+ e2.o = t3, e2.i = "", e2.g = 0, e2.J = "POST", e2.G = false, e2.c = true, e2.a = e2.D ? nt(e2.D) : nt(Ke), e2.C = e2.D ? tt(e2.D) : tt(Ke), e2.a.onreadystatechange = m(e2.K, e2);
3504
3506
  try {
3505
3507
  Qe(e2.b, Rt(e2, "Opening Xhr")), e2.I = true, e2.a.open("POST", String(t3), true), e2.I = false;
3506
3508
  } catch (t4) {
@@ -3533,12 +3535,12 @@ ${w(o2)}`), a3;
3533
3535
  return e2.toLowerCase() == "content-type";
3534
3536
  }
3535
3537
  function bt(e2, t3) {
3536
- e2.c = false, e2.a && (e2.h = true, e2.a.abort(), e2.h = false), e2.i = t3, e2.g = 5, vt(e2), St(e2);
3538
+ e2.c = false, e2.a && (e2.h = true, e2.a.abort(), e2.h = false), e2.i = t3, e2.g = 5, _t(e2), St(e2);
3537
3539
  }
3538
- function vt(e2) {
3540
+ function _t(e2) {
3539
3541
  e2.G || (e2.G = true, Fe(e2, "complete"), Fe(e2, "error"));
3540
3542
  }
3541
- function _t(e2) {
3543
+ function vt(e2) {
3542
3544
  if (e2.c && a2 !== void 0) {
3543
3545
  if (e2.C[1] && Et(e2) == 4 && e2.getStatus() == 2)
3544
3546
  Qe(e2.b, Rt(e2, "Local request error detected and ignored"));
@@ -3583,7 +3585,7 @@ ${w(o2)}`), a3;
3583
3585
  } catch (t4) {
3584
3586
  Qe(e2.b, "Can not get status: " + t4.message), u2 = "";
3585
3587
  }
3586
- e2.i = u2 + " [" + e2.getStatus() + "]", vt(e2);
3588
+ e2.i = u2 + " [" + e2.getStatus() + "]", _t(e2);
3587
3589
  }
3588
3590
  } finally {
3589
3591
  St(e2);
@@ -3621,9 +3623,9 @@ ${w(o2)}`), a3;
3621
3623
  }, gt.prototype.abort = function(e2) {
3622
3624
  this.a && this.c && (Qe(this.b, Rt(this, "Aborting")), this.c = false, this.h = true, this.a.abort(), this.h = false, this.g = e2 || 7, Fe(this, "complete"), Fe(this, "abort"), St(this));
3623
3625
  }, gt.prototype.K = function() {
3624
- this.F || (this.I || this.m || this.h ? _t(this) : this.O());
3626
+ this.F || (this.I || this.m || this.h ? vt(this) : this.O());
3625
3627
  }, gt.prototype.O = function() {
3626
- _t(this);
3628
+ vt(this);
3627
3629
  }, gt.prototype.getStatus = function() {
3628
3630
  try {
3629
3631
  return 2 < Et(this) ? this.a.status : -1;
@@ -3632,7 +3634,7 @@ ${w(o2)}`), a3;
3632
3634
  }
3633
3635
  };
3634
3636
  var At = {}, Ot = null;
3635
- function jt(e2) {
3637
+ function It(e2) {
3636
3638
  var t3 = e2.length, r3 = 3 * t3 / 4;
3637
3639
  r3 % 3 ? r3 = Math.floor(r3) : W("=.", e2[t3 - 1]) && (r3 = W("=.", e2[t3 - 2]) ? r3 - 2 : r3 - 1);
3638
3640
  var n2 = new Uint8Array(r3), o2 = 0;
@@ -3647,7 +3649,7 @@ ${w(o2)}`), a3;
3647
3649
  }
3648
3650
  return t5;
3649
3651
  }
3650
- It();
3652
+ jt();
3651
3653
  for (var n3 = 0; ; ) {
3652
3654
  var o3 = r4(-1), i2 = r4(0), s2 = r4(64), a3 = r4(64);
3653
3655
  if (a3 === 64 && o3 === -1)
@@ -3658,7 +3660,7 @@ ${w(o2)}`), a3;
3658
3660
  n2[o2++] = e3;
3659
3661
  }), n2.subarray(0, o2);
3660
3662
  }
3661
- function It() {
3663
+ function jt() {
3662
3664
  if (!Ot) {
3663
3665
  Ot = {};
3664
3666
  for (var e2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), t3 = ["+/=", "+/", "-_=", "-_.", "-_"], r3 = 0; 5 > r3; r3++) {
@@ -3675,7 +3677,7 @@ ${w(o2)}`), a3;
3675
3677
  function Mt(e2) {
3676
3678
  this.a = e2.T, this.l = null, this.b = [], this.h = [], this.g = [], this.f = [], this.c = [], this.j = false, this.i = 0, this.m = new C();
3677
3679
  var t3 = this;
3678
- Ie(this.a, "readystatechange", function() {
3680
+ je(this.a, "readystatechange", function() {
3679
3681
  var e3 = t3.a;
3680
3682
  if (e3 = e3.a ? e3.a.getResponseHeader("Content-Type") : null) {
3681
3683
  if ((e3 = e3.toLowerCase()).lastIndexOf("application/grpc-web-text", 0) == 0) {
@@ -3687,7 +3689,7 @@ ${w(o2)}`), a3;
3687
3689
  }
3688
3690
  if (r3 = (e3 = r3 || "").length - e3.length % 4, (e3 = e3.substr(t3.i, r3 - t3.i)).length == 0)
3689
3691
  return;
3690
- t3.i = r3, e3 = jt(e3);
3692
+ t3.i = r3, e3 = It(e3);
3691
3693
  } else {
3692
3694
  if (e3.lastIndexOf("application/grpc", 0) != 0)
3693
3695
  return void Nt(t3, { code: 2, message: "Unknown Content-type received.", metadata: {} });
@@ -3728,11 +3730,11 @@ ${w(o2)}`), a3;
3728
3730
  var i3, s3, a4 = e4, l2 = 0;
3729
3731
  for (i3 = t4 instanceof Uint8Array || t4 instanceof Array ? t4 : new Uint8Array(t4); l2 < i3.length; ) {
3730
3732
  switch (a4.b) {
3731
- case D:
3733
+ case L:
3732
3734
  U(a4, i3, l2, "stream already broken");
3733
3735
  break;
3734
3736
  case M:
3735
- (s3 = i3[l2]) == L || s3 == x ? a4.h = s3 : U(a4, i3, l2, "invalid frame byte"), a4.b = P, a4.a = 0, a4.f = 0;
3737
+ (s3 = i3[l2]) == D || s3 == x ? a4.h = s3 : U(a4, i3, l2, "invalid frame byte"), a4.b = P, a4.a = 0, a4.f = 0;
3736
3738
  break;
3737
3739
  case P:
3738
3740
  r4(i3[l2]);
@@ -3752,8 +3754,8 @@ ${w(o2)}`), a3;
3752
3754
  }
3753
3755
  if (r3)
3754
3756
  for (e3 = 0; e3 < r3.length; e3++) {
3755
- if (L in r3[e3]) {
3756
- var n2 = r3[e3][L];
3757
+ if (D in r3[e3]) {
3758
+ var n2 = r3[e3][D];
3757
3759
  if (n2)
3758
3760
  try {
3759
3761
  var o2 = t3.l(n2);
@@ -3777,7 +3779,7 @@ ${w(o2)}`), a3;
3777
3779
  }
3778
3780
  }
3779
3781
  }
3780
- }), Ie(this.a, "complete", function() {
3782
+ }), je(this.a, "complete", function() {
3781
3783
  var e3 = t3.a.g, r3 = "", n2 = {}, o2 = function(e4) {
3782
3784
  var t4 = {};
3783
3785
  e4 = (e4.a && Et(e4) == 4 && e4.a.getAllResponseHeaders() || "").split("\r\n");
@@ -3867,10 +3869,10 @@ ${w(o2)}`), a3;
3867
3869
  for (t3 = { code: t3.code, details: decodeURIComponent(t3.message || ""), metadata: t3.metadata }, r3 = 0; r3 < e2.h.length; r3++)
3868
3870
  e2.h[r3](t3);
3869
3871
  }
3870
- function Dt(e2) {
3872
+ function Lt(e2) {
3871
3873
  this.a = u("format", e2) || "text", this.f = u("suppressCorsPreflight", e2) || false, this.c = u("withCredentials", e2) || false, this.b = u("streamInterceptors", e2) || [], this.g = u("unaryInterceptors", e2) || [];
3872
3874
  }
3873
- function Lt(e2, t3, r3) {
3875
+ function Dt(e2, t3, r3) {
3874
3876
  var n2 = t3.getMethodDescriptor(), o2 = r3 + n2.name;
3875
3877
  (r3 = new gt()).H = e2.c;
3876
3878
  var i2 = new Mt({ T: r3 });
@@ -3908,7 +3910,7 @@ ${w(o2)}`), a3;
3908
3910
  g2[a3] = n2 % 256, n2 >>>= 8;
3909
3911
  if (s2.set(new Uint8Array(g2), 1), s2.set(t3, 5), t3 = s2, e2.a == "text") {
3910
3912
  var c2;
3911
- for (e2 = t3, c2 === void 0 && (c2 = 0), It(), c2 = At[c2], t3 = [], n2 = 0; n2 < e2.length; n2 += 3) {
3913
+ for (e2 = t3, c2 === void 0 && (c2 = 0), jt(), c2 = At[c2], t3 = [], n2 = 0; n2 < e2.length; n2 += 3) {
3912
3914
  u2 = e2[n2];
3913
3915
  var f2 = (g2 = n2 + 1 < e2.length) ? e2[n2 + 1] : 0;
3914
3916
  a3 = u2 >> 2, u2 = (3 & u2) << 4 | f2 >> 4, f2 = (15 & f2) << 2 | (l2 = (s2 = n2 + 2 < e2.length) ? e2[n2 + 2] : 0) >> 6, l2 &= 63, s2 || (l2 = 64, g2 || (f2 = 64)), t3.push(c2[a3], c2[u2], c2[f2] || "", c2[l2] || "");
@@ -3947,39 +3949,39 @@ ${w(o2)}`), a3;
3947
3949
  return e2 == "data" ? Pt(this.b, t3) : e2 == "status" ? Pt(this.h, t3) : e2 == "metadata" ? Pt(this.g, t3) : e2 == "end" ? Pt(this.c, t3) : e2 == "error" && Pt(this.f, t3), this;
3948
3950
  }, Mt.prototype.cancel = function() {
3949
3951
  this.j = true, this.a.abort();
3950
- }, Mt.prototype.cancel = Mt.prototype.cancel, Mt.prototype.removeListener = Mt.prototype.removeListener, Mt.prototype.on = Mt.prototype.on, Dt.prototype.P = function(e2, t3, r3, n2, o2) {
3952
+ }, Mt.prototype.cancel = Mt.prototype.cancel, Mt.prototype.removeListener = Mt.prototype.removeListener, Mt.prototype.on = Mt.prototype.on, Lt.prototype.P = function(e2, t3, r3, n2, o2) {
3951
3953
  var i2 = this;
3952
3954
  n2 = R(e2, t3, "unary", n2);
3953
3955
  var s2 = e2.substr(0, e2.length - n2.name.length);
3954
3956
  return xt(e2 = Ut(function(e3) {
3955
- return Lt(i2, e3, s2);
3957
+ return Dt(i2, e3, s2);
3956
3958
  }, this.b).call(this, T(n2, t3, r3)), o2, false), new A(e2);
3957
- }, Dt.prototype.M = function(e2, t3, r3, n2) {
3959
+ }, Lt.prototype.M = function(e2, t3, r3, n2) {
3958
3960
  var o2 = this;
3959
3961
  n2 = R(e2, t3, "unary", n2);
3960
3962
  var i2 = e2.substr(0, e2.length - n2.name.length);
3961
3963
  return Ut(function(e3) {
3962
3964
  return new Promise(function(t4, r4) {
3963
3965
  var n3, s2, a3;
3964
- xt(Lt(o2, e3, i2), function(o3, i3, l2, u2) {
3966
+ xt(Dt(o2, e3, i2), function(o3, i3, l2, u2) {
3965
3967
  o3 ? r4(o3) : i3 ? a3 = i3 : l2 ? s2 = l2 : u2 ? n3 = u2 : (o3 = e3.getMethodDescriptor(), t4(new w(a3, o3, i3 = (i3 = n3) === void 0 ? {} : i3, s2 === void 0 ? null : s2)));
3966
3968
  }, true);
3967
3969
  });
3968
3970
  }, this.g).call(this, T(n2, t3, r3)).then(function(e3) {
3969
3971
  return e3.getResponseMessage();
3970
3972
  });
3971
- }, Dt.prototype.unaryCall = function(e2, t3, r3, n2) {
3973
+ }, Lt.prototype.unaryCall = function(e2, t3, r3, n2) {
3972
3974
  return this.M(e2, t3, r3, n2);
3973
- }, Dt.prototype.R = function(e2, t3, r3, n2) {
3975
+ }, Lt.prototype.R = function(e2, t3, r3, n2) {
3974
3976
  var o2 = this;
3975
3977
  n2 = R(e2, t3, "server_streaming", n2);
3976
3978
  var i2 = e2.substr(0, e2.length - n2.name.length);
3977
3979
  return Ut(function(e3) {
3978
- return Lt(o2, e3, i2);
3980
+ return Dt(o2, e3, i2);
3979
3981
  }, this.b).call(this, T(n2, t3, r3));
3980
- }, Dt.prototype.serverStreaming = Dt.prototype.R, Dt.prototype.unaryCall = Dt.prototype.unaryCall, Dt.prototype.thenableCall = Dt.prototype.M, Dt.prototype.rpcCall = Dt.prototype.P, e.exports.AbstractClientBase = { MethodInfo: function(e2, t3, r3, n2, o2) {
3982
+ }, Lt.prototype.serverStreaming = Lt.prototype.R, Lt.prototype.unaryCall = Lt.prototype.unaryCall, Lt.prototype.thenableCall = Lt.prototype.M, Lt.prototype.rpcCall = Lt.prototype.P, e.exports.AbstractClientBase = { MethodInfo: function(e2, t3, r3, n2, o2) {
3981
3983
  this.name = n2, this.b = o2, this.f = e2, this.a = t3, this.c = r3;
3982
- } }, e.exports.GrpcWebClientBase = Dt, e.exports.StatusCode = { OK: 0, CANCELLED: 1, UNKNOWN: 2, INVALID_ARGUMENT: 3, DEADLINE_EXCEEDED: 4, NOT_FOUND: 5, ALREADY_EXISTS: 6, PERMISSION_DENIED: 7, UNAUTHENTICATED: 16, RESOURCE_EXHAUSTED: 8, FAILED_PRECONDITION: 9, ABORTED: 10, OUT_OF_RANGE: 11, UNIMPLEMENTED: 12, INTERNAL: 13, UNAVAILABLE: 14, DATA_LOSS: 15 }, e.exports.MethodDescriptor = E, e.exports.MethodType = { UNARY: "unary", SERVER_STREAMING: "server_streaming" };
3984
+ } }, e.exports.GrpcWebClientBase = Lt, e.exports.StatusCode = { OK: 0, CANCELLED: 1, UNKNOWN: 2, INVALID_ARGUMENT: 3, DEADLINE_EXCEEDED: 4, NOT_FOUND: 5, ALREADY_EXISTS: 6, PERMISSION_DENIED: 7, UNAUTHENTICATED: 16, RESOURCE_EXHAUSTED: 8, FAILED_PRECONDITION: 9, ABORTED: 10, OUT_OF_RANGE: 11, UNIMPLEMENTED: 12, INTERNAL: 13, UNAVAILABLE: 14, DATA_LOSS: 15 }, e.exports.MethodDescriptor = E, e.exports.MethodType = { UNARY: "unary", SERVER_STREAMING: "server_streaming" };
3983
3985
  }).call(this, r(5));
3984
3986
  }, function(e, t, r) {
3985
3987
  Object.defineProperty(t, "__esModule", { value: true }), t.isAsyncIterable = t.isAsyncGenerator = t.isAsync = void 0;
@@ -4399,20 +4401,20 @@ ${w(o2)}`), a3;
4399
4401
  }
4400
4402
  doFetch(e2, t2, r2) {
4401
4403
  return d(this, void 0, void 0, function* () {
4402
- const { token: n2, json: a3, allowUnsafeRetries: u2 } = t2, f2 = y(t2, ["token", "json", "allowUnsafeRetries"]), d2 = (f2.method || "GET").toUpperCase(), b2 = this.endpoint !== void 0 ? `${this.endpoint}${e2 ? `/${e2}` : ""}` : e2, v = new l.a();
4403
- let _;
4404
+ const { token: n2, json: a3, allowUnsafeRetries: u2 } = t2, f2 = y(t2, ["token", "json", "allowUnsafeRetries"]), d2 = (f2.method || "GET").toUpperCase(), b2 = this.endpoint !== void 0 ? `${this.endpoint}${e2 ? `/${e2}` : ""}` : e2, _ = new l.a();
4405
+ let v;
4404
4406
  if (r2) {
4405
4407
  const e3 = r2();
4406
- e3 > 0 ? _ = setTimeout(() => {
4407
- v.abort();
4408
- }, e3) : v.abort();
4408
+ e3 > 0 ? v = setTimeout(() => {
4409
+ _.abort();
4410
+ }, e3) : _.abort();
4409
4411
  }
4410
4412
  try {
4411
4413
  let e3;
4412
4414
  yield Promise.race([this.constructor.waitForConnectivity(), new Promise((t4) => {
4413
4415
  e3 = setTimeout(t4, r2 ? Math.min(s.a.minute, r2()) : s.a.minute);
4414
4416
  })]), e3 && clearTimeout(e3);
4415
- const t3 = yield g()(b2, Object.assign(Object.assign({}, f2), { headers: Object.assign(Object.assign(Object.assign(Object.assign({}, a3 !== false ? { "Content-Type": "application/json" } : {}), this.headers), f2.headers || {}), n2 !== void 0 ? { Authorization: `Bearer ${n2}` } : {}), signal: v.signal })), i2 = t3.headers.get("content-type") || "", l2 = i2 && i2.startsWith("application/json"), u3 = l2 ? yield t3.json() : yield t3.text(), c2 = () => new p(d2, b2, t3.status, u3, u3 && u3.validationErrors || {}, t3.headers);
4417
+ const t3 = yield g()(b2, Object.assign(Object.assign({}, f2), { headers: Object.assign(Object.assign(Object.assign(Object.assign({}, a3 !== false ? { "Content-Type": "application/json" } : {}), this.headers), f2.headers || {}), n2 !== void 0 ? { Authorization: `Bearer ${n2}` } : {}), signal: _.signal })), i2 = t3.headers.get("content-type") || "", l2 = i2 && i2.startsWith("application/json"), u3 = l2 ? yield t3.json() : yield t3.text(), c2 = () => new p(d2, b2, t3.status, u3, u3 && u3.validationErrors || {}, t3.headers);
4416
4418
  if (!t3.ok)
4417
4419
  throw this.verbose && o.a[t3.status >= 500 ? "warn" : "info"]("Response error", { method: d2, url: b2, statusCode: t3.status }), c2();
4418
4420
  const y2 = this.validateHeaders(t3.headers);
@@ -4441,7 +4443,7 @@ ${w(o2)}`), a3;
4441
4443
  throw new h(s2, r3);
4442
4444
  throw yield this.constructor.onResponseError(r3), e3;
4443
4445
  } finally {
4444
- _ && clearTimeout(_);
4446
+ v && clearTimeout(v);
4445
4447
  }
4446
4448
  });
4447
4449
  }
@@ -4625,7 +4627,7 @@ ${w(o2)}`), a3;
4625
4627
  }(e4, r2, n3, t4, o3);
4626
4628
  else {
4627
4629
  var s2 = w(r2);
4628
- s2 || r2.corked || r2.bufferProcessing || !r2.bufferedRequest || S(e4, r2), n3 ? l(_, e4, r2, s2, o3) : _(e4, r2, s2, o3);
4630
+ s2 || r2.corked || r2.bufferProcessing || !r2.bufferedRequest || S(e4, r2), n3 ? l(v, e4, r2, s2, o3) : v(e4, r2, s2, o3);
4629
4631
  }
4630
4632
  }(t3, e3);
4631
4633
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.bufferedRequestCount = 0, this.corkedRequestsFree = new s(this);
@@ -4635,10 +4637,10 @@ ${w(o2)}`), a3;
4635
4637
  return new b(e2);
4636
4638
  this._writableState = new m(e2, this), this.writable = true, e2 && (typeof e2.write == "function" && (this._write = e2.write), typeof e2.writev == "function" && (this._writev = e2.writev), typeof e2.destroy == "function" && (this._destroy = e2.destroy), typeof e2.final == "function" && (this._final = e2.final)), c.call(this);
4637
4639
  }
4638
- function v(e2, t3, r2, n2, o2, i2, s2) {
4640
+ function _(e2, t3, r2, n2, o2, i2, s2) {
4639
4641
  t3.writelen = n2, t3.writecb = s2, t3.writing = true, t3.sync = true, r2 ? e2._writev(o2, t3.onwrite) : e2._write(o2, i2, t3.onwrite), t3.sync = false;
4640
4642
  }
4641
- function _(e2, t3, r2, n2) {
4643
+ function v(e2, t3, r2, n2) {
4642
4644
  r2 || function(e3, t4) {
4643
4645
  t4.length === 0 && t4.needDrain && (t4.needDrain = false, e3.emit("drain"));
4644
4646
  }(e2, t3), t3.pendingcb--, n2(), T(e2, t3);
@@ -4651,11 +4653,11 @@ ${w(o2)}`), a3;
4651
4653
  i2.entry = r2;
4652
4654
  for (var a3 = 0, l2 = true; r2; )
4653
4655
  o2[a3] = r2, r2.isBuf || (l2 = false), r2 = r2.next, a3 += 1;
4654
- o2.allBuffers = l2, v(e2, t3, true, t3.length, o2, "", i2.finish), t3.pendingcb++, t3.lastBufferedRequest = null, i2.next ? (t3.corkedRequestsFree = i2.next, i2.next = null) : t3.corkedRequestsFree = new s(t3), t3.bufferedRequestCount = 0;
4656
+ o2.allBuffers = l2, _(e2, t3, true, t3.length, o2, "", i2.finish), t3.pendingcb++, t3.lastBufferedRequest = null, i2.next ? (t3.corkedRequestsFree = i2.next, i2.next = null) : t3.corkedRequestsFree = new s(t3), t3.bufferedRequestCount = 0;
4655
4657
  } else {
4656
4658
  for (; r2; ) {
4657
4659
  var u2 = r2.chunk, g2 = r2.encoding, c2 = r2.callback;
4658
- if (v(e2, t3, false, t3.objectMode ? 1 : u2.length, u2, g2, c2), r2 = r2.next, t3.bufferedRequestCount--, t3.writing)
4660
+ if (_(e2, t3, false, t3.objectMode ? 1 : u2.length, u2, g2, c2), r2 = r2.next, t3.bufferedRequestCount--, t3.writing)
4659
4661
  break;
4660
4662
  }
4661
4663
  r2 === null && (t3.lastBufferedRequest = null);
@@ -4719,7 +4721,7 @@ ${w(o2)}`), a3;
4719
4721
  var u2 = t4.lastBufferedRequest;
4720
4722
  t4.lastBufferedRequest = { chunk: n3, encoding: o3, isBuf: r3, callback: i2, next: null }, u2 ? u2.next = t4.lastBufferedRequest : t4.bufferedRequest = t4.lastBufferedRequest, t4.bufferedRequestCount += 1;
4721
4723
  } else
4722
- v(e3, t4, false, a4, n3, o3, i2);
4724
+ _(e3, t4, false, a4, n3, o3, i2);
4723
4725
  return l2;
4724
4726
  }(this, o2, a3, e2, t3, r2)), s2;
4725
4727
  }, b.prototype.cork = function() {
@@ -4792,16 +4794,16 @@ ${w(o2)}`), a3;
4792
4794
  function i() {
4793
4795
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
4794
4796
  }
4795
- t.parse = v, t.resolve = function(e2, t2) {
4796
- return v(e2, false, true).resolve(t2);
4797
+ t.parse = _, t.resolve = function(e2, t2) {
4798
+ return _(e2, false, true).resolve(t2);
4797
4799
  }, t.resolveObject = function(e2, t2) {
4798
- return e2 ? v(e2, false, true).resolveObject(t2) : t2;
4800
+ return e2 ? _(e2, false, true).resolveObject(t2) : t2;
4799
4801
  }, t.format = function(e2) {
4800
- o.isString(e2) && (e2 = v(e2));
4802
+ o.isString(e2) && (e2 = _(e2));
4801
4803
  return e2 instanceof i ? e2.format() : i.prototype.format.call(e2);
4802
4804
  }, t.Url = i;
4803
4805
  var s = /^([a-z0-9.+-]+:)/i, a2 = /:[0-9]*$/, l = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, u = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", "\n", " "]), g = ["'"].concat(u), c = ["%", "/", "?", ";", "#"].concat(g), f = ["/", "?", "#"], p = /^[+a-z0-9A-Z_-]{0,63}$/, h = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, d = { javascript: true, "javascript:": true }, y = { javascript: true, "javascript:": true }, m = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true }, b = r(196);
4804
- function v(e2, t2, r2) {
4806
+ function _(e2, t2, r2) {
4805
4807
  if (e2 && o.isObject(e2) && e2 instanceof i)
4806
4808
  return e2;
4807
4809
  var n2 = new i();
@@ -4812,61 +4814,61 @@ ${w(o2)}`), a3;
4812
4814
  throw new TypeError("Parameter 'url' must be a string, not " + typeof e2);
4813
4815
  var i2 = e2.indexOf("?"), a3 = i2 !== -1 && i2 < e2.indexOf("#") ? "?" : "#", u2 = e2.split(a3);
4814
4816
  u2[0] = u2[0].replace(/\\/g, "/");
4815
- var v2 = e2 = u2.join(a3);
4816
- if (v2 = v2.trim(), !r2 && e2.split("#").length === 1) {
4817
- var _ = l.exec(v2);
4818
- if (_)
4819
- return this.path = v2, this.href = v2, this.pathname = _[1], _[2] ? (this.search = _[2], this.query = t2 ? b.parse(this.search.substr(1)) : this.search.substr(1)) : t2 && (this.search = "", this.query = {}), this;
4817
+ var _2 = e2 = u2.join(a3);
4818
+ if (_2 = _2.trim(), !r2 && e2.split("#").length === 1) {
4819
+ var v = l.exec(_2);
4820
+ if (v)
4821
+ return this.path = _2, this.href = _2, this.pathname = v[1], v[2] ? (this.search = v[2], this.query = t2 ? b.parse(this.search.substr(1)) : this.search.substr(1)) : t2 && (this.search = "", this.query = {}), this;
4820
4822
  }
4821
- var S = s.exec(v2);
4823
+ var S = s.exec(_2);
4822
4824
  if (S) {
4823
4825
  var w = (S = S[0]).toLowerCase();
4824
- this.protocol = w, v2 = v2.substr(S.length);
4826
+ this.protocol = w, _2 = _2.substr(S.length);
4825
4827
  }
4826
- if (r2 || S || v2.match(/^\/\/[^@\/]+@[^@\/]+/)) {
4827
- var E = v2.substr(0, 2) === "//";
4828
- !E || S && y[S] || (v2 = v2.substr(2), this.slashes = true);
4828
+ if (r2 || S || _2.match(/^\/\/[^@\/]+@[^@\/]+/)) {
4829
+ var E = _2.substr(0, 2) === "//";
4830
+ !E || S && y[S] || (_2 = _2.substr(2), this.slashes = true);
4829
4831
  }
4830
4832
  if (!y[S] && (E || S && !m[S])) {
4831
4833
  for (var T, R, A = -1, O = 0; O < f.length; O++) {
4832
- (j = v2.indexOf(f[O])) !== -1 && (A === -1 || j < A) && (A = j);
4834
+ (I = _2.indexOf(f[O])) !== -1 && (A === -1 || I < A) && (A = I);
4833
4835
  }
4834
- (R = A === -1 ? v2.lastIndexOf("@") : v2.lastIndexOf("@", A)) !== -1 && (T = v2.slice(0, R), v2 = v2.slice(R + 1), this.auth = decodeURIComponent(T)), A = -1;
4836
+ (R = A === -1 ? _2.lastIndexOf("@") : _2.lastIndexOf("@", A)) !== -1 && (T = _2.slice(0, R), _2 = _2.slice(R + 1), this.auth = decodeURIComponent(T)), A = -1;
4835
4837
  for (O = 0; O < c.length; O++) {
4836
- var j;
4837
- (j = v2.indexOf(c[O])) !== -1 && (A === -1 || j < A) && (A = j);
4838
+ var I;
4839
+ (I = _2.indexOf(c[O])) !== -1 && (A === -1 || I < A) && (A = I);
4838
4840
  }
4839
- A === -1 && (A = v2.length), this.host = v2.slice(0, A), v2 = v2.slice(A), this.parseHost(), this.hostname = this.hostname || "";
4840
- var I = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
4841
- if (!I)
4841
+ A === -1 && (A = _2.length), this.host = _2.slice(0, A), _2 = _2.slice(A), this.parseHost(), this.hostname = this.hostname || "";
4842
+ var j = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
4843
+ if (!j)
4842
4844
  for (var C = this.hostname.split(/\./), M = (O = 0, C.length); O < M; O++) {
4843
4845
  var P = C[O];
4844
4846
  if (P && !P.match(p)) {
4845
- for (var N = "", D = 0, L = P.length; D < L; D++)
4846
- P.charCodeAt(D) > 127 ? N += "x" : N += P[D];
4847
+ for (var N = "", L = 0, D = P.length; L < D; L++)
4848
+ P.charCodeAt(L) > 127 ? N += "x" : N += P[L];
4847
4849
  if (!N.match(p)) {
4848
4850
  var x = C.slice(0, O), U = C.slice(O + 1), B = P.match(h);
4849
- B && (x.push(B[1]), U.unshift(B[2])), U.length && (v2 = "/" + U.join(".") + v2), this.hostname = x.join(".");
4851
+ B && (x.push(B[1]), U.unshift(B[2])), U.length && (_2 = "/" + U.join(".") + _2), this.hostname = x.join(".");
4850
4852
  break;
4851
4853
  }
4852
4854
  }
4853
4855
  }
4854
- this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), I || (this.hostname = n.toASCII(this.hostname));
4856
+ this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), j || (this.hostname = n.toASCII(this.hostname));
4855
4857
  var k = this.port ? ":" + this.port : "", F = this.hostname || "";
4856
- this.host = F + k, this.href += this.host, I && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), v2[0] !== "/" && (v2 = "/" + v2));
4858
+ this.host = F + k, this.href += this.host, j && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), _2[0] !== "/" && (_2 = "/" + _2));
4857
4859
  }
4858
4860
  if (!d[w])
4859
4861
  for (O = 0, M = g.length; O < M; O++) {
4860
4862
  var W = g[O];
4861
- if (v2.indexOf(W) !== -1) {
4863
+ if (_2.indexOf(W) !== -1) {
4862
4864
  var V = encodeURIComponent(W);
4863
- V === W && (V = escape(W)), v2 = v2.split(W).join(V);
4865
+ V === W && (V = escape(W)), _2 = _2.split(W).join(V);
4864
4866
  }
4865
4867
  }
4866
- var H = v2.indexOf("#");
4867
- H !== -1 && (this.hash = v2.substr(H), v2 = v2.slice(0, H));
4868
- var z = v2.indexOf("?");
4869
- if (z !== -1 ? (this.search = v2.substr(z), this.query = v2.substr(z + 1), t2 && (this.query = b.parse(this.query)), v2 = v2.slice(0, z)) : t2 && (this.search = "", this.query = {}), v2 && (this.pathname = v2), m[w] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
4868
+ var H = _2.indexOf("#");
4869
+ H !== -1 && (this.hash = _2.substr(H), _2 = _2.slice(0, H));
4870
+ var z = _2.indexOf("?");
4871
+ if (z !== -1 ? (this.search = _2.substr(z), this.query = _2.substr(z + 1), t2 && (this.query = b.parse(this.query)), _2 = _2.slice(0, z)) : t2 && (this.search = "", this.query = {}), _2 && (this.pathname = _2), m[w] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
4870
4872
  k = this.pathname || "";
4871
4873
  var G = this.search || "";
4872
4874
  this.path = k + G;
@@ -4882,7 +4884,7 @@ ${w(o2)}`), a3;
4882
4884
  return encodeURIComponent(e3);
4883
4885
  })) + (a3 = a3.replace("#", "%23")) + n2;
4884
4886
  }, i.prototype.resolve = function(e2) {
4885
- return this.resolveObject(v(e2, false, true)).format();
4887
+ return this.resolveObject(_(e2, false, true)).format();
4886
4888
  }, i.prototype.resolveObject = function(e2) {
4887
4889
  if (o.isString(e2)) {
4888
4890
  var t2 = new i();
@@ -4922,26 +4924,26 @@ ${w(o2)}`), a3;
4922
4924
  }
4923
4925
  return r2.slashes = r2.slashes || e2.slashes, r2.href = r2.format(), r2;
4924
4926
  }
4925
- var v2 = r2.pathname && r2.pathname.charAt(0) === "/", _ = e2.host || e2.pathname && e2.pathname.charAt(0) === "/", S = _ || v2 || r2.host && e2.pathname, w = S, E = r2.pathname && r2.pathname.split("/") || [], T = (h2 = e2.pathname && e2.pathname.split("/") || [], r2.protocol && !m[r2.protocol]);
4926
- if (T && (r2.hostname = "", r2.port = null, r2.host && (E[0] === "" ? E[0] = r2.host : E.unshift(r2.host)), r2.host = "", e2.protocol && (e2.hostname = null, e2.port = null, e2.host && (h2[0] === "" ? h2[0] = e2.host : h2.unshift(e2.host)), e2.host = null), S = S && (h2[0] === "" || E[0] === "")), _)
4927
+ var _2 = r2.pathname && r2.pathname.charAt(0) === "/", v = e2.host || e2.pathname && e2.pathname.charAt(0) === "/", S = v || _2 || r2.host && e2.pathname, w = S, E = r2.pathname && r2.pathname.split("/") || [], T = (h2 = e2.pathname && e2.pathname.split("/") || [], r2.protocol && !m[r2.protocol]);
4928
+ if (T && (r2.hostname = "", r2.port = null, r2.host && (E[0] === "" ? E[0] = r2.host : E.unshift(r2.host)), r2.host = "", e2.protocol && (e2.hostname = null, e2.port = null, e2.host && (h2[0] === "" ? h2[0] = e2.host : h2.unshift(e2.host)), e2.host = null), S = S && (h2[0] === "" || E[0] === "")), v)
4927
4929
  r2.host = e2.host || e2.host === "" ? e2.host : r2.host, r2.hostname = e2.hostname || e2.hostname === "" ? e2.hostname : r2.hostname, r2.search = e2.search, r2.query = e2.query, E = h2;
4928
4930
  else if (h2.length)
4929
4931
  E || (E = []), E.pop(), E = E.concat(h2), r2.search = e2.search, r2.query = e2.query;
4930
4932
  else if (!o.isNullOrUndefined(e2.search)) {
4931
4933
  if (T)
4932
- r2.hostname = r2.host = E.shift(), (I = !!(r2.host && r2.host.indexOf("@") > 0) && r2.host.split("@")) && (r2.auth = I.shift(), r2.host = r2.hostname = I.shift());
4934
+ r2.hostname = r2.host = E.shift(), (j = !!(r2.host && r2.host.indexOf("@") > 0) && r2.host.split("@")) && (r2.auth = j.shift(), r2.host = r2.hostname = j.shift());
4933
4935
  return r2.search = e2.search, r2.query = e2.query, o.isNull(r2.pathname) && o.isNull(r2.search) || (r2.path = (r2.pathname ? r2.pathname : "") + (r2.search ? r2.search : "")), r2.href = r2.format(), r2;
4934
4936
  }
4935
4937
  if (!E.length)
4936
4938
  return r2.pathname = null, r2.search ? r2.path = "/" + r2.search : r2.path = null, r2.href = r2.format(), r2;
4937
- for (var R = E.slice(-1)[0], A = (r2.host || e2.host || E.length > 1) && (R === "." || R === "..") || R === "", O = 0, j = E.length; j >= 0; j--)
4938
- (R = E[j]) === "." ? E.splice(j, 1) : R === ".." ? (E.splice(j, 1), O++) : O && (E.splice(j, 1), O--);
4939
+ for (var R = E.slice(-1)[0], A = (r2.host || e2.host || E.length > 1) && (R === "." || R === "..") || R === "", O = 0, I = E.length; I >= 0; I--)
4940
+ (R = E[I]) === "." ? E.splice(I, 1) : R === ".." ? (E.splice(I, 1), O++) : O && (E.splice(I, 1), O--);
4939
4941
  if (!S && !w)
4940
4942
  for (; O--; O)
4941
4943
  E.unshift("..");
4942
4944
  !S || E[0] === "" || E[0] && E[0].charAt(0) === "/" || E.unshift(""), A && E.join("/").substr(-1) !== "/" && E.push("");
4943
- var I, C = E[0] === "" || E[0] && E[0].charAt(0) === "/";
4944
- T && (r2.hostname = r2.host = C ? "" : E.length ? E.shift() : "", (I = !!(r2.host && r2.host.indexOf("@") > 0) && r2.host.split("@")) && (r2.auth = I.shift(), r2.host = r2.hostname = I.shift()));
4945
+ var j, C = E[0] === "" || E[0] && E[0].charAt(0) === "/";
4946
+ T && (r2.hostname = r2.host = C ? "" : E.length ? E.shift() : "", (j = !!(r2.host && r2.host.indexOf("@") > 0) && r2.host.split("@")) && (r2.auth = j.shift(), r2.host = r2.hostname = j.shift()));
4945
4947
  return (S = S || r2.host && E.length) && !C && E.unshift(""), E.length ? r2.pathname = E.join("/") : (r2.pathname = null, r2.path = null), o.isNull(r2.pathname) && o.isNull(r2.search) || (r2.path = (r2.pathname ? r2.pathname : "") + (r2.search ? r2.search : "")), r2.auth = e2.auth || r2.auth, r2.slashes = r2.slashes || e2.slashes, r2.href = r2.format(), r2;
4946
4948
  }, i.prototype.parseHost = function() {
4947
4949
  var e2 = this.host, t2 = a2.exec(e2);
@@ -5111,7 +5113,7 @@ ${w(o2)}`), a3;
5111
5113
  return JSON.stringify(e2, r(t2, o), n);
5112
5114
  }).getSerialize = r;
5113
5115
  }, function(e, t, r) {
5114
- r(227), e.exports = { encode: (e2) => new TextEncoder().encode(e2), decode: (e2) => new TextDecoder().decode(e2) };
5116
+ r(225), e.exports = { encode: (e2) => new TextEncoder().encode(e2), decode: (e2) => new TextDecoder().decode(e2) };
5115
5117
  }, function(e, t, r) {
5116
5118
  var n = t.format = r(9);
5117
5119
  t.levels = r(104), Object.defineProperty(n, "align", { value: r(121) }), Object.defineProperty(n, "cli", { value: r(122) }), Object.defineProperty(n, "combine", { value: r(123) }), Object.defineProperty(n, "colorize", { value: r(37) }), Object.defineProperty(n, "json", { value: r(124) }), Object.defineProperty(n, "label", { value: r(127) }), Object.defineProperty(n, "logstash", { value: r(128) }), Object.defineProperty(n, "metadata", { value: r(129) }), Object.defineProperty(n, "padLevels", { value: r(58) }), Object.defineProperty(n, "prettyPrint", { value: r(130) }), Object.defineProperty(n, "printf", { value: r(131) }), Object.defineProperty(n, "simple", { value: r(132) }), Object.defineProperty(n, "splat", { value: r(133) }), Object.defineProperty(n, "timestamp", { value: r(134) }), Object.defineProperty(n, "uncolorize", { value: r(136) });
@@ -5255,7 +5257,7 @@ ${w(o2)}`), a3;
5255
5257
  }(e4, r2, n3, t4, o3);
5256
5258
  else {
5257
5259
  var s2 = w(r2);
5258
- s2 || r2.corked || r2.bufferProcessing || !r2.bufferedRequest || S(e4, r2), n3 ? l(_, e4, r2, s2, o3) : _(e4, r2, s2, o3);
5260
+ s2 || r2.corked || r2.bufferProcessing || !r2.bufferedRequest || S(e4, r2), n3 ? l(v, e4, r2, s2, o3) : v(e4, r2, s2, o3);
5259
5261
  }
5260
5262
  }(t3, e3);
5261
5263
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.bufferedRequestCount = 0, this.corkedRequestsFree = new s(this);
@@ -5265,10 +5267,10 @@ ${w(o2)}`), a3;
5265
5267
  return new b(e2);
5266
5268
  this._writableState = new m(e2, this), this.writable = true, e2 && (typeof e2.write == "function" && (this._write = e2.write), typeof e2.writev == "function" && (this._writev = e2.writev), typeof e2.destroy == "function" && (this._destroy = e2.destroy), typeof e2.final == "function" && (this._final = e2.final)), c.call(this);
5267
5269
  }
5268
- function v(e2, t3, r2, n2, o2, i2, s2) {
5270
+ function _(e2, t3, r2, n2, o2, i2, s2) {
5269
5271
  t3.writelen = n2, t3.writecb = s2, t3.writing = true, t3.sync = true, r2 ? e2._writev(o2, t3.onwrite) : e2._write(o2, i2, t3.onwrite), t3.sync = false;
5270
5272
  }
5271
- function _(e2, t3, r2, n2) {
5273
+ function v(e2, t3, r2, n2) {
5272
5274
  r2 || function(e3, t4) {
5273
5275
  t4.length === 0 && t4.needDrain && (t4.needDrain = false, e3.emit("drain"));
5274
5276
  }(e2, t3), t3.pendingcb--, n2(), T(e2, t3);
@@ -5281,11 +5283,11 @@ ${w(o2)}`), a3;
5281
5283
  i2.entry = r2;
5282
5284
  for (var a3 = 0, l2 = true; r2; )
5283
5285
  o2[a3] = r2, r2.isBuf || (l2 = false), r2 = r2.next, a3 += 1;
5284
- o2.allBuffers = l2, v(e2, t3, true, t3.length, o2, "", i2.finish), t3.pendingcb++, t3.lastBufferedRequest = null, i2.next ? (t3.corkedRequestsFree = i2.next, i2.next = null) : t3.corkedRequestsFree = new s(t3), t3.bufferedRequestCount = 0;
5286
+ o2.allBuffers = l2, _(e2, t3, true, t3.length, o2, "", i2.finish), t3.pendingcb++, t3.lastBufferedRequest = null, i2.next ? (t3.corkedRequestsFree = i2.next, i2.next = null) : t3.corkedRequestsFree = new s(t3), t3.bufferedRequestCount = 0;
5285
5287
  } else {
5286
5288
  for (; r2; ) {
5287
5289
  var u2 = r2.chunk, g2 = r2.encoding, c2 = r2.callback;
5288
- if (v(e2, t3, false, t3.objectMode ? 1 : u2.length, u2, g2, c2), r2 = r2.next, t3.bufferedRequestCount--, t3.writing)
5290
+ if (_(e2, t3, false, t3.objectMode ? 1 : u2.length, u2, g2, c2), r2 = r2.next, t3.bufferedRequestCount--, t3.writing)
5289
5291
  break;
5290
5292
  }
5291
5293
  r2 === null && (t3.lastBufferedRequest = null);
@@ -5349,7 +5351,7 @@ ${w(o2)}`), a3;
5349
5351
  var u2 = t4.lastBufferedRequest;
5350
5352
  t4.lastBufferedRequest = { chunk: n3, encoding: o3, isBuf: r3, callback: i2, next: null }, u2 ? u2.next = t4.lastBufferedRequest : t4.bufferedRequest = t4.lastBufferedRequest, t4.bufferedRequestCount += 1;
5351
5353
  } else
5352
- v(e3, t4, false, a4, n3, o3, i2);
5354
+ _(e3, t4, false, a4, n3, o3, i2);
5353
5355
  return l2;
5354
5356
  }(this, o2, a3, e2, t3, r2)), s2;
5355
5357
  }, b.prototype.cork = function() {
@@ -5426,9 +5428,9 @@ ${w(o2)}`), a3;
5426
5428
  }, function(e, t, r) {
5427
5429
  (function(t2, n) {
5428
5430
  var o = r(13);
5429
- e.exports = v;
5431
+ e.exports = _;
5430
5432
  var i, s = r(38);
5431
- v.ReadableState = b;
5433
+ _.ReadableState = b;
5432
5434
  r(18).EventEmitter;
5433
5435
  var a2 = function(e2, t3) {
5434
5436
  return e2.listeners(t3).length;
@@ -5440,7 +5442,7 @@ ${w(o2)}`), a3;
5440
5442
  p = f && f.debuglog ? f.debuglog("stream") : function() {
5441
5443
  };
5442
5444
  var h, d = r(162), y = r(69);
5443
- c.inherits(v, l);
5445
+ c.inherits(_, l);
5444
5446
  var m = ["error", "close", "destroy", "pause", "resume"];
5445
5447
  function b(e2, t3) {
5446
5448
  e2 = e2 || {};
@@ -5449,12 +5451,12 @@ ${w(o2)}`), a3;
5449
5451
  var o2 = e2.highWaterMark, s2 = e2.readableHighWaterMark, a3 = this.objectMode ? 16 : 16384;
5450
5452
  this.highWaterMark = o2 || o2 === 0 ? o2 : n2 && (s2 || s2 === 0) ? s2 : a3, this.highWaterMark = Math.floor(this.highWaterMark), this.buffer = new d(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this.destroyed = false, this.defaultEncoding = e2.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = false, this.decoder = null, this.encoding = null, e2.encoding && (h || (h = r(19).StringDecoder), this.decoder = new h(e2.encoding), this.encoding = e2.encoding);
5451
5453
  }
5452
- function v(e2) {
5453
- if (i = i || r(20), !(this instanceof v))
5454
- return new v(e2);
5454
+ function _(e2) {
5455
+ if (i = i || r(20), !(this instanceof _))
5456
+ return new _(e2);
5455
5457
  this._readableState = new b(e2, this), this.readable = true, e2 && (typeof e2.read == "function" && (this._read = e2.read), typeof e2.destroy == "function" && (this._destroy = e2.destroy)), l.call(this);
5456
5458
  }
5457
- function _(e2, t3, r2, n2, o2) {
5459
+ function v(e2, t3, r2, n2, o2) {
5458
5460
  var i2, s2 = e2._readableState;
5459
5461
  t3 === null ? (s2.reading = false, function(e3, t4) {
5460
5462
  if (t4.ended)
@@ -5479,20 +5481,20 @@ ${w(o2)}`), a3;
5479
5481
  function S(e2, t3, r2, n2) {
5480
5482
  t3.flowing && t3.length === 0 && !t3.sync ? (e2.emit("data", r2), e2.read(0)) : (t3.length += t3.objectMode ? 1 : r2.length, n2 ? t3.buffer.unshift(r2) : t3.buffer.push(r2), t3.needReadable && E(e2)), R(e2, t3);
5481
5483
  }
5482
- Object.defineProperty(v.prototype, "destroyed", { get: function() {
5484
+ Object.defineProperty(_.prototype, "destroyed", { get: function() {
5483
5485
  return this._readableState !== void 0 && this._readableState.destroyed;
5484
5486
  }, set: function(e2) {
5485
5487
  this._readableState && (this._readableState.destroyed = e2);
5486
- } }), v.prototype.destroy = y.destroy, v.prototype._undestroy = y.undestroy, v.prototype._destroy = function(e2, t3) {
5488
+ } }), _.prototype.destroy = y.destroy, _.prototype._undestroy = y.undestroy, _.prototype._destroy = function(e2, t3) {
5487
5489
  this.push(null), t3(e2);
5488
- }, v.prototype.push = function(e2, t3) {
5490
+ }, _.prototype.push = function(e2, t3) {
5489
5491
  var r2, n2 = this._readableState;
5490
- return n2.objectMode ? r2 = true : typeof e2 == "string" && ((t3 = t3 || n2.defaultEncoding) !== n2.encoding && (e2 = u.from(e2, t3), t3 = ""), r2 = true), _(this, e2, t3, false, r2);
5491
- }, v.prototype.unshift = function(e2) {
5492
- return _(this, e2, null, true, false);
5493
- }, v.prototype.isPaused = function() {
5492
+ return n2.objectMode ? r2 = true : typeof e2 == "string" && ((t3 = t3 || n2.defaultEncoding) !== n2.encoding && (e2 = u.from(e2, t3), t3 = ""), r2 = true), v(this, e2, t3, false, r2);
5493
+ }, _.prototype.unshift = function(e2) {
5494
+ return v(this, e2, null, true, false);
5495
+ }, _.prototype.isPaused = function() {
5494
5496
  return this._readableState.flowing === false;
5495
- }, v.prototype.setEncoding = function(e2) {
5497
+ }, _.prototype.setEncoding = function(e2) {
5496
5498
  return h || (h = r(19).StringDecoder), this._readableState.decoder = new h(e2), this._readableState.encoding = e2, this;
5497
5499
  };
5498
5500
  function w(e2, t3) {
@@ -5505,7 +5507,7 @@ ${w(o2)}`), a3;
5505
5507
  t3.needReadable = false, t3.emittedReadable || (p("emitReadable", t3.flowing), t3.emittedReadable = true, t3.sync ? o.nextTick(T, e2) : T(e2));
5506
5508
  }
5507
5509
  function T(e2) {
5508
- p("emit readable"), e2.emit("readable"), I(e2);
5510
+ p("emit readable"), e2.emit("readable"), j(e2);
5509
5511
  }
5510
5512
  function R(e2, t3) {
5511
5513
  t3.readingMore || (t3.readingMore = true, o.nextTick(A, e2, t3));
@@ -5518,10 +5520,10 @@ ${w(o2)}`), a3;
5518
5520
  function O(e2) {
5519
5521
  p("readable nexttick read 0"), e2.read(0);
5520
5522
  }
5521
- function j(e2, t3) {
5522
- t3.reading || (p("resume read 0"), e2.read(0)), t3.resumeScheduled = false, t3.awaitDrain = 0, e2.emit("resume"), I(e2), t3.flowing && !t3.reading && e2.read(0);
5523
+ function I(e2, t3) {
5524
+ t3.reading || (p("resume read 0"), e2.read(0)), t3.resumeScheduled = false, t3.awaitDrain = 0, e2.emit("resume"), j(e2), t3.flowing && !t3.reading && e2.read(0);
5523
5525
  }
5524
- function I(e2) {
5526
+ function j(e2) {
5525
5527
  var t3 = e2._readableState;
5526
5528
  for (p("flow", t3.flowing); t3.flowing && e2.read() !== null; )
5527
5529
  ;
@@ -5573,7 +5575,7 @@ ${w(o2)}`), a3;
5573
5575
  return r2;
5574
5576
  return -1;
5575
5577
  }
5576
- v.prototype.read = function(e2) {
5578
+ _.prototype.read = function(e2) {
5577
5579
  p("read", e2), e2 = parseInt(e2, 10);
5578
5580
  var t3 = this._readableState, r2 = e2;
5579
5581
  if (e2 !== 0 && (t3.emittedReadable = false), e2 === 0 && t3.needReadable && (t3.length >= t3.highWaterMark || t3.ended))
@@ -5582,9 +5584,9 @@ ${w(o2)}`), a3;
5582
5584
  return t3.length === 0 && M(this), null;
5583
5585
  var n2, o2 = t3.needReadable;
5584
5586
  return p("need readable", o2), (t3.length === 0 || t3.length - e2 < t3.highWaterMark) && p("length less than watermark", o2 = true), t3.ended || t3.reading ? p("reading or ended", o2 = false) : o2 && (p("do read"), t3.reading = true, t3.sync = true, t3.length === 0 && (t3.needReadable = true), this._read(t3.highWaterMark), t3.sync = false, t3.reading || (e2 = w(r2, t3))), (n2 = e2 > 0 ? C(e2, t3) : null) === null ? (t3.needReadable = true, e2 = 0) : t3.length -= e2, t3.length === 0 && (t3.ended || (t3.needReadable = true), r2 !== e2 && t3.ended && M(this)), n2 !== null && this.emit("data", n2), n2;
5585
- }, v.prototype._read = function(e2) {
5587
+ }, _.prototype._read = function(e2) {
5586
5588
  this.emit("error", new Error("_read() is not implemented"));
5587
- }, v.prototype.pipe = function(e2, t3) {
5589
+ }, _.prototype.pipe = function(e2, t3) {
5588
5590
  var r2 = this, i2 = this._readableState;
5589
5591
  switch (i2.pipesCount) {
5590
5592
  case 0:
@@ -5597,9 +5599,9 @@ ${w(o2)}`), a3;
5597
5599
  i2.pipes.push(e2);
5598
5600
  }
5599
5601
  i2.pipesCount += 1, p("pipe count=%d opts=%j", i2.pipesCount, t3);
5600
- var l2 = (!t3 || t3.end !== false) && e2 !== n.stdout && e2 !== n.stderr ? g2 : v2;
5602
+ var l2 = (!t3 || t3.end !== false) && e2 !== n.stdout && e2 !== n.stderr ? g2 : _2;
5601
5603
  function u2(t4, n2) {
5602
- p("onunpipe"), t4 === r2 && n2 && n2.hasUnpiped === false && (n2.hasUnpiped = true, p("cleanup"), e2.removeListener("close", m2), e2.removeListener("finish", b2), e2.removeListener("drain", c2), e2.removeListener("error", y2), e2.removeListener("unpipe", u2), r2.removeListener("end", g2), r2.removeListener("end", v2), r2.removeListener("data", d2), f2 = true, !i2.awaitDrain || e2._writableState && !e2._writableState.needDrain || c2());
5604
+ p("onunpipe"), t4 === r2 && n2 && n2.hasUnpiped === false && (n2.hasUnpiped = true, p("cleanup"), e2.removeListener("close", m2), e2.removeListener("finish", b2), e2.removeListener("drain", c2), e2.removeListener("error", y2), e2.removeListener("unpipe", u2), r2.removeListener("end", g2), r2.removeListener("end", _2), r2.removeListener("data", d2), f2 = true, !i2.awaitDrain || e2._writableState && !e2._writableState.needDrain || c2());
5603
5605
  }
5604
5606
  function g2() {
5605
5607
  p("onend"), e2.end();
@@ -5608,7 +5610,7 @@ ${w(o2)}`), a3;
5608
5610
  var c2 = function(e3) {
5609
5611
  return function() {
5610
5612
  var t4 = e3._readableState;
5611
- p("pipeOnDrain", t4.awaitDrain), t4.awaitDrain && t4.awaitDrain--, t4.awaitDrain === 0 && a2(e3, "data") && (t4.flowing = true, I(e3));
5613
+ p("pipeOnDrain", t4.awaitDrain), t4.awaitDrain && t4.awaitDrain--, t4.awaitDrain === 0 && a2(e3, "data") && (t4.flowing = true, j(e3));
5612
5614
  };
5613
5615
  }(r2);
5614
5616
  e2.on("drain", c2);
@@ -5618,15 +5620,15 @@ ${w(o2)}`), a3;
5618
5620
  p("ondata"), h2 = false, e2.write(t4) !== false || h2 || ((i2.pipesCount === 1 && i2.pipes === e2 || i2.pipesCount > 1 && N(i2.pipes, e2) !== -1) && !f2 && (p("false write response, pause", r2._readableState.awaitDrain), r2._readableState.awaitDrain++, h2 = true), r2.pause());
5619
5621
  }
5620
5622
  function y2(t4) {
5621
- p("onerror", t4), v2(), e2.removeListener("error", y2), a2(e2, "error") === 0 && e2.emit("error", t4);
5623
+ p("onerror", t4), _2(), e2.removeListener("error", y2), a2(e2, "error") === 0 && e2.emit("error", t4);
5622
5624
  }
5623
5625
  function m2() {
5624
- e2.removeListener("finish", b2), v2();
5626
+ e2.removeListener("finish", b2), _2();
5625
5627
  }
5626
5628
  function b2() {
5627
- p("onfinish"), e2.removeListener("close", m2), v2();
5629
+ p("onfinish"), e2.removeListener("close", m2), _2();
5628
5630
  }
5629
- function v2() {
5631
+ function _2() {
5630
5632
  p("unpipe"), r2.unpipe(e2);
5631
5633
  }
5632
5634
  return r2.on("data", d2), function(e3, t4, r3) {
@@ -5634,7 +5636,7 @@ ${w(o2)}`), a3;
5634
5636
  return e3.prependListener(t4, r3);
5635
5637
  e3._events && e3._events[t4] ? s(e3._events[t4]) ? e3._events[t4].unshift(r3) : e3._events[t4] = [r3, e3._events[t4]] : e3.on(t4, r3);
5636
5638
  }(e2, "error", y2), e2.once("close", m2), e2.once("finish", b2), e2.emit("pipe", r2), i2.flowing || (p("pipe resume"), r2.resume()), e2;
5637
- }, v.prototype.unpipe = function(e2) {
5639
+ }, _.prototype.unpipe = function(e2) {
5638
5640
  var t3 = this._readableState, r2 = { hasUnpiped: false };
5639
5641
  if (t3.pipesCount === 0)
5640
5642
  return this;
@@ -5649,7 +5651,7 @@ ${w(o2)}`), a3;
5649
5651
  }
5650
5652
  var s2 = N(t3.pipes, e2);
5651
5653
  return s2 === -1 || (t3.pipes.splice(s2, 1), t3.pipesCount -= 1, t3.pipesCount === 1 && (t3.pipes = t3.pipes[0]), e2.emit("unpipe", this, r2)), this;
5652
- }, v.prototype.on = function(e2, t3) {
5654
+ }, _.prototype.on = function(e2, t3) {
5653
5655
  var r2 = l.prototype.on.call(this, e2, t3);
5654
5656
  if (e2 === "data")
5655
5657
  this._readableState.flowing !== false && this.resume();
@@ -5658,14 +5660,14 @@ ${w(o2)}`), a3;
5658
5660
  n2.endEmitted || n2.readableListening || (n2.readableListening = n2.needReadable = true, n2.emittedReadable = false, n2.reading ? n2.length && E(this) : o.nextTick(O, this));
5659
5661
  }
5660
5662
  return r2;
5661
- }, v.prototype.addListener = v.prototype.on, v.prototype.resume = function() {
5663
+ }, _.prototype.addListener = _.prototype.on, _.prototype.resume = function() {
5662
5664
  var e2 = this._readableState;
5663
5665
  return e2.flowing || (p("resume"), e2.flowing = true, function(e3, t3) {
5664
- t3.resumeScheduled || (t3.resumeScheduled = true, o.nextTick(j, e3, t3));
5666
+ t3.resumeScheduled || (t3.resumeScheduled = true, o.nextTick(I, e3, t3));
5665
5667
  }(this, e2)), this;
5666
- }, v.prototype.pause = function() {
5668
+ }, _.prototype.pause = function() {
5667
5669
  return p("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== false && (p("pause"), this._readableState.flowing = false, this.emit("pause")), this;
5668
- }, v.prototype.wrap = function(e2) {
5670
+ }, _.prototype.wrap = function(e2) {
5669
5671
  var t3 = this, r2 = this._readableState, n2 = false;
5670
5672
  for (var o2 in e2.on("end", function() {
5671
5673
  if (p("wrapped end"), r2.decoder && !r2.ended) {
@@ -5686,9 +5688,9 @@ ${w(o2)}`), a3;
5686
5688
  return this._read = function(t4) {
5687
5689
  p("wrapped _read", t4), n2 && (n2 = false, e2.resume());
5688
5690
  }, this;
5689
- }, Object.defineProperty(v.prototype, "readableHighWaterMark", { enumerable: false, get: function() {
5691
+ }, Object.defineProperty(_.prototype, "readableHighWaterMark", { enumerable: false, get: function() {
5690
5692
  return this._readableState.highWaterMark;
5691
- } }), v._fromList = C;
5693
+ } }), _._fromList = C;
5692
5694
  }).call(this, r(5), r(2));
5693
5695
  }, function(e, t, r) {
5694
5696
  e.exports = r(18).EventEmitter;
@@ -5807,7 +5809,7 @@ ${w(o2)}`), a3;
5807
5809
  function b(e2, t3) {
5808
5810
  e2 || m(e2, true, t3, "==", f.ok);
5809
5811
  }
5810
- function v(e2, t3, r2, n2) {
5812
+ function _(e2, t3, r2, n2) {
5811
5813
  if (e2 === t3)
5812
5814
  return true;
5813
5815
  if (i(e2) && i(t3))
@@ -5829,11 +5831,11 @@ ${w(o2)}`), a3;
5829
5831
  return e3 === t4;
5830
5832
  if (r3 && Object.getPrototypeOf(e3) !== Object.getPrototypeOf(t4))
5831
5833
  return false;
5832
- var o2 = _(e3), i2 = _(t4);
5834
+ var o2 = v(e3), i2 = v(t4);
5833
5835
  if (o2 && !i2 || !o2 && i2)
5834
5836
  return false;
5835
5837
  if (o2)
5836
- return e3 = l.call(e3), t4 = l.call(t4), v(e3, t4, r3);
5838
+ return e3 = l.call(e3), t4 = l.call(t4), _(e3, t4, r3);
5837
5839
  var a4, u2, g2 = E(e3), c2 = E(t4);
5838
5840
  if (g2.length !== c2.length)
5839
5841
  return false;
@@ -5841,14 +5843,14 @@ ${w(o2)}`), a3;
5841
5843
  if (g2[u2] !== c2[u2])
5842
5844
  return false;
5843
5845
  for (u2 = g2.length - 1; u2 >= 0; u2--)
5844
- if (a4 = g2[u2], !v(e3[a4], t4[a4], r3, n3))
5846
+ if (a4 = g2[u2], !_(e3[a4], t4[a4], r3, n3))
5845
5847
  return false;
5846
5848
  return true;
5847
5849
  }(e2, t3, r2, n2));
5848
5850
  }
5849
5851
  return r2 ? e2 === t3 : e2 == t3;
5850
5852
  }
5851
- function _(e2) {
5853
+ function v(e2) {
5852
5854
  return Object.prototype.toString.call(e2) == "[object Arguments]";
5853
5855
  }
5854
5856
  function S(e2, t3) {
@@ -5903,13 +5905,13 @@ ${w(o2)}`), a3;
5903
5905
  }, f.notEqual = function(e2, t3, r2) {
5904
5906
  e2 == t3 && m(e2, t3, r2, "!=", f.notEqual);
5905
5907
  }, f.deepEqual = function(e2, t3, r2) {
5906
- v(e2, t3, false) || m(e2, t3, r2, "deepEqual", f.deepEqual);
5908
+ _(e2, t3, false) || m(e2, t3, r2, "deepEqual", f.deepEqual);
5907
5909
  }, f.deepStrictEqual = function(e2, t3, r2) {
5908
- v(e2, t3, true) || m(e2, t3, r2, "deepStrictEqual", f.deepStrictEqual);
5910
+ _(e2, t3, true) || m(e2, t3, r2, "deepStrictEqual", f.deepStrictEqual);
5909
5911
  }, f.notDeepEqual = function(e2, t3, r2) {
5910
- v(e2, t3, false) && m(e2, t3, r2, "notDeepEqual", f.notDeepEqual);
5912
+ _(e2, t3, false) && m(e2, t3, r2, "notDeepEqual", f.notDeepEqual);
5911
5913
  }, f.notDeepStrictEqual = function e2(t3, r2, n2) {
5912
- v(t3, r2, true) && m(t3, r2, n2, "notDeepStrictEqual", e2);
5914
+ _(t3, r2, true) && m(t3, r2, n2, "notDeepStrictEqual", e2);
5913
5915
  }, f.strictEqual = function(e2, t3, r2) {
5914
5916
  e2 !== t3 && m(e2, t3, r2, "===", f.strictEqual);
5915
5917
  }, f.notStrictEqual = function(e2, t3, r2) {
@@ -5971,7 +5973,7 @@ ${w(o2)}`), a3;
5971
5973
  var u, g = r(178);
5972
5974
  u = g && g.debuglog ? g.debuglog("stream") : function() {
5973
5975
  };
5974
- var c, f, p, h = r(179), d = r(77), y = r(78).getHighWaterMark, m = r(23).codes, b = m.ERR_INVALID_ARG_TYPE, v = m.ERR_STREAM_PUSH_AFTER_EOF, _ = m.ERR_METHOD_NOT_IMPLEMENTED, S = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
5976
+ var c, f, p, h = r(179), d = r(77), y = r(78).getHighWaterMark, m = r(23).codes, b = m.ERR_INVALID_ARG_TYPE, _ = m.ERR_STREAM_PUSH_AFTER_EOF, v = m.ERR_METHOD_NOT_IMPLEMENTED, S = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
5975
5977
  r(7)(R, s);
5976
5978
  var w = d.errorOrDestroy, E = ["error", "close", "destroy", "pause", "resume"];
5977
5979
  function T(e2, t3, n2) {
@@ -5994,7 +5996,7 @@ ${w(o2)}`), a3;
5994
5996
  var r3 = t4.decoder.end();
5995
5997
  r3 && r3.length && (t4.buffer.push(r3), t4.length += t4.objectMode ? 1 : r3.length);
5996
5998
  }
5997
- t4.ended = true, t4.sync ? I(e3) : (t4.needReadable = false, t4.emittedReadable || (t4.emittedReadable = true, C(e3)));
5999
+ t4.ended = true, t4.sync ? j(e3) : (t4.needReadable = false, t4.emittedReadable || (t4.emittedReadable = true, C(e3)));
5998
6000
  }(e2, s2);
5999
6001
  else if (o2 || (i2 = function(e3, t4) {
6000
6002
  var r3;
@@ -6009,7 +6011,7 @@ ${w(o2)}`), a3;
6009
6011
  }(t3)), n2)
6010
6012
  s2.endEmitted ? w(e2, new S()) : O(e2, s2, t3, true);
6011
6013
  else if (s2.ended)
6012
- w(e2, new v());
6014
+ w(e2, new _());
6013
6015
  else {
6014
6016
  if (s2.destroyed)
6015
6017
  return false;
@@ -6020,7 +6022,7 @@ ${w(o2)}`), a3;
6020
6022
  return !s2.ended && (s2.length < s2.highWaterMark || s2.length === 0);
6021
6023
  }
6022
6024
  function O(e2, t3, r2, n2) {
6023
- t3.flowing && t3.length === 0 && !t3.sync ? (t3.awaitDrain = 0, e2.emit("data", r2)) : (t3.length += t3.objectMode ? 1 : r2.length, n2 ? t3.buffer.unshift(r2) : t3.buffer.push(r2), t3.needReadable && I(e2)), M(e2, t3);
6025
+ t3.flowing && t3.length === 0 && !t3.sync ? (t3.awaitDrain = 0, e2.emit("data", r2)) : (t3.length += t3.objectMode ? 1 : r2.length, n2 ? t3.buffer.unshift(r2) : t3.buffer.push(r2), t3.needReadable && j(e2)), M(e2, t3);
6024
6026
  }
6025
6027
  Object.defineProperty(R.prototype, "destroyed", { enumerable: false, get: function() {
6026
6028
  return this._readableState !== void 0 && this._readableState.destroyed;
@@ -6043,12 +6045,12 @@ ${w(o2)}`), a3;
6043
6045
  o2 += t3.write(n2.data), n2 = n2.next;
6044
6046
  return this._readableState.buffer.clear(), o2 !== "" && this._readableState.buffer.push(o2), this._readableState.length = o2.length, this;
6045
6047
  };
6046
- function j(e2, t3) {
6048
+ function I(e2, t3) {
6047
6049
  return e2 <= 0 || t3.length === 0 && t3.ended ? 0 : t3.objectMode ? 1 : e2 != e2 ? t3.flowing && t3.length ? t3.buffer.head.data.length : t3.length : (e2 > t3.highWaterMark && (t3.highWaterMark = function(e3) {
6048
6050
  return e3 >= 1073741824 ? e3 = 1073741824 : (e3--, e3 |= e3 >>> 1, e3 |= e3 >>> 2, e3 |= e3 >>> 4, e3 |= e3 >>> 8, e3 |= e3 >>> 16, e3++), e3;
6049
6051
  }(e2)), e2 <= t3.length ? e2 : t3.ended ? t3.length : (t3.needReadable = true, 0));
6050
6052
  }
6051
- function I(e2) {
6053
+ function j(e2) {
6052
6054
  var t3 = e2._readableState;
6053
6055
  u("emitReadable", t3.needReadable, t3.emittedReadable), t3.needReadable = false, t3.emittedReadable || (u("emitReadable", t3.flowing), t3.emittedReadable = true, n.nextTick(C, e2));
6054
6056
  }
@@ -6071,10 +6073,10 @@ ${w(o2)}`), a3;
6071
6073
  var t3 = e2._readableState;
6072
6074
  t3.readableListening = e2.listenerCount("readable") > 0, t3.resumeScheduled && !t3.paused ? t3.flowing = true : e2.listenerCount("data") > 0 && e2.resume();
6073
6075
  }
6074
- function D(e2) {
6076
+ function L(e2) {
6075
6077
  u("readable nexttick read 0"), e2.read(0);
6076
6078
  }
6077
- function L(e2, t3) {
6079
+ function D(e2, t3) {
6078
6080
  u("resume", t3.reading), t3.reading || e2.read(0), t3.resumeScheduled = false, e2.emit("resume"), x(e2), t3.flowing && !t3.reading && e2.read(0);
6079
6081
  }
6080
6082
  function x(e2) {
@@ -6106,13 +6108,13 @@ ${w(o2)}`), a3;
6106
6108
  u("read", e2), e2 = parseInt(e2, 10);
6107
6109
  var t3 = this._readableState, r2 = e2;
6108
6110
  if (e2 !== 0 && (t3.emittedReadable = false), e2 === 0 && t3.needReadable && ((t3.highWaterMark !== 0 ? t3.length >= t3.highWaterMark : t3.length > 0) || t3.ended))
6109
- return u("read: emitReadable", t3.length, t3.ended), t3.length === 0 && t3.ended ? B(this) : I(this), null;
6110
- if ((e2 = j(e2, t3)) === 0 && t3.ended)
6111
+ return u("read: emitReadable", t3.length, t3.ended), t3.length === 0 && t3.ended ? B(this) : j(this), null;
6112
+ if ((e2 = I(e2, t3)) === 0 && t3.ended)
6111
6113
  return t3.length === 0 && B(this), null;
6112
6114
  var n2, o2 = t3.needReadable;
6113
- return u("need readable", o2), (t3.length === 0 || t3.length - e2 < t3.highWaterMark) && u("length less than watermark", o2 = true), t3.ended || t3.reading ? u("reading or ended", o2 = false) : o2 && (u("do read"), t3.reading = true, t3.sync = true, t3.length === 0 && (t3.needReadable = true), this._read(t3.highWaterMark), t3.sync = false, t3.reading || (e2 = j(r2, t3))), (n2 = e2 > 0 ? U(e2, t3) : null) === null ? (t3.needReadable = t3.length <= t3.highWaterMark, e2 = 0) : (t3.length -= e2, t3.awaitDrain = 0), t3.length === 0 && (t3.ended || (t3.needReadable = true), r2 !== e2 && t3.ended && B(this)), n2 !== null && this.emit("data", n2), n2;
6115
+ return u("need readable", o2), (t3.length === 0 || t3.length - e2 < t3.highWaterMark) && u("length less than watermark", o2 = true), t3.ended || t3.reading ? u("reading or ended", o2 = false) : o2 && (u("do read"), t3.reading = true, t3.sync = true, t3.length === 0 && (t3.needReadable = true), this._read(t3.highWaterMark), t3.sync = false, t3.reading || (e2 = I(r2, t3))), (n2 = e2 > 0 ? U(e2, t3) : null) === null ? (t3.needReadable = t3.length <= t3.highWaterMark, e2 = 0) : (t3.length -= e2, t3.awaitDrain = 0), t3.length === 0 && (t3.ended || (t3.needReadable = true), r2 !== e2 && t3.ended && B(this)), n2 !== null && this.emit("data", n2), n2;
6114
6116
  }, R.prototype._read = function(e2) {
6115
- w(this, new _("_read()"));
6117
+ w(this, new v("_read()"));
6116
6118
  }, R.prototype.pipe = function(e2, t3) {
6117
6119
  var r2 = this, o2 = this._readableState;
6118
6120
  switch (o2.pipesCount) {
@@ -6181,7 +6183,7 @@ ${w(o2)}`), a3;
6181
6183
  return s2 === -1 || (t3.pipes.splice(s2, 1), t3.pipesCount -= 1, t3.pipesCount === 1 && (t3.pipes = t3.pipes[0]), e2.emit("unpipe", this, r2)), this;
6182
6184
  }, R.prototype.on = function(e2, t3) {
6183
6185
  var r2 = s.prototype.on.call(this, e2, t3), o2 = this._readableState;
6184
- return e2 === "data" ? (o2.readableListening = this.listenerCount("readable") > 0, o2.flowing !== false && this.resume()) : e2 === "readable" && (o2.endEmitted || o2.readableListening || (o2.readableListening = o2.needReadable = true, o2.flowing = false, o2.emittedReadable = false, u("on readable", o2.length, o2.reading), o2.length ? I(this) : o2.reading || n.nextTick(D, this))), r2;
6186
+ return e2 === "data" ? (o2.readableListening = this.listenerCount("readable") > 0, o2.flowing !== false && this.resume()) : e2 === "readable" && (o2.endEmitted || o2.readableListening || (o2.readableListening = o2.needReadable = true, o2.flowing = false, o2.emittedReadable = false, u("on readable", o2.length, o2.reading), o2.length ? j(this) : o2.reading || n.nextTick(L, this))), r2;
6185
6187
  }, R.prototype.addListener = R.prototype.on, R.prototype.removeListener = function(e2, t3) {
6186
6188
  var r2 = s.prototype.removeListener.call(this, e2, t3);
6187
6189
  return e2 === "readable" && n.nextTick(N, this), r2;
@@ -6191,7 +6193,7 @@ ${w(o2)}`), a3;
6191
6193
  }, R.prototype.resume = function() {
6192
6194
  var e2 = this._readableState;
6193
6195
  return e2.flowing || (u("resume"), e2.flowing = !e2.readableListening, function(e3, t3) {
6194
- t3.resumeScheduled || (t3.resumeScheduled = true, n.nextTick(L, e3, t3));
6196
+ t3.resumeScheduled || (t3.resumeScheduled = true, n.nextTick(D, e3, t3));
6195
6197
  }(this, e2)), e2.paused = false, this;
6196
6198
  }, R.prototype.pause = function() {
6197
6199
  return u("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== false && (u("pause"), this._readableState.flowing = false, this.emit("pause")), this._readableState.paused = true, this;
@@ -6290,7 +6292,7 @@ ${w(o2)}`), a3;
6290
6292
  e.exports = R, R.WritableState = T;
6291
6293
  var s = { deprecate: r(39) }, a2 = r(76), l = r(4).Buffer, u = t2.Uint8Array || function() {
6292
6294
  };
6293
- var g, c = r(77), f = r(78).getHighWaterMark, p = r(23).codes, h = p.ERR_INVALID_ARG_TYPE, d = p.ERR_METHOD_NOT_IMPLEMENTED, y = p.ERR_MULTIPLE_CALLBACK, m = p.ERR_STREAM_CANNOT_PIPE, b = p.ERR_STREAM_DESTROYED, v = p.ERR_STREAM_NULL_VALUES, _ = p.ERR_STREAM_WRITE_AFTER_END, S = p.ERR_UNKNOWN_ENCODING, w = c.errorOrDestroy;
6295
+ var g, c = r(77), f = r(78).getHighWaterMark, p = r(23).codes, h = p.ERR_INVALID_ARG_TYPE, d = p.ERR_METHOD_NOT_IMPLEMENTED, y = p.ERR_MULTIPLE_CALLBACK, m = p.ERR_STREAM_CANNOT_PIPE, b = p.ERR_STREAM_DESTROYED, _ = p.ERR_STREAM_NULL_VALUES, v = p.ERR_STREAM_WRITE_AFTER_END, S = p.ERR_UNKNOWN_ENCODING, w = c.errorOrDestroy;
6294
6296
  function E() {
6295
6297
  }
6296
6298
  function T(e2, t3, s2) {
@@ -6308,8 +6310,8 @@ ${w(o2)}`), a3;
6308
6310
  --t5.pendingcb, r3 ? (n.nextTick(i3, o3), n.nextTick(M, e5, t5), e5._writableState.errorEmitted = true, w(e5, o3)) : (i3(o3), e5._writableState.errorEmitted = true, w(e5, o3), M(e5, t5));
6309
6311
  }(e4, r2, o2, t4, i2);
6310
6312
  else {
6311
- var s3 = I(r2) || e4.destroyed;
6312
- s3 || r2.corked || r2.bufferProcessing || !r2.bufferedRequest || j(e4, r2), o2 ? n.nextTick(O, e4, r2, s3, i2) : O(e4, r2, s3, i2);
6313
+ var s3 = j(r2) || e4.destroyed;
6314
+ s3 || r2.corked || r2.bufferProcessing || !r2.bufferedRequest || I(e4, r2), o2 ? n.nextTick(O, e4, r2, s3, i2) : O(e4, r2, s3, i2);
6313
6315
  }
6314
6316
  }(t3, e3);
6315
6317
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = e2.emitClose !== false, this.autoDestroy = !!e2.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new o(this);
@@ -6328,7 +6330,7 @@ ${w(o2)}`), a3;
6328
6330
  t4.length === 0 && t4.needDrain && (t4.needDrain = false, e3.emit("drain"));
6329
6331
  }(e2, t3), t3.pendingcb--, n2(), M(e2, t3);
6330
6332
  }
6331
- function j(e2, t3) {
6333
+ function I(e2, t3) {
6332
6334
  t3.bufferProcessing = true;
6333
6335
  var r2 = t3.bufferedRequest;
6334
6336
  if (e2._writev && r2 && r2.next) {
@@ -6347,7 +6349,7 @@ ${w(o2)}`), a3;
6347
6349
  }
6348
6350
  t3.bufferedRequest = r2, t3.bufferProcessing = false;
6349
6351
  }
6350
- function I(e2) {
6352
+ function j(e2) {
6351
6353
  return e2.ending && e2.length === 0 && e2.bufferedRequest === null && !e2.finished && !e2.writing;
6352
6354
  }
6353
6355
  function C(e2, t3) {
@@ -6356,7 +6358,7 @@ ${w(o2)}`), a3;
6356
6358
  });
6357
6359
  }
6358
6360
  function M(e2, t3) {
6359
- var r2 = I(t3);
6361
+ var r2 = j(t3);
6360
6362
  if (r2 && (function(e3, t4) {
6361
6363
  t4.prefinished || t4.finalCalled || (typeof e3._final != "function" || t4.destroyed ? (t4.prefinished = true, e3.emit("prefinish")) : (t4.pendingcb++, t4.finalCalled = true, n.nextTick(C, e3, t4)));
6362
6364
  }(e2, t3), t3.pendingcb === 0 && (t3.finished = true, e2.emit("finish"), t3.autoDestroy))) {
@@ -6387,11 +6389,11 @@ ${w(o2)}`), a3;
6387
6389
  return a3 && !l.isBuffer(e2) && (e2 = function(e3) {
6388
6390
  return l.from(e3);
6389
6391
  }(e2)), typeof t3 == "function" && (r2 = t3, t3 = null), a3 ? t3 = "buffer" : t3 || (t3 = i2.defaultEncoding), typeof r2 != "function" && (r2 = E), i2.ending ? function(e3, t4) {
6390
- var r3 = new _();
6392
+ var r3 = new v();
6391
6393
  w(e3, r3), n.nextTick(t4, r3);
6392
6394
  }(this, r2) : (a3 || function(e3, t4, r3, o3) {
6393
6395
  var i3;
6394
- return r3 === null ? i3 = new v() : typeof r3 == "string" || t4.objectMode || (i3 = new h("chunk", ["string", "Buffer"], r3)), !i3 || (w(e3, i3), n.nextTick(o3, i3), false);
6396
+ return r3 === null ? i3 = new _() : typeof r3 == "string" || t4.objectMode || (i3 = new h("chunk", ["string", "Buffer"], r3)), !i3 || (w(e3, i3), n.nextTick(o3, i3), false);
6395
6397
  }(this, i2, e2, r2)) && (i2.pendingcb++, s2 = function(e3, t4, r3, n2, o3, i3) {
6396
6398
  if (!r3) {
6397
6399
  var s3 = function(e4, t5, r4) {
@@ -6415,7 +6417,7 @@ ${w(o2)}`), a3;
6415
6417
  this._writableState.corked++;
6416
6418
  }, R.prototype.uncork = function() {
6417
6419
  var e2 = this._writableState;
6418
- e2.corked && (e2.corked--, e2.writing || e2.corked || e2.bufferProcessing || !e2.bufferedRequest || j(this, e2));
6420
+ e2.corked && (e2.corked--, e2.writing || e2.corked || e2.bufferProcessing || !e2.bufferedRequest || I(this, e2));
6419
6421
  }, R.prototype.setDefaultEncoding = function(e2) {
6420
6422
  if (typeof e2 == "string" && (e2 = e2.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e2 + "").toLowerCase()) > -1))
6421
6423
  throw new S(e2);
@@ -11625,7 +11627,7 @@ ${w(o2)}`), a3;
11625
11627
  throw new Error("could not read FormData body as text");
11626
11628
  return Promise.resolve(this._bodyText);
11627
11629
  }, i && (this.formData = function() {
11628
- return this.text().then(_);
11630
+ return this.text().then(v);
11629
11631
  }), this.json = function() {
11630
11632
  return this.text().then(JSON.parse);
11631
11633
  }, this;
@@ -11662,9 +11664,9 @@ ${w(o2)}`), a3;
11662
11664
  }), c(e3);
11663
11665
  }, n && (f.prototype[Symbol.iterator] = f.prototype.entries);
11664
11666
  var b = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
11665
- function v(e3, t3) {
11667
+ function _(e3, t3) {
11666
11668
  var r3, n2, o2 = (t3 = t3 || {}).body;
11667
- if (e3 instanceof v) {
11669
+ if (e3 instanceof _) {
11668
11670
  if (e3.bodyUsed)
11669
11671
  throw new TypeError("Already read");
11670
11672
  this.url = e3.url, this.credentials = e3.credentials, t3.headers || (this.headers = new f(e3.headers)), this.method = e3.method, this.mode = e3.mode, this.signal = e3.signal, o2 || e3._bodyInit == null || (o2 = e3._bodyInit, e3.bodyUsed = true);
@@ -11674,7 +11676,7 @@ ${w(o2)}`), a3;
11674
11676
  throw new TypeError("Body not allowed for GET or HEAD requests");
11675
11677
  this._initBody(o2);
11676
11678
  }
11677
- function _(e3) {
11679
+ function v(e3) {
11678
11680
  var t3 = new FormData();
11679
11681
  return e3.trim().split("&").forEach(function(e4) {
11680
11682
  if (e4) {
@@ -11686,9 +11688,9 @@ ${w(o2)}`), a3;
11686
11688
  function S(e3, t3) {
11687
11689
  t3 || (t3 = {}), this.type = "default", this.status = t3.status === void 0 ? 200 : t3.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in t3 ? t3.statusText : "OK", this.headers = new f(t3.headers), this.url = t3.url || "", this._initBody(e3);
11688
11690
  }
11689
- v.prototype.clone = function() {
11690
- return new v(this, { body: this._bodyInit });
11691
- }, m.call(v.prototype), m.call(S.prototype), S.prototype.clone = function() {
11691
+ _.prototype.clone = function() {
11692
+ return new _(this, { body: this._bodyInit });
11693
+ }, m.call(_.prototype), m.call(S.prototype), S.prototype.clone = function() {
11692
11694
  return new S(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new f(this.headers), url: this.url });
11693
11695
  }, S.error = function() {
11694
11696
  var e3 = new S(null, { status: 0, statusText: "" });
@@ -11711,7 +11713,7 @@ ${w(o2)}`), a3;
11711
11713
  }
11712
11714
  function E(e3, r3) {
11713
11715
  return new Promise(function(n2, i2) {
11714
- var s2 = new v(e3, r3);
11716
+ var s2 = new _(e3, r3);
11715
11717
  if (s2.signal && s2.signal.aborted)
11716
11718
  return i2(new t2.DOMException("Aborted", "AbortError"));
11717
11719
  var a3 = new XMLHttpRequest();
@@ -11742,174 +11744,381 @@ ${w(o2)}`), a3;
11742
11744
  }), a3.send(s2._bodyInit === void 0 ? null : s2._bodyInit);
11743
11745
  });
11744
11746
  }
11745
- E.polyfill = true, e2.fetch || (e2.fetch = E, e2.Headers = f, e2.Request = v, e2.Response = S), t2.Headers = f, t2.Request = v, t2.Response = S, t2.fetch = E;
11747
+ E.polyfill = true, e2.fetch || (e2.fetch = E, e2.Headers = f, e2.Request = _, e2.Response = S), t2.Headers = f, t2.Request = _, t2.Response = S, t2.fetch = E;
11746
11748
  }({});
11747
11749
  }(r), delete r.fetch.polyfill, (t = r.fetch).default = r.fetch, t.fetch = r.fetch, t.Headers = r.Headers, t.Request = r.Request, t.Response = r.Response, e.exports = t;
11748
11750
  }, function(e, t, r) {
11749
- const n = r(222), o = Symbol("max"), i = Symbol("length"), s = Symbol("lengthCalculator"), a2 = Symbol("allowStale"), l = Symbol("maxAge"), u = Symbol("dispose"), g = Symbol("noDisposeOnSet"), c = Symbol("lruList"), f = Symbol("cache"), p = Symbol("updateAgeOnGet"), h = () => 1;
11750
- const d = (e2, t2, r2) => {
11751
- const n2 = e2[f].get(t2);
11752
- if (n2) {
11753
- const t3 = n2.value;
11754
- if (y(e2, t3)) {
11755
- if (b(e2, n2), !e2[a2])
11756
- return;
11757
- } else
11758
- r2 && (e2[p] && (n2.value.now = Date.now()), e2[c].unshiftNode(n2));
11759
- return t3.value;
11760
- }
11761
- }, y = (e2, t2) => {
11762
- if (!t2 || !t2.maxAge && !e2[l])
11763
- return false;
11764
- const r2 = Date.now() - t2.now;
11765
- return t2.maxAge ? r2 > t2.maxAge : e2[l] && r2 > e2[l];
11766
- }, m = (e2) => {
11767
- if (e2[i] > e2[o])
11768
- for (let t2 = e2[c].tail; e2[i] > e2[o] && t2 !== null; ) {
11769
- const r2 = t2.prev;
11770
- b(e2, t2), t2 = r2;
11771
- }
11772
- }, b = (e2, t2) => {
11773
- if (t2) {
11774
- const r2 = t2.value;
11775
- e2[u] && e2[u](r2.key, r2.value), e2[i] -= r2.length, e2[f].delete(r2.key), e2[c].removeNode(t2);
11776
- }
11777
- };
11778
- class v {
11779
- constructor(e2, t2, r2, n2, o2) {
11780
- this.key = e2, this.value = t2, this.length = r2, this.now = n2, this.maxAge = o2 || 0;
11781
- }
11782
- }
11783
- const _ = (e2, t2, r2, n2) => {
11784
- let o2 = r2.value;
11785
- y(e2, o2) && (b(e2, r2), e2[a2] || (o2 = void 0)), o2 && t2.call(n2, o2.value, o2.key, e2);
11786
- };
11787
- e.exports = class {
11788
- constructor(e2) {
11789
- if (typeof e2 == "number" && (e2 = { max: e2 }), e2 || (e2 = {}), e2.max && (typeof e2.max != "number" || e2.max < 0))
11790
- throw new TypeError("max must be a non-negative number");
11791
- this[o] = e2.max || 1 / 0;
11792
- const t2 = e2.length || h;
11793
- if (this[s] = typeof t2 != "function" ? h : t2, this[a2] = e2.stale || false, e2.maxAge && typeof e2.maxAge != "number")
11794
- throw new TypeError("maxAge must be a number");
11795
- this[l] = e2.maxAge || 0, this[u] = e2.dispose, this[g] = e2.noDisposeOnSet || false, this[p] = e2.updateAgeOnGet || false, this.reset();
11796
- }
11797
- set max(e2) {
11798
- if (typeof e2 != "number" || e2 < 0)
11799
- throw new TypeError("max must be a non-negative number");
11800
- this[o] = e2 || 1 / 0, m(this);
11801
- }
11802
- get max() {
11803
- return this[o];
11804
- }
11805
- set allowStale(e2) {
11806
- this[a2] = !!e2;
11807
- }
11808
- get allowStale() {
11809
- return this[a2];
11810
- }
11811
- set maxAge(e2) {
11812
- if (typeof e2 != "number")
11813
- throw new TypeError("maxAge must be a non-negative number");
11814
- this[l] = e2, m(this);
11815
- }
11816
- get maxAge() {
11817
- return this[l];
11818
- }
11819
- set lengthCalculator(e2) {
11820
- typeof e2 != "function" && (e2 = h), e2 !== this[s] && (this[s] = e2, this[i] = 0, this[c].forEach((e3) => {
11821
- e3.length = this[s](e3.value, e3.key), this[i] += e3.length;
11822
- })), m(this);
11823
- }
11824
- get lengthCalculator() {
11825
- return this[s];
11826
- }
11827
- get length() {
11828
- return this[i];
11829
- }
11830
- get itemCount() {
11831
- return this[c].length;
11832
- }
11833
- rforEach(e2, t2) {
11834
- t2 = t2 || this;
11835
- for (let r2 = this[c].tail; r2 !== null; ) {
11836
- const n2 = r2.prev;
11837
- _(this, e2, r2, t2), r2 = n2;
11751
+ (function(t2) {
11752
+ const r2 = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, n = typeof AbortController == "function" ? AbortController : Object.assign(class {
11753
+ constructor() {
11754
+ this.signal = new n.AbortSignal();
11755
+ }
11756
+ abort() {
11757
+ this.signal.dispatchEvent("abort");
11758
+ }
11759
+ }, { AbortSignal: class {
11760
+ constructor() {
11761
+ this.aborted = false, this._listeners = [];
11762
+ }
11763
+ dispatchEvent(e2) {
11764
+ if (e2 === "abort") {
11765
+ this.aborted = true;
11766
+ const t3 = { type: e2, target: this };
11767
+ this.onabort(t3), this._listeners.forEach((e3) => e3(t3), this);
11768
+ }
11838
11769
  }
11839
- }
11840
- forEach(e2, t2) {
11841
- t2 = t2 || this;
11842
- for (let r2 = this[c].head; r2 !== null; ) {
11843
- const n2 = r2.next;
11844
- _(this, e2, r2, t2), r2 = n2;
11770
+ onabort() {
11771
+ }
11772
+ addEventListener(e2, t3) {
11773
+ e2 === "abort" && this._listeners.push(t3);
11774
+ }
11775
+ removeEventListener(e2, t3) {
11776
+ e2 === "abort" && (this._listeners = this._listeners.filter((e3) => e3 !== t3));
11777
+ }
11778
+ } }), o = /* @__PURE__ */ new Set(), i = (e2, t3) => {
11779
+ const r3 = `LRU_CACHE_OPTION_${e2}`;
11780
+ l(r3) && u(r3, `${e2} option`, `options.${t3}`, h);
11781
+ }, s = (e2, t3) => {
11782
+ const r3 = `LRU_CACHE_METHOD_${e2}`;
11783
+ if (l(r3)) {
11784
+ const { prototype: n2 } = h, { get: o2 } = Object.getOwnPropertyDescriptor(n2, e2);
11785
+ u(r3, `${e2} method`, `cache.${t3}()`, o2);
11786
+ }
11787
+ }, a2 = (...e2) => {
11788
+ typeof t2 == "object" && t2 && typeof t2.emitWarning == "function" ? t2.emitWarning(...e2) : console.error(...e2);
11789
+ }, l = (e2) => !o.has(e2), u = (e2, t3, r3, n2) => {
11790
+ o.add(e2), a2(`The ${t3} is deprecated. Please use ${r3} instead.`, "DeprecationWarning", e2, n2);
11791
+ }, g = (e2) => e2 && e2 === Math.floor(e2) && e2 > 0 && isFinite(e2), c = (e2) => g(e2) ? e2 <= Math.pow(2, 8) ? Uint8Array : e2 <= Math.pow(2, 16) ? Uint16Array : e2 <= Math.pow(2, 32) ? Uint32Array : e2 <= Number.MAX_SAFE_INTEGER ? f : null : null;
11792
+ class f extends Array {
11793
+ constructor(e2) {
11794
+ super(e2), this.fill(0);
11845
11795
  }
11846
11796
  }
11847
- keys() {
11848
- return this[c].toArray().map((e2) => e2.key);
11849
- }
11850
- values() {
11851
- return this[c].toArray().map((e2) => e2.value);
11852
- }
11853
- reset() {
11854
- this[u] && this[c] && this[c].length && this[c].forEach((e2) => this[u](e2.key, e2.value)), this[f] = /* @__PURE__ */ new Map(), this[c] = new n(), this[i] = 0;
11855
- }
11856
- dump() {
11857
- return this[c].map((e2) => !y(this, e2) && { k: e2.key, v: e2.value, e: e2.now + (e2.maxAge || 0) }).toArray().filter((e2) => e2);
11858
- }
11859
- dumpLru() {
11860
- return this[c];
11861
- }
11862
- set(e2, t2, r2) {
11863
- if ((r2 = r2 || this[l]) && typeof r2 != "number")
11864
- throw new TypeError("maxAge must be a number");
11865
- const n2 = r2 ? Date.now() : 0, a3 = this[s](t2, e2);
11866
- if (this[f].has(e2)) {
11867
- if (a3 > this[o])
11868
- return b(this, this[f].get(e2)), false;
11869
- const s2 = this[f].get(e2).value;
11870
- return this[u] && (this[g] || this[u](e2, s2.value)), s2.now = n2, s2.maxAge = r2, s2.value = t2, this[i] += a3 - s2.length, s2.length = a3, this.get(e2), m(this), true;
11871
- }
11872
- const p2 = new v(e2, t2, a3, n2, r2);
11873
- return p2.length > this[o] ? (this[u] && this[u](e2, t2), false) : (this[i] += p2.length, this[c].unshift(p2), this[f].set(e2, this[c].head), m(this), true);
11874
- }
11875
- has(e2) {
11876
- if (!this[f].has(e2))
11797
+ class p {
11798
+ constructor(e2) {
11799
+ if (e2 === 0)
11800
+ return [];
11801
+ const t3 = c(e2);
11802
+ this.heap = new t3(e2), this.length = 0;
11803
+ }
11804
+ push(e2) {
11805
+ this.heap[this.length++] = e2;
11806
+ }
11807
+ pop() {
11808
+ return this.heap[--this.length];
11809
+ }
11810
+ }
11811
+ class h {
11812
+ constructor(e2 = {}) {
11813
+ const { max: t3 = 0, ttl: r3, ttlResolution: n2 = 1, ttlAutopurge: s2, updateAgeOnGet: u2, updateAgeOnHas: f2, allowStale: d, dispose: y, disposeAfter: m, noDisposeOnSet: b, noUpdateTTL: _, maxSize: v = 0, sizeCalculation: S, fetchMethod: w } = e2, { length: E, maxAge: T, stale: R } = e2 instanceof h ? {} : e2;
11814
+ if (t3 !== 0 && !g(t3))
11815
+ throw new TypeError("max option must be a nonnegative integer");
11816
+ const A = t3 ? c(t3) : Array;
11817
+ if (!A)
11818
+ throw new Error("invalid max value: " + t3);
11819
+ if (this.max = t3, this.maxSize = v, this.sizeCalculation = S || E, this.sizeCalculation) {
11820
+ if (!this.maxSize)
11821
+ throw new TypeError("cannot set sizeCalculation without setting maxSize");
11822
+ if (typeof this.sizeCalculation != "function")
11823
+ throw new TypeError("sizeCalculation set to non-function");
11824
+ }
11825
+ if (this.fetchMethod = w || null, this.fetchMethod && typeof this.fetchMethod != "function")
11826
+ throw new TypeError("fetchMethod must be a function if specified");
11827
+ if (this.keyMap = /* @__PURE__ */ new Map(), this.keyList = new Array(t3).fill(null), this.valList = new Array(t3).fill(null), this.next = new A(t3), this.prev = new A(t3), this.head = 0, this.tail = 0, this.free = new p(t3), this.initialFill = 1, this.size = 0, typeof y == "function" && (this.dispose = y), typeof m == "function" ? (this.disposeAfter = m, this.disposed = []) : (this.disposeAfter = null, this.disposed = null), this.noDisposeOnSet = !!b, this.noUpdateTTL = !!_, this.maxSize !== 0) {
11828
+ if (!g(this.maxSize))
11829
+ throw new TypeError("maxSize must be a positive integer if specified");
11830
+ this.initializeSizeTracking();
11831
+ }
11832
+ if (this.allowStale = !!d || !!R, this.updateAgeOnGet = !!u2, this.updateAgeOnHas = !!f2, this.ttlResolution = g(n2) || n2 === 0 ? n2 : 1, this.ttlAutopurge = !!s2, this.ttl = r3 || T || 0, this.ttl) {
11833
+ if (!g(this.ttl))
11834
+ throw new TypeError("ttl must be a positive integer if specified");
11835
+ this.initializeTTLTracking();
11836
+ }
11837
+ if (this.max === 0 && this.ttl === 0 && this.maxSize === 0)
11838
+ throw new TypeError("At least one of max, maxSize, or ttl is required");
11839
+ if (!this.ttlAutopurge && !this.max && !this.maxSize) {
11840
+ const e3 = "LRU_CACHE_UNBOUNDED";
11841
+ if (l(e3)) {
11842
+ o.add(e3), a2("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", e3, h);
11843
+ }
11844
+ }
11845
+ R && i("stale", "allowStale"), T && i("maxAge", "ttl"), E && i("length", "sizeCalculation");
11846
+ }
11847
+ getRemainingTTL(e2) {
11848
+ return this.has(e2, { updateAgeOnHas: false }) ? 1 / 0 : 0;
11849
+ }
11850
+ initializeTTLTracking() {
11851
+ this.ttls = new f(this.max), this.starts = new f(this.max), this.setItemTTL = (e3, t4) => {
11852
+ if (this.starts[e3] = t4 !== 0 ? r2.now() : 0, this.ttls[e3] = t4, t4 !== 0 && this.ttlAutopurge) {
11853
+ const r3 = setTimeout(() => {
11854
+ this.isStale(e3) && this.delete(this.keyList[e3]);
11855
+ }, t4 + 1);
11856
+ r3.unref && r3.unref();
11857
+ }
11858
+ }, this.updateItemAge = (e3) => {
11859
+ this.starts[e3] = this.ttls[e3] !== 0 ? r2.now() : 0;
11860
+ };
11861
+ let e2 = 0;
11862
+ const t3 = () => {
11863
+ const t4 = r2.now();
11864
+ if (this.ttlResolution > 0) {
11865
+ e2 = t4;
11866
+ const r3 = setTimeout(() => e2 = 0, this.ttlResolution);
11867
+ r3.unref && r3.unref();
11868
+ }
11869
+ return t4;
11870
+ };
11871
+ this.getRemainingTTL = (r3) => {
11872
+ const n2 = this.keyMap.get(r3);
11873
+ return n2 === void 0 ? 0 : this.ttls[n2] === 0 || this.starts[n2] === 0 ? 1 / 0 : this.starts[n2] + this.ttls[n2] - (e2 || t3());
11874
+ }, this.isStale = (r3) => this.ttls[r3] !== 0 && this.starts[r3] !== 0 && (e2 || t3()) - this.starts[r3] > this.ttls[r3];
11875
+ }
11876
+ updateItemAge(e2) {
11877
+ }
11878
+ setItemTTL(e2, t3) {
11879
+ }
11880
+ isStale(e2) {
11877
11881
  return false;
11878
- const t2 = this[f].get(e2).value;
11879
- return !y(this, t2);
11880
- }
11881
- get(e2) {
11882
- return d(this, e2, true);
11883
- }
11884
- peek(e2) {
11885
- return d(this, e2, false);
11886
- }
11887
- pop() {
11888
- const e2 = this[c].tail;
11889
- return e2 ? (b(this, e2), e2.value) : null;
11890
- }
11891
- del(e2) {
11892
- b(this, this[f].get(e2));
11893
- }
11894
- load(e2) {
11895
- this.reset();
11896
- const t2 = Date.now();
11897
- for (let r2 = e2.length - 1; r2 >= 0; r2--) {
11898
- const n2 = e2[r2], o2 = n2.e || 0;
11899
- if (o2 === 0)
11900
- this.set(n2.k, n2.v);
11882
+ }
11883
+ initializeSizeTracking() {
11884
+ this.calculatedSize = 0, this.sizes = new f(this.max), this.removeItemSize = (e2) => this.calculatedSize -= this.sizes[e2], this.requireSize = (e2, t3, r3, n2) => {
11885
+ if (!g(r3)) {
11886
+ if (!n2)
11887
+ throw new TypeError("invalid size value (must be positive integer)");
11888
+ if (typeof n2 != "function")
11889
+ throw new TypeError("sizeCalculation must be a function");
11890
+ if (r3 = n2(t3, e2), !g(r3))
11891
+ throw new TypeError("sizeCalculation return invalid (expect positive integer)");
11892
+ }
11893
+ return r3;
11894
+ }, this.addItemSize = (e2, t3, r3, n2) => {
11895
+ this.sizes[e2] = n2;
11896
+ const o2 = this.maxSize - this.sizes[e2];
11897
+ for (; this.calculatedSize > o2; )
11898
+ this.evict(true);
11899
+ this.calculatedSize += this.sizes[e2];
11900
+ };
11901
+ }
11902
+ removeItemSize(e2) {
11903
+ }
11904
+ addItemSize(e2, t3, r3, n2) {
11905
+ }
11906
+ requireSize(e2, t3, r3, n2) {
11907
+ if (r3 || n2)
11908
+ throw new TypeError("cannot set size without setting maxSize on cache");
11909
+ }
11910
+ *indexes({ allowStale: e2 = this.allowStale } = {}) {
11911
+ if (this.size)
11912
+ for (let t3 = this.tail; this.isValidIndex(t3) && (!e2 && this.isStale(t3) || (yield t3), t3 !== this.head); )
11913
+ t3 = this.prev[t3];
11914
+ }
11915
+ *rindexes({ allowStale: e2 = this.allowStale } = {}) {
11916
+ if (this.size)
11917
+ for (let t3 = this.head; this.isValidIndex(t3) && (!e2 && this.isStale(t3) || (yield t3), t3 !== this.tail); )
11918
+ t3 = this.next[t3];
11919
+ }
11920
+ isValidIndex(e2) {
11921
+ return this.keyMap.get(this.keyList[e2]) === e2;
11922
+ }
11923
+ *entries() {
11924
+ for (const e2 of this.indexes())
11925
+ yield [this.keyList[e2], this.valList[e2]];
11926
+ }
11927
+ *rentries() {
11928
+ for (const e2 of this.rindexes())
11929
+ yield [this.keyList[e2], this.valList[e2]];
11930
+ }
11931
+ *keys() {
11932
+ for (const e2 of this.indexes())
11933
+ yield this.keyList[e2];
11934
+ }
11935
+ *rkeys() {
11936
+ for (const e2 of this.rindexes())
11937
+ yield this.keyList[e2];
11938
+ }
11939
+ *values() {
11940
+ for (const e2 of this.indexes())
11941
+ yield this.valList[e2];
11942
+ }
11943
+ *rvalues() {
11944
+ for (const e2 of this.rindexes())
11945
+ yield this.valList[e2];
11946
+ }
11947
+ [Symbol.iterator]() {
11948
+ return this.entries();
11949
+ }
11950
+ find(e2, t3 = {}) {
11951
+ for (const r3 of this.indexes())
11952
+ if (e2(this.valList[r3], this.keyList[r3], this))
11953
+ return this.get(this.keyList[r3], t3);
11954
+ }
11955
+ forEach(e2, t3 = this) {
11956
+ for (const r3 of this.indexes())
11957
+ e2.call(t3, this.valList[r3], this.keyList[r3], this);
11958
+ }
11959
+ rforEach(e2, t3 = this) {
11960
+ for (const r3 of this.rindexes())
11961
+ e2.call(t3, this.valList[r3], this.keyList[r3], this);
11962
+ }
11963
+ get prune() {
11964
+ return s("prune", "purgeStale"), this.purgeStale;
11965
+ }
11966
+ purgeStale() {
11967
+ let e2 = false;
11968
+ for (const t3 of this.rindexes({ allowStale: true }))
11969
+ this.isStale(t3) && (this.delete(this.keyList[t3]), e2 = true);
11970
+ return e2;
11971
+ }
11972
+ dump() {
11973
+ const e2 = [];
11974
+ for (const t3 of this.indexes()) {
11975
+ const r3 = this.keyList[t3], n2 = { value: this.valList[t3] };
11976
+ this.ttls && (n2.ttl = this.ttls[t3]), this.sizes && (n2.size = this.sizes[t3]), e2.unshift([r3, n2]);
11977
+ }
11978
+ return e2;
11979
+ }
11980
+ load(e2) {
11981
+ this.clear();
11982
+ for (const [t3, r3] of e2)
11983
+ this.set(t3, r3.value, r3);
11984
+ }
11985
+ dispose(e2, t3, r3) {
11986
+ }
11987
+ set(e2, t3, { ttl: r3 = this.ttl, noDisposeOnSet: n2 = this.noDisposeOnSet, size: o2 = 0, sizeCalculation: i2 = this.sizeCalculation, noUpdateTTL: s2 = this.noUpdateTTL } = {}) {
11988
+ o2 = this.requireSize(e2, t3, o2, i2);
11989
+ let a3 = this.size === 0 ? void 0 : this.keyMap.get(e2);
11990
+ if (a3 === void 0)
11991
+ a3 = this.newIndex(), this.keyList[a3] = e2, this.valList[a3] = t3, this.keyMap.set(e2, a3), this.next[this.tail] = a3, this.prev[a3] = this.tail, this.tail = a3, this.size++, this.addItemSize(a3, t3, e2, o2), s2 = false;
11901
11992
  else {
11902
- const e3 = o2 - t2;
11903
- e3 > 0 && this.set(n2.k, n2.v, e3);
11993
+ const r4 = this.valList[a3];
11994
+ t3 !== r4 && (this.isBackgroundFetch(r4) ? r4.__abortController.abort() : n2 || (this.dispose(r4, e2, "set"), this.disposeAfter && this.disposed.push([r4, e2, "set"])), this.removeItemSize(a3), this.valList[a3] = t3, this.addItemSize(a3, t3, e2, o2)), this.moveToTail(a3);
11904
11995
  }
11996
+ if (r3 === 0 || this.ttl !== 0 || this.ttls || this.initializeTTLTracking(), s2 || this.setItemTTL(a3, r3), this.disposeAfter)
11997
+ for (; this.disposed.length; )
11998
+ this.disposeAfter(...this.disposed.shift());
11999
+ return this;
12000
+ }
12001
+ newIndex() {
12002
+ return this.size === 0 ? this.tail : this.size === this.max && this.max !== 0 ? this.evict(false) : this.free.length !== 0 ? this.free.pop() : this.initialFill++;
12003
+ }
12004
+ pop() {
12005
+ if (this.size) {
12006
+ const e2 = this.valList[this.head];
12007
+ return this.evict(true), e2;
12008
+ }
12009
+ }
12010
+ evict(e2) {
12011
+ const t3 = this.head, r3 = this.keyList[t3], n2 = this.valList[t3];
12012
+ return this.isBackgroundFetch(n2) ? n2.__abortController.abort() : (this.dispose(n2, r3, "evict"), this.disposeAfter && this.disposed.push([n2, r3, "evict"])), this.removeItemSize(t3), e2 && (this.keyList[t3] = null, this.valList[t3] = null, this.free.push(t3)), this.head = this.next[t3], this.keyMap.delete(r3), this.size--, t3;
12013
+ }
12014
+ has(e2, { updateAgeOnHas: t3 = this.updateAgeOnHas } = {}) {
12015
+ const r3 = this.keyMap.get(e2);
12016
+ return r3 !== void 0 && !this.isStale(r3) && (t3 && this.updateItemAge(r3), true);
12017
+ }
12018
+ peek(e2, { allowStale: t3 = this.allowStale } = {}) {
12019
+ const r3 = this.keyMap.get(e2);
12020
+ if (r3 !== void 0 && (t3 || !this.isStale(r3)))
12021
+ return this.valList[r3];
12022
+ }
12023
+ backgroundFetch(e2, t3, r3) {
12024
+ const o2 = t3 === void 0 ? void 0 : this.valList[t3];
12025
+ if (this.isBackgroundFetch(o2))
12026
+ return o2;
12027
+ const i2 = new n(), s2 = { signal: i2.signal, options: r3 }, a3 = Promise.resolve(this.fetchMethod(e2, o2, s2)).then((t4) => (i2.signal.aborted || this.set(e2, t4, s2.options), t4));
12028
+ return a3.__abortController = i2, a3.__staleWhileFetching = o2, t3 === void 0 ? (this.set(e2, a3, s2.options), t3 = this.keyMap.get(e2)) : this.valList[t3] = a3, a3;
12029
+ }
12030
+ isBackgroundFetch(e2) {
12031
+ return e2 && typeof e2 == "object" && typeof e2.then == "function" && Object.prototype.hasOwnProperty.call(e2, "__staleWhileFetching");
12032
+ }
12033
+ async fetch(e2, { allowStale: t3 = this.allowStale, updateAgeOnGet: r3 = this.updateAgeOnGet, ttl: n2 = this.ttl, noDisposeOnSet: o2 = this.noDisposeOnSet, size: i2 = 0, sizeCalculation: s2 = this.sizeCalculation, noUpdateTTL: a3 = this.noUpdateTTL } = {}) {
12034
+ if (!this.fetchMethod)
12035
+ return this.get(e2, { allowStale: t3, updateAgeOnGet: r3 });
12036
+ const l2 = { allowStale: t3, updateAgeOnGet: r3, ttl: n2, noDisposeOnSet: o2, size: i2, sizeCalculation: s2, noUpdateTTL: a3 };
12037
+ let u2 = this.keyMap.get(e2);
12038
+ if (u2 === void 0)
12039
+ return this.backgroundFetch(e2, u2, l2);
12040
+ {
12041
+ const n3 = this.valList[u2];
12042
+ if (this.isBackgroundFetch(n3))
12043
+ return t3 && n3.__staleWhileFetching !== void 0 ? n3.__staleWhileFetching : n3;
12044
+ if (!this.isStale(u2))
12045
+ return this.moveToTail(u2), r3 && this.updateItemAge(u2), n3;
12046
+ const o3 = this.backgroundFetch(e2, u2, l2);
12047
+ return t3 && o3.__staleWhileFetching !== void 0 ? o3.__staleWhileFetching : o3;
12048
+ }
12049
+ }
12050
+ get(e2, { allowStale: t3 = this.allowStale, updateAgeOnGet: r3 = this.updateAgeOnGet } = {}) {
12051
+ const n2 = this.keyMap.get(e2);
12052
+ if (n2 !== void 0) {
12053
+ const o2 = this.valList[n2], i2 = this.isBackgroundFetch(o2);
12054
+ if (this.isStale(n2))
12055
+ return i2 ? t3 ? o2.__staleWhileFetching : void 0 : (this.delete(e2), t3 ? o2 : void 0);
12056
+ if (i2)
12057
+ return;
12058
+ return this.moveToTail(n2), r3 && this.updateItemAge(n2), o2;
12059
+ }
12060
+ }
12061
+ connect(e2, t3) {
12062
+ this.prev[t3] = e2, this.next[e2] = t3;
12063
+ }
12064
+ moveToTail(e2) {
12065
+ e2 !== this.tail && (e2 === this.head ? this.head = this.next[e2] : this.connect(this.prev[e2], this.next[e2]), this.connect(this.tail, e2), this.tail = e2);
12066
+ }
12067
+ get del() {
12068
+ return s("del", "delete"), this.delete;
12069
+ }
12070
+ delete(e2) {
12071
+ let t3 = false;
12072
+ if (this.size !== 0) {
12073
+ const r3 = this.keyMap.get(e2);
12074
+ if (r3 !== void 0)
12075
+ if (t3 = true, this.size === 1)
12076
+ this.clear();
12077
+ else {
12078
+ this.removeItemSize(r3);
12079
+ const t4 = this.valList[r3];
12080
+ this.isBackgroundFetch(t4) ? t4.__abortController.abort() : (this.dispose(t4, e2, "delete"), this.disposeAfter && this.disposed.push([t4, e2, "delete"])), this.keyMap.delete(e2), this.keyList[r3] = null, this.valList[r3] = null, r3 === this.tail ? this.tail = this.prev[r3] : r3 === this.head ? this.head = this.next[r3] : (this.next[this.prev[r3]] = this.next[r3], this.prev[this.next[r3]] = this.prev[r3]), this.size--, this.free.push(r3);
12081
+ }
12082
+ }
12083
+ if (this.disposed)
12084
+ for (; this.disposed.length; )
12085
+ this.disposeAfter(...this.disposed.shift());
12086
+ return t3;
12087
+ }
12088
+ clear() {
12089
+ for (const e2 of this.rindexes({ allowStale: true })) {
12090
+ const t3 = this.valList[e2];
12091
+ if (this.isBackgroundFetch(t3))
12092
+ t3.__abortController.abort();
12093
+ else {
12094
+ const r3 = this.keyList[e2];
12095
+ this.dispose(t3, r3, "delete"), this.disposeAfter && this.disposed.push([t3, r3, "delete"]);
12096
+ }
12097
+ }
12098
+ if (this.keyMap.clear(), this.valList.fill(null), this.keyList.fill(null), this.ttls && (this.ttls.fill(0), this.starts.fill(0)), this.sizes && this.sizes.fill(0), this.head = 0, this.tail = 0, this.initialFill = 1, this.free.length = 0, this.calculatedSize = 0, this.size = 0, this.disposed)
12099
+ for (; this.disposed.length; )
12100
+ this.disposeAfter(...this.disposed.shift());
12101
+ }
12102
+ get reset() {
12103
+ return s("reset", "clear"), this.clear;
12104
+ }
12105
+ get length() {
12106
+ return ((e2, t3) => {
12107
+ const r3 = `LRU_CACHE_PROPERTY_${e2}`;
12108
+ if (l(r3)) {
12109
+ const { prototype: n2 } = h, { get: o2 } = Object.getOwnPropertyDescriptor(n2, e2);
12110
+ u(r3, `${e2} property`, `cache.${t3}`, o2);
12111
+ }
12112
+ })("length", "size"), this.size;
12113
+ }
12114
+ static get AbortController() {
12115
+ return n;
11905
12116
  }
11906
12117
  }
11907
- prune() {
11908
- this[f].forEach((e2, t2) => d(this, t2, false));
11909
- }
11910
- };
12118
+ e.exports = h;
12119
+ }).call(this, r(2));
11911
12120
  }, function(e, t, r) {
11912
- var n = r(225), o = r(226), i = o;
12121
+ var n = r(223), o = r(224), i = o;
11913
12122
  i.v1 = n, i.v4 = o, e.exports = i;
11914
12123
  }, function(e, t, r) {
11915
12124
  var n = r(37).Colorizer;
@@ -12520,7 +12729,7 @@ ${w(o2)}`), a3;
12520
12729
  return (t2 > 0 ? "-" : "+") + y(Math.floor(Math.abs(t2) / 60), 2) + ":" + y(Math.abs(t2) % 60, 2);
12521
12730
  } }, b = function(e2) {
12522
12731
  return +e2 - 1;
12523
- }, v = [null, "[1-9]\\d?"], _ = [null, o], S = ["isPm", o, function(e2, t2) {
12732
+ }, _ = [null, "[1-9]\\d?"], v = [null, o], S = ["isPm", o, function(e2, t2) {
12524
12733
  var r2 = e2.toLowerCase();
12525
12734
  return r2 === t2.amPm[0] ? 0 : r2 === t2.amPm[1] ? 1 : null;
12526
12735
  }], w = ["timezoneOffset", "[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?", function(e2) {
@@ -12539,7 +12748,7 @@ ${w(o2)}`), a3;
12539
12748
  return 100 * +e2;
12540
12749
  }], SS: ["millisecond", "\\d\\d", function(e2) {
12541
12750
  return 10 * +e2;
12542
- }], SSS: ["millisecond", "\\d{3}"], d: v, dd: v, ddd: _, dddd: _, MMM: ["month", o, a2("monthNamesShort")], MMMM: ["month", o, a2("monthNames")], a: S, A: S, ZZ: w, Z: w }, T = { default: "ddd MMM DD YYYY HH:mm:ss", shortDate: "M/D/YY", mediumDate: "MMM D, YYYY", longDate: "MMMM D, YYYY", fullDate: "dddd, MMMM D, YYYY", isoDate: "YYYY-MM-DD", isoDateTime: "YYYY-MM-DDTHH:mm:ssZ", shortTime: "HH:mm", mediumTime: "HH:mm:ss", longTime: "HH:mm:ss.SSS" }, R = function(e2) {
12751
+ }], SSS: ["millisecond", "\\d{3}"], d: _, dd: _, ddd: v, dddd: v, MMM: ["month", o, a2("monthNamesShort")], MMMM: ["month", o, a2("monthNames")], a: S, A: S, ZZ: w, Z: w }, T = { default: "ddd MMM DD YYYY HH:mm:ss", shortDate: "M/D/YY", mediumDate: "MMM D, YYYY", longDate: "MMMM D, YYYY", fullDate: "dddd, MMMM D, YYYY", isoDate: "YYYY-MM-DD", isoDateTime: "YYYY-MM-DDTHH:mm:ssZ", shortTime: "HH:mm", mediumTime: "HH:mm:ss", longTime: "HH:mm:ss.SSS" }, R = function(e2) {
12543
12752
  return l(T, e2);
12544
12753
  }, A = function(e2, t2, r2) {
12545
12754
  if (t2 === void 0 && (t2 = T.default), r2 === void 0 && (r2 = {}), typeof e2 == "number" && (e2 = new Date(e2)), Object.prototype.toString.call(e2) !== "[object Date]" || isNaN(e2.getTime()))
@@ -12578,10 +12787,10 @@ ${w(o2)}`), a3;
12578
12787
  if (!f2)
12579
12788
  return null;
12580
12789
  for (var h2 = l(l({}, p), r2), y2 = 1; y2 < f2.length; y2++) {
12581
- var m2 = s2[y2 - 1], b2 = m2[0], v2 = m2[2], _2 = v2 ? v2(f2[y2], h2) : +f2[y2];
12582
- if (_2 == null)
12790
+ var m2 = s2[y2 - 1], b2 = m2[0], _2 = m2[2], v2 = _2 ? _2(f2[y2], h2) : +f2[y2];
12791
+ if (v2 == null)
12583
12792
  return null;
12584
- o2[b2] = _2;
12793
+ o2[b2] = v2;
12585
12794
  }
12586
12795
  o2.isPm === 1 && o2.hour != null && +o2.hour != 12 ? o2.hour = +o2.hour + 12 : o2.isPm === 0 && +o2.hour == 12 && (o2.hour = 0);
12587
12796
  for (var S2 = new Date(o2.year, o2.month, o2.day, o2.hour, o2.minute, o2.second, o2.millisecond), w2 = [["month", "getMonth"], ["day", "getDate"], ["hour", "getHours"], ["minute", "getMinutes"], ["second", "getSeconds"]], R2 = (y2 = 0, w2.length); y2 < R2; y2++)
@@ -12589,8 +12798,8 @@ ${w(o2)}`), a3;
12589
12798
  return null;
12590
12799
  return o2.timezoneOffset == null ? S2 : new Date(Date.UTC(o2.year, o2.month, o2.day, o2.hour, o2.minute - o2.timezoneOffset, o2.second, o2.millisecond));
12591
12800
  }
12592
- var j = { format: A, parse: O, defaultI18n: f, setGlobalDateI18n: h, setGlobalDateMasks: R };
12593
- t.default = j;
12801
+ var I = { format: A, parse: O, defaultI18n: f, setGlobalDateI18n: h, setGlobalDateMasks: R };
12802
+ t.default = I;
12594
12803
  }, function(e, t, r) {
12595
12804
  var n = r(57), o = r(9), i = r(3).MESSAGE;
12596
12805
  e.exports = o(function(e2, t2) {
@@ -12781,9 +12990,9 @@ ${w(o2)}`), a3;
12781
12990
  }, function(e, t, r) {
12782
12991
  (function(t2, n) {
12783
12992
  var o = r(13);
12784
- e.exports = v;
12993
+ e.exports = _;
12785
12994
  var i, s = r(38);
12786
- v.ReadableState = b;
12995
+ _.ReadableState = b;
12787
12996
  r(18).EventEmitter;
12788
12997
  var a2 = function(e2, t3) {
12789
12998
  return e2.listeners(t3).length;
@@ -12795,7 +13004,7 @@ ${w(o2)}`), a3;
12795
13004
  p = f && f.debuglog ? f.debuglog("stream") : function() {
12796
13005
  };
12797
13006
  var h, d = r(144), y = r(62);
12798
- c.inherits(v, l);
13007
+ c.inherits(_, l);
12799
13008
  var m = ["error", "close", "destroy", "pause", "resume"];
12800
13009
  function b(e2, t3) {
12801
13010
  e2 = e2 || {};
@@ -12804,12 +13013,12 @@ ${w(o2)}`), a3;
12804
13013
  var o2 = e2.highWaterMark, s2 = e2.readableHighWaterMark, a3 = this.objectMode ? 16 : 16384;
12805
13014
  this.highWaterMark = o2 || o2 === 0 ? o2 : n2 && (s2 || s2 === 0) ? s2 : a3, this.highWaterMark = Math.floor(this.highWaterMark), this.buffer = new d(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this.destroyed = false, this.defaultEncoding = e2.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = false, this.decoder = null, this.encoding = null, e2.encoding && (h || (h = r(19).StringDecoder), this.decoder = new h(e2.encoding), this.encoding = e2.encoding);
12806
13015
  }
12807
- function v(e2) {
12808
- if (i = i || r(31), !(this instanceof v))
12809
- return new v(e2);
13016
+ function _(e2) {
13017
+ if (i = i || r(31), !(this instanceof _))
13018
+ return new _(e2);
12810
13019
  this._readableState = new b(e2, this), this.readable = true, e2 && (typeof e2.read == "function" && (this._read = e2.read), typeof e2.destroy == "function" && (this._destroy = e2.destroy)), l.call(this);
12811
13020
  }
12812
- function _(e2, t3, r2, n2, o2) {
13021
+ function v(e2, t3, r2, n2, o2) {
12813
13022
  var i2, s2 = e2._readableState;
12814
13023
  t3 === null ? (s2.reading = false, function(e3, t4) {
12815
13024
  if (t4.ended)
@@ -12834,20 +13043,20 @@ ${w(o2)}`), a3;
12834
13043
  function S(e2, t3, r2, n2) {
12835
13044
  t3.flowing && t3.length === 0 && !t3.sync ? (e2.emit("data", r2), e2.read(0)) : (t3.length += t3.objectMode ? 1 : r2.length, n2 ? t3.buffer.unshift(r2) : t3.buffer.push(r2), t3.needReadable && E(e2)), R(e2, t3);
12836
13045
  }
12837
- Object.defineProperty(v.prototype, "destroyed", { get: function() {
13046
+ Object.defineProperty(_.prototype, "destroyed", { get: function() {
12838
13047
  return this._readableState !== void 0 && this._readableState.destroyed;
12839
13048
  }, set: function(e2) {
12840
13049
  this._readableState && (this._readableState.destroyed = e2);
12841
- } }), v.prototype.destroy = y.destroy, v.prototype._undestroy = y.undestroy, v.prototype._destroy = function(e2, t3) {
13050
+ } }), _.prototype.destroy = y.destroy, _.prototype._undestroy = y.undestroy, _.prototype._destroy = function(e2, t3) {
12842
13051
  this.push(null), t3(e2);
12843
- }, v.prototype.push = function(e2, t3) {
13052
+ }, _.prototype.push = function(e2, t3) {
12844
13053
  var r2, n2 = this._readableState;
12845
- return n2.objectMode ? r2 = true : typeof e2 == "string" && ((t3 = t3 || n2.defaultEncoding) !== n2.encoding && (e2 = u.from(e2, t3), t3 = ""), r2 = true), _(this, e2, t3, false, r2);
12846
- }, v.prototype.unshift = function(e2) {
12847
- return _(this, e2, null, true, false);
12848
- }, v.prototype.isPaused = function() {
13054
+ return n2.objectMode ? r2 = true : typeof e2 == "string" && ((t3 = t3 || n2.defaultEncoding) !== n2.encoding && (e2 = u.from(e2, t3), t3 = ""), r2 = true), v(this, e2, t3, false, r2);
13055
+ }, _.prototype.unshift = function(e2) {
13056
+ return v(this, e2, null, true, false);
13057
+ }, _.prototype.isPaused = function() {
12849
13058
  return this._readableState.flowing === false;
12850
- }, v.prototype.setEncoding = function(e2) {
13059
+ }, _.prototype.setEncoding = function(e2) {
12851
13060
  return h || (h = r(19).StringDecoder), this._readableState.decoder = new h(e2), this._readableState.encoding = e2, this;
12852
13061
  };
12853
13062
  function w(e2, t3) {
@@ -12860,7 +13069,7 @@ ${w(o2)}`), a3;
12860
13069
  t3.needReadable = false, t3.emittedReadable || (p("emitReadable", t3.flowing), t3.emittedReadable = true, t3.sync ? o.nextTick(T, e2) : T(e2));
12861
13070
  }
12862
13071
  function T(e2) {
12863
- p("emit readable"), e2.emit("readable"), I(e2);
13072
+ p("emit readable"), e2.emit("readable"), j(e2);
12864
13073
  }
12865
13074
  function R(e2, t3) {
12866
13075
  t3.readingMore || (t3.readingMore = true, o.nextTick(A, e2, t3));
@@ -12873,10 +13082,10 @@ ${w(o2)}`), a3;
12873
13082
  function O(e2) {
12874
13083
  p("readable nexttick read 0"), e2.read(0);
12875
13084
  }
12876
- function j(e2, t3) {
12877
- t3.reading || (p("resume read 0"), e2.read(0)), t3.resumeScheduled = false, t3.awaitDrain = 0, e2.emit("resume"), I(e2), t3.flowing && !t3.reading && e2.read(0);
13085
+ function I(e2, t3) {
13086
+ t3.reading || (p("resume read 0"), e2.read(0)), t3.resumeScheduled = false, t3.awaitDrain = 0, e2.emit("resume"), j(e2), t3.flowing && !t3.reading && e2.read(0);
12878
13087
  }
12879
- function I(e2) {
13088
+ function j(e2) {
12880
13089
  var t3 = e2._readableState;
12881
13090
  for (p("flow", t3.flowing); t3.flowing && e2.read() !== null; )
12882
13091
  ;
@@ -12928,7 +13137,7 @@ ${w(o2)}`), a3;
12928
13137
  return r2;
12929
13138
  return -1;
12930
13139
  }
12931
- v.prototype.read = function(e2) {
13140
+ _.prototype.read = function(e2) {
12932
13141
  p("read", e2), e2 = parseInt(e2, 10);
12933
13142
  var t3 = this._readableState, r2 = e2;
12934
13143
  if (e2 !== 0 && (t3.emittedReadable = false), e2 === 0 && t3.needReadable && (t3.length >= t3.highWaterMark || t3.ended))
@@ -12937,9 +13146,9 @@ ${w(o2)}`), a3;
12937
13146
  return t3.length === 0 && M(this), null;
12938
13147
  var n2, o2 = t3.needReadable;
12939
13148
  return p("need readable", o2), (t3.length === 0 || t3.length - e2 < t3.highWaterMark) && p("length less than watermark", o2 = true), t3.ended || t3.reading ? p("reading or ended", o2 = false) : o2 && (p("do read"), t3.reading = true, t3.sync = true, t3.length === 0 && (t3.needReadable = true), this._read(t3.highWaterMark), t3.sync = false, t3.reading || (e2 = w(r2, t3))), (n2 = e2 > 0 ? C(e2, t3) : null) === null ? (t3.needReadable = true, e2 = 0) : t3.length -= e2, t3.length === 0 && (t3.ended || (t3.needReadable = true), r2 !== e2 && t3.ended && M(this)), n2 !== null && this.emit("data", n2), n2;
12940
- }, v.prototype._read = function(e2) {
13149
+ }, _.prototype._read = function(e2) {
12941
13150
  this.emit("error", new Error("_read() is not implemented"));
12942
- }, v.prototype.pipe = function(e2, t3) {
13151
+ }, _.prototype.pipe = function(e2, t3) {
12943
13152
  var r2 = this, i2 = this._readableState;
12944
13153
  switch (i2.pipesCount) {
12945
13154
  case 0:
@@ -12952,9 +13161,9 @@ ${w(o2)}`), a3;
12952
13161
  i2.pipes.push(e2);
12953
13162
  }
12954
13163
  i2.pipesCount += 1, p("pipe count=%d opts=%j", i2.pipesCount, t3);
12955
- var l2 = (!t3 || t3.end !== false) && e2 !== n.stdout && e2 !== n.stderr ? g2 : v2;
13164
+ var l2 = (!t3 || t3.end !== false) && e2 !== n.stdout && e2 !== n.stderr ? g2 : _2;
12956
13165
  function u2(t4, n2) {
12957
- p("onunpipe"), t4 === r2 && n2 && n2.hasUnpiped === false && (n2.hasUnpiped = true, p("cleanup"), e2.removeListener("close", m2), e2.removeListener("finish", b2), e2.removeListener("drain", c2), e2.removeListener("error", y2), e2.removeListener("unpipe", u2), r2.removeListener("end", g2), r2.removeListener("end", v2), r2.removeListener("data", d2), f2 = true, !i2.awaitDrain || e2._writableState && !e2._writableState.needDrain || c2());
13166
+ p("onunpipe"), t4 === r2 && n2 && n2.hasUnpiped === false && (n2.hasUnpiped = true, p("cleanup"), e2.removeListener("close", m2), e2.removeListener("finish", b2), e2.removeListener("drain", c2), e2.removeListener("error", y2), e2.removeListener("unpipe", u2), r2.removeListener("end", g2), r2.removeListener("end", _2), r2.removeListener("data", d2), f2 = true, !i2.awaitDrain || e2._writableState && !e2._writableState.needDrain || c2());
12958
13167
  }
12959
13168
  function g2() {
12960
13169
  p("onend"), e2.end();
@@ -12963,7 +13172,7 @@ ${w(o2)}`), a3;
12963
13172
  var c2 = function(e3) {
12964
13173
  return function() {
12965
13174
  var t4 = e3._readableState;
12966
- p("pipeOnDrain", t4.awaitDrain), t4.awaitDrain && t4.awaitDrain--, t4.awaitDrain === 0 && a2(e3, "data") && (t4.flowing = true, I(e3));
13175
+ p("pipeOnDrain", t4.awaitDrain), t4.awaitDrain && t4.awaitDrain--, t4.awaitDrain === 0 && a2(e3, "data") && (t4.flowing = true, j(e3));
12967
13176
  };
12968
13177
  }(r2);
12969
13178
  e2.on("drain", c2);
@@ -12973,15 +13182,15 @@ ${w(o2)}`), a3;
12973
13182
  p("ondata"), h2 = false, e2.write(t4) !== false || h2 || ((i2.pipesCount === 1 && i2.pipes === e2 || i2.pipesCount > 1 && N(i2.pipes, e2) !== -1) && !f2 && (p("false write response, pause", r2._readableState.awaitDrain), r2._readableState.awaitDrain++, h2 = true), r2.pause());
12974
13183
  }
12975
13184
  function y2(t4) {
12976
- p("onerror", t4), v2(), e2.removeListener("error", y2), a2(e2, "error") === 0 && e2.emit("error", t4);
13185
+ p("onerror", t4), _2(), e2.removeListener("error", y2), a2(e2, "error") === 0 && e2.emit("error", t4);
12977
13186
  }
12978
13187
  function m2() {
12979
- e2.removeListener("finish", b2), v2();
13188
+ e2.removeListener("finish", b2), _2();
12980
13189
  }
12981
13190
  function b2() {
12982
- p("onfinish"), e2.removeListener("close", m2), v2();
13191
+ p("onfinish"), e2.removeListener("close", m2), _2();
12983
13192
  }
12984
- function v2() {
13193
+ function _2() {
12985
13194
  p("unpipe"), r2.unpipe(e2);
12986
13195
  }
12987
13196
  return r2.on("data", d2), function(e3, t4, r3) {
@@ -12989,7 +13198,7 @@ ${w(o2)}`), a3;
12989
13198
  return e3.prependListener(t4, r3);
12990
13199
  e3._events && e3._events[t4] ? s(e3._events[t4]) ? e3._events[t4].unshift(r3) : e3._events[t4] = [r3, e3._events[t4]] : e3.on(t4, r3);
12991
13200
  }(e2, "error", y2), e2.once("close", m2), e2.once("finish", b2), e2.emit("pipe", r2), i2.flowing || (p("pipe resume"), r2.resume()), e2;
12992
- }, v.prototype.unpipe = function(e2) {
13201
+ }, _.prototype.unpipe = function(e2) {
12993
13202
  var t3 = this._readableState, r2 = { hasUnpiped: false };
12994
13203
  if (t3.pipesCount === 0)
12995
13204
  return this;
@@ -13004,7 +13213,7 @@ ${w(o2)}`), a3;
13004
13213
  }
13005
13214
  var s2 = N(t3.pipes, e2);
13006
13215
  return s2 === -1 || (t3.pipes.splice(s2, 1), t3.pipesCount -= 1, t3.pipesCount === 1 && (t3.pipes = t3.pipes[0]), e2.emit("unpipe", this, r2)), this;
13007
- }, v.prototype.on = function(e2, t3) {
13216
+ }, _.prototype.on = function(e2, t3) {
13008
13217
  var r2 = l.prototype.on.call(this, e2, t3);
13009
13218
  if (e2 === "data")
13010
13219
  this._readableState.flowing !== false && this.resume();
@@ -13013,14 +13222,14 @@ ${w(o2)}`), a3;
13013
13222
  n2.endEmitted || n2.readableListening || (n2.readableListening = n2.needReadable = true, n2.emittedReadable = false, n2.reading ? n2.length && E(this) : o.nextTick(O, this));
13014
13223
  }
13015
13224
  return r2;
13016
- }, v.prototype.addListener = v.prototype.on, v.prototype.resume = function() {
13225
+ }, _.prototype.addListener = _.prototype.on, _.prototype.resume = function() {
13017
13226
  var e2 = this._readableState;
13018
13227
  return e2.flowing || (p("resume"), e2.flowing = true, function(e3, t3) {
13019
- t3.resumeScheduled || (t3.resumeScheduled = true, o.nextTick(j, e3, t3));
13228
+ t3.resumeScheduled || (t3.resumeScheduled = true, o.nextTick(I, e3, t3));
13020
13229
  }(this, e2)), this;
13021
- }, v.prototype.pause = function() {
13230
+ }, _.prototype.pause = function() {
13022
13231
  return p("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== false && (p("pause"), this._readableState.flowing = false, this.emit("pause")), this;
13023
- }, v.prototype.wrap = function(e2) {
13232
+ }, _.prototype.wrap = function(e2) {
13024
13233
  var t3 = this, r2 = this._readableState, n2 = false;
13025
13234
  for (var o2 in e2.on("end", function() {
13026
13235
  if (p("wrapped end"), r2.decoder && !r2.ended) {
@@ -13041,9 +13250,9 @@ ${w(o2)}`), a3;
13041
13250
  return this._read = function(t4) {
13042
13251
  p("wrapped _read", t4), n2 && (n2 = false, e2.resume());
13043
13252
  }, this;
13044
- }, Object.defineProperty(v.prototype, "readableHighWaterMark", { enumerable: false, get: function() {
13253
+ }, Object.defineProperty(_.prototype, "readableHighWaterMark", { enumerable: false, get: function() {
13045
13254
  return this._readableState.highWaterMark;
13046
- } }), v._fromList = C;
13255
+ } }), _._fromList = C;
13047
13256
  }).call(this, r(5), r(2));
13048
13257
  }, function(e, t) {
13049
13258
  }, function(e, t, r) {
@@ -13200,15 +13409,15 @@ ${w(o2)}`), a3;
13200
13409
  return e3.__proto__ || Object.getPrototypeOf(e3);
13201
13410
  })(e2);
13202
13411
  }
13203
- var f = r(63), p = r(53), h = r(149), d = r(159), y = r(3).MESSAGE, m = r(28), b = m.Stream, v = m.PassThrough, _ = r(17), S = r(33)("winston:file"), w = r(15), E = r(187);
13412
+ var f = r(63), p = r(53), h = r(149), d = r(159), y = r(3).MESSAGE, m = r(28), b = m.Stream, _ = m.PassThrough, v = r(17), S = r(33)("winston:file"), w = r(15), E = r(187);
13204
13413
  e.exports = function(e2) {
13205
13414
  !function(e3, t3) {
13206
13415
  if (typeof t3 != "function" && t3 !== null)
13207
13416
  throw new TypeError("Super expression must either be null or a function");
13208
13417
  e3.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e3, writable: true, configurable: true } }), t3 && a2(e3, t3);
13209
- }(_2, e2);
13210
- var r2, u2, m2 = l(_2);
13211
- function _2() {
13418
+ }(v2, e2);
13419
+ var r2, u2, m2 = l(v2);
13420
+ function v2() {
13212
13421
  var e3, t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13213
13422
  function r3(e4) {
13214
13423
  for (var r4 = arguments.length, n2 = new Array(r4 > 1 ? r4 - 1 : 0), o2 = 1; o2 < r4; o2++)
@@ -13218,7 +13427,7 @@ ${w(o2)}`), a3;
13218
13427
  throw new Error("Cannot set ".concat(r5, " and ").concat(e4, " together"));
13219
13428
  });
13220
13429
  }
13221
- if (i(this, _2), (e3 = m2.call(this, t3)).name = t3.name || "file", e3._stream = new v(), e3._stream.setMaxListeners(30), e3._onError = e3._onError.bind(g(e3)), t3.filename || t3.dirname)
13430
+ if (i(this, v2), (e3 = m2.call(this, t3)).name = t3.name || "file", e3._stream = new _(), e3._stream.setMaxListeners(30), e3._onError = e3._onError.bind(g(e3)), t3.filename || t3.dirname)
13222
13431
  r3("filename or dirname", "stream"), e3._basename = e3.filename = t3.filename ? p.basename(t3.filename) : "winston.log", e3.dirname = t3.dirname || p.dirname(t3.filename), e3.options = t3.options || { flags: "a" };
13223
13432
  else {
13224
13433
  if (!t3.stream)
@@ -13227,7 +13436,7 @@ ${w(o2)}`), a3;
13227
13436
  }
13228
13437
  return e3.maxsize = t3.maxsize || null, e3.rotationFormat = t3.rotationFormat || false, e3.zippedArchive = t3.zippedArchive || false, e3.maxFiles = t3.maxFiles || null, e3.eol = t3.eol || w.EOL, e3.tailable = t3.tailable || false, e3._size = 0, e3._pendingSize = 0, e3._created = 0, e3._drain = false, e3._opening = false, e3._ending = false, e3.dirname && e3._createLogDirIfNotExist(e3.dirname), e3.open(), e3;
13229
13438
  }
13230
- return r2 = _2, (u2 = [{ key: "finishIfEnding", value: function() {
13439
+ return r2 = v2, (u2 = [{ key: "finishIfEnding", value: function() {
13231
13440
  var e3 = this;
13232
13441
  this._ending && (this._opening ? this.once("open", function() {
13233
13442
  e3._stream.once("finish", function() {
@@ -13360,7 +13569,7 @@ ${w(o2)}`), a3;
13360
13569
  }).on("close", function() {
13361
13570
  return S("close", n2.path, n2.bytesWritten);
13362
13571
  }).on("open", function() {
13363
- S("file open ok", r3), t3.emit("open", r3), e3.pipe(n2), t3.rotatedWhileOpening && (t3._stream = new v(), t3._stream.setMaxListeners(30), t3._rotateFile(), t3.rotatedWhileOpening = false, t3._cleanupStream(n2), e3.end());
13572
+ S("file open ok", r3), t3.emit("open", r3), e3.pipe(n2), t3.rotatedWhileOpening && (t3._stream = new _(), t3._stream.setMaxListeners(30), t3._rotateFile(), t3.rotatedWhileOpening = false, t3._cleanupStream(n2), e3.end());
13364
13573
  });
13365
13574
  if (S("create stream ok", r3), this.zippedArchive) {
13366
13575
  var o2 = d.createGzip();
@@ -13397,8 +13606,8 @@ ${w(o2)}`), a3;
13397
13606
  }
13398
13607
  } }, { key: "_createLogDirIfNotExist", value: function(e3) {
13399
13608
  f.existsSync(e3) || f.mkdirSync(e3, { recursive: true });
13400
- } }]) && s(r2.prototype, u2), _2;
13401
- }(_);
13609
+ } }]) && s(r2.prototype, u2), v2;
13610
+ }(v);
13402
13611
  }).call(this, r(12).setImmediate, r(4).Buffer);
13403
13612
  }, function(e, t, r) {
13404
13613
  Object.defineProperty(t, "__esModule", { value: true }), t.default = function(e2, t2) {
@@ -13617,14 +13826,14 @@ ${w(o2)}`), a3;
13617
13826
  var r2 = e3._finishFlushFlag;
13618
13827
  return e3._processChunk(t2, r2);
13619
13828
  }
13620
- function v(e3) {
13621
- if (!(this instanceof v))
13622
- return new v(e3);
13623
- O.call(this, e3, i.DEFLATE);
13624
- }
13625
13829
  function _(e3) {
13626
13830
  if (!(this instanceof _))
13627
13831
  return new _(e3);
13832
+ O.call(this, e3, i.DEFLATE);
13833
+ }
13834
+ function v(e3) {
13835
+ if (!(this instanceof v))
13836
+ return new v(e3);
13628
13837
  O.call(this, e3, i.INFLATE);
13629
13838
  }
13630
13839
  function S(e3) {
@@ -13676,7 +13885,7 @@ ${w(o2)}`), a3;
13676
13885
  this._handle = new i.Zlib(r2);
13677
13886
  var a3 = this;
13678
13887
  this._hadError = false, this._handle.onerror = function(e4, r3) {
13679
- j(a3), a3._hadError = true;
13888
+ I(a3), a3._hadError = true;
13680
13889
  var n2 = new Error(e4);
13681
13890
  n2.errno = r3, n2.code = t.codes[r3], a3.emit("error", n2);
13682
13891
  };
@@ -13687,16 +13896,16 @@ ${w(o2)}`), a3;
13687
13896
  return !s2._handle;
13688
13897
  }, configurable: true, enumerable: true });
13689
13898
  }
13690
- function j(t2, r2) {
13899
+ function I(t2, r2) {
13691
13900
  r2 && e2.nextTick(r2), t2._handle && (t2._handle.close(), t2._handle = null);
13692
13901
  }
13693
- function I(e3) {
13902
+ function j(e3) {
13694
13903
  e3.emit("close");
13695
13904
  }
13696
- Object.defineProperty(t, "codes", { enumerable: true, value: Object.freeze(p), writable: false }), t.Deflate = v, t.Inflate = _, t.Gzip = S, t.Gunzip = w, t.DeflateRaw = E, t.InflateRaw = T, t.Unzip = R, t.createDeflate = function(e3) {
13697
- return new v(e3);
13698
- }, t.createInflate = function(e3) {
13905
+ Object.defineProperty(t, "codes", { enumerable: true, value: Object.freeze(p), writable: false }), t.Deflate = _, t.Inflate = v, t.Gzip = S, t.Gunzip = w, t.DeflateRaw = E, t.InflateRaw = T, t.Unzip = R, t.createDeflate = function(e3) {
13699
13906
  return new _(e3);
13907
+ }, t.createInflate = function(e3) {
13908
+ return new v(e3);
13700
13909
  }, t.createDeflateRaw = function(e3) {
13701
13910
  return new E(e3);
13702
13911
  }, t.createInflateRaw = function(e3) {
@@ -13708,9 +13917,9 @@ ${w(o2)}`), a3;
13708
13917
  }, t.createUnzip = function(e3) {
13709
13918
  return new R(e3);
13710
13919
  }, t.deflate = function(e3, t2, r2) {
13711
- return typeof t2 == "function" && (r2 = t2, t2 = {}), m(new v(t2), e3, r2);
13920
+ return typeof t2 == "function" && (r2 = t2, t2 = {}), m(new _(t2), e3, r2);
13712
13921
  }, t.deflateSync = function(e3, t2) {
13713
- return b(new v(t2), e3);
13922
+ return b(new _(t2), e3);
13714
13923
  }, t.gzip = function(e3, t2, r2) {
13715
13924
  return typeof t2 == "function" && (r2 = t2, t2 = {}), m(new S(t2), e3, r2);
13716
13925
  }, t.gzipSync = function(e3, t2) {
@@ -13724,9 +13933,9 @@ ${w(o2)}`), a3;
13724
13933
  }, t.unzipSync = function(e3, t2) {
13725
13934
  return b(new R(t2), e3);
13726
13935
  }, t.inflate = function(e3, t2, r2) {
13727
- return typeof t2 == "function" && (r2 = t2, t2 = {}), m(new _(t2), e3, r2);
13936
+ return typeof t2 == "function" && (r2 = t2, t2 = {}), m(new v(t2), e3, r2);
13728
13937
  }, t.inflateSync = function(e3, t2) {
13729
- return b(new _(t2), e3);
13938
+ return b(new v(t2), e3);
13730
13939
  }, t.gunzip = function(e3, t2, r2) {
13731
13940
  return typeof t2 == "function" && (r2 = t2, t2 = {}), m(new w(t2), e3, r2);
13732
13941
  }, t.gunzipSync = function(e3, t2) {
@@ -13757,7 +13966,7 @@ ${w(o2)}`), a3;
13757
13966
  return o2.flush(t2, r2);
13758
13967
  }) : (this._flushFlag = t2, this.write(n.alloc(0), "", r2));
13759
13968
  }, O.prototype.close = function(t2) {
13760
- j(this, t2), e2.nextTick(I, this);
13969
+ I(this, t2), e2.nextTick(j, this);
13761
13970
  }, O.prototype._transform = function(e3, t2, r2) {
13762
13971
  var o2, s2 = this._writableState, a3 = (s2.ending || s2.ended) && (!e3 || s2.length === e3.length);
13763
13972
  return e3 === null || n.isBuffer(e3) ? this._handle ? (a3 ? o2 = this._finishFlushFlag : (o2 = this._flushFlag, e3.length >= s2.length && (this._flushFlag = this._opts.flush || i.Z_NO_FLUSH)), void this._processChunk(e3, o2, r2)) : r2(new Error("zlib binding closed")) : r2(new Error("invalid input"));
@@ -13774,9 +13983,9 @@ ${w(o2)}`), a3;
13774
13983
  if (this._hadError)
13775
13984
  throw f2;
13776
13985
  if (h2 >= l)
13777
- throw j(this), new RangeError(u);
13986
+ throw I(this), new RangeError(u);
13778
13987
  var y2 = n.concat(p2, h2);
13779
- return j(this), y2;
13988
+ return I(this), y2;
13780
13989
  }
13781
13990
  a2(this._handle, "zlib binding closed");
13782
13991
  var m2 = this._handle.write(t2, e3, s2, o2, this._buffer, this._offset, i2);
@@ -13799,7 +14008,7 @@ ${w(o2)}`), a3;
13799
14008
  }
13800
14009
  }
13801
14010
  m2.buffer = e3, m2.callback = b2;
13802
- }, s.inherits(v, O), s.inherits(_, O), s.inherits(S, O), s.inherits(w, O), s.inherits(E, O), s.inherits(T, O), s.inherits(R, O);
14011
+ }, s.inherits(_, O), s.inherits(v, O), s.inherits(S, O), s.inherits(w, O), s.inherits(E, O), s.inherits(T, O), s.inherits(R, O);
13803
14012
  }).call(this, r(2));
13804
14013
  }, function(e, t, r) {
13805
14014
  e.exports = o;
@@ -14156,7 +14365,7 @@ ${w(o2)}`), a3;
14156
14365
  }
14157
14366
  return e2.insert = e2.strstart < 2 ? e2.strstart : 2, t2 === 4 ? (p(e2, true), e2.strm.avail_out === 0 ? 3 : 4) : e2.last_lit && (p(e2, false), e2.strm.avail_out === 0) ? 1 : 2;
14158
14367
  }
14159
- function v(e2, t2) {
14368
+ function _(e2, t2) {
14160
14369
  for (var r2, n2, o2; ; ) {
14161
14370
  if (e2.lookahead < 262) {
14162
14371
  if (m(e2), e2.lookahead < 262 && t2 === 0)
@@ -14179,7 +14388,7 @@ ${w(o2)}`), a3;
14179
14388
  }
14180
14389
  return e2.match_available && (n2 = i._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < 2 ? e2.strstart : 2, t2 === 4 ? (p(e2, true), e2.strm.avail_out === 0 ? 3 : 4) : e2.last_lit && (p(e2, false), e2.strm.avail_out === 0) ? 1 : 2;
14181
14390
  }
14182
- function _(e2, t2, r2, n2, o2) {
14391
+ function v(e2, t2, r2, n2, o2) {
14183
14392
  this.good_length = e2, this.max_lazy = t2, this.nice_length = r2, this.max_chain = n2, this.func = o2;
14184
14393
  }
14185
14394
  function S() {
@@ -14203,7 +14412,7 @@ ${w(o2)}`), a3;
14203
14412
  var l2 = new S();
14204
14413
  return e2.state = l2, l2.strm = e2, l2.wrap = a3, l2.gzhead = null, l2.w_bits = n2, l2.w_size = 1 << l2.w_bits, l2.w_mask = l2.w_size - 1, l2.hash_bits = i2 + 7, l2.hash_size = 1 << l2.hash_bits, l2.hash_mask = l2.hash_size - 1, l2.hash_shift = ~~((l2.hash_bits + 3 - 1) / 3), l2.window = new o.Buf8(2 * l2.w_size), l2.head = new o.Buf16(l2.hash_size), l2.prev = new o.Buf16(l2.w_size), l2.lit_bufsize = 1 << i2 + 6, l2.pending_buf_size = 4 * l2.lit_bufsize, l2.pending_buf = new o.Buf8(l2.pending_buf_size), l2.d_buf = 1 * l2.lit_bufsize, l2.l_buf = 3 * l2.lit_bufsize, l2.level = t2, l2.strategy = s2, l2.method = r2, E(e2);
14205
14414
  }
14206
- n = [new _(0, 0, 0, 0, function(e2, t2) {
14415
+ n = [new v(0, 0, 0, 0, function(e2, t2) {
14207
14416
  var r2 = 65535;
14208
14417
  for (r2 > e2.pending_buf_size - 5 && (r2 = e2.pending_buf_size - 5); ; ) {
14209
14418
  if (e2.lookahead <= 1) {
@@ -14220,7 +14429,7 @@ ${w(o2)}`), a3;
14220
14429
  return 1;
14221
14430
  }
14222
14431
  return e2.insert = 0, t2 === 4 ? (p(e2, true), e2.strm.avail_out === 0 ? 3 : 4) : (e2.strstart > e2.block_start && (p(e2, false), e2.strm.avail_out), 1);
14223
- }), new _(4, 4, 8, 4, b), new _(4, 5, 16, 8, b), new _(4, 6, 32, 32, b), new _(4, 4, 16, 16, v), new _(8, 16, 32, 32, v), new _(8, 16, 128, 128, v), new _(8, 32, 128, 256, v), new _(32, 128, 258, 1024, v), new _(32, 258, 258, 4096, v)], t.deflateInit = function(e2, t2) {
14432
+ }), new v(4, 4, 8, 4, b), new v(4, 5, 16, 8, b), new v(4, 6, 32, 32, b), new v(4, 4, 16, 16, _), new v(8, 16, 32, 32, _), new v(8, 16, 128, 128, _), new v(8, 32, 128, 256, _), new v(32, 128, 258, 1024, _), new v(32, 258, 258, 4096, _)], t.deflateInit = function(e2, t2) {
14224
14433
  return T(e2, t2, 8, 15, 8, 0);
14225
14434
  }, t.deflateInit2 = T, t.deflateReset = E, t.deflateResetKeep = w, t.deflateSetHeader = function(e2, t2) {
14226
14435
  return e2 && e2.state ? e2.state.wrap !== 2 ? -2 : (e2.state.gzhead = t2, 0) : -2;
@@ -14352,10 +14561,10 @@ ${w(o2)}`), a3;
14352
14561
  function b(e2, t2, r2, n2, o2) {
14353
14562
  this.static_tree = e2, this.extra_bits = t2, this.extra_base = r2, this.elems = n2, this.max_length = o2, this.has_stree = e2 && e2.length;
14354
14563
  }
14355
- function v(e2, t2) {
14564
+ function _(e2, t2) {
14356
14565
  this.dyn_tree = e2, this.max_code = 0, this.stat_desc = t2;
14357
14566
  }
14358
- function _(e2) {
14567
+ function v(e2) {
14359
14568
  return e2 < 256 ? c[e2] : c[256 + (e2 >>> 7)];
14360
14569
  }
14361
14570
  function S(e2, t2) {
@@ -14396,12 +14605,12 @@ ${w(o2)}`), a3;
14396
14605
  function O(e2) {
14397
14606
  e2.bi_valid > 8 ? S(e2, e2.bi_buf) : e2.bi_valid > 0 && (e2.pending_buf[e2.pending++] = e2.bi_buf), e2.bi_buf = 0, e2.bi_valid = 0;
14398
14607
  }
14399
- function j(e2, t2, r2, n2) {
14608
+ function I(e2, t2, r2, n2) {
14400
14609
  var o2 = 2 * t2, i2 = 2 * r2;
14401
14610
  return e2[o2] < e2[i2] || e2[o2] === e2[i2] && n2[t2] <= n2[r2];
14402
14611
  }
14403
- function I(e2, t2, r2) {
14404
- for (var n2 = e2.heap[r2], o2 = r2 << 1; o2 <= e2.heap_len && (o2 < e2.heap_len && j(t2, e2.heap[o2 + 1], e2.heap[o2], e2.depth) && o2++, !j(t2, n2, e2.heap[o2], e2.depth)); )
14612
+ function j(e2, t2, r2) {
14613
+ for (var n2 = e2.heap[r2], o2 = r2 << 1; o2 <= e2.heap_len && (o2 < e2.heap_len && I(t2, e2.heap[o2 + 1], e2.heap[o2], e2.depth) && o2++, !I(t2, n2, e2.heap[o2], e2.depth)); )
14405
14614
  e2.heap[r2] = e2.heap[o2], r2 = o2, o2 <<= 1;
14406
14615
  e2.heap[r2] = n2;
14407
14616
  }
@@ -14409,7 +14618,7 @@ ${w(o2)}`), a3;
14409
14618
  var n2, o2, a3, l2, u2 = 0;
14410
14619
  if (e2.last_lit !== 0)
14411
14620
  do {
14412
- n2 = e2.pending_buf[e2.d_buf + 2 * u2] << 8 | e2.pending_buf[e2.d_buf + 2 * u2 + 1], o2 = e2.pending_buf[e2.l_buf + u2], u2++, n2 === 0 ? E(e2, o2, t2) : (E(e2, (a3 = f[o2]) + 256 + 1, t2), (l2 = i[a3]) !== 0 && w(e2, o2 -= p[a3], l2), E(e2, a3 = _(--n2), r2), (l2 = s[a3]) !== 0 && w(e2, n2 -= m[a3], l2));
14621
+ n2 = e2.pending_buf[e2.d_buf + 2 * u2] << 8 | e2.pending_buf[e2.d_buf + 2 * u2 + 1], o2 = e2.pending_buf[e2.l_buf + u2], u2++, n2 === 0 ? E(e2, o2, t2) : (E(e2, (a3 = f[o2]) + 256 + 1, t2), (l2 = i[a3]) !== 0 && w(e2, o2 -= p[a3], l2), E(e2, a3 = v(--n2), r2), (l2 = s[a3]) !== 0 && w(e2, n2 -= m[a3], l2));
14413
14622
  } while (u2 < e2.last_lit);
14414
14623
  E(e2, 256, t2);
14415
14624
  }
@@ -14420,10 +14629,10 @@ ${w(o2)}`), a3;
14420
14629
  for (; e2.heap_len < 2; )
14421
14630
  i2[2 * (o2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[o2] = 0, e2.opt_len--, a3 && (e2.static_len -= s2[2 * o2 + 1]);
14422
14631
  for (t2.max_code = u2, r2 = e2.heap_len >> 1; r2 >= 1; r2--)
14423
- I(e2, i2, r2);
14632
+ j(e2, i2, r2);
14424
14633
  o2 = l2;
14425
14634
  do {
14426
- r2 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], I(e2, i2, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r2, e2.heap[--e2.heap_max] = n2, i2[2 * o2] = i2[2 * r2] + i2[2 * n2], e2.depth[o2] = (e2.depth[r2] >= e2.depth[n2] ? e2.depth[r2] : e2.depth[n2]) + 1, i2[2 * r2 + 1] = i2[2 * n2 + 1] = o2, e2.heap[1] = o2++, I(e2, i2, 1);
14635
+ r2 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], j(e2, i2, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r2, e2.heap[--e2.heap_max] = n2, i2[2 * o2] = i2[2 * r2] + i2[2 * n2], e2.depth[o2] = (e2.depth[r2] >= e2.depth[n2] ? e2.depth[r2] : e2.depth[n2]) + 1, i2[2 * r2 + 1] = i2[2 * n2 + 1] = o2, e2.heap[1] = o2++, j(e2, i2, 1);
14427
14636
  } while (e2.heap_len >= 2);
14428
14637
  e2.heap[--e2.heap_max] = e2.heap[1], function(e3, t3) {
14429
14638
  var r3, n3, o3, i3, s3, a4, l3 = t3.dyn_tree, u3 = t3.max_code, g2 = t3.stat_desc.static_tree, c2 = t3.stat_desc.has_stree, f2 = t3.stat_desc.extra_bits, p2 = t3.stat_desc.extra_base, h2 = t3.stat_desc.max_length, d2 = 0;
@@ -14462,14 +14671,14 @@ ${w(o2)}`), a3;
14462
14671
  }
14463
14672
  }
14464
14673
  o(m);
14465
- var D = false;
14466
- function L(e2, t2, r2, o2) {
14674
+ var L = false;
14675
+ function D(e2, t2, r2, o2) {
14467
14676
  w(e2, 0 + (o2 ? 1 : 0), 3), function(e3, t3, r3, o3) {
14468
14677
  O(e3), o3 && (S(e3, r3), S(e3, ~r3)), n.arraySet(e3.pending_buf, e3.window, t3, r3, e3.pending), e3.pending += r3;
14469
14678
  }(e2, t2, r2, true);
14470
14679
  }
14471
14680
  t._tr_init = function(e2) {
14472
- D || (!function() {
14681
+ L || (!function() {
14473
14682
  var e3, t2, r2, n2, o2, l2 = new Array(16);
14474
14683
  for (r2 = 0, n2 = 0; n2 < 28; n2++)
14475
14684
  for (p[n2] = r2, e3 = 0; e3 < 1 << i[n2]; e3++)
@@ -14493,8 +14702,8 @@ ${w(o2)}`), a3;
14493
14702
  for (R(u, 287, l2), e3 = 0; e3 < 30; e3++)
14494
14703
  g[2 * e3 + 1] = 5, g[2 * e3] = T(e3, 5);
14495
14704
  h = new b(u, i, 257, 286, 15), d = new b(g, s, 0, 30, 15), y = new b(new Array(0), a2, 0, 19, 7);
14496
- }(), D = true), e2.l_desc = new v(e2.dyn_ltree, h), e2.d_desc = new v(e2.dyn_dtree, d), e2.bl_desc = new v(e2.bl_tree, y), e2.bi_buf = 0, e2.bi_valid = 0, A(e2);
14497
- }, t._tr_stored_block = L, t._tr_flush_block = function(e2, t2, r2, n2) {
14705
+ }(), L = true), e2.l_desc = new _(e2.dyn_ltree, h), e2.d_desc = new _(e2.dyn_dtree, d), e2.bl_desc = new _(e2.bl_tree, y), e2.bi_buf = 0, e2.bi_valid = 0, A(e2);
14706
+ }, t._tr_stored_block = D, t._tr_flush_block = function(e2, t2, r2, n2) {
14498
14707
  var o2, i2, s2 = 0;
14499
14708
  e2.level > 0 ? (e2.strm.data_type === 2 && (e2.strm.data_type = function(e3) {
14500
14709
  var t3, r3 = 4093624447;
@@ -14512,14 +14721,14 @@ ${w(o2)}`), a3;
14512
14721
  for (P(e3, e3.dyn_ltree, e3.l_desc.max_code), P(e3, e3.dyn_dtree, e3.d_desc.max_code), M(e3, e3.bl_desc), t3 = 18; t3 >= 3 && e3.bl_tree[2 * l[t3] + 1] === 0; t3--)
14513
14722
  ;
14514
14723
  return e3.opt_len += 3 * (t3 + 1) + 5 + 5 + 4, t3;
14515
- }(e2), o2 = e2.opt_len + 3 + 7 >>> 3, (i2 = e2.static_len + 3 + 7 >>> 3) <= o2 && (o2 = i2)) : o2 = i2 = r2 + 5, r2 + 4 <= o2 && t2 !== -1 ? L(e2, t2, r2, n2) : e2.strategy === 4 || i2 === o2 ? (w(e2, 2 + (n2 ? 1 : 0), 3), C(e2, u, g)) : (w(e2, 4 + (n2 ? 1 : 0), 3), function(e3, t3, r3, n3) {
14724
+ }(e2), o2 = e2.opt_len + 3 + 7 >>> 3, (i2 = e2.static_len + 3 + 7 >>> 3) <= o2 && (o2 = i2)) : o2 = i2 = r2 + 5, r2 + 4 <= o2 && t2 !== -1 ? D(e2, t2, r2, n2) : e2.strategy === 4 || i2 === o2 ? (w(e2, 2 + (n2 ? 1 : 0), 3), C(e2, u, g)) : (w(e2, 4 + (n2 ? 1 : 0), 3), function(e3, t3, r3, n3) {
14516
14725
  var o3;
14517
14726
  for (w(e3, t3 - 257, 5), w(e3, r3 - 1, 5), w(e3, n3 - 4, 4), o3 = 0; o3 < n3; o3++)
14518
14727
  w(e3, e3.bl_tree[2 * l[o3] + 1], 3);
14519
14728
  N(e3, e3.dyn_ltree, t3 - 1), N(e3, e3.dyn_dtree, r3 - 1);
14520
14729
  }(e2, e2.l_desc.max_code + 1, e2.d_desc.max_code + 1, s2 + 1), C(e2, e2.dyn_ltree, e2.dyn_dtree)), A(e2), n2 && O(e2);
14521
14730
  }, t._tr_tally = function(e2, t2, r2) {
14522
- return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r2, e2.last_lit++, t2 === 0 ? e2.dyn_ltree[2 * r2]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (f[r2] + 256 + 1)]++, e2.dyn_dtree[2 * _(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
14731
+ return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r2, e2.last_lit++, t2 === 0 ? e2.dyn_ltree[2 * r2]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (f[r2] + 256 + 1)]++, e2.dyn_dtree[2 * v(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
14523
14732
  }, t._tr_align = function(e2) {
14524
14733
  w(e2, 2, 3), E(e2, 256, u), function(e3) {
14525
14734
  e3.bi_valid === 16 ? (S(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : e3.bi_valid >= 8 && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8);
@@ -14576,10 +14785,10 @@ ${w(o2)}`), a3;
14576
14785
  t.inflateReset = c, t.inflateReset2 = f, t.inflateResetKeep = g, t.inflateInit = function(e2) {
14577
14786
  return p(e2, 15);
14578
14787
  }, t.inflateInit2 = p, t.inflate = function(e2, t2) {
14579
- var r2, u2, g2, c2, f2, p2, h2, d2, y2, v, _, S, w, E, T, R, A, O, j, I, C, M, P, N, D = 0, L = new n.Buf8(4), x = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
14788
+ var r2, u2, g2, c2, f2, p2, h2, d2, y2, _, v, S, w, E, T, R, A, O, I, j, C, M, P, N, L = 0, D = new n.Buf8(4), x = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
14580
14789
  if (!e2 || !e2.state || !e2.output || !e2.input && e2.avail_in !== 0)
14581
14790
  return -2;
14582
- (r2 = e2.state).mode === 12 && (r2.mode = 13), f2 = e2.next_out, g2 = e2.output, h2 = e2.avail_out, c2 = e2.next_in, u2 = e2.input, p2 = e2.avail_in, d2 = r2.hold, y2 = r2.bits, v = p2, _ = h2, M = 0;
14791
+ (r2 = e2.state).mode === 12 && (r2.mode = 13), f2 = e2.next_out, g2 = e2.output, h2 = e2.avail_out, c2 = e2.next_in, u2 = e2.input, p2 = e2.avail_in, d2 = r2.hold, y2 = r2.bits, _ = p2, v = h2, M = 0;
14583
14792
  e:
14584
14793
  for (; ; )
14585
14794
  switch (r2.mode) {
@@ -14594,7 +14803,7 @@ ${w(o2)}`), a3;
14594
14803
  p2--, d2 += u2[c2++] << y2, y2 += 8;
14595
14804
  }
14596
14805
  if (2 & r2.wrap && d2 === 35615) {
14597
- r2.check = 0, L[0] = 255 & d2, L[1] = d2 >>> 8 & 255, r2.check = i(r2.check, L, 2, 0), d2 = 0, y2 = 0, r2.mode = 2;
14806
+ r2.check = 0, D[0] = 255 & d2, D[1] = d2 >>> 8 & 255, r2.check = i(r2.check, D, 2, 0), d2 = 0, y2 = 0, r2.mode = 2;
14598
14807
  break;
14599
14808
  }
14600
14809
  if (r2.flags = 0, r2.head && (r2.head.done = false), !(1 & r2.wrap) || (((255 & d2) << 8) + (d2 >> 8)) % 31) {
@@ -14627,21 +14836,21 @@ ${w(o2)}`), a3;
14627
14836
  e2.msg = "unknown header flags set", r2.mode = 30;
14628
14837
  break;
14629
14838
  }
14630
- r2.head && (r2.head.text = d2 >> 8 & 1), 512 & r2.flags && (L[0] = 255 & d2, L[1] = d2 >>> 8 & 255, r2.check = i(r2.check, L, 2, 0)), d2 = 0, y2 = 0, r2.mode = 3;
14839
+ r2.head && (r2.head.text = d2 >> 8 & 1), 512 & r2.flags && (D[0] = 255 & d2, D[1] = d2 >>> 8 & 255, r2.check = i(r2.check, D, 2, 0)), d2 = 0, y2 = 0, r2.mode = 3;
14631
14840
  case 3:
14632
14841
  for (; y2 < 32; ) {
14633
14842
  if (p2 === 0)
14634
14843
  break e;
14635
14844
  p2--, d2 += u2[c2++] << y2, y2 += 8;
14636
14845
  }
14637
- r2.head && (r2.head.time = d2), 512 & r2.flags && (L[0] = 255 & d2, L[1] = d2 >>> 8 & 255, L[2] = d2 >>> 16 & 255, L[3] = d2 >>> 24 & 255, r2.check = i(r2.check, L, 4, 0)), d2 = 0, y2 = 0, r2.mode = 4;
14846
+ r2.head && (r2.head.time = d2), 512 & r2.flags && (D[0] = 255 & d2, D[1] = d2 >>> 8 & 255, D[2] = d2 >>> 16 & 255, D[3] = d2 >>> 24 & 255, r2.check = i(r2.check, D, 4, 0)), d2 = 0, y2 = 0, r2.mode = 4;
14638
14847
  case 4:
14639
14848
  for (; y2 < 16; ) {
14640
14849
  if (p2 === 0)
14641
14850
  break e;
14642
14851
  p2--, d2 += u2[c2++] << y2, y2 += 8;
14643
14852
  }
14644
- r2.head && (r2.head.xflags = 255 & d2, r2.head.os = d2 >> 8), 512 & r2.flags && (L[0] = 255 & d2, L[1] = d2 >>> 8 & 255, r2.check = i(r2.check, L, 2, 0)), d2 = 0, y2 = 0, r2.mode = 5;
14853
+ r2.head && (r2.head.xflags = 255 & d2, r2.head.os = d2 >> 8), 512 & r2.flags && (D[0] = 255 & d2, D[1] = d2 >>> 8 & 255, r2.check = i(r2.check, D, 2, 0)), d2 = 0, y2 = 0, r2.mode = 5;
14645
14854
  case 5:
14646
14855
  if (1024 & r2.flags) {
14647
14856
  for (; y2 < 16; ) {
@@ -14649,7 +14858,7 @@ ${w(o2)}`), a3;
14649
14858
  break e;
14650
14859
  p2--, d2 += u2[c2++] << y2, y2 += 8;
14651
14860
  }
14652
- r2.length = d2, r2.head && (r2.head.extra_len = d2), 512 & r2.flags && (L[0] = 255 & d2, L[1] = d2 >>> 8 & 255, r2.check = i(r2.check, L, 2, 0)), d2 = 0, y2 = 0;
14861
+ r2.length = d2, r2.head && (r2.head.extra_len = d2), 512 & r2.flags && (D[0] = 255 & d2, D[1] = d2 >>> 8 & 255, r2.check = i(r2.check, D, 2, 0)), d2 = 0, y2 = 0;
14653
14862
  } else
14654
14863
  r2.head && (r2.head.extra = null);
14655
14864
  r2.mode = 6;
@@ -14792,7 +15001,7 @@ ${w(o2)}`), a3;
14792
15001
  r2.have = 0, r2.mode = 19;
14793
15002
  case 19:
14794
15003
  for (; r2.have < r2.nlen + r2.ndist; ) {
14795
- for (; R = (D = r2.lencode[d2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, A = 65535 & D, !((T = D >>> 24) <= y2); ) {
15004
+ for (; R = (L = r2.lencode[d2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, A = 65535 & L, !((T = L >>> 24) <= y2); ) {
14796
15005
  if (p2 === 0)
14797
15006
  break e;
14798
15007
  p2--, d2 += u2[c2++] << y2, y2 += 8;
@@ -14854,16 +15063,16 @@ ${w(o2)}`), a3;
14854
15063
  r2.mode = 21;
14855
15064
  case 21:
14856
15065
  if (p2 >= 6 && h2 >= 258) {
14857
- e2.next_out = f2, e2.avail_out = h2, e2.next_in = c2, e2.avail_in = p2, r2.hold = d2, r2.bits = y2, s(e2, _), f2 = e2.next_out, g2 = e2.output, h2 = e2.avail_out, c2 = e2.next_in, u2 = e2.input, p2 = e2.avail_in, d2 = r2.hold, y2 = r2.bits, r2.mode === 12 && (r2.back = -1);
15066
+ e2.next_out = f2, e2.avail_out = h2, e2.next_in = c2, e2.avail_in = p2, r2.hold = d2, r2.bits = y2, s(e2, v), f2 = e2.next_out, g2 = e2.output, h2 = e2.avail_out, c2 = e2.next_in, u2 = e2.input, p2 = e2.avail_in, d2 = r2.hold, y2 = r2.bits, r2.mode === 12 && (r2.back = -1);
14858
15067
  break;
14859
15068
  }
14860
- for (r2.back = 0; R = (D = r2.lencode[d2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, A = 65535 & D, !((T = D >>> 24) <= y2); ) {
15069
+ for (r2.back = 0; R = (L = r2.lencode[d2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, A = 65535 & L, !((T = L >>> 24) <= y2); ) {
14861
15070
  if (p2 === 0)
14862
15071
  break e;
14863
15072
  p2--, d2 += u2[c2++] << y2, y2 += 8;
14864
15073
  }
14865
15074
  if (R && (240 & R) == 0) {
14866
- for (O = T, j = R, I = A; R = (D = r2.lencode[I + ((d2 & (1 << O + j) - 1) >> O)]) >>> 16 & 255, A = 65535 & D, !(O + (T = D >>> 24) <= y2); ) {
15075
+ for (O = T, I = R, j = A; R = (L = r2.lencode[j + ((d2 & (1 << O + I) - 1) >> O)]) >>> 16 & 255, A = 65535 & L, !(O + (T = L >>> 24) <= y2); ) {
14867
15076
  if (p2 === 0)
14868
15077
  break e;
14869
15078
  p2--, d2 += u2[c2++] << y2, y2 += 8;
@@ -14894,13 +15103,13 @@ ${w(o2)}`), a3;
14894
15103
  }
14895
15104
  r2.was = r2.length, r2.mode = 23;
14896
15105
  case 23:
14897
- for (; R = (D = r2.distcode[d2 & (1 << r2.distbits) - 1]) >>> 16 & 255, A = 65535 & D, !((T = D >>> 24) <= y2); ) {
15106
+ for (; R = (L = r2.distcode[d2 & (1 << r2.distbits) - 1]) >>> 16 & 255, A = 65535 & L, !((T = L >>> 24) <= y2); ) {
14898
15107
  if (p2 === 0)
14899
15108
  break e;
14900
15109
  p2--, d2 += u2[c2++] << y2, y2 += 8;
14901
15110
  }
14902
15111
  if ((240 & R) == 0) {
14903
- for (O = T, j = R, I = A; R = (D = r2.distcode[I + ((d2 & (1 << O + j) - 1) >> O)]) >>> 16 & 255, A = 65535 & D, !(O + (T = D >>> 24) <= y2); ) {
15112
+ for (O = T, I = R, j = A; R = (L = r2.distcode[j + ((d2 & (1 << O + I) - 1) >> O)]) >>> 16 & 255, A = 65535 & L, !(O + (T = L >>> 24) <= y2); ) {
14904
15113
  if (p2 === 0)
14905
15114
  break e;
14906
15115
  p2--, d2 += u2[c2++] << y2, y2 += 8;
@@ -14929,7 +15138,7 @@ ${w(o2)}`), a3;
14929
15138
  case 25:
14930
15139
  if (h2 === 0)
14931
15140
  break e;
14932
- if (S = _ - h2, r2.offset > S) {
15141
+ if (S = v - h2, r2.offset > S) {
14933
15142
  if ((S = r2.offset - S) > r2.whave && r2.sane) {
14934
15143
  e2.msg = "invalid distance too far back", r2.mode = 30;
14935
15144
  break;
@@ -14955,7 +15164,7 @@ ${w(o2)}`), a3;
14955
15164
  break e;
14956
15165
  p2--, d2 |= u2[c2++] << y2, y2 += 8;
14957
15166
  }
14958
- if (_ -= h2, e2.total_out += _, r2.total += _, _ && (e2.adler = r2.check = r2.flags ? i(r2.check, g2, _, f2 - _) : o(r2.check, g2, _, f2 - _)), _ = h2, (r2.flags ? d2 : l(d2)) !== r2.check) {
15167
+ if (v -= h2, e2.total_out += v, r2.total += v, v && (e2.adler = r2.check = r2.flags ? i(r2.check, g2, v, f2 - v) : o(r2.check, g2, v, f2 - v)), v = h2, (r2.flags ? d2 : l(d2)) !== r2.check) {
14959
15168
  e2.msg = "incorrect data check", r2.mode = 30;
14960
15169
  break;
14961
15170
  }
@@ -14988,7 +15197,7 @@ ${w(o2)}`), a3;
14988
15197
  default:
14989
15198
  return -2;
14990
15199
  }
14991
- return e2.next_out = f2, e2.avail_out = h2, e2.next_in = c2, e2.avail_in = p2, r2.hold = d2, r2.bits = y2, (r2.wsize || _ !== e2.avail_out && r2.mode < 30 && (r2.mode < 27 || t2 !== 4)) && b(e2, e2.output, e2.next_out, _ - e2.avail_out) ? (r2.mode = 31, -4) : (v -= e2.avail_in, _ -= e2.avail_out, e2.total_in += v, e2.total_out += _, r2.total += _, r2.wrap && _ && (e2.adler = r2.check = r2.flags ? i(r2.check, g2, _, e2.next_out - _) : o(r2.check, g2, _, e2.next_out - _)), e2.data_type = r2.bits + (r2.last ? 64 : 0) + (r2.mode === 12 ? 128 : 0) + (r2.mode === 20 || r2.mode === 15 ? 256 : 0), (v === 0 && _ === 0 || t2 === 4) && M === 0 && (M = -5), M);
15200
+ return e2.next_out = f2, e2.avail_out = h2, e2.next_in = c2, e2.avail_in = p2, r2.hold = d2, r2.bits = y2, (r2.wsize || v !== e2.avail_out && r2.mode < 30 && (r2.mode < 27 || t2 !== 4)) && b(e2, e2.output, e2.next_out, v - e2.avail_out) ? (r2.mode = 31, -4) : (_ -= e2.avail_in, v -= e2.avail_out, e2.total_in += _, e2.total_out += v, r2.total += v, r2.wrap && v && (e2.adler = r2.check = r2.flags ? i(r2.check, g2, v, e2.next_out - v) : o(r2.check, g2, v, e2.next_out - v)), e2.data_type = r2.bits + (r2.last ? 64 : 0) + (r2.mode === 12 ? 128 : 0) + (r2.mode === 20 || r2.mode === 15 ? 256 : 0), (_ === 0 && v === 0 || t2 === 4) && M === 0 && (M = -5), M);
14992
15201
  }, t.inflateEnd = function(e2) {
14993
15202
  if (!e2 || !e2.state)
14994
15203
  return -2;
@@ -15003,75 +15212,75 @@ ${w(o2)}`), a3;
15003
15212
  }, t.inflateInfo = "pako inflate (from Nodeca project)";
15004
15213
  }, function(e, t, r) {
15005
15214
  e.exports = function(e2, t2) {
15006
- var r2, n, o, i, s, a2, l, u, g, c, f, p, h, d, y, m, b, v, _, S, w, E, T, R, A;
15215
+ var r2, n, o, i, s, a2, l, u, g, c, f, p, h, d, y, m, b, _, v, S, w, E, T, R, A;
15007
15216
  r2 = e2.state, n = e2.next_in, R = e2.input, o = n + (e2.avail_in - 5), i = e2.next_out, A = e2.output, s = i - (t2 - e2.avail_out), a2 = i + (e2.avail_out - 257), l = r2.dmax, u = r2.wsize, g = r2.whave, c = r2.wnext, f = r2.window, p = r2.hold, h = r2.bits, d = r2.lencode, y = r2.distcode, m = (1 << r2.lenbits) - 1, b = (1 << r2.distbits) - 1;
15008
15217
  e:
15009
15218
  do {
15010
- h < 15 && (p += R[n++] << h, h += 8, p += R[n++] << h, h += 8), v = d[p & m];
15219
+ h < 15 && (p += R[n++] << h, h += 8, p += R[n++] << h, h += 8), _ = d[p & m];
15011
15220
  t:
15012
15221
  for (; ; ) {
15013
- if (p >>>= _ = v >>> 24, h -= _, (_ = v >>> 16 & 255) === 0)
15014
- A[i++] = 65535 & v;
15222
+ if (p >>>= v = _ >>> 24, h -= v, (v = _ >>> 16 & 255) === 0)
15223
+ A[i++] = 65535 & _;
15015
15224
  else {
15016
- if (!(16 & _)) {
15017
- if ((64 & _) == 0) {
15018
- v = d[(65535 & v) + (p & (1 << _) - 1)];
15225
+ if (!(16 & v)) {
15226
+ if ((64 & v) == 0) {
15227
+ _ = d[(65535 & _) + (p & (1 << v) - 1)];
15019
15228
  continue t;
15020
15229
  }
15021
- if (32 & _) {
15230
+ if (32 & v) {
15022
15231
  r2.mode = 12;
15023
15232
  break e;
15024
15233
  }
15025
15234
  e2.msg = "invalid literal/length code", r2.mode = 30;
15026
15235
  break e;
15027
15236
  }
15028
- S = 65535 & v, (_ &= 15) && (h < _ && (p += R[n++] << h, h += 8), S += p & (1 << _) - 1, p >>>= _, h -= _), h < 15 && (p += R[n++] << h, h += 8, p += R[n++] << h, h += 8), v = y[p & b];
15237
+ S = 65535 & _, (v &= 15) && (h < v && (p += R[n++] << h, h += 8), S += p & (1 << v) - 1, p >>>= v, h -= v), h < 15 && (p += R[n++] << h, h += 8, p += R[n++] << h, h += 8), _ = y[p & b];
15029
15238
  r:
15030
15239
  for (; ; ) {
15031
- if (p >>>= _ = v >>> 24, h -= _, !(16 & (_ = v >>> 16 & 255))) {
15032
- if ((64 & _) == 0) {
15033
- v = y[(65535 & v) + (p & (1 << _) - 1)];
15240
+ if (p >>>= v = _ >>> 24, h -= v, !(16 & (v = _ >>> 16 & 255))) {
15241
+ if ((64 & v) == 0) {
15242
+ _ = y[(65535 & _) + (p & (1 << v) - 1)];
15034
15243
  continue r;
15035
15244
  }
15036
15245
  e2.msg = "invalid distance code", r2.mode = 30;
15037
15246
  break e;
15038
15247
  }
15039
- if (w = 65535 & v, h < (_ &= 15) && (p += R[n++] << h, (h += 8) < _ && (p += R[n++] << h, h += 8)), (w += p & (1 << _) - 1) > l) {
15248
+ if (w = 65535 & _, h < (v &= 15) && (p += R[n++] << h, (h += 8) < v && (p += R[n++] << h, h += 8)), (w += p & (1 << v) - 1) > l) {
15040
15249
  e2.msg = "invalid distance too far back", r2.mode = 30;
15041
15250
  break e;
15042
15251
  }
15043
- if (p >>>= _, h -= _, w > (_ = i - s)) {
15044
- if ((_ = w - _) > g && r2.sane) {
15252
+ if (p >>>= v, h -= v, w > (v = i - s)) {
15253
+ if ((v = w - v) > g && r2.sane) {
15045
15254
  e2.msg = "invalid distance too far back", r2.mode = 30;
15046
15255
  break e;
15047
15256
  }
15048
15257
  if (E = 0, T = f, c === 0) {
15049
- if (E += u - _, _ < S) {
15050
- S -= _;
15258
+ if (E += u - v, v < S) {
15259
+ S -= v;
15051
15260
  do {
15052
15261
  A[i++] = f[E++];
15053
- } while (--_);
15262
+ } while (--v);
15054
15263
  E = i - w, T = A;
15055
15264
  }
15056
- } else if (c < _) {
15057
- if (E += u + c - _, (_ -= c) < S) {
15058
- S -= _;
15265
+ } else if (c < v) {
15266
+ if (E += u + c - v, (v -= c) < S) {
15267
+ S -= v;
15059
15268
  do {
15060
15269
  A[i++] = f[E++];
15061
- } while (--_);
15270
+ } while (--v);
15062
15271
  if (E = 0, c < S) {
15063
- S -= _ = c;
15272
+ S -= v = c;
15064
15273
  do {
15065
15274
  A[i++] = f[E++];
15066
- } while (--_);
15275
+ } while (--v);
15067
15276
  E = i - w, T = A;
15068
15277
  }
15069
15278
  }
15070
- } else if (E += c - _, _ < S) {
15071
- S -= _;
15279
+ } else if (E += c - v, v < S) {
15280
+ S -= v;
15072
15281
  do {
15073
15282
  A[i++] = f[E++];
15074
- } while (--_);
15283
+ } while (--v);
15075
15284
  E = i - w, T = A;
15076
15285
  }
15077
15286
  for (; S > 2; )
@@ -15095,49 +15304,49 @@ ${w(o2)}`), a3;
15095
15304
  }, function(e, t, r) {
15096
15305
  var n = r(32), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], i = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], s = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], a2 = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
15097
15306
  e.exports = function(e2, t2, r2, l, u, g, c, f) {
15098
- var p, h, d, y, m, b, v, _, S, w = f.bits, E = 0, T = 0, R = 0, A = 0, O = 0, j = 0, I = 0, C = 0, M = 0, P = 0, N = null, D = 0, L = new n.Buf16(16), x = new n.Buf16(16), U = null, B = 0;
15307
+ var p, h, d, y, m, b, _, v, S, w = f.bits, E = 0, T = 0, R = 0, A = 0, O = 0, I = 0, j = 0, C = 0, M = 0, P = 0, N = null, L = 0, D = new n.Buf16(16), x = new n.Buf16(16), U = null, B = 0;
15099
15308
  for (E = 0; E <= 15; E++)
15100
- L[E] = 0;
15309
+ D[E] = 0;
15101
15310
  for (T = 0; T < l; T++)
15102
- L[t2[r2 + T]]++;
15103
- for (O = w, A = 15; A >= 1 && L[A] === 0; A--)
15311
+ D[t2[r2 + T]]++;
15312
+ for (O = w, A = 15; A >= 1 && D[A] === 0; A--)
15104
15313
  ;
15105
15314
  if (O > A && (O = A), A === 0)
15106
15315
  return u[g++] = 20971520, u[g++] = 20971520, f.bits = 1, 0;
15107
- for (R = 1; R < A && L[R] === 0; R++)
15316
+ for (R = 1; R < A && D[R] === 0; R++)
15108
15317
  ;
15109
15318
  for (O < R && (O = R), C = 1, E = 1; E <= 15; E++)
15110
- if (C <<= 1, (C -= L[E]) < 0)
15319
+ if (C <<= 1, (C -= D[E]) < 0)
15111
15320
  return -1;
15112
15321
  if (C > 0 && (e2 === 0 || A !== 1))
15113
15322
  return -1;
15114
15323
  for (x[1] = 0, E = 1; E < 15; E++)
15115
- x[E + 1] = x[E] + L[E];
15324
+ x[E + 1] = x[E] + D[E];
15116
15325
  for (T = 0; T < l; T++)
15117
15326
  t2[r2 + T] !== 0 && (c[x[t2[r2 + T]]++] = T);
15118
- if (e2 === 0 ? (N = U = c, b = 19) : e2 === 1 ? (N = o, D -= 257, U = i, B -= 257, b = 256) : (N = s, U = a2, b = -1), P = 0, T = 0, E = R, m = g, j = O, I = 0, d = -1, y = (M = 1 << O) - 1, e2 === 1 && M > 852 || e2 === 2 && M > 592)
15327
+ if (e2 === 0 ? (N = U = c, b = 19) : e2 === 1 ? (N = o, L -= 257, U = i, B -= 257, b = 256) : (N = s, U = a2, b = -1), P = 0, T = 0, E = R, m = g, I = O, j = 0, d = -1, y = (M = 1 << O) - 1, e2 === 1 && M > 852 || e2 === 2 && M > 592)
15119
15328
  return 1;
15120
15329
  for (; ; ) {
15121
- v = E - I, c[T] < b ? (_ = 0, S = c[T]) : c[T] > b ? (_ = U[B + c[T]], S = N[D + c[T]]) : (_ = 96, S = 0), p = 1 << E - I, R = h = 1 << j;
15330
+ _ = E - j, c[T] < b ? (v = 0, S = c[T]) : c[T] > b ? (v = U[B + c[T]], S = N[L + c[T]]) : (v = 96, S = 0), p = 1 << E - j, R = h = 1 << I;
15122
15331
  do {
15123
- u[m + (P >> I) + (h -= p)] = v << 24 | _ << 16 | S | 0;
15332
+ u[m + (P >> j) + (h -= p)] = _ << 24 | v << 16 | S | 0;
15124
15333
  } while (h !== 0);
15125
15334
  for (p = 1 << E - 1; P & p; )
15126
15335
  p >>= 1;
15127
- if (p !== 0 ? (P &= p - 1, P += p) : P = 0, T++, --L[E] == 0) {
15336
+ if (p !== 0 ? (P &= p - 1, P += p) : P = 0, T++, --D[E] == 0) {
15128
15337
  if (E === A)
15129
15338
  break;
15130
15339
  E = t2[r2 + c[T]];
15131
15340
  }
15132
15341
  if (E > O && (P & y) !== d) {
15133
- for (I === 0 && (I = O), m += R, C = 1 << (j = E - I); j + I < A && !((C -= L[j + I]) <= 0); )
15134
- j++, C <<= 1;
15135
- if (M += 1 << j, e2 === 1 && M > 852 || e2 === 2 && M > 592)
15342
+ for (j === 0 && (j = O), m += R, C = 1 << (I = E - j); I + j < A && !((C -= D[I + j]) <= 0); )
15343
+ I++, C <<= 1;
15344
+ if (M += 1 << I, e2 === 1 && M > 852 || e2 === 2 && M > 592)
15136
15345
  return 1;
15137
- u[d = P & y] = O << 24 | j << 16 | m - g | 0;
15346
+ u[d = P & y] = O << 24 | I << 16 | m - g | 0;
15138
15347
  }
15139
15348
  }
15140
- return P !== 0 && (u[m + P] = E - I << 24 | 64 << 16 | 0), f.bits = O, 0;
15349
+ return P !== 0 && (u[m + P] = E - j << 24 | 64 << 16 | 0), f.bits = O, 0;
15141
15350
  };
15142
15351
  }, function(e, t, r) {
15143
15352
  e.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
@@ -15789,13 +15998,13 @@ ${w(o2)}`), a3;
15789
15998
  (t2 = e3.charCodeAt(o2++)) >= 55296 && t2 <= 56319 && o2 < i2 ? (64512 & (r2 = e3.charCodeAt(o2++))) == 56320 ? n2.push(((1023 & t2) << 10) + (1023 & r2) + 65536) : (n2.push(t2), o2--) : n2.push(t2);
15790
15999
  return n2;
15791
16000
  }
15792
- function v(e3) {
16001
+ function _(e3) {
15793
16002
  return y(e3, function(e4) {
15794
16003
  var t2 = "";
15795
16004
  return e4 > 65535 && (t2 += h((e4 -= 65536) >>> 10 & 1023 | 55296), e4 = 56320 | 1023 & e4), t2 += h(e4);
15796
16005
  }).join("");
15797
16006
  }
15798
- function _(e3, t2) {
16007
+ function v(e3, t2) {
15799
16008
  return e3 + 22 + 75 * (e3 < 26) - ((t2 != 0) << 5);
15800
16009
  }
15801
16010
  function S(e3, t2, r2) {
@@ -15805,18 +16014,18 @@ ${w(o2)}`), a3;
15805
16014
  return p(n2 + 36 * e3 / (e3 + 38));
15806
16015
  }
15807
16016
  function w(e3) {
15808
- var t2, r2, n2, o2, i2, s2, a3, u2, g2, c2, f2, h2 = [], y2 = e3.length, m2 = 0, b2 = 128, _2 = 72;
16017
+ var t2, r2, n2, o2, i2, s2, a3, u2, g2, c2, f2, h2 = [], y2 = e3.length, m2 = 0, b2 = 128, v2 = 72;
15809
16018
  for ((r2 = e3.lastIndexOf("-")) < 0 && (r2 = 0), n2 = 0; n2 < r2; ++n2)
15810
16019
  e3.charCodeAt(n2) >= 128 && d("not-basic"), h2.push(e3.charCodeAt(n2));
15811
16020
  for (o2 = r2 > 0 ? r2 + 1 : 0; o2 < y2; ) {
15812
- for (i2 = m2, s2 = 1, a3 = 36; o2 >= y2 && d("invalid-input"), ((u2 = (f2 = e3.charCodeAt(o2++)) - 48 < 10 ? f2 - 22 : f2 - 65 < 26 ? f2 - 65 : f2 - 97 < 26 ? f2 - 97 : 36) >= 36 || u2 > p((l - m2) / s2)) && d("overflow"), m2 += u2 * s2, !(u2 < (g2 = a3 <= _2 ? 1 : a3 >= _2 + 26 ? 26 : a3 - _2)); a3 += 36)
16021
+ for (i2 = m2, s2 = 1, a3 = 36; o2 >= y2 && d("invalid-input"), ((u2 = (f2 = e3.charCodeAt(o2++)) - 48 < 10 ? f2 - 22 : f2 - 65 < 26 ? f2 - 65 : f2 - 97 < 26 ? f2 - 97 : 36) >= 36 || u2 > p((l - m2) / s2)) && d("overflow"), m2 += u2 * s2, !(u2 < (g2 = a3 <= v2 ? 1 : a3 >= v2 + 26 ? 26 : a3 - v2)); a3 += 36)
15813
16022
  s2 > p(l / (c2 = 36 - g2)) && d("overflow"), s2 *= c2;
15814
- _2 = S(m2 - i2, t2 = h2.length + 1, i2 == 0), p(m2 / t2) > l - b2 && d("overflow"), b2 += p(m2 / t2), m2 %= t2, h2.splice(m2++, 0, b2);
16023
+ v2 = S(m2 - i2, t2 = h2.length + 1, i2 == 0), p(m2 / t2) > l - b2 && d("overflow"), b2 += p(m2 / t2), m2 %= t2, h2.splice(m2++, 0, b2);
15815
16024
  }
15816
- return v(h2);
16025
+ return _(h2);
15817
16026
  }
15818
16027
  function E(e3) {
15819
- var t2, r2, n2, o2, i2, s2, a3, u2, g2, c2, f2, y2, m2, v2, w2, E2 = [];
16028
+ var t2, r2, n2, o2, i2, s2, a3, u2, g2, c2, f2, y2, m2, _2, w2, E2 = [];
15820
16029
  for (y2 = (e3 = b(e3)).length, t2 = 128, r2 = 0, i2 = 72, s2 = 0; s2 < y2; ++s2)
15821
16030
  (f2 = e3[s2]) < 128 && E2.push(h(f2));
15822
16031
  for (n2 = o2 = E2.length, o2 && E2.push("-"); n2 < y2; ) {
@@ -15825,14 +16034,14 @@ ${w(o2)}`), a3;
15825
16034
  for (a3 - t2 > p((l - r2) / (m2 = n2 + 1)) && d("overflow"), r2 += (a3 - t2) * m2, t2 = a3, s2 = 0; s2 < y2; ++s2)
15826
16035
  if ((f2 = e3[s2]) < t2 && ++r2 > l && d("overflow"), f2 == t2) {
15827
16036
  for (u2 = r2, g2 = 36; !(u2 < (c2 = g2 <= i2 ? 1 : g2 >= i2 + 26 ? 26 : g2 - i2)); g2 += 36)
15828
- w2 = u2 - c2, v2 = 36 - c2, E2.push(h(_(c2 + w2 % v2, 0))), u2 = p(w2 / v2);
15829
- E2.push(h(_(u2, 0))), i2 = S(r2, m2, n2 == o2), r2 = 0, ++n2;
16037
+ w2 = u2 - c2, _2 = 36 - c2, E2.push(h(v(c2 + w2 % _2, 0))), u2 = p(w2 / _2);
16038
+ E2.push(h(v(u2, 0))), i2 = S(r2, m2, n2 == o2), r2 = 0, ++n2;
15830
16039
  }
15831
16040
  ++r2, ++t2;
15832
16041
  }
15833
16042
  return E2.join("");
15834
16043
  }
15835
- a2 = { version: "1.4.1", ucs2: { decode: b, encode: v }, decode: w, encode: E, toASCII: function(e3) {
16044
+ a2 = { version: "1.4.1", ucs2: { decode: b, encode: _ }, decode: w, encode: E, toASCII: function(e3) {
15836
16045
  return m(e3, function(e4) {
15837
16046
  return g.test(e4) ? "xn--" + E(e4) : e4;
15838
16047
  });
@@ -16086,7 +16295,7 @@ ${w(o2)}`), a3;
16086
16295
  return e3.__proto__ || Object.getPrototypeOf(e3);
16087
16296
  })(e2);
16088
16297
  }
16089
- var g = r(28), c = g.Stream, f = g.Transform, p = r(48), h = r(3), d = h.LEVEL, y = h.SPLAT, m = r(84), b = r(86), v = r(90), _ = r(205), S = r(206), w = r(59).warn, E = r(47), T = /%[scdjifoO%]/g, R = function(e2) {
16298
+ var g = r(28), c = g.Stream, f = g.Transform, p = r(48), h = r(3), d = h.LEVEL, y = h.SPLAT, m = r(84), b = r(86), _ = r(90), v = r(205), S = r(206), w = r(59).warn, E = r(47), T = /%[scdjifoO%]/g, R = function(e2) {
16090
16299
  !function(e3, t3) {
16091
16300
  if (typeof t3 != "function" && t3 !== null)
16092
16301
  throw new TypeError("Super expression must either be null or a function");
@@ -16107,12 +16316,12 @@ ${w(o2)}`), a3;
16107
16316
  r2 instanceof Error && (n2.stack = r2.stack, n2.message = r2.message), t3.write(n2);
16108
16317
  } } });
16109
16318
  } }, { key: "configure", value: function() {
16110
- var e3 = this, t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n2 = t3.silent, o2 = t3.format, i2 = t3.defaultMeta, s2 = t3.levels, a3 = t3.level, l3 = a3 === void 0 ? "info" : a3, u3 = t3.exitOnError, g2 = u3 === void 0 || u3, c2 = t3.transports, f3 = t3.colors, p2 = t3.emitErrs, h3 = t3.formatters, d2 = t3.padLevels, y2 = t3.rewriters, m2 = t3.stripColors, _2 = t3.exceptionHandlers, S2 = t3.rejectionHandlers;
16111
- if (this.transports.length && this.clear(), this.silent = n2, this.format = o2 || this.format || r(207)(), this.defaultMeta = i2 || null, this.levels = s2 || this.levels || E.npm.levels, this.level = l3, this.exceptions = new b(this), this.rejections = new v(this), this.profilers = {}, this.exitOnError = g2, c2 && (c2 = Array.isArray(c2) ? c2 : [c2]).forEach(function(t4) {
16319
+ var e3 = this, t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n2 = t3.silent, o2 = t3.format, i2 = t3.defaultMeta, s2 = t3.levels, a3 = t3.level, l3 = a3 === void 0 ? "info" : a3, u3 = t3.exitOnError, g2 = u3 === void 0 || u3, c2 = t3.transports, f3 = t3.colors, p2 = t3.emitErrs, h3 = t3.formatters, d2 = t3.padLevels, y2 = t3.rewriters, m2 = t3.stripColors, v2 = t3.exceptionHandlers, S2 = t3.rejectionHandlers;
16320
+ if (this.transports.length && this.clear(), this.silent = n2, this.format = o2 || this.format || r(207)(), this.defaultMeta = i2 || null, this.levels = s2 || this.levels || E.npm.levels, this.level = l3, this.exceptions = new b(this), this.rejections = new _(this), this.profilers = {}, this.exitOnError = g2, c2 && (c2 = Array.isArray(c2) ? c2 : [c2]).forEach(function(t4) {
16112
16321
  return e3.add(t4);
16113
16322
  }), f3 || p2 || h3 || d2 || y2 || m2)
16114
16323
  throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.", "Use a custom winston.format(function) instead.", "See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"));
16115
- _2 && this.exceptions.handle(_2), S2 && this.rejections.handle(S2);
16324
+ v2 && this.exceptions.handle(v2), S2 && this.rejections.handle(S2);
16116
16325
  } }, { key: "isLevelEnabled", value: function(e3) {
16117
16326
  var t3 = this, r2 = A(this.levels, e3);
16118
16327
  if (r2 === null)
@@ -16157,7 +16366,7 @@ ${w(o2)}`), a3;
16157
16366
  e4.once("finish", r3), e4.end();
16158
16367
  }, e3);
16159
16368
  } }, { key: "add", value: function(e3) {
16160
- var t3 = !m(e3) || e3.log.length > 2 ? new _({ transport: e3 }) : e3;
16369
+ var t3 = !m(e3) || e3.log.length > 2 ? new v({ transport: e3 }) : e3;
16161
16370
  if (!t3._writableState || !t3._writableState.objectMode)
16162
16371
  throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");
16163
16372
  return this._onEvent("error", t3), this._onEvent("warn", t3), this.pipe(t3), e3.handleExceptions && this.exceptions.handle(), e3.handleRejections && this.rejections.handle(), this;
@@ -16541,164 +16750,6 @@ Found: ${e2.toString().split("\n")[0]}
16541
16750
  e.exports = function(e2) {
16542
16751
  return n(e2).toString();
16543
16752
  };
16544
- }, function(e, t, r) {
16545
- function n(e2) {
16546
- var t2 = this;
16547
- if (t2 instanceof n || (t2 = new n()), t2.tail = null, t2.head = null, t2.length = 0, e2 && typeof e2.forEach == "function")
16548
- e2.forEach(function(e3) {
16549
- t2.push(e3);
16550
- });
16551
- else if (arguments.length > 0)
16552
- for (var r2 = 0, o2 = arguments.length; r2 < o2; r2++)
16553
- t2.push(arguments[r2]);
16554
- return t2;
16555
- }
16556
- function o(e2, t2) {
16557
- e2.tail = new s(t2, e2.tail, null, e2), e2.head || (e2.head = e2.tail), e2.length++;
16558
- }
16559
- function i(e2, t2) {
16560
- e2.head = new s(t2, null, e2.head, e2), e2.tail || (e2.tail = e2.head), e2.length++;
16561
- }
16562
- function s(e2, t2, r2, n2) {
16563
- if (!(this instanceof s))
16564
- return new s(e2, t2, r2, n2);
16565
- this.list = n2, this.value = e2, t2 ? (t2.next = this, this.prev = t2) : this.prev = null, r2 ? (r2.prev = this, this.next = r2) : this.next = null;
16566
- }
16567
- e.exports = n, n.Node = s, n.create = n, n.prototype.removeNode = function(e2) {
16568
- if (e2.list !== this)
16569
- throw new Error("removing node which does not belong to this list");
16570
- var t2 = e2.next, r2 = e2.prev;
16571
- t2 && (t2.prev = r2), r2 && (r2.next = t2), e2 === this.head && (this.head = t2), e2 === this.tail && (this.tail = r2), e2.list.length--, e2.next = null, e2.prev = null, e2.list = null;
16572
- }, n.prototype.unshiftNode = function(e2) {
16573
- if (e2 !== this.head) {
16574
- e2.list && e2.list.removeNode(e2);
16575
- var t2 = this.head;
16576
- e2.list = this, e2.next = t2, t2 && (t2.prev = e2), this.head = e2, this.tail || (this.tail = e2), this.length++;
16577
- }
16578
- }, n.prototype.pushNode = function(e2) {
16579
- if (e2 !== this.tail) {
16580
- e2.list && e2.list.removeNode(e2);
16581
- var t2 = this.tail;
16582
- e2.list = this, e2.prev = t2, t2 && (t2.next = e2), this.tail = e2, this.head || (this.head = e2), this.length++;
16583
- }
16584
- }, n.prototype.push = function() {
16585
- for (var e2 = 0, t2 = arguments.length; e2 < t2; e2++)
16586
- o(this, arguments[e2]);
16587
- return this.length;
16588
- }, n.prototype.unshift = function() {
16589
- for (var e2 = 0, t2 = arguments.length; e2 < t2; e2++)
16590
- i(this, arguments[e2]);
16591
- return this.length;
16592
- }, n.prototype.pop = function() {
16593
- if (this.tail) {
16594
- var e2 = this.tail.value;
16595
- return this.tail = this.tail.prev, this.tail ? this.tail.next = null : this.head = null, this.length--, e2;
16596
- }
16597
- }, n.prototype.shift = function() {
16598
- if (this.head) {
16599
- var e2 = this.head.value;
16600
- return this.head = this.head.next, this.head ? this.head.prev = null : this.tail = null, this.length--, e2;
16601
- }
16602
- }, n.prototype.forEach = function(e2, t2) {
16603
- t2 = t2 || this;
16604
- for (var r2 = this.head, n2 = 0; r2 !== null; n2++)
16605
- e2.call(t2, r2.value, n2, this), r2 = r2.next;
16606
- }, n.prototype.forEachReverse = function(e2, t2) {
16607
- t2 = t2 || this;
16608
- for (var r2 = this.tail, n2 = this.length - 1; r2 !== null; n2--)
16609
- e2.call(t2, r2.value, n2, this), r2 = r2.prev;
16610
- }, n.prototype.get = function(e2) {
16611
- for (var t2 = 0, r2 = this.head; r2 !== null && t2 < e2; t2++)
16612
- r2 = r2.next;
16613
- if (t2 === e2 && r2 !== null)
16614
- return r2.value;
16615
- }, n.prototype.getReverse = function(e2) {
16616
- for (var t2 = 0, r2 = this.tail; r2 !== null && t2 < e2; t2++)
16617
- r2 = r2.prev;
16618
- if (t2 === e2 && r2 !== null)
16619
- return r2.value;
16620
- }, n.prototype.map = function(e2, t2) {
16621
- t2 = t2 || this;
16622
- for (var r2 = new n(), o2 = this.head; o2 !== null; )
16623
- r2.push(e2.call(t2, o2.value, this)), o2 = o2.next;
16624
- return r2;
16625
- }, n.prototype.mapReverse = function(e2, t2) {
16626
- t2 = t2 || this;
16627
- for (var r2 = new n(), o2 = this.tail; o2 !== null; )
16628
- r2.push(e2.call(t2, o2.value, this)), o2 = o2.prev;
16629
- return r2;
16630
- }, n.prototype.reduce = function(e2, t2) {
16631
- var r2, n2 = this.head;
16632
- if (arguments.length > 1)
16633
- r2 = t2;
16634
- else {
16635
- if (!this.head)
16636
- throw new TypeError("Reduce of empty list with no initial value");
16637
- n2 = this.head.next, r2 = this.head.value;
16638
- }
16639
- for (var o2 = 0; n2 !== null; o2++)
16640
- r2 = e2(r2, n2.value, o2), n2 = n2.next;
16641
- return r2;
16642
- }, n.prototype.reduceReverse = function(e2, t2) {
16643
- var r2, n2 = this.tail;
16644
- if (arguments.length > 1)
16645
- r2 = t2;
16646
- else {
16647
- if (!this.tail)
16648
- throw new TypeError("Reduce of empty list with no initial value");
16649
- n2 = this.tail.prev, r2 = this.tail.value;
16650
- }
16651
- for (var o2 = this.length - 1; n2 !== null; o2--)
16652
- r2 = e2(r2, n2.value, o2), n2 = n2.prev;
16653
- return r2;
16654
- }, n.prototype.toArray = function() {
16655
- for (var e2 = new Array(this.length), t2 = 0, r2 = this.head; r2 !== null; t2++)
16656
- e2[t2] = r2.value, r2 = r2.next;
16657
- return e2;
16658
- }, n.prototype.toArrayReverse = function() {
16659
- for (var e2 = new Array(this.length), t2 = 0, r2 = this.tail; r2 !== null; t2++)
16660
- e2[t2] = r2.value, r2 = r2.prev;
16661
- return e2;
16662
- }, n.prototype.slice = function(e2, t2) {
16663
- (t2 = t2 || this.length) < 0 && (t2 += this.length), (e2 = e2 || 0) < 0 && (e2 += this.length);
16664
- var r2 = new n();
16665
- if (t2 < e2 || t2 < 0)
16666
- return r2;
16667
- e2 < 0 && (e2 = 0), t2 > this.length && (t2 = this.length);
16668
- for (var o2 = 0, i2 = this.head; i2 !== null && o2 < e2; o2++)
16669
- i2 = i2.next;
16670
- for (; i2 !== null && o2 < t2; o2++, i2 = i2.next)
16671
- r2.push(i2.value);
16672
- return r2;
16673
- }, n.prototype.sliceReverse = function(e2, t2) {
16674
- (t2 = t2 || this.length) < 0 && (t2 += this.length), (e2 = e2 || 0) < 0 && (e2 += this.length);
16675
- var r2 = new n();
16676
- if (t2 < e2 || t2 < 0)
16677
- return r2;
16678
- e2 < 0 && (e2 = 0), t2 > this.length && (t2 = this.length);
16679
- for (var o2 = this.length, i2 = this.tail; i2 !== null && o2 > t2; o2--)
16680
- i2 = i2.prev;
16681
- for (; i2 !== null && o2 > e2; o2--, i2 = i2.prev)
16682
- r2.push(i2.value);
16683
- return r2;
16684
- }, n.prototype.reverse = function() {
16685
- for (var e2 = this.head, t2 = this.tail, r2 = e2; r2 !== null; r2 = r2.prev) {
16686
- var n2 = r2.prev;
16687
- r2.prev = r2.next, r2.next = n2;
16688
- }
16689
- return this.head = t2, this.tail = e2, this;
16690
- };
16691
- try {
16692
- r(223)(n);
16693
- } catch (e2) {
16694
- }
16695
- }, function(e, t, r) {
16696
- e.exports = function(e2) {
16697
- e2.prototype[Symbol.iterator] = function* () {
16698
- for (let e3 = this.head; e3; e3 = e3.next)
16699
- yield e3.value;
16700
- };
16701
- };
16702
16753
  }, function(e, t, r) {
16703
16754
  (function(t2) {
16704
16755
  (function() {
@@ -16733,8 +16784,8 @@ Found: ${e2.toString().split("\n")[0]}
16733
16784
  g[u++] = m >>> 24 & 255, g[u++] = m >>> 16 & 255, g[u++] = m >>> 8 & 255, g[u++] = 255 & m;
16734
16785
  var b = h / 4294967296 * 1e4 & 268435455;
16735
16786
  g[u++] = b >>> 8 & 255, g[u++] = 255 & b, g[u++] = b >>> 24 & 15 | 16, g[u++] = b >>> 16 & 255, g[u++] = f >>> 8 | 128, g[u++] = 255 & f;
16736
- for (var v = 0; v < 6; ++v)
16737
- g[u + v] = c[v];
16787
+ for (var _ = 0; _ < 6; ++_)
16788
+ g[u + _] = c[_];
16738
16789
  return t2 || s(g);
16739
16790
  };
16740
16791
  }, function(e, t, r) {
@@ -16824,9 +16875,9 @@ Found: ${e2.toString().split("\n")[0]}
16824
16875
  }), r.d(t, "RtcSignalingClient", function() {
16825
16876
  return a2;
16826
16877
  }), r.d(t, "Credentials", function() {
16827
- return d;
16878
+ return m;
16828
16879
  }), r.d(t, "SignalingPromiseClient", function() {
16829
- return y.SignalingPromiseClient;
16880
+ return b.SignalingPromiseClient;
16830
16881
  }), r.d(t, "IRtcClientConfiguration", function() {
16831
16882
  }), r.d(t, "IRtcConnectConfiguration", function() {
16832
16883
  }), r.d(t, "IRtcConnectionStatsInfo", function() {
@@ -16835,7 +16886,7 @@ Found: ${e2.toString().split("\n")[0]}
16835
16886
  }), r.d(t, "IRtcStreamMessage", function() {
16836
16887
  }), r.d(t, "IStreamControl", function() {
16837
16888
  }), r.d(t, "RtcClient", function() {
16838
- return X;
16889
+ return Q;
16839
16890
  });
16840
16891
  var n = r(25), o = function(e2, t2, r2, n2) {
16841
16892
  return new (r2 || (r2 = Promise))(function(o2, i2) {
@@ -17006,8 +17057,8 @@ Found: ${e2.toString().split("\n")[0]}
17006
17057
  });
17007
17058
  }
17008
17059
  }
17009
- var l = r(1), u = r(11), g = r(35), c = r(102);
17010
- var f = function(e2, t2, r2, n2) {
17060
+ var l = r(1), u = r(11), g = r(35), c = r.n(g), f = r(102), p = r.n(f);
17061
+ var h = function(e2, t2, r2, n2) {
17011
17062
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17012
17063
  function s2(e3) {
17013
17064
  try {
@@ -17032,45 +17083,45 @@ Found: ${e2.toString().split("\n")[0]}
17032
17083
  l2((n2 = n2.apply(e2, t2 || [])).next());
17033
17084
  });
17034
17085
  };
17035
- class p extends class {
17036
- constructor(e2 = {}) {
17037
- this.cache = new c(e2), this.stringify = e2.fastStringify ? JSON.stringify : g;
17086
+ class d extends class {
17087
+ constructor(e2) {
17088
+ this.cache = new p.a(Object.assign(Object.assign({}, e2.dispose || e2.disposeAfter ? { ttlAutopurge: true } : {}), e2)), this.stringify = e2.fastStringify ? JSON.stringify : c.a;
17038
17089
  }
17039
17090
  set(e2, t2, r2) {
17040
- if (!this.cache.set(this.stringify(e2), t2, r2))
17041
- throw Error(`Value too large (${this.cache.lengthCalculator(t2)} > ${this.cache.max})`);
17091
+ const n2 = this.stringify(e2);
17092
+ if (!this.cache.set(n2, t2, { ttl: r2 })) {
17093
+ const e3 = this.cache.sizeCalculation ? this.cache.sizeCalculation(t2, n2) : "unknown";
17094
+ throw Error(`Value too large (${e3} > ${this.cache.max})`);
17095
+ }
17042
17096
  }
17043
17097
  get(e2) {
17044
17098
  return this.cache.get(this.stringify(e2));
17045
17099
  }
17046
- del(e2) {
17047
- this.cache.del(this.stringify(e2));
17048
- }
17049
- length() {
17050
- return this.cache.length;
17100
+ delete(e2) {
17101
+ this.cache.delete(this.stringify(e2));
17051
17102
  }
17052
- reset() {
17053
- this.cache.reset();
17103
+ size() {
17104
+ return this.cache.size;
17054
17105
  }
17055
- prune() {
17056
- return this.cache.prune();
17106
+ clear() {
17107
+ this.cache.clear();
17057
17108
  }
17058
17109
  forEach(e2) {
17059
17110
  return this.cache.forEach(e2);
17060
17111
  }
17061
17112
  } {
17062
- constructor(e2 = {}) {
17113
+ constructor(e2) {
17063
17114
  if (super(e2), this.expireRejectedPromiseValues = e2.expireRejectedPromiseValues === void 0 || e2.expireRejectedPromiseValues, this.rejectedPromiseValueTtl = e2.rejectedPromiseValueTtl !== void 0 ? e2.rejectedPromiseValueTtl : l.a.second, this.rejectedPromiseValueTtl < 0)
17064
17115
  throw new Error("rejectedPromiseValueTtl must not be negative");
17065
17116
  }
17066
17117
  set(e2, t2, r2) {
17067
17118
  const n2 = this.stringify(e2);
17068
- this.cache.set(n2, t2, r2), this.expireRejectedPromiseValues && Promise.resolve(t2).catch(() => f(this, void 0, void 0, function* () {
17069
- yield Object(u.a)(this.rejectedPromiseValueTtl), this.cache.peek(n2) === t2 && this.cache.del(n2);
17119
+ this.cache.set(n2, t2, { ttl: r2 }), this.expireRejectedPromiseValues && Promise.resolve(t2).catch(() => h(this, void 0, void 0, function* () {
17120
+ yield Object(u.a)(this.rejectedPromiseValueTtl), this.cache.peek(n2) === t2 && this.cache.delete(n2);
17070
17121
  }));
17071
17122
  }
17072
17123
  }
17073
- var h = function(e2, t2, r2, n2) {
17124
+ var y = function(e2, t2, r2, n2) {
17074
17125
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17075
17126
  function s2(e3) {
17076
17127
  try {
@@ -17095,14 +17146,14 @@ Found: ${e2.toString().split("\n")[0]}
17095
17146
  l2((n2 = n2.apply(e2, t2 || [])).next());
17096
17147
  });
17097
17148
  };
17098
- class d {
17149
+ class m {
17099
17150
  constructor(e2, t2, r2) {
17100
- this.authClient = e2, this.email = t2, this.password = r2, this.tokenTtlMs = 1 * l.a.hour, this.tokenCache = new p({ max: 100, maxAge: this.tokenTtlMs - 5 * l.a.minute, fastStringify: true });
17151
+ this.authClient = e2, this.email = t2, this.password = r2, this.tokenTtlMs = 1 * l.a.hour, this.tokenCache = new d({ max: 100, ttl: this.tokenTtlMs - 5 * l.a.minute, fastStringify: true });
17101
17152
  }
17102
17153
  getToken() {
17103
- return h(this, void 0, void 0, function* () {
17154
+ return y(this, void 0, void 0, function* () {
17104
17155
  let e2 = this.tokenCache.get(this.email);
17105
- return e2 || (e2 = (() => h(this, void 0, void 0, function* () {
17156
+ return e2 || (e2 = (() => y(this, void 0, void 0, function* () {
17106
17157
  const { authentication: e3 } = yield this.authClient.login({ email: this.email, password: this.password, tokenExpirationSeconds: this.tokenTtlMs / l.a.second });
17107
17158
  if (!e3)
17108
17159
  throw new Error("User account not verified.");
@@ -17111,8 +17162,8 @@ Found: ${e2.toString().split("\n")[0]}
17111
17162
  });
17112
17163
  }
17113
17164
  }
17114
- var y = r(93);
17115
- var m = function(e2, t2, r2, n2) {
17165
+ var b = r(93);
17166
+ var _ = function(e2, t2, r2, n2) {
17116
17167
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17117
17168
  function s2(e3) {
17118
17169
  try {
@@ -17137,17 +17188,17 @@ Found: ${e2.toString().split("\n")[0]}
17137
17188
  l2((n2 = n2.apply(e2, t2 || [])).next());
17138
17189
  });
17139
17190
  };
17140
- function b(e2) {
17141
- return m(this, void 0, void 0, function* () {
17191
+ function v(e2) {
17192
+ return _(this, void 0, void 0, function* () {
17142
17193
  return (yield Promise.all(e2.map((e3) => e3.catch((e4) => e4)))).filter((e3) => e3 instanceof Error);
17143
17194
  });
17144
17195
  }
17145
- function v(e2) {
17196
+ function S(e2) {
17146
17197
  if (e2 !== void 0)
17147
17198
  return e2;
17148
17199
  throw new Error("Value is undefined");
17149
17200
  }
17150
- var _ = r(0), S = function(e2, t2, r2, n2) {
17201
+ var w = r(0), E = function(e2, t2, r2, n2) {
17151
17202
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17152
17203
  function s2(e3) {
17153
17204
  try {
@@ -17172,9 +17223,9 @@ Found: ${e2.toString().split("\n")[0]}
17172
17223
  l2((n2 = n2.apply(e2, t2 || [])).next());
17173
17224
  });
17174
17225
  };
17175
- function w({ func: e2, delay: t2, immediate: r2 }) {
17226
+ function T({ func: e2, delay: t2, immediate: r2 }) {
17176
17227
  let n2 = false, o2 = setTimeout(function r3() {
17177
- return S(this, void 0, void 0, function* () {
17228
+ return E(this, void 0, void 0, function* () {
17178
17229
  if (n2)
17179
17230
  return;
17180
17231
  const s2 = new Date().getTime();
@@ -17189,15 +17240,15 @@ Found: ${e2.toString().split("\n")[0]}
17189
17240
  });
17190
17241
  }, r2 ? 0 : t2), i2 = Promise.resolve();
17191
17242
  return { stop() {
17192
- return S(this, void 0, void 0, function* () {
17243
+ return E(this, void 0, void 0, function* () {
17193
17244
  n2 = true, clearTimeout(o2), yield i2;
17194
17245
  });
17195
17246
  } };
17196
17247
  }
17197
- function E(e2, t2) {
17248
+ function R(e2, t2) {
17198
17249
  return Object.keys(e2).reduce((r2, n2) => Object.assign(Object.assign({}, r2), { [n2]: t2(e2[n2]) }), {});
17199
17250
  }
17200
- var T = function(e2, t2, r2, n2) {
17251
+ var A = function(e2, t2, r2, n2) {
17201
17252
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17202
17253
  function s2(e3) {
17203
17254
  try {
@@ -17222,20 +17273,20 @@ Found: ${e2.toString().split("\n")[0]}
17222
17273
  l2((n2 = n2.apply(e2, t2 || [])).next());
17223
17274
  });
17224
17275
  };
17225
- class R {
17276
+ class O {
17226
17277
  constructor(e2) {
17227
17278
  this.message = e2;
17228
17279
  }
17229
17280
  send(e2) {
17230
- return T(this, void 0, void 0, function* () {
17231
- _.a.info(this.message, E(e2, (e3) => {
17281
+ return A(this, void 0, void 0, function* () {
17282
+ w.a.info(this.message, R(e2, (e3) => {
17232
17283
  const { sum: t2, count: r2 } = e3, n2 = t2 / r2;
17233
17284
  return Object.assign(Object.assign({}, e3), { average: n2 });
17234
17285
  }));
17235
17286
  });
17236
17287
  }
17237
17288
  }
17238
- var A = function(e2, t2, r2, n2) {
17289
+ var I = function(e2, t2, r2, n2) {
17239
17290
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17240
17291
  function s2(e3) {
17241
17292
  try {
@@ -17260,14 +17311,14 @@ Found: ${e2.toString().split("\n")[0]}
17260
17311
  l2((n2 = n2.apply(e2, t2 || [])).next());
17261
17312
  });
17262
17313
  };
17263
- const O = r(224);
17264
- var j = r(6);
17265
- const I = !!j.c, C = new class {
17314
+ const j = r(222);
17315
+ var C = r(6);
17316
+ const M = !!C.c, P = new class {
17266
17317
  constructor(e2 = 60) {
17267
- this.buffer = {}, this.metrics = {}, this.reporters = [], this.flushInterval = w({ func: () => this.flushStats(), delay: e2 * l.a.second });
17318
+ this.buffer = {}, this.metrics = {}, this.reporters = [], this.flushInterval = T({ func: () => this.flushStats(), delay: e2 * l.a.second });
17268
17319
  }
17269
17320
  shutdown() {
17270
- return A(this, void 0, void 0, function* () {
17321
+ return I(this, void 0, void 0, function* () {
17271
17322
  yield this.flushInterval.stop(), yield this.flushStats(), yield Object(u.a)(2 * l.a.second);
17272
17323
  });
17273
17324
  }
@@ -17282,8 +17333,8 @@ Found: ${e2.toString().split("\n")[0]}
17282
17333
  this.aggregate(e2, 1);
17283
17334
  }
17284
17335
  timer(e2, t2) {
17285
- return A(this, void 0, void 0, function* () {
17286
- const r2 = O(), n2 = yield t2(), o2 = O();
17336
+ return I(this, void 0, void 0, function* () {
17337
+ const r2 = j(), n2 = yield t2(), o2 = j();
17287
17338
  return this.aggregate(e2, o2 - r2), n2;
17288
17339
  });
17289
17340
  }
@@ -17294,17 +17345,17 @@ Found: ${e2.toString().split("\n")[0]}
17294
17345
  this.reporters.push(e2);
17295
17346
  }
17296
17347
  write(e2) {
17297
- return A(this, void 0, void 0, function* () {
17348
+ return I(this, void 0, void 0, function* () {
17298
17349
  if (Object.values(e2).length === 0)
17299
17350
  return;
17300
- const t2 = yield b(this.reporters.map((t3) => t3.send(e2)));
17351
+ const t2 = yield v(this.reporters.map((t3) => t3.send(e2)));
17301
17352
  for (const e3 of t2)
17302
- _.a.warn("Failed to write stats", { error: e3 });
17353
+ w.a.warn("Failed to write stats", { error: e3 });
17303
17354
  });
17304
17355
  }
17305
17356
  flushStats() {
17306
- return A(this, void 0, void 0, function* () {
17307
- const e2 = Object.assign(Object.assign({}, this.buffer), E(this.metrics, (e3) => {
17357
+ return I(this, void 0, void 0, function* () {
17358
+ const e2 = Object.assign(Object.assign({}, this.buffer), R(this.metrics, (e3) => {
17308
17359
  const t2 = e3();
17309
17360
  return { min: t2, max: t2, sum: t2, count: 1 };
17310
17361
  }));
@@ -17312,8 +17363,8 @@ Found: ${e2.toString().split("\n")[0]}
17312
17363
  });
17313
17364
  }
17314
17365
  }();
17315
- I || ["local", "on-prem"].includes(j.i) || C.registerStatsReporter(new R("stats"));
17316
- var M = r(8), P = r(21), N = r(103), D = r(36), L = function(e2, t2, r2, n2) {
17366
+ M || ["local", "on-prem"].includes(C.i) || P.registerStatsReporter(new O("stats"));
17367
+ var N = r(8), L = r(21), D = r(103), x = r(36), U = function(e2, t2, r2, n2) {
17317
17368
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17318
17369
  function s2(e3) {
17319
17370
  try {
@@ -17338,22 +17389,22 @@ Found: ${e2.toString().split("\n")[0]}
17338
17389
  l2((n2 = n2.apply(e2, t2 || [])).next());
17339
17390
  });
17340
17391
  };
17341
- class x extends D.a {
17392
+ class B extends x.a {
17342
17393
  constructor(e2) {
17343
17394
  super(e2);
17344
17395
  }
17345
17396
  postLanRtcOffer(e2) {
17346
- return L(this, void 0, void 0, function* () {
17397
+ return U(this, void 0, void 0, function* () {
17347
17398
  return yield this.fetch("v1/lan-rtc-offer", { method: "POST", body: JSON.stringify(e2) });
17348
17399
  });
17349
17400
  }
17350
17401
  }
17351
- var U = r(55);
17352
- const B = { ordered: false, maxPacketLifeTime: 300 * l.a.millisecond }, k = { ordered: true }, F = { ordered: true }, W = { ordered: false, maxRetransmits: 0 }, V = { ordered: false, maxRetransmits: 0 };
17353
- function H({ entityId: e2, streamName: t2, streamType: r2 }) {
17402
+ var k = r(55);
17403
+ const F = { ordered: false, maxPacketLifeTime: 300 * l.a.millisecond }, W = { ordered: true }, V = { ordered: true }, H = { ordered: false, maxRetransmits: 0 }, z = { ordered: false, maxRetransmits: 0 };
17404
+ function G({ entityId: e2, streamName: t2, streamType: r2 }) {
17354
17405
  return `${e2}.${t2}.${r2}`;
17355
17406
  }
17356
- var z = function(e2, t2, r2, n2) {
17407
+ var q = function(e2, t2, r2, n2) {
17357
17408
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17358
17409
  function s2(e3) {
17359
17410
  try {
@@ -17378,7 +17429,7 @@ Found: ${e2.toString().split("\n")[0]}
17378
17429
  l2((n2 = n2.apply(e2, t2 || [])).next());
17379
17430
  });
17380
17431
  };
17381
- class G {
17432
+ class Y {
17382
17433
  constructor(e2, t2) {
17383
17434
  this.sessionId = e2, this.connection = t2, this.counts = { localSent: /* @__PURE__ */ new Map(), localReceived: /* @__PURE__ */ new Map(), remoteSent: /* @__PURE__ */ new Map(), remoteReceived: /* @__PURE__ */ new Map() }, this.sessionId = e2, this.connection = t2;
17384
17435
  }
@@ -17397,33 +17448,33 @@ Found: ${e2.toString().split("\n")[0]}
17397
17448
  }), timestamp: e2 };
17398
17449
  }
17399
17450
  incrementLocalSent(e2) {
17400
- const { localSent: t2 } = this.counts, r2 = H(e2.header.stream);
17451
+ const { localSent: t2 } = this.counts, r2 = G(e2.header.stream);
17401
17452
  t2.set(r2, (t2.get(r2) || 0) + 1);
17402
17453
  }
17403
17454
  incrementLocalReceived(e2) {
17404
- const { localReceived: t2 } = this.counts, r2 = H(e2.header.stream), n2 = t2.get(r2) || 0;
17455
+ const { localReceived: t2 } = this.counts, r2 = G(e2.header.stream), n2 = t2.get(r2) || 0;
17405
17456
  if (n2 === 0) {
17406
17457
  const { streamName: t3, streamType: r3 } = e2.header.stream;
17407
- _.a.debug("RTC client received first message for stream", { streamName: t3, streamType: r3 });
17458
+ w.a.debug("RTC client received first message for stream", { streamName: t3, streamType: r3 });
17408
17459
  }
17409
17460
  t2.set(r2, n2 + 1);
17410
17461
  }
17411
17462
  uploadMetrics() {
17412
- return z(this, void 0, void 0, function* () {
17463
+ return q(this, void 0, void 0, function* () {
17413
17464
  const { sessionId: e2 } = this, t2 = yield this.connection.peerConnection.getStats(), r2 = {};
17414
- t2.forEach((e3) => r2[e3.id] = e3), _.a.debug("rtc-stats", Object.assign(Object.assign({}, r2), { sessionId: e2 }));
17465
+ t2.forEach((e3) => r2[e3.id] = e3), w.a.debug("rtc-stats", Object.assign(Object.assign({}, r2), { sessionId: e2 }));
17415
17466
  const { localSent: n2, localReceived: o2, remoteSent: i2, remoteReceived: s2 } = this.counts, a3 = [.../* @__PURE__ */ new Set([...n2.keys(), ...o2.keys()])].reduce((e3, t3) => {
17416
17467
  const r3 = n2.get(t3), a4 = o2.get(t3), l2 = i2.get(t3), u2 = s2.get(t3);
17417
17468
  return Object.assign(Object.assign({}, e3), { [`local-${t3}-sent`]: r3, [`local-${t3}-received`]: a4, [`remote-${t3}-sent`]: l2, [`remote-${t3}-received`]: u2 });
17418
17469
  }, { sessionId: e2 });
17419
- _.a.debug("rtc-message-report", Object.assign({ deviceId: this.connection.getRemoteDeviceId() }, a3));
17470
+ w.a.debug("rtc-message-report", Object.assign({ deviceId: this.connection.getRemoteDeviceId() }, a3));
17420
17471
  });
17421
17472
  }
17422
17473
  }
17423
- function q(e2) {
17474
+ function Z(e2) {
17424
17475
  return (/* @__PURE__ */ new Set(["disconnected", "failed", "closed"])).has(e2.iceConnectionState);
17425
17476
  }
17426
- var Y = function(e2, t2, r2, n2) {
17477
+ var $ = function(e2, t2, r2, n2) {
17427
17478
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17428
17479
  function s2(e3) {
17429
17480
  try {
@@ -17448,7 +17499,7 @@ Found: ${e2.toString().split("\n")[0]}
17448
17499
  l2((n2 = n2.apply(e2, t2 || [])).next());
17449
17500
  });
17450
17501
  };
17451
- class Z {
17502
+ class K {
17452
17503
  constructor(e2, t2, r2) {
17453
17504
  this.peerConnection = e2, this.config = t2, this.dataChannelNotifier = r2, this.connectTimeoutMs = 20 * l.a.second, this.iceGatheringTimeoutMs = 15 * l.a.second, this.pingUpdateTimeoutMs = 1 * l.a.second, this.streamsInfoUpdateTimeoutMs = 2 * l.a.second, this.reassemblyTimeoutMs = 500 * l.a.millisecond, this.reassemblyTableCleanupMs = 1 * l.a.second, this.heartbeatTimeoutMs = 20 * l.a.millisecond, this.streamLatestTimestamp = /* @__PURE__ */ new Map(), this.reassemblyTable = /* @__PURE__ */ new Map(), this.reassemblyTableLastTimestamp = /* @__PURE__ */ new Map(), this.closeCalled = false, this.gotOffer = false, this.hasIceCandidate = false;
17454
17505
  const { isOffer: n2 } = t2.baseConfig;
@@ -17489,7 +17540,7 @@ Found: ${e2.toString().split("\n")[0]}
17489
17540
  }, this.heartbeatTimeoutMs);
17490
17541
  }
17491
17542
  handleSignal(e2) {
17492
- return Y(this, void 0, void 0, function* () {
17543
+ return $(this, void 0, void 0, function* () {
17493
17544
  const { peerConnection: t2 } = this, { track: r2 } = this.config.baseConfig, n2 = (() => {
17494
17545
  try {
17495
17546
  return JSON.parse(e2.getPayload());
@@ -17498,19 +17549,19 @@ Found: ${e2.toString().split("\n")[0]}
17498
17549
  }
17499
17550
  })();
17500
17551
  if (!n2)
17501
- return void _.a.error("Received unparseable signal.");
17502
- _.a.debug("Handling signal", { description: n2 });
17552
+ return void w.a.error("Received unparseable signal.");
17553
+ w.a.debug("Handling signal", { description: n2 });
17503
17554
  const { sdp: o2, type: i2 } = n2;
17504
17555
  if (!o2 || !i2)
17505
- return void _.a.warn("Received non-SDP signal");
17556
+ return void w.a.warn("Received non-SDP signal");
17506
17557
  const { signalingState: s2, connectionState: a3 } = t2;
17507
17558
  if (s2 !== "stable" || a3 !== "connected")
17508
17559
  if (t2.remoteDescription)
17509
- _.a.warn(`Received SDP after remote description was set: ${o2}`);
17560
+ w.a.warn(`Received SDP after remote description was set: ${o2}`);
17510
17561
  else {
17511
17562
  if (i2 === "offer") {
17512
17563
  if (s2 !== "stable")
17513
- return void _.a.warn("Received offer SDP when signaling is ongoing.");
17564
+ return void w.a.warn("Received offer SDP when signaling is ongoing.");
17514
17565
  yield t2.setRemoteDescription(n2);
17515
17566
  const o3 = yield t2.createAnswer();
17516
17567
  yield t2.setLocalDescription(o3);
@@ -17519,20 +17570,20 @@ Found: ${e2.toString().split("\n")[0]}
17519
17570
  }
17520
17571
  if (i2 === "answer") {
17521
17572
  if (s2 === "stable")
17522
- return void _.a.warn("Received answer SDP when signaling hasn't started.");
17573
+ return void w.a.warn("Received answer SDP when signaling hasn't started.");
17523
17574
  yield t2.setRemoteDescription(n2);
17524
17575
  }
17525
17576
  }
17526
17577
  else
17527
- _.a.warn(`Received SDP when already connected: ${o2}`);
17578
+ w.a.warn(`Received SDP when already connected: ${o2}`);
17528
17579
  });
17529
17580
  }
17530
17581
  send(e2, t2) {
17531
17582
  const r2 = this.getChannelFromLabel(t2.channelLabel);
17532
- r2 ? this.sendOnChannel(r2, e2) : _.a.warn("Send called with unexpected channel label", { channelLabel: t2.channelLabel });
17583
+ r2 ? this.sendOnChannel(r2, e2) : w.a.warn("Send called with unexpected channel label", { channelLabel: t2.channelLabel });
17533
17584
  }
17534
17585
  controlRemoteStream(e2) {
17535
- this.sendSystemMessage(v(this.reliableStreamChannel), { type: "stream-control", streamControl: e2 });
17586
+ this.sendSystemMessage(S(this.reliableStreamChannel), { type: "stream-control", streamControl: e2 });
17536
17587
  }
17537
17588
  isActive() {
17538
17589
  return (/* @__PURE__ */ new Set(["new", "checking", "connected", "completed"])).has(this.peerConnection.iceConnectionState) || this.isReady();
@@ -17542,7 +17593,7 @@ Found: ${e2.toString().split("\n")[0]}
17542
17593
  return (e2 == null ? void 0 : e2.readyState) === "open" && (t2 == null ? void 0 : t2.readyState) === "open" && (r2 == null ? void 0 : r2.readyState) === "open" && (n2 == null ? void 0 : n2.readyState) === "open";
17543
17594
  }
17544
17595
  close() {
17545
- return Y(this, void 0, void 0, function* () {
17596
+ return $(this, void 0, void 0, function* () {
17546
17597
  if (this.closeCalled)
17547
17598
  return;
17548
17599
  this.closeCalled = true, this.sessionMetrics && (yield this.sessionMetrics.uploadMetrics()), this.pingUpdateTimeout && clearInterval(this.pingUpdateTimeout), this.reassemblyTableCleanupTimeout && clearInterval(this.reassemblyTableCleanupTimeout), this.streamsInfoUpdateTimeout && clearInterval(this.streamsInfoUpdateTimeout), this.heartbeatTimeout && clearInterval(this.heartbeatTimeout);
@@ -17568,7 +17619,7 @@ Found: ${e2.toString().split("\n")[0]}
17568
17619
  return (e2 = this.config.remoteConfig) === null || e2 === void 0 ? void 0 : e2.sessionId;
17569
17620
  }
17570
17621
  setSessionId(e2) {
17571
- this.config.remoteConfig && (this.config.remoteConfig.sessionId = e2, this.sessionMetrics = new G(e2, this));
17622
+ this.config.remoteConfig && (this.config.remoteConfig.sessionId = e2, this.sessionMetrics = new Y(e2, this));
17572
17623
  }
17573
17624
  getRemotePeerId() {
17574
17625
  return this.config.baseConfig.remotePeerId;
@@ -17585,7 +17636,7 @@ Found: ${e2.toString().split("\n")[0]}
17585
17636
  return (e2 = this.sessionMetrics) === null || e2 === void 0 ? void 0 : e2.counts;
17586
17637
  }
17587
17638
  getConnectionStatsInfo() {
17588
- return Y(this, void 0, void 0, function* () {
17639
+ return $(this, void 0, void 0, function* () {
17589
17640
  const { peerConnection: e2 } = this;
17590
17641
  if (!e2)
17591
17642
  return;
@@ -17604,43 +17655,43 @@ Found: ${e2.toString().split("\n")[0]}
17604
17655
  });
17605
17656
  }
17606
17657
  initializeChannels(e2) {
17607
- this.heartbeatChannel = e2.createDataChannel("heartbeat", V), this.heartbeatChannel.binaryType = "arraybuffer", this.latestTtlStreamChannel = e2.createDataChannel("stream.latest-ttl", B), this.latestTtlStreamChannel.binaryType = "arraybuffer", this.reliableStreamChannel = e2.createDataChannel("stream.reliable", k), this.reliableStreamChannel.binaryType = "arraybuffer", this.latestReliableStreamChannel = e2.createDataChannel("stream.latest-reliable", F), this.latestReliableStreamChannel.binaryType = "arraybuffer", this.latestTryOnceStreamChannel = e2.createDataChannel("stream.latest-try-once", W), this.latestTryOnceStreamChannel.binaryType = "arraybuffer", this.setupChannel(this.latestTtlStreamChannel), this.setupChannel(this.reliableStreamChannel), this.setupChannel(this.latestReliableStreamChannel), this.setupChannel(this.latestTryOnceStreamChannel);
17658
+ this.heartbeatChannel = e2.createDataChannel("heartbeat", z), this.heartbeatChannel.binaryType = "arraybuffer", this.latestTtlStreamChannel = e2.createDataChannel("stream.latest-ttl", F), this.latestTtlStreamChannel.binaryType = "arraybuffer", this.reliableStreamChannel = e2.createDataChannel("stream.reliable", W), this.reliableStreamChannel.binaryType = "arraybuffer", this.latestReliableStreamChannel = e2.createDataChannel("stream.latest-reliable", V), this.latestReliableStreamChannel.binaryType = "arraybuffer", this.latestTryOnceStreamChannel = e2.createDataChannel("stream.latest-try-once", H), this.latestTryOnceStreamChannel.binaryType = "arraybuffer", this.setupChannel(this.latestTtlStreamChannel), this.setupChannel(this.reliableStreamChannel), this.setupChannel(this.latestReliableStreamChannel), this.setupChannel(this.latestTryOnceStreamChannel);
17608
17659
  }
17609
17660
  getOffer() {
17610
17661
  var e2, t2, r2;
17611
- return Y(this, void 0, void 0, function* () {
17662
+ return $(this, void 0, void 0, function* () {
17612
17663
  const { gotOffer: n2 } = this, { peerConnection: o2, config: i2 } = this;
17613
17664
  if (this.config.baseConfig.isLan)
17614
17665
  throw new Error('"getOffer" method can only be called with internet connections. LAN connections should call the "getLanOffer" method.');
17615
17666
  const s2 = (e2 = this.config.remoteConfig) === null || e2 === void 0 ? void 0 : e2.sessionId;
17616
17667
  if (n2)
17617
- return void _.a.debug("Failed to generate offer because gotOffer was already called.");
17618
- if (this.gotOffer = true, q(this.peerConnection))
17619
- return void _.a.debug("Failed to generate offer because the peer connection was inactive.");
17668
+ return void w.a.debug("Failed to generate offer because gotOffer was already called.");
17669
+ if (this.gotOffer = true, Z(this.peerConnection))
17670
+ return void w.a.debug("Failed to generate offer because the peer connection was inactive.");
17620
17671
  const a3 = i2.baseConfig.track;
17621
17672
  o2.onicecandidate = () => {
17622
17673
  this.hasIceCandidate = true;
17623
- }, o2.oniceconnectionstatechange = () => Y(this, void 0, void 0, function* () {
17674
+ }, o2.oniceconnectionstatechange = () => $(this, void 0, void 0, function* () {
17624
17675
  const e3 = o2.iceConnectionState;
17625
17676
  if (e3 === "connected" || e3 === "completed") {
17626
17677
  const t3 = yield this.getConnectionStatsInfo(), r3 = t3 ? function(e4) {
17627
17678
  const t4 = e4.localCandidate.candidateType, r4 = e4.remoteCandidate.candidateType;
17628
17679
  return t4 === "host" && r4 === "host" ? "local" : t4 === "relay" || r4 === "relay" ? "TURN" : "STUN";
17629
17680
  }(t3) : void 0;
17630
- _.a.info(`ICE connection state changed to ${e3}`, { sessionId: s2, connectionStatsInfo: t3, iceMode: r3 }), a3 == null || a3("ICE connection state change", { iceConnectionState: e3, sessionId: s2, connectionStatsInfo: t3, iceMode: r3 });
17681
+ w.a.info(`ICE connection state changed to ${e3}`, { sessionId: s2, connectionStatsInfo: t3, iceMode: r3 }), a3 == null || a3("ICE connection state change", { iceConnectionState: e3, sessionId: s2, connectionStatsInfo: t3, iceMode: r3 });
17631
17682
  }
17632
17683
  }), yield o2.setLocalDescription(yield o2.createOffer());
17633
17684
  const g2 = new Date().getTime();
17634
17685
  for (; ; ) {
17635
17686
  const e3 = new Date().getTime() - g2;
17636
17687
  if (e3 > this.connectTimeoutMs)
17637
- return void _.a.debug("Failed to generate offer because ICE gathering timed out.");
17688
+ return void w.a.debug("Failed to generate offer because ICE gathering timed out.");
17638
17689
  if (e3 > this.iceGatheringTimeoutMs && this.hasIceCandidate) {
17639
- _.a.debug("ICE gathering partially completed; proceeding", { iceTransportPolicy: o2.getConfiguration().iceTransportPolicy, waitTime: e3 }), a3 == null || a3("ICE gathering partially completed", { sessionId: s2, iceTransportPolicy: o2.getConfiguration().iceTransportPolicy, waitTime: e3 });
17690
+ w.a.debug("ICE gathering partially completed; proceeding", { iceTransportPolicy: o2.getConfiguration().iceTransportPolicy, waitTime: e3 }), a3 == null || a3("ICE gathering partially completed", { sessionId: s2, iceTransportPolicy: o2.getConfiguration().iceTransportPolicy, waitTime: e3 });
17640
17691
  break;
17641
17692
  }
17642
17693
  if (o2.iceGatheringState === "complete") {
17643
- _.a.debug("ICE gathering complete", { iceTransportPolicy: o2.getConfiguration().iceTransportPolicy, waitTime: e3 }), a3 == null || a3("ICE gathering completed", { sessionId: s2, iceTransportPolicy: o2.getConfiguration().iceTransportPolicy, waitTime: e3 });
17694
+ w.a.debug("ICE gathering complete", { iceTransportPolicy: o2.getConfiguration().iceTransportPolicy, waitTime: e3 }), a3 == null || a3("ICE gathering completed", { sessionId: s2, iceTransportPolicy: o2.getConfiguration().iceTransportPolicy, waitTime: e3 });
17644
17695
  break;
17645
17696
  }
17646
17697
  yield Object(u.a)(0.1 * l.a.second);
@@ -17648,36 +17699,36 @@ Found: ${e2.toString().split("\n")[0]}
17648
17699
  const c2 = (t2 = this.peerConnection.getConfiguration().iceServers) !== null && t2 !== void 0 ? t2 : [];
17649
17700
  for (const e3 of c2)
17650
17701
  e3.credentialType = void 0;
17651
- const f2 = JSON.stringify(c2), p2 = new M.Signal();
17652
- return p2.setPayload(JSON.stringify(o2.localDescription)), p2.setSenderId(this.config.baseConfig.localPeerId), p2.setReceiverId(this.config.baseConfig.remotePeerId), p2.setIceServers(f2), p2.setIceTransportPolicy((r2 = this.peerConnection.getConfiguration().iceTransportPolicy) !== null && r2 !== void 0 ? r2 : "all"), p2.setSessionType(M.SessionType.TELEOP), _.a.debug("Sending offer signal with description", { description: p2.getPayload() }), p2;
17702
+ const f2 = JSON.stringify(c2), p2 = new N.Signal();
17703
+ return p2.setPayload(JSON.stringify(o2.localDescription)), p2.setSenderId(this.config.baseConfig.localPeerId), p2.setReceiverId(this.config.baseConfig.remotePeerId), p2.setIceServers(f2), p2.setIceTransportPolicy((r2 = this.peerConnection.getConfiguration().iceTransportPolicy) !== null && r2 !== void 0 ? r2 : "all"), p2.setSessionType(this.config.baseConfig.sessionType || N.SessionType.TELEOP), w.a.debug("Sending offer signal with description", { description: p2.getPayload() }), p2;
17653
17704
  });
17654
17705
  }
17655
17706
  getLanOffer() {
17656
- return Y(this, void 0, void 0, function* () {
17707
+ return $(this, void 0, void 0, function* () {
17657
17708
  const { peerConnection: e2, gotOffer: t2 } = this;
17658
17709
  if (!this.config.baseConfig.isLan)
17659
17710
  throw new Error('"getLanOffer" method can only be used with LAN connections. Internet connections should call the "getOffer" method.');
17660
17711
  if (t2)
17661
- return void _.a.debug("Failed to generate offer because gotOffer was already called.");
17662
- if (this.gotOffer = true, q(this.peerConnection))
17663
- return void _.a.debug("Failed to generate offer because the peer connection was inactive.");
17712
+ return void w.a.debug("Failed to generate offer because gotOffer was already called.");
17713
+ if (this.gotOffer = true, Z(this.peerConnection))
17714
+ return void w.a.debug("Failed to generate offer because the peer connection was inactive.");
17664
17715
  yield e2.setLocalDescription(yield e2.createOffer());
17665
17716
  const r2 = new Date().getTime();
17666
17717
  for (; ; ) {
17667
17718
  if (new Date().getTime() - r2 > this.iceGatheringTimeoutMs)
17668
- return void _.a.debug("Failed to generate offer because ICE gathering timed out.");
17719
+ return void w.a.debug("Failed to generate offer because ICE gathering timed out.");
17669
17720
  if (e2.iceGatheringState === "complete")
17670
17721
  break;
17671
17722
  yield Object(u.a)(0.1 * l.a.second);
17672
17723
  }
17673
17724
  const n2 = e2.localDescription;
17674
17725
  if (n2)
17675
- return _.a.debug("Sending LAN offer signal with description", { description: n2 }), n2;
17676
- _.a.error("Failed to generate LAN offer description");
17726
+ return w.a.debug("Sending LAN offer signal with description", { description: n2 }), n2;
17727
+ w.a.error("Failed to generate LAN offer description");
17677
17728
  });
17678
17729
  }
17679
17730
  handleLanAnswer(e2) {
17680
- return Y(this, void 0, void 0, function* () {
17731
+ return $(this, void 0, void 0, function* () {
17681
17732
  const { peerConnection: t2 } = this;
17682
17733
  if (!this.config.baseConfig.isLan)
17683
17734
  throw new Error('"handleLanAnswer" method can only be used with LAN connections. Internet connections should call the "handleSignal" method.');
@@ -17699,14 +17750,14 @@ Found: ${e2.toString().split("\n")[0]}
17699
17750
  sendOnChannel(e2, t2) {
17700
17751
  let r2;
17701
17752
  try {
17702
- r2 = Object(U.encode)(JSON.stringify(t2));
17753
+ r2 = Object(k.encode)(JSON.stringify(t2));
17703
17754
  } catch (e3) {
17704
- return void _.a.warn("Failed to encode RTC message", { error: e3 });
17755
+ return void w.a.warn("Failed to encode RTC message", { error: e3 });
17705
17756
  }
17706
17757
  try {
17707
17758
  e2.send(r2), this.sessionMetrics && this.sessionMetrics.incrementLocalSent(t2);
17708
17759
  } catch (t3) {
17709
- _.a.warn("Failed to send message to channel", { error: t3, channel: e2.label });
17760
+ w.a.warn("Failed to send message to channel", { error: t3, channel: e2.label });
17710
17761
  }
17711
17762
  }
17712
17763
  channelNotRecognized(e2) {
@@ -17715,21 +17766,21 @@ Found: ${e2.toString().split("\n")[0]}
17715
17766
  setupChannel(e2) {
17716
17767
  e2.onmessage = (t2) => {
17717
17768
  if (this.channelNotRecognized(e2))
17718
- return void _.a.warn("Received message on unrecognized data channel.");
17769
+ return void w.a.warn("Received message on unrecognized data channel.");
17719
17770
  let r2;
17720
17771
  try {
17721
- r2 = JSON.parse(Object(U.decode)(t2.data));
17772
+ r2 = JSON.parse(Object(k.decode)(t2.data));
17722
17773
  } catch (t3) {
17723
- return void _.a.warn("Received unparseable message on RTC stream data channel", { error: t3, channel: e2.label });
17774
+ return void w.a.warn("Received unparseable message on RTC stream data channel", { error: t3, channel: e2.label });
17724
17775
  }
17725
17776
  r2.communicationType === "message-chunk" ? this.receiveChannelMessageChunk(e2, r2) : this.receiveChannelMessage(e2, r2);
17726
17777
  }, e2.onerror = (t2) => {
17727
- _.a.warn(`Channel error: ${t2.error}`, { error: t2.error, sessionId: this.getSessionId(), channelLabel: e2.label });
17778
+ w.a.warn(`Channel error: ${t2.error}`, { error: t2.error, sessionId: this.getSessionId(), channelLabel: e2.label });
17728
17779
  }, e2.onopen = () => {
17729
- _.a.debug("Channel opened", { sessionId: this.getSessionId(), channelLabel: e2.label });
17780
+ w.a.debug("Channel opened", { sessionId: this.getSessionId(), channelLabel: e2.label });
17730
17781
  }, e2.onclose = () => {
17731
17782
  const t2 = { bufferedAmount: e2.bufferedAmount, sessionId: this.getSessionId(), channelLabel: e2.label };
17732
- this.closeCalled === false ? _.a.debug("Unexpected channel closed", t2) : _.a.debug("Channel closed", t2);
17783
+ this.closeCalled === false ? w.a.debug("Unexpected channel closed", t2) : w.a.debug("Channel closed", t2);
17733
17784
  };
17734
17785
  }
17735
17786
  receiveChannelMessage(e2, t2) {
@@ -17778,7 +17829,7 @@ Found: ${e2.toString().split("\n")[0]}
17778
17829
  try {
17779
17830
  return JSON.parse(t3);
17780
17831
  } catch (e4) {
17781
- return void _.a.warn("Could not reassemble RTC message chunks");
17832
+ return void w.a.warn("Could not reassemble RTC message chunks");
17782
17833
  }
17783
17834
  }(r2);
17784
17835
  return n2 && this.receiveChannelMessage(e2, n2), void this.reassemblyTable.delete(t2.id);
@@ -17790,10 +17841,10 @@ Found: ${e2.toString().split("\n")[0]}
17790
17841
  const { config: o2 } = this, { baseConfig: i2 } = o2, { remotePeerId: s2 } = i2;
17791
17842
  switch (t2.header.stream.streamType) {
17792
17843
  case "ping":
17793
- return this.sendSystemMessage(e2, { type: "pong", timestamp: v(t2.payload.ping) }), true;
17844
+ return this.sendSystemMessage(e2, { type: "pong", timestamp: S(t2.payload.ping) }), true;
17794
17845
  case "pong": {
17795
- const e3 = new Date().getTime() - v(t2.payload.pong);
17796
- return this.pingTimeMs = e3, C.aggregate("rtc-ping-time", e3), true;
17846
+ const e3 = new Date().getTime() - S(t2.payload.pong);
17847
+ return this.pingTimeMs = e3, P.aggregate("rtc-ping-time", e3), true;
17797
17848
  }
17798
17849
  case "streams-info": {
17799
17850
  const { sessionMetrics: e3 } = this, o3 = (r2 = t2.payload.streamsInfo) === null || r2 === void 0 ? void 0 : r2.timestamp;
@@ -17830,15 +17881,15 @@ Found: ${e2.toString().split("\n")[0]}
17830
17881
  }(i2, s2));
17831
17882
  }
17832
17883
  isLatestMessage(e2) {
17833
- const t2 = H(e2.header.stream), r2 = (this.streamLatestTimestamp.get(t2) || 0) <= e2.header.created;
17884
+ const t2 = G(e2.header.stream), r2 = (this.streamLatestTimestamp.get(t2) || 0) <= e2.header.created;
17834
17885
  return r2 && this.streamLatestTimestamp.set(t2, e2.header.created), r2;
17835
17886
  }
17836
17887
  }
17837
- function K(e2) {
17888
+ function X(e2) {
17838
17889
  var t2, r2;
17839
17890
  return { userId: (t2 = e2.getUserId()) === null || t2 === void 0 ? void 0 : t2.getValue(), deviceId: (r2 = e2.getDeviceId()) === null || r2 === void 0 ? void 0 : r2.getValue(), organizationId: e2.getOrganizationId(), id: e2.getPeerId(), capabilities: [], capabilitySet: {} };
17840
17891
  }
17841
- var $ = function(e2, t2, r2, n2) {
17892
+ var J = function(e2, t2, r2, n2) {
17842
17893
  return new (r2 || (r2 = Promise))(function(o2, i2) {
17843
17894
  function s2(e3) {
17844
17895
  try {
@@ -17863,80 +17914,80 @@ Found: ${e2.toString().split("\n")[0]}
17863
17914
  l2((n2 = n2.apply(e2, t2 || [])).next());
17864
17915
  });
17865
17916
  };
17866
- class X {
17917
+ class Q {
17867
17918
  constructor(e2) {
17868
17919
  this.config = e2, this.grpcCallDeadline = 5 * l.a.second, this.refreshIntervalDelayMs = 2 * l.a.second, this.iceServersTtl = 30 * l.a.minute, this.connections = [], this.localConnections = [], this.isConnectionInitiator = /* @__PURE__ */ new Map(), this.isOutgoingConnection = /* @__PURE__ */ new Map(), this.peerDataChannelListeners = [];
17869
17920
  const { refreshIntervalDelayMs: t2 } = this;
17870
- this.refreshInterval = w({ func: () => $(this, void 0, void 0, function* () {
17921
+ this.refreshInterval = T({ func: () => J(this, void 0, void 0, function* () {
17871
17922
  try {
17872
17923
  yield this.update();
17873
17924
  } catch (e3) {
17874
- _.a.warn("RTC refresh failed", { error: e3 });
17925
+ w.a.warn("RTC refresh failed", { error: e3 });
17875
17926
  }
17876
17927
  }), delay: t2, immediate: true });
17877
17928
  }
17878
17929
  send(e2, t2, r2) {
17879
17930
  const n2 = this.getActiveConnection(e2);
17880
- n2 ? n2.isReady() ? n2.send(t2, r2) : _.a.warn("Send called with unready connection.") : _.a.warn("Send called with no connection.");
17931
+ n2 ? n2.isReady() ? n2.send(t2, r2) : w.a.warn("Send called with unready connection.") : w.a.warn("Send called with no connection.");
17881
17932
  }
17882
17933
  controlRemoteStream(e2, t2) {
17883
17934
  const r2 = this.getActiveConnection(e2);
17884
- r2 ? r2.isReady() ? r2.controlRemoteStream(t2) : _.a.warn("controlRemoteStream called with unready connection.") : _.a.warn("controlRemoteStream called with no connection.");
17935
+ r2 ? r2.isReady() ? r2.controlRemoteStream(t2) : w.a.warn("controlRemoteStream called with unready connection.") : w.a.warn("controlRemoteStream called with no connection.");
17885
17936
  }
17886
17937
  getLocalPeer() {
17887
- return $(this, void 0, void 0, function* () {
17938
+ return J(this, void 0, void 0, function* () {
17888
17939
  for (; !this.localPeer; )
17889
17940
  yield Object(u.a)(0.1 * l.a.second);
17890
- return K(this.localPeer);
17941
+ return X(this.localPeer);
17891
17942
  });
17892
17943
  }
17893
- connect(e2, t2, r2) {
17894
- var n2, o2, i2;
17895
- return $(this, void 0, void 0, function* () {
17944
+ connect(e2, t2) {
17945
+ var r2, n2, o2;
17946
+ return J(this, void 0, void 0, function* () {
17896
17947
  if (this.config.lanOnlyMode === true)
17897
17948
  throw new Error("connect method called in local only mode.");
17898
- const { track: s2, signalingClient: a3 } = this.config, { localPeer: l2, receiveSignalStream: u2, iceServers: g2 } = this;
17899
- if (!l2 || !u2 || !g2)
17900
- return void _.a.warn("Connect called prior to local peer, receiveSignalStream, and ICE servers ready");
17949
+ const { track: i2, signalingClient: s2 } = this.config, { localPeer: a3, receiveSignalStream: l2, iceServers: u2 } = this;
17950
+ if (!a3 || !l2 || !u2)
17951
+ return void w.a.warn("Connect called prior to local peer, receiveSignalStream, and ICE servers ready");
17901
17952
  if (this.getActiveConnection(e2))
17902
- return void _.a.warn("Connect called for peer with existing connection.");
17953
+ return void w.a.warn("Connect called for peer with existing connection.");
17903
17954
  if (this.isOutgoingConnection.get(e2))
17904
- return void _.a.warn("Connect called for peer with an existing outgoing connection offer.");
17955
+ return void w.a.warn("Connect called for peer with an existing outgoing connection offer.");
17905
17956
  this.isOutgoingConnection.set(e2, true);
17906
- const c2 = new Z(yield this.createRTCPeerConnection(g2, t2), { baseConfig: { isOffer: true, isLan: false, receive: (e3, t3) => this.config.receive(e3, t3), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (e3, t3) => {
17957
+ const g2 = new K(yield this.createRTCPeerConnection(u2, t2), { baseConfig: { isOffer: true, isLan: false, receive: (e3, t3) => this.config.receive(e3, t3), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (e3, t3) => {
17907
17958
  var r3, n3;
17908
17959
  return (n3 = (r3 = this.config).onStreamsInfoUpdate) === null || n3 === void 0 ? void 0 : n3.call(r3, e3, t3);
17909
- } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localUserId: (n2 = l2.getUserId()) === null || n2 === void 0 ? void 0 : n2.getValue(), localPeerId: l2.getPeerId(), remotePeerId: e2 }, remoteConfig: {} }, (t3) => this.onCustomDataChannel(e2, t3)), f2 = yield c2.getOffer();
17910
- if (!f2)
17911
- return _.a.error("Failed to generate offer."), void this.isOutgoingConnection.delete(e2);
17912
- _.a.debug("Sending offer."), s2 == null || s2("Sending offer", f2);
17913
- const p2 = new M.SendSignalRequest();
17914
- r2 && f2.setSessionType(r2), p2.setSignal(f2);
17915
- const h2 = yield (() => $(this, void 0, void 0, function* () {
17960
+ } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localUserId: (r2 = a3.getUserId()) === null || r2 === void 0 ? void 0 : r2.getValue(), localPeerId: a3.getPeerId(), remotePeerId: e2, sessionType: t2 == null ? void 0 : t2.sessionType }, remoteConfig: {} }, (t3) => this.onCustomDataChannel(e2, t3)), c2 = yield g2.getOffer();
17961
+ if (!c2)
17962
+ return w.a.error("Failed to generate offer."), void this.isOutgoingConnection.delete(e2);
17963
+ w.a.debug("Sending offer."), i2 == null || i2("Sending offer", c2);
17964
+ const f2 = new N.SendSignalRequest();
17965
+ f2.setSignal(c2);
17966
+ const p2 = yield (() => J(this, void 0, void 0, function* () {
17916
17967
  try {
17917
- return yield a3.sendSignal(p2, yield this.getMetadata({}));
17968
+ return yield s2.sendSignal(f2, yield this.getMetadata({}));
17918
17969
  } catch (e3) {
17919
- _.a.warn("Error when sending signal", { error: e3 });
17970
+ w.a.warn("Error when sending signal", { error: e3 });
17920
17971
  }
17921
17972
  }))();
17922
17973
  if (!this.isOutgoingConnection.get(e2))
17923
- return void _.a.debug("No offer set after receiving offer signal response.");
17924
- _.a.debug("Offer sent.");
17925
- const d2 = (o2 = h2 == null ? void 0 : h2.getSessionId()) === null || o2 === void 0 ? void 0 : o2.getValue(), y2 = (i2 = h2 == null ? void 0 : h2.getSessionCreatedTimestamp()) === null || i2 === void 0 ? void 0 : i2.getValue();
17926
- return d2 && y2 ? (c2.setSessionId(d2), c2.setSessionCreatedTimestamp(y2), this.isOutgoingConnection.delete(e2), this.connections.push(c2), this.isConnectionInitiator.set(c2, true), this.setupHandlers(c2), d2) : (_.a.warn("No session ID or no session created timestamp on send signal response."), void this.isOutgoingConnection.delete(e2));
17974
+ return void w.a.debug("No offer set after receiving offer signal response.");
17975
+ w.a.debug("Offer sent.");
17976
+ const h2 = (n2 = p2 == null ? void 0 : p2.getSessionId()) === null || n2 === void 0 ? void 0 : n2.getValue(), d2 = (o2 = p2 == null ? void 0 : p2.getSessionCreatedTimestamp()) === null || o2 === void 0 ? void 0 : o2.getValue();
17977
+ return h2 && d2 ? (g2.setSessionId(h2), g2.setSessionCreatedTimestamp(d2), this.isOutgoingConnection.delete(e2), this.connections.push(g2), this.isConnectionInitiator.set(g2, true), this.setupHandlers(g2), h2) : (w.a.warn("No session ID or no session created timestamp on send signal response."), void this.isOutgoingConnection.delete(e2));
17927
17978
  });
17928
17979
  }
17929
17980
  connectLan(e2) {
17930
17981
  var t2, r2;
17931
- return $(this, void 0, void 0, function* () {
17932
- const n2 = new x(e2), o2 = new Z(yield this.createRTCPeerConnection([]), { baseConfig: { isOffer: true, isLan: true, receive: (e3, t3) => this.config.receive(e3, t3), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (e3, t3) => {
17982
+ return J(this, void 0, void 0, function* () {
17983
+ const n2 = new B(e2), o2 = new K(yield this.createRTCPeerConnection([]), { baseConfig: { isOffer: true, isLan: true, receive: (e3, t3) => this.config.receive(e3, t3), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (e3, t3) => {
17933
17984
  var r3, n3;
17934
17985
  return (n3 = (r3 = this.config).onStreamsInfoUpdate) === null || n3 === void 0 ? void 0 : n3.call(r3, e3, t3);
17935
17986
  } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localUserId: (r2 = (t2 = this.localPeer) === null || t2 === void 0 ? void 0 : t2.getUserId()) === null || r2 === void 0 ? void 0 : r2.getValue(), localPeerId: "lan_client", remotePeerId: e2 } }, (t3) => this.onCustomDataChannel(e2, t3)), i2 = yield o2.getLanOffer();
17936
17987
  if (!i2)
17937
- return _.a.warn("Could not generate LAN offer"), false;
17988
+ return w.a.warn("Could not generate LAN offer"), false;
17938
17989
  const s2 = yield n2.postLanRtcOffer({ offer: JSON.stringify(i2) }), a3 = new RTCSessionDescription(JSON.parse(s2.answer));
17939
- return yield o2.handleLanAnswer(a3), this.localConnections.push(o2), Object(N.v4)();
17990
+ return yield o2.handleLanAnswer(a3), this.localConnections.push(o2), this.isConnectionInitiator.set(o2, true), Object(D.v4)();
17940
17991
  });
17941
17992
  }
17942
17993
  getConnections() {
@@ -17966,27 +18017,27 @@ Found: ${e2.toString().split("\n")[0]}
17966
18017
  return t2 ? t2.isReady() ? "connected" : "connecting" : "disconnected";
17967
18018
  }
17968
18019
  getConnectionStatsInfo(e2) {
17969
- return $(this, void 0, void 0, function* () {
18020
+ return J(this, void 0, void 0, function* () {
17970
18021
  const t2 = this.getActiveConnection(e2);
17971
18022
  if (t2)
17972
18023
  return yield t2.getConnectionStatsInfo();
17973
18024
  });
17974
18025
  }
17975
18026
  disconnect(e2) {
17976
- return $(this, void 0, void 0, function* () {
18027
+ return J(this, void 0, void 0, function* () {
17977
18028
  const t2 = this.getActiveConnection(e2);
17978
18029
  t2 && (yield t2.close());
17979
18030
  });
17980
18031
  }
17981
18032
  getPeers() {
17982
- return $(this, void 0, void 0, function* () {
18033
+ return J(this, void 0, void 0, function* () {
17983
18034
  if (this.config.lanOnlyMode)
17984
18035
  throw new Error("getPeers method cannot be used in local-only mode.");
17985
- const { signalingClient: e2 } = this.config, t2 = yield (() => $(this, void 0, void 0, function* () {
18036
+ const { signalingClient: e2 } = this.config, t2 = yield (() => J(this, void 0, void 0, function* () {
17986
18037
  try {
17987
- return yield e2.getPeers(new M.GetPeersRequest(), yield this.getMetadata({}));
18038
+ return yield e2.getPeers(new N.GetPeersRequest(), yield this.getMetadata({}));
17988
18039
  } catch (e3) {
17989
- _.a.warn("Error when getting peers", { error: e3 });
18040
+ w.a.warn("Error when getting peers", { error: e3 });
17990
18041
  }
17991
18042
  }))();
17992
18043
  if (!t2)
@@ -17998,18 +18049,18 @@ Found: ${e2.toString().split("\n")[0]}
17998
18049
  var t3, r3;
17999
18050
  return (r3 = (t3 = e3.getPeerCreatedTimestamp()) === null || t3 === void 0 ? void 0 : t3.getValue()) !== null && r3 !== void 0 ? r3 : 0;
18000
18051
  };
18001
- return r2.sort((e3, t3) => n2(t3) - n2(e3)).map((e3) => K(e3));
18052
+ return r2.sort((e3, t3) => n2(t3) - n2(e3)).map((e3) => X(e3));
18002
18053
  });
18003
18054
  }
18004
18055
  getSessions() {
18005
- return $(this, void 0, void 0, function* () {
18056
+ return J(this, void 0, void 0, function* () {
18006
18057
  if (this.config.lanOnlyMode)
18007
18058
  throw new Error("getPeers method cannot be used in local-only mode.");
18008
- const { signalingClient: e2 } = this.config, t2 = yield (() => $(this, void 0, void 0, function* () {
18059
+ const { signalingClient: e2 } = this.config, t2 = yield (() => J(this, void 0, void 0, function* () {
18009
18060
  try {
18010
- return yield e2.getPeers(new M.GetPeersRequest(), yield this.getMetadata({}));
18061
+ return yield e2.getPeers(new N.GetPeersRequest(), yield this.getMetadata({}));
18011
18062
  } catch (e3) {
18012
- _.a.warn("Error when getting peers", { error: e3 });
18063
+ w.a.warn("Error when getting peers", { error: e3 });
18013
18064
  }
18014
18065
  }))();
18015
18066
  if (!t2)
@@ -18024,19 +18075,19 @@ Found: ${e2.toString().split("\n")[0]}
18024
18075
  const t2 = this.getActiveConnection(e2);
18025
18076
  if (t2)
18026
18077
  return t2.getPing();
18027
- _.a.warn("Attempted to get ping time from inactive peer.");
18078
+ w.a.warn("Attempted to get ping time from inactive peer.");
18028
18079
  }
18029
18080
  getLastMessageTimestamp(e2) {
18030
18081
  const t2 = this.getActiveConnection(e2);
18031
18082
  if (t2)
18032
18083
  return t2.getLastMessageTimestamp();
18033
- _.a.warn("Attempted to get last message time from inactive peer.");
18084
+ w.a.warn("Attempted to get last message time from inactive peer.");
18034
18085
  }
18035
18086
  getSessionMetricsMessageCounts(e2) {
18036
18087
  const t2 = this.getActiveConnection(e2);
18037
18088
  if (t2)
18038
18089
  return t2.getSessionMetricsMessageCounts();
18039
- _.a.warn("Attempted to get session metrics counts from inactive peer.");
18090
+ w.a.warn("Attempted to get session metrics counts from inactive peer.");
18040
18091
  }
18041
18092
  isReady() {
18042
18093
  if (this.config.lanOnlyMode)
@@ -18045,8 +18096,8 @@ Found: ${e2.toString().split("\n")[0]}
18045
18096
  return !!(e2 && t2 && r2);
18046
18097
  }
18047
18098
  shutdown() {
18048
- return $(this, void 0, void 0, function* () {
18049
- _.a.info("Shutdown called on RTC client"), yield this.refreshInterval.stop(), this.receiveSignalStream && this.receiveSignalStream.cancel();
18099
+ return J(this, void 0, void 0, function* () {
18100
+ w.a.info("Shutdown called on RTC client"), yield this.refreshInterval.stop(), this.receiveSignalStream && this.receiveSignalStream.cancel();
18050
18101
  const e2 = this.connections;
18051
18102
  this.connections = [], yield this.closeConnections(e2);
18052
18103
  const { localPeer: t2 } = this;
@@ -18055,23 +18106,23 @@ Found: ${e2.toString().split("\n")[0]}
18055
18106
  if (this.config.lanOnlyMode)
18056
18107
  return;
18057
18108
  const { signalingClient: r2 } = this.config;
18058
- yield (() => $(this, void 0, void 0, function* () {
18109
+ yield (() => J(this, void 0, void 0, function* () {
18059
18110
  try {
18060
- const e3 = new M.DeletePeerRequest();
18111
+ const e3 = new N.DeletePeerRequest();
18061
18112
  e3.setPeerId(t2.getPeerId()), yield r2.deletePeer(e3, yield this.getMetadata({}));
18062
18113
  } catch (e3) {
18063
- return void _.a.warn("Error deleting local peer", { error: e3 });
18114
+ return void w.a.warn("Error deleting local peer", { error: e3 });
18064
18115
  }
18065
18116
  }))();
18066
18117
  });
18067
18118
  }
18068
18119
  createPeer() {
18069
- return $(this, void 0, void 0, function* () {
18120
+ return J(this, void 0, void 0, function* () {
18070
18121
  if (this.config.lanOnlyMode)
18071
18122
  throw new Error("createPeer method cannot be used in local-only mode.");
18072
- const { signalingClient: e2 } = this.config, t2 = yield (() => $(this, void 0, void 0, function* () {
18123
+ const { signalingClient: e2 } = this.config, t2 = yield (() => J(this, void 0, void 0, function* () {
18073
18124
  try {
18074
- return yield e2.createPeer(new M.CreatePeerRequest(), yield this.getMetadata({}));
18125
+ return yield e2.createPeer(new N.CreatePeerRequest(), yield this.getMetadata({}));
18075
18126
  } catch (e3) {
18076
18127
  throw new Error(`Was not able to create peer: ${JSON.stringify(e3)}`);
18077
18128
  }
@@ -18082,7 +18133,7 @@ Found: ${e2.toString().split("\n")[0]}
18082
18133
  });
18083
18134
  }
18084
18135
  createReceiveSignalStream() {
18085
- return $(this, void 0, void 0, function* () {
18136
+ return J(this, void 0, void 0, function* () {
18086
18137
  if (this.config.lanOnlyMode)
18087
18138
  throw new Error("createReceiveSignalStream method cannot be used in local-only mode.");
18088
18139
  const { signalingClient: e2 } = this.config, { localPeer: t2, iceServers: r2 } = this;
@@ -18090,9 +18141,9 @@ Found: ${e2.toString().split("\n")[0]}
18090
18141
  return;
18091
18142
  const { receiveSignalStream: n2 } = this;
18092
18143
  n2 && n2.cancel();
18093
- const o2 = new M.ReceiveSignalStreamRequest();
18144
+ const o2 = new N.ReceiveSignalStreamRequest();
18094
18145
  o2.setPeerId(t2.getPeerId());
18095
- const i2 = yield (() => $(this, void 0, void 0, function* () {
18146
+ const i2 = yield (() => J(this, void 0, void 0, function* () {
18096
18147
  try {
18097
18148
  return e2.receiveSignalStream(o2, yield this.getMetadata({ hasDeadline: false }));
18098
18149
  } catch (e3) {
@@ -18101,26 +18152,26 @@ Found: ${e2.toString().split("\n")[0]}
18101
18152
  }))();
18102
18153
  if (!i2)
18103
18154
  throw new Error("Response did not provide stream.");
18104
- return i2.on("data", (e3) => $(this, void 0, void 0, function* () {
18155
+ return i2.on("data", (e3) => J(this, void 0, void 0, function* () {
18105
18156
  var n3, o3, i3, s2;
18106
18157
  const a3 = e3.getSignal(), l2 = (n3 = a3 == null ? void 0 : a3.getSessionId()) === null || n3 === void 0 ? void 0 : n3.getValue(), u2 = a3 == null ? void 0 : a3.getSenderId(), g2 = a3 == null ? void 0 : a3.getReceiverId(), c2 = (o3 = a3 == null ? void 0 : a3.getSessionCreatedTimestamp()) === null || o3 === void 0 ? void 0 : o3.getValue();
18107
18158
  if (!(a3 && l2 && u2 && g2 && c2))
18108
- return void _.a.warn("Received signal with missing information.");
18159
+ return void w.a.warn("Received signal with missing information.");
18109
18160
  const f2 = this.getActiveConnection(u2);
18110
18161
  if (f2)
18111
18162
  if (f2.getSessionId() !== l2) {
18112
- if (_.a.debug("Received signal: different session for a peer we're already connected to."), (f2.getSessionCreatedTimestamp() || 0) > c2)
18163
+ if (w.a.debug("Received signal: different session for a peer we're already connected to."), (f2.getSessionCreatedTimestamp() || 0) > c2)
18113
18164
  return;
18114
- const e4 = new Z(yield this.createRTCPeerConnection(r2), { baseConfig: { isOffer: false, isLan: false, receive: (e5, t3) => this.config.receive(e5, t3), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (e5, t3) => {
18165
+ const e4 = new K(yield this.createRTCPeerConnection(r2), { baseConfig: { isOffer: false, isLan: false, receive: (e5, t3) => this.config.receive(e5, t3), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (e5, t3) => {
18115
18166
  var r3, n4;
18116
18167
  return (n4 = (r3 = this.config).onStreamsInfoUpdate) === null || n4 === void 0 ? void 0 : n4.call(r3, e5, t3);
18117
18168
  } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localPeerId: t2.getPeerId(), localUserId: (s2 = t2.getUserId()) === null || s2 === void 0 ? void 0 : s2.getValue(), remotePeerId: u2 }, remoteConfig: { sessionId: l2, sessionCreatedTimestamp: c2 } }, (e5) => this.onCustomDataChannel(u2, e5));
18118
18169
  yield e4.handleSignal(a3), this.connections.push(e4);
18119
18170
  } else
18120
- _.a.debug("Received signal: for an existing connection."), yield f2.handleSignal(a3);
18171
+ w.a.debug("Received signal: for an existing connection."), yield f2.handleSignal(a3);
18121
18172
  else {
18122
- _.a.debug("Received signal: new connection.");
18123
- const e4 = new Z(yield this.createRTCPeerConnection(r2), { baseConfig: { isOffer: false, isLan: false, receive: (e5, t3) => this.config.receive(e5, t3), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (e5, t3) => {
18173
+ w.a.debug("Received signal: new connection.");
18174
+ const e4 = new K(yield this.createRTCPeerConnection(r2), { baseConfig: { isOffer: false, isLan: false, receive: (e5, t3) => this.config.receive(e5, t3), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (e5, t3) => {
18124
18175
  var r3, n4;
18125
18176
  return (n4 = (r3 = this.config).onStreamsInfoUpdate) === null || n4 === void 0 ? void 0 : n4.call(r3, e5, t3);
18126
18177
  } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localPeerId: t2.getPeerId(), localUserId: (i3 = t2.getUserId()) === null || i3 === void 0 ? void 0 : i3.getValue(), remotePeerId: u2 }, remoteConfig: { sessionId: l2, sessionCreatedTimestamp: c2 } }, (e5) => this.onCustomDataChannel(u2, e5));
@@ -18130,16 +18181,16 @@ Found: ${e2.toString().split("\n")[0]}
18130
18181
  i2.cancel(), this.receiveSignalStream = void 0;
18131
18182
  }), i2.on("error", (e3) => {
18132
18183
  switch (e3.code) {
18133
- case P.StatusCode.CANCELLED:
18134
- case P.StatusCode.UNAVAILABLE:
18135
- case P.StatusCode.UNKNOWN:
18136
- _.a.debug("Receive signal stream error", { error: e3 });
18184
+ case L.StatusCode.CANCELLED:
18185
+ case L.StatusCode.UNAVAILABLE:
18186
+ case L.StatusCode.UNKNOWN:
18187
+ w.a.debug("Receive signal stream error", { error: e3 });
18137
18188
  break;
18138
- case P.StatusCode.UNAUTHENTICATED:
18139
- _.a.warn("Receive signal stream error", { error: e3 });
18189
+ case L.StatusCode.UNAUTHENTICATED:
18190
+ w.a.warn("Receive signal stream error", { error: e3 });
18140
18191
  break;
18141
18192
  default:
18142
- _.a.error("Receive signal stream error", { error: e3 });
18193
+ w.a.error("Receive signal stream error", { error: e3 });
18143
18194
  }
18144
18195
  i2.cancel(), this.receiveSignalStream = void 0;
18145
18196
  }), this.receiveSignalStream = i2;
@@ -18147,7 +18198,7 @@ Found: ${e2.toString().split("\n")[0]}
18147
18198
  }
18148
18199
  createRTCPeerConnection(e2, t2) {
18149
18200
  var r2;
18150
- return $(this, void 0, void 0, function* () {
18201
+ return J(this, void 0, void 0, function* () {
18151
18202
  const n2 = t2 == null ? void 0 : t2.rtcIceTransportPolicies, o2 = (t2 == null ? void 0 : t2.rtcIceServerProtocol) ? [t2 == null ? void 0 : t2.rtcIceServerProtocol] : void 0, i2 = e2.map((e3) => Object.assign(Object.assign({}, e3), { urls: typeof e3.urls == "string" ? [e3.urls] : e3.urls })).map((e3) => Object.assign(Object.assign({}, e3), { urls: e3.urls.filter((e4) => {
18152
18203
  const t3 = (n2 === void 0 || n2.some((t4) => ((e5, t5) => {
18153
18204
  switch (t5) {
@@ -18157,7 +18208,7 @@ Found: ${e2.toString().split("\n")[0]}
18157
18208
  return /^turns?:/.test(e5);
18158
18209
  }
18159
18210
  })(e4, t4))) && (o2 === void 0 || o2.some((t4) => ((e5, t5) => e5.endsWith(`transport=${t5}`))(e4, t4)));
18160
- return t3 || _.a.debug(`Ignoring ICE server: ${e4}`), t3;
18211
+ return t3 || w.a.debug(`Ignoring ICE server: ${e4}`), t3;
18161
18212
  }) })).filter(({ urls: e3 }) => e3.filter((e4) => e4).length > 0), s2 = (r2 = this.config.alternateRTCPeerConnection) !== null && r2 !== void 0 ? r2 : window.RTCPeerConnection;
18162
18213
  if (!s2)
18163
18214
  throw new Error("RTCPeerConnection class not found. WebRTC must be enabled.");
@@ -18165,12 +18216,12 @@ Found: ${e2.toString().split("\n")[0]}
18165
18216
  });
18166
18217
  }
18167
18218
  closeConnections(e2) {
18168
- return $(this, void 0, void 0, function* () {
18169
- const t2 = yield b(e2.map((e3) => $(this, void 0, void 0, function* () {
18219
+ return J(this, void 0, void 0, function* () {
18220
+ const t2 = yield v(e2.map((e3) => J(this, void 0, void 0, function* () {
18170
18221
  yield e3.close();
18171
18222
  })));
18172
18223
  for (const e3 of t2)
18173
- _.a.warn("Request to close session failed", { error: e3 });
18224
+ w.a.warn("Request to close session failed", { error: e3 });
18174
18225
  });
18175
18226
  }
18176
18227
  getActiveConnection(e2) {
@@ -18178,21 +18229,21 @@ Found: ${e2.toString().split("\n")[0]}
18178
18229
  }
18179
18230
  update() {
18180
18231
  var e2;
18181
- return $(this, void 0, void 0, function* () {
18232
+ return J(this, void 0, void 0, function* () {
18182
18233
  if (this.localConnections = this.localConnections.filter((e3) => e3.isActive()), this.config.lanOnlyMode)
18183
18234
  return;
18184
18235
  const { signalingClient: t2 } = this.config;
18185
18236
  if (!this.localPeer || !this.receiveSignalStream || !this.iceServers)
18186
18237
  return this.localPeer || (yield this.createPeer()), this.iceServers || (yield this.updateIceServers()), void (this.receiveSignalStream || (yield this.createReceiveSignalStream()));
18187
18238
  yield this.closeConnections(this.connections.filter((e3) => !e3.isActive())), this.connections = this.connections.filter((e3) => e3.isActive());
18188
- const { localPeer: r2 } = this, n2 = this.connections.filter((e3) => e3.getSessionId).map((e3) => v(e3.getSessionId()));
18239
+ const { localPeer: r2 } = this, n2 = this.connections.filter((e3) => e3.getSessionId).map((e3) => S(e3.getSessionId()));
18189
18240
  r2.setSessionIdsList(n2);
18190
- const o2 = new M.RefreshPeerRequest();
18241
+ const o2 = new N.RefreshPeerRequest();
18191
18242
  o2.setPeer(r2);
18192
18243
  try {
18193
18244
  yield t2.refreshPeer(o2, yield this.getMetadata({}));
18194
18245
  } catch (e3) {
18195
- e3.code === P.StatusCode.NOT_FOUND ? (_.a.warn("Peer expired, creating new peer", { peerId: r2.getPeerId() }), yield this.reset()) : _.a.warn("Error calling RefreshPeer", { error: e3 });
18246
+ e3.code === L.StatusCode.NOT_FOUND ? (w.a.warn("Peer expired, creating new peer", { peerId: r2.getPeerId() }), yield this.reset()) : w.a.warn("Error calling RefreshPeer", { error: e3 });
18196
18247
  }
18197
18248
  const i2 = yield this.getPeers();
18198
18249
  for (const t3 of this.connections)
@@ -18200,40 +18251,40 @@ Found: ${e2.toString().split("\n")[0]}
18200
18251
  });
18201
18252
  }
18202
18253
  reset() {
18203
- return $(this, void 0, void 0, function* () {
18254
+ return J(this, void 0, void 0, function* () {
18204
18255
  yield this.closeConnections(this.connections), this.connections = [], this.isOutgoingConnection = /* @__PURE__ */ new Map(), yield this.createPeer(), yield this.createReceiveSignalStream();
18205
18256
  });
18206
18257
  }
18207
18258
  updateIceServers() {
18208
- return $(this, void 0, void 0, function* () {
18259
+ return J(this, void 0, void 0, function* () {
18209
18260
  if (this.config.lanOnlyMode)
18210
18261
  return;
18211
18262
  const { iceServersLastUpdate: e2, iceServersTtl: t2 } = this, r2 = new Date().getTime();
18212
18263
  if (!e2 || r2 - e2 > t2)
18213
18264
  try {
18214
- const e3 = (yield this.config.signalingClient.getIceServers(new M.GetIceServersRequest(), yield this.getMetadata({}))).getIceServers();
18265
+ const e3 = (yield this.config.signalingClient.getIceServers(new N.GetIceServersRequest(), yield this.getMetadata({}))).getIceServers();
18215
18266
  this.iceServers = JSON.parse(e3), this.iceServersLastUpdate = r2;
18216
18267
  } catch (e3) {
18217
- _.a.warn("Error in updateIceServers", { error: e3 });
18268
+ w.a.warn("Error in updateIceServers", { error: e3 });
18218
18269
  }
18219
18270
  });
18220
18271
  }
18221
18272
  setupHandlers(e2) {
18222
18273
  const { peerConnection: t2 } = e2, r2 = e2.getSessionCreatedTimestamp();
18223
- t2.onconnectionstatechange = () => $(this, void 0, void 0, function* () {
18274
+ t2.onconnectionstatechange = () => J(this, void 0, void 0, function* () {
18224
18275
  const e3 = t2.connectionState;
18225
18276
  if (r2)
18226
18277
  switch (e3) {
18227
18278
  case "connected":
18228
- C.aggregate("rtc-connect-time", new Date().getTime() - r2);
18279
+ P.aggregate("rtc-connect-time", new Date().getTime() - r2);
18229
18280
  break;
18230
18281
  case "failed":
18231
- C.increment("rtc-connect-failed");
18282
+ P.increment("rtc-connect-failed");
18232
18283
  }
18233
18284
  });
18234
18285
  }
18235
18286
  getMetadata(e2) {
18236
- return $(this, void 0, void 0, function* () {
18287
+ return J(this, void 0, void 0, function* () {
18237
18288
  if (this.config.lanOnlyMode)
18238
18289
  throw new Error("getMetadata method cannot be called in local-only mode");
18239
18290
  const { getToken: t2 } = this.config, { grpcCallDeadline: r2 } = this, { hasDeadline: n2 } = e2, o2 = n2 === false ? void 0 : new Date().getTime() + r2;
@@ -18903,7 +18954,7 @@ class Device {
18903
18954
  throw new Error(`Realtime connection hasn't been started for ${this.id}`);
18904
18955
  }
18905
18956
  }
18906
- async startRealtimeConnection(sessionType) {
18957
+ async startRealtimeConnection() {
18907
18958
  if (!this.rtcClient) {
18908
18959
  const rtcClient = new dist.exports.RtcClient({
18909
18960
  signalingClient: new dist.exports.SignalingPromiseClient(FORMANT_API_URL, null, null),
@@ -18921,7 +18972,7 @@ class Device {
18921
18972
  throw new Error("Cannot find peer, is the robot offline?");
18922
18973
  }
18923
18974
  this.remoteDevicePeerId = devicePeer.id;
18924
- await rtcClient.connect(this.remoteDevicePeerId, void 0, sessionType);
18975
+ await rtcClient.connect(this.remoteDevicePeerId, void 0);
18925
18976
  while (rtcClient.getConnectionStatus(this.remoteDevicePeerId) !== "connected") {
18926
18977
  await delay(100);
18927
18978
  }