piral-cli 1.3.1-beta.6128 → 1.3.1-beta.6133

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.
@@ -1134,9 +1134,9 @@ var require_has_flag = __commonJS({
1134
1134
  }
1135
1135
  });
1136
1136
 
1137
- // ../../../node_modules/chalk/node_modules/supports-color/index.js
1137
+ // ../../../node_modules/supports-color/index.js
1138
1138
  var require_supports_color = __commonJS({
1139
- "../../../node_modules/chalk/node_modules/supports-color/index.js"(exports, module2) {
1139
+ "../../../node_modules/supports-color/index.js"(exports, module2) {
1140
1140
  "use strict";
1141
1141
  var os = require("os");
1142
1142
  var tty = require("tty");
@@ -1639,11 +1639,11 @@ var require_signals = __commonJS({
1639
1639
  // ../../../node_modules/signal-exit/index.js
1640
1640
  var require_signal_exit = __commonJS({
1641
1641
  "../../../node_modules/signal-exit/index.js"(exports, module2) {
1642
- var process8 = global.process;
1643
- var processOk = function(process9) {
1644
- return process9 && typeof process9 === "object" && typeof process9.removeListener === "function" && typeof process9.emit === "function" && typeof process9.reallyExit === "function" && typeof process9.listeners === "function" && typeof process9.kill === "function" && typeof process9.pid === "number" && typeof process9.on === "function";
1642
+ var process7 = global.process;
1643
+ var processOk = function(process8) {
1644
+ return process8 && typeof process8 === "object" && typeof process8.removeListener === "function" && typeof process8.emit === "function" && typeof process8.reallyExit === "function" && typeof process8.listeners === "function" && typeof process8.kill === "function" && typeof process8.pid === "number" && typeof process8.on === "function";
1645
1645
  };
1646
- if (!processOk(process8)) {
1646
+ if (!processOk(process7)) {
1647
1647
  module2.exports = function() {
1648
1648
  return function() {
1649
1649
  };
@@ -1651,15 +1651,15 @@ var require_signal_exit = __commonJS({
1651
1651
  } else {
1652
1652
  assert = require("assert");
1653
1653
  signals = require_signals();
1654
- isWin = /^win/i.test(process8.platform);
1654
+ isWin = /^win/i.test(process7.platform);
1655
1655
  EE = require("events");
1656
1656
  if (typeof EE !== "function") {
1657
1657
  EE = EE.EventEmitter;
1658
1658
  }
1659
- if (process8.__signal_exit_emitter__) {
1660
- emitter = process8.__signal_exit_emitter__;
1659
+ if (process7.__signal_exit_emitter__) {
1660
+ emitter = process7.__signal_exit_emitter__;
1661
1661
  } else {
1662
- emitter = process8.__signal_exit_emitter__ = new EE();
1662
+ emitter = process7.__signal_exit_emitter__ = new EE();
1663
1663
  emitter.count = 0;
1664
1664
  emitter.emitted = {};
1665
1665
  }
@@ -1696,12 +1696,12 @@ var require_signal_exit = __commonJS({
1696
1696
  loaded = false;
1697
1697
  signals.forEach(function(sig) {
1698
1698
  try {
1699
- process8.removeListener(sig, sigListeners[sig]);
1699
+ process7.removeListener(sig, sigListeners[sig]);
1700
1700
  } catch (er) {
1701
1701
  }
1702
1702
  });
1703
- process8.emit = originalProcessEmit;
1704
- process8.reallyExit = originalProcessReallyExit;
1703
+ process7.emit = originalProcessEmit;
1704
+ process7.reallyExit = originalProcessReallyExit;
1705
1705
  emitter.count -= 1;
1706
1706
  };
1707
1707
  module2.exports.unload = unload;
@@ -1718,7 +1718,7 @@ var require_signal_exit = __commonJS({
1718
1718
  if (!processOk(global.process)) {
1719
1719
  return;
1720
1720
  }
1721
- var listeners = process8.listeners(sig);
1721
+ var listeners = process7.listeners(sig);
1722
1722
  if (listeners.length === emitter.count) {
1723
1723
  unload();
1724
1724
  emit("exit", null, sig);
@@ -1726,7 +1726,7 @@ var require_signal_exit = __commonJS({
1726
1726
  if (isWin && sig === "SIGHUP") {
1727
1727
  sig = "SIGINT";
1728
1728
  }
1729
- process8.kill(process8.pid, sig);
1729
+ process7.kill(process7.pid, sig);
1730
1730
  }
1731
1731
  };
1732
1732
  });
@@ -1742,35 +1742,35 @@ var require_signal_exit = __commonJS({
1742
1742
  emitter.count += 1;
1743
1743
  signals = signals.filter(function(sig) {
1744
1744
  try {
1745
- process8.on(sig, sigListeners[sig]);
1745
+ process7.on(sig, sigListeners[sig]);
1746
1746
  return true;
1747
1747
  } catch (er) {
1748
1748
  return false;
1749
1749
  }
1750
1750
  });
1751
- process8.emit = processEmit;
1752
- process8.reallyExit = processReallyExit;
1751
+ process7.emit = processEmit;
1752
+ process7.reallyExit = processReallyExit;
1753
1753
  };
1754
1754
  module2.exports.load = load;
1755
- originalProcessReallyExit = process8.reallyExit;
1755
+ originalProcessReallyExit = process7.reallyExit;
1756
1756
  processReallyExit = function processReallyExit2(code) {
1757
1757
  if (!processOk(global.process)) {
1758
1758
  return;
1759
1759
  }
1760
- process8.exitCode = code || 0;
1761
- emit("exit", process8.exitCode, null);
1762
- emit("afterexit", process8.exitCode, null);
1763
- originalProcessReallyExit.call(process8, process8.exitCode);
1760
+ process7.exitCode = code || 0;
1761
+ emit("exit", process7.exitCode, null);
1762
+ emit("afterexit", process7.exitCode, null);
1763
+ originalProcessReallyExit.call(process7, process7.exitCode);
1764
1764
  };
1765
- originalProcessEmit = process8.emit;
1765
+ originalProcessEmit = process7.emit;
1766
1766
  processEmit = function processEmit2(ev, arg) {
1767
1767
  if (ev === "exit" && processOk(global.process)) {
1768
1768
  if (arg !== void 0) {
1769
- process8.exitCode = arg;
1769
+ process7.exitCode = arg;
1770
1770
  }
1771
1771
  var ret = originalProcessEmit.apply(this, arguments);
1772
- emit("exit", process8.exitCode, null);
1773
- emit("afterexit", process8.exitCode, null);
1772
+ emit("exit", process7.exitCode, null);
1773
+ emit("afterexit", process7.exitCode, null);
1774
1774
  return ret;
1775
1775
  } else {
1776
1776
  return originalProcessEmit.apply(this, arguments);
@@ -2584,6 +2584,21 @@ var require_spinners = __commonJS({
2584
2584
  "\u25E5"
2585
2585
  ]
2586
2586
  },
2587
+ binary: {
2588
+ interval: 80,
2589
+ frames: [
2590
+ "010010",
2591
+ "001100",
2592
+ "100101",
2593
+ "111010",
2594
+ "111101",
2595
+ "010111",
2596
+ "101011",
2597
+ "111000",
2598
+ "110011",
2599
+ "110101"
2600
+ ]
2601
+ },
2587
2602
  arc: {
2588
2603
  interval: 100,
2589
2604
  frames: [
@@ -2776,6 +2791,7 @@ var require_spinners = __commonJS({
2776
2791
  "[= ]",
2777
2792
  "[== ]",
2778
2793
  "[=== ]",
2794
+ "[====]",
2779
2795
  "[ ===]",
2780
2796
  "[ ==]",
2781
2797
  "[ =]",
@@ -3263,6 +3279,144 @@ var require_spinners = __commonJS({
3263
3279
  "\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0",
3264
3280
  "\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"
3265
3281
  ]
3282
+ },
3283
+ dwarfFortress: {
3284
+ interval: 80,
3285
+ frames: [
3286
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3287
+ "\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3288
+ "\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3289
+ "\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3290
+ "\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3291
+ "\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3292
+ "\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3293
+ "\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3294
+ "\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3295
+ "\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3296
+ " \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3297
+ " \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3298
+ " \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3299
+ " \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3300
+ " \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3301
+ " \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3302
+ " \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3303
+ " \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3304
+ " \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3305
+ " \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3306
+ " \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3307
+ " \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
3308
+ " \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
3309
+ " \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
3310
+ " \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
3311
+ " \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
3312
+ " \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
3313
+ " \u263A \u2588\u2588\u2588\xA3\xA3\xA3 ",
3314
+ " \u263A\u2588\u2588\u2588\xA3\xA3\xA3 ",
3315
+ " \u263A\u2588\u2588\u2588\xA3\xA3\xA3 ",
3316
+ " \u263A\u2593\u2588\u2588\xA3\xA3\xA3 ",
3317
+ " \u263A\u2593\u2588\u2588\xA3\xA3\xA3 ",
3318
+ " \u263A\u2592\u2588\u2588\xA3\xA3\xA3 ",
3319
+ " \u263A\u2592\u2588\u2588\xA3\xA3\xA3 ",
3320
+ " \u263A\u2591\u2588\u2588\xA3\xA3\xA3 ",
3321
+ " \u263A\u2591\u2588\u2588\xA3\xA3\xA3 ",
3322
+ " \u263A \u2588\u2588\xA3\xA3\xA3 ",
3323
+ " \u263A\u2588\u2588\xA3\xA3\xA3 ",
3324
+ " \u263A\u2588\u2588\xA3\xA3\xA3 ",
3325
+ " \u263A\u2593\u2588\xA3\xA3\xA3 ",
3326
+ " \u263A\u2593\u2588\xA3\xA3\xA3 ",
3327
+ " \u263A\u2592\u2588\xA3\xA3\xA3 ",
3328
+ " \u263A\u2592\u2588\xA3\xA3\xA3 ",
3329
+ " \u263A\u2591\u2588\xA3\xA3\xA3 ",
3330
+ " \u263A\u2591\u2588\xA3\xA3\xA3 ",
3331
+ " \u263A \u2588\xA3\xA3\xA3 ",
3332
+ " \u263A\u2588\xA3\xA3\xA3 ",
3333
+ " \u263A\u2588\xA3\xA3\xA3 ",
3334
+ " \u263A\u2593\xA3\xA3\xA3 ",
3335
+ " \u263A\u2593\xA3\xA3\xA3 ",
3336
+ " \u263A\u2592\xA3\xA3\xA3 ",
3337
+ " \u263A\u2592\xA3\xA3\xA3 ",
3338
+ " \u263A\u2591\xA3\xA3\xA3 ",
3339
+ " \u263A\u2591\xA3\xA3\xA3 ",
3340
+ " \u263A \xA3\xA3\xA3 ",
3341
+ " \u263A\xA3\xA3\xA3 ",
3342
+ " \u263A\xA3\xA3\xA3 ",
3343
+ " \u263A\u2593\xA3\xA3 ",
3344
+ " \u263A\u2593\xA3\xA3 ",
3345
+ " \u263A\u2592\xA3\xA3 ",
3346
+ " \u263A\u2592\xA3\xA3 ",
3347
+ " \u263A\u2591\xA3\xA3 ",
3348
+ " \u263A\u2591\xA3\xA3 ",
3349
+ " \u263A \xA3\xA3 ",
3350
+ " \u263A\xA3\xA3 ",
3351
+ " \u263A\xA3\xA3 ",
3352
+ " \u263A\u2593\xA3 ",
3353
+ " \u263A\u2593\xA3 ",
3354
+ " \u263A\u2592\xA3 ",
3355
+ " \u263A\u2592\xA3 ",
3356
+ " \u263A\u2591\xA3 ",
3357
+ " \u263A\u2591\xA3 ",
3358
+ " \u263A \xA3 ",
3359
+ " \u263A\xA3 ",
3360
+ " \u263A\xA3 ",
3361
+ " \u263A\u2593 ",
3362
+ " \u263A\u2593 ",
3363
+ " \u263A\u2592 ",
3364
+ " \u263A\u2592 ",
3365
+ " \u263A\u2591 ",
3366
+ " \u263A\u2591 ",
3367
+ " \u263A ",
3368
+ " \u263A &",
3369
+ " \u263A \u263C&",
3370
+ " \u263A \u263C &",
3371
+ " \u263A\u263C &",
3372
+ " \u263A\u263C & ",
3373
+ " \u203C & ",
3374
+ " \u263A & ",
3375
+ " \u203C & ",
3376
+ " \u263A & ",
3377
+ " \u203C & ",
3378
+ " \u263A & ",
3379
+ "\u203C & ",
3380
+ " & ",
3381
+ " & ",
3382
+ " & \u2591 ",
3383
+ " & \u2592 ",
3384
+ " & \u2593 ",
3385
+ " & \xA3 ",
3386
+ " & \u2591\xA3 ",
3387
+ " & \u2592\xA3 ",
3388
+ " & \u2593\xA3 ",
3389
+ " & \xA3\xA3 ",
3390
+ " & \u2591\xA3\xA3 ",
3391
+ " & \u2592\xA3\xA3 ",
3392
+ "& \u2593\xA3\xA3 ",
3393
+ "& \xA3\xA3\xA3 ",
3394
+ " \u2591\xA3\xA3\xA3 ",
3395
+ " \u2592\xA3\xA3\xA3 ",
3396
+ " \u2593\xA3\xA3\xA3 ",
3397
+ " \u2588\xA3\xA3\xA3 ",
3398
+ " \u2591\u2588\xA3\xA3\xA3 ",
3399
+ " \u2592\u2588\xA3\xA3\xA3 ",
3400
+ " \u2593\u2588\xA3\xA3\xA3 ",
3401
+ " \u2588\u2588\xA3\xA3\xA3 ",
3402
+ " \u2591\u2588\u2588\xA3\xA3\xA3 ",
3403
+ " \u2592\u2588\u2588\xA3\xA3\xA3 ",
3404
+ " \u2593\u2588\u2588\xA3\xA3\xA3 ",
3405
+ " \u2588\u2588\u2588\xA3\xA3\xA3 ",
3406
+ " \u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
3407
+ " \u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
3408
+ " \u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
3409
+ " \u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3410
+ " \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3411
+ " \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3412
+ " \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3413
+ " \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3414
+ " \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3415
+ " \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3416
+ " \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3417
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
3418
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "
3419
+ ]
3266
3420
  }
3267
3421
  };
3268
3422
  }
@@ -3665,32 +3819,25 @@ var require_buffer_list = __commonJS({
3665
3819
  var keys = Object.keys(object);
3666
3820
  if (Object.getOwnPropertySymbols) {
3667
3821
  var symbols = Object.getOwnPropertySymbols(object);
3668
- if (enumerableOnly)
3669
- symbols = symbols.filter(function(sym) {
3670
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3671
- });
3672
- keys.push.apply(keys, symbols);
3822
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
3823
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3824
+ })), keys.push.apply(keys, symbols);
3673
3825
  }
3674
3826
  return keys;
3675
3827
  }
3676
3828
  function _objectSpread(target) {
3677
3829
  for (var i = 1; i < arguments.length; i++) {
3678
3830
  var source = arguments[i] != null ? arguments[i] : {};
3679
- if (i % 2) {
3680
- ownKeys(Object(source), true).forEach(function(key) {
3681
- _defineProperty(target, key, source[key]);
3682
- });
3683
- } else if (Object.getOwnPropertyDescriptors) {
3684
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3685
- } else {
3686
- ownKeys(Object(source)).forEach(function(key) {
3687
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3688
- });
3689
- }
3831
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
3832
+ _defineProperty(target, key, source[key]);
3833
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
3834
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3835
+ });
3690
3836
  }
3691
3837
  return target;
3692
3838
  }
3693
3839
  function _defineProperty(obj, key, value) {
3840
+ key = _toPropertyKey(key);
3694
3841
  if (key in obj) {
3695
3842
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
3696
3843
  } else {
@@ -3710,7 +3857,7 @@ var require_buffer_list = __commonJS({
3710
3857
  descriptor.configurable = true;
3711
3858
  if ("value" in descriptor)
3712
3859
  descriptor.writable = true;
3713
- Object.defineProperty(target, descriptor.key, descriptor);
3860
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
3714
3861
  }
3715
3862
  }
3716
3863
  function _createClass(Constructor, protoProps, staticProps) {
@@ -3718,8 +3865,25 @@ var require_buffer_list = __commonJS({
3718
3865
  _defineProperties(Constructor.prototype, protoProps);
3719
3866
  if (staticProps)
3720
3867
  _defineProperties(Constructor, staticProps);
3868
+ Object.defineProperty(Constructor, "prototype", { writable: false });
3721
3869
  return Constructor;
3722
3870
  }
3871
+ function _toPropertyKey(arg) {
3872
+ var key = _toPrimitive(arg, "string");
3873
+ return typeof key === "symbol" ? key : String(key);
3874
+ }
3875
+ function _toPrimitive(input, hint) {
3876
+ if (typeof input !== "object" || input === null)
3877
+ return input;
3878
+ var prim = input[Symbol.toPrimitive];
3879
+ if (prim !== void 0) {
3880
+ var res = prim.call(input, hint || "default");
3881
+ if (typeof res !== "object")
3882
+ return res;
3883
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3884
+ }
3885
+ return (hint === "string" ? String : Number)(input);
3886
+ }
3723
3887
  var _require = require("buffer");
3724
3888
  var Buffer2 = _require.Buffer;
3725
3889
  var _require2 = require("util");
@@ -3787,9 +3951,8 @@ var require_buffer_list = __commonJS({
3787
3951
  return "";
3788
3952
  var p = this.head;
3789
3953
  var ret = "" + p.data;
3790
- while (p = p.next) {
3954
+ while (p = p.next)
3791
3955
  ret += s + p.data;
3792
- }
3793
3956
  return ret;
3794
3957
  }
3795
3958
  }, {
@@ -3893,7 +4056,7 @@ var require_buffer_list = __commonJS({
3893
4056
  }, {
3894
4057
  key: custom,
3895
4058
  value: function value(_, options) {
3896
- return inspect(this, _objectSpread({}, options, {
4059
+ return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
3897
4060
  depth: 0,
3898
4061
  customInspect: false
3899
4062
  }));
@@ -4196,7 +4359,7 @@ var require_stream_writable = __commonJS({
4196
4359
  };
4197
4360
  var Stream = require_stream();
4198
4361
  var Buffer2 = require("buffer").Buffer;
4199
- var OurUint8Array = global.Uint8Array || function() {
4362
+ var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
4200
4363
  };
4201
4364
  function _uint8ArrayToBuffer(chunk) {
4202
4365
  return Buffer2.from(chunk);
@@ -4670,9 +4833,8 @@ var require_stream_duplex = __commonJS({
4670
4833
  "use strict";
4671
4834
  var objectKeys = Object.keys || function(obj) {
4672
4835
  var keys2 = [];
4673
- for (var key in obj) {
4836
+ for (var key in obj)
4674
4837
  keys2.push(key);
4675
- }
4676
4838
  return keys2;
4677
4839
  };
4678
4840
  module2.exports = Duplex;
@@ -5177,6 +5339,7 @@ var require_async_iterator = __commonJS({
5177
5339
  "use strict";
5178
5340
  var _Object$setPrototypeO;
5179
5341
  function _defineProperty(obj, key, value) {
5342
+ key = _toPropertyKey(key);
5180
5343
  if (key in obj) {
5181
5344
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
5182
5345
  } else {
@@ -5184,6 +5347,22 @@ var require_async_iterator = __commonJS({
5184
5347
  }
5185
5348
  return obj;
5186
5349
  }
5350
+ function _toPropertyKey(arg) {
5351
+ var key = _toPrimitive(arg, "string");
5352
+ return typeof key === "symbol" ? key : String(key);
5353
+ }
5354
+ function _toPrimitive(input, hint) {
5355
+ if (typeof input !== "object" || input === null)
5356
+ return input;
5357
+ var prim = input[Symbol.toPrimitive];
5358
+ if (prim !== void 0) {
5359
+ var res = prim.call(input, hint || "default");
5360
+ if (typeof res !== "object")
5361
+ return res;
5362
+ throw new TypeError("@@toPrimitive must return a primitive value.");
5363
+ }
5364
+ return (hint === "string" ? String : Number)(input);
5365
+ }
5187
5366
  var finished = require_end_of_stream();
5188
5367
  var kLastResolve = Symbol("lastResolve");
5189
5368
  var kLastReject = Symbol("lastReject");
@@ -5376,32 +5555,25 @@ var require_from = __commonJS({
5376
5555
  var keys = Object.keys(object);
5377
5556
  if (Object.getOwnPropertySymbols) {
5378
5557
  var symbols = Object.getOwnPropertySymbols(object);
5379
- if (enumerableOnly)
5380
- symbols = symbols.filter(function(sym) {
5381
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
5382
- });
5383
- keys.push.apply(keys, symbols);
5558
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
5559
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
5560
+ })), keys.push.apply(keys, symbols);
5384
5561
  }
5385
5562
  return keys;
5386
5563
  }
5387
5564
  function _objectSpread(target) {
5388
5565
  for (var i = 1; i < arguments.length; i++) {
5389
5566
  var source = arguments[i] != null ? arguments[i] : {};
5390
- if (i % 2) {
5391
- ownKeys(Object(source), true).forEach(function(key) {
5392
- _defineProperty(target, key, source[key]);
5393
- });
5394
- } else if (Object.getOwnPropertyDescriptors) {
5395
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
5396
- } else {
5397
- ownKeys(Object(source)).forEach(function(key) {
5398
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5399
- });
5400
- }
5567
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
5568
+ _defineProperty(target, key, source[key]);
5569
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
5570
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5571
+ });
5401
5572
  }
5402
5573
  return target;
5403
5574
  }
5404
5575
  function _defineProperty(obj, key, value) {
5576
+ key = _toPropertyKey(key);
5405
5577
  if (key in obj) {
5406
5578
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
5407
5579
  } else {
@@ -5409,6 +5581,22 @@ var require_from = __commonJS({
5409
5581
  }
5410
5582
  return obj;
5411
5583
  }
5584
+ function _toPropertyKey(arg) {
5585
+ var key = _toPrimitive(arg, "string");
5586
+ return typeof key === "symbol" ? key : String(key);
5587
+ }
5588
+ function _toPrimitive(input, hint) {
5589
+ if (typeof input !== "object" || input === null)
5590
+ return input;
5591
+ var prim = input[Symbol.toPrimitive];
5592
+ if (prim !== void 0) {
5593
+ var res = prim.call(input, hint || "default");
5594
+ if (typeof res !== "object")
5595
+ return res;
5596
+ throw new TypeError("@@toPrimitive must return a primitive value.");
5597
+ }
5598
+ return (hint === "string" ? String : Number)(input);
5599
+ }
5412
5600
  var ERR_INVALID_ARG_TYPE = require_errors().codes.ERR_INVALID_ARG_TYPE;
5413
5601
  function from(Readable, iterable, opts) {
5414
5602
  var iterator;
@@ -5436,7 +5624,7 @@ var require_from = __commonJS({
5436
5624
  function _next2() {
5437
5625
  _next2 = _asyncToGenerator(function* () {
5438
5626
  try {
5439
- var _ref = yield iterator.next(), value = _ref.value, done = _ref.done;
5627
+ var _yield$iterator$next = yield iterator.next(), value = _yield$iterator$next.value, done = _yield$iterator$next.done;
5440
5628
  if (done) {
5441
5629
  readable.push(null);
5442
5630
  } else if (readable.push(yield value)) {
@@ -5469,7 +5657,7 @@ var require_stream_readable = __commonJS({
5469
5657
  };
5470
5658
  var Stream = require_stream();
5471
5659
  var Buffer2 = require("buffer").Buffer;
5472
- var OurUint8Array = global.Uint8Array || function() {
5660
+ var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
5473
5661
  };
5474
5662
  function _uint8ArrayToBuffer(chunk) {
5475
5663
  return Buffer2.from(chunk);
@@ -5983,11 +6171,10 @@ var require_stream_readable = __commonJS({
5983
6171
  state.pipes = null;
5984
6172
  state.pipesCount = 0;
5985
6173
  state.flowing = false;
5986
- for (var i = 0; i < len; i++) {
6174
+ for (var i = 0; i < len; i++)
5987
6175
  dests[i].emit("unpipe", this, {
5988
6176
  hasUnpiped: false
5989
6177
  });
5990
- }
5991
6178
  return this;
5992
6179
  }
5993
6180
  var index = indexOf(state.pipes, dest);
@@ -6090,9 +6277,8 @@ var require_stream_readable = __commonJS({
6090
6277
  function flow(stream) {
6091
6278
  var state = stream._readableState;
6092
6279
  debug("flow", state.flowing);
6093
- while (state.flowing && stream.read() !== null) {
6280
+ while (state.flowing && stream.read() !== null)
6094
6281
  ;
6095
- }
6096
6282
  }
6097
6283
  Readable.prototype.wrap = function(stream) {
6098
6284
  var _this = this;
@@ -6486,9 +6672,9 @@ var require_readable = __commonJS({
6486
6672
  }
6487
6673
  });
6488
6674
 
6489
- // ../../../node_modules/ora/node_modules/bl/BufferList.js
6675
+ // ../../../node_modules/stdin-discarder/node_modules/bl/BufferList.js
6490
6676
  var require_BufferList = __commonJS({
6491
- "../../../node_modules/ora/node_modules/bl/BufferList.js"(exports, module2) {
6677
+ "../../../node_modules/stdin-discarder/node_modules/bl/BufferList.js"(exports, module2) {
6492
6678
  "use strict";
6493
6679
  var { Buffer: Buffer2 } = require("buffer");
6494
6680
  var symbol = Symbol.for("BufferList");
@@ -6790,9 +6976,9 @@ var require_BufferList = __commonJS({
6790
6976
  }
6791
6977
  });
6792
6978
 
6793
- // ../../../node_modules/ora/node_modules/bl/bl.js
6979
+ // ../../../node_modules/stdin-discarder/node_modules/bl/bl.js
6794
6980
  var require_bl = __commonJS({
6795
- "../../../node_modules/ora/node_modules/bl/bl.js"(exports, module2) {
6981
+ "../../../node_modules/stdin-discarder/node_modules/bl/bl.js"(exports, module2) {
6796
6982
  "use strict";
6797
6983
  var DuplexStream = require_readable().Duplex;
6798
6984
  var inherits = require_inherits();
@@ -6935,7 +7121,7 @@ var require_polyfills = __commonJS({
6935
7121
  var start = Date.now();
6936
7122
  var backoff = 0;
6937
7123
  fs$rename(from, to, function CB(er) {
6938
- if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
7124
+ if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
6939
7125
  setTimeout(function() {
6940
7126
  fs2.stat(to, function(stater, st) {
6941
7127
  if (stater && stater.code === "ENOENT")
@@ -7810,14 +7996,16 @@ var require_CachedInputFileSystem = __commonJS({
7810
7996
  } catch (err) {
7811
7997
  this._storeResult(path, err, void 0);
7812
7998
  this._enterSyncModeWhenIdle();
7813
- if (callbacks)
7999
+ if (callbacks) {
7814
8000
  runCallbacks(callbacks, err, void 0);
8001
+ }
7815
8002
  throw err;
7816
8003
  }
7817
8004
  this._storeResult(path, void 0, result);
7818
8005
  this._enterSyncModeWhenIdle();
7819
- if (callbacks)
8006
+ if (callbacks) {
7820
8007
  runCallbacks(callbacks, void 0, result);
8008
+ }
7821
8009
  return result;
7822
8010
  }
7823
8011
  purge(what) {
@@ -9175,7 +9363,7 @@ var require_lib = __commonJS({
9175
9363
  var require_createInnerContext = __commonJS({
9176
9364
  "../../../node_modules/enhanced-resolve/lib/createInnerContext.js"(exports, module2) {
9177
9365
  "use strict";
9178
- module2.exports = function createInnerContext(options, message, messageOptional) {
9366
+ module2.exports = function createInnerContext(options, message) {
9179
9367
  let messageReported = false;
9180
9368
  let innerLog = void 0;
9181
9369
  if (options.log) {
@@ -9191,7 +9379,7 @@ var require_createInnerContext = __commonJS({
9191
9379
  innerLog = options.log;
9192
9380
  }
9193
9381
  }
9194
- const childContext = {
9382
+ return {
9195
9383
  log: innerLog,
9196
9384
  yield: options.yield,
9197
9385
  fileDependencies: options.fileDependencies,
@@ -9199,7 +9387,6 @@ var require_createInnerContext = __commonJS({
9199
9387
  missingDependencies: options.missingDependencies,
9200
9388
  stack: options.stack
9201
9389
  };
9202
- return childContext;
9203
9390
  };
9204
9391
  }
9205
9392
  });
@@ -9421,7 +9608,7 @@ var require_Resolver = __commonJS({
9421
9608
  PathType
9422
9609
  } = require_path();
9423
9610
  function toCamelCase(str) {
9424
- return str.replace(/-([a-z])/g, (str2) => str2.substr(1).toUpperCase());
9611
+ return str.replace(/-([a-z])/g, (str2) => str2.slice(1).toUpperCase());
9425
9612
  }
9426
9613
  var Resolver = class {
9427
9614
  static createStackEntry(hook, request) {
@@ -9443,18 +9630,19 @@ var require_Resolver = __commonJS({
9443
9630
  }
9444
9631
  name = toCamelCase(name);
9445
9632
  if (/^before/.test(name)) {
9446
- return this.ensureHook(name[6].toLowerCase() + name.substr(7)).withOptions({
9633
+ return this.ensureHook(name[6].toLowerCase() + name.slice(7)).withOptions({
9447
9634
  stage: -10
9448
9635
  });
9449
9636
  }
9450
9637
  if (/^after/.test(name)) {
9451
- return this.ensureHook(name[5].toLowerCase() + name.substr(6)).withOptions({
9638
+ return this.ensureHook(name[5].toLowerCase() + name.slice(6)).withOptions({
9452
9639
  stage: 10
9453
9640
  });
9454
9641
  }
9455
9642
  const hook = this.hooks[name];
9456
9643
  if (!hook) {
9457
- return this.hooks[name] = new AsyncSeriesBailHook(["request", "resolveContext"], name);
9644
+ this.hooks[name] = new AsyncSeriesBailHook(["request", "resolveContext"], name);
9645
+ return this.hooks[name];
9458
9646
  }
9459
9647
  return hook;
9460
9648
  }
@@ -9464,12 +9652,12 @@ var require_Resolver = __commonJS({
9464
9652
  }
9465
9653
  name = toCamelCase(name);
9466
9654
  if (/^before/.test(name)) {
9467
- return this.getHook(name[6].toLowerCase() + name.substr(7)).withOptions({
9655
+ return this.getHook(name[6].toLowerCase() + name.slice(7)).withOptions({
9468
9656
  stage: -10
9469
9657
  });
9470
9658
  }
9471
9659
  if (/^after/.test(name)) {
9472
- return this.getHook(name[5].toLowerCase() + name.substr(6)).withOptions({
9660
+ return this.getHook(name[5].toLowerCase() + name.slice(6)).withOptions({
9473
9661
  stage: 10
9474
9662
  });
9475
9663
  }
@@ -9521,8 +9709,9 @@ var require_Resolver = __commonJS({
9521
9709
  yieldCalled = true;
9522
9710
  };
9523
9711
  finishYield = (result) => {
9524
- if (result)
9712
+ if (result) {
9525
9713
  yield_(result);
9714
+ }
9526
9715
  callback(null);
9527
9716
  };
9528
9717
  }
@@ -9552,8 +9741,9 @@ var require_Resolver = __commonJS({
9552
9741
  }, (err, result) => {
9553
9742
  if (err)
9554
9743
  return callback(err);
9555
- if (yieldCalled || result && yield_)
9744
+ if (yieldCalled || result && yield_) {
9556
9745
  return finishYield(result);
9746
+ }
9557
9747
  if (result)
9558
9748
  return finishResolved(result);
9559
9749
  return finishWithoutResolve(log);
@@ -9569,8 +9759,9 @@ var require_Resolver = __commonJS({
9569
9759
  }, (err, result) => {
9570
9760
  if (err)
9571
9761
  return callback(err);
9572
- if (yieldCalled || result && yield_)
9762
+ if (yieldCalled || result && yield_) {
9573
9763
  return finishYield(result);
9764
+ }
9574
9765
  if (result)
9575
9766
  return finishResolved(result);
9576
9767
  const log = [];
@@ -9581,8 +9772,9 @@ var require_Resolver = __commonJS({
9581
9772
  }, (err2, result2) => {
9582
9773
  if (err2)
9583
9774
  return callback(err2);
9584
- if (yieldCalled || result2 && yield_)
9775
+ if (yieldCalled || result2 && yield_) {
9585
9776
  return finishYield(result2);
9777
+ }
9586
9778
  return finishWithoutResolve(log);
9587
9779
  });
9588
9780
  });
@@ -9644,7 +9836,7 @@ var require_Resolver = __commonJS({
9644
9836
  part.module = this.isModule(part.request);
9645
9837
  part.directory = this.isDirectory(part.request);
9646
9838
  if (part.directory) {
9647
- part.request = part.request.substr(0, part.request.length - 1);
9839
+ part.request = part.request.slice(0, -1);
9648
9840
  }
9649
9841
  }
9650
9842
  return part;
@@ -9768,7 +9960,7 @@ var require_forEachBail = __commonJS({
9768
9960
  while (next())
9769
9961
  ;
9770
9962
  loop = true;
9771
- });
9963
+ }, i);
9772
9964
  if (!loop)
9773
9965
  loop = false;
9774
9966
  return loop;
@@ -9889,7 +10081,7 @@ var require_DescriptionFileUtils = __commonJS({
9889
10081
  const p = i < 0 ? j : j < 0 ? i : i < j ? j : i;
9890
10082
  if (p < 0)
9891
10083
  return null;
9892
- return directory.substr(0, p || 1);
10084
+ return directory.slice(0, p || 1);
9893
10085
  }
9894
10086
  exports.loadDescriptionFile = loadDescriptionFile;
9895
10087
  exports.getField = getField;
@@ -10015,7 +10207,7 @@ var require_AliasPlugin = __commonJS({
10015
10207
  forEachBail(this.options, (item, callback2) => {
10016
10208
  let shouldStop = false;
10017
10209
  if (innerRequest === item.name || !item.onlyModule && (request.request ? innerRequest.startsWith(`${item.name}/`) : isSubPath(innerRequest, item.name))) {
10018
- const remainingRequest = innerRequest.substr(item.name.length);
10210
+ const remainingRequest = innerRequest.slice(item.name.length);
10019
10211
  const resolveWithAlias = (alias, callback3) => {
10020
10212
  if (alias === false) {
10021
10213
  const ignoreObj = {
@@ -10161,7 +10353,7 @@ var require_DescriptionFilePlugin = __commonJS({
10161
10353
  resolveContext.log(`No description file found in ${directory} or above`);
10162
10354
  return callback();
10163
10355
  }
10164
- const relativePath = "." + path.substr(result.directory.length).replace(/\\/g, "/");
10356
+ const relativePath = "." + path.slice(result.directory.length).replace(/\\/g, "/");
10165
10357
  const obj = {
10166
10358
  ...request,
10167
10359
  descriptionFilePath: result.path,
@@ -10231,19 +10423,20 @@ var require_entrypoints = __commonJS({
10231
10423
  var slashCode = "/".charCodeAt(0);
10232
10424
  var dotCode = ".".charCodeAt(0);
10233
10425
  var hashCode = "#".charCodeAt(0);
10426
+ var patternRegEx = /\*/g;
10234
10427
  module2.exports.processExportsField = function processExportsField(exportsField) {
10235
- return createFieldProcessor(buildExportsFieldPathTree(exportsField), assertExportsFieldRequest, assertExportTarget);
10428
+ return createFieldProcessor(buildExportsField(exportsField), (request) => request.length === 0 ? "." : "./" + request, assertExportsFieldRequest, assertExportTarget);
10236
10429
  };
10237
10430
  module2.exports.processImportsField = function processImportsField(importsField) {
10238
- return createFieldProcessor(buildImportsFieldPathTree(importsField), assertImportsFieldRequest, assertImportTarget);
10431
+ return createFieldProcessor(buildImportsField(importsField), (request) => "#" + request, assertImportsFieldRequest, assertImportTarget);
10239
10432
  };
10240
- function createFieldProcessor(treeRoot, assertRequest, assertTarget) {
10433
+ function createFieldProcessor(field, normalizeRequest, assertRequest, assertTarget) {
10241
10434
  return function fieldProcessor(request, conditionNames) {
10242
10435
  request = assertRequest(request);
10243
- const match = findMatch(request, treeRoot);
10436
+ const match = findMatch(normalizeRequest(request), field);
10244
10437
  if (match === null)
10245
10438
  return [];
10246
- const [mapping, remainRequestIndex] = match;
10439
+ const [mapping, remainingRequest, isSubpathMapping, isPattern] = match;
10247
10440
  let direct = null;
10248
10441
  if (isConditionalMapping(mapping)) {
10249
10442
  direct = conditionalMapping(mapping, conditionNames);
@@ -10252,8 +10445,7 @@ var require_entrypoints = __commonJS({
10252
10445
  } else {
10253
10446
  direct = mapping;
10254
10447
  }
10255
- const remainingRequest = remainRequestIndex === request.length + 1 ? void 0 : remainRequestIndex < 0 ? request.slice(-remainRequestIndex - 1) : request.slice(remainRequestIndex);
10256
- return directMapping(remainingRequest, remainRequestIndex < 0, direct, conditionNames, assertTarget);
10448
+ return directMapping(remainingRequest, isPattern, isSubpathMapping, direct, conditionNames, assertTarget);
10257
10449
  };
10258
10450
  }
10259
10451
  function assertExportsFieldRequest(request) {
@@ -10300,108 +10492,101 @@ var require_entrypoints = __commonJS({
10300
10492
  throw new Error(expectFolder ? `Expecting folder to folder mapping. ${JSON.stringify(imp)} should end with "/"` : `Expecting file to file mapping. ${JSON.stringify(imp)} should not end with "/"`);
10301
10493
  }
10302
10494
  }
10303
- function findMatch(request, treeRoot) {
10304
- if (request.length === 0) {
10305
- const value2 = treeRoot.files.get("");
10306
- return value2 ? [value2, 1] : null;
10307
- }
10308
- if (treeRoot.children === null && treeRoot.folder === null && treeRoot.wildcards === null) {
10309
- const value2 = treeRoot.files.get(request);
10310
- return value2 ? [value2, request.length + 1] : null;
10495
+ function patternKeyCompare(a, b) {
10496
+ const aPatternIndex = a.indexOf("*");
10497
+ const bPatternIndex = b.indexOf("*");
10498
+ const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;
10499
+ const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;
10500
+ if (baseLenA > baseLenB)
10501
+ return -1;
10502
+ if (baseLenB > baseLenA)
10503
+ return 1;
10504
+ if (aPatternIndex === -1)
10505
+ return 1;
10506
+ if (bPatternIndex === -1)
10507
+ return -1;
10508
+ if (a.length > b.length)
10509
+ return -1;
10510
+ if (b.length > a.length)
10511
+ return 1;
10512
+ return 0;
10513
+ }
10514
+ function findMatch(request, field) {
10515
+ if (Object.prototype.hasOwnProperty.call(field, request) && !request.includes("*") && !request.endsWith("/")) {
10516
+ const target2 = field[request];
10517
+ return [target2, "", false, false];
10311
10518
  }
10312
- let node = treeRoot;
10313
- let lastNonSlashIndex = 0;
10314
- let slashIndex = request.indexOf("/", 0);
10315
- let lastFolderMatch = null;
10316
- const applyFolderMapping = () => {
10317
- const folderMapping = node.folder;
10318
- if (folderMapping) {
10319
- if (lastFolderMatch) {
10320
- lastFolderMatch[0] = folderMapping;
10321
- lastFolderMatch[1] = -lastNonSlashIndex - 1;
10322
- } else {
10323
- lastFolderMatch = [folderMapping, -lastNonSlashIndex - 1];
10324
- }
10325
- }
10326
- };
10327
- const applyWildcardMappings = (wildcardMappings, remainingRequest2) => {
10328
- if (wildcardMappings) {
10329
- for (const [key, target] of wildcardMappings) {
10330
- if (remainingRequest2.startsWith(key)) {
10331
- if (!lastFolderMatch) {
10332
- lastFolderMatch = [target, lastNonSlashIndex + key.length];
10333
- } else if (lastFolderMatch[1] < lastNonSlashIndex + key.length) {
10334
- lastFolderMatch[0] = target;
10335
- lastFolderMatch[1] = lastNonSlashIndex + key.length;
10336
- }
10337
- }
10519
+ let bestMatch = "";
10520
+ let bestMatchSubpath;
10521
+ const keys = Object.getOwnPropertyNames(field);
10522
+ for (let i = 0; i < keys.length; i++) {
10523
+ const key = keys[i];
10524
+ const patternIndex = key.indexOf("*");
10525
+ if (patternIndex !== -1 && request.startsWith(key.slice(0, patternIndex))) {
10526
+ const patternTrailer = key.slice(patternIndex + 1);
10527
+ if (request.length >= key.length && request.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf("*") === patternIndex) {
10528
+ bestMatch = key;
10529
+ bestMatchSubpath = request.slice(patternIndex, request.length - patternTrailer.length);
10338
10530
  }
10531
+ } else if (key[key.length - 1] === "/" && request.startsWith(key) && patternKeyCompare(bestMatch, key) === 1) {
10532
+ bestMatch = key;
10533
+ bestMatchSubpath = request.slice(key.length);
10339
10534
  }
10340
- };
10341
- while (slashIndex !== -1) {
10342
- applyFolderMapping();
10343
- const wildcardMappings = node.wildcards;
10344
- if (!wildcardMappings && node.children === null)
10345
- return lastFolderMatch;
10346
- const folder = request.slice(lastNonSlashIndex, slashIndex);
10347
- applyWildcardMappings(wildcardMappings, folder);
10348
- if (node.children === null)
10349
- return lastFolderMatch;
10350
- const newNode = node.children.get(folder);
10351
- if (!newNode) {
10352
- return lastFolderMatch;
10353
- }
10354
- node = newNode;
10355
- lastNonSlashIndex = slashIndex + 1;
10356
- slashIndex = request.indexOf("/", lastNonSlashIndex);
10357
- }
10358
- const remainingRequest = lastNonSlashIndex > 0 ? request.slice(lastNonSlashIndex) : request;
10359
- const value = node.files.get(remainingRequest);
10360
- if (value) {
10361
- return [value, request.length + 1];
10362
10535
  }
10363
- applyFolderMapping();
10364
- applyWildcardMappings(node.wildcards, remainingRequest);
10365
- return lastFolderMatch;
10536
+ if (bestMatch === "")
10537
+ return null;
10538
+ const target = field[bestMatch];
10539
+ const isSubpathMapping = bestMatch.endsWith("/");
10540
+ const isPattern = bestMatch.includes("*");
10541
+ return [
10542
+ target,
10543
+ bestMatchSubpath,
10544
+ isSubpathMapping,
10545
+ isPattern
10546
+ ];
10366
10547
  }
10367
10548
  function isConditionalMapping(mapping) {
10368
10549
  return mapping !== null && typeof mapping === "object" && !Array.isArray(mapping);
10369
10550
  }
10370
- function directMapping(remainingRequest, subpathMapping, mappingTarget, conditionNames, assert) {
10551
+ function directMapping(remainingRequest, isPattern, isSubpathMapping, mappingTarget, conditionNames, assert) {
10371
10552
  if (mappingTarget === null)
10372
10553
  return [];
10373
10554
  if (typeof mappingTarget === "string") {
10374
10555
  return [
10375
- targetMapping(remainingRequest, subpathMapping, mappingTarget, assert)
10556
+ targetMapping(remainingRequest, isPattern, isSubpathMapping, mappingTarget, assert)
10376
10557
  ];
10377
10558
  }
10378
10559
  const targets = [];
10379
10560
  for (const exp of mappingTarget) {
10380
10561
  if (typeof exp === "string") {
10381
- targets.push(targetMapping(remainingRequest, subpathMapping, exp, assert));
10562
+ targets.push(targetMapping(remainingRequest, isPattern, isSubpathMapping, exp, assert));
10382
10563
  continue;
10383
10564
  }
10384
10565
  const mapping = conditionalMapping(exp, conditionNames);
10385
10566
  if (!mapping)
10386
10567
  continue;
10387
- const innerExports = directMapping(remainingRequest, subpathMapping, mapping, conditionNames, assert);
10568
+ const innerExports = directMapping(remainingRequest, isPattern, isSubpathMapping, mapping, conditionNames, assert);
10388
10569
  for (const innerExport of innerExports) {
10389
10570
  targets.push(innerExport);
10390
10571
  }
10391
10572
  }
10392
10573
  return targets;
10393
10574
  }
10394
- function targetMapping(remainingRequest, subpathMapping, mappingTarget, assert) {
10575
+ function targetMapping(remainingRequest, isPattern, isSubpathMapping, mappingTarget, assert) {
10395
10576
  if (remainingRequest === void 0) {
10396
10577
  assert(mappingTarget, false);
10397
10578
  return mappingTarget;
10398
10579
  }
10399
- if (subpathMapping) {
10580
+ if (isSubpathMapping) {
10400
10581
  assert(mappingTarget, true);
10401
10582
  return mappingTarget + remainingRequest;
10402
10583
  }
10403
10584
  assert(mappingTarget, false);
10404
- return mappingTarget.replace(/\*/g, remainingRequest.replace(/\$/g, "$$"));
10585
+ let result = mappingTarget;
10586
+ if (isPattern) {
10587
+ result = result.replace(patternRegEx, remainingRequest.replace(/\$/g, "$$"));
10588
+ }
10589
+ return result;
10405
10590
  }
10406
10591
  function conditionalMapping(conditionalMapping_, conditionNames) {
10407
10592
  let lookup = [[conditionalMapping_, Object.keys(conditionalMapping_), 0]];
@@ -10440,61 +10625,9 @@ var require_entrypoints = __commonJS({
10440
10625
  }
10441
10626
  return null;
10442
10627
  }
10443
- function createNode() {
10444
- return {
10445
- children: null,
10446
- folder: null,
10447
- wildcards: null,
10448
- files: new Map()
10449
- };
10450
- }
10451
- function walkPath(root, path, target) {
10452
- if (path.length === 0) {
10453
- root.folder = target;
10454
- return;
10455
- }
10456
- let node = root;
10457
- let lastNonSlashIndex = 0;
10458
- let slashIndex = path.indexOf("/", 0);
10459
- while (slashIndex !== -1) {
10460
- const folder = path.slice(lastNonSlashIndex, slashIndex);
10461
- let newNode;
10462
- if (node.children === null) {
10463
- newNode = createNode();
10464
- node.children = new Map();
10465
- node.children.set(folder, newNode);
10466
- } else {
10467
- newNode = node.children.get(folder);
10468
- if (!newNode) {
10469
- newNode = createNode();
10470
- node.children.set(folder, newNode);
10471
- }
10472
- }
10473
- node = newNode;
10474
- lastNonSlashIndex = slashIndex + 1;
10475
- slashIndex = path.indexOf("/", lastNonSlashIndex);
10476
- }
10477
- if (lastNonSlashIndex >= path.length) {
10478
- node.folder = target;
10479
- } else {
10480
- const file = lastNonSlashIndex > 0 ? path.slice(lastNonSlashIndex) : path;
10481
- if (file.endsWith("*")) {
10482
- if (node.wildcards === null)
10483
- node.wildcards = new Map();
10484
- node.wildcards.set(file.slice(0, -1), target);
10485
- } else {
10486
- node.files.set(file, target);
10487
- }
10488
- }
10489
- }
10490
- function buildExportsFieldPathTree(field) {
10491
- const root = createNode();
10492
- if (typeof field === "string") {
10493
- root.files.set("", field);
10494
- return root;
10495
- } else if (Array.isArray(field)) {
10496
- root.files.set("", field.slice());
10497
- return root;
10628
+ function buildExportsField(field) {
10629
+ if (typeof field === "string" || Array.isArray(field)) {
10630
+ return { ".": field };
10498
10631
  }
10499
10632
  const keys = Object.keys(field);
10500
10633
  for (let i = 0; i < keys.length; i++) {
@@ -10508,24 +10641,20 @@ var require_entrypoints = __commonJS({
10508
10641
  }
10509
10642
  i++;
10510
10643
  }
10511
- root.files.set("", field);
10512
- return root;
10644
+ return { ".": field };
10513
10645
  }
10514
10646
  throw new Error(`Exports field key should be relative path and start with "." (key: ${JSON.stringify(key)})`);
10515
10647
  }
10516
10648
  if (key.length === 1) {
10517
- root.files.set("", field[key]);
10518
10649
  continue;
10519
10650
  }
10520
10651
  if (key.charCodeAt(1) !== slashCode) {
10521
10652
  throw new Error(`Exports field key should be relative path and start with "./" (key: ${JSON.stringify(key)})`);
10522
10653
  }
10523
- walkPath(root, key.slice(2), field[key]);
10524
10654
  }
10525
- return root;
10655
+ return field;
10526
10656
  }
10527
- function buildImportsFieldPathTree(field) {
10528
- const root = createNode();
10657
+ function buildImportsField(field) {
10529
10658
  const keys = Object.keys(field);
10530
10659
  for (let i = 0; i < keys.length; i++) {
10531
10660
  const key = keys[i];
@@ -10538,9 +10667,8 @@ var require_entrypoints = __commonJS({
10538
10667
  if (key.charCodeAt(1) === slashCode) {
10539
10668
  throw new Error(`Imports field key should not start with "#/" (key: ${JSON.stringify(key)})`);
10540
10669
  }
10541
- walkPath(root, key.slice(1), field[key]);
10542
10670
  }
10543
- return root;
10671
+ return field;
10544
10672
  }
10545
10673
  }
10546
10674
  });
@@ -10637,12 +10765,26 @@ var require_ExtensionAliasPlugin = __commonJS({
10637
10765
  const requestPath = request.request;
10638
10766
  if (!requestPath || !requestPath.endsWith(extension))
10639
10767
  return callback();
10640
- const resolve = (alias2, callback2) => {
10641
- resolver.doResolve(target, {
10768
+ const isAliasString = typeof alias === "string";
10769
+ const resolve = (alias2, callback2, index) => {
10770
+ const newRequest = `${requestPath.slice(0, -extension.length)}${alias2}`;
10771
+ return resolver.doResolve(target, {
10642
10772
  ...request,
10643
- request: `${requestPath.slice(0, -extension.length)}${alias2}`,
10773
+ request: newRequest,
10644
10774
  fullySpecified: true
10645
- }, `aliased from extension alias with mapping '${extension}' to '${alias2}'`, resolveContext, callback2);
10775
+ }, `aliased from extension alias with mapping '${extension}' to '${alias2}'`, resolveContext, (err, result) => {
10776
+ if (!isAliasString && index) {
10777
+ if (index !== this.options.alias.length) {
10778
+ if (resolveContext.log) {
10779
+ resolveContext.log(`Failed to alias from extension alias with mapping '${extension}' to '${alias2}' for '${newRequest}': ${err}`);
10780
+ }
10781
+ return callback2(null, result);
10782
+ }
10783
+ return callback2(err, result);
10784
+ } else {
10785
+ callback2(err, result);
10786
+ }
10787
+ });
10646
10788
  };
10647
10789
  const stoppingCallback = (err, result) => {
10648
10790
  if (err)
@@ -10651,7 +10793,7 @@ var require_ExtensionAliasPlugin = __commonJS({
10651
10793
  return callback(null, result);
10652
10794
  return callback(null, null);
10653
10795
  };
10654
- if (typeof alias === "string") {
10796
+ if (isAliasString) {
10655
10797
  resolve(alias, stoppingCallback);
10656
10798
  } else if (alias.length > 1) {
10657
10799
  forEachBail(alias, resolve, stoppingCallback);
@@ -10815,7 +10957,9 @@ var require_JoinRequestPartPlugin = __commonJS({
10815
10957
  if (i >= 0 && req.charCodeAt(2) === namespaceStartCharCode) {
10816
10958
  i = req.indexOf("/", i + 1);
10817
10959
  }
10818
- let moduleName, remainingRequest, fullySpecified;
10960
+ let moduleName;
10961
+ let remainingRequest;
10962
+ let fullySpecified;
10819
10963
  if (i < 0) {
10820
10964
  moduleName = req;
10821
10965
  remainingRequest = ".";
@@ -10851,10 +10995,12 @@ var require_JoinRequestPlugin = __commonJS({
10851
10995
  apply(resolver) {
10852
10996
  const target = resolver.ensureHook(this.target);
10853
10997
  resolver.getHook(this.source).tapAsync("JoinRequestPlugin", (request, resolveContext, callback) => {
10998
+ const requestPath = request.path;
10999
+ const requestRequest = request.request;
10854
11000
  const obj = {
10855
11001
  ...request,
10856
- path: resolver.join(request.path, request.request),
10857
- relativePath: request.relativePath && resolver.join(request.relativePath, request.request),
11002
+ path: resolver.join(requestPath, requestRequest),
11003
+ relativePath: request.relativePath && resolver.join(request.relativePath, requestRequest),
10858
11004
  request: void 0
10859
11005
  };
10860
11006
  resolver.doResolve(target, obj, null, resolveContext, callback);
@@ -10914,12 +11060,12 @@ var require_getPaths = __commonJS({
10914
11060
  const paths = [path];
10915
11061
  const segments = [parts[parts.length - 1]];
10916
11062
  let part = parts[parts.length - 1];
10917
- path = path.substr(0, path.length - part.length - 1);
11063
+ path = path.substring(0, path.length - part.length - 1);
10918
11064
  for (let i = parts.length - 2; i > 2; i -= 2) {
10919
11065
  paths.push(path);
10920
11066
  part = parts[i];
10921
- path = path.substr(0, path.length - part.length) || "/";
10922
- segments.push(part.substr(0, part.length - 1));
11067
+ path = path.substring(0, path.length - part.length) || "/";
11068
+ segments.push(part.slice(0, -1));
10923
11069
  }
10924
11070
  part = parts[1];
10925
11071
  segments.push(part);
@@ -10934,7 +11080,7 @@ var require_getPaths = __commonJS({
10934
11080
  const p = i < 0 ? j : j < 0 ? i : i < j ? j : i;
10935
11081
  if (p < 0)
10936
11082
  return null;
10937
- const s = path.substr(p + 1);
11083
+ const s = path.slice(p + 1);
10938
11084
  return s;
10939
11085
  };
10940
11086
  }
@@ -11441,8 +11587,9 @@ var require_UnsafeCachePlugin = __commonJS({
11441
11587
  if (isYield) {
11442
11588
  if (result)
11443
11589
  yieldResult.push(result);
11444
- for (const result2 of yieldResult)
11590
+ for (const result2 of yieldResult) {
11445
11591
  yieldFn(result2);
11592
+ }
11446
11593
  this.cache[cacheId] = yieldResult;
11447
11594
  return callback(null, null);
11448
11595
  }
@@ -11527,7 +11674,7 @@ var require_ResolverFactory = __commonJS({
11527
11674
  const obj = { name: key, onlyModule: false, alias: alias[key] };
11528
11675
  if (/\$$/.test(key)) {
11529
11676
  obj.onlyModule = true;
11530
- obj.name = key.substr(0, key.length - 1);
11677
+ obj.name = key.slice(0, -1);
11531
11678
  }
11532
11679
  return obj;
11533
11680
  }) : alias || [];
@@ -11761,14 +11908,15 @@ var require_ResolverFactory = __commonJS({
11761
11908
  plugins.push(new SymlinkPlugin("existing-file", "existing-file"));
11762
11909
  plugins.push(new NextPlugin("existing-file", "resolved"));
11763
11910
  }
11911
+ const resolved = resolver.hooks.resolved;
11764
11912
  if (restrictions.size > 0) {
11765
- plugins.push(new RestrictionsPlugin(resolver.hooks.resolved, restrictions));
11913
+ plugins.push(new RestrictionsPlugin(resolved, restrictions));
11766
11914
  }
11767
- plugins.push(new ResultPlugin(resolver.hooks.resolved));
11915
+ plugins.push(new ResultPlugin(resolved));
11768
11916
  for (const plugin of plugins) {
11769
11917
  if (typeof plugin === "function") {
11770
11918
  plugin.call(resolver, resolver);
11771
- } else {
11919
+ } else if (plugin) {
11772
11920
  plugin.apply(resolver);
11773
11921
  }
11774
11922
  }
@@ -11807,8 +11955,9 @@ var require_CloneBasenamePlugin = __commonJS({
11807
11955
  apply(resolver) {
11808
11956
  const target = resolver.ensureHook(this.target);
11809
11957
  resolver.getHook(this.source).tapAsync("CloneBasenamePlugin", (request, resolveContext, callback) => {
11810
- const filename = basename(request.path);
11811
- const filePath = resolver.join(request.path, filename);
11958
+ const requestPath = request.path;
11959
+ const filename = basename(requestPath);
11960
+ const filePath = resolver.join(requestPath, filename);
11812
11961
  const obj = {
11813
11962
  ...request,
11814
11963
  path: filePath,
@@ -11875,7 +12024,7 @@ var require_lib2 = __commonJS({
11875
12024
  extensions: [".js", ".json", ".node"],
11876
12025
  fileSystem: nodeFileSystem2
11877
12026
  });
11878
- function resolve(context, path, request, resolveContext, callback) {
12027
+ var resolve = (context, path, request, resolveContext, callback) => {
11879
12028
  if (typeof context === "string") {
11880
12029
  callback = resolveContext;
11881
12030
  resolveContext = request;
@@ -11887,27 +12036,26 @@ var require_lib2 = __commonJS({
11887
12036
  callback = resolveContext;
11888
12037
  }
11889
12038
  asyncResolver.resolve(context, path, request, resolveContext, callback);
11890
- }
12039
+ };
11891
12040
  var syncResolver = ResolverFactory2.createResolver({
11892
12041
  conditionNames: ["node"],
11893
12042
  extensions: [".js", ".json", ".node"],
11894
12043
  useSyncFileSystemCalls: true,
11895
12044
  fileSystem: nodeFileSystem2
11896
12045
  });
11897
- function resolveSync(context, path, request) {
12046
+ var resolveSync = (context, path, request) => {
11898
12047
  if (typeof context === "string") {
11899
12048
  request = path;
11900
12049
  path = context;
11901
12050
  context = nodeContext2;
11902
12051
  }
11903
12052
  return syncResolver.resolveSync(context, path, request);
11904
- }
12053
+ };
11905
12054
  function create(options) {
11906
- options = {
12055
+ const resolver = ResolverFactory2.createResolver({
11907
12056
  fileSystem: nodeFileSystem2,
11908
12057
  ...options
11909
- };
11910
- const resolver = ResolverFactory2.createResolver(options);
12058
+ });
11911
12059
  return function(context, path, request, resolveContext, callback) {
11912
12060
  if (typeof context === "string") {
11913
12061
  callback = resolveContext;
@@ -11923,12 +12071,11 @@ var require_lib2 = __commonJS({
11923
12071
  };
11924
12072
  }
11925
12073
  function createSync(options) {
11926
- options = {
12074
+ const resolver = ResolverFactory2.createResolver({
11927
12075
  useSyncFileSystemCalls: true,
11928
12076
  fileSystem: nodeFileSystem2,
11929
12077
  ...options
11930
- };
11931
- const resolver = ResolverFactory2.createResolver(options);
12078
+ });
11932
12079
  return function(context, path, request) {
11933
12080
  if (typeof context === "string") {
11934
12081
  request = path;
@@ -21160,7 +21307,7 @@ var require_innerFrom = __commonJS({
21160
21307
  exports.fromIterable = fromIterable;
21161
21308
  function fromAsyncIterable(asyncIterable) {
21162
21309
  return new Observable_1.Observable(function(subscriber) {
21163
- process8(asyncIterable, subscriber).catch(function(err) {
21310
+ process7(asyncIterable, subscriber).catch(function(err) {
21164
21311
  return subscriber.error(err);
21165
21312
  });
21166
21313
  });
@@ -21170,7 +21317,7 @@ var require_innerFrom = __commonJS({
21170
21317
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
21171
21318
  }
21172
21319
  exports.fromReadableStreamLike = fromReadableStreamLike;
21173
- function process8(asyncIterable, subscriber) {
21320
+ function process7(asyncIterable, subscriber) {
21174
21321
  var asyncIterable_1, asyncIterable_1_1;
21175
21322
  var e_2, _a;
21176
21323
  return __awaiter(this, void 0, void 0, function() {
@@ -28498,9 +28645,9 @@ var require_choices = __commonJS({
28498
28645
  }
28499
28646
  });
28500
28647
 
28501
- // ../../../node_modules/cli-width/index.js
28648
+ // ../../../node_modules/inquirer/node_modules/cli-width/index.js
28502
28649
  var require_cli_width = __commonJS({
28503
- "../../../node_modules/cli-width/index.js"(exports, module2) {
28650
+ "../../../node_modules/inquirer/node_modules/cli-width/index.js"(exports, module2) {
28504
28651
  "use strict";
28505
28652
  exports = module2.exports = cliWidth;
28506
28653
  function normalizeOpts(options) {
@@ -28687,9 +28834,9 @@ var require_screen_manager = __commonJS({
28687
28834
  }
28688
28835
  breakLines(lines, width) {
28689
28836
  width = width || this.normalizedCliWidth();
28690
- var regex = new RegExp("(?:(?:\\033[[0-9;]*m)*.?){1," + width + "}", "g");
28837
+ var regex2 = new RegExp("(?:(?:\\033[[0-9;]*m)*.?){1," + width + "}", "g");
28691
28838
  return lines.map((line) => {
28692
- var chunk = line.match(regex);
28839
+ var chunk = line.match(regex2);
28693
28840
  chunk.pop();
28694
28841
  return chunk || "";
28695
28842
  });
@@ -40937,9 +41084,9 @@ var require_balanced_match = __commonJS({
40937
41084
  }
40938
41085
  });
40939
41086
 
40940
- // ../../../node_modules/brace-expansion/index.js
41087
+ // ../../../node_modules/minimatch/node_modules/brace-expansion/index.js
40941
41088
  var require_brace_expansion = __commonJS({
40942
- "../../../node_modules/brace-expansion/index.js"(exports, module2) {
41089
+ "../../../node_modules/minimatch/node_modules/brace-expansion/index.js"(exports, module2) {
40943
41090
  var concatMap = require_concat_map();
40944
41091
  var balanced = require_balanced_match();
40945
41092
  module2.exports = expandTop;
@@ -57586,21 +57733,52 @@ var require_deep_extend = __commonJS({
57586
57733
  // ../../../node_modules/minimist/index.js
57587
57734
  var require_minimist = __commonJS({
57588
57735
  "../../../node_modules/minimist/index.js"(exports, module2) {
57736
+ "use strict";
57737
+ function hasKey(obj, keys) {
57738
+ var o = obj;
57739
+ keys.slice(0, -1).forEach(function(key2) {
57740
+ o = o[key2] || {};
57741
+ });
57742
+ var key = keys[keys.length - 1];
57743
+ return key in o;
57744
+ }
57745
+ function isNumber(x) {
57746
+ if (typeof x === "number") {
57747
+ return true;
57748
+ }
57749
+ if (/^0x[0-9a-f]+$/i.test(x)) {
57750
+ return true;
57751
+ }
57752
+ return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
57753
+ }
57754
+ function isConstructorOrProto(obj, key) {
57755
+ return key === "constructor" && typeof obj[key] === "function" || key === "__proto__";
57756
+ }
57589
57757
  module2.exports = function(args, opts) {
57590
- if (!opts)
57758
+ if (!opts) {
57591
57759
  opts = {};
57592
- var flags = { bools: {}, strings: {}, unknownFn: null };
57593
- if (typeof opts["unknown"] === "function") {
57594
- flags.unknownFn = opts["unknown"];
57595
57760
  }
57596
- if (typeof opts["boolean"] === "boolean" && opts["boolean"]) {
57761
+ var flags = {
57762
+ bools: {},
57763
+ strings: {},
57764
+ unknownFn: null
57765
+ };
57766
+ if (typeof opts.unknown === "function") {
57767
+ flags.unknownFn = opts.unknown;
57768
+ }
57769
+ if (typeof opts.boolean === "boolean" && opts.boolean) {
57597
57770
  flags.allBools = true;
57598
57771
  } else {
57599
- [].concat(opts["boolean"]).filter(Boolean).forEach(function(key2) {
57772
+ [].concat(opts.boolean).filter(Boolean).forEach(function(key2) {
57600
57773
  flags.bools[key2] = true;
57601
57774
  });
57602
57775
  }
57603
57776
  var aliases = {};
57777
+ function aliasIsBoolean(key2) {
57778
+ return aliases[key2].some(function(x) {
57779
+ return flags.bools[x];
57780
+ });
57781
+ }
57604
57782
  Object.keys(opts.alias || {}).forEach(function(key2) {
57605
57783
  aliases[key2] = [].concat(opts.alias[key2]);
57606
57784
  aliases[key2].forEach(function(x) {
@@ -57612,89 +57790,96 @@ var require_minimist = __commonJS({
57612
57790
  [].concat(opts.string).filter(Boolean).forEach(function(key2) {
57613
57791
  flags.strings[key2] = true;
57614
57792
  if (aliases[key2]) {
57615
- flags.strings[aliases[key2]] = true;
57793
+ [].concat(aliases[key2]).forEach(function(k) {
57794
+ flags.strings[k] = true;
57795
+ });
57616
57796
  }
57617
57797
  });
57618
- var defaults = opts["default"] || {};
57798
+ var defaults = opts.default || {};
57619
57799
  var argv = { _: [] };
57620
- Object.keys(flags.bools).forEach(function(key2) {
57621
- setArg(key2, defaults[key2] === void 0 ? false : defaults[key2]);
57622
- });
57623
- var notFlags = [];
57624
- if (args.indexOf("--") !== -1) {
57625
- notFlags = args.slice(args.indexOf("--") + 1);
57626
- args = args.slice(0, args.indexOf("--"));
57627
- }
57628
57800
  function argDefined(key2, arg2) {
57629
57801
  return flags.allBools && /^--[^=]+$/.test(arg2) || flags.strings[key2] || flags.bools[key2] || aliases[key2];
57630
57802
  }
57631
- function setArg(key2, val, arg2) {
57632
- if (arg2 && flags.unknownFn && !argDefined(key2, arg2)) {
57633
- if (flags.unknownFn(arg2) === false)
57634
- return;
57635
- }
57636
- var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
57637
- setKey(argv, key2.split("."), value2);
57638
- (aliases[key2] || []).forEach(function(x) {
57639
- setKey(argv, x.split("."), value2);
57640
- });
57641
- }
57642
57803
  function setKey(obj, keys, value2) {
57643
57804
  var o = obj;
57644
57805
  for (var i2 = 0; i2 < keys.length - 1; i2++) {
57645
57806
  var key2 = keys[i2];
57646
- if (isConstructorOrProto(o, key2))
57807
+ if (isConstructorOrProto(o, key2)) {
57647
57808
  return;
57648
- if (o[key2] === void 0)
57809
+ }
57810
+ if (o[key2] === void 0) {
57649
57811
  o[key2] = {};
57650
- if (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype)
57812
+ }
57813
+ if (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype) {
57651
57814
  o[key2] = {};
57652
- if (o[key2] === Array.prototype)
57815
+ }
57816
+ if (o[key2] === Array.prototype) {
57653
57817
  o[key2] = [];
57818
+ }
57654
57819
  o = o[key2];
57655
57820
  }
57656
- var key2 = keys[keys.length - 1];
57657
- if (isConstructorOrProto(o, key2))
57821
+ var lastKey = keys[keys.length - 1];
57822
+ if (isConstructorOrProto(o, lastKey)) {
57658
57823
  return;
57659
- if (o === Object.prototype || o === Number.prototype || o === String.prototype)
57824
+ }
57825
+ if (o === Object.prototype || o === Number.prototype || o === String.prototype) {
57660
57826
  o = {};
57661
- if (o === Array.prototype)
57827
+ }
57828
+ if (o === Array.prototype) {
57662
57829
  o = [];
57663
- if (o[key2] === void 0 || flags.bools[key2] || typeof o[key2] === "boolean") {
57664
- o[key2] = value2;
57665
- } else if (Array.isArray(o[key2])) {
57666
- o[key2].push(value2);
57830
+ }
57831
+ if (o[lastKey] === void 0 || flags.bools[lastKey] || typeof o[lastKey] === "boolean") {
57832
+ o[lastKey] = value2;
57833
+ } else if (Array.isArray(o[lastKey])) {
57834
+ o[lastKey].push(value2);
57667
57835
  } else {
57668
- o[key2] = [o[key2], value2];
57836
+ o[lastKey] = [o[lastKey], value2];
57669
57837
  }
57670
57838
  }
57671
- function aliasIsBoolean(key2) {
57672
- return aliases[key2].some(function(x) {
57673
- return flags.bools[x];
57839
+ function setArg(key2, val, arg2) {
57840
+ if (arg2 && flags.unknownFn && !argDefined(key2, arg2)) {
57841
+ if (flags.unknownFn(arg2) === false) {
57842
+ return;
57843
+ }
57844
+ }
57845
+ var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
57846
+ setKey(argv, key2.split("."), value2);
57847
+ (aliases[key2] || []).forEach(function(x) {
57848
+ setKey(argv, x.split("."), value2);
57674
57849
  });
57675
57850
  }
57851
+ Object.keys(flags.bools).forEach(function(key2) {
57852
+ setArg(key2, defaults[key2] === void 0 ? false : defaults[key2]);
57853
+ });
57854
+ var notFlags = [];
57855
+ if (args.indexOf("--") !== -1) {
57856
+ notFlags = args.slice(args.indexOf("--") + 1);
57857
+ args = args.slice(0, args.indexOf("--"));
57858
+ }
57676
57859
  for (var i = 0; i < args.length; i++) {
57677
57860
  var arg = args[i];
57861
+ var key;
57862
+ var next;
57678
57863
  if (/^--.+=/.test(arg)) {
57679
57864
  var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
57680
- var key = m[1];
57865
+ key = m[1];
57681
57866
  var value = m[2];
57682
57867
  if (flags.bools[key]) {
57683
57868
  value = value !== "false";
57684
57869
  }
57685
57870
  setArg(key, value, arg);
57686
57871
  } else if (/^--no-.+/.test(arg)) {
57687
- var key = arg.match(/^--no-(.+)/)[1];
57872
+ key = arg.match(/^--no-(.+)/)[1];
57688
57873
  setArg(key, false, arg);
57689
57874
  } else if (/^--.+/.test(arg)) {
57690
- var key = arg.match(/^--(.+)/)[1];
57691
- var next = args[i + 1];
57692
- if (next !== void 0 && !/^-/.test(next) && !flags.bools[key] && !flags.allBools && (aliases[key] ? !aliasIsBoolean(key) : true)) {
57875
+ key = arg.match(/^--(.+)/)[1];
57876
+ next = args[i + 1];
57877
+ if (next !== void 0 && !/^(-|--)[^-]/.test(next) && !flags.bools[key] && !flags.allBools && (aliases[key] ? !aliasIsBoolean(key) : true)) {
57693
57878
  setArg(key, next, arg);
57694
- i++;
57879
+ i += 1;
57695
57880
  } else if (/^(true|false)$/.test(next)) {
57696
57881
  setArg(key, next === "true", arg);
57697
- i++;
57882
+ i += 1;
57698
57883
  } else {
57699
57884
  setArg(key, flags.strings[key] ? "" : true, arg);
57700
57885
  }
@@ -57702,13 +57887,13 @@ var require_minimist = __commonJS({
57702
57887
  var letters = arg.slice(1, -1).split("");
57703
57888
  var broken = false;
57704
57889
  for (var j = 0; j < letters.length; j++) {
57705
- var next = arg.slice(j + 2);
57890
+ next = arg.slice(j + 2);
57706
57891
  if (next === "-") {
57707
57892
  setArg(letters[j], next, arg);
57708
57893
  continue;
57709
57894
  }
57710
- if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
57711
- setArg(letters[j], next.split("=")[1], arg);
57895
+ if (/[A-Za-z]/.test(letters[j]) && next[0] === "=") {
57896
+ setArg(letters[j], next.slice(1), arg);
57712
57897
  broken = true;
57713
57898
  break;
57714
57899
  }
@@ -57725,21 +57910,21 @@ var require_minimist = __commonJS({
57725
57910
  setArg(letters[j], flags.strings[letters[j]] ? "" : true, arg);
57726
57911
  }
57727
57912
  }
57728
- var key = arg.slice(-1)[0];
57913
+ key = arg.slice(-1)[0];
57729
57914
  if (!broken && key !== "-") {
57730
57915
  if (args[i + 1] && !/^(-|--)[^-]/.test(args[i + 1]) && !flags.bools[key] && (aliases[key] ? !aliasIsBoolean(key) : true)) {
57731
57916
  setArg(key, args[i + 1], arg);
57732
- i++;
57917
+ i += 1;
57733
57918
  } else if (args[i + 1] && /^(true|false)$/.test(args[i + 1])) {
57734
57919
  setArg(key, args[i + 1] === "true", arg);
57735
- i++;
57920
+ i += 1;
57736
57921
  } else {
57737
57922
  setArg(key, flags.strings[key] ? "" : true, arg);
57738
57923
  }
57739
57924
  }
57740
57925
  } else {
57741
57926
  if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
57742
- argv._.push(flags.strings["_"] || !isNumber(arg) ? arg : Number(arg));
57927
+ argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg));
57743
57928
  }
57744
57929
  if (opts.stopEarly) {
57745
57930
  argv._.push.apply(argv._, args.slice(i + 1));
@@ -57747,44 +57932,23 @@ var require_minimist = __commonJS({
57747
57932
  }
57748
57933
  }
57749
57934
  }
57750
- Object.keys(defaults).forEach(function(key2) {
57751
- if (!hasKey(argv, key2.split("."))) {
57752
- setKey(argv, key2.split("."), defaults[key2]);
57753
- (aliases[key2] || []).forEach(function(x) {
57754
- setKey(argv, x.split("."), defaults[key2]);
57935
+ Object.keys(defaults).forEach(function(k) {
57936
+ if (!hasKey(argv, k.split("."))) {
57937
+ setKey(argv, k.split("."), defaults[k]);
57938
+ (aliases[k] || []).forEach(function(x) {
57939
+ setKey(argv, x.split("."), defaults[k]);
57755
57940
  });
57756
57941
  }
57757
57942
  });
57758
57943
  if (opts["--"]) {
57759
- argv["--"] = new Array();
57760
- notFlags.forEach(function(key2) {
57761
- argv["--"].push(key2);
57762
- });
57944
+ argv["--"] = notFlags.slice();
57763
57945
  } else {
57764
- notFlags.forEach(function(key2) {
57765
- argv._.push(key2);
57946
+ notFlags.forEach(function(k) {
57947
+ argv._.push(k);
57766
57948
  });
57767
57949
  }
57768
57950
  return argv;
57769
57951
  };
57770
- function hasKey(obj, keys) {
57771
- var o = obj;
57772
- keys.slice(0, -1).forEach(function(key2) {
57773
- o = o[key2] || {};
57774
- });
57775
- var key = keys[keys.length - 1];
57776
- return key in o;
57777
- }
57778
- function isNumber(x) {
57779
- if (typeof x === "number")
57780
- return true;
57781
- if (/^0x[0-9a-f]+$/i.test(x))
57782
- return true;
57783
- return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
57784
- }
57785
- function isConstructorOrProto(obj, key) {
57786
- return key === "constructor" && typeof obj[key] === "function" || key === "__proto__";
57787
- }
57788
57952
  }
57789
57953
  });
57790
57954
 
@@ -58474,14 +58638,13 @@ var require_ms = __commonJS({
58474
58638
  var m = s * 60;
58475
58639
  var h = m * 60;
58476
58640
  var d = h * 24;
58477
- var w = d * 7;
58478
58641
  var y = d * 365.25;
58479
58642
  module2.exports = function(val, options) {
58480
58643
  options = options || {};
58481
58644
  var type = typeof val;
58482
58645
  if (type === "string" && val.length > 0) {
58483
58646
  return parse(val);
58484
- } else if (type === "number" && isFinite(val)) {
58647
+ } else if (type === "number" && isNaN(val) === false) {
58485
58648
  return options.long ? fmtLong(val) : fmtShort(val);
58486
58649
  }
58487
58650
  throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
@@ -58491,7 +58654,7 @@ var require_ms = __commonJS({
58491
58654
  if (str.length > 100) {
58492
58655
  return;
58493
58656
  }
58494
- var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
58657
+ var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
58495
58658
  if (!match) {
58496
58659
  return;
58497
58660
  }
@@ -58504,10 +58667,6 @@ var require_ms = __commonJS({
58504
58667
  case "yr":
58505
58668
  case "y":
58506
58669
  return n * y;
58507
- case "weeks":
58508
- case "week":
58509
- case "w":
58510
- return n * w;
58511
58670
  case "days":
58512
58671
  case "day":
58513
58672
  case "d":
@@ -58541,324 +58700,187 @@ var require_ms = __commonJS({
58541
58700
  }
58542
58701
  }
58543
58702
  function fmtShort(ms) {
58544
- var msAbs = Math.abs(ms);
58545
- if (msAbs >= d) {
58703
+ if (ms >= d) {
58546
58704
  return Math.round(ms / d) + "d";
58547
58705
  }
58548
- if (msAbs >= h) {
58706
+ if (ms >= h) {
58549
58707
  return Math.round(ms / h) + "h";
58550
58708
  }
58551
- if (msAbs >= m) {
58709
+ if (ms >= m) {
58552
58710
  return Math.round(ms / m) + "m";
58553
58711
  }
58554
- if (msAbs >= s) {
58712
+ if (ms >= s) {
58555
58713
  return Math.round(ms / s) + "s";
58556
58714
  }
58557
58715
  return ms + "ms";
58558
58716
  }
58559
58717
  function fmtLong(ms) {
58560
- var msAbs = Math.abs(ms);
58561
- if (msAbs >= d) {
58562
- return plural(ms, msAbs, d, "day");
58563
- }
58564
- if (msAbs >= h) {
58565
- return plural(ms, msAbs, h, "hour");
58566
- }
58567
- if (msAbs >= m) {
58568
- return plural(ms, msAbs, m, "minute");
58718
+ return plural(ms, d, "day") || plural(ms, h, "hour") || plural(ms, m, "minute") || plural(ms, s, "second") || ms + " ms";
58719
+ }
58720
+ function plural(ms, n, name) {
58721
+ if (ms < n) {
58722
+ return;
58569
58723
  }
58570
- if (msAbs >= s) {
58571
- return plural(ms, msAbs, s, "second");
58724
+ if (ms < n * 1.5) {
58725
+ return Math.floor(ms / n) + " " + name;
58572
58726
  }
58573
- return ms + " ms";
58574
- }
58575
- function plural(ms, msAbs, n, name) {
58576
- var isPlural = msAbs >= n * 1.5;
58577
- return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
58727
+ return Math.ceil(ms / n) + " " + name + "s";
58578
58728
  }
58579
58729
  }
58580
58730
  });
58581
58731
 
58582
- // ../../../node_modules/debug/src/common.js
58583
- var require_common2 = __commonJS({
58584
- "../../../node_modules/debug/src/common.js"(exports, module2) {
58585
- function setup(env) {
58586
- createDebug.debug = createDebug;
58587
- createDebug.default = createDebug;
58588
- createDebug.coerce = coerce;
58589
- createDebug.disable = disable;
58590
- createDebug.enable = enable;
58591
- createDebug.enabled = enabled;
58592
- createDebug.humanize = require_ms();
58593
- createDebug.destroy = destroy;
58594
- Object.keys(env).forEach((key) => {
58595
- createDebug[key] = env[key];
58596
- });
58597
- createDebug.names = [];
58598
- createDebug.skips = [];
58599
- createDebug.formatters = {};
58600
- function selectColor(namespace) {
58601
- let hash = 0;
58602
- for (let i = 0; i < namespace.length; i++) {
58603
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
58604
- hash |= 0;
58605
- }
58606
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
58607
- }
58608
- createDebug.selectColor = selectColor;
58609
- function createDebug(namespace) {
58610
- let prevTime;
58611
- let enableOverride = null;
58612
- let namespacesCache;
58613
- let enabledCache;
58614
- function debug(...args) {
58615
- if (!debug.enabled) {
58616
- return;
58617
- }
58618
- const self2 = debug;
58619
- const curr = Number(new Date());
58620
- const ms = curr - (prevTime || curr);
58621
- self2.diff = ms;
58622
- self2.prev = prevTime;
58623
- self2.curr = curr;
58624
- prevTime = curr;
58625
- args[0] = createDebug.coerce(args[0]);
58626
- if (typeof args[0] !== "string") {
58627
- args.unshift("%O");
58628
- }
58629
- let index = 0;
58630
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
58631
- if (match === "%%") {
58632
- return "%";
58633
- }
58634
- index++;
58635
- const formatter = createDebug.formatters[format];
58636
- if (typeof formatter === "function") {
58637
- const val = args[index];
58638
- match = formatter.call(self2, val);
58639
- args.splice(index, 1);
58640
- index--;
58641
- }
58732
+ // ../../../node_modules/debug/src/debug.js
58733
+ var require_debug = __commonJS({
58734
+ "../../../node_modules/debug/src/debug.js"(exports, module2) {
58735
+ exports = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
58736
+ exports.coerce = coerce;
58737
+ exports.disable = disable;
58738
+ exports.enable = enable;
58739
+ exports.enabled = enabled;
58740
+ exports.humanize = require_ms();
58741
+ exports.names = [];
58742
+ exports.skips = [];
58743
+ exports.formatters = {};
58744
+ var prevTime;
58745
+ function selectColor(namespace) {
58746
+ var hash = 0, i;
58747
+ for (i in namespace) {
58748
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
58749
+ hash |= 0;
58750
+ }
58751
+ return exports.colors[Math.abs(hash) % exports.colors.length];
58752
+ }
58753
+ function createDebug(namespace) {
58754
+ function debug() {
58755
+ if (!debug.enabled)
58756
+ return;
58757
+ var self2 = debug;
58758
+ var curr = +new Date();
58759
+ var ms = curr - (prevTime || curr);
58760
+ self2.diff = ms;
58761
+ self2.prev = prevTime;
58762
+ self2.curr = curr;
58763
+ prevTime = curr;
58764
+ var args = new Array(arguments.length);
58765
+ for (var i = 0; i < args.length; i++) {
58766
+ args[i] = arguments[i];
58767
+ }
58768
+ args[0] = exports.coerce(args[0]);
58769
+ if (typeof args[0] !== "string") {
58770
+ args.unshift("%O");
58771
+ }
58772
+ var index = 0;
58773
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
58774
+ if (match === "%%")
58642
58775
  return match;
58643
- });
58644
- createDebug.formatArgs.call(self2, args);
58645
- const logFn = self2.log || createDebug.log;
58646
- logFn.apply(self2, args);
58647
- }
58648
- debug.namespace = namespace;
58649
- debug.useColors = createDebug.useColors();
58650
- debug.color = createDebug.selectColor(namespace);
58651
- debug.extend = extend;
58652
- debug.destroy = createDebug.destroy;
58653
- Object.defineProperty(debug, "enabled", {
58654
- enumerable: true,
58655
- configurable: false,
58656
- get: () => {
58657
- if (enableOverride !== null) {
58658
- return enableOverride;
58659
- }
58660
- if (namespacesCache !== createDebug.namespaces) {
58661
- namespacesCache = createDebug.namespaces;
58662
- enabledCache = createDebug.enabled(namespace);
58663
- }
58664
- return enabledCache;
58665
- },
58666
- set: (v) => {
58667
- enableOverride = v;
58668
- }
58776
+ index++;
58777
+ var formatter = exports.formatters[format];
58778
+ if (typeof formatter === "function") {
58779
+ var val = args[index];
58780
+ match = formatter.call(self2, val);
58781
+ args.splice(index, 1);
58782
+ index--;
58783
+ }
58784
+ return match;
58669
58785
  });
58670
- if (typeof createDebug.init === "function") {
58671
- createDebug.init(debug);
58672
- }
58673
- return debug;
58674
- }
58675
- function extend(namespace, delimiter) {
58676
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
58677
- newDebug.log = this.log;
58678
- return newDebug;
58679
- }
58680
- function enable(namespaces) {
58681
- createDebug.save(namespaces);
58682
- createDebug.namespaces = namespaces;
58683
- createDebug.names = [];
58684
- createDebug.skips = [];
58685
- let i;
58686
- const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
58687
- const len = split.length;
58688
- for (i = 0; i < len; i++) {
58689
- if (!split[i]) {
58690
- continue;
58691
- }
58692
- namespaces = split[i].replace(/\*/g, ".*?");
58693
- if (namespaces[0] === "-") {
58694
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
58695
- } else {
58696
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
58697
- }
58786
+ exports.formatArgs.call(self2, args);
58787
+ var logFn = debug.log || exports.log || console.log.bind(console);
58788
+ logFn.apply(self2, args);
58789
+ }
58790
+ debug.namespace = namespace;
58791
+ debug.enabled = exports.enabled(namespace);
58792
+ debug.useColors = exports.useColors();
58793
+ debug.color = selectColor(namespace);
58794
+ if (typeof exports.init === "function") {
58795
+ exports.init(debug);
58796
+ }
58797
+ return debug;
58798
+ }
58799
+ function enable(namespaces) {
58800
+ exports.save(namespaces);
58801
+ exports.names = [];
58802
+ exports.skips = [];
58803
+ var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
58804
+ var len = split.length;
58805
+ for (var i = 0; i < len; i++) {
58806
+ if (!split[i])
58807
+ continue;
58808
+ namespaces = split[i].replace(/\*/g, ".*?");
58809
+ if (namespaces[0] === "-") {
58810
+ exports.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
58811
+ } else {
58812
+ exports.names.push(new RegExp("^" + namespaces + "$"));
58698
58813
  }
58699
58814
  }
58700
- function disable() {
58701
- const namespaces = [
58702
- ...createDebug.names.map(toNamespace),
58703
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
58704
- ].join(",");
58705
- createDebug.enable("");
58706
- return namespaces;
58707
- }
58708
- function enabled(name) {
58709
- if (name[name.length - 1] === "*") {
58710
- return true;
58711
- }
58712
- let i;
58713
- let len;
58714
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
58715
- if (createDebug.skips[i].test(name)) {
58716
- return false;
58717
- }
58718
- }
58719
- for (i = 0, len = createDebug.names.length; i < len; i++) {
58720
- if (createDebug.names[i].test(name)) {
58721
- return true;
58722
- }
58815
+ }
58816
+ function disable() {
58817
+ exports.enable("");
58818
+ }
58819
+ function enabled(name) {
58820
+ var i, len;
58821
+ for (i = 0, len = exports.skips.length; i < len; i++) {
58822
+ if (exports.skips[i].test(name)) {
58823
+ return false;
58723
58824
  }
58724
- return false;
58725
- }
58726
- function toNamespace(regexp) {
58727
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
58728
58825
  }
58729
- function coerce(val) {
58730
- if (val instanceof Error) {
58731
- return val.stack || val.message;
58826
+ for (i = 0, len = exports.names.length; i < len; i++) {
58827
+ if (exports.names[i].test(name)) {
58828
+ return true;
58732
58829
  }
58733
- return val;
58734
- }
58735
- function destroy() {
58736
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
58737
58830
  }
58738
- createDebug.enable(createDebug.load());
58739
- return createDebug;
58831
+ return false;
58832
+ }
58833
+ function coerce(val) {
58834
+ if (val instanceof Error)
58835
+ return val.stack || val.message;
58836
+ return val;
58740
58837
  }
58741
- module2.exports = setup;
58742
58838
  }
58743
58839
  });
58744
58840
 
58745
58841
  // ../../../node_modules/debug/src/browser.js
58746
58842
  var require_browser = __commonJS({
58747
58843
  "../../../node_modules/debug/src/browser.js"(exports, module2) {
58844
+ exports = module2.exports = require_debug();
58845
+ exports.log = log;
58748
58846
  exports.formatArgs = formatArgs;
58749
58847
  exports.save = save;
58750
58848
  exports.load = load;
58751
58849
  exports.useColors = useColors;
58752
- exports.storage = localstorage();
58753
- exports.destroy = (() => {
58754
- let warned = false;
58755
- return () => {
58756
- if (!warned) {
58757
- warned = true;
58758
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
58759
- }
58760
- };
58761
- })();
58850
+ exports.storage = typeof chrome != "undefined" && typeof chrome.storage != "undefined" ? chrome.storage.local : localstorage();
58762
58851
  exports.colors = [
58763
- "#0000CC",
58764
- "#0000FF",
58765
- "#0033CC",
58766
- "#0033FF",
58767
- "#0066CC",
58768
- "#0066FF",
58769
- "#0099CC",
58770
- "#0099FF",
58771
- "#00CC00",
58772
- "#00CC33",
58773
- "#00CC66",
58774
- "#00CC99",
58775
- "#00CCCC",
58776
- "#00CCFF",
58777
- "#3300CC",
58778
- "#3300FF",
58779
- "#3333CC",
58780
- "#3333FF",
58781
- "#3366CC",
58782
- "#3366FF",
58783
- "#3399CC",
58784
- "#3399FF",
58785
- "#33CC00",
58786
- "#33CC33",
58787
- "#33CC66",
58788
- "#33CC99",
58789
- "#33CCCC",
58790
- "#33CCFF",
58791
- "#6600CC",
58792
- "#6600FF",
58793
- "#6633CC",
58794
- "#6633FF",
58795
- "#66CC00",
58796
- "#66CC33",
58797
- "#9900CC",
58798
- "#9900FF",
58799
- "#9933CC",
58800
- "#9933FF",
58801
- "#99CC00",
58802
- "#99CC33",
58803
- "#CC0000",
58804
- "#CC0033",
58805
- "#CC0066",
58806
- "#CC0099",
58807
- "#CC00CC",
58808
- "#CC00FF",
58809
- "#CC3300",
58810
- "#CC3333",
58811
- "#CC3366",
58812
- "#CC3399",
58813
- "#CC33CC",
58814
- "#CC33FF",
58815
- "#CC6600",
58816
- "#CC6633",
58817
- "#CC9900",
58818
- "#CC9933",
58819
- "#CCCC00",
58820
- "#CCCC33",
58821
- "#FF0000",
58822
- "#FF0033",
58823
- "#FF0066",
58824
- "#FF0099",
58825
- "#FF00CC",
58826
- "#FF00FF",
58827
- "#FF3300",
58828
- "#FF3333",
58829
- "#FF3366",
58830
- "#FF3399",
58831
- "#FF33CC",
58832
- "#FF33FF",
58833
- "#FF6600",
58834
- "#FF6633",
58835
- "#FF9900",
58836
- "#FF9933",
58837
- "#FFCC00",
58838
- "#FFCC33"
58852
+ "lightseagreen",
58853
+ "forestgreen",
58854
+ "goldenrod",
58855
+ "dodgerblue",
58856
+ "darkorchid",
58857
+ "crimson"
58839
58858
  ];
58840
58859
  function useColors() {
58841
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
58860
+ if (typeof window !== "undefined" && window.process && window.process.type === "renderer") {
58842
58861
  return true;
58843
58862
  }
58844
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
58845
- return false;
58846
- }
58847
58863
  return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
58848
58864
  }
58865
+ exports.formatters.j = function(v) {
58866
+ try {
58867
+ return JSON.stringify(v);
58868
+ } catch (err) {
58869
+ return "[UnexpectedJSONParseError]: " + err.message;
58870
+ }
58871
+ };
58849
58872
  function formatArgs(args) {
58850
- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
58851
- if (!this.useColors) {
58873
+ var useColors2 = this.useColors;
58874
+ args[0] = (useColors2 ? "%c" : "") + this.namespace + (useColors2 ? " %c" : " ") + args[0] + (useColors2 ? "%c " : " ") + "+" + exports.humanize(this.diff);
58875
+ if (!useColors2)
58852
58876
  return;
58853
- }
58854
- const c = "color: " + this.color;
58877
+ var c = "color: " + this.color;
58855
58878
  args.splice(1, 0, c, "color: inherit");
58856
- let index = 0;
58857
- let lastC = 0;
58858
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
58859
- if (match === "%%") {
58879
+ var index = 0;
58880
+ var lastC = 0;
58881
+ args[0].replace(/%[a-zA-Z%]/g, function(match) {
58882
+ if (match === "%%")
58860
58883
  return;
58861
- }
58862
58884
  index++;
58863
58885
  if (match === "%c") {
58864
58886
  lastC = index;
@@ -58866,158 +58888,37 @@ var require_browser = __commonJS({
58866
58888
  });
58867
58889
  args.splice(lastC, 0, c);
58868
58890
  }
58869
- exports.log = console.debug || console.log || (() => {
58870
- });
58891
+ function log() {
58892
+ return typeof console === "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
58893
+ }
58871
58894
  function save(namespaces) {
58872
58895
  try {
58873
- if (namespaces) {
58874
- exports.storage.setItem("debug", namespaces);
58875
- } else {
58896
+ if (namespaces == null) {
58876
58897
  exports.storage.removeItem("debug");
58898
+ } else {
58899
+ exports.storage.debug = namespaces;
58877
58900
  }
58878
- } catch (error) {
58901
+ } catch (e) {
58879
58902
  }
58880
58903
  }
58881
58904
  function load() {
58882
- let r;
58905
+ var r;
58883
58906
  try {
58884
- r = exports.storage.getItem("debug");
58885
- } catch (error) {
58907
+ r = exports.storage.debug;
58908
+ } catch (e) {
58886
58909
  }
58887
58910
  if (!r && typeof process !== "undefined" && "env" in process) {
58888
58911
  r = process.env.DEBUG;
58889
58912
  }
58890
58913
  return r;
58891
58914
  }
58915
+ exports.enable(load());
58892
58916
  function localstorage() {
58893
58917
  try {
58894
- return localStorage;
58895
- } catch (error) {
58896
- }
58897
- }
58898
- module2.exports = require_common2()(exports);
58899
- var { formatters } = module2.exports;
58900
- formatters.j = function(v) {
58901
- try {
58902
- return JSON.stringify(v);
58903
- } catch (error) {
58904
- return "[UnexpectedJSONParseError]: " + error.message;
58905
- }
58906
- };
58907
- }
58908
- });
58909
-
58910
- // ../../../node_modules/supports-color/index.js
58911
- var require_supports_color2 = __commonJS({
58912
- "../../../node_modules/supports-color/index.js"(exports, module2) {
58913
- "use strict";
58914
- var os = require("os");
58915
- var tty = require("tty");
58916
- var hasFlag = require_has_flag();
58917
- var { env } = process;
58918
- var flagForceColor;
58919
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
58920
- flagForceColor = 0;
58921
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
58922
- flagForceColor = 1;
58923
- }
58924
- function envForceColor() {
58925
- if ("FORCE_COLOR" in env) {
58926
- if (env.FORCE_COLOR === "true") {
58927
- return 1;
58928
- }
58929
- if (env.FORCE_COLOR === "false") {
58930
- return 0;
58931
- }
58932
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
58933
- }
58934
- }
58935
- function translateLevel(level) {
58936
- if (level === 0) {
58937
- return false;
58938
- }
58939
- return {
58940
- level,
58941
- hasBasic: true,
58942
- has256: level >= 2,
58943
- has16m: level >= 3
58944
- };
58945
- }
58946
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
58947
- const noFlagForceColor = envForceColor();
58948
- if (noFlagForceColor !== void 0) {
58949
- flagForceColor = noFlagForceColor;
58950
- }
58951
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
58952
- if (forceColor === 0) {
58953
- return 0;
58954
- }
58955
- if (sniffFlags) {
58956
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
58957
- return 3;
58958
- }
58959
- if (hasFlag("color=256")) {
58960
- return 2;
58961
- }
58962
- }
58963
- if (haveStream && !streamIsTTY && forceColor === void 0) {
58964
- return 0;
58965
- }
58966
- const min = forceColor || 0;
58967
- if (env.TERM === "dumb") {
58968
- return min;
58969
- }
58970
- if (process.platform === "win32") {
58971
- const osRelease = os.release().split(".");
58972
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
58973
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
58974
- }
58975
- return 1;
58976
- }
58977
- if ("CI" in env) {
58978
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
58979
- return 1;
58980
- }
58981
- return min;
58982
- }
58983
- if ("TEAMCITY_VERSION" in env) {
58984
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
58985
- }
58986
- if (env.COLORTERM === "truecolor") {
58987
- return 3;
58988
- }
58989
- if ("TERM_PROGRAM" in env) {
58990
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
58991
- switch (env.TERM_PROGRAM) {
58992
- case "iTerm.app":
58993
- return version >= 3 ? 3 : 2;
58994
- case "Apple_Terminal":
58995
- return 2;
58996
- }
58997
- }
58998
- if (/-256(color)?$/i.test(env.TERM)) {
58999
- return 2;
59000
- }
59001
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
59002
- return 1;
59003
- }
59004
- if ("COLORTERM" in env) {
59005
- return 1;
58918
+ return window.localStorage;
58919
+ } catch (e) {
59006
58920
  }
59007
- return min;
59008
58921
  }
59009
- function getSupportLevel(stream, options = {}) {
59010
- const level = supportsColor(stream, {
59011
- streamIsTTY: stream && stream.isTTY,
59012
- ...options
59013
- });
59014
- return translateLevel(level);
59015
- }
59016
- module2.exports = {
59017
- supportsColor: getSupportLevel,
59018
- stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
59019
- stderr: getSupportLevel({ isTTY: tty.isatty(2) })
59020
- };
59021
58922
  }
59022
58923
  });
59023
58924
 
@@ -59026,176 +58927,129 @@ var require_node2 = __commonJS({
59026
58927
  "../../../node_modules/debug/src/node.js"(exports, module2) {
59027
58928
  var tty = require("tty");
59028
58929
  var util = require("util");
58930
+ exports = module2.exports = require_debug();
59029
58931
  exports.init = init;
59030
58932
  exports.log = log;
59031
58933
  exports.formatArgs = formatArgs;
59032
58934
  exports.save = save;
59033
58935
  exports.load = load;
59034
58936
  exports.useColors = useColors;
59035
- exports.destroy = util.deprecate(() => {
59036
- }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
59037
58937
  exports.colors = [6, 2, 3, 4, 5, 1];
59038
- try {
59039
- const supportsColor = require_supports_color2();
59040
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
59041
- exports.colors = [
59042
- 20,
59043
- 21,
59044
- 26,
59045
- 27,
59046
- 32,
59047
- 33,
59048
- 38,
59049
- 39,
59050
- 40,
59051
- 41,
59052
- 42,
59053
- 43,
59054
- 44,
59055
- 45,
59056
- 56,
59057
- 57,
59058
- 62,
59059
- 63,
59060
- 68,
59061
- 69,
59062
- 74,
59063
- 75,
59064
- 76,
59065
- 77,
59066
- 78,
59067
- 79,
59068
- 80,
59069
- 81,
59070
- 92,
59071
- 93,
59072
- 98,
59073
- 99,
59074
- 112,
59075
- 113,
59076
- 128,
59077
- 129,
59078
- 134,
59079
- 135,
59080
- 148,
59081
- 149,
59082
- 160,
59083
- 161,
59084
- 162,
59085
- 163,
59086
- 164,
59087
- 165,
59088
- 166,
59089
- 167,
59090
- 168,
59091
- 169,
59092
- 170,
59093
- 171,
59094
- 172,
59095
- 173,
59096
- 178,
59097
- 179,
59098
- 184,
59099
- 185,
59100
- 196,
59101
- 197,
59102
- 198,
59103
- 199,
59104
- 200,
59105
- 201,
59106
- 202,
59107
- 203,
59108
- 204,
59109
- 205,
59110
- 206,
59111
- 207,
59112
- 208,
59113
- 209,
59114
- 214,
59115
- 215,
59116
- 220,
59117
- 221
59118
- ];
59119
- }
59120
- } catch (error) {
59121
- }
59122
- exports.inspectOpts = Object.keys(process.env).filter((key) => {
58938
+ exports.inspectOpts = Object.keys(process.env).filter(function(key) {
59123
58939
  return /^debug_/i.test(key);
59124
- }).reduce((obj, key) => {
59125
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
58940
+ }).reduce(function(obj, key) {
58941
+ var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
59126
58942
  return k.toUpperCase();
59127
58943
  });
59128
- let val = process.env[key];
59129
- if (/^(yes|on|true|enabled)$/i.test(val)) {
58944
+ var val = process.env[key];
58945
+ if (/^(yes|on|true|enabled)$/i.test(val))
59130
58946
  val = true;
59131
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
58947
+ else if (/^(no|off|false|disabled)$/i.test(val))
59132
58948
  val = false;
59133
- } else if (val === "null") {
58949
+ else if (val === "null")
59134
58950
  val = null;
59135
- } else {
58951
+ else
59136
58952
  val = Number(val);
59137
- }
59138
58953
  obj[prop] = val;
59139
58954
  return obj;
59140
58955
  }, {});
58956
+ var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
58957
+ if (fd !== 1 && fd !== 2) {
58958
+ util.deprecate(function() {
58959
+ }, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
58960
+ }
58961
+ var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
59141
58962
  function useColors() {
59142
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
58963
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd);
59143
58964
  }
58965
+ exports.formatters.o = function(v) {
58966
+ this.inspectOpts.colors = this.useColors;
58967
+ return util.inspect(v, this.inspectOpts).split("\n").map(function(str) {
58968
+ return str.trim();
58969
+ }).join(" ");
58970
+ };
58971
+ exports.formatters.O = function(v) {
58972
+ this.inspectOpts.colors = this.useColors;
58973
+ return util.inspect(v, this.inspectOpts);
58974
+ };
59144
58975
  function formatArgs(args) {
59145
- const { namespace: name, useColors: useColors2 } = this;
58976
+ var name = this.namespace;
58977
+ var useColors2 = this.useColors;
59146
58978
  if (useColors2) {
59147
- const c = this.color;
59148
- const colorCode = "[3" + (c < 8 ? c : "8;5;" + c);
59149
- const prefix = ` ${colorCode};1m${name} `;
58979
+ var c = this.color;
58980
+ var prefix = " [3" + c + ";1m" + name + " ";
59150
58981
  args[0] = prefix + args[0].split("\n").join("\n" + prefix);
59151
- args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "");
58982
+ args.push("[3" + c + "m+" + exports.humanize(this.diff) + "");
59152
58983
  } else {
59153
- args[0] = getDate() + name + " " + args[0];
58984
+ args[0] = new Date().toUTCString() + " " + name + " " + args[0];
59154
58985
  }
59155
58986
  }
59156
- function getDate() {
59157
- if (exports.inspectOpts.hideDate) {
59158
- return "";
59159
- }
59160
- return new Date().toISOString() + " ";
59161
- }
59162
- function log(...args) {
59163
- return process.stderr.write(util.format(...args) + "\n");
58987
+ function log() {
58988
+ return stream.write(util.format.apply(util, arguments) + "\n");
59164
58989
  }
59165
58990
  function save(namespaces) {
59166
- if (namespaces) {
59167
- process.env.DEBUG = namespaces;
59168
- } else {
58991
+ if (namespaces == null) {
59169
58992
  delete process.env.DEBUG;
58993
+ } else {
58994
+ process.env.DEBUG = namespaces;
59170
58995
  }
59171
58996
  }
59172
58997
  function load() {
59173
58998
  return process.env.DEBUG;
59174
58999
  }
59000
+ function createWritableStdioStream(fd2) {
59001
+ var stream2;
59002
+ var tty_wrap = process.binding("tty_wrap");
59003
+ switch (tty_wrap.guessHandleType(fd2)) {
59004
+ case "TTY":
59005
+ stream2 = new tty.WriteStream(fd2);
59006
+ stream2._type = "tty";
59007
+ if (stream2._handle && stream2._handle.unref) {
59008
+ stream2._handle.unref();
59009
+ }
59010
+ break;
59011
+ case "FILE":
59012
+ var fs2 = require("fs");
59013
+ stream2 = new fs2.SyncWriteStream(fd2, { autoClose: false });
59014
+ stream2._type = "fs";
59015
+ break;
59016
+ case "PIPE":
59017
+ case "TCP":
59018
+ var net = require("net");
59019
+ stream2 = new net.Socket({
59020
+ fd: fd2,
59021
+ readable: false,
59022
+ writable: true
59023
+ });
59024
+ stream2.readable = false;
59025
+ stream2.read = null;
59026
+ stream2._type = "pipe";
59027
+ if (stream2._handle && stream2._handle.unref) {
59028
+ stream2._handle.unref();
59029
+ }
59030
+ break;
59031
+ default:
59032
+ throw new Error("Implement me. Unknown stream file type!");
59033
+ }
59034
+ stream2.fd = fd2;
59035
+ stream2._isStdio = true;
59036
+ return stream2;
59037
+ }
59175
59038
  function init(debug) {
59176
59039
  debug.inspectOpts = {};
59177
- const keys = Object.keys(exports.inspectOpts);
59178
- for (let i = 0; i < keys.length; i++) {
59040
+ var keys = Object.keys(exports.inspectOpts);
59041
+ for (var i = 0; i < keys.length; i++) {
59179
59042
  debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
59180
59043
  }
59181
59044
  }
59182
- module2.exports = require_common2()(exports);
59183
- var { formatters } = module2.exports;
59184
- formatters.o = function(v) {
59185
- this.inspectOpts.colors = this.useColors;
59186
- return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
59187
- };
59188
- formatters.O = function(v) {
59189
- this.inspectOpts.colors = this.useColors;
59190
- return util.inspect(v, this.inspectOpts);
59191
- };
59045
+ exports.enable(load());
59192
59046
  }
59193
59047
  });
59194
59048
 
59195
59049
  // ../../../node_modules/debug/src/index.js
59196
59050
  var require_src = __commonJS({
59197
59051
  "../../../node_modules/debug/src/index.js"(exports, module2) {
59198
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
59052
+ if (typeof process !== "undefined" && process.type === "renderer") {
59199
59053
  module2.exports = require_browser();
59200
59054
  } else {
59201
59055
  module2.exports = require_node2();
@@ -59204,7 +59058,7 @@ var require_src = __commonJS({
59204
59058
  });
59205
59059
 
59206
59060
  // ../../../node_modules/follow-redirects/debug.js
59207
- var require_debug = __commonJS({
59061
+ var require_debug2 = __commonJS({
59208
59062
  "../../../node_modules/follow-redirects/debug.js"(exports, module2) {
59209
59063
  var debug;
59210
59064
  module2.exports = function() {
@@ -59232,7 +59086,7 @@ var require_follow_redirects = __commonJS({
59232
59086
  var https = require("https");
59233
59087
  var Writable = require("stream").Writable;
59234
59088
  var assert = require("assert");
59235
- var debug = require_debug();
59089
+ var debug = require_debug2();
59236
59090
  var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
59237
59091
  var eventHandlers = Object.create(null);
59238
59092
  events.forEach(function(event) {
@@ -59240,10 +59094,12 @@ var require_follow_redirects = __commonJS({
59240
59094
  this._redirectable.emit(event, arg1, arg2, arg3);
59241
59095
  };
59242
59096
  });
59097
+ var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);
59243
59098
  var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
59244
59099
  var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded");
59245
59100
  var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
59246
59101
  var WriteAfterEndError = createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
59102
+ var destroy = Writable.prototype.destroy || noop;
59247
59103
  function RedirectableRequest(options, responseCallback) {
59248
59104
  Writable.call(this);
59249
59105
  this._sanitizeOptions(options);
@@ -59265,17 +59121,23 @@ var require_follow_redirects = __commonJS({
59265
59121
  }
59266
59122
  RedirectableRequest.prototype = Object.create(Writable.prototype);
59267
59123
  RedirectableRequest.prototype.abort = function() {
59268
- abortRequest(this._currentRequest);
59124
+ destroyRequest(this._currentRequest);
59125
+ this._currentRequest.abort();
59269
59126
  this.emit("abort");
59270
59127
  };
59128
+ RedirectableRequest.prototype.destroy = function(error) {
59129
+ destroyRequest(this._currentRequest, error);
59130
+ destroy.call(this, error);
59131
+ return this;
59132
+ };
59271
59133
  RedirectableRequest.prototype.write = function(data, encoding, callback) {
59272
59134
  if (this._ending) {
59273
59135
  throw new WriteAfterEndError();
59274
59136
  }
59275
- if (!(typeof data === "string" || typeof data === "object" && "length" in data)) {
59137
+ if (!isString(data) && !isBuffer(data)) {
59276
59138
  throw new TypeError("data should be a string, Buffer or Uint8Array");
59277
59139
  }
59278
- if (typeof encoding === "function") {
59140
+ if (isFunction(encoding)) {
59279
59141
  callback = encoding;
59280
59142
  encoding = null;
59281
59143
  }
@@ -59295,10 +59157,10 @@ var require_follow_redirects = __commonJS({
59295
59157
  }
59296
59158
  };
59297
59159
  RedirectableRequest.prototype.end = function(data, encoding, callback) {
59298
- if (typeof data === "function") {
59160
+ if (isFunction(data)) {
59299
59161
  callback = data;
59300
59162
  data = encoding = null;
59301
- } else if (typeof encoding === "function") {
59163
+ } else if (isFunction(encoding)) {
59302
59164
  callback = encoding;
59303
59165
  encoding = null;
59304
59166
  }
@@ -59348,6 +59210,7 @@ var require_follow_redirects = __commonJS({
59348
59210
  self2.removeListener("abort", clearTimer);
59349
59211
  self2.removeListener("error", clearTimer);
59350
59212
  self2.removeListener("response", clearTimer);
59213
+ self2.removeListener("close", clearTimer);
59351
59214
  if (callback) {
59352
59215
  self2.removeListener("timeout", callback);
59353
59216
  }
@@ -59367,6 +59230,7 @@ var require_follow_redirects = __commonJS({
59367
59230
  this.on("abort", clearTimer);
59368
59231
  this.on("error", clearTimer);
59369
59232
  this.on("response", clearTimer);
59233
+ this.on("close", clearTimer);
59370
59234
  return this;
59371
59235
  };
59372
59236
  [
@@ -59422,7 +59286,7 @@ var require_follow_redirects = __commonJS({
59422
59286
  for (var event of events) {
59423
59287
  request.on(event, eventHandlers[event]);
59424
59288
  }
59425
- this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._currentUrl = this._options.path;
59289
+ this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._options.path;
59426
59290
  if (this._isRedirect) {
59427
59291
  var i = 0;
59428
59292
  var self2 = this;
@@ -59460,7 +59324,7 @@ var require_follow_redirects = __commonJS({
59460
59324
  this._requestBodyBuffers = [];
59461
59325
  return;
59462
59326
  }
59463
- abortRequest(this._currentRequest);
59327
+ destroyRequest(this._currentRequest);
59464
59328
  response.destroy();
59465
59329
  if (++this._redirectCount > this._options.maxRedirects) {
59466
59330
  this.emit("error", new TooManyRedirectsError());
@@ -59487,7 +59351,7 @@ var require_follow_redirects = __commonJS({
59487
59351
  try {
59488
59352
  redirectUrl = url.resolve(currentUrl, location);
59489
59353
  } catch (cause) {
59490
- this.emit("error", new RedirectionError(cause));
59354
+ this.emit("error", new RedirectionError({ cause }));
59491
59355
  return;
59492
59356
  }
59493
59357
  debug("redirecting to", redirectUrl);
@@ -59497,7 +59361,7 @@ var require_follow_redirects = __commonJS({
59497
59361
  if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
59498
59362
  removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
59499
59363
  }
59500
- if (typeof beforeRedirect === "function") {
59364
+ if (isFunction(beforeRedirect)) {
59501
59365
  var responseDetails = {
59502
59366
  headers: response.headers,
59503
59367
  statusCode
@@ -59518,7 +59382,7 @@ var require_follow_redirects = __commonJS({
59518
59382
  try {
59519
59383
  this._performRequest();
59520
59384
  } catch (cause) {
59521
- this.emit("error", new RedirectionError(cause));
59385
+ this.emit("error", new RedirectionError({ cause }));
59522
59386
  }
59523
59387
  };
59524
59388
  function wrap(protocols) {
@@ -59532,13 +59396,17 @@ var require_follow_redirects = __commonJS({
59532
59396
  var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
59533
59397
  var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
59534
59398
  function request(input, options, callback) {
59535
- if (typeof input === "string") {
59536
- var urlStr = input;
59399
+ if (isString(input)) {
59400
+ var parsed;
59537
59401
  try {
59538
- input = urlToOptions(new URL(urlStr));
59402
+ parsed = urlToOptions(new URL(input));
59539
59403
  } catch (err) {
59540
- input = url.parse(urlStr);
59404
+ parsed = url.parse(input);
59541
59405
  }
59406
+ if (!isString(parsed.protocol)) {
59407
+ throw new InvalidUrlError({ input });
59408
+ }
59409
+ input = parsed;
59542
59410
  } else if (URL && input instanceof URL) {
59543
59411
  input = urlToOptions(input);
59544
59412
  } else {
@@ -59546,7 +59414,7 @@ var require_follow_redirects = __commonJS({
59546
59414
  options = input;
59547
59415
  input = { protocol };
59548
59416
  }
59549
- if (typeof options === "function") {
59417
+ if (isFunction(options)) {
59550
59418
  callback = options;
59551
59419
  options = null;
59552
59420
  }
@@ -59555,6 +59423,9 @@ var require_follow_redirects = __commonJS({
59555
59423
  maxBodyLength: exports2.maxBodyLength
59556
59424
  }, input, options);
59557
59425
  options.nativeProtocols = nativeProtocols;
59426
+ if (!isString(options.host) && !isString(options.hostname)) {
59427
+ options.hostname = "::1";
59428
+ }
59558
59429
  assert.equal(options.protocol, protocol, "protocol mismatch");
59559
59430
  debug("options", options);
59560
59431
  return new RedirectableRequest(options, callback);
@@ -59588,43 +59459,49 @@ var require_follow_redirects = __commonJS({
59588
59459
  }
59589
59460
  return options;
59590
59461
  }
59591
- function removeMatchingHeaders(regex, headers) {
59462
+ function removeMatchingHeaders(regex2, headers) {
59592
59463
  var lastValue;
59593
59464
  for (var header in headers) {
59594
- if (regex.test(header)) {
59465
+ if (regex2.test(header)) {
59595
59466
  lastValue = headers[header];
59596
59467
  delete headers[header];
59597
59468
  }
59598
59469
  }
59599
59470
  return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
59600
59471
  }
59601
- function createErrorType(code, defaultMessage) {
59602
- function CustomError(cause) {
59472
+ function createErrorType(code, message, baseClass) {
59473
+ function CustomError(properties) {
59603
59474
  Error.captureStackTrace(this, this.constructor);
59604
- if (!cause) {
59605
- this.message = defaultMessage;
59606
- } else {
59607
- this.message = defaultMessage + ": " + cause.message;
59608
- this.cause = cause;
59609
- }
59475
+ Object.assign(this, properties || {});
59476
+ this.code = code;
59477
+ this.message = this.cause ? message + ": " + this.cause.message : message;
59610
59478
  }
59611
- CustomError.prototype = new Error();
59479
+ CustomError.prototype = new (baseClass || Error)();
59612
59480
  CustomError.prototype.constructor = CustomError;
59613
59481
  CustomError.prototype.name = "Error [" + code + "]";
59614
- CustomError.prototype.code = code;
59615
59482
  return CustomError;
59616
59483
  }
59617
- function abortRequest(request) {
59484
+ function destroyRequest(request, error) {
59618
59485
  for (var event of events) {
59619
59486
  request.removeListener(event, eventHandlers[event]);
59620
59487
  }
59621
59488
  request.on("error", noop);
59622
- request.abort();
59489
+ request.destroy(error);
59623
59490
  }
59624
59491
  function isSubdomain(subdomain, domain) {
59625
- const dot = subdomain.length - domain.length - 1;
59492
+ assert(isString(subdomain) && isString(domain));
59493
+ var dot = subdomain.length - domain.length - 1;
59626
59494
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
59627
59495
  }
59496
+ function isString(value) {
59497
+ return typeof value === "string" || value instanceof String;
59498
+ }
59499
+ function isFunction(value) {
59500
+ return typeof value === "function";
59501
+ }
59502
+ function isBuffer(value) {
59503
+ return typeof value === "object" && "length" in value;
59504
+ }
59628
59505
  module2.exports = wrap({ http, https });
59629
59506
  module2.exports.wrap = wrap;
59630
59507
  }
@@ -60906,14 +60783,14 @@ function isInteractive({ stream = process.stdout } = {}) {
60906
60783
  return Boolean(stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
60907
60784
  }
60908
60785
 
60909
- // ../../../node_modules/ora/index.js
60910
- var import_node_process6 = __toModule(require("node:process"));
60786
+ // node_modules/ora/index.js
60787
+ var import_node_process5 = __toModule(require("node:process"));
60911
60788
  var import_chalk2 = __toModule(require_source());
60912
60789
 
60913
- // ../../../node_modules/ora/node_modules/cli-cursor/index.js
60790
+ // node_modules/cli-cursor/index.js
60914
60791
  var import_node_process2 = __toModule(require("node:process"));
60915
60792
 
60916
- // ../../../node_modules/ora/node_modules/restore-cursor/index.js
60793
+ // node_modules/restore-cursor/index.js
60917
60794
  var import_node_process = __toModule(require("node:process"));
60918
60795
  var import_onetime = __toModule(require_onetime());
60919
60796
  var import_signal_exit = __toModule(require_signal_exit());
@@ -60924,7 +60801,7 @@ var restoreCursor = (0, import_onetime.default)(() => {
60924
60801
  });
60925
60802
  var restore_cursor_default = restoreCursor;
60926
60803
 
60927
- // ../../../node_modules/ora/node_modules/cli-cursor/index.js
60804
+ // node_modules/cli-cursor/index.js
60928
60805
  var isHidden = false;
60929
60806
  var cliCursor = {};
60930
60807
  cliCursor.show = (writableStream = import_node_process2.default.stderr) => {
@@ -60954,13 +60831,13 @@ cliCursor.toggle = (force, writableStream) => {
60954
60831
  };
60955
60832
  var cli_cursor_default = cliCursor;
60956
60833
 
60957
- // ../../../node_modules/ora/index.js
60834
+ // node_modules/ora/index.js
60958
60835
  var import_cli_spinners = __toModule(require_cli_spinners());
60959
60836
 
60960
- // ../../../node_modules/log-symbols/index.js
60837
+ // node_modules/log-symbols/index.js
60961
60838
  var import_chalk = __toModule(require_source());
60962
60839
 
60963
- // ../../../node_modules/log-symbols/node_modules/is-unicode-supported/index.js
60840
+ // node_modules/is-unicode-supported/index.js
60964
60841
  var import_node_process3 = __toModule(require("node:process"));
60965
60842
  function isUnicodeSupported() {
60966
60843
  if (import_node_process3.default.platform !== "win32") {
@@ -60969,7 +60846,7 @@ function isUnicodeSupported() {
60969
60846
  return Boolean(import_node_process3.default.env.CI) || Boolean(import_node_process3.default.env.WT_SESSION) || Boolean(import_node_process3.default.env.TERMINUS_SUBLIME) || import_node_process3.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process3.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process3.default.env.TERM_PROGRAM === "vscode" || import_node_process3.default.env.TERM === "xterm-256color" || import_node_process3.default.env.TERM === "alacritty" || import_node_process3.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
60970
60847
  }
60971
60848
 
60972
- // ../../../node_modules/log-symbols/index.js
60849
+ // node_modules/log-symbols/index.js
60973
60850
  var main = {
60974
60851
  info: import_chalk.default.blue("\u2139"),
60975
60852
  success: import_chalk.default.green("\u2714"),
@@ -60985,29 +60862,21 @@ var fallback = {
60985
60862
  var logSymbols = isUnicodeSupported() ? main : fallback;
60986
60863
  var log_symbols_default = logSymbols;
60987
60864
 
60988
- // ../../../node_modules/ora/node_modules/strip-ansi/index.js
60865
+ // node_modules/strip-ansi/index.js
60989
60866
  var import_ansi_regex = __toModule(require_ansi_regex());
60867
+ var regex = (0, import_ansi_regex.default)();
60990
60868
  function stripAnsi(string) {
60991
60869
  if (typeof string !== "string") {
60992
60870
  throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
60993
60871
  }
60994
- return string.replace((0, import_ansi_regex.default)(), "");
60872
+ return string.replace(regex, "");
60995
60873
  }
60996
60874
 
60997
- // ../../../node_modules/ora/index.js
60875
+ // node_modules/ora/index.js
60998
60876
  var import_wcwidth = __toModule(require_wcwidth());
60999
60877
 
61000
- // ../../../node_modules/ora/node_modules/is-unicode-supported/index.js
60878
+ // ../../../node_modules/stdin-discarder/index.js
61001
60879
  var import_node_process4 = __toModule(require("node:process"));
61002
- function isUnicodeSupported2() {
61003
- if (import_node_process4.default.platform !== "win32") {
61004
- return import_node_process4.default.env.TERM !== "linux";
61005
- }
61006
- return Boolean(import_node_process4.default.env.CI) || Boolean(import_node_process4.default.env.WT_SESSION) || Boolean(import_node_process4.default.env.TERMINUS_SUBLIME) || import_node_process4.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process4.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process4.default.env.TERM_PROGRAM === "vscode" || import_node_process4.default.env.TERM === "xterm-256color" || import_node_process4.default.env.TERM === "alacritty" || import_node_process4.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
61007
- }
61008
-
61009
- // ../../../node_modules/ora/utilities.js
61010
- var import_node_process5 = __toModule(require("node:process"));
61011
60880
  var import_node_readline = __toModule(require("node:readline"));
61012
60881
  var import_bl = __toModule(require_bl());
61013
60882
  var ASCII_ETX_CODE = 3;
@@ -61017,20 +60886,20 @@ var StdinDiscarder = class {
61017
60886
  #ourEmit;
61018
60887
  #rl;
61019
60888
  constructor() {
61020
- this.#mutedStream.pipe(import_node_process5.default.stdout);
60889
+ this.#mutedStream.pipe(import_node_process4.default.stdout);
61021
60890
  const self2 = this;
61022
- this.#ourEmit = function(event, data, ...args) {
61023
- const { stdin } = import_node_process5.default;
60891
+ this.#ourEmit = function(event, data, ...arguments_) {
60892
+ const { stdin } = import_node_process4.default;
61024
60893
  if (self2.#requests > 0 || stdin.emit === self2.#ourEmit) {
61025
60894
  if (event === "keypress") {
61026
60895
  return;
61027
60896
  }
61028
60897
  if (event === "data" && data.includes(ASCII_ETX_CODE)) {
61029
- import_node_process5.default.emit("SIGINT");
60898
+ import_node_process4.default.emit("SIGINT");
61030
60899
  }
61031
- Reflect.apply(self2.#ourEmit, this, [event, data, ...args]);
60900
+ Reflect.apply(self2.#ourEmit, this, [event, data, ...arguments_]);
61032
60901
  } else {
61033
- Reflect.apply(import_node_process5.default.stdin.emit, this, [event, data, ...args]);
60902
+ Reflect.apply(import_node_process4.default.stdin.emit, this, [event, data, ...arguments_]);
61034
60903
  }
61035
60904
  };
61036
60905
  }
@@ -61050,33 +60919,35 @@ var StdinDiscarder = class {
61050
60919
  }
61051
60920
  }
61052
60921
  _realStart() {
61053
- if (import_node_process5.default.platform === "win32") {
60922
+ if (import_node_process4.default.platform === "win32") {
61054
60923
  return;
61055
60924
  }
61056
60925
  this.#rl = import_node_readline.default.createInterface({
61057
- input: import_node_process5.default.stdin,
60926
+ input: import_node_process4.default.stdin,
61058
60927
  output: this.#mutedStream
61059
60928
  });
61060
60929
  this.#rl.on("SIGINT", () => {
61061
- if (import_node_process5.default.listenerCount("SIGINT") === 0) {
61062
- import_node_process5.default.emit("SIGINT");
60930
+ if (import_node_process4.default.listenerCount("SIGINT") === 0) {
60931
+ import_node_process4.default.emit("SIGINT");
61063
60932
  } else {
61064
60933
  this.#rl.close();
61065
- import_node_process5.default.kill(import_node_process5.default.pid, "SIGINT");
60934
+ import_node_process4.default.kill(import_node_process4.default.pid, "SIGINT");
61066
60935
  }
61067
60936
  });
61068
60937
  }
61069
60938
  _realStop() {
61070
- if (import_node_process5.default.platform === "win32") {
60939
+ if (import_node_process4.default.platform === "win32") {
61071
60940
  return;
61072
60941
  }
61073
60942
  this.#rl.close();
61074
60943
  this.#rl = void 0;
61075
60944
  }
61076
60945
  };
60946
+ var stdinDiscarder = new StdinDiscarder();
60947
+ var stdin_discarder_default = stdinDiscarder;
61077
60948
 
61078
- // ../../../node_modules/ora/index.js
61079
- var stdinDiscarder;
60949
+ // node_modules/ora/index.js
60950
+ var import_cli_spinners2 = __toModule(require_cli_spinners());
61080
60951
  var Ora = class {
61081
60952
  #linesToClear = 0;
61082
60953
  #isDiscardingStdin = false;
@@ -61092,11 +60963,9 @@ var Ora = class {
61092
60963
  #indent;
61093
60964
  #text;
61094
60965
  #prefixText;
60966
+ #suffixText;
61095
60967
  color;
61096
60968
  constructor(options) {
61097
- if (!stdinDiscarder) {
61098
- stdinDiscarder = new StdinDiscarder();
61099
- }
61100
60969
  if (typeof options === "string") {
61101
60970
  options = {
61102
60971
  text: options
@@ -61104,7 +60973,7 @@ var Ora = class {
61104
60973
  }
61105
60974
  this.#options = {
61106
60975
  color: "cyan",
61107
- stream: import_node_process6.default.stderr,
60976
+ stream: import_node_process5.default.stderr,
61108
60977
  discardStdin: true,
61109
60978
  hideCursor: true,
61110
60979
  ...options
@@ -61117,8 +60986,9 @@ var Ora = class {
61117
60986
  this.#isSilent = typeof this.#options.isSilent === "boolean" ? this.#options.isSilent : false;
61118
60987
  this.text = this.#options.text;
61119
60988
  this.prefixText = this.#options.prefixText;
60989
+ this.suffixText = this.#options.suffixText;
61120
60990
  this.indent = this.#options.indent;
61121
- if (import_node_process6.default.env.NODE_ENV === "test") {
60991
+ if (import_node_process5.default.env.NODE_ENV === "test") {
61122
60992
  this._stream = this.#stream;
61123
60993
  this._isEnabled = this.#isEnabled;
61124
60994
  Object.defineProperty(this, "_linesToClear", {
@@ -61165,7 +61035,7 @@ var Ora = class {
61165
61035
  throw new Error("The given spinner must have a `frames` property");
61166
61036
  }
61167
61037
  this.#spinner = spinner;
61168
- } else if (!isUnicodeSupported2()) {
61038
+ } else if (!isUnicodeSupported()) {
61169
61039
  this.#spinner = import_cli_spinners.default.line;
61170
61040
  } else if (spinner === void 0) {
61171
61041
  this.#spinner = import_cli_spinners.default.dots;
@@ -61189,6 +61059,13 @@ var Ora = class {
61189
61059
  this.#prefixText = value || "";
61190
61060
  this.updateLineCount();
61191
61061
  }
61062
+ get suffixText() {
61063
+ return this.#suffixText;
61064
+ }
61065
+ set suffixText(value) {
61066
+ this.#suffixText = value || "";
61067
+ this.updateLineCount();
61068
+ }
61192
61069
  get isSpinning() {
61193
61070
  return this.#id !== void 0;
61194
61071
  }
@@ -61201,11 +61078,22 @@ var Ora = class {
61201
61078
  }
61202
61079
  return "";
61203
61080
  }
61081
+ getFullSuffixText(suffixText = this.#suffixText, prefix = " ") {
61082
+ if (typeof suffixText === "string" && suffixText !== "") {
61083
+ return prefix + suffixText;
61084
+ }
61085
+ if (typeof suffixText === "function") {
61086
+ return prefix + suffixText();
61087
+ }
61088
+ return "";
61089
+ }
61204
61090
  updateLineCount() {
61205
61091
  const columns = this.#stream.columns || 80;
61206
61092
  const fullPrefixText = this.getFullPrefixText(this.#prefixText, "-");
61093
+ const fullSuffixText = this.getFullSuffixText(this.#suffixText, "-");
61094
+ const fullText = " ".repeat(this.#indent) + fullPrefixText + "--" + this.#text + "--" + fullSuffixText;
61207
61095
  this.#lineCount = 0;
61208
- for (const line of stripAnsi(" ".repeat(this.#indent) + fullPrefixText + "--" + this.#text).split("\n")) {
61096
+ for (const line of stripAnsi(fullText).split("\n")) {
61209
61097
  this.#lineCount += Math.max(1, Math.ceil((0, import_wcwidth.default)(line) / columns));
61210
61098
  }
61211
61099
  }
@@ -61236,7 +61124,8 @@ var Ora = class {
61236
61124
  this.#frameIndex = ++this.#frameIndex % frames.length;
61237
61125
  const fullPrefixText = typeof this.#prefixText === "string" && this.#prefixText !== "" ? this.#prefixText + " " : "";
61238
61126
  const fullText = typeof this.text === "string" ? " " + this.text : "";
61239
- return fullPrefixText + frame + fullText;
61127
+ const fullSuffixText = typeof this.#suffixText === "string" && this.#suffixText !== "" ? " " + this.#suffixText : "";
61128
+ return fullPrefixText + frame + fullText + fullSuffixText;
61240
61129
  }
61241
61130
  clear() {
61242
61131
  if (!this.#isEnabled || !this.#stream.isTTY) {
@@ -61285,9 +61174,9 @@ var Ora = class {
61285
61174
  if (this.#options.hideCursor) {
61286
61175
  cli_cursor_default.hide(this.#stream);
61287
61176
  }
61288
- if (this.#options.discardStdin && import_node_process6.default.stdin.isTTY) {
61177
+ if (this.#options.discardStdin && import_node_process5.default.stdin.isTTY) {
61289
61178
  this.#isDiscardingStdin = true;
61290
- stdinDiscarder.start();
61179
+ stdin_discarder_default.start();
61291
61180
  }
61292
61181
  this.render();
61293
61182
  this.#id = setInterval(this.render.bind(this), this.interval);
@@ -61304,8 +61193,8 @@ var Ora = class {
61304
61193
  if (this.#options.hideCursor) {
61305
61194
  cli_cursor_default.show(this.#stream);
61306
61195
  }
61307
- if (this.#options.discardStdin && import_node_process6.default.stdin.isTTY && this.#isDiscardingStdin) {
61308
- stdinDiscarder.stop();
61196
+ if (this.#options.discardStdin && import_node_process5.default.stdin.isTTY && this.#isDiscardingStdin) {
61197
+ stdin_discarder_default.stop();
61309
61198
  this.#isDiscardingStdin = false;
61310
61199
  }
61311
61200
  return this;
@@ -61327,11 +61216,15 @@ var Ora = class {
61327
61216
  return this;
61328
61217
  }
61329
61218
  const prefixText = options.prefixText || this.#prefixText;
61219
+ const fullPrefixText = this.getFullPrefixText(prefixText, " ");
61220
+ const symbolText = options.symbol || " ";
61330
61221
  const text = options.text || this.text;
61331
61222
  const fullText = typeof text === "string" ? " " + text : "";
61223
+ const suffixText = options.suffixText !== void 0 ? options.suffixText : this.#suffixText;
61224
+ const fullSuffixText = this.getFullSuffixText(suffixText, " ");
61225
+ const textToWrite = fullPrefixText + symbolText + fullText + fullSuffixText + "\n";
61332
61226
  this.stop();
61333
- this.#stream.write(`${this.getFullPrefixText(prefixText, " ")}${options.symbol || " "}${fullText}
61334
- `);
61227
+ this.#stream.write(textToWrite);
61335
61228
  return this;
61336
61229
  }
61337
61230
  };