weapp-vite 5.6.2 → 5.6.3

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.
@@ -3,7 +3,7 @@ import {
3
3
  __require,
4
4
  __toESM,
5
5
  init_esm_shims
6
- } from "./chunk-C5ZVOPAJ.mjs";
6
+ } from "./chunk-SSQGJIB5.mjs";
7
7
 
8
8
  // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
9
9
  var require_debug = __commonJS({
@@ -163,13 +163,13 @@ var require_identifiers = __commonJS({
163
163
  "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js"(exports, module) {
164
164
  "use strict";
165
165
  init_esm_shims();
166
- var numeric = /^[0-9]+$/;
166
+ var numeric2 = /^[0-9]+$/;
167
167
  var compareIdentifiers = (a, b) => {
168
168
  if (typeof a === "number" && typeof b === "number") {
169
169
  return a === b ? 0 : a < b ? -1 : 1;
170
170
  }
171
- const anum = numeric.test(a);
172
- const bnum = numeric.test(b);
171
+ const anum = numeric2.test(a);
172
+ const bnum = numeric2.test(b);
173
173
  if (anum && bnum) {
174
174
  a = +a;
175
175
  b = +b;
@@ -195,31 +195,31 @@ var require_semver = __commonJS({
195
195
  var parseOptions = require_parse_options();
196
196
  var { compareIdentifiers } = require_identifiers();
197
197
  var SemVer = class _SemVer {
198
- constructor(version3, options) {
198
+ constructor(version2, options) {
199
199
  options = parseOptions(options);
200
- if (version3 instanceof _SemVer) {
201
- if (version3.loose === !!options.loose && version3.includePrerelease === !!options.includePrerelease) {
202
- return version3;
200
+ if (version2 instanceof _SemVer) {
201
+ if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
202
+ return version2;
203
203
  } else {
204
- version3 = version3.version;
204
+ version2 = version2.version;
205
205
  }
206
- } else if (typeof version3 !== "string") {
207
- throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version3}".`);
206
+ } else if (typeof version2 !== "string") {
207
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
208
208
  }
209
- if (version3.length > MAX_LENGTH) {
209
+ if (version2.length > MAX_LENGTH) {
210
210
  throw new TypeError(
211
211
  `version is longer than ${MAX_LENGTH} characters`
212
212
  );
213
213
  }
214
- debug4("SemVer", version3, options);
214
+ debug4("SemVer", version2, options);
215
215
  this.options = options;
216
216
  this.loose = !!options.loose;
217
217
  this.includePrerelease = !!options.includePrerelease;
218
- const m = version3.trim().match(options.loose ? re[t2.LOOSE] : re[t2.FULL]);
218
+ const m = version2.trim().match(options.loose ? re[t2.LOOSE] : re[t2.FULL]);
219
219
  if (!m) {
220
- throw new TypeError(`Invalid Version: ${version3}`);
220
+ throw new TypeError(`Invalid Version: ${version2}`);
221
221
  }
222
- this.raw = version3;
222
+ this.raw = version2;
223
223
  this.major = +m[1];
224
224
  this.minor = +m[2];
225
225
  this.patch = +m[3];
@@ -481,219 +481,8 @@ var require_gte = __commonJS({
481
481
  "use strict";
482
482
  init_esm_shims();
483
483
  var compare = require_compare();
484
- var gte = (a, b, loose) => compare(a, b, loose) >= 0;
485
- module.exports = gte;
486
- }
487
- });
488
-
489
- // ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
490
- var require_balanced_match = __commonJS({
491
- "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) {
492
- "use strict";
493
- init_esm_shims();
494
- module.exports = balanced;
495
- function balanced(a, b, str) {
496
- if (a instanceof RegExp) a = maybeMatch(a, str);
497
- if (b instanceof RegExp) b = maybeMatch(b, str);
498
- var r2 = range(a, b, str);
499
- return r2 && {
500
- start: r2[0],
501
- end: r2[1],
502
- pre: str.slice(0, r2[0]),
503
- body: str.slice(r2[0] + a.length, r2[1]),
504
- post: str.slice(r2[1] + b.length)
505
- };
506
- }
507
- function maybeMatch(reg, str) {
508
- var m = str.match(reg);
509
- return m ? m[0] : null;
510
- }
511
- balanced.range = range;
512
- function range(a, b, str) {
513
- var begs, beg, left, right, result;
514
- var ai = str.indexOf(a);
515
- var bi = str.indexOf(b, ai + 1);
516
- var i = ai;
517
- if (ai >= 0 && bi > 0) {
518
- if (a === b) {
519
- return [ai, bi];
520
- }
521
- begs = [];
522
- left = str.length;
523
- while (i >= 0 && !result) {
524
- if (i == ai) {
525
- begs.push(i);
526
- ai = str.indexOf(a, i + 1);
527
- } else if (begs.length == 1) {
528
- result = [begs.pop(), bi];
529
- } else {
530
- beg = begs.pop();
531
- if (beg < left) {
532
- left = beg;
533
- right = bi;
534
- }
535
- bi = str.indexOf(b, i + 1);
536
- }
537
- i = ai < bi && ai >= 0 ? ai : bi;
538
- }
539
- if (begs.length) {
540
- result = [left, right];
541
- }
542
- }
543
- return result;
544
- }
545
- }
546
- });
547
-
548
- // ../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
549
- var require_brace_expansion = __commonJS({
550
- "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module) {
551
- "use strict";
552
- init_esm_shims();
553
- var balanced = require_balanced_match();
554
- module.exports = expandTop;
555
- var escSlash = "\0SLASH" + Math.random() + "\0";
556
- var escOpen = "\0OPEN" + Math.random() + "\0";
557
- var escClose = "\0CLOSE" + Math.random() + "\0";
558
- var escComma = "\0COMMA" + Math.random() + "\0";
559
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
560
- function numeric(str) {
561
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
562
- }
563
- function escapeBraces(str) {
564
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
565
- }
566
- function unescapeBraces(str) {
567
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
568
- }
569
- function parseCommaParts(str) {
570
- if (!str)
571
- return [""];
572
- var parts = [];
573
- var m = balanced("{", "}", str);
574
- if (!m)
575
- return str.split(",");
576
- var pre = m.pre;
577
- var body = m.body;
578
- var post = m.post;
579
- var p = pre.split(",");
580
- p[p.length - 1] += "{" + body + "}";
581
- var postParts = parseCommaParts(post);
582
- if (post.length) {
583
- p[p.length - 1] += postParts.shift();
584
- p.push.apply(p, postParts);
585
- }
586
- parts.push.apply(parts, p);
587
- return parts;
588
- }
589
- function expandTop(str) {
590
- if (!str)
591
- return [];
592
- if (str.substr(0, 2) === "{}") {
593
- str = "\\{\\}" + str.substr(2);
594
- }
595
- return expand2(escapeBraces(str), true).map(unescapeBraces);
596
- }
597
- function embrace(str) {
598
- return "{" + str + "}";
599
- }
600
- function isPadded(el) {
601
- return /^-?0\d/.test(el);
602
- }
603
- function lte(i, y) {
604
- return i <= y;
605
- }
606
- function gte(i, y) {
607
- return i >= y;
608
- }
609
- function expand2(str, isTop) {
610
- var expansions = [];
611
- var m = balanced("{", "}", str);
612
- if (!m) return [str];
613
- var pre = m.pre;
614
- var post = m.post.length ? expand2(m.post, false) : [""];
615
- if (/\$$/.test(m.pre)) {
616
- for (var k = 0; k < post.length; k++) {
617
- var expansion = pre + "{" + m.body + "}" + post[k];
618
- expansions.push(expansion);
619
- }
620
- } else {
621
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
622
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
623
- var isSequence = isNumericSequence || isAlphaSequence;
624
- var isOptions = m.body.indexOf(",") >= 0;
625
- if (!isSequence && !isOptions) {
626
- if (m.post.match(/,.*\}/)) {
627
- str = m.pre + "{" + m.body + escClose + m.post;
628
- return expand2(str);
629
- }
630
- return [str];
631
- }
632
- var n2;
633
- if (isSequence) {
634
- n2 = m.body.split(/\.\./);
635
- } else {
636
- n2 = parseCommaParts(m.body);
637
- if (n2.length === 1) {
638
- n2 = expand2(n2[0], false).map(embrace);
639
- if (n2.length === 1) {
640
- return post.map(function(p) {
641
- return m.pre + n2[0] + p;
642
- });
643
- }
644
- }
645
- }
646
- var N;
647
- if (isSequence) {
648
- var x = numeric(n2[0]);
649
- var y = numeric(n2[1]);
650
- var width = Math.max(n2[0].length, n2[1].length);
651
- var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
652
- var test = lte;
653
- var reverse = y < x;
654
- if (reverse) {
655
- incr *= -1;
656
- test = gte;
657
- }
658
- var pad = n2.some(isPadded);
659
- N = [];
660
- for (var i = x; test(i, y); i += incr) {
661
- var c;
662
- if (isAlphaSequence) {
663
- c = String.fromCharCode(i);
664
- if (c === "\\")
665
- c = "";
666
- } else {
667
- c = String(i);
668
- if (pad) {
669
- var need = width - c.length;
670
- if (need > 0) {
671
- var z = new Array(need + 1).join("0");
672
- if (i < 0)
673
- c = "-" + z + c.slice(1);
674
- else
675
- c = z + c;
676
- }
677
- }
678
- }
679
- N.push(c);
680
- }
681
- } else {
682
- N = [];
683
- for (var j = 0; j < n2.length; j++) {
684
- N.push.apply(N, expand2(n2[j], false));
685
- }
686
- }
687
- for (var j = 0; j < N.length; j++) {
688
- for (var k = 0; k < post.length; k++) {
689
- var expansion = pre + N[j] + post[k];
690
- if (!isTop || isSequence || expansion)
691
- expansions.push(expansion);
692
- }
693
- }
694
- }
695
- return expansions;
696
- }
484
+ var gte2 = (a, b, loose) => compare(a, b, loose) >= 0;
485
+ module.exports = gte2;
697
486
  }
698
487
  });
699
488
 
@@ -906,14 +695,14 @@ function getRuntime() {
906
695
  throw new Error("Unknown runtime: cannot determine Node.js / Deno / Bun");
907
696
  }
908
697
  function checkRuntime(minVersions) {
909
- const { runtime, version: version3 } = getRuntime();
698
+ const { runtime, version: version2 } = getRuntime();
910
699
  const required = minVersions[runtime];
911
700
  if (!required) {
912
701
  logger_default.warn(`No minimum version specified for ${runtime}, skipping check.`);
913
702
  return;
914
703
  }
915
- if (!(0, import_gte.default)(version3, required)) {
916
- logger_default.warn(`\u5F53\u524D ${runtime} \u7248\u672C\u4E3A ${version3} \u65E0\u6CD5\u6EE1\u8DB3 \`weapp-vite\` \u6700\u4F4E\u8981\u6C42\u7684\u7248\u672C(>= ${required})`);
704
+ if (!(0, import_gte.default)(version2, required)) {
705
+ logger_default.warn(`\u5F53\u524D ${runtime} \u7248\u672C\u4E3A ${version2} \u65E0\u6CD5\u6EE1\u8DB3 \`weapp-vite\` \u6700\u4F4E\u8981\u6C42\u7684\u7248\u672C(>= ${required})`);
917
706
  }
918
707
  }
919
708
 
@@ -4483,7 +4272,7 @@ function createAutoRoutesServicePlugin(ctx) {
4483
4272
 
4484
4273
  // src/runtime/buildPlugin.ts
4485
4274
  init_esm_shims();
4486
- import fs7 from "fs";
4275
+ import fs6 from "fs";
4487
4276
  import process3 from "process";
4488
4277
 
4489
4278
  // ../../node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/index.js
@@ -6055,8 +5844,8 @@ var FSWatcher = class extends EventEmitter {
6055
5844
  }
6056
5845
  return this._userIgnored(path36, stats);
6057
5846
  }
6058
- _isntIgnored(path36, stat6) {
6059
- return !this._isIgnored(path36, stat6);
5847
+ _isntIgnored(path36, stat5) {
5848
+ return !this._isIgnored(path36, stat5);
6060
5849
  }
6061
5850
  /**
6062
5851
  * Provides a set of common helpers and properties relating to symlink handling.
@@ -6183,17 +5972,231 @@ var esm_default = { watch, FSWatcher };
6183
5972
  // src/runtime/buildPlugin.ts
6184
5973
  import path11 from "pathe";
6185
5974
 
6186
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/index.js
5975
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/index.js
5976
+ init_esm_shims();
5977
+
5978
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/index.js
6187
5979
  init_esm_shims();
6188
5980
 
6189
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/index.js
5981
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js
6190
5982
  init_esm_shims();
6191
5983
 
6192
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js
5984
+ // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/esm/index.js
6193
5985
  init_esm_shims();
6194
- var import_brace_expansion = __toESM(require_brace_expansion(), 1);
6195
5986
 
6196
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
5987
+ // ../../node_modules/.pnpm/@isaacs+balanced-match@4.0.1/node_modules/@isaacs/balanced-match/dist/esm/index.js
5988
+ init_esm_shims();
5989
+ var balanced = (a, b, str) => {
5990
+ const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
5991
+ const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
5992
+ const r2 = ma !== null && mb != null && range(ma, mb, str);
5993
+ return r2 && {
5994
+ start: r2[0],
5995
+ end: r2[1],
5996
+ pre: str.slice(0, r2[0]),
5997
+ body: str.slice(r2[0] + ma.length, r2[1]),
5998
+ post: str.slice(r2[1] + mb.length)
5999
+ };
6000
+ };
6001
+ var maybeMatch = (reg, str) => {
6002
+ const m = str.match(reg);
6003
+ return m ? m[0] : null;
6004
+ };
6005
+ var range = (a, b, str) => {
6006
+ let begs, beg, left, right = void 0, result;
6007
+ let ai = str.indexOf(a);
6008
+ let bi = str.indexOf(b, ai + 1);
6009
+ let i = ai;
6010
+ if (ai >= 0 && bi > 0) {
6011
+ if (a === b) {
6012
+ return [ai, bi];
6013
+ }
6014
+ begs = [];
6015
+ left = str.length;
6016
+ while (i >= 0 && !result) {
6017
+ if (i === ai) {
6018
+ begs.push(i);
6019
+ ai = str.indexOf(a, i + 1);
6020
+ } else if (begs.length === 1) {
6021
+ const r2 = begs.pop();
6022
+ if (r2 !== void 0)
6023
+ result = [r2, bi];
6024
+ } else {
6025
+ beg = begs.pop();
6026
+ if (beg !== void 0 && beg < left) {
6027
+ left = beg;
6028
+ right = bi;
6029
+ }
6030
+ bi = str.indexOf(b, i + 1);
6031
+ }
6032
+ i = ai < bi && ai >= 0 ? ai : bi;
6033
+ }
6034
+ if (begs.length && right !== void 0) {
6035
+ result = [left, right];
6036
+ }
6037
+ }
6038
+ return result;
6039
+ };
6040
+
6041
+ // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/esm/index.js
6042
+ var escSlash = "\0SLASH" + Math.random() + "\0";
6043
+ var escOpen = "\0OPEN" + Math.random() + "\0";
6044
+ var escClose = "\0CLOSE" + Math.random() + "\0";
6045
+ var escComma = "\0COMMA" + Math.random() + "\0";
6046
+ var escPeriod = "\0PERIOD" + Math.random() + "\0";
6047
+ var escSlashPattern = new RegExp(escSlash, "g");
6048
+ var escOpenPattern = new RegExp(escOpen, "g");
6049
+ var escClosePattern = new RegExp(escClose, "g");
6050
+ var escCommaPattern = new RegExp(escComma, "g");
6051
+ var escPeriodPattern = new RegExp(escPeriod, "g");
6052
+ var slashPattern = /\\\\/g;
6053
+ var openPattern = /\\{/g;
6054
+ var closePattern = /\\}/g;
6055
+ var commaPattern = /\\,/g;
6056
+ var periodPattern = /\\./g;
6057
+ function numeric(str) {
6058
+ return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
6059
+ }
6060
+ function escapeBraces(str) {
6061
+ return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
6062
+ }
6063
+ function unescapeBraces(str) {
6064
+ return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
6065
+ }
6066
+ function parseCommaParts(str) {
6067
+ if (!str) {
6068
+ return [""];
6069
+ }
6070
+ const parts = [];
6071
+ const m = balanced("{", "}", str);
6072
+ if (!m) {
6073
+ return str.split(",");
6074
+ }
6075
+ const { pre, body, post } = m;
6076
+ const p = pre.split(",");
6077
+ p[p.length - 1] += "{" + body + "}";
6078
+ const postParts = parseCommaParts(post);
6079
+ if (post.length) {
6080
+ ;
6081
+ p[p.length - 1] += postParts.shift();
6082
+ p.push.apply(p, postParts);
6083
+ }
6084
+ parts.push.apply(parts, p);
6085
+ return parts;
6086
+ }
6087
+ function expand(str) {
6088
+ if (!str) {
6089
+ return [];
6090
+ }
6091
+ if (str.slice(0, 2) === "{}") {
6092
+ str = "\\{\\}" + str.slice(2);
6093
+ }
6094
+ return expand_(escapeBraces(str), true).map(unescapeBraces);
6095
+ }
6096
+ function embrace(str) {
6097
+ return "{" + str + "}";
6098
+ }
6099
+ function isPadded(el) {
6100
+ return /^-?0\d/.test(el);
6101
+ }
6102
+ function lte(i, y) {
6103
+ return i <= y;
6104
+ }
6105
+ function gte(i, y) {
6106
+ return i >= y;
6107
+ }
6108
+ function expand_(str, isTop) {
6109
+ const expansions = [];
6110
+ const m = balanced("{", "}", str);
6111
+ if (!m)
6112
+ return [str];
6113
+ const pre = m.pre;
6114
+ const post = m.post.length ? expand_(m.post, false) : [""];
6115
+ if (/\$$/.test(m.pre)) {
6116
+ for (let k = 0; k < post.length; k++) {
6117
+ const expansion = pre + "{" + m.body + "}" + post[k];
6118
+ expansions.push(expansion);
6119
+ }
6120
+ } else {
6121
+ const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
6122
+ const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
6123
+ const isSequence = isNumericSequence || isAlphaSequence;
6124
+ const isOptions = m.body.indexOf(",") >= 0;
6125
+ if (!isSequence && !isOptions) {
6126
+ if (m.post.match(/,(?!,).*\}/)) {
6127
+ str = m.pre + "{" + m.body + escClose + m.post;
6128
+ return expand_(str);
6129
+ }
6130
+ return [str];
6131
+ }
6132
+ let n2;
6133
+ if (isSequence) {
6134
+ n2 = m.body.split(/\.\./);
6135
+ } else {
6136
+ n2 = parseCommaParts(m.body);
6137
+ if (n2.length === 1 && n2[0] !== void 0) {
6138
+ n2 = expand_(n2[0], false).map(embrace);
6139
+ if (n2.length === 1) {
6140
+ return post.map((p) => m.pre + n2[0] + p);
6141
+ }
6142
+ }
6143
+ }
6144
+ let N;
6145
+ if (isSequence && n2[0] !== void 0 && n2[1] !== void 0) {
6146
+ const x = numeric(n2[0]);
6147
+ const y = numeric(n2[1]);
6148
+ const width = Math.max(n2[0].length, n2[1].length);
6149
+ let incr = n2.length === 3 && n2[2] !== void 0 ? Math.abs(numeric(n2[2])) : 1;
6150
+ let test = lte;
6151
+ const reverse = y < x;
6152
+ if (reverse) {
6153
+ incr *= -1;
6154
+ test = gte;
6155
+ }
6156
+ const pad = n2.some(isPadded);
6157
+ N = [];
6158
+ for (let i = x; test(i, y); i += incr) {
6159
+ let c;
6160
+ if (isAlphaSequence) {
6161
+ c = String.fromCharCode(i);
6162
+ if (c === "\\") {
6163
+ c = "";
6164
+ }
6165
+ } else {
6166
+ c = String(i);
6167
+ if (pad) {
6168
+ const need = width - c.length;
6169
+ if (need > 0) {
6170
+ const z = new Array(need + 1).join("0");
6171
+ if (i < 0) {
6172
+ c = "-" + z + c.slice(1);
6173
+ } else {
6174
+ c = z + c;
6175
+ }
6176
+ }
6177
+ }
6178
+ }
6179
+ N.push(c);
6180
+ }
6181
+ } else {
6182
+ N = [];
6183
+ for (let j = 0; j < n2.length; j++) {
6184
+ N.push.apply(N, expand_(n2[j], false));
6185
+ }
6186
+ }
6187
+ for (let j = 0; j < N.length; j++) {
6188
+ for (let k = 0; k < post.length; k++) {
6189
+ const expansion = pre + N[j] + post[k];
6190
+ if (!isTop || isSequence || expansion) {
6191
+ expansions.push(expansion);
6192
+ }
6193
+ }
6194
+ }
6195
+ }
6196
+ return expansions;
6197
+ }
6198
+
6199
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
6197
6200
  init_esm_shims();
6198
6201
  var MAX_PATTERN_LENGTH = 1024 * 64;
6199
6202
  var assertValidPattern = (pattern) => {
@@ -6205,10 +6208,10 @@ var assertValidPattern = (pattern) => {
6205
6208
  }
6206
6209
  };
6207
6210
 
6208
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js
6211
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/ast.js
6209
6212
  init_esm_shims();
6210
6213
 
6211
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.js
6214
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/brace-expressions.js
6212
6215
  init_esm_shims();
6213
6216
  var posixClasses = {
6214
6217
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
@@ -6318,13 +6321,16 @@ var parseClass = (glob2, position) => {
6318
6321
  return [comb, uflag, endPos - pos, true];
6319
6322
  };
6320
6323
 
6321
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js
6324
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/unescape.js
6322
6325
  init_esm_shims();
6323
- var unescape2 = (s, { windowsPathsNoEscape = false } = {}) => {
6324
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
6326
+ var unescape2 = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
6327
+ if (magicalBraces) {
6328
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
6329
+ }
6330
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
6325
6331
  };
6326
6332
 
6327
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js
6333
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/ast.js
6328
6334
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
6329
6335
  var isExtglobType = (c) => types.has(c);
6330
6336
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
@@ -6675,7 +6681,7 @@ var AST = class _AST {
6675
6681
  if (this.#root === this)
6676
6682
  this.#fillNegs();
6677
6683
  if (!this.type) {
6678
- const noEmpty = this.isStart() && this.isEnd();
6684
+ const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
6679
6685
  const src = this.#parts.map((p) => {
6680
6686
  const [re, _, hasMagic2, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
6681
6687
  this.#hasMagic = this.#hasMagic || hasMagic2;
@@ -6785,10 +6791,7 @@ var AST = class _AST {
6785
6791
  }
6786
6792
  }
6787
6793
  if (c === "*") {
6788
- if (noEmpty && glob2 === "*")
6789
- re += starNoEmpty;
6790
- else
6791
- re += star;
6794
+ re += noEmpty && glob2 === "*" ? starNoEmpty : star;
6792
6795
  hasMagic2 = true;
6793
6796
  continue;
6794
6797
  }
@@ -6803,13 +6806,16 @@ var AST = class _AST {
6803
6806
  }
6804
6807
  };
6805
6808
 
6806
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js
6809
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/escape.js
6807
6810
  init_esm_shims();
6808
- var escape = (s, { windowsPathsNoEscape = false } = {}) => {
6811
+ var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
6812
+ if (magicalBraces) {
6813
+ return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
6814
+ }
6809
6815
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
6810
6816
  };
6811
6817
 
6812
- // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js
6818
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js
6813
6819
  var minimatch = (p, pattern, options = {}) => {
6814
6820
  assertValidPattern(pattern);
6815
6821
  if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -6925,7 +6931,7 @@ var braceExpand = (pattern, options = {}) => {
6925
6931
  if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
6926
6932
  return [pattern];
6927
6933
  }
6928
- return (0, import_brace_expansion.default)(pattern);
6934
+ return expand(pattern);
6929
6935
  };
6930
6936
  minimatch.braceExpand = braceExpand;
6931
6937
  var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
@@ -7446,16 +7452,27 @@ var Minimatch = class {
7446
7452
  pp2[i] = twoStar;
7447
7453
  }
7448
7454
  } else if (next === void 0) {
7449
- pp2[i - 1] = prev + "(?:\\/|" + twoStar + ")?";
7455
+ pp2[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
7450
7456
  } else if (next !== GLOBSTAR) {
7451
7457
  pp2[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
7452
7458
  pp2[i + 1] = GLOBSTAR;
7453
7459
  }
7454
7460
  });
7455
- return pp2.filter((p) => p !== GLOBSTAR).join("/");
7461
+ const filtered = pp2.filter((p) => p !== GLOBSTAR);
7462
+ if (this.partial && filtered.length >= 1) {
7463
+ const prefixes = [];
7464
+ for (let i = 1; i <= filtered.length; i++) {
7465
+ prefixes.push(filtered.slice(0, i).join("/"));
7466
+ }
7467
+ return "(?:" + prefixes.join("|") + ")";
7468
+ }
7469
+ return filtered.join("/");
7456
7470
  }).join("|");
7457
7471
  const [open2, close] = set3.length > 1 ? ["(?:", ")"] : ["", ""];
7458
7472
  re = "^" + open2 + re + close + "$";
7473
+ if (this.partial) {
7474
+ re = "^(?:\\/|" + open2 + re.slice(1, -1) + close + ")$";
7475
+ }
7459
7476
  if (this.negate)
7460
7477
  re = "^(?!" + re + ").+$";
7461
7478
  try {
@@ -7527,7 +7544,7 @@ minimatch.Minimatch = Minimatch;
7527
7544
  minimatch.escape = escape;
7528
7545
  minimatch.unescape = unescape2;
7529
7546
 
7530
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/glob.js
7547
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/glob.js
7531
7548
  init_esm_shims();
7532
7549
  import { fileURLToPath as fileURLToPath2 } from "url";
7533
7550
 
@@ -9537,8 +9554,8 @@ var PathScurryBase = class {
9537
9554
  *
9538
9555
  * @internal
9539
9556
  */
9540
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs26 = defaultFS } = {}) {
9541
- this.#fs = fsFromOption(fs26);
9557
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs25 = defaultFS } = {}) {
9558
+ this.#fs = fsFromOption(fs25);
9542
9559
  if (cwd instanceof URL || cwd.startsWith("file://")) {
9543
9560
  cwd = fileURLToPath(cwd);
9544
9561
  }
@@ -10096,8 +10113,8 @@ var PathScurryWin32 = class extends PathScurryBase {
10096
10113
  /**
10097
10114
  * @internal
10098
10115
  */
10099
- newRoot(fs26) {
10100
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs26 });
10116
+ newRoot(fs25) {
10117
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs25 });
10101
10118
  }
10102
10119
  /**
10103
10120
  * Return true if the provided path string is an absolute path
@@ -10125,8 +10142,8 @@ var PathScurryPosix = class extends PathScurryBase {
10125
10142
  /**
10126
10143
  * @internal
10127
10144
  */
10128
- newRoot(fs26) {
10129
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs26 });
10145
+ newRoot(fs25) {
10146
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs25 });
10130
10147
  }
10131
10148
  /**
10132
10149
  * Return true if the provided path string is an absolute path
@@ -10144,7 +10161,7 @@ var PathScurryDarwin = class extends PathScurryPosix {
10144
10161
  var Path = process.platform === "win32" ? PathWin32 : PathPosix;
10145
10162
  var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
10146
10163
 
10147
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/pattern.js
10164
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/pattern.js
10148
10165
  init_esm_shims();
10149
10166
  var isPatternList = (pl2) => pl2.length >= 1;
10150
10167
  var isGlobList = (gl) => gl.length >= 1;
@@ -10310,10 +10327,10 @@ var Pattern = class _Pattern {
10310
10327
  }
10311
10328
  };
10312
10329
 
10313
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/walker.js
10330
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/walker.js
10314
10331
  init_esm_shims();
10315
10332
 
10316
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/ignore.js
10333
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/ignore.js
10317
10334
  init_esm_shims();
10318
10335
  var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
10319
10336
  var Ignore = class {
@@ -10401,7 +10418,7 @@ var Ignore = class {
10401
10418
  }
10402
10419
  };
10403
10420
 
10404
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/processor.js
10421
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/processor.js
10405
10422
  init_esm_shims();
10406
10423
  var HasWalkedCache = class _HasWalkedCache {
10407
10424
  store;
@@ -10623,7 +10640,7 @@ var Processor = class _Processor {
10623
10640
  }
10624
10641
  };
10625
10642
 
10626
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/walker.js
10643
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/walker.js
10627
10644
  var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
10628
10645
  var GlobUtil = class {
10629
10646
  path;
@@ -10950,7 +10967,7 @@ var GlobStream = class extends GlobUtil {
10950
10967
  }
10951
10968
  };
10952
10969
 
10953
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/glob.js
10970
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/glob.js
10954
10971
  var defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
10955
10972
  var Glob = class {
10956
10973
  absolute;
@@ -11150,7 +11167,7 @@ var Glob = class {
11150
11167
  }
11151
11168
  };
11152
11169
 
11153
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/has-magic.js
11170
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/has-magic.js
11154
11171
  init_esm_shims();
11155
11172
  var hasMagic = (pattern, options = {}) => {
11156
11173
  if (!Array.isArray(pattern)) {
@@ -11163,7 +11180,7 @@ var hasMagic = (pattern, options = {}) => {
11163
11180
  return false;
11164
11181
  };
11165
11182
 
11166
- // ../../node_modules/.pnpm/glob@11.0.2/node_modules/glob/dist/esm/index.js
11183
+ // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/index.js
11167
11184
  function globStreamSync(pattern, options = {}) {
11168
11185
  return new Glob(pattern, options).streamSync();
11169
11186
  }
@@ -11211,7 +11228,7 @@ var glob = Object.assign(glob_, {
11211
11228
  });
11212
11229
  glob.glob = glob;
11213
11230
 
11214
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/opt-arg.js
11231
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/opt-arg.js
11215
11232
  init_esm_shims();
11216
11233
  var typeOrUndef = (val, t2) => typeof val === "undefined" || typeof val === t2;
11217
11234
  var isRimrafOptions = (o) => !!o && typeof o === "object" && typeOrUndef(o.preserveRoot, "boolean") && typeOrUndef(o.tmp, "string") && typeOrUndef(o.maxRetries, "number") && typeOrUndef(o.retryDelay, "number") && typeOrUndef(o.backoff, "number") && typeOrUndef(o.maxBackoff, "number") && (typeOrUndef(o.glob, "boolean") || o.glob && typeof o.glob === "object") && typeOrUndef(o.filter, "function");
@@ -11244,16 +11261,10 @@ var optArgT = (opt) => {
11244
11261
  var optArg = (opt = {}) => optArgT(opt);
11245
11262
  var optArgSync = (opt = {}) => optArgT(opt);
11246
11263
 
11247
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/path-arg.js
11264
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/path-arg.js
11248
11265
  init_esm_shims();
11249
11266
  import { parse as parse2, resolve as resolve3 } from "path";
11250
11267
  import { inspect } from "util";
11251
-
11252
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/platform.js
11253
- init_esm_shims();
11254
- var platform_default = process.env.__TESTING_RIMRAF_PLATFORM__ || process.platform;
11255
-
11256
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/path-arg.js
11257
11268
  var pathArg = (path36, opt = {}) => {
11258
11269
  const type = typeof path36;
11259
11270
  if (type !== "string") {
@@ -11281,7 +11292,7 @@ var pathArg = (path36, opt = {}) => {
11281
11292
  code: "ERR_PRESERVE_ROOT"
11282
11293
  });
11283
11294
  }
11284
- if (platform_default === "win32") {
11295
+ if (process.platform === "win32") {
11285
11296
  const badWinChars = /[*|"<>?:]/;
11286
11297
  const { root: root2 } = parse2(path36);
11287
11298
  if (badWinChars.test(path36.substring(root2.length))) {
@@ -11295,46 +11306,37 @@ var pathArg = (path36, opt = {}) => {
11295
11306
  };
11296
11307
  var path_arg_default = pathArg;
11297
11308
 
11298
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-manual.js
11309
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-manual.js
11299
11310
  init_esm_shims();
11300
11311
 
11301
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js
11312
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-posix.js
11302
11313
  init_esm_shims();
11303
11314
 
11304
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js
11315
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/fs.js
11305
11316
  init_esm_shims();
11306
- import fs6 from "fs";
11307
- import { chmodSync, mkdirSync, renameSync, rmdirSync, rmSync, statSync, lstatSync as lstatSync2, unlinkSync } from "fs";
11308
11317
  import { readdirSync as rdSync } from "fs";
11318
+ import fsPromises from "fs/promises";
11319
+ import { chmodSync, mkdirSync, renameSync, rmdirSync, rmSync, statSync, lstatSync as lstatSync2, unlinkSync } from "fs";
11309
11320
  var readdirSync2 = (path36) => rdSync(path36, { withFileTypes: true });
11310
- var chmod = (path36, mode) => new Promise((res, rej) => fs6.chmod(path36, mode, (er, ...d) => er ? rej(er) : res(...d)));
11311
- var mkdir = (path36, options) => new Promise((res, rej) => fs6.mkdir(path36, options, (er, made) => er ? rej(er) : res(made)));
11312
- var readdir4 = (path36) => new Promise((res, rej) => fs6.readdir(path36, { withFileTypes: true }, (er, data2) => er ? rej(er) : res(data2)));
11313
- var rename = (oldPath, newPath) => new Promise((res, rej) => fs6.rename(oldPath, newPath, (er, ...d) => er ? rej(er) : res(...d)));
11314
- var rm = (path36, options) => new Promise((res, rej) => fs6.rm(path36, options, (er, ...d) => er ? rej(er) : res(...d)));
11315
- var rmdir = (path36) => new Promise((res, rej) => fs6.rmdir(path36, (er, ...d) => er ? rej(er) : res(...d)));
11316
- var stat4 = (path36) => new Promise((res, rej) => fs6.stat(path36, (er, data2) => er ? rej(er) : res(data2)));
11317
- var lstat4 = (path36) => new Promise((res, rej) => fs6.lstat(path36, (er, data2) => er ? rej(er) : res(data2)));
11318
- var unlink = (path36) => new Promise((res, rej) => fs6.unlink(path36, (er, ...d) => er ? rej(er) : res(...d)));
11319
11321
  var promises = {
11320
- chmod,
11321
- mkdir,
11322
- readdir: readdir4,
11323
- rename,
11324
- rm,
11325
- rmdir,
11326
- stat: stat4,
11327
- lstat: lstat4,
11328
- unlink
11322
+ chmod: fsPromises.chmod,
11323
+ mkdir: fsPromises.mkdir,
11324
+ readdir: (path36) => fsPromises.readdir(path36, { withFileTypes: true }),
11325
+ rename: fsPromises.rename,
11326
+ rm: fsPromises.rm,
11327
+ rmdir: fsPromises.rmdir,
11328
+ stat: fsPromises.stat,
11329
+ lstat: fsPromises.lstat,
11330
+ unlink: fsPromises.unlink
11329
11331
  };
11330
11332
 
11331
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js
11333
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-posix.js
11332
11334
  import { parse as parse3, resolve as resolve4 } from "path";
11333
11335
 
11334
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/readdir-or-error.js
11336
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/readdir-or-error.js
11335
11337
  init_esm_shims();
11336
- var { readdir: readdir5 } = promises;
11337
- var readdirOrError = (path36) => readdir5(path36).catch((er) => er);
11338
+ var { readdir: readdir4 } = promises;
11339
+ var readdirOrError = (path36) => readdir4(path36).catch((er) => er);
11338
11340
  var readdirOrErrorSync = (path36) => {
11339
11341
  try {
11340
11342
  return readdirSync2(path36);
@@ -11343,70 +11345,63 @@ var readdirOrErrorSync = (path36) => {
11343
11345
  }
11344
11346
  };
11345
11347
 
11346
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/ignore-enoent.js
11348
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/ignore-enoent.js
11347
11349
  init_esm_shims();
11348
- var ignoreENOENT = async (p) => p.catch((er) => {
11349
- if (er.code !== "ENOENT") {
11350
- throw er;
11350
+
11351
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/error.js
11352
+ init_esm_shims();
11353
+ var isRecord = (o) => !!o && typeof o === "object";
11354
+ var hasString = (o, key) => key in o && typeof o[key] === "string";
11355
+ var isFsError = (o) => isRecord(o) && hasString(o, "code") && hasString(o, "path");
11356
+ var errorCode = (er) => isRecord(er) && hasString(er, "code") ? er.code : null;
11357
+
11358
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/ignore-enoent.js
11359
+ var ignoreENOENT = async (p, rethrow) => p.catch((er) => {
11360
+ if (errorCode(er) === "ENOENT") {
11361
+ return;
11351
11362
  }
11363
+ throw rethrow ?? er;
11352
11364
  });
11353
- var ignoreENOENTSync = (fn) => {
11365
+ var ignoreENOENTSync = (fn, rethrow) => {
11354
11366
  try {
11355
11367
  return fn();
11356
11368
  } catch (er) {
11357
- if (er?.code !== "ENOENT") {
11358
- throw er;
11369
+ if (errorCode(er) === "ENOENT") {
11370
+ return;
11359
11371
  }
11372
+ throw rethrow ?? er;
11360
11373
  }
11361
11374
  };
11362
11375
 
11363
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js
11364
- var { lstat: lstat5, rmdir: rmdir2, unlink: unlink2 } = promises;
11376
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-posix.js
11377
+ var { lstat: lstat4, rmdir, unlink } = promises;
11365
11378
  var rimrafPosix = async (path36, opt) => {
11366
- if (opt?.signal?.aborted) {
11367
- throw opt.signal.reason;
11368
- }
11369
- try {
11370
- return await rimrafPosixDir(path36, opt, await lstat5(path36));
11371
- } catch (er) {
11372
- if (er?.code === "ENOENT")
11373
- return true;
11374
- throw er;
11375
- }
11379
+ opt?.signal?.throwIfAborted();
11380
+ return await ignoreENOENT(lstat4(path36).then((stat5) => rimrafPosixDir(path36, opt, stat5))) ?? true;
11376
11381
  };
11377
11382
  var rimrafPosixSync = (path36, opt) => {
11378
- if (opt?.signal?.aborted) {
11379
- throw opt.signal.reason;
11380
- }
11381
- try {
11382
- return rimrafPosixDirSync(path36, opt, lstatSync2(path36));
11383
- } catch (er) {
11384
- if (er?.code === "ENOENT")
11385
- return true;
11386
- throw er;
11387
- }
11383
+ opt?.signal?.throwIfAborted();
11384
+ return ignoreENOENTSync(() => rimrafPosixDirSync(path36, opt, lstatSync2(path36))) ?? true;
11388
11385
  };
11389
11386
  var rimrafPosixDir = async (path36, opt, ent) => {
11390
- if (opt?.signal?.aborted) {
11391
- throw opt.signal.reason;
11392
- }
11387
+ opt?.signal?.throwIfAborted();
11393
11388
  const entries = ent.isDirectory() ? await readdirOrError(path36) : null;
11394
11389
  if (!Array.isArray(entries)) {
11395
11390
  if (entries) {
11396
- if (entries.code === "ENOENT") {
11391
+ if (errorCode(entries) === "ENOENT") {
11397
11392
  return true;
11398
11393
  }
11399
- if (entries.code !== "ENOTDIR") {
11394
+ if (errorCode(entries) !== "ENOTDIR") {
11400
11395
  throw entries;
11401
11396
  }
11402
11397
  }
11403
11398
  if (opt.filter && !await opt.filter(path36, ent)) {
11404
11399
  return false;
11405
11400
  }
11406
- await ignoreENOENT(unlink2(path36));
11401
+ await ignoreENOENT(unlink(path36));
11407
11402
  return true;
11408
11403
  }
11409
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafPosixDir(resolve4(path36, ent2.name), opt, ent2)))).reduce((a, b) => a && b, true);
11404
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafPosixDir(resolve4(path36, ent2.name), opt, ent2)))).every((v) => v === true);
11410
11405
  if (!removedAll) {
11411
11406
  return false;
11412
11407
  }
@@ -11416,20 +11411,18 @@ var rimrafPosixDir = async (path36, opt, ent) => {
11416
11411
  if (opt.filter && !await opt.filter(path36, ent)) {
11417
11412
  return false;
11418
11413
  }
11419
- await ignoreENOENT(rmdir2(path36));
11414
+ await ignoreENOENT(rmdir(path36));
11420
11415
  return true;
11421
11416
  };
11422
11417
  var rimrafPosixDirSync = (path36, opt, ent) => {
11423
- if (opt?.signal?.aborted) {
11424
- throw opt.signal.reason;
11425
- }
11418
+ opt?.signal?.throwIfAborted();
11426
11419
  const entries = ent.isDirectory() ? readdirOrErrorSync(path36) : null;
11427
11420
  if (!Array.isArray(entries)) {
11428
11421
  if (entries) {
11429
- if (entries.code === "ENOENT") {
11422
+ if (errorCode(entries) === "ENOENT") {
11430
11423
  return true;
11431
11424
  }
11432
- if (entries.code !== "ENOTDIR") {
11425
+ if (errorCode(entries) !== "ENOTDIR") {
11433
11426
  throw entries;
11434
11427
  }
11435
11428
  }
@@ -11457,62 +11450,43 @@ var rimrafPosixDirSync = (path36, opt, ent) => {
11457
11450
  return true;
11458
11451
  };
11459
11452
 
11460
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-windows.js
11453
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-windows.js
11461
11454
  init_esm_shims();
11462
11455
  import { parse as parse6, resolve as resolve7 } from "path";
11463
11456
 
11464
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fix-eperm.js
11457
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/fix-eperm.js
11465
11458
  init_esm_shims();
11466
- var { chmod: chmod2 } = promises;
11459
+ var { chmod } = promises;
11467
11460
  var fixEPERM = (fn) => async (path36) => {
11468
11461
  try {
11469
- return await fn(path36);
11462
+ return void await ignoreENOENT(fn(path36));
11470
11463
  } catch (er) {
11471
- const fer = er;
11472
- if (fer?.code === "ENOENT") {
11473
- return;
11474
- }
11475
- if (fer?.code === "EPERM") {
11476
- try {
11477
- await chmod2(path36, 438);
11478
- } catch (er2) {
11479
- const fer2 = er2;
11480
- if (fer2?.code === "ENOENT") {
11481
- return;
11482
- }
11483
- throw er;
11464
+ if (errorCode(er) === "EPERM") {
11465
+ if (!await ignoreENOENT(chmod(path36, 438).then(() => true), er)) {
11466
+ return;
11484
11467
  }
11485
- return await fn(path36);
11468
+ return void await fn(path36);
11486
11469
  }
11487
11470
  throw er;
11488
11471
  }
11489
11472
  };
11490
11473
  var fixEPERMSync = (fn) => (path36) => {
11491
11474
  try {
11492
- return fn(path36);
11475
+ return void ignoreENOENTSync(() => fn(path36));
11493
11476
  } catch (er) {
11494
- const fer = er;
11495
- if (fer?.code === "ENOENT") {
11496
- return;
11497
- }
11498
- if (fer?.code === "EPERM") {
11499
- try {
11500
- chmodSync(path36, 438);
11501
- } catch (er2) {
11502
- const fer2 = er2;
11503
- if (fer2?.code === "ENOENT") {
11504
- return;
11505
- }
11506
- throw er;
11477
+ if (errorCode(er) === "EPERM") {
11478
+ if (!ignoreENOENTSync(() => (chmodSync(path36, 438), true), er)) {
11479
+ return;
11507
11480
  }
11508
- return fn(path36);
11481
+ return void fn(path36);
11509
11482
  }
11510
11483
  throw er;
11511
11484
  }
11512
11485
  };
11513
11486
 
11514
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/retry-busy.js
11487
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/retry-busy.js
11515
11488
  init_esm_shims();
11489
+ import { setTimeout as setTimeout2 } from "timers/promises";
11516
11490
  var MAXBACKOFF = 200;
11517
11491
  var RATE = 1.2;
11518
11492
  var MAXRETRIES = 10;
@@ -11527,16 +11501,12 @@ var retryBusy = (fn) => {
11527
11501
  try {
11528
11502
  return await fn(path36);
11529
11503
  } catch (er) {
11530
- const fer = er;
11531
- if (fer?.path === path36 && fer?.code && codes.has(fer.code)) {
11504
+ if (isFsError(er) && er.path === path36 && codes.has(er.code)) {
11532
11505
  backoff = Math.ceil(backoff * rate);
11533
11506
  total = backoff + total;
11534
11507
  if (total < mbo) {
11535
- return new Promise((res, rej) => {
11536
- setTimeout(() => {
11537
- method(path36, opt, backoff, total).then(res, rej);
11538
- }, backoff);
11539
- });
11508
+ await setTimeout2(backoff);
11509
+ return method(path36, opt, backoff, total);
11540
11510
  }
11541
11511
  if (retries < max) {
11542
11512
  retries++;
@@ -11557,8 +11527,7 @@ var retryBusySync = (fn) => {
11557
11527
  try {
11558
11528
  return fn(path36);
11559
11529
  } catch (er) {
11560
- const fer = er;
11561
- if (fer?.path === path36 && fer?.code && codes.has(fer.code) && retries < max) {
11530
+ if (isFsError(er) && er.path === path36 && codes.has(er.code) && retries < max) {
11562
11531
  retries++;
11563
11532
  continue;
11564
11533
  }
@@ -11569,23 +11538,23 @@ var retryBusySync = (fn) => {
11569
11538
  return method;
11570
11539
  };
11571
11540
 
11572
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-move-remove.js
11541
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-move-remove.js
11573
11542
  init_esm_shims();
11574
11543
  import { basename as basename3, parse as parse5, resolve as resolve6 } from "path";
11575
11544
 
11576
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/default-tmp.js
11545
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/default-tmp.js
11577
11546
  init_esm_shims();
11578
11547
  import { tmpdir } from "os";
11579
11548
  import { parse as parse4, resolve as resolve5 } from "path";
11580
- var { stat: stat5 } = promises;
11549
+ var { stat: stat4 } = promises;
11581
11550
  var isDirSync = (path36) => {
11582
11551
  try {
11583
11552
  return statSync(path36).isDirectory();
11584
- } catch (er) {
11553
+ } catch {
11585
11554
  return false;
11586
11555
  }
11587
11556
  };
11588
- var isDir = (path36) => stat5(path36).then((st) => st.isDirectory(), () => false);
11557
+ var isDir = (path36) => stat4(path36).then((st) => st.isDirectory(), () => false);
11589
11558
  var win32DefaultTmp = async (path36) => {
11590
11559
  const { root } = parse4(path36);
11591
11560
  const tmp = tmpdir();
@@ -11614,60 +11583,20 @@ var win32DefaultTmpSync = (path36) => {
11614
11583
  };
11615
11584
  var posixDefaultTmp = async () => tmpdir();
11616
11585
  var posixDefaultTmpSync = () => tmpdir();
11617
- var defaultTmp = platform_default === "win32" ? win32DefaultTmp : posixDefaultTmp;
11618
- var defaultTmpSync = platform_default === "win32" ? win32DefaultTmpSync : posixDefaultTmpSync;
11586
+ var defaultTmp = process.platform === "win32" ? win32DefaultTmp : posixDefaultTmp;
11587
+ var defaultTmpSync = process.platform === "win32" ? win32DefaultTmpSync : posixDefaultTmpSync;
11619
11588
 
11620
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-move-remove.js
11621
- var { lstat: lstat6, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chmod3 } = promises;
11589
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-move-remove.js
11590
+ var { lstat: lstat5, rename, unlink: unlink2, rmdir: rmdir2 } = promises;
11622
11591
  var uniqueFilename = (path36) => `.${basename3(path36)}.${Math.random()}`;
11623
- var unlinkFixEPERM = async (path36) => unlink3(path36).catch((er) => {
11624
- if (er.code === "EPERM") {
11625
- return chmod3(path36, 438).then(() => unlink3(path36), (er2) => {
11626
- if (er2.code === "ENOENT") {
11627
- return;
11628
- }
11629
- throw er;
11630
- });
11631
- } else if (er.code === "ENOENT") {
11632
- return;
11633
- }
11634
- throw er;
11635
- });
11636
- var unlinkFixEPERMSync = (path36) => {
11637
- try {
11638
- unlinkSync(path36);
11639
- } catch (er) {
11640
- if (er?.code === "EPERM") {
11641
- try {
11642
- return chmodSync(path36, 438);
11643
- } catch (er2) {
11644
- if (er2?.code === "ENOENT") {
11645
- return;
11646
- }
11647
- throw er;
11648
- }
11649
- } else if (er?.code === "ENOENT") {
11650
- return;
11651
- }
11652
- throw er;
11653
- }
11654
- };
11592
+ var unlinkFixEPERM = fixEPERM(unlink2);
11593
+ var unlinkFixEPERMSync = fixEPERMSync(unlinkSync);
11655
11594
  var rimrafMoveRemove = async (path36, opt) => {
11656
- if (opt?.signal?.aborted) {
11657
- throw opt.signal.reason;
11658
- }
11659
- try {
11660
- return await rimrafMoveRemoveDir(path36, opt, await lstat6(path36));
11661
- } catch (er) {
11662
- if (er?.code === "ENOENT")
11663
- return true;
11664
- throw er;
11665
- }
11595
+ opt?.signal?.throwIfAborted();
11596
+ return await ignoreENOENT(lstat5(path36).then((stat5) => rimrafMoveRemoveDir(path36, opt, stat5))) ?? true;
11666
11597
  };
11667
11598
  var rimrafMoveRemoveDir = async (path36, opt, ent) => {
11668
- if (opt?.signal?.aborted) {
11669
- throw opt.signal.reason;
11670
- }
11599
+ opt?.signal?.throwIfAborted();
11671
11600
  if (!opt.tmp) {
11672
11601
  return rimrafMoveRemoveDir(path36, { ...opt, tmp: await defaultTmp(path36) }, ent);
11673
11602
  }
@@ -11677,10 +11606,10 @@ var rimrafMoveRemoveDir = async (path36, opt, ent) => {
11677
11606
  const entries = ent.isDirectory() ? await readdirOrError(path36) : null;
11678
11607
  if (!Array.isArray(entries)) {
11679
11608
  if (entries) {
11680
- if (entries.code === "ENOENT") {
11609
+ if (errorCode(entries) === "ENOENT") {
11681
11610
  return true;
11682
11611
  }
11683
- if (entries.code !== "ENOTDIR") {
11612
+ if (errorCode(entries) !== "ENOTDIR") {
11684
11613
  throw entries;
11685
11614
  }
11686
11615
  }
@@ -11690,7 +11619,7 @@ var rimrafMoveRemoveDir = async (path36, opt, ent) => {
11690
11619
  await ignoreENOENT(tmpUnlink(path36, opt.tmp, unlinkFixEPERM));
11691
11620
  return true;
11692
11621
  }
11693
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(resolve6(path36, ent2.name), opt, ent2)))).reduce((a, b) => a && b, true);
11622
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(resolve6(path36, ent2.name), opt, ent2)))).every((v) => v === true);
11694
11623
  if (!removedAll) {
11695
11624
  return false;
11696
11625
  }
@@ -11700,30 +11629,20 @@ var rimrafMoveRemoveDir = async (path36, opt, ent) => {
11700
11629
  if (opt.filter && !await opt.filter(path36, ent)) {
11701
11630
  return false;
11702
11631
  }
11703
- await ignoreENOENT(tmpUnlink(path36, opt.tmp, rmdir3));
11632
+ await ignoreENOENT(tmpUnlink(path36, opt.tmp, rmdir2));
11704
11633
  return true;
11705
11634
  };
11706
- var tmpUnlink = async (path36, tmp, rm3) => {
11635
+ var tmpUnlink = async (path36, tmp, rm2) => {
11707
11636
  const tmpFile = resolve6(tmp, uniqueFilename(path36));
11708
- await rename2(path36, tmpFile);
11709
- return await rm3(tmpFile);
11637
+ await rename(path36, tmpFile);
11638
+ return await rm2(tmpFile);
11710
11639
  };
11711
11640
  var rimrafMoveRemoveSync = (path36, opt) => {
11712
- if (opt?.signal?.aborted) {
11713
- throw opt.signal.reason;
11714
- }
11715
- try {
11716
- return rimrafMoveRemoveDirSync(path36, opt, lstatSync2(path36));
11717
- } catch (er) {
11718
- if (er?.code === "ENOENT")
11719
- return true;
11720
- throw er;
11721
- }
11641
+ opt?.signal?.throwIfAborted();
11642
+ return ignoreENOENTSync(() => rimrafMoveRemoveDirSync(path36, opt, lstatSync2(path36))) ?? true;
11722
11643
  };
11723
11644
  var rimrafMoveRemoveDirSync = (path36, opt, ent) => {
11724
- if (opt?.signal?.aborted) {
11725
- throw opt.signal.reason;
11726
- }
11645
+ opt?.signal?.throwIfAborted();
11727
11646
  if (!opt.tmp) {
11728
11647
  return rimrafMoveRemoveDirSync(path36, { ...opt, tmp: defaultTmpSync(path36) }, ent);
11729
11648
  }
@@ -11734,10 +11653,10 @@ var rimrafMoveRemoveDirSync = (path36, opt, ent) => {
11734
11653
  const entries = ent.isDirectory() ? readdirOrErrorSync(path36) : null;
11735
11654
  if (!Array.isArray(entries)) {
11736
11655
  if (entries) {
11737
- if (entries.code === "ENOENT") {
11656
+ if (errorCode(entries) === "ENOENT") {
11738
11657
  return true;
11739
11658
  }
11740
- if (entries.code !== "ENOTDIR") {
11659
+ if (errorCode(entries) !== "ENOTDIR") {
11741
11660
  throw entries;
11742
11661
  }
11743
11662
  }
@@ -11770,37 +11689,32 @@ var tmpUnlinkSync = (path36, tmp, rmSync2) => {
11770
11689
  return rmSync2(tmpFile);
11771
11690
  };
11772
11691
 
11773
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-windows.js
11774
- var { unlink: unlink4, rmdir: rmdir4, lstat: lstat7 } = promises;
11775
- var rimrafWindowsFile = retryBusy(fixEPERM(unlink4));
11692
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-windows.js
11693
+ var { unlink: unlink3, rmdir: rmdir3, lstat: lstat6 } = promises;
11694
+ var rimrafWindowsFile = retryBusy(fixEPERM(unlink3));
11776
11695
  var rimrafWindowsFileSync = retryBusySync(fixEPERMSync(unlinkSync));
11777
- var rimrafWindowsDirRetry = retryBusy(fixEPERM(rmdir4));
11696
+ var rimrafWindowsDirRetry = retryBusy(fixEPERM(rmdir3));
11778
11697
  var rimrafWindowsDirRetrySync = retryBusySync(fixEPERMSync(rmdirSync));
11779
- var rimrafWindowsDirMoveRemoveFallback = async (path36, opt) => {
11780
- if (opt?.signal?.aborted) {
11781
- throw opt.signal.reason;
11782
- }
11783
- const { filter: filter3, ...options } = opt;
11698
+ var rimrafWindowsDirMoveRemoveFallback = async (path36, { filter: filter3, ...opt }) => {
11699
+ opt?.signal?.throwIfAborted();
11784
11700
  try {
11785
- return await rimrafWindowsDirRetry(path36, options);
11701
+ await rimrafWindowsDirRetry(path36, opt);
11702
+ return true;
11786
11703
  } catch (er) {
11787
- if (er?.code === "ENOTEMPTY") {
11788
- return await rimrafMoveRemove(path36, options);
11704
+ if (errorCode(er) === "ENOTEMPTY") {
11705
+ return rimrafMoveRemove(path36, opt);
11789
11706
  }
11790
11707
  throw er;
11791
11708
  }
11792
11709
  };
11793
- var rimrafWindowsDirMoveRemoveFallbackSync = (path36, opt) => {
11794
- if (opt?.signal?.aborted) {
11795
- throw opt.signal.reason;
11796
- }
11797
- const { filter: filter3, ...options } = opt;
11710
+ var rimrafWindowsDirMoveRemoveFallbackSync = (path36, { filter: filter3, ...opt }) => {
11711
+ opt?.signal?.throwIfAborted();
11798
11712
  try {
11799
- return rimrafWindowsDirRetrySync(path36, options);
11713
+ rimrafWindowsDirRetrySync(path36, opt);
11714
+ return true;
11800
11715
  } catch (er) {
11801
- const fer = er;
11802
- if (fer?.code === "ENOTEMPTY") {
11803
- return rimrafMoveRemoveSync(path36, options);
11716
+ if (errorCode(er) === "ENOTEMPTY") {
11717
+ return rimrafMoveRemoveSync(path36, opt);
11804
11718
  }
11805
11719
  throw er;
11806
11720
  }
@@ -11809,40 +11723,22 @@ var START = Symbol("start");
11809
11723
  var CHILD = Symbol("child");
11810
11724
  var FINISH = Symbol("finish");
11811
11725
  var rimrafWindows = async (path36, opt) => {
11812
- if (opt?.signal?.aborted) {
11813
- throw opt.signal.reason;
11814
- }
11815
- try {
11816
- return await rimrafWindowsDir(path36, opt, await lstat7(path36), START);
11817
- } catch (er) {
11818
- if (er?.code === "ENOENT")
11819
- return true;
11820
- throw er;
11821
- }
11726
+ opt?.signal?.throwIfAborted();
11727
+ return await ignoreENOENT(lstat6(path36).then((stat5) => rimrafWindowsDir(path36, opt, stat5, START))) ?? true;
11822
11728
  };
11823
11729
  var rimrafWindowsSync = (path36, opt) => {
11824
- if (opt?.signal?.aborted) {
11825
- throw opt.signal.reason;
11826
- }
11827
- try {
11828
- return rimrafWindowsDirSync(path36, opt, lstatSync2(path36), START);
11829
- } catch (er) {
11830
- if (er?.code === "ENOENT")
11831
- return true;
11832
- throw er;
11833
- }
11730
+ opt?.signal?.throwIfAborted();
11731
+ return ignoreENOENTSync(() => rimrafWindowsDirSync(path36, opt, lstatSync2(path36), START)) ?? true;
11834
11732
  };
11835
11733
  var rimrafWindowsDir = async (path36, opt, ent, state = START) => {
11836
- if (opt?.signal?.aborted) {
11837
- throw opt.signal.reason;
11838
- }
11734
+ opt?.signal?.throwIfAborted();
11839
11735
  const entries = ent.isDirectory() ? await readdirOrError(path36) : null;
11840
11736
  if (!Array.isArray(entries)) {
11841
11737
  if (entries) {
11842
- if (entries.code === "ENOENT") {
11738
+ if (errorCode(entries) === "ENOENT") {
11843
11739
  return true;
11844
11740
  }
11845
- if (entries.code !== "ENOTDIR") {
11741
+ if (errorCode(entries) !== "ENOTDIR") {
11846
11742
  throw entries;
11847
11743
  }
11848
11744
  }
@@ -11853,7 +11749,7 @@ var rimrafWindowsDir = async (path36, opt, ent, state = START) => {
11853
11749
  return true;
11854
11750
  }
11855
11751
  const s = state === START ? CHILD : state;
11856
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(resolve7(path36, ent2.name), opt, ent2, s)))).reduce((a, b) => a && b, true);
11752
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(resolve7(path36, ent2.name), opt, ent2, s)))).every((v) => v === true);
11857
11753
  if (state === START) {
11858
11754
  return rimrafWindowsDir(path36, opt, ent, FINISH);
11859
11755
  } else if (state === FINISH) {
@@ -11874,10 +11770,10 @@ var rimrafWindowsDirSync = (path36, opt, ent, state = START) => {
11874
11770
  const entries = ent.isDirectory() ? readdirOrErrorSync(path36) : null;
11875
11771
  if (!Array.isArray(entries)) {
11876
11772
  if (entries) {
11877
- if (entries.code === "ENOENT") {
11773
+ if (errorCode(entries) === "ENOENT") {
11878
11774
  return true;
11879
11775
  }
11880
- if (entries.code !== "ENOTDIR") {
11776
+ if (errorCode(entries) !== "ENOTDIR") {
11881
11777
  throw entries;
11882
11778
  }
11883
11779
  }
@@ -11905,22 +11801,20 @@ var rimrafWindowsDirSync = (path36, opt, ent, state = START) => {
11905
11801
  if (opt.filter && !opt.filter(path36, ent)) {
11906
11802
  return false;
11907
11803
  }
11908
- ignoreENOENTSync(() => {
11909
- rimrafWindowsDirMoveRemoveFallbackSync(path36, opt);
11910
- });
11804
+ ignoreENOENTSync(() => rimrafWindowsDirMoveRemoveFallbackSync(path36, opt));
11911
11805
  }
11912
11806
  return true;
11913
11807
  };
11914
11808
 
11915
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-manual.js
11916
- var rimrafManual = platform_default === "win32" ? rimrafWindows : rimrafPosix;
11917
- var rimrafManualSync = platform_default === "win32" ? rimrafWindowsSync : rimrafPosixSync;
11809
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-manual.js
11810
+ var rimrafManual = process.platform === "win32" ? rimrafWindows : rimrafPosix;
11811
+ var rimrafManualSync = process.platform === "win32" ? rimrafWindowsSync : rimrafPosixSync;
11918
11812
 
11919
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-native.js
11813
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/rimraf-native.js
11920
11814
  init_esm_shims();
11921
- var { rm: rm2 } = promises;
11815
+ var { rm } = promises;
11922
11816
  var rimrafNative = async (path36, opt) => {
11923
- await rm2(path36, {
11817
+ await rm(path36, {
11924
11818
  ...opt,
11925
11819
  force: true,
11926
11820
  recursive: true
@@ -11936,16 +11830,14 @@ var rimrafNativeSync = (path36, opt) => {
11936
11830
  return true;
11937
11831
  };
11938
11832
 
11939
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/use-native.js
11833
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/use-native.js
11940
11834
  init_esm_shims();
11941
- var version = process.env.__TESTING_RIMRAF_NODE_VERSION__ || process.version;
11942
- var versArr = version.replace(/^v/, "").split(".");
11943
- var [major = 0, minor = 0] = versArr.map((v) => parseInt(v, 10));
11835
+ var [major = 0, minor = 0] = process.version.replace(/^v/, "").split(".").map((v) => parseInt(v, 10));
11944
11836
  var hasNative = major > 14 || major === 14 && minor >= 14;
11945
- var useNative = !hasNative || platform_default === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
11946
- var useNativeSync = !hasNative || platform_default === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
11837
+ var useNative = !hasNative || process.platform === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
11838
+ var useNativeSync = !hasNative || process.platform === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
11947
11839
 
11948
- // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/index.js
11840
+ // ../../node_modules/.pnpm/rimraf@6.1.0/node_modules/rimraf/dist/esm/index.js
11949
11841
  var wrap = (fn) => async (path36, opt) => {
11950
11842
  const options = optArg(opt);
11951
11843
  if (options.glob) {
@@ -12571,7 +12463,7 @@ function createBuildService(ctx) {
12571
12463
  }
12572
12464
  const baseDir = typeof details === "object" && details && "watchedPath" in details ? details.watchedPath ?? absWorkerRoot : absWorkerRoot;
12573
12465
  const resolved = path11.isAbsolute(candidate) ? candidate : path11.resolve(baseDir, candidate);
12574
- const exists = fs7.existsSync(resolved);
12466
+ const exists = fs6.existsSync(resolved);
12575
12467
  if (exists) {
12576
12468
  logWorkerEvent("rename->add", resolved);
12577
12469
  return;
@@ -12695,11 +12587,11 @@ import { defu as defu5 } from "@weapp-core/shared";
12695
12587
 
12696
12588
  // ../../node_modules/.pnpm/local-pkg@1.1.2/node_modules/local-pkg/dist/index.mjs
12697
12589
  init_esm_shims();
12698
- import fs9 from "fs";
12590
+ import fs8 from "fs";
12699
12591
  import { createRequire as createRequire2 } from "module";
12700
12592
  import path13, { dirname as dirname4, join as join3, win32 as win322 } from "path";
12701
12593
  import process4 from "process";
12702
- import fsPromises from "fs/promises";
12594
+ import fsPromises2 from "fs/promises";
12703
12595
  import { fileURLToPath as fileURLToPath4 } from "url";
12704
12596
 
12705
12597
  // ../../node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs
@@ -18292,10 +18184,10 @@ pp.readWord = function() {
18292
18184
  }
18293
18185
  return this.finishToken(type, word);
18294
18186
  };
18295
- var version2 = "8.15.0";
18187
+ var version = "8.15.0";
18296
18188
  Parser.acorn = {
18297
18189
  Parser,
18298
- version: version2,
18190
+ version,
18299
18191
  defaultOptions: defaultOptions2,
18300
18192
  Position,
18301
18193
  SourceLocation,
@@ -18317,7 +18209,7 @@ Parser.acorn = {
18317
18209
 
18318
18210
  // ../../node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs
18319
18211
  import { builtinModules, createRequire } from "module";
18320
- import fs8, { realpathSync as realpathSync2, statSync as statSync2, promises as promises2 } from "fs";
18212
+ import fs7, { realpathSync as realpathSync2, statSync as statSync2, promises as promises2 } from "fs";
18321
18213
 
18322
18214
  // ../../node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.mjs
18323
18215
  init_esm_shims();
@@ -18721,7 +18613,7 @@ function read(jsonPath, { base, specifier }) {
18721
18613
  }
18722
18614
  let string;
18723
18615
  try {
18724
- string = fs8.readFileSync(path12.toNamespacedPath(jsonPath), "utf8");
18616
+ string = fs7.readFileSync(path12.toNamespacedPath(jsonPath), "utf8");
18725
18617
  } catch (error) {
18726
18618
  const exception = (
18727
18619
  /** @type {ErrnoException} */
@@ -19515,8 +19407,8 @@ function packageResolve(specifier, base, conditions) {
19515
19407
  let packageJsonPath = fileURLToPath$1(packageJsonUrl);
19516
19408
  let lastPath;
19517
19409
  do {
19518
- const stat6 = tryStatSync(packageJsonPath.slice(0, -13));
19519
- if (!stat6 || !stat6.isDirectory()) {
19410
+ const stat5 = tryStatSync(packageJsonPath.slice(0, -13));
19411
+ if (!stat5 || !stat5.isDirectory()) {
19520
19412
  lastPath = packageJsonPath;
19521
19413
  packageJsonUrl = new URL$1(
19522
19414
  (isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
@@ -19646,8 +19538,8 @@ function _resolve(id, options = {}) {
19646
19538
  }
19647
19539
  if (isAbsolute2(id)) {
19648
19540
  try {
19649
- const stat6 = statSync2(id);
19650
- if (stat6.isFile()) {
19541
+ const stat5 = statSync2(id);
19542
+ if (stat5.isFile()) {
19651
19543
  return pathToFileURL(id);
19652
19544
  }
19653
19545
  } catch (error) {
@@ -19832,7 +19724,7 @@ async function findUp$1(name, {
19832
19724
  while (directory) {
19833
19725
  const filePath = isAbsoluteName ? name : path13.join(directory, name);
19834
19726
  try {
19835
- const stats = await fsPromises.stat(filePath);
19727
+ const stats = await fsPromises2.stat(filePath);
19836
19728
  if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
19837
19729
  return filePath;
19838
19730
  }
@@ -19856,7 +19748,7 @@ function findUpSync(name, {
19856
19748
  while (directory) {
19857
19749
  const filePath = isAbsoluteName ? name : path13.join(directory, name);
19858
19750
  try {
19859
- const stats = fs9.statSync(filePath, { throwIfNoEntry: false });
19751
+ const stats = fs8.statSync(filePath, { throwIfNoEntry: false });
19860
19752
  if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
19861
19753
  return filePath;
19862
19754
  }
@@ -19902,8 +19794,8 @@ function getPackageJsonPath(name, options = {}) {
19902
19794
  return searchPackageJSON(entry);
19903
19795
  }
19904
19796
  var readFile = quansync2({
19905
- async: (id) => fs9.promises.readFile(id, "utf8"),
19906
- sync: (id) => fs9.readFileSync(id, "utf8")
19797
+ async: (id) => fs8.promises.readFile(id, "utf8"),
19798
+ sync: (id) => fs8.readFileSync(id, "utf8")
19907
19799
  });
19908
19800
  var getPackageInfo = quansync2(function* (name, options = {}) {
19909
19801
  const packageJsonPath = getPackageJsonPath(name, options);
@@ -19942,7 +19834,7 @@ function searchPackageJSON(dir) {
19942
19834
  return;
19943
19835
  dir = newDir;
19944
19836
  packageJsonPath = join3(dir, "package.json");
19945
- if (fs9.existsSync(packageJsonPath))
19837
+ if (fs8.existsSync(packageJsonPath))
19946
19838
  break;
19947
19839
  }
19948
19840
  return packageJsonPath;
@@ -19953,7 +19845,7 @@ var findUp = quansync2({
19953
19845
  });
19954
19846
  var loadPackageJSON = quansync2(function* (cwd = process4.cwd()) {
19955
19847
  const path36 = yield findUp("package.json", { cwd });
19956
- if (!path36 || !fs9.existsSync(path36))
19848
+ if (!path36 || !fs8.existsSync(path36))
19957
19849
  return null;
19958
19850
  return JSON.parse(yield readFile(path36));
19959
19851
  });
@@ -19966,7 +19858,7 @@ var isPackageListedSync = isPackageListed.sync;
19966
19858
 
19967
19859
  // ../../node_modules/.pnpm/package-manager-detector@1.5.0/node_modules/package-manager-detector/dist/detect.mjs
19968
19860
  init_esm_shims();
19969
- import fs10 from "fs/promises";
19861
+ import fs9 from "fs/promises";
19970
19862
  import path14 from "path";
19971
19863
  import process5 from "process";
19972
19864
 
@@ -20010,8 +19902,8 @@ var INSTALL_METADATA = {
20010
19902
  // ../../node_modules/.pnpm/package-manager-detector@1.5.0/node_modules/package-manager-detector/dist/detect.mjs
20011
19903
  async function pathExists(path210, type) {
20012
19904
  try {
20013
- const stat6 = await fs10.stat(path210);
20014
- return type === "file" ? stat6.isFile() : stat6.isDirectory();
19905
+ const stat5 = await fs9.stat(path210);
19906
+ return type === "file" ? stat5.isFile() : stat5.isDirectory();
20015
19907
  } catch {
20016
19908
  return false;
20017
19909
  }
@@ -20082,7 +19974,7 @@ async function detect(options = {}) {
20082
19974
  return null;
20083
19975
  }
20084
19976
  function getNameAndVer(pkg) {
20085
- const handelVer = (version3) => version3?.match(/\d+(\.\d+){0,2}/)?.[0] ?? version3;
19977
+ const handelVer = (version2) => version2?.match(/\d+(\.\d+){0,2}/)?.[0] ?? version2;
20086
19978
  if (typeof pkg.packageManager === "string") {
20087
19979
  const [name, ver] = pkg.packageManager.replace(/^\^/, "").split("@");
20088
19980
  return { name, ver: handelVer(ver) };
@@ -20097,23 +19989,23 @@ function getNameAndVer(pkg) {
20097
19989
  }
20098
19990
  async function handlePackageManager(filepath, onUnknown) {
20099
19991
  try {
20100
- const pkg = JSON.parse(await fs10.readFile(filepath, "utf8"));
19992
+ const pkg = JSON.parse(await fs9.readFile(filepath, "utf8"));
20101
19993
  let agent;
20102
19994
  const nameAndVer = getNameAndVer(pkg);
20103
19995
  if (nameAndVer) {
20104
19996
  const name = nameAndVer.name;
20105
19997
  const ver = nameAndVer.ver;
20106
- let version3 = ver;
19998
+ let version2 = ver;
20107
19999
  if (name === "yarn" && ver && Number.parseInt(ver) > 1) {
20108
20000
  agent = "yarn@berry";
20109
- version3 = "berry";
20110
- return { name, agent, version: version3 };
20001
+ version2 = "berry";
20002
+ return { name, agent, version: version2 };
20111
20003
  } else if (name === "pnpm" && ver && Number.parseInt(ver) < 7) {
20112
20004
  agent = "pnpm@6";
20113
- return { name, agent, version: version3 };
20005
+ return { name, agent, version: version2 };
20114
20006
  } else if (AGENTS.includes(name)) {
20115
20007
  agent = name;
20116
- return { name, agent, version: version3 };
20008
+ return { name, agent, version: version2 };
20117
20009
  } else {
20118
20010
  return onUnknown?.(pkg.packageManager) ?? null;
20119
20011
  }
@@ -20131,7 +20023,7 @@ import path32 from "pathe";
20131
20023
 
20132
20024
  // src/runtime/oxcRuntime.ts
20133
20025
  init_esm_shims();
20134
- import fs11 from "fs-extra";
20026
+ import fs10 from "fs-extra";
20135
20027
  import path15 from "pathe";
20136
20028
  var NULL_BYTE = "\0";
20137
20029
  var OXC_RUNTIME_HELPER_ALIAS = new RegExp(`^(?:${NULL_BYTE})?@oxc-project(?:/|\\+)runtime(?:@[^/]+)?/helpers/(.+)\\.js$`);
@@ -20241,9 +20133,9 @@ function createOxcRuntimeSupport() {
20241
20133
  const helperName = getOxcHelperName(id);
20242
20134
  if (helperName) {
20243
20135
  const helperPath = id.startsWith(NULL_BYTE) ? path15.resolve(oxcRuntimeHelpersRoot, `${helperName}.js`) : id;
20244
- if (await fs11.pathExists(helperPath)) {
20136
+ if (await fs10.pathExists(helperPath)) {
20245
20137
  logger_default.warn(`[weapp-vite] resolving oxc helper via Rolldown plugin: ${helperName}`);
20246
- return fs11.readFile(helperPath, "utf8");
20138
+ return fs10.readFile(helperPath, "utf8");
20247
20139
  }
20248
20140
  const fallback = fallbackHelpers[helperName];
20249
20141
  if (fallback) {
@@ -20279,7 +20171,7 @@ function createOxcRuntimeSupport() {
20279
20171
  }
20280
20172
  const helperPath = path15.resolve(oxcRuntimeHelpersRoot, `${helperName}.js`);
20281
20173
  logger_default.warn(`[weapp-vite] resolving oxc helper via Vite plugin: ${helperName}`);
20282
- return fs11.readFile(helperPath, "utf8");
20174
+ return fs10.readFile(helperPath, "utf8");
20283
20175
  }
20284
20176
  };
20285
20177
  return {
@@ -20372,7 +20264,7 @@ function createAliasManager(oxcAlias, builtinAliases) {
20372
20264
  // src/runtime/config/internal/loadConfig.ts
20373
20265
  init_esm_shims();
20374
20266
  import { defu } from "@weapp-core/shared";
20375
- import fs12 from "fs-extra";
20267
+ import fs11 from "fs-extra";
20376
20268
  import path18 from "pathe";
20377
20269
  import { loadConfigFromFile } from "vite";
20378
20270
  import tsconfigPaths from "vite-tsconfig-paths";
@@ -20681,8 +20573,8 @@ function createLoadConfig(options) {
20681
20573
  }
20682
20574
  const packageJsonPath = path18.resolve(cwd, "package.json");
20683
20575
  let packageJson = {};
20684
- if (await fs12.exists(packageJsonPath)) {
20685
- const content = await fs12.readJson(packageJsonPath, {
20576
+ if (await fs11.exists(packageJsonPath)) {
20577
+ const content = await fs11.readJson(packageJsonPath, {
20686
20578
  throws: false
20687
20579
  }) || {};
20688
20580
  packageJson = content;
@@ -20869,7 +20761,7 @@ import { wrapPlugin } from "vite-plugin-performance";
20869
20761
  // src/plugins/asset.ts
20870
20762
  init_esm_shims();
20871
20763
  import { fdir as Fdir2 } from "fdir";
20872
- import fs13 from "fs-extra";
20764
+ import fs12 from "fs-extra";
20873
20765
  import path19 from "pathe";
20874
20766
  function normalizeCopyGlobs(globs) {
20875
20767
  return Array.isArray(globs) ? globs : [];
@@ -20912,7 +20804,7 @@ function scanAssetFiles(configService, config) {
20912
20804
  Array.from(files).filter(filter3).map(async (file) => {
20913
20805
  return {
20914
20806
  file,
20915
- buffer: await fs13.readFile(file)
20807
+ buffer: await fs12.readFile(file)
20916
20808
  };
20917
20809
  })
20918
20810
  );
@@ -21160,13 +21052,13 @@ function autoRoutes(ctx) {
21160
21052
  // src/plugins/core.ts
21161
21053
  init_esm_shims();
21162
21054
  import { isEmptyObject as isEmptyObject2, isObject as isObject6, removeExtensionDeep as removeExtensionDeep5 } from "@weapp-core/shared";
21163
- import fs17 from "fs-extra";
21055
+ import fs16 from "fs-extra";
21164
21056
  import path26 from "pathe";
21165
21057
 
21166
21058
  // src/plugins/css/shared/preprocessor.ts
21167
21059
  init_esm_shims();
21168
21060
  import { createHash } from "crypto";
21169
- import fs14 from "fs-extra";
21061
+ import fs13 from "fs-extra";
21170
21062
  import path21 from "pathe";
21171
21063
  import { preprocessCSS } from "vite";
21172
21064
 
@@ -21336,7 +21228,7 @@ async function renderSharedStyleEntry(entry, _configService, resolvedConfig) {
21336
21228
  const cacheKey = `${absolutePath}:${resolvedConfig ? "resolved" : "raw"}`;
21337
21229
  let stats;
21338
21230
  try {
21339
- stats = await fs14.stat(absolutePath);
21231
+ stats = await fs13.stat(absolutePath);
21340
21232
  } catch (error) {
21341
21233
  const reason = error instanceof Error ? error.message : String(error);
21342
21234
  throw new Error(`[subpackages] \u7F16\u8BD1\u5171\u4EAB\u6837\u5F0F \`${entry.source}\` \u5931\u8D25\uFF1A${reason}`);
@@ -21349,7 +21241,7 @@ async function renderSharedStyleEntry(entry, _configService, resolvedConfig) {
21349
21241
  };
21350
21242
  }
21351
21243
  try {
21352
- const css2 = await fs14.readFile(absolutePath, "utf8");
21244
+ const css2 = await fs13.readFile(absolutePath, "utf8");
21353
21245
  if (!resolvedConfig) {
21354
21246
  const result2 = {
21355
21247
  css: css2,
@@ -21496,7 +21388,7 @@ function createJsonEmitManager(configService) {
21496
21388
  init_esm_shims();
21497
21389
  import { performance as performance3 } from "perf_hooks";
21498
21390
  import { removeExtensionDeep as removeExtensionDeep3 } from "@weapp-core/shared";
21499
- import fs15 from "fs-extra";
21391
+ import fs14 from "fs-extra";
21500
21392
 
21501
21393
  // ../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs
21502
21394
  init_esm_shims();
@@ -22662,7 +22554,7 @@ async function addWatchTarget(pluginCtx, target, existsCache) {
22662
22554
  pluginCtx.addWatchFile(target);
22663
22555
  return cached;
22664
22556
  }
22665
- const exists = await fs15.exists(target);
22557
+ const exists = await fs14.exists(target);
22666
22558
  pluginCtx.addWatchFile(target);
22667
22559
  existsCache.set(target, exists);
22668
22560
  return exists;
@@ -22854,7 +22746,7 @@ function createEntryLoader(options) {
22854
22746
  type: "plugin"
22855
22747
  });
22856
22748
  }
22857
- const code = await fs15.readFile(id, "utf8");
22749
+ const code = await fs14.readFile(id, "utf8");
22858
22750
  const styleImports = await collectStyleImports(this, id, existsCache);
22859
22751
  debug4?.(`loadEntry ${relativeCwdId} \u8017\u65F6 ${getTime()}`);
22860
22752
  if (styleImports.length === 0) {
@@ -22991,7 +22883,7 @@ function collectRequireTokens(ast) {
22991
22883
 
22992
22884
  // src/plugins/utils/invalidateEntry.ts
22993
22885
  init_esm_shims();
22994
- import fs16 from "fs";
22886
+ import fs15 from "fs";
22995
22887
  import process6 from "process";
22996
22888
  import path25 from "pathe";
22997
22889
  var watchedCssExts = new Set(supportedCssLangs.map((ext2) => `.${ext2}`));
@@ -23077,7 +22969,7 @@ function registerCssImports(ctx, importer, dependencies) {
23077
22969
  }
23078
22970
  async function extractCssImportDependencies(ctx, importer) {
23079
22971
  try {
23080
- const stats = await fs16.promises.stat(importer);
22972
+ const stats = await fs15.promises.stat(importer);
23081
22973
  if (!stats.isFile()) {
23082
22974
  cleanupImporterGraph(ctx, importer);
23083
22975
  return;
@@ -23088,7 +22980,7 @@ async function extractCssImportDependencies(ctx, importer) {
23088
22980
  }
23089
22981
  let cssContent;
23090
22982
  try {
23091
- cssContent = await fs16.promises.readFile(importer, "utf8");
22983
+ cssContent = await fs15.promises.readFile(importer, "utf8");
23092
22984
  } catch {
23093
22985
  cleanupImporterGraph(ctx, importer);
23094
22986
  return;
@@ -23270,7 +23162,7 @@ function ensureSidecarWatcher(ctx, rootDir) {
23270
23162
  }
23271
23163
  const { sidecarWatcherMap } = ctx.runtimeState.watcher;
23272
23164
  const absRoot = path25.normalize(rootDir);
23273
- if (!fs16.existsSync(absRoot)) {
23165
+ if (!fs15.existsSync(absRoot)) {
23274
23166
  return;
23275
23167
  }
23276
23168
  if (sidecarWatcherMap.has(absRoot)) {
@@ -23337,7 +23229,7 @@ function ensureSidecarWatcher(ctx, rootDir) {
23337
23229
  }
23338
23230
  const baseDir = typeof details === "object" && details && "watchedPath" in details ? details.watchedPath ?? absRoot : absRoot;
23339
23231
  const resolved = path25.isAbsolute(candidate) ? candidate : path25.resolve(baseDir, candidate);
23340
- const exists = fs16.existsSync(resolved);
23232
+ const exists = fs15.existsSync(resolved);
23341
23233
  const derivedEvent = exists ? "create" : "delete";
23342
23234
  const relativeResolved = ctx.configService.relativeCwd(resolved);
23343
23235
  logger_default.info(`[watch:rename->${derivedEvent}] ${relativeResolved}`);
@@ -23797,8 +23689,8 @@ function createCoreLifecyclePlugin(state) {
23797
23689
  if (parsed.query.wxss) {
23798
23690
  const realPath = getCssRealPath(parsed);
23799
23691
  this.addWatchFile(realPath);
23800
- if (await fs17.exists(realPath)) {
23801
- const css2 = await fs17.readFile(realPath, "utf8");
23692
+ if (await fs16.exists(realPath)) {
23693
+ const css2 = await fs16.readFile(realPath, "utf8");
23802
23694
  return { code: css2 };
23803
23695
  }
23804
23696
  }
@@ -24005,7 +23897,7 @@ async function flushIndependentBuilds(state) {
24005
23897
 
24006
23898
  // src/plugins/css.ts
24007
23899
  init_esm_shims();
24008
- import fs18 from "fs-extra";
23900
+ import fs17 from "fs-extra";
24009
23901
  import path28 from "pathe";
24010
23902
 
24011
23903
  // src/plugins/css/shared/sharedStyles.ts
@@ -24223,7 +24115,7 @@ async function handleBundleEntry(bundle, bundleKey, asset2, configService, share
24223
24115
  }
24224
24116
  if (fileName && fileName !== bundleKey) {
24225
24117
  delete bundle[bundleKey];
24226
- const css2 = await fs18.readFile(absOriginal, "utf8");
24118
+ const css2 = await fs17.readFile(absOriginal, "utf8");
24227
24119
  this.emitFile({
24228
24120
  type: "asset",
24229
24121
  fileName,
@@ -24284,7 +24176,7 @@ async function emitSharedStyleEntries(sharedStyles, emitted, configService, bund
24284
24176
  if (typeof this.addWatchFile === "function") {
24285
24177
  this.addWatchFile(absolutePath);
24286
24178
  }
24287
- if (!await fs18.pathExists(absolutePath)) {
24179
+ if (!await fs17.pathExists(absolutePath)) {
24288
24180
  continue;
24289
24181
  }
24290
24182
  const { css: renderedCss, dependencies } = await renderSharedStyleEntry(entry, configService, resolvedConfig);
@@ -24427,7 +24319,7 @@ function preflight(ctx) {
24427
24319
  init_esm_shims();
24428
24320
  import { createHash as createHash2 } from "crypto";
24429
24321
  import { removeExtension as removeExtension2 } from "@weapp-core/shared";
24430
- import fs19 from "fs-extra";
24322
+ import fs18 from "fs-extra";
24431
24323
  import path29 from "pathe";
24432
24324
  async function resolveWorkerEntry(ctx, entry) {
24433
24325
  const { configService, scanService } = ctx;
@@ -24435,7 +24327,7 @@ async function resolveWorkerEntry(ctx, entry) {
24435
24327
  const key = removeExtension2(relativeEntryPath);
24436
24328
  const absoluteEntry = path29.resolve(configService.absoluteSrcRoot, relativeEntryPath);
24437
24329
  if (isJsOrTs(entry)) {
24438
- const exists = await fs19.exists(absoluteEntry);
24330
+ const exists = await fs18.exists(absoluteEntry);
24439
24331
  if (!exists) {
24440
24332
  logger_default.warn(`\u5F15\u7528 worker: \`${configService.relativeCwd(relativeEntryPath)}\` \u4E0D\u5B58\u5728!`);
24441
24333
  return { key };
@@ -24490,7 +24382,7 @@ function workers(ctx) {
24490
24382
  // src/plugins/wxs.ts
24491
24383
  init_esm_shims();
24492
24384
  import { removeExtension as removeExtension3 } from "@weapp-core/shared";
24493
- import fs20 from "fs-extra";
24385
+ import fs19 from "fs-extra";
24494
24386
  import path30 from "pathe";
24495
24387
  var wxsCodeCache = new LRUCache({
24496
24388
  max: 512
@@ -24499,7 +24391,7 @@ async function transformWxsFile(state, wxsPath) {
24499
24391
  const { ctx } = state;
24500
24392
  const { configService } = ctx;
24501
24393
  this.addWatchFile(wxsPath);
24502
- if (!await fs20.exists(wxsPath)) {
24394
+ if (!await fs19.exists(wxsPath)) {
24503
24395
  return;
24504
24396
  }
24505
24397
  const suffixMatch = wxsPath.match(/\.wxs(\.[jt]s)?$/);
@@ -24507,7 +24399,7 @@ async function transformWxsFile(state, wxsPath) {
24507
24399
  if (suffixMatch) {
24508
24400
  isRaw = !suffixMatch[1];
24509
24401
  }
24510
- const rawCode = await fs20.readFile(wxsPath, "utf8");
24402
+ const rawCode = await fs19.readFile(wxsPath, "utf8");
24511
24403
  let code = wxsCodeCache.get(rawCode);
24512
24404
  if (code === void 0) {
24513
24405
  const { result, importees } = transformWxsCode(rawCode, {
@@ -25059,7 +24951,7 @@ init_esm_shims();
25059
24951
  import { createRequire as createRequire3 } from "module";
25060
24952
  import process8 from "process";
25061
24953
  import { parse as parseJson2 } from "comment-json";
25062
- import fs21 from "fs-extra";
24954
+ import fs20 from "fs-extra";
25063
24955
  import { bundleRequire } from "rolldown-require";
25064
24956
  function parseCommentJson(json) {
25065
24957
  return parseJson2(json, void 0, true);
@@ -25124,7 +25016,7 @@ function createJsonService(ctx) {
25124
25016
  });
25125
25017
  resultJson = typeof mod.default === "function" ? await mod.default(ctx) : mod.default;
25126
25018
  } else {
25127
- resultJson = parseCommentJson(await fs21.readFile(filepath, "utf8"));
25019
+ resultJson = parseCommentJson(await fs20.readFile(filepath, "utf8"));
25128
25020
  }
25129
25021
  cache2.set(filepath, resultJson);
25130
25022
  return resultJson;
@@ -25157,7 +25049,7 @@ function createJsonServicePlugin(ctx) {
25157
25049
  init_esm_shims();
25158
25050
  import { isBuiltin } from "module";
25159
25051
  import { defu as defu6, isObject as isObject8, objectHash } from "@weapp-core/shared";
25160
- import fs22 from "fs-extra";
25052
+ import fs21 from "fs-extra";
25161
25053
  import path33 from "pathe";
25162
25054
  import { build as tsdownBuild } from "tsdown";
25163
25055
  function createNpmService(ctx) {
@@ -25179,22 +25071,22 @@ function createNpmService(ctx) {
25179
25071
  return Reflect.has(pkg, "miniprogram") && typeof pkg.miniprogram === "string";
25180
25072
  }
25181
25073
  async function shouldSkipBuild(outDir, isOutdated) {
25182
- return !isOutdated && await fs22.exists(outDir);
25074
+ return !isOutdated && await fs21.exists(outDir);
25183
25075
  }
25184
25076
  async function writeDependenciesCache(root) {
25185
25077
  if (!ctx.configService) {
25186
25078
  throw new Error("configService must be initialized before writing npm cache");
25187
25079
  }
25188
25080
  if (ctx.configService.weappViteConfig?.npm?.cache) {
25189
- await fs22.outputJSON(getDependenciesCacheFilePath(root), {
25081
+ await fs21.outputJSON(getDependenciesCacheFilePath(root), {
25190
25082
  hash: dependenciesCacheHash()
25191
25083
  });
25192
25084
  }
25193
25085
  }
25194
25086
  async function readDependenciesCache(root) {
25195
25087
  const cachePath = getDependenciesCacheFilePath(root);
25196
- if (await fs22.exists(cachePath)) {
25197
- return await fs22.readJson(cachePath, { throws: false });
25088
+ if (await fs21.exists(cachePath)) {
25089
+ return await fs21.readJson(cachePath, { throws: false });
25198
25090
  }
25199
25091
  }
25200
25092
  async function checkDependenciesCacheOutdate(root) {
@@ -25258,7 +25150,7 @@ function createNpmService(ctx) {
25258
25150
  }
25259
25151
  }
25260
25152
  async function copyBuild({ from, to }) {
25261
- await fs22.copy(
25153
+ await fs21.copy(
25262
25154
  from,
25263
25155
  to
25264
25156
  );
@@ -25351,8 +25243,8 @@ function createNpmService(ctx) {
25351
25243
  const packNpmRelationList = getPackNpmRelationList();
25352
25244
  const [mainRelation, ...subRelations] = packNpmRelationList;
25353
25245
  const packageJsonPath = path33.resolve(ctx.configService.cwd, mainRelation.packageJsonPath);
25354
- if (await fs22.exists(packageJsonPath)) {
25355
- const pkgJson = await fs22.readJson(packageJsonPath);
25246
+ if (await fs21.exists(packageJsonPath)) {
25247
+ const pkgJson = await fs21.readJson(packageJsonPath);
25356
25248
  const outDir = path33.resolve(ctx.configService.cwd, mainRelation.miniprogramNpmDistDir, "miniprogram_npm");
25357
25249
  if (pkgJson.dependencies) {
25358
25250
  const dependencies = Object.keys(pkgJson.dependencies);
@@ -25387,8 +25279,8 @@ function createNpmService(ctx) {
25387
25279
  await Promise.all(targetDirs.map(async (x) => {
25388
25280
  if (x.root) {
25389
25281
  const isDependenciesCacheOutdate2 = await checkDependenciesCacheOutdate(x.root);
25390
- if (isDependenciesCacheOutdate2 || !await fs22.exists(x.npmDistDir)) {
25391
- await fs22.copy(outDir, x.npmDistDir, {
25282
+ if (isDependenciesCacheOutdate2 || !await fs21.exists(x.npmDistDir)) {
25283
+ await fs21.copy(outDir, x.npmDistDir, {
25392
25284
  overwrite: true,
25393
25285
  filter: (src) => {
25394
25286
  if (Array.isArray(x.dependencies)) {
@@ -25404,7 +25296,7 @@ function createNpmService(ctx) {
25404
25296
  }
25405
25297
  await writeDependenciesCache(x.root);
25406
25298
  } else {
25407
- await fs22.copy(outDir, x.npmDistDir, {
25299
+ await fs21.copy(outDir, x.npmDistDir, {
25408
25300
  overwrite: true,
25409
25301
  filter: (src) => {
25410
25302
  if (Array.isArray(x.dependencies)) {
@@ -26161,7 +26053,7 @@ init_esm_shims();
26161
26053
 
26162
26054
  // src/cache/file.ts
26163
26055
  init_esm_shims();
26164
- import fs23 from "fs-extra";
26056
+ import fs22 from "fs-extra";
26165
26057
  var FNV_OFFSET_BASIS = 0xCBF29CE484222325n;
26166
26058
  var FNV_PRIME = 0x100000001B3n;
26167
26059
  var FNV_MASK = 0xFFFFFFFFFFFFFFFFn;
@@ -26211,8 +26103,8 @@ var FileCache = class {
26211
26103
  async isInvalidate(id, options) {
26212
26104
  let mtimeMs;
26213
26105
  try {
26214
- const stat6 = await fs23.stat(id);
26215
- mtimeMs = stat6.mtimeMs;
26106
+ const stat5 = await fs22.stat(id);
26107
+ mtimeMs = stat5.mtimeMs;
26216
26108
  } catch (error) {
26217
26109
  if (error && error.code === "ENOENT") {
26218
26110
  this.cache.delete(id);
@@ -26373,7 +26265,7 @@ function createRuntimeState() {
26373
26265
  // src/runtime/scanPlugin.ts
26374
26266
  init_esm_shims();
26375
26267
  import { isObject as isObject9, removeExtensionDeep as removeExtensionDeep6 } from "@weapp-core/shared";
26376
- import fs24 from "fs-extra";
26268
+ import fs23 from "fs-extra";
26377
26269
  import path34 from "pathe";
26378
26270
  var SUPPORTED_SHARED_STYLE_EXTENSIONS = [
26379
26271
  ".wxss",
@@ -26611,7 +26503,7 @@ function appendDefaultScopedStyleEntries(root, normalizedRoot, service, dedupe,
26611
26503
  for (const ext2 of DEFAULT_SCOPED_EXTENSIONS) {
26612
26504
  const filename = `${base}${ext2}`;
26613
26505
  const absolutePath = path34.resolve(absoluteSubRoot, filename);
26614
- if (!fs24.existsSync(absolutePath)) {
26506
+ if (!fs23.existsSync(absolutePath)) {
26615
26507
  continue;
26616
26508
  }
26617
26509
  const descriptor = {
@@ -26656,7 +26548,7 @@ function normalizeSubPackageStyleEntries(styles, subPackage, configService) {
26656
26548
  logger_default.warn(`[subpackages] \u5206\u5305 ${root} \u6837\u5F0F\u5165\u53E3 \`${descriptor.source}\` \u89E3\u6790\u5931\u8D25\uFF0C\u5DF2\u5FFD\u7565\u3002`);
26657
26549
  continue;
26658
26550
  }
26659
- if (!fs24.existsSync(absolutePath)) {
26551
+ if (!fs23.existsSync(absolutePath)) {
26660
26552
  logger_default.warn(`[subpackages] \u5206\u5305 ${root} \u6837\u5F0F\u5165\u53E3 \`${descriptor.source}\` \u5BF9\u5E94\u6587\u4EF6\u4E0D\u5B58\u5728\uFF0C\u5DF2\u5FFD\u7565\u3002`);
26661
26553
  continue;
26662
26554
  }
@@ -27002,7 +26894,7 @@ function createWebServicePlugin(ctx) {
27002
26894
  // src/runtime/wxmlPlugin.ts
27003
26895
  init_esm_shims();
27004
26896
  import { removeExtensionDeep as removeExtensionDeep7 } from "@weapp-core/shared";
27005
- import fs25 from "fs-extra";
26897
+ import fs24 from "fs-extra";
27006
26898
  import path35 from "pathe";
27007
26899
 
27008
26900
  // src/wxml/index.ts
@@ -29710,9 +29602,9 @@ function createWxmlService(ctx) {
29710
29602
  if (!ctx.configService) {
29711
29603
  throw new Error("configService must be initialized before scanning wxml");
29712
29604
  }
29713
- if (await fs25.exists(filepath)) {
29605
+ if (await fs24.exists(filepath)) {
29714
29606
  const dirname5 = path35.dirname(filepath);
29715
- const wxml = await fs25.readFile(filepath, "utf8");
29607
+ const wxml = await fs24.readFile(filepath, "utf8");
29716
29608
  const shouldRescan = await cache2.isInvalidate(filepath, { content: wxml });
29717
29609
  if (!shouldRescan) {
29718
29610
  const cached = cache2.get(filepath);