@farm.js/core 0.1.77 → 0.1.80

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 (521) hide show
  1. package/dist/after.cjs +1 -1
  2. package/dist/after.mjs +1 -1
  3. package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-GDY5CPPW.mjs} +6 -6
  4. package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-IUL6OPC3.cjs} +7 -7
  5. package/dist/{agent-mcp.d-B1h3RznZ.d.ts → agent-mcp.d-BPa5n0ld.d.ts} +1 -1
  6. package/dist/{agent-mcp.d-WFQotg8M.d.mts → agent-mcp.d-DOP95Jxm.d.mts} +1 -1
  7. package/dist/agent-runtime.cjs +3 -3
  8. package/dist/agent-runtime.d.mts +4 -4
  9. package/dist/agent-runtime.d.ts +4 -4
  10. package/dist/agent-runtime.mjs +2 -2
  11. package/dist/{analyzer-64YS2OXQ.mjs → analyzer-F7CWE5VA.mjs} +3 -3
  12. package/dist/analyzer-I7RBBQ65.cjs +16 -0
  13. package/dist/api/client.cjs +1 -1
  14. package/dist/api/client.mjs +1 -1
  15. package/dist/api/client.native.cjs +1 -1
  16. package/dist/api/client.native.mjs +1 -1
  17. package/dist/api/node.cjs +7 -7
  18. package/dist/api/node.d.mts +6 -6
  19. package/dist/api/node.d.ts +6 -6
  20. package/dist/api/node.mjs +6 -6
  21. package/dist/api/route-manager.cjs +10 -10
  22. package/dist/api/route-manager.d.mts +6 -6
  23. package/dist/api/route-manager.d.ts +6 -6
  24. package/dist/api/route-manager.mjs +9 -9
  25. package/dist/api/runtime.cjs +6 -6
  26. package/dist/api/runtime.d.mts +5 -5
  27. package/dist/api/runtime.d.ts +5 -5
  28. package/dist/api/runtime.mjs +5 -5
  29. package/dist/api.cjs +12 -12
  30. package/dist/api.d.mts +7 -7
  31. package/dist/api.d.ts +7 -7
  32. package/dist/api.mjs +11 -11
  33. package/dist/{app-manifest.d-EZEYG-tD.d.mts → app-manifest.d-9UD6BznX.d.mts} +1 -1
  34. package/dist/{app-manifest.d-Ktsqsuk9.d.ts → app-manifest.d-CO6Iu0Hx.d.ts} +1 -1
  35. package/dist/app-markdown.cjs +6 -6
  36. package/dist/app-markdown.d.mts +5 -5
  37. package/dist/app-markdown.d.ts +5 -5
  38. package/dist/app-markdown.mjs +5 -5
  39. package/dist/{app.d-DTkqYcIr.d.mts → app.d-DXeRWZK7.d.mts} +4 -4
  40. package/dist/{app.d-CSh3y8w8.d.ts → app.d-DwX1ePhs.d.ts} +4 -4
  41. package/dist/cache.cjs +4 -4
  42. package/dist/cache.mjs +3 -3
  43. package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
  44. package/dist/{chunk-WW62HKA2.cjs → chunk-2FK47RRZ.cjs} +15 -15
  45. package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
  46. package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
  47. package/dist/{chunk-JRBWBMP2.mjs → chunk-2RRTOKRZ.mjs} +1 -1
  48. package/dist/{chunk-BTHNOAOF.mjs → chunk-3JQBQG7K.mjs} +4 -4
  49. package/dist/{chunk-H76C5AOU.mjs → chunk-3K2E55BJ.mjs} +2 -2
  50. package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
  51. package/dist/{chunk-FNVGK72M.mjs → chunk-44G4XHEL.mjs} +15 -8
  52. package/dist/{chunk-63EFR2WF.cjs → chunk-4H4ZXUNB.cjs} +3 -3
  53. package/dist/{chunk-ZBE5EHVJ.mjs → chunk-4MIDUSIX.mjs} +14 -14
  54. package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
  55. package/dist/{chunk-WXMR3OHY.mjs → chunk-4WXNTAOM.mjs} +1 -1
  56. package/dist/{chunk-LTDMJD2F.cjs → chunk-5OAN7BG5.cjs} +12 -12
  57. package/dist/{chunk-MQW4LHJR.cjs → chunk-5VDJEKGK.cjs} +4 -4
  58. package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
  59. package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
  60. package/dist/{chunk-WHNNDFCJ.mjs → chunk-6GJZJAED.mjs} +1 -1
  61. package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
  62. package/dist/{chunk-SFSTZ7TB.cjs → chunk-7DD5TNPS.cjs} +8 -8
  63. package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
  64. package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
  65. package/dist/{chunk-62DZHPDK.cjs → chunk-7YLDUB4R.cjs} +10 -10
  66. package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
  67. package/dist/{chunk-OCKQ3YOH.mjs → chunk-A5D3UMLJ.mjs} +2 -2
  68. package/dist/{chunk-DSRWQ4SJ.cjs → chunk-ANZLZNNX.cjs} +83 -25
  69. package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
  70. package/dist/{chunk-FVVGEGQ2.cjs → chunk-AXA2BSX3.cjs} +2 -2
  71. package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
  72. package/dist/{chunk-FPGSIOWS.mjs → chunk-BPWTSPK6.mjs} +3 -3
  73. package/dist/{chunk-UYACD4SH.cjs → chunk-CCMP4JD2.cjs} +1 -1
  74. package/dist/{chunk-JHZ6HULQ.cjs → chunk-CGIVCGH5.cjs} +2 -2
  75. package/dist/{chunk-ERT6HQAI.mjs → chunk-CNDBLUKI.mjs} +2 -2
  76. package/dist/{chunk-3AJQFVWW.mjs → chunk-COTFX4GT.mjs} +2 -2
  77. package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
  78. package/dist/{chunk-PUEPDMWY.cjs → chunk-DVHFIETW.cjs} +29 -22
  79. package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
  80. package/dist/{chunk-TQOYIPMQ.mjs → chunk-EG5YBYHO.mjs} +2 -2
  81. package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
  82. package/dist/{chunk-GAAK3HDZ.mjs → chunk-EY7ED5UW.mjs} +6 -6
  83. package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
  84. package/dist/{chunk-YRQ44JTF.cjs → chunk-G4SZC2WH.cjs} +649 -446
  85. package/dist/{chunk-OQZF6H6G.cjs → chunk-GAWSWJJ2.cjs} +27 -27
  86. package/dist/{chunk-QUEYL2WM.cjs → chunk-GBESKA76.cjs} +4 -4
  87. package/dist/{chunk-NTHAZLVS.mjs → chunk-GBW5DU7V.mjs} +385 -182
  88. package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
  89. package/dist/{chunk-Q2EKSSEG.cjs → chunk-HEDGTXXB.cjs} +14 -14
  90. package/dist/{chunk-5QZT2EQN.cjs → chunk-HNUBRUFQ.cjs} +2 -2
  91. package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
  92. package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
  93. package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
  94. package/dist/{chunk-SMYDCZBW.mjs → chunk-JGEN2FIT.mjs} +1 -1
  95. package/dist/{chunk-3GMD2E4Q.mjs → chunk-K3XKEZR6.mjs} +3 -3
  96. package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
  97. package/dist/{chunk-IXC6WDMT.mjs → chunk-KEU55O2D.mjs} +1 -1
  98. package/dist/{chunk-5WFPZG7K.mjs → chunk-KKVRWNDH.mjs} +6 -6
  99. package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
  100. package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
  101. package/dist/{chunk-YROK6CJC.cjs → chunk-LVGB5PYK.cjs} +30 -30
  102. package/dist/{chunk-QODXWUGQ.mjs → chunk-MDEFTF63.mjs} +69 -14
  103. package/dist/{chunk-FTQUNBRN.cjs → chunk-MHKPXX3J.cjs} +2 -2
  104. package/dist/{chunk-HFJLMALC.cjs → chunk-MQOHYV6L.cjs} +17 -17
  105. package/dist/{chunk-BGUTIQII.mjs → chunk-MUZHULW2.mjs} +1 -1
  106. package/dist/{chunk-WGNGM6MJ.mjs → chunk-MZ5QGWRW.mjs} +2 -2
  107. package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
  108. package/dist/{chunk-CF74ABRI.mjs → chunk-NJ4OASLP.mjs} +4 -4
  109. package/dist/{chunk-RFXEQYPH.cjs → chunk-NW3DL2PM.cjs} +83 -24
  110. package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
  111. package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
  112. package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
  113. package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
  114. package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
  115. package/dist/{chunk-PG7J7XYT.cjs → chunk-Q4TRGTO7.cjs} +6 -6
  116. package/dist/{chunk-KUXEII7V.mjs → chunk-Q4YEAWUK.mjs} +1 -1
  117. package/dist/{chunk-D2RLADWN.mjs → chunk-QBJ6N5MT.mjs} +83 -24
  118. package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
  119. package/dist/{chunk-2QPTZMGK.mjs → chunk-QHAISITM.mjs} +1 -1
  120. package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
  121. package/dist/{chunk-TZ2YPXLB.cjs → chunk-RLCOWWE5.cjs} +7 -7
  122. package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
  123. package/dist/{chunk-SL2BSPDJ.mjs → chunk-RPA45OQS.mjs} +2 -2
  124. package/dist/{chunk-ORWXJDUN.mjs → chunk-RQBGHHOQ.mjs} +1 -1
  125. package/dist/{chunk-GC2BSXQS.cjs → chunk-SDICLSQU.cjs} +11 -11
  126. package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
  127. package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
  128. package/dist/{chunk-IIVZTGGP.cjs → chunk-T3SMMLSB.cjs} +2 -2
  129. package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
  130. package/dist/chunk-TIZJYHB7.mjs +42 -0
  131. package/dist/{chunk-NQZWLIPT.cjs → chunk-TS3ZHJN5.cjs} +3 -3
  132. package/dist/{chunk-KHS3T3E5.mjs → chunk-TYHWZOA2.mjs} +1 -1
  133. package/dist/{chunk-Z3QXQN4U.mjs → chunk-U6GMCDRS.mjs} +1 -1
  134. package/dist/{chunk-URQW27KO.mjs → chunk-UBLKPREL.mjs} +1 -1
  135. package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
  136. package/dist/{chunk-PE2LEWXA.mjs → chunk-UJPE75GF.mjs} +1 -1
  137. package/dist/{chunk-6ZFGWB75.cjs → chunk-UWOCYINY.cjs} +4 -4
  138. package/dist/chunk-UZM3PDKK.cjs +46 -0
  139. package/dist/{chunk-YTGNMKRA.mjs → chunk-V73Y4UBL.mjs} +67 -9
  140. package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
  141. package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
  142. package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
  143. package/dist/{chunk-47R7CX4A.mjs → chunk-WBPVLCNE.mjs} +1 -1
  144. package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
  145. package/dist/{chunk-WZVESREI.cjs → chunk-WJ2O2MPP.cjs} +312 -291
  146. package/dist/{chunk-SIYELCIX.cjs → chunk-X4TSMQWF.cjs} +339 -309
  147. package/dist/{chunk-DASQJ5UD.mjs → chunk-XF7MJSUS.mjs} +1 -1
  148. package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
  149. package/dist/{chunk-YN7G22MP.cjs → chunk-XKUKWMGX.cjs} +3 -3
  150. package/dist/{chunk-JD42G6BN.cjs → chunk-XY5OZQF6.cjs} +2 -2
  151. package/dist/{chunk-7EXFAJST.mjs → chunk-XZBBKZGW.mjs} +80 -59
  152. package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
  153. package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
  154. package/dist/{chunk-65XXHTVJ.mjs → chunk-YN3YMSKD.mjs} +4 -4
  155. package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
  156. package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
  157. package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
  158. package/dist/{chunk-DZ3AZ7UK.cjs → chunk-Z4SMFUZ7.cjs} +28 -28
  159. package/dist/{chunk-7SAGHWWU.cjs → chunk-Z5BANEQD.cjs} +6 -6
  160. package/dist/{chunk-IHMSLS2O.mjs → chunk-ZDYYZX73.mjs} +63 -33
  161. package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
  162. package/dist/{chunk-FCHEO3LG.cjs → chunk-ZPEZXQTM.cjs} +22 -22
  163. package/dist/{chunk-PMKUTZGR.cjs → chunk-ZVSQN7NC.cjs} +135 -80
  164. package/dist/{cli-runtime.d-DljFfr8T.d.ts → cli-runtime.d-8BhZy_wr.d.ts} +7 -6
  165. package/dist/{cli-runtime.d-HSkdfvoq.d.mts → cli-runtime.d-DPNTN-JV.d.mts} +7 -6
  166. package/dist/client/lifecycle.cjs +1 -1
  167. package/dist/client/lifecycle.d.mts +1 -1
  168. package/dist/client/lifecycle.d.ts +1 -1
  169. package/dist/client/lifecycle.mjs +1 -1
  170. package/dist/{client-component.d-B-1dIlsw.d.mts → client-component.d-CMCdyAr8.d.mts} +1 -1
  171. package/dist/{client-component.d-_otXB__v.d.ts → client-component.d-CkDcob6D.d.ts} +1 -1
  172. package/dist/client-plugins.cjs +1 -1
  173. package/dist/{client-plugins.d-MjxlvbCK.d.ts → client-plugins.d-BYIovYqX.d.ts} +4 -4
  174. package/dist/{client-plugins.d-BmBzvfSP.d.mts → client-plugins.d-WcMwOZGZ.d.mts} +4 -4
  175. package/dist/client-plugins.d.mts +4 -4
  176. package/dist/client-plugins.d.ts +4 -4
  177. package/dist/client-plugins.mjs +1 -1
  178. package/dist/client.cjs +4 -4
  179. package/dist/client.d.mts +9 -9
  180. package/dist/client.d.ts +9 -9
  181. package/dist/client.mjs +3 -3
  182. package/dist/config.cjs +1 -1
  183. package/dist/config.d.mts +4 -4
  184. package/dist/config.d.ts +4 -4
  185. package/dist/config.mjs +1 -1
  186. package/dist/cron.cjs +4 -4
  187. package/dist/cron.mjs +3 -3
  188. package/dist/deferred.cjs +1 -1
  189. package/dist/deferred.mjs +1 -1
  190. package/dist/deployment.cjs +1 -1
  191. package/dist/deployment.mjs +1 -1
  192. package/dist/desktop.cjs +1 -1
  193. package/dist/desktop.d.mts +5 -5
  194. package/dist/desktop.d.ts +5 -5
  195. package/dist/desktop.mjs +1 -1
  196. package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
  197. package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
  198. package/dist/{devtools-7LHXG2VS.mjs → devtools-F3FDFV26.mjs} +11 -11
  199. package/dist/{devtools-NNQN66EZ.cjs → devtools-JJOYTIMS.cjs} +13 -13
  200. package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
  201. package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
  202. package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
  203. package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
  204. package/dist/docs.cjs +15 -15
  205. package/dist/docs.d.mts +6 -6
  206. package/dist/docs.d.ts +6 -6
  207. package/dist/docs.mjs +14 -14
  208. package/dist/env-types.cjs +1 -1
  209. package/dist/env-types.mjs +1 -1
  210. package/dist/env.cjs +1 -1
  211. package/dist/env.mjs +1 -1
  212. package/dist/environment/vite.cjs +6 -6
  213. package/dist/environment/vite.d.mts +9 -0
  214. package/dist/environment/vite.d.ts +9 -0
  215. package/dist/environment/vite.mjs +5 -5
  216. package/dist/environment.cjs +1 -1
  217. package/dist/environment.mjs +1 -1
  218. package/dist/font.cjs +1 -1
  219. package/dist/font.mjs +1 -1
  220. package/dist/{handler.d-C53zFDmp.d.ts → handler.d-BwdOyc9x.d.ts} +1 -1
  221. package/dist/{handler.d-CaYopqaD.d.mts → handler.d-s3IM6pbJ.d.mts} +1 -1
  222. package/dist/headers.cjs +1 -1
  223. package/dist/{headers.d-MBkD9ZLf.d.mts → headers.d-BR-OXrqQ.d.mts} +1 -1
  224. package/dist/{headers.d-BvtpC90T.d.ts → headers.d-CAW4wPey.d.ts} +1 -1
  225. package/dist/headers.mjs +1 -1
  226. package/dist/i18n/client.cjs +1 -1
  227. package/dist/i18n/client.mjs +1 -1
  228. package/dist/i18n/index.cjs +1 -1
  229. package/dist/i18n/index.mjs +1 -1
  230. package/dist/i18n/server.cjs +1 -1
  231. package/dist/i18n/server.mjs +1 -1
  232. package/dist/image/server.cjs +1 -1
  233. package/dist/image/server.mjs +1 -1
  234. package/dist/image/sharp.cjs +1 -1
  235. package/dist/image/sharp.mjs +1 -1
  236. package/dist/image.cjs +1 -1
  237. package/dist/image.mjs +1 -1
  238. package/dist/index.cjs +74 -68
  239. package/dist/{index.d-Mikf-tdP.d.mts → index.d-BEVK61zS.d.mts} +1 -1
  240. package/dist/{index.d-2hQpPZ-P.d.ts → index.d-ah2c89Wu.d.ts} +1 -1
  241. package/dist/index.d.mts +25 -25
  242. package/dist/index.d.ts +25 -25
  243. package/dist/index.mjs +72 -66
  244. package/dist/instrumentation.cjs +1 -1
  245. package/dist/instrumentation.mjs +1 -1
  246. package/dist/integrations/orm.cjs +4 -4
  247. package/dist/integrations/orm.d.mts +4 -4
  248. package/dist/integrations/orm.d.ts +4 -4
  249. package/dist/integrations/orm.mjs +3 -3
  250. package/dist/integrations.cjs +3 -3
  251. package/dist/integrations.d.mts +4 -4
  252. package/dist/integrations.d.ts +4 -4
  253. package/dist/integrations.mjs +2 -2
  254. package/dist/internal/app-markdown-runtime.cjs +5 -5
  255. package/dist/internal/app-markdown-runtime.d.mts +5 -5
  256. package/dist/internal/app-markdown-runtime.d.ts +5 -5
  257. package/dist/internal/app-markdown-runtime.mjs +4 -4
  258. package/dist/internal/build-runtime.cjs +51 -51
  259. package/dist/internal/build-runtime.d.mts +7 -7
  260. package/dist/internal/build-runtime.d.ts +7 -7
  261. package/dist/internal/build-runtime.mjs +50 -50
  262. package/dist/internal/cli-runtime.cjs +31 -28
  263. package/dist/internal/cli-runtime.d.mts +11 -11
  264. package/dist/internal/cli-runtime.d.ts +11 -11
  265. package/dist/internal/cli-runtime.mjs +30 -27
  266. package/dist/internal/client-error-overlay.cjs +5 -5
  267. package/dist/internal/client-error-overlay.mjs +2 -2
  268. package/dist/internal/client-runtime.cjs +49 -12
  269. package/dist/internal/client-runtime.d.mts +17 -21
  270. package/dist/internal/client-runtime.d.ts +17 -21
  271. package/dist/internal/client-runtime.mjs +38 -1
  272. package/dist/internal/compression-runtime.cjs +1 -1
  273. package/dist/internal/compression-runtime.d.mts +4 -4
  274. package/dist/internal/compression-runtime.d.ts +4 -4
  275. package/dist/internal/compression-runtime.mjs +1 -1
  276. package/dist/internal/config-runtime.cjs +13 -13
  277. package/dist/internal/config-runtime.d.mts +6 -6
  278. package/dist/internal/config-runtime.d.ts +6 -6
  279. package/dist/internal/config-runtime.mjs +12 -12
  280. package/dist/internal/desktop-guard.cjs +1 -1
  281. package/dist/internal/desktop-guard.mjs +1 -1
  282. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  283. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  284. package/dist/internal/form-actions-client.cjs +1 -1
  285. package/dist/internal/form-actions-client.mjs +1 -1
  286. package/dist/internal/form-actions.cjs +1 -1
  287. package/dist/internal/form-actions.mjs +1 -1
  288. package/dist/internal/infra-analytics-runtime.cjs +11 -11
  289. package/dist/internal/infra-analytics-runtime.mjs +9 -9
  290. package/dist/internal/island-codec.cjs +1 -1
  291. package/dist/internal/island-codec.mjs +1 -1
  292. package/dist/internal/island-value-store.cjs +1 -1
  293. package/dist/internal/island-value-store.mjs +1 -1
  294. package/dist/internal/islands-boot.cjs +59 -10
  295. package/dist/internal/islands-boot.d.mts +19 -1
  296. package/dist/internal/islands-boot.d.ts +19 -1
  297. package/dist/internal/islands-boot.mjs +55 -6
  298. package/dist/internal/islands-runtime.cjs +1 -1
  299. package/dist/internal/islands-runtime.mjs +1 -1
  300. package/dist/internal/islands-server.cjs +1 -1
  301. package/dist/internal/islands-server.mjs +1 -1
  302. package/dist/internal/islx-client.cjs +1 -1
  303. package/dist/internal/islx-react.cjs +1 -1
  304. package/dist/internal/islx-server.cjs +1 -1
  305. package/dist/internal/isolated-boundary.cjs +1 -1
  306. package/dist/internal/isolated-boundary.mjs +1 -1
  307. package/dist/internal/metadata-image-runtime.cjs +1 -1
  308. package/dist/internal/metadata-image-runtime.mjs +1 -1
  309. package/dist/internal/native-server-fns.cjs +5 -5
  310. package/dist/internal/native-server-fns.mjs +4 -4
  311. package/dist/internal/product-telemetry-runtime.cjs +4 -4
  312. package/dist/internal/product-telemetry-runtime.mjs +3 -3
  313. package/dist/internal/production-node-env.cjs +1 -1
  314. package/dist/internal/production-node-env.mjs +1 -1
  315. package/dist/internal/production-runtime.cjs +27 -27
  316. package/dist/internal/production-runtime.d.mts +14 -13
  317. package/dist/internal/production-runtime.d.ts +14 -13
  318. package/dist/internal/production-runtime.mjs +28 -28
  319. package/dist/internal/react-cache.cjs +1 -1
  320. package/dist/internal/react-cache.mjs +1 -1
  321. package/dist/internal/request-cookies.cjs +1 -1
  322. package/dist/internal/request-cookies.mjs +1 -1
  323. package/dist/internal/server-fn-transform.cjs +1 -1
  324. package/dist/internal/server-fn-transform.mjs +1 -1
  325. package/dist/internal/server-tree.cjs +1 -1
  326. package/dist/internal/server-tree.mjs +1 -1
  327. package/dist/internal/spa-router.cjs +44 -0
  328. package/dist/internal/spa-router.d.mts +41 -0
  329. package/dist/internal/spa-router.d.ts +41 -0
  330. package/dist/internal/spa-router.mjs +44 -0
  331. package/dist/internal/start-manifest.cjs +1 -1
  332. package/dist/internal/start-manifest.d.mts +4 -4
  333. package/dist/internal/start-manifest.d.ts +4 -4
  334. package/dist/internal/start-manifest.mjs +1 -1
  335. package/dist/internal/vercel-edge-middleware.cjs +4 -4
  336. package/dist/internal/vercel-edge-middleware.mjs +3 -3
  337. package/dist/json-ld.cjs +1 -1
  338. package/dist/json-ld.mjs +1 -1
  339. package/dist/{layers-I7VE5Q2Y.mjs → layers-5ZD4764G.mjs} +1 -1
  340. package/dist/{layers-WP5K5F7W.cjs → layers-HMEGUEXM.cjs} +1 -1
  341. package/dist/libsql-http-2QD224YS.mjs +600 -0
  342. package/dist/libsql-http-M6LMNXCN.cjs +600 -0
  343. package/dist/{lifecycle.d-VzcXyEyn.d.ts → lifecycle.d-OtGWAvJT.d.mts} +1 -1
  344. package/dist/{lifecycle.d-VzcXyEyn.d.mts → lifecycle.d-OtGWAvJT.d.ts} +1 -1
  345. package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
  346. package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
  347. package/dist/markdown.cjs +4 -4
  348. package/dist/markdown.d.mts +4 -4
  349. package/dist/markdown.d.ts +4 -4
  350. package/dist/markdown.mjs +3 -3
  351. package/dist/middleware.cjs +10 -10
  352. package/dist/middleware.d.mts +4 -4
  353. package/dist/middleware.d.ts +4 -4
  354. package/dist/middleware.mjs +9 -9
  355. package/dist/mobile.cjs +1 -1
  356. package/dist/mobile.mjs +1 -1
  357. package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
  358. package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
  359. package/dist/{mount.d-GU-tNxbE.d.ts → mount.d-DcoPFqv5.d.ts} +1 -1
  360. package/dist/{mount.d-DsP46XCy.d.mts → mount.d-Ylo-CmzK.d.mts} +1 -1
  361. package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-OXFTI6V5.mjs} +5 -5
  362. package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-TNVFEQW3.cjs} +6 -6
  363. package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
  364. package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
  365. package/dist/{native-tree-D3PW64ZL.cjs → native-tree-5TENEQ7Y.cjs} +5 -5
  366. package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-LNO7K6JR.mjs} +4 -4
  367. package/dist/native.cjs +1 -1
  368. package/dist/native.mjs +1 -1
  369. package/dist/{navigation-delegate.d-DsxNPrLT.d.ts → navigation-delegate.d-2MK4YSlL.d.ts} +1 -1
  370. package/dist/{navigation-delegate.d-CUtNOYLi.d.mts → navigation-delegate.d-BA5h0fbE.d.mts} +1 -1
  371. package/dist/navigation.cjs +5 -5
  372. package/dist/navigation.d.mts +7 -7
  373. package/dist/navigation.d.ts +7 -7
  374. package/dist/navigation.mjs +4 -4
  375. package/dist/{nitro-HKMVYIXY.cjs → nitro-6UOJXJZ6.cjs} +8 -8
  376. package/dist/{nitro-RHLKLYXH.mjs → nitro-C3MYDX7V.mjs} +4 -4
  377. package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
  378. package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
  379. package/dist/observability.cjs +9 -3
  380. package/dist/{observability.d-DdJRiaIX.d.ts → observability.d-mXSbp4jc.d.mts} +17 -1
  381. package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.ts} +17 -1
  382. package/dist/observability.d.mts +1 -1
  383. package/dist/observability.d.ts +1 -1
  384. package/dist/observability.mjs +8 -2
  385. package/dist/og.cjs +1 -1
  386. package/dist/og.mjs +1 -1
  387. package/dist/platform.cjs +1 -1
  388. package/dist/platform.mjs +1 -1
  389. package/dist/{plugin-2KWR2X4B.mjs → plugin-33I3V42N.mjs} +2 -2
  390. package/dist/{plugin-MW7IDV76.cjs → plugin-LN3JBZRR.cjs} +3 -3
  391. package/dist/plugin.cjs +41 -41
  392. package/dist/plugin.d.mts +8 -8
  393. package/dist/plugin.d.ts +8 -8
  394. package/dist/plugin.mjs +40 -40
  395. package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
  396. package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
  397. package/dist/query/client.cjs +7 -7
  398. package/dist/query/client.mjs +2 -2
  399. package/dist/query/index.cjs +1 -1
  400. package/dist/query/index.mjs +1 -1
  401. package/dist/query/parsers.cjs +1 -1
  402. package/dist/query/parsers.mjs +1 -1
  403. package/dist/query/server.cjs +1 -1
  404. package/dist/query/server.mjs +1 -1
  405. package/dist/{render-plan.d-8K6S0h0L.d.ts → render-plan.d-2o-AG-ot.d.ts} +1 -1
  406. package/dist/{render-plan.d-B7Xp-PPW.d.mts → render-plan.d-ChYBMhLu.d.mts} +1 -1
  407. package/dist/renderer/none/server.cjs +1 -1
  408. package/dist/renderer/none/server.mjs +1 -1
  409. package/dist/renderer/react/client.cjs +1 -1
  410. package/dist/renderer/react/client.mjs +1 -1
  411. package/dist/renderer/react/server.cjs +1 -1
  412. package/dist/renderer/react/server.mjs +1 -1
  413. package/dist/renderer/react/vite.cjs +1 -1
  414. package/dist/renderer/react/vite.mjs +1 -1
  415. package/dist/renderer-client.cjs +5 -5
  416. package/dist/renderer-client.d.mts +7 -7
  417. package/dist/renderer-client.d.ts +7 -7
  418. package/dist/renderer-client.mjs +2 -2
  419. package/dist/renderer.cjs +1 -1
  420. package/dist/renderer.d.mts +16 -1
  421. package/dist/renderer.d.ts +16 -1
  422. package/dist/renderer.mjs +1 -1
  423. package/dist/request.cjs +1 -1
  424. package/dist/{request.d-CuQxmOqX.d.ts → request.d-CE0FIkiM.d.ts} +1 -1
  425. package/dist/{request.d-nhqciCAz.d.mts → request.d-RCnCBuWq.d.mts} +1 -1
  426. package/dist/request.d.mts +5 -5
  427. package/dist/request.d.ts +5 -5
  428. package/dist/request.mjs +1 -1
  429. package/dist/{route-rendering.d-BSsdDYC1.d.ts → route-rendering.d-BTPOM2nU.d.ts} +1 -1
  430. package/dist/{route-rendering.d-CeF1FOnl.d.mts → route-rendering.d-BZJnfKsp.d.mts} +1 -1
  431. package/dist/router.cjs +1 -1
  432. package/dist/{router.d-C7yGlhDL.d.ts → router.d-BU_WE6Ol.d.ts} +1 -1
  433. package/dist/{router.d-D462OX24.d.mts → router.d-D8Vvwl4i.d.mts} +1 -1
  434. package/dist/router.mjs +1 -1
  435. package/dist/routes.cjs +5 -5
  436. package/dist/routes.d.mts +4 -4
  437. package/dist/routes.d.ts +4 -4
  438. package/dist/routes.mjs +4 -4
  439. package/dist/{rsc-pipeline-7PV6ARDS.cjs → rsc-pipeline-A3R4U26C.cjs} +17 -17
  440. package/dist/{rsc-pipeline-EZU4W4RL.mjs → rsc-pipeline-JZWVSHOR.mjs} +16 -16
  441. package/dist/{runtime-RWLFEPS3.mjs → runtime-SQFRHRGJ.mjs} +20 -20
  442. package/dist/{runtime-QOE3NRXF.cjs → runtime-WZ3CHHGJ.cjs} +28 -28
  443. package/dist/{runtime.d-C-BHQMy5.d.mts → runtime.d-BnmuOXVD.d.mts} +1 -1
  444. package/dist/{runtime.d-CORDJQMy.d.ts → runtime.d-DJ6IIKcF.d.ts} +1 -1
  445. package/dist/safe-fetch.cjs +1 -1
  446. package/dist/safe-fetch.mjs +1 -1
  447. package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-EUPAUJVN.mjs} +3 -3
  448. package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-ZSCL47CT.cjs} +6 -6
  449. package/dist/schema.cjs +1 -1
  450. package/dist/schema.mjs +1 -1
  451. package/dist/search-client-A7YJT7JZ.cjs +15 -0
  452. package/dist/{search-client-OXH6GBNO.mjs → search-client-GIXIEU75.mjs} +2 -2
  453. package/dist/server-action-security.cjs +1 -1
  454. package/dist/server-action-security.mjs +1 -1
  455. package/dist/{server-components-status.d-BbADqqjq.d.ts → server-components-status.d-BeqSXcjM.d.ts} +1 -1
  456. package/dist/{server-components-status.d-BJ6huueH.d.mts → server-components-status.d-BzOg9M8g.d.mts} +1 -1
  457. package/dist/server-fn-client.cjs +1 -1
  458. package/dist/server-fn-client.mjs +1 -1
  459. package/dist/server-fn.cjs +5 -5
  460. package/dist/server-fn.mjs +4 -4
  461. package/dist/server-plugins.cjs +1 -1
  462. package/dist/server-plugins.d.mts +6 -6
  463. package/dist/server-plugins.d.ts +6 -6
  464. package/dist/server-plugins.mjs +1 -1
  465. package/dist/server-query-client.cjs +1 -1
  466. package/dist/server-query-client.mjs +1 -1
  467. package/dist/server-query.cjs +6 -6
  468. package/dist/server-query.mjs +5 -5
  469. package/dist/server.cjs +122 -100
  470. package/dist/server.d.mts +15 -15
  471. package/dist/server.d.ts +15 -15
  472. package/dist/server.mjs +77 -55
  473. package/dist/{session-WPAT6H76.mjs → session-4IB34X35.mjs} +3 -3
  474. package/dist/session-MOYQJ7E6.cjs +24 -0
  475. package/dist/{spa-router.d-DyGJLQc_.d.ts → spa-router.d-BOwuVkMl.d.ts} +20 -4
  476. package/dist/{spa-router.d-DfjafHyX.d.mts → spa-router.d-CDpftSsk.d.mts} +20 -4
  477. package/dist/{ssg.d-D11lz_wr.d.ts → ssg.d-BTVqyq8T.d.ts} +2 -2
  478. package/dist/{ssg.d-iiLTyLAO.d.mts → ssg.d-Bx_WFuwg.d.mts} +2 -2
  479. package/dist/storage.cjs +3 -3
  480. package/dist/storage.d.mts +112 -96
  481. package/dist/storage.d.ts +112 -96
  482. package/dist/storage.mjs +2 -2
  483. package/dist/testing.cjs +13 -13
  484. package/dist/testing.d.mts +4 -4
  485. package/dist/testing.d.ts +4 -4
  486. package/dist/testing.mjs +10 -10
  487. package/dist/theme/client.cjs +1 -1
  488. package/dist/theme/client.mjs +1 -1
  489. package/dist/theme/index.cjs +1 -1
  490. package/dist/theme/index.mjs +1 -1
  491. package/dist/theme/runtime.cjs +1 -1
  492. package/dist/theme/runtime.mjs +1 -1
  493. package/dist/theme/server.cjs +1 -1
  494. package/dist/theme/server.mjs +1 -1
  495. package/dist/{types.d-DC97bnjj.d.mts → types.d-C5hlNbHa.d.mts} +14 -2
  496. package/dist/{types.d-DC97bnjj.d.ts → types.d-C5hlNbHa.d.ts} +14 -2
  497. package/dist/{utils.d-fW-95yEh.d.mts → utils.d-JkrpS-NJ.d.mts} +1 -1
  498. package/dist/{utils.d-D-GQeEfa.d.ts → utils.d-_dvevm5s.d.ts} +1 -1
  499. package/dist/version.cjs +3 -3
  500. package/dist/version.mjs +2 -2
  501. package/dist/vite.cjs +43 -41
  502. package/dist/vite.d.mts +15 -10
  503. package/dist/vite.d.ts +15 -10
  504. package/dist/vite.mjs +42 -40
  505. package/dist/workflows.cjs +4 -4
  506. package/dist/workflows.mjs +3 -3
  507. package/package.json +9 -5
  508. package/types/images.d.ts +9 -0
  509. package/dist/analyzer-HTNXLX6N.cjs +0 -16
  510. package/dist/chunk-BTZ5O6VM.cjs +0 -14
  511. package/dist/chunk-Y6FXYEAI.mjs +0 -10
  512. package/dist/search-client-ZZLKVO5R.cjs +0 -15
  513. package/dist/session-OU7M4CIF.cjs +0 -24
  514. package/dist/{chunk-GFXKO4UW.mjs → chunk-3XTRT3MB.mjs} +48 -48
  515. package/dist/{chunk-BEXH6BGH.mjs → chunk-6JWXHPVR.mjs} +0 -0
  516. package/dist/{chunk-RL47VZ6J.mjs → chunk-C2OLXVUC.mjs} +0 -0
  517. package/dist/{chunk-YTNE4KGC.cjs → chunk-HS4JPIGR.cjs} +0 -0
  518. package/dist/{chunk-PC5OZ4YR.cjs → chunk-TCMRLW3K.cjs} +0 -0
  519. package/dist/{chunk-UOE6ZZZP.mjs → chunk-URBP6DLH.mjs} +0 -0
  520. package/dist/{chunk-AF3PNVVF.cjs → chunk-WGWWRV2M.cjs} +0 -0
  521. package/dist/{chunk-L7Y65BQU.cjs → chunk-WHEQJN4G.cjs} +48 -48
