@absolutejs/absolute 0.19.0-beta.704 → 0.19.0-beta.706

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 (103) hide show
  1. package/dist/angular/browser.js +6 -4
  2. package/dist/angular/browser.js.map +3 -3
  3. package/dist/angular/index.js +71 -82
  4. package/dist/angular/index.js.map +10 -10
  5. package/dist/angular/server.js +70 -81
  6. package/dist/angular/server.js.map +10 -10
  7. package/dist/build.js +152 -84
  8. package/dist/build.js.map +15 -15
  9. package/dist/cli/index.js +330 -296
  10. package/dist/client/index.js +7 -4
  11. package/dist/client/index.js.map +3 -3
  12. package/dist/index.js +253 -153
  13. package/dist/index.js.map +24 -24
  14. package/dist/islands/index.js +9 -6
  15. package/dist/islands/index.js.map +5 -5
  16. package/dist/react/browser.js +7 -7
  17. package/dist/react/browser.js.map +2 -2
  18. package/dist/react/components/browser/index.js +101 -101
  19. package/dist/react/components/index.js +104 -104
  20. package/dist/react/components/index.js.map +2 -2
  21. package/dist/react/index.js +77 -88
  22. package/dist/react/index.js.map +10 -10
  23. package/dist/react/jsxDevRuntimeCompat.js +1 -6
  24. package/dist/react/jsxDevRuntimeCompat.js.map +3 -3
  25. package/dist/react/server.js +57 -71
  26. package/dist/react/server.js.map +8 -8
  27. package/dist/src/angular/components/defer-slot-templates.directive.d.ts +0 -7
  28. package/dist/src/angular/components/defer-slot.component.d.ts +2 -5
  29. package/dist/src/angular/components/image.component.d.ts +2 -5
  30. package/dist/src/angular/components/index.d.ts +4 -4
  31. package/dist/src/angular/components/stream-slot.component.d.ts +0 -3
  32. package/dist/src/angular/pageHandler.d.ts +6 -1
  33. package/dist/src/angular/ssrRender.d.ts +1 -1
  34. package/dist/src/build/buildAngularVendor.d.ts +3 -4
  35. package/dist/src/constants.d.ts +21 -0
  36. package/dist/src/core/ssrCache.d.ts +1 -1
  37. package/dist/src/core/wrapPageHandlerWithStreamingSlots.d.ts +1 -1
  38. package/dist/src/react/jsxDevRuntimeCompat.d.ts +3 -6
  39. package/dist/src/react/pageHandler.d.ts +2 -1
  40. package/dist/src/svelte/pageHandler.d.ts +2 -2
  41. package/dist/src/utils/defineConfig.d.ts +2 -2
  42. package/dist/src/utils/imageProcessing.d.ts +1 -1
  43. package/dist/src/utils/loadConfig.d.ts +38 -2
  44. package/dist/src/vue/components/Image.d.ts +3 -3
  45. package/dist/src/vue/components/index.d.ts +1 -1
  46. package/dist/src/vue/index.d.ts +1 -1
  47. package/dist/src/vue/pageHandler.d.ts +2 -1
  48. package/dist/svelte/index.js +52 -58
  49. package/dist/svelte/index.js.map +10 -10
  50. package/dist/svelte/server.js +46 -55
  51. package/dist/svelte/server.js.map +9 -9
  52. package/dist/vue/components/Image.js +18 -18
  53. package/dist/vue/components/Image.js.map +3 -3
  54. package/dist/vue/components/index.js +77 -62
  55. package/dist/vue/components/index.js.map +5 -5
  56. package/dist/vue/index.js +137 -142
  57. package/dist/vue/index.js.map +13 -13
  58. package/dist/vue/server.js +54 -77
  59. package/dist/vue/server.js.map +8 -8
  60. package/package.json +42 -42
  61. package/dist/angular/components/constants.js +0 -56
  62. package/dist/angular/components/core/streamingSlotRegistrar.js +0 -58
  63. package/dist/angular/components/core/streamingSlotRegistry.js +0 -114
  64. package/dist/angular/components/defer-slot-payload.js +0 -6
  65. package/dist/angular/components/defer-slot-templates.directive.js +0 -44
  66. package/dist/angular/components/defer-slot.component.js +0 -149
  67. package/dist/angular/components/image.component.js +0 -202
  68. package/dist/angular/components/index.js +0 -4
  69. package/dist/angular/components/stream-slot.component.js +0 -103
  70. package/dist/dev/client/constants.ts +0 -26
  71. package/dist/dev/client/cssUtils.ts +0 -307
  72. package/dist/dev/client/domDiff.ts +0 -226
  73. package/dist/dev/client/domState.ts +0 -421
  74. package/dist/dev/client/domTracker.ts +0 -61
  75. package/dist/dev/client/errorOverlay.ts +0 -184
  76. package/dist/dev/client/frameworkDetect.ts +0 -63
  77. package/dist/dev/client/handlers/angular.ts +0 -551
  78. package/dist/dev/client/handlers/angularRuntime.ts +0 -206
  79. package/dist/dev/client/handlers/html.ts +0 -363
  80. package/dist/dev/client/handlers/htmx.ts +0 -272
  81. package/dist/dev/client/handlers/react.ts +0 -108
  82. package/dist/dev/client/handlers/rebuild.ts +0 -153
  83. package/dist/dev/client/handlers/svelte.ts +0 -332
  84. package/dist/dev/client/handlers/vue.ts +0 -292
  85. package/dist/dev/client/headPatch.ts +0 -233
  86. package/dist/dev/client/hmrClient.ts +0 -251
  87. package/dist/dev/client/hmrState.ts +0 -14
  88. package/dist/dev/client/moduleVersions.ts +0 -62
  89. package/dist/dev/client/reactRefreshSetup.ts +0 -33
  90. package/dist/src/angular/components/constants.d.ts +0 -53
  91. package/dist/svelte/components/AwaitSlot.svelte +0 -39
  92. package/dist/svelte/components/AwaitSlot.svelte.d.ts +0 -2
  93. package/dist/svelte/components/Head.svelte +0 -144
  94. package/dist/svelte/components/Head.svelte.d.ts +0 -2
  95. package/dist/svelte/components/Image.svelte +0 -164
  96. package/dist/svelte/components/Image.svelte.d.ts +0 -5
  97. package/dist/svelte/components/Island.svelte +0 -71
  98. package/dist/svelte/components/Island.svelte.d.ts +0 -5
  99. package/dist/svelte/components/JsonLd.svelte +0 -21
  100. package/dist/svelte/components/JsonLd.svelte.d.ts +0 -2
  101. package/dist/svelte/components/StreamSlot.svelte +0 -41
  102. package/dist/svelte/components/StreamSlot.svelte.d.ts +0 -2
  103. package/dist/types/globals.d.ts +0 -121
