@aikaara/chat-sdk 1.5.22 → 1.5.23

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.
@@ -1004,7 +1004,7 @@ function Ic() {
1004
1004
  function O(f, x, A, B) {
1005
1005
  return ye(fe(x), f, A, B);
1006
1006
  }
1007
- function U(f, x, A, B) {
1007
+ function $(f, x, A, B) {
1008
1008
  return ye(he(x, f.length - A), f, A, B);
1009
1009
  }
1010
1010
  o.prototype.write = function(f, x, A, B) {
@@ -1032,7 +1032,7 @@ function Ic() {
1032
1032
  case "ucs-2":
1033
1033
  case "utf16le":
1034
1034
  case "utf-16le":
1035
- return U(this, f, x, A);
1035
+ return $(this, f, x, A);
1036
1036
  default:
1037
1037
  if (de) throw new TypeError("Unknown encoding: " + B);
1038
1038
  B = ("" + B).toLowerCase(), de = !0;
@@ -1106,88 +1106,88 @@ function Ic() {
1106
1106
  let B = this.subarray(f, x);
1107
1107
  return Object.setPrototypeOf(B, o.prototype), B;
1108
1108
  };
1109
- function $(f, x, A) {
1109
+ function U(f, x, A) {
1110
1110
  if (f % 1 !== 0 || f < 0) throw new RangeError("offset is not uint");
1111
1111
  if (f + x > A) throw new RangeError("Trying to access beyond buffer length");
1112
1112
  }
1113
1113
  o.prototype.readUintLE = o.prototype.readUIntLE = function(f, x, A) {
1114
- f = f >>> 0, x = x >>> 0, A || $(f, x, this.length);
1114
+ f = f >>> 0, x = x >>> 0, A || U(f, x, this.length);
1115
1115
  let B = this[f], Z = 1, de = 0;
1116
1116
  for (; ++de < x && (Z *= 256); ) B += this[f + de] * Z;
1117
1117
  return B;
1118
1118
  }, o.prototype.readUintBE = o.prototype.readUIntBE = function(f, x, A) {
1119
- f = f >>> 0, x = x >>> 0, A || $(f, x, this.length);
1119
+ f = f >>> 0, x = x >>> 0, A || U(f, x, this.length);
1120
1120
  let B = this[f + --x], Z = 1;
1121
1121
  for (; x > 0 && (Z *= 256); ) B += this[f + --x] * Z;
1122
1122
  return B;
1123
1123
  }, o.prototype.readUint8 = o.prototype.readUInt8 = function(f, x) {
1124
- return f = f >>> 0, x || $(f, 1, this.length), this[f];
1124
+ return f = f >>> 0, x || U(f, 1, this.length), this[f];
1125
1125
  }, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(f, x) {
1126
- return f = f >>> 0, x || $(f, 2, this.length), this[f] | this[f + 1] << 8;
1126
+ return f = f >>> 0, x || U(f, 2, this.length), this[f] | this[f + 1] << 8;
1127
1127
  }, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(f, x) {
1128
- return f = f >>> 0, x || $(f, 2, this.length), this[f] << 8 | this[f + 1];
1128
+ return f = f >>> 0, x || U(f, 2, this.length), this[f] << 8 | this[f + 1];
1129
1129
  }, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(f, x) {
1130
- return f = f >>> 0, x || $(f, 4, this.length), (this[f] | this[f + 1] << 8 | this[f + 2] << 16) + this[f + 3] * 16777216;
1130
+ return f = f >>> 0, x || U(f, 4, this.length), (this[f] | this[f + 1] << 8 | this[f + 2] << 16) + this[f + 3] * 16777216;
1131
1131
  }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(f, x) {
1132
- return f = f >>> 0, x || $(f, 4, this.length), this[f] * 16777216 + (this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3]);
1132
+ return f = f >>> 0, x || U(f, 4, this.length), this[f] * 16777216 + (this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3]);
1133
1133
  }, o.prototype.readBigUInt64LE = ae(function(f) {
1134
- f = f >>> 0, Q(f, "offset");
1134
+ f = f >>> 0, X(f, "offset");
1135
1135
  let x = this[f], A = this[f + 7];
1136
1136
  (x === void 0 || A === void 0) && be(f, this.length - 8);
1137
1137
  let B = x + this[++f] * 2 ** 8 + this[++f] * 2 ** 16 + this[++f] * 2 ** 24, Z = this[++f] + this[++f] * 2 ** 8 + this[++f] * 2 ** 16 + A * 2 ** 24;
1138
1138
  return BigInt(B) + (BigInt(Z) << BigInt(32));
1139
1139
  }), o.prototype.readBigUInt64BE = ae(function(f) {
1140
- f = f >>> 0, Q(f, "offset");
1140
+ f = f >>> 0, X(f, "offset");
1141
1141
  let x = this[f], A = this[f + 7];
1142
1142
  (x === void 0 || A === void 0) && be(f, this.length - 8);
1143
1143
  let B = x * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + this[++f], Z = this[++f] * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + A;
1144
1144
  return (BigInt(B) << BigInt(32)) + BigInt(Z);
1145
1145
  }), o.prototype.readIntLE = function(f, x, A) {
1146
- f = f >>> 0, x = x >>> 0, A || $(f, x, this.length);
1146
+ f = f >>> 0, x = x >>> 0, A || U(f, x, this.length);
1147
1147
  let B = this[f], Z = 1, de = 0;
1148
1148
  for (; ++de < x && (Z *= 256); ) B += this[f + de] * Z;
1149
1149
  return Z *= 128, B >= Z && (B -= Math.pow(2, 8 * x)), B;
1150
1150
  }, o.prototype.readIntBE = function(f, x, A) {
1151
- f = f >>> 0, x = x >>> 0, A || $(f, x, this.length);
1151
+ f = f >>> 0, x = x >>> 0, A || U(f, x, this.length);
1152
1152
  let B = x, Z = 1, de = this[f + --B];
1153
1153
  for (; B > 0 && (Z *= 256); ) de += this[f + --B] * Z;
1154
1154
  return Z *= 128, de >= Z && (de -= Math.pow(2, 8 * x)), de;
1155
1155
  }, o.prototype.readInt8 = function(f, x) {
1156
- return f = f >>> 0, x || $(f, 1, this.length), this[f] & 128 ? (255 - this[f] + 1) * -1 : this[f];
1156
+ return f = f >>> 0, x || U(f, 1, this.length), this[f] & 128 ? (255 - this[f] + 1) * -1 : this[f];
1157
1157
  }, o.prototype.readInt16LE = function(f, x) {
1158
- f = f >>> 0, x || $(f, 2, this.length);
1158
+ f = f >>> 0, x || U(f, 2, this.length);
1159
1159
  let A = this[f] | this[f + 1] << 8;
1160
1160
  return A & 32768 ? A | 4294901760 : A;
1161
1161
  }, o.prototype.readInt16BE = function(f, x) {
1162
- f = f >>> 0, x || $(f, 2, this.length);
1162
+ f = f >>> 0, x || U(f, 2, this.length);
1163
1163
  let A = this[f + 1] | this[f] << 8;
1164
1164
  return A & 32768 ? A | 4294901760 : A;
1165
1165
  }, o.prototype.readInt32LE = function(f, x) {
1166
- return f = f >>> 0, x || $(f, 4, this.length), this[f] | this[f + 1] << 8 | this[f + 2] << 16 | this[f + 3] << 24;
1166
+ return f = f >>> 0, x || U(f, 4, this.length), this[f] | this[f + 1] << 8 | this[f + 2] << 16 | this[f + 3] << 24;
1167
1167
  }, o.prototype.readInt32BE = function(f, x) {
1168
- return f = f >>> 0, x || $(f, 4, this.length), this[f] << 24 | this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3];
1168
+ return f = f >>> 0, x || U(f, 4, this.length), this[f] << 24 | this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3];
1169
1169
  }, o.prototype.readBigInt64LE = ae(function(f) {
1170
- f = f >>> 0, Q(f, "offset");
1170
+ f = f >>> 0, X(f, "offset");
1171
1171
  let x = this[f], A = this[f + 7];
1172
1172
  (x === void 0 || A === void 0) && be(f, this.length - 8);
1173
1173
  let B = this[f + 4] + this[f + 5] * 2 ** 8 + this[f + 6] * 2 ** 16 + (A << 24);
1174
1174
  return (BigInt(B) << BigInt(32)) + BigInt(x + this[++f] * 2 ** 8 + this[++f] * 2 ** 16 + this[++f] * 2 ** 24);
1175
1175
  }), o.prototype.readBigInt64BE = ae(function(f) {
1176
- f = f >>> 0, Q(f, "offset");
1176
+ f = f >>> 0, X(f, "offset");
1177
1177
  let x = this[f], A = this[f + 7];
1178
1178
  (x === void 0 || A === void 0) && be(f, this.length - 8);
1179
1179
  let B = (x << 24) + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + this[++f];
1180
1180
  return (BigInt(B) << BigInt(32)) + BigInt(this[++f] * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + A);
1181
1181
  }), o.prototype.readFloatLE = function(f, x) {
1182
- return f = f >>> 0, x || $(f, 4, this.length), e.read(this, f, !0, 23, 4);
1182
+ return f = f >>> 0, x || U(f, 4, this.length), e.read(this, f, !0, 23, 4);
1183
1183
  }, o.prototype.readFloatBE = function(f, x) {
1184
- return f = f >>> 0, x || $(f, 4, this.length), e.read(this, f, !1, 23, 4);
1184
+ return f = f >>> 0, x || U(f, 4, this.length), e.read(this, f, !1, 23, 4);
1185
1185
  }, o.prototype.readDoubleLE = function(f, x) {
1186
- return f = f >>> 0, x || $(f, 8, this.length), e.read(this, f, !0, 52, 8);
1186
+ return f = f >>> 0, x || U(f, 8, this.length), e.read(this, f, !0, 52, 8);
1187
1187
  }, o.prototype.readDoubleBE = function(f, x) {
1188
- return f = f >>> 0, x || $(f, 8, this.length), e.read(this, f, !1, 52, 8);
1188
+ return f = f >>> 0, x || U(f, 8, this.length), e.read(this, f, !1, 52, 8);
1189
1189
  };
1190
- function X(f, x, A, B, Z, de) {
1190
+ function Q(f, x, A, B, Z, de) {
1191
1191
  if (!o.isBuffer(f)) throw new TypeError('"buffer" argument must be a Buffer instance');
1192
1192
  if (x > Z || x < de) throw new RangeError('"value" argument is out of bounds');
1193
1193
  if (A + B > f.length) throw new RangeError("Index out of range");
@@ -1195,7 +1195,7 @@ function Ic() {
1195
1195
  o.prototype.writeUintLE = o.prototype.writeUIntLE = function(f, x, A, B) {
1196
1196
  if (f = +f, x = x >>> 0, A = A >>> 0, !B) {
1197
1197
  let xe = Math.pow(2, 8 * A) - 1;
1198
- X(this, f, x, A, xe, 0);
1198
+ Q(this, f, x, A, xe, 0);
1199
1199
  }
1200
1200
  let Z = 1, de = 0;
1201
1201
  for (this[x] = f & 255; ++de < A && (Z *= 256); ) this[x + de] = f / Z & 255;
@@ -1203,21 +1203,21 @@ function Ic() {
1203
1203
  }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(f, x, A, B) {
1204
1204
  if (f = +f, x = x >>> 0, A = A >>> 0, !B) {
1205
1205
  let xe = Math.pow(2, 8 * A) - 1;
1206
- X(this, f, x, A, xe, 0);
1206
+ Q(this, f, x, A, xe, 0);
1207
1207
  }
1208
1208
  let Z = A - 1, de = 1;
1209
1209
  for (this[x + Z] = f & 255; --Z >= 0 && (de *= 256); ) this[x + Z] = f / de & 255;
1210
1210
  return x + A;
1211
1211
  }, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(f, x, A) {
1212
- return f = +f, x = x >>> 0, A || X(this, f, x, 1, 255, 0), this[x] = f & 255, x + 1;
1212
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 1, 255, 0), this[x] = f & 255, x + 1;
1213
1213
  }, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(f, x, A) {
1214
- return f = +f, x = x >>> 0, A || X(this, f, x, 2, 65535, 0), this[x] = f & 255, this[x + 1] = f >>> 8, x + 2;
1214
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 2, 65535, 0), this[x] = f & 255, this[x + 1] = f >>> 8, x + 2;
1215
1215
  }, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(f, x, A) {
1216
- return f = +f, x = x >>> 0, A || X(this, f, x, 2, 65535, 0), this[x] = f >>> 8, this[x + 1] = f & 255, x + 2;
1216
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 2, 65535, 0), this[x] = f >>> 8, this[x + 1] = f & 255, x + 2;
1217
1217
  }, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(f, x, A) {
1218
- return f = +f, x = x >>> 0, A || X(this, f, x, 4, 4294967295, 0), this[x + 3] = f >>> 24, this[x + 2] = f >>> 16, this[x + 1] = f >>> 8, this[x] = f & 255, x + 4;
1218
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 4, 4294967295, 0), this[x + 3] = f >>> 24, this[x + 2] = f >>> 16, this[x + 1] = f >>> 8, this[x] = f & 255, x + 4;
1219
1219
  }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(f, x, A) {
1220
- return f = +f, x = x >>> 0, A || X(this, f, x, 4, 4294967295, 0), this[x] = f >>> 24, this[x + 1] = f >>> 16, this[x + 2] = f >>> 8, this[x + 3] = f & 255, x + 4;
1220
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 4, 4294967295, 0), this[x] = f >>> 24, this[x + 1] = f >>> 16, this[x + 2] = f >>> 8, this[x + 3] = f & 255, x + 4;
1221
1221
  };