@@ -28,11 +28,11 @@ var _chunkNG2EZ6QScjs = require('./chunk-NG2EZ6QS.cjs');
28
28
  var _chunkVM57CK74cjs = require('./chunk-VM57CK74.cjs');
29
29
 
30
30
 
31
- var _chunkFTQUNBRNcjs = require('./chunk-FTQUNBRN.cjs');
31
+ var _chunkMHKPXX3Jcjs = require('./chunk-MHKPXX3J.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunkNQZWLIPTcjs = require('./chunk-NQZWLIPT.cjs');
35
+ var _chunkTS3ZHJN5cjs = require('./chunk-TS3ZHJN5.cjs');
36
36
 
37
37
 
38
38
 
@@ -41,7 +41,7 @@ var _chunkNQZWLIPTcjs = require('./chunk-NQZWLIPT.cjs');
41
41
 
42
42
 
43
43
 
44
- var _chunkFCHEO3LGcjs = require('./chunk-FCHEO3LG.cjs');
44
+ var _chunkZPEZXQTMcjs = require('./chunk-ZPEZXQTM.cjs');
45
45
 
46
46
 
47
47
 
@@ -54,18 +54,18 @@ var _chunkFCHEO3LGcjs = require('./chunk-FCHEO3LG.cjs');
54
54
 
55
55
 
56
56
 
57
- var _chunk6D3CJFNUcjs = require('./chunk-6D3CJFNU.cjs');
57
+ var _chunkHR5GU4UUcjs = require('./chunk-HR5GU4UU.cjs');
58
58
 
59
59
 
60
60
 
61
61
 
62
- var _chunkDZZHTMWMcjs = require('./chunk-DZZHTMWM.cjs');
62
+ var _chunkN3H7UPBMcjs = require('./chunk-N3H7UPBM.cjs');
63
63
 
64
64
 
65
- var _chunk42EUEYW6cjs = require('./chunk-42EUEYW6.cjs');
65
+ var _chunkYUQUGVSVcjs = require('./chunk-YUQUGVSV.cjs');
66
66
 
67
67
 
68
- var _chunkDSRWQ4SJcjs = require('./chunk-DSRWQ4SJ.cjs');
68
+ var _chunkANZLZNNXcjs = require('./chunk-ANZLZNNX.cjs');
69
69
 
70
70
 
71
71
  var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
@@ -74,7 +74,7 @@ var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
74
74
 
75
75
 
76
76
 
77
- var _chunkYROK6CJCcjs = require('./chunk-YROK6CJC.cjs');
77
+ var _chunkLVGB5PYKcjs = require('./chunk-LVGB5PYK.cjs');
78
78
 
79
79
 
80
80
  var _chunk3GNHJ3RNcjs = require('./chunk-3GNHJ3RN.cjs');
@@ -116,24 +116,24 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
116
116
 
117
117
 
118
118
 
119
- var _chunkSIYELCIXcjs = require('./chunk-SIYELCIX.cjs');
120
119
 
120
+ var _chunkX4TSMQWFcjs = require('./chunk-X4TSMQWF.cjs');
121
121
 
122
122
 
123
123
 
124
124
 
125
125
 
126
- var _chunk7SAGHWWUcjs = require('./chunk-7SAGHWWU.cjs');
127
126
 
127
+ var _chunkZ5BANEQDcjs = require('./chunk-Z5BANEQD.cjs');
128
128
 
129
- var _chunkPC5OZ4YRcjs = require('./chunk-PC5OZ4YR.cjs');
130
129
 
130
+ var _chunkTCMRLW3Kcjs = require('./chunk-TCMRLW3K.cjs');
131
131
 
132
132
 
133
133
 
134
134
 
135
- var _chunkGC2BSXQScjs = require('./chunk-GC2BSXQS.cjs');
136
135
 
136
+ var _chunkSDICLSQUcjs = require('./chunk-SDICLSQU.cjs');
137
137
 
138
138
 
139
139
 
@@ -145,7 +145,8 @@ var _chunkGC2BSXQScjs = require('./chunk-GC2BSXQS.cjs');
145
145
 
146
146
 
147
147
 
148
- var _chunk6ZFGWB75cjs = require('./chunk-6ZFGWB75.cjs');
148
+
149
+ var _chunkUWOCYINYcjs = require('./chunk-UWOCYINY.cjs');
149
150
 
150
151
 
151
152
  var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
@@ -159,15 +160,15 @@ var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
159
160
 
160
161
 
161
162
 
162
- var _chunkLTDMJD2Fcjs = require('./chunk-LTDMJD2F.cjs');
163
+ var _chunk5OAN7BG5cjs = require('./chunk-5OAN7BG5.cjs');
163
164
 
164
165
 
165
166
 
166
167
 
167
- var _chunkYRXPDKMMcjs = require('./chunk-YRXPDKMM.cjs');
168
+ var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
168
169
 
169
170
 
170
- var _chunkJD42G6BNcjs = require('./chunk-JD42G6BN.cjs');
171
+ var _chunkXY5OZQF6cjs = require('./chunk-XY5OZQF6.cjs');
171
172
 
172
173
 
173
174
  var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
@@ -188,7 +189,7 @@ var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
188
189
 
189
190
 
190
191
 
191
- var _chunkPMKUTZGRcjs = require('./chunk-PMKUTZGR.cjs');
192
+ var _chunkZVSQN7NCcjs = require('./chunk-ZVSQN7NC.cjs');
192
193
 
193
194
 
194
195
 
@@ -210,7 +211,6 @@ var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
210
211
  var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
211
212
 
212
213
 
213
- var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
214
214
 
215
215
 
216
216
 
@@ -218,16 +218,17 @@ var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
218
218
 
219
219
 
220
220
 
221
+ var _chunk67MZTLTFcjs = require('./chunk-67MZTLTF.cjs');
221
222
 
222
223
 
223
- var _chunk67MZTLTFcjs = require('./chunk-67MZTLTF.cjs');
224
+ var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
224
225
 
225
226
 
226
227
 
227
228
 
228
229
 
229
230
 
230
- var _chunkCYNQPKA4cjs = require('./chunk-CYNQPKA4.cjs');
231
+ var _chunk5ZHC6QGDcjs = require('./chunk-5ZHC6QGD.cjs');
231
232
 
232
233
 
233
234
  var _chunkXRFGOYXGcjs = require('./chunk-XRFGOYXG.cjs');
@@ -239,39 +240,39 @@ var _chunk3EIPOTZVcjs = require('./chunk-3EIPOTZV.cjs');
239
240
 
240
241
 
241
242
 
242
- var _chunkPG7J7XYTcjs = require('./chunk-PG7J7XYT.cjs');
243
+ var _chunkQ4TRGTO7cjs = require('./chunk-Q4TRGTO7.cjs');
243
244
 
244
245
 
245
246
 
246
247
  var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
247
248
 
248
249
 
249
- var _chunk2YJ4DHTDcjs = require('./chunk-2YJ4DHTD.cjs');
250
+ var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
250
251
 
251
252
 
252
253
  var _chunkASYOWPSRcjs = require('./chunk-ASYOWPSR.cjs');
253
254
 
254
255
 
255
256
 
256
- var _chunkQUEYL2WMcjs = require('./chunk-QUEYL2WM.cjs');
257
+ var _chunkGBESKA76cjs = require('./chunk-GBESKA76.cjs');
257
258
 
258
259
 
259
260
 
260
- var _chunkAF3PNVVFcjs = require('./chunk-AF3PNVVF.cjs');
261
+ var _chunkWGWWRV2Mcjs = require('./chunk-WGWWRV2M.cjs');
261
262
 
262
263
 
263
264
  var _chunkQKW6DLDTcjs = require('./chunk-QKW6DLDT.cjs');
264
265
 
265
266
 
266
- var _chunkRFXEQYPHcjs = require('./chunk-RFXEQYPH.cjs');
267
+ var _chunkNW3DL2PMcjs = require('./chunk-NW3DL2PM.cjs');
267
268
 
268
269
 
269
270
 
270
271
 
271
- var _chunkFE6KYDHCcjs = require('./chunk-FE6KYDHC.cjs');
272
+ var _chunkSHDCKRP4cjs = require('./chunk-SHDCKRP4.cjs');
272
273
 
273
274
 
274
- var _chunkHFJLMALCcjs = require('./chunk-HFJLMALC.cjs');
275
+ var _chunkMQOHYV6Lcjs = require('./chunk-MQOHYV6L.cjs');
275
276
 
276
277
 
277
278
  var _chunkCYOTNHDFcjs = require('./chunk-CYOTNHDF.cjs');
@@ -292,14 +293,14 @@ var _chunkIUKBPBM7cjs = require('./chunk-IUKBPBM7.cjs');
292
293
 
293
294
 
294
295
 
295
- var _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
296
+ var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
296
297
 
297
298
 
298
299
 
299
300
  var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
300
301
 
301
302
 
302
- var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
303
+ var _chunkCCMP4JD2cjs = require('./chunk-CCMP4JD2.cjs');
303
304
 
304
305
 
305
306
  var _chunkY3DO7BIJcjs = require('./chunk-Y3DO7BIJ.cjs');
@@ -326,7 +327,7 @@ var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
326
327
  var _chunkML4TOUZPcjs = require('./chunk-ML4TOUZP.cjs');
327
328
 
328
329
 
329
- var _chunkBTZ5O6VMcjs = require('./chunk-BTZ5O6VM.cjs');
330
+ var _chunkUZM3PDKKcjs = require('./chunk-UZM3PDKK.cjs');
330
331
 
331
332
  // src/build/index.ts
332
333
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
@@ -606,7 +607,7 @@ function getDocsTitle(docs) {
606
607
  return typeof docs.config.nav === "object" && docs.config.nav && "title" in docs.config.nav ? String(docs.config.nav.title || "Documentation") : "Documentation";
607
608
  }
608
609
  function loadPages(contentDir, docs) {
609
- return _chunk6D3CJFNUcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunk6D3CJFNUcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
610
+ return _chunkHR5GU4UUcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkHR5GU4UUcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
610
611
  }
611
612
  function findSocialImagePath(html, basePath) {
612
613
  const match = /<meta\s+property=["']og:image["']\s+content=["']([^"']+)["']/i.exec(html) || /<meta\s+content=["']([^"']+)["']\s+property=["']og:image["']/i.exec(html);
@@ -624,7 +625,7 @@ async function addHandlerRoute(routes, pathname, handler, absolutePaths) {
624
625
  return response;
625
626
  }
626
627
  async function compileFarmDocsManifest(docs, options) {
627
- const contentDir = _chunk6D3CJFNUcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
628
+ const contentDir = _chunkHR5GU4UUcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
628
629
  const pages = loadPages(contentDir, docs);
629
630
  const basePath = _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, options.basePath);
630
631
  const absolutePaths = [
@@ -632,7 +633,7 @@ async function compileFarmDocsManifest(docs, options) {
632
633
  _path2.default.resolve(contentDir),
633
634
  docs.configPath || ""
634
635
  ];
635
- const handler = _chunk6D3CJFNUcjs.createFarmDocsHandler.call(void 0, docs, {
636
+ const handler = _chunkHR5GU4UUcjs.createFarmDocsHandler.call(void 0, docs, {
636
637
  root: options.root,
637
638
  srcDir: options.srcDir,
638
639
  clientEntry: options.clientEntry,
@@ -642,7 +643,7 @@ async function compileFarmDocsManifest(docs, options) {
642
643
  isPathGuarded: options.isPathGuarded,
643
644
  basePath
644
645
  });
645
- const apiHandler = _chunkFCHEO3LGcjs.createFarmDocsAPIHandler.call(void 0, {
646
+ const apiHandler = _chunkZPEZXQTMcjs.createFarmDocsAPIHandler.call(void 0, {
646
647
  rootDir: options.root,
647
648
  srcDir: options.srcDir,
648
649
  docs,
@@ -654,7 +655,7 @@ async function compileFarmDocsManifest(docs, options) {
654
655
  const apiMarkdown = {};
655
656
  for (const page of pages) {
656
657
  const htmlResponse = await addHandlerRoute(routes, page.href, handler, absolutePaths);
657
- const markdownPath = _chunk6D3CJFNUcjs.getFarmDocsMarkdownPath.call(void 0, page.href);
658
+ const markdownPath = _chunkHR5GU4UUcjs.getFarmDocsMarkdownPath.call(void 0, page.href);
658
659
  await addHandlerRoute(routes, markdownPath, handler, absolutePaths);
659
660
  if (htmlResponse) {
660
661
  const socialImagePath = findSocialImagePath(await htmlResponse.text(), basePath);
@@ -739,7 +740,7 @@ async function compileFarmDocsManifest(docs, options) {
739
740
  post: await compileResponse(postResponse, absolutePaths),
740
741
  search: {
741
742
  pages: publicPages.map((page) => ({
742
- ..._chunk6D3CJFNUcjs.toFarmDocsMarkdownPage.call(void 0, page, basePath),
743
+ ..._chunkHR5GU4UUcjs.toFarmDocsMarkdownPage.call(void 0, page, basePath),
743
744
  sourcePath: `farm-docs:${page.slug || "index"}`
744
745
  })),
745
746
  search: _nullishCoalesce(searchConfig, () => ( true)),
@@ -792,22 +793,48 @@ function collectFarmClientModulePreloads(bundle, options) {
792
793
  const moduleId = chunk.facadeModuleId.split("?")[0];
793
794
  if (!_path2.default.isAbsolute(moduleId)) continue;
794
795
  const loaded = /* @__PURE__ */ new Set([...entryLoaded, chunk.fileName]);
795
- modules[_chunkGC5ROI3Acjs.toViteModuleId.call(void 0, moduleId, options.root)] = [
796
+ modules[_chunk7U4XF76Rcjs.toViteModuleId.call(void 0, moduleId, options.root)] = [
796
797
  chunk.fileName,
797
798
  ...staticImports(chunk, loaded, [])
798
799
  ].map(index);
799
800
  }
800
- return { files, entry: entryFiles.map(index), modules };
801
+ const dynamicFiles = (moduleIds) => {
802
+ const into = [];
803
+ const loaded = new Set(entryLoaded);
804
+ for (const moduleId of _nullishCoalesce(moduleIds, () => ( []))) {
805
+ const chunk = chunks.find(
806
+ (candidate) => candidate.isDynamicEntry && candidate.facadeModuleId && _path2.default.resolve(candidate.facadeModuleId.split("?")[0]) === _path2.default.resolve(moduleId)
807
+ );
808
+ if (!chunk || loaded.has(chunk.fileName)) continue;
809
+ loaded.add(chunk.fileName);
810
+ into.push(chunk.fileName);
811
+ staticImports(chunk, loaded, into);
812
+ }
813
+ return into;
814
+ };
815
+ const rendererFiles = dynamicFiles(options.rendererModules);
816
+ return {
817
+ files,
818
+ entry: entryFiles.map(index),
819
+ router: dynamicFiles(options.routerModules).map(index),
820
+ ...rendererFiles.length > 0 ? { renderer: rendererFiles.map(index) } : {},
821
+ modules
822
+ };
801
823
  }
802
824
  function createFarmClientModulePreloadPlugin(options) {
803
825
  return {
804
826
  name: "farm-client-module-preloads",
805
827
  enforce: "post",
806
828
  async generateBundle(_output, bundle) {
829
+ const rendererModules = [];
830
+ for (const specifier of _nullishCoalesce(options.rendererImports, () => ( []))) {
831
+ const resolved = await this.resolve(specifier, options.rendererImporter);
832
+ if (resolved) rendererModules.push(resolved.id);
833
+ }
807
834
  await _promises2.default.mkdir(options.buildDir, { recursive: true });
808
835
  await _promises2.default.writeFile(
809
836
  _path2.default.join(options.buildDir, FARM_CLIENT_MODULE_PRELOADS_FILE),
810
- JSON.stringify(collectFarmClientModulePreloads(bundle, options))
837
+ JSON.stringify(collectFarmClientModulePreloads(bundle, { ...options, rendererModules }))
811
838
  );
812
839
  }
813
840
  };
@@ -993,7 +1020,7 @@ async function createFarmRouteRuntimeManifest(options) {
993
1020
  const routes = [];
994
1021
  for (const [pattern, entry] of options.routeManager.getRoutes()) {
995
1022
  const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
996
- const rendering = await _chunkGC2BSXQScjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
1023
+ const rendering = await _chunkSDICLSQUcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
997
1024
  const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
998
1025
  routes.push({
999
1026
  kind: "page",
@@ -1606,7 +1633,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
1606
1633
  // removed block used (`readFileSync` for a version, say).
1607
1634
  enforce: "pre",
1608
1635
  transform: {
1609
- filter: { id: _chunkSIYELCIXcjs.fileNamePattern.call(void 0, configFiles) },
1636
+ filter: { id: _chunkX4TSMQWFcjs.fileNamePattern.call(void 0, configFiles) },
1610
1637
  async handler(code, id) {
1611
1638
  const file = id.split("?", 1)[0];
1612
1639
  if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
@@ -1685,12 +1712,15 @@ function createFarmPrivateClientSourcemapsPlugin(options) {
1685
1712
  return {
1686
1713
  name: "farm-private-client-sourcemaps",
1687
1714
  enforce: "post",
1688
- generateBundle(_output, bundle) {
1689
- maps = [];
1690
- for (const [fileName, output] of Object.entries(bundle)) {
1691
- if (output.type !== "asset" || !fileName.endsWith(".map")) continue;
1692
- maps.push([fileName, _nullishCoalesce(output.source, () => ( ""))]);
1693
- delete bundle[fileName];
1715
+ generateBundle: {
1716
+ order: "post",
1717
+ handler(_output, bundle) {
1718
+ maps = [];
1719
+ for (const [fileName, output] of Object.entries(bundle)) {
1720
+ if (output.type !== "asset" || !fileName.endsWith(".map")) continue;
1721
+ maps.push([fileName, _nullishCoalesce(output.source, () => ( ""))]);
1722
+ delete bundle[fileName];
1723
+ }
1694
1724
  }
1695
1725
  },
1696
1726
  async writeBundle() {
@@ -1886,7 +1916,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
1886
1916
  logLevel: "silent",
1887
1917
  plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
1888
1918
  resolve: {
1889
- alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
1919
+ alias: _chunkX4TSMQWFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
1890
1920
  conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
1891
1921
  },
1892
1922
  transform: {
@@ -1926,11 +1956,11 @@ Remove them from the middleware (Edge provides ${[...EDGE_NODE_MODULES].join(",
1926
1956
  );
1927
1957
  const gzippedBytes = _zlib.gzipSync.call(void 0, code).length;
1928
1958
  if (gzippedBytes > EDGE_FUNCTION_SIZE_WARNING_BYTES) {
1929
- _chunkGC5ROI3Acjs.logger.warn(
1959
+ _chunk7U4XF76Rcjs.logger.warn(
1930
1960
  `Vercel edge middleware is ${(gzippedBytes / 1024 / 1024).toFixed(2)} MB gzipped, over the Hobby plan's 1 MB Edge function limit (Pro allows 2 MB, Enterprise 4 MB).`
1931
1961
  );
1932
1962
  }
1933
- _chunkGC5ROI3Acjs.logger.info(
1963
+ _chunk7U4XF76Rcjs.logger.info(
1934
1964
  `\u{1F6E1}\uFE0F Vercel edge middleware: ${routes.length} middleware file(s) guard their prerendered pages before the CDN serves them`
1935
1965
  );
1936
1966
  }
@@ -1956,7 +1986,7 @@ function preloadFarmNitroBuilder() {
1956
1986
  (reason) => ({ status: "rejected", reason })
1957
1987
  );
1958
1988
  }
1959
- var _filename = typeof _chunkBTZ5O6VMcjs.define_import_meta_default.url !== "undefined" ? _url.fileURLToPath.call(void 0, _chunkBTZ5O6VMcjs.define_import_meta_default.url) : "";
1989
+ var _filename = typeof _chunkUZM3PDKKcjs.define_import_meta_default.url !== "undefined" ? _url.fileURLToPath.call(void 0, _chunkUZM3PDKKcjs.define_import_meta_default.url) : "";
1960
1990
  var _dirname = _path2.default.dirname(_filename);
1961
1991
  function findFarmCoreRoot(from) {
1962
1992
  let dir = _path2.default.dirname(from);
@@ -2108,7 +2138,7 @@ function createPrerenderMarkdownPagesPlugin(pages) {
2108
2138
  const compiled = await pages;
2109
2139
  if (compiled.size === 0) return "";
2110
2140
  return `globalThis[Symbol.for(${JSON.stringify(
2111
- _chunkPG7J7XYTcjs.FARM_MARKDOWN_PRECOMPILED_PAGES.description
2141
+ _chunkQ4TRGTO7cjs.FARM_MARKDOWN_PRECOMPILED_PAGES.description
2112
2142
  )})] = new Map(${JSON.stringify([...compiled])});`;
2113
2143
  }
2114
2144
  };
@@ -2139,7 +2169,7 @@ function createPrerenderRuntimeResolverPlugin(root, resolveNitroEntry = resolveN
2139
2169
  };
2140
2170
  }
2141
2171
  function createFarmStorageModuleRegistration(config) {
2142
- const modules = _chunkRFXEQYPHcjs._collectFarmStorageModules.call(void 0, config.storage);
2172
+ const modules = _chunkNW3DL2PMcjs._collectFarmStorageModules.call(void 0, config.storage);
2143
2173
  if (modules.length === 0) return "";
2144
2174
  const root = config.root || process.cwd();
2145
2175
  const projectRequire = _module.createRequire.call(void 0, _path2.default.join(root, "package.json"));
@@ -2288,7 +2318,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2288
2318
  return {
2289
2319
  name: "farm-omitted-metadata-image-runtime",
2290
2320
  resolveId: {
2291
- filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2321
+ filter: { id: _chunkX4TSMQWFcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2292
2322
  handler(source, importer) {
2293
2323
  if (source !== "@vercel/og") return null;
2294
2324
  const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
@@ -2297,7 +2327,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2297
2327
  }
2298
2328
  },
2299
2329
  load: {
2300
- filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2330
+ filter: { id: _chunkX4TSMQWFcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2301
2331
  handler(id) {
2302
2332
  if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
2303
2333
  return `
@@ -2346,7 +2376,7 @@ function createEdgeMetadataImageRuntimePlugin({
2346
2376
  return null;
2347
2377
  }
2348
2378
  const resolvedPath = _path2.default.resolve(_path2.default.dirname(importer.split("?", 1)[0]), source);
2349
- return { id: _chunkGC5ROI3Acjs.toPosixPath.call(void 0, resolvedPath), external: "absolute" };
2379
+ return { id: _chunk7U4XF76Rcjs.toPosixPath.call(void 0, resolvedPath), external: "absolute" };
2350
2380
  }
2351
2381
  };
2352
2382
  }
@@ -2626,9 +2656,9 @@ function hasFarmPluginRoutes(config) {
2626
2656
  }
2627
2657
  function farmServerRuntimePluginsMayHandlePath(config, pathname) {
2628
2658
  return (config.plugins || []).some(
2629
- (plugin) => _chunkAF3PNVVFcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && // Mobile session tokens change only bearer requests and cookie-clearing responses, which a
2659
+ (plugin) => _chunkWGWWRV2Mcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && // Mobile session tokens change only bearer requests and cookie-clearing responses, which a
2630
2660
  // prerendered file never answers or sends; its endpoints live under /__farm/.
2631
- plugin.name !== _chunkFTQUNBRNcjs.FARM_MOBILE_SESSION_PLUGIN && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
2661
+ plugin.name !== _chunkMHKPXX3Jcjs.FARM_MOBILE_SESSION_PLUGIN && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
2632
2662
  );
2633
2663
  }
2634
2664
  async function discoverMiddlewareRoutes(appDir) {
@@ -2658,8 +2688,8 @@ async function discoverMiddlewareRoutes(appDir) {
2658
2688
  }
2659
2689
  await walk(
2660
2690
  _path2.default.join(dir, entry.name),
2661
- _chunkFE6KYDHCcjs.appendMiddlewareRoutePath.call(void 0, routePath, entry.name),
2662
- _chunkFE6KYDHCcjs.appendMiddlewareDirectory.call(void 0, directory, entry.name),
2691
+ _chunkSHDCKRP4cjs.appendMiddlewareRoutePath.call(void 0, routePath, entry.name),
2692
+ _chunkSHDCKRP4cjs.appendMiddlewareDirectory.call(void 0, directory, entry.name),
2663
2693
  discovered
2664
2694
  );
2665
2695
  }
@@ -2671,7 +2701,7 @@ async function discoverMiddlewareRoutes(appDir) {
2671
2701
  routes.set(route.directory, route);
2672
2702
  }
2673
2703
  }
2674
- return Array.from(routes.values()).sort(_chunkFE6KYDHCcjs.compareMiddlewareRouteLocations).map(({ path: routePath, filePath }) => ({ path: routePath, filePath }));
2704
+ return Array.from(routes.values()).sort(_chunkSHDCKRP4cjs.compareMiddlewareRouteLocations).map(({ path: routePath, filePath }) => ({ path: routePath, filePath }));
2675
2705
  }
2676
2706
  function assertFarmDocsRuntimeSupported(config, preset) {
2677
2707
  if (!_optionalChain([config, 'access', _77 => _77.docs, 'optionalAccess', _78 => _78.enabled]) || !_optionalChain([config, 'access', _79 => _79.docs, 'access', _80 => _80.adapter, 'optionalAccess', _81 => _81.server]) || _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) !== "edge" || Boolean(config.docs.adapter.edgeCompiler)) {
@@ -2692,7 +2722,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
2692
2722
  Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkMF3IA2AWcjs.loadFarmProductionVite.call(void 0, ))))
2693
2723
  ]);
2694
2724
  const nitroBuilderResultPromise = preloadFarmNitroBuilder();
2695
- _chunkGC5ROI3Acjs.logger.info(`\u{1F69C} Building Farm.js application (universal) with preset: ${preset}...`);
2725
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F69C} Building Farm.js application (universal) with preset: ${preset}...`);
2696
2726
  const rendererBuild = options.rendererBuildLifetime ? void 0 : new AbortController();
2697
2727
  const rendererBuildLifetime = _nullishCoalesce(options.rendererBuildLifetime, () => ( rendererBuild.signal));
2698
2728
  let markdownPrecompile;
@@ -2709,7 +2739,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
2709
2739
  routeManager.getSearchPreserveRoutes().map((route) => [route.pattern, route])
2710
2740
  );
2711
2741
  for (const [pattern, entry] of routeManager.getRoutes()) {
2712
- const markdownSourcePath = entry.markdownSourcePath || (_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
2742
+ const markdownSourcePath = entry.markdownSourcePath || (_chunkQ4TRGTO7cjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
2713
2743
  const searchPreserve = searchPreserveRoutes.get(entry.pattern);
2714
2744
  pageRoutes.push({
2715
2745
  pattern,
@@ -2739,13 +2769,13 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
2739
2769
  fallback: entry.fallback
2740
2770
  })
2741
2771
  );
2742
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4CB} Found ${pageRoutes.length} page routes`);
2772
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4CB} Found ${pageRoutes.length} page routes`);
2743
2773
  const fs5 = await import("fs/promises");
2744
2774
  const layoutRoutes = Array.from(routeManager.getLayouts(), ([pattern, { modulePath }]) => ({
2745
2775
  pattern,
2746
2776
  modulePath
2747
2777
  }));
2748
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4CB} Found ${pageRoutes.length} page routes and ${layoutRoutes.length} layouts`);
2778
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4CB} Found ${pageRoutes.length} page routes and ${layoutRoutes.length} layouts`);
2749
2779
  const isolatedClientBoundaryModules = routeManager.getIsolatedClientBoundaryModules(root);
2750
2780
  const islandsErrors = routeManager.getIslandsErrors(root);
2751
2781
  if (islandsErrors.length > 0) {
@@ -2764,7 +2794,7 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2764
2794
  throw productionViteResult.reason;
2765
2795
  }
2766
2796
  const productionVite = productionViteResult.value;
2767
- _chunkGC5ROI3Acjs.logger.info("\u26A1 Building application bundles with Vite Rolldown");
2797
+ _chunk7U4XF76Rcjs.logger.info("\u26A1 Building application bundles with Vite Rolldown");
2768
2798
  const mobileClient = shouldBuildFarmMobileClient(config);
2769
2799
  const rendererDisabled = _chunk67MZTLTFcjs.isFarmRendererDisabled.call(void 0, config.renderer);
2770
2800
  const buildClientBundle = async () => {
@@ -2809,11 +2839,11 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2809
2839
  let clientBuildResult;
2810
2840
  let ssrBuildResult;
2811
2841
  if (!rendererDisabled && config.renderer.buildConcurrency === "serial") {
2812
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} Building client and SSR bundles serially for ${config.renderer.name}...`);
2842
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4E6} Building client and SSR bundles serially for ${config.renderer.name}...`);
2813
2843
  [clientBuildResult] = await Promise.allSettled([buildClientBundle()]);
2814
2844
  [ssrBuildResult] = await Promise.allSettled([buildSSRBundle()]);
2815
2845
  } else {
2816
- _chunkGC5ROI3Acjs.logger.info(
2846
+ _chunk7U4XF76Rcjs.logger.info(
2817
2847
  rendererDisabled ? "\u{1F4E6} Building the server bundle (renderer: false, no client bundle)..." : "\u{1F4E6} Building client and SSR bundles in parallel..."
2818
2848
  );
2819
2849
  [clientBuildResult, ssrBuildResult] = await Promise.allSettled([
@@ -2830,7 +2860,7 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2830
2860
  if (productionVite.builder !== "rolldown" || !(clientBuildResult.reason instanceof IncompleteClientBuildOutputError)) {
2831
2861
  throw clientBuildResult.reason;
2832
2862
  }
2833
- _chunkGC5ROI3Acjs.logger.warn("Client bundle was incomplete; retrying after the SSR build...");
2863
+ _chunk7U4XF76Rcjs.logger.warn("Client bundle was incomplete; retrying after the SSR build...");
2834
2864
  try {
2835
2865
  await buildClient(
2836
2866
  productionVite,
@@ -2860,7 +2890,7 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2860
2890
  const routeRuntimeManifest = routeRuntimeManifestResult.value;
2861
2891
  const runtimeValidation = validateFarmRouteRuntimeDeployment(routeRuntimeManifest, preset);
2862
2892
  for (const warning of runtimeValidation.warnings) {
2863
- _chunkGC5ROI3Acjs.logger.warn(warning);
2893
+ _chunk7U4XF76Rcjs.logger.warn(warning);
2864
2894
  }
2865
2895
  const { bundle: ssrBundle, entryFile: ssrEntryFile, configuredHeaderRoutes } = ssrResult;
2866
2896
  assertServerReadSSRAssetsSupported(ssrBundle, preset, root);
@@ -2871,7 +2901,7 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2871
2901
  if (config.docs.enabled) {
2872
2902
  await copyFarmDocsFontAssetsToClient(root, clientOutputDir);
2873
2903
  }
2874
- _chunkGC5ROI3Acjs.logger.info(`\u{1F680} Building server with Nitro (preset: ${preset})...`);
2904
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F680} Building server with Nitro (preset: ${preset})...`);
2875
2905
  await buildNitroUniversal(
2876
2906
  config,
2877
2907
  routeManager,
@@ -2893,7 +2923,7 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2893
2923
  _path2.default.join(root, distDir),
2894
2924
  routeRuntimeManifest
2895
2925
  );
2896
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4CB} Route runtime manifest: ${_path2.default.relative(root, runtimeManifestPath)}`);
2926
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4CB} Route runtime manifest: ${_path2.default.relative(root, runtimeManifestPath)}`);
2897
2927
  } catch (error) {
2898
2928
  if (lifecyclePluginManager) {
2899
2929
  await lifecyclePluginManager.runHookParallel("onError", {
@@ -2905,7 +2935,7 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2905
2935
  }
2906
2936
  });
2907
2937
  }
2908
- _chunkGC5ROI3Acjs.logger.error(`\u274C Build failed: ${error}`);
2938
+ _chunk7U4XF76Rcjs.logger.error(`\u274C Build failed: ${error}`);
2909
2939
  throw error;
2910
2940
  } finally {
2911
2941
  _optionalChain([rendererBuild, 'optionalAccess', _85 => _85.abort, 'call', _86 => _86()]);
@@ -2915,10 +2945,10 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2915
2945
  function collectFarmPrerenderedMarkdownBodies(pageRoutes) {
2916
2946
  const bodies = [];
2917
2947
  for (const route of pageRoutes) {
2918
- if (route.source === void 0 || !_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
2919
- const { body } = _chunkPG7J7XYTcjs.parseMarkdownFrontmatter.call(void 0, route.source);
2920
- const rendering = _chunkGC2BSXQScjs.resolveRouteRenderingConfig.call(void 0,
2921
- _chunkPG7J7XYTcjs.readFarmMarkdownRouteConfig.call(void 0, body),
2948
+ if (route.source === void 0 || !_chunkQ4TRGTO7cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
2949
+ const { body } = _chunkQ4TRGTO7cjs.parseMarkdownFrontmatter.call(void 0, route.source);
2950
+ const rendering = _chunkSDICLSQUcjs.resolveRouteRenderingConfig.call(void 0,
2951
+ _chunkQ4TRGTO7cjs.readFarmMarkdownRouteConfig.call(void 0, body),
2922
2952
  route.source
2923
2953
  );
2924
2954
  if (rendering.ssg && rendering.revalidate === void 0) bodies.push(body);
@@ -2961,7 +2991,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
2961
2991
  const filePath = _path2.default.join(outputDir, _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
2962
2992
  await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
2963
2993
  try {
2964
- await fs5.writeFile(filePath, _chunkSIYELCIXcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
2994
+ await fs5.writeFile(filePath, _chunkX4TSMQWFcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
2965
2995
  } catch (error) {
2966
2996
  if (error.code !== "EEXIST") throw error;
2967
2997
  }
@@ -2995,7 +3025,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
2995
3025
  }
2996
3026
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
2997
3027
  await fs5.writeFile(fontCssPath, normalizedFontCss);
2998
- await fs5.writeFile(clientCssPath, _chunkSIYELCIXcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
3028
+ await fs5.writeFile(clientCssPath, _chunkX4TSMQWFcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
2999
3029
  }
3000
3030
  function importsFarmClientBlockedPackage(id, packageName) {
3001
3031
  return id === packageName || id.startsWith(`${packageName}/`);
@@ -3045,10 +3075,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
3045
3075
  }
3046
3076
  }
3047
3077
  function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
3048
- const key = _chunkPMKUTZGRcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3078
+ const key = _chunkZVSQN7NCcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3049
3079
  let plan = cache.get(key);
3050
3080
  if (!plan) {
3051
- plan = _chunkPMKUTZGRcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3081
+ plan = _chunkZVSQN7NCcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3052
3082
  cache.set(key, plan);
3053
3083
  }
3054
3084
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -3057,7 +3087,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3057
3087
  if (!mobile) await _chunkE5UN4OWXcjs.removeFarmMobileClientManifest.call(void 0, _path2.default.dirname(outputDir));
3058
3088
  const viteBuild = productionVite.build;
3059
3089
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
3060
- const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
3090
+ const { PluginManager: PluginManager2 } = await import("./plugin-LN3JBZRR.cjs");
3061
3091
  const fs5 = await import("fs/promises");
3062
3092
  const pluginManager = new PluginManager2({
3063
3093
  config,
@@ -3066,25 +3096,25 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3066
3096
  });
3067
3097
  pluginManager.addPlugins(config.plugins || []);
3068
3098
  const clientPages = [];
3069
- const integrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations).filter(
3099
+ const integrationProviders = _chunkWGWWRV2Mcjs.getIntegrationProviders.call(void 0, config.integrations).filter(
3070
3100
  (provider) => provider.component || provider.type === "clerk"
3071
3101
  );
3072
3102
  const unsupportedIntegrationProvider = integrationProviders.find(
3073
3103
  (provider) => provider.supportsIsolatedHydration !== true
3074
3104
  );
3075
3105
  if (_optionalChain([config, 'access', _91 => _91.experimental, 'optionalAccess', _92 => _92.isolatedClientHydration]) === "enabled" && _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _93 => _93.experimental, 'optionalAccess', _94 => _94.serverComponents])) !== "rsc" && unsupportedIntegrationProvider) {
3076
- _chunkGC5ROI3Acjs.logger.warn(
3106
+ _chunk7U4XF76Rcjs.logger.warn(
3077
3107
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
3078
3108
  );
3079
3109
  }
3080
- const isolatedMode = _chunkPMKUTZGRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3110
+ const isolatedMode = _chunkZVSQN7NCcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3081
3111
  _optionalChain([config, 'access', _95 => _95.experimental, 'optionalAccess', _96 => _96.isolatedClientHydration]),
3082
3112
  {
3083
3113
  serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _97 => _97.experimental, 'optionalAccess', _98 => _98.serverComponents])) === "rsc",
3084
3114
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
3085
3115
  }
3086
3116
  );
3087
- const planOptions = _chunkPMKUTZGRcjs.getFarmClientHydrationPlanOptions.call(void 0,
3117
+ const planOptions = _chunkZVSQN7NCcjs.getFarmClientHydrationPlanOptions.call(void 0,
3088
3118
  config.renderer,
3089
3119
  Boolean(unsupportedIntegrationProvider)
3090
3120
  );
@@ -3096,13 +3126,13 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3096
3126
  ...planOptions,
3097
3127
  serverTreeLayouts: pagePlanOptions.serverOwners
3098
3128
  };
3099
- const layoutAppliesToRoute = _chunk6ZFGWB75cjs.routeBoundaryCoversDirectory;
3129
+ const layoutAppliesToRoute = _chunkUWOCYINYcjs.routeBoundaryCoversDirectory;
3100
3130
  const routeDirectory = (route) => _nullishCoalesce(route.directory, () => ( route.pattern));
3101
3131
  const islandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _101 => _101.experimental, 'optionalAccess', _102 => _102.serverComponents])) === "islands";
3102
3132
  const adapterOwnsDocsRuntime = Boolean(
3103
3133
  _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _optionalChain([config, 'access', _103 => _103.docs, 'optionalAccess', _104 => _104.enabled]) && _optionalChain([config, 'access', _105 => _105.docs, 'access', _106 => _106.adapter, 'optionalAccess', _107 => _107.server]) && config.docs.adapter.react
3104
3134
  );
3105
- const docsEntries = _optionalChain([config, 'access', _108 => _108.docs, 'optionalAccess', _109 => _109.enabled]) ? _chunk6D3CJFNUcjs.getFarmDocsRoots.call(void 0, config.docs).map(
3135
+ const docsEntries = _optionalChain([config, 'access', _108 => _108.docs, 'optionalAccess', _109 => _109.enabled]) ? _chunkHR5GU4UUcjs.getFarmDocsRoots.call(void 0, config.docs).map(
3106
3136
  (docsRoot) => `/${docsRoot.entry || "docs"}`.replace(/\/+/g, "/").replace(/\/$/, "") || "/"
3107
3137
  ) : [];
3108
3138
  const adapterDocsEntry = _nullishCoalesce(docsEntries[0], () => ( null));
@@ -3111,7 +3141,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3111
3141
  );
3112
3142
  const syntheticDocsEntry = _optionalChain([config, 'access', _110 => _110.docs, 'optionalAccess', _111 => _111.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
3113
3143
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
3114
- const plan = (operation) => sourceSnapshot ? _chunkPMKUTZGRcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkPMKUTZGRcjs.withFarmSourceSnapshot.call(void 0, operation);
3144
+ const plan = (operation) => sourceSnapshot ? _chunkZVSQN7NCcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkZVSQN7NCcjs.withFarmSourceSnapshot.call(void 0, operation);
3115
3145
  const { clientLayouts, clientRouteSlots } = plan(() => {
3116
3146
  const clientLayouts2 = layoutRoutes.map((layout) => {
3117
3147
  try {
@@ -3139,7 +3169,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3139
3169
  serverTreeLayout: metadata.serverTreeLayout
3140
3170
  };
3141
3171
  } catch (error) {
3142
- _chunkGC5ROI3Acjs.logger.warn(`\u26A0\uFE0F Could not inspect layout file ${layout.modulePath}: ${error}`);
3172
+ _chunk7U4XF76Rcjs.logger.warn(`\u26A0\uFE0F Could not inspect layout file ${layout.modulePath}: ${error}`);
3143
3173
  return {
3144
3174
  ...layout,
3145
3175
  shouldHydrate: false,
@@ -3158,7 +3188,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3158
3188
  };
3159
3189
  }
3160
3190
  });
3161
- const markdownPagePlan = _chunkPMKUTZGRcjs.createMarkdownPageHydrationPlanner.call(void 0,
3191
+ const markdownPagePlan = _chunkZVSQN7NCcjs.createMarkdownPageHydrationPlanner.call(void 0,
3162
3192
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
3163
3193
  root,
3164
3194
  isolatedMode,
@@ -3166,7 +3196,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3166
3196
  );
3167
3197
  const routePlans = pageRoutes.map((route) => ({
3168
3198
  route,
3169
- metadata: _chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
3199
+ metadata: _chunkQ4TRGTO7cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
3170
3200
  route.modulePath,
3171
3201
  root,
3172
3202
  isolatedMode,
@@ -3174,7 +3204,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3174
3204
  pagePlanOptions
3175
3205
  )
3176
3206
  }));
3177
- _chunkPMKUTZGRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3207
+ _chunkZVSQN7NCcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3178
3208
  clientLayouts2.map((layout) => ({
3179
3209
  pattern: layout.pattern,
3180
3210
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -3183,7 +3213,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3183
3213
  [
3184
3214
  ...routePlans.map(({ route, metadata }) => ({
3185
3215
  pattern: routeDirectory(route),
3186
- depth: _chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
3216
+ depth: _chunkUWOCYINYcjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
3187
3217
  metadata
3188
3218
  })),
3189
3219
  ...syntheticDocsPatterns.map((pattern) => ({
@@ -3207,8 +3237,8 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3207
3237
  for (const layout of clientLayouts2) {
3208
3238
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
3209
3239
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
3210
- _chunkGC5ROI3Acjs.logger.warn(
3211
- `\u26A0\uFE0F ${_chunkPMKUTZGRcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3240
+ _chunk7U4XF76Rcjs.logger.warn(
3241
+ `\u26A0\uFE0F ${_chunkZVSQN7NCcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3212
3242
  );
3213
3243
  }
3214
3244
  }
@@ -3220,7 +3250,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3220
3250
  if (!("isolatedHydrationEligible" in metadata) || !metadata.isolatedHydrationEligible) {
3221
3251
  continue;
3222
3252
  }
3223
- _chunkGC5ROI3Acjs.logger.info(
3253
+ _chunk7U4XF76Rcjs.logger.info(
3224
3254
  `\u{1F4CA} Isolated hydration analysis: ${entry.modulePath} can exclude its server owner and hydrate ${metadata.isolatedBoundaries.length} client ${metadata.isolatedBoundaries.length === 1 ? "boundary" : "boundaries"}.`
3225
3255
  );
3226
3256
  }
@@ -3242,8 +3272,8 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3242
3272
  (layout) => (layout.shouldHydrate || layout.hasIsolatedClientBoundaries) && layoutAppliesToRoute(layout.pattern, routeDirectory(route))
3243
3273
  );
3244
3274
  if (metadata.suppressedAsyncHydration) {
3245
- _chunkGC5ROI3Acjs.logger.warn(
3246
- `\u26A0\uFE0F ${_chunkPMKUTZGRcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3275
+ _chunk7U4XF76Rcjs.logger.warn(
3276
+ `\u26A0\uFE0F ${_chunkZVSQN7NCcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3247
3277
  );
3248
3278
  }
3249
3279
  const slotBoundaries = serverSlotPlans.filter(
@@ -3251,7 +3281,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3251
3281
  ).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
3252
3282
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
3253
3283
  const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
3254
- const islandStrategy = _chunkSIYELCIXcjs.resolveFarmRouteRootStrategy.call(void 0,
3284
+ const islandStrategy = _chunkX4TSMQWFcjs.resolveFarmRouteRootStrategy.call(void 0,
3255
3285
  route,
3256
3286
  metadata,
3257
3287
  clientLayouts2,
@@ -3270,12 +3300,12 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3270
3300
  ...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
3271
3301
  ],
3272
3302
  // The server renders a server tree only below a hydrating layout.
3273
- ..._chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3303
+ ..._chunkZVSQN7NCcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3274
3304
  });
3275
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
3305
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
3276
3306
  }
3277
3307
  } catch (error) {
3278
- _chunkGC5ROI3Acjs.logger.warn(`\u26A0\uFE0F Could not inspect route file ${route.modulePath}: ${error}`);
3308
+ _chunk7U4XF76Rcjs.logger.warn(`\u26A0\uFE0F Could not inspect route file ${route.modulePath}: ${error}`);
3279
3309
  }
3280
3310
  }
3281
3311
  if (syntheticDocsEntry) {
@@ -3307,10 +3337,10 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3307
3337
  }
3308
3338
  const clientRouteSlots2 = routeSlots.filter((slot) => {
3309
3339
  try {
3310
- const metadata = _chunkPMKUTZGRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3340
+ const metadata = _chunkZVSQN7NCcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3311
3341
  return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
3312
3342
  } catch (error) {
3313
- _chunkGC5ROI3Acjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
3343
+ _chunk7U4XF76Rcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
3314
3344
  return false;
3315
3345
  }
3316
3346
  });
@@ -3319,20 +3349,20 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3319
3349
  const docsEntryOwns = (pattern) => syntheticDocsEntry === "/" || pattern === syntheticDocsEntry || pattern.startsWith(`${syntheticDocsEntry}/`);
3320
3350
  if (syntheticDocsEntry && clientPages.some((page) => !page.docs && docsEntryOwns(page.pattern))) {
3321
3351
  const docsPagePaths = new Set(
3322
- _chunk6D3CJFNUcjs.discoverFarmDocsPages.call(void 0,
3323
- _chunk6D3CJFNUcjs.resolveFarmDocsContentDir.call(void 0, config.docs, { root: config.root, srcDir: config.srcDir }),
3352
+ _chunkHR5GU4UUcjs.discoverFarmDocsPages.call(void 0,
3353
+ _chunkHR5GU4UUcjs.resolveFarmDocsContentDir.call(void 0, config.docs, { root: config.root, srcDir: config.srcDir }),
3324
3354
  config.docs
3325
3355
  ).map((page) => page.href)
3326
3356
  );
3327
3357
  const resolved = resolveFarmDocsClientRoutes(clientPages, docsPagePaths);
3328
3358
  for (const page of resolved.shadowed) {
3329
- _chunkGC5ROI3Acjs.logger.warn(
3359
+ _chunk7U4XF76Rcjs.logger.warn(
3330
3360
  `\u26A0\uFE0F ${page.pattern} has the URL shape of the docs route ${syntheticDocsPatterns[1]}, whose pages answer first: the page renders only at paths without a docs page, and does not hydrate as a page there.`
3331
3361
  );
3332
3362
  }
3333
3363
  clientPages.splice(0, clientPages.length, ...resolved.pages);
3334
3364
  }
3335
- _chunkGC5ROI3Acjs.logger.info(
3365
+ _chunk7U4XF76Rcjs.logger.info(
3336
3366
  `\u{1F4F1} Total hydratable routes detected: ${clientPages.length} pages, ${clientLayouts.filter((layout) => layout.shouldHydrate || layout.hasIsolatedClientBoundaries).length} layouts, and ${clientRouteSlots.length} slots`
3337
3367
  );
3338
3368
  const clientRouteTable = createFarmClientRouteTable(clientPages);
@@ -3349,22 +3379,22 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3349
3379
  clientRouteSlots,
3350
3380
  root,
3351
3381
  srcDir,
3352
- adapterOwnsDocsRuntime ? false : _chunkDZZHTMWMcjs.isFarmDocsSearchEnabled.call(void 0, config.docs),
3353
- adapterOwnsDocsRuntime ? void 0 : _chunkDZZHTMWMcjs.resolveFarmDocsSearchClientModule.call(void 0, root),
3354
- _optionalChain([config, 'access', _112 => _112.docs, 'optionalAccess', _113 => _113.enabled]) ? _chunk6D3CJFNUcjs.getFarmDocsRoots.call(void 0, config.docs).map((docsRoot) => docsRoot.entry) : void 0,
3382
+ adapterOwnsDocsRuntime ? false : _chunkN3H7UPBMcjs.isFarmDocsSearchEnabled.call(void 0, config.docs),
3383
+ adapterOwnsDocsRuntime ? void 0 : _chunkN3H7UPBMcjs.resolveFarmDocsSearchClientModule.call(void 0, root),
3384
+ _optionalChain([config, 'access', _112 => _112.docs, 'optionalAccess', _113 => _113.enabled]) ? _chunkHR5GU4UUcjs.getFarmDocsRoots.call(void 0, config.docs).map((docsRoot) => docsRoot.entry) : void 0,
3355
3385
  adapterOwnsDocsRuntime ? _optionalChain([config, 'access', _114 => _114.docs, 'access', _115 => _115.adapter, 'optionalAccess', _116 => _116.react]) : void 0,
3356
3386
  config.i18n,
3357
3387
  config.plugins,
3358
3388
  config.renderer,
3359
3389
  config.publicRuntimeConfig,
3360
3390
  config.trailingSlash,
3361
- _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations),
3391
+ _chunkWGWWRV2Mcjs.getIntegrationProviders.call(void 0, config.integrations),
3362
3392
  config.basePath,
3363
- _chunkSIYELCIXcjs.generateClientCachePersistenceCode.call(void 0, _chunkSIYELCIXcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3393
+ _chunkX4TSMQWFcjs.generateClientCachePersistenceCode.call(void 0, _chunkX4TSMQWFcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3364
3394
  adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
3365
3395
  _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _117 => _117.experimental, 'optionalAccess', _118 => _118.serverComponents])) === "islands",
3366
3396
  platform,
3367
- islandsMode ? _chunkPMKUTZGRcjs.collectFarmServerStylesheets.call(void 0,
3397
+ islandsMode ? _chunkZVSQN7NCcjs.collectFarmServerStylesheets.call(void 0,
3368
3398
  [
3369
3399
  ...layoutRoutes.map((layout) => layout.modulePath),
3370
3400
  ...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
@@ -3383,7 +3413,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3383
3413
  await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-router.tsx"), clientEntry.router);
3384
3414
  }
3385
3415
  const clientInput = { [entryName]: clientEntryPath };
3386
- if (platform === "web" && _chunkSIYELCIXcjs.canBootFarmIslandsClient.call(void 0, config)) {
3416
+ if (platform === "web" && _chunkX4TSMQWFcjs.canBootFarmIslandsClient.call(void 0, config)) {
3387
3417
  const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
3388
3418
  await fs5.writeFile(
3389
3419
  clientBootPath,
@@ -3399,12 +3429,12 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3399
3429
  buildLifetime: rendererBuildLifetime
3400
3430
  });
3401
3431
  if (hasScopedPostcssConfig) {
3402
- _chunkGC5ROI3Acjs.logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
3432
+ _chunk7U4XF76Rcjs.logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
3403
3433
  } else {
3404
3434
  const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
3405
3435
  await fs5.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
3406
3436
  postcssSearchPath = clientEntryDir;
3407
- tailwindVitePlugin = await _chunk7SAGHWWUcjs.loadTailwindVitePlugin.call(void 0, {
3437
+ tailwindVitePlugin = await _chunkZ5BANEQDcjs.loadTailwindVitePlugin.call(void 0, {
3408
3438
  builder: productionVite.builder,
3409
3439
  announce: true
3410
3440
  });
@@ -3425,7 +3455,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3425
3455
  target: FARM_CLIENT_BUILD_TARGET,
3426
3456
  // Tailwind CSS 4 already requires newer browsers than that baseline. An app's own
3427
3457
  // `build.target` or `build.cssTarget` still decides, as Vite derives one from the other.
3428
- ..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (_chunk7SAGHWWUcjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunk7SAGHWWUcjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _125 => _125.vite, 'optionalAccess', _126 => _126.plugins]))) ? { cssTarget: _chunk7SAGHWWUcjs.TAILWIND_CSS_BROWSER_TARGET } : {},
3458
+ ..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (_chunkZ5BANEQDcjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunkZ5BANEQDcjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _125 => _125.vite, 'optionalAccess', _126 => _126.plugins]))) ? { cssTarget: _chunkZ5BANEQDcjs.TAILWIND_CSS_BROWSER_TARGET } : {},
3429
3459
  outDir: outputDir,
3430
3460
  emptyOutDir: platform === "web",
3431
3461
  // Never public: see resolveFarmClientSourcemap.
@@ -3458,7 +3488,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3458
3488
  }
3459
3489
  },
3460
3490
  plugins: [
3461
- _chunkSIYELCIXcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3491
+ _chunkX4TSMQWFcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3462
3492
  createFarmPrivateClientSourcemapsPlugin({
3463
3493
  outDir: _path2.default.join(
3464
3494
  _path2.default.dirname(outputDir),
@@ -3472,7 +3502,19 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3472
3502
  }) : createFarmClientModulePreloadPlugin({
3473
3503
  root,
3474
3504
  buildDir: _path2.default.dirname(outputDir),
3475
- entryName: "farm-client"
3505
+ entryName: "farm-client",
3506
+ routerModules: [
3507
+ _path2.default.join(clientEntryDir, "farm-client-router.tsx"),
3508
+ _path2.default.join(clientEntryDir, `${FARM_CLIENT_ROUTE_TABLE_MODULE}.tsx`)
3509
+ ],
3510
+ // What the islands entry loads with its first render or hydration (RFC 0010).
3511
+ ...islandsMode && _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) ? {
3512
+ rendererImports: [
3513
+ "react-dom/client",
3514
+ "@farm.js/core/internal/islands-runtime"
3515
+ ],
3516
+ rendererImporter: clientEntryPath
3517
+ } : {}
3476
3518
  }),
3477
3519
  ...adapterOwnsDocsRuntime && platform === "web" ? [
3478
3520
  createFarmDocsModulePreloadPlugin({
@@ -3490,7 +3532,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3490
3532
  ...rendererVitePlugins,
3491
3533
  ...config.vite.plugins || [],
3492
3534
  farmServerOnlyEntriesPlugin({ platform, distDir: config.distDir || ".farm" }),
3493
- _chunkSIYELCIXcjs.farmDocsClientConfigPlugin.call(void 0,
3535
+ _chunkX4TSMQWFcjs.farmDocsClientConfigPlugin.call(void 0,
3494
3536
  adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
3495
3537
  ),
3496
3538
  // Plugin to redirect @farm.js/core imports to client-only exports
@@ -3523,7 +3565,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3523
3565
  },
3524
3566
  load: {
3525
3567
  filter: {
3526
- id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [
3568
+ id: _chunkX4TSMQWFcjs.exactIdPattern.call(void 0, [
3527
3569
  "\0empty-module",
3528
3570
  "\0empty-api-route",
3529
3571
  "\0farm-i18n-client-bridge",
@@ -3561,7 +3603,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3561
3603
  { ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
3562
3604
  pluginManager
3563
3605
  ),
3564
- _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3606
+ _chunkZVSQN7NCcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3565
3607
  ],
3566
3608
  mode: "production",
3567
3609
  css: postcssSearchPath ? {
@@ -3569,7 +3611,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3569
3611
  } : void 0,
3570
3612
  // Ensure React is bundled for client
3571
3613
  resolve: {
3572
- alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3614
+ alias: _chunkX4TSMQWFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3573
3615
  dedupe: [...config.renderer.dedupe || []]
3574
3616
  },
3575
3617
  // Optimize dependencies - exclude server-side code from client bundle
@@ -3583,7 +3625,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3583
3625
  }
3584
3626
  };
3585
3627
  await viteBuild(
3586
- _chunkSIYELCIXcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3628
+ _chunkX4TSMQWFcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3587
3629
  );
3588
3630
  if (platform === "mobile") {
3589
3631
  await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
@@ -3645,11 +3687,12 @@ function createHistoryState(path, pageState, currentState) {
3645
3687
 
3646
3688
  async function fetchFarmNavigationDocument(url, headers, recover = true, signal) {
3647
3689
  const deploymentId = window.__FARM_DEPLOYMENT_ID__;
3648
- const response = await fetch(url, {
3649
- headers: createFarmDeploymentRequestHeaders(deploymentId, headers),
3690
+ const requestHeaders = createFarmDeploymentRequestHeaders(deploymentId, headers);
3691
+ const response = await (${streamNavigations ? "(recover && takeFarmEarlyNavigation(url, requestHeaders, signal)) || " : ""}fetch(url, {
3692
+ headers: requestHeaders,
3650
3693
  signal,
3651
3694
  redirect: "manual",
3652
- });
3695
+ }));
3653
3696
  // Let a document navigation follow redirects, including cross-origin chains
3654
3697
  // and fragment inheritance. Never cache/swap their HTML under the source URL.
3655
3698
  if (response.type === "opaqueredirect" || response.redirected) {
@@ -3676,7 +3719,9 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
3676
3719
  return response;
3677
3720
  }
3678
3721
 
3679
- ${streamNavigations ? _chunkSIYELCIXcjs.FARM_NAVIGATION_STREAM_READER_SOURCE : ""}
3722
+ ${streamNavigations ? `${_chunkX4TSMQWFcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
3723
+
3724
+ ${_chunkX4TSMQWFcjs.FARM_EARLY_NAVIGATION_SOURCE}` : ""}
3680
3725
 
3681
3726
  function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
3682
3727
  if (error?.name === "FarmDeploymentMismatchError") {
@@ -4715,6 +4760,10 @@ function farmRouterIntent(event) {
4715
4760
  void loadFarmRouter().catch(function() {});
4716
4761
  }
4717
4762
  for (const type of farmRouterIntentEvents) document.addEventListener(type, farmRouterIntent, true);
4763
+ // In islands mode the boot script loads this entry on a hover or focus over a link, and that
4764
+ // event fired before these listeners existed: a link still under the pointer or focused is it.
4765
+ const farmIntendedLink = document.querySelector("a[href]:hover, a[href]:focus");
4766
+ if (farmIntendedLink) farmRouterIntent({ target: farmIntendedLink });
4718
4767
  `;
4719
4768
  function bindingPattern(name) {
4720
4769
  return new RegExp(`(?<![\\w$])(?<![^.]\\.)${name.replace(/\$/g, "\\$")}(?![\\w$])`);
@@ -4825,7 +4874,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
4825
4874
  direction: {}
4826
4875
  }, plugins = [], renderer = _chunk67MZTLTFcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
4827
4876
  const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
4828
- const clientPluginEntry = _chunk7SAGHWWUcjs.generateFarmClientPluginEntryCode.call(void 0,
4877
+ const clientPluginEntry = _chunkZ5BANEQDcjs.generateFarmClientPluginEntryCode.call(void 0,
4829
4878
  plugins,
4830
4879
  root,
4831
4880
  srcDir,
@@ -4833,12 +4882,22 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
4833
4882
  platform
4834
4883
  );
4835
4884
  const appSetupPath = _chunk67MZTLTFcjs.resolveFarmRendererAppSetup.call(void 0, root, renderer);
4836
- const rendererClientImports = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? `import React from "react";
4885
+ const lazyRenderer = islandValues && platform !== "mobile" && _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) && clientRouteSlots.length === 0;
4886
+ const rendererClientImports = lazyRenderer ? `import React from "react";
4887
+ import { holdFarmIslandInteractions, restorePagePosition } from "@farm.js/core/internal/client-runtime";` : _chunk67MZTLTFcjs.isReactRenderer.call(void 0, renderer) ? `import React from "react";
4837
4888
  import { createRoot, hydrateRoot } from "react-dom/client";
4838
- import { restorePagePosition } from "@farm.js/core/internal/client-runtime";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
4839
- import __farmAppSetup from ${JSON.stringify(_chunkGC5ROI3Acjs.toPosixPath.call(void 0, appSetupPath))};
4840
- __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
4841
- const providerClientCode = _chunkSIYELCIXcjs.generateFarmIntegrationProviderClientCode.call(void 0,
4889
+ import { restorePagePosition } from "@farm.js/core/internal/client-runtime";` : (
4890
+ // Named exports only, as the server entry and the development client read them. A copy
4891
+ // of the namespace, so feature checks of optional exports don't make Rolldown warn.
4892
+ appSetupPath ? `import * as __farmRendererClient from ${JSON.stringify(renderer.client)};
4893
+ import { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
4894
+ import __farmAppSetup from ${JSON.stringify(_chunk7U4XF76Rcjs.toPosixPath.call(void 0, appSetupPath))};
4895
+ const React = { ...__farmRendererClient };
4896
+ __farmConfigureApp(__farmAppSetup);` : `import * as __farmRendererClient from ${JSON.stringify(renderer.client)};
4897
+ import { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};
4898
+ const React = { ...__farmRendererClient };`
4899
+ );
4900
+ const providerClientCode = _chunkX4TSMQWFcjs.generateFarmIntegrationProviderClientCode.call(void 0,
4842
4901
  integrationProviders,
4843
4902
  root,
4844
4903
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -4861,18 +4920,18 @@ __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot
4861
4920
  const layoutImportStatements = [];
4862
4921
  const layoutRegistrations = [];
4863
4922
  const hydratingLayoutPatterns = layoutRoutes.filter((layout) => layout.shouldHydrate).map((layout) => layout.pattern);
4864
- const treeLayoutPatterns = islandValues ? _chunk6ZFGWB75cjs.getFarmServerTreeLayoutPatterns.call(void 0, layoutRoutes) : /* @__PURE__ */ new Set();
4923
+ const treeLayoutPatterns = islandValues ? _chunkUWOCYINYcjs.getFarmServerTreeLayoutPatterns.call(void 0, layoutRoutes) : /* @__PURE__ */ new Set();
4865
4924
  layoutRoutes.forEach((layout, index) => {
4866
4925
  const relativePath = toImportPath(layout.modulePath);
4867
4926
  const treeLayout = treeLayoutPatterns.has(layout.pattern);
4868
4927
  const rendersOnClient = treeLayout || !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some(
4869
- (pattern) => _chunk6ZFGWB75cjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern)
4928
+ (pattern) => _chunkUWOCYINYcjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern)
4870
4929
  );
4871
4930
  if (rendersOnClient && !treeLayout) {
4872
4931
  layoutImportStatements.push(`import Layout${index} from "${relativePath}";`);
4873
4932
  }
4874
- const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, layout.pattern);
4875
- const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
4933
+ const groupScope = _chunkUWOCYINYcjs.getRouteGroupScope.call(void 0, layout.pattern);
4934
+ const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunkUWOCYINYcjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
4876
4935
  layoutRegistrations.push(
4877
4936
  ` { pattern: ${JSON.stringify(layout.pattern)}${groupFields}, Component: ${rendersOnClient ? treeLayout ? `getFarmTreeLayoutComponent(${JSON.stringify(layout.pattern)})` : `Layout${index}` : "null"}, shouldHydrate: ${JSON.stringify(layout.shouldHydrate)}, islandStrategy: ${JSON.stringify(layout.islandStrategy)}${treeLayout ? ", serverTree: true" : ""} }`
4878
4937
  );
@@ -4949,7 +5008,7 @@ ${clientCachePersistence.imports}
4949
5008
  ${i18nClientRuntime}
4950
5009
  ${docsNavigationRuntime}
4951
5010
  ${docsAdapterRuntime}
4952
- ${_chunkDZZHTMWMcjs.generateFarmDocsSearchClientRuntime.call(void 0, docsSearchEnabled, docsSearchModuleId)}
5011
+ ${_chunkN3H7UPBMcjs.generateFarmDocsSearchClientRuntime.call(void 0, docsSearchEnabled, docsSearchModuleId)}
4953
5012
 
4954
5013
  setFarmBasePath(${JSON.stringify(basePath)});
4955
5014
  setFarmTrailingSlashPreference(${JSON.stringify(trailingSlash)});
@@ -4959,7 +5018,7 @@ mountFarmDocsSearch();
4959
5018
 
4960
5019
  ${generateUniversalRouterStateRuntime()}
4961
5020
 
4962
- ${_chunkSIYELCIXcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
5021
+ ${_chunkX4TSMQWFcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
4963
5022
 
4964
5023
  // SPA Router for server-rendered pages (HTML swap)
4965
5024
  const spaRouter = {
@@ -5249,7 +5308,7 @@ installFarmLinkPrefetch();
5249
5308
  clientPages.forEach((page) => {
5250
5309
  for (const boundary of page.isolatedBoundaries) {
5251
5310
  isolatedBoundaryModules.set(
5252
- _chunkGC5ROI3Acjs.toViteModuleId.call(void 0, boundary.modulePath, root),
5311
+ _chunk7U4XF76Rcjs.toViteModuleId.call(void 0, boundary.modulePath, root),
5253
5312
  toImportPath(boundary.modulePath)
5254
5313
  );
5255
5314
  }
@@ -5261,7 +5320,42 @@ installFarmLinkPrefetch();
5261
5320
  });
5262
5321
  const isolatedHydrationEnabled = isolatedBoundaryModules.size > 0;
5263
5322
  const serverTreeEnabled = isolatedHydrationEnabled && clientPages.some((page) => page.serverTree);
5264
- const isolatedHydrationImport = isolatedHydrationEnabled ? `${islandValues ? `import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement${hasServerTreeLayouts ? ", createFarmServerTreeLayout" : ""} } from "@farm.js/core/internal/islands-runtime";` : 'import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from "@farm.js/core/internal/isolated-boundary";'}${serverTreeEnabled && !islandValues ? '\nimport { createFarmServerTreeElement } from "@farm.js/core/internal/server-tree";' : ""}` : "";
5323
+ const islandsRuntimeExports = [
5324
+ "createFarmIsolatedHydrationRuntime",
5325
+ "createFarmServerPageBoundary",
5326
+ "wrapFarmIsolatedClientGraph",
5327
+ ...serverTreeEnabled ? ["createFarmServerTreeElement"] : [],
5328
+ ...hasServerTreeLayouts ? ["createFarmServerTreeLayout"] : []
5329
+ ].join(", ");
5330
+ const lazyRendererRuntime = lazyRenderer ? `// React DOM${isolatedHydrationEnabled ? " and islx" : ""} load with the first render or hydration (RFC 0010).
5331
+ let createRoot;
5332
+ let hydrateRoot;
5333
+ let farmRendererLoading = null;
5334
+ let farmRendererLoaded = false;${isolatedHydrationEnabled ? `
5335
+ // The boot stops holding interactions once this entry runs. Until islx loads, islands that have not
5336
+ // hydrated hold them here, for their schedulers to replay.
5337
+ const releaseFarmIslandInteractions = holdFarmIslandInteractions("f-island");` : ""}
5338
+ function loadFarmRenderer() {
5339
+ return farmRendererLoading || (farmRendererLoading = Promise.all([
5340
+ import("react-dom/client"),${isolatedHydrationEnabled ? `
5341
+ // Named here, so the build keeps only these of islx's exports.
5342
+ import("@farm.js/core/internal/islands-runtime").then(function({ ${islandsRuntimeExports} }) {
5343
+ return { ${islandsRuntimeExports} };
5344
+ }),` : ""}
5345
+ ]).then(function(modules) {
5346
+ createRoot = modules[0].createRoot;
5347
+ hydrateRoot = modules[0].hydrateRoot;${isolatedHydrationEnabled ? "\n startFarmIslandsRuntime(modules[1]);\n releaseFarmIslandInteractions();" : ""}
5348
+ farmRendererLoaded = true;
5349
+ }, function(error) {${isolatedHydrationEnabled ? `
5350
+ // Without islx a held click would never replay: the page acts natively again.
5351
+ releaseFarmIslandInteractions();` : ""}
5352
+ // A chunk that failed to load can load on a later call.
5353
+ farmRendererLoading = null;
5354
+ throw error;
5355
+ }));
5356
+ }
5357
+ ` : "";
5358
+ const isolatedHydrationImport = lazyRenderer ? "" : isolatedHydrationEnabled ? `${islandValues ? `import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement${hasServerTreeLayouts ? ", createFarmServerTreeLayout" : ""} } from "@farm.js/core/internal/islands-runtime";` : 'import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from "@farm.js/core/internal/isolated-boundary";'}${serverTreeEnabled && !islandValues ? '\nimport { createFarmServerTreeElement } from "@farm.js/core/internal/server-tree";' : ""}` : "";
5265
5359
  const isolatedHydrationRuntime = isolatedHydrationEnabled ? `const farmIsolatedBoundaryLoaders = {
5266
5360
  ${Array.from(isolatedBoundaryModules.entries()).map(
5267
5361
  ([reference, modulePath]) => ` ${JSON.stringify(reference)}: () => import(${JSON.stringify(modulePath)}),`
@@ -5272,7 +5366,43 @@ async function loadFarmIsolatedBoundary(reference) {
5272
5366
  if (!loader) throw new Error("isolated client boundary loader was not found: " + reference);
5273
5367
  return loader();
5274
5368
  }
5275
- const farmIsolatedHydrationRuntime = createFarmIsolatedHydrationRuntime({
5369
+ ${lazyRenderer ? `let farmIslandsRuntime = null;
5370
+ let FarmServerPage;
5371
+ let wrapFarmIsolatedClientGraph;${serverTreeEnabled ? "\nlet createFarmServerTreeElement;" : ""}${hasServerTreeLayouts ? "\nlet createFarmServerTreeLayout;" : ""}
5372
+ function startFarmIslandsRuntime(islands) {
5373
+ wrapFarmIsolatedClientGraph = islands.wrapFarmIsolatedClientGraph;${serverTreeEnabled ? "\n createFarmServerTreeElement = islands.createFarmServerTreeElement;" : ""}${hasServerTreeLayouts ? "\n createFarmServerTreeLayout = islands.createFarmServerTreeLayout;" : ""}
5374
+ farmIslandsRuntime = islands.createFarmIsolatedHydrationRuntime({
5375
+ ReactRuntime: React,
5376
+ hydrateRoot,
5377
+ load: loadFarmIsolatedBoundary,
5378
+ schedule: scheduleFarmIslandHydration,
5379
+ wrap: wrapWithIntegrationProviders,
5380
+ });
5381
+ // A hydrating layout keeps a non-hydrating page as server HTML; this wrapper runs its islands.
5382
+ FarmServerPage = islands.createFarmServerPageBoundary(React, farmIslandsRuntime);
5383
+ }
5384
+ // Nothing hydrates before islx loads. Until then, calls wait for it in the order they were made,
5385
+ // behind the hydration that loads it; one that fails reports itself to whoever awaited it.
5386
+ function whenFarmIslandsRuntime(call) {
5387
+ if (farmIslandsRuntime) call(farmIslandsRuntime);
5388
+ else if (farmRendererLoading) farmRendererLoading.then(function() { call(farmIslandsRuntime); }, function() {});
5389
+ }
5390
+ const farmIsolatedHydrationRuntime = {
5391
+ hydrate: function(scope, signal) {
5392
+ if (farmIslandsRuntime) return farmIslandsRuntime.hydrate(scope, signal);
5393
+ return loadFarmRenderer().then(function() { return farmIslandsRuntime.hydrate(scope, signal); });
5394
+ },
5395
+ dispose: function(scope) {
5396
+ whenFarmIslandsRuntime(function(runtime) { runtime.dispose(scope); });
5397
+ },
5398
+ // Only a hydrated island has state to carry over.
5399
+ carryOver: function(from, to) {
5400
+ if (farmIslandsRuntime) farmIslandsRuntime.carryOver(from, to);
5401
+ },
5402
+ endStream: function(root) {
5403
+ whenFarmIslandsRuntime(function(runtime) { runtime.endStream(root); });
5404
+ },
5405
+ };` : `const farmIsolatedHydrationRuntime = createFarmIsolatedHydrationRuntime({
5276
5406
  ReactRuntime: React,
5277
5407
  hydrateRoot,
5278
5408
  load: loadFarmIsolatedBoundary,
@@ -5281,7 +5411,7 @@ const farmIsolatedHydrationRuntime = createFarmIsolatedHydrationRuntime({
5281
5411
  });
5282
5412
 
5283
5413
  // A hydrating layout keeps a non-hydrating page as server HTML; this wrapper runs its islands.
5284
- const FarmServerPage = createFarmServerPageBoundary(React, farmIsolatedHydrationRuntime);
5414
+ const FarmServerPage = createFarmServerPageBoundary(React, farmIsolatedHydrationRuntime);`}
5285
5415
 
5286
5416
  function disposeFarmIsolatedClientBoundaries(scope) {
5287
5417
  farmIsolatedHydrationRuntime.dispose(scope);
@@ -5338,7 +5468,7 @@ ${docsNavigationRuntime}
5338
5468
  ${docsAdapterRuntime}
5339
5469
 
5340
5470
  ${imports.join("\n")}
5341
- ${_chunkDZZHTMWMcjs.generateFarmDocsSearchClientRuntime.call(void 0, docsSearchEnabled, docsSearchModuleId)}
5471
+ ${_chunkN3H7UPBMcjs.generateFarmDocsSearchClientRuntime.call(void 0, docsSearchEnabled, docsSearchModuleId, void 0, lazyRenderer ? "loadFarmRenderer" : void 0)}
5342
5472
 
5343
5473
  ${providerClientCode.runtime}
5344
5474
 
@@ -5358,7 +5488,7 @@ ${generateFarmClientRouteTableRuntime({
5358
5488
  })}
5359
5489
  ${generateClientPageDirectorySource()}
5360
5490
 
5361
- ${isolatedHydrationRuntime}
5491
+ ${lazyRendererRuntime}${isolatedHydrationRuntime}
5362
5492
  ${routeClientGraphRuntime}
5363
5493
 
5364
5494
  const clientRouteSlots = [
@@ -5407,7 +5537,7 @@ function hasHydratableLayout(pathname) {
5407
5537
  });
5408
5538
  }
5409
5539
 
5410
- ${_chunkSIYELCIXcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5540
+ ${_chunkX4TSMQWFcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5411
5541
  // Wrap a page element with applicable layouts
5412
5542
  function wrapWithLayouts(pageElement, pathname, params) {
5413
5543
  const layouts = getApplicableLayouts(pathname);
@@ -5442,7 +5572,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
5442
5572
  return React.createElement("div", props, pageElement);
5443
5573
  }
5444
5574
  let farmLastRouteState = null;
5445
- ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkSIYELCIXcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5575
+ ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkX4TSMQWFcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5446
5576
  function farmTreeLayoutsOf(pathname) {
5447
5577
  return getApplicableLayouts(pathname).filter(function(layout) {
5448
5578
  return layout.serverTree === true;
@@ -5482,10 +5612,15 @@ function matchRoute(pathname) {
5482
5612
  }
5483
5613
 
5484
5614
  async function loadRouteComponent(route) {
5485
- if (!route.load) return null;
5615
+ if (!route.load) return null;${lazyRenderer ? `
5616
+ // A page component renders with React DOM, which loads beside it (RFC 0010).
5617
+ const renderer = loadFarmRenderer();
5618
+ if (!route.Component) route.Component = await route.load();
5619
+ await renderer;
5620
+ return route.Component;` : `
5486
5621
  if (route.Component) return route.Component;
5487
5622
  route.Component = await route.load();
5488
- return route.Component;
5623
+ return route.Component;`}
5489
5624
  }
5490
5625
 
5491
5626
  // The props the server rendered this document with, as the page receives them:
@@ -5501,7 +5636,9 @@ function reviveServerPageProps(serverProps) {
5501
5636
  async function createMatchedHydrationRoute(matched, pathname, searchParams, navigationPage, serverProps, layoutSource, hydrationContainer) {
5502
5637
  const hydrateLayouts = hasHydratableLayout(pathname);
5503
5638
  const params = matched.params;
5504
- let pageElement = null;
5639
+ let pageElement = null;${lazyRenderer ? `
5640
+ // Only a route that renders a page or its layouts needs React DOM; one of islands hydrates them.
5641
+ if (hydrateLayouts || matched.route.pageShouldHydrate) await loadFarmRenderer();` : ""}
5505
5642
  // Layouts rendered as server trees rebuild from the HTML that carries them.
5506
5643
  if (hydrateLayouts && !(await prepareFarmTreeLayouts(pathname, params, layoutSource))) return null;
5507
5644
 
@@ -5871,7 +6008,9 @@ async function hydrate() {
5871
6008
  );
5872
6009
  window.__FARM_PROPS__ = initialPayload.page;
5873
6010
  window.__FARM_ROUTE_SLOTS__ = initialPayload.slots;
5874
-
6011
+ ${lazyRenderer ? ` // React DOM and islx load with what first renders or hydrates, not here (RFC 0010): a root
6012
+ // that waits for its trigger, or a navigation that swaps its page in, does not wait for them.
6013
+ ` : ""}
5875
6014
  if (await hydrateFarmDocsAdapterRuntime()) {
5876
6015
  return;
5877
6016
  }
@@ -5908,76 +6047,82 @@ async function hydrate() {
5908
6047
  return;
5909
6048
  }
5910
6049
 
6050
+ const pageHydration = scheduleFarmRouteHydration(matched, pathname, container, window.__FARM_PROPS__);
6051
+ ${isolatedHydrationEnabled ? `// Not cancelled with the page: a navigation disposes the islands it removes, and one in a
6052
+ // layout it keeps still waits for its trigger, as on a page of islands only.
6053
+ const isolatedHydration =
6054
+ !hasHydratableLayout(pathname) &&
6055
+ document.querySelector('f-island[src]')
6056
+ ? hydrateFarmIsolatedClientBoundaries(document)
6057
+ : Promise.resolve();
6058
+ await Promise.all([pageHydration, isolatedHydration]);` : "await pageHydration;"}
6059
+ }
6060
+
6061
+ // Hydrates the route's page or layout root in \`container\` when its strategy is due: at once, or
6062
+ // on its idle, visible or interaction trigger (RFC 0003, section 11). The first load schedules it,
6063
+ // and so does a navigation that swaps a page into a root that never hydrated (RFC 0011): nothing
6064
+ // in that root ran, so it waits for the next page's trigger as a first load of that page would.
6065
+ function scheduleFarmRouteHydration(matched, pathname, container, serverProps) {
5911
6066
  container.dataset.farmIsland = "page";
5912
6067
  container.dataset.farmIslandStrategy = matched.route.islandStrategy || "load";
5913
6068
 
5914
6069
  const hydrationController = new AbortController();
5915
6070
  pendingPageHydrationController = hydrationController;
5916
- try {
5917
- const pageHydration = scheduleFarmIslandHydration({
5918
- container,
5919
- strategy: matched.route.islandStrategy,
5920
- signal: hydrationController.signal,
5921
- hydrate: async function() {
5922
- if (
5923
- hydrationController.signal.aborted ||
5924
- !container.isConnected ||
5925
- window.location.pathname !== pathname
5926
- ) {
5927
- return;
5928
- }
5929
- const searchParams = searchParamsToObject(new URLSearchParams(window.location.search));
5930
- const shouldHydrate = !isHydrated && Boolean(container.innerHTML.trim());
5931
- const routeState = await createMatchedHydrationRoute(
5932
- matched,
5933
- pathname,
5934
- searchParams,
5935
- undefined,
5936
- window.__FARM_PROPS__,
5937
- undefined,
5938
- shouldHydrate ? container : undefined,
5939
- );
5940
- if (!routeState) return;
5941
- const hydrationSession = await farmClientRuntime.beginHydration({
5942
- container,
5943
- mode: shouldHydrate ? "hydrate" : "render",
5944
- });
6071
+ return scheduleFarmIslandHydration({
6072
+ container,
6073
+ strategy: matched.route.islandStrategy,
6074
+ signal: hydrationController.signal,
6075
+ hydrate: async function() {
6076
+ if (
6077
+ hydrationController.signal.aborted ||
6078
+ !container.isConnected ||
6079
+ window.location.pathname !== pathname
6080
+ ) {
6081
+ return;
6082
+ }
6083
+ const searchParams = searchParamsToObject(new URLSearchParams(window.location.search));
6084
+ const shouldHydrate = !isHydrated && Boolean(container.innerHTML.trim());
6085
+ const routeState = await createMatchedHydrationRoute(
6086
+ matched,
6087
+ pathname,
6088
+ searchParams,
6089
+ undefined,
6090
+ serverProps,
6091
+ undefined,
6092
+ shouldHydrate ? container : undefined,
6093
+ );
6094
+ if (!routeState) return;
6095
+ const hydrationSession = await farmClientRuntime.beginHydration({
6096
+ container,
6097
+ mode: shouldHydrate ? "hydrate" : "render",
6098
+ });
5945
6099
 
5946
- try {
5947
- // A navigation replaced this route before it hydrated. Like a superseded
5948
- // navigation, that is not a failure, so error hooks never see it.
5949
- if (hydrationController.signal.aborted || !container.isConnected) return;
5950
- if (shouldHydrate) {
5951
- reactRoot = hydrateFarmRoute(container, routeState);
6100
+ try {
6101
+ // A navigation replaced this route before it hydrated. Like a superseded
6102
+ // navigation, that is not a failure, so error hooks never see it.
6103
+ if (hydrationController.signal.aborted || !container.isConnected) return;
6104
+ if (shouldHydrate) {
6105
+ reactRoot = hydrateFarmRoute(container, routeState);
6106
+ reactRootContainer = container;
6107
+ isHydrated = true;
6108
+ } else {
6109
+ if (!reactRoot) {
6110
+ reactRoot = createRoot(container);
5952
6111
  reactRootContainer = container;
5953
- isHydrated = true;
5954
- } else {
5955
- if (!reactRoot) {
5956
- reactRoot = createRoot(container);
5957
- reactRootContainer = container;
5958
- }
5959
- renderFarmRoute(reactRoot, routeState);
5960
6112
  }
5961
- await farmClientRuntime.completeHydration(hydrationSession);
5962
- } catch (error) {
5963
- await farmClientRuntime.failHydration(hydrationSession, error);
5964
- console.error("[Farm.js] Hydration error:", error);
6113
+ renderFarmRoute(reactRoot, routeState);
5965
6114
  }
5966
- },
5967
- });
5968
- ${isolatedHydrationEnabled ? `// Not cancelled with the page: a navigation disposes the islands it removes, and one in a
5969
- // layout it keeps still waits for its trigger, as on a page of islands only.
5970
- const isolatedHydration =
5971
- !hasHydratableLayout(pathname) &&
5972
- document.querySelector('f-island[src]')
5973
- ? hydrateFarmIsolatedClientBoundaries(document)
5974
- : Promise.resolve();
5975
- await Promise.all([pageHydration, isolatedHydration]);` : "await pageHydration;"}
5976
- } finally {
6115
+ await farmClientRuntime.completeHydration(hydrationSession);
6116
+ } catch (error) {
6117
+ await farmClientRuntime.failHydration(hydrationSession, error);
6118
+ console.error("[Farm.js] Hydration error:", error);
6119
+ }
6120
+ },
6121
+ }).finally(function() {
5977
6122
  if (pendingPageHydrationController === hydrationController) {
5978
6123
  pendingPageHydrationController = null;
5979
6124
  }
5980
- }
6125
+ });
5981
6126
  }
5982
6127
 
5983
6128
  /*farm-router-start*/
@@ -6016,7 +6161,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
6016
6161
  return true;
6017
6162
  }` : ""}
6018
6163
 
6019
- ${_chunkSIYELCIXcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6164
+ ${_chunkX4TSMQWFcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6020
6165
 
6021
6166
  function activateNavigationScripts(root) {
6022
6167
  for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
@@ -6119,7 +6264,7 @@ function getLayoutShell(root, patterns, index) {
6119
6264
  return shell.innerHTML;
6120
6265
  }
6121
6266
 
6122
- ${islandValues ? _chunkSIYELCIXcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6267
+ ${islandValues ? _chunkX4TSMQWFcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6123
6268
  // A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
6124
6269
  if (refresh) revealFarmStreamedContent(nextRoot);
6125
6270
  const currentPatterns = getLayoutPatterns(currentRoot);
@@ -6186,11 +6331,9 @@ ${islandValues ? ` // Islands mode: navigations name the layouts on screen, and
6186
6331
  partialNavigationHeaders: function() {
6187
6332
  const root = document.getElementById("root") || document.body;
6188
6333
  const layouts = getLayoutPatterns(root);
6189
- // The root React owns, or one whose layouts hydrate together but have not yet: the
6190
- // navigation creates it (swapContent).
6191
- const rendersTree = reactRoot
6192
- ? reactRootContainer === root
6193
- : root.id === "root" && hasHydratableLayout(window.location.pathname);
6334
+ // Only a root React owns rebuilds the next page from its tree. One that has not hydrated
6335
+ // swaps the next page's HTML in and keeps waiting (swapContent), without React DOM.
6336
+ const rendersTree = Boolean(reactRoot) && reactRootContainer === root;
6194
6337
  return {
6195
6338
  ...(layouts.length ? { "F-Layouts": JSON.stringify(layouts) } : {}),
6196
6339
  ...(rendersTree ? { "F-Render": "tree" } : {}),
@@ -6529,30 +6672,6 @@ ${islandValues ? ` // Islands mode: navigations name the layouts on screen, and
6529
6672
  const hydrateLayouts = hasHydratableLayout(newPathname);
6530
6673
  const nextPage = newRoot.querySelector("#__farm_page__");
6531
6674
 
6532
- ${islandValues ? `// A layout that hydrates as one root but has not yet (its client components wait for a
6533
- // click): its first navigation renders the page's payload in a new root, as later ones do.
6534
- if (
6535
- matched && hydrateLayouts && !reactRoot && currentRoot.id === "root" &&
6536
- nextPage?.querySelector('script[type="f/tree"][partial]')
6537
- ) {
6538
- const routeState = await createMatchedHydrationRoute(
6539
- matched,
6540
- newPathname,
6541
- searchParamsToObject(targetUrl.searchParams),
6542
- nextPage,
6543
- nextPageProps,
6544
- newRoot,
6545
- );
6546
- if (!isNavigationCurrent()) return false;
6547
- if (!routeState) return "segment-mismatch";
6548
- cancelPendingPageHydration();
6549
- resetRouteSlotRoots();
6550
- setFarmReactRoot(createRoot(currentRoot), currentRoot);
6551
- renderFarmRoute(reactRoot, routeState);
6552
- window.__FARM_ROUTE_SLOTS__ = nextRouteSlots;
6553
- setFarmHydrated();
6554
- return true;
6555
- }` : ""}
6556
6675
  // If React already owns the shared layout, update that root. React keeps
6557
6676
  // matching layout component instances and their state mounted.
6558
6677
  if (matched && hydrateLayouts && reactRoot && reactRootContainer === currentRoot) {
@@ -6597,24 +6716,51 @@ ${islandValues ? ` // Islands mode: navigations name the layouts on screen, and
6597
6716
 
6598
6717
  // Check if the new HTML contains an interactive route boundary.
6599
6718
  if (matched) {
6600
- const searchParams = searchParamsToObject(targetUrl.searchParams);
6601
6719
  const pageContainer =
6602
6720
  hydrateLayouts ? currentRoot : document.getElementById("__farm_page__") || currentRoot;
6603
- const routeState = await createMatchedHydrationRoute(
6604
- matched,
6605
- newPathname,
6606
- searchParams,
6607
- undefined,
6608
- nextPageProps,
6609
- undefined,
6610
- pageContainer,
6611
- );
6612
- if (!isNavigationCurrent()) return false;
6613
- if (routeState) {
6614
- setFarmReactRoot(hydrateFarmRoute(pageContainer, routeState), pageContainer);
6615
- setFarmHydrated();
6721
+ if (
6722
+ (hydrateLayouts || matched.route.pageShouldHydrate) &&
6723
+ (matched.route.islandStrategy || "load") !== "load"
6724
+ ) {
6725
+ // A root that waits for its trigger waits after a navigation too, as on a first load:
6726
+ // the page is server HTML and its tree until then, and React DOM loads when it hydrates.
6727
+ scheduleFarmRouteHydration(matched, newPathname, pageContainer, nextPageProps).catch(
6728
+ function(error) {
6729
+ console.error("[Farm.js] Hydration error:", error);
6730
+ },
6731
+ );
6732
+ } else {
6733
+ const searchParams = searchParamsToObject(targetUrl.searchParams);
6734
+ const routeState = await createMatchedHydrationRoute(
6735
+ matched,
6736
+ newPathname,
6737
+ searchParams,
6738
+ undefined,
6739
+ nextPageProps,
6740
+ undefined,
6741
+ pageContainer,
6742
+ );
6743
+ if (!isNavigationCurrent()) return false;
6744
+ if (routeState) {
6745
+ setFarmReactRoot(hydrateFarmRoute(pageContainer, routeState), pageContainer);
6746
+ setFarmHydrated();
6747
+ }
6616
6748
  }
6617
- ${isolatedHydrationEnabled ? `if (matched.route.hasIsolatedClientBoundaries && !hydrateLayouts) {
6749
+ ${isolatedHydrationEnabled ? lazyRenderer ? `if (matched.route.hasIsolatedClientBoundaries && !hydrateLayouts) {
6750
+ if (farmRendererLoaded) {
6751
+ await hydrateFarmIsolatedClientBoundaries(
6752
+ isolatedHydrationScope,
6753
+ navigation.controller.signal,
6754
+ );
6755
+ if (!isNavigationCurrent()) return false;
6756
+ } else {
6757
+ // React DOM and islx are still on their way (RFC 0010): the page shows now, and its
6758
+ // islands hydrate once they arrive. A navigation that removes them first disposes them.
6759
+ hydrateFarmIsolatedClientBoundaries(isolatedHydrationScope).catch(function(error) {
6760
+ console.error("[Farm.js] Hydrating the page's islands failed:", error);
6761
+ });
6762
+ }
6763
+ }` : `if (matched.route.hasIsolatedClientBoundaries && !hydrateLayouts) {
6618
6764
  await hydrateFarmIsolatedClientBoundaries(
6619
6765
  isolatedHydrationScope,
6620
6766
  navigation.controller.signal,
@@ -6767,7 +6913,7 @@ void hydrate();
6767
6913
  async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime, sourceSnapshot) {
6768
6914
  const viteBuild = productionVite.build;
6769
6915
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
6770
- const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
6916
+ const { PluginManager: PluginManager2 } = await import("./plugin-LN3JBZRR.cjs");
6771
6917
  const fs5 = await import("fs/promises");
6772
6918
  const pluginManager = new PluginManager2({
6773
6919
  config,
@@ -6788,7 +6934,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6788
6934
  _path2.default.join(postcssConfigDir, "postcss.config.cjs"),
6789
6935
  "module.exports = { plugins: [] };\n"
6790
6936
  );
6791
- tailwindVitePlugin = await _chunk7SAGHWWUcjs.loadTailwindVitePlugin.call(void 0, {
6937
+ tailwindVitePlugin = await _chunkZ5BANEQDcjs.loadTailwindVitePlugin.call(void 0, {
6792
6938
  builder: productionVite.builder,
6793
6939
  label: "for SSR"
6794
6940
  });
@@ -6870,7 +7016,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6870
7016
  const appDirs = _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config);
6871
7017
  let openAPIReference = null;
6872
7018
  if (config.openapi.enabled && config.openapi.route) {
6873
- const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-R7FV4A56.cjs");
7019
+ const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-PX4QN4HK.cjs");
6874
7020
  const openAPIManager = new OpenAPIManager(appDirs, config.openapi, {
6875
7021
  mode: "production",
6876
7022
  apiBaseURL: config.api.baseURL,
@@ -6895,14 +7041,14 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6895
7041
  }))
6896
7042
  );
6897
7043
  const instrumentationPath = _chunk3GNHJ3RNcjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
6898
- const notFoundPath = _chunkSIYELCIXcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
6899
- if (notFoundPath) _chunkGC5ROI3Acjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
7044
+ const notFoundPath = _chunkX4TSMQWFcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
7045
+ if (notFoundPath) _chunk7U4XF76Rcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
6900
7046
  layoutRoutes.sort((a, b) => {
6901
7047
  const depthA = a.pattern.split("/").filter(Boolean).length;
6902
7048
  const depthB = b.pattern.split("/").filter(Boolean).length;
6903
7049
  return depthA - depthB;
6904
7050
  });
6905
- _chunkGC5ROI3Acjs.logger.info(
7051
+ _chunk7U4XF76Rcjs.logger.info(
6906
7052
  `\u{1F4CB} Found ${pageRoutes.length} page routes, ${layoutRoutes.length} layouts, ${apiRoutes.length} API routes, ${applicationMetadataRoutes.length} metadata routes, and ${middlewareRoutes.length} middleware files`
6907
7053
  );
6908
7054
  const configuredIntegrationValues = Object.values(config.integrations || {});
@@ -6912,14 +7058,14 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6912
7058
  const hasServerRuntimeIntegrations = configuredIntegrationValues.some(
6913
7059
  (integration) => typeof integration === "object" && integration !== null && (!("serverRuntime" in integration) || integration.serverRuntime !== false)
6914
7060
  );
6915
- const hasIntegrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations).some(
7061
+ const hasIntegrationProviders = _chunkWGWWRV2Mcjs.getIntegrationProviders.call(void 0, config.integrations).some(
6916
7062
  (provider) => provider.component || provider.type === "clerk"
6917
7063
  );
6918
7064
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
6919
7065
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _136 => _136.mdx, 'optionalAccess', _137 => _137.components]));
6920
- const hasMiddlewareConfig = _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
6921
- const hasRouteContextConfig = _chunkYROK6CJCcjs.hasCustomFarmRouteContext.call(void 0, config);
6922
- const hasServerRuntimePlugins = _chunk7SAGHWWUcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
7066
+ const hasMiddlewareConfig = _chunkUWOCYINYcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7067
+ const hasRouteContextConfig = _chunkLVGB5PYKcjs.hasCustomFarmRouteContext.call(void 0, config);
7068
+ const hasServerRuntimePlugins = _chunkZ5BANEQDcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
6923
7069
  const hasPluginRoutes = hasFarmPluginRoutes(config);
6924
7070
  const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
6925
7071
  const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasServerCacheConfig || hasFarmServerStorageConfig(config.storage) || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
@@ -6928,9 +7074,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6928
7074
  const hasConfiguredRuntimePlugins = Boolean(
6929
7075
  hasRuntimeConfigModule && (config.plugins || []).length > 0
6930
7076
  );
6931
- if (_chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
7077
+ if (_chunkZPEZXQTMcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
6932
7078
  const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
6933
- _chunkFCHEO3LGcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
7079
+ _chunkZPEZXQTMcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
6934
7080
  config.docs,
6935
7081
  { root, srcDir: config.srcDir },
6936
7082
  (pathname) => adapterGuardedPaths.has(pathname),
@@ -6940,7 +7086,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6940
7086
  const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
6941
7087
  const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _138 => _138.docs, 'optionalAccess', _139 => _139.enabled]) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunk2RSVYJT6cjs._runWithFarmCspNonce.call(void 0,
6942
7088
  farmDocsCspNonceMarker,
6943
- async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await _chunkFCHEO3LGcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
7089
+ async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await _chunkZPEZXQTMcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
6944
7090
  root,
6945
7091
  srcDir: config.srcDir,
6946
7092
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -7107,7 +7253,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7107
7253
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _148 => _148.env, 'optionalAccess', _149 => _149.public]) || {})
7108
7254
  },
7109
7255
  plugins: [
7110
- _chunkSIYELCIXcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7256
+ _chunkX4TSMQWFcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7111
7257
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
7112
7258
  ...rendererVitePlugins,
7113
7259
  ...config.vite.plugins || [],
@@ -7138,7 +7284,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7138
7284
  },
7139
7285
  pluginManager
7140
7286
  ),
7141
- _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7287
+ _chunkZVSQN7NCcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7142
7288
  ...hasRuntimeConfigModule ? [
7143
7289
  farmStripPlatformConfigPlugin(
7144
7290
  [
@@ -7150,7 +7296,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7150
7296
  {
7151
7297
  name: "farm-virtual-ssr-entry",
7152
7298
  resolveId: {
7153
- filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7299
+ filter: { id: _chunkX4TSMQWFcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7154
7300
  handler(id) {
7155
7301
  if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
7156
7302
  return virtualEntryId;
@@ -7159,7 +7305,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7159
7305
  }
7160
7306
  },
7161
7307
  load: {
7162
- filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7308
+ filter: { id: _chunkX4TSMQWFcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7163
7309
  handler(id) {
7164
7310
  if (id === virtualEntryId) {
7165
7311
  return virtualEntryCode;
@@ -7191,7 +7337,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7191
7337
  resolve: {
7192
7338
  alias: [
7193
7339
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
7194
- ...Object.entries(_chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7340
+ ...Object.entries(_chunkX4TSMQWFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7195
7341
  ([find, replacement]) => ({ find, replacement })
7196
7342
  )
7197
7343
  ],
@@ -7199,7 +7345,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7199
7345
  dedupe: [...config.renderer.dedupe || []]
7200
7346
  }
7201
7347
  };
7202
- await viteBuild(_chunkSIYELCIXcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7348
+ await viteBuild(_chunkX4TSMQWFcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7203
7349
  } finally {
7204
7350
  if (postcssConfigDir) {
7205
7351
  try {
@@ -7241,9 +7387,9 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
7241
7387
  config: { middleware: config.middleware, integrations: config.integrations },
7242
7388
  middlewareRoutes
7243
7389
  };
7244
- return _chunk6D3CJFNUcjs.getFarmDocsRoots.call(void 0, config.docs).flatMap(
7245
- (docsRoot) => _chunk6D3CJFNUcjs.discoverFarmDocsPages.call(void 0, _chunk6D3CJFNUcjs.resolveFarmDocsContentDir.call(void 0, docsRoot, options), docsRoot)
7246
- ).flatMap((page) => [page.href, _chunk6D3CJFNUcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunk6ZFGWB75cjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
7390
+ return _chunkHR5GU4UUcjs.getFarmDocsRoots.call(void 0, config.docs).flatMap(
7391
+ (docsRoot) => _chunkHR5GU4UUcjs.discoverFarmDocsPages.call(void 0, _chunkHR5GU4UUcjs.resolveFarmDocsContentDir.call(void 0, docsRoot, options), docsRoot)
7392
+ ).flatMap((page) => [page.href, _chunkHR5GU4UUcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkUWOCYINYcjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
7247
7393
  }
7248
7394
  function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
7249
7395
  const llmsTxt = _optionalChain([agent, 'optionalAccess', _152 => _152.llmsTxt]);
@@ -7636,7 +7782,7 @@ function generateFarmRendererAppSetupServerCode(config) {
7636
7782
  const appSetupPath = _chunk67MZTLTFcjs.resolveFarmRendererAppSetup.call(void 0, config.root || process.cwd(), config.renderer);
7637
7783
  if (!appSetupPath) return "";
7638
7784
  return `
7639
- import __farmAppSetup from ${JSON.stringify(_chunkGC5ROI3Acjs.toPosixPath.call(void 0, appSetupPath))};
7785
+ import __farmAppSetup from ${JSON.stringify(_chunk7U4XF76Rcjs.toPosixPath.call(void 0, appSetupPath))};
7640
7786
  if (typeof ReactDOMServer.configureApp !== "function") {
7641
7787
  throw new Error(${JSON.stringify(`Renderer \`${config.renderer.name}\` does not support \`appSetup\`: its server module must export configureApp().`)});
7642
7788
  }
@@ -7649,7 +7795,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
7649
7795
  );
7650
7796
  const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
7651
7797
  const farmIslandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _166 => _166.experimental, 'optionalAccess', _167 => _167.serverComponents])) === "islands";
7652
- const farmClientBoot = _chunkSIYELCIXcjs.canBootFarmIslandsClient.call(void 0, config);
7798
+ const farmClientBoot = _chunkX4TSMQWFcjs.canBootFarmIslandsClient.call(void 0, config);
7653
7799
  const farmMobileClient = shouldBuildFarmMobileClient(config);
7654
7800
  const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
7655
7801
  const hasCompressionRuntime = config.compress && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
@@ -7659,7 +7805,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
7659
7805
  const servesAgentSitemap = Boolean(_optionalChain([config, 'access', _171 => _171.agent, 'optionalAccess', _172 => _172.sitemap, 'optionalAccess', _173 => _173.enabled])) && !applicationMetadataRoutes.some(
7660
7806
  (metadata) => metadata.kind === "sitemap" && metadata.pattern === "/"
7661
7807
  );
7662
- const servesDefaultMCP = _optionalChain([config, 'access', _174 => _174.agent, 'optionalAccess', _175 => _175.mcp]) === true && !_chunkYRXPDKMMcjs.farmConfigMountsMCP.call(void 0, config) && !apiRoutes.some((route) => route.path === "/api/mcp");
7808
+ const servesDefaultMCP = _optionalChain([config, 'access', _174 => _174.agent, 'optionalAccess', _175 => _175.mcp]) === true && !_chunkW53Z4WDIcjs.farmConfigMountsMCP.call(void 0, config) && !apiRoutes.some((route) => route.path === "/api/mcp");
7663
7809
  const servesAiCatalog = _optionalChain([config, 'access', _176 => _176.agent, 'optionalAccess', _177 => _177.aiCatalog]) !== false;
7664
7810
  const hasPluginRuntime = hasRuntimeIntegrationConfig || hasServerRuntimePlugins;
7665
7811
  const hasInfraAnalyticsRuntime = config.analytics !== false && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
@@ -7682,7 +7828,15 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
7682
7828
  const hasReactSyncRender = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer);
7683
7829
  const rendererServerImports = _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) ? `import * as React from "react";
7684
7830
  import * as ReactDOMServer from "react-dom/server";
7685
- import { markPagePosition, markLayoutPosition } from "@farm.js/core/internal/production-runtime";${hasIsolatedClientGraphRuntime ? farmIslandsMode ? '\nimport { isolateFarmServerPageGraph, wrapFarmIsolatedClientGraph, renderFarmServerTreePage, renderFarmServerTreeLayout, withFarmIslandsRender } from "@farm.js/core/internal/islands-runtime";' : '\nimport { isolateFarmServerPageGraph, wrapFarmIsolatedClientGraph } from "@farm.js/core/internal/isolated-boundary";\nimport { renderFarmServerTreePage } from "@farm.js/core/internal/server-tree";' : ""}` : `import React, * as ReactDOMServer from ${JSON.stringify(config.renderer.server)};${generateFarmRendererAppSetupServerCode(config)}`;
7831
+ import { markPagePosition, markLayoutPosition } from "@farm.js/core/internal/production-runtime";${hasIsolatedClientGraphRuntime ? farmIslandsMode ? '\nimport { isolateFarmServerPageGraph, wrapFarmIsolatedClientGraph, renderFarmServerTreePage, renderFarmServerTreeLayout, withFarmIslandsRender } from "@farm.js/core/internal/islands-runtime";' : '\nimport { isolateFarmServerPageGraph, wrapFarmIsolatedClientGraph } from "@farm.js/core/internal/isolated-boundary";\nimport { renderFarmServerTreePage } from "@farm.js/core/internal/server-tree";' : ""}` : (
7832
+ // The renderer contract is the server module's named exports, which the development
7833
+ // server reads too; a renderer needs no default export. The entry feature-checks optional
7834
+ // exports (streaming, `capabilities`, `generateHydrationScript`) on a copy of the
7835
+ // namespace, because Rolldown warns about each such read off the namespace itself.
7836
+ `import * as __farmRendererServer from ${JSON.stringify(config.renderer.server)};
7837
+ const ReactDOMServer = { ...__farmRendererServer };
7838
+ const React = ReactDOMServer;${generateFarmRendererAppSetupServerCode(config)}`
7839
+ );
7686
7840
  const routeClientGraphServerRuntime = hasIsolatedClientGraphRuntime ? `function wrapFarmRouteClientGraph(element) {
7687
7841
  return wrapFarmIsolatedClientGraph(React, element);
7688
7842
  }
@@ -7718,9 +7872,9 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7718
7872
  (image) => image.sourceType === "module"
7719
7873
  );
7720
7874
  const edgeMiddlewareFilePaths = farmTargetRunsEdgeMiddleware(preset) ? middlewareRoutes.filter(isFarmEdgeMiddlewareRoute).map((route) => route.filePath) : [];
7721
- const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7875
+ const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkUWOCYINYcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7722
7876
  const farmDocsFontAssets = _optionalChain([config, 'access', _188 => _188.docs, 'optionalAccess', _189 => _189.enabled]) ? _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkERMUL73Lcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
7723
- const integrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations);
7877
+ const integrationProviders = _chunkWGWWRV2Mcjs.getIntegrationProviders.call(void 0, config.integrations);
7724
7878
  const renderedIntegrationProviders = integrationProviders.filter(
7725
7879
  (provider) => provider.component || provider.type === "clerk"
7726
7880
  );
@@ -7729,7 +7883,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7729
7883
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
7730
7884
  );
7731
7885
  }
7732
- const providerServerModules = _chunkSIYELCIXcjs.generateFarmIntegrationProviderServerModules.call(void 0,
7886
+ const providerServerModules = _chunkX4TSMQWFcjs.generateFarmIntegrationProviderServerModules.call(void 0,
7733
7887
  renderedIntegrationProviders,
7734
7888
  config.root,
7735
7889
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -7749,14 +7903,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7749
7903
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
7750
7904
  (provider) => provider.supportsIsolatedHydration !== true
7751
7905
  );
7752
- const isolatedHydrationMode = _chunkPMKUTZGRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
7906
+ const isolatedHydrationMode = _chunkZVSQN7NCcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
7753
7907
  _optionalChain([config, 'access', _192 => _192.experimental, 'optionalAccess', _193 => _193.isolatedClientHydration]),
7754
7908
  {
7755
7909
  serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _194 => _194.experimental, 'optionalAccess', _195 => _195.serverComponents])) === "rsc",
7756
7910
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
7757
7911
  }
7758
7912
  );
7759
- const hydrationPlanOptions = _chunkPMKUTZGRcjs.getFarmClientHydrationPlanOptions.call(void 0,
7913
+ const hydrationPlanOptions = _chunkZVSQN7NCcjs.getFarmClientHydrationPlanOptions.call(void 0,
7760
7914
  config.renderer,
7761
7915
  Boolean(unsupportedIntegrationProvider)
7762
7916
  );
@@ -7764,7 +7918,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7764
7918
  ...hydrationPlanOptions,
7765
7919
  serverOwners: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _196 => _196.experimental, 'optionalAccess', _197 => _197.serverComponents])) === "islands"
7766
7920
  };
7767
- const { layoutHydrationPlans, pageHydrationPlans } = _chunkPMKUTZGRcjs.withFarmSourceSnapshot.call(void 0, () => {
7921
+ const { layoutHydrationPlans, pageHydrationPlans } = _chunkZVSQN7NCcjs.withFarmSourceSnapshot.call(void 0, () => {
7768
7922
  const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
7769
7923
  ...layout,
7770
7924
  hydration: getCachedClientModuleHydrationPlan(
@@ -7775,7 +7929,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7775
7929
  { ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
7776
7930
  )
7777
7931
  }));
7778
- const markdownPagePlan = _chunkPMKUTZGRcjs.createMarkdownPageHydrationPlanner.call(void 0,
7932
+ const markdownPagePlan = _chunkZVSQN7NCcjs.createMarkdownPageHydrationPlanner.call(void 0,
7779
7933
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
7780
7934
  config.root,
7781
7935
  isolatedHydrationMode,
@@ -7784,7 +7938,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7784
7938
  const pageHydrationPlans2 = new Map(
7785
7939
  pageRoutes.map((route) => [
7786
7940
  route.modulePath,
7787
- _chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
7941
+ _chunkQ4TRGTO7cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
7788
7942
  route.modulePath,
7789
7943
  config.root,
7790
7944
  isolatedHydrationMode,
@@ -7795,7 +7949,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7795
7949
  );
7796
7950
  return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
7797
7951
  });
7798
- _chunkPMKUTZGRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
7952
+ _chunkZVSQN7NCcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
7799
7953
  layoutHydrationPlans.map((layout) => ({
7800
7954
  pattern: layout.pattern,
7801
7955
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -7804,10 +7958,10 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7804
7958
  pageRoutes.map((route) => ({
7805
7959
  // Compared by directory so a grouped layout applies only inside its group.
7806
7960
  pattern: _nullishCoalesce(route.directory, () => ( route.pattern)),
7807
- depth: _chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
7961
+ depth: _chunkUWOCYINYcjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
7808
7962
  metadata: pageHydrationPlans.get(route.modulePath)
7809
7963
  })),
7810
- _chunk6ZFGWB75cjs.routeBoundaryCoversDirectory,
7964
+ _chunkUWOCYINYcjs.routeBoundaryCoversDirectory,
7811
7965
  { serverOwners: pageHydrationPlanOptions.serverOwners }
7812
7966
  );
7813
7967
  const providerServerImports = [
@@ -7838,9 +7992,9 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7838
7992
  }).map(({ route }) => route);
7839
7993
  orderedPageRoutes.forEach((route, index) => {
7840
7994
  const varName = `pageRoute${index}`;
7841
- if (_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
7842
- const renderingDirective2 = _chunkGC2BSXQScjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7843
- const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
7995
+ if (_chunkQ4TRGTO7cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
7996
+ const renderingDirective2 = _chunkSDICLSQUcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7997
+ const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkZVSQN7NCcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
7844
7998
  pageRegistrations.push(`
7845
7999
  {
7846
8000
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -7848,14 +8002,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7848
8002
  rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
7849
8003
  module: createFarmMarkdownRouteModule({
7850
8004
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
7851
- filePath: ${JSON.stringify(_chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
8005
+ filePath: ${JSON.stringify(_chunkX4TSMQWFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
7852
8006
  components: farmMdxComponents,
7853
8007
  config: farmMdxConfig,
7854
8008
  }),
7855
8009
  markdownSource: {
7856
8010
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
7857
8011
  filePath: ${JSON.stringify(
7858
- _chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
8012
+ _chunkX4TSMQWFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
7859
8013
  )},
7860
8014
  },
7861
8015
  }`);
@@ -7865,16 +8019,16 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7865
8019
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
7866
8020
  );
7867
8021
  const clientMetadata = pageHydrationPlans.get(route.modulePath);
7868
- const renderingDirective = _chunkGC2BSXQScjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8022
+ const renderingDirective = _chunkSDICLSQUcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7869
8023
  pageRegistrations.push(`
7870
8024
  {
7871
8025
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
7872
8026
  directory: ${JSON.stringify(route.directory)},` : ""}
7873
8027
  module: ${varName},
7874
8028
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
7875
- clientModule: ${JSON.stringify(_chunkGC5ROI3Acjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
7876
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
7877
- const rootStrategy = _chunkSIYELCIXcjs.resolveFarmRouteRootStrategy.call(void 0,
8029
+ clientModule: ${JSON.stringify(_chunk7U4XF76Rcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
8030
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkZVSQN7NCcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
8031
+ const rootStrategy = _chunkX4TSMQWFcjs.resolveFarmRouteRootStrategy.call(void 0,
7878
8032
  route,
7879
8033
  clientMetadata,
7880
8034
  layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
@@ -7887,13 +8041,13 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7887
8041
  rendering: ${JSON.stringify(renderingDirective)},` : ""}
7888
8042
  ${route.source !== void 0 ? `markdownSource: {
7889
8043
  source: ${JSON.stringify(route.source)},
7890
- filePath: ${JSON.stringify(_chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
8044
+ filePath: ${JSON.stringify(_chunkX4TSMQWFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
7891
8045
  },` : ""}
7892
8046
  }`);
7893
8047
  });
7894
8048
  const layoutImports = [];
7895
8049
  const layoutRegistrations = [];
7896
- const treeLayoutPatterns = farmIslandsMode ? _chunk6ZFGWB75cjs.getFarmServerTreeLayoutPatterns.call(void 0,
8050
+ const treeLayoutPatterns = farmIslandsMode ? _chunkUWOCYINYcjs.getFarmServerTreeLayoutPatterns.call(void 0,
7897
8051
  layoutHydrationPlans.map((layout) => ({
7898
8052
  pattern: layout.pattern,
7899
8053
  shouldHydrate: layout.hydration.shouldHydrate,
@@ -7911,7 +8065,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7911
8065
  pattern: ${JSON.stringify(layout.pattern)},
7912
8066
  module: ${varName},
7913
8067
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
7914
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkSIYELCIXcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
8068
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkX4TSMQWFcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
7915
8069
  // isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
7916
8070
  clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
7917
8071
  }`);
@@ -7939,7 +8093,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7939
8093
  containerId: ${JSON.stringify(slot.containerId)},
7940
8094
  interception: ${JSON.stringify(slot.interception)},
7941
8095
  fallback: ${JSON.stringify(slot.fallback)},
7942
- hydrates: ${!farmIslandsMode || _chunkPMKUTZGRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
8096
+ hydrates: ${!farmIslandsMode || _chunkZVSQN7NCcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
7943
8097
  module: ${varName},
7944
8098
  }`);
7945
8099
  });
@@ -7950,12 +8104,12 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7950
8104
  errorImports.push(
7951
8105
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(errorRoute.modulePath)};`
7952
8106
  );
7953
- const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
8107
+ const groupScope = _chunkUWOCYINYcjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
7954
8108
  errorRegistrations.push(`
7955
8109
  {
7956
- pattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
8110
+ pattern: ${JSON.stringify(_chunkUWOCYINYcjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
7957
8111
  groupScope: ${JSON.stringify(groupScope)},
7958
- directoryDepth: ${_chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
8112
+ directoryDepth: ${_chunkUWOCYINYcjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
7959
8113
  module: ${varName},
7960
8114
  }`);
7961
8115
  });
@@ -7967,12 +8121,12 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7967
8121
  loadingImports.push(
7968
8122
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(loadingRoute.modulePath)};`
7969
8123
  );
7970
- const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, loadingRoute.pattern);
8124
+ const groupScope = _chunkUWOCYINYcjs.getRouteGroupScope.call(void 0, loadingRoute.pattern);
7971
8125
  loadingRegistrations.push(`
7972
8126
  {
7973
- pattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, loadingRoute.pattern))},${groupScope ? `
8127
+ pattern: ${JSON.stringify(_chunkUWOCYINYcjs.stripRouteGroups.call(void 0, loadingRoute.pattern))},${groupScope ? `
7974
8128
  groupScope: ${JSON.stringify(groupScope)},
7975
- directoryDepth: ${_chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, loadingRoute.pattern)},` : ""}
8129
+ directoryDepth: ${_chunkUWOCYINYcjs.getRouteDirectoryDepth.call(void 0, loadingRoute.pattern)},` : ""}
7976
8130
  module: ${varName},
7977
8131
  }`);
7978
8132
  });
@@ -8249,14 +8403,14 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
8249
8403
  const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
8250
8404
  const nativeMCP = _chunkVM57CK74cjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
8251
8405
  const mobileSession = (config.plugins || []).some(
8252
- (plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) === _chunkFTQUNBRNcjs.FARM_MOBILE_SESSION_PLUGIN
8406
+ (plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) === _chunkMHKPXX3Jcjs.FARM_MOBILE_SESSION_PLUGIN
8253
8407
  );
8254
8408
  const nativeServerFns = (config.plugins || []).some(
8255
8409
  (plugin) => _optionalChain([plugin, 'optionalAccess', _220 => _220.name]) === _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN
8256
- ) ? _chunkNQZWLIPTcjs.collectFarmNativeServerFns.call(void 0, {
8410
+ ) ? _chunkTS3ZHJN5cjs.collectFarmNativeServerFns.call(void 0, {
8257
8411
  root: config.root,
8258
8412
  srcDir: config.srcDir,
8259
- entries: _chunkNQZWLIPTcjs.findFarmNativeScreenFiles.call(void 0, _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config))
8413
+ entries: _chunkTS3ZHJN5cjs.findFarmNativeScreenFiles.call(void 0, _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config))
8260
8414
  }) : void 0;
8261
8415
  const integrationImports = `
8262
8416
  ${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
@@ -8271,7 +8425,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
8271
8425
  ${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
8272
8426
  });` : ""}
8273
8427
  `;
8274
- const imageRuntime = _chunkSIYELCIXcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8428
+ const imageRuntime = _chunkX4TSMQWFcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8275
8429
  const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
8276
8430
  const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
8277
8431
  const apiHandlerCode = apiRoutes.length > 0 ? `
@@ -8453,7 +8607,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
8453
8607
 
8454
8608
  function renderFarmDefault404Page() {
8455
8609
  return React.createElement(React.Fragment, null,
8456
- React.createElement("style", null, ${JSON.stringify(_chunkSIYELCIXcjs.DEFAULT_NOT_FOUND_STYLES)}),
8610
+ React.createElement("style", null, ${JSON.stringify(_chunkX4TSMQWFcjs.DEFAULT_NOT_FOUND_STYLES)}),
8457
8611
  React.createElement("main", {
8458
8612
  className: "farm-default-not-found",
8459
8613
  "aria-labelledby": "farm-default-not-found-title",
@@ -8613,7 +8767,7 @@ ${_optionalChain([config, 'access', _230 => _230.agent, 'optionalAccess', _231 =
8613
8767
  // to the build.
8614
8768
  const farmNoindexPreview = resolveFarmPreviewDeployment(
8615
8769
  globalThis.process?.env,
8616
- ${JSON.stringify(_chunkJD42G6BNcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
8770
+ ${JSON.stringify(_chunkXY5OZQF6cjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
8617
8771
  );` : ""}
8618
8772
  const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
8619
8773
  const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
@@ -8744,7 +8898,7 @@ const farmDocsHandler = ${_optionalChain([config, 'access', _239 => _239.docs, '
8744
8898
  registerMCPServer: registerFarmMCPServer,
8745
8899
  // A page built with this keeps its HTML string, so the preload budget and the response
8746
8900
  // writer use it instead of reading and re-encoding the body. Older adapters ignore it.
8747
- createHtmlResponse: farmOwnedHtmlResponse,${_chunkFCHEO3LGcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
8901
+ createHtmlResponse: farmOwnedHtmlResponse,${_chunkZPEZXQTMcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
8748
8902
  // The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
8749
8903
  // asks about any path its own content lists, so the guards decide here, not a page list.
8750
8904
  isPathGuarded: (pathname) =>
@@ -8805,12 +8959,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
8805
8959
  // runtime request.
8806
8960
  const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
8807
8961
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
8808
- ${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkLTDMJD2Fcjs.resolveFarmApiCatalogInput.call(void 0, config))};
8962
+ ${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunk5OAN7BG5cjs.resolveFarmApiCatalogInput.call(void 0, config))};
8809
8963
  ` : ""}${_optionalChain([config, 'access', _245 => _245.agent, 'optionalAccess', _246 => _246.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
8810
- _chunkLTDMJD2Fcjs.resolveFarmAppManifestInput.call(void 0, config, {
8964
+ _chunk5OAN7BG5cjs.resolveFarmAppManifestInput.call(void 0, config, {
8811
8965
  build: config.deploymentId,
8812
- packages: _chunkSIYELCIXcjs.resolveFarmAppPackages.call(void 0, config.root),
8813
- webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkSIYELCIXcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
8966
+ packages: _chunkX4TSMQWFcjs.resolveFarmAppPackages.call(void 0, config.root),
8967
+ webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkX4TSMQWFcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
8814
8968
  })
8815
8969
  )};
8816
8970
  ${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
@@ -8985,10 +9139,12 @@ function farmDocumentBootsClient(markup, hydratesAtLoad, routeSlots) {
8985
9139
  return true;
8986
9140
  }
8987
9141
 
8988
- // The boot entry runs the client entry from the URL on its script. A root that waits (the element
8989
- // a hydrating layout or client page hydrates) is named with its strategy, for the boot to watch.
8990
- function renderFarmClientBootScript(root, rootStrategy) {
9142
+ // The boot entry runs the client entry from the URL on its script, with the files listed for what
9143
+ // started it. A root that waits (the element a hydrating layout or client page hydrates) is named
9144
+ // with its strategy, for the boot to watch.
9145
+ function renderFarmClientBootScript(root, rootStrategy, markup, pageModule, navigation) {
8991
9146
  return stampFarmCspNonce('<script type="module" src="${farmClientBoot ? FARM_CLIENT_BOOT_SRC_PLACEHOLDER : ""}" data-farm-runtime="/__farm_client_js_src__"' +
9147
+ renderFarmClientBootPreloads(markup, pageModule, root, rootStrategy, navigation) +
8992
9148
  (root ? ' data-farm-root="' + root + '" data-farm-root-strategy="' + rootStrategy + '"' : '') +
8993
9149
  '></script>');
8994
9150
  }
@@ -9591,7 +9747,7 @@ function peelFarmDocumentPrefix(markup) {
9591
9747
  let inner = markup.replace(/^\\s+/, "");
9592
9748
  let hoisted = "";
9593
9749
  const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents;?\\s*["'][^>]*>/i;
9594
- const hoistable = /${_chunk6ZFGWB75cjs.HOISTED_HEAD_ELEMENT.source}/i;
9750
+ const hoistable = /${_chunkUWOCYINYcjs.HOISTED_HEAD_ELEMENT.source}/i;
9595
9751
  let match;
9596
9752
  while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
9597
9753
  if (!/^<div/i.test(match[0])) hoisted += match[0];
@@ -9620,7 +9776,7 @@ function opensFarmFullDocument(markup) {
9620
9776
  // them: its own head takes them. Matches the dev renderer's takeFarmHoistedHead.
9621
9777
  function takeFarmHoistedHead(markup) {
9622
9778
  if (opensFarmFullDocument(markup)) return { head: "", body: markup };
9623
- const hoistable = /${_chunk6ZFGWB75cjs.HOISTED_HEAD_ELEMENT.source}/i;
9779
+ const hoistable = /${_chunkUWOCYINYcjs.HOISTED_HEAD_ELEMENT.source}/i;
9624
9780
  let head = "";
9625
9781
  let body = markup;
9626
9782
  let match;
@@ -9778,6 +9934,11 @@ ${generateFarmClientBootRoutesServerSource(`"${FARM_CLIENT_ROUTE_TABLE_PLACEHOLD
9778
9934
  const farmClientEntryPreloadTags = farmClientModulePreloads
9779
9935
  ? farmClientModulePreloads.entry.map(renderFarmClientModulePreload).join("")
9780
9936
  : "";
9937
+ // A document that runs the entry at once (no boot) hydrates with the renderer it imports lazily
9938
+ // (RFC 0010). A client navigation's response runs neither, so it leaves them out.
9939
+ const farmClientRendererPreloadTags = farmClientModulePreloads
9940
+ ? (farmClientModulePreloads.renderer || []).map(renderFarmClientModulePreload).join("")
9941
+ : "";
9781
9942
  // The client modules a document's markup loads: its islands' boundaries and the
9782
9943
  // client references of its server tree. An island with a deferred strategy loads its
9783
9944
  // module on its own trigger, so it is not preloaded.
@@ -9789,22 +9950,17 @@ function renderFarmClientModulePreload(index) {
9789
9950
  '" fetchpriority="low">';
9790
9951
  }
9791
9952
 
9792
- // The modulepreload links for a document: the entry's static imports, then the
9793
- // modules its hydrating page and its markup load.
9794
- function renderFarmClientModulePreloads(markup, pageModule) {
9795
- // A nonce policy blocks parser-inserted links without the nonce, and the
9796
- // response filter manages nonces on script elements only, so CSP nonce mode
9797
- // keeps the documents it had.
9798
- if (!farmClientModulePreloads || (farmSecurityConfig.csp && farmSecurityConfig.csp.nonce)) return "";
9953
+ // The manifest indexes of the modules a document's hydrating page and its markup
9954
+ // load, leaving out those already listed.
9955
+ function collectFarmClientDocumentModules(markup, pageModule, listed) {
9799
9956
  const modules = farmClientModulePreloads.modules;
9800
- const listed = new Set();
9801
- let tags = farmClientEntryPreloadTags;
9957
+ const indexes = [];
9802
9958
  const add = (moduleId) => {
9803
9959
  if (!moduleId || !Object.prototype.hasOwnProperty.call(modules, moduleId)) return;
9804
9960
  for (const index of modules[moduleId]) {
9805
9961
  if (listed.has(index)) continue;
9806
9962
  listed.add(index);
9807
- tags += renderFarmClientModulePreload(index);
9963
+ indexes.push(index);
9808
9964
  }
9809
9965
  };
9810
9966
  add(pageModule);
@@ -9814,7 +9970,47 @@ function renderFarmClientModulePreloads(markup, pageModule) {
9814
9970
  add(match[1] || match[3]);
9815
9971
  }
9816
9972
  }
9817
- return tags;
9973
+ return indexes;
9974
+ }
9975
+
9976
+ // The modulepreload links for a document: the entry's static imports and, unless it answers a
9977
+ // client navigation, the renderer, then the modules its hydrating page and its markup load.
9978
+ function renderFarmClientModulePreloads(markup, pageModule, navigation) {
9979
+ // A nonce policy blocks parser-inserted links without the nonce, and the
9980
+ // response filter manages nonces on script elements only, so CSP nonce mode
9981
+ // keeps the documents it had.
9982
+ if (!farmClientModulePreloads || (farmSecurityConfig.csp && farmSecurityConfig.csp.nonce)) return "";
9983
+ return farmClientEntryPreloadTags + (navigation ? "" : farmClientRendererPreloadTags) +
9984
+ collectFarmClientDocumentModules(markup, pageModule, new Set())
9985
+ .map(renderFarmClientModulePreload)
9986
+ .join("");
9987
+ }
9988
+
9989
+ // What a boot document's runtime fetches as it starts, for the boot to request with it rather
9990
+ // than each a round trip after the file that imports it: the entry's static imports, the router
9991
+ // and route table a link's intent loads, the renderer the entry renders and hydrates with (RFC
9992
+ // 0010), and the modules the root hydrates with. A root that
9993
+ // waits for its time hydrates once the runtime runs, so its modules come with the entry's; one
9994
+ // that waits for a click hydrates on an interaction in it, and the boot fetches them then. The
9995
+ // boot adds the links itself with the script's nonce, so CSP nonce mode keeps them.
9996
+ function renderFarmClientBootPreloads(markup, pageModule, root, rootStrategy, navigation) {
9997
+ if (!farmClientModulePreloads) return "";
9998
+ const files = farmClientModulePreloads.files;
9999
+ const attribute = function(name, indexes) {
10000
+ if (indexes.length === 0) return "";
10001
+ return " " + name + '="' + escapeFarmHtmlAttribute(
10002
+ indexes.map(function(index) { return files[index]; }).join(" ")
10003
+ ) + '"';
10004
+ };
10005
+ const entry = farmClientModulePreloads.entry;
10006
+ const rootModules = root
10007
+ ? collectFarmClientDocumentModules(markup, pageModule, new Set(entry))
10008
+ : [];
10009
+ const waitsForClick = rootStrategy === "interaction";
10010
+ return attribute("data-farm-preload", waitsForClick ? entry : entry.concat(rootModules)) +
10011
+ attribute("data-farm-preload-router", farmClientModulePreloads.router || []) +
10012
+ attribute("data-farm-preload-renderer", navigation ? [] : farmClientModulePreloads.renderer || []) +
10013
+ (waitsForClick ? attribute("data-farm-preload-root", rootModules) : "");
9818
10014
  }
9819
10015
 
9820
10016
  // The origin hreflang alternates resolve against when the route sets no
@@ -10150,7 +10346,7 @@ function createFarmAgentRobotsResponse(request) {
10150
10346
  // its nearest layout's.
10151
10347
  const farmAgentGuardedPages = new Set(${JSON.stringify(
10152
10348
  pageRoutes.map((route) => route.pattern).filter(
10153
- (pattern) => !pattern.includes("[") && _chunk6ZFGWB75cjs.farmPathGuardCoversPage.call(void 0,
10349
+ (pattern) => !pattern.includes("[") && _chunkUWOCYINYcjs.farmPathGuardCoversPage.call(void 0,
10154
10350
  {
10155
10351
  config: { middleware: config.middleware, integrations: config.integrations },
10156
10352
  middlewareRoutes
@@ -10205,12 +10401,12 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
10205
10401
  // aside for a page route that answers /mcp and for any MCP server published or
10206
10402
  // registered at runtime, such as the docs engine's.
10207
10403
  const farmDefaultMCPServer = ${JSON.stringify(
10208
- _chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkUYACD4SHcjs.FARM_VERSION)
10404
+ _chunkW53Z4WDIcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkCCMP4JD2cjs.FARM_VERSION)
10209
10405
  )};
10210
10406
  let farmDefaultMCPRouteFree;
10211
10407
  function getFarmDefaultMCPServer() {
10212
10408
  if (farmDefaultMCPRouteFree === undefined) {
10213
- farmDefaultMCPRouteFree = !matchPageRoute(${JSON.stringify(_chunkYRXPDKMMcjs.FARM_DEFAULT_MCP_PATH)});
10409
+ farmDefaultMCPRouteFree = !matchPageRoute(${JSON.stringify(_chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_PATH)});
10214
10410
  }
10215
10411
  return farmDefaultMCPRouteFree ? resolveFarmDefaultMCPServer(farmDefaultMCPServer) : undefined;
10216
10412
  }
@@ -10399,7 +10595,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
10399
10595
  // middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
10400
10596
  const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
10401
10597
  const farmPrerendering =
10402
- typeof process !== "undefined" && process.env?.${_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV} === "1";
10598
+ typeof process !== "undefined" && process.env?.${_chunkANZLZNNXcjs.FARM_PRERENDER_ENV} === "1";
10403
10599
  ` : ""}
10404
10600
  const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
10405
10601
  config: farmMiddlewareConfig,
@@ -10655,7 +10851,7 @@ ${hasInfraAnalyticsRuntime ? `
10655
10851
  // endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
10656
10852
  // labeled here; route.pattern keeps meaning the matched app route for plugins.
10657
10853
  const farmBuiltInRoutePaths = new Set(${JSON.stringify(
10658
- _chunkLTDMJD2Fcjs.listFarmBuiltInRoutePaths.call(void 0, {
10854
+ _chunk5OAN7BG5cjs.listFarmBuiltInRoutePaths.call(void 0, {
10659
10855
  agent: {
10660
10856
  ...config.agent,
10661
10857
  aiCatalog: servesAiCatalog,
@@ -11432,7 +11628,7 @@ ${hasServerRuntimeIntegrations ? `
11432
11628
  // agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
11433
11629
  // public manifest, the same document for every request.
11434
11630
  if (
11435
- [${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
11631
+ [${JSON.stringify(_chunk5OAN7BG5cjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunk5OAN7BG5cjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
11436
11632
  normalizeRuntimePath(routePathname),
11437
11633
  )
11438
11634
  ) {
@@ -11444,7 +11640,7 @@ ${hasServerRuntimeIntegrations ? `
11444
11640
  ` : ""}
11445
11641
  ${_optionalChain([config, 'access', _277 => _277.agent, 'optionalAccess', _278 => _278.apiCatalog]) ? `
11446
11642
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
11447
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_API_CATALOG_PATH)}) {
11643
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunk5OAN7BG5cjs.FARM_API_CATALOG_PATH)}) {
11448
11644
  return applyProductionMiddlewareHeaders(
11449
11645
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
11450
11646
  middlewareHeaders,
@@ -12254,6 +12450,10 @@ ${hasServerRuntimeIntegrations ? `
12254
12450
  // Set once the whole document is rendered: whether it starts with the boot entry, which
12255
12451
  // preloads nothing.
12256
12452
  let farmBootsClient = false;
12453
+ // A client navigation swaps this document in without running its scripts. A route a
12454
+ // shared cache stores renders the same for every request.
12455
+ const farmNavigationRequest = ${farmIslandsMode ? `!farmSharedCacheableRoute &&
12456
+ (request.headers.has("f-stream") || request.headers.has("f-render"))` : "false"};
12257
12457
  // A layout's own <html> document with Farm's head assets merged in and the #root the client
12258
12458
  // hydrates opening its body: the whole document, or a streamed one's opening.
12259
12459
  const composeFarmFullDocument = function(markup) {
@@ -12263,7 +12463,7 @@ ${hasServerRuntimeIntegrations ? `
12263
12463
  );
12264
12464
  composed = composed
12265
12465
  // Inject CSS link after opening head tag or first meta tag
12266
- .replace(/<head([^>]*)>/i, function(match, attrs) { return '<head' + attrs + '>\\n <link rel="stylesheet" href="/__farm_client_css_href__">' + (farmBootsClient ? "" : renderFarmClientModulePreloads(composed, route.clientModule)); })
12466
+ .replace(/<head([^>]*)>/i, function(match, attrs) { return '<head' + attrs + '>\\n <link rel="stylesheet" href="/__farm_client_css_href__">' + (farmBootsClient ? "" : renderFarmClientModulePreloads(composed, route.clientModule, farmNavigationRequest)); })
12267
12467
  .replace(/<\\/head>/i, () => renderFarmRendererHydrationScript() + '\\n</head>')
12268
12468
  // Explicit metadata wins over renderer and layout titles. Without
12269
12469
  // explicit metadata, a renderer title wins over the layout title.
@@ -12459,7 +12659,10 @@ ${hasServerRuntimeIntegrations ? `
12459
12659
  const farmEntryScript = farmBootsClient
12460
12660
  ? renderFarmClientBootScript(
12461
12661
  farmHydratesRoot ? (shouldHydrateLayout ? "root" : "__farm_page__") : "",
12462
- route.rootStrategy
12662
+ route.rootStrategy,
12663
+ html,
12664
+ route.clientModule,
12665
+ farmNavigationRequest
12463
12666
  )
12464
12667
  : renderFarmClientEntryScript();
12465
12668
 
@@ -12490,7 +12693,7 @@ ${hasServerRuntimeIntegrations ? `
12490
12693
  \${viewportTags}
12491
12694
  \${hasFavicon ? "" : '<link rel="icon" href="data:,">'}
12492
12695
  \${suppressDefaultTitle ? "" : "<title>" + title + "</title>"}\${metaTags}\${rendererHead ? "\\n " + rendererHead : ""}
12493
- <link rel="stylesheet" href="/__farm_client_css_href__">\${farmBootsClient ? "" : renderFarmClientModulePreloads(html, route.clientModule)}
12696
+ <link rel="stylesheet" href="/__farm_client_css_href__">\${farmBootsClient ? "" : renderFarmClientModulePreloads(html, route.clientModule, farmNavigationRequest)}
12494
12697
  \${renderFarmRendererHydrationScript()}
12495
12698
  </head>
12496
12699
  <body>
@@ -12626,7 +12829,7 @@ ${hasServerRuntimeIntegrations ? `
12626
12829
  ${servesDefaultMCP ? `
12627
12830
  // agent.mcp: no app route answered /mcp, so the default read-only server may.
12628
12831
  if (
12629
- normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkYRXPDKMMcjs.FARM_DEFAULT_MCP_PATH)} &&
12832
+ normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_PATH)} &&
12630
12833
  getFarmDefaultMCPServer()
12631
12834
  ) {
12632
12835
  return applyProductionMiddlewareHeaders(
@@ -13220,7 +13423,7 @@ function getManifestPageEntry(manifest, pathname) {
13220
13423
  }
13221
13424
  function withFarmEdgeGuardedPrerenderHeaders(headers, edgeGuarded) {
13222
13425
  if (!edgeGuarded) return headers;
13223
- const cacheHeaders = /* @__PURE__ */ new Set(["cache-control", ..._chunk42EUEYW6cjs.CDN_CACHE_CONTROL_HEADERS]);
13426
+ const cacheHeaders = /* @__PURE__ */ new Set(["cache-control", ..._chunkYUQUGVSVcjs.CDN_CACHE_CONTROL_HEADERS]);
13224
13427
  return {
13225
13428
  ...Object.fromEntries(
13226
13429
  Object.entries(headers).filter(([name]) => !cacheHeaders.has(name.toLowerCase()))
@@ -13253,9 +13456,9 @@ function getPhysicalPrerenderBypassReason(options) {
13253
13456
  if (rewriteSources.some((source) => middlewarePatternMatches(source, pathname))) {
13254
13457
  return "rewrite";
13255
13458
  }
13256
- if (_chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
13257
- if (_chunk6ZFGWB75cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
13258
- if (_chunkYROK6CJCcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
13459
+ if (_chunkUWOCYINYcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
13460
+ if (_chunkUWOCYINYcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
13461
+ if (_chunkLVGB5PYKcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
13259
13462
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
13260
13463
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
13261
13464
  if (_optionalChain([manifestEntry, 'optionalAccess', _298 => _298.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -13274,32 +13477,32 @@ function getPhysicalPrerenderBypassReason(options) {
13274
13477
  async function getFarmDocsPrerenderPages(config, root, preset) {
13275
13478
  if (!_optionalChain([config, 'access', _301 => _301.docs, 'optionalAccess', _302 => _302.enabled]) || !config.docs.prerender) return [];
13276
13479
  if (_chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge") {
13277
- _chunkGC5ROI3Acjs.logger.info(
13480
+ _chunk7U4XF76Rcjs.logger.info(
13278
13481
  `\u21AA Keeping docs pages in the edge docs snapshot: docs.prerender writes static files on Node and serverless targets, not "${preset}".`
13279
13482
  );
13280
13483
  return [];
13281
13484
  }
13282
- if (!_chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
13283
- const { pages: pages2, originDependent } = _chunk6D3CJFNUcjs.listFarmDocsBuiltInPrerenderPages.call(void 0, config.docs, {
13485
+ if (!_chunkZPEZXQTMcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
13486
+ const { pages: pages2, originDependent } = _chunkHR5GU4UUcjs.listFarmDocsBuiltInPrerenderPages.call(void 0, config.docs, {
13284
13487
  root,
13285
13488
  srcDir: config.srcDir
13286
13489
  });
13287
13490
  if (originDependent.length > 0) {
13288
- _chunkGC5ROI3Acjs.logger.info(
13491
+ _chunk7U4XF76Rcjs.logger.info(
13289
13492
  `\u21AA Keeping ${originDependent.length} docs page(s) rendering on request: their social image metadata is an absolute URL built from the request's origin. Set docs.socialImage.baseUrl to prerender them.`
13290
13493
  );
13291
13494
  }
13292
13495
  return pages2;
13293
13496
  }
13294
13497
  if (!_chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer)) {
13295
- _chunkGC5ROI3Acjs.logger.warn(
13498
+ _chunk7U4XF76Rcjs.logger.warn(
13296
13499
  `The docs adapter ${JSON.stringify(config.docs.adapter.id)} renders with React; docs.prerender keeps its pages rendering on request with the "${config.renderer.name}" renderer.`
13297
13500
  );
13298
13501
  return [];
13299
13502
  }
13300
- const pages = await _chunkFCHEO3LGcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
13503
+ const pages = await _chunkZPEZXQTMcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
13301
13504
  if (!pages) {
13302
- _chunkGC5ROI3Acjs.logger.warn(
13505
+ _chunk7U4XF76Rcjs.logger.warn(
13303
13506
  `The docs adapter ${JSON.stringify(config.docs.adapter.id)} does not list its pages for prerendering; upgrade it to prerender docs pages. They render on request until then.`
13304
13507
  );
13305
13508
  return [];
@@ -13311,13 +13514,13 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
13311
13514
  return [];
13312
13515
  }
13313
13516
  try {
13314
- return await _chunkFCHEO3LGcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
13517
+ return await _chunkZPEZXQTMcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
13315
13518
  root,
13316
13519
  srcDir: config.srcDir,
13317
- adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
13520
+ adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _chunkZPEZXQTMcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
13318
13521
  });
13319
13522
  } catch (error) {
13320
- _chunkGC5ROI3Acjs.logger.warn(
13523
+ _chunk7U4XF76Rcjs.logger.warn(
13321
13524
  `Farm Infra analytics reports docs pages by the docs route, not each page's path: listing them failed (${error instanceof Error ? error.message : String(error)}).`
13322
13525
  );
13323
13526
  return [];
@@ -13340,10 +13543,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13340
13543
  const nitroBuilder = nitroBuilderResult.value;
13341
13544
  const isVercel = preset === "vercel";
13342
13545
  const isCloudflareWorker = preset === "cloudflare-module";
13343
- const outputDir = _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
13546
+ const outputDir = _chunkLVGB5PYKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
13344
13547
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
13345
13548
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
13346
- const imageRuntime = _chunkSIYELCIXcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
13549
+ const imageRuntime = _chunkX4TSMQWFcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
13347
13550
  const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
13348
13551
  (image) => image.sourceType === "module"
13349
13552
  );
@@ -13361,15 +13564,15 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13361
13564
  (packageName) => copiedRuntimePackages.has(packageName)
13362
13565
  );
13363
13566
  const isPrebuiltSSRCandidate = preset === "node-server" && ssrExternalsArePackaged;
13364
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} Nitro output directory: ${outputDir}`);
13365
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} SSR entry file: ${ssrEntryFile}`);
13366
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} Preset: ${preset}`);
13567
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4E6} Nitro output directory: ${outputDir}`);
13568
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4E6} SSR entry file: ${ssrEntryFile}`);
13569
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4E6} Preset: ${preset}`);
13367
13570
  const ssgCollectionPromise = routeManager.collectSSGPages();
13368
13571
  const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config));
13369
13572
  const configuredResponseRoutesPromise = Promise.all([config.redirects(), config.rewrites()]);
13370
13573
  const docsPrerenderPagesPromise = getFarmDocsPrerenderPages(config, root, preset);
13371
- const farmWorkflows = await _chunkQUEYL2WMcjs.prepareFarmWorkflowsForNitro.call(void 0, config);
13372
- const farmCron = await _chunkCYNQPKA4cjs.prepareFarmCronForNitro.call(void 0, config);
13574
+ const farmWorkflows = await _chunkGBESKA76cjs.prepareFarmWorkflowsForNitro.call(void 0, config);
13575
+ const farmCron = await _chunk5ZHC6QGDcjs.prepareFarmCronForNitro.call(void 0, config);
13373
13576
  const [
13374
13577
  { ssg: ssgPages },
13375
13578
  middlewareRoutes,
@@ -13399,7 +13602,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13399
13602
  const edgeGuardedPrerenderRoutes = [];
13400
13603
  const addPrerenderRoute = (pathname) => {
13401
13604
  prerenderRoutes.push(pathname);
13402
- if (_chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, edgeMiddlewareRoutes, pathname)) {
13605
+ if (_chunkUWOCYINYcjs.appMiddlewareMayHandlePath.call(void 0, edgeMiddlewareRoutes, pathname)) {
13403
13606
  edgeGuardedPrerenderRoutes.push(pathname);
13404
13607
  }
13405
13608
  };
@@ -13441,29 +13644,29 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13441
13644
  addPrerenderRoute(pathname);
13442
13645
  }
13443
13646
  for (const skipped of skippedPrerenderRoutes) {
13444
- _chunkGC5ROI3Acjs.logger.info(`\u21AA Keeping SSG route ${skipped.pathname} server-handled (${skipped.reason})`);
13647
+ _chunk7U4XF76Rcjs.logger.info(`\u21AA Keeping SSG route ${skipped.pathname} server-handled (${skipped.reason})`);
13445
13648
  }
13446
13649
  if (farmWorkflows.workflows.length > 0) {
13447
- _chunkGC5ROI3Acjs.logger.info(`\u23F1\uFE0F Found ${farmWorkflows.workflows.length} Farm workflow task(s)`);
13650
+ _chunk7U4XF76Rcjs.logger.info(`\u23F1\uFE0F Found ${farmWorkflows.workflows.length} Farm workflow task(s)`);
13448
13651
  }
13449
13652
  if (farmCron.jobs.length > 0 && farmCron.provider === "farmjs") {
13450
- _chunkGC5ROI3Acjs.logger.info(
13653
+ _chunk7U4XF76Rcjs.logger.info(
13451
13654
  `\u23F1\uFE0F ${farmCron.jobs.length} Farm cron job(s) for Infra; run farm cron sync after deployment`
13452
13655
  );
13453
13656
  } else if (farmCron.jobs.length > 0) {
13454
- _chunkGC5ROI3Acjs.logger.info(`\u23F1\uFE0F Configured ${farmCron.jobs.length} Farm cron route(s)`);
13657
+ _chunk7U4XF76Rcjs.logger.info(`\u23F1\uFE0F Configured ${farmCron.jobs.length} Farm cron route(s)`);
13455
13658
  }
13456
13659
  if (preset === "cloudflare-pages" && farmCron.jobs.length > 0 && farmCron.provider === "host") {
13457
- _chunkGC5ROI3Acjs.logger.warn(
13660
+ _chunk7U4XF76Rcjs.logger.warn(
13458
13661
  "Cloudflare Pages does not install Cron Triggers. Use the cloudflare-module preset or an external scheduler with .farm/cron-manifest.json."
13459
13662
  );
13460
13663
  }
13461
- const portableScheduledTasks = _chunkCYNQPKA4cjs.mergeScheduledTasks.call(void 0,
13664
+ const portableScheduledTasks = _chunk5ZHC6QGDcjs.mergeScheduledTasks.call(void 0,
13462
13665
  farmWorkflows.scheduledTasks,
13463
13666
  farmCron.scheduledTasks
13464
13667
  );
13465
- const scheduledTasks = preset.startsWith("cloudflare") ? _chunkCYNQPKA4cjs.toFarmCronCloudflareScheduledTasks.call(void 0, portableScheduledTasks) : portableScheduledTasks;
13466
- const cloudflareCronConfig = farmCron.provider === "host" ? _chunkCYNQPKA4cjs.createFarmCronCloudflareConfig.call(void 0, farmCron.jobs) : void 0;
13668
+ const scheduledTasks = preset.startsWith("cloudflare") ? _chunk5ZHC6QGDcjs.toFarmCronCloudflareScheduledTasks.call(void 0, portableScheduledTasks) : portableScheduledTasks;
13669
+ const cloudflareCronConfig = farmCron.provider === "host" ? _chunk5ZHC6QGDcjs.createFarmCronCloudflareConfig.call(void 0, farmCron.jobs) : void 0;
13467
13670
  const [
13468
13671
  clientCssHref,
13469
13672
  clientJsSrc,
@@ -13916,7 +14119,7 @@ function toFarmNodeResponse(request, response) {
13916
14119
  } : {},
13917
14120
  // Use serverHandlers to define our workflow handler first, then the catch-all handler.
13918
14121
  handlers: [
13919
- ...farmCloudflareEnvPath ? [{ route: "/**", middleware: true, handler: _chunkGC5ROI3Acjs.toPosixPath.call(void 0, farmCloudflareEnvPath) }] : [],
14122
+ ...farmCloudflareEnvPath ? [{ route: "/**", middleware: true, handler: _chunk7U4XF76Rcjs.toPosixPath.call(void 0, farmCloudflareEnvPath) }] : [],
13920
14123
  ...farmWorkflows.handlerPath ? [
13921
14124
  {
13922
14125
  route: `${config.workflows.route}/**`,
@@ -13925,7 +14128,7 @@ function toFarmNodeResponse(request, response) {
13925
14128
  ] : [],
13926
14129
  {
13927
14130
  route: "/**",
13928
- handler: _chunkGC5ROI3Acjs.toPosixPath.call(void 0, nitroEntryPath)
14131
+ handler: _chunk7U4XF76Rcjs.toPosixPath.call(void 0, nitroEntryPath)
13929
14132
  }
13930
14133
  ],
13931
14134
  routeRules: {
@@ -14034,7 +14237,7 @@ function toFarmNodeResponse(request, response) {
14034
14237
  const configuredRule = configuredNitroRouteRules[route.route];
14035
14238
  if (configuredRule) nitroInstance.options.routeRules[route.route] = configuredRule;
14036
14239
  else delete nitroInstance.options.routeRules[route.route];
14037
- _chunkGC5ROI3Acjs.logger.info(`\u21AA Keeping SSG route ${route.route} server-handled (it does not render HTML)`);
14240
+ _chunk7U4XF76Rcjs.logger.info(`\u21AA Keeping SSG route ${route.route} server-handled (it does not render HTML)`);
14038
14241
  });
14039
14242
  nitroInstance.hooks.hook("prerender:done", () => {
14040
14243
  if (skippedNonHtmlPrerenderRoute) nitroInstance.routing.sync();
@@ -14042,7 +14245,7 @@ function toFarmNodeResponse(request, response) {
14042
14245
  if (_optionalChain([config, 'access', _333 => _333.md, 'optionalAccess', _334 => _334.enabled])) {
14043
14246
  nitroInstance.hooks.hook("prerender:generate", (route) => {
14044
14247
  if (!route.contents || !_optionalChain([route, 'access', _335 => _335.contentType, 'optionalAccess', _336 => _336.toLowerCase, 'call', _337 => _337(), 'access', _338 => _338.includes, 'call', _339 => _339("html")])) return;
14045
- const alternatePath = _chunk2YJ4DHTDcjs.getFarmMarkdownAlternatePath.call(void 0, config.md, route.route, {
14248
+ const alternatePath = _chunk2NOHVIJ3cjs.getFarmMarkdownAlternatePath.call(void 0, config.md, route.route, {
14046
14249
  routePathname: (pathname) => routeManager.toRoutePathname(pathname)
14047
14250
  });
14048
14251
  if (!alternatePath) return;
@@ -14156,14 +14359,14 @@ function toFarmNodeResponse(request, response) {
14156
14359
  });
14157
14360
  }
14158
14361
  if (prerenderRoutes.length > 0) {
14159
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
14160
- const previousPrerender = process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV];
14161
- process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV] = "1";
14362
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
14363
+ const previousPrerender = process.env[_chunkANZLZNNXcjs.FARM_PRERENDER_ENV];
14364
+ process.env[_chunkANZLZNNXcjs.FARM_PRERENDER_ENV] = "1";
14162
14365
  try {
14163
14366
  await nitroBuilder.prerender(nitroInstance);
14164
14367
  } finally {
14165
- if (previousPrerender === void 0) delete process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV];
14166
- else process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV] = previousPrerender;
14368
+ if (previousPrerender === void 0) delete process.env[_chunkANZLZNNXcjs.FARM_PRERENDER_ENV];
14369
+ else process.env[_chunkANZLZNNXcjs.FARM_PRERENDER_ENV] = previousPrerender;
14167
14370
  }
14168
14371
  }
14169
14372
  const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
@@ -14215,10 +14418,10 @@ function toFarmNodeResponse(request, response) {
14215
14418
  if (failedCopy) throw failedCopy.reason;
14216
14419
  if (canReusePrebuiltSSR) {
14217
14420
  await registerPrebuiltSSRPackageImport(_path2.default.join(outputDir, "server"), ssrEntryFile, fs5);
14218
- _chunkGC5ROI3Acjs.logger.info("\u26A1 Reused Farm's prebuilt SSR bundle for the Node output");
14421
+ _chunk7U4XF76Rcjs.logger.info("\u26A1 Reused Farm's prebuilt SSR bundle for the Node output");
14219
14422
  }
14220
14423
  if (useRolldownBuilder) {
14221
- _chunkGC5ROI3Acjs.logger.info("\u26A1 Built the Node adapter with Rolldown");
14424
+ _chunk7U4XF76Rcjs.logger.info("\u26A1 Built the Node adapter with Rolldown");
14222
14425
  }
14223
14426
  if (preset === "node-server" && !desktopServerEntry) {
14224
14427
  await installFarmCompileCacheLauncher(_path2.default.join(outputDir, "server"), fs5);
@@ -14251,7 +14454,7 @@ function toFarmNodeResponse(request, response) {
14251
14454
  prerenderRoutes.map(toPrerenderPublicPath)
14252
14455
  );
14253
14456
  }
14254
- _chunkGC5ROI3Acjs.logger.success(`\u2705 Nitro build completed with preset: ${preset}`);
14457
+ _chunk7U4XF76Rcjs.logger.success(`\u2705 Nitro build completed with preset: ${preset}`);
14255
14458
  }
14256
14459
  function resolveFarmNitroOutputConfig(preset, outputDir) {
14257
14460
  const isVercel = preset === "vercel";
@@ -14380,7 +14583,7 @@ async function postProcessVercelOutput(root, outputDir, fs5, config, farmWorkflo
14380
14583
  config.basePath
14381
14584
  );
14382
14585
  const edgeMiddlewareRoutes = edgeMiddleware.middlewareRoutes.filter(
14383
- (route) => edgeMiddleware.guardedPages.some((pathname) => _chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, [route], pathname))
14586
+ (route) => edgeMiddleware.guardedPages.some((pathname) => _chunkUWOCYINYcjs.appMiddlewareMayHandlePath.call(void 0, [route], pathname))
14384
14587
  );
14385
14588
  if (edgeMiddlewareRoutes.length > 0) {
14386
14589
  await writeFarmVercelEdgeMiddlewareFunction({
@@ -14399,17 +14602,17 @@ async function postProcessVercelOutput(root, outputDir, fs5, config, farmWorkflo
14399
14602
  middlewareRoutes: edgeMiddlewareRoutes.length > 0 ? createFarmVercelEdgeMiddlewareRoutes(edgeMiddleware.guardedPages, config.basePath) : [],
14400
14603
  canonicalSlashRoutes: createFarmVercelCanonicalSlashRoutes(prerenderedPages)
14401
14604
  });
14402
- const vercelConfigWithWorkflowCrons = _chunkQUEYL2WMcjs.applyFarmWorkflowVercelCrons.call(void 0,
14605
+ const vercelConfigWithWorkflowCrons = _chunkGBESKA76cjs.applyFarmWorkflowVercelCrons.call(void 0,
14403
14606
  vercelConfig,
14404
14607
  farmWorkflows.workflows
14405
14608
  );
14406
- const vercelConfigWithCrons = _chunkCYNQPKA4cjs.applyFarmCronVercelCrons.call(void 0, vercelConfigWithWorkflowCrons, cronJobs);
14609
+ const vercelConfigWithCrons = _chunk5ZHC6QGDcjs.applyFarmCronVercelCrons.call(void 0, vercelConfigWithWorkflowCrons, cronJobs);
14407
14610
  await fs5.writeFile(configPath, JSON.stringify(vercelConfigWithCrons, null, 2));
14408
- _chunkGC5ROI3Acjs.logger.info("\u2705 Post-processed Vercel output for Build Output API v3");
14611
+ _chunk7U4XF76Rcjs.logger.info("\u2705 Post-processed Vercel output for Build Output API v3");
14409
14612
  }
14410
14613
  async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs5) {
14411
14614
  if (!_optionalChain([config, 'access', _349 => _349.docs, 'optionalAccess', _350 => _350.enabled])) return;
14412
- const [mainRoot, ...extraRoots] = _chunk6D3CJFNUcjs.getFarmDocsRoots.call(void 0, config.docs);
14615
+ const [mainRoot, ...extraRoots] = _chunkHR5GU4UUcjs.getFarmDocsRoots.call(void 0, config.docs);
14413
14616
  await copyFarmDocsRootContent(
14414
14617
  mainRoot,
14415
14618
  root,
@@ -14430,12 +14633,12 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs5) {
14430
14633
  async function copyFarmDocsRootContent(docs, root, srcDir, bundledContentDir, fs5) {
14431
14634
  const docsContentDir = resolveBuildDocsContentDir(docs, root, srcDir);
14432
14635
  if (!docsContentDir) return;
14433
- const lastModifiedManifest = _chunk6D3CJFNUcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
14636
+ const lastModifiedManifest = _chunkHR5GU4UUcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
14434
14637
  fallback: "now"
14435
14638
  });
14436
14639
  const undatedPages = _nullishCoalesce(_optionalChain([lastModifiedManifest, 'access', _351 => _351.unknown, 'optionalAccess', _352 => _352.length]), () => ( 0));
14437
14640
  if (undatedPages > 0) {
14438
- _chunkGC5ROI3Acjs.logger.warn(
14641
+ _chunk7U4XF76Rcjs.logger.warn(
14439
14642
  `${undatedPages} docs page(s) were last changed before this shallow clone's Git history, so they show no "Last updated" date. Build from a full clone (git fetch --unshallow) or set lastModified in the page's frontmatter.`
14440
14643
  );
14441
14644
  }
@@ -14447,11 +14650,11 @@ async function copyFarmDocsRootContent(docs, root, srcDir, bundledContentDir, fs
14447
14650
  dereference: true
14448
14651
  });
14449
14652
  await fs5.writeFile(
14450
- _path2.default.join(bundledContentDir, _chunk6D3CJFNUcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
14653
+ _path2.default.join(bundledContentDir, _chunkHR5GU4UUcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
14451
14654
  `${JSON.stringify(lastModifiedManifest, null, 2)}
14452
14655
  `
14453
14656
  );
14454
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4DA} Bundled docs content for Vercel: ${_path2.default.relative(root, docsContentDir)}`);
14657
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4DA} Bundled docs content for Vercel: ${_path2.default.relative(root, docsContentDir)}`);
14455
14658
  }
14456
14659
  function resolveServerFunctionPlatform(preset) {
14457
14660
  return preset === "vercel" || preset === "netlify" ? { os: "linux", cpu: "x64", libc: "glibc" } : null;
@@ -14518,7 +14721,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
14518
14721
  try {
14519
14722
  await copyPackage("sharp", sharpRequire);
14520
14723
  if (!copiedPackages.has("sharp")) {
14521
- throw new Error(`Farm image optimization requires sharp. ${_chunkSIYELCIXcjs.SHARP_INSTALL_HINT}`);
14724
+ throw new Error(`Farm image optimization requires sharp. ${_chunkX4TSMQWFcjs.SHARP_INSTALL_HINT}`);
14522
14725
  }
14523
14726
  } catch (error) {
14524
14727
  await fs5.rm(stageDir, { recursive: true, force: true });
@@ -14545,7 +14748,7 @@ async function installStagedSharpRuntime(staged, nitroFuncDir, fs5) {
14545
14748
  } finally {
14546
14749
  await fs5.rm(staged.stageDir, { recursive: true, force: true });
14547
14750
  }
14548
- _chunkGC5ROI3Acjs.logger.info(
14751
+ _chunk7U4XF76Rcjs.logger.info(
14549
14752
  `\u{1F5BC}\uFE0F Bundled Sharp image runtime (${Object.keys(staged.dependencies).length} packages)`
14550
14753
  );
14551
14754
  }
@@ -14589,7 +14792,7 @@ async function mergeStagedDirectory(sourceDir, targetDir, fs5) {
14589
14792
  function assertMetadataImageRuntimeInstalled(root, metadataImageRoutes) {
14590
14793
  const generated = metadataImageRoutes.find((image) => image.sourceType === "module");
14591
14794
  if (!generated || resolveMetadataImageRuntimePackageJson(root)) return;
14592
- const file = generated.modulePath ? _chunkGC5ROI3Acjs.toPosixPath.call(void 0, _path2.default.relative(root, generated.modulePath)) : "";
14795
+ const file = generated.modulePath ? _chunk7U4XF76Rcjs.toPosixPath.call(void 0, _path2.default.relative(root, generated.modulePath)) : "";
14593
14796
  throw new Error(
14594
14797
  `${file || "A generated metadata image"} renders with @vercel/og, which is not installed. ${_chunkKORZ6PREcjs.VERCEL_OG_INSTALL_HINT}`
14595
14798
  );
@@ -14623,7 +14826,7 @@ async function copyMetadataImageRuntime(root, nitroFuncDir, fs5) {
14623
14826
  "@vercel/og": String(packageJson.version || "0.11.1")
14624
14827
  };
14625
14828
  await writeNitroOutputPackage(nitroFuncDir, functionPackage, fs5);
14626
- _chunkGC5ROI3Acjs.logger.info("\u{1F5BC}\uFE0F Bundled generated metadata image runtime");
14829
+ _chunk7U4XF76Rcjs.logger.info("\u{1F5BC}\uFE0F Bundled generated metadata image runtime");
14627
14830
  }
14628
14831
  async function readNitroOutputPackage(outputDir, fs5) {
14629
14832
  const packagePath = _path2.default.join(outputDir, "package.json");
@@ -14751,7 +14954,7 @@ async function createFarmProjectModuleSsrEnvironment() {
14751
14954
  // src/build/index.ts
14752
14955
  async function build(config, options = {}) {
14753
14956
  return _chunkNG2EZ6QScjs.withProductionNodeEnv.call(void 0,
14754
- () => _chunkPMKUTZGRcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
14957
+ () => _chunkZVSQN7NCcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
14755
14958
  );
14756
14959
  }
14757
14960
  function createBuildTargetBaseline(config) {
@@ -14762,7 +14965,7 @@ function createBuildTargetBaseline(config) {
14762
14965
  preset,
14763
14966
  distDir,
14764
14967
  outputDir,
14765
- outputWasDerived: outputDir === _chunkYROK6CJCcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
14968
+ outputWasDerived: outputDir === _chunkLVGB5PYKcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
14766
14969
  };
14767
14970
  }
14768
14971
  function resolveBuildTargets(config, options, baseline) {
@@ -14771,8 +14974,8 @@ function resolveBuildTargets(config, options, baseline) {
14771
14974
  const distDir = config.distDir || ".farm";
14772
14975
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
14773
14976
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
14774
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkYROK6CJCcjs.getDeployTargetForPreset.call(void 0, preset);
14775
- const outputDir = shouldRefreshDerivedOutput ? _chunkYROK6CJCcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
14977
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkLVGB5PYKcjs.getDeployTargetForPreset.call(void 0, preset);
14978
+ const outputDir = shouldRefreshDerivedOutput ? _chunkLVGB5PYKcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
14776
14979
  return {
14777
14980
  root,
14778
14981
  preset,
@@ -14780,7 +14983,7 @@ function resolveBuildTargets(config, options, baseline) {
14780
14983
  distDir,
14781
14984
  deployTarget,
14782
14985
  outputDir,
14783
- deployOutputDir: _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
14986
+ deployOutputDir: _chunkLVGB5PYKcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
14784
14987
  };
14785
14988
  }
14786
14989
  async function buildWithProductionNodeEnv(inputConfig, options) {
@@ -14788,7 +14991,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14788
14991
  const targetBaseline = createBuildTargetBaseline(config);
14789
14992
  let targets;
14790
14993
  const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkMF3IA2AWcjs.loadFarmProductionVite.call(void 0, ))))]);
14791
- const pluginManager = new (0, _chunkPC5OZ4YRcjs.PluginManager)({
14994
+ const pluginManager = new (0, _chunkTCMRLW3Kcjs.PluginManager)({
14792
14995
  config,
14793
14996
  isDev: false,
14794
14997
  isProd: true
@@ -14817,7 +15020,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14817
15020
  };
14818
15021
  config = {
14819
15022
  ...config,
14820
- images: _chunkSIYELCIXcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
15023
+ images: _chunkX4TSMQWFcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
14821
15024
  root: targets.root,
14822
15025
  preset: targets.preset
14823
15026
  })
@@ -14825,8 +15028,8 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14825
15028
  if (_optionalChain([config, 'access', _353 => _353.docs, 'optionalAccess', _354 => _354.enabled])) await _chunkNDOE76QCcjs.loadFarmDocsEngine.call(void 0, );
14826
15029
  pluginManager.updateContext({ config });
14827
15030
  const { root, preset, srcDir, distDir, deployOutputDir } = targets;
14828
- _chunkPMKUTZGRcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkPMKUTZGRcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
14829
- _chunkGC5ROI3Acjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
15031
+ _chunkZVSQN7NCcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkZVSQN7NCcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
15032
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
14830
15033
  await pluginManager.setupPlugins();
14831
15034
  await pluginManager.runHookParallel("beforeBundle", {
14832
15035
  root,
@@ -14835,7 +15038,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14835
15038
  distDir,
14836
15039
  outputDir: deployOutputDir
14837
15040
  });
14838
- _chunkGC5ROI3Acjs.logger.info("\u{1F50D} Discovering routes and API endpoints...");
15041
+ _chunk7U4XF76Rcjs.logger.info("\u{1F50D} Discovering routes and API endpoints...");
14839
15042
  const productionViteResult = productionViteResultPromise ? (await productionViteResultPromise)[0] : void 0;
14840
15043
  if (_optionalChain([productionViteResult, 'optionalAccess', _355 => _355.status]) === "rejected") throw productionViteResult.reason;
14841
15044
  const productionVite = _optionalChain([productionViteResult, 'optionalAccess', _356 => _356.value]);
@@ -14846,12 +15049,12 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14846
15049
  root,
14847
15050
  rendererBuild.signal
14848
15051
  );
14849
- const farmApp = _chunkSIYELCIXcjs.createFarmApp.call(void 0, config, projectModuleServer);
15052
+ const farmApp = _chunkX4TSMQWFcjs.createFarmApp.call(void 0, config, projectModuleServer);
14850
15053
  if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
14851
15054
  await farmApp.initialize();
14852
15055
  const routeManager = farmApp.getRouteManager();
14853
15056
  const serverRenderer = farmApp.getServerRenderer();
14854
- const typeArtifacts = _chunkGC2BSXQScjs.generateFarmTypeArtifacts.call(void 0, {
15057
+ const typeArtifacts = _chunkSDICLSQUcjs.generateFarmTypeArtifacts.call(void 0, {
14855
15058
  root,
14856
15059
  srcDir,
14857
15060
  layers: config.layers,
@@ -14859,16 +15062,16 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14859
15062
  plugins: config.plugins,
14860
15063
  extraRoutes: [
14861
15064
  ..._optionalChain([config, 'access', _357 => _357.openapi, 'optionalAccess', _358 => _358.enabled]) && config.openapi.route ? [config.openapi.route] : [],
14862
- ..._chunk6D3CJFNUcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
15065
+ ..._chunkHR5GU4UUcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
14863
15066
  ],
14864
15067
  suppressLintOnLink: config.suppressLintOnLink,
14865
15068
  componentExtensions: config.renderer.componentExtensions,
14866
15069
  i18nConfig: config.i18n
14867
15070
  }).catch((error) => {
14868
15071
  const message = error instanceof Error ? error.message : String(error);
14869
- _chunkGC5ROI3Acjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
15072
+ _chunk7U4XF76Rcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
14870
15073
  });
14871
- const apiRouteManager = new (0, _chunkHFJLMALCcjs.APIRouteManager)(
15074
+ const apiRouteManager = new (0, _chunkMQOHYV6Lcjs.APIRouteManager)(
14872
15075
  _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config),
14873
15076
  projectModuleServer,
14874
15077
  {
@@ -14894,11 +15097,11 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14894
15097
  });
14895
15098
  } else {
14896
15099
  const { build: legacyViteBuild } = await import("vite");
14897
- _chunkGC5ROI3Acjs.logger.info("\u{1F4E6} Building client bundle...");
15100
+ _chunk7U4XF76Rcjs.logger.info("\u{1F4E6} Building client bundle...");
14898
15101
  await buildClient2(legacyViteBuild, config, root, srcDir, _path2.default.join(root, distDir, "client"));
14899
- _chunkGC5ROI3Acjs.logger.info("\u{1F4E6} Building SSR bundle...");
15102
+ _chunk7U4XF76Rcjs.logger.info("\u{1F4E6} Building SSR bundle...");
14900
15103
  await buildSSR(legacyViteBuild, config, root, srcDir, _path2.default.join(root, distDir, "server"));
14901
- _chunkGC5ROI3Acjs.logger.info(`\u{1F680} Building server with Nitro (preset: ${preset})...`);
15104
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F680} Building server with Nitro (preset: ${preset})...`);
14902
15105
  await buildNitro(
14903
15106
  config,
14904
15107
  routeManager,
@@ -14919,8 +15122,8 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14919
15122
  outputDir: deployOutputDir,
14920
15123
  success: true
14921
15124
  });
14922
- _chunkGC5ROI3Acjs.logger.success(`\u2705 Build completed successfully! (preset: ${preset})`);
14923
- _chunkGC5ROI3Acjs.logger.info(`\u{1F4C1} Output directory: ${deployOutputDir}`);
15125
+ _chunk7U4XF76Rcjs.logger.success(`\u2705 Build completed successfully! (preset: ${preset})`);
15126
+ _chunk7U4XF76Rcjs.logger.info(`\u{1F4C1} Output directory: ${deployOutputDir}`);
14924
15127
  } catch (error) {
14925
15128
  const { root, preset, distDir, deployOutputDir } = _nullishCoalesce(targets, () => ( resolveBuildTargets(config, options, targetBaseline)));
14926
15129
  await pluginManager.runHookParallel("onError", {
@@ -14939,7 +15142,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14939
15142
  outputDir: deployOutputDir,
14940
15143
  success: false
14941
15144
  });
14942
- _chunkGC5ROI3Acjs.logger.error(`\u274C Build failed: ${error}`);
15145
+ _chunk7U4XF76Rcjs.logger.error(`\u274C Build failed: ${error}`);
14943
15146
  throw error;
14944
15147
  } finally {
14945
15148
  try {
@@ -14955,7 +15158,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14955
15158
  ssr: true,
14956
15159
  buildLifetime
14957
15160
  });
14958
- const viteConfig = _chunkSIYELCIXcjs.mergeFarmViteConfig.call(void 0,
15161
+ const viteConfig = _chunkX4TSMQWFcjs.mergeFarmViteConfig.call(void 0,
14959
15162
  {
14960
15163
  root,
14961
15164
  appType: "custom",
@@ -14967,12 +15170,12 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14967
15170
  },
14968
15171
  plugins: [
14969
15172
  ...rendererVitePlugins,
14970
- _chunkSIYELCIXcjs.farmFontImportsPlugin.call(void 0, {
15173
+ _chunkX4TSMQWFcjs.farmFontImportsPlugin.call(void 0, {
14971
15174
  root,
14972
15175
  basePath: config.basePath,
14973
15176
  publicDir: config.publicDir
14974
15177
  }),
14975
- _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
15178
+ _chunkZVSQN7NCcjs.farmEnvironmentFunctionsPlugin.call(void 0, { renderer: config.renderer }),
14976
15179
  // Route modules load here at build time (rendering config, prerendering): `server-only`
14977
15180
  // resolves as it does in the server build. Module-entry packages load pre-bundled, as in
14978
15181
  // `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
@@ -14987,7 +15190,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14987
15190
  hmr: false
14988
15191
  },
14989
15192
  resolve: {
14990
- alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
15193
+ alias: _chunkX4TSMQWFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
14991
15194
  dedupe: [...config.renderer.dedupe || []]
14992
15195
  },
14993
15196
  optimizeDeps: {
@@ -15042,7 +15245,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15042
15245
  farmPlugin,
15043
15246
  farmServerOnlyEntriesPlugin
15044
15247
  } = await import("./vite.cjs");
15045
- const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
15248
+ const { PluginManager: PluginManager2 } = await import("./plugin-LN3JBZRR.cjs");
15046
15249
  const pluginManager = new PluginManager2({
15047
15250
  config,
15048
15251
  isDev: false,
@@ -15063,14 +15266,14 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15063
15266
  farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
15064
15267
  farmIslandContainersPlugin(config),
15065
15268
  farmPlugin(config, pluginManager),
15066
- _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15269
+ _chunkZVSQN7NCcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15067
15270
  ],
15068
15271
  mode: "production"
15069
15272
  });
15070
15273
  }
15071
15274
  async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15072
15275
  const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.cjs");
15073
- const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
15276
+ const { PluginManager: PluginManager2 } = await import("./plugin-LN3JBZRR.cjs");
15074
15277
  const pluginManager = new PluginManager2({
15075
15278
  config,
15076
15279
  isDev: false,
@@ -15097,7 +15300,7 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15097
15300
  farmI18nClientBridgePlugin(),
15098
15301
  farmIslandContainersPlugin(config),
15099
15302
  farmPlugin(config, pluginManager),
15100
- _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15303
+ _chunkZVSQN7NCcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15101
15304
  ],
15102
15305
  mode: "production"
15103
15306
  });
@@ -15112,7 +15315,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
15112
15315
  }
15113
15316
  async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
15114
15317
  const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
15115
- import("./nitro-HKMVYIXY.cjs"),
15318
+ import("./nitro-6UOJXJZ6.cjs"),
15116
15319
  import("nitro/builder")
15117
15320
  ]);
15118
15321
  let nitroConfig = await createNitroConfig(
@@ -15125,7 +15328,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15125
15328
  if (pluginManager) {
15126
15329
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
15127
15330
  }
15128
- const outputDir = _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15331
+ const outputDir = _chunkLVGB5PYKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15129
15332
  const serverOutputDir = _path2.default.join(outputDir, "server");
15130
15333
  const publicOutputDir = _path2.default.join(outputDir, "public");
15131
15334
  const { mkdir, cp } = await import("fs/promises");
@@ -15135,7 +15338,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15135
15338
  try {
15136
15339
  await mkdir(publicOutputDir, { recursive: true });
15137
15340
  await cp(clientDir, publicOutputDir, { recursive: true });
15138
- _chunkGC5ROI3Acjs.logger.info("\u{1F4E6} Copied client assets to public directory");
15341
+ _chunk7U4XF76Rcjs.logger.info("\u{1F4E6} Copied client assets to public directory");
15139
15342
  const manifestPath = _path2.default.join(publicOutputDir, "farm-client-manifest.json");
15140
15343
  const assetsDir = _path2.default.join(publicOutputDir, "assets");
15141
15344
  const manifestExists = await import("fs/promises").then(
@@ -15145,12 +15348,12 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15145
15348
  (fs5) => fs5.access(assetsDir).then(() => true).catch(() => false)
15146
15349
  );
15147
15350
  if (manifestExists && assetsExist) {
15148
- _chunkGC5ROI3Acjs.logger.info("\u2705 Verified client assets are present");
15351
+ _chunk7U4XF76Rcjs.logger.info("\u2705 Verified client assets are present");
15149
15352
  } else {
15150
- _chunkGC5ROI3Acjs.logger.warn("\u26A0\uFE0F Some client assets may be missing");
15353
+ _chunk7U4XF76Rcjs.logger.warn("\u26A0\uFE0F Some client assets may be missing");
15151
15354
  }
15152
15355
  } catch (error) {
15153
- _chunkGC5ROI3Acjs.logger.error(`\u274C Failed to copy client assets: ${error}`);
15356
+ _chunk7U4XF76Rcjs.logger.error(`\u274C Failed to copy client assets: ${error}`);
15154
15357
  throw error;
15155
15358
  }
15156
15359
  const serverDir = _path2.default.join(root, distDir, "server");
@@ -15158,9 +15361,9 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15158
15361
  try {
15159
15362
  await mkdir(nitroServerDir, { recursive: true });
15160
15363
  await cp(serverDir, nitroServerDir, { recursive: true });
15161
- _chunkGC5ROI3Acjs.logger.info("\u{1F4E6} Copied SSR bundles to Nitro server directory");
15364
+ _chunk7U4XF76Rcjs.logger.info("\u{1F4E6} Copied SSR bundles to Nitro server directory");
15162
15365
  } catch (error) {
15163
- _chunkGC5ROI3Acjs.logger.warn(`Could not copy SSR bundles: ${error}`);
15366
+ _chunk7U4XF76Rcjs.logger.warn(`Could not copy SSR bundles: ${error}`);
15164
15367
  }
15165
15368
  const nitro = await createNitro(nitroConfig);
15166
15369
  const registryPath = _path2.default.join(root, distDir, ".nitro", "server", "farm-registry.ts");
@@ -15188,7 +15391,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15188
15391
  farmRegistry.clientManifest = {};
15189
15392
  }
15190
15393
  } catch (error) {
15191
- _chunkGC5ROI3Acjs.logger.warn(`Could not populate registry: ${error}`);
15394
+ _chunk7U4XF76Rcjs.logger.warn(`Could not populate registry: ${error}`);
15192
15395
  }
15193
15396
  await nitroBuild(nitro);
15194
15397
  if (pluginManager) {
@@ -15196,7 +15399,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15196
15399
  root,
15197
15400
  preset,
15198
15401
  distDir,
15199
- outputDir: _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15402
+ outputDir: _chunkLVGB5PYKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15200
15403
  });
15201
15404
  }
15202
15405
  }