@absolutejs/absolute 0.20.0-beta.125 → 0.20.0-beta.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +19 -0
  3. package/changelog.json +27 -0
  4. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  5. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  6. package/dist/angular/index.js +35 -29
  7. package/dist/angular/index.js.map +5 -4
  8. package/dist/angular/server.js +35 -29
  9. package/dist/angular/server.js.map +5 -4
  10. package/dist/build/buildWorker.js +9 -3
  11. package/dist/build.js +210 -201
  12. package/dist/build.js.map +8 -7
  13. package/dist/cli/{compile-hywymh6y.js → compile-0epdbdcx.js} +2 -2
  14. package/dist/cli/{index-9q8yn5ax.js → index-54q7pxcx.js} +1 -0
  15. package/dist/cli/{index-q3sq287p.js → index-79ppyst7.js} +2 -2
  16. package/dist/cli/{index-k8r00xh9.js → index-q4gpm386.js} +22 -2
  17. package/dist/cli/index.js +4 -4
  18. package/dist/cli/{mobile-6kdsrhxy.js → mobile-49hyrgrj.js} +2 -2
  19. package/dist/cli/{prerender-vvrj9vjg.js → prerender-yex2zwj3.js} +1 -1
  20. package/dist/cli/{start-q08avhxg.js → start-m0p0qbep.js} +2 -2
  21. package/dist/index.js +229 -217
  22. package/dist/index.js.map +11 -9
  23. package/dist/islands/index.js +10 -4
  24. package/dist/islands/index.js.map +5 -4
  25. package/dist/mobile/remoteMacAgentEntry.js +1 -1
  26. package/dist/react/index.js +10 -4
  27. package/dist/react/index.js.map +5 -4
  28. package/dist/src/cli/serverBundleExternals.d.ts +2 -1
  29. package/dist/src/utils/index.d.ts +1 -0
  30. package/dist/src/utils/isFile.d.ts +4 -0
  31. package/dist/src/utils/isPrerendering.d.ts +5 -0
  32. package/dist/svelte/index.js +10 -4
  33. package/dist/svelte/index.js.map +5 -4
  34. package/dist/vue/index.js +10 -4
  35. package/dist/vue/index.js.map +5 -4
  36. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -8205,6 +8205,11 @@ var init_svelteServerModule = __esm(() => {
8205
8205
  });
8206
8206
  });
8207
8207
 
8208
+ // src/utils/isFile.ts
8209
+ import { statSync } from "fs";
8210
+ var isFile = (path) => statSync(path, { throwIfNoEntry: false })?.isFile() ?? false;
8211
+ var init_isFile = () => {};
8212
+
8208
8213
  // src/utils/vueCompiler.ts
8209
8214
  var exports_vueCompiler = {};
