@carbon/upgrade 11.43.0-rc.0 → 11.43.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.
Files changed (3) hide show
  1. package/README.md +15 -1
  2. package/cli.js +206 -132
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -166,7 +166,7 @@ npx @carbon/upgrade migrate enable-v12-overflowmenu --write
166
166
  2. API migration only (for apps already using FeatureFlags at the root):
167
167
 
168
168
  ```bash
169
- npx @carbon/upgrade migrate enable-v12-overflowmenu --wrap=false --write
169
+ npx @carbon/upgrade migrate enable-v12-overflowmenu --wrapWithFeatureFlag=false --write
170
170
  ```
171
171
 
172
172
  This codemod:
@@ -273,6 +273,20 @@ This codemod:
273
273
  </StructuredListWrapper>
274
274
  ```
275
275
 
276
+ ### Known limitations
277
+
278
+ - The tile default icons, tile radio icons, and OverflowMenu codemods generate a
279
+ `FeatureFlags` import from `@carbon/feature-flags`. The JSX component is
280
+ exported by `@carbon/react`; correct the generated import before using the
281
+ result.
282
+ - The tile default icons codemod targets `Tile`, while the v12 default icon
283
+ behavior affects `ClickableTile`. Review its target coverage before using it.
284
+ - The OverflowMenu codemod updates item components and item props, but it does
285
+ not update parent props such as `aria-label` to `label`. Review each migrated
286
+ `OverflowMenu` against the v12 API.
287
+ - The structured list codemod changes React markup only. It does not update the
288
+ application's Sass feature flag configuration.
289
+
276
290
  ## Other V12 Codemods
277
291
 
278
292
  ### Light to layer
package/cli.js CHANGED
@@ -41,11 +41,41 @@ node_path = __toESM(node_path, 1);
41
41
  let node_crypto = require("node:crypto");
42
42
  let jscodeshift_src_Runner_js = require("jscodeshift/src/Runner.js");
43
43
  jscodeshift_src_Runner_js = __toESM(jscodeshift_src_Runner_js);
44
+ //#region ../../node_modules/chalk/source/utilities.js
45
+ function stringReplaceAll(string, substring, postfix) {
46
+ let index = string.indexOf(substring);
47
+ if (index === -1) return string;
48
+ const substringLength = substring.length;
49
+ let endIndex = 0;
50
+ let returnValue = "";
51
+ do {
52
+ returnValue += string.slice(endIndex, index) + substring + postfix;
53
+ endIndex = index + substringLength;
54
+ index = string.indexOf(substring, endIndex);
55
+ } while (index !== -1);
56
+ returnValue += string.slice(endIndex);
57
+ return returnValue;
58
+ }
59
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
60
+ let endIndex = 0;
61
+ let returnValue = "";
62
+ do {
63
+ const isGotCR = string[index - 1] === "\r";
64
+ returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
65
+ endIndex = index + 1;
66
+ index = string.indexOf("\n", endIndex);
67
+ } while (index !== -1);
68
+ returnValue += string.slice(endIndex);
69
+ return returnValue;
70
+ }
71
+ //#endregion
44
72
  //#region ../../node_modules/chalk/source/vendor/ansi-styles/index.js
45
73
  const ANSI_BACKGROUND_OFFSET = 10;
46
- const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
47
- const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
48
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
74
+ const ANSI_UNDERLINE_OFFSET = 20;
75
+ const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
76
+ const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
77
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
78
+ const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
49
79
  const styles$1 = {
50
80
  modifier: {
51
81
  reset: [0, 0],
@@ -53,6 +83,10 @@ const styles$1 = {
53
83
  dim: [2, 22],
54
84
  italic: [3, 23],
55
85
  underline: [4, 24],
86
+ underlineDouble: ["4:2", 24],
87
+ underlineCurly: ["4:3", 24],
88
+ underlineDotted: ["4:4", 24],
89
+ underlineDashed: ["4:5", 24],
56
90
  overline: [53, 55],
57
91
  inverse: [7, 27],
58
92
  hidden: [8, 28],
@@ -97,22 +131,43 @@ const styles$1 = {
97
131
  bgMagentaBright: [105, 49],
98
132
  bgCyanBright: [106, 49],
99
133
  bgWhiteBright: [107, 49]
134
+ },
135
+ underlineColor: {
136
+ underlineBlack: ["58;5;0", 59],
137
+ underlineRed: ["58;5;1", 59],
138
+ underlineGreen: ["58;5;2", 59],
139
+ underlineYellow: ["58;5;3", 59],
140
+ underlineBlue: ["58;5;4", 59],
141
+ underlineMagenta: ["58;5;5", 59],
142
+ underlineCyan: ["58;5;6", 59],
143
+ underlineWhite: ["58;5;7", 59],
144
+ underlineBlackBright: ["58;5;8", 59],
145
+ underlineGray: ["58;5;8", 59],
146
+ underlineGrey: ["58;5;8", 59],
147
+ underlineRedBright: ["58;5;9", 59],
148
+ underlineGreenBright: ["58;5;10", 59],
149
+ underlineYellowBright: ["58;5;11", 59],
150
+ underlineBlueBright: ["58;5;12", 59],
151
+ underlineMagentaBright: ["58;5;13", 59],
152
+ underlineCyanBright: ["58;5;14", 59],
153
+ underlineWhiteBright: ["58;5;15", 59]
100
154
  }
101
155
  };
102
156
  Object.keys(styles$1.modifier);
103
157
  const foregroundColorNames = Object.keys(styles$1.color);
104
158
  const backgroundColorNames = Object.keys(styles$1.bgColor);
159
+ Object.keys(styles$1.underlineColor);
105
160
  [...foregroundColorNames, ...backgroundColorNames];
106
161
  function assembleStyles() {
107
162
  const codes = /* @__PURE__ */ new Map();
108
163
  for (const [groupName, group] of Object.entries(styles$1)) {
109
164
  for (const [styleName, style] of Object.entries(group)) {
110
165
  styles$1[styleName] = {
111
- open: `\u001B[${style[0]}m`,
112
- close: `\u001B[${style[1]}m`
166
+ open: `\u{1B}[${style[0]}m`,
167
+ close: `\u{1B}[${style[1]}m`
113
168
  };
114
169
  group[styleName] = styles$1[styleName];
115
- codes.set(style[0], style[1]);
170
+ codes.set(Number.parseInt(style[0], 10), style[1]);
116
171
  }
117
172
  Object.defineProperty(styles$1, groupName, {
118
173
  value: group,
@@ -125,12 +180,16 @@ function assembleStyles() {
125
180
  });
126
181
  styles$1.color.close = "\x1B[39m";
127
182
  styles$1.bgColor.close = "\x1B[49m";
183
+ styles$1.underlineColor.close = "\x1B[59m";
128
184
  styles$1.color.ansi = wrapAnsi16();
129
185
  styles$1.color.ansi256 = wrapAnsi256();
130
186
  styles$1.color.ansi16m = wrapAnsi16m();
131
187
  styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
132
188
  styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
133
189
  styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
190
+ styles$1.underlineColor.ansi = wrapUnderlineAnsi;
191
+ styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
192
+ styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
134
193
  Object.defineProperties(styles$1, {
135
194
  rgbToAnsi256: {
136
195
  value(red, green, blue) {
@@ -145,7 +204,7 @@ function assembleStyles() {
145
204
  },
146
205
  hexToRgb: {
147
206
  value(hex) {
148
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
207
+ const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
149
208
  if (!matches) return [
150
209
  0,
151
210
  0,
@@ -216,12 +275,15 @@ const { env } = node_process.default;
216
275
  let flagForceColor;
217
276
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
218
277
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
278
+ function hasNumericForceColor() {
279
+ return /^\d+$/.test(env.FORCE_COLOR);
280
+ }
219
281
  function envForceColor() {
220
- if ("FORCE_COLOR" in env) {
221
- if (env.FORCE_COLOR === "true") return 1;
222
- if (env.FORCE_COLOR === "false") return 0;
223
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
224
- }
282
+ if (!("FORCE_COLOR" in env)) return;
283
+ if (env.FORCE_COLOR === "false") return 0;
284
+ if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
285
+ if (!hasNumericForceColor()) return;
286
+ return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
225
287
  }
226
288
  function translateLevel(level) {
227
289
  if (level === 0) return false;
@@ -241,6 +303,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
241
303
  if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
242
304
  if (hasFlag("color=256")) return 2;
243
305
  }
306
+ if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
244
307
  if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
245
308
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
246
309
  const min = forceColor || 0;
@@ -265,19 +328,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
265
328
  ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
266
329
  return min;
267
330
  }
268
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
331
+ if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
269
332
  if (env.COLORTERM === "truecolor") return 3;
270
333
  if (env.TERM === "xterm-kitty") return 3;
271
334
  if (env.TERM === "xterm-ghostty") return 3;
272
335
  if (env.TERM === "wezterm") return 3;
273
336
  if ("TERM_PROGRAM" in env) {
274
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
337
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
275
338
  switch (env.TERM_PROGRAM) {
276
339
  case "iTerm.app": return version >= 3 ? 3 : 2;
277
340
  case "Apple_Terminal": return 2;
278
341
  }
279
342
  }
280
- if (/-256(color)?$/i.test(env.TERM)) return 2;
343
+ if (/-256(?:color)?$/i.test(env.TERM)) return 2;
281
344
  if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
282
345
  if ("COLORTERM" in env) return 1;
283
346
  return min;
@@ -288,55 +351,34 @@ function createSupportsColor(stream, options = {}) {
288
351
  ...options
289
352
  }));
290
353
  }
291
- const supportsColor = {
354
+ //#endregion
355
+ //#region ../../node_modules/chalk/source/index.js
356
+ const { stdout: stdoutColor, stderr: stderrColor } = {
292
357
  stdout: createSupportsColor({ isTTY: node_tty.default.isatty(1) }),
293
358
  stderr: createSupportsColor({ isTTY: node_tty.default.isatty(2) })
294
359
  };
295
- //#endregion
296
- //#region ../../node_modules/chalk/source/utilities.js
297
- function stringReplaceAll(string, substring, replacer) {
298
- let index = string.indexOf(substring);
299
- if (index === -1) return string;
300
- const substringLength = substring.length;
301
- let endIndex = 0;
302
- let returnValue = "";
303
- do {
304
- returnValue += string.slice(endIndex, index) + substring + replacer;
305
- endIndex = index + substringLength;
306
- index = string.indexOf(substring, endIndex);
307
- } while (index !== -1);
308
- returnValue += string.slice(endIndex);
309
- return returnValue;
310
- }
311
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
312
- let endIndex = 0;
313
- let returnValue = "";
314
- do {
315
- const gotCR = string[index - 1] === "\r";
316
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
317
- endIndex = index + 1;
318
- index = string.indexOf("\n", endIndex);
319
- } while (index !== -1);
320
- returnValue += string.slice(endIndex);
321
- return returnValue;
322
- }
323
- //#endregion
324
- //#region ../../node_modules/chalk/source/index.js
325
- const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
326
360
  const GENERATOR = Symbol("GENERATOR");
327
361
  const STYLER = Symbol("STYLER");
328
362
  const IS_EMPTY = Symbol("IS_EMPTY");
329
- const levelMapping = [
330
- "ansi",
331
- "ansi",
332
- "ansi256",
333
- "ansi16m"
334
- ];
363
+ const LEVEL = Symbol("LEVEL");
335
364
  const styles = Object.create(null);
365
+ const assertValidLevel = (level) => {
366
+ if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
367
+ };
368
+ const levelDescriptor = {
369
+ enumerable: true,
370
+ get() {
371
+ return this[LEVEL];
372
+ },
373
+ set(level) {
374
+ assertValidLevel(level);
375
+ this[LEVEL] = level;
376
+ }
377
+ };
336
378
  const applyOptions = (object, options = {}) => {
337
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
379
+ if (options.level !== void 0) assertValidLevel(options.level);
338
380
  const colorLevel = stdoutColor ? stdoutColor.level : 0;
339
- object.level = options.level === void 0 ? colorLevel : options.level;
381
+ object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
340
382
  };
341
383
  const chalkFactory = (options) => {
342
384
  const chalk = (...strings) => strings.join(" ");
@@ -358,35 +400,58 @@ styles.visible = { get() {
358
400
  Object.defineProperty(this, "visible", { value: builder });
359
401
  return builder;
360
402
  } };
361
- const getModelAnsi = (model, level, type, ...arguments_) => {
403
+ const createModelConverters = (model, type) => {
404
+ const style = ansiStyles[type];
362
405
  if (model === "rgb") {
363
- if (level === "ansi16m") return ansiStyles[type].ansi16m(...arguments_);
364
- if (level === "ansi256") return ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));
365
- return ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));
406
+ const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
407
+ const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
408
+ return [
409
+ ansi,
410
+ ansi,
411
+ ansi256,
412
+ style.ansi16m
413
+ ];
366
414
  }
367
- if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
368
- return ansiStyles[type][model](...arguments_);
415
+ if (model === "hex") {
416
+ const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
417
+ const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
418
+ return [
419
+ ansi,
420
+ ansi,
421
+ ansi256,
422
+ (hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
423
+ ];
424
+ }
425
+ const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
426
+ return [
427
+ ansi,
428
+ ansi,
429
+ style.ansi256,
430
+ style.ansi256
431
+ ];
369
432
  };
370
433
  for (const model of [
371
434
  "rgb",
372
435
  "hex",
373
436
  "ansi256"
374
437
  ]) {
375
- styles[model] = { get() {
376
- const { level } = this;
377
- return function(...arguments_) {
378
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
379
- return createBuilder(this, styler, this[IS_EMPTY]);
380
- };
381
- } };
382
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
383
- styles[bgModel] = { get() {
384
- const { level } = this;
385
- return function(...arguments_) {
386
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
387
- return createBuilder(this, styler, this[IS_EMPTY]);
388
- };
389
- } };
438
+ const capitalizedModel = model[0].toUpperCase() + model.slice(1);
439
+ for (const [styleName, type] of [
440
+ [model, "color"],
441
+ ["bg" + capitalizedModel, "bgColor"],
442
+ ["underline" + capitalizedModel, "underlineColor"]
443
+ ]) {
444
+ const { close } = ansiStyles[type];
445
+ const converters = createModelConverters(model, type);
446
+ styles[styleName] = { get() {
447
+ const styleFunction = function(first, second, third) {
448
+ const open = converters[this.level](first, second, third);
449
+ return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
450
+ };
451
+ Object.defineProperty(this, styleName, { value: styleFunction });
452
+ return styleFunction;
453
+ } };
454
+ }
390
455
  }
391
456
  const proto = Object.defineProperties(() => {}, {
392
457
  ...styles,
@@ -419,15 +484,19 @@ const createStyler = (open, close, parent) => {
419
484
  };
420
485
  };
421
486
  const createBuilder = (self, _styler, _isEmpty) => {
422
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
487
+ const builder = (...arguments_) => {
488
+ if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
489
+ if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
490
+ return applyStyle(builder, arguments_.join(" "));
491
+ };
423
492
  Object.setPrototypeOf(builder, proto);
424
- builder[GENERATOR] = self;
493
+ builder[GENERATOR] = self[GENERATOR] ?? self;
425
494
  builder[STYLER] = _styler;
426
495
  builder[IS_EMPTY] = _isEmpty;
427
496
  return builder;
428
497
  };
429
498
  const applyStyle = (self, string) => {
430
- if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
499
+ if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
431
500
  let styler = self[STYLER];
432
501
  if (styler === void 0) return string;
433
502
  const { openAll, closeAll } = styler;
@@ -439,7 +508,10 @@ const applyStyle = (self, string) => {
439
508
  if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
440
509
  return openAll + string + closeAll;
441
510
  };
442
- Object.defineProperties(createChalk.prototype, styles);
511
+ Object.defineProperties(createChalk.prototype, {
512
+ ...styles,
513
+ level: levelDescriptor
514
+ });
443
515
  const chalk = createChalk();
444
516
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
445
517
  //#endregion
@@ -1187,7 +1259,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1187
1259
  }
1188
1260
  }));
1189
1261
  //#endregion
1190
- //#region ../../node_modules/cross-spawn-async/node_modules/which/which.js
1262
+ //#region ../../node_modules/which/which.js
1191
1263
  var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1192
1264
  module.exports = which;
1193
1265
  which.sync = whichSync;
@@ -1739,7 +1811,7 @@ var require_balanced_match = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1739
1811
  }
1740
1812
  }));
1741
1813
  //#endregion
1742
- //#region ../../node_modules/minimatch/node_modules/brace-expansion/index.js
1814
+ //#region ../../node_modules/brace-expansion/index.js
1743
1815
  var require_brace_expansion = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1744
1816
  var concatMap = require_concat_map();
1745
1817
  var balanced = require_balanced_match();
@@ -2482,7 +2554,7 @@ var require_array_uniq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2482
2554
  else module.exports = uniqNoSet;
2483
2555
  }));
2484
2556
  //#endregion
2485
- //#region ../../node_modules/is-git-clean/node_modules/array-union/index.js
2557
+ //#region ../../node_modules/multimatch/node_modules/array-union/index.js
2486
2558
  var require_array_union = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2487
2559
  var arrayUniq = require_array_uniq();
2488
2560
  module.exports = function() {
@@ -2490,7 +2562,7 @@ var require_array_union = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2490
2562
  };
2491
2563
  }));
2492
2564
  //#endregion
2493
- //#region ../../node_modules/is-git-clean/node_modules/array-differ/index.js
2565
+ //#region ../../node_modules/array-differ/index.js
2494
2566
  var require_array_differ = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2495
2567
  module.exports = function(arr) {
2496
2568
  var rest = [].concat.apply([], [].slice.call(arguments, 1));
@@ -2508,7 +2580,7 @@ var require_arrify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2508
2580
  };
2509
2581
  }));
2510
2582
  //#endregion
2511
- //#region ../../node_modules/is-git-clean/node_modules/multimatch/index.js
2583
+ //#region ../../node_modules/multimatch/index.js
2512
2584
  var require_multimatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2513
2585
  var minimatch = require_minimatch();
2514
2586
  var arrayUnion = require_array_union();
@@ -3250,7 +3322,7 @@ var require_is_fullwidth_code_point = /* @__PURE__ */ __commonJSMin(((exports, m
3250
3322
  module.exports.default = isFullwidthCodePoint;
3251
3323
  }));
3252
3324
  //#endregion
3253
- //#region ../../node_modules/string-width/node_modules/emoji-regex/index.js
3325
+ //#region ../../node_modules/emoji-regex/index.js
3254
3326
  var require_emoji_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3255
3327
  module.exports = function() {
3256
3328
  return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
@@ -11561,7 +11633,7 @@ var require_safer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11561
11633
  module.exports = safer;
11562
11634
  }));
11563
11635
  //#endregion
11564
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/lib/bom-handling.js
11636
+ //#region ../../node_modules/iconv-lite/lib/bom-handling.js
11565
11637
  var require_bom_handling = /* @__PURE__ */ __commonJSMin(((exports) => {
11566
11638
  var BOMChar = "";
11567
11639
  exports.PrependBOM = PrependBOMWrapper;
@@ -11600,7 +11672,7 @@ var require_bom_handling = /* @__PURE__ */ __commonJSMin(((exports) => {
11600
11672
  };
11601
11673
  }));
11602
11674
  //#endregion
11603
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/lib/helpers/merge-exports.js
11675
+ //#region ../../node_modules/iconv-lite/lib/helpers/merge-exports.js
11604
11676
  var require_merge_exports = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11605
11677
  var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
11606
11678
  function mergeModules(target, module$3) {
@@ -11609,7 +11681,7 @@ var require_merge_exports = /* @__PURE__ */ __commonJSMin(((exports, module) =>
11609
11681
  module.exports = mergeModules;
11610
11682
  }));
11611
11683
  //#endregion
11612
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/internal.js
11684
+ //#region ../../node_modules/iconv-lite/encodings/internal.js
11613
11685
  var require_internal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11614
11686
  var Buffer = require_safer().Buffer;
11615
11687
  module.exports = {
@@ -11771,7 +11843,7 @@ var require_internal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11771
11843
  };
11772
11844
  }));
11773
11845
  //#endregion
11774
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/utf32.js
11846
+ //#region ../../node_modules/iconv-lite/encodings/utf32.js
11775
11847
  var require_utf32 = /* @__PURE__ */ __commonJSMin(((exports) => {
11776
11848
  var Buffer = require_safer().Buffer;
11777
11849
  exports._utf32 = Utf32Codec;
@@ -11964,7 +12036,7 @@ var require_utf32 = /* @__PURE__ */ __commonJSMin(((exports) => {
11964
12036
  }
11965
12037
  }));
11966
12038
  //#endregion
11967
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/utf16.js
12039
+ //#region ../../node_modules/iconv-lite/encodings/utf16.js
11968
12040
  var require_utf16 = /* @__PURE__ */ __commonJSMin(((exports) => {
11969
12041
  var Buffer = require_safer().Buffer;
11970
12042
  exports.utf16be = Utf16BECodec;
@@ -12086,7 +12158,7 @@ var require_utf16 = /* @__PURE__ */ __commonJSMin(((exports) => {
12086
12158
  }
12087
12159
  }));
12088
12160
  //#endregion
12089
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/utf7.js
12161
+ //#region ../../node_modules/iconv-lite/encodings/utf7.js
12090
12162
  var require_utf7 = /* @__PURE__ */ __commonJSMin(((exports) => {
12091
12163
  var Buffer = require_safer().Buffer;
12092
12164
  exports.utf7 = Utf7Codec;
@@ -12275,7 +12347,7 @@ var require_utf7 = /* @__PURE__ */ __commonJSMin(((exports) => {
12275
12347
  };
12276
12348
  }));
12277
12349
  //#endregion
12278
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/sbcs-codec.js
12350
+ //#region ../../node_modules/iconv-lite/encodings/sbcs-codec.js
12279
12351
  var require_sbcs_codec = /* @__PURE__ */ __commonJSMin(((exports) => {
12280
12352
  var Buffer = require_safer().Buffer;
12281
12353
  exports._sbcs = SBCSCodec;
@@ -12322,7 +12394,7 @@ var require_sbcs_codec = /* @__PURE__ */ __commonJSMin(((exports) => {
12322
12394
  SBCSDecoder.prototype.end = function() {};
12323
12395
  }));
12324
12396
  //#endregion
12325
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/sbcs-data.js
12397
+ //#region ../../node_modules/iconv-lite/encodings/sbcs-data.js
12326
12398
  var require_sbcs_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12327
12399
  module.exports = {
12328
12400
  10029: "maccenteuro",
@@ -12470,7 +12542,7 @@ var require_sbcs_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12470
12542
  };
12471
12543
  }));
12472
12544
  //#endregion
12473
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/sbcs-data-generated.js
12545
+ //#region ../../node_modules/iconv-lite/encodings/sbcs-data-generated.js
12474
12546
  var require_sbcs_data_generated = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12475
12547
  module.exports = {
12476
12548
  "437": "cp437",
@@ -12922,7 +12994,7 @@ var require_sbcs_data_generated = /* @__PURE__ */ __commonJSMin(((exports, modul
12922
12994
  };
12923
12995
  }));
12924
12996
  //#endregion
12925
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/dbcs-codec.js
12997
+ //#region ../../node_modules/iconv-lite/encodings/dbcs-codec.js
12926
12998
  var require_dbcs_codec = /* @__PURE__ */ __commonJSMin(((exports) => {
12927
12999
  var Buffer = require_safer().Buffer;
12928
13000
  exports._dbcs = DBCSCodec;
@@ -13281,7 +13353,7 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJSMin(((exports) => {
13281
13353
  }
13282
13354
  }));
13283
13355
  //#endregion
13284
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/tables/shiftjis.json
13356
+ //#region ../../node_modules/iconv-lite/encodings/tables/shiftjis.json
13285
13357
  var require_shiftjis = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13286
13358
  module.exports = [
13287
13359
  [
@@ -13570,7 +13642,7 @@ var require_shiftjis = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13570
13642
  ];
13571
13643
  }));
13572
13644
  //#endregion
13573
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/tables/eucjp.json
13645
+ //#region ../../node_modules/iconv-lite/encodings/tables/eucjp.json
13574
13646
  var require_eucjp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13575
13647
  module.exports = [
13576
13648
  [
@@ -13992,7 +14064,7 @@ var require_eucjp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13992
14064
  ];
13993
14065
  }));
13994
14066
  //#endregion
13995
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/tables/cp936.json
14067
+ //#region ../../node_modules/iconv-lite/encodings/tables/cp936.json
13996
14068
  var require_cp936 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13997
14069
  module.exports = [
13998
14070
  [
@@ -16573,7 +16645,7 @@ var require_cp936 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16573
16645
  ];
16574
16646
  }));
16575
16647
  //#endregion
16576
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/tables/gbk-added.json
16648
+ //#region ../../node_modules/iconv-lite/encodings/tables/gbk-added.json
16577
16649
  var require_gbk_added = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16578
16650
  module.exports = [
16579
16651
  [
@@ -16800,7 +16872,7 @@ var require_gbk_added = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16800
16872
  ];
16801
16873
  }));
16802
16874
  //#endregion
16803
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
16875
+ //#region ../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
16804
16876
  var require_gb18030_ranges = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16805
16877
  module.exports = {
16806
16878
  "uChars": [
@@ -17224,7 +17296,7 @@ var require_gb18030_ranges = /* @__PURE__ */ __commonJSMin(((exports, module) =>
17224
17296
  };
17225
17297
  }));
17226
17298
  //#endregion
17227
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/tables/cp949.json
17299
+ //#region ../../node_modules/iconv-lite/encodings/tables/cp949.json
17228
17300
  var require_cp949 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17229
17301
  module.exports = [
17230
17302
  [
@@ -19441,7 +19513,7 @@ var require_cp949 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19441
19513
  ];
19442
19514
  }));
19443
19515
  //#endregion
19444
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/tables/cp950.json
19516
+ //#region ../../node_modules/iconv-lite/encodings/tables/cp950.json
19445
19517
  var require_cp950 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19446
19518
  module.exports = [
19447
19519
  [
@@ -19665,7 +19737,7 @@ var require_cp950 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19665
19737
  ];
19666
19738
  }));
19667
19739
  //#endregion
19668
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/tables/big5-added.json
19740
+ //#region ../../node_modules/iconv-lite/encodings/tables/big5-added.json
19669
19741
  var require_big5_added = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19670
19742
  module.exports = [
19671
19743
  ["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
@@ -19831,7 +19903,7 @@ var require_big5_added = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19831
19903
  ];
19832
19904
  }));
19833
19905
  //#endregion
19834
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/dbcs-data.js
19906
+ //#region ../../node_modules/iconv-lite/encodings/dbcs-data.js
19835
19907
  var require_dbcs_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19836
19908
  module.exports = {
19837
19909
  shiftjis: {
@@ -20011,7 +20083,7 @@ var require_dbcs_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20011
20083
  };
20012
20084
  }));
20013
20085
  //#endregion
20014
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/encodings/index.js
20086
+ //#region ../../node_modules/iconv-lite/encodings/index.js
20015
20087
  var require_encodings = /* @__PURE__ */ __commonJSMin(((exports) => {
20016
20088
  var mergeModules = require_merge_exports();
20017
20089
  var modules = [
@@ -20031,7 +20103,7 @@ var require_encodings = /* @__PURE__ */ __commonJSMin(((exports) => {
20031
20103
  }
20032
20104
  }));
20033
20105
  //#endregion
20034
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/lib/streams.js
20106
+ //#region ../../node_modules/iconv-lite/lib/streams.js
20035
20107
  var require_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20036
20108
  var Buffer = require_safer().Buffer;
20037
20109
  module.exports = function(streamModule) {
@@ -20117,7 +20189,7 @@ var require_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20117
20189
  };
20118
20190
  }));
20119
20191
  //#endregion
20120
- //#region ../../node_modules/@inquirer/external-editor/node_modules/iconv-lite/lib/index.js
20192
+ //#region ../../node_modules/iconv-lite/lib/index.js
20121
20193
  var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20122
20194
  var Buffer = require_safer().Buffer;
20123
20195
  var bomHandling = require_bom_handling();
@@ -30941,12 +31013,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
30941
31013
  };
30942
31014
  const replaceTilde = (comp, options) => {
30943
31015
  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
31016
+ const z = options.includePrerelease ? "-0" : "";
30944
31017
  return comp.replace(r, (_, M, m, p, pr) => {
30945
31018
  debug("tilde", comp, _, M, m, p, pr);
30946
31019
  let ret;
30947
31020
  if (isX(M)) ret = "";
30948
- else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
30949
- else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
31021
+ else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
31022
+ else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
30950
31023
  else if (pr) {
30951
31024
  debug("replaceTilde pr", pr);
30952
31025
  ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
@@ -33721,7 +33794,7 @@ var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33721
33794
  };
33722
33795
  }));
33723
33796
  //#endregion
33724
- //#region ../../node_modules/fast-glob/node_modules/glob-parent/index.js
33797
+ //#region ../../node_modules/glob-parent/index.js
33725
33798
  var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33726
33799
  var isGlob = require_is_glob();
33727
33800
  var pathPosixDirname = require("path").posix.dirname;
@@ -41040,12 +41113,13 @@ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) =>
41040
41113
  "TRAVIS",
41041
41114
  "CIRCLECI",
41042
41115
  "APPVEYOR",
41043
- "GITLAB_CI"
41116
+ "GITLAB_CI",
41117
+ "GITHUB_ACTIONS",
41118
+ "BUILDKITE"
41044
41119
  ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
41045
41120
  return min;
41046
41121
  }
41047
41122
  if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
41048
- if ("GITHUB_ACTIONS" in env) return 1;
41049
41123
  if (env.COLORTERM === "truecolor") return 3;
41050
41124
  if ("TERM_PROGRAM" in env) {
41051
41125
  const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
@@ -45004,7 +45078,7 @@ const upgrades = [
45004
45078
  //#endregion
45005
45079
  //#region package.json
45006
45080
  var name = "@carbon/upgrade";
45007
- var version = "11.43.0-rc.0";
45081
+ var version = "11.43.0";
45008
45082
  //#endregion
45009
45083
  //#region ../../node_modules/y18n/build/index.cjs
45010
45084
  var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -45060,7 +45134,7 @@ var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45060
45134
  cb
45061
45135
  });
45062
45136
  } else cb();
45063
- var values = [str];
45137
+ const values = [str];
45064
45138
  if (~str.indexOf("%d")) values.push(quantity);
45065
45139
  return shim.format.apply(shim.format, values.concat(args));
45066
45140
  }
@@ -45077,7 +45151,7 @@ var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45077
45151
  _taggedLiteral(parts, ...args) {
45078
45152
  let str = "";
45079
45153
  parts.forEach(function(part, i) {
45080
- var arg = args[i + 1];
45154
+ const arg = args[i + 1];
45081
45155
  str += part;
45082
45156
  if (typeof arg !== "undefined") str += "%s";
45083
45157
  });
@@ -45088,13 +45162,13 @@ var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45088
45162
  if (this.writeQueue.length === 1) this._processWriteQueue();
45089
45163
  }
45090
45164
  _processWriteQueue() {
45091
- var _this = this;
45092
- var work = this.writeQueue[0];
45093
- var directory = work.directory;
45094
- var locale = work.locale;
45095
- var cb = work.cb;
45096
- var languageFile = this._resolveLocaleFile(directory, locale);
45097
- var serializedLocale = JSON.stringify(this.cache[locale], null, 2);
45165
+ const _this = this;
45166
+ const work = this.writeQueue[0];
45167
+ const directory = work.directory;
45168
+ const locale = work.locale;
45169
+ const cb = work.cb;
45170
+ const languageFile = this._resolveLocaleFile(directory, locale);
45171
+ const serializedLocale = JSON.stringify(this.cache[locale], null, 2);
45098
45172
  shim.fs.writeFile(languageFile, serializedLocale, "utf-8", function(err) {
45099
45173
  _this.writeQueue.shift();
45100
45174
  if (_this.writeQueue.length > 0) _this._processWriteQueue();
@@ -45102,10 +45176,10 @@ var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45102
45176
  });
45103
45177
  }
45104
45178
  _readLocaleFile() {
45105
- var localeLookup = {};
45106
- var languageFile = this._resolveLocaleFile(this.directory, this.locale);
45179
+ let localeLookup = {};
45180
+ const languageFile = this._resolveLocaleFile(this.directory, this.locale);
45107
45181
  try {
45108
- localeLookup = JSON.parse(shim.fs.readFileSync(languageFile, "utf-8"));
45182
+ if (shim.fs.readFileSync) localeLookup = JSON.parse(shim.fs.readFileSync(languageFile, "utf-8"));
45109
45183
  } catch (err) {
45110
45184
  if (err instanceof SyntaxError) err.message = "syntax error in " + languageFile;
45111
45185
  if (err.code === "ENOENT") localeLookup = {};
@@ -45114,9 +45188,9 @@ var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45114
45188
  this.cache[this.locale] = localeLookup;
45115
45189
  }
45116
45190
  _resolveLocaleFile(directory, locale) {
45117
- var file = shim.resolve(directory, "./", locale + ".json");
45191
+ let file = shim.resolve(directory, "./", locale + ".json");
45118
45192
  if (this.fallbackToLanguage && !this._fileExistsSync(file) && ~locale.lastIndexOf("_")) {
45119
- var languageFile = shim.resolve(directory, "./", locale.split("_")[0] + ".json");
45193
+ const languageFile = shim.resolve(directory, "./", locale.split("_")[0] + ".json");
45120
45194
  if (this._fileExistsSync(languageFile)) file = languageFile;
45121
45195
  }
45122
45196
  return file;
@@ -45125,7 +45199,7 @@ var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45125
45199
  return shim.exists(file);
45126
45200
  }
45127
45201
  };
45128
- function y18n(opts, _shim) {
45202
+ function y18n$1(opts, _shim) {
45129
45203
  shim = _shim;
45130
45204
  const y18n = new Y18N(opts);
45131
45205
  return {
@@ -45152,10 +45226,10 @@ var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45152
45226
  }
45153
45227
  }
45154
45228
  };
45155
- const y18n$1 = (opts) => {
45156
- return y18n(opts, nodePlatformShim);
45229
+ const y18n = (opts) => {
45230
+ return y18n$1(opts, nodePlatformShim);
45157
45231
  };
45158
- module.exports = y18n$1;
45232
+ module.exports = y18n;
45159
45233
  }));
45160
45234
  //#endregion
45161
45235
  //#region ../../node_modules/yargs-parser/build/index.cjs
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/upgrade",
3
3
  "description": "A tool for upgrading Carbon versions",
4
- "version": "11.43.0-rc.0",
4
+ "version": "11.43.0",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
7
7
  "carbon-upgrade": "./bin/carbon-upgrade.js"
@@ -39,7 +39,7 @@
39
39
  "postinstall": "ibmtelemetry --config=telemetry.yml"
40
40
  },
41
41
  "devDependencies": {
42
- "chalk": "^5.4.1",
42
+ "chalk": "^6.0.0",
43
43
  "execa": "^9.6.0",
44
44
  "fast-glob": "^3.3.3",
45
45
  "fs-extra": "^11.0.0",
@@ -49,7 +49,7 @@
49
49
  "lodash.clonedeep": "^4.5.0",
50
50
  "lodash.merge": "^4.6.2",
51
51
  "memfs": "^4.0.0",
52
- "nanoid": "^5.0.0",
52
+ "nanoid": "^6.0.0",
53
53
  "npm-which": "^3.0.1",
54
54
  "rimraf": "^6.0.1",
55
55
  "semver": "^7.7.2",
@@ -60,5 +60,5 @@
60
60
  "@ibm/telemetry-js": "^1.5.0",
61
61
  "jscodeshift": "^17.0.0"
62
62
  },
63
- "gitHead": "82f04fbfdb385323883f4f8e3ce97a14865a744a"
63
+ "gitHead": "188d23202ec1092322dee92cf0df9d9958224ae4"
64
64
  }