vitepress-openapi 0.2.15 → 0.2.17

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 (263) hide show
  1. package/dist/{OAJSONEditor-BPdzinnW.js → OAJSONEditor-6uG2SFZK.js} +6 -6
  2. package/dist/{OAJSONEditor-cdYfH8pW.cjs → OAJSONEditor-D-Yhb6db.cjs} +4 -4
  3. package/dist/{angular-html-D5QwJSjx.js → angular-html-BUsdri4u.js} +2 -2
  4. package/dist/angular-html-BzD9NQW5.cjs +1 -0
  5. package/dist/{angular-ts-CXuTnAMH.cjs → angular-ts-D1fX05LE.cjs} +1 -1
  6. package/dist/{angular-ts-B0kZpGGd.js → angular-ts-DLzsnsUB.js} +2 -2
  7. package/dist/{apl-CjAWNKej.cjs → apl-Bo4qJ495.cjs} +1 -1
  8. package/dist/{apl-CO2hi6pu.js → apl-D9bD1gNv.js} +5 -5
  9. package/dist/{astro-C8AbPvmY.js → astro-D8q6Gy7P.js} +5 -5
  10. package/dist/{astro-C6WzLepe.cjs → astro-DCjm-pbh.cjs} +1 -1
  11. package/dist/{blade-bJOeoSe0.cjs → blade-B6fombNo.cjs} +1 -1
  12. package/dist/{blade-B3TXqIqP.js → blade-Sc601tfi.js} +7 -7
  13. package/dist/{c-BTzN4Ylc.js → c-CfqZXQ2T.js} +1 -1
  14. package/dist/c-Dn__oIvS.cjs +1 -0
  15. package/dist/{chapel-D3SOeXgF.cjs → chapel-D7VyqyYt.cjs} +1 -1
  16. package/dist/{chapel-DqUUkRYq.js → chapel-xSzmwfXQ.js} +1 -1
  17. package/dist/{cobol-dlQjEakv.cjs → cobol-CAKxSKZT.cjs} +1 -1
  18. package/dist/{cobol-DFLW8ca0.js → cobol-CHAgZDLS.js} +2 -2
  19. package/dist/{coffee-1KoIHtzW.js → coffee-CeAuLo4O.js} +1 -1
  20. package/dist/{coffee-TUzF5uor.cjs → coffee-JnCJAydr.cjs} +1 -1
  21. package/dist/{core-x4pNOQS7.cjs → core-CNg5cW98.cjs} +3 -3
  22. package/dist/{core-CSILRXKH.js → core-s1UIPu_z.js} +114 -114
  23. package/dist/cpp-1aC9AELp.cjs +1 -0
  24. package/dist/{cpp-yEMsPd-1.js → cpp-DAEET6ev.js} +3 -3
  25. package/dist/{crystal-D_nHX3jS.cjs → crystal-BfArRaXr.cjs} +1 -1
  26. package/dist/{crystal-CENIitzj.js → crystal-C1qz7UnE.js} +6 -6
  27. package/dist/css-BVuZPxTF.cjs +1 -0
  28. package/dist/{css-B-WLUKlS.js → css-BZAFXxqD.js} +1 -1
  29. package/dist/{dist-BxzxjMCz.cjs → dist-CpZb0vTN.cjs} +5 -5
  30. package/dist/{dist-C1v4Xm4x.js → dist-DV8PoRsD.js} +1 -1
  31. package/dist/{edge-BEj_2N8x.js → edge-CWZ5MU2M.js} +3 -3
  32. package/dist/{edge-f2PDRzgK.cjs → edge-JzsrLjb_.cjs} +1 -1
  33. package/dist/{elixir-CQkxmVTM.js → elixir-Crtqxz1W.js} +1 -1
  34. package/dist/{elixir-CIcaqRsY.cjs → elixir-QzvqYFsV.cjs} +1 -1
  35. package/dist/{elm-DzGi_nR3.js → elm-9rlZJ0du.js} +1 -1
  36. package/dist/{elm-7G0I-hE6.cjs → elm-DTTDc-PO.cjs} +1 -1
  37. package/dist/{engine-javascript-DSMQf2z2.js → engine-javascript-CoT6aZfI.js} +2 -2
  38. package/dist/{engine-javascript-DsJlQOsE.cjs → engine-javascript-DWPOYZRs.cjs} +2 -2
  39. package/dist/{erb-COP2UPZ7.js → erb-C6UwauYe.js} +2 -2
  40. package/dist/{erb-B9-cGaTm.cjs → erb-DPWXQYaP.cjs} +1 -1
  41. package/dist/generate-BAgVJTNQ.js +103 -0
  42. package/dist/generate-BVoluROJ.cjs +1 -0
  43. package/dist/generateMarkdown-BYnrcWs0.js +692 -0
  44. package/dist/generateMarkdown-DyJdABwj.cjs +31 -0
  45. package/dist/{git-rebase-Ku61ihN2.cjs → git-rebase-Cwp0uWvv.cjs} +1 -1
  46. package/dist/{git-rebase-DTYLKCWV.js → git-rebase-xIgRvJ_q.js} +1 -1
  47. package/dist/{glimmer-js-D29AEl8t.js → glimmer-js-CNGdvMhA.js} +4 -4
  48. package/dist/{glimmer-js-izmglT1O.cjs → glimmer-js-Df_yNNoE.cjs} +1 -1
  49. package/dist/{glimmer-ts-DYj3qCHB.js → glimmer-ts-Dq4P7Mkf.js} +4 -4
  50. package/dist/{glimmer-ts-DJ1fakxz.cjs → glimmer-ts-DsAOmOGY.cjs} +1 -1
  51. package/dist/glsl-CjiF-xkH.cjs +1 -0
  52. package/dist/{glsl-Bc6nFncG.js → glsl-DZfvb15l.js} +2 -2
  53. package/dist/{graphql-Ds5Ubte9.js → graphql-CZmb-US9.js} +5 -5
  54. package/dist/graphql-r7AX53Pp.cjs +1 -0
  55. package/dist/{hack-DlUSG6ek.cjs → hack-Cs2ncrxq.cjs} +1 -1
  56. package/dist/{hack-B6E-ISVN.js → hack-DIIRgI4h.js} +2 -2
  57. package/dist/haml-3bvHwbYf.cjs +1 -0
  58. package/dist/{haml-DSK5muqV.js → haml-aboBnjLl.js} +3 -3
  59. package/dist/{handlebars-BxmkFTU3.cjs → handlebars-C7PZ80pQ.cjs} +1 -1
  60. package/dist/{handlebars-CGjGomme.js → handlebars-Z3oHMxHt.js} +4 -4
  61. package/dist/html-CtaiB3Oi.cjs +1 -0
  62. package/dist/{html-DvKVaMAh.js → html-Cz0Xqdyq.js} +3 -3
  63. package/dist/{html-derivative-Due6nHaa.cjs → html-derivative-BYOQo3PG.cjs} +1 -1
  64. package/dist/{html-derivative--Yb6fTDM.js → html-derivative-BjrHnqif.js} +1 -1
  65. package/dist/{http-BDb2okFn.cjs → http-BA9nOlAq.cjs} +1 -1
  66. package/dist/{http-Wf5dll9t.js → http-ieHS9PeS.js} +4 -4
  67. package/dist/{hurl-Ds566NU_.cjs → hurl-DFGEnvSS.cjs} +1 -1
  68. package/dist/{hurl-1Afa28rK.js → hurl-Dg9NkXrC.js} +2 -2
  69. package/dist/{java-DMU2lkyP.js → java-DCXCvNHA.js} +1 -1
  70. package/dist/java-DTzZZzv7.cjs +1 -0
  71. package/dist/javascript-DOKgRqe8.cjs +1 -0
  72. package/dist/{javascript-CkOfli2O.js → javascript-f9cb-Pl7.js} +1 -1
  73. package/dist/{jinja-C_EeM5kX.js → jinja-B2DAjJOY.js} +1 -1
  74. package/dist/{jinja-D65--viX.cjs → jinja-DE8g1bjX.cjs} +1 -1
  75. package/dist/{jison-D5yGxh57.js → jison-5BvvygJS.js} +1 -1
  76. package/dist/{jison-CgJDwgW4.cjs → jison-BCQciWJO.cjs} +1 -1
  77. package/dist/js-yaml-B-Up3zwX.cjs +28 -0
  78. package/dist/{js-yaml-CA-Iojzo.js → js-yaml-o4oD1Gp3.js} +1 -1
  79. package/dist/json-BcxNDt_H.cjs +1 -0
  80. package/dist/{json-DnSlp2pP.js → json-DZfYi9f2.js} +1 -1
  81. package/dist/{jsx-DIHyTcyM.js → jsx-D0ksVAAA.js} +1 -1
  82. package/dist/jsx-DxOBIFYM.cjs +1 -0
  83. package/dist/{julia-Upv7yuF3.cjs → julia-B3y7weJz.cjs} +1 -1
  84. package/dist/{julia-pnYWyN4H.js → julia-Dk4vCuW5.js} +4 -4
  85. package/dist/{just-kcvRoQaC.cjs → just-B7ftAo6t.cjs} +1 -1
  86. package/dist/{just-Rux3ihaI.js → just-BDbjiXnk.js} +5 -5
  87. package/dist/{latex-BNmmGRr9.js → latex-CC_8gzv9.js} +1 -1
  88. package/dist/{latex-ssVj4acX.cjs → latex-QeOQCy8M.cjs} +1 -1
  89. package/dist/{liquid-D9-xfAH9.cjs → liquid-BVZIda1i.cjs} +1 -1
  90. package/dist/{liquid-CkFTSuz5.js → liquid-CJVpPXmh.js} +4 -4
  91. package/dist/llms-DWks2vGp.cjs +26 -0
  92. package/dist/llms-yFQ0insM.js +418 -0
  93. package/dist/lua-BoAqNcbB.cjs +1 -0
  94. package/dist/{lua-BPZzb4jg.js → lua-Bwwgpolt.js} +2 -2
  95. package/dist/{marko-CckGih8c.cjs → marko-CX9I4GhY.cjs} +1 -1
  96. package/dist/{marko-U5lgzX4W.js → marko-z-UpeqN9.js} +3 -3
  97. package/dist/{mdc-ftW0jKss.js → mdc-ANp6h8jQ.js} +2 -2
  98. package/dist/{mdc-CIgbmpvb.cjs → mdc-BPd7ZDIZ.cjs} +1 -1
  99. package/dist/{nginx-CO6FbhYm.js → nginx-BUK9HsFk.js} +1 -1
  100. package/dist/{nginx-pp3BriFA.cjs → nginx-CLECRmW5.cjs} +1 -1
  101. package/dist/{nim-xNROytAe.cjs → nim-4G662efB.cjs} +1 -1
  102. package/dist/{nim-CJpN9IuJ.js → nim-pupbS7ww.js} +6 -6
  103. package/dist/{useOpenapi-DVLwqpMR.js → normalizeExamples-BFR42ENV.js} +4058 -2185
  104. package/dist/normalizeExamples-DNaOGXm0.cjs +45 -0
  105. package/dist/{org-BLgfq4oa.js → org-B8vjAQ9v.js} +26 -26
  106. package/dist/{org-BfvkBzjQ.cjs → org-XYh7PPQk.cjs} +1 -1
  107. package/dist/{perl-4iy1AzjP.js → perl-ChiZYWB8.js} +5 -5
  108. package/dist/{perl-gYxlBF7Z.cjs → perl-Qi4toP6W.cjs} +1 -1
  109. package/dist/{php-D7tWq26a.cjs → php-93axekrF.cjs} +1 -1
  110. package/dist/{php-DBpFECnW.js → php-JTDYSOFN.js} +6 -6
  111. package/dist/{pug-CYLX2lIo.cjs → pug-BHWWe-s7.cjs} +1 -1
  112. package/dist/{pug-B3SC-VJn.js → pug-BR1NlFnA.js} +3 -3
  113. package/dist/{qml-CjtYDlYC.cjs → qml-71TJR8lk.cjs} +1 -1
  114. package/dist/{qml-BJryVNLB.js → qml-BBCxB4Da.js} +1 -1
  115. package/dist/r-BVapaf2o.cjs +1 -0
  116. package/dist/{r-CO3AGhxE.js → r-u-VAz7bR.js} +1 -1
  117. package/dist/{razor-fizwqQUn.js → razor-Cqi5RzG6.js} +1 -1
  118. package/dist/{razor-Cjwm6SbM.cjs → razor-DMdT60zm.cjs} +1 -1
  119. package/dist/{regexp-BlBS23LV.js → regexp-9Pkh3Nf7.js} +1 -1
  120. package/dist/regexp-CwHm4hi_.cjs +1 -0
  121. package/dist/{rst-uzixnQEN.cjs → rst-BtwmHjj9.cjs} +1 -1
  122. package/dist/{rst-CQ-BOew2.js → rst-CLZRH5oU.js} +6 -6
  123. package/dist/{ruby-DYscwpKq.js → ruby-BZUQEFGQ.js} +12 -12
  124. package/dist/{ruby-DcF3FpOo.cjs → ruby-DuGe7Fs0.cjs} +1 -1
  125. package/dist/{sas-CQkHM7U4.cjs → sas-B7hIWqYI.cjs} +1 -1
  126. package/dist/{sas-xf7cYJ8D.js → sas-BO2zDPuE.js} +1 -1
  127. package/dist/scss-BpK0m8eZ.cjs +1 -0
  128. package/dist/{scss-D5Ro0FPj.js → scss-OFCrSwaR.js} +2 -2
  129. package/dist/{shellscript-DVhVbKuT.js → shellscript-BNTFxSmg.js} +1 -1
  130. package/dist/shellscript-KJDkFDLp.cjs +1 -0
  131. package/dist/{shellsession-DCV0F4Wc.js → shellsession-B5j5FuGA.js} +1 -1
  132. package/dist/{shellsession-CfBYvvpU.cjs → shellsession-DWalcvtJ.cjs} +1 -1
  133. package/dist/{soy-HCmyBkD1.cjs → soy-BQn3ItqC.cjs} +1 -1
  134. package/dist/{soy-DqvPS_mm.js → soy-C2Q794LP.js} +1 -1
  135. package/dist/{sql-C8Kl76rR.js → sql-8JHRpHTE.js} +1 -1
  136. package/dist/sql-C5y5nUuw.cjs +1 -0
  137. package/dist/{stata-CJiPjcNk.js → stata-BrNyU7bS.js} +1 -1
  138. package/dist/{stata-B1WKRY4L.cjs → stata-DyBO95gA.cjs} +1 -1
  139. package/dist/{surrealql-D34WxIUj.cjs → surrealql-CAAIvFqO.cjs} +1 -1
  140. package/dist/{surrealql-1H6TjudE.js → surrealql-DgN6gei3.js} +1 -1
  141. package/dist/{svelte-BdqWwltV.cjs → svelte-DGjw_UH1.cjs} +1 -1
  142. package/dist/{svelte-CIN2FBHe.js → svelte-FhQBX-tv.js} +3 -3
  143. package/dist/{templ-DfCxDv8S.js → templ-BUggPx5p.js} +2 -2
  144. package/dist/{templ-DRfIS7Yk.cjs → templ-Cxuj5rzV.cjs} +1 -1
  145. package/dist/tex-B3aY5DbH.cjs +1 -0
  146. package/dist/{tex-BTjGzapI.js → tex-BlOdu2Xy.js} +2 -2
  147. package/dist/{ts-tags-T_iDSaWH.cjs → ts-tags-BymwG1F9.cjs} +1 -1
  148. package/dist/{ts-tags-CV7DYDTm.js → ts-tags-DZBZzNkR.js} +7 -7
  149. package/dist/tsx-DgA8B92F.cjs +1 -0
  150. package/dist/{tsx-C9xVNnaW.js → tsx-mByJmMSt.js} +1 -1
  151. package/dist/{twig-C4i_cRPo.js → twig--2v8RtVi.js} +5 -5
  152. package/dist/{twig-D914CUNQ.cjs → twig-CWwcCfHy.cjs} +1 -1
  153. package/dist/types/src/cli.d.ts +1 -0
  154. package/dist/types/src/components/Common/Highlight/OAShiki.vue.d.ts +2 -2
  155. package/dist/types/src/components/Common/Highlight/OAVueJsonPretty.vue.d.ts +2 -2
  156. package/dist/types/src/components/Common/OACodeBlock.vue.d.ts +2 -2
  157. package/dist/types/src/components/Common/OACodeValue.vue.d.ts +2 -2
  158. package/dist/types/src/components/Common/OAJSONEditor.vue.d.ts +2 -2
  159. package/dist/types/src/components/Parameter/OAParameterAttribute.vue.d.ts +2 -2
  160. package/dist/types/src/components/Playground/OAPlaygroundParameterInput.vue.d.ts +2 -2
  161. package/dist/types/src/components/ui/badge/index.d.ts +1 -1
  162. package/dist/types/src/components/ui/button/index.d.ts +1 -1
  163. package/dist/types/src/composables/useTheme.d.ts +7 -0
  164. package/dist/types/src/index.d.ts +18 -3
  165. package/dist/types/src/lib/codeSamples/buildOperationRequest.d.ts +15 -0
  166. package/dist/types/src/lib/codeSamples/buildRequest.d.ts +6 -0
  167. package/dist/types/src/lib/constants.d.ts +3 -0
  168. package/dist/types/src/lib/markdown/generateMarkdown.d.ts +111 -0
  169. package/dist/types/src/lib/markdown/llmsSite.d.ts +137 -0
  170. package/dist/types/src/lib/markdown/markdownUtils.d.ts +35 -0
  171. package/dist/types/src/lib/markdown/operationToMarkdown.d.ts +66 -0
  172. package/dist/types/src/lib/markdown/sanitizeHtml.d.ts +5 -0
  173. package/dist/types/src/lib/parser/getSchemaUi.d.ts +1 -0
  174. package/dist/types/src/node/cli.d.ts +5 -0
  175. package/dist/types/src/node/generate.d.ts +38 -0
  176. package/dist/types/src/node/llms.d.ts +99 -0
  177. package/dist/types/src/node/llmsPlugin.d.ts +10 -0
  178. package/dist/typescript-BWfpZQ2O.cjs +1 -0
  179. package/dist/{typescript-Chl77Ui1.js → typescript-DF15DAwn.js} +1 -1
  180. package/dist/{typst-C6fVPKNq.cjs → typst-BEqsnZtv.cjs} +1 -1
  181. package/dist/{typst-BgQE6TAB.js → typst-uhRd3eU5.js} +29 -29
  182. package/dist/useSidebar-B2LH297o.cjs +6 -0
  183. package/dist/useSidebar-CoebjdWM.js +313 -0
  184. package/dist/vitepress-openapi.cli.cjs.js +22 -0
  185. package/dist/vitepress-openapi.cli.es.js +67 -0
  186. package/dist/vitepress-openapi.client.cjs.js +1 -1
  187. package/dist/vitepress-openapi.client.es.js +7 -6
  188. package/dist/vitepress-openapi.css +1 -1
  189. package/dist/vitepress-openapi.node.cjs.js +1 -1
  190. package/dist/vitepress-openapi.node.es.js +47 -2
  191. package/dist/vitepress-openapi.vue.cjs.js +1 -1
  192. package/dist/vitepress-openapi.vue.es.js +4 -3
  193. package/dist/{vue-CaajMfVy.cjs → vue-BQl-5Fd6.cjs} +1 -1
  194. package/dist/{vue-J95qJkfJ.js → vue-CSJXDMn1.js} +6 -6
  195. package/dist/{vue-DpVGGK22.js → vue-DIM9jH1x.js} +3091 -4626
  196. package/dist/vue-DwsEa2e4.cjs +7 -0
  197. package/dist/{vue-html-CtmhMKZ8.cjs → vue-html-AqZQgz92.cjs} +1 -1
  198. package/dist/{vue-html-BjrCwjva.js → vue-html-DYm4V3uo.js} +1 -1
  199. package/dist/{vue-vine-C4hFAX9j.js → vue-vine-BLrCVeql.js} +3 -3
  200. package/dist/{vue-vine-DHwm8nhC.cjs → vue-vine-C1QCIUv6.cjs} +1 -1
  201. package/dist/xml-DbN80t5u.cjs +1 -0
  202. package/dist/{xml-4tT4oeZd.js → xml-Df1jLF7H.js} +2 -2
  203. package/dist/{xsl-gK25ns76.cjs → xsl-7fKL5NbN.cjs} +1 -1
  204. package/dist/{xsl-ZTs2D31w.js → xsl-C2LJLnIq.js} +1 -1
  205. package/dist/{yaml-Cr99duBz.js → yaml-DABI1u00.js} +1 -1
  206. package/dist/yaml-DNB0t8B9.cjs +1 -0
  207. package/package.json +6 -2
  208. package/src/cli.ts +6 -0
  209. package/src/composables/useMarkdown.ts +8 -2
  210. package/src/composables/useSidebar.ts +1 -1
  211. package/src/composables/useTheme.ts +12 -0
  212. package/src/index.ts +26 -5
  213. package/src/lib/codeSamples/buildHarRequest.ts +5 -0
  214. package/src/lib/codeSamples/buildOperationRequest.ts +52 -0
  215. package/src/lib/codeSamples/buildRequest.ts +49 -28
  216. package/src/lib/constants.ts +5 -0
  217. package/src/lib/examples/getSchemaUiJson.ts +1 -1
  218. package/src/lib/markdown/generateMarkdown.ts +451 -0
  219. package/src/lib/markdown/llmsSite.ts +475 -0
  220. package/src/lib/markdown/markdownUtils.ts +104 -0
  221. package/src/lib/markdown/operationLink.ts +10 -3
  222. package/src/lib/markdown/operationToMarkdown.ts +834 -0
  223. package/src/lib/markdown/sanitizeHtml.ts +92 -0
  224. package/src/lib/parser/generateCodeSamples.ts +6 -31
  225. package/src/lib/parser/generateMissingOperationIds.ts +1 -1
  226. package/src/lib/parser/generateMissingSummary.ts +1 -1
  227. package/src/lib/parser/generateMissingTags.ts +1 -1
  228. package/src/lib/parser/generateRequestBodyUi.ts +1 -1
  229. package/src/lib/parser/generateResponseUi.ts +1 -1
  230. package/src/lib/parser/generateSecurityUi.ts +1 -1
  231. package/src/lib/parser/getSchemaUi.ts +7 -3
  232. package/src/lib/sidebar/generateSidebarItemsByPaths.ts +1 -1
  233. package/src/lib/spec/createOpenApiSpec.ts +1 -1
  234. package/src/node/cli.ts +107 -0
  235. package/src/node/generate.ts +207 -0
  236. package/src/node/llms.ts +431 -0
  237. package/src/node/llmsPlugin.ts +29 -0
  238. package/dist/angular-html-BoKsRe8T.cjs +0 -1
  239. package/dist/c-BCyoZ90X.cjs +0 -1
  240. package/dist/cpp-tnOfy09q.cjs +0 -1
  241. package/dist/css-02TmpFbt.cjs +0 -1
  242. package/dist/glsl-BGTPqLyQ.cjs +0 -1
  243. package/dist/graphql-DdYH_Rp2.cjs +0 -1
  244. package/dist/haml-D-xAsnlc.cjs +0 -1
  245. package/dist/html-BYiFDapk.cjs +0 -1
  246. package/dist/java-DwnayQnb.cjs +0 -1
  247. package/dist/javascript-CSKossUl.cjs +0 -1
  248. package/dist/js-yaml-uHYMr7LM.cjs +0 -28
  249. package/dist/json-DMvxal4O.cjs +0 -1
  250. package/dist/jsx-CJAVXoYP.cjs +0 -1
  251. package/dist/lua-CbILlNRp.cjs +0 -1
  252. package/dist/r-DKRgTYMs.cjs +0 -1
  253. package/dist/regexp-BbrbtHcV.cjs +0 -1
  254. package/dist/scss-B6SEboBH.cjs +0 -1
  255. package/dist/shellscript-UM_LESkp.cjs +0 -1
  256. package/dist/sql-B2O4UoSw.cjs +0 -1
  257. package/dist/tex-W_Dxzamg.cjs +0 -1
  258. package/dist/tsx-B3iFrpuZ.cjs +0 -1
  259. package/dist/typescript-Ai8puZIn.cjs +0 -1
  260. package/dist/useOpenapi-D3rJQzeG.cjs +0 -50
  261. package/dist/vue-Cdo23EVh.cjs +0 -6
  262. package/dist/xml-C1x13bX0.cjs +0 -1
  263. package/dist/yaml-BUexFoMb.cjs +0 -1
