@arcgis/create 5.2.0-next.99 → 6.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/init.js +850 -830
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -1,22 +1,22 @@
1
- import { EventEmitter as Ea } from "node:events";
1
+ import { EventEmitter as Ca } from "node:events";
2
2
  import Yt from "node:child_process";
3
- import we from "node:path";
3
+ import Se from "node:path";
4
4
  import nt from "node:fs";
5
5
  import q, { stdout as Ln, stdin as ho } from "node:process";
6
6
  import { stripVTControlCharacters as po, styleText as oe } from "node:util";
7
7
  import * as st from "node:readline";
8
- import Ca from "node:readline";
8
+ import Aa from "node:readline";
9
9
  import Qn, { ReadStream as Zn } from "node:tty";
10
- import Aa from "node:os";
11
- import ie from "fs/promises";
12
- import Ke from "path";
10
+ import La from "node:os";
11
+ import se from "fs/promises";
12
+ import Re from "path";
13
13
  import Ee from "process";
14
- import La from "child_process";
15
- import Oa, { promisify as $a } from "util";
16
- import _a from "node:url";
17
- import Na from "url";
18
- import Pa from "node:module";
19
- import Ia from "buffer";
14
+ import Oa from "child_process";
15
+ import $a, { promisify as _a } from "util";
16
+ import Na from "node:url";
17
+ import Pa from "url";
18
+ import Ia from "node:module";
19
+ import Ta from "buffer";
20
20
  class Ot extends Error {
21
21
  /**
22
22
  * Constructs the CommanderError class
@@ -37,7 +37,7 @@ class mo extends Ot {
37
37
  super(1, "commander.invalidArgument", t), Error.captureStackTrace(this, this.constructor), this.name = this.constructor.name;
38
38
  }
39
39
  }
40
- class Ta {
40
+ class ka {
41
41
  /**
42
42
  * Initialize a new command argument with the given name and description.
43
43
  * The default is that the argument is required, and you can explicitly
@@ -129,7 +129,7 @@ function go(e) {
129
129
  const t = e.name() + (e.variadic === !0 ? "..." : "");
130
130
  return e.required ? "<" + t + ">" : "[" + t + "]";
131
131
  }
132
- class ka {
132
+ class xa {
133
133
  constructor() {
134
134
  this.helpWidth = void 0, this.minWidthToWrap = 40, this.sortSubcommands = !1, this.sortOptions = !1, this.showGlobalOptions = !1;
135
135
  }
@@ -607,7 +607,7 @@ class es {
607
607
  */
608
608
  constructor(t, i) {
609
609
  this.flags = t, this.description = i || "", this.required = t.includes("<"), this.optional = t.includes("["), this.variadic = /\w\.\.\.[>\]]$/.test(t), this.mandatory = !1;
610
- const l = Ra(t);
610
+ const l = Ma(t);
611
611
  this.short = l.shortFlag, this.long = l.longFlag, this.negate = !1, this.long && (this.negate = this.long.startsWith("--no-")), this.defaultValue = void 0, this.defaultValueDescription = void 0, this.presetArg = void 0, this.envVar = void 0, this.parseArg = void 0, this.hidden = !1, this.argChoices = void 0, this.conflictsWith = [], this.implied = void 0, this.helpGroupHeading = void 0;
612
612
  }
613
613
  /**
@@ -773,7 +773,7 @@ class es {
773
773
  return !this.required && !this.optional && !this.negate;
774
774
  }
775
775
  }
776
- class xa {
776
+ class Ra {
777
777
  /**
778
778
  * @param {Option[]} options
779
779
  */