package/dist/index.js CHANGED
@@ -102,7 +102,7 @@ var isValidHMRClientMessage = (data) => {
102
102
  var WS_READY_STATE_OPEN = 1;
103
103
 
104
104
  // src/constants.ts
105
- var ANGULAR_INIT_TIMEOUT_MS = 500, ANSI_ESCAPE_LENGTH = 3, ASCII_SPACE = 32, BASE_36_RADIX = 36, BUN_BUILD_WARNING_SUPPRESSION = "wildcard sideEffects are not supported yet", BODY_SLICE_LENGTH = 2000, BYTES_PER_KILOBYTE = 1024, CLI_ARGS_OFFSET = 3, CSS_ERROR_RESOLVE_DELAY_MS = 50, CSS_MAX_CHECK_ATTEMPTS = 10, CSS_MAX_PARSE_TIMEOUT_MS = 500, CSS_SHEET_READY_TIMEOUT_MS = 100, DEFAULT_CHUNK_SIZE = 16384, DEFAULT_DEBOUNCE_MS = 15, DEFAULT_PORT = 3000, DEV_SERVER_RESTART_DEBOUNCE_MS = 100, DOM_UPDATE_DELAY_MS = 50, FILE_PROTOCOL_PREFIX_LENGTH = 7, FOCUS_ID_PREFIX_LENGTH = 3, FOCUS_IDX_PREFIX_LENGTH = 4, FOCUS_NAME_PREFIX_LENGTH = 5, HMR_UPDATE_TIMEOUT_MS = 2000, HOOK_SIGNATURE_LENGTH = 12, EXCLUDE_LAST_OFFSET = -1, HTTP_STATUS_OK = 200, HTTP_STATUS_BAD_REQUEST = 400, HTTP_STATUS_NOT_FOUND = 404, HOURS_IN_DAY = 24, HOURS_IN_HALF_DAY = 12, MAX_ERROR_LENGTH = 200, MAX_RECONNECT_ATTEMPTS = 60, MILLISECONDS_IN_A_SECOND = 1000, MINUTES_IN_AN_HOUR = 60, SECONDS_IN_A_MINUTE = 60, MILLISECONDS_IN_A_MINUTE, MILLISECONDS_IN_A_DAY, OVERLAY_FADE_DURATION_MS = 150, PING_INTERVAL_MS = 30000, RAF_BATCH_COUNT = 3, RANDOM_ID_END_INDEX = 11, REBUILD_BATCH_DELAY_MS = 10, REBUILD_RELOAD_DELAY_MS = 200, RECONNECT_INITIAL_DELAY_MS = 500, RECONNECT_POLL_INTERVAL_MS = 300, REACT_STREAM_SLOT_FAST_DELAY_MS = 5, REACT_STREAM_SLOT_SLOW_DELAY_MS = 20, SIGINT_EXIT_CODE = 130, SIGTERM_EXIT_CODE = 143, SVELTE_CSS_LOAD_TIMEOUT_MS = 500, TIME_PRECISION = 2, TWO_THIRDS, UNFOUND_INDEX = -1, WEBSOCKET_NORMAL_CLOSURE = 1000;
105
+ var ANGULAR_INIT_TIMEOUT_MS = 500, ANSI_ESCAPE_LENGTH = 3, ASCII_SPACE = 32, BASE_36_RADIX = 36, BUN_BUILD_WARNING_SUPPRESSION = "wildcard sideEffects are not supported yet", BODY_SLICE_LENGTH = 2000, BYTES_PER_KILOBYTE = 1024, CLI_ARGS_OFFSET = 3, CSS_ERROR_RESOLVE_DELAY_MS = 50, CSS_MAX_CHECK_ATTEMPTS = 10, CSS_MAX_PARSE_TIMEOUT_MS = 500, CSS_SHEET_READY_TIMEOUT_MS = 100, DEFAULT_CHUNK_SIZE = 16384, DEFAULT_DEBOUNCE_MS = 15, DEFAULT_PORT = 3000, DEV_SERVER_RESTART_DEBOUNCE_MS = 100, DOM_UPDATE_DELAY_MS = 50, FILE_PROTOCOL_PREFIX_LENGTH = 7, FOCUS_ID_PREFIX_LENGTH = 3, FOCUS_IDX_PREFIX_LENGTH = 4, FOCUS_NAME_PREFIX_LENGTH = 5, HMR_UPDATE_TIMEOUT_MS = 2000, HOOK_SIGNATURE_LENGTH = 12, EXCLUDE_LAST_OFFSET = -1, HTTP_STATUS_OK = 200, HTTP_STATUS_BAD_REQUEST = 400, HTTP_STATUS_NOT_FOUND = 404, HOURS_IN_DAY = 24, HOURS_IN_HALF_DAY = 12, MAX_ERROR_LENGTH = 200, MAX_RECONNECT_ATTEMPTS = 60, MILLISECONDS_IN_A_SECOND = 1000, MINUTES_IN_AN_HOUR = 60, SECONDS_IN_A_MINUTE = 60, MILLISECONDS_IN_A_MINUTE, MILLISECONDS_IN_A_DAY, OVERLAY_FADE_DURATION_MS = 150, PING_INTERVAL_MS = 30000, RAF_BATCH_COUNT = 3, RANDOM_ID_END_INDEX = 11, REBUILD_BATCH_DELAY_MS = 10, REBUILD_RELOAD_DELAY_MS = 200, RECONNECT_INITIAL_DELAY_MS = 500, RECONNECT_POLL_INTERVAL_MS = 300, REACT_STREAM_SLOT_FAST_DELAY_MS = 5, REACT_STREAM_SLOT_SLOW_DELAY_MS = 20, SIGINT_EXIT_CODE = 130, SIGTERM_EXIT_CODE = 143, SVELTE_CSS_LOAD_TIMEOUT_MS = 500, TIME_PRECISION = 2, TWO_THIRDS, UNFOUND_INDEX = -1, WEBSOCKET_NORMAL_CLOSURE = 1000, WORKSPACE_COMMAND_ARGS_OFFSET = 3, WORKSPACE_FAILURE_LOG_PRINT_LIMIT = 30, WORKSPACE_FAILURE_RECENT_LOG_LIMIT = 60, WORKSPACE_READY_ATTEMPT_TIMEOUT_MS = 5000, WORKSPACE_READY_PROBE_INTERVAL_MS = 250, WORKSPACE_READY_TIMEOUT_MS = 30000, WORKSPACE_SHUTDOWN_TIMEOUT_MS = 1e4, WORKSPACE_TUI_DEFAULT_HEIGHT = 28, WORKSPACE_TUI_DEFAULT_WIDTH = 100, WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS = 30, WORKSPACE_TUI_FOOTER_LINE_COUNT = 3, WORKSPACE_TUI_MIN_LOG_HEIGHT = 3, WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH = 7, WORKSPACE_TUI_MIN_TARGET_WIDTH = 8, WORKSPACE_TUI_MIN_WRAP_WIDTH = 12, WORKSPACE_TUI_PROMPT_CURSOR_OFFSET = 3, WORKSPACE_TUI_RECENT_LOG_LIMIT = 40, WORKSPACE_TUI_RENDER_DEBOUNCE_MS = 16, WORKSPACE_TUI_STATUS_WIDTH = 10, WORKSPACE_TUI_TARGET_PADDING_WIDTH = 6, WORKSPACE_TUI_VISIBILITY_WIDTH = 8;
106
106
  var init_constants = __esm(() => {
107
107
  MILLISECONDS_IN_A_MINUTE = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE;
108
108
  MILLISECONDS_IN_A_DAY = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE * MINUTES_IN_AN_HOUR * HOURS_IN_DAY;
@@ -965,7 +965,9 @@ var initDominoAdapter = (platformServer) => {
965
965
  import(resolveAngularPackage("@angular/common")),
966
966
  import(resolveAngularPackage("@angular/core"))
967
967
  ]);
968
- if (false) {}
968
+ if (true) {
969
+ core.enableProdMode();
970
+ }
969
971
  initDominoAdapter(platformServer);
970
972
  return {
971
973
  APP_BASE_HREF: common.APP_BASE_HREF,
@@ -1098,7 +1100,7 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
1098
1100
  Sanitizer: core.Sanitizer,
1099
1101
  SecurityContext: core.SecurityContext
1100
1102
  };
1101
- }, buildProviders = (deps, sanitizer, maybeProps, tokenMap) => {
1103
+ }, buildProviders = (deps, sanitizer, maybeProps, tokenMap, userProviders = []) => {
1102
1104
  const providers = [
1103
1105
  deps.provideServerRendering(),
1104
1106
  deps.provideClientHydration(),
@@ -1108,7 +1110,8 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
1108
1110
  provide: deps.DomSanitizer,
1109
1111
  useValue: sanitizer
1110
1112
  },
1111
- { provide: deps.Sanitizer, useValue: sanitizer }
1113
+ { provide: deps.Sanitizer, useValue: sanitizer },
1114
+ ...userProviders
1112
1115
  ];
1113
1116
  if (!maybeProps) {
1114
1117
  return providers;
@@ -1734,7 +1737,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1734
1737
  const config = normalizePostcssModule(loaded);
1735
1738
  const value = typeof config === "function" ? await config({
1736
1739
  cwd: process.cwd(),
1737
- env: "development"
1740
+ env: "test"
1738
1741
  }) : config;
1739
1742
  return normalizePostcssModule(value) ?? {};
1740
1743
  }, normalizePostcssPlugins = (plugins) => {
@@ -3056,7 +3059,7 @@ __export(exports_devRouteRegistrationCallsite, {
3056
3059
  });
3057
3060
  import { AsyncLocalStorage } from "async_hooks";
3058
3061
  import { Elysia } from "elysia";
3059
- var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, isObjectRecord3 = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", getRouteCallsiteStorage = () => {
3062
+ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, isObjectRecord3 = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", isRouteMethod = (value) => typeof value === "function", getRouteCallsiteStorage = () => {
3060
3063
  const value = Reflect.get(globalThis, ROUTE_CALLSITE_STORAGE_KEY);
3061
3064
  if (value === null || typeof value === "undefined") {
3062
3065
  return;
@@ -3070,19 +3073,10 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES,
3070
3073
  const storage = new AsyncLocalStorage;
3071
3074
  Reflect.set(globalThis, ROUTE_CALLSITE_STORAGE_KEY, storage);
3072
3075
  return storage;
3073
- }, normalizeCallsitePath = (value) => value.replace(`${process.cwd()}/`, "").replace(process.cwd(), "").replace(/^\.\/+/, ""), extractRouteRegistrationCallsite = (stack) => {
3074
- const frames = stack.split(`
3075
- `).slice(1).map((line) => line.trim());
3076
- for (const frame of frames) {
3077
- if (frame.includes("/node_modules/") || frame.includes("/dist/") || frame.includes("/src/core/devRouteRegistrationCallsite.")) {
3078
- continue;
3079
- }
3080
- const locationMatch = frame.match(/\((\/[^)]+:\d+:\d+)\)$/) ?? frame.match(/at (\/[^ ]+:\d+:\d+)$/);
3081
- if (locationMatch?.[1]) {
3082
- return normalizeCallsitePath(locationMatch[1]);
3083
- }
3084
- }
3085
- return;
3076
+ }, normalizeCallsitePath = (value) => value.replace(`${process.cwd()}/`, "").replace(process.cwd(), "").replace(/^\.\/+/, ""), shouldIgnoreRouteCallsiteFrame = (frame) => frame.includes("/node_modules/") || frame.includes("/dist/") || frame.includes("/src/core/devRouteRegistrationCallsite."), getRouteCallsiteLocation = (frame) => frame.match(/\((\/[^)]+:\d+:\d+)\)$/)?.[1] ?? frame.match(/at (\/[^ ]+:\d+:\d+)$/)?.[1], extractRouteRegistrationCallsite = (stack) => {
3077
+ const location = stack.split(`
3078
+ `).slice(1).map((line) => line.trim()).filter((frame) => !shouldIgnoreRouteCallsiteFrame(frame)).map((frame) => getRouteCallsiteLocation(frame)).find((frameLocation) => frameLocation !== undefined);
3079
+ return location ? normalizeCallsitePath(location) : undefined;
3086
3080
  }, captureRouteRegistrationCallsite = () => {
3087
3081
  const { stack } = new Error;
3088
3082
  if (!stack) {
@@ -3094,29 +3088,29 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES,
3094
3088
  return handler;
3095
3089
  }
3096
3090
  const storage = ensureRouteCallsiteStorage();
3091
+ const routeHandler = handler;
3097
3092
  return function wrappedRouteHandler(...args) {
3098
- return storage.run({ callsite }, () => Reflect.apply(handler, this, args));
3093
+ return storage.run({ callsite }, () => Reflect.apply(routeHandler, this, args));
3099
3094
  };
3095
+ }, createPatchedRouteMethod = (originalMethod) => function patchedRouteMethod(path, handler, ...rest) {
3096
+ const callsite = captureRouteRegistrationCallsite();
3097
+ return Reflect.apply(originalMethod, this, [
3098
+ path,
3099
+ wrapRouteHandlerWithCallsite(handler, callsite),
3100
+ ...rest
3101
+ ]);
3100
3102
  }, getCurrentRouteRegistrationCallsite = () => getRouteCallsiteStorage()?.getStore()?.callsite, patchElysiaRouteRegistrationCallsites = () => {
3101
3103
  if (false) {}
3102
3104
  if (Reflect.get(globalThis, ROUTE_CALLSITE_PATCHED_KEY) === true) {
3103
3105
  return;
3104
3106
  }
3105
- const prototype = Elysia.prototype;
3106
- for (const methodName of ROUTE_METHOD_NAMES) {
3107
- const originalMethod = prototype[methodName];
3108
- if (typeof originalMethod !== "function") {
3109
- continue;
3110
- }
3111
- prototype[methodName] = function patchedRouteMethod(path, handler, ...rest) {
3112
- const callsite = captureRouteRegistrationCallsite();
3113
- return Reflect.apply(originalMethod, this, [
3114
- path,
3115
- wrapRouteHandlerWithCallsite(handler, callsite),
3116
- ...rest
3117
- ]);
3118
- };
3119
- }
3107
+ const { prototype } = Elysia;
3108
+ ROUTE_METHOD_NAMES.forEach((methodName) => {
3109
+ const originalMethod = Reflect.get(prototype, methodName);
3110
+ if (!isRouteMethod(originalMethod))
3111
+ return;
3112
+ Reflect.set(prototype, methodName, createPatchedRouteMethod(originalMethod));
3113
+ });
3120
3114
  Reflect.set(globalThis, ROUTE_CALLSITE_PATCHED_KEY, true);
3121
3115
  };
