@jsii/runtime 1.75.0 → 1.77.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.
@@ -135,109 +135,10 @@ var __webpack_modules__ = {
135
135
  get: assembleStyles
136
136
  });
137
137
  },
138
- 5934: (module, __unused_webpack_exports, __webpack_require__) => {
139
- "use strict";
140
- const os = __webpack_require__(2037);
141
- const tty = __webpack_require__(6224);
142
- const hasFlag = __webpack_require__(4288);
143
- const {env} = process;
144
- let forceColor;
145
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
146
- forceColor = 0;
147
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
148
- forceColor = 1;
149
- }
150
- if ("FORCE_COLOR" in env) {
151
- if (env.FORCE_COLOR === "true") {
152
- forceColor = 1;
153
- } else if (env.FORCE_COLOR === "false") {
154
- forceColor = 0;
155
- } else {
156
- forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
157
- }
158
- }
159
- function translateLevel(level) {
160
- if (level === 0) {
161
- return false;
162
- }
163
- return {
164
- level,
165
- hasBasic: true,
166
- has256: level >= 2,
167
- has16m: level >= 3
168
- };
169
- }
170
- function supportsColor(haveStream, streamIsTTY) {
171
- if (forceColor === 0) {
172
- return 0;
173
- }
174
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
175
- return 3;
176
- }
177
- if (hasFlag("color=256")) {
178
- return 2;
179
- }
180
- if (haveStream && !streamIsTTY && forceColor === undefined) {
181
- return 0;
182
- }
183
- const min = forceColor || 0;
184
- if (env.TERM === "dumb") {
185
- return min;
186
- }
187
- if (process.platform === "win32") {
188
- const osRelease = os.release().split(".");
189
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
190
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
191
- }
192
- return 1;
193
- }
194
- if ("CI" in env) {
195
- if ([ "TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE" ].some((sign => sign in env)) || env.CI_NAME === "codeship") {
196
- return 1;
197
- }
198
- return min;
199
- }
200
- if ("TEAMCITY_VERSION" in env) {
201
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
202
- }
203
- if (env.COLORTERM === "truecolor") {
204
- return 3;
205
- }
206
- if ("TERM_PROGRAM" in env) {
207
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
208
- switch (env.TERM_PROGRAM) {
209
- case "iTerm.app":
210
- return version >= 3 ? 3 : 2;
211
-
212
- case "Apple_Terminal":
213
- return 2;
214
- }
215
- }
216
- if (/-256(color)?$/i.test(env.TERM)) {
217
- return 2;
218
- }
219
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
220
- return 1;
221
- }
222
- if ("COLORTERM" in env) {
223
- return 1;
224
- }
225
- return min;
226
- }
227
- function getSupportLevel(stream) {
228
- const level = supportsColor(stream, stream && stream.isTTY);
229
- return translateLevel(level);
230
- }
231
- module.exports = {
232
- supportsColor: getSupportLevel,
233
- stdout: translateLevel(supportsColor(true, tty.isatty(1))),
234
- stderr: translateLevel(supportsColor(true, tty.isatty(2)))
235
- };
236
- },
237
138
  1201: (module, __unused_webpack_exports, __webpack_require__) => {
238
139
  "use strict";
239
140
  const ansiStyles = __webpack_require__(5756);
240
- const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(5934);
141
+ const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(9797);
241
142
  const {stringReplaceAll, stringEncaseCRLFWithFirstIndex} = __webpack_require__(8564);
242
143
  const {isArray} = Array;
243
144
  const levelMapping = [ "ansi", "ansi", "ansi256", "ansi16m" ];
@@ -1547,310 +1448,64 @@ var __webpack_modules__ = {
1547
1448
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
1548
1449
  };
1549
1450
  },
