nuxt-ignis 0.5.2 → 0.5.3

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 (409) hide show
  1. package/.data/content/contents.sqlite +0 -0
  2. package/.env +1 -1
  3. package/.nuxt/components.d.ts +480 -858
  4. package/.nuxt/content/components.ts +177 -320
  5. package/.nuxt/dev/index.mjs +542 -530
  6. package/.nuxt/dev/index.mjs.map +1 -1
  7. package/.nuxt/dist/server/client.manifest.mjs +1 -1
  8. package/.nuxt/dist/server/client.precomputed.mjs +1 -1
  9. package/.nuxt/eslint-typegen.d.ts +60 -111
  10. package/.nuxt/eslint.config.d.mts +2 -2
  11. package/.nuxt/eslint.config.mjs +9 -9
  12. package/.nuxt/imports.d.ts +71 -70
  13. package/.nuxt/manifest/latest.json +1 -1
  14. package/.nuxt/manifest/meta/dev.json +1 -1
  15. package/.nuxt/module/nuxt-robots.d.ts +13 -12
  16. package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
  17. package/.nuxt/module/nuxt-site-config.d.ts +8 -8
  18. package/.nuxt/module/nuxt-sitemap.d.ts +18 -18
  19. package/.nuxt/nitro.json +4 -4
  20. package/.nuxt/nuxt.d.ts +6 -6
  21. package/.nuxt/nuxt.json +2 -2
  22. package/.nuxt/nuxt.node.d.ts +7 -6
  23. package/.nuxt/tsconfig.app.json +192 -188
  24. package/.nuxt/tsconfig.json +195 -191
  25. package/.nuxt/tsconfig.node.json +108 -104
  26. package/.nuxt/tsconfig.server.json +128 -127
  27. package/.nuxt/tsconfig.shared.json +62 -62
  28. package/.nuxt/types/build.d.ts +1 -1
  29. package/.nuxt/types/components.d.ts +480 -858
  30. package/.nuxt/types/i18n-plugin.d.ts +2 -2
  31. package/.nuxt/types/imports.d.ts +368 -366
  32. package/.nuxt/types/modules.d.ts +22 -24
  33. package/.nuxt/types/nitro-imports.d.ts +66 -66
  34. package/.nuxt/types/nitro-nuxt.d.ts +1 -1
  35. package/.nuxt/types/nitro-routes.d.ts +16 -16
  36. package/.nuxt/types/plugins.d.ts +37 -37
  37. package/.nuxt/types/runtime-config.d.ts +3 -1
  38. package/.output/nitro.json +2 -2
  39. package/.output/public/_ignis-config.json +6 -0
  40. package/.output/public/_nuxt/-OUwOzoZ.js +1 -0
  41. package/.output/public/_nuxt/-z2jk33i.js +1 -0
  42. package/.output/public/_nuxt/3L5yAyVe.js +1 -0
  43. package/.output/public/_nuxt/8nlalpbc.js +1 -0
  44. package/.output/public/_nuxt/As5Zy5cG.js +1 -0
  45. package/.output/public/_nuxt/B-TDuiGE.js +1 -0
  46. package/.output/public/_nuxt/B04mZI32.js +1 -0
  47. package/.output/public/_nuxt/B3zmx-p1.js +1 -0
  48. package/.output/public/_nuxt/B4eQjLRH.js +1 -0
  49. package/.output/public/_nuxt/B6WOJ0Em.js +1 -0
  50. package/.output/public/_nuxt/BB2ULiwb.js +1 -0
  51. package/.output/public/_nuxt/BEvX3xjB.js +1 -0
  52. package/.output/public/_nuxt/BFcGh2xo.js +1 -0
  53. package/.output/public/_nuxt/BFdGKCUO.js +1 -0
  54. package/.output/public/_nuxt/BG-5V6Ik.js +1 -0
  55. package/.output/public/_nuxt/BeRTSVEP.js +1 -0
  56. package/.output/public/_nuxt/Bh-DZrTV.js +1 -0
  57. package/.output/public/_nuxt/BvFz8iHh.js +1 -0
  58. package/.output/public/_nuxt/BwUgVogm.js +1 -0
  59. package/.output/public/_nuxt/C1fHW8CN.js +1 -0
  60. package/.output/public/_nuxt/C1getMtX.js +49 -0
  61. package/.output/public/_nuxt/C4nGy0Yj.js +1 -0
  62. package/.output/public/_nuxt/CExm4AMI.js +1 -0
  63. package/.output/public/_nuxt/CHcd0nHy.js +1 -0
  64. package/.output/public/_nuxt/CTbEZMxa.js +1 -0
  65. package/.output/public/_nuxt/CZ5QNOH8.js +1 -0
  66. package/.output/public/_nuxt/Cna7T5zY.js +1 -0
  67. package/.output/public/_nuxt/CnghUxEk.js +1 -0
  68. package/.output/public/_nuxt/CvJSUdvI.js +1 -0
  69. package/.output/public/_nuxt/CwgBHvd_.js +1 -0
  70. package/.output/public/_nuxt/D1nIr4-J.js +1 -0
  71. package/.output/public/_nuxt/D2atCez-.js +1 -0
  72. package/.output/public/_nuxt/D3WX5Hmk.js +1 -0
  73. package/.output/public/_nuxt/D5duQQkG.js +1 -0
  74. package/.output/public/_nuxt/D9RSHNPZ.js +1 -0
  75. package/.output/public/_nuxt/DB3c8m3K.js +1 -0
  76. package/.output/public/_nuxt/DFP1sKjc.js +1 -0
  77. package/.output/public/_nuxt/DI5_qtj_.js +1 -0
  78. package/.output/public/_nuxt/DKCDh1Eq.js +1 -0
  79. package/.output/public/_nuxt/DN3AlbuD.js +1 -0
  80. package/.output/public/_nuxt/DPDbQA17.js +1 -0
  81. package/.output/public/_nuxt/DSErOj49.js +1 -0
  82. package/.output/public/_nuxt/DXrSmKSt.js +1 -0
  83. package/.output/public/_nuxt/DbZ1CQfQ.js +1 -0
  84. package/.output/public/_nuxt/DgCebJqk.js +1 -0
  85. package/.output/public/_nuxt/DhhwMwQM.js +1 -0
  86. package/.output/public/_nuxt/Djhwz52y.js +1 -0
  87. package/.output/public/_nuxt/DnE1KSqg.js +1 -0
  88. package/.output/public/_nuxt/DncFEy6i.js +1 -0
  89. package/.output/public/_nuxt/DpZCZGQO.js +1 -0
  90. package/.output/public/_nuxt/Dx95U2T3.js +1 -0
  91. package/.output/public/_nuxt/FUdAqSn9.js +9 -0
  92. package/.output/public/_nuxt/GvxWNFgu.js +1 -0
  93. package/.output/public/_nuxt/HgKyGH3C.js +1 -0
  94. package/.output/public/_nuxt/Hxhp1Hz0.js +1 -0
  95. package/.output/public/_nuxt/LpFrvoF7.js +1 -0
  96. package/.output/public/_nuxt/{Pre.DHQaXnEy.css → Pre.HegCCrfd.css} +1 -1
  97. package/.output/public/_nuxt/Sz6HDPqh.js +1 -0
  98. package/.output/public/_nuxt/U1_7ggcx.js +1 -0
  99. package/.output/public/_nuxt/X8ZdEYzW.js +1 -0
  100. package/.output/public/_nuxt/ahq42_9S.js +1 -0
  101. package/.output/public/_nuxt/b0AtYQ73.js +1 -0
  102. package/.output/public/_nuxt/builds/latest.json +1 -1
  103. package/.output/public/_nuxt/builds/meta/78080714-55fa-441d-9998-a6fb0c7ee057.json +1 -0
  104. package/.output/public/_nuxt/efC_w6sP.js +1 -0
  105. package/.output/public/_nuxt/entry.9ygoOcLs.css +1 -0
  106. package/.output/public/_nuxt/error-404.0Tbhbu-E.css +1 -0
  107. package/.output/public/_nuxt/error-500.ClQbyW3Z.css +1 -0
  108. package/.output/public/_nuxt/ulE7jr93.js +1 -0
  109. package/.output/public/_nuxt/xHyrElgL.js +1 -0
  110. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  111. package/.output/server/chunks/_/i18n.config.mjs.map +1 -1
  112. package/.output/server/chunks/_/nitro.mjs +1176 -1775
  113. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  114. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  115. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
  116. package/.output/server/chunks/build/database.compressed.mjs.map +1 -1
  117. package/.output/server/chunks/raw/headers.mjs.map +1 -1
  118. package/.output/server/chunks/routes/api/neonTest.mjs +2 -2
  119. package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -1
  120. package/.output/server/chunks/routes/renderer.mjs +27 -2
  121. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  122. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -1
  123. package/.output/server/chunks/virtual/child-sources.mjs.map +1 -1
  124. package/.output/server/chunks/virtual/global-sources.mjs +0 -8
  125. package/.output/server/chunks/virtual/global-sources.mjs.map +1 -1
  126. package/.output/server/index.mjs +1 -1
  127. package/.output/server/index.mjs.map +1 -1
  128. package/.output/server/node_modules/.nitro/{entities@4.5.0/lib/decode_codepoint.js → entities@7.0.0/dist/commonjs/decode-codepoint.js} +16 -15
  129. package/.output/server/node_modules/.nitro/{entities@4.5.0/lib → entities@7.0.0/dist/commonjs}/decode.js +200 -168
  130. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-html.js +7 -0
  131. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-xml.js +7 -0
  132. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/bin-trie-flags.js +21 -0
  133. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/decode-shared.js +31 -0
  134. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/package.json +3 -0
  135. package/.output/server/node_modules/.nitro/entities@7.0.0/package.json +113 -0
  136. package/.output/server/node_modules/@intlify/core/dist/core.mjs +1 -1
  137. package/.output/server/node_modules/@intlify/core/package.json +3 -3
  138. package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +2 -2
  139. package/.output/server/node_modules/@intlify/core-base/package.json +4 -4
  140. package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1 -1
  141. package/.output/server/node_modules/@intlify/message-compiler/package.json +2 -2
  142. package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +1 -1
  143. package/.output/server/node_modules/@intlify/shared/package.json +1 -1
  144. package/.output/server/node_modules/@neondatabase/serverless/package.json +4 -4
  145. package/.output/server/node_modules/@poppinss/exception/build/index.js +36 -55
  146. package/.output/server/node_modules/@poppinss/exception/package.json +19 -16
  147. package/.output/server/node_modules/@poppinss/string/build/index.js +2 -6
  148. package/.output/server/node_modules/@poppinss/string/build/string-ArFSN0fl.js +464 -0
  149. package/.output/server/node_modules/@poppinss/string/package.json +28 -25
  150. package/.output/server/node_modules/@shikijs/core/dist/index.mjs +111 -31
  151. package/.output/server/node_modules/@shikijs/core/package.json +2 -2
  152. package/.output/server/node_modules/@shikijs/engine-javascript/package.json +2 -2
  153. package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
  154. package/.output/server/node_modules/@shikijs/langs/package.json +2 -2
  155. package/.output/server/node_modules/@shikijs/themes/package.json +2 -2
  156. package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +56 -16
  157. package/.output/server/node_modules/@shikijs/transformers/package.json +3 -3
  158. package/.output/server/node_modules/@shikijs/types/package.json +1 -1
  159. package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/dist/compiler-core.cjs.prod.js +106 -85
  160. package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/package.json +3 -3
  161. package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/dist/compiler-dom.cjs.prod.js +54 -54
  162. package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/package.json +3 -3
  163. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +26 -26
  164. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  165. package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.25 → @vue/reactivity}/dist/reactivity.cjs.prod.js +4 -4
  166. package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.22 → @vue/reactivity}/package.json +2 -2
  167. package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.25 → @vue/runtime-core}/dist/runtime-core.cjs.prod.js +175 -155
  168. package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.22 → @vue/runtime-core}/package.json +3 -3
  169. package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.25 → @vue/runtime-dom}/dist/runtime-dom.cjs.prod.js +9 -9
  170. package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.22 → @vue/runtime-dom}/package.json +5 -5
  171. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +1 -1
  172. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
  173. package/.output/server/node_modules/{.nitro/@vue/shared@3.5.25 → @vue/shared}/dist/shared.cjs.prod.js +1 -1
  174. package/.output/server/node_modules/{.nitro/@vue/shared@3.5.22 → @vue/shared}/package.json +1 -1
  175. package/.output/server/node_modules/devalue/index.js +1 -0
  176. package/.output/server/node_modules/devalue/package.json +1 -1
  177. package/.output/server/node_modules/devalue/src/parse.js +5 -1
  178. package/.output/server/node_modules/devalue/src/stringify.js +7 -3
  179. package/.output/server/node_modules/devalue/src/uneval.js +7 -3
  180. package/.output/server/node_modules/devalue/src/utils.js +5 -1
  181. package/.output/server/node_modules/fast-xml-parser/package.json +4 -2
  182. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +19 -8
  183. package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +13 -19
  184. package/.output/server/node_modules/hast-util-to-parse5/package.json +8 -7
  185. package/.output/server/node_modules/jose/dist/webapi/index.js +4 -2
  186. package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  187. package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +2 -2
  188. package/.output/server/node_modules/jose/package.json +1 -1
  189. package/.output/server/node_modules/node-mock-http/package.json +10 -10
  190. package/.output/server/node_modules/regex/package.json +6 -6
  191. package/.output/server/node_modules/regex/src/atomic.js +6 -3
  192. package/.output/server/node_modules/shiki/package.json +7 -7
  193. package/.output/server/node_modules/strnum/package.json +1 -1
  194. package/.output/server/node_modules/strnum/strnum.js +1 -1
  195. package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
  196. package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
  197. package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.CGCfDSEL.mjs} +3 -3
  198. package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.CYpwL2hc.mjs} +12 -12
  199. package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
  200. package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
  201. package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
  202. package/.output/server/node_modules/unhead/package.json +1 -1
  203. package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/dist/vue.cjs.js +1 -1
  204. package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/dist/vue.cjs.prod.js +1 -1
  205. package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/package.json +6 -6
  206. package/.output/server/node_modules/vue-router/dist/{devtools-BLCumUwL.mjs → devtools-EWN81iOl.mjs} +6 -4
  207. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +3 -3
  208. package/.output/server/node_modules/vue-router/package.json +2 -3
  209. package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +1 -1
  210. package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +1 -1
  211. package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +2 -2
  212. package/.output/server/node_modules/yaml/dist/errors.js +1 -1
  213. package/.output/server/node_modules/yaml/dist/nodes/Alias.js +1 -1
  214. package/.output/server/node_modules/yaml/dist/parse/parser.js +2 -2
  215. package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +1 -1
  216. package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +1 -1
  217. package/.output/server/node_modules/yaml/package.json +4 -4
  218. package/.output/server/package.json +35 -38
  219. package/bin/set-app-vue.js +1 -1
  220. package/bin/set-css.js +1 -1
  221. package/bin/set-eslint.js +1 -1
  222. package/bin/setup.js +3 -3
  223. package/eslint.config.mjs +7 -4
  224. package/package.json +7 -7
  225. package/public/_ignis-config.json +6 -0
  226. package/vitest.config.ts +1 -3
  227. package/.output/public/_nuxt/-PRJHlJd.js +0 -1
  228. package/.output/public/_nuxt/38NkCNo_.js +0 -0
  229. package/.output/public/_nuxt/4p0_eEbF.js +0 -0
  230. package/.output/public/_nuxt/5P9Ak6Zm.js +0 -0
  231. package/.output/public/_nuxt/5msm7UDY.js +0 -0
  232. package/.output/public/_nuxt/7I_cTX05.js +0 -1
  233. package/.output/public/_nuxt/7N8aGG8C.js +0 -1
  234. package/.output/public/_nuxt/9j0d6I4O.js +0 -0
  235. package/.output/public/_nuxt/B7b1sBVf.js +0 -0
  236. package/.output/public/_nuxt/B7pFyPXj.js +0 -1
  237. package/.output/public/_nuxt/B8s7UrMM.js +0 -1
  238. package/.output/public/_nuxt/BHBmrOu8.js +0 -1
  239. package/.output/public/_nuxt/BHIv_dM4.js +0 -0
  240. package/.output/public/_nuxt/BI2n4fU-.js +0 -0
  241. package/.output/public/_nuxt/BJos6QuZ.js +0 -0
  242. package/.output/public/_nuxt/BKsXoEBs.js +0 -0
  243. package/.output/public/_nuxt/BNKvjWkT.js +0 -1
  244. package/.output/public/_nuxt/BQmtXkqc.js +0 -1
  245. package/.output/public/_nuxt/BQuCJQB8.js +0 -0
  246. package/.output/public/_nuxt/BSEIdlOb.js +0 -0
  247. package/.output/public/_nuxt/BST7mczs.js +0 -1
  248. package/.output/public/_nuxt/BTAjWPAo.js +0 -1
  249. package/.output/public/_nuxt/BYIIksjz.js +0 -0
  250. package/.output/public/_nuxt/BfZ1Ro0X.js +0 -1
  251. package/.output/public/_nuxt/Bg-6qayI.js +0 -1
  252. package/.output/public/_nuxt/BgP-osMP.js +0 -1
  253. package/.output/public/_nuxt/BiCkyLWS.js +0 -1
  254. package/.output/public/_nuxt/BjN_umGo.js +0 -1
  255. package/.output/public/_nuxt/BqK0HYmw.js +0 -1
  256. package/.output/public/_nuxt/BrSteMIA.js +0 -1
  257. package/.output/public/_nuxt/C-MeLOeF.js +0 -1
  258. package/.output/public/_nuxt/C-OKZMJp.js +0 -1
  259. package/.output/public/_nuxt/C6tJinWY.js +0 -0
  260. package/.output/public/_nuxt/C7lLQr2h.js +0 -0
  261. package/.output/public/_nuxt/CDLGLk8m.js +0 -1
  262. package/.output/public/_nuxt/CDT62st6.js +0 -1
  263. package/.output/public/_nuxt/CFimyBH-.js +0 -0
  264. package/.output/public/_nuxt/CG7cd7Sy.js +0 -1
  265. package/.output/public/_nuxt/CKPnIC-C.js +0 -0
  266. package/.output/public/_nuxt/COPw3T3p.js +0 -1
  267. package/.output/public/_nuxt/CQGFUxxa.js +0 -1
  268. package/.output/public/_nuxt/CSX_cLY6.js +0 -1
  269. package/.output/public/_nuxt/CaVNnfk7.js +0 -0
  270. package/.output/public/_nuxt/Cd1ifhTP.js +0 -0
  271. package/.output/public/_nuxt/CdygaddQ.js +0 -9
  272. package/.output/public/_nuxt/Cf-VPxfE.js +0 -1
  273. package/.output/public/_nuxt/CfmMK6-y.js +0 -1
  274. package/.output/public/_nuxt/Civ5r6YF.js +0 -1
  275. package/.output/public/_nuxt/CkdnMzBA.js +0 -0
  276. package/.output/public/_nuxt/CnlJVizr.js +0 -1
  277. package/.output/public/_nuxt/Coqgx10n.js +0 -0
  278. package/.output/public/_nuxt/CxMUMwzI.js +0 -1
  279. package/.output/public/_nuxt/Cyw3rpDt.js +0 -1
  280. package/.output/public/_nuxt/CzKgiVVn.js +0 -1
  281. package/.output/public/_nuxt/D-qXrpoJ.js +0 -0
  282. package/.output/public/_nuxt/D2vgCRoc.js +0 -1
  283. package/.output/public/_nuxt/D4fuXfD_.js +0 -1
  284. package/.output/public/_nuxt/D5IuxRu4.js +0 -1
  285. package/.output/public/_nuxt/D5j9Embb.js +0 -1
  286. package/.output/public/_nuxt/D6YL6Hhi.js +0 -0
  287. package/.output/public/_nuxt/DAIwjxRT.js +0 -0
  288. package/.output/public/_nuxt/DBEY94Mo.js +0 -0
  289. package/.output/public/_nuxt/DCQOMtdo.js +0 -1
  290. package/.output/public/_nuxt/DEQ3hSSO.js +0 -1
  291. package/.output/public/_nuxt/DFfCkFZ3.js +0 -1
  292. package/.output/public/_nuxt/DL4qe-W_.js +0 -0
  293. package/.output/public/_nuxt/DLKI6lgi.js +0 -0
  294. package/.output/public/_nuxt/DOAeoYpG.js +0 -0
  295. package/.output/public/_nuxt/DPQeTxQ3.js +0 -1
  296. package/.output/public/_nuxt/DP_txrAq.js +0 -1
  297. package/.output/public/_nuxt/DQKS5ddY.js +0 -1
  298. package/.output/public/_nuxt/DXXu9Lvl.js +0 -1
  299. package/.output/public/_nuxt/DcUS3ReQ.js +0 -0
  300. package/.output/public/_nuxt/DdWDmJe7.js +0 -0
  301. package/.output/public/_nuxt/Df59gZou.js +0 -0
  302. package/.output/public/_nuxt/DiIccoHR.js +0 -0
  303. package/.output/public/_nuxt/DiL3rzK6.js +0 -1
  304. package/.output/public/_nuxt/DkEHW4Vs.js +0 -0
  305. package/.output/public/_nuxt/DmRrrdJv.js +0 -1
  306. package/.output/public/_nuxt/Do5nYv4E.js +0 -0
  307. package/.output/public/_nuxt/DqyxgTAQ.js +0 -0
  308. package/.output/public/_nuxt/DrE64K_R.js +0 -1
  309. package/.output/public/_nuxt/DrskXsQH.js +0 -1
  310. package/.output/public/_nuxt/Ds7AWph0.js +0 -0
  311. package/.output/public/_nuxt/Dvcv58Mc.js +0 -1
  312. package/.output/public/_nuxt/FMWwyTQ_.js +0 -0
  313. package/.output/public/_nuxt/Q6bGSN8C.js +0 -0
  314. package/.output/public/_nuxt/QyE4cqYn.js +0 -1
  315. package/.output/public/_nuxt/Tcmkoyas.js +0 -1
  316. package/.output/public/_nuxt/Tj4XPHLn.js +0 -1
  317. package/.output/public/_nuxt/VOEA7UHD.js +0 -0
  318. package/.output/public/_nuxt/WOOfaOjG.js +0 -1
  319. package/.output/public/_nuxt/Y6FRsTFQ.js +0 -0
  320. package/.output/public/_nuxt/ZDbum-dK.js +0 -1
  321. package/.output/public/_nuxt/ZTY82FYd.js +0 -0
  322. package/.output/public/_nuxt/asVu8S_S.js +0 -51
  323. package/.output/public/_nuxt/builds/meta/68901e1f-eb2d-48db-9c33-8ac67fff1d62.json +0 -1
  324. package/.output/public/_nuxt/cjlVjclE.js +0 -1
  325. package/.output/public/_nuxt/entry.UZgisdi2.css +0 -1
  326. package/.output/public/_nuxt/error-404.DQ5oEvRi.css +0 -1
  327. package/.output/public/_nuxt/error-500.c8JA_zlB.css +0 -1
  328. package/.output/public/_nuxt/gmjYz5n6.js +0 -0
  329. package/.output/public/_nuxt/iatO0zkI.js +0 -1
  330. package/.output/public/_nuxt/jieRiiOw.js +0 -0
  331. package/.output/public/_nuxt/lAhMwKxb.js +0 -1
  332. package/.output/public/_nuxt/mHcxE7OD.js +0 -0
  333. package/.output/public/_nuxt/n17zLPF6.js +0 -0
  334. package/.output/public/_nuxt/ncv2QjU2.js +0 -1
  335. package/.output/public/_nuxt/osXHzmfu.js +0 -1
  336. package/.output/public/_nuxt/plapqmiu.js +0 -1
  337. package/.output/public/_nuxt/pnNmDVjA.js +0 -0
  338. package/.output/public/_nuxt/rxAL1Pmw.js +0 -1
  339. package/.output/public/_nuxt/ryzXmKdZ.js +0 -1
  340. package/.output/public/_nuxt/t9C3L8ir.js +0 -1
  341. package/.output/public/_nuxt/wQgAJ5T0.js +0 -1
  342. package/.output/public/_nuxt/z6h75OXJ.js +0 -1
  343. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/dist/compiler-core.cjs.prod.js +0 -6741
  344. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/package.json +0 -58
  345. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/dist/compiler-dom.cjs.prod.js +0 -689
  346. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/package.json +0 -57
  347. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.22/dist/reactivity.cjs.prod.js +0 -1807
  348. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.25/package.json +0 -55
  349. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.22/dist/runtime-core.cjs.prod.js +0 -6732
  350. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.25/package.json +0 -52
  351. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.22/dist/runtime-dom.cjs.prod.js +0 -1703
  352. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.25/package.json +0 -60
  353. package/.output/server/node_modules/.nitro/@vue/shared@3.5.22/dist/shared.cjs.prod.js +0 -604
  354. package/.output/server/node_modules/.nitro/@vue/shared@3.5.25/package.json +0 -47
  355. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +0 -9
  356. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +0 -9
  357. package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +0 -18
  358. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +0 -59
  359. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +0 -68
  360. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +0 -28
  361. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +0 -322
  362. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +0 -7
  363. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +0 -567
  364. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +0 -10
  365. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +0 -8
  366. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +0 -58
  367. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +0 -44
  368. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +0 -25
  369. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +0 -26
  370. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +0 -28
  371. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +0 -17
  372. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +0 -9
  373. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +0 -9
  374. package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +0 -93
  375. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +0 -13
  376. package/.output/server/node_modules/.nitro/vue@3.5.22/dist/vue.cjs.prod.js +0 -66
  377. package/.output/server/node_modules/.nitro/vue@3.5.22/package.json +0 -112
  378. package/.output/server/node_modules/.nitro/vue@3.5.25/dist/vue.cjs.js +0 -80
  379. package/.output/server/node_modules/.nitro/vue@3.5.25/index.js +0 -7
  380. package/.output/server/node_modules/.nitro/vue@3.5.25/index.mjs +0 -1
  381. package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +0 -34
  382. package/.output/server/node_modules/@lukeed/ms/package.json +0 -48
  383. package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +0 -407
  384. package/.output/server/node_modules/bytes/index.js +0 -170
  385. package/.output/server/node_modules/bytes/package.json +0 -42
  386. package/.output/server/node_modules/truncatise/index.js +0 -188
  387. package/.output/server/node_modules/truncatise/package.json +0 -36
  388. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/index.js +0 -0
  389. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/aria.js +0 -0
  390. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/find.js +0 -0
  391. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/hast-to-react.js +0 -0
  392. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/html.js +0 -0
  393. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/normalize.js +0 -0
  394. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/svg.js +0 -0
  395. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-insensitive-transform.js +0 -0
  396. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-sensitive-transform.js +0 -0
  397. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/create.js +0 -0
  398. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/defined-info.js +0 -0
  399. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/info.js +0 -0
  400. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/merge.js +0 -0
  401. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/schema.js +0 -0
  402. /package/.output/server/node_modules/{.nitro/property-information@6.5.0 → property-information}/lib/util/types.js +0 -0
  403. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xlink.js +0 -0
  404. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xml.js +0 -0
  405. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xmlns.js +0 -0
  406. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/package.json +0 -0
  407. /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.js +0 -0
  408. /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.mjs +0 -0
  409. /package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/server-renderer/index.mjs +0 -0
@@ -1,41 +1,15 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
2
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.decodeXML = exports.decodeHTMLStrict = exports.decodeHTMLAttribute = exports.decodeHTML = exports.determineBranch = exports.EntityDecoder = exports.DecodingMode = exports.BinTrieFlags = exports.fromCodePoint = exports.replaceCodePoint = exports.decodeCodePoint = exports.xmlDecodeTree = exports.htmlDecodeTree = void 0;
30
- var decode_data_html_js_1 = __importDefault(require("./generated/decode-data-html.js"));
31
- exports.htmlDecodeTree = decode_data_html_js_1.default;
32
- var decode_data_xml_js_1 = __importDefault(require("./generated/decode-data-xml.js"));
33
- exports.xmlDecodeTree = decode_data_xml_js_1.default;
34
- var decode_codepoint_js_1 = __importStar(require("./decode_codepoint.js"));
35
- exports.decodeCodePoint = decode_codepoint_js_1.default;
36
- var decode_codepoint_js_2 = require("./decode_codepoint.js");
37
- Object.defineProperty(exports, "replaceCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.replaceCodePoint; } });
38
- Object.defineProperty(exports, "fromCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.fromCodePoint; } });
3
+ exports.xmlDecodeTree = exports.htmlDecodeTree = exports.replaceCodePoint = exports.fromCodePoint = exports.decodeCodePoint = exports.EntityDecoder = exports.DecodingMode = void 0;
4
+ exports.determineBranch = determineBranch;
5
+ exports.decodeHTML = decodeHTML;
6
+ exports.decodeHTMLAttribute = decodeHTMLAttribute;
7
+ exports.decodeHTMLStrict = decodeHTMLStrict;
8
+ exports.decodeXML = decodeXML;
9
+ const decode_codepoint_js_1 = require("./decode-codepoint.js");
10
+ const decode_data_html_js_1 = require("./generated/decode-data-html.js");
11
+ const decode_data_xml_js_1 = require("./generated/decode-data-xml.js");
12
+ const bin_trie_flags_js_1 = require("./internal/bin-trie-flags.js");
39
13
  var CharCodes;
40
14
  (function (CharCodes) {
41
15
  CharCodes[CharCodes["NUM"] = 35] = "NUM";
@@ -52,13 +26,7 @@ var CharCodes;
52
26
  CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
53
27
  })(CharCodes || (CharCodes = {}));
54
28
  /** Bit that needs to be set to convert an upper case ASCII character to lower case */
55
- var TO_LOWER_BIT = 32;
56
- var BinTrieFlags;
57
- (function (BinTrieFlags) {
58
- BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
59
- BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
60
- BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
61
- })(BinTrieFlags = exports.BinTrieFlags || (exports.BinTrieFlags = {}));
29
+ const TO_LOWER_BIT = 32;
62
30
  function isNumber(code) {
63
31
  return code >= CharCodes.ZERO && code <= CharCodes.NINE;
64
32
  }
@@ -96,13 +64,14 @@ var DecodingMode;
96
64
  DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
97
65
  /** Entities in attributes have limitations on ending characters. */
98
66
  DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
99
- })(DecodingMode = exports.DecodingMode || (exports.DecodingMode = {}));
67
+ })(DecodingMode || (exports.DecodingMode = DecodingMode = {}));
100
68
  /**
101
69
  * Token decoder with support of writing partial entities.
102
70
  */
103
- var EntityDecoder = /** @class */ (function () {
104
- function EntityDecoder(
71
+ class EntityDecoder {
72
+ constructor(
105
73
  /** The tree used to decode entities. */
74
+ // biome-ignore lint/correctness/noUnusedPrivateClassMembers: False positive
106
75
  decodeTree,
107
76
  /**
108
77
  * The function that is called when a codepoint is decoded.
@@ -138,14 +107,14 @@ var EntityDecoder = /** @class */ (function () {
138
107
  this.decodeMode = DecodingMode.Strict;
139
108
  }
140
109
  /** Resets the instance to make it reusable. */
141
- EntityDecoder.prototype.startEntity = function (decodeMode) {
110
+ startEntity(decodeMode) {
142
111
  this.decodeMode = decodeMode;
143
112
  this.state = EntityDecoderState.EntityStart;
144
113
  this.result = 0;
145
114
  this.treeIndex = 0;
146
115
  this.excess = 1;
147
116
  this.consumed = 1;
148
- };
117
+ }
149
118
  /**
150
119
  * Write an entity to the decoder. This can be called multiple times with partial entities.
151
120
  * If the entity is incomplete, the decoder will return -1.
@@ -153,113 +122,106 @@ var EntityDecoder = /** @class */ (function () {
153
122
  * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
154
123
  * entity is incomplete, and resume when the next string is written.
155
124
  *
156
- * @param string The string containing the entity (or a continuation of the entity).
125
+ * @param input The string containing the entity (or a continuation of the entity).
157
126
  * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
158
127
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
159
128
  */
160
- EntityDecoder.prototype.write = function (str, offset) {
129
+ write(input, offset) {
161
130
  switch (this.state) {
162
131
  case EntityDecoderState.EntityStart: {
163
- if (str.charCodeAt(offset) === CharCodes.NUM) {
132
+ if (input.charCodeAt(offset) === CharCodes.NUM) {
164
133
  this.state = EntityDecoderState.NumericStart;
165
134
  this.consumed += 1;
166
- return this.stateNumericStart(str, offset + 1);
135
+ return this.stateNumericStart(input, offset + 1);
167
136
  }
168
137
  this.state = EntityDecoderState.NamedEntity;
169
- return this.stateNamedEntity(str, offset);
138
+ return this.stateNamedEntity(input, offset);
170
139
  }
171
140
  case EntityDecoderState.NumericStart: {
172
- return this.stateNumericStart(str, offset);
141
+ return this.stateNumericStart(input, offset);
173
142
  }
174
143
  case EntityDecoderState.NumericDecimal: {
175
- return this.stateNumericDecimal(str, offset);
144
+ return this.stateNumericDecimal(input, offset);
176
145
  }
177
146
  case EntityDecoderState.NumericHex: {
178
- return this.stateNumericHex(str, offset);
147
+ return this.stateNumericHex(input, offset);
179
148
  }
180
149
  case EntityDecoderState.NamedEntity: {
181
- return this.stateNamedEntity(str, offset);
150
+ return this.stateNamedEntity(input, offset);
182
151
  }
183
152
  }
184
- };
153
+ }
185
154
  /**
186
155
  * Switches between the numeric decimal and hexadecimal states.
187
156
  *
188
157
  * Equivalent to the `Numeric character reference state` in the HTML spec.
189
158
  *
190
- * @param str The string containing the entity (or a continuation of the entity).
159
+ * @param input The string containing the entity (or a continuation of the entity).
191
160
  * @param offset The current offset.
192
161
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
193
162
  */
194
- EntityDecoder.prototype.stateNumericStart = function (str, offset) {
195
- if (offset >= str.length) {
163
+ stateNumericStart(input, offset) {
164
+ if (offset >= input.length) {
196
165
  return -1;
197
166
  }
198
- if ((str.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
167
+ if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
199
168
  this.state = EntityDecoderState.NumericHex;
200
169
  this.consumed += 1;
201
- return this.stateNumericHex(str, offset + 1);
170
+ return this.stateNumericHex(input, offset + 1);
202
171
  }
203
172
  this.state = EntityDecoderState.NumericDecimal;
204
- return this.stateNumericDecimal(str, offset);
205
- };
206
- EntityDecoder.prototype.addToNumericResult = function (str, start, end, base) {
207
- if (start !== end) {
208
- var digitCount = end - start;
209
- this.result =
210
- this.result * Math.pow(base, digitCount) +
211
- parseInt(str.substr(start, digitCount), base);
212
- this.consumed += digitCount;
213
- }
214
- };
173
+ return this.stateNumericDecimal(input, offset);
174
+ }
215
175
  /**
216
176
  * Parses a hexadecimal numeric entity.
217
177
  *
218
178
  * Equivalent to the `Hexademical character reference state` in the HTML spec.
219
179
  *
220
- * @param str The string containing the entity (or a continuation of the entity).
180
+ * @param input The string containing the entity (or a continuation of the entity).
221
181
  * @param offset The current offset.
222
182
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
223
183
  */
224
- EntityDecoder.prototype.stateNumericHex = function (str, offset) {
225
- var startIdx = offset;
226
- while (offset < str.length) {
227
- var char = str.charCodeAt(offset);
184
+ stateNumericHex(input, offset) {
185
+ while (offset < input.length) {
186
+ const char = input.charCodeAt(offset);
228
187
  if (isNumber(char) || isHexadecimalCharacter(char)) {
229
- offset += 1;
188
+ // Convert hex digit to value (0-15); 'a'/'A' -> 10.
189
+ const digit = char <= CharCodes.NINE
190
+ ? char - CharCodes.ZERO
191
+ : (char | TO_LOWER_BIT) - CharCodes.LOWER_A + 10;
192
+ this.result = this.result * 16 + digit;
193
+ this.consumed++;
194
+ offset++;
230
195
  }
231
196
  else {
232
- this.addToNumericResult(str, startIdx, offset, 16);
233
197
  return this.emitNumericEntity(char, 3);
234
198
  }
235
199
  }
236
- this.addToNumericResult(str, startIdx, offset, 16);
237
- return -1;
238
- };
200
+ return -1; // Incomplete entity
201
+ }
239
202
  /**
240
203
  * Parses a decimal numeric entity.
241
204
  *
242
205
  * Equivalent to the `Decimal character reference state` in the HTML spec.
243
206
  *
244
- * @param str The string containing the entity (or a continuation of the entity).
207
+ * @param input The string containing the entity (or a continuation of the entity).
245
208
  * @param offset The current offset.
246
209
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
247
210
  */
248
- EntityDecoder.prototype.stateNumericDecimal = function (str, offset) {
249
- var startIdx = offset;
250
- while (offset < str.length) {
251
- var char = str.charCodeAt(offset);
211
+ stateNumericDecimal(input, offset) {
212
+ while (offset < input.length) {
213
+ const char = input.charCodeAt(offset);
252
214
  if (isNumber(char)) {
253
- offset += 1;
215
+ this.result = this.result * 10 + (char - CharCodes.ZERO);
216
+ this.consumed++;
217
+ offset++;
254
218
  }
255
219
  else {
256
- this.addToNumericResult(str, startIdx, offset, 10);
257
220
  return this.emitNumericEntity(char, 2);
258
221
  }
259
222
  }
260
- this.addToNumericResult(str, startIdx, offset, 10);
261
- return -1;
262
- };
223
+ return -1; // Incomplete entity
224
+ }
263
225
  /**
264
226
  * Validate and emit a numeric entity.
265
227
  *
@@ -273,7 +235,7 @@ var EntityDecoder = /** @class */ (function () {
273
235
  * was consumed.
274
236
  * @returns The number of characters that were consumed.
275
237
  */
276
- EntityDecoder.prototype.emitNumericEntity = function (lastCp, expectedLength) {
238
+ emitNumericEntity(lastCp, expectedLength) {
277
239
  var _a;
278
240
  // Ensure we consumed at least one digit.
279
241
  if (this.consumed <= expectedLength) {
@@ -295,23 +257,80 @@ var EntityDecoder = /** @class */ (function () {
295
257
  this.errors.validateNumericCharacterReference(this.result);
296
258
  }
297
259
  return this.consumed;
298
- };
260
+ }
299
261
  /**
300
262
  * Parses a named entity.
301
263
  *
302
264
  * Equivalent to the `Named character reference state` in the HTML spec.
303
265
  *
304
- * @param str The string containing the entity (or a continuation of the entity).
266
+ * @param input The string containing the entity (or a continuation of the entity).
305
267
  * @param offset The current offset.
306
268
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
307
269
  */
308
- EntityDecoder.prototype.stateNamedEntity = function (str, offset) {
309
- var decodeTree = this.decodeTree;
310
- var current = decodeTree[this.treeIndex];
311
- // The mask is the number of bytes of the value, including the current byte.
312
- var valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
313
- for (; offset < str.length; offset++, this.excess++) {
314
- var char = str.charCodeAt(offset);
270
+ stateNamedEntity(input, offset) {
271
+ const { decodeTree } = this;
272
+ let current = decodeTree[this.treeIndex];
273
+ // The length is the number of bytes of the value, including the current byte.
274
+ let valueLength = (current & bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
275
+ while (offset < input.length) {
276
+ // Handle compact runs (possibly inline): valueLength == 0 and SEMI_REQUIRED bit set.
277
+ if (valueLength === 0 && (current & bin_trie_flags_js_1.BinTrieFlags.FLAG13) !== 0) {
278
+ const runLength = (current & bin_trie_flags_js_1.BinTrieFlags.BRANCH_LENGTH) >> 7; /* 2..63 */
279
+ const firstChar = current & bin_trie_flags_js_1.BinTrieFlags.JUMP_TABLE;
280
+ // Fast-fail if we don't have enough remaining input for the full run (incomplete entity)
281
+ if (offset + runLength > input.length)
282
+ return -1;
283
+ // Verify first char
284
+ if (input.charCodeAt(offset) !== firstChar) {
285
+ return this.result === 0
286
+ ? 0
287
+ : this.emitNotTerminatedNamedEntity();
288
+ }
289
+ offset++;
290
+ this.excess++;
291
+ // Remaining characters after the first
292
+ const remaining = runLength - 1;
293
+ // Iterate over packed 2-char words
294
+ for (let runPos = 1; runPos < runLength; runPos += 2) {
295
+ const packedWord = decodeTree[this.treeIndex + 1 + ((runPos - 1) >> 1)];
296
+ const low = packedWord & 0xff;
297
+ if (input.charCodeAt(offset) !== low) {
298
+ return this.result === 0
299
+ ? 0
300
+ : this.emitNotTerminatedNamedEntity();
301
+ }
302
+ offset++;
303
+ this.excess++;
304
+ const high = (packedWord >> 8) & 0xff;
305
+ if (runPos + 1 < runLength) {
306
+ if (input.charCodeAt(offset) !== high) {
307
+ return this.result === 0
308
+ ? 0
309
+ : this.emitNotTerminatedNamedEntity();
310
+ }
311
+ offset++;
312
+ this.excess++;
313
+ }
314
+ }
315
+ this.treeIndex += 1 + ((remaining + 1) >> 1);
316
+ current = decodeTree[this.treeIndex];
317
+ valueLength = (current & bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
318
+ }
319
+ if (offset >= input.length)
320
+ break;
321
+ const char = input.charCodeAt(offset);
322
+ /*
323
+ * Implicit semicolon handling for nodes that require a semicolon but
324
+ * don't have an explicit ';' branch stored in the trie. If we have
325
+ * a value on the current node, it requires a semicolon, and the
326
+ * current input character is a semicolon, emit the entity using the
327
+ * current node (without descending further).
328
+ */
329
+ if (char === CharCodes.SEMI &&
330
+ valueLength !== 0 &&
331
+ (current & bin_trie_flags_js_1.BinTrieFlags.FLAG13) !== 0) {
332
+ return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
333
+ }
315
334
  this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
316
335
  if (this.treeIndex < 0) {
317
336
  return this.result === 0 ||
@@ -325,7 +344,7 @@ var EntityDecoder = /** @class */ (function () {
325
344
  : this.emitNotTerminatedNamedEntity();
326
345
  }
327
346
  current = decodeTree[this.treeIndex];
328
- valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
347
+ valueLength = (current & bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
329
348
  // If the branch is a value, store it and continue
330
349
  if (valueLength !== 0) {
331
350
  // If the entity is terminated by a semicolon, we are done.
@@ -333,28 +352,32 @@ var EntityDecoder = /** @class */ (function () {
333
352
  return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
334
353
  }
335
354
  // If we encounter a non-terminated (legacy) entity while parsing strictly, then ignore it.
336
- if (this.decodeMode !== DecodingMode.Strict) {
355
+ if (this.decodeMode !== DecodingMode.Strict &&
356
+ (current & bin_trie_flags_js_1.BinTrieFlags.FLAG13) === 0) {
337
357
  this.result = this.treeIndex;
338
358
  this.consumed += this.excess;
339
359
  this.excess = 0;
340
360
  }
341
361
  }
362
+ // Increment offset & excess for next iteration
363
+ offset++;
364
+ this.excess++;
342
365
  }
343
366
  return -1;
344
- };
367
+ }
345
368
  /**
346
369
  * Emit a named entity that was not terminated with a semicolon.
347
370
  *
348
371
  * @returns The number of characters consumed.
349
372
  */
350
- EntityDecoder.prototype.emitNotTerminatedNamedEntity = function () {
373
+ emitNotTerminatedNamedEntity() {
351
374
  var _a;
352
- var _b = this, result = _b.result, decodeTree = _b.decodeTree;
353
- var valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
375
+ const { result, decodeTree } = this;
376
+ const valueLength = (decodeTree[result] & bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
354
377
  this.emitNamedEntityData(result, valueLength, this.consumed);
355
378
  (_a = this.errors) === null || _a === void 0 ? void 0 : _a.missingSemicolonAfterCharacterReference();
356
379
  return this.consumed;
357
- };
380
+ }
358
381
  /**
359
382
  * Emit a named entity.
360
383
  *
@@ -364,17 +387,18 @@ var EntityDecoder = /** @class */ (function () {
364
387
  *
365
388
  * @returns The number of characters consumed.
366
389
  */
367
- EntityDecoder.prototype.emitNamedEntityData = function (result, valueLength, consumed) {
368
- var decodeTree = this.decodeTree;
390
+ emitNamedEntityData(result, valueLength, consumed) {
391
+ const { decodeTree } = this;
369
392
  this.emitCodePoint(valueLength === 1
370
- ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH
393
+ ? decodeTree[result] &
394
+ ~(bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH | bin_trie_flags_js_1.BinTrieFlags.FLAG13)
371
395
  : decodeTree[result + 1], consumed);
372
396
  if (valueLength === 3) {
373
397
  // For multi-byte values, we need to emit the second byte.
374
398
  this.emitCodePoint(decodeTree[result + 2], consumed);
375
399
  }
376
400
  return consumed;
377
- };
401
+ }
378
402
  /**
379
403
  * Signal to the parser that the end of the input was reached.
380
404
  *
@@ -382,7 +406,7 @@ var EntityDecoder = /** @class */ (function () {
382
406
  *
383
407
  * @returns The number of characters consumed.
384
408
  */
385
- EntityDecoder.prototype.end = function () {
409
+ end() {
386
410
  var _a;
387
411
  switch (this.state) {
388
412
  case EntityDecoderState.NamedEntity: {
@@ -409,9 +433,8 @@ var EntityDecoder = /** @class */ (function () {
409
433
  return 0;
410
434
  }
411
435
  }
412
- };
413
- return EntityDecoder;
414
- }());
436
+ }
437
+ }
415
438
  exports.EntityDecoder = EntityDecoder;
416
439
  /**
417
440
  * Creates a function that decodes entities in a string.
@@ -420,28 +443,28 @@ exports.EntityDecoder = EntityDecoder;
420
443
  * @returns A function that decodes entities in a string.
421
444
  */
422
445
  function getDecoder(decodeTree) {
423
- var ret = "";
424
- var decoder = new EntityDecoder(decodeTree, function (str) { return (ret += (0, decode_codepoint_js_1.fromCodePoint)(str)); });
425
- return function decodeWithTrie(str, decodeMode) {
426
- var lastIndex = 0;
427
- var offset = 0;
428
- while ((offset = str.indexOf("&", offset)) >= 0) {
429
- ret += str.slice(lastIndex, offset);
446
+ let returnValue = "";
447
+ const decoder = new EntityDecoder(decodeTree, (data) => (returnValue += (0, decode_codepoint_js_1.fromCodePoint)(data)));
448
+ return function decodeWithTrie(input, decodeMode) {
449
+ let lastIndex = 0;
450
+ let offset = 0;
451
+ while ((offset = input.indexOf("&", offset)) >= 0) {
452
+ returnValue += input.slice(lastIndex, offset);
430
453
  decoder.startEntity(decodeMode);
431
- var len = decoder.write(str,
454
+ const length = decoder.write(input,
432
455
  // Skip the "&"
433
456
  offset + 1);
434
- if (len < 0) {
457
+ if (length < 0) {
435
458
  lastIndex = offset + decoder.end();
436
459
  break;
437
460
  }
438
- lastIndex = offset + len;
439
- // If `len` is 0, skip the current `&` and continue.
440
- offset = len === 0 ? lastIndex + 1 : lastIndex;
461
+ lastIndex = offset + length;
462
+ // If `length` is 0, skip the current `&` and continue.
463
+ offset = length === 0 ? lastIndex + 1 : lastIndex;
441
464
  }
442
- var result = ret + str.slice(lastIndex);
465
+ const result = returnValue + input.slice(lastIndex);
443
466
  // Make sure we don't keep a reference to the final string.
444
- ret = "";
467
+ returnValue = "";
445
468
  return result;
446
469
  };
447
470
  }
@@ -455,82 +478,91 @@ function getDecoder(decodeTree) {
455
478
  * @param char The current character.
456
479
  * @returns The index of the next node, or -1 if no branch is taken.
457
480
  */
458
- function determineBranch(decodeTree, current, nodeIdx, char) {
459
- var branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
460
- var jumpOffset = current & BinTrieFlags.JUMP_TABLE;
481
+ function determineBranch(decodeTree, current, nodeIndex, char) {
482
+ const branchCount = (current & bin_trie_flags_js_1.BinTrieFlags.BRANCH_LENGTH) >> 7;
483
+ const jumpOffset = current & bin_trie_flags_js_1.BinTrieFlags.JUMP_TABLE;
461
484
  // Case 1: Single branch encoded in jump offset
462
485
  if (branchCount === 0) {
463
- return jumpOffset !== 0 && char === jumpOffset ? nodeIdx : -1;
486
+ return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
464
487
  }
465
488
  // Case 2: Multiple branches encoded in jump table
466
489
  if (jumpOffset) {
467
- var value = char - jumpOffset;
490
+ const value = char - jumpOffset;
468
491
  return value < 0 || value >= branchCount
469
492
  ? -1
470
- : decodeTree[nodeIdx + value] - 1;
493
+ : decodeTree[nodeIndex + value] - 1;
471
494
  }
472
- // Case 3: Multiple branches encoded in dictionary
473
- // Binary search for the character.
474
- var lo = nodeIdx;
475
- var hi = lo + branchCount - 1;
495
+ // Case 3: Multiple branches encoded in packed dictionary (two keys per uint16)
496
+ const packedKeySlots = (branchCount + 1) >> 1;
497
+ /*
498
+ * Treat packed keys as a virtual sorted array of length `branchCount`.
499
+ * Key(i) = low byte for even i, high byte for odd i in slot i>>1.
500
+ */
501
+ let lo = 0;
502
+ let hi = branchCount - 1;
476
503
  while (lo <= hi) {
477
- var mid = (lo + hi) >>> 1;
478
- var midVal = decodeTree[mid];
479
- if (midVal < char) {
504
+ const mid = (lo + hi) >>> 1;
505
+ const slot = mid >> 1;
506
+ const packed = decodeTree[nodeIndex + slot];
507
+ const midKey = (packed >> ((mid & 1) * 8)) & 0xff;
508
+ if (midKey < char) {
480
509
  lo = mid + 1;
481
510
  }
482
- else if (midVal > char) {
511
+ else if (midKey > char) {
483
512
  hi = mid - 1;
484
513
  }
485
514
  else {
486
- return decodeTree[mid + branchCount];
515
+ return decodeTree[nodeIndex + packedKeySlots + mid];
487
516
  }
488
517
  }
489
518
  return -1;
490
519
  }
491
- exports.determineBranch = determineBranch;
492
- var htmlDecoder = getDecoder(decode_data_html_js_1.default);
493
- var xmlDecoder = getDecoder(decode_data_xml_js_1.default);
520
+ const htmlDecoder = /* #__PURE__ */ getDecoder(decode_data_html_js_1.htmlDecodeTree);
521
+ const xmlDecoder = /* #__PURE__ */ getDecoder(decode_data_xml_js_1.xmlDecodeTree);
494
522
  /**
495
523
  * Decodes an HTML string.
496
524
  *
497
- * @param str The string to decode.
525
+ * @param htmlString The string to decode.
498
526
  * @param mode The decoding mode.
499
527
  * @returns The decoded string.
500
528
  */
501
- function decodeHTML(str, mode) {
502
- if (mode === void 0) { mode = DecodingMode.Legacy; }
503
- return htmlDecoder(str, mode);
529
+ function decodeHTML(htmlString, mode = DecodingMode.Legacy) {
530
+ return htmlDecoder(htmlString, mode);
504
531
  }
505
- exports.decodeHTML = decodeHTML;
506
532
  /**
507
533
  * Decodes an HTML string in an attribute.
508
534
  *
509
- * @param str The string to decode.
535
+ * @param htmlAttribute The string to decode.
510
536
  * @returns The decoded string.
511
537
  */
512
- function decodeHTMLAttribute(str) {
513
- return htmlDecoder(str, DecodingMode.Attribute);
538
+ function decodeHTMLAttribute(htmlAttribute) {
539
+ return htmlDecoder(htmlAttribute, DecodingMode.Attribute);
514
540
  }
515
- exports.decodeHTMLAttribute = decodeHTMLAttribute;
516
541
  /**
517
542
  * Decodes an HTML string, requiring all entities to be terminated by a semicolon.
518
543
  *
519
- * @param str The string to decode.
544
+ * @param htmlString The string to decode.
520
545
  * @returns The decoded string.
521
546
  */
522
- function decodeHTMLStrict(str) {
523
- return htmlDecoder(str, DecodingMode.Strict);
547
+ function decodeHTMLStrict(htmlString) {
548
+ return htmlDecoder(htmlString, DecodingMode.Strict);
524
549
  }
525
- exports.decodeHTMLStrict = decodeHTMLStrict;
526
550
  /**
527
551
  * Decodes an XML string, requiring all entities to be terminated by a semicolon.
528
552
  *
529
- * @param str The string to decode.
553
+ * @param xmlString The string to decode.
530
554
  * @returns The decoded string.
531
555
  */
532
- function decodeXML(str) {
533
- return xmlDecoder(str, DecodingMode.Strict);
556
+ function decodeXML(xmlString) {
557
+ return xmlDecoder(xmlString, DecodingMode.Strict);
534
558
  }
535
- exports.decodeXML = decodeXML;
559
+ var decode_codepoint_js_2 = require("./decode-codepoint.js");
560
+ Object.defineProperty(exports, "decodeCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.decodeCodePoint; } });
561
+ Object.defineProperty(exports, "fromCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.fromCodePoint; } });
562
+ Object.defineProperty(exports, "replaceCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.replaceCodePoint; } });
563
+ // Re-export for use by eg. htmlparser2
564
+ var decode_data_html_js_2 = require("./generated/decode-data-html.js");
565
+ Object.defineProperty(exports, "htmlDecodeTree", { enumerable: true, get: function () { return decode_data_html_js_2.htmlDecodeTree; } });
566
+ var decode_data_xml_js_2 = require("./generated/decode-data-xml.js");
567
+ Object.defineProperty(exports, "xmlDecodeTree", { enumerable: true, get: function () { return decode_data_xml_js_2.xmlDecodeTree; } });
536
568
  //# sourceMappingURL=decode.js.map