weapp-vite 5.2.3 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -916,13 +916,55 @@ function checkRuntime(minVersions) {
916
916
  }
917
917
  }
918
918
 
919
+ // src/utils/weappConfig.ts
920
+ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
921
+ var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
922
+ var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);
923
+ var WEAPP_VITE_CONFIG_CANDIDATES = [
924
+ "weapp-vite.config.ts",
925
+ "weapp-vite.config.mts",
926
+ "weapp-vite.config.cts",
927
+ "weapp-vite.config.js",
928
+ "weapp-vite.config.mjs",
929
+ "weapp-vite.config.cjs",
930
+ "weapp-vite.config.json"
931
+ ];
932
+ var WEAPP_VITE_CONFIG_SET = new Set(WEAPP_VITE_CONFIG_CANDIDATES);
933
+ async function findWeappConfigInDirectory(directory) {
934
+ for (const filename of WEAPP_VITE_CONFIG_CANDIDATES) {
935
+ const candidatePath = _pathe2.default.resolve(directory, filename);
936
+ if (await _fsextra2.default.pathExists(candidatePath)) {
937
+ return candidatePath;
938
+ }
939
+ }
940
+ return void 0;
941
+ }
942
+ async function resolveWeappConfigFile(options) {
943
+ const { root, specified } = options;
944
+ if (specified) {
945
+ const resolvedSpecified = _pathe2.default.isAbsolute(specified) ? specified : _pathe2.default.resolve(root, specified);
946
+ const specifiedBaseName = _pathe2.default.basename(resolvedSpecified);
947
+ if (WEAPP_VITE_CONFIG_SET.has(specifiedBaseName)) {
948
+ if (await _fsextra2.default.pathExists(resolvedSpecified)) {
949
+ return resolvedSpecified;
950
+ }
951
+ return void 0;
952
+ }
953
+ const fromSpecifiedDirectory = await findWeappConfigInDirectory(_pathe2.default.dirname(resolvedSpecified));
954
+ if (fromSpecifiedDirectory) {
955
+ return fromSpecifiedDirectory;
956
+ }
957
+ }
958
+ return findWeappConfigInDirectory(root);
959
+ }
960
+
919
961
  // src/utils/index.ts
920
962
  _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
921
963
 
922
964
  // src/utils/file.ts
923
965
  _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