8210
8215
  __export(exports_vueCompiler, {
@@ -8223,7 +8228,7 @@ var createVueCompiler = async () => {
8223
8228
  };
8224
8229
 
8225
8230
  // src/core/vueServerModule.ts
8226
- import { existsSync as existsSync6, readFileSync as readFileSync6, realpathSync } from "fs";
8231
+ import { readFileSync as readFileSync6, realpathSync } from "fs";
8227
8232
  import { mkdir as mkdir4 } from "fs/promises";
8228
8233
  import { dirname as dirname7, join as join9, relative as relative4, resolve as resolve7 } from "path";
8229
8234
  var {Transpiler } = globalThis.Bun;
@@ -8270,9 +8275,9 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
8270
8275
  const hasScript = descriptor.script || descriptor.scriptSetup;
8271
8276
  const compiledScript = hasScript ? compiler.compileScript(descriptor, {
8272
8277
  fs: {
8273
- fileExists: existsSync6,
8278
+ fileExists: isFile,
8274
8279
  realpath: realpathSync,
8275
- readFile: (file) => existsSync6(file) ? readFileSync6(file, "utf-8") : undefined
8280
+ readFile: (file) => isFile(file) ? readFileSync6(file, "utf-8") : undefined
8276
8281
  },
8277
8282
  id: componentId,
8278
8283
  inlineTemplate: false
@@ -8317,6 +8322,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
8317
8322
  };
8318
8323
  var init_vueServerModule = __esm(() => {
8319
8324
  init_constants();
8325
+ init_isFile();
8320
8326
  serverCacheRoot3 = join9(process.cwd(), ".absolutejs", "islands", "vue");
8321
8327
  compiledModuleCache3 = new Map;
8322
8328
  transpiler2 = new Transpiler({ loader: "ts", target: "browser" });
@@ -9594,11 +9600,11 @@ var BOOTSTRAP_MANIFEST_KEY = "BootstrapClient", ISLAND_MARKER = 'data-island="tr
9594
9600
  };
9595
9601
 
9596
9602
  // src/plugins/openApiPlugin.ts
9597
- import { existsSync as existsSync7, readFileSync as readFileSync8 } from "fs";
9603
+ import { existsSync as existsSync6, readFileSync as readFileSync8 } from "fs";
9598
9604
  import { join as join11 } from "path";
9599
9605
  var FALLBACK_NAME = "AbsoluteJS API", FALLBACK_VERSION = "1.0.0", projectInfo = (cwd) => {
9600
9606
  const path = join11(cwd, "package.json");
9601
- if (!existsSync7(path)) {
9607
+ if (!existsSync6(path)) {
9602
9608
  return { name: FALLBACK_NAME, version: FALLBACK_VERSION };
9603
9609
  }
9604
9610
  try {
@@ -9651,11 +9657,11 @@ var FALLBACK_NAME = "AbsoluteJS API", FALLBACK_VERSION = "1.0.0", projectInfo =
9651
9657
  var init_openApiPlugin = () => {};
9652
9658
 
9653
9659
  // src/plugins/telemetryPlugin.ts
9654
- import { existsSync as existsSync8, readFileSync as readFileSync9 } from "fs";
9660
+ import { existsSync as existsSync7, readFileSync as readFileSync9 } from "fs";
9655
9661
  import { join as join12 } from "path";
9656
9662
  var OTEL_PACKAGE = "@elysia/opentelemetry", readPackageName = (cwd) => {
9657
9663
  const path = join12(cwd, "package.json");
9658
- if (!existsSync8(path))
9664
+ if (!existsSync7(path))
9659
9665
  return null;
9660
9666
  try {
9661
9667
  const pkg = JSON.parse(readFileSync9(path, "utf-8"));
@@ -9832,10 +9838,10 @@ var init_loadIslandRegistry = __esm(() => {
9832
9838
  });
9833
9839
 
9834
9840
  // src/build/scanEntryPoints.ts
9835
- import { existsSync as existsSync9 } from "fs";
9841
+ import { existsSync as existsSync8 } from "fs";
9836
9842
  var {Glob } = globalThis.Bun;
9837
9843
  var scanEntryPoints = async (dir, pattern) => {
9838
- if (!existsSync9(dir))
9844
+ if (!existsSync8(dir))
9839
9845
  return [];
9840
9846
  const entryPaths = [];
9841
9847
  const glob = new Glob(pattern);
@@ -11371,12 +11377,12 @@ var init_associationFiles = __esm(() => {
11371
11377
  });
11372
11378
 
11373
11379
  // src/cli/scripts/telemetry.ts
11374
- import { existsSync as existsSync10, mkdirSync as mkdirSync2, readFileSync as readFileSync12, writeFileSync as writeFileSync4 } from "fs";
11380
+ import { existsSync as existsSync9, mkdirSync as mkdirSync2, readFileSync as readFileSync12, writeFileSync as writeFileSync4 } from "fs";
11375
11381
  import { homedir } from "os";
11376
11382
  import { join as join13 } from "path";
11377
11383
  var configDir, configPath, getTelemetryConfig = () => {
11378
11384
  try {
11379
- if (!existsSync10(configPath))
11385
+ if (!existsSync9(configPath))
11380
11386
  return null;
11381
11387
  const raw = readFileSync12(configPath, "utf-8");
11382
11388
  const config = JSON.parse(raw);
@@ -11391,11 +11397,11 @@ var init_telemetry = __esm(() => {
11391
11397
  });
11392
11398
 
11393
11399
  // src/cli/telemetryEvent.ts
11394
- import { existsSync as existsSync11, readFileSync as readFileSync13 } from "fs";
11400
+ import { existsSync as existsSync10, readFileSync as readFileSync13 } from "fs";
11395
11401
  import { arch, platform } from "os";
11396
11402
  import { dirname as dirname10, join as join14, parse } from "path";
11397
11403
  var checkCandidate = (candidate) => {
11398
- if (!existsSync11(candidate)) {
11404
+ if (!existsSync10(candidate)) {
11399
11405
  return null;
11400
11406
  }
11401
11407
  const pkg = JSON.parse(readFileSync13(candidate, "utf-8"));
@@ -11527,7 +11533,7 @@ var init_mobilePreview = __esm(() => {
11527
11533
  });
11528
11534
 
11529
11535
  // src/mobile/deviceCapabilities.ts
11530
- import { existsSync as existsSync12, readFileSync as readFileSync14 } from "fs";
11536
+ import { existsSync as existsSync11, readFileSync as readFileSync14 } from "fs";
11531
11537
  import { extname as extname5, join as join15, relative as relative6, resolve as resolve14 } from "path";
11532
11538
  import { fileURLToPath as fileURLToPath2 } from "url";
11533
11539
  import ts2 from "typescript";
@@ -11731,7 +11737,7 @@ var DEVICES_PACKAGE = "@absolutejs/devices", ABSOLUTE_MOBILE_SHELL_DEVICE_CAPABI
11731
11737
  return packages;
11732
11738
  }, discoverAbsoluteDeviceCapabilities = (projectRoot, providers = loadAbsoluteDeviceCapabilityProviders(projectRoot)) => {
11733
11739
  const root = resolve14(projectRoot);
11734
- if (!existsSync12(root))
11740
+ if (!existsSync11(root))
11735
11741
  return [];
11736
11742
  const known = new Set(Object.keys(providers));
11737
11743
  const capabilities = new Set;
@@ -14558,22 +14564,22 @@ var init_verifyAngularCoreUniqueness = __esm(() => {
14558
14564
  });
14559
14565
 
14560
14566
  // src/build/generateReactIndexes.ts
14561
- import { existsSync as existsSync13, mkdirSync as mkdirSync3 } from "fs";
14567
+ import { existsSync as existsSync12, mkdirSync as mkdirSync3 } from "fs";
14562
14568
  import { readdir as readdir3, rm as rm3, writeFile as writeFile3 } from "fs/promises";
14563
14569
  import { basename as basename4, join as join20, relative as relative8, resolve as resolve18, sep as sep2 } from "path";
14564
14570
  var {Glob: Glob2 } = globalThis.Bun;
14565
14571
  var indexContentCache, resolveDevClientDir = () => {
14566
14572
  const projectRoot = process.cwd();
14567
14573
  const fromPackage = resolve18(import.meta.dir, "../dev/client");
14568
- if (existsSync13(fromPackage)) {
14574
+ if (existsSync12(fromPackage)) {
14569
14575
  return fromPackage;
14570
14576
  }
14571
14577
  const fromNodeModules = resolve18(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
14572
- if (existsSync13(fromNodeModules))
14578
+ if (existsSync12(fromNodeModules))
14573
14579
  return fromNodeModules;
14574
14580
  return resolve18(import.meta.dir, "./dev/client");
14575
14581
  }, devClientDir, errorOverlayPath, hmrClientPath, refreshSetupPath, reactRefreshRuntimePath, generateReactIndexFiles = async (reactPagesDirectory, reactIndexesDirectory, isDev2 = false) => {
14576
- if (!existsSync13(reactIndexesDirectory)) {
14582
+ if (!existsSync12(reactIndexesDirectory)) {
14577
14583
  mkdirSync3(reactIndexesDirectory, { recursive: true });
14578
14584
  }
14579
14585
  const CONVENTION_RE = /^(?:(.+)\.)?(error|loading|not-found)\.[^.]+$/;
@@ -14919,7 +14925,7 @@ var indexContentCache, resolveDevClientDir = () => {
14919
14925
  const hasher = new Bun.CryptoHasher("md5");
14920
14926
  hasher.update(content);
14921
14927
  const contentHash = hasher.digest("hex");
14922
- if (indexContentCache.get(indexPath) === contentHash && existsSync13(indexPath)) {
14928
+ if (indexContentCache.get(indexPath) === contentHash && existsSync12(indexPath)) {
14923
14929
  return;
14924
14930
  }
14925
14931
  indexContentCache.set(indexPath, contentHash);
@@ -14930,7 +14936,7 @@ var indexContentCache, resolveDevClientDir = () => {
14930
14936
  return;
14931
14937
  }
14932
14938
  const refreshPath = join20(reactIndexesDirectory, "_refresh.tsx");
14933
- if (!existsSync13(refreshPath)) {
14939
+ if (!existsSync12(refreshPath)) {
14934
14940
  await writeFile3(refreshPath, `import '${refreshSetupPath}';
14935
14941
  import 'react';
14936
14942
  import 'react-dom/client';
@@ -15009,14 +15015,14 @@ var init_outputLogs = __esm(() => {
15009
15015
  });
15010
15016
 
15011
15017
  // src/build/stampedFileCache.ts
15012
- import { statSync } from "fs";
15018
+ import { statSync as statSync2 } from "fs";
15013
15019
  var STAMP_SETTLE_MS = 2000, createStampedFileCache = () => {
15014
15020
  const entries = new Map;
15015
15021
  const seen = new Set;
15016
15022
  const read = (path2, compute) => {
15017
15023
  let stamp;
15018
15024
  try {
15019
- const stats = statSync(path2);
15025
+ const stats = statSync2(path2);
15020
15026
  stamp = { mtimeMs: stats.mtimeMs, size: stats.size };
15021
15027
  } catch {
15022
15028
  return compute();
@@ -15048,7 +15054,7 @@ var init_stampedFileCache = () => {};
15048
15054
  // src/build/scanConventions.ts
15049
15055
  import { basename as basename5 } from "path";
15050
15056
  var {Glob: Glob3 } = globalThis.Bun;
15051
- import { existsSync as existsSync14 } from "fs";
15057
+ import { existsSync as existsSync13 } from "fs";
15052
15058
  var CONVENTION_RE, classifyFile = (file2, pageFiles, defaults, pages) => {
15053
15059
  const fileName = basename5(file2);
15054
15060
  const match = CONVENTION_RE.exec(fileName);
@@ -15073,7 +15079,7 @@ var CONVENTION_RE, classifyFile = (file2, pageFiles, defaults, pages) => {
15073
15079
  else if (kind === "loading")
15074
15080
  pages[pageName].loading = file2;
15075
15081
  }, scanConventions = async (pagesDir, pattern) => {
15076
- if (!existsSync14(pagesDir)) {
15082
+ if (!existsSync13(pagesDir)) {
15077
15083
  const pageFiles2 = [];
15078
15084
  return { conventions: undefined, pageFiles: pageFiles2 };
15079
15085
  }
@@ -15135,7 +15141,7 @@ __export(exports_serverExternals, {
15135
15141
  createDevServerExternalsPlugin: () => createDevServerExternalsPlugin,
15136
15142
  packageNameOf: () => packageNameOf
15137
15143
  });
15138
- import { existsSync as existsSync15, readdirSync, readFileSync as readFileSync17 } from "fs";
15144
+ import { existsSync as existsSync14, readdirSync, readFileSync as readFileSync17 } from "fs";
15139
15145
  import { isBuiltin } from "module";
15140
15146
  import { dirname as dirname14, extname as extname7, join as join21 } from "path";
15141
15147
  var DEFAULT_BUNDLED_SERVER_DEPENDENCIES, buildServerBundleExternals = (angularVendorPaths) => {
@@ -15194,7 +15200,7 @@ var DEFAULT_BUNDLED_SERVER_DEPENDENCIES, buildServerBundleExternals = (angularVe
15194
15200
  let dir = dirname14(filePath);
15195
15201
  while (true) {
15196
15202
  const manifestPath = join21(dir, "package.json");
15197
- if (existsSync15(manifestPath) && hasPackageName(manifestPath))
15203
+ if (existsSync14(manifestPath) && hasPackageName(manifestPath))
15198
15204
  return dir;
15199
15205
  const parent = dirname14(dir);
15200
15206
  if (parent === dir)
@@ -15463,7 +15469,7 @@ var exports_staticAnalyzeSpaRoutes = {};
15463
15469
  __export(exports_staticAnalyzeSpaRoutes, {
15464
15470
  analyzeAngularSpaRoutes: () => analyzeAngularSpaRoutes
15465
15471
  });
15466
- import { existsSync as existsSync16, promises as fs } from "fs";
15472
+ import { existsSync as existsSync15, promises as fs } from "fs";
15467
15473
  import { join as join23 } from "path";
15468
15474
  import ts4 from "typescript";
15469
15475
  var DYNAMIC_SEGMENT_PATTERN, pathHasDynamic = (path2) => path2.split("/").some((seg) => DYNAMIC_SEGMENT_PATTERN.test(seg) || seg === "**"), importsSymbolFrom = (sourceFile, localName, moduleSpecifier) => {
@@ -15670,7 +15676,7 @@ var DYNAMIC_SEGMENT_PATTERN, pathHasDynamic = (path2) => path2.split("/").some((
15670
15676
  }
15671
15677
  await Promise.all(directories.map((directory) => walkTsFiles(directory, files)));
15672
15678
  }, analyzeAngularSpaRoutes = async (angularDirectory) => {
15673
- if (!existsSync16(angularDirectory))
15679
+ if (!existsSync15(angularDirectory))
15674
15680
  return [];
15675
15681
  const tsFiles = [];
15676
15682
  await walkTsFiles(angularDirectory, tsFiles);
@@ -15695,7 +15701,7 @@ var exports_staticAnalyzeSpaRoutes2 = {};
15695
15701
  __export(exports_staticAnalyzeSpaRoutes2, {
15696
15702
  analyzeReactSpaRoutes: () => analyzeReactSpaRoutes
15697
15703
  });
15698
- import { existsSync as existsSync17, promises as fs2 } from "fs";
15704
+ import { existsSync as existsSync16, promises as fs2 } from "fs";
15699
15705
  import { join as join24 } from "path";
15700
15706
  import ts5 from "typescript";
15701
15707
  var DYNAMIC_SEGMENT_PATTERN2, pathHasDynamic2 = (path2) => path2.split("/").some((seg) => DYNAMIC_SEGMENT_PATTERN2.test(seg) || seg === "**"), readStringLiteral2 = (expression) => {
@@ -15884,7 +15890,7 @@ var DYNAMIC_SEGMENT_PATTERN2, pathHasDynamic2 = (path2) => path2.split("/").some
15884
15890
  }
15885
15891
  await Promise.all(directories.map((directory) => walkSourceFiles(directory, files)));
15886
15892
  }, analyzeReactSpaRoutes = async (reactDirectory) => {
15887
- if (!existsSync17(reactDirectory))
15893
+ if (!existsSync16(reactDirectory))
15888
15894
  return [];
15889
15895
  const files = [];
15890
15896
  await walkSourceFiles(reactDirectory, files);
@@ -15909,7 +15915,7 @@ var exports_staticAnalyzeSpaRoutes3 = {};
15909
15915
  __export(exports_staticAnalyzeSpaRoutes3, {
15910
15916
  analyzeSvelteSpaRoutes: () => analyzeSvelteSpaRoutes
15911
15917
  });
15912
- import { existsSync as existsSync18, promises as fs3 } from "fs";
15918
+ import { existsSync as existsSync17, promises as fs3 } from "fs";
15913
15919
  import { join as join25 } from "path";
15914
15920
  var DYNAMIC_SEGMENT_PATTERN3, pathHasDynamic3 = (path2) => path2.split("/").some((seg) => DYNAMIC_SEGMENT_PATTERN3.test(seg) || seg === "**"), joinSegments3 = (parent, child) => {
15915
15921
  if (!child)
@@ -15992,7 +15998,7 @@ var DYNAMIC_SEGMENT_PATTERN3, pathHasDynamic3 = (path2) => path2.split("/").some
15992
15998
  }
15993
15999
  await Promise.all(directories.map((directory) => walkSvelteFiles(directory, files)));
15994
16000
  }, analyzeSvelteSpaRoutes = async (svelteDirectory) => {
15995
- if (!existsSync18(svelteDirectory))
16001
+ if (!existsSync17(svelteDirectory))
15996
16002
  return [];
15997
16003
  const files = [];
15998
16004
  await walkSvelteFiles(svelteDirectory, files);
@@ -16019,7 +16025,7 @@ var exports_staticAnalyzeSpaRoutes4 = {};
16019
16025
  __export(exports_staticAnalyzeSpaRoutes4, {
16020
16026
  analyzeVueSpaRoutes: () => analyzeVueSpaRoutes
16021
16027
  });
16022
- import { existsSync as existsSync19, promises as fs4 } from "fs";
16028
+ import { existsSync as existsSync18, promises as fs4 } from "fs";
16023
16029
  import { join as join26 } from "path";
16024
16030
  import ts6 from "typescript";
16025
16031
  var DYNAMIC_SEGMENT_PATTERN4, pathHasDynamic4 = (path2) => path2.split("/").some((seg) => DYNAMIC_SEGMENT_PATTERN4.test(seg) || seg === "**"), readStringLiteral3 = (expression) => {
@@ -16262,7 +16268,7 @@ var DYNAMIC_SEGMENT_PATTERN4, pathHasDynamic4 = (path2) => path2.split("/").some
16262
16268
  }
16263
16269
  await Promise.all(directories.map((directory) => walkSourceFiles2(directory, files)));
16264
16270
  }, analyzeVueSpaRoutes = async (vueDirectory) => {
16265
- if (!existsSync19(vueDirectory))
16271
+ if (!existsSync18(vueDirectory))
16266
16272
  return [];
16267
16273
  const files = [];
16268
16274
  await walkSourceFiles2(vueDirectory, files);
@@ -16519,10 +16525,10 @@ var init_generateSitemap = __esm(() => {
16519
16525
  });
16520
16526
 
16521
16527
  // src/build/scanCssEntryPoints.ts
16522
- import { existsSync as existsSync20 } from "fs";
16528
+ import { existsSync as existsSync19 } from "fs";
16523
16529
  var {Glob: Glob4 } = globalThis.Bun;
16524
16530
  var scanCssEntryPoints = async (dir, ignore) => {
16525
- if (!existsSync20(dir))
16531
+ if (!existsSync19(dir))
16526
16532
  return [];
16527
16533
  const entryPaths = [];
16528
16534
  const glob = new Glob4("**/*.{css,scss,sass,less,styl,stylus}");
@@ -16539,7 +16545,7 @@ var init_scanCssEntryPoints = __esm(() => {
16539
16545
  });
16540
16546
 
16541
16547
  // src/utils/imageProcessing.ts
16542
- import { existsSync as existsSync21, mkdirSync as mkdirSync4, readFileSync as readFileSync19, writeFileSync as writeFileSync5 } from "fs";
16548
+ import { existsSync as existsSync20, mkdirSync as mkdirSync4, readFileSync as readFileSync19, writeFileSync as writeFileSync5 } from "fs";
16543
16549
  import { join as join27, resolve as resolve20 } from "path";
16544
16550
  var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_ENDPOINT = "/_absolute/image", BLUR_DEVIATION = 20, sharpModule = undefined, sharpLoaded = false, sharpWarned = false, snapToSize = (target, sizes) => {
16545
16551
  for (const size of sizes) {
@@ -16598,7 +16604,7 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
16598
16604
  return [...device, ...image2].sort((left, right) => left - right);
16599
16605
  }, getCacheDir = (buildDir, cacheDirectory) => {
16600
16606
  const dir = cacheDirectory ? resolve20(cacheDirectory) : join27(buildDir, ".cache", "images");
16601
- if (!existsSync21(dir))
16607
+ if (!existsSync20(dir))
16602
16608
  mkdirSync4(dir, { recursive: true });
16603
16609
  return dir;
16604
16610
  }, getCacheKey = (url, width, quality, format) => {
@@ -16690,7 +16696,7 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
16690
16696
  }, readFromCache = (cacheDir, cacheKey2) => {
16691
16697
  const metaPath = join27(cacheDir, `${cacheKey2}.meta`);
16692
16698
  const dataPath = join27(cacheDir, `${cacheKey2}.data`);
16693
- if (!existsSync21(metaPath) || !existsSync21(dataPath))
16699
+ if (!existsSync20(metaPath) || !existsSync20(dataPath))
16694
16700
  return null;
16695
16701
  try {
16696
16702
  const meta = JSON.parse(readFileSync19(metaPath, "utf-8"));
@@ -16861,17 +16867,17 @@ var exports_buildHMRClient = {};
16861
16867
  __export(exports_buildHMRClient, {
16862
16868
  buildHMRClient: () => buildHMRClient
16863
16869
  });
16864
- import { existsSync as existsSync22 } from "fs";
16870
+ import { existsSync as existsSync21 } from "fs";
16865
16871
  import { resolve as resolve21 } from "path";
16866
16872
  var {build: bunBuild } = globalThis.Bun;
16867
16873
  var resolveHmrClientPath = () => {
16868
16874
  const projectRoot = process.cwd();
16869
16875
  const fromSource = resolve21(import.meta.dir, "client/hmrClient.ts");
16870
- if (existsSync22(fromSource) && fromSource.startsWith(projectRoot)) {
16876
+ if (existsSync21(fromSource) && fromSource.startsWith(projectRoot)) {
16871
16877
  return fromSource;
16872
16878
  }
16873
16879
  const fromNodeModules = resolve21(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client/hmrClient.ts");
16874
- if (existsSync22(fromNodeModules))
16880
+ if (existsSync21(fromNodeModules))
16875
16881
  return fromNodeModules;
16876
16882
  return resolve21(import.meta.dir, "dev/client/hmrClient.ts");
16877
16883
  }, hmrClientPath2, buildHMRClient = async () => {
@@ -17021,10 +17027,10 @@ var devVendorPaths = null, getDevVendorPaths = () => devVendorPaths, setDevVendo
17021
17027
  };
17022
17028
 
17023
17029
  // src/dev/lazyPages.ts
17024
- import { existsSync as existsSync23 } from "fs";
17030
+ import { existsSync as existsSync22 } from "fs";
17025
17031
  import { basename as basename8, extname as extname8, isAbsolute as isAbsolute4, join as join28, resolve as resolve22 } from "path";
17026
17032
  var PAGE_EXTENSIONS, KEY_SUFFIXES, SRC_URL_PREFIX = "/@src/", isTruthyFlag2 = (value) => value === "1" || value === "true", looksLikePath = (value) => value.includes("/") || value.includes("\\") || value.startsWith("."), probeDirForName = ({ dir, framework }, name) => {
17027
- const extension = PAGE_EXTENSIONS[framework].find((ext) => existsSync23(join28(dir, `${name}${ext}`)));
17033
+ const extension = PAGE_EXTENSIONS[framework].find((ext) => existsSync22(join28(dir, `${name}${ext}`)));
17028
17034
  return extension === undefined ? undefined : toDevPageEntry(framework, join28(dir, `${name}${extension}`));
17029
17035
  }, resolveSourcePath = (keyOrPath) => {
17030
17036
  const stripped = keyOrPath.startsWith(SRC_URL_PREFIX) ? keyOrPath.slice(SRC_URL_PREFIX.length).split("?")[0] ?? "" : keyOrPath;
@@ -17132,7 +17138,7 @@ var init_lazyPages = __esm(() => {
17132
17138
  });
17133
17139
 
17134
17140
  // src/build/angularLinkerPlugin.ts
17135
- import { existsSync as existsSync24, mkdirSync as mkdirSync5, readFileSync as readFileSync20, writeFileSync as writeFileSync6 } from "fs";
17141
+ import { existsSync as existsSync23, mkdirSync as mkdirSync5, readFileSync as readFileSync20, writeFileSync as writeFileSync6 } from "fs";
17136
17142
  import { dirname as dirname15, join as join29, relative as relative10, resolve as resolve23 } from "path";
17137
17143
  import { createHash as createHash6 } from "crypto";
17138
17144
  var CACHE_ROOT, ANGULAR_LINKER_CANDIDATE_RE, createAngularLinkerPlugin = (linkerJitMode) => ({
@@ -17155,7 +17161,7 @@ var CACHE_ROOT, ANGULAR_LINKER_CANDIDATE_RE, createAngularLinkerPlugin = (linker
17155
17161
  }
17156
17162
  const hash = createHash6("md5").update(source).digest("hex");
17157
17163
  const cachePath = join29(cacheDir, `${hash}.js`);
17158
- if (existsSync24(cachePath)) {
17164
+ if (existsSync23(cachePath)) {
17159
17165
  return {
17160
17166
  contents: readFileSync20(cachePath, "utf-8"),
17161
17167
  loader: "js"
@@ -17172,7 +17178,7 @@ var CACHE_ROOT, ANGULAR_LINKER_CANDIDATE_RE, createAngularLinkerPlugin = (linker
17172
17178
  linkerPlugin = mod.createEs2015LinkerPlugin({
17173
17179
  fileSystem: {
17174
17180
  dirname: dirname15,
17175
- exists: existsSync24,
17181
+ exists: existsSync23,
17176
17182
  readFile: readFileSync20,
17177
17183
  relative: relative10,
17178
17184
  resolve: resolve23
@@ -17287,7 +17293,7 @@ var init_bunStringRawUnicodePlugin = __esm(() => {
17287
17293
  });
17288
17294
 
17289
17295
  // src/build/externalAssetPlugin.ts
17290
- import { copyFileSync, existsSync as existsSync25, mkdirSync as mkdirSync6, statSync as statSync2 } from "fs";
17296
+ import { copyFileSync, existsSync as existsSync24, mkdirSync as mkdirSync6, statSync as statSync3 } from "fs";
17291
17297
  import { basename as basename9, dirname as dirname16, join as join30, resolve as resolve24 } from "path";
17292
17298
  var createExternalAssetPlugin = (outDir, userSourceRoots = []) => ({
17293
17299
  name: "absolute-external-asset",
@@ -17309,12 +17315,12 @@ var createExternalAssetPlugin = (outDir, userSourceRoots = []) => ({
17309
17315
  if (!relPath)
17310
17316
  continue;
17311
17317
  const assetPath = resolve24(sourceDir, relPath);
17312
- if (!existsSync25(assetPath))
17318
+ if (!existsSync24(assetPath))
17313
17319
  continue;
17314
- if (!statSync2(assetPath).isFile())
17320
+ if (!statSync3(assetPath).isFile())
17315
17321
  continue;
17316
17322
  const targetPath = join30(outDir, basename9(assetPath));
17317
- if (existsSync25(targetPath))
17323
+ if (existsSync24(targetPath))
17318
17324
  continue;
17319
17325
  mkdirSync6(dirname16(targetPath), { recursive: true });
17320
17326
  copyFileSync(assetPath, targetPath);
@@ -17542,7 +17548,7 @@ var vueModuleOutputPath = (outputDir, sourcePath) => {
17542
17548
  var init_vueModuleOutputPath = () => {};
17543
17549
 
17544
17550
  // src/build/injectVueComposableTracking.ts
17545
- import { existsSync as existsSync26, readFileSync as readFileSync21, writeFileSync as writeFileSync7 } from "fs";
17551
+ import { existsSync as existsSync25, readFileSync as readFileSync21, writeFileSync as writeFileSync7 } from "fs";
17546
17552
  import { basename as basename11, isAbsolute as isAbsolute6, relative as relative12, resolve as resolve26 } from "path";
17547
17553
  var VUE_HMR_RUNTIME, USE_DECLARATION, MODULE_COMMENT, LINE_TERMINATOR, STATEMENT_OPENER, SOURCE_EXTENSIONS2, CHUNK_REFERENCE, isSharedChunkFile = (fileName) => fileName.startsWith("chunk-") && fileName.endsWith(".js"), collectModuleComments = (content) => Array.from(content.matchAll(MODULE_COMMENT), (match) => ({
17548
17554
  index: match.index,
@@ -17657,7 +17663,7 @@ ${wrapped.slice(insertAt)}`);
17657
17663
  if (!sourcePath)
17658
17664
  return absolutePath;
17659
17665
  const stem = sourcePath.replace(/\.[cm]?js$/, "");
17660
- const existing = SOURCE_EXTENSIONS2.map((extension) => `${stem}${extension}`).find((candidate) => existsSync26(candidate));
17666
+ const existing = SOURCE_EXTENSIONS2.map((extension) => `${stem}${extension}`).find((candidate) => existsSync25(candidate));
17661
17667
  return existing ?? `${stem}.ts`;
17662
17668
  };
17663
17669
  var init_injectVueComposableTracking = __esm(() => {
@@ -19073,7 +19079,7 @@ __export(exports_fastHmrCompiler, {
19073
19079
  takePendingModule: () => takePendingModule,
19074
19080
  tryFastHmr: () => tryFastHmr
19075
19081
  });
19076
- import { existsSync as existsSync27, readFileSync as readFileSync23, statSync as statSync3 } from "fs";
19082
+ import { existsSync as existsSync26, readFileSync as readFileSync23, statSync as statSync4 } from "fs";
19077
19083
  import { dirname as dirname19, extname as extname10, relative as relative15, resolve as resolve30 } from "path";
19078
19084
  import ts12 from "typescript";
19079
19085
  var fail = (reason, detail, location) => ({
@@ -19397,7 +19403,7 @@ var fail = (reason, detail, location) => ({
19397
19403
  `${base}/index.tsx`
19398
19404
  ];
19399
19405
  for (const candidate of candidates) {
19400
- if (!existsSync27(candidate))
19406
+ if (!existsSync26(candidate))
19401
19407
  continue;
19402
19408
  let content;
19403
19409
  try {
@@ -19980,7 +19986,7 @@ var fail = (reason, detail, location) => ({
19980
19986
  const cacheKey2 = `ts:${filePath}:${className}`;
19981
19987
  let stat3;
19982
19988
  try {
19983
- stat3 = statSync3(filePath);
19989
+ stat3 = statSync4(filePath);
19984
19990
  } catch {
19985
19991
  return null;
19986
19992
  }
@@ -20034,7 +20040,7 @@ var fail = (reason, detail, location) => ({
20034
20040
  const cacheKey2 = `dts:${dtsPath}:${className}`;
20035
20041
  let stat3;
20036
20042
  try {
20037
- stat3 = statSync3(dtsPath);
20043
+ stat3 = statSync4(dtsPath);
20038
20044
  } catch {
20039
20045
  return null;
20040
20046
  }
@@ -20162,7 +20168,7 @@ var fail = (reason, detail, location) => ({
20162
20168
  if (visited.has(startDtsPath))
20163
20169
  return null;
20164
20170
  visited.add(startDtsPath);
20165
- if (!existsSync27(startDtsPath))
20171
+ if (!existsSync26(startDtsPath))
20166
20172
  return null;
20167
20173
  let content;
20168
20174
  try {
@@ -20215,16 +20221,16 @@ var fail = (reason, detail, location) => ({
20215
20221
  `${base}/index.d.cts`
20216
20222
  ];
20217
20223
  for (const c of candidates) {
20218
- if (existsSync27(c))
20224
+ if (existsSync26(c))
20219
20225
  return c;
20220
20226
  }
20221
20227
  return null;
20222
20228
  }, findPackageDtsForJs = (jsPath) => {
20223
20229
  const sibling = jsPath.replace(/\.[mc]?js$/, ".d.ts");
20224
- if (existsSync27(sibling))
20230
+ if (existsSync26(sibling))
20225
20231
  return sibling;
20226
20232
  const mirror = jsPath.replace(/\/dist\//, "/dist/src/").replace(/\.[mc]?js$/, ".d.ts");
20227
- if (existsSync27(mirror))
20233
+ if (existsSync26(mirror))
20228
20234
  return mirror;
20229
20235
  return null;
20230
20236
  }, resolveChildComponentInfo = (className, spec, componentDir, projectRoot) => {
@@ -20237,7 +20243,7 @@ var fail = (reason, detail, location) => ({
20237
20243
  `${base}/index.tsx`
20238
20244
  ];
20239
20245
  for (const candidate of candidates) {
20240
- if (!existsSync27(candidate))
20246
+ if (!existsSync26(candidate))
20241
20247
  continue;
20242
20248
  const info = getChildComponentInfoFromTsSource(candidate, className);
20243
20249
  if (info)
@@ -20375,7 +20381,7 @@ var fail = (reason, detail, location) => ({
20375
20381
  }, providerProbeCache, fileHasModuleProviders = (filePath) => {
20376
20382
  let stat3;
20377
20383
  try {
20378
- stat3 = statSync3(filePath);
20384
+ stat3 = statSync4(filePath);
20379
20385
  } catch {
20380
20386
  return true;
20381
20387
  }
@@ -20451,11 +20457,11 @@ var fail = (reason, detail, location) => ({
20451
20457
  const resolved = resolve30(componentDir, spec);
20452
20458
  for (const ext of TS_EXTENSIONS) {
20453
20459
  const candidate = resolved + ext;
20454
- if (existsSync27(candidate))
20460
+ if (existsSync26(candidate))
20455
20461
  return candidate;
20456
20462
  }
20457
20463
  const indexCandidate = resolve30(resolved, "index.ts");
20458
- if (existsSync27(indexCandidate))
20464
+ if (existsSync26(indexCandidate))
20459
20465
  return indexCandidate;
20460
20466
  }
20461
20467
  return null;
@@ -20693,7 +20699,7 @@ ${transpiled}
20693
20699
  }${staticPatch}`;
20694
20700
  }, STYLE_PREPROCESSED_EXT, resolveAndReadStyleResource = (componentDir, url) => {
20695
20701
  const abs = resolve30(componentDir, url);
20696
- if (!existsSync27(abs))
20702
+ if (!existsSync26(abs))
20697
20703
  return null;
20698
20704
  const ext = extname10(abs).toLowerCase();
20699
20705
  if (!STYLE_PREPROCESSED_EXT.has(ext) || ext === ".css") {
@@ -20733,7 +20739,7 @@ ${block}
20733
20739
  return cached;
20734
20740
  const tsconfigPath = resolve30(projectRoot, "tsconfig.json");
20735
20741
  const opts = {};
20736
- if (existsSync27(tsconfigPath)) {
20742
+ if (existsSync26(tsconfigPath)) {
20737
20743
  try {
20738
20744
  const text3 = readFileSync23(tsconfigPath, "utf8");
20739
20745
  const parsed = ts12.parseConfigFileTextToJson(tsconfigPath, text3);
@@ -20760,7 +20766,7 @@ ${block}
20760
20766
  }, tryFastHmr = async (params) => {
20761
20767
  const { componentFilePath, className } = params;
20762
20768
  const projectRoot = params.projectRoot ?? process.cwd();
20763
- if (!existsSync27(componentFilePath)) {
20769
+ if (!existsSync26(componentFilePath)) {
20764
20770
  return fail("file-not-found", componentFilePath);
20765
20771
  }
20766
20772
  let compiler;
@@ -20816,7 +20822,7 @@ ${block}
20816
20822
  templatePath = componentFilePath;
20817
20823
  } else if (decoratorMeta.templateUrl) {
20818
20824
  const tplAbs = resolve30(componentDir, decoratorMeta.templateUrl);
20819
- if (!existsSync27(tplAbs)) {
20825
+ if (!existsSync26(tplAbs)) {
20820
20826
  return fail("template-resource-not-found", `Template file not found: ${tplAbs}`, { file: componentFilePath });
20821
20827
  }
20822
20828
  templateText = readFileSync23(tplAbs, "utf8");
@@ -21567,7 +21573,7 @@ var exports_parseAngularConfigImports = {};
21567
21573
  __export(exports_parseAngularConfigImports, {
21568
21574
  parseAngularProvidersImport: () => parseAngularProvidersImport
21569
21575
  });
21570
- import { existsSync as existsSync28, readFileSync as readFileSync27 } from "fs";
21576
+ import { existsSync as existsSync27, readFileSync as readFileSync27 } from "fs";
21571
21577
  import { dirname as dirname20, isAbsolute as isAbsolute7, join as join39 } from "path";
21572
21578
  import ts16 from "typescript";
21573
21579
  var findDefineConfigCall = (sf) => {
@@ -21624,7 +21630,7 @@ var findDefineConfigCall = (sf) => {
21624
21630
  const envOverride = process.env.ABSOLUTE_CONFIG;
21625
21631
  if (envOverride) {
21626
21632
  const resolved = isAbsolute7(envOverride) ? envOverride : join39(projectRoot, envOverride);
21627
- if (existsSync28(resolved))
21633
+ if (existsSync27(resolved))
21628
21634
  return resolved;
21629
21635
  }
21630
21636
  const candidates = [
@@ -21634,7 +21640,7 @@ var findDefineConfigCall = (sf) => {
21634
21640
  join39(projectRoot, "absolute.config.mjs")
21635
21641
  ];
21636
21642
  for (const candidate of candidates) {
21637
- if (existsSync28(candidate))
21643
+ if (existsSync27(candidate))
21638
21644
  return candidate;
21639
21645
  }
21640
21646
  return null;
@@ -21735,7 +21741,7 @@ __export(exports_compileSvelte, {
21735
21741
  clearSvelteCompilerCache: () => clearSvelteCompilerCache,
21736
21742
  compileSvelte: () => compileSvelte
21737
21743
  });
21738
- import { existsSync as existsSync29 } from "fs";
21744
+ import { existsSync as existsSync28 } from "fs";
21739
21745
  import { mkdir as mkdir8, stat as stat3 } from "fs/promises";
21740
21746
  import {
21741
21747
  dirname as dirname21,
@@ -21751,11 +21757,11 @@ var {write: write2, file: file2, Transpiler: Transpiler2 } = globalThis.Bun;
21751
21757
  var resolveDevClientDir2 = () => {
21752
21758
  const projectRoot = process.cwd();
21753
21759
  const fromSource = resolve31(import.meta.dir, "../dev/client");
21754
- if (existsSync29(fromSource) && fromSource.startsWith(projectRoot)) {
21760
+ if (existsSync28(fromSource) && fromSource.startsWith(projectRoot)) {
21755
21761
  return fromSource;
21756
21762
  }
21757
21763
  const fromNodeModules = resolve31(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
21758
- if (existsSync29(fromNodeModules))
21764
+ if (existsSync28(fromNodeModules))
21759
21765
  return fromNodeModules;
21760
21766
  return resolve31(import.meta.dir, "./dev/client");
21761
21767
  }, devClientDir2, hmrClientPath3, persistentCache, sourceHashCache, clearSvelteCompilerCache = () => {
@@ -21858,7 +21864,7 @@ var resolveDevClientDir2 = () => {
21858
21864
  const contentHash = Bun.hash(raw).toString(BASE_36_RADIX);
21859
21865
  const prevHash = sourceHashCache.get(src);
21860
21866
  const persistent = persistentCache.get(src);
21861
- if (prevHash === contentHash && persistent && existsSync29(persistent.ssr) && existsSync29(persistent.client)) {
21867
+ if (prevHash === contentHash && persistent && existsSync28(persistent.ssr) && existsSync28(persistent.client)) {
21862
21868
  cache.set(src, persistent);
21863
21869
  return persistent;
21864
21870
  }
@@ -22589,7 +22595,7 @@ var init_chainInlineSourcemaps = __esm(() => {
22589
22595
 
22590
22596
  // src/build/vueCompileCache.ts
22591
22597
  import { createHash as createHash7 } from "crypto";
22592
- import { existsSync as existsSync30, readFileSync as readFileSync29 } from "fs";
22598
+ import { existsSync as existsSync29, readFileSync as readFileSync29 } from "fs";
22593
22599
  import { mkdir as mkdir9, rename as rename2, writeFile as writeFile8 } from "fs/promises";
22594
22600
  import { join as join41, resolve as resolve32 } from "path";
22595
22601
  var CACHE_DIR_NAME = "compile-cache", ABSOLUTE_CACHE_DIR_NAME2 = ".absolutejs", CACHE_FORMAT_VERSION = 2, FILE_NAME_HASH_LENGTH = 32, vueCompileCacheEnabled = () => process.env.ABSOLUTE_COMPILE_CACHE !== "0", hashContent = (content) => createHash7("sha256").update(content).digest("hex"), hashParts = (parts) => {
@@ -22650,7 +22656,7 @@ var CACHE_DIR_NAME = "compile-cache", ABSOLUTE_CACHE_DIR_NAME2 = ".absolutejs",
22650
22656
  if (!vueCompileCacheEnabled())
22651
22657
  return null;
22652
22658
  const entryFile = entryFileFor(sourceFilePath, projectRoot);
22653
- if (!existsSync30(entryFile))
22659
+ if (!existsSync29(entryFile))
22654
22660
  return null;
22655
22661
  try {
22656
22662
  const parsed = JSON.parse(readFileSync29(entryFile, "utf-8"));
@@ -22681,7 +22687,7 @@ __export(exports_emitTsHelpers, {
22681
22687
  emitTsHelpers: () => emitTsHelpers
22682
22688
  });
22683
22689
  var {file: file3, Transpiler: Transpiler3, write: write3 } = globalThis.Bun;
22684
- import { copyFileSync as copyFileSync2, existsSync as existsSync31, readdirSync as readdirSync6 } from "fs";
22690
+ import { copyFileSync as copyFileSync2, existsSync as existsSync30, readdirSync as readdirSync6 } from "fs";
22685
22691
  import { mkdir as mkdir10, rename as rename3, writeFile as writeFile9 } from "fs/promises";
22686
22692
  import { dirname as dirname22, join as join42 } from "path";
22687
22693
  var CACHE_DIR_NAME2 = "vue-helpers", CACHE_FORMAT_VERSION2 = 1, HASH_LENGTH = 24, transpiler4, cacheDir = () => join42(process.cwd(), ".absolutejs", "compile-cache", CACHE_DIR_NAME2), cacheKey2 = (sourcePath, sourceCode) => {
@@ -22753,7 +22759,7 @@ var CACHE_DIR_NAME2 = "vue-helpers", CACHE_FORMAT_VERSION2 = 1, HASH_LENGTH = 24
22753
22759
  const directory = cacheDir();
22754
22760
  const fileName = key ? `${key.path}-${key.content}.js` : null;
22755
22761
  const cachedPath = fileName ? join42(directory, fileName) : null;
22756
- if (cachedPath && existsSync31(cachedPath)) {
22762
+ if (cachedPath && existsSync30(cachedPath)) {
22757
22763
  await copyBoth(clientOutputPath, serverOutputPath, cachedPath);
22758
22764
  return;
22759
22765
  }
@@ -22780,7 +22786,7 @@ var exports_compileVueSfc = {};
22780
22786
  __export(exports_compileVueSfc, {
22781
22787
  compileVueSfc: () => compileVueSfc
22782
22788
  });
22783
- import { existsSync as existsSync32, readFileSync as readFileSync30, realpathSync as realpathSync2 } from "fs";
22789
+ import { existsSync as existsSync31, readFileSync as readFileSync30, realpathSync as realpathSync2 } from "fs";
22784
22790
  import { dirname as dirname23, relative as relative17, resolve as resolve33 } from "path";
22785
22791
  var {Transpiler: Transpiler4 } = globalThis.Bun;
22786
22792
  var transpiler5, inlineCssImports = (cssContent, cssFilePath, visited = new Set) => {
@@ -22791,7 +22797,7 @@ var transpiler5, inlineCssImports = (cssContent, cssFilePath, visited = new Set)
22791
22797
  const importRegex = /@import\s+(?:url\(\s*)?(['"])(\.{1,2}\/[^'"]+)\1\s*\)?\s*;?/g;
22792
22798
  return cssContent.replace(importRegex, (match, _quote, relPath) => {
22793
22799
  const importedPath = resolve33(dirname23(cssFilePath), relPath);
22794
- if (!existsSync32(importedPath))
22800
+ if (!isFile(importedPath))
22795
22801
  return match;
22796
22802
  const importedContent = readFileSync30(importedPath, "utf-8");
22797
22803
  return inlineCssImports(importedContent, importedPath, visited);
@@ -22809,10 +22815,10 @@ var transpiler5, inlineCssImports = (cssContent, cssFilePath, visited = new Set)
22809
22815
  }
22810
22816
  if (sourceDir && (filePath.startsWith("./") || filePath.startsWith("../"))) {
22811
22817
  const directTs = resolve33(sourceDir, `${filePath}.ts`);
22812
- if (existsSync32(directTs))
22818
+ if (existsSync31(directTs))
22813
22819
  return `${filePath}.js`;
22814
22820
  const indexedTs = resolve33(sourceDir, filePath, "index.ts");
22815
- if (existsSync32(indexedTs))
22821
+ if (existsSync31(indexedTs))
22816
22822
  return `${filePath}/index.js`;
22817
22823
  }
22818
22824
  return `${filePath}.js`;
@@ -22878,10 +22884,10 @@ const ${localName} = (source) => ${importedName}(
22878
22884
  const typeDepHashes = {};
22879
22885
  const compiledScript = hasScript ? compiler.compileScript(descriptor, {
22880
22886
  fs: {
22881
- fileExists: existsSync32,
22887
+ fileExists: isFile,
22882
22888
  realpath: realpathSync2,
22883
22889
  readFile: (file4) => {
22884
- if (!existsSync32(file4))
22890
+ if (!isFile(file4))
22885
22891
  return;
22886
22892
  const content = readFileSync30(file4, "utf-8");
22887
22893
  typeDepHashes[file4] = hashContent(content);
@@ -22894,7 +22900,7 @@ const ${localName} = (source) => ${importedName}(
22894
22900
  }) : { bindings: {}, content: "export default {};", map: undefined };
22895
22901
  const typeDependencies = "deps" in compiledScript ? compiledScript.deps ?? [] : [];
22896
22902
  for (const dep of typeDependencies) {
22897
- if (dep in typeDepHashes || !existsSync32(dep))
22903
+ if (dep in typeDepHashes || !existsSync31(dep))
22898
22904
  continue;
22899
22905
  typeDepHashes[dep] = hashContent(readFileSync30(dep, "utf-8"));
22900
22906
  }
@@ -22986,6 +22992,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
22986
22992
  };
22987
22993
  var init_compileVueSfc = __esm(() => {
22988
22994
  init_sourceMetadata();
22995
+ init_isFile();
22989
22996
  init_chainInlineSourcemaps();
22990
22997
  init_stylePreprocessor();
22991
22998
  init_vueCompileCache();
@@ -23058,7 +23065,7 @@ __export(exports_workerPool, {
23058
23065
  resolveBuildWorkerCount: () => resolveBuildWorkerCount,
23059
23066
  resolveBuildWorkerEntry: () => resolveBuildWorkerEntry
23060
23067
  });
23061
- import { existsSync as existsSync33, readFileSync as readFileSync31 } from "fs";
23068
+ import { existsSync as existsSync32, readFileSync as readFileSync31 } from "fs";
23062
23069
  import { availableParallelism, freemem } from "os";
23063
23070
  import { dirname as dirname24, join as join43 } from "path";
23064
23071
  import { pathToFileURL as pathToFileURL3 } from "url";
@@ -23078,7 +23085,7 @@ var MIN_WORKERS = 2, MAX_DEFAULT_WORKERS = 8, MAX_OVERRIDE_WORKERS = 64, WORKER_
23078
23085
  return Math.max(MIN_WORKERS, Math.min(byCpu, byMemory));
23079
23086
  }, isOwnPackageRoot = (dir) => {
23080
23087
  const packageFile = join43(dir, "package.json");
23081
- if (!existsSync33(packageFile))
23088
+ if (!existsSync32(packageFile))
23082
23089
  return false;
23083
23090
  try {
23084
23091
  const pkg = JSON.parse(readFileSync31(packageFile, "utf-8"));
@@ -23105,7 +23112,7 @@ var MIN_WORKERS = 2, MAX_DEFAULT_WORKERS = 8, MAX_OVERRIDE_WORKERS = 64, WORKER_
23105
23112
  const sourceEntry = join43(root, "src", "build", "buildWorker.ts");
23106
23113
  const runningFromDist = fromDir.startsWith(join43(root, "dist"));
23107
23114
  const ordered = runningFromDist ? [distEntry, sourceEntry] : [sourceEntry, distEntry];
23108
- return ordered.find((candidate) => existsSync33(candidate)) ?? null;
23115
+ return ordered.find((candidate) => existsSync32(candidate)) ?? null;
23109
23116
  }, formatPercent = (ratio) => `${Math.round(ratio * PERCENT)}%`, createBuildWorkerPool = (options = {}) => {
23110
23117
  const size = options.size ?? resolveBuildWorkerCount();
23111
23118
  const entry = options.entry === undefined ? resolveBuildWorkerEntry() : options.entry;
@@ -23396,7 +23403,7 @@ __export(exports_compileVue, {
23396
23403
  generateVueHmrId: () => generateVueHmrId,
23397
23404
  vueHmrMetadata: () => vueHmrMetadata
23398
23405
  });
23399
- import { existsSync as existsSync34 } from "fs";
23406
+ import { existsSync as existsSync33 } from "fs";
23400
23407
  import { mkdir as mkdir11 } from "fs/promises";
23401
23408
  import {
23402
23409
  basename as basename14,
@@ -23410,11 +23417,11 @@ var {file: file4, write: write4 } = globalThis.Bun;
23410
23417
  var resolveDevClientDir3 = () => {
23411
23418
  const projectRoot = process.cwd();
23412
23419
  const fromSource = resolve34(import.meta.dir, "../dev/client");
23413
- if (existsSync34(fromSource) && fromSource.startsWith(projectRoot)) {
23420
+ if (existsSync33(fromSource) && fromSource.startsWith(projectRoot)) {
23414
23421
  return fromSource;
23415
23422
  }
23416
23423
  const fromNodeModules = resolve34(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
23417
- if (existsSync34(fromNodeModules))
23424
+ if (existsSync33(fromNodeModules))
23418
23425
  return fromNodeModules;
23419
23426
  return resolve34(import.meta.dir, "./dev/client");
23420
23427
  }, devClientDir3, hmrClientPath4, scriptCache, scriptSetupCache, templateCache, styleCache, persistentBuildCache, vueSourceHashCache, vueHmrMetadata, clearVueHmrCaches = () => {
@@ -23467,10 +23474,10 @@ var resolveDevClientDir3 = () => {
23467
23474
  if (helper.endsWith(".ts"))
23468
23475
  return resolve34(sourceDir, helper);
23469
23476
  const direct = resolve34(sourceDir, `${helper}.ts`);
23470
- if (existsSync34(direct))
23477
+ if (existsSync33(direct))
23471
23478
  return direct;
23472
23479
  const indexed = resolve34(sourceDir, helper, "index.ts");
23473
- if (existsSync34(indexed))
23480
+ if (existsSync33(indexed))
23474
23481
  return indexed;
23475
23482
  return direct;
23476
23483
  }, HELPER_JOB_MIN_BATCH = 24, runHelperEmit = async (files) => {
@@ -23600,7 +23607,7 @@ var resolveDevClientDir3 = () => {
23600
23607
  const contentHash = Bun.hash(sourceContent).toString(BASE_36_RADIX);
23601
23608
  const prevHash = vueSourceHashCache.get(sourceFilePath);
23602
23609
  const persistent = persistentBuildCache.get(sourceFilePath);
23603
- if (prevHash === contentHash && persistent && existsSync34(persistent.clientPath) && existsSync34(persistent.serverPath)) {
23610
+ if (prevHash === contentHash && persistent && existsSync33(persistent.clientPath) && existsSync33(persistent.serverPath)) {
23604
23611
  cacheMap.set(sourceFilePath, persistent);
23605
23612
  return persistent;
23606
23613
  }
@@ -23760,7 +23767,7 @@ var resolveDevClientDir3 = () => {
23760
23767
  const routes = parseVueSpaRoutes(descriptor.script?.content ?? "");
23761
23768
  for (const { importPath } of routes) {
23762
23769
  const childPath = resolve34(dirname25(entryPath), importPath);
23763
- if (expanded.has(childPath) || !existsSync34(childPath)) {
23770
+ if (expanded.has(childPath) || !existsSync33(childPath)) {
23764
23771
  continue;
23765
23772
  }
23766
23773
  expanded.add(childPath);
@@ -23967,7 +23974,7 @@ var resolveDevClientDir3 = () => {
23967
23974
  }));
23968
23975
  vueCompileProfile.stagePagesMs = performance.now() - stageStartedAt;
23969
23976
  stageStartedAt = performance.now();
23970
- const helperDependencies = (tsPath, sourceCode) => extractImports(sourceCode).filter((dep) => dep.startsWith(".") && !isStylePath(dep) && !dep.endsWith(".vue")).map((dep) => resolveHelperTsPath(dirname25(tsPath), dep)).filter((resolved) => existsSync34(resolved) && !allTsHelperPaths.has(resolved));
23977
+ const helperDependencies = (tsPath, sourceCode) => extractImports(sourceCode).filter((dep) => dep.startsWith(".") && !isStylePath(dep) && !dep.endsWith(".vue")).map((dep) => resolveHelperTsPath(dirname25(tsPath), dep)).filter((resolved) => existsSync33(resolved) && !allTsHelperPaths.has(resolved));
23971
23978
  const readHelperWave = (paths) => Promise.all(paths.map((tsPath) => file4(tsPath).text().then((sourceCode) => helperDependencies(tsPath, sourceCode)).catch(() => [])));
23972
23979
  const expandHelpers = async (frontier) => {
23973
23980
  if (frontier.length === 0)
@@ -24539,7 +24546,7 @@ __export(exports_compileAngular, {
24539
24546
  compileAngularFiles: () => compileAngularFiles,
24540
24547
  invalidateAngularJitCache: () => invalidateAngularJitCache
24541
24548
  });
24542
- import { existsSync as existsSync35, readFileSync as readFileSync32, promises as fs5 } from "fs";
24549
+ import { existsSync as existsSync34, readFileSync as readFileSync32, promises as fs5 } from "fs";
24543
24550
  import { join as join45, basename as basename15, sep as sep5, dirname as dirname26, resolve as resolve35, relative as relative19 } from "path";
24544
24551
  var {Glob: Glob6 } = globalThis.Bun;
24545
24552
  import ts18 from "typescript";
@@ -24596,7 +24603,7 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path2, content) =>
24596
24603
  join45(candidate, "index.js"),
24597
24604
  join45(candidate, "index.jsx")
24598
24605
  ];
24599
- return candidates.find((file5) => existsSync35(file5));
24606
+ return candidates.find((file5) => existsSync34(file5));
24600
24607
  }, createLegacyAngularAnimationUsageResolver = (rootDir) => {
24601
24608
  const baseDir = resolve35(rootDir);
24602
24609
  const tsconfigAliases = readTsconfigPathAliases();
@@ -24677,11 +24684,11 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path2, content) =>
24677
24684
  }, resolveDevClientDir4 = () => {
24678
24685
  const projectRoot = process.cwd();
24679
24686
  const fromSource = resolve35(import.meta.dir, "../dev/client");
24680
- if (existsSync35(fromSource) && fromSource.startsWith(projectRoot)) {
24687
+ if (existsSync34(fromSource) && fromSource.startsWith(projectRoot)) {
24681
24688
  return fromSource;
24682
24689
  }
24683
24690
  const fromNodeModules = resolve35(projectRoot, "node_modules/@absolutejs/absolute/dist/dev/client");
24684
- if (existsSync35(fromNodeModules))
24691
+ if (existsSync34(fromNodeModules))
24685
24692
  return fromNodeModules;
24686
24693
  return resolve35(import.meta.dir, "./dev/client");
24687
24694
  }, devClientDir4, hmrClientPath5, formatDiagnosticMessage = (diagnostic) => {
@@ -24727,11 +24734,11 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path2, content) =>
24727
24734
  return `${path2}${query}`;
24728
24735
  const importerDir = dirname26(importerOutputPath);
24729
24736
  const fileCandidate = resolve35(importerDir, `${path2}.js`);
24730
- if (outputFiles?.has(fileCandidate) || existsSync35(fileCandidate)) {
24737
+ if (outputFiles?.has(fileCandidate) || existsSync34(fileCandidate)) {
24731
24738
  return `${path2}.js${query}`;
24732
24739
  }
24733
24740
  const indexCandidate = resolve35(importerDir, path2, "index.js");
24734
- if (outputFiles?.has(indexCandidate) || existsSync35(indexCandidate)) {
24741
+ if (outputFiles?.has(indexCandidate) || existsSync34(indexCandidate)) {
24735
24742
  return `${path2}/index.js${query}`;
24736
24743
  }
24737
24744
  return `${path2}.js${query}`;
@@ -24769,7 +24776,7 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path2, content) =>
24769
24776
  join45(basePath, "index.mts"),
24770
24777
  join45(basePath, "index.cts")
24771
24778
  ];
24772
- return candidates.map((candidate) => resolve35(candidate)).find((candidate) => existsSync35(candidate) && !candidate.endsWith(".d.ts")) ?? null;
24779
+ return candidates.map((candidate) => resolve35(candidate)).find((candidate) => existsSync34(candidate) && !candidate.endsWith(".d.ts")) ?? null;
24773
24780
  }, readFileForAotTransform = async (fileName, readFile8) => {
24774
24781
  const hostSource = readFile8?.(fileName);
24775
24782
  if (typeof hostSource === "string")
@@ -24850,7 +24857,7 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path2, content) =>
24850
24857
  if (visited.has(resolvedPath))
24851
24858
  return;
24852
24859
  visited.add(resolvedPath);
24853
- if (!existsSync35(resolvedPath) || resolvedPath.endsWith(".d.ts"))
24860
+ if (!existsSync34(resolvedPath) || resolvedPath.endsWith(".d.ts"))
24854
24861
  return;
24855
24862
  stats.filesVisited += 1;
24856
24863
  const source = await readFileForAotTransform(resolvedPath, readFile8);
@@ -25024,7 +25031,7 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path2, content) =>
25024
25031
  return null;
25025
25032
  }, resolveAngularDeferImportSpecifier = () => {
25026
25033
  const sourceEntry = resolve35(import.meta.dir, "../angular/components/index.ts");
25027
- if (existsSync35(sourceEntry)) {
25034
+ if (existsSync34(sourceEntry)) {
25028
25035
  return sourceEntry.replace(/\\/g, "/");
25029
25036
  }
25030
25037
  return "@absolutejs/absolute/angular/components";
@@ -25152,7 +25159,7 @@ ${slot.resolvedBindings.map((binding) => ` "${binding.key}": this.__absoluteDef
25152
25159
  ${fields}
25153
25160
  `);
25154
25161
  }, readAndEscapeFile = async (filePath, stylePreprocessors) => {
25155
- if (!existsSync35(filePath)) {
25162
+ if (!existsSync34(filePath)) {
25156
25163
  throw new Error(`Unable to inline Angular style resource: file not found at ${filePath}`);
25157
25164
  }
25158
25165
  const content = await compileStyleFileIfNeeded(filePath, stylePreprocessors);
@@ -25161,7 +25168,7 @@ ${fields}
25161
25168
  const templateUrlMatch = findUncommentedMatch(source, /templateUrl\s*:\s*['"]([^'"]+)['"]/);
25162
25169
  if (templateUrlMatch?.[1]) {
25163
25170
  const templatePath = join45(fileDir, templateUrlMatch[1]);
25164
- if (!existsSync35(templatePath)) {
25171
+ if (!existsSync34(templatePath)) {
25165
25172
  throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
25166
25173
  }
25167
25174
  const templateRaw2 = await fs5.readFile(templatePath, "utf-8");
@@ -25192,7 +25199,7 @@ ${fields}
25192
25199
  const templateUrlMatch = findUncommentedMatch(source, /templateUrl\s*:\s*['"]([^'"]+)['"]/);
25193
25200
  if (templateUrlMatch?.[1]) {
25194
25201
  const templatePath = join45(fileDir, templateUrlMatch[1]);
25195
- if (!existsSync35(templatePath)) {
25202
+ if (!existsSync34(templatePath)) {
25196
25203
  throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
25197
25204
  }
25198
25205
  const templateRaw2 = readFileSync32(templatePath, "utf-8");
@@ -25340,7 +25347,7 @@ ${fields}
25340
25347
  join45(candidate, "index.js"),
25341
25348
  join45(candidate, "index.jsx")
25342
25349
  ];
25343
- return candidates.find((file5) => existsSync35(file5));
25350
+ return candidates.find((file5) => existsSync34(file5));
25344
25351
  };
25345
25352
  const resolveLocalImport = (specifier, fromDir) => {
25346
25353
  if (specifier.startsWith(".") || specifier.startsWith("/")) {
@@ -25415,7 +25422,7 @@ ${fields}
25415
25422
  if (visited.has(resolved))
25416
25423
  return;
25417
25424
  visited.add(resolved);
25418
- if (resolved.endsWith(".json") && existsSync35(resolved)) {
25425
+ if (resolved.endsWith(".json") && existsSync34(resolved)) {
25419
25426
  const inputDir2 = dirname26(resolved);
25420
25427
  const relativeDir2 = inputDir2.startsWith(baseDir) ? inputDir2.substring(baseDir.length + 1) : inputDir2;
25421
25428
  const targetDir2 = join45(outDir, relativeDir2);
@@ -25428,7 +25435,7 @@ ${fields}
25428
25435
  let actualPath = resolved;
25429
25436
  if (!actualPath.endsWith(".ts"))
25430
25437
  actualPath += ".ts";
25431
- if (!existsSync35(actualPath))
25438
+ if (!existsSync34(actualPath))
25432
25439
  return;
25433
25440
  let sourceCode = await fs5.readFile(actualPath, "utf-8");
25434
25441
  const inlined = await inlineResources(sourceCode, dirname26(actualPath), stylePreprocessors);
@@ -25466,7 +25473,7 @@ ${fields}
25466
25473
  const isEntry = resolve35(actualPath) === resolve35(entryPath);
25467
25474
  const contentHash = Bun.hash(sourceCode).toString(BASE_36_RADIX);
25468
25475
  const cacheKey3 = actualPath;
25469
- const shouldWriteFile = cacheBuster && isEntry ? true : jitContentCache.get(cacheKey3) !== contentHash || !existsSync35(targetPath);
25476
+ const shouldWriteFile = cacheBuster && isEntry ? true : jitContentCache.get(cacheKey3) !== contentHash || !existsSync34(targetPath);
25470
25477
  if (shouldWriteFile) {
25471
25478
  const processedContent = transpileAndRewrite(sourceCode, relativeDir, actualPath, importRewrites);
25472
25479
  const preservedInjection = await readPreservedInjection(targetPath);
@@ -25479,7 +25486,7 @@ ${fields}
25479
25486
  };
25480
25487
  await transpileFile(inputPath);
25481
25488
  const entryOutputPath = toOutputPath(entryPath);
25482
- if (existsSync35(entryOutputPath)) {
25489
+ if (existsSync34(entryOutputPath)) {
25483
25490
  const entryOutput = await fs5.readFile(entryOutputPath, "utf-8");
25484
25491
  const withoutLegacyFlag = entryOutput.replace(/\nexport const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;\n?/g, `
25485
25492
  `);
@@ -25505,7 +25512,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
25505
25512
  await traceAngularPhase("aot/copy-json-resources", async () => {
25506
25513
  const cwd = process.cwd();
25507
25514
  const angularSrcDir = resolve35(outRoot);
25508
- if (!existsSync35(angularSrcDir))
25515
+ if (!existsSync34(angularSrcDir))
25509
25516
  return;
25510
25517
  const jsonGlob = new Glob6("**/*.json");
25511
25518
  for (const rel of jsonGlob.scanSync({
@@ -25540,15 +25547,15 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
25540
25547
  ...candidatePaths.map((file5) => resolve35(file5)),
25541
25548
  ...compiledFallbackPaths
25542
25549
  ];
25543
- let candidate = normalizedCandidates.find((file5) => existsSync35(file5) && file5.endsWith(`${sep5}${relativeEntry}`));
25550
+ let candidate = normalizedCandidates.find((file5) => existsSync34(file5) && file5.endsWith(`${sep5}${relativeEntry}`));
25544
25551
  if (!candidate) {
25545
- candidate = normalizedCandidates.find((file5) => existsSync35(file5) && file5.endsWith(`${sep5}pages${sep5}${jsName}`));
25552
+ candidate = normalizedCandidates.find((file5) => existsSync34(file5) && file5.endsWith(`${sep5}pages${sep5}${jsName}`));
25546
25553
  }
25547
25554
  if (!candidate) {
25548
- candidate = normalizedCandidates.find((file5) => existsSync35(file5) && file5.endsWith(`${sep5}${jsName}`));
25555
+ candidate = normalizedCandidates.find((file5) => existsSync34(file5) && file5.endsWith(`${sep5}${jsName}`));
25549
25556
  }
25550
25557
  if (!candidate) {
25551
- candidate = normalizedCandidates.find((file5) => existsSync35(file5));
25558
+ candidate = normalizedCandidates.find((file5) => existsSync34(file5));
25552
25559
  }
25553
25560
  return candidate;
25554
25561
  };
@@ -25556,11 +25563,11 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
25556
25563
  if (!rawServerFile) {
25557
25564
  rawServerFile = await traceAngularPhase("wrapper/resolve-server-output-fallback", () => resolveRawServerFile([]), { entry: resolvedEntry });
25558
25565
  }
25559
- if (rawServerFile && !existsSync35(rawServerFile)) {
25566
+ if (rawServerFile && !existsSync34(rawServerFile)) {
25560
25567
  outputs = hmr ? await compileEntry() : aotOutputs;
25561
25568
  rawServerFile = await traceAngularPhase("wrapper/resolve-server-output-retry", () => resolveRawServerFile(outputs), { entry: resolvedEntry });
25562
25569
  }
25563
- if (!rawServerFile || !existsSync35(rawServerFile)) {
25570
+ if (!rawServerFile || !existsSync34(rawServerFile)) {
25564
25571
  throw new Error(`Compiled output not found for ${entry}. Looking for: ${jsName}. Available: ${[
25565
25572
  ...outputs,
25566
25573
  ...compiledFallbackPaths
@@ -25596,7 +25603,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
25596
25603
  const serverContentHash = `${Bun.hash(original).toString(BASE_36_RADIX)}.${Bun.hash(providersHashInput).toString(BASE_36_RADIX)}`;
25597
25604
  const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
25598
25605
  const clientFile = join45(indexesDir, jsName);
25599
- if (hmr && cachedWrapper && cachedWrapper.serverHash === serverContentHash && existsSync35(clientFile) && (usesLegacyAnimations || !original.includes("__ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__")) && (!usesLegacyAnimations || original.includes("__ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__"))) {
25606
+ if (hmr && cachedWrapper && cachedWrapper.serverHash === serverContentHash && existsSync34(clientFile) && (usesLegacyAnimations || !original.includes("__ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__")) && (!usesLegacyAnimations || original.includes("__ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__"))) {
25600
25607
  return {
25601
25608
  clientPath: clientFile,
25602
25609
  indexUnchanged: true,
@@ -25899,7 +25906,7 @@ var init_compileAngular = __esm(() => {
25899
25906
 
25900
25907
  // node_modules/content-tag/pkg/node/content_tag.cjs
25901
25908
  var require_content_tag = __commonJS(function(exports, module) {
25902
- var __dirname = "/home/alexkahn/abs/absolutejs/.claude/worktrees/release/node_modules/content-tag/pkg/node";
25909
+ var __dirname = "/tmp/claude-1000/-home-alexkahn-onspark-absolutejs-dealroom/2bfd88db-2cb9-4088-8977-3c07598f96a5/scratchpad/absolute-release/node_modules/content-tag/pkg/node";
25903
25910
  var imports = {};
25904
25911
  imports["__wbindgen_placeholder__"] = exports;
25905
25912
  var wasm;
@@ -26344,7 +26351,7 @@ __export(exports_compileEmber, {
26344
26351
  getEmberCompiledRoot: () => getEmberCompiledRoot,
26345
26352
  getEmberServerCompiledDir: () => getEmberServerCompiledDir
26346
26353
  });
26347
- import { existsSync as existsSync36 } from "fs";
26354
+ import { existsSync as existsSync35 } from "fs";
26348
26355
  import { mkdir as mkdir12, rm as rm7 } from "fs/promises";
26349
26356
  import { basename as basename16, dirname as dirname27, extname as extname12, join as join46, resolve as resolve36 } from "path";
26350
26357
  var {build: bunBuild2, Transpiler: Transpiler5, write: write5, file: file5 } = globalThis.Bun;
@@ -26446,7 +26453,7 @@ export const importSync = (specifier) => {
26446
26453
  const extensionsToTry = ["", ".gts", ".gjs", ".ts", ".js"];
26447
26454
  for (const ext of extensionsToTry) {
26448
26455
  const candidate = candidateBase + ext;
26449
- if (existsSync36(candidate))
26456
+ if (existsSync35(candidate))
26450
26457
  return { path: candidate };
26451
26458
  }
26452
26459
  return;
@@ -26466,7 +26473,7 @@ export const importSync = (specifier) => {
26466
26473
  if (standalonePackages.has(args.path))
26467
26474
  return;
26468
26475
  const internal = join46(cwd, "node_modules/ember-source/dist/packages", args.path, "index.js");
26469
- if (existsSync36(internal))
26476
+ if (existsSync35(internal))
26470
26477
  return { path: internal };
26471
26478
  return;
26472
26479
  });
@@ -26596,7 +26603,7 @@ __export(exports_buildReactVendor, {
26596
26603
  buildReactVendor: () => buildReactVendor,
26597
26604
  computeVendorPaths: () => computeVendorPaths
26598
26605
  });
26599
- import { existsSync as existsSync37, mkdirSync as mkdirSync8 } from "fs";
26606
+ import { existsSync as existsSync36, mkdirSync as mkdirSync8 } from "fs";
26600
26607
  import { join as join47, resolve as resolve37 } from "path";
26601
26608
  import { rm as rm8 } from "fs/promises";
26602
26609
  var {build: bunBuild3 } = globalThis.Bun;
@@ -26610,7 +26617,7 @@ var resolveJsxDevRuntimeCompatPath = () => {
26610
26617
  resolve37(import.meta.dir, "..", "..", "src", "react", "jsxDevRuntimeCompat.ts")
26611
26618
  ];
26612
26619
  for (const candidate of candidates) {
26613
- if (existsSync37(candidate)) {
26620
+ if (existsSync36(candidate)) {
26614
26621
  return candidate.replace(/\\/g, "/");
26615
26622
  }
26616
26623
  }
@@ -27077,13 +27084,13 @@ var init_buildSvelteVendor = __esm(() => {
27077
27084
  import {
27078
27085
  copyFileSync as copyFileSync3,
27079
27086
  cpSync,
27080
- existsSync as existsSync38,
27087
+ existsSync as existsSync37,
27081
27088
  mkdirSync as mkdirSync12,
27082
27089
  readdirSync as readdirSync7,
27083
27090
  readFileSync as readFileSync33,
27084
27091
  renameSync,
27085
27092
  rmSync as rmSync2,
27086
- statSync as statSync4,
27093
+ statSync as statSync5,
27087
27094
  writeFileSync as writeFileSync10
27088
27095
  } from "fs";
27089
27096
  import { basename as basename17, dirname as dirname28, extname as extname13, join as join51, relative as relative20, resolve as resolve38 } from "path";
@@ -27254,7 +27261,7 @@ ${offenders.map((o3) => ` \u2022 ${o3}`).join(`
27254
27261
  }, SKIP_DIRS5, addWorkerPathIfExists = (file6, relPath, workerPaths) => {
27255
27262
  const absPath = resolve38(file6, "..", relPath);
27256
27263
  try {
27257
- statSync4(absPath);
27264
+ statSync5(absPath);
27258
27265
  workerPaths.add(absPath);
27259
27266
  } catch {}
27260
27267
  }, extractWorkerSpecifiers = (file6, patterns) => {
@@ -27343,7 +27350,7 @@ ${offenders.map((o3) => ` \u2022 ${o3}`).join(`
27343
27350
  copyVueDevIndexes(vueDir, vuePagesPath, vueEntries, devIndexDir);
27344
27351
  }
27345
27352
  }, copyReactDevIndexes = (reactIndexesPath, reactPagesPath, devIndexDir, readDir) => {
27346
- if (!existsSync38(reactIndexesPath)) {
27353
+ if (!existsSync37(reactIndexesPath)) {
27347
27354
  return;
27348
27355
  }
27349
27356
  const indexFiles = readDir(reactIndexesPath).filter((file6) => file6.endsWith(".tsx"));
@@ -27359,7 +27366,7 @@ ${offenders.map((o3) => ` \u2022 ${o3}`).join(`
27359
27366
  for (const entry of sveltePageEntries) {
27360
27367
  const name = basename17(entry).replace(/\.svelte(\.(ts|js))?$/, "");
27361
27368
  const indexFile = join51(svelteIndexDir, "pages", `${name}.js`);
27362
- if (!existsSync38(indexFile))
27369
+ if (!existsSync37(indexFile))
27363
27370
  continue;
27364
27371
  let content = readFileSync33(indexFile, "utf-8");
27365
27372
  const srcRel = relative20(process.cwd(), resolve38(entry)).replace(/\\/g, "/");
@@ -27372,7 +27379,7 @@ ${offenders.map((o3) => ` \u2022 ${o3}`).join(`
27372
27379
  for (const entry of vuePageEntries) {
27373
27380
  const name = basename17(entry, ".vue");
27374
27381
  const indexFile = join51(vueIndexDir, `${name}.js`);
27375
- if (!existsSync38(indexFile))
27382
+ if (!existsSync37(indexFile))
27376
27383
  continue;
27377
27384
  let content = readFileSync33(indexFile, "utf-8");
27378
27385
  const srcRel = relative20(process.cwd(), resolve38(entry)).replace(/\\/g, "/");
@@ -27384,7 +27391,7 @@ ${offenders.map((o3) => ` \u2022 ${o3}`).join(`
27384
27391
  for (const srcPath of urlReferencedFiles) {
27385
27392
  const rel = relative20(projectRoot, srcPath).replace(/\\/g, "/");
27386
27393
  const name = basename17(srcPath);
27387
- const mtime = Math.round(statSync4(srcPath).mtimeMs);
27394
+ const mtime = Math.round(statSync5(srcPath).mtimeMs);
27388
27395
  const url = `/@src/${rel}?v=${mtime}`;
27389
27396
  urlFileMap.set(name, url);
27390
27397
  urlFileMap.set(name.replace(/\.tsx?$/, ".js"), url);
@@ -28536,7 +28543,7 @@ ${offenders.map((o3) => ` \u2022 ${o3}`).join(`
28536
28543
  await tracePhase("postprocess/client-rewrite", rewriteClientGroups, clientRewriteStats);
28537
28544
  if (!hmr) {
28538
28545
  const reactVendorDir = join51(buildPath, "react", "vendor");
28539
- const vendorChunkPaths = existsSync38(reactVendorDir) ? [
28546
+ const vendorChunkPaths = existsSync37(reactVendorDir) ? [
28540
28547
  ...new Glob8("**/*.js").scanSync({
28541
28548
  absolute: true,
28542
28549
  cwd: reactVendorDir
@@ -28944,7 +28951,7 @@ var init_build = __esm(() => {
28944
28951
  });
28945
28952
 
28946
28953
  // src/build/buildEmberVendor.ts
28947
- import { mkdirSync as mkdirSync13, existsSync as existsSync39 } from "fs";
28954
+ import { mkdirSync as mkdirSync13, existsSync as existsSync38 } from "fs";
28948
28955
  import { join as join52 } from "path";
28949
28956
  import { rm as rm12 } from "fs/promises";
28950
28957
  var {build: bunBuild8 } = globalThis.Bun;
@@ -28998,7 +29005,7 @@ export const importSync = (specifier) => {
28998
29005
  return { resolveTo: specifier, specifier };
28999
29006
  }
29000
29007
  const emberInternalPath = join52(cwd2, "node_modules/ember-source/dist/packages", specifier, "index.js");
29001
- if (!existsSync39(emberInternalPath)) {
29008
+ if (!existsSync38(emberInternalPath)) {
29002
29009
  throw new Error(`Ember vendor build: cannot find ${specifier} at ${emberInternalPath}. ` + `Is ember-source installed and at least 6.12?`);
29003
29010
  }
29004
29011
  return { resolveTo: emberInternalPath, specifier };
@@ -29030,7 +29037,7 @@ export const importSync = (specifier) => {
29030
29037
  return;
29031
29038
  }
29032
29039
  const internal = join52(cwd2, "node_modules/ember-source/dist/packages", args.path, "index.js");
29033
- if (existsSync39(internal)) {
29040
+ if (existsSync38(internal)) {
29034
29041
  return { path: internal };
29035
29042
  }
29036
29043
  return;
@@ -29202,7 +29209,7 @@ __export(exports_dependencyGraph, {
29202
29209
  getAffectedFiles: () => getAffectedFiles,
29203
29210
  removeFileFromGraph: () => removeFileFromGraph
29204
29211
  });
29205
- import { existsSync as existsSync40, readFileSync as readFileSync34 } from "fs";
29212
+ import { existsSync as existsSync39, readFileSync as readFileSync34 } from "fs";
29206
29213
  var {Glob: Glob9 } = globalThis.Bun;
29207
29214
  import { resolve as resolve39 } from "path";
29208
29215
  var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath) => {
@@ -29232,10 +29239,10 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
29232
29239
  ];
29233
29240
  for (const ext of extensions) {
29234
29241
  const withExt = normalized + ext;
29235
- if (existsSync40(withExt))
29242
+ if (existsSync39(withExt))
29236
29243
  return withExt;
29237
29244
  }
29238
- if (existsSync40(normalized))
29245
+ if (existsSync39(normalized))
29239
29246
  return normalized;
29240
29247
  return null;
29241
29248
  }, clearExistingDependents = (graph, normalizedPath) => {
@@ -29250,7 +29257,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
29250
29257
  }
29251
29258
  }, addFileToGraph = (graph, filePath) => {
29252
29259
  const normalizedPath = resolve39(filePath);
29253
- if (!existsSync40(normalizedPath))
29260
+ if (!existsSync39(normalizedPath))
29254
29261
  return;
29255
29262
  const dependencies = extractDependencies(normalizedPath);
29256
29263
  clearExistingDependents(graph, normalizedPath);
@@ -29276,7 +29283,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
29276
29283
  }, IGNORED_SEGMENTS, buildInitialDependencyGraph = (graph, directories) => {
29277
29284
  const processedFiles = new Set;
29278
29285
  const glob = new Glob9("**/*.{ts,tsx,js,jsx,vue,svelte,html,htm}");
29279
- const resolvedDirs = directories.map((dir) => resolve39(dir)).filter((dir) => existsSync40(dir));
29286
+ const resolvedDirs = directories.map((dir) => resolve39(dir)).filter((dir) => existsSync39(dir));
29280
29287
  const allFiles = resolvedDirs.flatMap((dir) => Array.from(glob.scanSync({ absolute: true, cwd: dir })));
29281
29288
  for (const file6 of allFiles) {
29282
29289
  const fullPath = resolve39(file6);
@@ -29530,7 +29537,7 @@ var init_clientManager = __esm(() => {
29530
29537
  });
29531
29538
 
29532
29539
  // src/dev/pathUtils.ts
29533
- import { existsSync as existsSync41, readdirSync as readdirSync8, readFileSync as readFileSync35 } from "fs";
29540
+ import { existsSync as existsSync40, readdirSync as readdirSync8, readFileSync as readFileSync35 } from "fs";
29534
29541
  import { dirname as dirname29, resolve as resolve41 } from "path";
29535
29542
  var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
29536
29543
  if (shouldIgnorePath(filePath, resolved)) {
@@ -29704,7 +29711,7 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
29704
29711
  push(cfg.stylesDir);
29705
29712
  for (const candidate of ["src", "db", "assets", "styles"]) {
29706
29713
  const abs = normalizePath2(resolve41(cwd2, candidate));
29707
- if (existsSync41(abs) && !roots.includes(abs))
29714
+ if (existsSync40(abs) && !roots.includes(abs))
29708
29715
  roots.push(abs);
29709
29716
  }
29710
29717
  try {
@@ -29796,7 +29803,7 @@ var init_pathUtils = __esm(() => {
29796
29803
  });
29797
29804
 
29798
29805
  // src/dev/devPrescan.ts
29799
- import { existsSync as existsSync42, readdirSync as readdirSync9, rmSync as rmSync3 } from "fs";
29806
+ import { existsSync as existsSync41, readdirSync as readdirSync9, rmSync as rmSync3 } from "fs";
29800
29807
  import { mkdir as mkdir13, readFile as readFile8, rename as rename4, writeFile as writeFile10 } from "fs/promises";
29801
29808
  import { join as join53 } from "path";
29802
29809
  var PRESCAN_DIR, PAYLOAD_VERSION = 1, POLL_INTERVAL_MS = 10, DEFAULT_WAIT_MS = 2000, collectConfigVendorSourceDirs = (config) => Array.from(new Set([
@@ -29809,7 +29816,7 @@ var PRESCAN_DIR, PAYLOAD_VERSION = 1, POLL_INTERVAL_MS = 10, DEFAULT_WAIT_MS = 2
29809
29816
  ].filter((dir) => Boolean(dir)))), devPrescanEnabled = () => process.env.ABSOLUTE_DEV_PRESCAN === "1", sleep = (delayMs) => new Promise((resolve42) => {
29810
29817
  setTimeout(resolve42, delayMs);
29811
29818
  }), isPayload = (value) => typeof value === "object" && value !== null && ("version" in value) && value.version === PAYLOAD_VERSION, tryReadPrescan = async (path2) => {
29812
- if (!existsSync42(path2))
29819
+ if (!existsSync41(path2))
29813
29820
  return;
29814
29821
  try {
29815
29822
  const parsed = JSON.parse(await readFile8(path2, "utf8"));
@@ -29865,7 +29872,7 @@ var init_serverEntryCopies = () => {};
29865
29872
 
29866
29873
  // src/dev/fileWatcher.ts
29867
29874
  import { watch } from "fs";
29868
- import { existsSync as existsSync43, readdirSync as readdirSync10, statSync as statSync5 } from "fs";
29875
+ import { existsSync as existsSync42, readdirSync as readdirSync10, statSync as statSync6 } from "fs";
29869
29876
  import { dirname as dirname30, join as join54, resolve as resolve42 } from "path";
29870
29877
  var safeRemoveFromGraph = (graph, fullPath) => {
29871
29878
  try {
@@ -29901,7 +29908,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
29901
29908
  const child = join54(eventDir, name).replace(/\\/g, "/");
29902
29909
  let st2;
29903
29910
  try {
29904
- st2 = statSync5(child);
29911
+ st2 = statSync6(child);
29905
29912
  } catch {
29906
29913
  continue;
29907
29914
  }
@@ -29932,12 +29939,12 @@ var safeRemoveFromGraph = (graph, fullPath) => {
29932
29939
  if (shouldIgnorePath(fullPath, state.resolvedPaths)) {
29933
29940
  return;
29934
29941
  }
29935
- if (event === "rename" && !existsSync43(fullPath)) {
29942
+ if (event === "rename" && !existsSync42(fullPath)) {
29936
29943
  safeRemoveFromGraph(state.dependencyGraph, fullPath);
29937
29944
  onFileChange(fullPath);
29938
29945
  return;
29939
29946
  }
29940
- if (existsSync43(fullPath)) {
29947
+ if (existsSync42(fullPath)) {
29941
29948
  onFileChange(fullPath);
29942
29949
  safeAddToGraph(state.dependencyGraph, fullPath);
29943
29950
  }
@@ -29947,7 +29954,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
29947
29954
  const stylesDir = state.resolvedPaths?.stylesDir;
29948
29955
  paths.forEach((path2) => {
29949
29956
  const absolutePath = resolve42(path2).replace(/\\/g, "/");
29950
- if (!existsSync43(absolutePath)) {
29957
+ if (!existsSync42(absolutePath)) {
29951
29958
  return;
29952
29959
  }
29953
29960
  const isStylesDir = Boolean(stylesDir && absolutePath.startsWith(stylesDir));
@@ -29958,7 +29965,7 @@ var safeRemoveFromGraph = (graph, fullPath) => {
29958
29965
  const stylesDir = state.resolvedPaths?.stylesDir;
29959
29966
  watchPaths.forEach((path2) => {
29960
29967
  const absolutePath = resolve42(path2).replace(/\\/g, "/");
29961
- if (!existsSync43(absolutePath)) {
29968
+ if (!existsSync42(absolutePath)) {
29962
29969
  return;
29963
29970
  }
29964
29971
  const isStylesDir = Boolean(stylesDir && absolutePath.startsWith(stylesDir));
@@ -30424,7 +30431,7 @@ __export(exports_resolveOwningComponents, {
30424
30431
  resolveDescendantsOfParent: () => resolveDescendantsOfParent,
30425
30432
  resolveOwningComponents: () => resolveOwningComponents
30426
30433
  });
30427
- import { readdirSync as readdirSync11, readFileSync as readFileSync37, statSync as statSync6 } from "fs";
30434
+ import { readdirSync as readdirSync11, readFileSync as readFileSync37, statSync as statSync7 } from "fs";
30428
30435
  import { dirname as dirname32, extname as extname14, join as join55, resolve as resolve47 } from "path";
30429
30436
  import ts19 from "typescript";
30430
30437
  var ENTITY_DECORATORS, isAngularSourceFile = (file6) => file6.endsWith(".ts") || file6.endsWith(".tsx"), walkAngularSourceFiles = (root) => {
@@ -30559,7 +30566,7 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file6) => file6.endsWith(".ts") ||
30559
30566
  }
30560
30567
  let rootStat;
30561
30568
  try {
30562
- rootStat = statSync6(userAngularRoot);
30569
+ rootStat = statSync7(userAngularRoot);
30563
30570
  } catch {
30564
30571
  return out;
30565
30572
  }
@@ -30617,7 +30624,7 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file6) => file6.endsWith(".ts") ||
30617
30624
  const angularRootNorm = safeNormalize(angularRoot);
30618
30625
  for (const candidate of candidates) {
30619
30626
  try {
30620
- if (statSync6(candidate).isFile()) {
30627
+ if (statSync7(candidate).isFile()) {
30621
30628
  const norm = safeNormalize(candidate);
30622
30629
  if (!norm.startsWith(angularRootNorm))
30623
30630
  return null;
@@ -30674,7 +30681,7 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file6) => file6.endsWith(".ts") ||
30674
30681
  const norm = safeNormalize(params.changedFilePath);
30675
30682
  let rootStat;
30676
30683
  try {
30677
- rootStat = statSync6(params.userAngularRoot);
30684
+ rootStat = statSync7(params.userAngularRoot);
30678
30685
  } catch {
30679
30686
  return [];
30680
30687
  }
@@ -30911,7 +30918,7 @@ __export(exports_moduleServer, {
30911
30918
  warmPage: () => warmPage,
30912
30919
  warnIfReactFastRefreshUnsupported: () => warnIfReactFastRefreshUnsupported
30913
30920
  });
30914
- import { existsSync as existsSync44, readFileSync as readFileSync38, realpathSync as realpathSync3, statSync as statSync7 } from "fs";
30921
+ import { existsSync as existsSync43, readFileSync as readFileSync38, realpathSync as realpathSync3, statSync as statSync8 } from "fs";
30915
30922
  import { basename as basename19, dirname as dirname33, extname as extname15, join as join56, resolve as resolve48, relative as relative21 } from "path";
30916
30923
  var SRC_PREFIX = "/@src/", BROWSER_DEFINE, jsTranspiler2, legacyDecoratorTsconfig, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
30917
30924
  const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
@@ -30932,10 +30939,10 @@ var SRC_PREFIX = "/@src/", BROWSER_DEFINE, jsTranspiler2, legacyDecoratorTsconfi
30932
30939
  ${stubs}
30933
30940
  `;
30934
30941
  }, resolveRelativeExtension = (srcPath, projectRoot, extensions) => {
30935
- const directHit = extensions.find((ext) => existsSync44(resolve48(projectRoot, srcPath + ext)));
30942
+ const directHit = extensions.find((ext) => existsSync43(resolve48(projectRoot, srcPath + ext)));
30936
30943
  if (directHit)
30937
30944
  return srcPath + directHit;
30938
- const indexHit = extensions.find((ext) => existsSync44(resolve48(projectRoot, srcPath, `index${ext}`)));
30945
+ const indexHit = extensions.find((ext) => existsSync43(resolve48(projectRoot, srcPath, `index${ext}`)));
30939
30946
  if (indexHit)
30940
30947
  return `${srcPath}/index${indexHit}`;
30941
30948
  return srcPath;
@@ -30969,7 +30976,7 @@ ${stubs}
30969
30976
  if (cached !== undefined)
30970
30977
  return `${base}?v=${buildVersion(cached, absPath)}`;
30971
30978
  try {
30972
- const mtime = Math.round(statSync7(absPath).mtimeMs);
30979
+ const mtime = Math.round(statSync8(absPath).mtimeMs);
30973
30980
  mtimeCache.set(absPath, mtime);
30974
30981
  return `${base}?v=${buildVersion(mtime, absPath)}`;
30975
30982
  } catch {
@@ -31002,12 +31009,12 @@ ${stubs}
31002
31009
  if (!subpath) {
31003
31010
  const pkgDir = resolve48(projectRoot, "node_modules", packageName ?? "");
31004
31011
  const pkgJsonPath = join56(pkgDir, "package.json");
31005
- if (existsSync44(pkgJsonPath)) {
31012
+ if (existsSync43(pkgJsonPath)) {
31006
31013
  const pkg = JSON.parse(readFileSync38(pkgJsonPath, "utf-8"));
31007
31014
  const esmEntry = typeof pkg.module === "string" && pkg.module || typeof pkg.browser === "string" && pkg.browser;
31008
31015
  if (esmEntry) {
31009
31016
  const resolved = resolve48(pkgDir, esmEntry);
31010
- if (existsSync44(resolved))
31017
+ if (existsSync43(resolved))
31011
31018
  return relative21(projectRoot, resolved);
31012
31019
  }
31013
31020
  }
@@ -31371,9 +31378,9 @@ ${code2}`;
31371
31378
  const hasScript = descriptor.script || descriptor.scriptSetup;
31372
31379
  const compiledScript = hasScript ? vueCompiler.compileScript(descriptor, {
31373
31380
  fs: {
31374
- fileExists: existsSync44,
31381
+ fileExists: isFile,
31375
31382
  realpath: realpathSync3,
31376
- readFile: (file6) => existsSync44(file6) ? readFileSync38(file6, "utf-8") : undefined
31383
+ readFile: (file6) => isFile(file6) ? readFileSync38(file6, "utf-8") : undefined
31377
31384
  },
31378
31385
  id: componentId,
31379
31386
  inlineTemplate: false
@@ -31403,11 +31410,11 @@ ${code2}`;
31403
31410
  `);
31404
31411
  return result;
31405
31412
  }, resolveSvelteModulePath = (path2) => {
31406
- if (existsSync44(path2))
31413
+ if (existsSync43(path2))
31407
31414
  return path2;
31408
- if (existsSync44(`${path2}.ts`))
31415
+ if (existsSync43(`${path2}.ts`))
31409
31416
  return `${path2}.ts`;
31410
- if (existsSync44(`${path2}.js`))
31417
+ if (existsSync43(`${path2}.js`))
31411
31418
  return `${path2}.js`;
31412
31419
  return path2;
31413
31420
  }, jsResponse = (body) => {
@@ -31555,7 +31562,7 @@ export default {};
31555
31562
  return { ext, filePath: resolveSvelteModulePath(filePath) };
31556
31563
  if (ext)
31557
31564
  return { ext, filePath };
31558
- const found = MODULE_EXTENSIONS.find((candidate) => existsSync44(filePath + candidate));
31565
+ const found = MODULE_EXTENSIONS.find((candidate) => existsSync43(filePath + candidate));
31559
31566
  if (!found)
31560
31567
  return { ext, filePath };
31561
31568
  const resolved = filePath + found;
@@ -31623,7 +31630,7 @@ export default {};
31623
31630
  return transformAndCacheVue(filePath, projectRoot, rewriter, vueDir, stylePreprocessors);
31624
31631
  if (!TRANSPILABLE.has(ext))
31625
31632
  return;
31626
- const stat4 = statSync7(filePath);
31633
+ const stat4 = statSync8(filePath);
31627
31634
  const resolvedVueDir = vueDir ? resolve48(vueDir) : undefined;
31628
31635
  let content = REACT_EXTENSIONS.has(ext) ? transformReactFile(filePath, projectRoot, rewriter) : transformPlainFile(filePath, projectRoot, rewriter, resolvedVueDir);
31629
31636
  const isAngularGeneratedJs = ext === ".js" && filePath.replace(/\\/g, "/").includes("/.absolutejs/generated/angular/");
@@ -31651,12 +31658,12 @@ export default {};
31651
31658
  cachedAngularUserRoot = configuredAngularUserRoot ?? null;
31652
31659
  return cachedAngularUserRoot;
31653
31660
  }, configuredAngularUserRoot, transformAndCacheSvelte = async (filePath, projectRoot, rewriter, stylePreprocessors) => {
31654
- const stat4 = statSync7(filePath);
31661
+ const stat4 = statSync8(filePath);
31655
31662
  const content = await transformSvelteFile(filePath, projectRoot, rewriter, stylePreprocessors);
31656
31663
  setTransformed(filePath, content, stat4.mtimeMs, extractImportedFiles(content, projectRoot));
31657
31664
  return jsResponse(content);
31658
31665
  }, transformAndCacheVue = async (filePath, projectRoot, rewriter, vueDir, stylePreprocessors) => {
31659
- const stat4 = statSync7(filePath);
31666
+ const stat4 = statSync8(filePath);
31660
31667
  const content = await transformVueFile(filePath, projectRoot, rewriter, vueDir, stylePreprocessors);
31661
31668
  setTransformed(filePath, content, stat4.mtimeMs, extractImportedFiles(content, projectRoot));
31662
31669
  return jsResponse(content);
@@ -31817,6 +31824,7 @@ var init_moduleServer = __esm(() => {
31817
31824
  init_resolvePackageImport();
31818
31825
  init_vueAutoRouterTransform();
31819
31826
  init_sourceMetadata();
31827
+ init_isFile();
31820
31828
  init_stylePreprocessor();
31821
31829
  init_lowerAwaitSlotSyntax();
31822
31830
  init_lowerIslandSyntax();
@@ -32283,7 +32291,7 @@ __export(exports_rebuildTrigger, {
32283
32291
  queueFileChange: () => queueFileChange,
32284
32292
  triggerRebuild: () => triggerRebuild
32285
32293
  });
32286
- import { existsSync as existsSync45, readdirSync as readdirSync12, rmSync as rmSync4, statSync as statSync8 } from "fs";
32294
+ import { existsSync as existsSync44, readdirSync as readdirSync12, rmSync as rmSync4, statSync as statSync9 } from "fs";
32287
32295
  import {
32288
32296
  basename as basename20,
32289
32297
  dirname as dirname35,
@@ -32397,7 +32405,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
32397
32405
  detectedFw = detected !== "ignored" ? detected : affectedFrameworks[0];
32398
32406
  }
32399
32407
  return { ...parsed, framework: detectedFw };
32400
- }, isValidDeletedAffectedFile = (affectedFile, deletedPathResolved, processedFiles) => affectedFile !== deletedPathResolved && !processedFiles.has(affectedFile) && existsSync45(affectedFile), FRAMEWORK_DIR_KEYS_FOR_CLEANUP, removeStaleGenerated = (state, deletedFile) => {
32408
+ }, isValidDeletedAffectedFile = (affectedFile, deletedPathResolved, processedFiles) => affectedFile !== deletedPathResolved && !processedFiles.has(affectedFile) && existsSync44(affectedFile), FRAMEWORK_DIR_KEYS_FOR_CLEANUP, removeStaleGenerated = (state, deletedFile) => {
32401
32409
  const { config } = state;
32402
32410
  const cwd2 = process.cwd();
32403
32411
  const absDeleted = resolvePath(deletedFile).replace(/\\/g, "/");
@@ -32443,7 +32451,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
32443
32451
  if (!dependents || dependents.size === 0) {
32444
32452
  return;
32445
32453
  }
32446
- const dependentFiles = Array.from(dependents).filter((file6) => existsSync45(file6));
32454
+ const dependentFiles = Array.from(dependents).filter((file6) => existsSync44(file6));
32447
32455
  if (dependentFiles.length === 0) {
32448
32456
  return;
32449
32457
  }
@@ -32459,7 +32467,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
32459
32467
  try {
32460
32468
  const affectedFiles = getAffectedFiles(state.dependencyGraph, normalizedFilePath);
32461
32469
  affectedFiles.forEach((affectedFile) => {
32462
- if (!processedFiles.has(affectedFile) && affectedFile !== normalizedFilePath && existsSync45(affectedFile)) {
32470
+ if (!processedFiles.has(affectedFile) && affectedFile !== normalizedFilePath && existsSync44(affectedFile)) {
32463
32471
  validFiles.push(affectedFile);
32464
32472
  processedFiles.add(affectedFile);
32465
32473
  }
@@ -32484,7 +32492,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
32484
32492
  collectChangedFileAffected(state, normalizedFilePath, processedFiles, validFiles);
32485
32493
  }, processFilePathSet = (state, filePathSet, processedFiles, validFiles) => {
32486
32494
  filePathSet.forEach((filePathInSet) => {
32487
- if (!existsSync45(filePathInSet)) {
32495
+ if (!existsSync44(filePathInSet)) {
32488
32496
  collectDeletedFileAffected(state, filePathInSet, processedFiles, validFiles);
32489
32497
  return;
32490
32498
  }
@@ -32749,7 +32757,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
32749
32757
  return componentFile;
32750
32758
  }
32751
32759
  const tsCounterpart = componentFile.replace(/\.html$/, ".ts");
32752
- if (existsSync45(tsCounterpart)) {
32760
+ if (existsSync44(tsCounterpart)) {
32753
32761
  return tsCounterpart;
32754
32762
  }
32755
32763
  if (!graph)
@@ -33430,7 +33438,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
33430
33438
  return url;
33431
33439
  }, getReactModuleUrl, isReactComponentPath = (file6) => file6.endsWith(".tsx") || file6.endsWith(".jsx"), isReactPagePath = (file6) => file6.replace(/\\/g, "/").includes("/pages/"), isImportableModule = (file6) => {
33432
33440
  try {
33433
- return statSync8(file6).isFile();
33441
+ return statSync9(file6).isFile();
33434
33442
  } catch {
33435
33443
  return false;
33436
33444
  }
@@ -33677,7 +33685,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
33677
33685
  }
33678
33686
  return ctx;
33679
33687
  }, runSvelteBundleRebuild = async (state, svelteFiles, config) => {
33680
- const existingSvelteFiles = svelteFiles.filter((file6) => existsSync45(file6));
33688
+ const existingSvelteFiles = svelteFiles.filter((file6) => existsSync44(file6));
33681
33689
  if (existingSvelteFiles.length === 0)
33682
33690
  return;
33683
33691
  const svelteDir = config.svelteDirectory ?? "";
@@ -35406,7 +35414,7 @@ __export(exports_vendorCache, {
35406
35414
  import { createHash as createHash8 } from "crypto";
35407
35415
  import {
35408
35416
  copyFileSync as copyFileSync4,
35409
- existsSync as existsSync46,
35417
+ existsSync as existsSync45,
35410
35418
  mkdirSync as mkdirSync15,
35411
35419
  readdirSync as readdirSync13,
35412
35420
  readFileSync as readFileSync39
@@ -35440,7 +35448,7 @@ var CACHE_ROOT2, CACHE_FORMAT_VERSION3 = 1, KEY_LENGTH = 32, LOCKFILES, computeV
35440
35448
  let found = false;
35441
35449
  for (const name of LOCKFILES) {
35442
35450
  const path2 = join59(projectRoot, name);
35443
- if (!existsSync46(path2))
35451
+ if (!existsSync45(path2))
35444
35452
  continue;
35445
35453
  found = true;
35446
35454
  hash.update(name);
@@ -35460,21 +35468,21 @@ var CACHE_ROOT2, CACHE_FORMAT_VERSION3 = 1, KEY_LENGTH = 32, LOCKFILES, computeV
35460
35468
  }, copySlotsInto = (cacheDir2, vendorDirs) => {
35461
35469
  for (const [index, dir] of vendorDirs.entries()) {
35462
35470
  const source = join59(cacheDir2, slotName(index, dir));
35463
- if (!existsSync46(source)) {
35471
+ if (!existsSync45(source)) {
35464
35472
  throw new Error(`missing cached vendor dir ${source}`);
35465
35473
  }
35466
35474
  copyTree(source, dir);
35467
35475
  }
35468
35476
  }, copySlotsFrom = (stagingDir, vendorDirs) => {
35469
35477
  for (const [index, dir] of vendorDirs.entries()) {
35470
- if (!existsSync46(dir))
35478
+ if (!existsSync45(dir))
35471
35479
  continue;
35472
35480
  copyTree(dir, join59(stagingDir, slotName(index, dir)));
35473
35481
  }
35474
35482
  }, isVendorCachePayload = (value) => typeof value === "object" && value !== null && typeof Reflect.get(value, "depPaths") === "object", cacheDirFor = (key, projectRoot) => resolve52(projectRoot, CACHE_ROOT2, key), slotName = (index, dir) => `${index}-${basename21(resolve52(dir, ".."))}`, restoreVendorCache = async (key, vendorDirs, projectRoot = process.cwd()) => {
35475
35483
  const cacheDir2 = cacheDirFor(key, projectRoot);
35476
35484
  const payloadPath = join59(cacheDir2, "payload.json");
35477
- if (!existsSync46(payloadPath))
35485
+ if (!existsSync45(payloadPath))
35478
35486
  return null;
35479
35487
  try {
35480
35488
  const payload = JSON.parse(await readFile10(payloadPath, "utf8"));
@@ -35487,7 +35495,7 @@ var CACHE_ROOT2, CACHE_FORMAT_VERSION3 = 1, KEY_LENGTH = 32, LOCKFILES, computeV
35487
35495
  }
35488
35496
  }, saveVendorCache = async (key, vendorDirs, payload, projectRoot = process.cwd()) => {
35489
35497
  const cacheDir2 = cacheDirFor(key, projectRoot);
35490
- if (existsSync46(join59(cacheDir2, "payload.json")))
35498
+ if (existsSync45(join59(cacheDir2, "payload.json")))
35491
35499
  return;
35492
35500
  const stagingDir = `${cacheDir2}.${process.pid}.tmp`;
35493
35501
  try {
@@ -35522,7 +35530,7 @@ __export(exports_devBuild, {
35522
35530
  devBuild: () => devBuild
35523
35531
  });
35524
35532
  import { readdir as readdir5 } from "fs/promises";
35525
- import { existsSync as existsSync47, statSync as statSync9 } from "fs";
35533
+ import { existsSync as existsSync46, statSync as statSync10 } from "fs";
35526
35534
  import { resolve as resolve53 } from "path";
35527
35535
  var FRAMEWORK_DIR_KEYS, devClientVendorSourceDir = () => resolve53(import.meta.dir, "../dev/client"), collectDepVendorSourceDirs = (config) => {
35528
35536
  const configuredDirs = [
@@ -35662,7 +35670,7 @@ var FRAMEWORK_DIR_KEYS, devClientVendorSourceDir = () => resolve53(import.meta.d
35662
35670
  });
35663
35671
  }
35664
35672
  }, handleCachedReload = async () => {
35665
- const serverMtime = statSync9(resolve53(Bun.main)).mtimeMs;
35673
+ const serverMtime = statSync10(resolve53(Bun.main)).mtimeMs;
35666
35674
  const lastMtime = globalThis.__hmrServerMtime;
35667
35675
  globalThis.__hmrServerMtime = serverMtime;
35668
35676
  const cached = globalThis.__hmrDevResult;
@@ -35800,7 +35808,7 @@ var FRAMEWORK_DIR_KEYS, devClientVendorSourceDir = () => resolve53(import.meta.d
35800
35808
  const sourceFiles = await collectDepVendorSourceFiles(config);
35801
35809
  const configVendorDirs = collectConfigVendorSourceDirs(config);
35802
35810
  const prescannedVendorPaths = prescanVendorPaths(prescan, configVendorDirs);
35803
- const remainingVendorDirs = prescannedVendorPaths ? sourceDirs.filter((dir) => !configVendorDirs.includes(dir) && existsSync47(dir)) : sourceDirs;
35811
+ const remainingVendorDirs = prescannedVendorPaths ? sourceDirs.filter((dir) => !configVendorDirs.includes(dir) && existsSync46(dir)) : sourceDirs;
35804
35812
  if (prescannedVendorPaths && remainingVendorDirs.length === 0 && sourceFiles.length === 0) {
35805
35813
  globalThis.__depVendorPaths = prescannedVendorPaths;
35806
35814
  } else {
@@ -36043,7 +36051,7 @@ var FRAMEWORK_DIR_KEYS, devClientVendorSourceDir = () => resolve53(import.meta.d
36043
36051
  manifest
36044
36052
  };
36045
36053
  globalThis.__hmrDevResult = result;
36046
- globalThis.__hmrServerMtime = statSync9(resolve53(Bun.main)).mtimeMs;
36054
+ globalThis.__hmrServerMtime = statSync10(resolve53(Bun.main)).mtimeMs;
36047
36055
  return result;
36048
36056
  };
36049
36057
  var init_devBuild = __esm(() => {
@@ -36302,14 +36310,14 @@ __export(exports_devtoolsJson, {
36302
36310
  normalizeDevtoolsWorkspaceRoot: () => normalizeDevtoolsWorkspaceRoot,
36303
36311
  resolveDevtoolsUuidCachePath: () => resolveDevtoolsUuidCachePath
36304
36312
  });
36305
- import { existsSync as existsSync48, mkdirSync as mkdirSync16, readFileSync as readFileSync40, writeFileSync as writeFileSync11 } from "fs";
36313
+ import { existsSync as existsSync47, mkdirSync as mkdirSync16, readFileSync as readFileSync40, writeFileSync as writeFileSync11 } from "fs";
36306
36314
  import { dirname as dirname36, join as join60, resolve as resolve54 } from "path";
36307
36315
  import { Elysia as Elysia7 } from "elysia";
36308
36316
  var ENDPOINT = "/.well-known/appspecific/com.chrome.devtools.json", UUID_CACHE_KEY = "__absoluteDevtoolsWorkspaceUuid", getGlobalUuid = () => Reflect.get(globalThis, UUID_CACHE_KEY), setGlobalUuid = (uuid) => {
36309
36317
  Reflect.set(globalThis, UUID_CACHE_KEY, uuid);
36310
36318
  return uuid;
36311
36319
  }, isUuidV4 = (value) => /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(value), resolveDevtoolsUuidCachePath = (buildDir, uuidCachePath) => resolve54(uuidCachePath ?? join60(buildDir, ".absolute", "chrome-devtools-workspace-uuid")), readCachedUuid = (cachePath) => {
36312
- if (!existsSync48(cachePath))
36320
+ if (!existsSync47(cachePath))
36313
36321
  return null;
36314
36322
  try {
36315
36323
  const value = readFileSync40(cachePath, "utf-8").trim();
@@ -36362,13 +36370,13 @@ var exports_imageOptimizer = {};
36362
36370
  __export(exports_imageOptimizer, {
36363
36371
  imageOptimizer: () => imageOptimizer
36364
36372
  });
36365
- import { existsSync as existsSync49 } from "fs";
36373
+ import { existsSync as existsSync48 } from "fs";
36366
36374
  import { resolve as resolve55 } from "path";
36367
36375
  import { Elysia as Elysia8 } from "elysia";
36368
36376
  var DEFAULT_CACHE_TTL_SECONDS = 60, MS_PER_SECOND = 1000, MAX_QUALITY = 100, avifInProgress, safeResolve = (path2, baseDir) => {
36369
36377
  try {
36370
36378
  const resolved = validateSafePath(path2, baseDir);
36371
- if (existsSync49(resolved))
36379
+ if (existsSync48(resolved))
36372
36380
  return resolved;
36373
36381
  return null;
36374
36382
  } catch {
@@ -37620,6 +37628,7 @@ ${serverOutput}` : "Server failed to start for pre-rendering";
37620
37628
  ...env4,
37621
37629
  ABSOLUTE_HOST: "localhost",
37622
37630
  ABSOLUTE_PORT: String(port),
37631
+ ABSOLUTE_PRERENDER: "1",
37623
37632
  HOST: "localhost",
37624
37633
  PORT: String(port)
37625
37634
  },
@@ -37651,7 +37660,7 @@ __export(exports_prepare, {
37651
37660
  startDevPrebuild: () => startDevPrebuild
37652
37661
  });
37653
37662
  import { createHash as createHash12 } from "crypto";
37654
- import { existsSync as existsSync50, readdirSync as readdirSync14, readFileSync as readFileSync42 } from "fs";
37663
+ import { existsSync as existsSync49, readdirSync as readdirSync14, readFileSync as readFileSync42 } from "fs";
37655
37664
  import { basename as basename22, join as join64, relative as relative24, resolve as resolvePath4 } from "path";
37656
37665
  import { Elysia as Elysia11, NotFound } from "elysia";
37657
37666
  var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_PLUGIN_RETRY_DELAY_MS = 50, waitForStaticPluginRetry = () => new Promise((resolve56) => {
@@ -37780,7 +37789,7 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
37780
37789
  if (!fileName)
37781
37790
  continue;
37782
37791
  const srcPath = resolvePath4(devIndexDir, fileName);
37783
- if (!existsSync50(srcPath))
37792
+ if (!existsSync49(srcPath))
37784
37793
  continue;
37785
37794
  const rel = relative24(process.cwd(), srcPath).replace(/\\/g, "/");
37786
37795
  manifest[key] = `${SRC_URL_PREFIX3}${rel}`;
@@ -37796,7 +37805,7 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
37796
37805
  const path2 = href.split("?")[0] ?? href;
37797
37806
  const filePath = join64(buildDir, path2);
37798
37807
  let versioned = href;
37799
- if (existsSync50(filePath)) {
37808
+ if (existsSync49(filePath)) {
37800
37809
  const hash = createHash12("sha256").update(readFileSync42(filePath)).digest("hex").slice(0, ICON_HASH_LENGTH);
37801
37810
  versioned = href.includes("?") ? `${href}&v=${hash}` : `${href}?v=${hash}`;
37802
37811
  }
@@ -37928,7 +37937,7 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
37928
37937
  };
37929
37938
  }, loadPrerenderMap = (prerenderDir) => {
37930
37939
  const map = new Map;
37931
- if (!existsSync50(prerenderDir))
37940
+ if (!existsSync49(prerenderDir))
37932
37941
  return map;
37933
37942
  let entries;
37934
37943
  try {
@@ -37946,7 +37955,7 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
37946
37955
  return map;
37947
37956
  }, loadMobileCompatibilityPlugin = async (buildDir) => {
37948
37957
  const root = join64(buildDir, ".absolutejs", "mobile-compatibility");
37949
- if (!existsSync50(join64(root, "current.json"))) {
37958
+ if (!existsSync49(join64(root, "current.json"))) {
37950
37959
  return new Elysia11({ name: "absolutejs-mobile-compatibility-empty" });
37951
37960
  }
37952
37961
  const [
@@ -38012,12 +38021,12 @@ This usually means a build-time error in a source file. Check the dev-server ter
38012
38021
  recordStep("load production manifest and island metadata", stepStartedAt);
38013
38022
  stepStartedAt = performance.now();
38014
38023
  const conventionsPath = join64(buildDir, "conventions.json");
38015
- if (existsSync50(conventionsPath)) {
38024
+ if (existsSync49(conventionsPath)) {
38016
38025
  const conventions2 = JSON.parse(readFileSync42(conventionsPath, "utf-8"));
38017
38026
  setConventions(conventions2);
38018
38027
  }
38019
38028
  const spaRoutesPath = join64(buildDir, "spa-routes.json");
38020
- if (existsSync50(spaRoutesPath)) {
38029
+ if (existsSync49(spaRoutesPath)) {
38021
38030
  setSpaRouteManifest(JSON.parse(readFileSync42(spaRoutesPath, "utf-8")));
38022
38031
  }
38023
38032
  recordStep("load production conventions", stepStartedAt);
@@ -38183,10 +38192,10 @@ __export(exports_serverEntryWatcher, {
38183
38192
  });
38184
38193
  import {
38185
38194
  copyFileSync as copyFileSync6,
38186
- existsSync as existsSync52,
38195
+ existsSync as existsSync51,
38187
38196
  readdirSync as readdirSync16,
38188
38197
  readFileSync as readFileSync45,
38189
- statSync as statSync10,
38198
+ statSync as statSync11,
38190
38199
  watch as watch2
38191
38200
  } from "fs";
38192
38201
  import { createHash as createHash13 } from "crypto";
@@ -38214,7 +38223,7 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETR
38214
38223
  if (globalThis.__absoluteEntryWatcherStarted)
38215
38224
  return;
38216
38225
  const originalEntry = process.env.ABSOLUTE_SERVER_ENTRY ?? Bun.main;
38217
- if (!originalEntry || !existsSync52(originalEntry))
38226
+ if (!originalEntry || !existsSync51(originalEntry))
38218
38227
  return;
38219
38228
  globalThis.__absoluteEntryWatcherStarted = true;
38220
38229
  globalThis.__absoluteEntryWatcherReady = false;
@@ -38345,7 +38354,7 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETR
38345
38354
  continue;
38346
38355
  let st2;
38347
38356
  try {
38348
- st2 = statSync10(join67(dir, entry.name));
38357
+ st2 = statSync11(join67(dir, entry.name));
38349
38358
  } catch {
38350
38359
  continue;
38351
38360
  }
@@ -38756,7 +38765,7 @@ import { buildGlobalWSHandler } from "elysia/ws";
38756
38765
  // src/dev/devCert.ts
38757
38766
  import {
38758
38767
  copyFileSync as copyFileSync5,
38759
- existsSync as existsSync51,
38768
+ existsSync as existsSync50,
38760
38769
  mkdirSync as mkdirSync18,
38761
38770
  readFileSync as readFileSync43,
38762
38771
  rmSync as rmSync5
@@ -38772,7 +38781,7 @@ var DEFAULT_CERTIFICATE_HOSTS = ["localhost", "127.0.0.1", "::1"];
38772
38781
  var CERTIFICATE_HOSTNAME_PATTERN = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?))*$/u;
38773
38782
  var devLog = (msg) => console.log(`\x1B[2m${new Date().toLocaleTimeString()}\x1B[0m \x1B[36m[dev]\x1B[0m ${msg}`);
38774
38783
  var devWarn = (msg) => console.log(`\x1B[2m${new Date().toLocaleTimeString()}\x1B[0m \x1B[33m[dev]\x1B[0m \x1B[33m${msg}\x1B[0m`);
38775
- var certFilesExist = () => existsSync51(CERT_PATH) && existsSync51(KEY_PATH);
38784
+ var certFilesExist = () => existsSync50(CERT_PATH) && existsSync50(KEY_PATH);
38776
38785
  var normalizeDevCertificateHosts = (hosts = []) => {
38777
38786
  const normalized = new Set(DEFAULT_CERTIFICATE_HOSTS);
38778
38787
  for (const host2 of hosts) {
@@ -39440,7 +39449,7 @@ var serializeSpeculationRules = (rules) => {
39440
39449
  };
39441
39450
  // src/utils/defineEnv.ts
39442
39451
  var {env: bunEnv } = globalThis.Bun;
39443
- import { existsSync as existsSync53, readFileSync as readFileSync46 } from "fs";
39452
+ import { existsSync as existsSync52, readFileSync as readFileSync46 } from "fs";
39444
39453
  import { resolve as resolve57 } from "path";
39445
39454
 
39446
39455
  // node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
@@ -45477,7 +45486,7 @@ ${lines.join(`
45477
45486
  var checkEnvFileSecurity = (properties) => {
45478
45487
  const cwd2 = process.cwd();
45479
45488
  const envPath = resolve57(cwd2, ".env");
45480
- if (!existsSync53(envPath))
45489
+ if (!existsSync52(envPath))
45481
45490
  return;
45482
45491
  const sensitiveKeys = Object.keys(properties).filter(isSensitive);
45483
45492
  if (sensitiveKeys.length === 0)
@@ -45487,7 +45496,7 @@ var checkEnvFileSecurity = (properties) => {
45487
45496
  if (presentKeys.length === 0)
45488
45497
  return;
45489
45498
  const gitignorePath = resolve57(cwd2, ".gitignore");
45490
- if (existsSync53(gitignorePath)) {
45499
+ if (existsSync52(gitignorePath)) {
45491
45500
  const gitignore = readFileSync46(gitignorePath, "utf-8");
45492
45501
  if (gitignore.split(`
45493
45502
  `).some((line) => line.trim() === ".env"))
@@ -45520,7 +45529,7 @@ var getEnv = (key) => {
45520
45529
  return environmentVariable;
45521
45530
  };
45522
45531
  // src/utils/projectRoot.ts
45523
- import { existsSync as existsSync54 } from "fs";
45532
+ import { existsSync as existsSync53 } from "fs";
45524
45533
  import { dirname as dirname39, resolve as resolve58 } from "path";
45525
45534
  var CONFIG_CANDIDATES = [
45526
45535
  "absolute.config.ts",
@@ -45530,7 +45539,7 @@ var CONFIG_CANDIDATES = [
45530
45539
  "absolute.config.mts",
45531
45540
  "absolute.config.cts"
45532
45541
  ];
45533
- var hasAbsoluteConfig = (directory) => CONFIG_CANDIDATES.some((name) => existsSync54(resolve58(directory, name)));
45542
+ var hasAbsoluteConfig = (directory) => CONFIG_CANDIDATES.some((name) => existsSync53(resolve58(directory, name)));
45534
45543
  var findProjectRoot = () => {
45535
45544
  const start = process.cwd();
45536
45545
  let packageRoot = null;
@@ -45539,7 +45548,7 @@ var findProjectRoot = () => {
45539
45548
  if (hasAbsoluteConfig(directory)) {
45540
45549
  return directory;
45541
45550
  }
45542
- if (packageRoot === null && existsSync54(resolve58(directory, "package.json"))) {
45551
+ if (packageRoot === null && existsSync53(resolve58(directory, "package.json"))) {
45543
45552
  packageRoot = directory;
45544
45553
  }
45545
45554
  const parent = dirname39(directory);
@@ -45616,6 +45625,8 @@ var createStreamingSlotMetricSink = ({
45616
45625
  // src/utils/index.ts
45617
45626
  init_streamingSlots();
45618
45627
 
45628
+ // src/utils/isPrerendering.ts
45629
+ var isPrerendering = () => process.env.ABSOLUTE_PRERENDER === "1";
45619
45630
  // src/index.ts
45620
45631
  markBoot("framework runtime imported");
45621
45632
  export {
@@ -45763,6 +45774,7 @@ export {
45763
45774
  injectHtmlIntoHead,
45764
45775
  injectStreamingRuntimeIntoStream,
45765
45776
  isIslandComponentDefinition,
45777
+ isPrerendering,
45766
45778
  isTailwindCandidate,
45767
45779
  isValidHMRClientMessage,
45768
45780
  jsonLd2 as jsonLd,
@@ -45801,5 +45813,5 @@ export {
45801
45813
  wrapPageHandlerWithStreamingSlots
45802
45814
  };
45803
45815
 
45804
- //# debugId=105F7E3CA690A8B864756E2164756E21
45816
+ //# debugId=B86C5DC169B488EE64756E2164756E21
45805
45817
  //# sourceMappingURL=index.js.map