3122
3116
  var init_devRouteRegistrationCallsite = __esm(() => {
@@ -13288,7 +13282,14 @@ function asColor(value2, modifier, theme2) {
13288
13282
  return withAlpha(value2, `${modifier.value}%`);
13289
13283
  }
13290
13284
  function resolveThemeColor(candidate, theme2, themeKeys) {
13291
- if (false) {}
13285
+ if (true) {
13286
+ if (!candidate.value) {
13287
+ throw new Error("resolveThemeColor must be called with a named candidate");
13288
+ }
13289
+ if (candidate.value.kind !== "named") {
13290
+ throw new Error("resolveThemeColor must be called with a named value");
13291
+ }
13292
+ }
13292
13293
  let value2 = null;
13293
13294
  switch (candidate.value.value) {
13294
13295
  case "inherit": {
@@ -21967,9 +21968,7 @@ ${output}`);
21967
21968
  }
21968
21969
  async function compileAst(input, opts = {}) {
21969
21970
  let { designSystem, ast, sources, root, utilitiesNode, features, inlineCandidates } = await parseCss(input, opts);
21970
- if (true) {
21971
- ast.unshift(comment(`! tailwindcss v${version} | MIT License | https://tailwindcss.com `));
21972
- }
21971
+ if (false) {}
21973
21972
  function onInvalidCandidate(candidate) {
21974
21973
  designSystem.invalidCandidates.add(candidate);
21975
21974
  }
@@ -22887,7 +22886,7 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
22887
22886
  throw error;
22888
22887
  };
22889
22888
  return next();
22890
- }, require_memoize, require_CachedInputFileSystem, require_polyfills, require_legacy_streams, require_clone, require_graceful_fs, require_forEachBail, require_DescriptionFileUtils, require_getInnerRequest, require_AliasFieldPlugin, require_path, require_AliasPlugin, require_AppendPlugin, require_ConditionalPlugin, require_DescriptionFilePlugin, require_DirectoryExistsPlugin, require_identifier, require_entrypoints, require_ExportsFieldPlugin, require_ExtensionAliasPlugin, require_FileExistsPlugin, require_ImportsFieldPlugin, require_JoinRequestPartPlugin, require_JoinRequestPlugin, require_MainFieldPlugin, require_getPaths, require_ModulesInHierarchicalDirectoriesPlugin, require_ModulesInRootPlugin, require_NextPlugin, require_ParsePlugin, require_PnpPlugin, require_Hook, require_HookCodeFactory, require_SyncHook, require_SyncBailHook, require_SyncWaterfallHook, require_SyncLoopHook, require_AsyncParallelHook, require_AsyncParallelBailHook, require_AsyncSeriesHook, require_AsyncSeriesBailHook, require_AsyncSeriesLoopHook, require_AsyncSeriesWaterfallHook, require_HookMap, require_MultiHook, require_lib, require_createInnerContext, require_Resolver, require_RestrictionsPlugin, require_ResultPlugin, require_RootsPlugin, require_SelfReferencePlugin, require_SymlinkPlugin, require_SyncAsyncFileSystemDecorator, require_TryNextPlugin, require_UnsafeCachePlugin, require_UseFilePlugin, require_ResolverFactory, require_CloneBasenamePlugin, require_LogInfoPlugin, require_lib2, require_jiti, require_base64, require_base64_vlq, require_util, require_array_set, require_mapping_list, require_source_map_generator, require_binary_search, require_quick_sort, require_source_map_consumer, require_source_node, require_source_map, require_require_cache, require_tailwindcss_oxide_android_arm64, require_package, require_tailwindcss_oxide_win32_x64_msvc, require_package2, require_tailwindcss_oxide_win32_arm64_msvc, require_package3, require_tailwindcss_oxide_darwin_x64, require_package4, require_tailwindcss_oxide_darwin_arm64, require_package5, require_package6, require_tailwindcss_oxide_linux_x64_musl, require_package7, require_tailwindcss_oxide_linux_x64_gnu, require_package8, require_tailwindcss_oxide_linux_arm64_musl, require_package9, require_tailwindcss_oxide_linux_arm64_gnu, require_package10, require_package11, _WebAssembly, ENVIRONMENT_IS_NODE, WASI_THREADS_MAX_TID, nextWorkerID, ThreadManager, kIsProxy, patchedWasiInstances, WASIThreads, ThreadMessageHandler, init_wasi_threads_esm_bundler, extendStatics, __assign, init_tslib_es6, emnapi_core_esm_bundler_exports, _WebAssembly2, MessageHandler, version2, init_emnapi_core_esm_bundler, emnapi_esm_bundler_exports, externalValue, External, supportNewFunction, _global, TryCatch, canSetFunctionName, supportReflect, supportFinalizer, supportWeakSymbol, supportBigInt, _require, _MessageChannel, _setImmediate, _Buffer, version3, NODE_API_SUPPORTED_VERSION_MIN, NODE_API_SUPPORTED_VERSION_MAX, NAPI_VERSION_EXPERIMENTAL, NODE_API_DEFAULT_MODULE_API_VERSION, Handle, ConstHandle, HandleStore, HandleScope, ScopeStore, RefTracker, Finalizer, TrackedFinalizer, Env, NodeEnv, EmnapiError, NotSupportWeakRefError, NotSupportBufferError, StrongRef, Persistent, ReferenceOwnership, Reference, ReferenceWithData, ReferenceWithFinalizer, Deferred, Store, CleanupHookCallback, CleanupQueue, NodejsWaitingRequestCounter, Context, defaultContext, init_emnapi_esm_bundler, wasm_util_esm_bundler_exports, _WebAssembly3, ignoreNames, Asyncify, CHAR_DOT, CHAR_FORWARD_SLASH, FD_DATASYNC, FD_READ, FD_SEEK, FD_FDSTAT_SET_FLAGS, FD_SYNC, FD_TELL, FD_WRITE, FD_ADVISE, FD_ALLOCATE, PATH_CREATE_DIRECTORY, PATH_CREATE_FILE, PATH_LINK_SOURCE, PATH_LINK_TARGET, PATH_OPEN, FD_READDIR, PATH_READLINK, PATH_RENAME_SOURCE, PATH_RENAME_TARGET, PATH_FILESTAT_GET, PATH_FILESTAT_SET_SIZE, PATH_FILESTAT_SET_TIMES, FD_FILESTAT_GET, FD_FILESTAT_SET_SIZE, FD_FILESTAT_SET_TIMES, PATH_SYMLINK, PATH_REMOVE_DIRECTORY, PATH_UNLINK_FILE, POLL_FD_READWRITE, SOCK_SHUTDOWN, SOCK_ACCEPT, WasiRights, WasiError, RIGHTS_ALL, BLOCK_DEVICE_BASE, BLOCK_DEVICE_INHERITING, CHARACTER_DEVICE_BASE, CHARACTER_DEVICE_INHERITING, REGULAR_FILE_BASE, REGULAR_FILE_INHERITING, DIRECTORY_BASE, DIRECTORY_INHERITING, SOCKET_BASE, SOCKET_INHERITING, TTY_BASE, TTY_INHERITING, FileDescriptor, StandardOutput, FileDescriptorTable, SyncTable, AsyncTable, WebAssemblyMemory, Memory, _memory, _wasi, _fs, encoder, decoder, INT64_MAX, WASI$1, kEmptyObject, kExitCode, kSetMemory, kStarted, kInstance, kBindingName, WASI, init_wasm_util_esm_bundler, require_fs_proxy, require_runtime, require_tailwindcss_oxide_wasi, require_tailwindcss_oxide_wasi2, require_node, import_enhanced_resolve, import_jiti, nativeImport = (id) => import(id), _transform, version = "4.1.14", BACKSLASH = 92, SLASH = 47, ASTERISK = 42, DOUBLE_QUOTE = 34, SINGLE_QUOTE = 39, COLON = 58, SEMICOLON = 59, LINE_BREAK = 10, CARRIAGE_RETURN = 13, SPACE = 32, TAB = 9, OPEN_CURLY = 123, CLOSE_CURLY = 125, OPEN_PAREN = 40, CLOSE_PAREN = 41, OPEN_BRACKET = 91, CLOSE_BRACKET = 93, DASH = 45, AT_SIGN = 64, EXCLAMATION_MARK = 33, ignoredThemeKeyMap, Theme = class {
22889
+ }, require_memoize, require_CachedInputFileSystem, require_polyfills, require_legacy_streams, require_clone, require_graceful_fs, require_forEachBail, require_DescriptionFileUtils, require_getInnerRequest, require_AliasFieldPlugin, require_path, require_AliasPlugin, require_AppendPlugin, require_ConditionalPlugin, require_DescriptionFilePlugin, require_DirectoryExistsPlugin, require_identifier, require_entrypoints, require_ExportsFieldPlugin, require_ExtensionAliasPlugin, require_FileExistsPlugin, require_ImportsFieldPlugin, require_JoinRequestPartPlugin, require_JoinRequestPlugin, require_MainFieldPlugin, require_getPaths, require_ModulesInHierarchicalDirectoriesPlugin, require_ModulesInRootPlugin, require_NextPlugin, require_ParsePlugin, require_PnpPlugin, require_Hook, require_HookCodeFactory, require_SyncHook, require_SyncBailHook, require_SyncWaterfallHook, require_SyncLoopHook, require_AsyncParallelHook, require_AsyncParallelBailHook, require_AsyncSeriesHook, require_AsyncSeriesBailHook, require_AsyncSeriesLoopHook, require_AsyncSeriesWaterfallHook, require_HookMap, require_MultiHook, require_lib, require_createInnerContext, require_Resolver, require_RestrictionsPlugin, require_ResultPlugin, require_RootsPlugin, require_SelfReferencePlugin, require_SymlinkPlugin, require_SyncAsyncFileSystemDecorator, require_TryNextPlugin, require_UnsafeCachePlugin, require_UseFilePlugin, require_ResolverFactory, require_CloneBasenamePlugin, require_LogInfoPlugin, require_lib2, require_jiti, require_base64, require_base64_vlq, require_util, require_array_set, require_mapping_list, require_source_map_generator, require_binary_search, require_quick_sort, require_source_map_consumer, require_source_node, require_source_map, require_require_cache, require_tailwindcss_oxide_android_arm64, require_package, require_tailwindcss_oxide_win32_x64_msvc, require_package2, require_tailwindcss_oxide_win32_arm64_msvc, require_package3, require_tailwindcss_oxide_darwin_x64, require_package4, require_tailwindcss_oxide_darwin_arm64, require_package5, require_package6, require_tailwindcss_oxide_linux_x64_musl, require_package7, require_tailwindcss_oxide_linux_x64_gnu, require_package8, require_tailwindcss_oxide_linux_arm64_musl, require_package9, require_tailwindcss_oxide_linux_arm64_gnu, require_package10, require_package11, _WebAssembly, ENVIRONMENT_IS_NODE, WASI_THREADS_MAX_TID, nextWorkerID, ThreadManager, kIsProxy, patchedWasiInstances, WASIThreads, ThreadMessageHandler, init_wasi_threads_esm_bundler, extendStatics, __assign, init_tslib_es6, emnapi_core_esm_bundler_exports, _WebAssembly2, MessageHandler, version2, init_emnapi_core_esm_bundler, emnapi_esm_bundler_exports, externalValue, External, supportNewFunction, _global, TryCatch, canSetFunctionName, supportReflect, supportFinalizer, supportWeakSymbol, supportBigInt, _require, _MessageChannel, _setImmediate, _Buffer, version3, NODE_API_SUPPORTED_VERSION_MIN, NODE_API_SUPPORTED_VERSION_MAX, NAPI_VERSION_EXPERIMENTAL, NODE_API_DEFAULT_MODULE_API_VERSION, Handle, ConstHandle, HandleStore, HandleScope, ScopeStore, RefTracker, Finalizer, TrackedFinalizer, Env, NodeEnv, EmnapiError, NotSupportWeakRefError, NotSupportBufferError, StrongRef, Persistent, ReferenceOwnership, Reference, ReferenceWithData, ReferenceWithFinalizer, Deferred, Store, CleanupHookCallback, CleanupQueue, NodejsWaitingRequestCounter, Context, defaultContext, init_emnapi_esm_bundler, wasm_util_esm_bundler_exports, _WebAssembly3, ignoreNames, Asyncify, CHAR_DOT, CHAR_FORWARD_SLASH, FD_DATASYNC, FD_READ, FD_SEEK, FD_FDSTAT_SET_FLAGS, FD_SYNC, FD_TELL, FD_WRITE, FD_ADVISE, FD_ALLOCATE, PATH_CREATE_DIRECTORY, PATH_CREATE_FILE, PATH_LINK_SOURCE, PATH_LINK_TARGET, PATH_OPEN, FD_READDIR, PATH_READLINK, PATH_RENAME_SOURCE, PATH_RENAME_TARGET, PATH_FILESTAT_GET, PATH_FILESTAT_SET_SIZE, PATH_FILESTAT_SET_TIMES, FD_FILESTAT_GET, FD_FILESTAT_SET_SIZE, FD_FILESTAT_SET_TIMES, PATH_SYMLINK, PATH_REMOVE_DIRECTORY, PATH_UNLINK_FILE, POLL_FD_READWRITE, SOCK_SHUTDOWN, SOCK_ACCEPT, WasiRights, WasiError, RIGHTS_ALL, BLOCK_DEVICE_BASE, BLOCK_DEVICE_INHERITING, CHARACTER_DEVICE_BASE, CHARACTER_DEVICE_INHERITING, REGULAR_FILE_BASE, REGULAR_FILE_INHERITING, DIRECTORY_BASE, DIRECTORY_INHERITING, SOCKET_BASE, SOCKET_INHERITING, TTY_BASE, TTY_INHERITING, FileDescriptor, StandardOutput, FileDescriptorTable, SyncTable, AsyncTable, WebAssemblyMemory, Memory, _memory, _wasi, _fs, encoder, decoder, INT64_MAX, WASI$1, kEmptyObject, kExitCode, kSetMemory, kStarted, kInstance, kBindingName, WASI, init_wasm_util_esm_bundler, require_fs_proxy, require_runtime, require_tailwindcss_oxide_wasi, require_tailwindcss_oxide_wasi2, require_node, import_enhanced_resolve, import_jiti, nativeImport = (id) => import(id), _transform, BACKSLASH = 92, SLASH = 47, ASTERISK = 42, DOUBLE_QUOTE = 34, SINGLE_QUOTE = 39, COLON = 58, SEMICOLON = 59, LINE_BREAK = 10, CARRIAGE_RETURN = 13, SPACE = 32, TAB = 9, OPEN_CURLY = 123, CLOSE_CURLY = 125, OPEN_PAREN = 40, CLOSE_PAREN = 41, OPEN_BRACKET = 91, CLOSE_BRACKET = 93, DASH = 45, AT_SIGN = 64, EXCLAMATION_MARK = 33, ignoredThemeKeyMap, Theme = class {
22891
22890
  constructor(values = /* @__PURE__ */ new Map, keyframes = /* @__PURE__ */ new Set([])) {
22892
22891
  this.values = values;
22893
22892
  this.keyframes = keyframes;
@@ -31526,7 +31525,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
31526
31525
  return false;
31527
31526
  let i2 = dist_i(true);
31528
31527
  return delete i2[t3], true;
31529
- }, ownKeys: () => Object.keys(dist_i(true)) }), to = "u" > typeof process && process.env && "development" || "", th = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CLOUDFLARE_WORKERS", "WORKERS_CI", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]], tc = function() {
31528
+ }, ownKeys: () => Object.keys(dist_i(true)) }), to = "u" > typeof process && process.env && "test" || "", th = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CLOUDFLARE_WORKERS", "WORKERS_CI", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]], tc = function() {
31530
31529
  if (globalThis.process?.env)
