loopwind 0.22.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (486) hide show
  1. package/README.md +13 -117
  2. package/dist/cli.js +16 -10
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/add.d.ts.map +1 -1
  5. package/dist/commands/add.js +6 -10
  6. package/dist/commands/add.js.map +1 -1
  7. package/dist/commands/agent.d.ts +8 -0
  8. package/dist/commands/agent.d.ts.map +1 -0
  9. package/dist/commands/agent.js +101 -0
  10. package/dist/commands/agent.js.map +1 -0
  11. package/dist/commands/init.d.ts.map +1 -1
  12. package/dist/commands/init.js +17 -7
  13. package/dist/commands/init.js.map +1 -1
  14. package/dist/commands/render.d.ts.map +1 -1
  15. package/dist/commands/render.js +17 -19
  16. package/dist/commands/render.js.map +1 -1
  17. package/dist/default-templates/AGENTS.md +10 -24
  18. package/dist/lib/config.d.ts +2 -3
  19. package/dist/lib/config.d.ts.map +1 -1
  20. package/dist/lib/config.js +4 -9
  21. package/dist/lib/config.js.map +1 -1
  22. package/dist/lib/constants.d.ts +1 -3
  23. package/dist/lib/constants.d.ts.map +1 -1
  24. package/dist/lib/constants.js +2 -4
  25. package/dist/lib/constants.js.map +1 -1
  26. package/dist/lib/installer.d.ts +2 -0
  27. package/dist/lib/installer.d.ts.map +1 -1
  28. package/dist/lib/installer.js +6 -7
  29. package/dist/lib/installer.js.map +1 -1
  30. package/dist/lib/renderer.d.ts.map +1 -1
  31. package/dist/lib/renderer.js +14 -8
  32. package/dist/lib/renderer.js.map +1 -1
  33. package/dist/lib/resvg-init.d.ts +15 -0
  34. package/dist/lib/resvg-init.d.ts.map +1 -0
  35. package/dist/lib/resvg-init.js +55 -0
  36. package/dist/lib/resvg-init.js.map +1 -0
  37. package/dist/lib/tailwind/colors.d.ts +8 -0
  38. package/dist/lib/tailwind/colors.d.ts.map +1 -0
  39. package/dist/lib/tailwind/colors.js +102 -0
  40. package/dist/lib/tailwind/colors.js.map +1 -0
  41. package/dist/lib/tailwind/index.d.ts +10 -0
  42. package/dist/lib/tailwind/index.d.ts.map +1 -0
  43. package/dist/lib/tailwind/index.js +9 -0
  44. package/dist/lib/tailwind/index.js.map +1 -0
  45. package/dist/lib/tailwind/resolvers.d.ts +28 -0
  46. package/dist/lib/tailwind/resolvers.d.ts.map +1 -0
  47. package/dist/lib/tailwind/resolvers.js +94 -0
  48. package/dist/lib/tailwind/resolvers.js.map +1 -0
  49. package/dist/lib/tailwind/types.d.ts +29 -0
  50. package/dist/lib/tailwind/types.d.ts.map +1 -0
  51. package/dist/lib/tailwind/types.js +8 -0
  52. package/dist/lib/tailwind/types.js.map +1 -0
  53. package/dist/lib/tailwind-config-loader.d.ts +8 -45
  54. package/dist/lib/tailwind-config-loader.d.ts.map +1 -1
  55. package/dist/lib/tailwind-config-loader.js +6 -429
  56. package/dist/lib/tailwind-config-loader.js.map +1 -1
  57. package/dist/lib/tailwind.d.ts +1 -1
  58. package/dist/lib/tailwind.d.ts.map +1 -1
  59. package/dist/lib/tailwind.js +1 -1
  60. package/dist/lib/tailwind.js.map +1 -1
  61. package/dist/lib/utils.d.ts +13 -29
  62. package/dist/lib/utils.d.ts.map +1 -1
  63. package/dist/lib/utils.js +45 -155
  64. package/dist/lib/utils.js.map +1 -1
  65. package/dist/lib/video-renderer.d.ts.map +1 -1
  66. package/dist/lib/video-renderer.js +6 -5
  67. package/dist/lib/video-renderer.js.map +1 -1
  68. package/dist/types/config.d.ts +0 -2
  69. package/dist/types/config.d.ts.map +1 -1
  70. package/dist/types/config.js.map +1 -1
  71. package/package.json +2 -12
  72. package/REGISTRY_SETUP.md +0 -363
  73. package/_dsgn/templates/dashed-stroke-test/template.tsx +0 -73
  74. package/_dsgn/templates/path-follow-test/template.tsx +0 -176
  75. package/_dsgn/templates/path-simple-test/template.tsx +0 -98
  76. package/_dsgn/templates/stroke-dash-test/meta.json +0 -12
  77. package/_dsgn/templates/stroke-dash-test/template.tsx +0 -53
  78. package/dist/default-templates/image/template.d.ts +0 -20
  79. package/dist/default-templates/image/template.d.ts.map +0 -1
  80. package/dist/default-templates/image/template.js +0 -18
  81. package/dist/default-templates/image/template.js.map +0 -1
  82. package/dist/default-templates/image/template.tsx +0 -20
  83. package/dist/default-templates/kitchen-sink/template.tsx +0 -64
  84. package/dist/default-templates/page/template.tsx +0 -37
  85. package/dist/default-templates/video/template.d.ts +0 -26
  86. package/dist/default-templates/video/template.d.ts.map +0 -1
  87. package/dist/default-templates/video/template.js +0 -33
  88. package/dist/default-templates/video/template.js.map +0 -1
  89. package/dist/default-templates/video/template.tsx +0 -37
  90. package/dist/default-templates/website/pages/home.tsx +0 -17
  91. package/dist/default-templates/website/parts/footer.tsx +0 -17
  92. package/dist/default-templates/website/parts/header.tsx +0 -17
  93. package/dist/default-templates/website/template.tsx +0 -17
  94. package/dist/default-templates/website-template/pages/home.tsx +0 -13
  95. package/dist/default-templates/website-template/parts/footer.tsx +0 -15
  96. package/dist/default-templates/website-template/parts/header.tsx +0 -15
  97. package/dist/default-templates/website-template/template.tsx +0 -32
  98. package/dist/lib/encode-worker.d.ts +0 -2
  99. package/dist/lib/encode-worker.d.ts.map +0 -1
  100. package/dist/lib/encode-worker.js +0 -29
  101. package/dist/lib/encode-worker.js.map +0 -1
  102. package/dist/lib/mjpeg-muxer.d.ts +0 -46
  103. package/dist/lib/mjpeg-muxer.d.ts.map +0 -1
  104. package/dist/lib/mjpeg-muxer.js +0 -513
  105. package/dist/lib/mjpeg-muxer.js.map +0 -1
  106. package/dist/lib/tailwind-browser.d.ts +0 -27
  107. package/dist/lib/tailwind-browser.d.ts.map +0 -1
  108. package/dist/lib/tailwind-browser.js +0 -853
  109. package/dist/lib/tailwind-browser.js.map +0 -1
  110. package/dist/lib/video-player.d.ts +0 -25
  111. package/dist/lib/video-player.d.ts.map +0 -1
  112. package/dist/lib/video-player.js +0 -392
  113. package/dist/lib/video-player.js.map +0 -1
  114. package/dist/sdk/compiler.d.ts +0 -94
  115. package/dist/sdk/compiler.d.ts.map +0 -1
  116. package/dist/sdk/compiler.js +0 -122
  117. package/dist/sdk/compiler.js.map +0 -1
  118. package/dist/sdk/index.d.ts +0 -62
  119. package/dist/sdk/index.d.ts.map +0 -1
  120. package/dist/sdk/index.js +0 -141
  121. package/dist/sdk/index.js.map +0 -1
  122. package/dist/sdk/preview.d.ts +0 -65
  123. package/dist/sdk/preview.d.ts.map +0 -1
  124. package/dist/sdk/preview.js +0 -262
  125. package/dist/sdk/preview.js.map +0 -1
  126. package/dist/sdk/template.d.ts +0 -162
  127. package/dist/sdk/template.d.ts.map +0 -1
  128. package/dist/sdk/template.js +0 -231
  129. package/dist/sdk/template.js.map +0 -1
  130. package/examples/code-editor-templates.ts +0 -173
  131. package/examples/nextjs-api/README.md +0 -180
  132. package/examples/nextjs-api/package.json +0 -21
  133. package/examples/nextjs-api/pages/api/intro-video.ts +0 -53
  134. package/examples/nextjs-api/pages/api/og-image.ts +0 -50
  135. package/examples/nextjs-template-import.ts +0 -58
  136. package/examples/sdk-video-preview.tsx +0 -120
  137. package/examples/template-compiler-workflow.ts +0 -251
  138. package/examples/visual-builder-templates.ts +0 -336
  139. package/render-examples-600x400.mjs +0 -161
  140. package/render-spring-variants-fixed.mjs +0 -60
  141. package/render-staggered-text.mjs +0 -56
  142. package/test-font-files.mjs +0 -72
  143. package/test-jsx-support.mjs +0 -146
  144. package/test-sdk-config.mjs +0 -454
  145. package/test-sdk-source-config.mjs +0 -427
  146. package/test-sdk-user-templates.mjs +0 -469
  147. package/test-static-debug.tsx +0 -19
  148. package/test-templates/TESTS.md +0 -63
  149. package/test-templates/config-test.mjs +0 -17
  150. package/test-templates/demo-intro-props.json +0 -4
  151. package/test-templates/run-tests.sh +0 -44
  152. package/test-templates/test-sdk.mjs +0 -139
  153. package/test-video-props.json +0 -3
  154. package/website/.astro/content.db +0 -0
  155. package/website/.astro/integrations/_inox-tools_astro-when/types.d.ts +0 -1
  156. package/website/.astro/integrations/astro_db/db.d.ts +0 -15
  157. package/website/.astro/settings.json +0 -5
  158. package/website/.astro/types.d.ts +0 -2
  159. package/website/DEPLOYMENT.md +0 -143
  160. package/website/OG_IMAGES.md +0 -142
  161. package/website/README.md +0 -158
  162. package/website/astro.config.mjs +0 -46
  163. package/website/dist/.gitkeep +0 -5
  164. package/website/dist/_astro/agents.Yx-L_igG.css +0 -1
  165. package/website/dist/_routes.json +0 -30
  166. package/website/dist/_worker.js/_@astrojs-ssr-adapter.mjs +0 -1033
  167. package/website/dist/_worker.js/_astro-internal_middleware.mjs +0 -40
  168. package/website/dist/_worker.js/chunks/abap_BTmsHiP5.mjs +0 -1
  169. package/website/dist/_worker.js/chunks/actionscript-3_DmBelb1E.mjs +0 -1
  170. package/website/dist/_worker.js/chunks/ada_8-E0ahCN.mjs +0 -1
  171. package/website/dist/_worker.js/chunks/andromeeda_XI-CXx50.mjs +0 -1
  172. package/website/dist/_worker.js/chunks/angular-html_DKGh3gGH.mjs +0 -1
  173. package/website/dist/_worker.js/chunks/angular-ts_-qZGsJoA.mjs +0 -1
  174. package/website/dist/_worker.js/chunks/apache_ijTUt0Ee.mjs +0 -1
  175. package/website/dist/_worker.js/chunks/apex_agu1c6Sh.mjs +0 -1
  176. package/website/dist/_worker.js/chunks/apl_Bj2f7Art.mjs +0 -1
  177. package/website/dist/_worker.js/chunks/applescript_B_vXrOh3.mjs +0 -1
  178. package/website/dist/_worker.js/chunks/ara_DCEQ2rnh.mjs +0 -1
  179. package/website/dist/_worker.js/chunks/asciidoc_CGN_EkYS.mjs +0 -1
  180. package/website/dist/_worker.js/chunks/asm_BBWZgnDp.mjs +0 -1
  181. package/website/dist/_worker.js/chunks/astro/assets-service_j52rQLzU.mjs +0 -721
  182. package/website/dist/_worker.js/chunks/astro/server_Y5_QHO8v.mjs +0 -2401
  183. package/website/dist/_worker.js/chunks/astro-designed-error-pages_BNTLO-TA.mjs +0 -542
  184. package/website/dist/_worker.js/chunks/astro_Dr_hht3h.mjs +0 -1
  185. package/website/dist/_worker.js/chunks/aurora-x_9GHG8nSq.mjs +0 -1
  186. package/website/dist/_worker.js/chunks/awk_DHRvhXot.mjs +0 -1
  187. package/website/dist/_worker.js/chunks/ayu-dark_CcvqmEHE.mjs +0 -1
  188. package/website/dist/_worker.js/chunks/ballerina_C7SdeSZb.mjs +0 -1
  189. package/website/dist/_worker.js/chunks/bat_Dv4A3u45.mjs +0 -1
  190. package/website/dist/_worker.js/chunks/beancount_BfPf9Luv.mjs +0 -1
  191. package/website/dist/_worker.js/chunks/berry_B8rfM3lL.mjs +0 -1
  192. package/website/dist/_worker.js/chunks/bibtex_TcjYgtJM.mjs +0 -1
  193. package/website/dist/_worker.js/chunks/bicep_CrlFWCdN.mjs +0 -1
  194. package/website/dist/_worker.js/chunks/blade_lanKVYID.mjs +0 -1
  195. package/website/dist/_worker.js/chunks/bsl_BhppzXMB.mjs +0 -1
  196. package/website/dist/_worker.js/chunks/c_6FBALJTK.mjs +0 -1
  197. package/website/dist/_worker.js/chunks/cadence_2txU9LVE.mjs +0 -1
  198. package/website/dist/_worker.js/chunks/cairo_BkrFAIlP.mjs +0 -1
  199. package/website/dist/_worker.js/chunks/catppuccin-frappe_CkEqIYhU.mjs +0 -1
  200. package/website/dist/_worker.js/chunks/catppuccin-latte_DG4Gx_-v.mjs +0 -1
  201. package/website/dist/_worker.js/chunks/catppuccin-macchiato_Cwi3vCXf.mjs +0 -1
  202. package/website/dist/_worker.js/chunks/catppuccin-mocha_L9_OPlFX.mjs +0 -1
  203. package/website/dist/_worker.js/chunks/clarity_BEAe4Ulu.mjs +0 -1
  204. package/website/dist/_worker.js/chunks/clojure_VnUX6p2g.mjs +0 -1
  205. package/website/dist/_worker.js/chunks/cmake_0-SGkZEj.mjs +0 -1
  206. package/website/dist/_worker.js/chunks/cobol_92M_KGaE.mjs +0 -1
  207. package/website/dist/_worker.js/chunks/codeowners_CzMwskBv.mjs +0 -1
  208. package/website/dist/_worker.js/chunks/codeql_DWJZNHv1.mjs +0 -1
  209. package/website/dist/_worker.js/chunks/coffee_CQjKU2fh.mjs +0 -1
  210. package/website/dist/_worker.js/chunks/common-lisp_BBLWDpS5.mjs +0 -1
  211. package/website/dist/_worker.js/chunks/coq_hedRFV3D.mjs +0 -1
  212. package/website/dist/_worker.js/chunks/cpp_DlS1i6Zs.mjs +0 -1
  213. package/website/dist/_worker.js/chunks/crystal_D6n65fKV.mjs +0 -1
  214. package/website/dist/_worker.js/chunks/csharp_C6FCVFzc.mjs +0 -1
  215. package/website/dist/_worker.js/chunks/css_C5uJEgmJ.mjs +0 -1
  216. package/website/dist/_worker.js/chunks/csv_CtMYuuJl.mjs +0 -1
  217. package/website/dist/_worker.js/chunks/cue_BsPexqx6.mjs +0 -1
  218. package/website/dist/_worker.js/chunks/cypher_apzf6OBi.mjs +0 -1
  219. package/website/dist/_worker.js/chunks/d_DcvIRcgm.mjs +0 -1
  220. package/website/dist/_worker.js/chunks/dark-plus_C01ONtzj.mjs +0 -1
  221. package/website/dist/_worker.js/chunks/dart_WkzM5WrV.mjs +0 -1
  222. package/website/dist/_worker.js/chunks/dax_DjXAO5V4.mjs +0 -1
  223. package/website/dist/_worker.js/chunks/desktop_C92LCxdc.mjs +0 -1
  224. package/website/dist/_worker.js/chunks/diff_CVwM_9XJ.mjs +0 -1
  225. package/website/dist/_worker.js/chunks/docker_DPzgJf6Z.mjs +0 -1
  226. package/website/dist/_worker.js/chunks/dotenv_D_vgANvA.mjs +0 -1
  227. package/website/dist/_worker.js/chunks/dracula-soft_CLnUBwFm.mjs +0 -1
  228. package/website/dist/_worker.js/chunks/dracula_lBVpb6Lb.mjs +0 -1
  229. package/website/dist/_worker.js/chunks/dream-maker_DTLbzd_J.mjs +0 -1
  230. package/website/dist/_worker.js/chunks/edge_i54JYm3_.mjs +0 -1
  231. package/website/dist/_worker.js/chunks/elixir_BJCIjTu4.mjs +0 -1
  232. package/website/dist/_worker.js/chunks/elm_BbXD39-_.mjs +0 -1
  233. package/website/dist/_worker.js/chunks/emacs-lisp_pxa5cXaN.mjs +0 -1
  234. package/website/dist/_worker.js/chunks/erb_Ccjijeee.mjs +0 -1
  235. package/website/dist/_worker.js/chunks/erlang_B2VM_hi7.mjs +0 -1
  236. package/website/dist/_worker.js/chunks/everforest-dark_BxvIPBim.mjs +0 -1
  237. package/website/dist/_worker.js/chunks/everforest-light_B7VoyaJM.mjs +0 -1
  238. package/website/dist/_worker.js/chunks/fennel_D-uo7X6c.mjs +0 -1
  239. package/website/dist/_worker.js/chunks/fish_BjePoK3m.mjs +0 -1
  240. package/website/dist/_worker.js/chunks/fluent_C8fgkzLX.mjs +0 -1
  241. package/website/dist/_worker.js/chunks/fortran-fixed-form_D1pu5zrc.mjs +0 -1
  242. package/website/dist/_worker.js/chunks/fortran-free-form_CSGOhJD6.mjs +0 -1
  243. package/website/dist/_worker.js/chunks/fsharp_B0xy-A4Y.mjs +0 -1
  244. package/website/dist/_worker.js/chunks/gdresource_CWppjlHq.mjs +0 -1
  245. package/website/dist/_worker.js/chunks/gdscript_eQCHchcS.mjs +0 -1
  246. package/website/dist/_worker.js/chunks/gdshader_C4kxepX7.mjs +0 -1
  247. package/website/dist/_worker.js/chunks/genie_ACtQLcDW.mjs +0 -1
  248. package/website/dist/_worker.js/chunks/gherkin_BFp2uKUd.mjs +0 -1
  249. package/website/dist/_worker.js/chunks/git-commit_CLg9ZwMV.mjs +0 -1
  250. package/website/dist/_worker.js/chunks/git-rebase_DG8A80Nt.mjs +0 -1
  251. package/website/dist/_worker.js/chunks/github-dark-default_BI0EP2Kv.mjs +0 -1
  252. package/website/dist/_worker.js/chunks/github-dark-dimmed_a_NIC0Xb.mjs +0 -1
  253. package/website/dist/_worker.js/chunks/github-dark-high-contrast_jZGqT7hk.mjs +0 -1
  254. package/website/dist/_worker.js/chunks/github-dark_CHCDNd2O.mjs +0 -1
  255. package/website/dist/_worker.js/chunks/github-light-default_DRbOW5RG.mjs +0 -1
  256. package/website/dist/_worker.js/chunks/github-light-high-contrast_tn_kWutM.mjs +0 -1
  257. package/website/dist/_worker.js/chunks/github-light_D9brYzot.mjs +0 -1
  258. package/website/dist/_worker.js/chunks/gleam_Dmhu1oxW.mjs +0 -1
  259. package/website/dist/_worker.js/chunks/glimmer-js_BfZbXy8A.mjs +0 -1
  260. package/website/dist/_worker.js/chunks/glimmer-ts_B9QVICrD.mjs +0 -1
  261. package/website/dist/_worker.js/chunks/glsl_DD2PPwOs.mjs +0 -1
  262. package/website/dist/_worker.js/chunks/gnuplot_D2OYChUX.mjs +0 -1
  263. package/website/dist/_worker.js/chunks/go_DYGFTe3h.mjs +0 -1
  264. package/website/dist/_worker.js/chunks/graphql_B7XsT3nH.mjs +0 -1
  265. package/website/dist/_worker.js/chunks/groovy_BO12Uwkl.mjs +0 -1
  266. package/website/dist/_worker.js/chunks/hack_CB2_ztCP.mjs +0 -1
  267. package/website/dist/_worker.js/chunks/haml_CyfDcDD3.mjs +0 -1
  268. package/website/dist/_worker.js/chunks/handlebars_CfpxpWm2.mjs +0 -1
  269. package/website/dist/_worker.js/chunks/haskell_jUeC5uN5.mjs +0 -1
  270. package/website/dist/_worker.js/chunks/haxe_B6GxP1WB.mjs +0 -1
  271. package/website/dist/_worker.js/chunks/hcl_DwoHV2oh.mjs +0 -1
  272. package/website/dist/_worker.js/chunks/hjson_DV7cJRk4.mjs +0 -1
  273. package/website/dist/_worker.js/chunks/hlsl_BlFCscPI.mjs +0 -1
  274. package/website/dist/_worker.js/chunks/houston_COBFG1Mx.mjs +0 -1
  275. package/website/dist/_worker.js/chunks/html-derivative_C9pJ337h.mjs +0 -1
  276. package/website/dist/_worker.js/chunks/html_D1OkrZS5.mjs +0 -1
  277. package/website/dist/_worker.js/chunks/http_DIGXRqvJ.mjs +0 -1
  278. package/website/dist/_worker.js/chunks/hxml_DEwh9i-c.mjs +0 -1
  279. package/website/dist/_worker.js/chunks/hy_DDoIgW1K.mjs +0 -1
  280. package/website/dist/_worker.js/chunks/imba_B00zbHo4.mjs +0 -1
  281. package/website/dist/_worker.js/chunks/index_C1UTDwYg.mjs +0 -1861
  282. package/website/dist/_worker.js/chunks/ini_D7XQA_p8.mjs +0 -1
  283. package/website/dist/_worker.js/chunks/java_B9wdFd8K.mjs +0 -1
  284. package/website/dist/_worker.js/chunks/javascript_CLsPGOON.mjs +0 -1
  285. package/website/dist/_worker.js/chunks/jinja_jarBCAN1.mjs +0 -1
  286. package/website/dist/_worker.js/chunks/jison_oGg3J708.mjs +0 -1
  287. package/website/dist/_worker.js/chunks/json5_DlZ1Kyaa.mjs +0 -1
  288. package/website/dist/_worker.js/chunks/json_DaYk_FMp.mjs +0 -1
  289. package/website/dist/_worker.js/chunks/jsonc_DlwgfSDs.mjs +0 -1
  290. package/website/dist/_worker.js/chunks/jsonl_BbCCVaZF.mjs +0 -1
  291. package/website/dist/_worker.js/chunks/jsonnet_Dt-G75xe.mjs +0 -1
  292. package/website/dist/_worker.js/chunks/jssm_BtKFTj2A.mjs +0 -1
  293. package/website/dist/_worker.js/chunks/jsx_DDx_xAZ8.mjs +0 -1
  294. package/website/dist/_worker.js/chunks/julia_CK0lv68l.mjs +0 -1
  295. package/website/dist/_worker.js/chunks/kanagawa-dragon_BldAK3Oo.mjs +0 -1
  296. package/website/dist/_worker.js/chunks/kanagawa-lotus_DVM8FX9_.mjs +0 -1
  297. package/website/dist/_worker.js/chunks/kanagawa-wave_Dpih0AKP.mjs +0 -1
  298. package/website/dist/_worker.js/chunks/kotlin_kWneB9V_.mjs +0 -1
  299. package/website/dist/_worker.js/chunks/kusto_BKVATd95.mjs +0 -1
  300. package/website/dist/_worker.js/chunks/laserwave_BqatxsVl.mjs +0 -1
  301. package/website/dist/_worker.js/chunks/latex_LVDcGBbc.mjs +0 -1
  302. package/website/dist/_worker.js/chunks/lean_W7qo-5M2.mjs +0 -1
  303. package/website/dist/_worker.js/chunks/less_DFNwJnBH.mjs +0 -1
  304. package/website/dist/_worker.js/chunks/light-plus_Dp0AoWsO.mjs +0 -1
  305. package/website/dist/_worker.js/chunks/liquid_D24qs0pc.mjs +0 -1
  306. package/website/dist/_worker.js/chunks/log_IPWMXriF.mjs +0 -1
  307. package/website/dist/_worker.js/chunks/logo_C6KaatrQ.mjs +0 -1
  308. package/website/dist/_worker.js/chunks/lua_CwnEf-T7.mjs +0 -1
  309. package/website/dist/_worker.js/chunks/luau_Br3-CXjS.mjs +0 -1
  310. package/website/dist/_worker.js/chunks/make_UBNG-kOo.mjs +0 -1
  311. package/website/dist/_worker.js/chunks/markdown_C7mhJFCm.mjs +0 -1
  312. package/website/dist/_worker.js/chunks/marko_4tchUvI7.mjs +0 -1
  313. package/website/dist/_worker.js/chunks/material-theme-darker_SKtaNEPn.mjs +0 -1
  314. package/website/dist/_worker.js/chunks/material-theme-lighter_zOX_DZCH.mjs +0 -1
  315. package/website/dist/_worker.js/chunks/material-theme-ocean_BN9WbhdC.mjs +0 -1
  316. package/website/dist/_worker.js/chunks/material-theme-palenight_DT_covjH.mjs +0 -1
  317. package/website/dist/_worker.js/chunks/material-theme_6RpeM3kc.mjs +0 -1
  318. package/website/dist/_worker.js/chunks/matlab_DCOXsPKR.mjs +0 -1
  319. package/website/dist/_worker.js/chunks/mdc_B9gb2UFP.mjs +0 -1
  320. package/website/dist/_worker.js/chunks/mdx_DGU7Nu9u.mjs +0 -1
  321. package/website/dist/_worker.js/chunks/mermaid_B69URzsZ.mjs +0 -1
  322. package/website/dist/_worker.js/chunks/min-dark_BgxifOMI.mjs +0 -1
  323. package/website/dist/_worker.js/chunks/min-light_BrPjXxUp.mjs +0 -1
  324. package/website/dist/_worker.js/chunks/mipsasm_9U-4_t7k.mjs +0 -1
  325. package/website/dist/_worker.js/chunks/mojo_B0wt7ug3.mjs +0 -1
  326. package/website/dist/_worker.js/chunks/monokai_B6Pxpoyi.mjs +0 -1
  327. package/website/dist/_worker.js/chunks/move_1eid4CyR.mjs +0 -1
  328. package/website/dist/_worker.js/chunks/narrat_Ds6-p5JZ.mjs +0 -1
  329. package/website/dist/_worker.js/chunks/nextflow_v2N1Qlqa.mjs +0 -1
  330. package/website/dist/_worker.js/chunks/nginx_Bp9Ab2NH.mjs +0 -1
  331. package/website/dist/_worker.js/chunks/night-owl_CdwOw_sc.mjs +0 -1
  332. package/website/dist/_worker.js/chunks/nim_BXGDUe53.mjs +0 -1
  333. package/website/dist/_worker.js/chunks/nix_CUig1nJH.mjs +0 -1
  334. package/website/dist/_worker.js/chunks/noop-middleware_DlWGj5t5.mjs +0 -10
  335. package/website/dist/_worker.js/chunks/nord_SPoG1iae.mjs +0 -1
  336. package/website/dist/_worker.js/chunks/nushell_DJw1Lca8.mjs +0 -1
  337. package/website/dist/_worker.js/chunks/objective-c_Bktzl_CO.mjs +0 -1
  338. package/website/dist/_worker.js/chunks/objective-cpp_CP4DWdDp.mjs +0 -1
  339. package/website/dist/_worker.js/chunks/ocaml_CeEAs7bZ.mjs +0 -1
  340. package/website/dist/_worker.js/chunks/one-dark-pro_-hIwCNMi.mjs +0 -1
  341. package/website/dist/_worker.js/chunks/one-light_DSmYvJ05.mjs +0 -1
  342. package/website/dist/_worker.js/chunks/pascal_C-S_Ms_o.mjs +0 -1
  343. package/website/dist/_worker.js/chunks/perl_CKamvo15.mjs +0 -1
  344. package/website/dist/_worker.js/chunks/php_BlmcX_F3.mjs +0 -1
  345. package/website/dist/_worker.js/chunks/plastic_Ryt8tVoA.mjs +0 -1
  346. package/website/dist/_worker.js/chunks/plsql_Cb3v7cBj.mjs +0 -1
  347. package/website/dist/_worker.js/chunks/po_DZbdNRlo.mjs +0 -1
  348. package/website/dist/_worker.js/chunks/poimandres_bYmE3_5d.mjs +0 -1
  349. package/website/dist/_worker.js/chunks/polar_pJkMGwoW.mjs +0 -1
  350. package/website/dist/_worker.js/chunks/postcss_BAXSOKgk.mjs +0 -1
  351. package/website/dist/_worker.js/chunks/powerquery_oITMGN4x.mjs +0 -1
  352. package/website/dist/_worker.js/chunks/powershell_6306-xIF.mjs +0 -1
  353. package/website/dist/_worker.js/chunks/prisma_DSDxnZGz.mjs +0 -1
  354. package/website/dist/_worker.js/chunks/prolog_CxG7tjZR.mjs +0 -1
  355. package/website/dist/_worker.js/chunks/proto_CS9ByXm1.mjs +0 -1
  356. package/website/dist/_worker.js/chunks/pug_BMtLJo6U.mjs +0 -1
  357. package/website/dist/_worker.js/chunks/puppet_BfeeSzee.mjs +0 -1
  358. package/website/dist/_worker.js/chunks/purescript_BFfueNaH.mjs +0 -1
  359. package/website/dist/_worker.js/chunks/python_Cc4Faapv.mjs +0 -1
  360. package/website/dist/_worker.js/chunks/qml_C1CTJTK8.mjs +0 -1
  361. package/website/dist/_worker.js/chunks/qmldir_nG1KaqKR.mjs +0 -1
  362. package/website/dist/_worker.js/chunks/qss_Cncxk263.mjs +0 -1
  363. package/website/dist/_worker.js/chunks/r_ChR54Ihi.mjs +0 -1
  364. package/website/dist/_worker.js/chunks/racket_BDrhptDs.mjs +0 -1
  365. package/website/dist/_worker.js/chunks/raku_07OUHa0P.mjs +0 -1
  366. package/website/dist/_worker.js/chunks/razor_DIP3INLa.mjs +0 -1
  367. package/website/dist/_worker.js/chunks/red_DOPXfj-6.mjs +0 -1
  368. package/website/dist/_worker.js/chunks/reg_B64SwEDj.mjs +0 -1
  369. package/website/dist/_worker.js/chunks/regexp_ButFGoB5.mjs +0 -1
  370. package/website/dist/_worker.js/chunks/rel_BWJAWqZD.mjs +0 -1
  371. package/website/dist/_worker.js/chunks/riscv_79gXlbsF.mjs +0 -1
  372. package/website/dist/_worker.js/chunks/rose-pine-dawn_DHIjVGd3.mjs +0 -1
  373. package/website/dist/_worker.js/chunks/rose-pine-moon_t86aEbs0.mjs +0 -1
  374. package/website/dist/_worker.js/chunks/rose-pine_BHgrcDCs.mjs +0 -1
  375. package/website/dist/_worker.js/chunks/rst_D3F4Fcpj.mjs +0 -1
  376. package/website/dist/_worker.js/chunks/ruby_Cs7vM9iv.mjs +0 -1
  377. package/website/dist/_worker.js/chunks/rust_DpyRVatH.mjs +0 -1
  378. package/website/dist/_worker.js/chunks/sas_DW45xZXN.mjs +0 -1
  379. package/website/dist/_worker.js/chunks/sass_C6SiMwN_.mjs +0 -1
  380. package/website/dist/_worker.js/chunks/scala_DlZOjNZk.mjs +0 -1
  381. package/website/dist/_worker.js/chunks/scheme_D2ezSJXu.mjs +0 -1
  382. package/website/dist/_worker.js/chunks/scss_DG5Spjqu.mjs +0 -1
  383. package/website/dist/_worker.js/chunks/sdbl_ZCYaj4VN.mjs +0 -1
  384. package/website/dist/_worker.js/chunks/shaderlab_CAcRkg1_.mjs +0 -1
  385. package/website/dist/_worker.js/chunks/shellscript_BWwhkDVh.mjs +0 -1
  386. package/website/dist/_worker.js/chunks/shellsession_BfEA3juK.mjs +0 -1
  387. package/website/dist/_worker.js/chunks/slack-dark_CL3lSpCc.mjs +0 -1
  388. package/website/dist/_worker.js/chunks/slack-ochin_DdZKOQVh.mjs +0 -1
  389. package/website/dist/_worker.js/chunks/smalltalk_DgilzSui.mjs +0 -1
  390. package/website/dist/_worker.js/chunks/snazzy-light_eJU08Pz_.mjs +0 -1
  391. package/website/dist/_worker.js/chunks/solarized-dark_Dg_YQywx.mjs +0 -1
  392. package/website/dist/_worker.js/chunks/solarized-light_BnIsrA6p.mjs +0 -1
  393. package/website/dist/_worker.js/chunks/solidity_DkseH8pQ.mjs +0 -1
  394. package/website/dist/_worker.js/chunks/soy_DU7bOYoG.mjs +0 -1
  395. package/website/dist/_worker.js/chunks/sparql_BuI1DBDH.mjs +0 -1
  396. package/website/dist/_worker.js/chunks/splunk_B8Ha9Pkg.mjs +0 -1
  397. package/website/dist/_worker.js/chunks/sql_BniHwea5.mjs +0 -1
  398. package/website/dist/_worker.js/chunks/ssh-config_CkE1GuVe.mjs +0 -1
  399. package/website/dist/_worker.js/chunks/stata_Dtqpbd_l.mjs +0 -1
  400. package/website/dist/_worker.js/chunks/stylus_CXTtglzO.mjs +0 -1
  401. package/website/dist/_worker.js/chunks/svelte_BjWYcUCN.mjs +0 -1
  402. package/website/dist/_worker.js/chunks/swift_BzHql_rM.mjs +0 -1
  403. package/website/dist/_worker.js/chunks/synthwave-84_DLRNhxNA.mjs +0 -1
  404. package/website/dist/_worker.js/chunks/system-verilog_ChyInPph.mjs +0 -1
  405. package/website/dist/_worker.js/chunks/systemd_Bi9Qa2qD.mjs +0 -1
  406. package/website/dist/_worker.js/chunks/talonscript_B3sH_Y-V.mjs +0 -1
  407. package/website/dist/_worker.js/chunks/tasl_BJ5yipRs.mjs +0 -1
  408. package/website/dist/_worker.js/chunks/tcl_CoJQjNoP.mjs +0 -1
  409. package/website/dist/_worker.js/chunks/templ_CrU7Ffil.mjs +0 -1
  410. package/website/dist/_worker.js/chunks/terraform_DT9JSFpC.mjs +0 -1
  411. package/website/dist/_worker.js/chunks/tex_5PKu2yA0.mjs +0 -1
  412. package/website/dist/_worker.js/chunks/tokyo-night_Buo8OK7-.mjs +0 -1
  413. package/website/dist/_worker.js/chunks/toml_CPuXX3oc.mjs +0 -1
  414. package/website/dist/_worker.js/chunks/ts-tags_D0M_1VSH.mjs +0 -1
  415. package/website/dist/_worker.js/chunks/tsv_CuivVNot.mjs +0 -1
  416. package/website/dist/_worker.js/chunks/tsx_MkuGr8MY.mjs +0 -1
  417. package/website/dist/_worker.js/chunks/turtle_BqgEPK7f.mjs +0 -1
  418. package/website/dist/_worker.js/chunks/twig_r1G9rpYJ.mjs +0 -1
  419. package/website/dist/_worker.js/chunks/typescript_Au5buqzM.mjs +0 -1
  420. package/website/dist/_worker.js/chunks/typespec_47rhBK_z.mjs +0 -1
  421. package/website/dist/_worker.js/chunks/typst_BAtuQLh-.mjs +0 -1
  422. package/website/dist/_worker.js/chunks/v_BIvWImHg.mjs +0 -1
  423. package/website/dist/_worker.js/chunks/vala_DYEacj30.mjs +0 -1
  424. package/website/dist/_worker.js/chunks/vb_CikQuqGJ.mjs +0 -1
  425. package/website/dist/_worker.js/chunks/verilog_BQRENwI-.mjs +0 -1
  426. package/website/dist/_worker.js/chunks/vesper_DA0kvTmj.mjs +0 -1
  427. package/website/dist/_worker.js/chunks/vhdl_DHscJIyg.mjs +0 -1
  428. package/website/dist/_worker.js/chunks/viml_F2pvMwvG.mjs +0 -1
  429. package/website/dist/_worker.js/chunks/vitesse-black_D9tjNzd0.mjs +0 -1
  430. package/website/dist/_worker.js/chunks/vitesse-dark_Bnm5d0hd.mjs +0 -1
  431. package/website/dist/_worker.js/chunks/vitesse-light_CHwbyjNR.mjs +0 -1
  432. package/website/dist/_worker.js/chunks/vue-html_DyYtbbMK.mjs +0 -1
  433. package/website/dist/_worker.js/chunks/vue_DofN6juy.mjs +0 -1
  434. package/website/dist/_worker.js/chunks/vyper_CiR0m-OV.mjs +0 -1
  435. package/website/dist/_worker.js/chunks/wasm_CwIGgRGf.mjs +0 -1
  436. package/website/dist/_worker.js/chunks/wasm_jKWhg0J0.mjs +0 -1
  437. package/website/dist/_worker.js/chunks/wenyan_DKvVZKXW.mjs +0 -1
  438. package/website/dist/_worker.js/chunks/wgsl_BOWZY7yw.mjs +0 -1
  439. package/website/dist/_worker.js/chunks/wikitext_CXDhhHPy.mjs +0 -1
  440. package/website/dist/_worker.js/chunks/wolfram_ChkmGnW0.mjs +0 -1
  441. package/website/dist/_worker.js/chunks/xml_DXH3hHIu.mjs +0 -1
  442. package/website/dist/_worker.js/chunks/xsl_DuP2mFjg.mjs +0 -1
  443. package/website/dist/_worker.js/chunks/yaml_IGiEkTge.mjs +0 -1
  444. package/website/dist/_worker.js/chunks/zenscript_59iXGyNw.mjs +0 -1
  445. package/website/dist/_worker.js/chunks/zig_DKzb0zdT.mjs +0 -1
  446. package/website/dist/_worker.js/index.js +0 -53
  447. package/website/dist/_worker.js/manifest_CT_D-YDe.mjs +0 -98
  448. package/website/dist/_worker.js/pages/_image.astro.mjs +0 -24
  449. package/website/dist/_worker.js/pages/agents.astro.mjs +0 -1
  450. package/website/dist/_worker.js/pages/animation.astro.mjs +0 -1
  451. package/website/dist/_worker.js/pages/api/raw-markdown/_---path_.astro.mjs +0 -44
  452. package/website/dist/_worker.js/pages/config.astro.mjs +0 -1
  453. package/website/dist/_worker.js/pages/fonts.astro.mjs +0 -1
  454. package/website/dist/_worker.js/pages/getting-started.astro.mjs +0 -1
  455. package/website/dist/_worker.js/pages/helpers.astro.mjs +0 -1
  456. package/website/dist/_worker.js/pages/images.astro.mjs +0 -1
  457. package/website/dist/_worker.js/pages/index.astro.mjs +0 -1
  458. package/website/dist/_worker.js/pages/llm.txt.astro.mjs +0 -1
  459. package/website/dist/_worker.js/pages/preview.astro.mjs +0 -1
  460. package/website/dist/_worker.js/pages/sdk.astro.mjs +0 -1
  461. package/website/dist/_worker.js/pages/sitemap.xml.astro.mjs +0 -1
  462. package/website/dist/_worker.js/pages/styling.astro.mjs +0 -1
  463. package/website/dist/_worker.js/pages/templates.astro.mjs +0 -1
  464. package/website/dist/_worker.js/pages/video.astro.mjs +0 -1
  465. package/website/dist/_worker.js/renderers.mjs +0 -57
  466. package/website/dist/agents/index.html +0 -52
  467. package/website/dist/animation/index.html +0 -879
  468. package/website/dist/config/index.html +0 -184
  469. package/website/dist/fonts/index.html +0 -198
  470. package/website/dist/getting-started/index.html +0 -107
  471. package/website/dist/helpers/index.html +0 -164
  472. package/website/dist/images/index.html +0 -335
  473. package/website/dist/index.html +0 -140
  474. package/website/dist/llm.txt +0 -2776
  475. package/website/dist/preview/index.html +0 -111
  476. package/website/dist/robots.txt +0 -40
  477. package/website/dist/sdk/index.html +0 -1076
  478. package/website/dist/sitemap.xml +0 -76
  479. package/website/dist/styling/index.html +0 -366
  480. package/website/dist/templates/index.html +0 -74
  481. package/website/dist/video/index.html +0 -319
  482. package/website/package-lock.json +0 -8089
  483. package/website/package.json +0 -41
  484. package/website/public/.gitkeep +0 -5
  485. package/website/public/robots.txt +0 -40
  486. package/website/templates/og-image.tsx +0 -60
@@ -1,721 +0,0 @@
1
- globalThis.process ??= {}; globalThis.process.env ??= {};
2
- function normalizeLF(code) {
3
- return code.replace(/\r\n|\r(?!\n)|\n/g, "\n");
4
- }
5
-
6
- function codeFrame(src, loc) {
7
- if (!loc || loc.line === void 0 || loc.column === void 0) {
8
- return "";
9
- }
10
- const lines = normalizeLF(src).split("\n").map((ln) => ln.replace(/\t/g, " "));
11
- const visibleLines = [];
12
- for (let n = -2; n <= 2; n++) {
13
- if (lines[loc.line + n]) visibleLines.push(loc.line + n);
14
- }
15
- let gutterWidth = 0;
16
- for (const lineNo of visibleLines) {
17
- let w = `> ${lineNo}`;
18
- if (w.length > gutterWidth) gutterWidth = w.length;
19
- }
20
- let output = "";
21
- for (const lineNo of visibleLines) {
22
- const isFocusedLine = lineNo === loc.line - 1;
23
- output += isFocusedLine ? "> " : " ";
24
- output += `${lineNo + 1} | ${lines[lineNo]}
25
- `;
26
- if (isFocusedLine)
27
- output += `${Array.from({ length: gutterWidth }).join(" ")} | ${Array.from({
28
- length: loc.column
29
- }).join(" ")}^
30
- `;
31
- }
32
- return output;
33
- }
34
-
35
- class AstroError extends Error {
36
- loc;
37
- title;
38
- hint;
39
- frame;
40
- type = "AstroError";
41
- constructor(props, options) {
42
- const { name, title, message, stack, location, hint, frame } = props;
43
- super(message, options);
44
- this.title = title;
45
- this.name = name;
46
- if (message) this.message = message;
47
- this.stack = stack ? stack : this.stack;
48
- this.loc = location;
49
- this.hint = hint;
50
- this.frame = frame;
51
- }
52
- setLocation(location) {
53
- this.loc = location;
54
- }
55
- setName(name) {
56
- this.name = name;
57
- }
58
- setMessage(message) {
59
- this.message = message;
60
- }
61
- setHint(hint) {
62
- this.hint = hint;
63
- }
64
- setFrame(source, location) {
65
- this.frame = codeFrame(source, location);
66
- }
67
- static is(err) {
68
- return err.type === "AstroError";
69
- }
70
- }
71
- class AstroUserError extends Error {
72
- type = "AstroUserError";
73
- /**
74
- * A message that explains to the user how they can fix the error.
75
- */
76
- hint;
77
- name = "AstroUserError";
78
- constructor(message, hint) {
79
- super();
80
- this.message = message;
81
- this.hint = hint;
82
- }
83
- static is(err) {
84
- return err.type === "AstroUserError";
85
- }
86
- }
87
-
88
- const ClientAddressNotAvailable = {
89
- name: "ClientAddressNotAvailable",
90
- title: "`Astro.clientAddress` is not available in current adapter.",
91
- message: (adapterName) => `\`Astro.clientAddress\` is not available in the \`${adapterName}\` adapter. File an issue with the adapter to add support.`
92
- };
93
- const PrerenderClientAddressNotAvailable = {
94
- name: "PrerenderClientAddressNotAvailable",
95
- title: "`Astro.clientAddress` cannot be used inside prerendered routes.",
96
- message: `\`Astro.clientAddress\` cannot be used inside prerendered routes`
97
- };
98
- const StaticClientAddressNotAvailable = {
99
- name: "StaticClientAddressNotAvailable",
100
- title: "`Astro.clientAddress` is not available in static mode.",
101
- message: "`Astro.clientAddress` is only available when using `output: 'server'` or `output: 'hybrid'`. Update your Astro config if you need SSR features.",
102
- hint: "See https://docs.astro.build/en/guides/server-side-rendering/ for more information on how to enable SSR."
103
- };
104
- const NoMatchingStaticPathFound = {
105
- name: "NoMatchingStaticPathFound",
106
- title: "No static path found for requested path.",
107
- message: (pathName) => `A \`getStaticPaths()\` route pattern was matched, but no matching static path was found for requested path \`${pathName}\`.`,
108
- hint: (possibleRoutes) => `Possible dynamic routes being matched: ${possibleRoutes.join(", ")}.`
109
- };
110
- const OnlyResponseCanBeReturned = {
111
- name: "OnlyResponseCanBeReturned",
112
- title: "Invalid type returned by Astro page.",
113
- message: (route, returnedValue) => `Route \`${route ? route : ""}\` returned a \`${returnedValue}\`. Only a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) can be returned from Astro files.`,
114
- hint: "See https://docs.astro.build/en/guides/server-side-rendering/#response for more information."
115
- };
116
- const MissingMediaQueryDirective = {
117
- name: "MissingMediaQueryDirective",
118
- title: "Missing value for `client:media` directive.",
119
- message: 'Media query not provided for `client:media` directive. A media query similar to `client:media="(max-width: 600px)"` must be provided'
120
- };
121
- const NoMatchingRenderer = {
122
- name: "NoMatchingRenderer",
123
- title: "No matching renderer found.",
124
- message: (componentName, componentExtension, plural, validRenderersCount) => `Unable to render \`${componentName}\`.
125
-
126
- ${validRenderersCount > 0 ? `There ${plural ? "are" : "is"} ${validRenderersCount} renderer${plural ? "s" : ""} configured in your \`astro.config.mjs\` file,
127
- but ${plural ? "none were" : "it was not"} able to server-side render \`${componentName}\`.` : `No valid renderer was found ${componentExtension ? `for the \`.${componentExtension}\` file extension.` : `for this file extension.`}`}`,
128
- hint: (probableRenderers) => `Did you mean to enable the ${probableRenderers} integration?
129
-
130
- See https://docs.astro.build/en/guides/framework-components/ for more information on how to install and configure integrations.`
131
- };
132
- const NoClientEntrypoint = {
133
- name: "NoClientEntrypoint",
134
- title: "No client entrypoint specified in renderer.",
135
- message: (componentName, clientDirective, rendererName) => `\`${componentName}\` component has a \`client:${clientDirective}\` directive, but no client entrypoint was provided by \`${rendererName}\`.`,
136
- hint: "See https://docs.astro.build/en/reference/integrations-reference/#addrenderer-option for more information on how to configure your renderer."
137
- };
138
- const NoClientOnlyHint = {
139
- name: "NoClientOnlyHint",
140
- title: "Missing hint on client:only directive.",
141
- message: (componentName) => `Unable to render \`${componentName}\`. When using the \`client:only\` hydration strategy, Astro needs a hint to use the correct renderer.`,
142
- hint: (probableRenderers) => `Did you mean to pass \`client:only="${probableRenderers}"\`? See https://docs.astro.build/en/reference/directives-reference/#clientonly for more information on client:only`
143
- };
144
- const InvalidGetStaticPathsEntry = {
145
- name: "InvalidGetStaticPathsEntry",
146
- title: "Invalid entry inside getStaticPath's return value",
147
- message: (entryType) => `Invalid entry returned by getStaticPaths. Expected an object, got \`${entryType}\``,
148
- hint: "If you're using a `.map` call, you might be looking for `.flatMap()` instead. See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."
149
- };
150
- const InvalidGetStaticPathsReturn = {
151
- name: "InvalidGetStaticPathsReturn",
152
- title: "Invalid value returned by getStaticPaths.",
153
- message: (returnType) => `Invalid type returned by \`getStaticPaths\`. Expected an \`array\`, got \`${returnType}\``,
154
- hint: "See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."
155
- };
156
- const GetStaticPathsExpectedParams = {
157
- name: "GetStaticPathsExpectedParams",
158
- title: "Missing params property on `getStaticPaths` route.",
159
- message: "Missing or empty required `params` property on `getStaticPaths` route.",
160
- hint: "See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."
161
- };
162
- const GetStaticPathsInvalidRouteParam = {
163
- name: "GetStaticPathsInvalidRouteParam",
164
- title: "Invalid value for `getStaticPaths` route parameter.",
165
- message: (key, value, valueType) => `Invalid getStaticPaths route parameter for \`${key}\`. Expected undefined, a string or a number, received \`${valueType}\` (\`${value}\`)`,
166
- hint: "See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."
167
- };
168
- const GetStaticPathsRequired = {
169
- name: "GetStaticPathsRequired",
170
- title: "`getStaticPaths()` function required for dynamic routes.",
171
- message: "`getStaticPaths()` function is required for dynamic routes. Make sure that you `export` a `getStaticPaths` function from your dynamic route.",
172
- hint: `See https://docs.astro.build/en/guides/routing/#dynamic-routes for more information on dynamic routes.
173
-
174
- Alternatively, set \`output: "server"\` or \`output: "hybrid"\` in your Astro config file to switch to a non-static server build. This error can also occur if using \`export const prerender = true;\`.
175
- See https://docs.astro.build/en/guides/server-side-rendering/ for more information on non-static rendering.`
176
- };
177
- const ReservedSlotName = {
178
- name: "ReservedSlotName",
179
- title: "Invalid slot name.",
180
- message: (slotName) => `Unable to create a slot named \`${slotName}\`. \`${slotName}\` is a reserved slot name. Please update the name of this slot.`
181
- };
182
- const NoMatchingImport = {
183
- name: "NoMatchingImport",
184
- title: "No import found for component.",
185
- message: (componentName) => `Could not render \`${componentName}\`. No matching import has been found for \`${componentName}\`.`,
186
- hint: "Please make sure the component is properly imported."
187
- };
188
- const InvalidComponentArgs = {
189
- name: "InvalidComponentArgs",
190
- title: "Invalid component arguments.",
191
- message: (name) => `Invalid arguments passed to${name ? ` <${name}>` : ""} component.`,
192
- hint: "Astro components cannot be rendered directly via function call, such as `Component()` or `{items.map(Component)}`."
193
- };
194
- const PageNumberParamNotFound = {
195
- name: "PageNumberParamNotFound",
196
- title: "Page number param not found.",
197
- message: (paramName) => `[paginate()] page number param \`${paramName}\` not found in your filepath.`,
198
- hint: "Rename your file to `[page].astro` or `[...page].astro`."
199
- };
200
- const ImageMissingAlt = {
201
- name: "ImageMissingAlt",
202
- title: 'Image missing required "alt" property.',
203
- message: 'Image missing "alt" property. "alt" text is required to describe important images on the page.',
204
- hint: 'Use an empty string ("") for decorative images.'
205
- };
206
- const InvalidImageService = {
207
- name: "InvalidImageService",
208
- title: "Error while loading image service.",
209
- message: "There was an error loading the configured image service. Please see the stack trace for more information."
210
- };
211
- const MissingImageDimension = {
212
- name: "MissingImageDimension",
213
- title: "Missing image dimensions",
214
- message: (missingDimension, imageURL) => `Missing ${missingDimension === "both" ? "width and height attributes" : `${missingDimension} attribute`} for ${imageURL}. When using remote images, both dimensions are required in order to avoid CLS.`,
215
- hint: "If your image is inside your `src` folder, you probably meant to import it instead. See [the Imports guide for more information](https://docs.astro.build/en/guides/imports/#other-assets). You can also use `inferSize={true}` for remote images to get the original dimensions."
216
- };
217
- const FailedToFetchRemoteImageDimensions = {
218
- name: "FailedToFetchRemoteImageDimensions",
219
- title: "Failed to retrieve remote image dimensions",
220
- message: (imageURL) => `Failed to get the dimensions for ${imageURL}.`,
221
- hint: "Verify your remote image URL is accurate, and that you are not using `inferSize` with a file located in your `public/` folder."
222
- };
223
- const UnsupportedImageFormat = {
224
- name: "UnsupportedImageFormat",
225
- title: "Unsupported image format",
226
- message: (format, imagePath, supportedFormats) => `Received unsupported format \`${format}\` from \`${imagePath}\`. Currently only ${supportedFormats.join(
227
- ", "
228
- )} are supported by our image services.`,
229
- hint: "Using an `img` tag directly instead of the `Image` component might be what you're looking for."
230
- };
231
- const UnsupportedImageConversion = {
232
- name: "UnsupportedImageConversion",
233
- title: "Unsupported image conversion",
234
- message: "Converting between vector (such as SVGs) and raster (such as PNGs and JPEGs) images is not currently supported."
235
- };
236
- const PrerenderDynamicEndpointPathCollide = {
237
- name: "PrerenderDynamicEndpointPathCollide",
238
- title: "Prerendered dynamic endpoint has path collision.",
239
- message: (pathname) => `Could not render \`${pathname}\` with an \`undefined\` param as the generated path will collide during prerendering. Prevent passing \`undefined\` as \`params\` for the endpoint's \`getStaticPaths()\` function, or add an additional extension to the endpoint's filename.`,
240
- hint: (filename) => `Rename \`${filename}\` to \`${filename.replace(/\.(?:js|ts)/, (m) => `.json` + m)}\``
241
- };
242
- const ExpectedImage = {
243
- name: "ExpectedImage",
244
- title: "Expected src to be an image.",
245
- message: (src, typeofOptions, fullOptions) => `Expected \`src\` property for \`getImage\` or \`<Image />\` to be either an ESM imported image or a string with the path of a remote image. Received \`${src}\` (type: \`${typeofOptions}\`).
246
-
247
- Full serialized options received: \`${fullOptions}\`.`,
248
- hint: "This error can often happen because of a wrong path. Make sure the path to your image is correct. If you're passing an async function, make sure to call and await it."
249
- };
250
- const ExpectedImageOptions = {
251
- name: "ExpectedImageOptions",
252
- title: "Expected image options.",
253
- message: (options) => `Expected getImage() parameter to be an object. Received \`${options}\`.`
254
- };
255
- const ExpectedNotESMImage = {
256
- name: "ExpectedNotESMImage",
257
- title: "Expected image options, not an ESM-imported image.",
258
- message: "An ESM-imported image cannot be passed directly to `getImage()`. Instead, pass an object with the image in the `src` property.",
259
- hint: "Try changing `getImage(myImage)` to `getImage({ src: myImage })`"
260
- };
261
- const IncompatibleDescriptorOptions = {
262
- name: "IncompatibleDescriptorOptions",
263
- title: "Cannot set both `densities` and `widths`",
264
- message: "Only one of `densities` or `widths` can be specified. In most cases, you'll probably want to use only `widths` if you require specific widths.",
265
- hint: "Those attributes are used to construct a `srcset` attribute, which cannot have both `x` and `w` descriptors."
266
- };
267
- const NoImageMetadata = {
268
- name: "NoImageMetadata",
269
- title: "Could not process image metadata.",
270
- message: (imagePath) => `Could not process image metadata${imagePath ? ` for \`${imagePath}\`` : ""}.`,
271
- hint: "This is often caused by a corrupted or malformed image. Re-exporting the image from your image editor may fix this issue."
272
- };
273
- const ResponseSentError = {
274
- name: "ResponseSentError",
275
- title: "Unable to set response.",
276
- message: "The response has already been sent to the browser and cannot be altered."
277
- };
278
- const MiddlewareNoDataOrNextCalled = {
279
- name: "MiddlewareNoDataOrNextCalled",
280
- title: "The middleware didn't return a `Response`.",
281
- message: "Make sure your middleware returns a `Response` object, either directly or by returning the `Response` from calling the `next` function."
282
- };
283
- const MiddlewareNotAResponse = {
284
- name: "MiddlewareNotAResponse",
285
- title: "The middleware returned something that is not a `Response` object.",
286
- message: "Any data returned from middleware must be a valid `Response` object."
287
- };
288
- const EndpointDidNotReturnAResponse = {
289
- name: "EndpointDidNotReturnAResponse",
290
- title: "The endpoint did not return a `Response`.",
291
- message: "An endpoint must return either a `Response`, or a `Promise` that resolves with a `Response`."
292
- };
293
- const LocalsNotAnObject = {
294
- name: "LocalsNotAnObject",
295
- title: "Value assigned to `locals` is not accepted.",
296
- message: "`locals` can only be assigned to an object. Other values like numbers, strings, etc. are not accepted.",
297
- hint: "If you tried to remove some information from the `locals` object, try to use `delete` or set the property to `undefined`."
298
- };
299
- const AstroResponseHeadersReassigned = {
300
- name: "AstroResponseHeadersReassigned",
301
- title: "`Astro.response.headers` must not be reassigned.",
302
- message: "Individual headers can be added to and removed from `Astro.response.headers`, but it must not be replaced with another instance of `Headers` altogether.",
303
- hint: "Consider using `Astro.response.headers.add()`, and `Astro.response.headers.delete()`."
304
- };
305
- const LocalImageUsedWrongly = {
306
- name: "LocalImageUsedWrongly",
307
- title: "Local images must be imported.",
308
- message: (imageFilePath) => `\`Image\`'s and \`getImage\`'s \`src\` parameter must be an imported image or an URL, it cannot be a string filepath. Received \`${imageFilePath}\`.`,
309
- hint: "If you want to use an image from your `src` folder, you need to either import it or if the image is coming from a content collection, use the [image() schema helper](https://docs.astro.build/en/guides/images/#images-in-content-collections). See https://docs.astro.build/en/guides/images/#src-required for more information on the `src` property."
310
- };
311
- const AstroGlobUsedOutside = {
312
- name: "AstroGlobUsedOutside",
313
- title: "Astro.glob() used outside of an Astro file.",
314
- message: (globStr) => `\`Astro.glob(${globStr})\` can only be used in \`.astro\` files. \`import.meta.glob(${globStr})\` can be used instead to achieve a similar result.`,
315
- hint: "See Vite's documentation on `import.meta.glob` for more information: https://vite.dev/guide/features.html#glob-import"
316
- };
317
- const AstroGlobNoMatch = {
318
- name: "AstroGlobNoMatch",
319
- title: "Astro.glob() did not match any files.",
320
- message: (globStr) => `\`Astro.glob(${globStr})\` did not return any matching files.`,
321
- hint: "Check the pattern for typos."
322
- };
323
- const MissingSharp = {
324
- name: "MissingSharp",
325
- title: "Could not find Sharp.",
326
- message: "Could not find Sharp. Please install Sharp (`sharp`) manually into your project or migrate to another image service.",
327
- hint: "See Sharp's installation instructions for more information: https://sharp.pixelplumbing.com/install. If you are not relying on `astro:assets` to optimize, transform, or process any images, you can configure a passthrough image service instead of installing Sharp. See https://docs.astro.build/en/reference/errors/missing-sharp for more information.\n\nSee https://docs.astro.build/en/guides/images/#default-image-service for more information on how to migrate to another image service."
328
- };
329
- const i18nNoLocaleFoundInPath = {
330
- name: "i18nNoLocaleFoundInPath",
331
- title: "The path doesn't contain any locale",
332
- message: "You tried to use an i18n utility on a path that doesn't contain any locale. You can use `pathHasLocale` first to determine if the path has a locale."
333
- };
334
- const RewriteWithBodyUsed = {
335
- name: "RewriteWithBodyUsed",
336
- title: "Cannot use Astro.rewrite after the request body has been read",
337
- message: "Astro.rewrite() cannot be used if the request body has already been read. If you need to read the body, first clone the request."
338
- };
339
-
340
- function appendForwardSlash(path) {
341
- return path.endsWith("/") ? path : path + "/";
342
- }
343
- function prependForwardSlash(path) {
344
- return path[0] === "/" ? path : "/" + path;
345
- }
346
- function removeTrailingForwardSlash(path) {
347
- return path.endsWith("/") ? path.slice(0, path.length - 1) : path;
348
- }
349
- function removeLeadingForwardSlash(path) {
350
- return path.startsWith("/") ? path.substring(1) : path;
351
- }
352
- function trimSlashes(path) {
353
- return path.replace(/^\/|\/$/g, "");
354
- }
355
- function isString(path) {
356
- return typeof path === "string" || path instanceof String;
357
- }
358
- function joinPaths(...paths) {
359
- return paths.filter(isString).map((path, i) => {
360
- if (i === 0) {
361
- return removeTrailingForwardSlash(path);
362
- } else if (i === paths.length - 1) {
363
- return removeLeadingForwardSlash(path);
364
- } else {
365
- return trimSlashes(path);
366
- }
367
- }).join("/");
368
- }
369
- function isRemotePath(src) {
370
- return /^(?:http|ftp|https|ws):?\/\//.test(src) || src.startsWith("data:");
371
- }
372
- function slash(path) {
373
- return path.replace(/\\/g, "/");
374
- }
375
- function fileExtension(path) {
376
- const ext = path.split(".").pop();
377
- return ext !== path ? `.${ext}` : "";
378
- }
379
-
380
- const URL_PROTOCOL_REGEX = /^(?:(?:http|ftp|https|ws):?\/\/|\/\/)/;
381
- function isCoreRemotePath(path) {
382
- return URL_PROTOCOL_REGEX.test(path) || isRemotePath(path);
383
- }
384
-
385
- const VALID_SUPPORTED_FORMATS = [
386
- "jpeg",
387
- "jpg",
388
- "png",
389
- "tiff",
390
- "webp",
391
- "gif",
392
- "svg",
393
- "avif"
394
- ];
395
- const DEFAULT_OUTPUT_FORMAT = "webp";
396
- const DEFAULT_HASH_PROPS = ["src", "width", "height", "format", "quality"];
397
-
398
- function isESMImportedImage(src) {
399
- return typeof src === "object";
400
- }
401
- function isRemoteImage(src) {
402
- return typeof src === "string";
403
- }
404
- async function resolveSrc(src) {
405
- return typeof src === "object" && "then" in src ? (await src).default ?? await src : src;
406
- }
407
-
408
- function matchPattern(url, remotePattern) {
409
- return matchProtocol(url, remotePattern.protocol) && matchHostname(url, remotePattern.hostname, true) && matchPort(url, remotePattern.port) && matchPathname(url, remotePattern.pathname);
410
- }
411
- function matchPort(url, port) {
412
- return !port || port === url.port;
413
- }
414
- function matchProtocol(url, protocol) {
415
- return !protocol || protocol === url.protocol.slice(0, -1);
416
- }
417
- function matchHostname(url, hostname, allowWildcard) {
418
- if (!hostname) {
419
- return true;
420
- } else if (!allowWildcard || !hostname.startsWith("*")) {
421
- return hostname === url.hostname;
422
- } else if (hostname.startsWith("**.")) {
423
- const slicedHostname = hostname.slice(2);
424
- return slicedHostname !== url.hostname && url.hostname.endsWith(slicedHostname);
425
- } else if (hostname.startsWith("*.")) {
426
- const slicedHostname = hostname.slice(1);
427
- const additionalSubdomains = url.hostname.replace(slicedHostname, "").split(".").filter(Boolean);
428
- return additionalSubdomains.length === 1;
429
- }
430
- return false;
431
- }
432
- function matchPathname(url, pathname, allowWildcard) {
433
- if (!pathname) {
434
- return true;
435
- } else if (!pathname.endsWith("*")) {
436
- return pathname === url.pathname;
437
- } else if (pathname.endsWith("/**")) {
438
- const slicedPathname = pathname.slice(0, -2);
439
- return slicedPathname !== url.pathname && url.pathname.startsWith(slicedPathname);
440
- } else if (pathname.endsWith("/*")) {
441
- const slicedPathname = pathname.slice(0, -1);
442
- const additionalPathChunks = url.pathname.replace(slicedPathname, "").split("/").filter(Boolean);
443
- return additionalPathChunks.length === 1;
444
- }
445
- return false;
446
- }
447
- function isRemoteAllowed(src, {
448
- domains = [],
449
- remotePatterns = []
450
- }) {
451
- if (!isCoreRemotePath(src)) return false;
452
- const url = new URL(src);
453
- return domains.some((domain) => matchHostname(url, domain)) || remotePatterns.some((remotePattern) => matchPattern(url, remotePattern));
454
- }
455
-
456
- function isLocalService(service) {
457
- if (!service) {
458
- return false;
459
- }
460
- return "transform" in service;
461
- }
462
- function parseQuality(quality) {
463
- let result = parseInt(quality);
464
- if (Number.isNaN(result)) {
465
- return quality;
466
- }
467
- return result;
468
- }
469
- const baseService = {
470
- validateOptions(options) {
471
- if (!options.src || typeof options.src !== "string" && typeof options.src !== "object") {
472
- throw new AstroError({
473
- ...ExpectedImage,
474
- message: ExpectedImage.message(
475
- JSON.stringify(options.src),
476
- typeof options.src,
477
- JSON.stringify(options, (_, v) => v === void 0 ? null : v)
478
- )
479
- });
480
- }
481
- if (!isESMImportedImage(options.src)) {
482
- if (options.src.startsWith("/@fs/") || !isCoreRemotePath(options.src) && !options.src.startsWith("/")) {
483
- throw new AstroError({
484
- ...LocalImageUsedWrongly,
485
- message: LocalImageUsedWrongly.message(options.src)
486
- });
487
- }
488
- let missingDimension;
489
- if (!options.width && !options.height) {
490
- missingDimension = "both";
491
- } else if (!options.width && options.height) {
492
- missingDimension = "width";
493
- } else if (options.width && !options.height) {
494
- missingDimension = "height";
495
- }
496
- if (missingDimension) {
497
- throw new AstroError({
498
- ...MissingImageDimension,
499
- message: MissingImageDimension.message(missingDimension, options.src)
500
- });
501
- }
502
- } else {
503
- if (!VALID_SUPPORTED_FORMATS.includes(options.src.format)) {
504
- throw new AstroError({
505
- ...UnsupportedImageFormat,
506
- message: UnsupportedImageFormat.message(
507
- options.src.format,
508
- options.src.src,
509
- VALID_SUPPORTED_FORMATS
510
- )
511
- });
512
- }
513
- if (options.widths && options.densities) {
514
- throw new AstroError(IncompatibleDescriptorOptions);
515
- }
516
- if (options.src.format === "svg") {
517
- options.format = "svg";
518
- }
519
- if (options.src.format === "svg" && options.format !== "svg" || options.src.format !== "svg" && options.format === "svg") {
520
- throw new AstroError(UnsupportedImageConversion);
521
- }
522
- }
523
- if (!options.format) {
524
- options.format = DEFAULT_OUTPUT_FORMAT;
525
- }
526
- if (options.width) options.width = Math.round(options.width);
527
- if (options.height) options.height = Math.round(options.height);
528
- return options;
529
- },
530
- getHTMLAttributes(options) {
531
- const { targetWidth, targetHeight } = getTargetDimensions(options);
532
- const { src, width, height, format, quality, densities, widths, formats, ...attributes } = options;
533
- return {
534
- ...attributes,
535
- width: targetWidth,
536
- height: targetHeight,
537
- loading: attributes.loading ?? "lazy",
538
- decoding: attributes.decoding ?? "async"
539
- };
540
- },
541
- getSrcSet(options) {
542
- const srcSet = [];
543
- const { targetWidth } = getTargetDimensions(options);
544
- const { widths, densities } = options;
545
- const targetFormat = options.format ?? DEFAULT_OUTPUT_FORMAT;
546
- let imageWidth = options.width;
547
- let maxWidth = Infinity;
548
- if (isESMImportedImage(options.src)) {
549
- imageWidth = options.src.width;
550
- maxWidth = imageWidth;
551
- }
552
- const {
553
- width: transformWidth,
554
- height: transformHeight,
555
- ...transformWithoutDimensions
556
- } = options;
557
- const allWidths = [];
558
- if (densities) {
559
- const densityValues = densities.map((density) => {
560
- if (typeof density === "number") {
561
- return density;
562
- } else {
563
- return parseFloat(density);
564
- }
565
- });
566
- const densityWidths = densityValues.sort().map((density) => Math.round(targetWidth * density));
567
- allWidths.push(
568
- ...densityWidths.map((width, index) => ({
569
- maxTargetWidth: Math.min(width, maxWidth),
570
- descriptor: `${densityValues[index]}x`
571
- }))
572
- );
573
- } else if (widths) {
574
- allWidths.push(
575
- ...widths.map((width) => ({
576
- maxTargetWidth: Math.min(width, maxWidth),
577
- descriptor: `${width}w`
578
- }))
579
- );
580
- }
581
- for (const { maxTargetWidth, descriptor } of allWidths) {
582
- const srcSetTransform = { ...transformWithoutDimensions };
583
- if (maxTargetWidth !== imageWidth) {
584
- srcSetTransform.width = maxTargetWidth;
585
- } else {
586
- if (options.width && options.height) {
587
- srcSetTransform.width = options.width;
588
- srcSetTransform.height = options.height;
589
- }
590
- }
591
- srcSet.push({
592
- transform: srcSetTransform,
593
- descriptor,
594
- attributes: {
595
- type: `image/${targetFormat}`
596
- }
597
- });
598
- }
599
- return srcSet;
600
- },
601
- getURL(options, imageConfig) {
602
- const searchParams = new URLSearchParams();
603
- if (isESMImportedImage(options.src)) {
604
- searchParams.append("href", options.src.src);
605
- } else if (isRemoteAllowed(options.src, imageConfig)) {
606
- searchParams.append("href", options.src);
607
- } else {
608
- return options.src;
609
- }
610
- const params = {
611
- w: "width",
612
- h: "height",
613
- q: "quality",
614
- f: "format"
615
- };
616
- Object.entries(params).forEach(([param, key]) => {
617
- options[key] && searchParams.append(param, options[key].toString());
618
- });
619
- const imageEndpoint = joinPaths("/", "/_image");
620
- return `${imageEndpoint}?${searchParams}`;
621
- },
622
- parseURL(url) {
623
- const params = url.searchParams;
624
- if (!params.has("href")) {
625
- return void 0;
626
- }
627
- const transform = {
628
- src: params.get("href"),
629
- width: params.has("w") ? parseInt(params.get("w")) : void 0,
630
- height: params.has("h") ? parseInt(params.get("h")) : void 0,
631
- format: params.get("f"),
632
- quality: params.get("q")
633
- };
634
- return transform;
635
- }
636
- };
637
- function getTargetDimensions(options) {
638
- let targetWidth = options.width;
639
- let targetHeight = options.height;
640
- if (isESMImportedImage(options.src)) {
641
- const aspectRatio = options.src.width / options.src.height;
642
- if (targetHeight && !targetWidth) {
643
- targetWidth = Math.round(targetHeight * aspectRatio);
644
- } else if (targetWidth && !targetHeight) {
645
- targetHeight = Math.round(targetWidth / aspectRatio);
646
- } else if (!targetWidth && !targetHeight) {
647
- targetWidth = options.src.width;
648
- targetHeight = options.src.height;
649
- }
650
- }
651
- return {
652
- targetWidth,
653
- targetHeight
654
- };
655
- }
656
-
657
- let sharp;
658
- const qualityTable = {
659
- low: 25,
660
- mid: 50,
661
- high: 80,
662
- max: 100
663
- };
664
- async function loadSharp() {
665
- let sharpImport;
666
- try {
667
- sharpImport = (await import('sharp')).default;
668
- } catch {
669
- throw new AstroError(MissingSharp);
670
- }
671
- sharpImport.cache(false);
672
- return sharpImport;
673
- }
674
- const sharpService = {
675
- validateOptions: baseService.validateOptions,
676
- getURL: baseService.getURL,
677
- parseURL: baseService.parseURL,
678
- getHTMLAttributes: baseService.getHTMLAttributes,
679
- getSrcSet: baseService.getSrcSet,
680
- async transform(inputBuffer, transformOptions, config) {
681
- if (!sharp) sharp = await loadSharp();
682
- const transform = transformOptions;
683
- if (transform.format === "svg") return { data: inputBuffer, format: "svg" };
684
- const result = sharp(inputBuffer, {
685
- failOnError: false,
686
- pages: -1,
687
- limitInputPixels: config.service.config.limitInputPixels
688
- });
689
- result.rotate();
690
- if (transform.height && !transform.width) {
691
- result.resize({ height: Math.round(transform.height) });
692
- } else if (transform.width) {
693
- result.resize({ width: Math.round(transform.width) });
694
- }
695
- if (transform.format) {
696
- let quality = void 0;
697
- if (transform.quality) {
698
- const parsedQuality = parseQuality(transform.quality);
699
- if (typeof parsedQuality === "number") {
700
- quality = parsedQuality;
701
- } else {
702
- quality = transform.quality in qualityTable ? qualityTable[transform.quality] : void 0;
703
- }
704
- }
705
- result.toFormat(transform.format, { quality });
706
- }
707
- const { data, info } = await result.toBuffer({ resolveWithObject: true });
708
- return {
709
- data,
710
- format: info.format
711
- };
712
- }
713
- };
714
- var sharp_default = sharpService;
715
-
716
- const sharp$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
717
- __proto__: null,
718
- default: sharp_default
719
- }, Symbol.toStringTag, { value: 'Module' }));
720
-
721
- export { AstroError as A, ExpectedNotESMImage as B, ClientAddressNotAvailable as C, resolveSrc as D, EndpointDidNotReturnAResponse as E, FailedToFetchRemoteImageDimensions as F, GetStaticPathsRequired as G, isRemoteImage as H, InvalidComponentArgs as I, isCoreRemotePath as J, isESMImportedImage as K, LocalsNotAnObject as L, MissingMediaQueryDirective as M, NoMatchingImport as N, OnlyResponseCanBeReturned as O, PageNumberParamNotFound as P, isLocalService as Q, ResponseSentError as R, StaticClientAddressNotAvailable as S, DEFAULT_HASH_PROPS as T, InvalidImageService as U, ImageMissingAlt as V, fileExtension as W, slash as X, prependForwardSlash as Y, sharp$1 as Z, AstroGlobUsedOutside as a, AstroGlobNoMatch as b, NoMatchingRenderer as c, NoClientOnlyHint as d, NoClientEntrypoint as e, AstroUserError as f, appendForwardSlash as g, MiddlewareNoDataOrNextCalled as h, i18nNoLocaleFoundInPath as i, joinPaths as j, MiddlewareNotAResponse as k, InvalidGetStaticPathsReturn as l, InvalidGetStaticPathsEntry as m, GetStaticPathsExpectedParams as n, GetStaticPathsInvalidRouteParam as o, NoMatchingStaticPathFound as p, PrerenderDynamicEndpointPathCollide as q, ReservedSlotName as r, removeTrailingForwardSlash as s, trimSlashes as t, RewriteWithBodyUsed as u, PrerenderClientAddressNotAvailable as v, AstroResponseHeadersReassigned as w, NoImageMetadata as x, ExpectedImageOptions as y, ExpectedImage as z };