1550
- 3437: (module, __unused_webpack_exports, __webpack_require__) => {
1551
- "use strict";
1552
- const Yallist = __webpack_require__(1455);
1553
- const MAX = Symbol("max");
1554
- const LENGTH = Symbol("length");
1555
- const LENGTH_CALCULATOR = Symbol("lengthCalculator");
1556
- const ALLOW_STALE = Symbol("allowStale");
1557
- const MAX_AGE = Symbol("maxAge");
1558
- const DISPOSE = Symbol("dispose");
1559
- const NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
1560
- const LRU_LIST = Symbol("lruList");
1561
- const CACHE = Symbol("cache");
1562
- const UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
1563
- const naiveLength = () => 1;
1564
- class LRUCache {
1565
- constructor(options) {
1566
- if (typeof options === "number") options = {
1567
- max: options
1568
- };
1569
- if (!options) options = {};
1570
- if (options.max && (typeof options.max !== "number" || options.max < 0)) throw new TypeError("max must be a non-negative number");
1571
- const max = this[MAX] = options.max || Infinity;
1572
- const lc = options.length || naiveLength;
1573
- this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
1574
- this[ALLOW_STALE] = options.stale || false;
1575
- if (options.maxAge && typeof options.maxAge !== "number") throw new TypeError("maxAge must be a number");
1576
- this[MAX_AGE] = options.maxAge || 0;
1577
- this[DISPOSE] = options.dispose;
1578
- this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
1579
- this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
1580
- this.reset();
1581
- }
1582
- set max(mL) {
1583
- if (typeof mL !== "number" || mL < 0) throw new TypeError("max must be a non-negative number");
1584
- this[MAX] = mL || Infinity;
1585
- trim(this);
1586
- }
1587
- get max() {
1588
- return this[MAX];
1589
- }
1590
- set allowStale(allowStale) {
1591
- this[ALLOW_STALE] = !!allowStale;
1592
- }
1593
- get allowStale() {
1594
- return this[ALLOW_STALE];
1595
- }
1596
- set maxAge(mA) {
1597
- if (typeof mA !== "number") throw new TypeError("maxAge must be a non-negative number");
1598
- this[MAX_AGE] = mA;
1599
- trim(this);
1600
- }
1601
- get maxAge() {
1602
- return this[MAX_AGE];
1451
+ 7706: (module, __unused_webpack_exports, __webpack_require__) => {
1452
+ const ANY = Symbol("SemVer ANY");
1453
+ class Comparator {
1454
+ static get ANY() {
1455
+ return ANY;
1603
1456
  }
1604
- set lengthCalculator(lC) {
1605
- if (typeof lC !== "function") lC = naiveLength;
1606
- if (lC !== this[LENGTH_CALCULATOR]) {
1607
- this[LENGTH_CALCULATOR] = lC;
1608
- this[LENGTH] = 0;
1609
- this[LRU_LIST].forEach((hit => {
1610
- hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
1611
- this[LENGTH] += hit.length;
1612
- }));
1457
+ constructor(comp, options) {
1458
+ options = parseOptions(options);
1459
+ if (comp instanceof Comparator) {
1460
+ if (comp.loose === !!options.loose) {
1461
+ return comp;
1462
+ } else {
1463
+ comp = comp.value;
1464
+ }
1613
1465
  }
1614
- trim(this);
1615
- }
1616
- get lengthCalculator() {
1617
- return this[LENGTH_CALCULATOR];
1618
- }
1619
- get length() {
1620
- return this[LENGTH];
1621
- }
1622
- get itemCount() {
1623
- return this[LRU_LIST].length;
1624
- }
1625
- rforEach(fn, thisp) {
1626
- thisp = thisp || this;
1627
- for (let walker = this[LRU_LIST].tail; walker !== null; ) {
1628
- const prev = walker.prev;
1629
- forEachStep(this, fn, walker, thisp);
1630
- walker = prev;
1466
+ debug("comparator", comp, options);
1467
+ this.options = options;
1468
+ this.loose = !!options.loose;
1469
+ this.parse(comp);
1470
+ if (this.semver === ANY) {
1471
+ this.value = "";
1472
+ } else {
1473
+ this.value = this.operator + this.semver.version;
1631
1474
  }
1475
+ debug("comp", this);
1632
1476
  }
1633
- forEach(fn, thisp) {
1634
- thisp = thisp || this;
1635
- for (let walker = this[LRU_LIST].head; walker !== null; ) {
1636
- const next = walker.next;
1637
- forEachStep(this, fn, walker, thisp);
1638
- walker = next;
1477
+ parse(comp) {
1478
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
1479
+ const m = comp.match(r);
1480
+ if (!m) {
1481
+ throw new TypeError(`Invalid comparator: ${comp}`);
1639
1482
  }
1640
- }
1641
- keys() {
1642
- return this[LRU_LIST].toArray().map((k => k.key));
1643
- }
1644
- values() {
1645
- return this[LRU_LIST].toArray().map((k => k.value));
1646
- }
1647
- reset() {
1648
- if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
1649
- this[LRU_LIST].forEach((hit => this[DISPOSE](hit.key, hit.value)));
1483
+ this.operator = m[1] !== undefined ? m[1] : "";
1484
+ if (this.operator === "=") {
1485
+ this.operator = "";
1486
+ }
1487
+ if (!m[2]) {
1488
+ this.semver = ANY;
1489
+ } else {
1490
+ this.semver = new SemVer(m[2], this.options.loose);
1650
1491
  }
1651
- this[CACHE] = new Map;
1652
- this[LRU_LIST] = new Yallist;
1653
- this[LENGTH] = 0;
1654
1492
  }
1655
- dump() {
1656
- return this[LRU_LIST].map((hit => isStale(this, hit) ? false : {
1657
- k: hit.key,
1658
- v: hit.value,
1659
- e: hit.now + (hit.maxAge || 0)
1660
- })).toArray().filter((h => h));
1493
+ toString() {
1494
+ return this.value;
1661
1495
  }
1662
- dumpLru() {
1663
- return this[LRU_LIST];
1664
- }
1665
- set(key, value, maxAge) {
1666
- maxAge = maxAge || this[MAX_AGE];
1667
- if (maxAge && typeof maxAge !== "number") throw new TypeError("maxAge must be a number");
1668
- const now = maxAge ? Date.now() : 0;
1669
- const len = this[LENGTH_CALCULATOR](value, key);
1670
- if (this[CACHE].has(key)) {
1671
- if (len > this[MAX]) {
1672
- del(this, this[CACHE].get(key));
1673
- return false;
1674
- }
1675
- const node = this[CACHE].get(key);
1676
- const item = node.value;
1677
- if (this[DISPOSE]) {
1678
- if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value);
1679
- }
1680
- item.now = now;
1681
- item.maxAge = maxAge;
1682
- item.value = value;
1683
- this[LENGTH] += len - item.length;
1684
- item.length = len;
1685
- this.get(key);
1686
- trim(this);
1687
- return true;
1688
- }
1689
- const hit = new Entry(key, value, len, now, maxAge);
1690
- if (hit.length > this[MAX]) {
1691
- if (this[DISPOSE]) this[DISPOSE](key, value);
1692
- return false;
1693
- }
1694
- this[LENGTH] += hit.length;
1695
- this[LRU_LIST].unshift(hit);
1696
- this[CACHE].set(key, this[LRU_LIST].head);
1697
- trim(this);
1698
- return true;
1699
- }
1700
- has(key) {
1701
- if (!this[CACHE].has(key)) return false;
1702
- const hit = this[CACHE].get(key).value;
1703
- return !isStale(this, hit);
1704
- }
1705
- get(key) {
1706
- return get(this, key, true);
1707
- }
1708
- peek(key) {
1709
- return get(this, key, false);
1710
- }
1711
- pop() {
1712
- const node = this[LRU_LIST].tail;
1713
- if (!node) return null;
1714
- del(this, node);
1715
- return node.value;
1716
- }
1717
- del(key) {
1718
- del(this, this[CACHE].get(key));
1719
- }
1720
- load(arr) {
1721
- this.reset();
1722
- const now = Date.now();
1723
- for (let l = arr.length - 1; l >= 0; l--) {
1724
- const hit = arr[l];
1725
- const expiresAt = hit.e || 0;
1726
- if (expiresAt === 0) this.set(hit.k, hit.v); else {
1727
- const maxAge = expiresAt - now;
1728
- if (maxAge > 0) {
1729
- this.set(hit.k, hit.v, maxAge);
1730
- }
1731
- }
1732
- }
1733
- }
1734
- prune() {
1735
- this[CACHE].forEach(((value, key) => get(this, key, false)));
1736
- }
1737
- }
1738
- const get = (self, key, doUse) => {
1739
- const node = self[CACHE].get(key);
1740
- if (node) {
1741
- const hit = node.value;
1742
- if (isStale(self, hit)) {
1743
- del(self, node);
1744
- if (!self[ALLOW_STALE]) return undefined;
1745
- } else {
1746
- if (doUse) {
1747
- if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now();
1748
- self[LRU_LIST].unshiftNode(node);
1749
- }
1750
- }
1751
- return hit.value;
1752
- }
1753
- };
1754
- const isStale = (self, hit) => {
1755
- if (!hit || !hit.maxAge && !self[MAX_AGE]) return false;
1756
- const diff = Date.now() - hit.now;
1757
- return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
1758
- };
1759
- const trim = self => {
1760
- if (self[LENGTH] > self[MAX]) {
1761
- for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null; ) {
1762
- const prev = walker.prev;
1763
- del(self, walker);
1764
- walker = prev;
1765
- }
1766
- }
1767
- };
1768
- const del = (self, node) => {
1769
- if (node) {
1770
- const hit = node.value;
1771
- if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value);
1772
- self[LENGTH] -= hit.length;
1773
- self[CACHE].delete(hit.key);
1774
- self[LRU_LIST].removeNode(node);
1775
- }
1776
- };
1777
- class Entry {
1778
- constructor(key, value, length, now, maxAge) {
1779
- this.key = key;
1780
- this.value = value;
1781
- this.length = length;
1782
- this.now = now;
1783
- this.maxAge = maxAge || 0;
1784
- }
1785
- }
1786
- const forEachStep = (self, fn, node, thisp) => {
1787
- let hit = node.value;
1788
- if (isStale(self, hit)) {
1789
- del(self, node);
1790
- if (!self[ALLOW_STALE]) hit = undefined;
1791
- }
1792
- if (hit) fn.call(thisp, hit.value, hit.key, self);
1793
- };
1794
- module.exports = LRUCache;
1795
- },
1796
- 7706: (module, __unused_webpack_exports, __webpack_require__) => {
1797
- const ANY = Symbol("SemVer ANY");
1798
- class Comparator {
1799
- static get ANY() {
1800
- return ANY;
1801
- }
1802
- constructor(comp, options) {
1803
- options = parseOptions(options);
1804
- if (comp instanceof Comparator) {
1805
- if (comp.loose === !!options.loose) {
1806
- return comp;
1807
- } else {
1808
- comp = comp.value;
1809
- }
1810
- }
1811
- debug("comparator", comp, options);
1812
- this.options = options;
1813
- this.loose = !!options.loose;
1814
- this.parse(comp);
1815
- if (this.semver === ANY) {
1816
- this.value = "";
1817
- } else {
1818
- this.value = this.operator + this.semver.version;
1819
- }
1820
- debug("comp", this);
1821
- }
1822
- parse(comp) {
1823
- const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
1824
- const m = comp.match(r);
1825
- if (!m) {
1826
- throw new TypeError(`Invalid comparator: ${comp}`);
1827
- }
1828
- this.operator = m[1] !== undefined ? m[1] : "";
1829
- if (this.operator === "=") {
1830
- this.operator = "";
1831
- }
1832
- if (!m[2]) {
1833
- this.semver = ANY;
1834
- } else {
1835
- this.semver = new SemVer(m[2], this.options.loose);
1836
- }
1837
- }
1838
- toString() {
1839
- return this.value;
1840
- }
1841
- test(version) {
1842
- debug("Comparator.test", version, this.options.loose);
1843
- if (this.semver === ANY || version === ANY) {
1844
- return true;
1845
- }
1846
- if (typeof version === "string") {
1847
- try {
1848
- version = new SemVer(version, this.options);
1849
- } catch (er) {
1850
- return false;
1851
- }
1852
- }
1853
- return cmp(version, this.operator, this.semver, this.options);
1496
+ test(version) {
1497
+ debug("Comparator.test", version, this.options.loose);
1498
+ if (this.semver === ANY || version === ANY) {
1499
+ return true;
1500
+ }
1501
+ if (typeof version === "string") {
1502
+ try {
1503
+ version = new SemVer(version, this.options);
1504
+ } catch (er) {
1505
+ return false;
1506
+ }
1507
+ }
1508
+ return cmp(version, this.operator, this.semver, this.options);
1854
1509
  }
1855
1510
  intersects(comp, options) {
1856
1511
  if (!(comp instanceof Comparator)) {
@@ -2004,7 +1659,7 @@ var __webpack_modules__ = {
2004
1659
  }
2005
1660
  }
2006
1661
  module.exports = Range;
2007
- const LRU = __webpack_require__(3437);
1662
+ const LRU = __webpack_require__(6923);
2008
1663
  const cache = new LRU({
2009
1664
  max: 1e3
2010
1665
  });
@@ -2912,46 +2567,292 @@ var __webpack_modules__ = {
2912
2567
  createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
2913
2568
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
2914
2569
  },
2915
- 4933: (module, __unused_webpack_exports, __webpack_require__) => {
2916
- const outside = __webpack_require__(939);
2917
- const gtr = (version, range, options) => outside(version, range, ">", options);
2918
- module.exports = gtr;
2919
- },
2920
- 8842: (module, __unused_webpack_exports, __webpack_require__) => {
2921
- const Range = __webpack_require__(6833);
2922
- const intersects = (r1, r2, options) => {
2923
- r1 = new Range(r1, options);
2924
- r2 = new Range(r2, options);
2925
- return r1.intersects(r2);
2926
- };
2927
- module.exports = intersects;
2928
- },
2929
- 7233: (module, __unused_webpack_exports, __webpack_require__) => {
2930
- const outside = __webpack_require__(939);
2931
- const ltr = (version, range, options) => outside(version, range, "<", options);
2932
- module.exports = ltr;
2933
- },
2934
- 1678: (module, __unused_webpack_exports, __webpack_require__) => {
2935
- const SemVer = __webpack_require__(3013);
2936
- const Range = __webpack_require__(6833);
2937
- const maxSatisfying = (versions, range, options) => {
2938
- let max = null;
2939
- let maxSV = null;
2940
- let rangeObj = null;
2941
- try {
2942
- rangeObj = new Range(range, options);
2943
- } catch (er) {
2944
- return null;
2570
+ 6923: (module, __unused_webpack_exports, __webpack_require__) => {
2571
+ "use strict";
2572
+ const Yallist = __webpack_require__(1455);
2573
+ const MAX = Symbol("max");
2574
+ const LENGTH = Symbol("length");
2575
+ const LENGTH_CALCULATOR = Symbol("lengthCalculator");
2576
+ const ALLOW_STALE = Symbol("allowStale");
2577
+ const MAX_AGE = Symbol("maxAge");
2578
+ const DISPOSE = Symbol("dispose");
2579
+ const NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
2580
+ const LRU_LIST = Symbol("lruList");
2581
+ const CACHE = Symbol("cache");
2582
+ const UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
2583
+ const naiveLength = () => 1;
2584
+ class LRUCache {
2585
+ constructor(options) {
2586
+ if (typeof options === "number") options = {
2587
+ max: options
2588
+ };
2589
+ if (!options) options = {};
2590
+ if (options.max && (typeof options.max !== "number" || options.max < 0)) throw new TypeError("max must be a non-negative number");
2591
+ const max = this[MAX] = options.max || Infinity;
2592
+ const lc = options.length || naiveLength;
2593
+ this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
2594
+ this[ALLOW_STALE] = options.stale || false;
2595
+ if (options.maxAge && typeof options.maxAge !== "number") throw new TypeError("maxAge must be a number");
2596
+ this[MAX_AGE] = options.maxAge || 0;
2597
+ this[DISPOSE] = options.dispose;
2598
+ this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
2599
+ this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
2600
+ this.reset();
2945
2601
  }
2946
- versions.forEach((v => {
2947
- if (rangeObj.test(v)) {
2948
- if (!max || maxSV.compare(v) === -1) {
2949
- max = v;
2950
- maxSV = new SemVer(max, options);
2951
- }
2952
- }
2953
- }));
2954
- return max;
2602
+ set max(mL) {
2603
+ if (typeof mL !== "number" || mL < 0) throw new TypeError("max must be a non-negative number");
2604
+ this[MAX] = mL || Infinity;
2605
+ trim(this);
2606
+ }
2607
+ get max() {
2608
+ return this[MAX];
2609
+ }
2610
+ set allowStale(allowStale) {
2611
+ this[ALLOW_STALE] = !!allowStale;
2612
+ }
2613
+ get allowStale() {
2614
+ return this[ALLOW_STALE];
2615
+ }
2616
+ set maxAge(mA) {
2617
+ if (typeof mA !== "number") throw new TypeError("maxAge must be a non-negative number");
2618
+ this[MAX_AGE] = mA;
2619
+ trim(this);
2620
+ }
2621
+ get maxAge() {
2622
+ return this[MAX_AGE];
2623
+ }
2624
+ set lengthCalculator(lC) {
2625
+ if (typeof lC !== "function") lC = naiveLength;
2626
+ if (lC !== this[LENGTH_CALCULATOR]) {
2627
+ this[LENGTH_CALCULATOR] = lC;
2628
+ this[LENGTH] = 0;
2629
+ this[LRU_LIST].forEach((hit => {
2630
+ hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
2631
+ this[LENGTH] += hit.length;
2632
+ }));
2633
+ }
2634
+ trim(this);
2635
+ }
2636
+ get lengthCalculator() {
2637
+ return this[LENGTH_CALCULATOR];
2638
+ }
2639
+ get length() {
2640
+ return this[LENGTH];
2641
+ }
2642
+ get itemCount() {
2643
+ return this[LRU_LIST].length;
2644
+ }
2645
+ rforEach(fn, thisp) {
2646
+ thisp = thisp || this;
2647
+ for (let walker = this[LRU_LIST].tail; walker !== null; ) {
2648
+ const prev = walker.prev;
2649
+ forEachStep(this, fn, walker, thisp);
2650
+ walker = prev;
2651
+ }
2652
+ }
2653
+ forEach(fn, thisp) {
2654
+ thisp = thisp || this;
2655
+ for (let walker = this[LRU_LIST].head; walker !== null; ) {
2656
+ const next = walker.next;
2657
+ forEachStep(this, fn, walker, thisp);
2658
+ walker = next;
2659
+ }
2660
+ }
2661
+ keys() {
2662
+ return this[LRU_LIST].toArray().map((k => k.key));
2663
+ }
2664
+ values() {
2665
+ return this[LRU_LIST].toArray().map((k => k.value));
2666
+ }
2667
+ reset() {
2668
+ if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
2669
+ this[LRU_LIST].forEach((hit => this[DISPOSE](hit.key, hit.value)));
2670
+ }
2671
+ this[CACHE] = new Map;
2672
+ this[LRU_LIST] = new Yallist;
2673
+ this[LENGTH] = 0;
2674
+ }
2675
+ dump() {
2676
+ return this[LRU_LIST].map((hit => isStale(this, hit) ? false : {
2677
+ k: hit.key,
2678
+ v: hit.value,
2679
+ e: hit.now + (hit.maxAge || 0)
2680
+ })).toArray().filter((h => h));
2681
+ }
2682
+ dumpLru() {
2683
+ return this[LRU_LIST];
2684
+ }
2685
+ set(key, value, maxAge) {
2686
+ maxAge = maxAge || this[MAX_AGE];
2687
+ if (maxAge && typeof maxAge !== "number") throw new TypeError("maxAge must be a number");
2688
+ const now = maxAge ? Date.now() : 0;
2689
+ const len = this[LENGTH_CALCULATOR](value, key);
2690
+ if (this[CACHE].has(key)) {
2691
+ if (len > this[MAX]) {
2692
+ del(this, this[CACHE].get(key));
2693
+ return false;
2694
+ }
2695
+ const node = this[CACHE].get(key);
2696
+ const item = node.value;
2697
+ if (this[DISPOSE]) {
2698
+ if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value);
2699
+ }
2700
+ item.now = now;
2701
+ item.maxAge = maxAge;
2702
+ item.value = value;
2703
+ this[LENGTH] += len - item.length;
2704
+ item.length = len;
2705
+ this.get(key);
2706
+ trim(this);
2707
+ return true;
2708
+ }
2709
+ const hit = new Entry(key, value, len, now, maxAge);
2710
+ if (hit.length > this[MAX]) {
2711
+ if (this[DISPOSE]) this[DISPOSE](key, value);
2712
+ return false;
2713
+ }
2714
+ this[LENGTH] += hit.length;
2715
+ this[LRU_LIST].unshift(hit);
2716
+ this[CACHE].set(key, this[LRU_LIST].head);
2717
+ trim(this);
2718
+ return true;
2719
+ }
2720
+ has(key) {
2721
+ if (!this[CACHE].has(key)) return false;
2722
+ const hit = this[CACHE].get(key).value;
2723
+ return !isStale(this, hit);
2724
+ }
2725
+ get(key) {
2726
+ return get(this, key, true);
2727
+ }
2728
+ peek(key) {
2729
+ return get(this, key, false);
2730
+ }
2731
+ pop() {
2732
+ const node = this[LRU_LIST].tail;
2733
+ if (!node) return null;
2734
+ del(this, node);
2735
+ return node.value;
2736
+ }
2737
+ del(key) {
2738
+ del(this, this[CACHE].get(key));
2739
+ }
2740
+ load(arr) {
2741
+ this.reset();
2742
+ const now = Date.now();
2743
+ for (let l = arr.length - 1; l >= 0; l--) {
2744
+ const hit = arr[l];
2745
+ const expiresAt = hit.e || 0;
2746
+ if (expiresAt === 0) this.set(hit.k, hit.v); else {
2747
+ const maxAge = expiresAt - now;
2748
+ if (maxAge > 0) {
2749
+ this.set(hit.k, hit.v, maxAge);
2750
+ }
2751
+ }
2752
+ }
2753
+ }
2754
+ prune() {
2755
+ this[CACHE].forEach(((value, key) => get(this, key, false)));
2756
+ }
2757
+ }
2758
+ const get = (self, key, doUse) => {
2759
+ const node = self[CACHE].get(key);
2760
+ if (node) {
2761
+ const hit = node.value;
2762
+ if (isStale(self, hit)) {
2763
+ del(self, node);
2764
+ if (!self[ALLOW_STALE]) return undefined;
2765
+ } else {
2766
+ if (doUse) {
2767
+ if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now();
2768
+ self[LRU_LIST].unshiftNode(node);
2769
+ }
2770
+ }
2771
+ return hit.value;
2772
+ }
2773
+ };
2774
+ const isStale = (self, hit) => {
2775
+ if (!hit || !hit.maxAge && !self[MAX_AGE]) return false;
2776
+ const diff = Date.now() - hit.now;
2777
+ return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
2778
+ };
2779
+ const trim = self => {
2780
+ if (self[LENGTH] > self[MAX]) {
2781
+ for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null; ) {
2782
+ const prev = walker.prev;
2783
+ del(self, walker);
2784
+ walker = prev;
2785
+ }
2786
+ }
2787
+ };
2788
+ const del = (self, node) => {
2789
+ if (node) {
2790
+ const hit = node.value;
2791
+ if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value);
2792
+ self[LENGTH] -= hit.length;
2793
+ self[CACHE].delete(hit.key);
2794
+ self[LRU_LIST].removeNode(node);
2795
+ }
2796
+ };
2797
+ class Entry {
2798
+ constructor(key, value, length, now, maxAge) {
2799
+ this.key = key;
2800
+ this.value = value;
2801
+ this.length = length;
2802
+ this.now = now;
2803
+ this.maxAge = maxAge || 0;
2804
+ }
2805
+ }
2806
+ const forEachStep = (self, fn, node, thisp) => {
2807
+ let hit = node.value;
2808
+ if (isStale(self, hit)) {
2809
+ del(self, node);
2810
+ if (!self[ALLOW_STALE]) hit = undefined;
2811
+ }
2812
+ if (hit) fn.call(thisp, hit.value, hit.key, self);
2813
+ };
2814
+ module.exports = LRUCache;
2815
+ },
2816
+ 4933: (module, __unused_webpack_exports, __webpack_require__) => {
2817
+ const outside = __webpack_require__(939);
2818
+ const gtr = (version, range, options) => outside(version, range, ">", options);
2819
+ module.exports = gtr;
2820
+ },
2821
+ 8842: (module, __unused_webpack_exports, __webpack_require__) => {
2822
+ const Range = __webpack_require__(6833);
2823
+ const intersects = (r1, r2, options) => {
2824
+ r1 = new Range(r1, options);
2825
+ r2 = new Range(r2, options);
2826
+ return r1.intersects(r2);
2827
+ };
2828
+ module.exports = intersects;
2829
+ },
2830
+ 7233: (module, __unused_webpack_exports, __webpack_require__) => {
2831
+ const outside = __webpack_require__(939);
2832
+ const ltr = (version, range, options) => outside(version, range, "<", options);
2833
+ module.exports = ltr;
2834
+ },
2835
+ 1678: (module, __unused_webpack_exports, __webpack_require__) => {
2836
+ const SemVer = __webpack_require__(3013);
2837
+ const Range = __webpack_require__(6833);
2838
+ const maxSatisfying = (versions, range, options) => {
2839
+ let max = null;
2840
+ let maxSV = null;
2841
+ let rangeObj = null;
2842
+ try {
2843
+ rangeObj = new Range(range, options);
2844
+ } catch (er) {
2845
+ return null;
2846
+ }
2847
+ versions.forEach((v => {
2848
+ if (rangeObj.test(v)) {
2849
+ if (!max || maxSV.compare(v) === -1) {
2850
+ max = v;
2851
+ maxSV = new SemVer(max, options);
2852
+ }
2853
+ }
2854
+ }));
2855
+ return max;
2955
2856
  };
2956
2857
  module.exports = maxSatisfying;
2957
2858
  },
@@ -3316,6 +3217,105 @@ var __webpack_modules__ = {
3316
3217
  };
3317
3218
  module.exports = validRange;
3318
3219
  },
3220
+ 9797: (module, __unused_webpack_exports, __webpack_require__) => {
3221
+ "use strict";
3222
+ const os = __webpack_require__(2037);
3223
+ const tty = __webpack_require__(6224);
3224
+ const hasFlag = __webpack_require__(4288);
3225
+ const {env} = process;
3226
+ let forceColor;
3227
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
3228
+ forceColor = 0;
3229
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
3230
+ forceColor = 1;
3231
+ }
3232
+ if ("FORCE_COLOR" in env) {
3233
+ if (env.FORCE_COLOR === "true") {
3234
+ forceColor = 1;
3235
+ } else if (env.FORCE_COLOR === "false") {
3236
+ forceColor = 0;
3237
+ } else {
3238
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
3239
+ }
3240
+ }
3241
+ function translateLevel(level) {
3242
+ if (level === 0) {
3243
+ return false;
3244
+ }
3245
+ return {
3246
+ level,
3247
+ hasBasic: true,
3248
+ has256: level >= 2,
3249
+ has16m: level >= 3
3250
+ };
3251
+ }
3252
+ function supportsColor(haveStream, streamIsTTY) {
3253
+ if (forceColor === 0) {
3254
+ return 0;
3255
+ }
3256
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
3257
+ return 3;
3258
+ }
3259
+ if (hasFlag("color=256")) {
3260
+ return 2;
3261
+ }
3262
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
3263
+ return 0;
3264
+ }
3265
+ const min = forceColor || 0;
3266
+ if (env.TERM === "dumb") {
3267
+ return min;
3268
+ }
3269
+ if (process.platform === "win32") {
3270
+ const osRelease = os.release().split(".");
3271
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
3272
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
3273
+ }
3274
+ return 1;
3275
+ }
3276
+ if ("CI" in env) {
3277
+ if ([ "TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE" ].some((sign => sign in env)) || env.CI_NAME === "codeship") {
3278
+ return 1;
3279
+ }
3280
+ return min;
3281
+ }
3282
+ if ("TEAMCITY_VERSION" in env) {
3283
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
3284
+ }
3285
+ if (env.COLORTERM === "truecolor") {
3286
+ return 3;
3287
+ }
3288
+ if ("TERM_PROGRAM" in env) {
3289
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
3290
+ switch (env.TERM_PROGRAM) {
3291
+ case "iTerm.app":
3292
+ return version >= 3 ? 3 : 2;
3293
+
3294
+ case "Apple_Terminal":
3295
+ return 2;
3296
+ }
3297
+ }
3298
+ if (/-256(color)?$/i.test(env.TERM)) {
3299
+ return 2;
3300
+ }
3301
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
3302
+ return 1;
3303
+ }
3304
+ if ("COLORTERM" in env) {
3305
+ return 1;
3306
+ }
3307
+ return min;
3308
+ }
3309
+ function getSupportLevel(stream) {
3310
+ const level = supportsColor(stream, stream && stream.isTTY);
3311
+ return translateLevel(level);
3312
+ }
3313
+ module.exports = {
3314
+ supportsColor: getSupportLevel,
3315
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
3316
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
3317
+ };
3318
+ },
3319
3319
  3278: module => {
3320
3320
  "use strict";
3321
3321
  module.exports = function(Yallist) {