appwrite-cli 17.3.0 → 17.4.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/dist/cli.cjs CHANGED
@@ -552,8 +552,8 @@ var require_help = __commonJS({
552
552
  const leadingStr = str.slice(0, indent);
553
553
  const columnText = str.slice(indent);
554
554
  const indentString = " ".repeat(indent);
555
- const regex = new RegExp(".{1," + (columnWidth - 1) + "}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)", "g");
556
- const lines = columnText.match(regex) || [];
555
+ const regex2 = new RegExp(".{1," + (columnWidth - 1) + "}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)", "g");
556
+ const lines = columnText.match(regex2) || [];
557
557
  return leadingStr + lines.map((line, i) => {
558
558
  if (line.slice(-1) === "\n") {
559
559
  line = line.slice(0, line.length - 1);
@@ -1430,9 +1430,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
1430
1430
  if (typeof fn2 === "function") {
1431
1431
  option.default(defaultValue).argParser(fn2);
1432
1432
  } else if (fn2 instanceof RegExp) {
1433
- const regex = fn2;
1433
+ const regex2 = fn2;
1434
1434
  fn2 = (val, def) => {
1435
- const m2 = regex.exec(val);
1435
+ const m2 = regex2.exec(val);
1436
1436
  return m2 ? m2[0] : def;
1437
1437
  };
1438
1438
  option.default(defaultValue).argParser(fn2);
@@ -4079,14 +4079,14 @@ var require_templates = __commonJS({
4079
4079
  }
4080
4080
  return results;
4081
4081
  }
4082
- function buildStyle(chalk14, styles) {
4082
+ function buildStyle(chalk15, styles) {
4083
4083
  const enabled = {};
4084
4084
  for (const layer of styles) {
4085
4085
  for (const style of layer.styles) {
4086
4086
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
4087
4087
  }
4088
4088
  }
4089
- let current = chalk14;
4089
+ let current = chalk15;
4090
4090
  for (const [styleName, styles2] of Object.entries(enabled)) {
4091
4091
  if (!Array.isArray(styles2)) {
4092
4092
  continue;
@@ -4098,7 +4098,7 @@ var require_templates = __commonJS({
4098
4098
  }
4099
4099
  return current;
4100
4100
  }
4101
- module2.exports = (chalk14, temporary) => {
4101
+ module2.exports = (chalk15, temporary) => {
4102
4102
  const styles = [];
4103
4103
  const chunks = [];
4104
4104
  let chunk = [];
@@ -4108,13 +4108,13 @@ var require_templates = __commonJS({
4108
4108
  } else if (style) {
4109
4109
  const string4 = chunk.join("");
4110
4110
  chunk = [];
4111
- chunks.push(styles.length === 0 ? string4 : buildStyle(chalk14, styles)(string4));
4111
+ chunks.push(styles.length === 0 ? string4 : buildStyle(chalk15, styles)(string4));
4112
4112
  styles.push({ inverse, styles: parseStyle(style) });
4113
4113
  } else if (close) {
4114
4114
  if (styles.length === 0) {
4115
4115
  throw new Error("Found extraneous } in Chalk template literal");
4116
4116
  }
4117
- chunks.push(buildStyle(chalk14, styles)(chunk.join("")));
4117
+ chunks.push(buildStyle(chalk15, styles)(chunk.join("")));
4118
4118
  chunk = [];
4119
4119
  styles.pop();
4120
4120
  } else {
@@ -4162,16 +4162,16 @@ var require_source = __commonJS({
4162
4162
  }
4163
4163
  };
4164
4164
  var chalkFactory = (options) => {
4165
- const chalk15 = {};
4166
- applyOptions(chalk15, options);
4167
- chalk15.template = (...arguments_) => chalkTag(chalk15.template, ...arguments_);
4168
- Object.setPrototypeOf(chalk15, Chalk.prototype);
4169
- Object.setPrototypeOf(chalk15.template, chalk15);
4170
- chalk15.template.constructor = () => {
4165
+ const chalk16 = {};
4166
+ applyOptions(chalk16, options);
4167
+ chalk16.template = (...arguments_) => chalkTag(chalk16.template, ...arguments_);
4168
+ Object.setPrototypeOf(chalk16, Chalk.prototype);
4169
+ Object.setPrototypeOf(chalk16.template, chalk16);
4170
+ chalk16.template.constructor = () => {
4171
4171
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
4172
4172
  };
4173
- chalk15.template.Instance = ChalkClass;
4174
- return chalk15.template;
4173
+ chalk16.template.Instance = ChalkClass;
4174
+ return chalk16.template;
4175
4175
  };
4176
4176
  function Chalk(options) {
4177
4177
  return chalkFactory(options);
@@ -4282,7 +4282,7 @@ var require_source = __commonJS({
4282
4282
  return openAll + string4 + closeAll;
4283
4283
  };
4284
4284
  var template;
4285
- var chalkTag = (chalk15, ...strings) => {
4285
+ var chalkTag = (chalk16, ...strings) => {
4286
4286
  const [firstString] = strings;
4287
4287
  if (!isArray(firstString) || !isArray(firstString.raw)) {
4288
4288
  return strings.join(" ");
@@ -4298,14 +4298,14 @@ var require_source = __commonJS({
4298
4298
  if (template === void 0) {
4299
4299
  template = require_templates();
4300
4300
  }
4301
- return template(chalk15, parts.join(""));
4301
+ return template(chalk16, parts.join(""));
4302
4302
  };
4303
4303
  Object.defineProperties(Chalk.prototype, styles);
4304
- var chalk14 = Chalk();
4305
- chalk14.supportsColor = stdoutColor;
4306
- chalk14.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4307
- chalk14.stderr.supportsColor = stderrColor;
4308
- module2.exports = chalk14;
4304
+ var chalk15 = Chalk();
4305
+ chalk15.supportsColor = stdoutColor;
4306
+ chalk15.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4307
+ chalk15.stderr.supportsColor = stderrColor;
4308
+ module2.exports = chalk15;
4309
4309
  }
4310
4310
  });
4311
4311
 
@@ -4473,12 +4473,12 @@ var require_figures = __commonJS({
4473
4473
  var require_separator = __commonJS({
4474
4474
  "node_modules/inquirer/lib/objects/separator.js"(exports2, module2) {
4475
4475
  "use strict";
4476
- var chalk14 = require_source();
4476
+ var chalk15 = require_source();
4477
4477
  var figures = require_figures();
4478
4478
  var Separator = class {
4479
4479
  constructor(line) {
4480
4480
  this.type = "separator";
4481
- this.line = chalk14.dim(line || new Array(15).join(figures.line));
4481
+ this.line = chalk15.dim(line || new Array(15).join(figures.line));
4482
4482
  }
4483
4483
  /**
4484
4484
  * Stringify separator
@@ -18620,8 +18620,8 @@ var require_ansi_regex = __commonJS({
18620
18620
  var require_strip_ansi = __commonJS({
18621
18621
  "node_modules/strip-ansi/index.js"(exports2, module2) {
18622
18622
  "use strict";
18623
- var ansiRegex = require_ansi_regex();
18624
- module2.exports = (string4) => typeof string4 === "string" ? string4.replace(ansiRegex(), "") : string4;
18623
+ var ansiRegex2 = require_ansi_regex();
18624
+ module2.exports = (string4) => typeof string4 === "string" ? string4.replace(ansiRegex2(), "") : string4;
18625
18625
  }
18626
18626
  });
18627
18627
 
@@ -18658,9 +18658,9 @@ var require_is_fullwidth_code_point = __commonJS({
18658
18658
  }
18659
18659
  });
18660
18660
 
18661
- // node_modules/emoji-regex/index.js
18661
+ // node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js
18662
18662
  var require_emoji_regex = __commonJS({
18663
- "node_modules/emoji-regex/index.js"(exports2, module2) {
18663
+ "node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
18664
18664
  "use strict";
18665
18665
  module2.exports = function() {
18666
18666
  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;
@@ -18668,22 +18668,22 @@ var require_emoji_regex = __commonJS({
18668
18668
  }
18669
18669
  });
18670
18670
 
18671
- // node_modules/string-width/index.js
18671
+ // node_modules/wrap-ansi/node_modules/string-width/index.js
18672
18672
  var require_string_width = __commonJS({
18673
- "node_modules/string-width/index.js"(exports2, module2) {
18673
+ "node_modules/wrap-ansi/node_modules/string-width/index.js"(exports2, module2) {
18674
18674
  "use strict";
18675
- var stripAnsi = require_strip_ansi();
18675
+ var stripAnsi2 = require_strip_ansi();
18676
18676
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
18677
- var emojiRegex = require_emoji_regex();
18678
- var stringWidth = (string4) => {
18677
+ var emojiRegex2 = require_emoji_regex();
18678
+ var stringWidth2 = (string4) => {
18679
18679
  if (typeof string4 !== "string" || string4.length === 0) {
18680
18680
  return 0;
18681
18681
  }
18682
- string4 = stripAnsi(string4);
18682
+ string4 = stripAnsi2(string4);
18683
18683
  if (string4.length === 0) {
18684
18684
  return 0;
18685
18685
  }
18686
- string4 = string4.replace(emojiRegex(), " ");
18686
+ string4 = string4.replace(emojiRegex2(), " ");
18687
18687
  let width = 0;
18688
18688
  for (let i = 0; i < string4.length; i++) {
18689
18689
  const code = string4.codePointAt(i);
@@ -18700,8 +18700,8 @@ var require_string_width = __commonJS({
18700
18700
  }
18701
18701
  return width;
18702
18702
  };
18703
- module2.exports = stringWidth;
18704
- module2.exports.default = stringWidth;
18703
+ module2.exports = stringWidth2;
18704
+ module2.exports.default = stringWidth2;
18705
18705
  }
18706
18706
  });
18707
18707
 
@@ -18709,8 +18709,8 @@ var require_string_width = __commonJS({
18709
18709
  var require_wrap_ansi = __commonJS({
18710
18710
  "node_modules/wrap-ansi/index.js"(exports2, module2) {
18711
18711
  "use strict";
18712
- var stringWidth = require_string_width();
18713
- var stripAnsi = require_strip_ansi();
18712
+ var stringWidth2 = require_string_width();
18713
+ var stripAnsi2 = require_strip_ansi();
18714
18714
  var ansiStyles = require_ansi_styles();
18715
18715
  var ESCAPES = /* @__PURE__ */ new Set([
18716
18716
  "\x1B",
@@ -18718,13 +18718,13 @@ var require_wrap_ansi = __commonJS({
18718
18718
  ]);
18719
18719
  var END_CODE = 39;
18720
18720
  var wrapAnsi = (code) => `${ESCAPES.values().next().value}[${code}m`;
18721
- var wordLengths = (string4) => string4.split(" ").map((character) => stringWidth(character));
18721
+ var wordLengths = (string4) => string4.split(" ").map((character) => stringWidth2(character));
18722
18722
  var wrapWord = (rows, word, columns) => {
18723
18723
  const characters = [...word];
18724
18724
  let isInsideEscape = false;
18725
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
18725
+ let visible = stringWidth2(stripAnsi2(rows[rows.length - 1]));
18726
18726
  for (const [index, character] of characters.entries()) {
18727
- const characterLength = stringWidth(character);
18727
+ const characterLength = stringWidth2(character);
18728
18728
  if (visible + characterLength <= columns) {
18729
18729
  rows[rows.length - 1] += character;
18730
18730
  } else {
@@ -18754,7 +18754,7 @@ var require_wrap_ansi = __commonJS({
18754
18754
  const words = str.split(" ");
18755
18755
  let last = words.length;
18756
18756
  while (last > 0) {
18757
- if (stringWidth(words[last - 1]) > 0) {
18757
+ if (stringWidth2(words[last - 1]) > 0) {
18758
18758
  break;
18759
18759
  }
18760
18760
  last--;
@@ -18777,7 +18777,7 @@ var require_wrap_ansi = __commonJS({
18777
18777
  if (options.trim !== false) {
18778
18778
  rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
18779
18779
  }
18780
- let rowLength = stringWidth(rows[rows.length - 1]);
18780
+ let rowLength = stringWidth2(rows[rows.length - 1]);
18781
18781
  if (index !== 0) {
18782
18782
  if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
18783
18783
  rows.push("");
@@ -18838,6 +18838,53 @@ var require_wrap_ansi = __commonJS({
18838
18838
  }
18839
18839
  });
18840
18840
 
18841
+ // node_modules/inquirer/node_modules/string-width/node_modules/emoji-regex/index.js
18842
+ var require_emoji_regex2 = __commonJS({
18843
+ "node_modules/inquirer/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
18844
+ "use strict";
18845
+ module2.exports = function() {
18846
+ 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;
18847
+ };
18848
+ }
18849
+ });
18850
+
18851
+ // node_modules/inquirer/node_modules/string-width/index.js
18852
+ var require_string_width2 = __commonJS({
18853
+ "node_modules/inquirer/node_modules/string-width/index.js"(exports2, module2) {
18854
+ "use strict";
18855
+ var stripAnsi2 = require_strip_ansi();
18856
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
18857
+ var emojiRegex2 = require_emoji_regex2();
18858
+ var stringWidth2 = (string4) => {
18859
+ if (typeof string4 !== "string" || string4.length === 0) {
18860
+ return 0;
18861
+ }
18862
+ string4 = stripAnsi2(string4);
18863
+ if (string4.length === 0) {
18864
+ return 0;
18865
+ }
18866
+ string4 = string4.replace(emojiRegex2(), " ");
18867
+ let width = 0;
18868
+ for (let i = 0; i < string4.length; i++) {
18869
+ const code = string4.codePointAt(i);
18870
+ if (code <= 31 || code >= 127 && code <= 159) {
18871
+ continue;
18872
+ }
18873
+ if (code >= 768 && code <= 879) {
18874
+ continue;
18875
+ }
18876
+ if (code > 65535) {
18877
+ i++;
18878
+ }
18879
+ width += isFullwidthCodePoint(code) ? 2 : 1;
18880
+ }
18881
+ return width;
18882
+ };
18883
+ module2.exports = stringWidth2;
18884
+ module2.exports.default = stringWidth2;
18885
+ }
18886
+ });
18887
+
18841
18888
  // node_modules/cli-spinners/spinners.json
18842
18889
  var require_spinners = __commonJS({
18843
18890
  "node_modules/cli-spinners/spinners.json"(exports2, module2) {
@@ -20501,19 +20548,19 @@ var require_is_unicode_supported = __commonJS({
20501
20548
  var require_log_symbols = __commonJS({
20502
20549
  "node_modules/log-symbols/index.js"(exports2, module2) {
20503
20550
  "use strict";
20504
- var chalk14 = require_source();
20551
+ var chalk15 = require_source();
20505
20552
  var isUnicodeSupported = require_is_unicode_supported();
20506
20553
  var main = {
20507
- info: chalk14.blue("\u2139"),
20508
- success: chalk14.green("\u2714"),
20509
- warning: chalk14.yellow("\u26A0"),
20510
- error: chalk14.red("\u2716")
20554
+ info: chalk15.blue("\u2139"),
20555
+ success: chalk15.green("\u2714"),
20556
+ warning: chalk15.yellow("\u26A0"),
20557
+ error: chalk15.red("\u2716")
20511
20558
  };
20512
20559
  var fallback = {
20513
- info: chalk14.blue("i"),
20514
- success: chalk14.green("\u221A"),
20515
- warning: chalk14.yellow("\u203C"),
20516
- error: chalk14.red("\xD7")
20560
+ info: chalk15.blue("i"),
20561
+ success: chalk15.green("\u221A"),
20562
+ warning: chalk15.yellow("\u203C"),
20563
+ error: chalk15.red("\xD7")
20517
20564
  };
20518
20565
  module2.exports = isUnicodeSupported() ? main : fallback;
20519
20566
  }
@@ -23981,11 +24028,11 @@ var require_ora = __commonJS({
23981
24028
  "node_modules/ora/index.js"(exports2, module2) {
23982
24029
  "use strict";
23983
24030
  var readline = require("readline");
23984
- var chalk14 = require_source();
24031
+ var chalk15 = require_source();
23985
24032
  var cliCursor = require_cli_cursor();
23986
24033
  var cliSpinners = require_cli_spinners();
23987
24034
  var logSymbols = require_log_symbols();
23988
- var stripAnsi = require_strip_ansi();
24035
+ var stripAnsi2 = require_strip_ansi();
23989
24036
  var wcwidth = require_wcwidth();
23990
24037
  var isInteractive = require_is_interactive();
23991
24038
  var isUnicodeSupported = require_is_unicode_supported();
@@ -24152,7 +24199,7 @@ var require_ora = __commonJS({
24152
24199
  const columns = this.stream.columns || 80;
24153
24200
  const fullPrefixText = this.getFullPrefixText(this.prefixText, "-");
24154
24201
  this.lineCount = 0;
24155
- for (const line of stripAnsi(fullPrefixText + "--" + this[TEXT]).split("\n")) {
24202
+ for (const line of stripAnsi2(fullPrefixText + "--" + this[TEXT]).split("\n")) {
24156
24203
  this.lineCount += Math.max(1, Math.ceil(wcwidth(line) / columns));
24157
24204
  }
24158
24205
  }
@@ -24178,7 +24225,7 @@ var require_ora = __commonJS({
24178
24225
  const { frames } = this.spinner;
24179
24226
  let frame = frames[this.frameIndex];
24180
24227
  if (this.color) {
24181
- frame = chalk14[this.color](frame);
24228
+ frame = chalk15[this.color](frame);
24182
24229
  }
24183
24230
  this.frameIndex = ++this.frameIndex % frames.length;
24184
24231
  const fullPrefixText = typeof this.prefixText === "string" && this.prefixText !== "" ? this.prefixText + " " : "";
@@ -24308,8 +24355,8 @@ var require_screen_manager = __commonJS({
24308
24355
  var util = require_readline();
24309
24356
  var cliWidth = require_cli_width();
24310
24357
  var wrapAnsi = require_wrap_ansi();
24311
- var stripAnsi = require_strip_ansi();
24312
- var stringWidth = require_string_width();
24358
+ var stripAnsi2 = require_strip_ansi();
24359
+ var stringWidth2 = require_string_width2();
24313
24360
  var ora = require_ora();
24314
24361
  function height(content) {
24315
24362
  return content.split("\n").length;
@@ -24351,7 +24398,7 @@ var require_screen_manager = __commonJS({
24351
24398
  this.rl.output.unmute();
24352
24399
  this.clean(this.extraLinesUnderPrompt);
24353
24400
  const promptLine = lastLine(content);
24354
- const rawPromptLine = stripAnsi(promptLine);
24401
+ const rawPromptLine = stripAnsi2(promptLine);
24355
24402
  let prompt = rawPromptLine;
24356
24403
  if (this.rl.line.length) {
24357
24404
  prompt = prompt.slice(0, -this.rl.line.length);
@@ -24373,7 +24420,7 @@ var require_screen_manager = __commonJS({
24373
24420
  if (bottomContentHeight > 0) {
24374
24421
  util.up(this.rl, bottomContentHeight);
24375
24422
  }
24376
- util.left(this.rl, stringWidth(lastLine(fullContent)));
24423
+ util.left(this.rl, stringWidth2(lastLine(fullContent)));
24377
24424
  if (cursorPos.cols > 0) {
24378
24425
  util.right(this.rl, cursorPos.cols);
24379
24426
  }
@@ -24431,7 +24478,7 @@ var require_base = __commonJS({
24431
24478
  defaults: require_defaults(),
24432
24479
  clone: require_clone()
24433
24480
  };
24434
- var chalk14 = require_source();
24481
+ var chalk15 = require_source();
24435
24482
  var runAsync = require_run_async();
24436
24483
  var { filter, flatMap, share, take, takeUntil } = require_operators();
24437
24484
  var Choices = require_choices();
@@ -24449,7 +24496,7 @@ var require_base = __commonJS({
24449
24496
  filteringText: "",
24450
24497
  when: () => true,
24451
24498
  suffix: "",
24452
- prefix: chalk14.green("?")
24499
+ prefix: chalk15.green("?")
24453
24500
  });
24454
24501
  if (!this.opt.name) {
24455
24502
  this.throwParamError("name");
@@ -24500,7 +24547,7 @@ var require_base = __commonJS({
24500
24547
  */
24501
24548
  handleSubmitEvents(submit) {
24502
24549
  const self2 = this;
24503
- const validate = runAsync(this.opt.validate);
24550
+ const validate2 = runAsync(this.opt.validate);
24504
24551
  const asyncFilter = runAsync(this.opt.filter);
24505
24552
  const validation = submit.pipe(
24506
24553
  flatMap((value) => {
@@ -24508,7 +24555,7 @@ var require_base = __commonJS({
24508
24555
  return asyncFilter(value, self2.answers).then(
24509
24556
  (filteredValue) => {
24510
24557
  this.startSpinner(filteredValue, this.opt.validatingText);
24511
- return validate(filteredValue, self2.answers).then(
24558
+ return validate2(filteredValue, self2.answers).then(
24512
24559
  (isValid) => ({ isValid, value: filteredValue }),
24513
24560
  (err) => ({ isValid: err, value: filteredValue })
24514
24561
  );
@@ -24550,12 +24597,12 @@ var require_base = __commonJS({
24550
24597
  * @return {String} prompt question string
24551
24598
  */
24552
24599
  getQuestion() {
24553
- let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk14.bold(this.opt.message) + this.opt.suffix + chalk14.reset(" ");
24600
+ let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk15.bold(this.opt.message) + this.opt.suffix + chalk15.reset(" ");
24554
24601
  if (this.opt.default != null && this.status !== "touched" && this.status !== "answered") {
24555
24602
  if (this.opt.type === "password") {
24556
- message += chalk14.italic.dim("[hidden] ");
24603
+ message += chalk15.italic.dim("[hidden] ");
24557
24604
  } else {
24558
- message += chalk14.dim("(" + this.opt.default + ") ");
24605
+ message += chalk15.dim("(" + this.opt.default + ") ");
24559
24606
  }
24560
24607
  }
24561
24608
  return message;
@@ -24617,7 +24664,7 @@ var require_events = __commonJS({
24617
24664
  var require_paginator = __commonJS({
24618
24665
  "node_modules/inquirer/lib/utils/paginator.js"(exports2, module2) {
24619
24666
  "use strict";
24620
- var chalk14 = require_source();
24667
+ var chalk15 = require_source();
24621
24668
  var Paginator = class {
24622
24669
  /**
24623
24670
  * @param {import("./screen-manager")} [screen]
@@ -24642,7 +24689,7 @@ var require_paginator = __commonJS({
24642
24689
  }
24643
24690
  const visibleLines = this.isInfinite ? this.getInfiniteLines(lines, active, pageSize) : this.getFiniteLines(lines, active, pageSize);
24644
24691
  this.lastIndex = active;
24645
- return visibleLines.join("\n") + "\n" + chalk14.dim("(Move up and down to reveal more choices)");
24692
+ return visibleLines.join("\n") + "\n" + chalk15.dim("(Move up and down to reveal more choices)");
24646
24693
  }
24647
24694
  getInfiniteLines(lines, active, pageSize) {
24648
24695
  if (this.pointer === void 0) {
@@ -24698,7 +24745,7 @@ var require_incrementListIndex = __commonJS({
24698
24745
  var require_list = __commonJS({
24699
24746
  "node_modules/inquirer/lib/prompts/list.js"(exports2, module2) {
24700
24747
  "use strict";
24701
- var chalk14 = require_source();
24748
+ var chalk15 = require_source();
24702
24749
  var figures = require_figures();
24703
24750
  var cliCursor = require_cli_cursor();
24704
24751
  var runAsync = require_run_async();
@@ -24756,10 +24803,10 @@ var require_list = __commonJS({
24756
24803
  render() {
24757
24804
  let message = this.getQuestion();
24758
24805
  if (this.firstRender) {
24759
- message += chalk14.dim("(Use arrow keys)");
24806
+ message += chalk15.dim("(Use arrow keys)");
24760
24807
  }
24761
24808
  if (this.status === "answered") {
24762
- message += chalk14.cyan(this.opt.choices.getChoice(this.selected).short);
24809
+ message += chalk15.cyan(this.opt.choices.getChoice(this.selected).short);
24763
24810
  } else {
24764
24811
  const choicesStr = listRender(this.opt.choices, this.selected);
24765
24812
  const indexPosition = this.opt.choices.indexOf(
@@ -24834,7 +24881,7 @@ var require_list = __commonJS({
24834
24881
  const isSelected = i - separatorOffset === pointer;
24835
24882
  let line = (isSelected ? figures.pointer + " " : " ") + choice.name;
24836
24883
  if (isSelected) {
24837
- line = chalk14.cyan(line);
24884
+ line = chalk15.cyan(line);
24838
24885
  }
24839
24886
  output += line + " \n";
24840
24887
  });
@@ -24848,7 +24895,7 @@ var require_list = __commonJS({
24848
24895
  var require_input = __commonJS({
24849
24896
  "node_modules/inquirer/lib/prompts/input.js"(exports2, module2) {
24850
24897
  "use strict";
24851
- var chalk14 = require_source();
24898
+ var chalk15 = require_source();
24852
24899
  var { map: map2, takeUntil } = require_operators();
24853
24900
  var Base = require_base();
24854
24901
  var observe = require_events();
@@ -24887,10 +24934,10 @@ var require_input = __commonJS({
24887
24934
  if (transformer) {
24888
24935
  message += transformer(appendContent, this.answers, { isFinal });
24889
24936
  } else {
24890
- message += isFinal ? chalk14.cyan(appendContent) : appendContent;
24937
+ message += isFinal ? chalk15.cyan(appendContent) : appendContent;
24891
24938
  }
24892
24939
  if (error49) {
24893
- bottomContent = chalk14.red(">> ") + error49;
24940
+ bottomContent = chalk15.red(">> ") + error49;
24894
24941
  }
24895
24942
  this.screen.render(message, bottomContent);
24896
24943
  }
@@ -24952,7 +24999,7 @@ var require_number = __commonJS({
24952
24999
  var require_confirm = __commonJS({
24953
25000
  "node_modules/inquirer/lib/prompts/confirm.js"(exports2, module2) {
24954
25001
  "use strict";
24955
- var chalk14 = require_source();
25002
+ var chalk15 = require_source();
24956
25003
  var { take, takeUntil } = require_operators();
24957
25004
  var Base = require_base();
24958
25005
  var observe = require_events();
@@ -24994,7 +25041,7 @@ var require_confirm = __commonJS({
24994
25041
  render(answer) {
24995
25042
  let message = this.getQuestion();
24996
25043
  if (typeof answer === "boolean") {
24997
- message += chalk14.cyan(answer ? "Yes" : "No");
25044
+ message += chalk15.cyan(answer ? "Yes" : "No");
24998
25045
  } else {
24999
25046
  message += this.rl.line;
25000
25047
  }
@@ -25026,7 +25073,7 @@ var require_confirm = __commonJS({
25026
25073
  var require_rawlist = __commonJS({
25027
25074
  "node_modules/inquirer/lib/prompts/rawlist.js"(exports2, module2) {
25028
25075
  "use strict";
25029
- var chalk14 = require_source();
25076
+ var chalk15 = require_source();
25030
25077
  var { map: map2, takeUntil } = require_operators();
25031
25078
  var Base = require_base();
25032
25079
  var Separator = require_separator();
@@ -25089,7 +25136,7 @@ var require_rawlist = __commonJS({
25089
25136
  let message = this.getQuestion();
25090
25137
  let bottomContent = "";
25091
25138
  if (this.status === "answered") {
25092
- message += chalk14.cyan(this.opt.choices.getChoice(this.selected).short);
25139
+ message += chalk15.cyan(this.opt.choices.getChoice(this.selected).short);
25093
25140
  } else {
25094
25141
  const choicesStr = renderChoices(this.opt.choices, this.selected);
25095
25142
  message += "\n" + this.paginator.paginate(choicesStr, this.selected, this.opt.pageSize);
@@ -25097,7 +25144,7 @@ var require_rawlist = __commonJS({
25097
25144
  }
25098
25145
  message += this.rl.line;
25099
25146
  if (error49) {
25100
- bottomContent = "\n" + chalk14.red(">> ") + error49;
25147
+ bottomContent = "\n" + chalk15.red(">> ") + error49;
25101
25148
  }
25102
25149
  this.screen.render(message, bottomContent);
25103
25150
  }
@@ -25180,7 +25227,7 @@ var require_rawlist = __commonJS({
25180
25227
  const index = i - separatorOffset;
25181
25228
  let display = index + 1 + ") " + choice.name;
25182
25229
  if (index === pointer) {
25183
- display = chalk14.cyan(display);
25230
+ display = chalk15.cyan(display);
25184
25231
  }
25185
25232
  output += display;
25186
25233
  });
@@ -25194,7 +25241,7 @@ var require_rawlist = __commonJS({
25194
25241
  var require_expand2 = __commonJS({
25195
25242
  "node_modules/inquirer/lib/prompts/expand.js"(exports2, module2) {
25196
25243
  "use strict";
25197
- var chalk14 = require_source();
25244
+ var chalk15 = require_source();
25198
25245
  var { map: map2, takeUntil } = require_operators();
25199
25246
  var Base = require_base();
25200
25247
  var Separator = require_separator();
@@ -25246,7 +25293,7 @@ var require_expand2 = __commonJS({
25246
25293
  let message = this.getQuestion();
25247
25294
  let bottomContent = "";
25248
25295
  if (this.status === "answered") {
25249
- message += chalk14.cyan(this.answer);
25296
+ message += chalk15.cyan(this.answer);
25250
25297
  } else if (this.status === "expanded") {
25251
25298
  const choicesStr = renderChoices(this.opt.choices, this.selectedKey);
25252
25299
  message += this.paginator.paginate(choicesStr, this.selectedKey, this.opt.pageSize);
@@ -25254,10 +25301,10 @@ var require_expand2 = __commonJS({
25254
25301
  }
25255
25302
  message += this.rl.line;
25256
25303
  if (error49) {
25257
- bottomContent = chalk14.red(">> ") + error49;
25304
+ bottomContent = chalk15.red(">> ") + error49;
25258
25305
  }
25259
25306
  if (hint2) {
25260
- bottomContent = chalk14.cyan(">> ") + hint2;
25307
+ bottomContent = chalk15.cyan(">> ") + hint2;
25261
25308
  }
25262
25309
  this.screen.render(message, bottomContent);
25263
25310
  }
@@ -25285,7 +25332,7 @@ var require_expand2 = __commonJS({
25285
25332
  }
25286
25333
  let choiceStr = choice.key + ") " + choice.name;
25287
25334
  if (this.selectedKey === choice.key) {
25288
- choiceStr = chalk14.cyan(choiceStr);
25335
+ choiceStr = chalk15.cyan(choiceStr);
25289
25336
  }
25290
25337
  output += choiceStr;
25291
25338
  });
@@ -25387,7 +25434,7 @@ var require_expand2 = __commonJS({
25387
25434
  }
25388
25435
  let choiceStr = choice.key + ") " + choice.name;
25389
25436
  if (pointer === choice.key) {
25390
- choiceStr = chalk14.cyan(choiceStr);
25437
+ choiceStr = chalk15.cyan(choiceStr);
25391
25438
  }
25392
25439
  output += choiceStr;
25393
25440
  });
@@ -25401,7 +25448,7 @@ var require_expand2 = __commonJS({
25401
25448
  var require_checkbox = __commonJS({
25402
25449
  "node_modules/inquirer/lib/prompts/checkbox.js"(exports2, module2) {
25403
25450
  "use strict";
25404
- var chalk14 = require_source();
25451
+ var chalk15 = require_source();
25405
25452
  var cliCursor = require_cli_cursor();
25406
25453
  var figures = require_figures();
25407
25454
  var { map: map2, takeUntil } = require_operators();
@@ -25459,10 +25506,10 @@ var require_checkbox = __commonJS({
25459
25506
  let message = this.getQuestion();
25460
25507
  let bottomContent = "";
25461
25508
  if (!this.dontShowHints) {
25462
- message += "(Press " + chalk14.cyan.bold("<space>") + " to select, " + chalk14.cyan.bold("<a>") + " to toggle all, " + chalk14.cyan.bold("<i>") + " to invert selection, and " + chalk14.cyan.bold("<enter>") + " to proceed)";
25509
+ message += "(Press " + chalk15.cyan.bold("<space>") + " to select, " + chalk15.cyan.bold("<a>") + " to toggle all, " + chalk15.cyan.bold("<i>") + " to invert selection, and " + chalk15.cyan.bold("<enter>") + " to proceed)";
25463
25510
  }
25464
25511
  if (this.status === "answered") {
25465
- message += chalk14.cyan(this.selection.join(", "));
25512
+ message += chalk15.cyan(this.selection.join(", "));
25466
25513
  } else {
25467
25514
  const choicesStr = renderChoices(this.opt.choices, this.pointer);
25468
25515
  const indexPosition = this.opt.choices.indexOf(
@@ -25485,7 +25532,7 @@ var require_checkbox = __commonJS({
25485
25532
  message += "\n" + this.paginator.paginate(choicesStr, realIndexPosition, this.opt.pageSize);
25486
25533
  }
25487
25534
  if (error49) {
25488
- bottomContent = chalk14.red(">> ") + error49;
25535
+ bottomContent = chalk15.red(">> ") + error49;
25489
25536
  }
25490
25537
  this.screen.render(message, bottomContent);
25491
25538
  }
@@ -25571,7 +25618,7 @@ var require_checkbox = __commonJS({
25571
25618
  } else {
25572
25619
  const line = getCheckbox(choice.checked) + " " + choice.name;
25573
25620
  if (i - separatorOffset === pointer) {
25574
- output += chalk14.cyan(figures.pointer + line);
25621
+ output += chalk15.cyan(figures.pointer + line);
25575
25622
  } else {
25576
25623
  output += " " + line;
25577
25624
  }
@@ -25581,7 +25628,7 @@ var require_checkbox = __commonJS({
25581
25628
  return output.replace(/\n$/, "");
25582
25629
  }
25583
25630
  function getCheckbox(checked) {
25584
- return checked ? chalk14.green(figures.radioOn) : figures.radioOff;
25631
+ return checked ? chalk15.green(figures.radioOn) : figures.radioOff;
25585
25632
  }
25586
25633
  module2.exports = CheckboxPrompt;
25587
25634
  }
@@ -25591,7 +25638,7 @@ var require_checkbox = __commonJS({
25591
25638
  var require_password = __commonJS({
25592
25639
  "node_modules/inquirer/lib/prompts/password.js"(exports2, module2) {
25593
25640
  "use strict";
25594
- var chalk14 = require_source();
25641
+ var chalk15 = require_source();
25595
25642
  var { map: map2, takeUntil } = require_operators();
25596
25643
  var Base = require_base();
25597
25644
  var observe = require_events();
@@ -25633,15 +25680,15 @@ var require_password = __commonJS({
25633
25680
  message += this.getMaskedValue(this.rl.line || "");
25634
25681
  }
25635
25682
  if (error49) {
25636
- bottomContent = "\n" + chalk14.red(">> ") + error49;
25683
+ bottomContent = "\n" + chalk15.red(">> ") + error49;
25637
25684
  }
25638
25685
  this.screen.render(message, bottomContent);
25639
25686
  }
25640
25687
  getMaskedValue(value) {
25641
25688
  if (this.status === "answered") {
25642
- return this.opt.mask ? chalk14.cyan(mask(value, this.opt.mask)) : chalk14.italic.dim("[hidden]");
25689
+ return this.opt.mask ? chalk15.cyan(mask(value, this.opt.mask)) : chalk15.italic.dim("[hidden]");
25643
25690
  }
25644
- return this.opt.mask ? mask(value, this.opt.mask) : chalk14.italic.dim("[input is hidden] ");
25691
+ return this.opt.mask ? mask(value, this.opt.mask) : chalk15.italic.dim("[input is hidden] ");
25645
25692
  }
25646
25693
  /**
25647
25694
  * Mask value during async filter/validation.
@@ -35363,7 +35410,7 @@ var require_commonjs = __commonJS({
35363
35410
  var require_editor = __commonJS({
35364
35411
  "node_modules/inquirer/lib/prompts/editor.js"(exports2, module2) {
35365
35412
  "use strict";
35366
- var chalk14 = require_source();
35413
+ var chalk15 = require_source();
35367
35414
  var { editAsync } = require_commonjs();
35368
35415
  var Base = require_base();
35369
35416
  var observe = require_events();
@@ -35395,12 +35442,12 @@ var require_editor = __commonJS({
35395
35442
  let bottomContent = "";
35396
35443
  let message = this.getQuestion();
35397
35444
  if (this.status === "answered") {
35398
- message += chalk14.dim("Received");
35445
+ message += chalk15.dim("Received");
35399
35446
  } else {
35400
- message += chalk14.dim("Press <enter> to launch your preferred editor.");
35447
+ message += chalk15.dim("Press <enter> to launch your preferred editor.");
35401
35448
  }
35402
35449
  if (error49) {
35403
- bottomContent = chalk14.red(">> ") + error49;
35450
+ bottomContent = chalk15.red(">> ") + error49;
35404
35451
  }
35405
35452
  this.screen.render(message, bottomContent);
35406
35453
  }
@@ -35515,10 +35562,57 @@ var require_debug = __commonJS({
35515
35562
  }
35516
35563
  });
35517
35564
 
35565
+ // node_modules/cli-table3/node_modules/string-width/node_modules/emoji-regex/index.js
35566
+ var require_emoji_regex3 = __commonJS({
35567
+ "node_modules/cli-table3/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
35568
+ "use strict";
35569
+ module2.exports = function() {
35570
+ 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;
35571
+ };
35572
+ }
35573
+ });
35574
+
35575
+ // node_modules/cli-table3/node_modules/string-width/index.js
35576
+ var require_string_width3 = __commonJS({
35577
+ "node_modules/cli-table3/node_modules/string-width/index.js"(exports2, module2) {
35578
+ "use strict";
35579
+ var stripAnsi2 = require_strip_ansi();
35580
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
35581
+ var emojiRegex2 = require_emoji_regex3();
35582
+ var stringWidth2 = (string4) => {
35583
+ if (typeof string4 !== "string" || string4.length === 0) {
35584
+ return 0;
35585
+ }
35586
+ string4 = stripAnsi2(string4);
35587
+ if (string4.length === 0) {
35588
+ return 0;
35589
+ }
35590
+ string4 = string4.replace(emojiRegex2(), " ");
35591
+ let width = 0;
35592
+ for (let i = 0; i < string4.length; i++) {
35593
+ const code = string4.codePointAt(i);
35594
+ if (code <= 31 || code >= 127 && code <= 159) {
35595
+ continue;
35596
+ }
35597
+ if (code >= 768 && code <= 879) {
35598
+ continue;
35599
+ }
35600
+ if (code > 65535) {
35601
+ i++;
35602
+ }
35603
+ width += isFullwidthCodePoint(code) ? 2 : 1;
35604
+ }
35605
+ return width;
35606
+ };
35607
+ module2.exports = stringWidth2;
35608
+ module2.exports.default = stringWidth2;
35609
+ }
35610
+ });
35611
+
35518
35612
  // node_modules/cli-table3/src/utils.js
35519
35613
  var require_utils3 = __commonJS({
35520
35614
  "node_modules/cli-table3/src/utils.js"(exports2, module2) {
35521
- var stringWidth = require_string_width();
35615
+ var stringWidth2 = require_string_width3();
35522
35616
  function codeRegex(capture) {
35523
35617
  return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
35524
35618
  }
@@ -35527,7 +35621,7 @@ var require_utils3 = __commonJS({
35527
35621
  let stripped = ("" + str).replace(code, "");
35528
35622
  let split = stripped.split("\n");
35529
35623
  return split.reduce(function(memo, s3) {
35530
- return stringWidth(s3) > memo ? stringWidth(s3) : memo;
35624
+ return stringWidth2(s3) > memo ? stringWidth2(s3) : memo;
35531
35625
  }, 0);
35532
35626
  }
35533
35627
  function repeat(str, times) {
@@ -38950,14 +39044,23 @@ var require_json_bigint = __commonJS({
38950
39044
  }
38951
39045
  });
38952
39046
 
39047
+ // node_modules/emoji-regex/index.js
39048
+ var require_emoji_regex4 = __commonJS({
39049
+ "node_modules/emoji-regex/index.js"(exports2, module2) {
39050
+ module2.exports = () => {
39051
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
39052
+ };
39053
+ }
39054
+ });
39055
+
38953
39056
  // node_modules/lodash/lodash.js
38954
39057
  var require_lodash = __commonJS({
38955
39058
  "node_modules/lodash/lodash.js"(exports2, module2) {
38956
39059
  (function() {
38957
39060
  var undefined2;
38958
- var VERSION = "4.17.23";
39061
+ var VERSION = "4.18.1";
38959
39062
  var LARGE_ARRAY_SIZE = 200;
38960
- var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
39063
+ var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
38961
39064
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
38962
39065
  var MAX_MEMOIZE_SIZE = 500;
38963
39066
  var PLACEHOLDER = "__lodash_placeholder__";
@@ -40887,19 +40990,12 @@ var require_lodash = __commonJS({
40887
40990
  if (!length) {
40888
40991
  return true;
40889
40992
  }
40890
- var isRootPrimitive = object2 == null || typeof object2 !== "object" && typeof object2 !== "function";
40891
40993
  while (++index < length) {
40892
- var key = path16[index];
40893
- if (typeof key !== "string") {
40894
- continue;
40895
- }
40994
+ var key = toKey(path16[index]);
40896
40995
  if (key === "__proto__" && !hasOwnProperty.call(object2, "__proto__")) {
40897
40996
  return false;
40898
40997
  }
40899
- if (key === "constructor" && index + 1 < length && typeof path16[index + 1] === "string" && path16[index + 1] === "prototype") {
40900
- if (isRootPrimitive && index === 0) {
40901
- continue;
40902
- }
40998
+ if ((key === "constructor" || key === "prototype") && index < length - 1) {
40903
40999
  return false;
40904
41000
  }
40905
41001
  }
@@ -42231,7 +42327,7 @@ var require_lodash = __commonJS({
42231
42327
  var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
42232
42328
  while (++index < length) {
42233
42329
  var pair = pairs[index];
42234
- result2[pair[0]] = pair[1];
42330
+ baseAssignValue(result2, pair[0], pair[1]);
42235
42331
  }
42236
42332
  return result2;
42237
42333
  }
@@ -43615,8 +43711,13 @@ var require_lodash = __commonJS({
43615
43711
  options = undefined2;
43616
43712
  }
43617
43713
  string4 = toString2(string4);
43618
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
43619
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
43714
+ options = assignWith({}, options, settings, customDefaultsAssignIn);
43715
+ var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
43716
+ arrayEach(importsKeys, function(key) {
43717
+ if (reForbiddenIdentifierChars.test(key)) {
43718
+ throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
43719
+ }
43720
+ });
43620
43721
  var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
43621
43722
  var reDelimiters = RegExp2(
43622
43723
  (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
@@ -45771,14 +45872,14 @@ var require_templates2 = __commonJS({
45771
45872
  }
45772
45873
  return results;
45773
45874
  }
45774
- function buildStyle(chalk14, styles) {
45875
+ function buildStyle(chalk15, styles) {
45775
45876
  const enabled = {};
45776
45877
  for (const layer of styles) {
45777
45878
  for (const style of layer.styles) {
45778
45879
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
45779
45880
  }
45780
45881
  }
45781
- let current = chalk14;
45882
+ let current = chalk15;
45782
45883
  for (const styleName of Object.keys(enabled)) {
45783
45884
  if (Array.isArray(enabled[styleName])) {
45784
45885
  if (!(styleName in current)) {
@@ -45793,7 +45894,7 @@ var require_templates2 = __commonJS({
45793
45894
  }
45794
45895
  return current;
45795
45896
  }
45796
- module2.exports = (chalk14, tmp) => {
45897
+ module2.exports = (chalk15, tmp) => {
45797
45898
  const styles = [];
45798
45899
  const chunks = [];
45799
45900
  let chunk = [];
@@ -45803,13 +45904,13 @@ var require_templates2 = __commonJS({
45803
45904
  } else if (style) {
45804
45905
  const str = chunk.join("");
45805
45906
  chunk = [];
45806
- chunks.push(styles.length === 0 ? str : buildStyle(chalk14, styles)(str));
45907
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk15, styles)(str));
45807
45908
  styles.push({ inverse, styles: parseStyle(style) });
45808
45909
  } else if (close) {
45809
45910
  if (styles.length === 0) {
45810
45911
  throw new Error("Found extraneous } in Chalk template literal");
45811
45912
  }
45812
- chunks.push(buildStyle(chalk14, styles)(chunk.join("")));
45913
+ chunks.push(buildStyle(chalk15, styles)(chunk.join("")));
45813
45914
  chunk = [];
45814
45915
  styles.pop();
45815
45916
  } else {
@@ -45846,16 +45947,16 @@ var require_chalk = __commonJS({
45846
45947
  }
45847
45948
  function Chalk(options) {
45848
45949
  if (!this || !(this instanceof Chalk) || this.template) {
45849
- const chalk14 = {};
45850
- applyOptions(chalk14, options);
45851
- chalk14.template = function() {
45950
+ const chalk15 = {};
45951
+ applyOptions(chalk15, options);
45952
+ chalk15.template = function() {
45852
45953
  const args = [].slice.call(arguments);
45853
- return chalkTag.apply(null, [chalk14.template].concat(args));
45954
+ return chalkTag.apply(null, [chalk15.template].concat(args));
45854
45955
  };
45855
- Object.setPrototypeOf(chalk14, Chalk.prototype);
45856
- Object.setPrototypeOf(chalk14.template, chalk14);
45857
- chalk14.template.constructor = Chalk;
45858
- return chalk14.template;
45956
+ Object.setPrototypeOf(chalk15, Chalk.prototype);
45957
+ Object.setPrototypeOf(chalk15.template, chalk15);
45958
+ chalk15.template.constructor = Chalk;
45959
+ return chalk15.template;
45859
45960
  }
45860
45961
  applyOptions(this, options);
45861
45962
  }
@@ -45974,7 +46075,7 @@ var require_chalk = __commonJS({
45974
46075
  ansiStyles.dim.open = originalDim;
45975
46076
  return str;
45976
46077
  }
45977
- function chalkTag(chalk14, strings) {
46078
+ function chalkTag(chalk15, strings) {
45978
46079
  if (!Array.isArray(strings)) {
45979
46080
  return [].slice.call(arguments, 1).join(" ");
45980
46081
  }
@@ -45984,7 +46085,7 @@ var require_chalk = __commonJS({
45984
46085
  parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
45985
46086
  parts.push(String(strings.raw[i]));
45986
46087
  }
45987
- return template(chalk14, parts.join(""));
46088
+ return template(chalk15, parts.join(""));
45988
46089
  }
45989
46090
  Object.defineProperties(Chalk.prototype, styles);
45990
46091
  module2.exports = Chalk();
@@ -46153,11 +46254,11 @@ var require_figures2 = __commonJS({
46153
46254
  var require_separator2 = __commonJS({
46154
46255
  "node_modules/inquirer-search-list/node_modules/inquirer/lib/objects/separator.js"(exports2, module2) {
46155
46256
  "use strict";
46156
- var chalk14 = require_chalk();
46257
+ var chalk15 = require_chalk();
46157
46258
  var figures = require_figures2();
46158
46259
  var Separator = module2.exports = function(line) {
46159
46260
  this.type = "separator";
46160
- this.line = chalk14.dim(line || new Array(15).join(figures.line));
46261
+ this.line = chalk15.dim(line || new Array(15).join(figures.line));
46161
46262
  };
46162
46263
  Separator.exclude = function(obj) {
46163
46264
  return obj.type !== "separator";
@@ -46466,8 +46567,8 @@ var require_ansi_regex2 = __commonJS({
46466
46567
  var require_strip_ansi2 = __commonJS({
46467
46568
  "node_modules/inquirer-search-list/node_modules/inquirer/node_modules/strip-ansi/index.js"(exports2, module2) {
46468
46569
  "use strict";
46469
- var ansiRegex = require_ansi_regex2();
46470
- module2.exports = (input) => typeof input === "string" ? input.replace(ansiRegex(), "") : input;
46570
+ var ansiRegex2 = require_ansi_regex2();
46571
+ module2.exports = (input) => typeof input === "string" ? input.replace(ansiRegex2(), "") : input;
46471
46572
  }
46472
46573
  });
46473
46574
 
@@ -46503,16 +46604,16 @@ var require_is_fullwidth_code_point2 = __commonJS({
46503
46604
  });
46504
46605
 
46505
46606
  // node_modules/inquirer-search-list/node_modules/inquirer/node_modules/string-width/index.js
46506
- var require_string_width2 = __commonJS({
46607
+ var require_string_width4 = __commonJS({
46507
46608
  "node_modules/inquirer-search-list/node_modules/inquirer/node_modules/string-width/index.js"(exports2, module2) {
46508
46609
  "use strict";
46509
- var stripAnsi = require_strip_ansi2();
46610
+ var stripAnsi2 = require_strip_ansi2();
46510
46611
  var isFullwidthCodePoint = require_is_fullwidth_code_point2();
46511
46612
  module2.exports = (str) => {
46512
46613
  if (typeof str !== "string" || str.length === 0) {
46513
46614
  return 0;
46514
46615
  }
46515
- str = stripAnsi(str);
46616
+ str = stripAnsi2(str);
46516
46617
  let width = 0;
46517
46618
  for (let i = 0; i < str.length; i++) {
46518
46619
  const code = str.codePointAt(i);
@@ -46539,8 +46640,8 @@ var require_screen_manager2 = __commonJS({
46539
46640
  var _2 = require_lodash();
46540
46641
  var util = require_readline2();
46541
46642
  var cliWidth = require_cli_width2();
46542
- var stripAnsi = require_strip_ansi2();
46543
- var stringWidth = require_string_width2();
46643
+ var stripAnsi2 = require_strip_ansi2();
46644
+ var stringWidth2 = require_string_width4();
46544
46645
  function height(content) {
46545
46646
  return content.split("\n").length;
46546
46647
  }
@@ -46556,7 +46657,7 @@ var require_screen_manager2 = __commonJS({
46556
46657
  this.rl.output.unmute();
46557
46658
  this.clean(this.extraLinesUnderPrompt);
46558
46659
  var promptLine = lastLine(content);
46559
- var rawPromptLine = stripAnsi(promptLine);
46660
+ var rawPromptLine = stripAnsi2(promptLine);
46560
46661
  var prompt = rawPromptLine;
46561
46662
  if (this.rl.line.length) {
46562
46663
  prompt = prompt.slice(0, -this.rl.line.length);
@@ -46578,7 +46679,7 @@ var require_screen_manager2 = __commonJS({
46578
46679
  if (bottomContentHeight > 0) {
46579
46680
  util.up(this.rl, bottomContentHeight);
46580
46681
  }
46581
- util.left(this.rl, stringWidth(lastLine(fullContent)));
46682
+ util.left(this.rl, stringWidth2(lastLine(fullContent)));
46582
46683
  util.right(this.rl, cursorPos.cols);
46583
46684
  this.extraLinesUnderPrompt = bottomContentHeight;
46584
46685
  this.height = height(fullContent);
@@ -46611,12 +46712,12 @@ var require_screen_manager2 = __commonJS({
46611
46712
  return width;
46612
46713
  };
46613
46714
  function breakLines(lines, width) {
46614
- var regex = new RegExp(
46715
+ var regex2 = new RegExp(
46615
46716
  "(?:(?:\\033[[0-9;]*m)*.?){1," + width + "}",
46616
46717
  "g"
46617
46718
  );
46618
46719
  return lines.map(function(line) {
46619
- var chunk = line.match(regex);
46720
+ var chunk = line.match(regex2);
46620
46721
  chunk.pop();
46621
46722
  return chunk || "";
46622
46723
  });
@@ -46631,7 +46732,7 @@ var require_screen_manager2 = __commonJS({
46631
46732
  var require_base2 = __commonJS({
46632
46733
  "node_modules/inquirer-search-list/node_modules/inquirer/lib/prompts/base.js"(exports2, module2) {
46633
46734
  var _2 = require_lodash();
46634
- var chalk14 = require_chalk();
46735
+ var chalk15 = require_chalk();
46635
46736
  var runAsync = require_run_async();
46636
46737
  var Choices = require_choices2();
46637
46738
  var ScreenManager = require_screen_manager2();
@@ -46651,7 +46752,7 @@ var require_base2 = __commonJS({
46651
46752
  return true;
46652
46753
  },
46653
46754
  suffix: "",
46654
- prefix: chalk14.green("?")
46755
+ prefix: chalk15.green("?")
46655
46756
  });
46656
46757
  if (!this.opt.message) {
46657
46758
  this.throwParamError("message");
@@ -46683,11 +46784,11 @@ var require_base2 = __commonJS({
46683
46784
  };
46684
46785
  Prompt.prototype.handleSubmitEvents = function(submit) {
46685
46786
  var self2 = this;
46686
- var validate = runAsync(this.opt.validate);
46787
+ var validate2 = runAsync(this.opt.validate);
46687
46788
  var filter = runAsync(this.opt.filter);
46688
46789
  var validation = submit.flatMap(function(value) {
46689
46790
  return filter(value, self2.answers).then(function(filteredValue) {
46690
- return validate(filteredValue, self2.answers).then(function(isValid) {
46791
+ return validate2(filteredValue, self2.answers).then(function(isValid) {
46691
46792
  return { isValid, value: filteredValue };
46692
46793
  }, function(err) {
46693
46794
  return { isValid: err };
@@ -46708,9 +46809,9 @@ var require_base2 = __commonJS({
46708
46809
  };
46709
46810
  };
46710
46811
  Prompt.prototype.getQuestion = function() {
46711
- var message = this.opt.prefix + " " + chalk14.bold(this.opt.message) + this.opt.suffix + chalk14.reset(" ");
46812
+ var message = this.opt.prefix + " " + chalk15.bold(this.opt.message) + this.opt.suffix + chalk15.reset(" ");
46712
46813
  if (this.opt.default != null && this.status !== "answered") {
46713
- message += chalk14.dim("(" + this.opt.default + ") ");
46814
+ message += chalk15.dim("(" + this.opt.default + ") ");
46714
46815
  }
46715
46816
  return message;
46716
46817
  };
@@ -53401,7 +53502,7 @@ var require_paginator2 = __commonJS({
53401
53502
  "node_modules/inquirer-search-list/node_modules/inquirer/lib/utils/paginator.js"(exports2, module2) {
53402
53503
  "use strict";
53403
53504
  var _2 = require_lodash();
53404
- var chalk14 = require_chalk();
53505
+ var chalk15 = require_chalk();
53405
53506
  var Paginator = module2.exports = function() {
53406
53507
  this.pointer = 0;
53407
53508
  this.lastIndex = 0;
@@ -53420,7 +53521,7 @@ var require_paginator2 = __commonJS({
53420
53521
  var infinite = _2.flatten([lines, lines, lines]);
53421
53522
  var topIndex = Math.max(0, active + lines.length - this.pointer);
53422
53523
  var section = infinite.splice(topIndex, pageSize).join("\n");
53423
- return section + "\n" + chalk14.dim("(Move up and down to reveal more choices)");
53524
+ return section + "\n" + chalk15.dim("(Move up and down to reveal more choices)");
53424
53525
  };
53425
53526
  }
53426
53527
  });
@@ -70651,8 +70752,8 @@ var require_ignore = __commonJS({
70651
70752
  // It does not need to bind pattern
70652
70753
  TRAILING_WILD_CARD_REPLACERS[mode]
70653
70754
  );
70654
- const regex = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
70655
- return define2(this, key, regex);
70755
+ const regex2 = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
70756
+ return define2(this, key, regex2);
70656
70757
  }
70657
70758
  };
70658
70759
  var createRule = ({
@@ -73864,17 +73965,17 @@ var require_picomatch = __commonJS({
73864
73965
  }
73865
73966
  const opts = options || {};
73866
73967
  const posix = utils.isWindows(options);
73867
- const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
73868
- const state = regex.state;
73869
- delete regex.state;
73968
+ const regex2 = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
73969
+ const state = regex2.state;
73970
+ delete regex2.state;
73870
73971
  let isIgnored = () => false;
73871
73972
  if (opts.ignore) {
73872
73973
  const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
73873
73974
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
73874
73975
  }
73875
73976
  const matcher = (input, returnObject = false) => {
73876
- const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
73877
- const result = { glob, state, regex, posix, input, output, match, isMatch };
73977
+ const { isMatch, match, output } = picomatch.test(input, regex2, options, { glob, posix });
73978
+ const result = { glob, state, regex: regex2, posix, input, output, match, isMatch };
73878
73979
  if (typeof opts.onResult === "function") {
73879
73980
  opts.onResult(result);
73880
73981
  }
@@ -73899,7 +74000,7 @@ var require_picomatch = __commonJS({
73899
74000
  }
73900
74001
  return matcher;
73901
74002
  };
73902
- picomatch.test = (input, regex, options, { glob, posix } = {}) => {
74003
+ picomatch.test = (input, regex2, options, { glob, posix } = {}) => {
73903
74004
  if (typeof input !== "string") {
73904
74005
  throw new TypeError("Expected input to be a string");
73905
74006
  }
@@ -73916,16 +74017,16 @@ var require_picomatch = __commonJS({
73916
74017
  }
73917
74018
  if (match === false || opts.capture === true) {
73918
74019
  if (opts.matchBase === true || opts.basename === true) {
73919
- match = picomatch.matchBase(input, regex, options, posix);
74020
+ match = picomatch.matchBase(input, regex2, options, posix);
73920
74021
  } else {
73921
- match = regex.exec(output);
74022
+ match = regex2.exec(output);
73922
74023
  }
73923
74024
  }
73924
74025
  return { isMatch: Boolean(match), match, output };
73925
74026
  };
73926
74027
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
73927
- const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
73928
- return regex.test(path16.basename(input));
74028
+ const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
74029
+ return regex2.test(path16.basename(input));
73929
74030
  };
73930
74031
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
73931
74032
  picomatch.parse = (pattern, options) => {
@@ -73944,11 +74045,11 @@ var require_picomatch = __commonJS({
73944
74045
  if (state && state.negated === true) {
73945
74046
  source = `^(?!${source}).*$`;
73946
74047
  }
73947
- const regex = picomatch.toRegex(source, options);
74048
+ const regex2 = picomatch.toRegex(source, options);
73948
74049
  if (returnState === true) {
73949
- regex.state = state;
74050
+ regex2.state = state;
73950
74051
  }
73951
- return regex;
74052
+ return regex2;
73952
74053
  };
73953
74054
  picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
73954
74055
  if (!input || typeof input !== "string") {
@@ -75837,17 +75938,17 @@ var require_picomatch3 = __commonJS({
75837
75938
  }
75838
75939
  const opts = options || {};
75839
75940
  const posix = utils.isWindows(options);
75840
- const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
75841
- const state = regex.state;
75842
- delete regex.state;
75941
+ const regex2 = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
75942
+ const state = regex2.state;
75943
+ delete regex2.state;
75843
75944
  let isIgnored = () => false;
75844
75945
  if (opts.ignore) {
75845
75946
  const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
75846
75947
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
75847
75948
  }
75848
75949
  const matcher = (input, returnObject = false) => {
75849
- const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
75850
- const result = { glob, state, regex, posix, input, output, match, isMatch };
75950
+ const { isMatch, match, output } = picomatch.test(input, regex2, options, { glob, posix });
75951
+ const result = { glob, state, regex: regex2, posix, input, output, match, isMatch };
75851
75952
  if (typeof opts.onResult === "function") {
75852
75953
  opts.onResult(result);
75853
75954
  }
@@ -75872,7 +75973,7 @@ var require_picomatch3 = __commonJS({
75872
75973
  }
75873
75974
  return matcher;
75874
75975
  };
75875
- picomatch.test = (input, regex, options, { glob, posix } = {}) => {
75976
+ picomatch.test = (input, regex2, options, { glob, posix } = {}) => {
75876
75977
  if (typeof input !== "string") {
75877
75978
  throw new TypeError("Expected input to be a string");
75878
75979
  }
@@ -75889,16 +75990,16 @@ var require_picomatch3 = __commonJS({
75889
75990
  }
75890
75991
  if (match === false || opts.capture === true) {
75891
75992
  if (opts.matchBase === true || opts.basename === true) {
75892
- match = picomatch.matchBase(input, regex, options, posix);
75993
+ match = picomatch.matchBase(input, regex2, options, posix);
75893
75994
  } else {
75894
- match = regex.exec(output);
75995
+ match = regex2.exec(output);
75895
75996
  }
75896
75997
  }
75897
75998
  return { isMatch: Boolean(match), match, output };
75898
75999
  };
75899
76000
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
75900
- const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
75901
- return regex.test(path16.basename(input));
76001
+ const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
76002
+ return regex2.test(path16.basename(input));
75902
76003
  };
75903
76004
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
75904
76005
  picomatch.parse = (pattern, options) => {
@@ -75917,11 +76018,11 @@ var require_picomatch3 = __commonJS({
75917
76018
  if (state && state.negated === true) {
75918
76019
  source = `^(?!${source}).*$`;
75919
76020
  }
75920
- const regex = picomatch.toRegex(source, options);
76021
+ const regex2 = picomatch.toRegex(source, options);
75921
76022
  if (returnState === true) {
75922
- regex.state = state;
76023
+ regex2.state = state;
75923
76024
  }
75924
- return regex;
76025
+ return regex2;
75925
76026
  };
75926
76027
  picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
75927
76028
  if (!input || typeof input !== "string") {
@@ -79460,6 +79561,53 @@ var require_terminal = __commonJS({
79460
79561
  }
79461
79562
  });
79462
79563
 
79564
+ // node_modules/cli-progress/node_modules/string-width/node_modules/emoji-regex/index.js
79565
+ var require_emoji_regex5 = __commonJS({
79566
+ "node_modules/cli-progress/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
79567
+ "use strict";
79568
+ module2.exports = function() {
79569
+ 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;
79570
+ };
79571
+ }
79572
+ });
79573
+
79574
+ // node_modules/cli-progress/node_modules/string-width/index.js
79575
+ var require_string_width5 = __commonJS({
79576
+ "node_modules/cli-progress/node_modules/string-width/index.js"(exports2, module2) {
79577
+ "use strict";
79578
+ var stripAnsi2 = require_strip_ansi();
79579
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
79580
+ var emojiRegex2 = require_emoji_regex5();
79581
+ var stringWidth2 = (string4) => {
79582
+ if (typeof string4 !== "string" || string4.length === 0) {
79583
+ return 0;
79584
+ }
79585
+ string4 = stripAnsi2(string4);
79586
+ if (string4.length === 0) {
79587
+ return 0;
79588
+ }
79589
+ string4 = string4.replace(emojiRegex2(), " ");
79590
+ let width = 0;
79591
+ for (let i = 0; i < string4.length; i++) {
79592
+ const code = string4.codePointAt(i);
79593
+ if (code <= 31 || code >= 127 && code <= 159) {
79594
+ continue;
79595
+ }
79596
+ if (code >= 768 && code <= 879) {
79597
+ continue;
79598
+ }
79599
+ if (code > 65535) {
79600
+ i++;
79601
+ }
79602
+ width += isFullwidthCodePoint(code) ? 2 : 1;
79603
+ }
79604
+ return width;
79605
+ };
79606
+ module2.exports = stringWidth2;
79607
+ module2.exports.default = stringWidth2;
79608
+ }
79609
+ });
79610
+
79463
79611
  // node_modules/cli-progress/lib/format-value.js
79464
79612
  var require_format_value = __commonJS({
79465
79613
  "node_modules/cli-progress/lib/format-value.js"(exports2, module2) {
@@ -79521,7 +79669,7 @@ var require_format_time = __commonJS({
79521
79669
  // node_modules/cli-progress/lib/formatter.js
79522
79670
  var require_formatter = __commonJS({
79523
79671
  "node_modules/cli-progress/lib/formatter.js"(exports2, module2) {
79524
- var _stringWidth = require_string_width();
79672
+ var _stringWidth = require_string_width5();
79525
79673
  var _defaultFormatValue = require_format_value();
79526
79674
  var _defaultFormatBar = require_format_bar();
79527
79675
  var _defaultFormatTime = require_format_time();
@@ -85959,7 +86107,7 @@ var {
85959
86107
  } = import_index.default;
85960
86108
 
85961
86109
  // cli.ts
85962
- var import_chalk13 = __toESM(require_source(), 1);
86110
+ var import_chalk14 = __toESM(require_source(), 1);
85963
86111
  var import_inquirer9 = __toESM(require_inquirer(), 1);
85964
86112
 
85965
86113
  // package.json
@@ -85968,7 +86116,7 @@ var package_default = {
85968
86116
  type: "module",
85969
86117
  homepage: "https://appwrite.io/support",
85970
86118
  description: "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
85971
- version: "17.3.0",
86119
+ version: "17.4.0",
85972
86120
  license: "BSD-3-Clause",
85973
86121
  main: "dist/index.cjs",
85974
86122
  module: "dist/index.js",
@@ -85998,7 +86146,8 @@ var package_default = {
85998
86146
  scripts: {
85999
86147
  build: "npm run build:types && npm run build:runtime",
86000
86148
  "build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
86001
- "build:runtime": "npm run build:lib:esm && npm run build:lib:cjs && npm run build:cli",
86149
+ "build:runtime": "npm run build:lib:runtime && npm run build:cli",
86150
+ "build:lib:runtime": "npm run build:lib:esm && npm run build:lib:cjs",
86002
86151
  "build:lib:esm": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --loader:.hbs=text --outfile=dist/index.js",
86003
86152
  "build:lib:cjs": "esbuild index.ts --bundle --platform=node --target=node18 --format=cjs --loader:.hbs=text --outfile=dist/index.cjs",
86004
86153
  "build:cli": "esbuild cli.ts --bundle --platform=node --target=node18 --format=cjs --loader:.hbs=text --external:fsevents --outfile=dist/cli.cjs",
@@ -86015,7 +86164,7 @@ var package_default = {
86015
86164
  "windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe"
86016
86165
  },
86017
86166
  dependencies: {
86018
- "@appwrite.io/console": "~8.2.0",
86167
+ "@appwrite.io/console": "~8.3.0",
86019
86168
  chalk: "4.1.2",
86020
86169
  chokidar: "^3.6.0",
86021
86170
  "cli-progress": "^3.12.0",
@@ -86028,6 +86177,7 @@ var package_default = {
86028
86177
  inquirer: "^8.2.4",
86029
86178
  "inquirer-search-list": "^1.2.6",
86030
86179
  "json-bigint": "^1.0.0",
86180
+ "string-width": "^7.2.0",
86031
86181
  tail: "^2.2.6",
86032
86182
  tar: "^7.4.3",
86033
86183
  undici: "^5.28.2",
@@ -86060,7 +86210,7 @@ var package_default = {
86060
86210
  };
86061
86211
 
86062
86212
  // lib/parser.ts
86063
- var import_chalk = __toESM(require_source(), 1);
86213
+ var import_chalk2 = __toESM(require_source(), 1);
86064
86214
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
86065
86215
 
86066
86216
  // lib/config.ts
@@ -87672,8 +87822,8 @@ var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][
87672
87822
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
87673
87823
  function timeSource(args) {
87674
87824
  const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
87675
- const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
87676
- return regex;
87825
+ const regex2 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
87826
+ return regex2;
87677
87827
  }
87678
87828
  function time(args) {
87679
87829
  return new RegExp(`^${timeSource(args)}$`);
@@ -87689,8 +87839,8 @@ function datetime(args) {
87689
87839
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
87690
87840
  }
87691
87841
  var string = (params) => {
87692
- const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
87693
- return new RegExp(`^${regex}$`);
87842
+ const regex2 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
87843
+ return new RegExp(`^${regex2}$`);
87694
87844
  };
87695
87845
  var bigint = /^-?\d+n?$/;
87696
87846
  var integer = /^-?\d+$/;
@@ -97336,9 +97486,9 @@ var stringProcessor = (schema, ctx, _json, _params) => {
97336
97486
  json2.pattern = regexes[0].source;
97337
97487
  else if (regexes.length > 1) {
97338
97488
  json2.allOf = [
97339
- ...regexes.map((regex) => ({
97489
+ ...regexes.map((regex2) => ({
97340
97490
  ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
97341
- pattern: regex.source
97491
+ pattern: regex2.source
97342
97492
  }))
97343
97493
  ];
97344
97494
  }
@@ -98548,10 +98698,10 @@ function hex2(_params) {
98548
98698
  function hash(alg, params) {
98549
98699
  const enc = params?.enc ?? "hex";
98550
98700
  const format = `${alg}_${enc}`;
98551
- const regex = regexes_exports[format];
98552
- if (!regex)
98701
+ const regex2 = regexes_exports[format];
98702
+ if (!regex2)
98553
98703
  throw new Error(`Unrecognized hash format: ${format}`);
98554
- return _stringFormat(ZodCustomStringFormat, format, regex, params);
98704
+ return _stringFormat(ZodCustomStringFormat, format, regex2, params);
98555
98705
  }
98556
98706
  var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
98557
98707
  $ZodNumber.init(inst, def);
@@ -100258,7 +100408,7 @@ var import_child_process = __toESM(require("child_process"), 1);
100258
100408
  // lib/constants.ts
100259
100409
  var SDK_TITLE = "Appwrite";
100260
100410
  var SDK_TITLE_LOWER = "appwrite";
100261
- var SDK_VERSION = "17.3.0";
100411
+ var SDK_VERSION = "17.4.0";
100262
100412
  var SDK_NAME = "Command Line";
100263
100413
  var SDK_PLATFORM = "console";
100264
100414
  var SDK_LANGUAGE = "cli";
@@ -100326,12 +100476,40 @@ var createSettingsObject = (project2) => {
100326
100476
  }
100327
100477
  };
100328
100478
  };
100479
+ var getSafeDirectoryName = (value, fallback) => {
100480
+ const normalized = value.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
100481
+ return normalized || fallback;
100482
+ };
100329
100483
  var getErrorMessage = (error49) => {
100330
100484
  if (error49 instanceof Error) {
100331
100485
  return error49.message;
100332
100486
  }
100333
100487
  return String(error49);
100334
100488
  };
100489
+ var getConsoleBaseUrl = (endpoint) => {
100490
+ return endpoint.replace(/\/v1\/?$/, "");
100491
+ };
100492
+ var getConsoleProjectSlug = (endpoint, projectId) => {
100493
+ try {
100494
+ const hostname3 = new URL(endpoint).hostname;
100495
+ const isCloudHostname = hostname3 === "cloud.appwrite.io" || hostname3.endsWith(".cloud.appwrite.io");
100496
+ if (!isCloudHostname) {
100497
+ return `project-${projectId}`;
100498
+ }
100499
+ const firstSubdomain = hostname3.split(".")[0];
100500
+ return firstSubdomain.length === 3 ? `project-${firstSubdomain}-${projectId}` : `project-${projectId}`;
100501
+ } catch {
100502
+ return `project-${projectId}`;
100503
+ }
100504
+ };
100505
+ var getFunctionDeploymentConsoleUrl = (endpoint, projectId, functionId, deploymentId) => {
100506
+ const projectSlug = getConsoleProjectSlug(endpoint, projectId);
100507
+ return `${getConsoleBaseUrl(endpoint)}/console/${projectSlug}/functions/function-${functionId}/deployment-${deploymentId}`;
100508
+ };
100509
+ var getSiteDeploymentConsoleUrl = (endpoint, projectId, siteId, deploymentId) => {
100510
+ const projectSlug = getConsoleProjectSlug(endpoint, projectId);
100511
+ return `${getConsoleBaseUrl(endpoint)}/console/${projectSlug}/sites/site-${siteId}/deployments/deployment-${deploymentId}`;
100512
+ };
100335
100513
  var UPDATE_CHECK_FILE_NAME = "update-check.json";
100336
100514
  var DEFAULT_UPDATE_CHECK_TIMEOUT_MS = 250;
100337
100515
  var getCurrentTimestamp = () => {
@@ -101643,7 +101821,7 @@ var Client = class _Client {
101643
101821
  "x-sdk-name": "Console",
101644
101822
  "x-sdk-platform": "console",
101645
101823
  "x-sdk-language": "web",
101646
- "x-sdk-version": "8.2.0",
101824
+ "x-sdk-version": "8.3.0",
101647
101825
  "X-Appwrite-Response-Format": "1.9.0"
101648
101826
  };
101649
101827
  this.realtime = {
@@ -113653,6 +113831,146 @@ var Organizations = class {
113653
113831
  };
113654
113832
  return this.client.call("delete", uri, apiHeaders, payload);
113655
113833
  }
113834
+ listAddons(paramsOrFirst) {
113835
+ let params;
113836
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113837
+ params = paramsOrFirst || {};
113838
+ } else {
113839
+ params = {
113840
+ organizationId: paramsOrFirst
113841
+ };
113842
+ }
113843
+ const organizationId = params.organizationId;
113844
+ if (typeof organizationId === "undefined") {
113845
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113846
+ }
113847
+ const apiPath = "/organizations/{organizationId}/addons".replace("{organizationId}", organizationId);
113848
+ const payload = {};
113849
+ const uri = new URL(this.client.config.endpoint + apiPath);
113850
+ const apiHeaders = {};
113851
+ return this.client.call("get", uri, apiHeaders, payload);
113852
+ }
113853
+ createBaaAddon(paramsOrFirst) {
113854
+ let params;
113855
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113856
+ params = paramsOrFirst || {};
113857
+ } else {
113858
+ params = {
113859
+ organizationId: paramsOrFirst
113860
+ };
113861
+ }
113862
+ const organizationId = params.organizationId;
113863
+ if (typeof organizationId === "undefined") {
113864
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113865
+ }
113866
+ const apiPath = "/organizations/{organizationId}/addons/baa".replace("{organizationId}", organizationId);
113867
+ const payload = {};
113868
+ const uri = new URL(this.client.config.endpoint + apiPath);
113869
+ const apiHeaders = {
113870
+ "content-type": "application/json"
113871
+ };
113872
+ return this.client.call("post", uri, apiHeaders, payload);
113873
+ }
113874
+ getAddon(paramsOrFirst, ...rest) {
113875
+ let params;
113876
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113877
+ params = paramsOrFirst || {};
113878
+ } else {
113879
+ params = {
113880
+ organizationId: paramsOrFirst,
113881
+ addonId: rest[0]
113882
+ };
113883
+ }
113884
+ const organizationId = params.organizationId;
113885
+ const addonId = params.addonId;
113886
+ if (typeof organizationId === "undefined") {
113887
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113888
+ }
113889
+ if (typeof addonId === "undefined") {
113890
+ throw new AppwriteException('Missing required parameter: "addonId"');
113891
+ }
113892
+ const apiPath = "/organizations/{organizationId}/addons/{addonId}".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
113893
+ const payload = {};
113894
+ const uri = new URL(this.client.config.endpoint + apiPath);
113895
+ const apiHeaders = {};
113896
+ return this.client.call("get", uri, apiHeaders, payload);
113897
+ }
113898
+ deleteAddon(paramsOrFirst, ...rest) {
113899
+ let params;
113900
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113901
+ params = paramsOrFirst || {};
113902
+ } else {
113903
+ params = {
113904
+ organizationId: paramsOrFirst,
113905
+ addonId: rest[0]
113906
+ };
113907
+ }
113908
+ const organizationId = params.organizationId;
113909
+ const addonId = params.addonId;
113910
+ if (typeof organizationId === "undefined") {
113911
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113912
+ }
113913
+ if (typeof addonId === "undefined") {
113914
+ throw new AppwriteException('Missing required parameter: "addonId"');
113915
+ }
113916
+ const apiPath = "/organizations/{organizationId}/addons/{addonId}".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
113917
+ const payload = {};
113918
+ const uri = new URL(this.client.config.endpoint + apiPath);
113919
+ const apiHeaders = {
113920
+ "content-type": "application/json"
113921
+ };
113922
+ return this.client.call("delete", uri, apiHeaders, payload);
113923
+ }
113924
+ confirmAddonPayment(paramsOrFirst, ...rest) {
113925
+ let params;
113926
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113927
+ params = paramsOrFirst || {};
113928
+ } else {
113929
+ params = {
113930
+ organizationId: paramsOrFirst,
113931
+ addonId: rest[0]
113932
+ };
113933
+ }
113934
+ const organizationId = params.organizationId;
113935
+ const addonId = params.addonId;
113936
+ if (typeof organizationId === "undefined") {
113937
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113938
+ }
113939
+ if (typeof addonId === "undefined") {
113940
+ throw new AppwriteException('Missing required parameter: "addonId"');
113941
+ }
113942
+ const apiPath = "/organizations/{organizationId}/addons/{addonId}/confirmations".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
113943
+ const payload = {};
113944
+ const uri = new URL(this.client.config.endpoint + apiPath);
113945
+ const apiHeaders = {
113946
+ "content-type": "application/json"
113947
+ };
113948
+ return this.client.call("post", uri, apiHeaders, payload);
113949
+ }
113950
+ getAddonPrice(paramsOrFirst, ...rest) {
113951
+ let params;
113952
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
113953
+ params = paramsOrFirst || {};
113954
+ } else {
113955
+ params = {
113956
+ organizationId: paramsOrFirst,
113957
+ addon: rest[0]
113958
+ };
113959
+ }
113960
+ const organizationId = params.organizationId;
113961
+ const addon = params.addon;
113962
+ if (typeof organizationId === "undefined") {
113963
+ throw new AppwriteException('Missing required parameter: "organizationId"');
113964
+ }
113965
+ if (typeof addon === "undefined") {
113966
+ throw new AppwriteException('Missing required parameter: "addon"');
113967
+ }
113968
+ const apiPath = "/organizations/{organizationId}/addons/{addon}/price".replace("{organizationId}", organizationId).replace("{addon}", addon);
113969
+ const payload = {};
113970
+ const uri = new URL(this.client.config.endpoint + apiPath);
113971
+ const apiHeaders = {};
113972
+ return this.client.call("get", uri, apiHeaders, payload);
113973
+ }
113656
113974
  listAggregations(paramsOrFirst, ...rest) {
113657
113975
  let params;
113658
113976
  if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -126248,6 +126566,10 @@ var SupabaseMigrationResource;
126248
126566
  SupabaseMigrationResource2["Bucket"] = "bucket";
126249
126567
  SupabaseMigrationResource2["File"] = "file";
126250
126568
  })(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
126569
+ var Addon;
126570
+ (function(Addon2) {
126571
+ Addon2["Baa"] = "baa";
126572
+ })(Addon || (Addon = {}));
126251
126573
  var ProjectUsageRange;
126252
126574
  (function(ProjectUsageRange2) {
126253
126575
  ProjectUsageRange2["OneHour"] = "1h";
@@ -126917,6 +127239,528 @@ var DomainPurchaseStatus;
126917
127239
  DomainPurchaseStatus2["Cancelled"] = "cancelled";
126918
127240
  })(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
126919
127241
 
127242
+ // lib/response-config.ts
127243
+ var import_chalk = __toESM(require_source(), 1);
127244
+
127245
+ // node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
127246
+ function ansiRegex({ onlyFirst = false } = {}) {
127247
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
127248
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
127249
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
127250
+ const pattern = `${osc}|${csi}`;
127251
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
127252
+ }
127253
+
127254
+ // node_modules/string-width/node_modules/strip-ansi/index.js
127255
+ var regex = ansiRegex();
127256
+ function stripAnsi(string4) {
127257
+ if (typeof string4 !== "string") {
127258
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string4}\``);
127259
+ }
127260
+ if (!string4.includes("\x1B") && !string4.includes("\x9B")) {
127261
+ return string4;
127262
+ }
127263
+ return string4.replace(regex, "");
127264
+ }
127265
+
127266
+ // node_modules/get-east-asian-width/lookup-data.js
127267
+ var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
127268
+ var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
127269
+ var halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
127270
+ var narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
127271
+ var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
127272
+
127273
+ // node_modules/get-east-asian-width/utilities.js
127274
+ var isInRange = (ranges, codePoint) => {
127275
+ let low = 0;
127276
+ let high = Math.floor(ranges.length / 2) - 1;
127277
+ while (low <= high) {
127278
+ const mid = Math.floor((low + high) / 2);
127279
+ const i = mid * 2;
127280
+ if (codePoint < ranges[i]) {
127281
+ high = mid - 1;
127282
+ } else if (codePoint > ranges[i + 1]) {
127283
+ low = mid + 1;
127284
+ } else {
127285
+ return true;
127286
+ }
127287
+ }
127288
+ return false;
127289
+ };
127290
+
127291
+ // node_modules/get-east-asian-width/lookup.js
127292
+ var minimumAmbiguousCodePoint = ambiguousRanges[0];
127293
+ var maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
127294
+ var minimumFullWidthCodePoint = fullwidthRanges[0];
127295
+ var maximumFullWidthCodePoint = fullwidthRanges.at(-1);
127296
+ var minimumHalfWidthCodePoint = halfwidthRanges[0];
127297
+ var maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
127298
+ var minimumNarrowCodePoint = narrowRanges[0];
127299
+ var maximumNarrowCodePoint = narrowRanges.at(-1);
127300
+ var minimumWideCodePoint = wideRanges[0];
127301
+ var maximumWideCodePoint = wideRanges.at(-1);
127302
+ var commonCjkCodePoint = 19968;
127303
+ var [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
127304
+ function findWideFastPathRange(ranges) {
127305
+ let fastPathStart = ranges[0];
127306
+ let fastPathEnd = ranges[1];
127307
+ for (let index = 0; index < ranges.length; index += 2) {
127308
+ const start = ranges[index];
127309
+ const end = ranges[index + 1];
127310
+ if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
127311
+ return [start, end];
127312
+ }
127313
+ if (end - start > fastPathEnd - fastPathStart) {
127314
+ fastPathStart = start;
127315
+ fastPathEnd = end;
127316
+ }
127317
+ }
127318
+ return [fastPathStart, fastPathEnd];
127319
+ }
127320
+ var isAmbiguous = (codePoint) => {
127321
+ if (codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint) {
127322
+ return false;
127323
+ }
127324
+ return isInRange(ambiguousRanges, codePoint);
127325
+ };
127326
+ var isFullWidth = (codePoint) => {
127327
+ if (codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint) {
127328
+ return false;
127329
+ }
127330
+ return isInRange(fullwidthRanges, codePoint);
127331
+ };
127332
+ var isWide = (codePoint) => {
127333
+ if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
127334
+ return true;
127335
+ }
127336
+ if (codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint) {
127337
+ return false;
127338
+ }
127339
+ return isInRange(wideRanges, codePoint);
127340
+ };
127341
+
127342
+ // node_modules/get-east-asian-width/index.js
127343
+ function validate(codePoint) {
127344
+ if (!Number.isSafeInteger(codePoint)) {
127345
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
127346
+ }
127347
+ }
127348
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
127349
+ validate(codePoint);
127350
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
127351
+ return 2;
127352
+ }
127353
+ return 1;
127354
+ }
127355
+
127356
+ // node_modules/string-width/index.js
127357
+ var import_emoji_regex = __toESM(require_emoji_regex4(), 1);
127358
+ var segmenter = new Intl.Segmenter();
127359
+ var defaultIgnorableCodePointRegex = new RegExp("^\\p{Default_Ignorable_Code_Point}$", "u");
127360
+ function stringWidth(string4, options = {}) {
127361
+ if (typeof string4 !== "string" || string4.length === 0) {
127362
+ return 0;
127363
+ }
127364
+ const {
127365
+ ambiguousIsNarrow = true,
127366
+ countAnsiEscapeCodes = false
127367
+ } = options;
127368
+ if (!countAnsiEscapeCodes) {
127369
+ string4 = stripAnsi(string4);
127370
+ }
127371
+ if (string4.length === 0) {
127372
+ return 0;
127373
+ }
127374
+ let width = 0;
127375
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
127376
+ for (const { segment: character } of segmenter.segment(string4)) {
127377
+ const codePoint = character.codePointAt(0);
127378
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
127379
+ continue;
127380
+ }
127381
+ if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
127382
+ continue;
127383
+ }
127384
+ if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
127385
+ continue;
127386
+ }
127387
+ if (codePoint >= 55296 && codePoint <= 57343) {
127388
+ continue;
127389
+ }
127390
+ if (codePoint >= 65024 && codePoint <= 65039) {
127391
+ continue;
127392
+ }
127393
+ if (defaultIgnorableCodePointRegex.test(character)) {
127394
+ continue;
127395
+ }
127396
+ if ((0, import_emoji_regex.default)().test(character)) {
127397
+ width += 2;
127398
+ continue;
127399
+ }
127400
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
127401
+ }
127402
+ return width;
127403
+ }
127404
+
127405
+ // lib/response-config.ts
127406
+ var splitWords = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_-]+/).filter(Boolean);
127407
+ var toTitleCase = (value) => splitWords(value).map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()).join(" ");
127408
+ var padColumn = (value, width) => {
127409
+ const valueWidth = stringWidth(value);
127410
+ if (valueWidth >= width) return value;
127411
+ return value + " ".repeat(width - valueWidth);
127412
+ };
127413
+ var renderAlignedColumns = (columns, options = {}, headers) => {
127414
+ const indent = options.indent ?? "";
127415
+ const widths = columns.map((column, columnIndex) => {
127416
+ const dataWidth = column.reduce(
127417
+ (max, value) => Math.max(max, stringWidth(value)),
127418
+ 0
127419
+ );
127420
+ const headerWidth = stringWidth(headers?.[columnIndex] ?? "");
127421
+ return Math.max(dataWidth, headerWidth);
127422
+ });
127423
+ if (headers && headers.length === columns.length) {
127424
+ const headerParts = headers.map((header, columnIndex) => {
127425
+ const value = import_chalk.default.cyan.bold(header);
127426
+ if (columnIndex === columns.length - 1) {
127427
+ return value;
127428
+ }
127429
+ return padColumn(value, widths[columnIndex]);
127430
+ });
127431
+ console.log(`${indent}${headerParts.join(" ")}`.trimEnd());
127432
+ }
127433
+ for (let idx = 0; idx < columns[0].length; idx++) {
127434
+ const parts = columns.map((column, columnIndex) => {
127435
+ const value = column[idx] ?? "";
127436
+ if (columnIndex === columns.length - 1) {
127437
+ return value;
127438
+ }
127439
+ return padColumn(value, widths[columnIndex]);
127440
+ });
127441
+ console.log(`${indent}${parts.join(" ")}`.trimEnd());
127442
+ }
127443
+ };
127444
+ var compactDate = (value) => {
127445
+ if (typeof value !== "string" || value.trim() === "") {
127446
+ return "\u2014";
127447
+ }
127448
+ return value.replace("T", " ").replace("+00:00", "Z");
127449
+ };
127450
+ var compactText = (value, fallback = "\u2014") => {
127451
+ if (typeof value !== "string") {
127452
+ return fallback;
127453
+ }
127454
+ const trimmed = value.trim();
127455
+ return trimmed === "" ? fallback : trimmed;
127456
+ };
127457
+ var compactAmount = (value) => {
127458
+ if (typeof value === "number" || typeof value === "string") {
127459
+ return String(value);
127460
+ }
127461
+ return "\u2014";
127462
+ };
127463
+ var isPresent = (value) => {
127464
+ if (value == null) return false;
127465
+ if (typeof value === "string") return value.trim() !== "";
127466
+ return true;
127467
+ };
127468
+ var valueFrom = (row, key) => row[key];
127469
+ var indexedLabel = (label, context) => `[${context.index + 1}] ${label}`;
127470
+ var createSummarySchema = (shape, requiredKeys, message) => external_exports.object(shape).passthrough().refine((row) => requiredKeys.some((key) => isPresent(row[key])), {
127471
+ message
127472
+ });
127473
+ var createColumnRenderer = (itemSchema, columns) => ({
127474
+ itemSchema,
127475
+ columns
127476
+ });
127477
+ var PaymentMethodSummarySchema = createSummarySchema(
127478
+ {
127479
+ providerUserId: external_exports.string().nullable().optional(),
127480
+ providerMethodId: external_exports.string().nullable().optional(),
127481
+ mandateId: external_exports.string().nullable().optional(),
127482
+ mandateStatus: external_exports.string().nullable().optional(),
127483
+ last4: external_exports.string().nullable().optional(),
127484
+ brand: external_exports.string().nullable().optional(),
127485
+ country: external_exports.string().nullable().optional(),
127486
+ expiryMonth: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127487
+ expiryYear: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127488
+ default: external_exports.boolean().optional(),
127489
+ expired: external_exports.boolean().optional(),
127490
+ failed: external_exports.boolean().optional()
127491
+ },
127492
+ ["providerUserId", "providerMethodId", "mandateId", "last4"],
127493
+ "Expected a payment method summary row"
127494
+ );
127495
+ var IdentitySummarySchema = createSummarySchema(
127496
+ {
127497
+ provider: external_exports.string().nullable().optional(),
127498
+ providerUid: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127499
+ providerEmail: external_exports.string().nullable().optional(),
127500
+ providerAccessTokenExpiry: external_exports.string().nullable().optional()
127501
+ },
127502
+ ["provider", "providerUid", "providerEmail"],
127503
+ "Expected an identity summary row"
127504
+ );
127505
+ var SessionSummarySchema = createSummarySchema(
127506
+ {
127507
+ provider: external_exports.string().nullable().optional(),
127508
+ current: external_exports.boolean().optional(),
127509
+ expire: external_exports.string().nullable().optional(),
127510
+ clientName: external_exports.string().nullable().optional(),
127511
+ clientType: external_exports.string().nullable().optional(),
127512
+ osName: external_exports.string().nullable().optional(),
127513
+ deviceName: external_exports.string().nullable().optional(),
127514
+ countryName: external_exports.string().nullable().optional(),
127515
+ countryCode: external_exports.string().nullable().optional()
127516
+ },
127517
+ ["provider", "expire"],
127518
+ "Expected a session summary row"
127519
+ );
127520
+ var LogSummarySchema = createSummarySchema(
127521
+ {
127522
+ event: external_exports.string().nullable().optional(),
127523
+ time: external_exports.string().nullable().optional(),
127524
+ clientName: external_exports.string().nullable().optional(),
127525
+ osName: external_exports.string().nullable().optional(),
127526
+ countryName: external_exports.string().nullable().optional(),
127527
+ countryCode: external_exports.string().nullable().optional(),
127528
+ mode: external_exports.string().nullable().optional()
127529
+ },
127530
+ ["event", "time"],
127531
+ "Expected a log summary row"
127532
+ );
127533
+ var InvoiceSummarySchema = createSummarySchema(
127534
+ {
127535
+ plan: external_exports.string().nullable().optional(),
127536
+ currency: external_exports.string().nullable().optional(),
127537
+ amount: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127538
+ grossAmount: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
127539
+ status: external_exports.string().nullable().optional(),
127540
+ dueAt: external_exports.string().nullable().optional(),
127541
+ from: external_exports.string().nullable().optional(),
127542
+ to: external_exports.string().nullable().optional()
127543
+ },
127544
+ ["plan", "status", "dueAt"],
127545
+ "Expected an invoice summary row"
127546
+ );
127547
+ var paymentMethodLabel = (row) => {
127548
+ const brand = valueFrom(row, "brand") ?? "";
127549
+ const last4 = valueFrom(row, "last4") ?? "";
127550
+ if (brand && last4) {
127551
+ return `${toTitleCase(brand)} \u2022\u2022\u2022\u2022 ${last4}`;
127552
+ }
127553
+ if (last4) {
127554
+ return `Card \u2022\u2022\u2022\u2022 ${last4}`;
127555
+ }
127556
+ return "Setup only";
127557
+ };
127558
+ var paymentMethodDetails = (row) => {
127559
+ const expiryMonth = valueFrom(row, "expiryMonth");
127560
+ const expiryYear = valueFrom(row, "expiryYear");
127561
+ if (expiryMonth != null && expiryYear != null) {
127562
+ return `exp ${String(expiryMonth).padStart(2, "0")}/${String(expiryYear)}`;
127563
+ }
127564
+ return "no card data";
127565
+ };
127566
+ var paymentMethodStatus = (row) => {
127567
+ const mandateStatus = valueFrom(row, "mandateStatus");
127568
+ if (mandateStatus && mandateStatus.trim() !== "") {
127569
+ return `mandate: ${mandateStatus}`;
127570
+ }
127571
+ if (row.failed === true) {
127572
+ return "status: failed";
127573
+ }
127574
+ if (row.expired === true) {
127575
+ return "status: expired";
127576
+ }
127577
+ if (isPresent(valueFrom(row, "providerMethodId")) || isPresent(valueFrom(row, "last4"))) {
127578
+ return "status: active";
127579
+ }
127580
+ return "status: pending";
127581
+ };
127582
+ var structuredCollectionRenderers = {
127583
+ identities: createColumnRenderer(IdentitySummarySchema, [
127584
+ {
127585
+ header: "identity",
127586
+ value: (row, context) => indexedLabel(
127587
+ toTitleCase(compactText(valueFrom(row, "provider"), "Identity")),
127588
+ context
127589
+ )
127590
+ },
127591
+ {
127592
+ header: "account",
127593
+ value: (row) => {
127594
+ const providerEmail = valueFrom(row, "providerEmail");
127595
+ const providerUid = valueFrom(row, "providerUid");
127596
+ if (providerEmail && providerEmail.trim() !== "") {
127597
+ return providerEmail;
127598
+ }
127599
+ if (providerUid != null) {
127600
+ return `uid ${providerUid}`;
127601
+ }
127602
+ return "\u2014";
127603
+ }
127604
+ },
127605
+ {
127606
+ header: "identifier",
127607
+ value: (row) => {
127608
+ const providerEmail = valueFrom(row, "providerEmail");
127609
+ const providerUid = valueFrom(row, "providerUid");
127610
+ if (providerEmail && providerEmail.trim() !== "" && providerUid != null) {
127611
+ return `uid ${providerUid}`;
127612
+ }
127613
+ return "";
127614
+ }
127615
+ },
127616
+ {
127617
+ header: "expires",
127618
+ value: (row) => {
127619
+ const expiry = valueFrom(row, "providerAccessTokenExpiry");
127620
+ return expiry ? `expires ${compactDate(expiry)}` : "";
127621
+ }
127622
+ }
127623
+ ]),
127624
+ sessions: createColumnRenderer(SessionSummarySchema, [
127625
+ {
127626
+ header: "session",
127627
+ value: (row, context) => {
127628
+ const provider = compactText(valueFrom(row, "provider"), "Session");
127629
+ const current = row.current === true ? " (current)" : "";
127630
+ return indexedLabel(`${toTitleCase(provider)}${current}`, context);
127631
+ }
127632
+ },
127633
+ {
127634
+ header: "client",
127635
+ value: (row) => {
127636
+ const clientName = compactText(valueFrom(row, "clientName"), "");
127637
+ const osName = compactText(valueFrom(row, "osName"), "");
127638
+ const deviceName = compactText(valueFrom(row, "deviceName"), "");
127639
+ if (clientName && osName) {
127640
+ return `${clientName} on ${osName}`;
127641
+ }
127642
+ if (clientName && deviceName) {
127643
+ return `${clientName} on ${deviceName}`;
127644
+ }
127645
+ return clientName || osName || deviceName || "\u2014";
127646
+ }
127647
+ },
127648
+ {
127649
+ header: "location",
127650
+ value: (row) => compactText(row.countryName ?? row.countryCode, "\u2014")
127651
+ },
127652
+ {
127653
+ header: "expires",
127654
+ value: (row) => `expires ${compactDate(valueFrom(row, "expire"))}`
127655
+ }
127656
+ ]),
127657
+ logs: createColumnRenderer(LogSummarySchema, [
127658
+ {
127659
+ header: "time",
127660
+ value: (row) => compactDate(valueFrom(row, "time"))
127661
+ },
127662
+ {
127663
+ header: "event",
127664
+ value: (row) => {
127665
+ const event = compactText(valueFrom(row, "event"), "event");
127666
+ const mode = valueFrom(row, "mode");
127667
+ if (mode && mode.trim() !== "" && mode !== "default") {
127668
+ return `${event} (${mode})`;
127669
+ }
127670
+ return event;
127671
+ }
127672
+ },
127673
+ {
127674
+ header: "client",
127675
+ value: (row) => {
127676
+ const clientName = compactText(valueFrom(row, "clientName"), "");
127677
+ const osName = compactText(valueFrom(row, "osName"), "");
127678
+ if (clientName && osName) {
127679
+ return `${clientName} on ${osName}`;
127680
+ }
127681
+ return clientName || osName || "\u2014";
127682
+ }
127683
+ },
127684
+ {
127685
+ header: "location",
127686
+ value: (row) => compactText(row.countryName ?? row.countryCode, "\u2014")
127687
+ }
127688
+ ]),
127689
+ invoices: createColumnRenderer(InvoiceSummarySchema, [
127690
+ {
127691
+ header: "status",
127692
+ value: (row, context) => indexedLabel(compactText(valueFrom(row, "status"), "pending"), context)
127693
+ },
127694
+ {
127695
+ header: "plan",
127696
+ value: (row) => compactText(valueFrom(row, "plan"))
127697
+ },
127698
+ {
127699
+ header: "amount",
127700
+ value: (row) => {
127701
+ const currency = compactText(valueFrom(row, "currency"), "\u2014");
127702
+ const grossAmount = valueFrom(row, "grossAmount");
127703
+ const amount = valueFrom(row, "amount");
127704
+ return `${currency} ${grossAmount != null ? compactAmount(grossAmount) : compactAmount(amount)}`.trim();
127705
+ }
127706
+ },
127707
+ {
127708
+ header: "due",
127709
+ value: (row) => `due ${compactDate(valueFrom(row, "dueAt"))}`
127710
+ },
127711
+ {
127712
+ header: "period",
127713
+ value: (row) => `${compactDate(valueFrom(row, "from"))} -> ${compactDate(valueFrom(row, "to"))}`
127714
+ }
127715
+ ]),
127716
+ paymentMethods: createColumnRenderer(PaymentMethodSummarySchema, [
127717
+ {
127718
+ header: "method",
127719
+ value: (row, context) => indexedLabel(paymentMethodLabel(row), context)
127720
+ },
127721
+ {
127722
+ header: "country",
127723
+ value: (row) => compactText(valueFrom(row, "country"), "\u2014")
127724
+ },
127725
+ {
127726
+ header: "details",
127727
+ value: (row) => paymentMethodDetails(row)
127728
+ },
127729
+ {
127730
+ header: "default",
127731
+ value: (row) => `default: ${Boolean(row.default) ? "yes" : "no"}`
127732
+ },
127733
+ {
127734
+ header: "status",
127735
+ value: (row) => paymentMethodStatus(row)
127736
+ }
127737
+ ])
127738
+ };
127739
+ var renderStructuredCollection = (sectionName, rows, options = {}) => {
127740
+ if (!sectionName) {
127741
+ return false;
127742
+ }
127743
+ const renderer = structuredCollectionRenderers[sectionName];
127744
+ if (!renderer) {
127745
+ return false;
127746
+ }
127747
+ const allRowsMatch = rows.every(
127748
+ (row) => renderer.itemSchema.safeParse(row).success
127749
+ );
127750
+ if (!allRowsMatch) {
127751
+ return false;
127752
+ }
127753
+ const columns = renderer.columns.map(
127754
+ (column) => rows.map((row, index) => column.value(row, { index }))
127755
+ );
127756
+ renderAlignedColumns(
127757
+ columns,
127758
+ options,
127759
+ renderer.columns.map((column) => column.header)
127760
+ );
127761
+ return true;
127762
+ };
127763
+
126920
127764
  // lib/parser.ts
126921
127765
  BigInt.prototype.toJSON = function() {
126922
127766
  return this.toString();
@@ -126948,12 +127792,17 @@ var SENSITIVE_KEYS = /* @__PURE__ */ new Set([
126948
127792
  ]);
126949
127793
  var renderDepth = 0;
126950
127794
  var redactionApplied = false;
127795
+ var renderedRedactionApplied = false;
126951
127796
  var toJsonObject = (value) => {
126952
127797
  if (value && typeof value === "object" && !Array.isArray(value)) {
126953
127798
  return value;
126954
127799
  }
126955
127800
  return null;
126956
127801
  };
127802
+ var isNormalViewHiddenKey = (key) => key.startsWith("$") && key !== "$id";
127803
+ var printSpacerLine = () => {
127804
+ process.stdout.write(" \n");
127805
+ };
126957
127806
  var extractReportCommandArgs = (value) => {
126958
127807
  if (!value || typeof value !== "object") {
126959
127808
  return [];
@@ -126967,15 +127816,17 @@ var extractReportCommandArgs = (value) => {
126967
127816
  var beginRender = () => {
126968
127817
  if (renderDepth === 0) {
126969
127818
  redactionApplied = false;
127819
+ renderedRedactionApplied = false;
126970
127820
  }
126971
127821
  renderDepth++;
126972
127822
  };
126973
127823
  var endRender = () => {
126974
127824
  renderDepth = Math.max(0, renderDepth - 1);
126975
- if (renderDepth === 0 && redactionApplied && !cliConfig.showSecrets) {
127825
+ const shouldShowRedactionHint = cliConfig.json || cliConfig.raw ? redactionApplied : renderedRedactionApplied;
127826
+ if (renderDepth === 0 && shouldShowRedactionHint && !cliConfig.showSecrets) {
126976
127827
  const message = "Sensitive values were redacted. Pass --show-secrets to display them.";
126977
127828
  if (cliConfig.json || cliConfig.raw) {
126978
- console.error(`${import_chalk.default.cyan.bold("\u2665 Hint:")} ${import_chalk.default.cyan(message)}`);
127829
+ console.error(`${import_chalk2.default.cyan.bold("\u2665 Hint:")} ${import_chalk2.default.cyan(message)}`);
126979
127830
  } else {
126980
127831
  hint(message);
126981
127832
  }
@@ -126991,7 +127842,9 @@ var withRender = (callback) => {
126991
127842
  };
126992
127843
  var isSensitiveKey = (key) => {
126993
127844
  const normalizedKey = key.toLowerCase().replace(/[^a-z0-9]/g, "");
126994
- return SENSITIVE_KEYS.has(normalizedKey);
127845
+ return [...SENSITIVE_KEYS].some(
127846
+ (sensitiveKey) => normalizedKey === sensitiveKey || normalizedKey.endsWith(sensitiveKey)
127847
+ );
126995
127848
  };
126996
127849
  var maskSensitiveString = (value) => {
126997
127850
  if (value.length <= 16) {
@@ -127005,9 +127858,11 @@ var maskSensitiveString = (value) => {
127005
127858
  }
127006
127859
  return `${HIDDEN_VALUE}${value.slice(-4)}`;
127007
127860
  };
127008
- var maskSensitiveData = (value, key) => {
127861
+ var maskSensitiveData = (value, key, trackRedaction = true) => {
127009
127862
  if (key && isSensitiveKey(key) && !cliConfig.showSecrets) {
127010
- redactionApplied = true;
127863
+ if (trackRedaction) {
127864
+ redactionApplied = true;
127865
+ }
127011
127866
  if (typeof value === "string") {
127012
127867
  return maskSensitiveString(value);
127013
127868
  }
@@ -127017,7 +127872,9 @@ var maskSensitiveData = (value, key) => {
127017
127872
  return HIDDEN_VALUE;
127018
127873
  }
127019
127874
  if (Array.isArray(value)) {
127020
- return value.map((item) => maskSensitiveData(item));
127875
+ return value.map(
127876
+ (item) => maskSensitiveData(item, void 0, trackRedaction)
127877
+ );
127021
127878
  }
127022
127879
  if (value && typeof value === "object") {
127023
127880
  if (value?.constructor?.name === "BigNumber") {
@@ -127027,7 +127884,11 @@ var maskSensitiveData = (value, key) => {
127027
127884
  for (const childKey of Object.keys(value)) {
127028
127885
  const childValue = value[childKey];
127029
127886
  if (typeof childValue === "function") continue;
127030
- result[childKey] = maskSensitiveData(childValue, childKey);
127887
+ result[childKey] = maskSensitiveData(
127888
+ childValue,
127889
+ childKey,
127890
+ trackRedaction
127891
+ );
127031
127892
  }
127032
127893
  return result;
127033
127894
  }
@@ -127090,21 +127951,36 @@ var filterData = (data) => {
127090
127951
  };
127091
127952
  var parse3 = (data) => {
127092
127953
  withRender(() => {
127093
- const sanitizedData = maskSensitiveData(data);
127954
+ if (data == null || typeof data === "string" && data.trim() === "") {
127955
+ if (!cliConfig.json && !cliConfig.raw) {
127956
+ success2("Request completed successfully.");
127957
+ }
127958
+ return;
127959
+ }
127094
127960
  if (cliConfig.raw) {
127095
- drawJSON(sanitizedData);
127961
+ const sanitizedData2 = maskSensitiveData(data);
127962
+ drawJSON(sanitizedData2);
127096
127963
  return;
127097
127964
  }
127098
127965
  if (cliConfig.json) {
127099
- drawJSON(filterData(sanitizedData));
127966
+ const sanitizedData2 = maskSensitiveData(data);
127967
+ drawJSON(filterData(sanitizedData2));
127100
127968
  return;
127101
127969
  }
127102
- const keys = Object.keys(sanitizedData).filter(
127103
- (k2) => typeof sanitizedData[k2] !== "function"
127970
+ const sanitizedData = maskSensitiveData(data, void 0, false);
127971
+ const objectData = toJsonObject(sanitizedData);
127972
+ if (!objectData) {
127973
+ console.log(String(sanitizedData));
127974
+ return;
127975
+ }
127976
+ const keys = Object.keys(objectData).filter(
127977
+ (k2) => typeof objectData[k2] !== "function"
127104
127978
  );
127105
- let printedScalar = false;
127979
+ const scalarEntries = [];
127980
+ const sections = [];
127106
127981
  for (const key of keys) {
127107
- const value = sanitizedData[key];
127982
+ if (isNormalViewHiddenKey(key)) continue;
127983
+ const value = objectData[key];
127108
127984
  if (value == null) continue;
127109
127985
  if (typeof value === "string" && value.trim() === "") continue;
127110
127986
  if (Array.isArray(value)) {
@@ -127113,40 +127989,64 @@ var parse3 = (data) => {
127113
127989
  (item) => item && typeof item === "object" && !Array.isArray(item) && Object.keys(item).length === 0
127114
127990
  ))
127115
127991
  continue;
127116
- console.log();
127117
- console.log(`${import_chalk.default.yellow.bold.underline(key)}`);
127118
- if (typeof value[0] === "object") {
127119
- drawTable(value);
127120
- } else {
127121
- drawJSON(value);
127122
- }
127123
- console.log();
127124
- printedScalar = false;
127992
+ sections.push({ key, value });
127125
127993
  } else if (typeof value === "object") {
127126
127994
  if (value?.constructor?.name === "BigNumber") {
127127
- console.log(`${import_chalk.default.yellow.bold(key)} : ${value}`);
127128
- printedScalar = true;
127995
+ scalarEntries.push([key, String(value)]);
127129
127996
  } else {
127130
127997
  const tableRow = toJsonObject(value) ?? {};
127131
127998
  if (Object.keys(tableRow).length === 0) continue;
127132
- console.log();
127133
- console.log(`${import_chalk.default.yellow.bold.underline(key)}`);
127134
- drawTable([tableRow]);
127135
- console.log();
127136
- printedScalar = false;
127999
+ sections.push({ key, value: tableRow });
128000
+ }
128001
+ } else {
128002
+ scalarEntries.push([key, formatKeyValue(key, value)]);
128003
+ }
128004
+ }
128005
+ let hasOutput = false;
128006
+ if (scalarEntries.length > 0) {
128007
+ drawKeyValueEntries(scalarEntries);
128008
+ hasOutput = true;
128009
+ }
128010
+ for (const section of sections) {
128011
+ if (hasOutput) {
128012
+ printSpacerLine();
128013
+ }
128014
+ if (Array.isArray(section.value)) {
128015
+ const sectionTitle = typeof section.value[0] === "object" ? `${section.key} (${section.value.length})` : section.key;
128016
+ console.log(`${import_chalk2.default.yellow.bold.underline(sectionTitle)}`);
128017
+ if (typeof section.value[0] === "object") {
128018
+ drawTable(section.value, { indent: " ", sectionName: section.key });
128019
+ } else {
128020
+ drawScalarArray(section.value, { indent: " " });
127137
128021
  }
127138
128022
  } else {
127139
- console.log(`${import_chalk.default.yellow.bold(key)} : ${value}`);
127140
- printedScalar = true;
128023
+ console.log(`${import_chalk2.default.yellow.bold.underline(section.key)}`);
128024
+ drawTable([section.value], {
128025
+ indent: " ",
128026
+ sectionName: section.key
128027
+ });
127141
128028
  }
128029
+ hasOutput = true;
127142
128030
  }
127143
128031
  });
127144
128032
  };
127145
128033
  var MAX_COL_WIDTH = 40;
128034
+ var MAX_COLUMNS = 6;
127146
128035
  var formatCellValue = (value) => {
127147
128036
  if (value == null) return "-";
128037
+ if (!cliConfig.showSecrets && typeof value === "string" && value.includes(HIDDEN_VALUE)) {
128038
+ renderedRedactionApplied = true;
128039
+ }
127148
128040
  if (Array.isArray(value)) {
127149
128041
  if (value.length === 0) return "[]";
128042
+ if (value.every(
128043
+ (item) => item == null || typeof item === "string" || typeof item === "number" || typeof item === "boolean"
128044
+ )) {
128045
+ const joinedValue = value.map((item) => String(item)).join(", ");
128046
+ if (joinedValue.length <= MAX_COL_WIDTH) {
128047
+ return joinedValue;
128048
+ }
128049
+ }
127150
128050
  return `[${value.length} items]`;
127151
128051
  }
127152
128052
  if (typeof value === "object") {
@@ -127161,7 +128061,110 @@ var formatCellValue = (value) => {
127161
128061
  }
127162
128062
  return str;
127163
128063
  };
127164
- var drawTable = (data) => {
128064
+ var formatKeyValue = (key, value) => {
128065
+ if (key === "status" && typeof value === "boolean") {
128066
+ return value ? "active" : "inactive";
128067
+ }
128068
+ return String(value);
128069
+ };
128070
+ var toScalarEntries = (row) => {
128071
+ const entries = [];
128072
+ for (const key of Object.keys(row)) {
128073
+ if (isNormalViewHiddenKey(key)) continue;
128074
+ const value = row[key];
128075
+ if (typeof value === "function") continue;
128076
+ if (value == null) continue;
128077
+ if (value?.constructor?.name === "BigNumber") {
128078
+ entries.push([key, String(value)]);
128079
+ continue;
128080
+ }
128081
+ if (typeof value === "object") continue;
128082
+ if (typeof value === "string" && value.trim() === "") continue;
128083
+ entries.push([key, formatKeyValue(key, value)]);
128084
+ }
128085
+ return entries;
128086
+ };
128087
+ var toDisplayEntries = (row) => {
128088
+ const entries = [];
128089
+ for (const key of Object.keys(row)) {
128090
+ if (isNormalViewHiddenKey(key)) continue;
128091
+ const value = row[key];
128092
+ if (typeof value === "function") continue;
128093
+ if (value == null) continue;
128094
+ if (typeof value === "string" && value.trim() === "") continue;
128095
+ entries.push([key, formatCellValue(value)]);
128096
+ }
128097
+ return entries;
128098
+ };
128099
+ var drawScalarArray = (values, options = {}) => {
128100
+ if (values.length === 0) {
128101
+ console.log(`${options.indent ?? ""}[]`);
128102
+ return;
128103
+ }
128104
+ const indent = options.indent ?? "";
128105
+ const displayValues = values.map((value) => formatCellValue(value));
128106
+ const joinedValues = displayValues.join(", ");
128107
+ if (joinedValues.length <= 80) {
128108
+ console.log(`${indent}${joinedValues}`);
128109
+ return;
128110
+ }
128111
+ displayValues.forEach((value, idx) => {
128112
+ console.log(`${indent}[${idx + 1}] ${value}`);
128113
+ });
128114
+ };
128115
+ var drawKeyValueEntries = (entries, options = {}) => {
128116
+ if (entries.length === 0) return;
128117
+ const indent = options.indent ?? "";
128118
+ const maxKeyLen = Math.max(...entries.map(([key]) => key.length));
128119
+ for (const [key, value] of entries) {
128120
+ const paddedKey = key.padEnd(maxKeyLen);
128121
+ if (!cliConfig.showSecrets && value.includes(HIDDEN_VALUE)) {
128122
+ renderedRedactionApplied = true;
128123
+ }
128124
+ console.log(`${indent}${import_chalk2.default.yellow.bold(paddedKey)} ${value}`);
128125
+ }
128126
+ };
128127
+ var drawNamedObjectCollection = (rows, options = {}) => {
128128
+ if (renderStructuredCollection(options.sectionName, rows, options)) {
128129
+ return true;
128130
+ }
128131
+ const scalarEntries = rows.map((row) => toScalarEntries(row));
128132
+ const flatScalarEntries = scalarEntries.flat();
128133
+ if (flatScalarEntries.length > 0) {
128134
+ scalarEntries.forEach((entries, idx) => {
128135
+ if (idx > 0) {
128136
+ console.log();
128137
+ }
128138
+ if (rows.length > 1) {
128139
+ const indent = options.indent ?? "";
128140
+ console.log(`${indent}${import_chalk2.default.cyan.bold(`[${idx + 1}]`)}`);
128141
+ }
128142
+ drawKeyValueEntries(entries, {
128143
+ indent: rows.length > 1 ? `${options.indent ?? ""} ` : options.indent
128144
+ });
128145
+ });
128146
+ return true;
128147
+ }
128148
+ const displayEntries = rows.map((row) => toDisplayEntries(row));
128149
+ const flatDisplayEntries = displayEntries.flat();
128150
+ if (flatDisplayEntries.length === 0) {
128151
+ return false;
128152
+ }
128153
+ displayEntries.forEach((entries, idx) => {
128154
+ if (idx > 0) {
128155
+ console.log();
128156
+ }
128157
+ if (rows.length > 1) {
128158
+ const indent = options.indent ?? "";
128159
+ console.log(`${indent}${import_chalk2.default.cyan.bold(`[${idx + 1}]`)}`);
128160
+ }
128161
+ drawKeyValueEntries(entries, {
128162
+ indent: rows.length > 1 ? `${options.indent ?? ""} ` : options.indent
128163
+ });
128164
+ });
128165
+ return true;
128166
+ };
128167
+ var drawTable = (data, options = {}) => {
127165
128168
  withRender(() => {
127166
128169
  if (data.length == 0) {
127167
128170
  console.log("[]");
@@ -127169,8 +128172,14 @@ var drawTable = (data) => {
127169
128172
  }
127170
128173
  const rows = applyDisplayFilter(
127171
128174
  data.map((item) => {
127172
- const maskedItem = maskSensitiveData(item);
127173
- return toJsonObject(maskedItem) ?? {};
128175
+ const maskedItem = maskSensitiveData(item, void 0, false);
128176
+ const row = toJsonObject(maskedItem) ?? {};
128177
+ const visibleRow = {};
128178
+ for (const key of Object.keys(row)) {
128179
+ if (isNormalViewHiddenKey(key)) continue;
128180
+ visibleRow[key] = row[key];
128181
+ }
128182
+ return visibleRow;
127174
128183
  })
127175
128184
  );
127176
128185
  const obj = rows.reduce((res, item) => ({ ...res, ...item }), {});
@@ -127179,42 +128188,14 @@ var drawTable = (data) => {
127179
128188
  drawJSON(data);
127180
128189
  return;
127181
128190
  }
127182
- const maxColumns = 6;
127183
- if (allKeys.length > maxColumns) {
127184
- const rowEntries = rows.map((row) => {
127185
- const entries = [];
127186
- for (const key of Object.keys(row)) {
127187
- const value = row[key];
127188
- if (typeof value === "function") continue;
127189
- if (value == null) continue;
127190
- if (value?.constructor?.name === "BigNumber") {
127191
- entries.push([key, String(value)]);
127192
- continue;
127193
- }
127194
- if (typeof value === "object") continue;
127195
- if (typeof value === "string" && value.trim() === "") continue;
127196
- entries.push([key, String(value)]);
127197
- }
127198
- return entries;
127199
- });
127200
- const flatEntries = rowEntries.flat();
127201
- if (flatEntries.length === 0) {
128191
+ if (allKeys.length > MAX_COLUMNS) {
128192
+ if (drawNamedObjectCollection(rows, options)) {
128193
+ return;
128194
+ }
128195
+ if (rows.every((row) => toScalarEntries(row).length === 0)) {
127202
128196
  drawJSON(data);
127203
128197
  return;
127204
128198
  }
127205
- const maxKeyLen = Math.max(...flatEntries.map(([key]) => key.length));
127206
- const separatorLen = Math.min(
127207
- maxKeyLen + 2 + MAX_COL_WIDTH,
127208
- process.stdout.columns || 80
127209
- );
127210
- rowEntries.forEach((entries, idx) => {
127211
- if (idx > 0) console.log(import_chalk.default.cyan("\u2500".repeat(separatorLen)));
127212
- for (const [key, value] of entries) {
127213
- const paddedKey = key.padEnd(maxKeyLen);
127214
- console.log(`${import_chalk.default.yellow.bold(paddedKey)} ${value}`);
127215
- }
127216
- });
127217
- return;
127218
128199
  }
127219
128200
  const columns = allKeys;
127220
128201
  const def = allKeys.reduce((result, key) => {
@@ -127223,7 +128204,7 @@ var drawTable = (data) => {
127223
128204
  }, {});
127224
128205
  const normalizedData = rows.map((item) => ({ ...def, ...item }));
127225
128206
  const table = new import_cli_table3.default({
127226
- head: columns.map((c) => import_chalk.default.cyan.italic.bold(c)),
128207
+ head: columns.map((c) => import_chalk2.default.cyan.italic.bold(c)),
127227
128208
  colWidths: columns.map(() => null),
127228
128209
  wordWrap: false,
127229
128210
  chars: {
@@ -127237,11 +128218,11 @@ var drawTable = (data) => {
127237
128218
  "bottom-right": " ",
127238
128219
  left: " ",
127239
128220
  "left-mid": " ",
127240
- mid: import_chalk.default.cyan("\u2500"),
127241
- "mid-mid": import_chalk.default.cyan("\u253C"),
128221
+ mid: import_chalk2.default.cyan("\u2500"),
128222
+ "mid-mid": import_chalk2.default.cyan("\u253C"),
127242
128223
  right: " ",
127243
128224
  "right-mid": " ",
127244
- middle: import_chalk.default.cyan("\u2502")
128225
+ middle: import_chalk2.default.cyan("\u2502")
127245
128226
  }
127246
128227
  });
127247
128228
  normalizedData.forEach((row) => {
@@ -127341,23 +128322,23 @@ var parseBool = (value) => {
127341
128322
  throw new InvalidArgumentError("Not a boolean.");
127342
128323
  };
127343
128324
  var log = (message) => {
127344
- console.log(`${import_chalk.default.cyan.bold("\u2139 Info:")} ${import_chalk.default.cyan(message ?? "")}`);
128325
+ console.log(`${import_chalk2.default.cyan.bold("\u2139 Info:")} ${import_chalk2.default.cyan(message ?? "")}`);
127345
128326
  };
127346
128327
  var warn = (message) => {
127347
128328
  console.log(
127348
- `${import_chalk.default.yellow.bold("\u2139 Warning:")} ${import_chalk.default.yellow(message ?? "")}`
128329
+ `${import_chalk2.default.yellow.bold("\u2139 Warning:")} ${import_chalk2.default.yellow(message ?? "")}`
127349
128330
  );
127350
128331
  };
127351
128332
  var hint = (message) => {
127352
- console.log(`${import_chalk.default.cyan.bold("\u2665 Hint:")} ${import_chalk.default.cyan(message ?? "")}`);
128333
+ console.log(`${import_chalk2.default.cyan.bold("\u2665 Hint:")} ${import_chalk2.default.cyan(message ?? "")}`);
127353
128334
  };
127354
128335
  var success2 = (message) => {
127355
128336
  console.log(
127356
- `${import_chalk.default.green.bold("\u2713 Success:")} ${import_chalk.default.green(message ?? "")}`
128337
+ `${import_chalk2.default.green.bold("\u2713 Success:")} ${import_chalk2.default.green(message ?? "")}`
127357
128338
  );
127358
128339
  };
127359
128340
  var error48 = (message) => {
127360
- console.error(`${import_chalk.default.red.bold("\u2717 Error:")} ${import_chalk.default.red(message ?? "")}`);
128341
+ console.error(`${import_chalk2.default.red.bold("\u2717 Error:")} ${import_chalk2.default.red(message ?? "")}`);
127361
128342
  };
127362
128343
  var logo = SDK_LOGO;
127363
128344
  var commandDescriptions = {
@@ -127391,7 +128372,7 @@ var commandDescriptions = {
127391
128372
  migrations: `The migrations command allows you to migrate data between services.`,
127392
128373
  vcs: `The vcs command allows you to interact with VCS providers and manage your code repositories.`,
127393
128374
  webhooks: `The webhooks command allows you to manage your project webhooks.`,
127394
- main: import_chalk.default.redBright(`${logo}${description}`)
128375
+ main: import_chalk2.default.redBright(`${logo}${description}`)
127395
128376
  };
127396
128377
 
127397
128378
  // cli.ts
@@ -127482,7 +128463,7 @@ var ID2 = class _ID {
127482
128463
  var id_default2 = ID2;
127483
128464
 
127484
128465
  // lib/questions.ts
127485
- var import_chalk2 = __toESM(require_source(), 1);
128466
+ var import_chalk3 = __toESM(require_source(), 1);
127486
128467
 
127487
128468
  // lib/validations.ts
127488
128469
  var validateRequired = (resource, value) => {
@@ -127847,17 +128828,17 @@ var questionsPullResources = [
127847
128828
  name: "resource",
127848
128829
  message: "Which resources would you like to pull?",
127849
128830
  choices: [
127850
- { name: `Settings ${import_chalk2.default.blackBright(`(Project)`)}`, value: "settings" },
128831
+ { name: `Settings ${import_chalk3.default.blackBright(`(Project)`)}`, value: "settings" },
127851
128832
  {
127852
- name: `Functions ${import_chalk2.default.blackBright(`(Deployment)`)}`,
128833
+ name: `Functions ${import_chalk3.default.blackBright(`(Deployment)`)}`,
127853
128834
  value: "functions"
127854
128835
  },
127855
- { name: `Tables ${import_chalk2.default.blackBright(`(TablesDB)`)}`, value: "tables" },
127856
- { name: `Buckets ${import_chalk2.default.blackBright(`(Storage)`)}`, value: "buckets" },
127857
- { name: `Teams ${import_chalk2.default.blackBright(`(Auth)`)}`, value: "teams" },
127858
- { name: `Topics ${import_chalk2.default.blackBright(`(Messaging)`)}`, value: "messages" },
128836
+ { name: `Tables ${import_chalk3.default.blackBright(`(TablesDB)`)}`, value: "tables" },
128837
+ { name: `Buckets ${import_chalk3.default.blackBright(`(Storage)`)}`, value: "buckets" },
128838
+ { name: `Teams ${import_chalk3.default.blackBright(`(Auth)`)}`, value: "teams" },
128839
+ { name: `Topics ${import_chalk3.default.blackBright(`(Messaging)`)}`, value: "messages" },
127859
128840
  {
127860
- name: `Collections ${import_chalk2.default.blackBright(`(Legacy Databases)`)}`,
128841
+ name: `Collections ${import_chalk3.default.blackBright(`(Legacy Databases)`)}`,
127861
128842
  value: "collections"
127862
128843
  }
127863
128844
  ]
@@ -127902,6 +128883,14 @@ var questionsPushFunctionsCode = [
127902
128883
  message: "Do you want to create a deployment for your functions?"
127903
128884
  }
127904
128885
  ];
128886
+ var questionsPushFunctionsActivate = [
128887
+ {
128888
+ type: "confirm",
128889
+ name: "activate",
128890
+ message: "Do you want to activate the deployment after it is ready?",
128891
+ default: true
128892
+ }
128893
+ ];
127905
128894
  var questionsPullSites = [
127906
128895
  {
127907
128896
  type: "checkbox",
@@ -128264,7 +129253,7 @@ var questionsLogin = [
128264
129253
  current: current === session.id,
128265
129254
  value: session.id,
128266
129255
  short: `${session.email} (${session.endpoint})`,
128267
- name: `${session.email.padEnd(longestEmail)} ${current === session.id ? import_chalk2.default.green.bold("current") : " ".repeat(6)} ${session.endpoint}`
129256
+ name: `${session.email.padEnd(longestEmail)} ${current === session.id ? import_chalk3.default.green.bold("current") : " ".repeat(6)} ${session.endpoint}`
128268
129257
  });
128269
129258
  }
128270
129259
  });
@@ -128318,7 +129307,7 @@ var questionsLogout = [
128318
129307
  data.push({
128319
129308
  current: current === session.id,
128320
129309
  value: session.id,
128321
- name: `${session.email.padEnd(longestEmail)} ${current === session.id ? import_chalk2.default.green.bold("current") : " ".repeat(6)} ${session.endpoint}`
129310
+ name: `${session.email.padEnd(longestEmail)} ${current === session.id ? import_chalk3.default.green.bold("current") : " ".repeat(6)} ${session.endpoint}`
128322
129311
  });
128323
129312
  }
128324
129313
  });
@@ -128332,17 +129321,17 @@ var questionsPushResources = [
128332
129321
  name: "resource",
128333
129322
  message: "Which resources would you like to push?",
128334
129323
  choices: [
128335
- { name: `Settings ${import_chalk2.default.blackBright(`(Project)`)}`, value: "settings" },
129324
+ { name: `Settings ${import_chalk3.default.blackBright(`(Project)`)}`, value: "settings" },
128336
129325
  {
128337
- name: `Functions ${import_chalk2.default.blackBright(`(Deployment)`)}`,
129326
+ name: `Functions ${import_chalk3.default.blackBright(`(Deployment)`)}`,
128338
129327
  value: "functions"
128339
129328
  },
128340
- { name: `Tables ${import_chalk2.default.blackBright(`(TablesDB)`)}`, value: "tables" },
128341
- { name: `Buckets ${import_chalk2.default.blackBright(`(Storage)`)}`, value: "buckets" },
128342
- { name: `Teams ${import_chalk2.default.blackBright(`(Auth)`)}`, value: "teams" },
128343
- { name: `Topics ${import_chalk2.default.blackBright(`(Messaging)`)}`, value: "messages" },
129329
+ { name: `Tables ${import_chalk3.default.blackBright(`(TablesDB)`)}`, value: "tables" },
129330
+ { name: `Buckets ${import_chalk3.default.blackBright(`(Storage)`)}`, value: "buckets" },
129331
+ { name: `Teams ${import_chalk3.default.blackBright(`(Auth)`)}`, value: "teams" },
129332
+ { name: `Topics ${import_chalk3.default.blackBright(`(Messaging)`)}`, value: "messages" },
128344
129333
  {
128345
- name: `Collections ${import_chalk2.default.blackBright(`(Legacy Databases)`)}`,
129334
+ name: `Collections ${import_chalk3.default.blackBright(`(Legacy Databases)`)}`,
128346
129335
  value: "collections"
128347
129336
  }
128348
129337
  ]
@@ -128668,7 +129657,7 @@ var questionsCreateSite = [
128668
129657
  // lib/client.ts
128669
129658
  var import_os5 = __toESM(require("os"), 1);
128670
129659
  var import_undici = __toESM(require_undici(), 1);
128671
- var import_chalk3 = __toESM(require_source(), 1);
129660
+ var import_chalk4 = __toESM(require_source(), 1);
128672
129661
  var Client3 = class _Client {
128673
129662
  endpoint;
128674
129663
  headers;
@@ -128853,7 +129842,7 @@ var Client3 = class _Client {
128853
129842
  }
128854
129843
  if (path16 !== "/account" && json3.code === 401 && json3.type === "user_more_factors_required") {
128855
129844
  console.log(
128856
- `${import_chalk3.default.cyan.bold("\u2139 Info")} ${import_chalk3.default.cyan("Unusable account found, removing...")}`
129845
+ `${import_chalk4.default.cyan.bold("\u2139 Info")} ${import_chalk4.default.cyan("Unusable account found, removing...")}`
128857
129846
  );
128858
129847
  const current = globalConfig2.getCurrentSession();
128859
129848
  globalConfig2.setCurrentSession("");
@@ -129327,7 +130316,7 @@ var import_inquirer4 = __toESM(require_inquirer(), 1);
129327
130316
  // lib/commands/pull.ts
129328
130317
  var import_fs8 = __toESM(require("fs"), 1);
129329
130318
  var import_path7 = __toESM(require("path"), 1);
129330
- var import_chalk5 = __toESM(require_source(), 1);
130319
+ var import_chalk6 = __toESM(require_source(), 1);
129331
130320
  var import_inquirer3 = __toESM(require_inquirer(), 1);
129332
130321
 
129333
130322
  // lib/commands/errors.ts
@@ -132251,7 +133240,9 @@ function listDeployableFiles(dirPath, extraIgnoreRules = []) {
132251
133240
  const normalizePath = (value) => value.split(import_path6.default.sep).join("/");
132252
133241
  const createMatcher = (baseDir, rules) => {
132253
133242
  const ignorer = ignore();
132254
- ignorer.add(rules);
133243
+ for (const rule of rules) {
133244
+ ignorer.add(rule);
133245
+ }
132255
133246
  return {
132256
133247
  baseDir,
132257
133248
  ignorer
@@ -132460,7 +133451,7 @@ async function pushDeployment(params) {
132460
133451
  }
132461
133452
 
132462
133453
  // lib/commands/utils/change-approval.ts
132463
- var import_chalk4 = __toESM(require_source(), 1);
133454
+ var import_chalk5 = __toESM(require_source(), 1);
132464
133455
  var import_inquirer2 = __toESM(require_inquirer(), 1);
132465
133456
  var isEmpty = (value) => value === null || value === void 0 || typeof value === "string" && value.trim().length === 0 || Array.isArray(value) && value.length === 0;
132466
133457
  var getConfirmation = async () => {
@@ -132503,8 +133494,8 @@ var getObjectChanges = (remote, local, index, what) => {
132503
133494
  changes.push({
132504
133495
  group: what,
132505
133496
  setting: service,
132506
- remote: import_chalk4.default.red(String(status ?? "")),
132507
- local: import_chalk4.default.green(String(localValue ?? ""))
133497
+ remote: import_chalk5.default.red(String(status ?? "")),
133498
+ local: import_chalk5.default.green(String(localValue ?? ""))
132508
133499
  });
132509
133500
  }
132510
133501
  }
@@ -132539,8 +133530,8 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
132539
133530
  changes.push({
132540
133531
  id: localResource["$id"],
132541
133532
  key,
132542
- remote: import_chalk4.default.red(value.join("\n")),
132543
- local: import_chalk4.default.green(
133533
+ remote: import_chalk5.default.red(value.join("\n")),
133534
+ local: import_chalk5.default.green(
132544
133535
  localValue.map((entry) => String(entry)).join("\n")
132545
133536
  )
132546
133537
  });
@@ -132549,8 +133540,8 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
132549
133540
  changes.push({
132550
133541
  id: localResource["$id"],
132551
133542
  key,
132552
- remote: import_chalk4.default.red(String(value ?? "")),
132553
- local: import_chalk4.default.green(String(localValue ?? ""))
133543
+ remote: import_chalk5.default.red(String(value ?? "")),
133544
+ local: import_chalk5.default.green(String(localValue ?? ""))
132554
133545
  });
132555
133546
  }
132556
133547
  }
@@ -132688,7 +133679,7 @@ var Pull = class {
132688
133679
  this.log("Pulling project settings ...");
132689
133680
  const projectsService = new Projects(this.consoleClient);
132690
133681
  const project2 = await projectsService.get({ projectId });
132691
- this.success(`Successfully pulled ${import_chalk5.default.bold("all")} project settings.`);
133682
+ this.success(`Successfully pulled ${import_chalk6.default.bold("all")} project settings.`);
132692
133683
  return {
132693
133684
  projectName: project2.name,
132694
133685
  settings: createSettingsObject(project2),
@@ -132716,7 +133707,7 @@ var Pull = class {
132716
133707
  });
132717
133708
  if (fetchResponse["functions"].length <= 0) {
132718
133709
  this.log("No functions found.");
132719
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} functions.`);
133710
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} functions.`);
132720
133711
  return [];
132721
133712
  }
132722
133713
  const { functions: allFunctions } = await paginate(
@@ -132729,8 +133720,8 @@ var Pull = class {
132729
133720
  }
132730
133721
  const result = [];
132731
133722
  for (const func of functions2) {
132732
- this.log(`Pulling function ${import_chalk5.default.bold(func.name)} ...`);
132733
- const funcPath = `functions/${func.name}`;
133723
+ this.log(`Pulling function ${import_chalk6.default.bold(func.name)} ...`);
133724
+ const funcPath = `functions/${getSafeDirectoryName(func.name, func.$id)}`;
132734
133725
  const absoluteFuncPath = import_path7.default.resolve(this.configDirectoryPath, funcPath);
132735
133726
  const holdingVars = func.vars || [];
132736
133727
  const functionConfig = {
@@ -132752,10 +133743,10 @@ var Pull = class {
132752
133743
  deploymentRetention: func.deploymentRetention
132753
133744
  };
132754
133745
  result.push(functionConfig);
132755
- if (!import_fs8.default.existsSync(absoluteFuncPath)) {
132756
- import_fs8.default.mkdirSync(absoluteFuncPath, { recursive: true });
132757
- }
132758
133746
  if (options.code !== false) {
133747
+ if (!import_fs8.default.existsSync(absoluteFuncPath)) {
133748
+ import_fs8.default.mkdirSync(absoluteFuncPath, { recursive: true });
133749
+ }
132759
133750
  await downloadDeploymentCode({
132760
133751
  resourceId: func["$id"],
132761
133752
  resourcePath: absoluteFuncPath,
@@ -132776,7 +133767,7 @@ var Pull = class {
132776
133767
  if (options.code === false) {
132777
133768
  this.warn("Source code download skipped.");
132778
133769
  }
132779
- this.success(`Successfully pulled ${import_chalk5.default.bold(result.length)} functions.`);
133770
+ this.success(`Successfully pulled ${import_chalk6.default.bold(result.length)} functions.`);
132780
133771
  return result;
132781
133772
  }
132782
133773
  /**
@@ -132800,7 +133791,7 @@ var Pull = class {
132800
133791
  });
132801
133792
  if (fetchResponse["sites"].length <= 0) {
132802
133793
  this.log("No sites found.");
132803
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} sites.`);
133794
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} sites.`);
132804
133795
  return [];
132805
133796
  }
132806
133797
  const { sites: fetchedSites } = await paginate(
@@ -132813,8 +133804,8 @@ var Pull = class {
132813
133804
  }
132814
133805
  const result = [];
132815
133806
  for (const site of sites2) {
132816
- this.log(`Pulling site ${import_chalk5.default.bold(site.name)} ...`);
132817
- const sitePath = `sites/${site.name}`;
133807
+ this.log(`Pulling site ${import_chalk6.default.bold(site.name)} ...`);
133808
+ const sitePath = `sites/${getSafeDirectoryName(site.name, site.$id)}`;
132818
133809
  const absoluteSitePath = import_path7.default.resolve(this.configDirectoryPath, sitePath);
132819
133810
  const holdingVars = site.vars || [];
132820
133811
  const siteConfig = {
@@ -132837,10 +133828,10 @@ var Pull = class {
132837
133828
  deploymentRetention: site.deploymentRetention
132838
133829
  };
132839
133830
  result.push(siteConfig);
132840
- if (!import_fs8.default.existsSync(absoluteSitePath)) {
132841
- import_fs8.default.mkdirSync(absoluteSitePath, { recursive: true });
132842
- }
132843
133831
  if (options.code !== false) {
133832
+ if (!import_fs8.default.existsSync(absoluteSitePath)) {
133833
+ import_fs8.default.mkdirSync(absoluteSitePath, { recursive: true });
133834
+ }
132844
133835
  await downloadDeploymentCode({
132845
133836
  resourceId: site["$id"],
132846
133837
  resourcePath: absoluteSitePath,
@@ -132861,7 +133852,7 @@ var Pull = class {
132861
133852
  if (options.code === false) {
132862
133853
  this.warn("Source code download skipped.");
132863
133854
  }
132864
- this.success(`Successfully pulled ${import_chalk5.default.bold(result.length)} sites.`);
133855
+ this.success(`Successfully pulled ${import_chalk6.default.bold(result.length)} sites.`);
132865
133856
  return result;
132866
133857
  }
132867
133858
  /**
@@ -132877,7 +133868,7 @@ var Pull = class {
132877
133868
  if (fetchResponse["databases"].length <= 0) {
132878
133869
  this.log("No collections found.");
132879
133870
  this.success(
132880
- `Successfully pulled ${import_chalk5.default.bold(0)} collections from ${import_chalk5.default.bold(0)} databases.`
133871
+ `Successfully pulled ${import_chalk6.default.bold(0)} collections from ${import_chalk6.default.bold(0)} databases.`
132881
133872
  );
132882
133873
  return { databases: [], collections: [] };
132883
133874
  }
@@ -132891,7 +133882,7 @@ var Pull = class {
132891
133882
  const allCollections = [];
132892
133883
  for (const database of databases2) {
132893
133884
  this.log(
132894
- `Pulling all collections from ${import_chalk5.default.bold(database.name)} database ...`
133885
+ `Pulling all collections from ${import_chalk6.default.bold(database.name)} database ...`
132895
133886
  );
132896
133887
  allDatabases.push(database);
132897
133888
  const { collections } = await paginate(
@@ -132912,7 +133903,7 @@ var Pull = class {
132912
133903
  }
132913
133904
  }
132914
133905
  this.success(
132915
- `Successfully pulled ${import_chalk5.default.bold(allCollections.length)} collections from ${import_chalk5.default.bold(allDatabases.length)} databases.`
133906
+ `Successfully pulled ${import_chalk6.default.bold(allCollections.length)} collections from ${import_chalk6.default.bold(allDatabases.length)} databases.`
132916
133907
  );
132917
133908
  return {
132918
133909
  databases: allDatabases,
@@ -132931,7 +133922,7 @@ var Pull = class {
132931
133922
  if (fetchResponse["databases"].length <= 0) {
132932
133923
  this.log("No tables found.");
132933
133924
  this.success(
132934
- `Successfully pulled ${import_chalk5.default.bold(0)} tables from ${import_chalk5.default.bold(0)} tableDBs.`
133925
+ `Successfully pulled ${import_chalk6.default.bold(0)} tables from ${import_chalk6.default.bold(0)} tableDBs.`
132935
133926
  );
132936
133927
  return { databases: [], tables: [] };
132937
133928
  }
@@ -132947,7 +133938,7 @@ var Pull = class {
132947
133938
  const allTables = [];
132948
133939
  for (const database of databases2) {
132949
133940
  this.log(
132950
- `Pulling all tables from ${import_chalk5.default.bold(database.name)} database ...`
133941
+ `Pulling all tables from ${import_chalk6.default.bold(database.name)} database ...`
132951
133942
  );
132952
133943
  allDatabases.push(filterBySchema(database, DatabaseSchema));
132953
133944
  const { tables } = await paginate(
@@ -132974,7 +133965,7 @@ var Pull = class {
132974
133965
  }
132975
133966
  }
132976
133967
  this.success(
132977
- `Successfully pulled ${import_chalk5.default.bold(allTables.length)} tables from ${import_chalk5.default.bold(allDatabases.length)} tableDBs.`
133968
+ `Successfully pulled ${import_chalk6.default.bold(allTables.length)} tables from ${import_chalk6.default.bold(allDatabases.length)} tableDBs.`
132978
133969
  );
132979
133970
  return {
132980
133971
  databases: allDatabases,
@@ -132992,7 +133983,7 @@ var Pull = class {
132992
133983
  });
132993
133984
  if (fetchResponse["buckets"].length <= 0) {
132994
133985
  this.log("No buckets found.");
132995
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} buckets.`);
133986
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} buckets.`);
132996
133987
  return [];
132997
133988
  }
132998
133989
  const { buckets } = await paginate(
@@ -133003,11 +133994,11 @@ var Pull = class {
133003
133994
  );
133004
133995
  const filteredBuckets = [];
133005
133996
  for (const bucket of buckets) {
133006
- this.log(`Pulling bucket ${import_chalk5.default.bold(bucket.name)} ...`);
133997
+ this.log(`Pulling bucket ${import_chalk6.default.bold(bucket.name)} ...`);
133007
133998
  filteredBuckets.push(filterBySchema(bucket, BucketSchema));
133008
133999
  }
133009
134000
  this.success(
133010
- `Successfully pulled ${import_chalk5.default.bold(filteredBuckets.length)} buckets.`
134001
+ `Successfully pulled ${import_chalk6.default.bold(filteredBuckets.length)} buckets.`
133011
134002
  );
133012
134003
  return filteredBuckets;
133013
134004
  }
@@ -133022,7 +134013,7 @@ var Pull = class {
133022
134013
  });
133023
134014
  if (fetchResponse["teams"].length <= 0) {
133024
134015
  this.log("No teams found.");
133025
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} teams.`);
134016
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} teams.`);
133026
134017
  return [];
133027
134018
  }
133028
134019
  const { teams: teams2 } = await paginate(
@@ -133032,9 +134023,9 @@ var Pull = class {
133032
134023
  "teams"
133033
134024
  );
133034
134025
  for (const team of teams2) {
133035
- this.log(`Pulling team ${import_chalk5.default.bold(team.name)} ...`);
134026
+ this.log(`Pulling team ${import_chalk6.default.bold(team.name)} ...`);
133036
134027
  }
133037
- this.success(`Successfully pulled ${import_chalk5.default.bold(teams2.length)} teams.`);
134028
+ this.success(`Successfully pulled ${import_chalk6.default.bold(teams2.length)} teams.`);
133038
134029
  return teams2;
133039
134030
  }
133040
134031
  /**
@@ -133048,7 +134039,7 @@ var Pull = class {
133048
134039
  });
133049
134040
  if (fetchResponse["topics"].length <= 0) {
133050
134041
  this.log("No topics found.");
133051
- this.success(`Successfully pulled ${import_chalk5.default.bold(0)} topics.`);
134042
+ this.success(`Successfully pulled ${import_chalk6.default.bold(0)} topics.`);
133052
134043
  return [];
133053
134044
  }
133054
134045
  const { topics } = await paginate(
@@ -133059,11 +134050,11 @@ var Pull = class {
133059
134050
  );
133060
134051
  const filteredTopics = [];
133061
134052
  for (const topic of topics) {
133062
- this.log(`Pulling topic ${import_chalk5.default.bold(topic.name)} ...`);
134053
+ this.log(`Pulling topic ${import_chalk6.default.bold(topic.name)} ...`);
133063
134054
  filteredTopics.push(filterBySchema(topic, TopicSchema));
133064
134055
  }
133065
134056
  this.success(
133066
- `Successfully pulled ${import_chalk5.default.bold(filteredTopics.length)} topics.`
134057
+ `Successfully pulled ${import_chalk6.default.bold(filteredTopics.length)} topics.`
133067
134058
  );
133068
134059
  return filteredTopics;
133069
134060
  }
@@ -133120,7 +134111,7 @@ var pullFunctions = async ({
133120
134111
  const fetchResponse = await functionsService.list([Query.limit(1)]);
133121
134112
  if (fetchResponse["functions"].length <= 0) {
133122
134113
  log("No functions found.");
133123
- success2(`Successfully pulled ${import_chalk5.default.bold(0)} functions.`);
134114
+ success2(`Successfully pulled ${import_chalk6.default.bold(0)} functions.`);
133124
134115
  return;
133125
134116
  }
133126
134117
  const functionsToCheck = cliConfig.all ? (await paginate(
@@ -133129,7 +134120,7 @@ var pullFunctions = async ({
133129
134120
  100,
133130
134121
  "functions"
133131
134122
  )).functions : (await import_inquirer3.default.prompt(questionsPullFunctions)).functions;
133132
- let allowCodePull = cliConfig.force === true ? true : null;
134123
+ let allowCodePull = null;
133133
134124
  if (code !== false && allowCodePull === null) {
133134
134125
  const codeAnswer = await import_inquirer3.default.prompt(questionsPullFunctionsCode);
133135
134126
  allowCodePull = codeAnswer.override;
@@ -133158,7 +134149,7 @@ var pullSites = async ({
133158
134149
  });
133159
134150
  if (fetchResponse["sites"].length <= 0) {
133160
134151
  log("No sites found.");
133161
- success2(`Successfully pulled ${import_chalk5.default.bold(0)} sites.`);
134152
+ success2(`Successfully pulled ${import_chalk6.default.bold(0)} sites.`);
133162
134153
  return;
133163
134154
  }
133164
134155
  const sitesToCheck = cliConfig.all ? (await paginate(
@@ -133167,7 +134158,7 @@ var pullSites = async ({
133167
134158
  100,
133168
134159
  "sites"
133169
134160
  )).sites : (await import_inquirer3.default.prompt(questionsPullSites)).sites;
133170
- let allowCodePull = cliConfig.force === true ? true : null;
134161
+ let allowCodePull = null;
133171
134162
  if (code !== false && allowCodePull === null) {
133172
134163
  const codeAnswer = await import_inquirer3.default.prompt(questionsPullSitesCode);
133173
134164
  allowCodePull = codeAnswer.override;
@@ -133295,11 +134286,11 @@ pull.command("all").description("Pull all resources").action(
133295
134286
  pull.command("settings").description("Pull your Appwrite project name, services and auth settings").action(actionRunner(pullSettings));
133296
134287
  pull.command("function").alias("functions").description("Pull your Appwrite cloud function").option("--no-code", "Don't pull the function's code").option(
133297
134288
  "--with-variables",
133298
- `Pull function variables. ${import_chalk5.default.red("recommend for testing purposes only")}`
134289
+ `Pull function variables. ${import_chalk6.default.red("recommend for testing purposes only")}`
133299
134290
  ).action(actionRunner(pullFunctions));
133300
134291
  pull.command("site").alias("sites").description("Pull your Appwrite site").option("--no-code", "Don't pull the site's code").option(
133301
134292
  "--with-variables",
133302
- `Pull site variables. ${import_chalk5.default.red("recommend for testing purposes only")}`
134293
+ `Pull site variables. ${import_chalk6.default.red("recommend for testing purposes only")}`
133303
134294
  ).action(actionRunner(pullSites));
133304
134295
  pull.command("collection").alias("collections").description(
133305
134296
  "Pull your Appwrite collections (deprecated, please use 'pull tables' instead)"
@@ -133310,10 +134301,6 @@ pull.command("team").alias("teams").description("Pull your Appwrite teams").acti
133310
134301
  pull.command("topic").alias("topics").description("Pull your Appwrite messaging topics").action(actionRunner(pullMessagingTopic));
133311
134302
 
133312
134303
  // lib/commands/init.ts
133313
- var getSafeDirectoryName = (value, fallback) => {
133314
- const normalized = value.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
133315
- return normalized || fallback;
133316
- };
133317
134304
  var initResources = async () => {
133318
134305
  const actions = {
133319
134306
  function: initFunction,
@@ -133764,6 +134751,7 @@ Suggestion: It appears that git is not installed, try installing git then trying
133764
134751
  entrypoint: answers.runtime.entrypoint || "",
133765
134752
  commands: answers.runtime.commands || "",
133766
134753
  ignore: answers.runtime.ignore || null,
134754
+ deploymentRetention: 0,
133767
134755
  path: `functions/${functionDirectoryName}`
133768
134756
  };
133769
134757
  localConfig.addFunction(data);
@@ -135443,7 +136431,7 @@ var types = new Command("types").description("Generate types for your Appwrite p
135443
136431
  // lib/commands/run.ts
135444
136432
  var import_tail = __toESM(require_tail(), 1);
135445
136433
  var import_dotenv = __toESM(require_main2(), 1);
135446
- var import_chalk7 = __toESM(require_source(), 1);
136434
+ var import_chalk8 = __toESM(require_source(), 1);
135447
136435
  var import_ignore3 = __toESM(require_ignore(), 1);
135448
136436
  var import_fs15 = __toESM(require("fs"), 1);
135449
136437
  var import_chokidar = __toESM(require_chokidar(), 1);
@@ -135626,7 +136614,7 @@ var Queue = {
135626
136614
  // lib/emulation/docker.ts
135627
136615
  var import_ignore2 = __toESM(require_ignore(), 1);
135628
136616
  var import_net2 = __toESM(require("net"), 1);
135629
- var import_chalk6 = __toESM(require_source(), 1);
136617
+ var import_chalk7 = __toESM(require_source(), 1);
135630
136618
  var import_child_process3 = __toESM(require("child_process"), 1);
135631
136619
  var import_path13 = __toESM(require("path"), 1);
135632
136620
  var import_fs14 = __toESM(require("fs"), 1);
@@ -135711,11 +136699,11 @@ async function dockerBuild(func, variables) {
135711
136699
  }
135712
136700
  });
135713
136701
  buildProcess.stdout.on("data", (data) => {
135714
- process.stdout.write(import_chalk6.default.blackBright(`${data}
136702
+ process.stdout.write(import_chalk7.default.blackBright(`${data}
135715
136703
  `));
135716
136704
  });
135717
136705
  buildProcess.stderr.on("data", (data) => {
135718
- process.stderr.write(import_chalk6.default.blackBright(`${data}
136706
+ process.stderr.write(import_chalk7.default.blackBright(`${data}
135719
136707
  `));
135720
136708
  });
135721
136709
  killInterval = setInterval(() => {
@@ -135818,10 +136806,10 @@ async function dockerStart(func, variables, port) {
135818
136806
  }
135819
136807
  });
135820
136808
  startProcess.stdout.on("data", (data) => {
135821
- process.stdout.write(import_chalk6.default.blackBright(data));
136809
+ process.stdout.write(import_chalk7.default.blackBright(data));
135822
136810
  });
135823
136811
  startProcess.stderr.on("data", (data) => {
135824
- process.stdout.write(import_chalk6.default.blackBright(data));
136812
+ process.stdout.write(import_chalk7.default.blackBright(data));
135825
136813
  });
135826
136814
  try {
135827
136815
  await waitUntilPortOpen(port);
@@ -136035,11 +137023,11 @@ var runFunction = async ({
136035
137023
  }
136036
137024
  await dockerPull(func);
136037
137025
  new import_tail.Tail(logsPath).on("line", function(data) {
136038
- process.stdout.write(import_chalk7.default.white(`${data}
137026
+ process.stdout.write(import_chalk8.default.white(`${data}
136039
137027
  `));
136040
137028
  });
136041
137029
  new import_tail.Tail(errorsPath).on("line", function(data) {
136042
- process.stdout.write(import_chalk7.default.white(`${data}
137030
+ process.stdout.write(import_chalk8.default.white(`${data}
136043
137031
  `));
136044
137032
  });
136045
137033
  if (reload) {
@@ -136170,7 +137158,7 @@ run.command("function").alias("functions").description("Run functions in the cur
136170
137158
  var import_fs16 = __toESM(require("fs"), 1);
136171
137159
  var import_path15 = __toESM(require("path"), 1);
136172
137160
  var import_dotenv2 = __toESM(require_main2(), 1);
136173
- var import_chalk11 = __toESM(require_source(), 1);
137161
+ var import_chalk12 = __toESM(require_source(), 1);
136174
137162
  var import_inquirer7 = __toESM(require_inquirer(), 1);
136175
137163
 
136176
137164
  // lib/commands/utils/error-formatter.ts
@@ -136485,7 +137473,7 @@ function parseWithBetterErrors(schema, data, context, contextData) {
136485
137473
 
136486
137474
  // lib/spinner.ts
136487
137475
  var import_cli_progress = __toESM(require_cli_progress(), 1);
136488
- var import_chalk8 = __toESM(require_source(), 1);
137476
+ var import_chalk9 = __toESM(require_source(), 1);
136489
137477
  var SPINNER_ARC = "arc";
136490
137478
  var SPINNER_DOTS = "dots";
136491
137479
  var spinners = {
@@ -136518,22 +137506,22 @@ var Spinner = class _Spinner {
136518
137506
  static formatter(_options, _params, payload) {
136519
137507
  const status = payload.status.padEnd(12);
136520
137508
  const middle = `${payload.resource} (${payload.id})`.padEnd(40);
136521
- let prefix = import_chalk8.default.cyan(payload.prefix ?? "\u29D7");
136522
- let start = import_chalk8.default.cyan(status);
136523
- let end = import_chalk8.default.yellow(payload.end ?? "");
137509
+ let prefix = import_chalk9.default.cyan(payload.prefix ?? "\u29D7");
137510
+ let start = import_chalk9.default.cyan(status);
137511
+ let end = import_chalk9.default.yellow(payload.end ?? "");
136524
137512
  if (status.toLowerCase().trim() === "pushed") {
136525
- start = import_chalk8.default.greenBright.bold(status);
136526
- prefix = import_chalk8.default.greenBright.bold("\u2713");
137513
+ start = import_chalk9.default.greenBright.bold(status);
137514
+ prefix = import_chalk9.default.greenBright.bold("\u2713");
136527
137515
  end = "";
136528
137516
  } else if (status.toLowerCase().trim() === "deploying") {
136529
- start = import_chalk8.default.cyanBright.bold(status);
137517
+ start = import_chalk9.default.cyanBright.bold(status);
136530
137518
  } else if (status.toLowerCase().trim() === "deployed") {
136531
- start = import_chalk8.default.green.bold(status);
136532
- prefix = import_chalk8.default.green.bold("\u2713");
137519
+ start = import_chalk9.default.green.bold(status);
137520
+ prefix = import_chalk9.default.green.bold("\u2713");
136533
137521
  } else if (status.toLowerCase().trim() === "error") {
136534
- start = import_chalk8.default.red.bold(status);
136535
- prefix = import_chalk8.default.red.bold("\u2717");
136536
- end = import_chalk8.default.red(payload.errorMessage ?? "");
137522
+ start = import_chalk9.default.red.bold(status);
137523
+ prefix = import_chalk9.default.red.bold("\u2717");
137524
+ end = import_chalk9.default.red(payload.errorMessage ?? "");
136537
137525
  }
136538
137526
  return _Spinner.line(prefix, start, middle, end);
136539
137527
  }
@@ -136787,7 +137775,7 @@ var Pools = class {
136787
137775
  };
136788
137776
 
136789
137777
  // lib/commands/utils/attributes.ts
136790
- var import_chalk9 = __toESM(require_source(), 1);
137778
+ var import_chalk10 = __toESM(require_source(), 1);
136791
137779
  var import_inquirer6 = __toESM(require_inquirer(), 1);
136792
137780
  var changeableKeys = [
136793
137781
  "status",
@@ -136857,11 +137845,11 @@ var Attributes = class {
136857
137845
  if (Array.isArray(remote) && Array.isArray(local)) {
136858
137846
  if (JSON.stringify(remote) !== JSON.stringify(local)) {
136859
137847
  const bol = reason === "" ? "" : "\n";
136860
- reason += `${bol}${key} changed from ${import_chalk9.default.red(remote)} to ${import_chalk9.default.green(local)}`;
137848
+ reason += `${bol}${key} changed from ${import_chalk10.default.red(remote)} to ${import_chalk10.default.green(local)}`;
136861
137849
  }
136862
137850
  } else if (!this.isEqual(remote, local)) {
136863
137851
  const bol = reason === "" ? "" : "\n";
136864
- reason += `${bol}${key} changed from ${import_chalk9.default.red(remote)} to ${import_chalk9.default.green(local)}`;
137852
+ reason += `${bol}${key} changed from ${import_chalk10.default.red(remote)} to ${import_chalk10.default.green(local)}`;
136865
137853
  }
136866
137854
  return reason;
136867
137855
  };
@@ -136873,8 +137861,8 @@ var Attributes = class {
136873
137861
  if (local === void 0) {
136874
137862
  return void 0;
136875
137863
  }
136876
- const keyName = `${import_chalk9.default.yellow(local.key)} in ${collection.name} (${collection["$id"]})`;
136877
- const action = import_chalk9.default.cyan(recreating ? "recreating" : "changing");
137864
+ const keyName = `${import_chalk10.default.yellow(local.key)} in ${collection.name} (${collection["$id"]})`;
137865
+ const action = import_chalk10.default.cyan(recreating ? "recreating" : "changing");
136878
137866
  let reason = "";
136879
137867
  const attribute = recreating ? remote : local;
136880
137868
  for (const key of Object.keys(remote)) {
@@ -136900,10 +137888,10 @@ var Attributes = class {
136900
137888
  attributesContains = (attribute, attributes) => attributes.find((attr) => attr.key === attribute.key);
136901
137889
  generateChangesObject = (attribute, collection, isAdding) => {
136902
137890
  return {
136903
- key: `${import_chalk9.default.yellow(attribute.key)} in ${collection.name} (${collection["$id"]})`,
137891
+ key: `${import_chalk10.default.yellow(attribute.key)} in ${collection.name} (${collection["$id"]})`,
136904
137892
  attribute,
136905
137893
  reason: isAdding ? "Field isn't present on the remote server" : "Field isn't present on the appwrite.config.json file",
136906
- action: isAdding ? import_chalk9.default.green("adding") : import_chalk9.default.red("deleting")
137894
+ action: isAdding ? import_chalk10.default.green("adding") : import_chalk10.default.red("deleting")
136907
137895
  };
136908
137896
  };
136909
137897
  createAttribute = async (databaseId, collectionId, attribute) => {
@@ -137309,25 +138297,25 @@ var Attributes = class {
137309
138297
  if (!cliConfig.force) {
137310
138298
  if (deleting.length > 0 && !isIndex) {
137311
138299
  console.log(
137312
- `${import_chalk9.default.red("------------------------------------------------------")}`
138300
+ `${import_chalk10.default.red("------------------------------------------------------")}`
137313
138301
  );
137314
138302
  console.log(
137315
- `${import_chalk9.default.red("| WARNING: Attribute deletion may cause loss of data |")}`
138303
+ `${import_chalk10.default.red("| WARNING: Attribute deletion may cause loss of data |")}`
137316
138304
  );
137317
138305
  console.log(
137318
- `${import_chalk9.default.red("------------------------------------------------------")}`
138306
+ `${import_chalk10.default.red("------------------------------------------------------")}`
137319
138307
  );
137320
138308
  console.log();
137321
138309
  }
137322
138310
  if (conflicts.length > 0 && !isIndex) {
137323
138311
  console.log(
137324
- `${import_chalk9.default.red("--------------------------------------------------------")}`
138312
+ `${import_chalk10.default.red("--------------------------------------------------------")}`
137325
138313
  );
137326
138314
  console.log(
137327
- `${import_chalk9.default.red("| WARNING: Attribute recreation may cause loss of data |")}`
138315
+ `${import_chalk10.default.red("| WARNING: Attribute recreation may cause loss of data |")}`
137328
138316
  );
137329
138317
  console.log(
137330
- `${import_chalk9.default.red("--------------------------------------------------------")}`
138318
+ `${import_chalk10.default.red("--------------------------------------------------------")}`
137331
138319
  );
137332
138320
  console.log();
137333
138321
  }
@@ -137460,7 +138448,7 @@ var Attributes = class {
137460
138448
  };
137461
138449
 
137462
138450
  // lib/commands/utils/database-sync.ts
137463
- var import_chalk10 = __toESM(require_source(), 1);
138451
+ var import_chalk11 = __toESM(require_source(), 1);
137464
138452
  var isTablesDBResource = (value) => {
137465
138453
  if (!value || typeof value !== "object") {
137466
138454
  return false;
@@ -137505,7 +138493,7 @@ var checkAndApplyTablesDBChanges = async () => {
137505
138493
  toDelete.push(remoteDB);
137506
138494
  changes.push({
137507
138495
  id: remoteDB.$id,
137508
- action: import_chalk10.default.red("deleting"),
138496
+ action: import_chalk11.default.red("deleting"),
137509
138497
  key: "Database",
137510
138498
  remote: remoteDB.name,
137511
138499
  local: "(deleted locally)"
@@ -137518,7 +138506,7 @@ var checkAndApplyTablesDBChanges = async () => {
137518
138506
  toCreate.push(localDB);
137519
138507
  changes.push({
137520
138508
  id: localDB.$id,
137521
- action: import_chalk10.default.green("creating"),
138509
+ action: import_chalk11.default.green("creating"),
137522
138510
  key: "Database",
137523
138511
  remote: "(does not exist)",
137524
138512
  local: localDB.name
@@ -137529,7 +138517,7 @@ var checkAndApplyTablesDBChanges = async () => {
137529
138517
  hasChanges = true;
137530
138518
  changes.push({
137531
138519
  id: localDB.$id,
137532
- action: import_chalk10.default.yellow("updating"),
138520
+ action: import_chalk11.default.yellow("updating"),
137533
138521
  key: "Name",
137534
138522
  remote: remoteDB.name,
137535
138523
  local: localDB.name
@@ -137539,7 +138527,7 @@ var checkAndApplyTablesDBChanges = async () => {
137539
138527
  hasChanges = true;
137540
138528
  changes.push({
137541
138529
  id: localDB.$id,
137542
- action: import_chalk10.default.yellow("updating"),
138530
+ action: import_chalk11.default.yellow("updating"),
137543
138531
  key: "Enabled",
137544
138532
  remote: remoteDB.enabled,
137545
138533
  local: localDB.enabled
@@ -137557,13 +138545,13 @@ var checkAndApplyTablesDBChanges = async () => {
137557
138545
  drawTable(changes);
137558
138546
  if (toDelete.length > 0) {
137559
138547
  console.log(
137560
- `${import_chalk10.default.red("------------------------------------------------------------------")}`
138548
+ `${import_chalk11.default.red("------------------------------------------------------------------")}`
137561
138549
  );
137562
138550
  console.log(
137563
- `${import_chalk10.default.red("| WARNING: Database deletion will also delete all related tables |")}`
138551
+ `${import_chalk11.default.red("| WARNING: Database deletion will also delete all related tables |")}`
137564
138552
  );
137565
138553
  console.log(
137566
- `${import_chalk10.default.red("------------------------------------------------------------------")}`
138554
+ `${import_chalk11.default.red("------------------------------------------------------------------")}`
137567
138555
  );
137568
138556
  console.log();
137569
138557
  }
@@ -137695,7 +138683,7 @@ var Push = class {
137695
138683
  settings: config2.settings
137696
138684
  });
137697
138685
  this.success(
137698
- `Successfully pushed ${import_chalk11.default.bold("all")} project settings.`
138686
+ `Successfully pushed ${import_chalk12.default.bold("all")} project settings.`
137699
138687
  );
137700
138688
  results.settings = { success: true };
137701
138689
  } catch (e) {
@@ -137708,7 +138696,7 @@ var Push = class {
137708
138696
  this.log("Pushing buckets ...");
137709
138697
  const result = await this.pushBuckets(config2.buckets);
137710
138698
  this.success(
137711
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} buckets.`
138699
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} buckets.`
137712
138700
  );
137713
138701
  results.buckets = result;
137714
138702
  allErrors.push(...result.errors);
@@ -137722,7 +138710,7 @@ var Push = class {
137722
138710
  this.log("Pushing teams ...");
137723
138711
  const result = await this.pushTeams(config2.teams);
137724
138712
  this.success(
137725
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} teams.`
138713
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} teams.`
137726
138714
  );
137727
138715
  results.teams = result;
137728
138716
  allErrors.push(...result.errors);
@@ -137736,7 +138724,7 @@ var Push = class {
137736
138724
  this.log("Pushing topics ...");
137737
138725
  const result = await this.pushMessagingTopics(config2.topics);
137738
138726
  this.success(
137739
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} topics.`
138727
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} topics.`
137740
138728
  );
137741
138729
  results.topics = result;
137742
138730
  allErrors.push(...result.errors);
@@ -137753,7 +138741,7 @@ var Push = class {
137753
138741
  options.functionOptions
137754
138742
  );
137755
138743
  this.success(
137756
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} functions.`
138744
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} functions.`
137757
138745
  );
137758
138746
  results.functions = result;
137759
138747
  allErrors.push(...result.errors);
@@ -137775,7 +138763,7 @@ var Push = class {
137775
138763
  options.siteOptions
137776
138764
  );
137777
138765
  this.success(
137778
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} sites.`
138766
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} sites.`
137779
138767
  );
137780
138768
  results.sites = result;
137781
138769
  allErrors.push(...result.errors);
@@ -137797,7 +138785,7 @@ var Push = class {
137797
138785
  skipConfirmation: options.skipConfirmation
137798
138786
  });
137799
138787
  this.success(
137800
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} tables.`
138788
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} tables.`
137801
138789
  );
137802
138790
  results.tables = result;
137803
138791
  allErrors.push(...result.errors);
@@ -137824,7 +138812,7 @@ var Push = class {
137824
138812
  skipConfirmation: options.skipConfirmation
137825
138813
  });
137826
138814
  this.success(
137827
- `Successfully pushed ${import_chalk11.default.bold(result.successfullyPushed)} collections.`
138815
+ `Successfully pushed ${import_chalk12.default.bold(result.successfullyPushed)} collections.`
137828
138816
  );
137829
138817
  results.collections = result;
137830
138818
  allErrors.push(...result.errors);
@@ -137940,14 +138928,14 @@ var Push = class {
137940
138928
  };
137941
138929
  for (const bucket of buckets) {
137942
138930
  try {
137943
- this.log(`Pushing bucket ${import_chalk11.default.bold(bucket["name"])} ...`);
138931
+ this.log(`Pushing bucket ${import_chalk12.default.bold(bucket["name"])} ...`);
137944
138932
  const storageService = await getStorageService(this.projectClient);
137945
138933
  try {
137946
138934
  const remoteBucket = await storageService.getBucket(bucket["$id"]);
137947
138935
  const hasChanges = hasBucketChanges(remoteBucket, bucket);
137948
138936
  if (!hasChanges) {
137949
138937
  this.log(
137950
- `No changes detected for bucket ${import_chalk11.default.bold(bucket["name"])}. Skipping.`
138938
+ `No changes detected for bucket ${import_chalk12.default.bold(bucket["name"])}. Skipping.`
137951
138939
  );
137952
138940
  continue;
137953
138941
  }
@@ -137998,7 +138986,7 @@ var Push = class {
137998
138986
  const errors = [];
137999
138987
  for (const team of teams2) {
138000
138988
  try {
138001
- this.log(`Pushing team ${import_chalk11.default.bold(team["name"])} ...`);
138989
+ this.log(`Pushing team ${import_chalk12.default.bold(team["name"])} ...`);
138002
138990
  const teamsService = await getTeamsService(this.projectClient);
138003
138991
  try {
138004
138992
  await teamsService.get(team["$id"]);
@@ -138032,7 +139020,7 @@ var Push = class {
138032
139020
  const errors = [];
138033
139021
  for (const topic of topics) {
138034
139022
  try {
138035
- this.log(`Pushing topic ${import_chalk11.default.bold(topic["name"])} ...`);
139023
+ this.log(`Pushing topic ${import_chalk12.default.bold(topic["name"])} ...`);
138036
139024
  const messagingService = await getMessagingService(this.projectClient);
138037
139025
  try {
138038
139026
  await messagingService.getTopic(topic["$id"]);
@@ -138065,12 +139053,18 @@ var Push = class {
138065
139053
  };
138066
139054
  }
138067
139055
  async pushFunctions(functions2, options = {}) {
138068
- const { async: asyncDeploy, code, withVariables } = options;
139056
+ const {
139057
+ async: asyncDeploy,
139058
+ code,
139059
+ activate = true,
139060
+ withVariables
139061
+ } = options;
138069
139062
  Spinner.start(false);
138070
139063
  let successfullyPushed = 0;
138071
139064
  let successfullyDeployed = 0;
138072
139065
  const failedDeployments = [];
138073
139066
  const errors = [];
139067
+ const deploymentLogs = [];
138074
139068
  await Promise.all(
138075
139069
  functions2.map(async (func) => {
138076
139070
  let response = {};
@@ -138242,6 +139236,7 @@ var Push = class {
138242
139236
  });
138243
139237
  return;
138244
139238
  }
139239
+ const deployStartTime = Date.now();
138245
139240
  try {
138246
139241
  updaterRow.update({ status: "Pushing" }).replaceSpinner(SPINNER_DOTS);
138247
139242
  const functionsServiceDeploy = await getFunctionsService(
@@ -138256,7 +139251,7 @@ var Push = class {
138256
139251
  entrypoint: func.entrypoint,
138257
139252
  commands: func.commands,
138258
139253
  code: codeFile,
138259
- activate: true
139254
+ activate
138260
139255
  });
138261
139256
  },
138262
139257
  pollForStatus: false
@@ -138308,6 +139303,19 @@ var Push = class {
138308
139303
  });
138309
139304
  const status = response["status"];
138310
139305
  if (status === "ready") {
139306
+ if (activate) {
139307
+ updaterRow.update({
139308
+ status: "Activating",
139309
+ end: "Setting active deployment..."
139310
+ });
139311
+ const functionsServiceActivate = await getFunctionsService(
139312
+ this.projectClient
139313
+ );
139314
+ await functionsServiceActivate.updateFunctionDeployment({
139315
+ functionId: func["$id"],
139316
+ deploymentId
139317
+ });
139318
+ }
138311
139319
  successfullyDeployed++;
138312
139320
  let url2 = "";
138313
139321
  const proxyServiceUrl = await getProxyService(
@@ -138324,7 +139332,23 @@ var Push = class {
138324
139332
  if (Number(res.total) === 1) {
138325
139333
  url2 = `https://${res.rules[0].domain}`;
138326
139334
  }
138327
- updaterRow.update({ status: "Deployed", end: url2 });
139335
+ const elapsed = ((Date.now() - deployStartTime) / 1e3).toFixed(
139336
+ 1
139337
+ );
139338
+ const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
139339
+ const projectId = localConfig.getProject().projectId;
139340
+ const consoleUrl = getFunctionDeploymentConsoleUrl(
139341
+ endpoint,
139342
+ projectId,
139343
+ func["$id"],
139344
+ deploymentId
139345
+ );
139346
+ updaterRow.stopSpinner();
139347
+ updaterRow.update({
139348
+ status: activate ? "Deployed" : "Built",
139349
+ end: ""
139350
+ });
139351
+ deploymentLogs.push({ url: url2, consoleUrl, elapsed });
138328
139352
  break;
138329
139353
  } else if (status === "failed") {
138330
139354
  failedDeployments.push({
@@ -138355,6 +139379,13 @@ var Push = class {
138355
139379
  })
138356
139380
  );
138357
139381
  Spinner.stop();
139382
+ for (const dl of deploymentLogs) {
139383
+ if (dl.url) {
139384
+ this.log(` ${import_chalk12.default.cyan("\u2192")} ${dl.url}`);
139385
+ }
139386
+ this.log(` ${import_chalk12.default.cyan("\u2192")} ${dl.consoleUrl}`);
139387
+ this.success(`Successfully deployed in ${import_chalk12.default.bold(dl.elapsed + "s")}`);
139388
+ }
138358
139389
  return {
138359
139390
  successfullyPushed,
138360
139391
  successfullyDeployed,
@@ -138374,6 +139405,7 @@ var Push = class {
138374
139405
  let successfullyDeployed = 0;
138375
139406
  const failedDeployments = [];
138376
139407
  const errors = [];
139408
+ const deploymentLogs = [];
138377
139409
  await Promise.all(
138378
139410
  sites2.map(async (site) => {
138379
139411
  let response = {};
@@ -138539,6 +139571,7 @@ var Push = class {
138539
139571
  });
138540
139572
  return;
138541
139573
  }
139574
+ const deployStartTime = Date.now();
138542
139575
  try {
138543
139576
  updaterRow.update({ status: "Pushing" }).replaceSpinner(SPINNER_DOTS);
138544
139577
  const sitesServiceDeploy = await getSitesService(this.projectClient);
@@ -138551,7 +139584,7 @@ var Push = class {
138551
139584
  buildCommand: site.buildCommand,
138552
139585
  outputDirectory: site.outputDirectory,
138553
139586
  code: codeFile,
138554
- activate: asyncDeploy ? activate : false
139587
+ activate
138555
139588
  });
138556
139589
  },
138557
139590
  pollForStatus: false
@@ -138632,10 +139665,23 @@ var Push = class {
138632
139665
  if (Number(res.total) === 1) {
138633
139666
  url2 = `https://${res.rules[0].domain}`;
138634
139667
  }
139668
+ const elapsed = ((Date.now() - deployStartTime) / 1e3).toFixed(
139669
+ 1
139670
+ );
139671
+ const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
139672
+ const projectId = localConfig.getProject().projectId;
139673
+ const consoleUrl = getSiteDeploymentConsoleUrl(
139674
+ endpoint,
139675
+ projectId,
139676
+ site["$id"],
139677
+ deploymentId
139678
+ );
139679
+ updaterRow.stopSpinner();
138635
139680
  updaterRow.update({
138636
139681
  status: activate ? "Deployed" : "Built",
138637
- end: url2
139682
+ end: ""
138638
139683
  });
139684
+ deploymentLogs.push({ url: url2, consoleUrl, elapsed });
138639
139685
  break;
138640
139686
  } else if (status === "failed") {
138641
139687
  failedDeployments.push({
@@ -138666,6 +139712,13 @@ var Push = class {
138666
139712
  })
138667
139713
  );
138668
139714
  Spinner.stop();
139715
+ for (const dl of deploymentLogs) {
139716
+ if (dl.url) {
139717
+ this.log(` ${import_chalk12.default.cyan("\u2192")} ${dl.url}`);
139718
+ }
139719
+ this.log(` ${import_chalk12.default.cyan("\u2192")} ${dl.consoleUrl}`);
139720
+ this.success(`Successfully deployed in ${import_chalk12.default.bold(dl.elapsed + "s")}`);
139721
+ }
138669
139722
  return {
138670
139723
  successfullyPushed,
138671
139724
  successfullyDeployed,
@@ -138758,7 +139811,7 @@ var Push = class {
138758
139811
  if (!hadChanges && columns.length <= 0 && indexes.length <= 0) {
138759
139812
  if (!tablesChanged.has(table["$id"])) {
138760
139813
  this.log(
138761
- `No changes detected for table ${import_chalk11.default.bold(table["name"])}. Skipping.`
139814
+ `No changes detected for table ${import_chalk12.default.bold(table["name"])}. Skipping.`
138762
139815
  );
138763
139816
  }
138764
139817
  continue;
@@ -138947,10 +140000,17 @@ var pushResources = async ({
138947
140000
  checkDeployConditions(localConfig);
138948
140001
  const functions2 = localConfig.getFunctions();
138949
140002
  let allowFunctionsCodePush = cliConfig.force === true ? true : null;
140003
+ let activateFunctionsDeployment = cliConfig.force === true ? true : void 0;
138950
140004
  if (functions2.length > 0 && allowFunctionsCodePush === null) {
138951
140005
  const codeAnswer = await import_inquirer7.default.prompt(questionsPushFunctionsCode);
138952
140006
  allowFunctionsCodePush = codeAnswer.override;
138953
140007
  }
140008
+ if (functions2.length > 0 && allowFunctionsCodePush === true && activateFunctionsDeployment === void 0) {
140009
+ const activateAnswer = await import_inquirer7.default.prompt(
140010
+ questionsPushFunctionsActivate
140011
+ );
140012
+ activateFunctionsDeployment = activateAnswer.activate;
140013
+ }
138954
140014
  const sites2 = localConfig.getSites();
138955
140015
  let allowSitesCodePush = cliConfig.force === true ? true : null;
138956
140016
  let activateSitesDeployment = cliConfig.force === true ? true : void 0;
@@ -138991,6 +140051,7 @@ var pushResources = async ({
138991
140051
  skipDeprecated,
138992
140052
  functionOptions: {
138993
140053
  code: allowFunctionsCodePush === true,
140054
+ activate: activateFunctionsDeployment ?? true,
138994
140055
  withVariables: false
138995
140056
  },
138996
140057
  siteOptions: {
@@ -139070,7 +140131,7 @@ var pushSettings = async () => {
139070
140131
  projectName: config2.projectName,
139071
140132
  settings: config2.projectSettings
139072
140133
  });
139073
- success2(`Successfully pushed ${import_chalk11.default.bold("all")} project settings.`);
140134
+ success2(`Successfully pushed ${import_chalk12.default.bold("all")} project settings.`);
139074
140135
  } catch (e) {
139075
140136
  throw e;
139076
140137
  }
@@ -139167,17 +140228,12 @@ var pushSite = async ({
139167
140228
  const { name, deployment, $id } = failed;
139168
140229
  const projectId = localConfig.getProject().projectId;
139169
140230
  const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
139170
- let region = "";
139171
- try {
139172
- const hostname3 = new URL(endpoint).hostname;
139173
- const firstSubdomain = hostname3.split(".")[0];
139174
- if (firstSubdomain.length === 3) {
139175
- region = firstSubdomain;
139176
- }
139177
- } catch {
139178
- }
139179
- const projectSlug = region ? `project-${region}-${projectId}` : `project-${projectId}`;
139180
- const failUrl = `${globalConfig2.getEndpoint().slice(0, -3)}/console/${projectSlug}/sites/site-${$id}/deployments/deployment-${deployment}`;
140231
+ const failUrl = getSiteDeploymentConsoleUrl(
140232
+ endpoint,
140233
+ projectId,
140234
+ $id,
140235
+ deployment
140236
+ );
139181
140237
  error48(
139182
140238
  `Deployment of ${name} has failed. Check at ${failUrl} for more details
139183
140239
  `
@@ -139206,6 +140262,7 @@ var pushFunction = async ({
139206
140262
  functionId,
139207
140263
  async: asyncDeploy,
139208
140264
  code,
140265
+ activate,
139209
140266
  withVariables
139210
140267
  } = {}) => {
139211
140268
  process.chdir(localConfig.configDirectoryPath);
@@ -139270,11 +140327,19 @@ var pushFunction = async ({
139270
140327
  allowCodePush = codeAnswer.override;
139271
140328
  }
139272
140329
  const shouldPushCode = code !== false && allowCodePush === true;
140330
+ let shouldActivate = activate;
140331
+ if (shouldPushCode && shouldActivate === void 0) {
140332
+ const activateAnswer = await import_inquirer7.default.prompt(
140333
+ questionsPushFunctionsActivate
140334
+ );
140335
+ shouldActivate = activateAnswer.activate;
140336
+ }
139273
140337
  log("Pushing functions ...");
139274
140338
  const pushInstance = await createPushInstance();
139275
140339
  const result = await pushInstance.pushFunctions(functions2, {
139276
140340
  async: asyncDeploy,
139277
140341
  code: shouldPushCode,
140342
+ activate: shouldActivate ?? true,
139278
140343
  withVariables
139279
140344
  });
139280
140345
  const {
@@ -139287,17 +140352,12 @@ var pushFunction = async ({
139287
140352
  const { name, deployment, $id } = failed;
139288
140353
  const projectId = localConfig.getProject().projectId;
139289
140354
  const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
139290
- let region = "";
139291
- try {
139292
- const hostname3 = new URL(endpoint).hostname;
139293
- const firstSubdomain = hostname3.split(".")[0];
139294
- if (firstSubdomain.length === 3) {
139295
- region = firstSubdomain;
139296
- }
139297
- } catch {
139298
- }
139299
- const projectSlug = region ? `project-${region}-${projectId}` : `project-${projectId}`;
139300
- const failUrl = `${globalConfig2.getEndpoint().slice(0, -3)}/console/${projectSlug}/functions/function-${$id}/deployment-${deployment}`;
140355
+ const failUrl = getFunctionDeploymentConsoleUrl(
140356
+ endpoint,
140357
+ projectId,
140358
+ $id,
140359
+ deployment
140360
+ );
139301
140361
  error48(
139302
140362
  `Deployment of ${name} has failed. Check at ${failUrl} for more details
139303
140363
  `
@@ -139391,7 +140451,7 @@ var pushTable = async ({
139391
140451
  log("Found tables that exist remotely but not locally:");
139392
140452
  const deletionChanges = tablesToDelete.map((table) => ({
139393
140453
  id: table.$id,
139394
- action: import_chalk11.default.red("deleting"),
140454
+ action: import_chalk12.default.red("deleting"),
139395
140455
  key: "Table",
139396
140456
  database: table.databaseName,
139397
140457
  remote: table.name,
@@ -139688,7 +140748,11 @@ push.command("all").description("Push all resource.").action(
139688
140748
  })
139689
140749
  );
139690
140750
  push.command("settings").description("Push project name, services and auth settings").action(actionRunner(pushSettings));
139691
- push.command("function").alias("functions").description("Push functions in the current directory.").option(`-f, --function-id <function-id>`, `ID of function to run`).option(`-A, --async`, `Don't wait for functions deployments status`).option("--no-code", "Don't push the function's code").option("--with-variables", `Push function variables.`).action(actionRunner(pushFunction));
140751
+ push.command("function").alias("functions").description("Push functions in the current directory.").option(`-f, --function-id <function-id>`, `ID of function to run`).option(`-A, --async`, `Don't wait for functions deployments status`).option("--no-code", "Don't push the function's code").option(
140752
+ "--activate [value]",
140753
+ "Activate the function's deployment after it is ready.",
140754
+ (value) => value === void 0 ? true : parseBool(value)
140755
+ ).option("--with-variables", `Push function variables.`).action(actionRunner(pushFunction));
139692
140756
  push.command("site").alias("sites").description("Push sites in the current directory.").option(`-f, --site-id <site-id>`, `ID of site to run`).option(`-A, --async`, `Don't wait for sites deployments status`).option("--no-code", "Don't push the site's code").option(
139693
140757
  "--activate [value]",
139694
140758
  "Activate the site's deployment after it is ready.",
@@ -139717,7 +140781,7 @@ var deploy = new Command("deploy").description(`Removed. Use ${EXECUTABLE_NAME}
139717
140781
 
139718
140782
  // lib/commands/update.ts
139719
140783
  var import_child_process4 = require("child_process");
139720
- var import_chalk12 = __toESM(require_source(), 1);
140784
+ var import_chalk13 = __toESM(require_source(), 1);
139721
140785
  var import_inquirer8 = __toESM(require_inquirer(), 1);
139722
140786
  var { version: version2 } = package_default;
139723
140787
  var isInstalledViaNpm = () => {
@@ -139802,13 +140866,13 @@ var updateViaHomebrew = async () => {
139802
140866
  var showManualInstructions = (latestVersion) => {
139803
140867
  log("Manual update options:");
139804
140868
  console.log("");
139805
- log(`${import_chalk12.default.bold("Option 1: NPM")}`);
140869
+ log(`${import_chalk13.default.bold("Option 1: NPM")}`);
139806
140870
  console.log(` npm install -g ${NPM_PACKAGE_NAME}@latest`);
139807
140871
  console.log("");
139808
- log(`${import_chalk12.default.bold("Option 2: Homebrew")}`);
140872
+ log(`${import_chalk13.default.bold("Option 2: Homebrew")}`);
139809
140873
  console.log(` brew upgrade appwrite`);
139810
140874
  console.log("");
139811
- log(`${import_chalk12.default.bold("Option 3: Download Binary")}`);
140875
+ log(`${import_chalk13.default.bold("Option 3: Download Binary")}`);
139812
140876
  console.log(` Visit: ${GITHUB_RELEASES_URL}/tag/${latestVersion}`);
139813
140877
  };
139814
140878
  var chooseUpdateMethod = async (latestVersion) => {
@@ -139843,18 +140907,18 @@ var updateCli = async ({ manual } = {}) => {
139843
140907
  const comparison = compareVersions(version2, latestVersion);
139844
140908
  if (comparison === 0) {
139845
140909
  success2(
139846
- `You're already running the latest version (${import_chalk12.default.bold(version2)})!`
140910
+ `You're already running the latest version (${import_chalk13.default.bold(version2)})!`
139847
140911
  );
139848
140912
  return;
139849
140913
  } else if (comparison < 0) {
139850
140914
  warn(
139851
- `You're running a newer version (${import_chalk12.default.bold(version2)}) than the latest released version (${import_chalk12.default.bold(latestVersion)}).`
140915
+ `You're running a newer version (${import_chalk13.default.bold(version2)}) than the latest released version (${import_chalk13.default.bold(latestVersion)}).`
139852
140916
  );
139853
140917
  hint("This might be a pre-release or development version.");
139854
140918
  return;
139855
140919
  }
139856
140920
  log(
139857
- `Updating from ${import_chalk12.default.blue(version2)} to ${import_chalk12.default.green(latestVersion)}...`
140921
+ `Updating from ${import_chalk13.default.blue(version2)} to ${import_chalk13.default.green(latestVersion)}...`
139858
140922
  );
139859
140923
  console.log("");
139860
140924
  if (manual) {
@@ -140588,7 +141652,7 @@ Example:
140588
141652
  var accountClient = null;
140589
141653
  var getAccountClient = async () => {
140590
141654
  if (!accountClient) {
140591
- const sdkClient = await sdkForProject();
141655
+ const sdkClient = await sdkForConsole();
140592
141656
  accountClient = new Account(sdkClient);
140593
141657
  }
140594
141658
  return accountClient;
@@ -141975,7 +143039,7 @@ var healthGetTimeCommand = health.command(`get-time`).description(`Check the App
141975
143039
  var localeClient = null;
141976
143040
  var getLocaleClient = async () => {
141977
143041
  if (!localeClient) {
141978
- const sdkClient = await sdkForProject();
143042
+ const sdkClient = await sdkForConsole();
141979
143043
  localeClient = new Locale(sdkClient);
141980
143044
  }
141981
143045
  return localeClient;
@@ -142487,7 +143551,7 @@ var messagingDeleteSubscriberCommand = messaging.command(`delete-subscriber`).de
142487
143551
  var migrationsClient = null;
142488
143552
  var getMigrationsClient = async () => {
142489
143553
  if (!migrationsClient) {
142490
- const sdkClient = await sdkForConsole();
143554
+ const sdkClient = await sdkForProject();
142491
143555
  migrationsClient = new Migrations(sdkClient);
142492
143556
  }
142493
143557
  return migrationsClient;
@@ -142546,7 +143610,8 @@ var migrationsGetFirebaseReportCommand = migrations.command(`get-firebase-report
142546
143610
  async ({ resources, serviceAccount }) => parse3(await (await getMigrationsClient()).getFirebaseReport(resources, serviceAccount))
142547
143611
  )
142548
143612
  );
142549
- var migrationsCreateJSONExportCommand = migrations.command(`create-json-export`).description(``).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`).requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .json extension.`).option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`).option(
143613
+ var migrationsCreateJSONExportCommand = migrations.command(`create-json-export`).description(`Export documents to a JSON file from your Appwrite database. This endpoint allows you to export documents to a JSON file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
143614
+ `).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`).requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .json extension.`).option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`).option(
142550
143615
  `--notify [value]`,
142551
143616
  `Set to true to receive an email when the export is complete. Default is true.`,
142552
143617
  (value) => value === void 0 ? true : parseBool(value)
@@ -142555,7 +143620,8 @@ var migrationsCreateJSONExportCommand = migrations.command(`create-json-export`)
142555
143620
  async ({ resourceId, filename, columns, queries, notify }) => parse3(await (await getMigrationsClient()).createJSONExport(resourceId, filename, columns, queries, notify))
142556
143621
  )
142557
143622
  );
142558
- var migrationsCreateJSONImportCommand = migrations.command(`create-json-import`).description(``).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`).requiredOption(`--file-id <file-id>`, `File ID.`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.`).option(
143623
+ var migrationsCreateJSONImportCommand = migrations.command(`create-json-import`).description(`Import documents from a JSON file into your Appwrite database. This endpoint allows you to import documents from a JSON file uploaded to Appwrite Storage bucket.
143624
+ `).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`).requiredOption(`--file-id <file-id>`, `File ID.`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.`).option(
142559
143625
  `--internal-file [value]`,
142560
143626
  `Is the file stored in an internal bucket?`,
142561
143627
  (value) => value === void 0 ? true : parseBool(value)
@@ -142633,6 +143699,42 @@ var organizationsDeleteCommand = organizations.command(`delete`).description(`De
142633
143699
  async ({ organizationId }) => parse3(await (await getOrganizationsClient()).delete(organizationId))
142634
143700
  )
142635
143701
  );
143702
+ var organizationsListAddonsCommand = organizations.command(`list-addons`).description(`List all billing addons for an organization.
143703
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).action(
143704
+ actionRunner(
143705
+ async ({ organizationId }) => parse3(await (await getOrganizationsClient()).listAddons(organizationId))
143706
+ )
143707
+ );
143708
+ var organizationsCreateBaaAddonCommand = organizations.command(`create-baa-addon`).description(`Create the BAA billing addon for an organization.
143709
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).action(
143710
+ actionRunner(
143711
+ async ({ organizationId }) => parse3(await (await getOrganizationsClient()).createBaaAddon(organizationId))
143712
+ )
143713
+ );
143714
+ var organizationsGetAddonCommand = organizations.command(`get-addon`).description(`Get the details of a billing addon for an organization.
143715
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--addon-id <addon-id>`, `Addon ID`).action(
143716
+ actionRunner(
143717
+ async ({ organizationId, addonId }) => parse3(await (await getOrganizationsClient()).getAddon(organizationId, addonId))
143718
+ )
143719
+ );
143720
+ var organizationsDeleteAddonCommand = organizations.command(`delete-addon`).description(`Delete a billing addon for an organization.
143721
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--addon-id <addon-id>`, `Addon ID`).action(
143722
+ actionRunner(
143723
+ async ({ organizationId, addonId }) => parse3(await (await getOrganizationsClient()).deleteAddon(organizationId, addonId))
143724
+ )
143725
+ );
143726
+ var organizationsConfirmAddonPaymentCommand = organizations.command(`confirm-addon-payment`).description(`Confirm payment for a billing addon for an organization.
143727
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--addon-id <addon-id>`, `Addon ID`).action(
143728
+ actionRunner(
143729
+ async ({ organizationId, addonId }) => parse3(await (await getOrganizationsClient()).confirmAddonPayment(organizationId, addonId))
143730
+ )
143731
+ );
143732
+ var organizationsGetAddonPriceCommand = organizations.command(`get-addon-price`).description(`Get the price details for a billing addon for an organization.
143733
+ `).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--addon <addon>`, `Addon key identifier (e.g. baa).`).action(
143734
+ actionRunner(
143735
+ async ({ organizationId, addon }) => parse3(await (await getOrganizationsClient()).getAddonPrice(organizationId, addon))
143736
+ )
143737
+ );
142636
143738
  var organizationsListAggregationsCommand = organizations.command(`list-aggregations`).description(`Get a list of all aggregations for an organization.`).requiredOption(`--organization-id <organization-id>`, `Organization ID`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, from, to`).action(
142637
143739
  actionRunner(
142638
143740
  async ({ organizationId, queries }) => parse3(await (await getOrganizationsClient()).listAggregations(organizationId, queries))
@@ -143164,7 +144266,7 @@ var projectsDeleteSmsTemplateCommand = projects.command(`delete-sms-template`).d
143164
144266
  var proxyClient = null;
143165
144267
  var getProxyClient = async () => {
143166
144268
  if (!proxyClient) {
143167
- const sdkClient = await sdkForConsole();
144269
+ const sdkClient = await sdkForProject();
143168
144270
  proxyClient = new Proxy2(sdkClient);
143169
144271
  }
143170
144272
  return proxyClient;
@@ -144572,7 +145674,7 @@ var usersUpdatePhoneVerificationCommand = users.command(`update-phone-verificati
144572
145674
  var vcsClient = null;
144573
145675
  var getVcsClient = async () => {
144574
145676
  if (!vcsClient) {
144575
- const sdkClient = await sdkForConsole();
145677
+ const sdkClient = await sdkForProject();
144576
145678
  vcsClient = new Vcs(sdkClient);
144577
145679
  }
144578
145680
  return vcsClient;
@@ -144709,17 +145811,17 @@ var VERSION_CHECK_TIMEOUT_MS = 5e3;
144709
145811
  function writeUpdateAvailableNotice(currentVersion, latestVersion, toStderr = false) {
144710
145812
  const stream = toStderr ? process.stderr : process.stdout;
144711
145813
  stream.write(
144712
- import_chalk13.default.yellow(
145814
+ import_chalk14.default.yellow(
144713
145815
  `
144714
- \u26A0\uFE0F A newer version is available: ${import_chalk13.default.bold(currentVersion)} ${import_chalk13.default.bold("\u2192")} ${import_chalk13.default.bold(
145816
+ \u26A0\uFE0F A newer version is available: ${import_chalk14.default.bold(currentVersion)} ${import_chalk14.default.bold("\u2192")} ${import_chalk14.default.bold(
144715
145817
  latestVersion
144716
145818
  )}`
144717
145819
  ) + "\n"
144718
145820
  );
144719
145821
  stream.write(
144720
- import_chalk13.default.cyan(
144721
- `\u{1F4A1} Run '${import_chalk13.default.bold("appwrite update")}' to update to the latest version.`
144722
- ) + "\n"
145822
+ import_chalk14.default.cyan(
145823
+ `\u{1F4A1} Run '${import_chalk14.default.bold("appwrite update")}' to update to the latest version.`
145824
+ ) + "\n\n"
144723
145825
  );
144724
145826
  }
144725
145827
  function shouldWriteUpdateNoticeToStderr() {
@@ -144736,7 +145838,7 @@ async function maybeShowUpdateNotice() {
144736
145838
  }
144737
145839
  }
144738
145840
  async function checkVersion() {
144739
- process.stdout.write(import_chalk13.default.bold(`appwrite version ${version3}`) + "\n");
145841
+ process.stdout.write(import_chalk14.default.bold(`appwrite version ${version3}`) + "\n");
144740
145842
  try {
144741
145843
  const latestVersion = await getLatestVersion({ timeoutMs: VERSION_CHECK_TIMEOUT_MS });
144742
145844
  syncVersionCheckCache(version3, latestVersion);
@@ -144744,12 +145846,12 @@ async function checkVersion() {
144744
145846
  if (comparison > 0) {
144745
145847
  writeUpdateAvailableNotice(version3, latestVersion);
144746
145848
  } else if (comparison === 0) {
144747
- process.stdout.write(import_chalk13.default.green("\n\u2705 You are running the latest version!") + "\n");
145849
+ process.stdout.write(import_chalk14.default.green("\n\u2705 You are running the latest version!") + "\n");
144748
145850
  } else {
144749
- process.stdout.write(import_chalk13.default.blue("\n\u{1F680} You are running a pre-release or development version.") + "\n");
145851
+ process.stdout.write(import_chalk14.default.blue("\n\u{1F680} You are running a pre-release or development version.") + "\n");
144750
145852
  }
144751
145853
  } catch (_error) {
144752
- process.stdout.write(import_chalk13.default.gray("\n(Unable to check for updates)") + "\n");
145854
+ process.stdout.write(import_chalk14.default.gray("\n(Unable to check for updates)") + "\n");
144753
145855
  }
144754
145856
  }
144755
145857
  if (process.argv.includes("-v") || process.argv.includes("--version")) {