@@ -0,0 +1,418 @@
1
+ import { g as e } from "./normalizeExamples-BFR42ENV.js";
2
+ import { a as t, c as n, d as r, f as i, i as a, l as o, o as s, r as c, s as l, t as u, u as d } from "./generateMarkdown-BYnrcWs0.js";
3
+ import { a as f, i as p, r as m } from "./generate-BAgVJTNQ.js";
4
+ //#region src/lib/markdown/llmsSite.ts
5
+ var h = 5242880, g = "{operationId}", _ = "{tag}", v = /^\/+|\/+$/g, y = /\.(?:md|html)$/;
6
+ function b(e) {
7
+ return e.replace(v, "").replace(y, "");
8
+ }
9
+ function x(e) {
10
+ let t = 0;
11
+ for (let n = 0; n < e.length; n++) {
12
+ let r = e.charCodeAt(n);
13
+ r < 128 ? t += 1 : r < 2048 ? t += 2 : r >= 55296 && r <= 56319 ? (t += 4, n++) : t += 3;
14
+ }
15
+ return t;
16
+ }
17
+ function S(e) {
18
+ return e === !1 ? Infinity : e == null ? h : e;
19
+ }
20
+ function C(e) {
21
+ return e >= 1048576 ? `${(e / 1024 / 1024).toFixed(1)} MB` : `${Math.ceil(e / 1024)} KB`;
22
+ }
23
+ async function w(e, t, n, r, i) {
24
+ let a = [e], o = x(e) + 1;
25
+ for (let e = 0; e < t; e++) {
26
+ let t = await n(e);
27
+ if (o += x(r) + x(t), o > i) return { exceeded: o };
28
+ a.push(t);
29
+ }
30
+ return { content: `${a.join(r)}\n` };
31
+ }
32
+ function T(e, t, n) {
33
+ console.warn(`[vitepress-openapi] ${e}: over ${t} bytes, more than maxSize (${n} bytes): wrote a summary instead.`);
34
+ }
35
+ function E(e, n, a) {
36
+ var o;
37
+ let s = (o = a.specUrl) == null ? a.openapiUrl : o, c = `> **Note:** the full content is larger than ${C(a.maxSize)}, so only a summary of each operation is included.${s ? ` See the [OpenAPI specification](${s}) for every detail.` : ""}`, l = (e) => {
38
+ var t;
39
+ let n = (t = a.operationUrl) == null ? void 0 : t.call(a, e), r = n ? `[${d(e.summary)}](${n})` : e.summary;
40
+ return `- ${i(`${e.method.toUpperCase()} ${e.path}`)} – ${r}`;
41
+ };
42
+ if (a.group) {
43
+ var u;
44
+ let e = a.group;
45
+ return `${[
46
+ r(1, e.name),
47
+ c,
48
+ (u = e.description) == null ? void 0 : u.trim(),
49
+ e.operations.map(l).join("\n")
50
+ ].filter(Boolean).join("\n\n")}\n`;
51
+ }
52
+ let [f, ...p] = t(e, [], { openapiUrl: a.openapiUrl }).split("\n\n"), m = n.filter((e) => e.operations.length).map((e) => `${r(2, e.name)}\n\n${e.operations.map(l).join("\n")}`);
53
+ return `${[
54
+ f,
55
+ c,
56
+ ...p,
57
+ ...m
58
+ ].join("\n\n")}\n`;
59
+ }
60
+ function D(e, t) {
61
+ return `${e.endsWith("/") ? e : `${e}/`}${t.split("/").map(encodeURIComponent).join("/")}`;
62
+ }
63
+ async function O(e, i) {
64
+ let { operationRoute: d, specRoutes: f = [], introductionRoute: p, tagRoute: m, tagParam: h = (e) => e, extension: v = "md", llmsTxt: y, base: x = "/", defaultTag: C, hasPage: O = () => !0, maxSize: k, ...A } = i, j = S(k);
65
+ if (!(d != null && d.includes(g))) throw Error(`[vitepress-openapi] \`operationRoute\` must contain ${g}.`);
66
+ if (m !== void 0 && !m.includes(_)) throw Error(`[vitepress-openapi] \`tagRoute\` must contain ${_}.`);
67
+ let { openapi: M, operations: N, groups: P } = a(e, C), F = (e) => b(d.replaceAll(g, e)), I = (e) => D(x, `${e}.${v}`), L = /* @__PURE__ */ new Set();
68
+ for (let e of N) await O(F(e.operationId)) && L.add(e.operationId);
69
+ let R = (e) => b(m.replaceAll(_, h(e.name))), z = /* @__PURE__ */ new Set();
70
+ if (m) for (let e of P) await O(R(e)) && z.add(e);
71
+ let B = (e) => z.has(e) ? I(R(e)) : void 0, V = (e) => L.has(e.operationId) ? I(F(e.operationId)) : void 0, H = p ? b(p) : "", U = !!H && await O(H), W = { href: (e) => L.has(e) ? I(F(e)) : void 0 };
72
+ P.forEach((e) => {
73
+ e.description = o(e.description, M, W);
74
+ });
75
+ let G = /* @__PURE__ */ new Map();
76
+ for (let e of N) G.set(e.operationId, await n(M, e.operationId, {
77
+ ...A,
78
+ operationLink: W,
79
+ headingLevel: 1
80
+ }));
81
+ let K = N.filter((e) => L.has(e.operationId)).map((e) => ({
82
+ path: `${F(e.operationId)}.${v}`,
83
+ content: `${G.get(e.operationId)}\n`
84
+ })), q = [...G.values()], J = await w(s(M), q.length, (e) => q[e], u, j), Y = "content" in J ? J.content : E(M, P, {
85
+ operationUrl: V,
86
+ openapiUrl: A.openapiUrl,
87
+ maxSize: j
88
+ }), X = (e) => {
89
+ "exceeded" in J && T(e, J.exceeded, j);
90
+ };
91
+ U && K.push({
92
+ path: `${H}.${v}`,
93
+ content: `${t(M, P, {
94
+ operationUrl: V,
95
+ tagUrl: B,
96
+ openapiUrl: A.openapiUrl,
97
+ rewriteLinks: (e) => o(e, M, W)
98
+ })}\n`
99
+ });
100
+ for (let e of z) {
101
+ var Z;
102
+ let t = `${R(e)}.${v}`, i = await w([r(1, e.name), (Z = e.description) == null ? void 0 : Z.trim()].filter(Boolean).join("\n\n"), e.operations.length, (t) => n(M, e.operations[t].operationId, {
103
+ ...A,
104
+ operationLink: W,
105
+ headingLevel: 2
106
+ }), "\n\n", j);
107
+ "exceeded" in i && T(t, i.exceeded, j), K.push({
108
+ path: t,
109
+ content: "content" in i ? i.content : E(M, P, {
110
+ group: e,
111
+ operationUrl: V,
112
+ openapiUrl: A.openapiUrl,
113
+ maxSize: j
114
+ })
115
+ });
116
+ }
117
+ for (let e of f.map(b)) if (e && await O(e)) {
118
+ let t = `${e}.${v}`;
119
+ X(t), K.push({
120
+ path: t,
121
+ content: Y
122
+ });
123
+ }
124
+ let Q = P.filter((e) => z.has(e) || e.operations.some((e) => L.has(e.operationId))).map((e) => ({
125
+ ...e,
126
+ operations: e.operations.filter((e) => L.has(e.operationId))
127
+ })), $ = {
128
+ operationUrl: (e) => I(F(e.operationId)),
129
+ overviewUrl: U ? I(H) : void 0,
130
+ tagUrl: (e) => B(P.find((t) => t.name === e.name)),
131
+ fullUrl: D(x, "llms-full.txt"),
132
+ openapiUrl: A.openapiUrl
133
+ };
134
+ return {
135
+ files: K,
136
+ full: Y,
137
+ warnFull: () => X("llms-full.txt"),
138
+ renderLlmsTxt: (e) => l(M, Q, {
139
+ ...$,
140
+ extraSections: e
141
+ }),
142
+ renderLlmsSection: () => {
143
+ var e;
144
+ let t = [$.overviewUrl && `- [Overview](${$.overviewUrl}): API description, servers, authentication and all operations`, ...Q.flatMap((e) => e.operations.map((e) => c(e, $.operationUrl(e))))].filter(Boolean);
145
+ return [r(2, String(((e = M.getInfo()) == null ? void 0 : e.title) || "API Reference")), t.join("\n")].join("\n\n");
146
+ }
147
+ };
148
+ }
149
+ async function k(e, i = {}) {
150
+ var c;
151
+ let { mode: l = "spec", operationId: d, tag: f, defaultTag: p, maxSize: m, specUrl: h, label: g = "page", ..._ } = i, v = S(m), { openapi: y, operations: b, groups: x } = a(e, p), C = { href: () => null }, D = String(((c = y.getInfo()) == null ? void 0 : c.title) || "API Reference"), O = (e, t) => n(y, e, {
152
+ ..._,
153
+ operationLink: C,
154
+ headingLevel: t
155
+ });
156
+ if (l === "operation") {
157
+ let e = b.find((e) => e.operationId === d);
158
+ return e ? {
159
+ title: e.summary,
160
+ content: `${await O(e.operationId, 1)}\n`
161
+ } : void 0;
162
+ }
163
+ if (l === "introduction") {
164
+ let e = (e) => o(e, y, C);
165
+ return x.forEach((t) => {
166
+ t.description = e(t.description);
167
+ }), {
168
+ title: D,
169
+ content: `${t(y, x, {
170
+ openapiUrl: _.openapiUrl,
171
+ rewriteLinks: e
172
+ })}\n`
173
+ };
174
+ }
175
+ if (l === "tag") {
176
+ var k;
177
+ let e = x.find((e) => e.name === f);
178
+ if (!e) return;
179
+ e.description = o(e.description, y, C);
180
+ let t = await w([r(1, e.name), (k = e.description) == null ? void 0 : k.trim()].filter(Boolean).join("\n\n"), e.operations.length, (t) => O(e.operations[t].operationId, 2), "\n\n", v);
181
+ return "content" in t ? {
182
+ title: e.name,
183
+ content: t.content
184
+ } : (T(g, t.exceeded, v), {
185
+ title: e.name,
186
+ content: E(y, x, {
187
+ group: e,
188
+ specUrl: h,
189
+ openapiUrl: _.openapiUrl,
190
+ maxSize: v
191
+ })
192
+ });
193
+ }
194
+ let A = await w(s(y), b.length, (e) => O(b[e].operationId, 1), u, v);
195
+ return "content" in A ? {
196
+ title: D,
197
+ content: A.content
198
+ } : (T(g, A.exceeded, v), {
199
+ title: D,
200
+ content: E(y, x, {
201
+ specUrl: h,
202
+ openapiUrl: _.openapiUrl,
203
+ maxSize: v
204
+ })
205
+ });
206
+ }
207
+ function A(e, t) {
208
+ if (!e) return;
209
+ let n;
210
+ try {
211
+ n = decodeURIComponent(e.split(/[?#]/)[0]);
212
+ } catch {
213
+ return;
214
+ }
215
+ let r = t.endsWith("/") ? t : `${t}/`;
216
+ return n.startsWith(r) ? n.slice(r.length) : void 0;
217
+ }
218
+ function j(e) {
219
+ return e.endsWith(".md") ? "text/markdown; charset=utf-8" : "text/plain; charset=utf-8";
220
+ }
221
+ //#endregion
222
+ //#region src/node/llms.ts
223
+ var M = /\.(?:md|txt)$/, N = /text\/markdown|text\/plain|text\/html|\*\/\*/, P = /* @__PURE__ */ new Set([
224
+ "document",
225
+ "empty",
226
+ "iframe",
227
+ "frame"
228
+ ]);
229
+ function F(e, t) {
230
+ var n;
231
+ let r = (n = e.headers) == null ? void 0 : n[t];
232
+ return Array.isArray(r) ? r[0] : r;
233
+ }
234
+ function I(e) {
235
+ var t;
236
+ let n = (t = e.originalUrl) == null ? e.url : t;
237
+ if (e.method !== "GET" && e.method !== "HEAD" || !n || n.includes("?")) return;
238
+ let r = n.split("#")[0];
239
+ if (!M.test(r)) return;
240
+ let i = F(e, "sec-fetch-dest");
241
+ if (i && !P.has(i)) return;
242
+ let a = F(e, "accept");
243
+ if (!(a && !N.test(a))) return r;
244
+ }
245
+ var L = /* @__PURE__ */ new Set(["llms.txt", "llms-full.txt"]);
246
+ function R(e) {
247
+ let t = Array.isArray(e) ? e : [e];
248
+ if (!t.length) throw Error("[vitepress-openapi] At least one llms options object is required.");
249
+ for (let e of t) if (!e.operationRoute && !e.resolvePage) throw Error("[vitepress-openapi] Each llms options object needs `operationRoute` or `resolvePage`.");
250
+ return t;
251
+ }
252
+ function z(e) {
253
+ return !!(e.spec || e.specPath || e.specUrl);
254
+ }
255
+ function B(e) {
256
+ var t, n, r, i, a;
257
+ if (!(e != null && (t = e.pages) != null && t.length)) return;
258
+ let o = (n = (r = e.rewrites) == null ? void 0 : r.map) == null ? {} : n, s = new Map(((i = (a = e.dynamicRoutes) == null ? void 0 : a.routes) == null ? [] : i).map((e) => [e.path, e.params]));
259
+ return e.pages.map((e) => {
260
+ var t;
261
+ return {
262
+ route: b((t = o[e]) == null ? e : t),
263
+ params: s.get(e)
264
+ };
265
+ });
266
+ }
267
+ function V(e) {
268
+ let t = B(e);
269
+ return t ? new Set(t.map((e) => e.route)) : void 0;
270
+ }
271
+ function H(t) {
272
+ let n = /* @__PURE__ */ new Map();
273
+ return (r) => {
274
+ var i;
275
+ if (r.spec) return Promise.resolve(e(r.spec));
276
+ let a = r.specUrl ? `url:${r.specUrl}` : `path:${t.path.resolve((i = r.specPath) == null ? "" : i)}`;
277
+ return n.has(a) || n.set(a, p(r, t)), n.get(a);
278
+ };
279
+ }
280
+ function U(e) {
281
+ let { spec: t, specPath: n, specUrl: r, operationRoute: i, specRoutes: a, introductionRoute: o, tagRoute: s, tagParam: c, extension: l, llmsTxt: u, resolvePage: d, title: f, ...p } = e;
282
+ return p;
283
+ }
284
+ async function W(e, t, n, r) {
285
+ try {
286
+ var i;
287
+ let a = await ((i = e.resolvePage) == null ? void 0 : i.call(e, n));
288
+ if (!a) return;
289
+ let o = z(a) ? a : e;
290
+ if (!z(o)) {
291
+ console.warn(`[vitepress-openapi] No spec for page "${n.route}": skipped.`);
292
+ return;
293
+ }
294
+ let s = await k(await r.loadSpec(o), {
295
+ ...U(e),
296
+ mode: a.mode,
297
+ operationId: a.operationId,
298
+ tag: a.tag,
299
+ maxSize: a.maxSize === void 0 ? e.maxSize : a.maxSize,
300
+ specUrl: o.specUrl,
301
+ label: `${n.route}.${r.extension}`
302
+ });
303
+ if (!s) return;
304
+ let c = `${n.route}.${r.extension}`;
305
+ return {
306
+ path: c,
307
+ content: s.content,
308
+ title: s.title,
309
+ url: D(r.base, c),
310
+ entry: t
311
+ };
312
+ } catch (e) {
313
+ var a;
314
+ console.warn(`[vitepress-openapi] Could not generate Markdown for page "${n.route}": skipped.`, (a = e == null ? void 0 : e.message) == null ? e : a);
315
+ return;
316
+ }
317
+ }
318
+ async function G(e, t) {
319
+ let n = [];
320
+ for (let r of e) if (r.operationRoute) {
321
+ if (!z(r)) throw Error("[vitepress-openapi] `operationRoute` needs `spec`, `specPath` or `specUrl`.");
322
+ n.push(await O(await t.loadSpec(r), {
323
+ ...r,
324
+ operationRoute: r.operationRoute,
325
+ extension: t.extension,
326
+ base: t.base,
327
+ hasPage: t.hasPage
328
+ }));
329
+ }
330
+ return n;
331
+ }
332
+ async function K(e, t) {
333
+ var n;
334
+ let r = await G(e, t), i = [], a = (n = B(t.siteConfig)) == null ? [] : n;
335
+ for (let [n, r] of e.entries()) if (r.resolvePage) for (let e of a) {
336
+ let a = await W(r, n, e, t);
337
+ a && i.push(a);
338
+ }
339
+ let o = /* @__PURE__ */ new Map();
340
+ for (let e of [...r.flatMap((e) => e.files), ...i]) o.has(e.path) || o.set(e.path, {
341
+ path: e.path,
342
+ content: e.content
343
+ });
344
+ if (e[0].llmsTxt !== !1) {
345
+ let t = e.flatMap((e, t) => {
346
+ var n;
347
+ let r = i.filter((e) => {
348
+ var n;
349
+ return e.entry === t && ((n = o.get(e.path)) == null ? void 0 : n.content) === e.content;
350
+ });
351
+ return r.length ? [`## ${(n = e.title) == null ? "Pages" : n}\n\n${r.map((e) => `- [${d(e.title)}](${e.url})`).join("\n")}`] : [];
352
+ }), n = [...r.slice(1).map((e) => e.renderLlmsSection()), ...t];
353
+ r.length ? (r.forEach((e) => e.warnFull()), o.set("llms.txt", {
354
+ path: "llms.txt",
355
+ content: r[0].renderLlmsTxt(n)
356
+ }), o.set("llms-full.txt", {
357
+ path: "llms-full.txt",
358
+ content: r.map((e) => e.full).join("\n---\n\n")
359
+ })) : n.length && o.set("llms.txt", {
360
+ path: "llms.txt",
361
+ content: `# Documentation\n\n${n.join("\n\n")}\n`
362
+ });
363
+ }
364
+ return [...o.values()];
365
+ }
366
+ async function q(e, t) {
367
+ var n, r, i;
368
+ if (!(e != null && e.outDir)) throw Error("[vitepress-openapi] `siteConfig.outDir` is required.");
369
+ let a = R(t), o = await m(), { fs: s, path: c } = o, l = c.resolve(e.outDir), u = V(e), d = await K(a, {
370
+ siteConfig: e,
371
+ base: (n = (r = e.site) == null ? void 0 : r.base) == null ? "/" : n,
372
+ extension: (i = a[0].extension) == null ? "md" : i,
373
+ hasPage: u ? (e) => u.has(e) : (e) => s.stat(c.join(l, `${e}.html`)).then((e) => e.isFile(), () => !1),
374
+ loadSpec: H(o)
375
+ });
376
+ return f(l, d, o);
377
+ }
378
+ function J(e, t = () => void 0, n = "/") {
379
+ var r;
380
+ let i = R(e), a = (r = i[0].extension) == null ? "md" : r, o, s, c, l = /* @__PURE__ */ new Map(), u = async () => {
381
+ var e, r;
382
+ o != null || (o = H(await m()));
383
+ let i = t(), s = V(i);
384
+ return {
385
+ siteConfig: i,
386
+ base: (e = i == null || (r = i.site) == null ? void 0 : r.base) == null ? n : e,
387
+ extension: a,
388
+ hasPage: (e) => !s || s.has(e),
389
+ loadSpec: o
390
+ };
391
+ }, d = async (e) => {
392
+ var n;
393
+ if (!e.endsWith(`.${a}`)) return;
394
+ let r = e.slice(0, -a.length - 1), o = (n = B(t())) == null ? void 0 : n.find((e) => e.route === r);
395
+ if (!o) return;
396
+ let s = await u();
397
+ for (let [e, t] of i.entries()) if (t.resolvePage) {
398
+ let n = await W(t, e, o, s);
399
+ if (n) return n;
400
+ }
401
+ }, f = async (e) => L.has(e) ? (c != null || (c = u().then((e) => K(i, e))), (await c).find((t) => t.path === e)) : (s != null || (s = u().then((e) => G(i, e)).then((e) => e.flatMap((e) => e.files))), (await s).find((t) => t.path === e) || (l.has(e) || l.set(e, d(e)), l.get(e)));
402
+ return async (e, r, i) => {
403
+ var a, o;
404
+ let l = I(e);
405
+ if (!l) return i();
406
+ let u = A(l, (a = (o = t()) == null || (o = o.site) == null ? void 0 : o.base) == null ? n : a);
407
+ if (u === void 0) return i();
408
+ try {
409
+ let t = await f(u);
410
+ if (!t) return i();
411
+ r.statusCode = 200, r.setHeader("Content-Type", j(t.path)), r.end(e.method === "HEAD" ? void 0 : t.content);
412
+ } catch (e) {
413
+ s = void 0, c = void 0, i(e);
414
+ }
415
+ };
416
+ }
417
+ //#endregion
418
+ export { J as createLlmsDevMiddleware, q as generateLlmsFiles };
@@ -0,0 +1 @@
1
+ const e=require("./normalizeExamples-DNaOGXm0.cjs"),t=require("./c-Dn__oIvS.cjs");var n=e.it({default:()=>i}),r=Object.freeze(JSON.parse(`{"displayName":"Lua","name":"lua","patterns":[{"begin":"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])","beginCaptures":{"1":{"name":"keyword.local.lua"},"2":{"name":"keyword.control.lua"}},"end":"(?<=[-\\\\]\\"')\\\\[{}])","name":"meta.function.lua","patterns":[{"include":"#comment"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.lua"}},"end":"(\\\\))|(?=[-\\\\]\\"'\\\\[{}])|(?<!\\\\.)\\\\.(?!\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.finish.lua"}},"name":"meta.parameter.lua","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"constant.language.lua"},"2":{"name":"variable.parameter.function.lua"}},"match":"(\\\\.{3})\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.parameter.function.lua"},{"match":",","name":"punctuation.separator.arguments.lua"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.arguments.lua"}},"end":"(?=[),])","patterns":[{"include":"#emmydoc.type"}]}]},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\\\\s*(?=:)","name":"entity.name.class.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.function.lua"}]},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(\\\\.\\\\h*)?([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\.\\\\h+([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(?![.0-9EPep])","name":"constant.numeric.integer.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(\\\\.\\\\d*)?([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\.\\\\d+([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(?![.0-9EPep])","name":"constant.numeric.integer.lua"},{"include":"#string"},{"captures":{"1":{"name":"punctuation.definition.comment.lua"}},"match":"\\\\A(#!).*$\\\\n?","name":"comment.line.shebang.lua"},{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.goto.lua"},"2":{"name":"string.tag.lua"}},"match":"\\\\b(goto)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)"},{"captures":{"1":{"name":"punctuation.section.embedded.begin.lua"},"2":{"name":"punctuation.section.embedded.end.lua"}},"match":"(::)\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(::)","name":"string.tag.lua"},{"captures":{"0":{"name":"storage.type.attribute.lua"}},"match":"<\\\\s*(c(?:onst|lose))\\\\s*>"},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b","name":"keyword.control.lua"},{"match":"\\\\b(local)\\\\b","name":"keyword.local.lua"},{"captures":{"1":{"name":"keyword.global.lua"}},"match":"^\\\\s*(global)\\\\b(?!\\\\s*=)"},{"match":"\\\\b(function)\\\\b(?![,:])","name":"keyword.control.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(std(?:in|out|err))|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<!\\\\.)\\\\.{3}(?!\\\\.)","name":"constant.language.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(self)\\\\b","name":"variable.language.self.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))","name":"support.function.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))","name":"entity.name.tag.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\\\.(concat|create|insert|maxn|move|pack|remove|sort|unpack)|math\\\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\\\.(loadlib|seeall|searchpath)|debug\\\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\\\.(char|codes|codepoint|len|offset))\\\\b(?!\\\\s*=(?!=))","name":"support.function.library.lua"},{"match":"\\\\b(\\\\|\\\\||&&|!)\\\\b","name":"keyword.operator.lua"},{"match":"\\\\b(and|or|not)\\\\b","name":"keyword.operator.logical.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*(?:[\\"'({]|\\\\[\\\\[))","name":"support.function.any-method.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*\\\\??:)","name":"entity.name.class.lua"},{"match":"(?<=[^.]\\\\.|:)\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.other.attribute.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"variable.other.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.name.function.lua"},{"match":"[-#%*+/^]|==?|~=|!=|<=?|>=?|(?<!\\\\.)\\\\.{2}(?!\\\\.)","name":"keyword.operator.lua"}],"repository":{"comment":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.lua"}},"end":"(?!\\\\G)((?!^)[\\\\t ]+\\\\n)?","endCaptures":{"1":{"name":"punctuation.whitespace.comment.trailing.lua"}},"patterns":[{"begin":"--\\\\[(=*)\\\\[@@@","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"","patterns":[{"include":"source.lua"}]},{"begin":"--\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"----","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua"},{"begin":"---","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.documentation.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua","patterns":[{"include":"#ldoc_tag"}]}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]}]},"emmydoc":{"patterns":[{"begin":"(?<=---)[\\\\t ]*@class","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"[,:]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@enum","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=\\\\n)"}]},{"begin":"(?<=---)[\\\\t ]*@type","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@alias","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*(@operator)\\\\s*(\\\\b[a-z]+)?","beginCaptures":{"1":{"name":"storage.type.annotation.lua"},"2":{"name":"support.function.library.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@cast","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.other.lua"}},"end":"(?=\\\\n)","patterns":[{"include":"#emmydoc.type"},{"match":"([+-|])","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@param","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(\\\\??)","beginCaptures":{"1":{"name":"entity.name.variable.lua"},"2":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@return","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\?","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@field","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"(\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b|(\\\\[))(\\\\??)","beginCaptures":{"2":{"name":"entity.name.variable.lua"},"3":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#string"},{"include":"#emmydoc.type"},{"match":"]","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@generic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","beginCaptures":{"0":{"name":"storage.type.generic.lua"}},"end":"(?=\\\\n)|(,)","endCaptures":{"0":{"name":"keyword.operator.lua"}},"patterns":[{"match":":","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@vararg","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@overload","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@deprecated","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@meta","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@private","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@protected","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@package","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@version","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b(5\\\\.1|5\\\\.2|5\\\\.3|5\\\\.4|JIT)\\\\b","name":"support.class.lua"},{"match":"[,<>]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@see","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"#","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@diagnostic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"([-0-9A-Z_a-z]+)[\\\\t ]*(:)?","beginCaptures":{"1":{"name":"keyword.other.unit"},"2":{"name":"keyword.operator.unit"}},"end":"(?=\\\\n)","patterns":[{"match":"\\\\b([*A-Z_a-z][-0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":",","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@module","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]},{"match":"(?<=---)[\\\\t ]*@(async|nodiscard)","name":"storage.type.annotation.lua"},{"begin":"(?<=---)\\\\|\\\\s*[+>]?","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]}]},"emmydoc.type":{"patterns":[{"begin":"\\\\bfun\\\\b","beginCaptures":{"0":{"name":"keyword.control.lua"}},"end":"(?=[#\\\\s])","patterns":[{"match":"[](),:<>?\\\\[][\\\\t ]*","name":"keyword.operator.lua"},{"match":"([A-Z_a-z][-*.0-9A-Z_a-z]*)(?<!,)[\\\\t ]*(?=\\\\??:)","name":"entity.name.variable.lua"},{"include":"#emmydoc.type"},{"include":"#string"}]},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\basync\\\\b","name":"entity.name.tag.lua"},{"match":"[,:?\`{|}][\\\\t ]*","name":"keyword.operator.lua"},{"begin":"(?=[\\"'*.A-\\\\[_a-z])","end":"(?=[#),:?|}\\\\s])","patterns":[{"match":"([-\\\\]*,.0-9<>A-\\\\[_a-z]+)(?<!,)[\\\\t ]*","name":"support.type.lua"},{"match":"(\\\\.\\\\.\\\\.)[\\\\t ]*","name":"constant.language.lua"},{"include":"#string"}]}]},"escaped_char":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\abfnrtv]","name":"constant.character.escape.lua"},{"match":"\\\\\\\\z[\\\\t\\\\n ]*","name":"constant.character.escape.lua"},{"match":"\\\\\\\\\\\\d{1,3}","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\x\\\\h\\\\h","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\u\\\\{\\\\h+}","name":"constant.character.escape.unicode.lua"},{"match":"\\\\\\\\.","name":"invalid.illegal.character.escape.lua"}]},"ldoc_tag":{"captures":{"1":{"name":"punctuation.definition.block.tag.ldoc"},"2":{"name":"storage.type.class.ldoc"}},"match":"\\\\G[\\\\t ]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\\\b"},"string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"'[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.single.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\\"[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\`[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua"},{"begin":"(?<=\\\\.cdef)\\\\s*(\\\\[(=*)\\\\[)","beginCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.begin.lua"}},"contentName":"meta.embedded.lua","end":"(]\\\\2])[\\\\t ]*","endCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.end.lua"}},"patterns":[{"include":"source.c"}]},{"begin":"(?<!--)\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"]\\\\1][\\\\t ]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.other.multiline.lua"}]}},"scopeName":"source.lua","embeddedLangs":["c"]}`)),i=[...t.t,r];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -1,5 +1,5 @@
1
- import { et as e } from "./useOpenapi-DVLwqpMR.js";
2
- import { t } from "./c-BTzN4Ylc.js";
1
+ import { it as e } from "./normalizeExamples-BFR42ENV.js";
2
+ import { t } from "./c-CfqZXQ2T.js";
3
3
  //#region node_modules/.pnpm/@shikijs+langs@4.4.3/node_modules/@shikijs/langs/dist/lua.mjs
4
4
  var n = /* @__PURE__ */ e({ default: () => i }), r = Object.freeze(JSON.parse("{\"displayName\":\"Lua\",\"name\":\"lua\",\"patterns\":[{\"begin\":\"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.local.lua\"},\"2\":{\"name\":\"keyword.control.lua\"}},\"end\":\"(?<=[-\\\\]\\\"')\\\\[{}])\",\"name\":\"meta.function.lua\",\"patterns\":[{\"include\":\"#comment\"},{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.lua\"}},\"end\":\"(\\\\))|(?=[-\\\\]\\\"'\\\\[{}])|(?<!\\\\.)\\\\.(?!\\\\.)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.finish.lua\"}},\"name\":\"meta.parameter.lua\",\"patterns\":[{\"include\":\"#comment\"},{\"captures\":{\"1\":{\"name\":\"constant.language.lua\"},\"2\":{\"name\":\"variable.parameter.function.lua\"}},\"match\":\"(\\\\.{3})\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\"},{\"match\":\"[A-Z_a-z][0-9A-Z_a-z]*\",\"name\":\"variable.parameter.function.lua\"},{\"match\":\",\",\"name\":\"punctuation.separator.arguments.lua\"},{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.separator.arguments.lua\"}},\"end\":\"(?=[),])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"match\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\\\\s*(?=:)\",\"name\":\"entity.name.class.lua\"},{\"match\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\",\"name\":\"entity.name.function.lua\"}]},{\"match\":\"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(\\\\.\\\\h*)?([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?\",\"name\":\"constant.numeric.float.hexadecimal.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])0[Xx]\\\\.\\\\h+([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?\",\"name\":\"constant.numeric.float.hexadecimal.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(?![.0-9EPep])\",\"name\":\"constant.numeric.integer.hexadecimal.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])\\\\d+(\\\\.\\\\d*)?([Ee]-?\\\\d*)?\",\"name\":\"constant.numeric.float.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])\\\\.\\\\d+([Ee]-?\\\\d*)?\",\"name\":\"constant.numeric.float.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])\\\\d+(?![.0-9EPep])\",\"name\":\"constant.numeric.integer.lua\"},{\"include\":\"#string\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.lua\"}},\"match\":\"\\\\A(#!).*$\\\\n?\",\"name\":\"comment.line.shebang.lua\"},{\"include\":\"#comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.goto.lua\"},\"2\":{\"name\":\"string.tag.lua\"}},\"match\":\"\\\\b(goto)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\"},{\"captures\":{\"1\":{\"name\":\"punctuation.section.embedded.begin.lua\"},\"2\":{\"name\":\"punctuation.section.embedded.end.lua\"}},\"match\":\"(::)\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(::)\",\"name\":\"string.tag.lua\"},{\"captures\":{\"0\":{\"name\":\"storage.type.attribute.lua\"}},\"match\":\"<\\\\s*(c(?:onst|lose))\\\\s*>\"},{\"match\":\"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>\",\"name\":\"storage.type.generic.lua\"},{\"match\":\"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b\",\"name\":\"keyword.control.lua\"},{\"match\":\"\\\\b(local)\\\\b\",\"name\":\"keyword.local.lua\"},{\"captures\":{\"1\":{\"name\":\"keyword.global.lua\"}},\"match\":\"^\\\\s*(global)\\\\b(?!\\\\s*=)\"},{\"match\":\"\\\\b(function)\\\\b(?![,:])\",\"name\":\"keyword.control.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(std(?:in|out|err))|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<!\\\\.)\\\\.{3}(?!\\\\.)\",\"name\":\"constant.language.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(self)\\\\b\",\"name\":\"variable.language.self.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))\",\"name\":\"support.function.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))\",\"name\":\"entity.name.tag.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\\\.(concat|create|insert|maxn|move|pack|remove|sort|unpack)|math\\\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\\\.(loadlib|seeall|searchpath)|debug\\\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\\\.(char|codes|codepoint|len|offset))\\\\b(?!\\\\s*=(?!=))\",\"name\":\"support.function.library.lua\"},{\"match\":\"\\\\b(\\\\|\\\\||&&|!)\\\\b\",\"name\":\"keyword.operator.lua\"},{\"match\":\"\\\\b(and|or|not)\\\\b\",\"name\":\"keyword.operator.logical.lua\"},{\"match\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*(?:[\\\"'({]|\\\\[\\\\[))\",\"name\":\"support.function.any-method.lua\"},{\"match\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*\\\\??:)\",\"name\":\"entity.name.class.lua\"},{\"match\":\"(?<=[^.]\\\\.|:)\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"entity.other.attribute.lua\"},{\"match\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"variable.other.lua\"},{\"match\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*=\\\\s*\\\\b(function)\\\\b)\",\"name\":\"entity.name.function.lua\"},{\"match\":\"[-#%*+/^]|==?|~=|!=|<=?|>=?|(?<!\\\\.)\\\\.{2}(?!\\\\.)\",\"name\":\"keyword.operator.lua\"}],\"repository\":{\"comment\":{\"patterns\":[{\"begin\":\"(^[\\\\t ]+)?(?=--)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.lua\"}},\"end\":\"(?!\\\\G)((?!^)[\\\\t ]+\\\\n)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.trailing.lua\"}},\"patterns\":[{\"begin\":\"--\\\\[(=*)\\\\[@@@\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"(--)?]\\\\1]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"\",\"patterns\":[{\"include\":\"source.lua\"}]},{\"begin\":\"--\\\\[(=*)\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"(--)?]\\\\1]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"comment.block.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]},{\"begin\":\"----\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.lua\"},{\"begin\":\"---\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.documentation.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]},{\"begin\":\"--\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.lua\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-dash.lua\",\"patterns\":[{\"include\":\"#ldoc_tag\"}]}]},{\"begin\":\"/\\\\*\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.lua\"}},\"end\":\"\\\\*/\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.lua\"}},\"name\":\"comment.block.lua\",\"patterns\":[{\"include\":\"#emmydoc\"},{\"include\":\"#ldoc_tag\"}]}]},\"emmydoc\":{\"patterns\":[{\"begin\":\"(?<=---)[\\\\t ]*@class\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"match\":\"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)\",\"name\":\"support.class.lua\"},{\"match\":\"[,:]\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@enum\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"begin\":\"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.lua\"}},\"end\":\"(?=\\\\n)\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@type\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@alias\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"begin\":\"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[\\\\t ]*(@operator)\\\\s*(\\\\b[a-z]+)?\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.annotation.lua\"},\"2\":{\"name\":\"support.function.library.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@cast\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"begin\":\"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)\",\"beginCaptures\":{\"0\":{\"name\":\"variable.other.lua\"}},\"end\":\"(?=\\\\n)\",\"patterns\":[{\"include\":\"#emmydoc.type\"},{\"match\":\"([+-|])\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[\\\\t ]*@param\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"begin\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(\\\\??)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.variable.lua\"},\"2\":{\"name\":\"keyword.operator.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[\\\\t ]*@return\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"match\":\"\\\\?\",\"name\":\"keyword.operator.lua\"},{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@field\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"begin\":\"(\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b|(\\\\[))(\\\\??)\",\"beginCaptures\":{\"2\":{\"name\":\"entity.name.variable.lua\"},\"3\":{\"name\":\"keyword.operator.lua\"}},\"end\":\"(?=[\\\\n#])\",\"patterns\":[{\"include\":\"#string\"},{\"include\":\"#emmydoc.type\"},{\"match\":\"]\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[\\\\t ]*@generic\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"begin\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.generic.lua\"}},\"end\":\"(?=\\\\n)|(,)\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.lua\"}},\"patterns\":[{\"match\":\":\",\"name\":\"keyword.operator.lua\"},{\"include\":\"#emmydoc.type\"}]}]},{\"begin\":\"(?<=---)[\\\\t ]*@vararg\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@overload\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@deprecated\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\"},{\"begin\":\"(?<=---)[\\\\t ]*@meta\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\"},{\"begin\":\"(?<=---)[\\\\t ]*@private\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\"},{\"begin\":\"(?<=---)[\\\\t ]*@protected\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\"},{\"begin\":\"(?<=---)[\\\\t ]*@package\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\"},{\"begin\":\"(?<=---)[\\\\t ]*@version\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"match\":\"\\\\b(5\\\\.1|5\\\\.2|5\\\\.3|5\\\\.4|JIT)\\\\b\",\"name\":\"support.class.lua\"},{\"match\":\"[,<>]\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@see\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"match\":\"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)\",\"name\":\"support.class.lua\"},{\"match\":\"#\",\"name\":\"keyword.operator.lua\"}]},{\"begin\":\"(?<=---)[\\\\t ]*@diagnostic\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"begin\":\"([-0-9A-Z_a-z]+)[\\\\t ]*(:)?\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.unit\"},\"2\":{\"name\":\"keyword.operator.unit\"}},\"end\":\"(?=\\\\n)\",\"patterns\":[{\"match\":\"\\\\b([*A-Z_a-z][-0-9A-Z_a-z]*)\",\"name\":\"support.class.lua\"},{\"match\":\",\",\"name\":\"keyword.operator.lua\"}]}]},{\"begin\":\"(?<=---)[\\\\t ]*@module\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"include\":\"#string\"}]},{\"match\":\"(?<=---)[\\\\t ]*@(async|nodiscard)\",\"name\":\"storage.type.annotation.lua\"},{\"begin\":\"(?<=---)\\\\|\\\\s*[+>]?\",\"beginCaptures\":{\"0\":{\"name\":\"storage.type.annotation.lua\"}},\"end\":\"(?=[\\\\n#@])\",\"patterns\":[{\"include\":\"#string\"}]}]},\"emmydoc.type\":{\"patterns\":[{\"begin\":\"\\\\bfun\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.lua\"}},\"end\":\"(?=[#\\\\s])\",\"patterns\":[{\"match\":\"[](),:<>?\\\\[][\\\\t ]*\",\"name\":\"keyword.operator.lua\"},{\"match\":\"([A-Z_a-z][-*.0-9A-Z_a-z]*)(?<!,)[\\\\t ]*(?=\\\\??:)\",\"name\":\"entity.name.variable.lua\"},{\"include\":\"#emmydoc.type\"},{\"include\":\"#string\"}]},{\"match\":\"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>\",\"name\":\"storage.type.generic.lua\"},{\"match\":\"\\\\basync\\\\b\",\"name\":\"entity.name.tag.lua\"},{\"match\":\"[,:?`{|}][\\\\t ]*\",\"name\":\"keyword.operator.lua\"},{\"begin\":\"(?=[\\\"'*.A-\\\\[_a-z])\",\"end\":\"(?=[#),:?|}\\\\s])\",\"patterns\":[{\"match\":\"([-\\\\]*,.0-9<>A-\\\\[_a-z]+)(?<!,)[\\\\t ]*\",\"name\":\"support.type.lua\"},{\"match\":\"(\\\\.\\\\.\\\\.)[\\\\t ]*\",\"name\":\"constant.language.lua\"},{\"include\":\"#string\"}]}]},\"escaped_char\":{\"patterns\":[{\"match\":\"\\\\\\\\[\\\\n\\\"'\\\\\\\\abfnrtv]\",\"name\":\"constant.character.escape.lua\"},{\"match\":\"\\\\\\\\z[\\\\t\\\\n ]*\",\"name\":\"constant.character.escape.lua\"},{\"match\":\"\\\\\\\\\\\\d{1,3}\",\"name\":\"constant.character.escape.byte.lua\"},{\"match\":\"\\\\\\\\x\\\\h\\\\h\",\"name\":\"constant.character.escape.byte.lua\"},{\"match\":\"\\\\\\\\u\\\\{\\\\h+}\",\"name\":\"constant.character.escape.unicode.lua\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.illegal.character.escape.lua\"}]},\"ldoc_tag\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.block.tag.ldoc\"},\"2\":{\"name\":\"storage.type.class.ldoc\"}},\"match\":\"\\\\G[\\\\t ]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\\\b\"},\"string\":{\"patterns\":[{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"'[\\\\t ]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.single.lua\",\"patterns\":[{\"include\":\"#escaped_char\"}]},{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"\\\"[\\\\t ]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.double.lua\",\"patterns\":[{\"include\":\"#escaped_char\"}]},{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"`[\\\\t ]*|(?=\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.double.lua\"},{\"begin\":\"(?<=\\\\.cdef)\\\\s*(\\\\[(=*)\\\\[)\",\"beginCaptures\":{\"0\":{\"name\":\"string.quoted.other.multiline.lua\"},\"1\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"contentName\":\"meta.embedded.lua\",\"end\":\"(]\\\\2])[\\\\t ]*\",\"endCaptures\":{\"0\":{\"name\":\"string.quoted.other.multiline.lua\"},\"1\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"patterns\":[{\"include\":\"source.c\"}]},{\"begin\":\"(?<!--)\\\\[(=*)\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.lua\"}},\"end\":\"]\\\\1][\\\\t ]*\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.lua\"}},\"name\":\"string.quoted.other.multiline.lua\"}]}},\"scopeName\":\"source.lua\",\"embeddedLangs\":[\"c\"]}")), i = [...t, r];
5
5
  //#endregion