@carbon/upgrade 11.9.1 → 11.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.js CHANGED
@@ -35442,7 +35442,11 @@ var require_debug = __commonJS({
35442
35442
  // ../../node_modules/semver/internal/re.js
35443
35443
  var require_re = __commonJS({
35444
35444
  "../../node_modules/semver/internal/re.js"(exports, module2) {
35445
- var { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = require_constants();
35445
+ var {
35446
+ MAX_SAFE_COMPONENT_LENGTH,
35447
+ MAX_SAFE_BUILD_LENGTH,
35448
+ MAX_LENGTH
35449
+ } = require_constants();
35446
35450
  var debug = require_debug();
35447
35451
  exports = module2.exports = {};
35448
35452
  var re = exports.re = [];
@@ -35453,7 +35457,7 @@ var require_re = __commonJS({
35453
35457
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
35454
35458
  var safeRegexReplacements = [
35455
35459
  ["\\s", 1],
35456
- ["\\d", MAX_SAFE_COMPONENT_LENGTH],
35460
+ ["\\d", MAX_LENGTH],
35457
35461
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
35458
35462
  ];
35459
35463
  var makeSafeRegex = (value) => {
@@ -36825,7 +36829,7 @@ var require_range2 = __commonJS({
36825
36829
  this.loose = !!options.loose;
36826
36830
  this.includePrerelease = !!options.includePrerelease;
36827
36831
  this.raw = range.trim().split(/\s+/).join(" ");
36828
- this.set = this.raw.split("||").map((r) => this.parseRange(r)).filter((c) => c.length);
36832
+ this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
36829
36833
  if (!this.set.length) {
36830
36834
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
36831
36835
  }
@@ -40545,10 +40549,15 @@ var require_path = __commonJS({
40545
40549
  "../../node_modules/fast-glob/out/utils/path.js"(exports) {
40546
40550
  "use strict";
40547
40551
  Object.defineProperty(exports, "__esModule", { value: true });
40548
- exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0;
40552
+ exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
40553
+ var os = require("os");
40549
40554
  var path3 = require("path");
40555
+ var IS_WINDOWS_PLATFORM = os.platform() === "win32";
40550
40556
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
40551
- var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
40557
+ var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
40558
+ var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g;
40559
+ var DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
40560
+ var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g;
40552
40561
  function unixify(filepath) {
40553
40562
  return filepath.replace(/\\/g, "/");
40554
40563
  }
@@ -40557,10 +40566,6 @@ var require_path = __commonJS({
40557
40566
  return path3.resolve(cwd, filepath);
40558
40567
  }
40559
40568
  exports.makeAbsolute = makeAbsolute;
40560
- function escape(pattern) {
40561
- return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
40562
- }
40563
- exports.escape = escape;
40564
40569
  function removeLeadingDotSegment(entry) {
40565
40570
  if (entry.charAt(0) === ".") {
40566
40571
  const secondCharactery = entry.charAt(1);
@@ -40571,6 +40576,24 @@ var require_path = __commonJS({
40571
40576
  return entry;
40572
40577
  }
40573
40578
  exports.removeLeadingDotSegment = removeLeadingDotSegment;
40579
+ exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
40580
+ function escapeWindowsPath(pattern) {
40581
+ return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
40582
+ }
40583
+ exports.escapeWindowsPath = escapeWindowsPath;
40584
+ function escapePosixPath(pattern) {
40585
+ return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
40586
+ }
40587
+ exports.escapePosixPath = escapePosixPath;
40588
+ exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
40589
+ function convertWindowsPathToPattern(filepath) {
40590
+ return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
40591
+ }
40592
+ exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
40593
+ function convertPosixPathToPattern(filepath) {
40594
+ return escapePosixPath(filepath);
40595
+ }
40596
+ exports.convertPosixPathToPattern = convertPosixPathToPattern;
40574
40597
  }
40575
40598
  });
40576
40599
 
@@ -43550,7 +43573,7 @@ var require_pattern = __commonJS({
43550
43573
  "../../node_modules/fast-glob/out/utils/pattern.js"(exports) {
43551
43574
  "use strict";
43552
43575
  Object.defineProperty(exports, "__esModule", { value: true });
43553
- exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
43576
+ exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
43554
43577
  var path3 = require("path");
43555
43578
  var globParent = require_glob_parent();
43556
43579
  var micromatch = require_micromatch();
@@ -43561,6 +43584,7 @@ var require_pattern = __commonJS({
43561
43584
  var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
43562
43585
  var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
43563
43586
  var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
43587
+ var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
43564
43588
  function isStaticPattern(pattern, options = {}) {
43565
43589
  return !isDynamicPattern(pattern, options);
43566
43590
  }
@@ -43656,10 +43680,9 @@ var require_pattern = __commonJS({
43656
43680
  }
43657
43681
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
43658
43682
  function expandBraceExpansion(pattern) {
43659
- return micromatch.braces(pattern, {
43660
- expand: true,
43661
- nodupes: true
43662
- });
43683
+ const patterns = micromatch.braces(pattern, { expand: true, nodupes: true });
43684
+ patterns.sort((a, b) => a.length - b.length);
43685
+ return patterns.filter((pattern2) => pattern2 !== "");
43663
43686
  }
43664
43687
  exports.expandBraceExpansion = expandBraceExpansion;
43665
43688
  function getPatternParts(pattern, options) {
@@ -43686,6 +43709,10 @@ var require_pattern = __commonJS({
43686
43709
  return patternsRe.some((patternRe) => patternRe.test(entry));
43687
43710
  }
43688
43711
  exports.matchAny = matchAny;
43712
+ function removeDuplicateSlashes(pattern) {
43713
+ return pattern.replace(DOUBLE_SLASH_RE, "/");
43714
+ }
43715
+ exports.removeDuplicateSlashes = removeDuplicateSlashes;
43689
43716
  }
43690
43717
  });
43691
43718
 
@@ -43878,9 +43905,11 @@ var require_tasks = __commonJS({
43878
43905
  Object.defineProperty(exports, "__esModule", { value: true });
43879
43906
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
43880
43907
  var utils = require_utils6();
43881
- function generate(patterns, settings) {
43908
+ function generate(input, settings) {
43909
+ const patterns = processPatterns(input, settings);
43910
+ const ignore = processPatterns(settings.ignore, settings);
43882
43911
  const positivePatterns = getPositivePatterns(patterns);
43883
- const negativePatterns = getNegativePatternsAsPositive(patterns, settings.ignore);
43912
+ const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
43884
43913
  const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
43885
43914
  const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
43886
43915
  const staticTasks = convertPatternsToTasks(
@@ -43898,6 +43927,16 @@ var require_tasks = __commonJS({
43898
43927
  return staticTasks.concat(dynamicTasks);
43899
43928
  }
43900
43929
  exports.generate = generate;
43930
+ function processPatterns(input, settings) {
43931
+ let patterns = input;
43932
+ if (settings.braceExpansion) {
43933
+ patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
43934
+ }
43935
+ if (settings.baseNameMatch) {
43936
+ patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
43937
+ }
43938
+ return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
43939
+ }
43901
43940
  function convertPatternsToTasks(positive, negative, dynamic) {
43902
43941
  const tasks = [];
43903
43942
  const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
@@ -43955,24 +43994,6 @@ var require_tasks = __commonJS({
43955
43994
  }
43956
43995
  });
43957
43996
 
43958
- // ../../node_modules/fast-glob/out/managers/patterns.js
43959
- var require_patterns = __commonJS({
43960
- "../../node_modules/fast-glob/out/managers/patterns.js"(exports) {
43961
- "use strict";
43962
- Object.defineProperty(exports, "__esModule", { value: true });
43963
- exports.removeDuplicateSlashes = exports.transform = void 0;
43964
- var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
43965
- function transform(patterns) {
43966
- return patterns.map((pattern) => removeDuplicateSlashes(pattern));
43967
- }
43968
- exports.transform = transform;
43969
- function removeDuplicateSlashes(pattern) {
43970
- return pattern.replace(DOUBLE_SLASH_RE, "/");
43971
- }
43972
- exports.removeDuplicateSlashes = removeDuplicateSlashes;
43973
- }
43974
- });
43975
-
43976
43997
  // ../../node_modules/@nodelib/fs.stat/out/providers/async.js
43977
43998
  var require_async2 = __commonJS({
43978
43999
  "../../node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
@@ -45223,8 +45244,7 @@ var require_matcher = __commonJS({
45223
45244
  this._fillStorage();
45224
45245
  }
45225
45246
  _fillStorage() {
45226
- const patterns = utils.pattern.expandPatternsWithBraceExpansion(this._patterns);
45227
- for (const pattern of patterns) {
45247
+ for (const pattern of this._patterns) {
45228
45248
  const segments = this._getPatternSegments(pattern);
45229
45249
  const sections = this._splitSegmentsIntoSections(segments);
45230
45250
  this._storage.push({
@@ -45376,32 +45396,32 @@ var require_entry = __commonJS({
45376
45396
  }
45377
45397
  getFilter(positive, negative) {
45378
45398
  const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
45379
- const negativeRe = utils.pattern.convertPatternsToRe(negative, this._micromatchOptions);
45399
+ const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }));
45380
45400
  return (entry) => this._filter(entry, positiveRe, negativeRe);
45381
45401
  }
45382
45402
  _filter(entry, positiveRe, negativeRe) {
45383
- if (this._settings.unique && this._isDuplicateEntry(entry)) {
45403
+ const filepath = utils.path.removeLeadingDotSegment(entry.path);
45404
+ if (this._settings.unique && this._isDuplicateEntry(filepath)) {
45384
45405
  return false;
45385
45406
  }
45386
45407
  if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
45387
45408
  return false;
45388
45409
  }
45389
- if (this._isSkippedByAbsoluteNegativePatterns(entry.path, negativeRe)) {
45410
+ if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) {
45390
45411
  return false;
45391
45412
  }
45392
- const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
45393
45413
  const isDirectory = entry.dirent.isDirectory();
45394
- const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(entry.path, negativeRe, isDirectory);
45414
+ const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
45395
45415
  if (this._settings.unique && isMatched) {
45396
- this._createIndexRecord(entry);
45416
+ this._createIndexRecord(filepath);
45397
45417
  }
45398
45418
  return isMatched;
45399
45419
  }
45400
- _isDuplicateEntry(entry) {
45401
- return this.index.has(entry.path);
45420
+ _isDuplicateEntry(filepath) {
45421
+ return this.index.has(filepath);
45402
45422
  }
45403
- _createIndexRecord(entry) {
45404
- this.index.set(entry.path, void 0);
45423
+ _createIndexRecord(filepath) {
45424
+ this.index.set(filepath, void 0);
45405
45425
  }
45406
45426
  _onlyFileFilter(entry) {
45407
45427
  return this._settings.onlyFiles && !entry.dirent.isFile();
@@ -45416,8 +45436,7 @@ var require_entry = __commonJS({
45416
45436
  const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
45417
45437
  return utils.pattern.matchAny(fullpath, patternsRe);
45418
45438
  }
45419
- _isMatchToPatterns(entryPath, patternsRe, isDirectory) {
45420
- const filepath = utils.path.removeLeadingDotSegment(entryPath);
45439
+ _isMatchToPatterns(filepath, patternsRe, isDirectory) {
45421
45440
  const isMatched = utils.pattern.matchAny(filepath, patternsRe);
45422
45441
  if (!isMatched && isDirectory) {
45423
45442
  return utils.pattern.matchAny(filepath + "/", patternsRe);
@@ -45740,7 +45759,6 @@ var require_out4 = __commonJS({
45740
45759
  "../../node_modules/fast-glob/out/index.js"(exports, module2) {
45741
45760
  "use strict";
45742
45761
  var taskManager = require_tasks();
45743
- var patternManager = require_patterns();
45744
45762
  var async_1 = require_async7();
45745
45763
  var stream_1 = require_stream5();
45746
45764
  var sync_1 = require_sync6();
@@ -45753,6 +45771,10 @@ var require_out4 = __commonJS({
45753
45771
  return utils.array.flatten(result);
45754
45772
  }
45755
45773
  (function(FastGlob2) {
45774
+ FastGlob2.glob = FastGlob2;
45775
+ FastGlob2.globSync = sync;
45776
+ FastGlob2.globStream = stream;
45777
+ FastGlob2.async = FastGlob2;
45756
45778
  function sync(source, options) {
45757
45779
  assertPatternsInput(source);
45758
45780
  const works = getWorks(source, sync_1.default, options);
@@ -45767,7 +45789,7 @@ var require_out4 = __commonJS({
45767
45789
  FastGlob2.stream = stream;
45768
45790
  function generateTasks(source, options) {
45769
45791
  assertPatternsInput(source);
45770
- const patterns = patternManager.transform([].concat(source));
45792
+ const patterns = [].concat(source);
45771
45793
  const settings = new settings_1.default(options);
45772
45794
  return taskManager.generate(patterns, settings);
45773
45795
  }
@@ -45783,9 +45805,40 @@ var require_out4 = __commonJS({
45783
45805
  return utils.path.escape(source);
45784
45806
  }
45785
45807
  FastGlob2.escapePath = escapePath;
45808
+ function convertPathToPattern(source) {
45809
+ assertPatternsInput(source);
45810
+ return utils.path.convertPathToPattern(source);
45811
+ }
45812
+ FastGlob2.convertPathToPattern = convertPathToPattern;
45813
+ let posix;
45814
+ (function(posix2) {
45815
+ function escapePath2(source) {
45816
+ assertPatternsInput(source);
45817
+ return utils.path.escapePosixPath(source);
45818
+ }
45819
+ posix2.escapePath = escapePath2;
45820
+ function convertPathToPattern2(source) {
45821
+ assertPatternsInput(source);
45822
+ return utils.path.convertPosixPathToPattern(source);
45823
+ }
45824
+ posix2.convertPathToPattern = convertPathToPattern2;
45825
+ })(posix = FastGlob2.posix || (FastGlob2.posix = {}));
45826
+ let win32;
45827
+ (function(win322) {
45828
+ function escapePath2(source) {
45829
+ assertPatternsInput(source);
45830
+ return utils.path.escapeWindowsPath(source);
45831
+ }
45832
+ win322.escapePath = escapePath2;
45833
+ function convertPathToPattern2(source) {
45834
+ assertPatternsInput(source);
45835
+ return utils.path.convertWindowsPathToPattern(source);
45836
+ }
45837
+ win322.convertPathToPattern = convertPathToPattern2;
45838
+ })(win32 = FastGlob2.win32 || (FastGlob2.win32 = {}));
45786
45839
  })(FastGlob || (FastGlob = {}));
45787
45840
  function getWorks(source, _Provider, options) {
45788
- const patterns = patternManager.transform([].concat(source));
45841
+ const patterns = [].concat(source);
45789
45842
  const settings = new settings_1.default(options);
45790
45843
  const tasks = taskManager.generate(patterns, settings);
45791
45844
  const provider = new _Provider(settings);
@@ -51636,8 +51689,8 @@ var require_build8 = __commonJS({
51636
51689
  return s2(t3);
51637
51690
  }
51638
51691
  }
51639
- var _ = /(^\*)|(^\$0)/;
51640
- var M = class {
51692
+ var M = /(^\*)|(^\$0)/;
51693
+ var _ = class {
51641
51694
  constructor(t2, e2, s2, i2) {
51642
51695
  this.requireCache = /* @__PURE__ */ new Set(), this.handlers = {}, this.aliasMap = {}, this.frozens = [], this.shim = i2, this.usage = t2, this.globalMiddleware = s2, this.validation = e2;
51643
51696
  }
@@ -51682,8 +51735,8 @@ var require_build8 = __commonJS({
51682
51735
  const n3 = o(t2);
51683
51736
  a2 = a2.map((t3) => o(t3).cmd);
51684
51737
  let l2 = false;
51685
- const c2 = [n3.cmd].concat(a2).filter((t3) => !_.test(t3) || (l2 = true, false));
51686
- 0 === c2.length && l2 && c2.push("$0"), l2 && (n3.cmd = c2[0], a2 = c2.slice(1), t2 = t2.replace(_, n3.cmd)), a2.forEach((t3) => {
51738
+ const c2 = [n3.cmd].concat(a2).filter((t3) => !M.test(t3) || (l2 = true, false));
51739
+ 0 === c2.length && l2 && c2.push("$0"), l2 && (n3.cmd = c2[0], a2 = c2.slice(1), t2 = t2.replace(M, n3.cmd)), a2.forEach((t3) => {
51687
51740
  this.aliasMap[t3] = n3.cmd;
51688
51741
  }), false !== e2 && this.usage.command(t2, e2, l2, a2, r2), this.handlers[n3.cmd] = { original: t2, description: e2, handler: i2, builder: s2 || {}, middlewares: h2, deprecated: r2, demanded: n3.demanded, optional: n3.optional }, l2 && (this.defaultCommand = this.handlers[n3.cmd]);
51689
51742
  }
@@ -51707,6 +51760,7 @@ var require_build8 = __commonJS({
51707
51760
  const h2 = e2.builder;
51708
51761
  let l2 = s2;
51709
51762
  if (x(h2)) {
51763
+ s2.getInternalMethods().getUsageInstance().freeze();
51710
51764
  const c2 = h2(s2.getInternalMethods().reset(i2), a2);
51711
51765
  if (f(c2))
51712
51766
  return c2.then((i3) => {
@@ -51716,7 +51770,7 @@ var require_build8 = __commonJS({
51716
51770
  } else
51717
51771
  (function(t3) {
51718
51772
  return "object" == typeof t3;
51719
- })(h2) && (l2 = s2.getInternalMethods().reset(i2), Object.keys(e2.builder).forEach((t3) => {
51773
+ })(h2) && (s2.getInternalMethods().getUsageInstance().freeze(), l2 = s2.getInternalMethods().reset(i2), Object.keys(e2.builder).forEach((t3) => {
51720
51774
  l2.option(t3, h2[t3]);
51721
51775
  }));
51722
51776
  return this.parseAndUpdateUsage(t2, e2, l2, n2, r2, o2);
@@ -51730,7 +51784,7 @@ var require_build8 = __commonJS({
51730
51784
  return !t2.getInternalMethods().getUsageInstance().getUsageDisabled() && 0 === t2.getInternalMethods().getUsageInstance().getUsage().length;
51731
51785
  }
51732
51786
  usageFromParentCommandsCommandHandler(t2, e2) {
51733
- const s2 = _.test(e2.original) ? e2.original.replace(_, "").trim() : e2.original, i2 = t2.filter((t3) => !_.test(t3));
51787
+ const s2 = M.test(e2.original) ? e2.original.replace(M, "").trim() : e2.original, i2 = t2.filter((t3) => !M.test(t3));
51734
51788
  return i2.push(s2), `$0 ${i2.join(" ")}`;
51735
51789
  }
51736
51790
  handleValidationAndGetResult(t2, e2, s2, i2, n2, r2, o2, a2) {
@@ -51825,7 +51879,7 @@ var require_build8 = __commonJS({
51825
51879
  if (!this.defaultCommand)
51826
51880
  return;
51827
51881
  if (this.shouldUpdateUsage(t2)) {
51828
- const e3 = _.test(this.defaultCommand.original) ? this.defaultCommand.original : this.defaultCommand.original.replace(/^[^[\]<>]*/, "$0 ");
51882
+ const e3 = M.test(this.defaultCommand.original) ? this.defaultCommand.original : this.defaultCommand.original.replace(/^[^[\]<>]*/, "$0 ");
51829
51883
  t2.getInternalMethods().getUsageInstance().usage(e3, this.defaultCommand.description);
51830
51884
  }
51831
51885
  const e2 = this.defaultCommand.builder;
@@ -52019,21 +52073,21 @@ var require_build8 = __commonJS({
52019
52073
  t3[2] && o4.push(`[${i2("default")}]`), t3[3] && t3[3].length && o4.push(`[${i2("aliases:")} ${t3[3].join(", ")}]`), t3[4] && ("string" == typeof t3[4] ? o4.push(`[${i2("deprecated: %s", t3[4])}]`) : o4.push(`[${i2("deprecated")}]`)), o4.length ? b3.div({ text: o4.join(" "), padding: [0, 0, 0, 2], align: "right" }) : b3.div();
52020
52074
  }), b3.div();
52021
52075
  }
52022
- const _3 = (Object.keys(l3.alias) || []).concat(Object.keys(t2.parsed.newAliases) || []);
52023
- g2 = g2.filter((e3) => !t2.parsed.newAliases[e3] && _3.every((t3) => -1 === (l3.alias[t3] || []).indexOf(e3)));
52024
- const M3 = i2("Options:");
52025
- h3[M3] || (h3[M3] = []), function(t3, e3, s3, i3) {
52076
+ const M3 = (Object.keys(l3.alias) || []).concat(Object.keys(t2.parsed.newAliases) || []);
52077
+ g2 = g2.filter((e3) => !t2.parsed.newAliases[e3] && M3.every((t3) => -1 === (l3.alias[t3] || []).indexOf(e3)));
52078
+ const _3 = i2("Options:");
52079
+ h3[_3] || (h3[_3] = []), function(t3, e3, s3, i3) {
52026
52080
  let n3 = [], r4 = null;
52027
52081
  Object.keys(s3).forEach((t4) => {
52028
52082
  n3 = n3.concat(s3[t4]);
52029
52083
  }), t3.forEach((t4) => {
52030
52084
  r4 = [t4].concat(e3[t4]), r4.some((t5) => -1 !== n3.indexOf(t5)) || s3[i3].push(t4);
52031
52085
  });
52032
- }(g2, l3.alias, h3, M3);
52086
+ }(g2, l3.alias, h3, _3);
52033
52087
  const k2 = (t3) => /^--/.test(I(t3)), x2 = Object.keys(h3).filter((t3) => h3[t3].length > 0).map((t3) => ({ groupName: t3, normalizedKeys: h3[t3].filter(C2).map((t4) => {
52034
- if (_3.includes(t4))
52088
+ if (M3.includes(t4))
52035
52089
  return t4;
52036
- for (let e3, s3 = 0; void 0 !== (e3 = _3[s3]); s3++)
52090
+ for (let e3, s3 = 0; void 0 !== (e3 = M3[s3]); s3++)
52037
52091
  if ((l3.alias[e3] || []).includes(t4))
52038
52092
  return e3;
52039
52093
  return t4;
@@ -52044,16 +52098,18 @@ var require_build8 = __commonJS({
52044
52098
  if (x2.filter(({ groupName: t3 }) => t3 !== n2.getPositionalGroupName()).some(({ normalizedKeys: t3, switches: e3 }) => !t3.every((t4) => k2(e3[t4]))) && x2.filter(({ groupName: t3 }) => t3 !== n2.getPositionalGroupName()).forEach(({ normalizedKeys: t3, switches: e3 }) => {
52045
52099
  t3.forEach((t4) => {
52046
52100
  var s3, i3;
52047
- k2(e3[t4]) && (e3[t4] = (s3 = e3[t4], i3 = "-x, ".length, S(s3) ? { text: s3.text, indentation: s3.indentation + i3 } : { text: s3, indentation: i3 }));
52101
+ k2(e3[t4]) && (e3[t4] = (s3 = e3[t4], i3 = 4, S(s3) ? { text: s3.text, indentation: s3.indentation + i3 } : { text: s3, indentation: i3 }));
52048
52102
  });
52049
- }), x2.forEach(({ groupName: t3, normalizedKeys: e3, switches: s3 }) => {
52050
- b3.div(t3), e3.forEach((t4) => {
52051
- const e4 = s3[t4];
52052
- let o4 = p2[t4] || "", h4 = null;
52053
- o4.includes(v2) && (o4 = i2(o4.substring(v2.length))), l3.boolean.includes(t4) && (h4 = `[${i2("boolean")}]`), l3.count.includes(t4) && (h4 = `[${i2("count")}]`), l3.string.includes(t4) && (h4 = `[${i2("string")}]`), l3.normalize.includes(t4) && (h4 = `[${i2("string")}]`), l3.array.includes(t4) && (h4 = `[${i2("array")}]`), l3.number.includes(t4) && (h4 = `[${i2("number")}]`);
52054
- const c3 = [t4 in a3 ? (f3 = a3[t4], "string" == typeof f3 ? `[${i2("deprecated: %s", f3)}]` : `[${i2("deprecated")}]`) : null, h4, t4 in r3 ? `[${i2("required")}]` : null, l3.choices && l3.choices[t4] ? `[${i2("choices:")} ${n2.stringifiedValues(l3.choices[t4])}]` : null, j2(l3.default[t4], l3.defaultDescription[t4])].filter(Boolean).join(" ");
52055
- var f3;
52056
- b3.span({ text: I(e4), padding: [0, 2, 0, 2 + $(e4)], width: O2(s3, y3) + 4 }, o4), c3 ? b3.div({ text: c3, padding: [0, 0, 0, 2], align: "right" }) : b3.div();
52103
+ }), x2.forEach(({ groupName: e3, normalizedKeys: s3, switches: o4 }) => {
52104
+ b3.div(e3), s3.forEach((e4) => {
52105
+ const s4 = o4[e4];
52106
+ let h4 = p2[e4] || "", c3 = null;
52107
+ h4.includes(v2) && (h4 = i2(h4.substring(16))), l3.boolean.includes(e4) && (c3 = `[${i2("boolean")}]`), l3.count.includes(e4) && (c3 = `[${i2("count")}]`), l3.string.includes(e4) && (c3 = `[${i2("string")}]`), l3.normalize.includes(e4) && (c3 = `[${i2("string")}]`), l3.array.includes(e4) && (c3 = `[${i2("array")}]`), l3.number.includes(e4) && (c3 = `[${i2("number")}]`);
52108
+ const f3 = [e4 in a3 ? (d3 = a3[e4], "string" == typeof d3 ? `[${i2("deprecated: %s", d3)}]` : `[${i2("deprecated")}]`) : null, c3, e4 in r3 ? `[${i2("required")}]` : null, l3.choices && l3.choices[e4] ? `[${i2("choices:")} ${n2.stringifiedValues(l3.choices[e4])}]` : null, j2(l3.default[e4], l3.defaultDescription[e4])].filter(Boolean).join(" ");
52109
+ var d3;
52110
+ b3.span({ text: I(s4), padding: [0, 2, 0, 2 + $(s4)], width: O2(o4, y3) + 4 }, h4);
52111
+ const u3 = true === t2.getInternalMethods().getUsageConfiguration()["hide-types"];
52112
+ f3 && !u3 ? b3.div({ text: f3, padding: [0, 0, 0, 2], align: "right" }) : b3.div();
52057
52113
  }), b3.div();
52058
52114
  }), d2.length && (b3.div(i2("Examples:")), d2.forEach((t3) => {
52059
52115
  t3[0] = t3[0].replace(/\$0/g, e2);
@@ -52082,21 +52138,21 @@ var require_build8 = __commonJS({
52082
52138
  s3.length && (s3 += i3), s3 += JSON.stringify(t4);
52083
52139
  }), s3) : s3;
52084
52140
  };
52085
- let _2 = null;
52141
+ let M2 = null;
52086
52142
  n2.version = (t3) => {
52087
- _2 = t3;
52143
+ M2 = t3;
52088
52144
  }, n2.showVersion = (e2) => {
52089
52145
  const s3 = t2.getInternalMethods().getLoggerInstance();
52090
52146
  e2 || (e2 = "error");
52091
- ("function" == typeof e2 ? e2 : s3[e2])(_2);
52147
+ ("function" == typeof e2 ? e2 : s3[e2])(M2);
52092
52148
  }, n2.reset = function(t3) {
52093
52149
  return o2 = null, l2 = false, c2 = [], f2 = false, m2 = [], d2 = [], u2 = [], p2 = g(p2, (e2) => !t3[e2]), n2;
52094
52150
  };
52095
- const M2 = [];
52151
+ const _2 = [];
52096
52152
  return n2.freeze = function() {
52097
- M2.push({ failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 });
52153
+ _2.push({ failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 });
52098
52154
  }, n2.unfreeze = function(t3 = false) {
52099
- const e2 = M2.pop();
52155
+ const e2 = _2.pop();
52100
52156
  e2 && (t3 ? (p2 = { ...e2.descriptions, ...p2 }, u2 = [...e2.commands, ...u2], c2 = [...e2.usages, ...c2], d2 = [...e2.examples, ...d2], m2 = [...e2.epilogs, ...m2]) : { failMessage: o2, failureOutput: l2, usages: c2, usageDisabled: f2, epilogs: m2, examples: d2, commands: u2, descriptions: p2 } = e2);
52101
52157
  }, n2;
52102
52158
  }
@@ -52145,7 +52201,7 @@ var require_build8 = __commonJS({
52145
52201
  const s3 = this.yargs.getOptions(), n2 = this.yargs.getGroups()[this.usage.getPositionalGroupName()] || [];
52146
52202
  Object.keys(s3.key).forEach((r2) => {
52147
52203
  const o2 = !!s3.configuration["boolean-negation"] && s3.boolean.includes(r2);
52148
- n2.includes(r2) || s3.hiddenOptions.includes(r2) || this.argsContainKey(e2, r2, o2) || (this.completeOptionKey(r2, t2, i2), o2 && s3.default[r2] && this.completeOptionKey(`no-${r2}`, t2, i2));
52204
+ n2.includes(r2) || s3.hiddenOptions.includes(r2) || this.argsContainKey(e2, r2, o2) || this.completeOptionKey(r2, t2, i2, o2 && !!s3.default[r2]);
52149
52205
  });
52150
52206
  }
52151
52207
  }
@@ -52197,13 +52253,18 @@ var require_build8 = __commonJS({
52197
52253
  }
52198
52254
  return false;
52199
52255
  }
52200
- completeOptionKey(t2, e2, s2) {
52201
- const i2 = this.usage.getDescriptions(), n2 = !/^--/.test(s2) && ((t3) => /^[^0-9]$/.test(t3))(t2) ? "-" : "--";
52256
+ completeOptionKey(t2, e2, s2, i2) {
52257
+ var n2, r2, o2, a2;
52258
+ let h2 = t2;
52202
52259
  if (this.zshShell) {
52203
- const s3 = i2[t2] || "";
52204
- e2.push(n2 + `${t2.replace(/:/g, "\\:")}:${s3.replace("__yargsString__:", "")}`);
52205
- } else
52206
- e2.push(n2 + t2);
52260
+ const e3 = this.usage.getDescriptions(), s3 = null === (r2 = null === (n2 = null == this ? void 0 : this.aliases) || void 0 === n2 ? void 0 : n2[t2]) || void 0 === r2 ? void 0 : r2.find((t3) => {
52261
+ const s4 = e3[t3];
52262
+ return "string" == typeof s4 && s4.length > 0;
52263
+ }), i3 = s3 ? e3[s3] : void 0, l3 = null !== (a2 = null !== (o2 = e3[t2]) && void 0 !== o2 ? o2 : i3) && void 0 !== a2 ? a2 : "";
52264
+ h2 = `${t2.replace(/:/g, "\\:")}:${l3.replace("__yargsString__:", "").replace(/(\r\n|\n|\r)/gm, " ")}`;
52265
+ }
52266
+ const l2 = !/^--/.test(s2) && ((t3) => /^[^0-9]$/.test(t3))(t2) ? "-" : "--";
52267
+ e2.push(l2 + h2), i2 && e2.push(l2 + "no-" + h2);
52207
52268
  }
52208
52269
  customCompletion(t2, e2, s2, i2) {
52209
52270
  if (d(this.customCompletionFunction, null, this.shim), this.customCompletionFunction.length < 3) {
@@ -52278,19 +52339,19 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52278
52339
  return s2[e2.length][t2.length];
52279
52340
  }
52280
52341
  var H = ["$0", "--", "_"];
52281
- var W;
52282
52342
  var z;
52343
+ var W;
52283
52344
  var q;
52284
- var F;
52285
52345
  var U;
52346
+ var F;
52286
52347
  var L;
52287
52348
  var V;
52288
52349
  var G;
52289
52350
  var R;
52290
52351
  var T;
52291
52352
  var B;
52292
- var K;
52293
52353
  var Y;
52354
+ var K;
52294
52355
  var J;
52295
52356
  var Z;
52296
52357
  var X;
@@ -52312,47 +52373,49 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52312
52373
  var pt;
52313
52374
  var gt;
52314
52375
  var mt;
52315
- var yt = Symbol("copyDoubleDash");
52376
+ var yt;
52316
52377
  var bt = Symbol("copyDoubleDash");
52317
- var vt = Symbol("deleteFromParserHintObject");
52318
- var Ot = Symbol("emitWarning");
52319
- var wt = Symbol("freeze");
52320
- var Ct = Symbol("getDollarZero");
52321
- var jt = Symbol("getParserConfiguration");
52322
- var _t = Symbol("guessLocale");
52323
- var Mt = Symbol("guessVersion");
52324
- var kt = Symbol("parsePositionalNumbers");
52325
- var xt = Symbol("pkgUp");
52326
- var Et = Symbol("populateParserHintArray");
52327
- var At = Symbol("populateParserHintSingleValueDictionary");
52328
- var Pt = Symbol("populateParserHintArrayDictionary");
52329
- var St = Symbol("populateParserHintDictionary");
52330
- var $t = Symbol("sanitizeKey");
52331
- var It = Symbol("setKey");
52332
- var Dt = Symbol("unfreeze");
52333
- var Nt = Symbol("validateAsync");
52334
- var Ht = Symbol("getCommandInstance");
52335
- var Wt = Symbol("getContext");
52336
- var zt = Symbol("getHasOutput");
52337
- var qt = Symbol("getLoggerInstance");
52338
- var Ft = Symbol("getParseContext");
52339
- var Ut = Symbol("getUsageInstance");
52340
- var Lt = Symbol("getValidationInstance");
52341
- var Vt = Symbol("hasParseCallback");
52342
- var Gt = Symbol("isGlobalContext");
52343
- var Rt = Symbol("postProcess");
52344
- var Tt = Symbol("rebase");
52345
- var Bt = Symbol("reset");
52346
- var Kt = Symbol("runYargsParserAndExecuteCommands");
52347
- var Yt = Symbol("runValidation");
52348
- var Jt = Symbol("setHasOutput");
52349
- var Zt = Symbol("kTrackManuallySetKeys");
52350
- var Xt = class {
52378
+ var vt = Symbol("copyDoubleDash");
52379
+ var Ot = Symbol("deleteFromParserHintObject");
52380
+ var wt = Symbol("emitWarning");
52381
+ var Ct = Symbol("freeze");
52382
+ var jt = Symbol("getDollarZero");
52383
+ var Mt = Symbol("getParserConfiguration");
52384
+ var _t = Symbol("getUsageConfiguration");
52385
+ var kt = Symbol("guessLocale");
52386
+ var xt = Symbol("guessVersion");
52387
+ var Et = Symbol("parsePositionalNumbers");
52388
+ var At = Symbol("pkgUp");
52389
+ var Pt = Symbol("populateParserHintArray");
52390
+ var St = Symbol("populateParserHintSingleValueDictionary");
52391
+ var $t = Symbol("populateParserHintArrayDictionary");
52392
+ var It = Symbol("populateParserHintDictionary");
52393
+ var Dt = Symbol("sanitizeKey");
52394
+ var Nt = Symbol("setKey");
52395
+ var Ht = Symbol("unfreeze");
52396
+ var zt = Symbol("validateAsync");
52397
+ var Wt = Symbol("getCommandInstance");
52398
+ var qt = Symbol("getContext");
52399
+ var Ut = Symbol("getHasOutput");
52400
+ var Ft = Symbol("getLoggerInstance");
52401
+ var Lt = Symbol("getParseContext");
52402
+ var Vt = Symbol("getUsageInstance");
52403
+ var Gt = Symbol("getValidationInstance");
52404
+ var Rt = Symbol("hasParseCallback");
52405
+ var Tt = Symbol("isGlobalContext");
52406
+ var Bt = Symbol("postProcess");
52407
+ var Yt = Symbol("rebase");
52408
+ var Kt = Symbol("reset");
52409
+ var Jt = Symbol("runYargsParserAndExecuteCommands");
52410
+ var Zt = Symbol("runValidation");
52411
+ var Xt = Symbol("setHasOutput");
52412
+ var Qt = Symbol("kTrackManuallySetKeys");
52413
+ var te = class {
52351
52414
  constructor(t2 = [], e2, s2, i2) {
52352
- this.customScriptName = false, this.parsed = false, W.set(this, void 0), z.set(this, void 0), q.set(this, { commands: [], fullCommands: [] }), F.set(this, null), U.set(this, null), L.set(this, "show-hidden"), V.set(this, null), G.set(this, true), R.set(this, {}), T.set(this, true), B.set(this, []), K.set(this, void 0), Y.set(this, {}), J.set(this, false), Z.set(this, null), X.set(this, true), Q.set(this, void 0), tt.set(this, ""), et.set(this, void 0), st.set(this, void 0), it.set(this, {}), nt.set(this, null), rt.set(this, null), ot.set(this, {}), at.set(this, {}), ht.set(this, void 0), lt.set(this, false), ct.set(this, void 0), ft.set(this, false), dt.set(this, false), ut.set(this, false), pt.set(this, void 0), gt.set(this, null), mt.set(this, void 0), O(this, ct, i2, "f"), O(this, ht, t2, "f"), O(this, z, e2, "f"), O(this, st, s2, "f"), O(this, K, new w(this), "f"), this.$0 = this[Ct](), this[Bt](), O(this, W, v(this, W, "f"), "f"), O(this, pt, v(this, pt, "f"), "f"), O(this, mt, v(this, mt, "f"), "f"), O(this, et, v(this, et, "f"), "f"), v(this, et, "f").showHiddenOpt = v(this, L, "f"), O(this, Q, this[bt](), "f");
52415
+ this.customScriptName = false, this.parsed = false, z.set(this, void 0), W.set(this, void 0), q.set(this, { commands: [], fullCommands: [] }), U.set(this, null), F.set(this, null), L.set(this, "show-hidden"), V.set(this, null), G.set(this, true), R.set(this, {}), T.set(this, true), B.set(this, []), Y.set(this, void 0), K.set(this, {}), J.set(this, false), Z.set(this, null), X.set(this, true), Q.set(this, void 0), tt.set(this, ""), et.set(this, void 0), st.set(this, void 0), it.set(this, {}), nt.set(this, null), rt.set(this, null), ot.set(this, {}), at.set(this, {}), ht.set(this, void 0), lt.set(this, false), ct.set(this, void 0), ft.set(this, false), dt.set(this, false), ut.set(this, false), pt.set(this, void 0), gt.set(this, {}), mt.set(this, null), yt.set(this, void 0), O(this, ct, i2, "f"), O(this, ht, t2, "f"), O(this, W, e2, "f"), O(this, st, s2, "f"), O(this, Y, new w(this), "f"), this.$0 = this[jt](), this[Kt](), O(this, z, v(this, z, "f"), "f"), O(this, pt, v(this, pt, "f"), "f"), O(this, yt, v(this, yt, "f"), "f"), O(this, et, v(this, et, "f"), "f"), v(this, et, "f").showHiddenOpt = v(this, L, "f"), O(this, Q, this[vt](), "f");
52353
52416
  }
52354
52417
  addHelpOpt(t2, e2) {
52355
- return h("[string|boolean] [string]", [t2, e2], arguments.length), v(this, Z, "f") && (this[vt](v(this, Z, "f")), O(this, Z, null, "f")), false === t2 && void 0 === e2 || (O(this, Z, "string" == typeof t2 ? t2 : "help", "f"), this.boolean(v(this, Z, "f")), this.describe(v(this, Z, "f"), e2 || v(this, pt, "f").deferY18nLookup("Show help"))), this;
52418
+ return h("[string|boolean] [string]", [t2, e2], arguments.length), v(this, Z, "f") && (this[Ot](v(this, Z, "f")), O(this, Z, null, "f")), false === t2 && void 0 === e2 || (O(this, Z, "string" == typeof t2 ? t2 : "help", "f"), this.boolean(v(this, Z, "f")), this.describe(v(this, Z, "f"), e2 || v(this, pt, "f").deferY18nLookup("Show help"))), this;
52356
52419
  }
52357
52420
  help(t2, e2) {
52358
52421
  return this.addHelpOpt(t2, e2);
@@ -52367,19 +52430,19 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52367
52430
  return this.addShowHiddenOpt(t2, e2);
52368
52431
  }
52369
52432
  alias(t2, e2) {
52370
- return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[Pt](this.alias.bind(this), "alias", t2, e2), this;
52433
+ return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[$t](this.alias.bind(this), "alias", t2, e2), this;
52371
52434
  }
52372
52435
  array(t2) {
52373
- return h("<array|string>", [t2], arguments.length), this[Et]("array", t2), this[Zt](t2), this;
52436
+ return h("<array|string>", [t2], arguments.length), this[Pt]("array", t2), this[Qt](t2), this;
52374
52437
  }
52375
52438
  boolean(t2) {
52376
- return h("<array|string>", [t2], arguments.length), this[Et]("boolean", t2), this[Zt](t2), this;
52439
+ return h("<array|string>", [t2], arguments.length), this[Pt]("boolean", t2), this[Qt](t2), this;
52377
52440
  }
52378
52441
  check(t2, e2) {
52379
52442
  return h("<function> [boolean]", [t2, e2], arguments.length), this.middleware((e3, s2) => j(() => t2(e3, s2.getOptions()), (s3) => (s3 ? ("string" == typeof s3 || s3 instanceof Error) && v(this, pt, "f").fail(s3.toString(), s3) : v(this, pt, "f").fail(v(this, ct, "f").y18n.__("Argument check failed: %s", t2.toString())), e3), (t3) => (v(this, pt, "f").fail(t3.message ? t3.message : t3.toString(), t3), e3)), false, e2), this;
52380
52443
  }
52381
52444
  choices(t2, e2) {
52382
- return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[Pt](this.choices.bind(this), "choices", t2, e2), this;
52445
+ return h("<object|string|array> [string|array]", [t2, e2], arguments.length), this[$t](this.choices.bind(this), "choices", t2, e2), this;
52383
52446
  }
52384
52447
  coerce(t2, s2) {
52385
52448
  if (h("<object|string|array> [function]", [t2, s2], arguments.length), Array.isArray(t2)) {
@@ -52396,7 +52459,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52396
52459
  }
52397
52460
  if (!s2)
52398
52461
  throw new e("coerce callback must be provided");
52399
- return v(this, et, "f").key[t2] = true, v(this, K, "f").addCoerceMiddleware((i2, n2) => {
52462
+ return v(this, et, "f").key[t2] = true, v(this, Y, "f").addCoerceMiddleware((i2, n2) => {
52400
52463
  let r2;
52401
52464
  return Object.prototype.hasOwnProperty.call(i2, t2) ? j(() => (r2 = n2.getAliases(), s2(i2[t2])), (e2) => {
52402
52465
  i2[t2] = e2;
@@ -52411,18 +52474,18 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52411
52474
  }, t2), this;
52412
52475
  }
52413
52476
  conflicts(t2, e2) {
52414
- return h("<string|object> [string|array]", [t2, e2], arguments.length), v(this, mt, "f").conflicts(t2, e2), this;
52477
+ return h("<string|object> [string|array]", [t2, e2], arguments.length), v(this, yt, "f").conflicts(t2, e2), this;
52415
52478
  }
52416
52479
  config(t2 = "config", e2, s2) {
52417
52480
  return h("[object|string] [string|function] [function]", [t2, e2, s2], arguments.length), "object" != typeof t2 || Array.isArray(t2) ? ("function" == typeof e2 && (s2 = e2, e2 = void 0), this.describe(t2, e2 || v(this, pt, "f").deferY18nLookup("Path to JSON config file")), (Array.isArray(t2) ? t2 : [t2]).forEach((t3) => {
52418
52481
  v(this, et, "f").config[t3] = s2 || true;
52419
- }), this) : (t2 = n(t2, v(this, z, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(t2), this);
52482
+ }), this) : (t2 = n(t2, v(this, W, "f"), this[Mt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(t2), this);
52420
52483
  }
52421
52484
  completion(t2, e2, s2) {
52422
- return h("[string] [string|boolean|function] [function]", [t2, e2, s2], arguments.length), "function" == typeof e2 && (s2 = e2, e2 = void 0), O(this, U, t2 || v(this, U, "f") || "completion", "f"), e2 || false === e2 || (e2 = "generate completion script"), this.command(v(this, U, "f"), e2), s2 && v(this, F, "f").registerFunction(s2), this;
52485
+ return h("[string] [string|boolean|function] [function]", [t2, e2, s2], arguments.length), "function" == typeof e2 && (s2 = e2, e2 = void 0), O(this, F, t2 || v(this, F, "f") || "completion", "f"), e2 || false === e2 || (e2 = "generate completion script"), this.command(v(this, F, "f"), e2), s2 && v(this, U, "f").registerFunction(s2), this;
52423
52486
  }
52424
52487
  command(t2, e2, s2, i2, n2, r2) {
52425
- return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [t2, e2, s2, i2, n2, r2], arguments.length), v(this, W, "f").addHandler(t2, e2, s2, i2, n2, r2), this;
52488
+ return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [t2, e2, s2, i2, n2, r2], arguments.length), v(this, z, "f").addHandler(t2, e2, s2, i2, n2, r2), this;
52426
52489
  }
52427
52490
  commands(t2, e2, s2, i2, n2, r2) {
52428
52491
  return this.command(t2, e2, s2, i2, n2, r2);
@@ -52430,13 +52493,13 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52430
52493
  commandDir(t2, e2) {
52431
52494
  h("<string> [object]", [t2, e2], arguments.length);
52432
52495
  const s2 = v(this, st, "f") || v(this, ct, "f").require;
52433
- return v(this, W, "f").addDirectory(t2, s2, v(this, ct, "f").getCallerFile(), e2), this;
52496
+ return v(this, z, "f").addDirectory(t2, s2, v(this, ct, "f").getCallerFile(), e2), this;
52434
52497
  }
52435
52498
  count(t2) {
52436
- return h("<array|string>", [t2], arguments.length), this[Et]("count", t2), this[Zt](t2), this;
52499
+ return h("<array|string>", [t2], arguments.length), this[Pt]("count", t2), this[Qt](t2), this;
52437
52500
  }
52438
52501
  default(t2, e2, s2) {
52439
- return h("<object|string|array> [*] [string]", [t2, e2, s2], arguments.length), s2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] = s2), "function" == typeof e2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] || (v(this, et, "f").defaultDescription[t2] = v(this, pt, "f").functionDescription(e2)), e2 = e2.call()), this[At](this.default.bind(this), "default", t2, e2), this;
52502
+ return h("<object|string|array> [*] [string]", [t2, e2, s2], arguments.length), s2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] = s2), "function" == typeof e2 && (u(t2, v(this, ct, "f")), v(this, et, "f").defaultDescription[t2] || (v(this, et, "f").defaultDescription[t2] = v(this, pt, "f").functionDescription(e2)), e2 = e2.call()), this[St](this.default.bind(this), "default", t2, e2), this;
52440
52503
  }
52441
52504
  defaults(t2, e2, s2) {
52442
52505
  return this.default(t2, e2, s2);
@@ -52452,13 +52515,13 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52452
52515
  }) : "string" == typeof s2 ? this.demandOption(t2, s2) : true !== s2 && void 0 !== s2 || this.demandOption(t2), this;
52453
52516
  }
52454
52517
  demandOption(t2, e2) {
52455
- return h("<object|string|array> [string]", [t2, e2], arguments.length), this[At](this.demandOption.bind(this), "demandedOptions", t2, e2), this;
52518
+ return h("<object|string|array> [string]", [t2, e2], arguments.length), this[St](this.demandOption.bind(this), "demandedOptions", t2, e2), this;
52456
52519
  }
52457
52520
  deprecateOption(t2, e2) {
52458
52521
  return h("<string> [string|boolean]", [t2, e2], arguments.length), v(this, et, "f").deprecatedOptions[t2] = e2, this;
52459
52522
  }
52460
52523
  describe(t2, e2) {
52461
- return h("<object|string|array> [string]", [t2, e2], arguments.length), this[It](t2, true), v(this, pt, "f").describe(t2, e2), this;
52524
+ return h("<object|string|array> [string]", [t2, e2], arguments.length), this[Nt](t2, true), v(this, pt, "f").describe(t2, e2), this;
52462
52525
  }
52463
52526
  detectLocale(t2) {
52464
52527
  return h("<boolean>", [t2], arguments.length), O(this, G, t2, "f"), this;
@@ -52490,8 +52553,8 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52490
52553
  return this.parsed ? this.parsed.aliases : {};
52491
52554
  }
52492
52555
  async getCompletion(t2, e2) {
52493
- return h("<array> [function]", [t2, e2], arguments.length), e2 ? v(this, F, "f").getCompletion(t2, e2) : new Promise((e3, s2) => {
52494
- v(this, F, "f").getCompletion(t2, (t3, i2) => {
52556
+ return h("<array> [function]", [t2, e2], arguments.length), e2 ? v(this, U, "f").getCompletion(t2, e2) : new Promise((e3, s2) => {
52557
+ v(this, U, "f").getCompletion(t2, (t3, i2) => {
52495
52558
  t3 ? s2(t3) : e3(i2);
52496
52559
  });
52497
52560
  });
@@ -52512,16 +52575,16 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52512
52575
  return v(this, T, "f");
52513
52576
  }
52514
52577
  getGroups() {
52515
- return Object.assign({}, v(this, Y, "f"), v(this, at, "f"));
52578
+ return Object.assign({}, v(this, K, "f"), v(this, at, "f"));
52516
52579
  }
52517
52580
  getHelp() {
52518
52581
  if (O(this, J, true, "f"), !v(this, pt, "f").hasCachedHelpMessage()) {
52519
52582
  if (!this.parsed) {
52520
- const t3 = this[Kt](v(this, ht, "f"), void 0, void 0, 0, true);
52583
+ const t3 = this[Jt](v(this, ht, "f"), void 0, void 0, 0, true);
52521
52584
  if (f(t3))
52522
52585
  return t3.then(() => v(this, pt, "f").help());
52523
52586
  }
52524
- const t2 = v(this, W, "f").runDefaultBuilderOn(this);
52587
+ const t2 = v(this, z, "f").runDefaultBuilderOn(this);
52525
52588
  if (f(t2))
52526
52589
  return t2.then(() => v(this, pt, "f").help());
52527
52590
  }
@@ -52546,31 +52609,31 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52546
52609
  }
52547
52610
  group(t2, e2) {
52548
52611
  h("<string|array> <string>", [t2, e2], arguments.length);
52549
- const s2 = v(this, at, "f")[e2] || v(this, Y, "f")[e2];
52612
+ const s2 = v(this, at, "f")[e2] || v(this, K, "f")[e2];
52550
52613
  v(this, at, "f")[e2] && delete v(this, at, "f")[e2];
52551
52614
  const i2 = {};
52552
- return v(this, Y, "f")[e2] = (s2 || []).concat(t2).filter((t3) => !i2[t3] && (i2[t3] = true)), this;
52615
+ return v(this, K, "f")[e2] = (s2 || []).concat(t2).filter((t3) => !i2[t3] && (i2[t3] = true)), this;
52553
52616
  }
52554
52617
  hide(t2) {
52555
52618
  return h("<string>", [t2], arguments.length), v(this, et, "f").hiddenOptions.push(t2), this;
52556
52619
  }
52557
52620
  implies(t2, e2) {
52558
- return h("<string|object> [number|string|array]", [t2, e2], arguments.length), v(this, mt, "f").implies(t2, e2), this;
52621
+ return h("<string|object> [number|string|array]", [t2, e2], arguments.length), v(this, yt, "f").implies(t2, e2), this;
52559
52622
  }
52560
52623
  locale(t2) {
52561
- return h("[string]", [t2], arguments.length), void 0 === t2 ? (this[_t](), v(this, ct, "f").y18n.getLocale()) : (O(this, G, false, "f"), v(this, ct, "f").y18n.setLocale(t2), this);
52624
+ return h("[string]", [t2], arguments.length), void 0 === t2 ? (this[kt](), v(this, ct, "f").y18n.getLocale()) : (O(this, G, false, "f"), v(this, ct, "f").y18n.setLocale(t2), this);
52562
52625
  }
52563
52626
  middleware(t2, e2, s2) {
52564
- return v(this, K, "f").addMiddleware(t2, !!e2, s2);
52627
+ return v(this, Y, "f").addMiddleware(t2, !!e2, s2);
52565
52628
  }
52566
52629
  nargs(t2, e2) {
52567
- return h("<string|object|array> [number]", [t2, e2], arguments.length), this[At](this.nargs.bind(this), "narg", t2, e2), this;
52630
+ return h("<string|object|array> [number]", [t2, e2], arguments.length), this[St](this.nargs.bind(this), "narg", t2, e2), this;
52568
52631
  }
52569
52632
  normalize(t2) {
52570
- return h("<array|string>", [t2], arguments.length), this[Et]("normalize", t2), this;
52633
+ return h("<array|string>", [t2], arguments.length), this[Pt]("normalize", t2), this;
52571
52634
  }
52572
52635
  number(t2) {
52573
- return h("<array|string>", [t2], arguments.length), this[Et]("number", t2), this[Zt](t2), this;
52636
+ return h("<array|string>", [t2], arguments.length), this[Pt]("number", t2), this[Qt](t2), this;
52574
52637
  }
52575
52638
  option(t2, e2) {
52576
52639
  if (h("<string|object> [object]", [t2, e2], arguments.length), "object" == typeof t2)
@@ -52578,7 +52641,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52578
52641
  this.options(e3, t2[e3]);
52579
52642
  });
52580
52643
  else {
52581
- "object" != typeof e2 && (e2 = {}), this[Zt](t2), !v(this, gt, "f") || "version" !== t2 && "version" !== (null == e2 ? void 0 : e2.alias) || this[Ot](['"version" is a reserved word.', "Please do one of the following:", '- Disable version with `yargs.version(false)` if using "version" as an option', "- Use the built-in `yargs.version` method instead (if applicable)", "- Use a different option key", "https://yargs.js.org/docs/#api-reference-version"].join("\n"), void 0, "versionWarning"), v(this, et, "f").key[t2] = true, e2.alias && this.alias(t2, e2.alias);
52644
+ "object" != typeof e2 && (e2 = {}), this[Qt](t2), !v(this, mt, "f") || "version" !== t2 && "version" !== (null == e2 ? void 0 : e2.alias) || this[wt](['"version" is a reserved word.', "Please do one of the following:", '- Disable version with `yargs.version(false)` if using "version" as an option', "- Use the built-in `yargs.version` method instead (if applicable)", "- Use a different option key", "https://yargs.js.org/docs/#api-reference-version"].join("\n"), void 0, "versionWarning"), v(this, et, "f").key[t2] = true, e2.alias && this.alias(t2, e2.alias);
52582
52645
  const s2 = e2.deprecate || e2.deprecated;
52583
52646
  s2 && this.deprecateOption(t2, s2);
52584
52647
  const i2 = e2.demand || e2.required || e2.require;
@@ -52592,13 +52655,13 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52592
52655
  return this.option(t2, e2);
52593
52656
  }
52594
52657
  parse(t2, e2, s2) {
52595
- h("[string|array] [function|boolean|object] [function]", [t2, e2, s2], arguments.length), this[wt](), void 0 === t2 && (t2 = v(this, ht, "f")), "object" == typeof e2 && (O(this, rt, e2, "f"), e2 = s2), "function" == typeof e2 && (O(this, nt, e2, "f"), e2 = false), e2 || O(this, ht, t2, "f"), v(this, nt, "f") && O(this, T, false, "f");
52596
- const i2 = this[Kt](t2, !!e2), n2 = this.parsed;
52597
- return v(this, F, "f").setParsed(this.parsed), f(i2) ? i2.then((t3) => (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), t3, v(this, tt, "f")), t3)).catch((t3) => {
52658
+ h("[string|array] [function|boolean|object] [function]", [t2, e2, s2], arguments.length), this[Ct](), void 0 === t2 && (t2 = v(this, ht, "f")), "object" == typeof e2 && (O(this, rt, e2, "f"), e2 = s2), "function" == typeof e2 && (O(this, nt, e2, "f"), e2 = false), e2 || O(this, ht, t2, "f"), v(this, nt, "f") && O(this, T, false, "f");
52659
+ const i2 = this[Jt](t2, !!e2), n2 = this.parsed;
52660
+ return v(this, U, "f").setParsed(this.parsed), f(i2) ? i2.then((t3) => (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), t3, v(this, tt, "f")), t3)).catch((t3) => {
52598
52661
  throw v(this, nt, "f") && v(this, nt, "f")(t3, this.parsed.argv, v(this, tt, "f")), t3;
52599
52662
  }).finally(() => {
52600
- this[Dt](), this.parsed = n2;
52601
- }) : (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), i2, v(this, tt, "f")), this[Dt](), this.parsed = n2, i2);
52663
+ this[Ht](), this.parsed = n2;
52664
+ }) : (v(this, nt, "f") && v(this, nt, "f").call(this, v(this, V, "f"), i2, v(this, tt, "f")), this[Ht](), this.parsed = n2, i2);
52602
52665
  }
52603
52666
  parseAsync(t2, e2, s2) {
52604
52667
  const i2 = this.parse(t2, e2, s2);
@@ -52616,14 +52679,14 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52616
52679
  pkgConf(t2, e2) {
52617
52680
  h("<string> [string]", [t2, e2], arguments.length);
52618
52681
  let s2 = null;
52619
- const i2 = this[xt](e2 || v(this, z, "f"));
52620
- return i2[t2] && "object" == typeof i2[t2] && (s2 = n(i2[t2], e2 || v(this, z, "f"), this[jt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(s2)), this;
52682
+ const i2 = this[At](e2 || v(this, W, "f"));
52683
+ return i2[t2] && "object" == typeof i2[t2] && (s2 = n(i2[t2], e2 || v(this, W, "f"), this[Mt]()["deep-merge-config"] || false, v(this, ct, "f")), v(this, et, "f").configObjects = (v(this, et, "f").configObjects || []).concat(s2)), this;
52621
52684
  }
52622
52685
  positional(t2, e2) {
52623
52686
  h("<string> <object>", [t2, e2], arguments.length);
52624
52687
  const s2 = ["default", "defaultDescription", "implies", "normalize", "choices", "conflicts", "coerce", "type", "describe", "desc", "description", "alias"];
52625
52688
  e2 = g(e2, (t3, e3) => !("type" === t3 && !["string", "number", "boolean"].includes(e3)) && s2.includes(t3));
52626
- const i2 = v(this, q, "f").fullCommands[v(this, q, "f").fullCommands.length - 1], n2 = i2 ? v(this, W, "f").cmdToParseOptions(i2) : { array: [], alias: {}, default: {}, demand: {} };
52689
+ const i2 = v(this, q, "f").fullCommands[v(this, q, "f").fullCommands.length - 1], n2 = i2 ? v(this, z, "f").cmdToParseOptions(i2) : { array: [], alias: {}, default: {}, demand: {} };
52627
52690
  return p(n2).forEach((s3) => {
52628
52691
  const i3 = n2[s3];
52629
52692
  Array.isArray(i3) ? -1 !== i3.indexOf(t2) && (e2[s3] = true) : i3[t2] && !(s3 in e2) && (e2[s3] = i3[t2]);
@@ -52639,21 +52702,21 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52639
52702
  return this.demand(t2, e2, s2);
52640
52703
  }
52641
52704
  requiresArg(t2) {
52642
- return h("<array|string|object> [number]", [t2], arguments.length), "string" == typeof t2 && v(this, et, "f").narg[t2] || this[At](this.requiresArg.bind(this), "narg", t2, NaN), this;
52705
+ return h("<array|string|object> [number]", [t2], arguments.length), "string" == typeof t2 && v(this, et, "f").narg[t2] || this[St](this.requiresArg.bind(this), "narg", t2, NaN), this;
52643
52706
  }
52644
52707
  showCompletionScript(t2, e2) {
52645
- return h("[string] [string]", [t2, e2], arguments.length), t2 = t2 || this.$0, v(this, Q, "f").log(v(this, F, "f").generateCompletionScript(t2, e2 || v(this, U, "f") || "completion")), this;
52708
+ return h("[string] [string]", [t2, e2], arguments.length), t2 = t2 || this.$0, v(this, Q, "f").log(v(this, U, "f").generateCompletionScript(t2, e2 || v(this, F, "f") || "completion")), this;
52646
52709
  }
52647
52710
  showHelp(t2) {
52648
52711
  if (h("[string|function]", [t2], arguments.length), O(this, J, true, "f"), !v(this, pt, "f").hasCachedHelpMessage()) {
52649
52712
  if (!this.parsed) {
52650
- const e3 = this[Kt](v(this, ht, "f"), void 0, void 0, 0, true);
52713
+ const e3 = this[Jt](v(this, ht, "f"), void 0, void 0, 0, true);
52651
52714
  if (f(e3))
52652
52715
  return e3.then(() => {
52653
52716
  v(this, pt, "f").showHelp(t2);
52654
52717
  }), this;
52655
52718
  }
52656
- const e2 = v(this, W, "f").runDefaultBuilderOn(this);
52719
+ const e2 = v(this, z, "f").runDefaultBuilderOn(this);
52657
52720
  if (f(e2))
52658
52721
  return e2.then(() => {
52659
52722
  v(this, pt, "f").showHelp(t2);
@@ -52671,7 +52734,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52671
52734
  return h("[string|function]", [t2], arguments.length), v(this, pt, "f").showVersion(t2), this;
52672
52735
  }
52673
52736
  skipValidation(t2) {
52674
- return h("<array|string>", [t2], arguments.length), this[Et]("skipValidation", t2), this;
52737
+ return h("<array|string>", [t2], arguments.length), this[Pt]("skipValidation", t2), this;
52675
52738
  }
52676
52739
  strict(t2) {
52677
52740
  return h("[boolean]", [t2], arguments.length), O(this, ft, false !== t2, "f"), this;
@@ -52683,7 +52746,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52683
52746
  return h("[boolean]", [t2], arguments.length), O(this, ut, false !== t2, "f"), this;
52684
52747
  }
52685
52748
  string(t2) {
52686
- return h("<array|string>", [t2], arguments.length), this[Et]("string", t2), this[Zt](t2), this;
52749
+ return h("<array|string>", [t2], arguments.length), this[Pt]("string", t2), this[Qt](t2), this;
52687
52750
  }
52688
52751
  terminalWidth() {
52689
52752
  return h([], 0), v(this, ct, "f").process.stdColumns;
@@ -52702,22 +52765,25 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52702
52765
  }
52703
52766
  return v(this, pt, "f").usage(t2), this;
52704
52767
  }
52768
+ usageConfiguration(t2) {
52769
+ return h("<object>", [t2], arguments.length), O(this, gt, t2, "f"), this;
52770
+ }
52705
52771
  version(t2, e2, s2) {
52706
52772
  const i2 = "version";
52707
- if (h("[boolean|string] [string] [string]", [t2, e2, s2], arguments.length), v(this, gt, "f") && (this[vt](v(this, gt, "f")), v(this, pt, "f").version(void 0), O(this, gt, null, "f")), 0 === arguments.length)
52708
- s2 = this[Mt](), t2 = i2;
52773
+ if (h("[boolean|string] [string] [string]", [t2, e2, s2], arguments.length), v(this, mt, "f") && (this[Ot](v(this, mt, "f")), v(this, pt, "f").version(void 0), O(this, mt, null, "f")), 0 === arguments.length)
52774
+ s2 = this[xt](), t2 = i2;
52709
52775
  else if (1 === arguments.length) {
52710
52776
  if (false === t2)
52711
52777
  return this;
52712
52778
  s2 = t2, t2 = i2;
52713
52779
  } else
52714
52780
  2 === arguments.length && (s2 = e2, e2 = void 0);
52715
- return O(this, gt, "string" == typeof t2 ? t2 : i2, "f"), e2 = e2 || v(this, pt, "f").deferY18nLookup("Show version number"), v(this, pt, "f").version(s2 || void 0), this.boolean(v(this, gt, "f")), this.describe(v(this, gt, "f"), e2), this;
52781
+ return O(this, mt, "string" == typeof t2 ? t2 : i2, "f"), e2 = e2 || v(this, pt, "f").deferY18nLookup("Show version number"), v(this, pt, "f").version(s2 || void 0), this.boolean(v(this, mt, "f")), this.describe(v(this, mt, "f"), e2), this;
52716
52782
  }
52717
52783
  wrap(t2) {
52718
52784
  return h("<number|null|undefined>", [t2], arguments.length), v(this, pt, "f").wrap(t2), this;
52719
52785
  }
52720
- [(W = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), yt)](t2) {
52786
+ [(z = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), bt)](t2) {
52721
52787
  if (!t2._ || !t2["--"])
52722
52788
  return t2;
52723
52789
  t2._.push.apply(t2._, t2["--"]);
@@ -52727,14 +52793,14 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52727
52793
  }
52728
52794
  return t2;
52729
52795
  }
52730
- [bt]() {
52796
+ [vt]() {
52731
52797
  return { log: (...t2) => {
52732
- this[Vt]() || console.log(...t2), O(this, J, true, "f"), v(this, tt, "f").length && O(this, tt, v(this, tt, "f") + "\n", "f"), O(this, tt, v(this, tt, "f") + t2.join(" "), "f");
52798
+ this[Rt]() || console.log(...t2), O(this, J, true, "f"), v(this, tt, "f").length && O(this, tt, v(this, tt, "f") + "\n", "f"), O(this, tt, v(this, tt, "f") + t2.join(" "), "f");
52733
52799
  }, error: (...t2) => {
52734
- this[Vt]() || console.error(...t2), O(this, J, true, "f"), v(this, tt, "f").length && O(this, tt, v(this, tt, "f") + "\n", "f"), O(this, tt, v(this, tt, "f") + t2.join(" "), "f");
52800
+ this[Rt]() || console.error(...t2), O(this, J, true, "f"), v(this, tt, "f").length && O(this, tt, v(this, tt, "f") + "\n", "f"), O(this, tt, v(this, tt, "f") + t2.join(" "), "f");
52735
52801
  } };
52736
52802
  }
52737
- [vt](t2) {
52803
+ [Ot](t2) {
52738
52804
  p(v(this, et, "f")).forEach((e2) => {
52739
52805
  if ("configObjects" === e2)
52740
52806
  return;
@@ -52742,38 +52808,41 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52742
52808
  Array.isArray(s2) ? s2.includes(t2) && s2.splice(s2.indexOf(t2), 1) : "object" == typeof s2 && delete s2[t2];
52743
52809
  }), delete v(this, pt, "f").getDescriptions()[t2];
52744
52810
  }
52745
- [Ot](t2, e2, s2) {
52811
+ [wt](t2, e2, s2) {
52746
52812
  v(this, R, "f")[s2] || (v(this, ct, "f").process.emitWarning(t2, e2), v(this, R, "f")[s2] = true);
52747
52813
  }
52748
- [wt]() {
52749
- v(this, B, "f").push({ options: v(this, et, "f"), configObjects: v(this, et, "f").configObjects.slice(0), exitProcess: v(this, T, "f"), groups: v(this, Y, "f"), strict: v(this, ft, "f"), strictCommands: v(this, dt, "f"), strictOptions: v(this, ut, "f"), completionCommand: v(this, U, "f"), output: v(this, tt, "f"), exitError: v(this, V, "f"), hasOutput: v(this, J, "f"), parsed: this.parsed, parseFn: v(this, nt, "f"), parseContext: v(this, rt, "f") }), v(this, pt, "f").freeze(), v(this, mt, "f").freeze(), v(this, W, "f").freeze(), v(this, K, "f").freeze();
52750
- }
52751
52814
  [Ct]() {
52815
+ v(this, B, "f").push({ options: v(this, et, "f"), configObjects: v(this, et, "f").configObjects.slice(0), exitProcess: v(this, T, "f"), groups: v(this, K, "f"), strict: v(this, ft, "f"), strictCommands: v(this, dt, "f"), strictOptions: v(this, ut, "f"), completionCommand: v(this, F, "f"), output: v(this, tt, "f"), exitError: v(this, V, "f"), hasOutput: v(this, J, "f"), parsed: this.parsed, parseFn: v(this, nt, "f"), parseContext: v(this, rt, "f") }), v(this, pt, "f").freeze(), v(this, yt, "f").freeze(), v(this, z, "f").freeze(), v(this, Y, "f").freeze();
52816
+ }
52817
+ [jt]() {
52752
52818
  let t2, e2 = "";
52753
52819
  return t2 = /\b(node|iojs|electron)(\.exe)?$/.test(v(this, ct, "f").process.argv()[0]) ? v(this, ct, "f").process.argv().slice(1, 2) : v(this, ct, "f").process.argv().slice(0, 1), e2 = t2.map((t3) => {
52754
- const e3 = this[Tt](v(this, z, "f"), t3);
52820
+ const e3 = this[Yt](v(this, W, "f"), t3);
52755
52821
  return t3.match(/^(\/|([a-zA-Z]:)?\\)/) && e3.length < t3.length ? e3 : t3;
52756
52822
  }).join(" ").trim(), v(this, ct, "f").getEnv("_") && v(this, ct, "f").getProcessArgvBin() === v(this, ct, "f").getEnv("_") && (e2 = v(this, ct, "f").getEnv("_").replace(`${v(this, ct, "f").path.dirname(v(this, ct, "f").process.execPath())}/`, "")), e2;
52757
52823
  }
52758
- [jt]() {
52824
+ [Mt]() {
52759
52825
  return v(this, it, "f");
52760
52826
  }
52761
52827
  [_t]() {
52828
+ return v(this, gt, "f");
52829
+ }
52830
+ [kt]() {
52762
52831
  if (!v(this, G, "f"))
52763
52832
  return;
52764
52833
  const t2 = v(this, ct, "f").getEnv("LC_ALL") || v(this, ct, "f").getEnv("LC_MESSAGES") || v(this, ct, "f").getEnv("LANG") || v(this, ct, "f").getEnv("LANGUAGE") || "en_US";
52765
52834
  this.locale(t2.replace(/[.:].*/, ""));
52766
52835
  }
52767
- [Mt]() {
52768
- return this[xt]().version || "unknown";
52836
+ [xt]() {
52837
+ return this[At]().version || "unknown";
52769
52838
  }
52770
- [kt](t2) {
52839
+ [Et](t2) {
52771
52840
  const e2 = t2["--"] ? t2["--"] : t2._;
52772
52841
  for (let t3, s2 = 0; void 0 !== (t3 = e2[s2]); s2++)
52773
52842
  v(this, ct, "f").Parser.looksLikeNumber(t3) && Number.isSafeInteger(Math.floor(parseFloat(`${t3}`))) && (e2[s2] = Number(t3));
52774
52843
  return t2;
52775
52844
  }
52776
- [xt](t2) {
52845
+ [At](t2) {
52777
52846
  const e2 = t2 || "*";
52778
52847
  if (v(this, ot, "f")[e2])
52779
52848
  return v(this, ot, "f")[e2];
@@ -52787,22 +52856,22 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52787
52856
  }
52788
52857
  return v(this, ot, "f")[e2] = s2 || {}, v(this, ot, "f")[e2];
52789
52858
  }
52790
- [Et](t2, e2) {
52859
+ [Pt](t2, e2) {
52791
52860
  (e2 = [].concat(e2)).forEach((e3) => {
52792
- e3 = this[$t](e3), v(this, et, "f")[t2].push(e3);
52861
+ e3 = this[Dt](e3), v(this, et, "f")[t2].push(e3);
52793
52862
  });
52794
52863
  }
52795
- [At](t2, e2, s2, i2) {
52796
- this[St](t2, e2, s2, i2, (t3, e3, s3) => {
52864
+ [St](t2, e2, s2, i2) {
52865
+ this[It](t2, e2, s2, i2, (t3, e3, s3) => {
52797
52866
  v(this, et, "f")[t3][e3] = s3;
52798
52867
  });
52799
52868
  }
52800
- [Pt](t2, e2, s2, i2) {
52801
- this[St](t2, e2, s2, i2, (t3, e3, s3) => {
52869
+ [$t](t2, e2, s2, i2) {
52870
+ this[It](t2, e2, s2, i2, (t3, e3, s3) => {
52802
52871
  v(this, et, "f")[t3][e3] = (v(this, et, "f")[t3][e3] || []).concat(s3);
52803
52872
  });
52804
52873
  }
52805
- [St](t2, e2, s2, i2, n2) {
52874
+ [It](t2, e2, s2, i2, n2) {
52806
52875
  if (Array.isArray(s2))
52807
52876
  s2.forEach((e3) => {
52808
52877
  t2(e3, i2);
@@ -52811,15 +52880,15 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52811
52880
  for (const e3 of p(s2))
52812
52881
  t2(e3, s2[e3]);
52813
52882
  else
52814
- n2(e2, this[$t](s2), i2);
52883
+ n2(e2, this[Dt](s2), i2);
52815
52884
  }
52816
- [$t](t2) {
52885
+ [Dt](t2) {
52817
52886
  return "__proto__" === t2 ? "___proto___" : t2;
52818
52887
  }
52819
- [It](t2, e2) {
52820
- return this[At](this[It].bind(this), "key", t2, e2), this;
52888
+ [Nt](t2, e2) {
52889
+ return this[St](this[Nt].bind(this), "key", t2, e2), this;
52821
52890
  }
52822
- [Dt]() {
52891
+ [Ht]() {
52823
52892
  var t2, e2, s2, i2, n2, r2, o2, a2, h2, l2, c2, f2;
52824
52893
  const u2 = v(this, B, "f").pop();
52825
52894
  let p2;
@@ -52828,7 +52897,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52828
52897
  } }.value, configObjects: p2, exitProcess: { set value(t3) {
52829
52898
  O(e2, T, t3, "f");
52830
52899
  } }.value, groups: { set value(t3) {
52831
- O(s2, Y, t3, "f");
52900
+ O(s2, K, t3, "f");
52832
52901
  } }.value, output: { set value(t3) {
52833
52902
  O(i2, tt, t3, "f");
52834
52903
  } }.value, exitError: { set value(t3) {
@@ -52842,55 +52911,55 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52842
52911
  } }.value, strictOptions: { set value(t3) {
52843
52912
  O(h2, ut, t3, "f");
52844
52913
  } }.value, completionCommand: { set value(t3) {
52845
- O(l2, U, t3, "f");
52914
+ O(l2, F, t3, "f");
52846
52915
  } }.value, parseFn: { set value(t3) {
52847
52916
  O(c2, nt, t3, "f");
52848
52917
  } }.value, parseContext: { set value(t3) {
52849
52918
  O(f2, rt, t3, "f");
52850
- } }.value } = u2, v(this, et, "f").configObjects = p2, v(this, pt, "f").unfreeze(), v(this, mt, "f").unfreeze(), v(this, W, "f").unfreeze(), v(this, K, "f").unfreeze();
52919
+ } }.value } = u2, v(this, et, "f").configObjects = p2, v(this, pt, "f").unfreeze(), v(this, yt, "f").unfreeze(), v(this, z, "f").unfreeze(), v(this, Y, "f").unfreeze();
52851
52920
  }
52852
- [Nt](t2, e2) {
52921
+ [zt](t2, e2) {
52853
52922
  return j(e2, (e3) => (t2(e3), e3));
52854
52923
  }
52855
52924
  getInternalMethods() {
52856
- return { getCommandInstance: this[Ht].bind(this), getContext: this[Wt].bind(this), getHasOutput: this[zt].bind(this), getLoggerInstance: this[qt].bind(this), getParseContext: this[Ft].bind(this), getParserConfiguration: this[jt].bind(this), getUsageInstance: this[Ut].bind(this), getValidationInstance: this[Lt].bind(this), hasParseCallback: this[Vt].bind(this), isGlobalContext: this[Gt].bind(this), postProcess: this[Rt].bind(this), reset: this[Bt].bind(this), runValidation: this[Yt].bind(this), runYargsParserAndExecuteCommands: this[Kt].bind(this), setHasOutput: this[Jt].bind(this) };
52857
- }
52858
- [Ht]() {
52859
- return v(this, W, "f");
52925
+ return { getCommandInstance: this[Wt].bind(this), getContext: this[qt].bind(this), getHasOutput: this[Ut].bind(this), getLoggerInstance: this[Ft].bind(this), getParseContext: this[Lt].bind(this), getParserConfiguration: this[Mt].bind(this), getUsageConfiguration: this[_t].bind(this), getUsageInstance: this[Vt].bind(this), getValidationInstance: this[Gt].bind(this), hasParseCallback: this[Rt].bind(this), isGlobalContext: this[Tt].bind(this), postProcess: this[Bt].bind(this), reset: this[Kt].bind(this), runValidation: this[Zt].bind(this), runYargsParserAndExecuteCommands: this[Jt].bind(this), setHasOutput: this[Xt].bind(this) };
52860
52926
  }
52861
52927
  [Wt]() {
52928
+ return v(this, z, "f");
52929
+ }
52930
+ [qt]() {
52862
52931
  return v(this, q, "f");
52863
52932
  }
52864
- [zt]() {
52933
+ [Ut]() {
52865
52934
  return v(this, J, "f");
52866
52935
  }
52867
- [qt]() {
52936
+ [Ft]() {
52868
52937
  return v(this, Q, "f");
52869
52938
  }
52870
- [Ft]() {
52939
+ [Lt]() {
52871
52940
  return v(this, rt, "f") || {};
52872
52941
  }
52873
- [Ut]() {
52942
+ [Vt]() {
52874
52943
  return v(this, pt, "f");
52875
52944
  }
52876
- [Lt]() {
52877
- return v(this, mt, "f");
52945
+ [Gt]() {
52946
+ return v(this, yt, "f");
52878
52947
  }
52879
- [Vt]() {
52948
+ [Rt]() {
52880
52949
  return !!v(this, nt, "f");
52881
52950
  }
52882
- [Gt]() {
52951
+ [Tt]() {
52883
52952
  return v(this, X, "f");
52884
52953
  }
52885
- [Rt](t2, e2, s2, i2) {
52954
+ [Bt](t2, e2, s2, i2) {
52886
52955
  if (s2)
52887
52956
  return t2;
52888
52957
  if (f(t2))
52889
52958
  return t2;
52890
- e2 || (t2 = this[yt](t2));
52891
- return (this[jt]()["parse-positional-numbers"] || void 0 === this[jt]()["parse-positional-numbers"]) && (t2 = this[kt](t2)), i2 && (t2 = C(t2, this, v(this, K, "f").getMiddleware(), false)), t2;
52959
+ e2 || (t2 = this[bt](t2));
52960
+ return (this[Mt]()["parse-positional-numbers"] || void 0 === this[Mt]()["parse-positional-numbers"]) && (t2 = this[Et](t2)), i2 && (t2 = C(t2, this, v(this, Y, "f").getMiddleware(), false)), t2;
52892
52961
  }
52893
- [Bt](t2 = {}) {
52962
+ [Kt](t2 = {}) {
52894
52963
  O(this, et, v(this, et, "f") || {}, "f");
52895
52964
  const e2 = {};
52896
52965
  e2.local = v(this, et, "f").local || [], e2.configObjects = v(this, et, "f").configObjects || [];
@@ -52899,15 +52968,15 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
52899
52968
  s2[e3] = true, (t2[e3] || []).forEach((t3) => {
52900
52969
  s2[t3] = true;
52901
52970
  });
52902
- }), Object.assign(v(this, at, "f"), Object.keys(v(this, Y, "f")).reduce((t3, e3) => {
52903
- const i2 = v(this, Y, "f")[e3].filter((t4) => !(t4 in s2));
52971
+ }), Object.assign(v(this, at, "f"), Object.keys(v(this, K, "f")).reduce((t3, e3) => {
52972
+ const i2 = v(this, K, "f")[e3].filter((t4) => !(t4 in s2));
52904
52973
  return i2.length > 0 && (t3[e3] = i2), t3;
52905
- }, {})), O(this, Y, {}, "f");
52974
+ }, {})), O(this, K, {}, "f");
52906
52975
  return ["array", "boolean", "string", "skipValidation", "count", "normalize", "number", "hiddenOptions"].forEach((t3) => {
52907
52976
  e2[t3] = (v(this, et, "f")[t3] || []).filter((t4) => !s2[t4]);
52908
52977
  }), ["narg", "key", "alias", "default", "defaultDescription", "config", "choices", "demandedOptions", "demandedCommands", "deprecatedOptions"].forEach((t3) => {
52909
52978
  e2[t3] = g(v(this, et, "f")[t3], (t4) => !s2[t4]);
52910
- }), e2.envPrefix = v(this, et, "f").envPrefix, O(this, et, e2, "f"), O(this, pt, v(this, pt, "f") ? v(this, pt, "f").reset(s2) : P(this, v(this, ct, "f")), "f"), O(this, mt, v(this, mt, "f") ? v(this, mt, "f").reset(s2) : function(t3, e3, s3) {
52979
+ }), e2.envPrefix = v(this, et, "f").envPrefix, O(this, et, e2, "f"), O(this, pt, v(this, pt, "f") ? v(this, pt, "f").reset(s2) : P(this, v(this, ct, "f")), "f"), O(this, yt, v(this, yt, "f") ? v(this, yt, "f").reset(s2) : function(t3, e3, s3) {
52911
52980
  const i2 = s3.y18n.__, n2 = s3.y18n.__n, r2 = { nonOptionCount: function(s4) {
52912
52981
  const i3 = t3.getDemandedCommands(), r3 = s4._.length + (s4["--"] ? s4["--"].length : 0) - t3.getInternalMethods().getContext().commands.length;
52913
52982
  i3._ && (r3 < i3._.min || r3 > i3._.max) && (r3 < i3._.min ? void 0 !== i3._.minMsg ? e3.fail(i3._.minMsg ? i3._.minMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.min.toString()) : null) : e3.fail(n2("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", r3, r3.toString(), i3._.min.toString())) : r3 > i3._.max && (void 0 !== i3._.maxMsg ? e3.fail(i3._.maxMsg ? i3._.maxMsg.replace(/\$0/g, r3.toString()).replace(/\$1/, i3._.max.toString()) : null) : e3.fail(n2("Too many non-option arguments: got %s, maximum of %s", "Too many non-option arguments: got %s, maximum of %s", r3, r3.toString(), i3._.max.toString()))));
@@ -53030,71 +53099,71 @@ ${t5.join("\n")}` : "";
53030
53099
  const t4 = c2.pop();
53031
53100
  d(t4, void 0, s3), { implied: o2, conflicting: l2 } = t4;
53032
53101
  }, r2;
53033
- }(this, v(this, pt, "f"), v(this, ct, "f")), "f"), O(this, W, v(this, W, "f") ? v(this, W, "f").reset() : function(t3, e3, s3, i2) {
53034
- return new M(t3, e3, s3, i2);
53035
- }(v(this, pt, "f"), v(this, mt, "f"), v(this, K, "f"), v(this, ct, "f")), "f"), v(this, F, "f") || O(this, F, function(t3, e3, s3, i2) {
53102
+ }(this, v(this, pt, "f"), v(this, ct, "f")), "f"), O(this, z, v(this, z, "f") ? v(this, z, "f").reset() : function(t3, e3, s3, i2) {
53103
+ return new _(t3, e3, s3, i2);
53104
+ }(v(this, pt, "f"), v(this, yt, "f"), v(this, Y, "f"), v(this, ct, "f")), "f"), v(this, U, "f") || O(this, U, function(t3, e3, s3, i2) {
53036
53105
  return new D(t3, e3, s3, i2);
53037
- }(this, v(this, pt, "f"), v(this, W, "f"), v(this, ct, "f")), "f"), v(this, K, "f").reset(), O(this, U, null, "f"), O(this, tt, "", "f"), O(this, V, null, "f"), O(this, J, false, "f"), this.parsed = false, this;
53106
+ }(this, v(this, pt, "f"), v(this, z, "f"), v(this, ct, "f")), "f"), v(this, Y, "f").reset(), O(this, F, null, "f"), O(this, tt, "", "f"), O(this, V, null, "f"), O(this, J, false, "f"), this.parsed = false, this;
53038
53107
  }
53039
- [Tt](t2, e2) {
53108
+ [Yt](t2, e2) {
53040
53109
  return v(this, ct, "f").path.relative(t2, e2);
53041
53110
  }
53042
- [Kt](t2, s2, i2, n2 = 0, r2 = false) {
53111
+ [Jt](t2, s2, i2, n2 = 0, r2 = false) {
53043
53112
  let o2 = !!i2 || r2;
53044
- t2 = t2 || v(this, ht, "f"), v(this, et, "f").__ = v(this, ct, "f").y18n.__, v(this, et, "f").configuration = this[jt]();
53113
+ t2 = t2 || v(this, ht, "f"), v(this, et, "f").__ = v(this, ct, "f").y18n.__, v(this, et, "f").configuration = this[Mt]();
53045
53114
  const a2 = !!v(this, et, "f").configuration["populate--"], h2 = Object.assign({}, v(this, et, "f").configuration, { "populate--": true }), l2 = v(this, ct, "f").Parser.detailed(t2, Object.assign({}, v(this, et, "f"), { configuration: { "parse-positional-numbers": false, ...h2 } })), c2 = Object.assign(l2.argv, v(this, rt, "f"));
53046
53115
  let d2;
53047
53116
  const u2 = l2.aliases;
53048
53117
  let p2 = false, g2 = false;
53049
53118
  Object.keys(c2).forEach((t3) => {
53050
- t3 === v(this, Z, "f") && c2[t3] ? p2 = true : t3 === v(this, gt, "f") && c2[t3] && (g2 = true);
53119
+ t3 === v(this, Z, "f") && c2[t3] ? p2 = true : t3 === v(this, mt, "f") && c2[t3] && (g2 = true);
53051
53120
  }), c2.$0 = this.$0, this.parsed = l2, 0 === n2 && v(this, pt, "f").clearCachedHelpMessage();
53052
53121
  try {
53053
- if (this[_t](), s2)
53054
- return this[Rt](c2, a2, !!i2, false);
53122
+ if (this[kt](), s2)
53123
+ return this[Bt](c2, a2, !!i2, false);
53055
53124
  if (v(this, Z, "f")) {
53056
53125
  [v(this, Z, "f")].concat(u2[v(this, Z, "f")] || []).filter((t3) => t3.length > 1).includes("" + c2._[c2._.length - 1]) && (c2._.pop(), p2 = true);
53057
53126
  }
53058
53127
  O(this, X, false, "f");
53059
- const h3 = v(this, W, "f").getCommands(), m2 = v(this, F, "f").completionKey in c2, y2 = p2 || m2 || r2;
53128
+ const h3 = v(this, z, "f").getCommands(), m2 = v(this, U, "f").completionKey in c2, y2 = p2 || m2 || r2;
53060
53129
  if (c2._.length) {
53061
53130
  if (h3.length) {
53062
53131
  let t3;
53063
53132
  for (let e2, s3 = n2 || 0; void 0 !== c2._[s3]; s3++) {
53064
- if (e2 = String(c2._[s3]), h3.includes(e2) && e2 !== v(this, U, "f")) {
53065
- const t4 = v(this, W, "f").runCommand(e2, this, l2, s3 + 1, r2, p2 || g2 || r2);
53066
- return this[Rt](t4, a2, !!i2, false);
53133
+ if (e2 = String(c2._[s3]), h3.includes(e2) && e2 !== v(this, F, "f")) {
53134
+ const t4 = v(this, z, "f").runCommand(e2, this, l2, s3 + 1, r2, p2 || g2 || r2);
53135
+ return this[Bt](t4, a2, !!i2, false);
53067
53136
  }
53068
- if (!t3 && e2 !== v(this, U, "f")) {
53137
+ if (!t3 && e2 !== v(this, F, "f")) {
53069
53138
  t3 = e2;
53070
53139
  break;
53071
53140
  }
53072
53141
  }
53073
- !v(this, W, "f").hasDefaultCommand() && v(this, lt, "f") && t3 && !y2 && v(this, mt, "f").recommendCommands(t3, h3);
53142
+ !v(this, z, "f").hasDefaultCommand() && v(this, lt, "f") && t3 && !y2 && v(this, yt, "f").recommendCommands(t3, h3);
53074
53143
  }
53075
- v(this, U, "f") && c2._.includes(v(this, U, "f")) && !m2 && (v(this, T, "f") && E(true), this.showCompletionScript(), this.exit(0));
53144
+ v(this, F, "f") && c2._.includes(v(this, F, "f")) && !m2 && (v(this, T, "f") && E(true), this.showCompletionScript(), this.exit(0));
53076
53145
  }
53077
- if (v(this, W, "f").hasDefaultCommand() && !y2) {
53078
- const t3 = v(this, W, "f").runCommand(null, this, l2, 0, r2, p2 || g2 || r2);
53079
- return this[Rt](t3, a2, !!i2, false);
53146
+ if (v(this, z, "f").hasDefaultCommand() && !y2) {
53147
+ const t3 = v(this, z, "f").runCommand(null, this, l2, 0, r2, p2 || g2 || r2);
53148
+ return this[Bt](t3, a2, !!i2, false);
53080
53149
  }
53081
53150
  if (m2) {
53082
53151
  v(this, T, "f") && E(true);
53083
- const s3 = (t2 = [].concat(t2)).slice(t2.indexOf(`--${v(this, F, "f").completionKey}`) + 1);
53084
- return v(this, F, "f").getCompletion(s3, (t3, s4) => {
53152
+ const s3 = (t2 = [].concat(t2)).slice(t2.indexOf(`--${v(this, U, "f").completionKey}`) + 1);
53153
+ return v(this, U, "f").getCompletion(s3, (t3, s4) => {
53085
53154
  if (t3)
53086
53155
  throw new e(t3.message);
53087
53156
  (s4 || []).forEach((t4) => {
53088
53157
  v(this, Q, "f").log(t4);
53089
53158
  }), this.exit(0);
53090
- }), this[Rt](c2, !a2, !!i2, false);
53159
+ }), this[Bt](c2, !a2, !!i2, false);
53091
53160
  }
53092
53161
  if (v(this, J, "f") || (p2 ? (v(this, T, "f") && E(true), o2 = true, this.showHelp("log"), this.exit(0)) : g2 && (v(this, T, "f") && E(true), o2 = true, v(this, pt, "f").showVersion("log"), this.exit(0))), !o2 && v(this, et, "f").skipValidation.length > 0 && (o2 = Object.keys(c2).some((t3) => v(this, et, "f").skipValidation.indexOf(t3) >= 0 && true === c2[t3])), !o2) {
53093
53162
  if (l2.error)
53094
53163
  throw new e(l2.error.message);
53095
53164
  if (!m2) {
53096
- const t3 = this[Yt](u2, {}, l2.error);
53097
- i2 || (d2 = C(c2, this, v(this, K, "f").getMiddleware(), true)), d2 = this[Nt](t3, null != d2 ? d2 : c2), f(d2) && !i2 && (d2 = d2.then(() => C(c2, this, v(this, K, "f").getMiddleware(), false)));
53165
+ const t3 = this[Zt](u2, {}, l2.error);
53166
+ i2 || (d2 = C(c2, this, v(this, Y, "f").getMiddleware(), true)), d2 = this[zt](t3, null != d2 ? d2 : c2), f(d2) && !i2 && (d2 = d2.then(() => C(c2, this, v(this, Y, "f").getMiddleware(), false)));
53098
53167
  }
53099
53168
  }
53100
53169
  } catch (t3) {
@@ -53102,22 +53171,22 @@ ${t5.join("\n")}` : "";
53102
53171
  throw t3;
53103
53172
  v(this, pt, "f").fail(t3.message, t3);
53104
53173
  }
53105
- return this[Rt](null != d2 ? d2 : c2, a2, !!i2, true);
53174
+ return this[Bt](null != d2 ? d2 : c2, a2, !!i2, true);
53106
53175
  }
53107
- [Yt](t2, s2, i2, n2) {
53176
+ [Zt](t2, s2, i2, n2) {
53108
53177
  const r2 = { ...this.getDemandedOptions() };
53109
53178
  return (o2) => {
53110
53179
  if (i2)
53111
53180
  throw new e(i2.message);
53112
- v(this, mt, "f").nonOptionCount(o2), v(this, mt, "f").requiredArguments(o2, r2);
53181
+ v(this, yt, "f").nonOptionCount(o2), v(this, yt, "f").requiredArguments(o2, r2);
53113
53182
  let a2 = false;
53114
- v(this, dt, "f") && (a2 = v(this, mt, "f").unknownCommands(o2)), v(this, ft, "f") && !a2 ? v(this, mt, "f").unknownArguments(o2, t2, s2, !!n2) : v(this, ut, "f") && v(this, mt, "f").unknownArguments(o2, t2, {}, false, false), v(this, mt, "f").limitedChoices(o2), v(this, mt, "f").implications(o2), v(this, mt, "f").conflicting(o2);
53183
+ v(this, dt, "f") && (a2 = v(this, yt, "f").unknownCommands(o2)), v(this, ft, "f") && !a2 ? v(this, yt, "f").unknownArguments(o2, t2, s2, !!n2) : v(this, ut, "f") && v(this, yt, "f").unknownArguments(o2, t2, {}, false, false), v(this, yt, "f").limitedChoices(o2), v(this, yt, "f").implications(o2), v(this, yt, "f").conflicting(o2);
53115
53184
  };
53116
53185
  }
53117
- [Jt]() {
53186
+ [Xt]() {
53118
53187
  O(this, J, true, "f");
53119
53188
  }
53120
- [Zt](t2) {
53189
+ [Qt](t2) {
53121
53190
  if ("string" == typeof t2)
53122
53191
  v(this, et, "f").key[t2] = true;
53123
53192
  else
@@ -53125,29 +53194,29 @@ ${t5.join("\n")}` : "";
53125
53194
  v(this, et, "f").key[e2] = true;
53126
53195
  }
53127
53196
  };
53128
- var Qt;
53129
- var te;
53130
- var { readFileSync: ee } = require("fs");
53131
- var { inspect: se } = require("util");
53132
- var { resolve: ie } = require("path");
53133
- var ne = require_build5();
53134
- var re = require_build6();
53135
- var oe;
53136
- var ae = { assert: { notStrictEqual: t.notStrictEqual, strictEqual: t.strictEqual }, cliui: require_build7(), findUp: require_sync7(), getEnv: (t2) => process.env[t2], getCallerFile: require_get_caller_file(), getProcessArgvBin: y, inspect: se, mainFilename: null !== (te = null === (Qt = null === require || void 0 === require ? void 0 : require.main) || void 0 === Qt ? void 0 : Qt.filename) && void 0 !== te ? te : process.cwd(), Parser: re, path: require("path"), process: { argv: () => process.argv, cwd: process.cwd, emitWarning: (t2, e2) => process.emitWarning(t2, e2), execPath: () => process.execPath, exit: (t2) => {
53197
+ var ee;
53198
+ var se;
53199
+ var { readFileSync: ie } = require("fs");
53200
+ var { inspect: ne } = require("util");
53201
+ var { resolve: re } = require("path");
53202
+ var oe = require_build5();
53203
+ var ae = require_build6();
53204
+ var he;
53205
+ var le = { assert: { notStrictEqual: t.notStrictEqual, strictEqual: t.strictEqual }, cliui: require_build7(), findUp: require_sync7(), getEnv: (t2) => process.env[t2], getCallerFile: require_get_caller_file(), getProcessArgvBin: y, inspect: ne, mainFilename: null !== (se = null === (ee = null === require || void 0 === require ? void 0 : require.main) || void 0 === ee ? void 0 : ee.filename) && void 0 !== se ? se : process.cwd(), Parser: ae, path: require("path"), process: { argv: () => process.argv, cwd: process.cwd, emitWarning: (t2, e2) => process.emitWarning(t2, e2), execPath: () => process.execPath, exit: (t2) => {
53137
53206
  process.exit(t2);
53138
- }, nextTick: process.nextTick, stdColumns: void 0 !== process.stdout.columns ? process.stdout.columns : null }, readFileSync: ee, require, requireDirectory: require_require_directory(), stringWidth: require_string_width(), y18n: ne({ directory: ie(__dirname, "../locales"), updateFiles: false }) };
53139
- var he = (null === (oe = null === process || void 0 === process ? void 0 : process.env) || void 0 === oe ? void 0 : oe.YARGS_MIN_NODE_VERSION) ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
53207
+ }, nextTick: process.nextTick, stdColumns: void 0 !== process.stdout.columns ? process.stdout.columns : null }, readFileSync: ie, require, requireDirectory: require_require_directory(), stringWidth: require_string_width(), y18n: oe({ directory: re(__dirname, "../locales"), updateFiles: false }) };
53208
+ var ce = (null === (he = null === process || void 0 === process ? void 0 : process.env) || void 0 === he ? void 0 : he.YARGS_MIN_NODE_VERSION) ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
53140
53209
  if (process && process.version) {
53141
- if (Number(process.version.match(/v([^.]+)/)[1]) < he)
53142
- throw Error(`yargs supports a minimum Node.js version of ${he}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);
53210
+ if (Number(process.version.match(/v([^.]+)/)[1]) < ce)
53211
+ throw Error(`yargs supports a minimum Node.js version of ${ce}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);
53143
53212
  }
53144
- var le = require_build6();
53145
- var ce;
53146
- var fe = { applyExtends: n, cjsPlatformShim: ae, Yargs: (ce = ae, (t2 = [], e2 = ce.process.cwd(), s2) => {
53147
- const i2 = new Xt(t2, e2, s2, ce);
53213
+ var fe = require_build6();
53214
+ var de;
53215
+ var ue = { applyExtends: n, cjsPlatformShim: le, Yargs: (de = le, (t2 = [], e2 = de.process.cwd(), s2) => {
53216
+ const i2 = new te(t2, e2, s2, de);
53148
53217
  return Object.defineProperty(i2, "argv", { get: () => i2.parse(), enumerable: true }), i2.help(), i2.version(), i2;
53149
- }), argsert: h, isPromise: f, objFilter: g, parseCommand: o, Parser: le, processArgv: b, YError: e };
53150
- module2.exports = fe;
53218
+ }), argsert: h, isPromise: f, objFilter: g, parseCommand: o, Parser: fe, processArgv: b, YError: e };
53219
+ module2.exports = ue;
53151
53220
  }
53152
53221
  });
53153
53222
 
@@ -54041,6 +54110,32 @@ var upgrades = [
54041
54110
  verbose: options.verbose
54042
54111
  });
54043
54112
  }
54113
+ },
54114
+ {
54115
+ name: "update-carbon-icons-react-import-to-carbon-react",
54116
+ description: "Rewrites imports from `@carbon/icons-react` to `@carbon/react/icons`",
54117
+ migrate: async (options) => {
54118
+ const transform = import_path2.default.join(
54119
+ TRANSFORM_DIR,
54120
+ "update-carbon-icons-react-import-to-carbon-react.js"
54121
+ );
54122
+ const paths = Array.isArray(options.paths) && options.paths.length > 0 ? options.paths : await (0, import_fast_glob2.default)(["**/*.js", "**/*.jsx"], {
54123
+ cwd: options.workspaceDir,
54124
+ ignore: [
54125
+ "**/es/**",
54126
+ "**/lib/**",
54127
+ "**/umd/**",
54128
+ "**/node_modules/**",
54129
+ "**/storybook-static/**"
54130
+ ]
54131
+ });
54132
+ await run2({
54133
+ dry: !options.write,
54134
+ transform,
54135
+ paths,
54136
+ verbose: options.verbose
54137
+ });
54138
+ }
54044
54139
  }
54045
54140
  ]
54046
54141
  },
@@ -54069,7 +54164,7 @@ var upgrades = [
54069
54164
  var package_default = {
54070
54165
  name: "@carbon/upgrade",
54071
54166
  description: "A tool for upgrading Carbon versions",
54072
- version: "11.9.1",
54167
+ version: "11.10.0",
54073
54168
  license: "Apache-2.0",
54074
54169
  bin: {
54075
54170
  "carbon-upgrade": "./bin/carbon-upgrade.js"
@@ -54115,7 +54210,7 @@ var package_default = {
54115
54210
  "jest-diff": "^28.1.0",
54116
54211
  "lodash.clonedeep": "^4.5.0",
54117
54212
  "lodash.merge": "^4.6.2",
54118
- memfs: "^3.4.0",
54213
+ memfs: "^4.0.0",
54119
54214
  nanoid: "^3.1.30",
54120
54215
  "npm-which": "^3.0.1",
54121
54216
  rimraf: "^5.0.0",