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

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 (106) hide show
  1. package/dist/angular/browser.js +1 -19
  2. package/dist/angular/browser.js.map +3 -3
  3. package/dist/angular/components/constants.js +78 -0
  4. package/dist/angular/components/core/streamingSlotRegistrar.js +58 -0
  5. package/dist/angular/components/core/streamingSlotRegistry.js +114 -0
  6. package/dist/angular/components/defer-slot-payload.js +6 -0
  7. package/dist/angular/components/defer-slot-templates.directive.js +44 -0
  8. package/dist/angular/components/defer-slot.component.js +149 -0
  9. package/dist/angular/components/image.component.js +202 -0
  10. package/dist/angular/components/index.js +4 -0
  11. package/dist/angular/components/stream-slot.component.js +103 -0
  12. package/dist/angular/index.js +91 -36
  13. package/dist/angular/index.js.map +6 -6
  14. package/dist/angular/server.js +91 -36
  15. package/dist/angular/server.js.map +6 -6
  16. package/dist/build.js +242 -162
  17. package/dist/build.js.map +12 -12
  18. package/dist/cli/index.js +214 -142
  19. package/dist/client/index.js +86 -31
  20. package/dist/client/index.js.map +4 -4
  21. package/dist/core/streamingSlotRegistrar.js +1 -19
  22. package/dist/core/streamingSlotRegistrar.js.map +2 -2
  23. package/dist/core/streamingSlotRegistry.js +1 -19
  24. package/dist/core/streamingSlotRegistry.js.map +2 -2
  25. package/dist/dev/client/constants.ts +26 -0
  26. package/dist/dev/client/cssUtils.ts +307 -0
  27. package/dist/dev/client/domDiff.ts +226 -0
  28. package/dist/dev/client/domState.ts +421 -0
  29. package/dist/dev/client/domTracker.ts +61 -0
  30. package/dist/dev/client/errorOverlay.ts +184 -0
  31. package/dist/dev/client/frameworkDetect.ts +63 -0
  32. package/dist/dev/client/handlers/angular.ts +578 -0
  33. package/dist/dev/client/handlers/angularRuntime.ts +231 -0
  34. package/dist/dev/client/handlers/html.ts +364 -0
  35. package/dist/dev/client/handlers/htmx.ts +278 -0
  36. package/dist/dev/client/handlers/react.ts +108 -0
  37. package/dist/dev/client/handlers/rebuild.ts +153 -0
  38. package/dist/dev/client/handlers/svelte.ts +334 -0
  39. package/dist/dev/client/handlers/vue.ts +292 -0
  40. package/dist/dev/client/headPatch.ts +233 -0
  41. package/dist/dev/client/hmrClient.ts +273 -0
  42. package/dist/dev/client/hmrState.ts +14 -0
  43. package/dist/dev/client/moduleVersions.ts +62 -0
  44. package/dist/dev/client/reactRefreshSetup.ts +31 -0
  45. package/dist/index.js +282 -187
  46. package/dist/index.js.map +15 -15
  47. package/dist/islands/browser.js +1 -19
  48. package/dist/islands/browser.js.map +2 -2
  49. package/dist/islands/index.js +80 -26
  50. package/dist/islands/index.js.map +5 -5
  51. package/dist/react/browser.js +7 -25
  52. package/dist/react/browser.js.map +2 -2
  53. package/dist/react/components/browser/index.js +101 -101
  54. package/dist/react/components/index.js +104 -122
  55. package/dist/react/components/index.js.map +3 -3
  56. package/dist/react/hooks/index.js +1 -19
  57. package/dist/react/hooks/index.js.map +2 -2
  58. package/dist/react/index.js +101 -46
  59. package/dist/react/index.js.map +6 -6
  60. package/dist/react/jsxDevRuntimeCompat.js +1 -19
  61. package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
  62. package/dist/react/server.js +13 -30
  63. package/dist/react/server.js.map +4 -4
  64. package/dist/src/angular/components/constants.d.ts +75 -0
  65. package/dist/src/angular/components/defer-slot-templates.directive.d.ts +7 -0
  66. package/dist/src/angular/components/defer-slot.component.d.ts +5 -2
  67. package/dist/src/angular/components/image.component.d.ts +5 -2
  68. package/dist/src/angular/components/index.d.ts +4 -4
  69. package/dist/src/angular/components/stream-slot.component.d.ts +3 -0
  70. package/dist/src/client/streamSwap.d.ts +0 -10
  71. package/dist/src/constants.d.ts +1 -0
  72. package/dist/src/dev/rebuildTrigger.d.ts +1 -1
  73. package/dist/src/svelte/renderToPipeableStream.d.ts +2 -2
  74. package/dist/src/svelte/renderToReadableStream.d.ts +2 -2
  75. package/dist/src/svelte/renderToString.d.ts +2 -2
  76. package/dist/src/vue/components/Image.d.ts +3 -3
  77. package/dist/svelte/browser.js +1 -19
  78. package/dist/svelte/browser.js.map +2 -2
  79. package/dist/svelte/components/AwaitSlot.svelte +39 -0
  80. package/dist/svelte/components/AwaitSlot.svelte.d.ts +2 -0
  81. package/dist/svelte/components/Head.svelte +144 -0
  82. package/dist/svelte/components/Head.svelte.d.ts +2 -0
  83. package/dist/svelte/components/Image.svelte +164 -0
  84. package/dist/svelte/components/Image.svelte.d.ts +5 -0
  85. package/dist/svelte/components/Island.svelte +71 -0
  86. package/dist/svelte/components/Island.svelte.d.ts +5 -0
  87. package/dist/svelte/components/JsonLd.svelte +21 -0
  88. package/dist/svelte/components/JsonLd.svelte.d.ts +2 -0
  89. package/dist/svelte/components/StreamSlot.svelte +41 -0
  90. package/dist/svelte/components/StreamSlot.svelte.d.ts +2 -0
  91. package/dist/svelte/index.js +93 -37
  92. package/dist/svelte/index.js.map +7 -7
  93. package/dist/svelte/server.js +16 -32
  94. package/dist/svelte/server.js.map +5 -5
  95. package/dist/types/globals.d.ts +130 -0
  96. package/dist/vue/browser.js +1 -19
  97. package/dist/vue/browser.js.map +2 -2
  98. package/dist/vue/components/Image.js +1 -19
  99. package/dist/vue/components/Image.js.map +3 -3
  100. package/dist/vue/components/index.js +1 -19
  101. package/dist/vue/components/index.js.map +3 -3
  102. package/dist/vue/index.js +91 -36
  103. package/dist/vue/index.js.map +7 -7
  104. package/dist/vue/server.js +13 -30
  105. package/dist/vue/server.js.map +4 -4
  106. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,6 @@ var __create = Object.create;
3
3
  var __getProtoOf = Object.getPrototypeOf;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