924
- var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
925
- var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);
966
+
967
+
926
968
  function isJsOrTs(name) {
927
969
  if (typeof name === "string") {
928
970
  return /\.[jt]s$/.test(name);
@@ -1171,6 +1213,7 @@ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
1171
1213
  _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
1172
1214
 
1173
1215
 
1216
+
1174
1217
  // ../../node_modules/.pnpm/lru-cache@11.2.2/node_modules/lru-cache/dist/esm/index.js
1175
1218
  _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
1176
1219
  var defaultPerf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
@@ -2574,6 +2617,7 @@ var LRUCache = (_class4 = class _LRUCache {
2574
2617
  }, _class4);
2575
2618
 
2576
2619
  // src/runtime/autoImportPlugin.ts
2620
+
2577
2621
  var _picomatch = require('picomatch'); var _picomatch2 = _interopRequireDefault(_picomatch);
2578
2622
 
2579
2623
  // src/context/shared.ts
@@ -2636,6 +2680,96 @@ function logWarnOnce(message) {
2636
2680
  function createAutoImportService(ctx) {
2637
2681
  const autoImportState = ctx.runtimeState.autoImport;
2638
2682
  const registry = autoImportState.registry;
2683
+ const manifestFileName = "auto-import-components.json";
2684
+ let pendingWrite;
2685
+ let writeRequested = false;
2686
+ function resolveManifestOutputPath() {
2687
+ const configService = ctx.configService;
2688
+ if (!configService) {
2689
+ return void 0;
2690
+ }
2691
+ const autoImportConfig = _optionalChain([configService, 'access', _63 => _63.weappViteConfig, 'optionalAccess', _64 => _64.enhance, 'optionalAccess', _65 => _65.autoImportComponents]);
2692
+ if (!autoImportConfig) {
2693
+ return void 0;
2694
+ }
2695
+ const baseDir = (() => {
2696
+ const configFilePath = configService.configFilePath;
2697
+ if (configFilePath) {
2698
+ return _pathe2.default.dirname(configFilePath);
2699
+ }
2700
+ return configService.cwd;
2701
+ })();
2702
+ const outputOption = autoImportConfig.output;
2703
+ if (outputOption === false) {
2704
+ return void 0;
2705
+ }
2706
+ if (typeof outputOption === "string" && outputOption.length > 0) {
2707
+ return _pathe2.default.isAbsolute(outputOption) ? outputOption : _pathe2.default.resolve(baseDir, outputOption);
2708
+ }
2709
+ return _pathe2.default.resolve(baseDir, manifestFileName);
2710
+ }
2711
+ function collectResolverComponents() {
2712
+ const resolvers = _optionalChain([ctx, 'access', _66 => _66.configService, 'optionalAccess', _67 => _67.weappViteConfig, 'optionalAccess', _68 => _68.enhance, 'optionalAccess', _69 => _69.autoImportComponents, 'optionalAccess', _70 => _70.resolvers]);
2713
+ if (!Array.isArray(resolvers)) {
2714
+ return {};
2715
+ }
2716
+ const entries = [];
2717
+ for (const resolver of resolvers) {
2718
+ const map = _optionalChain([resolver, 'optionalAccess', _71 => _71.components]);
2719
+ if (!map) {
2720
+ continue;
2721
+ }
2722
+ for (const [name, from] of Object.entries(map)) {
2723
+ entries.push([name, from]);
2724
+ }
2725
+ }
2726
+ return Object.fromEntries(entries);
2727
+ }
2728
+ async function writeManifestFile(outputPath) {
2729
+ const resolverEntries = Object.entries(collectResolverComponents());
2730
+ const localEntries = Array.from(registry.entries()).filter((entry) => entry[1].kind === "local");
2731
+ const manifestMap = /* @__PURE__ */ new Map();
2732
+ for (const [componentName, from] of resolverEntries) {
2733
+ manifestMap.set(componentName, from);
2734
+ }
2735
+ for (const [componentName, match2] of localEntries) {
2736
+ manifestMap.set(componentName, match2.value.from);
2737
+ }
2738
+ const manifest = Object.fromEntries(
2739
+ Array.from(manifestMap.entries()).sort(([a], [b]) => a.localeCompare(b))
2740
+ );
2741
+ await _fsextra2.default.outputJson(outputPath, manifest, { spaces: 2 });
2742
+ }
2743
+ function scheduleManifestWrite(shouldWrite) {
2744
+ if (!shouldWrite) {
2745
+ return;
2746
+ }
2747
+ const configService = ctx.configService;
2748
+ if (!_optionalChain([configService, 'optionalAccess', _72 => _72.weappViteConfig, 'optionalAccess', _73 => _73.enhance, 'optionalAccess', _74 => _74.autoImportComponents])) {
2749
+ return;
2750
+ }
2751
+ writeRequested = true;
2752
+ if (pendingWrite) {
2753
+ return;
2754
+ }
2755
+ pendingWrite = Promise.resolve().then(async () => {
2756
+ while (writeRequested) {
2757
+ writeRequested = false;
2758
+ const outputPath = resolveManifestOutputPath();
2759
+ if (!outputPath) {
2760
+ return;
2761
+ }
2762
+ try {
2763
+ await writeManifestFile(outputPath);
2764
+ } catch (error) {
2765
+ const message = error instanceof Error ? error.message : String(error);
2766
+ logger_default.error(`\u81EA\u52A8\u5BFC\u51FA\u7EC4\u4EF6\u6E05\u5355\u5931\u8D25: ${message}`);
2767
+ }
2768
+ }
2769
+ }).finally(() => {
2770
+ pendingWrite = void 0;
2771
+ });
2772
+ }
2639
2773
  async function registerLocalComponent(filePath) {
2640
2774
  if (!ctx.configService || !ctx.jsonService) {
2641
2775
  throw new Error("configService/jsonService must be initialized before scanning components");
@@ -2646,26 +2780,30 @@ function createAutoImportService(ctx) {
2646
2780
  findJsonEntry(baseName),
2647
2781
  findTemplateEntry(baseName)
2648
2782
  ]);
2649
- removeRegisteredComponent({
2783
+ const removed = removeRegisteredComponent({
2650
2784
  baseName,
2651
2785
  templatePath,
2652
2786
  jsEntry,
2653
2787
  jsonPath
2654
2788
  });
2655
2789
  if (!jsEntry || !jsonPath || !templatePath) {
2790
+ scheduleManifestWrite(removed);
2656
2791
  return;
2657
2792
  }
2658
2793
  const json = await ctx.jsonService.read(jsonPath);
2659
- if (!_optionalChain([json, 'optionalAccess', _63 => _63.component])) {
2794
+ if (!_optionalChain([json, 'optionalAccess', _75 => _75.component])) {
2795
+ scheduleManifestWrite(removed);
2660
2796
  return;
2661
2797
  }
2662
2798
  const { componentName, base } = resolvedComponentName(baseName);
2663
2799
  if (!componentName) {
2800
+ scheduleManifestWrite(removed);
2664
2801
  return;
2665
2802
  }
2666
2803
  const hasComponent = registry.has(componentName);
2667
2804
  if (hasComponent && base !== "index") {
2668
2805
  logWarnOnce(`\u53D1\u73B0 \`${componentName}\` \u7EC4\u4EF6\u91CD\u540D! \u8DF3\u8FC7\u7EC4\u4EF6 \`${ctx.configService.relativeCwd(baseName)}\` \u7684\u81EA\u52A8\u5F15\u5165`);
2806
+ scheduleManifestWrite(removed);
2669
2807
  return;
2670
2808
  }
2671
2809
  const sourceWithoutExt = _shared.removeExtensionDeep.call(void 0, jsonPath);
@@ -2686,9 +2824,11 @@ function createAutoImportService(ctx) {
2686
2824
  from
2687
2825
  }
2688
2826
  });
2827
+ scheduleManifestWrite(true);
2689
2828
  }
2690
2829
  function removeRegisteredComponent(paths) {
2691
2830
  const { baseName, templatePath, jsEntry, jsonPath } = paths;
2831
+ let removed = false;
2692
2832
  for (const [key, value] of registry) {
2693
2833
  if (value.kind !== "local") {
2694
2834
  continue;
@@ -2698,15 +2838,16 @@ function createAutoImportService(ctx) {
2698
2838
  templatePath && entry.templatePath === templatePath || jsonPath && entry.jsonPath === jsonPath || jsEntry && entry.path === jsEntry || baseName && _shared.removeExtensionDeep.call(void 0, entry.templatePath) === baseName || baseName && _shared.removeExtensionDeep.call(void 0, entry.path) === baseName || baseName && _shared.removeExtensionDeep.call(void 0, _nullishCoalesce(entry.jsonPath, () => ( ""))) === baseName
2699
2839
  );
2700
2840
  if (matches2) {
2701
- registry.delete(key);
2841
+ removed = registry.delete(key) || removed;
2702
2842
  }
2703
2843
  }
2844
+ return removed;
2704
2845
  }
2705
2846
  function ensureMatcher() {
2706
2847
  if (!ctx.configService) {
2707
2848
  throw new Error("configService must be initialized before filtering components");
2708
2849
  }
2709
- const globs = _optionalChain([ctx, 'access', _64 => _64.configService, 'access', _65 => _65.weappViteConfig, 'optionalAccess', _66 => _66.enhance, 'optionalAccess', _67 => _67.autoImportComponents, 'optionalAccess', _68 => _68.globs]);
2850
+ const globs = _optionalChain([ctx, 'access', _76 => _76.configService, 'access', _77 => _77.weappViteConfig, 'optionalAccess', _78 => _78.enhance, 'optionalAccess', _79 => _79.autoImportComponents, 'optionalAccess', _80 => _80.globs]);
2710
2851
  if (!globs || globs.length === 0) {
2711
2852
  autoImportState.matcher = void 0;
2712
2853
  autoImportState.matcherKey = "";
@@ -2724,7 +2865,7 @@ function createAutoImportService(ctx) {
2724
2865
  return autoImportState.matcher;
2725
2866
  }
2726
2867
  function resolveWithResolvers(componentName, importerBaseName) {
2727
- const resolvers = _optionalChain([ctx, 'access', _69 => _69.configService, 'optionalAccess', _70 => _70.weappViteConfig, 'optionalAccess', _71 => _71.enhance, 'optionalAccess', _72 => _72.autoImportComponents, 'optionalAccess', _73 => _73.resolvers]);
2868
+ const resolvers = _optionalChain([ctx, 'access', _81 => _81.configService, 'optionalAccess', _82 => _82.weappViteConfig, 'optionalAccess', _83 => _83.enhance, 'optionalAccess', _84 => _84.autoImportComponents, 'optionalAccess', _85 => _85.resolvers]);
2728
2869
  if (!Array.isArray(resolvers)) {
2729
2870
  return void 0;
2730
2871
  }
@@ -2744,15 +2885,17 @@ function createAutoImportService(ctx) {
2744
2885
  registry.clear();
2745
2886
  autoImportState.matcher = void 0;
2746
2887
  autoImportState.matcherKey = "";
2888
+ scheduleManifestWrite(true);
2747
2889
  },
2748
2890
  async registerPotentialComponent(filePath) {
2749
2891
  await registerLocalComponent(filePath);
2750
2892
  },
2751
2893
  removePotentialComponent(filePath) {
2752
- removeRegisteredComponent({
2894
+ const removed = removeRegisteredComponent({
2753
2895
  baseName: _shared.removeExtensionDeep.call(void 0, filePath),
2754
2896
  templatePath: filePath
2755
2897
  });
2898
+ scheduleManifestWrite(removed);
2756
2899
  },
2757
2900
  resolve(componentName, importerBaseName) {
2758
2901
  const local = registry.get(componentName);
@@ -2770,6 +2913,9 @@ function createAutoImportService(ctx) {
2770
2913
  },
2771
2914
  getRegisteredLocalComponents() {
2772
2915
  return Array.from(registry.values());
2916
+ },
2917
+ awaitManifestWrites() {
2918
+ return _nullishCoalesce(pendingWrite, () => ( Promise.resolve()));
2773
2919
  }
2774
2920
  };
2775
2921
  }
@@ -2863,7 +3009,7 @@ var ReaddirpStream = class extends _stream.Readable {
2863
3009
  this._directoryFilter = normalizeFilter(opts.directoryFilter);
2864
3010
  const statMethod = opts.lstat ? _promises.lstat : _promises.stat;
2865
3011
  if (wantBigintFsStats) {
2866
- this._stat = (path25) => statMethod(path25, { bigint: true });
3012
+ this._stat = (path27) => statMethod(path27, { bigint: true });
2867
3013
  } else {
2868
3014
  this._stat = statMethod;
2869
3015
  }
@@ -2888,8 +3034,8 @@ var ReaddirpStream = class extends _stream.Readable {
2888
3034
  const par = this.parent;
2889
3035
  const fil = par && par.files;
2890
3036
  if (fil && fil.length > 0) {
2891
- const { path: path25, depth } = par;
2892
- const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent, path25));
3037
+ const { path: path27, depth } = par;
3038
+ const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent, path27));
2893
3039
  const awaited = await Promise.all(slice);
2894
3040
  for (const entry of awaited) {
2895
3041
  if (!entry)
@@ -2929,20 +3075,20 @@ var ReaddirpStream = class extends _stream.Readable {
2929
3075
  this.reading = false;
2930
3076
  }
2931
3077
  }
2932
- async _exploreDir(path25, depth) {
3078
+ async _exploreDir(path27, depth) {
2933
3079
  let files;
2934
3080
  try {
2935
- files = await _promises.readdir.call(void 0, path25, this._rdOptions);
3081
+ files = await _promises.readdir.call(void 0, path27, this._rdOptions);
2936
3082
  } catch (error) {
2937
3083
  this._onError(error);
2938
3084
  }
2939
- return { files, depth, path: path25 };
3085
+ return { files, depth, path: path27 };
2940
3086
  }
2941
- async _formatEntry(dirent, path25) {
3087
+ async _formatEntry(dirent, path27) {
2942
3088
  let entry;
2943
3089
  const basename4 = this._isDirent ? dirent.name : dirent;
2944
3090
  try {
2945
- const fullPath = _path.resolve.call(void 0, _path.join.call(void 0, path25, basename4));
3091
+ const fullPath = _path.resolve.call(void 0, _path.join.call(void 0, path27, basename4));
2946
3092
  entry = { path: _path.relative.call(void 0, this._root, fullPath), fullPath, basename: basename4 };
2947
3093
  entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
2948
3094
  } catch (err) {
@@ -3343,16 +3489,16 @@ var delFromSet = (main, prop, item) => {
3343
3489
  };
3344
3490
  var isEmptySet = (val) => val instanceof Set ? val.size === 0 : !val;
3345
3491
  var FsWatchInstances = /* @__PURE__ */ new Map();
3346
- function createFsWatchInstance(path25, options, listener, errHandler, emitRaw) {
3492
+ function createFsWatchInstance(path27, options, listener, errHandler, emitRaw) {
3347
3493
  const handleEvent = (rawEvent, evPath) => {
3348
- listener(path25);
3349
- emitRaw(rawEvent, evPath, { watchedPath: path25 });
3350
- if (evPath && path25 !== evPath) {
3351
- fsWatchBroadcast(sysPath.resolve(path25, evPath), KEY_LISTENERS, sysPath.join(path25, evPath));
3494
+ listener(path27);
3495
+ emitRaw(rawEvent, evPath, { watchedPath: path27 });
3496
+ if (evPath && path27 !== evPath) {
3497
+ fsWatchBroadcast(sysPath.resolve(path27, evPath), KEY_LISTENERS, sysPath.join(path27, evPath));
3352
3498
  }
3353
3499
  };
3354
3500
  try {
3355
- return _fs.watch.call(void 0, path25, {
3501
+ return _fs.watch.call(void 0, path27, {
3356
3502
  persistent: options.persistent
3357
3503
  }, handleEvent);
3358
3504
  } catch (error) {
@@ -3368,12 +3514,12 @@ var fsWatchBroadcast = (fullPath, listenerType, val1, val2, val3) => {
3368
3514
  listener(val1, val2, val3);
3369
3515
  });
3370
3516
  };
3371
- var setFsWatchListener = (path25, fullPath, options, handlers) => {
3517
+ var setFsWatchListener = (path27, fullPath, options, handlers) => {
3372
3518
  const { listener, errHandler, rawEmitter } = handlers;
3373
3519
  let cont = FsWatchInstances.get(fullPath);
3374
3520
  let watcher;
3375
3521
  if (!options.persistent) {
3376
- watcher = createFsWatchInstance(path25, options, listener, errHandler, rawEmitter);
3522
+ watcher = createFsWatchInstance(path27, options, listener, errHandler, rawEmitter);
3377
3523
  if (!watcher)
3378
3524
  return;
3379
3525
  return watcher.close.bind(watcher);
@@ -3384,7 +3530,7 @@ var setFsWatchListener = (path25, fullPath, options, handlers) => {
3384
3530
  addAndConvert(cont, KEY_RAW, rawEmitter);
3385
3531
  } else {
3386
3532
  watcher = createFsWatchInstance(
3387
- path25,
3533
+ path27,
3388
3534
  options,
3389
3535
  fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS),
3390
3536
  errHandler,
@@ -3399,7 +3545,7 @@ var setFsWatchListener = (path25, fullPath, options, handlers) => {
3399
3545
  cont.watcherUnusable = true;
3400
3546
  if (isWindows && error.code === "EPERM") {
3401
3547
  try {
3402
- const fd = await _promises.open.call(void 0, path25, "r");
3548
+ const fd = await _promises.open.call(void 0, path27, "r");
3403
3549
  await fd.close();
3404
3550
  broadcastErr(error);
3405
3551
  } catch (err) {
@@ -3430,7 +3576,7 @@ var setFsWatchListener = (path25, fullPath, options, handlers) => {
3430
3576
  };
3431
3577
  };
3432
3578
  var FsWatchFileInstances = /* @__PURE__ */ new Map();
3433
- var setFsWatchFileListener = (path25, fullPath, options, handlers) => {
3579
+ var setFsWatchFileListener = (path27, fullPath, options, handlers) => {
3434
3580
  const { listener, rawEmitter } = handlers;
3435
3581
  let cont = FsWatchFileInstances.get(fullPath);
3436
3582
  const copts = cont && cont.options;
@@ -3452,7 +3598,7 @@ var setFsWatchFileListener = (path25, fullPath, options, handlers) => {
3452
3598
  });
3453
3599
  const currmtime = curr.mtimeMs;
3454
3600
  if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {
3455
- foreach(cont.listeners, (listener2) => listener2(path25, curr));
3601
+ foreach(cont.listeners, (listener2) => listener2(path27, curr));
3456
3602
  }
3457
3603
  })
3458
3604
  };
@@ -3480,13 +3626,13 @@ var NodeFsHandler = class {
3480
3626
  * @param listener on fs change
3481
3627
  * @returns closer for the watcher instance
3482
3628
  */
3483
- _watchWithNodeFs(path25, listener) {
3629
+ _watchWithNodeFs(path27, listener) {
3484
3630
  const opts = this.fsw.options;
3485
- const directory = sysPath.dirname(path25);
3486
- const basename4 = sysPath.basename(path25);
3631
+ const directory = sysPath.dirname(path27);
3632
+ const basename4 = sysPath.basename(path27);
3487
3633
  const parent = this.fsw._getWatchedDir(directory);
3488
3634
  parent.add(basename4);
3489
- const absolutePath = sysPath.resolve(path25);
3635
+ const absolutePath = sysPath.resolve(path27);
3490
3636
  const options = {
3491
3637
  persistent: opts.persistent
3492
3638
  };
@@ -3496,12 +3642,12 @@ var NodeFsHandler = class {
3496
3642
  if (opts.usePolling) {
3497
3643
  const enableBin = opts.interval !== opts.binaryInterval;
3498
3644
  options.interval = enableBin && isBinaryPath(basename4) ? opts.binaryInterval : opts.interval;
3499
- closer = setFsWatchFileListener(path25, absolutePath, options, {
3645
+ closer = setFsWatchFileListener(path27, absolutePath, options, {
3500
3646
  listener,
3501
3647
  rawEmitter: this.fsw._emitRaw
3502
3648
  });
3503
3649
  } else {
3504
- closer = setFsWatchListener(path25, absolutePath, options, {
3650
+ closer = setFsWatchListener(path27, absolutePath, options, {
3505
3651
  listener,
3506
3652
  errHandler: this._boundHandleError,
3507
3653
  rawEmitter: this.fsw._emitRaw
@@ -3523,7 +3669,7 @@ var NodeFsHandler = class {
3523
3669
  let prevStats = stats;
3524
3670
  if (parent.has(basename4))
3525
3671
  return;
3526
- const listener = async (path25, newStats) => {
3672
+ const listener = async (path27, newStats) => {
3527
3673
  if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5))
3528
3674
  return;
3529
3675
  if (!newStats || newStats.mtimeMs === 0) {
@@ -3537,11 +3683,11 @@ var NodeFsHandler = class {
3537
3683
  this.fsw._emit(EV.CHANGE, file, newStats2);
3538
3684
  }
3539
3685
  if ((isMacos || isLinux || isFreeBSD) && prevStats.ino !== newStats2.ino) {
3540
- this.fsw._closeFile(path25);
3686
+ this.fsw._closeFile(path27);
3541
3687
  prevStats = newStats2;
3542
3688
  const closer2 = this._watchWithNodeFs(file, listener);
3543
3689
  if (closer2)
3544
- this.fsw._addPathCloser(path25, closer2);
3690
+ this.fsw._addPathCloser(path27, closer2);
3545
3691
  } else {
3546
3692
  prevStats = newStats2;
3547
3693
  }
@@ -3573,7 +3719,7 @@ var NodeFsHandler = class {
3573
3719
  * @param item basename of this item
3574
3720
  * @returns true if no more processing is needed for this entry.
3575
3721
  */
3576
- async _handleSymlink(entry, directory, path25, item) {
3722
+ async _handleSymlink(entry, directory, path27, item) {
3577
3723
  if (this.fsw.closed) {
3578
3724
  return;
3579
3725
  }
@@ -3583,7 +3729,7 @@ var NodeFsHandler = class {
3583
3729
  this.fsw._incrReadyCount();
3584
3730
  let linkPath;
3585
3731
  try {
3586
- linkPath = await _promises.realpath.call(void 0, path25);
3732
+ linkPath = await _promises.realpath.call(void 0, path27);
3587
3733
  } catch (e) {
3588
3734
  this.fsw._emitReady();
3589
3735
  return true;
@@ -3593,12 +3739,12 @@ var NodeFsHandler = class {
3593
3739
  if (dir.has(item)) {
3594
3740
  if (this.fsw._symlinkPaths.get(full) !== linkPath) {
3595
3741
  this.fsw._symlinkPaths.set(full, linkPath);
3596
- this.fsw._emit(EV.CHANGE, path25, entry.stats);
3742
+ this.fsw._emit(EV.CHANGE, path27, entry.stats);
3597
3743
  }
3598
3744
  } else {
3599
3745
  dir.add(item);
3600
3746
  this.fsw._symlinkPaths.set(full, linkPath);
3601
- this.fsw._emit(EV.ADD, path25, entry.stats);
3747
+ this.fsw._emit(EV.ADD, path27, entry.stats);
3602
3748
  }
3603
3749
  this.fsw._emitReady();
3604
3750
  return true;
@@ -3627,9 +3773,9 @@ var NodeFsHandler = class {
3627
3773
  return;
3628
3774
  }
3629
3775
  const item = entry.path;
3630
- let path25 = sysPath.join(directory, item);
3776
+ let path27 = sysPath.join(directory, item);
3631
3777
  current2.add(item);
3632
- if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path25, item)) {
3778
+ if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path27, item)) {
3633
3779
  return;
3634
3780
  }
3635
3781
  if (this.fsw.closed) {
@@ -3638,8 +3784,8 @@ var NodeFsHandler = class {
3638
3784
  }
3639
3785
  if (item === target || !target && !previous.has(item)) {
3640
3786
  this.fsw._incrReadyCount();
3641
- path25 = sysPath.join(dir, sysPath.relative(dir, path25));
3642
- this._addToNodeFs(path25, initialAdd, wh, depth + 1);
3787
+ path27 = sysPath.join(dir, sysPath.relative(dir, path27));
3788
+ this._addToNodeFs(path27, initialAdd, wh, depth + 1);
3643
3789
  }
3644
3790
  }).on(EV.ERROR, this._boundHandleError);
3645
3791
  return new Promise((resolve8, reject) => {
@@ -3708,13 +3854,13 @@ var NodeFsHandler = class {
3708
3854
  * @param depth Child path actually targeted for watch
3709
3855
  * @param target Child path actually targeted for watch
3710
3856
  */
3711
- async _addToNodeFs(path25, initialAdd, priorWh, depth, target) {
3857
+ async _addToNodeFs(path27, initialAdd, priorWh, depth, target) {
3712
3858
  const ready = this.fsw._emitReady;
3713
- if (this.fsw._isIgnored(path25) || this.fsw.closed) {
3859
+ if (this.fsw._isIgnored(path27) || this.fsw.closed) {
3714
3860
  ready();
3715
3861
  return false;
3716
3862
  }
3717
- const wh = this.fsw._getWatchHelpers(path25);
3863
+ const wh = this.fsw._getWatchHelpers(path27);
3718
3864
  if (priorWh) {
3719
3865
  wh.filterPath = (entry) => priorWh.filterPath(entry);
3720
3866
  wh.filterDir = (entry) => priorWh.filterDir(entry);
@@ -3730,8 +3876,8 @@ var NodeFsHandler = class {
3730
3876
  const follow = this.fsw.options.followSymlinks;
3731
3877
  let closer;
3732
3878
  if (stats.isDirectory()) {
3733
- const absPath = sysPath.resolve(path25);
3734
- const targetPath = follow ? await _promises.realpath.call(void 0, path25) : path25;
3879
+ const absPath = sysPath.resolve(path27);
3880
+ const targetPath = follow ? await _promises.realpath.call(void 0, path27) : path27;
3735
3881
  if (this.fsw.closed)
3736
3882
  return;
3737
3883
  closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
@@ -3741,29 +3887,29 @@ var NodeFsHandler = class {
3741
3887
  this.fsw._symlinkPaths.set(absPath, targetPath);
3742
3888
  }
3743
3889
  } else if (stats.isSymbolicLink()) {
3744
- const targetPath = follow ? await _promises.realpath.call(void 0, path25) : path25;
3890
+ const targetPath = follow ? await _promises.realpath.call(void 0, path27) : path27;
3745
3891
  if (this.fsw.closed)
3746
3892
  return;
3747
3893
  const parent = sysPath.dirname(wh.watchPath);
3748
3894
  this.fsw._getWatchedDir(parent).add(wh.watchPath);
3749
3895
  this.fsw._emit(EV.ADD, wh.watchPath, stats);
3750
- closer = await this._handleDir(parent, stats, initialAdd, depth, path25, wh, targetPath);
3896
+ closer = await this._handleDir(parent, stats, initialAdd, depth, path27, wh, targetPath);
3751
3897
  if (this.fsw.closed)
3752
3898
  return;
3753
3899
  if (targetPath !== void 0) {
3754
- this.fsw._symlinkPaths.set(sysPath.resolve(path25), targetPath);
3900
+ this.fsw._symlinkPaths.set(sysPath.resolve(path27), targetPath);
3755
3901
  }
3756
3902
  } else {
3757
3903
  closer = this._handleFile(wh.watchPath, stats, initialAdd);
3758
3904
  }
3759
3905
  ready();
3760
3906
  if (closer)
3761
- this.fsw._addPathCloser(path25, closer);
3907
+ this.fsw._addPathCloser(path27, closer);
3762
3908
  return false;
3763
3909
  } catch (error) {
3764
3910
  if (this.fsw._handleError(error)) {
3765
3911
  ready();
3766
- return path25;
3912
+ return path27;
3767
3913
  }
3768
3914
  }
3769
3915
  }
@@ -3806,26 +3952,26 @@ function createPattern(matcher) {
3806
3952
  }
3807
3953
  return () => false;
3808
3954
  }
3809
- function normalizePath(path25) {
3810
- if (typeof path25 !== "string")
3955
+ function normalizePath(path27) {
3956
+ if (typeof path27 !== "string")
3811
3957
  throw new Error("string expected");
3812
- path25 = sysPath2.normalize(path25);
3813
- path25 = path25.replace(/\\/g, "/");
3958
+ path27 = sysPath2.normalize(path27);
3959
+ path27 = path27.replace(/\\/g, "/");
3814
3960
  let prepend = false;
3815
- if (path25.startsWith("//"))
3961
+ if (path27.startsWith("//"))
3816
3962
  prepend = true;
3817
3963
  const DOUBLE_SLASH_RE2 = /\/\//;
3818
- while (path25.match(DOUBLE_SLASH_RE2))
3819
- path25 = path25.replace(DOUBLE_SLASH_RE2, "/");
3964
+ while (path27.match(DOUBLE_SLASH_RE2))
3965
+ path27 = path27.replace(DOUBLE_SLASH_RE2, "/");
3820
3966
  if (prepend)
3821
- path25 = "/" + path25;
3822
- return path25;
3967
+ path27 = "/" + path27;
3968
+ return path27;
3823
3969
  }
3824
3970
  function matchPatterns(patterns, testString, stats) {
3825
- const path25 = normalizePath(testString);
3971
+ const path27 = normalizePath(testString);
3826
3972
  for (let index = 0; index < patterns.length; index++) {
3827
3973
  const pattern = patterns[index];
3828
- if (pattern(path25, stats)) {
3974
+ if (pattern(path27, stats)) {
3829
3975
  return true;
3830
3976
  }
3831
3977
  }
@@ -3865,19 +4011,19 @@ var toUnix = (string) => {
3865
4011
  }
3866
4012
  return str;
3867
4013
  };
3868
- var normalizePathToUnix = (path25) => toUnix(sysPath2.normalize(toUnix(path25)));
3869
- var normalizeIgnored = (cwd = "") => (path25) => {
3870
- if (typeof path25 === "string") {
3871
- return normalizePathToUnix(sysPath2.isAbsolute(path25) ? path25 : sysPath2.join(cwd, path25));
4014
+ var normalizePathToUnix = (path27) => toUnix(sysPath2.normalize(toUnix(path27)));
4015
+ var normalizeIgnored = (cwd = "") => (path27) => {
4016
+ if (typeof path27 === "string") {
4017
+ return normalizePathToUnix(sysPath2.isAbsolute(path27) ? path27 : sysPath2.join(cwd, path27));
3872
4018
  } else {
3873
- return path25;
4019
+ return path27;
3874
4020
  }
3875
4021
  };
3876
- var getAbsolutePath = (path25, cwd) => {
3877
- if (sysPath2.isAbsolute(path25)) {
3878
- return path25;
4022
+ var getAbsolutePath = (path27, cwd) => {
4023
+ if (sysPath2.isAbsolute(path27)) {
4024
+ return path27;
3879
4025
  }
3880
- return sysPath2.join(cwd, path25);
4026
+ return sysPath2.join(cwd, path27);
3881
4027
  };
3882
4028
  var EMPTY_SET = Object.freeze(/* @__PURE__ */ new Set());
3883
4029
  var DirEntry = class {
@@ -3932,10 +4078,10 @@ var DirEntry = class {
3932
4078
  var STAT_METHOD_F = "stat";
3933
4079
  var STAT_METHOD_L = "lstat";
3934
4080
  var WatchHelper = class {
3935
- constructor(path25, follow, fsw) {
4081
+ constructor(path27, follow, fsw) {
3936
4082
  this.fsw = fsw;
3937
- const watchPath = path25;
3938
- this.path = path25 = path25.replace(REPLACER_RE, "");
4083
+ const watchPath = path27;
4084
+ this.path = path27 = path27.replace(REPLACER_RE, "");
3939
4085
  this.watchPath = watchPath;
3940
4086
  this.fullWatchPath = sysPath2.resolve(watchPath);
3941
4087
  this.dirParts = [];
@@ -4057,20 +4203,20 @@ var FSWatcher = class extends _events2.EventEmitter {
4057
4203
  this._closePromise = void 0;
4058
4204
  let paths = unifyPaths(paths_);
4059
4205
  if (cwd) {
4060
- paths = paths.map((path25) => {
4061
- const absPath = getAbsolutePath(path25, cwd);
4206
+ paths = paths.map((path27) => {
4207
+ const absPath = getAbsolutePath(path27, cwd);
4062
4208
  return absPath;
4063
4209
  });
4064
4210
  }
4065
- paths.forEach((path25) => {
4066
- this._removeIgnoredPath(path25);
4211
+ paths.forEach((path27) => {
4212
+ this._removeIgnoredPath(path27);
4067
4213
  });
4068
4214
  this._userIgnored = void 0;
4069
4215
  if (!this._readyCount)
4070
4216
  this._readyCount = 0;
4071
4217
  this._readyCount += paths.length;
4072
- Promise.all(paths.map(async (path25) => {
4073
- const res = await this._nodeFsHandler._addToNodeFs(path25, !_internal, void 0, 0, _origAdd);
4218
+ Promise.all(paths.map(async (path27) => {
4219
+ const res = await this._nodeFsHandler._addToNodeFs(path27, !_internal, void 0, 0, _origAdd);
4074
4220
  if (res)
4075
4221
  this._emitReady();
4076
4222
  return res;
@@ -4092,17 +4238,17 @@ var FSWatcher = class extends _events2.EventEmitter {
4092
4238
  return this;
4093
4239
  const paths = unifyPaths(paths_);
4094
4240
  const { cwd } = this.options;
4095
- paths.forEach((path25) => {
4096
- if (!sysPath2.isAbsolute(path25) && !this._closers.has(path25)) {
4241
+ paths.forEach((path27) => {
4242
+ if (!sysPath2.isAbsolute(path27) && !this._closers.has(path27)) {
4097
4243
  if (cwd)
4098
- path25 = sysPath2.join(cwd, path25);
4099
- path25 = sysPath2.resolve(path25);
4244
+ path27 = sysPath2.join(cwd, path27);
4245
+ path27 = sysPath2.resolve(path27);
4100
4246
  }
4101
- this._closePath(path25);
4102
- this._addIgnoredPath(path25);
4103
- if (this._watched.has(path25)) {
4247
+ this._closePath(path27);
4248
+ this._addIgnoredPath(path27);
4249
+ if (this._watched.has(path27)) {
4104
4250
  this._addIgnoredPath({
4105
- path: path25,
4251
+ path: path27,
4106
4252
  recursive: true
4107
4253
  });
4108
4254
  }
@@ -4166,38 +4312,38 @@ var FSWatcher = class extends _events2.EventEmitter {
4166
4312
  * @param stats arguments to be passed with event
4167
4313
  * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
4168
4314
  */
4169
- async _emit(event, path25, stats) {
4315
+ async _emit(event, path27, stats) {
4170
4316
  if (this.closed)
4171
4317
  return;
4172
4318
  const opts = this.options;
4173
4319
  if (isWindows)
4174
- path25 = sysPath2.normalize(path25);
4320
+ path27 = sysPath2.normalize(path27);
4175
4321
  if (opts.cwd)
4176
- path25 = sysPath2.relative(opts.cwd, path25);
4177
- const args = [path25];
4322
+ path27 = sysPath2.relative(opts.cwd, path27);
4323
+ const args = [path27];
4178
4324
  if (stats != null)
4179
4325
  args.push(stats);
4180
4326
  const awf = opts.awaitWriteFinish;
4181
4327
  let pw;
4182
- if (awf && (pw = this._pendingWrites.get(path25))) {
4328
+ if (awf && (pw = this._pendingWrites.get(path27))) {
4183
4329
  pw.lastChange = /* @__PURE__ */ new Date();
4184
4330
  return this;
4185
4331
  }
4186
4332
  if (opts.atomic) {
4187
4333
  if (event === EVENTS.UNLINK) {
4188
- this._pendingUnlinks.set(path25, [event, ...args]);
4334
+ this._pendingUnlinks.set(path27, [event, ...args]);
4189
4335
  setTimeout(() => {
4190
- this._pendingUnlinks.forEach((entry, path26) => {
4336
+ this._pendingUnlinks.forEach((entry, path28) => {
4191
4337
  this.emit(...entry);
4192
4338
  this.emit(EVENTS.ALL, ...entry);
4193
- this._pendingUnlinks.delete(path26);
4339
+ this._pendingUnlinks.delete(path28);
4194
4340
  });
4195
4341
  }, typeof opts.atomic === "number" ? opts.atomic : 100);
4196
4342
  return this;
4197
4343
  }
4198
- if (event === EVENTS.ADD && this._pendingUnlinks.has(path25)) {
4344
+ if (event === EVENTS.ADD && this._pendingUnlinks.has(path27)) {
4199
4345
  event = EVENTS.CHANGE;
4200
- this._pendingUnlinks.delete(path25);
4346
+ this._pendingUnlinks.delete(path27);
4201
4347
  }
4202
4348
  }
4203
4349
  if (awf && (event === EVENTS.ADD || event === EVENTS.CHANGE) && this._readyEmitted) {
@@ -4215,16 +4361,16 @@ var FSWatcher = class extends _events2.EventEmitter {
4215
4361
  this.emitWithAll(event, args);
4216
4362
  }
4217
4363
  };
4218
- this._awaitWriteFinish(path25, awf.stabilityThreshold, event, awfEmit);
4364
+ this._awaitWriteFinish(path27, awf.stabilityThreshold, event, awfEmit);
4219
4365
  return this;
4220
4366
  }
4221
4367
  if (event === EVENTS.CHANGE) {
4222
- const isThrottled = !this._throttle(EVENTS.CHANGE, path25, 50);
4368
+ const isThrottled = !this._throttle(EVENTS.CHANGE, path27, 50);
4223
4369
  if (isThrottled)
4224
4370
  return this;
4225
4371
  }
4226
4372
  if (opts.alwaysStat && stats === void 0 && (event === EVENTS.ADD || event === EVENTS.ADD_DIR || event === EVENTS.CHANGE)) {
4227
- const fullPath = opts.cwd ? sysPath2.join(opts.cwd, path25) : path25;
4373
+ const fullPath = opts.cwd ? sysPath2.join(opts.cwd, path27) : path27;
4228
4374
  let stats2;
4229
4375
  try {
4230
4376
  stats2 = await _promises.stat.call(void 0, fullPath);
@@ -4255,23 +4401,23 @@ var FSWatcher = class extends _events2.EventEmitter {
4255
4401
  * @param timeout duration of time to suppress duplicate actions
4256
4402
  * @returns tracking object or false if action should be suppressed
4257
4403
  */
4258
- _throttle(actionType, path25, timeout) {
4404
+ _throttle(actionType, path27, timeout) {
4259
4405
  if (!this._throttled.has(actionType)) {
4260
4406
  this._throttled.set(actionType, /* @__PURE__ */ new Map());
4261
4407
  }
4262
4408
  const action = this._throttled.get(actionType);
4263
4409
  if (!action)
4264
4410
  throw new Error("invalid throttle");
4265
- const actionPath = action.get(path25);
4411
+ const actionPath = action.get(path27);
4266
4412
  if (actionPath) {
4267
4413
  actionPath.count++;
4268
4414
  return false;
4269
4415
  }
4270
4416
  let timeoutObject;
4271
4417
  const clear = () => {
4272
- const item = action.get(path25);
4418
+ const item = action.get(path27);
4273
4419
  const count = item ? item.count : 0;
4274
- action.delete(path25);
4420
+ action.delete(path27);
4275
4421
  clearTimeout(timeoutObject);
4276
4422
  if (item)
4277
4423
  clearTimeout(item.timeoutObject);
@@ -4279,7 +4425,7 @@ var FSWatcher = class extends _events2.EventEmitter {
4279
4425
  };
4280
4426
  timeoutObject = setTimeout(clear, timeout);
4281
4427
  const thr = { timeoutObject, clear, count: 0 };
4282
- action.set(path25, thr);
4428
+ action.set(path27, thr);
4283
4429
  return thr;
4284
4430
  }
4285
4431
  _incrReadyCount() {
@@ -4293,44 +4439,44 @@ var FSWatcher = class extends _events2.EventEmitter {
4293
4439
  * @param event
4294
4440
  * @param awfEmit Callback to be called when ready for event to be emitted.
4295
4441
  */
4296
- _awaitWriteFinish(path25, threshold, event, awfEmit) {
4442
+ _awaitWriteFinish(path27, threshold, event, awfEmit) {
4297
4443
  const awf = this.options.awaitWriteFinish;
4298
4444
  if (typeof awf !== "object")
4299
4445
  return;
4300
4446
  const pollInterval = awf.pollInterval;
4301
4447
  let timeoutHandler;
4302
- let fullPath = path25;
4303
- if (this.options.cwd && !sysPath2.isAbsolute(path25)) {
4304
- fullPath = sysPath2.join(this.options.cwd, path25);
4448
+ let fullPath = path27;
4449
+ if (this.options.cwd && !sysPath2.isAbsolute(path27)) {
4450
+ fullPath = sysPath2.join(this.options.cwd, path27);
4305
4451
  }
4306
4452
  const now = /* @__PURE__ */ new Date();
4307
4453
  const writes = this._pendingWrites;
4308
4454
  function awaitWriteFinishFn(prevStat) {
4309
4455
  _fs.stat.call(void 0, fullPath, (err, curStat) => {
4310
- if (err || !writes.has(path25)) {
4456
+ if (err || !writes.has(path27)) {
4311
4457
  if (err && err.code !== "ENOENT")
4312
4458
  awfEmit(err);
4313
4459
  return;
4314
4460
  }
4315
4461
  const now2 = Number(/* @__PURE__ */ new Date());
4316
4462
  if (prevStat && curStat.size !== prevStat.size) {
4317
- writes.get(path25).lastChange = now2;
4463
+ writes.get(path27).lastChange = now2;
4318
4464
  }
4319
- const pw = writes.get(path25);
4465
+ const pw = writes.get(path27);
4320
4466
  const df = now2 - pw.lastChange;
4321
4467
  if (df >= threshold) {
4322
- writes.delete(path25);
4468
+ writes.delete(path27);
4323
4469
  awfEmit(void 0, curStat);
4324
4470
  } else {
4325
4471
  timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval, curStat);
4326
4472
  }
4327
4473
  });
4328
4474
  }
4329
- if (!writes.has(path25)) {
4330
- writes.set(path25, {
4475
+ if (!writes.has(path27)) {
4476
+ writes.set(path27, {
4331
4477
  lastChange: now,
4332
4478
  cancelWait: () => {
4333
- writes.delete(path25);
4479
+ writes.delete(path27);
4334
4480
  clearTimeout(timeoutHandler);
4335
4481
  return event;
4336
4482
  }
@@ -4341,8 +4487,8 @@ var FSWatcher = class extends _events2.EventEmitter {
4341
4487
  /**
4342
4488
  * Determines whether user has asked to ignore this path.
4343
4489
  */
4344
- _isIgnored(path25, stats) {
4345
- if (this.options.atomic && DOT_RE.test(path25))
4490
+ _isIgnored(path27, stats) {
4491
+ if (this.options.atomic && DOT_RE.test(path27))
4346
4492
  return true;
4347
4493
  if (!this._userIgnored) {
4348
4494
  const { cwd } = this.options;
@@ -4352,17 +4498,17 @@ var FSWatcher = class extends _events2.EventEmitter {
4352
4498
  const list = [...ignoredPaths.map(normalizeIgnored(cwd)), ...ignored];
4353
4499
  this._userIgnored = anymatch(list, void 0);
4354
4500
  }
4355
- return this._userIgnored(path25, stats);
4501
+ return this._userIgnored(path27, stats);
4356
4502
  }
4357
- _isntIgnored(path25, stat6) {
4358
- return !this._isIgnored(path25, stat6);
4503
+ _isntIgnored(path27, stat6) {
4504
+ return !this._isIgnored(path27, stat6);
4359
4505
  }
4360
4506
  /**
4361
4507
  * Provides a set of common helpers and properties relating to symlink handling.
4362
4508
  * @param path file or directory pattern being watched
4363
4509
  */
4364
- _getWatchHelpers(path25) {
4365
- return new WatchHelper(path25, this.options.followSymlinks, this);
4510
+ _getWatchHelpers(path27) {
4511
+ return new WatchHelper(path27, this.options.followSymlinks, this);
4366
4512
  }
4367
4513
  // Directory helpers
4368
4514
  // -----------------
@@ -4394,63 +4540,63 @@ var FSWatcher = class extends _events2.EventEmitter {
4394
4540
  * @param item base path of item/directory
4395
4541
  */
4396
4542
  _remove(directory, item, isDirectory) {
4397
- const path25 = sysPath2.join(directory, item);
4398
- const fullPath = sysPath2.resolve(path25);
4399
- isDirectory = isDirectory != null ? isDirectory : this._watched.has(path25) || this._watched.has(fullPath);
4400
- if (!this._throttle("remove", path25, 100))
4543
+ const path27 = sysPath2.join(directory, item);
4544
+ const fullPath = sysPath2.resolve(path27);
4545
+ isDirectory = isDirectory != null ? isDirectory : this._watched.has(path27) || this._watched.has(fullPath);
4546
+ if (!this._throttle("remove", path27, 100))
4401
4547
  return;
4402
4548
  if (!isDirectory && this._watched.size === 1) {
4403
4549
  this.add(directory, item, true);
4404
4550
  }
4405
- const wp = this._getWatchedDir(path25);
4551
+ const wp = this._getWatchedDir(path27);
4406
4552
  const nestedDirectoryChildren = wp.getChildren();
4407
- nestedDirectoryChildren.forEach((nested) => this._remove(path25, nested));
4553
+ nestedDirectoryChildren.forEach((nested) => this._remove(path27, nested));
4408
4554
  const parent = this._getWatchedDir(directory);
4409
4555
  const wasTracked = parent.has(item);
4410
4556
  parent.remove(item);
4411
4557
  if (this._symlinkPaths.has(fullPath)) {
4412
4558
  this._symlinkPaths.delete(fullPath);
4413
4559
  }
4414
- let relPath = path25;
4560
+ let relPath = path27;
4415
4561
  if (this.options.cwd)
4416
- relPath = sysPath2.relative(this.options.cwd, path25);
4562
+ relPath = sysPath2.relative(this.options.cwd, path27);
4417
4563
  if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
4418
4564
  const event = this._pendingWrites.get(relPath).cancelWait();
4419
4565
  if (event === EVENTS.ADD)
4420
4566
  return;
4421
4567
  }
4422
- this._watched.delete(path25);
4568
+ this._watched.delete(path27);
4423
4569
  this._watched.delete(fullPath);
4424
4570
  const eventName = isDirectory ? EVENTS.UNLINK_DIR : EVENTS.UNLINK;
4425
- if (wasTracked && !this._isIgnored(path25))
4426
- this._emit(eventName, path25);
4427
- this._closePath(path25);
4571
+ if (wasTracked && !this._isIgnored(path27))
4572
+ this._emit(eventName, path27);
4573
+ this._closePath(path27);
4428
4574
  }
4429
4575
  /**
4430
4576
  * Closes all watchers for a path
4431
4577
  */
4432
- _closePath(path25) {
4433
- this._closeFile(path25);
4434
- const dir = sysPath2.dirname(path25);
4435
- this._getWatchedDir(dir).remove(sysPath2.basename(path25));
4578
+ _closePath(path27) {
4579
+ this._closeFile(path27);
4580
+ const dir = sysPath2.dirname(path27);
4581
+ this._getWatchedDir(dir).remove(sysPath2.basename(path27));
4436
4582
  }
4437
4583
  /**
4438
4584
  * Closes only file-specific watchers
4439
4585
  */
4440
- _closeFile(path25) {
4441
- const closers = this._closers.get(path25);
4586
+ _closeFile(path27) {
4587
+ const closers = this._closers.get(path27);
4442
4588
  if (!closers)
4443
4589
  return;
4444
4590
  closers.forEach((closer) => closer());
4445
- this._closers.delete(path25);
4591
+ this._closers.delete(path27);
4446
4592
  }
4447
- _addPathCloser(path25, closer) {
4593
+ _addPathCloser(path27, closer) {
4448
4594
  if (!closer)
4449
4595
  return;
4450
- let list = this._closers.get(path25);
4596
+ let list = this._closers.get(path27);
4451
4597
  if (!list) {
4452
4598
  list = [];
4453
- this._closers.set(path25, list);
4599
+ this._closers.set(path27, list);
4454
4600
  }
4455
4601
  list.push(closer);
4456
4602
  }
@@ -4725,7 +4871,7 @@ var AST = class _AST {
4725
4871
  const ret = this.type === null ? this.#parts.slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())];
4726
4872
  if (this.isStart() && !this.type)
4727
4873
  ret.unshift([]);
4728
- if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && _optionalChain([this, 'access', _74 => _74.#parent, 'optionalAccess', _75 => _75.type]) === "!")) {
4874
+ if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && _optionalChain([this, 'access', _86 => _86.#parent, 'optionalAccess', _87 => _87.type]) === "!")) {
4729
4875
  ret.push({});
4730
4876
  }
4731
4877
  return ret;
@@ -4733,7 +4879,7 @@ var AST = class _AST {
4733
4879
  isStart() {
4734
4880
  if (this.#root === this)
4735
4881
  return true;
4736
- if (!_optionalChain([this, 'access', _76 => _76.#parent, 'optionalAccess', _77 => _77.isStart, 'call', _78 => _78()]))
4882
+ if (!_optionalChain([this, 'access', _88 => _88.#parent, 'optionalAccess', _89 => _89.isStart, 'call', _90 => _90()]))
4737
4883
  return false;
4738
4884
  if (this.#parentIndex === 0)
4739
4885
  return true;
@@ -4749,12 +4895,12 @@ var AST = class _AST {
4749
4895
  isEnd() {
4750
4896
  if (this.#root === this)
4751
4897
  return true;
4752
- if (_optionalChain([this, 'access', _79 => _79.#parent, 'optionalAccess', _80 => _80.type]) === "!")
4898
+ if (_optionalChain([this, 'access', _91 => _91.#parent, 'optionalAccess', _92 => _92.type]) === "!")
4753
4899
  return true;
4754
- if (!_optionalChain([this, 'access', _81 => _81.#parent, 'optionalAccess', _82 => _82.isEnd, 'call', _83 => _83()]))
4900
+ if (!_optionalChain([this, 'access', _93 => _93.#parent, 'optionalAccess', _94 => _94.isEnd, 'call', _95 => _95()]))
4755
4901
  return false;
4756
4902
  if (!this.type)
4757
- return _optionalChain([this, 'access', _84 => _84.#parent, 'optionalAccess', _85 => _85.isEnd, 'call', _86 => _86()]);
4903
+ return _optionalChain([this, 'access', _96 => _96.#parent, 'optionalAccess', _97 => _97.isEnd, 'call', _98 => _98()]);
4758
4904
  const pl2 = this.#parent ? this.#parent.#parts.length : 0;
4759
4905
  return this.#parentIndex === pl2 - 1;
4760
4906
  }
@@ -4999,7 +5145,7 @@ var AST = class _AST {
4999
5145
  }
5000
5146
  }
5001
5147
  let end = "";
5002
- if (this.isEnd() && this.#root.#filledNegs && _optionalChain([this, 'access', _87 => _87.#parent, 'optionalAccess', _88 => _88.type]) === "!") {
5148
+ if (this.isEnd() && this.#root.#filledNegs && _optionalChain([this, 'access', _99 => _99.#parent, 'optionalAccess', _100 => _100.type]) === "!") {
5003
5149
  end = "(?:$|\\/)";
5004
5150
  }
5005
5151
  const final2 = start2 + src + end;
@@ -5167,11 +5313,11 @@ var qmarksTestNoExtDot = ([$0]) => {
5167
5313
  return (f) => f.length === len && f !== "." && f !== "..";
5168
5314
  };
5169
5315
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
5170
- var path5 = {
5316
+ var path7 = {
5171
5317
  win32: { sep: "\\" },
5172
5318
  posix: { sep: "/" }
5173
5319
  };
5174
- var sep = defaultPlatform === "win32" ? path5.win32.sep : path5.posix.sep;
5320
+ var sep = defaultPlatform === "win32" ? path7.win32.sep : path7.posix.sep;
5175
5321
  minimatch.sep = sep;
5176
5322
  var GLOBSTAR = Symbol("globstar **");
5177
5323
  minimatch.GLOBSTAR = GLOBSTAR;
@@ -6055,8 +6201,8 @@ var Minipass = (_class5 = class extends _events2.EventEmitter {
6055
6201
  // drop everything and get out of the flow completely
6056
6202
  [ABORT]() {
6057
6203
  this[ABORTED] = true;
6058
- this.emit("abort", _optionalChain([this, 'access', _89 => _89[SIGNAL], 'optionalAccess', _90 => _90.reason]));
6059
- this.destroy(_optionalChain([this, 'access', _91 => _91[SIGNAL], 'optionalAccess', _92 => _92.reason]));
6204
+ this.emit("abort", _optionalChain([this, 'access', _101 => _101[SIGNAL], 'optionalAccess', _102 => _102.reason]));
6205
+ this.destroy(_optionalChain([this, 'access', _103 => _103[SIGNAL], 'optionalAccess', _104 => _104.reason]));
6060
6206
  }
6061
6207
  /**
6062
6208
  * True if the stream has been aborted.
@@ -6116,7 +6262,7 @@ var Minipass = (_class5 = class extends _events2.EventEmitter {
6116
6262
  return this[FLOWING];
6117
6263
  }
6118
6264
  if (typeof chunk === "string" && // unless it is a string already ready for us to use
6119
- !(encoding === this[ENCODING] && !_optionalChain([this, 'access', _93 => _93[DECODER], 'optionalAccess', _94 => _94.lastNeed]))) {
6265
+ !(encoding === this[ENCODING] && !_optionalChain([this, 'access', _105 => _105[DECODER], 'optionalAccess', _106 => _106.lastNeed]))) {
6120
6266
  chunk = Buffer.from(chunk, encoding);
6121
6267
  }
6122
6268
  if (Buffer.isBuffer(chunk) && this[ENCODING]) {
@@ -6982,12 +7128,12 @@ var PathBase = (_class6 = class {
6982
7128
  /**
6983
7129
  * Get the Path object referenced by the string path, resolved from this Path
6984
7130
  */
6985
- resolve(path25) {
6986
- if (!path25) {
7131
+ resolve(path27) {
7132
+ if (!path27) {
6987
7133
  return this;
6988
7134
  }
6989
- const rootPath = this.getRootString(path25);
6990
- const dir = path25.substring(rootPath.length);
7135
+ const rootPath = this.getRootString(path27);
7136
+ const dir = path27.substring(rootPath.length);
6991
7137
  const dirParts = dir.split(this.splitSep);
6992
7138
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
6993
7139
  return result;
@@ -7306,7 +7452,7 @@ var PathBase = (_class6 = class {
7306
7452
  }
7307
7453
  try {
7308
7454
  const read2 = await this.#fs.promises.readlink(this.fullpath());
7309
- const linkTarget = await _asyncOptionalChain([(await this.parent.realpath()), 'optionalAccess', async _95 => _95.resolve, 'call', async _96 => _96(read2)]);
7455
+ const linkTarget = await _asyncOptionalChain([(await this.parent.realpath()), 'optionalAccess', async _107 => _107.resolve, 'call', async _108 => _108(read2)]);
7310
7456
  if (linkTarget) {
7311
7457
  return this.#linkTarget = linkTarget;
7312
7458
  }
@@ -7331,7 +7477,7 @@ var PathBase = (_class6 = class {
7331
7477
  }
7332
7478
  try {
7333
7479
  const read2 = this.#fs.readlinkSync(this.fullpath());
7334
- const linkTarget = _optionalChain([this, 'access', _97 => _97.parent, 'access', _98 => _98.realpathSync, 'call', _99 => _99(), 'optionalAccess', _100 => _100.resolve, 'call', _101 => _101(read2)]);
7480
+ const linkTarget = _optionalChain([this, 'access', _109 => _109.parent, 'access', _110 => _110.realpathSync, 'call', _111 => _111(), 'optionalAccess', _112 => _112.resolve, 'call', _113 => _113(read2)]);
7335
7481
  if (linkTarget) {
7336
7482
  return this.#linkTarget = linkTarget;
7337
7483
  }
@@ -7739,8 +7885,8 @@ var PathWin32 = (_class7 = class _PathWin32 extends PathBase {
7739
7885
  /**
7740
7886
  * @internal
7741
7887
  */
7742
- getRootString(path25) {
7743
- return _path.win32.parse(path25).root;
7888
+ getRootString(path27) {
7889
+ return _path.win32.parse(path27).root;
7744
7890
  }
7745
7891
  /**
7746
7892
  * @internal
@@ -7786,8 +7932,8 @@ var PathPosix = (_class8 = class _PathPosix extends PathBase {
7786
7932
  /**
7787
7933
  * @internal
7788
7934
  */
7789
- getRootString(path25) {
7790
- return path25.startsWith("/") ? "/" : "";
7935
+ getRootString(path27) {
7936
+ return path27.startsWith("/") ? "/" : "";
7791
7937
  }
7792
7938
  /**
7793
7939
  * @internal
@@ -7836,8 +7982,8 @@ var PathScurryBase = class {
7836
7982
  *
7837
7983
  * @internal
7838
7984
  */
7839
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs19 = defaultFS } = {}) {
7840
- this.#fs = fsFromOption(fs19);
7985
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs21 = defaultFS } = {}) {
7986
+ this.#fs = fsFromOption(fs21);
7841
7987
  if (cwd instanceof URL || cwd.startsWith("file://")) {
7842
7988
  cwd = _url.fileURLToPath.call(void 0, cwd);
7843
7989
  }
@@ -7876,11 +8022,11 @@ var PathScurryBase = class {
7876
8022
  /**
7877
8023
  * Get the depth of a provided path, string, or the cwd
7878
8024
  */
7879
- depth(path25 = this.cwd) {
7880
- if (typeof path25 === "string") {
7881
- path25 = this.cwd.resolve(path25);
8025
+ depth(path27 = this.cwd) {
8026
+ if (typeof path27 === "string") {
8027
+ path27 = this.cwd.resolve(path27);
7882
8028
  }
7883
- return path25.depth();
8029
+ return path27.depth();
7884
8030
  }
7885
8031
  /**
7886
8032
  * Return the cache of child entries. Exposed so subclasses can create
@@ -8061,7 +8207,7 @@ var PathScurryBase = class {
8061
8207
  entry = this.cwd;
8062
8208
  }
8063
8209
  const e = await entry.readlink();
8064
- return withFileTypes ? e : _optionalChain([e, 'optionalAccess', _102 => _102.fullpath, 'call', _103 => _103()]);
8210
+ return withFileTypes ? e : _optionalChain([e, 'optionalAccess', _114 => _114.fullpath, 'call', _115 => _115()]);
8065
8211
  }
8066
8212
  readlinkSync(entry = this.cwd, { withFileTypes } = {
8067
8213
  withFileTypes: false
@@ -8073,7 +8219,7 @@ var PathScurryBase = class {
8073
8219
  entry = this.cwd;
8074
8220
  }
8075
8221
  const e = entry.readlinkSync();
8076
- return withFileTypes ? e : _optionalChain([e, 'optionalAccess', _104 => _104.fullpath, 'call', _105 => _105()]);
8222
+ return withFileTypes ? e : _optionalChain([e, 'optionalAccess', _116 => _116.fullpath, 'call', _117 => _117()]);
8077
8223
  }
8078
8224
  async realpath(entry = this.cwd, { withFileTypes } = {
8079
8225
  withFileTypes: false
@@ -8085,7 +8231,7 @@ var PathScurryBase = class {
8085
8231
  entry = this.cwd;
8086
8232
  }
8087
8233
  const e = await entry.realpath();
8088
- return withFileTypes ? e : _optionalChain([e, 'optionalAccess', _106 => _106.fullpath, 'call', _107 => _107()]);
8234
+ return withFileTypes ? e : _optionalChain([e, 'optionalAccess', _118 => _118.fullpath, 'call', _119 => _119()]);
8089
8235
  }
8090
8236
  realpathSync(entry = this.cwd, { withFileTypes } = {
8091
8237
  withFileTypes: false
@@ -8097,7 +8243,7 @@ var PathScurryBase = class {
8097
8243
  entry = this.cwd;
8098
8244
  }
8099
8245
  const e = entry.realpathSync();
8100
- return withFileTypes ? e : _optionalChain([e, 'optionalAccess', _108 => _108.fullpath, 'call', _109 => _109()]);
8246
+ return withFileTypes ? e : _optionalChain([e, 'optionalAccess', _120 => _120.fullpath, 'call', _121 => _121()]);
8101
8247
  }
8102
8248
  async walk(entry = this.cwd, opts = {}) {
8103
8249
  if (typeof entry === "string") {
@@ -8131,7 +8277,7 @@ var PathScurryBase = class {
8131
8277
  results.push(withFileTypes ? e : e.fullpath());
8132
8278
  }
8133
8279
  if (follow && e.isSymbolicLink()) {
8134
- e.realpath().then((r2) => _optionalChain([r2, 'optionalAccess', _110 => _110.isUnknown, 'call', _111 => _111()]) ? r2.lstat() : r2).then((r2) => _optionalChain([r2, 'optionalAccess', _112 => _112.shouldWalk, 'call', _113 => _113(dirs, walkFilter)]) ? walk2(r2, next) : next());
8280
+ e.realpath().then((r2) => _optionalChain([r2, 'optionalAccess', _122 => _122.isUnknown, 'call', _123 => _123()]) ? r2.lstat() : r2).then((r2) => _optionalChain([r2, 'optionalAccess', _124 => _124.shouldWalk, 'call', _125 => _125(dirs, walkFilter)]) ? walk2(r2, next) : next());
8135
8281
  } else {
8136
8282
  if (e.shouldWalk(dirs, walkFilter)) {
8137
8283
  walk2(e, next);
@@ -8277,7 +8423,7 @@ var PathScurryBase = class {
8277
8423
  const promises3 = [];
8278
8424
  for (const e of entries) {
8279
8425
  if (e.isSymbolicLink()) {
8280
- promises3.push(e.realpath().then((r2) => _optionalChain([r2, 'optionalAccess', _114 => _114.isUnknown, 'call', _115 => _115()]) ? r2.lstat() : r2));
8426
+ promises3.push(e.realpath().then((r2) => _optionalChain([r2, 'optionalAccess', _126 => _126.isUnknown, 'call', _127 => _127()]) ? r2.lstat() : r2));
8281
8427
  }
8282
8428
  }
8283
8429
  if (promises3.length) {
@@ -8367,9 +8513,9 @@ var PathScurryBase = class {
8367
8513
  process9();
8368
8514
  return results;
8369
8515
  }
8370
- chdir(path25 = this.cwd) {
8516
+ chdir(path27 = this.cwd) {
8371
8517
  const oldCwd = this.cwd;
8372
- this.cwd = typeof path25 === "string" ? this.cwd.resolve(path25) : path25;
8518
+ this.cwd = typeof path27 === "string" ? this.cwd.resolve(path27) : path27;
8373
8519
  this.cwd[setAsCwd](oldCwd);
8374
8520
  }
8375
8521
  };
@@ -8395,8 +8541,8 @@ var PathScurryWin32 = (_class9 = class extends PathScurryBase {
8395
8541
  /**
8396
8542
  * @internal
8397
8543
  */
8398
- newRoot(fs19) {
8399
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs19 });
8544
+ newRoot(fs21) {
8545
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs21 });
8400
8546
  }
8401
8547
  /**
8402
8548
  * Return true if the provided path string is an absolute path
@@ -8424,8 +8570,8 @@ var PathScurryPosix = (_class10 = class extends PathScurryBase {
8424
8570
  /**
8425
8571
  * @internal
8426
8572
  */
8427
- newRoot(fs19) {
8428
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs19 });
8573
+ newRoot(fs21) {
8574
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs21 });
8429
8575
  }
8430
8576
  /**
8431
8577
  * Return true if the provided path string is an absolute path
@@ -8711,7 +8857,7 @@ var HasWalkedCache = class _HasWalkedCache {
8711
8857
  return new _HasWalkedCache(new Map(this.store));
8712
8858
  }
8713
8859
  hasWalked(target, pattern) {
8714
- return _optionalChain([this, 'access', _116 => _116.store, 'access', _117 => _117.get, 'call', _118 => _118(target.fullpath()), 'optionalAccess', _119 => _119.has, 'call', _120 => _120(pattern.globString())]);
8860
+ return _optionalChain([this, 'access', _128 => _128.store, 'access', _129 => _129.get, 'call', _130 => _130(target.fullpath()), 'optionalAccess', _131 => _131.has, 'call', _132 => _132(pattern.globString())]);
8715
8861
  }
8716
8862
  storeWalked(target, pattern) {
8717
8863
  const fullpath = target.fullpath();
@@ -8731,8 +8877,8 @@ var MatchRecord = (_class11 = class {constructor() { _class11.prototype.__init28
8731
8877
  }
8732
8878
  // match, absolute, ifdir
8733
8879
  entries() {
8734
- return [...this.store.entries()].map(([path25, n2]) => [
8735
- path25,
8880
+ return [...this.store.entries()].map(([path27, n2]) => [
8881
+ path27,
8736
8882
  !!(n2 & 2),
8737
8883
  !!(n2 & 1)
8738
8884
  ]);
@@ -8823,8 +8969,8 @@ var Processor = (_class13 = class _Processor {
8823
8969
  if (!t2.isSymbolicLink() || this.follow || pattern.checkFollowGlobstar()) {
8824
8970
  this.subwalks.add(t2, pattern);
8825
8971
  }
8826
- const rp = _optionalChain([rest, 'optionalAccess', _121 => _121.pattern, 'call', _122 => _122()]);
8827
- const rrest = _optionalChain([rest, 'optionalAccess', _123 => _123.rest, 'call', _124 => _124()]);
8972
+ const rp = _optionalChain([rest, 'optionalAccess', _133 => _133.pattern, 'call', _134 => _134()]);
8973
+ const rrest = _optionalChain([rest, 'optionalAccess', _135 => _135.rest, 'call', _136 => _136()]);
8828
8974
  if (!rest || (rp === "" || rp === ".") && !rrest) {
8829
8975
  this.matches.add(t2, absolute, rp === "" || rp === ".");
8830
8976
  } else {
@@ -8937,9 +9083,9 @@ var GlobUtil = (_class14 = class {
8937
9083
 
8938
9084
 
8939
9085
 
8940
- constructor(patterns, path25, opts) {;_class14.prototype.__init32.call(this);_class14.prototype.__init33.call(this);_class14.prototype.__init34.call(this);
9086
+ constructor(patterns, path27, opts) {;_class14.prototype.__init32.call(this);_class14.prototype.__init33.call(this);_class14.prototype.__init34.call(this);
8941
9087
  this.patterns = patterns;
8942
- this.path = path25;
9088
+ this.path = path27;
8943
9089
  this.opts = opts;
8944
9090
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
8945
9091
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -8958,18 +9104,18 @@ var GlobUtil = (_class14 = class {
8958
9104
  });
8959
9105
  }
8960
9106
  }
8961
- #ignored(path25) {
8962
- return this.seen.has(path25) || !!_optionalChain([this, 'access', _125 => _125.#ignore, 'optionalAccess', _126 => _126.ignored, 'optionalCall', _127 => _127(path25)]);
9107
+ #ignored(path27) {
9108
+ return this.seen.has(path27) || !!_optionalChain([this, 'access', _137 => _137.#ignore, 'optionalAccess', _138 => _138.ignored, 'optionalCall', _139 => _139(path27)]);
8963
9109
  }
8964
- #childrenIgnored(path25) {
8965
- return !!_optionalChain([this, 'access', _128 => _128.#ignore, 'optionalAccess', _129 => _129.childrenIgnored, 'optionalCall', _130 => _130(path25)]);
9110
+ #childrenIgnored(path27) {
9111
+ return !!_optionalChain([this, 'access', _140 => _140.#ignore, 'optionalAccess', _141 => _141.childrenIgnored, 'optionalCall', _142 => _142(path27)]);
8966
9112
  }
8967
9113
  // backpressure mechanism
8968
9114
  pause() {
8969
9115
  this.paused = true;
8970
9116
  }
8971
9117
  resume() {
8972
- if (_optionalChain([this, 'access', _131 => _131.signal, 'optionalAccess', _132 => _132.aborted]))
9118
+ if (_optionalChain([this, 'access', _143 => _143.signal, 'optionalAccess', _144 => _144.aborted]))
8973
9119
  return;
8974
9120
  this.paused = false;
8975
9121
  let fn = void 0;
@@ -8978,7 +9124,7 @@ var GlobUtil = (_class14 = class {
8978
9124
  }
8979
9125
  }
8980
9126
  onResume(fn) {
8981
- if (_optionalChain([this, 'access', _133 => _133.signal, 'optionalAccess', _134 => _134.aborted]))
9127
+ if (_optionalChain([this, 'access', _145 => _145.signal, 'optionalAccess', _146 => _146.aborted]))
8982
9128
  return;
8983
9129
  if (!this.paused) {
8984
9130
  fn();
@@ -9000,7 +9146,7 @@ var GlobUtil = (_class14 = class {
9000
9146
  }
9001
9147
  const needStat = e.isUnknown() || this.opts.stat;
9002
9148
  const s = needStat ? await e.lstat() : e;
9003
- if (this.opts.follow && this.opts.nodir && _optionalChain([s, 'optionalAccess', _135 => _135.isSymbolicLink, 'call', _136 => _136()])) {
9149
+ if (this.opts.follow && this.opts.nodir && _optionalChain([s, 'optionalAccess', _147 => _147.isSymbolicLink, 'call', _148 => _148()])) {
9004
9150
  const target = await s.realpath();
9005
9151
  if (target && (target.isUnknown() || this.opts.stat)) {
9006
9152
  await target.lstat();
@@ -9009,7 +9155,7 @@ var GlobUtil = (_class14 = class {
9009
9155
  return this.matchCheckTest(s, ifDir);
9010
9156
  }
9011
9157
  matchCheckTest(e, ifDir) {
9012
- return e && (this.maxDepth === Infinity || e.depth() <= this.maxDepth) && (!ifDir || e.canReaddir()) && (!this.opts.nodir || !e.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !e.isSymbolicLink() || !_optionalChain([e, 'access', _137 => _137.realpathCached, 'call', _138 => _138(), 'optionalAccess', _139 => _139.isDirectory, 'call', _140 => _140()])) && !this.#ignored(e) ? e : void 0;
9158
+ return e && (this.maxDepth === Infinity || e.depth() <= this.maxDepth) && (!ifDir || e.canReaddir()) && (!this.opts.nodir || !e.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !e.isSymbolicLink() || !_optionalChain([e, 'access', _149 => _149.realpathCached, 'call', _150 => _150(), 'optionalAccess', _151 => _151.isDirectory, 'call', _152 => _152()])) && !this.#ignored(e) ? e : void 0;
9013
9159
  }
9014
9160
  matchCheckSync(e, ifDir) {
9015
9161
  if (ifDir && this.opts.nodir)
@@ -9023,9 +9169,9 @@ var GlobUtil = (_class14 = class {
9023
9169
  }
9024
9170
  const needStat = e.isUnknown() || this.opts.stat;
9025
9171
  const s = needStat ? e.lstatSync() : e;
9026
- if (this.opts.follow && this.opts.nodir && _optionalChain([s, 'optionalAccess', _141 => _141.isSymbolicLink, 'call', _142 => _142()])) {
9172
+ if (this.opts.follow && this.opts.nodir && _optionalChain([s, 'optionalAccess', _153 => _153.isSymbolicLink, 'call', _154 => _154()])) {
9027
9173
  const target = s.realpathSync();
9028
- if (target && (_optionalChain([target, 'optionalAccess', _143 => _143.isUnknown, 'call', _144 => _144()]) || this.opts.stat)) {
9174
+ if (target && (_optionalChain([target, 'optionalAccess', _155 => _155.isUnknown, 'call', _156 => _156()]) || this.opts.stat)) {
9029
9175
  target.lstatSync();
9030
9176
  }
9031
9177
  }
@@ -9034,7 +9180,7 @@ var GlobUtil = (_class14 = class {
9034
9180
  matchFinish(e, absolute) {
9035
9181
  if (this.#ignored(e))
9036
9182
  return;
9037
- if (!this.includeChildMatches && _optionalChain([this, 'access', _145 => _145.#ignore, 'optionalAccess', _146 => _146.add])) {
9183
+ if (!this.includeChildMatches && _optionalChain([this, 'access', _157 => _157.#ignore, 'optionalAccess', _158 => _158.add])) {
9038
9184
  const ign = `${e.relativePosix()}/**`;
9039
9185
  this.#ignore.add(ign);
9040
9186
  }
@@ -9063,14 +9209,14 @@ var GlobUtil = (_class14 = class {
9063
9209
  this.matchFinish(p, absolute);
9064
9210
  }
9065
9211
  walkCB(target, patterns, cb) {
9066
- if (_optionalChain([this, 'access', _147 => _147.signal, 'optionalAccess', _148 => _148.aborted]))
9212
+ if (_optionalChain([this, 'access', _159 => _159.signal, 'optionalAccess', _160 => _160.aborted]))
9067
9213
  cb();
9068
9214
  this.walkCB2(target, patterns, new Processor(this.opts), cb);
9069
9215
  }
9070
9216
  walkCB2(target, patterns, processor, cb) {
9071
9217
  if (this.#childrenIgnored(target))
9072
9218
  return cb();
9073
- if (_optionalChain([this, 'access', _149 => _149.signal, 'optionalAccess', _150 => _150.aborted]))
9219
+ if (_optionalChain([this, 'access', _161 => _161.signal, 'optionalAccess', _162 => _162.aborted]))
9074
9220
  cb();
9075
9221
  if (this.paused) {
9076
9222
  this.onResume(() => this.walkCB2(target, patterns, processor, cb));
@@ -9122,14 +9268,14 @@ var GlobUtil = (_class14 = class {
9122
9268
  next();
9123
9269
  }
9124
9270
  walkCBSync(target, patterns, cb) {
9125
- if (_optionalChain([this, 'access', _151 => _151.signal, 'optionalAccess', _152 => _152.aborted]))
9271
+ if (_optionalChain([this, 'access', _163 => _163.signal, 'optionalAccess', _164 => _164.aborted]))
9126
9272
  cb();
9127
9273
  this.walkCB2Sync(target, patterns, new Processor(this.opts), cb);
9128
9274
  }
9129
9275
  walkCB2Sync(target, patterns, processor, cb) {
9130
9276
  if (this.#childrenIgnored(target))
9131
9277
  return cb();
9132
- if (_optionalChain([this, 'access', _153 => _153.signal, 'optionalAccess', _154 => _154.aborted]))
9278
+ if (_optionalChain([this, 'access', _165 => _165.signal, 'optionalAccess', _166 => _166.aborted]))
9133
9279
  cb();
9134
9280
  if (this.paused) {
9135
9281
  this.onResume(() => this.walkCB2Sync(target, patterns, processor, cb));
@@ -9177,21 +9323,21 @@ var GlobUtil = (_class14 = class {
9177
9323
  }, _class14);
9178
9324
  var GlobWalker = (_class15 = class extends GlobUtil {
9179
9325
  __init35() {this.matches = /* @__PURE__ */ new Set()}
9180
- constructor(patterns, path25, opts) {
9181
- super(patterns, path25, opts);_class15.prototype.__init35.call(this);;
9326
+ constructor(patterns, path27, opts) {
9327
+ super(patterns, path27, opts);_class15.prototype.__init35.call(this);;
9182
9328
  }
9183
9329
  matchEmit(e) {
9184
9330
  this.matches.add(e);
9185
9331
  }
9186
9332
  async walk() {
9187
- if (_optionalChain([this, 'access', _155 => _155.signal, 'optionalAccess', _156 => _156.aborted]))
9333
+ if (_optionalChain([this, 'access', _167 => _167.signal, 'optionalAccess', _168 => _168.aborted]))
9188
9334
  throw this.signal.reason;
9189
9335
  if (this.path.isUnknown()) {
9190
9336
  await this.path.lstat();
9191
9337
  }
9192
9338
  await new Promise((res, rej) => {
9193
9339
  this.walkCB(this.path, this.patterns, () => {
9194
- if (_optionalChain([this, 'access', _157 => _157.signal, 'optionalAccess', _158 => _158.aborted])) {
9340
+ if (_optionalChain([this, 'access', _169 => _169.signal, 'optionalAccess', _170 => _170.aborted])) {
9195
9341
  rej(this.signal.reason);
9196
9342
  } else {
9197
9343
  res(this.matches);
@@ -9201,13 +9347,13 @@ var GlobWalker = (_class15 = class extends GlobUtil {
9201
9347
  return this.matches;
9202
9348
  }
9203
9349
  walkSync() {
9204
- if (_optionalChain([this, 'access', _159 => _159.signal, 'optionalAccess', _160 => _160.aborted]))
9350
+ if (_optionalChain([this, 'access', _171 => _171.signal, 'optionalAccess', _172 => _172.aborted]))
9205
9351
  throw this.signal.reason;
9206
9352
  if (this.path.isUnknown()) {
9207
9353
  this.path.lstatSync();
9208
9354
  }
9209
9355
  this.walkCBSync(this.path, this.patterns, () => {
9210
- if (_optionalChain([this, 'access', _161 => _161.signal, 'optionalAccess', _162 => _162.aborted]))
9356
+ if (_optionalChain([this, 'access', _173 => _173.signal, 'optionalAccess', _174 => _174.aborted]))
9211
9357
  throw this.signal.reason;
9212
9358
  });
9213
9359
  return this.matches;
@@ -9215,8 +9361,8 @@ var GlobWalker = (_class15 = class extends GlobUtil {
9215
9361
  }, _class15);
9216
9362
  var GlobStream = class extends GlobUtil {
9217
9363
 
9218
- constructor(patterns, path25, opts) {
9219
- super(patterns, path25, opts);
9364
+ constructor(patterns, path27, opts) {
9365
+ super(patterns, path27, opts);
9220
9366
  this.results = new Minipass({
9221
9367
  signal: this.signal,
9222
9368
  objectMode: true
@@ -9553,44 +9699,44 @@ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
9553
9699
  var platform_default = process.env.__TESTING_RIMRAF_PLATFORM__ || process.platform;
9554
9700
 
9555
9701
  // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/path-arg.js
9556
- var pathArg = (path25, opt = {}) => {
9557
- const type = typeof path25;
9702
+ var pathArg = (path27, opt = {}) => {
9703
+ const type = typeof path27;
9558
9704
  if (type !== "string") {
9559
- const ctor = path25 && type === "object" && path25.constructor;
9560
- const received = ctor && ctor.name ? `an instance of ${ctor.name}` : type === "object" ? _util.inspect.call(void 0, path25) : `type ${type} ${path25}`;
9705
+ const ctor = path27 && type === "object" && path27.constructor;
9706
+ const received = ctor && ctor.name ? `an instance of ${ctor.name}` : type === "object" ? _util.inspect.call(void 0, path27) : `type ${type} ${path27}`;
9561
9707
  const msg = `The "path" argument must be of type string. Received ${received}`;
9562
9708
  throw Object.assign(new TypeError(msg), {
9563
- path: path25,
9709
+ path: path27,
9564
9710
  code: "ERR_INVALID_ARG_TYPE"
9565
9711
  });
9566
9712
  }
9567
- if (/\0/.test(path25)) {
9713
+ if (/\0/.test(path27)) {
9568
9714
  const msg = "path must be a string without null bytes";
9569
9715
  throw Object.assign(new TypeError(msg), {
9570
- path: path25,
9716
+ path: path27,
9571
9717
  code: "ERR_INVALID_ARG_VALUE"
9572
9718
  });
9573
9719
  }
9574
- path25 = _path.resolve.call(void 0, path25);
9575
- const { root } = _path.parse.call(void 0, path25);
9576
- if (path25 === root && opt.preserveRoot !== false) {
9720
+ path27 = _path.resolve.call(void 0, path27);
9721
+ const { root } = _path.parse.call(void 0, path27);
9722
+ if (path27 === root && opt.preserveRoot !== false) {
9577
9723
  const msg = "refusing to remove root directory without preserveRoot:false";
9578
9724
  throw Object.assign(new Error(msg), {
9579
- path: path25,
9725
+ path: path27,
9580
9726
  code: "ERR_PRESERVE_ROOT"
9581
9727
  });
9582
9728
  }
9583
9729
  if (platform_default === "win32") {
9584
9730
  const badWinChars = /[*|"<>?:]/;
9585
- const { root: root2 } = _path.parse.call(void 0, path25);
9586
- if (badWinChars.test(path25.substring(root2.length))) {
9731
+ const { root: root2 } = _path.parse.call(void 0, path27);
9732
+ if (badWinChars.test(path27.substring(root2.length))) {
9587
9733
  throw Object.assign(new Error("Illegal characters in path."), {
9588
- path: path25,
9734
+ path: path27,
9589
9735
  code: "EINVAL"
9590
9736
  });
9591
9737
  }
9592
9738
  }
9593
- return path25;
9739
+ return path27;
9594
9740
  };
9595
9741
  var path_arg_default = pathArg;
9596
9742
 
@@ -9605,16 +9751,16 @@ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
9605
9751
 
9606
9752
 
9607
9753
 
9608
- var readdirSync2 = (path25) => _fs.readdirSync.call(void 0, path25, { withFileTypes: true });
9609
- var chmod = (path25, mode) => new Promise((res, rej) => actualFS.default.chmod(path25, mode, (er, ...d) => er ? rej(er) : res(...d)));
9610
- var mkdir = (path25, options) => new Promise((res, rej) => actualFS.default.mkdir(path25, options, (er, made) => er ? rej(er) : res(made)));
9611
- var readdir4 = (path25) => new Promise((res, rej) => actualFS.default.readdir(path25, { withFileTypes: true }, (er, data2) => er ? rej(er) : res(data2)));
9754
+ var readdirSync2 = (path27) => _fs.readdirSync.call(void 0, path27, { withFileTypes: true });
9755
+ var chmod = (path27, mode) => new Promise((res, rej) => actualFS.default.chmod(path27, mode, (er, ...d) => er ? rej(er) : res(...d)));
9756
+ var mkdir = (path27, options) => new Promise((res, rej) => actualFS.default.mkdir(path27, options, (er, made) => er ? rej(er) : res(made)));
9757
+ var readdir4 = (path27) => new Promise((res, rej) => actualFS.default.readdir(path27, { withFileTypes: true }, (er, data2) => er ? rej(er) : res(data2)));
9612
9758
  var rename = (oldPath, newPath) => new Promise((res, rej) => actualFS.default.rename(oldPath, newPath, (er, ...d) => er ? rej(er) : res(...d)));
9613
- var rm = (path25, options) => new Promise((res, rej) => actualFS.default.rm(path25, options, (er, ...d) => er ? rej(er) : res(...d)));
9614
- var rmdir = (path25) => new Promise((res, rej) => actualFS.default.rmdir(path25, (er, ...d) => er ? rej(er) : res(...d)));
9615
- var stat4 = (path25) => new Promise((res, rej) => actualFS.default.stat(path25, (er, data2) => er ? rej(er) : res(data2)));
9616
- var lstat4 = (path25) => new Promise((res, rej) => actualFS.default.lstat(path25, (er, data2) => er ? rej(er) : res(data2)));
9617
- var unlink = (path25) => new Promise((res, rej) => actualFS.default.unlink(path25, (er, ...d) => er ? rej(er) : res(...d)));
9759
+ var rm = (path27, options) => new Promise((res, rej) => actualFS.default.rm(path27, options, (er, ...d) => er ? rej(er) : res(...d)));
9760
+ var rmdir = (path27) => new Promise((res, rej) => actualFS.default.rmdir(path27, (er, ...d) => er ? rej(er) : res(...d)));
9761
+ var stat4 = (path27) => new Promise((res, rej) => actualFS.default.stat(path27, (er, data2) => er ? rej(er) : res(data2)));
9762
+ var lstat4 = (path27) => new Promise((res, rej) => actualFS.default.lstat(path27, (er, data2) => er ? rej(er) : res(data2)));
9763
+ var unlink = (path27) => new Promise((res, rej) => actualFS.default.unlink(path27, (er, ...d) => er ? rej(er) : res(...d)));
9618
9764
  var promises = {
9619
9765
  chmod,
9620
9766
  mkdir,
@@ -9633,10 +9779,10 @@ var promises = {
9633
9779
  // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/readdir-or-error.js
9634
9780
  _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
9635
9781
  var { readdir: readdir5 } = promises;
9636
- var readdirOrError = (path25) => readdir5(path25).catch((er) => er);
9637
- var readdirOrErrorSync = (path25) => {
9782
+ var readdirOrError = (path27) => readdir5(path27).catch((er) => er);
9783
+ var readdirOrErrorSync = (path27) => {
9638
9784
  try {
9639
- return readdirSync2(path25);
9785
+ return readdirSync2(path27);
9640
9786
  } catch (er) {
9641
9787
  return er;
9642
9788
  }
@@ -9653,7 +9799,7 @@ var ignoreENOENTSync = (fn) => {
9653
9799
  try {
9654
9800
  return fn();
9655
9801
  } catch (er) {
9656
- if (_optionalChain([er, 'optionalAccess', _163 => _163.code]) !== "ENOENT") {
9802
+ if (_optionalChain([er, 'optionalAccess', _175 => _175.code]) !== "ENOENT") {
9657
9803
  throw er;
9658
9804
  }
9659
9805
  }
@@ -9661,35 +9807,35 @@ var ignoreENOENTSync = (fn) => {
9661
9807
 
9662
9808
  // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js
9663
9809
  var { lstat: lstat5, rmdir: rmdir2, unlink: unlink2 } = promises;
9664
- var rimrafPosix = async (path25, opt) => {
9665
- if (_optionalChain([opt, 'optionalAccess', _164 => _164.signal, 'optionalAccess', _165 => _165.aborted])) {
9810
+ var rimrafPosix = async (path27, opt) => {
9811
+ if (_optionalChain([opt, 'optionalAccess', _176 => _176.signal, 'optionalAccess', _177 => _177.aborted])) {
9666
9812
  throw opt.signal.reason;
9667
9813
  }
9668
9814
  try {
9669
- return await rimrafPosixDir(path25, opt, await lstat5(path25));
9815
+ return await rimrafPosixDir(path27, opt, await lstat5(path27));
9670
9816
  } catch (er) {
9671
- if (_optionalChain([er, 'optionalAccess', _166 => _166.code]) === "ENOENT")
9817
+ if (_optionalChain([er, 'optionalAccess', _178 => _178.code]) === "ENOENT")
9672
9818
  return true;
9673
9819
  throw er;
9674
9820
  }
9675
9821
  };
9676
- var rimrafPosixSync = (path25, opt) => {
9677
- if (_optionalChain([opt, 'optionalAccess', _167 => _167.signal, 'optionalAccess', _168 => _168.aborted])) {
9822
+ var rimrafPosixSync = (path27, opt) => {
9823
+ if (_optionalChain([opt, 'optionalAccess', _179 => _179.signal, 'optionalAccess', _180 => _180.aborted])) {
9678
9824
  throw opt.signal.reason;
9679
9825
  }
9680
9826
  try {
9681
- return rimrafPosixDirSync(path25, opt, _fs.lstatSync.call(void 0, path25));
9827
+ return rimrafPosixDirSync(path27, opt, _fs.lstatSync.call(void 0, path27));
9682
9828
  } catch (er) {
9683
- if (_optionalChain([er, 'optionalAccess', _169 => _169.code]) === "ENOENT")
9829
+ if (_optionalChain([er, 'optionalAccess', _181 => _181.code]) === "ENOENT")
9684
9830
  return true;
9685
9831
  throw er;
9686
9832
  }
9687
9833
  };
9688
- var rimrafPosixDir = async (path25, opt, ent) => {
9689
- if (_optionalChain([opt, 'optionalAccess', _170 => _170.signal, 'optionalAccess', _171 => _171.aborted])) {
9834
+ var rimrafPosixDir = async (path27, opt, ent) => {
9835
+ if (_optionalChain([opt, 'optionalAccess', _182 => _182.signal, 'optionalAccess', _183 => _183.aborted])) {
9690
9836
  throw opt.signal.reason;
9691
9837
  }
9692
- const entries = ent.isDirectory() ? await readdirOrError(path25) : null;
9838
+ const entries = ent.isDirectory() ? await readdirOrError(path27) : null;
9693
9839
  if (!Array.isArray(entries)) {
9694
9840
  if (entries) {
9695
9841
  if (entries.code === "ENOENT") {
@@ -9699,30 +9845,30 @@ var rimrafPosixDir = async (path25, opt, ent) => {
9699
9845
  throw entries;
9700
9846
  }
9701
9847
  }
9702
- if (opt.filter && !await opt.filter(path25, ent)) {
9848
+ if (opt.filter && !await opt.filter(path27, ent)) {
9703
9849
  return false;
9704
9850
  }
9705
- await ignoreENOENT(unlink2(path25));
9851
+ await ignoreENOENT(unlink2(path27));
9706
9852
  return true;
9707
9853
  }
9708
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafPosixDir(_path.resolve.call(void 0, path25, ent2.name), opt, ent2)))).reduce((a, b) => a && b, true);
9854
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafPosixDir(_path.resolve.call(void 0, path27, ent2.name), opt, ent2)))).reduce((a, b) => a && b, true);
9709
9855
  if (!removedAll) {
9710
9856
  return false;
9711
9857
  }
9712
- if (opt.preserveRoot === false && path25 === _path.parse.call(void 0, path25).root) {
9858
+ if (opt.preserveRoot === false && path27 === _path.parse.call(void 0, path27).root) {
9713
9859
  return false;
9714
9860
  }
9715
- if (opt.filter && !await opt.filter(path25, ent)) {
9861
+ if (opt.filter && !await opt.filter(path27, ent)) {
9716
9862
  return false;
9717
9863
  }
9718
- await ignoreENOENT(rmdir2(path25));
9864
+ await ignoreENOENT(rmdir2(path27));
9719
9865
  return true;
9720
9866
  };
9721
- var rimrafPosixDirSync = (path25, opt, ent) => {
9722
- if (_optionalChain([opt, 'optionalAccess', _172 => _172.signal, 'optionalAccess', _173 => _173.aborted])) {
9867
+ var rimrafPosixDirSync = (path27, opt, ent) => {
9868
+ if (_optionalChain([opt, 'optionalAccess', _184 => _184.signal, 'optionalAccess', _185 => _185.aborted])) {
9723
9869
  throw opt.signal.reason;
9724
9870
  }
9725
- const entries = ent.isDirectory() ? readdirOrErrorSync(path25) : null;
9871
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path27) : null;
9726
9872
  if (!Array.isArray(entries)) {
9727
9873
  if (entries) {
9728
9874
  if (entries.code === "ENOENT") {
@@ -9732,27 +9878,27 @@ var rimrafPosixDirSync = (path25, opt, ent) => {
9732
9878
  throw entries;
9733
9879
  }
9734
9880
  }
9735
- if (opt.filter && !opt.filter(path25, ent)) {
9881
+ if (opt.filter && !opt.filter(path27, ent)) {
9736
9882
  return false;
9737
9883
  }
9738
- ignoreENOENTSync(() => _fs.unlinkSync.call(void 0, path25));
9884
+ ignoreENOENTSync(() => _fs.unlinkSync.call(void 0, path27));
9739
9885
  return true;
9740
9886
  }
9741
9887
  let removedAll = true;
9742
9888
  for (const ent2 of entries) {
9743
- const p = _path.resolve.call(void 0, path25, ent2.name);
9889
+ const p = _path.resolve.call(void 0, path27, ent2.name);
9744
9890
  removedAll = rimrafPosixDirSync(p, opt, ent2) && removedAll;
9745
9891
  }
9746
- if (opt.preserveRoot === false && path25 === _path.parse.call(void 0, path25).root) {
9892
+ if (opt.preserveRoot === false && path27 === _path.parse.call(void 0, path27).root) {
9747
9893
  return false;
9748
9894
  }
9749
9895
  if (!removedAll) {
9750
9896
  return false;
9751
9897
  }
9752
- if (opt.filter && !opt.filter(path25, ent)) {
9898
+ if (opt.filter && !opt.filter(path27, ent)) {
9753
9899
  return false;
9754
9900
  }
9755
- ignoreENOENTSync(() => _fs.rmdirSync.call(void 0, path25));
9901
+ ignoreENOENTSync(() => _fs.rmdirSync.call(void 0, path27));
9756
9902
  return true;
9757
9903
  };
9758
9904
 
@@ -9763,48 +9909,48 @@ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
9763
9909
  // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fix-eperm.js
9764
9910
  _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
9765
9911
  var { chmod: chmod2 } = promises;
9766
- var fixEPERM = (fn) => async (path25) => {
9912
+ var fixEPERM = (fn) => async (path27) => {
9767
9913
  try {
9768
- return await fn(path25);
9914
+ return await fn(path27);
9769
9915
  } catch (er) {
9770
9916
  const fer = er;
9771
- if (_optionalChain([fer, 'optionalAccess', _174 => _174.code]) === "ENOENT") {
9917
+ if (_optionalChain([fer, 'optionalAccess', _186 => _186.code]) === "ENOENT") {
9772
9918
  return;
9773
9919
  }
9774
- if (_optionalChain([fer, 'optionalAccess', _175 => _175.code]) === "EPERM") {
9920
+ if (_optionalChain([fer, 'optionalAccess', _187 => _187.code]) === "EPERM") {
9775
9921
  try {
9776
- await chmod2(path25, 438);
9922
+ await chmod2(path27, 438);
9777
9923
  } catch (er2) {
9778
9924
  const fer2 = er2;
9779
- if (_optionalChain([fer2, 'optionalAccess', _176 => _176.code]) === "ENOENT") {
9925
+ if (_optionalChain([fer2, 'optionalAccess', _188 => _188.code]) === "ENOENT") {
9780
9926
  return;
9781
9927
  }
9782
9928
  throw er;
9783
9929
  }
9784
- return await fn(path25);
9930
+ return await fn(path27);
9785
9931
  }
9786
9932
  throw er;
9787
9933
  }
9788
9934
  };
9789
- var fixEPERMSync = (fn) => (path25) => {
9935
+ var fixEPERMSync = (fn) => (path27) => {
9790
9936
  try {
9791
- return fn(path25);
9937
+ return fn(path27);
9792
9938
  } catch (er) {
9793
9939
  const fer = er;
9794
- if (_optionalChain([fer, 'optionalAccess', _177 => _177.code]) === "ENOENT") {
9940
+ if (_optionalChain([fer, 'optionalAccess', _189 => _189.code]) === "ENOENT") {
9795
9941
  return;
9796
9942
  }
9797
- if (_optionalChain([fer, 'optionalAccess', _178 => _178.code]) === "EPERM") {
9943
+ if (_optionalChain([fer, 'optionalAccess', _190 => _190.code]) === "EPERM") {
9798
9944
  try {
9799
- _fs.chmodSync.call(void 0, path25, 438);
9945
+ _fs.chmodSync.call(void 0, path27, 438);
9800
9946
  } catch (er2) {
9801
9947
  const fer2 = er2;
9802
- if (_optionalChain([fer2, 'optionalAccess', _179 => _179.code]) === "ENOENT") {
9948
+ if (_optionalChain([fer2, 'optionalAccess', _191 => _191.code]) === "ENOENT") {
9803
9949
  return;
9804
9950
  }
9805
9951
  throw er;
9806
9952
  }
9807
- return fn(path25);
9953
+ return fn(path27);
9808
9954
  }
9809
9955
  throw er;
9810
9956
  }
@@ -9817,23 +9963,23 @@ var RATE = 1.2;
9817
9963
  var MAXRETRIES = 10;
9818
9964
  var codes = /* @__PURE__ */ new Set(["EMFILE", "ENFILE", "EBUSY"]);
9819
9965
  var retryBusy = (fn) => {
9820
- const method = async (path25, opt, backoff = 1, total = 0) => {
9966
+ const method = async (path27, opt, backoff = 1, total = 0) => {
9821
9967
  const mbo = opt.maxBackoff || MAXBACKOFF;
9822
9968
  const rate = opt.backoff || RATE;
9823
9969
  const max = opt.maxRetries || MAXRETRIES;
9824
9970
  let retries = 0;
9825
9971
  while (true) {
9826
9972
  try {
9827
- return await fn(path25);
9973
+ return await fn(path27);
9828
9974
  } catch (er) {
9829
9975
  const fer = er;
9830
- if (_optionalChain([fer, 'optionalAccess', _180 => _180.path]) === path25 && _optionalChain([fer, 'optionalAccess', _181 => _181.code]) && codes.has(fer.code)) {
9976
+ if (_optionalChain([fer, 'optionalAccess', _192 => _192.path]) === path27 && _optionalChain([fer, 'optionalAccess', _193 => _193.code]) && codes.has(fer.code)) {
9831
9977
  backoff = Math.ceil(backoff * rate);
9832
9978
  total = backoff + total;
9833
9979
  if (total < mbo) {
9834
9980
  return new Promise((res, rej) => {
9835
9981
  setTimeout(() => {
9836
- method(path25, opt, backoff, total).then(res, rej);
9982
+ method(path27, opt, backoff, total).then(res, rej);
9837
9983
  }, backoff);
9838
9984
  });
9839
9985
  }
@@ -9849,15 +9995,15 @@ var retryBusy = (fn) => {
9849
9995
  return method;
9850
9996
  };
9851
9997
  var retryBusySync = (fn) => {
9852
- const method = (path25, opt) => {
9998
+ const method = (path27, opt) => {
9853
9999
  const max = opt.maxRetries || MAXRETRIES;
9854
10000
  let retries = 0;
9855
10001
  while (true) {
9856
10002
  try {
9857
- return fn(path25);
10003
+ return fn(path27);
9858
10004
  } catch (er) {
9859
10005
  const fer = er;
9860
- if (_optionalChain([fer, 'optionalAccess', _182 => _182.path]) === path25 && _optionalChain([fer, 'optionalAccess', _183 => _183.code]) && codes.has(fer.code) && retries < max) {
10006
+ if (_optionalChain([fer, 'optionalAccess', _194 => _194.path]) === path27 && _optionalChain([fer, 'optionalAccess', _195 => _195.code]) && codes.has(fer.code) && retries < max) {
9861
10007
  retries++;
9862
10008
  continue;
9863
10009
  }
@@ -9877,16 +10023,16 @@ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
9877
10023
 
9878
10024
 
9879
10025
  var { stat: stat5 } = promises;
9880
- var isDirSync = (path25) => {
10026
+ var isDirSync = (path27) => {
9881
10027
  try {
9882
- return _fs.statSync.call(void 0, path25).isDirectory();
10028
+ return _fs.statSync.call(void 0, path27).isDirectory();
9883
10029
  } catch (er) {
9884
10030
  return false;
9885
10031
  }
9886
10032
  };
9887
- var isDir = (path25) => stat5(path25).then((st) => st.isDirectory(), () => false);
9888
- var win32DefaultTmp = async (path25) => {
9889
- const { root } = _path.parse.call(void 0, path25);
10033
+ var isDir = (path27) => stat5(path27).then((st) => st.isDirectory(), () => false);
10034
+ var win32DefaultTmp = async (path27) => {
10035
+ const { root } = _path.parse.call(void 0, path27);
9890
10036
  const tmp = _os.tmpdir.call(void 0, );
9891
10037
  const { root: tmpRoot } = _path.parse.call(void 0, tmp);
9892
10038
  if (root.toLowerCase() === tmpRoot.toLowerCase()) {
@@ -9898,8 +10044,8 @@ var win32DefaultTmp = async (path25) => {
9898
10044
  }
9899
10045
  return root;
9900
10046
  };
9901
- var win32DefaultTmpSync = (path25) => {
9902
- const { root } = _path.parse.call(void 0, path25);
10047
+ var win32DefaultTmpSync = (path27) => {
10048
+ const { root } = _path.parse.call(void 0, path27);
9903
10049
  const tmp = _os.tmpdir.call(void 0, );
9904
10050
  const { root: tmpRoot } = _path.parse.call(void 0, tmp);
9905
10051
  if (root.toLowerCase() === tmpRoot.toLowerCase()) {
@@ -9918,10 +10064,10 @@ var defaultTmpSync = platform_default === "win32" ? win32DefaultTmpSync : posixD
9918
10064
 
9919
10065
  // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-move-remove.js
9920
10066
  var { lstat: lstat6, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chmod3 } = promises;
9921
- var uniqueFilename = (path25) => `.${_path.basename.call(void 0, path25)}.${Math.random()}`;
9922
- var unlinkFixEPERM = async (path25) => unlink3(path25).catch((er) => {
10067
+ var uniqueFilename = (path27) => `.${_path.basename.call(void 0, path27)}.${Math.random()}`;
10068
+ var unlinkFixEPERM = async (path27) => unlink3(path27).catch((er) => {
9923
10069
  if (er.code === "EPERM") {
9924
- return chmod3(path25, 438).then(() => unlink3(path25), (er2) => {
10070
+ return chmod3(path27, 438).then(() => unlink3(path27), (er2) => {
9925
10071
  if (er2.code === "ENOENT") {
9926
10072
  return;
9927
10073
  }
@@ -9932,48 +10078,48 @@ var unlinkFixEPERM = async (path25) => unlink3(path25).catch((er) => {
9932
10078
  }
9933
10079
  throw er;
9934
10080
  });
9935
- var unlinkFixEPERMSync = (path25) => {
10081
+ var unlinkFixEPERMSync = (path27) => {
9936
10082
  try {
9937
- _fs.unlinkSync.call(void 0, path25);
10083
+ _fs.unlinkSync.call(void 0, path27);
9938
10084
  } catch (er) {
9939
- if (_optionalChain([er, 'optionalAccess', _184 => _184.code]) === "EPERM") {
10085
+ if (_optionalChain([er, 'optionalAccess', _196 => _196.code]) === "EPERM") {
9940
10086
  try {
9941
- return _fs.chmodSync.call(void 0, path25, 438);
10087
+ return _fs.chmodSync.call(void 0, path27, 438);
9942
10088
  } catch (er2) {
9943
- if (_optionalChain([er2, 'optionalAccess', _185 => _185.code]) === "ENOENT") {
10089
+ if (_optionalChain([er2, 'optionalAccess', _197 => _197.code]) === "ENOENT") {
9944
10090
  return;
9945
10091
  }
9946
10092
  throw er;
9947
10093
  }
9948
- } else if (_optionalChain([er, 'optionalAccess', _186 => _186.code]) === "ENOENT") {
10094
+ } else if (_optionalChain([er, 'optionalAccess', _198 => _198.code]) === "ENOENT") {
9949
10095
  return;
9950
10096
  }
9951
10097
  throw er;
9952
10098
  }
9953
10099
  };
9954
- var rimrafMoveRemove = async (path25, opt) => {
9955
- if (_optionalChain([opt, 'optionalAccess', _187 => _187.signal, 'optionalAccess', _188 => _188.aborted])) {
10100
+ var rimrafMoveRemove = async (path27, opt) => {
10101
+ if (_optionalChain([opt, 'optionalAccess', _199 => _199.signal, 'optionalAccess', _200 => _200.aborted])) {
9956
10102
  throw opt.signal.reason;
9957
10103
  }
9958
10104
  try {
9959
- return await rimrafMoveRemoveDir(path25, opt, await lstat6(path25));
10105
+ return await rimrafMoveRemoveDir(path27, opt, await lstat6(path27));
9960
10106
  } catch (er) {
9961
- if (_optionalChain([er, 'optionalAccess', _189 => _189.code]) === "ENOENT")
10107
+ if (_optionalChain([er, 'optionalAccess', _201 => _201.code]) === "ENOENT")
9962
10108
  return true;
9963
10109
  throw er;
9964
10110
  }
9965
10111
  };
9966
- var rimrafMoveRemoveDir = async (path25, opt, ent) => {
9967
- if (_optionalChain([opt, 'optionalAccess', _190 => _190.signal, 'optionalAccess', _191 => _191.aborted])) {
10112
+ var rimrafMoveRemoveDir = async (path27, opt, ent) => {
10113
+ if (_optionalChain([opt, 'optionalAccess', _202 => _202.signal, 'optionalAccess', _203 => _203.aborted])) {
9968
10114
  throw opt.signal.reason;
9969
10115
  }
9970
10116
  if (!opt.tmp) {
9971
- return rimrafMoveRemoveDir(path25, { ...opt, tmp: await defaultTmp(path25) }, ent);
10117
+ return rimrafMoveRemoveDir(path27, { ...opt, tmp: await defaultTmp(path27) }, ent);
9972
10118
  }
9973
- if (path25 === opt.tmp && _path.parse.call(void 0, path25).root !== path25) {
10119
+ if (path27 === opt.tmp && _path.parse.call(void 0, path27).root !== path27) {
9974
10120
  throw new Error("cannot delete temp directory used for deletion");
9975
10121
  }
9976
- const entries = ent.isDirectory() ? await readdirOrError(path25) : null;
10122
+ const entries = ent.isDirectory() ? await readdirOrError(path27) : null;
9977
10123
  if (!Array.isArray(entries)) {
9978
10124
  if (entries) {
9979
10125
  if (entries.code === "ENOENT") {
@@ -9983,54 +10129,54 @@ var rimrafMoveRemoveDir = async (path25, opt, ent) => {
9983
10129
  throw entries;
9984
10130
  }
9985
10131
  }
9986
- if (opt.filter && !await opt.filter(path25, ent)) {
10132
+ if (opt.filter && !await opt.filter(path27, ent)) {
9987
10133
  return false;
9988
10134
  }
9989
- await ignoreENOENT(tmpUnlink(path25, opt.tmp, unlinkFixEPERM));
10135
+ await ignoreENOENT(tmpUnlink(path27, opt.tmp, unlinkFixEPERM));
9990
10136
  return true;
9991
10137
  }
9992
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(_path.resolve.call(void 0, path25, ent2.name), opt, ent2)))).reduce((a, b) => a && b, true);
10138
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(_path.resolve.call(void 0, path27, ent2.name), opt, ent2)))).reduce((a, b) => a && b, true);
9993
10139
  if (!removedAll) {
9994
10140
  return false;
9995
10141
  }
9996
- if (opt.preserveRoot === false && path25 === _path.parse.call(void 0, path25).root) {
10142
+ if (opt.preserveRoot === false && path27 === _path.parse.call(void 0, path27).root) {
9997
10143
  return false;
9998
10144
  }
9999
- if (opt.filter && !await opt.filter(path25, ent)) {
10145
+ if (opt.filter && !await opt.filter(path27, ent)) {
10000
10146
  return false;
10001
10147
  }
10002
- await ignoreENOENT(tmpUnlink(path25, opt.tmp, rmdir3));
10148
+ await ignoreENOENT(tmpUnlink(path27, opt.tmp, rmdir3));
10003
10149
  return true;
10004
10150
  };
10005
- var tmpUnlink = async (path25, tmp, rm3) => {
10006
- const tmpFile = _path.resolve.call(void 0, tmp, uniqueFilename(path25));
10007
- await rename2(path25, tmpFile);
10151
+ var tmpUnlink = async (path27, tmp, rm3) => {
10152
+ const tmpFile = _path.resolve.call(void 0, tmp, uniqueFilename(path27));
10153
+ await rename2(path27, tmpFile);
10008
10154
  return await rm3(tmpFile);
10009
10155
  };
10010
- var rimrafMoveRemoveSync = (path25, opt) => {
10011
- if (_optionalChain([opt, 'optionalAccess', _192 => _192.signal, 'optionalAccess', _193 => _193.aborted])) {
10156
+ var rimrafMoveRemoveSync = (path27, opt) => {
10157
+ if (_optionalChain([opt, 'optionalAccess', _204 => _204.signal, 'optionalAccess', _205 => _205.aborted])) {
10012
10158
  throw opt.signal.reason;
10013
10159
  }
10014
10160
  try {
10015
- return rimrafMoveRemoveDirSync(path25, opt, _fs.lstatSync.call(void 0, path25));
10161
+ return rimrafMoveRemoveDirSync(path27, opt, _fs.lstatSync.call(void 0, path27));
10016
10162
  } catch (er) {
10017
- if (_optionalChain([er, 'optionalAccess', _194 => _194.code]) === "ENOENT")
10163
+ if (_optionalChain([er, 'optionalAccess', _206 => _206.code]) === "ENOENT")
10018
10164
  return true;
10019
10165
  throw er;
10020
10166
  }
10021
10167
  };
10022
- var rimrafMoveRemoveDirSync = (path25, opt, ent) => {
10023
- if (_optionalChain([opt, 'optionalAccess', _195 => _195.signal, 'optionalAccess', _196 => _196.aborted])) {
10168
+ var rimrafMoveRemoveDirSync = (path27, opt, ent) => {
10169
+ if (_optionalChain([opt, 'optionalAccess', _207 => _207.signal, 'optionalAccess', _208 => _208.aborted])) {
10024
10170
  throw opt.signal.reason;
10025
10171
  }
10026
10172
  if (!opt.tmp) {
10027
- return rimrafMoveRemoveDirSync(path25, { ...opt, tmp: defaultTmpSync(path25) }, ent);
10173
+ return rimrafMoveRemoveDirSync(path27, { ...opt, tmp: defaultTmpSync(path27) }, ent);
10028
10174
  }
10029
10175
  const tmp = opt.tmp;
10030
- if (path25 === opt.tmp && _path.parse.call(void 0, path25).root !== path25) {
10176
+ if (path27 === opt.tmp && _path.parse.call(void 0, path27).root !== path27) {
10031
10177
  throw new Error("cannot delete temp directory used for deletion");
10032
10178
  }
10033
- const entries = ent.isDirectory() ? readdirOrErrorSync(path25) : null;
10179
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path27) : null;
10034
10180
  if (!Array.isArray(entries)) {
10035
10181
  if (entries) {
10036
10182
  if (entries.code === "ENOENT") {
@@ -10040,32 +10186,32 @@ var rimrafMoveRemoveDirSync = (path25, opt, ent) => {
10040
10186
  throw entries;
10041
10187
  }
10042
10188
  }
10043
- if (opt.filter && !opt.filter(path25, ent)) {
10189
+ if (opt.filter && !opt.filter(path27, ent)) {
10044
10190
  return false;
10045
10191
  }
10046
- ignoreENOENTSync(() => tmpUnlinkSync(path25, tmp, unlinkFixEPERMSync));
10192
+ ignoreENOENTSync(() => tmpUnlinkSync(path27, tmp, unlinkFixEPERMSync));
10047
10193
  return true;
10048
10194
  }
10049
10195
  let removedAll = true;
10050
10196
  for (const ent2 of entries) {
10051
- const p = _path.resolve.call(void 0, path25, ent2.name);
10197
+ const p = _path.resolve.call(void 0, path27, ent2.name);
10052
10198
  removedAll = rimrafMoveRemoveDirSync(p, opt, ent2) && removedAll;
10053
10199
  }
10054
10200
  if (!removedAll) {
10055
10201
  return false;
10056
10202
  }
10057
- if (opt.preserveRoot === false && path25 === _path.parse.call(void 0, path25).root) {
10203
+ if (opt.preserveRoot === false && path27 === _path.parse.call(void 0, path27).root) {
10058
10204
  return false;
10059
10205
  }
10060
- if (opt.filter && !opt.filter(path25, ent)) {
10206
+ if (opt.filter && !opt.filter(path27, ent)) {
10061
10207
  return false;
10062
10208
  }
10063
- ignoreENOENTSync(() => tmpUnlinkSync(path25, tmp, _fs.rmdirSync));
10209
+ ignoreENOENTSync(() => tmpUnlinkSync(path27, tmp, _fs.rmdirSync));
10064
10210
  return true;
10065
10211
  };
10066
- var tmpUnlinkSync = (path25, tmp, rmSync2) => {
10067
- const tmpFile = _path.resolve.call(void 0, tmp, uniqueFilename(path25));
10068
- _fs.renameSync.call(void 0, path25, tmpFile);
10212
+ var tmpUnlinkSync = (path27, tmp, rmSync2) => {
10213
+ const tmpFile = _path.resolve.call(void 0, tmp, uniqueFilename(path27));
10214
+ _fs.renameSync.call(void 0, path27, tmpFile);
10069
10215
  return rmSync2(tmpFile);
10070
10216
  };
10071
10217
 
@@ -10075,31 +10221,31 @@ var rimrafWindowsFile = retryBusy(fixEPERM(unlink4));
10075
10221
  var rimrafWindowsFileSync = retryBusySync(fixEPERMSync(_fs.unlinkSync));
10076
10222
  var rimrafWindowsDirRetry = retryBusy(fixEPERM(rmdir4));
10077
10223
  var rimrafWindowsDirRetrySync = retryBusySync(fixEPERMSync(_fs.rmdirSync));
10078
- var rimrafWindowsDirMoveRemoveFallback = async (path25, opt) => {
10079
- if (_optionalChain([opt, 'optionalAccess', _197 => _197.signal, 'optionalAccess', _198 => _198.aborted])) {
10224
+ var rimrafWindowsDirMoveRemoveFallback = async (path27, opt) => {
10225
+ if (_optionalChain([opt, 'optionalAccess', _209 => _209.signal, 'optionalAccess', _210 => _210.aborted])) {
10080
10226
  throw opt.signal.reason;
10081
10227
  }
10082
10228
  const { filter: filter3, ...options } = opt;
10083
10229
  try {
10084
- return await rimrafWindowsDirRetry(path25, options);
10230
+ return await rimrafWindowsDirRetry(path27, options);
10085
10231
  } catch (er) {
10086
- if (_optionalChain([er, 'optionalAccess', _199 => _199.code]) === "ENOTEMPTY") {
10087
- return await rimrafMoveRemove(path25, options);
10232
+ if (_optionalChain([er, 'optionalAccess', _211 => _211.code]) === "ENOTEMPTY") {
10233
+ return await rimrafMoveRemove(path27, options);
10088
10234
  }
10089
10235
  throw er;
10090
10236
  }
10091
10237
  };
10092
- var rimrafWindowsDirMoveRemoveFallbackSync = (path25, opt) => {
10093
- if (_optionalChain([opt, 'optionalAccess', _200 => _200.signal, 'optionalAccess', _201 => _201.aborted])) {
10238
+ var rimrafWindowsDirMoveRemoveFallbackSync = (path27, opt) => {
10239
+ if (_optionalChain([opt, 'optionalAccess', _212 => _212.signal, 'optionalAccess', _213 => _213.aborted])) {
10094
10240
  throw opt.signal.reason;
10095
10241
  }
10096
10242
  const { filter: filter3, ...options } = opt;
10097
10243
  try {
10098
- return rimrafWindowsDirRetrySync(path25, options);
10244
+ return rimrafWindowsDirRetrySync(path27, options);
10099
10245
  } catch (er) {
10100
10246
  const fer = er;
10101
- if (_optionalChain([fer, 'optionalAccess', _202 => _202.code]) === "ENOTEMPTY") {
10102
- return rimrafMoveRemoveSync(path25, options);
10247
+ if (_optionalChain([fer, 'optionalAccess', _214 => _214.code]) === "ENOTEMPTY") {
10248
+ return rimrafMoveRemoveSync(path27, options);
10103
10249
  }
10104
10250
  throw er;
10105
10251
  }
@@ -10107,35 +10253,35 @@ var rimrafWindowsDirMoveRemoveFallbackSync = (path25, opt) => {
10107
10253
  var START = Symbol("start");
10108
10254
  var CHILD = Symbol("child");
10109
10255
  var FINISH = Symbol("finish");
10110
- var rimrafWindows = async (path25, opt) => {
10111
- if (_optionalChain([opt, 'optionalAccess', _203 => _203.signal, 'optionalAccess', _204 => _204.aborted])) {
10256
+ var rimrafWindows = async (path27, opt) => {
10257
+ if (_optionalChain([opt, 'optionalAccess', _215 => _215.signal, 'optionalAccess', _216 => _216.aborted])) {
10112
10258
  throw opt.signal.reason;
10113
10259
  }
10114
10260
  try {
10115
- return await rimrafWindowsDir(path25, opt, await lstat7(path25), START);
10261
+ return await rimrafWindowsDir(path27, opt, await lstat7(path27), START);
10116
10262
  } catch (er) {
10117
- if (_optionalChain([er, 'optionalAccess', _205 => _205.code]) === "ENOENT")
10263
+ if (_optionalChain([er, 'optionalAccess', _217 => _217.code]) === "ENOENT")
10118
10264
  return true;
10119
10265
  throw er;
10120
10266
  }
10121
10267
  };
10122
- var rimrafWindowsSync = (path25, opt) => {
10123
- if (_optionalChain([opt, 'optionalAccess', _206 => _206.signal, 'optionalAccess', _207 => _207.aborted])) {
10268
+ var rimrafWindowsSync = (path27, opt) => {
10269
+ if (_optionalChain([opt, 'optionalAccess', _218 => _218.signal, 'optionalAccess', _219 => _219.aborted])) {
10124
10270
  throw opt.signal.reason;
10125
10271
  }
10126
10272
  try {
10127
- return rimrafWindowsDirSync(path25, opt, _fs.lstatSync.call(void 0, path25), START);
10273
+ return rimrafWindowsDirSync(path27, opt, _fs.lstatSync.call(void 0, path27), START);
10128
10274
  } catch (er) {
10129
- if (_optionalChain([er, 'optionalAccess', _208 => _208.code]) === "ENOENT")
10275
+ if (_optionalChain([er, 'optionalAccess', _220 => _220.code]) === "ENOENT")
10130
10276
  return true;
10131
10277
  throw er;
10132
10278
  }
10133
10279
  };
10134
- var rimrafWindowsDir = async (path25, opt, ent, state = START) => {
10135
- if (_optionalChain([opt, 'optionalAccess', _209 => _209.signal, 'optionalAccess', _210 => _210.aborted])) {
10280
+ var rimrafWindowsDir = async (path27, opt, ent, state = START) => {
10281
+ if (_optionalChain([opt, 'optionalAccess', _221 => _221.signal, 'optionalAccess', _222 => _222.aborted])) {
10136
10282
  throw opt.signal.reason;
10137
10283
  }
10138
- const entries = ent.isDirectory() ? await readdirOrError(path25) : null;
10284
+ const entries = ent.isDirectory() ? await readdirOrError(path27) : null;
10139
10285
  if (!Array.isArray(entries)) {
10140
10286
  if (entries) {
10141
10287
  if (entries.code === "ENOENT") {
@@ -10145,32 +10291,32 @@ var rimrafWindowsDir = async (path25, opt, ent, state = START) => {
10145
10291
  throw entries;
10146
10292
  }
10147
10293
  }
10148
- if (opt.filter && !await opt.filter(path25, ent)) {
10294
+ if (opt.filter && !await opt.filter(path27, ent)) {
10149
10295
  return false;
10150
10296
  }
10151
- await ignoreENOENT(rimrafWindowsFile(path25, opt));
10297
+ await ignoreENOENT(rimrafWindowsFile(path27, opt));
10152
10298
  return true;
10153
10299
  }
10154
10300
  const s = state === START ? CHILD : state;
10155
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(_path.resolve.call(void 0, path25, ent2.name), opt, ent2, s)))).reduce((a, b) => a && b, true);
10301
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(_path.resolve.call(void 0, path27, ent2.name), opt, ent2, s)))).reduce((a, b) => a && b, true);
10156
10302
  if (state === START) {
10157
- return rimrafWindowsDir(path25, opt, ent, FINISH);
10303
+ return rimrafWindowsDir(path27, opt, ent, FINISH);
10158
10304
  } else if (state === FINISH) {
10159
- if (opt.preserveRoot === false && path25 === _path.parse.call(void 0, path25).root) {
10305
+ if (opt.preserveRoot === false && path27 === _path.parse.call(void 0, path27).root) {
10160
10306
  return false;
10161
10307
  }
10162
10308
  if (!removedAll) {
10163
10309
  return false;
10164
10310
  }
10165
- if (opt.filter && !await opt.filter(path25, ent)) {
10311
+ if (opt.filter && !await opt.filter(path27, ent)) {
10166
10312
  return false;
10167
10313
  }
10168
- await ignoreENOENT(rimrafWindowsDirMoveRemoveFallback(path25, opt));
10314
+ await ignoreENOENT(rimrafWindowsDirMoveRemoveFallback(path27, opt));
10169
10315
  }
10170
10316
  return true;
10171
10317
  };
10172
- var rimrafWindowsDirSync = (path25, opt, ent, state = START) => {
10173
- const entries = ent.isDirectory() ? readdirOrErrorSync(path25) : null;
10318
+ var rimrafWindowsDirSync = (path27, opt, ent, state = START) => {
10319
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path27) : null;
10174
10320
  if (!Array.isArray(entries)) {
10175
10321
  if (entries) {
10176
10322
  if (entries.code === "ENOENT") {
@@ -10180,32 +10326,32 @@ var rimrafWindowsDirSync = (path25, opt, ent, state = START) => {
10180
10326
  throw entries;
10181
10327
  }
10182
10328
  }
10183
- if (opt.filter && !opt.filter(path25, ent)) {
10329
+ if (opt.filter && !opt.filter(path27, ent)) {
10184
10330
  return false;
10185
10331
  }
10186
- ignoreENOENTSync(() => rimrafWindowsFileSync(path25, opt));
10332
+ ignoreENOENTSync(() => rimrafWindowsFileSync(path27, opt));
10187
10333
  return true;
10188
10334
  }
10189
10335
  let removedAll = true;
10190
10336
  for (const ent2 of entries) {
10191
10337
  const s = state === START ? CHILD : state;
10192
- const p = _path.resolve.call(void 0, path25, ent2.name);
10338
+ const p = _path.resolve.call(void 0, path27, ent2.name);
10193
10339
  removedAll = rimrafWindowsDirSync(p, opt, ent2, s) && removedAll;
10194
10340
  }
10195
10341
  if (state === START) {
10196
- return rimrafWindowsDirSync(path25, opt, ent, FINISH);
10342
+ return rimrafWindowsDirSync(path27, opt, ent, FINISH);
10197
10343
  } else if (state === FINISH) {
10198
- if (opt.preserveRoot === false && path25 === _path.parse.call(void 0, path25).root) {
10344
+ if (opt.preserveRoot === false && path27 === _path.parse.call(void 0, path27).root) {
10199
10345
  return false;
10200
10346
  }
10201
10347
  if (!removedAll) {
10202
10348
  return false;
10203
10349
  }
10204
- if (opt.filter && !opt.filter(path25, ent)) {
10350
+ if (opt.filter && !opt.filter(path27, ent)) {
10205
10351
  return false;
10206
10352
  }
10207
10353
  ignoreENOENTSync(() => {
10208
- rimrafWindowsDirMoveRemoveFallbackSync(path25, opt);
10354
+ rimrafWindowsDirMoveRemoveFallbackSync(path27, opt);
10209
10355
  });
10210
10356
  }
10211
10357
  return true;
@@ -10218,16 +10364,16 @@ var rimrafManualSync = platform_default === "win32" ? rimrafWindowsSync : rimraf
10218
10364
  // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-native.js
10219
10365
  _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
10220
10366
  var { rm: rm2 } = promises;
10221
- var rimrafNative = async (path25, opt) => {
10222
- await rm2(path25, {
10367
+ var rimrafNative = async (path27, opt) => {
10368
+ await rm2(path27, {
10223
10369
  ...opt,
10224
10370
  force: true,
10225
10371
  recursive: true
10226
10372
  });
10227
10373
  return true;
10228
10374
  };
10229
- var rimrafNativeSync = (path25, opt) => {
10230
- _fs.rmSync.call(void 0, path25, {
10375
+ var rimrafNativeSync = (path27, opt) => {
10376
+ _fs.rmSync.call(void 0, path27, {
10231
10377
  ...opt,
10232
10378
  force: true,
10233
10379
  recursive: true
@@ -10241,30 +10387,30 @@ var version = process.env.__TESTING_RIMRAF_NODE_VERSION__ || process.version;
10241
10387
  var versArr = version.replace(/^v/, "").split(".");
10242
10388
  var [major = 0, minor = 0] = versArr.map((v) => parseInt(v, 10));
10243
10389
  var hasNative = major > 14 || major === 14 && minor >= 14;
10244
- var useNative = !hasNative || platform_default === "win32" ? () => false : (opt) => !_optionalChain([opt, 'optionalAccess', _211 => _211.signal]) && !_optionalChain([opt, 'optionalAccess', _212 => _212.filter]);
10245
- var useNativeSync = !hasNative || platform_default === "win32" ? () => false : (opt) => !_optionalChain([opt, 'optionalAccess', _213 => _213.signal]) && !_optionalChain([opt, 'optionalAccess', _214 => _214.filter]);
10390
+ var useNative = !hasNative || platform_default === "win32" ? () => false : (opt) => !_optionalChain([opt, 'optionalAccess', _223 => _223.signal]) && !_optionalChain([opt, 'optionalAccess', _224 => _224.filter]);
10391
+ var useNativeSync = !hasNative || platform_default === "win32" ? () => false : (opt) => !_optionalChain([opt, 'optionalAccess', _225 => _225.signal]) && !_optionalChain([opt, 'optionalAccess', _226 => _226.filter]);
10246
10392
 
10247
10393
  // ../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/index.js
10248
- var wrap = (fn) => async (path25, opt) => {
10394
+ var wrap = (fn) => async (path27, opt) => {
10249
10395
  const options = optArg(opt);
10250
10396
  if (options.glob) {
10251
- path25 = await glob(path25, options.glob);
10397
+ path27 = await glob(path27, options.glob);
10252
10398
  }
10253
- if (Array.isArray(path25)) {
10254
- return !!(await Promise.all(path25.map((p) => fn(path_arg_default(p, options), options)))).reduce((a, b) => a && b, true);
10399
+ if (Array.isArray(path27)) {
10400
+ return !!(await Promise.all(path27.map((p) => fn(path_arg_default(p, options), options)))).reduce((a, b) => a && b, true);
10255
10401
  } else {
10256
- return !!await fn(path_arg_default(path25, options), options);
10402
+ return !!await fn(path_arg_default(path27, options), options);
10257
10403
  }
10258
10404
  };
10259
- var wrapSync = (fn) => (path25, opt) => {
10405
+ var wrapSync = (fn) => (path27, opt) => {
10260
10406
  const options = optArgSync(opt);
10261
10407
  if (options.glob) {
10262
- path25 = globSync(path25, options.glob);
10408
+ path27 = globSync(path27, options.glob);
10263
10409
  }
10264
- if (Array.isArray(path25)) {
10265
- return !!path25.map((p) => fn(path_arg_default(p, options), options)).reduce((a, b) => a && b, true);
10410
+ if (Array.isArray(path27)) {
10411
+ return !!path27.map((p) => fn(path_arg_default(p, options), options)).reduce((a, b) => a && b, true);
10266
10412
  } else {
10267
- return !!fn(path_arg_default(path25, options), options);
10413
+ return !!fn(path_arg_default(path27, options), options);
10268
10414
  }
10269
10415
  };
10270
10416
  var nativeSync = wrapSync(rimrafNativeSync);
@@ -10279,8 +10425,8 @@ var moveRemoveSync = wrapSync(rimrafMoveRemoveSync);
10279
10425
  var moveRemove = Object.assign(wrap(rimrafMoveRemove), {
10280
10426
  sync: moveRemoveSync
10281
10427
  });
10282
- var rimrafSync = wrapSync((path25, opt) => useNativeSync(opt) ? rimrafNativeSync(path25, opt) : rimrafManualSync(path25, opt));
10283
- var rimraf_ = wrap((path25, opt) => useNative(opt) ? rimrafNative(path25, opt) : rimrafManual(path25, opt));
10428
+ var rimrafSync = wrapSync((path27, opt) => useNativeSync(opt) ? rimrafNativeSync(path27, opt) : rimrafManualSync(path27, opt));
10429
+ var rimraf_ = wrap((path27, opt) => useNative(opt) ? rimrafNative(path27, opt) : rimrafManual(path27, opt));
10284
10430
  var rimraf = Object.assign(rimraf_, {
10285
10431
  rimraf: rimraf_,
10286
10432
  sync: rimrafSync,
@@ -10317,7 +10463,7 @@ function createBuildService(ctx) {
10317
10463
  function checkWorkersOptions() {
10318
10464
  const workersDir = scanService.workersDir;
10319
10465
  const hasWorkersDir = Boolean(workersDir);
10320
- if (hasWorkersDir && _optionalChain([configService, 'access', _215 => _215.weappViteConfig, 'optionalAccess', _216 => _216.worker, 'optionalAccess', _217 => _217.entry]) === void 0) {
10466
+ if (hasWorkersDir && _optionalChain([configService, 'access', _227 => _227.weappViteConfig, 'optionalAccess', _228 => _228.worker, 'optionalAccess', _229 => _229.entry]) === void 0) {
10321
10467
  logger_default.error("\u68C0\u6D4B\u5230\u5DF2\u7ECF\u5F00\u542F\u4E86 `worker`\uFF0C\u8BF7\u5728 `vite.config.ts` \u4E2D\u8BBE\u7F6E `weapp.worker.entry` \u8DEF\u5F84");
10322
10468
  logger_default.error("\u6BD4\u5982\u5F15\u5165\u7684 `worker` \u8DEF\u5F84\u4E3A `workers/index`, \u6B64\u65F6 `weapp.worker.entry` \u8BBE\u7F6E\u4E3A `[index]` ");
10323
10469
  throw new Error("\u8BF7\u5728 `vite.config.ts` \u4E2D\u8BBE\u7F6E `weapp.worker.entry` \u8DEF\u5F84");
@@ -10354,7 +10500,7 @@ function createBuildService(ctx) {
10354
10500
  return "vendors";
10355
10501
  }
10356
10502
  const moduleInfo = ctxPlugin.getModuleInfo(id);
10357
- if (_optionalChain([moduleInfo, 'optionalAccess', _218 => _218.importers, 'optionalAccess', _219 => _219.length]) && moduleInfo.importers.length > 1) {
10503
+ if (_optionalChain([moduleInfo, 'optionalAccess', _230 => _230.importers, 'optionalAccess', _231 => _231.length]) && moduleInfo.importers.length > 1) {
10358
10504
  const summary = moduleInfo.importers.reduce((acc, cur) => {
10359
10505
  const relPath = configService.relativeAbsoluteSrcRoot(cur);
10360
10506
  const prefix2 = _nullishCoalesce([
@@ -10383,7 +10529,7 @@ function createBuildService(ctx) {
10383
10529
  if (_process2.default.env.NODE_ENV === void 0) {
10384
10530
  _process2.default.env.NODE_ENV = "development";
10385
10531
  }
10386
- _optionalChain([debug, 'optionalCall', _220 => _220("dev build watcher start")]);
10532
+ _optionalChain([debug, 'optionalCall', _232 => _232("dev build watcher start")]);
10387
10533
  const buildOptions = configService.merge(void 0, sharedBuildConfig());
10388
10534
  const watcher = await _vite.build.call(void 0,
10389
10535
  buildOptions
@@ -10404,8 +10550,8 @@ function createBuildService(ctx) {
10404
10550
  }
10405
10551
  });
10406
10552
  }
10407
- _optionalChain([debug, 'optionalCall', _221 => _221("dev build watcher end")]);
10408
- _optionalChain([debug, 'optionalCall', _222 => _222("dev watcher listen start")]);
10553
+ _optionalChain([debug, 'optionalCall', _233 => _233("dev build watcher end")]);
10554
+ _optionalChain([debug, 'optionalCall', _234 => _234("dev watcher listen start")]);
10409
10555
  let startTime;
10410
10556
  let resolveWatcher;
10411
10557
  let rejectWatcher;
@@ -10428,7 +10574,7 @@ function createBuildService(ctx) {
10428
10574
  return watcher;
10429
10575
  }
10430
10576
  async function runProd() {
10431
- _optionalChain([debug, 'optionalCall', _223 => _223("prod build start")]);
10577
+ _optionalChain([debug, 'optionalCall', _235 => _235("prod build start")]);
10432
10578
  const output = await _vite.build.call(void 0,
10433
10579
  configService.merge(void 0, sharedBuildConfig())
10434
10580
  );
@@ -10436,7 +10582,7 @@ function createBuildService(ctx) {
10436
10582
  if (hasWorkersDir) {
10437
10583
  await buildWorkers();
10438
10584
  }
10439
- _optionalChain([debug, 'optionalCall', _224 => _224("prod build end")]);
10585
+ _optionalChain([debug, 'optionalCall', _236 => _236("prod build end")]);
10440
10586
  return output;
10441
10587
  }
10442
10588
  async function buildEntry(options) {
@@ -10456,12 +10602,12 @@ function createBuildService(ctx) {
10456
10602
  }
10457
10603
  }
10458
10604
  );
10459
- _optionalChain([debug, 'optionalCall', _225 => _225("deletedFilePaths", deletedFilePaths)]);
10605
+ _optionalChain([debug, 'optionalCall', _237 => _237("deletedFilePaths", deletedFilePaths)]);
10460
10606
  logger_default.success(`\u5DF2\u6E05\u7A7A ${configService.mpDistRoot} \u76EE\u5F55`);
10461
10607
  }
10462
- _optionalChain([debug, 'optionalCall', _226 => _226("build start")]);
10608
+ _optionalChain([debug, 'optionalCall', _238 => _238("build start")]);
10463
10609
  let npmBuildTask = Promise.resolve();
10464
- if (!_optionalChain([options, 'optionalAccess', _227 => _227.skipNpm])) {
10610
+ if (!_optionalChain([options, 'optionalAccess', _239 => _239.skipNpm])) {
10465
10611
  let shouldBuildNpm = true;
10466
10612
  if (configService.isDev) {
10467
10613
  const isDependenciesOutdated = await npmService.checkDependenciesCacheOutdate();
@@ -10488,7 +10634,7 @@ function createBuildService(ctx) {
10488
10634
  result = await runProd();
10489
10635
  }
10490
10636
  await npmBuildTask;
10491
- _optionalChain([debug, 'optionalCall', _228 => _228("build end")]);
10637
+ _optionalChain([debug, 'optionalCall', _240 => _240("build end")]);
10492
10638
  return result;
10493
10639
  }
10494
10640
  return {
@@ -16154,17 +16300,17 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
16154
16300
  if (hasTrailingSlash(input, true)) {
16155
16301
  return input || "/";
16156
16302
  }
16157
- let path25 = input;
16303
+ let path27 = input;
16158
16304
  let fragment = "";
16159
16305
  const fragmentIndex = input.indexOf("#");
16160
16306
  if (fragmentIndex !== -1) {
16161
- path25 = input.slice(0, fragmentIndex);
16307
+ path27 = input.slice(0, fragmentIndex);
16162
16308
  fragment = input.slice(fragmentIndex);
16163
- if (!path25) {
16309
+ if (!path27) {
16164
16310
  return fragment;
16165
16311
  }
16166
16312
  }
16167
- const [s0, ...s] = path25.split("?");
16313
+ const [s0, ...s] = path27.split("?");
16168
16314
  return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
16169
16315
  }
16170
16316
  function isNonEmptyURL(url) {
@@ -16193,8 +16339,8 @@ var _assert = require('assert'); var _assert2 = _interopRequireDefault(_assert);
16193
16339
  var _v8 = require('v8'); var _v82 = _interopRequireDefault(_v8);
16194
16340
 
16195
16341
  var BUILTIN_MODULES = new Set(_module.builtinModules);
16196
- function normalizeSlash(path25) {
16197
- return path25.replace(/\\/g, "/");
16342
+ function normalizeSlash(path27) {
16343
+ return path27.replace(/\\/g, "/");
16198
16344
  }
16199
16345
  var own$1 = {}.hasOwnProperty;
16200
16346
  var classRegExp = /^([A-Z][a-z\d]*)+$/;
@@ -16307,8 +16453,8 @@ codes2.ERR_INVALID_PACKAGE_CONFIG = createError(
16307
16453
  * @param {string} [base]
16308
16454
  * @param {string} [message]
16309
16455
  */
16310
- (path25, base, message) => {
16311
- return `Invalid package config ${path25}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
16456
+ (path27, base, message) => {
16457
+ return `Invalid package config ${path27}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
16312
16458
  },
16313
16459
  Error
16314
16460
  );
@@ -16340,8 +16486,8 @@ codes2.ERR_MODULE_NOT_FOUND = createError(
16340
16486
  * @param {string} base
16341
16487
  * @param {boolean} [exactUrl]
16342
16488
  */
16343
- (path25, base, exactUrl = false) => {
16344
- return `Cannot find ${exactUrl ? "module" : "package"} '${path25}' imported from ${base}`;
16489
+ (path27, base, exactUrl = false) => {
16490
+ return `Cannot find ${exactUrl ? "module" : "package"} '${path27}' imported from ${base}`;
16345
16491
  },
16346
16492
  Error
16347
16493
  );
@@ -16392,8 +16538,8 @@ codes2.ERR_UNKNOWN_FILE_EXTENSION = createError(
16392
16538
  * @param {string} extension
16393
16539
  * @param {string} path
16394
16540
  */
16395
- (extension, path25) => {
16396
- return `Unknown file extension "${extension}" for ${path25}`;
16541
+ (extension, path27) => {
16542
+ return `Unknown file extension "${extension}" for ${path27}`;
16397
16543
  },
16398
16544
  TypeError
16399
16545
  );
@@ -16764,9 +16910,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
16764
16910
  );
16765
16911
  }
16766
16912
  }
16767
- function tryStatSync(path25) {
16913
+ function tryStatSync(path27) {
16768
16914
  try {
16769
- return _fs.statSync.call(void 0, path25);
16915
+ return _fs.statSync.call(void 0, path27);
16770
16916
  } catch (e6) {
16771
16917
  }
16772
16918
  }
@@ -17439,7 +17585,7 @@ function _tryModuleResolve(id, url, conditions) {
17439
17585
  try {
17440
17586
  return moduleResolve(id, url, conditions);
17441
17587
  } catch (error) {
17442
- if (!NOT_FOUND_ERRORS.has(_optionalChain([error, 'optionalAccess', _229 => _229.code]))) {
17588
+ if (!NOT_FOUND_ERRORS.has(_optionalChain([error, 'optionalAccess', _241 => _241.code]))) {
17443
17589
  throw error;
17444
17590
  }
17445
17591
  }
@@ -17468,7 +17614,7 @@ function _resolve(id, options = {}) {
17468
17614
  return pathToFileURL(id);
17469
17615
  }
17470
17616
  } catch (error) {
17471
- if (_optionalChain([error, 'optionalAccess', _230 => _230.code]) !== "ENOENT") {
17617
+ if (_optionalChain([error, 'optionalAccess', _242 => _242.code]) !== "ENOENT") {
17472
17618
  throw error;
17473
17619
  }
17474
17620
  }
@@ -17612,10 +17758,10 @@ function fromGeneratorFn(generatorFn, options) {
17612
17758
  return fromObject({
17613
17759
  name: generatorFn.name,
17614
17760
  async(...args) {
17615
- return iterateAsync(generatorFn.apply(this, args), _optionalChain([options, 'optionalAccess', _231 => _231.onYield]));
17761
+ return iterateAsync(generatorFn.apply(this, args), _optionalChain([options, 'optionalAccess', _243 => _243.onYield]));
17616
17762
  },
17617
17763
  sync(...args) {
17618
- return iterateSync2(generatorFn.apply(this, args), _optionalChain([options, 'optionalAccess', _232 => _232.onYield]));
17764
+ return iterateSync2(generatorFn.apply(this, args), _optionalChain([options, 'optionalAccess', _244 => _244.onYield]));
17619
17765
  }
17620
17766
  });
17621
17767
  }
@@ -17674,7 +17820,7 @@ function findUpSync(name, {
17674
17820
  const filePath = isAbsoluteName ? name : sysPath2.default.join(directory, name);
17675
17821
  try {
17676
17822
  const stats = actualFS.default.statSync(filePath, { throwIfNoEntry: false });
17677
- if (type === "file" && _optionalChain([stats, 'optionalAccess', _233 => _233.isFile, 'call', _234 => _234()]) || type === "directory" && _optionalChain([stats, 'optionalAccess', _235 => _235.isDirectory, 'call', _236 => _236()])) {
17823
+ if (type === "file" && _optionalChain([stats, 'optionalAccess', _245 => _245.isFile, 'call', _246 => _246()]) || type === "directory" && _optionalChain([stats, 'optionalAccess', _247 => _247.isDirectory, 'call', _248 => _248()])) {
17678
17824
  return filePath;
17679
17825
  }
17680
17826
  } catch (e9) {
@@ -17685,7 +17831,7 @@ function findUpSync(name, {
17685
17831
  directory = sysPath2.default.dirname(directory);
17686
17832
  }
17687
17833
  }
17688
- function _resolve2(path25, options = {}) {
17834
+ function _resolve2(path27, options = {}) {
17689
17835
  if (options.platform === "auto" || !options.platform)
17690
17836
  options.platform = _process2.default.platform === "win32" ? "win32" : "posix";
17691
17837
  if (_process2.default.versions.pnp) {
@@ -17694,11 +17840,11 @@ function _resolve2(path25, options = {}) {
17694
17840
  paths.push(_process2.default.cwd());
17695
17841
  const targetRequire = _module.createRequire.call(void 0, _chunkOS76JPG2cjs.importMetaUrl);
17696
17842
  try {
17697
- return targetRequire.resolve(path25, { paths });
17843
+ return targetRequire.resolve(path27, { paths });
17698
17844
  } catch (e10) {
17699
17845
  }
17700
17846
  }
17701
- const modulePath = resolvePathSync(path25, {
17847
+ const modulePath = resolvePathSync(path27, {
17702
17848
  url: options.paths
17703
17849
  });
17704
17850
  if (options.platform === "win32")
@@ -17769,10 +17915,10 @@ var findUp = quansync2({
17769
17915
  async: findUp$1
17770
17916
  });
17771
17917
  var loadPackageJSON = quansync2(function* (cwd = _process2.default.cwd()) {
17772
- const path25 = yield findUp("package.json", { cwd });
17773
- if (!path25 || !actualFS.default.existsSync(path25))
17918
+ const path27 = yield findUp("package.json", { cwd });
17919
+ if (!path27 || !actualFS.default.existsSync(path27))
17774
17920
  return null;
17775
- return JSON.parse(yield readFile(path25));
17921
+ return JSON.parse(yield readFile(path27));
17776
17922
  });
17777
17923
  var loadPackageJSONSync = loadPackageJSON.sync;
17778
17924
  var isPackageListed = quansync2(function* (name, cwd) {
@@ -17825,9 +17971,9 @@ var INSTALL_METADATA = {
17825
17971
  };
17826
17972
 
17827
17973
  // ../../node_modules/.pnpm/package-manager-detector@1.4.0/node_modules/package-manager-detector/dist/detect.mjs
17828
- async function pathExists(path25, type) {
17974
+ async function pathExists(path27, type) {
17829
17975
  try {
17830
- const stat6 = await _promises2.default.stat(path25);
17976
+ const stat6 = await _promises2.default.stat(path27);
17831
17977
  return type === "file" ? stat6.isFile() : stat6.isDirectory();
17832
17978
  } catch (e13) {
17833
17979
  return false;
@@ -17893,18 +18039,18 @@ async function detect(options = {}) {
17893
18039
  }
17894
18040
  }
17895
18041
  }
17896
- if (_optionalChain([stopDir, 'optionalCall', _237 => _237(directory)]))
18042
+ if (_optionalChain([stopDir, 'optionalCall', _249 => _249(directory)]))
17897
18043
  break;
17898
18044
  }
17899
18045
  return null;
17900
18046
  }
17901
18047
  function getNameAndVer(pkg) {
17902
- const handelVer = (version3) => _nullishCoalesce(_optionalChain([version3, 'optionalAccess', _238 => _238.match, 'call', _239 => _239(/\d+(\.\d+){0,2}/), 'optionalAccess', _240 => _240[0]]), () => ( version3));
18048
+ const handelVer = (version3) => _nullishCoalesce(_optionalChain([version3, 'optionalAccess', _250 => _250.match, 'call', _251 => _251(/\d+(\.\d+){0,2}/), 'optionalAccess', _252 => _252[0]]), () => ( version3));
17903
18049
  if (typeof pkg.packageManager === "string") {
17904
18050
  const [name, ver] = pkg.packageManager.replace(/^\^/, "").split("@");
17905
18051
  return { name, ver: handelVer(ver) };
17906
18052
  }
17907
- if (typeof _optionalChain([pkg, 'access', _241 => _241.devEngines, 'optionalAccess', _242 => _242.packageManager, 'optionalAccess', _243 => _243.name]) === "string") {
18053
+ if (typeof _optionalChain([pkg, 'access', _253 => _253.devEngines, 'optionalAccess', _254 => _254.packageManager, 'optionalAccess', _255 => _255.name]) === "string") {
17908
18054
  return {
17909
18055
  name: pkg.devEngines.packageManager.name,
17910
18056
  ver: handelVer(pkg.devEngines.packageManager.version)
@@ -17932,7 +18078,7 @@ async function handlePackageManager(filepath, onUnknown) {
17932
18078
  agent = name;
17933
18079
  return { name, agent, version: version3 };
17934
18080
  } else {
17935
- return _nullishCoalesce(_optionalChain([onUnknown, 'optionalCall', _244 => _244(pkg.packageManager)]), () => ( null));
18081
+ return _nullishCoalesce(_optionalChain([onUnknown, 'optionalCall', _256 => _256(pkg.packageManager)]), () => ( null));
17936
18082
  }
17937
18083
  }
17938
18084
  } catch (e14) {
@@ -18057,7 +18203,7 @@ function createAssetCollector(state) {
18057
18203
  },
18058
18204
  async buildEnd() {
18059
18205
  const assets = await state.pendingAssets;
18060
- if (!_optionalChain([assets, 'optionalAccess', _245 => _245.length])) {
18206
+ if (!_optionalChain([assets, 'optionalAccess', _257 => _257.length])) {
18061
18207
  return;
18062
18208
  }
18063
18209
  for (const candidate of assets) {
@@ -18072,9 +18218,9 @@ function createAssetCollector(state) {
18072
18218
  }
18073
18219
  function scanAssetFiles(configService, config) {
18074
18220
  const weappViteConfig = configService.weappViteConfig;
18075
- const include = normalizeCopyGlobs(_optionalChain([weappViteConfig, 'optionalAccess', _246 => _246.copy, 'optionalAccess', _247 => _247.include]));
18076
- const exclude = normalizeCopyGlobs(_optionalChain([weappViteConfig, 'optionalAccess', _248 => _248.copy, 'optionalAccess', _249 => _249.exclude]));
18077
- const filter3 = _nullishCoalesce(_optionalChain([weappViteConfig, 'optionalAccess', _250 => _250.copy, 'optionalAccess', _251 => _251.filter]), () => ( (() => true)));
18221
+ const include = normalizeCopyGlobs(_optionalChain([weappViteConfig, 'optionalAccess', _258 => _258.copy, 'optionalAccess', _259 => _259.include]));
18222
+ const exclude = normalizeCopyGlobs(_optionalChain([weappViteConfig, 'optionalAccess', _260 => _260.copy, 'optionalAccess', _261 => _261.exclude]));
18223
+ const filter3 = _nullishCoalesce(_optionalChain([weappViteConfig, 'optionalAccess', _262 => _262.copy, 'optionalAccess', _263 => _263.filter]), () => ( (() => true)));
18078
18224
  const ignore = [
18079
18225
  ...defaultExcluded,
18080
18226
  _pathe2.default.resolve(configService.cwd, `${config.build.outDir}/**/*`),
@@ -18127,13 +18273,13 @@ function createAutoImportPlugin(state) {
18127
18273
  if (!state.resolvedConfig) {
18128
18274
  return;
18129
18275
  }
18130
- const globs = _optionalChain([configService, 'access', _252 => _252.weappViteConfig, 'optionalAccess', _253 => _253.enhance, 'optionalAccess', _254 => _254.autoImportComponents, 'optionalAccess', _255 => _255.globs]);
18131
- const globsKey = _nullishCoalesce(_optionalChain([globs, 'optionalAccess', _256 => _256.join, 'call', _257 => _257("\0")]), () => ( ""));
18276
+ const globs = _optionalChain([configService, 'access', _264 => _264.weappViteConfig, 'optionalAccess', _265 => _265.enhance, 'optionalAccess', _266 => _266.autoImportComponents, 'optionalAccess', _267 => _267.globs]);
18277
+ const globsKey = _nullishCoalesce(_optionalChain([globs, 'optionalAccess', _268 => _268.join, 'call', _269 => _269("\0")]), () => ( ""));
18132
18278
  if (globsKey !== state.lastGlobsKey) {
18133
18279
  state.initialScanDone = false;
18134
18280
  state.lastGlobsKey = globsKey;
18135
18281
  }
18136
- if (!_optionalChain([globs, 'optionalAccess', _258 => _258.length])) {
18282
+ if (!_optionalChain([globs, 'optionalAccess', _270 => _270.length])) {
18137
18283
  return;
18138
18284
  }
18139
18285
  if (state.initialScanDone) {
@@ -19451,7 +19597,7 @@ function createCacheKey(options) {
19451
19597
  return `${options.removeComment ? 1 : 0}|${options.transformEvent ? 1 : 0}`;
19452
19598
  }
19453
19599
  function getCachedResult(data2, cacheKey) {
19454
- return _optionalChain([handleCache, 'access', _259 => _259.get, 'call', _260 => _260(data2), 'optionalAccess', _261 => _261.get, 'call', _262 => _262(cacheKey)]);
19600
+ return _optionalChain([handleCache, 'access', _271 => _271.get, 'call', _272 => _272(data2), 'optionalAccess', _273 => _273.get, 'call', _274 => _274(cacheKey)]);
19455
19601
  }
19456
19602
  function setCachedResult(data2, cacheKey, result) {
19457
19603
  let cacheForToken = handleCache.get(data2);
@@ -19527,7 +19673,7 @@ function handleWxml(data2, options) {
19527
19673
  if (shouldTransformInlineWxs) {
19528
19674
  for (const { end, start, value } of inlineWxsTokens) {
19529
19675
  const { result } = getCachedInlineWxsTransform(value);
19530
- if (_optionalChain([result, 'optionalAccess', _263 => _263.code])) {
19676
+ if (_optionalChain([result, 'optionalAccess', _275 => _275.code])) {
19531
19677
  ms.update(start, end, `
19532
19678
  ${result.code}`);
19533
19679
  }
@@ -19607,7 +19753,7 @@ function createChunkEmitter(configService, loadedEntrySet, debug4) {
19607
19753
  // @ts-ignore
19608
19754
  preserveSignature: "exports-only"
19609
19755
  });
19610
- _optionalChain([debug4, 'optionalCall', _264 => _264(`load ${fileName} \u8017\u65F6 ${(_perf_hooks.performance.now() - start).toFixed(2)}ms`)]);
19756
+ _optionalChain([debug4, 'optionalCall', _276 => _276(`load ${fileName} \u8017\u65F6 ${(_perf_hooks.performance.now() - start).toFixed(2)}ms`)]);
19611
19757
  });
19612
19758
  };
19613
19759
  }
@@ -19844,7 +19990,7 @@ function createEntryLoader(options) {
19844
19990
  normalizedEntries,
19845
19991
  configService.absoluteSrcRoot
19846
19992
  );
19847
- _optionalChain([debug4, 'optionalCall', _265 => _265(`resolvedIds ${relativeCwdId} \u8017\u65F6 ${getTime()}`)]);
19993
+ _optionalChain([debug4, 'optionalCall', _277 => _277(`resolvedIds ${relativeCwdId} \u8017\u65F6 ${getTime()}`)]);
19848
19994
  const pendingResolvedIds = [];
19849
19995
  for (const { entry, resolvedId } of resolvedIds) {
19850
19996
  if (!resolvedId) {
@@ -19859,7 +20005,7 @@ function createEntryLoader(options) {
19859
20005
  if (pendingResolvedIds.length) {
19860
20006
  await Promise.all(emitEntriesChunks.call(this, pendingResolvedIds));
19861
20007
  }
19862
- _optionalChain([debug4, 'optionalCall', _266 => _266(`emitEntriesChunks ${relativeCwdId} \u8017\u65F6 ${getTime()}`)]);
20008
+ _optionalChain([debug4, 'optionalCall', _278 => _278(`emitEntriesChunks ${relativeCwdId} \u8017\u65F6 ${getTime()}`)]);
19863
20009
  registerJsonAsset({
19864
20010
  jsonPath,
19865
20011
  json,
@@ -19867,7 +20013,7 @@ function createEntryLoader(options) {
19867
20013
  });
19868
20014
  const code = await _fsextra2.default.readFile(id, "utf8");
19869
20015
  const styleImports = await collectStyleImports(this, id, existsCache);
19870
- _optionalChain([debug4, 'optionalCall', _267 => _267(`loadEntry ${relativeCwdId} \u8017\u65F6 ${getTime()}`)]);
20016
+ _optionalChain([debug4, 'optionalCall', _279 => _279(`loadEntry ${relativeCwdId} \u8017\u65F6 ${getTime()}`)]);
19871
20017
  if (styleImports.length === 0) {
19872
20018
  return {
19873
20019
  code
@@ -19938,7 +20084,7 @@ function createTemplateScanner(wxmlService, debug4) {
19938
20084
  const { components: components2 } = wxmlToken;
19939
20085
  wxmlService.setWxmlComponentsMap(templateEntry, components2);
19940
20086
  }
19941
- _optionalChain([debug4, 'optionalCall', _268 => _268(`scanTemplateEntry ${templateEntry} \u8017\u65F6 ${(_perf_hooks.performance.now() - start).toFixed(2)}ms`)]);
20087
+ _optionalChain([debug4, 'optionalCall', _280 => _280(`scanTemplateEntry ${templateEntry} \u8017\u65F6 ${(_perf_hooks.performance.now() - start).toFixed(2)}ms`)]);
19942
20088
  };
19943
20089
  }
19944
20090
 
@@ -20221,7 +20367,7 @@ function createCoreLifecyclePlugin(state) {
20221
20367
  options.input = scannedInput;
20222
20368
  },
20223
20369
  async load(id) {
20224
- _optionalChain([configService, 'access', _269 => _269.weappViteConfig, 'optionalAccess', _270 => _270.debug, 'optionalAccess', _271 => _271.load, 'optionalCall', _272 => _272(id, subPackageMeta)]);
20370
+ _optionalChain([configService, 'access', _281 => _281.weappViteConfig, 'optionalAccess', _282 => _282.debug, 'optionalAccess', _283 => _283.load, 'optionalCall', _284 => _284(id, subPackageMeta)]);
20225
20371
  const relativeBasename = _shared.removeExtensionDeep.call(void 0, configService.relativeAbsoluteSrcRoot(id));
20226
20372
  if (isCSSRequest(id)) {
20227
20373
  const parsed = parseRequest(id);
@@ -20235,7 +20381,7 @@ function createCoreLifecyclePlugin(state) {
20235
20381
  }
20236
20382
  return null;
20237
20383
  }
20238
- if (loadedEntrySet.has(id) || _optionalChain([subPackageMeta, 'optionalAccess', _273 => _273.entries, 'access', _274 => _274.includes, 'call', _275 => _275(relativeBasename)])) {
20384
+ if (loadedEntrySet.has(id) || _optionalChain([subPackageMeta, 'optionalAccess', _285 => _285.entries, 'access', _286 => _286.includes, 'call', _287 => _287(relativeBasename)])) {
20239
20385
  return await loadEntry.call(this, id, "component");
20240
20386
  }
20241
20387
  if (relativeBasename === "app") {
@@ -20248,10 +20394,10 @@ function createCoreLifecyclePlugin(state) {
20248
20394
  },
20249
20395
  async generateBundle() {
20250
20396
  await flushIndependentBuilds.call(this, state, watcherService);
20251
- if (_optionalChain([configService, 'access', _276 => _276.weappViteConfig, 'optionalAccess', _277 => _277.debug, 'optionalAccess', _278 => _278.watchFiles])) {
20397
+ if (_optionalChain([configService, 'access', _288 => _288.weappViteConfig, 'optionalAccess', _289 => _289.debug, 'optionalAccess', _290 => _290.watchFiles])) {
20252
20398
  const watcherService2 = ctx.watcherService;
20253
- const watcherRoot = _nullishCoalesce(_optionalChain([subPackageMeta, 'optionalAccess', _279 => _279.subPackage, 'access', _280 => _280.root]), () => ( "/"));
20254
- const watcher = _optionalChain([watcherService2, 'optionalAccess', _281 => _281.getRollupWatcher, 'call', _282 => _282(watcherRoot)]);
20399
+ const watcherRoot = _nullishCoalesce(_optionalChain([subPackageMeta, 'optionalAccess', _291 => _291.subPackage, 'access', _292 => _292.root]), () => ( "/"));
20400
+ const watcher = _optionalChain([watcherService2, 'optionalAccess', _293 => _293.getRollupWatcher, 'call', _294 => _294(watcherRoot)]);
20255
20401
  let watchFiles;
20256
20402
  if (watcher && typeof watcher.getWatchFiles === "function") {
20257
20403
  watchFiles = await watcher.getWatchFiles();
@@ -20265,7 +20411,7 @@ function createCoreLifecyclePlugin(state) {
20265
20411
  }
20266
20412
  },
20267
20413
  buildEnd() {
20268
- _optionalChain([debug2, 'optionalCall', _283 => _283(`${subPackageMeta ? `\u72EC\u7ACB\u5206\u5305 ${subPackageMeta.subPackage.root}` : "\u4E3B\u5305"} ${Array.from(this.getModuleIds()).length} \u4E2A\u6A21\u5757\u88AB\u7F16\u8BD1`)]);
20414
+ _optionalChain([debug2, 'optionalCall', _295 => _295(`${subPackageMeta ? `\u72EC\u7ACB\u5206\u5305 ${subPackageMeta.subPackage.root}` : "\u4E3B\u5305"} ${Array.from(this.getModuleIds()).length} \u4E2A\u6A21\u5757\u88AB\u7F16\u8BD1`)]);
20269
20415
  }
20270
20416
  };
20271
20417
  }
@@ -20621,14 +20767,14 @@ function createPluginPruner() {
20621
20767
  name: "weapp-vite:preflight",
20622
20768
  enforce: "pre",
20623
20769
  configResolved(config) {
20624
- if (!_optionalChain([config, 'access', _284 => _284.plugins, 'optionalAccess', _285 => _285.length])) {
20770
+ if (!_optionalChain([config, 'access', _296 => _296.plugins, 'optionalAccess', _297 => _297.length])) {
20625
20771
  return;
20626
20772
  }
20627
20773
  for (const removePlugin of removePlugins) {
20628
20774
  const idx = config.plugins.findIndex((plugin) => plugin.name === removePlugin);
20629
20775
  if (idx > -1) {
20630
20776
  const [plugin] = config.plugins.splice(idx, 1);
20631
- plugin && _optionalChain([debug3, 'optionalCall', _286 => _286("remove plugin", plugin.name)]);
20777
+ plugin && _optionalChain([debug3, 'optionalCall', _298 => _298("remove plugin", plugin.name)]);
20632
20778
  }
20633
20779
  }
20634
20780
  }
@@ -20667,8 +20813,8 @@ function createWorkerBuildPlugin(ctx) {
20667
20813
  name: "weapp-vite:workers",
20668
20814
  enforce: "pre",
20669
20815
  async options(options) {
20670
- const workerConfig = _optionalChain([configService, 'access', _287 => _287.weappViteConfig, 'optionalAccess', _288 => _288.worker]);
20671
- const entries = Array.isArray(_optionalChain([workerConfig, 'optionalAccess', _289 => _289.entry])) ? workerConfig.entry : [_optionalChain([workerConfig, 'optionalAccess', _290 => _290.entry])];
20816
+ const workerConfig = _optionalChain([configService, 'access', _299 => _299.weappViteConfig, 'optionalAccess', _300 => _300.worker]);
20817
+ const entries = Array.isArray(_optionalChain([workerConfig, 'optionalAccess', _301 => _301.entry])) ? workerConfig.entry : [_optionalChain([workerConfig, 'optionalAccess', _302 => _302.entry])];
20672
20818
  const normalized = (await Promise.all(entries.filter(Boolean).map((entry) => resolveWorkerEntry(ctx, entry)))).filter((result) => Boolean(result.value)).reduce((acc, cur) => {
20673
20819
  acc[cur.key] = cur.value;
20674
20820
  return acc;
@@ -20785,7 +20931,7 @@ async function transformWxsFile(state, wxsPath) {
20785
20931
  const { result, importees } = transformWxsCode(rawCode, {
20786
20932
  filename: wxsPath
20787
20933
  });
20788
- if (typeof _optionalChain([result, 'optionalAccess', _291 => _291.code]) === "string") {
20934
+ if (typeof _optionalChain([result, 'optionalAccess', _303 => _303.code]) === "string") {
20789
20935
  code = result.code;
20790
20936
  }
20791
20937
  const dirname5 = _pathe2.default.dirname(wxsPath);
@@ -20835,13 +20981,13 @@ function vitePluginWeappWorkers(ctx) {
20835
20981
  }
20836
20982
  function attachRuntimePlugins(ctx, plugins) {
20837
20983
  const runtimePlugins = ctx[RUNTIME_PLUGINS_SYMBOL];
20838
- if (!_optionalChain([runtimePlugins, 'optionalAccess', _292 => _292.length])) {
20984
+ if (!_optionalChain([runtimePlugins, 'optionalAccess', _304 => _304.length])) {
20839
20985
  return plugins;
20840
20986
  }
20841
20987
  return [...runtimePlugins, ...plugins];
20842
20988
  }
20843
20989
  function applyInspect(ctx, plugins) {
20844
- const inspectOptions = _optionalChain([ctx, 'access', _293 => _293.configService, 'access', _294 => _294.weappViteConfig, 'optionalAccess', _295 => _295.debug, 'optionalAccess', _296 => _296.inspect]);
20990
+ const inspectOptions = _optionalChain([ctx, 'access', _305 => _305.configService, 'access', _306 => _306.weappViteConfig, 'optionalAccess', _307 => _307.debug, 'optionalAccess', _308 => _308.inspect]);
20845
20991
  if (!inspectOptions) {
20846
20992
  return plugins;
20847
20993
  }
@@ -20921,7 +21067,7 @@ export default _objectSpread2;`
20921
21067
  function getOxcHelperName(id) {
20922
21068
  OXC_RUNTIME_HELPER_ALIAS.lastIndex = 0;
20923
21069
  const match2 = OXC_RUNTIME_HELPER_ALIAS.exec(id);
20924
- return _optionalChain([match2, 'optionalAccess', _297 => _297[1]]);
21070
+ return _optionalChain([match2, 'optionalAccess', _309 => _309[1]]);
20925
21071
  }
20926
21072
  function createOxcRuntimeSupport() {
20927
21073
  const oxcRuntimeInfo = getPackageInfoSync("@oxc-project/runtime");
@@ -21117,17 +21263,27 @@ function createConfigService(ctx) {
21117
21263
  if (resolvedConfigFile && !_pathe2.default.isAbsolute(resolvedConfigFile)) {
21118
21264
  resolvedConfigFile = _pathe2.default.resolve(cwd, resolvedConfigFile);
21119
21265
  }
21266
+ const weappConfigFilePath = await resolveWeappConfigFile({
21267
+ root: cwd,
21268
+ specified: resolvedConfigFile
21269
+ });
21120
21270
  const loaded = await _vite.loadConfigFromFile.call(void 0, {
21121
21271
  command: isDev ? "serve" : "build",
21122
21272
  mode
21123
21273
  }, resolvedConfigFile, cwd);
21124
- const loadedConfig = _optionalChain([loaded, 'optionalAccess', _298 => _298.config]);
21125
- const srcRoot = _nullishCoalesce(_optionalChain([loadedConfig, 'optionalAccess', _299 => _299.weapp, 'optionalAccess', _300 => _300.srcRoot]), () => ( ""));
21126
- function relativeSrcRoot(p) {
21127
- if (srcRoot) {
21128
- return _pathe2.default.relative(srcRoot, p);
21274
+ const loadedConfig = _optionalChain([loaded, 'optionalAccess', _310 => _310.config]);
21275
+ let weappLoaded;
21276
+ if (weappConfigFilePath) {
21277
+ const normalizedWeappPath = _pathe2.default.resolve(weappConfigFilePath);
21278
+ const normalizedLoadedPath = _optionalChain([loaded, 'optionalAccess', _311 => _311.path]) ? _pathe2.default.resolve(loaded.path) : void 0;
21279
+ if (normalizedLoadedPath && normalizedLoadedPath === normalizedWeappPath) {
21280
+ weappLoaded = loaded;
21281
+ } else {
21282
+ weappLoaded = await _vite.loadConfigFromFile.call(void 0, {
21283
+ command: isDev ? "serve" : "build",
21284
+ mode
21285
+ }, weappConfigFilePath, cwd);
21129
21286
  }
21130
- return p;
21131
21287
  }
21132
21288
  const config = _shared.defu.call(void 0,
21133
21289
  inlineConfig,
@@ -21153,6 +21309,19 @@ function createConfigService(ctx) {
21153
21309
  weapp: getWeappViteConfig()
21154
21310
  }
21155
21311
  );
21312
+ if (_optionalChain([weappLoaded, 'optionalAccess', _312 => _312.config, 'optionalAccess', _313 => _313.weapp])) {
21313
+ config.weapp = _shared.defu.call(void 0,
21314
+ weappLoaded.config.weapp,
21315
+ _nullishCoalesce(config.weapp, () => ( {}))
21316
+ );
21317
+ }
21318
+ const srcRoot = _nullishCoalesce(_optionalChain([config, 'access', _314 => _314.weapp, 'optionalAccess', _315 => _315.srcRoot]), () => ( ""));
21319
+ function relativeSrcRoot(p) {
21320
+ if (srcRoot) {
21321
+ return _pathe2.default.relative(srcRoot, p);
21322
+ }
21323
+ return p;
21324
+ }
21156
21325
  const rolldownPlugin = oxcRuntimeSupport.rolldownPlugin;
21157
21326
  if (rolldownPlugin) {
21158
21327
  const build3 = _nullishCoalesce(config.build, () => ( (config.build = {})));
@@ -21171,11 +21340,12 @@ function createConfigService(ctx) {
21171
21340
  config.plugins ??= [];
21172
21341
  config.plugins.unshift(oxcRuntimeSupport.vitePlugin);
21173
21342
  }
21174
- const platform = _nullishCoalesce(_optionalChain([config, 'access', _301 => _301.weapp, 'optionalAccess', _302 => _302.platform]), () => ( "weapp"));
21343
+ const platform = _nullishCoalesce(_optionalChain([config, 'access', _316 => _316.weapp, 'optionalAccess', _317 => _317.platform]), () => ( "weapp"));
21175
21344
  const resolvedOutputExtensions = getOutputExtensions(platform);
21176
21345
  config.plugins ??= [];
21177
- _optionalChain([config, 'access', _303 => _303.plugins, 'optionalAccess', _304 => _304.push, 'call', _305 => _305(_vitetsconfigpaths2.default.call(void 0, _optionalChain([config, 'access', _306 => _306.weapp, 'optionalAccess', _307 => _307.tsconfigPaths])))]);
21178
- const aliasEntries = getAliasEntries(_optionalChain([config, 'access', _308 => _308.weapp, 'optionalAccess', _309 => _309.jsonAlias]));
21346
+ _optionalChain([config, 'access', _318 => _318.plugins, 'optionalAccess', _319 => _319.push, 'call', _320 => _320(_vitetsconfigpaths2.default.call(void 0, _optionalChain([config, 'access', _321 => _321.weapp, 'optionalAccess', _322 => _322.tsconfigPaths])))]);
21347
+ const aliasEntries = getAliasEntries(_optionalChain([config, 'access', _323 => _323.weapp, 'optionalAccess', _324 => _324.jsonAlias]));
21348
+ const configFilePath = _nullishCoalesce(_nullishCoalesce(_optionalChain([weappLoaded, 'optionalAccess', _325 => _325.path]), () => ( _optionalChain([loaded, 'optionalAccess', _326 => _326.path]))), () => ( resolvedConfigFile));
21179
21349
  return {
21180
21350
  config,
21181
21351
  aliasEntries,
@@ -21190,6 +21360,7 @@ function createConfigService(ctx) {
21190
21360
  packageJsonPath,
21191
21361
  platform,
21192
21362
  srcRoot,
21363
+ configFilePath,
21193
21364
  currentSubPackageRoot: void 0
21194
21365
  };
21195
21366
  }
@@ -21208,6 +21379,7 @@ function createConfigService(ctx) {
21208
21379
  config: {},
21209
21380
  packageJson: {},
21210
21381
  platform: "weapp",
21382
+ configFilePath: void 0,
21211
21383
  currentSubPackageRoot: void 0
21212
21384
  });
21213
21385
  options = resolvedConfig;
@@ -21330,7 +21502,7 @@ function createConfigService(ctx) {
21330
21502
  );
21331
21503
  inlineConfig.logLevel = "info";
21332
21504
  injectBuiltinAliases(inlineConfig);
21333
- const currentRoot = _optionalChain([subPackageMeta, 'optionalAccess', _310 => _310.subPackage, 'access', _311 => _311.root]);
21505
+ const currentRoot = _optionalChain([subPackageMeta, 'optionalAccess', _327 => _327.subPackage, 'access', _328 => _328.root]);
21334
21506
  options = {
21335
21507
  ...options,
21336
21508
  currentSubPackageRoot: currentRoot
@@ -21401,10 +21573,10 @@ function createConfigService(ctx) {
21401
21573
  return options.srcRoot;
21402
21574
  },
21403
21575
  get pluginRoot() {
21404
- return _optionalChain([options, 'access', _312 => _312.config, 'access', _313 => _313.weapp, 'optionalAccess', _314 => _314.pluginRoot]);
21576
+ return _optionalChain([options, 'access', _329 => _329.config, 'access', _330 => _330.weapp, 'optionalAccess', _331 => _331.pluginRoot]);
21405
21577
  },
21406
21578
  get absolutePluginRoot() {
21407
- if (_optionalChain([options, 'access', _315 => _315.config, 'access', _316 => _316.weapp, 'optionalAccess', _317 => _317.pluginRoot])) {
21579
+ if (_optionalChain([options, 'access', _332 => _332.config, 'access', _333 => _333.weapp, 'optionalAccess', _334 => _334.pluginRoot])) {
21408
21580
  return _pathe2.default.resolve(options.cwd, options.config.weapp.pluginRoot);
21409
21581
  }
21410
21582
  },
@@ -21420,6 +21592,9 @@ function createConfigService(ctx) {
21420
21592
  get platform() {
21421
21593
  return options.platform;
21422
21594
  },
21595
+ get configFilePath() {
21596
+ return options.configFilePath;
21597
+ },
21423
21598
  relativeCwd(p) {
21424
21599
  return _pathe2.default.relative(options.cwd, p);
21425
21600
  },
@@ -21480,7 +21655,7 @@ function createJsonService(ctx) {
21480
21655
  return resultJson;
21481
21656
  } catch (error) {
21482
21657
  logger_default.error(`\u6B8B\u7834\u7684JSON\u6587\u4EF6: ${filepath}`);
21483
- _optionalChain([debug, 'optionalCall', _318 => _318(error)]);
21658
+ _optionalChain([debug, 'optionalCall', _335 => _335(error)]);
21484
21659
  }
21485
21660
  }
21486
21661
  function resolve8(entry) {
@@ -21532,7 +21707,7 @@ function createNpmService(ctx) {
21532
21707
  if (!ctx.configService) {
21533
21708
  throw new Error("configService must be initialized before writing npm cache");
21534
21709
  }
21535
- if (_optionalChain([ctx, 'access', _319 => _319.configService, 'access', _320 => _320.weappViteConfig, 'optionalAccess', _321 => _321.npm, 'optionalAccess', _322 => _322.cache])) {
21710
+ if (_optionalChain([ctx, 'access', _336 => _336.configService, 'access', _337 => _337.weappViteConfig, 'optionalAccess', _338 => _338.npm, 'optionalAccess', _339 => _339.cache])) {
21536
21711
  await _fsextra2.default.outputJSON(getDependenciesCacheFilePath(root), {
21537
21712
  hash: dependenciesCacheHash()
21538
21713
  });
@@ -21545,7 +21720,7 @@ function createNpmService(ctx) {
21545
21720
  }
21546
21721
  }
21547
21722
  async function checkDependenciesCacheOutdate(root) {
21548
- if (_optionalChain([ctx, 'access', _323 => _323.configService, 'optionalAccess', _324 => _324.weappViteConfig, 'optionalAccess', _325 => _325.npm, 'optionalAccess', _326 => _326.cache])) {
21723
+ if (_optionalChain([ctx, 'access', _340 => _340.configService, 'optionalAccess', _341 => _341.weappViteConfig, 'optionalAccess', _342 => _342.npm, 'optionalAccess', _343 => _343.cache])) {
21549
21724
  const json = await readDependenciesCache(root);
21550
21725
  if (_shared.isObject.call(void 0, json)) {
21551
21726
  return dependenciesCacheHash() !== json.hash;
@@ -21579,7 +21754,7 @@ function createNpmService(ctx) {
21579
21754
  target: "es6",
21580
21755
  external: []
21581
21756
  });
21582
- const resolvedOptions = _optionalChain([ctx, 'access', _327 => _327.configService, 'optionalAccess', _328 => _328.weappViteConfig, 'optionalAccess', _329 => _329.npm, 'optionalAccess', _330 => _330.buildOptions, 'optionalCall', _331 => _331(
21757
+ const resolvedOptions = _optionalChain([ctx, 'access', _344 => _344.configService, 'optionalAccess', _345 => _345.weappViteConfig, 'optionalAccess', _346 => _346.npm, 'optionalAccess', _347 => _347.buildOptions, 'optionalCall', _348 => _348(
21583
21758
  mergedOptions,
21584
21759
  { name, entry }
21585
21760
  )]);
@@ -21667,7 +21842,7 @@ function createNpmService(ctx) {
21667
21842
  throw new Error("configService must be initialized before resolving npm relation list");
21668
21843
  }
21669
21844
  let packNpmRelationList = [];
21670
- if (_optionalChain([ctx, 'access', _332 => _332.configService, 'access', _333 => _333.projectConfig, 'access', _334 => _334.setting, 'optionalAccess', _335 => _335.packNpmManually]) && Array.isArray(ctx.configService.projectConfig.setting.packNpmRelationList)) {
21845
+ if (_optionalChain([ctx, 'access', _349 => _349.configService, 'access', _350 => _350.projectConfig, 'access', _351 => _351.setting, 'optionalAccess', _352 => _352.packNpmManually]) && Array.isArray(ctx.configService.projectConfig.setting.packNpmRelationList)) {
21671
21846
  packNpmRelationList = ctx.configService.projectConfig.setting.packNpmRelationList;
21672
21847
  } else {
21673
21848
  packNpmRelationList = [
@@ -21680,10 +21855,10 @@ function createNpmService(ctx) {
21680
21855
  return packNpmRelationList;
21681
21856
  }
21682
21857
  async function build3(options) {
21683
- if (!_optionalChain([ctx, 'access', _336 => _336.configService, 'optionalAccess', _337 => _337.weappViteConfig, 'optionalAccess', _338 => _338.npm, 'optionalAccess', _339 => _339.enable])) {
21858
+ if (!_optionalChain([ctx, 'access', _353 => _353.configService, 'optionalAccess', _354 => _354.weappViteConfig, 'optionalAccess', _355 => _355.npm, 'optionalAccess', _356 => _356.enable])) {
21684
21859
  return;
21685
21860
  }
21686
- _optionalChain([debug, 'optionalCall', _340 => _340("buildNpm start")]);
21861
+ _optionalChain([debug, 'optionalCall', _357 => _357("buildNpm start")]);
21687
21862
  const packNpmRelationList = getPackNpmRelationList();
21688
21863
  const [mainRelation, ...subRelations] = packNpmRelationList;
21689
21864
  const packageJsonPath = _pathe2.default.resolve(ctx.configService.cwd, mainRelation.packageJsonPath);
@@ -21758,7 +21933,7 @@ function createNpmService(ctx) {
21758
21933
  }
21759
21934
  }
21760
21935
  }
21761
- _optionalChain([debug, 'optionalCall', _341 => _341("buildNpm end")]);
21936
+ _optionalChain([debug, 'optionalCall', _358 => _358("buildNpm end")]);
21762
21937
  }
21763
21938
  return {
21764
21939
  getDependenciesCacheFilePath,
@@ -21802,7 +21977,7 @@ var TimeoutError = (_class16 = class _TimeoutError extends Error {
21802
21977
  __init36() {this.name = "TimeoutError"}
21803
21978
  constructor(message, options) {
21804
21979
  super(message, options);_class16.prototype.__init36.call(this);;
21805
- _optionalChain([Error, 'access', _342 => _342.captureStackTrace, 'optionalCall', _343 => _343(this, _TimeoutError)]);
21980
+ _optionalChain([Error, 'access', _359 => _359.captureStackTrace, 'optionalCall', _360 => _360(this, _TimeoutError)]);
21806
21981
  }
21807
21982
  }, _class16);
21808
21983
  var getAbortedReason = (signal) => _nullishCoalesce(signal.reason, () => ( new DOMException("This operation was aborted.", "AbortError")));
@@ -21820,7 +21995,7 @@ function pTimeout(promise, options) {
21820
21995
  if (typeof milliseconds !== "number" || Math.sign(milliseconds) !== 1) {
21821
21996
  throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${milliseconds}\``);
21822
21997
  }
21823
- if (_optionalChain([signal, 'optionalAccess', _344 => _344.aborted])) {
21998
+ if (_optionalChain([signal, 'optionalAccess', _361 => _361.aborted])) {
21824
21999
  reject(getAbortedReason(signal));
21825
22000
  return;
21826
22001
  }
@@ -21918,7 +22093,7 @@ var PriorityQueue = class {
21918
22093
  }
21919
22094
  dequeue() {
21920
22095
  const item = this.#queue.shift();
21921
- return _optionalChain([item, 'optionalAccess', _345 => _345.run]);
22096
+ return _optionalChain([item, 'optionalAccess', _362 => _362.run]);
21922
22097
  }
21923
22098
  filter(options) {
21924
22099
  return this.#queue.filter((element) => element.priority === options.priority).map((element) => element.run);
@@ -21979,10 +22154,10 @@ var PQueue = class extends import_index2.default {
21979
22154
  ...options
21980
22155
  };
21981
22156
  if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) {
21982
- throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${_nullishCoalesce(_optionalChain([options, 'access', _346 => _346.intervalCap, 'optionalAccess', _347 => _347.toString, 'call', _348 => _348()]), () => ( ""))}\` (${typeof options.intervalCap})`);
22157
+ throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${_nullishCoalesce(_optionalChain([options, 'access', _363 => _363.intervalCap, 'optionalAccess', _364 => _364.toString, 'call', _365 => _365()]), () => ( ""))}\` (${typeof options.intervalCap})`);
21983
22158
  }
21984
22159
  if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
21985
- throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${_nullishCoalesce(_optionalChain([options, 'access', _349 => _349.interval, 'optionalAccess', _350 => _350.toString, 'call', _351 => _351()]), () => ( ""))}\` (${typeof options.interval})`);
22160
+ throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${_nullishCoalesce(_optionalChain([options, 'access', _366 => _366.interval, 'optionalAccess', _367 => _367.toString, 'call', _368 => _368()]), () => ( ""))}\` (${typeof options.interval})`);
21986
22161
  }
21987
22162
  this.#carryoverIntervalCount = _nullishCoalesce(_nullishCoalesce(options.carryoverIntervalCount, () => ( options.carryoverConcurrencyCount)), () => ( false));
21988
22163
  this.#isIntervalIgnored = options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0;
@@ -22189,7 +22364,7 @@ var PQueue = class extends import_index2.default {
22189
22364
  });
22190
22365
  try {
22191
22366
  try {
22192
- _optionalChain([options, 'access', _352 => _352.signal, 'optionalAccess', _353 => _353.throwIfAborted, 'call', _354 => _354()]);
22367
+ _optionalChain([options, 'access', _369 => _369.signal, 'optionalAccess', _370 => _370.throwIfAborted, 'call', _371 => _371()]);
22193
22368
  } catch (error) {
22194
22369
  if (!this.#isIntervalIgnored) {
22195
22370
  this.#intervalCount--;
@@ -22562,7 +22737,7 @@ var FileCache = class {
22562
22737
  return true;
22563
22738
  }
22564
22739
  const cachedMtime = this.mtimeMap.get(id);
22565
- const nextSignature = _optionalChain([options, 'optionalAccess', _355 => _355.content]) !== void 0 ? createSignature(options.content) : void 0;
22740
+ const nextSignature = _optionalChain([options, 'optionalAccess', _372 => _372.content]) !== void 0 ? createSignature(options.content) : void 0;
22566
22741
  const updateSignature = () => {
22567
22742
  if (nextSignature !== void 0) {
22568
22743
  this.signatureMap.set(id, nextSignature);
@@ -22608,7 +22783,8 @@ function createDefaultLoadConfigResult() {
22608
22783
  mpDistRoot: "",
22609
22784
  packageJsonPath: "",
22610
22785
  platform: "weapp",
22611
- srcRoot: ""
22786
+ srcRoot: "",
22787
+ configFilePath: void 0
22612
22788
  };
22613
22789
  }
22614
22790
  function createDefaultPackageInfo() {
@@ -22738,7 +22914,7 @@ function createScanService(ctx) {
22738
22914
  if (!ctx.configService) {
22739
22915
  throw new Error("configService must be initialized before scanning subpackages");
22740
22916
  }
22741
- const json = _optionalChain([scanState, 'access', _356 => _356.appEntry, 'optionalAccess', _357 => _357.json]);
22917
+ const json = _optionalChain([scanState, 'access', _373 => _373.appEntry, 'optionalAccess', _374 => _374.json]);
22742
22918
  if (scanState.isDirty || subPackageMap.size === 0) {
22743
22919
  subPackageMap.clear();
22744
22920
  independentSubPackageMap.clear();
@@ -22756,9 +22932,9 @@ function createScanService(ctx) {
22756
22932
  subPackage,
22757
22933
  entries: resolveSubPackageEntries(subPackage)
22758
22934
  };
22759
- const subPackageConfig = _optionalChain([ctx, 'access', _358 => _358.configService, 'access', _359 => _359.weappViteConfig, 'optionalAccess', _360 => _360.subPackages, 'optionalAccess', _361 => _361[subPackage.root]]);
22760
- meta.subPackage.dependencies = _optionalChain([subPackageConfig, 'optionalAccess', _362 => _362.dependencies]);
22761
- meta.subPackage.inlineConfig = _optionalChain([subPackageConfig, 'optionalAccess', _363 => _363.inlineConfig]);
22935
+ const subPackageConfig = _optionalChain([ctx, 'access', _375 => _375.configService, 'access', _376 => _376.weappViteConfig, 'optionalAccess', _377 => _377.subPackages, 'optionalAccess', _378 => _378[subPackage.root]]);
22936
+ meta.subPackage.dependencies = _optionalChain([subPackageConfig, 'optionalAccess', _379 => _379.dependencies]);
22937
+ meta.subPackage.inlineConfig = _optionalChain([subPackageConfig, 'optionalAccess', _380 => _380.inlineConfig]);
22762
22938
  metas.push(meta);
22763
22939
  if (subPackage.root) {
22764
22940
  subPackageMap.set(subPackage.root, meta);
@@ -22808,11 +22984,11 @@ function createScanService(ctx) {
22808
22984
  loadSubPackages,
22809
22985
  isMainPackageFileName,
22810
22986
  get workersOptions() {
22811
- return _optionalChain([scanState, 'access', _364 => _364.appEntry, 'optionalAccess', _365 => _365.json, 'optionalAccess', _366 => _366.workers]);
22987
+ return _optionalChain([scanState, 'access', _381 => _381.appEntry, 'optionalAccess', _382 => _382.json, 'optionalAccess', _383 => _383.workers]);
22812
22988
  },
22813
22989
  get workersDir() {
22814
- const workersOptions = _optionalChain([scanState, 'access', _367 => _367.appEntry, 'optionalAccess', _368 => _368.json, 'optionalAccess', _369 => _369.workers]);
22815
- return typeof workersOptions === "object" ? _optionalChain([workersOptions, 'optionalAccess', _370 => _370.path]) : workersOptions;
22990
+ const workersOptions = _optionalChain([scanState, 'access', _384 => _384.appEntry, 'optionalAccess', _385 => _385.json, 'optionalAccess', _386 => _386.workers]);
22991
+ return typeof workersOptions === "object" ? _optionalChain([workersOptions, 'optionalAccess', _387 => _387.path]) : workersOptions;
22816
22992
  },
22817
22993
  markDirty() {
22818
22994
  scanState.isDirty = true;
@@ -22858,7 +23034,7 @@ function createWatcherService(ctx) {
22858
23034
  },
22859
23035
  setRollupWatcher(watcher, root = "/") {
22860
23036
  const oldWatcher = rollupWatcherMap.get(root);
22861
- _optionalChain([oldWatcher, 'optionalAccess', _371 => _371.close, 'call', _372 => _372()]);
23037
+ _optionalChain([oldWatcher, 'optionalAccess', _388 => _388.close, 'call', _389 => _389()]);
22862
23038
  rollupWatcherMap.set(root, watcher);
22863
23039
  },
22864
23040
  closeAll() {
@@ -22894,7 +23070,7 @@ function createWatcherServicePlugin(ctx) {
22894
23070
  name: "weapp-runtime:watcher-service",
22895
23071
  closeBundle() {
22896
23072
  const configService = ctx.configService;
22897
- const isWatchMode = _optionalChain([configService, 'optionalAccess', _373 => _373.isDev]) || Boolean(_optionalChain([configService, 'optionalAccess', _374 => _374.inlineConfig, 'optionalAccess', _375 => _375.build, 'optionalAccess', _376 => _376.watch]));
23073
+ const isWatchMode = _optionalChain([configService, 'optionalAccess', _390 => _390.isDev]) || Boolean(_optionalChain([configService, 'optionalAccess', _391 => _391.inlineConfig, 'optionalAccess', _392 => _392.build, 'optionalAccess', _393 => _393.watch]));
22898
23074
  if (!isWatchMode) {
22899
23075
  service.closeAll();
22900
23076
  }
@@ -25544,7 +25720,7 @@ function createWxmlService(ctx) {
25544
25720
  return set3;
25545
25721
  }
25546
25722
  function clearAll() {
25547
- const currentRoot = _optionalChain([ctx, 'access', _377 => _377.configService, 'optionalAccess', _378 => _378.currentSubPackageRoot]);
25723
+ const currentRoot = _optionalChain([ctx, 'access', _394 => _394.configService, 'optionalAccess', _395 => _395.currentSubPackageRoot]);
25548
25724
  if (!currentRoot) {
25549
25725
  depsMap.clear();
25550
25726
  tokenMap.clear();
@@ -25599,7 +25775,7 @@ function createWxmlService(ctx) {
25599
25775
  }
25600
25776
  return scanWxml(wxml, {
25601
25777
  platform: ctx.configService.platform,
25602
- ..._optionalChain([ctx, 'access', _379 => _379.configService, 'access', _380 => _380.weappViteConfig, 'optionalAccess', _381 => _381.enhance, 'optionalAccess', _382 => _382.wxml]) === true ? {} : _optionalChain([ctx, 'access', _383 => _383.configService, 'access', _384 => _384.weappViteConfig, 'optionalAccess', _385 => _385.enhance, 'optionalAccess', _386 => _386.wxml])
25778
+ ..._optionalChain([ctx, 'access', _396 => _396.configService, 'access', _397 => _397.weappViteConfig, 'optionalAccess', _398 => _398.enhance, 'optionalAccess', _399 => _399.wxml]) === true ? {} : _optionalChain([ctx, 'access', _400 => _400.configService, 'access', _401 => _401.weappViteConfig, 'optionalAccess', _402 => _402.enhance, 'optionalAccess', _403 => _403.wxml])
25603
25779
  });
25604
25780
  }
25605
25781
  async function scan(filepath) {
@@ -25708,8 +25884,8 @@ function resetCompilerContext(key) {
25708
25884
 
25709
25885
  // src/createContext.ts
25710
25886
  async function createCompilerContext(options) {
25711
- const key = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _387 => _387.key]), () => ( "default"));
25712
- if (!_optionalChain([options, 'optionalAccess', _388 => _388.key])) {
25887
+ const key = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _404 => _404.key]), () => ( "default"));
25888
+ if (!_optionalChain([options, 'optionalAccess', _405 => _405.key])) {
25713
25889
  resetCompilerContext(key);
25714
25890
  }
25715
25891
  const ctx = getCompilerContext(key);
@@ -25727,7 +25903,8 @@ async function createCompilerContext(options) {
25727
25903
 
25728
25904
 
25729
25905
 
25730
- exports.logger_default = logger_default; exports.VERSION = VERSION; exports.checkRuntime = checkRuntime; exports.createCompilerContext = createCompilerContext;
25906
+
25907
+ exports.logger_default = logger_default; exports.VERSION = VERSION; exports.checkRuntime = checkRuntime; exports.resolveWeappConfigFile = resolveWeappConfigFile; exports.createCompilerContext = createCompilerContext;
25731
25908
  /*! Bundled license information:
25732
25909
 
25733
25910
  chokidar/esm/index.js: