@elgap/edukaai 0.1.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 (306) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/BHDzAs85.js +1 -0
  3. package/.output/public/_nuxt/BJzbfdL_.js +1 -0
  4. package/.output/public/_nuxt/BKGLlKXk.js +6 -0
  5. package/.output/public/_nuxt/BLuXzJk3.js +1 -0
  6. package/.output/public/_nuxt/BNOzzLI3.js +1 -0
  7. package/.output/public/_nuxt/BO5GMwXh.js +1 -0
  8. package/.output/public/_nuxt/BQRbsFGy.js +1 -0
  9. package/.output/public/_nuxt/Be4MVdOg.js +1 -0
  10. package/.output/public/_nuxt/Bu4d3Z1T.js +1 -0
  11. package/.output/public/_nuxt/BwpBBNv4.js +1 -0
  12. package/.output/public/_nuxt/C1Og9-6n.js +97 -0
  13. package/.output/public/_nuxt/C3CjAhtj.js +1 -0
  14. package/.output/public/_nuxt/C6E3Ty3z.js +1 -0
  15. package/.output/public/_nuxt/COct4B42.js +1 -0
  16. package/.output/public/_nuxt/CQ6g2dtj.js +1 -0
  17. package/.output/public/_nuxt/CURSW5TV.js +246 -0
  18. package/.output/public/_nuxt/CW57JW4s.js +1 -0
  19. package/.output/public/_nuxt/Cg2fM61o.js +18 -0
  20. package/.output/public/_nuxt/CgGOeWta.js +1 -0
  21. package/.output/public/_nuxt/CoyYbT7u.js +1 -0
  22. package/.output/public/_nuxt/D11MHbGc.js +133 -0
  23. package/.output/public/_nuxt/D24dz0S8.js +1 -0
  24. package/.output/public/_nuxt/D3EFPr8x.js +1 -0
  25. package/.output/public/_nuxt/Dvt4ZHil.js +1 -0
  26. package/.output/public/_nuxt/builds/latest.json +1 -0
  27. package/.output/public/_nuxt/builds/meta/ab87ba0e-6d0d-4466-8b12-00d44f8fb9d3.json +1 -0
  28. package/.output/public/_nuxt/default.C1K1-g4D.css +1 -0
  29. package/.output/public/_nuxt/entry.CH8k-Mga.css +1 -0
  30. package/.output/public/_nuxt/error-404.C-Ezrlz-.css +1 -0
  31. package/.output/public/_nuxt/error-500.DBWf9FGj.css +1 -0
  32. package/.output/public/_nuxt/first-training.wFDD65zm.css +1 -0
  33. package/.output/public/_nuxt/import.cUKYdCrq.css +1 -0
  34. package/.output/public/_nuxt/index.D-2VHyHA.css +1 -0
  35. package/.output/public/_nuxt/index.D4J_vHmL.css +1 -0
  36. package/.output/public/_nuxt/mPJeLIz7.js +1 -0
  37. package/.output/server/chunks/_/error-500.mjs +19 -0
  38. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  39. package/.output/server/chunks/build/ExampleCard-styles.BUOJhEg0.mjs +8 -0
  40. package/.output/server/chunks/build/ExampleCard-styles.BUOJhEg0.mjs.map +1 -0
  41. package/.output/server/chunks/build/ExampleForm-Bcpl0CfL.mjs +238 -0
  42. package/.output/server/chunks/build/ExampleForm-Bcpl0CfL.mjs.map +1 -0
  43. package/.output/server/chunks/build/ImportPreview-styles.CFmMl5Ok.mjs +8 -0
  44. package/.output/server/chunks/build/ImportPreview-styles.CFmMl5Ok.mjs.map +1 -0
  45. package/.output/server/chunks/build/_id_-BUSGcL-H.mjs +113 -0
  46. package/.output/server/chunks/build/_id_-BUSGcL-H.mjs.map +1 -0
  47. package/.output/server/chunks/build/axolotl-C-EXGgM8.mjs +112 -0
  48. package/.output/server/chunks/build/axolotl-C-EXGgM8.mjs.map +1 -0
  49. package/.output/server/chunks/build/best-practices-DsadorHb.mjs +38 -0
  50. package/.output/server/chunks/build/best-practices-DsadorHb.mjs.map +1 -0
  51. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  52. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  53. package/.output/server/chunks/build/default-DPkqqHOE.mjs +354 -0
  54. package/.output/server/chunks/build/default-DPkqqHOE.mjs.map +1 -0
  55. package/.output/server/chunks/build/default-styles.DsqVVS7k.mjs +8 -0
  56. package/.output/server/chunks/build/default-styles.DsqVVS7k.mjs.map +1 -0
  57. package/.output/server/chunks/build/error-404-K4UfZNck.mjs +97 -0
  58. package/.output/server/chunks/build/error-404-K4UfZNck.mjs.map +1 -0
  59. package/.output/server/chunks/build/error-404-styles.DuDrf-v0.mjs +8 -0
  60. package/.output/server/chunks/build/error-404-styles.DuDrf-v0.mjs.map +1 -0
  61. package/.output/server/chunks/build/error-500-CA7TEPNg.mjs +79 -0
  62. package/.output/server/chunks/build/error-500-CA7TEPNg.mjs.map +1 -0
  63. package/.output/server/chunks/build/error-500-styles.8IYEHzz6.mjs +8 -0
  64. package/.output/server/chunks/build/error-500-styles.8IYEHzz6.mjs.map +1 -0
  65. package/.output/server/chunks/build/examples-BHK8MDrs.mjs +134 -0
  66. package/.output/server/chunks/build/examples-BHK8MDrs.mjs.map +1 -0
  67. package/.output/server/chunks/build/export-BzxFqqfP.mjs +233 -0
  68. package/.output/server/chunks/build/export-BzxFqqfP.mjs.map +1 -0
  69. package/.output/server/chunks/build/faq-DKch73dS.mjs +112 -0
  70. package/.output/server/chunks/build/faq-DKch73dS.mjs.map +1 -0
  71. package/.output/server/chunks/build/field-guide-qbukT8F0.mjs +38 -0
  72. package/.output/server/chunks/build/field-guide-qbukT8F0.mjs.map +1 -0
  73. package/.output/server/chunks/build/first-training-BbEOBcEW.mjs +343 -0
  74. package/.output/server/chunks/build/first-training-BbEOBcEW.mjs.map +1 -0
  75. package/.output/server/chunks/build/first-training-styles.BzOa_KRD.mjs +8 -0
  76. package/.output/server/chunks/build/first-training-styles.BzOa_KRD.mjs.map +1 -0
  77. package/.output/server/chunks/build/glossary-CxSGCJoH.mjs +397 -0
  78. package/.output/server/chunks/build/glossary-CxSGCJoH.mjs.map +1 -0
  79. package/.output/server/chunks/build/huggingface-TSmyUzZU.mjs +128 -0
  80. package/.output/server/chunks/build/huggingface-TSmyUzZU.mjs.map +1 -0
  81. package/.output/server/chunks/build/import-C0kYhRv9.mjs +247 -0
  82. package/.output/server/chunks/build/import-C0kYhRv9.mjs.map +1 -0
  83. package/.output/server/chunks/build/index-C1ntBEWd.mjs +235 -0
  84. package/.output/server/chunks/build/index-C1ntBEWd.mjs.map +1 -0
  85. package/.output/server/chunks/build/index-D3CxihcX.mjs +320 -0
  86. package/.output/server/chunks/build/index-D3CxihcX.mjs.map +1 -0
  87. package/.output/server/chunks/build/index-DgKa1cy0.mjs +360 -0
  88. package/.output/server/chunks/build/index-DgKa1cy0.mjs.map +1 -0
  89. package/.output/server/chunks/build/index-cG54gaKX.mjs +513 -0
  90. package/.output/server/chunks/build/index-cG54gaKX.mjs.map +1 -0
  91. package/.output/server/chunks/build/index-styles.BX2SZiiS.mjs +8 -0
  92. package/.output/server/chunks/build/index-styles.BX2SZiiS.mjs.map +1 -0
  93. package/.output/server/chunks/build/llm-training-DIqc0eiM.mjs +91 -0
  94. package/.output/server/chunks/build/llm-training-DIqc0eiM.mjs.map +1 -0
  95. package/.output/server/chunks/build/new-b3338aLF.mjs +92 -0
  96. package/.output/server/chunks/build/new-b3338aLF.mjs.map +1 -0
  97. package/.output/server/chunks/build/nuxt-link-Ceyd90PQ.mjs +290 -0
  98. package/.output/server/chunks/build/nuxt-link-Ceyd90PQ.mjs.map +1 -0
  99. package/.output/server/chunks/build/sample-datasets-CVLWMQUA.mjs +45 -0
  100. package/.output/server/chunks/build/sample-datasets-CVLWMQUA.mjs.map +1 -0
  101. package/.output/server/chunks/build/server.mjs +1979 -0
  102. package/.output/server/chunks/build/server.mjs.map +1 -0
  103. package/.output/server/chunks/build/styles.mjs +20 -0
  104. package/.output/server/chunks/build/styles.mjs.map +1 -0
  105. package/.output/server/chunks/build/test-router-BYM6Cpst.mjs +105 -0
  106. package/.output/server/chunks/build/test-router-BYM6Cpst.mjs.map +1 -0
  107. package/.output/server/chunks/nitro/nitro.mjs +5800 -0
  108. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  109. package/.output/server/chunks/routes/renderer.mjs +481 -0
  110. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  111. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  112. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  113. package/.output/server/index.mjs +12 -0
  114. package/.output/server/index.mjs.map +1 -0
  115. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/api.js +2 -0
  116. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/app.js +2 -0
  117. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/component.js +2 -0
  118. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/context.js +2 -0
  119. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/hooks.js +2 -0
  120. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/index.js +22 -0
  121. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/util.js +2 -0
  122. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/const.js +5 -0
  123. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/env.js +17 -0
  124. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/index.js +45 -0
  125. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/plugin.js +2 -0
  126. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/proxy.js +111 -0
  127. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/time.js +28 -0
  128. package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/package.json +37 -0
  129. package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.9/dist/index.cjs +42 -0
  130. package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.9/package.json +32 -0
  131. package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.cjs +299 -0
  132. package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
  133. package/.output/server/node_modules/.nitro/hookable@6.0.1/dist/index.mjs +266 -0
  134. package/.output/server/node_modules/.nitro/hookable@6.0.1/package.json +52 -0
  135. package/.output/server/node_modules/.nitro/perfect-debounce@1.0.0/dist/index.cjs +59 -0
  136. package/.output/server/node_modules/.nitro/perfect-debounce@1.0.0/package.json +44 -0
  137. package/.output/server/node_modules/.nitro/perfect-debounce@2.1.0/dist/index.mjs +89 -0
  138. package/.output/server/node_modules/.nitro/perfect-debounce@2.1.0/package.json +41 -0
  139. package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
  140. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  141. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +292 -0
  142. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +702 -0
  143. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +76 -0
  144. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +40 -0
  145. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +52 -0
  146. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +133 -0
  147. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +20 -0
  148. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +15 -0
  149. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +18 -0
  150. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +18 -0
  151. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +31 -0
  152. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +80 -0
  153. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +102 -0
  154. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +29 -0
  155. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +60 -0
  156. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +50 -0
  157. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +204 -0
  158. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +35 -0
  159. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +134 -0
  160. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +167 -0
  161. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +81 -0
  162. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +94 -0
  163. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +28 -0
  164. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +78 -0
  165. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +68 -0
  166. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +47 -0
  167. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +105 -0
  168. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +38 -0
  169. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +94 -0
  170. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +64 -0
  171. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
  172. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +18 -0
  173. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +58 -0
  174. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +34 -0
  175. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +13 -0
  176. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +126 -0
  177. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +21 -0
  178. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +27 -0
  179. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +38 -0
  180. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +93 -0
  181. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +48 -0
  182. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +24 -0
  183. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +44 -0
  184. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +125 -0
  185. package/.output/server/node_modules/@iconify/utils/lib/index.js +53 -0
  186. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +32 -0
  187. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +28 -0
  188. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +42 -0
  189. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +63 -0
  190. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +27 -0
  191. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +27 -0
  192. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +10 -0
  193. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +115 -0
  194. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +32 -0
  195. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +15 -0
  196. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +10 -0
  197. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +42 -0
  198. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +23 -0
  199. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +69 -0
  200. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +55 -0
  201. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +28 -0
  202. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +8 -0
  203. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +23 -0
  204. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +9 -0
  205. package/.output/server/node_modules/@iconify/utils/package.json +118 -0
  206. package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1893 -0
  207. package/.output/server/node_modules/@iconify/vue/package.json +64 -0
  208. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
  209. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  210. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  211. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  212. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  213. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  214. package/.output/server/node_modules/@vue/devtools-kit/dist/index.cjs +6850 -0
  215. package/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
  216. package/.output/server/node_modules/@vue/devtools-shared/dist/index.cjs +378 -0
  217. package/.output/server/node_modules/@vue/devtools-shared/package.json +34 -0
  218. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1870 -0
  219. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  220. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6810 -0
  221. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  222. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1750 -0
  223. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  224. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
  225. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  226. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  227. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  228. package/.output/server/node_modules/birpc/dist/index.cjs +296 -0
  229. package/.output/server/node_modules/birpc/package.json +57 -0
  230. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  231. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  232. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  233. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  234. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  235. package/.output/server/node_modules/consola/package.json +136 -0
  236. package/.output/server/node_modules/devalue/index.js +4 -0
  237. package/.output/server/node_modules/devalue/package.json +37 -0
  238. package/.output/server/node_modules/devalue/src/base64.js +110 -0
  239. package/.output/server/node_modules/devalue/src/constants.js +7 -0
  240. package/.output/server/node_modules/devalue/src/parse.js +246 -0
  241. package/.output/server/node_modules/devalue/src/stringify.js +350 -0
  242. package/.output/server/node_modules/devalue/src/uneval.js +490 -0
  243. package/.output/server/node_modules/devalue/src/utils.js +148 -0
  244. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  245. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  246. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  247. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  248. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  249. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  250. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  251. package/.output/server/node_modules/entities/package.json +120 -0
  252. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  253. package/.output/server/node_modules/estree-walker/package.json +37 -0
  254. package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +719 -0
  255. package/.output/server/node_modules/pinia/package.json +94 -0
  256. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  257. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  258. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  259. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  260. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  261. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  262. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  263. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  264. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  265. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  266. package/.output/server/node_modules/source-map-js/package.json +71 -0
  267. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  268. package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
  269. package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  270. package/.output/server/node_modules/tailwindcss/package.json +89 -0
  271. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  272. package/.output/server/node_modules/ufo/package.json +48 -0
  273. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  274. package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  275. package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  276. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  277. package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  278. package/.output/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
  279. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  280. package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
  281. package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
  282. package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  283. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  284. package/.output/server/node_modules/unhead/dist/shared/unhead.D_nrZZPH.mjs +182 -0
  285. package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
  286. package/.output/server/node_modules/unhead/dist/shared/unhead.fVVqDC1O.mjs +203 -0
  287. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  288. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  289. package/.output/server/node_modules/unhead/package.json +105 -0
  290. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  291. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  292. package/.output/server/node_modules/vue/index.js +7 -0
  293. package/.output/server/node_modules/vue/index.mjs +1 -0
  294. package/.output/server/node_modules/vue/package.json +112 -0
  295. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  296. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
  297. package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
  298. package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
  299. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
  300. package/.output/server/node_modules/vue-router/package.json +153 -0
  301. package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  302. package/.output/server/package.json +37 -0
  303. package/LICENSE +21 -0
  304. package/README.md +132 -0
  305. package/bin/cli.js +75 -0
  306. package/package.json +71 -0