7
  function __accessProp(key) {
9
8
  return this[key];
@@ -30,23 +29,6 @@ var __toESM = (mod, isNodeMode, target) => {
30
29
  cache.set(mod, to);
31
30
  return to;
32
31
  };
33
- var __toCommonJS = (from) => {
34
- var entry = (__moduleCache ??= new WeakMap).get(from), desc;
35
- if (entry)
36
- return entry;
37
- entry = __defProp({}, "__esModule", { value: true });
38
- if (from && typeof from === "object" || typeof from === "function") {
39
- for (var key of __getOwnPropNames(from))
40
- if (!__hasOwnProp.call(entry, key))
41
- __defProp(entry, key, {
42
- get: __accessProp.bind(from, key),
43
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
44
- });
45
- }
46
- __moduleCache.set(from, entry);
47
- return entry;
48
- };
49
- var __moduleCache;
50
32
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
51
33
  var __returnValue = (v) => v;
52
34
  function __exportSetter(name, newValue) {
@@ -102,7 +84,7 @@ var isValidHMRClientMessage = (data) => {
102
84
  var WS_READY_STATE_OPEN = 1;
103
85
 
104
86
  // 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, 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;
87
+ var ANGULAR_INIT_TIMEOUT_MS = 500, ANSI_ESCAPE_CODE = 27, 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
88
  var init_constants = __esm(() => {
107
89
  MILLISECONDS_IN_A_MINUTE = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE;
108
90
  MILLISECONDS_IN_A_DAY = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE * MINUTES_IN_AN_HOUR * HOURS_IN_DAY;
@@ -162,14 +144,15 @@ var init_islands = () => {};
162
144
 
163
145
  // src/client/streamSwap.ts
164
146
  var streamSwapRuntime = () => {
147
+ const absoluteWindow = window;
165
148
  const SLOT_PATCH_EVENT = "absolutejs:slot-patch";
166
- if (window.__ABS_SLOT_RUNTIME__ === true)
149
+ if (absoluteWindow.__ABS_SLOT_RUNTIME__ === true)
167
150
  return;
168
- window.__ABS_SLOT_RUNTIME__ = true;
169
- window.__ABS_SLOT_CONSUMERS__ = window.__ABS_SLOT_CONSUMERS__ ?? {};
170
- window.__ABS_SLOT_PENDING__ = window.__ABS_SLOT_PENDING__ ?? {};
171
- const consumers = window.__ABS_SLOT_CONSUMERS__;
172
- const pending = window.__ABS_SLOT_PENDING__;
151
+ absoluteWindow.__ABS_SLOT_RUNTIME__ = true;
152
+ absoluteWindow.__ABS_SLOT_CONSUMERS__ = absoluteWindow.__ABS_SLOT_CONSUMERS__ ?? {};
153
+ absoluteWindow.__ABS_SLOT_PENDING__ = absoluteWindow.__ABS_SLOT_PENDING__ ?? {};
154
+ const consumers = absoluteWindow.__ABS_SLOT_CONSUMERS__;
155
+ const pending = absoluteWindow.__ABS_SLOT_PENDING__;
173
156
  const isObjectRecord3 = (value) => Boolean(value) && typeof value === "object";
174
157
  const isPatchedPendingEntry = (value) => {
175
158
  if (!isObjectRecord3(value))
@@ -177,7 +160,7 @@ var streamSwapRuntime = () => {
177
160
  return value.domPatched === true && "payload" in value;
178
161
  };
179
162
  const unwrapPendingPayload = (value) => isPatchedPendingEntry(value) ? value.payload : value;
180
- const canApplyImmediately = () => window.__ABS_SLOT_HYDRATION_PENDING__ !== true;
163
+ const canApplyImmediately = () => absoluteWindow.__ABS_SLOT_HYDRATION_PENDING__ !== true;
181
164
  const isAngularDeferPayload = (payload) => {
182
165
  if (!isObjectRecord3(payload))
183
166
  return false;
@@ -247,8 +230,8 @@ var streamSwapRuntime = () => {
247
230
  apply(id, pending[id] ?? "");
248
231
  }
249
232
  };
250
- window.__ABS_SLOT_FLUSH__ = flush;
251
- window.__ABS_SLOT_ENQUEUE__ = (id, payload) => {
233
+ absoluteWindow.__ABS_SLOT_FLUSH__ = flush;
234
+ absoluteWindow.__ABS_SLOT_ENQUEUE__ = (id, payload) => {
252
235
  apply(id, payload);
253
236
  };
254
237
  if (typeof MutationObserver === "function") {
@@ -914,6 +897,65 @@ var ensureHead = (doc) => {
914
897
  }
915
898
  const head = doc.createElement("head");
916
899
  doc.documentElement.insertBefore(head, doc.documentElement.firstChild);
900
+ }, SSR_LAYOUT_RECT, layoutPatchApplied = false, patchElementLayout = (doc) => {
901
+ if (layoutPatchApplied || !doc) {
902
+ return;
903
+ }
904
+ let element;
905
+ try {
906
+ element = doc.createElement("div");
907
+ } catch {
908
+ return;
909
+ }
910
+ const proto = Object.getPrototypeOf(element);
911
+ if (!proto)
912
+ return;
913
+ const define = (name, value) => {
914
+ if (typeof proto[name] !== "function") {
915
+ Object.defineProperty(proto, name, {
916
+ configurable: true,
917
+ value,
918
+ writable: true
919
+ });
920
+ }
921
+ };
922
+ define("getBoundingClientRect", function() {
923
+ return { ...SSR_LAYOUT_RECT };
924
+ });
925
+ define("getClientRects", function() {
926
+ return [];
927
+ });
928
+ define("scrollTo", function() {});
929
+ define("scrollBy", function() {});
930
+ define("scrollIntoView", function() {});
931
+ define("focus", function() {});
932
+ define("blur", function() {});
933
+ const numericProps = [
934
+ "clientWidth",
935
+ "clientHeight",
936
+ "clientLeft",
937
+ "clientTop",
938
+ "offsetWidth",
939
+ "offsetHeight",
940
+ "offsetLeft",
941
+ "offsetTop",
942
+ "scrollWidth",
943
+ "scrollHeight",
944
+ "scrollLeft",
945
+ "scrollTop"
946
+ ];
947
+ for (const prop of numericProps) {
948
+ const desc = Object.getOwnPropertyDescriptor(proto, prop);
949
+ if (desc)
950
+ continue;
951
+ Object.defineProperty(proto, prop, {
952
+ configurable: true,
953
+ get() {
954
+ return 0;
955
+ }
956
+ });
957
+ }
958
+ layoutPatchApplied = true;
917
959
  }, applyPatches = async () => {
918
960
  const { \u{275}DominoAdapter } = await import(resolveAngularPackage("@angular/platform-server"));
919
961
  if (!\u{275}DominoAdapter?.prototype) {
@@ -932,18 +974,33 @@ var ensureHead = (doc) => {
932
974
  proto.createHtmlDocument = function() {
933
975
  const doc = origCreateHtmlDocument.call(this);
934
976
  ensureHead(doc);
977
+ patchElementLayout(doc);
935
978
  return doc;
936
979
  };
937
980
  const origGetDefaultDocument = proto.getDefaultDocument;
938
981
  proto.getDefaultDocument = function() {
939
982
  const doc = origGetDefaultDocument.call(this);
940
983
  ensureHead(doc);
984
+ patchElementLayout(doc);
941
985
  return doc;
942
986
  };
943
987
  return true;
944
988
  };
945
989
  var init_angularPatch = __esm(() => {
946
990
  init_resolveAngularPackage();
991
+ SSR_LAYOUT_RECT = Object.freeze({
992
+ bottom: 0,
993
+ height: 0,
994
+ left: 0,
995
+ right: 0,
996
+ top: 0,
997
+ width: 0,
998
+ x: 0,
999
+ y: 0,
1000
+ toJSON() {
1001
+ return this;
1002
+ }
1003
+ });
947
1004
  });
948
1005
 
949
1006
  // src/angular/angularDeps.ts
@@ -965,9 +1022,7 @@ var initDominoAdapter = (platformServer) => {
965
1022
  import(resolveAngularPackage("@angular/common")),
966
1023
  import(resolveAngularPackage("@angular/core"))
967
1024
  ]);
968
- if (true) {
969
- core.enableProdMode();
970
- }
1025
+ if (false) {}
971
1026
  initDominoAdapter(platformServer);
972
1027
  return {
973
1028
  APP_BASE_HREF: common.APP_BASE_HREF,
@@ -1369,9 +1424,9 @@ var renderAngularIslandToHtmlInternal = async (component, props, islandId) => {
1369
1424
  }, renderAngularIslandToHtml2, renderReactIslandToHtml = (component, props) => import("react").then(({ createElement }) => import("react-dom/server").then(({ renderToStaticMarkup }) => renderToStaticMarkup(createElement(component, props)))), renderSvelteIslandToHtml = (component, props) => import("svelte/server").then(({ render }) => {
1370
1425
  const { body } = render(component, { props });
1371
1426
  return body;
1372
- }), renderVueIslandToHtml = (component, props) => import("vue").then(({ createSSRApp, h }) => {
1427
+ }), renderVueIslandToHtml = (component, props) => import("vue").then(({ createSSRApp, h: createVueVNode }) => {
1373
1428
  const app = createSSRApp({
1374
- render: () => h(component, props)
1429
+ render: () => createVueVNode(component, props)
1375
1430
  });
1376
1431
  return import("vue/server-renderer").then(({ renderToString }) => renderToString(app));
1377
1432
  });
@@ -1737,7 +1792,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1737
1792
  const config = normalizePostcssModule(loaded);
1738
1793
  const value = typeof config === "function" ? await config({
1739
1794
  cwd: process.cwd(),
1740
- env: "test"
1795
+ env: "development"
1741
1796
  }) : config;
1742
1797
  return normalizePostcssModule(value) ?? {};
1743
1798
  }, normalizePostcssPlugins = (plugins) => {
@@ -13282,14 +13337,7 @@ function asColor(value2, modifier, theme2) {
13282
13337
  return withAlpha(value2, `${modifier.value}%`);
13283
13338
  }
13284
13339
  function resolveThemeColor(candidate, theme2, themeKeys) {
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
- }
13340
+ if (false) {}
13293
13341
  let value2 = null;
13294
13342
  switch (candidate.value.value) {
13295
13343
  case "inherit": {
@@ -21968,7 +22016,9 @@ ${output}`);
21968
22016
  }
21969
22017
  async function compileAst(input, opts = {}) {
21970
22018
  let { designSystem, ast, sources, root, utilitiesNode, features, inlineCandidates } = await parseCss(input, opts);
21971
- if (false) {}
22019
+ if (true) {
22020
+ ast.unshift(comment(`! tailwindcss v${version} | MIT License | https://tailwindcss.com `));
22021
+ }
21972
22022
  function onInvalidCandidate(candidate) {
21973
22023
  designSystem.invalidCandidates.add(candidate);
21974
22024
  }
@@ -22824,7 +22874,7 @@ function isPotentialCssRootFile(id) {
22824
22874
  function idToPath(id) {
22825
22875
  return path.resolve(id.replace(/\?.*$/, ""));
22826
22876
  }
22827
- var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind", __filename = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind/index.mjs", __create2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name), __typeError = (msg) => {
22877
+ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind", __filename = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind/index.mjs", __create2, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name), __typeError = (msg) => {
22828
22878
  throw TypeError(msg);
22829
22879
  }, __require2, __esm2 = (fn, res) => function __init() {
22830
22880
  return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
@@ -22837,10 +22887,10 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
22837
22887
  if (from && typeof from === "object" || typeof from === "function") {
22838
22888
  for (let key of __getOwnPropNames2(from))
22839
22889
  if (!__hasOwnProp2.call(to, key) && key !== except)
22840
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
22890
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22841
22891
  }
22842
22892
  return to;
22843
- }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, mod)), __toCommonJS2 = (mod) => __copyProps(__defProp2({}, "__esModule", { value: true }), mod), __using = (stack, value2, async) => {
22893
+ }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, mod)), __toCommonJS = (mod) => __copyProps(__defProp2({}, "__esModule", { value: true }), mod), __using = (stack, value2, async) => {
22844
22894
  if (value2 != null) {
22845
22895
  if (typeof value2 !== "object" && typeof value2 !== "function")
22846
22896
  __typeError("Object expected");
@@ -22886,7 +22936,7 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
22886
22936
  throw error;
22887
22937
  };
22888
22938
  return next();
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 {
22939
+ }, 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 {
22890
22940
  constructor(values = /* @__PURE__ */ new Map, keyframes = /* @__PURE__ */ new Set([])) {
22891
22941
  this.values = values;
22892
22942
  this.keyframes = keyframes;
@@ -23427,7 +23477,7 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
23427
23477
  var init_bun_plugin_tailwind = __esm(() => {
23428
23478
  __create2 = Object.create;
23429
23479
  __defProp2 = Object.defineProperty;
23430
- __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
23480
+ __getOwnPropDesc = Object.getOwnPropertyDescriptor;
23431
23481
  __getOwnPropNames2 = Object.getOwnPropertyNames;
23432
23482
  __getProtoOf2 = Object.getPrototypeOf;
23433
23483
  __hasOwnProp2 = Object.prototype.hasOwnProperty;
@@ -31525,7 +31575,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
31525
31575
  return false;
31526
31576
  let i2 = dist_i(true);
31527
31577
  return delete i2[t3], true;
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() {
31578
+ }, 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() {
31529
31579
  if (globalThis.process?.env)
31530
31580
  for (let e10 of th) {
31531
31581
  let t3 = e10[1] || e10[0];
@@ -38348,9 +38398,9 @@ It schedules the call as a new task in the event loop.`);
38348
38398
  });
38349
38399
  require_runtime = __commonJS2({
38350
38400
  "../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.5/node_modules/@napi-rs/wasm-runtime/runtime.cjs"(exports, module) {
38351
- var { MessageHandler: MessageHandler2, instantiateNapiModuleSync: instantiateNapiModuleSync2, instantiateNapiModule: instantiateNapiModule2 } = (init_emnapi_core_esm_bundler(), __toCommonJS2(emnapi_core_esm_bundler_exports));
38352
- var { getDefaultContext: getDefaultContext2 } = (init_emnapi_esm_bundler(), __toCommonJS2(emnapi_esm_bundler_exports));
38353
- var { WASI: WASI2 } = (init_wasm_util_esm_bundler(), __toCommonJS2(wasm_util_esm_bundler_exports));
38401
+ var { MessageHandler: MessageHandler2, instantiateNapiModuleSync: instantiateNapiModuleSync2, instantiateNapiModule: instantiateNapiModule2 } = (init_emnapi_core_esm_bundler(), __toCommonJS(emnapi_core_esm_bundler_exports));
38402
+ var { getDefaultContext: getDefaultContext2 } = (init_emnapi_esm_bundler(), __toCommonJS(emnapi_esm_bundler_exports));
38403
+ var { WASI: WASI2 } = (init_wasm_util_esm_bundler(), __toCommonJS(wasm_util_esm_bundler_exports));
38354
38404
  var { createFsProxy, createOnMessage } = require_fs_proxy();
38355
38405
  module.exports = {
38356
38406
  MessageHandler: MessageHandler2,
@@ -41827,9 +41877,9 @@ var checkCandidate = (candidate) => {
41827
41877
  let { dir } = import.meta;
41828
41878
  while (dir !== parse4(dir).root) {
41829
41879
  const candidate = join10(dir, "package.json");
41830
- const version = checkCandidate(candidate);
41831
- if (version) {
41832
- return version;
41880
+ const version4 = checkCandidate(candidate);
41881
+ if (version4) {
41882
+ return version4;
41833
41883
  }
41834
41884
  dir = dirname7(dir);
41835
41885
  }
@@ -42296,7 +42346,8 @@ var SVELTE_PAGE_ROOT_ID = "__absolute_svelte_root__", renderToReadableStream = a
42296
42346
  } = {}) => {
42297
42347
  try {
42298
42348
  const { render } = await import("svelte/server");
42299
- const rendered = typeof props === "undefined" ? await render(component) : await render(component, { props });
42349
+ const renderComponent = render;
42350
+ const rendered = typeof props === "undefined" ? await renderComponent(component) : await renderComponent(component, { props });
42300
42351
  const { head, body } = rendered;
42301
42352
  const nonceAttr = nonce ? ` nonce="${nonce}"` : "";
42302
42353
  const scripts = (bootstrapScriptContent ? `<script${nonceAttr}>${escapeScriptContent(bootstrapScriptContent)}</script>` : "") + bootstrapScripts.map((src) => `<script${nonceAttr} src="${src}"></script>`).join("") + bootstrapModules.map((src) => `<script${nonceAttr} type="module" src="${src}"></script>`).join("");
@@ -46197,14 +46248,14 @@ var globalVersionCounter = 0, createModuleVersionTracker = () => new Map, getNex
46197
46248
  }, incrementModuleVersions = (versions, modulePaths) => {
46198
46249
  const updated = new Map;
46199
46250
  for (const path2 of modulePaths) {
46200
- const version = incrementModuleVersion(versions, path2);
46201
- updated.set(path2, version);
46251
+ const version4 = incrementModuleVersion(versions, path2);
46252
+ updated.set(path2, version4);
46202
46253
  }
46203
46254
  return updated;
46204
46255
  }, serializeModuleVersions = (versions) => {
46205
46256
  const serialized = {};
46206
- for (const [path2, version] of versions.entries()) {
46207
- serialized[path2] = version;
46257
+ for (const [path2, version4] of versions.entries()) {
46258
+ serialized[path2] = version4;
46208
46259
  }
46209
46260
  return serialized;
46210
46261
  };
@@ -46603,6 +46654,68 @@ var init_fileHashTracker = __esm(() => {
46603
46654
  init_constants();
46604
46655
  });
46605
46656
 
46657
+ // src/dev/transformCache.ts
46658
+ var exports_transformCache = {};
46659
+ __export(exports_transformCache, {
46660
+ setTransformed: () => setTransformed,
46661
+ invalidateAll: () => invalidateAll,
46662
+ invalidate: () => invalidate,
46663
+ getTransformed: () => getTransformed,
46664
+ getInvalidationVersion: () => getInvalidationVersion,
46665
+ findNearestComponent: () => findNearestComponent
46666
+ });
46667
+ var cache, importers, getTransformed = (filePath) => cache.get(filePath)?.content, setTransformed = (filePath, content, mtime, imports) => {
46668
+ const resolvedImports = imports ?? [];
46669
+ cache.set(filePath, { content, imports: resolvedImports, mtime });
46670
+ for (const imp of resolvedImports) {
46671
+ const set2 = importers.get(imp) ?? new Set;
46672
+ importers.set(imp, set2);
46673
+ set2.add(filePath);
46674
+ }
46675
+ }, invalidationVersions, isComponentFile = (filePath) => filePath.endsWith(".tsx") || filePath.endsWith(".jsx"), processParents = (parents, queue) => {
46676
+ const component = [...parents].find(isComponentFile);
46677
+ if (component !== undefined)
46678
+ return component;
46679
+ for (const parent of parents)
46680
+ queue.push(parent);
46681
+ return;
46682
+ }, findNearestComponent = (filePath) => {
46683
+ const visited = new Set;
46684
+ const queue = [filePath];
46685
+ while (queue.length > 0) {
46686
+ const current = queue.shift();
46687
+ if (!current)
46688
+ break;
46689
+ if (visited.has(current))
46690
+ continue;
46691
+ visited.add(current);
46692
+ const parents = importers.get(current);
46693
+ if (!parents)
46694
+ continue;
46695
+ const found = processParents(parents, queue);
46696
+ if (found !== undefined)
46697
+ return found;
46698
+ }
46699
+ return;
46700
+ }, getInvalidationVersion = (filePath) => invalidationVersions.get(filePath) ?? 0, invalidate = (filePath) => {
46701
+ cache.delete(filePath);
46702
+ invalidationVersions.set(filePath, (invalidationVersions.get(filePath) ?? 0) + 1);
46703
+ for (const parent of importers.get(filePath) ?? []) {
46704
+ cache.delete(parent);
46705
+ }
46706
+ }, invalidateAll = () => {
46707
+ cache.clear();
46708
+ importers.clear();
46709
+ };
46710
+ var init_transformCache = __esm(() => {
46711
+ cache = globalThis.__transformCache ?? new Map;
46712
+ globalThis.__transformCache = cache;
46713
+ importers = globalThis.__transformImporters ?? new Map;
46714
+ globalThis.__transformImporters = importers;
46715
+ invalidationVersions = globalThis.__transformInvalidationVersions ?? new Map;
46716
+ globalThis.__transformInvalidationVersions = invalidationVersions;
46717
+ });
46718
+
46606
46719
  // src/dev/reactComponentClassifier.ts
46607
46720
  import { resolve as resolve28 } from "path";
46608
46721
  var classifyComponent = (filePath) => {
@@ -46823,68 +46936,6 @@ var init_ssrCache = __esm(() => {
46823
46936
  dirtyFrameworks = new Set;
46824
46937
  });
46825
46938
 
46826
- // src/dev/transformCache.ts
46827
- var exports_transformCache = {};
46828
- __export(exports_transformCache, {
46829
- setTransformed: () => setTransformed,
46830
- invalidateAll: () => invalidateAll,
46831
- invalidate: () => invalidate,
46832
- getTransformed: () => getTransformed,
46833
- getInvalidationVersion: () => getInvalidationVersion,
46834
- findNearestComponent: () => findNearestComponent
46835
- });
46836
- var cache, importers, getTransformed = (filePath) => cache.get(filePath)?.content, setTransformed = (filePath, content, mtime, imports) => {
46837
- const resolvedImports = imports ?? [];
46838
- cache.set(filePath, { content, imports: resolvedImports, mtime });
46839
- for (const imp of resolvedImports) {
46840
- const set2 = importers.get(imp) ?? new Set;
46841
- importers.set(imp, set2);
46842
- set2.add(filePath);
46843
- }
46844
- }, invalidationVersions, isComponentFile = (filePath) => filePath.endsWith(".tsx") || filePath.endsWith(".jsx"), processParents = (parents, queue) => {
46845
- const component = [...parents].find(isComponentFile);
46846
- if (component !== undefined)
46847
- return component;
46848
- for (const parent of parents)
46849
- queue.push(parent);
46850
- return;
46851
- }, findNearestComponent = (filePath) => {
46852
- const visited = new Set;
46853
- const queue = [filePath];
46854
- while (queue.length > 0) {
46855
- const current = queue.shift();
46856
- if (!current)
46857
- break;
46858
- if (visited.has(current))
46859
- continue;
46860
- visited.add(current);
46861
- const parents = importers.get(current);
46862
- if (!parents)
46863
- continue;
46864
- const found = processParents(parents, queue);
46865
- if (found !== undefined)
46866
- return found;
46867
- }
46868
- return;
46869
- }, getInvalidationVersion = (filePath) => invalidationVersions.get(filePath) ?? 0, invalidate = (filePath) => {
46870
- cache.delete(filePath);
46871
- invalidationVersions.set(filePath, (invalidationVersions.get(filePath) ?? 0) + 1);
46872
- for (const parent of importers.get(filePath) ?? []) {
46873
- cache.delete(parent);
46874
- }
46875
- }, invalidateAll = () => {
46876
- cache.clear();
46877
- importers.clear();
46878
- };
46879
- var init_transformCache = __esm(() => {
46880
- cache = globalThis.__transformCache ?? new Map;
46881
- globalThis.__transformCache = cache;
46882
- importers = globalThis.__transformImporters ?? new Map;
46883
- globalThis.__transformImporters = importers;
46884
- invalidationVersions = globalThis.__transformInvalidationVersions ?? new Map;
46885
- globalThis.__transformInvalidationVersions = invalidationVersions;
46886
- });
46887
-
46888
46939
  // src/dev/moduleServer.ts
46889
46940
  var exports_moduleServer = {};
46890
46941
  __export(exports_moduleServer, {
@@ -47142,7 +47193,15 @@ ${code}`;
47142
47193
  const endPos = findFunctionEnd(source, insertPos);
47143
47194
  const funcBody = source.slice(insertPos, endPos);
47144
47195
  return `${source.slice(0, insertPos)}__hmr_wrap(${JSON.stringify(name)}, ${funcBody})${source.slice(endPos)}`;
47145
- }, svelteExternalCss, svelteCompiler = null, vueCompiler = null, warmCompilers = async (frameworks2) => {
47196
+ }, svelteExternalCss, svelteCompiler = null, vueCompiler = null, getLoadedSvelteCompiler = () => {
47197
+ if (!svelteCompiler)
47198
+ throw new Error("Svelte compiler is not loaded.");
47199
+ return svelteCompiler;
47200
+ }, getLoadedVueCompiler = () => {
47201
+ if (!vueCompiler)
47202
+ throw new Error("Vue compiler is not loaded.");
47203
+ return vueCompiler;
47204
+ }, warmCompilers = async (frameworks2) => {
47146
47205
  const [svelteModule, vueModule] = await Promise.all([
47147
47206
  frameworks2.svelte ? import("svelte/compiler") : undefined,
47148
47207
  frameworks2.vue ? import("@vue/compiler-sfc") : undefined
@@ -47170,13 +47229,15 @@ ${code}`;
47170
47229
  source: descriptor.template.content
47171
47230
  });
47172
47231
  }, compileSvelteModule = (raw, filePath) => {
47232
+ const compiler = getLoadedSvelteCompiler();
47173
47233
  const source = tsTranspiler2.transformSync(raw);
47174
- return svelteCompiler.compileModule(source, {
47234
+ return compiler.compileModule(source, {
47175
47235
  dev: true,
47176
47236
  filename: filePath
47177
47237
  }).js.code;
47178
47238
  }, compileSvelteComponent = (raw, filePath, projectRoot, enableAsync = false) => {
47179
- const compiled = svelteCompiler.compile(raw, {
47239
+ const compiler = getLoadedSvelteCompiler();
47240
+ const compiled = compiler.compile(raw, {
47180
47241
  css: "external",
47181
47242
  dev: true,
47182
47243
  experimental: {
@@ -47212,11 +47273,12 @@ ${code}`;
47212
47273
  const code = isModule ? compileSvelteModule(source, filePath) : compileSvelteComponent(source, filePath, projectRoot, enableAsync);
47213
47274
  return rewriteImports2(code, filePath, projectRoot, rewriter);
47214
47275
  }, compileVueTemplate = (descriptor, compiledScript, filePath, componentId) => {
47276
+ const compiler = getLoadedVueCompiler();
47215
47277
  const scriptContent = compiledScript.content;
47216
47278
  if (!descriptor.template)
47217
47279
  return scriptContent;
47218
47280
  const isScoped = descriptor.styles.some((style) => style.scoped);
47219
- const templateResult = vueCompiler.compileTemplate({
47281
+ const templateResult = compiler.compileTemplate({
47220
47282
  compilerOptions: {
47221
47283
  bindingMetadata: compiledScript.bindings,
47222
47284
  prefixIdentifiers: true
@@ -47237,10 +47299,11 @@ export default __script__;`;
47237
47299
  }, compileVueStyles = async (descriptor, filePath, componentId, code, stylePreprocessors) => {
47238
47300
  if (descriptor.styles.length === 0)
47239
47301
  return code;
47240
- const cssCode = (await Promise.all(descriptor.styles.map(async (style) => vueCompiler.compileStyle({
47302
+ const compiler = getLoadedVueCompiler();
47303
+ const cssCode = (await Promise.all(descriptor.styles.map(async (style) => compiler.compileStyle({
47241
47304
  filename: filePath,
47242
47305
  id: `data-v-${componentId}`,
47243
- scoped: style.scoped,
47306
+ scoped: Boolean(style.scoped),
47244
47307
  source: style.lang ? await compileStyleSource(filePath, style.content, style.lang, stylePreprocessors) : style.content,
47245
47308
  trim: true
47246
47309
  }).code))).join(`
@@ -47269,7 +47332,11 @@ ${code}`;
47269
47332
  id: componentId,
47270
47333
  inlineTemplate: false
47271
47334
  });
47272
- let code = compileVueTemplate(descriptor, compiledScript, filePath, componentId);
47335
+ const compiledSfcScript = {
47336
+ bindings: compiledScript.bindings ?? {},
47337
+ content: compiledScript.content
47338
+ };
47339
+ let code = compileVueTemplate(descriptor, compiledSfcScript, filePath, componentId);
47273
47340
  code = await compileVueStyles(descriptor, filePath, componentId, code, stylePreprocessors);
47274
47341
  code = tsTranspiler2.transformSync(code);
47275
47342
  code = injectVueHmr(code, filePath, projectRoot, vueDir);
@@ -47647,7 +47714,7 @@ var init_simpleHTMXHMR = () => {};
47647
47714
  // src/dev/rebuildTrigger.ts
47648
47715
  import { existsSync as existsSync22 } from "fs";
47649
47716
  import { basename as basename11, dirname as dirname14, relative as relative12, resolve as resolve33 } from "path";
47650
- var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTransformConfig = (config) => createStyleTransformConfig(config.stylePreprocessors, config.postcss), parseErrorLocationFromMessage = (msg) => {
47717
+ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequentially = (items, action) => items.reduce((chain, item) => chain.then(() => action(item)), Promise.resolve()), getStyleTransformConfig = (config) => createStyleTransformConfig(config.stylePreprocessors, config.postcss), parseErrorLocationFromMessage = (msg) => {
47651
47718
  const pathLineCol = msg.match(/^([^\s:]+):(\d+)(?::(\d+))?/);
47652
47719
  if (pathLineCol) {
47653
47720
  const [, file4, lineStr, colStr] = pathLineCol;
@@ -47817,19 +47884,31 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
47817
47884
  return allFiles;
47818
47885
  }, areAllQueuedFilesStable = async (fileChangeQueue) => {
47819
47886
  const allFiles = collectAllQueuedFiles(fileChangeQueue);
47820
- for (const file4 of allFiles) {
47887
+ const checkFile = async (files) => {
47888
+ const [file4, ...remaining] = files;
47889
+ if (!file4) {
47890
+ return true;
47891
+ }
47821
47892
  const stable = await isFileStable(file4);
47822
- if (!stable)
47893
+ if (!stable) {
47823
47894
  return false;
47824
- }
47825
- return true;
47895
+ }
47896
+ return checkFile(remaining);
47897
+ };
47898
+ return checkFile(allFiles);
47826
47899
  }, waitForStableWrites = async (state) => {
47827
- for (let round = 0;round < STABILITY_CHECK_ROUNDS; round++) {
47900
+ const waitRound = async (round) => {
47901
+ if (round >= STABILITY_CHECK_ROUNDS) {
47902
+ return;
47903
+ }
47828
47904
  const stable = await areAllQueuedFilesStable(state.fileChangeQueue);
47829
- if (stable)
47830
- break;
47831
- }
47832
- }, queueFileChange = (state, filePath, config, onRebuildComplete) => {
47905
+ if (stable) {
47906
+ return;
47907
+ }
47908
+ await waitRound(round + 1);
47909
+ };
47910
+ await waitRound(0);
47911
+ }, queueFileChange = async (state, filePath, config, onRebuildComplete) => {
47833
47912
  const framework = detectFramework(filePath, state.resolvedPaths);
47834
47913
  if (framework === "ignored") {
47835
47914
  return;
@@ -47839,8 +47918,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
47839
47918
  return;
47840
47919
  }
47841
47920
  if (framework === "unknown") {
47842
- const { invalidate: invalidate2 } = (init_transformCache(), __toCommonJS(exports_transformCache));
47843
- invalidate2(resolve33(filePath));
47921
+ invalidate(resolve33(filePath));
47844
47922
  const relPath = relative12(process.cwd(), filePath);
47845
47923
  logHmrUpdate(relPath);
47846
47924
  return;
@@ -48245,9 +48323,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
48245
48323
  }
48246
48324
  markSsrCacheDirty("svelte");
48247
48325
  const serverDuration = Date.now() - startTime;
48248
- for (const changedFile of svelteFiles) {
48249
- await broadcastSvelteModuleUpdate(state, changedFile, svelteFiles, serverDuration);
48250
- }
48326
+ await runSequentially(svelteFiles, (changedFile) => broadcastSvelteModuleUpdate(state, changedFile, svelteFiles, serverDuration));
48251
48327
  onRebuildComplete({
48252
48328
  hmrState: state,
48253
48329
  manifest: state.manifest
@@ -48371,9 +48447,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
48371
48447
  await invalidateNonVueModules(nonVueFiles);
48372
48448
  const serverDuration = Date.now() - startTime;
48373
48449
  const forceReload = nonVueFiles.length > 0;
48374
- for (const changedFile of vueFiles) {
48375
- await broadcastVueModuleUpdate(state, changedFile, vueFiles, nonVueFiles, forceReload, serverDuration);
48376
- }
48450
+ await runSequentially(vueFiles, (changedFile) => broadcastVueModuleUpdate(state, changedFile, vueFiles, nonVueFiles, forceReload, serverDuration));
48377
48451
  onRebuildComplete({
48378
48452
  hmrState: state,
48379
48453
  manifest: state.manifest
@@ -48555,11 +48629,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
48555
48629
  const outputHtmlPages = computeOutputPagesDir(state, config, "html");
48556
48630
  const shouldRefreshAllPages = htmlPageFiles.length === 0 && shouldRefreshFromIslandChange;
48557
48631
  const pageFilesToUpdate = shouldRefreshAllPages ? await scanEntryPoints(outputHtmlPages, "*.html") : htmlPageFiles;
48558
- for (const pageFile of pageFilesToUpdate) {
48632
+ await runSequentially(pageFilesToUpdate, async (pageFile) => {
48559
48633
  const htmlPageName = basename11(pageFile);
48560
48634
  const builtHtmlPagePath = resolve33(outputHtmlPages, htmlPageName);
48561
48635
  await processHtmlPageUpdate(state, pageFile, builtHtmlPagePath, manifest, duration);
48562
- }
48636
+ });
48563
48637
  }, handleVueCssOnlyUpdate = (state, vueCssFiles, manifest, duration) => {
48564
48638
  const [cssFile] = vueCssFiles;
48565
48639
  if (!cssFile) {
@@ -48654,9 +48728,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
48654
48728
  if (isCssOnlyChange && vueCssFiles.length > 0) {
48655
48729
  handleVueCssOnlyUpdate(state, vueCssFiles, manifest, duration);
48656
48730
  }
48657
- for (const vuePagePath of pagesToUpdate) {
48658
- await processVuePageUpdate(state, config, vuePagePath, manifest, duration);
48659
- }
48731
+ await runSequentially(pagesToUpdate, (vuePagePath) => processVuePageUpdate(state, config, vuePagePath, manifest, duration));
48660
48732
  }, handleSvelteCssOnlyUpdate = (state, svelteCssFiles, manifest, duration) => {
48661
48733
  const [cssFile] = svelteCssFiles;
48662
48734
  if (!cssFile) {
@@ -48857,11 +48929,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
48857
48929
  const outputHtmxPages = computeOutputPagesDir(state, config, "htmx");
48858
48930
  const shouldRefreshAllPages = htmxPageFiles.length === 0 && shouldRefreshFromIslandChange;
48859
48931
  const pageFilesToUpdate = shouldRefreshAllPages ? await scanEntryPoints(outputHtmxPages, "*.html") : htmxPageFiles;
48860
- for (const htmxPageFile of pageFilesToUpdate) {
48932
+ await runSequentially(pageFilesToUpdate, async (htmxPageFile) => {
48861
48933
  const htmxPageName = basename11(htmxPageFile);
48862
48934
  const builtHtmxPagePath = resolve33(outputHtmxPages, htmxPageName);
48863
48935
  await processHtmxPageUpdate(state, htmxPageFile, builtHtmxPagePath, manifest, duration);
48864
- }
48936
+ });
48865
48937
  }, collectUpdatedModulePaths = (allModuleUpdates) => {
48866
48938
  const paths = [];
48867
48939
  allModuleUpdates.forEach((update) => {
@@ -49005,11 +49077,18 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
49005
49077
  const { updateAssetPaths: updateAssetPaths2 } = await Promise.resolve().then(() => (init_updateAssetPaths(), exports_updateAssetPaths));
49006
49078
  const handleUpdate = framework === "html" ? (await Promise.resolve().then(() => (init_simpleHTMLHMR(), exports_simpleHTMLHMR))).handleHTMLUpdate : (await Promise.resolve().then(() => (init_simpleHTMXHMR(), exports_simpleHTMXHMR))).handleHTMXUpdate;
49007
49079
  const { readFileSync: readFs, writeFileSync: writeFs } = await import("fs");
49008
- for (const markupFile of markupFiles) {
49080
+ const processMarkupFiles = async (files) => {
49081
+ const [markupFile, ...remaining] = files;
49082
+ if (!markupFile) {
49083
+ return;
49084
+ }
49009
49085
  const success = await tryProcessMarkupFile(state, markupFile, outputDir, framework, startTime, updateAssetPaths2, handleUpdate, readFs, writeFs);
49010
- if (!success)
49011
- break;
49012
- }
49086
+ if (!success) {
49087
+ return;
49088
+ }
49089
+ await processMarkupFiles(remaining);
49090
+ };
49091
+ await processMarkupFiles(markupFiles);
49013
49092
  }, runHtmlFastPath = async (state, config, filesToRebuild, startTime) => runMarkupFastPath(state, config, filesToRebuild, startTime, "html"), runHtmxFastPath = async (state, config, filesToRebuild, startTime) => runMarkupFastPath(state, config, filesToRebuild, startTime, "htmx"), markHandledFiles = (files, framework, resolvedPaths, handled) => {
49014
49093
  files.filter((f) => detectFramework(f, resolvedPaths) === framework).forEach((f) => handled.add(f));
49015
49094
  }, runFrameworkFastPaths = async (state, config, affectedFrameworks, files, startTime, onRebuildComplete) => {
@@ -49036,12 +49115,12 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
49036
49115
  handler: handleVueFastPath
49037
49116
  }
49038
49117
  ];
49039
- for (const fastPath of fastPaths) {
49118
+ await runSequentially(fastPaths, async (fastPath) => {
49040
49119
  if (!fastPath.directory || !affectedFrameworks.includes(fastPath.framework))
49041
- continue;
49120
+ return;
49042
49121
  await fastPath.handler(state, config, files, startTime, onRebuildComplete);
49043
49122
  markHandledFiles(files, fastPath.framework, state.resolvedPaths, handled);
49044
- }
49123
+ });
49045
49124
  return files.every((f) => handled.has(f));
49046
49125
  }, performFullRebuild = async (state, config, affectedFrameworks, filesToRebuild, startTime, onRebuildComplete) => {
49047
49126
  const hasManifest = Object.keys(state.manifest).length > 0;
@@ -49184,6 +49263,7 @@ var init_rebuildTrigger = __esm(() => {
49184
49263
  init_dependencyGraph();
49185
49264
  init_constants();
49186
49265
  init_fileHashTracker();
49266
+ init_transformCache();
49187
49267
  init_moduleMapper();
49188
49268
  init_telemetryEvent();
49189
49269
  init_assetStore();
@@ -49670,13 +49750,13 @@ var INTERNALS_KEYS, isRecord7 = (val) => typeof val === "object" && val !== null
49670
49750
  }
49671
49751
  return;
49672
49752
  }, bridgeReactInternals = async () => {
49673
- const pinned = globalThis.__reactModuleRef;
49674
- if (!pinned)
49753
+ const pinnedRef = globalThis.__reactModuleRef;
49754
+ if (!isRecord7(pinnedRef))
49675
49755
  return;
49676
49756
  const react = await import("react");
49677
- if (pinned === react)
49757
+ if (pinnedRef === react)
49678
49758
  return;
49679
- const pinnedInternals = findInternals(pinned);
49759
+ const pinnedInternals = findInternals(pinnedRef);
49680
49760
  const currentInternals = findInternals(react);
49681
49761
  if (!pinnedInternals || !currentInternals || pinnedInternals === currentInternals)
49682
49762
  return;
@@ -50185,17 +50265,26 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
50185
50265
  const visited = new Set;
50186
50266
  const queue = ["/"];
50187
50267
  const routes = [];
50188
- while (queue.length > 0) {
50268
+ const crawlNextRoute = async () => {
50189
50269
  const path2 = queue.shift();
50190
- if (!path2 || visited.has(path2))
50191
- continue;
50270
+ if (!path2) {
50271
+ return;
50272
+ }
50273
+ if (visited.has(path2)) {
50274
+ await crawlNextRoute();
50275
+ return;
50276
+ }
50192
50277
  visited.add(path2);
50193
50278
  const html = await fetchRoute(baseUrl, path2).catch(() => null);
50194
- if (!html)
50195
- continue;
50279
+ if (!html) {
50280
+ await crawlNextRoute();
50281
+ return;
50282
+ }
50196
50283
  routes.push(path2);
50197
50284
  queue.push(...extractLinks(html, visited));
50198
- }
50285
+ await crawlNextRoute();
50286
+ };
50287
+ await crawlNextRoute();
50199
50288
  return routes;
50200
50289
  }, rerenderRoute = async (route, port, prerenderDir) => {
50201
50290
  try {
@@ -50245,9 +50334,7 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
50245
50334
  dir: prerenderDir,
50246
50335
  routes: new Map
50247
50336
  };
50248
- for (const route of routes) {
50249
- await prerenderRoute(baseUrl, route, prerenderDir, result, log2);
50250
- }
50337
+ await routes.reduce((chain, route) => chain.then(() => prerenderRoute(baseUrl, route, prerenderDir, result, log2)), Promise.resolve());
50251
50338
  return result;
50252
50339
  }, getStartupTimeoutMs = () => {
50253
50340
  const rawTimeout = Bun.env.ABSOLUTE_PRERENDER_STARTUP_TIMEOUT_MS;
@@ -50255,13 +50342,17 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
50255
50342
  return Number.isFinite(parsedTimeout) && parsedTimeout > 0 ? parsedTimeout : DEFAULT_STARTUP_TIMEOUT_MS;
50256
50343
  }, waitForServerReady = async (port) => {
50257
50344
  const deadline = performance.now() + getStartupTimeoutMs();
50258
- while (performance.now() < deadline) {
50345
+ const pollServer = async () => {
50346
+ if (performance.now() >= deadline) {
50347
+ return false;
50348
+ }
50259
50349
  if (await probePrerenderServer(port)) {
50260
50350
  return true;
50261
50351
  }
50262
50352
  await Bun.sleep(STARTUP_POLL_INTERVAL_MS);
50263
- }
50264
- return false;
50353
+ return pollServer();
50354
+ };
50355
+ return pollServer();
50265
50356
  }, probePrerenderServer = async (port) => {
50266
50357
  const res = await fetch(`http://localhost:${port}/`).catch(() => null);
50267
50358
  if (!res) {
@@ -50278,10 +50369,11 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
50278
50369
  const decoder2 = new TextDecoder;
50279
50370
  const read = () => {
50280
50371
  reader.read().then(({ done, value: value2 }) => {
50281
- if (done)
50372
+ if (done) {
50282
50373
  return;
50374
+ }
50283
50375
  output.push(decoder2.decode(value2, { stream: true }));
50284
- read();
50376
+ return read();
50285
50377
  }).catch(() => {});
50286
50378
  };
50287
50379
  read();
@@ -50922,7 +51014,7 @@ var resolveNotFoundConventionPath = (framework) => getMap()[framework]?.defaults
50922
51014
  var setConventions = (map) => {
50923
51015
  Reflect.set(globalThis, CONVENTIONS_KEY, map);
50924
51016
  };
50925
- var isDev = () => false;
51017
+ var isDev = () => true;
50926
51018
  var buildErrorProps = (error) => {
50927
51019
  const message = error instanceof Error ? error.message : String(error);
50928
51020
  const stack = isDev() && error instanceof Error ? error.stack : undefined;
@@ -51189,9 +51281,10 @@ var patchManifestIndexes = (manifest, devIndexDir, SRC_URL_PREFIX2) => {
51189
51281
  var prepareDev = async (config, buildDir) => {
51190
51282
  const startupSteps = [];
51191
51283
  const recordStep = (label, startedAt) => {
51284
+ const durationMs = performance.now() - startedAt;
51192
51285
  startupSteps.push({
51193
- label,
51194
- durationMs: performance.now() - startedAt
51286
+ durationMs,
51287
+ label
51195
51288
  });
51196
51289
  };
51197
51290
  let stepStartedAt = performance.now();
@@ -51321,9 +51414,10 @@ var createNotFoundPlugin = () => new Elysia5({ name: "absolutejs-not-found" }).o
51321
51414
  var prepare = async (configOrPath) => {
51322
51415
  const startupSteps = [];
51323
51416
  const recordStep = (label, startedAt) => {
51417
+ const durationMs = performance.now() - startedAt;
51324
51418
  startupSteps.push({
51325
- label,
51326
- durationMs: performance.now() - startedAt
51419
+ durationMs,
51420
+ label
51327
51421
  });
51328
51422
  };
51329
51423
  let stepStartedAt = performance.now();
@@ -51601,7 +51695,7 @@ var networking = (app) => app.listen({
51601
51695
  }
51602
51696
  const buildDuration = globalThis.__hmrBuildDuration ?? Number(env4.ABSOLUTE_BUILD_DURATION || 0);
51603
51697
  const readyDuration = process.uptime() * MILLISECONDS_IN_A_SECOND;
51604
- const version = globalThis.__absoluteVersion || env4.ABSOLUTE_VERSION || "";
51698
+ const version4 = globalThis.__absoluteVersion || env4.ABSOLUTE_VERSION || "";
51605
51699
  startupBanner({
51606
51700
  buildDuration,
51607
51701
  host,
@@ -51609,7 +51703,7 @@ var networking = (app) => app.listen({
51609
51703
  port,
51610
51704
  protocol,
51611
51705
  readyDuration,
51612
- version
51706
+ version: version4
51613
51707
  });
51614
51708
  });
51615
51709
  // src/plugins/pageRouter.ts
@@ -58030,8 +58124,9 @@ export {
58030
58124
  BASE_36_RADIX,
58031
58125
  ASCII_SPACE,
58032
58126
  ANSI_ESCAPE_LENGTH,
58127
+ ANSI_ESCAPE_CODE,
58033
58128
  ANGULAR_INIT_TIMEOUT_MS
58034
58129
  };
58035
58130
 
58036
- //# debugId=1C663D87BEAFDA4164756E2164756E21
58131
+ //# debugId=28A9F49049C479BD64756E2164756E21
58037
58132
  //# sourceMappingURL=index.js.map