publish-microfrontend 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.
Files changed (2) hide show
  1. package/lib/index.js +1232 -1300
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1215,8 +1215,8 @@ var require_yargs_parser = __commonJS({
1215
1215
  }
1216
1216
  }
1217
1217
  aliasArrays.forEach(function(aliasArray) {
1218
- aliasArray = aliasArray.filter(function(v, i, self) {
1219
- return self.indexOf(v) === i;
1218
+ aliasArray = aliasArray.filter(function(v, i, self2) {
1219
+ return self2.indexOf(v) === i;
1220
1220
  });
1221
1221
  combined[aliasArray.pop()] = aliasArray;
1222
1222
  });
@@ -1259,11 +1259,11 @@ var require_command = __commonJS({
1259
1259
  var Parser = require_yargs_parser();
1260
1260
  var DEFAULT_MARKER = /(^\*)|(^\$0)/;
1261
1261
  function command(yargs2, usage, validation, globalMiddleware = []) {
1262
- const self = {};
1262
+ const self2 = {};
1263
1263
  let handlers = {};
1264
1264
  let aliasMap = {};
1265
1265
  let defaultCommand;
1266
- self.addHandler = function addHandler(cmd, description, builder, handler, commandMiddleware, deprecated) {
1266
+ self2.addHandler = function addHandler(cmd, description, builder, handler, commandMiddleware, deprecated) {
1267
1267
  let aliases = [];
1268
1268
  const middlewares = middleware_1.commandMiddlewareFactory(commandMiddleware);
1269
1269
  handler = handler || (() => {
@@ -1275,11 +1275,11 @@ var require_command = __commonJS({
1275
1275
  let command2 = Array.isArray(cmd.command) || typeof cmd.command === "string" ? cmd.command : moduleName(cmd);
1276
1276
  if (cmd.aliases)
1277
1277
  command2 = [].concat(command2).concat(cmd.aliases);
1278
- self.addHandler(command2, extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated);
1278
+ self2.addHandler(command2, extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated);
1279
1279
  return;
1280
1280
  }
1281
1281
  if (isCommandBuilderDefinition(builder)) {
1282
- self.addHandler([cmd].concat(aliases), description, builder.builder, builder.handler, builder.middlewares, builder.deprecated);
1282
+ self2.addHandler([cmd].concat(aliases), description, builder.builder, builder.handler, builder.middlewares, builder.deprecated);
1283
1283
  return;
1284
1284
  }
1285
1285
  const parsedCommand = parse_command_1.parseCommand(cmd);
@@ -1318,7 +1318,7 @@ var require_command = __commonJS({
1318
1318
  if (isDefault)
1319
1319
  defaultCommand = handlers[parsedCommand.cmd];
1320
1320
  };
1321
- self.addDirectory = function addDirectory(dir, context, req, callerFile, opts) {
1321
+ self2.addDirectory = function addDirectory(dir, context, req, callerFile, opts) {
1322
1322
  opts = opts || {};
1323
1323
  if (typeof opts.recurse !== "boolean")
1324
1324
  opts.recurse = false;
@@ -1331,7 +1331,7 @@ var require_command = __commonJS({
1331
1331
  if (~context.files.indexOf(joined))
1332
1332
  return visited;
1333
1333
  context.files.push(joined);
1334
- self.addHandler(visited);
1334
+ self2.addHandler(visited);
1335
1335
  }
1336
1336
  return visited;
1337
1337
  };
@@ -1354,10 +1354,10 @@ var require_command = __commonJS({
1354
1354
  }
1355
1355
  return false;
1356
1356
  }
1357
- self.getCommands = () => Object.keys(handlers).concat(Object.keys(aliasMap));
1358
- self.getCommandHandlers = () => handlers;
1359
- self.hasDefaultCommand = () => !!defaultCommand;
1360
- self.runCommand = function runCommand2(command2, yargs3, parsed, commandIndex) {
1357
+ self2.getCommands = () => Object.keys(handlers).concat(Object.keys(aliasMap));
1358
+ self2.getCommandHandlers = () => handlers;
1359
+ self2.hasDefaultCommand = () => !!defaultCommand;
1360
+ self2.runCommand = function runCommand2(command2, yargs3, parsed, commandIndex) {
1361
1361
  let aliases = parsed.aliases;
1362
1362
  const commandHandler = handlers[command2] || handlers[aliasMap[command2]] || defaultCommand;
1363
1363
  const currentContext = yargs3.getContext();
@@ -1450,7 +1450,7 @@ var require_command = __commonJS({
1450
1450
  pc.push(c);
1451
1451
  return `$0 ${pc.join(" ")}`;
1452
1452
  }
1453
- self.runDefaultBuilderOn = function(yargs3) {
1453
+ self2.runDefaultBuilderOn = function(yargs3) {
1454
1454
  common_types_1.assertNotStrictEqual(defaultCommand, void 0);
1455
1455
  if (shouldUpdateUsage(yargs3)) {
1456
1456
  const commandString = DEFAULT_MARKER.test(defaultCommand.original) ? defaultCommand.original : defaultCommand.original.replace(/^[^[\]<>]*/, "$0 ");
@@ -1480,7 +1480,7 @@ var require_command = __commonJS({
1480
1480
  populatePositional(maybe, argv, positionalMap);
1481
1481
  }
1482
1482
  argv._ = context.commands.concat(argv._);
1483
- postProcessPositionals(argv, positionalMap, self.cmdToParseOptions(commandHandler.original));
1483
+ postProcessPositionals(argv, positionalMap, self2.cmdToParseOptions(commandHandler.original));
1484
1484
  return positionalMap;
1485
1485
  }
1486
1486
  function populatePositional(positional, argv, positionalMap) {
@@ -1533,7 +1533,7 @@ var require_command = __commonJS({
1533
1533
  });
1534
1534
  }
1535
1535
  }
1536
- self.cmdToParseOptions = function(cmdString) {
1536
+ self2.cmdToParseOptions = function(cmdString) {
1537
1537
  const parseOptions = {
1538
1538
  array: [],
1539
1539
  default: {},
@@ -1560,21 +1560,21 @@ var require_command = __commonJS({
1560
1560
  });
1561
1561
  return parseOptions;
1562
1562
  };
1563
- self.reset = () => {
1563
+ self2.reset = () => {
1564
1564
  handlers = {};
1565
1565
  aliasMap = {};
1566
1566
  defaultCommand = void 0;
1567
- return self;
1567
+ return self2;
1568
1568
  };
1569
1569
  const frozens = [];
1570
- self.freeze = () => {
1570
+ self2.freeze = () => {
1571
1571
  frozens.push({
1572
1572
  handlers,
1573
1573
  aliasMap,
1574
1574
  defaultCommand
1575
1575
  });
1576
1576
  };
1577
- self.unfreeze = () => {
1577
+ self2.unfreeze = () => {
1578
1578
  const frozen = frozens.pop();
1579
1579
  common_types_1.assertNotStrictEqual(frozen, void 0);
1580
1580
  ({
@@ -1583,7 +1583,7 @@ var require_command = __commonJS({
1583
1583
  defaultCommand
1584
1584
  } = frozen);
1585
1585
  };
1586
- return self;
1586
+ return self2;
1587
1587
  }
1588
1588
  exports2.command = command;
1589
1589
  function isCommandHandlerDefinition(cmd) {
@@ -3225,28 +3225,28 @@ var require_usage = __commonJS({
3225
3225
  var stringWidth = require_string_width();
3226
3226
  function usage(yargs2, y18n) {
3227
3227
  const __ = y18n.__;
3228
- const self = {};
3228
+ const self2 = {};
3229
3229
  const fails = [];
3230
- self.failFn = function failFn(f) {
3230
+ self2.failFn = function failFn(f) {
3231
3231
  fails.push(f);
3232
3232
  };
3233
3233
  let failMessage = null;
3234
3234
  let showHelpOnFail = true;
3235
- self.showHelpOnFail = function showHelpOnFailFn(arg1 = true, arg2) {
3235
+ self2.showHelpOnFail = function showHelpOnFailFn(arg1 = true, arg2) {
3236
3236
  function parseFunctionArgs() {
3237
3237
  return typeof arg1 === "string" ? [true, arg1] : [arg1, arg2];
3238
3238
  }
3239
3239
  const [enabled, message] = parseFunctionArgs();
3240
3240
  failMessage = message;
3241
3241
  showHelpOnFail = enabled;
3242
- return self;
3242
+ return self2;
3243
3243
  };
3244
3244
  let failureOutput = false;
3245
- self.fail = function fail2(msg, err) {
3245
+ self2.fail = function fail2(msg, err) {
3246
3246
  const logger = yargs2._getLoggerInstance();
3247
3247
  if (fails.length) {
3248
3248
  for (let i = fails.length - 1; i >= 0; --i) {
3249
- fails[i](msg, err, self);
3249
+ fails[i](msg, err, self2);
3250
3250
  }
3251
3251
  } else {
3252
3252
  if (yargs2.getExitProcess())
@@ -3277,31 +3277,31 @@ var require_usage = __commonJS({
3277
3277
  };
3278
3278
  let usages = [];
3279
3279
  let usageDisabled = false;
3280
- self.usage = (msg, description) => {
3280
+ self2.usage = (msg, description) => {
3281
3281
  if (msg === null) {
3282
3282
  usageDisabled = true;
3283
3283
  usages = [];
3284
- return self;
3284
+ return self2;
3285
3285
  }
3286
3286
  usageDisabled = false;
3287
3287
  usages.push([msg, description || ""]);
3288
- return self;
3288
+ return self2;
3289
3289
  };
3290
- self.getUsage = () => {
3290
+ self2.getUsage = () => {
3291
3291
  return usages;
3292
3292
  };
3293
- self.getUsageDisabled = () => {
3293
+ self2.getUsageDisabled = () => {
3294
3294
  return usageDisabled;
3295
3295
  };
3296
- self.getPositionalGroupName = () => {
3296
+ self2.getPositionalGroupName = () => {
3297
3297
  return __("Positionals:");
3298
3298
  };
3299
3299
  let examples = [];
3300
- self.example = (cmd, description) => {
3300
+ self2.example = (cmd, description) => {
3301
3301
  examples.push([cmd, description || ""]);
3302
3302
  };
3303
3303
  let commands = [];
3304
- self.command = function command(cmd, description, isDefault, aliases, deprecated = false) {
3304
+ self2.command = function command(cmd, description, isDefault, aliases, deprecated = false) {
3305
3305
  if (isDefault) {
3306
3306
  commands = commands.map((cmdArray) => {
3307
3307
  cmdArray[2] = false;
@@ -3310,29 +3310,29 @@ var require_usage = __commonJS({
3310
3310
  }
3311
3311
  commands.push([cmd, description || "", isDefault, aliases, deprecated]);
3312
3312
  };
3313
- self.getCommands = () => commands;
3313
+ self2.getCommands = () => commands;
3314
3314
  let descriptions = {};
3315
- self.describe = function describe(keyOrKeys, desc) {
3315
+ self2.describe = function describe(keyOrKeys, desc) {
3316
3316
  if (Array.isArray(keyOrKeys)) {
3317
3317
  keyOrKeys.forEach((k) => {
3318
- self.describe(k, desc);
3318
+ self2.describe(k, desc);
3319
3319
  });
3320
3320
  } else if (typeof keyOrKeys === "object") {
3321
3321
  Object.keys(keyOrKeys).forEach((k) => {
3322
- self.describe(k, keyOrKeys[k]);
3322
+ self2.describe(k, keyOrKeys[k]);
3323
3323
  });
3324
3324
  } else {
3325
3325
  descriptions[keyOrKeys] = desc;
3326
3326
  }
3327
3327
  };
3328
- self.getDescriptions = () => descriptions;
3328
+ self2.getDescriptions = () => descriptions;
3329
3329
  let epilogs = [];
3330
- self.epilog = (msg) => {
3330
+ self2.epilog = (msg) => {
3331
3331
  epilogs.push(msg);
3332
3332
  };
3333
3333
  let wrapSet = false;
3334
3334
  let wrap;
3335
- self.wrap = (cols) => {
3335
+ self2.wrap = (cols) => {
3336
3336
  wrapSet = true;
3337
3337
  wrap = cols;
3338
3338
  };
@@ -3344,8 +3344,8 @@ var require_usage = __commonJS({
3344
3344
  return wrap;
3345
3345
  }
3346
3346
  const deferY18nLookupPrefix = "__yargsString__:";
3347
- self.deferY18nLookup = (str) => deferY18nLookupPrefix + str;
3348
- self.help = function help() {
3347
+ self2.deferY18nLookup = (str) => deferY18nLookupPrefix + str;
3348
+ self2.help = function help() {
3349
3349
  if (cachedHelpMessage)
3350
3350
  return cachedHelpMessage;
3351
3351
  normalizeAliases();
@@ -3450,7 +3450,7 @@ var require_usage = __commonJS({
3450
3450
  ui.div(groupName);
3451
3451
  const switches = normalizedKeys.reduce((acc, key) => {
3452
3452
  acc[key] = [key].concat(options.alias[key] || []).map((sw) => {
3453
- if (groupName === self.getPositionalGroupName())
3453
+ if (groupName === self2.getPositionalGroupName())
3454
3454
  return sw;
3455
3455
  else {
3456
3456
  return (/^[0-9]$/.test(sw) ? ~options.boolean.indexOf(key) ? "-" : "--" : sw.length > 1 ? "--" : "-") + sw;
@@ -3481,7 +3481,7 @@ var require_usage = __commonJS({
3481
3481
  key in deprecatedOptions ? deprecatedExtra(deprecatedOptions[key]) : null,
3482
3482
  type,
3483
3483
  key in demandedOptions ? `[${__("required")}]` : null,
3484
- options.choices && options.choices[key] ? `[${__("choices:")} ${self.stringifiedValues(options.choices[key])}]` : null,
3484
+ options.choices && options.choices[key] ? `[${__("choices:")} ${self2.stringifiedValues(options.choices[key])}]` : null,
3485
3485
  defaultString(options.default[key], options.defaultDescription[key])
3486
3486
  ].filter(Boolean).join(" ");
3487
3487
  ui.span({ text: kswitch, padding: [0, 2, 0, 2], width: maxWidth(switches, theWrap) + 4 }, desc);
@@ -3540,7 +3540,7 @@ var require_usage = __commonJS({
3540
3540
  (Object.keys(options.alias) || []).forEach((key) => {
3541
3541
  options.alias[key].forEach((alias) => {
3542
3542
  if (descriptions[alias])
3543
- self.describe(key, descriptions[alias]);
3543
+ self2.describe(key, descriptions[alias]);
3544
3544
  if (alias in demandedOptions)
3545
3545
  yargs2.demandOption(key, demandedOptions[alias]);
3546
3546
  if (~options.boolean.indexOf(alias))
@@ -3559,10 +3559,10 @@ var require_usage = __commonJS({
3559
3559
  });
3560
3560
  }
3561
3561
  let cachedHelpMessage;
3562
- self.cacheHelpMessage = function() {
3562
+ self2.cacheHelpMessage = function() {
3563
3563
  cachedHelpMessage = this.help();
3564
3564
  };
3565
- self.clearCachedHelpMessage = function() {
3565
+ self2.clearCachedHelpMessage = function() {
3566
3566
  cachedHelpMessage = void 0;
3567
3567
  };
3568
3568
  function addUngroupedKeys(keys, aliases, groups, defaultGroup) {
@@ -3582,18 +3582,18 @@ var require_usage = __commonJS({
3582
3582
  function filterHiddenOptions(key) {
3583
3583
  return yargs2.getOptions().hiddenOptions.indexOf(key) < 0 || yargs2.parsed.argv[yargs2.getOptions().showHiddenOpt];
3584
3584
  }
3585
- self.showHelp = (level) => {
3585
+ self2.showHelp = (level) => {
3586
3586
  const logger = yargs2._getLoggerInstance();
3587
3587
  if (!level)
3588
3588
  level = "error";
3589
3589
  const emit = typeof level === "function" ? level : logger[level];
3590
- emit(self.help());
3590
+ emit(self2.help());
3591
3591
  };
3592
- self.functionDescription = (fn) => {
3592
+ self2.functionDescription = (fn) => {
3593
3593
  const description = fn.name ? decamelize(fn.name, "-") : __("generated-value");
3594
3594
  return ["(", description, ")"].join("");
3595
3595
  };
3596
- self.stringifiedValues = function stringifiedValues(values, separator) {
3596
+ self2.stringifiedValues = function stringifiedValues(values, separator) {
3597
3597
  let string2 = "";
3598
3598
  const sep = separator || ", ";
3599
3599
  const array = [].concat(values);
@@ -3635,14 +3635,14 @@ var require_usage = __commonJS({
3635
3635
  }
3636
3636
  }
3637
3637
  let version = null;
3638
- self.version = (ver) => {
3638
+ self2.version = (ver) => {
3639
3639
  version = ver;
3640
3640
  };
3641
- self.showVersion = () => {
3641
+ self2.showVersion = () => {
3642
3642
  const logger = yargs2._getLoggerInstance();
3643
3643
  logger.log(version);
3644
3644
  };
3645
- self.reset = function reset(localLookup) {
3645
+ self2.reset = function reset(localLookup) {
3646
3646
  failMessage = null;
3647
3647
  failureOutput = false;
3648
3648
  usages = [];
@@ -3651,10 +3651,10 @@ var require_usage = __commonJS({
3651
3651
  examples = [];
3652
3652
  commands = [];
3653
3653
  descriptions = obj_filter_1.objFilter(descriptions, (k) => !localLookup[k]);
3654
- return self;
3654
+ return self2;
3655
3655
  };
3656
3656
  const frozens = [];
3657
- self.freeze = function freeze() {
3657
+ self2.freeze = function freeze() {
3658
3658
  frozens.push({
3659
3659
  failMessage,
3660
3660
  failureOutput,
@@ -3666,7 +3666,7 @@ var require_usage = __commonJS({
3666
3666
  descriptions
3667
3667
  });
3668
3668
  };
3669
- self.unfreeze = function unfreeze() {
3669
+ self2.unfreeze = function unfreeze() {
3670
3670
  const frozen = frozens.pop();
3671
3671
  common_types_1.assertNotStrictEqual(frozen, void 0);
3672
3672
  ({
@@ -3680,7 +3680,7 @@ var require_usage = __commonJS({
3680
3680
  descriptions
3681
3681
  } = frozen);
3682
3682
  };
3683
- return self;
3683
+ return self2;
3684
3684
  }
3685
3685
  exports2.usage = usage;
3686
3686
  }
@@ -3756,15 +3756,15 @@ var require_completion = __commonJS({
3756
3756
  var path = require("path");
3757
3757
  var common_types_1 = require_common_types();
3758
3758
  function completion(yargs2, usage, command) {
3759
- const self = {
3759
+ const self2 = {
3760
3760
  completionKey: "get-yargs-completions"
3761
3761
  };
3762
3762
  let aliases;
3763
- self.setParsed = function setParsed(parsed) {
3763
+ self2.setParsed = function setParsed(parsed) {
3764
3764
  aliases = parsed.aliases;
3765
3765
  };
3766
3766
  const zshShell = process.env.SHELL && process.env.SHELL.indexOf("zsh") !== -1 || process.env.ZSH_NAME && process.env.ZSH_NAME.indexOf("zsh") !== -1;
3767
- self.getCompletion = function getCompletion(args2, done) {
3767
+ self2.getCompletion = function getCompletion(args2, done) {
3768
3768
  const completions = [];
3769
3769
  const current2 = args2.length ? args2[args2.length - 1] : "";
3770
3770
  const argv = yargs2.parse(args2, true);
@@ -3847,7 +3847,7 @@ var require_completion = __commonJS({
3847
3847
  }
3848
3848
  done(completions);
3849
3849
  };
3850
- self.generateCompletionScript = function generateCompletionScript($0, cmd) {
3850
+ self2.generateCompletionScript = function generateCompletionScript($0, cmd) {
3851
3851
  let script = zshShell ? templates.completionZshTemplate : templates.completionShTemplate;
3852
3852
  const name = path.basename($0);
3853
3853
  if ($0.match(/\.js$/))
@@ -3857,10 +3857,10 @@ var require_completion = __commonJS({
3857
3857
  return script.replace(/{{app_path}}/g, $0);
3858
3858
  };
3859
3859
  let completionFunction = null;
3860
- self.registerFunction = (fn) => {
3860
+ self2.registerFunction = (fn) => {
3861
3861
  completionFunction = fn;
3862
3862
  };
3863
- return self;
3863
+ return self2;
3864
3864
  }
3865
3865
  exports2.completion = completion;
3866
3866
  function isSyncCompletionFunction(completionFunction) {
@@ -3918,8 +3918,8 @@ var require_validation = __commonJS({
3918
3918
  function validation(yargs2, usage, y18n) {
3919
3919
  const __ = y18n.__;
3920
3920
  const __n = y18n.__n;
3921
- const self = {};
3922
- self.nonOptionCount = function nonOptionCount(argv) {
3921
+ const self2 = {};
3922
+ self2.nonOptionCount = function nonOptionCount(argv) {
3923
3923
  const demandedCommands = yargs2.getDemandedCommands();
3924
3924
  const _s = argv._.length - yargs2.getContext().commands.length;
3925
3925
  if (demandedCommands._ && (_s < demandedCommands._.min || _s > demandedCommands._.max)) {
@@ -3938,12 +3938,12 @@ var require_validation = __commonJS({
3938
3938
  }
3939
3939
  }
3940
3940
  };
3941
- self.positionalCount = function positionalCount(required, observed) {
3941
+ self2.positionalCount = function positionalCount(required, observed) {
3942
3942
  if (observed < required) {
3943
3943
  usage.fail(__n("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", observed, observed, required));
3944
3944
  }
3945
3945
  };
3946
- self.requiredArguments = function requiredArguments(argv) {
3946
+ self2.requiredArguments = function requiredArguments(argv) {
3947
3947
  const demandedOptions = yargs2.getDemandedOptions();
3948
3948
  let missing = null;
3949
3949
  for (const key of Object.keys(demandedOptions)) {
@@ -3965,12 +3965,12 @@ ${customMsgs.join("\n")}` : "";
3965
3965
  usage.fail(__n("Missing required argument: %s", "Missing required arguments: %s", Object.keys(missing).length, Object.keys(missing).join(", ") + customMsg));
3966
3966
  }
3967
3967
  };
3968
- self.unknownArguments = function unknownArguments(argv, aliases, positionalMap, isDefaultCommand) {
3968
+ self2.unknownArguments = function unknownArguments(argv, aliases, positionalMap, isDefaultCommand) {
3969
3969
  const commandKeys = yargs2.getCommandInstance().getCommands();
3970
3970
  const unknown = [];
3971
3971
  const currentContext = yargs2.getContext();
3972
3972
  Object.keys(argv).forEach((key) => {
3973
- if (specialKeys.indexOf(key) === -1 && !Object.prototype.hasOwnProperty.call(positionalMap, key) && !Object.prototype.hasOwnProperty.call(yargs2._getParseContext(), key) && !self.isValidAndSomeAliasIsNotNew(key, aliases)) {
3973
+ if (specialKeys.indexOf(key) === -1 && !Object.prototype.hasOwnProperty.call(positionalMap, key) && !Object.prototype.hasOwnProperty.call(yargs2._getParseContext(), key) && !self2.isValidAndSomeAliasIsNotNew(key, aliases)) {
3974
3974
  unknown.push(key);
3975
3975
  }
3976
3976
  });
@@ -3985,7 +3985,7 @@ ${customMsgs.join("\n")}` : "";
3985
3985
  usage.fail(__n("Unknown argument: %s", "Unknown arguments: %s", unknown.length, unknown.join(", ")));
3986
3986
  }
3987
3987
  };
3988
- self.unknownCommands = function unknownCommands(argv) {
3988
+ self2.unknownCommands = function unknownCommands(argv) {
3989
3989
  const commandKeys = yargs2.getCommandInstance().getCommands();
3990
3990
  const unknown = [];
3991
3991
  const currentContext = yargs2.getContext();
@@ -4003,7 +4003,7 @@ ${customMsgs.join("\n")}` : "";
4003
4003
  return false;
4004
4004
  }
4005
4005
  };
4006
- self.isValidAndSomeAliasIsNotNew = function isValidAndSomeAliasIsNotNew(key, aliases) {
4006
+ self2.isValidAndSomeAliasIsNotNew = function isValidAndSomeAliasIsNotNew(key, aliases) {
4007
4007
  if (!Object.prototype.hasOwnProperty.call(aliases, key)) {
4008
4008
  return false;
4009
4009
  }
@@ -4015,7 +4015,7 @@ ${customMsgs.join("\n")}` : "";
4015
4015
  }
4016
4016
  return false;
4017
4017
  };
4018
- self.limitedChoices = function limitedChoices(argv) {
4018
+ self2.limitedChoices = function limitedChoices(argv) {
4019
4019
  const options = yargs2.getOptions();
4020
4020
  const invalid = {};
4021
4021
  if (!Object.keys(options.choices).length)
@@ -4040,13 +4040,13 @@ ${customMsgs.join("\n")}` : "";
4040
4040
  usage.fail(msg);
4041
4041
  };
4042
4042
  let checks = [];
4043
- self.check = function check(f, global2) {
4043
+ self2.check = function check(f, global2) {
4044
4044
  checks.push({
4045
4045
  func: f,
4046
4046
  global: global2
4047
4047
  });
4048
4048
  };
4049
- self.customChecks = function customChecks(argv, aliases) {
4049
+ self2.customChecks = function customChecks(argv, aliases) {
4050
4050
  for (let i = 0, f; (f = checks[i]) !== void 0; i++) {
4051
4051
  const func = f.func;
4052
4052
  let result = null;
@@ -4064,11 +4064,11 @@ ${customMsgs.join("\n")}` : "";
4064
4064
  }
4065
4065
  };
4066
4066
  let implied = {};
4067
- self.implies = function implies(key, value) {
4067
+ self2.implies = function implies(key, value) {
4068
4068
  argsert_1.argsert("<string|object> [array|number|string]", [key, value], arguments.length);
4069
4069
  if (typeof key === "object") {
4070
4070
  Object.keys(key).forEach((k) => {
4071
- self.implies(k, key[k]);
4071
+ self2.implies(k, key[k]);
4072
4072
  });
4073
4073
  } else {
4074
4074
  yargs2.global(key);
@@ -4076,14 +4076,14 @@ ${customMsgs.join("\n")}` : "";
4076
4076
  implied[key] = [];
4077
4077
  }
4078
4078
  if (Array.isArray(value)) {
4079
- value.forEach((i) => self.implies(key, i));
4079
+ value.forEach((i) => self2.implies(key, i));
4080
4080
  } else {
4081
4081
  common_types_1.assertNotStrictEqual(value, void 0);
4082
4082
  implied[key].push(value);
4083
4083
  }
4084
4084
  }
4085
4085
  };
4086
- self.getImplied = function getImplied() {
4086
+ self2.getImplied = function getImplied() {
4087
4087
  return implied;
4088
4088
  };
4089
4089
  function keyExists(argv, val) {
@@ -4099,7 +4099,7 @@ ${customMsgs.join("\n")}` : "";
4099
4099
  }
4100
4100
  return val;
4101
4101
  }
4102
- self.implications = function implications(argv) {
4102
+ self2.implications = function implications(argv) {
4103
4103
  const implyFail = [];
4104
4104
  Object.keys(implied).forEach((key) => {
4105
4105
  const origKey = key;
@@ -4123,11 +4123,11 @@ ${customMsgs.join("\n")}` : "";
4123
4123
  }
4124
4124
  };
4125
4125
  let conflicting = {};
4126
- self.conflicts = function conflicts(key, value) {
4126
+ self2.conflicts = function conflicts(key, value) {
4127
4127
  argsert_1.argsert("<string|object> [array|string]", [key, value], arguments.length);
4128
4128
  if (typeof key === "object") {
4129
4129
  Object.keys(key).forEach((k) => {
4130
- self.conflicts(k, key[k]);
4130
+ self2.conflicts(k, key[k]);
4131
4131
  });
4132
4132
  } else {
4133
4133
  yargs2.global(key);
@@ -4135,14 +4135,14 @@ ${customMsgs.join("\n")}` : "";
4135
4135
  conflicting[key] = [];
4136
4136
  }
4137
4137
  if (Array.isArray(value)) {
4138
- value.forEach((i) => self.conflicts(key, i));
4138
+ value.forEach((i) => self2.conflicts(key, i));
4139
4139
  } else {
4140
4140
  conflicting[key].push(value);
4141
4141
  }
4142
4142
  }
4143
4143
  };
4144
- self.getConflicting = () => conflicting;
4145
- self.conflicting = function conflictingFn(argv) {
4144
+ self2.getConflicting = () => conflicting;
4145
+ self2.conflicting = function conflictingFn(argv) {
4146
4146
  Object.keys(argv).forEach((key) => {
4147
4147
  if (conflicting[key]) {
4148
4148
  conflicting[key].forEach((value) => {
@@ -4153,7 +4153,7 @@ ${customMsgs.join("\n")}` : "";
4153
4153
  }
4154
4154
  });
4155
4155
  };
4156
- self.recommendCommands = function recommendCommands(cmd, potentialCommands) {
4156
+ self2.recommendCommands = function recommendCommands(cmd, potentialCommands) {
4157
4157
  const threshold = 3;
4158
4158
  potentialCommands = potentialCommands.sort((a, b) => b.length - a.length);
4159
4159
  let recommended = null;
@@ -4168,21 +4168,21 @@ ${customMsgs.join("\n")}` : "";
4168
4168
  if (recommended)
4169
4169
  usage.fail(__("Did you mean %s?", recommended));
4170
4170
  };
4171
- self.reset = function reset(localLookup) {
4171
+ self2.reset = function reset(localLookup) {
4172
4172
  implied = obj_filter_1.objFilter(implied, (k) => !localLookup[k]);
4173
4173
  conflicting = obj_filter_1.objFilter(conflicting, (k) => !localLookup[k]);
4174
4174
  checks = checks.filter((c) => c.global);
4175
- return self;
4175
+ return self2;
4176
4176
  };
4177
4177
  const frozens = [];
4178
- self.freeze = function freeze() {
4178
+ self2.freeze = function freeze() {
4179
4179
  frozens.push({
4180
4180
  implied,
4181
4181
  checks,
4182
4182
  conflicting
4183
4183
  });
4184
4184
  };
4185
- self.unfreeze = function unfreeze() {
4185
+ self2.unfreeze = function unfreeze() {
4186
4186
  const frozen = frozens.pop();
4187
4187
  common_types_1.assertNotStrictEqual(frozen, void 0);
4188
4188
  ({
@@ -4191,7 +4191,7 @@ ${customMsgs.join("\n")}` : "";
4191
4191
  conflicting
4192
4192
  } = frozen);
4193
4193
  };
4194
- return self;
4194
+ return self2;
4195
4195
  }
4196
4196
  exports2.validation = validation;
4197
4197
  }
@@ -4781,7 +4781,7 @@ var require_yargs = __commonJS({
4781
4781
  var findUp = require_find_up();
4782
4782
  var requireMainFilename = require_require_main_filename();
4783
4783
  function Yargs(processArgs = [], cwd = process.cwd(), parentRequire = require) {
4784
- const self = {};
4784
+ const self2 = {};
4785
4785
  let command;
4786
4786
  let completion = null;
4787
4787
  let groups = {};
@@ -4795,11 +4795,11 @@ var require_yargs = __commonJS({
4795
4795
  directory: path.resolve(__dirname, "../../locales"),
4796
4796
  updateFiles: false
4797
4797
  });
4798
- self.middleware = middleware_1.globalMiddlewareFactory(globalMiddleware, self);
4799
- self.scriptName = function(scriptName) {
4800
- self.customScriptName = true;
4801
- self.$0 = scriptName;
4802
- return self;
4798
+ self2.middleware = middleware_1.globalMiddlewareFactory(globalMiddleware, self2);
4799
+ self2.scriptName = function(scriptName) {
4800
+ self2.customScriptName = true;
4801
+ self2.$0 = scriptName;
4802
+ return self2;
4803
4803
  };
4804
4804
  let default$0;
4805
4805
  if (/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])) {
@@ -4807,17 +4807,17 @@ var require_yargs = __commonJS({
4807
4807
  } else {
4808
4808
  default$0 = process.argv.slice(0, 1);
4809
4809
  }
4810
- self.$0 = default$0.map((x) => {
4810
+ self2.$0 = default$0.map((x) => {
4811
4811
  const b = rebase(cwd, x);
4812
4812
  return x.match(/^(\/|([a-zA-Z]:)?\\)/) && b.length < x.length ? b : x;
4813
4813
  }).join(" ").trim();
4814
4814
  if (process.env._ !== void 0 && processArgv.getProcessArgvBin() === process.env._) {
4815
- self.$0 = process.env._.replace(`${path.dirname(process.execPath)}/`, "");
4815
+ self2.$0 = process.env._.replace(`${path.dirname(process.execPath)}/`, "");
4816
4816
  }
4817
4817
  const context = { resets: -1, commands: [], fullCommands: [], files: [] };
4818
- self.getContext = () => context;
4818
+ self2.getContext = () => context;
4819
4819
  let options;
4820
- self.resetOptions = self.reset = function resetOptions(aliases = {}) {
4820
+ self2.resetOptions = self2.reset = function resetOptions(aliases = {}) {
4821
4821
  context.resets++;
4822
4822
  options = options || {};
4823
4823
  const tmpOptions = {};
@@ -4869,19 +4869,19 @@ var require_yargs = __commonJS({
4869
4869
  });
4870
4870
  tmpOptions.envPrefix = options.envPrefix;
4871
4871
  options = tmpOptions;
4872
- usage = usage ? usage.reset(localLookup) : usage_1.usage(self, y18n);
4873
- validation = validation ? validation.reset(localLookup) : validation_1.validation(self, usage, y18n);
4874
- command = command ? command.reset() : command_1.command(self, usage, validation, globalMiddleware);
4872
+ usage = usage ? usage.reset(localLookup) : usage_1.usage(self2, y18n);
4873
+ validation = validation ? validation.reset(localLookup) : validation_1.validation(self2, usage, y18n);
4874
+ command = command ? command.reset() : command_1.command(self2, usage, validation, globalMiddleware);
4875
4875
  if (!completion)
4876
- completion = completion_1.completion(self, usage, command);
4876
+ completion = completion_1.completion(self2, usage, command);
4877
4877
  completionCommand = null;
4878
4878
  output = "";
4879
4879
  exitError = null;
4880
4880
  hasOutput = false;
4881
- self.parsed = false;
4882
- return self;
4881
+ self2.parsed = false;
4882
+ return self2;
4883
4883
  };
4884
- self.resetOptions();
4884
+ self2.resetOptions();
4885
4885
  const frozens = [];
4886
4886
  function freeze() {
4887
4887
  frozens.push({
@@ -4895,7 +4895,7 @@ var require_yargs = __commonJS({
4895
4895
  output,
4896
4896
  exitError,
4897
4897
  hasOutput,
4898
- parsed: self.parsed,
4898
+ parsed: self2.parsed,
4899
4899
  parseFn,
4900
4900
  parseContext,
4901
4901
  handlerFinishCommand
@@ -4916,7 +4916,7 @@ var require_yargs = __commonJS({
4916
4916
  output,
4917
4917
  exitError,
4918
4918
  hasOutput,
4919
- parsed: self.parsed,
4919
+ parsed: self2.parsed,
4920
4920
  strict,
4921
4921
  strictCommands,
4922
4922
  completionCommand,
@@ -4929,49 +4929,49 @@ var require_yargs = __commonJS({
4929
4929
  validation.unfreeze();
4930
4930
  command.unfreeze();
4931
4931
  }
4932
- self.boolean = function(keys) {
4932
+ self2.boolean = function(keys) {
4933
4933
  argsert_1.argsert("<array|string>", [keys], arguments.length);
4934
4934
  populateParserHintArray("boolean", keys);
4935
- return self;
4935
+ return self2;
4936
4936
  };
4937
- self.array = function(keys) {
4937
+ self2.array = function(keys) {
4938
4938
  argsert_1.argsert("<array|string>", [keys], arguments.length);
4939
4939
  populateParserHintArray("array", keys);
4940
- return self;
4940
+ return self2;
4941
4941
  };
4942
- self.number = function(keys) {
4942
+ self2.number = function(keys) {
4943
4943
  argsert_1.argsert("<array|string>", [keys], arguments.length);
4944
4944
  populateParserHintArray("number", keys);
4945
- return self;
4945
+ return self2;
4946
4946
  };
4947
- self.normalize = function(keys) {
4947
+ self2.normalize = function(keys) {
4948
4948
  argsert_1.argsert("<array|string>", [keys], arguments.length);
4949
4949
  populateParserHintArray("normalize", keys);
4950
- return self;
4950
+ return self2;
4951
4951
  };
4952
- self.count = function(keys) {
4952
+ self2.count = function(keys) {
4953
4953
  argsert_1.argsert("<array|string>", [keys], arguments.length);
4954
4954
  populateParserHintArray("count", keys);
4955
- return self;
4955
+ return self2;
4956
4956
  };
4957
- self.string = function(keys) {
4957
+ self2.string = function(keys) {
4958
4958
  argsert_1.argsert("<array|string>", [keys], arguments.length);
4959
4959
  populateParserHintArray("string", keys);
4960
- return self;
4960
+ return self2;
4961
4961
  };
4962
- self.requiresArg = function(keys) {
4962
+ self2.requiresArg = function(keys) {
4963
4963
  argsert_1.argsert("<array|string|object> [number]", [keys], arguments.length);
4964
4964
  if (typeof keys === "string" && options.narg[keys]) {
4965
- return self;
4965
+ return self2;
4966
4966
  } else {
4967
- populateParserHintSingleValueDictionary(self.requiresArg, "narg", keys, NaN);
4967
+ populateParserHintSingleValueDictionary(self2.requiresArg, "narg", keys, NaN);
4968
4968
  }
4969
- return self;
4969
+ return self2;
4970
4970
  };
4971
- self.skipValidation = function(keys) {
4971
+ self2.skipValidation = function(keys) {
4972
4972
  argsert_1.argsert("<array|string>", [keys], arguments.length);
4973
4973
  populateParserHintArray("skipValidation", keys);
4974
- return self;
4974
+ return self2;
4975
4975
  };
4976
4976
  function populateParserHintArray(type, keys) {
4977
4977
  keys = [].concat(keys);
@@ -4980,22 +4980,22 @@ var require_yargs = __commonJS({
4980
4980
  options[type].push(key);
4981
4981
  });
4982
4982
  }
4983
- self.nargs = function(key, value) {
4983
+ self2.nargs = function(key, value) {
4984
4984
  argsert_1.argsert("<string|object|array> [number]", [key, value], arguments.length);
4985
- populateParserHintSingleValueDictionary(self.nargs, "narg", key, value);
4986
- return self;
4985
+ populateParserHintSingleValueDictionary(self2.nargs, "narg", key, value);
4986
+ return self2;
4987
4987
  };
4988
- self.choices = function(key, value) {
4988
+ self2.choices = function(key, value) {
4989
4989
  argsert_1.argsert("<object|string|array> [string|array]", [key, value], arguments.length);
4990
- populateParserHintArrayDictionary(self.choices, "choices", key, value);
4991
- return self;
4990
+ populateParserHintArrayDictionary(self2.choices, "choices", key, value);
4991
+ return self2;
4992
4992
  };
4993
- self.alias = function(key, value) {
4993
+ self2.alias = function(key, value) {
4994
4994
  argsert_1.argsert("<object|string|array> [string|array]", [key, value], arguments.length);
4995
- populateParserHintArrayDictionary(self.alias, "alias", key, value);
4996
- return self;
4995
+ populateParserHintArrayDictionary(self2.alias, "alias", key, value);
4996
+ return self2;
4997
4997
  };
4998
- self.default = self.defaults = function(key, value, defaultDescription) {
4998
+ self2.default = self2.defaults = function(key, value, defaultDescription) {
4999
4999
  argsert_1.argsert("<object|string|array> [*] [string]", [key, value, defaultDescription], arguments.length);
5000
5000
  if (defaultDescription) {
5001
5001
  common_types_1.assertSingleKey(key);
@@ -5007,29 +5007,29 @@ var require_yargs = __commonJS({
5007
5007
  options.defaultDescription[key] = usage.functionDescription(value);
5008
5008
  value = value.call();
5009
5009
  }
5010
- populateParserHintSingleValueDictionary(self.default, "default", key, value);
5011
- return self;
5010
+ populateParserHintSingleValueDictionary(self2.default, "default", key, value);
5011
+ return self2;
5012
5012
  };
5013
- self.describe = function(key, desc) {
5013
+ self2.describe = function(key, desc) {
5014
5014
  argsert_1.argsert("<object|string|array> [string]", [key, desc], arguments.length);
5015
5015
  setKey(key, true);
5016
5016
  usage.describe(key, desc);
5017
- return self;
5017
+ return self2;
5018
5018
  };
5019
5019
  function setKey(key, set) {
5020
5020
  populateParserHintSingleValueDictionary(setKey, "key", key, set);
5021
- return self;
5021
+ return self2;
5022
5022
  }
5023
5023
  function demandOption(keys, msg) {
5024
5024
  argsert_1.argsert("<object|string|array> [string]", [keys, msg], arguments.length);
5025
- populateParserHintSingleValueDictionary(self.demandOption, "demandedOptions", keys, msg);
5026
- return self;
5025
+ populateParserHintSingleValueDictionary(self2.demandOption, "demandedOptions", keys, msg);
5026
+ return self2;
5027
5027
  }
5028
- self.demandOption = demandOption;
5029
- self.coerce = function(keys, value) {
5028
+ self2.demandOption = demandOption;
5029
+ self2.coerce = function(keys, value) {
5030
5030
  argsert_1.argsert("<object|string|array> [function]", [keys, value], arguments.length);
5031
- populateParserHintSingleValueDictionary(self.coerce, "coerce", keys, value);
5032
- return self;
5031
+ populateParserHintSingleValueDictionary(self2.coerce, "coerce", keys, value);
5032
+ return self2;
5033
5033
  };
5034
5034
  function populateParserHintSingleValueDictionary(builder, type, key, value) {
5035
5035
  populateParserHintDictionary(builder, type, key, value, (type2, key2, value2) => {
@@ -5073,44 +5073,44 @@ var require_yargs = __commonJS({
5073
5073
  });
5074
5074
  delete usage.getDescriptions()[optionKey];
5075
5075
  }
5076
- self.config = function config(key = "config", msg, parseFn2) {
5076
+ self2.config = function config(key = "config", msg, parseFn2) {
5077
5077
  argsert_1.argsert("[object|string] [string|function] [function]", [key, msg, parseFn2], arguments.length);
5078
5078
  if (typeof key === "object" && !Array.isArray(key)) {
5079
- key = apply_extends_1.applyExtends(key, cwd, self.getParserConfiguration()["deep-merge-config"]);
5079
+ key = apply_extends_1.applyExtends(key, cwd, self2.getParserConfiguration()["deep-merge-config"]);
5080
5080
  options.configObjects = (options.configObjects || []).concat(key);
5081
- return self;
5081
+ return self2;
5082
5082
  }
5083
5083
  if (typeof msg === "function") {
5084
5084
  parseFn2 = msg;
5085
5085
  msg = void 0;
5086
5086
  }
5087
- self.describe(key, msg || usage.deferY18nLookup("Path to JSON config file"));
5087
+ self2.describe(key, msg || usage.deferY18nLookup("Path to JSON config file"));
5088
5088
  (Array.isArray(key) ? key : [key]).forEach((k) => {
5089
5089
  options.config[k] = parseFn2 || true;
5090
5090
  });
5091
- return self;
5091
+ return self2;
5092
5092
  };
5093
- self.example = function(cmd, description) {
5093
+ self2.example = function(cmd, description) {
5094
5094
  argsert_1.argsert("<string|array> [string]", [cmd, description], arguments.length);
5095
5095
  if (Array.isArray(cmd)) {
5096
- cmd.forEach((exampleParams) => self.example(...exampleParams));
5096
+ cmd.forEach((exampleParams) => self2.example(...exampleParams));
5097
5097
  } else {
5098
5098
  usage.example(cmd, description);
5099
5099
  }
5100
- return self;
5100
+ return self2;
5101
5101
  };
5102
- self.command = function(cmd, description, builder, handler, middlewares, deprecated) {
5102
+ self2.command = function(cmd, description, builder, handler, middlewares, deprecated) {
5103
5103
  argsert_1.argsert("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [cmd, description, builder, handler, middlewares, deprecated], arguments.length);
5104
5104
  command.addHandler(cmd, description, builder, handler, middlewares, deprecated);
5105
- return self;
5105
+ return self2;
5106
5106
  };
5107
- self.commandDir = function(dir, opts) {
5107
+ self2.commandDir = function(dir, opts) {
5108
5108
  argsert_1.argsert("<string> [object]", [dir, opts], arguments.length);
5109
5109
  const req = parentRequire || require;
5110
- command.addDirectory(dir, self.getContext(), req, require_get_caller_file()(), opts);
5111
- return self;
5110
+ command.addDirectory(dir, self2.getContext(), req, require_get_caller_file()(), opts);
5111
+ return self2;
5112
5112
  };
5113
- self.demand = self.required = self.require = function demand(keys, max, msg) {
5113
+ self2.demand = self2.required = self2.require = function demand(keys, max, msg) {
5114
5114
  if (Array.isArray(max)) {
5115
5115
  max.forEach((key) => {
5116
5116
  common_types_1.assertNotStrictEqual(msg, true);
@@ -5123,7 +5123,7 @@ var require_yargs = __commonJS({
5123
5123
  }
5124
5124
  if (typeof keys === "number") {
5125
5125
  common_types_1.assertNotStrictEqual(msg, true);
5126
- self.demandCommand(keys, max, msg, msg);
5126
+ self2.demandCommand(keys, max, msg, msg);
5127
5127
  } else if (Array.isArray(keys)) {
5128
5128
  keys.forEach((key) => {
5129
5129
  common_types_1.assertNotStrictEqual(msg, true);
@@ -5136,86 +5136,86 @@ var require_yargs = __commonJS({
5136
5136
  demandOption(keys);
5137
5137
  }
5138
5138
  }
5139
- return self;
5139
+ return self2;
5140
5140
  };
5141
- self.demandCommand = function demandCommand(min = 1, max, minMsg, maxMsg) {
5141
+ self2.demandCommand = function demandCommand(min = 1, max, minMsg, maxMsg) {
5142
5142
  argsert_1.argsert("[number] [number|string] [string|null|undefined] [string|null|undefined]", [min, max, minMsg, maxMsg], arguments.length);
5143
5143
  if (typeof max !== "number") {
5144
5144
  minMsg = max;
5145
5145
  max = Infinity;
5146
5146
  }
5147
- self.global("_", false);
5147
+ self2.global("_", false);
5148
5148
  options.demandedCommands._ = {
5149
5149
  min,
5150
5150
  max,
5151
5151
  minMsg,
5152
5152
  maxMsg
5153
5153
  };
5154
- return self;
5154
+ return self2;
5155
5155
  };
5156
- self.getDemandedOptions = () => {
5156
+ self2.getDemandedOptions = () => {
5157
5157
  argsert_1.argsert([], 0);
5158
5158
  return options.demandedOptions;
5159
5159
  };
5160
- self.getDemandedCommands = () => {
5160
+ self2.getDemandedCommands = () => {
5161
5161
  argsert_1.argsert([], 0);
5162
5162
  return options.demandedCommands;
5163
5163
  };
5164
- self.deprecateOption = function deprecateOption(option, message) {
5164
+ self2.deprecateOption = function deprecateOption(option, message) {
5165
5165
  argsert_1.argsert("<string> [string|boolean]", [option, message], arguments.length);
5166
5166
  options.deprecatedOptions[option] = message;
5167
- return self;
5167
+ return self2;
5168
5168
  };
5169
- self.getDeprecatedOptions = () => {
5169
+ self2.getDeprecatedOptions = () => {
5170
5170
  argsert_1.argsert([], 0);
5171
5171
  return options.deprecatedOptions;
5172
5172
  };
5173
- self.implies = function(key, value) {
5173
+ self2.implies = function(key, value) {
5174
5174
  argsert_1.argsert("<string|object> [number|string|array]", [key, value], arguments.length);
5175
5175
  validation.implies(key, value);
5176
- return self;
5176
+ return self2;
5177
5177
  };
5178
- self.conflicts = function(key1, key2) {
5178
+ self2.conflicts = function(key1, key2) {
5179
5179
  argsert_1.argsert("<string|object> [string|array]", [key1, key2], arguments.length);
5180
5180
  validation.conflicts(key1, key2);
5181
- return self;
5181
+ return self2;
5182
5182
  };
5183
- self.usage = function(msg, description, builder, handler) {
5183
+ self2.usage = function(msg, description, builder, handler) {
5184
5184
  argsert_1.argsert("<string|null|undefined> [string|boolean] [function|object] [function]", [msg, description, builder, handler], arguments.length);
5185
5185
  if (description !== void 0) {
5186
5186
  common_types_1.assertNotStrictEqual(msg, null);
5187
5187
  if ((msg || "").match(/^\$0( |$)/)) {
5188
- return self.command(msg, description, builder, handler);
5188
+ return self2.command(msg, description, builder, handler);
5189
5189
  } else {
5190
5190
  throw new yerror_1.YError(".usage() description must start with $0 if being used as alias for .command()");
5191
5191
  }
5192
5192
  } else {
5193
5193
  usage.usage(msg);
5194
- return self;
5194
+ return self2;
5195
5195
  }
5196
5196
  };
5197
- self.epilogue = self.epilog = function(msg) {
5197
+ self2.epilogue = self2.epilog = function(msg) {
5198
5198
  argsert_1.argsert("<string>", [msg], arguments.length);
5199
5199
  usage.epilog(msg);
5200
- return self;
5200
+ return self2;
5201
5201
  };
5202
- self.fail = function(f) {
5202
+ self2.fail = function(f) {
5203
5203
  argsert_1.argsert("<function>", [f], arguments.length);
5204
5204
  usage.failFn(f);
5205
- return self;
5205
+ return self2;
5206
5206
  };
5207
- self.onFinishCommand = function(f) {
5207
+ self2.onFinishCommand = function(f) {
5208
5208
  argsert_1.argsert("<function>", [f], arguments.length);
5209
5209
  handlerFinishCommand = f;
5210
- return self;
5210
+ return self2;
5211
5211
  };
5212
- self.getHandlerFinishCommand = () => handlerFinishCommand;
5213
- self.check = function(f, _global) {
5212
+ self2.getHandlerFinishCommand = () => handlerFinishCommand;
5213
+ self2.check = function(f, _global) {
5214
5214
  argsert_1.argsert("<function> [boolean]", [f, _global], arguments.length);
5215
5215
  validation.check(f, _global !== false);
5216
- return self;
5216
+ return self2;
5217
5217
  };
5218
- self.global = function global2(globals, global2) {
5218
+ self2.global = function global2(globals, global2) {
5219
5219
  argsert_1.argsert("<string|array> [boolean]", [globals, global2], arguments.length);
5220
5220
  globals = [].concat(globals);
5221
5221
  if (global2 !== false) {
@@ -5226,17 +5226,17 @@ var require_yargs = __commonJS({
5226
5226
  options.local.push(g);
5227
5227
  });
5228
5228
  }
5229
- return self;
5229
+ return self2;
5230
5230
  };
5231
- self.pkgConf = function pkgConf(key, rootPath) {
5231
+ self2.pkgConf = function pkgConf(key, rootPath) {
5232
5232
  argsert_1.argsert("<string> [string]", [key, rootPath], arguments.length);
5233
5233
  let conf = null;
5234
5234
  const obj = pkgUp(rootPath || cwd);
5235
5235
  if (obj[key] && typeof obj[key] === "object") {
5236
- conf = apply_extends_1.applyExtends(obj[key], rootPath || cwd, self.getParserConfiguration()["deep-merge-config"]);
5236
+ conf = apply_extends_1.applyExtends(obj[key], rootPath || cwd, self2.getParserConfiguration()["deep-merge-config"]);
5237
5237
  options.configObjects = (options.configObjects || []).concat(conf);
5238
5238
  }
5239
- return self;
5239
+ return self2;
5240
5240
  };
5241
5241
  const pkgs = {};
5242
5242
  function pkgUp(rootPath) {
@@ -5261,14 +5261,14 @@ var require_yargs = __commonJS({
5261
5261
  }
5262
5262
  let parseFn = null;
5263
5263
  let parseContext = null;
5264
- self.parse = function parse(args2, shortCircuit, _parseFn) {
5264
+ self2.parse = function parse(args2, shortCircuit, _parseFn) {
5265
5265
  argsert_1.argsert("[string|array] [function|boolean|object] [function]", [args2, shortCircuit, _parseFn], arguments.length);
5266
5266
  freeze();
5267
5267
  if (typeof args2 === "undefined") {
5268
- const argv = self._parseArgs(processArgs);
5269
- const tmpParsed = self.parsed;
5268
+ const argv = self2._parseArgs(processArgs);
5269
+ const tmpParsed = self2.parsed;
5270
5270
  unfreeze();
5271
- self.parsed = tmpParsed;
5271
+ self2.parsed = tmpParsed;
5272
5272
  return argv;
5273
5273
  }
5274
5274
  if (typeof shortCircuit === "object") {
@@ -5283,20 +5283,20 @@ var require_yargs = __commonJS({
5283
5283
  processArgs = args2;
5284
5284
  if (parseFn)
5285
5285
  exitProcess = false;
5286
- const parsed = self._parseArgs(args2, !!shortCircuit);
5287
- completion.setParsed(self.parsed);
5286
+ const parsed = self2._parseArgs(args2, !!shortCircuit);
5287
+ completion.setParsed(self2.parsed);
5288
5288
  if (parseFn)
5289
5289
  parseFn(exitError, parsed, output);
5290
5290
  unfreeze();
5291
5291
  return parsed;
5292
5292
  };
5293
- self._getParseContext = () => parseContext || {};
5294
- self._hasParseCallback = () => !!parseFn;
5295
- self.option = self.options = function option(key, opt) {
5293
+ self2._getParseContext = () => parseContext || {};
5294
+ self2._hasParseCallback = () => !!parseFn;
5295
+ self2.option = self2.options = function option(key, opt) {
5296
5296
  argsert_1.argsert("<string|object> [object]", [key, opt], arguments.length);
5297
5297
  if (typeof key === "object") {
5298
5298
  Object.keys(key).forEach((k) => {
5299
- self.options(k, key[k]);
5299
+ self2.options(k, key[k]);
5300
5300
  });
5301
5301
  } else {
5302
5302
  if (typeof opt !== "object") {
@@ -5304,90 +5304,90 @@ var require_yargs = __commonJS({
5304
5304
  }
5305
5305
  options.key[key] = true;
5306
5306
  if (opt.alias)
5307
- self.alias(key, opt.alias);
5307
+ self2.alias(key, opt.alias);
5308
5308
  const deprecate = opt.deprecate || opt.deprecated;
5309
5309
  if (deprecate) {
5310
- self.deprecateOption(key, deprecate);
5310
+ self2.deprecateOption(key, deprecate);
5311
5311
  }
5312
5312
  const demand = opt.demand || opt.required || opt.require;
5313
5313
  if (demand) {
5314
- self.demand(key, demand);
5314
+ self2.demand(key, demand);
5315
5315
  }
5316
5316
  if (opt.demandOption) {
5317
- self.demandOption(key, typeof opt.demandOption === "string" ? opt.demandOption : void 0);
5317
+ self2.demandOption(key, typeof opt.demandOption === "string" ? opt.demandOption : void 0);
5318
5318
  }
5319
5319
  if (opt.conflicts) {
5320
- self.conflicts(key, opt.conflicts);
5320
+ self2.conflicts(key, opt.conflicts);
5321
5321
  }
5322
5322
  if ("default" in opt) {
5323
- self.default(key, opt.default);
5323
+ self2.default(key, opt.default);
5324
5324
  }
5325
5325
  if (opt.implies !== void 0) {
5326
- self.implies(key, opt.implies);
5326
+ self2.implies(key, opt.implies);
5327
5327
  }
5328
5328
  if (opt.nargs !== void 0) {
5329
- self.nargs(key, opt.nargs);
5329
+ self2.nargs(key, opt.nargs);
5330
5330
  }
5331
5331
  if (opt.config) {
5332
- self.config(key, opt.configParser);
5332
+ self2.config(key, opt.configParser);
5333
5333
  }
5334
5334
  if (opt.normalize) {
5335
- self.normalize(key);
5335
+ self2.normalize(key);
5336
5336
  }
5337
5337
  if (opt.choices) {
5338
- self.choices(key, opt.choices);
5338
+ self2.choices(key, opt.choices);
5339
5339
  }
5340
5340
  if (opt.coerce) {
5341
- self.coerce(key, opt.coerce);
5341
+ self2.coerce(key, opt.coerce);
5342
5342
  }
5343
5343
  if (opt.group) {
5344
- self.group(key, opt.group);
5344
+ self2.group(key, opt.group);
5345
5345
  }
5346
5346
  if (opt.boolean || opt.type === "boolean") {
5347
- self.boolean(key);
5347
+ self2.boolean(key);
5348
5348
  if (opt.alias)
5349
- self.boolean(opt.alias);
5349
+ self2.boolean(opt.alias);
5350
5350
  }
5351
5351
  if (opt.array || opt.type === "array") {
5352
- self.array(key);
5352
+ self2.array(key);
5353
5353
  if (opt.alias)
5354
- self.array(opt.alias);
5354
+ self2.array(opt.alias);
5355
5355
  }
5356
5356
  if (opt.number || opt.type === "number") {
5357
- self.number(key);
5357
+ self2.number(key);
5358
5358
  if (opt.alias)
5359
- self.number(opt.alias);
5359
+ self2.number(opt.alias);
5360
5360
  }
5361
5361
  if (opt.string || opt.type === "string") {
5362
- self.string(key);
5362
+ self2.string(key);
5363
5363
  if (opt.alias)
5364
- self.string(opt.alias);
5364
+ self2.string(opt.alias);
5365
5365
  }
5366
5366
  if (opt.count || opt.type === "count") {
5367
- self.count(key);
5367
+ self2.count(key);
5368
5368
  }
5369
5369
  if (typeof opt.global === "boolean") {
5370
- self.global(key, opt.global);
5370
+ self2.global(key, opt.global);
5371
5371
  }
5372
5372
  if (opt.defaultDescription) {
5373
5373
  options.defaultDescription[key] = opt.defaultDescription;
5374
5374
  }
5375
5375
  if (opt.skipValidation) {
5376
- self.skipValidation(key);
5376
+ self2.skipValidation(key);
5377
5377
  }
5378
5378
  const desc = opt.describe || opt.description || opt.desc;
5379
- self.describe(key, desc);
5379
+ self2.describe(key, desc);
5380
5380
  if (opt.hidden) {
5381
- self.hide(key);
5381
+ self2.hide(key);
5382
5382
  }
5383
5383
  if (opt.requiresArg) {
5384
- self.requiresArg(key);
5384
+ self2.requiresArg(key);
5385
5385
  }
5386
5386
  }
5387
- return self;
5387
+ return self2;
5388
5388
  };
5389
- self.getOptions = () => options;
5390
- self.positional = function(key, opts) {
5389
+ self2.getOptions = () => options;
5390
+ self2.positional = function(key, opts) {
5391
5391
  argsert_1.argsert("<string> <object>", [key, opts], arguments.length);
5392
5392
  if (context.resets === 0) {
5393
5393
  throw new yerror_1.YError(".positional() can only be called in a command's builder function");
@@ -5429,10 +5429,10 @@ var require_yargs = __commonJS({
5429
5429
  opts[pk] = parseOption[key];
5430
5430
  }
5431
5431
  });
5432
- self.group(key, usage.getPositionalGroupName());
5433
- return self.option(key, opts);
5432
+ self2.group(key, usage.getPositionalGroupName());
5433
+ return self2.option(key, opts);
5434
5434
  };
5435
- self.group = function group(opts, groupName) {
5435
+ self2.group = function group(opts, groupName) {
5436
5436
  argsert_1.argsert("<string|array> <string>", [opts, groupName], arguments.length);
5437
5437
  const existing = preservedGroups[groupName] || groups[groupName];
5438
5438
  if (preservedGroups[groupName]) {
@@ -5444,56 +5444,56 @@ var require_yargs = __commonJS({
5444
5444
  return false;
5445
5445
  return seen[key] = true;
5446
5446
  });
5447
- return self;
5447
+ return self2;
5448
5448
  };
5449
- self.getGroups = () => Object.assign({}, groups, preservedGroups);
5450
- self.env = function(prefix) {
5449
+ self2.getGroups = () => Object.assign({}, groups, preservedGroups);
5450
+ self2.env = function(prefix) {
5451
5451
  argsert_1.argsert("[string|boolean]", [prefix], arguments.length);
5452
5452
  if (prefix === false)
5453
5453
  delete options.envPrefix;
5454
5454
  else
5455
5455
  options.envPrefix = prefix || "";
5456
- return self;
5456
+ return self2;
5457
5457
  };
5458
- self.wrap = function(cols) {
5458
+ self2.wrap = function(cols) {
5459
5459
  argsert_1.argsert("<number|null|undefined>", [cols], arguments.length);
5460
5460
  usage.wrap(cols);
5461
- return self;
5461
+ return self2;
5462
5462
  };
5463
5463
  let strict = false;
5464
- self.strict = function(enabled) {
5464
+ self2.strict = function(enabled) {
5465
5465
  argsert_1.argsert("[boolean]", [enabled], arguments.length);
5466
5466
  strict = enabled !== false;
5467
- return self;
5467
+ return self2;
5468
5468
  };
5469
- self.getStrict = () => strict;
5469
+ self2.getStrict = () => strict;
5470
5470
  let strictCommands = false;
5471
- self.strictCommands = function(enabled) {
5471
+ self2.strictCommands = function(enabled) {
5472
5472
  argsert_1.argsert("[boolean]", [enabled], arguments.length);
5473
5473
  strictCommands = enabled !== false;
5474
- return self;
5474
+ return self2;
5475
5475
  };
5476
- self.getStrictCommands = () => strictCommands;
5476
+ self2.getStrictCommands = () => strictCommands;
5477
5477
  let parserConfig = {};
5478
- self.parserConfiguration = function parserConfiguration(config) {
5478
+ self2.parserConfiguration = function parserConfiguration(config) {
5479
5479
  argsert_1.argsert("<object>", [config], arguments.length);
5480
5480
  parserConfig = config;
5481
- return self;
5481
+ return self2;
5482
5482
  };
5483
- self.getParserConfiguration = () => parserConfig;
5484
- self.showHelp = function(level) {
5483
+ self2.getParserConfiguration = () => parserConfig;
5484
+ self2.showHelp = function(level) {
5485
5485
  argsert_1.argsert("[string|function]", [level], arguments.length);
5486
- if (!self.parsed)
5487
- self._parseArgs(processArgs);
5486
+ if (!self2.parsed)
5487
+ self2._parseArgs(processArgs);
5488
5488
  if (command.hasDefaultCommand()) {
5489
5489
  context.resets++;
5490
- command.runDefaultBuilderOn(self);
5490
+ command.runDefaultBuilderOn(self2);
5491
5491
  }
5492
5492
  usage.showHelp(level);
5493
- return self;
5493
+ return self2;
5494
5494
  };
5495
5495
  let versionOpt = null;
5496
- self.version = function version(opt, msg, ver) {
5496
+ self2.version = function version(opt, msg, ver) {
5497
5497
  const defaultVersionOpt = "version";
5498
5498
  argsert_1.argsert("[boolean|string] [string] [string]", [opt, msg, ver], arguments.length);
5499
5499
  if (versionOpt) {
@@ -5506,7 +5506,7 @@ var require_yargs = __commonJS({
5506
5506
  opt = defaultVersionOpt;
5507
5507
  } else if (arguments.length === 1) {
5508
5508
  if (opt === false) {
5509
- return self;
5509
+ return self2;
5510
5510
  }
5511
5511
  ver = opt;
5512
5512
  opt = defaultVersionOpt;
@@ -5517,16 +5517,16 @@ var require_yargs = __commonJS({
5517
5517
  versionOpt = typeof opt === "string" ? opt : defaultVersionOpt;
5518
5518
  msg = msg || usage.deferY18nLookup("Show version number");
5519
5519
  usage.version(ver || void 0);
5520
- self.boolean(versionOpt);
5521
- self.describe(versionOpt, msg);
5522
- return self;
5520
+ self2.boolean(versionOpt);
5521
+ self2.describe(versionOpt, msg);
5522
+ return self2;
5523
5523
  };
5524
5524
  function guessVersion() {
5525
5525
  const obj = pkgUp();
5526
5526
  return obj.version || "unknown";
5527
5527
  }
5528
5528
  let helpOpt = null;
5529
- self.addHelpOpt = self.help = function addHelpOpt(opt, msg) {
5529
+ self2.addHelpOpt = self2.help = function addHelpOpt(opt, msg) {
5530
5530
  const defaultHelpOpt = "help";
5531
5531
  argsert_1.argsert("[string|boolean] [string]", [opt, msg], arguments.length);
5532
5532
  if (helpOpt) {
@@ -5535,46 +5535,46 @@ var require_yargs = __commonJS({
5535
5535
  }
5536
5536
  if (arguments.length === 1) {
5537
5537
  if (opt === false)
5538
- return self;
5538
+ return self2;
5539
5539
  }
5540
5540
  helpOpt = typeof opt === "string" ? opt : defaultHelpOpt;
5541
- self.boolean(helpOpt);
5542
- self.describe(helpOpt, msg || usage.deferY18nLookup("Show help"));
5543
- return self;
5541
+ self2.boolean(helpOpt);
5542
+ self2.describe(helpOpt, msg || usage.deferY18nLookup("Show help"));
5543
+ return self2;
5544
5544
  };
5545
5545
  const defaultShowHiddenOpt = "show-hidden";
5546
5546
  options.showHiddenOpt = defaultShowHiddenOpt;
5547
- self.addShowHiddenOpt = self.showHidden = function addShowHiddenOpt(opt, msg) {
5547
+ self2.addShowHiddenOpt = self2.showHidden = function addShowHiddenOpt(opt, msg) {
5548
5548
  argsert_1.argsert("[string|boolean] [string]", [opt, msg], arguments.length);
5549
5549
  if (arguments.length === 1) {
5550
5550
  if (opt === false)
5551
- return self;
5551
+ return self2;
5552
5552
  }
5553
5553
  const showHiddenOpt = typeof opt === "string" ? opt : defaultShowHiddenOpt;
5554
- self.boolean(showHiddenOpt);
5555
- self.describe(showHiddenOpt, msg || usage.deferY18nLookup("Show hidden options"));
5554
+ self2.boolean(showHiddenOpt);
5555
+ self2.describe(showHiddenOpt, msg || usage.deferY18nLookup("Show hidden options"));
5556
5556
  options.showHiddenOpt = showHiddenOpt;
5557
- return self;
5557
+ return self2;
5558
5558
  };
5559
- self.hide = function hide(key) {
5559
+ self2.hide = function hide(key) {
5560
5560
  argsert_1.argsert("<string>", [key], arguments.length);
5561
5561
  options.hiddenOptions.push(key);
5562
- return self;
5562
+ return self2;
5563
5563
  };
5564
- self.showHelpOnFail = function showHelpOnFail(enabled, message) {
5564
+ self2.showHelpOnFail = function showHelpOnFail(enabled, message) {
5565
5565
  argsert_1.argsert("[boolean|string] [string]", [enabled, message], arguments.length);
5566
5566
  usage.showHelpOnFail(enabled, message);
5567
- return self;
5567
+ return self2;
5568
5568
  };
5569
5569
  var exitProcess = true;
5570
- self.exitProcess = function(enabled = true) {
5570
+ self2.exitProcess = function(enabled = true) {
5571
5571
  argsert_1.argsert("[boolean]", [enabled], arguments.length);
5572
5572
  exitProcess = enabled;
5573
- return self;
5573
+ return self2;
5574
5574
  };
5575
- self.getExitProcess = () => exitProcess;
5575
+ self2.getExitProcess = () => exitProcess;
5576
5576
  var completionCommand = null;
5577
- self.completion = function(cmd, desc, fn) {
5577
+ self2.completion = function(cmd, desc, fn) {
5578
5578
  argsert_1.argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn], arguments.length);
5579
5579
  if (typeof desc === "function") {
5580
5580
  fn = desc;
@@ -5584,22 +5584,22 @@ var require_yargs = __commonJS({
5584
5584
  if (!desc && desc !== false) {
5585
5585
  desc = "generate completion script";
5586
5586
  }
5587
- self.command(completionCommand, desc);
5587
+ self2.command(completionCommand, desc);
5588
5588
  if (fn)
5589
5589
  completion.registerFunction(fn);
5590
- return self;
5590
+ return self2;
5591
5591
  };
5592
- self.showCompletionScript = function($0, cmd) {
5592
+ self2.showCompletionScript = function($0, cmd) {
5593
5593
  argsert_1.argsert("[string] [string]", [$0, cmd], arguments.length);
5594
- $0 = $0 || self.$0;
5594
+ $0 = $0 || self2.$0;
5595
5595
  _logger.log(completion.generateCompletionScript($0, cmd || completionCommand || "completion"));
5596
- return self;
5596
+ return self2;
5597
5597
  };
5598
- self.getCompletion = function(args2, done) {
5598
+ self2.getCompletion = function(args2, done) {
5599
5599
  argsert_1.argsert("<array> <function>", [args2, done], arguments.length);
5600
5600
  completion.getCompletion(args2, done);
5601
5601
  };
5602
- self.locale = function(locale) {
5602
+ self2.locale = function(locale) {
5603
5603
  argsert_1.argsert("[string]", [locale], arguments.length);
5604
5604
  if (!locale) {
5605
5605
  guessLocale();
@@ -5607,24 +5607,24 @@ var require_yargs = __commonJS({
5607
5607
  }
5608
5608
  detectLocale = false;
5609
5609
  y18n.setLocale(locale);
5610
- return self;
5610
+ return self2;
5611
5611
  };
5612
- self.updateStrings = self.updateLocale = function(obj) {
5612
+ self2.updateStrings = self2.updateLocale = function(obj) {
5613
5613
  argsert_1.argsert("<object>", [obj], arguments.length);
5614
5614
  detectLocale = false;
5615
5615
  y18n.updateLocale(obj);
5616
- return self;
5616
+ return self2;
5617
5617
  };
5618
5618
  let detectLocale = true;
5619
- self.detectLocale = function(detect) {
5619
+ self2.detectLocale = function(detect) {
5620
5620
  argsert_1.argsert("<boolean>", [detect], arguments.length);
5621
5621
  detectLocale = detect;
5622
- return self;
5622
+ return self2;
5623
5623
  };
5624
- self.getDetectLocale = () => detectLocale;
5624
+ self2.getDetectLocale = () => detectLocale;
5625
5625
  var hasOutput = false;
5626
5626
  var exitError = null;
5627
- self.exit = (code, err) => {
5627
+ self2.exit = (code, err) => {
5628
5628
  hasOutput = true;
5629
5629
  exitError = err;
5630
5630
  if (exitProcess)
@@ -5632,7 +5632,7 @@ var require_yargs = __commonJS({
5632
5632
  };
5633
5633
  const _logger = {
5634
5634
  log(...args2) {
5635
- if (!self._hasParseCallback())
5635
+ if (!self2._hasParseCallback())
5636
5636
  console.log(...args2);
5637
5637
  hasOutput = true;
5638
5638
  if (output.length)
@@ -5640,7 +5640,7 @@ var require_yargs = __commonJS({
5640
5640
  output += args2.join(" ");
5641
5641
  },
5642
5642
  error(...args2) {
5643
- if (!self._hasParseCallback())
5643
+ if (!self2._hasParseCallback())
5644
5644
  console.error(...args2);
5645
5645
  hasOutput = true;
5646
5646
  if (output.length)
@@ -5648,33 +5648,33 @@ var require_yargs = __commonJS({
5648
5648
  output += args2.join(" ");
5649
5649
  }
5650
5650
  };
5651
- self._getLoggerInstance = () => _logger;
5652
- self._hasOutput = () => hasOutput;
5653
- self._setHasOutput = () => {
5651
+ self2._getLoggerInstance = () => _logger;
5652
+ self2._hasOutput = () => hasOutput;
5653
+ self2._setHasOutput = () => {
5654
5654
  hasOutput = true;
5655
5655
  };
5656
5656
  let recommendCommands;
5657
- self.recommendCommands = function(recommend = true) {
5657
+ self2.recommendCommands = function(recommend = true) {
5658
5658
  argsert_1.argsert("[boolean]", [recommend], arguments.length);
5659
5659
  recommendCommands = recommend;
5660
- return self;
5660
+ return self2;
5661
5661
  };
5662
- self.getUsageInstance = () => usage;
5663
- self.getValidationInstance = () => validation;
5664
- self.getCommandInstance = () => command;
5665
- self.terminalWidth = () => {
5662
+ self2.getUsageInstance = () => usage;
5663
+ self2.getValidationInstance = () => validation;
5664
+ self2.getCommandInstance = () => command;
5665
+ self2.terminalWidth = () => {
5666
5666
  argsert_1.argsert([], 0);
5667
5667
  return typeof process.stdout.columns !== "undefined" ? process.stdout.columns : null;
5668
5668
  };
5669
- Object.defineProperty(self, "argv", {
5670
- get: () => self._parseArgs(processArgs),
5669
+ Object.defineProperty(self2, "argv", {
5670
+ get: () => self2._parseArgs(processArgs),
5671
5671
  enumerable: true
5672
5672
  });
5673
- self._parseArgs = function parseArgs(args2, shortCircuit, _calledFromCommand, commandIndex) {
5673
+ self2._parseArgs = function parseArgs(args2, shortCircuit, _calledFromCommand, commandIndex) {
5674
5674
  let skipValidation = !!_calledFromCommand;
5675
5675
  args2 = args2 || processArgs;
5676
5676
  options.__ = y18n.__;
5677
- options.configuration = self.getParserConfiguration();
5677
+ options.configuration = self2.getParserConfiguration();
5678
5678
  const populateDoubleDash = !!options.configuration["populate--"];
5679
5679
  const config = Object.assign({}, options.configuration, {
5680
5680
  "populate--": true
@@ -5686,12 +5686,12 @@ var require_yargs = __commonJS({
5686
5686
  if (parseContext)
5687
5687
  argv = Object.assign({}, argv, parseContext);
5688
5688
  const aliases = parsed.aliases;
5689
- argv.$0 = self.$0;
5690
- self.parsed = parsed;
5689
+ argv.$0 = self2.$0;
5690
+ self2.parsed = parsed;
5691
5691
  try {
5692
5692
  guessLocale();
5693
5693
  if (shortCircuit) {
5694
- return populateDoubleDash || _calledFromCommand ? argv : self._copyDoubleDash(argv);
5694
+ return populateDoubleDash || _calledFromCommand ? argv : self2._copyDoubleDash(argv);
5695
5695
  }
5696
5696
  if (helpOpt) {
5697
5697
  const helpCmds = [helpOpt].concat(aliases[helpOpt] || []).filter((k) => k.length > 1);
@@ -5710,16 +5710,16 @@ var require_yargs = __commonJS({
5710
5710
  for (let i = commandIndex || 0, cmd; argv._[i] !== void 0; i++) {
5711
5711
  cmd = String(argv._[i]);
5712
5712
  if (~handlerKeys.indexOf(cmd) && cmd !== completionCommand) {
5713
- const innerArgv = command.runCommand(cmd, self, parsed, i + 1);
5714
- return populateDoubleDash ? innerArgv : self._copyDoubleDash(innerArgv);
5713
+ const innerArgv = command.runCommand(cmd, self2, parsed, i + 1);
5714
+ return populateDoubleDash ? innerArgv : self2._copyDoubleDash(innerArgv);
5715
5715
  } else if (!firstUnknownCommand && cmd !== completionCommand) {
5716
5716
  firstUnknownCommand = cmd;
5717
5717
  break;
5718
5718
  }
5719
5719
  }
5720
5720
  if (command.hasDefaultCommand() && !skipDefaultCommand) {
5721
- const innerArgv = command.runCommand(null, self, parsed);
5722
- return populateDoubleDash ? innerArgv : self._copyDoubleDash(innerArgv);
5721
+ const innerArgv = command.runCommand(null, self2, parsed);
5722
+ return populateDoubleDash ? innerArgv : self2._copyDoubleDash(innerArgv);
5723
5723
  }
5724
5724
  if (recommendCommands && firstUnknownCommand && !skipRecommendation) {
5725
5725
  validation.recommendCommands(firstUnknownCommand, handlerKeys);
@@ -5728,12 +5728,12 @@ var require_yargs = __commonJS({
5728
5728
  if (completionCommand && ~argv._.indexOf(completionCommand) && !requestCompletions) {
5729
5729
  if (exitProcess)
5730
5730
  setBlocking(true);
5731
- self.showCompletionScript();
5732
- self.exit(0);
5731
+ self2.showCompletionScript();
5732
+ self2.exit(0);
5733
5733
  }
5734
5734
  } else if (command.hasDefaultCommand() && !skipDefaultCommand) {
5735
- const innerArgv = command.runCommand(null, self, parsed);
5736
- return populateDoubleDash ? innerArgv : self._copyDoubleDash(innerArgv);
5735
+ const innerArgv = command.runCommand(null, self2, parsed);
5736
+ return populateDoubleDash ? innerArgv : self2._copyDoubleDash(innerArgv);
5737
5737
  }
5738
5738
  if (requestCompletions) {
5739
5739
  if (exitProcess)
@@ -5745,9 +5745,9 @@ var require_yargs = __commonJS({
5745
5745
  (completions || []).forEach((completion2) => {
5746
5746
  _logger.log(completion2);
5747
5747
  });
5748
- self.exit(0);
5748
+ self2.exit(0);
5749
5749
  });
5750
- return populateDoubleDash || _calledFromCommand ? argv : self._copyDoubleDash(argv);
5750
+ return populateDoubleDash || _calledFromCommand ? argv : self2._copyDoubleDash(argv);
5751
5751
  }
5752
5752
  if (!hasOutput) {
5753
5753
  Object.keys(argv).forEach((key) => {
@@ -5755,14 +5755,14 @@ var require_yargs = __commonJS({
5755
5755
  if (exitProcess)
5756
5756
  setBlocking(true);
5757
5757
  skipValidation = true;
5758
- self.showHelp("log");
5759
- self.exit(0);
5758
+ self2.showHelp("log");
5759
+ self2.exit(0);
5760
5760
  } else if (key === versionOpt && argv[key]) {
5761
5761
  if (exitProcess)
5762
5762
  setBlocking(true);
5763
5763
  skipValidation = true;
5764
5764
  usage.showVersion();
5765
- self.exit(0);
5765
+ self2.exit(0);
5766
5766
  }
5767
5767
  });
5768
5768
  }
@@ -5773,7 +5773,7 @@ var require_yargs = __commonJS({
5773
5773
  if (parsed.error)
5774
5774
  throw new yerror_1.YError(parsed.error.message);
5775
5775
  if (!requestCompletions) {
5776
- self._runValidation(argv, aliases, {}, parsed.error);
5776
+ self2._runValidation(argv, aliases, {}, parsed.error);
5777
5777
  }
5778
5778
  }
5779
5779
  } catch (err) {
@@ -5782,9 +5782,9 @@ var require_yargs = __commonJS({
5782
5782
  else
5783
5783
  throw err;
5784
5784
  }
5785
- return populateDoubleDash || _calledFromCommand ? argv : self._copyDoubleDash(argv);
5785
+ return populateDoubleDash || _calledFromCommand ? argv : self2._copyDoubleDash(argv);
5786
5786
  };
5787
- self._copyDoubleDash = function(argv) {
5787
+ self2._copyDoubleDash = function(argv) {
5788
5788
  if (is_promise_1.isPromise(argv) || !argv._ || !argv["--"])
5789
5789
  return argv;
5790
5790
  argv._.push.apply(argv._, argv["--"]);
@@ -5794,7 +5794,7 @@ var require_yargs = __commonJS({
5794
5794
  }
5795
5795
  return argv;
5796
5796
  };
5797
- self._runValidation = function runValidation(argv, aliases, positionalMap, parseErrors, isDefaultCommand = false) {
5797
+ self2._runValidation = function runValidation(argv, aliases, positionalMap, parseErrors, isDefaultCommand = false) {
5798
5798
  if (parseErrors)
5799
5799
  throw new yerror_1.YError(parseErrors.message);
5800
5800
  validation.nonOptionCount(argv);
@@ -5815,11 +5815,11 @@ var require_yargs = __commonJS({
5815
5815
  if (!detectLocale)
5816
5816
  return;
5817
5817
  const locale = process.env.LC_ALL || process.env.LC_MESSAGES || process.env.LANG || process.env.LANGUAGE || "en_US";
5818
- self.locale(locale.replace(/[.:].*/, ""));
5818
+ self2.locale(locale.replace(/[.:].*/, ""));
5819
5819
  }
5820
- self.help();
5821
- self.version();
5822
- return self;
5820
+ self2.help();
5821
+ self2.version();
5822
+ return self2;
5823
5823
  }
5824
5824
  exports2.Yargs = Yargs;
5825
5825
  function rebase(base, dir) {
@@ -6268,21 +6268,52 @@ var require_deep_extend = __commonJS({
6268
6268
  // ../../../node_modules/minimist/index.js
6269
6269
  var require_minimist = __commonJS({
6270
6270
  "../../../node_modules/minimist/index.js"(exports2, module2) {
6271
+ "use strict";
6272
+ function hasKey(obj, keys) {
6273
+ var o = obj;
6274
+ keys.slice(0, -1).forEach(function(key2) {
6275
+ o = o[key2] || {};
6276
+ });
6277
+ var key = keys[keys.length - 1];
6278
+ return key in o;
6279
+ }
6280
+ function isNumber(x) {
6281
+ if (typeof x === "number") {
6282
+ return true;
6283
+ }
6284
+ if (/^0x[0-9a-f]+$/i.test(x)) {
6285
+ return true;
6286
+ }
6287
+ return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
6288
+ }
6289
+ function isConstructorOrProto(obj, key) {
6290
+ return key === "constructor" && typeof obj[key] === "function" || key === "__proto__";
6291
+ }
6271
6292
  module2.exports = function(args2, opts) {
6272
- if (!opts)
6293
+ if (!opts) {
6273
6294
  opts = {};
6274
- var flags = { bools: {}, strings: {}, unknownFn: null };
6275
- if (typeof opts["unknown"] === "function") {
6276
- flags.unknownFn = opts["unknown"];
6277
6295
  }
6278
- if (typeof opts["boolean"] === "boolean" && opts["boolean"]) {
6296
+ var flags = {
6297
+ bools: {},
6298
+ strings: {},
6299
+ unknownFn: null
6300
+ };
6301
+ if (typeof opts.unknown === "function") {
6302
+ flags.unknownFn = opts.unknown;
6303
+ }
6304
+ if (typeof opts.boolean === "boolean" && opts.boolean) {
6279
6305
  flags.allBools = true;
6280
6306
  } else {
6281
- [].concat(opts["boolean"]).filter(Boolean).forEach(function(key2) {
6307
+ [].concat(opts.boolean).filter(Boolean).forEach(function(key2) {
6282
6308
  flags.bools[key2] = true;
6283
6309
  });
6284
6310
  }
6285
6311
  var aliases = {};
6312
+ function aliasIsBoolean(key2) {
6313
+ return aliases[key2].some(function(x) {
6314
+ return flags.bools[x];
6315
+ });
6316
+ }
6286
6317
  Object.keys(opts.alias || {}).forEach(function(key2) {
6287
6318
  aliases[key2] = [].concat(opts.alias[key2]);
6288
6319
  aliases[key2].forEach(function(x) {
@@ -6294,89 +6325,96 @@ var require_minimist = __commonJS({
6294
6325
  [].concat(opts.string).filter(Boolean).forEach(function(key2) {
6295
6326
  flags.strings[key2] = true;
6296
6327
  if (aliases[key2]) {
6297
- flags.strings[aliases[key2]] = true;
6328
+ [].concat(aliases[key2]).forEach(function(k) {
6329
+ flags.strings[k] = true;
6330
+ });
6298
6331
  }
6299
6332
  });
6300
- var defaults = opts["default"] || {};
6333
+ var defaults = opts.default || {};
6301
6334
  var argv = { _: [] };
6302
- Object.keys(flags.bools).forEach(function(key2) {
6303
- setArg(key2, defaults[key2] === void 0 ? false : defaults[key2]);
6304
- });
6305
- var notFlags = [];
6306
- if (args2.indexOf("--") !== -1) {
6307
- notFlags = args2.slice(args2.indexOf("--") + 1);
6308
- args2 = args2.slice(0, args2.indexOf("--"));
6309
- }
6310
6335
  function argDefined(key2, arg2) {
6311
6336
  return flags.allBools && /^--[^=]+$/.test(arg2) || flags.strings[key2] || flags.bools[key2] || aliases[key2];
6312
6337
  }
6313
- function setArg(key2, val, arg2) {
6314
- if (arg2 && flags.unknownFn && !argDefined(key2, arg2)) {
6315
- if (flags.unknownFn(arg2) === false)
6316
- return;
6317
- }
6318
- var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
6319
- setKey(argv, key2.split("."), value2);
6320
- (aliases[key2] || []).forEach(function(x) {
6321
- setKey(argv, x.split("."), value2);
6322
- });
6323
- }
6324
6338
  function setKey(obj, keys, value2) {
6325
6339
  var o = obj;
6326
6340
  for (var i2 = 0; i2 < keys.length - 1; i2++) {
6327
6341
  var key2 = keys[i2];
6328
- if (isConstructorOrProto(o, key2))
6342
+ if (isConstructorOrProto(o, key2)) {
6329
6343
  return;
6330
- if (o[key2] === void 0)
6344
+ }
6345
+ if (o[key2] === void 0) {
6331
6346
  o[key2] = {};
6332
- if (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype)
6347
+ }
6348
+ if (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype) {
6333
6349
  o[key2] = {};
6334
- if (o[key2] === Array.prototype)
6350
+ }
6351
+ if (o[key2] === Array.prototype) {
6335
6352
  o[key2] = [];
6353
+ }
6336
6354
  o = o[key2];
6337
6355
  }
6338
- var key2 = keys[keys.length - 1];
6339
- if (isConstructorOrProto(o, key2))
6356
+ var lastKey = keys[keys.length - 1];
6357
+ if (isConstructorOrProto(o, lastKey)) {
6340
6358
  return;
6341
- if (o === Object.prototype || o === Number.prototype || o === String.prototype)
6359
+ }
6360
+ if (o === Object.prototype || o === Number.prototype || o === String.prototype) {
6342
6361
  o = {};
6343
- if (o === Array.prototype)
6362
+ }
6363
+ if (o === Array.prototype) {
6344
6364
  o = [];
6345
- if (o[key2] === void 0 || flags.bools[key2] || typeof o[key2] === "boolean") {
6346
- o[key2] = value2;
6347
- } else if (Array.isArray(o[key2])) {
6348
- o[key2].push(value2);
6365
+ }
6366
+ if (o[lastKey] === void 0 || flags.bools[lastKey] || typeof o[lastKey] === "boolean") {
6367
+ o[lastKey] = value2;
6368
+ } else if (Array.isArray(o[lastKey])) {
6369
+ o[lastKey].push(value2);
6349
6370
  } else {
6350
- o[key2] = [o[key2], value2];
6371
+ o[lastKey] = [o[lastKey], value2];
6351
6372
  }
6352
6373
  }
6353
- function aliasIsBoolean(key2) {
6354
- return aliases[key2].some(function(x) {
6355
- return flags.bools[x];
6374
+ function setArg(key2, val, arg2) {
6375
+ if (arg2 && flags.unknownFn && !argDefined(key2, arg2)) {
6376
+ if (flags.unknownFn(arg2) === false) {
6377
+ return;
6378
+ }
6379
+ }
6380
+ var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
6381
+ setKey(argv, key2.split("."), value2);
6382
+ (aliases[key2] || []).forEach(function(x) {
6383
+ setKey(argv, x.split("."), value2);
6356
6384
  });
6357
6385
  }
6386
+ Object.keys(flags.bools).forEach(function(key2) {
6387
+ setArg(key2, defaults[key2] === void 0 ? false : defaults[key2]);
6388
+ });
6389
+ var notFlags = [];
6390
+ if (args2.indexOf("--") !== -1) {
6391
+ notFlags = args2.slice(args2.indexOf("--") + 1);
6392
+ args2 = args2.slice(0, args2.indexOf("--"));
6393
+ }
6358
6394
  for (var i = 0; i < args2.length; i++) {
6359
6395
  var arg = args2[i];
6396
+ var key;
6397
+ var next;
6360
6398
  if (/^--.+=/.test(arg)) {
6361
6399
  var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
6362
- var key = m[1];
6400
+ key = m[1];
6363
6401
  var value = m[2];
6364
6402
  if (flags.bools[key]) {
6365
6403
  value = value !== "false";
6366
6404
  }
6367
6405
  setArg(key, value, arg);
6368
6406
  } else if (/^--no-.+/.test(arg)) {
6369
- var key = arg.match(/^--no-(.+)/)[1];
6407
+ key = arg.match(/^--no-(.+)/)[1];
6370
6408
  setArg(key, false, arg);
6371
6409
  } else if (/^--.+/.test(arg)) {
6372
- var key = arg.match(/^--(.+)/)[1];
6373
- var next = args2[i + 1];
6374
- if (next !== void 0 && !/^-/.test(next) && !flags.bools[key] && !flags.allBools && (aliases[key] ? !aliasIsBoolean(key) : true)) {
6410
+ key = arg.match(/^--(.+)/)[1];
6411
+ next = args2[i + 1];
6412
+ if (next !== void 0 && !/^(-|--)[^-]/.test(next) && !flags.bools[key] && !flags.allBools && (aliases[key] ? !aliasIsBoolean(key) : true)) {
6375
6413
  setArg(key, next, arg);
6376
- i++;
6414
+ i += 1;
6377
6415
  } else if (/^(true|false)$/.test(next)) {
6378
6416
  setArg(key, next === "true", arg);
6379
- i++;
6417
+ i += 1;
6380
6418
  } else {
6381
6419
  setArg(key, flags.strings[key] ? "" : true, arg);
6382
6420
  }
@@ -6384,13 +6422,13 @@ var require_minimist = __commonJS({
6384
6422
  var letters = arg.slice(1, -1).split("");
6385
6423
  var broken = false;
6386
6424
  for (var j = 0; j < letters.length; j++) {
6387
- var next = arg.slice(j + 2);
6425
+ next = arg.slice(j + 2);
6388
6426
  if (next === "-") {
6389
6427
  setArg(letters[j], next, arg);
6390
6428
  continue;
6391
6429
  }
6392
- if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
6393
- setArg(letters[j], next.split("=")[1], arg);
6430
+ if (/[A-Za-z]/.test(letters[j]) && next[0] === "=") {
6431
+ setArg(letters[j], next.slice(1), arg);
6394
6432
  broken = true;
6395
6433
  break;
6396
6434
  }
@@ -6407,21 +6445,21 @@ var require_minimist = __commonJS({
6407
6445
  setArg(letters[j], flags.strings[letters[j]] ? "" : true, arg);
6408
6446
  }
6409
6447
  }
6410
- var key = arg.slice(-1)[0];
6448
+ key = arg.slice(-1)[0];
6411
6449
  if (!broken && key !== "-") {
6412
6450
  if (args2[i + 1] && !/^(-|--)[^-]/.test(args2[i + 1]) && !flags.bools[key] && (aliases[key] ? !aliasIsBoolean(key) : true)) {
6413
6451
  setArg(key, args2[i + 1], arg);
6414
- i++;
6452
+ i += 1;
6415
6453
  } else if (args2[i + 1] && /^(true|false)$/.test(args2[i + 1])) {
6416
6454
  setArg(key, args2[i + 1] === "true", arg);
6417
- i++;
6455
+ i += 1;
6418
6456
  } else {
6419
6457
  setArg(key, flags.strings[key] ? "" : true, arg);
6420
6458
  }
6421
6459
  }
6422
6460
  } else {
6423
6461
  if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
6424
- argv._.push(flags.strings["_"] || !isNumber(arg) ? arg : Number(arg));
6462
+ argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg));
6425
6463
  }
6426
6464
  if (opts.stopEarly) {
6427
6465
  argv._.push.apply(argv._, args2.slice(i + 1));
@@ -6429,44 +6467,23 @@ var require_minimist = __commonJS({
6429
6467
  }
6430
6468
  }
6431
6469
  }
6432
- Object.keys(defaults).forEach(function(key2) {
6433
- if (!hasKey(argv, key2.split("."))) {
6434
- setKey(argv, key2.split("."), defaults[key2]);
6435
- (aliases[key2] || []).forEach(function(x) {
6436
- setKey(argv, x.split("."), defaults[key2]);
6470
+ Object.keys(defaults).forEach(function(k) {
6471
+ if (!hasKey(argv, k.split("."))) {
6472
+ setKey(argv, k.split("."), defaults[k]);
6473
+ (aliases[k] || []).forEach(function(x) {
6474
+ setKey(argv, x.split("."), defaults[k]);
6437
6475
  });
6438
6476
  }
6439
6477
  });
6440
6478
  if (opts["--"]) {
6441
- argv["--"] = new Array();
6442
- notFlags.forEach(function(key2) {
6443
- argv["--"].push(key2);
6444
- });
6479
+ argv["--"] = notFlags.slice();
6445
6480
  } else {
6446
- notFlags.forEach(function(key2) {
6447
- argv._.push(key2);
6481
+ notFlags.forEach(function(k) {
6482
+ argv._.push(k);
6448
6483
  });
6449
6484
  }
6450
6485
  return argv;
6451
6486
  };
6452
- function hasKey(obj, keys) {
6453
- var o = obj;
6454
- keys.slice(0, -1).forEach(function(key2) {
6455
- o = o[key2] || {};
6456
- });
6457
- var key = keys[keys.length - 1];
6458
- return key in o;
6459
- }
6460
- function isNumber(x) {
6461
- if (typeof x === "number")
6462
- return true;
6463
- if (/^0x[0-9a-f]+$/i.test(x))
6464
- return true;
6465
- return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
6466
- }
6467
- function isConstructorOrProto(obj, key) {
6468
- return key === "constructor" && typeof obj[key] === "function" || key === "__proto__";
6469
- }
6470
6487
  }
6471
6488
  });
6472
6489
 
@@ -6537,9 +6554,9 @@ var require_has_flag = __commonJS({
6537
6554
  }
6538
6555
  });
6539
6556
 
6540
- // ../../../node_modules/chalk/node_modules/supports-color/index.js
6557
+ // ../../../node_modules/supports-color/index.js
6541
6558
  var require_supports_color = __commonJS({
6542
- "../../../node_modules/chalk/node_modules/supports-color/index.js"(exports2, module2) {
6559
+ "../../../node_modules/supports-color/index.js"(exports2, module2) {
6543
6560
  "use strict";
6544
6561
  var os2 = require("os");
6545
6562
  var tty = require("tty");
@@ -6908,7 +6925,7 @@ var require_source = __commonJS({
6908
6925
  parent
6909
6926
  };
6910
6927
  };
6911
- var createBuilder = (self, _styler, _isEmpty) => {
6928
+ var createBuilder = (self2, _styler, _isEmpty) => {
6912
6929
  const builder = (...arguments_) => {
6913
6930
  if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
6914
6931
  return applyStyle(builder, chalkTag(builder, ...arguments_));
@@ -6916,16 +6933,16 @@ var require_source = __commonJS({
6916
6933
  return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
6917
6934
  };
6918
6935
  Object.setPrototypeOf(builder, proto);
6919
- builder._generator = self;
6936
+ builder._generator = self2;
6920
6937
  builder._styler = _styler;
6921
6938
  builder._isEmpty = _isEmpty;
6922
6939
  return builder;
6923
6940
  };
6924
- var applyStyle = (self, string2) => {
6925
- if (self.level <= 0 || !string2) {
6926
- return self._isEmpty ? "" : string2;
6941
+ var applyStyle = (self2, string2) => {
6942
+ if (self2.level <= 0 || !string2) {
6943
+ return self2._isEmpty ? "" : string2;
6927
6944
  }
6928
- let styler = self._styler;
6945
+ let styler = self2._styler;
6929
6946
  if (styler === void 0) {
6930
6947
  return string2;
6931
6948
  }
@@ -7042,11 +7059,11 @@ var require_signals = __commonJS({
7042
7059
  // ../../../node_modules/signal-exit/index.js
7043
7060
  var require_signal_exit = __commonJS({
7044
7061
  "../../../node_modules/signal-exit/index.js"(exports2, module2) {
7045
- var process8 = global.process;
7046
- var processOk = function(process9) {
7047
- 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";
7062
+ var process7 = global.process;
7063
+ var processOk = function(process8) {
7064
+ 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";
7048
7065
  };
7049
- if (!processOk(process8)) {
7066
+ if (!processOk(process7)) {
7050
7067
  module2.exports = function() {
7051
7068
  return function() {
7052
7069
  };
@@ -7054,15 +7071,15 @@ var require_signal_exit = __commonJS({
7054
7071
  } else {
7055
7072
  assert = require("assert");
7056
7073
  signals = require_signals();
7057
- isWin = /^win/i.test(process8.platform);
7074
+ isWin = /^win/i.test(process7.platform);
7058
7075
  EE = require("events");
7059
7076
  if (typeof EE !== "function") {
7060
7077
  EE = EE.EventEmitter;
7061
7078
  }
7062
- if (process8.__signal_exit_emitter__) {
7063
- emitter = process8.__signal_exit_emitter__;
7079
+ if (process7.__signal_exit_emitter__) {
7080
+ emitter = process7.__signal_exit_emitter__;
7064
7081
  } else {
7065
- emitter = process8.__signal_exit_emitter__ = new EE();
7082
+ emitter = process7.__signal_exit_emitter__ = new EE();
7066
7083
  emitter.count = 0;
7067
7084
  emitter.emitted = {};
7068
7085
  }
@@ -7099,12 +7116,12 @@ var require_signal_exit = __commonJS({
7099
7116
  loaded = false;
7100
7117
  signals.forEach(function(sig) {
7101
7118
  try {
7102
- process8.removeListener(sig, sigListeners[sig]);
7119
+ process7.removeListener(sig, sigListeners[sig]);
7103
7120
  } catch (er) {
7104
7121
  }
7105
7122
  });
7106
- process8.emit = originalProcessEmit;
7107
- process8.reallyExit = originalProcessReallyExit;
7123
+ process7.emit = originalProcessEmit;
7124
+ process7.reallyExit = originalProcessReallyExit;
7108
7125
  emitter.count -= 1;
7109
7126
  };
7110
7127
  module2.exports.unload = unload;
@@ -7121,7 +7138,7 @@ var require_signal_exit = __commonJS({
7121
7138
  if (!processOk(global.process)) {
7122
7139
  return;
7123
7140
  }
7124
- var listeners = process8.listeners(sig);
7141
+ var listeners = process7.listeners(sig);
7125
7142
  if (listeners.length === emitter.count) {
7126
7143
  unload();
7127
7144
  emit("exit", null, sig);
@@ -7129,7 +7146,7 @@ var require_signal_exit = __commonJS({
7129
7146
  if (isWin && sig === "SIGHUP") {
7130
7147
  sig = "SIGINT";
7131
7148
  }
7132
- process8.kill(process8.pid, sig);
7149
+ process7.kill(process7.pid, sig);
7133
7150
  }
7134
7151
  };
7135
7152
  });
@@ -7145,35 +7162,35 @@ var require_signal_exit = __commonJS({
7145
7162
  emitter.count += 1;
7146
7163
  signals = signals.filter(function(sig) {
7147
7164
  try {
7148
- process8.on(sig, sigListeners[sig]);
7165
+ process7.on(sig, sigListeners[sig]);
7149
7166
  return true;
7150
7167
  } catch (er) {
7151
7168
  return false;
7152
7169
  }
7153
7170
  });
7154
- process8.emit = processEmit;
7155
- process8.reallyExit = processReallyExit;
7171
+ process7.emit = processEmit;
7172
+ process7.reallyExit = processReallyExit;
7156
7173
  };
7157
7174
  module2.exports.load = load;
7158
- originalProcessReallyExit = process8.reallyExit;
7175
+ originalProcessReallyExit = process7.reallyExit;
7159
7176
  processReallyExit = function processReallyExit2(code) {
7160
7177
  if (!processOk(global.process)) {
7161
7178
  return;
7162
7179
  }
7163
- process8.exitCode = code || 0;
7164
- emit("exit", process8.exitCode, null);
7165
- emit("afterexit", process8.exitCode, null);
7166
- originalProcessReallyExit.call(process8, process8.exitCode);
7180
+ process7.exitCode = code || 0;
7181
+ emit("exit", process7.exitCode, null);
7182
+ emit("afterexit", process7.exitCode, null);
7183
+ originalProcessReallyExit.call(process7, process7.exitCode);
7167
7184
  };
7168
- originalProcessEmit = process8.emit;
7185
+ originalProcessEmit = process7.emit;
7169
7186
  processEmit = function processEmit2(ev, arg) {
7170
7187
  if (ev === "exit" && processOk(global.process)) {
7171
7188
  if (arg !== void 0) {
7172
- process8.exitCode = arg;
7189
+ process7.exitCode = arg;
7173
7190
  }
7174
7191
  var ret = originalProcessEmit.apply(this, arguments);
7175
- emit("exit", process8.exitCode, null);
7176
- emit("afterexit", process8.exitCode, null);
7192
+ emit("exit", process7.exitCode, null);
7193
+ emit("afterexit", process7.exitCode, null);
7177
7194
  return ret;
7178
7195
  } else {
7179
7196
  return originalProcessEmit.apply(this, arguments);
@@ -7987,6 +8004,21 @@ var require_spinners = __commonJS({
7987
8004
  "\u25E5"
7988
8005
  ]
7989
8006
  },
8007
+ binary: {
8008
+ interval: 80,
8009
+ frames: [
8010
+ "010010",
8011
+ "001100",
8012
+ "100101",
8013
+ "111010",
8014
+ "111101",
8015
+ "010111",
8016
+ "101011",
8017
+ "111000",
8018
+ "110011",
8019
+ "110101"
8020
+ ]
8021
+ },
7990
8022
  arc: {
7991
8023
  interval: 100,
7992
8024
  frames: [
@@ -8179,6 +8211,7 @@ var require_spinners = __commonJS({
8179
8211
  "[= ]",
8180
8212
  "[== ]",
8181
8213
  "[=== ]",
8214
+ "[====]",
8182
8215
  "[ ===]",
8183
8216
  "[ ==]",
8184
8217
  "[ =]",
@@ -8666,6 +8699,144 @@ var require_spinners = __commonJS({
8666
8699
  "\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0",
8667
8700
  "\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"
8668
8701
  ]
8702
+ },
8703
+ dwarfFortress: {
8704
+ interval: 80,
8705
+ frames: [
8706
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8707
+ "\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8708
+ "\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8709
+ "\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8710
+ "\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8711
+ "\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8712
+ "\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8713
+ "\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8714
+ "\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8715
+ "\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8716
+ " \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8717
+ " \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8718
+ " \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8719
+ " \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8720
+ " \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8721
+ " \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8722
+ " \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8723
+ " \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8724
+ " \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8725
+ " \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8726
+ " \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8727
+ " \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
8728
+ " \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
8729
+ " \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
8730
+ " \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
8731
+ " \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
8732
+ " \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
8733
+ " \u263A \u2588\u2588\u2588\xA3\xA3\xA3 ",
8734
+ " \u263A\u2588\u2588\u2588\xA3\xA3\xA3 ",
8735
+ " \u263A\u2588\u2588\u2588\xA3\xA3\xA3 ",
8736
+ " \u263A\u2593\u2588\u2588\xA3\xA3\xA3 ",
8737
+ " \u263A\u2593\u2588\u2588\xA3\xA3\xA3 ",
8738
+ " \u263A\u2592\u2588\u2588\xA3\xA3\xA3 ",
8739
+ " \u263A\u2592\u2588\u2588\xA3\xA3\xA3 ",
8740
+ " \u263A\u2591\u2588\u2588\xA3\xA3\xA3 ",
8741
+ " \u263A\u2591\u2588\u2588\xA3\xA3\xA3 ",
8742
+ " \u263A \u2588\u2588\xA3\xA3\xA3 ",
8743
+ " \u263A\u2588\u2588\xA3\xA3\xA3 ",
8744
+ " \u263A\u2588\u2588\xA3\xA3\xA3 ",
8745
+ " \u263A\u2593\u2588\xA3\xA3\xA3 ",
8746
+ " \u263A\u2593\u2588\xA3\xA3\xA3 ",
8747
+ " \u263A\u2592\u2588\xA3\xA3\xA3 ",
8748
+ " \u263A\u2592\u2588\xA3\xA3\xA3 ",
8749
+ " \u263A\u2591\u2588\xA3\xA3\xA3 ",
8750
+ " \u263A\u2591\u2588\xA3\xA3\xA3 ",
8751
+ " \u263A \u2588\xA3\xA3\xA3 ",
8752
+ " \u263A\u2588\xA3\xA3\xA3 ",
8753
+ " \u263A\u2588\xA3\xA3\xA3 ",
8754
+ " \u263A\u2593\xA3\xA3\xA3 ",
8755
+ " \u263A\u2593\xA3\xA3\xA3 ",
8756
+ " \u263A\u2592\xA3\xA3\xA3 ",
8757
+ " \u263A\u2592\xA3\xA3\xA3 ",
8758
+ " \u263A\u2591\xA3\xA3\xA3 ",
8759
+ " \u263A\u2591\xA3\xA3\xA3 ",
8760
+ " \u263A \xA3\xA3\xA3 ",
8761
+ " \u263A\xA3\xA3\xA3 ",
8762
+ " \u263A\xA3\xA3\xA3 ",
8763
+ " \u263A\u2593\xA3\xA3 ",
8764
+ " \u263A\u2593\xA3\xA3 ",
8765
+ " \u263A\u2592\xA3\xA3 ",
8766
+ " \u263A\u2592\xA3\xA3 ",
8767
+ " \u263A\u2591\xA3\xA3 ",
8768
+ " \u263A\u2591\xA3\xA3 ",
8769
+ " \u263A \xA3\xA3 ",
8770
+ " \u263A\xA3\xA3 ",
8771
+ " \u263A\xA3\xA3 ",
8772
+ " \u263A\u2593\xA3 ",
8773
+ " \u263A\u2593\xA3 ",
8774
+ " \u263A\u2592\xA3 ",
8775
+ " \u263A\u2592\xA3 ",
8776
+ " \u263A\u2591\xA3 ",
8777
+ " \u263A\u2591\xA3 ",
8778
+ " \u263A \xA3 ",
8779
+ " \u263A\xA3 ",
8780
+ " \u263A\xA3 ",
8781
+ " \u263A\u2593 ",
8782
+ " \u263A\u2593 ",
8783
+ " \u263A\u2592 ",
8784
+ " \u263A\u2592 ",
8785
+ " \u263A\u2591 ",
8786
+ " \u263A\u2591 ",
8787
+ " \u263A ",
8788
+ " \u263A &",
8789
+ " \u263A \u263C&",
8790
+ " \u263A \u263C &",
8791
+ " \u263A\u263C &",
8792
+ " \u263A\u263C & ",
8793
+ " \u203C & ",
8794
+ " \u263A & ",
8795
+ " \u203C & ",
8796
+ " \u263A & ",
8797
+ " \u203C & ",
8798
+ " \u263A & ",
8799
+ "\u203C & ",
8800
+ " & ",
8801
+ " & ",
8802
+ " & \u2591 ",
8803
+ " & \u2592 ",
8804
+ " & \u2593 ",
8805
+ " & \xA3 ",
8806
+ " & \u2591\xA3 ",
8807
+ " & \u2592\xA3 ",
8808
+ " & \u2593\xA3 ",
8809
+ " & \xA3\xA3 ",
8810
+ " & \u2591\xA3\xA3 ",
8811
+ " & \u2592\xA3\xA3 ",
8812
+ "& \u2593\xA3\xA3 ",
8813
+ "& \xA3\xA3\xA3 ",
8814
+ " \u2591\xA3\xA3\xA3 ",
8815
+ " \u2592\xA3\xA3\xA3 ",
8816
+ " \u2593\xA3\xA3\xA3 ",
8817
+ " \u2588\xA3\xA3\xA3 ",
8818
+ " \u2591\u2588\xA3\xA3\xA3 ",
8819
+ " \u2592\u2588\xA3\xA3\xA3 ",
8820
+ " \u2593\u2588\xA3\xA3\xA3 ",
8821
+ " \u2588\u2588\xA3\xA3\xA3 ",
8822
+ " \u2591\u2588\u2588\xA3\xA3\xA3 ",
8823
+ " \u2592\u2588\u2588\xA3\xA3\xA3 ",
8824
+ " \u2593\u2588\u2588\xA3\xA3\xA3 ",
8825
+ " \u2588\u2588\u2588\xA3\xA3\xA3 ",
8826
+ " \u2591\u2588\u2588\u2588\xA3\xA3\xA3 ",
8827
+ " \u2592\u2588\u2588\u2588\xA3\xA3\xA3 ",
8828
+ " \u2593\u2588\u2588\u2588\xA3\xA3\xA3 ",
8829
+ " \u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8830
+ " \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8831
+ " \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8832
+ " \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8833
+ " \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8834
+ " \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8835
+ " \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8836
+ " \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8837
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ",
8838
+ " \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "
8839
+ ]
8669
8840
  }
8670
8841
  };
8671
8842
  }
@@ -9054,32 +9225,25 @@ var require_buffer_list = __commonJS({
9054
9225
  var keys = Object.keys(object);
9055
9226
  if (Object.getOwnPropertySymbols) {
9056
9227
  var symbols = Object.getOwnPropertySymbols(object);
9057
- if (enumerableOnly)
9058
- symbols = symbols.filter(function(sym) {
9059
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9060
- });
9061
- keys.push.apply(keys, symbols);
9228
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
9229
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9230
+ })), keys.push.apply(keys, symbols);
9062
9231
  }
9063
9232
  return keys;
9064
9233
  }
9065
9234
  function _objectSpread(target) {
9066
9235
  for (var i = 1; i < arguments.length; i++) {
9067
9236
  var source = arguments[i] != null ? arguments[i] : {};
9068
- if (i % 2) {
9069
- ownKeys(Object(source), true).forEach(function(key) {
9070
- _defineProperty(target, key, source[key]);
9071
- });
9072
- } else if (Object.getOwnPropertyDescriptors) {
9073
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9074
- } else {
9075
- ownKeys(Object(source)).forEach(function(key) {
9076
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9077
- });
9078
- }
9237
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
9238
+ _defineProperty(target, key, source[key]);
9239
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
9240
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9241
+ });
9079
9242
  }
9080
9243
  return target;
9081
9244
  }
9082
9245
  function _defineProperty(obj, key, value) {
9246
+ key = _toPropertyKey(key);
9083
9247
  if (key in obj) {
9084
9248
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
9085
9249
  } else {
@@ -9099,7 +9263,7 @@ var require_buffer_list = __commonJS({
9099
9263
  descriptor.configurable = true;
9100
9264
  if ("value" in descriptor)
9101
9265
  descriptor.writable = true;
9102
- Object.defineProperty(target, descriptor.key, descriptor);
9266
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
9103
9267
  }
9104
9268
  }
9105
9269
  function _createClass(Constructor, protoProps, staticProps) {
@@ -9107,8 +9271,25 @@ var require_buffer_list = __commonJS({
9107
9271
  _defineProperties(Constructor.prototype, protoProps);
9108
9272
  if (staticProps)
9109
9273
  _defineProperties(Constructor, staticProps);
9274
+ Object.defineProperty(Constructor, "prototype", { writable: false });
9110
9275
  return Constructor;
9111
9276
  }
9277
+ function _toPropertyKey(arg) {
9278
+ var key = _toPrimitive(arg, "string");
9279
+ return typeof key === "symbol" ? key : String(key);
9280
+ }
9281
+ function _toPrimitive(input, hint) {
9282
+ if (typeof input !== "object" || input === null)
9283
+ return input;
9284
+ var prim = input[Symbol.toPrimitive];
9285
+ if (prim !== void 0) {
9286
+ var res = prim.call(input, hint || "default");
9287
+ if (typeof res !== "object")
9288
+ return res;
9289
+ throw new TypeError("@@toPrimitive must return a primitive value.");
9290
+ }
9291
+ return (hint === "string" ? String : Number)(input);
9292
+ }
9112
9293
  var _require = require("buffer");
9113
9294
  var Buffer2 = _require.Buffer;
9114
9295
  var _require2 = require("util");
@@ -9176,9 +9357,8 @@ var require_buffer_list = __commonJS({
9176
9357
  return "";
9177
9358
  var p = this.head;
9178
9359
  var ret = "" + p.data;
9179
- while (p = p.next) {
9360
+ while (p = p.next)
9180
9361
  ret += s + p.data;
9181
- }
9182
9362
  return ret;
9183
9363
  }
9184
9364
  }, {
@@ -9282,7 +9462,7 @@ var require_buffer_list = __commonJS({
9282
9462
  }, {
9283
9463
  key: custom,
9284
9464
  value: function value(_, options) {
9285
- return inspect(this, _objectSpread({}, options, {
9465
+ return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
9286
9466
  depth: 0,
9287
9467
  customInspect: false
9288
9468
  }));
@@ -9339,16 +9519,16 @@ var require_destroy = __commonJS({
9339
9519
  });
9340
9520
  return this;
9341
9521
  }
9342
- function emitErrorAndCloseNT(self, err) {
9343
- emitErrorNT(self, err);
9344
- emitCloseNT(self);
9522
+ function emitErrorAndCloseNT(self2, err) {
9523
+ emitErrorNT(self2, err);
9524
+ emitCloseNT(self2);
9345
9525
  }
9346
- function emitCloseNT(self) {
9347
- if (self._writableState && !self._writableState.emitClose)
9526
+ function emitCloseNT(self2) {
9527
+ if (self2._writableState && !self2._writableState.emitClose)
9348
9528
  return;
9349
- if (self._readableState && !self._readableState.emitClose)
9529
+ if (self2._readableState && !self2._readableState.emitClose)
9350
9530
  return;
9351
- self.emit("close");
9531
+ self2.emit("close");
9352
9532
  }
9353
9533
  function undestroy() {
9354
9534
  if (this._readableState) {
@@ -9367,8 +9547,8 @@ var require_destroy = __commonJS({
9367
9547
  this._writableState.errorEmitted = false;
9368
9548
  }
9369
9549
  }
9370
- function emitErrorNT(self, err) {
9371
- self.emit("error", err);
9550
+ function emitErrorNT(self2, err) {
9551
+ self2.emit("error", err);
9372
9552
  }
9373
9553
  function errorOrDestroy(stream, err) {
9374
9554
  var rState = stream._readableState;
@@ -9585,7 +9765,7 @@ var require_stream_writable = __commonJS({
9585
9765
  };
9586
9766
  var Stream = require_stream();
9587
9767
  var Buffer2 = require("buffer").Buffer;
9588
- var OurUint8Array = global.Uint8Array || function() {
9768
+ var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
9589
9769
  };
9590
9770
  function _uint8ArrayToBuffer(chunk) {
9591
9771
  return Buffer2.from(chunk);
@@ -10059,9 +10239,8 @@ var require_stream_duplex = __commonJS({
10059
10239
  "use strict";
10060
10240
  var objectKeys = Object.keys || function(obj) {
10061
10241
  var keys2 = [];
10062
- for (var key in obj) {
10242
+ for (var key in obj)
10063
10243
  keys2.push(key);
10064
- }
10065
10244
  return keys2;
10066
10245
  };
10067
10246
  module2.exports = Duplex;
@@ -10119,8 +10298,8 @@ var require_stream_duplex = __commonJS({
10119
10298
  return;
10120
10299
  process.nextTick(onEndNT, this);
10121
10300
  }
10122
- function onEndNT(self) {
10123
- self.end();
10301
+ function onEndNT(self2) {
10302
+ self2.end();
10124
10303
  }
10125
10304
  Object.defineProperty(Duplex.prototype, "destroyed", {
10126
10305
  enumerable: false,
@@ -10325,14 +10504,14 @@ var require_string_decoder = __commonJS({
10325
10504
  return 4;
10326
10505
  return byte >> 6 === 2 ? -1 : -2;
10327
10506
  }
10328
- function utf8CheckIncomplete(self, buf, i) {
10507
+ function utf8CheckIncomplete(self2, buf, i) {
10329
10508
  var j = buf.length - 1;
10330
10509
  if (j < i)
10331
10510
  return 0;
10332
10511
  var nb = utf8CheckByte(buf[j]);
10333
10512
  if (nb >= 0) {
10334
10513
  if (nb > 0)
10335
- self.lastNeed = nb - 1;
10514
+ self2.lastNeed = nb - 1;
10336
10515
  return nb;
10337
10516
  }
10338
10517
  if (--j < i || nb === -2)
@@ -10340,7 +10519,7 @@ var require_string_decoder = __commonJS({
10340
10519
  nb = utf8CheckByte(buf[j]);
10341
10520
  if (nb >= 0) {
10342
10521
  if (nb > 0)
10343
- self.lastNeed = nb - 2;
10522
+ self2.lastNeed = nb - 2;
10344
10523
  return nb;
10345
10524
  }
10346
10525
  if (--j < i || nb === -2)
@@ -10351,25 +10530,25 @@ var require_string_decoder = __commonJS({
10351
10530
  if (nb === 2)
10352
10531
  nb = 0;
10353
10532
  else
10354
- self.lastNeed = nb - 3;
10533
+ self2.lastNeed = nb - 3;
10355
10534
  }
10356
10535
  return nb;
10357
10536
  }
10358
10537
  return 0;
10359
10538
  }
10360
- function utf8CheckExtraBytes(self, buf, p) {
10539
+ function utf8CheckExtraBytes(self2, buf, p) {
10361
10540
  if ((buf[0] & 192) !== 128) {
10362
- self.lastNeed = 0;
10541
+ self2.lastNeed = 0;
10363
10542
  return "\uFFFD";
10364
10543
  }
10365
- if (self.lastNeed > 1 && buf.length > 1) {
10544
+ if (self2.lastNeed > 1 && buf.length > 1) {
10366
10545
  if ((buf[1] & 192) !== 128) {
10367
- self.lastNeed = 1;
10546
+ self2.lastNeed = 1;
10368
10547
  return "\uFFFD";
10369
10548
  }
10370
- if (self.lastNeed > 2 && buf.length > 2) {
10549
+ if (self2.lastNeed > 2 && buf.length > 2) {
10371
10550
  if ((buf[2] & 192) !== 128) {
10372
- self.lastNeed = 2;
10551
+ self2.lastNeed = 2;
10373
10552
  return "\uFFFD";
10374
10553
  }
10375
10554
  }
@@ -10566,6 +10745,7 @@ var require_async_iterator = __commonJS({
10566
10745
  "use strict";
10567
10746
  var _Object$setPrototypeO;
10568
10747
  function _defineProperty(obj, key, value) {
10748
+ key = _toPropertyKey(key);
10569
10749
  if (key in obj) {
10570
10750
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
10571
10751
  } else {
@@ -10573,6 +10753,22 @@ var require_async_iterator = __commonJS({
10573
10753
  }
10574
10754
  return obj;
10575
10755
  }
10756
+ function _toPropertyKey(arg) {
10757
+ var key = _toPrimitive(arg, "string");
10758
+ return typeof key === "symbol" ? key : String(key);
10759
+ }
10760
+ function _toPrimitive(input, hint) {
10761
+ if (typeof input !== "object" || input === null)
10762
+ return input;
10763
+ var prim = input[Symbol.toPrimitive];
10764
+ if (prim !== void 0) {
10765
+ var res = prim.call(input, hint || "default");
10766
+ if (typeof res !== "object")
10767
+ return res;
10768
+ throw new TypeError("@@toPrimitive must return a primitive value.");
10769
+ }
10770
+ return (hint === "string" ? String : Number)(input);
10771
+ }
10576
10772
  var finished = require_end_of_stream();
10577
10773
  var kLastResolve = Symbol("lastResolve");
10578
10774
  var kLastReject = Symbol("lastReject");
@@ -10748,9 +10944,9 @@ var require_from = __commonJS({
10748
10944
  }
10749
10945
  function _asyncToGenerator(fn) {
10750
10946
  return function() {
10751
- var self = this, args2 = arguments;
10947
+ var self2 = this, args2 = arguments;
10752
10948
  return new Promise(function(resolve3, reject) {
10753
- var gen = fn.apply(self, args2);
10949
+ var gen = fn.apply(self2, args2);
10754
10950
  function _next(value) {
10755
10951
  asyncGeneratorStep(gen, resolve3, reject, _next, _throw, "next", value);
10756
10952
  }
@@ -10765,32 +10961,25 @@ var require_from = __commonJS({
10765
10961
  var keys = Object.keys(object);
10766
10962
  if (Object.getOwnPropertySymbols) {
10767
10963
  var symbols = Object.getOwnPropertySymbols(object);
10768
- if (enumerableOnly)
10769
- symbols = symbols.filter(function(sym) {
10770
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10771
- });
10772
- keys.push.apply(keys, symbols);
10964
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
10965
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10966
+ })), keys.push.apply(keys, symbols);
10773
10967
  }
10774
10968
  return keys;
10775
10969
  }
10776
10970
  function _objectSpread(target) {
10777
10971
  for (var i = 1; i < arguments.length; i++) {
10778
10972
  var source = arguments[i] != null ? arguments[i] : {};
10779
- if (i % 2) {
10780
- ownKeys(Object(source), true).forEach(function(key) {
10781
- _defineProperty(target, key, source[key]);
10782
- });
10783
- } else if (Object.getOwnPropertyDescriptors) {
10784
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10785
- } else {
10786
- ownKeys(Object(source)).forEach(function(key) {
10787
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10788
- });
10789
- }
10973
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
10974
+ _defineProperty(target, key, source[key]);
10975
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
10976
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10977
+ });
10790
10978
  }
10791
10979
  return target;
10792
10980
  }
10793
10981
  function _defineProperty(obj, key, value) {
10982
+ key = _toPropertyKey(key);
10794
10983
  if (key in obj) {
10795
10984
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
10796
10985
  } else {
@@ -10798,6 +10987,22 @@ var require_from = __commonJS({
10798
10987
  }
10799
10988
  return obj;
10800
10989
  }
10990
+ function _toPropertyKey(arg) {
10991
+ var key = _toPrimitive(arg, "string");
10992
+ return typeof key === "symbol" ? key : String(key);
10993
+ }
10994
+ function _toPrimitive(input, hint) {
10995
+ if (typeof input !== "object" || input === null)
10996
+ return input;
10997
+ var prim = input[Symbol.toPrimitive];
10998
+ if (prim !== void 0) {
10999
+ var res = prim.call(input, hint || "default");
11000
+ if (typeof res !== "object")
11001
+ return res;
11002
+ throw new TypeError("@@toPrimitive must return a primitive value.");
11003
+ }
11004
+ return (hint === "string" ? String : Number)(input);
11005
+ }
10801
11006
  var ERR_INVALID_ARG_TYPE = require_errors().codes.ERR_INVALID_ARG_TYPE;
10802
11007
  function from(Readable, iterable, opts) {
10803
11008
  var iterator;
@@ -10825,7 +11030,7 @@ var require_from = __commonJS({
10825
11030
  function _next2() {
10826
11031
  _next2 = _asyncToGenerator(function* () {
10827
11032
  try {
10828
- var _ref = yield iterator.next(), value = _ref.value, done = _ref.done;
11033
+ var _yield$iterator$next = yield iterator.next(), value = _yield$iterator$next.value, done = _yield$iterator$next.done;
10829
11034
  if (done) {
10830
11035
  readable.push(null);
10831
11036
  } else if (readable.push(yield value)) {
@@ -10858,7 +11063,7 @@ var require_stream_readable = __commonJS({
10858
11063
  };
10859
11064
  var Stream = require_stream();
10860
11065
  var Buffer2 = require("buffer").Buffer;
10861
- var OurUint8Array = global.Uint8Array || function() {
11066
+ var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
10862
11067
  };
10863
11068
  function _uint8ArrayToBuffer(chunk) {
10864
11069
  return Buffer2.from(chunk);
@@ -11372,11 +11577,10 @@ var require_stream_readable = __commonJS({
11372
11577
  state.pipes = null;
11373
11578
  state.pipesCount = 0;
11374
11579
  state.flowing = false;
11375
- for (var i = 0; i < len; i++) {
11580
+ for (var i = 0; i < len; i++)
11376
11581
  dests[i].emit("unpipe", this, {
11377
11582
  hasUnpiped: false
11378
11583
  });
11379
- }
11380
11584
  return this;
11381
11585
  }
11382
11586
  var index = indexOf(state.pipes, dest);
@@ -11426,18 +11630,18 @@ var require_stream_readable = __commonJS({
11426
11630
  }
11427
11631
  return res;
11428
11632
  };
11429
- function updateReadableListening(self) {
11430
- var state = self._readableState;
11431
- state.readableListening = self.listenerCount("readable") > 0;
11633
+ function updateReadableListening(self2) {
11634
+ var state = self2._readableState;
11635
+ state.readableListening = self2.listenerCount("readable") > 0;
11432
11636
  if (state.resumeScheduled && !state.paused) {
11433
11637
  state.flowing = true;
11434
- } else if (self.listenerCount("data") > 0) {
11435
- self.resume();
11638
+ } else if (self2.listenerCount("data") > 0) {
11639
+ self2.resume();
11436
11640
  }
11437
11641
  }
11438
- function nReadingNextTick(self) {
11642
+ function nReadingNextTick(self2) {
11439
11643
  debug("readable nexttick read 0");
11440
- self.read(0);
11644
+ self2.read(0);
11441
11645
  }
11442
11646
  Readable.prototype.resume = function() {
11443
11647
  var state = this._readableState;
@@ -11479,9 +11683,8 @@ var require_stream_readable = __commonJS({
11479
11683
  function flow(stream) {
11480
11684
  var state = stream._readableState;
11481
11685
  debug("flow", state.flowing);
11482
- while (state.flowing && stream.read() !== null) {
11686
+ while (state.flowing && stream.read() !== null)
11483
11687
  ;
11484
- }
11485
11688
  }
11486
11689
  Readable.prototype.wrap = function(stream) {
11487
11690
  var _this = this;
@@ -11875,9 +12078,9 @@ var require_readable = __commonJS({
11875
12078
  }
11876
12079
  });
11877
12080
 
11878
- // ../../../node_modules/ora/node_modules/bl/BufferList.js
12081
+ // ../../../node_modules/stdin-discarder/node_modules/bl/BufferList.js
11879
12082
  var require_BufferList = __commonJS({
11880
- "../../../node_modules/ora/node_modules/bl/BufferList.js"(exports2, module2) {
12083
+ "../../../node_modules/stdin-discarder/node_modules/bl/BufferList.js"(exports2, module2) {
11881
12084
  "use strict";
11882
12085
  var { Buffer: Buffer2 } = require("buffer");
11883
12086
  var symbol = Symbol.for("BufferList");
@@ -12179,9 +12382,9 @@ var require_BufferList = __commonJS({
12179
12382
  }
12180
12383
  });
12181
12384
 
12182
- // ../../../node_modules/ora/node_modules/bl/bl.js
12385
+ // ../../../node_modules/stdin-discarder/node_modules/bl/bl.js
12183
12386
  var require_bl = __commonJS({
12184
- "../../../node_modules/ora/node_modules/bl/bl.js"(exports2, module2) {
12387
+ "../../../node_modules/stdin-discarder/node_modules/bl/bl.js"(exports2, module2) {
12185
12388
  "use strict";
12186
12389
  var DuplexStream = require_readable().Duplex;
12187
12390
  var inherits = require_inherits();
@@ -12601,9 +12804,9 @@ var require_balanced_match = __commonJS({
12601
12804
  }
12602
12805
  });
12603
12806
 
12604
- // ../../../node_modules/brace-expansion/index.js
12807
+ // ../../../node_modules/minimatch/node_modules/brace-expansion/index.js
12605
12808
  var require_brace_expansion = __commonJS({
12606
- "../../../node_modules/brace-expansion/index.js"(exports2, module2) {
12809
+ "../../../node_modules/minimatch/node_modules/brace-expansion/index.js"(exports2, module2) {
12607
12810
  var concatMap = require_concat_map();
12608
12811
  var balanced = require_balanced_match();
12609
12812
  module2.exports = expandTop;
@@ -12965,7 +13168,7 @@ var require_minimatch = __commonJS({
12965
13168
  var reClassStart = -1;
12966
13169
  var classStart = -1;
12967
13170
  var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
12968
- var self = this;
13171
+ var self2 = this;
12969
13172
  function clearStateChar() {
12970
13173
  if (stateChar) {
12971
13174
  switch (stateChar) {
@@ -12981,7 +13184,7 @@ var require_minimatch = __commonJS({
12981
13184
  re += "\\" + stateChar;
12982
13185
  break;
12983
13186
  }
12984
- self.debug("clearStateChar %j %j", stateChar, re);
13187
+ self2.debug("clearStateChar %j %j", stateChar, re);
12985
13188
  stateChar = false;
12986
13189
  }
12987
13190
  }
@@ -13013,7 +13216,7 @@ var require_minimatch = __commonJS({
13013
13216
  re += c;
13014
13217
  continue;
13015
13218
  }
13016
- self.debug("call clearStateChar %j", stateChar);
13219
+ self2.debug("call clearStateChar %j", stateChar);
13017
13220
  clearStateChar();
13018
13221
  stateChar = c;
13019
13222
  if (options.noext)
@@ -13374,12 +13577,12 @@ var require_common = __commonJS({
13374
13577
  function alphasort(a, b) {
13375
13578
  return a.localeCompare(b, "en");
13376
13579
  }
13377
- function setupIgnores(self, options) {
13378
- self.ignore = options.ignore || [];
13379
- if (!Array.isArray(self.ignore))
13380
- self.ignore = [self.ignore];
13381
- if (self.ignore.length) {
13382
- self.ignore = self.ignore.map(ignoreMap);
13580
+ function setupIgnores(self2, options) {
13581
+ self2.ignore = options.ignore || [];
13582
+ if (!Array.isArray(self2.ignore))
13583
+ self2.ignore = [self2.ignore];
13584
+ if (self2.ignore.length) {
13585
+ self2.ignore = self2.ignore.map(ignoreMap);
13383
13586
  }
13384
13587
  }
13385
13588
  function ignoreMap(pattern) {
@@ -13393,7 +13596,7 @@ var require_common = __commonJS({
13393
13596
  gmatcher
13394
13597
  };
13395
13598
  }
13396
- function setopts(self, pattern, options) {
13599
+ function setopts(self2, pattern, options) {
13397
13600
  if (!options)
13398
13601
  options = {};
13399
13602
  if (options.matchBase && pattern.indexOf("/") === -1) {
@@ -13402,61 +13605,61 @@ var require_common = __commonJS({
13402
13605
  }
13403
13606
  pattern = "**/" + pattern;
13404
13607
  }
13405
- self.silent = !!options.silent;
13406
- self.pattern = pattern;
13407
- self.strict = options.strict !== false;
13408
- self.realpath = !!options.realpath;
13409
- self.realpathCache = options.realpathCache || Object.create(null);
13410
- self.follow = !!options.follow;
13411
- self.dot = !!options.dot;
13412
- self.mark = !!options.mark;
13413
- self.nodir = !!options.nodir;
13414
- if (self.nodir)
13415
- self.mark = true;
13416
- self.sync = !!options.sync;
13417
- self.nounique = !!options.nounique;
13418
- self.nonull = !!options.nonull;
13419
- self.nosort = !!options.nosort;
13420
- self.nocase = !!options.nocase;
13421
- self.stat = !!options.stat;
13422
- self.noprocess = !!options.noprocess;
13423
- self.absolute = !!options.absolute;
13424
- self.fs = options.fs || fs;
13425
- self.maxLength = options.maxLength || Infinity;
13426
- self.cache = options.cache || Object.create(null);
13427
- self.statCache = options.statCache || Object.create(null);
13428
- self.symlinks = options.symlinks || Object.create(null);
13429
- setupIgnores(self, options);
13430
- self.changedCwd = false;
13608
+ self2.silent = !!options.silent;
13609
+ self2.pattern = pattern;
13610
+ self2.strict = options.strict !== false;
13611
+ self2.realpath = !!options.realpath;
13612
+ self2.realpathCache = options.realpathCache || Object.create(null);
13613
+ self2.follow = !!options.follow;
13614
+ self2.dot = !!options.dot;
13615
+ self2.mark = !!options.mark;
13616
+ self2.nodir = !!options.nodir;
13617
+ if (self2.nodir)
13618
+ self2.mark = true;
13619
+ self2.sync = !!options.sync;
13620
+ self2.nounique = !!options.nounique;
13621
+ self2.nonull = !!options.nonull;
13622
+ self2.nosort = !!options.nosort;
13623
+ self2.nocase = !!options.nocase;
13624
+ self2.stat = !!options.stat;
13625
+ self2.noprocess = !!options.noprocess;
13626
+ self2.absolute = !!options.absolute;
13627
+ self2.fs = options.fs || fs;
13628
+ self2.maxLength = options.maxLength || Infinity;
13629
+ self2.cache = options.cache || Object.create(null);
13630
+ self2.statCache = options.statCache || Object.create(null);
13631
+ self2.symlinks = options.symlinks || Object.create(null);
13632
+ setupIgnores(self2, options);
13633
+ self2.changedCwd = false;
13431
13634
  var cwd = process.cwd();
13432
13635
  if (!ownProp(options, "cwd"))
13433
- self.cwd = cwd;
13636
+ self2.cwd = cwd;
13434
13637
  else {
13435
- self.cwd = path.resolve(options.cwd);
13436
- self.changedCwd = self.cwd !== cwd;
13638
+ self2.cwd = path.resolve(options.cwd);
13639
+ self2.changedCwd = self2.cwd !== cwd;
13437
13640
  }
13438
- self.root = options.root || path.resolve(self.cwd, "/");
13439
- self.root = path.resolve(self.root);
13641
+ self2.root = options.root || path.resolve(self2.cwd, "/");
13642
+ self2.root = path.resolve(self2.root);
13440
13643
  if (process.platform === "win32")
13441
- self.root = self.root.replace(/\\/g, "/");
13442
- self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
13644
+ self2.root = self2.root.replace(/\\/g, "/");
13645
+ self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
13443
13646
  if (process.platform === "win32")
13444
- self.cwdAbs = self.cwdAbs.replace(/\\/g, "/");
13445
- self.nomount = !!options.nomount;
13647
+ self2.cwdAbs = self2.cwdAbs.replace(/\\/g, "/");
13648
+ self2.nomount = !!options.nomount;
13446
13649
  options.nonegate = true;
13447
13650
  options.nocomment = true;
13448
13651
  options.allowWindowsEscape = false;
13449
- self.minimatch = new Minimatch(pattern, options);
13450
- self.options = self.minimatch.options;
13652
+ self2.minimatch = new Minimatch(pattern, options);
13653
+ self2.options = self2.minimatch.options;
13451
13654
  }
13452
- function finish(self) {
13453
- var nou = self.nounique;
13655
+ function finish(self2) {
13656
+ var nou = self2.nounique;
13454
13657
  var all = nou ? [] : Object.create(null);
13455
- for (var i = 0, l = self.matches.length; i < l; i++) {
13456
- var matches = self.matches[i];
13658
+ for (var i = 0, l = self2.matches.length; i < l; i++) {
13659
+ var matches = self2.matches[i];
13457
13660
  if (!matches || Object.keys(matches).length === 0) {
13458
- if (self.nonull) {
13459
- var literal = self.minimatch.globSet[i];
13661
+ if (self2.nonull) {
13662
+ var literal = self2.minimatch.globSet[i];
13460
13663
  if (nou)
13461
13664
  all.push(literal);
13462
13665
  else
@@ -13474,31 +13677,31 @@ var require_common = __commonJS({
13474
13677
  }
13475
13678
  if (!nou)
13476
13679
  all = Object.keys(all);
13477
- if (!self.nosort)
13680
+ if (!self2.nosort)
13478
13681
  all = all.sort(alphasort);
13479
- if (self.mark) {
13682
+ if (self2.mark) {
13480
13683
  for (var i = 0; i < all.length; i++) {
13481
- all[i] = self._mark(all[i]);
13684
+ all[i] = self2._mark(all[i]);
13482
13685
  }
13483
- if (self.nodir) {
13686
+ if (self2.nodir) {
13484
13687
  all = all.filter(function(e) {
13485
13688
  var notDir = !/\/$/.test(e);
13486
- var c = self.cache[e] || self.cache[makeAbs(self, e)];
13689
+ var c = self2.cache[e] || self2.cache[makeAbs(self2, e)];
13487
13690
  if (notDir && c)
13488
13691
  notDir = c !== "DIR" && !Array.isArray(c);
13489
13692
  return notDir;
13490
13693
  });
13491
13694
  }
13492
13695
  }
13493
- if (self.ignore.length)
13696
+ if (self2.ignore.length)
13494
13697
  all = all.filter(function(m2) {
13495
- return !isIgnored(self, m2);
13698
+ return !isIgnored(self2, m2);
13496
13699
  });
13497
- self.found = all;
13700
+ self2.found = all;
13498
13701
  }
13499
- function mark(self, p) {
13500
- var abs = makeAbs(self, p);
13501
- var c = self.cache[abs];
13702
+ function mark(self2, p) {
13703
+ var abs = makeAbs(self2, p);
13704
+ var c = self2.cache[abs];
13502
13705
  var m = p;
13503
13706
  if (c) {
13504
13707
  var isDir = c === "DIR" || Array.isArray(c);
@@ -13508,21 +13711,21 @@ var require_common = __commonJS({
13508
13711
  else if (!isDir && slash)
13509
13712
  m = m.slice(0, -1);
13510
13713
  if (m !== p) {
13511
- var mabs = makeAbs(self, m);
13512
- self.statCache[mabs] = self.statCache[abs];
13513
- self.cache[mabs] = self.cache[abs];
13714
+ var mabs = makeAbs(self2, m);
13715
+ self2.statCache[mabs] = self2.statCache[abs];
13716
+ self2.cache[mabs] = self2.cache[abs];
13514
13717
  }
13515
13718
  }
13516
13719
  return m;
13517
13720
  }
13518
- function makeAbs(self, f) {
13721
+ function makeAbs(self2, f) {
13519
13722
  var abs = f;
13520
13723
  if (f.charAt(0) === "/") {
13521
- abs = path.join(self.root, f);
13724
+ abs = path.join(self2.root, f);
13522
13725
  } else if (isAbsolute(f) || f === "") {
13523
13726
  abs = f;
13524
- } else if (self.changedCwd) {
13525
- abs = path.resolve(self.cwd, f);
13727
+ } else if (self2.changedCwd) {
13728
+ abs = path.resolve(self2.cwd, f);
13526
13729
  } else {
13527
13730
  abs = path.resolve(f);
13528
13731
  }
@@ -13530,17 +13733,17 @@ var require_common = __commonJS({
13530
13733
  abs = abs.replace(/\\/g, "/");
13531
13734
  return abs;
13532
13735
  }
13533
- function isIgnored(self, path2) {
13534
- if (!self.ignore.length)
13736
+ function isIgnored(self2, path2) {
13737
+ if (!self2.ignore.length)
13535
13738
  return false;
13536
- return self.ignore.some(function(item) {
13739
+ return self2.ignore.some(function(item) {
13537
13740
  return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2));
13538
13741
  });
13539
13742
  }
13540
- function childrenIgnored(self, path2) {
13541
- if (!self.ignore.length)
13743
+ function childrenIgnored(self2, path2) {
13744
+ if (!self2.ignore.length)
13542
13745
  return false;
13543
- return self.ignore.some(function(item) {
13746
+ return self2.ignore.some(function(item) {
13544
13747
  return !!(item.gmatcher && item.gmatcher.match(path2));
13545
13748
  });
13546
13749
  }
@@ -13590,17 +13793,17 @@ var require_sync = __commonJS({
13590
13793
  GlobSync.prototype._finish = function() {
13591
13794
  assert.ok(this instanceof GlobSync);
13592
13795
  if (this.realpath) {
13593
- var self = this;
13796
+ var self2 = this;
13594
13797
  this.matches.forEach(function(matchset, index) {
13595
- var set = self.matches[index] = Object.create(null);
13798
+ var set = self2.matches[index] = Object.create(null);
13596
13799
  for (var p in matchset) {
13597
13800
  try {
13598
- p = self._makeAbs(p);
13599
- var real = rp.realpathSync(p, self.realpathCache);
13801
+ p = self2._makeAbs(p);
13802
+ var real = rp.realpathSync(p, self2.realpathCache);
13600
13803
  set[real] = true;
13601
13804
  } catch (er) {
13602
13805
  if (er.syscall === "stat")
13603
- set[self._makeAbs(p)] = true;
13806
+ set[self2._makeAbs(p)] = true;
13604
13807
  else
13605
13808
  throw er;
13606
13809
  }
@@ -14109,7 +14312,7 @@ var require_glob = __commonJS({
14109
14312
  cb(null, matches);
14110
14313
  });
14111
14314
  }
14112
- var self = this;
14315
+ var self2 = this;
14113
14316
  this._processing = 0;
14114
14317
  this._emitQueue = [];
14115
14318
  this._processQueue = [];
@@ -14124,14 +14327,14 @@ var require_glob = __commonJS({
14124
14327
  }
14125
14328
  sync = false;
14126
14329
  function done() {
14127
- --self._processing;
14128
- if (self._processing <= 0) {
14330
+ --self2._processing;
14331
+ if (self2._processing <= 0) {
14129
14332
  if (sync) {
14130
14333
  process.nextTick(function() {
14131
- self._finish();
14334
+ self2._finish();
14132
14335
  });
14133
14336
  } else {
14134
- self._finish();
14337
+ self2._finish();
14135
14338
  }
14136
14339
  }
14137
14340
  }
@@ -14152,12 +14355,12 @@ var require_glob = __commonJS({
14152
14355
  var n = this.matches.length;
14153
14356
  if (n === 0)
14154
14357
  return this._finish();
14155
- var self = this;
14358
+ var self2 = this;
14156
14359
  for (var i = 0; i < this.matches.length; i++)
14157
14360
  this._realpathSet(i, next);
14158
14361
  function next() {
14159
14362
  if (--n === 0)
14160
- self._finish();
14363
+ self2._finish();
14161
14364
  }
14162
14365
  };
14163
14366
  Glob.prototype._realpathSet = function(index, cb) {
@@ -14165,22 +14368,22 @@ var require_glob = __commonJS({
14165
14368
  if (!matchset)
14166
14369
  return cb();
14167
14370
  var found = Object.keys(matchset);
14168
- var self = this;
14371
+ var self2 = this;
14169
14372
  var n = found.length;
14170
14373
  if (n === 0)
14171
14374
  return cb();
14172
14375
  var set = this.matches[index] = Object.create(null);
14173
14376
  found.forEach(function(p, i) {
14174
- p = self._makeAbs(p);
14175
- rp.realpath(p, self.realpathCache, function(er, real) {
14377
+ p = self2._makeAbs(p);
14378
+ rp.realpath(p, self2.realpathCache, function(er, real) {
14176
14379
  if (!er)
14177
14380
  set[real] = true;
14178
14381
  else if (er.syscall === "stat")
14179
14382
  set[p] = true;
14180
14383
  else
14181
- self.emit("error", er);
14384
+ self2.emit("error", er);
14182
14385
  if (--n === 0) {
14183
- self.matches[index] = set;
14386
+ self2.matches[index] = set;
14184
14387
  cb();
14185
14388
  }
14186
14389
  });
@@ -14273,9 +14476,9 @@ var require_glob = __commonJS({
14273
14476
  this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb);
14274
14477
  };
14275
14478
  Glob.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar, cb) {
14276
- var self = this;
14479
+ var self2 = this;
14277
14480
  this._readdir(abs, inGlobStar, function(er, entries) {
14278
- return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
14481
+ return self2._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
14279
14482
  });
14280
14483
  };
14281
14484
  Glob.prototype._processReaddir2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) {
@@ -14367,20 +14570,20 @@ var require_glob = __commonJS({
14367
14570
  if (this.follow)
14368
14571
  return this._readdir(abs, false, cb);
14369
14572
  var lstatkey = "lstat\0" + abs;
14370
- var self = this;
14573
+ var self2 = this;
14371
14574
  var lstatcb = inflight(lstatkey, lstatcb_);
14372
14575
  if (lstatcb)
14373
- self.fs.lstat(abs, lstatcb);
14576
+ self2.fs.lstat(abs, lstatcb);
14374
14577
  function lstatcb_(er, lstat) {
14375
14578
  if (er && er.code === "ENOENT")
14376
14579
  return cb();
14377
14580
  var isSym = lstat && lstat.isSymbolicLink();
14378
- self.symlinks[abs] = isSym;
14581
+ self2.symlinks[abs] = isSym;
14379
14582
  if (!isSym && lstat && !lstat.isDirectory()) {
14380
- self.cache[abs] = "FILE";
14583
+ self2.cache[abs] = "FILE";
14381
14584
  cb();
14382
14585
  } else
14383
- self._readdir(abs, false, cb);
14586
+ self2._readdir(abs, false, cb);
14384
14587
  }
14385
14588
  };
14386
14589
  Glob.prototype._readdir = function(abs, inGlobStar, cb) {
@@ -14398,15 +14601,15 @@ var require_glob = __commonJS({
14398
14601
  if (Array.isArray(c))
14399
14602
  return cb(null, c);
14400
14603
  }
14401
- var self = this;
14402
- self.fs.readdir(abs, readdirCb(this, abs, cb));
14604
+ var self2 = this;
14605
+ self2.fs.readdir(abs, readdirCb(this, abs, cb));
14403
14606
  };
14404
- function readdirCb(self, abs, cb) {
14607
+ function readdirCb(self2, abs, cb) {
14405
14608
  return function(er, entries) {
14406
14609
  if (er)
14407
- self._readdirError(abs, er, cb);
14610
+ self2._readdirError(abs, er, cb);
14408
14611
  else
14409
- self._readdirEntries(abs, entries, cb);
14612
+ self2._readdirEntries(abs, entries, cb);
14410
14613
  };
14411
14614
  }
14412
14615
  Glob.prototype._readdirEntries = function(abs, entries, cb) {
@@ -14460,9 +14663,9 @@ var require_glob = __commonJS({
14460
14663
  return cb();
14461
14664
  };
14462
14665
  Glob.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar, cb) {
14463
- var self = this;
14666
+ var self2 = this;
14464
14667
  this._readdir(abs, inGlobStar, function(er, entries) {
14465
- self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
14668
+ self2._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
14466
14669
  });
14467
14670
  };
14468
14671
  Glob.prototype._processGlobStar2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) {
@@ -14488,9 +14691,9 @@ var require_glob = __commonJS({
14488
14691
  cb();
14489
14692
  };
14490
14693
  Glob.prototype._processSimple = function(prefix, index, cb) {
14491
- var self = this;
14694
+ var self2 = this;
14492
14695
  this._stat(prefix, function(er, exists) {
14493
- self._processSimple2(prefix, index, er, exists, cb);
14696
+ self2._processSimple2(prefix, index, er, exists, cb);
14494
14697
  });
14495
14698
  };
14496
14699
  Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) {
@@ -14540,20 +14743,20 @@ var require_glob = __commonJS({
14540
14743
  return cb(null, type, stat2);
14541
14744
  }
14542
14745
  }
14543
- var self = this;
14746
+ var self2 = this;
14544
14747
  var statcb = inflight("stat\0" + abs, lstatcb_);
14545
14748
  if (statcb)
14546
- self.fs.lstat(abs, statcb);
14749
+ self2.fs.lstat(abs, statcb);
14547
14750
  function lstatcb_(er, lstat) {
14548
14751
  if (lstat && lstat.isSymbolicLink()) {
14549
- return self.fs.stat(abs, function(er2, stat3) {
14752
+ return self2.fs.stat(abs, function(er2, stat3) {
14550
14753
  if (er2)
14551
- self._stat2(f, abs, null, lstat, cb);
14754
+ self2._stat2(f, abs, null, lstat, cb);
14552
14755
  else
14553
- self._stat2(f, abs, er2, stat3, cb);
14756
+ self2._stat2(f, abs, er2, stat3, cb);
14554
14757
  });
14555
14758
  } else {
14556
- self._stat2(f, abs, er, lstat, cb);
14759
+ self2._stat2(f, abs, er, lstat, cb);
14557
14760
  }
14558
14761
  }
14559
14762
  };
@@ -15209,14 +15412,13 @@ var require_ms = __commonJS({
15209
15412
  var m = s * 60;
15210
15413
  var h = m * 60;
15211
15414
  var d = h * 24;
15212
- var w = d * 7;
15213
15415
  var y = d * 365.25;
15214
15416
  module2.exports = function(val, options) {
15215
15417
  options = options || {};
15216
15418
  var type = typeof val;
15217
15419
  if (type === "string" && val.length > 0) {
15218
15420
  return parse(val);
15219
- } else if (type === "number" && isFinite(val)) {
15421
+ } else if (type === "number" && isNaN(val) === false) {
15220
15422
  return options.long ? fmtLong(val) : fmtShort(val);
15221
15423
  }
15222
15424
  throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
@@ -15226,7 +15428,7 @@ var require_ms = __commonJS({
15226
15428
  if (str.length > 100) {
15227
15429
  return;
15228
15430
  }
15229
- 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);
15431
+ var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
15230
15432
  if (!match) {
15231
15433
  return;
15232
15434
  }
@@ -15239,10 +15441,6 @@ var require_ms = __commonJS({
15239
15441
  case "yr":
15240
15442
  case "y":
15241
15443
  return n * y;
15242
- case "weeks":
15243
- case "week":
15244
- case "w":
15245
- return n * w;
15246
15444
  case "days":
15247
15445
  case "day":
15248
15446
  case "d":
@@ -15276,324 +15474,187 @@ var require_ms = __commonJS({
15276
15474
  }
15277
15475
  }
15278
15476
  function fmtShort(ms) {
15279
- var msAbs = Math.abs(ms);
15280
- if (msAbs >= d) {
15477
+ if (ms >= d) {
15281
15478
  return Math.round(ms / d) + "d";
15282
15479
  }
15283
- if (msAbs >= h) {
15480
+ if (ms >= h) {
15284
15481
  return Math.round(ms / h) + "h";
15285
15482
  }
15286
- if (msAbs >= m) {
15483
+ if (ms >= m) {
15287
15484
  return Math.round(ms / m) + "m";
15288
15485
  }
15289
- if (msAbs >= s) {
15486
+ if (ms >= s) {
15290
15487
  return Math.round(ms / s) + "s";
15291
15488
  }
15292
15489
  return ms + "ms";
15293
15490
  }
15294
15491
  function fmtLong(ms) {
15295
- var msAbs = Math.abs(ms);
15296
- if (msAbs >= d) {
15297
- return plural(ms, msAbs, d, "day");
15298
- }
15299
- if (msAbs >= h) {
15300
- return plural(ms, msAbs, h, "hour");
15301
- }
15302
- if (msAbs >= m) {
15303
- return plural(ms, msAbs, m, "minute");
15492
+ return plural(ms, d, "day") || plural(ms, h, "hour") || plural(ms, m, "minute") || plural(ms, s, "second") || ms + " ms";
15493
+ }
15494
+ function plural(ms, n, name) {
15495
+ if (ms < n) {
15496
+ return;
15304
15497
  }
15305
- if (msAbs >= s) {
15306
- return plural(ms, msAbs, s, "second");
15498
+ if (ms < n * 1.5) {
15499
+ return Math.floor(ms / n) + " " + name;
15307
15500
  }
15308
- return ms + " ms";
15309
- }
15310
- function plural(ms, msAbs, n, name) {
15311
- var isPlural = msAbs >= n * 1.5;
15312
- return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
15501
+ return Math.ceil(ms / n) + " " + name + "s";
15313
15502
  }
15314
15503
  }
15315
15504
  });
15316
15505
 
15317
- // ../../../node_modules/debug/src/common.js
15318
- var require_common2 = __commonJS({
15319
- "../../../node_modules/debug/src/common.js"(exports2, module2) {
15320
- function setup(env) {
15321
- createDebug.debug = createDebug;
15322
- createDebug.default = createDebug;
15323
- createDebug.coerce = coerce;
15324
- createDebug.disable = disable;
15325
- createDebug.enable = enable;
15326
- createDebug.enabled = enabled;
15327
- createDebug.humanize = require_ms();
15328
- createDebug.destroy = destroy;
15329
- Object.keys(env).forEach((key) => {
15330
- createDebug[key] = env[key];
15331
- });
15332
- createDebug.names = [];
15333
- createDebug.skips = [];
15334
- createDebug.formatters = {};
15335
- function selectColor(namespace) {
15336
- let hash = 0;
15337
- for (let i = 0; i < namespace.length; i++) {
15338
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
15339
- hash |= 0;
15340
- }
15341
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
15342
- }
15343
- createDebug.selectColor = selectColor;
15344
- function createDebug(namespace) {
15345
- let prevTime;
15346
- let enableOverride = null;
15347
- let namespacesCache;
15348
- let enabledCache;
15349
- function debug(...args2) {
15350
- if (!debug.enabled) {
15351
- return;
15352
- }
15353
- const self = debug;
15354
- const curr = Number(new Date());
15355
- const ms = curr - (prevTime || curr);
15356
- self.diff = ms;
15357
- self.prev = prevTime;
15358
- self.curr = curr;
15359
- prevTime = curr;
15360
- args2[0] = createDebug.coerce(args2[0]);
15361
- if (typeof args2[0] !== "string") {
15362
- args2.unshift("%O");
15363
- }
15364
- let index = 0;
15365
- args2[0] = args2[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
15366
- if (match === "%%") {
15367
- return "%";
15368
- }
15369
- index++;
15370
- const formatter = createDebug.formatters[format2];
15371
- if (typeof formatter === "function") {
15372
- const val = args2[index];
15373
- match = formatter.call(self, val);
15374
- args2.splice(index, 1);
15375
- index--;
15376
- }
15506
+ // ../../../node_modules/debug/src/debug.js
15507
+ var require_debug = __commonJS({
15508
+ "../../../node_modules/debug/src/debug.js"(exports2, module2) {
15509
+ exports2 = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
15510
+ exports2.coerce = coerce;
15511
+ exports2.disable = disable;
15512
+ exports2.enable = enable;
15513
+ exports2.enabled = enabled;
15514
+ exports2.humanize = require_ms();
15515
+ exports2.names = [];
15516
+ exports2.skips = [];
15517
+ exports2.formatters = {};
15518
+ var prevTime;
15519
+ function selectColor(namespace) {
15520
+ var hash = 0, i;
15521
+ for (i in namespace) {
15522
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
15523
+ hash |= 0;
15524
+ }
15525
+ return exports2.colors[Math.abs(hash) % exports2.colors.length];
15526
+ }
15527
+ function createDebug(namespace) {
15528
+ function debug() {
15529
+ if (!debug.enabled)
15530
+ return;
15531
+ var self2 = debug;
15532
+ var curr = +new Date();
15533
+ var ms = curr - (prevTime || curr);
15534
+ self2.diff = ms;
15535
+ self2.prev = prevTime;
15536
+ self2.curr = curr;
15537
+ prevTime = curr;
15538
+ var args2 = new Array(arguments.length);
15539
+ for (var i = 0; i < args2.length; i++) {
15540
+ args2[i] = arguments[i];
15541
+ }
15542
+ args2[0] = exports2.coerce(args2[0]);
15543
+ if (typeof args2[0] !== "string") {
15544
+ args2.unshift("%O");
15545
+ }
15546
+ var index = 0;
15547
+ args2[0] = args2[0].replace(/%([a-zA-Z%])/g, function(match, format2) {
15548
+ if (match === "%%")
15377
15549
  return match;
15378
- });
15379
- createDebug.formatArgs.call(self, args2);
15380
- const logFn = self.log || createDebug.log;
15381
- logFn.apply(self, args2);
15382
- }
15383
- debug.namespace = namespace;
15384
- debug.useColors = createDebug.useColors();
15385
- debug.color = createDebug.selectColor(namespace);
15386
- debug.extend = extend;
15387
- debug.destroy = createDebug.destroy;
15388
- Object.defineProperty(debug, "enabled", {
15389
- enumerable: true,
15390
- configurable: false,
15391
- get: () => {
15392
- if (enableOverride !== null) {
15393
- return enableOverride;
15394
- }
15395
- if (namespacesCache !== createDebug.namespaces) {
15396
- namespacesCache = createDebug.namespaces;
15397
- enabledCache = createDebug.enabled(namespace);
15398
- }
15399
- return enabledCache;
15400
- },
15401
- set: (v) => {
15402
- enableOverride = v;
15550
+ index++;
15551
+ var formatter = exports2.formatters[format2];
15552
+ if (typeof formatter === "function") {
15553
+ var val = args2[index];
15554
+ match = formatter.call(self2, val);
15555
+ args2.splice(index, 1);
15556
+ index--;
15403
15557
  }
15558
+ return match;
15404
15559
  });
15405
- if (typeof createDebug.init === "function") {
15406
- createDebug.init(debug);
15407
- }
15408
- return debug;
15409
- }
15410
- function extend(namespace, delimiter) {
15411
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
15412
- newDebug.log = this.log;
15413
- return newDebug;
15414
- }
15415
- function enable(namespaces) {
15416
- createDebug.save(namespaces);
15417
- createDebug.namespaces = namespaces;
15418
- createDebug.names = [];
15419
- createDebug.skips = [];
15420
- let i;
15421
- const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
15422
- const len = split.length;
15423
- for (i = 0; i < len; i++) {
15424
- if (!split[i]) {
15425
- continue;
15426
- }
15427
- namespaces = split[i].replace(/\*/g, ".*?");
15428
- if (namespaces[0] === "-") {
15429
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
15430
- } else {
15431
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
15432
- }
15560
+ exports2.formatArgs.call(self2, args2);
15561
+ var logFn = debug.log || exports2.log || console.log.bind(console);
15562
+ logFn.apply(self2, args2);
15563
+ }
15564
+ debug.namespace = namespace;
15565
+ debug.enabled = exports2.enabled(namespace);
15566
+ debug.useColors = exports2.useColors();
15567
+ debug.color = selectColor(namespace);
15568
+ if (typeof exports2.init === "function") {
15569
+ exports2.init(debug);
15570
+ }
15571
+ return debug;
15572
+ }
15573
+ function enable(namespaces) {
15574
+ exports2.save(namespaces);
15575
+ exports2.names = [];
15576
+ exports2.skips = [];
15577
+ var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
15578
+ var len = split.length;
15579
+ for (var i = 0; i < len; i++) {
15580
+ if (!split[i])
15581
+ continue;
15582
+ namespaces = split[i].replace(/\*/g, ".*?");
15583
+ if (namespaces[0] === "-") {
15584
+ exports2.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
15585
+ } else {
15586
+ exports2.names.push(new RegExp("^" + namespaces + "$"));
15433
15587
  }
15434
15588
  }
15435
- function disable() {
15436
- const namespaces = [
15437
- ...createDebug.names.map(toNamespace),
15438
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
15439
- ].join(",");
15440
- createDebug.enable("");
15441
- return namespaces;
15442
- }
15443
- function enabled(name) {
15444
- if (name[name.length - 1] === "*") {
15445
- return true;
15446
- }
15447
- let i;
15448
- let len;
15449
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
15450
- if (createDebug.skips[i].test(name)) {
15451
- return false;
15452
- }
15453
- }
15454
- for (i = 0, len = createDebug.names.length; i < len; i++) {
15455
- if (createDebug.names[i].test(name)) {
15456
- return true;
15457
- }
15589
+ }
15590
+ function disable() {
15591
+ exports2.enable("");
15592
+ }
15593
+ function enabled(name) {
15594
+ var i, len;
15595
+ for (i = 0, len = exports2.skips.length; i < len; i++) {
15596
+ if (exports2.skips[i].test(name)) {
15597
+ return false;
15458
15598
  }
15459
- return false;
15460
15599
  }
15461
- function toNamespace(regexp) {
15462
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
15463
- }
15464
- function coerce(val) {
15465
- if (val instanceof Error) {
15466
- return val.stack || val.message;
15600
+ for (i = 0, len = exports2.names.length; i < len; i++) {
15601
+ if (exports2.names[i].test(name)) {
15602
+ return true;
15467
15603
  }
15468
- return val;
15469
15604
  }
15470
- function destroy() {
15471
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
15472
- }
15473
- createDebug.enable(createDebug.load());
15474
- return createDebug;
15605
+ return false;
15606
+ }
15607
+ function coerce(val) {
15608
+ if (val instanceof Error)
15609
+ return val.stack || val.message;
15610
+ return val;
15475
15611
  }
15476
- module2.exports = setup;
15477
15612
  }
15478
15613
  });
15479
15614
 
15480
15615
  // ../../../node_modules/debug/src/browser.js
15481
15616
  var require_browser = __commonJS({
15482
15617
  "../../../node_modules/debug/src/browser.js"(exports2, module2) {
15618
+ exports2 = module2.exports = require_debug();
15619
+ exports2.log = log;
15483
15620
  exports2.formatArgs = formatArgs;
15484
15621
  exports2.save = save;
15485
15622
  exports2.load = load;
15486
15623
  exports2.useColors = useColors;
15487
- exports2.storage = localstorage();
15488
- exports2.destroy = (() => {
15489
- let warned = false;
15490
- return () => {
15491
- if (!warned) {
15492
- warned = true;
15493
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
15494
- }
15495
- };
15496
- })();
15624
+ exports2.storage = typeof chrome != "undefined" && typeof chrome.storage != "undefined" ? chrome.storage.local : localstorage();
15497
15625
  exports2.colors = [
15498
- "#0000CC",
15499
- "#0000FF",
15500
- "#0033CC",
15501
- "#0033FF",
15502
- "#0066CC",
15503
- "#0066FF",
15504
- "#0099CC",
15505
- "#0099FF",
15506
- "#00CC00",
15507
- "#00CC33",
15508
- "#00CC66",
15509
- "#00CC99",
15510
- "#00CCCC",
15511
- "#00CCFF",
15512
- "#3300CC",
15513
- "#3300FF",
15514
- "#3333CC",
15515
- "#3333FF",
15516
- "#3366CC",
15517
- "#3366FF",
15518
- "#3399CC",
15519
- "#3399FF",
15520
- "#33CC00",
15521
- "#33CC33",
15522
- "#33CC66",
15523
- "#33CC99",
15524
- "#33CCCC",
15525
- "#33CCFF",
15526
- "#6600CC",
15527
- "#6600FF",
15528
- "#6633CC",
15529
- "#6633FF",
15530
- "#66CC00",
15531
- "#66CC33",
15532
- "#9900CC",
15533
- "#9900FF",
15534
- "#9933CC",
15535
- "#9933FF",
15536
- "#99CC00",
15537
- "#99CC33",
15538
- "#CC0000",
15539
- "#CC0033",
15540
- "#CC0066",
15541
- "#CC0099",
15542
- "#CC00CC",
15543
- "#CC00FF",
15544
- "#CC3300",
15545
- "#CC3333",
15546
- "#CC3366",
15547
- "#CC3399",
15548
- "#CC33CC",
15549
- "#CC33FF",
15550
- "#CC6600",
15551
- "#CC6633",
15552
- "#CC9900",
15553
- "#CC9933",
15554
- "#CCCC00",
15555
- "#CCCC33",
15556
- "#FF0000",
15557
- "#FF0033",
15558
- "#FF0066",
15559
- "#FF0099",
15560
- "#FF00CC",
15561
- "#FF00FF",
15562
- "#FF3300",
15563
- "#FF3333",
15564
- "#FF3366",
15565
- "#FF3399",
15566
- "#FF33CC",
15567
- "#FF33FF",
15568
- "#FF6600",
15569
- "#FF6633",
15570
- "#FF9900",
15571
- "#FF9933",
15572
- "#FFCC00",
15573
- "#FFCC33"
15626
+ "lightseagreen",
15627
+ "forestgreen",
15628
+ "goldenrod",
15629
+ "dodgerblue",
15630
+ "darkorchid",
15631
+ "crimson"
15574
15632
  ];
15575
15633
  function useColors() {
15576
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
15634
+ if (typeof window !== "undefined" && window.process && window.process.type === "renderer") {
15577
15635
  return true;
15578
15636
  }
15579
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
15580
- return false;
15581
- }
15582
15637
  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+)/);
15583
15638
  }
15639
+ exports2.formatters.j = function(v) {
15640
+ try {
15641
+ return JSON.stringify(v);
15642
+ } catch (err) {
15643
+ return "[UnexpectedJSONParseError]: " + err.message;
15644
+ }
15645
+ };
15584
15646
  function formatArgs(args2) {
15585
- args2[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args2[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
15586
- if (!this.useColors) {
15647
+ var useColors2 = this.useColors;
15648
+ args2[0] = (useColors2 ? "%c" : "") + this.namespace + (useColors2 ? " %c" : " ") + args2[0] + (useColors2 ? "%c " : " ") + "+" + exports2.humanize(this.diff);
15649
+ if (!useColors2)
15587
15650
  return;
15588
- }
15589
- const c = "color: " + this.color;
15651
+ var c = "color: " + this.color;
15590
15652
  args2.splice(1, 0, c, "color: inherit");
15591
- let index = 0;
15592
- let lastC = 0;
15593
- args2[0].replace(/%[a-zA-Z%]/g, (match) => {
15594
- if (match === "%%") {
15653
+ var index = 0;
15654
+ var lastC = 0;
15655
+ args2[0].replace(/%[a-zA-Z%]/g, function(match) {
15656
+ if (match === "%%")
15595
15657
  return;
15596
- }
15597
15658
  index++;
15598
15659
  if (match === "%c") {
15599
15660
  lastC = index;
@@ -15601,158 +15662,37 @@ var require_browser = __commonJS({
15601
15662
  });
15602
15663
  args2.splice(lastC, 0, c);
15603
15664
  }
15604
- exports2.log = console.debug || console.log || (() => {
15605
- });
15665
+ function log() {
15666
+ return typeof console === "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
15667
+ }
15606
15668
  function save(namespaces) {
15607
15669
  try {
15608
- if (namespaces) {
15609
- exports2.storage.setItem("debug", namespaces);
15610
- } else {
15670
+ if (namespaces == null) {
15611
15671
  exports2.storage.removeItem("debug");
15672
+ } else {
15673
+ exports2.storage.debug = namespaces;
15612
15674
  }
15613
- } catch (error) {
15675
+ } catch (e) {
15614
15676
  }
15615
15677
  }
15616
15678
  function load() {
15617
- let r;
15679
+ var r;
15618
15680
  try {
15619
- r = exports2.storage.getItem("debug");
15620
- } catch (error) {
15681
+ r = exports2.storage.debug;
15682
+ } catch (e) {
15621
15683
  }
15622
15684
  if (!r && typeof process !== "undefined" && "env" in process) {
15623
15685
  r = process.env.DEBUG;
15624
15686
  }
15625
15687
  return r;
15626
15688
  }
15689
+ exports2.enable(load());
15627
15690
  function localstorage() {
15628
15691
  try {
15629
- return localStorage;
15630
- } catch (error) {
15631
- }
15632
- }
15633
- module2.exports = require_common2()(exports2);
15634
- var { formatters } = module2.exports;
15635
- formatters.j = function(v) {
15636
- try {
15637
- return JSON.stringify(v);
15638
- } catch (error) {
15639
- return "[UnexpectedJSONParseError]: " + error.message;
15640
- }
15641
- };
15642
- }
15643
- });
15644
-
15645
- // ../../../node_modules/supports-color/index.js
15646
- var require_supports_color2 = __commonJS({
15647
- "../../../node_modules/supports-color/index.js"(exports2, module2) {
15648
- "use strict";
15649
- var os2 = require("os");
15650
- var tty = require("tty");
15651
- var hasFlag = require_has_flag();
15652
- var { env } = process;
15653
- var flagForceColor;
15654
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
15655
- flagForceColor = 0;
15656
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
15657
- flagForceColor = 1;
15658
- }
15659
- function envForceColor() {
15660
- if ("FORCE_COLOR" in env) {
15661
- if (env.FORCE_COLOR === "true") {
15662
- return 1;
15663
- }
15664
- if (env.FORCE_COLOR === "false") {
15665
- return 0;
15666
- }
15667
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
15668
- }
15669
- }
15670
- function translateLevel(level) {
15671
- if (level === 0) {
15672
- return false;
15673
- }
15674
- return {
15675
- level,
15676
- hasBasic: true,
15677
- has256: level >= 2,
15678
- has16m: level >= 3
15679
- };
15680
- }
15681
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
15682
- const noFlagForceColor = envForceColor();
15683
- if (noFlagForceColor !== void 0) {
15684
- flagForceColor = noFlagForceColor;
15685
- }
15686
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
15687
- if (forceColor === 0) {
15688
- return 0;
15689
- }
15690
- if (sniffFlags) {
15691
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
15692
- return 3;
15693
- }
15694
- if (hasFlag("color=256")) {
15695
- return 2;
15696
- }
15697
- }
15698
- if (haveStream && !streamIsTTY && forceColor === void 0) {
15699
- return 0;
15700
- }
15701
- const min = forceColor || 0;
15702
- if (env.TERM === "dumb") {
15703
- return min;
15704
- }
15705
- if (process.platform === "win32") {
15706
- const osRelease = os2.release().split(".");
15707
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
15708
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
15709
- }
15710
- return 1;
15711
- }
15712
- if ("CI" in env) {
15713
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
15714
- return 1;
15715
- }
15716
- return min;
15717
- }
15718
- if ("TEAMCITY_VERSION" in env) {
15719
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
15720
- }
15721
- if (env.COLORTERM === "truecolor") {
15722
- return 3;
15723
- }
15724
- if ("TERM_PROGRAM" in env) {
15725
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
15726
- switch (env.TERM_PROGRAM) {
15727
- case "iTerm.app":
15728
- return version >= 3 ? 3 : 2;
15729
- case "Apple_Terminal":
15730
- return 2;
15731
- }
15732
- }
15733
- if (/-256(color)?$/i.test(env.TERM)) {
15734
- return 2;
15735
- }
15736
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
15737
- return 1;
15738
- }
15739
- if ("COLORTERM" in env) {
15740
- return 1;
15692
+ return window.localStorage;
15693
+ } catch (e) {
15741
15694
  }
15742
- return min;
15743
15695
  }
15744
- function getSupportLevel(stream, options = {}) {
15745
- const level = supportsColor(stream, {
15746
- streamIsTTY: stream && stream.isTTY,
15747
- ...options
15748
- });
15749
- return translateLevel(level);
15750
- }
15751
- module2.exports = {
15752
- supportsColor: getSupportLevel,
15753
- stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
15754
- stderr: getSupportLevel({ isTTY: tty.isatty(2) })
15755
- };
15756
15696
  }
15757
15697
  });
15758
15698
 
@@ -15761,176 +15701,129 @@ var require_node2 = __commonJS({
15761
15701
  "../../../node_modules/debug/src/node.js"(exports2, module2) {
15762
15702
  var tty = require("tty");
15763
15703
  var util = require("util");
15704
+ exports2 = module2.exports = require_debug();
15764
15705
  exports2.init = init;
15765
15706
  exports2.log = log;
15766
15707
  exports2.formatArgs = formatArgs;
15767
15708
  exports2.save = save;
15768
15709
  exports2.load = load;
15769
15710
  exports2.useColors = useColors;
15770
- exports2.destroy = util.deprecate(() => {
15771
- }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
15772
15711
  exports2.colors = [6, 2, 3, 4, 5, 1];
15773
- try {
15774
- const supportsColor = require_supports_color2();
15775
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
15776
- exports2.colors = [
15777
- 20,
15778
- 21,
15779
- 26,
15780
- 27,
15781
- 32,
15782
- 33,
15783
- 38,
15784
- 39,
15785
- 40,
15786
- 41,
15787
- 42,
15788
- 43,
15789
- 44,
15790
- 45,
15791
- 56,
15792
- 57,
15793
- 62,
15794
- 63,
15795
- 68,
15796
- 69,
15797
- 74,
15798
- 75,
15799
- 76,
15800
- 77,
15801
- 78,
15802
- 79,
15803
- 80,
15804
- 81,
15805
- 92,
15806
- 93,
15807
- 98,
15808
- 99,
15809
- 112,
15810
- 113,
15811
- 128,
15812
- 129,
15813
- 134,
15814
- 135,
15815
- 148,
15816
- 149,
15817
- 160,
15818
- 161,
15819
- 162,
15820
- 163,
15821
- 164,
15822
- 165,
15823
- 166,
15824
- 167,
15825
- 168,
15826
- 169,
15827
- 170,
15828
- 171,
15829
- 172,
15830
- 173,
15831
- 178,
15832
- 179,
15833
- 184,
15834
- 185,
15835
- 196,
15836
- 197,
15837
- 198,
15838
- 199,
15839
- 200,
15840
- 201,
15841
- 202,
15842
- 203,
15843
- 204,
15844
- 205,
15845
- 206,
15846
- 207,
15847
- 208,
15848
- 209,
15849
- 214,
15850
- 215,
15851
- 220,
15852
- 221
15853
- ];
15854
- }
15855
- } catch (error) {
15856
- }
15857
- exports2.inspectOpts = Object.keys(process.env).filter((key) => {
15712
+ exports2.inspectOpts = Object.keys(process.env).filter(function(key) {
15858
15713
  return /^debug_/i.test(key);
15859
- }).reduce((obj, key) => {
15860
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
15714
+ }).reduce(function(obj, key) {
15715
+ var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
15861
15716
  return k.toUpperCase();
15862
15717
  });
15863
- let val = process.env[key];
15864
- if (/^(yes|on|true|enabled)$/i.test(val)) {
15718
+ var val = process.env[key];
15719
+ if (/^(yes|on|true|enabled)$/i.test(val))
15865
15720
  val = true;
15866
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
15721
+ else if (/^(no|off|false|disabled)$/i.test(val))
15867
15722
  val = false;
15868
- } else if (val === "null") {
15723
+ else if (val === "null")
15869
15724
  val = null;
15870
- } else {
15725
+ else
15871
15726
  val = Number(val);
15872
- }
15873
15727
  obj[prop] = val;
15874
15728
  return obj;
15875
15729
  }, {});
15730
+ var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
15731
+ if (fd !== 1 && fd !== 2) {
15732
+ util.deprecate(function() {
15733
+ }, "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)")();
15734
+ }
15735
+ var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
15876
15736
  function useColors() {
15877
- return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
15737
+ return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(fd);
15878
15738
  }
15739
+ exports2.formatters.o = function(v) {
15740
+ this.inspectOpts.colors = this.useColors;
15741
+ return util.inspect(v, this.inspectOpts).split("\n").map(function(str) {
15742
+ return str.trim();
15743
+ }).join(" ");
15744
+ };
15745
+ exports2.formatters.O = function(v) {
15746
+ this.inspectOpts.colors = this.useColors;
15747
+ return util.inspect(v, this.inspectOpts);
15748
+ };
15879
15749
  function formatArgs(args2) {
15880
- const { namespace: name, useColors: useColors2 } = this;
15750
+ var name = this.namespace;
15751
+ var useColors2 = this.useColors;
15881
15752
  if (useColors2) {
15882
- const c = this.color;
15883
- const colorCode = "[3" + (c < 8 ? c : "8;5;" + c);
15884
- const prefix = ` ${colorCode};1m${name} `;
15753
+ var c = this.color;
15754
+ var prefix = " [3" + c + ";1m" + name + " ";
15885
15755
  args2[0] = prefix + args2[0].split("\n").join("\n" + prefix);
15886
- args2.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "");
15756
+ args2.push("[3" + c + "m+" + exports2.humanize(this.diff) + "");
15887
15757
  } else {
15888
- args2[0] = getDate() + name + " " + args2[0];
15889
- }
15890
- }
15891
- function getDate() {
15892
- if (exports2.inspectOpts.hideDate) {
15893
- return "";
15758
+ args2[0] = new Date().toUTCString() + " " + name + " " + args2[0];
15894
15759
  }
15895
- return new Date().toISOString() + " ";
15896
15760
  }
15897
- function log(...args2) {
15898
- return process.stderr.write(util.format(...args2) + "\n");
15761
+ function log() {
15762
+ return stream.write(util.format.apply(util, arguments) + "\n");
15899
15763
  }
15900
15764
  function save(namespaces) {
15901
- if (namespaces) {
15902
- process.env.DEBUG = namespaces;
15903
- } else {
15765
+ if (namespaces == null) {
15904
15766
  delete process.env.DEBUG;
15767
+ } else {
15768
+ process.env.DEBUG = namespaces;
15905
15769
  }
15906
15770
  }
15907
15771
  function load() {
15908
15772
  return process.env.DEBUG;
15909
15773
  }
15774
+ function createWritableStdioStream(fd2) {
15775
+ var stream2;
15776
+ var tty_wrap = process.binding("tty_wrap");
15777
+ switch (tty_wrap.guessHandleType(fd2)) {
15778
+ case "TTY":
15779
+ stream2 = new tty.WriteStream(fd2);
15780
+ stream2._type = "tty";
15781
+ if (stream2._handle && stream2._handle.unref) {
15782
+ stream2._handle.unref();
15783
+ }
15784
+ break;
15785
+ case "FILE":
15786
+ var fs = require("fs");
15787
+ stream2 = new fs.SyncWriteStream(fd2, { autoClose: false });
15788
+ stream2._type = "fs";
15789
+ break;
15790
+ case "PIPE":
15791
+ case "TCP":
15792
+ var net = require("net");
15793
+ stream2 = new net.Socket({
15794
+ fd: fd2,
15795
+ readable: false,
15796
+ writable: true
15797
+ });
15798
+ stream2.readable = false;
15799
+ stream2.read = null;
15800
+ stream2._type = "pipe";
15801
+ if (stream2._handle && stream2._handle.unref) {
15802
+ stream2._handle.unref();
15803
+ }
15804
+ break;
15805
+ default:
15806
+ throw new Error("Implement me. Unknown stream file type!");
15807
+ }
15808
+ stream2.fd = fd2;
15809
+ stream2._isStdio = true;
15810
+ return stream2;
15811
+ }
15910
15812
  function init(debug) {
15911
15813
  debug.inspectOpts = {};
15912
- const keys = Object.keys(exports2.inspectOpts);
15913
- for (let i = 0; i < keys.length; i++) {
15814
+ var keys = Object.keys(exports2.inspectOpts);
15815
+ for (var i = 0; i < keys.length; i++) {
15914
15816
  debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
15915
15817
  }
15916
15818
  }
15917
- module2.exports = require_common2()(exports2);
15918
- var { formatters } = module2.exports;
15919
- formatters.o = function(v) {
15920
- this.inspectOpts.colors = this.useColors;
15921
- return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
15922
- };
15923
- formatters.O = function(v) {
15924
- this.inspectOpts.colors = this.useColors;
15925
- return util.inspect(v, this.inspectOpts);
15926
- };
15819
+ exports2.enable(load());
15927
15820
  }
15928
15821
  });
15929
15822
 
15930
15823
  // ../../../node_modules/debug/src/index.js
15931
15824
  var require_src = __commonJS({
15932
15825
  "../../../node_modules/debug/src/index.js"(exports2, module2) {
15933
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
15826
+ if (typeof process !== "undefined" && process.type === "renderer") {
15934
15827
  module2.exports = require_browser();
15935
15828
  } else {
15936
15829
  module2.exports = require_node2();
@@ -15939,7 +15832,7 @@ var require_src = __commonJS({
15939
15832
  });
15940
15833
 
15941
15834
  // ../../../node_modules/follow-redirects/debug.js
15942
- var require_debug = __commonJS({
15835
+ var require_debug2 = __commonJS({
15943
15836
  "../../../node_modules/follow-redirects/debug.js"(exports2, module2) {
15944
15837
  var debug;
15945
15838
  module2.exports = function() {
@@ -15967,7 +15860,7 @@ var require_follow_redirects = __commonJS({
15967
15860
  var https = require("https");
15968
15861
  var Writable2 = require("stream").Writable;
15969
15862
  var assert = require("assert");
15970
- var debug = require_debug();
15863
+ var debug = require_debug2();
15971
15864
  var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
15972
15865
  var eventHandlers = Object.create(null);
15973
15866
  events.forEach(function(event) {
@@ -15975,10 +15868,12 @@ var require_follow_redirects = __commonJS({
15975
15868
  this._redirectable.emit(event, arg1, arg2, arg3);
15976
15869
  };
15977
15870
  });
15871
+ var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);
15978
15872
  var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
15979
15873
  var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded");
15980
15874
  var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
15981
15875
  var WriteAfterEndError = createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
15876
+ var destroy = Writable2.prototype.destroy || noop;
15982
15877
  function RedirectableRequest(options, responseCallback) {
15983
15878
  Writable2.call(this);
15984
15879
  this._sanitizeOptions(options);
@@ -15992,25 +15887,31 @@ var require_follow_redirects = __commonJS({
15992
15887
  if (responseCallback) {
15993
15888
  this.on("response", responseCallback);
15994
15889
  }
15995
- var self = this;
15890
+ var self2 = this;
15996
15891
  this._onNativeResponse = function(response) {
15997
- self._processResponse(response);
15892
+ self2._processResponse(response);
15998
15893
  };
15999
15894
  this._performRequest();
16000
15895
  }
16001
15896
  RedirectableRequest.prototype = Object.create(Writable2.prototype);
16002
15897
  RedirectableRequest.prototype.abort = function() {
16003
- abortRequest(this._currentRequest);
15898
+ destroyRequest(this._currentRequest);
15899
+ this._currentRequest.abort();
16004
15900
  this.emit("abort");
16005
15901
  };
15902
+ RedirectableRequest.prototype.destroy = function(error) {
15903
+ destroyRequest(this._currentRequest, error);
15904
+ destroy.call(this, error);
15905
+ return this;
15906
+ };
16006
15907
  RedirectableRequest.prototype.write = function(data, encoding, callback) {
16007
15908
  if (this._ending) {
16008
15909
  throw new WriteAfterEndError();
16009
15910
  }
16010
- if (!(typeof data === "string" || typeof data === "object" && "length" in data)) {
15911
+ if (!isString(data) && !isBuffer(data)) {
16011
15912
  throw new TypeError("data should be a string, Buffer or Uint8Array");
16012
15913
  }
16013
- if (typeof encoding === "function") {
15914
+ if (isFunction(encoding)) {
16014
15915
  callback = encoding;
16015
15916
  encoding = null;
16016
15917
  }
@@ -16030,10 +15931,10 @@ var require_follow_redirects = __commonJS({
16030
15931
  }
16031
15932
  };
16032
15933
  RedirectableRequest.prototype.end = function(data, encoding, callback) {
16033
- if (typeof data === "function") {
15934
+ if (isFunction(data)) {
16034
15935
  callback = data;
16035
15936
  data = encoding = null;
16036
- } else if (typeof encoding === "function") {
15937
+ } else if (isFunction(encoding)) {
16037
15938
  callback = encoding;
16038
15939
  encoding = null;
16039
15940
  }
@@ -16041,10 +15942,10 @@ var require_follow_redirects = __commonJS({
16041
15942
  this._ended = this._ending = true;
16042
15943
  this._currentRequest.end(null, null, callback);
16043
15944
  } else {
16044
- var self = this;
15945
+ var self2 = this;
16045
15946
  var currentRequest = this._currentRequest;
16046
15947
  this.write(data, encoding, function() {
16047
- self._ended = true;
15948
+ self2._ended = true;
16048
15949
  currentRequest.end(null, null, callback);
16049
15950
  });
16050
15951
  this._ending = true;
@@ -16059,35 +15960,36 @@ var require_follow_redirects = __commonJS({
16059
15960
  this._currentRequest.removeHeader(name);
16060
15961
  };
16061
15962
  RedirectableRequest.prototype.setTimeout = function(msecs, callback) {
16062
- var self = this;
15963
+ var self2 = this;
16063
15964
  function destroyOnTimeout(socket) {
16064
15965
  socket.setTimeout(msecs);
16065
15966
  socket.removeListener("timeout", socket.destroy);
16066
15967
  socket.addListener("timeout", socket.destroy);
16067
15968
  }
16068
15969
  function startTimer(socket) {
16069
- if (self._timeout) {
16070
- clearTimeout(self._timeout);
15970
+ if (self2._timeout) {
15971
+ clearTimeout(self2._timeout);
16071
15972
  }
16072
- self._timeout = setTimeout(function() {
16073
- self.emit("timeout");
15973
+ self2._timeout = setTimeout(function() {
15974
+ self2.emit("timeout");
16074
15975
  clearTimer();
16075
15976
  }, msecs);
16076
15977
  destroyOnTimeout(socket);
16077
15978
  }
16078
15979
  function clearTimer() {
16079
- if (self._timeout) {
16080
- clearTimeout(self._timeout);
16081
- self._timeout = null;
16082
- }
16083
- self.removeListener("abort", clearTimer);
16084
- self.removeListener("error", clearTimer);
16085
- self.removeListener("response", clearTimer);
15980
+ if (self2._timeout) {
15981
+ clearTimeout(self2._timeout);
15982
+ self2._timeout = null;
15983
+ }
15984
+ self2.removeListener("abort", clearTimer);
15985
+ self2.removeListener("error", clearTimer);
15986
+ self2.removeListener("response", clearTimer);
15987
+ self2.removeListener("close", clearTimer);
16086
15988
  if (callback) {
16087
- self.removeListener("timeout", callback);
15989
+ self2.removeListener("timeout", callback);
16088
15990
  }
16089
- if (!self.socket) {
16090
- self._currentRequest.removeListener("socket", startTimer);
15991
+ if (!self2.socket) {
15992
+ self2._currentRequest.removeListener("socket", startTimer);
16091
15993
  }
16092
15994
  }
16093
15995
  if (callback) {
@@ -16102,6 +16004,7 @@ var require_follow_redirects = __commonJS({
16102
16004
  this.on("abort", clearTimer);
16103
16005
  this.on("error", clearTimer);
16104
16006
  this.on("response", clearTimer);
16007
+ this.on("close", clearTimer);
16105
16008
  return this;
16106
16009
  };
16107
16010
  [
@@ -16157,21 +16060,21 @@ var require_follow_redirects = __commonJS({
16157
16060
  for (var event of events) {
16158
16061
  request.on(event, eventHandlers[event]);
16159
16062
  }
16160
- this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._currentUrl = this._options.path;
16063
+ this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._options.path;
16161
16064
  if (this._isRedirect) {
16162
16065
  var i = 0;
16163
- var self = this;
16066
+ var self2 = this;
16164
16067
  var buffers = this._requestBodyBuffers;
16165
16068
  (function writeNext(error) {
16166
- if (request === self._currentRequest) {
16069
+ if (request === self2._currentRequest) {
16167
16070
  if (error) {
16168
- self.emit("error", error);
16071
+ self2.emit("error", error);
16169
16072
  } else if (i < buffers.length) {
16170
16073
  var buffer = buffers[i++];
16171
16074
  if (!request.finished) {
16172
16075
  request.write(buffer.data, buffer.encoding, writeNext);
16173
16076
  }
16174
- } else if (self._ended) {
16077
+ } else if (self2._ended) {
16175
16078
  request.end();
16176
16079
  }
16177
16080
  }
@@ -16195,7 +16098,7 @@ var require_follow_redirects = __commonJS({
16195
16098
  this._requestBodyBuffers = [];
16196
16099
  return;
16197
16100
  }
16198
- abortRequest(this._currentRequest);
16101
+ destroyRequest(this._currentRequest);
16199
16102
  response.destroy();
16200
16103
  if (++this._redirectCount > this._options.maxRedirects) {
16201
16104
  this.emit("error", new TooManyRedirectsError());
@@ -16222,7 +16125,7 @@ var require_follow_redirects = __commonJS({
16222
16125
  try {
16223
16126
  redirectUrl = url.resolve(currentUrl, location);
16224
16127
  } catch (cause) {
16225
- this.emit("error", new RedirectionError(cause));
16128
+ this.emit("error", new RedirectionError({ cause }));
16226
16129
  return;
16227
16130
  }
16228
16131
  debug("redirecting to", redirectUrl);
@@ -16232,7 +16135,7 @@ var require_follow_redirects = __commonJS({
16232
16135
  if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
16233
16136
  removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
16234
16137
  }
16235
- if (typeof beforeRedirect === "function") {
16138
+ if (isFunction(beforeRedirect)) {
16236
16139
  var responseDetails = {
16237
16140
  headers: response.headers,
16238
16141
  statusCode
@@ -16253,7 +16156,7 @@ var require_follow_redirects = __commonJS({
16253
16156
  try {
16254
16157
  this._performRequest();
16255
16158
  } catch (cause) {
16256
- this.emit("error", new RedirectionError(cause));
16159
+ this.emit("error", new RedirectionError({ cause }));
16257
16160
  }
16258
16161
  };
16259
16162
  function wrap(protocols) {
@@ -16267,13 +16170,17 @@ var require_follow_redirects = __commonJS({
16267
16170
  var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
16268
16171
  var wrappedProtocol = exports3[scheme] = Object.create(nativeProtocol);
16269
16172
  function request(input, options, callback) {
16270
- if (typeof input === "string") {
16271
- var urlStr = input;
16173
+ if (isString(input)) {
16174
+ var parsed;
16272
16175
  try {
16273
- input = urlToOptions(new URL(urlStr));
16176
+ parsed = urlToOptions(new URL(input));
16274
16177
  } catch (err) {
16275
- input = url.parse(urlStr);
16178
+ parsed = url.parse(input);
16179
+ }
16180
+ if (!isString(parsed.protocol)) {
16181
+ throw new InvalidUrlError({ input });
16276
16182
  }
16183
+ input = parsed;
16277
16184
  } else if (URL && input instanceof URL) {
16278
16185
  input = urlToOptions(input);
16279
16186
  } else {
@@ -16281,7 +16188,7 @@ var require_follow_redirects = __commonJS({
16281
16188
  options = input;
16282
16189
  input = { protocol };
16283
16190
  }
16284
- if (typeof options === "function") {
16191
+ if (isFunction(options)) {
16285
16192
  callback = options;
16286
16193
  options = null;
16287
16194
  }
@@ -16290,6 +16197,9 @@ var require_follow_redirects = __commonJS({
16290
16197
  maxBodyLength: exports3.maxBodyLength
16291
16198
  }, input, options);
16292
16199
  options.nativeProtocols = nativeProtocols;
16200
+ if (!isString(options.host) && !isString(options.hostname)) {
16201
+ options.hostname = "::1";
16202
+ }
16293
16203
  assert.equal(options.protocol, protocol, "protocol mismatch");
16294
16204
  debug("options", options);
16295
16205
  return new RedirectableRequest(options, callback);
@@ -16323,43 +16233,49 @@ var require_follow_redirects = __commonJS({
16323
16233
  }
16324
16234
  return options;
16325
16235
  }
16326
- function removeMatchingHeaders(regex, headers) {
16236
+ function removeMatchingHeaders(regex2, headers) {
16327
16237
  var lastValue;
16328
16238
  for (var header in headers) {
16329
- if (regex.test(header)) {
16239
+ if (regex2.test(header)) {
16330
16240
  lastValue = headers[header];
16331
16241
  delete headers[header];
16332
16242
  }
16333
16243
  }
16334
16244
  return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
16335
16245
  }
16336
- function createErrorType(code, defaultMessage) {
16337
- function CustomError(cause) {
16246
+ function createErrorType(code, message, baseClass) {
16247
+ function CustomError(properties) {
16338
16248
  Error.captureStackTrace(this, this.constructor);
16339
- if (!cause) {
16340
- this.message = defaultMessage;
16341
- } else {
16342
- this.message = defaultMessage + ": " + cause.message;
16343
- this.cause = cause;
16344
- }
16249
+ Object.assign(this, properties || {});
16250
+ this.code = code;
16251
+ this.message = this.cause ? message + ": " + this.cause.message : message;
16345
16252
  }
16346
- CustomError.prototype = new Error();
16253
+ CustomError.prototype = new (baseClass || Error)();
16347
16254
  CustomError.prototype.constructor = CustomError;
16348
16255
  CustomError.prototype.name = "Error [" + code + "]";
16349
- CustomError.prototype.code = code;
16350
16256
  return CustomError;
16351
16257
  }
16352
- function abortRequest(request) {
16258
+ function destroyRequest(request, error) {
16353
16259
  for (var event of events) {
16354
16260
  request.removeListener(event, eventHandlers[event]);
16355
16261
  }
16356
16262
  request.on("error", noop);
16357
- request.abort();
16263
+ request.destroy(error);
16358
16264
  }
16359
16265
  function isSubdomain(subdomain, domain) {
16360
- const dot = subdomain.length - domain.length - 1;
16266
+ assert(isString(subdomain) && isString(domain));
16267
+ var dot = subdomain.length - domain.length - 1;
16361
16268
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
16362
16269
  }
16270
+ function isString(value) {
16271
+ return typeof value === "string" || value instanceof String;
16272
+ }
16273
+ function isFunction(value) {
16274
+ return typeof value === "function";
16275
+ }
16276
+ function isBuffer(value) {
16277
+ return typeof value === "object" && "length" in value;
16278
+ }
16363
16279
  module2.exports = wrap({ http, https });
16364
16280
  module2.exports.wrap = wrap;
16365
16281
  }
@@ -17451,9 +17367,9 @@ var require_combined_stream = __commonJS({
17451
17367
  this._getNext();
17452
17368
  };
17453
17369
  CombinedStream.prototype._handleErrors = function(stream) {
17454
- var self = this;
17370
+ var self2 = this;
17455
17371
  stream.on("error", function(err) {
17456
- self._emitError(err);
17372
+ self2._emitError(err);
17457
17373
  });
17458
17374
  };
17459
17375
  CombinedStream.prototype.write = function(data) {
@@ -17500,12 +17416,12 @@ var require_combined_stream = __commonJS({
17500
17416
  };
17501
17417
  CombinedStream.prototype._updateDataSize = function() {
17502
17418
  this.dataSize = 0;
17503
- var self = this;
17419
+ var self2 = this;
17504
17420
  this._streams.forEach(function(stream) {
17505
17421
  if (!stream.dataSize) {
17506
17422
  return;
17507
17423
  }
17508
- self.dataSize += stream.dataSize;
17424
+ self2.dataSize += stream.dataSize;
17509
17425
  });
17510
17426
  if (this._currentStream && this._currentStream.dataSize) {
17511
17427
  this.dataSize += this._currentStream.dataSize;
@@ -26909,14 +26825,14 @@ var forceOverwriteKeys = Object.keys(ForceOverwrite).filter((m) => typeof ForceO
26909
26825
  var import_path4 = __toModule(require("path"));
26910
26826
  var import_promises2 = __toModule(require("fs/promises"));
26911
26827
 
26912
- // ../../../node_modules/ora/index.js
26913
- var import_node_process6 = __toModule(require("node:process"));
26828
+ // node_modules/ora/index.js
26829
+ var import_node_process5 = __toModule(require("node:process"));
26914
26830
  var import_chalk2 = __toModule(require_source());
26915
26831
 
26916
- // ../../../node_modules/ora/node_modules/cli-cursor/index.js
26832
+ // node_modules/cli-cursor/index.js
26917
26833
  var import_node_process2 = __toModule(require("node:process"));
26918
26834
 
26919
- // ../../../node_modules/ora/node_modules/restore-cursor/index.js
26835
+ // node_modules/restore-cursor/index.js
26920
26836
  var import_node_process = __toModule(require("node:process"));
26921
26837
  var import_onetime = __toModule(require_onetime());
26922
26838
  var import_signal_exit = __toModule(require_signal_exit());
@@ -26927,7 +26843,7 @@ var restoreCursor = (0, import_onetime.default)(() => {
26927
26843
  });
26928
26844
  var restore_cursor_default = restoreCursor;
26929
26845
 
26930
- // ../../../node_modules/ora/node_modules/cli-cursor/index.js
26846
+ // node_modules/cli-cursor/index.js
26931
26847
  var isHidden = false;
26932
26848
  var cliCursor = {};
26933
26849
  cliCursor.show = (writableStream = import_node_process2.default.stderr) => {
@@ -26957,13 +26873,13 @@ cliCursor.toggle = (force, writableStream) => {
26957
26873
  };
26958
26874
  var cli_cursor_default = cliCursor;
26959
26875
 
26960
- // ../../../node_modules/ora/index.js
26876
+ // node_modules/ora/index.js
26961
26877
  var import_cli_spinners = __toModule(require_cli_spinners());
26962
26878
 
26963
- // ../../../node_modules/log-symbols/index.js
26879
+ // node_modules/log-symbols/index.js
26964
26880
  var import_chalk = __toModule(require_source());
26965
26881
 
26966
- // ../../../node_modules/log-symbols/node_modules/is-unicode-supported/index.js
26882
+ // node_modules/is-unicode-supported/index.js
26967
26883
  var import_node_process3 = __toModule(require("node:process"));
26968
26884
  function isUnicodeSupported() {
26969
26885
  if (import_node_process3.default.platform !== "win32") {
@@ -26972,7 +26888,7 @@ function isUnicodeSupported() {
26972
26888
  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";
26973
26889
  }
26974
26890
 
26975
- // ../../../node_modules/log-symbols/index.js
26891
+ // node_modules/log-symbols/index.js
26976
26892
  var main = {
26977
26893
  info: import_chalk.default.blue("\u2139"),
26978
26894
  success: import_chalk.default.green("\u2714"),
@@ -26988,16 +26904,17 @@ var fallback = {
26988
26904
  var logSymbols = isUnicodeSupported() ? main : fallback;
26989
26905
  var log_symbols_default = logSymbols;
26990
26906
 
26991
- // ../../../node_modules/ora/node_modules/strip-ansi/index.js
26907
+ // node_modules/strip-ansi/index.js
26992
26908
  var import_ansi_regex = __toModule(require_ansi_regex());
26909
+ var regex = (0, import_ansi_regex.default)();
26993
26910
  function stripAnsi(string2) {
26994
26911
  if (typeof string2 !== "string") {
26995
26912
  throw new TypeError(`Expected a \`string\`, got \`${typeof string2}\``);
26996
26913
  }
26997
- return string2.replace((0, import_ansi_regex.default)(), "");
26914
+ return string2.replace(regex, "");
26998
26915
  }
26999
26916
 
27000
- // ../../../node_modules/ora/index.js
26917
+ // node_modules/ora/index.js
27001
26918
  var import_wcwidth = __toModule(require_wcwidth());
27002
26919
 
27003
26920
  // ../../../node_modules/is-interactive/index.js
@@ -27005,17 +26922,8 @@ function isInteractive({ stream = process.stdout } = {}) {
27005
26922
  return Boolean(stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
27006
26923
  }
27007
26924
 
27008
- // ../../../node_modules/ora/node_modules/is-unicode-supported/index.js
26925
+ // ../../../node_modules/stdin-discarder/index.js
27009
26926
  var import_node_process4 = __toModule(require("node:process"));
27010
- function isUnicodeSupported2() {
27011
- if (import_node_process4.default.platform !== "win32") {
27012
- return import_node_process4.default.env.TERM !== "linux";
27013
- }
27014
- 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";
27015
- }
27016
-
27017
- // ../../../node_modules/ora/utilities.js
27018
- var import_node_process5 = __toModule(require("node:process"));
27019
26927
  var import_node_readline = __toModule(require("node:readline"));
27020
26928
  var import_bl = __toModule(require_bl());
27021
26929
  var ASCII_ETX_CODE = 3;
@@ -27025,20 +26933,20 @@ var StdinDiscarder = class {
27025
26933
  #ourEmit;
27026
26934
  #rl;
27027
26935
  constructor() {
27028
- this.#mutedStream.pipe(import_node_process5.default.stdout);
27029
- const self = this;
27030
- this.#ourEmit = function(event, data, ...args2) {
27031
- const { stdin } = import_node_process5.default;
27032
- if (self.#requests > 0 || stdin.emit === self.#ourEmit) {
26936
+ this.#mutedStream.pipe(import_node_process4.default.stdout);
26937
+ const self2 = this;
26938
+ this.#ourEmit = function(event, data, ...arguments_) {
26939
+ const { stdin } = import_node_process4.default;
26940
+ if (self2.#requests > 0 || stdin.emit === self2.#ourEmit) {
27033
26941
  if (event === "keypress") {
27034
26942
  return;
27035
26943
  }
27036
26944
  if (event === "data" && data.includes(ASCII_ETX_CODE)) {
27037
- import_node_process5.default.emit("SIGINT");
26945
+ import_node_process4.default.emit("SIGINT");
27038
26946
  }
27039
- Reflect.apply(self.#ourEmit, this, [event, data, ...args2]);
26947
+ Reflect.apply(self2.#ourEmit, this, [event, data, ...arguments_]);
27040
26948
  } else {
27041
- Reflect.apply(import_node_process5.default.stdin.emit, this, [event, data, ...args2]);
26949
+ Reflect.apply(import_node_process4.default.stdin.emit, this, [event, data, ...arguments_]);
27042
26950
  }
27043
26951
  };
27044
26952
  }
@@ -27058,33 +26966,35 @@ var StdinDiscarder = class {
27058
26966
  }
27059
26967
  }
27060
26968
  _realStart() {
27061
- if (import_node_process5.default.platform === "win32") {
26969
+ if (import_node_process4.default.platform === "win32") {
27062
26970
  return;
27063
26971
  }
27064
26972
  this.#rl = import_node_readline.default.createInterface({
27065
- input: import_node_process5.default.stdin,
26973
+ input: import_node_process4.default.stdin,
27066
26974
  output: this.#mutedStream
27067
26975
  });
27068
26976
  this.#rl.on("SIGINT", () => {
27069
- if (import_node_process5.default.listenerCount("SIGINT") === 0) {
27070
- import_node_process5.default.emit("SIGINT");
26977
+ if (import_node_process4.default.listenerCount("SIGINT") === 0) {
26978
+ import_node_process4.default.emit("SIGINT");
27071
26979
  } else {
27072
26980
  this.#rl.close();
27073
- import_node_process5.default.kill(import_node_process5.default.pid, "SIGINT");
26981
+ import_node_process4.default.kill(import_node_process4.default.pid, "SIGINT");
27074
26982
  }
27075
26983
  });
27076
26984
  }
27077
26985
  _realStop() {
27078
- if (import_node_process5.default.platform === "win32") {
26986
+ if (import_node_process4.default.platform === "win32") {
27079
26987
  return;
27080
26988
  }
27081
26989
  this.#rl.close();
27082
26990
  this.#rl = void 0;
27083
26991
  }
27084
26992
  };
26993
+ var stdinDiscarder = new StdinDiscarder();
26994
+ var stdin_discarder_default = stdinDiscarder;
27085
26995
 
27086
- // ../../../node_modules/ora/index.js
27087
- var stdinDiscarder;
26996
+ // node_modules/ora/index.js
26997
+ var import_cli_spinners2 = __toModule(require_cli_spinners());
27088
26998
  var Ora = class {
27089
26999
  #linesToClear = 0;
27090
27000
  #isDiscardingStdin = false;
@@ -27100,11 +27010,9 @@ var Ora = class {
27100
27010
  #indent;
27101
27011
  #text;
27102
27012
  #prefixText;
27013
+ #suffixText;
27103
27014
  color;
27104
27015
  constructor(options) {
27105
- if (!stdinDiscarder) {
27106
- stdinDiscarder = new StdinDiscarder();
27107
- }
27108
27016
  if (typeof options === "string") {
27109
27017
  options = {
27110
27018
  text: options
@@ -27112,7 +27020,7 @@ var Ora = class {
27112
27020
  }
27113
27021
  this.#options = {
27114
27022
  color: "cyan",
27115
- stream: import_node_process6.default.stderr,
27023
+ stream: import_node_process5.default.stderr,
27116
27024
  discardStdin: true,
27117
27025
  hideCursor: true,
27118
27026
  ...options
@@ -27125,8 +27033,9 @@ var Ora = class {
27125
27033
  this.#isSilent = typeof this.#options.isSilent === "boolean" ? this.#options.isSilent : false;
27126
27034
  this.text = this.#options.text;
27127
27035
  this.prefixText = this.#options.prefixText;
27036
+ this.suffixText = this.#options.suffixText;
27128
27037
  this.indent = this.#options.indent;
27129
- if (import_node_process6.default.env.NODE_ENV === "test") {
27038
+ if (import_node_process5.default.env.NODE_ENV === "test") {
27130
27039
  this._stream = this.#stream;
27131
27040
  this._isEnabled = this.#isEnabled;
27132
27041
  Object.defineProperty(this, "_linesToClear", {
@@ -27173,7 +27082,7 @@ var Ora = class {
27173
27082
  throw new Error("The given spinner must have a `frames` property");
27174
27083
  }
27175
27084
  this.#spinner = spinner;
27176
- } else if (!isUnicodeSupported2()) {
27085
+ } else if (!isUnicodeSupported()) {
27177
27086
  this.#spinner = import_cli_spinners.default.line;
27178
27087
  } else if (spinner === void 0) {
27179
27088
  this.#spinner = import_cli_spinners.default.dots;
@@ -27197,6 +27106,13 @@ var Ora = class {
27197
27106
  this.#prefixText = value || "";
27198
27107
  this.updateLineCount();
27199
27108
  }
27109
+ get suffixText() {
27110
+ return this.#suffixText;
27111
+ }
27112
+ set suffixText(value) {
27113
+ this.#suffixText = value || "";
27114
+ this.updateLineCount();
27115
+ }
27200
27116
  get isSpinning() {
27201
27117
  return this.#id !== void 0;
27202
27118
  }
@@ -27209,11 +27125,22 @@ var Ora = class {
27209
27125
  }
27210
27126
  return "";
27211
27127
  }
27128
+ getFullSuffixText(suffixText = this.#suffixText, prefix = " ") {
27129
+ if (typeof suffixText === "string" && suffixText !== "") {
27130
+ return prefix + suffixText;
27131
+ }
27132
+ if (typeof suffixText === "function") {
27133
+ return prefix + suffixText();
27134
+ }
27135
+ return "";
27136
+ }
27212
27137
  updateLineCount() {
27213
27138
  const columns = this.#stream.columns || 80;
27214
27139
  const fullPrefixText = this.getFullPrefixText(this.#prefixText, "-");
27140
+ const fullSuffixText = this.getFullSuffixText(this.#suffixText, "-");
27141
+ const fullText = " ".repeat(this.#indent) + fullPrefixText + "--" + this.#text + "--" + fullSuffixText;
27215
27142
  this.#lineCount = 0;
27216
- for (const line of stripAnsi(" ".repeat(this.#indent) + fullPrefixText + "--" + this.#text).split("\n")) {
27143
+ for (const line of stripAnsi(fullText).split("\n")) {
27217
27144
  this.#lineCount += Math.max(1, Math.ceil((0, import_wcwidth.default)(line) / columns));
27218
27145
  }
27219
27146
  }
@@ -27244,7 +27171,8 @@ var Ora = class {
27244
27171
  this.#frameIndex = ++this.#frameIndex % frames.length;
27245
27172
  const fullPrefixText = typeof this.#prefixText === "string" && this.#prefixText !== "" ? this.#prefixText + " " : "";
27246
27173
  const fullText = typeof this.text === "string" ? " " + this.text : "";
27247
- return fullPrefixText + frame + fullText;
27174
+ const fullSuffixText = typeof this.#suffixText === "string" && this.#suffixText !== "" ? " " + this.#suffixText : "";
27175
+ return fullPrefixText + frame + fullText + fullSuffixText;
27248
27176
  }
27249
27177
  clear() {
27250
27178
  if (!this.#isEnabled || !this.#stream.isTTY) {
@@ -27293,9 +27221,9 @@ var Ora = class {
27293
27221
  if (this.#options.hideCursor) {
27294
27222
  cli_cursor_default.hide(this.#stream);
27295
27223
  }
27296
- if (this.#options.discardStdin && import_node_process6.default.stdin.isTTY) {
27224
+ if (this.#options.discardStdin && import_node_process5.default.stdin.isTTY) {
27297
27225
  this.#isDiscardingStdin = true;
27298
- stdinDiscarder.start();
27226
+ stdin_discarder_default.start();
27299
27227
  }
27300
27228
  this.render();
27301
27229
  this.#id = setInterval(this.render.bind(this), this.interval);
@@ -27312,8 +27240,8 @@ var Ora = class {
27312
27240
  if (this.#options.hideCursor) {
27313
27241
  cli_cursor_default.show(this.#stream);
27314
27242
  }
27315
- if (this.#options.discardStdin && import_node_process6.default.stdin.isTTY && this.#isDiscardingStdin) {
27316
- stdinDiscarder.stop();
27243
+ if (this.#options.discardStdin && import_node_process5.default.stdin.isTTY && this.#isDiscardingStdin) {
27244
+ stdin_discarder_default.stop();
27317
27245
  this.#isDiscardingStdin = false;
27318
27246
  }
27319
27247
  return this;
@@ -27335,11 +27263,15 @@ var Ora = class {
27335
27263
  return this;
27336
27264
  }
27337
27265
  const prefixText = options.prefixText || this.#prefixText;
27266
+ const fullPrefixText = this.getFullPrefixText(prefixText, " ");
27267
+ const symbolText = options.symbol || " ";
27338
27268
  const text = options.text || this.text;
27339
27269
  const fullText = typeof text === "string" ? " " + text : "";
27270
+ const suffixText = options.suffixText !== void 0 ? options.suffixText : this.#suffixText;
27271
+ const fullSuffixText = this.getFullSuffixText(suffixText, " ");
27272
+ const textToWrite = fullPrefixText + symbolText + fullText + fullSuffixText + "\n";
27340
27273
  this.stop();
27341
- this.#stream.write(`${this.getFullPrefixText(prefixText, " ")}${options.symbol || " "}${fullText}
27342
- `);
27274
+ this.#stream.write(textToWrite);
27343
27275
  return this;
27344
27276
  }
27345
27277
  };
@@ -27701,8 +27633,8 @@ function createPackage(target = ".", ...flags) {
27701
27633
  return ms.value;
27702
27634
  });
27703
27635
  }
27704
- function onlyUnique(value, index, self) {
27705
- return self.indexOf(value) === index;
27636
+ function onlyUnique(value, index, self2) {
27637
+ return self2.indexOf(value) === index;
27706
27638
  }
27707
27639
  function isFile(item) {
27708
27640
  if (!item || typeof item !== "string") {