@blackglory/structures 0.10.15 → 0.10.16

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.
@@ -15,7 +15,7 @@ class Box {
15
15
 
16
16
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17
17
 
18
- var es2018$8 = {};
18
+ var es2018$7 = {};
19
19
 
20
20
  var array$1 = {};
21
21
 
@@ -640,10 +640,10 @@ symbol.isntSymbol = isntSymbol;
640
640
  __exportStar(regexp$1, exports);
641
641
  __exportStar(symbol, exports);
642
642
 
643
- } (es2018$8));
643
+ } (es2018$7));
644
644
 
645
645
  function convertConsToArray([value, next]) {
646
- if (es2018$8.isNull(next)) {
646
+ if (es2018$7.isNull(next)) {
647
647
  return [value];
648
648
  }
649
649
  else {
@@ -799,17 +799,17 @@ class Queue {
799
799
  }
800
800
  }
801
801
 
802
- var es2018$7 = {};
802
+ var es2018$6 = {};
803
803
 
804
- var customError$1 = {};
804
+ var customError = {};
805
805
 
806
- var es2018$6 = {};
806
+ var es2018$5 = {};
807
807
 
808
808
  var middleware = {};
809
809
 
810
810
  var chunkAsync = {};
811
811
 
812
- var es2018$5 = {};
812
+ var es2018$4 = {};
813
813
 
814
814
  var go$1 = {};
815
815
 
@@ -838,11 +838,11 @@ goMicrotask$1.goMicrotask = goMicrotask;
838
838
 
839
839
  var goMacrotask$1 = {};
840
840
 
841
- var es2018$4 = {};
841
+ var es2018$3 = {};
842
842
 
843
843
  var exponentialBackoff = {};
844
844
 
845
- var es2018$3 = {};
845
+ var es2018$2 = {};
846
846
 
847
847
  var random$1 = {};
848
848
 
@@ -886,10 +886,10 @@ randomIntInclusive$1.randomIntInclusive = randomIntInclusive;
886
886
  __exportStar(randomInt$1, exports);
887
887
  __exportStar(randomIntInclusive$1, exports);
888
888
 
889
- } (es2018$3));
889
+ } (es2018$2));
890
890
 
891
891
  exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
892
- const extra_rand_1 = es2018$3;
892
+ const extra_rand_1 = es2018$2;
893
893
  function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
894
894
  const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
895
895
  if (jitter) {
@@ -1004,10 +1004,10 @@ setDynamicTimeoutLoop$1.setDynamicTimeoutLoop = setDynamicTimeoutLoop;
1004
1004
  __exportStar(setTimeoutLoop$1, exports);
1005
1005
  __exportStar(setDynamicTimeoutLoop$1, exports);
1006
1006
 
1007
- } (es2018$4));
1007
+ } (es2018$3));
1008
1008
 
1009
1009
  goMacrotask$1.goMacrotask = void 0;