@@ -0,0 +1,180 @@
1
+ import { a as createUnhead } from './shared/unhead.D_nrZZPH.mjs';
2
+ import { T as TagsWithInnerContent, S as SelfClosingTags } from './shared/unhead.yem5I2v_.mjs';
3
+ import { parseHtmlForUnheadExtraction, applyHeadToHtml, parseHtmlForIndexes } from './parser.mjs';
4
+ import 'hookable';
5
+ import './shared/unhead.fVVqDC1O.mjs';
6
+ import './shared/unhead.CbpEuj3y.mjs';
7
+
8
+ // @__NO_SIDE_EFFECTS__
9
+ function createHead(options = {}) {
10
+ const unhead = createUnhead({
11
+ ...options,
12
+ // @ts-expect-error untyped
13
+ document: false,
14
+ propResolvers: [
15
+ ...options.propResolvers || [],
16
+ (k, v) => {
17
+ if (k && k.startsWith("on") && typeof v === "function") {
18
+ return `this.dataset.${k}fired = true`;
19
+ }
20
+ return v;
21
+ }
22
+ ],
23
+ init: [
24
+ options.disableDefaults ? void 0 : {
25
+ htmlAttrs: {
26
+ lang: "en"
27
+ },
28
+ meta: [
29
+ {
30
+ charset: "utf-8"
31
+ },
32
+ {
33
+ name: "viewport",
34
+ content: "width=device-width, initial-scale=1"
35
+ }
36
+ ]
37
+ },
38
+ ...options.init || []
39
+ ]
40
+ });
41
+ unhead._ssrPayload = {};
42
+ unhead.use({
43
+ key: "server",
44
+ hooks: {
45
+ "tags:resolve": function(ctx) {
46
+ const title = ctx.tagMap.get("title");
47
+ const titleTemplate = ctx.tagMap.get("titleTemplate");
48
+ let payload = {
49
+ title: title?.mode === "server" ? unhead._title : void 0,
50
+ titleTemplate: titleTemplate?.mode === "server" ? unhead._titleTemplate : void 0
51
+ };
52
+ if (Object.keys(unhead._ssrPayload || {}).length > 0) {
53
+ payload = {
54
+ ...unhead._ssrPayload,
55
+ ...payload
56
+ };
57
+ }
58
+ if (Object.values(payload).some(Boolean)) {
59
+ ctx.tags.push({
60
+ tag: "script",
61
+ innerHTML: JSON.stringify(payload),
62
+ props: { id: "unhead:payload", type: "application/json" }
63
+ });
64
+ }
65
+ }
66
+ }
67
+ });
68
+ return unhead;
69
+ }
70
+
71
+ function extractUnheadInputFromHtml(html) {
72
+ return parseHtmlForUnheadExtraction(html);
73
+ }
74
+
75
+ function encodeAttribute(value) {
76
+ return String(value).replace(/"/g, """);
77
+ }
78
+ function propsToString(props) {
79
+ let attrs = "";
80
+ for (const key in props) {
81
+ if (!Object.hasOwn(props, key))
82
+ continue;
83
+ let value = props[key];
84
+ if ((key === "class" || key === "style") && typeof value !== "string") {
85
+ value = key === "class" ? Array.from(value).join(" ") : Array.from(value).map(([k, v]) => `${k}:${v}`).join(";");
86
+ }
87
+ if (value !== false && value !== null) {
88
+ attrs += value === true ? ` ${key}` : ` ${key}="${encodeAttribute(value)}"`;
89
+ }
90
+ }
91
+ return attrs;
92
+ }
93
+
94
+ function escapeHtml(str) {
95
+ return str.replace(/[&<>"'/]/g, (char) => {
96
+ switch (char) {
97
+ case "&":
98
+ return "&amp;";
99
+ case "<":
100
+ return "&lt;";
101
+ case ">":
102
+ return "&gt;";
103
+ case '"':
104
+ return "&quot;";
105
+ case "'":
106
+ return "&#x27;";
107
+ case "/":
108
+ return "&#x2F;";
109
+ default:
110
+ return char;
111
+ }
112
+ });
113
+ }
114
+ function tagToString(tag) {
115
+ const attrs = propsToString(tag.props);
116
+ const openTag = `<${tag.tag}${attrs}>`;
117
+ if (!TagsWithInnerContent.has(tag.tag))
118
+ return SelfClosingTags.has(tag.tag) ? openTag : `${openTag}</${tag.tag}>`;
119
+ let content = String(tag.textContent || tag.innerHTML || "");
120
+ content = tag.tag === "title" ? escapeHtml(content) : content.replace(new RegExp(`</${tag.tag}`, "gi"), `<\\/${tag.tag}`);
121
+ return SelfClosingTags.has(tag.tag) ? openTag : `${openTag}${content}</${tag.tag}>`;
122
+ }
123
+
124
+ function ssrRenderTags(tags, options) {
125
+ const schema = { htmlAttrs: {}, bodyAttrs: {}, tags: { head: "", bodyClose: "", bodyOpen: "" } };
126
+ const lineBreaks = !options?.omitLineBreaks ? "\n" : "";
127
+ for (const tag of tags) {
128
+ if (tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs") {
129
+ Object.assign(schema[tag.tag], tag.props);
130
+ continue;
131
+ }
132
+ const s = tagToString(tag);
133
+ const tagPosition = tag.tagPosition || "head";
134
+ schema.tags[tagPosition] += schema.tags[tagPosition] ? `${lineBreaks}${s}` : s;
135
+ }
136
+ return {
137
+ headTags: schema.tags.head,
138
+ bodyTags: schema.tags.bodyClose,
139
+ bodyTagsOpen: schema.tags.bodyOpen,
140
+ htmlAttrs: propsToString(schema.htmlAttrs),
141
+ bodyAttrs: propsToString(schema.bodyAttrs)
142
+ };
143
+ }
144
+
145
+ // @__NO_SIDE_EFFECTS__
146
+ async function renderSSRHead(head, options) {
147
+ const beforeRenderCtx = { shouldRender: true };
148
+ await head.hooks.callHook("ssr:beforeRender", beforeRenderCtx);
149
+ if (!beforeRenderCtx.shouldRender) {
150
+ return {
151
+ headTags: "",
152
+ bodyTags: "",
153
+ bodyTagsOpen: "",
154
+ htmlAttrs: "",
155
+ bodyAttrs: ""
156
+ };
157
+ }
158
+ const ctx = { tags: options?.resolvedTags || await head.resolveTags() };
159
+ await head.hooks.callHook("ssr:render", ctx);
160
+ const html = ssrRenderTags(ctx.tags, options);
161
+ const renderCtx = { tags: ctx.tags, html };
162
+ await head.hooks.callHook("ssr:rendered", renderCtx);
163
+ return renderCtx.html;
164
+ }
165
+
166
+ // @__NO_SIDE_EFFECTS__
167
+ async function transformHtmlTemplate(head, html, options) {
168
+ const template = parseHtmlForUnheadExtraction(html);
169
+ head.push(template.input, { _index: 0 });
170
+ const headHtml = await renderSSRHead(head, options);
171
+ return applyHeadToHtml(template, headHtml);
172
+ }
173
+ // @__NO_SIDE_EFFECTS__
174
+ async function transformHtmlTemplateRaw(head, html, options) {
175
+ const headHtml = await renderSSRHead(head, options);
176
+ const template = parseHtmlForIndexes(html);
177
+ return applyHeadToHtml(template, headHtml);
178
+ }
179
+
180
+ export { createHead, escapeHtml, extractUnheadInputFromHtml, propsToString, renderSSRHead, ssrRenderTags, tagToString, transformHtmlTemplate, transformHtmlTemplateRaw };
@@ -0,0 +1,44 @@
1
+ import { S as SafeInputPlugin, F as FlatMetaPlugin } from './unhead.CApf5sj3.mjs';
2
+
3
+ function useHead(unhead, input, options = {}) {
4
+ return unhead.push(input || {}, options);
5
+ }
6
+ function useHeadSafe(unhead, input = {}, options = {}) {
7
+ unhead.use(SafeInputPlugin);
8
+ return useHead(unhead, input, Object.assign(options, { _safe: true }));
9
+ }
10
+ function useSeoMeta(unhead, input = {}, options) {
11
+ unhead.use(FlatMetaPlugin);
12
+ function normalize(input2) {
13
+ if (input2._flatMeta) {
14
+ return input2;
15
+ }
16
+ const { title, titleTemplate, ...meta } = input2 || {};
17
+ return {
18
+ title,
19
+ titleTemplate,
20
+ _flatMeta: meta
21
+ };
22
+ }
23
+ const entry = unhead.push(normalize(input), options);
24
+ const corePatch = entry.patch;
25
+ if (!entry.__patched) {
26
+ entry.patch = (input2) => corePatch(normalize(input2));
27
+ entry.__patched = true;
28
+ }
29
+ return entry;
30
+ }
31
+ function useServerHead(unhead, input = {}, options = {}) {
32
+ options.mode = "server";
33
+ return unhead.push(input, options);
34
+ }
35
+ function useServerHeadSafe(unhead, input = {}, options = {}) {
36
+ options.mode = "server";
37
+ return useHeadSafe(unhead, input, { ...options, mode: "server" });
38
+ }
39
+ function useServerSeoMeta(unhead, input = {}, options) {
40
+ options.mode = "server";
41
+ return useSeoMeta(unhead, input, { ...options, mode: "server" });
42
+ }
43
+
44
+ export { useHeadSafe as a, useSeoMeta as b, useServerHead as c, useServerHeadSafe as d, useServerSeoMeta as e, useHead as u };
@@ -0,0 +1,43 @@
1
+ const SepSub = "%separator";
2
+ function sub(p, token, isJson = false) {
3
+ let val;
4
+ if (token === "s" || token === "pageTitle") {
5
+ val = p.pageTitle;
6
+ } else if (token.includes(".")) {
7
+ const dotIndex = token.indexOf(".");
8
+ val = p[token.substring(0, dotIndex)]?.[token.substring(dotIndex + 1)];
9
+ } else {
10
+ val = p[token];
11
+ }
12
+ if (val !== void 0) {
13
+ return isJson ? (val || "").replace(/\\/g, "\\\\").replace(/</g, "\\u003C").replace(/"/g, '\\"') : val || "";
14
+ }
15
+ return void 0;
16
+ }
17
+ function processTemplateParams(s, p, sep, isJson = false) {
18
+ if (typeof s !== "string" || !s.includes("%"))
19
+ return s;
20
+ let decoded = s;
21
+ try {
22
+ decoded = decodeURI(s);
23
+ } catch {
24
+ }
25
+ const tokens = decoded.match(/%\w+(?:\.\w+)?/g);
26
+ if (!tokens) {
27
+ return s;
28
+ }
29
+ const hasSepSub = s.includes(SepSub);
30
+ s = s.replace(/%\w+(?:\.\w+)?/g, (token) => {
31
+ if (token === SepSub || !tokens.includes(token)) {
32
+ return token;
33
+ }
34
+ const re = sub(p, token.slice(1), isJson);
35
+ return re !== void 0 ? re : token;
36
+ }).trim();
37
+ if (hasSepSub) {
38
+ s = s.split(SepSub).map((part) => part.trim()).filter((part) => part !== "").join(sep ? ` ${sep} ` : " ");
39
+ }
40
+ return s;
41
+ }
42
+
43
+ export { processTemplateParams as p };
@@ -0,0 +1,269 @@
1
+ import { b as ScriptNetworkEvents } from './unhead.yem5I2v_.mjs';
2
+
3
+ function createNoopedRecordingProxy(instance = {}) {
4
+ const stack = [];
5
+ let stackIdx = -1;
6
+ const handler = (reuseStack = false) => ({
7
+ get(_, prop, receiver) {
8
+ if (!reuseStack) {
9
+ const v = Reflect.get(_, prop, receiver);
10
+ if (typeof v !== "undefined") {
11
+ return v;
12
+ }
13
+ stackIdx++;
14
+ stack[stackIdx] = [];
15
+ }
16
+ stack[stackIdx].push({ type: "get", key: prop });
17
+ return new Proxy(() => {
18
+ }, handler(true));
19
+ },
20
+ apply(_, __, args) {
21
+ stack[stackIdx].push({ type: "apply", key: "", args });
22
+ return void 0;
23
+ }
24
+ });
25
+ return {
26
+ proxy: new Proxy(instance || {}, handler()),
27
+ stack
28
+ };
29
+ }
30
+ function createForwardingProxy(target) {
31
+ const handler = {
32
+ get(_, prop, receiver) {
33
+ const v = Reflect.get(_, prop, receiver);
34
+ if (typeof v === "object") {
35
+ return new Proxy(v, handler);
36
+ }
37
+ return v;
38
+ },
39
+ apply(_, __, args) {
40
+ Reflect.apply(_, __, args);
41
+ return void 0;
42
+ }
43
+ };
44
+ return new Proxy(target, handler);
45
+ }
46
+ function replayProxyRecordings(target, stack) {
47
+ stack.forEach((recordings) => {
48
+ let context = target;
49
+ let prevContext = target;
50
+ recordings.forEach(({ type, key, args }) => {
51
+ if (type === "get") {
52
+ prevContext = context;
53
+ context = context[key];
54
+ } else if (type === "apply") {
55
+ context = context.call(prevContext, ...args);
56
+ }
57
+ });
58
+ });
59
+ }
60
+
61
+ function resolveScriptKey(input) {
62
+ return input.key || input.src || (typeof input.innerHTML === "string" ? input.innerHTML : "");
63
+ }
64
+ const PreconnectServerModes = ["preconnect", "dns-prefetch"];
65
+ function useScript(head, _input, _options) {
66
+ const input = typeof _input === "string" ? { src: _input } : _input;
67
+ const options = _options || {};
68
+ const id = resolveScriptKey(input);
69
+ const prevScript = head._scripts?.[id];
70
+ if (prevScript) {
71
+ prevScript.setupTriggerHandler(options.trigger);
72
+ return prevScript;
73
+ }
74
+ options.beforeInit?.();
75
+ const syncStatus = (s) => {
76
+ script.status = s;
77
+ head.hooks.callHook(`script:updated`, hookCtx);
78
+ };
79
+ ScriptNetworkEvents.forEach((fn) => {
80
+ const k = fn;
81
+ const _fn = typeof input[k] === "function" ? input[k].bind(options.eventContext) : null;
82
+ input[k] = (e) => {
83
+ syncStatus(fn === "onload" ? "loaded" : fn === "onerror" ? "error" : "loading");
84
+ _fn?.(e);
85
+ };
86
+ });
87
+ const _cbs = { loaded: [], error: [] };
88
+ const _uniqueCbs = /* @__PURE__ */ new Set();
89
+ const _registerCb = (key, cb, options2) => {
90
+ if (head.ssr) {
91
+ return;
92
+ }
93
+ if (options2?.key) {
94
+ const key2 = `${options2?.key}:${options2.key}`;
95
+ if (_uniqueCbs.has(key2)) {
96
+ return;
97
+ }
98
+ _uniqueCbs.add(key2);
99
+ }
100
+ if (_cbs[key]) {
101
+ const i = _cbs[key].push(cb);
102
+ return () => _cbs[key]?.splice(i - 1, 1);
103
+ }
104
+ cb(script.instance);
105
+ return () => {
106
+ };
107
+ };
108
+ const loadPromise = new Promise((resolve) => {
109
+ if (head.ssr)
110
+ return;
111
+ const emit = (api) => requestAnimationFrame(() => resolve(api));
112
+ const _ = head.hooks.hook("script:updated", ({ script: script2 }) => {
113
+ const status = script2.status;
114
+ if (script2.id === id && (status === "loaded" || status === "error")) {
115
+ if (status === "loaded") {
116
+ if (typeof options.use === "function") {
117
+ const api = options.use();
118
+ if (api) {
119
+ emit(api);
120
+ }
121
+ } else {
122
+ emit({});
123
+ }
124
+ } else if (status === "error") {
125
+ resolve(false);
126
+ }
127
+ _();
128
+ }
129
+ });
130
+ });
131
+ const script = {
132
+ _loadPromise: loadPromise,
133
+ instance: !head.ssr && options?.use?.() || null,
134
+ proxy: null,
135
+ id,
136
+ status: "awaitingLoad",
137
+ remove() {
138
+ script._triggerAbortControllers?.forEach((ac) => ac.abort());
139
+ script._triggerAbortControllers?.clear();
140
+ script._triggerPromises = [];
141
+ script._warmupEl?.dispose();
142
+ if (script.entry) {
143
+ script.entry.dispose();
144
+ script.entry = void 0;
145
+ syncStatus("removed");
146
+ delete head._scripts?.[id];
147
+ return true;
148
+ }
149
+ return false;
150
+ },
151
+ warmup(rel) {
152
+ const { src } = input;
153
+ const isCrossOrigin = !src.startsWith("/") || src.startsWith("//");
154
+ const isPreconnect = rel && PreconnectServerModes.includes(rel);
155
+ let href = src;
156
+ if (!rel || isPreconnect && !isCrossOrigin) {
157
+ return;
158
+ }
159
+ if (isPreconnect) {
160
+ const $url = new URL(src);
161
+ href = `${$url.protocol}//${$url.host}`;
162
+ }
163
+ const link = {
164
+ href,
165
+ rel,
166
+ crossorigin: typeof input.crossorigin !== "undefined" ? input.crossorigin : isCrossOrigin ? "anonymous" : void 0,
167
+ referrerpolicy: typeof input.referrerpolicy !== "undefined" ? input.referrerpolicy : isCrossOrigin ? "no-referrer" : void 0,
168
+ fetchpriority: typeof input.fetchpriority !== "undefined" ? input.fetchpriority : "low",
169
+ integrity: input.integrity,
170
+ as: rel === "preload" ? "script" : void 0
171
+ };
172
+ script._warmupEl = head.push({ link: [link] }, { head, tagPriority: "high" });
173
+ return script._warmupEl;
174
+ },
175
+ load(cb) {
176
+ script._triggerAbortControllers?.forEach((ac) => ac.abort());
177
+ script._triggerAbortControllers?.clear();
178
+ script._triggerPromises = [];
179
+ if (!script.entry) {
180
+ syncStatus("loading");
181
+ const defaults = {
182
+ defer: true,
183
+ fetchpriority: "low"
184
+ };
185
+ if (input.src && (input.src.startsWith("http") || input.src.startsWith("//"))) {
186
+ defaults.crossorigin = "anonymous";
187
+ defaults.referrerpolicy = "no-referrer";
188
+ }
189
+ script.entry = head.push({
190
+ script: [{ ...defaults, ...input }]
191
+ }, options);
192
+ }
193
+ if (cb)
194
+ _registerCb("loaded", cb);
195
+ return loadPromise;
196
+ },
197
+ onLoaded(cb, options2) {
198
+ return _registerCb("loaded", cb, options2);
199
+ },
200
+ onError(cb, options2) {
201
+ return _registerCb("error", cb, options2);
202
+ },
203
+ setupTriggerHandler(trigger) {
204
+ if (script.status !== "awaitingLoad") {
205
+ return;
206
+ }
207
+ if ((typeof trigger === "undefined" || trigger === "client") && !head.ssr || trigger === "server") {
208
+ script.load();
209
+ } else if (trigger instanceof Promise) {
210
+ if (head.ssr) {
211
+ return;
212
+ }
213
+ const abortController = new AbortController();
214
+ script._triggerAbortControllers = script._triggerAbortControllers || /* @__PURE__ */ new Set();
215
+ script._triggerAbortControllers.add(abortController);
216
+ const abortPromise = new Promise((resolve) => {
217
+ abortController.signal.addEventListener("abort", () => {
218
+ script._triggerAbortControllers?.delete(abortController);
219
+ resolve();
220
+ });
221
+ });
222
+ script._triggerAbortController = abortController;
223
+ script._triggerPromises = script._triggerPromises || [];
224
+ const idx = script._triggerPromises.push(Promise.race([
225
+ trigger.then((v) => typeof v === "undefined" || v ? script.load : void 0),
226
+ abortPromise
227
+ ]).catch(() => {
228
+ }).then((res) => {
229
+ res?.();
230
+ }).finally(() => {
231
+ script._triggerPromises?.splice(idx, 1);
232
+ }));
233
+ } else if (typeof trigger === "function") {
234
+ trigger(script.load);
235
+ }
236
+ },
237
+ _cbs
238
+ };
239
+ loadPromise.then((api) => {
240
+ if (api !== false) {
241
+ script.instance = api;
242
+ _cbs.loaded?.forEach((cb) => cb(api));
243
+ _cbs.loaded = null;
244
+ } else {
245
+ _cbs.error?.forEach((cb) => cb());
246
+ _cbs.error = null;
247
+ }
248
+ });
249
+ const hookCtx = { script };
250
+ script.setupTriggerHandler(options.trigger);
251
+ if (options.use) {
252
+ const { proxy, stack } = createNoopedRecordingProxy(head.ssr ? {} : options.use() || {});
253
+ script.proxy = proxy;
254
+ script.onLoaded((instance) => {
255
+ replayProxyRecordings(instance, stack);
256
+ script.proxy = createForwardingProxy(instance);
257
+ });
258
+ }
259
+ if (!options.warmupStrategy && (typeof options.trigger === "undefined" || options.trigger === "client")) {
260
+ options.warmupStrategy = "preload";
261
+ }
262
+ if (options.warmupStrategy) {
263
+ script.warmup(options.warmupStrategy);
264
+ }
265
+ head._scripts = Object.assign(head._scripts || {}, { [id]: script });
266
+ return script;
267
+ }
268
+
269
+ export { resolveScriptKey as r, useScript as u };
@@ -0,0 +1,148 @@
1
+ import { u as unpackMeta } from './unhead.DQc16pHI.mjs';
2
+
3
+ function defineHeadPlugin(plugin) {
4
+ return plugin;
5
+ }
6
+
7
+ const FlatMetaPlugin = /* @__PURE__ */ defineHeadPlugin({
8
+ key: "flatMeta",
9
+ hooks: {
10
+ "entries:normalize": (ctx) => {
11
+ const tagsToAdd = [];
12
+ ctx.tags = ctx.tags.map((t) => {
13
+ if (t.tag !== "_flatMeta") {
14
+ return t;
15
+ }
16
+ tagsToAdd.push(unpackMeta(t.props).map((p) => ({
17
+ ...t,
18
+ tag: "meta",
19
+ props: p
20
+ })));
21
+ return false;
22
+ }).filter(Boolean).concat(...tagsToAdd);
23
+ }
24
+ }
25
+ });
26
+
27
+ const WhitelistAttributes = {
28
+ htmlAttrs: /* @__PURE__ */ new Set(["class", "style", "lang", "dir"]),
29
+ bodyAttrs: /* @__PURE__ */ new Set(["class", "style"]),
30
+ meta: /* @__PURE__ */ new Set(["name", "property", "charset", "content", "media"]),
31
+ noscript: /* @__PURE__ */ new Set(["textContent"]),
32
+ style: /* @__PURE__ */ new Set(["media", "textContent", "nonce", "title", "blocking"]),
33
+ script: /* @__PURE__ */ new Set(["type", "textContent", "nonce", "blocking"]),
34
+ link: /* @__PURE__ */ new Set(["color", "crossorigin", "fetchpriority", "href", "hreflang", "imagesrcset", "imagesizes", "integrity", "media", "referrerpolicy", "rel", "sizes", "type"])
35
+ };
36
+ function acceptDataAttrs(value) {
37
+ return Object.fromEntries(
38
+ Object.entries(value || {}).filter(([key]) => key === "id" || key.startsWith("data-"))
39
+ );
40
+ }
41
+ function makeTagSafe(tag) {
42
+ let next = {};
43
+ const { tag: type, props: prev } = tag;
44
+ switch (type) {
45
+ // always safe
46
+ case "title":
47
+ case "titleTemplate":
48
+ case "templateParams":
49
+ next = prev;
50
+ break;
51
+ case "htmlAttrs":
52
+ case "bodyAttrs":
53
+ WhitelistAttributes[type].forEach((attr) => {
54
+ if (prev[attr]) {
55
+ next[attr] = prev[attr];
56
+ }
57
+ });
58
+ break;
59
+ case "style":
60
+ next = acceptDataAttrs(prev);
61
+ WhitelistAttributes.style.forEach((key) => {
62
+ if (prev[key]) {
63
+ next[key] = prev[key];
64
+ }
65
+ });
66
+ break;
67
+ // meta is safe, except for http-equiv
68
+ case "meta":
69
+ WhitelistAttributes.meta.forEach((key) => {
70
+ if (prev[key]) {
71
+ next[key] = prev[key];
72
+ }
73
+ });
74
+ break;
75
+ // link tags we don't allow stylesheets, scripts, preloading, prerendering, prefetching, etc
76
+ case "link":
77
+ WhitelistAttributes.link.forEach((key) => {
78
+ const val = prev[key];
79
+ if (!val) {
80
+ return;
81
+ }
82
+ if (key === "rel" && (val === "canonical" || val === "modulepreload" || val === "prerender" || val === "preload" || val === "prefetch")) {
83
+ return;
84
+ }
85
+ if (key === "href") {
86
+ if (val.includes("javascript:") || val.includes("data:")) {
87
+ return;
88
+ }
89
+ next[key] = val;
90
+ } else if (val) {
91
+ next[key] = val;
92
+ }
93
+ });
94
+ if (!next.href && !next.imagesrcset || !next.rel) {
95
+ return false;
96
+ }
97
+ break;
98
+ case "noscript":
99
+ WhitelistAttributes.noscript.forEach((key) => {
100
+ if (prev[key]) {
101
+ next[key] = prev[key];
102
+ }
103
+ });
104
+ break;
105
+ // we only allow JSON in scripts
106
+ case "script":
107
+ if (!tag.textContent || !prev.type?.endsWith("json")) {
108
+ return false;
109
+ }
110
+ WhitelistAttributes.script.forEach((s) => {
111
+ if (prev[s] === "textContent") {
112
+ try {
113
+ const jsonVal = typeof prev[s] === "string" ? JSON.parse(prev[s]) : prev[s];
114
+ next[s] = JSON.stringify(jsonVal, null, 0);
115
+ } catch {
116
+ }
117
+ } else if (prev[s]) {
118
+ next[s] = prev[s];
119
+ }
120
+ });
121
+ break;
122
+ }
123
+ if (!Object.keys(next).length && !tag.tag.endsWith("Attrs")) {
124
+ return false;
125
+ }
126
+ tag.props = { ...acceptDataAttrs(prev), ...next };
127
+ return tag;
128
+ }
129
+ const SafeInputPlugin = (
130
+ /* @PURE */
131
+ defineHeadPlugin({
132
+ key: "safe",
133
+ hooks: {
134
+ "entries:normalize": (ctx) => {
135
+ if (ctx.entry.options?._safe) {
136
+ ctx.tags = ctx.tags.reduce((acc, tag) => {
137
+ const safeTag = makeTagSafe(tag);
138
+ if (safeTag)
139
+ acc.push(safeTag);
140
+ return acc;
141
+ }, []);
142
+ }
143
+ }
144
+ }
145
+ })
146
+ );
147
+
148
+ export { FlatMetaPlugin as F, SafeInputPlugin as S, defineHeadPlugin as d };