@@ -801,7 +801,7 @@ class xa {
801
801
  function ts(e) {
802
802
  return e.split("-").reduce((t, i) => t + i[0].toUpperCase() + i.slice(1));
803
803
  }
804
- function Ra(e) {
804
+ function Ma(e) {
805
805
  let t, i;
806
806
  const l = /^-[^-]$/, p = /^--[^-]/, s = e.split(/[ |,]+/).concat("guard");
807
807
  if (l.test(s[0]) && (t = s.shift()), p.test(s[0]) && (i = s.shift()), !t && l.test(s[0]) && (t = s.shift()), !t && p.test(s[0]) && (t = i, i = s.shift()), s[0].startsWith("-")) {
@@ -823,7 +823,7 @@ function Ra(e) {
823
823
  return { shortFlag: t, longFlag: i };
824
824
  }
825
825
  const yo = 3;
826
- function Ma(e, t) {
826
+ function Da(e, t) {
827
827
  if (Math.abs(e.length - t.length) > yo)
828
828
  return Math.max(e.length, t.length);
829
829
  const i = [];
@@ -854,13 +854,13 @@ function is(e, t) {
854
854
  const s = 0.4;
855
855
  return t.forEach((c) => {
856
856
  if (c.length <= 1) return;
857
- const h = Ma(e, c), o = Math.max(e.length, c.length);
857
+ const h = Da(e, c), o = Math.max(e.length, c.length);
858
858
  (o - h) / o > s && (h < p ? (p = h, l = [c]) : h === p && l.push(c));
859
859
  }), l.sort((c, h) => c.localeCompare(h)), i && (l = l.map((c) => `--${c}`)), l.length > 1 ? `
860
860
  (Did you mean one of ${l.join(", ")}?)` : l.length === 1 ? `
861
861
  (Did you mean ${l[0]}?)` : "";
862
862
  }
863
- class It extends Ea {
863
+ class It extends Ca {
864
864
  /**
865
865
  * Initialize a new `Command`.
866
866
  *
@@ -948,7 +948,7 @@ class It extends Ea {
948
948
  * @return {Help}
949
949
  */
950
950
  createHelp() {
951
- return Object.assign(new ka(), this.configureHelp());
951
+ return Object.assign(new xa(), this.configureHelp());
952
952
  }
953
953
  /**
954
954
  * You can customise the help by overriding Help properties using configureHelp(),
@@ -1032,7 +1032,7 @@ class It extends Ea {
1032
1032
  * @return {Argument} new argument
1033
1033
  */
1034
1034
  createArgument(t, i) {
1035
- return new Ta(t, i);
1035
+ return new ka(t, i);
1036
1036
  }
1037
1037
  /**
1038
1038
  * Define argument syntax for command.
@@ -1631,9 +1631,9 @@ Expecting one of '${l.join("', '")}'`);
1631
1631
  i = i.slice();
1632
1632
  const l = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
1633
1633
  function p(n, u) {
1634
- const a = we.resolve(n, u);
1634
+ const a = Se.resolve(n, u);
1635
1635
  if (nt.existsSync(a)) return a;
1636
- if (l.includes(we.extname(u))) return;
1636
+ if (l.includes(Se.extname(u))) return;
1637
1637
  const r = l.find(
1638
1638
  (f) => nt.existsSync(`${a}${f}`)
1639
1639
  );
@@ -1648,17 +1648,17 @@ Expecting one of '${l.join("', '")}'`);
1648
1648
  } catch {
1649
1649
  n = this._scriptPath;
1650
1650
  }
1651
- c = we.resolve(
1652
- we.dirname(n),
1651
+ c = Se.resolve(
1652
+ Se.dirname(n),
1653
1653
  c
1654
1654
  );
1655
1655
  }
1656
1656
  if (c) {
1657
1657
  let n = p(c, s);
1658
1658
  if (!n && !t._executableFile && this._scriptPath) {
1659
- const u = we.basename(
1659
+ const u = Se.basename(
1660
1660
  this._scriptPath,
1661
- we.extname(this._scriptPath)
1661
+ Se.extname(this._scriptPath)
1662
1662
  );
1663
1663
  u !== this._name && (n = p(
1664
1664
  c,
@@ -1667,7 +1667,7 @@ Expecting one of '${l.join("', '")}'`);
1667
1667
  }
1668
1668
  s = n || s;
1669
1669
  }
1670
- const h = l.includes(we.extname(s));
1670
+ const h = l.includes(Se.extname(s));
1671
1671
  let o;
1672
1672
  q.platform !== "win32" ? h ? (i.unshift(s), i = ns(q.execArgv).concat(i), o = Yt.spawn(q.argv[0], i, { stdio: "inherit" })) : o = Yt.spawn(s, i, { stdio: "inherit" }) : (this._checkForMissingExecutable(
1673
1673
  s,
@@ -2079,7 +2079,7 @@ Expecting one of '${l.join("', '")}'`);
2079
2079
  * @private
2080
2080
  */
2081
2081
  _parseOptionsImplied() {
2082
- const t = new xa(this.options), i = (l) => this.getOptionValue(l) !== void 0 && !["default", "implied"].includes(this.getOptionValueSource(l));
2082
+ const t = new Ra(this.options), i = (l) => this.getOptionValue(l) !== void 0 && !["default", "implied"].includes(this.getOptionValueSource(l));
2083
2083
  this.options.filter(
2084
2084
  (l) => l.implied !== void 0 && i(l.attributeName()) && t.valueFromOption(
2085
2085
  this.getOptionValue(l.attributeName()),
@@ -2362,7 +2362,7 @@ Expecting one of '${l.join("', '")}'`);
2362
2362
  * @return {Command}
2363
2363
  */
2364
2364
  nameFromFilename(t) {
2365
- return this._name = we.basename(t, we.extname(t)), this;
2365
+ return this._name = Se.basename(t, Se.extname(t)), this;
2366
2366
  }
2367
2367
  /**
2368
2368
  * Get or set the directory for searching for executable subcommands of this command.
@@ -2540,9 +2540,9 @@ function ss() {
2540
2540
  return !0;
2541
2541
  }
2542
2542
  new It();
2543
- const Da = "5.2.0-next.99", Fa = {
2544
- version: Da
2545
- }, Ba = [
2543
+ const Fa = "1.0.0-0", Ba = {
2544
+ version: Fa
2545
+ }, Ga = [
2546
2546
  {
2547
2547
  folder: "js-maps-sdk-react",
2548
2548
  label: "react"
@@ -2559,6 +2559,10 @@ const Da = "5.2.0-next.99", Fa = {
2559
2559
  folder: "js-maps-sdk-vue",
2560
2560
  label: "vue"
2561
2561
  },
2562
+ {
2563
+ folder: "js-maps-sdk-astro",
2564
+ label: "astro"
2565
+ },
2562
2566
  {
2563
2567
  folder: "js-maps-sdk-angular",
2564
2568
  label: "angular"
@@ -2602,13 +2606,13 @@ const Da = "5.2.0-next.99", Fa = {
2602
2606
  {
2603
2607
  folder: "geometry-operator-worker"
2604
2608
  }
2605
- ], On = "lumina-components", Ga = "js-maps-sdk-cdn", Tt = {
2609
+ ], On = "lumina-components", qa = "js-maps-sdk-cdn", Tt = {
2606
2610
  webGisSdk: "web-gis-sdk"
2607
2611
  }, kt = {
2608
2612
  codeSample: "CODE_SAMPLE",
2609
2613
  appSample: "APP_SAMPLE"
2610
2614
  };
2611
- function qa(e, t) {
2615
+ function ja(e, t) {
2612
2616
  const i = `templates/${e}`;
2613
2617
  return {
2614
2618
  handlerType: kt.appSample,
@@ -2619,13 +2623,13 @@ function qa(e, t) {
2619
2623
  ...t ? { customName: t } : {}
2620
2624
  };
2621
2625
  }
2622
- function ja() {
2626
+ function Ua() {
2623
2627
  const e = {};
2624
- for (const t of Ba) {
2628
+ for (const t of Ga) {
2625
2629
  const { folder: i } = t, l = i;
2626
2630
  if (e[l])
2627
2631
  throw new Error(`Template registry collision detected for "${l}".`);
2628
- e[l] = qa(i, "label" in t ? t.label : void 0);
2632
+ e[l] = ja(i, "label" in t ? t.label : void 0);
2629
2633
  }
2630
2634
  return e[On] = {
2631
2635
  handlerType: kt.codeSample,
@@ -2634,27 +2638,27 @@ function ja() {
2634
2638
  excludedFromPrompts: !0
2635
2639
  }, e;
2636
2640
  }
2637
- const Ua = ja(), Ce = Object.entries(Ua), bo = {
2641
+ const Ha = Ua(), Ce = Object.entries(Ha), bo = {
2638
2642
  [Tt.webGisSdk]: {}
2639
2643
  };
2640
2644
  for (const [e, t] of Ce)
2641
2645
  t.handlerType === kt.appSample && (bo[t.domain][e] = t.templatePath);
2642
2646
  const vo = "github.com", $n = "main", _n = Object.fromEntries(
2643
2647
  Ce.map(([e, t]) => [e, t.repo])
2644
- ), Ha = Object.fromEntries(
2645
- Ce.map(([e, t]) => [e, t.filesPath])
2646
2648
  ), Va = Object.fromEntries(
2647
- Ce.map(([e, t]) => [e, t.handlerType])
2649
+ Ce.map(([e, t]) => [e, t.filesPath])
2648
2650
  ), Wa = Object.fromEntries(
2649
- Ce.filter(([, e]) => !!e.excludedFromPrompts).map(([e]) => [e, !0])
2651
+ Ce.map(([e, t]) => [e, t.handlerType])
2650
2652
  ), Ya = Object.fromEntries(
2653
+ Ce.filter(([, e]) => !!e.excludedFromPrompts).map(([e]) => [e, !0])
2654
+ ), Ka = Object.fromEntries(
2651
2655
  Ce.map(([e, t]) => [e, t.customName ?? e])
2652
2656
  );
2653
2657
  function Nn(e) {
2654
2658
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2655
2659
  }
2656
2660
  var rt = { exports: {} }, rs;
2657
- function Ka() {
2661
+ function Ja() {
2658
2662
  if (rs) return rt.exports;
2659
2663
  rs = 1;
2660
2664
  let e = process || {}, t = e.argv || [], i = e.env || {}, l = !(i.NO_COLOR || t.includes("--no-color")) && (!!i.FORCE_COLOR || t.includes("--color") || e.platform === "win32" || (e.stdout || {}).isTTY && i.TERM !== "dumb" || !!i.CI), p = (h, o, m = h) => (n) => {
@@ -2715,10 +2719,10 @@ function Ka() {
2715
2719
  };
2716
2720
  return rt.exports = c(), rt.exports.createColors = c, rt.exports;
2717
2721
  }
2718
- var Ja = /* @__PURE__ */ Ka();
2719
- const x = /* @__PURE__ */ Nn(Ja);
2722
+ var za = /* @__PURE__ */ Ja();
2723
+ const x = /* @__PURE__ */ Nn(za);
2720
2724
  var Kt, os;
2721
- function za() {
2725
+ function Xa() {
2722
2726
  if (os) return Kt;
2723
2727
  os = 1;
2724
2728
  const e = "\x1B", t = `${e}[`, i = "\x07", l = {
@@ -2759,74 +2763,74 @@ function za() {
2759
2763
  };
2760
2764
  return Kt = { cursor: l, scroll: p, erase: s, beep: i }, Kt;
2761
2765
  }
2762
- var se = za();
2766
+ var ne = Xa();
2763
2767
  function $t(e, t, i) {
2764
2768
  if (!i.some((c) => !c.disabled)) return e;
2765
2769
  const l = e + t, p = Math.max(i.length - 1, 0), s = l < 0 ? p : l > p ? 0 : l;
2766
2770
  return i[s].disabled ? $t(s, t < 0 ? -1 : 1, i) : s;
2767
2771
  }
2768
- const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, Qa = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, Za = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, Jt = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, ot = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, at = /\t{1,1000}/y, zt = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), lt = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, el = new RegExp("\\p{M}+", "gu"), tl = { limit: 1 / 0, ellipsis: "" }, So = (e, t = {}, i = {}) => {
2769
- const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? So(p, tl, i).width : 0), c = i.ansiWidth ?? 0, h = i.controlWidth ?? 0, o = i.tabWidth ?? 8, m = i.ambiguousWidth ?? 1, n = i.emojiWidth ?? 2, u = i.fullWidthWidth ?? 2, a = i.regularWidth ?? 1, r = i.wideWidth ?? 2;
2770
- let f = 0, d = 0, g = e.length, y = 0, v = !1, w = g, b = Math.max(0, l - s), S = 0, L = 0, O = 0, $ = 0;
2772
+ const Qa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, Za = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, el = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, Jt = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, ot = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, at = /\t{1,1000}/y, zt = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), lt = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, tl = new RegExp("\\p{M}+", "gu"), il = { limit: 1 / 0, ellipsis: "" }, wo = (e, t = {}, i = {}) => {
2773
+ const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? wo(p, il, i).width : 0), c = i.ansiWidth ?? 0, h = i.controlWidth ?? 0, o = i.tabWidth ?? 8, m = i.ambiguousWidth ?? 1, n = i.emojiWidth ?? 2, u = i.fullWidthWidth ?? 2, a = i.regularWidth ?? 1, r = i.wideWidth ?? 2;
2774
+ let f = 0, d = 0, g = e.length, y = 0, v = !1, S = g, b = Math.max(0, l - s), w = 0, L = 0, O = 0, $ = 0;
2771
2775
  e: for (; ; ) {
2772
- if (L > S || d >= g && d > f) {
2773
- const _ = e.slice(S, L) || e.slice(f, d);
2776
+ if (L > w || d >= g && d > f) {
2777
+ const _ = e.slice(w, L) || e.slice(f, d);
2774
2778
  y = 0;
2775
- for (const P of _.replaceAll(el, "")) {
2779
+ for (const P of _.replaceAll(tl, "")) {
2776
2780
  const I = P.codePointAt(0) || 0;
2777
- if (Qa(I) ? $ = u : Za(I) ? $ = r : m !== a && Xa(I) ? $ = m : $ = a, O + $ > b && (w = Math.min(w, Math.max(S, f) + y)), O + $ > l) {
2781
+ if (Za(I) ? $ = u : el(I) ? $ = r : m !== a && Qa(I) ? $ = m : $ = a, O + $ > b && (S = Math.min(S, Math.max(w, f) + y)), O + $ > l) {
2778
2782
  v = !0;
2779
2783
  break e;
2780
2784
  }
2781
2785
  y += P.length, O += $;
2782
2786
  }
2783
- S = L = 0;
2787
+ w = L = 0;
2784
2788
  }
2785
2789
  if (d >= g) break;
2786
2790
  if (lt.lastIndex = d, lt.test(e)) {
2787
- if (y = lt.lastIndex - d, $ = y * a, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / a))), O + $ > l) {
2791
+ if (y = lt.lastIndex - d, $ = y * a, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / a))), O + $ > l) {
2788
2792
  v = !0;
2789
2793
  break;
2790
2794
  }
2791
- O += $, S = f, L = d, d = f = lt.lastIndex;
2795
+ O += $, w = f, L = d, d = f = lt.lastIndex;
2792
2796
  continue;
2793
2797
  }
2794
2798
  if (Jt.lastIndex = d, Jt.test(e)) {
2795
- if (O + c > b && (w = Math.min(w, d)), O + c > l) {
2799
+ if (O + c > b && (S = Math.min(S, d)), O + c > l) {
2796
2800
  v = !0;
2797
2801
  break;
2798
2802
  }
2799
- O += c, S = f, L = d, d = f = Jt.lastIndex;
2803
+ O += c, w = f, L = d, d = f = Jt.lastIndex;
2800
2804
  continue;
2801
2805
  }
2802
2806
  if (ot.lastIndex = d, ot.test(e)) {
2803
- if (y = ot.lastIndex - d, $ = y * h, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / h))), O + $ > l) {
2807
+ if (y = ot.lastIndex - d, $ = y * h, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / h))), O + $ > l) {
2804
2808
  v = !0;
2805
2809
  break;
2806
2810
  }
2807
- O += $, S = f, L = d, d = f = ot.lastIndex;
2811
+ O += $, w = f, L = d, d = f = ot.lastIndex;
2808
2812
  continue;
2809
2813
  }
2810
2814
  if (at.lastIndex = d, at.test(e)) {
2811
- if (y = at.lastIndex - d, $ = y * o, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / o))), O + $ > l) {
2815
+ if (y = at.lastIndex - d, $ = y * o, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / o))), O + $ > l) {
2812
2816
  v = !0;
2813
2817
  break;
2814
2818
  }
2815
- O += $, S = f, L = d, d = f = at.lastIndex;
2819
+ O += $, w = f, L = d, d = f = at.lastIndex;
2816
2820
  continue;
2817
2821
  }
2818
2822
  if (zt.lastIndex = d, zt.test(e)) {
2819
- if (O + n > b && (w = Math.min(w, d)), O + n > l) {
2823
+ if (O + n > b && (S = Math.min(S, d)), O + n > l) {
2820
2824
  v = !0;
2821
2825
  break;
2822
2826
  }
2823
- O += n, S = f, L = d, d = f = zt.lastIndex;
2827
+ O += n, w = f, L = d, d = f = zt.lastIndex;
2824
2828
  continue;
2825
2829
  }
2826
2830
  d += 1;
2827
2831
  }
2828
- return { width: v ? b : O, index: v ? w : g, truncated: v, ellipsed: v && l >= s };
2829
- }, il = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, Je = (e, t = {}) => So(e, il, t).width, xt = "\x1B", wo = "›", nl = 39, Pn = "\x07", Eo = "[", sl = "]", Co = "m", In = `${sl}8;;`, as = new RegExp(`(?:\\${Eo}(?<code>\\d+)m|\\${In}(?<uri>.*)${Pn})`, "y"), rl = (e) => {
2832
+ return { width: v ? b : O, index: v ? S : g, truncated: v, ellipsed: v && l >= s };
2833
+ }, nl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, Je = (e, t = {}) => wo(e, nl, t).width, xt = "\x1B", So = "›", sl = 39, Pn = "\x07", Eo = "[", rl = "]", Co = "m", In = `${rl}8;;`, as = new RegExp(`(?:\\${Eo}(?<code>\\d+)m|\\${In}(?<uri>.*)${Pn})`, "y"), ol = (e) => {
2830
2834
  if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
2831
2835
  if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
2832
2836
  if (e === 1 || e === 2) return 22;
@@ -2836,23 +2840,23 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
2836
2840
  if (e === 8) return 28;
2837
2841
  if (e === 9) return 29;
2838
2842
  if (e === 0) return 0;
2839
- }, ls = (e) => `${xt}${Eo}${e}${Co}`, cs = (e) => `${xt}${In}${e}${Pn}`, ol = (e) => e.map((t) => Je(t)), Xt = (e, t, i) => {
2843
+ }, ls = (e) => `${xt}${Eo}${e}${Co}`, cs = (e) => `${xt}${In}${e}${Pn}`, al = (e) => e.map((t) => Je(t)), Xt = (e, t, i) => {
2840
2844
  const l = t[Symbol.iterator]();
2841
2845
  let p = !1, s = !1, c = e.at(-1), h = c === void 0 ? 0 : Je(c), o = l.next(), m = l.next(), n = 0;
2842
2846
  for (; !o.done; ) {
2843
2847
  const u = o.value, a = Je(u);
2844
- h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === xt || u === wo) && (p = !0, s = t.startsWith(In, n + 1)), p ? s ? u === Pn && (p = !1, s = !1) : u === Co && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
2848
+ h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === xt || u === So) && (p = !0, s = t.startsWith(In, n + 1)), p ? s ? u === Pn && (p = !1, s = !1) : u === Co && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
2845
2849
  }
2846
2850
  c = e.at(-1), !h && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
2847
- }, al = (e) => {
2851
+ }, ll = (e) => {
2848
2852
  const t = e.split(" ");
2849
2853
  let i = t.length;
2850
2854
  for (; i > 0 && !(Je(t[i - 1]) > 0); ) i--;
2851
2855
  return i === t.length ? e : t.slice(0, i).join(" ") + t.slice(i).join("");
2852
- }, ll = (e, t, i = {}) => {
2856
+ }, cl = (e, t, i = {}) => {
2853
2857
  if (i.trim !== !1 && e.trim() === "") return "";
2854
2858
  let l = "", p, s;
2855
- const c = e.split(" "), h = ol(c);
2859
+ const c = e.split(" "), h = al(c);
2856
2860
  let o = [""];
2857
2861
  for (const [f, d] of c.entries()) {
2858
2862
  i.trim !== !1 && (o[o.length - 1] = (o.at(-1) ?? "").trimStart());
@@ -2875,21 +2879,21 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
2875
2879
  }
2876
2880
  o[o.length - 1] += d;
2877
2881
  }
2878
- i.trim !== !1 && (o = o.map((f) => al(f)));
2882
+ i.trim !== !1 && (o = o.map((f) => ll(f)));
2879
2883
  const m = o.join(`
2880
2884
  `), n = m[Symbol.iterator]();
2881
2885
  let u = n.next(), a = n.next(), r = 0;
2882
2886
  for (; !u.done; ) {
2883
2887
  const f = u.value, d = a.value;
2884
- if (l += f, f === xt || f === wo) {
2888
+ if (l += f, f === xt || f === So) {
2885
2889
  as.lastIndex = r + 1;
2886
2890
  const y = as.exec(m)?.groups;
2887
2891
  if (y?.code !== void 0) {
2888
2892
  const v = Number.parseFloat(y.code);
2889
- p = v === nl ? void 0 : v;
2893
+ p = v === sl ? void 0 : v;
2890
2894
  } else y?.uri !== void 0 && (s = y.uri.length === 0 ? void 0 : y.uri);
2891
2895
  }
2892
- const g = p ? rl(p) : void 0;
2896
+ const g = p ? ol(p) : void 0;
2893
2897
  d === `
2894
2898
  ` ? (s && (l += cs("")), p && g && (l += ls(g))) : f === `
2895
2899
  ` && (p && g && (l += ls(p)), s && (l += cs(s))), r += f.length, u = a, a = n.next();
@@ -2900,16 +2904,16 @@ function gn(e, t, i) {
2900
2904
  return String(e).normalize().replaceAll(`\r
2901
2905
  `, `
2902
2906
  `).split(`
2903
- `).map((l) => ll(l, t, i)).join(`
2907
+ `).map((l) => cl(l, t, i)).join(`
2904
2908
  `);
2905
2909
  }
2906
- const cl = ["up", "down", "left", "right", "space", "enter", "cancel"], ye = { actions: new Set(cl), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: !0 };
2910
+ const ul = ["up", "down", "left", "right", "space", "enter", "cancel"], ye = { actions: new Set(ul), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: !0 };
2907
2911
  function Tn(e, t) {
2908
2912
  if (typeof e == "string") return ye.aliases.get(e) === t;
2909
2913
  for (const i of e) if (i !== void 0 && Tn(i, t)) return !0;
2910
2914
  return !1;
2911
2915
  }
2912
- function ul(e, t) {
2916
+ function fl(e, t) {
2913
2917
  if (e === t) return;
2914
2918
  const i = e.split(`
2915
2919
  `), l = t.split(`
@@ -2917,7 +2921,7 @@ function ul(e, t) {
2917
2921
  for (let c = 0; c < p; c++) i[c] !== l[c] && s.push(c);
2918
2922
  return { lines: s, numLinesBefore: i.length, numLinesAfter: l.length, numLines: p };
2919
2923
  }
2920
- const fl = globalThis.process.platform.startsWith("win"), yn = /* @__PURE__ */ Symbol("clack:cancel");
2924
+ const hl = globalThis.process.platform.startsWith("win"), yn = /* @__PURE__ */ Symbol("clack:cancel");
2921
2925
  function Ao(e) {
2922
2926
  return e === yn;
2923
2927
  }
@@ -2925,13 +2929,13 @@ function ct(e, t) {
2925
2929
  const i = e;
2926
2930
  i.isTTY && i.setRawMode(t);
2927
2931
  }
2928
- function hl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l = !0 } = {}) {
2932
+ function pl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l = !0 } = {}) {
2929
2933
  const p = st.createInterface({ input: e, output: t, prompt: "", tabSize: 1 });
2930
2934
  st.emitKeypressEvents(e, p), e instanceof Zn && e.isTTY && e.setRawMode(!0);
2931
2935
  const s = (c, { name: h, sequence: o }) => {
2932
2936
  const m = String(c);
2933
2937
  if (Tn([m, h, o], "cancel")) {
2934
- l && t.write(se.cursor.show), process.exit(0);
2938
+ l && t.write(ne.cursor.show), process.exit(0);
2935
2939
  return;
2936
2940
  }
2937
2941
  if (!i) return;
@@ -2942,8 +2946,8 @@ function hl({ input: e = ho, output: t = Ln, overwrite: i = !0, hideCursor: l =
2942
2946
  });
2943
2947
  });
2944
2948
  };
2945
- return l && t.write(se.cursor.hide), e.once("keypress", s), () => {
2946
- e.off("keypress", s), l && t.write(se.cursor.show), e instanceof Zn && e.isTTY && !fl && e.setRawMode(!1), p.terminal = !1, p.close();
2949
+ return l && t.write(ne.cursor.hide), e.once("keypress", s), () => {
2950
+ e.off("keypress", s), l && t.write(ne.cursor.show), e instanceof Zn && e.isTTY && !hl && e.setRawMode(!1), p.terminal = !1, p.close();
2947
2951
  };
2948
2952
  }
2949
2953
  const kn = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80, Lo = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
@@ -2998,10 +3002,10 @@ let xn = class {
2998
3002
  this.state = "cancel", this.close();
2999
3003
  }, { once: !0 });
3000
3004
  }
3001
- this.rl = Ca.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: !0 }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, !0), this.input.on("keypress", this.onKeypress), ct(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
3002
- this.output.write(se.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(this.value);
3005
+ this.rl = Aa.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: !0 }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, !0), this.input.on("keypress", this.onKeypress), ct(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
3006
+ this.output.write(ne.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(this.value);
3003
3007
  }), this.once("cancel", () => {
3004
- this.output.write(se.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(yn);
3008
+ this.output.write(ne.cursor.show), this.output.off("resize", this.render), ct(this.input, !1), t(yn);
3005
3009
  });
3006
3010
  });
3007
3011
  }
@@ -3034,14 +3038,14 @@ let xn = class {
3034
3038
  restoreCursor() {
3035
3039
  const t = gn(this._prevFrame, process.stdout.columns, { hard: !0, trim: !1 }).split(`
3036
3040
  `).length - 1;
3037
- this.output.write(se.cursor.move(-999, t * -1));
3041
+ this.output.write(ne.cursor.move(-999, t * -1));
3038
3042
  }
3039
3043
  render() {
3040
3044
  const t = gn(this._render(this) ?? "", process.stdout.columns, { hard: !0, trim: !1 });
3041
3045
  if (t !== this._prevFrame) {
3042
- if (this.state === "initial") this.output.write(se.cursor.hide);
3046
+ if (this.state === "initial") this.output.write(ne.cursor.hide);
3043
3047
  else {
3044
- const i = ul(this._prevFrame, t), l = Lo(this.output);
3048
+ const i = fl(this._prevFrame, t), l = Lo(this.output);
3045
3049
  if (this.restoreCursor(), i) {
3046
3050
  const p = Math.max(0, i.numLinesAfter - l), s = Math.max(0, i.numLinesBefore - l);
3047
3051
  let c = i.lines.find((h) => h >= p);
@@ -3050,18 +3054,18 @@ let xn = class {
3050
3054
  return;
3051
3055
  }
3052
3056
  if (i.lines.length === 1) {
3053
- this.output.write(se.cursor.move(0, c - s)), this.output.write(se.erase.lines(1));
3057
+ this.output.write(ne.cursor.move(0, c - s)), this.output.write(ne.erase.lines(1));
3054
3058
  const h = t.split(`
3055
3059
  `);
3056
- this.output.write(h[c]), this._prevFrame = t, this.output.write(se.cursor.move(0, h.length - c - 1));
3060
+ this.output.write(h[c]), this._prevFrame = t, this.output.write(ne.cursor.move(0, h.length - c - 1));
3057
3061
  return;
3058
3062
  } else if (i.lines.length > 1) {
3059
3063
  if (p < s) c = p;
3060
3064
  else {
3061
3065
  const o = c - s;
3062
- o > 0 && this.output.write(se.cursor.move(0, o));
3066
+ o > 0 && this.output.write(ne.cursor.move(0, o));
3063
3067
  }
3064
- this.output.write(se.erase.down());
3068
+ this.output.write(ne.erase.down());
3065
3069
  const h = t.split(`
3066
3070
  `).slice(c);
3067
3071
  this.output.write(h.join(`
@@ -3069,12 +3073,12 @@ let xn = class {
3069
3073
  return;
3070
3074
  }
3071
3075
  }
3072
- this.output.write(se.erase.down());
3076
+ this.output.write(ne.erase.down());
3073
3077
  }
3074
3078
  this.output.write(t), this.state === "initial" && (this.state = "active"), this._prevFrame = t;
3075
3079
  }
3076
3080
  }
3077
- }, pl = class extends xn {
3081
+ }, dl = class extends xn {
3078
3082
  _mask = "•";
3079
3083
  get cursor() {
3080
3084
  return this._cursor;
@@ -3098,7 +3102,7 @@ let xn = class {
3098
3102
  });
3099
3103
  }
3100
3104
  };
3101
- class dl extends xn {
3105
+ class ml extends xn {
3102
3106
  options;
3103
3107
  cursor = 0;
3104
3108
  get _selectedValue() {
@@ -3125,7 +3129,7 @@ class dl extends xn {
3125
3129
  });
3126
3130
  }
3127
3131
  }
3128
- let ml = class extends xn {
3132
+ let gl = class extends xn {
3129
3133
  get userInputWithCursor() {
3130
3134
  if (this.state === "submit") return this.userInput;
3131
3135
  const t = this.userInput;
@@ -3144,14 +3148,14 @@ let ml = class extends xn {
3144
3148
  });
3145
3149
  }
3146
3150
  };
3147
- function gl() {
3151
+ function yl() {
3148
3152
  return q.platform !== "win32" ? q.env.TERM !== "linux" : !!q.env.CI || !!q.env.WT_SESSION || !!q.env.TERMINUS_SUBLIME || q.env.ConEmuTask === "{cmd::Cmder}" || q.env.TERM_PROGRAM === "Terminus-Sublime" || q.env.TERM_PROGRAM === "vscode" || q.env.TERM === "xterm-256color" || q.env.TERM === "alacritty" || q.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
3149
3153
  }
3150
- const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t, bl = ue("◆", "*"), Oo = ue("■", "x"), $o = ue("▲", "x"), Rn = ue("◇", "o"), vl = ue("┌", "T"), J = ue("│", "|"), Le = ue("└", "—"), Sl = ue("●", ">"), us = ue("○", " "), wl = ue("▪", "•"), El = ue("●", "•"), Cl = ue("◆", "*"), Al = ue("▲", "!"), Ll = ue("■", "x"), Mn = (e) => {
3154
+ const bn = yl(), bl = () => process.env.CI === "true", fe = (e, t) => bn ? e : t, vl = fe("◆", "*"), Oo = fe("■", "x"), $o = fe("▲", "x"), Rn = fe("◇", "o"), wl = fe("┌", "T"), J = fe("│", "|"), Le = fe("└", "—"), Sl = fe("●", ">"), us = fe("○", " "), El = fe("▪", "•"), Cl = fe("●", "•"), Al = fe("◆", "*"), Ll = fe("▲", "!"), Ol = fe("■", "x"), Mn = (e) => {
3151
3155
  switch (e) {
3152
3156
  case "initial":
3153
3157
  case "active":
3154
- return x.cyan(bl);
3158
+ return x.cyan(vl);
3155
3159
  case "cancel":
3156
3160
  return x.red(Oo);
3157
3161
  case "error":
@@ -3159,7 +3163,7 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
3159
3163
  case "submit":
3160
3164
  return x.green(Rn);
3161
3165
  }
3162
- }, Ol = (e) => {
3166
+ }, $l = (e) => {
3163
3167
  switch (e) {
3164
3168
  case "initial":
3165
3169
  case "active":
@@ -3171,68 +3175,68 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
3171
3175
  case "submit":
3172
3176
  return x.green(J);
3173
3177
  }
3174
- }, $l = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, _l = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, Nl = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, Zt = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, ut = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, ft = /\t{1,1000}/y, ei = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), ht = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, Pl = new RegExp("\\p{M}+", "gu"), Il = { limit: 1 / 0, ellipsis: "" }, _o = (e, t = {}, i = {}) => {
3175
- const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? _o(p, Il, i).width : 0), c = i.ansiWidth ?? 0, h = i.controlWidth ?? 0, o = i.tabWidth ?? 8, m = i.ambiguousWidth ?? 1, n = i.emojiWidth ?? 2, u = i.fullWidthWidth ?? 2, a = i.regularWidth ?? 1, r = i.wideWidth ?? 2;
3176
- let f = 0, d = 0, g = e.length, y = 0, v = !1, w = g, b = Math.max(0, l - s), S = 0, L = 0, O = 0, $ = 0;
3178
+ }, _l = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, Nl = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, Pl = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, Zt = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, ut = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, ft = /\t{1,1000}/y, ei = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), ht = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, Il = new RegExp("\\p{M}+", "gu"), Tl = { limit: 1 / 0, ellipsis: "" }, _o = (e, t = {}, i = {}) => {
3179
+ const l = t.limit ?? 1 / 0, p = t.ellipsis ?? "", s = t?.ellipsisWidth ?? (p ? _o(p, Tl, i).width : 0), c = i.ansiWidth ?? 0, h = i.controlWidth ?? 0, o = i.tabWidth ?? 8, m = i.ambiguousWidth ?? 1, n = i.emojiWidth ?? 2, u = i.fullWidthWidth ?? 2, a = i.regularWidth ?? 1, r = i.wideWidth ?? 2;
3180
+ let f = 0, d = 0, g = e.length, y = 0, v = !1, S = g, b = Math.max(0, l - s), w = 0, L = 0, O = 0, $ = 0;
3177
3181
  e: for (; ; ) {
3178
- if (L > S || d >= g && d > f) {
3179
- const _ = e.slice(S, L) || e.slice(f, d);
3182
+ if (L > w || d >= g && d > f) {
3183
+ const _ = e.slice(w, L) || e.slice(f, d);
3180
3184
  y = 0;
3181
- for (const P of _.replaceAll(Pl, "")) {
3185
+ for (const P of _.replaceAll(Il, "")) {
3182
3186
  const I = P.codePointAt(0) || 0;
3183
- if (_l(I) ? $ = u : Nl(I) ? $ = r : m !== a && $l(I) ? $ = m : $ = a, O + $ > b && (w = Math.min(w, Math.max(S, f) + y)), O + $ > l) {
3187
+ if (Nl(I) ? $ = u : Pl(I) ? $ = r : m !== a && _l(I) ? $ = m : $ = a, O + $ > b && (S = Math.min(S, Math.max(w, f) + y)), O + $ > l) {
3184
3188
  v = !0;
3185
3189
  break e;
3186
3190
  }
3187
3191
  y += P.length, O += $;
3188
3192
  }
3189
- S = L = 0;
3193
+ w = L = 0;
3190
3194
  }
3191
3195
  if (d >= g) break;
3192
3196
  if (ht.lastIndex = d, ht.test(e)) {
3193
- if (y = ht.lastIndex - d, $ = y * a, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / a))), O + $ > l) {
3197
+ if (y = ht.lastIndex - d, $ = y * a, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / a))), O + $ > l) {
3194
3198
  v = !0;
3195
3199
  break;
3196
3200
  }
3197
- O += $, S = f, L = d, d = f = ht.lastIndex;
3201
+ O += $, w = f, L = d, d = f = ht.lastIndex;
3198
3202
  continue;
3199
3203
  }
3200
3204
  if (Zt.lastIndex = d, Zt.test(e)) {
3201
- if (O + c > b && (w = Math.min(w, d)), O + c > l) {
3205
+ if (O + c > b && (S = Math.min(S, d)), O + c > l) {
3202
3206
  v = !0;
3203
3207
  break;
3204
3208
  }
3205
- O += c, S = f, L = d, d = f = Zt.lastIndex;
3209
+ O += c, w = f, L = d, d = f = Zt.lastIndex;
3206
3210
  continue;
3207
3211
  }
3208
3212
  if (ut.lastIndex = d, ut.test(e)) {
3209
- if (y = ut.lastIndex - d, $ = y * h, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / h))), O + $ > l) {
3213
+ if (y = ut.lastIndex - d, $ = y * h, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / h))), O + $ > l) {
3210
3214
  v = !0;
3211
3215
  break;
3212
3216
  }
3213
- O += $, S = f, L = d, d = f = ut.lastIndex;
3217
+ O += $, w = f, L = d, d = f = ut.lastIndex;
3214
3218
  continue;
3215
3219
  }
3216
3220
  if (ft.lastIndex = d, ft.test(e)) {
3217
- if (y = ft.lastIndex - d, $ = y * o, O + $ > b && (w = Math.min(w, d + Math.floor((b - O) / o))), O + $ > l) {
3221
+ if (y = ft.lastIndex - d, $ = y * o, O + $ > b && (S = Math.min(S, d + Math.floor((b - O) / o))), O + $ > l) {
3218
3222
  v = !0;
3219
3223
  break;
3220
3224
  }
3221
- O += $, S = f, L = d, d = f = ft.lastIndex;
3225
+ O += $, w = f, L = d, d = f = ft.lastIndex;
3222
3226
  continue;
3223
3227
  }
3224
3228
  if (ei.lastIndex = d, ei.test(e)) {
3225
- if (O + n > b && (w = Math.min(w, d)), O + n > l) {
3229
+ if (O + n > b && (S = Math.min(S, d)), O + n > l) {
3226
3230
  v = !0;
3227
3231
  break;
3228
3232
  }
3229
- O += n, S = f, L = d, d = f = ei.lastIndex;
3233
+ O += n, w = f, L = d, d = f = ei.lastIndex;
3230
3234
  continue;
3231
3235
  }
3232
3236
  d += 1;
3233
3237
  }
3234
- return { width: v ? b : O, index: v ? w : g, truncated: v, ellipsed: v && l >= s };
3235
- }, Tl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, ze = (e, t = {}) => _o(e, Tl, t).width, Rt = "\x1B", No = "›", kl = 39, Dn = "\x07", Po = "[", xl = "]", Io = "m", Fn = `${xl}8;;`, fs = new RegExp(`(?:\\${Po}(?<code>\\d+)m|\\${Fn}(?<uri>.*)${Dn})`, "y"), Rl = (e) => {
3238
+ return { width: v ? b : O, index: v ? S : g, truncated: v, ellipsed: v && l >= s };
3239
+ }, kl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, ze = (e, t = {}) => _o(e, kl, t).width, Rt = "\x1B", No = "›", xl = 39, Dn = "\x07", Po = "[", Rl = "]", Io = "m", Fn = `${Rl}8;;`, fs = new RegExp(`(?:\\${Po}(?<code>\\d+)m|\\${Fn}(?<uri>.*)${Dn})`, "y"), Ml = (e) => {
3236
3240
  if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
3237
3241
  if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
3238
3242
  if (e === 1 || e === 2) return 22;
@@ -3242,7 +3246,7 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
3242
3246
  if (e === 8) return 28;
3243
3247
  if (e === 9) return 29;
3244
3248
  if (e === 0) return 0;
3245
- }, hs = (e) => `${Rt}${Po}${e}${Io}`, ps = (e) => `${Rt}${Fn}${e}${Dn}`, Ml = (e) => e.map((t) => ze(t)), ti = (e, t, i) => {
3249
+ }, hs = (e) => `${Rt}${Po}${e}${Io}`, ps = (e) => `${Rt}${Fn}${e}${Dn}`, Dl = (e) => e.map((t) => ze(t)), ti = (e, t, i) => {
3246
3250
  const l = t[Symbol.iterator]();
3247
3251
  let p = !1, s = !1, c = e.at(-1), h = c === void 0 ? 0 : ze(c), o = l.next(), m = l.next(), n = 0;
3248
3252
  for (; !o.done; ) {
@@ -3250,15 +3254,15 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
3250
3254
  h + a <= i ? e[e.length - 1] += u : (e.push(u), h = 0), (u === Rt || u === No) && (p = !0, s = t.startsWith(Fn, n + 1)), p ? s ? u === Dn && (p = !1, s = !1) : u === Io && (p = !1) : (h += a, h === i && !m.done && (e.push(""), h = 0)), o = m, m = l.next(), n += u.length;
3251
3255
  }
3252
3256
  c = e.at(-1), !h && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
3253
- }, Dl = (e) => {
3257
+ }, Fl = (e) => {
3254
3258
  const t = e.split(" ");
3255
3259
  let i = t.length;
3256
3260
  for (; i > 0 && !(ze(t[i - 1]) > 0); ) i--;
3257
3261
  return i === t.length ? e : t.slice(0, i).join(" ") + t.slice(i).join("");
3258
- }, Fl = (e, t, i = {}) => {
3262
+ }, Bl = (e, t, i = {}) => {
3259
3263
  if (i.trim !== !1 && e.trim() === "") return "";
3260
3264
  let l = "", p, s;
3261
- const c = e.split(" "), h = Ml(c);
3265
+ const c = e.split(" "), h = Dl(c);
3262
3266
  let o = [""];
3263
3267
  for (const [f, d] of c.entries()) {
3264
3268
  i.trim !== !1 && (o[o.length - 1] = (o.at(-1) ?? "").trimStart());
@@ -3281,7 +3285,7 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
3281
3285
  }
3282
3286
  o[o.length - 1] += d;
3283
3287
  }
3284
- i.trim !== !1 && (o = o.map((f) => Dl(f)));
3288
+ i.trim !== !1 && (o = o.map((f) => Fl(f)));
3285
3289
  const m = o.join(`
3286
3290
  `), n = m[Symbol.iterator]();
3287
3291
  let u = n.next(), a = n.next(), r = 0;
@@ -3292,10 +3296,10 @@ const bn = gl(), yl = () => process.env.CI === "true", ue = (e, t) => bn ? e : t
3292
3296
  const y = fs.exec(m)?.groups;
3293
3297
  if (y?.code !== void 0) {
3294
3298
  const v = Number.parseFloat(y.code);
3295
- p = v === kl ? void 0 : v;
3299
+ p = v === xl ? void 0 : v;
3296
3300
  } else y?.uri !== void 0 && (s = y.uri.length === 0 ? void 0 : y.uri);
3297
3301
  }
3298
- const g = p ? Rl(p) : void 0;
3302
+ const g = p ? Ml(p) : void 0;
3299
3303
  d === `
3300
3304
  ` ? (s && (l += ps("")), p && g && (l += hs(g))) : f === `
3301
3305
  ` && (p && g && (l += hs(p)), s && (l += ps(s))), r += f.length, u = a, a = n.next();
@@ -3306,40 +3310,40 @@ function vn(e, t, i) {
3306
3310
  return String(e).normalize().replaceAll(`\r
3307
3311
  `, `
3308
3312
  `).split(`
3309
- `).map((l) => Fl(l, t, i)).join(`
3313
+ `).map((l) => Bl(l, t, i)).join(`
3310
3314
  `);
3311
3315
  }
3312
- const Bl = (e, t, i, l, p) => {
3316
+ const Gl = (e, t, i, l, p) => {
3313
3317
  let s = t, c = 0;
3314
3318
  for (let h = i; h < l; h++) {
3315
3319
  const o = e[h];
3316
3320
  if (s = s - o.length, c++, s <= p) break;
3317
3321
  }
3318
3322
  return { lineCount: s, removals: c };
3319
- }, Gl = (e) => {
3323
+ }, ql = (e) => {
3320
3324
  const { cursor: t, options: i, style: l } = e, p = e.output ?? process.stdout, s = kn(p), c = e.columnPadding ?? 0, h = e.rowPadding ?? 4, o = s - c, m = Lo(p), n = x.dim("..."), u = e.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(m - h, 0), r = Math.max(Math.min(u, a), 5);
3321
3325
  let f = 0;
3322
3326
  t >= r - 3 && (f = Math.max(Math.min(t - r + 3, i.length - r), 0));
3323
3327
  let d = r < i.length && f > 0, g = r < i.length && f + r < i.length;
3324
3328
  const y = Math.min(f + r, i.length), v = [];
3325
- let w = 0;
3326
- d && w++, g && w++;
3327
- const b = f + (d ? 1 : 0), S = y - (g ? 1 : 0);
3328
- for (let O = b; O < S; O++) {
3329
+ let S = 0;
3330
+ d && S++, g && S++;
3331
+ const b = f + (d ? 1 : 0), w = y - (g ? 1 : 0);
3332
+ for (let O = b; O < w; O++) {
3329
3333
  const $ = vn(l(i[O], O === t), o, { hard: !0, trim: !1 }).split(`
3330
3334
  `);
3331
- v.push($), w += $.length;
3335
+ v.push($), S += $.length;
3332
3336
  }
3333
- if (w > a) {
3334
- let O = 0, $ = 0, _ = w;
3335
- const P = t - b, I = (B, F) => Bl(v, _, B, F, a);
3337
+ if (S > a) {
3338
+ let O = 0, $ = 0, _ = S;
3339
+ const P = t - b, I = (B, F) => Gl(v, _, B, F, a);
3336
3340
  d ? ({ lineCount: _, removals: O } = I(0, P), _ > a && ({ lineCount: _, removals: $ } = I(P + 1, v.length))) : ({ lineCount: _, removals: $ } = I(P + 1, v.length), _ > a && ({ lineCount: _, removals: O } = I(0, P))), O > 0 && (d = !0, v.splice(0, O)), $ > 0 && (g = !0, v.splice(v.length - $, $));
3337
3341
  }
3338
3342
  const L = [];
3339
3343
  d && L.push(n);
3340
3344
  for (const O of v) for (const $ of O) L.push($);
3341
3345
  return g && L.push(n), L;
3342
- }, ql = async (e, t) => {
3346
+ }, jl = async (e, t) => {
3343
3347
  const i = {}, l = Object.keys(e);
3344
3348
  for (const p of l) {
3345
3349
  const s = e[p], c = await s({ results: i })?.catch((h) => {
@@ -3366,30 +3370,30 @@ const Bl = (e, t, i, l, p) => {
3366
3370
  `)}
3367
3371
  `);
3368
3372
  }, info: (e, t) => {
3369
- Ae.message(e, { ...t, symbol: x.blue(El) });
3373
+ Ae.message(e, { ...t, symbol: x.blue(Cl) });
3370
3374
  }, success: (e, t) => {
3371
- Ae.message(e, { ...t, symbol: x.green(Cl) });
3375
+ Ae.message(e, { ...t, symbol: x.green(Al) });
3372
3376
  }, step: (e, t) => {
3373
3377
  Ae.message(e, { ...t, symbol: x.green(Rn) });
3374
3378
  }, warn: (e, t) => {
3375
- Ae.message(e, { ...t, symbol: x.yellow(Al) });
3379
+ Ae.message(e, { ...t, symbol: x.yellow(Ll) });
3376
3380
  }, warning: (e, t) => {
3377
3381
  Ae.warn(e, t);
3378
3382
  }, error: (e, t) => {
3379
- Ae.message(e, { ...t, symbol: x.red(Ll) });
3383
+ Ae.message(e, { ...t, symbol: x.red(Ol) });
3380
3384
  } }, To = (e = "", t) => {
3381
3385
  process.stdout.write(`${x.gray(Le)} ${x.red(e)}
3382
3386
 
3383
3387
  `);
3384
- }, jl = (e = "", t) => {
3385
- process.stdout.write(`${x.gray(vl)} ${e}
3388
+ }, Ul = (e = "", t) => {
3389
+ process.stdout.write(`${x.gray(wl)} ${e}
3386
3390
  `);
3387
3391
  }, Bn = (e = "", t) => {
3388
3392
  process.stdout.write(`${x.gray(J)}
3389
3393
  ${x.gray(Le)} ${e}
3390
3394
 
3391
3395
  `);
3392
- }, Ul = (e) => new pl({ validate: e.validate, mask: e.mask ?? wl, signal: e.signal, input: e.input, output: e.output, render() {
3396
+ }, Hl = (e) => new dl({ validate: e.validate, mask: e.mask ?? El, signal: e.signal, input: e.input, output: e.output, render() {
3393
3397
  const t = e.withGuide ?? ye.withGuide, i = `${t ? `${x.gray(J)}
3394
3398
  ` : ""}${Mn(this.state)} ${e.message}
3395
3399
  `, l = this.userInputWithCursor, p = this.masked;
@@ -3417,28 +3421,28 @@ ${c}
3417
3421
  `;
3418
3422
  }
3419
3423
  }
3420
- } }).prompt(), Hl = x.magenta, Vl = ({ indicator: e = "dots", onCancel: t, output: i = process.stdout, cancelMessage: l, errorMessage: p, frames: s = bn ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], delay: c = bn ? 80 : 120, signal: h, ...o } = {}) => {
3421
- const m = yl();
3424
+ } }).prompt(), Vl = x.magenta, Wl = ({ indicator: e = "dots", onCancel: t, output: i = process.stdout, cancelMessage: l, errorMessage: p, frames: s = bn ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], delay: c = bn ? 80 : 120, signal: h, ...o } = {}) => {
3425
+ const m = bl();
3422
3426
  let n, u, a = !1, r = !1, f = "", d, g = performance.now();
3423
- const y = kn(i), v = o?.styleFrame ?? Hl, w = (D) => {
3427
+ const y = kn(i), v = o?.styleFrame ?? Vl, S = (D) => {
3424
3428
  const M = D > 1 ? p ?? ye.messages.error : l ?? ye.messages.cancel;
3425
3429
  r = D === 1, a && (F(M, D), r && typeof t == "function" && t());
3426
- }, b = () => w(2), S = () => w(1), L = () => {
3427
- process.on("uncaughtExceptionMonitor", b), process.on("unhandledRejection", b), process.on("SIGINT", S), process.on("SIGTERM", S), process.on("exit", w), h && h.addEventListener("abort", S);
3430
+ }, b = () => S(2), w = () => S(1), L = () => {
3431
+ process.on("uncaughtExceptionMonitor", b), process.on("unhandledRejection", b), process.on("SIGINT", w), process.on("SIGTERM", w), process.on("exit", S), h && h.addEventListener("abort", w);
3428
3432
  }, O = () => {
3429
- process.removeListener("uncaughtExceptionMonitor", b), process.removeListener("unhandledRejection", b), process.removeListener("SIGINT", S), process.removeListener("SIGTERM", S), process.removeListener("exit", w), h && h.removeEventListener("abort", S);
3433
+ process.removeListener("uncaughtExceptionMonitor", b), process.removeListener("unhandledRejection", b), process.removeListener("SIGINT", w), process.removeListener("SIGTERM", w), process.removeListener("exit", S), h && h.removeEventListener("abort", w);
3430
3434
  }, $ = () => {
3431
3435
  if (d === void 0) return;
3432
3436
  m && i.write(`
3433
3437
  `);
3434
3438
  const D = vn(d, y, { hard: !0, trim: !1 }).split(`
3435
3439
  `);
3436
- D.length > 1 && i.write(se.cursor.up(D.length - 1)), i.write(se.cursor.to(0)), i.write(se.erase.down());
3440
+ D.length > 1 && i.write(ne.cursor.up(D.length - 1)), i.write(ne.cursor.to(0)), i.write(ne.erase.down());
3437
3441
  }, _ = (D) => D.replace(/\.+$/, ""), P = (D) => {
3438
3442
  const M = (performance.now() - D) / 1e3, G = Math.floor(M / 60), T = Math.floor(M % 60);
3439
3443
  return G > 0 ? `[${G}m ${T}s]` : `[${T}s]`;
3440
3444
  }, I = o.withGuide ?? ye.withGuide, B = (D = "") => {
3441
- a = !0, n = hl({ output: i }), f = _(D), g = performance.now(), I && i.write(`${x.gray(J)}
3445
+ a = !0, n = pl({ output: i }), f = _(D), g = performance.now(), I && i.write(`${x.gray(J)}
3442
3446
  `);
3443
3447
  let M = 0, G = 0;
3444
3448
  L(), u = setInterval(() => {
@@ -3471,7 +3475,7 @@ ${c}
3471
3475
  }, pt = (e, t) => e.includes(`
3472
3476
  `) ? e.split(`
3473
3477
  `).map((i) => t(i)).join(`
3474
- `) : t(e), Wl = (e) => {
3478
+ `) : t(e), Yl = (e) => {
3475
3479
  const t = (i, l) => {
3476
3480
  const p = i.label ?? String(i.value);
3477
3481
  switch (l) {
@@ -3487,8 +3491,8 @@ ${c}
3487
3491
  return `${x.dim(us)} ${pt(p, x.dim)}`;
3488
3492
  }
3489
3493
  };
3490
- return new dl({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
3491
- const i = e.withGuide ?? ye.withGuide, l = `${Mn(this.state)} `, p = `${Ol(this.state)} `, s = Qt(e.output, e.message, p, l), c = `${i ? `${x.gray(J)}
3494
+ return new ml({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
3495
+ const i = e.withGuide ?? ye.withGuide, l = `${Mn(this.state)} `, p = `${$l(this.state)} `, s = Qt(e.output, e.message, p, l), c = `${i ? `${x.gray(J)}
3492
3496
  ` : ""}${s}
3493
3497
  `;
3494
3498
  switch (this.state) {
@@ -3504,7 +3508,7 @@ ${x.gray(J)}` : ""}`;
3504
3508
  default: {
3505
3509
  const h = i ? `${x.cyan(J)} ` : "", o = i ? x.cyan(Le) : "", m = c.split(`
3506
3510
  `).length, n = i ? 2 : 1;
3507
- return `${c}${h}${Gl({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: h.length, rowPadding: m + n, style: (u, a) => t(u, u.disabled ? "disabled" : a ? "active" : "inactive") }).join(`
3511
+ return `${c}${h}${ql({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: h.length, rowPadding: m + n, style: (u, a) => t(u, u.disabled ? "disabled" : a ? "active" : "inactive") }).join(`
3508
3512
  ${h}`)}
3509
3513
  ${o}
3510
3514
  `;
@@ -3513,7 +3517,7 @@ ${o}
3513
3517
  } }).prompt();
3514
3518
  };
3515
3519
  `${x.gray(J)}`;
3516
- const Yl = (e) => new ml({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
3520
+ const Kl = (e) => new gl({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
3517
3521
  const t = e?.withGuide ?? ye.withGuide, i = `${`${t ? `${x.gray(J)}
3518
3522
  ` : ""}${Mn(this.state)} `}${e.message}
3519
3523
  `, l = e.placeholder ? x.inverse(e.placeholder[0]) + x.dim(e.placeholder.slice(1)) : x.inverse(x.hidden("_")), p = this.userInput ? this.userInputWithCursor : l, s = this.value ?? "";
@@ -3602,9 +3606,9 @@ ${h}
3602
3606
  }
3603
3607
  };
3604
3608
  Object.keys(z.modifier);
3605
- const Kl = Object.keys(z.color), Jl = Object.keys(z.bgColor);
3606
- [...Kl, ...Jl];
3607
- function zl() {
3609
+ const Jl = Object.keys(z.color), zl = Object.keys(z.bgColor);
3610
+ [...Jl, ...zl];
3611
+ function Xl() {
3608
3612
  const e = /* @__PURE__ */ new Map();
3609
3613
  for (const [t, i] of Object.entries(z)) {
3610
3614
  for (const [l, p] of Object.entries(i))
@@ -3681,19 +3685,19 @@ function zl() {
3681
3685
  }
3682
3686
  }), z;
3683
3687
  }
3684
- const be = zl();
3685
- function de(e, t = globalThis.Deno ? globalThis.Deno.args : q.argv) {
3688
+ const be = Xl();
3689
+ function me(e, t = globalThis.Deno ? globalThis.Deno.args : q.argv) {
3686
3690
  const i = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", l = t.indexOf(i + e), p = t.indexOf("--");
3687
3691
  return l !== -1 && (p === -1 || l < p);
3688
3692
  }
3689
3693
  const { env: X } = q;
3690
3694
  let Nt;
3691
- de("no-color") || de("no-colors") || de("color=false") || de("color=never") ? Nt = 0 : (de("color") || de("colors") || de("color=true") || de("color=always")) && (Nt = 1);
3692
- function Xl() {
3695
+ me("no-color") || me("no-colors") || me("color=false") || me("color=never") ? Nt = 0 : (me("color") || me("colors") || me("color=true") || me("color=always")) && (Nt = 1);
3696
+ function Ql() {
3693
3697
  if ("FORCE_COLOR" in X)
3694
3698
  return X.FORCE_COLOR === "true" ? 1 : X.FORCE_COLOR === "false" ? 0 : X.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(X.FORCE_COLOR, 10), 3);
3695
3699
  }
3696
- function Ql(e) {
3700
+ function Zl(e) {
3697
3701
  return e === 0 ? !1 : {
3698
3702
  level: e,
3699
3703
  hasBasic: !0,
@@ -3701,16 +3705,16 @@ function Ql(e) {
3701
3705
  has16m: e >= 3
3702
3706
  };
3703
3707
  }
3704
- function Zl(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
3705
- const l = Xl();
3708
+ function ec(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
3709
+ const l = Ql();
3706
3710
  l !== void 0 && (Nt = l);
3707
3711
  const p = i ? Nt : l;
3708
3712
  if (p === 0)
3709
3713
  return 0;
3710
3714
  if (i) {
3711
- if (de("color=16m") || de("color=full") || de("color=truecolor"))
3715
+ if (me("color=16m") || me("color=full") || me("color=truecolor"))
3712
3716
  return 3;
3713
- if (de("color=256"))
3717
+ if (me("color=256"))
3714
3718
  return 2;
3715
3719
  }
3716
3720
  if ("TF_BUILD" in X && "AGENT_NAME" in X)
@@ -3721,7 +3725,7 @@ function Zl(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
3721
3725
  if (X.TERM === "dumb")
3722
3726
  return s;
3723
3727
  if (q.platform === "win32") {
3724
- const c = Aa.release().split(".");
3728
+ const c = La.release().split(".");
3725
3729
  return Number(c[0]) >= 10 && Number(c[2]) >= 10586 ? Number(c[2]) >= 14931 ? 3 : 2 : 1;
3726
3730
  }
3727
3731
  if ("CI" in X)
@@ -3742,17 +3746,17 @@ function Zl(e, { streamIsTTY: t, sniffFlags: i = !0 } = {}) {
3742
3746
  return /-256(color)?$/i.test(X.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM) || "COLORTERM" in X ? 1 : s;
3743
3747
  }
3744
3748
  function ys(e, t = {}) {
3745
- const i = Zl(e, {
3749
+ const i = ec(e, {
3746
3750
  streamIsTTY: e && e.isTTY,
3747
3751
  ...t
3748
3752
  });
3749
- return Ql(i);
3753
+ return Zl(i);
3750
3754
  }
3751
- const ec = {
3755
+ const tc = {
3752
3756
  stdout: ys({ isTTY: Qn.isatty(1) }),
3753
3757
  stderr: ys({ isTTY: Qn.isatty(2) })
3754
3758
  };
3755
- function tc(e, t, i) {
3759
+ function ic(e, t, i) {
3756
3760
  let l = e.indexOf(t);
3757
3761
  if (l === -1)
3758
3762
  return e;
@@ -3763,7 +3767,7 @@ function tc(e, t, i) {
3763
3767
  while (l !== -1);
3764
3768
  return c += e.slice(s), c;
3765
3769
  }
3766
- function ic(e, t, i, l) {
3770
+ function nc(e, t, i, l) {
3767
3771
  let p = 0, s = "";
3768
3772
  do {
3769
3773
  const c = e[l - 1] === "\r";
@@ -3774,69 +3778,69 @@ function ic(e, t, i, l) {
3774
3778
  } while (l !== -1);
3775
3779
  return s += e.slice(p), s;
3776
3780
  }
3777
- const { stdout: bs, stderr: vs } = ec, Sn = /* @__PURE__ */ Symbol("GENERATOR"), Re = /* @__PURE__ */ Symbol("STYLER"), Xe = /* @__PURE__ */ Symbol("IS_EMPTY"), Ss = [
3781
+ const { stdout: bs, stderr: vs } = tc, wn = /* @__PURE__ */ Symbol("GENERATOR"), Me = /* @__PURE__ */ Symbol("STYLER"), Xe = /* @__PURE__ */ Symbol("IS_EMPTY"), ws = [
3778
3782
  "ansi",
3779
3783
  "ansi",
3780
3784
  "ansi256",
3781
3785
  "ansi16m"
3782
- ], Me = /* @__PURE__ */ Object.create(null), nc = (e, t = {}) => {
3786
+ ], De = /* @__PURE__ */ Object.create(null), sc = (e, t = {}) => {
3783
3787
  if (t.level && !(Number.isInteger(t.level) && t.level >= 0 && t.level <= 3))
3784
3788
  throw new Error("The `level` option should be an integer from 0 to 3");
3785
3789
  const i = bs ? bs.level : 0;
3786
3790
  e.level = t.level === void 0 ? i : t.level;
3787
- }, sc = (e) => {
3791
+ }, rc = (e) => {
3788
3792
  const t = (...i) => i.join(" ");
3789
- return nc(t, e), Object.setPrototypeOf(t, Qe.prototype), t;
3793
+ return sc(t, e), Object.setPrototypeOf(t, Qe.prototype), t;
3790
3794
  };
3791
3795
  function Qe(e) {
3792
- return sc(e);
3796
+ return rc(e);
3793
3797
  }
3794
3798
  Object.setPrototypeOf(Qe.prototype, Function.prototype);
3795
3799
  for (const [e, t] of Object.entries(be))
3796
- Me[e] = {
3800
+ De[e] = {
3797
3801
  get() {
3798
- const i = Pt(this, En(t.open, t.close, this[Re]), this[Xe]);
3802
+ const i = Pt(this, En(t.open, t.close, this[Me]), this[Xe]);
3799
3803
  return Object.defineProperty(this, e, { value: i }), i;
3800
3804
  }
3801
3805
  };
3802
- Me.visible = {
3806
+ De.visible = {
3803
3807
  get() {
3804
- const e = Pt(this, this[Re], !0);
3808
+ const e = Pt(this, this[Me], !0);
3805
3809
  return Object.defineProperty(this, "visible", { value: e }), e;
3806
3810
  }
3807
3811
  };
3808
- const wn = (e, t, i, ...l) => e === "rgb" ? t === "ansi16m" ? be[i].ansi16m(...l) : t === "ansi256" ? be[i].ansi256(be.rgbToAnsi256(...l)) : be[i].ansi(be.rgbToAnsi(...l)) : e === "hex" ? wn("rgb", t, i, ...be.hexToRgb(...l)) : be[i][e](...l), rc = ["rgb", "hex", "ansi256"];
3809
- for (const e of rc) {
3810
- Me[e] = {
3812
+ const Sn = (e, t, i, ...l) => e === "rgb" ? t === "ansi16m" ? be[i].ansi16m(...l) : t === "ansi256" ? be[i].ansi256(be.rgbToAnsi256(...l)) : be[i].ansi(be.rgbToAnsi(...l)) : e === "hex" ? Sn("rgb", t, i, ...be.hexToRgb(...l)) : be[i][e](...l), oc = ["rgb", "hex", "ansi256"];
3813
+ for (const e of oc) {
3814
+ De[e] = {
3811
3815
  get() {
3812
3816
  const { level: i } = this;
3813
3817
  return function(...l) {
3814
- const p = En(wn(e, Ss[i], "color", ...l), be.color.close, this[Re]);
3818
+ const p = En(Sn(e, ws[i], "color", ...l), be.color.close, this[Me]);
3815
3819
  return Pt(this, p, this[Xe]);
3816
3820
  };
3817
3821
  }
3818
3822
  };
3819
3823
  const t = "bg" + e[0].toUpperCase() + e.slice(1);
3820
- Me[t] = {
3824
+ De[t] = {
3821
3825
  get() {
3822
3826
  const { level: i } = this;
3823
3827
  return function(...l) {
3824
- const p = En(wn(e, Ss[i], "bgColor", ...l), be.bgColor.close, this[Re]);
3828
+ const p = En(Sn(e, ws[i], "bgColor", ...l), be.bgColor.close, this[Me]);
3825
3829
  return Pt(this, p, this[Xe]);
3826
3830
  };
3827
3831
  }
3828
3832
  };
3829
3833
  }
3830
- const oc = Object.defineProperties(() => {
3834
+ const ac = Object.defineProperties(() => {
3831
3835
  }, {
3832
- ...Me,
3836
+ ...De,
3833
3837
  level: {
3834
3838
  enumerable: !0,
3835
3839
  get() {
3836
- return this[Sn].level;
3840
+ return this[wn].level;
3837
3841
  },
3838
3842
  set(e) {
3839
- this[Sn].level = e;
3843
+ this[wn].level = e;
3840
3844
  }
3841
3845
  }
3842
3846
  }), En = (e, t, i) => {
@@ -3849,31 +3853,31 @@ const oc = Object.defineProperties(() => {
3849
3853
  parent: i
3850
3854
  };
3851
3855
  }, Pt = (e, t, i) => {
3852
- const l = (...p) => ac(l, p.length === 1 ? "" + p[0] : p.join(" "));
3853
- return Object.setPrototypeOf(l, oc), l[Sn] = e, l[Re] = t, l[Xe] = i, l;
3854
- }, ac = (e, t) => {
3856
+ const l = (...p) => lc(l, p.length === 1 ? "" + p[0] : p.join(" "));
3857
+ return Object.setPrototypeOf(l, ac), l[wn] = e, l[Me] = t, l[Xe] = i, l;
3858
+ }, lc = (e, t) => {
3855
3859
  if (e.level <= 0 || !t)
3856
3860
  return e[Xe] ? "" : t;
3857
- let i = e[Re];
3861
+ let i = e[Me];
3858
3862
  if (i === void 0)
3859
3863
  return t;
3860
3864
  const { openAll: l, closeAll: p } = i;
3861
3865
  if (t.includes("\x1B"))
3862
3866
  for (; i !== void 0; )
3863
- t = tc(t, i.close, i.open), i = i.parent;
3867
+ t = ic(t, i.close, i.open), i = i.parent;
3864
3868
  const s = t.indexOf(`
3865
3869
  `);
3866
- return s !== -1 && (t = ic(t, p, l, s)), l + t + p;
3870
+ return s !== -1 && (t = nc(t, p, l, s)), l + t + p;
3867
3871
  };
3868
- Object.defineProperties(Qe.prototype, Me);
3872
+ Object.defineProperties(Qe.prototype, De);
3869
3873
  const ko = Qe();
3870
3874
  Qe({ level: vs ? vs.level : 0 });
3871
- var _t = { exports: {} }, lc = _t.exports, ws;
3872
- function cc() {
3873
- return ws || (ws = 1, (function(e, t) {
3875
+ var _t = { exports: {} }, cc = _t.exports, Ss;
3876
+ function uc() {
3877
+ return Ss || (Ss = 1, (function(e, t) {
3874
3878
  (function(i, l) {
3875
3879
  e.exports = l();
3876
- })(lc, (function() {
3880
+ })(cc, (function() {
3877
3881
  function i(E) {
3878
3882
  "@babel/helpers - typeof";
3879
3883
  return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
@@ -4009,7 +4013,7 @@ function cc() {
4009
4013
  return this._applyModification(v, arguments);
4010
4014
  },
4011
4015
  brighten: function() {
4012
- return this._applyModification(w, arguments);
4016
+ return this._applyModification(S, arguments);
4013
4017
  },
4014
4018
  darken: function() {
4015
4019
  return this._applyModification(b, arguments);
@@ -4024,7 +4028,7 @@ function cc() {
4024
4028
  return this._applyModification(y, arguments);
4025
4029
  },
4026
4030
  spin: function() {
4027
- return this._applyModification(S, arguments);
4031
+ return this._applyModification(w, arguments);
4028
4032
  },
4029
4033
  _applyCombination: function(A, C) {
4030
4034
  return A.apply(null, [this].concat([].slice.call(C)));
@@ -4055,7 +4059,7 @@ function cc() {
4055
4059
  if (i(E) == "object") {
4056
4060
  var C = {};
4057
4061
  for (var N in E)
4058
- E.hasOwnProperty(N) && (N === "a" ? C[N] = E[N] : C[N] = ne(E[N]));
4062
+ E.hasOwnProperty(N) && (N === "a" ? C[N] = E[N] : C[N] = ie(E[N]));
4059
4063
  E = C;
4060
4064
  }
4061
4065
  return s(E, A);
@@ -4066,7 +4070,7 @@ function cc() {
4066
4070
  g: 0,
4067
4071
  b: 0
4068
4072
  }, C = 1, N = null, R = null, k = null, V = !1, K = !1;
4069
- return typeof E == "string" && (E = Sa(E)), i(E) == "object" && (Se(E.r) && Se(E.g) && Se(E.b) ? (A = h(E.r, E.g, E.b), V = !0, K = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : Se(E.h) && Se(E.s) && Se(E.v) ? (N = ne(E.s), R = ne(E.v), A = u(E.h, N, R), V = !0, K = "hsv") : Se(E.h) && Se(E.s) && Se(E.l) && (N = ne(E.s), k = ne(E.l), A = m(E.h, N, k), V = !0, K = "hsl"), E.hasOwnProperty("a") && (C = E.a)), C = D(C), {
4073
+ return typeof E == "string" && (E = Sa(E)), i(E) == "object" && (we(E.r) && we(E.g) && we(E.b) ? (A = h(E.r, E.g, E.b), V = !0, K = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : we(E.h) && we(E.s) && we(E.v) ? (N = ie(E.s), R = ie(E.v), A = u(E.h, N, R), V = !0, K = "hsv") : we(E.h) && we(E.s) && we(E.l) && (N = ie(E.s), k = ie(E.l), A = m(E.h, N, k), V = !0, K = "hsl"), E.hasOwnProperty("a") && (C = E.a)), C = D(C), {
4070
4074
  ok: V,
4071
4075
  format: E.format || K,
4072
4076
  r: Math.min(255, Math.max(A.r, 0)),
@@ -4111,8 +4115,8 @@ function cc() {
4111
4115
  function m(E, A, C) {
4112
4116
  var N, R, k;
4113
4117
  E = M(E, 360), A = M(A, 100), C = M(C, 100);
4114
- function V(pe, De, ge) {
4115
- return ge < 0 && (ge += 1), ge > 1 && (ge -= 1), ge < 1 / 6 ? pe + (De - pe) * 6 * ge : ge < 1 / 2 ? De : ge < 2 / 3 ? pe + (De - pe) * (2 / 3 - ge) * 6 : pe;
4118
+ function V(de, Fe, ge) {
4119
+ return ge < 0 && (ge += 1), ge > 1 && (ge -= 1), ge < 1 / 6 ? de + (Fe - de) * 6 * ge : ge < 1 / 2 ? Fe : ge < 2 / 3 ? de + (Fe - de) * (2 / 3 - ge) * 6 : de;
4116
4120
  }
4117
4121
  if (A === 0)
4118
4122
  N = R = k = C;
@@ -4153,10 +4157,10 @@ function cc() {
4153
4157
  }
4154
4158
  function u(E, A, C) {
4155
4159
  E = M(E, 360) * 6, A = M(A, 100), C = M(C, 100);
4156
- var N = Math.floor(E), R = E - N, k = C * (1 - A), V = C * (1 - R * A), K = C * (1 - (1 - R) * A), Z = N % 6, pe = [C, V, k, k, K, C][Z], De = [K, C, C, V, k, k][Z], ge = [k, k, K, C, C, V][Z];
4160
+ var N = Math.floor(E), R = E - N, k = C * (1 - A), V = C * (1 - R * A), K = C * (1 - (1 - R) * A), Z = N % 6, de = [C, V, k, k, K, C][Z], Fe = [K, C, C, V, k, k][Z], ge = [k, k, K, C, C, V][Z];
4157
4161
  return {
4158
- r: pe * 255,
4159
- g: De * 255,
4162
+ r: de * 255,
4163
+ g: Fe * 255,
4160
4164
  b: ge * 255
4161
4165
  };
4162
4166
  }
@@ -4199,7 +4203,7 @@ function cc() {
4199
4203
  var C = s(E).toHsl();
4200
4204
  return C.l += A / 100, C.l = G(C.l), s(C);
4201
4205
  }
4202
- function w(E, A) {
4206
+ function S(E, A) {
4203
4207
  A = A === 0 ? 0 : A || 10;
4204
4208
  var C = s(E).toRgb();
4205
4209
  return C.r = Math.max(0, Math.min(255, C.r - Math.round(255 * -(A / 100)))), C.g = Math.max(0, Math.min(255, C.g - Math.round(255 * -(A / 100)))), C.b = Math.max(0, Math.min(255, C.b - Math.round(255 * -(A / 100)))), s(C);
@@ -4209,7 +4213,7 @@ function cc() {
4209
4213
  var C = s(E).toHsl();
4210
4214
  return C.l -= A / 100, C.l = G(C.l), s(C);
4211
4215
  }
4212
- function S(E, A) {
4216
+ function w(E, A) {
4213
4217
  var C = s(E).toHsl(), N = (C.h + A) % 360;
4214
4218
  return C.h = N < 0 ? 360 + N : N, s(C);
4215
4219
  }
@@ -4271,7 +4275,7 @@ function cc() {
4271
4275
  return (Math.max(C.getLuminance(), N.getLuminance()) + 0.05) / (Math.min(C.getLuminance(), N.getLuminance()) + 0.05);
4272
4276
  }, s.isReadable = function(E, A, C) {
4273
4277
  var N = s.readability(E, A), R, k;
4274
- switch (k = !1, R = wa(C), R.level + R.size) {
4278
+ switch (k = !1, R = Ea(C), R.level + R.size) {
4275
4279
  case "AAsmall":
4276
4280
  case "AAAlarge":
4277
4281
  k = N >= 4.5;
@@ -4287,8 +4291,8 @@ function cc() {
4287
4291
  }, s.mostReadable = function(E, A, C) {
4288
4292
  var N = null, R = 0, k, V, K, Z;
4289
4293
  C = C || {}, V = C.includeFallbackColors, K = C.level, Z = C.size;
4290
- for (var pe = 0; pe < A.length; pe++)
4291
- k = s.readability(E, A[pe]), k > R && (R = k, N = s(A[pe]));
4294
+ for (var de = 0; de < A.length; de++)
4295
+ k = s.readability(E, A[de]), k > R && (R = k, N = s(A[de]));
4292
4296
  return s.isReadable(E, N, {
4293
4297
  level: K,
4294
4298
  size: Z
@@ -4474,7 +4478,7 @@ function cc() {
4474
4478
  function U(E) {
4475
4479
  return E.length == 1 ? "0" + E : "" + E;
4476
4480
  }
4477
- function ne(E) {
4481
+ function ie(E) {
4478
4482
  return E <= 1 && (E = E * 100 + "%"), E;
4479
4483
  }
4480
4484
  function ve(E) {
@@ -4499,7 +4503,7 @@ function cc() {
4499
4503
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
4500
4504
  };
4501
4505
  })();
4502
- function Se(E) {
4506
+ function we(E) {
4503
4507
  return !!ce.CSS_UNIT.exec(E);
4504
4508
  }
4505
4509
  function Sa(E) {
@@ -4567,7 +4571,7 @@ function cc() {
4567
4571
  format: A ? "name" : "hex"
4568
4572
  } : !1;
4569
4573
  }
4570
- function wa(E) {
4574
+ function Ea(E) {
4571
4575
  var A, C;
4572
4576
  return E = E || {
4573
4577
  level: "AA",
@@ -4582,10 +4586,10 @@ function cc() {
4582
4586
  })(_t)), _t.exports;
4583
4587
  }
4584
4588
  var ni, Es;
4585
- function uc() {
4589
+ function fc() {
4586
4590
  if (Es) return ni;
4587
4591
  Es = 1;
4588
- const e = cc(), t = { r: 256, g: 256, b: 256, a: 1 }, i = { h: 360, s: 1, v: 1, a: 1 };
4592
+ const e = uc(), t = { r: 256, g: 256, b: 256, a: 1 }, i = { h: 360, s: 1, v: 1, a: 1 };
4589
4593
  function l(n, u, a) {
4590
4594
  let r = {};
4591
4595
  for (let f in n)
@@ -4619,11 +4623,11 @@ function uc() {
4619
4623
  g = r === "long" && b || r === "short" && !b;
4620
4624
  }
4621
4625
  const y = l(f, d, a);
4622
- let v = [n.color], w;
4623
- f.h <= d.h && !g || f.h >= d.h && g ? w = d.h - f.h : g ? w = 360 - d.h + f.h : w = 360 - f.h + d.h, y.h = Math.pow(-1, g ? 1 : 0) * Math.abs(w) / a;
4626
+ let v = [n.color], S;
4627
+ f.h <= d.h && !g || f.h >= d.h && g ? S = d.h - f.h : g ? S = 360 - d.h + f.h : S = 360 - f.h + d.h, y.h = Math.pow(-1, g ? 1 : 0) * Math.abs(S) / a;
4624
4628
  for (let b = 1; b < a; b++) {
4625
- const S = p(y, f, b, i);
4626
- v.push(e(S));
4629
+ const w = p(y, f, b, i);
4630
+ v.push(e(w));
4627
4631
  }
4628
4632
  return v;
4629
4633
  }
@@ -4654,7 +4658,7 @@ function uc() {
4654
4658
  if (u < 0 || u > 1)
4655
4659
  throw new Error("Position must be between 0 and 1");
4656
4660
  let f, d;
4657
- for (let v = 0, w = n.length; v < w - 1; v++)
4661
+ for (let v = 0, S = n.length; v < S - 1; v++)
4658
4662
  if (u >= n[v].pos && u < n[v + 1].pos) {
4659
4663
  f = n[v], d = n[v + 1];
4660
4664
  break;
@@ -4678,12 +4682,12 @@ function uc() {
4678
4682
  if (a ^ v)
4679
4683
  throw new Error("Cannot mix positionned and not posionned color stops");
4680
4684
  if (v) {
4681
- const w = g.color !== void 0;
4682
- if (!w && (d || y === 0 || y === r - 1))
4685
+ const S = g.color !== void 0;
4686
+ if (!S && (d || y === 0 || y === r - 1))
4683
4687
  throw new Error("Cannot define two consecutive position-only stops");
4684
- if (d = !w, g = {
4685
- color: w ? e(g.color) : null,
4686
- colorLess: !w,
4688
+ if (d = !S, g = {
4689
+ color: S ? e(g.color) : null,
4690
+ colorLess: !S,
4687
4691
  pos: g.pos
4688
4692
  }, g.pos < 0 || g.pos > 1)
4689
4693
  throw new Error("Color stops positions must be between 0 and 1");
@@ -4814,8 +4818,8 @@ function uc() {
4814
4818
  return new m(n);
4815
4819
  }, ni;
4816
4820
  }
4817
- var fc = uc();
4818
- const Cs = /* @__PURE__ */ Nn(fc), ae = (...e) => {
4821
+ var hc = fc();
4822
+ const Cs = /* @__PURE__ */ Nn(hc), ae = (...e) => {
4819
4823
  let t, i;
4820
4824
  if (e.length === 0)
4821
4825
  throw new Error("Missing gradient colors");
@@ -4826,17 +4830,17 @@ const Cs = /* @__PURE__ */ Nn(fc), ae = (...e) => {
4826
4830
  throw new Error(`Expected an array of colors, received ${JSON.stringify(e[0])}`);
4827
4831
  t = Cs(...e);
4828
4832
  }
4829
- const l = (p, s) => hc(p ? p.toString() : "", t, s ?? i);
4830
- return l.multiline = (p, s) => pc(p ? p.toString() : "", t, s ?? i), l;
4833
+ const l = (p, s) => pc(p ? p.toString() : "", t, s ?? i);
4834
+ return l.multiline = (p, s) => dc(p ? p.toString() : "", t, s ?? i), l;
4831
4835
  }, xo = (e, t, i) => t.interpolation?.toLowerCase() === "hsv" ? e.hsv(i, t.hsvSpin?.toLowerCase() || !1) : e.rgb(i);
4832
- function hc(e, t, i) {
4836
+ function pc(e, t, i) {
4833
4837
  const l = Gn(i), p = Math.max(e.replace(/\s/g, "").length, t.stops.length), s = xo(t, l, p);
4834
4838
  let c = "";
4835
4839
  for (const h of e)
4836
4840
  c += h.match(/\s/g) ? h : ko.hex(s.shift()?.toHex() || "#000")(h);
4837
4841
  return c;
4838
4842
  }
4839
- function pc(e, t, i) {
4843
+ function dc(e, t, i) {
4840
4844
  const l = Gn(i), p = e.split(`
4841
4845
  `), s = Math.max(...p.map((o) => o.length), t.stops.length), c = xo(t, l, s), h = [];
4842
4846
  for (const o of p) {
@@ -4859,7 +4863,7 @@ function Gn(e) {
4859
4863
  throw new TypeError(`Expected \`options.hsvSpin\` to be a \`short\` or \`long\`, got \`${typeof t.hsvSpin}\``);
4860
4864
  return t;
4861
4865
  }
4862
- const fe = {
4866
+ const he = {
4863
4867
  atlas: { colors: ["#feac5e", "#c779d0", "#4bc0c8"], options: {} },
4864
4868
  cristal: { colors: ["#bdfff3", "#4ac29a"], options: {} },
4865
4869
  teen: { colors: ["#77a1d3", "#79cbca", "#e684ae"], options: {} },
@@ -4877,42 +4881,42 @@ const fe = {
4877
4881
  rainbow: { colors: ["#ff0000", "#ff0100"], options: { interpolation: "hsv", hsvSpin: "long" } },
4878
4882
  pastel: { colors: ["#74ebd5", "#74ecd5"], options: { interpolation: "hsv", hsvSpin: "long" } }
4879
4883
  };
4880
- function he(e) {
4884
+ function pe(e) {
4881
4885
  const t = (i) => ae(...e.colors)(i, e.options);
4882
4886
  return t.multiline = (i = "") => ae(...e.colors).multiline(i, e.options), t;
4883
4887
  }
4884
- const dc = he(fe.atlas), mc = he(fe.cristal), gc = he(fe.teen), yc = he(fe.mind), bc = he(fe.morning), Cn = he(fe.vice), vc = he(fe.passion), Sc = he(fe.fruit), wc = he(fe.instagram), Ec = he(fe.retro), Cc = he(fe.summer), Ac = he(fe.rainbow), Lc = he(fe.pastel);
4885
- ae.atlas = dc;
4886
- ae.cristal = mc;
4887
- ae.teen = gc;
4888
- ae.mind = yc;
4889
- ae.morning = bc;
4888
+ const mc = pe(he.atlas), gc = pe(he.cristal), yc = pe(he.teen), bc = pe(he.mind), vc = pe(he.morning), Cn = pe(he.vice), wc = pe(he.passion), Sc = pe(he.fruit), Ec = pe(he.instagram), Cc = pe(he.retro), Ac = pe(he.summer), Lc = pe(he.rainbow), Oc = pe(he.pastel);
4889
+ ae.atlas = mc;
4890
+ ae.cristal = gc;
4891
+ ae.teen = yc;
4892
+ ae.mind = bc;
4893
+ ae.morning = vc;
4890
4894
  ae.vice = Cn;
4891
- ae.passion = vc;
4895
+ ae.passion = wc;
4892
4896
  ae.fruit = Sc;
4893
- ae.instagram = wc;
4894
- ae.retro = Ec;
4895
- ae.summer = Cc;
4896
- ae.rainbow = Ac;
4897
- ae.pastel = Lc;
4898
- const Oc = "my-arcgis-app";
4897
+ ae.instagram = Ec;
4898
+ ae.retro = Cc;
4899
+ ae.summer = Ac;
4900
+ ae.rainbow = Lc;
4901
+ ae.pastel = Oc;
4902
+ const $c = "my-arcgis-app";
4899
4903
  function Ro() {
4900
- jl("initialize a new arcgis project");
4904
+ Ul("initialize a new arcgis project");
4901
4905
  }
4902
4906
  async function Mo() {
4903
- return await Yl({
4907
+ return await Kl({
4904
4908
  message: "What is the name of your project?",
4905
4909
  initialValue: "",
4906
- placeholder: Oc,
4910
+ placeholder: $c,
4907
4911
  validate(e) {
4908
4912
  if (!e || e.length === 0)
4909
4913
  return "Value is required!";
4910
4914
  }
4911
4915
  });
4912
4916
  }
4913
- async function $c() {
4914
- const e = Ce.map(([t]) => t).filter((t) => !Wa[t]).map((t) => ({ value: t, label: Ya[t] }));
4915
- return await Wl({
4917
+ async function _c() {
4918
+ const e = Ce.map(([t]) => t).filter((t) => !Ya[t]).map((t) => ({ value: t, label: Ka[t] }));
4919
+ return await Yl({
4916
4920
  message: "Which template would you like to use?",
4917
4921
  options: e
4918
4922
  });
@@ -4920,7 +4924,7 @@ async function $c() {
4920
4924
  function An() {
4921
4925
  Bn(oe("greenBright", "Your new project is ready!"));
4922
4926
  }
4923
- function _c() {
4927
+ function Nc() {
4924
4928
  Bn(
4925
4929
  oe(
4926
4930
  "greenBright",
@@ -4932,14 +4936,14 @@ Configuration files created: .npmrc, eslint.config.js, prettier.config.js, and l
4932
4936
  )
4933
4937
  );
4934
4938
  }
4935
- async function Nc(e) {
4939
+ async function Pc(e) {
4936
4940
  return Ae.info(`
4937
4941
  This command requires a ${e} personal access token with the 'repo' scope.
4938
4942
 
4939
4943
  See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic
4940
4944
 
4941
4945
  for step-by-step instructions.
4942
- `), await Ul({
4946
+ `), await Hl({
4943
4947
  message: `Please enter your personal access token for ${e}`,
4944
4948
  mask: "*",
4945
4949
  validate(t) {
@@ -4979,7 +4983,7 @@ function Fo() {
4979
4983
  }, ri;
4980
4984
  }
4981
4985
  var dt = { exports: {} }, Os;
4982
- function Pc() {
4986
+ function Ic() {
4983
4987
  return Os || (Os = 1, (function(e, t) {
4984
4988
  const {
4985
4989
  MAX_SAFE_COMPONENT_LENGTH: i,
@@ -4998,21 +5002,21 @@ function Pc() {
4998
5002
  g = g.split(`${y}*`).join(`${y}{0,${v}}`).split(`${y}+`).join(`${y}{1,${v}}`);
4999
5003
  return g;
5000
5004
  }, d = (g, y, v) => {
5001
- const w = f(y), b = u++;
5002
- s(g, b, y), n[g] = b, o[b] = y, m[b] = w, c[b] = new RegExp(y, v ? "g" : void 0), h[b] = new RegExp(w, v ? "g" : void 0);
5005
+ const S = f(y), b = u++;
5006
+ s(g, b, y), n[g] = b, o[b] = y, m[b] = S, c[b] = new RegExp(y, v ? "g" : void 0), h[b] = new RegExp(S, v ? "g" : void 0);
5003
5007
  };
5004
5008
  d("NUMERICIDENTIFIER", "0|[1-9]\\d*"), d("NUMERICIDENTIFIERLOOSE", "\\d+"), d("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${a}*`), d("MAINVERSION", `(${o[n.NUMERICIDENTIFIER]})\\.(${o[n.NUMERICIDENTIFIER]})\\.(${o[n.NUMERICIDENTIFIER]})`), d("MAINVERSIONLOOSE", `(${o[n.NUMERICIDENTIFIERLOOSE]})\\.(${o[n.NUMERICIDENTIFIERLOOSE]})\\.(${o[n.NUMERICIDENTIFIERLOOSE]})`), d("PRERELEASEIDENTIFIER", `(?:${o[n.NONNUMERICIDENTIFIER]}|${o[n.NUMERICIDENTIFIER]})`), d("PRERELEASEIDENTIFIERLOOSE", `(?:${o[n.NONNUMERICIDENTIFIER]}|${o[n.NUMERICIDENTIFIERLOOSE]})`), d("PRERELEASE", `(?:-(${o[n.PRERELEASEIDENTIFIER]}(?:\\.${o[n.PRERELEASEIDENTIFIER]})*))`), d("PRERELEASELOOSE", `(?:-?(${o[n.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[n.PRERELEASEIDENTIFIERLOOSE]})*))`), d("BUILDIDENTIFIER", `${a}+`), d("BUILD", `(?:\\+(${o[n.BUILDIDENTIFIER]}(?:\\.${o[n.BUILDIDENTIFIER]})*))`), d("FULLPLAIN", `v?${o[n.MAINVERSION]}${o[n.PRERELEASE]}?${o[n.BUILD]}?`), d("FULL", `^${o[n.FULLPLAIN]}$`), d("LOOSEPLAIN", `[v=\\s]*${o[n.MAINVERSIONLOOSE]}${o[n.PRERELEASELOOSE]}?${o[n.BUILD]}?`), d("LOOSE", `^${o[n.LOOSEPLAIN]}$`), d("GTLT", "((?:<|>)?=?)"), d("XRANGEIDENTIFIERLOOSE", `${o[n.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), d("XRANGEIDENTIFIER", `${o[n.NUMERICIDENTIFIER]}|x|X|\\*`), d("XRANGEPLAIN", `[v=\\s]*(${o[n.XRANGEIDENTIFIER]})(?:\\.(${o[n.XRANGEIDENTIFIER]})(?:\\.(${o[n.XRANGEIDENTIFIER]})(?:${o[n.PRERELEASE]})?${o[n.BUILD]}?)?)?`), d("XRANGEPLAINLOOSE", `[v=\\s]*(${o[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[n.XRANGEIDENTIFIERLOOSE]})(?:${o[n.PRERELEASELOOSE]})?${o[n.BUILD]}?)?)?`), d("XRANGE", `^${o[n.GTLT]}\\s*${o[n.XRANGEPLAIN]}$`), d("XRANGELOOSE", `^${o[n.GTLT]}\\s*${o[n.XRANGEPLAINLOOSE]}$`), d("COERCEPLAIN", `(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`), d("COERCE", `${o[n.COERCEPLAIN]}(?:$|[^\\d])`), d("COERCEFULL", o[n.COERCEPLAIN] + `(?:${o[n.PRERELEASE]})?(?:${o[n.BUILD]})?(?:$|[^\\d])`), d("COERCERTL", o[n.COERCE], !0), d("COERCERTLFULL", o[n.COERCEFULL], !0), d("LONETILDE", "(?:~>?)"), d("TILDETRIM", `(\\s*)${o[n.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", d("TILDE", `^${o[n.LONETILDE]}${o[n.XRANGEPLAIN]}$`), d("TILDELOOSE", `^${o[n.LONETILDE]}${o[n.XRANGEPLAINLOOSE]}$`), d("LONECARET", "(?:\\^)"), d("CARETTRIM", `(\\s*)${o[n.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", d("CARET", `^${o[n.LONECARET]}${o[n.XRANGEPLAIN]}$`), d("CARETLOOSE", `^${o[n.LONECARET]}${o[n.XRANGEPLAINLOOSE]}$`), d("COMPARATORLOOSE", `^${o[n.GTLT]}\\s*(${o[n.LOOSEPLAIN]})$|^$`), d("COMPARATOR", `^${o[n.GTLT]}\\s*(${o[n.FULLPLAIN]})$|^$`), d("COMPARATORTRIM", `(\\s*)${o[n.GTLT]}\\s*(${o[n.LOOSEPLAIN]}|${o[n.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", d("HYPHENRANGE", `^\\s*(${o[n.XRANGEPLAIN]})\\s+-\\s+(${o[n.XRANGEPLAIN]})\\s*$`), d("HYPHENRANGELOOSE", `^\\s*(${o[n.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[n.XRANGEPLAINLOOSE]})\\s*$`), d("STAR", "(<|>)?=?\\s*\\*"), d("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), d("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
5005
5009
  })(dt, dt.exports)), dt.exports;
5006
5010
  }
5007
5011
  var oi, $s;
5008
- function Ic() {
5012
+ function Tc() {
5009
5013
  if ($s) return oi;
5010
5014
  $s = 1;
5011
5015
  const e = Object.freeze({ loose: !0 }), t = Object.freeze({});
5012
5016
  return oi = (l) => l ? typeof l != "object" ? e : l : t, oi;
5013
5017
  }
5014
5018
  var ai, _s;
5015
- function Tc() {
5019
+ function kc() {
5016
5020
  if (_s) return ai;
5017
5021
  _s = 1;
5018
5022
  const e = /^[0-9]+$/, t = (l, p) => {
@@ -5027,10 +5031,10 @@ function Tc() {
5027
5031
  }, ai;
5028
5032
  }
5029
5033
  var li, Ns;
5030
- function kc() {
5034
+ function xc() {
5031
5035
  if (Ns) return li;
5032
5036
  Ns = 1;
5033
- const e = Do(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: i } = Fo(), { safeRe: l, t: p } = Pc(), s = Ic(), { compareIdentifiers: c } = Tc(), h = (m, n) => {
5037
+ const e = Do(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: i } = Fo(), { safeRe: l, t: p } = Ic(), s = Tc(), { compareIdentifiers: c } = kc(), h = (m, n) => {
5034
5038
  const u = n.split(".");
5035
5039
  if (u.length > m.length)
5036
5040
  return !1;
@@ -5203,7 +5207,7 @@ var ci, Ps;
5203
5207
  function Bo() {
5204
5208
  if (Ps) return ci;
5205
5209
  Ps = 1;
5206
- const e = kc();
5210
+ const e = xc();
5207
5211
  return ci = (i, l, p = !1) => {
5208
5212
  if (i instanceof e)
5209
5213
  return i;
@@ -5217,7 +5221,7 @@ function Bo() {
5217
5221
  }, ci;
5218
5222
  }
5219
5223
  var ui, Is;
5220
- function xc() {
5224
+ function Rc() {
5221
5225
  if (Is) return ui;
5222
5226
  Is = 1;
5223
5227
  const e = Bo();
@@ -5227,7 +5231,7 @@ function xc() {
5227
5231
  }, ui;
5228
5232
  }
5229
5233
  var fi, Ts;
5230
- function Rc() {
5234
+ function Mc() {
5231
5235
  if (Ts) return fi;
5232
5236
  Ts = 1;
5233
5237
  const e = Bo();
@@ -5236,7 +5240,7 @@ function Rc() {
5236
5240
  return p ? p.version : null;
5237
5241
  }, fi;
5238
5242
  }
5239
- const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]'), Mc = [
5243
+ const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]'), Dc = [
5240
5244
  "AGPL-1.0",
5241
5245
  "AGPL-3.0",
5242
5246
  "BSD-2-Clause-FreeBSD",
@@ -5263,7 +5267,7 @@ const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
5263
5267
  "bzip2-1.0.5",
5264
5268
  "eCos-2.0",
5265
5269
  "wxWindows"
5266
- ], Dc = [
5270
+ ], Fc = [
5267
5271
  "389-exception",
5268
5272
  "Asterisk-exception",
5269
5273
  "Autoconf-exception-2.0",
@@ -5332,10 +5336,10 @@ const Go = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
5332
5336
  "x11vnc-openssl-exception"
5333
5337
  ];
5334
5338
  var hi, ks;
5335
- function Fc() {
5339
+ function Bc() {
5336
5340
  if (ks) return hi;
5337
5341
  ks = 1;
5338
- var e = [].concat(Go).concat(Mc), t = Dc;
5342
+ var e = [].concat(Go).concat(Dc), t = Fc;
5339
5343
  return hi = function(i) {
5340
5344
  var l = 0;
5341
5345
  function p() {
@@ -5410,7 +5414,7 @@ function Fc() {
5410
5414
  }, hi;
5411
5415
  }
5412
5416
  var pi, xs;
5413
- function Bc() {
5417
+ function Gc() {
5414
5418
  return xs || (xs = 1, pi = function(e) {
5415
5419
  var t = 0;
5416
5420
  function i() {
@@ -5473,13 +5477,13 @@ function Bc() {
5473
5477
  if (v) {
5474
5478
  if (!s(d))
5475
5479
  return v;
5476
- var w = y();
5477
- if (!w)
5480
+ var S = y();
5481
+ if (!S)
5478
5482
  throw new Error("Expected expression");
5479
5483
  return {
5480
5484
  left: v,
5481
5485
  conjunction: d.toLowerCase(),
5482
- right: w
5486
+ right: S
5483
5487
  };
5484
5488
  }
5485
5489
  };
@@ -5494,13 +5498,13 @@ var di, Rs;
5494
5498
  function qo() {
5495
5499
  if (Rs) return di;
5496
5500
  Rs = 1;
5497
- var e = Fc(), t = Bc();
5501
+ var e = Bc(), t = Gc();
5498
5502
  return di = function(i) {
5499
5503
  return t(e(i));
5500
5504
  }, di;
5501
5505
  }
5502
5506
  var mi, Ms;
5503
- function Gc() {
5507
+ function qc() {
5504
5508
  if (Ms) return mi;
5505
5509
  Ms = 1;
5506
5510
  var e = qo(), t = Go;
@@ -5512,8 +5516,8 @@ function Gc() {
5512
5516
  }
5513
5517
  }
5514
5518
  function l(y, v) {
5515
- var w = v[0].length - y[0].length;
5516
- return w !== 0 ? w : y[0].toUpperCase().localeCompare(v[0].toUpperCase());
5519
+ var S = v[0].length - y[0].length;
5520
+ return S !== 0 ? S : y[0].toUpperCase().localeCompare(v[0].toUpperCase());
5517
5521
  }
5518
5522
  var p = [
5519
5523
  ["APGL", "AGPL"],
@@ -5664,8 +5668,8 @@ function Gc() {
5664
5668
  var v = /^(.*)-\d+\.\d+$/.exec(y);
5665
5669
  return v ? [v[0], v[1]] : [y, null];
5666
5670
  }).reduce(function(y, v) {
5667
- var w = v[1];
5668
- return y[w] = y[w] || [], y[w].push(v[0]), y;
5671
+ var S = v[1];
5672
+ return y[S] = y[S] || [], y[S].push(v[0]), y;
5669
5673
  }, {}), m = Object.keys(o).map(function(v) {
5670
5674
  return [v, o[v]];
5671
5675
  }).filter(function(v) {
@@ -5710,24 +5714,24 @@ function Gc() {
5710
5714
  ["ZLIB", "Zlib"]
5711
5715
  ].concat(m).sort(l), u = 0, a = 1, r = function(y) {
5712
5716
  for (var v = 0; v < h.length; v++) {
5713
- var w = h[v](y).trim();
5714
- if (w !== y && i(w))
5715
- return w;
5717
+ var S = h[v](y).trim();
5718
+ if (S !== y && i(S))
5719
+ return S;
5716
5720
  }
5717
5721
  return null;
5718
5722
  }, f = function(y) {
5719
- for (var v = y.toUpperCase(), w = 0; w < n.length; w++) {
5720
- var b = n[w];
5723
+ for (var v = y.toUpperCase(), S = 0; S < n.length; S++) {
5724
+ var b = n[S];
5721
5725
  if (v.indexOf(b[u]) > -1)
5722
5726
  return b[a];
5723
5727
  }
5724
5728
  return null;
5725
5729
  }, d = function(y, v) {
5726
- for (var w = 0; w < p.length; w++) {
5727
- var b = p[w], S = b[s];
5728
- if (y.indexOf(S) > -1) {
5730
+ for (var S = 0; S < p.length; S++) {
5731
+ var b = p[S], w = b[s];
5732
+ if (y.indexOf(w) > -1) {
5729
5733
  var L = y.replace(
5730
- S,
5734
+ w,
5731
5735
  b[c]
5732
5736
  ), O = v(L);
5733
5737
  if (O !== null)
@@ -5738,12 +5742,12 @@ function Gc() {
5738
5742
  };
5739
5743
  mi = function(y, v) {
5740
5744
  v = v || {};
5741
- var w = v.upgrade === void 0 ? !0 : !!v.upgrade;
5745
+ var S = v.upgrade === void 0 ? !0 : !!v.upgrade;
5742
5746
  function b($) {
5743
- return w ? g($) : $;
5747
+ return S ? g($) : $;
5744
5748
  }
5745
- var S = typeof y == "string" && y.trim().length !== 0;
5746
- if (!S)
5749
+ var w = typeof y == "string" && y.trim().length !== 0;
5750
+ if (!w)
5747
5751
  throw Error("Invalid argument. Expected non-empty string.");
5748
5752
  if (y = y.trim(), i(y))
5749
5753
  return b(y);
@@ -5778,10 +5782,10 @@ function Gc() {
5778
5782
  return mi;
5779
5783
  }
5780
5784
  var gi, Ds;
5781
- function qc() {
5785
+ function jc() {
5782
5786
  if (Ds) return gi;
5783
5787
  Ds = 1;
5784
- var e = qo(), t = Gc(), i = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', l = /^SEE LICEN[CS]E IN (.+)$/;
5788
+ var e = qo(), t = qc(), i = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', l = /^SEE LICEN[CS]E IN (.+)$/;
5785
5789
  function p(c, h) {
5786
5790
  return h.slice(0, c.length) === c;
5787
5791
  }
@@ -5835,10 +5839,10 @@ function qc() {
5835
5839
  };
5836
5840
  }, gi;
5837
5841
  }
5838
- var Fe = {}, Fs;
5839
- function jc() {
5840
- if (Fs) return Fe;
5841
- Fs = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.LRUCache = void 0;
5842
+ var Be = {}, Fs;
5843
+ function Uc() {
5844
+ if (Fs) return Be;
5845
+ Fs = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.LRUCache = void 0;
5842
5846
  const e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), i = typeof process == "object" && process ? process : {}, l = (a, r, f, d) => {
5843
5847
  typeof i.emitWarning == "function" ? i.emitWarning(a, r, f, d) : console.error(`[${f}] ${r}: ${a}`);
5844
5848
  };
@@ -5983,9 +5987,9 @@ function jc() {
5983
5987
  #b;
5984
5988
  #l;
5985
5989
  #v;
5986
- #S;
5987
- #d;
5988
5990
  #w;
5991
+ #d;
5992
+ #S;
5989
5993
  #O;
5990
5994
  #h;
5991
5995
  /**
@@ -6000,7 +6004,7 @@ function jc() {
6000
6004
  static unsafeExposeInternals(r) {
6001
6005
  return {
6002
6006
  // properties
6003
- starts: r.#S,
6007
+ starts: r.#w,
6004
6008
  ttls: r.#d,
6005
6009
  sizes: r.#v,
6006
6010
  keyMap: r.#r,
@@ -6071,7 +6075,7 @@ function jc() {
6071
6075
  return this.#g;
6072
6076
  }
6073
6077
  constructor(r) {
6074
- const { max: f = 0, ttl: d, ttlResolution: g = 1, ttlAutopurge: y, updateAgeOnGet: v, updateAgeOnHas: w, allowStale: b, dispose: S, disposeAfter: L, noDisposeOnSet: O, noUpdateTTL: $, maxSize: _ = 0, maxEntrySize: P = 0, sizeCalculation: I, fetchMethod: B, memoMethod: F, noDeleteOnFetchRejection: D, noDeleteOnStaleGet: M, allowStaleOnFetchRejection: G, allowStaleOnFetchAbort: T, ignoreFetchAbort: Y } = r;
6078
+ const { max: f = 0, ttl: d, ttlResolution: g = 1, ttlAutopurge: y, updateAgeOnGet: v, updateAgeOnHas: S, allowStale: b, dispose: w, disposeAfter: L, noDisposeOnSet: O, noUpdateTTL: $, maxSize: _ = 0, maxEntrySize: P = 0, sizeCalculation: I, fetchMethod: B, memoMethod: F, noDeleteOnFetchRejection: D, noDeleteOnStaleGet: M, allowStaleOnFetchRejection: G, allowStaleOnFetchAbort: T, ignoreFetchAbort: Y } = r;
6075
6079
  if (f !== 0 && !h(f))
6076
6080
  throw new TypeError("max option must be a nonnegative integer");
6077
6081
  const j = f ? o(f) : Array;
@@ -6087,14 +6091,14 @@ function jc() {
6087
6091
  throw new TypeError("memoMethod must be a function if defined");
6088
6092
  if (this.#I = F, B !== void 0 && typeof B != "function")
6089
6093
  throw new TypeError("fetchMethod must be a function if specified");
6090
- if (this.#P = B, this.#O = !!B, this.#r = /* @__PURE__ */ new Map(), this.#n = new Array(f).fill(void 0), this.#e = new Array(f).fill(void 0), this.#f = new j(f), this.#p = new j(f), this.#u = 0, this.#a = 0, this.#b = n.create(f), this.#o = 0, this.#y = 0, typeof S == "function" && (this.#t = S), typeof L == "function" ? (this.#g = L, this.#l = []) : (this.#g = void 0, this.#l = void 0), this.#w = !!this.#t, this.#h = !!this.#g, this.noDisposeOnSet = !!O, this.noUpdateTTL = !!$, this.noDeleteOnFetchRejection = !!D, this.allowStaleOnFetchRejection = !!G, this.allowStaleOnFetchAbort = !!T, this.ignoreFetchAbort = !!Y, this.maxEntrySize !== 0) {
6094
+ if (this.#P = B, this.#O = !!B, this.#r = /* @__PURE__ */ new Map(), this.#n = new Array(f).fill(void 0), this.#e = new Array(f).fill(void 0), this.#f = new j(f), this.#p = new j(f), this.#u = 0, this.#a = 0, this.#b = n.create(f), this.#o = 0, this.#y = 0, typeof w == "function" && (this.#t = w), typeof L == "function" ? (this.#g = L, this.#l = []) : (this.#g = void 0, this.#l = void 0), this.#S = !!this.#t, this.#h = !!this.#g, this.noDisposeOnSet = !!O, this.noUpdateTTL = !!$, this.noDeleteOnFetchRejection = !!D, this.allowStaleOnFetchRejection = !!G, this.allowStaleOnFetchAbort = !!T, this.ignoreFetchAbort = !!Y, this.maxEntrySize !== 0) {
6091
6095
  if (this.#c !== 0 && !h(this.#c))
6092
6096
  throw new TypeError("maxSize must be a positive integer if specified");
6093
6097
  if (!h(this.maxEntrySize))
6094
6098
  throw new TypeError("maxEntrySize must be a positive integer if specified");
6095
6099
  this.#q();
6096
6100
  }
6097
- if (this.allowStale = !!b, this.noDeleteOnStaleGet = !!M, this.updateAgeOnGet = !!v, this.updateAgeOnHas = !!w, this.ttlResolution = h(g) || g === 0 ? g : 1, this.ttlAutopurge = !!y, this.ttl = d || 0, this.ttl) {
6101
+ if (this.allowStale = !!b, this.noDeleteOnStaleGet = !!M, this.updateAgeOnGet = !!v, this.updateAgeOnHas = !!S, this.ttlResolution = h(g) || g === 0 ? g : 1, this.ttlAutopurge = !!y, this.ttl = d || 0, this.ttl) {
6098
6102
  if (!h(this.ttl))
6099
6103
  throw new TypeError("ttl must be a positive integer if specified");
6100
6104
  this.#R();
@@ -6115,8 +6119,8 @@ function jc() {
6115
6119
  }
6116
6120
  #R() {
6117
6121
  const r = new m(this.#s), f = new m(this.#s);
6118
- this.#d = r, this.#S = f, this.#M = (y, v, w = e.now()) => {
6119
- if (f[y] = v !== 0 ? w : 0, r[y] = v, v !== 0 && this.ttlAutopurge) {
6122
+ this.#d = r, this.#w = f, this.#M = (y, v, S = e.now()) => {
6123
+ if (f[y] = v !== 0 ? S : 0, r[y] = v, v !== 0 && this.ttlAutopurge) {
6120
6124
  const b = setTimeout(() => {
6121
6125
  this.#m(y) && this.#A(this.#n[y], "expire");
6122
6126
  }, v + 1);
@@ -6126,12 +6130,12 @@ function jc() {
6126
6130
  f[y] = r[y] !== 0 ? e.now() : 0;
6127
6131
  }, this.#L = (y, v) => {
6128
6132
  if (r[v]) {
6129
- const w = r[v], b = f[v];
6130
- if (!w || !b)
6133
+ const S = r[v], b = f[v];
6134
+ if (!S || !b)
6131
6135
  return;
6132
- y.ttl = w, y.start = b, y.now = d || g();
6133
- const S = y.now - b;
6134
- y.remainingTTL = w - S;
6136
+ y.ttl = S, y.start = b, y.now = d || g();
6137
+ const w = y.now - b;
6138
+ y.remainingTTL = S - w;
6135
6139
  }
6136
6140
  };
6137
6141
  let d = 0;
@@ -6148,14 +6152,14 @@ function jc() {
6148
6152
  const v = this.#r.get(y);
6149
6153
  if (v === void 0)
6150
6154
  return 0;
6151
- const w = r[v], b = f[v];
6152
- if (!w || !b)
6155
+ const S = r[v], b = f[v];
6156
+ if (!S || !b)
6153
6157
  return 1 / 0;
6154
- const S = (d || g()) - b;
6155
- return w - S;
6158
+ const w = (d || g()) - b;
6159
+ return S - w;
6156
6160
  }, this.#m = (y) => {
6157
- const v = f[y], w = r[y];
6158
- return !!w && !!v && (d || g()) - v > w;
6161
+ const v = f[y], S = r[y];
6162
+ return !!S && !!v && (d || g()) - v > S;
6159
6163
  };
6160
6164
  }
6161
6165
  // conditionally set private methods related to TTL
@@ -6353,10 +6357,10 @@ function jc() {
6353
6357
  if (g === void 0)
6354
6358
  return;
6355
6359
  const y = { value: g };
6356
- if (this.#d && this.#S) {
6357
- const v = this.#d[f], w = this.#S[f];
6358
- if (v && w) {
6359
- const b = v - (e.now() - w);
6360
+ if (this.#d && this.#w) {
6361
+ const v = this.#d[f], S = this.#w[f];
6362
+ if (v && S) {
6363
+ const b = v - (e.now() - S);
6360
6364
  y.ttl = b, y.start = Date.now();
6361
6365
  }
6362
6366
  }
@@ -6382,10 +6386,10 @@ function jc() {
6382
6386
  if (y === void 0 || d === void 0)
6383
6387
  continue;
6384
6388
  const v = { value: y };
6385
- if (this.#d && this.#S) {
6389
+ if (this.#d && this.#w) {
6386
6390
  v.ttl = this.#d[f];
6387
- const w = e.now() - this.#S[f];
6388
- v.start = Math.floor(Date.now() - w);
6391
+ const S = e.now() - this.#w[f];
6392
+ v.start = Math.floor(Date.now() - S);
6389
6393
  }
6390
6394
  this.#v && (v.size = this.#v[f]), r.unshift([d, v]);
6391
6395
  }
@@ -6443,14 +6447,14 @@ function jc() {
6443
6447
  set(r, f, d = {}) {
6444
6448
  if (f === void 0)
6445
6449
  return this.delete(r), this;
6446
- const { ttl: g = this.ttl, start: y, noDisposeOnSet: v = this.noDisposeOnSet, sizeCalculation: w = this.sizeCalculation, status: b } = d;
6447
- let { noUpdateTTL: S = this.noUpdateTTL } = d;
6448
- const L = this.#D(r, f, d.size || 0, w);
6450
+ const { ttl: g = this.ttl, start: y, noDisposeOnSet: v = this.noDisposeOnSet, sizeCalculation: S = this.sizeCalculation, status: b } = d;
6451
+ let { noUpdateTTL: w = this.noUpdateTTL } = d;
6452
+ const L = this.#D(r, f, d.size || 0, S);
6449
6453
  if (this.maxEntrySize && L > this.maxEntrySize)
6450
6454
  return b && (b.set = "miss", b.maxEntrySizeExceeded = !0), this.#A(r, "set"), this;
6451
6455
  let O = this.#o === 0 ? void 0 : this.#r.get(r);
6452
6456
  if (O === void 0)
6453
- O = this.#o === 0 ? this.#a : this.#b.length !== 0 ? this.#b.pop() : this.#o === this.#s ? this.#k(!1) : this.#o, this.#n[O] = r, this.#e[O] = f, this.#r.set(r, O), this.#f[this.#a] = O, this.#p[O] = this.#a, this.#a = O, this.#o++, this.#T(O, L, b), b && (b.set = "add"), S = !1;
6457
+ O = this.#o === 0 ? this.#a : this.#b.length !== 0 ? this.#b.pop() : this.#o === this.#s ? this.#k(!1) : this.#o, this.#n[O] = r, this.#e[O] = f, this.#r.set(r, O), this.#f[this.#a] = O, this.#p[O] = this.#a, this.#a = O, this.#o++, this.#T(O, L, b), b && (b.set = "add"), w = !1;
6454
6458
  else {
6455
6459
  this.#N(O);
6456
6460
  const $ = this.#e[O];
@@ -6458,8 +6462,8 @@ function jc() {
6458
6462
  if (this.#O && this.#i($)) {
6459
6463
  $.__abortController.abort(new Error("replaced"));
6460
6464
  const { __staleWhileFetching: _ } = $;
6461
- _ !== void 0 && !v && (this.#w && this.#t?.(_, r, "set"), this.#h && this.#l?.push([_, r, "set"]));
6462
- } else v || (this.#w && this.#t?.($, r, "set"), this.#h && this.#l?.push([$, r, "set"]));
6465
+ _ !== void 0 && !v && (this.#S && this.#t?.(_, r, "set"), this.#h && this.#l?.push([_, r, "set"]));
6466
+ } else v || (this.#S && this.#t?.($, r, "set"), this.#h && this.#l?.push([$, r, "set"]));
6463
6467
  if (this.#_(O), this.#T(O, L, b), this.#e[O] = f, b) {
6464
6468
  b.set = "replace";
6465
6469
  const _ = $ && this.#i($) ? $.__staleWhileFetching : $;
@@ -6467,7 +6471,7 @@ function jc() {
6467
6471
  }
6468
6472
  } else b && (b.set = "update");
6469
6473
  }
6470
- if (g !== 0 && !this.#d && this.#R(), this.#d && (S || this.#M(O, g, y), b && this.#L(b, O)), !v && this.#h && this.#l) {
6474
+ if (g !== 0 && !this.#d && this.#R(), this.#d && (w || this.#M(O, g, y), b && this.#L(b, O)), !v && this.#h && this.#l) {
6471
6475
  const $ = this.#l;
6472
6476
  let _;
6473
6477
  for (; _ = $?.shift(); )
@@ -6500,7 +6504,7 @@ function jc() {
6500
6504
  }
6501
6505
  #k(r) {
6502
6506
  const f = this.#u, d = this.#n[f], g = this.#e[f];
6503
- return this.#O && this.#i(g) ? g.__abortController.abort(new Error("evicted")) : (this.#w || this.#h) && (this.#w && this.#t?.(g, d, "evict"), this.#h && this.#l?.push([g, d, "evict"])), this.#_(f), r && (this.#n[f] = void 0, this.#e[f] = void 0, this.#b.push(f)), this.#o === 1 ? (this.#u = this.#a = 0, this.#b.length = 0) : this.#u = this.#f[f], this.#r.delete(d), this.#o--, f;
6507
+ return this.#O && this.#i(g) ? g.__abortController.abort(new Error("evicted")) : (this.#S || this.#h) && (this.#S && this.#t?.(g, d, "evict"), this.#h && this.#l?.push([g, d, "evict"])), this.#_(f), r && (this.#n[f] = void 0, this.#e[f] = void 0, this.#b.push(f)), this.#o === 1 ? (this.#u = this.#a = 0, this.#b.length = 0) : this.#u = this.#f[f], this.#r.delete(d), this.#o--, f;
6504
6508
  }
6505
6509
  /**
6506
6510
  * Check if a key is in the cache, without updating the recency of use.
@@ -6548,15 +6552,15 @@ function jc() {
6548
6552
  const y = f === void 0 ? void 0 : this.#e[f];
6549
6553
  if (this.#i(y))
6550
6554
  return y;
6551
- const v = new p(), { signal: w } = d;
6552
- w?.addEventListener("abort", () => v.abort(w.reason), {
6555
+ const v = new p(), { signal: S } = d;
6556
+ S?.addEventListener("abort", () => v.abort(S.reason), {
6553
6557
  signal: v.signal
6554
6558
  });
6555
6559
  const b = {
6556
6560
  signal: v.signal,
6557
6561
  options: d,
6558
6562
  context: g
6559
- }, S = (I, B = !1) => {
6563
+ }, w = (I, B = !1) => {
6560
6564
  const { aborted: F } = v.signal, D = d.ignoreFetchAbort && I !== void 0;
6561
6565
  if (d.status && (F && !B ? (d.status.fetchAborted = !0, d.status.fetchError = v.signal.reason, D && (d.status.fetchAbortIgnored = !0)) : d.status.fetchResolved = !0), F && !D && !B)
6562
6566
  return O(v.signal.reason);
@@ -6571,11 +6575,11 @@ function jc() {
6571
6575
  }, $ = (I, B) => {
6572
6576
  const F = this.#P?.(r, y, b);
6573
6577
  F && F instanceof Promise && F.then((D) => I(D === void 0 ? void 0 : D), B), v.signal.addEventListener("abort", () => {
6574
- (!d.ignoreFetchAbort || d.allowStaleOnFetchAbort) && (I(void 0), d.allowStaleOnFetchAbort && (I = (D) => S(D, !0)));
6578
+ (!d.ignoreFetchAbort || d.allowStaleOnFetchAbort) && (I(void 0), d.allowStaleOnFetchAbort && (I = (D) => w(D, !0)));
6575
6579
  });
6576
6580
  };
6577
6581
  d.status && (d.status.fetchDispatched = !0);
6578
- const _ = new Promise($).then(S, L), P = Object.assign(_, {
6582
+ const _ = new Promise($).then(w, L), P = Object.assign(_, {
6579
6583
  __abortController: v,
6580
6584
  __staleWhileFetching: y,
6581
6585
  __returned: void 0
@@ -6596,9 +6600,9 @@ function jc() {
6596
6600
  noDeleteOnStaleGet: y = this.noDeleteOnStaleGet,
6597
6601
  // set options
6598
6602
  ttl: v = this.ttl,
6599
- noDisposeOnSet: w = this.noDisposeOnSet,
6603
+ noDisposeOnSet: S = this.noDisposeOnSet,
6600
6604
  size: b = 0,
6601
- sizeCalculation: S = this.sizeCalculation,
6605
+ sizeCalculation: w = this.sizeCalculation,
6602
6606
  noUpdateTTL: L = this.noUpdateTTL,
6603
6607
  // fetch exclusive options
6604
6608
  noDeleteOnFetchRejection: O = this.noDeleteOnFetchRejection,
@@ -6622,9 +6626,9 @@ function jc() {
6622
6626
  updateAgeOnGet: g,
6623
6627
  noDeleteOnStaleGet: y,
6624
6628
  ttl: v,
6625
- noDisposeOnSet: w,
6629
+ noDisposeOnSet: S,
6626
6630
  size: b,
6627
- sizeCalculation: S,
6631
+ sizeCalculation: w,
6628
6632
  noUpdateTTL: L,
6629
6633
  noDeleteOnFetchRejection: O,
6630
6634
  allowStaleOnFetchRejection: $,
@@ -6647,8 +6651,8 @@ function jc() {
6647
6651
  const Y = this.#m(G);
6648
6652
  if (!B && !Y)
6649
6653
  return F && (F.fetch = "hit"), this.#N(G), g && this.#$(G), F && this.#L(F, G), T;
6650
- const j = this.#x(r, G, M, I), ne = j.__staleWhileFetching !== void 0 && d;
6651
- return F && (F.fetch = Y ? "stale" : "refresh", ne && Y && (F.returnedStale = !0)), ne ? j.__staleWhileFetching : j.__returned = j;
6654
+ const j = this.#x(r, G, M, I), ie = j.__staleWhileFetching !== void 0 && d;
6655
+ return F && (F.fetch = Y ? "stale" : "refresh", ie && Y && (F.returnedStale = !0)), ie ? j.__staleWhileFetching : j.__returned = j;
6652
6656
  }
6653
6657
  }
6654
6658
  async forceFetch(r, f = {}) {
@@ -6661,10 +6665,10 @@ function jc() {
6661
6665
  const d = this.#I;
6662
6666
  if (!d)
6663
6667
  throw new Error("no memoMethod provided to constructor");
6664
- const { context: g, forceRefresh: y, ...v } = f, w = this.get(r, v);
6665
- if (!y && w !== void 0)
6666
- return w;
6667
- const b = d(r, w, {
6668
+ const { context: g, forceRefresh: y, ...v } = f, S = this.get(r, v);
6669
+ if (!y && S !== void 0)
6670
+ return S;
6671
+ const b = d(r, S, {
6668
6672
  options: v,
6669
6673
  context: g
6670
6674
  });
@@ -6677,10 +6681,10 @@ function jc() {
6677
6681
  * If the key is not found, get() will return `undefined`.
6678
6682
  */
6679
6683
  get(r, f = {}) {
6680
- const { allowStale: d = this.allowStale, updateAgeOnGet: g = this.updateAgeOnGet, noDeleteOnStaleGet: y = this.noDeleteOnStaleGet, status: v } = f, w = this.#r.get(r);
6681
- if (w !== void 0) {
6682
- const b = this.#e[w], S = this.#i(b);
6683
- return v && this.#L(v, w), this.#m(w) ? (v && (v.get = "stale"), S ? (v && d && b.__staleWhileFetching !== void 0 && (v.returnedStale = !0), d ? b.__staleWhileFetching : void 0) : (y || this.#A(r, "expire"), v && d && (v.returnedStale = !0), d ? b : void 0)) : (v && (v.get = "hit"), S ? b.__staleWhileFetching : (this.#N(w), g && this.#$(w), b));
6684
+ const { allowStale: d = this.allowStale, updateAgeOnGet: g = this.updateAgeOnGet, noDeleteOnStaleGet: y = this.noDeleteOnStaleGet, status: v } = f, S = this.#r.get(r);
6685
+ if (S !== void 0) {
6686
+ const b = this.#e[S], w = this.#i(b);
6687
+ return v && this.#L(v, S), this.#m(S) ? (v && (v.get = "stale"), w ? (v && d && b.__staleWhileFetching !== void 0 && (v.returnedStale = !0), d ? b.__staleWhileFetching : void 0) : (y || this.#A(r, "expire"), v && d && (v.returnedStale = !0), d ? b : void 0)) : (v && (v.get = "hit"), w ? b.__staleWhileFetching : (this.#N(S), g && this.#$(S), b));
6684
6688
  } else v && (v.get = "miss");
6685
6689
  }
6686
6690
  #B(r, f) {
@@ -6707,15 +6711,15 @@ function jc() {
6707
6711
  else {
6708
6712
  this.#_(g);
6709
6713
  const y = this.#e[g];
6710
- if (this.#i(y) ? y.__abortController.abort(new Error("deleted")) : (this.#w || this.#h) && (this.#w && this.#t?.(y, r, f), this.#h && this.#l?.push([y, r, f])), this.#r.delete(r), this.#n[g] = void 0, this.#e[g] = void 0, g === this.#a)
6714
+ if (this.#i(y) ? y.__abortController.abort(new Error("deleted")) : (this.#S || this.#h) && (this.#S && this.#t?.(y, r, f), this.#h && this.#l?.push([y, r, f])), this.#r.delete(r), this.#n[g] = void 0, this.#e[g] = void 0, g === this.#a)
6711
6715
  this.#a = this.#p[g];
6712
6716
  else if (g === this.#u)
6713
6717
  this.#u = this.#f[g];
6714
6718
  else {
6715
6719
  const v = this.#p[g];
6716
6720
  this.#f[v] = this.#f[g];
6717
- const w = this.#f[g];
6718
- this.#p[w] = this.#p[g];
6721
+ const S = this.#f[g];
6722
+ this.#p[S] = this.#p[g];
6719
6723
  }
6720
6724
  this.#o--, this.#b.push(g);
6721
6725
  }
@@ -6741,10 +6745,10 @@ function jc() {
6741
6745
  d.__abortController.abort(new Error("deleted"));
6742
6746
  else {
6743
6747
  const g = this.#n[f];
6744
- this.#w && this.#t?.(d, g, r), this.#h && this.#l?.push([d, g, r]);
6748
+ this.#S && this.#t?.(d, g, r), this.#h && this.#l?.push([d, g, r]);
6745
6749
  }
6746
6750
  }
6747
- if (this.#r.clear(), this.#e.fill(void 0), this.#n.fill(void 0), this.#d && this.#S && (this.#d.fill(0), this.#S.fill(0)), this.#v && this.#v.fill(0), this.#u = 0, this.#a = 0, this.#b.length = 0, this.#y = 0, this.#o = 0, this.#h && this.#l) {
6751
+ if (this.#r.clear(), this.#e.fill(void 0), this.#n.fill(void 0), this.#d && this.#w && (this.#d.fill(0), this.#w.fill(0)), this.#v && this.#v.fill(0), this.#u = 0, this.#a = 0, this.#b.length = 0, this.#y = 0, this.#o = 0, this.#h && this.#l) {
6748
6752
  const f = this.#l;
6749
6753
  let d;
6750
6754
  for (; d = f?.shift(); )
@@ -6752,10 +6756,10 @@ function jc() {
6752
6756
  }
6753
6757
  }
6754
6758
  }
6755
- return Fe.LRUCache = u, Fe;
6759
+ return Be.LRUCache = u, Be;
6756
6760
  }
6757
6761
  var yi, Bs;
6758
- function Uc() {
6762
+ function Hc() {
6759
6763
  if (Bs) return yi;
6760
6764
  Bs = 1;
6761
6765
  const e = (...s) => s.every((c) => c) ? s.join("") : "", t = (s) => s ? encodeURIComponent(s) : "", i = (s) => s.toLowerCase().replace(/^\W+/g, "").replace(/(?<!\W)\W+$/, "").replace(/\//g, "").replace(/\W+/g, "-"), l = {
@@ -6876,7 +6880,7 @@ var bi, Gs;
6876
6880
  function jo() {
6877
6881
  if (Gs) return bi;
6878
6882
  Gs = 1;
6879
- const e = Na, t = (s, c, h) => {
6883
+ const e = Pa, t = (s, c, h) => {
6880
6884
  const o = s.indexOf(h);
6881
6885
  return s.lastIndexOf(c, o > -1 ? o : 1 / 0);
6882
6886
  }, i = (s) => {
@@ -6900,7 +6904,7 @@ function jo() {
6900
6904
  }, bi;
6901
6905
  }
6902
6906
  var vi, qs;
6903
- function Hc() {
6907
+ function Vc() {
6904
6908
  if (qs) return vi;
6905
6909
  qs = 1;
6906
6910
  const e = jo(), t = (i) => {
@@ -6925,8 +6929,8 @@ function Hc() {
6925
6929
  let y = h.pathname.startsWith("/") ? h.pathname.slice(1) : h.pathname;
6926
6930
  const v = y.indexOf("@");
6927
6931
  v > -1 && (y = y.slice(v + 1));
6928
- const w = y.lastIndexOf("/");
6929
- w > -1 ? (f = decodeURIComponent(y.slice(0, w)), f || (f = null), d = decodeURIComponent(y.slice(w + 1))) : d = decodeURIComponent(y), d.endsWith(".git") && (d = d.slice(0, -4)), h.hash && (r = decodeURIComponent(h.hash.slice(1))), g = "shortcut";
6932
+ const S = y.lastIndexOf("/");
6933
+ S > -1 ? (f = decodeURIComponent(y.slice(0, S)), f || (f = null), d = decodeURIComponent(y.slice(S + 1))) : d = decodeURIComponent(y), d.endsWith(".git") && (d = d.slice(0, -4)), h.hash && (r = decodeURIComponent(h.hash.slice(1))), g = "shortcut";
6930
6934
  } else {
6931
6935
  if (!u.protocols.includes(h.protocol))
6932
6936
  return;
@@ -6943,11 +6947,11 @@ function Hc() {
6943
6947
  return [n, f, a, d, r, g, l];
6944
6948
  }, vi;
6945
6949
  }
6946
- var Si, js;
6947
- function Vc() {
6948
- if (js) return Si;
6950
+ var wi, js;
6951
+ function Wc() {
6952
+ if (js) return wi;
6949
6953
  js = 1;
6950
- const { LRUCache: e } = /* @__PURE__ */ jc(), t = Uc(), i = Hc(), l = jo(), p = new e({ max: 1e3 });
6954
+ const { LRUCache: e } = /* @__PURE__ */ Uc(), t = Hc(), i = Vc(), l = jo(), p = new e({ max: 1e3 });
6951
6955
  function s(h) {
6952
6956
  try {
6953
6957
  const {
@@ -7080,12 +7084,12 @@ function Vc() {
7080
7084
  }
7081
7085
  for (const [h, o] of Object.entries(t))
7082
7086
  c.addHost(h, o);
7083
- return Si = c, Si;
7087
+ return wi = c, wi;
7084
7088
  }
7085
- var wi, Us;
7086
- function Wc() {
7087
- if (Us) return wi;
7088
- Us = 1, wi = e;
7089
+ var Si, Us;
7090
+ function Yc() {
7091
+ if (Us) return Si;
7092
+ Us = 1, Si = e;
7089
7093
  function e(t) {
7090
7094
  if (!t || t === "ERROR: No README data found!")
7091
7095
  return;
@@ -7100,18 +7104,18 @@ function Wc() {
7100
7104
  p++;
7101
7105
  return t.slice(i, p).join(" ").trim();
7102
7106
  }
7103
- return wi;
7107
+ return Si;
7104
7108
  }
7105
- const Yc = { dependancies: "dependencies", dependecies: "dependencies", depdenencies: "dependencies", devEependencies: "devDependencies", depends: "dependencies", "dev-dependencies": "devDependencies", devDependences: "devDependencies", devDepenencies: "devDependencies", devdependencies: "devDependencies", repostitory: "repository", repo: "repository", prefereGlobal: "preferGlobal", hompage: "homepage", hampage: "homepage", autohr: "author", autor: "author", contributers: "contributors", publicationConfig: "publishConfig", script: "scripts" }, Kc = { web: "url", name: "url" }, Jc = { server: "start", tests: "test" }, zc = {
7106
- topLevel: Yc,
7107
- bugs: Kc,
7108
- script: Jc
7109
+ const Kc = { dependancies: "dependencies", dependecies: "dependencies", depdenencies: "dependencies", devEependencies: "devDependencies", depends: "dependencies", "dev-dependencies": "devDependencies", devDependences: "devDependencies", devDepenencies: "devDependencies", devdependencies: "devDependencies", repostitory: "repository", repo: "repository", prefereGlobal: "preferGlobal", hompage: "homepage", hampage: "homepage", autohr: "author", autor: "author", contributers: "contributors", publicationConfig: "publishConfig", script: "scripts" }, Jc = { web: "url", name: "url" }, zc = { server: "start", tests: "test" }, Xc = {
7110
+ topLevel: Kc,
7111
+ bugs: Jc,
7112
+ script: zc
7109
7113
  };
7110
7114
  var Ei, Hs;
7111
- function Xc() {
7115
+ function Qc() {
7112
7116
  if (Hs) return Ei;
7113
7117
  Hs = 1;
7114
- var { URL: e } = _a, t = xc(), i = Rc(), l = qc(), p = Vc(), { isBuiltin: s } = Pa, c = ["dependencies", "devDependencies", "optionalDependencies"], h = Wc(), o = zc, m = (b) => b.includes("@") && b.indexOf("@") < b.lastIndexOf(".");
7118
+ var { URL: e } = Na, t = Rc(), i = Mc(), l = jc(), p = Wc(), { isBuiltin: s } = Ia, c = ["dependencies", "devDependencies", "optionalDependencies"], h = Yc(), o = Xc, m = (b) => b.includes("@") && b.indexOf("@") < b.lastIndexOf(".");
7115
7119
  Ei = {
7116
7120
  // default warning function
7117
7121
  warn: function() {
@@ -7123,16 +7127,16 @@ function Xc() {
7123
7127
  type: "git",
7124
7128
  url: b.repository
7125
7129
  });
7126
- var S = b.repository.url || "";
7127
- if (S) {
7128
- var L = p.fromUrl(S);
7129
- L && (S = b.repository.url = L.getDefaultRepresentation() === "shortcut" ? L.https() : L.toString());
7130
+ var w = b.repository.url || "";
7131
+ if (w) {
7132
+ var L = p.fromUrl(w);
7133
+ L && (w = b.repository.url = L.getDefaultRepresentation() === "shortcut" ? L.https() : L.toString());
7130
7134
  }
7131
- S.match(/github.com\/[^/]+\/[^/]+\.git\.git$/) && this.warn("brokenGitUrl", S);
7135
+ w.match(/github.com\/[^/]+\/[^/]+\.git\.git$/) && this.warn("brokenGitUrl", w);
7132
7136
  },
7133
7137
  fixTypos: function(b) {
7134
- Object.keys(o.topLevel).forEach(function(S) {
7135
- Object.prototype.hasOwnProperty.call(b, S) && this.warn("typo", S, o.topLevel[S]);
7138
+ Object.keys(o.topLevel).forEach(function(w) {
7139
+ Object.prototype.hasOwnProperty.call(b, w) && this.warn("typo", w, o.topLevel[w]);
7136
7140
  }, this);
7137
7141
  },
7138
7142
  fixScriptsField: function(b) {
@@ -7141,44 +7145,44 @@ function Xc() {
7141
7145
  this.warn("nonObjectScripts"), delete b.scripts;
7142
7146
  return;
7143
7147
  }
7144
- Object.keys(b.scripts).forEach(function(S) {
7145
- typeof b.scripts[S] != "string" ? (this.warn("nonStringScript"), delete b.scripts[S]) : o.script[S] && !b.scripts[o.script[S]] && this.warn("typo", S, o.script[S], "scripts");
7148
+ Object.keys(b.scripts).forEach(function(w) {
7149
+ typeof b.scripts[w] != "string" ? (this.warn("nonStringScript"), delete b.scripts[w]) : o.script[w] && !b.scripts[o.script[w]] && this.warn("typo", w, o.script[w], "scripts");
7146
7150
  }, this);
7147
7151
  }
7148
7152
  },
7149
7153
  fixFilesField: function(b) {
7150
- var S = b.files;
7151
- S && !Array.isArray(S) ? (this.warn("nonArrayFiles"), delete b.files) : b.files && (b.files = b.files.filter(function(L) {
7154
+ var w = b.files;
7155
+ w && !Array.isArray(w) ? (this.warn("nonArrayFiles"), delete b.files) : b.files && (b.files = b.files.filter(function(L) {
7152
7156
  return !L || typeof L != "string" ? (this.warn("invalidFilename", L), !1) : !0;
7153
7157
  }, this));
7154
7158
  },
7155
7159
  fixBinField: function(b) {
7156
7160
  if (b.bin && typeof b.bin == "string") {
7157
- var S = {}, L;
7158
- (L = b.name.match(/^@[^/]+[/](.*)$/)) ? S[L[1]] = b.bin : S[b.name] = b.bin, b.bin = S;
7161
+ var w = {}, L;
7162
+ (L = b.name.match(/^@[^/]+[/](.*)$/)) ? w[L[1]] = b.bin : w[b.name] = b.bin, b.bin = w;
7159
7163
  }
7160
7164
  },
7161
7165
  fixManField: function(b) {
7162
7166
  b.man && typeof b.man == "string" && (b.man = [b.man]);
7163
7167
  },
7164
7168
  fixBundleDependenciesField: function(b) {
7165
- var S = "bundledDependencies", L = "bundleDependencies";
7166
- b[S] && !b[L] && (b[L] = b[S], delete b[S]), b[L] && !Array.isArray(b[L]) ? (this.warn("nonArrayBundleDependencies"), delete b[L]) : b[L] && (b[L] = b[L].filter(function(O) {
7169
+ var w = "bundledDependencies", L = "bundleDependencies";
7170
+ b[w] && !b[L] && (b[L] = b[w], delete b[w]), b[L] && !Array.isArray(b[L]) ? (this.warn("nonArrayBundleDependencies"), delete b[L]) : b[L] && (b[L] = b[L].filter(function(O) {
7167
7171
  return !O || typeof O != "string" ? (this.warn("nonStringBundleDependency", O), !1) : (b.dependencies || (b.dependencies = {}), Object.prototype.hasOwnProperty.call(b.dependencies, O) || (this.warn("nonDependencyBundleDependency", O), b.dependencies[O] = "*"), !0);
7168
7172
  }, this));
7169
7173
  },
7170
7174
  fixDependencies: function(b) {
7171
- v(b, this.warn), g(b, this.warn), this.fixBundleDependenciesField(b), ["dependencies", "devDependencies"].forEach(function(S) {
7172
- if (S in b) {
7173
- if (!b[S] || typeof b[S] != "object") {
7174
- this.warn("nonObjectDependencies", S), delete b[S];
7175
+ v(b, this.warn), g(b, this.warn), this.fixBundleDependenciesField(b), ["dependencies", "devDependencies"].forEach(function(w) {
7176
+ if (w in b) {
7177
+ if (!b[w] || typeof b[w] != "object") {
7178
+ this.warn("nonObjectDependencies", w), delete b[w];
7175
7179
  return;
7176
7180
  }
7177
- Object.keys(b[S]).forEach(function(L) {
7178
- var O = b[S][L];
7179
- typeof O != "string" && (this.warn("nonStringDependency", L, JSON.stringify(O)), delete b[S][L]);
7180
- var $ = p.fromUrl(b[S][L]);
7181
- $ && (b[S][L] = $.toString());
7181
+ Object.keys(b[w]).forEach(function(L) {
7182
+ var O = b[w][L];
7183
+ typeof O != "string" && (this.warn("nonStringDependency", L, JSON.stringify(O)), delete b[w][L]);
7184
+ var $ = p.fromUrl(b[w][L]);
7185
+ $ && (b[w][L] = $.toString());
7182
7186
  }, this);
7183
7187
  }
7184
7188
  }, this);
@@ -7187,12 +7191,12 @@ function Xc() {
7187
7191
  b.modules && (this.warn("deprecatedModules"), delete b.modules);
7188
7192
  },
7189
7193
  fixKeywordsField: function(b) {
7190
- typeof b.keywords == "string" && (b.keywords = b.keywords.split(/,\s+/)), b.keywords && !Array.isArray(b.keywords) ? (delete b.keywords, this.warn("nonArrayKeywords")) : b.keywords && (b.keywords = b.keywords.filter(function(S) {
7191
- return typeof S != "string" || !S ? (this.warn("nonStringKeyword"), !1) : !0;
7194
+ typeof b.keywords == "string" && (b.keywords = b.keywords.split(/,\s+/)), b.keywords && !Array.isArray(b.keywords) ? (delete b.keywords, this.warn("nonArrayKeywords")) : b.keywords && (b.keywords = b.keywords.filter(function(w) {
7195
+ return typeof w != "string" || !w ? (this.warn("nonStringKeyword"), !1) : !0;
7192
7196
  }, this));
7193
7197
  },
7194
- fixVersionField: function(b, S) {
7195
- var L = !S;
7198
+ fixVersionField: function(b, w) {
7199
+ var L = !w;
7196
7200
  if (!b.version)
7197
7201
  return b.version = "", !0;
7198
7202
  if (!t(b.version, L))
@@ -7202,16 +7206,16 @@ function Xc() {
7202
7206
  fixPeople: function(b) {
7203
7207
  r(b, f), r(b, d);
7204
7208
  },
7205
- fixNameField: function(b, S) {
7206
- typeof S == "boolean" ? S = { strict: S } : typeof S > "u" && (S = {});
7207
- var L = S.strict;
7209
+ fixNameField: function(b, w) {
7210
+ typeof w == "boolean" ? w = { strict: w } : typeof w > "u" && (w = {});
7211
+ var L = w.strict;
7208
7212
  if (!b.name && !L) {
7209
7213
  b.name = "";
7210
7214
  return;
7211
7215
  }
7212
7216
  if (typeof b.name != "string")
7213
7217
  throw new Error("name field must be a string.");
7214
- L || (b.name = b.name.trim()), a(b.name, L, S.allowLegacyCase), s(b.name) && this.warn("conflictingName", b.name);
7218
+ L || (b.name = b.name.trim()), a(b.name, L, w.allowLegacyCase), s(b.name) && this.warn("conflictingName", b.name);
7215
7219
  },
7216
7220
  fixDescriptionField: function(b) {
7217
7221
  b.description && typeof b.description != "string" && (this.warn("nonStringDescription"), delete b.description), b.readme && !b.description && (b.description = h(b.readme)), b.description === void 0 && delete b.description, b.description || this.warn("missingDescription");
@@ -7221,13 +7225,13 @@ function Xc() {
7221
7225
  },
7222
7226
  fixBugsField: function(b) {
7223
7227
  if (!b.bugs && b.repository && b.repository.url) {
7224
- var S = p.fromUrl(b.repository.url);
7225
- S && S.bugs() && (b.bugs = { url: S.bugs() });
7228
+ var w = p.fromUrl(b.repository.url);
7229
+ w && w.bugs() && (b.bugs = { url: w.bugs() });
7226
7230
  } else if (b.bugs) {
7227
7231
  if (typeof b.bugs == "string")
7228
7232
  m(b.bugs) ? b.bugs = { email: b.bugs } : e.canParse(b.bugs) ? b.bugs = { url: b.bugs } : this.warn("nonEmailUrlBugsString");
7229
7233
  else {
7230
- w(b.bugs, this.warn);
7234
+ S(b.bugs, this.warn);
7231
7235
  var L = b.bugs;
7232
7236
  b.bugs = {}, L.url && (e.canParse(L.url) ? b.bugs.url = L.url : this.warn("nonUrlBugsUrlField")), L.email && (typeof L.email == "string" && m(L.email) ? b.bugs.email = L.email : this.warn("nonEmailBugsEmailField"));
7233
7237
  }
@@ -7236,8 +7240,8 @@ function Xc() {
7236
7240
  },
7237
7241
  fixHomepageField: function(b) {
7238
7242
  if (!b.homepage && b.repository && b.repository.url) {
7239
- var S = p.fromUrl(b.repository.url);
7240
- S && S.docs() && (b.homepage = S.docs());
7243
+ var w = p.fromUrl(b.repository.url);
7244
+ w && w.docs() && (b.homepage = w.docs());
7241
7245
  }
7242
7246
  if (b.homepage) {
7243
7247
  if (typeof b.homepage != "string")
@@ -7246,60 +7250,60 @@ function Xc() {
7246
7250
  }
7247
7251
  },
7248
7252
  fixLicenseField: function(b) {
7249
- const S = b.license || b.licence;
7250
- if (!S)
7253
+ const w = b.license || b.licence;
7254
+ if (!w)
7251
7255
  return this.warn("missingLicense");
7252
- if (typeof S != "string" || S.length < 1 || S.trim() === "")
7256
+ if (typeof w != "string" || w.length < 1 || w.trim() === "")
7253
7257
  return this.warn("invalidLicense");
7254
- if (!l(S).validForNewPackages)
7258
+ if (!l(w).validForNewPackages)
7255
7259
  return this.warn("invalidLicense");
7256
7260
  }
7257
7261
  };
7258
7262
  function n(b) {
7259
7263
  if (b.charAt(0) !== "@")
7260
7264
  return !1;
7261
- var S = b.slice(1).split("/");
7262
- return S.length !== 2 ? !1 : S[0] && S[1] && S[0] === encodeURIComponent(S[0]) && S[1] === encodeURIComponent(S[1]);
7265
+ var w = b.slice(1).split("/");
7266
+ return w.length !== 2 ? !1 : w[0] && w[1] && w[0] === encodeURIComponent(w[0]) && w[1] === encodeURIComponent(w[1]);
7263
7267
  }
7264
7268
  function u(b) {
7265
7269
  return !b.match(/[/@\s+%:]/) && b === encodeURIComponent(b);
7266
7270
  }
7267
- function a(b, S, L) {
7268
- if (b.charAt(0) === "." || !(n(b) || u(b)) || S && !L && b !== b.toLowerCase() || b.toLowerCase() === "node_modules" || b.toLowerCase() === "favicon.ico")
7271
+ function a(b, w, L) {
7272
+ if (b.charAt(0) === "." || !(n(b) || u(b)) || w && !L && b !== b.toLowerCase() || b.toLowerCase() === "node_modules" || b.toLowerCase() === "favicon.ico")
7269
7273
  throw new Error("Invalid name: " + JSON.stringify(b));
7270
7274
  }
7271
- function r(b, S) {
7272
- return b.author && (b.author = S(b.author)), ["maintainers", "contributors"].forEach(function(L) {
7273
- Array.isArray(b[L]) && (b[L] = b[L].map(S));
7275
+ function r(b, w) {
7276
+ return b.author && (b.author = w(b.author)), ["maintainers", "contributors"].forEach(function(L) {
7277
+ Array.isArray(b[L]) && (b[L] = b[L].map(w));
7274
7278
  }), b;
7275
7279
  }
7276
7280
  function f(b) {
7277
7281
  if (typeof b == "string")
7278
7282
  return b;
7279
- var S = b.name || "", L = b.url || b.web, O = L ? " (" + L + ")" : "", $ = b.email || b.mail, _ = $ ? " <" + $ + ">" : "";
7280
- return S + _ + O;
7283
+ var w = b.name || "", L = b.url || b.web, O = L ? " (" + L + ")" : "", $ = b.email || b.mail, _ = $ ? " <" + $ + ">" : "";
7284
+ return w + _ + O;
7281
7285
  }
7282
7286
  function d(b) {
7283
7287
  if (typeof b != "string")
7284
7288
  return b;
7285
- var S = b.match(/^([^(<]+)/), L = b.match(/\(([^()]+)\)/), O = b.match(/<([^<>]+)>/), $ = {};
7286
- return S && S[0].trim() && ($.name = S[0].trim()), O && ($.email = O[1]), L && ($.url = L[1]), $;
7289
+ var w = b.match(/^([^(<]+)/), L = b.match(/\(([^()]+)\)/), O = b.match(/<([^<>]+)>/), $ = {};
7290
+ return w && w[0].trim() && ($.name = w[0].trim()), O && ($.email = O[1]), L && ($.url = L[1]), $;
7287
7291
  }
7288
7292
  function g(b) {
7289
- var S = b.optionalDependencies;
7290
- if (S) {
7293
+ var w = b.optionalDependencies;
7294
+ if (w) {
7291
7295
  var L = b.dependencies || {};
7292
- Object.keys(S).forEach(function(O) {
7293
- L[O] = S[O];
7296
+ Object.keys(w).forEach(function(O) {
7297
+ L[O] = w[O];
7294
7298
  }), b.dependencies = L;
7295
7299
  }
7296
7300
  }
7297
- function y(b, S, L) {
7301
+ function y(b, w, L) {
7298
7302
  if (!b)
7299
7303
  return {};
7300
7304
  if (typeof b == "string" && (b = b.trim().split(/[\n\r\s\t ,]+/)), !Array.isArray(b))
7301
7305
  return b;
7302
- L("deprecatedArrayDependencies", S);
7306
+ L("deprecatedArrayDependencies", w);
7303
7307
  var O = {};
7304
7308
  return b.filter(function($) {
7305
7309
  return typeof $ == "string";
@@ -7309,53 +7313,53 @@ function Xc() {
7309
7313
  P = P.trim(), P = P.replace(/^@/, ""), O[_] = P;
7310
7314
  }), O;
7311
7315
  }
7312
- function v(b, S) {
7316
+ function v(b, w) {
7313
7317
  c.forEach(function(L) {
7314
- b[L] && (b[L] = y(b[L], L, S));
7318
+ b[L] && (b[L] = y(b[L], L, w));
7315
7319
  });
7316
7320
  }
7317
- function w(b, S) {
7321
+ function S(b, w) {
7318
7322
  b && Object.keys(b).forEach(function(L) {
7319
- o.bugs[L] && (S("typo", L, o.bugs[L], "bugs"), b[o.bugs[L]] = b[L], delete b[L]);
7323
+ o.bugs[L] && (w("typo", L, o.bugs[L], "bugs"), b[o.bugs[L]] = b[L], delete b[L]);
7320
7324
  });
7321
7325
  }
7322
7326
  return Ei;
7323
7327
  }
7324
- const Qc = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", Zc = "No repository field.", eu = "Probably broken git url: %s", tu = "scripts must be an object", iu = "script values must be string commands", nu = "Invalid 'files' member", su = "Invalid filename in 'files' list: %s", ru = "Invalid 'bundleDependencies' list. Must be array of package names", ou = "Invalid bundleDependencies member: %s", au = "Non-dependency in bundleDependencies: %s", lu = "%s field must be an object", cu = "Invalid dependency: %s %s", uu = "specifying %s as array is deprecated", fu = "modules field is deprecated", hu = "keywords should be an array of strings", pu = "keywords should be an array of strings", du = "%s is also the name of a node core module.", mu = "'description' field should be a string", gu = "No description", yu = "No README data", bu = "No license field.", vu = "Bug string field must be url, email, or {email,url}", Su = "bugs.url field must be a string url. Deleted.", wu = "bugs.email field must be a string email. Deleted.", Eu = "Normalized value of bugs field is an empty object. Deleted.", Cu = "homepage field must be a string url. Deleted.", Au = "license should be a valid SPDX license expression", Lu = "%s should probably be %s.", Ou = {
7325
- repositories: Qc,
7326
- missingRepository: Zc,
7327
- brokenGitUrl: eu,
7328
- nonObjectScripts: tu,
7329
- nonStringScript: iu,
7330
- nonArrayFiles: nu,
7331
- invalidFilename: su,
7332
- nonArrayBundleDependencies: ru,
7333
- nonStringBundleDependency: ou,
7334
- nonDependencyBundleDependency: au,
7335
- nonObjectDependencies: lu,
7336
- nonStringDependency: cu,
7337
- deprecatedArrayDependencies: uu,
7338
- deprecatedModules: fu,
7339
- nonArrayKeywords: hu,
7340
- nonStringKeyword: pu,
7341
- conflictingName: du,
7342
- nonStringDescription: mu,
7343
- missingDescription: gu,
7344
- missingReadme: yu,
7345
- missingLicense: bu,
7346
- nonEmailUrlBugsString: vu,
7328
+ const Zc = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", eu = "No repository field.", tu = "Probably broken git url: %s", iu = "scripts must be an object", nu = "script values must be string commands", su = "Invalid 'files' member", ru = "Invalid filename in 'files' list: %s", ou = "Invalid 'bundleDependencies' list. Must be array of package names", au = "Invalid bundleDependencies member: %s", lu = "Non-dependency in bundleDependencies: %s", cu = "%s field must be an object", uu = "Invalid dependency: %s %s", fu = "specifying %s as array is deprecated", hu = "modules field is deprecated", pu = "keywords should be an array of strings", du = "keywords should be an array of strings", mu = "%s is also the name of a node core module.", gu = "'description' field should be a string", yu = "No description", bu = "No README data", vu = "No license field.", wu = "Bug string field must be url, email, or {email,url}", Su = "bugs.url field must be a string url. Deleted.", Eu = "bugs.email field must be a string email. Deleted.", Cu = "Normalized value of bugs field is an empty object. Deleted.", Au = "homepage field must be a string url. Deleted.", Lu = "license should be a valid SPDX license expression", Ou = "%s should probably be %s.", $u = {
7329
+ repositories: Zc,
7330
+ missingRepository: eu,
7331
+ brokenGitUrl: tu,
7332
+ nonObjectScripts: iu,
7333
+ nonStringScript: nu,
7334
+ nonArrayFiles: su,
7335
+ invalidFilename: ru,
7336
+ nonArrayBundleDependencies: ou,
7337
+ nonStringBundleDependency: au,
7338
+ nonDependencyBundleDependency: lu,
7339
+ nonObjectDependencies: cu,
7340
+ nonStringDependency: uu,
7341
+ deprecatedArrayDependencies: fu,
7342
+ deprecatedModules: hu,
7343
+ nonArrayKeywords: pu,
7344
+ nonStringKeyword: du,
7345
+ conflictingName: mu,
7346
+ nonStringDescription: gu,
7347
+ missingDescription: yu,
7348
+ missingReadme: bu,
7349
+ missingLicense: vu,
7350
+ nonEmailUrlBugsString: wu,
7347
7351
  nonUrlBugsUrlField: Su,
7348
- nonEmailBugsEmailField: wu,
7349
- emptyNormalizedBugs: Eu,
7350
- nonUrlHomepage: Cu,
7351
- invalidLicense: Au,
7352
- typo: Lu
7352
+ nonEmailBugsEmailField: Eu,
7353
+ emptyNormalizedBugs: Cu,
7354
+ nonUrlHomepage: Au,
7355
+ invalidLicense: Lu,
7356
+ typo: Ou
7353
7357
  };
7354
7358
  var Ci, Vs;
7355
- function $u() {
7359
+ function _u() {
7356
7360
  if (Vs) return Ci;
7357
7361
  Vs = 1;
7358
- var e = Oa, t = Ou;
7362
+ var e = $a, t = $u;
7359
7363
  Ci = function() {
7360
7364
  var l = Array.prototype.slice.call(arguments, 0), p = l.shift();
7361
7365
  if (p === "typo")
@@ -7369,12 +7373,12 @@ function $u() {
7369
7373
  return Ci;
7370
7374
  }
7371
7375
  var Ai, Ws;
7372
- function _u() {
7376
+ function Nu() {
7373
7377
  if (Ws) return Ai;
7374
7378
  Ws = 1, Ai = s;
7375
- var e = Xc();
7379
+ var e = Qc();
7376
7380
  s.fixer = e;
7377
- var t = $u(), i = [
7381
+ var t = _u(), i = [
7378
7382
  "name",
7379
7383
  "version",
7380
7384
  "description",
@@ -7406,8 +7410,8 @@ function _u() {
7406
7410
  }
7407
7411
  return Ai;
7408
7412
  }
7409
- var Nu = _u();
7410
- const Pu = /* @__PURE__ */ Nn(Nu);
7413
+ var Pu = Nu();
7414
+ const Iu = /* @__PURE__ */ Nn(Pu);
7411
7415
  var W = {}, Li = {}, Oi = {}, te = {}, Ys;
7412
7416
  function H() {
7413
7417
  if (Ys) return te;
@@ -7909,7 +7913,7 @@ function Dt() {
7909
7913
  }
7910
7914
  return _i.Alias = s, _i;
7911
7915
  }
7912
- var Be = {}, Ti = {}, gt = {}, tr;
7916
+ var Ge = {}, Ti = {}, gt = {}, tr;
7913
7917
  function ee() {
7914
7918
  if (tr) return gt;
7915
7919
  tr = 1;
@@ -7975,7 +7979,7 @@ function Ft() {
7975
7979
  }
7976
7980
  var nr;
7977
7981
  function Un() {
7978
- if (nr) return Be;
7982
+ if (nr) return Ge;
7979
7983
  nr = 1;
7980
7984
  var e = Ft(), t = H(), i = jn();
7981
7985
  function l(c, h, o) {
@@ -8094,11 +8098,11 @@ function Un() {
8094
8098
  }
8095
8099
  }
8096
8100
  };
8097
- return Be.Collection = s, Be.collectionFromPath = l, Be.isEmptyPath = p, Be;
8101
+ return Ge.Collection = s, Ge.collectionFromPath = l, Ge.isEmptyPath = p, Ge;
8098
8102
  }
8099
- var yt = {}, ki = {}, bt = {}, Ge = {}, sr;
8103
+ var yt = {}, ki = {}, bt = {}, qe = {}, sr;
8100
8104
  function Bt() {
8101
- if (sr) return Ge;
8105
+ if (sr) return qe;
8102
8106
  sr = 1;
8103
8107
  const e = (l) => l.replace(/^(?!$)(?: $)?/gm, "#");
8104
8108
  function t(l, p) {
@@ -8108,10 +8112,10 @@ function Bt() {
8108
8112
  `) ? t(s, p) : s.includes(`
8109
8113
  `) ? `
8110
8114
  ` + t(s, p) : (l.endsWith(" ") ? "" : " ") + s;
8111
- return Ge.indentComment = t, Ge.lineComment = i, Ge.stringifyComment = e, Ge;
8115
+ return qe.indentComment = t, qe.lineComment = i, qe.stringifyComment = e, qe;
8112
8116
  }
8113
8117
  var xi = {}, Ie = {}, rr;
8114
- function Iu() {
8118
+ function Tu() {
8115
8119
  if (rr) return Ie;
8116
8120
  rr = 1;
8117
8121
  const e = "flow", t = "block", i = "quoted";
@@ -8125,11 +8129,11 @@ function Iu() {
8125
8129
  const f = [], d = {};
8126
8130
  let g = m - c.length;
8127
8131
  typeof o == "number" && (o > m - Math.max(2, n) ? f.push(0) : g = m - o);
8128
- let y, v, w = !1, b = -1, S = -1, L = -1;
8132
+ let y, v, S = !1, b = -1, w = -1, L = -1;
8129
8133
  h === t && (b = p(s, b, c.length), b !== -1 && (g = b + r));
8130
8134
  for (let $; $ = s[b += 1]; ) {
8131
8135
  if (h === i && $ === "\\") {
8132
- switch (S = b, s[b + 1]) {
8136
+ switch (w = b, s[b + 1]) {
8133
8137
  case "x":
8134
8138
  b += 3;
8135
8139
  break;
@@ -8159,17 +8163,17 @@ function Iu() {
8159
8163
  f.push(y), g = y + r, y = void 0;
8160
8164
  else if (h === i) {
8161
8165
  for (; v === " " || v === " "; )
8162
- v = $, $ = s[b += 1], w = !0;
8163
- const _ = b > L + 1 ? b - 2 : S - 1;
8166
+ v = $, $ = s[b += 1], S = !0;
8167
+ const _ = b > L + 1 ? b - 2 : w - 1;
8164
8168
  if (d[_])
8165
8169
  return s;
8166
8170
  f.push(_), d[_] = !0, g = _ + r, y = void 0;
8167
8171
  } else
8168
- w = !0;
8172
+ S = !0;
8169
8173
  }
8170
8174
  v = $;
8171
8175
  }
8172
- if (w && a && a(), f.length === 0)
8176
+ if (S && a && a(), f.length === 0)
8173
8177
  return s;
8174
8178
  u && u();
8175
8179
  let O = s.slice(0, f[0]);
@@ -8201,7 +8205,7 @@ var or;
8201
8205
  function Gt() {
8202
8206
  if (or) return xi;
8203
8207
  or = 1;
8204
- var e = ee(), t = Iu();
8208
+ var e = ee(), t = Tu();
8205
8209
  const i = (a, r) => ({
8206
8210
  indentAtStart: r ? a.indent.length : a.indentAtStart,
8207
8211
  lineWidth: a.options.lineWidth,
@@ -8228,13 +8232,13 @@ function Gt() {
8228
8232
  if (r.options.doubleQuotedAsJSON)
8229
8233
  return f;
8230
8234
  const { implicitKey: d } = r, g = r.options.doubleQuotedMinMultiLineLength, y = r.indent || (l(a) ? " " : "");
8231
- let v = "", w = 0;
8232
- for (let b = 0, S = f[b]; S; S = f[++b])
8233
- if (S === " " && f[b + 1] === "\\" && f[b + 2] === "n" && (v += f.slice(w, b) + "\\ ", b += 1, w = b, S = "\\"), S === "\\")
8235
+ let v = "", S = 0;
8236
+ for (let b = 0, w = f[b]; w; w = f[++b])
8237
+ if (w === " " && f[b + 1] === "\\" && f[b + 2] === "n" && (v += f.slice(S, b) + "\\ ", b += 1, S = b, w = "\\"), w === "\\")
8234
8238
  switch (f[b + 1]) {
8235
8239
  case "u":
8236
8240
  {
8237
- v += f.slice(w, b);
8241
+ v += f.slice(S, b);
8238
8242
  const L = f.substr(b + 2, 4);
8239
8243
  switch (L) {
8240
8244
  case "0000":
@@ -8264,25 +8268,25 @@ function Gt() {
8264
8268
  default:
8265
8269
  L.substr(0, 2) === "00" ? v += "\\x" + L.substr(2) : v += f.substr(b, 6);
8266
8270
  }
8267
- b += 5, w = b + 1;
8271
+ b += 5, S = b + 1;
8268
8272
  }
8269
8273
  break;
8270
8274
  case "n":
8271
8275
  if (d || f[b + 2] === '"' || f.length < g)
8272
8276
  b += 1;
8273
8277
  else {
8274
- for (v += f.slice(w, b) + `
8278
+ for (v += f.slice(S, b) + `
8275
8279
 
8276
8280
  `; f[b + 2] === "\\" && f[b + 3] === "n" && f[b + 4] !== '"'; )
8277
8281
  v += `
8278
8282
  `, b += 2;
8279
- v += y, f[b + 2] === " " && (v += "\\"), b += 1, w = b + 1;
8283
+ v += y, f[b + 2] === " " && (v += "\\"), b += 1, S = b + 1;
8280
8284
  }
8281
8285
  break;
8282
8286
  default:
8283
8287
  b += 1;
8284
8288
  }
8285
- return v = w ? v + f.slice(w) : f, d ? v : t.foldFlowLines(v, y, t.FOLD_QUOTED, i(r, !1));
8289
+ return v = S ? v + f.slice(S) : f, d ? v : t.foldFlowLines(v, y, t.FOLD_QUOTED, i(r, !1));
8286
8290
  }
8287
8291
  function c(a, r) {
8288
8292
  if (r.options.singleQuote === !1 || r.implicitKey && a.includes(`
@@ -8313,10 +8317,10 @@ ${f}`) + "'";
8313
8317
  o = /\n+(?!\n|$)/g;
8314
8318
  }
8315
8319
  function m({ comment: a, type: r, value: f }, d, g, y) {
8316
- const { blockQuote: v, commentString: w, lineWidth: b } = d.options;
8320
+ const { blockQuote: v, commentString: S, lineWidth: b } = d.options;
8317
8321
  if (!v || /\n[\t ]+$/.test(f))
8318
8322
  return h(f, d);
8319
- const S = d.indent || (d.forceBlockIndent || l(f) ? " " : ""), L = v === "literal" ? !0 : v === "folded" || r === e.Scalar.BLOCK_FOLDED ? !1 : r === e.Scalar.BLOCK_LITERAL ? !0 : !p(f, b, S.length);
8323
+ const w = d.indent || (d.forceBlockIndent || l(f) ? " " : ""), L = v === "literal" ? !0 : v === "folded" || r === e.Scalar.BLOCK_FOLDED ? !1 : r === e.Scalar.BLOCK_LITERAL ? !0 : !p(f, b, w.length);
8320
8324
  if (!f)
8321
8325
  return L ? `|
8322
8326
  ` : `>
@@ -8332,7 +8336,7 @@ ${f}`) + "'";
8332
8336
  const P = _.indexOf(`
8333
8337
  `);
8334
8338
  P === -1 ? O = "-" : f === _ || P !== _.length - 1 ? (O = "+", y && y()) : O = "", _ && (f = f.slice(0, -_.length), _[_.length - 1] === `
8335
- ` && (_ = _.slice(0, -1)), _ = _.replace(o, `$&${S}`));
8339
+ ` && (_ = _.slice(0, -1)), _ = _.replace(o, `$&${w}`));
8336
8340
  let I = !1, B, F = -1;
8337
8341
  for (B = 0; B < f.length; ++B) {
8338
8342
  const T = f[B];
@@ -8345,39 +8349,39 @@ ${f}`) + "'";
8345
8349
  break;
8346
8350
  }
8347
8351
  let D = f.substring(0, F < B ? F + 1 : B);
8348
- D && (f = f.substring(D.length), D = D.replace(/\n+/g, `$&${S}`));
8349
- let G = (I ? S ? "2" : "1" : "") + O;
8350
- if (a && (G += " " + w(a.replace(/ ?[\r\n]+/g, " ")), g && g()), !L) {
8352
+ D && (f = f.substring(D.length), D = D.replace(/\n+/g, `$&${w}`));
8353
+ let G = (I ? w ? "2" : "1" : "") + O;
8354
+ if (a && (G += " " + S(a.replace(/ ?[\r\n]+/g, " ")), g && g()), !L) {
8351
8355
  const T = f.replace(/\n+/g, `
8352
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${S}`);
8356
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${w}`);
8353
8357
  let Y = !1;
8354
8358
  const j = i(d, !0);
8355
8359
  v !== "folded" && r !== e.Scalar.BLOCK_FOLDED && (j.onOverflow = () => {
8356
8360
  Y = !0;
8357
8361
  });
8358
- const U = t.foldFlowLines(`${D}${T}${_}`, S, t.FOLD_BLOCK, j);
8362
+ const U = t.foldFlowLines(`${D}${T}${_}`, w, t.FOLD_BLOCK, j);
8359
8363
  if (!Y)
8360
8364
  return `>${G}
8361
- ${S}${U}`;
8365
+ ${w}${U}`;
8362
8366
  }
8363
- return f = f.replace(/\n+/g, `$&${S}`), `|${G}
8364
- ${S}${D}${f}${_}`;
8367
+ return f = f.replace(/\n+/g, `$&${w}`), `|${G}
8368
+ ${w}${D}${f}${_}`;
8365
8369
  }
8366
8370
  function n(a, r, f, d) {
8367
- const { type: g, value: y } = a, { actualString: v, implicitKey: w, indent: b, indentStep: S, inFlow: L } = r;
8368
- if (w && y.includes(`
8371
+ const { type: g, value: y } = a, { actualString: v, implicitKey: S, indent: b, indentStep: w, inFlow: L } = r;
8372
+ if (S && y.includes(`
8369
8373
  `) || L && /[[\]{},]/.test(y))
8370
8374
  return h(y, r);
8371
8375
  if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(y))
8372
- return w || L || !y.includes(`
8376
+ return S || L || !y.includes(`
8373
8377
  `) ? h(y, r) : m(a, r, f, d);
8374
- if (!w && !L && g !== e.Scalar.PLAIN && y.includes(`
8378
+ if (!S && !L && g !== e.Scalar.PLAIN && y.includes(`
8375
8379
  `))
8376
8380
  return m(a, r, f, d);
8377
8381
  if (l(y)) {
8378
8382
  if (b === "")
8379
8383
  return r.forceBlockIndent = !0, m(a, r, f, d);
8380
- if (w && b === S)
8384
+ if (S && b === w)
8381
8385
  return h(y, r);
8382
8386
  }
8383
8387
  const O = y.replace(/\n+/g, `$&
@@ -8387,12 +8391,12 @@ ${b}`);
8387
8391
  if (P.some($) || _?.some($))
8388
8392
  return h(y, r);
8389
8393
  }
8390
- return w ? O : t.foldFlowLines(O, b, t.FOLD_FLOW, i(r, !1));
8394
+ return S ? O : t.foldFlowLines(O, b, t.FOLD_FLOW, i(r, !1));
8391
8395
  }
8392
8396
  function u(a, r, f, d) {
8393
8397
  const { implicitKey: g, inFlow: y } = r, v = typeof a.value == "string" ? a : Object.assign({}, a, { value: String(a.value) });
8394
- let { type: w } = a;
8395
- w !== e.Scalar.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(v.value) && (w = e.Scalar.QUOTE_DOUBLE);
8398
+ let { type: S } = a;
8399
+ S !== e.Scalar.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(v.value) && (S = e.Scalar.QUOTE_DOUBLE);
8396
8400
  const b = (L) => {
8397
8401
  switch (L) {
8398
8402
  case e.Scalar.BLOCK_FOLDED:
@@ -8408,13 +8412,13 @@ ${b}`);
8408
8412
  return null;
8409
8413
  }
8410
8414
  };
8411
- let S = b(w);
8412
- if (S === null) {
8415
+ let w = b(S);
8416
+ if (w === null) {
8413
8417
  const { defaultKeyType: L, defaultStringType: O } = r.options, $ = g && L || O;
8414
- if (S = b($), S === null)
8418
+ if (w = b($), w === null)
8415
8419
  throw new Error(`Unsupported default string type ${$}`);
8416
8420
  }
8417
- return S;
8421
+ return w;
8418
8422
  }
8419
8423
  return xi.stringifyString = u, xi;
8420
8424
  }
@@ -8518,7 +8522,7 @@ ${m.indent}${d}` : d;
8518
8522
  return bt.createStringifyContext = p, bt.stringify = h, bt;
8519
8523
  }
8520
8524
  var lr;
8521
- function Tu() {
8525
+ function ku() {
8522
8526
  if (lr) return ki;
8523
8527
  lr = 1;
8524
8528
  var e = H(), t = ee(), i = qt(), l = Bt();
@@ -8539,21 +8543,21 @@ function Tu() {
8539
8543
  implicitKey: !v && (g || !n),
8540
8544
  indent: a + r
8541
8545
  });
8542
- let w = !1, b = !1, S = i.stringify(s, h, () => w = !0, () => b = !0);
8543
- if (!v && !h.inFlow && S.length > 1024) {
8546
+ let S = !1, b = !1, w = i.stringify(s, h, () => S = !0, () => b = !0);
8547
+ if (!v && !h.inFlow && w.length > 1024) {
8544
8548
  if (g)
8545
8549
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
8546
8550
  v = !0;
8547
8551
  }
8548
8552
  if (h.inFlow) {
8549
8553
  if (n || c == null)
8550
- return w && o && o(), S === "" ? "?" : v ? `? ${S}` : S;
8554
+ return S && o && o(), w === "" ? "?" : v ? `? ${w}` : w;
8551
8555
  } else if (n && !g || c == null && v)
8552
- return S = `? ${S}`, y && !w ? S += l.lineComment(S, h.indent, f(y)) : b && m && m(), S;
8553
- w && (y = null), v ? (y && (S += l.lineComment(S, h.indent, f(y))), S = `? ${S}
8554
- ${a}:`) : (S = `${S}:`, y && (S += l.lineComment(S, h.indent, f(y))));
8556
+ return w = `? ${w}`, y && !S ? w += l.lineComment(w, h.indent, f(y)) : b && m && m(), w;
8557
+ S && (y = null), v ? (y && (w += l.lineComment(w, h.indent, f(y))), w = `? ${w}
8558
+ ${a}:`) : (w = `${w}:`, y && (w += l.lineComment(w, h.indent, f(y))));
8555
8559
  let L, O, $;
8556
- e.isNode(c) ? (L = !!c.spaceBefore, O = c.commentBefore, $ = c.comment) : (L = !1, O = null, $ = null, c && typeof c == "object" && (c = u.createNode(c))), h.implicitKey = !1, !v && !y && e.isScalar(c) && (h.indentAtStart = S.length + 1), b = !1, !d && r.length >= 2 && !h.inFlow && !v && e.isSeq(c) && !c.flow && !c.tag && !c.anchor && (h.indent = h.indent.substring(2));
8560
+ e.isNode(c) ? (L = !!c.spaceBefore, O = c.commentBefore, $ = c.comment) : (L = !1, O = null, $ = null, c && typeof c == "object" && (c = u.createNode(c))), h.implicitKey = !1, !v && !y && e.isScalar(c) && (h.indentAtStart = w.length + 1), b = !1, !d && r.length >= 2 && !h.inFlow && !v && e.isSeq(c) && !c.flow && !c.tag && !c.anchor && (h.indent = h.indent.substring(2));
8557
8561
  let _ = !1;
8558
8562
  const P = i.stringify(c, h, () => _ = !0, () => b = !0);
8559
8563
  let I = " ";
@@ -8583,7 +8587,7 @@ ${h.indent}`);
8583
8587
  }
8584
8588
  } else (P === "" || P[0] === `
8585
8589
  `) && (I = "");
8586
- return S += I + P, h.inFlow ? _ && o && o() : $ && !_ ? S += l.lineComment(S, h.indent, f($)) : b && m && m(), S;
8590
+ return w += I + P, h.inFlow ? _ && o && o() : $ && !_ ? w += l.lineComment(w, h.indent, f($)) : b && m && m(), w;
8587
8591
  }
8588
8592
  return ki.stringifyPair = p, ki;
8589
8593
  }
@@ -8600,9 +8604,9 @@ function Vo() {
8600
8604
  }
8601
8605
  return vt.debug = t, vt.warn = i, vt;
8602
8606
  }
8603
- var qe = {}, ur;
8607
+ var je = {}, ur;
8604
8608
  function Hn() {
8605
- if (ur) return qe;
8609
+ if (ur) return je;
8606
8610
  ur = 1;
8607
8611
  var e = H(), t = ee();
8608
8612
  const i = "<<", l = {
@@ -8643,7 +8647,7 @@ function Hn() {
8643
8647
  function h(o, m) {
8644
8648
  return o && e.isAlias(m) ? m.resolve(o.doc, o) : m;
8645
8649
  }
8646
- return qe.addMergeToJSMap = s, qe.isMergeKey = p, qe.merge = l, qe;
8650
+ return je.addMergeToJSMap = s, je.isMergeKey = p, je.merge = l, je;
8647
8651
  }
8648
8652
  var fr;
8649
8653
  function Wo() {
@@ -8699,7 +8703,7 @@ var hr;
8699
8703
  function $e() {
8700
8704
  if (hr) return yt;
8701
8705
  hr = 1;
8702
- var e = Ft(), t = Tu(), i = Wo(), l = H();
8706
+ var e = Ft(), t = ku(), i = Wo(), l = H();
8703
8707
  function p(c, h, o) {
8704
8708
  const m = e.createNode(c, void 0, o), n = e.createNode(h, void 0, o);
8705
8709
  return new s(m, n);
@@ -8722,7 +8726,7 @@ function $e() {
8722
8726
  };
8723
8727
  return yt.Pair = s, yt.createPair = p, yt;
8724
8728
  }
8725
- var Mi = {}, Di = {}, St = {}, Fi = {}, pr;
8729
+ var Mi = {}, Di = {}, wt = {}, Fi = {}, pr;
8726
8730
  function Ko() {
8727
8731
  if (pr) return Fi;
8728
8732
  pr = 1;
@@ -8733,27 +8737,27 @@ function Ko() {
8733
8737
  function p({ comment: h, items: o }, m, { blockItemPrefix: n, flowChars: u, itemIndent: a, onChompKeep: r, onComment: f }) {
8734
8738
  const { indent: d, options: { commentString: g } } = m, y = Object.assign({}, m, { indent: a, type: null });
8735
8739
  let v = !1;
8736
- const w = [];
8737
- for (let S = 0; S < o.length; ++S) {
8738
- const L = o[S];
8740
+ const S = [];
8741
+ for (let w = 0; w < o.length; ++w) {
8742
+ const L = o[w];
8739
8743
  let O = null;
8740
8744
  if (e.isNode(L))
8741
- !v && L.spaceBefore && w.push(""), c(m, w, L.commentBefore, v), L.comment && (O = L.comment);
8745
+ !v && L.spaceBefore && S.push(""), c(m, S, L.commentBefore, v), L.comment && (O = L.comment);
8742
8746
  else if (e.isPair(L)) {
8743
8747
  const _ = e.isNode(L.key) ? L.key : null;
8744
- _ && (!v && _.spaceBefore && w.push(""), c(m, w, _.commentBefore, v));
8748
+ _ && (!v && _.spaceBefore && S.push(""), c(m, S, _.commentBefore, v));
8745
8749
  }
8746
8750
  v = !1;
8747
8751
  let $ = t.stringify(L, y, () => O = null, () => v = !0);
8748
- O && ($ += i.lineComment($, a, g(O))), v && O && (v = !1), w.push(n + $);
8752
+ O && ($ += i.lineComment($, a, g(O))), v && O && (v = !1), S.push(n + $);
8749
8753
  }
8750
8754
  let b;
8751
- if (w.length === 0)
8755
+ if (S.length === 0)
8752
8756
  b = u.start + u.end;
8753
8757
  else {
8754
- b = w[0];
8755
- for (let S = 1; S < w.length; ++S) {
8756
- const L = w[S];
8758
+ b = S[0];
8759
+ for (let w = 1; w < S.length; ++w) {
8760
+ const L = S[w];
8757
8761
  b += L ? `
8758
8762
  ${d}${L}` : `
8759
8763
  `;
@@ -8772,8 +8776,8 @@ ${d}${L}` : `
8772
8776
  });
8773
8777
  let g = !1, y = 0;
8774
8778
  const v = [];
8775
- for (let S = 0; S < h.length; ++S) {
8776
- const L = h[S];
8779
+ for (let w = 0; w < h.length; ++w) {
8780
+ const L = h[w];
8777
8781
  let O = null;
8778
8782
  if (e.isNode(L))
8779
8783
  L.spaceBefore && v.push(""), c(o, v, L.commentBefore, !1), L.comment && (O = L.comment);
@@ -8786,25 +8790,25 @@ ${d}${L}` : `
8786
8790
  O && (g = !0);
8787
8791
  let $ = t.stringify(L, d, () => O = null);
8788
8792
  g || (g = v.length > y || $.includes(`
8789
- `)), S < h.length - 1 ? $ += "," : o.options.trailingComma && (o.options.lineWidth > 0 && (g || (g = v.reduce((_, P) => _ + P.length + 2, 2) + ($.length + 2) > o.options.lineWidth)), g && ($ += ",")), O && ($ += i.lineComment($, n, f(O))), v.push($), y = v.length;
8793
+ `)), w < h.length - 1 ? $ += "," : o.options.trailingComma && (o.options.lineWidth > 0 && (g || (g = v.reduce((_, P) => _ + P.length + 2, 2) + ($.length + 2) > o.options.lineWidth)), g && ($ += ",")), O && ($ += i.lineComment($, n, f(O))), v.push($), y = v.length;
8790
8794
  }
8791
- const { start: w, end: b } = m;
8795
+ const { start: S, end: b } = m;
8792
8796
  if (v.length === 0)
8793
- return w + b;
8797
+ return S + b;
8794
8798
  if (!g) {
8795
- const S = v.reduce((L, O) => L + O.length + 2, 2);
8796
- g = o.options.lineWidth > 0 && S > o.options.lineWidth;
8799
+ const w = v.reduce((L, O) => L + O.length + 2, 2);
8800
+ g = o.options.lineWidth > 0 && w > o.options.lineWidth;
8797
8801
  }
8798
8802
  if (g) {
8799
- let S = w;
8803
+ let w = S;
8800
8804
  for (const L of v)
8801
- S += L ? `
8805
+ w += L ? `
8802
8806
  ${a}${u}${L}` : `
8803
8807
  `;
8804
- return `${S}
8808
+ return `${w}
8805
8809
  ${u}${b}`;
8806
8810
  } else
8807
- return `${w}${r}${v.join(" ")}${r}${b}`;
8811
+ return `${S}${r}${v.join(" ")}${r}${b}`;
8808
8812
  }
8809
8813
  function c({ indent: h, options: { commentString: o } }, m, n, u) {
8810
8814
  if (n && u && (n = n.replace(/^\n+/, "")), n) {
@@ -8816,7 +8820,7 @@ ${u}${b}`;
8816
8820
  }
8817
8821
  var dr;
8818
8822
  function _e() {
8819
- if (dr) return St;
8823
+ if (dr) return wt;
8820
8824
  dr = 1;
8821
8825
  var e = Ko(), t = Wo(), i = Un(), l = H(), p = $e(), s = ee();
8822
8826
  function c(o, m) {
@@ -8913,7 +8917,7 @@ function _e() {
8913
8917
  });
8914
8918
  }
8915
8919
  };
8916
- return St.YAMLMap = h, St.findPair = c, St;
8920
+ return wt.YAMLMap = h, wt.findPair = c, wt;
8917
8921
  }
8918
8922
  var mr;
8919
8923
  function Ze() {
@@ -9061,7 +9065,7 @@ function jt() {
9061
9065
  };
9062
9066
  return qi.string = t, qi;
9063
9067
  }
9064
- var wt = {}, ji = {}, vr;
9068
+ var St = {}, ji = {}, vr;
9065
9069
  function Vn() {
9066
9070
  if (vr) return ji;
9067
9071
  vr = 1;
@@ -9077,10 +9081,10 @@ function Vn() {
9077
9081
  };
9078
9082
  return ji.nullTag = t, ji;
9079
9083
  }
9080
- var Ui = {}, Sr;
9084
+ var Ui = {}, wr;
9081
9085
  function Jo() {
9082
- if (Sr) return Ui;
9083
- Sr = 1;
9086
+ if (wr) return Ui;
9087
+ wr = 1;
9084
9088
  var e = ee();
9085
9089
  const t = {
9086
9090
  identify: (i) => typeof i == "boolean",
@@ -9099,10 +9103,10 @@ function Jo() {
9099
9103
  };
9100
9104
  return Ui.boolTag = t, Ui;
9101
9105
  }
9102
- var je = {}, Hi = {}, wr;
9106
+ var Ue = {}, Hi = {}, Sr;
9103
9107
  function tt() {
9104
- if (wr) return Hi;
9105
- wr = 1;
9108
+ if (Sr) return Hi;
9109
+ Sr = 1;
9106
9110
  function e({ format: t, minFractionDigits: i, tag: l, value: p }) {
9107
9111
  if (typeof p == "bigint")
9108
9112
  return String(p);
@@ -9123,7 +9127,7 @@ function tt() {
9123
9127
  }
9124
9128
  var Er;
9125
9129
  function zo() {
9126
- if (Er) return je;
9130
+ if (Er) return Ue;
9127
9131
  Er = 1;
9128
9132
  var e = ee(), t = tt();
9129
9133
  const i = {
@@ -9155,11 +9159,11 @@ function zo() {
9155
9159
  },
9156
9160
  stringify: t.stringifyNumber
9157
9161
  };
9158
- return je.float = p, je.floatExp = l, je.floatNaN = i, je;
9162
+ return Ue.float = p, Ue.floatExp = l, Ue.floatNaN = i, Ue;
9159
9163
  }
9160
- var Ue = {}, Cr;
9164
+ var He = {}, Cr;
9161
9165
  function Xo() {
9162
- if (Cr) return Ue;
9166
+ if (Cr) return He;
9163
9167
  Cr = 1;
9164
9168
  var e = tt();
9165
9169
  const t = (h) => typeof h == "bigint" || Number.isInteger(h), i = (h, o, m, { intAsBigInt: n }) => n ? BigInt(h) : parseInt(h.substring(o), m);
@@ -9191,10 +9195,10 @@ function Xo() {
9191
9195
  resolve: (h, o, m) => i(h, 2, 16, m),
9192
9196
  stringify: (h) => l(h, 16, "0x")
9193
9197
  };
9194
- return Ue.int = s, Ue.intHex = c, Ue.intOct = p, Ue;
9198
+ return He.int = s, He.intHex = c, He.intOct = p, He;
9195
9199
  }
9196
9200
  var Vi = {}, Ar;
9197
- function ku() {
9201
+ function xu() {
9198
9202
  if (Ar) return Vi;
9199
9203
  Ar = 1;
9200
9204
  var e = Ze(), t = Vn(), i = et(), l = jt(), p = Jo(), s = zo(), c = Xo();
@@ -9214,7 +9218,7 @@ function ku() {
9214
9218
  return Vi.schema = h, Vi;
9215
9219
  }
9216
9220
  var Wi = {}, Lr;
9217
- function xu() {
9221
+ function Ru() {
9218
9222
  if (Lr) return Wi;
9219
9223
  Lr = 1;
9220
9224
  var e = ee(), t = Ze(), i = et();
@@ -9276,7 +9280,7 @@ var Yi = {}, Or;
9276
9280
  function Qo() {
9277
9281
  if (Or) return Yi;
9278
9282
  Or = 1;
9279
- var e = Ia, t = ee(), i = Gt();
9283
+ var e = Ta, t = ee(), i = Gt();
9280
9284
  const l = {
9281
9285
  identify: (p) => p instanceof Uint8Array,
9282
9286
  // Buffer inherits from Uint8Array
@@ -9327,9 +9331,9 @@ function Qo() {
9327
9331
  };
9328
9332
  return Yi.binary = l, Yi;
9329
9333
  }
9330
- var Et = {}, He = {}, $r;
9334
+ var Et = {}, Ve = {}, $r;
9331
9335
  function Wn() {
9332
- if ($r) return He;
9336
+ if ($r) return Ve;
9333
9337
  $r = 1;
9334
9338
  var e = H(), t = $e(), i = ee(), l = Ne();
9335
9339
  function p(h, o) {
@@ -9387,7 +9391,7 @@ ${a.comment}` : n.comment;
9387
9391
  resolve: p,
9388
9392
  createNode: s
9389
9393
  };
9390
- return He.createPairs = s, He.pairs = c, He.resolvePairs = p, He;
9394
+ return Ve.createPairs = s, Ve.pairs = c, Ve.resolvePairs = p, Ve;
9391
9395
  }
9392
9396
  var _r;
9393
9397
  function Zo() {
@@ -9438,7 +9442,7 @@ function Zo() {
9438
9442
  return Et.YAMLOMap = s, Et.omap = c, Et;
9439
9443
  }
9440
9444
  var Ki = {}, Ct = {}, Nr;
9441
- function Ru() {
9445
+ function Mu() {
9442
9446
  if (Nr) return Ct;
9443
9447
  Nr = 1;
9444
9448
  var e = ee();
@@ -9462,9 +9466,9 @@ function Ru() {
9462
9466
  };
9463
9467
  return Ct.falseTag = l, Ct.trueTag = i, Ct;
9464
9468
  }
9465
- var Ve = {}, Pr;
9466
- function Mu() {
9467
- if (Pr) return Ve;
9469
+ var We = {}, Pr;
9470
+ function Du() {
9471
+ if (Pr) return We;
9468
9472
  Pr = 1;
9469
9473
  var e = ee(), t = tt();
9470
9474
  const i = {
@@ -9500,10 +9504,10 @@ function Mu() {
9500
9504
  },
9501
9505
  stringify: t.stringifyNumber
9502
9506
  };
9503
- return Ve.float = p, Ve.floatExp = l, Ve.floatNaN = i, Ve;
9507
+ return We.float = p, We.floatExp = l, We.floatNaN = i, We;
9504
9508
  }
9505
9509
  var Te = {}, Ir;
9506
- function Du() {
9510
+ function Fu() {
9507
9511
  if (Ir) return Te;
9508
9512
  Ir = 1;
9509
9513
  var e = tt();
@@ -9635,9 +9639,9 @@ function ea() {
9635
9639
  };
9636
9640
  return At.YAMLSet = l, At.set = p, At;
9637
9641
  }
9638
- var We = {}, kr;
9642
+ var Ye = {}, kr;
9639
9643
  function ta() {
9640
- if (kr) return We;
9644
+ if (kr) return Ye;
9641
9645
  kr = 1;
9642
9646
  var e = tt();
9643
9647
  function t(c, h) {
@@ -9694,13 +9698,13 @@ function ta() {
9694
9698
  },
9695
9699
  stringify: ({ value: c }) => c?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
9696
9700
  };
9697
- return We.floatTime = p, We.intTime = l, We.timestamp = s, We;
9701
+ return Ye.floatTime = p, Ye.intTime = l, Ye.timestamp = s, Ye;
9698
9702
  }
9699
9703
  var xr;
9700
- function Fu() {
9704
+ function Bu() {
9701
9705
  if (xr) return Ki;
9702
9706
  xr = 1;
9703
- var e = Ze(), t = Vn(), i = et(), l = jt(), p = Qo(), s = Ru(), c = Mu(), h = Du(), o = Hn(), m = Zo(), n = Wn(), u = ea(), a = ta();
9707
+ var e = Ze(), t = Vn(), i = et(), l = jt(), p = Qo(), s = Mu(), c = Du(), h = Fu(), o = Hn(), m = Zo(), n = Wn(), u = ea(), a = ta();
9704
9708
  const r = [
9705
9709
  e.map,
9706
9710
  i.seq,
@@ -9727,10 +9731,10 @@ function Fu() {
9727
9731
  return Ki.schema = r, Ki;
9728
9732
  }
9729
9733
  var Rr;
9730
- function Bu() {
9731
- if (Rr) return wt;
9734
+ function Gu() {
9735
+ if (Rr) return St;
9732
9736
  Rr = 1;
9733
- var e = Ze(), t = Vn(), i = et(), l = jt(), p = Jo(), s = zo(), c = Xo(), h = ku(), o = xu(), m = Qo(), n = Hn(), u = Zo(), a = Wn(), r = Fu(), f = ea(), d = ta();
9737
+ var e = Ze(), t = Vn(), i = et(), l = jt(), p = Jo(), s = zo(), c = Xo(), h = xu(), o = Ru(), m = Qo(), n = Hn(), u = Zo(), a = Wn(), r = Bu(), f = ea(), d = ta();
9734
9738
  const g = /* @__PURE__ */ new Map([
9735
9739
  ["core", h.schema],
9736
9740
  ["failsafe", [e.map, i.seq, l.string]],
@@ -9764,8 +9768,8 @@ function Bu() {
9764
9768
  "tag:yaml.org,2002:set": f.set,
9765
9769
  "tag:yaml.org,2002:timestamp": d.timestamp
9766
9770
  };
9767
- function w(b, S, L) {
9768
- const O = g.get(S);
9771
+ function S(b, w, L) {
9772
+ const O = g.get(w);
9769
9773
  if (O && !b)
9770
9774
  return L && !O.includes(n.merge) ? O.concat(n.merge) : O.slice();
9771
9775
  let $ = O;
@@ -9774,7 +9778,7 @@ function Bu() {
9774
9778
  $ = [];
9775
9779
  else {
9776
9780
  const _ = Array.from(g.keys()).filter((P) => P !== "yaml11").map((P) => JSON.stringify(P)).join(", ");
9777
- throw new Error(`Unknown schema "${S}"; use one of ${_} or define customTags array`);
9781
+ throw new Error(`Unknown schema "${w}"; use one of ${_} or define customTags array`);
9778
9782
  }
9779
9783
  if (Array.isArray(b))
9780
9784
  for (const _ of b)
@@ -9789,13 +9793,13 @@ function Bu() {
9789
9793
  return _.includes(I) || _.push(I), _;
9790
9794
  }, []);
9791
9795
  }
9792
- return wt.coreKnownTags = v, wt.getTags = w, wt;
9796
+ return St.coreKnownTags = v, St.getTags = S, St;
9793
9797
  }
9794
9798
  var Mr;
9795
9799
  function na() {
9796
9800
  if (Mr) return Mi;
9797
9801
  Mr = 1;
9798
- var e = H(), t = Ze(), i = et(), l = jt(), p = Bu();
9802
+ var e = H(), t = Ze(), i = et(), l = jt(), p = Gu();
9799
9803
  const s = (h, o) => h.key < o.key ? -1 : h.key > o.key ? 1 : 0;
9800
9804
  let c = class ia {
9801
9805
  constructor({ compat: o, customTags: m, merge: n, resolveKnownTags: u, schema: a, sortMapEntries: r, toStringDefaults: f }) {
@@ -9809,7 +9813,7 @@ function na() {
9809
9813
  return Mi.Schema = c, Mi;
9810
9814
  }
9811
9815
  var Ji = {}, Dr;
9812
- function Gu() {
9816
+ function qu() {
9813
9817
  if (Dr) return Ji;
9814
9818
  Dr = 1;
9815
9819
  var e = H(), t = qt(), i = Bt();
@@ -9862,7 +9866,7 @@ var Fr;
9862
9866
  function Ut() {
9863
9867
  if (Fr) return $i;
9864
9868
  Fr = 1;
9865
- var e = Dt(), t = Un(), i = H(), l = $e(), p = Oe(), s = na(), c = Gu(), h = qn(), o = Ho(), m = Ft(), n = Uo();
9869
+ var e = Dt(), t = Un(), i = H(), l = $e(), p = Oe(), s = na(), c = qu(), h = qn(), o = Ho(), m = Ft(), n = Uo();
9866
9870
  let u = class sa {
9867
9871
  constructor(f, d, g) {
9868
9872
  this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, i.NODE_TYPE, { value: i.DOC });
@@ -9879,8 +9883,8 @@ function Ut() {
9879
9883
  version: "1.2"
9880
9884
  }, g);
9881
9885
  this.options = v;
9882
- let { version: w } = v;
9883
- g?._directives ? (this.directives = g._directives.atDocument(), this.directives.yaml.explicit && (w = this.directives.yaml.version)) : this.directives = new n.Directives({ version: w }), this.setSchema(w, g), this.contents = f === void 0 ? null : this.createNode(f, y, g);
9886
+ let { version: S } = v;
9887
+ g?._directives ? (this.directives = g._directives.atDocument(), this.directives.yaml.explicit && (S = this.directives.yaml.version)) : this.directives = new n.Directives({ version: S }), this.setSchema(S, g), this.contents = f === void 0 ? null : this.createNode(f, y, g);
9884
9888
  }
9885
9889
  /**
9886
9890
  * Create a deep copy of this Document and its contents.
@@ -9926,13 +9930,13 @@ function Ut() {
9926
9930
  const F = (M) => typeof M == "number" || M instanceof String || M instanceof Number, D = d.filter(F).map(String);
9927
9931
  D.length > 0 && (d = d.concat(D)), y = d;
9928
9932
  } else g === void 0 && d && (g = d, d = void 0);
9929
- const { aliasDuplicateObjects: v, anchorPrefix: w, flow: b, keepUndefined: S, onTagObj: L, tag: O } = g ?? {}, { onAnchor: $, setAnchors: _, sourceObjects: P } = h.createNodeAnchors(
9933
+ const { aliasDuplicateObjects: v, anchorPrefix: S, flow: b, keepUndefined: w, onTagObj: L, tag: O } = g ?? {}, { onAnchor: $, setAnchors: _, sourceObjects: P } = h.createNodeAnchors(
9930
9934
  this,
9931
9935
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
9932
- w || "a"
9936
+ S || "a"
9933
9937
  ), I = {
9934
9938
  aliasDuplicateObjects: v ?? !0,
9935
- keepUndefined: S ?? !1,
9939
+ keepUndefined: w ?? !1,
9936
9940
  onAnchor: $,
9937
9941
  onTagObj: L,
9938
9942
  replacer: y,
@@ -10039,7 +10043,7 @@ function Ut() {
10039
10043
  throw new Error("With a null YAML version, the { schema: Schema } option is required");
10040
10044
  }
10041
10045
  // json & jsonArg are only used from toJSON()
10042
- toJS({ json: f, jsonArg: d, mapAsMap: g, maxAliasCount: y, onAnchor: v, reviver: w } = {}) {
10046
+ toJS({ json: f, jsonArg: d, mapAsMap: g, maxAliasCount: y, onAnchor: v, reviver: S } = {}) {
10043
10047
  const b = {
10044
10048
  anchors: /* @__PURE__ */ new Map(),
10045
10049
  doc: this,
@@ -10047,11 +10051,11 @@ function Ut() {
10047
10051
  mapAsMap: g === !0,
10048
10052
  mapKeyWarned: !1,
10049
10053
  maxAliasCount: typeof y == "number" ? y : 100
10050
- }, S = p.toJS(this.contents, d ?? "", b);
10054
+ }, w = p.toJS(this.contents, d ?? "", b);
10051
10055
  if (typeof v == "function")
10052
10056
  for (const { count: L, res: O } of b.anchors.values())
10053
10057
  v(O, L);
10054
- return typeof w == "function" ? o.applyReviver(w, { "": S }, "", S) : S;
10058
+ return typeof S == "function" ? o.applyReviver(S, { "": w }, "", w) : w;
10055
10059
  }
10056
10060
  /**
10057
10061
  * A JSON representation of the document `contents`.
@@ -10134,7 +10138,7 @@ function Vt() {
10134
10138
  if (Gr) return Zi;
10135
10139
  Gr = 1;
10136
10140
  function e(t, { flow: i, indicator: l, next: p, offset: s, onError: c, parentIndent: h, startOnNewline: o }) {
10137
- let m = !1, n = o, u = o, a = "", r = "", f = !1, d = !1, g = null, y = null, v = null, w = null, b = null, S = null, L = null;
10141
+ let m = !1, n = o, u = o, a = "", r = "", f = !1, d = !1, g = null, y = null, v = null, S = null, b = null, w = null, L = null;
10138
10142
  for (const _ of t)
10139
10143
  switch (d && (_.type !== "space" && _.type !== "newline" && _.type !== "comma" && c(_.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), d = !1), g && (n && _.type !== "comment" && _.type !== "newline" && c(g, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), g = null), _.type) {
10140
10144
  case "space":
@@ -10147,7 +10151,7 @@ function Vt() {
10147
10151
  break;
10148
10152
  }
10149
10153
  case "newline":
10150
- n ? a ? a += _.source : (!S || l !== "seq-item-ind") && (m = !0) : r += _.source, n = !0, f = !0, (y || v) && (w = _), u = !0;
10154
+ n ? a ? a += _.source : (!w || l !== "seq-item-ind") && (m = !0) : r += _.source, n = !0, f = !0, (y || v) && (S = _), u = !0;
10151
10155
  break;
10152
10156
  case "anchor":
10153
10157
  y && c(_, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), _.source.endsWith(":") && c(_.offset + _.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), y = _, L ?? (L = _.offset), n = !1, u = !1, d = !0;
@@ -10157,7 +10161,7 @@ function Vt() {
10157
10161
  break;
10158
10162
  }
10159
10163
  case l:
10160
- (y || v) && c(_, "BAD_PROP_ORDER", `Anchors and tags must be after the ${_.source} indicator`), S && c(_, "UNEXPECTED_TOKEN", `Unexpected ${_.source} in ${i ?? "collection"}`), S = _, n = l === "seq-item-ind" || l === "explicit-key-ind", u = !1;
10164
+ (y || v) && c(_, "BAD_PROP_ORDER", `Anchors and tags must be after the ${_.source} indicator`), w && c(_, "UNEXPECTED_TOKEN", `Unexpected ${_.source} in ${i ?? "collection"}`), w = _, n = l === "seq-item-ind" || l === "explicit-key-ind", u = !1;
10161
10165
  break;
10162
10166
  case "comma":
10163
10167
  if (i) {
@@ -10171,13 +10175,13 @@ function Vt() {
10171
10175
  const O = t[t.length - 1], $ = O ? O.offset + O.source.length : s;
10172
10176
  return d && p && p.type !== "space" && p.type !== "newline" && p.type !== "comma" && (p.type !== "scalar" || p.source !== "") && c(p.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), g && (n && g.indent <= h || p?.type === "block-map" || p?.type === "block-seq") && c(g, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
10173
10177
  comma: b,
10174
- found: S,
10178
+ found: w,
10175
10179
  spaceBefore: m,
10176
10180
  comment: a,
10177
10181
  hasNewline: f,
10178
10182
  anchor: y,
10179
10183
  tag: v,
10180
- newlineAfterProp: w,
10184
+ newlineAfterProp: S,
10181
10185
  end: $,
10182
10186
  start: L ?? $
10183
10187
  };
@@ -10253,7 +10257,7 @@ function oa() {
10253
10257
  return nn.mapIncludes = t, nn;
10254
10258
  }
10255
10259
  var Hr;
10256
- function qu() {
10260
+ function ju() {
10257
10261
  if (Hr) return Qi;
10258
10262
  Hr = 1;
10259
10263
  var e = $e(), t = _e(), i = Vt(), l = Yn(), p = ra(), s = oa();
@@ -10263,26 +10267,26 @@ function qu() {
10263
10267
  n.atRoot && (n.atRoot = !1);
10264
10268
  let g = u.offset, y = null;
10265
10269
  for (const v of u.items) {
10266
- const { start: w, key: b, sep: S, value: L } = v, O = i.resolveProps(w, {
10270
+ const { start: S, key: b, sep: w, value: L } = v, O = i.resolveProps(S, {
10267
10271
  indicator: "explicit-key-ind",
10268
- next: b ?? S?.[0],
10272
+ next: b ?? w?.[0],
10269
10273
  offset: g,
10270
10274
  onError: a,
10271
10275
  parentIndent: u.indent,
10272
10276
  startOnNewline: !0
10273
10277
  }), $ = !O.found;
10274
10278
  if ($) {
10275
- if (b && (b.type === "block-seq" ? a(g, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in b && b.indent !== u.indent && a(g, "BAD_INDENT", c)), !O.anchor && !O.tag && !S) {
10279
+ if (b && (b.type === "block-seq" ? a(g, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in b && b.indent !== u.indent && a(g, "BAD_INDENT", c)), !O.anchor && !O.tag && !w) {
10276
10280
  y = O.end, O.comment && (d.comment ? d.comment += `
10277
10281
  ` + O.comment : d.comment = O.comment);
10278
10282
  continue;
10279
10283
  }
10280
- (O.newlineAfterProp || l.containsNewline(b)) && a(b ?? w[w.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
10284
+ (O.newlineAfterProp || l.containsNewline(b)) && a(b ?? S[S.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
10281
10285
  } else O.found?.indent !== u.indent && a(g, "BAD_INDENT", c);
10282
10286
  n.atKey = !0;
10283
- const _ = O.end, P = b ? o(n, b, O, a) : m(n, _, w, null, O, a);
10287
+ const _ = O.end, P = b ? o(n, b, O, a) : m(n, _, S, null, O, a);
10284
10288
  n.schema.compat && p.flowIndentCheck(u.indent, b, a), n.atKey = !1, s.mapIncludes(n, d.items, P) && a(_, "DUPLICATE_KEY", "Map keys must be unique");
10285
- const I = i.resolveProps(S ?? [], {
10289
+ const I = i.resolveProps(w ?? [], {
10286
10290
  indicator: "map-value-ind",
10287
10291
  next: L,
10288
10292
  offset: P.range[2],
@@ -10292,7 +10296,7 @@ function qu() {
10292
10296
  });
10293
10297
  if (g = I.end, I.found) {
10294
10298
  $ && (L?.type === "block-map" && !I.hasNewline && a(g, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && O.start < I.found.offset - 1024 && a(P.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
10295
- const B = L ? o(n, L, I, a) : m(n, g, S, null, I, a);
10299
+ const B = L ? o(n, L, I, a) : m(n, g, w, null, I, a);
10296
10300
  n.schema.compat && p.flowIndentCheck(u.indent, L, a), g = B.range[2];
10297
10301
  const F = new e.Pair(P, B);
10298
10302
  n.options.keepSourceTokens && (F.srcToken = v), d.items.push(F);
@@ -10308,7 +10312,7 @@ function qu() {
10308
10312
  return Qi.resolveBlockMap = h, Qi;
10309
10313
  }
10310
10314
  var sn = {}, Vr;
10311
- function ju() {
10315
+ function Uu() {
10312
10316
  if (Vr) return sn;
10313
10317
  Vr = 1;
10314
10318
  var e = Ne(), t = Vt(), i = ra();
@@ -10373,16 +10377,16 @@ function it() {
10373
10377
  return on.resolveEnd = e, on;
10374
10378
  }
10375
10379
  var Yr;
10376
- function Uu() {
10380
+ function Hu() {
10377
10381
  if (Yr) return rn;
10378
10382
  Yr = 1;
10379
10383
  var e = H(), t = $e(), i = _e(), l = Ne(), p = it(), s = Vt(), c = Yn(), h = oa();
10380
10384
  const o = "Block collections are not allowed within flow collections", m = (u) => u && (u.type === "block-map" || u.type === "block-seq");
10381
10385
  function n({ composeNode: u, composeEmptyNode: a }, r, f, d, g) {
10382
- const y = f.start.source === "{", v = y ? "flow map" : "flow sequence", w = g?.nodeClass ?? (y ? i.YAMLMap : l.YAMLSeq), b = new w(r.schema);
10386
+ const y = f.start.source === "{", v = y ? "flow map" : "flow sequence", S = g?.nodeClass ?? (y ? i.YAMLMap : l.YAMLSeq), b = new S(r.schema);
10383
10387
  b.flow = !0;
10384
- const S = r.atRoot;
10385
- S && (r.atRoot = !1), r.atKey && (r.atKey = !1);
10388
+ const w = r.atRoot;
10389
+ w && (r.atRoot = !1), r.atKey && (r.atKey = !1);
10386
10390
  let L = f.offset + f.start.source.length;
10387
10391
  for (let I = 0; I < f.items.length; ++I) {
10388
10392
  const B = f.items[I], { start: F, key: D, sep: M, value: G } = B, T = s.resolveProps(F, {
@@ -10458,20 +10462,20 @@ function Uu() {
10458
10462
  T.start < U.found.offset - 1024 && d(U.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
10459
10463
  }
10460
10464
  } else G && ("source" in G && G.source?.[0] === ":" ? d(G, "MISSING_CHAR", `Missing space after : in ${v}`) : d(U.start, "MISSING_CHAR", `Missing , or : between ${v} items`));
10461
- const ne = G ? u(r, G, U, d) : U.found ? a(r, U.end, M, null, U, d) : null;
10462
- ne ? m(G) && d(ne.range, "BLOCK_IN_FLOW", o) : U.comment && (j.comment ? j.comment += `
10465
+ const ie = G ? u(r, G, U, d) : U.found ? a(r, U.end, M, null, U, d) : null;
10466
+ ie ? m(G) && d(ie.range, "BLOCK_IN_FLOW", o) : U.comment && (j.comment ? j.comment += `
10463
10467
  ` + U.comment : j.comment = U.comment);
10464
- const ve = new t.Pair(j, ne);
10468
+ const ve = new t.Pair(j, ie);
10465
10469
  if (r.options.keepSourceTokens && (ve.srcToken = B), y) {
10466
10470
  const le = b;
10467
10471
  h.mapIncludes(r, le.items, j) && d(Y, "DUPLICATE_KEY", "Map keys must be unique"), le.items.push(ve);
10468
10472
  } else {
10469
10473
  const le = new i.YAMLMap(r.schema);
10470
10474
  le.flow = !0, le.items.push(ve);
10471
- const ce = (ne ?? j).range;
10475
+ const ce = (ie ?? j).range;
10472
10476
  le.range = [j.range[0], ce[1], ce[2]], b.items.push(le);
10473
10477
  }
10474
- L = ne ? ne.range[2] : U.end;
10478
+ L = ie ? ie.range[2] : U.end;
10475
10479
  }
10476
10480
  }
10477
10481
  const O = y ? "}" : "]", [$, ..._] = f.end;
@@ -10479,8 +10483,8 @@ function Uu() {
10479
10483
  if ($?.source === O)
10480
10484
  P = $.offset + $.source.length;
10481
10485
  else {
10482
- const I = v[0].toUpperCase() + v.substring(1), B = S ? `${I} must end with a ${O}` : `${I} in block collection must be sufficiently indented and end with a ${O}`;
10483
- d(L, S ? "MISSING_CHAR" : "BAD_INDENT", B), $ && $.source.length !== 1 && _.unshift($);
10486
+ const I = v[0].toUpperCase() + v.substring(1), B = w ? `${I} must end with a ${O}` : `${I} in block collection must be sufficiently indented and end with a ${O}`;
10487
+ d(L, w ? "MISSING_CHAR" : "BAD_INDENT", B), $ && $.source.length !== 1 && _.unshift($);
10484
10488
  }
10485
10489
  if (_.length > 0) {
10486
10490
  const I = p.resolveEnd(_, P, r.options.strict, d);
@@ -10493,32 +10497,32 @@ function Uu() {
10493
10497
  return rn.resolveFlowCollection = n, rn;
10494
10498
  }
10495
10499
  var Kr;
10496
- function Hu() {
10500
+ function Vu() {
10497
10501
  if (Kr) return Xi;
10498
10502
  Kr = 1;
10499
- var e = H(), t = ee(), i = _e(), l = Ne(), p = qu(), s = ju(), c = Uu();
10503
+ var e = H(), t = ee(), i = _e(), l = Ne(), p = ju(), s = Uu(), c = Hu();
10500
10504
  function h(m, n, u, a, r, f) {
10501
10505
  const d = u.type === "block-map" ? p.resolveBlockMap(m, n, u, a, f) : u.type === "block-seq" ? s.resolveBlockSeq(m, n, u, a, f) : c.resolveFlowCollection(m, n, u, a, f), g = d.constructor;
10502
10506
  return r === "!" || r === g.tagName ? (d.tag = g.tagName, d) : (r && (d.tag = r), d);
10503
10507
  }
10504
10508
  function o(m, n, u, a, r) {
10505
- const f = a.tag, d = f ? n.directives.tagName(f.source, (S) => r(f, "TAG_RESOLVE_FAILED", S)) : null;
10509
+ const f = a.tag, d = f ? n.directives.tagName(f.source, (w) => r(f, "TAG_RESOLVE_FAILED", w)) : null;
10506
10510
  if (u.type === "block-seq") {
10507
- const { anchor: S, newlineAfterProp: L } = a, O = S && f ? S.offset > f.offset ? S : f : S ?? f;
10511
+ const { anchor: w, newlineAfterProp: L } = a, O = w && f ? w.offset > f.offset ? w : f : w ?? f;
10508
10512
  O && (!L || L.offset < O.offset) && r(O, "MISSING_CHAR", "Missing newline after block sequence props");
10509
10513
  }
10510
10514
  const g = u.type === "block-map" ? "map" : u.type === "block-seq" ? "seq" : u.start.source === "{" ? "map" : "seq";
10511
10515
  if (!f || !d || d === "!" || d === i.YAMLMap.tagName && g === "map" || d === l.YAMLSeq.tagName && g === "seq")
10512
10516
  return h(m, n, u, r, d);
10513
- let y = n.schema.tags.find((S) => S.tag === d && S.collection === g);
10517
+ let y = n.schema.tags.find((w) => w.tag === d && w.collection === g);
10514
10518
  if (!y) {
10515
- const S = n.schema.knownTags[d];
10516
- if (S?.collection === g)
10517
- n.schema.tags.push(Object.assign({}, S, { default: !1 })), y = S;
10519
+ const w = n.schema.knownTags[d];
10520
+ if (w?.collection === g)
10521
+ n.schema.tags.push(Object.assign({}, w, { default: !1 })), y = w;
10518
10522
  else
10519
- return S ? r(f, "BAD_COLLECTION_TYPE", `${S.tag} used for ${g} collection, but expects ${S.collection ?? "scalar"}`, !0) : r(f, "TAG_RESOLVE_FAILED", `Unresolved tag: ${d}`, !0), h(m, n, u, r, d);
10523
+ return w ? r(f, "BAD_COLLECTION_TYPE", `${w.tag} used for ${g} collection, but expects ${w.collection ?? "scalar"}`, !0) : r(f, "TAG_RESOLVE_FAILED", `Unresolved tag: ${d}`, !0), h(m, n, u, r, d);
10520
10524
  }
10521
- const v = h(m, n, u, r, d, y), w = y.resolve?.(v, (S) => r(f, "TAG_RESOLVE_FAILED", S), n.options) ?? v, b = e.isNode(w) ? w : new t.Scalar(w);
10525
+ const v = h(m, n, u, r, d, y), S = y.resolve?.(v, (w) => r(f, "TAG_RESOLVE_FAILED", w), n.options) ?? v, b = e.isNode(S) ? S : new t.Scalar(S);
10522
10526
  return b.range = v.range, b.tag = d, y?.format && (b.format = y.format), b;
10523
10527
  }
10524
10528
  return Xi.composeCollection = o, Xi;
@@ -10534,62 +10538,62 @@ function aa() {
10534
10538
  return { value: "", type: null, comment: "", range: [h, h, h] };
10535
10539
  const m = o.mode === ">" ? e.Scalar.BLOCK_FOLDED : e.Scalar.BLOCK_LITERAL, n = s.source ? l(s.source) : [];
10536
10540
  let u = n.length;
10537
- for (let w = n.length - 1; w >= 0; --w) {
10538
- const b = n[w][1];
10541
+ for (let S = n.length - 1; S >= 0; --S) {
10542
+ const b = n[S][1];
10539
10543
  if (b === "" || b === "\r")
10540
- u = w;
10544
+ u = S;
10541
10545
  else
10542
10546
  break;
10543
10547
  }
10544
10548
  if (u === 0) {
10545
- const w = o.chomp === "+" && n.length > 0 ? `
10549
+ const S = o.chomp === "+" && n.length > 0 ? `
10546
10550
  `.repeat(Math.max(1, n.length - 1)) : "";
10547
10551
  let b = h + o.length;
10548
- return s.source && (b += s.source.length), { value: w, type: m, comment: o.comment, range: [h, b, b] };
10552
+ return s.source && (b += s.source.length), { value: S, type: m, comment: o.comment, range: [h, b, b] };
10549
10553
  }
10550
10554
  let a = s.indent + o.indent, r = s.offset + o.length, f = 0;
10551
- for (let w = 0; w < u; ++w) {
10552
- const [b, S] = n[w];
10553
- if (S === "" || S === "\r")
10555
+ for (let S = 0; S < u; ++S) {
10556
+ const [b, w] = n[S];
10557
+ if (w === "" || w === "\r")
10554
10558
  o.indent === 0 && b.length > a && (a = b.length);
10555
10559
  else {
10556
- b.length < a && c(r + b.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), o.indent === 0 && (a = b.length), f = w, a === 0 && !p.atRoot && c(r, "BAD_INDENT", "Block scalar values in collections must be indented");
10560
+ b.length < a && c(r + b.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), o.indent === 0 && (a = b.length), f = S, a === 0 && !p.atRoot && c(r, "BAD_INDENT", "Block scalar values in collections must be indented");
10557
10561
  break;
10558
10562
  }
10559
- r += b.length + S.length + 1;
10563
+ r += b.length + w.length + 1;
10560
10564
  }
10561
- for (let w = n.length - 1; w >= u; --w)
10562
- n[w][0].length > a && (u = w + 1);
10565
+ for (let S = n.length - 1; S >= u; --S)
10566
+ n[S][0].length > a && (u = S + 1);
10563
10567
  let d = "", g = "", y = !1;
10564
- for (let w = 0; w < f; ++w)
10565
- d += n[w][0].slice(a) + `
10568
+ for (let S = 0; S < f; ++S)
10569
+ d += n[S][0].slice(a) + `
10566
10570
  `;
10567
- for (let w = f; w < u; ++w) {
10568
- let [b, S] = n[w];
10569
- r += b.length + S.length + 1;
10570
- const L = S[S.length - 1] === "\r";
10571
- if (L && (S = S.slice(0, -1)), S && b.length < a) {
10571
+ for (let S = f; S < u; ++S) {
10572
+ let [b, w] = n[S];
10573
+ r += b.length + w.length + 1;
10574
+ const L = w[w.length - 1] === "\r";
10575
+ if (L && (w = w.slice(0, -1)), w && b.length < a) {
10572
10576
  const $ = `Block scalar lines must not be less indented than their ${o.indent ? "explicit indentation indicator" : "first line"}`;
10573
- c(r - S.length - (L ? 2 : 1), "BAD_INDENT", $), b = "";
10577
+ c(r - w.length - (L ? 2 : 1), "BAD_INDENT", $), b = "";
10574
10578
  }
10575
- m === e.Scalar.BLOCK_LITERAL ? (d += g + b.slice(a) + S, g = `
10576
- `) : b.length > a || S[0] === " " ? (g === " " ? g = `
10579
+ m === e.Scalar.BLOCK_LITERAL ? (d += g + b.slice(a) + w, g = `
10580
+ `) : b.length > a || w[0] === " " ? (g === " " ? g = `
10577
10581
  ` : !y && g === `
10578
10582
  ` && (g = `
10579
10583
 
10580
- `), d += g + b.slice(a) + S, g = `
10581
- `, y = !0) : S === "" ? g === `
10584
+ `), d += g + b.slice(a) + w, g = `
10585
+ `, y = !0) : w === "" ? g === `
10582
10586
  ` ? d += `
10583
10587
  ` : g = `
10584
- ` : (d += g + S, g = " ", y = !1);
10588
+ ` : (d += g + w, g = " ", y = !1);
10585
10589
  }
10586
10590
  switch (o.chomp) {
10587
10591
  case "-":
10588
10592
  break;
10589
10593
  case "+":
10590
- for (let w = u; w < n.length; ++w)
10594
+ for (let S = u; S < n.length; ++S)
10591
10595
  d += `
10592
- ` + n[w][0].slice(a);
10596
+ ` + n[S][0].slice(a);
10593
10597
  d[d.length - 1] !== `
10594
10598
  ` && (d += `
10595
10599
  `);
@@ -10636,8 +10640,8 @@ function aa() {
10636
10640
  default: {
10637
10641
  const v = `Unexpected token in block scalar header: ${y.type}`;
10638
10642
  h(y, "UNEXPECTED_TOKEN", v);
10639
- const w = y.source;
10640
- w && typeof w == "string" && (d += w.length);
10643
+ const S = y.source;
10644
+ S && typeof S == "string" && (d += S.length);
10641
10645
  }
10642
10646
  }
10643
10647
  }
@@ -10659,16 +10663,16 @@ function la() {
10659
10663
  function i(n, u, a) {
10660
10664
  const { offset: r, type: f, source: d, end: g } = n;
10661
10665
  let y, v;
10662
- const w = (L, O, $) => a(r + L, O, $);
10666
+ const S = (L, O, $) => a(r + L, O, $);
10663
10667
  switch (f) {
10664
10668
  case "scalar":
10665
- y = e.Scalar.PLAIN, v = l(d, w);
10669
+ y = e.Scalar.PLAIN, v = l(d, S);
10666
10670
  break;
10667
10671
  case "single-quoted-scalar":
10668
- y = e.Scalar.QUOTE_SINGLE, v = p(d, w);
10672
+ y = e.Scalar.QUOTE_SINGLE, v = p(d, S);
10669
10673
  break;
10670
10674
  case "double-quoted-scalar":
10671
- y = e.Scalar.QUOTE_DOUBLE, v = c(d, w);
10675
+ y = e.Scalar.QUOTE_DOUBLE, v = c(d, S);
10672
10676
  break;
10673
10677
  /* istanbul ignore next should not happen */
10674
10678
  default:
@@ -10679,12 +10683,12 @@ function la() {
10679
10683
  range: [r, r + d.length, r + d.length]
10680
10684
  };
10681
10685
  }
10682
- const b = r + d.length, S = t.resolveEnd(g, b, u, a);
10686
+ const b = r + d.length, w = t.resolveEnd(g, b, u, a);
10683
10687
  return {
10684
10688
  value: v,
10685
10689
  type: y,
10686
- comment: S.comment,
10687
- range: [r, b, S.offset]
10690
+ comment: w.comment,
10691
+ range: [r, b, w.offset]
10688
10692
  };
10689
10693
  }
10690
10694
  function l(n, u) {
@@ -10835,7 +10839,7 @@ function la() {
10835
10839
  return cn.resolveFlowScalar = i, cn;
10836
10840
  }
10837
10841
  var Xr;
10838
- function Vu() {
10842
+ function Wu() {
10839
10843
  if (Xr) return an;
10840
10844
  Xr = 1;
10841
10845
  var e = H(), t = ee(), i = aa(), l = la();
@@ -10845,11 +10849,11 @@ function Vu() {
10845
10849
  h.options.stringKeys && h.atKey ? g = h.schema[e.SCALAR] : d ? g = s(h.schema, u, d, m, n) : o.type === "scalar" ? g = c(h, u, o, n) : g = h.schema[e.SCALAR];
10846
10850
  let y;
10847
10851
  try {
10848
- const v = g.resolve(u, (w) => n(m ?? o, "TAG_RESOLVE_FAILED", w), h.options);
10852
+ const v = g.resolve(u, (S) => n(m ?? o, "TAG_RESOLVE_FAILED", S), h.options);
10849
10853
  y = e.isScalar(v) ? v : new t.Scalar(v);
10850
10854
  } catch (v) {
10851
- const w = v instanceof Error ? v.message : String(v);
10852
- n(m ?? o, "TAG_RESOLVE_FAILED", w), y = new t.Scalar(u);
10855
+ const S = v instanceof Error ? v.message : String(v);
10856
+ n(m ?? o, "TAG_RESOLVE_FAILED", S), y = new t.Scalar(u);
10853
10857
  }
10854
10858
  return y.range = f, y.source = u, a && (y.type = a), d && (y.tag = d), g.format && (y.format = g.format), r && (y.comment = r), y;
10855
10859
  }
@@ -10883,7 +10887,7 @@ function Vu() {
10883
10887
  return an.composeScalar = p, an;
10884
10888
  }
10885
10889
  var un = {}, Qr;
10886
- function Wu() {
10890
+ function Yu() {
10887
10891
  if (Qr) return un;
10888
10892
  Qr = 1;
10889
10893
  function e(t, i, l) {
@@ -10908,49 +10912,49 @@ function Wu() {
10908
10912
  return un.emptyScalarPosition = e, un;
10909
10913
  }
10910
10914
  var Zr;
10911
- function Yu() {
10915
+ function Ku() {
10912
10916
  if (Zr) return Lt;
10913
10917
  Zr = 1;
10914
- var e = Dt(), t = H(), i = Hu(), l = Vu(), p = it(), s = Wu();
10918
+ var e = Dt(), t = H(), i = Vu(), l = Wu(), p = it(), s = Yu();
10915
10919
  const c = { composeNode: h, composeEmptyNode: o };
10916
10920
  function h(n, u, a, r) {
10917
10921
  const f = n.atKey, { spaceBefore: d, comment: g, anchor: y, tag: v } = a;
10918
- let w, b = !0;
10922
+ let S, b = !0;
10919
10923
  switch (u.type) {
10920
10924
  case "alias":
10921
- w = m(n, u, r), (y || v) && r(u, "ALIAS_PROPS", "An alias node must not specify any properties");
10925
+ S = m(n, u, r), (y || v) && r(u, "ALIAS_PROPS", "An alias node must not specify any properties");
10922
10926
  break;
10923
10927
  case "scalar":
10924
10928
  case "single-quoted-scalar":
10925
10929
  case "double-quoted-scalar":
10926
10930
  case "block-scalar":
10927
- w = l.composeScalar(n, u, v, r), y && (w.anchor = y.source.substring(1));
10931
+ S = l.composeScalar(n, u, v, r), y && (S.anchor = y.source.substring(1));
10928
10932
  break;
10929
10933
  case "block-map":
10930
10934
  case "block-seq":
10931
10935
  case "flow-collection":
10932
10936
  try {
10933
- w = i.composeCollection(c, n, u, a, r), y && (w.anchor = y.source.substring(1));
10934
- } catch (S) {
10935
- const L = S instanceof Error ? S.message : String(S);
10937
+ S = i.composeCollection(c, n, u, a, r), y && (S.anchor = y.source.substring(1));
10938
+ } catch (w) {
10939
+ const L = w instanceof Error ? w.message : String(w);
10936
10940
  r(u, "RESOURCE_EXHAUSTION", L);
10937
10941
  }
10938
10942
  break;
10939
10943
  default: {
10940
- const S = u.type === "error" ? u.message : `Unsupported token (type: ${u.type})`;
10941
- r(u, "UNEXPECTED_TOKEN", S), b = !1;
10944
+ const w = u.type === "error" ? u.message : `Unsupported token (type: ${u.type})`;
10945
+ r(u, "UNEXPECTED_TOKEN", w), b = !1;
10942
10946
  }
10943
10947
  }
10944
- return w ?? (w = o(n, u.offset, void 0, null, a, r)), y && w.anchor === "" && r(y, "BAD_ALIAS", "Anchor cannot be an empty string"), f && n.options.stringKeys && (!t.isScalar(w) || typeof w.value != "string" || w.tag && w.tag !== "tag:yaml.org,2002:str") && r(v ?? u, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), d && (w.spaceBefore = !0), g && (u.type === "scalar" && u.source === "" ? w.comment = g : w.commentBefore = g), n.options.keepSourceTokens && b && (w.srcToken = u), w;
10948
+ return S ?? (S = o(n, u.offset, void 0, null, a, r)), y && S.anchor === "" && r(y, "BAD_ALIAS", "Anchor cannot be an empty string"), f && n.options.stringKeys && (!t.isScalar(S) || typeof S.value != "string" || S.tag && S.tag !== "tag:yaml.org,2002:str") && r(v ?? u, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), d && (S.spaceBefore = !0), g && (u.type === "scalar" && u.source === "" ? S.comment = g : S.commentBefore = g), n.options.keepSourceTokens && b && (S.srcToken = u), S;
10945
10949
  }
10946
- function o(n, u, a, r, { spaceBefore: f, comment: d, anchor: g, tag: y, end: v }, w) {
10950
+ function o(n, u, a, r, { spaceBefore: f, comment: d, anchor: g, tag: y, end: v }, S) {
10947
10951
  const b = {
10948
10952
  type: "scalar",
10949
10953
  offset: s.emptyScalarPosition(u, a, r),
10950
10954
  indent: -1,
10951
10955
  source: ""
10952
- }, S = l.composeScalar(n, b, y, w);
10953
- return g && (S.anchor = g.source.substring(1), S.anchor === "" && w(g, "BAD_ALIAS", "Anchor cannot be an empty string")), f && (S.spaceBefore = !0), d && (S.comment = d, S.range[2] = v), S;
10956
+ }, w = l.composeScalar(n, b, y, S);
10957
+ return g && (w.anchor = g.source.substring(1), w.anchor === "" && S(g, "BAD_ALIAS", "Anchor cannot be an empty string")), f && (w.spaceBefore = !0), d && (w.comment = d, w.range[2] = v), w;
10954
10958
  }
10955
10959
  function m({ options: n }, { offset: u, source: a, end: r }, f) {
10956
10960
  const d = new e.Alias(a.substring(1));
@@ -10961,10 +10965,10 @@ function Yu() {
10961
10965
  return Lt.composeEmptyNode = o, Lt.composeNode = h, Lt;
10962
10966
  }
10963
10967
  var eo;
10964
- function Ku() {
10968
+ function Ju() {
10965
10969
  if (eo) return zi;
10966
10970
  eo = 1;
10967
- var e = Ut(), t = Yu(), i = it(), l = Vt();
10971
+ var e = Ut(), t = Ku(), i = it(), l = Vt();
10968
10972
  function p(s, c, { offset: h, start: o, value: m, end: n }, u) {
10969
10973
  const a = Object.assign({ _directives: c }, s), r = new e.Document(void 0, a), f = {
10970
10974
  atKey: !1,
@@ -10990,7 +10994,7 @@ var to;
10990
10994
  function ca() {
10991
10995
  if (to) return Li;
10992
10996
  to = 1;
10993
- var e = Ee, t = Uo(), i = Ut(), l = Ht(), p = H(), s = Ku(), c = it();
10997
+ var e = Ee, t = Uo(), i = Ut(), l = Ht(), p = H(), s = Ju(), c = it();
10994
10998
  function h(n) {
10995
10999
  if (typeof n == "number")
10996
11000
  return [n, n + 1];
@@ -11143,9 +11147,9 @@ ${a.comment}` : a.comment;
11143
11147
  }
11144
11148
  return Li.Composer = m, Li;
11145
11149
  }
11146
- var re = {}, Ye = {}, io;
11147
- function Ju() {
11148
- if (io) return Ye;
11150
+ var re = {}, Ke = {}, io;
11151
+ function zu() {
11152
+ if (io) return Ke;
11149
11153
  io = 1;
11150
11154
  var e = aa(), t = la(), i = Ht(), l = Gt();
11151
11155
  function p(n, u = !0, a) {
@@ -11181,13 +11185,13 @@ function Ju() {
11181
11185
  switch (y[0]) {
11182
11186
  case "|":
11183
11187
  case ">": {
11184
- const w = y.indexOf(`
11185
- `), b = y.substring(0, w), S = y.substring(w + 1) + `
11188
+ const S = y.indexOf(`
11189
+ `), b = y.substring(0, S), w = y.substring(S + 1) + `
11186
11190
  `, L = [
11187
11191
  { type: "block-scalar-header", offset: d, indent: r, source: b }
11188
11192
  ];
11189
11193
  return o(L, v) || L.push({ type: "newline", offset: -1, indent: r, source: `
11190
- ` }), { type: "block-scalar", offset: d, indent: r, props: L, source: S };
11194
+ ` }), { type: "block-scalar", offset: d, indent: r, props: L, source: w };
11191
11195
  }
11192
11196
  case '"':
11193
11197
  return { type: "double-quoted-scalar", offset: d, indent: r, source: y, end: v };
@@ -11208,10 +11212,10 @@ function Ju() {
11208
11212
  g = "QUOTE_DOUBLE";
11209
11213
  break;
11210
11214
  case "block-scalar": {
11211
- const w = n.props[0];
11212
- if (w.type !== "block-scalar-header")
11215
+ const S = n.props[0];
11216
+ if (S.type !== "block-scalar-header")
11213
11217
  throw new Error("Invalid block scalar header");
11214
- g = w.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
11218
+ g = S.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
11215
11219
  break;
11216
11220
  }
11217
11221
  default:
@@ -11302,10 +11306,10 @@ function Ju() {
11302
11306
  }
11303
11307
  }
11304
11308
  }
11305
- return Ye.createScalarToken = s, Ye.resolveAsScalar = p, Ye.setScalarValue = c, Ye;
11309
+ return Ke.createScalarToken = s, Ke.resolveAsScalar = p, Ke.setScalarValue = c, Ke;
11306
11310
  }
11307
11311
  var fn = {}, no;
11308
- function zu() {
11312
+ function Xu() {
11309
11313
  if (no) return fn;
11310
11314
  no = 1;
11311
11315
  const e = (l) => "type" in l ? t(l) : i(l);
@@ -11360,7 +11364,7 @@ function zu() {
11360
11364
  return fn.stringify = e, fn;
11361
11365
  }
11362
11366
  var hn = {}, so;
11363
- function Xu() {
11367
+ function Qu() {
11364
11368
  if (so) return hn;
11365
11369
  so = 1;
11366
11370
  const e = /* @__PURE__ */ Symbol("break visit"), t = /* @__PURE__ */ Symbol("skip children"), i = /* @__PURE__ */ Symbol("remove item");
@@ -11411,7 +11415,7 @@ var ro;
11411
11415
  function Kn() {
11412
11416
  if (ro) return re;
11413
11417
  ro = 1;
11414
- var e = Ju(), t = zu(), i = Xu();
11418
+ var e = zu(), t = Xu(), i = Qu();
11415
11419
  const l = "\uFEFF", p = "", s = "", c = "", h = (u) => !!u && "items" in u, o = (u) => !!u && (u.type === "scalar" || u.type === "single-quoted-scalar" || u.type === "double-quoted-scalar" || u.type === "block-scalar");
11416
11420
  function m(u) {
11417
11421
  switch (u) {
@@ -12319,15 +12323,15 @@ function ha() {
12319
12323
  if (d && r.sep && !r.value) {
12320
12324
  const y = [];
12321
12325
  for (let v = 0; v < r.sep.length; ++v) {
12322
- const w = r.sep[v];
12323
- switch (w.type) {
12326
+ const S = r.sep[v];
12327
+ switch (S.type) {
12324
12328
  case "newline":
12325
12329
  y.push(v);
12326
12330
  break;
12327
12331
  case "space":
12328
12332
  break;
12329
12333
  case "comment":
12330
- w.indent > a.indent && (y.length = 0);
12334
+ S.indent > a.indent && (y.length = 0);
12331
12335
  break;
12332
12336
  default:
12333
12337
  y.length = 0;
@@ -12361,12 +12365,12 @@ function ha() {
12361
12365
  items: [{ start: g, key: null, sep: [this.sourceToken] }]
12362
12366
  });
12363
12367
  else if (s(r.key) && !l(r.sep, "newline")) {
12364
- const y = h(r.start), v = r.key, w = r.sep;
12365
- w.push(this.sourceToken), delete r.key, delete r.sep, this.stack.push({
12368
+ const y = h(r.start), v = r.key, S = r.sep;
12369
+ S.push(this.sourceToken), delete r.key, delete r.sep, this.stack.push({
12366
12370
  type: "block-map",
12367
12371
  offset: this.offset,
12368
12372
  indent: this.indent,
12369
- items: [{ start: y, key: v, sep: w }]
12373
+ items: [{ start: y, key: v, sep: S }]
12370
12374
  });
12371
12375
  } else g.length > 0 ? r.sep = r.sep.concat(g, this.sourceToken) : r.sep.push(this.sourceToken);
12372
12376
  else if (l(r.start, "newline"))
@@ -12619,7 +12623,7 @@ function ha() {
12619
12623
  return mn.Parser = n, mn;
12620
12624
  }
12621
12625
  var xe = {}, co;
12622
- function Qu() {
12626
+ function Zu() {
12623
12627
  if (co) return xe;
12624
12628
  co = 1;
12625
12629
  var e = ca(), t = Ut(), i = Ht(), l = Vo(), p = H(), s = fa(), c = ha();
@@ -12630,18 +12634,18 @@ function Qu() {
12630
12634
  function o(a, r = {}) {
12631
12635
  const { lineCounter: f, prettyErrors: d } = h(r), g = new c.Parser(f?.addNewLine), y = new e.Composer(r), v = Array.from(y.compose(g.parse(a)));
12632
12636
  if (d && f)
12633
- for (const w of v)
12634
- w.errors.forEach(i.prettifyError(a, f)), w.warnings.forEach(i.prettifyError(a, f));
12637
+ for (const S of v)
12638
+ S.errors.forEach(i.prettifyError(a, f)), S.warnings.forEach(i.prettifyError(a, f));
12635
12639
  return v.length > 0 ? v : Object.assign([], { empty: !0 }, y.streamInfo());
12636
12640
  }
12637
12641
  function m(a, r = {}) {
12638
12642
  const { lineCounter: f, prettyErrors: d } = h(r), g = new c.Parser(f?.addNewLine), y = new e.Composer(r);
12639
12643
  let v = null;
12640
- for (const w of y.compose(g.parse(a), !0, a.length))
12644
+ for (const S of y.compose(g.parse(a), !0, a.length))
12641
12645
  if (!v)
12642
- v = w;
12646
+ v = S;
12643
12647
  else if (v.options.logLevel !== "silent") {
12644
- v.errors.push(new i.YAMLParseError(w.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
12648
+ v.errors.push(new i.YAMLParseError(S.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
12645
12649
  break;
12646
12650
  }
12647
12651
  return d && f && (v.errors.forEach(i.prettifyError(a, f)), v.warnings.forEach(i.prettifyError(a, f))), v;
@@ -12675,13 +12679,13 @@ function Qu() {
12675
12679
  return xe.parse = n, xe.parseAllDocuments = o, xe.parseDocument = m, xe.stringify = u, xe;
12676
12680
  }
12677
12681
  var uo;
12678
- function Zu() {
12682
+ function ef() {
12679
12683
  if (uo) return W;
12680
12684
  uo = 1;
12681
- var e = ca(), t = Ut(), i = na(), l = Ht(), p = Dt(), s = H(), c = $e(), h = ee(), o = _e(), m = Ne(), n = Kn(), u = ua(), a = fa(), r = ha(), f = Qu(), d = Mt();
12685
+ var e = ca(), t = Ut(), i = na(), l = Ht(), p = Dt(), s = H(), c = $e(), h = ee(), o = _e(), m = Ne(), n = Kn(), u = ua(), a = fa(), r = ha(), f = Zu(), d = Mt();
12682
12686
  return W.Composer = e.Composer, W.Document = t.Document, W.Schema = i.Schema, W.YAMLError = l.YAMLError, W.YAMLParseError = l.YAMLParseError, W.YAMLWarning = l.YAMLWarning, W.Alias = p.Alias, W.isAlias = s.isAlias, W.isCollection = s.isCollection, W.isDocument = s.isDocument, W.isMap = s.isMap, W.isNode = s.isNode, W.isPair = s.isPair, W.isScalar = s.isScalar, W.isSeq = s.isSeq, W.Pair = c.Pair, W.Scalar = h.Scalar, W.YAMLMap = o.YAMLMap, W.YAMLSeq = m.YAMLSeq, W.CST = n, W.Lexer = u.Lexer, W.LineCounter = a.LineCounter, W.Parser = r.Parser, W.parse = f.parse, W.parseAllDocuments = f.parseAllDocuments, W.parseDocument = f.parseDocument, W.stringify = f.stringify, W.visit = d.visit, W.visitAsync = d.visitAsync, W;
12683
12687
  }
12684
- var ef = Zu();
12688
+ var pa = ef();
12685
12689
  const Q = {
12686
12690
  missingGit: "Git is required to fetch templates, but it is not installed or not available on PATH. Please install Git and try again.",
12687
12691
  missingTemplate: [
@@ -12743,7 +12747,7 @@ function Jn(e) {
12743
12747
  async doCleanup(i) {
12744
12748
  if (Bn(oe("bgRed", fo(i))), this.shouldCleanup && this.name)
12745
12749
  try {
12746
- await cf(this.name);
12750
+ await uf(this.name);
12747
12751
  } catch (l) {
12748
12752
  console.error(oe("bgRed", fo(l)));
12749
12753
  }
@@ -12752,54 +12756,59 @@ function Jn(e) {
12752
12756
  }
12753
12757
  };
12754
12758
  }
12755
- const me = $a(La.exec), Wt = (e) => typeof e == "object" && e !== null && "code" in e;
12756
- async function pa() {
12759
+ const ue = _a(Oa.exec), Wt = (e) => typeof e == "object" && e !== null && "code" in e;
12760
+ async function da() {
12757
12761
  try {
12758
- await me("git --version");
12762
+ await ue("git --version");
12759
12763
  } catch {
12760
12764
  throw new Error(Q.missingGit);
12761
12765
  }
12762
12766
  }
12763
12767
  async function nf(e, t, i, l = $n) {
12764
- await pa();
12768
+ await da();
12765
12769
  const p = Ee.cwd();
12766
12770
  try {
12767
- await ie.mkdir(e);
12771
+ await se.mkdir(e);
12768
12772
  } catch (s) {
12769
12773
  throw Wt(s) && s.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
12770
12774
  }
12771
12775
  try {
12772
- Ee.chdir(e), await me("git init"), await me(`git remote add origin ${t}`), await me("git config core.sparseCheckout true"), await me(`git sparse-checkout set --no-cone ${i}/*`), await me(`git pull origin ${l}`);
12776
+ Ee.chdir(e), await ue("git init"), await ue(`git remote add origin ${t}`), await ue("git config core.sparseCheckout true"), await ue(`git sparse-checkout set --no-cone ${i}/*`), await ue(`git pull origin ${l}`);
12773
12777
  try {
12774
- if (!(await ie.stat(i)).isDirectory())
12778
+ if (!(await se.stat(i)).isDirectory())
12775
12779
  throw new Error();
12776
12780
  } catch {
12777
12781
  throw new Error(Q.missingTemplate);
12778
12782
  }
12779
- await da(i, "."), await ie.rm(".git", { recursive: !0, force: !0 });
12783
+ await ma(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
12780
12784
  } finally {
12781
12785
  Ee.chdir(p);
12782
12786
  }
12783
12787
  }
12784
12788
  async function sf(e, t, i, l = $n) {
12785
- await pa();
12789
+ await da();
12786
12790
  const p = Ee.cwd();
12787
- let s = {};
12791
+ let s = { catalog: {}, version: "" };
12788
12792
  try {
12789
- await ie.mkdir(e);
12793
+ await se.mkdir(e);
12790
12794
  } catch (c) {
12791
12795
  throw Wt(c) && c.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
12792
12796
  }
12793
12797
  try {
12794
- Ee.chdir(e), await me("git init"), await me(`git remote add origin ${t}`), await me("git config core.sparseCheckout true"), await me(`git sparse-checkout set --no-cone ${i}/* pnpm-workspace.yaml`), await me(`git pull origin ${l}`);
12798
+ Ee.chdir(e), await ue("git init"), await ue(`git remote add origin ${t}`), await ue("git config core.sparseCheckout true"), await ue(`git sparse-checkout set --no-cone ${i}/*`), await ue(`git pull origin ${l}`);
12795
12799
  try {
12796
- if (!(await ie.stat(i)).isDirectory())
12800
+ if (!(await se.stat(i)).isDirectory())
12797
12801
  throw new Error();
12798
12802
  } catch {
12799
12803
  throw new Error(Q.missingTemplate);
12800
12804
  }
12801
- const c = await ie.readFile("pnpm-workspace.yaml", "utf-8");
12802
- s = ef.parse(c).catalog ?? {}, await da(i, "."), await ie.rm(".git", { recursive: !0, force: !0 }), await ie.rm("pnpm-workspace.yaml", { force: !0 });
12805
+ const [{ stdout: c }, { stdout: h }] = await Promise.all([
12806
+ ue("git show FETCH_HEAD:pnpm-workspace.yaml"),
12807
+ ue("git show FETCH_HEAD:package.json")
12808
+ ]), o = pa.parse(c), m = JSON.parse(h);
12809
+ if (!m.version)
12810
+ throw new Error("Root package.json does not have a version defined");
12811
+ s = { catalog: o.catalog ?? {}, version: m.version }, await ma(i, "."), await se.rm(".git", { recursive: !0, force: !0 });
12803
12812
  } finally {
12804
12813
  Ee.chdir(p);
12805
12814
  }
@@ -12815,38 +12824,45 @@ function rf(e, t) {
12815
12824
  }
12816
12825
  });
12817
12826
  }
12818
- async function da(e, t) {
12827
+ async function ma(e, t) {
12819
12828
  if (!(e === "." || e === "" || ["./", "/"].includes(e.split("/")[0]))) {
12820
- if (Ke.isAbsolute(e))
12829
+ if (Re.isAbsolute(e))
12821
12830
  throw new Error(Q.generic);
12822
12831
  try {
12823
- const i = await ie.readdir(e);
12832
+ const i = await se.readdir(e);
12824
12833
  await Promise.all(
12825
12834
  i.map(async (p) => {
12826
- const s = Ke.join(e, p), c = Ke.join(t, p);
12827
- await ie.rename(s, c);
12835
+ const s = Re.join(e, p), c = Re.join(t, p);
12836
+ await se.rename(s, c);
12828
12837
  })
12829
12838
  );
12830
12839
  const l = e.split("/")[0];
12831
- await ie.rm(l, { recursive: !0, force: !0 });
12840
+ await se.rm(l, { recursive: !0, force: !0 });
12832
12841
  } catch (i) {
12833
12842
  throw Wt(i) && i.code === "ENOENT" ? new Error(Q.missingTemplate) : i;
12834
12843
  }
12835
12844
  }
12836
12845
  }
12837
- async function ma(e) {
12838
- const t = await ie.readFile(Ke.join(e, "package.json"), "utf-8"), i = JSON.parse(t), l = i._id, p = i.readme;
12839
- return Pu(i, (c) => {
12846
+ async function ga(e) {
12847
+ const t = await se.readFile(Re.join(e, "package.json"), "utf-8"), i = JSON.parse(t), l = i._id, p = i.readme;
12848
+ return Iu(i, (c) => {
12840
12849
  console.error(c);
12841
12850
  }), l || delete i._id, p || delete i.readme, i;
12842
12851
  }
12843
12852
  async function of(e, t) {
12844
- await ie.writeFile(Ke.join(e, "package.json"), JSON.stringify(t, null, 2));
12853
+ await se.writeFile(Re.join(e, "package.json"), JSON.stringify(t, null, 2));
12845
12854
  }
12846
- function af(e) {
12855
+ async function af(e, t) {
12856
+ const i = {
12857
+ ...t ? { overrides: t } : {},
12858
+ minimumReleaseAgeExclude: ["@arcgis/*", "@esri/*"]
12859
+ };
12860
+ await se.writeFile(Re.join(e, "pnpm-workspace.yaml"), pa.stringify(i));
12861
+ }
12862
+ function lf(e) {
12847
12863
  return e.scripts?.start ? "start" : "dev";
12848
12864
  }
12849
- const lf = (e) => {
12865
+ const cf = (e) => {
12850
12866
  const t = {};
12851
12867
  return Object.keys(e).forEach((i) => {
12852
12868
  const l = i;
@@ -12865,7 +12881,7 @@ const lf = (e) => {
12865
12881
  const p = e.template;
12866
12882
  if (!p)
12867
12883
  return;
12868
- const s = df(p);
12884
+ const s = mf(p);
12869
12885
  if (!s || !_n[s])
12870
12886
  throw new Error(`Invalid template: ${p}`);
12871
12887
  t.template = s;
@@ -12884,35 +12900,35 @@ const lf = (e) => {
12884
12900
  }
12885
12901
  }), t;
12886
12902
  };
12887
- async function cf(e) {
12903
+ async function uf(e) {
12888
12904
  try {
12889
- await ie.stat(e) && await ie.rm(e, { recursive: !0 });
12905
+ await se.stat(e) && await se.rm(e, { recursive: !0 });
12890
12906
  } catch (t) {
12891
12907
  if (Wt(t) && t.code === "ENOENT")
12892
12908
  return;
12893
12909
  throw t;
12894
12910
  }
12895
12911
  }
12896
- async function uf(e, t) {
12912
+ async function ff(e, t) {
12897
12913
  const i = _n[e];
12898
12914
  let l = vo;
12899
12915
  t.host && (l = t.host);
12900
12916
  const p = `git@${l}:${i}.git`;
12901
12917
  try {
12902
- await me(`git ls-remote ${p}`);
12918
+ await ue(`git ls-remote ${p} HEAD`);
12903
12919
  } catch (s) {
12904
12920
  return console.error(s), !1;
12905
12921
  }
12906
12922
  return !0;
12907
12923
  }
12908
- function ga(e, t) {
12924
+ function ya(e, t) {
12909
12925
  const i = _n[e];
12910
12926
  let l = vo;
12911
12927
  t.host && (l = t.host);
12912
12928
  const p = t.ssh ? "git@" : "https://", s = t.accessToken ? `${t.accessToken}@` : "", c = t.ssh ? ":" : "/";
12913
12929
  return `${p}${s}${l}${c}${i}`;
12914
12930
  }
12915
- function ff(e, t) {
12931
+ function hf(e, t) {
12916
12932
  ["dependencies", "devDependencies", "peerDependencies"].forEach((l) => {
12917
12933
  if (t[l]) {
12918
12934
  const p = t[l];
@@ -12922,7 +12938,7 @@ function ff(e, t) {
12922
12938
  }
12923
12939
  });
12924
12940
  }
12925
- function hf(e, t) {
12941
+ function pf(e, t) {
12926
12942
  const i = bo[e];
12927
12943
  if (t === On)
12928
12944
  throw new Error(Q.templateNotAvailable(t, e));
@@ -12934,7 +12950,7 @@ function hf(e, t) {
12934
12950
  function zn(e) {
12935
12951
  return e.trim().toLowerCase();
12936
12952
  }
12937
- function ya(e, t, i) {
12953
+ function ba(e, t, i) {
12938
12954
  if (!t)
12939
12955
  return;
12940
12956
  const l = e.get(t);
@@ -12944,18 +12960,18 @@ function ya(e, t, i) {
12944
12960
  }
12945
12961
  l !== i && e.set(t, null);
12946
12962
  }
12947
- const Xn = /* @__PURE__ */ new Map(), pf = Ce.map(([e]) => e);
12948
- for (const e of pf)
12949
- ya(Xn, zn(e), e);
12963
+ const Xn = /* @__PURE__ */ new Map(), df = Ce.map(([e]) => e);
12964
+ for (const e of df)
12965
+ ba(Xn, zn(e), e);
12950
12966
  for (const [e, t] of Ce)
12951
- t.customName && ya(Xn, zn(t.customName), e);
12952
- function df(e) {
12967
+ t.customName && ba(Xn, zn(t.customName), e);
12968
+ function mf(e) {
12953
12969
  const t = zn(e), i = Xn.get(t);
12954
12970
  if (i && i !== null)
12955
12971
  return i;
12956
12972
  }
12957
- async function ba(e, t, i) {
12958
- const { startMsg: l, successMsg: p, failureMsg: s } = e, c = Vl();
12973
+ async function va(e, t, i) {
12974
+ const { startMsg: l, successMsg: p, failureMsg: s } = e, c = Wl();
12959
12975
  c.start(l);
12960
12976
  try {
12961
12977
  await t(), c.stop(p);
@@ -12963,14 +12979,14 @@ async function ba(e, t, i) {
12963
12979
  c.stop(oe("bgRed", s)), i(h, c);
12964
12980
  }
12965
12981
  }
12966
- async function mf(e) {
12982
+ async function gf(e) {
12967
12983
  const t = Jn(e);
12968
12984
  try {
12969
12985
  Ro();
12970
- const i = await ql(
12986
+ const i = await jl(
12971
12987
  {
12972
12988
  projectName: e.name ? async () => await Promise.resolve(e.name) : Mo,
12973
- projectTemplate: e.template ? async () => await Promise.resolve(e.template) : $c
12989
+ projectTemplate: e.template ? async () => await Promise.resolve(e.template) : _c
12974
12990
  },
12975
12991
  {
12976
12992
  // On Cancel callback that wraps the group
@@ -12982,15 +12998,15 @@ async function mf(e) {
12982
12998
  );
12983
12999
  if (t.name = i.projectName, process.env.NODE_ENV !== "test") {
12984
13000
  try {
12985
- throw await ie.stat(i.projectName), new Error(Q.folderAlreadyExists(i.projectName));
13001
+ throw await se.stat(i.projectName), new Error(Q.folderAlreadyExists(i.projectName));
12986
13002
  } catch (h) {
12987
13003
  if (!(h && typeof h == "object" && "code" in h && h.code === "ENOENT"))
12988
13004
  throw h;
12989
13005
  }
12990
13006
  t.shouldCleanup = !0;
12991
13007
  }
12992
- const l = hf(Tt.webGisSdk, i.projectTemplate), p = ga(i.projectTemplate, e);
12993
- if (await ba(
13008
+ const l = pf(Tt.webGisSdk, i.projectTemplate), p = ya(i.projectTemplate, e);
13009
+ if (await va(
12994
13010
  {
12995
13011
  startMsg: "Downloading project template...",
12996
13012
  successMsg: "Project template downloaded successfully",
@@ -13002,7 +13018,7 @@ async function mf(e) {
13002
13018
  (h) => {
13003
13019
  throw h;
13004
13020
  }
13005
- ), i.projectTemplate === Ga) {
13021
+ ), i.projectTemplate === qa) {
13006
13022
  An(), console.log(
13007
13023
  oe(
13008
13024
  "magenta",
@@ -13013,7 +13029,7 @@ async function mf(e) {
13013
13029
  Happy mapping!`));
13014
13030
  return;
13015
13031
  }
13016
- const s = await ma(i.projectName), c = af(s);
13032
+ const s = await ga(i.projectName), c = lf(s);
13017
13033
  An(), console.log(oe("magenta", `To get started, run the following commands:
13018
13034
  `)), console.log(oe("grey", `$ cd ${i.projectName}`)), console.log(oe("grey", "$ npm install")), console.log(oe("grey", `$ npm run ${c}`)), console.log(Cn(`
13019
13035
 
@@ -13022,7 +13038,7 @@ Happy mapping!`));
13022
13038
  await t.doCleanup(i);
13023
13039
  }
13024
13040
  }
13025
- async function gf(e) {
13041
+ async function yf(e) {
13026
13042
  const { template: t, branch: i = $n } = e, l = Jn(e);
13027
13043
  try {
13028
13044
  if (!t || t !== On)
@@ -13033,19 +13049,19 @@ async function gf(e) {
13033
13049
  const p = e.name ?? await Mo();
13034
13050
  if (Ao(p) && (To("Operation cancelled."), process.exit(0)), l.name = p, process.env.NODE_ENV !== "test") {
13035
13051
  try {
13036
- throw await ie.stat(p), new Error(Q.folderAlreadyExists(p));
13037
- } catch (b) {
13038
- if (!(b && typeof b == "object" && "code" in b && b.code === "ENOENT"))
13039
- throw b;
13052
+ throw await se.stat(p), new Error(Q.folderAlreadyExists(p));
13053
+ } catch (w) {
13054
+ if (!(w && typeof w == "object" && "code" in w && w.code === "ENOENT"))
13055
+ throw w;
13040
13056
  }
13041
13057
  l.shouldCleanup = !0;
13042
13058
  }
13043
- const s = Ha[t], c = await uf(t, e);
13059
+ const s = Va[t], c = await ff(t, e);
13044
13060
  let h = "";
13045
- c || (h = await Nc(e.host));
13046
- const o = ga(t, { ...e, ssh: c, accessToken: h });
13047
- let m = {};
13048
- await ba(
13061
+ c || (h = await Pc(e.host));
13062
+ const o = ya(t, { ...e, ssh: c, accessToken: h });
13063
+ let m = {}, n = "";
13064
+ await va(
13049
13065
  {
13050
13066
  startMsg: "Downloading project template...",
13051
13067
  successMsg: "Project template downloaded successfully",
@@ -13053,62 +13069,66 @@ async function gf(e) {
13053
13069
  },
13054
13070
  async () => {
13055
13071
  try {
13056
- m = await sf(p, o, s, i);
13057
- } catch (b) {
13058
- throw b;
13072
+ ({ catalog: m, version: n } = await sf(
13073
+ p,
13074
+ o,
13075
+ s,
13076
+ i
13077
+ ));
13078
+ } catch (w) {
13079
+ throw w;
13059
13080
  }
13060
13081
  },
13061
- (b) => {
13062
- throw b;
13082
+ (w) => {
13083
+ throw w;
13063
13084
  }
13064
13085
  );
13065
13086
  const {
13066
- name: n,
13067
- version: u,
13068
- "acme:scripts": a,
13069
- ...r
13070
- } = await ma(p), f = u.split(".").slice(0, 2), d = i.includes("release"), g = d ? `~${f.join(".")}.0` : `>=${f.join(".")}.0-next <${f[0]}.${Number.parseInt(f[1]) + 1}.0`, y = r.files, v = d ? void 0 : {
13071
- "@esri/calcite-components>@arcgis/lumina": g,
13072
- "@esri/calcite-components>@arcgis/toolkit": g
13073
- }, w = {
13087
+ name: u,
13088
+ version: a,
13089
+ "acme:scripts": r,
13090
+ ...f
13091
+ } = await ga(p), d = n.split(".").slice(0, 2), g = i.includes("release"), y = g ? `~${d.join(".")}.0` : `>=${d.join(".")}.0-next <${d[0]}.${Number.parseInt(d[1]) + 1}.0`, v = f.files, S = g ? void 0 : {
13092
+ "@esri/calcite-components>@arcgis/lumina": y,
13093
+ "@esri/calcite-components>@arcgis/toolkit": y
13094
+ }, b = {
13074
13095
  name: p,
13075
13096
  version: "0.0.1",
13076
13097
  description: "A new Lumina components project",
13077
- scripts: a ?? {},
13078
- ...r,
13079
- ...v ? { pnpm: { overrides: v } } : {},
13080
- ...y ? { files: y } : {}
13098
+ scripts: r ?? {},
13099
+ ...f,
13100
+ ...v ? { files: v } : {}
13081
13101
  };
13082
- rf(m, w), ff(g, w), await of(p, w), An(), _c(), console.log(oe("magenta", `To get started, run the following commands:
13102
+ rf(m, b), hf(y, b), await of(p, b), await af(p, S), An(), Nc(), console.log(oe("magenta", `To get started, run the following commands:
13083
13103
  `)), console.log(oe("grey", `$ cd ${p}`)), console.log(oe("grey", "$ pnpm install")), console.log(oe("grey", "$ pnpm start"));
13084
13104
  } catch (p) {
13085
13105
  await l.doCleanup(p);
13086
13106
  }
13087
13107
  }
13088
- const va = (e) => {
13108
+ const wa = (e) => {
13089
13109
  const t = new It();
13090
13110
  return e?.exitOverride && t.exitOverride(), e?.suppressOutput && t.configureOutput({
13091
13111
  writeOut: () => "",
13092
13112
  writeErr: () => ""
13093
- }), t.version(Fa.version), t.option("-n, --name <name>", "Name of the project").option("-d, --domain <domain>", "Domain of the sample to create").option("-t, --template <template>", "Template to use").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), t.command("init").description("Initialize a new ArcGIS project").action(async () => {
13113
+ }), t.version(Ba.version), t.option("-n, --name <name>", "Name of the project").option("-d, --domain <domain>", "Domain of the sample to create").option("-t, --template <template>", "Template to use").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), t.command("init").description("Initialize a new ArcGIS project").action(async () => {
13094
13114
  let i;
13095
13115
  try {
13096
- i = lf(t.opts());
13116
+ i = cf(t.opts());
13097
13117
  } catch (l) {
13098
13118
  await Jn({}).doCleanup(l);
13099
13119
  return;
13100
13120
  }
13101
- if (i.template && Va[i.template] === kt.codeSample) {
13102
- await gf(i);
13121
+ if (i.template && Wa[i.template] === kt.codeSample) {
13122
+ await yf(i);
13103
13123
  return;
13104
13124
  }
13105
- await mf(i);
13125
+ await gf(i);
13106
13126
  }), t;
13107
13127
  };
13108
- let yf = {
13109
- makeProgram: va
13128
+ let bf = {
13129
+ makeProgram: wa
13110
13130
  };
13111
- process.env.NODE_ENV !== "test" && (yf = void 0, va().parse());
13131
+ process.env.NODE_ENV !== "test" && (bf = void 0, wa().parse());
13112
13132
  export {
13113
- yf as exportsForTests
13133
+ bf as exportsForTests
13114
13134
  };