@file-viewer/renderer-data 3.0.3 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -223,13 +223,14 @@ var require_ieee754 = __commonJS({
223
223
  }
224
224
  });
225
225
 
226
- // ../../../node_modules/.pnpm/buffer@5.2.1/node_modules/buffer/index.js
226
+ // ../../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js
227
227
  var require_buffer = __commonJS({
228
- "../../../node_modules/.pnpm/buffer@5.2.1/node_modules/buffer/index.js"(exports2) {
228
+ "../../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js"(exports2) {
229
229
  "use strict";
230
230
  init_browser_globals();
231
231
  var base64 = require_base64_js();
232
232
  var ieee754 = require_ieee754();
233
+ var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
233
234
  exports2.Buffer = Buffer3;
234
235
  exports2.SlowBuffer = SlowBuffer;
235
236
  exports2.INSPECT_MAX_BYTES = 50;
@@ -243,10 +244,12 @@ var require_buffer = __commonJS({
243
244
  }
244
245
  function typedArraySupport() {
245
246
  try {
246
- var arr = new Uint8Array(1);
247
- arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function() {
247
+ const arr = new Uint8Array(1);
248
+ const proto = { foo: function() {
248
249
  return 42;
249
250
  } };
251
+ Object.setPrototypeOf(proto, Uint8Array.prototype);
252
+ Object.setPrototypeOf(arr, proto);
250
253
  return arr.foo() === 42;
251
254
  } catch (e) {
252
255
  return false;
@@ -270,8 +273,8 @@ var require_buffer = __commonJS({
270
273
  if (length > K_MAX_LENGTH) {
271
274
  throw new RangeError('The value "' + length + '" is invalid for option "size"');
272
275
  }
273
- var buf = new Uint8Array(length);
274
- buf.__proto__ = Buffer3.prototype;
276
+ const buf = new Uint8Array(length);
277
+ Object.setPrototypeOf(buf, Buffer3.prototype);
275
278
  return buf;
276
279
  }
277
280
  function Buffer3(arg, encodingOrOffset, length) {
@@ -285,47 +288,38 @@ var require_buffer = __commonJS({
285
288
  }
286
289
  return from(arg, encodingOrOffset, length);
287
290
  }
288
- if (typeof Symbol !== "undefined" && Symbol.species != null && Buffer3[Symbol.species] === Buffer3) {
289
- Object.defineProperty(Buffer3, Symbol.species, {
290
- value: null,
291
- configurable: true,
292
- enumerable: false,
293
- writable: false
294
- });
295
- }
296
291
  Buffer3.poolSize = 8192;
297
292
  function from(value, encodingOrOffset, length) {
298
293
  if (typeof value === "string") {
299
294
  return fromString(value, encodingOrOffset);
300
295
  }
301
296
  if (ArrayBuffer.isView(value)) {
302
- return fromArrayLike(value);
297
+ return fromArrayView(value);
303
298
  }
304
299
  if (value == null) {
305
- throw TypeError(
300
+ throw new TypeError(
306
301
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
307
302
  );
308
303
  }
309
304
  if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
310
305
  return fromArrayBuffer(value, encodingOrOffset, length);
311
306
  }
307
+ if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
308
+ return fromArrayBuffer(value, encodingOrOffset, length);
309
+ }
312
310
  if (typeof value === "number") {
313
311
  throw new TypeError(
314
312
  'The "value" argument must not be of type number. Received type number'
315
313
  );
316
314
  }
317
- var valueOf = value.valueOf && value.valueOf();
315
+ const valueOf = value.valueOf && value.valueOf();
318
316
  if (valueOf != null && valueOf !== value) {
319
317
  return Buffer3.from(valueOf, encodingOrOffset, length);
320
318
  }
321
- var b = fromObject(value);
319
+ const b = fromObject(value);
322
320
  if (b) return b;
323
321
  if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
324
- return Buffer3.from(
325
- value[Symbol.toPrimitive]("string"),
326
- encodingOrOffset,
327
- length
328
- );
322
+ return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
329
323
  }
330
324
  throw new TypeError(
331
325
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
@@ -334,8 +328,8 @@ var require_buffer = __commonJS({
334
328
  Buffer3.from = function(value, encodingOrOffset, length) {
335
329
  return from(value, encodingOrOffset, length);
336
330
  };
337
- Buffer3.prototype.__proto__ = Uint8Array.prototype;
338
- Buffer3.__proto__ = Uint8Array;
331
+ Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
332
+ Object.setPrototypeOf(Buffer3, Uint8Array);
339
333
  function assertSize(size) {
340
334
  if (typeof size !== "number") {
341
335
  throw new TypeError('"size" argument must be of type number');
@@ -373,22 +367,29 @@ var require_buffer = __commonJS({
373
367
  if (!Buffer3.isEncoding(encoding)) {
374
368
  throw new TypeError("Unknown encoding: " + encoding);
375
369
  }
376
- var length = byteLength(string, encoding) | 0;
377
- var buf = createBuffer(length);
378
- var actual = buf.write(string, encoding);
370
+ const length = byteLength(string, encoding) | 0;
371
+ let buf = createBuffer(length);
372
+ const actual = buf.write(string, encoding);
379
373
  if (actual !== length) {
380
374
  buf = buf.slice(0, actual);
381
375
  }
382
376
  return buf;
383
377
  }
384
378
  function fromArrayLike(array) {
385
- var length = array.length < 0 ? 0 : checked(array.length) | 0;
386
- var buf = createBuffer(length);
387
- for (var i = 0; i < length; i += 1) {
379
+ const length = array.length < 0 ? 0 : checked(array.length) | 0;
380
+ const buf = createBuffer(length);
381
+ for (let i = 0; i < length; i += 1) {
388
382
  buf[i] = array[i] & 255;
389
383
  }
390
384
  return buf;
391
385
  }
386
+ function fromArrayView(arrayView) {
387
+ if (isInstance(arrayView, Uint8Array)) {
388
+ const copy = new Uint8Array(arrayView);
389
+ return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
390
+ }
391
+ return fromArrayLike(arrayView);
392
+ }
392
393
  function fromArrayBuffer(array, byteOffset, length) {
393
394
  if (byteOffset < 0 || array.byteLength < byteOffset) {
394
395
  throw new RangeError('"offset" is outside of buffer bounds');
@@ -396,7 +397,7 @@ var require_buffer = __commonJS({
396
397
  if (array.byteLength < byteOffset + (length || 0)) {
397
398
  throw new RangeError('"length" is outside of buffer bounds');
398
399
  }
399
- var buf;
400
+ let buf;
400
401
  if (byteOffset === void 0 && length === void 0) {
401
402
  buf = new Uint8Array(array);
402
403
  } else if (length === void 0) {
@@ -404,13 +405,13 @@ var require_buffer = __commonJS({
404
405
  } else {
405
406
  buf = new Uint8Array(array, byteOffset, length);
406
407
  }
407
- buf.__proto__ = Buffer3.prototype;
408
+ Object.setPrototypeOf(buf, Buffer3.prototype);
408
409
  return buf;
409
410
  }
410
411
  function fromObject(obj) {
411
412
  if (Buffer3.isBuffer(obj)) {
412
- var len = checked(obj.length) | 0;
413
- var buf = createBuffer(len);
413
+ const len = checked(obj.length) | 0;
414
+ const buf = createBuffer(len);
414
415
  if (buf.length === 0) {
415
416
  return buf;
416
417
  }
@@ -451,9 +452,9 @@ var require_buffer = __commonJS({
451
452
  );
452
453
  }
453
454
  if (a === b) return 0;
454
- var x = a.length;
455
- var y = b.length;
456
- for (var i = 0, len = Math.min(x, y); i < len; ++i) {
455
+ let x = a.length;
456
+ let y = b.length;
457
+ for (let i = 0, len = Math.min(x, y); i < len; ++i) {
457
458
  if (a[i] !== b[i]) {
458
459
  x = a[i];
459
460
  y = b[i];
@@ -489,24 +490,33 @@ var require_buffer = __commonJS({
489
490
  if (list.length === 0) {
490
491
  return Buffer3.alloc(0);
491
492
  }
492
- var i;
493
+ let i;
493
494
  if (length === void 0) {
494
495
  length = 0;
495
496
  for (i = 0; i < list.length; ++i) {
496
497
  length += list[i].length;
497
498
  }
498
499
  }
499
- var buffer = Buffer3.allocUnsafe(length);
500
- var pos = 0;
500
+ const buffer = Buffer3.allocUnsafe(length);
501
+ let pos = 0;
501
502
  for (i = 0; i < list.length; ++i) {
502
- var buf = list[i];
503
+ let buf = list[i];
503
504
  if (isInstance(buf, Uint8Array)) {
504
- buf = Buffer3.from(buf);
505
- }
506
- if (!Buffer3.isBuffer(buf)) {
505
+ if (pos + buf.length > buffer.length) {
506
+ if (!Buffer3.isBuffer(buf)) buf = Buffer3.from(buf);
507
+ buf.copy(buffer, pos);
508
+ } else {
509
+ Uint8Array.prototype.set.call(
510
+ buffer,
511
+ buf,
512
+ pos
513
+ );
514
+ }
515
+ } else if (!Buffer3.isBuffer(buf)) {
507
516
  throw new TypeError('"list" argument must be an Array of Buffers');
517
+ } else {
518
+ buf.copy(buffer, pos);
508
519
  }
509
- buf.copy(buffer, pos);
510
520
  pos += buf.length;
511
521
  }
512
522
  return buffer;
@@ -523,10 +533,10 @@ var require_buffer = __commonJS({
523
533
  'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string
524
534
  );
525
535
  }
526
- var len = string.length;
527
- var mustMatch = arguments.length > 2 && arguments[2] === true;
536
+ const len = string.length;
537
+ const mustMatch = arguments.length > 2 && arguments[2] === true;
528
538
  if (!mustMatch && len === 0) return 0;
529
- var loweredCase = false;
539
+ let loweredCase = false;
530
540
  for (; ; ) {
531
541
  switch (encoding) {
532
542
  case "ascii":
@@ -556,7 +566,7 @@ var require_buffer = __commonJS({
556
566
  }
557
567
  Buffer3.byteLength = byteLength;
558
568
  function slowToString(encoding, start, end) {
559
- var loweredCase = false;
569
+ let loweredCase = false;
560
570
  if (start === void 0 || start < 0) {
561
571
  start = 0;
562
572
  }
@@ -603,37 +613,37 @@ var require_buffer = __commonJS({
603
613
  }
604
614
  Buffer3.prototype._isBuffer = true;
605
615
  function swap(b, n, m) {
606
- var i = b[n];
616
+ const i = b[n];
607
617
  b[n] = b[m];
608
618
  b[m] = i;
609
619
  }
610
620
  Buffer3.prototype.swap16 = function swap16() {
611
- var len = this.length;
621
+ const len = this.length;
612
622
  if (len % 2 !== 0) {
613
623
  throw new RangeError("Buffer size must be a multiple of 16-bits");
614
624
  }
615
- for (var i = 0; i < len; i += 2) {
625
+ for (let i = 0; i < len; i += 2) {
616
626
  swap(this, i, i + 1);
617
627
  }
618
628
  return this;
619
629
  };
620
630
  Buffer3.prototype.swap32 = function swap32() {
621
- var len = this.length;
631
+ const len = this.length;
622
632
  if (len % 4 !== 0) {
623
633
  throw new RangeError("Buffer size must be a multiple of 32-bits");
624
634
  }
625
- for (var i = 0; i < len; i += 4) {
635
+ for (let i = 0; i < len; i += 4) {
626
636
  swap(this, i, i + 3);
627
637
  swap(this, i + 1, i + 2);
628
638
  }
629
639
  return this;
630
640
  };
631
641
  Buffer3.prototype.swap64 = function swap64() {
632
- var len = this.length;
642
+ const len = this.length;
633
643
  if (len % 8 !== 0) {
634
644
  throw new RangeError("Buffer size must be a multiple of 64-bits");
635
645
  }
636
- for (var i = 0; i < len; i += 8) {
646
+ for (let i = 0; i < len; i += 8) {
637
647
  swap(this, i, i + 7);
638
648
  swap(this, i + 1, i + 6);
639
649
  swap(this, i + 2, i + 5);
@@ -642,7 +652,7 @@ var require_buffer = __commonJS({
642
652
  return this;
643
653
  };
644
654
  Buffer3.prototype.toString = function toString() {
645
- var length = this.length;
655
+ const length = this.length;
646
656
  if (length === 0) return "";
647
657
  if (arguments.length === 0) return utf8Slice(this, 0, length);
648
658
  return slowToString.apply(this, arguments);
@@ -654,12 +664,15 @@ var require_buffer = __commonJS({
654
664
  return Buffer3.compare(this, b) === 0;
655
665
  };
656
666
  Buffer3.prototype.inspect = function inspect() {
657
- var str = "";
658
- var max = exports2.INSPECT_MAX_BYTES;
667
+ let str = "";
668
+ const max = exports2.INSPECT_MAX_BYTES;
659
669
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
660
670
  if (this.length > max) str += " ... ";
661
671
  return "<Buffer " + str + ">";
662
672
  };
673
+ if (customInspectSymbol) {
674
+ Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
675
+ }
663
676
  Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
664
677
  if (isInstance(target, Uint8Array)) {
665
678
  target = Buffer3.from(target, target.offset, target.byteLength);
@@ -698,12 +711,12 @@ var require_buffer = __commonJS({
698
711
  thisStart >>>= 0;
699
712
  thisEnd >>>= 0;
700
713
  if (this === target) return 0;
701
- var x = thisEnd - thisStart;
702
- var y = end - start;
703
- var len = Math.min(x, y);
704
- var thisCopy = this.slice(thisStart, thisEnd);
705
- var targetCopy = target.slice(start, end);
706
- for (var i = 0; i < len; ++i) {
714
+ let x = thisEnd - thisStart;
715
+ let y = end - start;
716
+ const len = Math.min(x, y);
717
+ const thisCopy = this.slice(thisStart, thisEnd);
718
+ const targetCopy = target.slice(start, end);
719
+ for (let i = 0; i < len; ++i) {
707
720
  if (thisCopy[i] !== targetCopy[i]) {
708
721
  x = thisCopy[i];
709
722
  y = targetCopy[i];
@@ -758,9 +771,9 @@ var require_buffer = __commonJS({
758
771
  throw new TypeError("val must be string, number or Buffer");
759
772
  }
760
773
  function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
761
- var indexSize = 1;
762
- var arrLength = arr.length;
763
- var valLength = val.length;
774
+ let indexSize = 1;
775
+ let arrLength = arr.length;
776
+ let valLength = val.length;
764
777
  if (encoding !== void 0) {
765
778
  encoding = String(encoding).toLowerCase();
766
779
  if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
@@ -780,9 +793,9 @@ var require_buffer = __commonJS({
780
793
  return buf.readUInt16BE(i2 * indexSize);
781
794
  }
782
795
  }
783
- var i;
796
+ let i;
784
797
  if (dir) {
785
- var foundIndex = -1;
798
+ let foundIndex = -1;
786
799
  for (i = byteOffset; i < arrLength; i++) {
787
800
  if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
788
801
  if (foundIndex === -1) foundIndex = i;
@@ -795,8 +808,8 @@ var require_buffer = __commonJS({
795
808
  } else {
796
809
  if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
797
810
  for (i = byteOffset; i >= 0; i--) {
798
- var found = true;
799
- for (var j = 0; j < valLength; j++) {
811
+ let found = true;
812
+ for (let j = 0; j < valLength; j++) {
800
813
  if (read(arr, i + j) !== read(val, j)) {
801
814
  found = false;
802
815
  break;
@@ -818,7 +831,7 @@ var require_buffer = __commonJS({
818
831
  };
819
832
  function hexWrite(buf, string, offset, length) {
820
833
  offset = Number(offset) || 0;
821
- var remaining = buf.length - offset;
834
+ const remaining = buf.length - offset;
822
835
  if (!length) {
823
836
  length = remaining;
824
837
  } else {
@@ -827,12 +840,13 @@ var require_buffer = __commonJS({
827
840
  length = remaining;
828
841
  }
829
842
  }
830
- var strLen = string.length;
843
+ const strLen = string.length;
831
844
  if (length > strLen / 2) {
832
845
  length = strLen / 2;
833
846
  }
834
- for (var i = 0; i < length; ++i) {
835
- var parsed = parseInt(string.substr(i * 2, 2), 16);
847
+ let i;
848
+ for (i = 0; i < length; ++i) {
849
+ const parsed = parseInt(string.substr(i * 2, 2), 16);
836
850
  if (numberIsNaN(parsed)) return i;
837
851
  buf[offset + i] = parsed;
838
852
  }
@@ -844,9 +858,6 @@ var require_buffer = __commonJS({
844
858
  function asciiWrite(buf, string, offset, length) {
845
859
  return blitBuffer(asciiToBytes(string), buf, offset, length);
846
860
  }
847
- function latin1Write(buf, string, offset, length) {
848
- return asciiWrite(buf, string, offset, length);
849
- }
850
861
  function base64Write(buf, string, offset, length) {
851
862
  return blitBuffer(base64ToBytes(string), buf, offset, length);
852
863
  }
@@ -876,13 +887,13 @@ var require_buffer = __commonJS({
876
887
  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
877
888
  );
878
889
  }
879
- var remaining = this.length - offset;
890
+ const remaining = this.length - offset;
880
891
  if (length === void 0 || length > remaining) length = remaining;
881
892
  if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
882
893
  throw new RangeError("Attempt to write outside buffer bounds");
883
894
  }
884
895
  if (!encoding) encoding = "utf8";
885
- var loweredCase = false;
896
+ let loweredCase = false;
886
897
  for (; ; ) {
887
898
  switch (encoding) {
888
899
  case "hex":
@@ -891,10 +902,9 @@ var require_buffer = __commonJS({
891
902
  case "utf-8":
892
903
  return utf8Write(this, string, offset, length);
893
904
  case "ascii":
894
- return asciiWrite(this, string, offset, length);
895
905
  case "latin1":
896
906
  case "binary":
897
- return latin1Write(this, string, offset, length);
907
+ return asciiWrite(this, string, offset, length);
898
908
  case "base64":
899
909
  return base64Write(this, string, offset, length);
900
910
  case "ucs2":
@@ -924,14 +934,14 @@ var require_buffer = __commonJS({
924
934
  }
925
935
  function utf8Slice(buf, start, end) {
926
936
  end = Math.min(buf.length, end);
927
- var res = [];
928
- var i = start;
937
+ const res = [];
938
+ let i = start;
929
939
  while (i < end) {
930
- var firstByte = buf[i];
931
- var codePoint = null;
932
- var bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
940
+ const firstByte = buf[i];
941
+ let codePoint = null;
942
+ let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
933
943
  if (i + bytesPerSequence <= end) {
934
- var secondByte, thirdByte, fourthByte, tempCodePoint;
944
+ let secondByte, thirdByte, fourthByte, tempCodePoint;
935
945
  switch (bytesPerSequence) {
936
946
  case 1:
937
947
  if (firstByte < 128) {
@@ -984,12 +994,12 @@ var require_buffer = __commonJS({
984
994
  }
985
995
  var MAX_ARGUMENTS_LENGTH = 4096;
986
996
  function decodeCodePointsArray(codePoints) {
987
- var len = codePoints.length;
997
+ const len = codePoints.length;
988
998
  if (len <= MAX_ARGUMENTS_LENGTH) {
989
999
  return String.fromCharCode.apply(String, codePoints);
990
1000
  }
991
- var res = "";
992
- var i = 0;
1001
+ let res = "";
1002
+ let i = 0;
993
1003
  while (i < len) {
994
1004
  res += String.fromCharCode.apply(
995
1005
  String,
@@ -999,41 +1009,41 @@ var require_buffer = __commonJS({
999
1009
  return res;
1000
1010
  }
1001
1011
  function asciiSlice(buf, start, end) {
1002
- var ret = "";
1012
+ let ret = "";
1003
1013
  end = Math.min(buf.length, end);
1004
- for (var i = start; i < end; ++i) {
1014
+ for (let i = start; i < end; ++i) {
1005
1015
  ret += String.fromCharCode(buf[i] & 127);
1006
1016
  }
1007
1017
  return ret;
1008
1018
  }
1009
1019
  function latin1Slice(buf, start, end) {
1010
- var ret = "";
1020
+ let ret = "";
1011
1021
  end = Math.min(buf.length, end);
1012
- for (var i = start; i < end; ++i) {
1022
+ for (let i = start; i < end; ++i) {
1013
1023
  ret += String.fromCharCode(buf[i]);
1014
1024
  }
1015
1025
  return ret;
1016
1026
  }
1017
1027
  function hexSlice(buf, start, end) {
1018
- var len = buf.length;
1028
+ const len = buf.length;
1019
1029
  if (!start || start < 0) start = 0;
1020
1030
  if (!end || end < 0 || end > len) end = len;
1021
- var out = "";
1022
- for (var i = start; i < end; ++i) {
1023
- out += toHex(buf[i]);
1031
+ let out = "";
1032
+ for (let i = start; i < end; ++i) {
1033
+ out += hexSliceLookupTable[buf[i]];
1024
1034
  }
1025
1035
  return out;
1026
1036
  }
1027
1037
  function utf16leSlice(buf, start, end) {
1028
- var bytes = buf.slice(start, end);
1029
- var res = "";
1030
- for (var i = 0; i < bytes.length; i += 2) {
1038
+ const bytes = buf.slice(start, end);
1039
+ let res = "";
1040
+ for (let i = 0; i < bytes.length - 1; i += 2) {
1031
1041
  res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
1032
1042
  }
1033
1043
  return res;
1034
1044
  }
1035
1045
  Buffer3.prototype.slice = function slice(start, end) {
1036
- var len = this.length;
1046
+ const len = this.length;
1037
1047
  start = ~~start;
1038
1048
  end = end === void 0 ? len : ~~end;
1039
1049
  if (start < 0) {
@@ -1049,71 +1059,95 @@ var require_buffer = __commonJS({
1049
1059
  end = len;
1050
1060
  }
1051
1061
  if (end < start) end = start;
1052
- var newBuf = this.subarray(start, end);
1053
- newBuf.__proto__ = Buffer3.prototype;
1062
+ const newBuf = this.subarray(start, end);
1063
+ Object.setPrototypeOf(newBuf, Buffer3.prototype);
1054
1064
  return newBuf;
1055
1065
  };
1056
1066
  function checkOffset(offset, ext, length) {
1057
1067
  if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
1058
1068
  if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
1059
1069
  }
1060
- Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1070
+ Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1061
1071
  offset = offset >>> 0;
1062
1072
  byteLength2 = byteLength2 >>> 0;
1063
1073
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
1064
- var val = this[offset];
1065
- var mul = 1;
1066
- var i = 0;
1074
+ let val = this[offset];
1075
+ let mul = 1;
1076
+ let i = 0;
1067
1077
  while (++i < byteLength2 && (mul *= 256)) {
1068
1078
  val += this[offset + i] * mul;
1069
1079
  }
1070
1080
  return val;
1071
1081
  };
1072
- Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1082
+ Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1073
1083
  offset = offset >>> 0;
1074
1084
  byteLength2 = byteLength2 >>> 0;
1075
1085
  if (!noAssert) {
1076
1086
  checkOffset(offset, byteLength2, this.length);
1077
1087
  }
1078
- var val = this[offset + --byteLength2];
1079
- var mul = 1;
1088
+ let val = this[offset + --byteLength2];
1089
+ let mul = 1;
1080
1090
  while (byteLength2 > 0 && (mul *= 256)) {
1081
1091
  val += this[offset + --byteLength2] * mul;
1082
1092
  }
1083
1093
  return val;
1084
1094
  };
1085
- Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1095
+ Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1086
1096
  offset = offset >>> 0;
1087
1097
  if (!noAssert) checkOffset(offset, 1, this.length);
1088
1098
  return this[offset];
1089
1099
  };
1090
- Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1100
+ Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1091
1101
  offset = offset >>> 0;
1092
1102
  if (!noAssert) checkOffset(offset, 2, this.length);
1093
1103
  return this[offset] | this[offset + 1] << 8;
1094
1104
  };
1095
- Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1105
+ Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1096
1106
  offset = offset >>> 0;
1097
1107
  if (!noAssert) checkOffset(offset, 2, this.length);
1098
1108
  return this[offset] << 8 | this[offset + 1];
1099
1109
  };
1100
- Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1110
+ Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1101
1111
  offset = offset >>> 0;
1102
1112
  if (!noAssert) checkOffset(offset, 4, this.length);
1103
1113
  return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1104
1114
  };
1105
- Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1115
+ Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1106
1116
  offset = offset >>> 0;
1107
1117
  if (!noAssert) checkOffset(offset, 4, this.length);
1108
1118
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1109
1119
  };
1120
+ Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1121
+ offset = offset >>> 0;
1122
+ validateNumber(offset, "offset");
1123
+ const first = this[offset];
1124
+ const last = this[offset + 7];
1125
+ if (first === void 0 || last === void 0) {
1126
+ boundsError(offset, this.length - 8);
1127
+ }
1128
+ const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
1129
+ const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
1130
+ return BigInt(lo) + (BigInt(hi) << BigInt(32));
1131
+ });
1132
+ Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1133
+ offset = offset >>> 0;
1134
+ validateNumber(offset, "offset");
1135
+ const first = this[offset];
1136
+ const last = this[offset + 7];
1137
+ if (first === void 0 || last === void 0) {
1138
+ boundsError(offset, this.length - 8);
1139
+ }
1140
+ const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1141
+ const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
1142
+ return (BigInt(hi) << BigInt(32)) + BigInt(lo);
1143
+ });
1110
1144
  Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1111
1145
  offset = offset >>> 0;
1112
1146
  byteLength2 = byteLength2 >>> 0;
1113
1147
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
1114
- var val = this[offset];
1115
- var mul = 1;
1116
- var i = 0;
1148
+ let val = this[offset];
1149
+ let mul = 1;
1150
+ let i = 0;
1117
1151
  while (++i < byteLength2 && (mul *= 256)) {
1118
1152
  val += this[offset + i] * mul;
1119
1153
  }
@@ -1125,9 +1159,9 @@ var require_buffer = __commonJS({
1125
1159
  offset = offset >>> 0;
1126
1160
  byteLength2 = byteLength2 >>> 0;
1127
1161
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
1128
- var i = byteLength2;
1129
- var mul = 1;
1130
- var val = this[offset + --i];
1162
+ let i = byteLength2;
1163
+ let mul = 1;
1164
+ let val = this[offset + --i];
1131
1165
  while (i > 0 && (mul *= 256)) {
1132
1166
  val += this[offset + --i] * mul;
1133
1167
  }
@@ -1144,13 +1178,13 @@ var require_buffer = __commonJS({
1144
1178
  Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1145
1179
  offset = offset >>> 0;
1146
1180
  if (!noAssert) checkOffset(offset, 2, this.length);
1147
- var val = this[offset] | this[offset + 1] << 8;
1181
+ const val = this[offset] | this[offset + 1] << 8;
1148
1182
  return val & 32768 ? val | 4294901760 : val;
1149
1183
  };
1150
1184
  Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1151
1185
  offset = offset >>> 0;
1152
1186
  if (!noAssert) checkOffset(offset, 2, this.length);
1153
- var val = this[offset + 1] | this[offset] << 8;
1187
+ const val = this[offset + 1] | this[offset] << 8;
1154
1188
  return val & 32768 ? val | 4294901760 : val;
1155
1189
  };
1156
1190
  Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
@@ -1163,6 +1197,29 @@ var require_buffer = __commonJS({
1163
1197
  if (!noAssert) checkOffset(offset, 4, this.length);
1164
1198
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1165
1199
  };
1200
+ Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1201
+ offset = offset >>> 0;
1202
+ validateNumber(offset, "offset");
1203
+ const first = this[offset];
1204
+ const last = this[offset + 7];
1205
+ if (first === void 0 || last === void 0) {
1206
+ boundsError(offset, this.length - 8);
1207
+ }
1208
+ const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
1209
+ return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
1210
+ });
1211
+ Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1212
+ offset = offset >>> 0;
1213
+ validateNumber(offset, "offset");
1214
+ const first = this[offset];
1215
+ const last = this[offset + 7];
1216
+ if (first === void 0 || last === void 0) {
1217
+ boundsError(offset, this.length - 8);
1218
+ }
1219
+ const val = (first << 24) + // Overflow
1220
+ this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1221
+ return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
1222
+ });
1166
1223
  Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1167
1224
  offset = offset >>> 0;
1168
1225
  if (!noAssert) checkOffset(offset, 4, this.length);
@@ -1188,46 +1245,46 @@ var require_buffer = __commonJS({
1188
1245
  if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
1189
1246
  if (offset + ext > buf.length) throw new RangeError("Index out of range");
1190
1247
  }
1191
- Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1248
+ Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1192
1249
  value = +value;
1193
1250
  offset = offset >>> 0;
1194
1251
  byteLength2 = byteLength2 >>> 0;
1195
1252
  if (!noAssert) {
1196
- var maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1253
+ const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1197
1254
  checkInt(this, value, offset, byteLength2, maxBytes, 0);
1198
1255
  }
1199
- var mul = 1;
1200
- var i = 0;
1256
+ let mul = 1;
1257
+ let i = 0;
1201
1258
  this[offset] = value & 255;
1202
1259
  while (++i < byteLength2 && (mul *= 256)) {
1203
1260
  this[offset + i] = value / mul & 255;
1204
1261
  }
1205
1262
  return offset + byteLength2;
1206
1263
  };
1207
- Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1264
+ Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1208
1265
  value = +value;
1209
1266
  offset = offset >>> 0;
1210
1267
  byteLength2 = byteLength2 >>> 0;
1211
1268
  if (!noAssert) {
1212
- var maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1269
+ const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1213
1270
  checkInt(this, value, offset, byteLength2, maxBytes, 0);
1214
1271
  }
1215
- var i = byteLength2 - 1;
1216
- var mul = 1;
1272
+ let i = byteLength2 - 1;
1273
+ let mul = 1;
1217
1274
  this[offset + i] = value & 255;
1218
1275
  while (--i >= 0 && (mul *= 256)) {
1219
1276
  this[offset + i] = value / mul & 255;
1220
1277
  }
1221
1278
  return offset + byteLength2;
1222
1279
  };
1223
- Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1280
+ Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1224
1281
  value = +value;
1225
1282
  offset = offset >>> 0;
1226
1283
  if (!noAssert) checkInt(this, value, offset, 1, 255, 0);
1227
1284
  this[offset] = value & 255;
1228
1285
  return offset + 1;
1229
1286
  };
1230
- Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1287
+ Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1231
1288
  value = +value;
1232
1289
  offset = offset >>> 0;
1233
1290
  if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
@@ -1235,7 +1292,7 @@ var require_buffer = __commonJS({
1235
1292
  this[offset + 1] = value >>> 8;
1236
1293
  return offset + 2;
1237
1294
  };
1238
- Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1295
+ Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1239
1296
  value = +value;
1240
1297
  offset = offset >>> 0;
1241
1298
  if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
@@ -1243,7 +1300,7 @@ var require_buffer = __commonJS({
1243
1300
  this[offset + 1] = value & 255;
1244
1301
  return offset + 2;
1245
1302
  };
1246
- Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1303
+ Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1247
1304
  value = +value;
1248
1305
  offset = offset >>> 0;
1249
1306
  if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
@@ -1253,7 +1310,7 @@ var require_buffer = __commonJS({
1253
1310
  this[offset] = value & 255;
1254
1311
  return offset + 4;
1255
1312
  };
1256
- Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1313
+ Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1257
1314
  value = +value;
1258
1315
  offset = offset >>> 0;
1259
1316
  if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
@@ -1263,16 +1320,62 @@ var require_buffer = __commonJS({
1263
1320
  this[offset + 3] = value & 255;
1264
1321
  return offset + 4;
1265
1322
  };
1323
+ function wrtBigUInt64LE(buf, value, offset, min, max) {
1324
+ checkIntBI(value, min, max, buf, offset, 7);
1325
+ let lo = Number(value & BigInt(4294967295));
1326
+ buf[offset++] = lo;
1327
+ lo = lo >> 8;
1328
+ buf[offset++] = lo;
1329
+ lo = lo >> 8;
1330
+ buf[offset++] = lo;
1331
+ lo = lo >> 8;
1332
+ buf[offset++] = lo;
1333
+ let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1334
+ buf[offset++] = hi;
1335
+ hi = hi >> 8;
1336
+ buf[offset++] = hi;
1337
+ hi = hi >> 8;
1338
+ buf[offset++] = hi;
1339
+ hi = hi >> 8;
1340
+ buf[offset++] = hi;
1341
+ return offset;
1342
+ }
1343
+ function wrtBigUInt64BE(buf, value, offset, min, max) {
1344
+ checkIntBI(value, min, max, buf, offset, 7);
1345
+ let lo = Number(value & BigInt(4294967295));
1346
+ buf[offset + 7] = lo;
1347
+ lo = lo >> 8;
1348
+ buf[offset + 6] = lo;
1349
+ lo = lo >> 8;
1350
+ buf[offset + 5] = lo;
1351
+ lo = lo >> 8;
1352
+ buf[offset + 4] = lo;
1353
+ let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1354
+ buf[offset + 3] = hi;
1355
+ hi = hi >> 8;
1356
+ buf[offset + 2] = hi;
1357
+ hi = hi >> 8;
1358
+ buf[offset + 1] = hi;
1359
+ hi = hi >> 8;
1360
+ buf[offset] = hi;
1361
+ return offset + 8;
1362
+ }
1363
+ Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1364
+ return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1365
+ });
1366
+ Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1367
+ return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1368
+ });
1266
1369
  Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1267
1370
  value = +value;
1268
1371
  offset = offset >>> 0;
1269
1372
  if (!noAssert) {
1270
- var limit = Math.pow(2, 8 * byteLength2 - 1);
1373
+ const limit = Math.pow(2, 8 * byteLength2 - 1);
1271
1374
  checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1272
1375
  }
1273
- var i = 0;
1274
- var mul = 1;
1275
- var sub = 0;
1376
+ let i = 0;
1377
+ let mul = 1;
1378
+ let sub = 0;
1276
1379
  this[offset] = value & 255;
1277
1380
  while (++i < byteLength2 && (mul *= 256)) {
1278
1381
  if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
@@ -1286,12 +1389,12 @@ var require_buffer = __commonJS({
1286
1389
  value = +value;
1287
1390
  offset = offset >>> 0;
1288
1391
  if (!noAssert) {
1289
- var limit = Math.pow(2, 8 * byteLength2 - 1);
1392
+ const limit = Math.pow(2, 8 * byteLength2 - 1);
1290
1393
  checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1291
1394
  }
1292
- var i = byteLength2 - 1;
1293
- var mul = 1;
1294
- var sub = 0;
1395
+ let i = byteLength2 - 1;
1396
+ let mul = 1;
1397
+ let sub = 0;
1295
1398
  this[offset + i] = value & 255;
1296
1399
  while (--i >= 0 && (mul *= 256)) {
1297
1400
  if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
@@ -1346,6 +1449,12 @@ var require_buffer = __commonJS({
1346
1449
  this[offset + 3] = value & 255;
1347
1450
  return offset + 4;
1348
1451
  };
1452
+ Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1453
+ return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1454
+ });
1455
+ Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1456
+ return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1457
+ });
1349
1458
  function checkIEEE754(buf, value, offset, ext, max, min) {
1350
1459
  if (offset + ext > buf.length) throw new RangeError("Index out of range");
1351
1460
  if (offset < 0) throw new RangeError("Index out of range");
@@ -1398,13 +1507,9 @@ var require_buffer = __commonJS({
1398
1507
  if (target.length - targetStart < end - start) {
1399
1508
  end = target.length - targetStart + start;
1400
1509
  }
1401
- var len = end - start;
1510
+ const len = end - start;
1402
1511
  if (this === target && typeof Uint8Array.prototype.copyWithin === "function") {
1403
1512
  this.copyWithin(targetStart, start, end);
1404
- } else if (this === target && start < targetStart && targetStart < end) {
1405
- for (var i = len - 1; i >= 0; --i) {
1406
- target[i + targetStart] = this[i + start];
1407
- }
1408
1513
  } else {
1409
1514
  Uint8Array.prototype.set.call(
1410
1515
  target,
@@ -1431,13 +1536,15 @@ var require_buffer = __commonJS({
1431
1536
  throw new TypeError("Unknown encoding: " + encoding);
1432
1537
  }
1433
1538
  if (val.length === 1) {
1434
- var code = val.charCodeAt(0);
1539
+ const code = val.charCodeAt(0);
1435
1540
  if (encoding === "utf8" && code < 128 || encoding === "latin1") {
1436
1541
  val = code;
1437
1542
  }
1438
1543
  }
1439
1544
  } else if (typeof val === "number") {
1440
1545
  val = val & 255;
1546
+ } else if (typeof val === "boolean") {
1547
+ val = Number(val);
1441
1548
  }
1442
1549
  if (start < 0 || this.length < start || this.length < end) {
1443
1550
  throw new RangeError("Out of range index");
@@ -1448,14 +1555,14 @@ var require_buffer = __commonJS({
1448
1555
  start = start >>> 0;
1449
1556
  end = end === void 0 ? this.length : end >>> 0;
1450
1557
  if (!val) val = 0;
1451
- var i;
1558
+ let i;
1452
1559
  if (typeof val === "number") {
1453
1560
  for (i = start; i < end; ++i) {
1454
1561
  this[i] = val;
1455
1562
  }
1456
1563
  } else {
1457
- var bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
1458
- var len = bytes.length;
1564
+ const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
1565
+ const len = bytes.length;
1459
1566
  if (len === 0) {
1460
1567
  throw new TypeError('The value "' + val + '" is invalid for argument "value"');
1461
1568
  }
@@ -1465,6 +1572,123 @@ var require_buffer = __commonJS({
1465
1572
  }
1466
1573
  return this;
1467
1574
  };
1575
+ var errors = {};
1576
+ function E(sym, getMessage, Base) {
1577
+ errors[sym] = class NodeError extends Base {
1578
+ constructor() {
1579
+ super();
1580
+ Object.defineProperty(this, "message", {
1581
+ value: getMessage.apply(this, arguments),
1582
+ writable: true,
1583
+ configurable: true
1584
+ });
1585
+ this.name = `${this.name} [${sym}]`;
1586
+ this.stack;
1587
+ delete this.name;
1588
+ }
1589
+ get code() {
1590
+ return sym;
1591
+ }
1592
+ set code(value) {
1593
+ Object.defineProperty(this, "code", {
1594
+ configurable: true,
1595
+ enumerable: true,
1596
+ value,
1597
+ writable: true
1598
+ });
1599
+ }
1600
+ toString() {
1601
+ return `${this.name} [${sym}]: ${this.message}`;
1602
+ }
1603
+ };
1604
+ }
1605
+ E(
1606
+ "ERR_BUFFER_OUT_OF_BOUNDS",
1607
+ function(name) {
1608
+ if (name) {
1609
+ return `${name} is outside of buffer bounds`;
1610
+ }
1611
+ return "Attempt to access memory outside buffer bounds";
1612
+ },
1613
+ RangeError
1614
+ );
1615
+ E(
1616
+ "ERR_INVALID_ARG_TYPE",
1617
+ function(name, actual) {
1618
+ return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
1619
+ },
1620
+ TypeError
1621
+ );
1622
+ E(
1623
+ "ERR_OUT_OF_RANGE",
1624
+ function(str, range, input) {
1625
+ let msg = `The value of "${str}" is out of range.`;
1626
+ let received = input;
1627
+ if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
1628
+ received = addNumericalSeparator(String(input));
1629
+ } else if (typeof input === "bigint") {
1630
+ received = String(input);
1631
+ if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
1632
+ received = addNumericalSeparator(received);
1633
+ }
1634
+ received += "n";
1635
+ }
1636
+ msg += ` It must be ${range}. Received ${received}`;
1637
+ return msg;
1638
+ },
1639
+ RangeError
1640
+ );
1641
+ function addNumericalSeparator(val) {
1642
+ let res = "";
1643
+ let i = val.length;
1644
+ const start = val[0] === "-" ? 1 : 0;
1645
+ for (; i >= start + 4; i -= 3) {
1646
+ res = `_${val.slice(i - 3, i)}${res}`;
1647
+ }
1648
+ return `${val.slice(0, i)}${res}`;
1649
+ }
1650
+ function checkBounds(buf, offset, byteLength2) {
1651
+ validateNumber(offset, "offset");
1652
+ if (buf[offset] === void 0 || buf[offset + byteLength2] === void 0) {
1653
+ boundsError(offset, buf.length - (byteLength2 + 1));
1654
+ }
1655
+ }
1656
+ function checkIntBI(value, min, max, buf, offset, byteLength2) {
1657
+ if (value > max || value < min) {
1658
+ const n = typeof min === "bigint" ? "n" : "";
1659
+ let range;
1660
+ if (byteLength2 > 3) {
1661
+ if (min === 0 || min === BigInt(0)) {
1662
+ range = `>= 0${n} and < 2${n} ** ${(byteLength2 + 1) * 8}${n}`;
1663
+ } else {
1664
+ range = `>= -(2${n} ** ${(byteLength2 + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength2 + 1) * 8 - 1}${n}`;
1665
+ }
1666
+ } else {
1667
+ range = `>= ${min}${n} and <= ${max}${n}`;
1668
+ }
1669
+ throw new errors.ERR_OUT_OF_RANGE("value", range, value);
1670
+ }
1671
+ checkBounds(buf, offset, byteLength2);
1672
+ }
1673
+ function validateNumber(value, name) {
1674
+ if (typeof value !== "number") {
1675
+ throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
1676
+ }
1677
+ }
1678
+ function boundsError(value, length, type) {
1679
+ if (Math.floor(value) !== value) {
1680
+ validateNumber(value, type);
1681
+ throw new errors.ERR_OUT_OF_RANGE(type || "offset", "an integer", value);
1682
+ }
1683
+ if (length < 0) {
1684
+ throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
1685
+ }
1686
+ throw new errors.ERR_OUT_OF_RANGE(
1687
+ type || "offset",
1688
+ `>= ${type ? 1 : 0} and <= ${length}`,
1689
+ value
1690
+ );
1691
+ }
1468
1692
  var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
1469
1693
  function base64clean(str) {
1470
1694
  str = str.split("=")[0];
@@ -1475,17 +1699,13 @@ var require_buffer = __commonJS({
1475
1699
  }
1476
1700
  return str;
1477
1701
  }
1478
- function toHex(n) {
1479
- if (n < 16) return "0" + n.toString(16);
1480
- return n.toString(16);
1481
- }
1482
1702
  function utf8ToBytes(string, units) {
1483
1703
  units = units || Infinity;
1484
- var codePoint;
1485
- var length = string.length;
1486
- var leadSurrogate = null;
1487
- var bytes = [];
1488
- for (var i = 0; i < length; ++i) {
1704
+ let codePoint;
1705
+ const length = string.length;
1706
+ let leadSurrogate = null;
1707
+ const bytes = [];
1708
+ for (let i = 0; i < length; ++i) {
1489
1709
  codePoint = string.charCodeAt(i);
1490
1710
  if (codePoint > 55295 && codePoint < 57344) {
1491
1711
  if (!leadSurrogate) {
@@ -1540,16 +1760,16 @@ var require_buffer = __commonJS({
1540
1760
  return bytes;
1541
1761
  }
1542
1762
  function asciiToBytes(str) {
1543
- var byteArray = [];
1544
- for (var i = 0; i < str.length; ++i) {
1763
+ const byteArray = [];
1764
+ for (let i = 0; i < str.length; ++i) {
1545
1765
  byteArray.push(str.charCodeAt(i) & 255);
1546
1766
  }
1547
1767
  return byteArray;
1548
1768
  }
1549
1769
  function utf16leToBytes(str, units) {
1550
- var c, hi, lo;
1551
- var byteArray = [];
1552
- for (var i = 0; i < str.length; ++i) {
1770
+ let c, hi, lo;
1771
+ const byteArray = [];
1772
+ for (let i = 0; i < str.length; ++i) {
1553
1773
  if ((units -= 2) < 0) break;
1554
1774
  c = str.charCodeAt(i);
1555
1775
  hi = c >> 8;
@@ -1563,7 +1783,8 @@ var require_buffer = __commonJS({
1563
1783
  return base64.toByteArray(base64clean(str));
1564
1784
  }
1565
1785
  function blitBuffer(src, dst, offset, length) {
1566
- for (var i = 0; i < length; ++i) {
1786
+ let i;
1787
+ for (i = 0; i < length; ++i) {
1567
1788
  if (i + offset >= dst.length || i >= src.length) break;
1568
1789
  dst[i + offset] = src[i];
1569
1790
  }
@@ -1575,6 +1796,23 @@ var require_buffer = __commonJS({
1575
1796
  function numberIsNaN(obj) {
1576
1797
  return obj !== obj;
1577
1798
  }
1799
+ var hexSliceLookupTable = (function() {
1800
+ const alphabet = "0123456789abcdef";
1801
+ const table = new Array(256);
1802
+ for (let i = 0; i < 16; ++i) {
1803
+ const i16 = i * 16;
1804
+ for (let j = 0; j < 16; ++j) {
1805
+ table[i16 + j] = alphabet[i] + alphabet[j];
1806
+ }
1807
+ }
1808
+ return table;
1809
+ })();
1810
+ function defineBigIntMethod(fn) {
1811
+ return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1812
+ }
1813
+ function BufferBigIntNotDefined() {
1814
+ throw new Error("BigInt not supported");
1815
+ }
1578
1816
  }
1579
1817
  });
1580
1818
 
@@ -9202,9 +9440,9 @@ var require_stream_duplex = __commonJS({
9202
9440
  }
9203
9441
  });
9204
9442
 
9205
- // ../../../node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js
9443
+ // ../../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js
9206
9444
  var require_safe_buffer = __commonJS({
9207
- "../../../node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js"(exports2, module2) {
9445
+ "../../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(exports2, module2) {
9208
9446
  init_browser_globals();
9209
9447
  var buffer = require_buffer();
9210
9448
  var Buffer3 = buffer.Buffer;
@@ -9222,6 +9460,7 @@ var require_safe_buffer = __commonJS({
9222
9460
  function SafeBuffer(arg, encodingOrOffset, length) {
9223
9461
  return Buffer3(arg, encodingOrOffset, length);
9224
9462
  }
9463
+ SafeBuffer.prototype = Object.create(Buffer3.prototype);
9225
9464
  copyProps(Buffer3, SafeBuffer);
9226
9465
  SafeBuffer.from = function(arg, encodingOrOffset, length) {
9227
9466
  if (typeof arg === "number") {
@@ -9260,9 +9499,9 @@ var require_safe_buffer = __commonJS({
9260
9499
  }
9261
9500
  });
9262
9501
 
9263
- // ../../../node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js
9502
+ // ../../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js
9264
9503
  var require_string_decoder = __commonJS({
9265
- "../../../node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
9504
+ "../../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
9266
9505
  "use strict";
9267
9506
  init_browser_globals();
9268
9507
  var Buffer3 = require_safe_buffer().Buffer;
@@ -13752,124 +13991,866 @@ var require_avsc_services = __commonJS({
13752
13991
  }
13753
13992
  });
13754
13993
 
13755
- // ../../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js
13756
- var require_isArguments = __commonJS({
13757
- "../../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js"(exports2, module2) {
13994
+ // ../../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/errors.js
13995
+ var require_errors = __commonJS({
13996
+ "../../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/errors.js"(exports2, module2) {
13758
13997
  "use strict";
13759
13998
  init_browser_globals();
13760
- var toStr = Object.prototype.toString;
13761
- module2.exports = function isArguments(value) {
13762
- var str = toStr.call(value);
13763
- var isArgs = str === "[object Arguments]";
13764
- if (!isArgs) {
13765
- isArgs = str !== "[object Array]" && value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && toStr.call(value.callee) === "[object Function]";
13999
+ function _typeof(o) {
14000
+ "@babel/helpers - typeof";
14001
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
14002
+ return typeof o2;
14003
+ } : function(o2) {
14004
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
14005
+ }, _typeof(o);
14006
+ }
14007
+ function _defineProperties(target, props) {
14008
+ for (var i = 0; i < props.length; i++) {
14009
+ var descriptor = props[i];
14010
+ descriptor.enumerable = descriptor.enumerable || false;
14011
+ descriptor.configurable = true;
14012
+ if ("value" in descriptor) descriptor.writable = true;
14013
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
13766
14014
  }
13767
- return isArgs;
13768
- };
13769
- }
13770
- });
13771
-
13772
- // ../../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js
13773
- var require_implementation2 = __commonJS({
13774
- "../../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js"(exports2, module2) {
13775
- "use strict";
13776
- init_browser_globals();
13777
- var keysShim;
13778
- if (!Object.keys) {
13779
- has = Object.prototype.hasOwnProperty;
13780
- toStr = Object.prototype.toString;
13781
- isArgs = require_isArguments();
13782
- isEnumerable = Object.prototype.propertyIsEnumerable;
13783
- hasDontEnumBug = !isEnumerable.call({ toString: null }, "toString");
13784
- hasProtoEnumBug = isEnumerable.call(function() {
13785
- }, "prototype");
13786
- dontEnums = [
13787
- "toString",
13788
- "toLocaleString",
13789
- "valueOf",
13790
- "hasOwnProperty",
13791
- "isPrototypeOf",
13792
- "propertyIsEnumerable",
13793
- "constructor"
13794
- ];
13795
- equalsConstructorPrototype = function(o) {
13796
- var ctor = o.constructor;
13797
- return ctor && ctor.prototype === o;
13798
- };
13799
- excludedKeys = {
13800
- $applicationCache: true,
13801
- $console: true,
13802
- $external: true,
13803
- $frame: true,
13804
- $frameElement: true,
13805
- $frames: true,
13806
- $innerHeight: true,
13807
- $innerWidth: true,
13808
- $onmozfullscreenchange: true,
13809
- $onmozfullscreenerror: true,
13810
- $outerHeight: true,
13811
- $outerWidth: true,
13812
- $pageXOffset: true,
13813
- $pageYOffset: true,
13814
- $parent: true,
13815
- $scrollLeft: true,
13816
- $scrollTop: true,
13817
- $scrollX: true,
13818
- $scrollY: true,
13819
- $self: true,
13820
- $webkitIndexedDB: true,
13821
- $webkitStorageInfo: true,
13822
- $window: true
14015
+ }
14016
+ function _createClass(Constructor, protoProps, staticProps) {
14017
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
14018
+ if (staticProps) _defineProperties(Constructor, staticProps);
14019
+ Object.defineProperty(Constructor, "prototype", { writable: false });
14020
+ return Constructor;
14021
+ }
14022
+ function _toPropertyKey(arg) {
14023
+ var key = _toPrimitive(arg, "string");
14024
+ return _typeof(key) === "symbol" ? key : String(key);
14025
+ }
14026
+ function _toPrimitive(input, hint) {
14027
+ if (_typeof(input) !== "object" || input === null) return input;
14028
+ var prim = input[Symbol.toPrimitive];
14029
+ if (prim !== void 0) {
14030
+ var res = prim.call(input, hint || "default");
14031
+ if (_typeof(res) !== "object") return res;
14032
+ throw new TypeError("@@toPrimitive must return a primitive value.");
14033
+ }
14034
+ return (hint === "string" ? String : Number)(input);
14035
+ }
14036
+ function _classCallCheck(instance, Constructor) {
14037
+ if (!(instance instanceof Constructor)) {
14038
+ throw new TypeError("Cannot call a class as a function");
14039
+ }
14040
+ }
14041
+ function _inherits(subClass, superClass) {
14042
+ if (typeof superClass !== "function" && superClass !== null) {
14043
+ throw new TypeError("Super expression must either be null or a function");
14044
+ }
14045
+ subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
14046
+ Object.defineProperty(subClass, "prototype", { writable: false });
14047
+ if (superClass) _setPrototypeOf(subClass, superClass);
14048
+ }
14049
+ function _setPrototypeOf(o, p) {
14050
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
14051
+ o2.__proto__ = p2;
14052
+ return o2;
13823
14053
  };
13824
- hasAutomationEqualityBug = (function() {
13825
- if (typeof window === "undefined") {
13826
- return false;
13827
- }
13828
- for (var k in window) {
13829
- try {
13830
- if (!excludedKeys["$" + k] && has.call(window, k) && window[k] !== null && typeof window[k] === "object") {
13831
- try {
13832
- equalsConstructorPrototype(window[k]);
13833
- } catch (e) {
13834
- return true;
13835
- }
13836
- }
13837
- } catch (e) {
13838
- return true;
13839
- }
14054
+ return _setPrototypeOf(o, p);
14055
+ }
14056
+ function _createSuper(Derived) {
14057
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
14058
+ return function _createSuperInternal() {
14059
+ var Super = _getPrototypeOf(Derived), result;
14060
+ if (hasNativeReflectConstruct) {
14061
+ var NewTarget = _getPrototypeOf(this).constructor;
14062
+ result = Reflect.construct(Super, arguments, NewTarget);
14063
+ } else {
14064
+ result = Super.apply(this, arguments);
13840
14065
  }
14066
+ return _possibleConstructorReturn(this, result);
14067
+ };
14068
+ }
14069
+ function _possibleConstructorReturn(self2, call) {
14070
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
14071
+ return call;
14072
+ } else if (call !== void 0) {
14073
+ throw new TypeError("Derived constructors may only return object or undefined");
14074
+ }
14075
+ return _assertThisInitialized(self2);
14076
+ }
14077
+ function _assertThisInitialized(self2) {
14078
+ if (self2 === void 0) {
14079
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14080
+ }
14081
+ return self2;
14082
+ }
14083
+ function _isNativeReflectConstruct() {
14084
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
14085
+ if (Reflect.construct.sham) return false;
14086
+ if (typeof Proxy === "function") return true;
14087
+ try {
14088
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14089
+ }));
14090
+ return true;
14091
+ } catch (e) {
13841
14092
  return false;
13842
- })();
13843
- equalsConstructorPrototypeIfNotBuggy = function(o) {
13844
- if (typeof window === "undefined" || !hasAutomationEqualityBug) {
13845
- return equalsConstructorPrototype(o);
13846
- }
13847
- try {
13848
- return equalsConstructorPrototype(o);
13849
- } catch (e) {
13850
- return false;
13851
- }
14093
+ }
14094
+ }
14095
+ function _getPrototypeOf(o) {
14096
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
14097
+ return o2.__proto__ || Object.getPrototypeOf(o2);
13852
14098
  };
13853
- keysShim = function keys(object) {
13854
- var isObject = object !== null && typeof object === "object";
13855
- var isFunction = toStr.call(object) === "[object Function]";
13856
- var isArguments = isArgs(object);
13857
- var isString = isObject && toStr.call(object) === "[object String]";
13858
- var theKeys = [];
13859
- if (!isObject && !isFunction && !isArguments) {
13860
- throw new TypeError("Object.keys called on a non-object");
14099
+ return _getPrototypeOf(o);
14100
+ }
14101
+ var codes = {};
14102
+ var assert;
14103
+ var util2;
14104
+ function createErrorType(code, message, Base) {
14105
+ if (!Base) {
14106
+ Base = Error;
14107
+ }
14108
+ function getMessage(arg1, arg2, arg3) {
14109
+ if (typeof message === "string") {
14110
+ return message;
14111
+ } else {
14112
+ return message(arg1, arg2, arg3);
13861
14113
  }
13862
- var skipProto = hasProtoEnumBug && isFunction;
13863
- if (isString && object.length > 0 && !has.call(object, 0)) {
13864
- for (var i = 0; i < object.length; ++i) {
13865
- theKeys.push(String(i));
13866
- }
14114
+ }
14115
+ var NodeError = /* @__PURE__ */ (function(_Base) {
14116
+ _inherits(NodeError2, _Base);
14117
+ var _super = _createSuper(NodeError2);
14118
+ function NodeError2(arg1, arg2, arg3) {
14119
+ var _this;
14120
+ _classCallCheck(this, NodeError2);
14121
+ _this = _super.call(this, getMessage(arg1, arg2, arg3));
14122
+ _this.code = code;
14123
+ return _this;
13867
14124
  }
13868
- if (isArguments && object.length > 0) {
13869
- for (var j = 0; j < object.length; ++j) {
13870
- theKeys.push(String(j));
13871
- }
13872
- } else {
14125
+ return _createClass(NodeError2);
14126
+ })(Base);
14127
+ codes[code] = NodeError;
14128
+ }
14129
+ function oneOf(expected, thing) {
14130
+ if (Array.isArray(expected)) {
14131
+ var len = expected.length;
14132
+ expected = expected.map(function(i) {
14133
+ return String(i);
14134
+ });
14135
+ if (len > 2) {
14136
+ return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(", "), ", or ") + expected[len - 1];
14137
+ } else if (len === 2) {
14138
+ return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]);
14139
+ } else {
14140
+ return "of ".concat(thing, " ").concat(expected[0]);
14141
+ }
14142
+ } else {
14143
+ return "of ".concat(thing, " ").concat(String(expected));
14144
+ }
14145
+ }
14146
+ function startsWith(str, search, pos) {
14147
+ return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
14148
+ }
14149
+ function endsWith(str, search, this_len) {
14150
+ if (this_len === void 0 || this_len > str.length) {
14151
+ this_len = str.length;
14152
+ }
14153
+ return str.substring(this_len - search.length, this_len) === search;
14154
+ }
14155
+ function includes(str, search, start) {
14156
+ if (typeof start !== "number") {
14157
+ start = 0;
14158
+ }
14159
+ if (start + search.length > str.length) {
14160
+ return false;
14161
+ } else {
14162
+ return str.indexOf(search, start) !== -1;
14163
+ }
14164
+ }
14165
+ createErrorType("ERR_AMBIGUOUS_ARGUMENT", 'The "%s" argument is ambiguous. %s', TypeError);
14166
+ createErrorType("ERR_INVALID_ARG_TYPE", function(name, expected, actual) {
14167
+ if (assert === void 0) assert = require_assert();
14168
+ assert(typeof name === "string", "'name' must be a string");
14169
+ var determiner;
14170
+ if (typeof expected === "string" && startsWith(expected, "not ")) {
14171
+ determiner = "must not be";
14172
+ expected = expected.replace(/^not /, "");
14173
+ } else {
14174
+ determiner = "must be";
14175
+ }
14176
+ var msg;
14177
+ if (endsWith(name, " argument")) {
14178
+ msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
14179
+ } else {
14180
+ var type = includes(name, ".") ? "property" : "argument";
14181
+ msg = 'The "'.concat(name, '" ').concat(type, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
14182
+ }
14183
+ msg += ". Received type ".concat(_typeof(actual));
14184
+ return msg;
14185
+ }, TypeError);
14186
+ createErrorType("ERR_INVALID_ARG_VALUE", function(name, value) {
14187
+ var reason = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "is invalid";
14188
+ if (util2 === void 0) util2 = require_util();
14189
+ var inspected = util2.inspect(value);
14190
+ if (inspected.length > 128) {
14191
+ inspected = "".concat(inspected.slice(0, 128), "...");
14192
+ }
14193
+ return "The argument '".concat(name, "' ").concat(reason, ". Received ").concat(inspected);
14194
+ }, TypeError, RangeError);
14195
+ createErrorType("ERR_INVALID_RETURN_VALUE", function(input, name, value) {
14196
+ var type;
14197
+ if (value && value.constructor && value.constructor.name) {
14198
+ type = "instance of ".concat(value.constructor.name);
14199
+ } else {
14200
+ type = "type ".concat(_typeof(value));
14201
+ }
14202
+ return "Expected ".concat(input, ' to be returned from the "').concat(name, '"') + " function but got ".concat(type, ".");
14203
+ }, TypeError);
14204
+ createErrorType("ERR_MISSING_ARGS", function() {
14205
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14206
+ args[_key] = arguments[_key];
14207
+ }
14208
+ if (assert === void 0) assert = require_assert();
14209
+ assert(args.length > 0, "At least one arg needs to be specified");
14210
+ var msg = "The ";
14211
+ var len = args.length;
14212
+ args = args.map(function(a) {
14213
+ return '"'.concat(a, '"');
14214
+ });
14215
+ switch (len) {
14216
+ case 1:
14217
+ msg += "".concat(args[0], " argument");
14218
+ break;
14219
+ case 2:
14220
+ msg += "".concat(args[0], " and ").concat(args[1], " arguments");
14221
+ break;
14222
+ default:
14223
+ msg += args.slice(0, len - 1).join(", ");
14224
+ msg += ", and ".concat(args[len - 1], " arguments");
14225
+ break;
14226
+ }
14227
+ return "".concat(msg, " must be specified");
14228
+ }, TypeError);
14229
+ module2.exports.codes = codes;
14230
+ }
14231
+ });
14232
+
14233
+ // ../../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/assert/assertion_error.js
14234
+ var require_assertion_error = __commonJS({
14235
+ "../../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/assert/assertion_error.js"(exports2, module2) {
14236
+ "use strict";
14237
+ init_browser_globals();
14238
+ function ownKeys(e, r) {
14239
+ var t = Object.keys(e);
14240
+ if (Object.getOwnPropertySymbols) {
14241
+ var o = Object.getOwnPropertySymbols(e);
14242
+ r && (o = o.filter(function(r2) {
14243
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
14244
+ })), t.push.apply(t, o);
14245
+ }
14246
+ return t;
14247
+ }
14248
+ function _objectSpread(e) {
14249
+ for (var r = 1; r < arguments.length; r++) {
14250
+ var t = null != arguments[r] ? arguments[r] : {};
14251
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
14252
+ _defineProperty(e, r2, t[r2]);
14253
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
14254
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
14255
+ });
14256
+ }
14257
+ return e;
14258
+ }
14259
+ function _defineProperty(obj, key, value) {
14260
+ key = _toPropertyKey(key);
14261
+ if (key in obj) {
14262
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
14263
+ } else {
14264
+ obj[key] = value;
14265
+ }
14266
+ return obj;
14267
+ }
14268
+ function _classCallCheck(instance, Constructor) {
14269
+ if (!(instance instanceof Constructor)) {
14270
+ throw new TypeError("Cannot call a class as a function");
14271
+ }
14272
+ }
14273
+ function _defineProperties(target, props) {
14274
+ for (var i = 0; i < props.length; i++) {
14275
+ var descriptor = props[i];
14276
+ descriptor.enumerable = descriptor.enumerable || false;
14277
+ descriptor.configurable = true;
14278
+ if ("value" in descriptor) descriptor.writable = true;
14279
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
14280
+ }
14281
+ }
14282
+ function _createClass(Constructor, protoProps, staticProps) {
14283
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
14284
+ if (staticProps) _defineProperties(Constructor, staticProps);
14285
+ Object.defineProperty(Constructor, "prototype", { writable: false });
14286
+ return Constructor;
14287
+ }
14288
+ function _toPropertyKey(arg) {
14289
+ var key = _toPrimitive(arg, "string");
14290
+ return _typeof(key) === "symbol" ? key : String(key);
14291
+ }
14292
+ function _toPrimitive(input, hint) {
14293
+ if (_typeof(input) !== "object" || input === null) return input;
14294
+ var prim = input[Symbol.toPrimitive];
14295
+ if (prim !== void 0) {
14296
+ var res = prim.call(input, hint || "default");
14297
+ if (_typeof(res) !== "object") return res;
14298
+ throw new TypeError("@@toPrimitive must return a primitive value.");
14299
+ }
14300
+ return (hint === "string" ? String : Number)(input);
14301
+ }
14302
+ function _inherits(subClass, superClass) {
14303
+ if (typeof superClass !== "function" && superClass !== null) {
14304
+ throw new TypeError("Super expression must either be null or a function");
14305
+ }
14306
+ subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
14307
+ Object.defineProperty(subClass, "prototype", { writable: false });
14308
+ if (superClass) _setPrototypeOf(subClass, superClass);
14309
+ }
14310
+ function _createSuper(Derived) {
14311
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
14312
+ return function _createSuperInternal() {
14313
+ var Super = _getPrototypeOf(Derived), result;
14314
+ if (hasNativeReflectConstruct) {
14315
+ var NewTarget = _getPrototypeOf(this).constructor;
14316
+ result = Reflect.construct(Super, arguments, NewTarget);
14317
+ } else {
14318
+ result = Super.apply(this, arguments);
14319
+ }
14320
+ return _possibleConstructorReturn(this, result);
14321
+ };
14322
+ }
14323
+ function _possibleConstructorReturn(self2, call) {
14324
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
14325
+ return call;
14326
+ } else if (call !== void 0) {
14327
+ throw new TypeError("Derived constructors may only return object or undefined");
14328
+ }
14329
+ return _assertThisInitialized(self2);
14330
+ }
14331
+ function _assertThisInitialized(self2) {
14332
+ if (self2 === void 0) {
14333
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14334
+ }
14335
+ return self2;
14336
+ }
14337
+ function _wrapNativeSuper(Class) {
14338
+ var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
14339
+ _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
14340
+ if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
14341
+ if (typeof Class2 !== "function") {
14342
+ throw new TypeError("Super expression must either be null or a function");
14343
+ }
14344
+ if (typeof _cache !== "undefined") {
14345
+ if (_cache.has(Class2)) return _cache.get(Class2);
14346
+ _cache.set(Class2, Wrapper);
14347
+ }
14348
+ function Wrapper() {
14349
+ return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
14350
+ }
14351
+ Wrapper.prototype = Object.create(Class2.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } });
14352
+ return _setPrototypeOf(Wrapper, Class2);
14353
+ };
14354
+ return _wrapNativeSuper(Class);
14355
+ }
14356
+ function _construct(Parent, args, Class) {
14357
+ if (_isNativeReflectConstruct()) {
14358
+ _construct = Reflect.construct.bind();
14359
+ } else {
14360
+ _construct = function _construct2(Parent2, args2, Class2) {
14361
+ var a = [null];
14362
+ a.push.apply(a, args2);
14363
+ var Constructor = Function.bind.apply(Parent2, a);
14364
+ var instance = new Constructor();
14365
+ if (Class2) _setPrototypeOf(instance, Class2.prototype);
14366
+ return instance;
14367
+ };
14368
+ }
14369
+ return _construct.apply(null, arguments);
14370
+ }
14371
+ function _isNativeReflectConstruct() {
14372
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
14373
+ if (Reflect.construct.sham) return false;
14374
+ if (typeof Proxy === "function") return true;
14375
+ try {
14376
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14377
+ }));
14378
+ return true;
14379
+ } catch (e) {
14380
+ return false;
14381
+ }
14382
+ }
14383
+ function _isNativeFunction(fn) {
14384
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
14385
+ }
14386
+ function _setPrototypeOf(o, p) {
14387
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
14388
+ o2.__proto__ = p2;
14389
+ return o2;
14390
+ };
14391
+ return _setPrototypeOf(o, p);
14392
+ }
14393
+ function _getPrototypeOf(o) {
14394
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
14395
+ return o2.__proto__ || Object.getPrototypeOf(o2);
14396
+ };
14397
+ return _getPrototypeOf(o);
14398
+ }
14399
+ function _typeof(o) {
14400
+ "@babel/helpers - typeof";
14401
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
14402
+ return typeof o2;
14403
+ } : function(o2) {
14404
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
14405
+ }, _typeof(o);
14406
+ }
14407
+ var _require = require_util();
14408
+ var inspect = _require.inspect;
14409
+ var _require2 = require_errors();
14410
+ var ERR_INVALID_ARG_TYPE = _require2.codes.ERR_INVALID_ARG_TYPE;
14411
+ function endsWith(str, search, this_len) {
14412
+ if (this_len === void 0 || this_len > str.length) {
14413
+ this_len = str.length;
14414
+ }
14415
+ return str.substring(this_len - search.length, this_len) === search;
14416
+ }
14417
+ function repeat(str, count) {
14418
+ count = Math.floor(count);
14419
+ if (str.length == 0 || count == 0) return "";
14420
+ var maxCount = str.length * count;
14421
+ count = Math.floor(Math.log(count) / Math.log(2));
14422
+ while (count) {
14423
+ str += str;
14424
+ count--;
14425
+ }
14426
+ str += str.substring(0, maxCount - str.length);
14427
+ return str;
14428
+ }
14429
+ var blue = "";
14430
+ var green = "";
14431
+ var red = "";
14432
+ var white = "";
14433
+ var kReadableOperator = {
14434
+ deepStrictEqual: "Expected values to be strictly deep-equal:",
14435
+ strictEqual: "Expected values to be strictly equal:",
14436
+ strictEqualObject: 'Expected "actual" to be reference-equal to "expected":',
14437
+ deepEqual: "Expected values to be loosely deep-equal:",
14438
+ equal: "Expected values to be loosely equal:",
14439
+ notDeepStrictEqual: 'Expected "actual" not to be strictly deep-equal to:',
14440
+ notStrictEqual: 'Expected "actual" to be strictly unequal to:',
14441
+ notStrictEqualObject: 'Expected "actual" not to be reference-equal to "expected":',
14442
+ notDeepEqual: 'Expected "actual" not to be loosely deep-equal to:',
14443
+ notEqual: 'Expected "actual" to be loosely unequal to:',
14444
+ notIdentical: "Values identical but not reference-equal:"
14445
+ };
14446
+ var kMaxShortLength = 10;
14447
+ function copyError(source) {
14448
+ var keys = Object.keys(source);
14449
+ var target = Object.create(Object.getPrototypeOf(source));
14450
+ keys.forEach(function(key) {
14451
+ target[key] = source[key];
14452
+ });
14453
+ Object.defineProperty(target, "message", {
14454
+ value: source.message
14455
+ });
14456
+ return target;
14457
+ }
14458
+ function inspectValue(val) {
14459
+ return inspect(val, {
14460
+ compact: false,
14461
+ customInspect: false,
14462
+ depth: 1e3,
14463
+ maxArrayLength: Infinity,
14464
+ // Assert compares only enumerable properties (with a few exceptions).
14465
+ showHidden: false,
14466
+ // Having a long line as error is better than wrapping the line for
14467
+ // comparison for now.
14468
+ // TODO(BridgeAR): `breakLength` should be limited as soon as soon as we
14469
+ // have meta information about the inspected properties (i.e., know where
14470
+ // in what line the property starts and ends).
14471
+ breakLength: Infinity,
14472
+ // Assert does not detect proxies currently.
14473
+ showProxy: false,
14474
+ sorted: true,
14475
+ // Inspect getters as we also check them when comparing entries.
14476
+ getters: true
14477
+ });
14478
+ }
14479
+ function createErrDiff(actual, expected, operator) {
14480
+ var other = "";
14481
+ var res = "";
14482
+ var lastPos = 0;
14483
+ var end = "";
14484
+ var skipped = false;
14485
+ var actualInspected = inspectValue(actual);
14486
+ var actualLines = actualInspected.split("\n");
14487
+ var expectedLines = inspectValue(expected).split("\n");
14488
+ var i = 0;
14489
+ var indicator = "";
14490
+ if (operator === "strictEqual" && _typeof(actual) === "object" && _typeof(expected) === "object" && actual !== null && expected !== null) {
14491
+ operator = "strictEqualObject";
14492
+ }
14493
+ if (actualLines.length === 1 && expectedLines.length === 1 && actualLines[0] !== expectedLines[0]) {
14494
+ var inputLength = actualLines[0].length + expectedLines[0].length;
14495
+ if (inputLength <= kMaxShortLength) {
14496
+ if ((_typeof(actual) !== "object" || actual === null) && (_typeof(expected) !== "object" || expected === null) && (actual !== 0 || expected !== 0)) {
14497
+ return "".concat(kReadableOperator[operator], "\n\n") + "".concat(actualLines[0], " !== ").concat(expectedLines[0], "\n");
14498
+ }
14499
+ } else if (operator !== "strictEqualObject") {
14500
+ var maxLength = import_browser.default.stderr && import_browser.default.stderr.isTTY ? import_browser.default.stderr.columns : 80;
14501
+ if (inputLength < maxLength) {
14502
+ while (actualLines[0][i] === expectedLines[0][i]) {
14503
+ i++;
14504
+ }
14505
+ if (i > 2) {
14506
+ indicator = "\n ".concat(repeat(" ", i), "^");
14507
+ i = 0;
14508
+ }
14509
+ }
14510
+ }
14511
+ }
14512
+ var a = actualLines[actualLines.length - 1];
14513
+ var b = expectedLines[expectedLines.length - 1];
14514
+ while (a === b) {
14515
+ if (i++ < 2) {
14516
+ end = "\n ".concat(a).concat(end);
14517
+ } else {
14518
+ other = a;
14519
+ }
14520
+ actualLines.pop();
14521
+ expectedLines.pop();
14522
+ if (actualLines.length === 0 || expectedLines.length === 0) break;
14523
+ a = actualLines[actualLines.length - 1];
14524
+ b = expectedLines[expectedLines.length - 1];
14525
+ }
14526
+ var maxLines = Math.max(actualLines.length, expectedLines.length);
14527
+ if (maxLines === 0) {
14528
+ var _actualLines = actualInspected.split("\n");
14529
+ if (_actualLines.length > 30) {
14530
+ _actualLines[26] = "".concat(blue, "...").concat(white);
14531
+ while (_actualLines.length > 27) {
14532
+ _actualLines.pop();
14533
+ }
14534
+ }
14535
+ return "".concat(kReadableOperator.notIdentical, "\n\n").concat(_actualLines.join("\n"), "\n");
14536
+ }
14537
+ if (i > 3) {
14538
+ end = "\n".concat(blue, "...").concat(white).concat(end);
14539
+ skipped = true;
14540
+ }
14541
+ if (other !== "") {
14542
+ end = "\n ".concat(other).concat(end);
14543
+ other = "";
14544
+ }
14545
+ var printedLines = 0;
14546
+ var msg = kReadableOperator[operator] + "\n".concat(green, "+ actual").concat(white, " ").concat(red, "- expected").concat(white);
14547
+ var skippedMsg = " ".concat(blue, "...").concat(white, " Lines skipped");
14548
+ for (i = 0; i < maxLines; i++) {
14549
+ var cur = i - lastPos;
14550
+ if (actualLines.length < i + 1) {
14551
+ if (cur > 1 && i > 2) {
14552
+ if (cur > 4) {
14553
+ res += "\n".concat(blue, "...").concat(white);
14554
+ skipped = true;
14555
+ } else if (cur > 3) {
14556
+ res += "\n ".concat(expectedLines[i - 2]);
14557
+ printedLines++;
14558
+ }
14559
+ res += "\n ".concat(expectedLines[i - 1]);
14560
+ printedLines++;
14561
+ }
14562
+ lastPos = i;
14563
+ other += "\n".concat(red, "-").concat(white, " ").concat(expectedLines[i]);
14564
+ printedLines++;
14565
+ } else if (expectedLines.length < i + 1) {
14566
+ if (cur > 1 && i > 2) {
14567
+ if (cur > 4) {
14568
+ res += "\n".concat(blue, "...").concat(white);
14569
+ skipped = true;
14570
+ } else if (cur > 3) {
14571
+ res += "\n ".concat(actualLines[i - 2]);
14572
+ printedLines++;
14573
+ }
14574
+ res += "\n ".concat(actualLines[i - 1]);
14575
+ printedLines++;
14576
+ }
14577
+ lastPos = i;
14578
+ res += "\n".concat(green, "+").concat(white, " ").concat(actualLines[i]);
14579
+ printedLines++;
14580
+ } else {
14581
+ var expectedLine = expectedLines[i];
14582
+ var actualLine = actualLines[i];
14583
+ var divergingLines = actualLine !== expectedLine && (!endsWith(actualLine, ",") || actualLine.slice(0, -1) !== expectedLine);
14584
+ if (divergingLines && endsWith(expectedLine, ",") && expectedLine.slice(0, -1) === actualLine) {
14585
+ divergingLines = false;
14586
+ actualLine += ",";
14587
+ }
14588
+ if (divergingLines) {
14589
+ if (cur > 1 && i > 2) {
14590
+ if (cur > 4) {
14591
+ res += "\n".concat(blue, "...").concat(white);
14592
+ skipped = true;
14593
+ } else if (cur > 3) {
14594
+ res += "\n ".concat(actualLines[i - 2]);
14595
+ printedLines++;
14596
+ }
14597
+ res += "\n ".concat(actualLines[i - 1]);
14598
+ printedLines++;
14599
+ }
14600
+ lastPos = i;
14601
+ res += "\n".concat(green, "+").concat(white, " ").concat(actualLine);
14602
+ other += "\n".concat(red, "-").concat(white, " ").concat(expectedLine);
14603
+ printedLines += 2;
14604
+ } else {
14605
+ res += other;
14606
+ other = "";
14607
+ if (cur === 1 || i === 0) {
14608
+ res += "\n ".concat(actualLine);
14609
+ printedLines++;
14610
+ }
14611
+ }
14612
+ }
14613
+ if (printedLines > 20 && i < maxLines - 2) {
14614
+ return "".concat(msg).concat(skippedMsg, "\n").concat(res, "\n").concat(blue, "...").concat(white).concat(other, "\n") + "".concat(blue, "...").concat(white);
14615
+ }
14616
+ }
14617
+ return "".concat(msg).concat(skipped ? skippedMsg : "", "\n").concat(res).concat(other).concat(end).concat(indicator);
14618
+ }
14619
+ var AssertionError = /* @__PURE__ */ (function(_Error, _inspect$custom) {
14620
+ _inherits(AssertionError2, _Error);
14621
+ var _super = _createSuper(AssertionError2);
14622
+ function AssertionError2(options) {
14623
+ var _this;
14624
+ _classCallCheck(this, AssertionError2);
14625
+ if (_typeof(options) !== "object" || options === null) {
14626
+ throw new ERR_INVALID_ARG_TYPE("options", "Object", options);
14627
+ }
14628
+ var message = options.message, operator = options.operator, stackStartFn = options.stackStartFn;
14629
+ var actual = options.actual, expected = options.expected;
14630
+ var limit = Error.stackTraceLimit;
14631
+ Error.stackTraceLimit = 0;
14632
+ if (message != null) {
14633
+ _this = _super.call(this, String(message));
14634
+ } else {
14635
+ if (import_browser.default.stderr && import_browser.default.stderr.isTTY) {
14636
+ if (import_browser.default.stderr && import_browser.default.stderr.getColorDepth && import_browser.default.stderr.getColorDepth() !== 1) {
14637
+ blue = "\x1B[34m";
14638
+ green = "\x1B[32m";
14639
+ white = "\x1B[39m";
14640
+ red = "\x1B[31m";
14641
+ } else {
14642
+ blue = "";
14643
+ green = "";
14644
+ white = "";
14645
+ red = "";
14646
+ }
14647
+ }
14648
+ if (_typeof(actual) === "object" && actual !== null && _typeof(expected) === "object" && expected !== null && "stack" in actual && actual instanceof Error && "stack" in expected && expected instanceof Error) {
14649
+ actual = copyError(actual);
14650
+ expected = copyError(expected);
14651
+ }
14652
+ if (operator === "deepStrictEqual" || operator === "strictEqual") {
14653
+ _this = _super.call(this, createErrDiff(actual, expected, operator));
14654
+ } else if (operator === "notDeepStrictEqual" || operator === "notStrictEqual") {
14655
+ var base = kReadableOperator[operator];
14656
+ var res = inspectValue(actual).split("\n");
14657
+ if (operator === "notStrictEqual" && _typeof(actual) === "object" && actual !== null) {
14658
+ base = kReadableOperator.notStrictEqualObject;
14659
+ }
14660
+ if (res.length > 30) {
14661
+ res[26] = "".concat(blue, "...").concat(white);
14662
+ while (res.length > 27) {
14663
+ res.pop();
14664
+ }
14665
+ }
14666
+ if (res.length === 1) {
14667
+ _this = _super.call(this, "".concat(base, " ").concat(res[0]));
14668
+ } else {
14669
+ _this = _super.call(this, "".concat(base, "\n\n").concat(res.join("\n"), "\n"));
14670
+ }
14671
+ } else {
14672
+ var _res = inspectValue(actual);
14673
+ var other = "";
14674
+ var knownOperators = kReadableOperator[operator];
14675
+ if (operator === "notDeepEqual" || operator === "notEqual") {
14676
+ _res = "".concat(kReadableOperator[operator], "\n\n").concat(_res);
14677
+ if (_res.length > 1024) {
14678
+ _res = "".concat(_res.slice(0, 1021), "...");
14679
+ }
14680
+ } else {
14681
+ other = "".concat(inspectValue(expected));
14682
+ if (_res.length > 512) {
14683
+ _res = "".concat(_res.slice(0, 509), "...");
14684
+ }
14685
+ if (other.length > 512) {
14686
+ other = "".concat(other.slice(0, 509), "...");
14687
+ }
14688
+ if (operator === "deepEqual" || operator === "equal") {
14689
+ _res = "".concat(knownOperators, "\n\n").concat(_res, "\n\nshould equal\n\n");
14690
+ } else {
14691
+ other = " ".concat(operator, " ").concat(other);
14692
+ }
14693
+ }
14694
+ _this = _super.call(this, "".concat(_res).concat(other));
14695
+ }
14696
+ }
14697
+ Error.stackTraceLimit = limit;
14698
+ _this.generatedMessage = !message;
14699
+ Object.defineProperty(_assertThisInitialized(_this), "name", {
14700
+ value: "AssertionError [ERR_ASSERTION]",
14701
+ enumerable: false,
14702
+ writable: true,
14703
+ configurable: true
14704
+ });
14705
+ _this.code = "ERR_ASSERTION";
14706
+ _this.actual = actual;
14707
+ _this.expected = expected;
14708
+ _this.operator = operator;
14709
+ if (Error.captureStackTrace) {
14710
+ Error.captureStackTrace(_assertThisInitialized(_this), stackStartFn);
14711
+ }
14712
+ _this.stack;
14713
+ _this.name = "AssertionError";
14714
+ return _possibleConstructorReturn(_this);
14715
+ }
14716
+ _createClass(AssertionError2, [{
14717
+ key: "toString",
14718
+ value: function toString() {
14719
+ return "".concat(this.name, " [").concat(this.code, "]: ").concat(this.message);
14720
+ }
14721
+ }, {
14722
+ key: _inspect$custom,
14723
+ value: function value(recurseTimes, ctx) {
14724
+ return inspect(this, _objectSpread(_objectSpread({}, ctx), {}, {
14725
+ customInspect: false,
14726
+ depth: 0
14727
+ }));
14728
+ }
14729
+ }]);
14730
+ return AssertionError2;
14731
+ })(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom);
14732
+ module2.exports = AssertionError;
14733
+ }
14734
+ });
14735
+
14736
+ // ../../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js
14737
+ var require_isArguments = __commonJS({
14738
+ "../../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js"(exports2, module2) {
14739
+ "use strict";
14740
+ init_browser_globals();
14741
+ var toStr = Object.prototype.toString;
14742
+ module2.exports = function isArguments(value) {
14743
+ var str = toStr.call(value);
14744
+ var isArgs = str === "[object Arguments]";
14745
+ if (!isArgs) {
14746
+ isArgs = str !== "[object Array]" && value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && toStr.call(value.callee) === "[object Function]";
14747
+ }
14748
+ return isArgs;
14749
+ };
14750
+ }
14751
+ });
14752
+
14753
+ // ../../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js
14754
+ var require_implementation2 = __commonJS({
14755
+ "../../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js"(exports2, module2) {
14756
+ "use strict";
14757
+ init_browser_globals();
14758
+ var keysShim;
14759
+ if (!Object.keys) {
14760
+ has = Object.prototype.hasOwnProperty;
14761
+ toStr = Object.prototype.toString;
14762
+ isArgs = require_isArguments();
14763
+ isEnumerable = Object.prototype.propertyIsEnumerable;
14764
+ hasDontEnumBug = !isEnumerable.call({ toString: null }, "toString");
14765
+ hasProtoEnumBug = isEnumerable.call(function() {
14766
+ }, "prototype");
14767
+ dontEnums = [
14768
+ "toString",
14769
+ "toLocaleString",
14770
+ "valueOf",
14771
+ "hasOwnProperty",
14772
+ "isPrototypeOf",
14773
+ "propertyIsEnumerable",
14774
+ "constructor"
14775
+ ];
14776
+ equalsConstructorPrototype = function(o) {
14777
+ var ctor = o.constructor;
14778
+ return ctor && ctor.prototype === o;
14779
+ };
14780
+ excludedKeys = {
14781
+ $applicationCache: true,
14782
+ $console: true,
14783
+ $external: true,
14784
+ $frame: true,
14785
+ $frameElement: true,
14786
+ $frames: true,
14787
+ $innerHeight: true,
14788
+ $innerWidth: true,
14789
+ $onmozfullscreenchange: true,
14790
+ $onmozfullscreenerror: true,
14791
+ $outerHeight: true,
14792
+ $outerWidth: true,
14793
+ $pageXOffset: true,
14794
+ $pageYOffset: true,
14795
+ $parent: true,
14796
+ $scrollLeft: true,
14797
+ $scrollTop: true,
14798
+ $scrollX: true,
14799
+ $scrollY: true,
14800
+ $self: true,
14801
+ $webkitIndexedDB: true,
14802
+ $webkitStorageInfo: true,
14803
+ $window: true
14804
+ };
14805
+ hasAutomationEqualityBug = (function() {
14806
+ if (typeof window === "undefined") {
14807
+ return false;
14808
+ }
14809
+ for (var k in window) {
14810
+ try {
14811
+ if (!excludedKeys["$" + k] && has.call(window, k) && window[k] !== null && typeof window[k] === "object") {
14812
+ try {
14813
+ equalsConstructorPrototype(window[k]);
14814
+ } catch (e) {
14815
+ return true;
14816
+ }
14817
+ }
14818
+ } catch (e) {
14819
+ return true;
14820
+ }
14821
+ }
14822
+ return false;
14823
+ })();
14824
+ equalsConstructorPrototypeIfNotBuggy = function(o) {
14825
+ if (typeof window === "undefined" || !hasAutomationEqualityBug) {
14826
+ return equalsConstructorPrototype(o);
14827
+ }
14828
+ try {
14829
+ return equalsConstructorPrototype(o);
14830
+ } catch (e) {
14831
+ return false;
14832
+ }
14833
+ };
14834
+ keysShim = function keys(object) {
14835
+ var isObject = object !== null && typeof object === "object";
14836
+ var isFunction = toStr.call(object) === "[object Function]";
14837
+ var isArguments = isArgs(object);
14838
+ var isString = isObject && toStr.call(object) === "[object String]";
14839
+ var theKeys = [];
14840
+ if (!isObject && !isFunction && !isArguments) {
14841
+ throw new TypeError("Object.keys called on a non-object");
14842
+ }
14843
+ var skipProto = hasProtoEnumBug && isFunction;
14844
+ if (isString && object.length > 0 && !has.call(object, 0)) {
14845
+ for (var i = 0; i < object.length; ++i) {
14846
+ theKeys.push(String(i));
14847
+ }
14848
+ }
14849
+ if (isArguments && object.length > 0) {
14850
+ for (var j = 0; j < object.length; ++j) {
14851
+ theKeys.push(String(j));
14852
+ }
14853
+ } else {
13873
14854
  for (var name in object) {
13874
14855
  if (!(skipProto && name === "prototype") && has.call(object, name)) {
13875
14856
  theKeys.push(String(name));
@@ -14033,314 +15014,1252 @@ var require_polyfill = __commonJS({
14033
15014
  }
14034
15015
  });
14035
15016
 
14036
- // ../../../node_modules/.pnpm/assert@1.5.1/node_modules/assert/assert.js
14037
- var require_assert = __commonJS({
14038
- "../../../node_modules/.pnpm/assert@1.5.1/node_modules/assert/assert.js"(exports2, module2) {
15017
+ // ../../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/implementation.js
15018
+ var require_implementation4 = __commonJS({
15019
+ "../../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/implementation.js"(exports2, module2) {
14039
15020
  "use strict";
14040
15021
  init_browser_globals();
14041
- var objectAssign = require_polyfill()();
15022
+ var numberIsNaN = function(value) {
15023
+ return value !== value;
15024
+ };
15025
+ module2.exports = function is(a, b) {
15026
+ if (a === 0 && b === 0) {
15027
+ return 1 / a === 1 / b;
15028
+ }
15029
+ if (a === b) {
15030
+ return true;
15031
+ }
15032
+ if (numberIsNaN(a) && numberIsNaN(b)) {
15033
+ return true;
15034
+ }
15035
+ return false;
15036
+ };
15037
+ }
15038
+ });
15039
+
15040
+ // ../../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/polyfill.js
15041
+ var require_polyfill2 = __commonJS({
15042
+ "../../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/polyfill.js"(exports2, module2) {
15043
+ "use strict";
15044
+ init_browser_globals();
15045
+ var implementation = require_implementation4();
15046
+ module2.exports = function getPolyfill() {
15047
+ return typeof Object.is === "function" ? Object.is : implementation;
15048
+ };
15049
+ }
15050
+ });
15051
+
15052
+ // ../../../node_modules/.pnpm/call-bind@1.0.9/node_modules/call-bind/callBound.js
15053
+ var require_callBound = __commonJS({
15054
+ "../../../node_modules/.pnpm/call-bind@1.0.9/node_modules/call-bind/callBound.js"(exports2, module2) {
15055
+ "use strict";
15056
+ init_browser_globals();
15057
+ var GetIntrinsic = require_get_intrinsic();
15058
+ var callBind = require_call_bind();
15059
+ var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
15060
+ module2.exports = function callBoundIntrinsic(name, allowMissing) {
15061
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
15062
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
15063
+ return callBind(intrinsic);
15064
+ }
15065
+ return intrinsic;
15066
+ };
15067
+ }
15068
+ });
15069
+
15070
+ // ../../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js
15071
+ var require_define_properties = __commonJS({
15072
+ "../../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"(exports2, module2) {
15073
+ "use strict";
15074
+ init_browser_globals();
15075
+ var keys = require_object_keys();
15076
+ var hasSymbols = typeof Symbol === "function" && typeof /* @__PURE__ */ Symbol("foo") === "symbol";
15077
+ var toStr = Object.prototype.toString;
15078
+ var concat = Array.prototype.concat;
15079
+ var defineDataProperty = require_define_data_property();
15080
+ var isFunction = function(fn) {
15081
+ return typeof fn === "function" && toStr.call(fn) === "[object Function]";
15082
+ };
15083
+ var supportsDescriptors = require_has_property_descriptors()();
15084
+ var defineProperty = function(object, name, value, predicate) {
15085
+ if (name in object) {
15086
+ if (predicate === true) {
15087
+ if (object[name] === value) {
15088
+ return;
15089
+ }
15090
+ } else if (!isFunction(predicate) || !predicate()) {
15091
+ return;
15092
+ }
15093
+ }
15094
+ if (supportsDescriptors) {
15095
+ defineDataProperty(object, name, value, true);
15096
+ } else {
15097
+ defineDataProperty(object, name, value);
15098
+ }
15099
+ };
15100
+ var defineProperties = function(object, map) {
15101
+ var predicates = arguments.length > 2 ? arguments[2] : {};
15102
+ var props = keys(map);
15103
+ if (hasSymbols) {
15104
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
15105
+ }
15106
+ for (var i = 0; i < props.length; i += 1) {
15107
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
15108
+ }
15109
+ };
15110
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
15111
+ module2.exports = defineProperties;
15112
+ }
15113
+ });
15114
+
15115
+ // ../../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/shim.js
15116
+ var require_shim = __commonJS({
15117
+ "../../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/shim.js"(exports2, module2) {
15118
+ "use strict";
15119
+ init_browser_globals();
15120
+ var getPolyfill = require_polyfill2();
15121
+ var define = require_define_properties();
15122
+ module2.exports = function shimObjectIs() {
15123
+ var polyfill = getPolyfill();
15124
+ define(Object, { is: polyfill }, {
15125
+ is: function testObjectIs() {
15126
+ return Object.is !== polyfill;
15127
+ }
15128
+ });
15129
+ return polyfill;
15130
+ };
15131
+ }
15132
+ });
15133
+
15134
+ // ../../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/index.js
15135
+ var require_object_is = __commonJS({
15136
+ "../../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/index.js"(exports2, module2) {
15137
+ "use strict";
15138
+ init_browser_globals();
15139
+ var define = require_define_properties();
15140
+ var callBind = require_call_bind();
15141
+ var implementation = require_implementation4();
15142
+ var getPolyfill = require_polyfill2();
15143
+ var shim = require_shim();
15144
+ var polyfill = callBind(getPolyfill(), Object);
15145
+ define(polyfill, {
15146
+ getPolyfill,
15147
+ implementation,
15148
+ shim
15149
+ });
15150
+ module2.exports = polyfill;
15151
+ }
15152
+ });
15153
+
15154
+ // ../../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js
15155
+ var require_implementation5 = __commonJS({
15156
+ "../../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js"(exports2, module2) {
15157
+ "use strict";
15158
+ init_browser_globals();
15159
+ module2.exports = function isNaN2(value) {
15160
+ return value !== value;
15161
+ };
15162
+ }
15163
+ });
15164
+
15165
+ // ../../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/polyfill.js
15166
+ var require_polyfill3 = __commonJS({
15167
+ "../../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/polyfill.js"(exports2, module2) {
15168
+ "use strict";
15169
+ init_browser_globals();
15170
+ var implementation = require_implementation5();
15171
+ module2.exports = function getPolyfill() {
15172
+ if (Number.isNaN && Number.isNaN(NaN) && !Number.isNaN("a")) {
15173
+ return Number.isNaN;
15174
+ }
15175
+ return implementation;
15176
+ };
15177
+ }
15178
+ });
15179
+
15180
+ // ../../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/shim.js
15181
+ var require_shim2 = __commonJS({
15182
+ "../../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/shim.js"(exports2, module2) {
15183
+ "use strict";
15184
+ init_browser_globals();
15185
+ var define = require_define_properties();
15186
+ var getPolyfill = require_polyfill3();
15187
+ module2.exports = function shimNumberIsNaN() {
15188
+ var polyfill = getPolyfill();
15189
+ define(Number, { isNaN: polyfill }, {
15190
+ isNaN: function testIsNaN() {
15191
+ return Number.isNaN !== polyfill;
15192
+ }
15193
+ });
15194
+ return polyfill;
15195
+ };
15196
+ }
15197
+ });
15198
+
15199
+ // ../../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/index.js
15200
+ var require_is_nan = __commonJS({
15201
+ "../../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/index.js"(exports2, module2) {
15202
+ "use strict";
15203
+ init_browser_globals();
15204
+ var callBind = require_call_bind();
15205
+ var define = require_define_properties();
15206
+ var implementation = require_implementation5();
15207
+ var getPolyfill = require_polyfill3();
15208
+ var shim = require_shim2();
15209
+ var polyfill = callBind(getPolyfill(), Number);
15210
+ define(polyfill, {
15211
+ getPolyfill,
15212
+ implementation,
15213
+ shim
15214
+ });
15215
+ module2.exports = polyfill;
15216
+ }
15217
+ });
15218
+
15219
+ // ../../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/util/comparisons.js
15220
+ var require_comparisons = __commonJS({
15221
+ "../../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/util/comparisons.js"(exports2, module2) {
15222
+ "use strict";
15223
+ init_browser_globals();
15224
+ function _slicedToArray(arr, i) {
15225
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
15226
+ }
15227
+ function _nonIterableRest() {
15228
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15229
+ }
15230
+ function _unsupportedIterableToArray(o, minLen) {
15231
+ if (!o) return;
15232
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
15233
+ var n = Object.prototype.toString.call(o).slice(8, -1);
15234
+ if (n === "Object" && o.constructor) n = o.constructor.name;
15235
+ if (n === "Map" || n === "Set") return Array.from(o);
15236
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
15237
+ }
15238
+ function _arrayLikeToArray(arr, len) {
15239
+ if (len == null || len > arr.length) len = arr.length;
15240
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
15241
+ return arr2;
15242
+ }
15243
+ function _iterableToArrayLimit(r, l) {
15244
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15245
+ if (null != t) {
15246
+ var e, n, i, u, a = [], f = true, o = false;
15247
+ try {
15248
+ if (i = (t = t.call(r)).next, 0 === l) {
15249
+ if (Object(t) !== t) return;
15250
+ f = false;
15251
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
15252
+ } catch (r2) {
15253
+ o = true, n = r2;
15254
+ } finally {
15255
+ try {
15256
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
15257
+ } finally {
15258
+ if (o) throw n;
15259
+ }
15260
+ }
15261
+ return a;
15262
+ }
15263
+ }
15264
+ function _arrayWithHoles(arr) {
15265
+ if (Array.isArray(arr)) return arr;
15266
+ }
15267
+ function _typeof(o) {
15268
+ "@babel/helpers - typeof";
15269
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
15270
+ return typeof o2;
15271
+ } : function(o2) {
15272
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
15273
+ }, _typeof(o);
15274
+ }
15275
+ var regexFlagsSupported = /a/g.flags !== void 0;
15276
+ var arrayFromSet = function arrayFromSet2(set) {
15277
+ var array = [];
15278
+ set.forEach(function(value) {
15279
+ return array.push(value);
15280
+ });
15281
+ return array;
15282
+ };
15283
+ var arrayFromMap = function arrayFromMap2(map) {
15284
+ var array = [];
15285
+ map.forEach(function(value, key) {
15286
+ return array.push([key, value]);
15287
+ });
15288
+ return array;
15289
+ };
15290
+ var objectIs = Object.is ? Object.is : require_object_is();
15291
+ var objectGetOwnPropertySymbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function() {
15292
+ return [];
15293
+ };
15294
+ var numberIsNaN = Number.isNaN ? Number.isNaN : require_is_nan();
15295
+ function uncurryThis(f) {
15296
+ return f.call.bind(f);
15297
+ }
15298
+ var hasOwnProperty = uncurryThis(Object.prototype.hasOwnProperty);
15299
+ var propertyIsEnumerable = uncurryThis(Object.prototype.propertyIsEnumerable);
15300
+ var objectToString = uncurryThis(Object.prototype.toString);
15301
+ var _require$types = require_util().types;
15302
+ var isAnyArrayBuffer = _require$types.isAnyArrayBuffer;
15303
+ var isArrayBufferView = _require$types.isArrayBufferView;
15304
+ var isDate = _require$types.isDate;
15305
+ var isMap = _require$types.isMap;
15306
+ var isRegExp = _require$types.isRegExp;
15307
+ var isSet = _require$types.isSet;
15308
+ var isNativeError = _require$types.isNativeError;
15309
+ var isBoxedPrimitive = _require$types.isBoxedPrimitive;
15310
+ var isNumberObject = _require$types.isNumberObject;
15311
+ var isStringObject = _require$types.isStringObject;
15312
+ var isBooleanObject = _require$types.isBooleanObject;
15313
+ var isBigIntObject = _require$types.isBigIntObject;
15314
+ var isSymbolObject = _require$types.isSymbolObject;
15315
+ var isFloat32Array = _require$types.isFloat32Array;
15316
+ var isFloat64Array = _require$types.isFloat64Array;
15317
+ function isNonIndex(key) {
15318
+ if (key.length === 0 || key.length > 10) return true;
15319
+ for (var i = 0; i < key.length; i++) {
15320
+ var code = key.charCodeAt(i);
15321
+ if (code < 48 || code > 57) return true;
15322
+ }
15323
+ return key.length === 10 && key >= Math.pow(2, 32);
15324
+ }
15325
+ function getOwnNonIndexProperties(value) {
15326
+ return Object.keys(value).filter(isNonIndex).concat(objectGetOwnPropertySymbols(value).filter(Object.prototype.propertyIsEnumerable.bind(value)));
15327
+ }
14042
15328
  function compare(a, b) {
14043
15329
  if (a === b) {
14044
15330
  return 0;
14045
15331
  }
14046
- var x = a.length;
14047
- var y = b.length;
14048
- for (var i = 0, len = Math.min(x, y); i < len; ++i) {
14049
- if (a[i] !== b[i]) {
14050
- x = a[i];
14051
- y = b[i];
14052
- break;
15332
+ var x = a.length;
15333
+ var y = b.length;
15334
+ for (var i = 0, len = Math.min(x, y); i < len; ++i) {
15335
+ if (a[i] !== b[i]) {
15336
+ x = a[i];
15337
+ y = b[i];
15338
+ break;
15339
+ }
15340
+ }
15341
+ if (x < y) {
15342
+ return -1;
15343
+ }
15344
+ if (y < x) {
15345
+ return 1;
15346
+ }
15347
+ return 0;
15348
+ }
15349
+ var ONLY_ENUMERABLE = void 0;
15350
+ var kStrict = true;
15351
+ var kLoose = false;
15352
+ var kNoIterator = 0;
15353
+ var kIsArray = 1;
15354
+ var kIsSet = 2;
15355
+ var kIsMap = 3;
15356
+ function areSimilarRegExps(a, b) {
15357
+ return regexFlagsSupported ? a.source === b.source && a.flags === b.flags : RegExp.prototype.toString.call(a) === RegExp.prototype.toString.call(b);
15358
+ }
15359
+ function areSimilarFloatArrays(a, b) {
15360
+ if (a.byteLength !== b.byteLength) {
15361
+ return false;
15362
+ }
15363
+ for (var offset = 0; offset < a.byteLength; offset++) {
15364
+ if (a[offset] !== b[offset]) {
15365
+ return false;
15366
+ }
15367
+ }
15368
+ return true;
15369
+ }
15370
+ function areSimilarTypedArrays(a, b) {
15371
+ if (a.byteLength !== b.byteLength) {
15372
+ return false;
15373
+ }
15374
+ return compare(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.byteLength)) === 0;
15375
+ }
15376
+ function areEqualArrayBuffers(buf1, buf2) {
15377
+ return buf1.byteLength === buf2.byteLength && compare(new Uint8Array(buf1), new Uint8Array(buf2)) === 0;
15378
+ }
15379
+ function isEqualBoxedPrimitive(val1, val2) {
15380
+ if (isNumberObject(val1)) {
15381
+ return isNumberObject(val2) && objectIs(Number.prototype.valueOf.call(val1), Number.prototype.valueOf.call(val2));
15382
+ }
15383
+ if (isStringObject(val1)) {
15384
+ return isStringObject(val2) && String.prototype.valueOf.call(val1) === String.prototype.valueOf.call(val2);
15385
+ }
15386
+ if (isBooleanObject(val1)) {
15387
+ return isBooleanObject(val2) && Boolean.prototype.valueOf.call(val1) === Boolean.prototype.valueOf.call(val2);
15388
+ }
15389
+ if (isBigIntObject(val1)) {
15390
+ return isBigIntObject(val2) && BigInt.prototype.valueOf.call(val1) === BigInt.prototype.valueOf.call(val2);
15391
+ }
15392
+ return isSymbolObject(val2) && Symbol.prototype.valueOf.call(val1) === Symbol.prototype.valueOf.call(val2);
15393
+ }
15394
+ function innerDeepEqual(val1, val2, strict, memos) {
15395
+ if (val1 === val2) {
15396
+ if (val1 !== 0) return true;
15397
+ return strict ? objectIs(val1, val2) : true;
15398
+ }
15399
+ if (strict) {
15400
+ if (_typeof(val1) !== "object") {
15401
+ return typeof val1 === "number" && numberIsNaN(val1) && numberIsNaN(val2);
15402
+ }
15403
+ if (_typeof(val2) !== "object" || val1 === null || val2 === null) {
15404
+ return false;
15405
+ }
15406
+ if (Object.getPrototypeOf(val1) !== Object.getPrototypeOf(val2)) {
15407
+ return false;
15408
+ }
15409
+ } else {
15410
+ if (val1 === null || _typeof(val1) !== "object") {
15411
+ if (val2 === null || _typeof(val2) !== "object") {
15412
+ return val1 == val2;
15413
+ }
15414
+ return false;
15415
+ }
15416
+ if (val2 === null || _typeof(val2) !== "object") {
15417
+ return false;
15418
+ }
15419
+ }
15420
+ var val1Tag = objectToString(val1);
15421
+ var val2Tag = objectToString(val2);
15422
+ if (val1Tag !== val2Tag) {
15423
+ return false;
15424
+ }
15425
+ if (Array.isArray(val1)) {
15426
+ if (val1.length !== val2.length) {
15427
+ return false;
15428
+ }
15429
+ var keys1 = getOwnNonIndexProperties(val1, ONLY_ENUMERABLE);
15430
+ var keys2 = getOwnNonIndexProperties(val2, ONLY_ENUMERABLE);
15431
+ if (keys1.length !== keys2.length) {
15432
+ return false;
15433
+ }
15434
+ return keyCheck(val1, val2, strict, memos, kIsArray, keys1);
15435
+ }
15436
+ if (val1Tag === "[object Object]") {
15437
+ if (!isMap(val1) && isMap(val2) || !isSet(val1) && isSet(val2)) {
15438
+ return false;
15439
+ }
15440
+ }
15441
+ if (isDate(val1)) {
15442
+ if (!isDate(val2) || Date.prototype.getTime.call(val1) !== Date.prototype.getTime.call(val2)) {
15443
+ return false;
15444
+ }
15445
+ } else if (isRegExp(val1)) {
15446
+ if (!isRegExp(val2) || !areSimilarRegExps(val1, val2)) {
15447
+ return false;
15448
+ }
15449
+ } else if (isNativeError(val1) || val1 instanceof Error) {
15450
+ if (val1.message !== val2.message || val1.name !== val2.name) {
15451
+ return false;
15452
+ }
15453
+ } else if (isArrayBufferView(val1)) {
15454
+ if (!strict && (isFloat32Array(val1) || isFloat64Array(val1))) {
15455
+ if (!areSimilarFloatArrays(val1, val2)) {
15456
+ return false;
15457
+ }
15458
+ } else if (!areSimilarTypedArrays(val1, val2)) {
15459
+ return false;
15460
+ }
15461
+ var _keys = getOwnNonIndexProperties(val1, ONLY_ENUMERABLE);
15462
+ var _keys2 = getOwnNonIndexProperties(val2, ONLY_ENUMERABLE);
15463
+ if (_keys.length !== _keys2.length) {
15464
+ return false;
15465
+ }
15466
+ return keyCheck(val1, val2, strict, memos, kNoIterator, _keys);
15467
+ } else if (isSet(val1)) {
15468
+ if (!isSet(val2) || val1.size !== val2.size) {
15469
+ return false;
15470
+ }
15471
+ return keyCheck(val1, val2, strict, memos, kIsSet);
15472
+ } else if (isMap(val1)) {
15473
+ if (!isMap(val2) || val1.size !== val2.size) {
15474
+ return false;
15475
+ }
15476
+ return keyCheck(val1, val2, strict, memos, kIsMap);
15477
+ } else if (isAnyArrayBuffer(val1)) {
15478
+ if (!areEqualArrayBuffers(val1, val2)) {
15479
+ return false;
15480
+ }
15481
+ } else if (isBoxedPrimitive(val1) && !isEqualBoxedPrimitive(val1, val2)) {
15482
+ return false;
15483
+ }
15484
+ return keyCheck(val1, val2, strict, memos, kNoIterator);
15485
+ }
15486
+ function getEnumerables(val, keys) {
15487
+ return keys.filter(function(k) {
15488
+ return propertyIsEnumerable(val, k);
15489
+ });
15490
+ }
15491
+ function keyCheck(val1, val2, strict, memos, iterationType, aKeys) {
15492
+ if (arguments.length === 5) {
15493
+ aKeys = Object.keys(val1);
15494
+ var bKeys = Object.keys(val2);
15495
+ if (aKeys.length !== bKeys.length) {
15496
+ return false;
15497
+ }
15498
+ }
15499
+ var i = 0;
15500
+ for (; i < aKeys.length; i++) {
15501
+ if (!hasOwnProperty(val2, aKeys[i])) {
15502
+ return false;
15503
+ }
15504
+ }
15505
+ if (strict && arguments.length === 5) {
15506
+ var symbolKeysA = objectGetOwnPropertySymbols(val1);
15507
+ if (symbolKeysA.length !== 0) {
15508
+ var count = 0;
15509
+ for (i = 0; i < symbolKeysA.length; i++) {
15510
+ var key = symbolKeysA[i];
15511
+ if (propertyIsEnumerable(val1, key)) {
15512
+ if (!propertyIsEnumerable(val2, key)) {
15513
+ return false;
15514
+ }
15515
+ aKeys.push(key);
15516
+ count++;
15517
+ } else if (propertyIsEnumerable(val2, key)) {
15518
+ return false;
15519
+ }
15520
+ }
15521
+ var symbolKeysB = objectGetOwnPropertySymbols(val2);
15522
+ if (symbolKeysA.length !== symbolKeysB.length && getEnumerables(val2, symbolKeysB).length !== count) {
15523
+ return false;
15524
+ }
15525
+ } else {
15526
+ var _symbolKeysB = objectGetOwnPropertySymbols(val2);
15527
+ if (_symbolKeysB.length !== 0 && getEnumerables(val2, _symbolKeysB).length !== 0) {
15528
+ return false;
15529
+ }
14053
15530
  }
14054
15531
  }
14055
- if (x < y) {
14056
- return -1;
15532
+ if (aKeys.length === 0 && (iterationType === kNoIterator || iterationType === kIsArray && val1.length === 0 || val1.size === 0)) {
15533
+ return true;
14057
15534
  }
14058
- if (y < x) {
14059
- return 1;
15535
+ if (memos === void 0) {
15536
+ memos = {
15537
+ val1: /* @__PURE__ */ new Map(),
15538
+ val2: /* @__PURE__ */ new Map(),
15539
+ position: 0
15540
+ };
15541
+ } else {
15542
+ var val2MemoA = memos.val1.get(val1);
15543
+ if (val2MemoA !== void 0) {
15544
+ var val2MemoB = memos.val2.get(val2);
15545
+ if (val2MemoB !== void 0) {
15546
+ return val2MemoA === val2MemoB;
15547
+ }
15548
+ }
15549
+ memos.position++;
15550
+ }
15551
+ memos.val1.set(val1, memos.position);
15552
+ memos.val2.set(val2, memos.position);
15553
+ var areEq = objEquiv(val1, val2, strict, aKeys, memos, iterationType);
15554
+ memos.val1.delete(val1);
15555
+ memos.val2.delete(val2);
15556
+ return areEq;
15557
+ }
15558
+ function setHasEqualElement(set, val1, strict, memo) {
15559
+ var setValues = arrayFromSet(set);
15560
+ for (var i = 0; i < setValues.length; i++) {
15561
+ var val2 = setValues[i];
15562
+ if (innerDeepEqual(val1, val2, strict, memo)) {
15563
+ set.delete(val2);
15564
+ return true;
15565
+ }
14060
15566
  }
14061
- return 0;
15567
+ return false;
14062
15568
  }
14063
- function isBuffer(b) {
14064
- if (globalThis.Buffer && typeof globalThis.Buffer.isBuffer === "function") {
14065
- return globalThis.Buffer.isBuffer(b);
15569
+ function findLooseMatchingPrimitives(prim) {
15570
+ switch (_typeof(prim)) {
15571
+ case "undefined":
15572
+ return null;
15573
+ case "object":
15574
+ return void 0;
15575
+ case "symbol":
15576
+ return false;
15577
+ case "string":
15578
+ prim = +prim;
15579
+ // Loose equal entries exist only if the string is possible to convert to
15580
+ // a regular number and not NaN.
15581
+ // Fall through
15582
+ case "number":
15583
+ if (numberIsNaN(prim)) {
15584
+ return false;
15585
+ }
14066
15586
  }
14067
- return !!(b != null && b._isBuffer);
15587
+ return true;
14068
15588
  }
14069
- var util2 = require_util();
14070
- var hasOwn = Object.prototype.hasOwnProperty;
14071
- var pSlice = Array.prototype.slice;
14072
- var functionsHaveNames = (function() {
14073
- return function foo() {
14074
- }.name === "foo";
14075
- })();
14076
- function pToString(obj) {
14077
- return Object.prototype.toString.call(obj);
15589
+ function setMightHaveLoosePrim(a, b, prim) {
15590
+ var altValue = findLooseMatchingPrimitives(prim);
15591
+ if (altValue != null) return altValue;
15592
+ return b.has(altValue) && !a.has(altValue);
14078
15593
  }
14079
- function isView(arrbuf) {
14080
- if (isBuffer(arrbuf)) {
14081
- return false;
15594
+ function mapMightHaveLoosePrim(a, b, prim, item, memo) {
15595
+ var altValue = findLooseMatchingPrimitives(prim);
15596
+ if (altValue != null) {
15597
+ return altValue;
14082
15598
  }
14083
- if (typeof globalThis.ArrayBuffer !== "function") {
15599
+ var curB = b.get(altValue);
15600
+ if (curB === void 0 && !b.has(altValue) || !innerDeepEqual(item, curB, false, memo)) {
14084
15601
  return false;
14085
15602
  }
14086
- if (typeof ArrayBuffer.isView === "function") {
14087
- return ArrayBuffer.isView(arrbuf);
14088
- }
14089
- if (!arrbuf) {
14090
- return false;
15603
+ return !a.has(altValue) && innerDeepEqual(item, curB, false, memo);
15604
+ }
15605
+ function setEquiv(a, b, strict, memo) {
15606
+ var set = null;
15607
+ var aValues = arrayFromSet(a);
15608
+ for (var i = 0; i < aValues.length; i++) {
15609
+ var val = aValues[i];
15610
+ if (_typeof(val) === "object" && val !== null) {
15611
+ if (set === null) {
15612
+ set = /* @__PURE__ */ new Set();
15613
+ }
15614
+ set.add(val);
15615
+ } else if (!b.has(val)) {
15616
+ if (strict) return false;
15617
+ if (!setMightHaveLoosePrim(a, b, val)) {
15618
+ return false;
15619
+ }
15620
+ if (set === null) {
15621
+ set = /* @__PURE__ */ new Set();
15622
+ }
15623
+ set.add(val);
15624
+ }
14091
15625
  }
14092
- if (arrbuf instanceof DataView) {
14093
- return true;
15626
+ if (set !== null) {
15627
+ var bValues = arrayFromSet(b);
15628
+ for (var _i = 0; _i < bValues.length; _i++) {
15629
+ var _val = bValues[_i];
15630
+ if (_typeof(_val) === "object" && _val !== null) {
15631
+ if (!setHasEqualElement(set, _val, strict, memo)) return false;
15632
+ } else if (!strict && !a.has(_val) && !setHasEqualElement(set, _val, strict, memo)) {
15633
+ return false;
15634
+ }
15635
+ }
15636
+ return set.size === 0;
14094
15637
  }
14095
- if (arrbuf.buffer && arrbuf.buffer instanceof ArrayBuffer) {
14096
- return true;
15638
+ return true;
15639
+ }
15640
+ function mapHasEqualEntry(set, map, key1, item1, strict, memo) {
15641
+ var setValues = arrayFromSet(set);
15642
+ for (var i = 0; i < setValues.length; i++) {
15643
+ var key2 = setValues[i];
15644
+ if (innerDeepEqual(key1, key2, strict, memo) && innerDeepEqual(item1, map.get(key2), strict, memo)) {
15645
+ set.delete(key2);
15646
+ return true;
15647
+ }
14097
15648
  }
14098
15649
  return false;
14099
15650
  }
14100
- var assert = module2.exports = ok;
14101
- var regex = /\s*function\s+([^\(\s]*)\s*/;
14102
- function getName(func) {
14103
- if (!util2.isFunction(func)) {
14104
- return;
15651
+ function mapEquiv(a, b, strict, memo) {
15652
+ var set = null;
15653
+ var aEntries = arrayFromMap(a);
15654
+ for (var i = 0; i < aEntries.length; i++) {
15655
+ var _aEntries$i = _slicedToArray(aEntries[i], 2), key = _aEntries$i[0], item1 = _aEntries$i[1];
15656
+ if (_typeof(key) === "object" && key !== null) {
15657
+ if (set === null) {
15658
+ set = /* @__PURE__ */ new Set();
15659
+ }
15660
+ set.add(key);
15661
+ } else {
15662
+ var item2 = b.get(key);
15663
+ if (item2 === void 0 && !b.has(key) || !innerDeepEqual(item1, item2, strict, memo)) {
15664
+ if (strict) return false;
15665
+ if (!mapMightHaveLoosePrim(a, b, key, item1, memo)) return false;
15666
+ if (set === null) {
15667
+ set = /* @__PURE__ */ new Set();
15668
+ }
15669
+ set.add(key);
15670
+ }
15671
+ }
14105
15672
  }
14106
- if (functionsHaveNames) {
14107
- return func.name;
14108
- }
14109
- var str = func.toString();
14110
- var match = str.match(regex);
14111
- return match && match[1];
14112
- }
14113
- assert.AssertionError = function AssertionError(options) {
14114
- this.name = "AssertionError";
14115
- this.actual = options.actual;
14116
- this.expected = options.expected;
14117
- this.operator = options.operator;
14118
- if (options.message) {
14119
- this.message = options.message;
14120
- this.generatedMessage = false;
14121
- } else {
14122
- this.message = getMessage(this);
14123
- this.generatedMessage = true;
15673
+ if (set !== null) {
15674
+ var bEntries = arrayFromMap(b);
15675
+ for (var _i2 = 0; _i2 < bEntries.length; _i2++) {
15676
+ var _bEntries$_i = _slicedToArray(bEntries[_i2], 2), _key = _bEntries$_i[0], item = _bEntries$_i[1];
15677
+ if (_typeof(_key) === "object" && _key !== null) {
15678
+ if (!mapHasEqualEntry(set, a, _key, item, strict, memo)) return false;
15679
+ } else if (!strict && (!a.has(_key) || !innerDeepEqual(a.get(_key), item, false, memo)) && !mapHasEqualEntry(set, a, _key, item, false, memo)) {
15680
+ return false;
15681
+ }
15682
+ }
15683
+ return set.size === 0;
14124
15684
  }
14125
- var stackStartFunction = options.stackStartFunction || fail;
14126
- if (Error.captureStackTrace) {
14127
- Error.captureStackTrace(this, stackStartFunction);
14128
- } else {
14129
- var err = new Error();
14130
- if (err.stack) {
14131
- var out = err.stack;
14132
- var fn_name = getName(stackStartFunction);
14133
- var idx = out.indexOf("\n" + fn_name);
14134
- if (idx >= 0) {
14135
- var next_line = out.indexOf("\n", idx + 1);
14136
- out = out.substring(next_line + 1);
15685
+ return true;
15686
+ }
15687
+ function objEquiv(a, b, strict, keys, memos, iterationType) {
15688
+ var i = 0;
15689
+ if (iterationType === kIsSet) {
15690
+ if (!setEquiv(a, b, strict, memos)) {
15691
+ return false;
15692
+ }
15693
+ } else if (iterationType === kIsMap) {
15694
+ if (!mapEquiv(a, b, strict, memos)) {
15695
+ return false;
15696
+ }
15697
+ } else if (iterationType === kIsArray) {
15698
+ for (; i < a.length; i++) {
15699
+ if (hasOwnProperty(a, i)) {
15700
+ if (!hasOwnProperty(b, i) || !innerDeepEqual(a[i], b[i], strict, memos)) {
15701
+ return false;
15702
+ }
15703
+ } else if (hasOwnProperty(b, i)) {
15704
+ return false;
15705
+ } else {
15706
+ var keysA = Object.keys(a);
15707
+ for (; i < keysA.length; i++) {
15708
+ var key = keysA[i];
15709
+ if (!hasOwnProperty(b, key) || !innerDeepEqual(a[key], b[key], strict, memos)) {
15710
+ return false;
15711
+ }
15712
+ }
15713
+ if (keysA.length !== Object.keys(b).length) {
15714
+ return false;
15715
+ }
15716
+ return true;
14137
15717
  }
14138
- this.stack = out;
14139
15718
  }
14140
15719
  }
15720
+ for (i = 0; i < keys.length; i++) {
15721
+ var _key2 = keys[i];
15722
+ if (!innerDeepEqual(a[_key2], b[_key2], strict, memos)) {
15723
+ return false;
15724
+ }
15725
+ }
15726
+ return true;
15727
+ }
15728
+ function isDeepEqual(val1, val2) {
15729
+ return innerDeepEqual(val1, val2, kLoose);
15730
+ }
15731
+ function isDeepStrictEqual(val1, val2) {
15732
+ return innerDeepEqual(val1, val2, kStrict);
15733
+ }
15734
+ module2.exports = {
15735
+ isDeepEqual,
15736
+ isDeepStrictEqual
14141
15737
  };
14142
- util2.inherits(assert.AssertionError, Error);
14143
- function truncate(s, n) {
14144
- if (typeof s === "string") {
14145
- return s.length < n ? s : s.slice(0, n);
14146
- } else {
14147
- return s;
15738
+ }
15739
+ });
15740
+
15741
+ // ../../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/assert.js
15742
+ var require_assert = __commonJS({
15743
+ "../../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/assert.js"(exports2, module2) {
15744
+ "use strict";
15745
+ init_browser_globals();
15746
+ function _typeof(o) {
15747
+ "@babel/helpers - typeof";
15748
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
15749
+ return typeof o2;
15750
+ } : function(o2) {
15751
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
15752
+ }, _typeof(o);
15753
+ }
15754
+ function _defineProperties(target, props) {
15755
+ for (var i = 0; i < props.length; i++) {
15756
+ var descriptor = props[i];
15757
+ descriptor.enumerable = descriptor.enumerable || false;
15758
+ descriptor.configurable = true;
15759
+ if ("value" in descriptor) descriptor.writable = true;
15760
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
14148
15761
  }
14149
15762
  }
14150
- function inspect(something) {
14151
- if (functionsHaveNames || !util2.isFunction(something)) {
14152
- return util2.inspect(something);
15763
+ function _createClass(Constructor, protoProps, staticProps) {
15764
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
15765
+ if (staticProps) _defineProperties(Constructor, staticProps);
15766
+ Object.defineProperty(Constructor, "prototype", { writable: false });
15767
+ return Constructor;
15768
+ }
15769
+ function _toPropertyKey(arg) {
15770
+ var key = _toPrimitive(arg, "string");
15771
+ return _typeof(key) === "symbol" ? key : String(key);
15772
+ }
15773
+ function _toPrimitive(input, hint) {
15774
+ if (_typeof(input) !== "object" || input === null) return input;
15775
+ var prim = input[Symbol.toPrimitive];
15776
+ if (prim !== void 0) {
15777
+ var res = prim.call(input, hint || "default");
15778
+ if (_typeof(res) !== "object") return res;
15779
+ throw new TypeError("@@toPrimitive must return a primitive value.");
14153
15780
  }
14154
- var rawname = getName(something);
14155
- var name = rawname ? ": " + rawname : "";
14156
- return "[Function" + name + "]";
15781
+ return (hint === "string" ? String : Number)(input);
14157
15782
  }
14158
- function getMessage(self2) {
14159
- return truncate(inspect(self2.actual), 128) + " " + self2.operator + " " + truncate(inspect(self2.expected), 128);
15783
+ function _classCallCheck(instance, Constructor) {
15784
+ if (!(instance instanceof Constructor)) {
15785
+ throw new TypeError("Cannot call a class as a function");
15786
+ }
14160
15787
  }
14161
- function fail(actual, expected, message, operator, stackStartFunction) {
14162
- throw new assert.AssertionError({
14163
- message,
15788
+ var _require = require_errors();
15789
+ var _require$codes = _require.codes;
15790
+ var ERR_AMBIGUOUS_ARGUMENT = _require$codes.ERR_AMBIGUOUS_ARGUMENT;
15791
+ var ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE;
15792
+ var ERR_INVALID_ARG_VALUE = _require$codes.ERR_INVALID_ARG_VALUE;
15793
+ var ERR_INVALID_RETURN_VALUE = _require$codes.ERR_INVALID_RETURN_VALUE;
15794
+ var ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS;
15795
+ var AssertionError = require_assertion_error();
15796
+ var _require2 = require_util();
15797
+ var inspect = _require2.inspect;
15798
+ var _require$types = require_util().types;
15799
+ var isPromise = _require$types.isPromise;
15800
+ var isRegExp = _require$types.isRegExp;
15801
+ var objectAssign = require_polyfill()();
15802
+ var objectIs = require_polyfill2()();
15803
+ var RegExpPrototypeTest = require_callBound()("RegExp.prototype.test");
15804
+ var isDeepEqual;
15805
+ var isDeepStrictEqual;
15806
+ function lazyLoadComparison() {
15807
+ var comparison = require_comparisons();
15808
+ isDeepEqual = comparison.isDeepEqual;
15809
+ isDeepStrictEqual = comparison.isDeepStrictEqual;
15810
+ }
15811
+ var warned = false;
15812
+ var assert = module2.exports = ok;
15813
+ var NO_EXCEPTION_SENTINEL = {};
15814
+ function innerFail(obj) {
15815
+ if (obj.message instanceof Error) throw obj.message;
15816
+ throw new AssertionError(obj);
15817
+ }
15818
+ function fail(actual, expected, message, operator, stackStartFn) {
15819
+ var argsLen = arguments.length;
15820
+ var internalMessage;
15821
+ if (argsLen === 0) {
15822
+ internalMessage = "Failed";
15823
+ } else if (argsLen === 1) {
15824
+ message = actual;
15825
+ actual = void 0;
15826
+ } else {
15827
+ if (warned === false) {
15828
+ warned = true;
15829
+ var warn = import_browser.default.emitWarning ? import_browser.default.emitWarning : console.warn.bind(console);
15830
+ warn("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.", "DeprecationWarning", "DEP0094");
15831
+ }
15832
+ if (argsLen === 2) operator = "!=";
15833
+ }
15834
+ if (message instanceof Error) throw message;
15835
+ var errArgs = {
14164
15836
  actual,
14165
15837
  expected,
14166
- operator,
14167
- stackStartFunction
14168
- });
15838
+ operator: operator === void 0 ? "fail" : operator,
15839
+ stackStartFn: stackStartFn || fail
15840
+ };
15841
+ if (message !== void 0) {
15842
+ errArgs.message = message;
15843
+ }
15844
+ var err = new AssertionError(errArgs);
15845
+ if (internalMessage) {
15846
+ err.message = internalMessage;
15847
+ err.generatedMessage = true;
15848
+ }
15849
+ throw err;
14169
15850
  }
14170
15851
  assert.fail = fail;
14171
- function ok(value, message) {
14172
- if (!value) fail(value, true, message, "==", assert.ok);
15852
+ assert.AssertionError = AssertionError;
15853
+ function innerOk(fn, argLen, value, message) {
15854
+ if (!value) {
15855
+ var generatedMessage = false;
15856
+ if (argLen === 0) {
15857
+ generatedMessage = true;
15858
+ message = "No value argument passed to `assert.ok()`";
15859
+ } else if (message instanceof Error) {
15860
+ throw message;
15861
+ }
15862
+ var err = new AssertionError({
15863
+ actual: value,
15864
+ expected: true,
15865
+ message,
15866
+ operator: "==",
15867
+ stackStartFn: fn
15868
+ });
15869
+ err.generatedMessage = generatedMessage;
15870
+ throw err;
15871
+ }
15872
+ }
15873
+ function ok() {
15874
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15875
+ args[_key] = arguments[_key];
15876
+ }
15877
+ innerOk.apply(void 0, [ok, args.length].concat(args));
14173
15878
  }
14174
15879
  assert.ok = ok;
14175
15880
  assert.equal = function equal(actual, expected, message) {
14176
- if (actual != expected) fail(actual, expected, message, "==", assert.equal);
15881
+ if (arguments.length < 2) {
15882
+ throw new ERR_MISSING_ARGS("actual", "expected");
15883
+ }
15884
+ if (actual != expected) {
15885
+ innerFail({
15886
+ actual,
15887
+ expected,
15888
+ message,
15889
+ operator: "==",
15890
+ stackStartFn: equal
15891
+ });
15892
+ }
14177
15893
  };
14178
15894
  assert.notEqual = function notEqual(actual, expected, message) {
15895
+ if (arguments.length < 2) {
15896
+ throw new ERR_MISSING_ARGS("actual", "expected");
15897
+ }
14179
15898
  if (actual == expected) {
14180
- fail(actual, expected, message, "!=", assert.notEqual);
15899
+ innerFail({
15900
+ actual,
15901
+ expected,
15902
+ message,
15903
+ operator: "!=",
15904
+ stackStartFn: notEqual
15905
+ });
14181
15906
  }
14182
15907
  };
14183
15908
  assert.deepEqual = function deepEqual(actual, expected, message) {
14184
- if (!_deepEqual(actual, expected, false)) {
14185
- fail(actual, expected, message, "deepEqual", assert.deepEqual);
15909
+ if (arguments.length < 2) {
15910
+ throw new ERR_MISSING_ARGS("actual", "expected");
15911
+ }
15912
+ if (isDeepEqual === void 0) lazyLoadComparison();
15913
+ if (!isDeepEqual(actual, expected)) {
15914
+ innerFail({
15915
+ actual,
15916
+ expected,
15917
+ message,
15918
+ operator: "deepEqual",
15919
+ stackStartFn: deepEqual
15920
+ });
14186
15921
  }
14187
15922
  };
14188
- assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) {
14189
- if (!_deepEqual(actual, expected, true)) {
14190
- fail(actual, expected, message, "deepStrictEqual", assert.deepStrictEqual);
15923
+ assert.notDeepEqual = function notDeepEqual(actual, expected, message) {
15924
+ if (arguments.length < 2) {
15925
+ throw new ERR_MISSING_ARGS("actual", "expected");
15926
+ }
15927
+ if (isDeepEqual === void 0) lazyLoadComparison();
15928
+ if (isDeepEqual(actual, expected)) {
15929
+ innerFail({
15930
+ actual,
15931
+ expected,
15932
+ message,
15933
+ operator: "notDeepEqual",
15934
+ stackStartFn: notDeepEqual
15935
+ });
14191
15936
  }
14192
15937
  };
14193
- function _deepEqual(actual, expected, strict2, memos) {
14194
- if (actual === expected) {
14195
- return true;
14196
- } else if (isBuffer(actual) && isBuffer(expected)) {
14197
- return compare(actual, expected) === 0;
14198
- } else if (util2.isDate(actual) && util2.isDate(expected)) {
14199
- return actual.getTime() === expected.getTime();
14200
- } else if (util2.isRegExp(actual) && util2.isRegExp(expected)) {
14201
- return actual.source === expected.source && actual.global === expected.global && actual.multiline === expected.multiline && actual.lastIndex === expected.lastIndex && actual.ignoreCase === expected.ignoreCase;
14202
- } else if ((actual === null || typeof actual !== "object") && (expected === null || typeof expected !== "object")) {
14203
- return strict2 ? actual === expected : actual == expected;
14204
- } else if (isView(actual) && isView(expected) && pToString(actual) === pToString(expected) && !(actual instanceof Float32Array || actual instanceof Float64Array)) {
14205
- return compare(
14206
- new Uint8Array(actual.buffer),
14207
- new Uint8Array(expected.buffer)
14208
- ) === 0;
14209
- } else if (isBuffer(actual) !== isBuffer(expected)) {
14210
- return false;
14211
- } else {
14212
- memos = memos || { actual: [], expected: [] };
14213
- var actualIndex = memos.actual.indexOf(actual);
14214
- if (actualIndex !== -1) {
14215
- if (actualIndex === memos.expected.indexOf(expected)) {
14216
- return true;
14217
- }
14218
- }
14219
- memos.actual.push(actual);
14220
- memos.expected.push(expected);
14221
- return objEquiv(actual, expected, strict2, memos);
14222
- }
14223
- }
14224
- function isArguments(object) {
14225
- return Object.prototype.toString.call(object) == "[object Arguments]";
14226
- }
14227
- function objEquiv(a, b, strict2, actualVisitedObjects) {
14228
- if (a === null || a === void 0 || b === null || b === void 0)
14229
- return false;
14230
- if (util2.isPrimitive(a) || util2.isPrimitive(b))
14231
- return a === b;
14232
- if (strict2 && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b))
14233
- return false;
14234
- var aIsArgs = isArguments(a);
14235
- var bIsArgs = isArguments(b);
14236
- if (aIsArgs && !bIsArgs || !aIsArgs && bIsArgs)
14237
- return false;
14238
- if (aIsArgs) {
14239
- a = pSlice.call(a);
14240
- b = pSlice.call(b);
14241
- return _deepEqual(a, b, strict2);
14242
- }
14243
- var ka = objectKeys(a);
14244
- var kb = objectKeys(b);
14245
- var key, i;
14246
- if (ka.length !== kb.length)
14247
- return false;
14248
- ka.sort();
14249
- kb.sort();
14250
- for (i = ka.length - 1; i >= 0; i--) {
14251
- if (ka[i] !== kb[i])
14252
- return false;
14253
- }
14254
- for (i = ka.length - 1; i >= 0; i--) {
14255
- key = ka[i];
14256
- if (!_deepEqual(a[key], b[key], strict2, actualVisitedObjects))
14257
- return false;
14258
- }
14259
- return true;
14260
- }
14261
- assert.notDeepEqual = function notDeepEqual(actual, expected, message) {
14262
- if (_deepEqual(actual, expected, false)) {
14263
- fail(actual, expected, message, "notDeepEqual", assert.notDeepEqual);
15938
+ assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) {
15939
+ if (arguments.length < 2) {
15940
+ throw new ERR_MISSING_ARGS("actual", "expected");
15941
+ }
15942
+ if (isDeepEqual === void 0) lazyLoadComparison();
15943
+ if (!isDeepStrictEqual(actual, expected)) {
15944
+ innerFail({
15945
+ actual,
15946
+ expected,
15947
+ message,
15948
+ operator: "deepStrictEqual",
15949
+ stackStartFn: deepStrictEqual
15950
+ });
14264
15951
  }
14265
15952
  };
14266
15953
  assert.notDeepStrictEqual = notDeepStrictEqual;
14267
15954
  function notDeepStrictEqual(actual, expected, message) {
14268
- if (_deepEqual(actual, expected, true)) {
14269
- fail(actual, expected, message, "notDeepStrictEqual", notDeepStrictEqual);
15955
+ if (arguments.length < 2) {
15956
+ throw new ERR_MISSING_ARGS("actual", "expected");
15957
+ }
15958
+ if (isDeepEqual === void 0) lazyLoadComparison();
15959
+ if (isDeepStrictEqual(actual, expected)) {
15960
+ innerFail({
15961
+ actual,
15962
+ expected,
15963
+ message,
15964
+ operator: "notDeepStrictEqual",
15965
+ stackStartFn: notDeepStrictEqual
15966
+ });
14270
15967
  }
14271
15968
  }
14272
15969
  assert.strictEqual = function strictEqual(actual, expected, message) {
14273
- if (actual !== expected) {
14274
- fail(actual, expected, message, "===", assert.strictEqual);
15970
+ if (arguments.length < 2) {
15971
+ throw new ERR_MISSING_ARGS("actual", "expected");
15972
+ }
15973
+ if (!objectIs(actual, expected)) {
15974
+ innerFail({
15975
+ actual,
15976
+ expected,
15977
+ message,
15978
+ operator: "strictEqual",
15979
+ stackStartFn: strictEqual
15980
+ });
14275
15981
  }
14276
15982
  };
14277
15983
  assert.notStrictEqual = function notStrictEqual(actual, expected, message) {
14278
- if (actual === expected) {
14279
- fail(actual, expected, message, "!==", assert.notStrictEqual);
15984
+ if (arguments.length < 2) {
15985
+ throw new ERR_MISSING_ARGS("actual", "expected");
15986
+ }
15987
+ if (objectIs(actual, expected)) {
15988
+ innerFail({
15989
+ actual,
15990
+ expected,
15991
+ message,
15992
+ operator: "notStrictEqual",
15993
+ stackStartFn: notStrictEqual
15994
+ });
14280
15995
  }
14281
15996
  };
14282
- function expectedException(actual, expected) {
14283
- if (!actual || !expected) {
14284
- return false;
14285
- }
14286
- if (Object.prototype.toString.call(expected) == "[object RegExp]") {
14287
- return expected.test(actual);
15997
+ var Comparison = /* @__PURE__ */ _createClass(function Comparison2(obj, keys, actual) {
15998
+ var _this = this;
15999
+ _classCallCheck(this, Comparison2);
16000
+ keys.forEach(function(key) {
16001
+ if (key in obj) {
16002
+ if (actual !== void 0 && typeof actual[key] === "string" && isRegExp(obj[key]) && RegExpPrototypeTest(obj[key], actual[key])) {
16003
+ _this[key] = actual[key];
16004
+ } else {
16005
+ _this[key] = obj[key];
16006
+ }
16007
+ }
16008
+ });
16009
+ });
16010
+ function compareExceptionKey(actual, expected, key, message, keys, fn) {
16011
+ if (!(key in actual) || !isDeepStrictEqual(actual[key], expected[key])) {
16012
+ if (!message) {
16013
+ var a = new Comparison(actual, keys);
16014
+ var b = new Comparison(expected, keys, actual);
16015
+ var err = new AssertionError({
16016
+ actual: a,
16017
+ expected: b,
16018
+ operator: "deepStrictEqual",
16019
+ stackStartFn: fn
16020
+ });
16021
+ err.actual = actual;
16022
+ err.expected = expected;
16023
+ err.operator = fn.name;
16024
+ throw err;
16025
+ }
16026
+ innerFail({
16027
+ actual,
16028
+ expected,
16029
+ message,
16030
+ operator: fn.name,
16031
+ stackStartFn: fn
16032
+ });
14288
16033
  }
14289
- try {
14290
- if (actual instanceof expected) {
14291
- return true;
16034
+ }
16035
+ function expectedException(actual, expected, msg, fn) {
16036
+ if (typeof expected !== "function") {
16037
+ if (isRegExp(expected)) return RegExpPrototypeTest(expected, actual);
16038
+ if (arguments.length === 2) {
16039
+ throw new ERR_INVALID_ARG_TYPE("expected", ["Function", "RegExp"], expected);
14292
16040
  }
14293
- } catch (e) {
16041
+ if (_typeof(actual) !== "object" || actual === null) {
16042
+ var err = new AssertionError({
16043
+ actual,
16044
+ expected,
16045
+ message: msg,
16046
+ operator: "deepStrictEqual",
16047
+ stackStartFn: fn
16048
+ });
16049
+ err.operator = fn.name;
16050
+ throw err;
16051
+ }
16052
+ var keys = Object.keys(expected);
16053
+ if (expected instanceof Error) {
16054
+ keys.push("name", "message");
16055
+ } else if (keys.length === 0) {
16056
+ throw new ERR_INVALID_ARG_VALUE("error", expected, "may not be an empty object");
16057
+ }
16058
+ if (isDeepEqual === void 0) lazyLoadComparison();
16059
+ keys.forEach(function(key) {
16060
+ if (typeof actual[key] === "string" && isRegExp(expected[key]) && RegExpPrototypeTest(expected[key], actual[key])) {
16061
+ return;
16062
+ }
16063
+ compareExceptionKey(actual, expected, key, msg, keys, fn);
16064
+ });
16065
+ return true;
16066
+ }
16067
+ if (expected.prototype !== void 0 && actual instanceof expected) {
16068
+ return true;
14294
16069
  }
14295
16070
  if (Error.isPrototypeOf(expected)) {
14296
16071
  return false;
14297
16072
  }
14298
16073
  return expected.call({}, actual) === true;
14299
16074
  }
14300
- function _tryBlock(block) {
14301
- var error;
16075
+ function getActual(fn) {
16076
+ if (typeof fn !== "function") {
16077
+ throw new ERR_INVALID_ARG_TYPE("fn", "Function", fn);
16078
+ }
14302
16079
  try {
14303
- block();
16080
+ fn();
14304
16081
  } catch (e) {
14305
- error = e;
16082
+ return e;
16083
+ }
16084
+ return NO_EXCEPTION_SENTINEL;
16085
+ }
16086
+ function checkIsPromise(obj) {
16087
+ return isPromise(obj) || obj !== null && _typeof(obj) === "object" && typeof obj.then === "function" && typeof obj.catch === "function";
16088
+ }
16089
+ function waitForActual(promiseFn) {
16090
+ return Promise.resolve().then(function() {
16091
+ var resultPromise;
16092
+ if (typeof promiseFn === "function") {
16093
+ resultPromise = promiseFn();
16094
+ if (!checkIsPromise(resultPromise)) {
16095
+ throw new ERR_INVALID_RETURN_VALUE("instance of Promise", "promiseFn", resultPromise);
16096
+ }
16097
+ } else if (checkIsPromise(promiseFn)) {
16098
+ resultPromise = promiseFn;
16099
+ } else {
16100
+ throw new ERR_INVALID_ARG_TYPE("promiseFn", ["Function", "Promise"], promiseFn);
16101
+ }
16102
+ return Promise.resolve().then(function() {
16103
+ return resultPromise;
16104
+ }).then(function() {
16105
+ return NO_EXCEPTION_SENTINEL;
16106
+ }).catch(function(e) {
16107
+ return e;
16108
+ });
16109
+ });
16110
+ }
16111
+ function expectsError(stackStartFn, actual, error, message) {
16112
+ if (typeof error === "string") {
16113
+ if (arguments.length === 4) {
16114
+ throw new ERR_INVALID_ARG_TYPE("error", ["Object", "Error", "Function", "RegExp"], error);
16115
+ }
16116
+ if (_typeof(actual) === "object" && actual !== null) {
16117
+ if (actual.message === error) {
16118
+ throw new ERR_AMBIGUOUS_ARGUMENT("error/message", 'The error message "'.concat(actual.message, '" is identical to the message.'));
16119
+ }
16120
+ } else if (actual === error) {
16121
+ throw new ERR_AMBIGUOUS_ARGUMENT("error/message", 'The error "'.concat(actual, '" is identical to the message.'));
16122
+ }
16123
+ message = error;
16124
+ error = void 0;
16125
+ } else if (error != null && _typeof(error) !== "object" && typeof error !== "function") {
16126
+ throw new ERR_INVALID_ARG_TYPE("error", ["Object", "Error", "Function", "RegExp"], error);
16127
+ }
16128
+ if (actual === NO_EXCEPTION_SENTINEL) {
16129
+ var details = "";
16130
+ if (error && error.name) {
16131
+ details += " (".concat(error.name, ")");
16132
+ }
16133
+ details += message ? ": ".concat(message) : ".";
16134
+ var fnType = stackStartFn.name === "rejects" ? "rejection" : "exception";
16135
+ innerFail({
16136
+ actual: void 0,
16137
+ expected: error,
16138
+ operator: stackStartFn.name,
16139
+ message: "Missing expected ".concat(fnType).concat(details),
16140
+ stackStartFn
16141
+ });
16142
+ }
16143
+ if (error && !expectedException(actual, error, message, stackStartFn)) {
16144
+ throw actual;
14306
16145
  }
14307
- return error;
14308
16146
  }
14309
- function _throws(shouldThrow, block, expected, message) {
14310
- var actual;
14311
- if (typeof block !== "function") {
14312
- throw new TypeError('"block" argument must be a function');
16147
+ function expectsNoError(stackStartFn, actual, error, message) {
16148
+ if (actual === NO_EXCEPTION_SENTINEL) return;
16149
+ if (typeof error === "string") {
16150
+ message = error;
16151
+ error = void 0;
16152
+ }
16153
+ if (!error || expectedException(actual, error)) {
16154
+ var details = message ? ": ".concat(message) : ".";
16155
+ var fnType = stackStartFn.name === "doesNotReject" ? "rejection" : "exception";
16156
+ innerFail({
16157
+ actual,
16158
+ expected: error,
16159
+ operator: stackStartFn.name,
16160
+ message: "Got unwanted ".concat(fnType).concat(details, "\n") + 'Actual message: "'.concat(actual && actual.message, '"'),
16161
+ stackStartFn
16162
+ });
14313
16163
  }
14314
- if (typeof expected === "string") {
14315
- message = expected;
14316
- expected = null;
16164
+ throw actual;
16165
+ }
16166
+ assert.throws = function throws(promiseFn) {
16167
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
16168
+ args[_key2 - 1] = arguments[_key2];
14317
16169
  }
14318
- actual = _tryBlock(block);
14319
- message = (expected && expected.name ? " (" + expected.name + ")." : ".") + (message ? " " + message : ".");
14320
- if (shouldThrow && !actual) {
14321
- fail(actual, expected, "Missing expected exception" + message);
16170
+ expectsError.apply(void 0, [throws, getActual(promiseFn)].concat(args));
16171
+ };
16172
+ assert.rejects = function rejects(promiseFn) {
16173
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
16174
+ args[_key3 - 1] = arguments[_key3];
14322
16175
  }
14323
- var userProvidedMessage = typeof message === "string";
14324
- var isUnwantedException = !shouldThrow && util2.isError(actual);
14325
- var isUnexpectedException = !shouldThrow && actual && !expected;
14326
- if (isUnwantedException && userProvidedMessage && expectedException(actual, expected) || isUnexpectedException) {
14327
- fail(actual, expected, "Got unwanted exception" + message);
16176
+ return waitForActual(promiseFn).then(function(result) {
16177
+ return expectsError.apply(void 0, [rejects, result].concat(args));
16178
+ });
16179
+ };
16180
+ assert.doesNotThrow = function doesNotThrow(fn) {
16181
+ for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
16182
+ args[_key4 - 1] = arguments[_key4];
14328
16183
  }
14329
- if (shouldThrow && actual && expected && !expectedException(actual, expected) || !shouldThrow && actual) {
14330
- throw actual;
16184
+ expectsNoError.apply(void 0, [doesNotThrow, getActual(fn)].concat(args));
16185
+ };
16186
+ assert.doesNotReject = function doesNotReject(fn) {
16187
+ for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
16188
+ args[_key5 - 1] = arguments[_key5];
16189
+ }
16190
+ return waitForActual(fn).then(function(result) {
16191
+ return expectsNoError.apply(void 0, [doesNotReject, result].concat(args));
16192
+ });
16193
+ };
16194
+ assert.ifError = function ifError(err) {
16195
+ if (err !== null && err !== void 0) {
16196
+ var message = "ifError got unwanted exception: ";
16197
+ if (_typeof(err) === "object" && typeof err.message === "string") {
16198
+ if (err.message.length === 0 && err.constructor) {
16199
+ message += err.constructor.name;
16200
+ } else {
16201
+ message += err.message;
16202
+ }
16203
+ } else {
16204
+ message += inspect(err);
16205
+ }
16206
+ var newErr = new AssertionError({
16207
+ actual: err,
16208
+ expected: null,
16209
+ operator: "ifError",
16210
+ message,
16211
+ stackStartFn: ifError
16212
+ });
16213
+ var origStack = err.stack;
16214
+ if (typeof origStack === "string") {
16215
+ var tmp2 = origStack.split("\n");
16216
+ tmp2.shift();
16217
+ var tmp1 = newErr.stack.split("\n");
16218
+ for (var i = 0; i < tmp2.length; i++) {
16219
+ var pos = tmp1.indexOf(tmp2[i]);
16220
+ if (pos !== -1) {
16221
+ tmp1 = tmp1.slice(0, pos);
16222
+ break;
16223
+ }
16224
+ }
16225
+ newErr.stack = "".concat(tmp1.join("\n"), "\n").concat(tmp2.join("\n"));
16226
+ }
16227
+ throw newErr;
14331
16228
  }
14332
- }
14333
- assert.throws = function(block, error, message) {
14334
- _throws(true, block, error, message);
14335
16229
  };
14336
- assert.doesNotThrow = function(block, error, message) {
14337
- _throws(false, block, error, message);
16230
+ function internalMatch(string, regexp, message, fn, fnName) {
16231
+ if (!isRegExp(regexp)) {
16232
+ throw new ERR_INVALID_ARG_TYPE("regexp", "RegExp", regexp);
16233
+ }
16234
+ var match = fnName === "match";
16235
+ if (typeof string !== "string" || RegExpPrototypeTest(regexp, string) !== match) {
16236
+ if (message instanceof Error) {
16237
+ throw message;
16238
+ }
16239
+ var generatedMessage = !message;
16240
+ message = message || (typeof string !== "string" ? 'The "string" argument must be of type string. Received type ' + "".concat(_typeof(string), " (").concat(inspect(string), ")") : (match ? "The input did not match the regular expression " : "The input was expected to not match the regular expression ") + "".concat(inspect(regexp), ". Input:\n\n").concat(inspect(string), "\n"));
16241
+ var err = new AssertionError({
16242
+ actual: string,
16243
+ expected: regexp,
16244
+ message,
16245
+ operator: fnName,
16246
+ stackStartFn: fn
16247
+ });
16248
+ err.generatedMessage = generatedMessage;
16249
+ throw err;
16250
+ }
16251
+ }
16252
+ assert.match = function match(string, regexp, message) {
16253
+ internalMatch(string, regexp, message, match, "match");
14338
16254
  };
14339
- assert.ifError = function(err) {
14340
- if (err) throw err;
16255
+ assert.doesNotMatch = function doesNotMatch(string, regexp, message) {
16256
+ internalMatch(string, regexp, message, doesNotMatch, "doesNotMatch");
14341
16257
  };
14342
- function strict(value, message) {
14343
- if (!value) fail(value, true, message, "==", strict);
16258
+ function strict() {
16259
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
16260
+ args[_key6] = arguments[_key6];
16261
+ }
16262
+ innerOk.apply(void 0, [strict, args.length].concat(args));
14344
16263
  }
14345
16264
  assert.strict = objectAssign(strict, assert, {
14346
16265
  equal: assert.strictEqual,
@@ -14349,13 +16268,6 @@ var require_assert = __commonJS({
14349
16268
  notDeepEqual: assert.notDeepStrictEqual
14350
16269
  });
14351
16270
  assert.strict.strict = assert.strict;
14352
- var objectKeys = Object.keys || function(obj) {
14353
- var keys = [];
14354
- for (var key in obj) {
14355
- if (hasOwn.call(obj, key)) keys.push(key);
14356
- }
14357
- return keys;
14358
- };
14359
16271
  }
14360
16272
  });
14361
16273
 
@@ -19517,7 +21429,10 @@ buffer/index.js:
19517
21429
  * @license MIT
19518
21430
  *)
19519
21431
 
19520
- assert/assert.js:
21432
+ safe-buffer/index.js:
21433
+ (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
21434
+
21435
+ assert/build/internal/util/comparisons.js:
19521
21436
  (*!
19522
21437
  * The buffer module from node.js, for the browser.
19523
21438
  *