@batijs/cli 0.0.422 → 0.0.424

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 (88) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +4 -4
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +3 -3
  9. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  10. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
  11. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +3 -3
  12. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  13. package/dist/boilerplates/@batijs/d1/files/$README.md.js +3 -3
  14. package/dist/boilerplates/@batijs/d1/files/$package.json.js +3 -3
  15. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
  16. package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
  17. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
  18. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  19. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
  20. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
  21. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
  22. package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
  23. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
  24. package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
  25. package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
  26. package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +3 -3
  27. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  28. package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
  29. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +3 -3
  30. package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
  31. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
  32. package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
  33. package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +3 -3
  34. package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +3 -3
  35. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  36. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +3 -3
  37. package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +3 -3
  38. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  39. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  40. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
  41. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
  42. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  43. package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -3
  44. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  45. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  46. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +3 -3
  47. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  48. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
  49. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +3 -3
  50. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  51. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +7 -7
  52. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  53. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
  54. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  55. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  56. package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
  57. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
  58. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  59. package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -3
  60. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  61. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  62. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +3 -3
  63. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  64. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
  65. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
  66. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
  67. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
  68. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +3 -3
  69. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  70. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
  71. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +1 -1
  72. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
  73. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
  74. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
  75. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
  76. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
  77. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  78. package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -3
  79. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  80. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  81. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +3 -3
  82. package/dist/boilerplates/boilerplates.json +0 -12
  83. package/dist/{chunk-QZ2ZW2DW.js → chunk-HDPT6TDB.js} +29774 -29752
  84. package/dist/index.js +333 -350
  85. package/dist/{prompt-KUNVMQLQ.js → prompt-AQUZNUSD.js} +230 -229
  86. package/package.json +6 -6
  87. package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +0 -35
  88. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +0 -90
package/dist/index.js CHANGED
@@ -3,13 +3,13 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Ait,
7
- B5e,
8
- Qus,
6
+ Dit,
7
+ U5e,
8
+ _Ts,
9
+ aQr,
9
10
  export_which,
10
- iQr,
11
- uTs
12
- } from "./chunk-QZ2ZW2DW.js";
11
+ tps
12
+ } from "./chunk-HDPT6TDB.js";
13
13
  import "./chunk-QY4H25CP.js";
