nuxt-ignis 0.4.0 → 0.5.0-rc.2
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.
- package/.data/content/contents.sqlite +0 -0
- package/.env +1 -1
- package/.nuxt/app.config.mjs +8 -3
- package/.nuxt/components.d.ts +287 -749
- package/.nuxt/content/components.ts +118 -116
- package/.nuxt/dev/index.mjs +1074 -355
- package/.nuxt/dev/index.mjs.map +1 -1
- package/.nuxt/dist/server/client.manifest.json +2 -2
- package/.nuxt/dist/server/client.manifest.mjs +2 -2
- package/.nuxt/eslint-typegen.d.ts +144 -21
- package/.nuxt/eslint.config.d.mts +3 -3
- package/.nuxt/eslint.config.mjs +11 -11
- package/.nuxt/i18n-route-resources.mjs +3 -0
- package/.nuxt/imports.d.ts +79 -86
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/mdc-highlighter.mjs +1 -1
- package/.nuxt/mdc-image-component.mjs +1 -1
- package/.nuxt/mdc-imports.mjs +1 -1
- package/.nuxt/module/nuxt-robots.d.ts +12 -12
- package/.nuxt/module/nuxt-seo-utils.assets.d.ts +1 -1
- package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
- package/.nuxt/module/nuxt-site-config.d.ts +11 -8
- package/.nuxt/module/nuxt-sitemap.d.ts +48 -0
- package/.nuxt/nitro.json +5 -5
- package/.nuxt/nuxt.d.ts +18 -19
- package/.nuxt/nuxt.json +2 -2
- package/.nuxt/nuxt.node.d.ts +30 -0
- package/.nuxt/nuxt.shared.d.ts +5 -0
- package/.nuxt/tsconfig.app.json +483 -0
- package/.nuxt/tsconfig.json +310 -301
- package/.nuxt/tsconfig.node.json +235 -0
- package/.nuxt/tsconfig.server.json +198 -167
- package/.nuxt/tsconfig.shared.json +283 -0
- package/.nuxt/types/app.config.d.ts +8 -2
- package/.nuxt/types/build.d.ts +3 -2
- package/.nuxt/types/components.d.ts +309 -0
- package/.nuxt/types/i18n-plugin.d.ts +25 -6
- package/.nuxt/types/imports.d.ts +710 -714
- package/.nuxt/types/modules.d.ts +599 -0
- package/.nuxt/types/neon.d.ts +11 -8
- package/.nuxt/types/nitro-imports.d.ts +394 -355
- package/.nuxt/types/nitro-middleware.d.ts +5 -0
- package/.nuxt/types/nitro-nuxt.d.ts +30 -2
- package/.nuxt/types/nitro-routes.d.ts +28 -25
- package/.nuxt/types/plugins.d.ts +42 -39
- package/.nuxt/types/runtime-config.d.ts +1018 -0
- package/.nuxt/types/ui.d.ts +3 -3
- package/.nuxt/ui/button.ts +42 -42
- package/.nuxt/ui/command-palette.ts +2 -1
- package/.nuxt/ui/drawer.ts +1 -1
- package/.nuxt/ui/file-upload.ts +290 -0
- package/.nuxt/ui/index.ts +1 -0
- package/.nuxt/ui/input.ts +1 -1
- package/.nuxt/ui/kbd.ts +167 -3
- package/.nuxt/ui/select.ts +7 -7
- package/.nuxt/ui/table.ts +8 -0
- package/.nuxt/ui/tabs.ts +4 -2
- package/.nuxt/ui/textarea.ts +1 -1
- package/.nuxt/ui/toast.ts +8 -15
- package/.nuxt/ui/tooltip.ts +1 -1
- package/.nuxt/ui-image-component.ts +1 -1
- package/.output/nitro.json +15 -0
- package/.output/public/__nuxt_content/content/sql_dump.txt +1 -0
- package/.output/public/_fonts/31PZhXd_YTCmsoiPQZc-xVtAWAkLogRFRj5mWplmKFE-6WsTw05QKugcwLySGc_b9CIheG8j8LRyo47qPL430Mk.woff2 +0 -0
- package/.output/public/_fonts/9FWLUGCSCYLRIRMtCzLrt4Go7DMFXOeN_pyCOJD_44Y-Yh2wNaqrq_e759vVlc3tX81lMwRu9ktkQJX_Svgs-VI.woff2 +0 -0
- package/.output/public/_fonts/BQnDL9FFy0Q_jvURlmv87luvmXLSMbSuXsfZv_R2Rkk-y5MVrLtP4J_1al8rz8R-MDaUOMAHckAWCwDrKhw25fY.woff2 +0 -0
- package/.output/public/_fonts/EP1810cmAtyahQPDHB6nvBzRkIG5RcNv4u5vTy1aYHU-6h0m1Bf2RaAhaXNIrP4eW5ztakwJFN8JcCXPea_zL8E.woff2 +0 -0
- package/.output/public/_fonts/JNWOTRocaYj0gq52vW_s7sHAdSMUetrRmhhggCVxyZ0-8R9ucQ623nsXJTayzizuOYtVntUNPQzR8aWYpk8a8d8.woff2 +0 -0
- package/.output/public/_fonts/JSrPAbQHsQEdUrIE5Ts6fIQ2ymsa4i7HhiCpui6ulCc-_AoyGWssOn06OMh3ZY_GddBBPRny4Igxin4fT_1K6F4.woff2 +0 -0
- package/.output/public/_fonts/Jtqhy44WKYEjGWTSusP5YJfJv7Wf74QqgkBOI9u_77s-Rl_Bht5SvmaotE20bkavBEAJEEGEa0hcz3d_8yOeXmw.woff +0 -0
- package/.output/public/_fonts/M-60tFLmAJxdPjHsK-2ILWom5zPbu37lb3Qex2waL14-A9y4QcXALPi_RvQsmRsSFUxrT3_J213W4zPFIXetlbw.woff2 +0 -0
- package/.output/public/_fonts/T-ozk-QJ_Ck37B2RHPl2i-s_gAGGo7suFgagWoJ8bO4-maDXQ_nEXKAaLHm4Joud3DJR9EVzS7QXWMWK8YOTIcs.woff2 +0 -0
- package/.output/public/_fonts/TTYbISAfwy-y4uVGS9AH32sK7b2xJsoCESo64ryf8LU-y87nRMqBGo42rUOW9tWZa06o4oTa0USJrAMMoKDamgs.woff2 +0 -0
- package/.output/public/_fonts/XbAtjIvy1UErjg9eu_v7X3zPLS_AwsmqVsR9fG-JB6o-s6NA3uLuPs0vnwZNhOTJ1g_7NVire0Uvng_2zP6mjNQ.woff2 +0 -0
- package/.output/public/_fonts/Y_5DOsLit49q2i2tbcNxnyUen9__GPCX8mwAi03q1aA-pBCjVKDT5tBT3BJckh9uzNkfUWeUIBPz9Y8T55vcj8E.woff2 +0 -0
- package/.output/public/_fonts/ZHaz3DhCHNWhsElqYfuM71rfBBDgjuU2sd34vaYJwQg-71NZaZSGjxzAGjCMnCc2zS5rS_EGA0xHKPGCggWuXik.woff +0 -0
- package/.output/public/_fonts/ZLm6CLvwhQbamZ73M80jbqz7DuOkHlT_HRyXHG7YfVs-t7L_F0sYO8m44V7ZmFyCOiGNJDIBFFLVfLeLwCIUhsI.woff2 +0 -0
- package/.output/public/_fonts/aPa9az0DeE4U5rqM-Ov0Vl_obQis_d6sScLNygGkvxw-4s8awL3_7NCZIzHTaY2tD681prJPuNHGqkbChz7OJeE.woff2 +0 -0
- package/.output/public/_fonts/h9PwCjip_BNPVO50hT4v29USWFv6H3ZlYx_IestfqgY-sYfLVuZXl9E1aYbn1S0pAr4zfdQ_WT7iBZhrgQY6N-4.woff2 +0 -0
- package/.output/public/_fonts/kgyHMsxRmhh06xcV0yKMKdTKQBsQpXGi7erqwaqgjXg-BgCmQXkW3N6talUbQSKexB2sHUT0qGEzmM4uMcnDAbI.woff +0 -0
- package/.output/public/_fonts/l00UCz_-QvI_NO8AGcu7ooAcrFDlxYUdxCSCh6gBwd4-vPjTZ3ztgw27A2TnHeCycxPvUtXWEVpG33_97ra6su8.woff2 +0 -0
- package/.output/public/_fonts/nuenOq7ZFSZ65QudJO7uQ0sOjDqow2WjfXrQh4S9gEc-uF81rxcswER5srfhzyLfPoGlKNAIt2C_BvkXFOc19rw.woff2 +0 -0
- package/.output/public/_fonts/pWMvGwciZ-EfQsfR2ueelhC7Jnt5K-8Px8PjPK0mDII-eT9iD0iZ9WWhTJs6V5GxXr0iaUwx_WxgGGriOiGb81o.woff2 +0 -0
- package/.output/public/_fonts/y3mP_zJcojQwJn30TpF_XxDzgeM6Nbk7MaRg1Ne0YcI-lFx13nqMCMgk_S70gRmwEHXlE5BLp1B4W82RpFihpMs.woff2 +0 -0
- package/.output/public/_fonts/zr3WxpLd5PmlBr7e4PWGkhZv6XTg70Pi4sCbC-CEV0Q-v2yL98XOiD3FkbiYlYYeAeTSVSkgAckeOp55Q5kHJmU.woff2 +0 -0
- package/.output/public/_ignis-config.json +1989 -0
- package/.output/public/_nuxt/1soVlS0z.js +1 -0
- package/.output/public/_nuxt/B7rsWaa2.js +1 -0
- package/.output/public/_nuxt/BFreiu22.js +1 -0
- package/.output/public/_nuxt/BLcTglbc.js +1 -0
- package/.output/public/_nuxt/Bhd4_yFT.js +1 -0
- package/.output/public/_nuxt/Bhpb4lc3.js +1 -0
- package/.output/public/_nuxt/Bi2eMDmd.js +1 -0
- package/.output/public/_nuxt/Bm30MqE0.js +1 -0
- package/.output/public/_nuxt/BqsN2CZp.js +1 -0
- package/.output/public/_nuxt/Bs3IGOdt.js +1 -0
- package/.output/public/_nuxt/ByaiRTkI.js +1 -0
- package/.output/public/_nuxt/C9ePPGPX.js +94 -0
- package/.output/public/_nuxt/CA578xwz.js +1 -0
- package/.output/public/_nuxt/CDttUXKg.js +1 -0
- package/.output/public/_nuxt/CQozUI2A.js +1 -0
- package/.output/public/_nuxt/CSN71QT8.js +1 -0
- package/.output/public/_nuxt/CqCaqSd2.js +1 -0
- package/.output/public/_nuxt/D8v-efI7.js +1 -0
- package/.output/public/_nuxt/DBJqMhGy.js +35 -0
- package/.output/public/_nuxt/DR4hWRk7.js +1 -0
- package/.output/public/_nuxt/DRroQ-Xq.js +1 -0
- package/.output/public/_nuxt/DStnBfJS.js +1 -0
- package/.output/public/_nuxt/DXTYyv-V.js +1 -0
- package/.output/public/_nuxt/DeS1g0YT.js +1 -0
- package/.output/public/_nuxt/Deb6R53f.js +1 -0
- package/.output/public/_nuxt/DiDHllLr.js +1 -0
- package/.output/public/_nuxt/DvwlldUy.js +1 -0
- package/.output/public/_nuxt/DyCICqRh.js +1 -0
- package/.output/public/_nuxt/DzT4wm3Y.js +1 -0
- package/.output/public/_nuxt/E8nje24C.js +1 -0
- package/.output/public/_nuxt/ProsePre.D5orA6B_.css +1 -0
- package/.output/public/_nuxt/RbPLLy5S.js +1 -0
- package/.output/public/_nuxt/aetvq4w9.js +6767 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/cbc9377a-971e-4db1-b4b1-01807b82ee58.json +1 -0
- package/.output/public/_nuxt/entry.whtwWr_z.css +1 -0
- package/.output/public/_nuxt/error-404.Cq535Uij.css +1 -0
- package/.output/public/_nuxt/error-500.BHm_N15n.css +1 -0
- package/.output/public/_nuxt/jpnxxCHq.js +1 -0
- package/.output/public/_nuxt/sHsV3x2B.js +1 -0
- package/.output/public/_nuxt/sQEqbbg2.js +1 -0
- package/.output/public/_nuxt/vueform.ChEauysg.css +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/nuxt-ignis.png +0 -0
- package/.output/public/nuxt-spec.png +0 -0
- package/.output/public/unsplash.jpg +0 -0
- package/.output/server/chunks/_/error-500.mjs +10 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/i18n.config.mjs +39 -0
- package/.output/server/chunks/_/i18n.config.mjs.map +1 -0
- package/.output/server/chunks/_/nitro.mjs +12953 -0
- package/.output/server/chunks/_/nitro.mjs.map +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +511 -0
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
- package/.output/server/chunks/build/database.compressed.mjs +4 -0
- package/.output/server/chunks/build/database.compressed.mjs.map +1 -0
- package/.output/server/chunks/raw/headers.mjs +5 -0
- package/.output/server/chunks/raw/headers.mjs.map +1 -0
- package/.output/server/chunks/routes/api/neonTest.mjs +41 -0
- package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +352 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/chunks/virtual/child-sources.mjs +4 -0
- package/.output/server/chunks/virtual/child-sources.mjs.map +1 -0
- package/.output/server/chunks/virtual/global-sources.mjs +48 -0
- package/.output/server/chunks/virtual/global-sources.mjs.map +1 -0
- package/.output/server/index.mjs +49 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/convertor/create.cjs +32 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/data-patch.cjs +7 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/data.cjs +97 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/SyntaxError.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/generate.cjs +135 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/index.cjs +13 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/parse.cjs +588 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/tokenizer.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/walk.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/create.cjs +103 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/sourceMap.cjs +96 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/token-before.cjs +170 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/index.cjs +63 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/Lexer.cjs +459 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/error.cjs +128 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-an-plus-b.cjs +235 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-const.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-urange.cjs +149 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic.cjs +573 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/match-graph.cjs +459 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/match.cjs +632 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/prepare-tokens.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/search.cjs +65 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/structure.cjs +168 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/trace.cjs +73 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/SyntaxError.cjs +69 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/create.cjs +336 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/sequence.cjs +47 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/font-face.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/import.cjs +37 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/index.cjs +17 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/media.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/page.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/supports.cjs +77 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/lexer.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/mix.cjs +142 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/parser.cjs +34 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/walker.cjs +9 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/create.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/function/expression.cjs +11 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/function/var.cjs +43 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/index.cjs +14 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AnPlusB.cjs +293 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Atrule.cjs +103 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AtrulePrelude.cjs +52 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AttributeSelector.cjs +148 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Block.cjs +90 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Brackets.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/CDC.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/CDO.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/ClassSelector.cjs +31 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Combinator.cjs +61 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Comment.cjs +40 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Declaration.cjs +166 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/DeclarationList.cjs +50 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Dimension.cjs +30 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Function.cjs +45 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Hash.cjs +30 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/IdSelector.cjs +33 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Identifier.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaFeature.cjs +76 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaQuery.cjs +61 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaQueryList.cjs +41 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Nth.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Number.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Operator.cjs +28 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Parentheses.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Percentage.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/PseudoClassSelector.cjs +65 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/PseudoElementSelector.cjs +67 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Ratio.cjs +67 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Raw.cjs +48 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Rule.cjs +58 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Selector.cjs +39 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/SelectorList.cjs +43 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/String.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/StyleSheet.cjs +83 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/TypeSelector.cjs +59 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/UnicodeRange.cjs +158 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Url.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Value.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/WhiteSpace.cjs +34 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/index-parse.cjs +85 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/index.cjs +85 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/pseudo/index.cjs +52 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/atrulePrelude.cjs +9 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/default.cjs +76 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/index.cjs +11 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/selector.cjs +84 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/value.cjs +29 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/OffsetToLocation.cjs +91 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/TokenStream.cjs +264 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/adopt-buffer.cjs +13 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/char-code-definitions.cjs +231 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/index.cjs +554 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/names.cjs +31 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/types.cjs +57 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/utils.cjs +261 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/List.cjs +473 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/clone.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/create-custom-error.cjs +18 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/ident.cjs +102 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/names.cjs +113 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/string.cjs +99 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/url.cjs +108 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/version.cjs +5 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/walker/create.cjs +291 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/data/patch.json +739 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/package.json +127 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/convertor/create.cjs +32 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/data-patch.cjs +7 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/data.cjs +99 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/SyntaxError.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/generate.cjs +135 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/index.cjs +13 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/parse.cjs +588 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/tokenizer.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/walk.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/create.cjs +103 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/sourceMap.cjs +96 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/token-before.cjs +170 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/index.cjs +63 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/Lexer.cjs +470 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/error.cjs +128 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-an-plus-b.cjs +235 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-const.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-urange.cjs +149 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic.cjs +573 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/match-graph.cjs +459 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/match.cjs +632 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/prepare-tokens.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/search.cjs +65 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/structure.cjs +168 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/trace.cjs +73 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/units.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/SyntaxError.cjs +69 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/create.cjs +336 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/sequence.cjs +47 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/font-face.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/import.cjs +37 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/index.cjs +19 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/media.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/nest.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/page.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/supports.cjs +77 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/lexer.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/mix.cjs +119 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/parser.cjs +34 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/walker.cjs +9 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/create.cjs +57 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/function/expression.cjs +11 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/function/var.cjs +43 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/index.cjs +14 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AnPlusB.cjs +293 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Atrule.cjs +103 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AtrulePrelude.cjs +52 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AttributeSelector.cjs +148 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Block.cjs +96 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Brackets.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/CDC.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/CDO.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/ClassSelector.cjs +31 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Combinator.cjs +61 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Comment.cjs +40 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Declaration.cjs +166 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/DeclarationList.cjs +62 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Dimension.cjs +30 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Function.cjs +45 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Hash.cjs +30 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/IdSelector.cjs +33 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Identifier.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaFeature.cjs +76 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaQuery.cjs +61 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaQueryList.cjs +41 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/NestingSelector.cjs +29 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Nth.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Number.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Operator.cjs +28 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Parentheses.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Percentage.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/PseudoClassSelector.cjs +65 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/PseudoElementSelector.cjs +67 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Ratio.cjs +67 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Raw.cjs +48 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Rule.cjs +58 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Selector.cjs +39 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/SelectorList.cjs +43 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/String.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/StyleSheet.cjs +83 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/TypeSelector.cjs +59 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/UnicodeRange.cjs +158 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Url.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Value.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/WhiteSpace.cjs +34 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/index-parse.cjs +87 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/index.cjs +87 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/pseudo/index.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/atrulePrelude.cjs +9 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/default.cjs +76 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/index.cjs +11 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/selector.cjs +88 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/value.cjs +29 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/OffsetToLocation.cjs +91 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/TokenStream.cjs +264 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/adopt-buffer.cjs +13 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/char-code-definitions.cjs +231 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/index.cjs +554 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/names.cjs +31 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/types.cjs +57 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/utils.cjs +261 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/List.cjs +473 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/clone.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/create-custom-error.cjs +18 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/ident.cjs +102 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/names.cjs +113 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/string.cjs +99 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/url.cjs +108 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/version.cjs +5 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/walker/create.cjs +291 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/data/patch.json +725 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/package.json +126 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/decode.js +536 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/encode.js +77 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/escape.js +122 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/encode-html.js +12 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/index.js +126 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/package.json +90 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode-codepoint.js +72 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode.js +497 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/escape.js +117 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/package.json +3 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/package.json +118 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/at-rules.json +620 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/properties.json +9297 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/syntaxes.json +794 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.28/package.json +38 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/at-rules.json +620 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/properties.json +9626 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/syntaxes.json +866 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.30/package.json +38 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +18 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +59 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +68 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +28 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +322 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +7 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +567 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +10 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +8 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +58 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +44 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +25 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +26 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +28 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/types.js +13 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +17 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +9 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +9 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +93 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/index.js +17 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/aria.js +61 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/find.js +97 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/hast-to-react.js +30 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/html.js +322 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/normalize.js +12 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/svg.js +567 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/case-insensitive-transform.js +13 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/case-sensitive-transform.js +11 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/create.js +69 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/defined-info.js +60 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/info.js +32 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/merge.js +27 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/schema.js +29 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +13 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xlink.js +17 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xml.js +9 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xmlns.js +9 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/package.json +121 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-7RS6HCBK.js +36 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSA56AE7.js +26 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSBRDJBE.js +30 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-RHMXMP27.js +202 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-WB54OA6N.js +193 -0
- package/.output/server/node_modules/@adonisjs/hash/build/index.js +9 -0
- package/.output/server/node_modules/@adonisjs/hash/build/src/drivers/scrypt.js +9 -0
- package/.output/server/node_modules/@adonisjs/hash/package.json +150 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14595 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@fastify/accept-negotiator/index.js +170 -0
- package/.output/server/node_modules/@fastify/accept-negotiator/package.json +51 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.mjs +350 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.mjs +188 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.mjs +90 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.mjs +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.mjs +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.mjs +168 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.mjs +14 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.mjs +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.mjs +51 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.mjs +84 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.mjs +44 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.mjs +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.mjs +231 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.mjs +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.mjs +164 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.mjs +216 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.mjs +113 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.mjs +104 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.mjs +34 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.mjs +75 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.mjs +97 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.mjs +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.mjs +97 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.mjs +45 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.mjs +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.mjs +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.mjs +24 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.mjs +53 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.mjs +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.mjs +182 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.mjs +46 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.mjs +66 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.mjs +51 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.mjs +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.mjs +62 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.mjs +161 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.mjs +64 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.mjs +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.mjs +59 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.mjs +80 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.mjs +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.mjs +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.mjs +17 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.mjs +5 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.mjs +119 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.mjs +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.mjs +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.mjs +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.mjs +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.mjs +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.mjs +83 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.mjs +70 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.mjs +40 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.mjs +5 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.mjs +11 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.mjs +8 -0
- package/.output/server/node_modules/@iconify/utils/package.json +447 -0
- package/.output/server/node_modules/@intlify/core/dist/core.mjs +31 -0
- package/.output/server/node_modules/@intlify/core/package.json +82 -0
- package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +1886 -0
- package/.output/server/node_modules/@intlify/core-base/package.json +80 -0
- package/.output/server/node_modules/@intlify/h3/dist/index.mjs +61 -0
- package/.output/server/node_modules/@intlify/h3/package.json +89 -0
- package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1530 -0
- package/.output/server/node_modules/@intlify/message-compiler/package.json +79 -0
- package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +281 -0
- package/.output/server/node_modules/@intlify/shared/package.json +69 -0
- package/.output/server/node_modules/@intlify/utils/dist/h3.mjs +89 -0
- package/.output/server/node_modules/@intlify/utils/dist/index.mjs +121 -0
- package/.output/server/node_modules/@intlify/utils/dist/shared/utils.12d9adcd.mjs +133 -0
- package/.output/server/node_modules/@intlify/utils/dist/shared/utils.9f8159f5.mjs +108 -0
- package/.output/server/node_modules/@intlify/utils/package.json +129 -0
- package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +34 -0
- package/.output/server/node_modules/@lukeed/ms/package.json +48 -0
- package/.output/server/node_modules/@neondatabase/serverless/index.mjs +1374 -0
- package/.output/server/node_modules/@neondatabase/serverless/package.json +115 -0
- package/.output/server/node_modules/@phc/format/index.js +229 -0
- package/.output/server/node_modules/@phc/format/package.json +60 -0
- package/.output/server/node_modules/@poppinss/exception/build/index.js +63 -0
- package/.output/server/node_modules/@poppinss/exception/package.json +106 -0
- package/.output/server/node_modules/@poppinss/object-builder/build/index.js +49 -0
- package/.output/server/node_modules/@poppinss/object-builder/package.json +112 -0
- package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +407 -0
- package/.output/server/node_modules/@poppinss/string/build/index.js +6 -0
- package/.output/server/node_modules/@poppinss/string/package.json +128 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-2KG3PWR4.js +17 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-4V5ON6P7.js +7 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-EJKUJ44Y.js +12 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-H54AK3PI.js +7 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-XHQBV7AF.js +39 -0
- package/.output/server/node_modules/@poppinss/utils/build/index.js +365 -0
- package/.output/server/node_modules/@poppinss/utils/build/lodash/main.cjs +39 -0
- package/.output/server/node_modules/@poppinss/utils/package.json +153 -0
- package/.output/server/node_modules/@shikijs/core/dist/index.mjs +2333 -0
- package/.output/server/node_modules/@shikijs/core/package.json +49 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +52 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +22 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs +93 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/package.json +39 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +448 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +42 -0
- package/.output/server/node_modules/@shikijs/langs/dist/css.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/html.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/json.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
- package/.output/server/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/package.json +357 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/package.json +98 -0
- package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +744 -0
- package/.output/server/node_modules/@shikijs/transformers/package.json +37 -0
- package/.output/server/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/.output/server/node_modules/@shikijs/types/package.json +36 -0
- package/.output/server/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
- package/.output/server/node_modules/@shikijs/vscode-textmate/package.json +46 -0
- package/.output/server/node_modules/@sindresorhus/is/dist/index.js +434 -0
- package/.output/server/node_modules/@sindresorhus/is/package.json +96 -0
- package/.output/server/node_modules/@trysound/sax/lib/sax.js +1413 -0
- package/.output/server/node_modules/@trysound/sax/package.json +30 -0
- package/.output/server/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/.output/server/node_modules/@ungap/structured-clone/esm/index.js +25 -0
- package/.output/server/node_modules/@ungap/structured-clone/esm/serialize.js +171 -0
- package/.output/server/node_modules/@ungap/structured-clone/esm/types.js +11 -0
- package/.output/server/node_modules/@ungap/structured-clone/package.json +54 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6741 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1411 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1807 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6732 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1703 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/bail/index.js +12 -0
- package/.output/server/node_modules/bail/package.json +73 -0
- package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
- package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
- package/.output/server/node_modules/better-sqlite3/package.json +62 -0
- package/.output/server/node_modules/bindings/bindings.js +221 -0
- package/.output/server/node_modules/bindings/package.json +28 -0
- package/.output/server/node_modules/boolbase/index.js +8 -0
- package/.output/server/node_modules/boolbase/package.json +23 -0
- package/.output/server/node_modules/bytes/index.js +170 -0
- package/.output/server/node_modules/bytes/package.json +42 -0
- package/.output/server/node_modules/case-anything/dist/core.js +242 -0
- package/.output/server/node_modules/case-anything/dist/index.js +1 -0
- package/.output/server/node_modules/case-anything/dist/utils.js +90 -0
- package/.output/server/node_modules/case-anything/package.json +61 -0
- package/.output/server/node_modules/ccount/index.js +27 -0
- package/.output/server/node_modules/ccount/package.json +71 -0
- package/.output/server/node_modules/char-regex/index.js +39 -0
- package/.output/server/node_modules/char-regex/package.json +44 -0
- package/.output/server/node_modules/character-entities/index.js +2132 -0
- package/.output/server/node_modules/character-entities/package.json +78 -0
- package/.output/server/node_modules/character-entities-html4/index.js +259 -0
- package/.output/server/node_modules/character-entities-html4/package.json +79 -0
- package/.output/server/node_modules/character-entities-legacy/index.js +113 -0
- package/.output/server/node_modules/character-entities-legacy/package.json +77 -0
- package/.output/server/node_modules/character-reference-invalid/index.js +35 -0
- package/.output/server/node_modules/character-reference-invalid/package.json +83 -0
- package/.output/server/node_modules/color/index.js +496 -0
- package/.output/server/node_modules/color/package.json +47 -0
- package/.output/server/node_modules/color-convert/conversions.js +839 -0
- package/.output/server/node_modules/color-convert/index.js +81 -0
- package/.output/server/node_modules/color-convert/package.json +48 -0
- package/.output/server/node_modules/color-convert/route.js +97 -0
- package/.output/server/node_modules/color-name/index.js +152 -0
- package/.output/server/node_modules/color-name/package.json +28 -0
- package/.output/server/node_modules/color-string/index.js +242 -0
- package/.output/server/node_modules/color-string/package.json +39 -0
- package/.output/server/node_modules/comma-separated-tokens/index.js +74 -0
- package/.output/server/node_modules/comma-separated-tokens/package.json +72 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/cookie-es/dist/index.mjs +262 -0
- package/.output/server/node_modules/cookie-es/package.json +46 -0
- package/.output/server/node_modules/css-select/lib/attributes.js +236 -0
- package/.output/server/node_modules/css-select/lib/compile.js +151 -0
- package/.output/server/node_modules/css-select/lib/general.js +148 -0
- package/.output/server/node_modules/css-select/lib/index.js +154 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/aliases.js +34 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/filters.js +157 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/index.js +46 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/pseudos.js +93 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/subselects.js +112 -0
- package/.output/server/node_modules/css-select/lib/sort.js +84 -0
- package/.output/server/node_modules/css-select/package.json +81 -0
- package/.output/server/node_modules/css-what/lib/commonjs/index.js +23 -0
- package/.output/server/node_modules/css-what/lib/commonjs/parse.js +425 -0
- package/.output/server/node_modules/css-what/lib/commonjs/stringify.js +138 -0
- package/.output/server/node_modules/css-what/lib/commonjs/types.js +42 -0
- package/.output/server/node_modules/css-what/package.json +59 -0
- package/.output/server/node_modules/cssfilter/lib/css.js +110 -0
- package/.output/server/node_modules/cssfilter/lib/default.js +398 -0
- package/.output/server/node_modules/cssfilter/lib/index.js +32 -0
- package/.output/server/node_modules/cssfilter/lib/parser.js +74 -0
- package/.output/server/node_modules/cssfilter/lib/util.js +35 -0
- package/.output/server/node_modules/cssfilter/package.json +49 -0
- package/.output/server/node_modules/csso/cjs/clean/Atrule.cjs +73 -0
- package/.output/server/node_modules/csso/cjs/clean/Comment.cjs +7 -0
- package/.output/server/node_modules/csso/cjs/clean/Declaration.cjs +18 -0
- package/.output/server/node_modules/csso/cjs/clean/Raw.cjs +13 -0
- package/.output/server/node_modules/csso/cjs/clean/Rule.cjs +104 -0
- package/.output/server/node_modules/csso/cjs/clean/TypeSelector.cjs +23 -0
- package/.output/server/node_modules/csso/cjs/clean/WhiteSpace.cjs +7 -0
- package/.output/server/node_modules/csso/cjs/clean/index.cjs +32 -0
- package/.output/server/node_modules/csso/cjs/clean/utils.cjs +12 -0
- package/.output/server/node_modules/csso/cjs/compress.cjs +200 -0
- package/.output/server/node_modules/csso/cjs/index.cjs +127 -0
- package/.output/server/node_modules/csso/cjs/replace/Atrule.cjs +13 -0
- package/.output/server/node_modules/csso/cjs/replace/AttributeSelector.cjs +32 -0
- package/.output/server/node_modules/csso/cjs/replace/Dimension.cjs +67 -0
- package/.output/server/node_modules/csso/cjs/replace/Number.cjs +45 -0
- package/.output/server/node_modules/csso/cjs/replace/Percentage.cjs +41 -0
- package/.output/server/node_modules/csso/cjs/replace/Url.cjs +8 -0
- package/.output/server/node_modules/csso/cjs/replace/Value.cjs +29 -0
- package/.output/server/node_modules/csso/cjs/replace/atrule/keyframes.cjs +25 -0
- package/.output/server/node_modules/csso/cjs/replace/color.cjs +504 -0
- package/.output/server/node_modules/csso/cjs/replace/index.cjs +36 -0
- package/.output/server/node_modules/csso/cjs/replace/property/background.cjs +54 -0
- package/.output/server/node_modules/csso/cjs/replace/property/border.cjs +20 -0
- package/.output/server/node_modules/csso/cjs/replace/property/font-weight.cjs +26 -0
- package/.output/server/node_modules/csso/cjs/replace/property/font.cjs +34 -0
- package/.output/server/node_modules/csso/cjs/restructure/1-mergeAtrule.cjs +109 -0
- package/.output/server/node_modules/csso/cjs/restructure/2-initialMergeRuleset.cjs +51 -0
- package/.output/server/node_modules/csso/cjs/restructure/3-disjoinRuleset.cjs +46 -0
- package/.output/server/node_modules/csso/cjs/restructure/4-restructShorthand.cjs +429 -0
- package/.output/server/node_modules/csso/cjs/restructure/6-restructBlock.cjs +307 -0
- package/.output/server/node_modules/csso/cjs/restructure/7-mergeRuleset.cjs +90 -0
- package/.output/server/node_modules/csso/cjs/restructure/8-restructRuleset.cjs +175 -0
- package/.output/server/node_modules/csso/cjs/restructure/index.cjs +39 -0
- package/.output/server/node_modules/csso/cjs/restructure/prepare/createDeclarationIndexer.cjs +34 -0
- package/.output/server/node_modules/csso/cjs/restructure/prepare/index.cjs +45 -0
- package/.output/server/node_modules/csso/cjs/restructure/prepare/processSelector.cjs +101 -0
- package/.output/server/node_modules/csso/cjs/restructure/prepare/specificity.cjs +133 -0
- package/.output/server/node_modules/csso/cjs/restructure/utils.cjs +151 -0
- package/.output/server/node_modules/csso/cjs/syntax.cjs +60 -0
- package/.output/server/node_modules/csso/cjs/usage.cjs +75 -0
- package/.output/server/node_modules/csso/cjs/utils.cjs +14 -0
- package/.output/server/node_modules/csso/cjs/version.cjs +5 -0
- package/.output/server/node_modules/csso/package.json +82 -0
- package/.output/server/node_modules/debug/package.json +64 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/decode-named-character-reference/index.js +19 -0
- package/.output/server/node_modules/decode-named-character-reference/package.json +89 -0
- package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
- package/.output/server/node_modules/defu/package.json +43 -0
- package/.output/server/node_modules/destr/dist/index.mjs +72 -0
- package/.output/server/node_modules/destr/package.json +47 -0
- package/.output/server/node_modules/detab/index.js +45 -0
- package/.output/server/node_modules/detab/package.json +71 -0
- package/.output/server/node_modules/detect-libc/lib/detect-libc.js +267 -0
- package/.output/server/node_modules/detect-libc/lib/filesystem.js +41 -0
- package/.output/server/node_modules/detect-libc/lib/process.js +24 -0
- package/.output/server/node_modules/detect-libc/package.json +41 -0
- package/.output/server/node_modules/devalue/index.js +3 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +195 -0
- package/.output/server/node_modules/devalue/src/stringify.js +261 -0
- package/.output/server/node_modules/devalue/src/uneval.js +402 -0
- package/.output/server/node_modules/devalue/src/utils.js +114 -0
- package/.output/server/node_modules/devlop/lib/default.js +9 -0
- package/.output/server/node_modules/devlop/package.json +80 -0
- package/.output/server/node_modules/dom-serializer/lib/foreignNames.js +103 -0
- package/.output/server/node_modules/dom-serializer/lib/index.js +229 -0
- package/.output/server/node_modules/dom-serializer/package.json +69 -0
- package/.output/server/node_modules/domelementtype/lib/index.js +55 -0
- package/.output/server/node_modules/domelementtype/package.json +54 -0
- package/.output/server/node_modules/domhandler/lib/index.js +165 -0
- package/.output/server/node_modules/domhandler/lib/node.js +474 -0
- package/.output/server/node_modules/domhandler/package.json +73 -0
- package/.output/server/node_modules/domutils/lib/feeds.js +190 -0
- package/.output/server/node_modules/domutils/lib/helpers.js +142 -0
- package/.output/server/node_modules/domutils/lib/index.js +33 -0
- package/.output/server/node_modules/domutils/lib/legacy.js +168 -0
- package/.output/server/node_modules/domutils/lib/manipulation.js +142 -0
- package/.output/server/node_modules/domutils/lib/querying.js +155 -0
- package/.output/server/node_modules/domutils/lib/stringify.js +91 -0
- package/.output/server/node_modules/domutils/lib/traversal.js +125 -0
- package/.output/server/node_modules/domutils/package.json +79 -0
- package/.output/server/node_modules/emojilib/emojis.json +9422 -0
- package/.output/server/node_modules/emojilib/index.js +5 -0
- package/.output/server/node_modules/emojilib/ordered.json +1572 -0
- package/.output/server/node_modules/emojilib/package.json +41 -0
- package/.output/server/node_modules/emoticon/index.js +480 -0
- package/.output/server/node_modules/emoticon/package.json +88 -0
- package/.output/server/node_modules/escape-string-regexp/index.js +11 -0
- package/.output/server/node_modules/escape-string-regexp/package.json +40 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/etag/index.js +131 -0
- package/.output/server/node_modules/etag/package.json +47 -0
- package/.output/server/node_modules/extend/index.js +117 -0
- package/.output/server/node_modules/extend/package.json +42 -0
- package/.output/server/node_modules/fast-xml-parser/package.json +90 -0
- package/.output/server/node_modules/fast-xml-parser/src/fxp.js +14 -0
- package/.output/server/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
- package/.output/server/node_modules/fast-xml-parser/src/util.js +68 -0
- package/.output/server/node_modules/fast-xml-parser/src/validator.js +425 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +285 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +134 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +369 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +46 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +606 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +71 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/node2json.js +119 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +40 -0
- package/.output/server/node_modules/file-uri-to-path/index.js +66 -0
- package/.output/server/node_modules/file-uri-to-path/package.json +32 -0
- package/.output/server/node_modules/flat/index.js +157 -0
- package/.output/server/node_modules/flat/package.json +49 -0
- package/.output/server/node_modules/flattie/dist/index.mjs +25 -0
- package/.output/server/node_modules/flattie/package.json +48 -0
- package/.output/server/node_modules/github-slugger/index.js +77 -0
- package/.output/server/node_modules/github-slugger/package.json +71 -0
- package/.output/server/node_modules/github-slugger/regex.js +3 -0
- package/.output/server/node_modules/h3/dist/index.mjs +2478 -0
- package/.output/server/node_modules/h3/package.json +75 -0
- package/.output/server/node_modules/has-flag/index.js +8 -0
- package/.output/server/node_modules/has-flag/package.json +46 -0
- package/.output/server/node_modules/hast-util-embedded/index.js +1 -0
- package/.output/server/node_modules/hast-util-embedded/lib/index.js +33 -0
- package/.output/server/node_modules/hast-util-embedded/package.json +78 -0
- package/.output/server/node_modules/hast-util-format/index.js +2 -0
- package/.output/server/node_modules/hast-util-format/lib/index.js +186 -0
- package/.output/server/node_modules/hast-util-format/package.json +124 -0
- package/.output/server/node_modules/hast-util-from-parse5/index.js +2 -0
- package/.output/server/node_modules/hast-util-from-parse5/lib/index.js +337 -0
- package/.output/server/node_modules/hast-util-from-parse5/package.json +120 -0
- package/.output/server/node_modules/hast-util-has-property/index.js +1 -0
- package/.output/server/node_modules/hast-util-has-property/lib/index.js +29 -0
- package/.output/server/node_modules/hast-util-has-property/package.json +79 -0
- package/.output/server/node_modules/hast-util-is-body-ok-link/index.js +46 -0
- package/.output/server/node_modules/hast-util-is-body-ok-link/lib/index.js +38 -0
- package/.output/server/node_modules/hast-util-is-body-ok-link/package.json +52 -0
- package/.output/server/node_modules/hast-util-is-element/index.js +7 -0
- package/.output/server/node_modules/hast-util-is-element/lib/index.js +278 -0
- package/.output/server/node_modules/hast-util-is-element/package.json +82 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/index.js +69 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/lib/block.js +61 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/lib/content.js +7 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/lib/index.js +377 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/lib/skippable.js +20 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/package.json +56 -0
- package/.output/server/node_modules/hast-util-parse-selector/index.js +1 -0
- package/.output/server/node_modules/hast-util-parse-selector/lib/index.js +87 -0
- package/.output/server/node_modules/hast-util-parse-selector/package.json +79 -0
- package/.output/server/node_modules/hast-util-phrasing/index.js +1 -0
- package/.output/server/node_modules/hast-util-phrasing/lib/index.js +78 -0
- package/.output/server/node_modules/hast-util-phrasing/package.json +83 -0
- package/.output/server/node_modules/hast-util-raw/index.js +2 -0
- package/.output/server/node_modules/hast-util-raw/lib/index.js +682 -0
- package/.output/server/node_modules/hast-util-raw/package.json +123 -0
- package/.output/server/node_modules/hast-util-to-html/index.js +8 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
- package/.output/server/node_modules/hast-util-to-html/lib/index.js +257 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
- package/.output/server/node_modules/hast-util-to-html/package.json +106 -0
- package/.output/server/node_modules/hast-util-to-mdast/index.js +13 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/a.js +30 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/base.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/blockquote.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/br.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/code.js +65 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/comment.js +23 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/del.js +23 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/dl.js +144 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/em.js +24 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/heading.js +30 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/hr.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/iframe.js +35 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/img.js +27 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/index.js +233 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/inline-code.js +22 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/input.js +137 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/li.js +147 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/list.js +47 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/media.js +82 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/p.js +30 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/q.js +43 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/root.js +28 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/select.js +34 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/strong.js +24 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table-cell.js +38 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table-row.js +29 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table.js +203 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/text.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/textarea.js +22 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/wbr.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/index.js +111 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/state.js +389 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/util/drop-surrounding-breaks.js +23 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/util/find-selected-options.js +90 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/util/list-items-spread.js +25 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/util/wrap.js +223 -0
- package/.output/server/node_modules/hast-util-to-mdast/package.json +124 -0
- package/.output/server/node_modules/hast-util-to-parse5/index.js +6 -0
- package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +338 -0
- package/.output/server/node_modules/hast-util-to-parse5/package.json +87 -0
- package/.output/server/node_modules/hast-util-to-string/index.js +46 -0
- package/.output/server/node_modules/hast-util-to-string/lib/index.js +54 -0
- package/.output/server/node_modules/hast-util-to-string/package.json +54 -0
- package/.output/server/node_modules/hast-util-to-text/index.js +6 -0
- package/.output/server/node_modules/hast-util-to-text/lib/index.js +633 -0
- package/.output/server/node_modules/hast-util-to-text/package.json +87 -0
- package/.output/server/node_modules/hast-util-whitespace/index.js +1 -0
- package/.output/server/node_modules/hast-util-whitespace/lib/index.js +34 -0
- package/.output/server/node_modules/hast-util-whitespace/package.json +83 -0
- package/.output/server/node_modules/hastscript/index.js +7 -0
- package/.output/server/node_modules/hastscript/lib/create-h.js +365 -0
- package/.output/server/node_modules/hastscript/lib/index.js +27 -0
- package/.output/server/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +46 -0
- package/.output/server/node_modules/hastscript/package.json +126 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/html-void-elements/index.js +27 -0
- package/.output/server/node_modules/html-void-elements/package.json +79 -0
- package/.output/server/node_modules/html-whitespace-sensitive-tag-names/index.js +28 -0
- package/.output/server/node_modules/html-whitespace-sensitive-tag-names/lib/index.js +9 -0
- package/.output/server/node_modules/html-whitespace-sensitive-tag-names/package.json +48 -0
- package/.output/server/node_modules/image-meta/dist/index.mjs +785 -0
- package/.output/server/node_modules/image-meta/package.json +46 -0
- package/.output/server/node_modules/ipx/dist/index.mjs +52 -0
- package/.output/server/node_modules/ipx/dist/shared/ipx.e4d5b25d.mjs +761 -0
- package/.output/server/node_modules/ipx/package.json +72 -0
- package/.output/server/node_modules/iron-webcrypto/dist/index.js +298 -0
- package/.output/server/node_modules/iron-webcrypto/package.json +72 -0
- package/.output/server/node_modules/is-absolute-url/index.js +18 -0
- package/.output/server/node_modules/is-absolute-url/package.json +37 -0
- package/.output/server/node_modules/is-alphabetical/index.js +16 -0
- package/.output/server/node_modules/is-alphabetical/package.json +73 -0
- package/.output/server/node_modules/is-alphanumerical/index.js +13 -0
- package/.output/server/node_modules/is-alphanumerical/package.json +79 -0
- package/.output/server/node_modules/is-arrayish/index.js +9 -0
- package/.output/server/node_modules/is-arrayish/package.json +45 -0
- package/.output/server/node_modules/is-decimal/index.js +13 -0
- package/.output/server/node_modules/is-decimal/package.json +73 -0
- package/.output/server/node_modules/is-hexadecimal/index.js +17 -0
- package/.output/server/node_modules/is-hexadecimal/package.json +73 -0
- package/.output/server/node_modules/is-plain-obj/index.js +8 -0
- package/.output/server/node_modules/is-plain-obj/package.json +41 -0
- package/.output/server/node_modules/jose/dist/webapi/index.js +30 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +165 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +165 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/general/encrypt.js +187 -0
- package/.output/server/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
- package/.output/server/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/.output/server/node_modules/jose/dist/webapi/jwks/local.js +119 -0
- package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/flattened/sign.js +86 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/flattened/verify.js +116 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/general/sign.js +73 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/encrypt.js +108 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/.output/server/node_modules/jose/dist/webapi/key/export.js +11 -0
- package/.output/server/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
- package/.output/server/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/.output/server/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/aesgcmkw.js +16 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/asn1.js +247 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/buffer_utils.js +32 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/cek.js +19 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/check_cek_length.js +7 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/check_iv_length.js +7 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/check_key_length.js +8 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +126 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/crypto_key.js +147 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/decrypt.js +106 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +127 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/digest.js +4 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/encrypt.js +74 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +92 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/epoch.js +1 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +12 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/invalid_key_input.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_disjoint.js +21 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_jwk.js +14 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_key_like.js +14 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_object.js +16 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/iv.js +19 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwk_to_key.js +109 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +185 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/normalize_key.js +176 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/pbes2kw.js +37 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/private_symbols.js +1 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/secs.js +55 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/sign.js +9 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/subtle_dsa.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/verify.js +14 -0
- package/.output/server/node_modules/jose/dist/webapi/util/base64url.js +30 -0
- package/.output/server/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/.output/server/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
- package/.output/server/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/.output/server/node_modules/jose/package.json +200 -0
- package/.output/server/node_modules/longest-streak/index.js +36 -0
- package/.output/server/node_modules/longest-streak/package.json +73 -0
- package/.output/server/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/.output/server/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/.output/server/node_modules/lru-cache/package.json +116 -0
- package/.output/server/node_modules/markdown-table/index.js +393 -0
- package/.output/server/node_modules/markdown-table/package.json +77 -0
- package/.output/server/node_modules/mdast-util-find-and-replace/index.js +11 -0
- package/.output/server/node_modules/mdast-util-find-and-replace/lib/index.js +261 -0
- package/.output/server/node_modules/mdast-util-find-and-replace/package.json +85 -0
- package/.output/server/node_modules/mdast-util-from-markdown/index.js +2 -0
- package/.output/server/node_modules/mdast-util-from-markdown/lib/index.js +1177 -0
- package/.output/server/node_modules/mdast-util-from-markdown/package.json +139 -0
- package/.output/server/node_modules/mdast-util-gfm/index.js +2 -0
- package/.output/server/node_modules/mdast-util-gfm/lib/index.js +63 -0
- package/.output/server/node_modules/mdast-util-gfm/package.json +125 -0
- package/.output/server/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
- package/.output/server/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
- package/.output/server/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
- package/.output/server/node_modules/mdast-util-gfm-footnote/index.js +2 -0
- package/.output/server/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
- package/.output/server/node_modules/mdast-util-gfm-footnote/package.json +111 -0
- package/.output/server/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
- package/.output/server/node_modules/mdast-util-gfm-strikethrough/lib/index.js +106 -0
- package/.output/server/node_modules/mdast-util-gfm-strikethrough/package.json +99 -0
- package/.output/server/node_modules/mdast-util-gfm-table/index.js +2 -0
- package/.output/server/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
- package/.output/server/node_modules/mdast-util-gfm-table/package.json +101 -0
- package/.output/server/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
- package/.output/server/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
- package/.output/server/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
- package/.output/server/node_modules/mdast-util-phrasing/index.js +1 -0
- package/.output/server/node_modules/mdast-util-phrasing/lib/index.js +45 -0
- package/.output/server/node_modules/mdast-util-phrasing/package.json +78 -0
- package/.output/server/node_modules/mdast-util-to-hast/index.js +7 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/footer.js +252 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/break.js +26 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/code.js +50 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/delete.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +70 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/heading.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/html.js +31 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +41 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/image.js +36 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/index.js +64 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +35 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +46 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/link.js +37 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +125 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/list.js +56 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/root.js +26 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/strong.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +32 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +69 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table.js +61 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/text.js +25 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/index.js +106 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/revert.js +55 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/state.js +473 -0
- package/.output/server/node_modules/mdast-util-to-hast/package.json +118 -0
- package/.output/server/node_modules/mdast-util-to-markdown/index.js +3 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/configure.js +79 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +29 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/break.js +30 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/code.js +75 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/definition.js +76 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +69 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/heading.js +75 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/html.js +20 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +63 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image.js +82 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +76 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +63 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link.js +114 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +62 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list.js +100 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +20 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/root.js +23 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/strong.js +69 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/text.js +15 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/index.js +187 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/join.js +39 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/unsafe.js +146 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +38 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +24 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +84 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +125 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +22 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +34 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +34 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +35 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +41 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/safe.js +174 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
- package/.output/server/node_modules/mdast-util-to-markdown/package.json +132 -0
- package/.output/server/node_modules/mdast-util-to-string/index.js +5 -0
- package/.output/server/node_modules/mdast-util-to-string/lib/index.js +108 -0
- package/.output/server/node_modules/mdast-util-to-string/package.json +78 -0
- package/.output/server/node_modules/micromark/index.js +60 -0
- package/.output/server/node_modules/micromark/lib/compile.js +1060 -0
- package/.output/server/node_modules/micromark/lib/constructs.js +85 -0
- package/.output/server/node_modules/micromark/lib/create-tokenizer.js +611 -0
- package/.output/server/node_modules/micromark/lib/initialize/content.js +79 -0
- package/.output/server/node_modules/micromark/lib/initialize/document.js +362 -0
- package/.output/server/node_modules/micromark/lib/initialize/flow.js +58 -0
- package/.output/server/node_modules/micromark/lib/initialize/text.js +212 -0
- package/.output/server/node_modules/micromark/lib/parse.js +56 -0
- package/.output/server/node_modules/micromark/lib/postprocess.js +18 -0
- package/.output/server/node_modules/micromark/lib/preprocess.js +115 -0
- package/.output/server/node_modules/micromark/package.json +100 -0
- package/.output/server/node_modules/micromark-core-commonmark/index.js +22 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/attention.js +241 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/code-fenced.js +460 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/code-indented.js +177 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/content.js +163 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/heading-atx.js +195 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/html-flow.js +876 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/label-end.js +560 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-image.js +102 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-link.js +55 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/list.js +213 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/setext-underline.js +185 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
- package/.output/server/node_modules/micromark-core-commonmark/package.json +74 -0
- package/.output/server/node_modules/micromark-extension-gfm/index.js +69 -0
- package/.output/server/node_modules/micromark-extension-gfm/package.json +107 -0
- package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
- package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
- package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
- package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
- package/.output/server/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
- package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
- package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
- package/.output/server/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
- package/.output/server/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
- package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
- package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
- package/.output/server/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/index.js +2 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/lib/edit-map.js +202 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/lib/html.js +130 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/lib/syntax.js +819 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/package.json +128 -0
- package/.output/server/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
- package/.output/server/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
- package/.output/server/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
- package/.output/server/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
- package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
- package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
- package/.output/server/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
- package/.output/server/node_modules/micromark-factory-destination/index.js +206 -0
- package/.output/server/node_modules/micromark-factory-destination/package.json +57 -0
- package/.output/server/node_modules/micromark-factory-label/index.js +148 -0
- package/.output/server/node_modules/micromark-factory-label/package.json +60 -0
- package/.output/server/node_modules/micromark-factory-space/index.js +64 -0
- package/.output/server/node_modules/micromark-factory-space/package.json +55 -0
- package/.output/server/node_modules/micromark-factory-title/index.js +158 -0
- package/.output/server/node_modules/micromark-factory-title/package.json +58 -0
- package/.output/server/node_modules/micromark-factory-whitespace/index.js +44 -0
- package/.output/server/node_modules/micromark-factory-whitespace/package.json +57 -0
- package/.output/server/node_modules/micromark-util-character/index.js +246 -0
- package/.output/server/node_modules/micromark-util-character/package.json +57 -0
- package/.output/server/node_modules/micromark-util-chunked/index.js +81 -0
- package/.output/server/node_modules/micromark-util-chunked/package.json +57 -0
- package/.output/server/node_modules/micromark-util-classify-character/index.js +27 -0
- package/.output/server/node_modules/micromark-util-classify-character/package.json +59 -0
- package/.output/server/node_modules/micromark-util-combine-extensions/index.js +143 -0
- package/.output/server/node_modules/micromark-util-combine-extensions/package.json +52 -0
- package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
- package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
- package/.output/server/node_modules/micromark-util-decode-string/index.js +45 -0
- package/.output/server/node_modules/micromark-util-decode-string/package.json +63 -0
- package/.output/server/node_modules/micromark-util-encode/index.js +33 -0
- package/.output/server/node_modules/micromark-util-encode/package.json +47 -0
- package/.output/server/node_modules/micromark-util-html-tag-name/index.js +93 -0
- package/.output/server/node_modules/micromark-util-html-tag-name/package.json +47 -0
- package/.output/server/node_modules/micromark-util-normalize-identifier/index.js +33 -0
- package/.output/server/node_modules/micromark-util-normalize-identifier/package.json +58 -0
- package/.output/server/node_modules/micromark-util-resolve-all/index.js +32 -0
- package/.output/server/node_modules/micromark-util-resolve-all/package.json +48 -0
- package/.output/server/node_modules/micromark-util-sanitize-uri/index.js +107 -0
- package/.output/server/node_modules/micromark-util-sanitize-uri/package.json +59 -0
- package/.output/server/node_modules/micromark-util-subtokenize/index.js +228 -0
- package/.output/server/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
- package/.output/server/node_modules/micromark-util-subtokenize/package.json +60 -0
- package/.output/server/node_modules/minimark/dist/hast.mjs +39 -0
- package/.output/server/node_modules/minimark/package.json +40 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/node-emoji/lib/index.js +174 -0
- package/.output/server/node_modules/node-emoji/package.json +118 -0
- package/.output/server/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -0
- package/.output/server/node_modules/node-fetch-native/dist/index.mjs +1 -0
- package/.output/server/node_modules/node-fetch-native/dist/node.mjs +19 -0
- package/.output/server/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +1 -0
- package/.output/server/node_modules/node-fetch-native/package.json +138 -0
- package/.output/server/node_modules/node-mock-http/dist/_polyfill/buffer/node.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/dist/_polyfill/events/node.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/package.json +63 -0
- package/.output/server/node_modules/nth-check/lib/compile.js +121 -0
- package/.output/server/node_modules/nth-check/lib/index.js +70 -0
- package/.output/server/node_modules/nth-check/lib/parse.js +77 -0
- package/.output/server/node_modules/nth-check/package.json +78 -0
- package/.output/server/node_modules/oauth4webapi/build/index.js +2492 -0
- package/.output/server/node_modules/oauth4webapi/package.json +105 -0
- package/.output/server/node_modules/ofetch/dist/node.mjs +32 -0
- package/.output/server/node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs +333 -0
- package/.output/server/node_modules/ofetch/package.json +96 -0
- package/.output/server/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
- package/.output/server/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/utils.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/package.json +64 -0
- package/.output/server/node_modules/oniguruma-to-es/dist/esm/index.js +1876 -0
- package/.output/server/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
- package/.output/server/node_modules/oniguruma-to-es/package.json +61 -0
- package/.output/server/node_modules/openid-client/build/index.js +1310 -0
- package/.output/server/node_modules/openid-client/package.json +122 -0
- package/.output/server/node_modules/parse-entities/index.js +3 -0
- package/.output/server/node_modules/parse-entities/lib/index.js +407 -0
- package/.output/server/node_modules/parse-entities/package.json +91 -0
- package/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
- package/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/.output/server/node_modules/parse5/dist/common/html.js +523 -0
- package/.output/server/node_modules/parse5/dist/common/token.js +20 -0
- package/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
- package/.output/server/node_modules/parse5/dist/index.js +42 -0
- package/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
- package/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.output/server/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/.output/server/node_modules/parse5/package.json +50 -0
- package/.output/server/node_modules/pathe/dist/index.mjs +1 -0
- package/.output/server/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
- package/.output/server/node_modules/pathe/package.json +48 -0
- package/.output/server/node_modules/pluralize/package.json +40 -0
- package/.output/server/node_modules/pluralize/pluralize.js +503 -0
- package/.output/server/node_modules/radix3/dist/index.mjs +262 -0
- package/.output/server/node_modules/radix3/package.json +52 -0
- package/.output/server/node_modules/regex/package.json +60 -0
- package/.output/server/node_modules/regex/src/atomic.js +221 -0
- package/.output/server/node_modules/regex/src/internals.js +2 -0
- package/.output/server/node_modules/regex/src/subclass.js +98 -0
- package/.output/server/node_modules/regex/src/utils-internals.js +33 -0
- package/.output/server/node_modules/regex-recursion/package.json +47 -0
- package/.output/server/node_modules/regex-recursion/src/index.js +365 -0
- package/.output/server/node_modules/regex-utilities/package.json +35 -0
- package/.output/server/node_modules/regex-utilities/src/index.js +170 -0
- package/.output/server/node_modules/rehype-external-links/index.js +10 -0
- package/.output/server/node_modules/rehype-external-links/lib/index.js +179 -0
- package/.output/server/node_modules/rehype-external-links/package.json +86 -0
- package/.output/server/node_modules/rehype-minify-whitespace/index.js +47 -0
- package/.output/server/node_modules/rehype-minify-whitespace/lib/index.js +26 -0
- package/.output/server/node_modules/rehype-minify-whitespace/package.json +56 -0
- package/.output/server/node_modules/rehype-raw/index.js +5 -0
- package/.output/server/node_modules/rehype-raw/lib/index.js +36 -0
- package/.output/server/node_modules/rehype-raw/package.json +82 -0
- package/.output/server/node_modules/rehype-sort-attribute-values/index.js +29 -0
- package/.output/server/node_modules/rehype-sort-attribute-values/lib/index.js +130 -0
- package/.output/server/node_modules/rehype-sort-attribute-values/lib/schema.js +15 -0
- package/.output/server/node_modules/rehype-sort-attribute-values/package.json +56 -0
- package/.output/server/node_modules/rehype-sort-attributes/index.js +30 -0
- package/.output/server/node_modules/rehype-sort-attributes/lib/index.js +120 -0
- package/.output/server/node_modules/rehype-sort-attributes/package.json +54 -0
- package/.output/server/node_modules/remark-emoji/index.js +76 -0
- package/.output/server/node_modules/remark-emoji/package.json +85 -0
- package/.output/server/node_modules/remark-gfm/index.js +2 -0
- package/.output/server/node_modules/remark-gfm/lib/index.js +41 -0
- package/.output/server/node_modules/remark-gfm/package.json +125 -0
- package/.output/server/node_modules/remark-mdc/dist/index.mjs +2010 -0
- package/.output/server/node_modules/remark-mdc/package.json +84 -0
- package/.output/server/node_modules/remark-parse/index.js +2 -0
- package/.output/server/node_modules/remark-parse/lib/index.js +43 -0
- package/.output/server/node_modules/remark-parse/package.json +72 -0
- package/.output/server/node_modules/remark-rehype/index.js +10 -0
- package/.output/server/node_modules/remark-rehype/lib/index.js +175 -0
- package/.output/server/node_modules/remark-rehype/package.json +86 -0
- package/.output/server/node_modules/remark-stringify/index.js +2 -0
- package/.output/server/node_modules/remark-stringify/lib/index.js +42 -0
- package/.output/server/node_modules/remark-stringify/package.json +71 -0
- package/.output/server/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/.output/server/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/.output/server/node_modules/safe-stable-stringify/index.js +625 -0
- package/.output/server/node_modules/safe-stable-stringify/package.json +65 -0
- package/.output/server/node_modules/scule/dist/index.mjs +80 -0
- package/.output/server/node_modules/scule/package.json +43 -0
- package/.output/server/node_modules/secure-json-parse/index.js +126 -0
- package/.output/server/node_modules/secure-json-parse/package.json +75 -0
- package/.output/server/node_modules/semver/classes/semver.js +319 -0
- package/.output/server/node_modules/semver/functions/coerce.js +62 -0
- package/.output/server/node_modules/semver/functions/compare.js +7 -0
- package/.output/server/node_modules/semver/functions/gte.js +5 -0
- package/.output/server/node_modules/semver/functions/parse.js +18 -0
- package/.output/server/node_modules/semver/internal/constants.js +37 -0
- package/.output/server/node_modules/semver/internal/debug.js +11 -0
- package/.output/server/node_modules/semver/internal/identifiers.js +25 -0
- package/.output/server/node_modules/semver/internal/parse-options.js +17 -0
- package/.output/server/node_modules/semver/internal/re.js +223 -0
- package/.output/server/node_modules/semver/package.json +78 -0
- package/.output/server/node_modules/sharp/build/Release/libglib-2.0-0.dll +0 -0
- package/.output/server/node_modules/sharp/build/Release/libgobject-2.0-0.dll +0 -0
- package/.output/server/node_modules/sharp/build/Release/libvips-42.dll +0 -0
- package/.output/server/node_modules/sharp/build/Release/libvips-cpp.dll +0 -0
- package/.output/server/node_modules/sharp/build/Release/sharp-win32-x64.node +0 -0
- package/.output/server/node_modules/sharp/lib/channel.js +174 -0
- package/.output/server/node_modules/sharp/lib/colour.js +184 -0
- package/.output/server/node_modules/sharp/lib/composite.js +210 -0
- package/.output/server/node_modules/sharp/lib/constructor.js +439 -0
- package/.output/server/node_modules/sharp/lib/index.js +16 -0
- package/.output/server/node_modules/sharp/lib/input.js +631 -0
- package/.output/server/node_modules/sharp/lib/is.js +155 -0
- package/.output/server/node_modules/sharp/lib/libvips.js +140 -0
- package/.output/server/node_modules/sharp/lib/operation.js +919 -0
- package/.output/server/node_modules/sharp/lib/output.js +1413 -0
- package/.output/server/node_modules/sharp/lib/platform.js +30 -0
- package/.output/server/node_modules/sharp/lib/resize.js +582 -0
- package/.output/server/node_modules/sharp/lib/sharp.js +38 -0
- package/.output/server/node_modules/sharp/lib/utility.js +287 -0
- package/.output/server/node_modules/sharp/package.json +204 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/THIRD-PARTY-NOTICES.md +43 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/include/harfbuzz/hb-cplusplus.hh +223 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/include/vips/vips8 +60 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libglib-2.0-0.dll +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libglib-2.0.lib +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libgobject-2.0-0.dll +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libgobject-2.0.lib +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libvips-42.dll +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libvips.lib +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/platform.json +1 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/versions.json +31 -0
- package/.output/server/node_modules/shiki/dist/engine-javascript.mjs +1 -0
- package/.output/server/node_modules/shiki/dist/engine-oniguruma.mjs +1 -0
- package/.output/server/node_modules/shiki/dist/wasm.mjs +2 -0
- package/.output/server/node_modules/shiki/package.json +70 -0
- package/.output/server/node_modules/simple-swizzle/index.js +29 -0
- package/.output/server/node_modules/simple-swizzle/package.json +36 -0
- package/.output/server/node_modules/skin-tone/index.js +25 -0
- package/.output/server/node_modules/skin-tone/package.json +45 -0
- package/.output/server/node_modules/slugify/package.json +42 -0
- package/.output/server/node_modules/slugify/slugify.js +69 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/space-separated-tokens/index.js +24 -0
- package/.output/server/node_modules/space-separated-tokens/package.json +67 -0
- package/.output/server/node_modules/sqlstring/index.js +1 -0
- package/.output/server/node_modules/sqlstring/lib/SqlString.js +237 -0
- package/.output/server/node_modules/sqlstring/package.json +47 -0
- package/.output/server/node_modules/stringify-entities/index.js +6 -0
- package/.output/server/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/core.js +117 -0
- package/.output/server/node_modules/stringify-entities/lib/index.js +36 -0
- package/.output/server/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
- package/.output/server/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-named.js +57 -0
- package/.output/server/node_modules/stringify-entities/package.json +86 -0
- package/.output/server/node_modules/strnum/package.json +31 -0
- package/.output/server/node_modules/strnum/strnum.js +129 -0
- package/.output/server/node_modules/supports-color/index.js +135 -0
- package/.output/server/node_modules/supports-color/package.json +53 -0
- package/.output/server/node_modules/svgo/lib/builtin.js +57 -0
- package/.output/server/node_modules/svgo/lib/parser.js +262 -0
- package/.output/server/node_modules/svgo/lib/path.js +380 -0
- package/.output/server/node_modules/svgo/lib/stringifier.js +295 -0
- package/.output/server/node_modules/svgo/lib/style.js +336 -0
- package/.output/server/node_modules/svgo/lib/svgo/css-select-adapter.js +120 -0
- package/.output/server/node_modules/svgo/lib/svgo/plugins.js +61 -0
- package/.output/server/node_modules/svgo/lib/svgo/tools.js +245 -0
- package/.output/server/node_modules/svgo/lib/svgo-node.js +85 -0
- package/.output/server/node_modules/svgo/lib/svgo.js +102 -0
- package/.output/server/node_modules/svgo/lib/xast.js +87 -0
- package/.output/server/node_modules/svgo/package.json +108 -0
- package/.output/server/node_modules/svgo/plugins/_collections.js +2339 -0
- package/.output/server/node_modules/svgo/plugins/_path.js +815 -0
- package/.output/server/node_modules/svgo/plugins/_transforms.js +410 -0
- package/.output/server/node_modules/svgo/plugins/addAttributesToSVGElement.js +82 -0
- package/.output/server/node_modules/svgo/plugins/addClassesToSVGElement.js +82 -0
- package/.output/server/node_modules/svgo/plugins/applyTransforms.js +388 -0
- package/.output/server/node_modules/svgo/plugins/cleanupAttrs.js +49 -0
- package/.output/server/node_modules/svgo/plugins/cleanupEnableBackground.js +165 -0
- package/.output/server/node_modules/svgo/plugins/cleanupIds.js +265 -0
- package/.output/server/node_modules/svgo/plugins/cleanupListOfValues.js +147 -0
- package/.output/server/node_modules/svgo/plugins/cleanupNumericValues.js +106 -0
- package/.output/server/node_modules/svgo/plugins/collapseGroups.js +134 -0
- package/.output/server/node_modules/svgo/plugins/convertColors.js +144 -0
- package/.output/server/node_modules/svgo/plugins/convertEllipseToCircle.js +37 -0
- package/.output/server/node_modules/svgo/plugins/convertOneStopGradients.js +168 -0
- package/.output/server/node_modules/svgo/plugins/convertPathData.js +1284 -0
- package/.output/server/node_modules/svgo/plugins/convertShapeToPath.js +170 -0
- package/.output/server/node_modules/svgo/plugins/convertStyleToAttrs.js +136 -0
- package/.output/server/node_modules/svgo/plugins/convertTransform.js +418 -0
- package/.output/server/node_modules/svgo/plugins/inlineStyles.js +390 -0
- package/.output/server/node_modules/svgo/plugins/mergePaths.js +148 -0
- package/.output/server/node_modules/svgo/plugins/mergeStyles.js +98 -0
- package/.output/server/node_modules/svgo/plugins/minifyStyles.js +141 -0
- package/.output/server/node_modules/svgo/plugins/moveElemsAttrsToGroup.js +128 -0
- package/.output/server/node_modules/svgo/plugins/moveGroupAttrsToElems.js +65 -0
- package/.output/server/node_modules/svgo/plugins/prefixIds.js +268 -0
- package/.output/server/node_modules/svgo/plugins/preset-default.js +82 -0
- package/.output/server/node_modules/svgo/plugins/removeAttributesBySelector.js +97 -0
- package/.output/server/node_modules/svgo/plugins/removeAttrs.js +151 -0
- package/.output/server/node_modules/svgo/plugins/removeComments.js +51 -0
- package/.output/server/node_modules/svgo/plugins/removeDesc.js +39 -0
- package/.output/server/node_modules/svgo/plugins/removeDimensions.js +43 -0
- package/.output/server/node_modules/svgo/plugins/removeDoctype.js +40 -0
- package/.output/server/node_modules/svgo/plugins/removeEditorsNSData.js +64 -0
- package/.output/server/node_modules/svgo/plugins/removeElementsByAttr.js +73 -0
- package/.output/server/node_modules/svgo/plugins/removeEmptyAttrs.js +31 -0
- package/.output/server/node_modules/svgo/plugins/removeEmptyContainers.js +59 -0
- package/.output/server/node_modules/svgo/plugins/removeEmptyText.js +51 -0
- package/.output/server/node_modules/svgo/plugins/removeHiddenElems.js +440 -0
- package/.output/server/node_modules/svgo/plugins/removeMetadata.js +27 -0
- package/.output/server/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js +38 -0
- package/.output/server/node_modules/svgo/plugins/removeOffCanvasPaths.js +136 -0
- package/.output/server/node_modules/svgo/plugins/removeRasterImages.js +31 -0
- package/.output/server/node_modules/svgo/plugins/removeScriptElement.js +70 -0
- package/.output/server/node_modules/svgo/plugins/removeStyleElement.js +27 -0
- package/.output/server/node_modules/svgo/plugins/removeTitle.js +27 -0
- package/.output/server/node_modules/svgo/plugins/removeUnknownsAndDefaults.js +212 -0
- package/.output/server/node_modules/svgo/plugins/removeUnusedNS.js +59 -0
- package/.output/server/node_modules/svgo/plugins/removeUselessDefs.js +65 -0
- package/.output/server/node_modules/svgo/plugins/removeUselessStrokeAndFill.js +139 -0
- package/.output/server/node_modules/svgo/plugins/removeViewBox.js +49 -0
- package/.output/server/node_modules/svgo/plugins/removeXMLNS.js +29 -0
- package/.output/server/node_modules/svgo/plugins/removeXMLProcInst.js +28 -0
- package/.output/server/node_modules/svgo/plugins/removeXlink.js +226 -0
- package/.output/server/node_modules/svgo/plugins/reusePaths.js +195 -0
- package/.output/server/node_modules/svgo/plugins/sortAttrs.js +108 -0
- package/.output/server/node_modules/svgo/plugins/sortDefsChildren.js +58 -0
- package/.output/server/node_modules/trim-lines/index.js +69 -0
- package/.output/server/node_modules/trim-lines/package.json +67 -0
- package/.output/server/node_modules/trim-trailing-lines/index.js +23 -0
- package/.output/server/node_modules/trim-trailing-lines/package.json +65 -0
- package/.output/server/node_modules/trough/index.js +9 -0
- package/.output/server/node_modules/trough/lib/index.js +206 -0
- package/.output/server/node_modules/trough/package.json +77 -0
- package/.output/server/node_modules/truncatise/index.js +188 -0
- package/.output/server/node_modules/truncatise/package.json +36 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +638 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/ultrahtml/dist/index.js +1 -0
- package/.output/server/node_modules/ultrahtml/package.json +79 -0
- package/.output/server/node_modules/uncrypto/dist/crypto.node.mjs +16 -0
- package/.output/server/node_modules/uncrypto/package.json +60 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +689 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BpRRHAhY.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DH45uomy.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Djo8ep_Y.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +101 -0
- package/.output/server/node_modules/unicode-emoji-modifier-base/index.js +86 -0
- package/.output/server/node_modules/unicode-emoji-modifier-base/package.json +44 -0
- package/.output/server/node_modules/unified/index.js +2 -0
- package/.output/server/node_modules/unified/lib/callable-instance.js +44 -0
- package/.output/server/node_modules/unified/lib/index.js +1323 -0
- package/.output/server/node_modules/unified/package.json +120 -0
- package/.output/server/node_modules/unist-util-find-after/index.js +1 -0
- package/.output/server/node_modules/unist-util-find-after/lib/index.js +130 -0
- package/.output/server/node_modules/unist-util-find-after/package.json +84 -0
- package/.output/server/node_modules/unist-util-is/index.js +7 -0
- package/.output/server/node_modules/unist-util-is/lib/index.js +291 -0
- package/.output/server/node_modules/unist-util-is/package.json +100 -0
- package/.output/server/node_modules/unist-util-position/index.js +1 -0
- package/.output/server/node_modules/unist-util-position/lib/index.js +95 -0
- package/.output/server/node_modules/unist-util-position/package.json +76 -0
- package/.output/server/node_modules/unist-util-stringify-position/index.js +1 -0
- package/.output/server/node_modules/unist-util-stringify-position/lib/index.js +84 -0
- package/.output/server/node_modules/unist-util-stringify-position/package.json +80 -0
- package/.output/server/node_modules/unist-util-visit/index.js +2 -0
- package/.output/server/node_modules/unist-util-visit/lib/index.js +313 -0
- package/.output/server/node_modules/unist-util-visit/package.json +113 -0
- package/.output/server/node_modules/unist-util-visit-parents/index.js +2 -0
- package/.output/server/node_modules/unist-util-visit-parents/lib/color.node.js +7 -0
- package/.output/server/node_modules/unist-util-visit-parents/lib/index.js +398 -0
- package/.output/server/node_modules/unist-util-visit-parents/package.json +101 -0
- package/.output/server/node_modules/vfile/index.js +2 -0
- package/.output/server/node_modules/vfile/lib/index.js +643 -0
- package/.output/server/node_modules/vfile/lib/minpath.js +1 -0
- package/.output/server/node_modules/vfile/lib/minproc.js +1 -0
- package/.output/server/node_modules/vfile/lib/minurl.js +2 -0
- package/.output/server/node_modules/vfile/lib/minurl.shared.js +31 -0
- package/.output/server/node_modules/vfile/package.json +134 -0
- package/.output/server/node_modules/vfile-location/index.js +2 -0
- package/.output/server/node_modules/vfile-location/lib/index.js +93 -0
- package/.output/server/node_modules/vfile-location/package.json +115 -0
- package/.output/server/node_modules/vfile-message/index.js +5 -0
- package/.output/server/node_modules/vfile-message/lib/index.js +314 -0
- package/.output/server/node_modules/vfile-message/package.json +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/vue-router/dist/devtools-BLCumUwL.mjs +1218 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +154 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/node_modules/web-namespaces/index.js +13 -0
- package/.output/server/node_modules/web-namespaces/package.json +81 -0
- package/.output/server/node_modules/xss/lib/default.js +461 -0
- package/.output/server/node_modules/xss/lib/index.js +51 -0
- package/.output/server/node_modules/xss/lib/parser.js +257 -0
- package/.output/server/node_modules/xss/lib/util.js +34 -0
- package/.output/server/node_modules/xss/lib/xss.js +232 -0
- package/.output/server/node_modules/xss/package.json +65 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/.output/server/node_modules/yaml/dist/compose/composer.js +222 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/.output/server/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/.output/server/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/.output/server/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/.output/server/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/.output/server/node_modules/yaml/dist/doc/Document.js +337 -0
- package/.output/server/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/.output/server/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/.output/server/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/.output/server/node_modules/yaml/dist/doc/directives.js +178 -0
- package/.output/server/node_modules/yaml/dist/errors.js +62 -0
- package/.output/server/node_modules/yaml/dist/index.js +50 -0
- package/.output/server/node_modules/yaml/dist/log.js +19 -0
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/.output/server/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/.output/server/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/.output/server/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/.output/server/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/.output/server/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/.output/server/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/.output/server/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/.output/server/node_modules/yaml/dist/parse/cst.js +112 -0
- package/.output/server/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/.output/server/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/.output/server/node_modules/yaml/dist/parse/parser.js +972 -0
- package/.output/server/node_modules/yaml/dist/public-api.js +107 -0
- package/.output/server/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/.output/server/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/.output/server/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/.output/server/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/.output/server/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/.output/server/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/.output/server/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/.output/server/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/.output/server/node_modules/yaml/dist/schema/tags.js +99 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/.output/server/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringify.js +131 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/.output/server/node_modules/yaml/dist/visit.js +236 -0
- package/.output/server/node_modules/yaml/package.json +96 -0
- package/.output/server/node_modules/zwitch/index.js +118 -0
- package/.output/server/node_modules/zwitch/package.json +72 -0
- package/.output/server/package.json +241 -0
- package/README.md +4 -0
- package/{app.vue → app/app.vue} +3 -2
- package/{assets → app/assets}/css/ignis-open-props.css +4 -5
- package/{components → app/components}/CurrentTime.vue +9 -2
- package/{components/ignis/IgnisInfo.vue → app/components/ignis/IgnisContent.vue} +3 -3
- package/{components/ignis/IgnisConfig.vue → app/components/ignis/IgnisContentConfig.vue} +5 -1
- package/app/components/ignis/IgnisContentFeatures.vue +102 -0
- package/{components/ignis/IgnisWelcome.vue → app/components/ignis/IgnisContentWelcome.vue} +3 -3
- package/app/components/ignis/IgnisFooter.vue +24 -0
- package/{composables → app/composables}/useTranslation.ts +2 -2
- package/app/pages/_ignis-config.vue +3 -0
- package/app/pages/_ignis-info.vue +3 -0
- package/app/pages/_ignis-welcome.vue +3 -0
- package/{pages → app/pages}/index.vue +2 -2
- package/app/utils/date.ts +12 -0
- package/{utils → app/utils}/i18n-sources.ts +2 -2
- package/app/utils/validation.ts +25 -0
- package/bin/cli.js +59 -0
- package/bin/set-app-vue.js +18 -0
- package/bin/set-css.js +18 -0
- package/bin/set-eslint.js +16 -0
- package/bin/setup.js +255 -0
- package/content.config.ts +1 -1
- package/eslint.config.mjs +0 -3
- package/features.ts +52 -41
- package/formkit.config.ts +1 -1
- package/i18n/i18n.config.ts +2 -0
- package/nuxt.config.ts +19 -21
- package/package.json +30 -29
- package/public/_ignis-config.json +1894 -3
- package/test/config/css-multiple.txt +30 -24
- package/test/config/css-nuxt-ui.txt +34 -28
- package/test/config/css-open-props.txt +1812 -1763
- package/test/config/css-single.txt +28 -22
- package/test/config/css-tailwind.txt +55 -48
- package/test/config/custom-lang.txt +27 -21
- package/test/config/db-neon.txt +28 -22
- package/test/config/db-supabase.txt +31 -25
- package/test/config/default.txt +27 -21
- package/test/config/equipment-1-composable.txt +33 -27
- package/test/config/equipment-2-plugins.txt +34 -28
- package/test/config/equipment-all.txt +38 -32
- package/test/config/forms-formkit.txt +32 -26
- package/test/config/forms-vueform.txt +28 -22
- package/test/config/i18n.txt +36 -30
- package/test/config/no-default-css.txt +24 -18
- package/test/config/open-props.txt +1811 -1762
- package/test/config/seo-ssr-false.txt +35 -29
- package/test/config/ui-nuxt-ui.txt +33 -27
- package/test/config/ui-tailwind.txt +54 -47
- package/test/features.test.ts +34 -34
- package/tsconfig.json +16 -5
- package/vitest.config.ts +5 -0
- package/vueform.config.ts +2 -0
- package/.nuxt/i18n.options.mjs +0 -165
- package/.nuxt/module/@nuxtjs-sitemap.d.ts +0 -29
- package/.nuxt/nuxt-i18n-logger.mjs +0 -1
- package/.nuxt/types/app-defaults.d.ts +0 -7
- package/.nuxt/types/schema.d.ts +0 -1756
- package/bin/make-eslint.js +0 -55
- package/components/ignis/IgnisFeatureList.vue +0 -111
- package/components/ignis/IgnisFooter.vue +0 -16
- package/pages/_ignis-config.vue +0 -3
- package/pages/_ignis-info.vue +0 -3
- package/server/tsconfig.json +0 -3
- /package/{assets → app/assets}/css/ignis-nuxt-ui.css +0 -0
- /package/{assets → app/assets}/css/ignis-tailwind.css +0 -0
- /package/{assets → app/assets}/css/ignis.css +0 -0
- /package/{components/ignis/IgnisFeature.vue → app/components/ignis/IgnisContentFeaturesDetail.vue} +0 -0
- /package/{components → app/components}/ignis/IgnisHeader.vue +0 -0
- /package/{composables → app/composables}/useValibot.ts +0 -0
- /package/{composables → app/composables}/useZod.ts +0 -0
- /package/{plugins → app/plugins}/errorHandler.ts +0 -0
- /package/{utils → app/utils}/config/content.ts +0 -0
- /package/{utils → app/utils}/config/formkit.ts +0 -0
- /package/{utils → app/utils}/config/vueform.ts +0 -0
- /package/{utils → app/utils}/consola.ts +0 -0
- /package/{utils → app/utils}/content.ts +0 -0
- /package/{utils → app/utils}/formkit.ts +0 -0
- /package/{utils → app/utils}/ignis-types.ts +0 -0
- /package/{utils → app/utils}/pslo-utils.ts +0 -0
- /package/{utils → app/utils}/tailwind.ts +0 -0
- /package/{utils → app/utils}/vueform.ts +0 -0
|
@@ -0,0 +1,3216 @@
|
|
|
1
|
+
// src/utils.ts
|
|
2
|
+
function clone(something) {
|
|
3
|
+
return doClone(something);
|
|
4
|
+
}
|
|
5
|
+
function doClone(something) {
|
|
6
|
+
if (Array.isArray(something)) {
|
|
7
|
+
return cloneArray(something);
|
|
8
|
+
}
|
|
9
|
+
if (something instanceof RegExp) {
|
|
10
|
+
return something;
|
|
11
|
+
}
|
|
12
|
+
if (typeof something === "object") {
|
|
13
|
+
return cloneObj(something);
|
|
14
|
+
}
|
|
15
|
+
return something;
|
|
16
|
+
}
|
|
17
|
+
function cloneArray(arr) {
|
|
18
|
+
let r = [];
|
|
19
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
20
|
+
r[i] = doClone(arr[i]);
|
|
21
|
+
}
|
|
22
|
+
return r;
|
|
23
|
+
}
|
|
24
|
+
function cloneObj(obj) {
|
|
25
|
+
let r = {};
|
|
26
|
+
for (let key in obj) {
|
|
27
|
+
r[key] = doClone(obj[key]);
|
|
28
|
+
}
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
function mergeObjects(target, ...sources) {
|
|
32
|
+
sources.forEach((source) => {
|
|
33
|
+
for (let key in source) {
|
|
34
|
+
target[key] = source[key];
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return target;
|
|
38
|
+
}
|
|
39
|
+
function basename(path) {
|
|
40
|
+
const idx = ~path.lastIndexOf("/") || ~path.lastIndexOf("\\");
|
|
41
|
+
if (idx === 0) {
|
|
42
|
+
return path;
|
|
43
|
+
} else if (~idx === path.length - 1) {
|
|
44
|
+
return basename(path.substring(0, path.length - 1));
|
|
45
|
+
} else {
|
|
46
|
+
return path.substr(~idx + 1);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
var CAPTURING_REGEX_SOURCE = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;
|
|
50
|
+
var RegexSource = class {
|
|
51
|
+
static hasCaptures(regexSource) {
|
|
52
|
+
if (regexSource === null) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
CAPTURING_REGEX_SOURCE.lastIndex = 0;
|
|
56
|
+
return CAPTURING_REGEX_SOURCE.test(regexSource);
|
|
57
|
+
}
|
|
58
|
+
static replaceCaptures(regexSource, captureSource, captureIndices) {
|
|
59
|
+
return regexSource.replace(CAPTURING_REGEX_SOURCE, (match, index, commandIndex, command) => {
|
|
60
|
+
let capture = captureIndices[parseInt(index || commandIndex, 10)];
|
|
61
|
+
if (capture) {
|
|
62
|
+
let result = captureSource.substring(capture.start, capture.end);
|
|
63
|
+
while (result[0] === ".") {
|
|
64
|
+
result = result.substring(1);
|
|
65
|
+
}
|
|
66
|
+
switch (command) {
|
|
67
|
+
case "downcase":
|
|
68
|
+
return result.toLowerCase();
|
|
69
|
+
case "upcase":
|
|
70
|
+
return result.toUpperCase();
|
|
71
|
+
default:
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
return match;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function strcmp(a, b) {
|
|
81
|
+
if (a < b) {
|
|
82
|
+
return -1;
|
|
83
|
+
}
|
|
84
|
+
if (a > b) {
|
|
85
|
+
return 1;
|
|
86
|
+
}
|
|
87
|
+
return 0;
|
|
88
|
+
}
|
|
89
|
+
function strArrCmp(a, b) {
|
|
90
|
+
if (a === null && b === null) {
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
93
|
+
if (!a) {
|
|
94
|
+
return -1;
|
|
95
|
+
}
|
|
96
|
+
if (!b) {
|
|
97
|
+
return 1;
|
|
98
|
+
}
|
|
99
|
+
let len1 = a.length;
|
|
100
|
+
let len2 = b.length;
|
|
101
|
+
if (len1 === len2) {
|
|
102
|
+
for (let i = 0; i < len1; i++) {
|
|
103
|
+
let res = strcmp(a[i], b[i]);
|
|
104
|
+
if (res !== 0) {
|
|
105
|
+
return res;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return 0;
|
|
109
|
+
}
|
|
110
|
+
return len1 - len2;
|
|
111
|
+
}
|
|
112
|
+
function isValidHexColor(hex) {
|
|
113
|
+
if (/^#[0-9a-f]{6}$/i.test(hex)) {
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
if (/^#[0-9a-f]{8}$/i.test(hex)) {
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
if (/^#[0-9a-f]{3}$/i.test(hex)) {
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
if (/^#[0-9a-f]{4}$/i.test(hex)) {
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
function escapeRegExpCharacters(value) {
|
|
128
|
+
return value.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
|
|
129
|
+
}
|
|
130
|
+
var CachedFn = class {
|
|
131
|
+
constructor(fn) {
|
|
132
|
+
this.fn = fn;
|
|
133
|
+
}
|
|
134
|
+
cache = /* @__PURE__ */ new Map();
|
|
135
|
+
get(key) {
|
|
136
|
+
if (this.cache.has(key)) {
|
|
137
|
+
return this.cache.get(key);
|
|
138
|
+
}
|
|
139
|
+
const value = this.fn(key);
|
|
140
|
+
this.cache.set(key, value);
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
// src/theme.ts
|
|
146
|
+
var Theme = class {
|
|
147
|
+
constructor(_colorMap, _defaults, _root) {
|
|
148
|
+
this._colorMap = _colorMap;
|
|
149
|
+
this._defaults = _defaults;
|
|
150
|
+
this._root = _root;
|
|
151
|
+
}
|
|
152
|
+
static createFromRawTheme(source, colorMap) {
|
|
153
|
+
return this.createFromParsedTheme(parseTheme(source), colorMap);
|
|
154
|
+
}
|
|
155
|
+
static createFromParsedTheme(source, colorMap) {
|
|
156
|
+
return resolveParsedThemeRules(source, colorMap);
|
|
157
|
+
}
|
|
158
|
+
_cachedMatchRoot = new CachedFn(
|
|
159
|
+
(scopeName) => this._root.match(scopeName)
|
|
160
|
+
);
|
|
161
|
+
getColorMap() {
|
|
162
|
+
return this._colorMap.getColorMap();
|
|
163
|
+
}
|
|
164
|
+
getDefaults() {
|
|
165
|
+
return this._defaults;
|
|
166
|
+
}
|
|
167
|
+
match(scopePath) {
|
|
168
|
+
if (scopePath === null) {
|
|
169
|
+
return this._defaults;
|
|
170
|
+
}
|
|
171
|
+
const scopeName = scopePath.scopeName;
|
|
172
|
+
const matchingTrieElements = this._cachedMatchRoot.get(scopeName);
|
|
173
|
+
const effectiveRule = matchingTrieElements.find(
|
|
174
|
+
(v) => _scopePathMatchesParentScopes(scopePath.parent, v.parentScopes)
|
|
175
|
+
);
|
|
176
|
+
if (!effectiveRule) {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
return new StyleAttributes(
|
|
180
|
+
effectiveRule.fontStyle,
|
|
181
|
+
effectiveRule.foreground,
|
|
182
|
+
effectiveRule.background
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
var ScopeStack = class _ScopeStack {
|
|
187
|
+
constructor(parent, scopeName) {
|
|
188
|
+
this.parent = parent;
|
|
189
|
+
this.scopeName = scopeName;
|
|
190
|
+
}
|
|
191
|
+
static push(path, scopeNames) {
|
|
192
|
+
for (const name of scopeNames) {
|
|
193
|
+
path = new _ScopeStack(path, name);
|
|
194
|
+
}
|
|
195
|
+
return path;
|
|
196
|
+
}
|
|
197
|
+
static from(...segments) {
|
|
198
|
+
let result = null;
|
|
199
|
+
for (let i = 0; i < segments.length; i++) {
|
|
200
|
+
result = new _ScopeStack(result, segments[i]);
|
|
201
|
+
}
|
|
202
|
+
return result;
|
|
203
|
+
}
|
|
204
|
+
push(scopeName) {
|
|
205
|
+
return new _ScopeStack(this, scopeName);
|
|
206
|
+
}
|
|
207
|
+
getSegments() {
|
|
208
|
+
let item = this;
|
|
209
|
+
const result = [];
|
|
210
|
+
while (item) {
|
|
211
|
+
result.push(item.scopeName);
|
|
212
|
+
item = item.parent;
|
|
213
|
+
}
|
|
214
|
+
result.reverse();
|
|
215
|
+
return result;
|
|
216
|
+
}
|
|
217
|
+
toString() {
|
|
218
|
+
return this.getSegments().join(" ");
|
|
219
|
+
}
|
|
220
|
+
extends(other) {
|
|
221
|
+
if (this === other) {
|
|
222
|
+
return true;
|
|
223
|
+
}
|
|
224
|
+
if (this.parent === null) {
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
return this.parent.extends(other);
|
|
228
|
+
}
|
|
229
|
+
getExtensionIfDefined(base) {
|
|
230
|
+
const result = [];
|
|
231
|
+
let item = this;
|
|
232
|
+
while (item && item !== base) {
|
|
233
|
+
result.push(item.scopeName);
|
|
234
|
+
item = item.parent;
|
|
235
|
+
}
|
|
236
|
+
return item === base ? result.reverse() : void 0;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
function _scopePathMatchesParentScopes(scopePath, parentScopes) {
|
|
240
|
+
if (parentScopes.length === 0) {
|
|
241
|
+
return true;
|
|
242
|
+
}
|
|
243
|
+
for (let index = 0; index < parentScopes.length; index++) {
|
|
244
|
+
let scopePattern = parentScopes[index];
|
|
245
|
+
let scopeMustMatch = false;
|
|
246
|
+
if (scopePattern === ">") {
|
|
247
|
+
if (index === parentScopes.length - 1) {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
scopePattern = parentScopes[++index];
|
|
251
|
+
scopeMustMatch = true;
|
|
252
|
+
}
|
|
253
|
+
while (scopePath) {
|
|
254
|
+
if (_matchesScope(scopePath.scopeName, scopePattern)) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
if (scopeMustMatch) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
scopePath = scopePath.parent;
|
|
261
|
+
}
|
|
262
|
+
if (!scopePath) {
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
scopePath = scopePath.parent;
|
|
266
|
+
}
|
|
267
|
+
return true;
|
|
268
|
+
}
|
|
269
|
+
function _matchesScope(scopeName, scopePattern) {
|
|
270
|
+
return scopePattern === scopeName || scopeName.startsWith(scopePattern) && scopeName[scopePattern.length] === ".";
|
|
271
|
+
}
|
|
272
|
+
var StyleAttributes = class {
|
|
273
|
+
constructor(fontStyle, foregroundId, backgroundId) {
|
|
274
|
+
this.fontStyle = fontStyle;
|
|
275
|
+
this.foregroundId = foregroundId;
|
|
276
|
+
this.backgroundId = backgroundId;
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
function parseTheme(source) {
|
|
280
|
+
if (!source) {
|
|
281
|
+
return [];
|
|
282
|
+
}
|
|
283
|
+
if (!source.settings || !Array.isArray(source.settings)) {
|
|
284
|
+
return [];
|
|
285
|
+
}
|
|
286
|
+
let settings = source.settings;
|
|
287
|
+
let result = [], resultLen = 0;
|
|
288
|
+
for (let i = 0, len = settings.length; i < len; i++) {
|
|
289
|
+
let entry = settings[i];
|
|
290
|
+
if (!entry.settings) {
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
let scopes;
|
|
294
|
+
if (typeof entry.scope === "string") {
|
|
295
|
+
let _scope = entry.scope;
|
|
296
|
+
_scope = _scope.replace(/^[,]+/, "");
|
|
297
|
+
_scope = _scope.replace(/[,]+$/, "");
|
|
298
|
+
scopes = _scope.split(",");
|
|
299
|
+
} else if (Array.isArray(entry.scope)) {
|
|
300
|
+
scopes = entry.scope;
|
|
301
|
+
} else {
|
|
302
|
+
scopes = [""];
|
|
303
|
+
}
|
|
304
|
+
let fontStyle = -1 /* NotSet */;
|
|
305
|
+
if (typeof entry.settings.fontStyle === "string") {
|
|
306
|
+
fontStyle = 0 /* None */;
|
|
307
|
+
let segments = entry.settings.fontStyle.split(" ");
|
|
308
|
+
for (let j = 0, lenJ = segments.length; j < lenJ; j++) {
|
|
309
|
+
let segment = segments[j];
|
|
310
|
+
switch (segment) {
|
|
311
|
+
case "italic":
|
|
312
|
+
fontStyle = fontStyle | 1 /* Italic */;
|
|
313
|
+
break;
|
|
314
|
+
case "bold":
|
|
315
|
+
fontStyle = fontStyle | 2 /* Bold */;
|
|
316
|
+
break;
|
|
317
|
+
case "underline":
|
|
318
|
+
fontStyle = fontStyle | 4 /* Underline */;
|
|
319
|
+
break;
|
|
320
|
+
case "strikethrough":
|
|
321
|
+
fontStyle = fontStyle | 8 /* Strikethrough */;
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
let foreground = null;
|
|
327
|
+
if (typeof entry.settings.foreground === "string" && isValidHexColor(entry.settings.foreground)) {
|
|
328
|
+
foreground = entry.settings.foreground;
|
|
329
|
+
}
|
|
330
|
+
let background = null;
|
|
331
|
+
if (typeof entry.settings.background === "string" && isValidHexColor(entry.settings.background)) {
|
|
332
|
+
background = entry.settings.background;
|
|
333
|
+
}
|
|
334
|
+
for (let j = 0, lenJ = scopes.length; j < lenJ; j++) {
|
|
335
|
+
let _scope = scopes[j].trim();
|
|
336
|
+
let segments = _scope.split(" ");
|
|
337
|
+
let scope = segments[segments.length - 1];
|
|
338
|
+
let parentScopes = null;
|
|
339
|
+
if (segments.length > 1) {
|
|
340
|
+
parentScopes = segments.slice(0, segments.length - 1);
|
|
341
|
+
parentScopes.reverse();
|
|
342
|
+
}
|
|
343
|
+
result[resultLen++] = new ParsedThemeRule(
|
|
344
|
+
scope,
|
|
345
|
+
parentScopes,
|
|
346
|
+
i,
|
|
347
|
+
fontStyle,
|
|
348
|
+
foreground,
|
|
349
|
+
background
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return result;
|
|
354
|
+
}
|
|
355
|
+
var ParsedThemeRule = class {
|
|
356
|
+
constructor(scope, parentScopes, index, fontStyle, foreground, background) {
|
|
357
|
+
this.scope = scope;
|
|
358
|
+
this.parentScopes = parentScopes;
|
|
359
|
+
this.index = index;
|
|
360
|
+
this.fontStyle = fontStyle;
|
|
361
|
+
this.foreground = foreground;
|
|
362
|
+
this.background = background;
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
var FontStyle = /* @__PURE__ */ ((FontStyle2) => {
|
|
366
|
+
FontStyle2[FontStyle2["NotSet"] = -1] = "NotSet";
|
|
367
|
+
FontStyle2[FontStyle2["None"] = 0] = "None";
|
|
368
|
+
FontStyle2[FontStyle2["Italic"] = 1] = "Italic";
|
|
369
|
+
FontStyle2[FontStyle2["Bold"] = 2] = "Bold";
|
|
370
|
+
FontStyle2[FontStyle2["Underline"] = 4] = "Underline";
|
|
371
|
+
FontStyle2[FontStyle2["Strikethrough"] = 8] = "Strikethrough";
|
|
372
|
+
return FontStyle2;
|
|
373
|
+
})(FontStyle || {});
|
|
374
|
+
function resolveParsedThemeRules(parsedThemeRules, _colorMap) {
|
|
375
|
+
parsedThemeRules.sort((a, b) => {
|
|
376
|
+
let r = strcmp(a.scope, b.scope);
|
|
377
|
+
if (r !== 0) {
|
|
378
|
+
return r;
|
|
379
|
+
}
|
|
380
|
+
r = strArrCmp(a.parentScopes, b.parentScopes);
|
|
381
|
+
if (r !== 0) {
|
|
382
|
+
return r;
|
|
383
|
+
}
|
|
384
|
+
return a.index - b.index;
|
|
385
|
+
});
|
|
386
|
+
let defaultFontStyle = 0 /* None */;
|
|
387
|
+
let defaultForeground = "#000000";
|
|
388
|
+
let defaultBackground = "#ffffff";
|
|
389
|
+
while (parsedThemeRules.length >= 1 && parsedThemeRules[0].scope === "") {
|
|
390
|
+
let incomingDefaults = parsedThemeRules.shift();
|
|
391
|
+
if (incomingDefaults.fontStyle !== -1 /* NotSet */) {
|
|
392
|
+
defaultFontStyle = incomingDefaults.fontStyle;
|
|
393
|
+
}
|
|
394
|
+
if (incomingDefaults.foreground !== null) {
|
|
395
|
+
defaultForeground = incomingDefaults.foreground;
|
|
396
|
+
}
|
|
397
|
+
if (incomingDefaults.background !== null) {
|
|
398
|
+
defaultBackground = incomingDefaults.background;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
let colorMap = new ColorMap(_colorMap);
|
|
402
|
+
let defaults = new StyleAttributes(defaultFontStyle, colorMap.getId(defaultForeground), colorMap.getId(defaultBackground));
|
|
403
|
+
let root = new ThemeTrieElement(new ThemeTrieElementRule(0, null, -1 /* NotSet */, 0, 0), []);
|
|
404
|
+
for (let i = 0, len = parsedThemeRules.length; i < len; i++) {
|
|
405
|
+
let rule = parsedThemeRules[i];
|
|
406
|
+
root.insert(0, rule.scope, rule.parentScopes, rule.fontStyle, colorMap.getId(rule.foreground), colorMap.getId(rule.background));
|
|
407
|
+
}
|
|
408
|
+
return new Theme(colorMap, defaults, root);
|
|
409
|
+
}
|
|
410
|
+
var ColorMap = class {
|
|
411
|
+
_isFrozen;
|
|
412
|
+
_lastColorId;
|
|
413
|
+
_id2color;
|
|
414
|
+
_color2id;
|
|
415
|
+
constructor(_colorMap) {
|
|
416
|
+
this._lastColorId = 0;
|
|
417
|
+
this._id2color = [];
|
|
418
|
+
this._color2id = /* @__PURE__ */ Object.create(null);
|
|
419
|
+
if (Array.isArray(_colorMap)) {
|
|
420
|
+
this._isFrozen = true;
|
|
421
|
+
for (let i = 0, len = _colorMap.length; i < len; i++) {
|
|
422
|
+
this._color2id[_colorMap[i]] = i;
|
|
423
|
+
this._id2color[i] = _colorMap[i];
|
|
424
|
+
}
|
|
425
|
+
} else {
|
|
426
|
+
this._isFrozen = false;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
getId(color) {
|
|
430
|
+
if (color === null) {
|
|
431
|
+
return 0;
|
|
432
|
+
}
|
|
433
|
+
color = color.toUpperCase();
|
|
434
|
+
let value = this._color2id[color];
|
|
435
|
+
if (value) {
|
|
436
|
+
return value;
|
|
437
|
+
}
|
|
438
|
+
if (this._isFrozen) {
|
|
439
|
+
throw new Error(`Missing color in color map - ${color}`);
|
|
440
|
+
}
|
|
441
|
+
value = ++this._lastColorId;
|
|
442
|
+
this._color2id[color] = value;
|
|
443
|
+
this._id2color[value] = color;
|
|
444
|
+
return value;
|
|
445
|
+
}
|
|
446
|
+
getColorMap() {
|
|
447
|
+
return this._id2color.slice(0);
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
var emptyParentScopes = Object.freeze([]);
|
|
451
|
+
var ThemeTrieElementRule = class _ThemeTrieElementRule {
|
|
452
|
+
scopeDepth;
|
|
453
|
+
parentScopes;
|
|
454
|
+
fontStyle;
|
|
455
|
+
foreground;
|
|
456
|
+
background;
|
|
457
|
+
constructor(scopeDepth, parentScopes, fontStyle, foreground, background) {
|
|
458
|
+
this.scopeDepth = scopeDepth;
|
|
459
|
+
this.parentScopes = parentScopes || emptyParentScopes;
|
|
460
|
+
this.fontStyle = fontStyle;
|
|
461
|
+
this.foreground = foreground;
|
|
462
|
+
this.background = background;
|
|
463
|
+
}
|
|
464
|
+
clone() {
|
|
465
|
+
return new _ThemeTrieElementRule(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
466
|
+
}
|
|
467
|
+
static cloneArr(arr) {
|
|
468
|
+
let r = [];
|
|
469
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
470
|
+
r[i] = arr[i].clone();
|
|
471
|
+
}
|
|
472
|
+
return r;
|
|
473
|
+
}
|
|
474
|
+
acceptOverwrite(scopeDepth, fontStyle, foreground, background) {
|
|
475
|
+
if (this.scopeDepth > scopeDepth) {
|
|
476
|
+
console.log("how did this happen?");
|
|
477
|
+
} else {
|
|
478
|
+
this.scopeDepth = scopeDepth;
|
|
479
|
+
}
|
|
480
|
+
if (fontStyle !== -1 /* NotSet */) {
|
|
481
|
+
this.fontStyle = fontStyle;
|
|
482
|
+
}
|
|
483
|
+
if (foreground !== 0) {
|
|
484
|
+
this.foreground = foreground;
|
|
485
|
+
}
|
|
486
|
+
if (background !== 0) {
|
|
487
|
+
this.background = background;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
var ThemeTrieElement = class _ThemeTrieElement {
|
|
492
|
+
constructor(_mainRule, rulesWithParentScopes = [], _children = {}) {
|
|
493
|
+
this._mainRule = _mainRule;
|
|
494
|
+
this._children = _children;
|
|
495
|
+
this._rulesWithParentScopes = rulesWithParentScopes;
|
|
496
|
+
}
|
|
497
|
+
_rulesWithParentScopes;
|
|
498
|
+
static _cmpBySpecificity(a, b) {
|
|
499
|
+
if (a.scopeDepth !== b.scopeDepth) {
|
|
500
|
+
return b.scopeDepth - a.scopeDepth;
|
|
501
|
+
}
|
|
502
|
+
let aParentIndex = 0;
|
|
503
|
+
let bParentIndex = 0;
|
|
504
|
+
while (true) {
|
|
505
|
+
if (a.parentScopes[aParentIndex] === ">") {
|
|
506
|
+
aParentIndex++;
|
|
507
|
+
}
|
|
508
|
+
if (b.parentScopes[bParentIndex] === ">") {
|
|
509
|
+
bParentIndex++;
|
|
510
|
+
}
|
|
511
|
+
if (aParentIndex >= a.parentScopes.length || bParentIndex >= b.parentScopes.length) {
|
|
512
|
+
break;
|
|
513
|
+
}
|
|
514
|
+
const parentScopeLengthDiff = b.parentScopes[bParentIndex].length - a.parentScopes[aParentIndex].length;
|
|
515
|
+
if (parentScopeLengthDiff !== 0) {
|
|
516
|
+
return parentScopeLengthDiff;
|
|
517
|
+
}
|
|
518
|
+
aParentIndex++;
|
|
519
|
+
bParentIndex++;
|
|
520
|
+
}
|
|
521
|
+
return b.parentScopes.length - a.parentScopes.length;
|
|
522
|
+
}
|
|
523
|
+
match(scope) {
|
|
524
|
+
if (scope !== "") {
|
|
525
|
+
let dotIndex = scope.indexOf(".");
|
|
526
|
+
let head;
|
|
527
|
+
let tail;
|
|
528
|
+
if (dotIndex === -1) {
|
|
529
|
+
head = scope;
|
|
530
|
+
tail = "";
|
|
531
|
+
} else {
|
|
532
|
+
head = scope.substring(0, dotIndex);
|
|
533
|
+
tail = scope.substring(dotIndex + 1);
|
|
534
|
+
}
|
|
535
|
+
if (this._children.hasOwnProperty(head)) {
|
|
536
|
+
return this._children[head].match(tail);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
const rules = this._rulesWithParentScopes.concat(this._mainRule);
|
|
540
|
+
rules.sort(_ThemeTrieElement._cmpBySpecificity);
|
|
541
|
+
return rules;
|
|
542
|
+
}
|
|
543
|
+
insert(scopeDepth, scope, parentScopes, fontStyle, foreground, background) {
|
|
544
|
+
if (scope === "") {
|
|
545
|
+
this._doInsertHere(scopeDepth, parentScopes, fontStyle, foreground, background);
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
let dotIndex = scope.indexOf(".");
|
|
549
|
+
let head;
|
|
550
|
+
let tail;
|
|
551
|
+
if (dotIndex === -1) {
|
|
552
|
+
head = scope;
|
|
553
|
+
tail = "";
|
|
554
|
+
} else {
|
|
555
|
+
head = scope.substring(0, dotIndex);
|
|
556
|
+
tail = scope.substring(dotIndex + 1);
|
|
557
|
+
}
|
|
558
|
+
let child;
|
|
559
|
+
if (this._children.hasOwnProperty(head)) {
|
|
560
|
+
child = this._children[head];
|
|
561
|
+
} else {
|
|
562
|
+
child = new _ThemeTrieElement(this._mainRule.clone(), ThemeTrieElementRule.cloneArr(this._rulesWithParentScopes));
|
|
563
|
+
this._children[head] = child;
|
|
564
|
+
}
|
|
565
|
+
child.insert(scopeDepth + 1, tail, parentScopes, fontStyle, foreground, background);
|
|
566
|
+
}
|
|
567
|
+
_doInsertHere(scopeDepth, parentScopes, fontStyle, foreground, background) {
|
|
568
|
+
if (parentScopes === null) {
|
|
569
|
+
this._mainRule.acceptOverwrite(scopeDepth, fontStyle, foreground, background);
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
for (let i = 0, len = this._rulesWithParentScopes.length; i < len; i++) {
|
|
573
|
+
let rule = this._rulesWithParentScopes[i];
|
|
574
|
+
if (strArrCmp(rule.parentScopes, parentScopes) === 0) {
|
|
575
|
+
rule.acceptOverwrite(scopeDepth, fontStyle, foreground, background);
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (fontStyle === -1 /* NotSet */) {
|
|
580
|
+
fontStyle = this._mainRule.fontStyle;
|
|
581
|
+
}
|
|
582
|
+
if (foreground === 0) {
|
|
583
|
+
foreground = this._mainRule.foreground;
|
|
584
|
+
}
|
|
585
|
+
if (background === 0) {
|
|
586
|
+
background = this._mainRule.background;
|
|
587
|
+
}
|
|
588
|
+
this._rulesWithParentScopes.push(new ThemeTrieElementRule(scopeDepth, parentScopes, fontStyle, foreground, background));
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
// src/encodedTokenAttributes.ts
|
|
593
|
+
var EncodedTokenMetadata = class _EncodedTokenMetadata {
|
|
594
|
+
static toBinaryStr(encodedTokenAttributes) {
|
|
595
|
+
return encodedTokenAttributes.toString(2).padStart(32, "0");
|
|
596
|
+
}
|
|
597
|
+
static print(encodedTokenAttributes) {
|
|
598
|
+
const languageId = _EncodedTokenMetadata.getLanguageId(encodedTokenAttributes);
|
|
599
|
+
const tokenType = _EncodedTokenMetadata.getTokenType(encodedTokenAttributes);
|
|
600
|
+
const fontStyle = _EncodedTokenMetadata.getFontStyle(encodedTokenAttributes);
|
|
601
|
+
const foreground = _EncodedTokenMetadata.getForeground(encodedTokenAttributes);
|
|
602
|
+
const background = _EncodedTokenMetadata.getBackground(encodedTokenAttributes);
|
|
603
|
+
console.log({
|
|
604
|
+
languageId,
|
|
605
|
+
tokenType,
|
|
606
|
+
fontStyle,
|
|
607
|
+
foreground,
|
|
608
|
+
background
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
static getLanguageId(encodedTokenAttributes) {
|
|
612
|
+
return (encodedTokenAttributes & 255 /* LANGUAGEID_MASK */) >>> 0 /* LANGUAGEID_OFFSET */;
|
|
613
|
+
}
|
|
614
|
+
static getTokenType(encodedTokenAttributes) {
|
|
615
|
+
return (encodedTokenAttributes & 768 /* TOKEN_TYPE_MASK */) >>> 8 /* TOKEN_TYPE_OFFSET */;
|
|
616
|
+
}
|
|
617
|
+
static containsBalancedBrackets(encodedTokenAttributes) {
|
|
618
|
+
return (encodedTokenAttributes & 1024 /* BALANCED_BRACKETS_MASK */) !== 0;
|
|
619
|
+
}
|
|
620
|
+
static getFontStyle(encodedTokenAttributes) {
|
|
621
|
+
return (encodedTokenAttributes & 30720 /* FONT_STYLE_MASK */) >>> 11 /* FONT_STYLE_OFFSET */;
|
|
622
|
+
}
|
|
623
|
+
static getForeground(encodedTokenAttributes) {
|
|
624
|
+
return (encodedTokenAttributes & 16744448 /* FOREGROUND_MASK */) >>> 15 /* FOREGROUND_OFFSET */;
|
|
625
|
+
}
|
|
626
|
+
static getBackground(encodedTokenAttributes) {
|
|
627
|
+
return (encodedTokenAttributes & 4278190080 /* BACKGROUND_MASK */) >>> 24 /* BACKGROUND_OFFSET */;
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* Updates the fields in `metadata`.
|
|
631
|
+
* A value of `0`, `NotSet` or `null` indicates that the corresponding field should be left as is.
|
|
632
|
+
*/
|
|
633
|
+
static set(encodedTokenAttributes, languageId, tokenType, containsBalancedBrackets, fontStyle, foreground, background) {
|
|
634
|
+
let _languageId = _EncodedTokenMetadata.getLanguageId(encodedTokenAttributes);
|
|
635
|
+
let _tokenType = _EncodedTokenMetadata.getTokenType(encodedTokenAttributes);
|
|
636
|
+
let _containsBalancedBracketsBit = _EncodedTokenMetadata.containsBalancedBrackets(encodedTokenAttributes) ? 1 : 0;
|
|
637
|
+
let _fontStyle = _EncodedTokenMetadata.getFontStyle(encodedTokenAttributes);
|
|
638
|
+
let _foreground = _EncodedTokenMetadata.getForeground(encodedTokenAttributes);
|
|
639
|
+
let _background = _EncodedTokenMetadata.getBackground(encodedTokenAttributes);
|
|
640
|
+
if (languageId !== 0) {
|
|
641
|
+
_languageId = languageId;
|
|
642
|
+
}
|
|
643
|
+
if (tokenType !== 8 /* NotSet */) {
|
|
644
|
+
_tokenType = fromOptionalTokenType(tokenType);
|
|
645
|
+
}
|
|
646
|
+
if (containsBalancedBrackets !== null) {
|
|
647
|
+
_containsBalancedBracketsBit = containsBalancedBrackets ? 1 : 0;
|
|
648
|
+
}
|
|
649
|
+
if (fontStyle !== -1 /* NotSet */) {
|
|
650
|
+
_fontStyle = fontStyle;
|
|
651
|
+
}
|
|
652
|
+
if (foreground !== 0) {
|
|
653
|
+
_foreground = foreground;
|
|
654
|
+
}
|
|
655
|
+
if (background !== 0) {
|
|
656
|
+
_background = background;
|
|
657
|
+
}
|
|
658
|
+
return (_languageId << 0 /* LANGUAGEID_OFFSET */ | _tokenType << 8 /* TOKEN_TYPE_OFFSET */ | _containsBalancedBracketsBit << 10 /* BALANCED_BRACKETS_OFFSET */ | _fontStyle << 11 /* FONT_STYLE_OFFSET */ | _foreground << 15 /* FOREGROUND_OFFSET */ | _background << 24 /* BACKGROUND_OFFSET */) >>> 0;
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
function toOptionalTokenType(standardType) {
|
|
662
|
+
return standardType;
|
|
663
|
+
}
|
|
664
|
+
function fromOptionalTokenType(standardType) {
|
|
665
|
+
return standardType;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
// src/matcher.ts
|
|
669
|
+
function createMatchers(selector, matchesName) {
|
|
670
|
+
const results = [];
|
|
671
|
+
const tokenizer = newTokenizer(selector);
|
|
672
|
+
let token = tokenizer.next();
|
|
673
|
+
while (token !== null) {
|
|
674
|
+
let priority = 0;
|
|
675
|
+
if (token.length === 2 && token.charAt(1) === ":") {
|
|
676
|
+
switch (token.charAt(0)) {
|
|
677
|
+
case "R":
|
|
678
|
+
priority = 1;
|
|
679
|
+
break;
|
|
680
|
+
case "L":
|
|
681
|
+
priority = -1;
|
|
682
|
+
break;
|
|
683
|
+
default:
|
|
684
|
+
console.log(`Unknown priority ${token} in scope selector`);
|
|
685
|
+
}
|
|
686
|
+
token = tokenizer.next();
|
|
687
|
+
}
|
|
688
|
+
let matcher = parseConjunction();
|
|
689
|
+
results.push({ matcher, priority });
|
|
690
|
+
if (token !== ",") {
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
token = tokenizer.next();
|
|
694
|
+
}
|
|
695
|
+
return results;
|
|
696
|
+
function parseOperand() {
|
|
697
|
+
if (token === "-") {
|
|
698
|
+
token = tokenizer.next();
|
|
699
|
+
const expressionToNegate = parseOperand();
|
|
700
|
+
return (matcherInput) => !!expressionToNegate && !expressionToNegate(matcherInput);
|
|
701
|
+
}
|
|
702
|
+
if (token === "(") {
|
|
703
|
+
token = tokenizer.next();
|
|
704
|
+
const expressionInParents = parseInnerExpression();
|
|
705
|
+
if (token === ")") {
|
|
706
|
+
token = tokenizer.next();
|
|
707
|
+
}
|
|
708
|
+
return expressionInParents;
|
|
709
|
+
}
|
|
710
|
+
if (isIdentifier(token)) {
|
|
711
|
+
const identifiers = [];
|
|
712
|
+
do {
|
|
713
|
+
identifiers.push(token);
|
|
714
|
+
token = tokenizer.next();
|
|
715
|
+
} while (isIdentifier(token));
|
|
716
|
+
return (matcherInput) => matchesName(identifiers, matcherInput);
|
|
717
|
+
}
|
|
718
|
+
return null;
|
|
719
|
+
}
|
|
720
|
+
function parseConjunction() {
|
|
721
|
+
const matchers = [];
|
|
722
|
+
let matcher = parseOperand();
|
|
723
|
+
while (matcher) {
|
|
724
|
+
matchers.push(matcher);
|
|
725
|
+
matcher = parseOperand();
|
|
726
|
+
}
|
|
727
|
+
return (matcherInput) => matchers.every((matcher2) => matcher2(matcherInput));
|
|
728
|
+
}
|
|
729
|
+
function parseInnerExpression() {
|
|
730
|
+
const matchers = [];
|
|
731
|
+
let matcher = parseConjunction();
|
|
732
|
+
while (matcher) {
|
|
733
|
+
matchers.push(matcher);
|
|
734
|
+
if (token === "|" || token === ",") {
|
|
735
|
+
do {
|
|
736
|
+
token = tokenizer.next();
|
|
737
|
+
} while (token === "|" || token === ",");
|
|
738
|
+
} else {
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
matcher = parseConjunction();
|
|
742
|
+
}
|
|
743
|
+
return (matcherInput) => matchers.some((matcher2) => matcher2(matcherInput));
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
function isIdentifier(token) {
|
|
747
|
+
return !!token && !!token.match(/[\w\.:]+/);
|
|
748
|
+
}
|
|
749
|
+
function newTokenizer(input) {
|
|
750
|
+
let regex = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g;
|
|
751
|
+
let match = regex.exec(input);
|
|
752
|
+
return {
|
|
753
|
+
next: () => {
|
|
754
|
+
if (!match) {
|
|
755
|
+
return null;
|
|
756
|
+
}
|
|
757
|
+
const res = match[0];
|
|
758
|
+
match = regex.exec(input);
|
|
759
|
+
return res;
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
// src/onigLib.ts
|
|
765
|
+
var FindOption = /* @__PURE__ */ ((FindOption2) => {
|
|
766
|
+
FindOption2[FindOption2["None"] = 0] = "None";
|
|
767
|
+
FindOption2[FindOption2["NotBeginString"] = 1] = "NotBeginString";
|
|
768
|
+
FindOption2[FindOption2["NotEndString"] = 2] = "NotEndString";
|
|
769
|
+
FindOption2[FindOption2["NotBeginPosition"] = 4] = "NotBeginPosition";
|
|
770
|
+
FindOption2[FindOption2["DebugCall"] = 8] = "DebugCall";
|
|
771
|
+
return FindOption2;
|
|
772
|
+
})(FindOption || {});
|
|
773
|
+
function disposeOnigString(str) {
|
|
774
|
+
if (typeof str.dispose === "function") {
|
|
775
|
+
str.dispose();
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// src/grammar/grammarDependencies.ts
|
|
780
|
+
var TopLevelRuleReference = class {
|
|
781
|
+
constructor(scopeName) {
|
|
782
|
+
this.scopeName = scopeName;
|
|
783
|
+
}
|
|
784
|
+
toKey() {
|
|
785
|
+
return this.scopeName;
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
var TopLevelRepositoryRuleReference = class {
|
|
789
|
+
constructor(scopeName, ruleName) {
|
|
790
|
+
this.scopeName = scopeName;
|
|
791
|
+
this.ruleName = ruleName;
|
|
792
|
+
}
|
|
793
|
+
toKey() {
|
|
794
|
+
return `${this.scopeName}#${this.ruleName}`;
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
var ExternalReferenceCollector = class {
|
|
798
|
+
_references = [];
|
|
799
|
+
_seenReferenceKeys = /* @__PURE__ */ new Set();
|
|
800
|
+
get references() {
|
|
801
|
+
return this._references;
|
|
802
|
+
}
|
|
803
|
+
visitedRule = /* @__PURE__ */ new Set();
|
|
804
|
+
add(reference) {
|
|
805
|
+
const key = reference.toKey();
|
|
806
|
+
if (this._seenReferenceKeys.has(key)) {
|
|
807
|
+
return;
|
|
808
|
+
}
|
|
809
|
+
this._seenReferenceKeys.add(key);
|
|
810
|
+
this._references.push(reference);
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
var ScopeDependencyProcessor = class {
|
|
814
|
+
constructor(repo, initialScopeName) {
|
|
815
|
+
this.repo = repo;
|
|
816
|
+
this.initialScopeName = initialScopeName;
|
|
817
|
+
this.seenFullScopeRequests.add(this.initialScopeName);
|
|
818
|
+
this.Q = [new TopLevelRuleReference(this.initialScopeName)];
|
|
819
|
+
}
|
|
820
|
+
seenFullScopeRequests = /* @__PURE__ */ new Set();
|
|
821
|
+
seenPartialScopeRequests = /* @__PURE__ */ new Set();
|
|
822
|
+
Q;
|
|
823
|
+
processQueue() {
|
|
824
|
+
const q = this.Q;
|
|
825
|
+
this.Q = [];
|
|
826
|
+
const deps = new ExternalReferenceCollector();
|
|
827
|
+
for (const dep of q) {
|
|
828
|
+
collectReferencesOfReference(dep, this.initialScopeName, this.repo, deps);
|
|
829
|
+
}
|
|
830
|
+
for (const dep of deps.references) {
|
|
831
|
+
if (dep instanceof TopLevelRuleReference) {
|
|
832
|
+
if (this.seenFullScopeRequests.has(dep.scopeName)) {
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
835
|
+
this.seenFullScopeRequests.add(dep.scopeName);
|
|
836
|
+
this.Q.push(dep);
|
|
837
|
+
} else {
|
|
838
|
+
if (this.seenFullScopeRequests.has(dep.scopeName)) {
|
|
839
|
+
continue;
|
|
840
|
+
}
|
|
841
|
+
if (this.seenPartialScopeRequests.has(dep.toKey())) {
|
|
842
|
+
continue;
|
|
843
|
+
}
|
|
844
|
+
this.seenPartialScopeRequests.add(dep.toKey());
|
|
845
|
+
this.Q.push(dep);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
function collectReferencesOfReference(reference, baseGrammarScopeName, repo, result) {
|
|
851
|
+
const selfGrammar = repo.lookup(reference.scopeName);
|
|
852
|
+
if (!selfGrammar) {
|
|
853
|
+
if (reference.scopeName === baseGrammarScopeName) {
|
|
854
|
+
throw new Error(`No grammar provided for <${baseGrammarScopeName}>`);
|
|
855
|
+
}
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
const baseGrammar = repo.lookup(baseGrammarScopeName);
|
|
859
|
+
if (reference instanceof TopLevelRuleReference) {
|
|
860
|
+
collectExternalReferencesInTopLevelRule({ baseGrammar, selfGrammar }, result);
|
|
861
|
+
} else {
|
|
862
|
+
collectExternalReferencesInTopLevelRepositoryRule(
|
|
863
|
+
reference.ruleName,
|
|
864
|
+
{ baseGrammar, selfGrammar, repository: selfGrammar.repository },
|
|
865
|
+
result
|
|
866
|
+
);
|
|
867
|
+
}
|
|
868
|
+
const injections = repo.injections(reference.scopeName);
|
|
869
|
+
if (injections) {
|
|
870
|
+
for (const injection of injections) {
|
|
871
|
+
result.add(new TopLevelRuleReference(injection));
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
function collectExternalReferencesInTopLevelRepositoryRule(ruleName, context, result) {
|
|
876
|
+
if (context.repository && context.repository[ruleName]) {
|
|
877
|
+
const rule = context.repository[ruleName];
|
|
878
|
+
collectExternalReferencesInRules([rule], context, result);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
function collectExternalReferencesInTopLevelRule(context, result) {
|
|
882
|
+
if (context.selfGrammar.patterns && Array.isArray(context.selfGrammar.patterns)) {
|
|
883
|
+
collectExternalReferencesInRules(
|
|
884
|
+
context.selfGrammar.patterns,
|
|
885
|
+
{ ...context, repository: context.selfGrammar.repository },
|
|
886
|
+
result
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
if (context.selfGrammar.injections) {
|
|
890
|
+
collectExternalReferencesInRules(
|
|
891
|
+
Object.values(context.selfGrammar.injections),
|
|
892
|
+
{ ...context, repository: context.selfGrammar.repository },
|
|
893
|
+
result
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
function collectExternalReferencesInRules(rules, context, result) {
|
|
898
|
+
for (const rule of rules) {
|
|
899
|
+
if (result.visitedRule.has(rule)) {
|
|
900
|
+
continue;
|
|
901
|
+
}
|
|
902
|
+
result.visitedRule.add(rule);
|
|
903
|
+
const patternRepository = rule.repository ? mergeObjects({}, context.repository, rule.repository) : context.repository;
|
|
904
|
+
if (Array.isArray(rule.patterns)) {
|
|
905
|
+
collectExternalReferencesInRules(rule.patterns, { ...context, repository: patternRepository }, result);
|
|
906
|
+
}
|
|
907
|
+
const include = rule.include;
|
|
908
|
+
if (!include) {
|
|
909
|
+
continue;
|
|
910
|
+
}
|
|
911
|
+
const reference = parseInclude(include);
|
|
912
|
+
switch (reference.kind) {
|
|
913
|
+
case 0 /* Base */:
|
|
914
|
+
collectExternalReferencesInTopLevelRule({ ...context, selfGrammar: context.baseGrammar }, result);
|
|
915
|
+
break;
|
|
916
|
+
case 1 /* Self */:
|
|
917
|
+
collectExternalReferencesInTopLevelRule(context, result);
|
|
918
|
+
break;
|
|
919
|
+
case 2 /* RelativeReference */:
|
|
920
|
+
collectExternalReferencesInTopLevelRepositoryRule(reference.ruleName, { ...context, repository: patternRepository }, result);
|
|
921
|
+
break;
|
|
922
|
+
case 3 /* TopLevelReference */:
|
|
923
|
+
case 4 /* TopLevelRepositoryReference */:
|
|
924
|
+
const selfGrammar = reference.scopeName === context.selfGrammar.scopeName ? context.selfGrammar : reference.scopeName === context.baseGrammar.scopeName ? context.baseGrammar : void 0;
|
|
925
|
+
if (selfGrammar) {
|
|
926
|
+
const newContext = { baseGrammar: context.baseGrammar, selfGrammar, repository: patternRepository };
|
|
927
|
+
if (reference.kind === 4 /* TopLevelRepositoryReference */) {
|
|
928
|
+
collectExternalReferencesInTopLevelRepositoryRule(reference.ruleName, newContext, result);
|
|
929
|
+
} else {
|
|
930
|
+
collectExternalReferencesInTopLevelRule(newContext, result);
|
|
931
|
+
}
|
|
932
|
+
} else {
|
|
933
|
+
if (reference.kind === 4 /* TopLevelRepositoryReference */) {
|
|
934
|
+
result.add(new TopLevelRepositoryRuleReference(reference.scopeName, reference.ruleName));
|
|
935
|
+
} else {
|
|
936
|
+
result.add(new TopLevelRuleReference(reference.scopeName));
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
var BaseReference = class {
|
|
944
|
+
kind = 0 /* Base */;
|
|
945
|
+
};
|
|
946
|
+
var SelfReference = class {
|
|
947
|
+
kind = 1 /* Self */;
|
|
948
|
+
};
|
|
949
|
+
var RelativeReference = class {
|
|
950
|
+
constructor(ruleName) {
|
|
951
|
+
this.ruleName = ruleName;
|
|
952
|
+
}
|
|
953
|
+
kind = 2 /* RelativeReference */;
|
|
954
|
+
};
|
|
955
|
+
var TopLevelReference = class {
|
|
956
|
+
constructor(scopeName) {
|
|
957
|
+
this.scopeName = scopeName;
|
|
958
|
+
}
|
|
959
|
+
kind = 3 /* TopLevelReference */;
|
|
960
|
+
};
|
|
961
|
+
var TopLevelRepositoryReference = class {
|
|
962
|
+
constructor(scopeName, ruleName) {
|
|
963
|
+
this.scopeName = scopeName;
|
|
964
|
+
this.ruleName = ruleName;
|
|
965
|
+
}
|
|
966
|
+
kind = 4 /* TopLevelRepositoryReference */;
|
|
967
|
+
};
|
|
968
|
+
function parseInclude(include) {
|
|
969
|
+
if (include === "$base") {
|
|
970
|
+
return new BaseReference();
|
|
971
|
+
} else if (include === "$self") {
|
|
972
|
+
return new SelfReference();
|
|
973
|
+
}
|
|
974
|
+
const indexOfSharp = include.indexOf("#");
|
|
975
|
+
if (indexOfSharp === -1) {
|
|
976
|
+
return new TopLevelReference(include);
|
|
977
|
+
} else if (indexOfSharp === 0) {
|
|
978
|
+
return new RelativeReference(include.substring(1));
|
|
979
|
+
} else {
|
|
980
|
+
const scopeName = include.substring(0, indexOfSharp);
|
|
981
|
+
const ruleName = include.substring(indexOfSharp + 1);
|
|
982
|
+
return new TopLevelRepositoryReference(scopeName, ruleName);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
// src/rule.ts
|
|
987
|
+
var HAS_BACK_REFERENCES = /\\(\d+)/;
|
|
988
|
+
var BACK_REFERENCING_END = /\\(\d+)/g;
|
|
989
|
+
var ruleIdSymbol = Symbol("RuleId");
|
|
990
|
+
var endRuleId = -1;
|
|
991
|
+
var whileRuleId = -2;
|
|
992
|
+
function ruleIdFromNumber(id) {
|
|
993
|
+
return id;
|
|
994
|
+
}
|
|
995
|
+
function ruleIdToNumber(id) {
|
|
996
|
+
return id;
|
|
997
|
+
}
|
|
998
|
+
var Rule = class {
|
|
999
|
+
$location;
|
|
1000
|
+
id;
|
|
1001
|
+
_nameIsCapturing;
|
|
1002
|
+
_name;
|
|
1003
|
+
_contentNameIsCapturing;
|
|
1004
|
+
_contentName;
|
|
1005
|
+
constructor($location, id, name, contentName) {
|
|
1006
|
+
this.$location = $location;
|
|
1007
|
+
this.id = id;
|
|
1008
|
+
this._name = name || null;
|
|
1009
|
+
this._nameIsCapturing = RegexSource.hasCaptures(this._name);
|
|
1010
|
+
this._contentName = contentName || null;
|
|
1011
|
+
this._contentNameIsCapturing = RegexSource.hasCaptures(this._contentName);
|
|
1012
|
+
}
|
|
1013
|
+
get debugName() {
|
|
1014
|
+
const location = this.$location ? `${basename(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
1015
|
+
return `${this.constructor.name}#${this.id} @ ${location}`;
|
|
1016
|
+
}
|
|
1017
|
+
getName(lineText, captureIndices) {
|
|
1018
|
+
if (!this._nameIsCapturing || this._name === null || lineText === null || captureIndices === null) {
|
|
1019
|
+
return this._name;
|
|
1020
|
+
}
|
|
1021
|
+
return RegexSource.replaceCaptures(this._name, lineText, captureIndices);
|
|
1022
|
+
}
|
|
1023
|
+
getContentName(lineText, captureIndices) {
|
|
1024
|
+
if (!this._contentNameIsCapturing || this._contentName === null) {
|
|
1025
|
+
return this._contentName;
|
|
1026
|
+
}
|
|
1027
|
+
return RegexSource.replaceCaptures(this._contentName, lineText, captureIndices);
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
var CaptureRule = class extends Rule {
|
|
1031
|
+
retokenizeCapturedWithRuleId;
|
|
1032
|
+
constructor($location, id, name, contentName, retokenizeCapturedWithRuleId) {
|
|
1033
|
+
super($location, id, name, contentName);
|
|
1034
|
+
this.retokenizeCapturedWithRuleId = retokenizeCapturedWithRuleId;
|
|
1035
|
+
}
|
|
1036
|
+
dispose() {
|
|
1037
|
+
}
|
|
1038
|
+
collectPatterns(grammar, out) {
|
|
1039
|
+
throw new Error("Not supported!");
|
|
1040
|
+
}
|
|
1041
|
+
compile(grammar, endRegexSource) {
|
|
1042
|
+
throw new Error("Not supported!");
|
|
1043
|
+
}
|
|
1044
|
+
compileAG(grammar, endRegexSource, allowA, allowG) {
|
|
1045
|
+
throw new Error("Not supported!");
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
var MatchRule = class extends Rule {
|
|
1049
|
+
_match;
|
|
1050
|
+
captures;
|
|
1051
|
+
_cachedCompiledPatterns;
|
|
1052
|
+
constructor($location, id, name, match, captures) {
|
|
1053
|
+
super($location, id, name, null);
|
|
1054
|
+
this._match = new RegExpSource(match, this.id);
|
|
1055
|
+
this.captures = captures;
|
|
1056
|
+
this._cachedCompiledPatterns = null;
|
|
1057
|
+
}
|
|
1058
|
+
dispose() {
|
|
1059
|
+
if (this._cachedCompiledPatterns) {
|
|
1060
|
+
this._cachedCompiledPatterns.dispose();
|
|
1061
|
+
this._cachedCompiledPatterns = null;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
get debugMatchRegExp() {
|
|
1065
|
+
return `${this._match.source}`;
|
|
1066
|
+
}
|
|
1067
|
+
collectPatterns(grammar, out) {
|
|
1068
|
+
out.push(this._match);
|
|
1069
|
+
}
|
|
1070
|
+
compile(grammar, endRegexSource) {
|
|
1071
|
+
return this._getCachedCompiledPatterns(grammar).compile(grammar);
|
|
1072
|
+
}
|
|
1073
|
+
compileAG(grammar, endRegexSource, allowA, allowG) {
|
|
1074
|
+
return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
|
|
1075
|
+
}
|
|
1076
|
+
_getCachedCompiledPatterns(grammar) {
|
|
1077
|
+
if (!this._cachedCompiledPatterns) {
|
|
1078
|
+
this._cachedCompiledPatterns = new RegExpSourceList();
|
|
1079
|
+
this.collectPatterns(grammar, this._cachedCompiledPatterns);
|
|
1080
|
+
}
|
|
1081
|
+
return this._cachedCompiledPatterns;
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
var IncludeOnlyRule = class extends Rule {
|
|
1085
|
+
hasMissingPatterns;
|
|
1086
|
+
patterns;
|
|
1087
|
+
_cachedCompiledPatterns;
|
|
1088
|
+
constructor($location, id, name, contentName, patterns) {
|
|
1089
|
+
super($location, id, name, contentName);
|
|
1090
|
+
this.patterns = patterns.patterns;
|
|
1091
|
+
this.hasMissingPatterns = patterns.hasMissingPatterns;
|
|
1092
|
+
this._cachedCompiledPatterns = null;
|
|
1093
|
+
}
|
|
1094
|
+
dispose() {
|
|
1095
|
+
if (this._cachedCompiledPatterns) {
|
|
1096
|
+
this._cachedCompiledPatterns.dispose();
|
|
1097
|
+
this._cachedCompiledPatterns = null;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
collectPatterns(grammar, out) {
|
|
1101
|
+
for (const pattern of this.patterns) {
|
|
1102
|
+
const rule = grammar.getRule(pattern);
|
|
1103
|
+
rule.collectPatterns(grammar, out);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
compile(grammar, endRegexSource) {
|
|
1107
|
+
return this._getCachedCompiledPatterns(grammar).compile(grammar);
|
|
1108
|
+
}
|
|
1109
|
+
compileAG(grammar, endRegexSource, allowA, allowG) {
|
|
1110
|
+
return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
|
|
1111
|
+
}
|
|
1112
|
+
_getCachedCompiledPatterns(grammar) {
|
|
1113
|
+
if (!this._cachedCompiledPatterns) {
|
|
1114
|
+
this._cachedCompiledPatterns = new RegExpSourceList();
|
|
1115
|
+
this.collectPatterns(grammar, this._cachedCompiledPatterns);
|
|
1116
|
+
}
|
|
1117
|
+
return this._cachedCompiledPatterns;
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
var BeginEndRule = class extends Rule {
|
|
1121
|
+
_begin;
|
|
1122
|
+
beginCaptures;
|
|
1123
|
+
_end;
|
|
1124
|
+
endHasBackReferences;
|
|
1125
|
+
endCaptures;
|
|
1126
|
+
applyEndPatternLast;
|
|
1127
|
+
hasMissingPatterns;
|
|
1128
|
+
patterns;
|
|
1129
|
+
_cachedCompiledPatterns;
|
|
1130
|
+
constructor($location, id, name, contentName, begin, beginCaptures, end, endCaptures, applyEndPatternLast, patterns) {
|
|
1131
|
+
super($location, id, name, contentName);
|
|
1132
|
+
this._begin = new RegExpSource(begin, this.id);
|
|
1133
|
+
this.beginCaptures = beginCaptures;
|
|
1134
|
+
this._end = new RegExpSource(end ? end : "\uFFFF", -1);
|
|
1135
|
+
this.endHasBackReferences = this._end.hasBackReferences;
|
|
1136
|
+
this.endCaptures = endCaptures;
|
|
1137
|
+
this.applyEndPatternLast = applyEndPatternLast || false;
|
|
1138
|
+
this.patterns = patterns.patterns;
|
|
1139
|
+
this.hasMissingPatterns = patterns.hasMissingPatterns;
|
|
1140
|
+
this._cachedCompiledPatterns = null;
|
|
1141
|
+
}
|
|
1142
|
+
dispose() {
|
|
1143
|
+
if (this._cachedCompiledPatterns) {
|
|
1144
|
+
this._cachedCompiledPatterns.dispose();
|
|
1145
|
+
this._cachedCompiledPatterns = null;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
get debugBeginRegExp() {
|
|
1149
|
+
return `${this._begin.source}`;
|
|
1150
|
+
}
|
|
1151
|
+
get debugEndRegExp() {
|
|
1152
|
+
return `${this._end.source}`;
|
|
1153
|
+
}
|
|
1154
|
+
getEndWithResolvedBackReferences(lineText, captureIndices) {
|
|
1155
|
+
return this._end.resolveBackReferences(lineText, captureIndices);
|
|
1156
|
+
}
|
|
1157
|
+
collectPatterns(grammar, out) {
|
|
1158
|
+
out.push(this._begin);
|
|
1159
|
+
}
|
|
1160
|
+
compile(grammar, endRegexSource) {
|
|
1161
|
+
return this._getCachedCompiledPatterns(grammar, endRegexSource).compile(grammar);
|
|
1162
|
+
}
|
|
1163
|
+
compileAG(grammar, endRegexSource, allowA, allowG) {
|
|
1164
|
+
return this._getCachedCompiledPatterns(grammar, endRegexSource).compileAG(grammar, allowA, allowG);
|
|
1165
|
+
}
|
|
1166
|
+
_getCachedCompiledPatterns(grammar, endRegexSource) {
|
|
1167
|
+
if (!this._cachedCompiledPatterns) {
|
|
1168
|
+
this._cachedCompiledPatterns = new RegExpSourceList();
|
|
1169
|
+
for (const pattern of this.patterns) {
|
|
1170
|
+
const rule = grammar.getRule(pattern);
|
|
1171
|
+
rule.collectPatterns(grammar, this._cachedCompiledPatterns);
|
|
1172
|
+
}
|
|
1173
|
+
if (this.applyEndPatternLast) {
|
|
1174
|
+
this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end);
|
|
1175
|
+
} else {
|
|
1176
|
+
this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
if (this._end.hasBackReferences) {
|
|
1180
|
+
if (this.applyEndPatternLast) {
|
|
1181
|
+
this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, endRegexSource);
|
|
1182
|
+
} else {
|
|
1183
|
+
this._cachedCompiledPatterns.setSource(0, endRegexSource);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
return this._cachedCompiledPatterns;
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
var BeginWhileRule = class extends Rule {
|
|
1190
|
+
_begin;
|
|
1191
|
+
beginCaptures;
|
|
1192
|
+
whileCaptures;
|
|
1193
|
+
_while;
|
|
1194
|
+
whileHasBackReferences;
|
|
1195
|
+
hasMissingPatterns;
|
|
1196
|
+
patterns;
|
|
1197
|
+
_cachedCompiledPatterns;
|
|
1198
|
+
_cachedCompiledWhilePatterns;
|
|
1199
|
+
constructor($location, id, name, contentName, begin, beginCaptures, _while, whileCaptures, patterns) {
|
|
1200
|
+
super($location, id, name, contentName);
|
|
1201
|
+
this._begin = new RegExpSource(begin, this.id);
|
|
1202
|
+
this.beginCaptures = beginCaptures;
|
|
1203
|
+
this.whileCaptures = whileCaptures;
|
|
1204
|
+
this._while = new RegExpSource(_while, whileRuleId);
|
|
1205
|
+
this.whileHasBackReferences = this._while.hasBackReferences;
|
|
1206
|
+
this.patterns = patterns.patterns;
|
|
1207
|
+
this.hasMissingPatterns = patterns.hasMissingPatterns;
|
|
1208
|
+
this._cachedCompiledPatterns = null;
|
|
1209
|
+
this._cachedCompiledWhilePatterns = null;
|
|
1210
|
+
}
|
|
1211
|
+
dispose() {
|
|
1212
|
+
if (this._cachedCompiledPatterns) {
|
|
1213
|
+
this._cachedCompiledPatterns.dispose();
|
|
1214
|
+
this._cachedCompiledPatterns = null;
|
|
1215
|
+
}
|
|
1216
|
+
if (this._cachedCompiledWhilePatterns) {
|
|
1217
|
+
this._cachedCompiledWhilePatterns.dispose();
|
|
1218
|
+
this._cachedCompiledWhilePatterns = null;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
get debugBeginRegExp() {
|
|
1222
|
+
return `${this._begin.source}`;
|
|
1223
|
+
}
|
|
1224
|
+
get debugWhileRegExp() {
|
|
1225
|
+
return `${this._while.source}`;
|
|
1226
|
+
}
|
|
1227
|
+
getWhileWithResolvedBackReferences(lineText, captureIndices) {
|
|
1228
|
+
return this._while.resolveBackReferences(lineText, captureIndices);
|
|
1229
|
+
}
|
|
1230
|
+
collectPatterns(grammar, out) {
|
|
1231
|
+
out.push(this._begin);
|
|
1232
|
+
}
|
|
1233
|
+
compile(grammar, endRegexSource) {
|
|
1234
|
+
return this._getCachedCompiledPatterns(grammar).compile(grammar);
|
|
1235
|
+
}
|
|
1236
|
+
compileAG(grammar, endRegexSource, allowA, allowG) {
|
|
1237
|
+
return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
|
|
1238
|
+
}
|
|
1239
|
+
_getCachedCompiledPatterns(grammar) {
|
|
1240
|
+
if (!this._cachedCompiledPatterns) {
|
|
1241
|
+
this._cachedCompiledPatterns = new RegExpSourceList();
|
|
1242
|
+
for (const pattern of this.patterns) {
|
|
1243
|
+
const rule = grammar.getRule(pattern);
|
|
1244
|
+
rule.collectPatterns(grammar, this._cachedCompiledPatterns);
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
return this._cachedCompiledPatterns;
|
|
1248
|
+
}
|
|
1249
|
+
compileWhile(grammar, endRegexSource) {
|
|
1250
|
+
return this._getCachedCompiledWhilePatterns(grammar, endRegexSource).compile(grammar);
|
|
1251
|
+
}
|
|
1252
|
+
compileWhileAG(grammar, endRegexSource, allowA, allowG) {
|
|
1253
|
+
return this._getCachedCompiledWhilePatterns(grammar, endRegexSource).compileAG(grammar, allowA, allowG);
|
|
1254
|
+
}
|
|
1255
|
+
_getCachedCompiledWhilePatterns(grammar, endRegexSource) {
|
|
1256
|
+
if (!this._cachedCompiledWhilePatterns) {
|
|
1257
|
+
this._cachedCompiledWhilePatterns = new RegExpSourceList();
|
|
1258
|
+
this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while);
|
|
1259
|
+
}
|
|
1260
|
+
if (this._while.hasBackReferences) {
|
|
1261
|
+
this._cachedCompiledWhilePatterns.setSource(0, endRegexSource ? endRegexSource : "\uFFFF");
|
|
1262
|
+
}
|
|
1263
|
+
return this._cachedCompiledWhilePatterns;
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
var RuleFactory = class _RuleFactory {
|
|
1267
|
+
static createCaptureRule(helper, $location, name, contentName, retokenizeCapturedWithRuleId) {
|
|
1268
|
+
return helper.registerRule((id) => {
|
|
1269
|
+
return new CaptureRule($location, id, name, contentName, retokenizeCapturedWithRuleId);
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
static getCompiledRuleId(desc, helper, repository) {
|
|
1273
|
+
if (!desc.id) {
|
|
1274
|
+
helper.registerRule((id) => {
|
|
1275
|
+
desc.id = id;
|
|
1276
|
+
if (desc.match) {
|
|
1277
|
+
return new MatchRule(
|
|
1278
|
+
desc.$vscodeTextmateLocation,
|
|
1279
|
+
desc.id,
|
|
1280
|
+
desc.name,
|
|
1281
|
+
desc.match,
|
|
1282
|
+
_RuleFactory._compileCaptures(desc.captures, helper, repository)
|
|
1283
|
+
);
|
|
1284
|
+
}
|
|
1285
|
+
if (typeof desc.begin === "undefined") {
|
|
1286
|
+
if (desc.repository) {
|
|
1287
|
+
repository = mergeObjects({}, repository, desc.repository);
|
|
1288
|
+
}
|
|
1289
|
+
let patterns = desc.patterns;
|
|
1290
|
+
if (typeof patterns === "undefined" && desc.include) {
|
|
1291
|
+
patterns = [{ include: desc.include }];
|
|
1292
|
+
}
|
|
1293
|
+
return new IncludeOnlyRule(
|
|
1294
|
+
desc.$vscodeTextmateLocation,
|
|
1295
|
+
desc.id,
|
|
1296
|
+
desc.name,
|
|
1297
|
+
desc.contentName,
|
|
1298
|
+
_RuleFactory._compilePatterns(patterns, helper, repository)
|
|
1299
|
+
);
|
|
1300
|
+
}
|
|
1301
|
+
if (desc.while) {
|
|
1302
|
+
return new BeginWhileRule(
|
|
1303
|
+
desc.$vscodeTextmateLocation,
|
|
1304
|
+
desc.id,
|
|
1305
|
+
desc.name,
|
|
1306
|
+
desc.contentName,
|
|
1307
|
+
desc.begin,
|
|
1308
|
+
_RuleFactory._compileCaptures(desc.beginCaptures || desc.captures, helper, repository),
|
|
1309
|
+
desc.while,
|
|
1310
|
+
_RuleFactory._compileCaptures(desc.whileCaptures || desc.captures, helper, repository),
|
|
1311
|
+
_RuleFactory._compilePatterns(desc.patterns, helper, repository)
|
|
1312
|
+
);
|
|
1313
|
+
}
|
|
1314
|
+
return new BeginEndRule(
|
|
1315
|
+
desc.$vscodeTextmateLocation,
|
|
1316
|
+
desc.id,
|
|
1317
|
+
desc.name,
|
|
1318
|
+
desc.contentName,
|
|
1319
|
+
desc.begin,
|
|
1320
|
+
_RuleFactory._compileCaptures(desc.beginCaptures || desc.captures, helper, repository),
|
|
1321
|
+
desc.end,
|
|
1322
|
+
_RuleFactory._compileCaptures(desc.endCaptures || desc.captures, helper, repository),
|
|
1323
|
+
desc.applyEndPatternLast,
|
|
1324
|
+
_RuleFactory._compilePatterns(desc.patterns, helper, repository)
|
|
1325
|
+
);
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
return desc.id;
|
|
1329
|
+
}
|
|
1330
|
+
static _compileCaptures(captures, helper, repository) {
|
|
1331
|
+
let r = [];
|
|
1332
|
+
if (captures) {
|
|
1333
|
+
let maximumCaptureId = 0;
|
|
1334
|
+
for (const captureId in captures) {
|
|
1335
|
+
if (captureId === "$vscodeTextmateLocation") {
|
|
1336
|
+
continue;
|
|
1337
|
+
}
|
|
1338
|
+
const numericCaptureId = parseInt(captureId, 10);
|
|
1339
|
+
if (numericCaptureId > maximumCaptureId) {
|
|
1340
|
+
maximumCaptureId = numericCaptureId;
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
for (let i = 0; i <= maximumCaptureId; i++) {
|
|
1344
|
+
r[i] = null;
|
|
1345
|
+
}
|
|
1346
|
+
for (const captureId in captures) {
|
|
1347
|
+
if (captureId === "$vscodeTextmateLocation") {
|
|
1348
|
+
continue;
|
|
1349
|
+
}
|
|
1350
|
+
const numericCaptureId = parseInt(captureId, 10);
|
|
1351
|
+
let retokenizeCapturedWithRuleId = 0;
|
|
1352
|
+
if (captures[captureId].patterns) {
|
|
1353
|
+
retokenizeCapturedWithRuleId = _RuleFactory.getCompiledRuleId(captures[captureId], helper, repository);
|
|
1354
|
+
}
|
|
1355
|
+
r[numericCaptureId] = _RuleFactory.createCaptureRule(helper, captures[captureId].$vscodeTextmateLocation, captures[captureId].name, captures[captureId].contentName, retokenizeCapturedWithRuleId);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
return r;
|
|
1359
|
+
}
|
|
1360
|
+
static _compilePatterns(patterns, helper, repository) {
|
|
1361
|
+
let r = [];
|
|
1362
|
+
if (patterns) {
|
|
1363
|
+
for (let i = 0, len = patterns.length; i < len; i++) {
|
|
1364
|
+
const pattern = patterns[i];
|
|
1365
|
+
let ruleId = -1;
|
|
1366
|
+
if (pattern.include) {
|
|
1367
|
+
const reference = parseInclude(pattern.include);
|
|
1368
|
+
switch (reference.kind) {
|
|
1369
|
+
case 0 /* Base */:
|
|
1370
|
+
case 1 /* Self */:
|
|
1371
|
+
ruleId = _RuleFactory.getCompiledRuleId(repository[pattern.include], helper, repository);
|
|
1372
|
+
break;
|
|
1373
|
+
case 2 /* RelativeReference */:
|
|
1374
|
+
let localIncludedRule = repository[reference.ruleName];
|
|
1375
|
+
if (localIncludedRule) {
|
|
1376
|
+
ruleId = _RuleFactory.getCompiledRuleId(localIncludedRule, helper, repository);
|
|
1377
|
+
} else {
|
|
1378
|
+
}
|
|
1379
|
+
break;
|
|
1380
|
+
case 3 /* TopLevelReference */:
|
|
1381
|
+
case 4 /* TopLevelRepositoryReference */:
|
|
1382
|
+
const externalGrammarName = reference.scopeName;
|
|
1383
|
+
const externalGrammarInclude = reference.kind === 4 /* TopLevelRepositoryReference */ ? reference.ruleName : null;
|
|
1384
|
+
const externalGrammar = helper.getExternalGrammar(externalGrammarName, repository);
|
|
1385
|
+
if (externalGrammar) {
|
|
1386
|
+
if (externalGrammarInclude) {
|
|
1387
|
+
let externalIncludedRule = externalGrammar.repository[externalGrammarInclude];
|
|
1388
|
+
if (externalIncludedRule) {
|
|
1389
|
+
ruleId = _RuleFactory.getCompiledRuleId(externalIncludedRule, helper, externalGrammar.repository);
|
|
1390
|
+
} else {
|
|
1391
|
+
}
|
|
1392
|
+
} else {
|
|
1393
|
+
ruleId = _RuleFactory.getCompiledRuleId(externalGrammar.repository.$self, helper, externalGrammar.repository);
|
|
1394
|
+
}
|
|
1395
|
+
} else {
|
|
1396
|
+
}
|
|
1397
|
+
break;
|
|
1398
|
+
}
|
|
1399
|
+
} else {
|
|
1400
|
+
ruleId = _RuleFactory.getCompiledRuleId(pattern, helper, repository);
|
|
1401
|
+
}
|
|
1402
|
+
if (ruleId !== -1) {
|
|
1403
|
+
const rule = helper.getRule(ruleId);
|
|
1404
|
+
let skipRule = false;
|
|
1405
|
+
if (rule instanceof IncludeOnlyRule || rule instanceof BeginEndRule || rule instanceof BeginWhileRule) {
|
|
1406
|
+
if (rule.hasMissingPatterns && rule.patterns.length === 0) {
|
|
1407
|
+
skipRule = true;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
if (skipRule) {
|
|
1411
|
+
continue;
|
|
1412
|
+
}
|
|
1413
|
+
r.push(ruleId);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
return {
|
|
1418
|
+
patterns: r,
|
|
1419
|
+
hasMissingPatterns: (patterns ? patterns.length : 0) !== r.length
|
|
1420
|
+
};
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1423
|
+
var RegExpSource = class _RegExpSource {
|
|
1424
|
+
source;
|
|
1425
|
+
ruleId;
|
|
1426
|
+
hasAnchor;
|
|
1427
|
+
hasBackReferences;
|
|
1428
|
+
_anchorCache;
|
|
1429
|
+
constructor(regExpSource, ruleId) {
|
|
1430
|
+
if (regExpSource && typeof regExpSource === "string") {
|
|
1431
|
+
const len = regExpSource.length;
|
|
1432
|
+
let lastPushedPos = 0;
|
|
1433
|
+
let output = [];
|
|
1434
|
+
let hasAnchor = false;
|
|
1435
|
+
for (let pos = 0; pos < len; pos++) {
|
|
1436
|
+
const ch = regExpSource.charAt(pos);
|
|
1437
|
+
if (ch === "\\") {
|
|
1438
|
+
if (pos + 1 < len) {
|
|
1439
|
+
const nextCh = regExpSource.charAt(pos + 1);
|
|
1440
|
+
if (nextCh === "z") {
|
|
1441
|
+
output.push(regExpSource.substring(lastPushedPos, pos));
|
|
1442
|
+
output.push("$(?!\\n)(?<!\\n)");
|
|
1443
|
+
lastPushedPos = pos + 2;
|
|
1444
|
+
} else if (nextCh === "A" || nextCh === "G") {
|
|
1445
|
+
hasAnchor = true;
|
|
1446
|
+
}
|
|
1447
|
+
pos++;
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
this.hasAnchor = hasAnchor;
|
|
1452
|
+
if (lastPushedPos === 0) {
|
|
1453
|
+
this.source = regExpSource;
|
|
1454
|
+
} else {
|
|
1455
|
+
output.push(regExpSource.substring(lastPushedPos, len));
|
|
1456
|
+
this.source = output.join("");
|
|
1457
|
+
}
|
|
1458
|
+
} else {
|
|
1459
|
+
this.hasAnchor = false;
|
|
1460
|
+
this.source = regExpSource;
|
|
1461
|
+
}
|
|
1462
|
+
if (this.hasAnchor) {
|
|
1463
|
+
this._anchorCache = this._buildAnchorCache();
|
|
1464
|
+
} else {
|
|
1465
|
+
this._anchorCache = null;
|
|
1466
|
+
}
|
|
1467
|
+
this.ruleId = ruleId;
|
|
1468
|
+
if (typeof this.source === "string") {
|
|
1469
|
+
this.hasBackReferences = HAS_BACK_REFERENCES.test(this.source);
|
|
1470
|
+
} else {
|
|
1471
|
+
this.hasBackReferences = false;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
clone() {
|
|
1475
|
+
return new _RegExpSource(this.source, this.ruleId);
|
|
1476
|
+
}
|
|
1477
|
+
setSource(newSource) {
|
|
1478
|
+
if (this.source === newSource) {
|
|
1479
|
+
return;
|
|
1480
|
+
}
|
|
1481
|
+
this.source = newSource;
|
|
1482
|
+
if (this.hasAnchor) {
|
|
1483
|
+
this._anchorCache = this._buildAnchorCache();
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
resolveBackReferences(lineText, captureIndices) {
|
|
1487
|
+
if (typeof this.source !== "string") {
|
|
1488
|
+
throw new Error("This method should only be called if the source is a string");
|
|
1489
|
+
}
|
|
1490
|
+
let capturedValues = captureIndices.map((capture) => {
|
|
1491
|
+
return lineText.substring(capture.start, capture.end);
|
|
1492
|
+
});
|
|
1493
|
+
BACK_REFERENCING_END.lastIndex = 0;
|
|
1494
|
+
return this.source.replace(BACK_REFERENCING_END, (match, g1) => {
|
|
1495
|
+
return escapeRegExpCharacters(capturedValues[parseInt(g1, 10)] || "");
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
_buildAnchorCache() {
|
|
1499
|
+
if (typeof this.source !== "string") {
|
|
1500
|
+
throw new Error("This method should only be called if the source is a string");
|
|
1501
|
+
}
|
|
1502
|
+
let A0_G0_result = [];
|
|
1503
|
+
let A0_G1_result = [];
|
|
1504
|
+
let A1_G0_result = [];
|
|
1505
|
+
let A1_G1_result = [];
|
|
1506
|
+
let pos, len, ch, nextCh;
|
|
1507
|
+
for (pos = 0, len = this.source.length; pos < len; pos++) {
|
|
1508
|
+
ch = this.source.charAt(pos);
|
|
1509
|
+
A0_G0_result[pos] = ch;
|
|
1510
|
+
A0_G1_result[pos] = ch;
|
|
1511
|
+
A1_G0_result[pos] = ch;
|
|
1512
|
+
A1_G1_result[pos] = ch;
|
|
1513
|
+
if (ch === "\\") {
|
|
1514
|
+
if (pos + 1 < len) {
|
|
1515
|
+
nextCh = this.source.charAt(pos + 1);
|
|
1516
|
+
if (nextCh === "A") {
|
|
1517
|
+
A0_G0_result[pos + 1] = "\uFFFF";
|
|
1518
|
+
A0_G1_result[pos + 1] = "\uFFFF";
|
|
1519
|
+
A1_G0_result[pos + 1] = "A";
|
|
1520
|
+
A1_G1_result[pos + 1] = "A";
|
|
1521
|
+
} else if (nextCh === "G") {
|
|
1522
|
+
A0_G0_result[pos + 1] = "\uFFFF";
|
|
1523
|
+
A0_G1_result[pos + 1] = "G";
|
|
1524
|
+
A1_G0_result[pos + 1] = "\uFFFF";
|
|
1525
|
+
A1_G1_result[pos + 1] = "G";
|
|
1526
|
+
} else {
|
|
1527
|
+
A0_G0_result[pos + 1] = nextCh;
|
|
1528
|
+
A0_G1_result[pos + 1] = nextCh;
|
|
1529
|
+
A1_G0_result[pos + 1] = nextCh;
|
|
1530
|
+
A1_G1_result[pos + 1] = nextCh;
|
|
1531
|
+
}
|
|
1532
|
+
pos++;
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
return {
|
|
1537
|
+
A0_G0: A0_G0_result.join(""),
|
|
1538
|
+
A0_G1: A0_G1_result.join(""),
|
|
1539
|
+
A1_G0: A1_G0_result.join(""),
|
|
1540
|
+
A1_G1: A1_G1_result.join("")
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
resolveAnchors(allowA, allowG) {
|
|
1544
|
+
if (!this.hasAnchor || !this._anchorCache || typeof this.source !== "string") {
|
|
1545
|
+
return this.source;
|
|
1546
|
+
}
|
|
1547
|
+
if (allowA) {
|
|
1548
|
+
if (allowG) {
|
|
1549
|
+
return this._anchorCache.A1_G1;
|
|
1550
|
+
} else {
|
|
1551
|
+
return this._anchorCache.A1_G0;
|
|
1552
|
+
}
|
|
1553
|
+
} else {
|
|
1554
|
+
if (allowG) {
|
|
1555
|
+
return this._anchorCache.A0_G1;
|
|
1556
|
+
} else {
|
|
1557
|
+
return this._anchorCache.A0_G0;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
};
|
|
1562
|
+
var RegExpSourceList = class {
|
|
1563
|
+
_items;
|
|
1564
|
+
_hasAnchors;
|
|
1565
|
+
_cached;
|
|
1566
|
+
_anchorCache;
|
|
1567
|
+
constructor() {
|
|
1568
|
+
this._items = [];
|
|
1569
|
+
this._hasAnchors = false;
|
|
1570
|
+
this._cached = null;
|
|
1571
|
+
this._anchorCache = {
|
|
1572
|
+
A0_G0: null,
|
|
1573
|
+
A0_G1: null,
|
|
1574
|
+
A1_G0: null,
|
|
1575
|
+
A1_G1: null
|
|
1576
|
+
};
|
|
1577
|
+
}
|
|
1578
|
+
dispose() {
|
|
1579
|
+
this._disposeCaches();
|
|
1580
|
+
}
|
|
1581
|
+
_disposeCaches() {
|
|
1582
|
+
if (this._cached) {
|
|
1583
|
+
this._cached.dispose();
|
|
1584
|
+
this._cached = null;
|
|
1585
|
+
}
|
|
1586
|
+
if (this._anchorCache.A0_G0) {
|
|
1587
|
+
this._anchorCache.A0_G0.dispose();
|
|
1588
|
+
this._anchorCache.A0_G0 = null;
|
|
1589
|
+
}
|
|
1590
|
+
if (this._anchorCache.A0_G1) {
|
|
1591
|
+
this._anchorCache.A0_G1.dispose();
|
|
1592
|
+
this._anchorCache.A0_G1 = null;
|
|
1593
|
+
}
|
|
1594
|
+
if (this._anchorCache.A1_G0) {
|
|
1595
|
+
this._anchorCache.A1_G0.dispose();
|
|
1596
|
+
this._anchorCache.A1_G0 = null;
|
|
1597
|
+
}
|
|
1598
|
+
if (this._anchorCache.A1_G1) {
|
|
1599
|
+
this._anchorCache.A1_G1.dispose();
|
|
1600
|
+
this._anchorCache.A1_G1 = null;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
push(item) {
|
|
1604
|
+
this._items.push(item);
|
|
1605
|
+
this._hasAnchors = this._hasAnchors || item.hasAnchor;
|
|
1606
|
+
}
|
|
1607
|
+
unshift(item) {
|
|
1608
|
+
this._items.unshift(item);
|
|
1609
|
+
this._hasAnchors = this._hasAnchors || item.hasAnchor;
|
|
1610
|
+
}
|
|
1611
|
+
length() {
|
|
1612
|
+
return this._items.length;
|
|
1613
|
+
}
|
|
1614
|
+
setSource(index, newSource) {
|
|
1615
|
+
if (this._items[index].source !== newSource) {
|
|
1616
|
+
this._disposeCaches();
|
|
1617
|
+
this._items[index].setSource(newSource);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
compile(onigLib) {
|
|
1621
|
+
if (!this._cached) {
|
|
1622
|
+
let regExps = this._items.map((e) => e.source);
|
|
1623
|
+
this._cached = new CompiledRule(onigLib, regExps, this._items.map((e) => e.ruleId));
|
|
1624
|
+
}
|
|
1625
|
+
return this._cached;
|
|
1626
|
+
}
|
|
1627
|
+
compileAG(onigLib, allowA, allowG) {
|
|
1628
|
+
if (!this._hasAnchors) {
|
|
1629
|
+
return this.compile(onigLib);
|
|
1630
|
+
} else {
|
|
1631
|
+
if (allowA) {
|
|
1632
|
+
if (allowG) {
|
|
1633
|
+
if (!this._anchorCache.A1_G1) {
|
|
1634
|
+
this._anchorCache.A1_G1 = this._resolveAnchors(onigLib, allowA, allowG);
|
|
1635
|
+
}
|
|
1636
|
+
return this._anchorCache.A1_G1;
|
|
1637
|
+
} else {
|
|
1638
|
+
if (!this._anchorCache.A1_G0) {
|
|
1639
|
+
this._anchorCache.A1_G0 = this._resolveAnchors(onigLib, allowA, allowG);
|
|
1640
|
+
}
|
|
1641
|
+
return this._anchorCache.A1_G0;
|
|
1642
|
+
}
|
|
1643
|
+
} else {
|
|
1644
|
+
if (allowG) {
|
|
1645
|
+
if (!this._anchorCache.A0_G1) {
|
|
1646
|
+
this._anchorCache.A0_G1 = this._resolveAnchors(onigLib, allowA, allowG);
|
|
1647
|
+
}
|
|
1648
|
+
return this._anchorCache.A0_G1;
|
|
1649
|
+
} else {
|
|
1650
|
+
if (!this._anchorCache.A0_G0) {
|
|
1651
|
+
this._anchorCache.A0_G0 = this._resolveAnchors(onigLib, allowA, allowG);
|
|
1652
|
+
}
|
|
1653
|
+
return this._anchorCache.A0_G0;
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
_resolveAnchors(onigLib, allowA, allowG) {
|
|
1659
|
+
let regExps = this._items.map((e) => e.resolveAnchors(allowA, allowG));
|
|
1660
|
+
return new CompiledRule(onigLib, regExps, this._items.map((e) => e.ruleId));
|
|
1661
|
+
}
|
|
1662
|
+
};
|
|
1663
|
+
var CompiledRule = class {
|
|
1664
|
+
constructor(onigLib, regExps, rules) {
|
|
1665
|
+
this.regExps = regExps;
|
|
1666
|
+
this.rules = rules;
|
|
1667
|
+
this.scanner = onigLib.createOnigScanner(regExps);
|
|
1668
|
+
}
|
|
1669
|
+
scanner;
|
|
1670
|
+
dispose() {
|
|
1671
|
+
if (typeof this.scanner.dispose === "function") {
|
|
1672
|
+
this.scanner.dispose();
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
toString() {
|
|
1676
|
+
const r = [];
|
|
1677
|
+
for (let i = 0, len = this.rules.length; i < len; i++) {
|
|
1678
|
+
r.push(" - " + this.rules[i] + ": " + this.regExps[i]);
|
|
1679
|
+
}
|
|
1680
|
+
return r.join("\n");
|
|
1681
|
+
}
|
|
1682
|
+
findNextMatchSync(string, startPosition, options) {
|
|
1683
|
+
const result = this.scanner.findNextMatchSync(string, startPosition, options);
|
|
1684
|
+
if (!result) {
|
|
1685
|
+
return null;
|
|
1686
|
+
}
|
|
1687
|
+
return {
|
|
1688
|
+
ruleId: this.rules[result.index],
|
|
1689
|
+
captureIndices: result.captureIndices
|
|
1690
|
+
};
|
|
1691
|
+
}
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1694
|
+
// src/grammar/basicScopesAttributeProvider.ts
|
|
1695
|
+
var BasicScopeAttributes = class {
|
|
1696
|
+
constructor(languageId, tokenType) {
|
|
1697
|
+
this.languageId = languageId;
|
|
1698
|
+
this.tokenType = tokenType;
|
|
1699
|
+
}
|
|
1700
|
+
};
|
|
1701
|
+
var BasicScopeAttributesProvider = class _BasicScopeAttributesProvider {
|
|
1702
|
+
_defaultAttributes;
|
|
1703
|
+
_embeddedLanguagesMatcher;
|
|
1704
|
+
constructor(initialLanguageId, embeddedLanguages) {
|
|
1705
|
+
this._defaultAttributes = new BasicScopeAttributes(initialLanguageId, 8 /* NotSet */);
|
|
1706
|
+
this._embeddedLanguagesMatcher = new ScopeMatcher(Object.entries(embeddedLanguages || {}));
|
|
1707
|
+
}
|
|
1708
|
+
getDefaultAttributes() {
|
|
1709
|
+
return this._defaultAttributes;
|
|
1710
|
+
}
|
|
1711
|
+
getBasicScopeAttributes(scopeName) {
|
|
1712
|
+
if (scopeName === null) {
|
|
1713
|
+
return _BasicScopeAttributesProvider._NULL_SCOPE_METADATA;
|
|
1714
|
+
}
|
|
1715
|
+
return this._getBasicScopeAttributes.get(scopeName);
|
|
1716
|
+
}
|
|
1717
|
+
static _NULL_SCOPE_METADATA = new BasicScopeAttributes(0, 0);
|
|
1718
|
+
_getBasicScopeAttributes = new CachedFn((scopeName) => {
|
|
1719
|
+
const languageId = this._scopeToLanguage(scopeName);
|
|
1720
|
+
const standardTokenType = this._toStandardTokenType(scopeName);
|
|
1721
|
+
return new BasicScopeAttributes(languageId, standardTokenType);
|
|
1722
|
+
});
|
|
1723
|
+
/**
|
|
1724
|
+
* Given a produced TM scope, return the language that token describes or null if unknown.
|
|
1725
|
+
* e.g. source.html => html, source.css.embedded.html => css, punctuation.definition.tag.html => null
|
|
1726
|
+
*/
|
|
1727
|
+
_scopeToLanguage(scope) {
|
|
1728
|
+
return this._embeddedLanguagesMatcher.match(scope) || 0;
|
|
1729
|
+
}
|
|
1730
|
+
_toStandardTokenType(scopeName) {
|
|
1731
|
+
const m = scopeName.match(_BasicScopeAttributesProvider.STANDARD_TOKEN_TYPE_REGEXP);
|
|
1732
|
+
if (!m) {
|
|
1733
|
+
return 8 /* NotSet */;
|
|
1734
|
+
}
|
|
1735
|
+
switch (m[1]) {
|
|
1736
|
+
case "comment":
|
|
1737
|
+
return 1 /* Comment */;
|
|
1738
|
+
case "string":
|
|
1739
|
+
return 2 /* String */;
|
|
1740
|
+
case "regex":
|
|
1741
|
+
return 3 /* RegEx */;
|
|
1742
|
+
case "meta.embedded":
|
|
1743
|
+
return 0 /* Other */;
|
|
1744
|
+
}
|
|
1745
|
+
throw new Error("Unexpected match for standard token type!");
|
|
1746
|
+
}
|
|
1747
|
+
static STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex|meta\.embedded)\b/;
|
|
1748
|
+
};
|
|
1749
|
+
var ScopeMatcher = class {
|
|
1750
|
+
values;
|
|
1751
|
+
scopesRegExp;
|
|
1752
|
+
constructor(values) {
|
|
1753
|
+
if (values.length === 0) {
|
|
1754
|
+
this.values = null;
|
|
1755
|
+
this.scopesRegExp = null;
|
|
1756
|
+
} else {
|
|
1757
|
+
this.values = new Map(values);
|
|
1758
|
+
const escapedScopes = values.map(
|
|
1759
|
+
([scopeName, value]) => escapeRegExpCharacters(scopeName)
|
|
1760
|
+
);
|
|
1761
|
+
escapedScopes.sort();
|
|
1762
|
+
escapedScopes.reverse();
|
|
1763
|
+
this.scopesRegExp = new RegExp(
|
|
1764
|
+
`^((${escapedScopes.join(")|(")}))($|\\.)`,
|
|
1765
|
+
""
|
|
1766
|
+
);
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
match(scope) {
|
|
1770
|
+
if (!this.scopesRegExp) {
|
|
1771
|
+
return void 0;
|
|
1772
|
+
}
|
|
1773
|
+
const m = scope.match(this.scopesRegExp);
|
|
1774
|
+
if (!m) {
|
|
1775
|
+
return void 0;
|
|
1776
|
+
}
|
|
1777
|
+
return this.values.get(m[1]);
|
|
1778
|
+
}
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
// src/debug.ts
|
|
1782
|
+
var DebugFlags = {
|
|
1783
|
+
InDebugMode: typeof process !== "undefined" && !!process.env["VSCODE_TEXTMATE_DEBUG"]
|
|
1784
|
+
};
|
|
1785
|
+
var UseOnigurumaFindOptions = false;
|
|
1786
|
+
|
|
1787
|
+
// src/grammar/tokenizeString.ts
|
|
1788
|
+
var TokenizeStringResult = class {
|
|
1789
|
+
constructor(stack, stoppedEarly) {
|
|
1790
|
+
this.stack = stack;
|
|
1791
|
+
this.stoppedEarly = stoppedEarly;
|
|
1792
|
+
}
|
|
1793
|
+
};
|
|
1794
|
+
function _tokenizeString(grammar, lineText, isFirstLine, linePos, stack, lineTokens, checkWhileConditions, timeLimit) {
|
|
1795
|
+
const lineLength = lineText.content.length;
|
|
1796
|
+
let STOP = false;
|
|
1797
|
+
let anchorPosition = -1;
|
|
1798
|
+
if (checkWhileConditions) {
|
|
1799
|
+
const whileCheckResult = _checkWhileConditions(
|
|
1800
|
+
grammar,
|
|
1801
|
+
lineText,
|
|
1802
|
+
isFirstLine,
|
|
1803
|
+
linePos,
|
|
1804
|
+
stack,
|
|
1805
|
+
lineTokens
|
|
1806
|
+
);
|
|
1807
|
+
stack = whileCheckResult.stack;
|
|
1808
|
+
linePos = whileCheckResult.linePos;
|
|
1809
|
+
isFirstLine = whileCheckResult.isFirstLine;
|
|
1810
|
+
anchorPosition = whileCheckResult.anchorPosition;
|
|
1811
|
+
}
|
|
1812
|
+
const startTime = Date.now();
|
|
1813
|
+
while (!STOP) {
|
|
1814
|
+
if (timeLimit !== 0) {
|
|
1815
|
+
const elapsedTime = Date.now() - startTime;
|
|
1816
|
+
if (elapsedTime > timeLimit) {
|
|
1817
|
+
return new TokenizeStringResult(stack, true);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
scanNext();
|
|
1821
|
+
}
|
|
1822
|
+
return new TokenizeStringResult(stack, false);
|
|
1823
|
+
function scanNext() {
|
|
1824
|
+
if (false) {
|
|
1825
|
+
console.log("");
|
|
1826
|
+
console.log(
|
|
1827
|
+
`@@scanNext ${linePos}: |${lineText.content.substr(linePos).replace(/\n$/, "\\n")}|`
|
|
1828
|
+
);
|
|
1829
|
+
}
|
|
1830
|
+
const r = matchRuleOrInjections(
|
|
1831
|
+
grammar,
|
|
1832
|
+
lineText,
|
|
1833
|
+
isFirstLine,
|
|
1834
|
+
linePos,
|
|
1835
|
+
stack,
|
|
1836
|
+
anchorPosition
|
|
1837
|
+
);
|
|
1838
|
+
if (!r) {
|
|
1839
|
+
lineTokens.produce(stack, lineLength);
|
|
1840
|
+
STOP = true;
|
|
1841
|
+
return;
|
|
1842
|
+
}
|
|
1843
|
+
const captureIndices = r.captureIndices;
|
|
1844
|
+
const matchedRuleId = r.matchedRuleId;
|
|
1845
|
+
const hasAdvanced = captureIndices && captureIndices.length > 0 ? captureIndices[0].end > linePos : false;
|
|
1846
|
+
if (matchedRuleId === endRuleId) {
|
|
1847
|
+
const poppedRule = stack.getRule(grammar);
|
|
1848
|
+
if (false) {
|
|
1849
|
+
console.log(
|
|
1850
|
+
" popping " + poppedRule.debugName + " - " + poppedRule.debugEndRegExp
|
|
1851
|
+
);
|
|
1852
|
+
}
|
|
1853
|
+
lineTokens.produce(stack, captureIndices[0].start);
|
|
1854
|
+
stack = stack.withContentNameScopesList(stack.nameScopesList);
|
|
1855
|
+
handleCaptures(
|
|
1856
|
+
grammar,
|
|
1857
|
+
lineText,
|
|
1858
|
+
isFirstLine,
|
|
1859
|
+
stack,
|
|
1860
|
+
lineTokens,
|
|
1861
|
+
poppedRule.endCaptures,
|
|
1862
|
+
captureIndices
|
|
1863
|
+
);
|
|
1864
|
+
lineTokens.produce(stack, captureIndices[0].end);
|
|
1865
|
+
const popped = stack;
|
|
1866
|
+
stack = stack.parent;
|
|
1867
|
+
anchorPosition = popped.getAnchorPos();
|
|
1868
|
+
if (!hasAdvanced && popped.getEnterPos() === linePos) {
|
|
1869
|
+
if (false) {
|
|
1870
|
+
console.error(
|
|
1871
|
+
"[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"
|
|
1872
|
+
);
|
|
1873
|
+
}
|
|
1874
|
+
stack = popped;
|
|
1875
|
+
lineTokens.produce(stack, lineLength);
|
|
1876
|
+
STOP = true;
|
|
1877
|
+
return;
|
|
1878
|
+
}
|
|
1879
|
+
} else {
|
|
1880
|
+
const _rule = grammar.getRule(matchedRuleId);
|
|
1881
|
+
lineTokens.produce(stack, captureIndices[0].start);
|
|
1882
|
+
const beforePush = stack;
|
|
1883
|
+
const scopeName = _rule.getName(lineText.content, captureIndices);
|
|
1884
|
+
const nameScopesList = stack.contentNameScopesList.pushAttributed(
|
|
1885
|
+
scopeName,
|
|
1886
|
+
grammar
|
|
1887
|
+
);
|
|
1888
|
+
stack = stack.push(
|
|
1889
|
+
matchedRuleId,
|
|
1890
|
+
linePos,
|
|
1891
|
+
anchorPosition,
|
|
1892
|
+
captureIndices[0].end === lineLength,
|
|
1893
|
+
null,
|
|
1894
|
+
nameScopesList,
|
|
1895
|
+
nameScopesList
|
|
1896
|
+
);
|
|
1897
|
+
if (_rule instanceof BeginEndRule) {
|
|
1898
|
+
const pushedRule = _rule;
|
|
1899
|
+
if (false) {
|
|
1900
|
+
console.log(
|
|
1901
|
+
" pushing " + pushedRule.debugName + " - " + pushedRule.debugBeginRegExp
|
|
1902
|
+
);
|
|
1903
|
+
}
|
|
1904
|
+
handleCaptures(
|
|
1905
|
+
grammar,
|
|
1906
|
+
lineText,
|
|
1907
|
+
isFirstLine,
|
|
1908
|
+
stack,
|
|
1909
|
+
lineTokens,
|
|
1910
|
+
pushedRule.beginCaptures,
|
|
1911
|
+
captureIndices
|
|
1912
|
+
);
|
|
1913
|
+
lineTokens.produce(stack, captureIndices[0].end);
|
|
1914
|
+
anchorPosition = captureIndices[0].end;
|
|
1915
|
+
const contentName = pushedRule.getContentName(
|
|
1916
|
+
lineText.content,
|
|
1917
|
+
captureIndices
|
|
1918
|
+
);
|
|
1919
|
+
const contentNameScopesList = nameScopesList.pushAttributed(
|
|
1920
|
+
contentName,
|
|
1921
|
+
grammar
|
|
1922
|
+
);
|
|
1923
|
+
stack = stack.withContentNameScopesList(contentNameScopesList);
|
|
1924
|
+
if (pushedRule.endHasBackReferences) {
|
|
1925
|
+
stack = stack.withEndRule(
|
|
1926
|
+
pushedRule.getEndWithResolvedBackReferences(
|
|
1927
|
+
lineText.content,
|
|
1928
|
+
captureIndices
|
|
1929
|
+
)
|
|
1930
|
+
);
|
|
1931
|
+
}
|
|
1932
|
+
if (!hasAdvanced && beforePush.hasSameRuleAs(stack)) {
|
|
1933
|
+
if (false) {
|
|
1934
|
+
console.error(
|
|
1935
|
+
"[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"
|
|
1936
|
+
);
|
|
1937
|
+
}
|
|
1938
|
+
stack = stack.pop();
|
|
1939
|
+
lineTokens.produce(stack, lineLength);
|
|
1940
|
+
STOP = true;
|
|
1941
|
+
return;
|
|
1942
|
+
}
|
|
1943
|
+
} else if (_rule instanceof BeginWhileRule) {
|
|
1944
|
+
const pushedRule = _rule;
|
|
1945
|
+
if (false) {
|
|
1946
|
+
console.log(" pushing " + pushedRule.debugName);
|
|
1947
|
+
}
|
|
1948
|
+
handleCaptures(
|
|
1949
|
+
grammar,
|
|
1950
|
+
lineText,
|
|
1951
|
+
isFirstLine,
|
|
1952
|
+
stack,
|
|
1953
|
+
lineTokens,
|
|
1954
|
+
pushedRule.beginCaptures,
|
|
1955
|
+
captureIndices
|
|
1956
|
+
);
|
|
1957
|
+
lineTokens.produce(stack, captureIndices[0].end);
|
|
1958
|
+
anchorPosition = captureIndices[0].end;
|
|
1959
|
+
const contentName = pushedRule.getContentName(
|
|
1960
|
+
lineText.content,
|
|
1961
|
+
captureIndices
|
|
1962
|
+
);
|
|
1963
|
+
const contentNameScopesList = nameScopesList.pushAttributed(
|
|
1964
|
+
contentName,
|
|
1965
|
+
grammar
|
|
1966
|
+
);
|
|
1967
|
+
stack = stack.withContentNameScopesList(contentNameScopesList);
|
|
1968
|
+
if (pushedRule.whileHasBackReferences) {
|
|
1969
|
+
stack = stack.withEndRule(
|
|
1970
|
+
pushedRule.getWhileWithResolvedBackReferences(
|
|
1971
|
+
lineText.content,
|
|
1972
|
+
captureIndices
|
|
1973
|
+
)
|
|
1974
|
+
);
|
|
1975
|
+
}
|
|
1976
|
+
if (!hasAdvanced && beforePush.hasSameRuleAs(stack)) {
|
|
1977
|
+
if (false) {
|
|
1978
|
+
console.error(
|
|
1979
|
+
"[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"
|
|
1980
|
+
);
|
|
1981
|
+
}
|
|
1982
|
+
stack = stack.pop();
|
|
1983
|
+
lineTokens.produce(stack, lineLength);
|
|
1984
|
+
STOP = true;
|
|
1985
|
+
return;
|
|
1986
|
+
}
|
|
1987
|
+
} else {
|
|
1988
|
+
const matchingRule = _rule;
|
|
1989
|
+
if (false) {
|
|
1990
|
+
console.log(
|
|
1991
|
+
" matched " + matchingRule.debugName + " - " + matchingRule.debugMatchRegExp
|
|
1992
|
+
);
|
|
1993
|
+
}
|
|
1994
|
+
handleCaptures(
|
|
1995
|
+
grammar,
|
|
1996
|
+
lineText,
|
|
1997
|
+
isFirstLine,
|
|
1998
|
+
stack,
|
|
1999
|
+
lineTokens,
|
|
2000
|
+
matchingRule.captures,
|
|
2001
|
+
captureIndices
|
|
2002
|
+
);
|
|
2003
|
+
lineTokens.produce(stack, captureIndices[0].end);
|
|
2004
|
+
stack = stack.pop();
|
|
2005
|
+
if (!hasAdvanced) {
|
|
2006
|
+
if (false) {
|
|
2007
|
+
console.error(
|
|
2008
|
+
"[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"
|
|
2009
|
+
);
|
|
2010
|
+
}
|
|
2011
|
+
stack = stack.safePop();
|
|
2012
|
+
lineTokens.produce(stack, lineLength);
|
|
2013
|
+
STOP = true;
|
|
2014
|
+
return;
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
if (captureIndices[0].end > linePos) {
|
|
2019
|
+
linePos = captureIndices[0].end;
|
|
2020
|
+
isFirstLine = false;
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
function _checkWhileConditions(grammar, lineText, isFirstLine, linePos, stack, lineTokens) {
|
|
2025
|
+
let anchorPosition = stack.beginRuleCapturedEOL ? 0 : -1;
|
|
2026
|
+
const whileRules = [];
|
|
2027
|
+
for (let node = stack; node; node = node.pop()) {
|
|
2028
|
+
const nodeRule = node.getRule(grammar);
|
|
2029
|
+
if (nodeRule instanceof BeginWhileRule) {
|
|
2030
|
+
whileRules.push({
|
|
2031
|
+
rule: nodeRule,
|
|
2032
|
+
stack: node
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
for (let whileRule = whileRules.pop(); whileRule; whileRule = whileRules.pop()) {
|
|
2037
|
+
const { ruleScanner, findOptions } = prepareRuleWhileSearch(whileRule.rule, grammar, whileRule.stack.endRule, isFirstLine, linePos === anchorPosition);
|
|
2038
|
+
const r = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
|
|
2039
|
+
if (false) {
|
|
2040
|
+
console.log(" scanning for while rule");
|
|
2041
|
+
console.log(ruleScanner.toString());
|
|
2042
|
+
}
|
|
2043
|
+
if (r) {
|
|
2044
|
+
const matchedRuleId = r.ruleId;
|
|
2045
|
+
if (matchedRuleId !== whileRuleId) {
|
|
2046
|
+
stack = whileRule.stack.pop();
|
|
2047
|
+
break;
|
|
2048
|
+
}
|
|
2049
|
+
if (r.captureIndices && r.captureIndices.length) {
|
|
2050
|
+
lineTokens.produce(whileRule.stack, r.captureIndices[0].start);
|
|
2051
|
+
handleCaptures(grammar, lineText, isFirstLine, whileRule.stack, lineTokens, whileRule.rule.whileCaptures, r.captureIndices);
|
|
2052
|
+
lineTokens.produce(whileRule.stack, r.captureIndices[0].end);
|
|
2053
|
+
anchorPosition = r.captureIndices[0].end;
|
|
2054
|
+
if (r.captureIndices[0].end > linePos) {
|
|
2055
|
+
linePos = r.captureIndices[0].end;
|
|
2056
|
+
isFirstLine = false;
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
} else {
|
|
2060
|
+
if (false) {
|
|
2061
|
+
console.log(" popping " + whileRule.rule.debugName + " - " + whileRule.rule.debugWhileRegExp);
|
|
2062
|
+
}
|
|
2063
|
+
stack = whileRule.stack.pop();
|
|
2064
|
+
break;
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
return { stack, linePos, anchorPosition, isFirstLine };
|
|
2068
|
+
}
|
|
2069
|
+
function matchRuleOrInjections(grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
|
|
2070
|
+
const matchResult = matchRule(grammar, lineText, isFirstLine, linePos, stack, anchorPosition);
|
|
2071
|
+
const injections = grammar.getInjections();
|
|
2072
|
+
if (injections.length === 0) {
|
|
2073
|
+
return matchResult;
|
|
2074
|
+
}
|
|
2075
|
+
const injectionResult = matchInjections(injections, grammar, lineText, isFirstLine, linePos, stack, anchorPosition);
|
|
2076
|
+
if (!injectionResult) {
|
|
2077
|
+
return matchResult;
|
|
2078
|
+
}
|
|
2079
|
+
if (!matchResult) {
|
|
2080
|
+
return injectionResult;
|
|
2081
|
+
}
|
|
2082
|
+
const matchResultScore = matchResult.captureIndices[0].start;
|
|
2083
|
+
const injectionResultScore = injectionResult.captureIndices[0].start;
|
|
2084
|
+
if (injectionResultScore < matchResultScore || injectionResult.priorityMatch && injectionResultScore === matchResultScore) {
|
|
2085
|
+
return injectionResult;
|
|
2086
|
+
}
|
|
2087
|
+
return matchResult;
|
|
2088
|
+
}
|
|
2089
|
+
function matchRule(grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
|
|
2090
|
+
const rule = stack.getRule(grammar);
|
|
2091
|
+
const { ruleScanner, findOptions } = prepareRuleSearch(rule, grammar, stack.endRule, isFirstLine, linePos === anchorPosition);
|
|
2092
|
+
const r = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
|
|
2093
|
+
if (r) {
|
|
2094
|
+
return {
|
|
2095
|
+
captureIndices: r.captureIndices,
|
|
2096
|
+
matchedRuleId: r.ruleId
|
|
2097
|
+
};
|
|
2098
|
+
}
|
|
2099
|
+
return null;
|
|
2100
|
+
}
|
|
2101
|
+
function matchInjections(injections, grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
|
|
2102
|
+
let bestMatchRating = Number.MAX_VALUE;
|
|
2103
|
+
let bestMatchCaptureIndices = null;
|
|
2104
|
+
let bestMatchRuleId;
|
|
2105
|
+
let bestMatchResultPriority = 0;
|
|
2106
|
+
const scopes = stack.contentNameScopesList.getScopeNames();
|
|
2107
|
+
for (let i = 0, len = injections.length; i < len; i++) {
|
|
2108
|
+
const injection = injections[i];
|
|
2109
|
+
if (!injection.matcher(scopes)) {
|
|
2110
|
+
continue;
|
|
2111
|
+
}
|
|
2112
|
+
const rule = grammar.getRule(injection.ruleId);
|
|
2113
|
+
const { ruleScanner, findOptions } = prepareRuleSearch(rule, grammar, null, isFirstLine, linePos === anchorPosition);
|
|
2114
|
+
const matchResult = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
|
|
2115
|
+
if (!matchResult) {
|
|
2116
|
+
continue;
|
|
2117
|
+
}
|
|
2118
|
+
if (false) {
|
|
2119
|
+
console.log(` matched injection: ${injection.debugSelector}`);
|
|
2120
|
+
console.log(ruleScanner.toString());
|
|
2121
|
+
}
|
|
2122
|
+
const matchRating = matchResult.captureIndices[0].start;
|
|
2123
|
+
if (matchRating >= bestMatchRating) {
|
|
2124
|
+
continue;
|
|
2125
|
+
}
|
|
2126
|
+
bestMatchRating = matchRating;
|
|
2127
|
+
bestMatchCaptureIndices = matchResult.captureIndices;
|
|
2128
|
+
bestMatchRuleId = matchResult.ruleId;
|
|
2129
|
+
bestMatchResultPriority = injection.priority;
|
|
2130
|
+
if (bestMatchRating === linePos) {
|
|
2131
|
+
break;
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
if (bestMatchCaptureIndices) {
|
|
2135
|
+
return {
|
|
2136
|
+
priorityMatch: bestMatchResultPriority === -1,
|
|
2137
|
+
captureIndices: bestMatchCaptureIndices,
|
|
2138
|
+
matchedRuleId: bestMatchRuleId
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
2141
|
+
return null;
|
|
2142
|
+
}
|
|
2143
|
+
function prepareRuleSearch(rule, grammar, endRegexSource, allowA, allowG) {
|
|
2144
|
+
if (UseOnigurumaFindOptions) {
|
|
2145
|
+
const ruleScanner2 = rule.compile(grammar, endRegexSource);
|
|
2146
|
+
const findOptions = getFindOptions(allowA, allowG);
|
|
2147
|
+
return { ruleScanner: ruleScanner2, findOptions };
|
|
2148
|
+
}
|
|
2149
|
+
const ruleScanner = rule.compileAG(grammar, endRegexSource, allowA, allowG);
|
|
2150
|
+
return { ruleScanner, findOptions: 0 /* None */ };
|
|
2151
|
+
}
|
|
2152
|
+
function prepareRuleWhileSearch(rule, grammar, endRegexSource, allowA, allowG) {
|
|
2153
|
+
if (UseOnigurumaFindOptions) {
|
|
2154
|
+
const ruleScanner2 = rule.compileWhile(grammar, endRegexSource);
|
|
2155
|
+
const findOptions = getFindOptions(allowA, allowG);
|
|
2156
|
+
return { ruleScanner: ruleScanner2, findOptions };
|
|
2157
|
+
}
|
|
2158
|
+
const ruleScanner = rule.compileWhileAG(grammar, endRegexSource, allowA, allowG);
|
|
2159
|
+
return { ruleScanner, findOptions: 0 /* None */ };
|
|
2160
|
+
}
|
|
2161
|
+
function getFindOptions(allowA, allowG) {
|
|
2162
|
+
let options = 0 /* None */;
|
|
2163
|
+
if (!allowA) {
|
|
2164
|
+
options |= 1 /* NotBeginString */;
|
|
2165
|
+
}
|
|
2166
|
+
if (!allowG) {
|
|
2167
|
+
options |= 4 /* NotBeginPosition */;
|
|
2168
|
+
}
|
|
2169
|
+
return options;
|
|
2170
|
+
}
|
|
2171
|
+
function handleCaptures(grammar, lineText, isFirstLine, stack, lineTokens, captures, captureIndices) {
|
|
2172
|
+
if (captures.length === 0) {
|
|
2173
|
+
return;
|
|
2174
|
+
}
|
|
2175
|
+
const lineTextContent = lineText.content;
|
|
2176
|
+
const len = Math.min(captures.length, captureIndices.length);
|
|
2177
|
+
const localStack = [];
|
|
2178
|
+
const maxEnd = captureIndices[0].end;
|
|
2179
|
+
for (let i = 0; i < len; i++) {
|
|
2180
|
+
const captureRule = captures[i];
|
|
2181
|
+
if (captureRule === null) {
|
|
2182
|
+
continue;
|
|
2183
|
+
}
|
|
2184
|
+
const captureIndex = captureIndices[i];
|
|
2185
|
+
if (captureIndex.length === 0) {
|
|
2186
|
+
continue;
|
|
2187
|
+
}
|
|
2188
|
+
if (captureIndex.start > maxEnd) {
|
|
2189
|
+
break;
|
|
2190
|
+
}
|
|
2191
|
+
while (localStack.length > 0 && localStack[localStack.length - 1].endPos <= captureIndex.start) {
|
|
2192
|
+
lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, localStack[localStack.length - 1].endPos);
|
|
2193
|
+
localStack.pop();
|
|
2194
|
+
}
|
|
2195
|
+
if (localStack.length > 0) {
|
|
2196
|
+
lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, captureIndex.start);
|
|
2197
|
+
} else {
|
|
2198
|
+
lineTokens.produce(stack, captureIndex.start);
|
|
2199
|
+
}
|
|
2200
|
+
if (captureRule.retokenizeCapturedWithRuleId) {
|
|
2201
|
+
const scopeName = captureRule.getName(lineTextContent, captureIndices);
|
|
2202
|
+
const nameScopesList = stack.contentNameScopesList.pushAttributed(scopeName, grammar);
|
|
2203
|
+
const contentName = captureRule.getContentName(lineTextContent, captureIndices);
|
|
2204
|
+
const contentNameScopesList = nameScopesList.pushAttributed(contentName, grammar);
|
|
2205
|
+
const stackClone = stack.push(captureRule.retokenizeCapturedWithRuleId, captureIndex.start, -1, false, null, nameScopesList, contentNameScopesList);
|
|
2206
|
+
const onigSubStr = grammar.createOnigString(lineTextContent.substring(0, captureIndex.end));
|
|
2207
|
+
_tokenizeString(
|
|
2208
|
+
grammar,
|
|
2209
|
+
onigSubStr,
|
|
2210
|
+
isFirstLine && captureIndex.start === 0,
|
|
2211
|
+
captureIndex.start,
|
|
2212
|
+
stackClone,
|
|
2213
|
+
lineTokens,
|
|
2214
|
+
false,
|
|
2215
|
+
/* no time limit */
|
|
2216
|
+
0
|
|
2217
|
+
);
|
|
2218
|
+
disposeOnigString(onigSubStr);
|
|
2219
|
+
continue;
|
|
2220
|
+
}
|
|
2221
|
+
const captureRuleScopeName = captureRule.getName(lineTextContent, captureIndices);
|
|
2222
|
+
if (captureRuleScopeName !== null) {
|
|
2223
|
+
const base = localStack.length > 0 ? localStack[localStack.length - 1].scopes : stack.contentNameScopesList;
|
|
2224
|
+
const captureRuleScopesList = base.pushAttributed(captureRuleScopeName, grammar);
|
|
2225
|
+
localStack.push(new LocalStackElement(captureRuleScopesList, captureIndex.end));
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
while (localStack.length > 0) {
|
|
2229
|
+
lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, localStack[localStack.length - 1].endPos);
|
|
2230
|
+
localStack.pop();
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
var LocalStackElement = class {
|
|
2234
|
+
scopes;
|
|
2235
|
+
endPos;
|
|
2236
|
+
constructor(scopes, endPos) {
|
|
2237
|
+
this.scopes = scopes;
|
|
2238
|
+
this.endPos = endPos;
|
|
2239
|
+
}
|
|
2240
|
+
};
|
|
2241
|
+
|
|
2242
|
+
// src/grammar/grammar.ts
|
|
2243
|
+
function createGrammar(scopeName, grammar, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors, grammarRepository, onigLib) {
|
|
2244
|
+
return new Grammar(
|
|
2245
|
+
scopeName,
|
|
2246
|
+
grammar,
|
|
2247
|
+
initialLanguage,
|
|
2248
|
+
embeddedLanguages,
|
|
2249
|
+
tokenTypes,
|
|
2250
|
+
balancedBracketSelectors,
|
|
2251
|
+
grammarRepository,
|
|
2252
|
+
onigLib
|
|
2253
|
+
);
|
|
2254
|
+
}
|
|
2255
|
+
function collectInjections(result, selector, rule, ruleFactoryHelper, grammar) {
|
|
2256
|
+
const matchers = createMatchers(selector, nameMatcher);
|
|
2257
|
+
const ruleId = RuleFactory.getCompiledRuleId(rule, ruleFactoryHelper, grammar.repository);
|
|
2258
|
+
for (const matcher of matchers) {
|
|
2259
|
+
result.push({
|
|
2260
|
+
debugSelector: selector,
|
|
2261
|
+
matcher: matcher.matcher,
|
|
2262
|
+
ruleId,
|
|
2263
|
+
grammar,
|
|
2264
|
+
priority: matcher.priority
|
|
2265
|
+
});
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
function nameMatcher(identifers, scopes) {
|
|
2269
|
+
if (scopes.length < identifers.length) {
|
|
2270
|
+
return false;
|
|
2271
|
+
}
|
|
2272
|
+
let lastIndex = 0;
|
|
2273
|
+
return identifers.every((identifier) => {
|
|
2274
|
+
for (let i = lastIndex; i < scopes.length; i++) {
|
|
2275
|
+
if (scopesAreMatching(scopes[i], identifier)) {
|
|
2276
|
+
lastIndex = i + 1;
|
|
2277
|
+
return true;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
return false;
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
function scopesAreMatching(thisScopeName, scopeName) {
|
|
2284
|
+
if (!thisScopeName) {
|
|
2285
|
+
return false;
|
|
2286
|
+
}
|
|
2287
|
+
if (thisScopeName === scopeName) {
|
|
2288
|
+
return true;
|
|
2289
|
+
}
|
|
2290
|
+
const len = scopeName.length;
|
|
2291
|
+
return thisScopeName.length > len && thisScopeName.substr(0, len) === scopeName && thisScopeName[len] === ".";
|
|
2292
|
+
}
|
|
2293
|
+
var Grammar = class {
|
|
2294
|
+
constructor(_rootScopeName, grammar, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors, grammarRepository, _onigLib) {
|
|
2295
|
+
this._rootScopeName = _rootScopeName;
|
|
2296
|
+
this.balancedBracketSelectors = balancedBracketSelectors;
|
|
2297
|
+
this._onigLib = _onigLib;
|
|
2298
|
+
this._basicScopeAttributesProvider = new BasicScopeAttributesProvider(
|
|
2299
|
+
initialLanguage,
|
|
2300
|
+
embeddedLanguages
|
|
2301
|
+
);
|
|
2302
|
+
this._rootId = -1;
|
|
2303
|
+
this._lastRuleId = 0;
|
|
2304
|
+
this._ruleId2desc = [null];
|
|
2305
|
+
this._includedGrammars = {};
|
|
2306
|
+
this._grammarRepository = grammarRepository;
|
|
2307
|
+
this._grammar = initGrammar(grammar, null);
|
|
2308
|
+
this._injections = null;
|
|
2309
|
+
this._tokenTypeMatchers = [];
|
|
2310
|
+
if (tokenTypes) {
|
|
2311
|
+
for (const selector of Object.keys(tokenTypes)) {
|
|
2312
|
+
const matchers = createMatchers(selector, nameMatcher);
|
|
2313
|
+
for (const matcher of matchers) {
|
|
2314
|
+
this._tokenTypeMatchers.push({
|
|
2315
|
+
matcher: matcher.matcher,
|
|
2316
|
+
type: tokenTypes[selector]
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
_rootId;
|
|
2323
|
+
_lastRuleId;
|
|
2324
|
+
_ruleId2desc;
|
|
2325
|
+
_includedGrammars;
|
|
2326
|
+
_grammarRepository;
|
|
2327
|
+
_grammar;
|
|
2328
|
+
_injections;
|
|
2329
|
+
_basicScopeAttributesProvider;
|
|
2330
|
+
_tokenTypeMatchers;
|
|
2331
|
+
get themeProvider() {
|
|
2332
|
+
return this._grammarRepository;
|
|
2333
|
+
}
|
|
2334
|
+
dispose() {
|
|
2335
|
+
for (const rule of this._ruleId2desc) {
|
|
2336
|
+
if (rule) {
|
|
2337
|
+
rule.dispose();
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
createOnigScanner(sources) {
|
|
2342
|
+
return this._onigLib.createOnigScanner(sources);
|
|
2343
|
+
}
|
|
2344
|
+
createOnigString(sources) {
|
|
2345
|
+
return this._onigLib.createOnigString(sources);
|
|
2346
|
+
}
|
|
2347
|
+
getMetadataForScope(scope) {
|
|
2348
|
+
return this._basicScopeAttributesProvider.getBasicScopeAttributes(scope);
|
|
2349
|
+
}
|
|
2350
|
+
_collectInjections() {
|
|
2351
|
+
const grammarRepository = {
|
|
2352
|
+
lookup: (scopeName2) => {
|
|
2353
|
+
if (scopeName2 === this._rootScopeName) {
|
|
2354
|
+
return this._grammar;
|
|
2355
|
+
}
|
|
2356
|
+
return this.getExternalGrammar(scopeName2);
|
|
2357
|
+
},
|
|
2358
|
+
injections: (scopeName2) => {
|
|
2359
|
+
return this._grammarRepository.injections(scopeName2);
|
|
2360
|
+
}
|
|
2361
|
+
};
|
|
2362
|
+
const result = [];
|
|
2363
|
+
const scopeName = this._rootScopeName;
|
|
2364
|
+
const grammar = grammarRepository.lookup(scopeName);
|
|
2365
|
+
if (grammar) {
|
|
2366
|
+
const rawInjections = grammar.injections;
|
|
2367
|
+
if (rawInjections) {
|
|
2368
|
+
for (let expression in rawInjections) {
|
|
2369
|
+
collectInjections(
|
|
2370
|
+
result,
|
|
2371
|
+
expression,
|
|
2372
|
+
rawInjections[expression],
|
|
2373
|
+
this,
|
|
2374
|
+
grammar
|
|
2375
|
+
);
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
const injectionScopeNames = this._grammarRepository.injections(scopeName);
|
|
2379
|
+
if (injectionScopeNames) {
|
|
2380
|
+
injectionScopeNames.forEach((injectionScopeName) => {
|
|
2381
|
+
const injectionGrammar = this.getExternalGrammar(injectionScopeName);
|
|
2382
|
+
if (injectionGrammar) {
|
|
2383
|
+
const selector = injectionGrammar.injectionSelector;
|
|
2384
|
+
if (selector) {
|
|
2385
|
+
collectInjections(
|
|
2386
|
+
result,
|
|
2387
|
+
selector,
|
|
2388
|
+
injectionGrammar,
|
|
2389
|
+
this,
|
|
2390
|
+
injectionGrammar
|
|
2391
|
+
);
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
});
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
result.sort((i1, i2) => i1.priority - i2.priority);
|
|
2398
|
+
return result;
|
|
2399
|
+
}
|
|
2400
|
+
getInjections() {
|
|
2401
|
+
if (this._injections === null) {
|
|
2402
|
+
this._injections = this._collectInjections();
|
|
2403
|
+
}
|
|
2404
|
+
return this._injections;
|
|
2405
|
+
}
|
|
2406
|
+
registerRule(factory) {
|
|
2407
|
+
const id = ++this._lastRuleId;
|
|
2408
|
+
const result = factory(ruleIdFromNumber(id));
|
|
2409
|
+
this._ruleId2desc[id] = result;
|
|
2410
|
+
return result;
|
|
2411
|
+
}
|
|
2412
|
+
getRule(ruleId) {
|
|
2413
|
+
return this._ruleId2desc[ruleIdToNumber(ruleId)];
|
|
2414
|
+
}
|
|
2415
|
+
getExternalGrammar(scopeName, repository) {
|
|
2416
|
+
if (this._includedGrammars[scopeName]) {
|
|
2417
|
+
return this._includedGrammars[scopeName];
|
|
2418
|
+
} else if (this._grammarRepository) {
|
|
2419
|
+
const rawIncludedGrammar = this._grammarRepository.lookup(scopeName);
|
|
2420
|
+
if (rawIncludedGrammar) {
|
|
2421
|
+
this._includedGrammars[scopeName] = initGrammar(
|
|
2422
|
+
rawIncludedGrammar,
|
|
2423
|
+
repository && repository.$base
|
|
2424
|
+
);
|
|
2425
|
+
return this._includedGrammars[scopeName];
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
return void 0;
|
|
2429
|
+
}
|
|
2430
|
+
tokenizeLine(lineText, prevState, timeLimit = 0) {
|
|
2431
|
+
const r = this._tokenize(lineText, prevState, false, timeLimit);
|
|
2432
|
+
return {
|
|
2433
|
+
tokens: r.lineTokens.getResult(r.ruleStack, r.lineLength),
|
|
2434
|
+
ruleStack: r.ruleStack,
|
|
2435
|
+
stoppedEarly: r.stoppedEarly
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2438
|
+
tokenizeLine2(lineText, prevState, timeLimit = 0) {
|
|
2439
|
+
const r = this._tokenize(lineText, prevState, true, timeLimit);
|
|
2440
|
+
return {
|
|
2441
|
+
tokens: r.lineTokens.getBinaryResult(r.ruleStack, r.lineLength),
|
|
2442
|
+
ruleStack: r.ruleStack,
|
|
2443
|
+
stoppedEarly: r.stoppedEarly
|
|
2444
|
+
};
|
|
2445
|
+
}
|
|
2446
|
+
_tokenize(lineText, prevState, emitBinaryTokens, timeLimit) {
|
|
2447
|
+
if (this._rootId === -1) {
|
|
2448
|
+
this._rootId = RuleFactory.getCompiledRuleId(
|
|
2449
|
+
this._grammar.repository.$self,
|
|
2450
|
+
this,
|
|
2451
|
+
this._grammar.repository
|
|
2452
|
+
);
|
|
2453
|
+
this.getInjections();
|
|
2454
|
+
}
|
|
2455
|
+
let isFirstLine;
|
|
2456
|
+
if (!prevState || prevState === StateStackImpl.NULL) {
|
|
2457
|
+
isFirstLine = true;
|
|
2458
|
+
const rawDefaultMetadata = this._basicScopeAttributesProvider.getDefaultAttributes();
|
|
2459
|
+
const defaultStyle = this.themeProvider.getDefaults();
|
|
2460
|
+
const defaultMetadata = EncodedTokenMetadata.set(
|
|
2461
|
+
0,
|
|
2462
|
+
rawDefaultMetadata.languageId,
|
|
2463
|
+
rawDefaultMetadata.tokenType,
|
|
2464
|
+
null,
|
|
2465
|
+
defaultStyle.fontStyle,
|
|
2466
|
+
defaultStyle.foregroundId,
|
|
2467
|
+
defaultStyle.backgroundId
|
|
2468
|
+
);
|
|
2469
|
+
const rootScopeName = this.getRule(this._rootId).getName(
|
|
2470
|
+
null,
|
|
2471
|
+
null
|
|
2472
|
+
);
|
|
2473
|
+
let scopeList;
|
|
2474
|
+
if (rootScopeName) {
|
|
2475
|
+
scopeList = AttributedScopeStack.createRootAndLookUpScopeName(
|
|
2476
|
+
rootScopeName,
|
|
2477
|
+
defaultMetadata,
|
|
2478
|
+
this
|
|
2479
|
+
);
|
|
2480
|
+
} else {
|
|
2481
|
+
scopeList = AttributedScopeStack.createRoot(
|
|
2482
|
+
"unknown",
|
|
2483
|
+
defaultMetadata
|
|
2484
|
+
);
|
|
2485
|
+
}
|
|
2486
|
+
prevState = new StateStackImpl(
|
|
2487
|
+
null,
|
|
2488
|
+
this._rootId,
|
|
2489
|
+
-1,
|
|
2490
|
+
-1,
|
|
2491
|
+
false,
|
|
2492
|
+
null,
|
|
2493
|
+
scopeList,
|
|
2494
|
+
scopeList
|
|
2495
|
+
);
|
|
2496
|
+
} else {
|
|
2497
|
+
isFirstLine = false;
|
|
2498
|
+
prevState.reset();
|
|
2499
|
+
}
|
|
2500
|
+
lineText = lineText + "\n";
|
|
2501
|
+
const onigLineText = this.createOnigString(lineText);
|
|
2502
|
+
const lineLength = onigLineText.content.length;
|
|
2503
|
+
const lineTokens = new LineTokens(
|
|
2504
|
+
emitBinaryTokens,
|
|
2505
|
+
lineText,
|
|
2506
|
+
this._tokenTypeMatchers,
|
|
2507
|
+
this.balancedBracketSelectors
|
|
2508
|
+
);
|
|
2509
|
+
const r = _tokenizeString(
|
|
2510
|
+
this,
|
|
2511
|
+
onigLineText,
|
|
2512
|
+
isFirstLine,
|
|
2513
|
+
0,
|
|
2514
|
+
prevState,
|
|
2515
|
+
lineTokens,
|
|
2516
|
+
true,
|
|
2517
|
+
timeLimit
|
|
2518
|
+
);
|
|
2519
|
+
disposeOnigString(onigLineText);
|
|
2520
|
+
return {
|
|
2521
|
+
lineLength,
|
|
2522
|
+
lineTokens,
|
|
2523
|
+
ruleStack: r.stack,
|
|
2524
|
+
stoppedEarly: r.stoppedEarly
|
|
2525
|
+
};
|
|
2526
|
+
}
|
|
2527
|
+
};
|
|
2528
|
+
function initGrammar(grammar, base) {
|
|
2529
|
+
grammar = clone(grammar);
|
|
2530
|
+
grammar.repository = grammar.repository || {};
|
|
2531
|
+
grammar.repository.$self = {
|
|
2532
|
+
$vscodeTextmateLocation: grammar.$vscodeTextmateLocation,
|
|
2533
|
+
patterns: grammar.patterns,
|
|
2534
|
+
name: grammar.scopeName
|
|
2535
|
+
};
|
|
2536
|
+
grammar.repository.$base = base || grammar.repository.$self;
|
|
2537
|
+
return grammar;
|
|
2538
|
+
}
|
|
2539
|
+
var AttributedScopeStack = class _AttributedScopeStack {
|
|
2540
|
+
/**
|
|
2541
|
+
* Invariant:
|
|
2542
|
+
* ```
|
|
2543
|
+
* if (parent && !scopePath.extends(parent.scopePath)) {
|
|
2544
|
+
* throw new Error();
|
|
2545
|
+
* }
|
|
2546
|
+
* ```
|
|
2547
|
+
*/
|
|
2548
|
+
constructor(parent, scopePath, tokenAttributes) {
|
|
2549
|
+
this.parent = parent;
|
|
2550
|
+
this.scopePath = scopePath;
|
|
2551
|
+
this.tokenAttributes = tokenAttributes;
|
|
2552
|
+
}
|
|
2553
|
+
static fromExtension(namesScopeList, contentNameScopesList) {
|
|
2554
|
+
let current = namesScopeList;
|
|
2555
|
+
let scopeNames = namesScopeList?.scopePath ?? null;
|
|
2556
|
+
for (const frame of contentNameScopesList) {
|
|
2557
|
+
scopeNames = ScopeStack.push(scopeNames, frame.scopeNames);
|
|
2558
|
+
current = new _AttributedScopeStack(current, scopeNames, frame.encodedTokenAttributes);
|
|
2559
|
+
}
|
|
2560
|
+
return current;
|
|
2561
|
+
}
|
|
2562
|
+
static createRoot(scopeName, tokenAttributes) {
|
|
2563
|
+
return new _AttributedScopeStack(null, new ScopeStack(null, scopeName), tokenAttributes);
|
|
2564
|
+
}
|
|
2565
|
+
static createRootAndLookUpScopeName(scopeName, tokenAttributes, grammar) {
|
|
2566
|
+
const rawRootMetadata = grammar.getMetadataForScope(scopeName);
|
|
2567
|
+
const scopePath = new ScopeStack(null, scopeName);
|
|
2568
|
+
const rootStyle = grammar.themeProvider.themeMatch(scopePath);
|
|
2569
|
+
const resolvedTokenAttributes = _AttributedScopeStack.mergeAttributes(
|
|
2570
|
+
tokenAttributes,
|
|
2571
|
+
rawRootMetadata,
|
|
2572
|
+
rootStyle
|
|
2573
|
+
);
|
|
2574
|
+
return new _AttributedScopeStack(null, scopePath, resolvedTokenAttributes);
|
|
2575
|
+
}
|
|
2576
|
+
get scopeName() {
|
|
2577
|
+
return this.scopePath.scopeName;
|
|
2578
|
+
}
|
|
2579
|
+
toString() {
|
|
2580
|
+
return this.getScopeNames().join(" ");
|
|
2581
|
+
}
|
|
2582
|
+
equals(other) {
|
|
2583
|
+
return _AttributedScopeStack.equals(this, other);
|
|
2584
|
+
}
|
|
2585
|
+
static equals(a, b) {
|
|
2586
|
+
do {
|
|
2587
|
+
if (a === b) {
|
|
2588
|
+
return true;
|
|
2589
|
+
}
|
|
2590
|
+
if (!a && !b) {
|
|
2591
|
+
return true;
|
|
2592
|
+
}
|
|
2593
|
+
if (!a || !b) {
|
|
2594
|
+
return false;
|
|
2595
|
+
}
|
|
2596
|
+
if (a.scopeName !== b.scopeName || a.tokenAttributes !== b.tokenAttributes) {
|
|
2597
|
+
return false;
|
|
2598
|
+
}
|
|
2599
|
+
a = a.parent;
|
|
2600
|
+
b = b.parent;
|
|
2601
|
+
} while (true);
|
|
2602
|
+
}
|
|
2603
|
+
static mergeAttributes(existingTokenAttributes, basicScopeAttributes, styleAttributes) {
|
|
2604
|
+
let fontStyle = -1 /* NotSet */;
|
|
2605
|
+
let foreground = 0;
|
|
2606
|
+
let background = 0;
|
|
2607
|
+
if (styleAttributes !== null) {
|
|
2608
|
+
fontStyle = styleAttributes.fontStyle;
|
|
2609
|
+
foreground = styleAttributes.foregroundId;
|
|
2610
|
+
background = styleAttributes.backgroundId;
|
|
2611
|
+
}
|
|
2612
|
+
return EncodedTokenMetadata.set(
|
|
2613
|
+
existingTokenAttributes,
|
|
2614
|
+
basicScopeAttributes.languageId,
|
|
2615
|
+
basicScopeAttributes.tokenType,
|
|
2616
|
+
null,
|
|
2617
|
+
fontStyle,
|
|
2618
|
+
foreground,
|
|
2619
|
+
background
|
|
2620
|
+
);
|
|
2621
|
+
}
|
|
2622
|
+
pushAttributed(scopePath, grammar) {
|
|
2623
|
+
if (scopePath === null) {
|
|
2624
|
+
return this;
|
|
2625
|
+
}
|
|
2626
|
+
if (scopePath.indexOf(" ") === -1) {
|
|
2627
|
+
return _AttributedScopeStack._pushAttributed(this, scopePath, grammar);
|
|
2628
|
+
}
|
|
2629
|
+
const scopes = scopePath.split(/ /g);
|
|
2630
|
+
let result = this;
|
|
2631
|
+
for (const scope of scopes) {
|
|
2632
|
+
result = _AttributedScopeStack._pushAttributed(result, scope, grammar);
|
|
2633
|
+
}
|
|
2634
|
+
return result;
|
|
2635
|
+
}
|
|
2636
|
+
static _pushAttributed(target, scopeName, grammar) {
|
|
2637
|
+
const rawMetadata = grammar.getMetadataForScope(scopeName);
|
|
2638
|
+
const newPath = target.scopePath.push(scopeName);
|
|
2639
|
+
const scopeThemeMatchResult = grammar.themeProvider.themeMatch(newPath);
|
|
2640
|
+
const metadata = _AttributedScopeStack.mergeAttributes(
|
|
2641
|
+
target.tokenAttributes,
|
|
2642
|
+
rawMetadata,
|
|
2643
|
+
scopeThemeMatchResult
|
|
2644
|
+
);
|
|
2645
|
+
return new _AttributedScopeStack(target, newPath, metadata);
|
|
2646
|
+
}
|
|
2647
|
+
getScopeNames() {
|
|
2648
|
+
return this.scopePath.getSegments();
|
|
2649
|
+
}
|
|
2650
|
+
getExtensionIfDefined(base) {
|
|
2651
|
+
const result = [];
|
|
2652
|
+
let self = this;
|
|
2653
|
+
while (self && self !== base) {
|
|
2654
|
+
result.push({
|
|
2655
|
+
encodedTokenAttributes: self.tokenAttributes,
|
|
2656
|
+
scopeNames: self.scopePath.getExtensionIfDefined(self.parent?.scopePath ?? null)
|
|
2657
|
+
});
|
|
2658
|
+
self = self.parent;
|
|
2659
|
+
}
|
|
2660
|
+
return self === base ? result.reverse() : void 0;
|
|
2661
|
+
}
|
|
2662
|
+
};
|
|
2663
|
+
var StateStackImpl = class _StateStackImpl {
|
|
2664
|
+
/**
|
|
2665
|
+
* Invariant:
|
|
2666
|
+
* ```
|
|
2667
|
+
* if (contentNameScopesList !== nameScopesList && contentNameScopesList?.parent !== nameScopesList) {
|
|
2668
|
+
* throw new Error();
|
|
2669
|
+
* }
|
|
2670
|
+
* if (this.parent && !nameScopesList.extends(this.parent.contentNameScopesList)) {
|
|
2671
|
+
* throw new Error();
|
|
2672
|
+
* }
|
|
2673
|
+
* ```
|
|
2674
|
+
*/
|
|
2675
|
+
constructor(parent, ruleId, enterPos, anchorPos, beginRuleCapturedEOL, endRule, nameScopesList, contentNameScopesList) {
|
|
2676
|
+
this.parent = parent;
|
|
2677
|
+
this.ruleId = ruleId;
|
|
2678
|
+
this.beginRuleCapturedEOL = beginRuleCapturedEOL;
|
|
2679
|
+
this.endRule = endRule;
|
|
2680
|
+
this.nameScopesList = nameScopesList;
|
|
2681
|
+
this.contentNameScopesList = contentNameScopesList;
|
|
2682
|
+
this.depth = this.parent ? this.parent.depth + 1 : 1;
|
|
2683
|
+
this._enterPos = enterPos;
|
|
2684
|
+
this._anchorPos = anchorPos;
|
|
2685
|
+
}
|
|
2686
|
+
_stackElementBrand = void 0;
|
|
2687
|
+
// TODO remove me
|
|
2688
|
+
static NULL = new _StateStackImpl(
|
|
2689
|
+
null,
|
|
2690
|
+
0,
|
|
2691
|
+
0,
|
|
2692
|
+
0,
|
|
2693
|
+
false,
|
|
2694
|
+
null,
|
|
2695
|
+
null,
|
|
2696
|
+
null
|
|
2697
|
+
);
|
|
2698
|
+
/**
|
|
2699
|
+
* The position on the current line where this state was pushed.
|
|
2700
|
+
* This is relevant only while tokenizing a line, to detect endless loops.
|
|
2701
|
+
* Its value is meaningless across lines.
|
|
2702
|
+
*/
|
|
2703
|
+
_enterPos;
|
|
2704
|
+
/**
|
|
2705
|
+
* The captured anchor position when this stack element was pushed.
|
|
2706
|
+
* This is relevant only while tokenizing a line, to restore the anchor position when popping.
|
|
2707
|
+
* Its value is meaningless across lines.
|
|
2708
|
+
*/
|
|
2709
|
+
_anchorPos;
|
|
2710
|
+
/**
|
|
2711
|
+
* The depth of the stack.
|
|
2712
|
+
*/
|
|
2713
|
+
depth;
|
|
2714
|
+
equals(other) {
|
|
2715
|
+
if (other === null) {
|
|
2716
|
+
return false;
|
|
2717
|
+
}
|
|
2718
|
+
return _StateStackImpl._equals(this, other);
|
|
2719
|
+
}
|
|
2720
|
+
static _equals(a, b) {
|
|
2721
|
+
if (a === b) {
|
|
2722
|
+
return true;
|
|
2723
|
+
}
|
|
2724
|
+
if (!this._structuralEquals(a, b)) {
|
|
2725
|
+
return false;
|
|
2726
|
+
}
|
|
2727
|
+
return AttributedScopeStack.equals(a.contentNameScopesList, b.contentNameScopesList);
|
|
2728
|
+
}
|
|
2729
|
+
/**
|
|
2730
|
+
* A structural equals check. Does not take into account `scopes`.
|
|
2731
|
+
*/
|
|
2732
|
+
static _structuralEquals(a, b) {
|
|
2733
|
+
do {
|
|
2734
|
+
if (a === b) {
|
|
2735
|
+
return true;
|
|
2736
|
+
}
|
|
2737
|
+
if (!a && !b) {
|
|
2738
|
+
return true;
|
|
2739
|
+
}
|
|
2740
|
+
if (!a || !b) {
|
|
2741
|
+
return false;
|
|
2742
|
+
}
|
|
2743
|
+
if (a.depth !== b.depth || a.ruleId !== b.ruleId || a.endRule !== b.endRule) {
|
|
2744
|
+
return false;
|
|
2745
|
+
}
|
|
2746
|
+
a = a.parent;
|
|
2747
|
+
b = b.parent;
|
|
2748
|
+
} while (true);
|
|
2749
|
+
}
|
|
2750
|
+
clone() {
|
|
2751
|
+
return this;
|
|
2752
|
+
}
|
|
2753
|
+
static _reset(el) {
|
|
2754
|
+
while (el) {
|
|
2755
|
+
el._enterPos = -1;
|
|
2756
|
+
el._anchorPos = -1;
|
|
2757
|
+
el = el.parent;
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
reset() {
|
|
2761
|
+
_StateStackImpl._reset(this);
|
|
2762
|
+
}
|
|
2763
|
+
pop() {
|
|
2764
|
+
return this.parent;
|
|
2765
|
+
}
|
|
2766
|
+
safePop() {
|
|
2767
|
+
if (this.parent) {
|
|
2768
|
+
return this.parent;
|
|
2769
|
+
}
|
|
2770
|
+
return this;
|
|
2771
|
+
}
|
|
2772
|
+
push(ruleId, enterPos, anchorPos, beginRuleCapturedEOL, endRule, nameScopesList, contentNameScopesList) {
|
|
2773
|
+
return new _StateStackImpl(
|
|
2774
|
+
this,
|
|
2775
|
+
ruleId,
|
|
2776
|
+
enterPos,
|
|
2777
|
+
anchorPos,
|
|
2778
|
+
beginRuleCapturedEOL,
|
|
2779
|
+
endRule,
|
|
2780
|
+
nameScopesList,
|
|
2781
|
+
contentNameScopesList
|
|
2782
|
+
);
|
|
2783
|
+
}
|
|
2784
|
+
getEnterPos() {
|
|
2785
|
+
return this._enterPos;
|
|
2786
|
+
}
|
|
2787
|
+
getAnchorPos() {
|
|
2788
|
+
return this._anchorPos;
|
|
2789
|
+
}
|
|
2790
|
+
getRule(grammar) {
|
|
2791
|
+
return grammar.getRule(this.ruleId);
|
|
2792
|
+
}
|
|
2793
|
+
toString() {
|
|
2794
|
+
const r = [];
|
|
2795
|
+
this._writeString(r, 0);
|
|
2796
|
+
return "[" + r.join(",") + "]";
|
|
2797
|
+
}
|
|
2798
|
+
_writeString(res, outIndex) {
|
|
2799
|
+
if (this.parent) {
|
|
2800
|
+
outIndex = this.parent._writeString(res, outIndex);
|
|
2801
|
+
}
|
|
2802
|
+
res[outIndex++] = `(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`;
|
|
2803
|
+
return outIndex;
|
|
2804
|
+
}
|
|
2805
|
+
withContentNameScopesList(contentNameScopeStack) {
|
|
2806
|
+
if (this.contentNameScopesList === contentNameScopeStack) {
|
|
2807
|
+
return this;
|
|
2808
|
+
}
|
|
2809
|
+
return this.parent.push(
|
|
2810
|
+
this.ruleId,
|
|
2811
|
+
this._enterPos,
|
|
2812
|
+
this._anchorPos,
|
|
2813
|
+
this.beginRuleCapturedEOL,
|
|
2814
|
+
this.endRule,
|
|
2815
|
+
this.nameScopesList,
|
|
2816
|
+
contentNameScopeStack
|
|
2817
|
+
);
|
|
2818
|
+
}
|
|
2819
|
+
withEndRule(endRule) {
|
|
2820
|
+
if (this.endRule === endRule) {
|
|
2821
|
+
return this;
|
|
2822
|
+
}
|
|
2823
|
+
return new _StateStackImpl(
|
|
2824
|
+
this.parent,
|
|
2825
|
+
this.ruleId,
|
|
2826
|
+
this._enterPos,
|
|
2827
|
+
this._anchorPos,
|
|
2828
|
+
this.beginRuleCapturedEOL,
|
|
2829
|
+
endRule,
|
|
2830
|
+
this.nameScopesList,
|
|
2831
|
+
this.contentNameScopesList
|
|
2832
|
+
);
|
|
2833
|
+
}
|
|
2834
|
+
// Used to warn of endless loops
|
|
2835
|
+
hasSameRuleAs(other) {
|
|
2836
|
+
let el = this;
|
|
2837
|
+
while (el && el._enterPos === other._enterPos) {
|
|
2838
|
+
if (el.ruleId === other.ruleId) {
|
|
2839
|
+
return true;
|
|
2840
|
+
}
|
|
2841
|
+
el = el.parent;
|
|
2842
|
+
}
|
|
2843
|
+
return false;
|
|
2844
|
+
}
|
|
2845
|
+
toStateStackFrame() {
|
|
2846
|
+
return {
|
|
2847
|
+
ruleId: ruleIdToNumber(this.ruleId),
|
|
2848
|
+
beginRuleCapturedEOL: this.beginRuleCapturedEOL,
|
|
2849
|
+
endRule: this.endRule,
|
|
2850
|
+
nameScopesList: this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList ?? null) ?? [],
|
|
2851
|
+
contentNameScopesList: this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList) ?? []
|
|
2852
|
+
};
|
|
2853
|
+
}
|
|
2854
|
+
static pushFrame(self, frame) {
|
|
2855
|
+
const namesScopeList = AttributedScopeStack.fromExtension(self?.nameScopesList ?? null, frame.nameScopesList);
|
|
2856
|
+
return new _StateStackImpl(
|
|
2857
|
+
self,
|
|
2858
|
+
ruleIdFromNumber(frame.ruleId),
|
|
2859
|
+
frame.enterPos ?? -1,
|
|
2860
|
+
frame.anchorPos ?? -1,
|
|
2861
|
+
frame.beginRuleCapturedEOL,
|
|
2862
|
+
frame.endRule,
|
|
2863
|
+
namesScopeList,
|
|
2864
|
+
AttributedScopeStack.fromExtension(namesScopeList, frame.contentNameScopesList)
|
|
2865
|
+
);
|
|
2866
|
+
}
|
|
2867
|
+
};
|
|
2868
|
+
var BalancedBracketSelectors = class {
|
|
2869
|
+
balancedBracketScopes;
|
|
2870
|
+
unbalancedBracketScopes;
|
|
2871
|
+
allowAny = false;
|
|
2872
|
+
constructor(balancedBracketScopes, unbalancedBracketScopes) {
|
|
2873
|
+
this.balancedBracketScopes = balancedBracketScopes.flatMap(
|
|
2874
|
+
(selector) => {
|
|
2875
|
+
if (selector === "*") {
|
|
2876
|
+
this.allowAny = true;
|
|
2877
|
+
return [];
|
|
2878
|
+
}
|
|
2879
|
+
return createMatchers(selector, nameMatcher).map((m) => m.matcher);
|
|
2880
|
+
}
|
|
2881
|
+
);
|
|
2882
|
+
this.unbalancedBracketScopes = unbalancedBracketScopes.flatMap(
|
|
2883
|
+
(selector) => createMatchers(selector, nameMatcher).map((m) => m.matcher)
|
|
2884
|
+
);
|
|
2885
|
+
}
|
|
2886
|
+
get matchesAlways() {
|
|
2887
|
+
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
2888
|
+
}
|
|
2889
|
+
get matchesNever() {
|
|
2890
|
+
return this.balancedBracketScopes.length === 0 && !this.allowAny;
|
|
2891
|
+
}
|
|
2892
|
+
match(scopes) {
|
|
2893
|
+
for (const excluder of this.unbalancedBracketScopes) {
|
|
2894
|
+
if (excluder(scopes)) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
for (const includer of this.balancedBracketScopes) {
|
|
2899
|
+
if (includer(scopes)) {
|
|
2900
|
+
return true;
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
return this.allowAny;
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
var LineTokens = class {
|
|
2907
|
+
constructor(emitBinaryTokens, lineText, tokenTypeOverrides, balancedBracketSelectors) {
|
|
2908
|
+
this.balancedBracketSelectors = balancedBracketSelectors;
|
|
2909
|
+
this._emitBinaryTokens = emitBinaryTokens;
|
|
2910
|
+
this._tokenTypeOverrides = tokenTypeOverrides;
|
|
2911
|
+
if (false) {
|
|
2912
|
+
this._lineText = lineText;
|
|
2913
|
+
} else {
|
|
2914
|
+
this._lineText = null;
|
|
2915
|
+
}
|
|
2916
|
+
this._tokens = [];
|
|
2917
|
+
this._binaryTokens = [];
|
|
2918
|
+
this._lastTokenEndIndex = 0;
|
|
2919
|
+
}
|
|
2920
|
+
_emitBinaryTokens;
|
|
2921
|
+
/**
|
|
2922
|
+
* defined only if `false`.
|
|
2923
|
+
*/
|
|
2924
|
+
_lineText;
|
|
2925
|
+
/**
|
|
2926
|
+
* used only if `_emitBinaryTokens` is false.
|
|
2927
|
+
*/
|
|
2928
|
+
_tokens;
|
|
2929
|
+
/**
|
|
2930
|
+
* used only if `_emitBinaryTokens` is true.
|
|
2931
|
+
*/
|
|
2932
|
+
_binaryTokens;
|
|
2933
|
+
_lastTokenEndIndex;
|
|
2934
|
+
_tokenTypeOverrides;
|
|
2935
|
+
produce(stack, endIndex) {
|
|
2936
|
+
this.produceFromScopes(stack.contentNameScopesList, endIndex);
|
|
2937
|
+
}
|
|
2938
|
+
produceFromScopes(scopesList, endIndex) {
|
|
2939
|
+
if (this._lastTokenEndIndex >= endIndex) {
|
|
2940
|
+
return;
|
|
2941
|
+
}
|
|
2942
|
+
if (this._emitBinaryTokens) {
|
|
2943
|
+
let metadata = scopesList?.tokenAttributes ?? 0;
|
|
2944
|
+
let containsBalancedBrackets = false;
|
|
2945
|
+
if (this.balancedBracketSelectors?.matchesAlways) {
|
|
2946
|
+
containsBalancedBrackets = true;
|
|
2947
|
+
}
|
|
2948
|
+
if (this._tokenTypeOverrides.length > 0 || this.balancedBracketSelectors && !this.balancedBracketSelectors.matchesAlways && !this.balancedBracketSelectors.matchesNever) {
|
|
2949
|
+
const scopes2 = scopesList?.getScopeNames() ?? [];
|
|
2950
|
+
for (const tokenType of this._tokenTypeOverrides) {
|
|
2951
|
+
if (tokenType.matcher(scopes2)) {
|
|
2952
|
+
metadata = EncodedTokenMetadata.set(
|
|
2953
|
+
metadata,
|
|
2954
|
+
0,
|
|
2955
|
+
toOptionalTokenType(tokenType.type),
|
|
2956
|
+
null,
|
|
2957
|
+
-1 /* NotSet */,
|
|
2958
|
+
0,
|
|
2959
|
+
0
|
|
2960
|
+
);
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
if (this.balancedBracketSelectors) {
|
|
2964
|
+
containsBalancedBrackets = this.balancedBracketSelectors.match(scopes2);
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
if (containsBalancedBrackets) {
|
|
2968
|
+
metadata = EncodedTokenMetadata.set(
|
|
2969
|
+
metadata,
|
|
2970
|
+
0,
|
|
2971
|
+
8 /* NotSet */,
|
|
2972
|
+
containsBalancedBrackets,
|
|
2973
|
+
-1 /* NotSet */,
|
|
2974
|
+
0,
|
|
2975
|
+
0
|
|
2976
|
+
);
|
|
2977
|
+
}
|
|
2978
|
+
if (this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 1] === metadata) {
|
|
2979
|
+
this._lastTokenEndIndex = endIndex;
|
|
2980
|
+
return;
|
|
2981
|
+
}
|
|
2982
|
+
this._binaryTokens.push(this._lastTokenEndIndex);
|
|
2983
|
+
this._binaryTokens.push(metadata);
|
|
2984
|
+
this._lastTokenEndIndex = endIndex;
|
|
2985
|
+
return;
|
|
2986
|
+
}
|
|
2987
|
+
const scopes = scopesList?.getScopeNames() ?? [];
|
|
2988
|
+
this._tokens.push({
|
|
2989
|
+
startIndex: this._lastTokenEndIndex,
|
|
2990
|
+
endIndex,
|
|
2991
|
+
// value: lineText.substring(lastTokenEndIndex, endIndex),
|
|
2992
|
+
scopes
|
|
2993
|
+
});
|
|
2994
|
+
this._lastTokenEndIndex = endIndex;
|
|
2995
|
+
}
|
|
2996
|
+
getResult(stack, lineLength) {
|
|
2997
|
+
if (this._tokens.length > 0 && this._tokens[this._tokens.length - 1].startIndex === lineLength - 1) {
|
|
2998
|
+
this._tokens.pop();
|
|
2999
|
+
}
|
|
3000
|
+
if (this._tokens.length === 0) {
|
|
3001
|
+
this._lastTokenEndIndex = -1;
|
|
3002
|
+
this.produce(stack, lineLength);
|
|
3003
|
+
this._tokens[this._tokens.length - 1].startIndex = 0;
|
|
3004
|
+
}
|
|
3005
|
+
return this._tokens;
|
|
3006
|
+
}
|
|
3007
|
+
getBinaryResult(stack, lineLength) {
|
|
3008
|
+
if (this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 2] === lineLength - 1) {
|
|
3009
|
+
this._binaryTokens.pop();
|
|
3010
|
+
this._binaryTokens.pop();
|
|
3011
|
+
}
|
|
3012
|
+
if (this._binaryTokens.length === 0) {
|
|
3013
|
+
this._lastTokenEndIndex = -1;
|
|
3014
|
+
this.produce(stack, lineLength);
|
|
3015
|
+
this._binaryTokens[this._binaryTokens.length - 2] = 0;
|
|
3016
|
+
}
|
|
3017
|
+
const result = new Uint32Array(this._binaryTokens.length);
|
|
3018
|
+
for (let i = 0, len = this._binaryTokens.length; i < len; i++) {
|
|
3019
|
+
result[i] = this._binaryTokens[i];
|
|
3020
|
+
}
|
|
3021
|
+
return result;
|
|
3022
|
+
}
|
|
3023
|
+
};
|
|
3024
|
+
|
|
3025
|
+
// src/registry.ts
|
|
3026
|
+
var SyncRegistry = class {
|
|
3027
|
+
constructor(theme, _onigLib) {
|
|
3028
|
+
this._onigLib = _onigLib;
|
|
3029
|
+
this._theme = theme;
|
|
3030
|
+
}
|
|
3031
|
+
_grammars = /* @__PURE__ */ new Map();
|
|
3032
|
+
_rawGrammars = /* @__PURE__ */ new Map();
|
|
3033
|
+
_injectionGrammars = /* @__PURE__ */ new Map();
|
|
3034
|
+
_theme;
|
|
3035
|
+
dispose() {
|
|
3036
|
+
for (const grammar of this._grammars.values()) {
|
|
3037
|
+
grammar.dispose();
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
setTheme(theme) {
|
|
3041
|
+
this._theme = theme;
|
|
3042
|
+
}
|
|
3043
|
+
getColorMap() {
|
|
3044
|
+
return this._theme.getColorMap();
|
|
3045
|
+
}
|
|
3046
|
+
/**
|
|
3047
|
+
* Add `grammar` to registry and return a list of referenced scope names
|
|
3048
|
+
*/
|
|
3049
|
+
addGrammar(grammar, injectionScopeNames) {
|
|
3050
|
+
this._rawGrammars.set(grammar.scopeName, grammar);
|
|
3051
|
+
if (injectionScopeNames) {
|
|
3052
|
+
this._injectionGrammars.set(grammar.scopeName, injectionScopeNames);
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
/**
|
|
3056
|
+
* Lookup a raw grammar.
|
|
3057
|
+
*/
|
|
3058
|
+
lookup(scopeName) {
|
|
3059
|
+
return this._rawGrammars.get(scopeName);
|
|
3060
|
+
}
|
|
3061
|
+
/**
|
|
3062
|
+
* Returns the injections for the given grammar
|
|
3063
|
+
*/
|
|
3064
|
+
injections(targetScope) {
|
|
3065
|
+
return this._injectionGrammars.get(targetScope);
|
|
3066
|
+
}
|
|
3067
|
+
/**
|
|
3068
|
+
* Get the default theme settings
|
|
3069
|
+
*/
|
|
3070
|
+
getDefaults() {
|
|
3071
|
+
return this._theme.getDefaults();
|
|
3072
|
+
}
|
|
3073
|
+
/**
|
|
3074
|
+
* Match a scope in the theme.
|
|
3075
|
+
*/
|
|
3076
|
+
themeMatch(scopePath) {
|
|
3077
|
+
return this._theme.match(scopePath);
|
|
3078
|
+
}
|
|
3079
|
+
/**
|
|
3080
|
+
* Lookup a grammar.
|
|
3081
|
+
*/
|
|
3082
|
+
grammarForScopeName(scopeName, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors) {
|
|
3083
|
+
if (!this._grammars.has(scopeName)) {
|
|
3084
|
+
let rawGrammar = this._rawGrammars.get(scopeName);
|
|
3085
|
+
if (!rawGrammar) {
|
|
3086
|
+
return null;
|
|
3087
|
+
}
|
|
3088
|
+
this._grammars.set(scopeName, createGrammar(
|
|
3089
|
+
scopeName,
|
|
3090
|
+
rawGrammar,
|
|
3091
|
+
initialLanguage,
|
|
3092
|
+
embeddedLanguages,
|
|
3093
|
+
tokenTypes,
|
|
3094
|
+
balancedBracketSelectors,
|
|
3095
|
+
this,
|
|
3096
|
+
this._onigLib
|
|
3097
|
+
));
|
|
3098
|
+
}
|
|
3099
|
+
return this._grammars.get(scopeName);
|
|
3100
|
+
}
|
|
3101
|
+
};
|
|
3102
|
+
|
|
3103
|
+
// src/index.ts
|
|
3104
|
+
var Registry = class {
|
|
3105
|
+
_options;
|
|
3106
|
+
_syncRegistry;
|
|
3107
|
+
_ensureGrammarCache;
|
|
3108
|
+
constructor(options) {
|
|
3109
|
+
this._options = options;
|
|
3110
|
+
this._syncRegistry = new SyncRegistry(
|
|
3111
|
+
Theme.createFromRawTheme(options.theme, options.colorMap),
|
|
3112
|
+
options.onigLib
|
|
3113
|
+
);
|
|
3114
|
+
this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
3115
|
+
}
|
|
3116
|
+
dispose() {
|
|
3117
|
+
this._syncRegistry.dispose();
|
|
3118
|
+
}
|
|
3119
|
+
/**
|
|
3120
|
+
* Change the theme. Once called, no previous `ruleStack` should be used anymore.
|
|
3121
|
+
*/
|
|
3122
|
+
setTheme(theme, colorMap) {
|
|
3123
|
+
this._syncRegistry.setTheme(Theme.createFromRawTheme(theme, colorMap));
|
|
3124
|
+
}
|
|
3125
|
+
/**
|
|
3126
|
+
* Returns a lookup array for color ids.
|
|
3127
|
+
*/
|
|
3128
|
+
getColorMap() {
|
|
3129
|
+
return this._syncRegistry.getColorMap();
|
|
3130
|
+
}
|
|
3131
|
+
/**
|
|
3132
|
+
* Load the grammar for `scopeName` and all referenced included grammars asynchronously.
|
|
3133
|
+
* Please do not use language id 0.
|
|
3134
|
+
*/
|
|
3135
|
+
loadGrammarWithEmbeddedLanguages(initialScopeName, initialLanguage, embeddedLanguages) {
|
|
3136
|
+
return this.loadGrammarWithConfiguration(initialScopeName, initialLanguage, { embeddedLanguages });
|
|
3137
|
+
}
|
|
3138
|
+
/**
|
|
3139
|
+
* Load the grammar for `scopeName` and all referenced included grammars asynchronously.
|
|
3140
|
+
* Please do not use language id 0.
|
|
3141
|
+
*/
|
|
3142
|
+
loadGrammarWithConfiguration(initialScopeName, initialLanguage, configuration) {
|
|
3143
|
+
return this._loadGrammar(
|
|
3144
|
+
initialScopeName,
|
|
3145
|
+
initialLanguage,
|
|
3146
|
+
configuration.embeddedLanguages,
|
|
3147
|
+
configuration.tokenTypes,
|
|
3148
|
+
new BalancedBracketSelectors(
|
|
3149
|
+
configuration.balancedBracketSelectors || [],
|
|
3150
|
+
configuration.unbalancedBracketSelectors || []
|
|
3151
|
+
)
|
|
3152
|
+
);
|
|
3153
|
+
}
|
|
3154
|
+
/**
|
|
3155
|
+
* Load the grammar for `scopeName` and all referenced included grammars asynchronously.
|
|
3156
|
+
*/
|
|
3157
|
+
loadGrammar(initialScopeName) {
|
|
3158
|
+
return this._loadGrammar(initialScopeName, 0, null, null, null);
|
|
3159
|
+
}
|
|
3160
|
+
_loadGrammar(initialScopeName, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors) {
|
|
3161
|
+
const dependencyProcessor = new ScopeDependencyProcessor(this._syncRegistry, initialScopeName);
|
|
3162
|
+
while (dependencyProcessor.Q.length > 0) {
|
|
3163
|
+
dependencyProcessor.Q.map((request) => this._loadSingleGrammar(request.scopeName));
|
|
3164
|
+
dependencyProcessor.processQueue();
|
|
3165
|
+
}
|
|
3166
|
+
return this._grammarForScopeName(
|
|
3167
|
+
initialScopeName,
|
|
3168
|
+
initialLanguage,
|
|
3169
|
+
embeddedLanguages,
|
|
3170
|
+
tokenTypes,
|
|
3171
|
+
balancedBracketSelectors
|
|
3172
|
+
);
|
|
3173
|
+
}
|
|
3174
|
+
_loadSingleGrammar(scopeName) {
|
|
3175
|
+
if (!this._ensureGrammarCache.has(scopeName)) {
|
|
3176
|
+
this._doLoadSingleGrammar(scopeName);
|
|
3177
|
+
this._ensureGrammarCache.set(scopeName, true);
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
_doLoadSingleGrammar(scopeName) {
|
|
3181
|
+
const grammar = this._options.loadGrammar(scopeName);
|
|
3182
|
+
if (grammar) {
|
|
3183
|
+
const injections = typeof this._options.getInjections === "function" ? this._options.getInjections(scopeName) : void 0;
|
|
3184
|
+
this._syncRegistry.addGrammar(grammar, injections);
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
/**
|
|
3188
|
+
* Adds a rawGrammar.
|
|
3189
|
+
*/
|
|
3190
|
+
addGrammar(rawGrammar, injections = [], initialLanguage = 0, embeddedLanguages = null) {
|
|
3191
|
+
this._syncRegistry.addGrammar(rawGrammar, injections);
|
|
3192
|
+
return this._grammarForScopeName(rawGrammar.scopeName, initialLanguage, embeddedLanguages);
|
|
3193
|
+
}
|
|
3194
|
+
/**
|
|
3195
|
+
* Get the grammar for `scopeName`. The grammar must first be created via `loadGrammar` or `addGrammar`.
|
|
3196
|
+
*/
|
|
3197
|
+
_grammarForScopeName(scopeName, initialLanguage = 0, embeddedLanguages = null, tokenTypes = null, balancedBracketSelectors = null) {
|
|
3198
|
+
return this._syncRegistry.grammarForScopeName(
|
|
3199
|
+
scopeName,
|
|
3200
|
+
initialLanguage,
|
|
3201
|
+
embeddedLanguages,
|
|
3202
|
+
tokenTypes,
|
|
3203
|
+
balancedBracketSelectors
|
|
3204
|
+
);
|
|
3205
|
+
}
|
|
3206
|
+
};
|
|
3207
|
+
var INITIAL = StateStackImpl.NULL;
|
|
3208
|
+
export {
|
|
3209
|
+
EncodedTokenMetadata,
|
|
3210
|
+
FindOption,
|
|
3211
|
+
FontStyle,
|
|
3212
|
+
INITIAL,
|
|
3213
|
+
Registry,
|
|
3214
|
+
Theme,
|
|
3215
|
+
disposeOnigString
|
|
3216
|
+
};
|