1010
- const extra_timers_1 = es2018$4;
1010
+ const extra_timers_1 = es2018$3;
1011
1011
  function goMacrotask(fn) {
1012
1012
  return new Promise((resolve, reject) => {
1013
1013
  (0, extra_timers_1.setImmediate)(async () => {
@@ -1040,13 +1040,38 @@ goMacrotask$1.goMacrotask = goMacrotask;
1040
1040
  __exportStar(goMicrotask$1, exports);
1041
1041
  __exportStar(goMacrotask$1, exports);
1042
1042
 
1043
- } (es2018$5));
1043
+ } (es2018$4));
1044
1044
 
1045
- var es2018$2 = {};
1045
+ var hasRequiredChunkAsync;
1046
1046
 
1047
- var customError = {};
1047
+ function requireChunkAsync () {
1048
+ if (hasRequiredChunkAsync) return chunkAsync;
1049
+ hasRequiredChunkAsync = 1;
1050
+ chunkAsync.chunkAsync = void 0;
1051
+ const go_1 = es2018$4;
1052
+ const errors_1 = requireEs2018();
1053
+ function chunkAsync$1(iterable, size) {
1054
+ (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1055
+ (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');
1056
+ return (0, go_1.go)(async function* () {
1057
+ let buffer = [];
1058
+ for await (const element of iterable) {
1059
+ buffer.push(element);
1060
+ if (buffer.length >= size) {
1061
+ yield buffer;
1062
+ buffer = [];
1063
+ }
1064
+ }
1065
+ if (buffer.length)
1066
+ yield buffer;
1067
+ });
1068
+ }
1069
+ chunkAsync.chunkAsync = chunkAsync$1;
1070
+
1071
+ return chunkAsync;
1072
+ }
1048
1073
 
1049
- var getErrorNames$3 = {};
1074
+ var chunkByAsync$1 = {};
1050
1075
 
1051
1076
  var es2018$1 = {};
1052
1077
 
@@ -1421,269 +1446,10 @@ regexp.isntRegExp = isntRegExp;
1421
1446
 
1422
1447
  } (es2018$1));
1423
1448
 
1424
- var traverseErrorPrototypeChain$3 = {};
1425
-
1426
- traverseErrorPrototypeChain$3.traverseErrorPrototypeChain = void 0;
1427
- function* traverseErrorPrototypeChain$2(err) {
1428
- let current = err;
1429
- while ((current = Object.getPrototypeOf(current))) {
1430
- yield current;
1431
- if (current === Error.prototype)
1432
- break;
1433
- }
1434
- }
1435
- traverseErrorPrototypeChain$3.traverseErrorPrototypeChain = traverseErrorPrototypeChain$2;
1436
-
1437
- getErrorNames$3.getErrorNames = void 0;
1438
- const types_1$m = es2018$1;
1439
- const traverse_error_prototype_chain_1$1 = traverseErrorPrototypeChain$3;
1440
- function* getErrorNames$2(err) {
1441
- var _a;
1442
- if ((0, types_1$m.isError)(err)) {
1443
- for (const prototype of (0, traverse_error_prototype_chain_1$1.traverseErrorPrototypeChain)(err)) {
1444
- if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
1445
- yield prototype.constructor.name;
1446
- }
1447
- }
1448
- }
1449
- else {
1450
- yield err.name;
1451
- yield* err.ancestors;
1452
- }
1453
- }
1454
- getErrorNames$3.getErrorNames = getErrorNames$2;
1455
-
1456
- var serializableError$1 = {};
1457
-
1458
- serializableError$1.isSerializableError = void 0;
1459
- const types_1$l = es2018$1;
1460
- function isSerializableError$1(val) {
1461
- return (0, types_1$l.isObject)(val)
1462
- && (0, types_1$l.isString)(val.name)
1463
- && (0, types_1$l.isString)(val.message)
1464
- && ((0, types_1$l.isString)(val.stack) || (0, types_1$l.isNull)(val.stack))
1465
- && ((0, types_1$l.isArray)(val.ancestors) && val.ancestors.every(types_1$l.isString));
1466
- }
1467
- serializableError$1.isSerializableError = isSerializableError$1;
1468
-
1469
- var hasRequiredCustomError;
1470
-
1471
- function requireCustomError () {
1472
- if (hasRequiredCustomError) return customError;
1473
- hasRequiredCustomError = 1;
1474
- customError.CustomError = void 0;
1475
- const iterable_operator_1 = requireEs2018();
1476
- const get_error_names_1 = getErrorNames$3;
1477
- const types_1 = es2018$1;
1478
- const serializable_error_1 = serializableError$1;
1479
- class CustomError extends Error {
1480
- get name() {
1481
- var _a, _b;
1482
- return (_b = (_a = (0, iterable_operator_1.first)((0, get_error_names_1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
1483
- }
1484
- static [Symbol.hasInstance](instance) {
1485
- var _a;
1486
- if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
1487
- const reversedClassNames = [
1488
- (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
1489
- ...(0, get_error_names_1.getErrorNames)(this.prototype)
1490
- ].reverse();
1491
- const reversedInstanceNames = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(instance)).reverse();
1492
- return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
1493
- }
1494
- else {
1495
- return false;
1496
- }
1497
- }
1498
- }
1499
- customError.CustomError = CustomError;
1500
-
1501
- return customError;
1502
- }
1503
-
1504
- var assertionError$1 = {};
1505
-
1506
- var hasRequiredAssertionError;
1507
-
1508
- function requireAssertionError () {
1509
- if (hasRequiredAssertionError) return assertionError$1;
1510
- hasRequiredAssertionError = 1;
1511
- assertionError$1.AssertionError = void 0;
1512
- const custom_error_1 = requireCustomError();
1513
- class AssertionError extends custom_error_1.CustomError {
1514
- }
1515
- assertionError$1.AssertionError = AssertionError;
1516
-
1517
- return assertionError$1;
1518
- }
1519
-
1520
- var normalize$2 = {};
1521
-
1522
- var hasRequiredNormalize;
1523
-
1524
- function requireNormalize () {
1525
- if (hasRequiredNormalize) return normalize$2;
1526
- hasRequiredNormalize = 1;
1527
- normalize$2.normalize = void 0;
1528
- const get_error_names_1 = getErrorNames$3;
1529
- const iterable_operator_1 = requireEs2018();
1530
- function normalize(err) {
1531
- var _a;
1532
- const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
1533
- return {
1534
- name,
1535
- ancestors,
1536
- message: err.message,
1537
- stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
1538
- };
1539
- }
1540
- normalize$2.normalize = normalize;
1541
-
1542
- return normalize$2;
1543
- }
1544
-
1545
- var hydrate$3 = {};
1546
-
1547
- var es2018 = {};
1548
-
1549
- var pass$1 = {};
1550
-
1551
- pass$1.pass = void 0;
1552
- function pass() { }
1553
- pass$1.pass = pass;
1554
-
1555
- var passAsync$1 = {};
1556
-
1557
- passAsync$1.passAsync = void 0;
1558
- async function passAsync() { }
1559
- passAsync$1.passAsync = passAsync;
1560
-
1561
- (function (exports) {
1562
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1563
- if (k2 === undefined) k2 = k;
1564
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1565
- }) : (function(o, m, k, k2) {
1566
- if (k2 === undefined) k2 = k;
1567
- o[k2] = m[k];
1568
- }));
1569
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1570
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1571
- };__exportStar(pass$1, exports);
1572
- __exportStar(passAsync$1, exports);
1573
-
1574
- } (es2018));
1575
-
1576
- hydrate$3.hydrate = void 0;
1577
- const pass_1$1 = es2018;
1578
- function hydrate$2(err) {
1579
- var _a;
1580
- const errorNames = [err.name, ...err.ancestors]
1581
- .slice(0, -1)
1582
- .reverse();
1583
- let errorConstructor = Error;
1584
- for (const name of errorNames) {
1585
- errorConstructor = createChildErrorConstructor$1(errorConstructor, name);
1586
- }
1587
- const result = new errorConstructor();
1588
- result.name = err.name;
1589
- result.message = err.message;
1590
- result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
1591
- return result;
1592
- }
1593
- hydrate$3.hydrate = hydrate$2;
1594
- function createChildErrorConstructor$1(parentErrorConstructor, name) {
1595
- const constructor = function () { (0, pass_1$1.pass)(); };
1596
- constructor.prototype = Object.create(parentErrorConstructor.prototype);
1597
- constructor.prototype.constructor = constructor;
1598
- Object.defineProperty(constructor, 'name', { value: name });
1599
- return constructor;
1600
- }
1601
-
1602
- var assert$2 = {};
1603
-
1604
- var hasRequiredAssert;
1605
-
1606
- function requireAssert () {
1607
- if (hasRequiredAssert) return assert$2;
1608
- hasRequiredAssert = 1;
1609
- assert$2.assert = void 0;
1610
- const assertion_error_1 = requireAssertionError();
1611
- function assert(condition, message) {
1612
- if (!condition)
1613
- throw new assertion_error_1.AssertionError(message);
1614
- }
1615
- assert$2.assert = assert;
1616
-
1617
- return assert$2;
1618
- }
1619
-
1620
- var hasRequiredEs2018$1;
1621
-
1622
- function requireEs2018$1 () {
1623
- if (hasRequiredEs2018$1) return es2018$2;
1624
- hasRequiredEs2018$1 = 1;
1625
- (function (exports) {
1626
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1627
- if (k2 === undefined) k2 = k;
1628
- var desc = Object.getOwnPropertyDescriptor(m, k);
1629
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1630
- desc = { enumerable: true, get: function() { return m[k]; } };
1631
- }
1632
- Object.defineProperty(o, k2, desc);
1633
- }) : (function(o, m, k, k2) {
1634
- if (k2 === undefined) k2 = k;
1635
- o[k2] = m[k];
1636
- }));
1637
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1638
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1639
- };__exportStar(requireCustomError(), exports);
1640
- __exportStar(requireAssertionError(), exports);
1641
- __exportStar(serializableError$1, exports);
1642
- __exportStar(requireNormalize(), exports);
1643
- __exportStar(hydrate$3, exports);
1644
- __exportStar(requireAssert(), exports);
1645
- __exportStar(getErrorNames$3, exports);
1646
- __exportStar(traverseErrorPrototypeChain$3, exports);
1647
-
1648
- } (es2018$2));
1649
- return es2018$2;
1650
- }
1651
-
1652
- var hasRequiredChunkAsync;
1653
-
1654
- function requireChunkAsync () {
1655
- if (hasRequiredChunkAsync) return chunkAsync;
1656
- hasRequiredChunkAsync = 1;
1657
- chunkAsync.chunkAsync = void 0;
1658
- const go_1 = es2018$5;
1659
- const errors_1 = requireEs2018$1();
1660
- function chunkAsync$1(iterable, size) {
1661
- (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1662
- (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');
1663
- return (0, go_1.go)(async function* () {
1664
- let buffer = [];
1665
- for await (const element of iterable) {
1666
- buffer.push(element);
1667
- if (buffer.length >= size) {
1668
- yield buffer;
1669
- buffer = [];
1670
- }
1671
- }
1672
- if (buffer.length)
1673
- yield buffer;
1674
- });
1675
- }
1676
- chunkAsync.chunkAsync = chunkAsync$1;
1677
-
1678
- return chunkAsync;
1679
- }
1680
-
1681
- var chunkByAsync$1 = {};
1682
-
1683
1449
  chunkByAsync$1.chunkByAsync = void 0;
1684
- const types_1$k = es2018$1;
1450
+ const types_1$j = es2018$1;
1685
1451
  function chunkByAsync(iterable, predicate) {
1686
- if ((0, types_1$k.isAsyncIterable)(iterable)) {
1452
+ if ((0, types_1$j.isAsyncIterable)(iterable)) {
1687
1453
  return chunkByAsyncIterable(iterable, predicate);
1688
1454
  }
1689
1455
  else {
@@ -1747,8 +1513,8 @@ function requireChunk () {
1747
1513
  if (hasRequiredChunk) return chunk;
1748
1514
  hasRequiredChunk = 1;
1749
1515
  chunk.chunk = void 0;
1750
- const go_1 = es2018$5;
1751
- const errors_1 = requireEs2018$1();
1516
+ const go_1 = es2018$4;
1517
+ const errors_1 = requireEs2018();
1752
1518
  function chunk$1(iterable, size) {
1753
1519
  (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1754
1520
  (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -1773,12 +1539,12 @@ chunk.chunk = void 0;
1773
1539
  var concatAsync$1 = {};
1774
1540
 
1775
1541
  concatAsync$1.concatAsync = void 0;
1776
- const types_1$j = es2018$1;
1777
- const go_1$1 = es2018$5;
1542
+ const types_1$i = es2018$1;
1543
+ const go_1$1 = es2018$4;
1778
1544
  function concatAsync(iterable, ...otherIterables) {
1779
1545
  return (0, go_1$1.go)(async function* () {
1780
1546
  for (const iter of [iterable, ...otherIterables]) {
1781
- if ((0, types_1$j.isAsyncIterable)(iter)) {
1547
+ if ((0, types_1$i.isAsyncIterable)(iter)) {
1782
1548
  for await (const element of iter) {
1783
1549
  yield element;
1784
1550
  }
@@ -1796,7 +1562,7 @@ concatAsync$1.concatAsync = concatAsync;
1796
1562
  var concat$1 = {};
1797
1563
 
1798
1564
  concat$1.concat = void 0;
1799
- const go_1 = es2018$5;
1565
+ const go_1 = es2018$4;
1800
1566
  function concat(iterable, ...otherIterables) {
1801
1567
  return (0, go_1.go)(function* () {
1802
1568
  for (const iter of [iterable, ...otherIterables]) {
@@ -1830,9 +1596,9 @@ function requireDropAsync () {
1830
1596
  if (hasRequiredDropAsync) return dropAsync;
1831
1597
  hasRequiredDropAsync = 1;
1832
1598
  dropAsync.dropAsync = void 0;
1833
- const go_1 = es2018$5;
1599
+ const go_1 = es2018$4;
1834
1600
  const utils_1 = utils;
1835
- const errors_1 = requireEs2018$1();
1601
+ const errors_1 = requireEs2018();
1836
1602
  function dropAsync$1(iterable, count) {
1837
1603
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1838
1604
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1873,9 +1639,9 @@ function requireDropRightAsync () {
1873
1639
  if (hasRequiredDropRightAsync) return dropRightAsync;
1874
1640
  hasRequiredDropRightAsync = 1;
1875
1641
  dropRightAsync.dropRightAsync = void 0;
1876
- const go_1 = es2018$5;
1642
+ const go_1 = es2018$4;
1877
1643
  const utils_1 = utils;
1878
- const errors_1 = requireEs2018$1();
1644
+ const errors_1 = requireEs2018();
1879
1645
  function dropRightAsync$1(iterable, count) {
1880
1646
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1881
1647
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1909,9 +1675,9 @@ function requireDropRight () {
1909
1675
  if (hasRequiredDropRight) return dropRight;
1910
1676
  hasRequiredDropRight = 1;
1911
1677
  dropRight.dropRight = void 0;
1912
- const go_1 = es2018$5;
1678
+ const go_1 = es2018$4;
1913
1679
  const utils_1 = utils;
1914
- const errors_1 = requireEs2018$1();
1680
+ const errors_1 = requireEs2018();
1915
1681
  function dropRight$1(iterable, count) {
1916
1682
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1917
1683
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1930,9 +1696,9 @@ dropRight.dropRight = void 0;
1930
1696
  var dropUntilAsync$1 = {};
1931
1697
 
1932
1698
  dropUntilAsync$1.dropUntilAsync = void 0;
1933
- const types_1$i = es2018$1;
1699
+ const types_1$h = es2018$1;
1934
1700
  function dropUntilAsync(iterable, predicate) {
1935
- if ((0, types_1$i.isAsyncIterable)(iterable)) {
1701
+ if ((0, types_1$h.isAsyncIterable)(iterable)) {
1936
1702
  return dropUntilAsyncIterable(iterable, predicate);
1937
1703
  }
1938
1704
  else {
@@ -2017,9 +1783,9 @@ function requireDrop () {
2017
1783
  if (hasRequiredDrop) return drop;
2018
1784
  hasRequiredDrop = 1;
2019
1785
  drop.drop = void 0;
2020
- const go_1 = es2018$5;
1786
+ const go_1 = es2018$4;
2021
1787
  const utils_1 = utils;
2022
- const errors_1 = requireEs2018$1();
1788
+ const errors_1 = requireEs2018();
2023
1789
  function drop$1(iterable, count) {
2024
1790
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2025
1791
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2055,9 +1821,9 @@ drop.drop = void 0;
2055
1821
  var filterAsync$1 = {};
2056
1822
 
2057
1823
  filterAsync$1.filterAsync = void 0;
2058
- const types_1$h = es2018$1;
1824
+ const types_1$g = es2018$1;
2059
1825
  function filterAsync(iterable, predicate) {
2060
- if ((0, types_1$h.isAsyncIterable)(iterable)) {
1826
+ if ((0, types_1$g.isAsyncIterable)(iterable)) {
2061
1827
  return filterAsyncIterable(iterable, predicate);
2062
1828
  }
2063
1829
  else {
@@ -2102,9 +1868,9 @@ var flattenDeepAsync = {};
2102
1868
  var flattenByAsync$1 = {};
2103
1869
 
2104
1870
  flattenByAsync$1.flattenByAsync = void 0;
2105
- const types_1$g = es2018$1;
1871
+ const types_1$f = es2018$1;
2106
1872
  function flattenByAsync(iterable, predicate) {
2107
- if ((0, types_1$g.isAsyncIterable)(iterable)) {
1873
+ if ((0, types_1$f.isAsyncIterable)(iterable)) {
2108
1874
  return flattenByAsyncIterable(iterable, predicate);
2109
1875
  }
2110
1876
  else {
@@ -2137,7 +1903,7 @@ async function* flatten$2(iterable, predicate, level) {
2137
1903
  }
2138
1904
  }
2139
1905
  function isFiniteIterable$1(val) {
2140
- return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
1906
+ return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
2141
1907
  }
2142
1908
 
2143
1909
  var hasRequiredFlattenDeepAsync;
@@ -2147,7 +1913,7 @@ function requireFlattenDeepAsync () {
2147
1913
  hasRequiredFlattenDeepAsync = 1;
2148
1914
  flattenDeepAsync.flattenDeepAsync = void 0;
2149
1915
  const flatten_by_async_1 = flattenByAsync$1;
2150
- const errors_1 = requireEs2018$1();
1916
+ const errors_1 = requireEs2018();
2151
1917
  function flattenDeepAsync$1(iterable, depth = Infinity) {
2152
1918
  (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
2153
1919
  (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -2176,7 +1942,7 @@ flattenAsync.flattenAsync = void 0;
2176
1942
  var flattenBy$1 = {};
2177
1943
 
2178
1944
  flattenBy$1.flattenBy = void 0;
2179
- const types_1$f = es2018$1;
1945
+ const types_1$e = es2018$1;
2180
1946
  function flattenBy(iterable, predicate) {
2181
1947
  return flatten$1(iterable, predicate, 1);
2182
1948
  }
@@ -2192,7 +1958,7 @@ function* flatten$1(iterable, predicate, level) {
2192
1958
  }
2193
1959
  }
2194
1960
  function isFiniteIterable(val) {
2195
- return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
1961
+ return (0, types_1$e.isIterable)(val) && (0, types_1$e.isntChar)(val);
2196
1962
  }
2197
1963
 
2198
1964
  var flattenDeep = {};
@@ -2204,7 +1970,7 @@ function requireFlattenDeep () {
2204
1970
  hasRequiredFlattenDeep = 1;
2205
1971
  flattenDeep.flattenDeep = void 0;
2206
1972
  const flatten_by_1 = flattenBy$1;
2207
- const errors_1 = requireEs2018$1();
1973
+ const errors_1 = requireEs2018();
2208
1974
  function flattenDeep$1(iterable, depth = Infinity) {
2209
1975
  (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
2210
1976
  (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -2235,9 +2001,9 @@ flatten.flatten = void 0;
2235
2001
  var mapAsync$1 = {};
2236
2002
 
2237
2003
  mapAsync$1.mapAsync = void 0;
2238
- const types_1$e = es2018$1;
2004
+ const types_1$d = es2018$1;
2239
2005
  function mapAsync(iterable, fn) {
2240
- if ((0, types_1$e.isAsyncIterable)(iterable)) {
2006
+ if ((0, types_1$d.isAsyncIterable)(iterable)) {
2241
2007
  return mapAsyncIterable(iterable, fn);
2242
2008
  }
2243
2009
  else {
@@ -2280,8 +2046,8 @@ function requireRepeatAsync () {
2280
2046
  if (hasRequiredRepeatAsync) return repeatAsync;
2281
2047
  hasRequiredRepeatAsync = 1;
2282
2048
  repeatAsync.repeatAsync = void 0;
2283
- const go_1 = es2018$5;
2284
- const errors_1 = requireEs2018$1();
2049
+ const go_1 = es2018$4;
2050
+ const errors_1 = requireEs2018();
2285
2051
  function repeatAsync$1(iterable, times) {
2286
2052
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
2287
2053
  (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -2323,8 +2089,8 @@ function requireRepeat () {
2323
2089
  if (hasRequiredRepeat) return repeat;
2324
2090
  hasRequiredRepeat = 1;
2325
2091
  repeat.repeat = void 0;
2326
- const go_1 = es2018$5;
2327
- const errors_1 = requireEs2018$1();
2092
+ const go_1 = es2018$4;
2093
+ const errors_1 = requireEs2018();
2328
2094
  function repeat$1(iterable, times) {
2329
2095
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
2330
2096
  (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -2366,8 +2132,8 @@ function requireSliceAsync () {
2366
2132
  if (hasRequiredSliceAsync) return sliceAsync;
2367
2133
  hasRequiredSliceAsync = 1;
2368
2134
  sliceAsync.sliceAsync = void 0;
2369
- const go_1 = es2018$5;
2370
- const errors_1 = requireEs2018$1();
2135
+ const go_1 = es2018$4;
2136
+ const errors_1 = requireEs2018();
2371
2137
  function sliceAsync$1(iterable, start, end = Infinity) {
2372
2138
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
2373
2139
  (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -2397,8 +2163,8 @@ function requireSlice () {
2397
2163
  if (hasRequiredSlice) return slice;
2398
2164
  hasRequiredSlice = 1;
2399
2165
  slice.slice = void 0;
2400
- const go_1 = es2018$5;
2401
- const errors_1 = requireEs2018$1();
2166
+ const go_1 = es2018$4;
2167
+ const errors_1 = requireEs2018();
2402
2168
  function slice$1(iterable, start, end = Infinity) {
2403
2169
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
2404
2170
  (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -2441,9 +2207,9 @@ splitAsync$1.splitAsync = splitAsync;
2441
2207
  var splitByAsync$1 = {};
2442
2208
 
2443
2209
  splitByAsync$1.splitByAsync = void 0;
2444
- const types_1$d = es2018$1;
2210
+ const types_1$c = es2018$1;
2445
2211
  function splitByAsync(iterable, predicate) {
2446
- if ((0, types_1$d.isAsyncIterable)(iterable)) {
2212
+ if ((0, types_1$c.isAsyncIterable)(iterable)) {
2447
2213
  return splitByAsyncIterable(iterable, predicate);
2448
2214
  }
2449
2215
  else {
@@ -2528,8 +2294,8 @@ function requireTakeAsync () {
2528
2294
  if (hasRequiredTakeAsync) return takeAsync;
2529
2295
  hasRequiredTakeAsync = 1;
2530
2296
  takeAsync.takeAsync = void 0;
2531
- const go_1 = es2018$5;
2532
- const errors_1 = requireEs2018$1();
2297
+ const go_1 = es2018$4;
2298
+ const errors_1 = requireEs2018();
2533
2299
  function takeAsync$1(iterable, count) {
2534
2300
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2535
2301
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2557,8 +2323,8 @@ function requireTakeRightAsync () {
2557
2323
  if (hasRequiredTakeRightAsync) return takeRightAsync;
2558
2324
  hasRequiredTakeRightAsync = 1;
2559
2325
  takeRightAsync.takeRightAsync = void 0;
2560
- const go_1 = es2018$5;
2561
- const errors_1 = requireEs2018$1();
2326
+ const go_1 = es2018$4;
2327
+ const errors_1 = requireEs2018();
2562
2328
  function takeRightAsync$1(iterable, count) {
2563
2329
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2564
2330
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2595,8 +2361,8 @@ function requireTakeRight () {
2595
2361
  if (hasRequiredTakeRight) return takeRight;
2596
2362
  hasRequiredTakeRight = 1;
2597
2363
  takeRight.takeRight = void 0;
2598
- const go_1 = es2018$5;
2599
- const errors_1 = requireEs2018$1();
2364
+ const go_1 = es2018$4;
2365
+ const errors_1 = requireEs2018();
2600
2366
  function takeRight$1(iterable, count) {
2601
2367
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2602
2368
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2628,9 +2394,9 @@ takeRight.takeRight = void 0;
2628
2394
  var takeUntilAsync$1 = {};
2629
2395
 
2630
2396
  takeUntilAsync$1.takeUntilAsync = void 0;
2631
- const types_1$c = es2018$1;
2397
+ const types_1$b = es2018$1;
2632
2398
  function takeUntilAsync(iterable, predicate) {
2633
- if ((0, types_1$c.isAsyncIterable)(iterable)) {
2399
+ if ((0, types_1$b.isAsyncIterable)(iterable)) {
2634
2400
  return takeUntilAsyncIterable(iterable, predicate);
2635
2401
  }
2636
2402
  else {
@@ -2679,8 +2445,8 @@ function requireTake () {
2679
2445
  if (hasRequiredTake) return take;
2680
2446
  hasRequiredTake = 1;
2681
2447
  take.take = void 0;
2682
- const go_1 = es2018$5;
2683
- const errors_1 = requireEs2018$1();
2448
+ const go_1 = es2018$4;
2449
+ const errors_1 = requireEs2018();
2684
2450
  function take$1(iterable, count) {
2685
2451
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2686
2452
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2703,9 +2469,9 @@ take.take = void 0;
2703
2469
  var tapAsync$1 = {};
2704
2470
 
2705
2471
  tapAsync$1.tapAsync = void 0;
2706
- const types_1$b = es2018$1;
2472
+ const types_1$a = es2018$1;
2707
2473
  function tapAsync(iterable, fn) {
2708
- if ((0, types_1$b.isAsyncIterable)(iterable)) {
2474
+ if ((0, types_1$a.isAsyncIterable)(iterable)) {
2709
2475
  return tapAsyncIterable(iterable, fn);
2710
2476
  }
2711
2477
  else {
@@ -2786,9 +2552,9 @@ uniqAsync$1.uniqAsync = uniqAsync;
2786
2552
  var uniqByAsync$1 = {};
2787
2553
 
2788
2554
  uniqByAsync$1.uniqByAsync = void 0;
2789
- const types_1$a = es2018$1;
2555
+ const types_1$9 = es2018$1;
2790
2556
  function uniqByAsync(iterable, fn) {
2791
- if ((0, types_1$a.isAsyncIterable)(iterable)) {
2557
+ if ((0, types_1$9.isAsyncIterable)(iterable)) {
2792
2558
  return uniqByAsyncIterable(iterable, fn);
2793
2559
  }
2794
2560
  else {
@@ -2855,7 +2621,7 @@ uniq$1.uniq = uniq;
2855
2621
  var zipAsync$1 = {};
2856
2622
 
2857
2623
  zipAsync$1.zipAsync = void 0;
2858
- const types_1$9 = es2018$1;
2624
+ const types_1$8 = es2018$1;
2859
2625
  var Kind;
2860
2626
  (function (Kind) {
2861
2627
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -2869,7 +2635,7 @@ async function* zipWithSize$1(...iterables) {
2869
2635
  var _a, _b, _c, _d;
2870
2636
  const length = iterables.length;
2871
2637
  const iterators = iterables.map(iterable => {
2872
- if ((0, types_1$9.isAsyncIterable)(iterable)) {
2638
+ if ((0, types_1$8.isAsyncIterable)(iterable)) {
2873
2639
  return [Kind.Async, iterable[Symbol.asyncIterator]()];
2874
2640
  }
2875
2641
  else {
@@ -3026,9 +2792,9 @@ consume$1.consume = consume;
3026
2792
  var eachAsync$1 = {};
3027
2793
 
3028
2794
  eachAsync$1.eachAsync = void 0;
3029
- const types_1$8 = es2018$1;
2795
+ const types_1$7 = es2018$1;
3030
2796
  function eachAsync(iterable, fn) {
3031
- if ((0, types_1$8.isAsyncIterable)(iterable)) {
2797
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
3032
2798
  return eachAsyncIterable(iterable, fn);
3033
2799
  }
3034
2800
  else {
@@ -3066,9 +2832,9 @@ each$1.each = each;
3066
2832
  var everyAsync$1 = {};
3067
2833
 
3068
2834
  everyAsync$1.everyAsync = void 0;
3069
- const types_1$7 = es2018$1;
2835
+ const types_1$6 = es2018$1;
3070
2836
  function everyAsync(iterable, predicate) {
3071
- if ((0, types_1$7.isAsyncIterable)(iterable)) {
2837
+ if ((0, types_1$6.isAsyncIterable)(iterable)) {
3072
2838
  return everyAsyncIterable(iterable, predicate);
3073
2839
  }
3074
2840
  else {
@@ -3112,9 +2878,9 @@ every$1.every = every;
3112
2878
  var findAsync$1 = {};
3113
2879
 
3114
2880
  findAsync$1.findAsync = void 0;
3115
- const types_1$6 = es2018$1;
2881
+ const types_1$5 = es2018$1;
3116
2882
  function findAsync(iterable, predicate) {
3117
- if ((0, types_1$6.isAsyncIterable)(iterable)) {
2883
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
3118
2884
  return findAsyncIterable(iterable, predicate);
3119
2885
  }
3120
2886
  else {
@@ -3236,9 +3002,9 @@ match$1.match = match;
3236
3002
  var reduceAsync$1 = {};
3237
3003
 
3238
3004
  reduceAsync$1.reduceAsync = void 0;
3239
- const types_1$5 = es2018$1;
3005
+ const types_1$4 = es2018$1;
3240
3006
  function reduceAsync(iterable, fn, initialValue) {
3241
- if ((0, types_1$5.isUndefined)(initialValue)) {
3007
+ if ((0, types_1$4.isUndefined)(initialValue)) {
3242
3008
  return reduceAsyncWithoutInitialValue(iterable, fn);
3243
3009
  }
3244
3010
  else {
@@ -3247,7 +3013,7 @@ function reduceAsync(iterable, fn, initialValue) {
3247
3013
  }
3248
3014
  reduceAsync$1.reduceAsync = reduceAsync;
3249
3015
  function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
3250
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
3016
+ if ((0, types_1$4.isAsyncIterable)(iterable)) {
3251
3017
  return reduceAsyncIterable(iterable);
3252
3018
  }
3253
3019
  else {
@@ -3269,7 +3035,7 @@ function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
3269
3035
  }
3270
3036
  }
3271
3037
  function reduceAsyncWithoutInitialValue(iterable, fn) {
3272
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
3038
+ if ((0, types_1$4.isAsyncIterable)(iterable)) {
3273
3039
  return reduceAsyncIterable(iterable);
3274
3040
  }
3275
3041
  else {
@@ -3332,9 +3098,9 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
3332
3098
  var reduce$1 = {};
3333
3099
 
3334
3100
  reduce$1.reduce = void 0;
3335
- const types_1$4 = es2018$1;
3101
+ const types_1$3 = es2018$1;
3336
3102
  function reduce(iterable, fn, initialValue) {
3337
- if ((0, types_1$4.isUndefined)(initialValue)) {
3103
+ if ((0, types_1$3.isUndefined)(initialValue)) {
3338
3104
  return reduceWithoutInitialValue(iterable, fn);
3339
3105
  }
3340
3106
  else {
@@ -3379,9 +3145,9 @@ function reduceWithoutInitialValue(iterable, fn) {
3379
3145
  var someAsync$1 = {};
3380
3146
 
3381
3147
  someAsync$1.someAsync = void 0;
3382
- const types_1$3 = es2018$1;
3148
+ const types_1$2 = es2018$1;
3383
3149
  function someAsync(iterable, predicate) {
3384
- if ((0, types_1$3.isAsyncIterable)(iterable)) {
3150
+ if ((0, types_1$2.isAsyncIterable)(iterable)) {
3385
3151
  return someAsyncIterable(iterable, predicate);
3386
3152
  }
3387
3153
  else {
@@ -3616,11 +3382,11 @@ groupByAsync$1.groupByAsync = groupByAsync;
3616
3382
 
3617
3383
  } (output));
3618
3384
 
3619
- var hasRequiredEs2018;
3385
+ var hasRequiredEs2018$1;
3620
3386
 
3621
- function requireEs2018 () {
3622
- if (hasRequiredEs2018) return es2018$6;
3623
- hasRequiredEs2018 = 1;
3387
+ function requireEs2018$1 () {
3388
+ if (hasRequiredEs2018$1) return es2018$5;
3389
+ hasRequiredEs2018$1 = 1;
3624
3390
  (function (exports) {
3625
3391
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3626
3392
  if (k2 === undefined) k2 = k;
@@ -3638,8 +3404,8 @@ function requireEs2018 () {
3638
3404
  };__exportStar(requireMiddleware(), exports);
3639
3405
  __exportStar(output, exports);
3640
3406
 
3641
- } (es2018$6));
3642
- return es2018$6;
3407
+ } (es2018$5));
3408
+ return es2018$5;
3643
3409
  }
3644
3410
 
3645
3411
  var getErrorNames$1 = {};
@@ -3658,11 +3424,11 @@ function* traverseErrorPrototypeChain(err) {
3658
3424
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
3659
3425
 
3660
3426
  getErrorNames$1.getErrorNames = void 0;
3661
- const types_1$2 = es2018$8;
3427
+ const types_1$1 = es2018$7;
3662
3428
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
3663
3429
  function* getErrorNames(err) {
3664
3430
  var _a;
3665
- if ((0, types_1$2.isError)(err)) {
3431
+ if ((0, types_1$1.isError)(err)) {
3666
3432
  for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
3667
3433
  if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
3668
3434
  yield prototype.constructor.name;
@@ -3679,70 +3445,123 @@ getErrorNames$1.getErrorNames = getErrorNames;
3679
3445
  var serializableError = {};
3680
3446
 
3681
3447
  serializableError.isSerializableError = void 0;
3682
- const types_1$1 = es2018$8;
3448
+ const types_1 = es2018$7;
3683
3449
  function isSerializableError(val) {
3684
- return (0, types_1$1.isObject)(val)
3685
- && (0, types_1$1.isString)(val.name)
3686
- && (0, types_1$1.isString)(val.message)
3687
- && ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
3688
- && ((0, types_1$1.isArray)(val.ancestors) && val.ancestors.every(types_1$1.isString));
3450
+ return (0, types_1.isObject)(val)
3451
+ && (0, types_1.isString)(val.name)
3452
+ && (0, types_1.isString)(val.message)
3453
+ && ((0, types_1.isString)(val.stack) || (0, types_1.isNull)(val.stack))
3454
+ && ((0, types_1.isArray)(val.ancestors) && val.ancestors.every(types_1.isString));
3689
3455
  }
3690
3456
  serializableError.isSerializableError = isSerializableError;
3691
3457
 
3692
- customError$1.CustomError = void 0;
3693
- const iterable_operator_1$1 = requireEs2018();
3694
- const get_error_names_1$1 = getErrorNames$1;
3695
- const types_1 = es2018$8;
3696
- const serializable_error_1 = serializableError;
3697
- class CustomError extends Error {
3698
- get name() {
3699
- var _a, _b;
3700
- return (_b = (_a = (0, iterable_operator_1$1.first)((0, get_error_names_1$1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
3701
- }
3702
- static [Symbol.hasInstance](instance) {
3703
- var _a;
3704
- if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
3705
- const reversedClassNames = [
3706
- (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
3707
- ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
3708
- ].reverse();
3709
- const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
3710
- return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
3711
- }
3712
- else {
3713
- return false;
3714
- }
3715
- }
3458
+ var hasRequiredCustomError;
3459
+
3460
+ function requireCustomError () {
3461
+ if (hasRequiredCustomError) return customError;
3462
+ hasRequiredCustomError = 1;
3463
+ customError.CustomError = void 0;
3464
+ const iterable_operator_1 = requireEs2018$1();
3465
+ const get_error_names_1 = getErrorNames$1;
3466
+ const types_1 = es2018$7;
3467
+ const serializable_error_1 = serializableError;
3468
+ class CustomError extends Error {
3469
+ get name() {
3470
+ var _a, _b;
3471
+ return (_b = (_a = (0, iterable_operator_1.first)((0, get_error_names_1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
3472
+ }
3473
+ static [Symbol.hasInstance](instance) {
3474
+ var _a;
3475
+ if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
3476
+ const reversedClassNames = [
3477
+ (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
3478
+ ...(0, get_error_names_1.getErrorNames)(this.prototype)
3479
+ ].reverse();
3480
+ const reversedInstanceNames = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(instance)).reverse();
3481
+ return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
3482
+ }
3483
+ else {
3484
+ return false;
3485
+ }
3486
+ }
3487
+ }
3488
+ customError.CustomError = CustomError;
3489
+
3490
+ return customError;
3716
3491
  }
3717
- customError$1.CustomError = CustomError;
3718
3492
 
3719
3493
  var assertionError = {};
3720
3494
 
3495
+ var hasRequiredAssertionError;
3496
+
3497
+ function requireAssertionError () {
3498
+ if (hasRequiredAssertionError) return assertionError;
3499
+ hasRequiredAssertionError = 1;
3721
3500
  assertionError.AssertionError = void 0;
3722
- const custom_error_1 = customError$1;
3723
- class AssertionError extends custom_error_1.CustomError {
3501
+ const custom_error_1 = requireCustomError();
3502
+ class AssertionError extends custom_error_1.CustomError {
3503
+ }
3504
+ assertionError.AssertionError = AssertionError;
3505
+
3506
+ return assertionError;
3724
3507
  }
3725
- assertionError.AssertionError = AssertionError;
3726
3508
 
3727
- var normalize$1 = {};
3509
+ var normalize = {};
3728
3510
 
3729
- normalize$1.normalize = void 0;
3730
- const get_error_names_1 = getErrorNames$1;
3731
- const iterable_operator_1 = requireEs2018();
3732
- function normalize(err) {
3733
- var _a;
3734
- const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
3735
- return {
3736
- name,
3737
- ancestors,
3738
- message: err.message,
3739
- stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
3740
- };
3511
+ var hasRequiredNormalize;
3512
+
3513
+ function requireNormalize () {
3514
+ if (hasRequiredNormalize) return normalize;
3515
+ hasRequiredNormalize = 1;
3516
+ normalize.normalize = void 0;
3517
+ const get_error_names_1 = getErrorNames$1;
3518
+ const iterable_operator_1 = requireEs2018$1();
3519
+ function normalize$1(err) {
3520
+ var _a;
3521
+ const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
3522
+ return {
3523
+ name,
3524
+ ancestors,
3525
+ message: err.message,
3526
+ stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
3527
+ };
3528
+ }
3529
+ normalize.normalize = normalize$1;
3530
+
3531
+ return normalize;
3741
3532
  }
3742
- normalize$1.normalize = normalize;
3743
3533
 
3744
3534
  var hydrate$1 = {};
3745
3535
 
3536
+ var es2018 = {};
3537
+
3538
+ var pass$1 = {};
3539
+
3540
+ pass$1.pass = void 0;
3541
+ function pass() { }
3542
+ pass$1.pass = pass;
3543
+
3544
+ var passAsync$1 = {};
3545
+
3546
+ passAsync$1.passAsync = void 0;
3547
+ async function passAsync() { }
3548
+ passAsync$1.passAsync = passAsync;
3549
+
3550
+ (function (exports) {
3551
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3552
+ if (k2 === undefined) k2 = k;
3553
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3554
+ }) : (function(o, m, k, k2) {
3555
+ if (k2 === undefined) k2 = k;
3556
+ o[k2] = m[k];
3557
+ }));
3558
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3559
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3560
+ };__exportStar(pass$1, exports);
3561
+ __exportStar(passAsync$1, exports);
3562
+
3563
+ } (es2018));
3564
+
3746
3565
  hydrate$1.hydrate = void 0;
3747
3566
  const pass_1 = es2018;
3748
3567
  function hydrate(err) {
@@ -3769,48 +3588,65 @@ function createChildErrorConstructor(parentErrorConstructor, name) {
3769
3588
  return constructor;
3770
3589
  }
3771
3590
 
3772
- var assert$1 = {};
3591
+ var assert = {};
3773
3592
 
3774
- assert$1.assert = void 0;
3775
- const assertion_error_1 = assertionError;
3776
- function assert(condition, message) {
3777
- if (!condition)
3778
- throw new assertion_error_1.AssertionError(message);
3779
- }
3780
- assert$1.assert = assert;
3593
+ var hasRequiredAssert;
3781
3594
 
3782
- (function (exports) {
3783
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3784
- if (k2 === undefined) k2 = k;
3785
- var desc = Object.getOwnPropertyDescriptor(m, k);
3786
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3787
- desc = { enumerable: true, get: function() { return m[k]; } };
3788
- }
3789
- Object.defineProperty(o, k2, desc);
3790
- }) : (function(o, m, k, k2) {
3791
- if (k2 === undefined) k2 = k;
3792
- o[k2] = m[k];
3793
- }));
3794
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3795
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3796
- };__exportStar(customError$1, exports);
3797
- __exportStar(assertionError, exports);
3798
- __exportStar(serializableError, exports);
3799
- __exportStar(normalize$1, exports);
3800
- __exportStar(hydrate$1, exports);
3801
- __exportStar(assert$1, exports);
3802
- __exportStar(getErrorNames$1, exports);
3803
- __exportStar(traverseErrorPrototypeChain$1, exports);
3595
+ function requireAssert () {
3596
+ if (hasRequiredAssert) return assert;
3597
+ hasRequiredAssert = 1;
3598
+ assert.assert = void 0;
3599
+ const assertion_error_1 = requireAssertionError();
3600
+ function assert$1(condition, message) {
3601
+ if (!condition)
3602
+ throw new assertion_error_1.AssertionError(message);
3603
+ }
3604
+ assert.assert = assert$1;
3804
3605
 
3805
- } (es2018$7));
3606
+ return assert;
3607
+ }
3806
3608
 
3807
- var es2018Exports = requireEs2018();
3609
+ var hasRequiredEs2018;
3610
+
3611
+ function requireEs2018 () {
3612
+ if (hasRequiredEs2018) return es2018$6;
3613
+ hasRequiredEs2018 = 1;
3614
+ (function (exports) {
3615
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3616
+ if (k2 === undefined) k2 = k;
3617
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3618
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3619
+ desc = { enumerable: true, get: function() { return m[k]; } };
3620
+ }
3621
+ Object.defineProperty(o, k2, desc);
3622
+ }) : (function(o, m, k, k2) {
3623
+ if (k2 === undefined) k2 = k;
3624
+ o[k2] = m[k];
3625
+ }));
3626
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3627
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3628
+ };__exportStar(requireCustomError(), exports);
3629
+ __exportStar(requireAssertionError(), exports);
3630
+ __exportStar(serializableError, exports);
3631
+ __exportStar(requireNormalize(), exports);
3632
+ __exportStar(hydrate$1, exports);
3633
+ __exportStar(requireAssert(), exports);
3634
+ __exportStar(getErrorNames$1, exports);
3635
+ __exportStar(traverseErrorPrototypeChain$1, exports);
3636
+
3637
+ } (es2018$6));
3638
+ return es2018$6;
3639
+ }
3640
+
3641
+ var es2018Exports$1 = requireEs2018();
3642
+
3643
+ var es2018Exports = requireEs2018$1();
3808
3644
 
3809
3645
  class LRUMap {
3810
3646
  constructor(limit) {
3811
3647
  this.map = new Map();
3812
- es2018$7.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
3813
- es2018$7.assert(limit > 0, 'The parameter limit must be a positive value');
3648
+ es2018Exports$1.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
3649
+ es2018Exports$1.assert(limit > 0, 'The parameter limit must be a positive value');
3814
3650
  this.limit = limit;
3815
3651
  }
3816
3652
  get [Symbol.toStringTag]() {
@@ -3948,7 +3784,7 @@ class ExpirableMap {
3948
3784
  if (this.itemMetadataSortedByExpirationTime.length > 0) {
3949
3785
  const item = this.itemMetadataSortedByExpirationTime[0];
3950
3786
  if (Number.isFinite(item.expirationTime)) {
3951
- const cancel = es2018$4.setSchedule(item.expirationTime, () => {
3787
+ const cancel = es2018$3.setSchedule(item.expirationTime, () => {
3952
3788
  this.clearExpiredItems(Date.now());
3953
3789
  this.rescheduleClearTimeout();
3954
3790
  });
@@ -3971,8 +3807,8 @@ class TLRUMap {
3971
3807
  * 按过期时间升序排列所有项目的元数据
3972
3808
  */
3973
3809
  this.itemMetadataSortedByExpirationTime = [];
3974
- es2018$7.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
3975
- es2018$7.assert(limit > 0, 'The parameter limit must be a positive value');
3810
+ es2018Exports$1.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
3811
+ es2018Exports$1.assert(limit > 0, 'The parameter limit must be a positive value');
3976
3812
  this.limit = limit;
3977
3813
  }
3978
3814
  get [Symbol.toStringTag]() {
@@ -4076,7 +3912,7 @@ class TLRUMap {
4076
3912
  if (this.itemMetadataSortedByExpirationTime.length > 0) {
4077
3913
  const item = this.itemMetadataSortedByExpirationTime[0];
4078
3914
  if (Number.isFinite(item.expirationTime)) {
4079
- const cancel = es2018$4.setSchedule(item.expirationTime, () => {
3915
+ const cancel = es2018$3.setSchedule(item.expirationTime, () => {
4080
3916
  this.clearExpiredItems(Date.now());
4081
3917
  this.rescheduleClearTimeout();
4082
3918
  });
@@ -4113,7 +3949,7 @@ class TrieMap {
4113
3949
  function* dfs(node, paths) {
4114
3950
  for (const [path, childNode] of node.children) {
4115
3951
  const newPaths = [...paths, path];
4116
- if (es2018$8.isntUndefined(childNode.value)) {
3952
+ if (es2018$7.isntUndefined(childNode.value)) {
4117
3953
  yield [newPaths, childNode.value];
4118
3954
  }
4119
3955
  yield* dfs(childNode, newPaths);
@@ -4215,7 +4051,7 @@ class FiniteStateMachine {
4215
4051
  }
4216
4052
  }
4217
4053
  }
4218
- class BadEventError extends es2018$7.CustomError {
4054
+ class BadEventError extends es2018Exports$1.CustomError {
4219
4055
  constructor(state, event) {
4220
4056
  super(`State ${state} cannot react to event ${event}`);
4221
4057
  }
@@ -5806,7 +5642,7 @@ class ObservableFiniteStateMachine extends FiniteStateMachine {
5806
5642
  super.send(event);
5807
5643
  const newState = this.state;
5808
5644
  this.stateChanges.next({ event, oldState, newState });
5809
- if (es2018$8.isEmptyObject(this.schema[newState])) {
5645
+ if (es2018$7.isEmptyObject(this.schema[newState])) {
5810
5646
  this.stateChanges.complete();
5811
5647
  }
5812
5648
  }
@@ -5940,7 +5776,7 @@ class TypedSparseMap {
5940
5776
  constructor(array) {
5941
5777
  this.keyToIndex = [];
5942
5778
  this.indexToKey = [];
5943
- es2018$7.assert(array.length === 0, 'array should be empty');
5779
+ es2018Exports$1.assert(array.length === 0, 'array should be empty');
5944
5780
  this.indexToValue = array;
5945
5781
  }
5946
5782
  get [Symbol.toStringTag]() {
@@ -6064,9 +5900,9 @@ class DynamicTypedArray {
6064
5900
  constructor(typedArrayConstructor, { capacity = 0, growthFactor = 1.5 } = {}) {
6065
5901
  this.typedArrayConstructor = typedArrayConstructor;
6066
5902
  this._length = 0;
6067
- es2018$7.assert(Number.isInteger(capacity), 'capacity must be an integer');
6068
- es2018$7.assert(capacity >= 0, 'capacity must be greater than or equal to 0');
6069
- es2018$7.assert(growthFactor >= 1, 'growthFactory must be greater than or equal to 1');
5903
+ es2018Exports$1.assert(Number.isInteger(capacity), 'capacity must be an integer');
5904
+ es2018Exports$1.assert(capacity >= 0, 'capacity must be greater than or equal to 0');
5905
+ es2018Exports$1.assert(growthFactor >= 1, 'growthFactory must be greater than or equal to 1');
6070
5906
  this.array = new typedArrayConstructor(capacity);
6071
5907
  this.growthFactor = growthFactor;
6072
5908
  }
@@ -6220,7 +6056,7 @@ class SkipList {
6220
6056
  while (currentNode.down) {
6221
6057
  currentNode = currentNode.down;
6222
6058
  }
6223
- while (currentNode.next && es2018$8.isntNull(currentNode.next.value)) {
6059
+ while (currentNode.next && es2018$7.isntNull(currentNode.next.value)) {
6224
6060
  currentNode = currentNode.next;
6225
6061
  yield currentNode;
6226
6062
  }
@@ -6250,12 +6086,12 @@ class SkipList {
6250
6086
  this._size--;
6251
6087
  }
6252
6088
  has(value) {
6253
- return es2018$8.isntNull(this.findNode(value));
6089
+ return es2018$7.isntNull(this.findNode(value));
6254
6090
  }
6255
6091
  findNode(value) {
6256
6092
  let currentNode = this.head;
6257
6093
  while (true) {
6258
- while (currentNode.next && es2018$8.isntNull(currentNode.next.value)) {
6094
+ while (currentNode.next && es2018$7.isntNull(currentNode.next.value)) {
6259
6095
  const result = this.compare(currentNode.next.value, value);
6260
6096
  if (result === 0) {
6261
6097
  return currentNode.next;
@@ -6279,7 +6115,7 @@ class SkipList {
6279
6115
  let previousNode = this.findPreviousNode(value);
6280
6116
  // 如果previousNode.next.value等于value, 则说明value已经存在
6281
6117
  if (previousNode.next &&
6282
- es2018$8.isntNull(previousNode.next.value) &&
6118
+ es2018$7.isntNull(previousNode.next.value) &&
6283
6119
  this.compare(previousNode.next.value, value) === 0) {
6284
6120
  return;
6285
6121
  }
@@ -6334,7 +6170,7 @@ class SkipList {
6334
6170
  findPreviousNode(value) {
6335
6171
  let currentNode = this.head;
6336
6172
  while (true) {
6337
- while (currentNode.next && es2018$8.isntNull(currentNode.next.value)) {
6173
+ while (currentNode.next && es2018$7.isntNull(currentNode.next.value)) {
6338
6174
  const result = this.compare(currentNode.next.value, value);
6339
6175
  if (result >= 0) {
6340
6176
  break;
@@ -6436,7 +6272,7 @@ class BitSet {
6436
6272
  }
6437
6273
  add(value) {
6438
6274
  var _a;
6439
- es2018$7.assert(value >= 0, 'value must be greater than or equal to 0');
6275
+ es2018Exports$1.assert(value >= 0, 'value must be greater than or equal to 0');
6440
6276
  if (value >= this.length) {
6441
6277
  this.length = value + 1;
6442
6278
  }
@@ -6464,7 +6300,7 @@ class BitSet {
6464
6300
  }
6465
6301
  // 输入一定是一个小于bitsPerElement的值, 取值范围是[0, bitsPerElement)
6466
6302
  getMask(value) {
6467
- return 2 ** value;
6303
+ return 1 << value;
6468
6304
  }
6469
6305
  }
6470
6306
 
@@ -6527,7 +6363,7 @@ class TypedBitSet {
6527
6363
  }
6528
6364
  add(value) {
6529
6365
  var _a;
6530
- es2018$7.assert(value >= 0, 'value must be greater than or equal to 0');
6366
+ es2018Exports$1.assert(value >= 0, 'value must be greater than or equal to 0');
6531
6367
  if (value >= this.length) {
6532
6368
  this.length = value + 1;
6533
6369
  }