31531
31530
  for (let e10 of th) {
31532
31531
  let t3 = e10[1] || e10[0];
@@ -41573,9 +41572,11 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
41573
41572
  return actual.startsWith(prefix);
41574
41573
  }
41575
41574
  return actual === pattern;
41576
- }, MIME_MAP, callSharp = (sharpRef, input) => {
41577
- const factory = sharpRef;
41578
- return factory(input);
41575
+ }, MIME_MAP, isSharpFactory = (value2) => typeof value2 === "function", callSharp = (sharpRef, input) => {
41576
+ if (!isSharpFactory(sharpRef)) {
41577
+ throw new Error("Loaded sharp module is not callable.");
41578
+ }
41579
+ return sharpRef(input);
41579
41580
  }, toBuffer = (input) => {
41580
41581
  if (Buffer.isBuffer(input))
41581
41582
  return input;
@@ -41826,9 +41827,9 @@ var checkCandidate = (candidate) => {
41826
41827
  let { dir } = import.meta;
41827
41828
  while (dir !== parse4(dir).root) {
41828
41829
  const candidate = join10(dir, "package.json");
41829
- const version4 = checkCandidate(candidate);
41830
- if (version4) {
41831
- return version4;
41830
+ const version = checkCandidate(candidate);
41831
+ if (version) {
41832
+ return version;
41832
41833
  }
41833
41834
  dir = dirname7(dir);
41834
41835
  }
@@ -44517,7 +44518,7 @@ var resolveJsxDevRuntimeCompatPath = () => {
44517
44518
  return paths;
44518
44519
  }, generateEntrySource = async (specifier) => {
44519
44520
  if (specifier === "react/jsx-dev-runtime") {
44520
- return `export { Fragment, jsxDEV, default } from '${jsxDevRuntimeCompatPath}';
44521
+ return `export { Fragment, jsxDEV } from '${jsxDevRuntimeCompatPath}';
44521
44522
  `;
44522
44523
  }
44523
44524
  const mod = await import(specifier);
@@ -44580,13 +44581,49 @@ __export(exports_buildAngularVendor, {
44580
44581
  import { mkdirSync as mkdirSync7 } from "fs";
44581
44582
  import { join as join17 } from "path";
44582
44583
  import { rm as rm6 } from "fs/promises";
44583
- var {build: bunBuild4 } = globalThis.Bun;
44584
- var angularSpecifiers, toSafeFileName2 = (specifier) => specifier.replace(/^@/, "").replace(/\//g, "_"), buildAngularVendor = async (buildDir) => {
44584
+ var {build: bunBuild4, Glob: Glob6 } = globalThis.Bun;
44585
+ var REQUIRED_ANGULAR_SPECIFIERS, SERVER_ONLY_ANGULAR_SPECIFIERS, SCAN_SKIP_DIRS, isResolvable2 = (specifier) => {
44586
+ try {
44587
+ Bun.resolveSync(specifier, process.cwd());
44588
+ return true;
44589
+ } catch {
44590
+ return false;
44591
+ }
44592
+ }, isAngularBrowserSpecifier = (spec) => spec.startsWith("@angular/") && !SERVER_ONLY_ANGULAR_SPECIFIERS.has(spec), scanAngularSpecifiers = async (directories) => {
44593
+ const found = new Set;
44594
+ const transpiler4 = new Bun.Transpiler({ loader: "tsx" });
44595
+ const glob = new Glob6("**/*.{ts,tsx,js,jsx}");
44596
+ for (const dir of directories) {
44597
+ try {
44598
+ for await (const file4 of glob.scan({ absolute: true, cwd: dir })) {
44599
+ const rel = file4.slice(dir.length + 1);
44600
+ const [first] = rel.split("/");
44601
+ if (first && SCAN_SKIP_DIRS.has(first))
44602
+ continue;
44603
+ try {
44604
+ const content = await Bun.file(file4).text();
44605
+ for (const imp of transpiler4.scanImports(content)) {
44606
+ if (isAngularBrowserSpecifier(imp.path)) {
44607
+ found.add(imp.path);
44608
+ }
44609
+ }
44610
+ } catch {}
44611
+ }
44612
+ } catch {}
44613
+ }
44614
+ return found;
44615
+ }, toSafeFileName2 = (specifier) => specifier.replace(/^@/, "").replace(/\//g, "_"), resolveAngularSpecifiers = async (directories) => {
44616
+ const discovered = await scanAngularSpecifiers(directories);
44617
+ for (const spec of REQUIRED_ANGULAR_SPECIFIERS)
44618
+ discovered.add(spec);
44619
+ return Array.from(discovered).filter(isResolvable2);
44620
+ }, buildAngularVendor = async (buildDir, directories = []) => {
44585
44621
  const vendorDir = join17(buildDir, "angular", "vendor");
44586
44622
  mkdirSync7(vendorDir, { recursive: true });
44587
44623
  const tmpDir = join17(buildDir, "_angular_vendor_tmp");
44588
44624
  mkdirSync7(tmpDir, { recursive: true });
44589
- const entrypoints = await Promise.all(angularSpecifiers.map(async (specifier) => {
44625
+ const specifiers = await resolveAngularSpecifiers(directories);
44626
+ const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
44590
44627
  const safeName = toSafeFileName2(specifier);
44591
44628
  const entryPath = join17(tmpDir, `${safeName}.ts`);
44592
44629
  await Bun.write(entryPath, `export * from '${specifier}';
@@ -44608,22 +44645,35 @@ var angularSpecifiers, toSafeFileName2 = (specifier) => specifier.replace(/^@/,
44608
44645
  if (!result.success) {
44609
44646
  console.warn("\u26A0\uFE0F Angular vendor build had errors:", result.logs);
44610
44647
  }
44611
- }, computeAngularVendorPaths = () => {
44648
+ return specifiers;
44649
+ }, computeAngularVendorPaths = (specifiers = REQUIRED_ANGULAR_SPECIFIERS) => {
44612
44650
  const paths = {};
44613
- for (const specifier of angularSpecifiers) {
44651
+ for (const specifier of specifiers) {
44614
44652
  paths[specifier] = `/angular/vendor/${toSafeFileName2(specifier)}.js`;
44615
44653
  }
44616
44654
  return paths;
44617
44655
  };
44618
44656
  var init_buildAngularVendor = __esm(() => {
44619
44657
  init_angularLinkerPlugin();
44620
- angularSpecifiers = [
44658
+ REQUIRED_ANGULAR_SPECIFIERS = [
44621
44659
  "@angular/core",
44622
44660
  "@angular/compiler",
44623
44661
  "@angular/common",
44624
44662
  "@angular/common/http",
44625
44663
  "@angular/platform-browser"
44626
44664
  ];
44665
+ SERVER_ONLY_ANGULAR_SPECIFIERS = new Set([
44666
+ "@angular/platform-server",
44667
+ "@angular/ssr",
44668
+ "@angular/compiler-cli"
44669
+ ]);
44670
+ SCAN_SKIP_DIRS = new Set([
44671
+ "node_modules",
44672
+ "build",
44673
+ "dist",
44674
+ ".absolutejs",
44675
+ "generated"
44676
+ ]);
44627
44677
  });
44628
44678
 
44629
44679
  // src/build/buildVueVendor.ts
@@ -44701,14 +44751,14 @@ import { mkdirSync as mkdirSync9 } from "fs";
44701
44751
  import { join as join19 } from "path";
44702
44752
  import { rm as rm8 } from "fs/promises";
44703
44753
  var {build: bunBuild6 } = globalThis.Bun;
44704
- var svelteSpecifiers, isResolvable2 = (specifier) => {
44754
+ var svelteSpecifiers, isResolvable3 = (specifier) => {
44705
44755
  try {
44706
44756
  __require.resolve(specifier);
44707
44757
  return true;
44708
44758
  } catch {
44709
44759
  return false;
44710
44760
  }
44711
- }, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(isResolvable2), toSafeFileName4 = (specifier) => specifier.replace(/\//g, "_"), buildSvelteVendor = async (buildDir) => {
44761
+ }, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(isResolvable3), toSafeFileName4 = (specifier) => specifier.replace(/\//g, "_"), buildSvelteVendor = async (buildDir) => {
44712
44762
  const specifiers = resolveVendorSpecifiers2();
44713
44763
  if (specifiers.length === 0)
44714
44764
  return;
@@ -44804,7 +44854,7 @@ import {
44804
44854
  } from "fs";
44805
44855
  import { basename as basename8, dirname as dirname12, join as join20, relative as relative10, resolve as resolve21 } from "path";
44806
44856
  import { cwd, env as env3, exit } from "process";
44807
- var {build: bunBuild7, Glob: Glob6 } = globalThis.Bun;
44857
+ var {build: bunBuild7, Glob: Glob7 } = globalThis.Bun;
44808
44858
  var isDev2, collectConventionSourceFiles = (entry) => {
44809
44859
  if (!entry)
44810
44860
  return [];
@@ -44875,7 +44925,7 @@ var isDev2, collectConventionSourceFiles = (entry) => {
44875
44925
  exit(1);
44876
44926
  }, copyHtmxVendor = (htmxDir, htmxDestDir) => {
44877
44927
  mkdirSync10(htmxDestDir, { recursive: true });
44878
- const glob = new Glob6("htmx*.min.js");
44928
+ const glob = new Glob7("htmx*.min.js");
44879
44929
  for (const relPath of glob.scanSync({ cwd: htmxDir })) {
44880
44930
  const src = join20(htmxDir, relPath);
44881
44931
  const dest = join20(htmxDestDir, "htmx.min.js");
@@ -44893,15 +44943,19 @@ var isDev2, collectConventionSourceFiles = (entry) => {
44893
44943
  resolve21(import.meta.dir, "..", "..", "package.json"),
44894
44944
  resolve21(import.meta.dir, "..", "package.json")
44895
44945
  ];
44896
- for (const candidate of candidates) {
44946
+ const resolveCandidate = async (remaining) => {
44947
+ const [candidate, ...rest] = remaining;
44948
+ if (!candidate) {
44949
+ return;
44950
+ }
44897
44951
  const pkg = await tryReadPackageJson(candidate);
44898
- if (!pkg)
44899
- continue;
44900
- if (pkg.name !== "@absolutejs/absolute")
44901
- continue;
44952
+ if (!pkg || pkg.name !== "@absolutejs/absolute") {
44953
+ await resolveCandidate(rest);
44954
+ return;
44955
+ }
44902
44956
  globalThis.__absoluteVersion = pkg.version;
44903
- return;
44904
- }
44957
+ };
44958
+ await resolveCandidate(candidates);
44905
44959
  }, SKIP_DIRS, addWorkerPathIfExists = (file4, relPath, workerPaths) => {
44906
44960
  const absPath = resolve21(file4, "..", relPath);
44907
44961
  try {
@@ -44923,7 +44977,7 @@ var isDev2, collectConventionSourceFiles = (entry) => {
44923
44977
  collectWorkerPathsFromContent(content, pattern, file4, workerPaths);
44924
44978
  }
44925
44979
  }, scanWorkerReferencesInDir = async (dir, patterns, workerPaths) => {
44926
- const glob = new Glob6("**/*.{ts,tsx,js,jsx,svelte,vue}");
44980
+ const glob = new Glob7("**/*.{ts,tsx,js,jsx,svelte,vue}");
44927
44981
  for await (const file4 of glob.scan({ absolute: true, cwd: dir })) {
44928
44982
  const relToDir = file4.slice(dir.length + 1);
44929
44983
  const [firstSegment] = relToDir.split("/");
@@ -44935,9 +44989,7 @@ var isDev2, collectConventionSourceFiles = (entry) => {
44935
44989
  const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
44936
44990
  const resolvePattern = /import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g;
44937
44991
  const workerPaths = new Set;
44938
- for (const dir of dirs) {
44939
- await scanWorkerReferencesInDir(dir, [urlPattern, resolvePattern], workerPaths);
44940
- }
44992
+ await dirs.reduce((chain, dir) => chain.then(() => scanWorkerReferencesInDir(dir, [urlPattern, resolvePattern], workerPaths)), Promise.resolve());
44941
44993
  return [...workerPaths];
44942
44994
  }, copyDevIndexes = async ({
44943
44995
  buildPath,
@@ -45471,7 +45523,7 @@ ${content.slice(firstUseIdx)}`;
45471
45523
  let angularVendorPaths2 = getAngularVendorPaths();
45472
45524
  if (!angularVendorPaths2 && hmr && angularDir) {
45473
45525
  const { computeAngularVendorPaths: computeAngularVendorPaths2 } = await Promise.resolve().then(() => (init_buildAngularVendor(), exports_buildAngularVendor));
45474
- angularVendorPaths2 = computeAngularVendorPaths2();
45526
+ angularVendorPaths2 = computeAngularVendorPaths2(globalThis.__angularVendorSpecifiers);
45475
45527
  setAngularVendorPaths(angularVendorPaths2);
45476
45528
  }
45477
45529
  let vueVendorPaths2 = getVueVendorPaths();
@@ -45549,16 +45601,7 @@ ${content.slice(firstUseIdx)}`;
45549
45601
  "svelte/*",
45550
45602
  "vue",
45551
45603
  "vue/*",
45552
- "@angular/core",
45553
- "@angular/core/*",
45554
- "@angular/common",
45555
- "@angular/common/*",
45556
- "@angular/compiler",
45557
- "@angular/compiler/*",
45558
- "@angular/platform-browser",
45559
- "@angular/platform-browser/*",
45560
- "@angular/platform-server",
45561
- "@angular/platform-server/*",
45604
+ "@angular/*",
45562
45605
  "typescript"
45563
45606
  ],
45564
45607
  format: "esm",
@@ -45612,9 +45655,9 @@ ${content.slice(firstUseIdx)}`;
45612
45655
  entrypoints: globalCssEntries,
45613
45656
  naming: `[dir]/[name].[hash].[ext]`,
45614
45657
  outdir: stylesDir ? join20(buildPath, basename8(stylesDir)) : buildPath,
45658
+ plugins: [stylePreprocessorPlugin2],
45615
45659
  root: stylesDir || clientRoot,
45616
45660
  target: "browser",
45617
- plugins: [stylePreprocessorPlugin2],
45618
45661
  throw: false
45619
45662
  }) : undefined,
45620
45663
  vueCssPaths.length > 0 ? bunBuild7({
@@ -45905,7 +45948,7 @@ var init_build = __esm(() => {
45905
45948
 
45906
45949
  // src/dev/dependencyGraph.ts
45907
45950
  import { existsSync as existsSync19, readFileSync as readFileSync12 } from "fs";
45908
- var {Glob: Glob7 } = globalThis.Bun;
45951
+ var {Glob: Glob8 } = globalThis.Bun;
45909
45952
  import { resolve as resolve23 } from "path";
45910
45953
  var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath) => {
45911
45954
  const lower = filePath.toLowerCase();
@@ -45967,7 +46010,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
45967
46010
  dependencies.forEach(addDependent);
45968
46011
  }, IGNORED_SEGMENTS, buildInitialDependencyGraph = (graph, directories) => {
45969
46012
  const processedFiles = new Set;
45970
- const glob = new Glob7("**/*.{ts,tsx,js,jsx,vue,svelte,html,htm}");
46013
+ const glob = new Glob8("**/*.{ts,tsx,js,jsx,vue,svelte,html,htm}");
45971
46014
  const resolvedDirs = directories.map((dir) => resolve23(dir)).filter((dir) => existsSync19(dir));
45972
46015
  const allFiles = resolvedDirs.flatMap((dir) => Array.from(glob.scanSync({ absolute: true, cwd: dir })));
45973
46016
  for (const file4 of allFiles) {
@@ -46154,14 +46197,14 @@ var globalVersionCounter = 0, createModuleVersionTracker = () => new Map, getNex
46154
46197
  }, incrementModuleVersions = (versions, modulePaths) => {
46155
46198
  const updated = new Map;
46156
46199
  for (const path2 of modulePaths) {
46157
- const version4 = incrementModuleVersion(versions, path2);
46158
- updated.set(path2, version4);
46200
+ const version = incrementModuleVersion(versions, path2);
46201
+ updated.set(path2, version);
46159
46202
  }
46160
46203
  return updated;
46161
46204
  }, serializeModuleVersions = (versions) => {
46162
46205
  const serialized = {};
46163
- for (const [path2, version4] of versions.entries()) {
46164
- serialized[path2] = version4;
46206
+ for (const [path2, version] of versions.entries()) {
46207
+ serialized[path2] = version;
46165
46208
  }
46166
46209
  return serialized;
46167
46210
  };
@@ -46773,9 +46816,9 @@ var init_webSocket = __esm(() => {
46773
46816
  });
46774
46817
 
46775
46818
  // src/core/ssrCache.ts
46776
- var dirtyFrameworks, markSsrCacheDirty = (framework) => {
46819
+ var dirtyFrameworks, isSsrCacheDirty = (framework) => dirtyFrameworks.has(framework), markSsrCacheDirty = (framework) => {
46777
46820
  dirtyFrameworks.add(framework);
46778
- }, isSsrCacheDirty = (framework) => dirtyFrameworks.has(framework);
46821
+ };
46779
46822
  var init_ssrCache = __esm(() => {
46780
46823
  dirtyFrameworks = new Set;
46781
46824
  });
@@ -47894,7 +47937,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
47894
47937
  if (!angVendorPaths) {
47895
47938
  const { computeAngularVendorPaths: computeAngularVendorPaths2 } = await Promise.resolve().then(() => (init_buildAngularVendor(), exports_buildAngularVendor));
47896
47939
  const { setAngularVendorPaths: setAngularVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
47897
- angVendorPaths = computeAngularVendorPaths2();
47940
+ angVendorPaths = computeAngularVendorPaths2(globalThis.__angularVendorSpecifiers);
47898
47941
  setAngularVendorPaths2(angVendorPaths);
47899
47942
  }
47900
47943
  const clientResult = await bunBuild8({
@@ -49162,15 +49205,15 @@ __export(exports_buildDepVendor, {
49162
49205
  import { mkdirSync as mkdirSync11 } from "fs";
49163
49206
  import { join as join22 } from "path";
49164
49207
  import { rm as rm9 } from "fs/promises";
49165
- var {build: bunBuild8, Glob: Glob8 } = globalThis.Bun;
49166
- var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_"), isResolvable3 = (specifier) => {
49208
+ var {build: bunBuild8, Glob: Glob9 } = globalThis.Bun;
49209
+ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_"), isResolvable4 = (specifier) => {
49167
49210
  try {
49168
49211
  Bun.resolveSync(specifier, process.cwd());
49169
49212
  return true;
49170
49213
  } catch {
49171
49214
  return false;
49172
49215
  }
49173
- }, isBareSpecifier = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, isSkippedFile = (file4) => file4.includes("node_modules") || file4.includes("/build/") || file4.includes("/dist/") || file4.includes("/indexes/"), isDepSpecifier = (path2) => isBareSpecifier(path2) && !FRAMEWORK_SPECIFIERS.has(path2) && !isAbsolutePackageSpecifier(path2), readFileSpecifiers = async (file4, transpiler4) => {
49216
+ }, isBareSpecifier = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, FRAMEWORK_NAMESPACE_PREFIXES, isFrameworkSpecifier = (spec) => FRAMEWORK_SPECIFIERS.has(spec) || FRAMEWORK_NAMESPACE_PREFIXES.some((prefix) => spec.startsWith(prefix)), FRAMEWORK_EXTERNALS, isSkippedFile = (file4) => file4.includes("node_modules") || file4.includes("/build/") || file4.includes("/dist/") || file4.includes("/indexes/"), isDepSpecifier = (path2) => isBareSpecifier(path2) && !isFrameworkSpecifier(path2) && !isAbsolutePackageSpecifier(path2), readFileSpecifiers = async (file4, transpiler4) => {
49174
49217
  const empty = [];
49175
49218
  try {
49176
49219
  const content = await Bun.file(file4).text();
@@ -49180,7 +49223,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
49180
49223
  }
49181
49224
  }, scanDirFiles = async (dir) => {
49182
49225
  const empty = [];
49183
- const glob = new Glob8("**/*.{ts,tsx,js,jsx}");
49226
+ const glob = new Glob9("**/*.{ts,tsx,js,jsx}");
49184
49227
  try {
49185
49228
  const all = await Array.fromAsync(glob.scan({ absolute: true, cwd: dir }));
49186
49229
  return all.filter((file4) => !isSkippedFile(file4));
@@ -49197,7 +49240,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
49197
49240
  const specifiers = new Set;
49198
49241
  const transpiler4 = new Bun.Transpiler({ loader: "tsx" });
49199
49242
  await Promise.all(directories.map((dir) => collectDirSpecifiers(dir, transpiler4, specifiers)));
49200
- return Array.from(specifiers).filter(isResolvable3);
49243
+ return Array.from(specifiers).filter(isResolvable4);
49201
49244
  }, generateEntrySource2 = (specifier) => `export * from '${specifier}';
49202
49245
  `, rewriteVendorFiles = async (vendorDir) => {
49203
49246
  const { readdirSync: readdirSync2, readFileSync: readFileSync15, writeFileSync: writeFileSync8 } = await import("fs");
@@ -49233,7 +49276,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
49233
49276
  }));
49234
49277
  const result = await bunBuild8({
49235
49278
  entrypoints,
49236
- external: [...FRAMEWORK_SPECIFIERS],
49279
+ external: FRAMEWORK_EXTERNALS,
49237
49280
  format: "esm",
49238
49281
  minify: false,
49239
49282
  naming: "[name].[ext]",
@@ -49281,14 +49324,13 @@ var init_buildDepVendor = __esm(() => {
49281
49324
  "svelte/compiler",
49282
49325
  "vue",
49283
49326
  "vue/server-renderer",
49284
- "@vue/compiler-sfc",
49285
- "@angular/core",
49286
- "@angular/common",
49287
- "@angular/compiler",
49288
- "@angular/platform-browser",
49289
- "@angular/platform-server",
49290
- "@angular/ssr"
49327
+ "@vue/compiler-sfc"
49291
49328
  ]);
49329
+ FRAMEWORK_NAMESPACE_PREFIXES = ["@angular/"];
49330
+ FRAMEWORK_EXTERNALS = [
49331
+ ...FRAMEWORK_SPECIFIERS,
49332
+ ...FRAMEWORK_NAMESPACE_PREFIXES.map((prefix) => `${prefix}*`)
49333
+ ];
49292
49334
  });
49293
49335
 
49294
49336
  // src/core/devBuild.ts
@@ -49370,9 +49412,11 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
49370
49412
  delete target[key];
49371
49413
  }
49372
49414
  }, REBUILD_POLL_MS = 10, waitForRebuild = async (state) => {
49373
- while (state.isRebuilding) {
49374
- await Bun.sleep(REBUILD_POLL_MS);
49415
+ if (!state.isRebuilding) {
49416
+ return;
49375
49417
  }
49418
+ await Bun.sleep(REBUILD_POLL_MS);
49419
+ await waitForRebuild(state);
49376
49420
  }, rebuildManifest = async (cached) => {
49377
49421
  const state = cached.hmrState;
49378
49422
  await waitForRebuild(state);
@@ -49438,12 +49482,25 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
49438
49482
  resolve34(import.meta.dir, "..", "..", "package.json"),
49439
49483
  resolve34(import.meta.dir, "..", "package.json")
49440
49484
  ];
49441
- for (const candidate of candidates) {
49442
- const found = await tryReadPackageVersion(candidate);
49443
- if (found) {
49444
- return;
49445
- }
49485
+ const [candidate, ...remaining] = candidates;
49486
+ if (!candidate) {
49487
+ return;
49446
49488
  }
49489
+ const found = await tryReadPackageVersion(candidate);
49490
+ if (found) {
49491
+ return;
49492
+ }
49493
+ await resolveAbsoluteVersionFromCandidates(remaining);
49494
+ }, resolveAbsoluteVersionFromCandidates = async (candidates) => {
49495
+ const [candidate, ...remaining] = candidates;
49496
+ if (!candidate) {
49497
+ return;
49498
+ }
49499
+ const found = await tryReadPackageVersion(candidate);
49500
+ if (found) {
49501
+ return;
49502
+ }
49503
+ await resolveAbsoluteVersionFromCandidates(remaining);
49447
49504
  }, loadVendorFiles = async (assetStore, vendorDir, framework) => {
49448
49505
  const emptyStringArray = [];
49449
49506
  const entries = await readdir4(vendorDir).catch(() => emptyStringArray);
@@ -49460,9 +49517,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
49460
49517
  }
49461
49518
  const startupSteps = [];
49462
49519
  const recordStep = (label, startedAt) => {
49520
+ const durationMs = performance.now() - startedAt;
49463
49521
  startupSteps.push({
49464
- label,
49465
- durationMs: performance.now() - startedAt
49522
+ durationMs,
49523
+ label
49466
49524
  });
49467
49525
  };
49468
49526
  let stepStartedAt = performance.now();
@@ -49520,9 +49578,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
49520
49578
  }
49521
49579
  return true;
49522
49580
  }) : undefined;
49523
- const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir).then(async () => {
49581
+ const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir, sourceDirs).then(async (specs) => {
49524
49582
  const vendorDir = resolve34(state.resolvedPaths.buildDir, "angular", "vendor");
49525
49583
  await loadVendorFiles(state.assetStore, vendorDir, "angular");
49584
+ globalThis.__angularVendorSpecifiers = specs;
49526
49585
  return true;
49527
49586
  }) : undefined;
49528
49587
  const buildSvelteVendorTask = config.svelteDirectory ? buildSvelteVendor(state.resolvedPaths.buildDir).then(async () => {
@@ -49650,16 +49709,18 @@ import Elysia2 from "elysia";
49650
49709
  var STORE_KEY = "__elysiaStore", getGlobalValue = (key) => Reflect.get(globalThis, key), restoreStore = (store) => {
49651
49710
  const saved = getGlobalValue(STORE_KEY);
49652
49711
  if (saved && typeof saved === "object") {
49653
- const savedRecord = saved;
49654
- if (store && typeof store === "object") {
49655
- Object.keys(savedRecord).forEach((key) => {
49656
- Reflect.set(store, key, savedRecord[key]);
49657
- });
49658
- }
49712
+ restoreSavedStoreValues(store, saved);
49659
49713
  }
49660
49714
  if (store && typeof store === "object") {
49661
49715
  Reflect.set(globalThis, STORE_KEY, store);
49662
49716
  }
49717
+ }, restoreSavedStoreValues = (store, saved) => {
49718
+ if (!store || typeof store !== "object") {
49719
+ return;
49720
+ }
49721
+ Object.entries(saved).forEach(([key, value2]) => {
49722
+ Reflect.set(store, key, value2);
49723
+ });
49663
49724
  }, resolveModuleResponse = (moduleResponse, ifNoneMatch) => {
49664
49725
  const etag = moduleResponse.headers.get("ETag");
49665
49726
  if (etag && ifNoneMatch === etag) {
@@ -50195,16 +50256,21 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
50195
50256
  }, waitForServerReady = async (port) => {
50196
50257
  const deadline = performance.now() + getStartupTimeoutMs();
50197
50258
  while (performance.now() < deadline) {
50198
- const res = await fetch(`http://localhost:${port}/`).catch(() => null);
50199
- if (res) {
50200
- await res.body?.cancel().catch(() => {
50201
- return;
50202
- });
50259
+ if (await probePrerenderServer(port)) {
50203
50260
  return true;
50204
50261
  }
50205
50262
  await Bun.sleep(STARTUP_POLL_INTERVAL_MS);
50206
50263
  }
50207
50264
  return false;
50265
+ }, probePrerenderServer = async (port) => {
50266
+ const res = await fetch(`http://localhost:${port}/`).catch(() => null);
50267
+ if (!res) {
50268
+ return false;
50269
+ }
50270
+ await res.body?.cancel().catch(() => {
50271
+ return;
50272
+ });
50273
+ return true;
50208
50274
  }, captureStreamOutput = (stream, output) => {
50209
50275
  if (!stream)
50210
50276
  return;
@@ -50741,6 +50807,7 @@ var isWorkspaceConfig = (config) => {
50741
50807
  }
50742
50808
  return entries.every(([, value]) => isServiceCandidate(value));
50743
50809
  };
50810
+ var isConfigInput = (value) => isObject(value);
50744
50811
  var getWorkspaceServices = (config) => {
50745
50812
  if (!isWorkspaceConfig(config)) {
50746
50813
  throw new Error("absolute.config.ts is not a multi-service config. Define top-level named services with `entry` or `command` before using `absolute workspace dev`.");
@@ -50770,6 +50837,17 @@ var projectServiceConfig = (config, serviceName) => {
50770
50837
  } = service;
50771
50838
  return serviceConfig;
50772
50839
  };
50840
+ var loadConfig = async (configPath) => {
50841
+ const config = await loadRawConfig(configPath);
50842
+ const serviceName = process.env.ABSOLUTE_WORKSPACE_SERVICE_NAME;
50843
+ if (typeof serviceName === "string" && serviceName.length > 0) {
50844
+ return projectServiceConfig(config, serviceName);
50845
+ }
50846
+ if (isWorkspaceConfig(config)) {
50847
+ throw new Error("absolute.config.ts defines multiple services. Use `absolute workspace dev` or set ABSOLUTE_WORKSPACE_SERVICE_NAME before loading a specific service config.");
50848
+ }
50849
+ return config;
50850
+ };
50773
50851
  var loadRawConfig = async (configPath) => {
50774
50852
  const resolved = resolve7(configPath ?? process.env.ABSOLUTE_CONFIG ?? "absolute.config.ts");
50775
50853
  const mod = await import(resolved);
@@ -50778,22 +50856,11 @@ var loadRawConfig = async (configPath) => {
50778
50856
  throw new Error(`Config file "${resolved}" does not export a valid configuration.
50779
50857
  Expected: export default defineConfig({ ... })`);
50780
50858
  }
50781
- if (!isObject(config)) {
50859
+ if (!isConfigInput(config)) {
50782
50860
  throw new Error(`Config file "${resolved}" must export an object configuration.`);
50783
50861
  }
50784
50862
  return config;
50785
50863
  };
50786
- var loadConfig = async (configPath) => {
50787
- const config = await loadRawConfig(configPath);
50788
- const serviceName = process.env.ABSOLUTE_WORKSPACE_SERVICE_NAME;
50789
- if (typeof serviceName === "string" && serviceName.length > 0) {
50790
- return projectServiceConfig(config, serviceName);
50791
- }
50792
- if (isWorkspaceConfig(config)) {
50793
- throw new Error("absolute.config.ts defines multiple services. Use `absolute workspace dev` or set ABSOLUTE_WORKSPACE_SERVICE_NAME before loading a specific service config.");
50794
- }
50795
- return config;
50796
- };
50797
50864
 
50798
50865
  // src/core/loadIslandRegistry.ts
50799
50866
  init_islandEntries();
@@ -50855,7 +50922,7 @@ var resolveNotFoundConventionPath = (framework) => getMap()[framework]?.defaults
50855
50922
  var setConventions = (map) => {
50856
50923
  Reflect.set(globalThis, CONVENTIONS_KEY, map);
50857
50924
  };
50858
- var isDev = () => true;
50925
+ var isDev = () => false;
50859
50926
  var buildErrorProps = (error) => {
50860
50927
  const message = error instanceof Error ? error.message : String(error);
50861
50928
  const stack = isDev() && error instanceof Error ? error.stack : undefined;
@@ -51029,14 +51096,21 @@ var NOT_FOUND_PRIORITY = [
51029
51096
  "angular"
51030
51097
  ];
51031
51098
  var renderFirstNotFound = async () => {
51032
- for (const framework of NOT_FOUND_PRIORITY) {
51033
- if (!getMap()[framework]?.defaults?.notFound)
51034
- continue;
51099
+ const renderNext = async (frameworks2) => {
51100
+ const [framework, ...remaining] = frameworks2;
51101
+ if (!framework) {
51102
+ return null;
51103
+ }
51104
+ if (!getMap()[framework]?.defaults?.notFound) {
51105
+ return renderNext(remaining);
51106
+ }
51035
51107
  const response = await renderConventionNotFound(framework);
51036
- if (response)
51108
+ if (response) {
51037
51109
  return response;
51038
- }
51039
- return null;
51110
+ }
51111
+ return renderNext(remaining);
51112
+ };
51113
+ return renderNext(NOT_FOUND_PRIORITY);
51040
51114
  };
51041
51115
 
51042
51116
  // src/core/prepare.ts
@@ -51064,10 +51138,10 @@ var buildPrewarmDirs = (config) => {
51064
51138
  return dirs;
51065
51139
  };
51066
51140
  var collectPrewarmFiles = async (prewarmDirs) => {
51067
- const { Glob: Glob9 } = await Promise.resolve(globalThis.Bun);
51141
+ const { Glob: Glob10 } = await Promise.resolve(globalThis.Bun);
51068
51142
  const files = [];
51069
51143
  for (const { dir, pattern } of prewarmDirs) {
51070
- const glob = new Glob9(pattern);
51144
+ const glob = new Glob10(pattern);
51071
51145
  const matches = [
51072
51146
  ...glob.scanSync({ absolute: true, cwd: resolve37(dir) })
51073
51147
  ];
@@ -51197,8 +51271,8 @@ var prepareDev = async (config, buildDir) => {
51197
51271
  uuid: config.dev?.devtools?.uuid,
51198
51272
  uuidCachePath: config.dev?.devtools?.uuidCachePath
51199
51273
  })).use(imageOptimizer2(config.images, buildDir)).use(staticPlugin({
51200
- assets: buildDir,
51201
51274
  alwaysStatic: true,
51275
+ assets: buildDir,
51202
51276
  directive: "no-cache",
51203
51277
  maxAge: null,
51204
51278
  prefix: "",
@@ -51283,8 +51357,8 @@ var prepare = async (configOrPath) => {
51283
51357
  stepStartedAt = performance.now();
51284
51358
  const { staticPlugin } = await import("@elysiajs/static");
51285
51359
  const staticFiles = staticPlugin({
51286
- assets: buildDir,
51287
51360
  alwaysStatic: true,
51361
+ assets: buildDir,
51288
51362
  prefix: "",
51289
51363
  staticLimit: MAX_STATIC_ROUTE_COUNT
51290
51364
  });
@@ -51311,7 +51385,9 @@ var prepare = async (configOrPath) => {
51311
51385
  const age = Date.now() - renderedAt;
51312
51386
  if (revalidateMs > 0 && renderedAt > 0 && age > revalidateMs) {
51313
51387
  rerendering.add(url.pathname);
51314
- rerenderRoute2(url.pathname, port, prerenderDir).catch(() => {}).finally(() => rerendering.delete(url.pathname));
51388
+ rerenderRoute2(url.pathname, port, prerenderDir).catch(() => {
51389
+ return;
51390
+ }).finally(() => rerendering.delete(url.pathname));
51315
51391
  }
51316
51392
  return new Response(Bun.file(filePath), {
51317
51393
  headers: { "content-type": "text/html; charset=utf-8" }
@@ -51336,7 +51412,10 @@ var prepare = async (configOrPath) => {
51336
51412
  init_renderIslandMarkup();
51337
51413
 
51338
51414
  // src/core/wrapPageHandlerWithStreamingSlots.ts
51339
- var wrapPageHandlerWithStreamingSlots = (handler, options) => (...args) => withRegisteredStreamingSlots(() => handler(...args), options);
51415
+ var wrapPageHandlerWithStreamingSlots = (handler, options) => {
51416
+ const wrapped = (...args) => withRegisteredStreamingSlots(() => handler(...args), options);
51417
+ return wrapped;
51418
+ };
51340
51419
  // src/plugins/networking.ts
51341
51420
  init_constants();
51342
51421
  import { argv } from "process";
@@ -51521,8 +51600,8 @@ var networking = (app) => app.listen({
51521
51600
  return;
51522
51601
  }
51523
51602
  const buildDuration = globalThis.__hmrBuildDuration ?? Number(env4.ABSOLUTE_BUILD_DURATION || 0);
51524
- const readyDuration = process.uptime() * 1000;
51525
- const version4 = globalThis.__absoluteVersion || env4.ABSOLUTE_VERSION || "";
51603
+ const readyDuration = process.uptime() * MILLISECONDS_IN_A_SECOND;
51604
+ const version = globalThis.__absoluteVersion || env4.ABSOLUTE_VERSION || "";
51526
51605
  startupBanner({
51527
51606
  buildDuration,
51528
51607
  host,
@@ -51530,7 +51609,7 @@ var networking = (app) => app.listen({
51530
51609
  port,
51531
51610
  protocol,
51532
51611
  readyDuration,
51533
- version: version4
51612
+ version
51534
51613
  });
51535
51614
  });
51536
51615
  // src/plugins/pageRouter.ts
@@ -57878,6 +57957,27 @@ export {
57878
57957
  asset,
57879
57958
  appendStreamingSlotPatchesToStream,
57880
57959
  WS_READY_STATE_OPEN,
57960
+ WORKSPACE_TUI_VISIBILITY_WIDTH,
57961
+ WORKSPACE_TUI_TARGET_PADDING_WIDTH,
57962
+ WORKSPACE_TUI_STATUS_WIDTH,
57963
+ WORKSPACE_TUI_RENDER_DEBOUNCE_MS,
57964
+ WORKSPACE_TUI_RECENT_LOG_LIMIT,
57965
+ WORKSPACE_TUI_PROMPT_CURSOR_OFFSET,
57966
+ WORKSPACE_TUI_MIN_WRAP_WIDTH,
57967
+ WORKSPACE_TUI_MIN_TARGET_WIDTH,
57968
+ WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH,
57969
+ WORKSPACE_TUI_MIN_LOG_HEIGHT,
57970
+ WORKSPACE_TUI_FOOTER_LINE_COUNT,
57971
+ WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
57972
+ WORKSPACE_TUI_DEFAULT_WIDTH,
57973
+ WORKSPACE_TUI_DEFAULT_HEIGHT,
57974
+ WORKSPACE_SHUTDOWN_TIMEOUT_MS,
57975
+ WORKSPACE_READY_TIMEOUT_MS,
57976
+ WORKSPACE_READY_PROBE_INTERVAL_MS,
57977
+ WORKSPACE_READY_ATTEMPT_TIMEOUT_MS,
57978
+ WORKSPACE_FAILURE_RECENT_LOG_LIMIT,
57979
+ WORKSPACE_FAILURE_LOG_PRINT_LIMIT,
57980
+ WORKSPACE_COMMAND_ARGS_OFFSET,
57881
57981
  WEBSOCKET_NORMAL_CLOSURE,
57882
57982
  UNFOUND_INDEX,
57883
57983
  TWO_THIRDS,
@@ -57933,5 +58033,5 @@ export {
57933
58033
  ANGULAR_INIT_TIMEOUT_MS
57934
58034
  };
57935
58035
 
57936
- //# debugId=86E5E86ED2B2842E64756E2164756E21
58036
+ //# debugId=1C663D87BEAFDA4164756E2164756E21
57937
58037
  //# sourceMappingURL=index.js.map