1222
1222
  function M(f, x, A, B, Z) {
1223
1223
  G(x, B, Z, f, A, 7);
@@ -1240,7 +1240,7 @@ function Ic() {
1240
1240
  }), o.prototype.writeIntLE = function(f, x, A, B) {
1241
1241
  if (f = +f, x = x >>> 0, !B) {
1242
1242
  let V = Math.pow(2, 8 * A - 1);
1243
- X(this, f, x, A, V - 1, -V);
1243
+ Q(this, f, x, A, V - 1, -V);
1244
1244
  }
1245
1245
  let Z = 0, de = 1, xe = 0;
1246
1246
  for (this[x] = f & 255; ++Z < A && (de *= 256); ) f < 0 && xe === 0 && this[x + Z - 1] !== 0 && (xe = 1), this[x + Z] = (f / de >> 0) - xe & 255;
@@ -1248,21 +1248,21 @@ function Ic() {
1248
1248
  }, o.prototype.writeIntBE = function(f, x, A, B) {
1249
1249
  if (f = +f, x = x >>> 0, !B) {
1250
1250
  let V = Math.pow(2, 8 * A - 1);
1251
- X(this, f, x, A, V - 1, -V);
1251
+ Q(this, f, x, A, V - 1, -V);
1252
1252
  }
1253
1253
  let Z = A - 1, de = 1, xe = 0;
1254
1254
  for (this[x + Z] = f & 255; --Z >= 0 && (de *= 256); ) f < 0 && xe === 0 && this[x + Z + 1] !== 0 && (xe = 1), this[x + Z] = (f / de >> 0) - xe & 255;
1255
1255
  return x + A;
1256
1256
  }, o.prototype.writeInt8 = function(f, x, A) {
1257
- return f = +f, x = x >>> 0, A || X(this, f, x, 1, 127, -128), f < 0 && (f = 255 + f + 1), this[x] = f & 255, x + 1;
1257
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 1, 127, -128), f < 0 && (f = 255 + f + 1), this[x] = f & 255, x + 1;
1258
1258
  }, o.prototype.writeInt16LE = function(f, x, A) {
1259
- return f = +f, x = x >>> 0, A || X(this, f, x, 2, 32767, -32768), this[x] = f & 255, this[x + 1] = f >>> 8, x + 2;
1259
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 2, 32767, -32768), this[x] = f & 255, this[x + 1] = f >>> 8, x + 2;
1260
1260
  }, o.prototype.writeInt16BE = function(f, x, A) {
1261
- return f = +f, x = x >>> 0, A || X(this, f, x, 2, 32767, -32768), this[x] = f >>> 8, this[x + 1] = f & 255, x + 2;
1261
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 2, 32767, -32768), this[x] = f >>> 8, this[x + 1] = f & 255, x + 2;
1262
1262
  }, o.prototype.writeInt32LE = function(f, x, A) {
1263
- return f = +f, x = x >>> 0, A || X(this, f, x, 4, 2147483647, -2147483648), this[x] = f & 255, this[x + 1] = f >>> 8, this[x + 2] = f >>> 16, this[x + 3] = f >>> 24, x + 4;
1263
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 4, 2147483647, -2147483648), this[x] = f & 255, this[x + 1] = f >>> 8, this[x + 2] = f >>> 16, this[x + 3] = f >>> 24, x + 4;
1264
1264
  }, o.prototype.writeInt32BE = function(f, x, A) {
1265
- return f = +f, x = x >>> 0, A || X(this, f, x, 4, 2147483647, -2147483648), f < 0 && (f = 4294967295 + f + 1), this[x] = f >>> 24, this[x + 1] = f >>> 16, this[x + 2] = f >>> 8, this[x + 3] = f & 255, x + 4;
1265
+ return f = +f, x = x >>> 0, A || Q(this, f, x, 4, 2147483647, -2147483648), f < 0 && (f = 4294967295 + f + 1), this[x] = f >>> 24, this[x + 1] = f >>> 16, this[x + 2] = f >>> 8, this[x + 3] = f & 255, x + 4;
1266
1266
  }, o.prototype.writeBigInt64LE = ae(function(f, x = 0) {
1267
1267
  return M(this, f, x, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1268
1268
  }), o.prototype.writeBigInt64BE = ae(function(f, x = 0) {
@@ -1348,7 +1348,7 @@ function Ic() {
1348
1348
  return `${f.slice(0, A)}${x}`;
1349
1349
  }
1350
1350
  function z(f, x, A) {
1351
- Q(x, "offset"), (f[x] === void 0 || f[x + A] === void 0) && be(x, f.length - (A + 1));
1351
+ X(x, "offset"), (f[x] === void 0 || f[x + A] === void 0) && be(x, f.length - (A + 1));
1352
1352
  }
1353
1353
  function G(f, x, A, B, Z, de) {
1354
1354
  if (f > A || f < x) {
@@ -1357,11 +1357,11 @@ function Ic() {
1357
1357
  }
1358
1358
  z(B, Z, de);
1359
1359
  }
1360
- function Q(f, x) {
1360
+ function X(f, x) {
1361
1361
  if (typeof f != "number") throw new K.ERR_INVALID_ARG_TYPE(x, "number", f);
1362
1362
  }
1363
1363
  function be(f, x, A) {
1364
- throw Math.floor(f) !== f ? (Q(f, A), new K.ERR_OUT_OF_RANGE("offset", "an integer", f)) : x < 0 ? new K.ERR_BUFFER_OUT_OF_BOUNDS() : new K.ERR_OUT_OF_RANGE("offset", `>= 0 and <= ${x}`, f);
1364
+ throw Math.floor(f) !== f ? (X(f, A), new K.ERR_OUT_OF_RANGE("offset", "an integer", f)) : x < 0 ? new K.ERR_BUFFER_OUT_OF_BOUNDS() : new K.ERR_OUT_OF_RANGE("offset", `>= 0 and <= ${x}`, f);
1365
1365
  }
1366
1366
  let oe = /[^+/0-9A-Za-z-_]/g;
1367
1367
  function N(f) {
@@ -1751,10 +1751,10 @@ function Cc() {
1751
1751
  var O = new Error("Unhandled error." + (P ? " (" + P.message + ")" : ""));
1752
1752
  throw O.context = P, O;
1753
1753
  }
1754
- var U = I[_];
1755
- if (U === void 0) return !1;
1756
- if (typeof U == "function") e(U, this, v);
1757
- else for (var T = U.length, F = h(U, T), S = 0; S < T; ++S) e(F[S], this, v);
1754
+ var $ = I[_];
1755
+ if ($ === void 0) return !1;
1756
+ if (typeof $ == "function") e($, this, v);
1757
+ else for (var T = $.length, F = h($, T), S = 0; S < T; ++S) e(F[S], this, v);
1758
1758
  return !0;
1759
1759
  };
1760
1760
  function c(_, v, S, E) {
@@ -1762,8 +1762,8 @@ function Cc() {
1762
1762
  if (a(S), P = _._events, P === void 0 ? (P = _._events = /* @__PURE__ */ Object.create(null), _._eventsCount = 0) : (P.newListener !== void 0 && (_.emit("newListener", v, S.listener ? S.listener : S), P = _._events), O = P[v]), O === void 0) O = P[v] = S, ++_._eventsCount;
1763
1763
  else if (typeof O == "function" ? O = P[v] = E ? [S, O] : [O, S] : E ? O.unshift(S) : O.push(S), I = l(_), I > 0 && O.length > I && !O.warned) {
1764
1764
  O.warned = !0;
1765
- var U = new Error("Possible EventEmitter memory leak detected. " + O.length + " " + String(v) + " listeners added. Use emitter.setMaxListeners() to increase limit");
1766
- U.name = "MaxListenersExceededWarning", U.emitter = _, U.type = v, U.count = O.length, r(U);
1765
+ var $ = new Error("Possible EventEmitter memory leak detected. " + O.length + " " + String(v) + " listeners added. Use emitter.setMaxListeners() to increase limit");
1766
+ $.name = "MaxListenersExceededWarning", $.emitter = _, $.type = v, $.count = O.length, r($);
1767
1767
  }
1768
1768
  return _;
1769
1769
  }
@@ -1970,7 +1970,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
1970
1970
  function O(H) {
1971
1971
  return H === (H | 0);
1972
1972
  }
1973
- function U(H) {
1973
+ function $(H) {
1974
1974
  return H === H >>> 0;
1975
1975
  }
1976
1976
  var T = /^[0-7]+$/, F = "must be a 32-bit unsigned integer or an octal string";
@@ -2002,13 +2002,13 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2002
2002
  if (typeof H != "number") throw new m(me, "number", H);
2003
2003
  if (ve != null && H < ve || ae != null && H > ae || (ve != null || ae != null) && a(H)) throw new _(me, `${ve != null ? `>= ${ve}` : ""}${ve != null && ae != null ? " && " : ""}${ae != null ? `<= ${ae}` : ""}`, H);
2004
2004
  }
2005
- var $ = y((H, me, ve) => {
2005
+ var U = y((H, me, ve) => {
2006
2006
  if (!r(ve, H)) {
2007
2007
  let ae = "must be one of: " + i(n(ve, (Le) => typeof Le == "string" ? `'${Le}'` : g(Le)), ", ");
2008
2008
  throw new k(me, H, ae);
2009
2009
  }
2010
2010
  });
2011
- function X(H, me) {
2011
+ function Q(H, me) {
2012
2012
  if (typeof H != "boolean") throw new m(me, "boolean", H);
2013
2013
  }
2014
2014
  function M(H, me, ve) {
@@ -2032,7 +2032,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2032
2032
  }
2033
2033
  function K(H, me) {
2034
2034
  re(H, me);
2035
- for (let ve = 0; ve < H.length; ve++) X(H[ve], `${me}[${ve}]`);
2035
+ for (let ve = 0; ve < H.length; ve++) Q(H[ve], `${me}[${ve}]`);
2036
2036
  }
2037
2037
  function j(H, me) {
2038
2038
  re(H, me);
@@ -2052,7 +2052,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2052
2052
  let ve = S(me), ae = H.length;
2053
2053
  if (ve === "hex" && ae % 2 !== 0) throw new k("encoding", me, `is invalid for data of length ${ae}`);
2054
2054
  }
2055
- function Q(H, me = "Port", ve = !0) {
2055
+ function X(H, me = "Port", ve = !0) {
2056
2056
  if (typeof H != "number" && typeof H != "string" || typeof H == "string" && b(H).length === 0 || +H !== +H >>> 0 || H > 65535 || H === 0 && !ve) throw new w(me, H, ve);
2057
2057
  return H | 0;
2058
2058
  }
@@ -2085,7 +2085,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2085
2085
  }
2086
2086
  throw new k("hints", H, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
2087
2087
  }
2088
- e.exports = { isInt32: O, isUint32: U, parseFileMode: L, validateArray: re, validateStringArray: we, validateBooleanArray: K, validateAbortSignalArray: j, validateBoolean: X, validateBuffer: z, validateDictionary: ge, validateEncoding: G, validateFunction: oe, validateInt32: se, validateInteger: D, validateNumber: ee, validateObject: J, validateOneOf: $, validatePlainFunction: N, validatePort: Q, validateSignalName: ne, validateString: W, validateUint32: Y, validateUndefined: q, validateUnion: te, validateAbortSignal: be, validateLinkHeaderValue: ye };
2088
+ e.exports = { isInt32: O, isUint32: $, parseFileMode: L, validateArray: re, validateStringArray: we, validateBooleanArray: K, validateAbortSignalArray: j, validateBoolean: Q, validateBuffer: z, validateDictionary: ge, validateEncoding: G, validateFunction: oe, validateInt32: se, validateInteger: D, validateNumber: ee, validateObject: J, validateOneOf: U, validatePlainFunction: N, validatePort: X, validateSignalName: ne, validateString: W, validateUint32: Y, validateUndefined: q, validateUnion: te, validateAbortSignal: be, validateLinkHeaderValue: ye };
2089
2089
  }), Bt = pe((s, e) => {
2090
2090
  le(), ue(), ce();
2091
2091
  var t = e.exports = {}, r, i;
@@ -2235,11 +2235,11 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2235
2235
  function O(M) {
2236
2236
  return M && M[a] != null ? M[a] : typeof M?.readable != "boolean" ? null : v(M) ? !1 : p(M) && M.readable && !P(M);
2237
2237
  }
2238
- function U(M) {
2238
+ function $(M) {
2239
2239
  return M && M[l] != null ? M[l] : typeof M?.writable != "boolean" ? null : v(M) ? !1 : g(M) && M.writable && !S(M);
2240
2240
  }
2241
2241
  function T(M, J) {
2242
- return b(M) ? v(M) ? !0 : !(J?.readable !== !1 && O(M) || J?.writable !== !1 && U(M)) : null;
2242
+ return b(M) ? v(M) ? !0 : !(J?.readable !== !1 && O(M) || J?.writable !== !1 && $(M)) : null;
2243
2243
  }
2244
2244
  function F(M) {
2245
2245
  var J, ge;
@@ -2270,92 +2270,92 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2270
2270
  let J = M._writableState, ge = M._readableState, re = J || ge;
2271
2271
  return !re && Y(M) || !!(re && re.autoDestroy && re.emitClose && re.closed === !1);
2272
2272
  }
2273
- function $(M) {
2273
+ function U(M) {
2274
2274
  var J;
2275
2275
  return !!(M && ((J = M[c]) !== null && J !== void 0 ? J : M.readableDidRead || M.readableAborted));
2276
2276
  }
2277
- function X(M) {
2278
- var J, ge, re, we, K, j, ne, z, G, Q;
2279
- return !!(M && ((J = (ge = (re = (we = (K = (j = M[o]) !== null && j !== void 0 ? j : M.readableErrored) !== null && K !== void 0 ? K : M.writableErrored) !== null && we !== void 0 ? we : (ne = M._readableState) === null || ne === void 0 ? void 0 : ne.errorEmitted) !== null && re !== void 0 ? re : (z = M._writableState) === null || z === void 0 ? void 0 : z.errorEmitted) !== null && ge !== void 0 ? ge : (G = M._readableState) === null || G === void 0 ? void 0 : G.errored) !== null && J !== void 0 ? J : !((Q = M._writableState) === null || Q === void 0) && Q.errored));
2277
+ function Q(M) {
2278
+ var J, ge, re, we, K, j, ne, z, G, X;
2279
+ return !!(M && ((J = (ge = (re = (we = (K = (j = M[o]) !== null && j !== void 0 ? j : M.readableErrored) !== null && K !== void 0 ? K : M.writableErrored) !== null && we !== void 0 ? we : (ne = M._readableState) === null || ne === void 0 ? void 0 : ne.errorEmitted) !== null && re !== void 0 ? re : (z = M._writableState) === null || z === void 0 ? void 0 : z.errorEmitted) !== null && ge !== void 0 ? ge : (G = M._readableState) === null || G === void 0 ? void 0 : G.errored) !== null && J !== void 0 ? J : !((X = M._writableState) === null || X === void 0) && X.errored));
2280
2280
  }
2281
- e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: $, kIsDisturbed: c, isErrored: X, kIsErrored: o, isReadable: O, kIsReadable: a, kIsClosedPromise: u, kControllerErrorFunction: d, kIsWritable: l, isClosed: D, isDuplexNodeStream: h, isFinished: T, isIterable: _, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: P, isReadableErrored: L, isNodeStream: b, isWebStream: k, isWritable: U, isWritableNodeStream: g, isWritableStream: w, isWritableEnded: S, isWritableFinished: E, isWritableErrored: F, isServerRequest: W, isServerResponse: Y, willEmitClose: ee, isTransformStream: m };
2281
+ e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: U, kIsDisturbed: c, isErrored: Q, kIsErrored: o, isReadable: O, kIsReadable: a, kIsClosedPromise: u, kControllerErrorFunction: d, kIsWritable: l, isClosed: D, isDuplexNodeStream: h, isFinished: T, isIterable: _, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: P, isReadableErrored: L, isNodeStream: b, isWebStream: k, isWritable: $, isWritableNodeStream: g, isWritableStream: w, isWritableEnded: S, isWritableFinished: E, isWritableErrored: F, isServerRequest: W, isServerResponse: Y, willEmitClose: ee, isTransformStream: m };
2282
2282
  }), Ot = pe((s, e) => {
2283
2283
  le(), ue(), ce();
2284
- var t = Bt(), { AbortError: r, codes: i } = Ye(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: o } = i, { kEmptyObject: a, once: l } = Je(), { validateAbortSignal: c, validateFunction: u, validateObject: d, validateBoolean: p } = mr(), { Promise: g, PromisePrototypeThen: h, SymbolDispose: b } = Ue(), { isClosed: y, isReadable: w, isReadableNodeStream: m, isReadableStream: k, isReadableFinished: _, isReadableErrored: v, isWritable: S, isWritableNodeStream: E, isWritableStream: I, isWritableFinished: P, isWritableErrored: O, isNodeStream: U, willEmitClose: T, kIsClosedPromise: F } = wt(), L;
2285
- function D($) {
2286
- return $.setHeader && typeof $.abort == "function";
2284
+ var t = Bt(), { AbortError: r, codes: i } = Ye(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: o } = i, { kEmptyObject: a, once: l } = Je(), { validateAbortSignal: c, validateFunction: u, validateObject: d, validateBoolean: p } = mr(), { Promise: g, PromisePrototypeThen: h, SymbolDispose: b } = Ue(), { isClosed: y, isReadable: w, isReadableNodeStream: m, isReadableStream: k, isReadableFinished: _, isReadableErrored: v, isWritable: S, isWritableNodeStream: E, isWritableStream: I, isWritableFinished: P, isWritableErrored: O, isNodeStream: $, willEmitClose: T, kIsClosedPromise: F } = wt(), L;
2285
+ function D(U) {
2286
+ return U.setHeader && typeof U.abort == "function";
2287
2287
  }
2288
2288
  var se = () => {
2289
2289
  };
2290
- function Y($, X, M) {
2290
+ function Y(U, Q, M) {
2291
2291
  var J, ge;
2292
- if (arguments.length === 2 ? (M = X, X = a) : X == null ? X = a : d(X, "options"), u(M, "callback"), c(X.signal, "options.signal"), M = l(M), k($) || I($)) return W($, X, M);
2293
- if (!U($)) throw new n("stream", ["ReadableStream", "WritableStream", "Stream"], $);
2294
- let re = (J = X.readable) !== null && J !== void 0 ? J : m($), we = (ge = X.writable) !== null && ge !== void 0 ? ge : E($), K = $._writableState, j = $._readableState, ne = () => {
2295
- $.writable || Q();
2296
- }, z = T($) && m($) === re && E($) === we, G = P($, !1), Q = () => {
2297
- G = !0, $.destroyed && (z = !1), !(z && (!$.readable || re)) && (!re || be) && M.call($);
2298
- }, be = _($, !1), oe = () => {
2299
- be = !0, $.destroyed && (z = !1), !(z && (!$.writable || we)) && (!we || G) && M.call($);
2292
+ if (arguments.length === 2 ? (M = Q, Q = a) : Q == null ? Q = a : d(Q, "options"), u(M, "callback"), c(Q.signal, "options.signal"), M = l(M), k(U) || I(U)) return W(U, Q, M);
2293
+ if (!$(U)) throw new n("stream", ["ReadableStream", "WritableStream", "Stream"], U);
2294
+ let re = (J = Q.readable) !== null && J !== void 0 ? J : m(U), we = (ge = Q.writable) !== null && ge !== void 0 ? ge : E(U), K = U._writableState, j = U._readableState, ne = () => {
2295
+ U.writable || X();
2296
+ }, z = T(U) && m(U) === re && E(U) === we, G = P(U, !1), X = () => {
2297
+ G = !0, U.destroyed && (z = !1), !(z && (!U.readable || re)) && (!re || be) && M.call(U);
2298
+ }, be = _(U, !1), oe = () => {
2299
+ be = !0, U.destroyed && (z = !1), !(z && (!U.writable || we)) && (!we || G) && M.call(U);
2300
2300
  }, N = (H) => {
2301
- M.call($, H);
2302
- }, q = y($), te = () => {
2301
+ M.call(U, H);
2302
+ }, q = y(U), te = () => {
2303
2303
  q = !0;
2304
- let H = O($) || v($);
2305
- if (H && typeof H != "boolean") return M.call($, H);
2306
- if (re && !be && m($, !0) && !_($, !1)) return M.call($, new o());
2307
- if (we && !G && !P($, !1)) return M.call($, new o());
2308
- M.call($);
2304
+ let H = O(U) || v(U);
2305
+ if (H && typeof H != "boolean") return M.call(U, H);
2306
+ if (re && !be && m(U, !0) && !_(U, !1)) return M.call(U, new o());
2307
+ if (we && !G && !P(U, !1)) return M.call(U, new o());
2308
+ M.call(U);
2309
2309
  }, he = () => {
2310
2310
  q = !0;
2311
- let H = O($) || v($);
2312
- if (H && typeof H != "boolean") return M.call($, H);
2313
- M.call($);
2311
+ let H = O(U) || v(U);
2312
+ if (H && typeof H != "boolean") return M.call(U, H);
2313
+ M.call(U);
2314
2314
  }, fe = () => {
2315
- $.req.on("finish", Q);
2315
+ U.req.on("finish", X);
2316
2316
  };
2317
- D($) ? ($.on("complete", Q), z || $.on("abort", te), $.req ? fe() : $.on("request", fe)) : we && !K && ($.on("end", ne), $.on("close", ne)), !z && typeof $.aborted == "boolean" && $.on("aborted", te), $.on("end", oe), $.on("finish", Q), X.error !== !1 && $.on("error", N), $.on("close", te), q ? t.nextTick(te) : K != null && K.errorEmitted || j != null && j.errorEmitted ? z || t.nextTick(he) : (!re && (!z || w($)) && (G || S($) === !1) || !we && (!z || S($)) && (be || w($) === !1) || j && $.req && $.aborted) && t.nextTick(he);
2317
+ D(U) ? (U.on("complete", X), z || U.on("abort", te), U.req ? fe() : U.on("request", fe)) : we && !K && (U.on("end", ne), U.on("close", ne)), !z && typeof U.aborted == "boolean" && U.on("aborted", te), U.on("end", oe), U.on("finish", X), Q.error !== !1 && U.on("error", N), U.on("close", te), q ? t.nextTick(te) : K != null && K.errorEmitted || j != null && j.errorEmitted ? z || t.nextTick(he) : (!re && (!z || w(U)) && (G || S(U) === !1) || !we && (!z || S(U)) && (be || w(U) === !1) || j && U.req && U.aborted) && t.nextTick(he);
2318
2318
  let ye = () => {
2319
- M = se, $.removeListener("aborted", te), $.removeListener("complete", Q), $.removeListener("abort", te), $.removeListener("request", fe), $.req && $.req.removeListener("finish", Q), $.removeListener("end", ne), $.removeListener("close", ne), $.removeListener("finish", Q), $.removeListener("end", oe), $.removeListener("error", N), $.removeListener("close", te);
2319
+ M = se, U.removeListener("aborted", te), U.removeListener("complete", X), U.removeListener("abort", te), U.removeListener("request", fe), U.req && U.req.removeListener("finish", X), U.removeListener("end", ne), U.removeListener("close", ne), U.removeListener("finish", X), U.removeListener("end", oe), U.removeListener("error", N), U.removeListener("close", te);
2320
2320
  };
2321
- if (X.signal && !q) {
2321
+ if (Q.signal && !q) {
2322
2322
  let H = () => {
2323
2323
  let me = M;
2324
- ye(), me.call($, new r(void 0, { cause: X.signal.reason }));
2324
+ ye(), me.call(U, new r(void 0, { cause: Q.signal.reason }));
2325
2325
  };
2326
- if (X.signal.aborted) t.nextTick(H);
2326
+ if (Q.signal.aborted) t.nextTick(H);
2327
2327
  else {
2328
2328
  L = L || Je().addAbortListener;
2329
- let me = L(X.signal, H), ve = M;
2329
+ let me = L(Q.signal, H), ve = M;
2330
2330
  M = l((...ae) => {
2331
- me[b](), ve.apply($, ae);
2331
+ me[b](), ve.apply(U, ae);
2332
2332
  });
2333
2333
  }
2334
2334
  }
2335
2335
  return ye;
2336
2336
  }
2337
- function W($, X, M) {
2337
+ function W(U, Q, M) {
2338
2338
  let J = !1, ge = se;
2339
- if (X.signal) if (ge = () => {
2340
- J = !0, M.call($, new r(void 0, { cause: X.signal.reason }));
2341
- }, X.signal.aborted) t.nextTick(ge);
2339
+ if (Q.signal) if (ge = () => {
2340
+ J = !0, M.call(U, new r(void 0, { cause: Q.signal.reason }));
2341
+ }, Q.signal.aborted) t.nextTick(ge);
2342
2342
  else {
2343
2343
  L = L || Je().addAbortListener;
2344
- let we = L(X.signal, ge), K = M;
2344
+ let we = L(Q.signal, ge), K = M;
2345
2345
  M = l((...j) => {
2346
- we[b](), K.apply($, j);
2346
+ we[b](), K.apply(U, j);
2347
2347
  });
2348
2348
  }
2349
2349
  let re = (...we) => {
2350
- J || t.nextTick(() => M.apply($, we));
2350
+ J || t.nextTick(() => M.apply(U, we));
2351
2351
  };
2352
- return h($[F].promise, re, re), se;
2352
+ return h(U[F].promise, re, re), se;
2353
2353
  }
2354
- function ee($, X) {
2354
+ function ee(U, Q) {
2355
2355
  var M;
2356
2356
  let J = !1;
2357
- return X === null && (X = a), (M = X) !== null && M !== void 0 && M.cleanup && (p(X.cleanup, "cleanup"), J = X.cleanup), new g((ge, re) => {
2358
- let we = Y($, X, (K) => {
2357
+ return Q === null && (Q = a), (M = Q) !== null && M !== void 0 && M.cleanup && (p(Q.cleanup, "cleanup"), J = Q.cleanup), new g((ge, re) => {
2358
+ let we = Y(U, Q, (K) => {
2359
2359
  J && we(), K ? re(K) : ge();
2360
2360
  });
2361
2361
  });
@@ -2443,10 +2443,10 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2443
2443
  function O(T, F) {
2444
2444
  T.emit("error", F), t.nextTick(P, T);
2445
2445
  }
2446
- function U(T, F) {
2446
+ function $(T, F) {
2447
2447
  !T || l(T) || (!F && !c(T) && (F = new n()), u(T) ? (T.socket = null, T.destroy(F)) : I(T) ? T.abort() : I(T.req) ? T.req.abort() : typeof T.destroy == "function" ? T.destroy(F) : typeof T.close == "function" ? T.close() : F ? t.nextTick(O, T, F) : t.nextTick(P, T), T.destroyed || (T[a] = !0));
2448
2448
  }
2449
- e.exports = { construct: v, destroyer: U, destroy: h, undestroy: k, errorOrDestroy: _ };
2449
+ e.exports = { construct: v, destroyer: $, destroy: h, undestroy: k, errorOrDestroy: _ };
2450
2450
  }), xs = pe((s, e) => {
2451
2451
  le(), ue(), ce();
2452
2452
  var { ArrayIsArray: t, ObjectSetPrototypeOf: r } = Ue(), { EventEmitter: i } = (Ut(), Re(Pt));
@@ -2835,10 +2835,10 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2835
2835
  e.exports = ae, ae.ReadableState = ve;
2836
2836
  var { EventEmitter: b } = (Ut(), Re(Pt)), { Stream: y, prependListener: w } = xs(), { Buffer: m } = (qe(), Re(Fe)), { addAbortSignal: k } = Zr(), _ = Ot(), v = Je().debuglog("stream", (C) => {
2837
2837
  v = C;
2838
- }), S = Pc(), E = Xt(), { getHighWaterMark: I, getDefaultHighWaterMark: P } = en(), { aggregateTwoErrors: O, codes: { ERR_INVALID_ARG_TYPE: U, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: F, ERR_STREAM_PUSH_AFTER_EOF: L, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: D }, AbortError: se } = Ye(), { validateObject: Y } = mr(), W = h("kPaused"), { StringDecoder: ee } = Lc(), $ = Ma();
2838
+ }), S = Pc(), E = Xt(), { getHighWaterMark: I, getDefaultHighWaterMark: P } = en(), { aggregateTwoErrors: O, codes: { ERR_INVALID_ARG_TYPE: $, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: F, ERR_STREAM_PUSH_AFTER_EOF: L, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: D }, AbortError: se } = Ye(), { validateObject: Y } = mr(), W = h("kPaused"), { StringDecoder: ee } = Lc(), U = Ma();
2839
2839
  c(ae.prototype, y.prototype), c(ae, y);
2840
- var X = () => {
2841
- }, { errorOrDestroy: M } = E, J = 1, ge = 2, re = 4, we = 8, K = 16, j = 32, ne = 64, z = 128, G = 256, Q = 512, be = 1024, oe = 2048, N = 4096, q = 8192, te = 16384, he = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
2840
+ var Q = () => {
2841
+ }, { errorOrDestroy: M } = E, J = 1, ge = 2, re = 4, we = 8, K = 16, j = 32, ne = 64, z = 128, G = 256, X = 512, be = 1024, oe = 2048, N = 4096, q = 8192, te = 16384, he = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
2842
2842
  function me(C) {
2843
2843
  return { enumerable: !1, get() {
2844
2844
  return (this.state & C) !== 0;
@@ -2846,7 +2846,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2846
2846
  R ? this.state |= C : this.state &= ~C;
2847
2847
  } };
2848
2848
  }
2849
- a(ve.prototype, { objectMode: me(J), ended: me(ge), endEmitted: me(re), reading: me(we), constructed: me(K), sync: me(j), needReadable: me(ne), emittedReadable: me(z), readableListening: me(G), resumeScheduled: me(Q), errorEmitted: me(be), emitClose: me(oe), autoDestroy: me(N), destroyed: me(q), closed: me(te), closeEmitted: me(he), multiAwaitDrain: me(fe), readingMore: me(ye), dataEmitted: me(H) });
2849
+ a(ve.prototype, { objectMode: me(J), ended: me(ge), endEmitted: me(re), reading: me(we), constructed: me(K), sync: me(j), needReadable: me(ne), emittedReadable: me(z), readableListening: me(G), resumeScheduled: me(X), errorEmitted: me(be), emitClose: me(oe), autoDestroy: me(N), destroyed: me(q), closed: me(te), closeEmitted: me(he), multiAwaitDrain: me(fe), readingMore: me(ye), dataEmitted: me(H) });
2850
2850
  function ve(C, R, ke) {
2851
2851
  typeof ke != "boolean" && (ke = R instanceof yt()), this.state = oe | N | K | j, C && C.objectMode && (this.state |= J), ke && C && C.readableObjectMode && (this.state |= J), this.highWaterMark = C ? I(this, C, "readableHighWaterMark", ke) : P(!1), this.buffer = new S(), this.length = 0, this.pipes = [], this.flowing = null, this[W] = null, C && C.emitClose === !1 && (this.state &= ~oe), C && C.autoDestroy === !1 && (this.state &= ~N), this.errored = null, this.defaultEncoding = C && C.defaultEncoding || "utf8", this.awaitDrainWriters = null, this.decoder = null, this.encoding = null, C && C.encoding && (this.decoder = new ee(C.encoding), this.encoding = C.encoding);
2852
2852
  }
@@ -2872,7 +2872,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
2872
2872
  function Le(C, R, ke, Se) {
2873
2873
  v("readableAddChunk", R);
2874
2874
  let Ae = C._readableState, Be;
2875
- if ((Ae.state & J) === 0 && (typeof R == "string" ? (ke = ke || Ae.defaultEncoding, Ae.encoding !== ke && (Se && Ae.encoding ? R = m.from(R, ke).toString(Ae.encoding) : (R = m.from(R, ke), ke = ""))) : R instanceof m ? ke = "" : y._isUint8Array(R) ? (R = y._uint8ArrayToBuffer(R), ke = "") : R != null && (Be = new U("chunk", ["string", "Buffer", "Uint8Array"], R))), Be) M(C, Be);
2875
+ if ((Ae.state & J) === 0 && (typeof R == "string" ? (ke = ke || Ae.defaultEncoding, Ae.encoding !== ke && (Se && Ae.encoding ? R = m.from(R, ke).toString(Ae.encoding) : (R = m.from(R, ke), ke = ""))) : R instanceof m ? ke = "" : y._isUint8Array(R) ? (R = y._uint8ArrayToBuffer(R), ke = "") : R != null && (Be = new $("chunk", ["string", "Buffer", "Uint8Array"], R))), Be) M(C, Be);
2876
2876
  else if (R === null) Ae.state &= ~we, Z(C, Ae);
2877
2877
  else if ((Ae.state & J) !== 0 || R && R.length > 0) if (Se) if ((Ae.state & re) !== 0) M(C, new D());
2878
2878
  else {
@@ -3083,13 +3083,13 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3083
3083
  return ke.stream = C, ke;
3084
3084
  }
3085
3085
  async function* ot(C, R) {
3086
- let ke = X;
3086
+ let ke = Q;
3087
3087
  function Se(Ge) {
3088
- this === C ? (ke(), ke = X) : ke = Ge;
3088
+ this === C ? (ke(), ke = Q) : ke = Ge;
3089
3089
  }
3090
3090
  C.on("readable", Se);
3091
3091
  let Ae, Be = _(C, { writable: !1 }, (Ge) => {
3092
- Ae = Ge ? O(Ae, Ge) : null, ke(), ke = X;
3092
+ Ae = Ge ? O(Ae, Ge) : null, ke(), ke = Q;
3093
3093
  });
3094
3094
  try {
3095
3095
  for (; ; ) {
@@ -3169,7 +3169,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3169
3169
  C.writable && !C.writableEnded && !C.destroyed && C.end();
3170
3170
  }
3171
3171
  ae.from = function(C, R) {
3172
- return $(ae, C, R);
3172
+ return U(ae, C, R);
3173
3173
  };
3174
3174
  var Ht;
3175
3175
  function tr() {
@@ -3189,7 +3189,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3189
3189
  le(), ue(), ce();
3190
3190
  var t = Bt(), { ArrayPrototypeSlice: r, Error: i, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: o, ObjectDefineProperties: a, ObjectSetPrototypeOf: l, StringPrototypeToLowerCase: c, Symbol: u, SymbolHasInstance: d } = Ue();
3191
3191
  e.exports = Y, Y.WritableState = D;
3192
- var { EventEmitter: p } = (Ut(), Re(Pt)), g = xs().Stream, { Buffer: h } = (qe(), Re(Fe)), b = Xt(), { addAbortSignal: y } = Zr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = en(), { ERR_INVALID_ARG_TYPE: k, ERR_METHOD_NOT_IMPLEMENTED: _, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: S, ERR_STREAM_DESTROYED: E, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: P, ERR_STREAM_WRITE_AFTER_END: O, ERR_UNKNOWN_ENCODING: U } = Ye().codes, { errorOrDestroy: T } = b;
3192
+ var { EventEmitter: p } = (Ut(), Re(Pt)), g = xs().Stream, { Buffer: h } = (qe(), Re(Fe)), b = Xt(), { addAbortSignal: y } = Zr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = en(), { ERR_INVALID_ARG_TYPE: k, ERR_METHOD_NOT_IMPLEMENTED: _, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: S, ERR_STREAM_DESTROYED: E, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: P, ERR_STREAM_WRITE_AFTER_END: O, ERR_UNKNOWN_ENCODING: $ } = Ye().codes, { errorOrDestroy: T } = b;
3193
3193
  l(Y.prototype, g.prototype), l(Y, g);
3194
3194
  function F() {
3195
3195
  }
@@ -3225,7 +3225,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3225
3225
  if (typeof te == "function") he = te, te = fe.defaultEncoding;
3226
3226
  else {
3227
3227
  if (!te) te = fe.defaultEncoding;
3228
- else if (te !== "buffer" && !h.isEncoding(te)) throw new U(te);
3228
+ else if (te !== "buffer" && !h.isEncoding(te)) throw new $(te);
3229
3229
  typeof he != "function" && (he = F);
3230
3230
  }
3231
3231
  if (q === null) throw new P();
@@ -3244,7 +3244,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3244
3244
  let N = this._writableState;
3245
3245
  N.corked && (N.corked--, N.writing || we(this, N));
3246
3246
  }, Y.prototype.setDefaultEncoding = function(N) {
3247
- if (typeof N == "string" && (N = c(N)), !h.isEncoding(N)) throw new U(N);
3247
+ if (typeof N == "string" && (N = c(N)), !h.isEncoding(N)) throw new $(N);
3248
3248
  return this._writableState.defaultEncoding = N, this;
3249
3249
  };
3250
3250
  function ee(N, q, te, he, fe) {
@@ -3253,10 +3253,10 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3253
3253
  let H = q.length < q.highWaterMark;
3254
3254
  return H || (q.needDrain = !0), q.writing || q.corked || q.errored || !q.constructed ? (q.buffered.push({ chunk: te, encoding: he, callback: fe }), q.allBuffers && he !== "buffer" && (q.allBuffers = !1), q.allNoop && fe !== F && (q.allNoop = !1)) : (q.writelen = ye, q.writecb = fe, q.writing = !0, q.sync = !0, N._write(te, he, q.onwrite), q.sync = !1), H && !q.errored && !q.destroyed;
3255
3255
  }
3256
- function $(N, q, te, he, fe, ye, H) {
3256
+ function U(N, q, te, he, fe, ye, H) {
3257
3257
  q.writelen = he, q.writecb = H, q.writing = !0, q.sync = !0, q.destroyed ? q.onwrite(new E("write")) : te ? N._writev(fe, q.onwrite) : N._write(fe, ye, q.onwrite), q.sync = !1;
3258
3258
  }
3259
- function X(N, q, te, he) {
3259
+ function Q(N, q, te, he) {
3260
3260
  --q.pendingcb, he(te), re(q), T(N, te);
3261
3261
  }
3262
3262
  function M(N, q) {
@@ -3265,7 +3265,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3265
3265
  T(N, new v());
3266
3266
  return;
3267
3267
  }
3268
- te.writing = !1, te.writecb = null, te.length -= te.writelen, te.writelen = 0, q ? (q.stack, te.errored || (te.errored = q), N._readableState && !N._readableState.errored && (N._readableState.errored = q), he ? t.nextTick(X, N, te, q, fe) : X(N, te, q, fe)) : (te.buffered.length > te.bufferedIndex && we(N, te), he ? te.afterWriteTickInfo !== null && te.afterWriteTickInfo.cb === fe ? te.afterWriteTickInfo.count++ : (te.afterWriteTickInfo = { count: 1, cb: fe, stream: N, state: te }, t.nextTick(J, te.afterWriteTickInfo)) : ge(N, te, 1, fe));
3268
+ te.writing = !1, te.writecb = null, te.length -= te.writelen, te.writelen = 0, q ? (q.stack, te.errored || (te.errored = q), N._readableState && !N._readableState.errored && (N._readableState.errored = q), he ? t.nextTick(Q, N, te, q, fe) : Q(N, te, q, fe)) : (te.buffered.length > te.bufferedIndex && we(N, te), he ? te.afterWriteTickInfo !== null && te.afterWriteTickInfo.cb === fe ? te.afterWriteTickInfo.count++ : (te.afterWriteTickInfo = { count: 1, cb: fe, stream: N, state: te }, t.nextTick(J, te.afterWriteTickInfo)) : ge(N, te, 1, fe));
3269
3269
  }
3270
3270
  function J({ stream: N, state: q, count: te, cb: he }) {
3271
3271
  return q.afterWriteTickInfo = null, ge(N, q, te, he);
@@ -3298,13 +3298,13 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3298
3298
  let me = q.allNoop ? F : (ae) => {
3299
3299
  for (let Le = H; Le < te.length; ++Le) te[Le].callback(ae);
3300
3300
  }, ve = q.allNoop && H === 0 ? te : r(te, H);
3301
- ve.allBuffers = q.allBuffers, $(N, q, !0, q.length, ve, "", me), se(q);
3301
+ ve.allBuffers = q.allBuffers, U(N, q, !0, q.length, ve, "", me), se(q);
3302
3302
  } else {
3303
3303
  do {
3304
3304
  let { chunk: me, encoding: ve, callback: ae } = te[H];
3305
3305
  te[H++] = null;
3306
3306
  let Le = fe ? 1 : me.length;
3307
- $(N, q, !1, Le, me, ve, ae);
3307
+ U(N, q, !1, Le, me, ve, ae);
3308
3308
  } while (H < te.length && !q.writing);
3309
3309
  H === te.length ? se(q) : H > 256 ? (te.splice(0, H), q.bufferedIndex = 0) : q.bufferedIndex = H;
3310
3310
  }
@@ -3397,10 +3397,10 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3397
3397
  } }, writableAborted: { __proto__: null, enumerable: !1, get: function() {
3398
3398
  return !!(this._writableState.writable !== !1 && (this._writableState.destroyed || this._writableState.errored) && !this._writableState.finished);
3399
3399
  } } });
3400
- var Q = b.destroy;
3400
+ var X = b.destroy;
3401
3401
  Y.prototype.destroy = function(N, q) {
3402
3402
  let te = this._writableState;
3403
- return !te.destroyed && (te.bufferedIndex < te.buffered.length || te[L].length) && t.nextTick(re, te), Q.call(this, N, q), this;
3403
+ return !te.destroyed && (te.bufferedIndex < te.buffered.length || te[L].length) && t.nextTick(re, te), X.call(this, N, q), this;
3404
3404
  }, Y.prototype._undestroy = b.undestroy, Y.prototype._destroy = function(N, q) {
3405
3405
  q(N);
3406
3406
  }, Y.prototype[p.captureRejectionSymbol] = function(N) {
@@ -3421,7 +3421,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3421
3421
  return L instanceof E;
3422
3422
  } : function(L) {
3423
3423
  return !1;
3424
- }, P = globalThis.AbortController || fr().AbortController, { FunctionPrototypeCall: O } = Ue(), U = class extends m {
3424
+ }, P = globalThis.AbortController || fr().AbortController, { FunctionPrototypeCall: O } = Ue(), $ = class extends m {
3425
3425
  constructor(L) {
3426
3426
  super(L), L?.readable === !1 && (this._readableState.readable = !1, this._readableState.ended = !0, this._readableState.endEmitted = !0), L?.writable === !1 && (this._writableState.writable = !1, this._writableState.ending = !0, this._writableState.ended = !0, this._writableState.finished = !0);
3427
3427
  }
@@ -3434,8 +3434,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3434
3434
  if (d(D)) return F({ readable: k.fromWeb(D) });
3435
3435
  if (p(D)) return F({ writable: _.fromWeb(D) });
3436
3436
  if (typeof D == "function") {
3437
- let { value: W, write: ee, final: $, destroy: X } = T(D);
3438
- if (o(W)) return S(U, W, { objectMode: !0, write: ee, final: $, destroy: X });
3437
+ let { value: W, write: ee, final: U, destroy: Q } = T(D);
3438
+ if (o(W)) return S($, W, { objectMode: !0, write: ee, final: U, destroy: Q });
3439
3439
  let M = W?.then;
3440
3440
  if (typeof M == "function") {
3441
3441
  let J, ge = O(M, W, (re) => {
@@ -3443,21 +3443,21 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3443
3443
  }, (re) => {
3444
3444
  w(J, re);
3445
3445
  });
3446
- return J = new U({ objectMode: !0, readable: !1, write: ee, final(re) {
3447
- $(async () => {
3446
+ return J = new $({ objectMode: !0, readable: !1, write: ee, final(re) {
3447
+ U(async () => {
3448
3448
  try {
3449
3449
  await ge, t.nextTick(re, null);
3450
3450
  } catch (we) {
3451
3451
  t.nextTick(re, we);
3452
3452
  }
3453
3453
  });
3454
- }, destroy: X });
3454
+ }, destroy: Q });
3455
3455
  }
3456
3456
  throw new y("Iterable, AsyncIterable or AsyncFunction", se, W);
3457
3457
  }
3458
3458
  if (I(D)) return L(D.arrayBuffer());
3459
- if (o(D)) return S(U, D, { objectMode: !0, writable: !1 });
3460
- if (d(D?.readable) && p(D?.writable)) return U.fromWeb(D);
3459
+ if (o(D)) return S($, D, { objectMode: !0, writable: !1 });
3460
+ if (d(D?.readable) && p(D?.writable)) return $.fromWeb(D);
3461
3461
  if (typeof D?.writable == "object" || typeof D?.readable == "object") {
3462
3462
  let W = D != null && D.readable ? l(D?.readable) ? D?.readable : L(D.readable) : void 0, ee = D != null && D.writable ? c(D?.writable) ? D?.writable : L(D.writable) : void 0;
3463
3463
  return F({ readable: W, writable: ee });
@@ -3469,7 +3469,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3469
3469
  ee != null && W.push(ee), W.push(null);
3470
3470
  }, (ee) => {
3471
3471
  w(W, ee);
3472
- }), W = new U({ objectMode: !0, writable: !1, read() {
3472
+ }), W = new $({ objectMode: !0, writable: !1, read() {
3473
3473
  } });
3474
3474
  }
3475
3475
  throw new b(se, ["Blob", "ReadableStream", "WritableStream", "Stream", "Iterable", "AsyncIterable", "Function", "{ readable, writable } pair", "Promise"], D);
@@ -3480,49 +3480,49 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3480
3480
  for (; ; ) {
3481
3481
  let ee = D;
3482
3482
  D = null;
3483
- let { chunk: $, done: X, cb: M } = await ee;
3484
- if (t.nextTick(M), X) return;
3483
+ let { chunk: U, done: Q, cb: M } = await ee;
3484
+ if (t.nextTick(M), Q) return;
3485
3485
  if (W.aborted) throw new h(void 0, { cause: W.reason });
3486
- ({ promise: D, resolve: se } = v()), yield $;
3486
+ ({ promise: D, resolve: se } = v()), yield U;
3487
3487
  }
3488
- })(), { signal: W }), write(ee, $, X) {
3488
+ })(), { signal: W }), write(ee, U, Q) {
3489
3489
  let M = se;
3490
- se = null, M({ chunk: ee, done: !1, cb: X });
3490
+ se = null, M({ chunk: ee, done: !1, cb: Q });
3491
3491
  }, final(ee) {
3492
- let $ = se;
3493
- se = null, $({ done: !0, cb: ee });
3494
- }, destroy(ee, $) {
3495
- Y.abort(), $(ee);
3492
+ let U = se;
3493
+ se = null, U({ done: !0, cb: ee });
3494
+ }, destroy(ee, U) {
3495
+ Y.abort(), U(ee);
3496
3496
  } };
3497
3497
  }
3498
3498
  function F(L) {
3499
- let D = L.readable && typeof L.readable.read != "function" ? k.wrap(L.readable) : L.readable, se = L.writable, Y = !!i(D), W = !!n(se), ee, $, X, M, J;
3499
+ let D = L.readable && typeof L.readable.read != "function" ? k.wrap(L.readable) : L.readable, se = L.writable, Y = !!i(D), W = !!n(se), ee, U, Q, M, J;
3500
3500
  function ge(re) {
3501
3501
  let we = M;
3502
3502
  M = null, we ? we(re) : re && J.destroy(re);
3503
3503
  }
3504
- return J = new U({ readableObjectMode: !!(D != null && D.readableObjectMode), writableObjectMode: !!(se != null && se.writableObjectMode), readable: Y, writable: W }), W && (g(se, (re) => {
3504
+ return J = new $({ readableObjectMode: !!(D != null && D.readableObjectMode), writableObjectMode: !!(se != null && se.writableObjectMode), readable: Y, writable: W }), W && (g(se, (re) => {
3505
3505
  W = !1, re && w(D, re), ge(re);
3506
3506
  }), J._write = function(re, we, K) {
3507
3507
  se.write(re, we) ? K() : ee = K;
3508
3508
  }, J._final = function(re) {
3509
- se.end(), $ = re;
3509
+ se.end(), U = re;
3510
3510
  }, se.on("drain", function() {
3511
3511
  if (ee) {
3512
3512
  let re = ee;
3513
3513
  ee = null, re();
3514
3514
  }
3515
3515
  }), se.on("finish", function() {
3516
- if ($) {
3517
- let re = $;
3518
- $ = null, re();
3516
+ if (U) {
3517
+ let re = U;
3518
+ U = null, re();
3519
3519
  }
3520
3520
  })), Y && (g(D, (re) => {
3521
3521
  Y = !1, re && w(D, re), ge(re);
3522
3522
  }), D.on("readable", function() {
3523
- if (X) {
3524
- let re = X;
3525
- X = null, re();
3523
+ if (Q) {
3524
+ let re = Q;
3525
+ Q = null, re();
3526
3526
  }
3527
3527
  }), D.on("end", function() {
3528
3528
  J.push(null);
@@ -3530,13 +3530,13 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3530
3530
  for (; ; ) {
3531
3531
  let re = D.read();
3532
3532
  if (re === null) {
3533
- X = J._read;
3533
+ Q = J._read;
3534
3534
  return;
3535
3535
  }
3536
3536
  if (!J.push(re)) return;
3537
3537
  }
3538
3538
  }), J._destroy = function(re, we) {
3539
- !re && M !== null && (re = new h()), X = null, ee = null, $ = null, M === null ? we(re) : (M = we, w(se, re), w(D, re));
3539
+ !re && M !== null && (re = new h()), Q = null, ee = null, U = null, M === null ? we(re) : (M = we, w(se, re), w(D, re));
3540
3540
  }, J;
3541
3541
  }
3542
3542
  }), yt = pe((s, e) => {
@@ -3630,7 +3630,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3630
3630
  };
3631
3631
  }), Ss = pe((s, e) => {
3632
3632
  le(), ue(), ce();
3633
- var t = Bt(), { ArrayIsArray: r, Promise: i, SymbolAsyncIterator: n, SymbolDispose: o } = Ue(), a = Ot(), { once: l } = Je(), c = Xt(), u = yt(), { aggregateTwoErrors: d, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: g, ERR_MISSING_ARGS: h, ERR_STREAM_DESTROYED: b, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = Ye(), { validateFunction: m, validateAbortSignal: k } = mr(), { isIterable: _, isReadable: v, isReadableNodeStream: S, isNodeStream: E, isTransformStream: I, isWebStream: P, isReadableStream: O, isReadableFinished: U } = wt(), T = globalThis.AbortController || fr().AbortController, F, L, D;
3633
+ var t = Bt(), { ArrayIsArray: r, Promise: i, SymbolAsyncIterator: n, SymbolDispose: o } = Ue(), a = Ot(), { once: l } = Je(), c = Xt(), u = yt(), { aggregateTwoErrors: d, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: g, ERR_MISSING_ARGS: h, ERR_STREAM_DESTROYED: b, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = Ye(), { validateFunction: m, validateAbortSignal: k } = mr(), { isIterable: _, isReadable: v, isReadableNodeStream: S, isNodeStream: E, isTransformStream: I, isWebStream: P, isReadableStream: O, isReadableFinished: $ } = wt(), T = globalThis.AbortController || fr().AbortController, F, L, D;
3634
3634
  function se(re, we, K) {
3635
3635
  let j = !1;
3636
3636
  re.on("close", () => {
@@ -3654,13 +3654,13 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3654
3654
  async function* ee(re) {
3655
3655
  L || (L = tn()), yield* L.prototype[n].call(re);
3656
3656
  }
3657
- async function $(re, we, K, { end: j }) {
3657
+ async function U(re, we, K, { end: j }) {
3658
3658
  let ne, z = null, G = (oe) => {
3659
3659
  if (oe && (ne = oe), z) {
3660
3660
  let N = z;
3661
3661
  z = null, N();
3662
3662
  }
3663
- }, Q = () => new i((oe, N) => {
3663
+ }, X = () => new i((oe, N) => {
3664
3664
  ne ? N(ne) : z = () => {
3665
3665
  ne ? N(ne) : oe();
3666
3666
  };
@@ -3668,16 +3668,16 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3668
3668
  we.on("drain", G);
3669
3669
  let be = a(we, { readable: !1 }, G);
3670
3670
  try {
3671
- we.writableNeedDrain && await Q();
3672
- for await (let oe of re) we.write(oe) || await Q();
3673
- j && (we.end(), await Q()), K();
3671
+ we.writableNeedDrain && await X();
3672
+ for await (let oe of re) we.write(oe) || await X();
3673
+ j && (we.end(), await X()), K();
3674
3674
  } catch (oe) {
3675
3675
  K(ne !== oe ? d(ne, oe) : oe);
3676
3676
  } finally {
3677
3677
  be(), we.off("drain", G);
3678
3678
  }
3679
3679
  }
3680
- async function X(re, we, K, { end: j }) {
3680
+ async function Q(re, we, K, { end: j }) {
3681
3681
  I(we) && (we = we.writable);
3682
3682
  let ne = we.getWriter();
3683
3683
  try {
@@ -3699,12 +3699,12 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3699
3699
  if (re.length === 1 && r(re[0]) && (re = re[0]), re.length < 2) throw new h("streams");
3700
3700
  let j = new T(), ne = j.signal, z = K?.signal, G = [];
3701
3701
  k(z, "options.signal");
3702
- function Q() {
3702
+ function X() {
3703
3703
  fe(new w());
3704
3704
  }
3705
3705
  D = D || Je().addAbortListener;
3706
3706
  let be;
3707
- z && (be = D(z, Q));
3707
+ z && (be = D(z, X));
3708
3708
  let oe, N, q = [], te = 0;
3709
3709
  function he(ve) {
3710
3710
  fe(ve, --te === 0);
@@ -3750,10 +3750,10 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3750
3750
  }, (V) => {
3751
3751
  B.destroy(V), t.nextTick(he, V);
3752
3752
  });
3753
- else if (_(ye, !0)) te++, $(ye, B, he, { end: x });
3753
+ else if (_(ye, !0)) te++, U(ye, B, he, { end: x });
3754
3754
  else if (O(ye) || I(ye)) {
3755
3755
  let V = ye.readable || ye;
3756
- te++, $(V, B, he, { end: x });
3756
+ te++, U(V, B, he, { end: x });
3757
3757
  } else throw new g("AsyncIterable or Promise", "destination", ye);
3758
3758
  ye = B;
3759
3759
  let { destroy: de, cleanup: xe } = se(ye, !1, !0);
@@ -3766,19 +3766,19 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3766
3766
  v(ae) && A && G.push(B);
3767
3767
  } else if (I(ye) || O(ye)) {
3768
3768
  let B = ye.readable || ye;
3769
- te++, $(B, ae, he, { end: x });
3770
- } else if (_(ye)) te++, $(ye, ae, he, { end: x });
3769
+ te++, U(B, ae, he, { end: x });
3770
+ } else if (_(ye)) te++, U(ye, ae, he, { end: x });
3771
3771
  else throw new p("val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ye);
3772
3772
  ye = ae;
3773
3773
  } else if (P(ae)) {
3774
- if (S(ye)) te++, X(W(ye), ae, he, { end: x });
3775
- else if (O(ye) || _(ye)) te++, X(ye, ae, he, { end: x });
3776
- else if (I(ye)) te++, X(ye.readable, ae, he, { end: x });
3774
+ if (S(ye)) te++, Q(W(ye), ae, he, { end: x });
3775
+ else if (O(ye) || _(ye)) te++, Q(ye, ae, he, { end: x });
3776
+ else if (I(ye)) te++, Q(ye.readable, ae, he, { end: x });
3777
3777
  else throw new p("val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ye);
3778
3778
  ye = ae;
3779
3779
  } else ye = u.from(ae);
3780
3780
  }
3781
- return (ne != null && ne.aborted || z != null && z.aborted) && t.nextTick(Q), ye;
3781
+ return (ne != null && ne.aborted || z != null && z.aborted) && t.nextTick(X), ye;
3782
3782
  }
3783
3783
  function ge(re, we, K, { end: j }) {
3784
3784
  let ne = !1;
@@ -3788,7 +3788,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3788
3788
  let z = function() {
3789
3789
  ne = !0, we.end();
3790
3790
  };
3791
- U(re) ? t.nextTick(z) : re.once("end", z);
3791
+ $(re) ? t.nextTick(z) : re.once("end", z);
3792
3792
  } else K();
3793
3793
  return a(re, { readable: !0, writable: !1 }, (z) => {
3794
3794
  let G = re._readableState;
@@ -3814,10 +3814,10 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3814
3814
  let m, k, _, v, S;
3815
3815
  function E(T) {
3816
3816
  let F = v;
3817
- v = null, F ? F(T) : T ? S.destroy(T) : !U && !O && S.destroy();
3817
+ v = null, F ? F(T) : T ? S.destroy(T) : !$ && !O && S.destroy();
3818
3818
  }
3819
- let I = y[0], P = t(y, E), O = !!(a(I) || u(I) || c(I)), U = !!(o(P) || d(P) || c(P));
3820
- if (S = new r({ writableObjectMode: !!(I != null && I.writableObjectMode), readableObjectMode: !!(P != null && P.readableObjectMode), writable: O, readable: U }), O) {
3819
+ let I = y[0], P = t(y, E), O = !!(a(I) || u(I) || c(I)), $ = !!(o(P) || d(P) || c(P));
3820
+ if (S = new r({ writableObjectMode: !!(I != null && I.writableObjectMode), readableObjectMode: !!(P != null && P.readableObjectMode), writable: O, readable: $ }), O) {
3821
3821
  if (n(I)) S._write = function(F, L, D) {
3822
3822
  I.write(F, L) ? D() : m = D;
3823
3823
  }, S._final = function(F) {
@@ -3854,7 +3854,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3854
3854
  }
3855
3855
  });
3856
3856
  }
3857
- if (U) {
3857
+ if ($) {
3858
3858
  if (n(P)) P.on("readable", function() {
3859
3859
  if (_) {
3860
3860
  let T = _;
@@ -3894,19 +3894,19 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3894
3894
  };
3895
3895
  }), Nc = pe((s, e) => {
3896
3896
  le(), ue(), ce();
3897
- var t = globalThis.AbortController || fr().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: i, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: o }, AbortError: a } = Ye(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = mr(), d = Ue().Symbol("kWeak"), p = Ue().Symbol("kResistStopPropagation"), { finished: g } = Ot(), h = ja(), { addAbortSignalNoValidate: b } = Zr(), { isWritable: y, isNodeStream: w } = wt(), { deprecate: m } = Je(), { ArrayPrototypePush: k, Boolean: _, MathFloor: v, Number: S, NumberIsNaN: E, Promise: I, PromiseReject: P, PromiseResolve: O, PromisePrototypeThen: U, Symbol: T } = Ue(), F = T("kEmpty"), L = T("kEof");
3897
+ var t = globalThis.AbortController || fr().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: i, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: o }, AbortError: a } = Ye(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = mr(), d = Ue().Symbol("kWeak"), p = Ue().Symbol("kResistStopPropagation"), { finished: g } = Ot(), h = ja(), { addAbortSignalNoValidate: b } = Zr(), { isWritable: y, isNodeStream: w } = wt(), { deprecate: m } = Je(), { ArrayPrototypePush: k, Boolean: _, MathFloor: v, Number: S, NumberIsNaN: E, Promise: I, PromiseReject: P, PromiseResolve: O, PromisePrototypeThen: $, Symbol: T } = Ue(), F = T("kEmpty"), L = T("kEof");
3898
3898
  function D(z, G) {
3899
3899
  if (G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal"), w(z) && !y(z)) throw new r("stream", z, "must be writable");
3900
- let Q = h(this, z);
3901
- return G != null && G.signal && b(G.signal, Q), Q;
3900
+ let X = h(this, z);
3901
+ return G != null && G.signal && b(G.signal, X), X;
3902
3902
  }
3903
3903
  function se(z, G) {
3904
3904
  if (typeof z != "function") throw new i("fn", ["Function", "AsyncFunction"], z);
3905
3905
  G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal");
3906
- let Q = 1;
3907
- G?.concurrency != null && (Q = v(G.concurrency));
3908
- let be = Q - 1;
3909
- return G?.highWaterMark != null && (be = v(G.highWaterMark)), c(Q, "options.concurrency", 1), c(be, "options.highWaterMark", 0), be += Q, (async function* () {
3906
+ let X = 1;
3907
+ G?.concurrency != null && (X = v(G.concurrency));
3908
+ let be = X - 1;
3909
+ return G?.highWaterMark != null && (be = v(G.highWaterMark)), c(X, "options.concurrency", 1), c(be, "options.highWaterMark", 0), be += X, (async function* () {
3910
3910
  let oe = Je().AbortSignalAny([G?.signal].filter(_)), N = this, q = [], te = { signal: oe }, he, fe, ye = !1, H = 0;
3911
3911
  function me() {
3912
3912
  ye = !0, ve();
@@ -3915,7 +3915,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3915
3915
  H -= 1, ae();
3916
3916
  }
3917
3917
  function ae() {
3918
- fe && !ye && H < Q && q.length < be && (fe(), fe = null);
3918
+ fe && !ye && H < X && q.length < be && (fe(), fe = null);
3919
3919
  }
3920
3920
  async function Le() {
3921
3921
  try {
@@ -3928,14 +3928,14 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3928
3928
  } catch (x) {
3929
3929
  f = P(x);
3930
3930
  }
3931
- H += 1, U(f, ve, me), q.push(f), he && (he(), he = null), !ye && (q.length >= be || H >= Q) && await new I((x) => {
3931
+ H += 1, $(f, ve, me), q.push(f), he && (he(), he = null), !ye && (q.length >= be || H >= X) && await new I((x) => {
3932
3932
  fe = x;
3933
3933
  });
3934
3934
  }
3935
3935
  q.push(L);
3936
3936
  } catch (f) {
3937
3937
  let x = P(f);
3938
- U(x, ve, me), q.push(x);
3938
+ $(x, ve, me), q.push(x);
3939
3939
  } finally {
3940
3940
  ye = !0, he && (he(), he = null);
3941
3941
  }
@@ -3962,62 +3962,62 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
3962
3962
  return z != null && u(z, "options"), z?.signal != null && l(z.signal, "options.signal"), (async function* () {
3963
3963
  let G = 0;
3964
3964
  for await (let be of this) {
3965
- var Q;
3966
- if (z != null && (Q = z.signal) !== null && Q !== void 0 && Q.aborted) throw new a({ cause: z.signal.reason });
3965
+ var X;
3966
+ if (z != null && (X = z.signal) !== null && X !== void 0 && X.aborted) throw new a({ cause: z.signal.reason });
3967
3967
  yield [G++, be];
3968
3968
  }
3969
3969
  }).call(this);
3970
3970
  }
3971
3971
  async function W(z, G = void 0) {
3972
- for await (let Q of M.call(this, z, G)) return !0;
3972
+ for await (let X of M.call(this, z, G)) return !0;
3973
3973
  return !1;
3974
3974
  }
3975
3975
  async function ee(z, G = void 0) {
3976
3976
  if (typeof z != "function") throw new i("fn", ["Function", "AsyncFunction"], z);
3977
- return !await W.call(this, async (...Q) => !await z(...Q), G);
3977
+ return !await W.call(this, async (...X) => !await z(...X), G);
3978
3978
  }
3979
- async function $(z, G) {
3980
- for await (let Q of M.call(this, z, G)) return Q;
3979
+ async function U(z, G) {
3980
+ for await (let X of M.call(this, z, G)) return X;
3981
3981
  }
3982
- async function X(z, G) {
3982
+ async function Q(z, G) {
3983
3983
  if (typeof z != "function") throw new i("fn", ["Function", "AsyncFunction"], z);
3984
- async function Q(be, oe) {
3984
+ async function X(be, oe) {
3985
3985
  return await z(be, oe), F;
3986
3986
  }
3987
- for await (let be of se.call(this, Q, G)) ;
3987
+ for await (let be of se.call(this, X, G)) ;
3988
3988
  }
3989
3989
  function M(z, G) {
3990
3990
  if (typeof z != "function") throw new i("fn", ["Function", "AsyncFunction"], z);
3991
- async function Q(be, oe) {
3991
+ async function X(be, oe) {
3992
3992
  return await z(be, oe) ? be : F;
3993
3993
  }
3994
- return se.call(this, Q, G);
3994
+ return se.call(this, X, G);
3995
3995
  }
3996
3996
  var J = class extends n {
3997
3997
  constructor() {
3998
3998
  super("reduce"), this.message = "Reduce of an empty stream requires an initial value";
3999
3999
  }
4000
4000
  };
4001
- async function ge(z, G, Q) {
4001
+ async function ge(z, G, X) {
4002
4002
  var be;
4003
4003
  if (typeof z != "function") throw new i("reducer", ["Function", "AsyncFunction"], z);
4004
- Q != null && u(Q, "options"), Q?.signal != null && l(Q.signal, "options.signal");
4004
+ X != null && u(X, "options"), X?.signal != null && l(X.signal, "options.signal");
4005
4005
  let oe = arguments.length > 1;
4006
- if (Q != null && (be = Q.signal) !== null && be !== void 0 && be.aborted) {
4007
- let fe = new a(void 0, { cause: Q.signal.reason });
4006
+ if (X != null && (be = X.signal) !== null && be !== void 0 && be.aborted) {
4007
+ let fe = new a(void 0, { cause: X.signal.reason });
4008
4008
  throw this.once("error", () => {
4009
4009
  }), await g(this.destroy(fe)), fe;
4010
4010
  }
4011
4011
  let N = new t(), q = N.signal;
4012
- if (Q != null && Q.signal) {
4012
+ if (X != null && X.signal) {
4013
4013
  let fe = { once: !0, [d]: this, [p]: !0 };
4014
- Q.signal.addEventListener("abort", () => N.abort(), fe);
4014
+ X.signal.addEventListener("abort", () => N.abort(), fe);
4015
4015
  }
4016
4016
  let te = !1;
4017
4017
  try {
4018
4018
  for await (let fe of this) {
4019
4019
  var he;
4020
- if (te = !0, Q != null && (he = Q.signal) !== null && he !== void 0 && he.aborted) throw new a();
4020
+ if (te = !0, X != null && (he = X.signal) !== null && he !== void 0 && he.aborted) throw new a();
4021
4021
  oe ? G = await z(G, fe, { signal: q }) : (G = fe, oe = !0);
4022
4022
  }
4023
4023
  if (!te && !oe) throw new J();
@@ -4030,16 +4030,16 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
4030
4030
  z != null && u(z, "options"), z?.signal != null && l(z.signal, "options.signal");
4031
4031
  let G = [];
4032
4032
  for await (let be of this) {
4033
- var Q;
4034
- if (z != null && (Q = z.signal) !== null && Q !== void 0 && Q.aborted) throw new a(void 0, { cause: z.signal.reason });
4033
+ var X;
4034
+ if (z != null && (X = z.signal) !== null && X !== void 0 && X.aborted) throw new a(void 0, { cause: z.signal.reason });
4035
4035
  k(G, be);
4036
4036
  }
4037
4037
  return G;
4038
4038
  }
4039
4039
  function we(z, G) {
4040
- let Q = se.call(this, z, G);
4040
+ let X = se.call(this, z, G);
4041
4041
  return (async function* () {
4042
- for await (let be of Q) yield* be;
4042
+ for await (let be of X) yield* be;
4043
4043
  }).call(this);
4044
4044
  }
4045
4045
  function K(z) {
@@ -4049,8 +4049,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
4049
4049
  }
4050
4050
  function j(z, G = void 0) {
4051
4051
  return G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal"), z = K(z), (async function* () {
4052
- var Q;
4053
- if (G != null && (Q = G.signal) !== null && Q !== void 0 && Q.aborted) throw new a();
4052
+ var X;
4053
+ if (G != null && (X = G.signal) !== null && X !== void 0 && X.aborted) throw new a();
4054
4054
  for await (let oe of this) {
4055
4055
  var be;
4056
4056
  if (G != null && (be = G.signal) !== null && be !== void 0 && be.aborted) throw new a();
@@ -4060,8 +4060,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
4060
4060
  }
4061
4061
  function ne(z, G = void 0) {
4062
4062
  return G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal"), z = K(z), (async function* () {
4063
- var Q;
4064
- if (G != null && (Q = G.signal) !== null && Q !== void 0 && Q.aborted) throw new a();
4063
+ var X;
4064
+ if (G != null && (X = G.signal) !== null && X !== void 0 && X.aborted) throw new a();
4065
4065
  for await (let oe of this) {
4066
4066
  var be;
4067
4067
  if (G != null && (be = G.signal) !== null && be !== void 0 && be.aborted) throw new a();
@@ -4069,7 +4069,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
4069
4069
  }
4070
4070
  }).call(this);
4071
4071
  }
4072
- e.exports.streamReturningOperators = { asIndexedPairs: m(Y, "readable.asIndexedPairs will be removed in a future version."), drop: j, filter: M, flatMap: we, map: se, take: ne, compose: D }, e.exports.promiseReturningOperators = { every: ee, forEach: X, reduce: ge, toArray: re, some: W, find: $ };
4072
+ e.exports.streamReturningOperators = { asIndexedPairs: m(Y, "readable.asIndexedPairs will be removed in a future version."), drop: j, filter: M, flatMap: we, map: se, take: ne, compose: D }, e.exports.promiseReturningOperators = { every: ee, forEach: Q, reduce: ge, toArray: re, some: W, find: U };
4073
4073
  }), Da = pe((s, e) => {
4074
4074
  le(), ue(), ce();
4075
4075
  var { ArrayPrototypePop: t, Promise: r } = Ue(), { isIterable: i, isNodeStream: n, isWebStream: o } = wt(), { pipelineImpl: a } = Ss(), { finished: l } = Ot();
@@ -4421,8 +4421,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
4421
4421
  E++;
4422
4422
  let O = n.formatters[P];
4423
4423
  if (typeof O == "function") {
4424
- let U = k[E];
4425
- I = O.call(_, U), k.splice(E, 1), E--;
4424
+ let $ = k[E];
4425
+ I = O.call(_, $), k.splice(E, 1), E--;
4426
4426
  }
4427
4427
  return I;
4428
4428
  }), n.formatArgs.call(_, k), (_.log || n.log).apply(_, k);
@@ -4950,7 +4950,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
4950
4950
  case "pingresp":
4951
4951
  return O(K, j);
4952
4952
  case "disconnect":
4953
- return U(K, j, ne);
4953
+ return $(K, j, ne);
4954
4954
  case "auth":
4955
4955
  return T(K, j, ne);
4956
4956
  default:
@@ -4966,21 +4966,21 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
4966
4966
  K.uncork();
4967
4967
  }
4968
4968
  function m(K, j, ne) {
4969
- let z = K || {}, G = z.protocolId || "MQTT", Q = z.protocolVersion || 4, be = z.will, oe = z.clean, N = z.keepalive || 0, q = z.clientId || "", te = z.username, he = z.password, fe = z.properties;
4969
+ let z = K || {}, G = z.protocolId || "MQTT", X = z.protocolVersion || 4, be = z.will, oe = z.clean, N = z.keepalive || 0, q = z.clientId || "", te = z.username, he = z.password, fe = z.properties;
4970
4970
  oe === void 0 && (oe = !0);
4971
4971
  let ye = 0;
4972
4972
  if (typeof G != "string" && !r.isBuffer(G)) return j.destroy(new Error("Invalid protocolId")), !1;
4973
- if (ye += G.length + 2, Q !== 3 && Q !== 4 && Q !== 5) return j.destroy(new Error("Invalid protocol version")), !1;
4974
- if (ye += 1, (typeof q == "string" || r.isBuffer(q)) && (q || Q >= 4) && (q || oe)) ye += r.byteLength(q) + 2;
4973
+ if (ye += G.length + 2, X !== 3 && X !== 4 && X !== 5) return j.destroy(new Error("Invalid protocol version")), !1;
4974
+ if (ye += 1, (typeof q == "string" || r.isBuffer(q)) && (q || X >= 4) && (q || oe)) ye += r.byteLength(q) + 2;
4975
4975
  else {
4976
- if (Q < 4) return j.destroy(new Error("clientId must be supplied before 3.1.1")), !1;
4976
+ if (X < 4) return j.destroy(new Error("clientId must be supplied before 3.1.1")), !1;
4977
4977
  if (oe * 1 === 0) return j.destroy(new Error("clientId must be given if cleanSession set to 0")), !1;
4978
4978
  }
4979
4979
  if (typeof N != "number" || N < 0 || N > 65535 || N % 1 !== 0) return j.destroy(new Error("Invalid keepalive")), !1;
4980
4980
  ye += 2, ye += 1;
4981
4981
  let H, me;
4982
- if (Q === 5) {
4983
- if (H = X(j, fe), !H) return !1;
4982
+ if (X === 5) {
4983
+ if (H = Q(j, fe), !H) return !1;
4984
4984
  ye += H.length;
4985
4985
  }
4986
4986
  if (be) {
@@ -4988,8 +4988,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
4988
4988
  if (!be.topic || typeof be.topic != "string") return j.destroy(new Error("Invalid will topic")), !1;
4989
4989
  if (ye += r.byteLength(be.topic) + 2, ye += 2, be.payload) if (be.payload.length >= 0) typeof be.payload == "string" ? ye += r.byteLength(be.payload) : ye += be.payload.length;
4990
4990
  else return j.destroy(new Error("Invalid will payload")), !1;
4991
- if (me = {}, Q === 5) {
4992
- if (me = X(j, be.properties), !me) return !1;
4991
+ if (me = {}, X === 5) {
4992
+ if (me = Q(j, be.properties), !me) return !1;
4993
4993
  ye += me.length;
4994
4994
  }
4995
4995
  }
@@ -5001,53 +5001,53 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5001
5001
  if (we(he)) ye += re(he) + 2;
5002
5002
  else return j.destroy(new Error("Invalid password")), !1;
5003
5003
  }
5004
- j.write(t.CONNECT_HEADER), L(j, ye), $(j, G), z.bridgeMode && (Q += 128), j.write(Q === 131 ? t.VERSION131 : Q === 132 ? t.VERSION132 : Q === 4 ? t.VERSION4 : Q === 5 ? t.VERSION5 : t.VERSION3);
5004
+ j.write(t.CONNECT_HEADER), L(j, ye), U(j, G), z.bridgeMode && (X += 128), j.write(X === 131 ? t.VERSION131 : X === 132 ? t.VERSION132 : X === 4 ? t.VERSION4 : X === 5 ? t.VERSION5 : t.VERSION3);
5005
5005
  let ae = 0;
5006
- return ae |= te != null ? t.USERNAME_MASK : 0, ae |= he != null ? t.PASSWORD_MASK : 0, ae |= be && be.retain ? t.WILL_RETAIN_MASK : 0, ae |= be && be.qos ? be.qos << t.WILL_QOS_SHIFT : 0, ae |= be ? t.WILL_FLAG_MASK : 0, ae |= oe ? t.CLEAN_SESSION_MASK : 0, j.write(r.from([ae])), h(j, N), Q === 5 && H.write(), $(j, q), be && (Q === 5 && me.write(), D(j, be.topic), $(j, be.payload)), te != null && $(j, te), he != null && $(j, he), !0;
5006
+ return ae |= te != null ? t.USERNAME_MASK : 0, ae |= he != null ? t.PASSWORD_MASK : 0, ae |= be && be.retain ? t.WILL_RETAIN_MASK : 0, ae |= be && be.qos ? be.qos << t.WILL_QOS_SHIFT : 0, ae |= be ? t.WILL_FLAG_MASK : 0, ae |= oe ? t.CLEAN_SESSION_MASK : 0, j.write(r.from([ae])), h(j, N), X === 5 && H.write(), U(j, q), be && (X === 5 && me.write(), D(j, be.topic), U(j, be.payload)), te != null && U(j, te), he != null && U(j, he), !0;
5007
5007
  }
5008
5008
  function k(K, j, ne) {
5009
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = z === 5 ? G.reasonCode : G.returnCode, be = G.properties, oe = 2;
5010
- if (typeof Q != "number") return j.destroy(new Error("Invalid return code")), !1;
5009
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = z === 5 ? G.reasonCode : G.returnCode, be = G.properties, oe = 2;
5010
+ if (typeof X != "number") return j.destroy(new Error("Invalid return code")), !1;
5011
5011
  let N = null;
5012
5012
  if (z === 5) {
5013
- if (N = X(j, be), !N) return !1;
5013
+ if (N = Q(j, be), !N) return !1;
5014
5014
  oe += N.length;
5015
5015
  }
5016
- return j.write(t.CONNACK_HEADER), L(j, oe), j.write(G.sessionPresent ? t.SESSIONPRESENT_HEADER : n), j.write(r.from([Q])), N?.write(), !0;
5016
+ return j.write(t.CONNACK_HEADER), L(j, oe), j.write(G.sessionPresent ? t.SESSIONPRESENT_HEADER : n), j.write(r.from([X])), N?.write(), !0;
5017
5017
  }
5018
5018
  function _(K, j, ne) {
5019
5019
  l("publish: packet: %o", K);
5020
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = G.qos || 0, be = G.retain ? t.RETAIN_MASK : 0, oe = G.topic, N = G.payload || i, q = G.messageId, te = G.properties, he = 0;
5020
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = G.qos || 0, be = G.retain ? t.RETAIN_MASK : 0, oe = G.topic, N = G.payload || i, q = G.messageId, te = G.properties, he = 0;
5021
5021
  if (typeof oe == "string") he += r.byteLength(oe) + 2;
5022
5022
  else if (r.isBuffer(oe)) he += oe.length + 2;
5023
5023
  else return j.destroy(new Error("Invalid topic")), !1;
5024
- if (r.isBuffer(N) ? he += N.length : he += r.byteLength(N), Q && typeof q != "number") return j.destroy(new Error("Invalid messageId")), !1;
5025
- Q && (he += 2);
5024
+ if (r.isBuffer(N) ? he += N.length : he += r.byteLength(N), X && typeof q != "number") return j.destroy(new Error("Invalid messageId")), !1;
5025
+ X && (he += 2);
5026
5026
  let fe = null;
5027
5027
  if (z === 5) {
5028
- if (fe = X(j, te), !fe) return !1;
5028
+ if (fe = Q(j, te), !fe) return !1;
5029
5029
  he += fe.length;
5030
5030
  }
5031
- return j.write(t.PUBLISH_HEADER[Q][G.dup ? 1 : 0][be ? 1 : 0]), L(j, he), h(j, re(oe)), j.write(oe), Q > 0 && h(j, q), fe?.write(), l("publish: payload: %o", N), j.write(N);
5031
+ return j.write(t.PUBLISH_HEADER[X][G.dup ? 1 : 0][be ? 1 : 0]), L(j, he), h(j, re(oe)), j.write(oe), X > 0 && h(j, q), fe?.write(), l("publish: payload: %o", N), j.write(N);
5032
5032
  }
5033
5033
  function v(K, j, ne) {
5034
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = G.cmd || "puback", be = G.messageId, oe = G.dup && Q === "pubrel" ? t.DUP_MASK : 0, N = 0, q = G.reasonCode, te = G.properties, he = z === 5 ? 3 : 2;
5035
- if (Q === "pubrel" && (N = 1), typeof be != "number") return j.destroy(new Error("Invalid messageId")), !1;
5034
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = G.cmd || "puback", be = G.messageId, oe = G.dup && X === "pubrel" ? t.DUP_MASK : 0, N = 0, q = G.reasonCode, te = G.properties, he = z === 5 ? 3 : 2;
5035
+ if (X === "pubrel" && (N = 1), typeof be != "number") return j.destroy(new Error("Invalid messageId")), !1;
5036
5036
  let fe = null;
5037
5037
  if (z === 5 && typeof te == "object") {
5038
5038
  if (fe = M(j, te, ne, he), !fe) return !1;
5039
5039
  he += fe.length;
5040
5040
  }
5041
- return j.write(t.ACKS[Q][N][oe][0]), he === 3 && (he += q !== 0 ? 1 : -1), L(j, he), h(j, be), z === 5 && he !== 2 && j.write(r.from([q])), fe !== null ? fe.write() : he === 4 && j.write(r.from([0])), !0;
5041
+ return j.write(t.ACKS[X][N][oe][0]), he === 3 && (he += q !== 0 ? 1 : -1), L(j, he), h(j, be), z === 5 && he !== 2 && j.write(r.from([q])), fe !== null ? fe.write() : he === 4 && j.write(r.from([0])), !0;
5042
5042
  }
5043
5043
  function S(K, j, ne) {
5044
5044
  l("subscribe: packet: ");
5045
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = G.dup ? t.DUP_MASK : 0, be = G.messageId, oe = G.subscriptions, N = G.properties, q = 0;
5045
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = G.dup ? t.DUP_MASK : 0, be = G.messageId, oe = G.subscriptions, N = G.properties, q = 0;
5046
5046
  if (typeof be != "number") return j.destroy(new Error("Invalid messageId")), !1;
5047
5047
  q += 2;
5048
5048
  let te = null;
5049
5049
  if (z === 5) {
5050
- if (te = X(j, N), !te) return !1;
5050
+ if (te = Q(j, N), !te) return !1;
5051
5051
  q += te.length;
5052
5052
  }
5053
5053
  if (typeof oe == "object" && oe.length) for (let fe = 0; fe < oe.length; fe += 1) {
@@ -5063,7 +5063,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5063
5063
  q += r.byteLength(ye) + 2 + 1;
5064
5064
  }
5065
5065
  else return j.destroy(new Error("Invalid subscriptions")), !1;
5066
- l("subscribe: writing to stream: %o", t.SUBSCRIBE_HEADER), j.write(t.SUBSCRIBE_HEADER[1][Q ? 1 : 0][0]), L(j, q), h(j, be), te !== null && te.write();
5066
+ l("subscribe: writing to stream: %o", t.SUBSCRIBE_HEADER), j.write(t.SUBSCRIBE_HEADER[1][X ? 1 : 0][0]), L(j, q), h(j, be), te !== null && te.write();
5067
5067
  let he = !0;
5068
5068
  for (let fe of oe) {
5069
5069
  let ye = fe.topic, H = fe.qos, me = +fe.nl, ve = +fe.rap, ae = fe.rh, Le;
@@ -5072,8 +5072,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5072
5072
  return he;
5073
5073
  }
5074
5074
  function E(K, j, ne) {
5075
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = G.messageId, be = G.granted, oe = G.properties, N = 0;
5076
- if (typeof Q != "number") return j.destroy(new Error("Invalid messageId")), !1;
5075
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = G.messageId, be = G.granted, oe = G.properties, N = 0;
5076
+ if (typeof X != "number") return j.destroy(new Error("Invalid messageId")), !1;
5077
5077
  if (N += 2, typeof be == "object" && be.length) for (let te = 0; te < be.length; te += 1) {
5078
5078
  if (typeof be[te] != "number") return j.destroy(new Error("Invalid qos vector")), !1;
5079
5079
  N += 1;
@@ -5084,11 +5084,11 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5084
5084
  if (q = M(j, oe, ne, N), !q) return !1;
5085
5085
  N += q.length;
5086
5086
  }
5087
- return j.write(t.SUBACK_HEADER), L(j, N), h(j, Q), q !== null && q.write(), j.write(r.from(be));
5087
+ return j.write(t.SUBACK_HEADER), L(j, N), h(j, X), q !== null && q.write(), j.write(r.from(be));
5088
5088
  }
5089
5089
  function I(K, j, ne) {
5090
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = G.messageId, be = G.dup ? t.DUP_MASK : 0, oe = G.unsubscriptions, N = G.properties, q = 0;
5091
- if (typeof Q != "number") return j.destroy(new Error("Invalid messageId")), !1;
5090
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = G.messageId, be = G.dup ? t.DUP_MASK : 0, oe = G.unsubscriptions, N = G.properties, q = 0;
5091
+ if (typeof X != "number") return j.destroy(new Error("Invalid messageId")), !1;
5092
5092
  if (q += 2, typeof oe == "object" && oe.length) for (let fe = 0; fe < oe.length; fe += 1) {
5093
5093
  if (typeof oe[fe] != "string") return j.destroy(new Error("Invalid unsubscriptions")), !1;
5094
5094
  q += r.byteLength(oe[fe]) + 2;
@@ -5096,17 +5096,17 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5096
5096
  else return j.destroy(new Error("Invalid unsubscriptions")), !1;
5097
5097
  let te = null;
5098
5098
  if (z === 5) {
5099
- if (te = X(j, N), !te) return !1;
5099
+ if (te = Q(j, N), !te) return !1;
5100
5100
  q += te.length;
5101
5101
  }
5102
- j.write(t.UNSUBSCRIBE_HEADER[1][be ? 1 : 0][0]), L(j, q), h(j, Q), te !== null && te.write();
5102
+ j.write(t.UNSUBSCRIBE_HEADER[1][be ? 1 : 0][0]), L(j, q), h(j, X), te !== null && te.write();
5103
5103
  let he = !0;
5104
5104
  for (let fe = 0; fe < oe.length; fe++) he = D(j, oe[fe]);
5105
5105
  return he;
5106
5106
  }
5107
5107
  function P(K, j, ne) {
5108
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = G.messageId, be = G.dup ? t.DUP_MASK : 0, oe = G.granted, N = G.properties, q = G.cmd, te = 0, he = 2;
5109
- if (typeof Q != "number") return j.destroy(new Error("Invalid messageId")), !1;
5108
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = G.messageId, be = G.dup ? t.DUP_MASK : 0, oe = G.granted, N = G.properties, q = G.cmd, te = 0, he = 2;
5109
+ if (typeof X != "number") return j.destroy(new Error("Invalid messageId")), !1;
5110
5110
  if (z === 5) if (typeof oe == "object" && oe.length) for (let ye = 0; ye < oe.length; ye += 1) {
5111
5111
  if (typeof oe[ye] != "number") return j.destroy(new Error("Invalid qos vector")), !1;
5112
5112
  he += 1;
@@ -5117,24 +5117,24 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5117
5117
  if (fe = M(j, N, ne, he), !fe) return !1;
5118
5118
  he += fe.length;
5119
5119
  }
5120
- return j.write(t.ACKS[q][te][be][0]), L(j, he), h(j, Q), fe !== null && fe.write(), z === 5 && j.write(r.from(oe)), !0;
5120
+ return j.write(t.ACKS[q][te][be][0]), L(j, he), h(j, X), fe !== null && fe.write(), z === 5 && j.write(r.from(oe)), !0;
5121
5121
  }
5122
5122
  function O(K, j, ne) {
5123
5123
  return j.write(t.EMPTY[K.cmd]);
5124
5124
  }
5125
- function U(K, j, ne) {
5126
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = G.reasonCode, be = G.properties, oe = z === 5 ? 1 : 0, N = null;
5125
+ function $(K, j, ne) {
5126
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = G.reasonCode, be = G.properties, oe = z === 5 ? 1 : 0, N = null;
5127
5127
  if (z === 5) {
5128
5128
  if (N = M(j, be, ne, oe), !N) return !1;
5129
5129
  oe += N.length;
5130
5130
  }
5131
- return j.write(r.from([t.codes.disconnect << 4])), L(j, oe), z === 5 && j.write(r.from([Q])), N !== null && N.write(), !0;
5131
+ return j.write(r.from([t.codes.disconnect << 4])), L(j, oe), z === 5 && j.write(r.from([X])), N !== null && N.write(), !0;
5132
5132
  }
5133
5133
  function T(K, j, ne) {
5134
- let z = ne ? ne.protocolVersion : 4, G = K || {}, Q = G.reasonCode, be = G.properties, oe = z === 5 ? 1 : 0;
5134
+ let z = ne ? ne.protocolVersion : 4, G = K || {}, X = G.reasonCode, be = G.properties, oe = z === 5 ? 1 : 0;
5135
5135
  z !== 5 && j.destroy(new Error("Invalid mqtt version for auth packet"));
5136
5136
  let N = M(j, be, ne, oe);
5137
- return N ? (oe += N.length, j.write(r.from([t.codes.auth << 4])), L(j, oe), j.write(r.from([Q])), N !== null && N.write(), !0) : !1;
5137
+ return N ? (oe += N.length, j.write(r.from([t.codes.auth << 4])), L(j, oe), j.write(r.from([X])), N !== null && N.write(), !0) : !1;
5138
5138
  }
5139
5139
  var F = {};
5140
5140
  function L(K, j) {
@@ -5160,78 +5160,78 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5160
5160
  let ne = g(j);
5161
5161
  return l("write4ByteNumber: %o", ne), K.write(ne);
5162
5162
  }
5163
- function $(K, j) {
5163
+ function U(K, j) {
5164
5164
  typeof j == "string" ? D(K, j) : j ? (h(K, j.length), K.write(j)) : h(K, 0);
5165
5165
  }
5166
- function X(K, j) {
5166
+ function Q(K, j) {
5167
5167
  if (typeof j != "object" || j.length != null) return { length: 1, write() {
5168
5168
  ge(K, {}, 0);
5169
5169
  } };
5170
5170
  let ne = 0;
5171
- function z(G, Q) {
5171
+ function z(G, X) {
5172
5172
  let be = t.propertiesTypes[G], oe = 0;
5173
5173
  switch (be) {
5174
5174
  case "byte": {
5175
- if (typeof Q != "boolean") return K.destroy(new Error(`Invalid ${G}: ${Q}`)), !1;
5175
+ if (typeof X != "boolean") return K.destroy(new Error(`Invalid ${G}: ${X}`)), !1;
5176
5176
  oe += 2;
5177
5177
  break;
5178
5178
  }
5179
5179
  case "int8": {
5180
- if (typeof Q != "number" || Q < 0 || Q > 255) return K.destroy(new Error(`Invalid ${G}: ${Q}`)), !1;
5180
+ if (typeof X != "number" || X < 0 || X > 255) return K.destroy(new Error(`Invalid ${G}: ${X}`)), !1;
5181
5181
  oe += 2;
5182
5182
  break;
5183
5183
  }
5184
5184
  case "binary": {
5185
- if (Q && Q === null) return K.destroy(new Error(`Invalid ${G}: ${Q}`)), !1;
5186
- oe += 1 + r.byteLength(Q) + 2;
5185
+ if (X && X === null) return K.destroy(new Error(`Invalid ${G}: ${X}`)), !1;
5186
+ oe += 1 + r.byteLength(X) + 2;
5187
5187
  break;
5188
5188
  }
5189
5189
  case "int16": {
5190
- if (typeof Q != "number" || Q < 0 || Q > 65535) return K.destroy(new Error(`Invalid ${G}: ${Q}`)), !1;
5190
+ if (typeof X != "number" || X < 0 || X > 65535) return K.destroy(new Error(`Invalid ${G}: ${X}`)), !1;
5191
5191
  oe += 3;
5192
5192
  break;
5193
5193
  }
5194
5194
  case "int32": {
5195
- if (typeof Q != "number" || Q < 0 || Q > 4294967295) return K.destroy(new Error(`Invalid ${G}: ${Q}`)), !1;
5195
+ if (typeof X != "number" || X < 0 || X > 4294967295) return K.destroy(new Error(`Invalid ${G}: ${X}`)), !1;
5196
5196
  oe += 5;
5197
5197
  break;
5198
5198
  }
5199
5199
  case "var": {
5200
- if (typeof Q != "number" || Q < 0 || Q > 268435455) return K.destroy(new Error(`Invalid ${G}: ${Q}`)), !1;
5201
- oe += 1 + r.byteLength(p(Q));
5200
+ if (typeof X != "number" || X < 0 || X > 268435455) return K.destroy(new Error(`Invalid ${G}: ${X}`)), !1;
5201
+ oe += 1 + r.byteLength(p(X));
5202
5202
  break;
5203
5203
  }
5204
5204
  case "string": {
5205
- if (typeof Q != "string") return K.destroy(new Error(`Invalid ${G}: ${Q}`)), !1;
5206
- oe += 3 + r.byteLength(Q.toString());
5205
+ if (typeof X != "string") return K.destroy(new Error(`Invalid ${G}: ${X}`)), !1;
5206
+ oe += 3 + r.byteLength(X.toString());
5207
5207
  break;
5208
5208
  }
5209
5209
  case "pair": {
5210
- if (typeof Q != "object") return K.destroy(new Error(`Invalid ${G}: ${Q}`)), !1;
5211
- oe += Object.getOwnPropertyNames(Q).reduce((N, q) => {
5212
- let te = Q[q];
5213
- return Array.isArray(te) ? N += te.reduce((he, fe) => (he += 3 + r.byteLength(q.toString()) + 2 + r.byteLength(fe.toString()), he), 0) : N += 3 + r.byteLength(q.toString()) + 2 + r.byteLength(Q[q].toString()), N;
5210
+ if (typeof X != "object") return K.destroy(new Error(`Invalid ${G}: ${X}`)), !1;
5211
+ oe += Object.getOwnPropertyNames(X).reduce((N, q) => {
5212
+ let te = X[q];
5213
+ return Array.isArray(te) ? N += te.reduce((he, fe) => (he += 3 + r.byteLength(q.toString()) + 2 + r.byteLength(fe.toString()), he), 0) : N += 3 + r.byteLength(q.toString()) + 2 + r.byteLength(X[q].toString()), N;
5214
5214
  }, 0);
5215
5215
  break;
5216
5216
  }
5217
5217
  default:
5218
- return K.destroy(new Error(`Invalid property ${G}: ${Q}`)), !1;
5218
+ return K.destroy(new Error(`Invalid property ${G}: ${X}`)), !1;
5219
5219
  }
5220
5220
  return oe;
5221
5221
  }
5222
5222
  if (j) for (let G in j) {
5223
- let Q = 0, be = 0, oe = j[G];
5223
+ let X = 0, be = 0, oe = j[G];
5224
5224
  if (oe !== void 0) {
5225
5225
  if (Array.isArray(oe)) for (let N = 0; N < oe.length; N++) {
5226
5226
  if (be = z(G, oe[N]), !be) return !1;
5227
- Q += be;
5227
+ X += be;
5228
5228
  }
5229
5229
  else {
5230
5230
  if (be = z(G, oe), !be) return !1;
5231
- Q = be;
5231
+ X = be;
5232
5232
  }
5233
- if (!Q) return !1;
5234
- ne += Q;
5233
+ if (!X) return !1;
5234
+ ne += X;
5235
5235
  }
5236
5236
  }
5237
5237
  return { length: r.byteLength(p(ne)) + ne, write() {
@@ -5239,10 +5239,10 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5239
5239
  } };
5240
5240
  }
5241
5241
  function M(K, j, ne, z) {
5242
- let G = ["reasonString", "userProperties"], Q = ne && ne.properties && ne.properties.maximumPacketSize ? ne.properties.maximumPacketSize : 0, be = X(K, j);
5243
- if (Q) for (; z + be.length > Q; ) {
5242
+ let G = ["reasonString", "userProperties"], X = ne && ne.properties && ne.properties.maximumPacketSize ? ne.properties.maximumPacketSize : 0, be = Q(K, j);
5243
+ if (X) for (; z + be.length > X; ) {
5244
5244
  let oe = G.shift();
5245
- if (oe && j[oe]) delete j[oe], be = X(K, j);
5245
+ if (oe && j[oe]) delete j[oe], be = Q(K, j);
5246
5246
  else return !1;
5247
5247
  }
5248
5248
  return be;
@@ -5258,7 +5258,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5258
5258
  break;
5259
5259
  }
5260
5260
  case "binary": {
5261
- K.write(r.from([t.properties[j]])), $(K, ne);
5261
+ K.write(r.from([t.properties[j]])), U(K, ne);
5262
5262
  break;
5263
5263
  }
5264
5264
  case "int16": {
@@ -5280,8 +5280,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5280
5280
  case "pair": {
5281
5281
  Object.getOwnPropertyNames(ne).forEach((z) => {
5282
5282
  let G = ne[z];
5283
- Array.isArray(G) ? G.forEach((Q) => {
5284
- K.write(r.from([t.properties[j]])), se(K, z.toString(), Q.toString());
5283
+ Array.isArray(G) ? G.forEach((X) => {
5284
+ K.write(r.from([t.properties[j]])), se(K, z.toString(), X.toString());
5285
5285
  }) : (K.write(r.from([t.properties[j]])), se(K, z.toString(), G.toString()));
5286
5286
  });
5287
5287
  break;
@@ -5294,7 +5294,7 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5294
5294
  L(K, ne);
5295
5295
  for (let z in j) if (Object.prototype.hasOwnProperty.call(j, z) && j[z] != null) {
5296
5296
  let G = j[z];
5297
- if (Array.isArray(G)) for (let Q = 0; Q < G.length; Q++) J(K, z, G[Q]);
5297
+ if (Array.isArray(G)) for (let X = 0; X < G.length; X++) J(K, z, G[X]);
5298
5298
  else J(K, z, G);
5299
5299
  }
5300
5300
  }
@@ -5773,17 +5773,17 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5773
5773
  return this.#g;
5774
5774
  }
5775
5775
  constructor(h) {
5776
- let { max: b = 0, ttl: y, ttlResolution: w = 1, ttlAutopurge: m, updateAgeOnGet: k, updateAgeOnHas: _, allowStale: v, dispose: S, disposeAfter: E, noDisposeOnSet: I, noUpdateTTL: P, maxSize: O = 0, maxEntrySize: U = 0, sizeCalculation: T, fetchMethod: F, memoMethod: L, noDeleteOnFetchRejection: D, noDeleteOnStaleGet: se, allowStaleOnFetchRejection: Y, allowStaleOnFetchAbort: W, ignoreFetchAbort: ee } = h;
5776
+ let { max: b = 0, ttl: y, ttlResolution: w = 1, ttlAutopurge: m, updateAgeOnGet: k, updateAgeOnHas: _, allowStale: v, dispose: S, disposeAfter: E, noDisposeOnSet: I, noUpdateTTL: P, maxSize: O = 0, maxEntrySize: $ = 0, sizeCalculation: T, fetchMethod: F, memoMethod: L, noDeleteOnFetchRejection: D, noDeleteOnStaleGet: se, allowStaleOnFetchRejection: Y, allowStaleOnFetchAbort: W, ignoreFetchAbort: ee } = h;
5777
5777
  if (b !== 0 && !l(b)) throw new TypeError("max option must be a nonnegative integer");
5778
- let $ = b ? c(b) : Array;
5779
- if (!$) throw new Error("invalid max value: " + b);
5780
- if (this.#l = b, this.#d = O, this.maxEntrySize = U || this.#d, this.sizeCalculation = T, this.sizeCalculation) {
5778
+ let U = b ? c(b) : Array;
5779
+ if (!U) throw new Error("invalid max value: " + b);
5780
+ if (this.#l = b, this.#d = O, this.maxEntrySize = $ || this.#d, this.sizeCalculation = T, this.sizeCalculation) {
5781
5781
  if (!this.#d && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
5782
5782
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
5783
5783
  }
5784
5784
  if (L !== void 0 && typeof L != "function") throw new TypeError("memoMethod must be a function if defined");
5785
5785
  if (this.#O = L, F !== void 0 && typeof F != "function") throw new TypeError("fetchMethod must be a function if specified");
5786
- if (this.#P = F, this.#A = !!F, this.#n = /* @__PURE__ */ new Map(), this.#r = new Array(b).fill(void 0), this.#e = new Array(b).fill(void 0), this.#c = new $(b), this.#h = new $(b), this.#a = 0, this.#s = 0, this.#y = d.create(b), this.#i = 0, this.#b = 0, typeof S == "function" && (this.#m = S), typeof E == "function" ? (this.#g = E, this.#o = []) : (this.#g = void 0, this.#o = void 0), this.#k = !!this.#m, this.#u = !!this.#g, this.noDisposeOnSet = !!I, this.noUpdateTTL = !!P, this.noDeleteOnFetchRejection = !!D, this.allowStaleOnFetchRejection = !!Y, this.allowStaleOnFetchAbort = !!W, this.ignoreFetchAbort = !!ee, this.maxEntrySize !== 0) {
5786
+ if (this.#P = F, this.#A = !!F, this.#n = /* @__PURE__ */ new Map(), this.#r = new Array(b).fill(void 0), this.#e = new Array(b).fill(void 0), this.#c = new U(b), this.#h = new U(b), this.#a = 0, this.#s = 0, this.#y = d.create(b), this.#i = 0, this.#b = 0, typeof S == "function" && (this.#m = S), typeof E == "function" ? (this.#g = E, this.#o = []) : (this.#g = void 0, this.#o = void 0), this.#k = !!this.#m, this.#u = !!this.#g, this.noDisposeOnSet = !!I, this.noUpdateTTL = !!P, this.noDeleteOnFetchRejection = !!D, this.allowStaleOnFetchRejection = !!Y, this.allowStaleOnFetchAbort = !!W, this.ignoreFetchAbort = !!ee, this.maxEntrySize !== 0) {
5787
5787
  if (this.#d !== 0 && !l(this.#d)) throw new TypeError("maxSize must be a positive integer if specified");
5788
5788
  if (!l(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
5789
5789
  this.#F();
@@ -5794,8 +5794,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
5794
5794
  }
5795
5795
  if (this.#l === 0 && this.ttl === 0 && this.#d === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
5796
5796
  if (!this.ttlAutopurge && !this.#l && !this.#d) {
5797
- let X = "LRU_CACHE_UNBOUNDED";
5798
- a(X) && (t.add(X), i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", X, za));
5797
+ let Q = "LRU_CACHE_UNBOUNDED";
5798
+ a(Q) && (t.add(Q), i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", Q, za));
5799
5799
  }
5800
5800
  }
5801
5801
  getRemainingTTL(h) {
@@ -6060,8 +6060,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
6060
6060
  });
6061
6061
  };
6062
6062
  y.status && (y.status.fetchDispatched = !0);
6063
- let O = new Promise(P).then(S, E), U = Object.assign(O, { __abortController: k, __staleWhileFetching: m, __returned: void 0 });
6064
- return b === void 0 ? (this.set(h, U, { ...v.options, status: void 0 }), b = this.#n.get(h)) : this.#e[b] = U, U;
6063
+ let O = new Promise(P).then(S, E), $ = Object.assign(O, { __abortController: k, __staleWhileFetching: m, __returned: void 0 });
6064
+ return b === void 0 ? (this.set(h, $, { ...v.options, status: void 0 }), b = this.#n.get(h)) : this.#e[b] = $, $;
6065
6065
  }
6066
6066
  #t(h) {
6067
6067
  if (!this.#A) return !1;
@@ -6069,9 +6069,9 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
6069
6069
  return !!b && b instanceof Promise && b.hasOwnProperty("__staleWhileFetching") && b.__abortController instanceof n;
6070
6070
  }
6071
6071
  async fetch(h, b = {}) {
6072
- let { allowStale: y = this.allowStale, updateAgeOnGet: w = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, ttl: k = this.ttl, noDisposeOnSet: _ = this.noDisposeOnSet, size: v = 0, sizeCalculation: S = this.sizeCalculation, noUpdateTTL: E = this.noUpdateTTL, noDeleteOnFetchRejection: I = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: P = this.allowStaleOnFetchRejection, ignoreFetchAbort: O = this.ignoreFetchAbort, allowStaleOnFetchAbort: U = this.allowStaleOnFetchAbort, context: T, forceRefresh: F = !1, status: L, signal: D } = b;
6072
+ let { allowStale: y = this.allowStale, updateAgeOnGet: w = this.updateAgeOnGet, noDeleteOnStaleGet: m = this.noDeleteOnStaleGet, ttl: k = this.ttl, noDisposeOnSet: _ = this.noDisposeOnSet, size: v = 0, sizeCalculation: S = this.sizeCalculation, noUpdateTTL: E = this.noUpdateTTL, noDeleteOnFetchRejection: I = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: P = this.allowStaleOnFetchRejection, ignoreFetchAbort: O = this.ignoreFetchAbort, allowStaleOnFetchAbort: $ = this.allowStaleOnFetchAbort, context: T, forceRefresh: F = !1, status: L, signal: D } = b;
6073
6073
  if (!this.#A) return L && (L.fetch = "get"), this.get(h, { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, status: L });
6074
- let se = { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, ttl: k, noDisposeOnSet: _, size: v, sizeCalculation: S, noUpdateTTL: E, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: P, allowStaleOnFetchAbort: U, ignoreFetchAbort: O, status: L, signal: D }, Y = this.#n.get(h);
6074
+ let se = { allowStale: y, updateAgeOnGet: w, noDeleteOnStaleGet: m, ttl: k, noDisposeOnSet: _, size: v, sizeCalculation: S, noUpdateTTL: E, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: P, allowStaleOnFetchAbort: $, ignoreFetchAbort: O, status: L, signal: D }, Y = this.#n.get(h);
6075
6075
  if (Y === void 0) {
6076
6076
  L && (L.fetch = "miss");
6077
6077
  let W = this.#N(h, Y, se, T);
@@ -6084,8 +6084,8 @@ var lr, Ai, zt, Ia, Ta, Ca, Pa, Oa, La, Ut = Qe(() => {
6084
6084
  }
6085
6085
  let ee = this.#p(Y);
6086
6086
  if (!F && !ee) return L && (L.fetch = "hit"), this.#C(Y), w && this.#I(Y), L && this.#E(L, Y), W;
6087
- let $ = this.#N(h, Y, se, T), X = $.__staleWhileFetching !== void 0 && y;
6088
- return L && (L.fetch = ee ? "stale" : "refresh", X && ee && (L.returnedStale = !0)), X ? $.__staleWhileFetching : $.__returned = $;
6087
+ let U = this.#N(h, Y, se, T), Q = U.__staleWhileFetching !== void 0 && y;
6088
+ return L && (L.fetch = ee ? "stale" : "refresh", Q && ee && (L.returnedStale = !0)), Q ? U.__staleWhileFetching : U.__returned = U;
6089
6089
  }
6090
6090
  }
6091
6091
  async forceFetch(h, b = {}) {
@@ -7997,32 +7997,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7997
7997
  function c(w, m, k, _) {
7998
7998
  var v = m && m.prototype instanceof d ? m : d, S = Object.create(v.prototype);
7999
7999
  return t(S, "_invoke", (function(E, I, P) {
8000
- var O, U, T, F = 0, L = P || [], D = !1, se = { p: 0, n: 0, v: i, a: Y, f: Y.bind(i, 4), d: function(W, ee) {
8001
- return O = W, U = 0, T = i, se.n = ee, u;
8000
+ var O, $, T, F = 0, L = P || [], D = !1, se = { p: 0, n: 0, v: i, a: Y, f: Y.bind(i, 4), d: function(W, ee) {
8001
+ return O = W, $ = 0, T = i, se.n = ee, u;
8002
8002
  } };
8003
8003
  function Y(W, ee) {
8004
- for (U = W, T = ee, n = 0; !D && F && !$ && n < L.length; n++) {
8005
- var $, X = L[n], M = se.p, J = X[2];
8006
- W > 3 ? ($ = J === ee) && (T = X[(U = X[4]) ? 5 : (U = 3, 3)], X[4] = X[5] = i) : X[0] <= M && (($ = W < 2 && M < X[1]) ? (U = 0, se.v = ee, se.n = X[1]) : M < J && ($ = W < 3 || X[0] > ee || ee > J) && (X[4] = W, X[5] = ee, se.n = J, U = 0));
8004
+ for ($ = W, T = ee, n = 0; !D && F && !U && n < L.length; n++) {
8005
+ var U, Q = L[n], M = se.p, J = Q[2];
8006
+ W > 3 ? (U = J === ee) && (T = Q[($ = Q[4]) ? 5 : ($ = 3, 3)], Q[4] = Q[5] = i) : Q[0] <= M && ((U = W < 2 && M < Q[1]) ? ($ = 0, se.v = ee, se.n = Q[1]) : M < J && (U = W < 3 || Q[0] > ee || ee > J) && (Q[4] = W, Q[5] = ee, se.n = J, $ = 0));
8007
8007
  }
8008
- if ($ || W > 1) return u;
8008
+ if (U || W > 1) return u;
8009
8009
  throw D = !0, ee;
8010
8010
  }
8011
- return function(W, ee, $) {
8011
+ return function(W, ee, U) {
8012
8012
  if (F > 1) throw TypeError("Generator is already running");
8013
- for (D && ee === 1 && Y(ee, $), U = ee, T = $; (n = U < 2 ? i : T) || !D; ) {
8014
- O || (U ? U < 3 ? (U > 1 && (se.n = -1), Y(U, T)) : se.n = T : se.v = T);
8013
+ for (D && ee === 1 && Y(ee, U), $ = ee, T = U; (n = $ < 2 ? i : T) || !D; ) {
8014
+ O || ($ ? $ < 3 ? ($ > 1 && (se.n = -1), Y($, T)) : se.n = T : se.v = T);
8015
8015
  try {
8016
8016
  if (F = 2, O) {
8017
- if (U || (W = "next"), n = O[W]) {
8017
+ if ($ || (W = "next"), n = O[W]) {
8018
8018
  if (!(n = n.call(O, T))) throw TypeError("iterator result is not an object");
8019
8019
  if (!n.done) return n;
8020
- T = n.value, U < 2 && (U = 0);
8021
- } else U === 1 && (n = O.return) && n.call(O), U < 2 && (T = TypeError("The iterator does not provide a '" + W + "' method"), U = 1);
8020
+ T = n.value, $ < 2 && ($ = 0);
8021
+ } else $ === 1 && (n = O.return) && n.call(O), $ < 2 && (T = TypeError("The iterator does not provide a '" + W + "' method"), $ = 1);
8022
8022
  O = i;
8023
8023
  } else if ((n = (D = se.n < 0) ? T : E.call(I, se)) !== u) break;
8024
- } catch (X) {
8025
- O = i, U = 1, T = X;
8024
+ } catch (Q) {
8025
+ O = i, $ = 1, T = Q;
8026
8026
  } finally {
8027
8027
  F = 1;
8028
8028
  }
@@ -8311,7 +8311,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8311
8311
  var se = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
8312
8312
  _.postMessage({ id: null, method: L, params: D }, se);
8313
8313
  }, I = {}, P = 0, O = Object.entries(k); P < O.length; P++) {
8314
- var U = i(O[P], 2), T = U[0], F = U[1];
8314
+ var $ = i(O[P], 2), T = $[0], F = $[1];
8315
8315
  I = h(h({}, I), {}, r({}, T, F({ call: S, notify: E })));
8316
8316
  }
8317
8317
  return h({}, I);
@@ -8567,16 +8567,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8567
8567
  let { queue: I } = this, P = () => {
8568
8568
  let O = I.shift();
8569
8569
  this.log("deliver :: entry %o", O);
8570
- let U = null;
8570
+ let $ = null;
8571
8571
  if (!O) {
8572
8572
  this._resubscribe();
8573
8573
  return;
8574
8574
  }
8575
- U = O.packet, this.log("deliver :: call _sendPacket for %o", U);
8575
+ $ = O.packet, this.log("deliver :: call _sendPacket for %o", $);
8576
8576
  let T = !0;
8577
- U.messageId && U.messageId !== 0 && (this.messageIdProvider.register(U.messageId) || (T = !1)), T ? this._sendPacket(U, (F) => {
8577
+ $.messageId && $.messageId !== 0 && (this.messageIdProvider.register($.messageId) || (T = !1)), T ? this._sendPacket($, (F) => {
8578
8578
  O.cb && O.cb(F), P();
8579
- }) : (this.log("messageId: %d has already used. The message is skipped and removed.", U.messageId), P());
8579
+ }) : (this.log("messageId: %d has already used. The message is skipped and removed.", $.messageId), P());
8580
8580
  };
8581
8581
  this.log("connect :: sending queued packets"), P();
8582
8582
  }), this.on("close", () => {
@@ -8603,13 +8603,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8603
8603
  let O = () => {
8604
8604
  this.log("work :: getting next packet in queue");
8605
8605
  let L = P.shift();
8606
- if (L) this.log("work :: packet pulled from queue"), (0, d.default)(this, L, U);
8606
+ if (L) this.log("work :: packet pulled from queue"), (0, d.default)(this, L, $);
8607
8607
  else {
8608
8608
  this.log("work :: no packets in queue");
8609
8609
  let D = I;
8610
8610
  I = null, this.log("work :: done flag is %s", !!D), D && D();
8611
8611
  }
8612
- }, U = () => {
8612
+ }, $ = () => {
8613
8613
  if (P.length) (0, h.nextTick)(O);
8614
8614
  else {
8615
8615
  let L = I;
@@ -8641,13 +8641,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8641
8641
  this.log("publish :: message `%s` to topic `%s`", E, S);
8642
8642
  let { options: O } = this;
8643
8643
  typeof I == "function" && (P = I, I = null), I = I || {}, I = { qos: 0, retain: !1, dup: !1, ...I };
8644
- let { qos: U, retain: T, dup: F, properties: L, cbStorePut: D } = I;
8644
+ let { qos: $, retain: T, dup: F, properties: L, cbStorePut: D } = I;
8645
8645
  if (this._checkDisconnecting(P)) return this;
8646
8646
  let se = () => {
8647
8647
  let Y = 0;
8648
- if ((U === 1 || U === 2) && (Y = this._nextId(), Y === null)) return this.log("No messageId left"), !1;
8649
- let W = { cmd: "publish", topic: S, payload: E, qos: U, retain: T, messageId: Y, dup: F };
8650
- switch (O.protocolVersion === 5 && (W.properties = L), this.log("publish :: qos", U), U) {
8648
+ if (($ === 1 || $ === 2) && (Y = this._nextId(), Y === null)) return this.log("No messageId left"), !1;
8649
+ let W = { cmd: "publish", topic: S, payload: E, qos: $, retain: T, messageId: Y, dup: F };
8650
+ switch (O.protocolVersion === 5 && (W.properties = L), this.log("publish :: qos", $), $) {
8651
8651
  case 1:
8652
8652
  case 2:
8653
8653
  this.outgoing[W.messageId] = { volatile: !1, cb: P || this.noop }, this.log("MqttClient:publish: packet cmd: %s", W.cmd), this._sendPacket(W, void 0, D);
@@ -8662,25 +8662,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8662
8662
  }
8663
8663
  publishAsync(S, E, I) {
8664
8664
  return new Promise((P, O) => {
8665
- this.publish(S, E, I, (U, T) => {
8666
- U ? O(U) : P(T);
8665
+ this.publish(S, E, I, ($, T) => {
8666
+ $ ? O($) : P(T);
8667
8667
  });
8668
8668
  });
8669
8669
  }
8670
8670
  subscribe(S, E, I) {
8671
8671
  let P = this.options.protocolVersion;
8672
8672
  typeof E == "function" && (I = E), I = I || this.noop;
8673
- let O = !1, U = [];
8674
- typeof S == "string" ? (S = [S], U = S) : Array.isArray(S) ? U = S : typeof S == "object" && (O = S.resubscribe, delete S.resubscribe, U = Object.keys(S));
8675
- let T = c.validateTopics(U);
8673
+ let O = !1, $ = [];
8674
+ typeof S == "string" ? (S = [S], $ = S) : Array.isArray(S) ? $ = S : typeof S == "object" && (O = S.resubscribe, delete S.resubscribe, $ = Object.keys(S));
8675
+ let T = c.validateTopics($);
8676
8676
  if (T !== null) return m(I, new Error(`Invalid topic ${T}`)), this;
8677
8677
  if (this._checkDisconnecting(I)) return this.log("subscribe: discconecting true"), this;
8678
8678
  let F = { qos: 0 };
8679
8679
  P === 5 && (F.nl = !1, F.rap = !1, F.rh = 0), E = { ...F, ...E };
8680
- let { properties: L } = E, D = [], se = (ee, $) => {
8681
- if ($ = $ || E, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics, ee) || this._resubscribeTopics[ee].qos < $.qos || O) {
8682
- let X = { topic: ee, qos: $.qos };
8683
- P === 5 && (X.nl = $.nl, X.rap = $.rap, X.rh = $.rh, X.properties = L), this.log("subscribe: pushing topic `%s` and qos `%s` to subs list", X.topic, X.qos), D.push(X);
8680
+ let { properties: L } = E, D = [], se = (ee, U) => {
8681
+ if (U = U || E, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics, ee) || this._resubscribeTopics[ee].qos < U.qos || O) {
8682
+ let Q = { topic: ee, qos: U.qos };
8683
+ P === 5 && (Q.nl = U.nl, Q.rap = U.rap, Q.rh = U.rh, Q.properties = L), this.log("subscribe: pushing topic `%s` and qos `%s` to subs list", Q.topic, Q.qos), D.push(Q);
8684
8684
  }
8685
8685
  };
8686
8686
  if (Array.isArray(S) ? S.forEach((ee) => {
@@ -8688,9 +8688,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8688
8688
  }) : Object.keys(S).forEach((ee) => {
8689
8689
  this.log("subscribe: object topic %s, %o", ee, S[ee]), se(ee, S[ee]);
8690
8690
  }), !D.length) return I(null, []), this;
8691
- let Y = (ee, $) => {
8692
- let X = { cmd: "subscribe", subscriptions: ee, messageId: $ };
8693
- if (L && (X.properties = L), this.options.resubscribe) {
8691
+ let Y = (ee, U) => {
8692
+ let Q = { cmd: "subscribe", subscriptions: ee, messageId: U };
8693
+ if (L && (Q.properties = L), this.options.resubscribe) {
8694
8694
  this.log("subscribe :: resubscribe true");
8695
8695
  let J = [];
8696
8696
  ee.forEach((ge) => {
@@ -8698,10 +8698,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8698
8698
  let re = { qos: ge.qos };
8699
8699
  P === 5 && (re.nl = ge.nl || !1, re.rap = ge.rap || !1, re.rh = ge.rh || 0, re.properties = ge.properties), this._resubscribeTopics[ge.topic] = re, J.push(ge.topic);
8700
8700
  }
8701
- }), this.messageIdToTopic[X.messageId] = J;
8701
+ }), this.messageIdToTopic[Q.messageId] = J;
8702
8702
  }
8703
8703
  let M = new Promise((J, ge) => {
8704
- this.outgoing[X.messageId] = { volatile: !0, cb(re, we) {
8704
+ this.outgoing[Q.messageId] = { volatile: !0, cb(re, we) {
8705
8705
  if (!re) {
8706
8706
  let { granted: K } = we;
8707
8707
  for (let j = 0; j < K.length; j += 1) ee[j].qos = K[j];
@@ -8709,26 +8709,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8709
8709
  re ? ge(new h.ErrorWithSubackPacket(re.message, we)) : J(we);
8710
8710
  } };
8711
8711
  });
8712
- return this.log("subscribe :: call _sendPacket"), this._sendPacket(X), M;
8712
+ return this.log("subscribe :: call _sendPacket"), this._sendPacket(Q), M;
8713
8713
  }, W = () => {
8714
- let ee = this.options.subscribeBatchSize ?? D.length, $ = [];
8715
- for (let X = 0; X < D.length; X += ee) {
8716
- let M = D.slice(X, X + ee), J = this._nextId();
8714
+ let ee = this.options.subscribeBatchSize ?? D.length, U = [];
8715
+ for (let Q = 0; Q < D.length; Q += ee) {
8716
+ let M = D.slice(Q, Q + ee), J = this._nextId();
8717
8717
  if (J === null) return this.log("No messageId left"), !1;
8718
- $.push(Y(M, J));
8718
+ U.push(Y(M, J));
8719
8719
  }
8720
- return Promise.all($).then((X) => {
8721
- I(null, D, X.at(-1));
8722
- }).catch((X) => {
8723
- I(X, D, X.packet);
8720
+ return Promise.all(U).then((Q) => {
8721
+ I(null, D, Q.at(-1));
8722
+ }).catch((Q) => {
8723
+ I(Q, D, Q.packet);
8724
8724
  }), !0;
8725
8725
  };
8726
8726
  return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !W()) && this._storeProcessingQueue.push({ invoke: W, callback: I }), this;
8727
8727
  }
8728
8728
  subscribeAsync(S, E) {
8729
8729
  return new Promise((I, P) => {
8730
- this.subscribe(S, E, (O, U) => {
8731
- O ? P(O) : I(U);
8730
+ this.subscribe(S, E, (O, $) => {
8731
+ O ? P(O) : I($);
8732
8732
  });
8733
8733
  });
8734
8734
  }
@@ -8738,9 +8738,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8738
8738
  if (P !== null) return m(I, new Error(`Invalid topic ${P}`)), this;
8739
8739
  if (this._checkDisconnecting(I)) return this;
8740
8740
  let O = () => {
8741
- let U = this._nextId();
8742
- if (U === null) return this.log("No messageId left"), !1;
8743
- let T = { cmd: "unsubscribe", messageId: U, unsubscriptions: [] };
8741
+ let $ = this._nextId();
8742
+ if ($ === null) return this.log("No messageId left"), !1;
8743
+ let T = { cmd: "unsubscribe", messageId: $, unsubscriptions: [] };
8744
8744
  return typeof S == "string" ? T.unsubscriptions = [S] : Array.isArray(S) && (T.unsubscriptions = S), this.options.resubscribe && T.unsubscriptions.forEach((F) => {
8745
8745
  delete this._resubscribeTopics[F];
8746
8746
  }), typeof E == "object" && E.properties && (T.properties = E.properties), this.outgoing[T.messageId] = { volatile: !0, cb: I }, this.log("unsubscribe: call _sendPacket"), this._sendPacket(T), !0;
@@ -8749,18 +8749,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8749
8749
  }
8750
8750
  unsubscribeAsync(S, E) {
8751
8751
  return new Promise((I, P) => {
8752
- this.unsubscribe(S, E, (O, U) => {
8753
- O ? P(O) : I(U);
8752
+ this.unsubscribe(S, E, (O, $) => {
8753
+ O ? P(O) : I($);
8754
8754
  });
8755
8755
  });
8756
8756
  }
8757
8757
  end(S, E, I) {
8758
8758
  this.log("end :: (%s)", this.options.clientId), (S == null || typeof S != "boolean") && (I = I || E, E = S, S = !1), typeof E != "object" && (I = I || E, E = null), this.log("end :: cb? %s", !!I), (!I || typeof I != "function") && (I = this.noop);
8759
8759
  let P = () => {
8760
- this.log("end :: closeStores: closing incoming and outgoing stores"), this.disconnected = !0, this.incomingStore.close((U) => {
8760
+ this.log("end :: closeStores: closing incoming and outgoing stores"), this.disconnected = !0, this.incomingStore.close(($) => {
8761
8761
  this.outgoingStore.close((T) => {
8762
8762
  if (this.log("end :: closeStores: emitting end"), this.emit("end"), I) {
8763
- let F = U || T;
8763
+ let F = $ || T;
8764
8764
  this.log("end :: closeStores: invoking callback with args"), I(F);
8765
8765
  }
8766
8766
  });
@@ -8850,8 +8850,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8850
8850
  this.log("storeAndSend :: store packet with cmd %s to outgoingStore", S.cmd);
8851
8851
  let P = S, O;
8852
8852
  if (P.cmd === "publish" && (P = (0, a.default)(S), O = this._removeTopicAliasAndRecoverTopicName(P), O)) return E && E(O);
8853
- this.outgoingStore.put(P, (U) => {
8854
- if (U) return E && E(U);
8853
+ this.outgoingStore.put(P, ($) => {
8854
+ if ($) return E && E($);
8855
8855
  I(), this._writePacket(S, E);
8856
8856
  });
8857
8857
  }
@@ -8919,12 +8919,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8919
8919
  let P = S;
8920
8920
  if (P.cmd === "publish") {
8921
8921
  P = (0, a.default)(S);
8922
- let U = this._removeTopicAliasAndRecoverTopicName(P);
8923
- if (U) return E && E(U);
8922
+ let $ = this._removeTopicAliasAndRecoverTopicName(P);
8923
+ if ($) return E && E($);
8924
8924
  }
8925
8925
  let O = P.qos || 0;
8926
- O === 0 && this.queueQoSZero || P.cmd !== "publish" ? this.queue.push({ packet: P, cb: E }) : O > 0 ? (E = this.outgoing[P.messageId] ? this.outgoing[P.messageId].cb : null, this.outgoingStore.put(P, (U) => {
8927
- if (U) return E && E(U);
8926
+ O === 0 && this.queueQoSZero || P.cmd !== "publish" ? this.queue.push({ packet: P, cb: E }) : O > 0 ? (E = this.outgoing[P.messageId] ? this.outgoing[P.messageId].cb : null, this.outgoingStore.put(P, ($) => {
8927
+ if ($) return E && E($);
8928
8928
  I();
8929
8929
  })) : E && E(new Error("No connection to broker"));
8930
8930
  }
@@ -8974,19 +8974,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8974
8974
  this.once("close", P), I.on("error", (T) => {
8975
8975
  O(), this._flushStoreProcessingQueue(), this.removeListener("close", P), this.emit("error", T);
8976
8976
  });
8977
- let U = () => {
8977
+ let $ = () => {
8978
8978
  if (!I) return;
8979
8979
  let T = I.read(1), F;
8980
8980
  if (!T) {
8981
- I.once("readable", U);
8981
+ I.once("readable", $);
8982
8982
  return;
8983
8983
  }
8984
8984
  if (this._storeProcessing = !0, this._packetIdsDuringStoreProcessing[T.messageId]) {
8985
- U();
8985
+ $();
8986
8986
  return;
8987
8987
  }
8988
8988
  !this.disconnecting && !this.reconnectTimer ? (F = this.outgoing[T.messageId] ? this.outgoing[T.messageId].cb : null, this.outgoing[T.messageId] = { volatile: !1, cb(L, D) {
8989
- F && F(L, D), U();
8989
+ F && F(L, D), $();
8990
8990
  } }, this._packetIdsDuringStoreProcessing[T.messageId] = !0, this.messageIdProvider.register(T.messageId) ? this._sendPacket(T, void 0, void 0, !0) : this.log("messageId: %d has already used.", T.messageId)) : I.destroy && I.destroy();
8991
8991
  };
8992
8992
  I.on("end", () => {
@@ -8996,7 +8996,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8996
8996
  break;
8997
8997
  }
8998
8998
  this.removeListener("close", P), T ? (O(), this._invokeAllStoreProcessingQueue(), this.emit("connect", S)) : E();
8999
- }), U();
8999
+ }), $();
9000
9000
  };
9001
9001
  E();
9002
9002
  }
@@ -9054,87 +9054,87 @@ function Du() {
9054
9054
  function y(O) {
9055
9055
  throw new RangeError(p[O]);
9056
9056
  }
9057
- function w(O, U) {
9057
+ function w(O, $) {
9058
9058
  let T = [], F = O.length;
9059
- for (; F--; ) T[F] = U(O[F]);
9059
+ for (; F--; ) T[F] = $(O[F]);
9060
9060
  return T;
9061
9061
  }
9062
- function m(O, U) {
9062
+ function m(O, $) {
9063
9063
  let T = O.split("@"), F = "";
9064
9064
  T.length > 1 && (F = T[0] + "@", O = T[1]), O = O.replace(d, ".");
9065
- let L = O.split("."), D = w(L, U).join(".");
9065
+ let L = O.split("."), D = w(L, $).join(".");
9066
9066
  return F + D;
9067
9067
  }
9068
9068
  function k(O) {
9069
- let U = [], T = 0, F = O.length;
9069
+ let $ = [], T = 0, F = O.length;
9070
9070
  for (; T < F; ) {
9071
9071
  let L = O.charCodeAt(T++);
9072
9072
  if (L >= 55296 && L <= 56319 && T < F) {
9073
9073
  let D = O.charCodeAt(T++);
9074
- (D & 64512) == 56320 ? U.push(((L & 1023) << 10) + (D & 1023) + 65536) : (U.push(L), T--);
9075
- } else U.push(L);
9074
+ (D & 64512) == 56320 ? $.push(((L & 1023) << 10) + (D & 1023) + 65536) : ($.push(L), T--);
9075
+ } else $.push(L);
9076
9076
  }
9077
- return U;
9077
+ return $;
9078
9078
  }
9079
9079
  let _ = (O) => String.fromCodePoint(...O), v = function(O) {
9080
9080
  return O >= 48 && O < 58 ? 26 + (O - 48) : O >= 65 && O < 91 ? O - 65 : O >= 97 && O < 123 ? O - 97 : e;
9081
- }, S = function(O, U) {
9082
- return O + 22 + 75 * (O < 26) - ((U != 0) << 5);
9083
- }, E = function(O, U, T) {
9081
+ }, S = function(O, $) {
9082
+ return O + 22 + 75 * (O < 26) - (($ != 0) << 5);
9083
+ }, E = function(O, $, T) {
9084
9084
  let F = 0;
9085
- for (O = T ? h(O / n) : O >> 1, O += h(O / U); O > g * r >> 1; F += e) O = h(O / g);
9085
+ for (O = T ? h(O / n) : O >> 1, O += h(O / $); O > g * r >> 1; F += e) O = h(O / g);
9086
9086
  return h(F + (g + 1) * O / (O + i));
9087
9087
  }, I = function(O) {
9088
- let U = [], T = O.length, F = 0, L = a, D = o, se = O.lastIndexOf(l);
9088
+ let $ = [], T = O.length, F = 0, L = a, D = o, se = O.lastIndexOf(l);
9089
9089
  se < 0 && (se = 0);
9090
- for (let Y = 0; Y < se; ++Y) O.charCodeAt(Y) >= 128 && y("not-basic"), U.push(O.charCodeAt(Y));
9090
+ for (let Y = 0; Y < se; ++Y) O.charCodeAt(Y) >= 128 && y("not-basic"), $.push(O.charCodeAt(Y));
9091
9091
  for (let Y = se > 0 ? se + 1 : 0; Y < T; ) {
9092
9092
  let W = F;
9093
- for (let $ = 1, X = e; ; X += e) {
9093
+ for (let U = 1, Q = e; ; Q += e) {
9094
9094
  Y >= T && y("invalid-input");
9095
9095
  let M = v(O.charCodeAt(Y++));
9096
- M >= e && y("invalid-input"), M > h((s - F) / $) && y("overflow"), F += M * $;
9097
- let J = X <= D ? t : X >= D + r ? r : X - D;
9096
+ M >= e && y("invalid-input"), M > h((s - F) / U) && y("overflow"), F += M * U;
9097
+ let J = Q <= D ? t : Q >= D + r ? r : Q - D;
9098
9098
  if (M < J) break;
9099
9099
  let ge = e - J;
9100
- $ > h(s / ge) && y("overflow"), $ *= ge;
9100
+ U > h(s / ge) && y("overflow"), U *= ge;
9101
9101
  }
9102
- let ee = U.length + 1;
9103
- D = E(F - W, ee, W == 0), h(F / ee) > s - L && y("overflow"), L += h(F / ee), F %= ee, U.splice(F++, 0, L);
9102
+ let ee = $.length + 1;
9103
+ D = E(F - W, ee, W == 0), h(F / ee) > s - L && y("overflow"), L += h(F / ee), F %= ee, $.splice(F++, 0, L);
9104
9104
  }
9105
- return String.fromCodePoint(...U);
9105
+ return String.fromCodePoint(...$);
9106
9106
  }, P = function(O) {
9107
- let U = [];
9107
+ let $ = [];
9108
9108
  O = k(O);
9109
9109
  let T = O.length, F = a, L = 0, D = o;
9110
- for (let W of O) W < 128 && U.push(b(W));
9111
- let se = U.length, Y = se;
9112
- for (se && U.push(l); Y < T; ) {
9110
+ for (let W of O) W < 128 && $.push(b(W));
9111
+ let se = $.length, Y = se;
9112
+ for (se && $.push(l); Y < T; ) {
9113
9113
  let W = s;
9114
- for (let $ of O) $ >= F && $ < W && (W = $);
9114
+ for (let U of O) U >= F && U < W && (W = U);
9115
9115
  let ee = Y + 1;
9116
9116
  W - F > h((s - L) / ee) && y("overflow"), L += (W - F) * ee, F = W;
9117
- for (let $ of O) if ($ < F && ++L > s && y("overflow"), $ === F) {
9118
- let X = L;
9117
+ for (let U of O) if (U < F && ++L > s && y("overflow"), U === F) {
9118
+ let Q = L;
9119
9119
  for (let M = e; ; M += e) {
9120
9120
  let J = M <= D ? t : M >= D + r ? r : M - D;
9121
- if (X < J) break;
9122
- let ge = X - J, re = e - J;
9123
- U.push(b(S(J + ge % re, 0))), X = h(ge / re);
9121
+ if (Q < J) break;
9122
+ let ge = Q - J, re = e - J;
9123
+ $.push(b(S(J + ge % re, 0))), Q = h(ge / re);
9124
9124
  }
9125
- U.push(b(S(X, 0))), D = E(L, ee, Y === se), L = 0, ++Y;
9125
+ $.push(b(S(Q, 0))), D = E(L, ee, Y === se), L = 0, ++Y;
9126
9126
  }
9127
9127
  ++L, ++F;
9128
9128
  }
9129
- return U.join("");
9129
+ return $.join("");
9130
9130
  };
9131
9131
  return Er = { version: "2.3.1", ucs2: { decode: k, encode: _ }, decode: I, encode: P, toASCII: function(O) {
9132
- return m(O, function(U) {
9133
- return u.test(U) ? "xn--" + P(U) : U;
9132
+ return m(O, function($) {
9133
+ return u.test($) ? "xn--" + P($) : $;
9134
9134
  });
9135
9135
  }, toUnicode: function(O) {
9136
- return m(O, function(U) {
9137
- return c.test(U) ? I(U.slice(4).toLowerCase()) : U;
9136
+ return m(O, function($) {
9137
+ return c.test($) ? I($.slice(4).toLowerCase()) : $;
9138
9138
  });
9139
9139
  } }, Er;
9140
9140
  }
@@ -9282,27 +9282,27 @@ function er() {
9282
9282
  else if (W === "%GeneratorFunction%") ee = c("function* () {}");
9283
9283
  else if (W === "%AsyncGeneratorFunction%") ee = c("async function* () {}");
9284
9284
  else if (W === "%AsyncGenerator%") {
9285
- var $ = Y("%AsyncGeneratorFunction%");
9286
- $ && (ee = $.prototype);
9285
+ var U = Y("%AsyncGeneratorFunction%");
9286
+ U && (ee = U.prototype);
9287
9287
  } else if (W === "%AsyncIteratorPrototype%") {
9288
- var X = Y("%AsyncGenerator%");
9289
- X && b && (ee = b(X.prototype));
9288
+ var Q = Y("%AsyncGenerator%");
9289
+ Q && b && (ee = b(Q.prototype));
9290
9290
  }
9291
9291
  return m[W] = ee, ee;
9292
- }, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = As(), E = Gu(), I = S.call(Function.call, Array.prototype.concat), P = S.call(Function.apply, Array.prototype.splice), O = S.call(Function.call, String.prototype.replace), U = S.call(Function.call, String.prototype.slice), T = S.call(Function.call, RegExp.prototype.exec), F = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, L = /\\(\\)?/g, D = function(Y) {
9293
- var W = U(Y, 0, 1), ee = U(Y, -1);
9292
+ }, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = As(), E = Gu(), I = S.call(Function.call, Array.prototype.concat), P = S.call(Function.apply, Array.prototype.splice), O = S.call(Function.call, String.prototype.replace), $ = S.call(Function.call, String.prototype.slice), T = S.call(Function.call, RegExp.prototype.exec), F = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, L = /\\(\\)?/g, D = function(Y) {
9293
+ var W = $(Y, 0, 1), ee = $(Y, -1);
9294
9294
  if (W === "%" && ee !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
9295
9295
  if (ee === "%" && W !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
9296
- var $ = [];
9297
- return O(Y, F, function(X, M, J, ge) {
9298
- $[$.length] = J ? O(ge, L, "$1") : M || X;
9299
- }), $;
9296
+ var U = [];
9297
+ return O(Y, F, function(Q, M, J, ge) {
9298
+ U[U.length] = J ? O(ge, L, "$1") : M || Q;
9299
+ }), U;
9300
9300
  }, se = function(Y, W) {
9301
- var ee = Y, $;
9302
- if (E(v, ee) && ($ = v[ee], ee = "%" + $[0] + "%"), E(m, ee)) {
9303
- var X = m[ee];
9304
- if (X === y && (X = _(ee)), typeof X > "u" && !W) throw new o("intrinsic " + Y + " exists, but is not available. Please file an issue!");
9305
- return { alias: $, name: ee, value: X };
9301
+ var ee = Y, U;
9302
+ if (E(v, ee) && (U = v[ee], ee = "%" + U[0] + "%"), E(m, ee)) {
9303
+ var Q = m[ee];
9304
+ if (Q === y && (Q = _(ee)), typeof Q > "u" && !W) throw new o("intrinsic " + Y + " exists, but is not available. Please file an issue!");
9305
+ return { alias: U, name: ee, value: Q };
9306
9306
  }
9307
9307
  throw new n("intrinsic " + Y + " does not exist!");
9308
9308
  };
@@ -9310,12 +9310,12 @@ function er() {
9310
9310
  if (typeof Y != "string" || Y.length === 0) throw new o("intrinsic name must be a non-empty string");
9311
9311
  if (arguments.length > 1 && typeof W != "boolean") throw new o('"allowMissing" argument must be a boolean');
9312
9312
  if (T(/^%?[^%]*%?$/, Y) === null) throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
9313
- var ee = D(Y), $ = ee.length > 0 ? ee[0] : "", X = se("%" + $ + "%", W), M = X.name, J = X.value, ge = !1, re = X.alias;
9314
- re && ($ = re[0], P(ee, I([0, 1], re)));
9313
+ var ee = D(Y), U = ee.length > 0 ? ee[0] : "", Q = se("%" + U + "%", W), M = Q.name, J = Q.value, ge = !1, re = Q.alias;
9314
+ re && (U = re[0], P(ee, I([0, 1], re)));
9315
9315
  for (var we = 1, K = !0; we < ee.length; we += 1) {
9316
- var j = ee[we], ne = U(j, 0, 1), z = U(j, -1);
9316
+ var j = ee[we], ne = $(j, 0, 1), z = $(j, -1);
9317
9317
  if ((ne === '"' || ne === "'" || ne === "`" || z === '"' || z === "'" || z === "`") && ne !== z) throw new n("property names with quotes must have matching quotes");
9318
- if ((j === "constructor" || !K) && (ge = !0), $ += "." + j, M = "%" + $ + "%", E(m, M)) J = m[M];
9318
+ if ((j === "constructor" || !K) && (ge = !0), U += "." + j, M = "%" + U + "%", E(m, M)) J = m[M];
9319
9319
  else if (J != null) {
9320
9320
  if (!(j in J)) {
9321
9321
  if (!W) throw new o("base intrinsic for " + Y + " exists, but the property is not available.");
@@ -9661,7 +9661,7 @@ Qt(yl, { URL: () => Tl, Url: () => _l, default: () => Ke, fileURLToPath: () => w
9661
9661
  function fd() {
9662
9662
  if (ls) return Br;
9663
9663
  ls = !0;
9664
- var s = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = s && e && typeof e.get == "function" ? e.get : null, r = s && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, o = i && n && typeof n.get == "function" ? n.get : null, a = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, d = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, g = p ? WeakRef.prototype.deref : null, h = Boolean.prototype.valueOf, b = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, m = String.prototype.slice, k = String.prototype.replace, _ = String.prototype.toUpperCase, v = String.prototype.toLowerCase, S = RegExp.prototype.test, E = Array.prototype.concat, I = Array.prototype.join, P = Array.prototype.slice, O = Math.floor, U = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, L = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === L || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(V) {
9664
+ var s = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = s && e && typeof e.get == "function" ? e.get : null, r = s && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, o = i && n && typeof n.get == "function" ? n.get : null, a = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, d = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, g = p ? WeakRef.prototype.deref : null, h = Boolean.prototype.valueOf, b = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, m = String.prototype.slice, k = String.prototype.replace, _ = String.prototype.toUpperCase, v = String.prototype.toLowerCase, S = RegExp.prototype.test, E = Array.prototype.concat, I = Array.prototype.join, P = Array.prototype.slice, O = Math.floor, $ = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, L = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === L || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(V) {
9665
9665
  return V.__proto__;
9666
9666
  } : null);
9667
9667
  function W(V, ie) {
@@ -9676,7 +9676,7 @@ function fd() {
9676
9676
  }
9677
9677
  return k.call(ie, Ie, "$&_");
9678
9678
  }
9679
- var ee = xl, $ = ee.custom, X = G($) ? $ : null;
9679
+ var ee = xl, U = ee.custom, Q = G(U) ? U : null;
9680
9680
  Br = function V(ie, Ie, Te, Oe) {
9681
9681
  var Me = Ie || {};
9682
9682
  if (oe(Me, "quoteStyle") && Me.quoteStyle !== "single" && Me.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -9733,7 +9733,7 @@ function fd() {
9733
9733
  return !("cause" in Error.prototype) && "cause" in ie && !se.call(ie, "cause") ? "{ [" + String(ie) + "] " + I.call(E.call("[cause]: " + Xe(ie.cause), Ae), ", ") + " }" : Ae.length === 0 ? "[" + String(ie) + "]" : "{ [" + String(ie) + "] " + I.call(Ae, ", ") + " }";
9734
9734
  }
9735
9735
  if (typeof ie == "object" && it) {
9736
- if (X && typeof ie[X] == "function" && ee) return ee(ie, { depth: qt - Te });
9736
+ if (Q && typeof ie[Q] == "function" && ee) return ee(ie, { depth: qt - Te });
9737
9737
  if (it !== "symbol" && typeof ie.inspect == "function") return ie.inspect();
9738
9738
  }
9739
9739
  if (he(ie)) {
@@ -9752,7 +9752,7 @@ function fd() {
9752
9752
  if (me(ie)) return x("WeakSet");
9753
9753
  if (ye(ie)) return x("WeakRef");
9754
9754
  if (ne(ie)) return f(Xe(Number(ie)));
9755
- if (Q(ie)) return f(Xe(U.call(ie)));
9755
+ if (X(ie)) return f(Xe($.call(ie)));
9756
9756
  if (z(ie)) return f(h.call(ie));
9757
9757
  if (j(ie)) return f(Xe(String(ie)));
9758
9758
  if (typeof window < "u" && ie === window) return "{ [object Window] }";
@@ -9801,10 +9801,10 @@ function fd() {
9801
9801
  }
9802
9802
  return !1;
9803
9803
  }
9804
- function Q(V) {
9805
- if (!V || typeof V != "object" || !U) return !1;
9804
+ function X(V) {
9805
+ if (!V || typeof V != "object" || !$) return !1;
9806
9806
  try {
9807
- return U.call(V), !0;
9807
+ return $.call(V), !0;
9808
9808
  } catch {
9809
9809
  }
9810
9810
  return !1;
@@ -10055,24 +10055,24 @@ function vl() {
10055
10055
  });
10056
10056
  for (var S = "", E = 0; E < v.length; E += c) {
10057
10057
  for (var I = v.length >= c ? v.slice(E, E + c) : v, P = [], O = 0; O < I.length; ++O) {
10058
- var U = I.charCodeAt(O);
10059
- if (U === 45 || U === 46 || U === 95 || U === 126 || U >= 48 && U <= 57 || U >= 65 && U <= 90 || U >= 97 && U <= 122 || _ === s.RFC1738 && (U === 40 || U === 41)) {
10058
+ var $ = I.charCodeAt(O);
10059
+ if ($ === 45 || $ === 46 || $ === 95 || $ === 126 || $ >= 48 && $ <= 57 || $ >= 65 && $ <= 90 || $ >= 97 && $ <= 122 || _ === s.RFC1738 && ($ === 40 || $ === 41)) {
10060
10060
  P[P.length] = I.charAt(O);
10061
10061
  continue;
10062
10062
  }
10063
- if (U < 128) {
10064
- P[P.length] = r[U];
10063
+ if ($ < 128) {
10064
+ P[P.length] = r[$];
10065
10065
  continue;
10066
10066
  }
10067
- if (U < 2048) {
10068
- P[P.length] = r[192 | U >> 6] + r[128 | U & 63];
10067
+ if ($ < 2048) {
10068
+ P[P.length] = r[192 | $ >> 6] + r[128 | $ & 63];
10069
10069
  continue;
10070
10070
  }
10071
- if (U < 55296 || U >= 57344) {
10072
- P[P.length] = r[224 | U >> 12] + r[128 | U >> 6 & 63] + r[128 | U & 63];
10071
+ if ($ < 55296 || $ >= 57344) {
10072
+ P[P.length] = r[224 | $ >> 12] + r[128 | $ >> 6 & 63] + r[128 | $ & 63];
10073
10073
  continue;
10074
10074
  }
10075
- O += 1, U = 65536 + ((U & 1023) << 10 | I.charCodeAt(O) & 1023), P[P.length] = r[240 | U >> 18] + r[128 | U >> 12 & 63] + r[128 | U >> 6 & 63] + r[128 | U & 63];
10075
+ O += 1, $ = 65536 + (($ & 1023) << 10 | I.charCodeAt(O) & 1023), P[P.length] = r[240 | $ >> 18] + r[128 | $ >> 12 & 63] + r[128 | $ >> 6 & 63] + r[128 | $ & 63];
10076
10076
  }
10077
10077
  S += P.join("");
10078
10078
  }
@@ -10113,14 +10113,14 @@ function md() {
10113
10113
  return l.call(b);
10114
10114
  }, skipNulls: !1, strictNullHandling: !1 }, d = function(b) {
10115
10115
  return typeof b == "string" || typeof b == "number" || typeof b == "boolean" || typeof b == "symbol" || typeof b == "bigint";
10116
- }, p = {}, g = function b(y, w, m, k, _, v, S, E, I, P, O, U, T, F, L, D, se, Y) {
10117
- for (var W = y, ee = Y, $ = 0, X = !1; (ee = ee.get(p)) !== void 0 && !X; ) {
10116
+ }, p = {}, g = function b(y, w, m, k, _, v, S, E, I, P, O, $, T, F, L, D, se, Y) {
10117
+ for (var W = y, ee = Y, U = 0, Q = !1; (ee = ee.get(p)) !== void 0 && !Q; ) {
10118
10118
  var M = ee.get(y);
10119
- if ($ += 1, typeof M < "u") {
10120
- if (M === $) throw new RangeError("Cyclic object value");
10121
- X = !0;
10119
+ if (U += 1, typeof M < "u") {
10120
+ if (M === U) throw new RangeError("Cyclic object value");
10121
+ Q = !0;
10122
10122
  }
10123
- typeof ee.get(p) > "u" && ($ = 0);
10123
+ typeof ee.get(p) > "u" && (U = 0);
10124
10124
  }
10125
10125
  if (typeof P == "function" ? W = P(w, W) : W instanceof Date ? W = T(W) : m === "comma" && n(W) && (W = e.maybeMap(W, function(N) {
10126
10126
  return N instanceof Date ? T(N) : N;
@@ -10149,10 +10149,10 @@ function md() {
10149
10149
  for (var ne = 0; ne < re.length; ++ne) {
10150
10150
  var z = re[ne], G = typeof z == "object" && typeof z.value < "u" ? z.value : W[z];
10151
10151
  if (!(S && G === null)) {
10152
- var Q = U && E ? z.replace(/\./g, "%2E") : z, be = n(W) ? typeof m == "function" ? m(j, Q) : j : j + (U ? "." + Q : "[" + Q + "]");
10153
- Y.set(y, $);
10152
+ var X = $ && E ? z.replace(/\./g, "%2E") : z, be = n(W) ? typeof m == "function" ? m(j, X) : j : j + ($ ? "." + X : "[" + X + "]");
10153
+ Y.set(y, U);
10154
10154
  var oe = s();
10155
- oe.set(p, Y), a(ge, b(G, be, m, k, _, v, S, E, m === "comma" && D && n(W) ? null : I, P, O, U, T, F, L, D, se, oe));
10155
+ oe.set(p, Y), a(ge, b(G, be, m, k, _, v, S, E, m === "comma" && D && n(W) ? null : I, P, O, $, T, F, L, D, se, oe));
10156
10156
  }
10157
10157
  }
10158
10158
  return ge;
@@ -10186,8 +10186,8 @@ function md() {
10186
10186
  var O = k[P];
10187
10187
  m.skipNulls && w[O] === null || a(v, g(w[O], O, S, E, m.allowEmptyArrays, m.strictNullHandling, m.skipNulls, m.encodeDotInKeys, m.encode ? m.encoder : null, m.filter, m.sort, m.allowDots, m.serializeDate, m.format, m.formatter, m.encodeValuesOnly, m.charset, I));
10188
10188
  }
10189
- var U = v.join(m.delimiter), T = m.addQueryPrefix === !0 ? "?" : "";
10190
- return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), U.length > 0 ? T + U : "";
10189
+ var $ = v.join(m.delimiter), T = m.addQueryPrefix === !0 ? "?" : "";
10190
+ return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), $.length > 0 ? T + $ : "";
10191
10191
  }, zr;
10192
10192
  }
10193
10193
  function gd() {
@@ -10206,8 +10206,8 @@ function gd() {
10206
10206
  if (g.charsetSentinel) for (k = 0; k < w.length; ++k) w[k].indexOf("utf8=") === 0 && (w[k] === a ? _ = "utf-8" : w[k] === o && (_ = "iso-8859-1"), m = k, k = w.length);
10207
10207
  for (k = 0; k < w.length; ++k) if (k !== m) {
10208
10208
  var v = w[k], S = v.indexOf("]="), E = S === -1 ? v.indexOf("=") : S + 1, I, P;
10209
- E === -1 ? (I = g.decoder(v, r.decoder, _, "key"), P = g.strictNullHandling ? null : "") : (I = g.decoder(v.slice(0, E), r.decoder, _, "key"), P = s.maybeMap(n(v.slice(E + 1), g), function(U) {
10210
- return g.decoder(U, r.decoder, _, "value");
10209
+ E === -1 ? (I = g.decoder(v, r.decoder, _, "key"), P = g.strictNullHandling ? null : "") : (I = g.decoder(v.slice(0, E), r.decoder, _, "key"), P = s.maybeMap(n(v.slice(E + 1), g), function($) {
10210
+ return g.decoder($, r.decoder, _, "value");
10211
10211
  })), P && g.interpretNumericEntities && _ === "iso-8859-1" && (P = i(P)), v.indexOf("[]=") > -1 && (P = t(P) ? [P] : P);
10212
10212
  var O = e.call(h, I);
10213
10213
  O && g.duplicates === "combine" ? h[I] = s.combine(h[I], P) : (!O || g.duplicates === "last") && (h[I] = P);
@@ -10285,8 +10285,8 @@ function yd() {
10285
10285
  }
10286
10286
  e.prototype.parse = function(v, S, E) {
10287
10287
  if (typeof v != "string") throw new TypeError("Parameter 'url' must be a string, not " + typeof v);
10288
- var I = v.indexOf("?"), P = I !== -1 && I < v.indexOf("#") ? "?" : "#", O = v.split(P), U = /\\/g;
10289
- O[0] = O[0].replace(U, "/"), v = O.join(P);
10288
+ var I = v.indexOf("?"), P = I !== -1 && I < v.indexOf("#") ? "?" : "#", O = v.split(P), $ = /\\/g;
10289
+ O[0] = O[0].replace($, "/"), v = O.join(P);
10290
10290
  var T = v;
10291
10291
  if (T = T.trim(), !E && v.split("#").length === 1) {
10292
10292
  var F = i.exec(T);
@@ -10307,8 +10307,8 @@ function yd() {
10307
10307
  var ee = T.indexOf(c[W]);
10308
10308
  ee !== -1 && (Y === -1 || ee < Y) && (Y = ee);
10309
10309
  }
10310
- var $, X;
10311
- Y === -1 ? X = T.lastIndexOf("@") : X = T.lastIndexOf("@", Y), X !== -1 && ($ = T.slice(0, X), T = T.slice(X + 1), this.auth = decodeURIComponent($)), Y = -1;
10310
+ var U, Q;
10311
+ Y === -1 ? Q = T.lastIndexOf("@") : Q = T.lastIndexOf("@", Y), Q !== -1 && (U = T.slice(0, Q), T = T.slice(Q + 1), this.auth = decodeURIComponent(U)), Y = -1;
10312
10312
  for (var W = 0; W < l.length; W++) {
10313
10313
  var ee = T.indexOf(l[W]);
10314
10314
  ee !== -1 && (Y === -1 || ee < Y) && (Y = ee);
@@ -10327,8 +10327,8 @@ function yd() {
10327
10327
  }
10328
10328
  }
10329
10329
  this.hostname.length > u ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), M || (this.hostname = s.toASCII(this.hostname));
10330
- var Q = this.port ? ":" + this.port : "", be = this.hostname || "";
10331
- this.host = be + Q, this.href += this.host, M && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), T[0] !== "/" && (T = "/" + T));
10330
+ var X = this.port ? ":" + this.port : "", be = this.hostname || "";
10331
+ this.host = be + X, this.href += this.host, M && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), T[0] !== "/" && (T = "/" + T));
10332
10332
  }
10333
10333
  if (!g[D]) for (var W = 0, ge = a.length; W < ge; W++) {
10334
10334
  var oe = a[W];
@@ -10341,8 +10341,8 @@ function yd() {
10341
10341
  q !== -1 && (this.hash = T.substr(q), T = T.slice(0, q));
10342
10342
  var te = T.indexOf("?");
10343
10343
  if (te !== -1 ? (this.search = T.substr(te), this.query = T.substr(te + 1), S && (this.query = y.parse(this.query)), T = T.slice(0, te)) : S && (this.search = "", this.query = {}), T && (this.pathname = T), b[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
10344
- var Q = this.pathname || "", he = this.search || "";
10345
- this.path = Q + he;
10344
+ var X = this.pathname || "", he = this.search || "";
10345
+ this.path = X + he;
10346
10346
  }
10347
10347
  return this.href = this.format(), this;
10348
10348
  };
@@ -10354,10 +10354,10 @@ function yd() {
10354
10354
  v && (v = encodeURIComponent(v), v = v.replace(/%3A/i, ":"), v += "@");
10355
10355
  var S = this.protocol || "", E = this.pathname || "", I = this.hash || "", P = !1, O = "";
10356
10356
  this.host ? P = v + this.host : this.hostname && (P = v + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (P += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (O = y.stringify(this.query, { arrayFormat: "repeat", addQueryPrefix: !1 }));
10357
- var U = this.search || O && "?" + O || "";
10358
- return S && S.substr(-1) !== ":" && (S += ":"), this.slashes || (!S || b[S]) && P !== !1 ? (P = "//" + (P || ""), E && E.charAt(0) !== "/" && (E = "/" + E)) : P || (P = ""), I && I.charAt(0) !== "#" && (I = "#" + I), U && U.charAt(0) !== "?" && (U = "?" + U), E = E.replace(/[?#]/g, function(T) {
10357
+ var $ = this.search || O && "?" + O || "";
10358
+ return S && S.substr(-1) !== ":" && (S += ":"), this.slashes || (!S || b[S]) && P !== !1 ? (P = "//" + (P || ""), E && E.charAt(0) !== "/" && (E = "/" + E)) : P || (P = ""), I && I.charAt(0) !== "#" && (I = "#" + I), $ && $.charAt(0) !== "?" && ($ = "?" + $), E = E.replace(/[?#]/g, function(T) {
10359
10359
  return encodeURIComponent(T);
10360
- }), U = U.replace("#", "%23"), S + P + E + U + I;
10360
+ }), $ = $.replace("#", "%23"), S + P + E + $ + I;
10361
10361
  };
10362
10362
  function k(v, S) {
10363
10363
  return w(v, !1, !0).resolve(S);
@@ -10379,8 +10379,8 @@ function yd() {
10379
10379
  }
10380
10380
  if (E.hash = v.hash, v.href === "") return E.href = E.format(), E;
10381
10381
  if (v.slashes && !v.protocol) {
10382
- for (var U = Object.keys(v), T = 0; T < U.length; T++) {
10383
- var F = U[T];
10382
+ for (var $ = Object.keys(v), T = 0; T < $.length; T++) {
10383
+ var F = $[T];
10384
10384
  F !== "protocol" && (E[F] = v[F]);
10385
10385
  }
10386
10386
  return b[E.protocol] && E.hostname && !E.pathname && (E.pathname = "/", E.path = E.pathname), E.href = E.format(), E;
@@ -10403,8 +10403,8 @@ function yd() {
10403
10403
  }
10404
10404
  return E.slashes = E.slashes || v.slashes, E.href = E.format(), E;
10405
10405
  }
10406
- var ee = E.pathname && E.pathname.charAt(0) === "/", $ = v.host || v.pathname && v.pathname.charAt(0) === "/", X = $ || ee || E.host && v.pathname, M = X, J = E.pathname && E.pathname.split("/") || [], ge = v.pathname && v.pathname.split("/") || [], re = E.protocol && !b[E.protocol];
10407
- if (re && (E.hostname = "", E.port = null, E.host && (J[0] === "" ? J[0] = E.host : J.unshift(E.host)), E.host = "", v.protocol && (v.hostname = null, v.port = null, v.host && (ge[0] === "" ? ge[0] = v.host : ge.unshift(v.host)), v.host = null), X = X && (ge[0] === "" || J[0] === "")), $) E.host = v.host || v.host === "" ? v.host : E.host, E.hostname = v.hostname || v.hostname === "" ? v.hostname : E.hostname, E.search = v.search, E.query = v.query, J = ge;
10406
+ var ee = E.pathname && E.pathname.charAt(0) === "/", U = v.host || v.pathname && v.pathname.charAt(0) === "/", Q = U || ee || E.host && v.pathname, M = Q, J = E.pathname && E.pathname.split("/") || [], ge = v.pathname && v.pathname.split("/") || [], re = E.protocol && !b[E.protocol];
10407
+ if (re && (E.hostname = "", E.port = null, E.host && (J[0] === "" ? J[0] = E.host : J.unshift(E.host)), E.host = "", v.protocol && (v.hostname = null, v.port = null, v.host && (ge[0] === "" ? ge[0] = v.host : ge.unshift(v.host)), v.host = null), Q = Q && (ge[0] === "" || J[0] === "")), U) E.host = v.host || v.host === "" ? v.host : E.host, E.hostname = v.hostname || v.hostname === "" ? v.hostname : E.hostname, E.search = v.search, E.query = v.query, J = ge;
10408
10408
  else if (ge.length) J || (J = []), J.pop(), J = J.concat(ge), E.search = v.search, E.query = v.query;
10409
10409
  else if (v.search != null) {
10410
10410
  if (re) {
@@ -10416,15 +10416,15 @@ function yd() {
10416
10416
  }
10417
10417
  if (!J.length) return E.pathname = null, E.search ? E.path = "/" + E.search : E.path = null, E.href = E.format(), E;
10418
10418
  for (var K = J.slice(-1)[0], j = (E.host || v.host || J.length > 1) && (K === "." || K === "..") || K === "", ne = 0, z = J.length; z >= 0; z--) K = J[z], K === "." ? J.splice(z, 1) : K === ".." ? (J.splice(z, 1), ne++) : ne && (J.splice(z, 1), ne--);
10419
- if (!X && !M) for (; ne--; ne) J.unshift("..");
10420
- X && J[0] !== "" && (!J[0] || J[0].charAt(0) !== "/") && J.unshift(""), j && J.join("/").substr(-1) !== "/" && J.push("");
10419
+ if (!Q && !M) for (; ne--; ne) J.unshift("..");
10420
+ Q && J[0] !== "" && (!J[0] || J[0].charAt(0) !== "/") && J.unshift(""), j && J.join("/").substr(-1) !== "/" && J.push("");
10421
10421
  var G = J[0] === "" || J[0] && J[0].charAt(0) === "/";
10422
10422
  if (re) {
10423
10423
  E.hostname = G ? "" : J.length ? J.shift() : "", E.host = E.hostname;
10424
10424
  var we = E.host && E.host.indexOf("@") > 0 ? E.host.split("@") : !1;
10425
10425
  we && (E.auth = we.shift(), E.hostname = we.shift(), E.host = E.hostname);
10426
10426
  }
10427
- return X = X || E.host && J.length, X && !G && J.unshift(""), J.length > 0 ? E.pathname = J.join("/") : (E.pathname = null, E.path = null), (E.pathname !== null || E.search !== null) && (E.path = (E.pathname ? E.pathname : "") + (E.search ? E.search : "")), E.auth = v.auth || E.auth, E.slashes = E.slashes || v.slashes, E.href = E.format(), E;
10427
+ return Q = Q || E.host && J.length, Q && !G && J.unshift(""), J.length > 0 ? E.pathname = J.join("/") : (E.pathname = null, E.path = null), (E.pathname !== null || E.search !== null) && (E.path = (E.pathname ? E.pathname : "") + (E.search ? E.search : "")), E.auth = v.auth || E.auth, E.slashes = E.slashes || v.slashes, E.href = E.format(), E;
10428
10428
  }, e.prototype.parseHost = function() {
10429
10429
  var v = this.host, S = r.exec(v);
10430
10430
  S && (S = S[0], S !== ":" && (this.port = S.substr(1)), v = v.substr(0, v.length - S.length)), v && (this.hostname = v);
@@ -10569,12 +10569,12 @@ var xl, Br, ls, Fr, qr, cs, Hr, us, Wr, ds, zr, hs, Vr, fs, Kr, ps, Ct, ms, Ke,
10569
10569
  E.close();
10570
10570
  });
10571
10571
  let P = typeof E.addEventListener < "u";
10572
- E.readyState === E.OPEN ? (k = I, k.socket = E) : (k = new a.BufferedDuplex(m, I, E), P ? E.addEventListener("open", U) : E.onopen = U), P ? (E.addEventListener("close", T), E.addEventListener("error", F), E.addEventListener("message", L)) : (E.onclose = T, E.onerror = F, E.onmessage = L);
10572
+ E.readyState === E.OPEN ? (k = I, k.socket = E) : (k = new a.BufferedDuplex(m, I, E), P ? E.addEventListener("open", $) : E.onopen = $), P ? (E.addEventListener("close", T), E.addEventListener("error", F), E.addEventListener("message", L)) : (E.onclose = T, E.onerror = F, E.onmessage = L);
10573
10573
  function O(Y, W, ee) {
10574
- let $ = new n.Transform({ objectMode: Y.objectMode });
10575
- return $._write = W, $._flush = ee, $;
10574
+ let U = new n.Transform({ objectMode: Y.objectMode });
10575
+ return U._write = W, U._flush = ee, U;
10576
10576
  }
10577
- function U() {
10577
+ function $() {
10578
10578
  l("WebSocket onOpen"), k instanceof a.BufferedDuplex && k.socketReady();
10579
10579
  }
10580
10580
  function T(Y) {
@@ -10598,8 +10598,8 @@ var xl, Br, ls, Fr, qr, cs, Hr, us, Wr, ds, zr, hs, Vr, fs, Kr, ps, Ct, ms, Ke,
10598
10598
  S && typeof Y == "string" && (Y = t.Buffer.from(Y, "utf8"));
10599
10599
  try {
10600
10600
  E.send(Y);
10601
- } catch ($) {
10602
- return ee($);
10601
+ } catch (U) {
10602
+ return ee(U);
10603
10603
  }
10604
10604
  ee();
10605
10605
  }
@@ -12462,7 +12462,8 @@ const Wd = "^[A-Z]{4}[0-9]{5}[A-Z]$", zd = "^\\S{12}$", Vl = "^[A-Z]{4}0[A-Z0-9]
12462
12462
  icon: "💼",
12463
12463
  fields: [
12464
12464
  // Two presumptive-taxation heads, each backed by its own
12465
- // business.presumptiveIncomes[] entry (matched on businessType):
12465
+ // business.presumptiveIncomes[] entry. The save marks the head explicitly
12466
+ // in businessType (the ITR service and Back Office key on that value):
12466
12467
  // 44AD — BUSINESS (bank receipts 6%, cash receipts 8%)
12467
12468
  // 44ADA — PROFESSIONAL (50% of gross receipts)
12468
12469
  // Net Profit is server-computed, so it is read-only and not submitted.
@@ -12797,16 +12798,16 @@ function ah(s, e) {
12797
12798
  }
12798
12799
  function lh(s, e) {
12799
12800
  const t = (i, n, o, a) => {
12800
- const l = Ee(s[i]), c = Ee(s[n]), u = _e(s[o]), d = _e(s[a]);
12801
- return l === void 0 && c === void 0 && u === void 0 && d === void 0 ? null : {
12802
- businessType: l ?? "",
12803
- businessCode: c ?? "",
12804
- cashAmount: d ?? 0,
12805
- bankAmount: u ?? 0
12801
+ const l = Ee(s[n]), c = _e(s[o]), u = _e(s[a]);
12802
+ return l === void 0 && c === void 0 && u === void 0 ? null : {
12803
+ businessType: i,
12804
+ businessCode: l ?? "",
12805
+ cashAmount: u ?? 0,
12806
+ bankAmount: c ?? 0
12806
12807
  };
12807
12808
  }, r = [
12808
- t("bizName", "bizNature", "bizReceiptsBank", "bizReceiptsCash"),
12809
- t("profName", "profNature", "profReceiptsBank", "profReceiptsCash")
12809
+ t("BUSINESS", "bizNature", "bizReceiptsBank", "bizReceiptsCash"),
12810
+ t("PROFESSIONAL", "profNature", "profReceiptsBank", "profReceiptsCash")
12810
12811
  ].filter((i) => i !== null);
12811
12812
  return r.length ? {
12812
12813
  userId: nt(e.userId),
@@ -13074,7 +13075,7 @@ function gh(s) {
13074
13075
  }));
13075
13076
  const n = De(e.houseProperties);
13076
13077
  n.length && (t.hpDetails = n.map((L) => {
13077
- const D = De(L.loanDetails), se = D.length ? D[0] : void 0, Y = Ne(L.grossAnnualRentReceived), W = D.length ? D.reduce((J, ge) => J + (Ne(ge.interest) ?? 0), 0) : void 0, ee = De(L.tenant), $ = De(L.coOwners), X = ee[0], M = $[0];
13078
+ const D = De(L.loanDetails), se = D.length ? D[0] : void 0, Y = Ne(L.grossAnnualRentReceived), W = D.length ? D.reduce((J, ge) => J + (Ne(ge.interest) ?? 0), 0) : void 0, ee = De(L.tenant), U = De(L.coOwners), Q = ee[0], M = U[0];
13078
13079
  return {
13079
13080
  typeOfHouseProperty: Pe(L.propertyType),
13080
13081
  loanTakenFrom: Pe(se?.loanTakenFrom),
@@ -13088,12 +13089,12 @@ function gh(s) {
13088
13089
  housePropertyAddress: Pe(L.address),
13089
13090
  housePropertyPincode: Pe(L.pinCode),
13090
13091
  rentalIncome: Y,
13091
- nameOfTenant: Pe(X?.name),
13092
- tenantPanNumber: Pe(X?.panNumber),
13092
+ nameOfTenant: Pe(Q?.name),
13093
+ tenantPanNumber: Pe(Q?.panNumber),
13093
13094
  eligible80EEAmount: Ne(L.eligible80EEAmount),
13094
13095
  eligible80EEAAmount: Ne(L.eligible80EEAAmount),
13095
13096
  propertyTax: Ne(L.propertyTax),
13096
- hasCoOwnedProperty: $.length > 0,
13097
+ hasCoOwnedProperty: U.length > 0,
13097
13098
  coOwnerName: Pe(M?.name),
13098
13099
  coOwnerPan: Pe(M?.panNumber),
13099
13100
  coOwnerShare: Ne(M?.share)?.toString()
@@ -13160,21 +13161,23 @@ function gh(s) {
13160
13161
  const E = e.business;
13161
13162
  if (E) {
13162
13163
  const L = De(E.presumptiveIncomes), D = (W) => {
13163
- const ee = De(W.incomes), $ = (X) => Ne(ee.find((M) => Pe(M.incomeType) === X)?.receipts) ?? 0;
13164
- return $("ANY_OTHER") > 0 ? !0 : $("BANK") > 0 || $("CASH") > 0 ? !1 : !!Pe(W.businessType)?.toUpperCase().includes("PROFESSION");
13164
+ const ee = Pe(W.businessType)?.trim().toUpperCase() ?? "";
13165
+ if (ee.includes("PROFESSION") || ee === "44ADA") return !0;
13166
+ if (ee.includes("BUSINESS") || ee === "44AD" || ee === "PRESUMPTIVE")
13167
+ return !1;
13168
+ const U = De(W.incomes), Q = (M) => Ne(U.find((J) => Pe(J.incomeType) === M)?.receipts) ?? 0;
13169
+ return Q("ANY_OTHER") > 0 ? !0 : (Q("BANK") > 0 || Q("CASH") > 0, !1);
13165
13170
  }, se = (W) => L.find((ee) => D(ee) === W), Y = (W, ee) => {
13166
13171
  if (!W) return;
13167
- const $ = De(W.incomes), X = (J) => Ne($.find((ge) => Pe(ge.incomeType) === J)?.receipts), M = X("BANK") || X("ANY_OTHER");
13168
- t[ee.name] = Pe(W.businessType), t[ee.nature] = Pe(W.natureOfBusiness), t[ee.bank] = M || void 0, t[ee.cash] = X("CASH") || void 0, t[ee.net] = At($.map((J) => Ne(J.presumptiveIncome))) || void 0;
13172
+ const U = De(W.incomes), Q = (J) => Ne(U.find((ge) => Pe(ge.incomeType) === J)?.receipts), M = Q("BANK") || Q("ANY_OTHER");
13173
+ t[ee.nature] = Pe(W.natureOfBusiness), t[ee.bank] = M || void 0, t[ee.cash] = Q("CASH") || void 0, t[ee.net] = At(U.map((J) => Ne(J.presumptiveIncome))) || void 0;
13169
13174
  };
13170
13175
  Y(se(!1), {
13171
- name: "bizName",
13172
13176
  nature: "bizNature",
13173
13177
  bank: "bizReceiptsBank",
13174
13178
  cash: "bizReceiptsCash",
13175
13179
  net: "bizNetProfit"
13176
13180
  }), Y(se(!0), {
13177
- name: "profName",
13178
13181
  nature: "profNature",
13179
13182
  bank: "profReceiptsBank",
13180
13183
  cash: "profReceiptsCash",
@@ -15584,7 +15587,7 @@ class hf extends HTMLElement {
15584
15587
  */
15585
15588
  mountLinkButton(e) {
15586
15589
  const t = this.renderGen;
15587
- import("./AikaaraLinkButton-DnxH9tlI.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: i }) => {
15590
+ import("./AikaaraLinkButton-B6gEzweN.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: i }) => {
15588
15591
  if (t !== this.renderGen) return;
15589
15592
  r();
15590
15593
  const n = document.createElement("aikaara-link-button");
@@ -19032,8 +19035,8 @@ async function Sp(s) {
19032
19035
  }
19033
19036
  const y = new Zf(i.auth, u);
19034
19037
  if (h) {
19035
- const I = i.tiledesk?.projectId ?? "", P = I ? tc(a, I) : null, O = i.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", U = P ?? (I ? nc(O, I) : "");
19036
- y.prime(h, { requestId: U, fullName: l });
19038
+ const I = i.tiledesk?.projectId ?? "", P = I ? tc(a, I) : null, O = i.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", $ = P ?? (I ? nc(O, I) : "");
19039
+ y.prime(h, { requestId: $, fullName: l });
19037
19040
  }
19038
19041
  const w = await y.get();
19039
19042
  a = a || w.userId;
@@ -19100,7 +19103,7 @@ async function Sp(s) {
19100
19103
  },
19101
19104
  async runMethodSelectPreflight(I) {
19102
19105
  const P = i.preflight;
19103
- return !P || !P.length ? {} : P.some((U) => U.trigger === "on-method-select") ? (await ys(
19106
+ return !P || !P.length ? {} : P.some(($) => $.trigger === "on-method-select") ? (await ys(
19104
19107
  P,
19105
19108
  {
19106
19109
  sessionToken: u,