@formant/data-sdk 1.0.0-rc.0 → 1.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- var sn = Object.defineProperty;
2
- var ln = (e, t, n) => t in e ? sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Re = (e, t, n) => (ln(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var ln = Object.defineProperty;
2
+ var un = (e, t, n) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Te = (e, t, n) => (un(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import * as dateFns from "date-fns";
5
5
  import { startOfMinute, addMinutes, roundToNearestMinutes, addSeconds } from "date-fns";
6
6
  const global$1 = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {};
@@ -960,65 +960,65 @@ var dist = { exports: {} };
960
960
  n.d(t, "a", function() {
961
961
  return G;
962
962
  });
963
- function r(T, k) {
964
- if (k.length < T)
965
- throw new TypeError(T + " argument" + (T > 1 ? "s" : "") + " required, but only " + k.length + " present");
963
+ function r(T, B) {
964
+ if (B.length < T)
965
+ throw new TypeError(T + " argument" + (T > 1 ? "s" : "") + " required, but only " + B.length + " present");
966
966
  }
967
967
  function i(T) {
968
968
  if (T === null || T === !0 || T === !1)
969
969
  return NaN;
970
- var k = Number(T);
971
- return isNaN(k) ? k : k < 0 ? Math.ceil(k) : Math.floor(k);
970
+ var B = Number(T);
971
+ return isNaN(B) ? B : B < 0 ? Math.ceil(B) : Math.floor(B);
972
972
  }
973
973
  var s = { dateTimeDelimiter: /[T ]/, timeZoneDelimiter: /[Z ]/i, timezone: /([Z+-].*)$/ }, l = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, o = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, c = /^([+-])(\d{2})(?::?(\d{2}))?$/;
974
974
  function u(T) {
975
- var k, J = {}, K = T.split(s.dateTimeDelimiter);
975
+ var B, J = {}, K = T.split(s.dateTimeDelimiter);
976
976
  if (K.length > 2)
977
977
  return J;
978
- if (/:/.test(K[0]) ? k = K[0] : (J.date = K[0], k = K[1], s.timeZoneDelimiter.test(J.date) && (J.date = T.split(s.timeZoneDelimiter)[0], k = T.substr(J.date.length, T.length))), k) {
979
- var re = s.timezone.exec(k);
980
- re ? (J.time = k.replace(re[1], ""), J.timezone = re[1]) : J.time = k;
978
+ if (/:/.test(K[0]) ? B = K[0] : (J.date = K[0], B = K[1], s.timeZoneDelimiter.test(J.date) && (J.date = T.split(s.timeZoneDelimiter)[0], B = T.substr(J.date.length, T.length))), B) {
979
+ var re = s.timezone.exec(B);
980
+ re ? (J.time = B.replace(re[1], ""), J.timezone = re[1]) : J.time = B;
981
981
  }
982
982
  return J;
983
983
  }
984
- function f(T, k) {
985
- var J = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + k) + "})|(\\d{2}|[+-]\\d{" + (2 + k) + "})$)"), K = T.match(J);
984
+ function f(T, B) {
985
+ var J = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + B) + "})|(\\d{2}|[+-]\\d{" + (2 + B) + "})$)"), K = T.match(J);
986
986
  if (!K)
987
987
  return { year: NaN, restDateString: "" };
988
988
  var re = K[1] ? parseInt(K[1]) : null, se = K[2] ? parseInt(K[2]) : null;
989
989
  return { year: se === null ? re : 100 * se, restDateString: T.slice((K[1] || K[2]).length) };
990
990
  }
991
- function E(T, k) {
992
- if (k === null)
991
+ function E(T, B) {
992
+ if (B === null)
993
993
  return /* @__PURE__ */ new Date(NaN);
994
994
  var J = T.match(l);
995
995
  if (!J)
996
996
  return /* @__PURE__ */ new Date(NaN);
997
997
  var K = !!J[4], re = w(J[1]), se = w(J[2]) - 1, fe = w(J[3]), ve = w(J[4]), Ce = w(J[5]) - 1;
998
998
  if (K)
999
- return function(Ie, Te, Oe) {
1000
- return Te >= 1 && Te <= 53 && Oe >= 0 && Oe <= 6;
1001
- }(0, ve, Ce) ? function(Ie, Te, Oe) {
999
+ return function(Ie, Re, Oe) {
1000
+ return Re >= 1 && Re <= 53 && Oe >= 0 && Oe <= 6;
1001
+ }(0, ve, Ce) ? function(Ie, Re, Oe) {
1002
1002
  var Pe = /* @__PURE__ */ new Date(0);
1003
1003
  Pe.setUTCFullYear(Ie, 0, 4);
1004
- var Ze = Pe.getUTCDay() || 7, et = 7 * (Te - 1) + Oe + 1 - Ze;
1004
+ var Ze = Pe.getUTCDay() || 7, et = 7 * (Re - 1) + Oe + 1 - Ze;
1005
1005
  return Pe.setUTCDate(Pe.getUTCDate() + et), Pe;
1006
- }(k, ve, Ce) : /* @__PURE__ */ new Date(NaN);
1006
+ }(B, ve, Ce) : /* @__PURE__ */ new Date(NaN);
1007
1007
  var Se = /* @__PURE__ */ new Date(0);
1008
- return function(Ie, Te, Oe) {
1009
- return Te >= 0 && Te <= 11 && Oe >= 1 && Oe <= (R[Te] || (j(Ie) ? 29 : 28));
1010
- }(k, se, fe) && function(Ie, Te) {
1011
- return Te >= 1 && Te <= (j(Ie) ? 366 : 365);
1012
- }(k, re) ? (Se.setUTCFullYear(k, se, Math.max(re, fe)), Se) : /* @__PURE__ */ new Date(NaN);
1008
+ return function(Ie, Re, Oe) {
1009
+ return Re >= 0 && Re <= 11 && Oe >= 1 && Oe <= (R[Re] || (j(Ie) ? 29 : 28));
1010
+ }(B, se, fe) && function(Ie, Re) {
1011
+ return Re >= 1 && Re <= (j(Ie) ? 366 : 365);
1012
+ }(B, re) ? (Se.setUTCFullYear(B, se, Math.max(re, fe)), Se) : /* @__PURE__ */ new Date(NaN);
1013
1013
  }
1014
1014
  function w(T) {
1015
1015
  return T ? parseInt(T) : 1;
1016
1016
  }
1017
1017
  function h(T) {
1018
- var k = T.match(o);
1019
- if (!k)
1018
+ var B = T.match(o);
1019
+ if (!B)
1020
1020
  return NaN;
1021
- var J = g(k[1]), K = g(k[2]), re = g(k[3]);
1021
+ var J = g(B[1]), K = g(B[2]), re = g(B[3]);
1022
1022
  return function(se, fe, ve) {
1023
1023
  return se === 24 ? fe === 0 && ve === 0 : ve >= 0 && ve < 60 && fe >= 0 && fe < 60 && se >= 0 && se < 25;
1024
1024
  }(J, K, re) ? 36e5 * J + 6e4 * K + 1e3 * re : NaN;
@@ -1029,10 +1029,10 @@ var dist = { exports: {} };
1029
1029
  function b(T) {
1030
1030
  if (T === "Z")
1031
1031
  return 0;
1032
- var k = T.match(c);
1033
- if (!k)
1032
+ var B = T.match(c);
1033
+ if (!B)
1034
1034
  return 0;
1035
- var J = k[1] === "+" ? -1 : 1, K = parseInt(k[2]), re = k[3] && parseInt(k[3]) || 0;
1035
+ var J = B[1] === "+" ? -1 : 1, K = parseInt(B[2]), re = B[3] && parseInt(B[3]) || 0;
1036
1036
  return function(se, fe) {
1037
1037
  return fe >= 0 && fe <= 59;
1038
1038
  }(0, re) ? J * (36e5 * K + 6e4 * re) : NaN;
@@ -1046,11 +1046,11 @@ var dist = { exports: {} };
1046
1046
  }
1047
1047
  function M(T) {
1048
1048
  r(1, arguments);
1049
- var k = Object.prototype.toString.call(T);
1050
- return T instanceof Date || typeof T == "object" && k === "[object Date]" ? new Date(T.getTime()) : typeof T == "number" || k === "[object Number]" ? new Date(T) : (typeof T != "string" && k !== "[object String]" || typeof console > "u" || (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
1049
+ var B = Object.prototype.toString.call(T);
1050
+ return T instanceof Date || typeof T == "object" && B === "[object Date]" ? new Date(T.getTime()) : typeof T == "number" || B === "[object Number]" ? new Date(T) : (typeof T != "string" && B !== "[object String]" || typeof console > "u" || (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
1051
1051
  }
1052
1052
  function A(T) {
1053
- const k = function(J, K) {
1053
+ const B = function(J, K) {
1054
1054
  var re;
1055
1055
  r(1, arguments);
1056
1056
  var se = i((re = K == null ? void 0 : K.additionalDigits) !== null && re !== void 0 ? re : 2);
@@ -1065,52 +1065,52 @@ var dist = { exports: {} };
1065
1065
  }
1066
1066
  if (!fe || isNaN(fe.getTime()))
1067
1067
  return /* @__PURE__ */ new Date(NaN);
1068
- var Se, Ie = fe.getTime(), Te = 0;
1069
- if (ve.time && (Te = h(ve.time), isNaN(Te)))
1068
+ var Se, Ie = fe.getTime(), Re = 0;
1069
+ if (ve.time && (Re = h(ve.time), isNaN(Re)))
1070
1070
  return /* @__PURE__ */ new Date(NaN);
1071
1071
  if (!ve.timezone) {
1072
- var Oe = new Date(Ie + Te), Pe = /* @__PURE__ */ new Date(0);
1072
+ var Oe = new Date(Ie + Re), Pe = /* @__PURE__ */ new Date(0);
1073
1073
  return Pe.setFullYear(Oe.getUTCFullYear(), Oe.getUTCMonth(), Oe.getUTCDate()), Pe.setHours(Oe.getUTCHours(), Oe.getUTCMinutes(), Oe.getUTCSeconds(), Oe.getUTCMilliseconds()), Pe;
1074
1074
  }
1075
- return Se = b(ve.timezone), isNaN(Se) ? /* @__PURE__ */ new Date(NaN) : new Date(Ie + Te + Se);
1075
+ return Se = b(ve.timezone), isNaN(Se) ? /* @__PURE__ */ new Date(NaN) : new Date(Ie + Re + Se);
1076
1076
  }(T);
1077
1077
  if (!function(J) {
1078
1078
  if (r(1, arguments), !F(J) && typeof J != "number")
1079
1079
  return !1;
1080
1080
  var K = M(J);
1081
1081
  return !isNaN(Number(K));
1082
- }(k))
1082
+ }(B))
1083
1083
  throw new Error(`Invalid ISO 8601 date string (${T})`);
1084
- return k;
1084
+ return B;
1085
1085
  }
1086
1086
  const d = Math.pow(2, 20), C = d;
1087
1087
  var $ = n(14), q = n.n($), y = n(18), m = n(56), I = n(19), _ = n(4), L = n(34);
1088
1088
  function W(T) {
1089
1089
  return q()(T, { cycles: !0 });
1090
1090
  }
1091
- var B = function(T, k) {
1091
+ var k = function(T, B) {
1092
1092
  var J = {};
1093
1093
  for (var K in T)
1094
- Object.prototype.hasOwnProperty.call(T, K) && k.indexOf(K) < 0 && (J[K] = T[K]);
1094
+ Object.prototype.hasOwnProperty.call(T, K) && B.indexOf(K) < 0 && (J[K] = T[K]);
1095
1095
  if (T != null && typeof Object.getOwnPropertySymbols == "function") {
1096
1096
  var re = 0;
1097
1097
  for (K = Object.getOwnPropertySymbols(T); re < K.length; re++)
1098
- k.indexOf(K[re]) < 0 && Object.prototype.propertyIsEnumerable.call(T, K[re]) && (J[K[re]] = T[K[re]]);
1098
+ B.indexOf(K[re]) < 0 && Object.prototype.propertyIsEnumerable.call(T, K[re]) && (J[K[re]] = T[K[re]]);
1099
1099
  }
1100
1100
  return J;
1101
1101
  };
1102
- function N(T, k = {}) {
1103
- const J = (ve) => k.redacted !== !1 ? Object(L.a)(ve) : ve;
1102
+ function N(T, B = {}) {
1103
+ const J = (ve) => B.redacted !== !1 ? Object(L.a)(ve) : ve;
1104
1104
  if (!T.stack)
1105
1105
  return { message: W(J(T)) };
1106
- const { name: K, message: re, stack: se } = T, fe = B(T, ["name", "message", "stack"]);
1106
+ const { name: K, message: re, stack: se } = T, fe = k(T, ["name", "message", "stack"]);
1107
1107
  return { name: K, message: re !== void 0 ? re : W(J(T)), stack: se, meta: fe && Object.keys(fe).length === 0 ? void 0 : J(fe) };
1108
1108
  }
1109
- function P(T, k = {}) {
1110
- const { message: J, stack: K, meta: re } = N(T, k);
1109
+ function P(T, B = {}) {
1110
+ const { message: J, stack: K, meta: re } = N(T, B);
1111
1111
  return `${K || J || ""}${re && Object.keys(re).length > 0 ? ` -- ${W(re)}` : ""}`;
1112
1112
  }
1113
- var z = n(39), O = n(103), p = n.n(O), U = function(T, k, J, K) {
1113
+ var z = n(39), O = n(103), p = n.n(O), U = function(T, B, J, K) {
1114
1114
  return new (J || (J = Promise))(function(re, se) {
1115
1115
  function fe(Se) {
1116
1116
  try {
@@ -1128,36 +1128,36 @@ var dist = { exports: {} };
1128
1128
  }
1129
1129
  function Ce(Se) {
1130
1130
  var Ie;
1131
- Se.done ? re(Se.value) : (Ie = Se.value, Ie instanceof J ? Ie : new J(function(Te) {
1132
- Te(Ie);
1131
+ Se.done ? re(Se.value) : (Ie = Se.value, Ie instanceof J ? Ie : new J(function(Re) {
1132
+ Re(Ie);
1133
1133
  })).then(fe, ve);
1134
1134
  }
1135
- Ce((K = K.apply(T, k || [])).next());
1135
+ Ce((K = K.apply(T, B || [])).next());
1136
1136
  });
1137
- }, V = function(T, k) {
1137
+ }, V = function(T, B) {
1138
1138
  var J = {};
1139
1139
  for (var K in T)
1140
- Object.prototype.hasOwnProperty.call(T, K) && k.indexOf(K) < 0 && (J[K] = T[K]);
1140
+ Object.prototype.hasOwnProperty.call(T, K) && B.indexOf(K) < 0 && (J[K] = T[K]);
1141
1141
  if (T != null && typeof Object.getOwnPropertySymbols == "function") {
1142
1142
  var re = 0;
1143
1143
  for (K = Object.getOwnPropertySymbols(T); re < K.length; re++)
1144
- k.indexOf(K[re]) < 0 && Object.prototype.propertyIsEnumerable.call(T, K[re]) && (J[K[re]] = T[K[re]]);
1144
+ B.indexOf(K[re]) < 0 && Object.prototype.propertyIsEnumerable.call(T, K[re]) && (J[K[re]] = T[K[re]]);
1145
1145
  }
1146
1146
  return J;
1147
1147
  };
1148
1148
  class Q extends p.a {
1149
- constructor(k, J) {
1150
- super(), this.endpoint = k, this.metadata = J, this.logClient = this.getLogClient();
1149
+ constructor(B, J) {
1150
+ super(), this.endpoint = B, this.metadata = J, this.logClient = this.getLogClient();
1151
1151
  }
1152
1152
  getLogClient() {
1153
1153
  return U(this, void 0, void 0, function* () {
1154
- const { LogClient: k } = yield Promise.resolve().then(n.bind(null, 231));
1155
- return new k(this.endpoint);
1154
+ const { LogClient: B } = yield Promise.resolve().then(n.bind(null, 231));
1155
+ return new B(this.endpoint);
1156
1156
  });
1157
1157
  }
1158
- log(k, J) {
1158
+ log(B, J) {
1159
1159
  return U(this, void 0, void 0, function* () {
1160
- const { level: K, message: re, error: se } = k, fe = V(k, ["level", "message", "error"]);
1160
+ const { level: K, message: re, error: se } = B, fe = V(B, ["level", "message", "error"]);
1161
1161
  this.emit("logged");
1162
1162
  try {
1163
1163
  yield (yield this.logClient).log([{ timestamp: (/* @__PURE__ */ new Date()).toISOString(), level: K, message: `${re}`.substring(0, 1e3), error: se !== void 0 ? N(se) : void 0, meta: Object.assign(Object.assign({}, fe), this.metadata) }]);
@@ -1168,24 +1168,24 @@ var dist = { exports: {} };
1168
1168
  });
1169
1169
  }
1170
1170
  }
1171
- var ee = function(T, k) {
1171
+ var ee = function(T, B) {
1172
1172
  var J = {};
1173
1173
  for (var K in T)
1174
- Object.prototype.hasOwnProperty.call(T, K) && k.indexOf(K) < 0 && (J[K] = T[K]);
1174
+ Object.prototype.hasOwnProperty.call(T, K) && B.indexOf(K) < 0 && (J[K] = T[K]);
1175
1175
  if (T != null && typeof Object.getOwnPropertySymbols == "function") {
1176
1176
  var re = 0;
1177
1177
  for (K = Object.getOwnPropertySymbols(T); re < K.length; re++)
1178
- k.indexOf(K[re]) < 0 && Object.prototype.propertyIsEnumerable.call(T, K[re]) && (J[K[re]] = T[K[re]]);
1178
+ B.indexOf(K[re]) < 0 && Object.prototype.propertyIsEnumerable.call(T, K[re]) && (J[K[re]] = T[K[re]]);
1179
1179
  }
1180
1180
  return J;
1181
1181
  };
1182
1182
  const ne = { app: _.a, namespace: _.i, buildTag: _.b, instanceId: z.a }, Y = _.e ? I.format.printf((T) => {
1183
- var { timestamp: k, level: J, message: K, error: re } = T, se = ee(T, ["timestamp", "level", "message", "error"]);
1184
- const fe = Object.assign(Object.assign({ timestamp: k ? A(k).getTime() : (/* @__PURE__ */ new Date()).getTime(), level: J.toUpperCase(), message: K }, re ? { error: N(re) } : {}), { meta: Object.assign(Object.assign({}, ne), se) });
1183
+ var { timestamp: B, level: J, message: K, error: re } = T, se = ee(T, ["timestamp", "level", "message", "error"]);
1184
+ const fe = Object.assign(Object.assign({ timestamp: B ? A(B).getTime() : (/* @__PURE__ */ new Date()).getTime(), level: J.toUpperCase(), message: K }, re ? { error: N(re) } : {}), { meta: Object.assign(Object.assign({}, ne), se) });
1185
1185
  return q()(fe, { cycles: !0 });
1186
1186
  }) : I.format.printf((T) => {
1187
- var { timestamp: k, level: J, message: K, error: re } = T, se = ee(T, ["timestamp", "level", "message", "error"]);
1188
- let fe = `${k || (/* @__PURE__ */ new Date()).toISOString()} ${J.toUpperCase()}: ${K} `;
1187
+ var { timestamp: B, level: J, message: K, error: re } = T, se = ee(T, ["timestamp", "level", "message", "error"]);
1188
+ let fe = `${B || (/* @__PURE__ */ new Date()).toISOString()} ${J.toUpperCase()}: ${K} `;
1189
1189
  return Object.keys(se).length > 0 && (fe += q()(se, { cycles: !0 })), re && (fe += `
1190
1190
  ${P(re)}`), fe;
1191
1191
  }), G = Object(I.createLogger)({ level: _.f });
@@ -1193,7 +1193,7 @@ ${P(re)}`), fe;
1193
1193
  T.silent = !_.g;
1194
1194
  }), _.d && G.add(new Q(_.d, ne)), _.h) {
1195
1195
  const T = m.resolve(y.tmpdir(), `silly-${_.a}.log`);
1196
- G.debug("Logging silly logs to file", { filename: T }), G.add(new I.transports.File({ filename: T, maxsize: 1 * C, maxFiles: 10, format: I.format.combine((S = "silly", Object(I.format)((k) => k.level === S && k)()), Y), level: "silly" }));
1196
+ G.debug("Logging silly logs to file", { filename: T }), G.add(new I.transports.File({ filename: T, maxsize: 1 * C, maxFiles: 10, format: I.format.combine((S = "silly", Object(I.format)((B) => B.level === S && B)()), Y), level: "silly" }));
1197
1197
  }
1198
1198
  var S;
1199
1199
  }, function(e, t, n) {
@@ -1330,17 +1330,17 @@ ${P(re)}`), fe;
1330
1330
  throw new RangeError("Invalid typed array length");
1331
1331
  return u.TYPED_ARRAY_SUPPORT ? (S = new Uint8Array(T)).__proto__ = u.prototype : (S === null && (S = new u(T)), S.length = T), S;
1332
1332
  }
1333
- function u(S, T, k) {
1333
+ function u(S, T, B) {
1334
1334
  if (!(u.TYPED_ARRAY_SUPPORT || this instanceof u))
1335
- return new u(S, T, k);
1335
+ return new u(S, T, B);
1336
1336
  if (typeof S == "number") {
1337
1337
  if (typeof T == "string")
1338
1338
  throw new Error("If encoding is specified then the first argument must be a string");
1339
1339
  return w(this, S);
1340
1340
  }
1341
- return f(this, S, T, k);
1341
+ return f(this, S, T, B);
1342
1342
  }
1343
- function f(S, T, k, J) {
1343
+ function f(S, T, B, J) {
1344
1344
  if (typeof T == "number")
1345
1345
  throw new TypeError('"value" argument must not be a number');
1346
1346
  return typeof ArrayBuffer < "u" && T instanceof ArrayBuffer ? function(K, re, se, fe) {
@@ -1349,12 +1349,12 @@ ${P(re)}`), fe;
1349
1349
  if (re.byteLength < se + (fe || 0))
1350
1350
  throw new RangeError("'length' is out of bounds");
1351
1351
  return re = se === void 0 && fe === void 0 ? new Uint8Array(re) : fe === void 0 ? new Uint8Array(re, se) : new Uint8Array(re, se, fe), u.TYPED_ARRAY_SUPPORT ? (K = re).__proto__ = u.prototype : K = h(K, re), K;
1352
- }(S, T, k, J) : typeof T == "string" ? function(K, re, se) {
1352
+ }(S, T, B, J) : typeof T == "string" ? function(K, re, se) {
1353
1353
  if (typeof se == "string" && se !== "" || (se = "utf8"), !u.isEncoding(se))
1354
1354
  throw new TypeError('"encoding" must be a valid string encoding');
1355
1355
  var fe = 0 | b(re, se), ve = (K = c(K, fe)).write(re, se);
1356
1356
  return ve !== fe && (K = K.slice(0, ve)), K;
1357
- }(S, T, k) : function(K, re) {
1357
+ }(S, T, B) : function(K, re) {
1358
1358
  if (u.isBuffer(re)) {
1359
1359
  var se = 0 | g(re.length);
1360
1360
  return (K = c(K, se)).length === 0 || re.copy(K, 0, 0, se), K;
@@ -1377,14 +1377,14 @@ ${P(re)}`), fe;
1377
1377
  }
1378
1378
  function w(S, T) {
1379
1379
  if (E(T), S = c(S, T < 0 ? 0 : 0 | g(T)), !u.TYPED_ARRAY_SUPPORT)
1380
- for (var k = 0; k < T; ++k)
1381
- S[k] = 0;
1380
+ for (var B = 0; B < T; ++B)
1381
+ S[B] = 0;
1382
1382
  return S;
1383
1383
  }
1384
1384
  function h(S, T) {
1385
- var k = T.length < 0 ? 0 : 0 | g(T.length);
1386
- S = c(S, k);
1387
- for (var J = 0; J < k; J += 1)
1385
+ var B = T.length < 0 ? 0 : 0 | g(T.length);
1386
+ S = c(S, B);
1387
+ for (var J = 0; J < B; J += 1)
1388
1388
  S[J] = 255 & T[J];
1389
1389
  return S;
1390
1390
  }
@@ -1399,15 +1399,15 @@ ${P(re)}`), fe;
1399
1399
  if (typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(S) || S instanceof ArrayBuffer))
1400
1400
  return S.byteLength;
1401
1401
  typeof S != "string" && (S = "" + S);
1402
- var k = S.length;
1403
- if (k === 0)
1402
+ var B = S.length;
1403
+ if (B === 0)
1404
1404
  return 0;
1405
1405
  for (var J = !1; ; )
1406
1406
  switch (T) {
1407
1407
  case "ascii":
1408
1408
  case "latin1":
1409
1409
  case "binary":
1410
- return k;
1410
+ return B;
1411
1411
  case "utf8":
1412
1412
  case "utf-8":
1413
1413
  case void 0:
@@ -1416,9 +1416,9 @@ ${P(re)}`), fe;
1416
1416
  case "ucs-2":
1417
1417
  case "utf16le":
1418
1418
  case "utf-16le":
1419
- return 2 * k;
1419
+ return 2 * B;
1420
1420
  case "hex":
1421
- return k >>> 1;
1421
+ return B >>> 1;
1422
1422
  case "base64":
1423
1423
  return Y(S).length;
1424
1424
  default:
@@ -1427,79 +1427,79 @@ ${P(re)}`), fe;
1427
1427
  T = ("" + T).toLowerCase(), J = !0;
1428
1428
  }
1429
1429
  }
1430
- function R(S, T, k) {
1430
+ function R(S, T, B) {
1431
1431
  var J = !1;
1432
- if ((T === void 0 || T < 0) && (T = 0), T > this.length || ((k === void 0 || k > this.length) && (k = this.length), k <= 0) || (k >>>= 0) <= (T >>>= 0))
1432
+ if ((T === void 0 || T < 0) && (T = 0), T > this.length || ((B === void 0 || B > this.length) && (B = this.length), B <= 0) || (B >>>= 0) <= (T >>>= 0))
1433
1433
  return "";
1434
1434
  for (S || (S = "utf8"); ; )
1435
1435
  switch (S) {
1436
1436
  case "hex":
1437
- return W(this, T, k);
1437
+ return W(this, T, B);
1438
1438
  case "utf8":
1439
1439
  case "utf-8":
1440
- return I(this, T, k);
1440
+ return I(this, T, B);
1441
1441
  case "ascii":
1442
- return _(this, T, k);
1442
+ return _(this, T, B);
1443
1443
  case "latin1":
1444
1444
  case "binary":
1445
- return L(this, T, k);
1445
+ return L(this, T, B);
1446
1446
  case "base64":
1447
- return m(this, T, k);
1447
+ return m(this, T, B);
1448
1448
  case "ucs2":
1449
1449
  case "ucs-2":
1450
1450
  case "utf16le":
1451
1451
  case "utf-16le":
1452
- return B(this, T, k);
1452
+ return k(this, T, B);
1453
1453
  default:
1454
1454
  if (J)
1455
1455
  throw new TypeError("Unknown encoding: " + S);
1456
1456
  S = (S + "").toLowerCase(), J = !0;
1457
1457
  }
1458
1458
  }
1459
- function j(S, T, k) {
1459
+ function j(S, T, B) {
1460
1460
  var J = S[T];
1461
- S[T] = S[k], S[k] = J;
1461
+ S[T] = S[B], S[B] = J;
1462
1462
  }
1463
- function F(S, T, k, J, K) {
1463
+ function F(S, T, B, J, K) {
1464
1464
  if (S.length === 0)
1465
1465
  return -1;
1466
- if (typeof k == "string" ? (J = k, k = 0) : k > 2147483647 ? k = 2147483647 : k < -2147483648 && (k = -2147483648), k = +k, isNaN(k) && (k = K ? 0 : S.length - 1), k < 0 && (k = S.length + k), k >= S.length) {
1466
+ if (typeof B == "string" ? (J = B, B = 0) : B > 2147483647 ? B = 2147483647 : B < -2147483648 && (B = -2147483648), B = +B, isNaN(B) && (B = K ? 0 : S.length - 1), B < 0 && (B = S.length + B), B >= S.length) {
1467
1467
  if (K)
1468
1468
  return -1;
1469
- k = S.length - 1;
1470
- } else if (k < 0) {
1469
+ B = S.length - 1;
1470
+ } else if (B < 0) {
1471
1471
  if (!K)
1472
1472
  return -1;
1473
- k = 0;
1473
+ B = 0;
1474
1474
  }
1475
1475
  if (typeof T == "string" && (T = u.from(T, J)), u.isBuffer(T))
1476
- return T.length === 0 ? -1 : M(S, T, k, J, K);
1476
+ return T.length === 0 ? -1 : M(S, T, B, J, K);
1477
1477
  if (typeof T == "number")
1478
- return T &= 255, u.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? K ? Uint8Array.prototype.indexOf.call(S, T, k) : Uint8Array.prototype.lastIndexOf.call(S, T, k) : M(S, [T], k, J, K);
1478
+ return T &= 255, u.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? K ? Uint8Array.prototype.indexOf.call(S, T, B) : Uint8Array.prototype.lastIndexOf.call(S, T, B) : M(S, [T], B, J, K);
1479
1479
  throw new TypeError("val must be string, number or Buffer");
1480
1480
  }
1481
- function M(S, T, k, J, K) {
1481
+ function M(S, T, B, J, K) {
1482
1482
  var re, se = 1, fe = S.length, ve = T.length;
1483
1483
  if (J !== void 0 && ((J = String(J).toLowerCase()) === "ucs2" || J === "ucs-2" || J === "utf16le" || J === "utf-16le")) {
1484
1484
  if (S.length < 2 || T.length < 2)
1485
1485
  return -1;
1486
- se = 2, fe /= 2, ve /= 2, k /= 2;
1486
+ se = 2, fe /= 2, ve /= 2, B /= 2;
1487
1487
  }
1488
1488
  function Ce(Oe, Pe) {
1489
1489
  return se === 1 ? Oe[Pe] : Oe.readUInt16BE(Pe * se);
1490
1490
  }
1491
1491
  if (K) {
1492
1492
  var Se = -1;
1493
- for (re = k; re < fe; re++)
1493
+ for (re = B; re < fe; re++)
1494
1494
  if (Ce(S, re) === Ce(T, Se === -1 ? 0 : re - Se)) {
1495
1495
  if (Se === -1 && (Se = re), re - Se + 1 === ve)
1496
1496
  return Se * se;
1497
1497
  } else
1498
1498
  Se !== -1 && (re -= re - Se), Se = -1;
1499
1499
  } else
1500
- for (k + ve > fe && (k = fe - ve), re = k; re >= 0; re--) {
1501
- for (var Ie = !0, Te = 0; Te < ve; Te++)
1502
- if (Ce(S, re + Te) !== Ce(T, Te)) {
1500
+ for (B + ve > fe && (B = fe - ve), re = B; re >= 0; re--) {
1501
+ for (var Ie = !0, Re = 0; Re < ve; Re++)
1502
+ if (Ce(S, re + Re) !== Ce(T, Re)) {
1503
1503
  Ie = !1;
1504
1504
  break;
1505
1505
  }
@@ -1508,9 +1508,9 @@ ${P(re)}`), fe;
1508
1508
  }
1509
1509
  return -1;
1510
1510
  }
1511
- function A(S, T, k, J) {
1512
- k = Number(k) || 0;
1513
- var K = S.length - k;
1511
+ function A(S, T, B, J) {
1512
+ B = Number(B) || 0;
1513
+ var K = S.length - B;
1514
1514
  J ? (J = Number(J)) > K && (J = K) : J = K;
1515
1515
  var re = T.length;
1516
1516
  if (re % 2 != 0)
@@ -1520,41 +1520,41 @@ ${P(re)}`), fe;
1520
1520
  var fe = parseInt(T.substr(2 * se, 2), 16);
1521
1521
  if (isNaN(fe))
1522
1522
  return se;
1523
- S[k + se] = fe;
1523
+ S[B + se] = fe;
1524
1524
  }
1525
1525
  return se;
1526
1526
  }
1527
- function d(S, T, k, J) {
1528
- return G(ne(T, S.length - k), S, k, J);
1527
+ function d(S, T, B, J) {
1528
+ return G(ne(T, S.length - B), S, B, J);
1529
1529
  }
1530
- function C(S, T, k, J) {
1530
+ function C(S, T, B, J) {
1531
1531
  return G(function(K) {
1532
1532
  for (var re = [], se = 0; se < K.length; ++se)
1533
1533
  re.push(255 & K.charCodeAt(se));
1534
1534
  return re;
1535
- }(T), S, k, J);
1535
+ }(T), S, B, J);
1536
1536
  }
1537
- function $(S, T, k, J) {
1538
- return C(S, T, k, J);
1537
+ function $(S, T, B, J) {
1538
+ return C(S, T, B, J);
1539
1539
  }
1540
- function q(S, T, k, J) {
1541
- return G(Y(T), S, k, J);
1540
+ function q(S, T, B, J) {
1541
+ return G(Y(T), S, B, J);
1542
1542
  }
1543
- function y(S, T, k, J) {
1543
+ function y(S, T, B, J) {
1544
1544
  return G(function(K, re) {
1545
1545
  for (var se, fe, ve, Ce = [], Se = 0; Se < K.length && !((re -= 2) < 0); ++Se)
1546
1546
  se = K.charCodeAt(Se), fe = se >> 8, ve = se % 256, Ce.push(ve), Ce.push(fe);
1547
1547
  return Ce;
1548
- }(T, S.length - k), S, k, J);
1548
+ }(T, S.length - B), S, B, J);
1549
1549
  }
1550
- function m(S, T, k) {
1551
- return T === 0 && k === S.length ? i.fromByteArray(S) : i.fromByteArray(S.slice(T, k));
1550
+ function m(S, T, B) {
1551
+ return T === 0 && B === S.length ? i.fromByteArray(S) : i.fromByteArray(S.slice(T, B));
1552
1552
  }
1553
- function I(S, T, k) {
1554
- k = Math.min(S.length, k);
1555
- for (var J = [], K = T; K < k; ) {
1553
+ function I(S, T, B) {
1554
+ B = Math.min(S.length, B);
1555
+ for (var J = [], K = T; K < B; ) {
1556
1556
  var re, se, fe, ve, Ce = S[K], Se = null, Ie = Ce > 239 ? 4 : Ce > 223 ? 3 : Ce > 191 ? 2 : 1;
1557
- if (K + Ie <= k)
1557
+ if (K + Ie <= B)
1558
1558
  switch (Ie) {
1559
1559
  case 1:
1560
1560
  Ce < 128 && (Se = Ce);
@@ -1570,12 +1570,12 @@ ${P(re)}`), fe;
1570
1570
  }
1571
1571
  Se === null ? (Se = 65533, Ie = 1) : Se > 65535 && (Se -= 65536, J.push(Se >>> 10 & 1023 | 55296), Se = 56320 | 1023 & Se), J.push(Se), K += Ie;
1572
1572
  }
1573
- return function(Te) {
1574
- var Oe = Te.length;
1573
+ return function(Re) {
1574
+ var Oe = Re.length;
1575
1575
  if (Oe <= 4096)
1576
- return String.fromCharCode.apply(String, Te);
1576
+ return String.fromCharCode.apply(String, Re);
1577
1577
  for (var Pe = "", Ze = 0; Ze < Oe; )
1578
- Pe += String.fromCharCode.apply(String, Te.slice(Ze, Ze += 4096));
1578
+ Pe += String.fromCharCode.apply(String, Re.slice(Ze, Ze += 4096));
1579
1579
  return Pe;
1580
1580
  }(J);
1581
1581
  }
@@ -1592,12 +1592,12 @@ ${P(re)}`), fe;
1592
1592
  }
1593
1593
  }(), t.kMaxLength = o(), u.poolSize = 8192, u._augment = function(S) {
1594
1594
  return S.__proto__ = u.prototype, S;
1595
- }, u.from = function(S, T, k) {
1596
- return f(null, S, T, k);
1597
- }, u.TYPED_ARRAY_SUPPORT && (u.prototype.__proto__ = Uint8Array.prototype, u.__proto__ = Uint8Array, typeof Symbol < "u" && Symbol.species && u[Symbol.species] === u && Object.defineProperty(u, Symbol.species, { value: null, configurable: !0 })), u.alloc = function(S, T, k) {
1595
+ }, u.from = function(S, T, B) {
1596
+ return f(null, S, T, B);
1597
+ }, u.TYPED_ARRAY_SUPPORT && (u.prototype.__proto__ = Uint8Array.prototype, u.__proto__ = Uint8Array, typeof Symbol < "u" && Symbol.species && u[Symbol.species] === u && Object.defineProperty(u, Symbol.species, { value: null, configurable: !0 })), u.alloc = function(S, T, B) {
1598
1598
  return function(J, K, re, se) {
1599
1599
  return E(K), K <= 0 ? c(J, K) : re !== void 0 ? typeof se == "string" ? c(J, K).fill(re, se) : c(J, K).fill(re) : c(J, K);
1600
- }(null, S, T, k);
1600
+ }(null, S, T, B);
1601
1601
  }, u.allocUnsafe = function(S) {
1602
1602
  return w(null, S);
1603
1603
  }, u.allocUnsafeSlow = function(S) {
@@ -1609,12 +1609,12 @@ ${P(re)}`), fe;
1609
1609
  throw new TypeError("Arguments must be Buffers");
1610
1610
  if (S === T)
1611
1611
  return 0;
1612
- for (var k = S.length, J = T.length, K = 0, re = Math.min(k, J); K < re; ++K)
1612
+ for (var B = S.length, J = T.length, K = 0, re = Math.min(B, J); K < re; ++K)
1613
1613
  if (S[K] !== T[K]) {
1614
- k = S[K], J = T[K];
1614
+ B = S[K], J = T[K];
1615
1615
  break;
1616
1616
  }
1617
- return k < J ? -1 : J < k ? 1 : 0;
1617
+ return B < J ? -1 : J < B ? 1 : 0;
1618
1618
  }, u.isEncoding = function(S) {
1619
1619
  switch (String(S).toLowerCase()) {
1620
1620
  case "hex":
@@ -1637,13 +1637,13 @@ ${P(re)}`), fe;
1637
1637
  throw new TypeError('"list" argument must be an Array of Buffers');
1638
1638
  if (S.length === 0)
1639
1639
  return u.alloc(0);
1640
- var k;
1640
+ var B;
1641
1641
  if (T === void 0)
1642
- for (T = 0, k = 0; k < S.length; ++k)
1643
- T += S[k].length;
1642
+ for (T = 0, B = 0; B < S.length; ++B)
1643
+ T += S[B].length;
1644
1644
  var J = u.allocUnsafe(T), K = 0;
1645
- for (k = 0; k < S.length; ++k) {
1646
- var re = S[k];
1645
+ for (B = 0; B < S.length; ++B) {
1646
+ var re = S[B];
1647
1647
  if (!u.isBuffer(re))
1648
1648
  throw new TypeError('"list" argument must be an Array of Buffers');
1649
1649
  re.copy(J, K), K += re.length;
@@ -1680,64 +1680,64 @@ ${P(re)}`), fe;
1680
1680
  }, u.prototype.inspect = function() {
1681
1681
  var S = "", T = t.INSPECT_MAX_BYTES;
1682
1682
  return this.length > 0 && (S = this.toString("hex", 0, T).match(/.{2}/g).join(" "), this.length > T && (S += " ... ")), "<Buffer " + S + ">";
1683
- }, u.prototype.compare = function(S, T, k, J, K) {
1683
+ }, u.prototype.compare = function(S, T, B, J, K) {
1684
1684
  if (!u.isBuffer(S))
1685
1685
  throw new TypeError("Argument must be a Buffer");
1686
- if (T === void 0 && (T = 0), k === void 0 && (k = S ? S.length : 0), J === void 0 && (J = 0), K === void 0 && (K = this.length), T < 0 || k > S.length || J < 0 || K > this.length)
1686
+ if (T === void 0 && (T = 0), B === void 0 && (B = S ? S.length : 0), J === void 0 && (J = 0), K === void 0 && (K = this.length), T < 0 || B > S.length || J < 0 || K > this.length)
1687
1687
  throw new RangeError("out of range index");
1688
- if (J >= K && T >= k)
1688
+ if (J >= K && T >= B)
1689
1689
  return 0;
1690
1690
  if (J >= K)
1691
1691
  return -1;
1692
- if (T >= k)
1692
+ if (T >= B)
1693
1693
  return 1;
1694
1694
  if (this === S)
1695
1695
  return 0;
1696
- for (var re = (K >>>= 0) - (J >>>= 0), se = (k >>>= 0) - (T >>>= 0), fe = Math.min(re, se), ve = this.slice(J, K), Ce = S.slice(T, k), Se = 0; Se < fe; ++Se)
1696
+ for (var re = (K >>>= 0) - (J >>>= 0), se = (B >>>= 0) - (T >>>= 0), fe = Math.min(re, se), ve = this.slice(J, K), Ce = S.slice(T, B), Se = 0; Se < fe; ++Se)
1697
1697
  if (ve[Se] !== Ce[Se]) {
1698
1698
  re = ve[Se], se = Ce[Se];
1699
1699
  break;
1700
1700
  }
1701
1701
  return re < se ? -1 : se < re ? 1 : 0;
1702
- }, u.prototype.includes = function(S, T, k) {
1703
- return this.indexOf(S, T, k) !== -1;
1704
- }, u.prototype.indexOf = function(S, T, k) {
1705
- return F(this, S, T, k, !0);
1706
- }, u.prototype.lastIndexOf = function(S, T, k) {
1707
- return F(this, S, T, k, !1);
1708
- }, u.prototype.write = function(S, T, k, J) {
1702
+ }, u.prototype.includes = function(S, T, B) {
1703
+ return this.indexOf(S, T, B) !== -1;
1704
+ }, u.prototype.indexOf = function(S, T, B) {
1705
+ return F(this, S, T, B, !0);
1706
+ }, u.prototype.lastIndexOf = function(S, T, B) {
1707
+ return F(this, S, T, B, !1);
1708
+ }, u.prototype.write = function(S, T, B, J) {
1709
1709
  if (T === void 0)
1710
- J = "utf8", k = this.length, T = 0;
1711
- else if (k === void 0 && typeof T == "string")
1712
- J = T, k = this.length, T = 0;
1710
+ J = "utf8", B = this.length, T = 0;
1711
+ else if (B === void 0 && typeof T == "string")
1712
+ J = T, B = this.length, T = 0;
1713
1713
  else {
1714
1714
  if (!isFinite(T))
1715
1715
  throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
1716
- T |= 0, isFinite(k) ? (k |= 0, J === void 0 && (J = "utf8")) : (J = k, k = void 0);
1716
+ T |= 0, isFinite(B) ? (B |= 0, J === void 0 && (J = "utf8")) : (J = B, B = void 0);
1717
1717
  }
1718
1718
  var K = this.length - T;
1719
- if ((k === void 0 || k > K) && (k = K), S.length > 0 && (k < 0 || T < 0) || T > this.length)
1719
+ if ((B === void 0 || B > K) && (B = K), S.length > 0 && (B < 0 || T < 0) || T > this.length)
1720
1720
  throw new RangeError("Attempt to write outside buffer bounds");
1721
1721
  J || (J = "utf8");
1722
1722
  for (var re = !1; ; )
1723
1723
  switch (J) {
1724
1724
  case "hex":
1725
- return A(this, S, T, k);
1725
+ return A(this, S, T, B);
1726
1726
  case "utf8":
1727
1727
  case "utf-8":
1728
- return d(this, S, T, k);
1728
+ return d(this, S, T, B);
1729
1729
  case "ascii":
1730
- return C(this, S, T, k);
1730
+ return C(this, S, T, B);
1731
1731
  case "latin1":
1732
1732
  case "binary":
1733
- return $(this, S, T, k);
1733
+ return $(this, S, T, B);
1734
1734
  case "base64":
1735
- return q(this, S, T, k);
1735
+ return q(this, S, T, B);
1736
1736
  case "ucs2":
1737
1737
  case "ucs-2":
1738
1738
  case "utf16le":
1739
1739
  case "utf-16le":
1740
- return y(this, S, T, k);
1740
+ return y(this, S, T, B);
1741
1741
  default:
1742
1742
  if (re)
1743
1743
  throw new TypeError("Unknown encoding: " + J);
@@ -1746,86 +1746,86 @@ ${P(re)}`), fe;
1746
1746
  }, u.prototype.toJSON = function() {
1747
1747
  return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
1748
1748
  };
1749
- function _(S, T, k) {
1749
+ function _(S, T, B) {
1750
1750
  var J = "";
1751
- k = Math.min(S.length, k);
1752
- for (var K = T; K < k; ++K)
1751
+ B = Math.min(S.length, B);
1752
+ for (var K = T; K < B; ++K)
1753
1753
  J += String.fromCharCode(127 & S[K]);
1754
1754
  return J;
1755
1755
  }
1756
- function L(S, T, k) {
1756
+ function L(S, T, B) {
1757
1757
  var J = "";
1758
- k = Math.min(S.length, k);
1759
- for (var K = T; K < k; ++K)
1758
+ B = Math.min(S.length, B);
1759
+ for (var K = T; K < B; ++K)
1760
1760
  J += String.fromCharCode(S[K]);
1761
1761
  return J;
1762
1762
  }
1763
- function W(S, T, k) {
1763
+ function W(S, T, B) {
1764
1764
  var J = S.length;
1765
- (!T || T < 0) && (T = 0), (!k || k < 0 || k > J) && (k = J);
1766
- for (var K = "", re = T; re < k; ++re)
1765
+ (!T || T < 0) && (T = 0), (!B || B < 0 || B > J) && (B = J);
1766
+ for (var K = "", re = T; re < B; ++re)
1767
1767
  K += ee(S[re]);
1768
1768
  return K;
1769
1769
  }
1770
- function B(S, T, k) {
1771
- for (var J = S.slice(T, k), K = "", re = 0; re < J.length; re += 2)
1770
+ function k(S, T, B) {
1771
+ for (var J = S.slice(T, B), K = "", re = 0; re < J.length; re += 2)
1772
1772
  K += String.fromCharCode(J[re] + 256 * J[re + 1]);
1773
1773
  return K;
1774
1774
  }
1775
- function N(S, T, k) {
1775
+ function N(S, T, B) {
1776
1776
  if (S % 1 != 0 || S < 0)
1777
1777
  throw new RangeError("offset is not uint");
1778
- if (S + T > k)
1778
+ if (S + T > B)
1779
1779
  throw new RangeError("Trying to access beyond buffer length");
1780
1780
  }
1781
- function P(S, T, k, J, K, re) {
1781
+ function P(S, T, B, J, K, re) {
1782
1782
  if (!u.isBuffer(S))
1783
1783
  throw new TypeError('"buffer" argument must be a Buffer instance');
1784
1784
  if (T > K || T < re)
1785
1785
  throw new RangeError('"value" argument is out of bounds');
1786
- if (k + J > S.length)
1786
+ if (B + J > S.length)
1787
1787
  throw new RangeError("Index out of range");
1788
1788
  }
1789
- function z(S, T, k, J) {
1789
+ function z(S, T, B, J) {
1790
1790
  T < 0 && (T = 65535 + T + 1);
1791
- for (var K = 0, re = Math.min(S.length - k, 2); K < re; ++K)
1792
- S[k + K] = (T & 255 << 8 * (J ? K : 1 - K)) >>> 8 * (J ? K : 1 - K);
1791
+ for (var K = 0, re = Math.min(S.length - B, 2); K < re; ++K)
1792
+ S[B + K] = (T & 255 << 8 * (J ? K : 1 - K)) >>> 8 * (J ? K : 1 - K);
1793
1793
  }
1794
- function O(S, T, k, J) {
1794
+ function O(S, T, B, J) {
1795
1795
  T < 0 && (T = 4294967295 + T + 1);
1796
- for (var K = 0, re = Math.min(S.length - k, 4); K < re; ++K)
1797
- S[k + K] = T >>> 8 * (J ? K : 3 - K) & 255;
1796
+ for (var K = 0, re = Math.min(S.length - B, 4); K < re; ++K)
1797
+ S[B + K] = T >>> 8 * (J ? K : 3 - K) & 255;
1798
1798
  }
1799
- function p(S, T, k, J, K, re) {
1800
- if (k + J > S.length)
1799
+ function p(S, T, B, J, K, re) {
1800
+ if (B + J > S.length)
1801
1801
  throw new RangeError("Index out of range");
1802
- if (k < 0)
1802
+ if (B < 0)
1803
1803
  throw new RangeError("Index out of range");
1804
1804
  }
1805
- function U(S, T, k, J, K) {
1806
- return K || p(S, 0, k, 4), s.write(S, T, k, J, 23, 4), k + 4;
1805
+ function U(S, T, B, J, K) {
1806
+ return K || p(S, 0, B, 4), s.write(S, T, B, J, 23, 4), B + 4;
1807
1807
  }
1808
- function V(S, T, k, J, K) {
1809
- return K || p(S, 0, k, 8), s.write(S, T, k, J, 52, 8), k + 8;
1808
+ function V(S, T, B, J, K) {
1809
+ return K || p(S, 0, B, 8), s.write(S, T, B, J, 52, 8), B + 8;
1810
1810
  }
1811
1811
  u.prototype.slice = function(S, T) {
1812
- var k, J = this.length;
1812
+ var B, J = this.length;
1813
1813
  if ((S = ~~S) < 0 ? (S += J) < 0 && (S = 0) : S > J && (S = J), (T = T === void 0 ? J : ~~T) < 0 ? (T += J) < 0 && (T = 0) : T > J && (T = J), T < S && (T = S), u.TYPED_ARRAY_SUPPORT)
1814
- (k = this.subarray(S, T)).__proto__ = u.prototype;
1814
+ (B = this.subarray(S, T)).__proto__ = u.prototype;
1815
1815
  else {
1816
1816
  var K = T - S;
1817
- k = new u(K, void 0);
1817
+ B = new u(K, void 0);
1818
1818
  for (var re = 0; re < K; ++re)
1819
- k[re] = this[re + S];
1819
+ B[re] = this[re + S];
1820
1820
  }
1821
- return k;
1822
- }, u.prototype.readUIntLE = function(S, T, k) {
1823
- S |= 0, T |= 0, k || N(S, T, this.length);
1821
+ return B;
1822
+ }, u.prototype.readUIntLE = function(S, T, B) {
1823
+ S |= 0, T |= 0, B || N(S, T, this.length);
1824
1824
  for (var J = this[S], K = 1, re = 0; ++re < T && (K *= 256); )
1825
1825
  J += this[S + re] * K;
1826
1826
  return J;
1827
- }, u.prototype.readUIntBE = function(S, T, k) {
1828
- S |= 0, T |= 0, k || N(S, T, this.length);
1827
+ }, u.prototype.readUIntBE = function(S, T, B) {
1828
+ S |= 0, T |= 0, B || N(S, T, this.length);
1829
1829
  for (var J = this[S + --T], K = 1; T > 0 && (K *= 256); )
1830
1830
  J += this[S + --T] * K;
1831
1831
  return J;
@@ -1839,13 +1839,13 @@ ${P(re)}`), fe;
1839
1839
  return T || N(S, 4, this.length), (this[S] | this[S + 1] << 8 | this[S + 2] << 16) + 16777216 * this[S + 3];
1840
1840
  }, u.prototype.readUInt32BE = function(S, T) {
1841
1841
  return T || N(S, 4, this.length), 16777216 * this[S] + (this[S + 1] << 16 | this[S + 2] << 8 | this[S + 3]);
1842
- }, u.prototype.readIntLE = function(S, T, k) {
1843
- S |= 0, T |= 0, k || N(S, T, this.length);
1842
+ }, u.prototype.readIntLE = function(S, T, B) {
1843
+ S |= 0, T |= 0, B || N(S, T, this.length);
1844
1844
  for (var J = this[S], K = 1, re = 0; ++re < T && (K *= 256); )
1845
1845
  J += this[S + re] * K;
1846
1846
  return J >= (K *= 128) && (J -= Math.pow(2, 8 * T)), J;
1847
- }, u.prototype.readIntBE = function(S, T, k) {
1848
- S |= 0, T |= 0, k || N(S, T, this.length);
1847
+ }, u.prototype.readIntBE = function(S, T, B) {
1848
+ S |= 0, T |= 0, B || N(S, T, this.length);
1849
1849
  for (var J = T, K = 1, re = this[S + --J]; J > 0 && (K *= 256); )
1850
1850
  re += this[S + --J] * K;
1851
1851
  return re >= (K *= 128) && (re -= Math.pow(2, 8 * T)), re;
@@ -1853,12 +1853,12 @@ ${P(re)}`), fe;
1853
1853
  return T || N(S, 1, this.length), 128 & this[S] ? -1 * (255 - this[S] + 1) : this[S];
1854
1854
  }, u.prototype.readInt16LE = function(S, T) {
1855
1855
  T || N(S, 2, this.length);
1856
- var k = this[S] | this[S + 1] << 8;
1857
- return 32768 & k ? 4294901760 | k : k;
1856
+ var B = this[S] | this[S + 1] << 8;
1857
+ return 32768 & B ? 4294901760 | B : B;
1858
1858
  }, u.prototype.readInt16BE = function(S, T) {
1859
1859
  T || N(S, 2, this.length);
1860
- var k = this[S + 1] | this[S] << 8;
1861
- return 32768 & k ? 4294901760 | k : k;
1860
+ var B = this[S + 1] | this[S] << 8;
1861
+ return 32768 & B ? 4294901760 | B : B;
1862
1862
  }, u.prototype.readInt32LE = function(S, T) {
1863
1863
  return T || N(S, 4, this.length), this[S] | this[S + 1] << 8 | this[S + 2] << 16 | this[S + 3] << 24;
1864
1864
  }, u.prototype.readInt32BE = function(S, T) {
@@ -1871,87 +1871,87 @@ ${P(re)}`), fe;
1871
1871
  return T || N(S, 8, this.length), s.read(this, S, !0, 52, 8);
1872
1872
  }, u.prototype.readDoubleBE = function(S, T) {
1873
1873
  return T || N(S, 8, this.length), s.read(this, S, !1, 52, 8);
1874
- }, u.prototype.writeUIntLE = function(S, T, k, J) {
1875
- S = +S, T |= 0, k |= 0, J || P(this, S, T, k, Math.pow(2, 8 * k) - 1, 0);
1874
+ }, u.prototype.writeUIntLE = function(S, T, B, J) {
1875
+ S = +S, T |= 0, B |= 0, J || P(this, S, T, B, Math.pow(2, 8 * B) - 1, 0);
1876
1876
  var K = 1, re = 0;
1877
- for (this[T] = 255 & S; ++re < k && (K *= 256); )
1877
+ for (this[T] = 255 & S; ++re < B && (K *= 256); )
1878
1878
  this[T + re] = S / K & 255;
1879
- return T + k;
1880
- }, u.prototype.writeUIntBE = function(S, T, k, J) {
1881
- S = +S, T |= 0, k |= 0, J || P(this, S, T, k, Math.pow(2, 8 * k) - 1, 0);
1882
- var K = k - 1, re = 1;
1879
+ return T + B;
1880
+ }, u.prototype.writeUIntBE = function(S, T, B, J) {
1881
+ S = +S, T |= 0, B |= 0, J || P(this, S, T, B, Math.pow(2, 8 * B) - 1, 0);
1882
+ var K = B - 1, re = 1;
1883
1883
  for (this[T + K] = 255 & S; --K >= 0 && (re *= 256); )
1884
1884
  this[T + K] = S / re & 255;
1885
- return T + k;
1886
- }, u.prototype.writeUInt8 = function(S, T, k) {
1887
- return S = +S, T |= 0, k || P(this, S, T, 1, 255, 0), u.TYPED_ARRAY_SUPPORT || (S = Math.floor(S)), this[T] = 255 & S, T + 1;
1888
- }, u.prototype.writeUInt16LE = function(S, T, k) {
1889
- return S = +S, T |= 0, k || P(this, S, T, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[T] = 255 & S, this[T + 1] = S >>> 8) : z(this, S, T, !0), T + 2;
1890
- }, u.prototype.writeUInt16BE = function(S, T, k) {
1891
- return S = +S, T |= 0, k || P(this, S, T, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[T] = S >>> 8, this[T + 1] = 255 & S) : z(this, S, T, !1), T + 2;
1892
- }, u.prototype.writeUInt32LE = function(S, T, k) {
1893
- return S = +S, T |= 0, k || P(this, S, T, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[T + 3] = S >>> 24, this[T + 2] = S >>> 16, this[T + 1] = S >>> 8, this[T] = 255 & S) : O(this, S, T, !0), T + 4;
1894
- }, u.prototype.writeUInt32BE = function(S, T, k) {
1895
- return S = +S, T |= 0, k || P(this, S, T, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[T] = S >>> 24, this[T + 1] = S >>> 16, this[T + 2] = S >>> 8, this[T + 3] = 255 & S) : O(this, S, T, !1), T + 4;
1896
- }, u.prototype.writeIntLE = function(S, T, k, J) {
1885
+ return T + B;
1886
+ }, u.prototype.writeUInt8 = function(S, T, B) {
1887
+ return S = +S, T |= 0, B || P(this, S, T, 1, 255, 0), u.TYPED_ARRAY_SUPPORT || (S = Math.floor(S)), this[T] = 255 & S, T + 1;
1888
+ }, u.prototype.writeUInt16LE = function(S, T, B) {
1889
+ return S = +S, T |= 0, B || P(this, S, T, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[T] = 255 & S, this[T + 1] = S >>> 8) : z(this, S, T, !0), T + 2;
1890
+ }, u.prototype.writeUInt16BE = function(S, T, B) {
1891
+ return S = +S, T |= 0, B || P(this, S, T, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[T] = S >>> 8, this[T + 1] = 255 & S) : z(this, S, T, !1), T + 2;
1892
+ }, u.prototype.writeUInt32LE = function(S, T, B) {
1893
+ return S = +S, T |= 0, B || P(this, S, T, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[T + 3] = S >>> 24, this[T + 2] = S >>> 16, this[T + 1] = S >>> 8, this[T] = 255 & S) : O(this, S, T, !0), T + 4;
1894
+ }, u.prototype.writeUInt32BE = function(S, T, B) {
1895
+ return S = +S, T |= 0, B || P(this, S, T, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[T] = S >>> 24, this[T + 1] = S >>> 16, this[T + 2] = S >>> 8, this[T + 3] = 255 & S) : O(this, S, T, !1), T + 4;
1896
+ }, u.prototype.writeIntLE = function(S, T, B, J) {
1897
1897
  if (S = +S, T |= 0, !J) {
1898
- var K = Math.pow(2, 8 * k - 1);
1899
- P(this, S, T, k, K - 1, -K);
1898
+ var K = Math.pow(2, 8 * B - 1);
1899
+ P(this, S, T, B, K - 1, -K);
1900
1900
  }
1901
1901
  var re = 0, se = 1, fe = 0;
1902
- for (this[T] = 255 & S; ++re < k && (se *= 256); )
1902
+ for (this[T] = 255 & S; ++re < B && (se *= 256); )
1903
1903
  S < 0 && fe === 0 && this[T + re - 1] !== 0 && (fe = 1), this[T + re] = (S / se >> 0) - fe & 255;
1904
- return T + k;
1905
- }, u.prototype.writeIntBE = function(S, T, k, J) {
1904
+ return T + B;
1905
+ }, u.prototype.writeIntBE = function(S, T, B, J) {
1906
1906
  if (S = +S, T |= 0, !J) {
1907
- var K = Math.pow(2, 8 * k - 1);
1908
- P(this, S, T, k, K - 1, -K);
1907
+ var K = Math.pow(2, 8 * B - 1);
1908
+ P(this, S, T, B, K - 1, -K);
1909
1909
  }
1910
- var re = k - 1, se = 1, fe = 0;
1910
+ var re = B - 1, se = 1, fe = 0;
1911
1911
  for (this[T + re] = 255 & S; --re >= 0 && (se *= 256); )
1912
1912
  S < 0 && fe === 0 && this[T + re + 1] !== 0 && (fe = 1), this[T + re] = (S / se >> 0) - fe & 255;
1913
- return T + k;
1914
- }, u.prototype.writeInt8 = function(S, T, k) {
1915
- return S = +S, T |= 0, k || P(this, S, T, 1, 127, -128), u.TYPED_ARRAY_SUPPORT || (S = Math.floor(S)), S < 0 && (S = 255 + S + 1), this[T] = 255 & S, T + 1;
1916
- }, u.prototype.writeInt16LE = function(S, T, k) {
1917
- return S = +S, T |= 0, k || P(this, S, T, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[T] = 255 & S, this[T + 1] = S >>> 8) : z(this, S, T, !0), T + 2;
1918
- }, u.prototype.writeInt16BE = function(S, T, k) {
1919
- return S = +S, T |= 0, k || P(this, S, T, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[T] = S >>> 8, this[T + 1] = 255 & S) : z(this, S, T, !1), T + 2;
1920
- }, u.prototype.writeInt32LE = function(S, T, k) {
1921
- return S = +S, T |= 0, k || P(this, S, T, 4, 2147483647, -2147483648), u.TYPED_ARRAY_SUPPORT ? (this[T] = 255 & S, this[T + 1] = S >>> 8, this[T + 2] = S >>> 16, this[T + 3] = S >>> 24) : O(this, S, T, !0), T + 4;
1922
- }, u.prototype.writeInt32BE = function(S, T, k) {
1923
- return S = +S, T |= 0, k || P(this, S, T, 4, 2147483647, -2147483648), S < 0 && (S = 4294967295 + S + 1), u.TYPED_ARRAY_SUPPORT ? (this[T] = S >>> 24, this[T + 1] = S >>> 16, this[T + 2] = S >>> 8, this[T + 3] = 255 & S) : O(this, S, T, !1), T + 4;
1924
- }, u.prototype.writeFloatLE = function(S, T, k) {
1925
- return U(this, S, T, !0, k);
1926
- }, u.prototype.writeFloatBE = function(S, T, k) {
1927
- return U(this, S, T, !1, k);
1928
- }, u.prototype.writeDoubleLE = function(S, T, k) {
1929
- return V(this, S, T, !0, k);
1930
- }, u.prototype.writeDoubleBE = function(S, T, k) {
1931
- return V(this, S, T, !1, k);
1932
- }, u.prototype.copy = function(S, T, k, J) {
1933
- if (k || (k = 0), J || J === 0 || (J = this.length), T >= S.length && (T = S.length), T || (T = 0), J > 0 && J < k && (J = k), J === k || S.length === 0 || this.length === 0)
1913
+ return T + B;
1914
+ }, u.prototype.writeInt8 = function(S, T, B) {
1915
+ return S = +S, T |= 0, B || P(this, S, T, 1, 127, -128), u.TYPED_ARRAY_SUPPORT || (S = Math.floor(S)), S < 0 && (S = 255 + S + 1), this[T] = 255 & S, T + 1;
1916
+ }, u.prototype.writeInt16LE = function(S, T, B) {
1917
+ return S = +S, T |= 0, B || P(this, S, T, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[T] = 255 & S, this[T + 1] = S >>> 8) : z(this, S, T, !0), T + 2;
1918
+ }, u.prototype.writeInt16BE = function(S, T, B) {
1919
+ return S = +S, T |= 0, B || P(this, S, T, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[T] = S >>> 8, this[T + 1] = 255 & S) : z(this, S, T, !1), T + 2;
1920
+ }, u.prototype.writeInt32LE = function(S, T, B) {
1921
+ return S = +S, T |= 0, B || P(this, S, T, 4, 2147483647, -2147483648), u.TYPED_ARRAY_SUPPORT ? (this[T] = 255 & S, this[T + 1] = S >>> 8, this[T + 2] = S >>> 16, this[T + 3] = S >>> 24) : O(this, S, T, !0), T + 4;
1922
+ }, u.prototype.writeInt32BE = function(S, T, B) {
1923
+ return S = +S, T |= 0, B || P(this, S, T, 4, 2147483647, -2147483648), S < 0 && (S = 4294967295 + S + 1), u.TYPED_ARRAY_SUPPORT ? (this[T] = S >>> 24, this[T + 1] = S >>> 16, this[T + 2] = S >>> 8, this[T + 3] = 255 & S) : O(this, S, T, !1), T + 4;
1924
+ }, u.prototype.writeFloatLE = function(S, T, B) {
1925
+ return U(this, S, T, !0, B);
1926
+ }, u.prototype.writeFloatBE = function(S, T, B) {
1927
+ return U(this, S, T, !1, B);
1928
+ }, u.prototype.writeDoubleLE = function(S, T, B) {
1929
+ return V(this, S, T, !0, B);
1930
+ }, u.prototype.writeDoubleBE = function(S, T, B) {
1931
+ return V(this, S, T, !1, B);
1932
+ }, u.prototype.copy = function(S, T, B, J) {
1933
+ if (B || (B = 0), J || J === 0 || (J = this.length), T >= S.length && (T = S.length), T || (T = 0), J > 0 && J < B && (J = B), J === B || S.length === 0 || this.length === 0)
1934
1934
  return 0;
1935
1935
  if (T < 0)
1936
1936
  throw new RangeError("targetStart out of bounds");
1937
- if (k < 0 || k >= this.length)
1937
+ if (B < 0 || B >= this.length)
1938
1938
  throw new RangeError("sourceStart out of bounds");
1939
1939
  if (J < 0)
1940
1940
  throw new RangeError("sourceEnd out of bounds");
1941
- J > this.length && (J = this.length), S.length - T < J - k && (J = S.length - T + k);
1942
- var K, re = J - k;
1943
- if (this === S && k < T && T < J)
1941
+ J > this.length && (J = this.length), S.length - T < J - B && (J = S.length - T + B);
1942
+ var K, re = J - B;
1943
+ if (this === S && B < T && T < J)
1944
1944
  for (K = re - 1; K >= 0; --K)
1945
- S[K + T] = this[K + k];
1945
+ S[K + T] = this[K + B];
1946
1946
  else if (re < 1e3 || !u.TYPED_ARRAY_SUPPORT)
1947
1947
  for (K = 0; K < re; ++K)
1948
- S[K + T] = this[K + k];
1948
+ S[K + T] = this[K + B];
1949
1949
  else
1950
- Uint8Array.prototype.set.call(S, this.subarray(k, k + re), T);
1950
+ Uint8Array.prototype.set.call(S, this.subarray(B, B + re), T);
1951
1951
  return re;
1952
- }, u.prototype.fill = function(S, T, k, J) {
1952
+ }, u.prototype.fill = function(S, T, B, J) {
1953
1953
  if (typeof S == "string") {
1954
- if (typeof T == "string" ? (J = T, T = 0, k = this.length) : typeof k == "string" && (J = k, k = this.length), S.length === 1) {
1954
+ if (typeof T == "string" ? (J = T, T = 0, B = this.length) : typeof B == "string" && (J = B, B = this.length), S.length === 1) {
1955
1955
  var K = S.charCodeAt(0);
1956
1956
  K < 256 && (S = K);
1957
1957
  }
@@ -1961,17 +1961,17 @@ ${P(re)}`), fe;
1961
1961
  throw new TypeError("Unknown encoding: " + J);
1962
1962
  } else
1963
1963
  typeof S == "number" && (S &= 255);
1964
- if (T < 0 || this.length < T || this.length < k)
1964
+ if (T < 0 || this.length < T || this.length < B)
1965
1965
  throw new RangeError("Out of range index");
1966
- if (k <= T)
1966
+ if (B <= T)
1967
1967
  return this;
1968
1968
  var re;
1969
- if (T >>>= 0, k = k === void 0 ? this.length : k >>> 0, S || (S = 0), typeof S == "number")
1970
- for (re = T; re < k; ++re)
1969
+ if (T >>>= 0, B = B === void 0 ? this.length : B >>> 0, S || (S = 0), typeof S == "number")
1970
+ for (re = T; re < B; ++re)
1971
1971
  this[re] = S;
1972
1972
  else {
1973
1973
  var se = u.isBuffer(S) ? S : ne(new u(S, J).toString()), fe = se.length;
1974
- for (re = 0; re < k - T; ++re)
1974
+ for (re = 0; re < B - T; ++re)
1975
1975
  this[re + T] = se[re % fe];
1976
1976
  }
1977
1977
  return this;
@@ -1981,12 +1981,12 @@ ${P(re)}`), fe;
1981
1981
  return S < 16 ? "0" + S.toString(16) : S.toString(16);
1982
1982
  }
1983
1983
  function ne(S, T) {
1984
- var k;
1984
+ var B;
1985
1985
  T = T || 1 / 0;
1986
1986
  for (var J = S.length, K = null, re = [], se = 0; se < J; ++se) {
1987
- if ((k = S.charCodeAt(se)) > 55295 && k < 57344) {
1987
+ if ((B = S.charCodeAt(se)) > 55295 && B < 57344) {
1988
1988
  if (!K) {
1989
- if (k > 56319) {
1989
+ if (B > 56319) {
1990
1990
  (T -= 3) > -1 && re.push(239, 191, 189);
1991
1991
  continue;
1992
1992
  }
@@ -1994,42 +1994,42 @@ ${P(re)}`), fe;
1994
1994
  (T -= 3) > -1 && re.push(239, 191, 189);
1995
1995
  continue;
1996
1996
  }
1997
- K = k;
1997
+ K = B;
1998
1998
  continue;
1999
1999
  }
2000
- if (k < 56320) {
2001
- (T -= 3) > -1 && re.push(239, 191, 189), K = k;
2000
+ if (B < 56320) {
2001
+ (T -= 3) > -1 && re.push(239, 191, 189), K = B;
2002
2002
  continue;
2003
2003
  }
2004
- k = 65536 + (K - 55296 << 10 | k - 56320);
2004
+ B = 65536 + (K - 55296 << 10 | B - 56320);
2005
2005
  } else
2006
2006
  K && (T -= 3) > -1 && re.push(239, 191, 189);
2007
- if (K = null, k < 128) {
2007
+ if (K = null, B < 128) {
2008
2008
  if ((T -= 1) < 0)
2009
2009
  break;
2010
- re.push(k);
2011
- } else if (k < 2048) {
2010
+ re.push(B);
2011
+ } else if (B < 2048) {
2012
2012
  if ((T -= 2) < 0)
2013
2013
  break;
2014
- re.push(k >> 6 | 192, 63 & k | 128);
2015
- } else if (k < 65536) {
2014
+ re.push(B >> 6 | 192, 63 & B | 128);
2015
+ } else if (B < 65536) {
2016
2016
  if ((T -= 3) < 0)
2017
2017
  break;
2018
- re.push(k >> 12 | 224, k >> 6 & 63 | 128, 63 & k | 128);
2018
+ re.push(B >> 12 | 224, B >> 6 & 63 | 128, 63 & B | 128);
2019
2019
  } else {
2020
- if (!(k < 1114112))
2020
+ if (!(B < 1114112))
2021
2021
  throw new Error("Invalid code point");
2022
2022
  if ((T -= 4) < 0)
2023
2023
  break;
2024
- re.push(k >> 18 | 240, k >> 12 & 63 | 128, k >> 6 & 63 | 128, 63 & k | 128);
2024
+ re.push(B >> 18 | 240, B >> 12 & 63 | 128, B >> 6 & 63 | 128, 63 & B | 128);
2025
2025
  }
2026
2026
  }
2027
2027
  return re;
2028
2028
  }
2029
2029
  function Y(S) {
2030
2030
  return i.toByteArray(function(T) {
2031
- if ((T = function(k) {
2032
- return k.trim ? k.trim() : k.replace(/^\s+|\s+$/g, "");
2031
+ if ((T = function(B) {
2032
+ return B.trim ? B.trim() : B.replace(/^\s+|\s+$/g, "");
2033
2033
  }(T).replace(Q, "")).length < 2)
2034
2034
  return "";
2035
2035
  for (; T.length % 4 != 0; )
@@ -2037,9 +2037,9 @@ ${P(re)}`), fe;
2037
2037
  return T;
2038
2038
  }(S));
2039
2039
  }
2040
- function G(S, T, k, J) {
2041
- for (var K = 0; K < J && !(K + k >= T.length || K >= S.length); ++K)
2042
- T[K + k] = S[K];
2040
+ function G(S, T, B, J) {
2041
+ for (var K = 0; K < J && !(K + B >= T.length || K >= S.length); ++K)
2042
+ T[K + B] = S[K];
2043
2043
  return K;
2044
2044
  }
2045
2045
  }).call(this, n(6));
@@ -2895,8 +2895,8 @@ Found: `.concat(j.toString().split(`
2895
2895
  if (M(T))
2896
2896
  return S.stylize("undefined", "undefined");
2897
2897
  if (F(T)) {
2898
- var k = "'" + JSON.stringify(T).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
2899
- return S.stylize(k, "string");
2898
+ var B = "'" + JSON.stringify(T).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
2899
+ return S.stylize(B, "string");
2900
2900
  }
2901
2901
  if (j(T))
2902
2902
  return S.stylize("" + T, "number");
@@ -2909,8 +2909,8 @@ Found: `.concat(j.toString().split(`
2909
2909
  return p;
2910
2910
  var U = Object.keys(P), V = function(S) {
2911
2911
  var T = {};
2912
- return S.forEach(function(k, J) {
2913
- T[k] = !0;
2912
+ return S.forEach(function(B, J) {
2913
+ T[B] = !0;
2914
2914
  }), T;
2915
2915
  }(U);
2916
2916
  if (N.showHidden && (U = Object.getOwnPropertyNames(P)), $(P) && (U.indexOf("message") >= 0 || U.indexOf("description") >= 0))
@@ -2928,21 +2928,21 @@ Found: `.concat(j.toString().split(`
2928
2928
  return w(P);
2929
2929
  }
2930
2930
  var ee, ne = "", Y = !1, G = ["{", "}"];
2931
- return g(P) && (Y = !0, G = ["[", "]"]), q(P) && (ne = " [Function" + (P.name ? ": " + P.name : "") + "]"), A(P) && (ne = " " + RegExp.prototype.toString.call(P)), C(P) && (ne = " " + Date.prototype.toUTCString.call(P)), $(P) && (ne = " " + w(P)), U.length !== 0 || Y && P.length != 0 ? z < 0 ? A(P) ? N.stylize(RegExp.prototype.toString.call(P), "regexp") : N.stylize("[Object]", "special") : (N.seen.push(P), ee = Y ? function(S, T, k, J, K) {
2931
+ return g(P) && (Y = !0, G = ["[", "]"]), q(P) && (ne = " [Function" + (P.name ? ": " + P.name : "") + "]"), A(P) && (ne = " " + RegExp.prototype.toString.call(P)), C(P) && (ne = " " + Date.prototype.toUTCString.call(P)), $(P) && (ne = " " + w(P)), U.length !== 0 || Y && P.length != 0 ? z < 0 ? A(P) ? N.stylize(RegExp.prototype.toString.call(P), "regexp") : N.stylize("[Object]", "special") : (N.seen.push(P), ee = Y ? function(S, T, B, J, K) {
2932
2932
  for (var re = [], se = 0, fe = T.length; se < fe; ++se)
2933
- L(T, String(se)) ? re.push(h(S, T, k, J, String(se), !0)) : re.push("");
2933
+ L(T, String(se)) ? re.push(h(S, T, B, J, String(se), !0)) : re.push("");
2934
2934
  return K.forEach(function(ve) {
2935
- ve.match(/^\d+$/) || re.push(h(S, T, k, J, ve, !0));
2935
+ ve.match(/^\d+$/) || re.push(h(S, T, B, J, ve, !0));
2936
2936
  }), re;
2937
2937
  }(N, P, z, V, U) : U.map(function(S) {
2938
2938
  return h(N, P, z, V, S, Y);
2939
- }), N.seen.pop(), function(S, T, k) {
2939
+ }), N.seen.pop(), function(S, T, B) {
2940
2940
  return S.reduce(function(J, K) {
2941
2941
  return K.indexOf(`
2942
2942
  `) >= 0, J + K.replace(/\u001b\[\d\d?m/g, "").length + 1;
2943
- }, 0) > 60 ? k[0] + (T === "" ? "" : T + `
2943
+ }, 0) > 60 ? B[0] + (T === "" ? "" : T + `
2944
2944
  `) + " " + S.join(`,
2945
- `) + " " + k[1] : k[0] + T + " " + S.join(", ") + " " + k[1];
2945
+ `) + " " + B[1] : B[0] + T + " " + S.join(", ") + " " + B[1];
2946
2946
  }(ee, ne, G)) : G[0] + ne + G[1];
2947
2947
  }
2948
2948
  function w(N) {
@@ -3043,7 +3043,7 @@ Found: `.concat(j.toString().split(`
3043
3043
  return N;
3044
3044
  };
3045
3045
  var W = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3046
- function B(N, P) {
3046
+ function k(N, P) {
3047
3047
  if (!N) {
3048
3048
  var z = new Error("Promise was rejected with a falsy value");
3049
3049
  z.reason = N, N = z;
@@ -3090,7 +3090,7 @@ Found: `.concat(j.toString().split(`
3090
3090
  N.apply(this, z).then(function(Q) {
3091
3091
  r.nextTick(V, null, Q);
3092
3092
  }, function(Q) {
3093
- r.nextTick(B, Q, V);
3093
+ r.nextTick(k, Q, V);
3094
3094
  });
3095
3095
  }
3096
3096
  return Object.setPrototypeOf(P, Object.getPrototypeOf(N)), Object.defineProperties(P, i(N)), P;
@@ -4067,7 +4067,7 @@ Found: `.concat(j.toString().split(`
4067
4067
  }, y.prototype.cancel = function() {
4068
4068
  this.a.cancel();
4069
4069
  }, F(I, Error), I.prototype.name = "CustomError", F(_, I), _.prototype.name = "AssertionError";
4070
- var W = 0, B = 1, N = 2, P = 3, z = 0, O = 128;
4070
+ var W = 0, k = 1, N = 2, P = 3, z = 0, O = 128;
4071
4071
  function p(x, Z, te, ae) {
4072
4072
  throw x.b = P, x.j = "The stream is broken @" + x.l + "/" + te + ". Error: " + ae + `. With input:
4073
4073
  ` + Z, Error(x.j);
@@ -4111,18 +4111,18 @@ Found: `.concat(j.toString().split(`
4111
4111
  te.push(x.shift()), Z--;
4112
4112
  return x.length && te.push(x.join(":")), te;
4113
4113
  }
4114
- function k(x) {
4115
- return k[" "](x), x;
4114
+ function B(x) {
4115
+ return B[" "](x), x;
4116
4116
  }
4117
- k[" "] = w;
4117
+ B[" "] = w;
4118
4118
  var J, K, re = ee(V, "Opera"), se = ee(V, "Trident") || ee(V, "MSIE"), fe = ee(V, "Edge"), ve = ee(V, "Gecko") && !(ee(V.toLowerCase(), "webkit") && !ee(V, "Edge")) && !(ee(V, "Trident") || ee(V, "MSIE")) && !ee(V, "Edge"), Ce = ee(V.toLowerCase(), "webkit") && !ee(V, "Edge");
4119
4119
  function Se() {
4120
4120
  var x = f.document;
4121
4121
  return x ? x.documentMode : void 0;
4122
4122
  }
4123
4123
  e: {
4124
- var Ie = "", Te = (K = V, ve ? /rv:([^\);]+)(\)|;)/.exec(K) : fe ? /Edge\/([\d\.]+)/.exec(K) : se ? /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(K) : Ce ? /WebKit\/(\S+)/.exec(K) : re ? /(?:Version)[ \/]?(\S+)/.exec(K) : void 0);
4125
- if (Te && (Ie = Te ? Te[1] : ""), se) {
4124
+ var Ie = "", Re = (K = V, ve ? /rv:([^\);]+)(\)|;)/.exec(K) : fe ? /Edge\/([\d\.]+)/.exec(K) : se ? /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(K) : Ce ? /WebKit\/(\S+)/.exec(K) : re ? /(?:Version)[ \/]?(\S+)/.exec(K) : void 0);
4125
+ if (Re && (Ie = Re ? Re[1] : ""), se) {
4126
4126
  var Oe = Se();
4127
4127
  if (Oe != null && Oe > parseFloat(Ie)) {
4128
4128
  J = String(Oe);
@@ -4162,7 +4162,7 @@ Found: `.concat(j.toString().split(`
4162
4162
  return x;
4163
4163
  };
4164
4164
  (bt = !se) || (bt = 9 <= Number(yt));
4165
- var St = bt, ke = se && !et("9"), Mt = function() {
4165
+ var St = bt, Be = se && !et("9"), Nt = function() {
4166
4166
  if (!f.addEventListener || !Object.defineProperty)
4167
4167
  return !1;
4168
4168
  var x = !1, Z = Object.defineProperty({}, "passive", { get: function() {
@@ -4184,7 +4184,7 @@ Found: `.concat(j.toString().split(`
4184
4184
  if (ve) {
4185
4185
  e: {
4186
4186
  try {
4187
- k(Z.nodeName);
4187
+ B(Z.nodeName);
4188
4188
  var ge = !0;
4189
4189
  break e;
4190
4190
  } catch {
@@ -4195,19 +4195,19 @@ Found: `.concat(j.toString().split(`
4195
4195
  }
4196
4196
  } else
4197
4197
  te == "mouseover" ? Z = x.fromElement : te == "mouseout" && (Z = x.toElement);
4198
- this.relatedTarget = Z, ae ? (this.clientX = ae.clientX !== void 0 ? ae.clientX : ae.pageX, this.clientY = ae.clientY !== void 0 ? ae.clientY : ae.pageY, this.screenX = ae.screenX || 0, this.screenY = ae.screenY || 0) : (this.clientX = x.clientX !== void 0 ? x.clientX : x.pageX, this.clientY = x.clientY !== void 0 ? x.clientY : x.pageY, this.screenX = x.screenX || 0, this.screenY = x.screenY || 0), this.button = x.button, this.key = x.key || "", this.ctrlKey = x.ctrlKey, this.altKey = x.altKey, this.shiftKey = x.shiftKey, this.metaKey = x.metaKey, this.pointerId = x.pointerId || 0, this.pointerType = typeof x.pointerType == "string" ? x.pointerType : Nt[x.pointerType] || "", this.c = x, x.defaultPrevented && this.b();
4198
+ this.relatedTarget = Z, ae ? (this.clientX = ae.clientX !== void 0 ? ae.clientX : ae.pageX, this.clientY = ae.clientY !== void 0 ? ae.clientY : ae.pageY, this.screenX = ae.screenX || 0, this.screenY = ae.screenY || 0) : (this.clientX = x.clientX !== void 0 ? x.clientX : x.pageX, this.clientY = x.clientY !== void 0 ? x.clientY : x.pageY, this.screenX = x.screenX || 0, this.screenY = x.screenY || 0), this.button = x.button, this.key = x.key || "", this.ctrlKey = x.ctrlKey, this.altKey = x.altKey, this.shiftKey = x.shiftKey, this.metaKey = x.metaKey, this.pointerId = x.pointerId || 0, this.pointerType = typeof x.pointerType == "string" ? x.pointerType : jt[x.pointerType] || "", this.c = x, x.defaultPrevented && this.b();
4199
4199
  }
4200
4200
  }
4201
4201
  tt.prototype.b = function() {
4202
4202
  this.defaultPrevented = !0;
4203
4203
  }, F(rt, tt);
4204
- var Nt = Ot({ 2: "touch", 3: "pen", 4: "mouse" });
4204
+ var jt = Ot({ 2: "touch", 3: "pen", 4: "mouse" });
4205
4205
  rt.prototype.b = function() {
4206
4206
  rt.S.b.call(this);
4207
4207
  var x = this.c;
4208
4208
  if (x.preventDefault)
4209
4209
  x.preventDefault();
4210
- else if (x.returnValue = !1, ke)
4210
+ else if (x.returnValue = !1, Be)
4211
4211
  try {
4212
4212
  (x.ctrlKey || 112 <= x.keyCode && 123 >= x.keyCode) && (x.keyCode = -1);
4213
4213
  } catch {
@@ -4274,7 +4274,7 @@ Found: `.concat(j.toString().split(`
4274
4274
  };
4275
4275
  return _e;
4276
4276
  }(), te.proxy = ae, ae.src = x, ae.listener = te, x.addEventListener)
4277
- Mt || (ge = ue), ge === void 0 && (ge = !1), x.addEventListener(Z.toString(), ae, ge);
4277
+ Nt || (ge = ue), ge === void 0 && (ge = !1), x.addEventListener(Z.toString(), ae, ge);
4278
4278
  else if (x.attachEvent)
4279
4279
  x.attachEvent(de(Z.toString()), ae);
4280
4280
  else {
@@ -4414,15 +4414,15 @@ Found: `.concat(j.toString().split(`
4414
4414
  function xe(x) {
4415
4415
  this.f = x, this.b = this.c = this.a = null;
4416
4416
  }
4417
- function Be(x, Z) {
4417
+ function ke(x, Z) {
4418
4418
  this.name = x, this.value = Z;
4419
4419
  }
4420
4420
  qe.prototype.reset = function(x, Z, te, ae, ge) {
4421
4421
  delete this.a;
4422
- }, Be.prototype.toString = function() {
4422
+ }, ke.prototype.toString = function() {
4423
4423
  return this.name;
4424
4424
  };
4425
- var Ve = new Be("SEVERE", 1e3), $e = new Be("CONFIG", 700), Ke = new Be("FINE", 500);
4425
+ var Ve = new ke("SEVERE", 1e3), $e = new ke("CONFIG", 700), Ke = new ke("FINE", 500);
4426
4426
  function Xe(x) {
4427
4427
  return x.c ? x.c : x.a ? Xe(x.a) : (function(Z, te) {
4428
4428
  throw new _("Failure" + (Z ? ": " + Z : ""), Array.prototype.slice.call(arguments, 1));
@@ -4439,16 +4439,16 @@ Found: `.concat(j.toString().split(`
4439
4439
  }
4440
4440
  function Ct() {
4441
4441
  }
4442
- function Dt(x) {
4442
+ function kt(x) {
4443
4443
  var Z;
4444
- return (Z = x.a) || (Z = {}, Ut(x) && (Z[0] = !0, Z[1] = !0), Z = x.a = Z), Z;
4444
+ return (Z = x.a) || (Z = {}, Ft(x) && (Z[0] = !0, Z[1] = !0), Z = x.a = Z), Z;
4445
4445
  }
4446
4446
  function Bt() {
4447
4447
  }
4448
- function kt(x) {
4449
- return (x = Ut(x)) ? new ActiveXObject(x) : new XMLHttpRequest();
4450
- }
4451
4448
  function Ut(x) {
4449
+ return (x = Ft(x)) ? new ActiveXObject(x) : new XMLHttpRequest();
4450
+ }
4451
+ function Ft(x) {
4452
4452
  if (!x.b && typeof XMLHttpRequest > "u" && typeof ActiveXObject < "u") {
4453
4453
  for (var Z = ["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], te = 0; te < Z.length; te++) {
4454
4454
  var ae = Z[te];
@@ -4470,9 +4470,9 @@ Found: `.concat(j.toString().split(`
4470
4470
  for (var ae = 0; ae < te; ae += 2)
4471
4471
  this.set(arguments[ae], arguments[ae + 1]);
4472
4472
  } else
4473
- x && Ft(this, x);
4473
+ x && zt(this, x);
4474
4474
  }
4475
- function jt(x) {
4475
+ function xt(x) {
4476
4476
  if (x.c != x.a.length) {
4477
4477
  for (var Z = 0, te = 0; Z < x.a.length; ) {
4478
4478
  var ae = x.a[Z];
@@ -4487,7 +4487,7 @@ Found: `.concat(j.toString().split(`
4487
4487
  x.a.length = te;
4488
4488
  }
4489
4489
  }
4490
- function Ft(x, Z) {
4490
+ function zt(x, Z) {
4491
4491
  if (Z instanceof pt)
4492
4492
  for (var te = Z.f(), ae = 0; ae < te.length; ae++)
4493
4493
  x.set(te[ae], Z.get(te[ae]));
@@ -4499,7 +4499,7 @@ Found: `.concat(j.toString().split(`
4499
4499
  return Object.prototype.hasOwnProperty.call(x, Z);
4500
4500
  }
4501
4501
  Ct.prototype.a = null, F(Bt, Ct), ot = new Bt(), pt.prototype.f = function() {
4502
- return jt(this), this.a.concat();
4502
+ return xt(this), this.a.concat();
4503
4503
  }, pt.prototype.get = function(x, Z) {
4504
4504
  return _t(this.b, x) ? this.b[x] : Z;
4505
4505
  }, pt.prototype.set = function(x, Z) {
@@ -4510,12 +4510,12 @@ Found: `.concat(j.toString().split(`
4510
4510
  x.call(Z, me, ge, this);
4511
4511
  }
4512
4512
  };
4513
- var Kt = /^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;
4513
+ var Xt = /^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;
4514
4514
  function ht(x) {
4515
- je.call(this), this.headers = new pt(), this.D = x || null, this.c = !1, this.C = this.a = null, this.J = this.o = "", this.g = 0, this.i = "", this.h = this.I = this.m = this.G = !1, this.l = 0, this.u = null, this.j = zt, this.B = this.H = !1;
4515
+ je.call(this), this.headers = new pt(), this.D = x || null, this.c = !1, this.C = this.a = null, this.J = this.o = "", this.g = 0, this.i = "", this.h = this.I = this.m = this.G = !1, this.l = 0, this.u = null, this.j = Wt, this.B = this.H = !1;
4516
4516
  }
4517
4517
  F(ht, je);
4518
- var zt = "", Xt = ht.prototype, Jt = function x(Z) {
4518
+ var Wt = "", Jt = ht.prototype, Qt = function x(Z) {
4519
4519
  var te;
4520
4520
  if (ut || (ut = new xe(""), it[""] = ut, ut.c = $e), !(te = it[Z])) {
4521
4521
  te = new xe(Z);
@@ -4524,21 +4524,21 @@ Found: `.concat(j.toString().split(`
4524
4524
  }
4525
4525
  return te;
4526
4526
  }("goog.net.XhrIo");
4527
- Xt.b = Jt;
4528
- var Qt = /^https?$/i, en = ["POST", "PUT"];
4529
- function tn(x, Z, te) {
4527
+ Jt.b = Qt;
4528
+ var en = /^https?$/i, tn = ["POST", "PUT"];
4529
+ function nn(x, Z, te) {
4530
4530
  if (x.a)
4531
4531
  throw Error("[goog.net.XhrIo] Object is active with another request=" + x.o + "; newUri=" + Z);
4532
- x.o = Z, x.i = "", x.g = 0, x.J = "POST", x.G = !1, x.c = !0, x.a = x.D ? kt(x.D) : kt(ot), x.C = x.D ? Dt(x.D) : Dt(ot), x.a.onreadystatechange = j(x.K, x);
4532
+ x.o = Z, x.i = "", x.g = 0, x.J = "POST", x.G = !1, x.c = !0, x.a = x.D ? Ut(x.D) : Ut(ot), x.C = x.D ? kt(x.D) : kt(ot), x.a.onreadystatechange = j(x.K, x);
4533
4533
  try {
4534
4534
  Je(x.b, ft(x, "Opening Xhr")), x.I = !0, x.a.open("POST", String(Z), !0), x.I = !1;
4535
4535
  } catch (me) {
4536
- return Je(x.b, ft(x, "Error opening Xhr: " + me.message)), void Wt(x, me);
4536
+ return Je(x.b, ft(x, "Error opening Xhr: " + me.message)), void Ht(x, me);
4537
4537
  }
4538
4538
  Z = te || "";
4539
4539
  var ae = function(me) {
4540
4540
  e: {
4541
- for (var ue = nn, he = me.length, we = typeof me == "string" ? me.split("") : me, _e = 0; _e < he; _e++)
4541
+ for (var ue = rn, he = me.length, we = typeof me == "string" ? me.split("") : me, _e = 0; _e < he; _e++)
4542
4542
  if (_e in we && ue.call(void 0, we[_e], _e, me)) {
4543
4543
  ue = _e;
4544
4544
  break e;
@@ -4547,27 +4547,27 @@ Found: `.concat(j.toString().split(`
4547
4547
  }
4548
4548
  return 0 > ue ? null : typeof me == "string" ? me.charAt(ue) : me[ue];
4549
4549
  }((te = new pt(x.headers)).f()), ge = f.FormData && Z instanceof f.FormData;
4550
- !(0 <= U(en, "POST")) || ae || ge || te.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"), te.forEach(function(me, ue) {
4550
+ !(0 <= U(tn, "POST")) || ae || ge || te.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"), te.forEach(function(me, ue) {
4551
4551
  this.a.setRequestHeader(ue, me);
4552
4552
  }, x), x.j && (x.a.responseType = x.j), "withCredentials" in x.a && x.a.withCredentials !== x.H && (x.a.withCredentials = x.H);
4553
4553
  try {
4554
- Gt(x), 0 < x.l && (x.B = function(me) {
4554
+ $t(x), 0 < x.l && (x.B = function(me) {
4555
4555
  return se && et(9) && typeof me.timeout == "number" && me.ontimeout !== void 0;
4556
4556
  }(x.a), Je(x.b, ft(x, "Will abort after " + x.l + "ms if incomplete, xhr2 " + x.B)), x.B ? (x.a.timeout = x.l, x.a.ontimeout = j(x.L, x)) : x.u = Ge(x.L, x.l, x)), Je(x.b, ft(x, "Sending request")), x.m = !0, x.a.send(Z), x.m = !1;
4557
4557
  } catch (me) {
4558
- Je(x.b, ft(x, "Send error: " + me.message)), Wt(x, me);
4558
+ Je(x.b, ft(x, "Send error: " + me.message)), Ht(x, me);
4559
4559
  }
4560
4560
  }
4561
- function nn(x) {
4561
+ function rn(x) {
4562
4562
  return x.toLowerCase() == "content-type";
4563
4563
  }
4564
- function Wt(x, Z) {
4565
- x.c = !1, x.a && (x.h = !0, x.a.abort(), x.h = !1), x.i = Z, x.g = 5, Ht(x), xt(x);
4564
+ function Ht(x, Z) {
4565
+ x.c = !1, x.a && (x.h = !0, x.a.abort(), x.h = !1), x.i = Z, x.g = 5, Vt(x), Lt(x);
4566
4566
  }
4567
- function Ht(x) {
4567
+ function Vt(x) {
4568
4568
  x.G || (x.G = !0, Fe(x, "complete"), Fe(x, "error"));
4569
4569
  }
4570
- function Vt(x) {
4570
+ function Gt(x) {
4571
4571
  if (x.c && u !== void 0) {
4572
4572
  if (x.C[1] && mt(x) == 4 && x.getStatus() == 2)
4573
4573
  Je(x.b, ft(x, "Local request error detected and ignored"));
@@ -4594,12 +4594,12 @@ Found: `.concat(j.toString().split(`
4594
4594
  if (!(Z = ae)) {
4595
4595
  var ge;
4596
4596
  if (ge = te === 0) {
4597
- var me = String(x.o).match(Kt)[1] || null;
4597
+ var me = String(x.o).match(Xt)[1] || null;
4598
4598
  if (!me && f.self && f.self.location) {
4599
4599
  var ue = f.self.location.protocol;
4600
4600
  me = ue.substr(0, ue.length - 1);
4601
4601
  }
4602
- ge = !Qt.test(me ? me.toLowerCase() : "");
4602
+ ge = !en.test(me ? me.toLowerCase() : "");
4603
4603
  }
4604
4604
  Z = ge;
4605
4605
  }
@@ -4612,17 +4612,17 @@ Found: `.concat(j.toString().split(`
4612
4612
  } catch (we) {
4613
4613
  Je(x.b, "Can not get status: " + we.message), he = "";
4614
4614
  }
4615
- x.i = he + " [" + x.getStatus() + "]", Ht(x);
4615
+ x.i = he + " [" + x.getStatus() + "]", Vt(x);
4616
4616
  }
4617
4617
  } finally {
4618
- xt(x);
4618
+ Lt(x);
4619
4619
  }
4620
4620
  }
4621
4621
  }
4622
4622
  }
4623
- function xt(x) {
4623
+ function Lt(x) {
4624
4624
  if (x.a) {
4625
- Gt(x);
4625
+ $t(x);
4626
4626
  var Z = x.a, te = x.C[0] ? w : null;
4627
4627
  x.a = null, x.C = null, Fe(x, "ready");
4628
4628
  try {
@@ -4632,13 +4632,13 @@ Found: `.concat(j.toString().split(`
4632
4632
  }
4633
4633
  }
4634
4634
  }
4635
- function Gt(x) {
4635
+ function $t(x) {
4636
4636
  x.a && x.B && (x.a.ontimeout = null), x.u && (f.clearTimeout(x.u), x.u = null);
4637
4637
  }
4638
4638
  function mt(x) {
4639
4639
  return x.a ? x.a.readyState : 0;
4640
4640
  }
4641
- function $t(x, Z) {
4641
+ function Zt(x, Z) {
4642
4642
  if (x.a && mt(x) == 4)
4643
4643
  return (x = x.a.getResponseHeader(Z)) === null ? void 0 : x;
4644
4644
  }
@@ -4648,11 +4648,11 @@ Found: `.concat(j.toString().split(`
4648
4648
  ht.prototype.L = function() {
4649
4649
  u !== void 0 && this.a && (this.i = "Timed out after " + this.l + "ms, aborting", this.g = 8, Je(this.b, ft(this, this.i)), Fe(this, "timeout"), this.abort(8));
4650
4650
  }, ht.prototype.abort = function(x) {
4651
- this.a && this.c && (Je(this.b, ft(this, "Aborting")), this.c = !1, this.h = !0, this.a.abort(), this.h = !1, this.g = x || 7, Fe(this, "complete"), Fe(this, "abort"), xt(this));
4651
+ this.a && this.c && (Je(this.b, ft(this, "Aborting")), this.c = !1, this.h = !0, this.a.abort(), this.h = !1, this.g = x || 7, Fe(this, "complete"), Fe(this, "abort"), Lt(this));
4652
4652
  }, ht.prototype.K = function() {
4653
- this.F || (this.I || this.m || this.h ? Vt(this) : this.O());
4653
+ this.F || (this.I || this.m || this.h ? Gt(this) : this.O());
4654
4654
  }, ht.prototype.O = function() {
4655
- Vt(this);
4655
+ Gt(this);
4656
4656
  }, ht.prototype.getStatus = function() {
4657
4657
  try {
4658
4658
  return 2 < mt(this) ? this.a.status : -1;
@@ -4660,8 +4660,8 @@ Found: `.concat(j.toString().split(`
4660
4660
  return -1;
4661
4661
  }
4662
4662
  };
4663
- var Zt = {}, Rt = null;
4664
- function rn(x) {
4663
+ var qt = {}, Rt = null;
4664
+ function an(x) {
4665
4665
  var Z = x.length, te = 3 * Z / 4;
4666
4666
  te % 3 ? te = Math.floor(te) : ee("=.", x[Z - 1]) && (te = ee("=.", x[Z - 2]) ? te - 2 : te - 1);
4667
4667
  var ae = new Uint8Array(te), ge = 0;
@@ -4676,7 +4676,7 @@ Found: `.concat(j.toString().split(`
4676
4676
  }
4677
4677
  return We;
4678
4678
  }
4679
- qt();
4679
+ Yt();
4680
4680
  for (var we = 0; ; ) {
4681
4681
  var _e = he(-1), Ee = he(0), De = he(64), Le = he(64);
4682
4682
  if (Le === 64 && _e === -1)
@@ -4687,12 +4687,12 @@ Found: `.concat(j.toString().split(`
4687
4687
  ae[ge++] = me;
4688
4688
  }), ae.subarray(0, ge);
4689
4689
  }
4690
- function qt() {
4690
+ function Yt() {
4691
4691
  if (!Rt) {
4692
4692
  Rt = {};
4693
4693
  for (var x = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), Z = ["+/=", "+/", "-_=", "-_.", "-_"], te = 0; 5 > te; te++) {
4694
4694
  var ae = x.concat(Z[te].split(""));
4695
- Zt[te] = ae;
4695
+ qt[te] = ae;
4696
4696
  for (var ge = 0; ge < ae.length; ge++) {
4697
4697
  var me = ae[ge];
4698
4698
  Rt[me] === void 0 && (Rt[me] = ge);
@@ -4700,7 +4700,7 @@ Found: `.concat(j.toString().split(`
4700
4700
  }
4701
4701
  }
4702
4702
  }
4703
- var an = ["content-type", "grpc-status", "grpc-message"];
4703
+ var sn = ["content-type", "grpc-status", "grpc-message"];
4704
4704
  function ct(x) {
4705
4705
  this.a = x.T, this.l = null, this.b = [], this.h = [], this.g = [], this.f = [], this.c = [], this.j = !1, this.i = 0, this.m = new L();
4706
4706
  var Z = this;
@@ -4716,7 +4716,7 @@ Found: `.concat(j.toString().split(`
4716
4716
  }
4717
4717
  if (ae = (te = ae || "").length - te.length % 4, (te = te.substr(Z.i, ae - Z.i)).length == 0)
4718
4718
  return;
4719
- Z.i = ae, te = rn(te);
4719
+ Z.i = ae, te = an(te);
4720
4720
  } else {
4721
4721
  if (te.lastIndexOf("application/grpc", 0) != 0)
4722
4722
  return void vt(Z, { code: 2, message: "Unknown Content-type received.", metadata: {} });
@@ -4727,7 +4727,7 @@ Found: `.concat(j.toString().split(`
4727
4727
  if ("response" in _e.a)
4728
4728
  return _e.a.response;
4729
4729
  switch (_e.j) {
4730
- case zt:
4730
+ case Wt:
4731
4731
  case "text":
4732
4732
  return _e.a.responseText;
4733
4733
  case "arraybuffer":
@@ -4761,9 +4761,9 @@ Found: `.concat(j.toString().split(`
4761
4761
  p(Ne, ze, gt, "stream already broken");
4762
4762
  break;
4763
4763
  case W:
4764
- (He = ze[gt]) == z || He == O ? Ne.h = He : p(Ne, ze, gt, "invalid frame byte"), Ne.b = B, Ne.a = 0, Ne.f = 0;
4764
+ (He = ze[gt]) == z || He == O ? Ne.h = He : p(Ne, ze, gt, "invalid frame byte"), Ne.b = k, Ne.a = 0, Ne.f = 0;
4765
4765
  break;
4766
- case B:
4766
+ case k:
4767
4767
  De(ze[gt]);
4768
4768
  break;
4769
4769
  case N:
@@ -4831,7 +4831,7 @@ Found: `.concat(j.toString().split(`
4831
4831
  });
4832
4832
  }(Z.a);
4833
4833
  if (Object.keys(me).forEach(function(he) {
4834
- an.includes(he) || (ge[he] = me[he]);
4834
+ sn.includes(he) || (ge[he] = me[he]);
4835
4835
  }), function(he, we) {
4836
4836
  for (var _e = 0; _e < he.g.length; _e++)
4837
4837
  he.g[_e](we);
@@ -4882,7 +4882,7 @@ Found: `.concat(j.toString().split(`
4882
4882
  }
4883
4883
  ue == 10 && Z.j || vt(Z, { code: ue, message: m(te), metadata: {} });
4884
4884
  } else
4885
- te = !1, "grpc-status" in me && (ue = $t(Z.a, "grpc-status"), "grpc-message" in me && (ae = $t(Z.a, "grpc-message")), Number(ue) != 0 && (vt(Z, { code: Number(ue), message: ae, metadata: me }), te = !0)), te || function(he) {
4885
+ te = !1, "grpc-status" in me && (ue = Zt(Z.a, "grpc-status"), "grpc-message" in me && (ae = Zt(Z.a, "grpc-message")), Number(ue) != 0 && (vt(Z, { code: Number(ue), message: ae, metadata: me }), te = !0)), te || function(he) {
4886
4886
  for (var we = 0; we < he.c.length; we++)
4887
4887
  he.c[we]();
4888
4888
  }(Z);
@@ -4901,18 +4901,18 @@ Found: `.concat(j.toString().split(`
4901
4901
  function nt(x) {
4902
4902
  this.a = E("format", x) || "text", this.f = E("suppressCorsPreflight", x) || !1, this.c = E("withCredentials", x) || !1, this.b = E("streamInterceptors", x) || [], this.g = E("unaryInterceptors", x) || [];
4903
4903
  }
4904
- function Lt(x, Z, te) {
4904
+ function Pt(x, Z, te) {
4905
4905
  var ae = Z.getMethodDescriptor(), ge = te + ae.name;
4906
4906
  (te = new ht()).H = x.c;
4907
4907
  var me = new ct({ T: te });
4908
- if (me.l = ae.b, Ft(te.headers, Z.getMetadata()), x.a == "text" ? (te.headers.set("Content-Type", "application/grpc-web-text"), te.headers.set("Accept", "application/grpc-web-text")) : te.headers.set("Content-Type", "application/grpc-web+proto"), te.headers.set("X-User-Agent", "grpc-web-javascript/0.1"), te.headers.set("X-Grpc-Web", "1"), _t(te.headers.b, "deadline")) {
4908
+ if (me.l = ae.b, zt(te.headers, Z.getMetadata()), x.a == "text" ? (te.headers.set("Content-Type", "application/grpc-web-text"), te.headers.set("Accept", "application/grpc-web-text")) : te.headers.set("Content-Type", "application/grpc-web+proto"), te.headers.set("X-User-Agent", "grpc-web-javascript/0.1"), te.headers.set("X-Grpc-Web", "1"), _t(te.headers.b, "deadline")) {
4909
4909
  var ue = te.headers.get("deadline");
4910
4910
  ue = Math.round(ue - (/* @__PURE__ */ new Date()).getTime());
4911
4911
  var he = te.headers;
4912
- _t(he.b, "deadline") && (delete he.b.deadline, he.c--, he.a.length > 2 * he.c && jt(he)), 1 / 0 === ue && (ue = 0), 0 < ue && te.headers.set("grpc-timeout", ue + "m");
4912
+ _t(he.b, "deadline") && (delete he.b.deadline, he.c--, he.a.length > 2 * he.c && xt(he)), 1 / 0 === ue && (ue = 0), 0 < ue && te.headers.set("grpc-timeout", ue + "m");
4913
4913
  }
4914
4914
  if (x.f) {
4915
- jt(he = te.headers), ue = {};
4915
+ xt(he = te.headers), ue = {};
4916
4916
  for (var we = 0; we < he.a.length; we++) {
4917
4917
  var _e = he.a[we];
4918
4918
  ue[_e] = he.b[_e];
@@ -4940,7 +4940,7 @@ Found: `.concat(j.toString().split(`
4940
4940
  Ee[he] = ae % 256, ae >>>= 8;
4941
4941
  if (ue.set(new Uint8Array(Ee), 1), ue.set(Z, 5), Z = ue, x.a == "text") {
4942
4942
  var De;
4943
- for (x = Z, De === void 0 && (De = 0), qt(), De = Zt[De], Z = [], ae = 0; ae < x.length; ae += 3) {
4943
+ for (x = Z, De === void 0 && (De = 0), Yt(), De = qt[De], Z = [], ae = 0; ae < x.length; ae += 3) {
4944
4944
  _e = x[ae];
4945
4945
  var Le = (Ee = ae + 1 < x.length) ? x[ae + 1] : 0;
4946
4946
  he = _e >> 2, _e = (3 & _e) << 4 | Le >> 4, Le = (15 & Le) << 2 | (we = (ue = ae + 2 < x.length) ? x[ae + 2] : 0) >> 6, we &= 63, ue || (we = 64, Ee || (Le = 64)), Z.push(De[he], De[_e], De[Le] || "", De[we] || "");
@@ -4948,9 +4948,9 @@ Found: `.concat(j.toString().split(`
4948
4948
  Z = Z.join("");
4949
4949
  } else
4950
4950
  x.a == "binary" && (te.j = "arraybuffer");
4951
- return tn(te, ge, Z), me;
4951
+ return nn(te, ge, Z), me;
4952
4952
  }
4953
- function Yt(x, Z, te) {
4953
+ function Kt(x, Z, te) {
4954
4954
  var ae = null, ge = !1;
4955
4955
  x.on("data", function(me) {
4956
4956
  ae = me;
@@ -4964,7 +4964,7 @@ Found: `.concat(j.toString().split(`
4964
4964
  ge || (ae == null ? Z({ code: 2, message: "Incomplete response" }) : Z(null, ae)), te && Z(null, null);
4965
4965
  });
4966
4966
  }
4967
- function Pt(x, Z) {
4967
+ function Dt(x, Z) {
4968
4968
  var te = x;
4969
4969
  return Z.forEach(function(ae) {
4970
4970
  var ge = te;
@@ -4983,17 +4983,17 @@ Found: `.concat(j.toString().split(`
4983
4983
  var me = this;
4984
4984
  ae = q(x, Z, "unary", ae);
4985
4985
  var ue = x.substr(0, x.length - ae.name.length);
4986
- return Yt(x = Pt(function(he) {
4987
- return Lt(me, he, ue);
4986
+ return Kt(x = Dt(function(he) {
4987
+ return Pt(me, he, ue);
4988
4988
  }, this.b).call(this, $(ae, Z, te)), ge, !1), new y(x);
4989
4989
  }, nt.prototype.M = function(x, Z, te, ae) {
4990
4990
  var ge = this;
4991
4991
  ae = q(x, Z, "unary", ae);
4992
4992
  var me = x.substr(0, x.length - ae.name.length);
4993
- return Pt(function(ue) {
4993
+ return Dt(function(ue) {
4994
4994
  return new Promise(function(he, we) {
4995
4995
  var _e, Ee, De;
4996
- Yt(Lt(ge, ue, me), function(Le, We, ze, He) {
4996
+ Kt(Pt(ge, ue, me), function(Le, We, ze, He) {
4997
4997
  Le ? we(Le) : We ? De = We : ze ? Ee = ze : He ? _e = He : (Le = ue.getMethodDescriptor(), he(new d(De, Le, We = (We = _e) === void 0 ? {} : We, Ee === void 0 ? null : Ee)));
4998
4998
  }, !0);
4999
4999
  });
@@ -5006,8 +5006,8 @@ Found: `.concat(j.toString().split(`
5006
5006
  var ge = this;
5007
5007
  ae = q(x, Z, "server_streaming", ae);
5008
5008
  var me = x.substr(0, x.length - ae.name.length);
5009
- return Pt(function(ue) {
5010
- return Lt(ge, ue, me);
5009
+ return Dt(function(ue) {
5010
+ return Pt(ge, ue, me);
5011
5011
  }, this.b).call(this, $(ae, Z, te));
5012
5012
  }, nt.prototype.serverStreaming = nt.prototype.R, nt.prototype.unaryCall = nt.prototype.unaryCall, nt.prototype.thenableCall = nt.prototype.M, nt.prototype.rpcCall = nt.prototype.P, e.exports.AbstractClientBase = { MethodInfo: function(x, Z, te, ae, ge) {
5013
5013
  this.name = ae, this.b = ge, this.f = x, this.a = Z, this.c = te;
@@ -5410,32 +5410,32 @@ Found: `.concat(j.toString().split(`
5410
5410
  yield Promise.race([this.getConstructor().waitForConnectivity(), new Promise((U) => {
5411
5411
  W = setTimeout(U, d ? Math.min(r.a.minute, d()) : r.a.minute);
5412
5412
  })]), W && clearTimeout(W);
5413
- const B = yield o()(I, Object.assign(Object.assign({}, y), { headers: Object.assign(Object.assign(Object.assign(Object.assign({}, $ !== !1 ? { "Content-Type": "application/json" } : {}), this.getHeaders()), y.headers || {}), C !== void 0 ? { Authorization: `Bearer ${C}` } : {}), signal: _.signal })), N = B.headers.get("content-type") || "", P = N && N.startsWith("application/json"), z = P ? yield B.json() : yield B.text(), O = () => new u.a(m, I, B.status, z, z && z.validationErrors || {}, B.headers);
5414
- if (!B.ok)
5415
- throw this.verbose && w.a[B.status >= 500 ? "warn" : "info"]("Response error", { method: m, url: I, statusCode: B.status }), O();
5416
- const p = this.validateHeaders(B.headers);
5413
+ const k = yield o()(I, Object.assign(Object.assign({}, y), { headers: Object.assign(Object.assign(Object.assign(Object.assign({}, $ !== !1 ? { "Content-Type": "application/json" } : {}), this.getHeaders()), y.headers || {}), C !== void 0 ? { Authorization: `Bearer ${C}` } : {}), signal: _.signal })), N = k.headers.get("content-type") || "", P = N && N.startsWith("application/json"), z = P ? yield k.json() : yield k.text(), O = () => new u.a(m, I, k.status, z, z && z.validationErrors || {}, k.headers);
5414
+ if (!k.ok)
5415
+ throw this.verbose && w.a[k.status >= 500 ? "warn" : "info"]("Response error", { method: m, url: I, statusCode: k.status }), O();
5416
+ const p = this.validateHeaders(k.headers);
5417
5417
  if (Object.keys(p).length !== 0)
5418
5418
  throw new f(p, O());
5419
- if (B.status === 204)
5420
- return { body: void 0, headers: B.headers };
5419
+ if (k.status === 204)
5420
+ return { body: void 0, headers: k.headers };
5421
5421
  if ($ && !P)
5422
5422
  throw new Error(`Response is not JSON: ${JSON.stringify(z)}`);
5423
- return { body: z, headers: B.headers };
5423
+ return { body: z, headers: k.headers };
5424
5424
  } catch (W) {
5425
- const B = W, N = q || R.has(m);
5426
- if (B.message === "Network request failed")
5427
- throw new c(B, I, N);
5428
- if (B.type === "system" && ["EAI_AGAIN", "ECONNREFUSED", "EHOSTUNREACH", "ENOTFOUND"].find((p) => p === B.code))
5429
- throw new c(B, I, !0);
5430
- if (B.type === "system" && ["ETIMEDOUT", "ECONNRESET", "ESOCKETTIMEDOUT", "EPIPE"].find((p) => p === B.code))
5431
- throw new c(B, I, N);
5432
- if (B.name === "AbortError")
5433
- throw new c(B, I, N);
5434
- const P = Object(h.a)(B, u.a), { statusCode: z } = P;
5425
+ const k = W, N = q || R.has(m);
5426
+ if (k.message === "Network request failed")
5427
+ throw new c(k, I, N);
5428
+ if (k.type === "system" && ["EAI_AGAIN", "ECONNREFUSED", "EHOSTUNREACH", "ENOTFOUND"].find((p) => p === k.code))
5429
+ throw new c(k, I, !0);
5430
+ if (k.type === "system" && ["ETIMEDOUT", "ECONNRESET", "ESOCKETTIMEDOUT", "EPIPE"].find((p) => p === k.code))
5431
+ throw new c(k, I, N);
5432
+ if (k.name === "AbortError")
5433
+ throw new c(k, I, N);
5434
+ const P = Object(h.a)(k, u.a), { statusCode: z } = P;
5435
5435
  if (z === 408 || z === 429 || z === 502 || z === 503 || z === 504)
5436
- throw this.verbose && !N && w.a.warn("Potentially unsafe retry"), new c(B, I, !0);
5436
+ throw this.verbose && !N && w.a.warn("Potentially unsafe retry"), new c(k, I, !0);
5437
5437
  const O = this.validateHeaders(P.headers);
5438
- throw Object.keys(O).length !== 0 ? new f(O, P) : (yield this.getConstructor().onResponseError(P), B);
5438
+ throw Object.keys(O).length !== 0 ? new f(O, P) : (yield this.getConstructor().onResponseError(P), k);
5439
5439
  } finally {
5440
5440
  L && clearTimeout(L);
5441
5441
  }
@@ -5585,10 +5585,10 @@ Found: `.concat(j.toString().split(`
5585
5585
  var I = this;
5586
5586
  this.next = null, this.entry = null, this.finish = function() {
5587
5587
  (function(_, L, W) {
5588
- var B = _.entry;
5589
- for (_.entry = null; B; ) {
5590
- var N = B.callback;
5591
- L.pendingcb--, N(W), B = B.next;
5588
+ var k = _.entry;
5589
+ for (_.entry = null; k; ) {
5590
+ var N = k.callback;
5591
+ L.pendingcb--, N(W), k = k.next;
5592
5592
  }
5593
5593
  L.corkedRequestsFree ? L.corkedRequestsFree.next = _ : L.corkedRequestsFree = _;
5594
5594
  })(I, m);
@@ -5607,8 +5607,8 @@ Found: `.concat(j.toString().split(`
5607
5607
  c = c || n(23), m = m || {};
5608
5608
  var _ = I instanceof c;
5609
5609
  this.objectMode = !!m.objectMode, _ && (this.objectMode = this.objectMode || !!m.writableObjectMode);
5610
- var L = m.highWaterMark, W = m.writableHighWaterMark, B = this.objectMode ? 16 : 16384;
5611
- this.highWaterMark = L || L === 0 ? L : _ && (W || W === 0) ? W : B, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
5610
+ var L = m.highWaterMark, W = m.writableHighWaterMark, k = this.objectMode ? 16 : 16384;
5611
+ this.highWaterMark = L || L === 0 ? L : _ && (W || W === 0) ? W : k, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
5612
5612
  var N = m.decodeStrings === !1;
5613
5613
  this.decodeStrings = !N, this.defaultEncoding = m.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(P) {
5614
5614
  (function(z, O) {
@@ -5631,23 +5631,23 @@ Found: `.concat(j.toString().split(`
5631
5631
  return new M(m);
5632
5632
  this._writableState = new F(m, this), this.writable = !0, m && (typeof m.write == "function" && (this._write = m.write), typeof m.writev == "function" && (this._writev = m.writev), typeof m.destroy == "function" && (this._destroy = m.destroy), typeof m.final == "function" && (this._final = m.final)), w.call(this);
5633
5633
  }
5634
- function A(m, I, _, L, W, B, N) {
5635
- I.writelen = L, I.writecb = N, I.writing = !0, I.sync = !0, _ ? m._writev(W, I.onwrite) : m._write(W, B, I.onwrite), I.sync = !1;
5634
+ function A(m, I, _, L, W, k, N) {
5635
+ I.writelen = L, I.writecb = N, I.writing = !0, I.sync = !0, _ ? m._writev(W, I.onwrite) : m._write(W, k, I.onwrite), I.sync = !1;
5636
5636
  }
5637
5637
  function d(m, I, _, L) {
5638
- _ || function(W, B) {
5639
- B.length === 0 && B.needDrain && (B.needDrain = !1, W.emit("drain"));
5638
+ _ || function(W, k) {
5639
+ k.length === 0 && k.needDrain && (k.needDrain = !1, W.emit("drain"));
5640
5640
  }(m, I), I.pendingcb--, L(), y(m, I);
5641
5641
  }
5642
5642
  function C(m, I) {
5643
5643
  I.bufferProcessing = !0;
5644
5644
  var _ = I.bufferedRequest;
5645
5645
  if (m._writev && _ && _.next) {
5646
- var L = I.bufferedRequestCount, W = new Array(L), B = I.corkedRequestsFree;
5647
- B.entry = _;
5646
+ var L = I.bufferedRequestCount, W = new Array(L), k = I.corkedRequestsFree;
5647
+ k.entry = _;
5648
5648
  for (var N = 0, P = !0; _; )
5649
5649
  W[N] = _, _.isBuf || (P = !1), _ = _.next, N += 1;
5650
- W.allBuffers = P, A(m, I, !0, I.length, W, "", B.finish), I.pendingcb++, I.lastBufferedRequest = null, B.next ? (I.corkedRequestsFree = B.next, B.next = null) : I.corkedRequestsFree = new o(I), I.bufferedRequestCount = 0;
5650
+ W.allBuffers = P, A(m, I, !0, I.length, W, "", k.finish), I.pendingcb++, I.lastBufferedRequest = null, k.next ? (I.corkedRequestsFree = k.next, k.next = null) : I.corkedRequestsFree = new o(I), I.bufferedRequestCount = 0;
5651
5651
  } else {
5652
5652
  for (; _; ) {
5653
5653
  var z = _.chunk, O = _.encoding, p = _.callback;
@@ -5690,7 +5690,7 @@ Found: `.concat(j.toString().split(`
5690
5690
  }, M.prototype.pipe = function() {
5691
5691
  this.emit("error", new Error("Cannot pipe, not readable"));
5692
5692
  }, M.prototype.write = function(m, I, _) {
5693
- var L, W = this._writableState, B = !1, N = !W.objectMode && (L = m, h.isBuffer(L) || L instanceof g);
5693
+ var L, W = this._writableState, k = !1, N = !W.objectMode && (L = m, h.isBuffer(L) || L instanceof g);
5694
5694
  return N && !h.isBuffer(m) && (m = function(P) {
5695
5695
  return h.from(P);
5696
5696
  }(m)), typeof I == "function" && (_ = I, I = null), N ? I = "buffer" : I || (I = W.defaultEncoding), typeof _ != "function" && (_ = j), W.ended ? function(P, z) {
@@ -5699,7 +5699,7 @@ Found: `.concat(j.toString().split(`
5699
5699
  }(this, _) : (N || function(P, z, O, p) {
5700
5700
  var U = !0, V = !1;
5701
5701
  return O === null ? V = new TypeError("May not write null values to stream") : typeof O == "string" || O === void 0 || z.objectMode || (V = new TypeError("Invalid non-string/buffer chunk")), V && (P.emit("error", V), l.nextTick(p, V), U = !1), U;
5702
- }(this, W, m, _)) && (W.pendingcb++, B = function(P, z, O, p, U, V) {
5702
+ }(this, W, m, _)) && (W.pendingcb++, k = function(P, z, O, p, U, V) {
5703
5703
  if (!O) {
5704
5704
  var Q = function(G, S, T) {
5705
5705
  return G.objectMode || G.decodeStrings === !1 || typeof S != "string" || (S = h.from(S, T)), S;
@@ -5715,7 +5715,7 @@ Found: `.concat(j.toString().split(`
5715
5715
  } else
5716
5716
  A(P, z, !1, ee, p, U, V);
5717
5717
  return ne;
5718
- }(this, W, N, m, I, _)), B;
5718
+ }(this, W, N, m, I, _)), k;
5719
5719
  }, M.prototype.cork = function() {
5720
5720
  this._writableState.corked++;
5721
5721
  }, M.prototype.uncork = function() {
@@ -5731,8 +5731,8 @@ Found: `.concat(j.toString().split(`
5731
5731
  _(new Error("_write() is not implemented"));
5732
5732
  }, M.prototype._writev = null, M.prototype.end = function(m, I, _) {
5733
5733
  var L = this._writableState;
5734
- typeof m == "function" ? (_ = m, m = null, I = null) : typeof I == "function" && (_ = I, I = null), m != null && this.write(m, I), L.corked && (L.corked = 1, this.uncork()), L.ending || L.finished || function(W, B, N) {
5735
- B.ending = !0, y(W, B), N && (B.finished ? l.nextTick(N) : W.once("finish", N)), B.ended = !0, W.writable = !1;
5734
+ typeof m == "function" ? (_ = m, m = null, I = null) : typeof I == "function" && (_ = I, I = null), m != null && this.write(m, I), L.corked && (L.corked = 1, this.uncork()), L.ending || L.finished || function(W, k, N) {
5735
+ k.ending = !0, y(W, k), N && (k.finished ? l.nextTick(N) : W.once("finish", N)), k.ended = !0, W.writable = !1;
5736
5736
  }(this, L, _);
5737
5737
  }, Object.defineProperty(M.prototype, "destroyed", { get: function() {
5738
5738
  return this._writableState !== void 0 && this._writableState.destroyed;
@@ -6035,10 +6035,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6035
6035
  var I = this;
6036
6036
  this.next = null, this.entry = null, this.finish = function() {
6037
6037
  (function(_, L, W) {
6038
- var B = _.entry;
6039
- for (_.entry = null; B; ) {
6040
- var N = B.callback;
6041
- L.pendingcb--, N(W), B = B.next;
6038
+ var k = _.entry;
6039
+ for (_.entry = null; k; ) {
6040
+ var N = k.callback;
6041
+ L.pendingcb--, N(W), k = k.next;
6042
6042
  }
6043
6043
  L.corkedRequestsFree ? L.corkedRequestsFree.next = _ : L.corkedRequestsFree = _;
6044
6044
  })(I, m);
@@ -6057,8 +6057,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6057
6057
  c = c || n(36), m = m || {};
6058
6058
  var _ = I instanceof c;
6059
6059
  this.objectMode = !!m.objectMode, _ && (this.objectMode = this.objectMode || !!m.writableObjectMode);
6060
- var L = m.highWaterMark, W = m.writableHighWaterMark, B = this.objectMode ? 16 : 16384;
6061
- this.highWaterMark = L || L === 0 ? L : _ && (W || W === 0) ? W : B, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
6060
+ var L = m.highWaterMark, W = m.writableHighWaterMark, k = this.objectMode ? 16 : 16384;
6061
+ this.highWaterMark = L || L === 0 ? L : _ && (W || W === 0) ? W : k, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
6062
6062
  var N = m.decodeStrings === !1;
6063
6063
  this.decodeStrings = !N, this.defaultEncoding = m.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(P) {
6064
6064
  (function(z, O) {
@@ -6081,23 +6081,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6081
6081
  return new M(m);
6082
6082
  this._writableState = new F(m, this), this.writable = !0, m && (typeof m.write == "function" && (this._write = m.write), typeof m.writev == "function" && (this._writev = m.writev), typeof m.destroy == "function" && (this._destroy = m.destroy), typeof m.final == "function" && (this._final = m.final)), w.call(this);
6083
6083
  }
6084
- function A(m, I, _, L, W, B, N) {
6085
- I.writelen = L, I.writecb = N, I.writing = !0, I.sync = !0, _ ? m._writev(W, I.onwrite) : m._write(W, B, I.onwrite), I.sync = !1;
6084
+ function A(m, I, _, L, W, k, N) {
6085
+ I.writelen = L, I.writecb = N, I.writing = !0, I.sync = !0, _ ? m._writev(W, I.onwrite) : m._write(W, k, I.onwrite), I.sync = !1;
6086
6086
  }
6087
6087
  function d(m, I, _, L) {
6088
- _ || function(W, B) {
6089
- B.length === 0 && B.needDrain && (B.needDrain = !1, W.emit("drain"));
6088
+ _ || function(W, k) {
6089
+ k.length === 0 && k.needDrain && (k.needDrain = !1, W.emit("drain"));
6090
6090
  }(m, I), I.pendingcb--, L(), y(m, I);
6091
6091
  }
6092
6092
  function C(m, I) {
6093
6093
  I.bufferProcessing = !0;
6094
6094
  var _ = I.bufferedRequest;
6095
6095
  if (m._writev && _ && _.next) {
6096
- var L = I.bufferedRequestCount, W = new Array(L), B = I.corkedRequestsFree;
6097
- B.entry = _;
6096
+ var L = I.bufferedRequestCount, W = new Array(L), k = I.corkedRequestsFree;
6097
+ k.entry = _;
6098
6098
  for (var N = 0, P = !0; _; )
6099
6099
  W[N] = _, _.isBuf || (P = !1), _ = _.next, N += 1;
6100
- W.allBuffers = P, A(m, I, !0, I.length, W, "", B.finish), I.pendingcb++, I.lastBufferedRequest = null, B.next ? (I.corkedRequestsFree = B.next, B.next = null) : I.corkedRequestsFree = new o(I), I.bufferedRequestCount = 0;
6100
+ W.allBuffers = P, A(m, I, !0, I.length, W, "", k.finish), I.pendingcb++, I.lastBufferedRequest = null, k.next ? (I.corkedRequestsFree = k.next, k.next = null) : I.corkedRequestsFree = new o(I), I.bufferedRequestCount = 0;
6101
6101
  } else {
6102
6102
  for (; _; ) {
6103
6103
  var z = _.chunk, O = _.encoding, p = _.callback;
@@ -6140,7 +6140,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6140
6140
  }, M.prototype.pipe = function() {
6141
6141
  this.emit("error", new Error("Cannot pipe, not readable"));
6142
6142
  }, M.prototype.write = function(m, I, _) {
6143
- var L, W = this._writableState, B = !1, N = !W.objectMode && (L = m, h.isBuffer(L) || L instanceof g);
6143
+ var L, W = this._writableState, k = !1, N = !W.objectMode && (L = m, h.isBuffer(L) || L instanceof g);
6144
6144
  return N && !h.isBuffer(m) && (m = function(P) {
6145
6145
  return h.from(P);
6146
6146
  }(m)), typeof I == "function" && (_ = I, I = null), N ? I = "buffer" : I || (I = W.defaultEncoding), typeof _ != "function" && (_ = j), W.ended ? function(P, z) {
@@ -6149,7 +6149,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6149
6149
  }(this, _) : (N || function(P, z, O, p) {
6150
6150
  var U = !0, V = !1;
6151
6151
  return O === null ? V = new TypeError("May not write null values to stream") : typeof O == "string" || O === void 0 || z.objectMode || (V = new TypeError("Invalid non-string/buffer chunk")), V && (P.emit("error", V), l.nextTick(p, V), U = !1), U;
6152
- }(this, W, m, _)) && (W.pendingcb++, B = function(P, z, O, p, U, V) {
6152
+ }(this, W, m, _)) && (W.pendingcb++, k = function(P, z, O, p, U, V) {
6153
6153
  if (!O) {
6154
6154
  var Q = function(G, S, T) {
6155
6155
  return G.objectMode || G.decodeStrings === !1 || typeof S != "string" || (S = h.from(S, T)), S;
@@ -6165,7 +6165,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6165
6165
  } else
6166
6166
  A(P, z, !1, ee, p, U, V);
6167
6167
  return ne;
6168
- }(this, W, N, m, I, _)), B;
6168
+ }(this, W, N, m, I, _)), k;
6169
6169
  }, M.prototype.cork = function() {
6170
6170
  this._writableState.corked++;
6171
6171
  }, M.prototype.uncork = function() {
@@ -6181,8 +6181,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6181
6181
  _(new Error("_write() is not implemented"));
6182
6182
  }, M.prototype._writev = null, M.prototype.end = function(m, I, _) {
6183
6183
  var L = this._writableState;
6184
- typeof m == "function" ? (_ = m, m = null, I = null) : typeof I == "function" && (_ = I, I = null), m != null && this.write(m, I), L.corked && (L.corked = 1, this.uncork()), L.ending || L.finished || function(W, B, N) {
6185
- B.ending = !0, y(W, B), N && (B.finished ? l.nextTick(N) : W.once("finish", N)), B.ended = !0, W.writable = !1;
6184
+ typeof m == "function" ? (_ = m, m = null, I = null) : typeof I == "function" && (_ = I, I = null), m != null && this.write(m, I), L.corked && (L.corked = 1, this.uncork()), L.ending || L.finished || function(W, k, N) {
6185
+ k.ending = !0, y(W, k), N && (k.finished ? l.nextTick(N) : W.once("finish", N)), k.ended = !0, W.writable = !1;
6186
6186
  }(this, L, _);
6187
6187
  }, Object.defineProperty(M.prototype, "destroyed", { get: function() {
6188
6188
  return this._writableState !== void 0 && this._writableState.destroyed;
@@ -6336,31 +6336,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6336
6336
  for (g("flow", p.flowing); p.flowing && O.read() !== null; )
6337
6337
  ;
6338
6338
  }
6339
- function B(O, p) {
6339
+ function k(O, p) {
6340
6340
  return p.length === 0 ? null : (p.objectMode ? U = p.buffer.shift() : !O || O >= p.length ? (U = p.decoder ? p.buffer.join("") : p.buffer.length === 1 ? p.buffer.head.data : p.buffer.concat(p.length), p.buffer.clear()) : U = function(V, Q, ee) {
6341
6341
  var ne;
6342
6342
  return V < Q.head.data.length ? (ne = Q.head.data.slice(0, V), Q.head.data = Q.head.data.slice(V)) : ne = V === Q.head.data.length ? Q.shift() : ee ? function(Y, G) {
6343
- var S = G.head, T = 1, k = S.data;
6344
- for (Y -= k.length; S = S.next; ) {
6343
+ var S = G.head, T = 1, B = S.data;
6344
+ for (Y -= B.length; S = S.next; ) {
6345
6345
  var J = S.data, K = Y > J.length ? J.length : Y;
6346
- if (K === J.length ? k += J : k += J.slice(0, Y), (Y -= K) === 0) {
6346
+ if (K === J.length ? B += J : B += J.slice(0, Y), (Y -= K) === 0) {
6347
6347
  K === J.length ? (++T, S.next ? G.head = S.next : G.head = G.tail = null) : (G.head = S, S.data = J.slice(K));
6348
6348
  break;
6349
6349
  }
6350
6350
  ++T;
6351
6351
  }
6352
- return G.length -= T, k;
6352
+ return G.length -= T, B;
6353
6353
  }(V, Q) : function(Y, G) {
6354
- var S = f.allocUnsafe(Y), T = G.head, k = 1;
6354
+ var S = f.allocUnsafe(Y), T = G.head, B = 1;
6355
6355
  for (T.data.copy(S), Y -= T.data.length; T = T.next; ) {
6356
6356
  var J = T.data, K = Y > J.length ? J.length : Y;
6357
6357
  if (J.copy(S, S.length - Y, 0, K), (Y -= K) === 0) {
6358
- K === J.length ? (++k, T.next ? G.head = T.next : G.head = G.tail = null) : (G.head = T, T.data = J.slice(K));
6358
+ K === J.length ? (++B, T.next ? G.head = T.next : G.head = G.tail = null) : (G.head = T, T.data = J.slice(K));
6359
6359
  break;
6360
6360
  }
6361
- ++k;
6361
+ ++B;
6362
6362
  }
6363
- return G.length -= k, S;
6363
+ return G.length -= B, S;
6364
6364
  }(V, Q), ne;
6365
6365
  }(O, p.buffer, p.decoder), U);
6366
6366
  var U;
@@ -6388,7 +6388,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6388
6388
  if ((O = $(O, p)) === 0 && p.ended)
6389
6389
  return p.length === 0 && N(this), null;
6390
6390
  var V, Q = p.needReadable;
6391
- return g("need readable", Q), (p.length === 0 || p.length - O < p.highWaterMark) && g("length less than watermark", Q = !0), p.ended || p.reading ? g("reading or ended", Q = !1) : Q && (g("do read"), p.reading = !0, p.sync = !0, p.length === 0 && (p.needReadable = !0), this._read(p.highWaterMark), p.sync = !1, p.reading || (O = $(U, p))), (V = O > 0 ? B(O, p) : null) === null ? (p.needReadable = !0, O = 0) : p.length -= O, p.length === 0 && (p.ended || (p.needReadable = !0), U !== O && p.ended && N(this)), V !== null && this.emit("data", V), V;
6391
+ return g("need readable", Q), (p.length === 0 || p.length - O < p.highWaterMark) && g("length less than watermark", Q = !0), p.ended || p.reading ? g("reading or ended", Q = !1) : Q && (g("do read"), p.reading = !0, p.sync = !0, p.length === 0 && (p.needReadable = !0), this._read(p.highWaterMark), p.sync = !1, p.reading || (O = $(U, p))), (V = O > 0 ? k(O, p) : null) === null ? (p.needReadable = !0, O = 0) : p.length -= O, p.length === 0 && (p.ended || (p.needReadable = !0), U !== O && p.ended && N(this)), V !== null && this.emit("data", V), V;
6392
6392
  }, A.prototype._read = function(O) {
6393
6393
  this.emit("error", new Error("_read() is not implemented"));
6394
6394
  }, A.prototype.pipe = function(O, p) {
@@ -6406,7 +6406,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6406
6406
  V.pipesCount += 1, g("pipe count=%d opts=%j", V.pipesCount, p);
6407
6407
  var Q = (!p || p.end !== !1) && O !== i.stdout && O !== i.stderr ? ne : re;
6408
6408
  function ee(se, fe) {
6409
- g("onunpipe"), se === U && fe && fe.hasUnpiped === !1 && (fe.hasUnpiped = !0, g("cleanup"), O.removeListener("close", J), O.removeListener("finish", K), O.removeListener("drain", Y), O.removeListener("error", k), O.removeListener("unpipe", ee), U.removeListener("end", ne), U.removeListener("end", re), U.removeListener("data", T), G = !0, !V.awaitDrain || O._writableState && !O._writableState.needDrain || Y());
6409
+ g("onunpipe"), se === U && fe && fe.hasUnpiped === !1 && (fe.hasUnpiped = !0, g("cleanup"), O.removeListener("close", J), O.removeListener("finish", K), O.removeListener("drain", Y), O.removeListener("error", B), O.removeListener("unpipe", ee), U.removeListener("end", ne), U.removeListener("end", re), U.removeListener("data", T), G = !0, !V.awaitDrain || O._writableState && !O._writableState.needDrain || Y());
6410
6410
  }
6411
6411
  function ne() {
6412
6412
  g("onend"), O.end();
@@ -6423,8 +6423,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6423
6423
  function T(se) {
6424
6424
  g("ondata"), S = !1, O.write(se) !== !1 || S || ((V.pipesCount === 1 && V.pipes === O || V.pipesCount > 1 && z(V.pipes, O) !== -1) && !G && (g("false write response, pause", U._readableState.awaitDrain), U._readableState.awaitDrain++, S = !0), U.pause());
6425
6425
  }
6426
- function k(se) {
6427
- g("onerror", se), re(), O.removeListener("error", k), c(O, "error") === 0 && O.emit("error", se);
6426
+ function B(se) {
6427
+ g("onerror", se), re(), O.removeListener("error", B), c(O, "error") === 0 && O.emit("error", se);
6428
6428
  }
6429
6429
  function J() {
6430
6430
  O.removeListener("finish", K), re();
@@ -6439,7 +6439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6439
6439
  if (typeof se.prependListener == "function")
6440
6440
  return se.prependListener(fe, ve);
6441
6441
  se._events && se._events[fe] ? o(se._events[fe]) ? se._events[fe].unshift(ve) : se._events[fe] = [ve, se._events[fe]] : se.on(fe, ve);
6442
- }(O, "error", k), O.once("close", J), O.once("finish", K), O.emit("pipe", U), V.flowing || (g("pipe resume"), U.resume()), O;
6442
+ }(O, "error", B), O.once("close", J), O.once("finish", K), O.emit("pipe", U), V.flowing || (g("pipe resume"), U.resume()), O;
6443
6443
  }, A.prototype.unpipe = function(O) {
6444
6444
  var p = this._readableState, U = { hasUnpiped: !1 };
6445
6445
  if (p.pipesCount === 0)
@@ -6494,7 +6494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6494
6494
  }, this;
6495
6495
  }, Object.defineProperty(A.prototype, "readableHighWaterMark", { enumerable: !1, get: function() {
6496
6496
  return this._readableState.highWaterMark;
6497
- } }), A._fromList = B;
6497
+ } }), A._fromList = k;
6498
6498
  }).call(this, n(6), n(2));
6499
6499
  }, function(e, t, n) {
6500
6500
  e.exports = n(21).EventEmitter;
@@ -6628,26 +6628,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6628
6628
  if (l(y) !== l(m))
6629
6629
  return !1;
6630
6630
  var L = (_ = _ || { actual: [], expected: [] }).actual.indexOf(y);
6631
- return L !== -1 && L === _.expected.indexOf(m) || (_.actual.push(y), _.expected.push(m), function(W, B, N, P) {
6632
- if (W == null || B == null)
6631
+ return L !== -1 && L === _.expected.indexOf(m) || (_.actual.push(y), _.expected.push(m), function(W, k, N, P) {
6632
+ if (W == null || k == null)
6633
6633
  return !1;
6634
- if (o.isPrimitive(W) || o.isPrimitive(B))
6635
- return W === B;
6636
- if (N && Object.getPrototypeOf(W) !== Object.getPrototypeOf(B))
6634
+ if (o.isPrimitive(W) || o.isPrimitive(k))
6635
+ return W === k;
6636
+ if (N && Object.getPrototypeOf(W) !== Object.getPrototypeOf(k))
6637
6637
  return !1;
6638
- var z = d(W), O = d(B);
6638
+ var z = d(W), O = d(k);
6639
6639
  if (z && !O || !z && O)
6640
6640
  return !1;
6641
6641
  if (z)
6642
- return W = u.call(W), B = u.call(B), A(W, B, N);
6643
- var p, U, V = q(W), Q = q(B);
6642
+ return W = u.call(W), k = u.call(k), A(W, k, N);
6643
+ var p, U, V = q(W), Q = q(k);
6644
6644
  if (V.length !== Q.length)
6645
6645
  return !1;
6646
6646
  for (V.sort(), Q.sort(), U = V.length - 1; U >= 0; U--)
6647
6647
  if (V[U] !== Q[U])
6648
6648
  return !1;
6649
6649
  for (U = V.length - 1; U >= 0; U--)
6650
- if (p = V[U], !A(W[p], B[p], N, P))
6650
+ if (p = V[U], !A(W[p], k[p], N, P))
6651
6651
  return !1;
6652
6652
  return !0;
6653
6653
  }(y, m, I, _));
@@ -6682,8 +6682,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6682
6682
  }
6683
6683
  return P;
6684
6684
  }(m), _ = (I && I.name ? " (" + I.name + ")." : ".") + (_ ? " " + _ : "."), y && !L && F(L, I, "Missing expected exception" + _);
6685
- var W = typeof _ == "string", B = !y && L && !I;
6686
- if ((!y && o.isError(L) && W && C(L, I) || B) && F(L, I, "Got unwanted exception" + _), y && L && I && !C(L, I) || !y && L)
6685
+ var W = typeof _ == "string", k = !y && L && !I;
6686
+ if ((!y && o.isError(L) && W && C(L, I) || k) && F(L, I, "Got unwanted exception" + _), y && L && I && !C(L, I) || !y && L)
6687
6687
  throw L;
6688
6688
  }
6689
6689
  h.AssertionError = function(y) {
@@ -6699,9 +6699,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6699
6699
  var _ = I.stack, L = b(m), W = _.indexOf(`
6700
6700
  ` + L);
6701
6701
  if (W >= 0) {
6702
- var B = _.indexOf(`
6702
+ var k = _.indexOf(`
6703
6703
  `, W + 1);
6704
- _ = _.substring(B + 1);
6704
+ _ = _.substring(k + 1);
6705
6705
  }
6706
6706
  this.stack = _;
6707
6707
  }
@@ -6789,7 +6789,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6789
6789
  var G = this instanceof s;
6790
6790
  this._readableState = new y(Y, this, G), this.readable = !0, Y && (typeof Y.read == "function" && (this._read = Y.read), typeof Y.destroy == "function" && (this._destroy = Y.destroy)), o.call(this);
6791
6791
  }
6792
- function I(Y, G, S, T, k) {
6792
+ function I(Y, G, S, T, B) {
6793
6793
  f("readableAddChunk", G);
6794
6794
  var J, K = Y._readableState;
6795
6795
  if (G === null)
@@ -6799,10 +6799,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6799
6799
  var fe = se.decoder.end();
6800
6800
  fe && fe.length && (se.buffer.push(fe), se.length += se.objectMode ? 1 : fe.length);
6801
6801
  }
6802
- se.ended = !0, se.sync ? W(re) : (se.needReadable = !1, se.emittedReadable || (se.emittedReadable = !0, B(re)));
6802
+ se.ended = !0, se.sync ? W(re) : (se.needReadable = !1, se.emittedReadable || (se.emittedReadable = !0, k(re)));
6803
6803
  }
6804
6804
  }(Y, K);
6805
- else if (k || (J = function(re, se) {
6805
+ else if (B || (J = function(re, se) {
6806
6806
  var fe;
6807
6807
  ve = se, c.isBuffer(ve) || ve instanceof u || typeof se == "string" || se === void 0 || re.objectMode || (fe = new M("chunk", ["string", "Buffer", "Uint8Array"], se));
6808
6808
  var ve;
@@ -6856,9 +6856,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6856
6856
  }
6857
6857
  function W(Y) {
6858
6858
  var G = Y._readableState;
6859
- f("emitReadable", G.needReadable, G.emittedReadable), G.needReadable = !1, G.emittedReadable || (f("emitReadable", G.flowing), G.emittedReadable = !0, i.nextTick(B, Y));
6859
+ f("emitReadable", G.needReadable, G.emittedReadable), G.needReadable = !1, G.emittedReadable || (f("emitReadable", G.flowing), G.emittedReadable = !0, i.nextTick(k, Y));
6860
6860
  }
6861
- function B(Y) {
6861
+ function k(Y) {
6862
6862
  var G = Y._readableState;
6863
6863
  f("emitReadable_", G.destroyed, G.length, G.ended), G.destroyed || !G.length && !G.ended || (Y.emit("readable"), G.emittedReadable = !1), G.needReadable = !G.flowing && !G.ended && G.length <= G.highWaterMark, U(Y);
6864
6864
  }
@@ -6915,8 +6915,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6915
6915
  return f("read: emitReadable", G.length, G.ended), G.length === 0 && G.ended ? Q(this) : W(this), null;
6916
6916
  if ((Y = L(Y, G)) === 0 && G.ended)
6917
6917
  return G.length === 0 && Q(this), null;
6918
- var T, k = G.needReadable;
6919
- return f("need readable", k), (G.length === 0 || G.length - Y < G.highWaterMark) && f("length less than watermark", k = !0), G.ended || G.reading ? f("reading or ended", k = !1) : k && (f("do read"), G.reading = !0, G.sync = !0, G.length === 0 && (G.needReadable = !0), this._read(G.highWaterMark), G.sync = !1, G.reading || (Y = L(S, G))), (T = Y > 0 ? V(Y, G) : null) === null ? (G.needReadable = G.length <= G.highWaterMark, Y = 0) : (G.length -= Y, G.awaitDrain = 0), G.length === 0 && (G.ended || (G.needReadable = !0), S !== Y && G.ended && Q(this)), T !== null && this.emit("data", T), T;
6918
+ var T, B = G.needReadable;
6919
+ return f("need readable", B), (G.length === 0 || G.length - Y < G.highWaterMark) && f("length less than watermark", B = !0), G.ended || G.reading ? f("reading or ended", B = !1) : B && (f("do read"), G.reading = !0, G.sync = !0, G.length === 0 && (G.needReadable = !0), this._read(G.highWaterMark), G.sync = !1, G.reading || (Y = L(S, G))), (T = Y > 0 ? V(Y, G) : null) === null ? (G.needReadable = G.length <= G.highWaterMark, Y = 0) : (G.length -= Y, G.awaitDrain = 0), G.length === 0 && (G.ended || (G.needReadable = !0), S !== Y && G.ended && Q(this)), T !== null && this.emit("data", T), T;
6920
6920
  }, m.prototype._read = function(Y) {
6921
6921
  $(this, new d("_read()"));
6922
6922
  }, m.prototype.pipe = function(Y, G) {
@@ -6932,29 +6932,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6932
6932
  T.pipes.push(Y);
6933
6933
  }
6934
6934
  T.pipesCount += 1, f("pipe count=%d opts=%j", T.pipesCount, G);
6935
- var k = (!G || G.end !== !1) && Y !== i.stdout && Y !== i.stderr ? K : Ie;
6936
- function J(Te, Oe) {
6937
- f("onunpipe"), Te === S && Oe && Oe.hasUnpiped === !1 && (Oe.hasUnpiped = !0, f("cleanup"), Y.removeListener("close", Ce), Y.removeListener("finish", Se), Y.removeListener("drain", re), Y.removeListener("error", ve), Y.removeListener("unpipe", J), S.removeListener("end", K), S.removeListener("end", Ie), S.removeListener("data", fe), se = !0, !T.awaitDrain || Y._writableState && !Y._writableState.needDrain || re());
6935
+ var B = (!G || G.end !== !1) && Y !== i.stdout && Y !== i.stderr ? K : Ie;
6936
+ function J(Re, Oe) {
6937
+ f("onunpipe"), Re === S && Oe && Oe.hasUnpiped === !1 && (Oe.hasUnpiped = !0, f("cleanup"), Y.removeListener("close", Ce), Y.removeListener("finish", Se), Y.removeListener("drain", re), Y.removeListener("error", ve), Y.removeListener("unpipe", J), S.removeListener("end", K), S.removeListener("end", Ie), S.removeListener("data", fe), se = !0, !T.awaitDrain || Y._writableState && !Y._writableState.needDrain || re());
6938
6938
  }
6939
6939
  function K() {
6940
6940
  f("onend"), Y.end();
6941
6941
  }
6942
- T.endEmitted ? i.nextTick(k) : S.once("end", k), Y.on("unpipe", J);
6943
- var re = function(Te) {
6942
+ T.endEmitted ? i.nextTick(B) : S.once("end", B), Y.on("unpipe", J);
6943
+ var re = function(Re) {
6944
6944
  return function() {
6945
- var Oe = Te._readableState;
6946
- f("pipeOnDrain", Oe.awaitDrain), Oe.awaitDrain && Oe.awaitDrain--, Oe.awaitDrain === 0 && l(Te, "data") && (Oe.flowing = !0, U(Te));
6945
+ var Oe = Re._readableState;
6946
+ f("pipeOnDrain", Oe.awaitDrain), Oe.awaitDrain && Oe.awaitDrain--, Oe.awaitDrain === 0 && l(Re, "data") && (Oe.flowing = !0, U(Re));
6947
6947
  };
6948
6948
  }(S);
6949
6949
  Y.on("drain", re);
6950
6950
  var se = !1;
6951
- function fe(Te) {
6951
+ function fe(Re) {
6952
6952
  f("ondata");
6953
- var Oe = Y.write(Te);
6953
+ var Oe = Y.write(Re);
6954
6954
  f("dest.write", Oe), Oe === !1 && ((T.pipesCount === 1 && T.pipes === Y || T.pipesCount > 1 && ne(T.pipes, Y) !== -1) && !se && (f("false write response, pause", T.awaitDrain), T.awaitDrain++), S.pause());
6955
6955
  }
6956
- function ve(Te) {
6957
- f("onerror", Te), Ie(), Y.removeListener("error", ve), l(Y, "error") === 0 && $(Y, Te);
6956
+ function ve(Re) {
6957
+ f("onerror", Re), Ie(), Y.removeListener("error", ve), l(Y, "error") === 0 && $(Y, Re);
6958
6958
  }
6959
6959
  function Ce() {
6960
6960
  Y.removeListener("finish", Se), Ie();
@@ -6965,10 +6965,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6965
6965
  function Ie() {
6966
6966
  f("unpipe"), S.unpipe(Y);
6967
6967
  }
6968
- return S.on("data", fe), function(Te, Oe, Pe) {
6969
- if (typeof Te.prependListener == "function")
6970
- return Te.prependListener(Oe, Pe);
6971
- Te._events && Te._events[Oe] ? Array.isArray(Te._events[Oe]) ? Te._events[Oe].unshift(Pe) : Te._events[Oe] = [Pe, Te._events[Oe]] : Te.on(Oe, Pe);
6968
+ return S.on("data", fe), function(Re, Oe, Pe) {
6969
+ if (typeof Re.prependListener == "function")
6970
+ return Re.prependListener(Oe, Pe);
6971
+ Re._events && Re._events[Oe] ? Array.isArray(Re._events[Oe]) ? Re._events[Oe].unshift(Pe) : Re._events[Oe] = [Pe, Re._events[Oe]] : Re.on(Oe, Pe);
6972
6972
  }(Y, "error", ve), Y.once("close", Ce), Y.once("finish", Se), Y.emit("pipe", S), T.flowing || (f("pipe resume"), S.resume()), Y;
6973
6973
  }, m.prototype.unpipe = function(Y) {
6974
6974
  var G = this._readableState, S = { hasUnpiped: !1 };
@@ -6977,9 +6977,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6977
6977
  if (G.pipesCount === 1)
6978
6978
  return Y && Y !== G.pipes || (Y || (Y = G.pipes), G.pipes = null, G.pipesCount = 0, G.flowing = !1, Y && Y.emit("unpipe", this, S)), this;
6979
6979
  if (!Y) {
6980
- var T = G.pipes, k = G.pipesCount;
6980
+ var T = G.pipes, B = G.pipesCount;
6981
6981
  G.pipes = null, G.pipesCount = 0, G.flowing = !1;
6982
- for (var J = 0; J < k; J++)
6982
+ for (var J = 0; J < B; J++)
6983
6983
  T[J].emit("unpipe", this, { hasUnpiped: !1 });
6984
6984
  return this;
6985
6985
  }
@@ -7003,7 +7003,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7003
7003
  return f("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (f("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
7004
7004
  }, m.prototype.wrap = function(Y) {
7005
7005
  var G = this, S = this._readableState, T = !1;
7006
- for (var k in Y.on("end", function() {
7006
+ for (var B in Y.on("end", function() {
7007
7007
  if (f("wrapped end"), S.decoder && !S.ended) {
7008
7008
  var K = S.decoder.end();
7009
7009
  K && K.length && G.push(K);
@@ -7012,11 +7012,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7012
7012
  }), Y.on("data", function(K) {
7013
7013
  f("wrapped data"), S.decoder && (K = S.decoder.write(K)), S.objectMode && K == null || (S.objectMode || K && K.length) && (G.push(K) || (T = !0, Y.pause()));
7014
7014
  }), Y)
7015
- this[k] === void 0 && typeof Y[k] == "function" && (this[k] = function(K) {
7015
+ this[B] === void 0 && typeof Y[B] == "function" && (this[B] = function(K) {
7016
7016
  return function() {
7017
7017
  return Y[K].apply(Y, arguments);
7018
7018
  };
7019
- }(k));
7019
+ }(B));
7020
7020
  for (var J = 0; J < q.length; J++)
7021
7021
  Y.on(q[J], this.emit.bind(this, q[J]));
7022
7022
  return this._read = function(K) {
@@ -7108,8 +7108,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7108
7108
  if (function(S) {
7109
7109
  S.writing = !1, S.writecb = null, S.length -= S.writelen, S.writelen = 0;
7110
7110
  }(ee), Q)
7111
- (function(S, T, k, J, K) {
7112
- --T.pendingcb, k ? (i.nextTick(K, J), i.nextTick(N, S, T), S._writableState.errorEmitted = !0, $(S, J)) : (K(J), S._writableState.errorEmitted = !0, $(S, J), N(S, T));
7111
+ (function(S, T, B, J, K) {
7112
+ --T.pendingcb, B ? (i.nextTick(K, J), i.nextTick(N, S, T), S._writableState.errorEmitted = !0, $(S, J)) : (K(J), S._writableState.errorEmitted = !0, $(S, J), N(S, T));
7113
7113
  })(V, ee, ne, Q, Y);
7114
7114
  else {
7115
7115
  var G = W(ee) || V.destroyed;
@@ -7154,7 +7154,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7154
7154
  function W(P) {
7155
7155
  return P.ending && P.length === 0 && P.bufferedRequest === null && !P.finished && !P.writing;
7156
7156
  }
7157
- function B(P, z) {
7157
+ function k(P, z) {
7158
7158
  P._final(function(O) {
7159
7159
  z.pendingcb--, O && $(P, O), z.prefinished = !0, P.emit("prefinish"), N(P, z);
7160
7160
  });
@@ -7162,7 +7162,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7162
7162
  function N(P, z) {
7163
7163
  var O = W(z);
7164
7164
  if (O && (function(U, V) {
7165
- V.prefinished || V.finalCalled || (typeof U._final != "function" || V.destroyed ? (V.prefinished = !0, U.emit("prefinish")) : (V.pendingcb++, V.finalCalled = !0, i.nextTick(B, U, V)));
7165
+ V.prefinished || V.finalCalled || (typeof U._final != "function" || V.destroyed ? (V.prefinished = !0, U.emit("prefinish")) : (V.pendingcb++, V.finalCalled = !0, i.nextTick(k, U, V)));
7166
7166
  }(P, z), z.pendingcb === 0 && (z.finished = !0, P.emit("finish"), z.autoDestroy))) {
7167
7167
  var p = P._readableState;
7168
7168
  (!p || p.autoDestroy && p.endEmitted) && P.destroy();
@@ -7198,10 +7198,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7198
7198
  return Y === null ? S = new A() : typeof Y == "string" || ne.objectMode || (S = new b("chunk", ["string", "Buffer"], Y)), !S || ($(ee, S), i.nextTick(G, S), !1);
7199
7199
  }(this, U, P, O)) && (U.pendingcb++, V = function(ee, ne, Y, G, S, T) {
7200
7200
  if (!Y) {
7201
- var k = function(se, fe, ve) {
7201
+ var B = function(se, fe, ve) {
7202
7202
  return se.objectMode || se.decodeStrings === !1 || typeof fe != "string" || (fe = u.from(fe, ve)), fe;
7203
7203
  }(ne, G, S);
7204
- G !== k && (Y = !0, S = "buffer", G = k);
7204
+ G !== B && (Y = !0, S = "buffer", G = B);
7205
7205
  }
7206
7206
  var J = ne.objectMode ? 1 : G.length;
7207
7207
  ne.length += J;
@@ -7501,9 +7501,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7501
7501
  !W || _ && R[_] || (m = m.substr(2), this.slashes = !0);
7502
7502
  }
7503
7503
  if (!R[_] && (W || _ && !j[_])) {
7504
- for (var B, N, P = -1, z = 0; z < w.length; z++)
7504
+ for (var k, N, P = -1, z = 0; z < w.length; z++)
7505
7505
  (O = m.indexOf(w[z])) !== -1 && (P === -1 || O < P) && (P = O);
7506
- for ((N = P === -1 ? m.lastIndexOf("@") : m.lastIndexOf("@", P)) !== -1 && (B = m.slice(0, N), m = m.slice(N + 1), this.auth = decodeURIComponent(B)), P = -1, z = 0; z < E.length; z++) {
7506
+ for ((N = P === -1 ? m.lastIndexOf("@") : m.lastIndexOf("@", P)) !== -1 && (k = m.slice(0, N), m = m.slice(N + 1), this.auth = decodeURIComponent(k)), P = -1, z = 0; z < E.length; z++) {
7507
7507
  var O;
7508
7508
  (O = m.indexOf(E[z])) !== -1 && (P === -1 || O < P) && (P = O);
7509
7509
  }
@@ -7523,8 +7523,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7523
7523
  }
7524
7524
  }
7525
7525
  this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), p || (this.hostname = r.toASCII(this.hostname));
7526
- var k = this.port ? ":" + this.port : "", J = this.hostname || "";
7527
- this.host = J + k, this.href += this.host, p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), m[0] !== "/" && (m = "/" + m));
7526
+ var B = this.port ? ":" + this.port : "", J = this.hostname || "";
7527
+ this.host = J + B, this.href += this.host, p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), m[0] !== "/" && (m = "/" + m));
7528
7528
  }
7529
7529
  if (!b[L])
7530
7530
  for (z = 0, V = f.length; z < V; z++) {
@@ -7538,9 +7538,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7538
7538
  se !== -1 && (this.hash = m.substr(se), m = m.slice(0, se));
7539
7539
  var fe = m.indexOf("?");
7540
7540
  if (fe !== -1 ? (this.search = m.substr(fe), this.query = m.substr(fe + 1), d && (this.query = F.parse(this.query)), m = m.slice(0, fe)) : d && (this.search = "", this.query = {}), m && (this.pathname = m), j[L] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
7541
- k = this.pathname || "";
7541
+ B = this.pathname || "";
7542
7542
  var ve = this.search || "";
7543
- this.path = k + ve;
7543
+ this.path = B + ve;
7544
7544
  }
7545
7545
  return this.href = this.format(), this;
7546
7546
  }, s.prototype.format = function() {
@@ -7575,8 +7575,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7575
7575
  if (A.protocol && A.protocol !== C.protocol) {
7576
7576
  if (!j[A.protocol]) {
7577
7577
  for (var L = Object.keys(A), W = 0; W < L.length; W++) {
7578
- var B = L[W];
7579
- C[B] = A[B];
7578
+ var k = L[W];
7579
+ C[k] = A[k];
7580
7580
  }
7581
7581
  return C.href = C.format(), C;
7582
7582
  }
@@ -7608,8 +7608,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7608
7608
  for (; G--; G)
7609
7609
  Q.unshift("..");
7610
7610
  !U || Q[0] === "" || Q[0] && Q[0].charAt(0) === "/" || Q.unshift(""), Y && Q.join("/").substr(-1) !== "/" && Q.push("");
7611
- var T, k = Q[0] === "" || Q[0] && Q[0].charAt(0) === "/";
7612
- return ee && (C.hostname = C.host = k ? "" : Q.length ? Q.shift() : "", (T = !!(C.host && C.host.indexOf("@") > 0) && C.host.split("@")) && (C.auth = T.shift(), C.host = C.hostname = T.shift())), (U = U || C.host && Q.length) && !k && Q.unshift(""), Q.length ? C.pathname = Q.join("/") : (C.pathname = null, C.path = null), i.isNull(C.pathname) && i.isNull(C.search) || (C.path = (C.pathname ? C.pathname : "") + (C.search ? C.search : "")), C.auth = A.auth || C.auth, C.slashes = C.slashes || A.slashes, C.href = C.format(), C;
7611
+ var T, B = Q[0] === "" || Q[0] && Q[0].charAt(0) === "/";
7612
+ return ee && (C.hostname = C.host = B ? "" : Q.length ? Q.shift() : "", (T = !!(C.host && C.host.indexOf("@") > 0) && C.host.split("@")) && (C.auth = T.shift(), C.host = C.hostname = T.shift())), (U = U || C.host && Q.length) && !B && Q.unshift(""), Q.length ? C.pathname = Q.join("/") : (C.pathname = null, C.path = null), i.isNull(C.pathname) && i.isNull(C.search) || (C.path = (C.pathname ? C.pathname : "") + (C.search ? C.search : "")), C.auth = A.auth || C.auth, C.slashes = C.slashes || A.slashes, C.href = C.format(), C;
7613
7613
  }, s.prototype.parseHost = function() {
7614
7614
  var A = this.host, d = o.exec(A);
7615
7615
  d && ((d = d[0]) !== ":" && (this.port = d.substr(1)), A = A.substr(0, A.length - d.length)), A && (this.hostname = A);
@@ -12472,8 +12472,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12472
12472
  if (this._bodyBlob)
12473
12473
  return I = this._bodyBlob, _ = new FileReader(), L = j(_), _.readAsText(I), L;
12474
12474
  if (this._bodyArrayBuffer)
12475
- return Promise.resolve(function(B) {
12476
- for (var N = new Uint8Array(B), P = new Array(N.length), z = 0; z < N.length; z++)
12475
+ return Promise.resolve(function(k) {
12476
+ for (var N = new Uint8Array(k), P = new Array(N.length), z = 0; z < N.length; z++)
12477
12477
  P[z] = String.fromCharCode(N[z]);
12478
12478
  return P.join("");
12479
12479
  }(this._bodyArrayBuffer));
@@ -12519,23 +12519,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12519
12519
  }, l && (b.prototype[Symbol.iterator] = b.prototype.entries);
12520
12520
  var d = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
12521
12521
  function C(I, _) {
12522
- var L, W, B = (_ = _ || {}).body;
12522
+ var L, W, k = (_ = _ || {}).body;
12523
12523
  if (I instanceof C) {
12524
12524
  if (I.bodyUsed)
12525
12525
  throw new TypeError("Already read");
12526
- this.url = I.url, this.credentials = I.credentials, _.headers || (this.headers = new b(I.headers)), this.method = I.method, this.mode = I.mode, this.signal = I.signal, B || I._bodyInit == null || (B = I._bodyInit, I.bodyUsed = !0);
12526
+ this.url = I.url, this.credentials = I.credentials, _.headers || (this.headers = new b(I.headers)), this.method = I.method, this.mode = I.mode, this.signal = I.signal, k || I._bodyInit == null || (k = I._bodyInit, I.bodyUsed = !0);
12527
12527
  } else
12528
12528
  this.url = String(I);
12529
- if (this.credentials = _.credentials || this.credentials || "same-origin", !_.headers && this.headers || (this.headers = new b(_.headers)), this.method = (L = _.method || this.method || "GET", W = L.toUpperCase(), d.indexOf(W) > -1 ? W : L), this.mode = _.mode || this.mode || null, this.signal = _.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && B)
12529
+ if (this.credentials = _.credentials || this.credentials || "same-origin", !_.headers && this.headers || (this.headers = new b(_.headers)), this.method = (L = _.method || this.method || "GET", W = L.toUpperCase(), d.indexOf(W) > -1 ? W : L), this.mode = _.mode || this.mode || null, this.signal = _.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && k)
12530
12530
  throw new TypeError("Body not allowed for GET or HEAD requests");
12531
- this._initBody(B);
12531
+ this._initBody(k);
12532
12532
  }
12533
12533
  function $(I) {
12534
12534
  var _ = new FormData();
12535
12535
  return I.trim().split("&").forEach(function(L) {
12536
12536
  if (L) {
12537
- var W = L.split("="), B = W.shift().replace(/\+/g, " "), N = W.join("=").replace(/\+/g, " ");
12538
- _.append(decodeURIComponent(B), decodeURIComponent(N));
12537
+ var W = L.split("="), k = W.shift().replace(/\+/g, " "), N = W.join("=").replace(/\+/g, " ");
12538
+ _.append(decodeURIComponent(k), decodeURIComponent(N));
12539
12539
  }
12540
12540
  }), _;
12541
12541
  }
@@ -12567,8 +12567,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12567
12567
  }
12568
12568
  function m(I, _) {
12569
12569
  return new Promise(function(L, W) {
12570
- var B = new C(I, _);
12571
- if (B.signal && B.signal.aborted)
12570
+ var k = new C(I, _);
12571
+ if (k.signal && k.signal.aborted)
12572
12572
  return W(new i.DOMException("Aborted", "AbortError"));
12573
12573
  var N = new XMLHttpRequest();
12574
12574
  function P() {
@@ -12591,11 +12591,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12591
12591
  W(new TypeError("Network request failed"));
12592
12592
  }, N.onabort = function() {
12593
12593
  W(new i.DOMException("Aborted", "AbortError"));
12594
- }, N.open(B.method, B.url, !0), B.credentials === "include" ? N.withCredentials = !0 : B.credentials === "omit" && (N.withCredentials = !1), "responseType" in N && o && (N.responseType = "blob"), B.headers.forEach(function(z, O) {
12594
+ }, N.open(k.method, k.url, !0), k.credentials === "include" ? N.withCredentials = !0 : k.credentials === "omit" && (N.withCredentials = !1), "responseType" in N && o && (N.responseType = "blob"), k.headers.forEach(function(z, O) {
12595
12595
  N.setRequestHeader(O, z);
12596
- }), B.signal && (B.signal.addEventListener("abort", P), N.onreadystatechange = function() {
12597
- N.readyState === 4 && B.signal.removeEventListener("abort", P);
12598
- }), N.send(B._bodyInit === void 0 ? null : B._bodyInit);
12596
+ }), k.signal && (k.signal.addEventListener("abort", P), N.onreadystatechange = function() {
12597
+ N.readyState === 4 && k.signal.removeEventListener("abort", P);
12598
+ }), N.send(k._bodyInit === void 0 ? null : k._bodyInit);
12599
12599
  });
12600
12600
  }
12601
12601
  m.polyfill = !0, r.fetch || (r.fetch = m, r.Headers = b, r.Request = C, r.Response = q), i.Headers = b, i.Request = C, i.Response = q, i.fetch = m;
@@ -12736,7 +12736,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12736
12736
  }
12737
12737
  class M {
12738
12738
  constructor(d = {}) {
12739
- const { max: C = 0, ttl: $, ttlResolution: q = 1, ttlAutopurge: y, updateAgeOnGet: m, updateAgeOnHas: I, allowStale: _, dispose: L, disposeAfter: W, noDisposeOnSet: B, noUpdateTTL: N, maxSize: P = 0, maxEntrySize: z = 0, sizeCalculation: O, fetchMethod: p, fetchContext: U, noDeleteOnFetchRejection: V, noDeleteOnStaleGet: Q } = d, { length: ee, maxAge: ne, stale: Y } = d instanceof M ? {} : d;
12739
+ const { max: C = 0, ttl: $, ttlResolution: q = 1, ttlAutopurge: y, updateAgeOnGet: m, updateAgeOnHas: I, allowStale: _, dispose: L, disposeAfter: W, noDisposeOnSet: k, noUpdateTTL: N, maxSize: P = 0, maxEntrySize: z = 0, sizeCalculation: O, fetchMethod: p, fetchContext: U, noDeleteOnFetchRejection: V, noDeleteOnStaleGet: Q } = d, { length: ee, maxAge: ne, stale: Y } = d instanceof M ? {} : d;
12740
12740
  if (C !== 0 && !b(C))
12741
12741
  throw new TypeError("max option must be a nonnegative integer");
12742
12742
  const G = C ? R(C) : Array;
@@ -12752,7 +12752,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12752
12752
  throw new TypeError("fetchMethod must be a function if specified");
12753
12753
  if (this.fetchContext = U, !this.fetchMethod && U !== void 0)
12754
12754
  throw new TypeError("cannot set fetchContext without fetchMethod");
12755
- if (this.keyMap = /* @__PURE__ */ new Map(), this.keyList = new Array(C).fill(null), this.valList = new Array(C).fill(null), this.next = new G(C), this.prev = new G(C), this.head = 0, this.tail = 0, this.free = new F(C), this.initialFill = 1, this.size = 0, typeof L == "function" && (this.dispose = L), typeof W == "function" ? (this.disposeAfter = W, this.disposed = []) : (this.disposeAfter = null, this.disposed = null), this.noDisposeOnSet = !!B, this.noUpdateTTL = !!N, this.noDeleteOnFetchRejection = !!V, this.maxEntrySize !== 0) {
12755
+ if (this.keyMap = /* @__PURE__ */ new Map(), this.keyList = new Array(C).fill(null), this.valList = new Array(C).fill(null), this.next = new G(C), this.prev = new G(C), this.head = 0, this.tail = 0, this.free = new F(C), this.initialFill = 1, this.size = 0, typeof L == "function" && (this.dispose = L), typeof W == "function" ? (this.disposeAfter = W, this.disposed = []) : (this.disposeAfter = null, this.disposed = null), this.noDisposeOnSet = !!k, this.noUpdateTTL = !!N, this.noDeleteOnFetchRejection = !!V, this.maxEntrySize !== 0) {
12756
12756
  if (this.maxSize !== 0 && !b(this.maxSize))
12757
12757
  throw new TypeError("maxSize must be a positive integer if specified");
12758
12758
  if (!b(this.maxEntrySize))
@@ -12976,13 +12976,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12976
12976
  isBackgroundFetch(d) {
12977
12977
  return d && typeof d == "object" && typeof d.then == "function" && Object.prototype.hasOwnProperty.call(d, "__staleWhileFetching") && Object.prototype.hasOwnProperty.call(d, "__returned") && (d.__returned === d || d.__returned === null);
12978
12978
  }
12979
- async fetch(d, { allowStale: C = this.allowStale, updateAgeOnGet: $ = this.updateAgeOnGet, noDeleteOnStaleGet: q = this.noDeleteOnStaleGet, ttl: y = this.ttl, noDisposeOnSet: m = this.noDisposeOnSet, size: I = 0, sizeCalculation: _ = this.sizeCalculation, noUpdateTTL: L = this.noUpdateTTL, noDeleteOnFetchRejection: W = this.noDeleteOnFetchRejection, fetchContext: B = this.fetchContext, forceRefresh: N = !1 } = {}) {
12979
+ async fetch(d, { allowStale: C = this.allowStale, updateAgeOnGet: $ = this.updateAgeOnGet, noDeleteOnStaleGet: q = this.noDeleteOnStaleGet, ttl: y = this.ttl, noDisposeOnSet: m = this.noDisposeOnSet, size: I = 0, sizeCalculation: _ = this.sizeCalculation, noUpdateTTL: L = this.noUpdateTTL, noDeleteOnFetchRejection: W = this.noDeleteOnFetchRejection, fetchContext: k = this.fetchContext, forceRefresh: N = !1 } = {}) {
12980
12980
  if (!this.fetchMethod)
12981
12981
  return this.get(d, { allowStale: C, updateAgeOnGet: $, noDeleteOnStaleGet: q });
12982
12982
  const P = { allowStale: C, updateAgeOnGet: $, noDeleteOnStaleGet: q, ttl: y, noDisposeOnSet: m, size: I, sizeCalculation: _, noUpdateTTL: L, noDeleteOnFetchRejection: W };
12983
12983
  let z = this.keyMap.get(d);
12984
12984
  if (z === void 0) {
12985
- const O = this.backgroundFetch(d, z, P, B);
12985
+ const O = this.backgroundFetch(d, z, P, k);
12986
12986
  return O.__returned = O;
12987
12987
  }
12988
12988
  {
@@ -12991,7 +12991,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12991
12991
  return C && O.__staleWhileFetching !== void 0 ? O.__staleWhileFetching : O.__returned = O;
12992
12992
  if (!N && !this.isStale(z))
12993
12993
  return this.moveToTail(z), $ && this.updateItemAge(z), O;
12994
- const p = this.backgroundFetch(d, z, P, B);
12994
+ const p = this.backgroundFetch(d, z, P, k);
12995
12995
  return C && p.__staleWhileFetching !== void 0 ? p.__staleWhileFetching : p.__returned = p;
12996
12996
  }
12997
12997
  }
@@ -13564,21 +13564,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13564
13564
  });
13565
13565
  var r = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, i = "[^\\s]+", s = /\[([^]*?)\]/gm;
13566
13566
  function l(L, W) {
13567
- for (var B = [], N = 0, P = L.length; N < P; N++)
13568
- B.push(L[N].substr(0, W));
13569
- return B;
13567
+ for (var k = [], N = 0, P = L.length; N < P; N++)
13568
+ k.push(L[N].substr(0, W));
13569
+ return k;
13570
13570
  }
13571
13571
  var o = function(L) {
13572
- return function(W, B) {
13573
- var N = B[L].map(function(P) {
13572
+ return function(W, k) {
13573
+ var N = k[L].map(function(P) {
13574
13574
  return P.toLowerCase();
13575
13575
  }).indexOf(W.toLowerCase());
13576
13576
  return N > -1 ? N : null;
13577
13577
  };
13578
13578
  };
13579
13579
  function c(L) {
13580
- for (var W = [], B = 1; B < arguments.length; B++)
13581
- W[B - 1] = arguments[B];
13580
+ for (var W = [], k = 1; k < arguments.length; k++)
13581
+ W[k - 1] = arguments[k];
13582
13582
  for (var N = 0, P = W; N < P.length; N++) {
13583
13583
  var z = P[N];
13584
13584
  for (var O in z)
@@ -13657,13 +13657,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13657
13657
  } }, F = function(L) {
13658
13658
  return +L - 1;
13659
13659
  }, M = [null, "[1-9]\\d?"], A = [null, i], d = ["isPm", i, function(L, W) {
13660
- var B = L.toLowerCase();
13661
- return B === W.amPm[0] ? 0 : B === W.amPm[1] ? 1 : null;
13660
+ var k = L.toLowerCase();
13661
+ return k === W.amPm[0] ? 0 : k === W.amPm[1] ? 1 : null;
13662
13662
  }], C = ["timezoneOffset", "[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?", function(L) {
13663
13663
  var W = (L + "").match(/([+-]|\d\d)/gi);
13664
13664
  if (W) {
13665
- var B = 60 * +W[1] + parseInt(W[2], 10);
13666
- return W[0] === "+" ? B : -B;
13665
+ var k = 60 * +W[1] + parseInt(W[2], 10);
13666
+ return W[0] === "+" ? k : -k;
13667
13667
  }
13668
13668
  return 0;
13669
13669
  }], $ = { D: ["day", "[1-9]\\d?"], DD: ["day", "\\d\\d"], Do: ["day", "[1-9]\\d?" + i, function(L) {
@@ -13677,22 +13677,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13677
13677
  return 10 * +L;
13678
13678
  }], SSS: ["millisecond", "\\d{3}"], d: M, dd: M, ddd: A, dddd: A, MMM: ["month", i, o("monthNamesShort")], MMMM: ["month", i, o("monthNames")], a: d, A: d, ZZ: C, Z: C }, q = { 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" }, y = function(L) {
13679
13679
  return c(q, L);
13680
- }, m = function(L, W, B) {
13681
- if (W === void 0 && (W = q.default), B === void 0 && (B = {}), typeof L == "number" && (L = new Date(L)), Object.prototype.toString.call(L) !== "[object Date]" || isNaN(L.getTime()))
13680
+ }, m = function(L, W, k) {
13681
+ if (W === void 0 && (W = q.default), k === void 0 && (k = {}), typeof L == "number" && (L = new Date(L)), Object.prototype.toString.call(L) !== "[object Date]" || isNaN(L.getTime()))
13682
13682
  throw new Error("Invalid Date pass to format");
13683
13683
  var N = [];
13684
13684
  W = (W = q[W] || W).replace(s, function(z, O) {
13685
13685
  return N.push(O), "@@@";
13686
13686
  });
13687
- var P = c(c({}, h), B);
13687
+ var P = c(c({}, h), k);
13688
13688
  return (W = W.replace(r, function(z) {
13689
13689
  return j[z](L, P);
13690
13690
  })).replace(/@@@/g, function() {
13691
13691
  return N.shift();
13692
13692
  });
13693
13693
  };
13694
- function I(L, W, B) {
13695
- if (B === void 0 && (B = {}), typeof W != "string")
13694
+ function I(L, W, k) {
13695
+ if (k === void 0 && (k = {}), typeof W != "string")
13696
13696
  throw new Error("Invalid format in fecha parse");
13697
13697
  if (W = q[W] || W, L.length > 1e3)
13698
13698
  return null;
@@ -13713,15 +13713,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13713
13713
  var V = L.match(new RegExp(O, "i"));
13714
13714
  if (!V)
13715
13715
  return null;
13716
- for (var Q = c(c({}, h), B), ee = 1; ee < V.length; ee++) {
13716
+ for (var Q = c(c({}, h), k), ee = 1; ee < V.length; ee++) {
13717
13717
  var ne = P[ee - 1], Y = ne[0], G = ne[2], S = G ? G(V[ee], Q) : +V[ee];
13718
13718
  if (S == null)
13719
13719
  return null;
13720
13720
  N[Y] = S;
13721
13721
  }
13722
13722
  N.isPm === 1 && N.hour != null && +N.hour != 12 ? N.hour = +N.hour + 12 : N.isPm === 0 && +N.hour == 12 && (N.hour = 0);
13723
- for (var T = new Date(N.year, N.month, N.day, N.hour, N.minute, N.second, N.millisecond), k = [["month", "getMonth"], ["day", "getDate"], ["hour", "getHours"], ["minute", "getMinutes"], ["second", "getSeconds"]], J = (ee = 0, k.length); ee < J; ee++)
13724
- if (p[k[ee][0]] && N[k[ee][0]] !== T[k[ee][1]]())
13723
+ for (var T = new Date(N.year, N.month, N.day, N.hour, N.minute, N.second, N.millisecond), B = [["month", "getMonth"], ["day", "getDate"], ["hour", "getHours"], ["minute", "getMinutes"], ["second", "getSeconds"]], J = (ee = 0, B.length); ee < J; ee++)
13724
+ if (p[B[ee][0]] && N[B[ee][0]] !== T[B[ee][1]]())
13725
13725
  return null;
13726
13726
  return N.timezoneOffset == null ? T : new Date(Date.UTC(N.year, N.month, N.day, N.hour, N.minute - N.timezoneOffset, N.second, N.millisecond));
13727
13727
  }
@@ -14012,31 +14012,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14012
14012
  for (g("flow", p.flowing); p.flowing && O.read() !== null; )
14013
14013
  ;
14014
14014
  }
14015
- function B(O, p) {
14015
+ function k(O, p) {
14016
14016
  return p.length === 0 ? null : (p.objectMode ? U = p.buffer.shift() : !O || O >= p.length ? (U = p.decoder ? p.buffer.join("") : p.buffer.length === 1 ? p.buffer.head.data : p.buffer.concat(p.length), p.buffer.clear()) : U = function(V, Q, ee) {
14017
14017
  var ne;
14018
14018
  return V < Q.head.data.length ? (ne = Q.head.data.slice(0, V), Q.head.data = Q.head.data.slice(V)) : ne = V === Q.head.data.length ? Q.shift() : ee ? function(Y, G) {
14019
- var S = G.head, T = 1, k = S.data;
14020
- for (Y -= k.length; S = S.next; ) {
14019
+ var S = G.head, T = 1, B = S.data;
14020
+ for (Y -= B.length; S = S.next; ) {
14021
14021
  var J = S.data, K = Y > J.length ? J.length : Y;
14022
- if (K === J.length ? k += J : k += J.slice(0, Y), (Y -= K) === 0) {
14022
+ if (K === J.length ? B += J : B += J.slice(0, Y), (Y -= K) === 0) {
14023
14023
  K === J.length ? (++T, S.next ? G.head = S.next : G.head = G.tail = null) : (G.head = S, S.data = J.slice(K));
14024
14024
  break;
14025
14025
  }
14026
14026
  ++T;
14027
14027
  }
14028
- return G.length -= T, k;
14028
+ return G.length -= T, B;
14029
14029
  }(V, Q) : function(Y, G) {
14030
- var S = f.allocUnsafe(Y), T = G.head, k = 1;
14030
+ var S = f.allocUnsafe(Y), T = G.head, B = 1;
14031
14031
  for (T.data.copy(S), Y -= T.data.length; T = T.next; ) {
14032
14032
  var J = T.data, K = Y > J.length ? J.length : Y;
14033
14033
  if (J.copy(S, S.length - Y, 0, K), (Y -= K) === 0) {
14034
- K === J.length ? (++k, T.next ? G.head = T.next : G.head = G.tail = null) : (G.head = T, T.data = J.slice(K));
14034
+ K === J.length ? (++B, T.next ? G.head = T.next : G.head = G.tail = null) : (G.head = T, T.data = J.slice(K));
14035
14035
  break;
14036
14036
  }
14037
- ++k;
14037
+ ++B;
14038
14038
  }
14039
- return G.length -= k, S;
14039
+ return G.length -= B, S;
14040
14040
  }(V, Q), ne;
14041
14041
  }(O, p.buffer, p.decoder), U);
14042
14042
  var U;
@@ -14064,7 +14064,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14064
14064
  if ((O = $(O, p)) === 0 && p.ended)
14065
14065
  return p.length === 0 && N(this), null;
14066
14066
  var V, Q = p.needReadable;
14067
- return g("need readable", Q), (p.length === 0 || p.length - O < p.highWaterMark) && g("length less than watermark", Q = !0), p.ended || p.reading ? g("reading or ended", Q = !1) : Q && (g("do read"), p.reading = !0, p.sync = !0, p.length === 0 && (p.needReadable = !0), this._read(p.highWaterMark), p.sync = !1, p.reading || (O = $(U, p))), (V = O > 0 ? B(O, p) : null) === null ? (p.needReadable = !0, O = 0) : p.length -= O, p.length === 0 && (p.ended || (p.needReadable = !0), U !== O && p.ended && N(this)), V !== null && this.emit("data", V), V;
14067
+ return g("need readable", Q), (p.length === 0 || p.length - O < p.highWaterMark) && g("length less than watermark", Q = !0), p.ended || p.reading ? g("reading or ended", Q = !1) : Q && (g("do read"), p.reading = !0, p.sync = !0, p.length === 0 && (p.needReadable = !0), this._read(p.highWaterMark), p.sync = !1, p.reading || (O = $(U, p))), (V = O > 0 ? k(O, p) : null) === null ? (p.needReadable = !0, O = 0) : p.length -= O, p.length === 0 && (p.ended || (p.needReadable = !0), U !== O && p.ended && N(this)), V !== null && this.emit("data", V), V;
14068
14068
  }, A.prototype._read = function(O) {
14069
14069
  this.emit("error", new Error("_read() is not implemented"));
14070
14070
  }, A.prototype.pipe = function(O, p) {
@@ -14082,7 +14082,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14082
14082
  V.pipesCount += 1, g("pipe count=%d opts=%j", V.pipesCount, p);
14083
14083
  var Q = (!p || p.end !== !1) && O !== i.stdout && O !== i.stderr ? ne : re;
14084
14084
  function ee(se, fe) {
14085
- g("onunpipe"), se === U && fe && fe.hasUnpiped === !1 && (fe.hasUnpiped = !0, g("cleanup"), O.removeListener("close", J), O.removeListener("finish", K), O.removeListener("drain", Y), O.removeListener("error", k), O.removeListener("unpipe", ee), U.removeListener("end", ne), U.removeListener("end", re), U.removeListener("data", T), G = !0, !V.awaitDrain || O._writableState && !O._writableState.needDrain || Y());
14085
+ g("onunpipe"), se === U && fe && fe.hasUnpiped === !1 && (fe.hasUnpiped = !0, g("cleanup"), O.removeListener("close", J), O.removeListener("finish", K), O.removeListener("drain", Y), O.removeListener("error", B), O.removeListener("unpipe", ee), U.removeListener("end", ne), U.removeListener("end", re), U.removeListener("data", T), G = !0, !V.awaitDrain || O._writableState && !O._writableState.needDrain || Y());
14086
14086
  }
14087
14087
  function ne() {
14088
14088
  g("onend"), O.end();
@@ -14099,8 +14099,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14099
14099
  function T(se) {
14100
14100
  g("ondata"), S = !1, O.write(se) !== !1 || S || ((V.pipesCount === 1 && V.pipes === O || V.pipesCount > 1 && z(V.pipes, O) !== -1) && !G && (g("false write response, pause", U._readableState.awaitDrain), U._readableState.awaitDrain++, S = !0), U.pause());
14101
14101
  }
14102
- function k(se) {
14103
- g("onerror", se), re(), O.removeListener("error", k), c(O, "error") === 0 && O.emit("error", se);
14102
+ function B(se) {
14103
+ g("onerror", se), re(), O.removeListener("error", B), c(O, "error") === 0 && O.emit("error", se);
14104
14104
  }
14105
14105
  function J() {
14106
14106
  O.removeListener("finish", K), re();
@@ -14115,7 +14115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14115
14115
  if (typeof se.prependListener == "function")
14116
14116
  return se.prependListener(fe, ve);
14117
14117
  se._events && se._events[fe] ? o(se._events[fe]) ? se._events[fe].unshift(ve) : se._events[fe] = [ve, se._events[fe]] : se.on(fe, ve);
14118
- }(O, "error", k), O.once("close", J), O.once("finish", K), O.emit("pipe", U), V.flowing || (g("pipe resume"), U.resume()), O;
14118
+ }(O, "error", B), O.once("close", J), O.once("finish", K), O.emit("pipe", U), V.flowing || (g("pipe resume"), U.resume()), O;
14119
14119
  }, A.prototype.unpipe = function(O) {
14120
14120
  var p = this._readableState, U = { hasUnpiped: !1 };
14121
14121
  if (p.pipesCount === 0)
@@ -14170,7 +14170,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14170
14170
  }, this;
14171
14171
  }, Object.defineProperty(A.prototype, "readableHighWaterMark", { enumerable: !1, get: function() {
14172
14172
  return this._readableState.highWaterMark;
14173
- } }), A._fromList = B;
14173
+ } }), A._fromList = k;
14174
14174
  }).call(this, n(6), n(2));
14175
14175
  }, function(e, t) {
14176
14176
  }, function(e, t, n) {
@@ -14328,30 +14328,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14328
14328
  }
14329
14329
  var h = n(65), g = n(56), b = n(150), R = n(160), j = n(3).MESSAGE, F = n(32), M = F.Stream, A = F.PassThrough, d = n(20), C = n(38)("winston:file"), $ = n(18), q = n(188);
14330
14330
  e.exports = function(y) {
14331
- (function(W, B) {
14332
- if (typeof B != "function" && B !== null)
14331
+ (function(W, k) {
14332
+ if (typeof k != "function" && k !== null)
14333
14333
  throw new TypeError("Super expression must either be null or a function");
14334
- W.prototype = Object.create(B && B.prototype, { constructor: { value: W, writable: !0, configurable: !0 } }), B && c(W, B);
14334
+ W.prototype = Object.create(k && k.prototype, { constructor: { value: W, writable: !0, configurable: !0 } }), k && c(W, k);
14335
14335
  })(L, y);
14336
14336
  var m, I, _ = u(L);
14337
14337
  function L() {
14338
- var W, B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
14338
+ var W, k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
14339
14339
  function N(P) {
14340
14340
  for (var z = arguments.length, O = new Array(z > 1 ? z - 1 : 0), p = 1; p < z; p++)
14341
14341
  O[p - 1] = arguments[p];
14342
14342
  O.slice(1).forEach(function(U) {
14343
- if (B[U])
14343
+ if (k[U])
14344
14344
  throw new Error("Cannot set ".concat(U, " and ").concat(P, " together"));
14345
14345
  });
14346
14346
  }
14347
- if (l(this, L), (W = _.call(this, B)).name = B.name || "file", W._stream = new A(), W._stream.setMaxListeners(30), W._onError = W._onError.bind(E(W)), B.filename || B.dirname)
14348
- N("filename or dirname", "stream"), W._basename = W.filename = B.filename ? g.basename(B.filename) : "winston.log", W.dirname = B.dirname || g.dirname(B.filename), W.options = B.options || { flags: "a" };
14347
+ if (l(this, L), (W = _.call(this, k)).name = k.name || "file", W._stream = new A(), W._stream.setMaxListeners(30), W._onError = W._onError.bind(E(W)), k.filename || k.dirname)
14348
+ N("filename or dirname", "stream"), W._basename = W.filename = k.filename ? g.basename(k.filename) : "winston.log", W.dirname = k.dirname || g.dirname(k.filename), W.options = k.options || { flags: "a" };
14349
14349
  else {
14350
- if (!B.stream)
14350
+ if (!k.stream)
14351
14351
  throw new Error("Cannot log to file without filename or stream.");
14352
- console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"), N("stream", "filename", "maxsize"), W._dest = W._stream.pipe(W._setupStream(B.stream)), W.dirname = g.dirname(W._dest.path);
14352
+ console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"), N("stream", "filename", "maxsize"), W._dest = W._stream.pipe(W._setupStream(k.stream)), W.dirname = g.dirname(W._dest.path);
14353
14353
  }
14354
- return W.maxsize = B.maxsize || null, W.rotationFormat = B.rotationFormat || !1, W.zippedArchive = B.zippedArchive || !1, W.maxFiles = B.maxFiles || null, W.eol = B.eol || $.EOL, W.tailable = B.tailable || !1, W._size = 0, W._pendingSize = 0, W._created = 0, W._drain = !1, W._opening = !1, W._ending = !1, W.dirname && W._createLogDirIfNotExist(W.dirname), W.open(), W;
14354
+ return W.maxsize = k.maxsize || null, W.rotationFormat = k.rotationFormat || !1, W.zippedArchive = k.zippedArchive || !1, W.maxFiles = k.maxFiles || null, W.eol = k.eol || $.EOL, W.tailable = k.tailable || !1, W._size = 0, W._pendingSize = 0, W._created = 0, W._drain = !1, W._opening = !1, W._ending = !1, W.dirname && W._createLogDirIfNotExist(W.dirname), W.open(), W;
14355
14355
  }
14356
14356
  return m = L, (I = [{ key: "finishIfEnding", value: function() {
14357
14357
  var W = this;
@@ -14367,13 +14367,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14367
14367
  return W._stream.end();
14368
14368
  })));
14369
14369
  } }, { key: "log", value: function(W) {
14370
- var B = this, N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() {
14370
+ var k = this, N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() {
14371
14371
  };
14372
14372
  if (this.silent)
14373
14373
  return N(), !0;
14374
14374
  if (this._drain)
14375
14375
  this._stream.once("drain", function() {
14376
- B._drain = !1, B.log(W, N);
14376
+ k._drain = !1, k.log(W, N);
14377
14377
  });
14378
14378
  else {
14379
14379
  if (!this._rotate) {
@@ -14381,11 +14381,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14381
14381
  this._pendingSize += z, this._opening && !this.rotatedWhileOpening && this._needsNewFile(this._size + this._pendingSize) && (this.rotatedWhileOpening = !0);
14382
14382
  var O = this._stream.write(P, p.bind(this));
14383
14383
  return O ? N() : (this._drain = !0, this._stream.once("drain", function() {
14384
- B._drain = !1, N();
14384
+ k._drain = !1, N();
14385
14385
  })), C("written", O, this._drain), this.finishIfEnding(), O;
14386
14386
  }
14387
14387
  this._stream.once("rotate", function() {
14388
- B._rotate = !1, B.log(W, N);
14388
+ k._rotate = !1, k.log(W, N);
14389
14389
  });
14390
14390
  }
14391
14391
  function p() {
@@ -14394,8 +14394,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14394
14394
  return U._rotateFile();
14395
14395
  }));
14396
14396
  }
14397
- } }, { key: "query", value: function(W, B) {
14398
- typeof W == "function" && (B = W, W = {}), W = function(V) {
14397
+ } }, { key: "query", value: function(W, k) {
14398
+ typeof W == "function" && (k = W, W = {}), W = function(V) {
14399
14399
  return (V = V || {}).rows = V.rows || V.limit || 10, V.start = V.start || 0, V.until = V.until || /* @__PURE__ */ new Date(), s(V.until) !== "object" && (V.until = new Date(V.until)), V.from = V.from || V.until - 864e5, s(V.from) !== "object" && (V.from = new Date(V.from)), V.order = V.order || "desc", V;
14400
14400
  }(W);
14401
14401
  var N = g.join(this.dirname, this.filename), P = "", z = [], O = 0, p = h.createReadStream(N, { encoding: "utf8" });
@@ -14418,17 +14418,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14418
14418
  }
14419
14419
  }
14420
14420
  p.on("error", function(V) {
14421
- if (p.readable && p.destroy(), B)
14422
- return V.code !== "ENOENT" ? B(V) : B(null, z);
14421
+ if (p.readable && p.destroy(), k)
14422
+ return V.code !== "ENOENT" ? k(V) : k(null, z);
14423
14423
  }), p.on("data", function(V) {
14424
14424
  for (var Q = (V = (P + V).split(/\n+/)).length - 1, ee = 0; ee < Q; ee++)
14425
14425
  (!W.start || O >= W.start) && U(V[ee]), O++;
14426
14426
  P = V[Q];
14427
14427
  }), p.on("close", function() {
14428
- P && U(P, !0), W.order === "desc" && (z = z.reverse()), B && B(null, z);
14428
+ P && U(P, !0), W.order === "desc" && (z = z.reverse()), k && k(null, z);
14429
14429
  });
14430
14430
  } }, { key: "stream", value: function() {
14431
- var W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, B = g.join(this.dirname, this.filename), N = new M(), P = { file: B, start: W.start };
14431
+ var W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = g.join(this.dirname, this.filename), N = new M(), P = { file: k, start: W.start };
14432
14432
  return N.destroy = q(P, function(z, O) {
14433
14433
  if (z)
14434
14434
  return N.emit("error", z);
@@ -14440,24 +14440,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14440
14440
  }), N;
14441
14441
  } }, { key: "open", value: function() {
14442
14442
  var W = this;
14443
- this.filename && (this._opening || (this._opening = !0, this.stat(function(B, N) {
14444
- if (B)
14445
- return W.emit("error", B);
14443
+ this.filename && (this._opening || (this._opening = !0, this.stat(function(k, N) {
14444
+ if (k)
14445
+ return W.emit("error", k);
14446
14446
  C("stat done: %s { size: %s }", W.filename, N), W._size = N, W._dest = W._createStream(W._stream), W._opening = !1, W.once("open", function() {
14447
14447
  W._stream.eventNames().includes("rotate") ? W._stream.emit("rotate") : W._rotate = !1;
14448
14448
  });
14449
14449
  })));
14450
14450
  } }, { key: "stat", value: function(W) {
14451
- var B = this, N = this._getFile(), P = g.join(this.dirname, N);
14451
+ var k = this, N = this._getFile(), P = g.join(this.dirname, N);
14452
14452
  h.stat(P, function(z, O) {
14453
- return z && z.code === "ENOENT" ? (C("ENOENT ok", P), B.filename = N, W(null, 0)) : z ? (C("err ".concat(z.code, " ").concat(P)), W(z)) : !O || B._needsNewFile(O.size) ? B._incFile(function() {
14454
- return B.stat(W);
14455
- }) : (B.filename = N, void W(null, O.size));
14453
+ return z && z.code === "ENOENT" ? (C("ENOENT ok", P), k.filename = N, W(null, 0)) : z ? (C("err ".concat(z.code, " ").concat(P)), W(z)) : !O || k._needsNewFile(O.size) ? k._incFile(function() {
14454
+ return k.stat(W);
14455
+ }) : (k.filename = N, void W(null, O.size));
14456
14456
  });
14457
14457
  } }, { key: "close", value: function(W) {
14458
- var B = this;
14458
+ var k = this;
14459
14459
  this._stream && this._stream.end(function() {
14460
- W && W(), B.emit("flush"), B.emit("closed");
14460
+ W && W(), k.emit("flush"), k.emit("closed");
14461
14461
  });
14462
14462
  } }, { key: "_needsNewFile", value: function(W) {
14463
14463
  return W = W || this._size, this.maxsize && W >= this.maxsize;
@@ -14473,20 +14473,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14473
14473
  return W.open();
14474
14474
  });
14475
14475
  } }, { key: "_endStream", value: function() {
14476
- var W = this, B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
14476
+ var W = this, k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
14477
14477
  };
14478
14478
  this._dest ? (this._stream.unpipe(this._dest), this._dest.end(function() {
14479
- W._cleanupStream(W._dest), B();
14480
- })) : B();
14479
+ W._cleanupStream(W._dest), k();
14480
+ })) : k();
14481
14481
  } }, { key: "_createStream", value: function(W) {
14482
- var B = this, N = g.join(this.dirname, this.filename);
14482
+ var k = this, N = g.join(this.dirname, this.filename);
14483
14483
  C("create stream start", N, this.options);
14484
14484
  var P = h.createWriteStream(N, this.options).on("error", function(O) {
14485
14485
  return C(O);
14486
14486
  }).on("close", function() {
14487
14487
  return C("close", P.path, P.bytesWritten);
14488
14488
  }).on("open", function() {
14489
- C("file open ok", N), B.emit("open", N), W.pipe(P), B.rotatedWhileOpening && (B._stream = new A(), B._stream.setMaxListeners(30), B._rotateFile(), B.rotatedWhileOpening = !1, B._cleanupStream(P), W.end());
14489
+ C("file open ok", N), k.emit("open", N), W.pipe(P), k.rotatedWhileOpening && (k._stream = new A(), k._stream.setMaxListeners(30), k._rotateFile(), k.rotatedWhileOpening = !1, k._cleanupStream(P), W.end());
14490
14490
  });
14491
14491
  if (C("create stream ok", N), this.zippedArchive) {
14492
14492
  var z = R.createGzip();
@@ -14495,30 +14495,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14495
14495
  return P;
14496
14496
  } }, { key: "_incFile", value: function(W) {
14497
14497
  C("_incFile", this.filename);
14498
- var B = g.extname(this._basename), N = g.basename(this._basename, B);
14499
- this.tailable ? this._checkMaxFilesTailable(B, N, W) : (this._created += 1, this._checkMaxFilesIncrementing(B, N, W));
14498
+ var k = g.extname(this._basename), N = g.basename(this._basename, k);
14499
+ this.tailable ? this._checkMaxFilesTailable(k, N, W) : (this._created += 1, this._checkMaxFilesIncrementing(k, N, W));
14500
14500
  } }, { key: "_getFile", value: function() {
14501
- var W = g.extname(this._basename), B = g.basename(this._basename, W), N = this.rotationFormat ? this.rotationFormat() : this._created, P = !this.tailable && this._created ? "".concat(B).concat(N).concat(W) : "".concat(B).concat(W);
14501
+ var W = g.extname(this._basename), k = g.basename(this._basename, W), N = this.rotationFormat ? this.rotationFormat() : this._created, P = !this.tailable && this._created ? "".concat(k).concat(N).concat(W) : "".concat(k).concat(W);
14502
14502
  return this.zippedArchive && !this.tailable ? "".concat(P, ".gz") : P;
14503
- } }, { key: "_checkMaxFilesIncrementing", value: function(W, B, N) {
14503
+ } }, { key: "_checkMaxFilesIncrementing", value: function(W, k, N) {
14504
14504
  if (!this.maxFiles || this._created < this.maxFiles)
14505
14505
  return r(N);
14506
- var P = this._created - this.maxFiles, z = P !== 0 ? P : "", O = this.zippedArchive ? ".gz" : "", p = "".concat(B).concat(z).concat(W).concat(O), U = g.join(this.dirname, p);
14506
+ var P = this._created - this.maxFiles, z = P !== 0 ? P : "", O = this.zippedArchive ? ".gz" : "", p = "".concat(k).concat(z).concat(W).concat(O), U = g.join(this.dirname, p);
14507
14507
  h.unlink(U, N);
14508
- } }, { key: "_checkMaxFilesTailable", value: function(W, B, N) {
14508
+ } }, { key: "_checkMaxFilesTailable", value: function(W, k, N) {
14509
14509
  var P = this, z = [];
14510
14510
  if (this.maxFiles) {
14511
14511
  for (var O = this.zippedArchive ? ".gz" : "", p = this.maxFiles - 1; p > 1; p--)
14512
14512
  z.push(function(U, V) {
14513
- var Q = this, ee = "".concat(B).concat(U - 1).concat(W).concat(O), ne = g.join(this.dirname, ee);
14513
+ var Q = this, ee = "".concat(k).concat(U - 1).concat(W).concat(O), ne = g.join(this.dirname, ee);
14514
14514
  h.exists(ne, function(Y) {
14515
14515
  if (!Y)
14516
14516
  return V(null);
14517
- ee = "".concat(B).concat(U).concat(W).concat(O), h.rename(ne, g.join(Q.dirname, ee), V);
14517
+ ee = "".concat(k).concat(U).concat(W).concat(O), h.rename(ne, g.join(Q.dirname, ee), V);
14518
14518
  });
14519
14519
  }.bind(this, p));
14520
14520
  b(z, function() {
14521
- h.rename(g.join(P.dirname, "".concat(B).concat(W)), g.join(P.dirname, "".concat(B, "1").concat(W).concat(O)), N);
14521
+ h.rename(g.join(P.dirname, "".concat(k).concat(W)), g.join(P.dirname, "".concat(k, "1").concat(W).concat(O)), N);
14522
14522
  });
14523
14523
  }
14524
14524
  } }, { key: "_createLogDirIfNotExist", value: function(W) {
@@ -14720,82 +14720,82 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14720
14720
  var j = b[R];
14721
14721
  g[g[j]] = j;
14722
14722
  }
14723
- function F(B, N, P) {
14723
+ function F(k, N, P) {
14724
14724
  var z = [], O = 0;
14725
14725
  function p() {
14726
- for (var V; (V = B.read()) !== null; )
14726
+ for (var V; (V = k.read()) !== null; )
14727
14727
  z.push(V), O += V.length;
14728
- B.once("readable", p);
14728
+ k.once("readable", p);
14729
14729
  }
14730
14730
  function U() {
14731
14731
  var V, Q = null;
14732
- O >= u ? Q = new RangeError(f) : V = i.concat(z, O), z = [], B.close(), P(Q, V);
14732
+ O >= u ? Q = new RangeError(f) : V = i.concat(z, O), z = [], k.close(), P(Q, V);
14733
14733
  }
14734
- B.on("error", function(V) {
14735
- B.removeListener("end", U), B.removeListener("readable", p), P(V);
14736
- }), B.on("end", U), B.end(N), p();
14734
+ k.on("error", function(V) {
14735
+ k.removeListener("end", U), k.removeListener("readable", p), P(V);
14736
+ }), k.on("end", U), k.end(N), p();
14737
14737
  }
14738
- function M(B, N) {
14738
+ function M(k, N) {
14739
14739
  if (typeof N == "string" && (N = i.from(N)), !i.isBuffer(N))
14740
14740
  throw new TypeError("Not a string or buffer");
14741
- var P = B._finishFlushFlag;
14742
- return B._processChunk(N, P);
14741
+ var P = k._finishFlushFlag;
14742
+ return k._processChunk(N, P);
14743
14743
  }
14744
- function A(B) {
14744
+ function A(k) {
14745
14745
  if (!(this instanceof A))
14746
- return new A(B);
14747
- _.call(this, B, l.DEFLATE);
14746
+ return new A(k);
14747
+ _.call(this, k, l.DEFLATE);
14748
14748
  }
14749
- function d(B) {
14749
+ function d(k) {
14750
14750
  if (!(this instanceof d))
14751
- return new d(B);
14752
- _.call(this, B, l.INFLATE);
14751
+ return new d(k);
14752
+ _.call(this, k, l.INFLATE);
14753
14753
  }
14754
- function C(B) {
14754
+ function C(k) {
14755
14755
  if (!(this instanceof C))
14756
- return new C(B);
14757
- _.call(this, B, l.GZIP);
14756
+ return new C(k);
14757
+ _.call(this, k, l.GZIP);
14758
14758
  }
14759
- function $(B) {
14759
+ function $(k) {
14760
14760
  if (!(this instanceof $))
14761
- return new $(B);
14762
- _.call(this, B, l.GUNZIP);
14761
+ return new $(k);
14762
+ _.call(this, k, l.GUNZIP);
14763
14763
  }
14764
- function q(B) {
14764
+ function q(k) {
14765
14765
  if (!(this instanceof q))
14766
- return new q(B);
14767
- _.call(this, B, l.DEFLATERAW);
14766
+ return new q(k);
14767
+ _.call(this, k, l.DEFLATERAW);
14768
14768
  }
14769
- function y(B) {
14769
+ function y(k) {
14770
14770
  if (!(this instanceof y))
14771
- return new y(B);
14772
- _.call(this, B, l.INFLATERAW);
14771
+ return new y(k);
14772
+ _.call(this, k, l.INFLATERAW);
14773
14773
  }
14774
- function m(B) {
14774
+ function m(k) {
14775
14775
  if (!(this instanceof m))
14776
- return new m(B);
14777
- _.call(this, B, l.UNZIP);
14776
+ return new m(k);
14777
+ _.call(this, k, l.UNZIP);
14778
14778
  }
14779
- function I(B) {
14780
- return B === l.Z_NO_FLUSH || B === l.Z_PARTIAL_FLUSH || B === l.Z_SYNC_FLUSH || B === l.Z_FULL_FLUSH || B === l.Z_FINISH || B === l.Z_BLOCK;
14779
+ function I(k) {
14780
+ return k === l.Z_NO_FLUSH || k === l.Z_PARTIAL_FLUSH || k === l.Z_SYNC_FLUSH || k === l.Z_FULL_FLUSH || k === l.Z_FINISH || k === l.Z_BLOCK;
14781
14781
  }
14782
- function _(B, N) {
14782
+ function _(k, N) {
14783
14783
  var P = this;
14784
- if (this._opts = B = B || {}, this._chunkSize = B.chunkSize || t.Z_DEFAULT_CHUNK, s.call(this, B), B.flush && !I(B.flush))
14785
- throw new Error("Invalid flush flag: " + B.flush);
14786
- if (B.finishFlush && !I(B.finishFlush))
14787
- throw new Error("Invalid flush flag: " + B.finishFlush);
14788
- if (this._flushFlag = B.flush || l.Z_NO_FLUSH, this._finishFlushFlag = B.finishFlush !== void 0 ? B.finishFlush : l.Z_FINISH, B.chunkSize && (B.chunkSize < t.Z_MIN_CHUNK || B.chunkSize > t.Z_MAX_CHUNK))
14789
- throw new Error("Invalid chunk size: " + B.chunkSize);
14790
- if (B.windowBits && (B.windowBits < t.Z_MIN_WINDOWBITS || B.windowBits > t.Z_MAX_WINDOWBITS))
14791
- throw new Error("Invalid windowBits: " + B.windowBits);
14792
- if (B.level && (B.level < t.Z_MIN_LEVEL || B.level > t.Z_MAX_LEVEL))
14793
- throw new Error("Invalid compression level: " + B.level);
14794
- if (B.memLevel && (B.memLevel < t.Z_MIN_MEMLEVEL || B.memLevel > t.Z_MAX_MEMLEVEL))
14795
- throw new Error("Invalid memLevel: " + B.memLevel);
14796
- if (B.strategy && B.strategy != t.Z_FILTERED && B.strategy != t.Z_HUFFMAN_ONLY && B.strategy != t.Z_RLE && B.strategy != t.Z_FIXED && B.strategy != t.Z_DEFAULT_STRATEGY)
14797
- throw new Error("Invalid strategy: " + B.strategy);
14798
- if (B.dictionary && !i.isBuffer(B.dictionary))
14784
+ if (this._opts = k = k || {}, this._chunkSize = k.chunkSize || t.Z_DEFAULT_CHUNK, s.call(this, k), k.flush && !I(k.flush))
14785
+ throw new Error("Invalid flush flag: " + k.flush);
14786
+ if (k.finishFlush && !I(k.finishFlush))
14787
+ throw new Error("Invalid flush flag: " + k.finishFlush);
14788
+ if (this._flushFlag = k.flush || l.Z_NO_FLUSH, this._finishFlushFlag = k.finishFlush !== void 0 ? k.finishFlush : l.Z_FINISH, k.chunkSize && (k.chunkSize < t.Z_MIN_CHUNK || k.chunkSize > t.Z_MAX_CHUNK))
14789
+ throw new Error("Invalid chunk size: " + k.chunkSize);
14790
+ if (k.windowBits && (k.windowBits < t.Z_MIN_WINDOWBITS || k.windowBits > t.Z_MAX_WINDOWBITS))
14791
+ throw new Error("Invalid windowBits: " + k.windowBits);
14792
+ if (k.level && (k.level < t.Z_MIN_LEVEL || k.level > t.Z_MAX_LEVEL))
14793
+ throw new Error("Invalid compression level: " + k.level);
14794
+ if (k.memLevel && (k.memLevel < t.Z_MIN_MEMLEVEL || k.memLevel > t.Z_MAX_MEMLEVEL))
14795
+ throw new Error("Invalid memLevel: " + k.memLevel);
14796
+ if (k.strategy && k.strategy != t.Z_FILTERED && k.strategy != t.Z_HUFFMAN_ONLY && k.strategy != t.Z_RLE && k.strategy != t.Z_FIXED && k.strategy != t.Z_DEFAULT_STRATEGY)
14797
+ throw new Error("Invalid strategy: " + k.strategy);
14798
+ if (k.dictionary && !i.isBuffer(k.dictionary))
14799
14799
  throw new Error("Invalid dictionary: it should be a Buffer instance");
14800
14800
  this._handle = new l.Zlib(N);
14801
14801
  var z = this;
@@ -14805,95 +14805,95 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14805
14805
  Q.errno = V, Q.code = t.codes[V], z.emit("error", Q);
14806
14806
  };
14807
14807
  var O = t.Z_DEFAULT_COMPRESSION;
14808
- typeof B.level == "number" && (O = B.level);
14808
+ typeof k.level == "number" && (O = k.level);
14809
14809
  var p = t.Z_DEFAULT_STRATEGY;
14810
- typeof B.strategy == "number" && (p = B.strategy), this._handle.init(B.windowBits || t.Z_DEFAULT_WINDOWBITS, O, B.memLevel || t.Z_DEFAULT_MEMLEVEL, p, B.dictionary), this._buffer = i.allocUnsafe(this._chunkSize), this._offset = 0, this._level = O, this._strategy = p, this.once("end", this.close), Object.defineProperty(this, "_closed", { get: function() {
14810
+ typeof k.strategy == "number" && (p = k.strategy), this._handle.init(k.windowBits || t.Z_DEFAULT_WINDOWBITS, O, k.memLevel || t.Z_DEFAULT_MEMLEVEL, p, k.dictionary), this._buffer = i.allocUnsafe(this._chunkSize), this._offset = 0, this._level = O, this._strategy = p, this.once("end", this.close), Object.defineProperty(this, "_closed", { get: function() {
14811
14811
  return !P._handle;
14812
14812
  }, configurable: !0, enumerable: !0 });
14813
14813
  }
14814
- function L(B, N) {
14815
- N && r.nextTick(N), B._handle && (B._handle.close(), B._handle = null);
14816
- }
14817
- function W(B) {
14818
- B.emit("close");
14819
- }
14820
- Object.defineProperty(t, "codes", { enumerable: !0, value: Object.freeze(g), writable: !1 }), t.Deflate = A, t.Inflate = d, t.Gzip = C, t.Gunzip = $, t.DeflateRaw = q, t.InflateRaw = y, t.Unzip = m, t.createDeflate = function(B) {
14821
- return new A(B);
14822
- }, t.createInflate = function(B) {
14823
- return new d(B);
14824
- }, t.createDeflateRaw = function(B) {
14825
- return new q(B);
14826
- }, t.createInflateRaw = function(B) {
14827
- return new y(B);
14828
- }, t.createGzip = function(B) {
14829
- return new C(B);
14830
- }, t.createGunzip = function(B) {
14831
- return new $(B);
14832
- }, t.createUnzip = function(B) {
14833
- return new m(B);
14834
- }, t.deflate = function(B, N, P) {
14835
- return typeof N == "function" && (P = N, N = {}), F(new A(N), B, P);
14836
- }, t.deflateSync = function(B, N) {
14837
- return M(new A(N), B);
14838
- }, t.gzip = function(B, N, P) {
14839
- return typeof N == "function" && (P = N, N = {}), F(new C(N), B, P);
14840
- }, t.gzipSync = function(B, N) {
14841
- return M(new C(N), B);
14842
- }, t.deflateRaw = function(B, N, P) {
14843
- return typeof N == "function" && (P = N, N = {}), F(new q(N), B, P);
14844
- }, t.deflateRawSync = function(B, N) {
14845
- return M(new q(N), B);
14846
- }, t.unzip = function(B, N, P) {
14847
- return typeof N == "function" && (P = N, N = {}), F(new m(N), B, P);
14848
- }, t.unzipSync = function(B, N) {
14849
- return M(new m(N), B);
14850
- }, t.inflate = function(B, N, P) {
14851
- return typeof N == "function" && (P = N, N = {}), F(new d(N), B, P);
14852
- }, t.inflateSync = function(B, N) {
14853
- return M(new d(N), B);
14854
- }, t.gunzip = function(B, N, P) {
14855
- return typeof N == "function" && (P = N, N = {}), F(new $(N), B, P);
14856
- }, t.gunzipSync = function(B, N) {
14857
- return M(new $(N), B);
14858
- }, t.inflateRaw = function(B, N, P) {
14859
- return typeof N == "function" && (P = N, N = {}), F(new y(N), B, P);
14860
- }, t.inflateRawSync = function(B, N) {
14861
- return M(new y(N), B);
14862
- }, o.inherits(_, s), _.prototype.params = function(B, N, P) {
14863
- if (B < t.Z_MIN_LEVEL || B > t.Z_MAX_LEVEL)
14864
- throw new RangeError("Invalid compression level: " + B);
14814
+ function L(k, N) {
14815
+ N && r.nextTick(N), k._handle && (k._handle.close(), k._handle = null);
14816
+ }
14817
+ function W(k) {
14818
+ k.emit("close");
14819
+ }
14820
+ Object.defineProperty(t, "codes", { enumerable: !0, value: Object.freeze(g), writable: !1 }), t.Deflate = A, t.Inflate = d, t.Gzip = C, t.Gunzip = $, t.DeflateRaw = q, t.InflateRaw = y, t.Unzip = m, t.createDeflate = function(k) {
14821
+ return new A(k);
14822
+ }, t.createInflate = function(k) {
14823
+ return new d(k);
14824
+ }, t.createDeflateRaw = function(k) {
14825
+ return new q(k);
14826
+ }, t.createInflateRaw = function(k) {
14827
+ return new y(k);
14828
+ }, t.createGzip = function(k) {
14829
+ return new C(k);
14830
+ }, t.createGunzip = function(k) {
14831
+ return new $(k);
14832
+ }, t.createUnzip = function(k) {
14833
+ return new m(k);
14834
+ }, t.deflate = function(k, N, P) {
14835
+ return typeof N == "function" && (P = N, N = {}), F(new A(N), k, P);
14836
+ }, t.deflateSync = function(k, N) {
14837
+ return M(new A(N), k);
14838
+ }, t.gzip = function(k, N, P) {
14839
+ return typeof N == "function" && (P = N, N = {}), F(new C(N), k, P);
14840
+ }, t.gzipSync = function(k, N) {
14841
+ return M(new C(N), k);
14842
+ }, t.deflateRaw = function(k, N, P) {
14843
+ return typeof N == "function" && (P = N, N = {}), F(new q(N), k, P);
14844
+ }, t.deflateRawSync = function(k, N) {
14845
+ return M(new q(N), k);
14846
+ }, t.unzip = function(k, N, P) {
14847
+ return typeof N == "function" && (P = N, N = {}), F(new m(N), k, P);
14848
+ }, t.unzipSync = function(k, N) {
14849
+ return M(new m(N), k);
14850
+ }, t.inflate = function(k, N, P) {
14851
+ return typeof N == "function" && (P = N, N = {}), F(new d(N), k, P);
14852
+ }, t.inflateSync = function(k, N) {
14853
+ return M(new d(N), k);
14854
+ }, t.gunzip = function(k, N, P) {
14855
+ return typeof N == "function" && (P = N, N = {}), F(new $(N), k, P);
14856
+ }, t.gunzipSync = function(k, N) {
14857
+ return M(new $(N), k);
14858
+ }, t.inflateRaw = function(k, N, P) {
14859
+ return typeof N == "function" && (P = N, N = {}), F(new y(N), k, P);
14860
+ }, t.inflateRawSync = function(k, N) {
14861
+ return M(new y(N), k);
14862
+ }, o.inherits(_, s), _.prototype.params = function(k, N, P) {
14863
+ if (k < t.Z_MIN_LEVEL || k > t.Z_MAX_LEVEL)
14864
+ throw new RangeError("Invalid compression level: " + k);
14865
14865
  if (N != t.Z_FILTERED && N != t.Z_HUFFMAN_ONLY && N != t.Z_RLE && N != t.Z_FIXED && N != t.Z_DEFAULT_STRATEGY)
14866
14866
  throw new TypeError("Invalid strategy: " + N);
14867
- if (this._level !== B || this._strategy !== N) {
14867
+ if (this._level !== k || this._strategy !== N) {
14868
14868
  var z = this;
14869
14869
  this.flush(l.Z_SYNC_FLUSH, function() {
14870
- c(z._handle, "zlib binding closed"), z._handle.params(B, N), z._hadError || (z._level = B, z._strategy = N, P && P());
14870
+ c(z._handle, "zlib binding closed"), z._handle.params(k, N), z._hadError || (z._level = k, z._strategy = N, P && P());
14871
14871
  });
14872
14872
  } else
14873
14873
  r.nextTick(P);
14874
14874
  }, _.prototype.reset = function() {
14875
14875
  return c(this._handle, "zlib binding closed"), this._handle.reset();
14876
- }, _.prototype._flush = function(B) {
14877
- this._transform(i.alloc(0), "", B);
14878
- }, _.prototype.flush = function(B, N) {
14876
+ }, _.prototype._flush = function(k) {
14877
+ this._transform(i.alloc(0), "", k);
14878
+ }, _.prototype.flush = function(k, N) {
14879
14879
  var P = this, z = this._writableState;
14880
- (typeof B == "function" || B === void 0 && !N) && (N = B, B = l.Z_FULL_FLUSH), z.ended ? N && r.nextTick(N) : z.ending ? N && this.once("end", N) : z.needDrain ? N && this.once("drain", function() {
14881
- return P.flush(B, N);
14882
- }) : (this._flushFlag = B, this.write(i.alloc(0), "", N));
14883
- }, _.prototype.close = function(B) {
14884
- L(this, B), r.nextTick(W, this);
14885
- }, _.prototype._transform = function(B, N, P) {
14886
- var z, O = this._writableState, p = (O.ending || O.ended) && (!B || O.length === B.length);
14887
- return B === null || i.isBuffer(B) ? this._handle ? (p ? z = this._finishFlushFlag : (z = this._flushFlag, B.length >= O.length && (this._flushFlag = this._opts.flush || l.Z_NO_FLUSH)), void this._processChunk(B, z, P)) : P(new Error("zlib binding closed")) : P(new Error("invalid input"));
14888
- }, _.prototype._processChunk = function(B, N, P) {
14889
- var z = B && B.length, O = this._chunkSize - this._offset, p = 0, U = this, V = typeof P == "function";
14880
+ (typeof k == "function" || k === void 0 && !N) && (N = k, k = l.Z_FULL_FLUSH), z.ended ? N && r.nextTick(N) : z.ending ? N && this.once("end", N) : z.needDrain ? N && this.once("drain", function() {
14881
+ return P.flush(k, N);
14882
+ }) : (this._flushFlag = k, this.write(i.alloc(0), "", N));
14883
+ }, _.prototype.close = function(k) {
14884
+ L(this, k), r.nextTick(W, this);
14885
+ }, _.prototype._transform = function(k, N, P) {
14886
+ var z, O = this._writableState, p = (O.ending || O.ended) && (!k || O.length === k.length);
14887
+ return k === null || i.isBuffer(k) ? this._handle ? (p ? z = this._finishFlushFlag : (z = this._flushFlag, k.length >= O.length && (this._flushFlag = this._opts.flush || l.Z_NO_FLUSH)), void this._processChunk(k, z, P)) : P(new Error("zlib binding closed")) : P(new Error("invalid input"));
14888
+ }, _.prototype._processChunk = function(k, N, P) {
14889
+ var z = k && k.length, O = this._chunkSize - this._offset, p = 0, U = this, V = typeof P == "function";
14890
14890
  if (!V) {
14891
14891
  var Q, ee = [], ne = 0;
14892
- this.on("error", function(k) {
14893
- Q = k;
14892
+ this.on("error", function(B) {
14893
+ Q = B;
14894
14894
  }), c(this._handle, "zlib binding closed");
14895
14895
  do
14896
- var Y = this._handle.writeSync(N, B, p, z, this._buffer, this._offset, O);
14896
+ var Y = this._handle.writeSync(N, k, p, z, this._buffer, this._offset, O);
14897
14897
  while (!this._hadError && T(Y[0], Y[1]));
14898
14898
  if (this._hadError)
14899
14899
  throw Q;
@@ -14903,8 +14903,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14903
14903
  return L(this), G;
14904
14904
  }
14905
14905
  c(this._handle, "zlib binding closed");
14906
- var S = this._handle.write(N, B, p, z, this._buffer, this._offset, O);
14907
- function T(k, J) {
14906
+ var S = this._handle.write(N, k, p, z, this._buffer, this._offset, O);
14907
+ function T(B, J) {
14908
14908
  if (this && (this.buffer = null, this.callback = null), !U._hadError) {
14909
14909
  var K = O - J;
14910
14910
  if (c(K >= 0, "have should not go down"), K > 0) {
@@ -14912,17 +14912,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14912
14912
  U._offset += K, V ? U.push(re) : (ee.push(re), ne += re.length);
14913
14913
  }
14914
14914
  if ((J === 0 || U._offset >= U._chunkSize) && (O = U._chunkSize, U._offset = 0, U._buffer = i.allocUnsafe(U._chunkSize)), J === 0) {
14915
- if (p += z - k, z = k, !V)
14915
+ if (p += z - B, z = B, !V)
14916
14916
  return !0;
14917
- var se = U._handle.write(N, B, p, z, U._buffer, U._offset, U._chunkSize);
14918
- return se.callback = T, void (se.buffer = B);
14917
+ var se = U._handle.write(N, k, p, z, U._buffer, U._offset, U._chunkSize);
14918
+ return se.callback = T, void (se.buffer = k);
14919
14919
  }
14920
14920
  if (!V)
14921
14921
  return !1;
14922
14922
  P();
14923
14923
  }
14924
14924
  }
14925
- S.buffer = B, S.callback = T;
14925
+ S.buffer = k, S.callback = T;
14926
14926
  }, o.inherits(A, _), o.inherits(d, _), o.inherits(C, _), o.inherits($, _), o.inherits(q, _), o.inherits(y, _), o.inherits(m, _);
14927
14927
  }).call(this, n(2));
14928
14928
  }, function(e, t, n) {
@@ -15219,25 +15219,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15219
15219
  y.pending_buf[y.pending++] = m >>> 8 & 255, y.pending_buf[y.pending++] = 255 & m;
15220
15220
  }
15221
15221
  function R(y, m) {
15222
- var I, _, L = y.max_chain_length, W = y.strstart, B = y.prev_length, N = y.nice_match, P = y.strstart > y.w_size - 262 ? y.strstart - (y.w_size - 262) : 0, z = y.window, O = y.w_mask, p = y.prev, U = y.strstart + 258, V = z[W + B - 1], Q = z[W + B];
15222
+ var I, _, L = y.max_chain_length, W = y.strstart, k = y.prev_length, N = y.nice_match, P = y.strstart > y.w_size - 262 ? y.strstart - (y.w_size - 262) : 0, z = y.window, O = y.w_mask, p = y.prev, U = y.strstart + 258, V = z[W + k - 1], Q = z[W + k];
15223
15223
  y.prev_length >= y.good_match && (L >>= 2), N > y.lookahead && (N = y.lookahead);
15224
15224
  do
15225
- if (z[(I = m) + B] === Q && z[I + B - 1] === V && z[I] === z[W] && z[++I] === z[W + 1]) {
15225
+ if (z[(I = m) + k] === Q && z[I + k - 1] === V && z[I] === z[W] && z[++I] === z[W + 1]) {
15226
15226
  W += 2, I++;
15227
15227
  do
15228
15228
  ;
15229
15229
  while (z[++W] === z[++I] && z[++W] === z[++I] && z[++W] === z[++I] && z[++W] === z[++I] && z[++W] === z[++I] && z[++W] === z[++I] && z[++W] === z[++I] && z[++W] === z[++I] && W < U);
15230
- if (_ = 258 - (U - W), W = U - 258, _ > B) {
15231
- if (y.match_start = m, B = _, _ >= N)
15230
+ if (_ = 258 - (U - W), W = U - 258, _ > k) {
15231
+ if (y.match_start = m, k = _, _ >= N)
15232
15232
  break;
15233
- V = z[W + B - 1], Q = z[W + B];
15233
+ V = z[W + k - 1], Q = z[W + k];
15234
15234
  }
15235
15235
  }
15236
15236
  while ((m = p[m & O]) > P && --L != 0);
15237
- return B <= y.lookahead ? B : y.lookahead;
15237
+ return k <= y.lookahead ? k : y.lookahead;
15238
15238
  }
15239
15239
  function j(y) {
15240
- var m, I, _, L, W, B, N, P, z, O, p = y.w_size;
15240
+ var m, I, _, L, W, k, N, P, z, O, p = y.w_size;
15241
15241
  do {
15242
15242
  if (L = y.window_size - y.lookahead - y.strstart, y.strstart >= p + (p - 262)) {
15243
15243
  i.arraySet(y.window, y.window, p, p, 0), y.match_start -= p, y.strstart -= p, y.block_start -= p, m = I = y.hash_size;
@@ -15252,7 +15252,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15252
15252
  }
15253
15253
  if (y.strm.avail_in === 0)
15254
15254
  break;
15255
- if (B = y.strm, N = y.window, P = y.strstart + y.lookahead, z = L, O = void 0, (O = B.avail_in) > z && (O = z), I = O === 0 ? 0 : (B.avail_in -= O, i.arraySet(N, B.input, B.next_in, O, P), B.state.wrap === 1 ? B.adler = l(B.adler, N, O, P) : B.state.wrap === 2 && (B.adler = o(B.adler, N, O, P)), B.next_in += O, B.total_in += O, O), y.lookahead += I, y.lookahead + y.insert >= 3)
15255
+ if (k = y.strm, N = y.window, P = y.strstart + y.lookahead, z = L, O = void 0, (O = k.avail_in) > z && (O = z), I = O === 0 ? 0 : (k.avail_in -= O, i.arraySet(N, k.input, k.next_in, O, P), k.state.wrap === 1 ? k.adler = l(k.adler, N, O, P) : k.state.wrap === 2 && (k.adler = o(k.adler, N, O, P)), k.next_in += O, k.total_in += O, O), y.lookahead += I, y.lookahead + y.insert >= 3)
15256
15256
  for (W = y.strstart - y.insert, y.ins_h = y.window[W], y.ins_h = (y.ins_h << y.hash_shift ^ y.window[W + 1]) & y.hash_mask; y.insert && (y.ins_h = (y.ins_h << y.hash_shift ^ y.window[W + 3 - 1]) & y.hash_mask, y.prev[W & y.w_mask] = y.head[y.ins_h], y.head[y.ins_h] = W, W++, y.insert--, !(y.lookahead + y.insert < 3)); )
15257
15257
  ;
15258
15258
  } while (y.lookahead < 262 && y.strm.avail_in !== 0);
@@ -15321,12 +15321,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15321
15321
  function q(y, m, I, _, L, W) {
15322
15322
  if (!y)
15323
15323
  return -2;
15324
- var B = 1;
15325
- if (m === -1 && (m = 6), _ < 0 ? (B = 0, _ = -_) : _ > 15 && (B = 2, _ -= 16), L < 1 || L > 9 || I !== 8 || _ < 8 || _ > 15 || m < 0 || m > 9 || W < 0 || W > 4)
15324
+ var k = 1;
15325
+ if (m === -1 && (m = 6), _ < 0 ? (k = 0, _ = -_) : _ > 15 && (k = 2, _ -= 16), L < 1 || L > 9 || I !== 8 || _ < 8 || _ > 15 || m < 0 || m > 9 || W < 0 || W > 4)
15326
15326
  return u(y, -2);
15327
15327
  _ === 8 && (_ = 9);
15328
15328
  var N = new d();
15329
- return y.state = N, N.strm = y, N.wrap = B, N.gzhead = null, N.w_bits = _, N.w_size = 1 << N.w_bits, N.w_mask = N.w_size - 1, N.hash_bits = L + 7, N.hash_size = 1 << N.hash_bits, N.hash_mask = N.hash_size - 1, N.hash_shift = ~~((N.hash_bits + 3 - 1) / 3), N.window = new i.Buf8(2 * N.w_size), N.head = new i.Buf16(N.hash_size), N.prev = new i.Buf16(N.w_size), N.lit_bufsize = 1 << L + 6, N.pending_buf_size = 4 * N.lit_bufsize, N.pending_buf = new i.Buf8(N.pending_buf_size), N.d_buf = 1 * N.lit_bufsize, N.l_buf = 3 * N.lit_bufsize, N.level = m, N.strategy = W, N.method = I, $(y);
15329
+ return y.state = N, N.strm = y, N.wrap = k, N.gzhead = null, N.w_bits = _, N.w_size = 1 << N.w_bits, N.w_mask = N.w_size - 1, N.hash_bits = L + 7, N.hash_size = 1 << N.hash_bits, N.hash_mask = N.hash_size - 1, N.hash_shift = ~~((N.hash_bits + 3 - 1) / 3), N.window = new i.Buf8(2 * N.w_size), N.head = new i.Buf16(N.hash_size), N.prev = new i.Buf16(N.w_size), N.lit_bufsize = 1 << L + 6, N.pending_buf_size = 4 * N.lit_bufsize, N.pending_buf = new i.Buf8(N.pending_buf_size), N.d_buf = 1 * N.lit_bufsize, N.l_buf = 3 * N.lit_bufsize, N.level = m, N.strategy = W, N.method = I, $(y);
15330
15330
  }
15331
15331
  r = [new A(0, 0, 0, 0, function(y, m) {
15332
15332
  var I = 65535;
@@ -15357,8 +15357,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15357
15357
  if (_.wrap === 2)
15358
15358
  y.adler = 0, g(_, 31), g(_, 139), g(_, 8), _.gzhead ? (g(_, (_.gzhead.text ? 1 : 0) + (_.gzhead.hcrc ? 2 : 0) + (_.gzhead.extra ? 4 : 0) + (_.gzhead.name ? 8 : 0) + (_.gzhead.comment ? 16 : 0)), g(_, 255 & _.gzhead.time), g(_, _.gzhead.time >> 8 & 255), g(_, _.gzhead.time >> 16 & 255), g(_, _.gzhead.time >> 24 & 255), g(_, _.level === 9 ? 2 : _.strategy >= 2 || _.level < 2 ? 4 : 0), g(_, 255 & _.gzhead.os), _.gzhead.extra && _.gzhead.extra.length && (g(_, 255 & _.gzhead.extra.length), g(_, _.gzhead.extra.length >> 8 & 255)), _.gzhead.hcrc && (y.adler = o(y.adler, _.pending_buf, _.pending, 0)), _.gzindex = 0, _.status = 69) : (g(_, 0), g(_, 0), g(_, 0), g(_, 0), g(_, 0), g(_, _.level === 9 ? 2 : _.strategy >= 2 || _.level < 2 ? 4 : 0), g(_, 3), _.status = 113);
15359
15359
  else {
15360
- var B = 8 + (_.w_bits - 8 << 4) << 8;
15361
- B |= (_.strategy >= 2 || _.level < 2 ? 0 : _.level < 6 ? 1 : _.level === 6 ? 2 : 3) << 6, _.strstart !== 0 && (B |= 32), B += 31 - B % 31, _.status = 113, b(_, B), _.strstart !== 0 && (b(_, y.adler >>> 16), b(_, 65535 & y.adler)), y.adler = 1;
15360
+ var k = 8 + (_.w_bits - 8 << 4) << 8;
15361
+ k |= (_.strategy >= 2 || _.level < 2 ? 0 : _.level < 6 ? 1 : _.level === 6 ? 2 : 3) << 6, _.strstart !== 0 && (k |= 32), k += 31 - k % 31, _.status = 113, b(_, k), _.strstart !== 0 && (b(_, y.adler >>> 16), b(_, 65535 & y.adler)), y.adler = 1;
15362
15362
  }
15363
15363
  if (_.status === 69)
15364
15364
  if (_.gzhead.extra) {
@@ -15442,17 +15442,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15442
15442
  var m;
15443
15443
  return y && y.state ? (m = y.state.status) !== 42 && m !== 69 && m !== 73 && m !== 91 && m !== 103 && m !== 113 && m !== 666 ? u(y, -2) : (y.state = null, m === 113 ? u(y, -3) : 0) : -2;
15444
15444
  }, t.deflateSetDictionary = function(y, m) {
15445
- var I, _, L, W, B, N, P, z, O = m.length;
15445
+ var I, _, L, W, k, N, P, z, O = m.length;
15446
15446
  if (!y || !y.state || (W = (I = y.state).wrap) === 2 || W === 1 && I.status !== 42 || I.lookahead)
15447
15447
  return -2;
15448
- for (W === 1 && (y.adler = l(y.adler, m, O, 0)), I.wrap = 0, O >= I.w_size && (W === 0 && (E(I.head), I.strstart = 0, I.block_start = 0, I.insert = 0), z = new i.Buf8(I.w_size), i.arraySet(z, m, O - I.w_size, I.w_size, 0), m = z, O = I.w_size), B = y.avail_in, N = y.next_in, P = y.input, y.avail_in = O, y.next_in = 0, y.input = m, j(I); I.lookahead >= 3; ) {
15448
+ for (W === 1 && (y.adler = l(y.adler, m, O, 0)), I.wrap = 0, O >= I.w_size && (W === 0 && (E(I.head), I.strstart = 0, I.block_start = 0, I.insert = 0), z = new i.Buf8(I.w_size), i.arraySet(z, m, O - I.w_size, I.w_size, 0), m = z, O = I.w_size), k = y.avail_in, N = y.next_in, P = y.input, y.avail_in = O, y.next_in = 0, y.input = m, j(I); I.lookahead >= 3; ) {
15449
15449
  _ = I.strstart, L = I.lookahead - 2;
15450
15450
  do
15451
15451
  I.ins_h = (I.ins_h << I.hash_shift ^ I.window[_ + 3 - 1]) & I.hash_mask, I.prev[_ & I.w_mask] = I.head[I.ins_h], I.head[I.ins_h] = _, _++;
15452
15452
  while (--L);
15453
15453
  I.strstart = _, I.lookahead = 2, j(I);
15454
15454
  }
15455
- return I.strstart += I.lookahead, I.block_start = I.strstart, I.insert = I.lookahead, I.lookahead = 0, I.match_length = I.prev_length = 2, I.match_available = 0, y.next_in = N, y.input = P, y.avail_in = B, I.wrap = W, 0;
15455
+ return I.strstart += I.lookahead, I.block_start = I.strstart, I.insert = I.lookahead, I.lookahead = 0, I.match_length = I.prev_length = 2, I.match_available = 0, y.next_in = N, y.input = P, y.avail_in = k, I.wrap = W, 0;
15456
15456
  }, t.deflateInfo = "pako deflate (from Nodeca project)";
15457
15457
  }, function(e, t, n) {
15458
15458
  var r = n(37);
@@ -15535,7 +15535,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15535
15535
  while (G < p.last_lit);
15536
15536
  $(p, 256, U);
15537
15537
  }
15538
- function B(p, U) {
15538
+ function k(p, U) {
15539
15539
  var V, Q, ee, ne = U.dyn_tree, Y = U.stat_desc.static_tree, G = U.stat_desc.has_stree, S = U.stat_desc.elems, T = -1;
15540
15540
  for (p.heap_len = 0, p.heap_max = 573, V = 0; V < S; V++)
15541
15541
  ne[2 * V] !== 0 ? (p.heap[++p.heap_len] = T = V, p.depth[V] = 0) : ne[2 * V + 1] = 0;
@@ -15547,21 +15547,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15547
15547
  do
15548
15548
  V = p.heap[1], p.heap[1] = p.heap[p.heap_len--], L(p, ne, 1), Q = p.heap[1], p.heap[--p.heap_max] = V, p.heap[--p.heap_max] = Q, ne[2 * ee] = ne[2 * V] + ne[2 * Q], p.depth[ee] = (p.depth[V] >= p.depth[Q] ? p.depth[V] : p.depth[Q]) + 1, ne[2 * V + 1] = ne[2 * Q + 1] = ee, p.heap[1] = ee++, L(p, ne, 1);
15549
15549
  while (p.heap_len >= 2);
15550
- p.heap[--p.heap_max] = p.heap[1], function(k, J) {
15551
- var K, re, se, fe, ve, Ce, Se = J.dyn_tree, Ie = J.max_code, Te = J.stat_desc.static_tree, Oe = J.stat_desc.has_stree, Pe = J.stat_desc.extra_bits, Ze = J.stat_desc.extra_base, et = J.stat_desc.max_length, Qe = 0;
15550
+ p.heap[--p.heap_max] = p.heap[1], function(B, J) {
15551
+ var K, re, se, fe, ve, Ce, Se = J.dyn_tree, Ie = J.max_code, Re = J.stat_desc.static_tree, Oe = J.stat_desc.has_stree, Pe = J.stat_desc.extra_bits, Ze = J.stat_desc.extra_base, et = J.stat_desc.max_length, Qe = 0;
15552
15552
  for (fe = 0; fe <= 15; fe++)
15553
- k.bl_count[fe] = 0;
15554
- for (Se[2 * k.heap[k.heap_max] + 1] = 0, K = k.heap_max + 1; K < 573; K++)
15555
- (fe = Se[2 * Se[2 * (re = k.heap[K]) + 1] + 1] + 1) > et && (fe = et, Qe++), Se[2 * re + 1] = fe, re > Ie || (k.bl_count[fe]++, ve = 0, re >= Ze && (ve = Pe[re - Ze]), Ce = Se[2 * re], k.opt_len += Ce * (fe + ve), Oe && (k.static_len += Ce * (Te[2 * re + 1] + ve)));
15553
+ B.bl_count[fe] = 0;
15554
+ for (Se[2 * B.heap[B.heap_max] + 1] = 0, K = B.heap_max + 1; K < 573; K++)
15555
+ (fe = Se[2 * Se[2 * (re = B.heap[K]) + 1] + 1] + 1) > et && (fe = et, Qe++), Se[2 * re + 1] = fe, re > Ie || (B.bl_count[fe]++, ve = 0, re >= Ze && (ve = Pe[re - Ze]), Ce = Se[2 * re], B.opt_len += Ce * (fe + ve), Oe && (B.static_len += Ce * (Re[2 * re + 1] + ve)));
15556
15556
  if (Qe !== 0) {
15557
15557
  do {
15558
- for (fe = et - 1; k.bl_count[fe] === 0; )
15558
+ for (fe = et - 1; B.bl_count[fe] === 0; )
15559
15559
  fe--;
15560
- k.bl_count[fe]--, k.bl_count[fe + 1] += 2, k.bl_count[et]--, Qe -= 2;
15560
+ B.bl_count[fe]--, B.bl_count[fe + 1] += 2, B.bl_count[et]--, Qe -= 2;
15561
15561
  } while (Qe > 0);
15562
15562
  for (fe = et; fe !== 0; fe--)
15563
- for (re = k.bl_count[fe]; re !== 0; )
15564
- (se = k.heap[--K]) > Ie || (Se[2 * se + 1] !== fe && (k.opt_len += (fe - Se[2 * se + 1]) * Se[2 * se], Se[2 * se + 1] = fe), re--);
15563
+ for (re = B.bl_count[fe]; re !== 0; )
15564
+ (se = B.heap[--K]) > Ie || (Se[2 * se + 1] !== fe && (B.opt_len += (fe - Se[2 * se + 1]) * Se[2 * se], Se[2 * se + 1] = fe), re--);
15565
15565
  }
15566
15566
  }(p, U), y(ne, T, p.bl_count);
15567
15567
  }
@@ -15629,14 +15629,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15629
15629
  if (G.dyn_ltree[2 * S] !== 0)
15630
15630
  return 1;
15631
15631
  return 0;
15632
- }(p)), B(p, p.l_desc), B(p, p.d_desc), Y = function(G) {
15632
+ }(p)), k(p, p.l_desc), k(p, p.d_desc), Y = function(G) {
15633
15633
  var S;
15634
- for (N(G, G.dyn_ltree, G.l_desc.max_code), N(G, G.dyn_dtree, G.d_desc.max_code), B(G, G.bl_desc), S = 18; S >= 3 && G.bl_tree[2 * c[S] + 1] === 0; S--)
15634
+ for (N(G, G.dyn_ltree, G.l_desc.max_code), N(G, G.dyn_dtree, G.d_desc.max_code), k(G, G.bl_desc), S = 18; S >= 3 && G.bl_tree[2 * c[S] + 1] === 0; S--)
15635
15635
  ;
15636
15636
  return G.opt_len += 3 * (S + 1) + 5 + 5 + 4, S;
15637
- }(p), ee = p.opt_len + 3 + 7 >>> 3, (ne = p.static_len + 3 + 7 >>> 3) <= ee && (ee = ne)) : ee = ne = V + 5, V + 4 <= ee && U !== -1 ? O(p, U, V, Q) : p.strategy === 4 || ne === ee ? (C(p, 2 + (Q ? 1 : 0), 3), W(p, u, f)) : (C(p, 4 + (Q ? 1 : 0), 3), function(G, S, T, k) {
15637
+ }(p), ee = p.opt_len + 3 + 7 >>> 3, (ne = p.static_len + 3 + 7 >>> 3) <= ee && (ee = ne)) : ee = ne = V + 5, V + 4 <= ee && U !== -1 ? O(p, U, V, Q) : p.strategy === 4 || ne === ee ? (C(p, 2 + (Q ? 1 : 0), 3), W(p, u, f)) : (C(p, 4 + (Q ? 1 : 0), 3), function(G, S, T, B) {
15638
15638
  var J;
15639
- for (C(G, S - 257, 5), C(G, T - 1, 5), C(G, k - 4, 4), J = 0; J < k; J++)
15639
+ for (C(G, S - 257, 5), C(G, T - 1, 5), C(G, B - 4, 4), J = 0; J < B; J++)
15640
15640
  C(G, G.bl_tree[2 * c[J] + 1], 3);
15641
15641
  P(G, G.dyn_ltree, S - 1), P(G, G.dyn_dtree, T - 1);
15642
15642
  }(p, p.l_desc.max_code + 1, p.d_desc.max_code + 1, Y + 1), W(p, p.dyn_ltree, p.dyn_dtree)), m(p), Q && I(p);
@@ -15698,10 +15698,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15698
15698
  t.inflateReset = E, t.inflateReset2 = w, t.inflateResetKeep = f, t.inflateInit = function(M) {
15699
15699
  return h(M, 15);
15700
15700
  }, t.inflateInit2 = h, t.inflate = function(M, A) {
15701
- var d, C, $, q, y, m, I, _, L, W, B, N, P, z, O, p, U, V, Q, ee, ne, Y, G, S, T = 0, k = new r.Buf8(4), J = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
15701
+ var d, C, $, q, y, m, I, _, L, W, k, N, P, z, O, p, U, V, Q, ee, ne, Y, G, S, T = 0, B = new r.Buf8(4), J = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
15702
15702
  if (!M || !M.state || !M.output || !M.input && M.avail_in !== 0)
15703
15703
  return -2;
15704
- (d = M.state).mode === 12 && (d.mode = 13), y = M.next_out, $ = M.output, I = M.avail_out, q = M.next_in, C = M.input, m = M.avail_in, _ = d.hold, L = d.bits, W = m, B = I, Y = 0;
15704
+ (d = M.state).mode === 12 && (d.mode = 13), y = M.next_out, $ = M.output, I = M.avail_out, q = M.next_in, C = M.input, m = M.avail_in, _ = d.hold, L = d.bits, W = m, k = I, Y = 0;
15705
15705
  e:
15706
15706
  for (; ; )
15707
15707
  switch (d.mode) {
@@ -15716,7 +15716,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15716
15716
  m--, _ += C[q++] << L, L += 8;
15717
15717
  }
15718
15718
  if (2 & d.wrap && _ === 35615) {
15719
- d.check = 0, k[0] = 255 & _, k[1] = _ >>> 8 & 255, d.check = s(d.check, k, 2, 0), _ = 0, L = 0, d.mode = 2;
15719
+ d.check = 0, B[0] = 255 & _, B[1] = _ >>> 8 & 255, d.check = s(d.check, B, 2, 0), _ = 0, L = 0, d.mode = 2;
15720
15720
  break;
15721
15721
  }
15722
15722
  if (d.flags = 0, d.head && (d.head.done = !1), !(1 & d.wrap) || (((255 & _) << 8) + (_ >> 8)) % 31) {
@@ -15749,21 +15749,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15749
15749
  M.msg = "unknown header flags set", d.mode = 30;
15750
15750
  break;
15751
15751
  }
15752
- d.head && (d.head.text = _ >> 8 & 1), 512 & d.flags && (k[0] = 255 & _, k[1] = _ >>> 8 & 255, d.check = s(d.check, k, 2, 0)), _ = 0, L = 0, d.mode = 3;
15752
+ d.head && (d.head.text = _ >> 8 & 1), 512 & d.flags && (B[0] = 255 & _, B[1] = _ >>> 8 & 255, d.check = s(d.check, B, 2, 0)), _ = 0, L = 0, d.mode = 3;
15753
15753
  case 3:
15754
15754
  for (; L < 32; ) {
15755
15755
  if (m === 0)
15756
15756
  break e;
15757
15757
  m--, _ += C[q++] << L, L += 8;
15758
15758
  }
15759
- d.head && (d.head.time = _), 512 & d.flags && (k[0] = 255 & _, k[1] = _ >>> 8 & 255, k[2] = _ >>> 16 & 255, k[3] = _ >>> 24 & 255, d.check = s(d.check, k, 4, 0)), _ = 0, L = 0, d.mode = 4;
15759
+ d.head && (d.head.time = _), 512 & d.flags && (B[0] = 255 & _, B[1] = _ >>> 8 & 255, B[2] = _ >>> 16 & 255, B[3] = _ >>> 24 & 255, d.check = s(d.check, B, 4, 0)), _ = 0, L = 0, d.mode = 4;
15760
15760
  case 4:
15761
15761
  for (; L < 16; ) {
15762
15762
  if (m === 0)
15763
15763
  break e;
15764
15764
  m--, _ += C[q++] << L, L += 8;
15765
15765
  }
15766
- d.head && (d.head.xflags = 255 & _, d.head.os = _ >> 8), 512 & d.flags && (k[0] = 255 & _, k[1] = _ >>> 8 & 255, d.check = s(d.check, k, 2, 0)), _ = 0, L = 0, d.mode = 5;
15766
+ d.head && (d.head.xflags = 255 & _, d.head.os = _ >> 8), 512 & d.flags && (B[0] = 255 & _, B[1] = _ >>> 8 & 255, d.check = s(d.check, B, 2, 0)), _ = 0, L = 0, d.mode = 5;
15767
15767
  case 5:
15768
15768
  if (1024 & d.flags) {
15769
15769
  for (; L < 16; ) {
@@ -15771,7 +15771,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15771
15771
  break e;
15772
15772
  m--, _ += C[q++] << L, L += 8;
15773
15773
  }
15774
- d.length = _, d.head && (d.head.extra_len = _), 512 & d.flags && (k[0] = 255 & _, k[1] = _ >>> 8 & 255, d.check = s(d.check, k, 2, 0)), _ = 0, L = 0;
15774
+ d.length = _, d.head && (d.head.extra_len = _), 512 & d.flags && (B[0] = 255 & _, B[1] = _ >>> 8 & 255, d.check = s(d.check, B, 2, 0)), _ = 0, L = 0;
15775
15775
  } else
15776
15776
  d.head && (d.head.extra = null);
15777
15777
  d.mode = 6;
@@ -15976,7 +15976,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15976
15976
  d.mode = 21;
15977
15977
  case 21:
15978
15978
  if (m >= 6 && I >= 258) {
15979
- M.next_out = y, M.avail_out = I, M.next_in = q, M.avail_in = m, d.hold = _, d.bits = L, l(M, B), y = M.next_out, $ = M.output, I = M.avail_out, q = M.next_in, C = M.input, m = M.avail_in, _ = d.hold, L = d.bits, d.mode === 12 && (d.back = -1);
15979
+ M.next_out = y, M.avail_out = I, M.next_in = q, M.avail_in = m, d.hold = _, d.bits = L, l(M, k), y = M.next_out, $ = M.output, I = M.avail_out, q = M.next_in, C = M.input, m = M.avail_in, _ = d.hold, L = d.bits, d.mode === 12 && (d.back = -1);
15980
15980
  break;
15981
15981
  }
15982
15982
  for (d.back = 0; p = (T = d.lencode[_ & (1 << d.lenbits) - 1]) >>> 16 & 255, U = 65535 & T, !((O = T >>> 24) <= L); ) {
@@ -16051,7 +16051,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16051
16051
  case 25:
16052
16052
  if (I === 0)
16053
16053
  break e;
16054
- if (N = B - I, d.offset > N) {
16054
+ if (N = k - I, d.offset > N) {
16055
16055
  if ((N = d.offset - N) > d.whave && d.sane) {
16056
16056
  M.msg = "invalid distance too far back", d.mode = 30;
16057
16057
  break;
@@ -16077,7 +16077,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16077
16077
  break e;
16078
16078
  m--, _ |= C[q++] << L, L += 8;
16079
16079
  }
16080
- if (B -= I, M.total_out += B, d.total += B, B && (M.adler = d.check = d.flags ? s(d.check, $, B, y - B) : i(d.check, $, B, y - B)), B = I, (d.flags ? _ : c(_)) !== d.check) {
16080
+ if (k -= I, M.total_out += k, d.total += k, k && (M.adler = d.check = d.flags ? s(d.check, $, k, y - k) : i(d.check, $, k, y - k)), k = I, (d.flags ? _ : c(_)) !== d.check) {
16081
16081
  M.msg = "incorrect data check", d.mode = 30;
16082
16082
  break;
16083
16083
  }
@@ -16110,7 +16110,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16110
16110
  default:
16111
16111
  return -2;
16112
16112
  }
16113
- return M.next_out = y, M.avail_out = I, M.next_in = q, M.avail_in = m, d.hold = _, d.bits = L, (d.wsize || B !== M.avail_out && d.mode < 30 && (d.mode < 27 || A !== 4)) && F(M, M.output, M.next_out, B - M.avail_out) ? (d.mode = 31, -4) : (W -= M.avail_in, B -= M.avail_out, M.total_in += W, M.total_out += B, d.total += B, d.wrap && B && (M.adler = d.check = d.flags ? s(d.check, $, B, M.next_out - B) : i(d.check, $, B, M.next_out - B)), M.data_type = d.bits + (d.last ? 64 : 0) + (d.mode === 12 ? 128 : 0) + (d.mode === 20 || d.mode === 15 ? 256 : 0), (W === 0 && B === 0 || A === 4) && Y === 0 && (Y = -5), Y);
16113
+ return M.next_out = y, M.avail_out = I, M.next_in = q, M.avail_in = m, d.hold = _, d.bits = L, (d.wsize || k !== M.avail_out && d.mode < 30 && (d.mode < 27 || A !== 4)) && F(M, M.output, M.next_out, k - M.avail_out) ? (d.mode = 31, -4) : (W -= M.avail_in, k -= M.avail_out, M.total_in += W, M.total_out += k, d.total += k, d.wrap && k && (M.adler = d.check = d.flags ? s(d.check, $, k, M.next_out - k) : i(d.check, $, k, M.next_out - k)), M.data_type = d.bits + (d.last ? 64 : 0) + (d.mode === 12 ? 128 : 0) + (d.mode === 20 || d.mode === 15 ? 256 : 0), (W === 0 && k === 0 || A === 4) && Y === 0 && (Y = -5), Y);
16114
16114
  }, t.inflateEnd = function(M) {
16115
16115
  if (!M || !M.state)
16116
16116
  return -2;
@@ -16217,7 +16217,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16217
16217
  }, function(e, t, n) {
16218
16218
  var r = n(37), i = [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], s = [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], l = [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], o = [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];
16219
16219
  e.exports = function(c, u, f, E, w, h, g, b) {
16220
- var R, j, F, M, A, d, C, $, q, y = b.bits, m = 0, I = 0, _ = 0, L = 0, W = 0, B = 0, N = 0, P = 0, z = 0, O = 0, p = null, U = 0, V = new r.Buf16(16), Q = new r.Buf16(16), ee = null, ne = 0;
16220
+ var R, j, F, M, A, d, C, $, q, y = b.bits, m = 0, I = 0, _ = 0, L = 0, W = 0, k = 0, N = 0, P = 0, z = 0, O = 0, p = null, U = 0, V = new r.Buf16(16), Q = new r.Buf16(16), ee = null, ne = 0;
16221
16221
  for (m = 0; m <= 15; m++)
16222
16222
  V[m] = 0;
16223
16223
  for (I = 0; I < E; I++)
@@ -16237,10 +16237,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16237
16237
  Q[m + 1] = Q[m] + V[m];
16238
16238
  for (I = 0; I < E; I++)
16239
16239
  u[f + I] !== 0 && (g[Q[u[f + I]]++] = I);
16240
- if (c === 0 ? (p = ee = g, d = 19) : c === 1 ? (p = i, U -= 257, ee = s, ne -= 257, d = 256) : (p = l, ee = o, d = -1), O = 0, I = 0, m = _, A = h, B = W, N = 0, F = -1, M = (z = 1 << W) - 1, c === 1 && z > 852 || c === 2 && z > 592)
16240
+ if (c === 0 ? (p = ee = g, d = 19) : c === 1 ? (p = i, U -= 257, ee = s, ne -= 257, d = 256) : (p = l, ee = o, d = -1), O = 0, I = 0, m = _, A = h, k = W, N = 0, F = -1, M = (z = 1 << W) - 1, c === 1 && z > 852 || c === 2 && z > 592)
16241
16241
  return 1;
16242
16242
  for (; ; ) {
16243
- C = m - N, g[I] < d ? ($ = 0, q = g[I]) : g[I] > d ? ($ = ee[ne + g[I]], q = p[U + g[I]]) : ($ = 96, q = 0), R = 1 << m - N, _ = j = 1 << B;
16243
+ C = m - N, g[I] < d ? ($ = 0, q = g[I]) : g[I] > d ? ($ = ee[ne + g[I]], q = p[U + g[I]]) : ($ = 96, q = 0), R = 1 << m - N, _ = j = 1 << k;
16244
16244
  do
16245
16245
  w[A + (O >> N) + (j -= R)] = C << 24 | $ << 16 | q | 0;
16246
16246
  while (j !== 0);
@@ -16252,11 +16252,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16252
16252
  m = u[f + g[I]];
16253
16253
  }
16254
16254
  if (m > W && (O & M) !== F) {
16255
- for (N === 0 && (N = W), A += _, P = 1 << (B = m - N); B + N < L && !((P -= V[B + N]) <= 0); )
16256
- B++, P <<= 1;
16257
- if (z += 1 << B, c === 1 && z > 852 || c === 2 && z > 592)
16255
+ for (N === 0 && (N = W), A += _, P = 1 << (k = m - N); k + N < L && !((P -= V[k + N]) <= 0); )
16256
+ k++, P <<= 1;
16257
+ if (z += 1 << k, c === 1 && z > 852 || c === 2 && z > 592)
16258
16258
  return 1;
16259
- w[F = O & M] = W << 24 | B << 16 | A - h | 0;
16259
+ w[F = O & M] = W << 24 | k << 16 | A - h | 0;
16260
16260
  }
16261
16261
  }
16262
16262
  return O !== 0 && (w[A + O] = m - N << 24 | 64 << 16 | 0), b.bits = W, 0;
@@ -16714,8 +16714,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16714
16714
  for (var L = (_ = (m + _).split(/\n+/)).length - 1, W = 0; W < L; W++)
16715
16715
  try {
16716
16716
  y.emit("log", JSON.parse(_[W]));
16717
- } catch (B) {
16718
- y.emit("error", B);
16717
+ } catch (k) {
16718
+ y.emit("error", k);
16719
16719
  }
16720
16720
  m = _[L];
16721
16721
  }), I.on("error", function(_) {
@@ -16923,25 +16923,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16923
16923
  return g(_ + 36 * y / (y + 38));
16924
16924
  }
16925
16925
  function $(y) {
16926
- var m, I, _, L, W, B, N, P, z, O, p, U = [], V = y.length, Q = 0, ee = 128, ne = 72;
16926
+ var m, I, _, L, W, k, N, P, z, O, p, U = [], V = y.length, Q = 0, ee = 128, ne = 72;
16927
16927
  for ((I = y.lastIndexOf("-")) < 0 && (I = 0), _ = 0; _ < I; ++_)
16928
16928
  y.charCodeAt(_) >= 128 && R("not-basic"), U.push(y.charCodeAt(_));
16929
16929
  for (L = I > 0 ? I + 1 : 0; L < V; ) {
16930
- for (W = Q, B = 1, N = 36; L >= V && R("invalid-input"), ((P = (p = y.charCodeAt(L++)) - 48 < 10 ? p - 22 : p - 65 < 26 ? p - 65 : p - 97 < 26 ? p - 97 : 36) >= 36 || P > g((u - Q) / B)) && R("overflow"), Q += P * B, !(P < (z = N <= ne ? 1 : N >= ne + 26 ? 26 : N - ne)); N += 36)
16931
- B > g(u / (O = 36 - z)) && R("overflow"), B *= O;
16930
+ for (W = Q, k = 1, N = 36; L >= V && R("invalid-input"), ((P = (p = y.charCodeAt(L++)) - 48 < 10 ? p - 22 : p - 65 < 26 ? p - 65 : p - 97 < 26 ? p - 97 : 36) >= 36 || P > g((u - Q) / k)) && R("overflow"), Q += P * k, !(P < (z = N <= ne ? 1 : N >= ne + 26 ? 26 : N - ne)); N += 36)
16931
+ k > g(u / (O = 36 - z)) && R("overflow"), k *= O;
16932
16932
  ne = C(Q - W, m = U.length + 1, W == 0), g(Q / m) > u - ee && R("overflow"), ee += g(Q / m), Q %= m, U.splice(Q++, 0, ee);
16933
16933
  }
16934
16934
  return A(U);
16935
16935
  }
16936
16936
  function q(y) {
16937
- var m, I, _, L, W, B, N, P, z, O, p, U, V, Q, ee, ne = [];
16938
- for (U = (y = M(y)).length, m = 128, I = 0, W = 72, B = 0; B < U; ++B)
16939
- (p = y[B]) < 128 && ne.push(b(p));
16937
+ var m, I, _, L, W, k, N, P, z, O, p, U, V, Q, ee, ne = [];
16938
+ for (U = (y = M(y)).length, m = 128, I = 0, W = 72, k = 0; k < U; ++k)
16939
+ (p = y[k]) < 128 && ne.push(b(p));
16940
16940
  for (_ = L = ne.length, L && ne.push("-"); _ < U; ) {
16941
- for (N = u, B = 0; B < U; ++B)
16942
- (p = y[B]) >= m && p < N && (N = p);
16943
- for (N - m > g((u - I) / (V = _ + 1)) && R("overflow"), I += (N - m) * V, m = N, B = 0; B < U; ++B)
16944
- if ((p = y[B]) < m && ++I > u && R("overflow"), p == m) {
16941
+ for (N = u, k = 0; k < U; ++k)
16942
+ (p = y[k]) >= m && p < N && (N = p);
16943
+ for (N - m > g((u - I) / (V = _ + 1)) && R("overflow"), I += (N - m) * V, m = N, k = 0; k < U; ++k)
16944
+ if ((p = y[k]) < m && ++I > u && R("overflow"), p == m) {
16945
16945
  for (P = I, z = 36; !(P < (O = z <= W ? 1 : z >= W + 26 ? 26 : z - W)); z += 36)
16946
16946
  ee = P - O, Q = 36 - O, ne.push(b(d(O + ee % Q, 0))), P = g(ee / Q);
16947
16947
  ne.push(b(d(P, 0))), W = C(I, V, _ == L), I = 0, ++_;
@@ -17156,13 +17156,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
17156
17156
  }
17157
17157
  function l(_, L) {
17158
17158
  for (var W = 0; W < L.length; W++) {
17159
- var B = L[W];
17160
- B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(_, B.key, B);
17159
+ var k = L[W];
17160
+ k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(_, k.key, k);
17161
17161
  }
17162
17162
  }
17163
17163
  function o(_, L) {
17164
- return (o = Object.setPrototypeOf || function(W, B) {
17165
- return W.__proto__ = B, W;
17164
+ return (o = Object.setPrototypeOf || function(W, k) {
17165
+ return W.__proto__ = k, W;
17166
17166
  })(_, L);
17167
17167
  }
17168
17168
  function c(_) {
@@ -17179,12 +17179,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
17179
17179
  }
17180
17180
  }();
17181
17181
  return function() {
17182
- var W, B = f(_);
17182
+ var W, k = f(_);
17183
17183
  if (L) {
17184
17184
  var N = f(this).constructor;
17185
- W = Reflect.construct(B, arguments, N);
17185
+ W = Reflect.construct(k, arguments, N);
17186
17186
  } else
17187
- W = B.apply(this, arguments);
17187
+ W = k.apply(this, arguments);
17188
17188
  return u(this, W);
17189
17189
  };
17190
17190
  }
@@ -17206,13 +17206,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
17206
17206
  throw new TypeError("Super expression must either be null or a function");
17207
17207
  P.prototype = Object.create(z && z.prototype, { constructor: { value: P, writable: !0, configurable: !0 } }), z && o(P, z);
17208
17208
  })(N, _);
17209
- var L, W, B = c(N);
17209
+ var L, W, k = c(N);
17210
17210
  function N(P) {
17211
17211
  var z;
17212
17212
  return function(O, p) {
17213
17213
  if (!(O instanceof p))
17214
17214
  throw new TypeError("Cannot call a class as a function");
17215
- }(this, N), (z = B.call(this, { objectMode: !0 })).configure(P), z;
17215
+ }(this, N), (z = k.call(this, { objectMode: !0 })).configure(P), z;
17216
17216
  }
17217
17217
  return L = N, (W = [{ key: "child", value: function(P) {
17218
17218
  var z = this;
@@ -17221,10 +17221,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
17221
17221
  O instanceof Error && (p.stack = O.stack, p.message = O.message), z.write(p);
17222
17222
  } } });
17223
17223
  } }, { key: "configure", value: function() {
17224
- var P = this, z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = z.silent, p = z.format, U = z.defaultMeta, V = z.levels, Q = z.level, ee = Q === void 0 ? "info" : Q, ne = z.exitOnError, Y = ne === void 0 || ne, G = z.transports, S = z.colors, T = z.emitErrs, k = z.formatters, J = z.padLevels, K = z.rewriters, re = z.stripColors, se = z.exceptionHandlers, fe = z.rejectionHandlers;
17224
+ var P = this, z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = z.silent, p = z.format, U = z.defaultMeta, V = z.levels, Q = z.level, ee = Q === void 0 ? "info" : Q, ne = z.exitOnError, Y = ne === void 0 || ne, G = z.transports, S = z.colors, T = z.emitErrs, B = z.formatters, J = z.padLevels, K = z.rewriters, re = z.stripColors, se = z.exceptionHandlers, fe = z.rejectionHandlers;
17225
17225
  if (this.transports.length && this.clear(), this.silent = O, this.format = p || this.format || n(208)(), this.defaultMeta = U || null, this.levels = V || this.levels || q.npm.levels, this.level = ee, this.exceptions = new M(this), this.rejections = new A(this), this.profilers = {}, this.exitOnError = Y, G && (G = Array.isArray(G) ? G : [G]).forEach(function(ve) {
17226
17226
  return P.add(ve);
17227
- }), S || T || k || J || K || re)
17227
+ }), S || T || B || J || K || re)
17228
17228
  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(`
17229
17229
  `));
17230
17230
  se && this.exceptions.handle(se), fe && this.rejections.handle(fe);
@@ -17797,7 +17797,7 @@ Found: ${s.toString().split(`
17797
17797
  }), n.d(t, "IRtcStreamPayload", function() {
17798
17798
  }), n.d(t, "IStreamControl", function() {
17799
17799
  }), n.d(t, "RtcClient", function() {
17800
- return Mt;
17800
+ return Nt;
17801
17801
  }), n.d(t, "RtcClientV1", function() {
17802
17802
  return Tt;
17803
17803
  }), n.d(t, "createRtcStreamMessage", function() {
@@ -18291,7 +18291,7 @@ Found: ${s.toString().split(`
18291
18291
  });
18292
18292
  }
18293
18293
  }
18294
- var W = n(97), B = n(40), N = function(pe, D, H, X) {
18294
+ var W = n(97), k = n(40), N = function(pe, D, H, X) {
18295
18295
  return new (H || (H = Promise))(function(ie, oe) {
18296
18296
  function de(ce) {
18297
18297
  try {
@@ -18316,7 +18316,7 @@ Found: ${s.toString().split(`
18316
18316
  be((X = X.apply(pe, D || [])).next());
18317
18317
  });
18318
18318
  };
18319
- class P extends B.a {
18319
+ class P extends k.a {
18320
18320
  constructor(D) {
18321
18321
  super(D);
18322
18322
  }
@@ -18395,22 +18395,22 @@ Found: ${s.toString().split(`
18395
18395
  }
18396
18396
  S.grpcCallDeadlineSlopMs = 500 * c.a.millisecond;
18397
18397
  var T = n(29);
18398
- const k = { ordered: !1, maxPacketLifeTime: 300 * c.a.millisecond }, J = { ordered: !0 }, K = { ordered: !0 }, re = { ordered: !1, maxRetransmits: 0 }, se = { ordered: !1, maxRetransmits: 0 }, fe = (pe) => "received" in pe && pe.received !== void 0, ve = (pe) => !("received" in pe) || pe.received === void 0, Ce = 2 * c.a.second;
18398
+ const B = { ordered: !1, maxPacketLifeTime: 300 * c.a.millisecond }, J = { ordered: !0 }, K = { ordered: !0 }, re = { ordered: !1, maxRetransmits: 0 }, se = { ordered: !1, maxRetransmits: 0 }, fe = (pe) => "received" in pe && pe.received !== void 0, ve = (pe) => !("received" in pe) || pe.received === void 0, Ce = 2 * c.a.second;
18399
18399
  function Se(pe, D = {}) {
18400
18400
  const H = Array.from(pe.values()), X = H.filter(fe), ie = X.length > 0, oe = Math.max(...X.map((ce) => ce.received));
18401
18401
  let de;
18402
18402
  if (ie) {
18403
18403
  const ce = H.length, le = X.length, Ae = X.map((xe) => xe.received - xe.sent), { standardDeviation: Me, mean: je, jitter: Fe } = function(xe) {
18404
- const Be = xe.length;
18405
- if (Be === 0)
18404
+ const ke = xe.length;
18405
+ if (ke === 0)
18406
18406
  return { mean: NaN, standardDeviation: -1, jitter: NaN };
18407
- const Ve = xe.reduce((Xe, ot) => Xe + ot, 0) / Be, $e = Math.sqrt(xe.map((Xe) => Math.pow(Xe - Ve, 2)).reduce((Xe, ot) => Xe + ot) / Be);
18408
- if (Be === 1)
18407
+ const Ve = xe.reduce((Xe, ot) => Xe + ot, 0) / ke, $e = Math.sqrt(xe.map((Xe) => Math.pow(Xe - Ve, 2)).reduce((Xe, ot) => Xe + ot) / ke);
18408
+ if (ke === 1)
18409
18409
  return { mean: Ve, standardDeviation: $e, jitter: NaN };
18410
18410
  let Ke = 0;
18411
- for (let Xe = 1; Xe < Be; Xe++)
18411
+ for (let Xe = 1; Xe < ke; Xe++)
18412
18412
  Ke += Math.abs(xe[Xe] - xe[Xe - 1]);
18413
- return { mean: Ve, standardDeviation: $e, jitter: Ke / (Be - 1) };
18413
+ return { mean: Ve, standardDeviation: $e, jitter: Ke / (ke - 1) };
18414
18414
  }(Ae), Ye = H.filter((xe) => xe.sent < oe - Ce), Ge = Ye.filter(ve), qe = Ge.length === 0 ? 0 : Ge.length / Ye.length;
18415
18415
  de = { pingsSent: ce, pongsReceived: le, average: je, standardDeviation: Me, jitter: Fe, max: Math.max(...Ae), min: Math.min(...Ae), loss: qe };
18416
18416
  } else
@@ -18424,7 +18424,7 @@ Found: ${s.toString().split(`
18424
18424
  function Ie({ entityId: pe, streamName: D, streamType: H }) {
18425
18425
  return `${pe}.${D}.${H}`;
18426
18426
  }
18427
- var Te = function(pe, D, H, X) {
18427
+ var Re = function(pe, D, H, X) {
18428
18428
  return new (H || (H = Promise))(function(ie, oe) {
18429
18429
  function de(ce) {
18430
18430
  try {
@@ -18480,7 +18480,7 @@ Found: ${s.toString().split(`
18480
18480
  H.set(X, ie + 1);
18481
18481
  }
18482
18482
  uploadMetrics() {
18483
- return Te(this, void 0, void 0, function* () {
18483
+ return Re(this, void 0, void 0, function* () {
18484
18484
  const { sessionId: D } = this, H = yield this.connection.peerConnection.getStats(), X = {};
18485
18485
  H.forEach((ce) => X[ce.id] = ce), g.a.debug("rtc-stats", Object.assign(Object.assign({}, X), { sessionId: D }));
18486
18486
  const { localSent: ie, localReceived: oe, remoteSent: de, remoteReceived: ye } = this.counts, be = [.../* @__PURE__ */ new Set([...ie.keys(), ...oe.keys()])].reduce((ce, le) => {
@@ -18728,7 +18728,7 @@ Found: ${s.toString().split(`
18728
18728
  });
18729
18729
  }
18730
18730
  initializeChannels(D) {
18731
- this.heartbeatChannel = D.createDataChannel("heartbeat", se), this.heartbeatChannel.binaryType = "arraybuffer", this.latestTtlStreamChannel = D.createDataChannel("stream.latest-ttl", k), this.latestTtlStreamChannel.binaryType = "arraybuffer", this.reliableStreamChannel = D.createDataChannel("stream.reliable", J), this.reliableStreamChannel.binaryType = "arraybuffer", this.latestReliableStreamChannel = D.createDataChannel("stream.latest-reliable", K), this.latestReliableStreamChannel.binaryType = "arraybuffer", this.latestTryOnceStreamChannel = D.createDataChannel("stream.latest-try-once", re), this.latestTryOnceStreamChannel.binaryType = "arraybuffer", this.setupChannel(this.latestTtlStreamChannel), this.setupChannel(this.reliableStreamChannel), this.setupChannel(this.latestReliableStreamChannel), this.setupChannel(this.latestTryOnceStreamChannel);
18731
+ this.heartbeatChannel = D.createDataChannel("heartbeat", se), this.heartbeatChannel.binaryType = "arraybuffer", this.latestTtlStreamChannel = D.createDataChannel("stream.latest-ttl", B), this.latestTtlStreamChannel.binaryType = "arraybuffer", this.reliableStreamChannel = D.createDataChannel("stream.reliable", J), this.reliableStreamChannel.binaryType = "arraybuffer", this.latestReliableStreamChannel = D.createDataChannel("stream.latest-reliable", K), this.latestReliableStreamChannel.binaryType = "arraybuffer", this.latestTryOnceStreamChannel = D.createDataChannel("stream.latest-try-once", re), this.latestTryOnceStreamChannel.binaryType = "arraybuffer", this.setupChannel(this.latestTtlStreamChannel), this.setupChannel(this.reliableStreamChannel), this.setupChannel(this.latestReliableStreamChannel), this.setupChannel(this.latestTryOnceStreamChannel);
18732
18732
  }
18733
18733
  getOffer() {
18734
18734
  var D, H, X;
@@ -18956,7 +18956,7 @@ Found: ${s.toString().split(`
18956
18956
  var D, H;
18957
18957
  return { userId: (D = pe.getUserId()) === null || D === void 0 ? void 0 : D.getValue(), deviceId: (H = pe.getDeviceId()) === null || H === void 0 ? void 0 : H.getValue(), organizationId: pe.getOrganizationId(), id: pe.getPeerId(), capabilities: [], capabilitySet: {} };
18958
18958
  }
18959
- var ke = function(pe, D, H, X) {
18959
+ var Be = function(pe, D, H, X) {
18960
18960
  return new (H || (H = Promise))(function(ie, oe) {
18961
18961
  function de(ce) {
18962
18962
  try {
@@ -18981,11 +18981,11 @@ Found: ${s.toString().split(`
18981
18981
  be((X = X.apply(pe, D || [])).next());
18982
18982
  });
18983
18983
  };
18984
- class Mt {
18984
+ class Nt {
18985
18985
  constructor(D) {
18986
18986
  this.config = D, this.grpcCallDeadline = 5 * c.a.second, this.refreshIntervalDelayMs = 2 * c.a.second, this.iceServersTtl = 30 * c.a.minute, this.connections = [], this.localConnections = [], this.isConnectionInitiator = /* @__PURE__ */ new Map(), this.isOutgoingConnection = /* @__PURE__ */ new Map(), this.peerDataChannelListeners = [], this.rtcInstancesConstructed = 0;
18987
18987
  const { refreshIntervalDelayMs: H } = this;
18988
- this.refreshInterval = d({ func: () => ke(this, void 0, void 0, function* () {
18988
+ this.refreshInterval = d({ func: () => Be(this, void 0, void 0, function* () {
18989
18989
  try {
18990
18990
  yield this.update();
18991
18991
  } catch (X) {
@@ -19002,7 +19002,7 @@ Found: ${s.toString().split(`
19002
19002
  X ? X.isReady() ? X.controlRemoteStream(H) : g.a.warn("controlRemoteStream called with unready connection.") : g.a.warn("controlRemoteStream called with no connection.");
19003
19003
  }
19004
19004
  getLocalPeer() {
19005
- return ke(this, void 0, void 0, function* () {
19005
+ return Be(this, void 0, void 0, function* () {
19006
19006
  for (; !this.localPeer; )
19007
19007
  yield Object(u.a)(0.1 * c.a.second);
19008
19008
  return St(this.localPeer);
@@ -19010,7 +19010,7 @@ Found: ${s.toString().split(`
19010
19010
  }
19011
19011
  connect(D, H) {
19012
19012
  var X, ie, oe;
19013
- return ke(this, void 0, void 0, function* () {
19013
+ return Be(this, void 0, void 0, function* () {
19014
19014
  if (this.config.lanOnlyMode === !0)
19015
19015
  throw new Error("connect method called in local only mode.");
19016
19016
  const { track: de, signalingClient: ye } = this.config, { localPeer: be, receiveSignalStream: ce, iceServers: le } = this;
@@ -19021,24 +19021,24 @@ Found: ${s.toString().split(`
19021
19021
  if (this.isOutgoingConnection.get(D))
19022
19022
  return void g.a.warn("Connect called for peer with an existing outgoing connection offer.");
19023
19023
  this.isOutgoingConnection.set(D, !0);
19024
- const Ae = function(xe, Be, Ve) {
19025
- const { rtcIceTransportPolicies: $e, rtcIceServerProtocol: Ke, useAllServers: Xe } = Be || {}, ot = xe.map((it) => Object.assign(Object.assign({}, it), { urls: it.urls.filter((ut) => {
19024
+ const Ae = function(xe, ke, Ve) {
19025
+ const { rtcIceTransportPolicies: $e, rtcIceServerProtocol: Ke, useAllServers: Xe } = ke || {}, ot = xe.map((it) => Object.assign(Object.assign({}, it), { urls: it.urls.filter((ut) => {
19026
19026
  const Je = ($e === void 0 || $e.some((Ct) => V(ut, Ct))) && (Ke === void 0 || Q(ut, Ke));
19027
19027
  return Je || g.a.debug(`Ignoring ICE server: ${ut}`, { organizationId: Ve }), Je;
19028
19028
  }) })).filter(({ urls: it }) => it.filter((ut) => ut).length > 0);
19029
19029
  return Xe ? ot : [U(ot, "stun"), U(ot, "turn")].filter((it) => it !== void 0).map((it) => p(it));
19030
19030
  }(le, H);
19031
19031
  g.a.debug("Received ICE servers:", le), g.a.debug("Using ICE servers:", Ae);
19032
- const Me = new yt(yield this.createRTCPeerConnection(Ae), { baseConfig: { isOffer: !0, isLan: !1, receive: (xe, Be) => this.config.receive(xe, Be), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (xe, Be) => {
19032
+ const Me = new yt(yield this.createRTCPeerConnection(Ae), { baseConfig: { isOffer: !0, isLan: !1, receive: (xe, ke) => this.config.receive(xe, ke), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (xe, ke) => {
19033
19033
  var Ve, $e;
19034
- return ($e = (Ve = this.config).onStreamsInfoUpdate) === null || $e === void 0 ? void 0 : $e.call(Ve, xe, Be);
19034
+ return ($e = (Ve = this.config).onStreamsInfoUpdate) === null || $e === void 0 ? void 0 : $e.call(Ve, xe, ke);
19035
19035
  } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localUserId: (X = be.getUserId()) === null || X === void 0 ? void 0 : X.getValue(), localPeerId: be.getPeerId(), remotePeerId: D, sessionType: this.config.sessionType }, remoteConfig: {} }, (xe) => this.onCustomDataChannel(D, xe)), je = yield Me.getOffer();
19036
19036
  if (!je)
19037
19037
  return g.a.error("Failed to generate offer."), void this.isOutgoingConnection.delete(D);
19038
19038
  g.a.debug("Sending offer."), de == null || de("Sending offer", je);
19039
19039
  const Fe = new ee.SendSignalRequest();
19040
19040
  Fe.setSignal(je);
19041
- const Ye = yield (() => ke(this, void 0, void 0, function* () {
19041
+ const Ye = yield (() => Be(this, void 0, void 0, function* () {
19042
19042
  try {
19043
19043
  return yield S.withDeadline(ye.sendSignal(Fe, yield this.getMetadata({})), this.grpcCallDeadline);
19044
19044
  } catch (xe) {
@@ -19054,7 +19054,7 @@ Found: ${s.toString().split(`
19054
19054
  }
19055
19055
  connectLan(D) {
19056
19056
  var H, X;
19057
- return ke(this, void 0, void 0, function* () {
19057
+ return Be(this, void 0, void 0, function* () {
19058
19058
  const ie = new P(D), oe = new yt(yield this.createRTCPeerConnection([]), { baseConfig: { isOffer: !0, isLan: !0, receive: (ce, le) => this.config.receive(ce, le), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (ce, le) => {
19059
19059
  var Ae, Me;
19060
19060
  return (Me = (Ae = this.config).onStreamsInfoUpdate) === null || Me === void 0 ? void 0 : Me.call(Ae, ce, le);
@@ -19092,23 +19092,23 @@ Found: ${s.toString().split(`
19092
19092
  return H ? H.isReady() ? "connected" : "connecting" : "disconnected";
19093
19093
  }
19094
19094
  getConnectionStatsInfo(D) {
19095
- return ke(this, void 0, void 0, function* () {
19095
+ return Be(this, void 0, void 0, function* () {
19096
19096
  const H = this.getActiveConnection(D);
19097
19097
  if (H)
19098
19098
  return yield H.getConnectionStatsInfo();
19099
19099
  });
19100
19100
  }
19101
19101
  disconnect(D) {
19102
- return ke(this, void 0, void 0, function* () {
19102
+ return Be(this, void 0, void 0, function* () {
19103
19103
  const H = this.getActiveConnection(D);
19104
19104
  H && (yield H.close());
19105
19105
  });
19106
19106
  }
19107
19107
  getPeers() {
19108
- return ke(this, void 0, void 0, function* () {
19108
+ return Be(this, void 0, void 0, function* () {
19109
19109
  if (this.config.lanOnlyMode)
19110
19110
  throw new Error("getPeers method cannot be used in local-only mode.");
19111
- const { signalingClient: D } = this.config, H = yield (() => ke(this, void 0, void 0, function* () {
19111
+ const { signalingClient: D } = this.config, H = yield (() => Be(this, void 0, void 0, function* () {
19112
19112
  try {
19113
19113
  return yield S.withDeadline(D.getPeers(new ee.GetPeersRequest(), yield this.getMetadata({})), this.grpcCallDeadline);
19114
19114
  } catch (oe) {
@@ -19128,10 +19128,10 @@ Found: ${s.toString().split(`
19128
19128
  });
19129
19129
  }
19130
19130
  getSessions() {
19131
- return ke(this, void 0, void 0, function* () {
19131
+ return Be(this, void 0, void 0, function* () {
19132
19132
  if (this.config.lanOnlyMode)
19133
19133
  throw new Error("getPeers method cannot be used in local-only mode.");
19134
- const { signalingClient: D } = this.config, H = yield (() => ke(this, void 0, void 0, function* () {
19134
+ const { signalingClient: D } = this.config, H = yield (() => Be(this, void 0, void 0, function* () {
19135
19135
  try {
19136
19136
  return yield S.withDeadline(D.getPeers(new ee.GetPeersRequest(), yield this.getMetadata({})), this.grpcCallDeadline);
19137
19137
  } catch (oe) {
@@ -19177,7 +19177,7 @@ Found: ${s.toString().split(`
19177
19177
  return !!(D && H && X);
19178
19178
  }
19179
19179
  shutdown() {
19180
- return ke(this, void 0, void 0, function* () {
19180
+ return Be(this, void 0, void 0, function* () {
19181
19181
  g.a.info("Shutdown called on RTC client"), yield this.refreshInterval.stop(), this.receiveSignalStream && this.receiveSignalStream.cancel();
19182
19182
  const D = this.connections;
19183
19183
  this.connections = [], yield this.closeConnections(D);
@@ -19185,7 +19185,7 @@ Found: ${s.toString().split(`
19185
19185
  if (!H || this.config.lanOnlyMode)
19186
19186
  return;
19187
19187
  const { signalingClient: X } = this.config;
19188
- yield (() => ke(this, void 0, void 0, function* () {
19188
+ yield (() => Be(this, void 0, void 0, function* () {
19189
19189
  try {
19190
19190
  const ie = new ee.DeletePeerRequest();
19191
19191
  ie.setPeerId(H.getPeerId()), yield S.withDeadline(X.deletePeer(ie, yield this.getMetadata({})), this.grpcCallDeadline);
@@ -19196,10 +19196,10 @@ Found: ${s.toString().split(`
19196
19196
  });
19197
19197
  }
19198
19198
  createPeer() {
19199
- return ke(this, void 0, void 0, function* () {
19199
+ return Be(this, void 0, void 0, function* () {
19200
19200
  if (this.config.lanOnlyMode)
19201
19201
  throw new Error("createPeer method cannot be used in local-only mode.");
19202
- const { signalingClient: D } = this.config, H = yield (() => ke(this, void 0, void 0, function* () {
19202
+ const { signalingClient: D } = this.config, H = yield (() => Be(this, void 0, void 0, function* () {
19203
19203
  try {
19204
19204
  return yield S.withDeadline(D.createPeer(new ee.CreatePeerRequest(), yield this.getMetadata({})), this.grpcCallDeadline);
19205
19205
  } catch (ie) {
@@ -19215,7 +19215,7 @@ Found: ${s.toString().split(`
19215
19215
  });
19216
19216
  }
19217
19217
  createReceiveSignalStream() {
19218
- return ke(this, void 0, void 0, function* () {
19218
+ return Be(this, void 0, void 0, function* () {
19219
19219
  if (this.config.lanOnlyMode)
19220
19220
  throw new Error("createReceiveSignalStream method cannot be used in local-only mode.");
19221
19221
  const { signalingClient: D } = this.config, { localPeer: H, iceServers: X } = this;
@@ -19225,7 +19225,7 @@ Found: ${s.toString().split(`
19225
19225
  ie && ie.cancel();
19226
19226
  const oe = new ee.ReceiveSignalStreamRequest();
19227
19227
  oe.setPeerId(H.getPeerId());
19228
- const de = yield (() => ke(this, void 0, void 0, function* () {
19228
+ const de = yield (() => Be(this, void 0, void 0, function* () {
19229
19229
  try {
19230
19230
  return D.receiveSignalStream(oe, yield this.getMetadata({ hasDeadline: !1 }));
19231
19231
  } catch (ye) {
@@ -19236,7 +19236,7 @@ Found: ${s.toString().split(`
19236
19236
  }))();
19237
19237
  if (!de)
19238
19238
  throw new Error("Response did not provide stream.");
19239
- return de.on("data", (ye) => ke(this, void 0, void 0, function* () {
19239
+ return de.on("data", (ye) => Be(this, void 0, void 0, function* () {
19240
19240
  var be, ce, le, Ae;
19241
19241
  const Me = ye.getSignal(), je = (be = Me == null ? void 0 : Me.getSessionId()) === null || be === void 0 ? void 0 : be.getValue(), Fe = Me == null ? void 0 : Me.getSenderId(), Ye = Me == null ? void 0 : Me.getReceiverId(), Ge = (ce = Me == null ? void 0 : Me.getSessionCreatedTimestamp()) === null || ce === void 0 ? void 0 : ce.getValue();
19242
19242
  if (!(Me && je && Fe && Ye && Ge))
@@ -19246,19 +19246,19 @@ Found: ${s.toString().split(`
19246
19246
  if (qe.getSessionId() !== je) {
19247
19247
  if (g.a.debug("Received signal: different session for a peer we're already connected to."), (qe.getSessionCreatedTimestamp() || 0) > Ge)
19248
19248
  return;
19249
- const xe = new yt(yield this.createRTCPeerConnection(X), { baseConfig: { isOffer: !1, isLan: !1, receive: (Be, Ve) => this.config.receive(Be, Ve), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (Be, Ve) => {
19249
+ const xe = new yt(yield this.createRTCPeerConnection(X), { baseConfig: { isOffer: !1, isLan: !1, receive: (ke, Ve) => this.config.receive(ke, Ve), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (ke, Ve) => {
19250
19250
  var $e, Ke;
19251
- return (Ke = ($e = this.config).onStreamsInfoUpdate) === null || Ke === void 0 ? void 0 : Ke.call($e, Be, Ve);
19252
- } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localPeerId: H.getPeerId(), localUserId: (Ae = H.getUserId()) === null || Ae === void 0 ? void 0 : Ae.getValue(), remotePeerId: Fe }, remoteConfig: { sessionId: je, sessionCreatedTimestamp: Ge } }, (Be) => this.onCustomDataChannel(Fe, Be));
19251
+ return (Ke = ($e = this.config).onStreamsInfoUpdate) === null || Ke === void 0 ? void 0 : Ke.call($e, ke, Ve);
19252
+ } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localPeerId: H.getPeerId(), localUserId: (Ae = H.getUserId()) === null || Ae === void 0 ? void 0 : Ae.getValue(), remotePeerId: Fe }, remoteConfig: { sessionId: je, sessionCreatedTimestamp: Ge } }, (ke) => this.onCustomDataChannel(Fe, ke));
19253
19253
  yield xe.handleSignal(Me), this.connections.push(xe);
19254
19254
  } else
19255
19255
  g.a.debug("Received signal: for an existing connection."), yield qe.handleSignal(Me);
19256
19256
  else {
19257
19257
  g.a.debug("Received signal: new connection.");
19258
- const xe = new yt(yield this.createRTCPeerConnection(X), { baseConfig: { isOffer: !1, isLan: !1, receive: (Be, Ve) => this.config.receive(Be, Ve), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (Be, Ve) => {
19258
+ const xe = new yt(yield this.createRTCPeerConnection(X), { baseConfig: { isOffer: !1, isLan: !1, receive: (ke, Ve) => this.config.receive(ke, Ve), onStreamsInfoUpdate: this.config.onStreamsInfoUpdate ? (ke, Ve) => {
19259
19259
  var $e, Ke;
19260
- return (Ke = ($e = this.config).onStreamsInfoUpdate) === null || Ke === void 0 ? void 0 : Ke.call($e, Be, Ve);
19261
- } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localPeerId: H.getPeerId(), localUserId: (le = H.getUserId()) === null || le === void 0 ? void 0 : le.getValue(), remotePeerId: Fe }, remoteConfig: { sessionId: je, sessionCreatedTimestamp: Ge } }, (Be) => this.onCustomDataChannel(Fe, Be));
19260
+ return (Ke = ($e = this.config).onStreamsInfoUpdate) === null || Ke === void 0 ? void 0 : Ke.call($e, ke, Ve);
19261
+ } : void 0, track: this.config.lanOnlyMode ? void 0 : this.config.track, localPeerId: H.getPeerId(), localUserId: (le = H.getUserId()) === null || le === void 0 ? void 0 : le.getValue(), remotePeerId: Fe }, remoteConfig: { sessionId: je, sessionCreatedTimestamp: Ge } }, (ke) => this.onCustomDataChannel(Fe, ke));
19262
19262
  yield xe.handleSignal(Me), this.connections.push(xe);
19263
19263
  }
19264
19264
  })), de.on("end", () => {
@@ -19282,7 +19282,7 @@ Found: ${s.toString().split(`
19282
19282
  }
19283
19283
  createRTCPeerConnection(D) {
19284
19284
  var H;
19285
- return ke(this, void 0, void 0, function* () {
19285
+ return Be(this, void 0, void 0, function* () {
19286
19286
  const X = (H = this.config.alternateRTCPeerConnection) !== null && H !== void 0 ? H : window.RTCPeerConnection;
19287
19287
  if (!X)
19288
19288
  throw function() {
@@ -19298,8 +19298,8 @@ Found: ${s.toString().split(`
19298
19298
  });
19299
19299
  }
19300
19300
  closeConnections(D) {
19301
- return ke(this, void 0, void 0, function* () {
19302
- const H = yield O(D.map((X) => ke(this, void 0, void 0, function* () {
19301
+ return Be(this, void 0, void 0, function* () {
19302
+ const H = yield O(D.map((X) => Be(this, void 0, void 0, function* () {
19303
19303
  yield X.close();
19304
19304
  })));
19305
19305
  for (const X of H)
@@ -19311,7 +19311,7 @@ Found: ${s.toString().split(`
19311
19311
  }
19312
19312
  update() {
19313
19313
  var D;
19314
- return ke(this, void 0, void 0, function* () {
19314
+ return Be(this, void 0, void 0, function* () {
19315
19315
  if (this.localConnections = this.localConnections.filter((ye) => ye.isActive()), this.config.lanOnlyMode)
19316
19316
  return;
19317
19317
  const { signalingClient: H } = this.config;
@@ -19335,12 +19335,12 @@ Found: ${s.toString().split(`
19335
19335
  });
19336
19336
  }
19337
19337
  reset() {
19338
- return ke(this, void 0, void 0, function* () {
19338
+ return Be(this, void 0, void 0, function* () {
19339
19339
  yield this.closeConnections(this.connections), this.connections = [], this.isOutgoingConnection = /* @__PURE__ */ new Map(), yield this.createPeer(), yield this.createReceiveSignalStream();
19340
19340
  });
19341
19341
  }
19342
19342
  updateIceServers() {
19343
- return ke(this, void 0, void 0, function* () {
19343
+ return Be(this, void 0, void 0, function* () {
19344
19344
  if (this.config.lanOnlyMode)
19345
19345
  return;
19346
19346
  const { iceServersLastUpdate: D, iceServersTtl: H } = this, X = (/* @__PURE__ */ new Date()).getTime();
@@ -19355,7 +19355,7 @@ Found: ${s.toString().split(`
19355
19355
  }
19356
19356
  setupHandlers(D) {
19357
19357
  const { peerConnection: H } = D, X = D.getSessionCreatedTimestamp();
19358
- H.onconnectionstatechange = () => ke(this, void 0, void 0, function* () {
19358
+ H.onconnectionstatechange = () => Be(this, void 0, void 0, function* () {
19359
19359
  const ie = H.connectionState;
19360
19360
  if (!X)
19361
19361
  return;
@@ -19370,7 +19370,7 @@ Found: ${s.toString().split(`
19370
19370
  });
19371
19371
  }
19372
19372
  getMetadata(D) {
19373
- return ke(this, void 0, void 0, function* () {
19373
+ return Be(this, void 0, void 0, function* () {
19374
19374
  if (this.config.lanOnlyMode)
19375
19375
  throw new Error("getMetadata method cannot be called in local-only mode");
19376
19376
  const { getToken: H } = this.config, { grpcCallDeadline: X } = this, { hasDeadline: ie } = D, oe = ie === !1 ? void 0 : (/* @__PURE__ */ new Date()).getTime() + X;
@@ -19382,7 +19382,7 @@ Found: ${s.toString().split(`
19382
19382
  });
19383
19383
  }
19384
19384
  }
19385
- var tt = n(10), rt = n(11), Nt = function(pe, D, H, X) {
19385
+ var tt = n(10), rt = n(11), jt = function(pe, D, H, X) {
19386
19386
  return new (H || (H = Promise))(function(ie, oe) {
19387
19387
  function de(ce) {
19388
19388
  try {
@@ -19420,7 +19420,7 @@ Found: ${s.toString().split(`
19420
19420
  this.receivedMessagesCounts.set(H, (this.receivedMessagesCounts.get(H) || 0) + 1);
19421
19421
  }
19422
19422
  uploadMetrics() {
19423
- return Nt(this, void 0, void 0, function* () {
19423
+ return jt(this, void 0, void 0, function* () {
19424
19424
  const { sessionId: D } = this, H = yield this.connection.peerConnection.getStats(), X = {};
19425
19425
  H.forEach((oe) => X[oe.id] = oe), g.a.debug("rtc-stats", Object.assign(Object.assign({}, X), { sessionId: D }));
19426
19426
  const ie = [...new Set(Array.from(this.sentMessagesCounts.keys()).concat(Array.from(this.receivedMessagesCounts.keys())))].reduce((oe, de) => {
@@ -19568,7 +19568,7 @@ Found: ${s.toString().split(`
19568
19568
  return this.config.remotePeer;
19569
19569
  }
19570
19570
  initializeChannels(D) {
19571
- this.latestTtlStreamChannel = D.createDataChannel("stream.latest-ttl", k), this.reliableStreamChannel = D.createDataChannel("stream.reliable", J), this.latestReliableStreamChannel = D.createDataChannel("stream.latest-reliable", K), this.latestTryOnceStreamChannel = D.createDataChannel("stream.latest-try-once", re), this.setupChannel(this.latestTtlStreamChannel), this.setupChannel(this.reliableStreamChannel), this.setupChannel(this.latestReliableStreamChannel), this.setupChannel(this.latestTryOnceStreamChannel);
19571
+ this.latestTtlStreamChannel = D.createDataChannel("stream.latest-ttl", B), this.reliableStreamChannel = D.createDataChannel("stream.reliable", J), this.latestReliableStreamChannel = D.createDataChannel("stream.latest-reliable", K), this.latestTryOnceStreamChannel = D.createDataChannel("stream.latest-try-once", re), this.setupChannel(this.latestTtlStreamChannel), this.setupChannel(this.reliableStreamChannel), this.setupChannel(this.latestReliableStreamChannel), this.setupChannel(this.latestTryOnceStreamChannel);
19572
19572
  }
19573
19573
  sendOffer() {
19574
19574
  return lt(this, void 0, void 0, function* () {
@@ -20055,10 +20055,10 @@ class StoreCache {
20055
20055
  capacity: t,
20056
20056
  timeout: n
20057
20057
  } = {}) {
20058
- Re(this, "entries", /* @__PURE__ */ new Map());
20059
- Re(this, "metadata", /* @__PURE__ */ new Map());
20060
- Re(this, "capacity");
20061
- Re(this, "timeout");
20058
+ Te(this, "entries", /* @__PURE__ */ new Map());
20059
+ Te(this, "metadata", /* @__PURE__ */ new Map());
20060
+ Te(this, "capacity");
20061
+ Te(this, "timeout");
20062
20062
  this.capacity = t || 1e4, this.timeout = n || duration.minute;
20063
20063
  }
20064
20064
  get(t, n) {
@@ -20106,11 +20106,11 @@ class StoreCache {
20106
20106
  }
20107
20107
  class QueryStore {
20108
20108
  constructor() {
20109
- Re(this, "queryStoreCache", new StoreCache({
20109
+ Te(this, "queryStoreCache", new StoreCache({
20110
20110
  capacity: 1e4,
20111
20111
  timeout: 20 * duration.second
20112
20112
  }));
20113
- Re(this, "liveQueryStoreCache", new StoreCache({
20113
+ Te(this, "liveQueryStoreCache", new StoreCache({
20114
20114
  capacity: 1e4,
20115
20115
  timeout: 200 * duration.millisecond
20116
20116
  }));
@@ -20152,8 +20152,7 @@ class QueryStore {
20152
20152
  });
20153
20153
  }
20154
20154
  }
20155
- const queryStore = new QueryStore();
20156
- class App {
20155
+ const queryStore = new QueryStore(), Mt = class {
20157
20156
  static sendAppMessage(t) {
20158
20157
  window.parent.postMessage(t, "*");
20159
20158
  }
@@ -20339,24 +20338,65 @@ class App {
20339
20338
  window.addEventListener("message", i);
20340
20339
  });
20341
20340
  }
20342
- }
20341
+ static async disableAnalyticsBottomBar() {
20342
+ this.sendAppMessage({
20343
+ type: "hide_analytics_date_picker"
20344
+ });
20345
+ }
20346
+ static get isOnline() {
20347
+ return Mt._isOnline;
20348
+ }
20349
+ static listenForConnectionEvents() {
20350
+ window.addEventListener("message", this._handleOnlineEvent);
20351
+ }
20352
+ static checkConnection(t = 1e3) {
20353
+ return new Promise((n, r) => {
20354
+ const i = setTimeout(
20355
+ () => r(new Error("deadline expired: took too long")),
20356
+ t
20357
+ ), s = (l) => {
20358
+ window.removeEventListener("message", s), clearTimeout(i);
20359
+ const { data: o } = l;
20360
+ o.type === "formant_online" && (this._isOnline = o.online, n(o.online));
20361
+ };
20362
+ window.addEventListener("message", s), this.sendAppMessage({ type: "formant_online" });
20363
+ });
20364
+ }
20365
+ static waitForConnection(t = 5e3) {
20366
+ let n = !1;
20367
+ const r = new Promise((l, o) => {
20368
+ setTimeout(() => {
20369
+ n = !0, o(new Error("deadline expired: took too long"));
20370
+ }, t);
20371
+ }), i = (l) => new Promise((o) => setTimeout(o, l)), s = async () => {
20372
+ for (await i(50); !n && !(this.isOnline || await this.checkConnection); )
20373
+ await i(500);
20374
+ };
20375
+ return Promise.race([r, s()]);
20376
+ }
20377
+ };
20378
+ let App = Mt;
20379
+ Te(App, "_isOnline", null), Te(App, "_handleOnlineEvent", (t) => {
20380
+ const { data: n } = t;
20381
+ n.type === "formant_online" && (Mt._isOnline = n.online);
20382
+ });
20343
20383
  class AuthenticationStore {
20344
20384
  constructor({
20345
20385
  apiUrl: t,
20346
20386
  refreshAuthToken: n,
20347
20387
  addAccessTokenRefreshListener: r
20348
20388
  }) {
20349
- Re(this, "_refreshToken");
20350
- Re(this, "_isShareToken", !1);
20351
- Re(this, "_currentOrganization");
20352
- Re(this, "_currentUser");
20353
- Re(this, "_defaultDeviceId");
20354
- Re(this, "_token");
20355
- Re(this, "_waitingForAuth", /* @__PURE__ */ new Set());
20356
- Re(this, "_refreshTimer");
20357
- Re(this, "_apiUrl");
20358
- Re(this, "_refreshAuthToken");
20359
- Re(this, "_addAccessTokenRefreshListener");
20389
+ Te(this, "_refreshToken");
20390
+ Te(this, "_isShareToken", !1);
20391
+ Te(this, "_currentOrganization");
20392
+ Te(this, "_currentUser");
20393
+ Te(this, "_defaultDeviceId");
20394
+ Te(this, "_token");
20395
+ Te(this, "_waitingForAuth", /* @__PURE__ */ new Set());
20396
+ Te(this, "_refreshTimer");
20397
+ Te(this, "_apiUrl");
20398
+ Te(this, "_refreshAuthToken");
20399
+ Te(this, "_addAccessTokenRefreshListener");
20360
20400
  this._apiUrl = t, this._refreshAuthToken = n, this._addAccessTokenRefreshListener = r;
20361
20401
  }
20362
20402
  get token() {
@@ -20766,14 +20806,14 @@ function delay(e) {
20766
20806
  }
20767
20807
  class DataChannel {
20768
20808
  constructor(t) {
20769
- Re(this, "ready", !1);
20770
- Re(this, "listeners", []);
20771
- Re(this, "openListeners", []);
20772
- Re(this, "closeListeners", []);
20773
- Re(this, "errorListeners", []);
20774
- Re(this, "binaryListeners", []);
20775
- Re(this, "error");
20776
- Re(this, "decoder", new TextDecoder());
20809
+ Te(this, "ready", !1);
20810
+ Te(this, "listeners", []);
20811
+ Te(this, "openListeners", []);
20812
+ Te(this, "closeListeners", []);
20813
+ Te(this, "errorListeners", []);
20814
+ Te(this, "binaryListeners", []);
20815
+ Te(this, "error");
20816
+ Te(this, "decoder", new TextDecoder());
20777
20817
  this.dataChannel = t, this.dataChannel.binaryType = "arraybuffer", this.dataChannel.onopen = () => {
20778
20818
  this.ready = !0, this.openListeners.forEach((n) => n());
20779
20819
  }, this.dataChannel.onclose = () => {
@@ -20849,7 +20889,7 @@ class DataChannel {
20849
20889
  }
20850
20890
  class CaptureStream {
20851
20891
  constructor(t) {
20852
- Re(this, "token");
20892
+ Te(this, "token");
20853
20893
  this.captureSession = t;
20854
20894
  }
20855
20895
  async ingestJSON(t) {
@@ -20879,8 +20919,8 @@ class CaptureStream {
20879
20919
  }
20880
20920
  class Manipulator {
20881
20921
  constructor(t, n) {
20882
- Re(this, "currentListeners", []);
20883
- Re(this, "onRealtimeMessage", (t, n) => {
20922
+ Te(this, "currentListeners", []);
20923
+ Te(this, "onRealtimeMessage", (t, n) => {
20884
20924
  n.payload.jointState && this.currentListeners.forEach((r) => {
20885
20925
  n.payload.jointState && r(n.payload.jointState);
20886
20926
  });
@@ -20903,8 +20943,8 @@ class Manipulator {
20903
20943
  }
20904
20944
  class RequestDataChannel {
20905
20945
  constructor(t, n, r) {
20906
- Re(this, "channel");
20907
- Re(this, "requestIdToResponseMap", /* @__PURE__ */ new Map());
20946
+ Te(this, "channel");
20947
+ Te(this, "requestIdToResponseMap", /* @__PURE__ */ new Map());
20908
20948
  this.device = t, this.channel_name = n, this.timeout = r;
20909
20949
  }
20910
20950
  addOpenListener(t) {
@@ -20935,8 +20975,8 @@ class RequestDataChannel {
20935
20975
  class BinaryRequestDataChannel extends RequestDataChannel {
20936
20976
  constructor() {
20937
20977
  super(...arguments);
20938
- Re(this, "RESPONSE_SUCCESS_BYTE", 0);
20939
- Re(this, "decoder", new TextDecoder());
20978
+ Te(this, "RESPONSE_SUCCESS_BYTE", 0);
20979
+ Te(this, "decoder", new TextDecoder());
20940
20980
  }
20941
20981
  /*
20942
20982
  Request binary payload layout:
@@ -21047,11 +21087,11 @@ const urlParams$1 = new URLSearchParams(window.location.search), rtcClientVersio
21047
21087
  class Device extends EventEmitter {
21048
21088
  constructor(n, r, i) {
21049
21089
  super();
21050
- Re(this, "rtcClient");
21051
- Re(this, "remoteDevicePeerId");
21052
- Re(this, "realtimeListeners", []);
21053
- Re(this, "connectionMonitorInterval");
21054
- Re(this, "handleMessage", (n, r) => {
21090
+ Te(this, "rtcClient");
21091
+ Te(this, "remoteDevicePeerId", null);
21092
+ Te(this, "realtimeListeners", []);
21093
+ Te(this, "connectionMonitorInterval");
21094
+ Te(this, "handleMessage", (n, r) => {
21055
21095
  this.realtimeListeners.forEach((i) => i(n, r));
21056
21096
  });
21057
21097
  this.id = n, this.name = r, this.organizationId = i;
@@ -21118,6 +21158,12 @@ class Device extends EventEmitter {
21118
21158
  return this.rtcClient.getPing(this.remoteDevicePeerId);
21119
21159
  throw new Error(`Realtime connection hasn't been started for ${this.id}`);
21120
21160
  }
21161
+ /**
21162
+ * Starts a real-time connection with the remote device using WebRTC.
21163
+ * @param {number} [sessionType] - Optional session type to be used for the connection.
21164
+ * @throws `Error` If the connection could not be established or if a connection already exists.
21165
+ * @returns {void}
21166
+ */
21121
21167
  async startRealtimeConnection(n) {
21122
21168
  if (!this.rtcClient || this.connectionMonitorInterval === void 0) {
21123
21169
  let r;
@@ -21145,17 +21191,43 @@ class Device extends EventEmitter {
21145
21191
  }), r.isReady)
21146
21192
  for (; !r.isReady(); )
21147
21193
  await delay(100);
21148
- const s = (await r.getPeers()).find((l) => l.deviceId === this.id);
21149
- if (!s)
21150
- throw new Error("Cannot find peer, is the robot offline?");
21151
- for (this.remoteDevicePeerId = s.id, await r.connect(this.remoteDevicePeerId); r.getConnectionStatus(this.remoteDevicePeerId) !== "connected"; )
21152
- await delay(100);
21153
- this.rtcClient = r, this.emit("connect"), this.initConnectionMonitoring();
21194
+ if (this.remoteDevicePeerId = await this.getRemoteDevicePeerId(r), await this.createSession(r)) {
21195
+ for (let l = 0; l < 100; l++) {
21196
+ if (r.getConnectionStatus(this.remoteDevicePeerId) === "connected") {
21197
+ console.debug(
21198
+ `${(/* @__PURE__ */ new Date()).toISOString()} :: Connection completed after ${l} retries`
21199
+ ), this.initConnectionMonitoring(), this.rtcClient = r, this.emit("connect");
21200
+ return;
21201
+ }
21202
+ await delay(100);
21203
+ }
21204
+ throw new Error(
21205
+ "A session was created, but the connection could not be established, possibly due to network issues or misconfigured settings."
21206
+ );
21207
+ } else
21208
+ throw new Error("Unable to establish a connection at this time.");
21154
21209
  } else
21155
21210
  throw new Error(
21156
21211
  `Already created realtime connection to device ${this.id}`
21157
21212
  );
21158
21213
  }
21214
+ async getRemoteDevicePeerId(n) {
21215
+ const i = (await n.getPeers()).find((s) => s.deviceId === this.id);
21216
+ if (!isRtcPeer(i))
21217
+ throw new Error("Cannot find peer, is the robot offline?");
21218
+ return i.id;
21219
+ }
21220
+ async createSession(n) {
21221
+ if (this.remoteDevicePeerId)
21222
+ for (let i = 0; i < 3; i++) {
21223
+ const s = await n.connect(
21224
+ this.remoteDevicePeerId
21225
+ );
21226
+ if (s)
21227
+ return s;
21228
+ delay(100);
21229
+ }
21230
+ }
21159
21231
  initConnectionMonitoring() {
21160
21232
  this.connectionMonitorInterval = setInterval(async () => {
21161
21233
  if (!this.isV2Signaling(this.rtcClient))
@@ -21185,8 +21257,8 @@ class Device extends EventEmitter {
21185
21257
  const i = defined(
21186
21258
  this.rtcClient,
21187
21259
  "Realtime connection has not been started"
21188
- ), s = await this.getRemotePeer();
21189
- i.send(defined(s).id, n, r);
21260
+ ), s = await this.getRemotePeerId();
21261
+ i.send(s, n, r);
21190
21262
  }
21191
21263
  addRealtimeListener(n) {
21192
21264
  this.realtimeListeners.push(n);
@@ -21250,11 +21322,12 @@ class Device extends EventEmitter {
21250
21322
  return r;
21251
21323
  }
21252
21324
  async startListeningToRealtimeVideo(n) {
21325
+ console.debug(`RealtimeVideo(${this.id}).start(${n.name})`);
21253
21326
  const r = defined(
21254
21327
  this.rtcClient,
21255
21328
  "Realtime connection has not been started"
21256
- ), i = await this.getRemotePeer();
21257
- r.controlRemoteStream(defined(i).id, {
21329
+ ), i = await this.getRemotePeerId();
21330
+ r.controlRemoteStream(i, {
21258
21331
  streamName: n.name,
21259
21332
  enable: !0,
21260
21333
  pipeline: "rtc"
@@ -21264,19 +21337,20 @@ class Device extends EventEmitter {
21264
21337
  const r = defined(
21265
21338
  this.rtcClient,
21266
21339
  "Realtime connection has not been started"
21267
- ), i = await this.getRemotePeer();
21268
- r.controlRemoteStream(defined(i).id, {
21340
+ ), i = await this.getRemotePeerId();
21341
+ r.controlRemoteStream(i, {
21269
21342
  streamName: n.name,
21270
21343
  enable: !1,
21271
21344
  pipeline: "rtc"
21272
- });
21345
+ }), console.debug(`RealtimeVideo(${this.id}).stop(${n.name})`);
21273
21346
  }
21274
21347
  async startListeningToRealtimeDataStream(n) {
21348
+ console.debug(`RealtimeDataStream(${this.id}).start(${n.name})`);
21275
21349
  const r = defined(
21276
21350
  this.rtcClient,
21277
21351
  "Realtime connection has not been started"
21278
- ), i = await this.getRemotePeer();
21279
- r.controlRemoteStream(defined(i).id, {
21352
+ ), i = await this.getRemotePeerId();
21353
+ r.controlRemoteStream(i, {
21280
21354
  streamName: n.name,
21281
21355
  enable: !0,
21282
21356
  pipeline: "rtc"
@@ -21286,19 +21360,19 @@ class Device extends EventEmitter {
21286
21360
  const r = defined(
21287
21361
  this.rtcClient,
21288
21362
  "Realtime connection has not been started"
21289
- ), i = await this.getRemotePeer();
21290
- r.controlRemoteStream(defined(i).id, {
21363
+ ), i = await this.getRemotePeerId();
21364
+ r.controlRemoteStream(i, {
21291
21365
  streamName: n.name,
21292
21366
  enable: !1,
21293
21367
  pipeline: "rtc"
21294
- });
21368
+ }), console.debug(`RealtimeDataStream(${this.id}).stop(${n.name})`);
21295
21369
  }
21296
21370
  async enableRealtimeTelemetryPriorityIngestion(n) {
21297
21371
  const r = defined(
21298
21372
  this.rtcClient,
21299
21373
  "Realtime connection has not been started"
21300
- ), i = await this.getRemotePeer();
21301
- r.controlRemoteStream(defined(i).id, {
21374
+ ), i = await this.getRemotePeerId();
21375
+ r.controlRemoteStream(i, {
21302
21376
  streamName: n,
21303
21377
  enablePriorityUpload: !0,
21304
21378
  pipeline: "telemetry"
@@ -21308,8 +21382,8 @@ class Device extends EventEmitter {
21308
21382
  const i = defined(
21309
21383
  this.rtcClient,
21310
21384
  "Realtime connection has not been started"
21311
- ), s = await this.getRemotePeer();
21312
- i.controlRemoteStream(defined(s).id, {
21385
+ ), s = await this.getRemotePeerId();
21386
+ i.controlRemoteStream(s, {
21313
21387
  streamName: n,
21314
21388
  setAudioFormat: r
21315
21389
  });
@@ -21318,8 +21392,8 @@ class Device extends EventEmitter {
21318
21392
  const r = defined(
21319
21393
  this.rtcClient,
21320
21394
  "Realtime connection has not been started"
21321
- ), i = await this.getRemotePeer();
21322
- r.controlRemoteStream(defined(i).id, {
21395
+ ), i = await this.getRemotePeerId();
21396
+ r.controlRemoteStream(i, {
21323
21397
  streamName: n,
21324
21398
  enablePriorityUpload: !1,
21325
21399
  pipeline: "telemetry"
@@ -21336,8 +21410,8 @@ class Device extends EventEmitter {
21336
21410
  );
21337
21411
  }
21338
21412
  async stopRealtimeConnection() {
21339
- if (this.rtcClient)
21340
- this.stopConnectionMonitoring(), await this.rtcClient.disconnect(this.id);
21413
+ if (this.rtcClient && this.remoteDevicePeerId)
21414
+ this.stopConnectionMonitoring(), await this.rtcClient.disconnect(this.remoteDevicePeerId), this.remoteDevicePeerId = null;
21341
21415
  else
21342
21416
  throw new Error(`Realtime connection hasn't been started for ${this.id}`);
21343
21417
  }
@@ -21414,9 +21488,9 @@ class Device extends EventEmitter {
21414
21488
  const i = defined(
21415
21489
  this.rtcClient,
21416
21490
  "Realtime connection has not been started"
21417
- ), s = await this.getRemotePeer(), l = await new Promise((o) => {
21491
+ ), s = await this.getRemotePeerId(), l = await new Promise((o) => {
21418
21492
  i.createCustomDataChannel(
21419
- defined(s).id,
21493
+ s,
21420
21494
  n,
21421
21495
  {
21422
21496
  ordered: !0,
@@ -21539,14 +21613,17 @@ class Device extends EventEmitter {
21539
21613
  async createShareLink(n, r) {
21540
21614
  return n.scope.deviceIds = [this.id], await Fleet.createShareLink(n, r);
21541
21615
  }
21616
+ async getRemotePeerId() {
21617
+ return this.remoteDevicePeerId ?? (await this.getRemotePeer()).id;
21618
+ }
21542
21619
  }
21543
21620
  class PeerDevice {
21544
21621
  constructor(t) {
21545
- Re(this, "rtcClient");
21546
- Re(this, "remoteDevicePeerId");
21547
- Re(this, "realtimeListeners", []);
21548
- Re(this, "id");
21549
- Re(this, "handleMessage", (t, n) => {
21622
+ Te(this, "rtcClient");
21623
+ Te(this, "remoteDevicePeerId");
21624
+ Te(this, "realtimeListeners", []);
21625
+ Te(this, "id");
21626
+ Te(this, "handleMessage", (t, n) => {
21550
21627
  this.realtimeListeners.forEach((r) => r(t, n));
21551
21628
  });
21552
21629
  this.peerUrl = t;
@@ -22352,7 +22429,7 @@ const at = class {
22352
22429
  }
22353
22430
  };
22354
22431
  let Fleet = at;
22355
- Re(Fleet, "defaultDeviceId"), Re(Fleet, "knownContext", []);
22432
+ Te(Fleet, "defaultDeviceId"), Te(Fleet, "knownContext", []);
22356
22433
  class KeyValue {
22357
22434
  static async set(t, n) {
22358
22435
  try {
@@ -22521,7 +22598,13 @@ const aggregateFunctionMap = {
22521
22598
  sub: dateFns.subQuarters,
22522
22599
  get: dateFns.getQuarter
22523
22600
  }
22524
- }, formatTimeFrameText = (e, t) => e.split("/")[0] + "/" + e.split("/")[1] + "–" + t.split("/")[0] + "/" + t.split("/")[1];
22601
+ }, formatTimeFrameText = (e, t) => (
22602
+ // FIXME this doesn't work for *a lot* locales, other than en-US
22603
+ // en-GB: 'dd/mm/YYYY'
22604
+ // ja-jp: 'YYYY/mm/dd'
22605
+ // bg-BG: 'dd.mm.YYYY'
22606
+ e.split("/")[0] + "/" + e.split("/")[1] + "–" + t.split("/")[0] + "/" + t.split("/")[1]
22607
+ );
22525
22608
  function getZeroINumericSet() {
22526
22609
  return {
22527
22610
  min: Number.MAX_SAFE_INTEGER,
@@ -24474,7 +24557,7 @@ var MAXBITS = 15, ENOUGH_LENS$1 = 852, ENOUGH_DISTS$1 = 592, CODES$1 = 0, LENS$1
24474
24557
  64
24475
24558
  ];
24476
24559
  function inflate_table(e, t, n, r, i, s, l, o) {
24477
- var c = o.bits, u = 0, f = 0, E = 0, w = 0, h = 0, g = 0, b = 0, R = 0, j = 0, F = 0, M, A, d, C, $, q = null, y = 0, m, I = new Buf16(MAXBITS + 1), _ = new Buf16(MAXBITS + 1), L = null, W = 0, B, N, P;
24560
+ var c = o.bits, u = 0, f = 0, E = 0, w = 0, h = 0, g = 0, b = 0, R = 0, j = 0, F = 0, M, A, d, C, $, q = null, y = 0, m, I = new Buf16(MAXBITS + 1), _ = new Buf16(MAXBITS + 1), L = null, W = 0, k, N, P;
24478
24561
  for (u = 0; u <= MAXBITS; u++)
24479
24562
  I[u] = 0;
24480
24563
  for (f = 0; f < r; f++)
@@ -24497,9 +24580,9 @@ function inflate_table(e, t, n, r, i, s, l, o) {
24497
24580
  if (e === CODES$1 ? (q = L = l, m = 19) : e === LENS$1 ? (q = lbase, y -= 257, L = lext, W -= 257, m = 256) : (q = dbase, L = dext, m = -1), F = 0, f = 0, u = E, $ = s, g = h, b = 0, d = -1, j = 1 << h, C = j - 1, e === LENS$1 && j > ENOUGH_LENS$1 || e === DISTS$1 && j > ENOUGH_DISTS$1)
24498
24581
  return 1;
24499
24582
  for (; ; ) {
24500
- B = u - b, l[f] < m ? (N = 0, P = l[f]) : l[f] > m ? (N = L[W + l[f]], P = q[y + l[f]]) : (N = 32 + 64, P = 0), M = 1 << u - b, A = 1 << g, E = A;
24583
+ k = u - b, l[f] < m ? (N = 0, P = l[f]) : l[f] > m ? (N = L[W + l[f]], P = q[y + l[f]]) : (N = 32 + 64, P = 0), M = 1 << u - b, A = 1 << g, E = A;
24501
24584
  do
24502
- A -= M, i[$ + (F >> b) + A] = B << 24 | N << 16 | P | 0;
24585
+ A -= M, i[$ + (F >> b) + A] = k << 24 | N << 16 | P | 0;
24503
24586
  while (A !== 0);
24504
24587
  for (M = 1 << u - 1; F & M; )
24505
24588
  M >>= 1;
@@ -25414,6 +25497,7 @@ function serializeHash(e) {
25414
25497
  function deserializeHash(e) {
25415
25498
  return JSON.parse(inflateSync(Buffer.from(e, "base64")).toString("utf8"));
25416
25499
  }
25500
+ const isRtcPeer = (e) => e.capabilities !== void 0 && e.capabilitySet !== void 0;
25417
25501
  function stringToArrayBuffer(e) {
25418
25502
  return Uint8Array.from(atob(e), (t) => t.charCodeAt(0));
25419
25503
  }
@@ -25424,15 +25508,15 @@ function browser() {
25424
25508
  const rtcAudioChunkStreamType = "audio-chunk";
25425
25509
  class AudioPlayer {
25426
25510
  constructor(t, n) {
25427
- Re(this, "muted", !1);
25428
- Re(this, "hasReceivedData", !1);
25429
- Re(this, "audioContext");
25430
- Re(this, "chunks", []);
25431
- Re(this, "isPlaying", !1);
25432
- Re(this, "startTime", 0);
25433
- Re(this, "lastChunkOffset", 0);
25434
- Re(this, "bufferSize", 3);
25435
- Re(this, "receive", async (t) => {
25511
+ Te(this, "muted", !1);
25512
+ Te(this, "hasReceivedData", !1);
25513
+ Te(this, "audioContext");
25514
+ Te(this, "chunks", []);
25515
+ Te(this, "isPlaying", !1);
25516
+ Te(this, "startTime", 0);
25517
+ Te(this, "lastChunkOffset", 0);
25518
+ Te(this, "bufferSize", 3);
25519
+ Te(this, "receive", async (t) => {
25436
25520
  var l;
25437
25521
  const n = (l = t.payload.audioChunk) == null ? void 0 : l.chunk_data;
25438
25522
  if (!n)
@@ -25454,7 +25538,7 @@ class AudioPlayer {
25454
25538
  ), this.changeAudioWireFormat("wav");
25455
25539
  }
25456
25540
  });
25457
- Re(this, "scheduleChunk", (t) => {
25541
+ Te(this, "scheduleChunk", (t) => {
25458
25542
  const { audioContext: n } = this;
25459
25543
  if (!n)
25460
25544
  return;
@@ -25520,14 +25604,13 @@ const accessLevels = ["viewer", "operator", "administrator"], viewer = "viewer",
25520
25604
  "error"
25521
25605
  ], interventionTypes = ["selection", "labeling", "teleop"], severities = ["info", "warning", "error", "critical"], videoMimeTypes = ["video/mp4"];
25522
25606
  window.Buffer = Buffer;
25523
- let urlParams = new URLSearchParams("");
25524
- typeof window < "u" && (urlParams = new URLSearchParams(window.location.search));
25525
- const urlDevice = urlParams.get("device");
25607
+ const urlParams = typeof window < "u" ? new URLSearchParams(window.location.search) : new URLSearchParams(""), urlDevice = urlParams.get("device");
25526
25608
  urlDevice && Fleet.setDefaultDevice(urlDevice);
25527
25609
  const urlAuth = urlParams.get("auth");
25528
25610
  urlAuth && Authentication.loginWithToken(urlAuth);
25529
25611
  const moduleName = urlParams.get("module");
25530
25612
  moduleName && Authentication.listenForRefresh();
25613
+ typeof window < "u" && App.listenForConnectionEvents();
25531
25614
  const IRtcSendConfiguration = distExports.IRtcSendConfiguration, IRtcStreamMessage = distExports.IRtcStreamMessage, IRtcStreamPayload = distExports.IRtcStreamPayload;
25532
25615
  export {
25533
25616
  App,
@@ -25568,6 +25651,7 @@ export {
25568
25651
  getZeroINumericSet,
25569
25652
  healthStatuses,
25570
25653
  interventionTypes,
25654
+ isRtcPeer,
25571
25655
  operator,
25572
25656
  reduceNumericSetStreamAggregates,
25573
25657
  reduceNumericStreamAggregates,