14
14
  import {
15
15
  __commonJS,
@@ -440,21 +440,21 @@ var require_conversions = __commonJS({
440
440
  }
441
441
  convert.rgb.hsl = function(rgb) {
442
442
  const r2 = rgb[0] / 255;
443
- const g = rgb[1] / 255;
444
- const b = rgb[2] / 255;
445
- const min = Math.min(r2, g, b);
446
- const max = Math.max(r2, g, b);
443
+ const g2 = rgb[1] / 255;
444
+ const b2 = rgb[2] / 255;
445
+ const min = Math.min(r2, g2, b2);
446
+ const max = Math.max(r2, g2, b2);
447
447
  const delta = max - min;
448
448
  let h;
449
449
  let s2;
450
450
  if (max === min) {
451
451
  h = 0;
452
452
  } else if (r2 === max) {
453
- h = (g - b) / delta;
454
- } else if (g === max) {
455
- h = 2 + (b - r2) / delta;
456
- } else if (b === max) {
457
- h = 4 + (r2 - g) / delta;
453
+ h = (g2 - b2) / delta;
454
+ } else if (g2 === max) {
455
+ h = 2 + (b2 - r2) / delta;
456
+ } else if (b2 === max) {
457
+ h = 4 + (r2 - g2) / delta;
458
458
  }
459
459
  h = Math.min(h * 60, 360);
460
460
  if (h < 0) {
@@ -477,10 +477,10 @@ var require_conversions = __commonJS({
477
477
  let h;
478
478
  let s2;
479
479
  const r2 = rgb[0] / 255;
480
- const g = rgb[1] / 255;
481
- const b = rgb[2] / 255;
482
- const v = Math.max(r2, g, b);
483
- const diff = v - Math.min(r2, g, b);
480
+ const g2 = rgb[1] / 255;
481
+ const b2 = rgb[2] / 255;
482
+ const v = Math.max(r2, g2, b2);
483
+ const diff = v - Math.min(r2, g2, b2);
484
484
  const diffc = function(c2) {
485
485
  return (v - c2) / 6 / diff + 1 / 2;
486
486
  };
@@ -490,13 +490,13 @@ var require_conversions = __commonJS({
490
490
  } else {
491
491
  s2 = diff / v;
492
492
  rdif = diffc(r2);
493
- gdif = diffc(g);
494
- bdif = diffc(b);
493
+ gdif = diffc(g2);
494
+ bdif = diffc(b2);
495
495
  if (r2 === v) {
496
496
  h = bdif - gdif;
497
- } else if (g === v) {
497
+ } else if (g2 === v) {
498
498
  h = 1 / 3 + rdif - bdif;
499
- } else if (b === v) {
499
+ } else if (b2 === v) {
500
500
  h = 2 / 3 + gdif - rdif;
501
501
  }
502
502
  if (h < 0) {
@@ -513,21 +513,21 @@ var require_conversions = __commonJS({
513
513
  };
514
514
  convert.rgb.hwb = function(rgb) {
515
515
  const r2 = rgb[0];
516
- const g = rgb[1];
517
- let b = rgb[2];
516
+ const g2 = rgb[1];
517
+ let b2 = rgb[2];
518
518
  const h = convert.rgb.hsl(rgb)[0];
519
- const w = 1 / 255 * Math.min(r2, Math.min(g, b));
520
- b = 1 - 1 / 255 * Math.max(r2, Math.max(g, b));
521
- return [h, w * 100, b * 100];
519
+ const w = 1 / 255 * Math.min(r2, Math.min(g2, b2));
520
+ b2 = 1 - 1 / 255 * Math.max(r2, Math.max(g2, b2));
521
+ return [h, w * 100, b2 * 100];
522
522
  };
523
523
  convert.rgb.cmyk = function(rgb) {
524
524
  const r2 = rgb[0] / 255;
525
- const g = rgb[1] / 255;
526
- const b = rgb[2] / 255;
527
- const k = Math.min(1 - r2, 1 - g, 1 - b);
525
+ const g2 = rgb[1] / 255;
526
+ const b2 = rgb[2] / 255;
527
+ const k = Math.min(1 - r2, 1 - g2, 1 - b2);
528
528
  const c2 = (1 - r2 - k) / (1 - k) || 0;
529
- const m = (1 - g - k) / (1 - k) || 0;
530
- const y2 = (1 - b - k) / (1 - k) || 0;
529
+ const m = (1 - g2 - k) / (1 - k) || 0;
530
+ const y2 = (1 - b2 - k) / (1 - k) || 0;
531
531
  return [c2 * 100, m * 100, y2 * 100, k * 100];
532
532
  };
533
533
  function comparativeDistance(x, y2) {
@@ -555,14 +555,14 @@ var require_conversions = __commonJS({
555
555
  };
556
556
  convert.rgb.xyz = function(rgb) {
557
557
  let r2 = rgb[0] / 255;
558
- let g = rgb[1] / 255;
559
- let b = rgb[2] / 255;
558
+ let g2 = rgb[1] / 255;
559
+ let b2 = rgb[2] / 255;
560
560
  r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
561
- g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
562
- b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
563
- const x = r2 * 0.4124 + g * 0.3576 + b * 0.1805;
564
- const y2 = r2 * 0.2126 + g * 0.7152 + b * 0.0722;
565
- const z = r2 * 0.0193 + g * 0.1192 + b * 0.9505;
561
+ g2 = g2 > 0.04045 ? ((g2 + 0.055) / 1.055) ** 2.4 : g2 / 12.92;
562
+ b2 = b2 > 0.04045 ? ((b2 + 0.055) / 1.055) ** 2.4 : b2 / 12.92;
563
+ const x = r2 * 0.4124 + g2 * 0.3576 + b2 * 0.1805;
564
+ const y2 = r2 * 0.2126 + g2 * 0.7152 + b2 * 0.0722;
565
+ const z = r2 * 0.0193 + g2 * 0.1192 + b2 * 0.9505;
566
566
  return [x * 100, y2 * 100, z * 100];
567
567
  };
568
568
  convert.rgb.lab = function(rgb) {
@@ -578,8 +578,8 @@ var require_conversions = __commonJS({
578
578
  z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
579
579
  const l2 = 116 * y2 - 16;
580
580
  const a2 = 500 * (x - y2);
581
- const b = 200 * (y2 - z);
582
- return [l2, a2, b];
581
+ const b2 = 200 * (y2 - z);
582
+ return [l2, a2, b2];
583
583
  };
584
584
  convert.hsl.rgb = function(hsl) {
585
585
  const h = hsl[0] / 360;
@@ -638,24 +638,24 @@ var require_conversions = __commonJS({
638
638
  const s2 = hsv[1] / 100;
639
639
  let v = hsv[2] / 100;
640
640
  const hi = Math.floor(h) % 6;
641
- const f = h - Math.floor(h);
642
- const p2 = 255 * v * (1 - s2);
643
- const q = 255 * v * (1 - s2 * f);
644
- const t2 = 255 * v * (1 - s2 * (1 - f));
641
+ const f2 = h - Math.floor(h);
642
+ const p = 255 * v * (1 - s2);
643
+ const q = 255 * v * (1 - s2 * f2);
644
+ const t2 = 255 * v * (1 - s2 * (1 - f2));
645
645
  v *= 255;
646
646
  switch (hi) {
647
647
  case 0:
648
- return [v, t2, p2];
648
+ return [v, t2, p];
649
649
  case 1:
650
- return [q, v, p2];
650
+ return [q, v, p];
651
651
  case 2:
652
- return [p2, v, t2];
652
+ return [p, v, t2];
653
653
  case 3:
654
- return [p2, q, v];
654
+ return [p, q, v];
655
655
  case 4:
656
- return [t2, p2, v];
656
+ return [t2, p, v];
657
657
  case 5:
658
- return [v, p2, q];
658
+ return [v, p, q];
659
659
  }
660
660
  };
661
661
  convert.hsv.hsl = function(hsv) {
@@ -678,56 +678,56 @@ var require_conversions = __commonJS({
678
678
  let wh = hwb[1] / 100;
679
679
  let bl = hwb[2] / 100;
680
680
  const ratio = wh + bl;
681
- let f;
681
+ let f2;
682
682
  if (ratio > 1) {
683
683
  wh /= ratio;
684
684
  bl /= ratio;
685
685
  }
686
686
  const i2 = Math.floor(6 * h);
687
687
  const v = 1 - bl;
688
- f = 6 * h - i2;
688
+ f2 = 6 * h - i2;
689
689
  if ((i2 & 1) !== 0) {
690
- f = 1 - f;
690
+ f2 = 1 - f2;
691
691
  }
692
- const n2 = wh + f * (v - wh);
692
+ const n2 = wh + f2 * (v - wh);
693
693
  let r2;
694
- let g;
695
- let b;
694
+ let g2;
695
+ let b2;
696
696
  switch (i2) {
697
697
  default:
698
698
  case 6:
699
699
  case 0:
700
700
  r2 = v;
701
- g = n2;
702
- b = wh;
701
+ g2 = n2;
702
+ b2 = wh;
703
703
  break;
704
704
  case 1:
705
705
  r2 = n2;
706
- g = v;
707
- b = wh;
706
+ g2 = v;
707
+ b2 = wh;
708
708
  break;
709
709
  case 2:
710
710
  r2 = wh;
711
- g = v;
712
- b = n2;
711
+ g2 = v;
712
+ b2 = n2;
713
713
  break;
714
714
  case 3:
715
715
  r2 = wh;
716
- g = n2;
717
- b = v;
716
+ g2 = n2;
717
+ b2 = v;
718
718
  break;
719
719
  case 4:
720
720
  r2 = n2;
721
- g = wh;
722
- b = v;
721
+ g2 = wh;
722
+ b2 = v;
723
723
  break;
724
724
  case 5:
725
725
  r2 = v;
726
- g = wh;
727
- b = n2;
726
+ g2 = wh;
727
+ b2 = n2;
728
728
  break;
729
729
  }
730
- return [r2 * 255, g * 255, b * 255];
730
+ return [r2 * 255, g2 * 255, b2 * 255];
731
731
  };
732
732
  convert.cmyk.rgb = function(cmyk) {
733
733
  const c2 = cmyk[0] / 100;
@@ -735,27 +735,27 @@ var require_conversions = __commonJS({
735
735
  const y2 = cmyk[2] / 100;
736
736
  const k = cmyk[3] / 100;
737
737
  const r2 = 1 - Math.min(1, c2 * (1 - k) + k);
738
- const g = 1 - Math.min(1, m * (1 - k) + k);
739
- const b = 1 - Math.min(1, y2 * (1 - k) + k);
740
- return [r2 * 255, g * 255, b * 255];
738
+ const g2 = 1 - Math.min(1, m * (1 - k) + k);
739
+ const b2 = 1 - Math.min(1, y2 * (1 - k) + k);
740
+ return [r2 * 255, g2 * 255, b2 * 255];
741
741
  };
742
742
  convert.xyz.rgb = function(xyz) {
743
743
  const x = xyz[0] / 100;
744
744
  const y2 = xyz[1] / 100;
745
745
  const z = xyz[2] / 100;
746
746
  let r2;
747
- let g;
748
- let b;
747
+ let g2;
748
+ let b2;
749
749
  r2 = x * 3.2406 + y2 * -1.5372 + z * -0.4986;
750
- g = x * -0.9689 + y2 * 1.8758 + z * 0.0415;
751
- b = x * 0.0557 + y2 * -0.204 + z * 1.057;
750
+ g2 = x * -0.9689 + y2 * 1.8758 + z * 0.0415;
751
+ b2 = x * 0.0557 + y2 * -0.204 + z * 1.057;
752
752
  r2 = r2 > 31308e-7 ? 1.055 * r2 ** (1 / 2.4) - 0.055 : r2 * 12.92;
753
- g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
754
- b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
753
+ g2 = g2 > 31308e-7 ? 1.055 * g2 ** (1 / 2.4) - 0.055 : g2 * 12.92;
754
+ b2 = b2 > 31308e-7 ? 1.055 * b2 ** (1 / 2.4) - 0.055 : b2 * 12.92;
755
755
  r2 = Math.min(Math.max(0, r2), 1);
756
- g = Math.min(Math.max(0, g), 1);
757
- b = Math.min(Math.max(0, b), 1);
758
- return [r2 * 255, g * 255, b * 255];
756
+ g2 = Math.min(Math.max(0, g2), 1);
757
+ b2 = Math.min(Math.max(0, b2), 1);
758
+ return [r2 * 255, g2 * 255, b2 * 255];
759
759
  };
760
760
  convert.xyz.lab = function(xyz) {
761
761
  let x = xyz[0];
@@ -769,19 +769,19 @@ var require_conversions = __commonJS({
769
769
  z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
770
770
  const l2 = 116 * y2 - 16;
771
771
  const a2 = 500 * (x - y2);
772
- const b = 200 * (y2 - z);
773
- return [l2, a2, b];
772
+ const b2 = 200 * (y2 - z);
773
+ return [l2, a2, b2];
774
774
  };
775
775
  convert.lab.xyz = function(lab) {
776
776
  const l2 = lab[0];
777
777
  const a2 = lab[1];
778
- const b = lab[2];
778
+ const b2 = lab[2];
779
779
  let x;
780
780
  let y2;
781
781
  let z;
782
782
  y2 = (l2 + 16) / 116;
783
783
  x = a2 / 500 + y2;
784
- z = y2 - b / 200;
784
+ z = y2 - b2 / 200;
785
785
  const y22 = y2 ** 3;
786
786
  const x2 = x ** 3;
787
787
  const z2 = z ** 3;
@@ -796,14 +796,14 @@ var require_conversions = __commonJS({
796
796
  convert.lab.lch = function(lab) {
797
797
  const l2 = lab[0];
798
798
  const a2 = lab[1];
799
- const b = lab[2];
799
+ const b2 = lab[2];
800
800
  let h;
801
- const hr = Math.atan2(b, a2);
801
+ const hr = Math.atan2(b2, a2);
802
802
  h = hr * 360 / 2 / Math.PI;
803
803
  if (h < 0) {
804
804
  h += 360;
805
805
  }
806
- const c2 = Math.sqrt(a2 * a2 + b * b);
806
+ const c2 = Math.sqrt(a2 * a2 + b2 * b2);
807
807
  return [l2, c2, h];
808
808
  };
809
809
  convert.lch.lab = function(lch) {
@@ -812,17 +812,17 @@ var require_conversions = __commonJS({
812
812
  const h = lch[2];
813
813
  const hr = h / 360 * 2 * Math.PI;
814
814
  const a2 = c2 * Math.cos(hr);
815
- const b = c2 * Math.sin(hr);
816
- return [l2, a2, b];
815
+ const b2 = c2 * Math.sin(hr);
816
+ return [l2, a2, b2];
817
817
  };
818
818
  convert.rgb.ansi16 = function(args, saturation = null) {
819
- const [r2, g, b] = args;
819
+ const [r2, g2, b2] = args;
820
820
  let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
821
821
  value = Math.round(value / 50);
822
822
  if (value === 0) {
823
823
  return 30;
824
824
  }
825
- let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r2 / 255));
825
+ let ansi = 30 + (Math.round(b2 / 255) << 2 | Math.round(g2 / 255) << 1 | Math.round(r2 / 255));
826
826
  if (value === 2) {
827
827
  ansi += 60;
828
828
  }
@@ -833,9 +833,9 @@ var require_conversions = __commonJS({
833
833
  };
834
834
  convert.rgb.ansi256 = function(args) {
835
835
  const r2 = args[0];
836
- const g = args[1];
837
- const b = args[2];
838
- if (r2 === g && g === b) {
836
+ const g2 = args[1];
837
+ const b2 = args[2];
838
+ if (r2 === g2 && g2 === b2) {
839
839
  if (r2 < 8) {
840
840
  return 16;
841
841
  }
@@ -844,7 +844,7 @@ var require_conversions = __commonJS({
844
844
  }
845
845
  return Math.round((r2 - 8) / 247 * 24) + 232;
846
846
  }
847
- const ansi = 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
847
+ const ansi = 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(g2 / 255 * 5) + Math.round(b2 / 255 * 5);
848
848
  return ansi;
849
849
  };
850
850
  convert.ansi16.rgb = function(args) {
@@ -858,9 +858,9 @@ var require_conversions = __commonJS({
858
858
  }
859
859
  const mult = (~~(args > 50) + 1) * 0.5;
860
860
  const r2 = (color & 1) * mult * 255;
861
- const g = (color >> 1 & 1) * mult * 255;
862
- const b = (color >> 2 & 1) * mult * 255;
863
- return [r2, g, b];
861
+ const g2 = (color >> 1 & 1) * mult * 255;
862
+ const b2 = (color >> 2 & 1) * mult * 255;
863
+ return [r2, g2, b2];
864
864
  };
865
865
  convert.ansi256.rgb = function(args) {
866
866
  if (args >= 232) {
@@ -870,9 +870,9 @@ var require_conversions = __commonJS({
870
870
  args -= 16;
871
871
  let rem;
872
872
  const r2 = Math.floor(args / 36) / 5 * 255;
873
- const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
874
- const b = rem % 6 / 5 * 255;
875
- return [r2, g, b];
873
+ const g2 = Math.floor((rem = args % 36) / 6) / 5 * 255;
874
+ const b2 = rem % 6 / 5 * 255;
875
+ return [r2, g2, b2];
876
876
  };
877
877
  convert.rgb.hex = function(args) {
878
878
  const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
@@ -892,16 +892,16 @@ var require_conversions = __commonJS({
892
892
  }
893
893
  const integer = parseInt(colorString, 16);
894
894
  const r2 = integer >> 16 & 255;
895
- const g = integer >> 8 & 255;
896
- const b = integer & 255;
897
- return [r2, g, b];
895
+ const g2 = integer >> 8 & 255;
896
+ const b2 = integer & 255;
897
+ return [r2, g2, b2];
898
898
  };
899
899
  convert.rgb.hcg = function(rgb) {
900
900
  const r2 = rgb[0] / 255;
901
- const g = rgb[1] / 255;
902
- const b = rgb[2] / 255;
903
- const max = Math.max(Math.max(r2, g), b);
904
- const min = Math.min(Math.min(r2, g), b);
901
+ const g2 = rgb[1] / 255;
902
+ const b2 = rgb[2] / 255;
903
+ const max = Math.max(Math.max(r2, g2), b2);
904
+ const min = Math.min(Math.min(r2, g2), b2);
905
905
  const chroma = max - min;
906
906
  let grayscale;
907
907
  let hue;
@@ -913,11 +913,11 @@ var require_conversions = __commonJS({
913
913
  if (chroma <= 0) {
914
914
  hue = 0;
915
915
  } else if (max === r2) {
916
- hue = (g - b) / chroma % 6;
917
- } else if (max === g) {
918
- hue = 2 + (b - r2) / chroma;
916
+ hue = (g2 - b2) / chroma % 6;
917
+ } else if (max === g2) {
918
+ hue = 2 + (b2 - r2) / chroma;
919
919
  } else {
920
- hue = 4 + (r2 - g) / chroma;
920
+ hue = 4 + (r2 - g2) / chroma;
921
921
  }
922
922
  hue /= 6;
923
923
  hue %= 1;
@@ -927,28 +927,28 @@ var require_conversions = __commonJS({
927
927
  const s2 = hsl[1] / 100;
928
928
  const l2 = hsl[2] / 100;
929
929
  const c2 = l2 < 0.5 ? 2 * s2 * l2 : 2 * s2 * (1 - l2);
930
- let f = 0;
930
+ let f2 = 0;
931
931
  if (c2 < 1) {
932
- f = (l2 - 0.5 * c2) / (1 - c2);
932
+ f2 = (l2 - 0.5 * c2) / (1 - c2);
933
933
  }
934
- return [hsl[0], c2 * 100, f * 100];
934
+ return [hsl[0], c2 * 100, f2 * 100];
935
935
  };
936
936
  convert.hsv.hcg = function(hsv) {
937
937
  const s2 = hsv[1] / 100;
938
938
  const v = hsv[2] / 100;
939
939
  const c2 = s2 * v;
940
- let f = 0;
940
+ let f2 = 0;
941
941
  if (c2 < 1) {
942
- f = (v - c2) / (1 - c2);
942
+ f2 = (v - c2) / (1 - c2);
943
943
  }
944
- return [hsv[0], c2 * 100, f * 100];
944
+ return [hsv[0], c2 * 100, f2 * 100];
945
945
  };
946
946
  convert.hcg.rgb = function(hcg) {
947
947
  const h = hcg[0] / 360;
948
948
  const c2 = hcg[1] / 100;
949
- const g = hcg[2] / 100;
949
+ const g2 = hcg[2] / 100;
950
950
  if (c2 === 0) {
951
- return [g * 255, g * 255, g * 255];
951
+ return [g2 * 255, g2 * 255, g2 * 255];
952
952
  }
953
953
  const pure = [0, 0, 0];
954
954
  const hi = h % 1 * 6;
@@ -986,7 +986,7 @@ var require_conversions = __commonJS({
986
986
  pure[1] = 0;
987
987
  pure[2] = w;
988
988
  }
989
- mg = (1 - c2) * g;
989
+ mg = (1 - c2) * g2;
990
990
  return [
991
991
  (c2 * pure[0] + mg) * 255,
992
992
  (c2 * pure[1] + mg) * 255,
@@ -995,18 +995,18 @@ var require_conversions = __commonJS({
995
995
  };
996
996
  convert.hcg.hsv = function(hcg) {
997
997
  const c2 = hcg[1] / 100;
998
- const g = hcg[2] / 100;
999
- const v = c2 + g * (1 - c2);
1000
- let f = 0;
998
+ const g2 = hcg[2] / 100;
999
+ const v = c2 + g2 * (1 - c2);
1000
+ let f2 = 0;
1001
1001
  if (v > 0) {
1002
- f = c2 / v;
1002
+ f2 = c2 / v;
1003
1003
  }
1004
- return [hcg[0], f * 100, v * 100];
1004
+ return [hcg[0], f2 * 100, v * 100];
1005
1005
  };
1006
1006
  convert.hcg.hsl = function(hcg) {
1007
1007
  const c2 = hcg[1] / 100;
1008
- const g = hcg[2] / 100;
1009
- const l2 = g * (1 - c2) + 0.5 * c2;
1008
+ const g2 = hcg[2] / 100;
1009
+ const l2 = g2 * (1 - c2) + 0.5 * c2;
1010
1010
  let s2 = 0;
1011
1011
  if (l2 > 0 && l2 < 0.5) {
1012
1012
  s2 = c2 / (2 * l2);
@@ -1017,20 +1017,20 @@ var require_conversions = __commonJS({
1017
1017
  };
1018
1018
  convert.hcg.hwb = function(hcg) {
1019
1019
  const c2 = hcg[1] / 100;
1020
- const g = hcg[2] / 100;
1021
- const v = c2 + g * (1 - c2);
1020
+ const g2 = hcg[2] / 100;
1021
+ const v = c2 + g2 * (1 - c2);
1022
1022
  return [hcg[0], (v - c2) * 100, (1 - v) * 100];
1023
1023
  };
1024
1024
  convert.hwb.hcg = function(hwb) {
1025
1025
  const w = hwb[1] / 100;
1026
- const b = hwb[2] / 100;
1027
- const v = 1 - b;
1026
+ const b2 = hwb[2] / 100;
1027
+ const v = 1 - b2;
1028
1028
  const c2 = v - w;
1029
- let g = 0;
1029
+ let g2 = 0;
1030
1030
  if (c2 < 1) {
1031
- g = (v - c2) / (1 - c2);
1031
+ g2 = (v - c2) / (1 - c2);
1032
1032
  }
1033
- return [hwb[0], c2 * 100, g * 100];
1033
+ return [hwb[0], c2 * 100, g2 * 100];
1034
1034
  };
1035
1035
  convert.apple.rgb = function(apple) {
1036
1036
  return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
@@ -1217,7 +1217,7 @@ var require_ansi_styles = __commonJS({
1217
1217
  return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1218
1218
  };
1219
1219
  var ansi2ansi = (n2) => n2;
1220
- var rgb2rgb = (r2, g, b) => [r2, g, b];
1220
+ var rgb2rgb = (r2, g2, b2) => [r2, g2, b2];
1221
1221
  var setLazyProperty = (object, property, get) => {
1222
1222
  Object.defineProperty(object, property, {
1223
1223
  get: () => {
@@ -1752,14 +1752,14 @@ var require_utf8 = __commonJS({
1752
1752
  hasBOM = true;
1753
1753
  }
1754
1754
  for (var i2 = 0; i2 < det.fRawLength; i2++) {
1755
- var b = input[i2];
1756
- if ((b & 128) == 0)
1755
+ var b2 = input[i2];
1756
+ if ((b2 & 128) == 0)
1757
1757
  continue;
1758
- if ((b & 224) == 192) {
1758
+ if ((b2 & 224) == 192) {
1759
1759
  trailBytes = 1;
1760
- } else if ((b & 240) == 224) {
1760
+ } else if ((b2 & 240) == 224) {
1761
1761
  trailBytes = 2;
1762
- } else if ((b & 248) == 240) {
1762
+ } else if ((b2 & 248) == 240) {
1763
1763
  trailBytes = 3;
1764
1764
  } else {
1765
1765
  numInvalid++;
@@ -2642,8 +2642,8 @@ var require_sbcs = __commonJS({
2642
2642
  this.hitCount += 1;
2643
2643
  }
2644
2644
  };
2645
- this.addByte = function(b) {
2646
- this.ngram = (this.ngram << 8) + (b & 255) & N_GRAM_MASK;
2645
+ this.addByte = function(b2) {
2646
+ this.ngram = (this.ngram << 8) + (b2 & 255) & N_GRAM_MASK;
2647
2647
  this.lookup(this.ngram);
2648
2648
  };
2649
2649
  this.nextByte = function(det) {
@@ -2652,10 +2652,10 @@ var require_sbcs = __commonJS({
2652
2652
  return det.fInputBytes[this.byteIndex++] & 255;
2653
2653
  };
2654
2654
  this.parse = function(det, spaceCh) {
2655
- var b, ignoreSpace = false;
2655
+ var b2, ignoreSpace = false;
2656
2656
  this.spaceChar = spaceCh;
2657
- while ((b = this.nextByte(det)) >= 0) {
2658
- var mb = this.byteMap[b];
2657
+ while ((b2 = this.nextByte(det)) >= 0) {
2658
+ var mb = this.byteMap[b2];
2659
2659
  if (mb != 0) {
2660
2660
  if (!(mb == this.spaceChar && ignoreSpace)) {
2661
2661
  this.addByte(mb);
@@ -7113,8 +7113,8 @@ var require_chardet = __commonJS({
7113
7113
  return rec.match(context);
7114
7114
  }).filter(function(match) {
7115
7115
  return !!match;
7116
- }).sort(function(a2, b) {
7117
- return b.confidence - a2.confidence;
7116
+ }).sort(function(a2, b2) {
7117
+ return b2.confidence - a2.confidence;
7118
7118
  });
7119
7119
  if (opts && opts.returnAllMatches === true) {
7120
7120
  return matches;
@@ -10907,20 +10907,20 @@ var require_CreateFileError = __commonJS({
10907
10907
  "../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/CreateFileError.js"(exports) {
10908
10908
  "use strict";
10909
10909
  var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
10910
- var extendStatics2 = function(d, b) {
10911
- extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
10912
- d2.__proto__ = b2;
10913
- } || function(d2, b2) {
10914
- for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
10910
+ var extendStatics2 = function(d, b2) {
10911
+ extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
10912
+ d2.__proto__ = b3;
10913
+ } || function(d2, b3) {
10914
+ for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
10915
10915
  };
10916
- return extendStatics2(d, b);
10916
+ return extendStatics2(d, b2);
10917
10917
  };
10918
- return function(d, b) {
10919
- extendStatics2(d, b);
10918
+ return function(d, b2) {
10919
+ extendStatics2(d, b2);
10920
10920
  function __() {
10921
10921
  this.constructor = d;
10922
10922
  }
10923
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10923
+ d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
10924
10924
  };
10925
10925
  }();
10926
10926
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -10952,20 +10952,20 @@ var require_LaunchEditorError = __commonJS({
10952
10952
  "../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/LaunchEditorError.js"(exports) {
10953
10953
  "use strict";
10954
10954
  var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
10955
- var extendStatics2 = function(d, b) {
10956
- extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
10957
- d2.__proto__ = b2;
10958
- } || function(d2, b2) {
10959
- for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
10955
+ var extendStatics2 = function(d, b2) {
10956
+ extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
10957
+ d2.__proto__ = b3;
10958
+ } || function(d2, b3) {
10959
+ for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
10960
10960
  };
10961
- return extendStatics2(d, b);
10961
+ return extendStatics2(d, b2);
10962
10962
  };
10963
- return function(d, b) {
10964
- extendStatics2(d, b);
10963
+ return function(d, b2) {
10964
+ extendStatics2(d, b2);
10965
10965
  function __() {
10966
10966
  this.constructor = d;
10967
10967
  }
10968
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10968
+ d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
10969
10969
  };
10970
10970
  }();
10971
10971
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -10997,20 +10997,20 @@ var require_ReadFileError = __commonJS({
10997
10997
  "../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/ReadFileError.js"(exports) {
10998
10998
  "use strict";
10999
10999
  var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
11000
- var extendStatics2 = function(d, b) {
11001
- extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
11002
- d2.__proto__ = b2;
11003
- } || function(d2, b2) {
11004
- for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
11000
+ var extendStatics2 = function(d, b2) {
11001
+ extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
11002
+ d2.__proto__ = b3;
11003
+ } || function(d2, b3) {
11004
+ for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
11005
11005
  };
11006
- return extendStatics2(d, b);
11006
+ return extendStatics2(d, b2);
11007
11007
  };
11008
- return function(d, b) {
11009
- extendStatics2(d, b);
11008
+ return function(d, b2) {
11009
+ extendStatics2(d, b2);
11010
11010
  function __() {
11011
11011
  this.constructor = d;
11012
11012
  }
11013
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11013
+ d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
11014
11014
  };
11015
11015
  }();
11016
11016
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -11042,20 +11042,20 @@ var require_RemoveFileError = __commonJS({
11042
11042
  "../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/RemoveFileError.js"(exports) {
11043
11043
  "use strict";
11044
11044
  var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
11045
- var extendStatics2 = function(d, b) {
11046
- extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
11047
- d2.__proto__ = b2;
11048
- } || function(d2, b2) {
11049
- for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
11045
+ var extendStatics2 = function(d, b2) {
11046
+ extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
11047
+ d2.__proto__ = b3;
11048
+ } || function(d2, b3) {
11049
+ for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
11050
11050
  };
11051
- return extendStatics2(d, b);
11051
+ return extendStatics2(d, b2);
11052
11052
  };
11053
- return function(d, b) {
11054
- extendStatics2(d, b);
11053
+ return function(d, b2) {
11054
+ extendStatics2(d, b2);
11055
11055
  function __() {
11056
11056
  this.constructor = d;
11057
11057
  }
11058
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11058
+ d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
11059
11059
  };
11060
11060
  }();
11061
11061
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -12097,9 +12097,9 @@ var SignalExit = class extends SignalExitBase {
12097
12097
  this.#sigListeners[sig] = () => {
12098
12098
  const listeners = this.#process.listeners(sig);
12099
12099
  let { count } = this.#emitter;
12100
- const p2 = process4;
12101
- if (typeof p2.__signal_exit_emitter__ === "object" && typeof p2.__signal_exit_emitter__.count === "number") {
12102
- count += p2.__signal_exit_emitter__.count;
12100
+ const p = process4;
12101
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
12102
+ count += p.__signal_exit_emitter__.count;
12103
12103
  }
12104
12104
  if (listeners.length === count) {
12105
12105
  this.unload();
@@ -13394,8 +13394,8 @@ async function mergeDts({
13394
13394
  filepath,
13395
13395
  meta
13396
13396
  }) {
13397
- const previousAst = B5e(previousContent);
13398
- const currentAst = B5e(fileContent);
13397
+ const previousAst = U5e(previousContent);
13398
+ const currentAst = U5e(fileContent);
13399
13399
  for (const imp of previousAst.imports.$items) {
13400
13400
  currentAst.imports[imp.local] = imp;
13401
13401
  }
@@ -13412,7 +13412,7 @@ async function mergeDts({
13412
13412
  currentAst.$ast.body.splice(index, 0, node);
13413
13413
  }
13414
13414
  }
13415
- const res = await Qus(currentAst.generate().code, meta, {
13415
+ const res = await tps(currentAst.generate().code, meta, {
13416
13416
  filepath
13417
13417
  });
13418
13418
  return clearExports(res.code, meta);
@@ -13433,7 +13433,7 @@ async function executeOperationFile(op, {
13433
13433
  }) {
13434
13434
  const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
13435
13435
  const filepath = relative(op.source, op.sourceAbsolute);
13436
- const result = await Qus(code, meta, {
13436
+ const result = await tps(code, meta, {
13437
13437
  filepath
13438
13438
  });
13439
13439
  let fileContent = result.code;
@@ -13471,7 +13471,7 @@ async function transformFileAfterExec(filepath, fileContent) {
13471
13471
  case ".js":
13472
13472
  case ".tsx":
13473
13473
  case ".jsx":
13474
- return Ait(fileContent, {
13474
+ return Dit(fileContent, {
13475
13475
  filepath
13476
13476
  });
13477
13477
  case ".env":
@@ -13497,10 +13497,10 @@ async function transformFileAfterExec(filepath, fileContent) {
13497
13497
  }
13498
13498
  throw new Error(`Unsupported file extension ${parsed.base} (${filepath})`);
13499
13499
  }
13500
- async function importTransformer(p2) {
13501
- const importFile = isWin ? "file://" + p2 : p2;
13502
- const f = await import(importFile);
13503
- return f.default;
13500
+ async function importTransformer(p) {
13501
+ const importFile = isWin ? "file://" + p : p;
13502
+ const f2 = await import(importFile);
13503
+ return f2.default;
13504
13504
  }
13505
13505
  async function executeOperationTransform(op, {
13506
13506
  meta,
@@ -13522,9 +13522,9 @@ async function executeOperationTransform(op, {
13522
13522
  };
13523
13523
  }
13524
13524
  function orderBy(array, getter) {
13525
- return array.slice().sort((a2, b) => {
13525
+ return array.slice().sort((a2, b2) => {
13526
13526
  const valueA = getter(a2);
13527
- const valueB = getter(b);
13527
+ const valueB = getter(b2);
13528
13528
  if (valueA < valueB) return -1;
13529
13529
  if (valueA > valueB) return 1;
13530
13530
  return 0;
@@ -13693,21 +13693,21 @@ async function main(options, meta) {
13693
13693
  }
13694
13694
  const rearranger = new OperationsRearranger();
13695
13695
  for (const source of sources) {
13696
- for await (const p2 of walk(source)) {
13697
- const target = toDist(p2, source, options.dist);
13696
+ for await (const p of walk(source)) {
13697
+ const target = toDist(p, source, options.dist);
13698
13698
  const targetAbsolute = path.isAbsolute(target) ? target : path.resolve(target);
13699
- const parsed = path.parse(p2);
13699
+ const parsed = path.parse(p);
13700
13700
  if (parsed.name.match(reIgnoreFile)) {
13701
13701
  continue;
13702
13702
  } else if (parsed.name.startsWith("$") && parsed.ext.match(/\.tsx?$/)) {
13703
13703
  throw new Error(
13704
- `Typescript file needs to be compiled before it can be executed: '${p2}'.
13704
+ `Typescript file needs to be compiled before it can be executed: '${p}'.
13705
13705
  Please report this issue to https://github.com/vikejs/bati`
13706
13706
  );
13707
13707
  } else if ((parsed.name.startsWith("!$") || parsed.name.startsWith("$")) && parsed.ext.match(/\.jsx?$/)) {
13708
13708
  rearranger.addFile({
13709
13709
  source,
13710
- sourceAbsolute: p2,
13710
+ sourceAbsolute: p,
13711
13711
  destination: target,
13712
13712
  destinationAbsolute: targetAbsolute,
13713
13713
  kind: "transform",
@@ -13717,7 +13717,7 @@ Please report this issue to https://github.com/vikejs/bati`
13717
13717
  } else {
13718
13718
  rearranger.addFile({
13719
13719
  source,
13720
- sourceAbsolute: p2,
13720
+ sourceAbsolute: p,
13721
13721
  destination: target,
13722
13722
  destinationAbsolute: targetAbsolute,
13723
13723
  kind: "file",
@@ -13766,7 +13766,7 @@ Please report this issue to https://github.com/vikejs/bati`
13766
13766
  }
13767
13767
  }
13768
13768
 
13769
- // ../features/dist/chunk-3C57PNCJ.js
13769
+ // ../features/dist/chunk-YGDFYUTD.js
13770
13770
  var features = [
13771
13771
  // Vike
13772
13772
  {
@@ -14213,26 +14213,6 @@ var features = [
14213
14213
  }
14214
14214
  ]
14215
14215
  },
14216
- {
14217
- category: "Database",
14218
- label: "EdgeDB",
14219
- flag: "edgedb",
14220
- image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyLjIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTEyIDIzMi43MjciPjxwYXRoIGZpbGw9IiM0RDRENEQiIGQ9Ik00MzMuNjY3IDExNS4yMzhjMCAzNS4zMzMtMTQuMTY3IDQxLjY2Ni0zMC4wMDIgNDEuNjY2SDM3MFY3My41NzFoMzMuNjY2YzE1LjgzNSAwIDMwLjAwMiA2LjMzNCAzMC4wMDIgNDEuNjY3Wm0tMTcuMTY3LjAwNGMwLTI0LjY2Ny03LjUtMjUuODMzLTE4LjMzMy0yNS44MzNoLTEwLjQ5OXY1MS42NjZoMTAuNWMxMC44MzMgMCAxOC4zMzItMS4xNjcgMTguMzMyLTI1LjgzM1ptLTE3OC4zMzYgNDEuNjYyVjczLjU3MWg1My4wMDF2MTUuODM0aC0zNS4zMzR2MTdoMjYuNjY2djE1LjY2NmgtMjYuNjY2djE5aDM1LjMzNHYxNS44MzNoLTUzWk0zMjAgMjMyLjcyN2gxNy40NTVWMEgzMjB2MjMyLjcyN1pNNDY4Ljk5NSAxMTkuOTF2MjEuMTY2aDE0LjY2OGM5LjE2NiAwIDExLjUtNiAxMS41LTEwLjVjMC0zLjUtMS42NjgtMTAuNjY2LTE0LjE2OC0xMC42NjZoLTEyWm0wLTMwLjUwMnYxNS44MzNoMTJjNi44MzMgMCAxMC44MzMtMyAxMC44MzMtOHMtNC03LjgzMy0xMC44MzMtNy44MzNoLTEyWk00NTEuMzM0IDczLjU3aDMzLjk5OGMxNy44MzYgMCAyMy4xNjggMTIuNSAyMy4xNjggMjEuNWMwIDguMzM0LTUuMzMyIDE0LjMzNC05IDE2YzEwLjY2NyA1LjE2NyAxMi41IDE1LjY2NyAxMi41IDIxYzAgNy0zLjUgMjQuODMzLTI2LjY2OCAyNC44MzNoLTMzLjk5OFY3My41NzFabS0zMTQuNjY1IDQxLjY2N2MwIDM1LjMzMy0xNC4xNjcgNDEuNjY2LTMwIDQxLjY2Nkg3My4wMDJWNzMuNTcxaDMzLjY2N2MxNS44MzMgMCAzMCA2LjMzNCAzMCA0MS42NjdabTUxLjk5NyAyNi41MDdjOSAwIDEzLjY2Ni0zIDE1LjMzMy01di05LjE2NmgtMTQuMzM0di0xNC4zMzRoMjguNXYzMy4xNjdjLTIuNSAzLjgzMy0xNi4xNjYgMTEuMzMzLTI4LjY2NiAxMS4zMzNjLTIwLjUgMC0zNy44MzMtOC0zNy44MzMtNDMuMzMzczE3LjUtNDEuNjY2IDMzLjMzMy00MS42NjZjMjQuODMzIDAgMzEgMTMgMzMgMjQuNWwtMTQuNjY3IDMuMzMzYy0uODMzLTUuMzM0LTUuNS0xMi0xNi4xNjYtMTJjLTEwLjgzNCAwLTE4LjMzNCAxLjE2Ni0xOC4zMzQgMjUuODMzYzAgMjQuNjY3IDcuODM0IDI3LjMzMyAxOS44MzQgMjcuMzMzWk0xMTkuNSAxMTUuMjQyYzAtMjQuNjY3LTcuNS0yNS44MzMtMTguMzMzLTI1LjgzM2gtMTAuNXY1MS42NjZoMTAuNWMxMC44MzMgMCAxOC4zMzMtMS4xNjcgMTguMzMzLTI1LjgzM1pNMCAxNTYuOTA0VjczLjU3MWg1M3YxNS44MzRIMTcuNjY3djE3aDI2LjY2NnYxNS42NjZIMTcuNjY3djE5SDUzdjE1LjgzM0gwWiIvPjwvc3ZnPg==",
14221
- url: "https://www.edgedb.com",
14222
- spectrum: "bleeding_edge",
14223
- tagline: "A graph-like schema with a relational core",
14224
- repo: "edgedb/edgedb",
14225
- links: [
14226
- {
14227
- label: "Getting started",
14228
- href: "https://www.edgedb.com/docs/intro/quickstart"
14229
- },
14230
- {
14231
- label: "Docs",
14232
- href: "https://www.edgedb.com/docs"
14233
- }
14234
- ]
14235
- },
14236
14216
  // Analytics
14237
14217
  {
14238
14218
  category: "Analytics",
@@ -14380,8 +14360,8 @@ var features = [
14380
14360
  disabled: true
14381
14361
  }
14382
14362
  ];
14383
- var flags = features.map((f) => f.flag);
14384
- var cliFlags = features.filter((f) => !f.invisibleCli).map((f) => f.flag);
14363
+ var flags = features.map((f2) => f2.flag);
14364
+ var cliFlags = features.filter((f2) => !f2.invisibleCli).map((f2) => f2.flag);
14385
14365
 
14386
14366
  // ../features/dist/index.js
14387
14367
  var BatiSet = class extends Set {
@@ -14390,8 +14370,8 @@ var BatiSet = class extends Set {
14390
14370
  #databases;
14391
14371
  constructor(flags2, allFeatures) {
14392
14372
  super(flags2);
14393
- this.#servers = new Set(allFeatures.filter((f) => f.category === "Server").map((f) => f.flag));
14394
- this.#databases = new Set(allFeatures.filter((f) => f.category === "Database").map((f) => f.flag));
14373
+ this.#servers = new Set(allFeatures.filter((f2) => f2.category === "Server").map((f2) => f2.flag));
14374
+ this.#databases = new Set(allFeatures.filter((f2) => f2.category === "Database").map((f2) => f2.flag));
14395
14375
  }
14396
14376
  hasOneOf(a2) {
14397
14377
  for (const x of this) if (a2.has(x)) return true;
@@ -14436,11 +14416,11 @@ function filter(message, callback) {
14436
14416
  }
14437
14417
  function prepare(fts) {
14438
14418
  const s2 = /* @__PURE__ */ new Set();
14439
- for (const f of fts) {
14440
- if (flags.includes(f)) {
14441
- s2.add(features.find((feat) => feat.flag === f).category);
14419
+ for (const f2 of fts) {
14420
+ if (flags.includes(f2)) {
14421
+ s2.add(features.find((feat) => feat.flag === f2).category);
14442
14422
  }
14443
- s2.add(f);
14423
+ s2.add(f2);
14444
14424
  }
14445
14425
  return s2;
14446
14426
  }
@@ -14512,7 +14492,7 @@ function execRules(fts, rulesMessages2) {
14512
14492
  return messages;
14513
14493
  }
14514
14494
 
14515
- // ../../node_modules/.pnpm/consola@3.4.0/node_modules/consola/dist/core.mjs
14495
+ // ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
14516
14496
  var LogLevels = {
14517
14497
  silent: Number.NEGATIVE_INFINITY,
14518
14498
  fatal: 0,
@@ -14631,7 +14611,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
14631
14611
  function createDefu(merger) {
14632
14612
  return (...arguments_) => (
14633
14613
  // eslint-disable-next-line unicorn/no-array-reduce
14634
- arguments_.reduce((p2, c2) => _defu(p2, c2, "", merger), {})
14614
+ arguments_.reduce((p, c2) => _defu(p, c2, "", merger), {})
14635
14615
  );
14636
14616
  }
14637
14617
  var defu = createDefu();
@@ -15020,12 +15000,12 @@ function createConsola(options = {}) {
15020
15000
  return new Consola(options);
15021
15001
  }
15022
15002
 
15023
- // ../../node_modules/.pnpm/consola@3.4.0/node_modules/consola/dist/shared/consola.Cs5FdtHD.mjs
15003
+ // ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs
15024
15004
  import { formatWithOptions } from "node:util";
15025
15005
  import { sep } from "node:path";
15026
- function parseStack(stack) {
15006
+ function parseStack(stack, message) {
15027
15007
  const cwd = process.cwd() + sep;
15028
- const lines2 = stack.split("\n").splice(1).map((l2) => l2.trim().replace("file://", "").replace(cwd, ""));
15008
+ const lines2 = stack.split("\n").splice(message.split("\n").length).map((l2) => l2.trim().replace("file://", "").replace(cwd, ""));
15029
15009
  return lines2;
15030
15010
  }
15031
15011
  function writeStream(data, stream) {
@@ -15034,14 +15014,14 @@ function writeStream(data, stream) {
15034
15014
  }
15035
15015
  var bracket = (x) => x ? `[${x}]` : "";
15036
15016
  var BasicReporter = class {
15037
- formatStack(stack, opts) {
15017
+ formatStack(stack, message, opts) {
15038
15018
  const indent = " ".repeat((opts?.errorLevel || 0) + 1);
15039
- return indent + parseStack(stack).join(`
15019
+ return indent + parseStack(stack, message).join(`
15040
15020
  ${indent}`);
15041
15021
  }
15042
15022
  formatError(err, opts) {
15043
15023
  const message = err.message ?? formatWithOptions(opts, err);
15044
- const stack = err.stack ? this.formatStack(err.stack, opts) : "";
15024
+ const stack = err.stack ? this.formatStack(err.stack, message, opts) : "";
15045
15025
  const level = opts?.errorLevel || 0;
15046
15026
  const causedPrefix = level > 0 ? `${" ".repeat(level)}[cause]: ` : "";
15047
15027
  const causedError = err.cause ? "\n\n" + this.formatError(err.cause, { ...opts, errorLevel: level + 1 }) : "";
@@ -15089,10 +15069,10 @@ ${indent}`);
15089
15069
  }
15090
15070
  };
15091
15071
 
15092
- // ../../node_modules/.pnpm/consola@3.4.0/node_modules/consola/dist/index.mjs
15093
- import p$1 from "node:process";
15072
+ // ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
15073
+ import g$1 from "node:process";
15094
15074
 
15095
- // ../../node_modules/.pnpm/consola@3.4.0/node_modules/consola/dist/shared/consola.lX6kr4n8.mjs
15075
+ // ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
15096
15076
  import * as tty from "node:tty";
15097
15077
  var {
15098
15078
  env = {},
@@ -15279,7 +15259,10 @@ function box(text, _opts = {}) {
15279
15259
  }
15280
15260
  const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
15281
15261
  const height2 = textLines.length + paddingOffset;
15282
- const width = Math.max(...textLines.map((line) => stripAnsi(line).length)) + paddingOffset;
15262
+ const width = Math.max(
15263
+ ...textLines.map((line) => stripAnsi(line).length),
15264
+ opts.title ? stripAnsi(opts.title).length : 0
15265
+ ) + paddingOffset;
15283
15266
  const widthOffset = width + paddingOffset;
15284
15267
  const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
15285
15268
  if (opts.style.marginTop > 0) {
@@ -15325,70 +15308,70 @@ function box(text, _opts = {}) {
15325
15308
  return boxLines.join("\n");
15326
15309
  }
15327
15310
 
15328
- // ../../node_modules/.pnpm/consola@3.4.0/node_modules/consola/dist/index.mjs
15311
+ // ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
15329
15312
  var r = /* @__PURE__ */ Object.create(null);
15330
15313
  var i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
15331
- var s$1 = new Proxy(r, { get(e, o) {
15332
- return i()[o] ?? r[o];
15333
- }, has(e, o) {
15314
+ var o = new Proxy(r, { get(e, s2) {
15315
+ return i()[s2] ?? r[s2];
15316
+ }, has(e, s2) {
15334
15317
  const E = i();
15335
- return o in E || o in r;
15336
- }, set(e, o, E) {
15337
- const b = i(true);
15338
- return b[o] = E, true;
15339
- }, deleteProperty(e, o) {
15340
- if (!o) return false;
15318
+ return s2 in E || s2 in r;
15319
+ }, set(e, s2, E) {
15320
+ const B = i(true);
15321
+ return B[s2] = E, true;
15322
+ }, deleteProperty(e, s2) {
15323
+ if (!s2) return false;
15341
15324
  const E = i(true);
15342
- return delete E[o], true;
15325
+ return delete E[s2], true;
15343
15326
  }, ownKeys() {
15344
15327
  const e = i(true);
15345
15328
  return Object.keys(e);
15346
15329
  } });
15347
15330
  var t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
15348
- var B = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]];
15349
- function p() {
15350
- if (globalThis.process?.env) for (const e of B) {
15351
- const o = e[1] || e[0];
15352
- if (globalThis.process?.env[o]) return { name: e[0].toLowerCase(), ...e[2] };
15331
+ var f = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]];
15332
+ function b() {
15333
+ if (globalThis.process?.env) for (const e of f) {
15334
+ const s2 = e[1] || e[0];
15335
+ if (globalThis.process?.env[s2]) return { name: e[0].toLowerCase(), ...e[2] };
15353
15336
  }
15354
15337
  return globalThis.process?.env?.SHELL === "/bin/jsh" && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
15355
15338
  }
15356
- var l = p();
15339
+ var l = b();
15357
15340
  l.name;
15358
15341
  function n(e) {
15359
15342
  return e ? e !== "false" : false;
15360
15343
  }
15361
15344
  var I = globalThis.process?.platform || "";
15362
- var T = n(s$1.CI) || l.ci !== false;
15363
- var R = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
15364
- var U = n(s$1.DEBUG);
15365
- var A = t === "test" || n(s$1.TEST);
15366
- n(s$1.MINIMAL) || T || A || !R;
15367
- var _ = /^win/i.test(I);
15368
- !n(s$1.NO_COLOR) && (n(s$1.FORCE_COLOR) || (R || _) && s$1.TERM !== "dumb" || T);
15345
+ var T = n(o.CI) || l.ci !== false;
15346
+ var a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
15347
+ var g = n(o.DEBUG);
15348
+ var R = t === "test" || n(o.TEST);
15349
+ n(o.MINIMAL) || T || R || !a;
15350
+ var A = /^win/i.test(I);
15351
+ !n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM !== "dumb" || T);
15369
15352
  var C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
15370
15353
  Number(C?.split(".")[0]) || null;
15371
15354
  var y = globalThis.process || /* @__PURE__ */ Object.create(null);
15372
- var c = { versions: {} };
15373
- new Proxy(y, { get(e, o) {
15374
- if (o === "env") return s$1;
15375
- if (o in e) return e[o];
15376
- if (o in c) return c[o];
15355
+ var _ = { versions: {} };
15356
+ new Proxy(y, { get(e, s2) {
15357
+ if (s2 === "env") return o;
15358
+ if (s2 in e) return e[s2];
15359
+ if (s2 in _) return _[s2];
15377
15360
  } });
15378
- var L = globalThis.process?.release?.name === "node";
15379
- var a = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
15361
+ var c = globalThis.process?.release?.name === "node";
15362
+ var O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
15380
15363
  var D = !!globalThis.Deno;
15381
- var O = !!globalThis.fastly;
15364
+ var L = !!globalThis.fastly;
15382
15365
  var S = !!globalThis.Netlify;
15383
- var N = !!globalThis.EdgeRuntime;
15384
- var P = globalThis.navigator?.userAgent === "Cloudflare-Workers";
15385
- var F = [[S, "netlify"], [N, "edge-light"], [P, "workerd"], [O, "fastly"], [D, "deno"], [a, "bun"], [L, "node"]];
15366
+ var u = !!globalThis.EdgeRuntime;
15367
+ var N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
15368
+ var F = [[S, "netlify"], [u, "edge-light"], [N, "workerd"], [L, "fastly"], [D, "deno"], [O, "bun"], [c, "node"]];
15386
15369
  function G() {
15387
- const e = F.find((o) => o[0]);
15370
+ const e = F.find((s2) => s2[0]);
15388
15371
  if (e) return { name: e[1] };
15389
15372
  }
15390
- var u = G();
15391
- u?.name || "";
15373
+ var P = G();
15374
+ P?.name || "";
15392
15375
  function ansiRegex2({ onlyFirst = false } = {}) {
15393
15376
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
15394
15377
  const pattern = [
@@ -15475,9 +15458,9 @@ function stringWidth$1(string, options = {}) {
15475
15458
  return width;
15476
15459
  }
15477
15460
  function isUnicodeSupported2() {
15478
- const { env: env3 } = p$1;
15461
+ const { env: env3 } = g$1;
15479
15462
  const { TERM, TERM_PROGRAM } = env3;
15480
- if (p$1.platform !== "win32") {
15463
+ if (g$1.platform !== "win32") {
15481
15464
  return TERM !== "linux";
15482
15465
  }
15483
15466
  return Boolean(env3.WT_SESSION) || Boolean(env3.TERMINUS_SUBLIME) || env3.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env3.TERMINAL_EMULATOR === "JetBrains-JediTerm";
@@ -15516,10 +15499,10 @@ function stringWidth(str) {
15516
15499
  return stringWidth$1(str);
15517
15500
  }
15518
15501
  var FancyReporter = class extends BasicReporter {
15519
- formatStack(stack, opts) {
15502
+ formatStack(stack, message, opts) {
15520
15503
  const indent = " ".repeat((opts?.errorLevel || 0) + 1);
15521
15504
  return `
15522
- ${indent}` + parseStack(stack).map(
15505
+ ${indent}` + parseStack(stack, message).map(
15523
15506
  (line) => " " + line.replace(/^at +/, (m) => colors8.gray(m)).replace(/\((.+)\)/, (_2, m) => `(${colors8.cyan(m)})`)
15524
15507
  ).join(`
15525
15508
  ${indent}`);
@@ -15564,7 +15547,7 @@ ${indent}`);
15564
15547
  );
15565
15548
  if (logObj.type === "trace") {
15566
15549
  const _err = new Error("Trace: " + logObj.message);
15567
- line += this.formatStack(_err.stack || "");
15550
+ line += this.formatStack(_err.stack || "", _err.message);
15568
15551
  }
15569
15552
  return isBadge ? "\n" + line + "\n" : line;
15570
15553
  }
@@ -15588,19 +15571,19 @@ function createConsola2(options = {}) {
15588
15571
  defaults: { level },
15589
15572
  stdout: process.stdout,
15590
15573
  stderr: process.stderr,
15591
- prompt: (...args) => import("./prompt-KUNVMQLQ.js").then((m) => m.prompt(...args)),
15574
+ prompt: (...args) => import("./prompt-AQUZNUSD.js").then((m) => m.prompt(...args)),
15592
15575
  reporters: options.reporters || [
15593
- options.fancy ?? !(T || A) ? new FancyReporter() : new BasicReporter()
15576
+ options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()
15594
15577
  ],
15595
15578
  ...options
15596
15579
  });
15597
15580
  return consola2;
15598
15581
  }
15599
15582
  function _getDefaultLogLevel() {
15600
- if (U) {
15583
+ if (g) {
15601
15584
  return LogLevels.debug;
15602
15585
  }
15603
- if (A) {
15586
+ if (R) {
15604
15587
  return LogLevels.warn;
15605
15588
  }
15606
15589
  return LogLevels.info;
@@ -15692,13 +15675,13 @@ function lowerFirst(str) {
15692
15675
  return str ? str[0].toLowerCase() + str.slice(1) : "";
15693
15676
  }
15694
15677
  function pascalCase(str, opts) {
15695
- return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p2) => upperFirst(opts?.normalize ? p2.toLowerCase() : p2)).join("") : "";
15678
+ return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => upperFirst(opts?.normalize ? p.toLowerCase() : p)).join("") : "";
15696
15679
  }
15697
15680
  function camelCase(str, opts) {
15698
15681
  return lowerFirst(pascalCase(str || "", opts));
15699
15682
  }
15700
15683
  function kebabCase(str, joiner) {
15701
- return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p2) => p2.toLowerCase()).join(joiner ?? "-") : "";
15684
+ return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
15702
15685
  }
15703
15686
  function toArr(any) {
15704
15687
  return any == void 0 ? [] : Array.isArray(any) ? any : [any];
@@ -16174,22 +16157,22 @@ var {
16174
16157
  } = createColors2();
16175
16158
 
16176
16159
  // ../../node_modules/.pnpm/sift@17.1.3/node_modules/sift/es5m/index.js
16177
- var extendStatics = function(d, b) {
16178
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
16179
- d2.__proto__ = b2;
16180
- } || function(d2, b2) {
16181
- for (var p2 in b2) if (Object.prototype.hasOwnProperty.call(b2, p2)) d2[p2] = b2[p2];
16160
+ var extendStatics = function(d, b2) {
16161
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
16162
+ d2.__proto__ = b3;
16163
+ } || function(d2, b3) {
16164
+ for (var p in b3) if (Object.prototype.hasOwnProperty.call(b3, p)) d2[p] = b3[p];
16182
16165
  };
16183
- return extendStatics(d, b);
16166
+ return extendStatics(d, b2);
16184
16167
  };
16185
- function __extends(d, b) {
16186
- if (typeof b !== "function" && b !== null)
16187
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16188
- extendStatics(d, b);
16168
+ function __extends(d, b2) {
16169
+ if (typeof b2 !== "function" && b2 !== null)
16170
+ throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
16171
+ extendStatics(d, b2);
16189
16172
  function __() {
16190
16173
  this.constructor = d;
16191
16174
  }
16192
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16175
+ d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
16193
16176
  }
16194
16177
  var typeChecker = function(type) {
16195
16178
  var typeString = "[object " + type + "]";
@@ -16222,31 +16205,31 @@ var isProperty = function(item, key) {
16222
16205
  var isVanillaObject = function(value) {
16223
16206
  return value && (value.constructor === Object || value.constructor === Array || value.constructor.toString() === "function Object() { [native code] }" || value.constructor.toString() === "function Array() { [native code] }") && !value.toJSON;
16224
16207
  };
16225
- var equals = function(a2, b) {
16226
- if (a2 == null && a2 == b) {
16208
+ var equals = function(a2, b2) {
16209
+ if (a2 == null && a2 == b2) {
16227
16210
  return true;
16228
16211
  }
16229
- if (a2 === b) {
16212
+ if (a2 === b2) {
16230
16213
  return true;
16231
16214
  }
16232
- if (Object.prototype.toString.call(a2) !== Object.prototype.toString.call(b)) {
16215
+ if (Object.prototype.toString.call(a2) !== Object.prototype.toString.call(b2)) {
16233
16216
  return false;
16234
16217
  }
16235
16218
  if (isArray(a2)) {
16236
- if (a2.length !== b.length) {
16219
+ if (a2.length !== b2.length) {
16237
16220
  return false;
16238
16221
  }
16239
16222
  for (var i2 = 0, length_1 = a2.length; i2 < length_1; i2++) {
16240
- if (!equals(a2[i2], b[i2]))
16223
+ if (!equals(a2[i2], b2[i2]))
16241
16224
  return false;
16242
16225
  }
16243
16226
  return true;
16244
16227
  } else if (isObject(a2)) {
16245
- if (Object.keys(a2).length !== Object.keys(b).length) {
16228
+ if (Object.keys(a2).length !== Object.keys(b2).length) {
16246
16229
  return false;
16247
16230
  }
16248
16231
  for (var key in a2) {
16249
- if (!equals(a2[key], b[key]))
16232
+ if (!equals(a2[key], b2[key]))
16250
16233
  return false;
16251
16234
  }
16252
16235
  return true;
@@ -16379,15 +16362,15 @@ var createTester = function(a2, compare) {
16379
16362
  return a2;
16380
16363
  }
16381
16364
  if (a2 instanceof RegExp) {
16382
- return function(b) {
16383
- var result = typeof b === "string" && a2.test(b);
16365
+ return function(b2) {
16366
+ var result = typeof b2 === "string" && a2.test(b2);
16384
16367
  a2.lastIndex = 0;
16385
16368
  return result;
16386
16369
  };
16387
16370
  }
16388
16371
  var comparableA = comparable(a2);
16389
- return function(b) {
16390
- return compare(comparableA, comparable(b));
16372
+ return function(b2) {
16373
+ return compare(comparableA, comparable(b2));
16391
16374
  };
16392
16375
  };
16393
16376
  var EqualsOperation = (
@@ -16422,8 +16405,8 @@ var numericalOperation = function(createTester2) {
16422
16405
  return numericalOperationCreator(function(params, owneryQuery, options, name) {
16423
16406
  var typeofParams = typeof comparable(params);
16424
16407
  var test = createTester2(params);
16425
- return new EqualsOperation(function(b) {
16426
- var actualValue = coercePotentiallyNull(b);
16408
+ return new EqualsOperation(function(b2) {
16409
+ var actualValue = coercePotentiallyNull(b2);
16427
16410
  return typeof comparable(actualValue) === typeofParams && test(actualValue);
16428
16411
  }, owneryQuery, options, name);
16429
16412
  });
@@ -16823,29 +16806,29 @@ var $in = function(params, owneryQuery, options, name) {
16823
16806
  return new $In(params, owneryQuery, options, name);
16824
16807
  };
16825
16808
  var $lt = numericalOperation(function(params) {
16826
- return function(b) {
16827
- return b != null && b < params;
16809
+ return function(b2) {
16810
+ return b2 != null && b2 < params;
16828
16811
  };
16829
16812
  });
16830
16813
  var $lte = numericalOperation(function(params) {
16831
- return function(b) {
16832
- return b === params || b <= params;
16814
+ return function(b2) {
16815
+ return b2 === params || b2 <= params;
16833
16816
  };
16834
16817
  });
16835
16818
  var $gt = numericalOperation(function(params) {
16836
- return function(b) {
16837
- return b != null && b > params;
16819
+ return function(b2) {
16820
+ return b2 != null && b2 > params;
16838
16821
  };
16839
16822
  });
16840
16823
  var $gte = numericalOperation(function(params) {
16841
- return function(b) {
16842
- return b === params || b >= params;
16824
+ return function(b2) {
16825
+ return b2 === params || b2 >= params;
16843
16826
  };
16844
16827
  });
16845
16828
  var $mod = function(_a, owneryQuery, options) {
16846
16829
  var mod = _a[0], equalsValue = _a[1];
16847
- return new EqualsOperation(function(b) {
16848
- return comparable(b) % mod === equalsValue;
16830
+ return new EqualsOperation(function(b2) {
16831
+ return comparable(b2) % mod === equalsValue;
16849
16832
  }, owneryQuery, options);
16850
16833
  };
16851
16834
  var $exists = function(params, owneryQuery, options, name) {
@@ -16878,14 +16861,14 @@ var typeAliases = {
16878
16861
  }
16879
16862
  };
16880
16863
  var $type = function(clazz, owneryQuery, options) {
16881
- return new EqualsOperation(function(b) {
16864
+ return new EqualsOperation(function(b2) {
16882
16865
  if (typeof clazz === "string") {
16883
16866
  if (!typeAliases[clazz]) {
16884
16867
  throw new Error("Type alias does not exist");
16885
16868
  }
16886
- return typeAliases[clazz](b);
16869
+ return typeAliases[clazz](b2);
16887
16870
  }
16888
- return b != null ? b instanceof clazz || b.constructor === clazz : false;
16871
+ return b2 != null ? b2 instanceof clazz || b2.constructor === clazz : false;
16889
16872
  }, owneryQuery, options);
16890
16873
  };
16891
16874
  var $and = function(params, ownerQuery, options, name) {
@@ -16909,8 +16892,8 @@ var $where = function(params, ownerQuery, options) {
16909
16892
  } else {
16910
16893
  throw new Error('In CSP mode, sift does not support strings in "$where" condition');
16911
16894
  }
16912
- return new EqualsOperation(function(b) {
16913
- return test.bind(b)(b);
16895
+ return new EqualsOperation(function(b2) {
16896
+ return test.bind(b2)(b2);
16914
16897
  }, ownerQuery, options);
16915
16898
  };
16916
16899
  var defaultOperations = /* @__PURE__ */ Object.freeze({
@@ -16956,7 +16939,7 @@ var createDefaultQueryTester = function(query, options) {
16956
16939
  // package.json
16957
16940
  var package_default = {
16958
16941
  name: "@batijs/cli",
16959
- version: "0.0.422",
16942
+ version: "0.0.424",
16960
16943
  type: "module",
16961
16944
  scripts: {
16962
16945
  "check-types": "tsc --noEmit",
@@ -16977,7 +16960,7 @@ var package_default = {
16977
16960
  "@types/which": "^3.0.4",
16978
16961
  citty: "^0.1.6",
16979
16962
  colorette: "^2.0.20",
16980
- esbuild: "^0.25.1",
16963
+ esbuild: "^0.25.2",
16981
16964
  execa: "^9.5.2",
16982
16965
  rimraf: "^6.0.1",
16983
16966
  sift: "^17.1.3",
@@ -17061,7 +17044,7 @@ Choose one of them, or simply remove selected Server`
17061
17044
  var __filename = fileURLToPath(import.meta.url);
17062
17045
  var __dirname = dirname(__filename);
17063
17046
  var isWin2 = process.platform === "win32";
17064
- var pm = uTs();
17047
+ var pm = _Ts();
17065
17048
  function boilerplatesDir() {
17066
17049
  if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
17067
17050
  return join(__dirname, "boilerplates");
@@ -17084,7 +17067,7 @@ function toArg(flag, description) {
17084
17067
  };
17085
17068
  }
17086
17069
  function findDescription(key) {
17087
- const feat = features.find((f) => f.flag === key);
17070
+ const feat = features.find((f2) => f2.flag === key);
17088
17071
  if (!feat) return;
17089
17072
  if (feat.description) {
17090
17073
  return feat.description;
@@ -17095,14 +17078,14 @@ function findDescription(key) {
17095
17078
  }
17096
17079
  }
17097
17080
  function printOK(dist, flags2) {
17098
- const arrow0 = iQr("\u2192", blueBright);
17099
- const book0 = iQr("\u{1F4DA}", blueBright);
17100
- const list3 = iQr("-", void 0, 3);
17101
- const cmd3 = iQr("$", gray, 3);
17081
+ const arrow0 = aQr("\u2192", blueBright);
17082
+ const book0 = aQr("\u{1F4DA}", blueBright);
17083
+ const list3 = aQr("-", void 0, 3);
17084
+ const cmd3 = aQr("$", gray, 3);
17102
17085
  console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
17103
17086
  console.log(list3(green("Vike")));
17104
17087
  for (const key of flags2) {
17105
- const feature = features.find((f) => f.flag === key);
17088
+ const feature = features.find((f2) => f2.flag === key);
17106
17089
  if (!feature || !feature.label) continue;
17107
17090
  console.log(list3(green(feature.label)));
17108
17091
  }
@@ -17240,7 +17223,7 @@ function colorFirstLetter(choice) {
17240
17223
  }
17241
17224
  async function checkFlagsIncludesUiFramework(flags2) {
17242
17225
  const uiFlags = features.filter((fs) => fs.category === "UI Framework").map((fs) => fs.flag);
17243
- const uiFlagFound = flags2.some((f) => uiFlags.includes(f));
17226
+ const uiFlagFound = flags2.some((f2) => uiFlags.includes(f2));
17244
17227
  if (!uiFlagFound) {
17245
17228
  console.warn(
17246
17229
  `${yellow("\u{1F6C8} You are scaffolding a barebone app.")} Go to ${underline("https://vike.dev/new")} to scaffold a full-fledged app with tools such as Tailwind, authentication, RPC, database, deployment, ...
@@ -17266,7 +17249,7 @@ async function checkFlagsIncludesUiFramework(flags2) {
17266
17249
  }
17267
17250
  function checkFlagsExist(flags2) {
17268
17251
  const inValidOptions = flags2.reduce((acc, flag) => {
17269
- if (!Object.prototype.hasOwnProperty.call(defaultDef, flag) && !features.some((f) => f.flag === flag)) {
17252
+ if (!Object.prototype.hasOwnProperty.call(defaultDef, flag) && !features.some((f2) => f2.flag === flag)) {
17270
17253
  acc.push(flag);
17271
17254
  }
17272
17255
  return acc;
@@ -17326,7 +17309,7 @@ async function retrieveHooks(hooks) {
17326
17309
  }
17327
17310
  function testFlags(flags2, bl) {
17328
17311
  if (bl.config.if) {
17329
- return createDefaultQueryTester(bl.config.if)(flags2.map((f) => ({ flag: f })));
17312
+ return createDefaultQueryTester(bl.config.if)(flags2.map((f2) => ({ flag: f2 })));
17330
17313
  }
17331
17314
  return true;
17332
17315
  }
@@ -17376,7 +17359,7 @@ async function run() {
17376
17359
  ...new Set(
17377
17360
  Object.entries(args).filter(([, val]) => val === true).map(([key]) => {
17378
17361
  const flag = [key];
17379
- const dependsOn = features.find((f) => f.flag === key)?.dependsOn;
17362
+ const dependsOn = features.find((f2) => f2.flag === key)?.dependsOn;
17380
17363
  if (dependsOn) {
17381
17364
  flag.push(...dependsOn);
17382
17365
  }