@inditextech/weave-store-standalone 3.9.0 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -201,13 +201,13 @@ var require_ieee754 = __commonJS({ "../../node_modules/ieee754/index.js"(exports
201
201
  //#endregion
202
202
  //#region ../../node_modules/buffer/index.js
203
203
  var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports) {
204
- var base64 = require_base64_js();
205
- var ieee754 = require_ieee754();
206
- var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
204
+ const base64 = require_base64_js();
205
+ const ieee754 = require_ieee754();
206
+ const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
207
207
  exports.Buffer = Buffer$1;
208
208
  exports.SlowBuffer = SlowBuffer;
209
209
  exports.INSPECT_MAX_BYTES = 50;
210
- var K_MAX_LENGTH = 2147483647;
210
+ const K_MAX_LENGTH = 2147483647;
211
211
  exports.kMaxLength = K_MAX_LENGTH;
212
212
  /**
213
213
  * If `Buffer.TYPED_ARRAY_SUPPORT`:
@@ -227,8 +227,8 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
227
227
  if (!Buffer$1.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
228
228
  function typedArraySupport() {
229
229
  try {
230
- var arr = new Uint8Array(1);
231
- var proto = { foo: function() {
230
+ const arr = new Uint8Array(1);
231
+ const proto = { foo: function() {
232
232
  return 42;
233
233
  } };
234
234
  Object.setPrototypeOf(proto, Uint8Array.prototype);
@@ -254,7 +254,7 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
254
254
  });
255
255
  function createBuffer(length) {
256
256
  if (length > K_MAX_LENGTH) throw new RangeError("The value \"" + length + "\" is invalid for option \"size\"");
257
- var buf = new Uint8Array(length);
257
+ const buf = new Uint8Array(length);
258
258
  Object.setPrototypeOf(buf, Buffer$1.prototype);
259
259
  return buf;
260
260
  }
@@ -282,9 +282,9 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
282
282
  if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) return fromArrayBuffer(value, encodingOrOffset, length);
283
283
  if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) return fromArrayBuffer(value, encodingOrOffset, length);
284
284
  if (typeof value === "number") throw new TypeError("The \"value\" argument must not be of type number. Received type number");
285
- var valueOf = value.valueOf && value.valueOf();
285
+ const valueOf = value.valueOf && value.valueOf();
286
286
  if (valueOf != null && valueOf !== value) return Buffer$1.from(valueOf, encodingOrOffset, length);
287
- var b = fromObject(value);
287
+ const b = fromObject(value);
288
288
  if (b) return b;
289
289
  if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") return Buffer$1.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
290
290
  throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
@@ -338,21 +338,21 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
338
338
  function fromString(string, encoding) {
339
339
  if (typeof encoding !== "string" || encoding === "") encoding = "utf8";
340
340
  if (!Buffer$1.isEncoding(encoding)) throw new TypeError("Unknown encoding: " + encoding);
341
- var length = byteLength(string, encoding) | 0;
342
- var buf = createBuffer(length);
343
- var actual = buf.write(string, encoding);
341
+ const length = byteLength(string, encoding) | 0;
342
+ let buf = createBuffer(length);
343
+ const actual = buf.write(string, encoding);
344
344
  if (actual !== length) buf = buf.slice(0, actual);
345
345
  return buf;
346
346
  }
347
347
  function fromArrayLike(array) {
348
- var length = array.length < 0 ? 0 : checked(array.length) | 0;
349
- var buf = createBuffer(length);
350
- for (var i$1 = 0; i$1 < length; i$1 += 1) buf[i$1] = array[i$1] & 255;
348
+ const length = array.length < 0 ? 0 : checked(array.length) | 0;
349
+ const buf = createBuffer(length);
350
+ for (let i$1 = 0; i$1 < length; i$1 += 1) buf[i$1] = array[i$1] & 255;
351
351
  return buf;
352
352
  }
353
353
  function fromArrayView(arrayView) {
354
354
  if (isInstance(arrayView, Uint8Array)) {
355
- var copy = new Uint8Array(arrayView);
355
+ const copy = new Uint8Array(arrayView);
356
356
  return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
357
357
  }
358
358
  return fromArrayLike(arrayView);
@@ -360,7 +360,7 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
360
360
  function fromArrayBuffer(array, byteOffset, length) {
361
361
  if (byteOffset < 0 || array.byteLength < byteOffset) throw new RangeError("\"offset\" is outside of buffer bounds");
362
362
  if (array.byteLength < byteOffset + (length || 0)) throw new RangeError("\"length\" is outside of buffer bounds");
363
- var buf;
363
+ let buf;
364
364
  if (byteOffset === void 0 && length === void 0) buf = new Uint8Array(array);
365
365
  else if (length === void 0) buf = new Uint8Array(array, byteOffset);
366
366
  else buf = new Uint8Array(array, byteOffset, length);
@@ -369,8 +369,8 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
369
369
  }
370
370
  function fromObject(obj) {
371
371
  if (Buffer$1.isBuffer(obj)) {
372
- var len$1 = checked(obj.length) | 0;
373
- var buf = createBuffer(len$1);
372
+ const len$1 = checked(obj.length) | 0;
373
+ const buf = createBuffer(len$1);
374
374
  if (buf.length === 0) return buf;
375
375
  obj.copy(buf, 0, 0, len$1);
376
376
  return buf;
@@ -397,9 +397,9 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
397
397
  if (isInstance(b, Uint8Array)) b = Buffer$1.from(b, b.offset, b.byteLength);
398
398
  if (!Buffer$1.isBuffer(a) || !Buffer$1.isBuffer(b)) throw new TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
399
399
  if (a === b) return 0;
400
- var x = a.length;
401
- var y = b.length;
402
- for (var i$1 = 0, len$1 = Math.min(x, y); i$1 < len$1; ++i$1) if (a[i$1] !== b[i$1]) {
400
+ let x = a.length;
401
+ let y = b.length;
402
+ for (let i$1 = 0, len$1 = Math.min(x, y); i$1 < len$1; ++i$1) if (a[i$1] !== b[i$1]) {
403
403
  x = a[i$1];
404
404
  y = b[i$1];
405
405
  break;
@@ -427,17 +427,19 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
427
427
  Buffer$1.concat = function concat(list, length) {
428
428
  if (!Array.isArray(list)) throw new TypeError("\"list\" argument must be an Array of Buffers");
429
429
  if (list.length === 0) return Buffer$1.alloc(0);
430
- var i$1;
430
+ let i$1;
431
431
  if (length === void 0) {
432
432
  length = 0;
433
433
  for (i$1 = 0; i$1 < list.length; ++i$1) length += list[i$1].length;
434
434
  }
435
- var buffer = Buffer$1.allocUnsafe(length);
436
- var pos = 0;
435
+ const buffer = Buffer$1.allocUnsafe(length);
436
+ let pos = 0;
437
437
  for (i$1 = 0; i$1 < list.length; ++i$1) {
438
- var buf = list[i$1];
439
- if (isInstance(buf, Uint8Array)) if (pos + buf.length > buffer.length) Buffer$1.from(buf).copy(buffer, pos);
440
- else Uint8Array.prototype.set.call(buffer, buf, pos);
438
+ let buf = list[i$1];
439
+ if (isInstance(buf, Uint8Array)) if (pos + buf.length > buffer.length) {
440
+ if (!Buffer$1.isBuffer(buf)) buf = Buffer$1.from(buf);
441
+ buf.copy(buffer, pos);
442
+ } else Uint8Array.prototype.set.call(buffer, buf, pos);
441
443
  else if (!Buffer$1.isBuffer(buf)) throw new TypeError("\"list\" argument must be an Array of Buffers");
442
444
  else buf.copy(buffer, pos);
443
445
  pos += buf.length;
@@ -448,10 +450,10 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
448
450
  if (Buffer$1.isBuffer(string)) return string.length;
449
451
  if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) return string.byteLength;
450
452
  if (typeof string !== "string") throw new TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type " + typeof string);
451
- var len$1 = string.length;
452
- var mustMatch = arguments.length > 2 && arguments[2] === true;
453
+ const len$1 = string.length;
454
+ const mustMatch = arguments.length > 2 && arguments[2] === true;
453
455
  if (!mustMatch && len$1 === 0) return 0;
454
- var loweredCase = false;
456
+ let loweredCase = false;
455
457
  for (;;) switch (encoding) {
456
458
  case "ascii":
457
459
  case "latin1":
@@ -472,7 +474,7 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
472
474
  }
473
475
  Buffer$1.byteLength = byteLength;
474
476
  function slowToString(encoding, start, end) {
475
- var loweredCase = false;
477
+ let loweredCase = false;
476
478
  if (start === void 0 || start < 0) start = 0;
477
479
  if (start > this.length) return "";
478
480
  if (end === void 0 || end > this.length) end = this.length;
@@ -501,29 +503,29 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
501
503
  }
502
504
  Buffer$1.prototype._isBuffer = true;
503
505
  function swap(b, n, m) {
504
- var i$1 = b[n];
506
+ const i$1 = b[n];
505
507
  b[n] = b[m];
506
508
  b[m] = i$1;
507
509
  }
508
510
  Buffer$1.prototype.swap16 = function swap16() {
509
- var len$1 = this.length;
511
+ const len$1 = this.length;
510
512
  if (len$1 % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
511
- for (var i$1 = 0; i$1 < len$1; i$1 += 2) swap(this, i$1, i$1 + 1);
513
+ for (let i$1 = 0; i$1 < len$1; i$1 += 2) swap(this, i$1, i$1 + 1);
512
514
  return this;
513
515
  };
514
516
  Buffer$1.prototype.swap32 = function swap32() {
515
- var len$1 = this.length;
517
+ const len$1 = this.length;
516
518
  if (len$1 % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
517
- for (var i$1 = 0; i$1 < len$1; i$1 += 4) {
519
+ for (let i$1 = 0; i$1 < len$1; i$1 += 4) {
518
520
  swap(this, i$1, i$1 + 3);
519
521
  swap(this, i$1 + 1, i$1 + 2);
520
522
  }
521
523
  return this;
522
524
  };
523
525
  Buffer$1.prototype.swap64 = function swap64() {
524
- var len$1 = this.length;
526
+ const len$1 = this.length;
525
527
  if (len$1 % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
526
- for (var i$1 = 0; i$1 < len$1; i$1 += 8) {
528
+ for (let i$1 = 0; i$1 < len$1; i$1 += 8) {
527
529
  swap(this, i$1, i$1 + 7);
528
530
  swap(this, i$1 + 1, i$1 + 6);
529
531
  swap(this, i$1 + 2, i$1 + 5);
@@ -532,7 +534,7 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
532
534
  return this;
533
535
  };
534
536
  Buffer$1.prototype.toString = function toString() {
535
- var length = this.length;
537
+ const length = this.length;
536
538
  if (length === 0) return "";
537
539
  if (arguments.length === 0) return utf8Slice(this, 0, length);
538
540
  return slowToString.apply(this, arguments);
@@ -544,8 +546,8 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
544
546
  return Buffer$1.compare(this, b) === 0;
545
547
  };
546
548
  Buffer$1.prototype.inspect = function inspect() {
547
- var str = "";
548
- var max = exports.INSPECT_MAX_BYTES;
549
+ let str = "";
550
+ const max = exports.INSPECT_MAX_BYTES;
549
551
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
550
552
  if (this.length > max) str += " ... ";
551
553
  return "<Buffer " + str + ">";
@@ -567,12 +569,12 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
567
569
  thisStart >>>= 0;
568
570
  thisEnd >>>= 0;
569
571
  if (this === target) return 0;
570
- var x = thisEnd - thisStart;
571
- var y = end - start;
572
- var len$1 = Math.min(x, y);
573
- var thisCopy = this.slice(thisStart, thisEnd);
574
- var targetCopy = target.slice(start, end);
575
- for (var i$1 = 0; i$1 < len$1; ++i$1) if (thisCopy[i$1] !== targetCopy[i$1]) {
572
+ let x = thisEnd - thisStart;
573
+ let y = end - start;
574
+ const len$1 = Math.min(x, y);
575
+ const thisCopy = this.slice(thisStart, thisEnd);
576
+ const targetCopy = target.slice(start, end);
577
+ for (let i$1 = 0; i$1 < len$1; ++i$1) if (thisCopy[i$1] !== targetCopy[i$1]) {
576
578
  x = thisCopy[i$1];
577
579
  y = targetCopy[i$1];
578
580
  break;
@@ -608,9 +610,9 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
608
610
  throw new TypeError("val must be string, number or Buffer");
609
611
  }
610
612
  function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
611
- var indexSize = 1;
612
- var arrLength = arr.length;
613
- var valLength = val.length;
613
+ let indexSize = 1;
614
+ let arrLength = arr.length;
615
+ let valLength = val.length;
614
616
  if (encoding !== void 0) {
615
617
  encoding = String(encoding).toLowerCase();
616
618
  if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
@@ -625,9 +627,9 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
625
627
  if (indexSize === 1) return buf[i$2];
626
628
  else return buf.readUInt16BE(i$2 * indexSize);
627
629
  }
628
- var i$1;
630
+ let i$1;
629
631
  if (dir) {
630
- var foundIndex = -1;
632
+ let foundIndex = -1;
631
633
  for (i$1 = byteOffset; i$1 < arrLength; i$1++) if (read(arr, i$1) === read(val, foundIndex === -1 ? 0 : i$1 - foundIndex)) {
632
634
  if (foundIndex === -1) foundIndex = i$1;
633
635
  if (i$1 - foundIndex + 1 === valLength) return foundIndex * indexSize;
@@ -638,8 +640,8 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
638
640
  } else {
639
641
  if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
640
642
  for (i$1 = byteOffset; i$1 >= 0; i$1--) {
641
- var found = true;
642
- for (var j = 0; j < valLength; j++) if (read(arr, i$1 + j) !== read(val, j)) {
643
+ let found = true;
644
+ for (let j = 0; j < valLength; j++) if (read(arr, i$1 + j) !== read(val, j)) {
643
645
  found = false;
644
646
  break;
645
647
  }
@@ -659,16 +661,17 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
659
661
  };
660
662
  function hexWrite(buf, string, offset, length) {
661
663
  offset = Number(offset) || 0;
662
- var remaining = buf.length - offset;
664
+ const remaining = buf.length - offset;
663
665
  if (!length) length = remaining;
664
666
  else {
665
667
  length = Number(length);
666
668
  if (length > remaining) length = remaining;
667
669
  }
668
- var strLen = string.length;
670
+ const strLen = string.length;
669
671
  if (length > strLen / 2) length = strLen / 2;
670
- for (var i$1 = 0; i$1 < length; ++i$1) {
671
- var parsed = parseInt(string.substr(i$1 * 2, 2), 16);
672
+ let i$1;
673
+ for (i$1 = 0; i$1 < length; ++i$1) {
674
+ const parsed = parseInt(string.substr(i$1 * 2, 2), 16);
672
675
  if (numberIsNaN(parsed)) return i$1;
673
676
  buf[offset + i$1] = parsed;
674
677
  }
@@ -705,11 +708,11 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
705
708
  length = void 0;
706
709
  }
707
710
  } else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
708
- var remaining = this.length - offset;
711
+ const remaining = this.length - offset;
709
712
  if (length === void 0 || length > remaining) length = remaining;
710
713
  if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) throw new RangeError("Attempt to write outside buffer bounds");
711
714
  if (!encoding) encoding = "utf8";
712
- var loweredCase = false;
715
+ let loweredCase = false;
713
716
  for (;;) switch (encoding) {
714
717
  case "hex": return hexWrite(this, string, offset, length);
715
718
  case "utf8":
@@ -740,14 +743,14 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
740
743
  }
741
744
  function utf8Slice(buf, start, end) {
742
745
  end = Math.min(buf.length, end);
743
- var res = [];
744
- var i$1 = start;
746
+ const res = [];
747
+ let i$1 = start;
745
748
  while (i$1 < end) {
746
- var firstByte = buf[i$1];
747
- var codePoint = null;
748
- var bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
749
+ const firstByte = buf[i$1];
750
+ let codePoint = null;
751
+ let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
749
752
  if (i$1 + bytesPerSequence <= end) {
750
- var secondByte, thirdByte, fourthByte, tempCodePoint;
753
+ let secondByte, thirdByte, fourthByte, tempCodePoint;
751
754
  switch (bytesPerSequence) {
752
755
  case 1:
753
756
  if (firstByte < 128) codePoint = firstByte;
@@ -790,43 +793,43 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
790
793
  }
791
794
  return decodeCodePointsArray(res);
792
795
  }
793
- var MAX_ARGUMENTS_LENGTH = 4096;
796
+ const MAX_ARGUMENTS_LENGTH = 4096;
794
797
  function decodeCodePointsArray(codePoints) {
795
- var len$1 = codePoints.length;
798
+ const len$1 = codePoints.length;
796
799
  if (len$1 <= MAX_ARGUMENTS_LENGTH) return String.fromCharCode.apply(String, codePoints);
797
- var res = "";
798
- var i$1 = 0;
800
+ let res = "";
801
+ let i$1 = 0;
799
802
  while (i$1 < len$1) res += String.fromCharCode.apply(String, codePoints.slice(i$1, i$1 += MAX_ARGUMENTS_LENGTH));
800
803
  return res;
801
804
  }
802
805
  function asciiSlice(buf, start, end) {
803
- var ret = "";
806
+ let ret = "";
804
807
  end = Math.min(buf.length, end);
805
- for (var i$1 = start; i$1 < end; ++i$1) ret += String.fromCharCode(buf[i$1] & 127);
808
+ for (let i$1 = start; i$1 < end; ++i$1) ret += String.fromCharCode(buf[i$1] & 127);
806
809
  return ret;
807
810
  }
808
811
  function latin1Slice(buf, start, end) {
809
- var ret = "";
812
+ let ret = "";
810
813
  end = Math.min(buf.length, end);
811
- for (var i$1 = start; i$1 < end; ++i$1) ret += String.fromCharCode(buf[i$1]);
814
+ for (let i$1 = start; i$1 < end; ++i$1) ret += String.fromCharCode(buf[i$1]);
812
815
  return ret;
813
816
  }
814
817
  function hexSlice(buf, start, end) {
815
- var len$1 = buf.length;
818
+ const len$1 = buf.length;
816
819
  if (!start || start < 0) start = 0;
817
820
  if (!end || end < 0 || end > len$1) end = len$1;
818
- var out = "";
819
- for (var i$1 = start; i$1 < end; ++i$1) out += hexSliceLookupTable[buf[i$1]];
821
+ let out = "";
822
+ for (let i$1 = start; i$1 < end; ++i$1) out += hexSliceLookupTable[buf[i$1]];
820
823
  return out;
821
824
  }
822
825
  function utf16leSlice(buf, start, end) {
823
- var bytes = buf.slice(start, end);
824
- var res = "";
825
- for (var i$1 = 0; i$1 < bytes.length - 1; i$1 += 2) res += String.fromCharCode(bytes[i$1] + bytes[i$1 + 1] * 256);
826
+ const bytes = buf.slice(start, end);
827
+ let res = "";
828
+ for (let i$1 = 0; i$1 < bytes.length - 1; i$1 += 2) res += String.fromCharCode(bytes[i$1] + bytes[i$1 + 1] * 256);
826
829
  return res;
827
830
  }
828
831
  Buffer$1.prototype.slice = function slice(start, end) {
829
- var len$1 = this.length;
832
+ const len$1 = this.length;
830
833
  start = ~~start;
831
834
  end = end === void 0 ? len$1 : ~~end;
832
835
  if (start < 0) {
@@ -838,7 +841,7 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
838
841
  if (end < 0) end = 0;
839
842
  } else if (end > len$1) end = len$1;
840
843
  if (end < start) end = start;
841
- var newBuf = this.subarray(start, end);
844
+ const newBuf = this.subarray(start, end);
842
845
  Object.setPrototypeOf(newBuf, Buffer$1.prototype);
843
846
  return newBuf;
844
847
  };
@@ -850,9 +853,9 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
850
853
  offset = offset >>> 0;
851
854
  byteLength$2 = byteLength$2 >>> 0;
852
855
  if (!noAssert) checkOffset(offset, byteLength$2, this.length);
853
- var val = this[offset];
854
- var mul = 1;
855
- var i$1 = 0;
856
+ let val = this[offset];
857
+ let mul = 1;
858
+ let i$1 = 0;
856
859
  while (++i$1 < byteLength$2 && (mul *= 256)) val += this[offset + i$1] * mul;
857
860
  return val;
858
861
  };
@@ -860,8 +863,8 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
860
863
  offset = offset >>> 0;
861
864
  byteLength$2 = byteLength$2 >>> 0;
862
865
  if (!noAssert) checkOffset(offset, byteLength$2, this.length);
863
- var val = this[offset + --byteLength$2];
864
- var mul = 1;
866
+ let val = this[offset + --byteLength$2];
867
+ let mul = 1;
865
868
  while (byteLength$2 > 0 && (mul *= 256)) val += this[offset + --byteLength$2] * mul;
866
869
  return val;
867
870
  };
@@ -890,13 +893,33 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
890
893
  if (!noAssert) checkOffset(offset, 4, this.length);
891
894
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
892
895
  };
896
+ Buffer$1.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
897
+ offset = offset >>> 0;
898
+ validateNumber(offset, "offset");
899
+ const first = this[offset];
900
+ const last = this[offset + 7];
901
+ if (first === void 0 || last === void 0) boundsError(offset, this.length - 8);
902
+ const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
903
+ const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
904
+ return BigInt(lo) + (BigInt(hi) << BigInt(32));
905
+ });
906
+ Buffer$1.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
907
+ offset = offset >>> 0;
908
+ validateNumber(offset, "offset");
909
+ const first = this[offset];
910
+ const last = this[offset + 7];
911
+ if (first === void 0 || last === void 0) boundsError(offset, this.length - 8);
912
+ const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
913
+ const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
914
+ return (BigInt(hi) << BigInt(32)) + BigInt(lo);
915
+ });
893
916
  Buffer$1.prototype.readIntLE = function readIntLE(offset, byteLength$2, noAssert) {
894
917
  offset = offset >>> 0;
895
918
  byteLength$2 = byteLength$2 >>> 0;
896
919
  if (!noAssert) checkOffset(offset, byteLength$2, this.length);
897
- var val = this[offset];
898
- var mul = 1;
899
- var i$1 = 0;
920
+ let val = this[offset];
921
+ let mul = 1;
922
+ let i$1 = 0;
900
923
  while (++i$1 < byteLength$2 && (mul *= 256)) val += this[offset + i$1] * mul;
901
924
  mul *= 128;
902
925
  if (val >= mul) val -= Math.pow(2, 8 * byteLength$2);
@@ -906,9 +929,9 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
906
929
  offset = offset >>> 0;
907
930
  byteLength$2 = byteLength$2 >>> 0;
908
931
  if (!noAssert) checkOffset(offset, byteLength$2, this.length);
909
- var i$1 = byteLength$2;
910
- var mul = 1;
911
- var val = this[offset + --i$1];
932
+ let i$1 = byteLength$2;
933
+ let mul = 1;
934
+ let val = this[offset + --i$1];
912
935
  while (i$1 > 0 && (mul *= 256)) val += this[offset + --i$1] * mul;
913
936
  mul *= 128;
914
937
  if (val >= mul) val -= Math.pow(2, 8 * byteLength$2);
@@ -923,13 +946,13 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
923
946
  Buffer$1.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
924
947
  offset = offset >>> 0;
925
948
  if (!noAssert) checkOffset(offset, 2, this.length);
926
- var val = this[offset] | this[offset + 1] << 8;
949
+ const val = this[offset] | this[offset + 1] << 8;
927
950
  return val & 32768 ? val | 4294901760 : val;
928
951
  };
929
952
  Buffer$1.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
930
953
  offset = offset >>> 0;
931
954
  if (!noAssert) checkOffset(offset, 2, this.length);
932
- var val = this[offset + 1] | this[offset] << 8;
955
+ const val = this[offset + 1] | this[offset] << 8;
933
956
  return val & 32768 ? val | 4294901760 : val;
934
957
  };
935
958
  Buffer$1.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
@@ -942,6 +965,24 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
942
965
  if (!noAssert) checkOffset(offset, 4, this.length);
943
966
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
944
967
  };
968
+ Buffer$1.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
969
+ offset = offset >>> 0;
970
+ validateNumber(offset, "offset");
971
+ const first = this[offset];
972
+ const last = this[offset + 7];
973
+ if (first === void 0 || last === void 0) boundsError(offset, this.length - 8);
974
+ const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
975
+ return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
976
+ });
977
+ Buffer$1.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
978
+ offset = offset >>> 0;
979
+ validateNumber(offset, "offset");
980
+ const first = this[offset];
981
+ const last = this[offset + 7];
982
+ if (first === void 0 || last === void 0) boundsError(offset, this.length - 8);
983
+ const val = (first << 24) + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
984
+ return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
985
+ });
945
986
  Buffer$1.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
946
987
  offset = offset >>> 0;
947
988
  if (!noAssert) checkOffset(offset, 4, this.length);
@@ -972,11 +1013,11 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
972
1013
  offset = offset >>> 0;
973
1014
  byteLength$2 = byteLength$2 >>> 0;
974
1015
  if (!noAssert) {
975
- var maxBytes = Math.pow(2, 8 * byteLength$2) - 1;
1016
+ const maxBytes = Math.pow(2, 8 * byteLength$2) - 1;
976
1017
  checkInt(this, value, offset, byteLength$2, maxBytes, 0);
977
1018
  }
978
- var mul = 1;
979
- var i$1 = 0;
1019
+ let mul = 1;
1020
+ let i$1 = 0;
980
1021
  this[offset] = value & 255;
981
1022
  while (++i$1 < byteLength$2 && (mul *= 256)) this[offset + i$1] = value / mul & 255;
982
1023
  return offset + byteLength$2;
@@ -986,11 +1027,11 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
986
1027
  offset = offset >>> 0;
987
1028
  byteLength$2 = byteLength$2 >>> 0;
988
1029
  if (!noAssert) {
989
- var maxBytes = Math.pow(2, 8 * byteLength$2) - 1;
1030
+ const maxBytes = Math.pow(2, 8 * byteLength$2) - 1;
990
1031
  checkInt(this, value, offset, byteLength$2, maxBytes, 0);
991
1032
  }
992
- var i$1 = byteLength$2 - 1;
993
- var mul = 1;
1033
+ let i$1 = byteLength$2 - 1;
1034
+ let mul = 1;
994
1035
  this[offset + i$1] = value & 255;
995
1036
  while (--i$1 >= 0 && (mul *= 256)) this[offset + i$1] = value / mul & 255;
996
1037
  return offset + byteLength$2;
@@ -1038,16 +1079,62 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1038
1079
  this[offset + 3] = value & 255;
1039
1080
  return offset + 4;
1040
1081
  };
1082
+ function wrtBigUInt64LE(buf, value, offset, min, max) {
1083
+ checkIntBI(value, min, max, buf, offset, 7);
1084
+ let lo = Number(value & BigInt(4294967295));
1085
+ buf[offset++] = lo;
1086
+ lo = lo >> 8;
1087
+ buf[offset++] = lo;
1088
+ lo = lo >> 8;
1089
+ buf[offset++] = lo;
1090
+ lo = lo >> 8;
1091
+ buf[offset++] = lo;
1092
+ let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1093
+ buf[offset++] = hi;
1094
+ hi = hi >> 8;
1095
+ buf[offset++] = hi;
1096
+ hi = hi >> 8;
1097
+ buf[offset++] = hi;
1098
+ hi = hi >> 8;
1099
+ buf[offset++] = hi;
1100
+ return offset;
1101
+ }
1102
+ function wrtBigUInt64BE(buf, value, offset, min, max) {
1103
+ checkIntBI(value, min, max, buf, offset, 7);
1104
+ let lo = Number(value & BigInt(4294967295));
1105
+ buf[offset + 7] = lo;
1106
+ lo = lo >> 8;
1107
+ buf[offset + 6] = lo;
1108
+ lo = lo >> 8;
1109
+ buf[offset + 5] = lo;
1110
+ lo = lo >> 8;
1111
+ buf[offset + 4] = lo;
1112
+ let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1113
+ buf[offset + 3] = hi;
1114
+ hi = hi >> 8;
1115
+ buf[offset + 2] = hi;
1116
+ hi = hi >> 8;
1117
+ buf[offset + 1] = hi;
1118
+ hi = hi >> 8;
1119
+ buf[offset] = hi;
1120
+ return offset + 8;
1121
+ }
1122
+ Buffer$1.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1123
+ return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1124
+ });
1125
+ Buffer$1.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1126
+ return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1127
+ });
1041
1128
  Buffer$1.prototype.writeIntLE = function writeIntLE(value, offset, byteLength$2, noAssert) {
1042
1129
  value = +value;
1043
1130
  offset = offset >>> 0;
1044
1131
  if (!noAssert) {
1045
- var limit = Math.pow(2, 8 * byteLength$2 - 1);
1132
+ const limit = Math.pow(2, 8 * byteLength$2 - 1);
1046
1133
  checkInt(this, value, offset, byteLength$2, limit - 1, -limit);
1047
1134
  }
1048
- var i$1 = 0;
1049
- var mul = 1;
1050
- var sub = 0;
1135
+ let i$1 = 0;
1136
+ let mul = 1;
1137
+ let sub = 0;
1051
1138
  this[offset] = value & 255;
1052
1139
  while (++i$1 < byteLength$2 && (mul *= 256)) {
1053
1140
  if (value < 0 && sub === 0 && this[offset + i$1 - 1] !== 0) sub = 1;
@@ -1059,12 +1146,12 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1059
1146
  value = +value;
1060
1147
  offset = offset >>> 0;
1061
1148
  if (!noAssert) {
1062
- var limit = Math.pow(2, 8 * byteLength$2 - 1);
1149
+ const limit = Math.pow(2, 8 * byteLength$2 - 1);
1063
1150
  checkInt(this, value, offset, byteLength$2, limit - 1, -limit);
1064
1151
  }
1065
- var i$1 = byteLength$2 - 1;
1066
- var mul = 1;
1067
- var sub = 0;
1152
+ let i$1 = byteLength$2 - 1;
1153
+ let mul = 1;
1154
+ let sub = 0;
1068
1155
  this[offset + i$1] = value & 255;
1069
1156
  while (--i$1 >= 0 && (mul *= 256)) {
1070
1157
  if (value < 0 && sub === 0 && this[offset + i$1 + 1] !== 0) sub = 1;
@@ -1117,6 +1204,12 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1117
1204
  this[offset + 3] = value & 255;
1118
1205
  return offset + 4;
1119
1206
  };
1207
+ Buffer$1.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1208
+ return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1209
+ });
1210
+ Buffer$1.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1211
+ return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1212
+ });
1120
1213
  function checkIEEE754(buf, value, offset, ext, max, min) {
1121
1214
  if (offset + ext > buf.length) throw new RangeError("Index out of range");
1122
1215
  if (offset < 0) throw new RangeError("Index out of range");
@@ -1161,7 +1254,7 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1161
1254
  if (end < 0) throw new RangeError("sourceEnd out of bounds");
1162
1255
  if (end > this.length) end = this.length;
1163
1256
  if (target.length - targetStart < end - start) end = target.length - targetStart + start;
1164
- var len$1 = end - start;
1257
+ const len$1 = end - start;
1165
1258
  if (this === target && typeof Uint8Array.prototype.copyWithin === "function") this.copyWithin(targetStart, start, end);
1166
1259
  else Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
1167
1260
  return len$1;
@@ -1179,7 +1272,7 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1179
1272
  if (encoding !== void 0 && typeof encoding !== "string") throw new TypeError("encoding must be a string");
1180
1273
  if (typeof encoding === "string" && !Buffer$1.isEncoding(encoding)) throw new TypeError("Unknown encoding: " + encoding);
1181
1274
  if (val.length === 1) {
1182
- var code$1 = val.charCodeAt(0);
1275
+ const code$1 = val.charCodeAt(0);
1183
1276
  if (encoding === "utf8" && code$1 < 128 || encoding === "latin1") val = code$1;
1184
1277
  }
1185
1278
  } else if (typeof val === "number") val = val & 255;
@@ -1189,17 +1282,99 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1189
1282
  start = start >>> 0;
1190
1283
  end = end === void 0 ? this.length : end >>> 0;
1191
1284
  if (!val) val = 0;
1192
- var i$1;
1285
+ let i$1;
1193
1286
  if (typeof val === "number") for (i$1 = start; i$1 < end; ++i$1) this[i$1] = val;
1194
1287
  else {
1195
- var bytes = Buffer$1.isBuffer(val) ? val : Buffer$1.from(val, encoding);
1196
- var len$1 = bytes.length;
1288
+ const bytes = Buffer$1.isBuffer(val) ? val : Buffer$1.from(val, encoding);
1289
+ const len$1 = bytes.length;
1197
1290
  if (len$1 === 0) throw new TypeError("The value \"" + val + "\" is invalid for argument \"value\"");
1198
1291
  for (i$1 = 0; i$1 < end - start; ++i$1) this[i$1 + start] = bytes[i$1 % len$1];
1199
1292
  }
1200
1293
  return this;
1201
1294
  };
1202
- var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
1295
+ const errors = {};
1296
+ function E(sym, getMessage, Base) {
1297
+ errors[sym] = class NodeError extends Base {
1298
+ constructor() {
1299
+ super();
1300
+ Object.defineProperty(this, "message", {
1301
+ value: getMessage.apply(this, arguments),
1302
+ writable: true,
1303
+ configurable: true
1304
+ });
1305
+ this.name = `${this.name} [${sym}]`;
1306
+ this.stack;
1307
+ delete this.name;
1308
+ }
1309
+ get code() {
1310
+ return sym;
1311
+ }
1312
+ set code(value) {
1313
+ Object.defineProperty(this, "code", {
1314
+ configurable: true,
1315
+ enumerable: true,
1316
+ value,
1317
+ writable: true
1318
+ });
1319
+ }
1320
+ toString() {
1321
+ return `${this.name} [${sym}]: ${this.message}`;
1322
+ }
1323
+ };
1324
+ }
1325
+ E("ERR_BUFFER_OUT_OF_BOUNDS", function(name) {
1326
+ if (name) return `${name} is outside of buffer bounds`;
1327
+ return "Attempt to access memory outside buffer bounds";
1328
+ }, RangeError);
1329
+ E("ERR_INVALID_ARG_TYPE", function(name, actual) {
1330
+ return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
1331
+ }, TypeError);
1332
+ E("ERR_OUT_OF_RANGE", function(str, range, input) {
1333
+ let msg = `The value of "${str}" is out of range.`;
1334
+ let received = input;
1335
+ if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) received = addNumericalSeparator(String(input));
1336
+ else if (typeof input === "bigint") {
1337
+ received = String(input);
1338
+ if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) received = addNumericalSeparator(received);
1339
+ received += "n";
1340
+ }
1341
+ msg += ` It must be ${range}. Received ${received}`;
1342
+ return msg;
1343
+ }, RangeError);
1344
+ function addNumericalSeparator(val) {
1345
+ let res = "";
1346
+ let i$1 = val.length;
1347
+ const start = val[0] === "-" ? 1 : 0;
1348
+ for (; i$1 >= start + 4; i$1 -= 3) res = `_${val.slice(i$1 - 3, i$1)}${res}`;
1349
+ return `${val.slice(0, i$1)}${res}`;
1350
+ }
1351
+ function checkBounds(buf, offset, byteLength$2) {
1352
+ validateNumber(offset, "offset");
1353
+ if (buf[offset] === void 0 || buf[offset + byteLength$2] === void 0) boundsError(offset, buf.length - (byteLength$2 + 1));
1354
+ }
1355
+ function checkIntBI(value, min, max, buf, offset, byteLength$2) {
1356
+ if (value > max || value < min) {
1357
+ const n = typeof min === "bigint" ? "n" : "";
1358
+ let range;
1359
+ if (byteLength$2 > 3) if (min === 0 || min === BigInt(0)) range = `>= 0${n} and < 2${n} ** ${(byteLength$2 + 1) * 8}${n}`;
1360
+ else range = `>= -(2${n} ** ${(byteLength$2 + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength$2 + 1) * 8 - 1}${n}`;
1361
+ else range = `>= ${min}${n} and <= ${max}${n}`;
1362
+ throw new errors.ERR_OUT_OF_RANGE("value", range, value);
1363
+ }
1364
+ checkBounds(buf, offset, byteLength$2);
1365
+ }
1366
+ function validateNumber(value, name) {
1367
+ if (typeof value !== "number") throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
1368
+ }
1369
+ function boundsError(value, length, type) {
1370
+ if (Math.floor(value) !== value) {
1371
+ validateNumber(value, type);
1372
+ throw new errors.ERR_OUT_OF_RANGE(type || "offset", "an integer", value);
1373
+ }
1374
+ if (length < 0) throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
1375
+ throw new errors.ERR_OUT_OF_RANGE(type || "offset", `>= ${type ? 1 : 0} and <= ${length}`, value);
1376
+ }
1377
+ const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
1203
1378
  function base64clean(str) {
1204
1379
  str = str.split("=")[0];
1205
1380
  str = str.trim().replace(INVALID_BASE64_RE, "");
@@ -1209,11 +1384,11 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1209
1384
  }
1210
1385
  function utf8ToBytes(string, units) {
1211
1386
  units = units || Infinity;
1212
- var codePoint;
1213
- var length = string.length;
1214
- var leadSurrogate = null;
1215
- var bytes = [];
1216
- for (var i$1 = 0; i$1 < length; ++i$1) {
1387
+ let codePoint;
1388
+ const length = string.length;
1389
+ let leadSurrogate = null;
1390
+ const bytes = [];
1391
+ for (let i$1 = 0; i$1 < length; ++i$1) {
1217
1392
  codePoint = string.charCodeAt(i$1);
1218
1393
  if (codePoint > 55295 && codePoint < 57344) {
1219
1394
  if (!leadSurrogate) {
@@ -1254,14 +1429,14 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1254
1429
  return bytes;
1255
1430
  }
1256
1431
  function asciiToBytes(str) {
1257
- var byteArray = [];
1258
- for (var i$1 = 0; i$1 < str.length; ++i$1) byteArray.push(str.charCodeAt(i$1) & 255);
1432
+ const byteArray = [];
1433
+ for (let i$1 = 0; i$1 < str.length; ++i$1) byteArray.push(str.charCodeAt(i$1) & 255);
1259
1434
  return byteArray;
1260
1435
  }
1261
1436
  function utf16leToBytes(str, units) {
1262
- var c, hi, lo;
1263
- var byteArray = [];
1264
- for (var i$1 = 0; i$1 < str.length; ++i$1) {
1437
+ let c, hi, lo;
1438
+ const byteArray = [];
1439
+ for (let i$1 = 0; i$1 < str.length; ++i$1) {
1265
1440
  if ((units -= 2) < 0) break;
1266
1441
  c = str.charCodeAt(i$1);
1267
1442
  hi = c >> 8;
@@ -1275,7 +1450,8 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1275
1450
  return base64.toByteArray(base64clean(str));
1276
1451
  }
1277
1452
  function blitBuffer(src, dst, offset, length) {
1278
- for (var i$1 = 0; i$1 < length; ++i$1) {
1453
+ let i$1;
1454
+ for (i$1 = 0; i$1 < length; ++i$1) {
1279
1455
  if (i$1 + offset >= dst.length || i$1 >= src.length) break;
1280
1456
  dst[i$1 + offset] = src[i$1];
1281
1457
  }
@@ -1287,15 +1463,21 @@ var require_buffer = __commonJS({ "../../node_modules/buffer/index.js"(exports)
1287
1463
  function numberIsNaN(obj) {
1288
1464
  return obj !== obj;
1289
1465
  }
1290
- var hexSliceLookupTable = function() {
1291
- var alphabet = "0123456789abcdef";
1292
- var table = new Array(256);
1293
- for (var i$1 = 0; i$1 < 16; ++i$1) {
1294
- var i16 = i$1 * 16;
1295
- for (var j = 0; j < 16; ++j) table[i16 + j] = alphabet[i$1] + alphabet[j];
1466
+ const hexSliceLookupTable = function() {
1467
+ const alphabet = "0123456789abcdef";
1468
+ const table = new Array(256);
1469
+ for (let i$1 = 0; i$1 < 16; ++i$1) {
1470
+ const i16 = i$1 * 16;
1471
+ for (let j = 0; j < 16; ++j) table[i16 + j] = alphabet[i$1] + alphabet[j];
1296
1472
  }
1297
1473
  return table;
1298
1474
  }();
1475
+ function defineBigIntMethod(fn) {
1476
+ return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1477
+ }
1478
+ function BufferBigIntNotDefined() {
1479
+ throw new Error("BigInt not supported");
1480
+ }
1299
1481
  } });
1300
1482
  var import_buffer = __toESM(require_buffer(), 1);
1301
1483