@alivault/pico 0.14.1 → 0.16.1
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/.output/public/_shell.html +19 -0
- package/.output/public/assets/PatchDiff-SN-mXa3p.js +343 -0
- package/.output/public/assets/{angular-html-BZNntD0J.js → angular-html-B9LEBPKs.js} +1 -1
- package/.output/public/assets/{angular-ts-SQQMYL2C.js → angular-ts-CD6u-Ij9.js} +1 -1
- package/.output/public/assets/{apl-D5V6uPDr.js → apl-VeDHIFIx.js} +1 -1
- package/.output/public/assets/app-shell-common-0xa28gDm.js +1 -0
- package/.output/public/assets/{astro-DeXKSaFP.js → astro-Dd8L1z6M.js} +1 -1
- package/.output/public/assets/{blade-Bu5re0Vg.js → blade-BNxrbiva.js} +1 -1
- package/.output/public/assets/{bsl-B1qbqNES.js → bsl-B0twaj2j.js} +1 -1
- package/.output/public/assets/{cairo-BDj8wWhy.js → cairo-DASKFAWI.js} +1 -1
- package/.output/public/assets/{cobol-nvZDS9LT.js → cobol-D_qN8j4K.js} +1 -1
- package/.output/public/assets/{coffee-BKLOTq4e.js → coffee-60nIQewd.js} +1 -1
- package/.output/public/assets/{cpp-D6g1DVNt.js → cpp-e1j1tDCV.js} +1 -1
- package/.output/public/assets/{crystal-DfoZI57w.js → crystal-brDfRjQ_.js} +1 -1
- package/.output/public/assets/{edge-DwocGnOF.js → edge-DadfRK3Q.js} +1 -1
- package/.output/public/assets/{elixir-Dtbfds1r.js → elixir-CsoHPmz3.js} +1 -1
- package/.output/public/assets/{elm-CpPtm471.js → elm-BLTa0sZG.js} +1 -1
- package/.output/public/assets/{erb--z3IM9Cb.js → erb-DIR2QRkp.js} +1 -1
- package/.output/public/assets/{erlang-Bc4hQuqa.js → erlang-DnbJbitJ.js} +1 -1
- package/.output/public/assets/{fortran-fixed-form-B02FOYI-.js → fortran-fixed-form-Bse4XUyD.js} +1 -1
- package/.output/public/assets/{fsharp-DhdR18vN.js → fsharp-Dy8OnZ0O.js} +1 -1
- package/.output/public/assets/{gdresource-DgnrMPIx.js → gdresource-BD_7yRHA.js} +1 -1
- package/.output/public/assets/{git-commit-DGJi7qBD.js → git-commit-CIMjlyHf.js} +1 -1
- package/.output/public/assets/{git-rebase-Ce47xoa6.js → git-rebase-DV2DyQK7.js} +1 -1
- package/.output/public/assets/{glimmer-js-C0BuzxQC.js → glimmer-js-DVG5pFvd.js} +1 -1
- package/.output/public/assets/{glimmer-ts-irOZ-cAQ.js → glimmer-ts-BeWaLARz.js} +1 -1
- package/.output/public/assets/{glsl-JAhLUe0P.js → glsl-BrOWUUEh.js} +1 -1
- package/.output/public/assets/{graphql-D2ba3BkR.js → graphql-B_3o81z5.js} +1 -1
- package/.output/public/assets/{hack-CgzUpY8l.js → hack-BW-0PxQy.js} +1 -1
- package/.output/public/assets/{haml-C-oIZcDo.js → haml-DnNXiHAO.js} +1 -1
- package/.output/public/assets/{handlebars-CbP-Mhzf.js → handlebars-CftcPtku.js} +1 -1
- package/.output/public/assets/{html-ddqpqPg0.js → html-D5IqfVuz.js} +1 -1
- package/.output/public/assets/{html-derivative-DWGxf_At.js → html-derivative-QNqmMkaY.js} +1 -1
- package/.output/public/assets/{http-Bg1nG1nG.js → http-Dd7eRKUa.js} +1 -1
- package/.output/public/assets/{hurl-zm47Pi1n.js → hurl-kBs5Ibg1.js} +1 -1
- package/.output/public/assets/{hxml-adC65L_J.js → hxml-CGx66ebi.js} +1 -1
- package/.output/public/assets/index-C-mxWGZ5.css +2 -0
- package/.output/public/assets/index-FOqZaR4L.js +48 -0
- package/.output/public/assets/{jinja-Bnj4awH5.js → jinja-BPoCSjyd.js} +1 -1
- package/.output/public/assets/{jison-CuCNs9Q3.js → jison-WHPVy3Jl.js} +1 -1
- package/.output/public/assets/{julia-DNYHzXlE.js → julia-BaKiQMPf.js} +1 -1
- package/.output/public/assets/{just-BlWkkmf2.js → just-BKMc7tVT.js} +1 -1
- package/.output/public/assets/{latex-DqPzjMIt.js → latex-Cczzu1HI.js} +1 -1
- package/.output/public/assets/{liquid-BURJK16h.js → liquid-DrJZrMEf.js} +1 -1
- package/.output/public/assets/{lua-31hdJClp.js → lua-CFIwCMnP.js} +1 -1
- package/.output/public/assets/{marko-C2ZcdSLh.js → marko-BreagErn.js} +1 -1
- package/.output/public/assets/{mdc-N1ii9pk5.js → mdc-CBcMHZUq.js} +1 -1
- package/.output/public/assets/{nextflow-JEyYUlIq.js → nextflow-CZbrTmS2.js} +1 -1
- package/.output/public/assets/{nginx-BuomO0W8.js → nginx-CMOi8dTH.js} +1 -1
- package/.output/public/assets/{nim-hKoEPsYL.js → nim-DbDZ9Wa-.js} +1 -1
- package/.output/public/assets/{perl-CAGVW6Ra.js → perl-DyRCGnKu.js} +1 -1
- package/.output/public/assets/{php-BycclmzS.js → php-Ciarv7b4.js} +1 -1
- package/.output/public/assets/plus-B1rJPgNv.js +1 -0
- package/.output/public/assets/preload-helper-Csz9R64u.js +5 -0
- package/.output/public/assets/{pug-4maJHz9G.js → pug-CVCqbfEm.js} +1 -1
- package/.output/public/assets/{qml-JLIQfzyb.js → qml-DechmdFA.js} +1 -1
- package/.output/public/assets/query-keys-C9jMaRnO.js +1 -0
- package/.output/public/assets/{razor-P8rbooCh.js → razor-bgzHke67.js} +1 -1
- package/.output/public/assets/right-sidebar-CWvXcZzC.js +1831 -0
- package/.output/public/assets/routes-CXlaorp4.js +23 -0
- package/.output/public/assets/{rst-C6GHyL-N.js → rst-Ce6_XwFd.js} +1 -1
- package/.output/public/assets/{ruby-Cl8PVkbY.js → ruby-BtLKlt8E.js} +1 -1
- package/.output/public/assets/{sas-CXoVwlZN.js → sas-Bco5tnse.js} +1 -1
- package/.output/public/assets/{scss-DNczJ95n.js → scss-KPCA05M8.js} +1 -1
- package/.output/public/assets/{shaderlab-DZ3Lsiak.js → shaderlab-uUHiM5Mm.js} +1 -1
- package/.output/public/assets/{shellsession-COm1V40U.js → shellsession-BnUZVYXU.js} +1 -1
- package/.output/public/assets/{soy-DwewhJ_3.js → soy-Dsrg4bVI.js} +1 -1
- package/.output/public/assets/{sparql-B9c85a_o.js → sparql-D5zsvcbT.js} +1 -1
- package/.output/public/assets/{stata-Bl--TAbZ.js → stata-BdK5CFUf.js} +1 -1
- package/.output/public/assets/{surrealql-BW79EE-U.js → surrealql-Blm5wp47.js} +1 -1
- package/.output/public/assets/{svelte-ziMErdPi.js → svelte-DZrj_gMz.js} +1 -1
- package/.output/public/assets/{templ-C_9I6ncv.js → templ-CJ7sDrtu.js} +1 -1
- package/.output/public/assets/terminal-panel-YGR6v-ZH.js +1 -0
- package/.output/public/assets/{tex-D8LVuLf5.js → tex-CvSRdXZA.js} +1 -1
- package/.output/public/assets/{ts-tags-DKuFCGsc.js → ts-tags-DgGFCSef.js} +1 -1
- package/.output/public/assets/{twig-Bs1kcsO6.js → twig-D8_PS89g.js} +1 -1
- package/.output/public/assets/{vue-Dnf0y5RU.js → vue-KvGEuYod.js} +1 -1
- package/.output/public/assets/{vue-html-CRtKS76J.js → vue-html-qAt9D-IF.js} +1 -1
- package/.output/public/assets/{vue-vine-BxjPqU7T.js → vue-vine-j1nOqxMu.js} +1 -1
- package/.output/public/assets/{xml-eU7M3iZJ.js → xml-BrFkMwfd.js} +1 -1
- package/.output/public/assets/{xsl-DSqe4nTO.js → xsl-OmCo2PyZ.js} +1 -1
- package/.output/public/index.html +19 -0
- package/README.md +171 -46
- package/bin/native-runtime.mjs +265 -0
- package/bin/pico.mjs +289 -222
- package/package.json +34 -31
- package/.output/nitro.json +0 -17
- package/.output/public/assets/index-DBVxXDtw.js +0 -54
- package/.output/public/assets/routes-yUxD2q-l.js +0 -2194
- package/.output/public/assets/styles-CUVz7jV9.css +0 -2
- package/.output/server/__23tanstack-start-plugin-adapters-y_fshQDY.mjs +0 -5
- package/.output/server/_chunks/ssr-renderer.mjs +0 -15
- package/.output/server/_libs/@base-ui/react+[...].mjs +0 -14512
- package/.output/server/_libs/@dnd-kit/core+[...].mjs +0 -2748
- package/.output/server/_libs/@pierre/diffs+[...].mjs +0 -19314
- package/.output/server/_libs/@pierre/trees+[...].mjs +0 -9236
- package/.output/server/_libs/@radix-ui/react-dialog+[...].mjs +0 -1789
- package/.output/server/_libs/@radix-ui/react-primitive+[...].mjs +0 -136
- package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +0 -196
- package/.output/server/_libs/@tanstack/hotkeys+[...].mjs +0 -1607
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +0 -13950
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +0 -90
- package/.output/server/_libs/bail.mjs +0 -13
- package/.output/server/_libs/character-entities.mjs +0 -2135
- package/.output/server/_libs/class-variance-authority+clsx.mjs +0 -69
- package/.output/server/_libs/cmdk.mjs +0 -473
- package/.output/server/_libs/crossws.mjs +0 -2929
- package/.output/server/_libs/decode-named-character-reference+[...].mjs +0 -19
- package/.output/server/_libs/devlop.mjs +0 -5
- package/.output/server/_libs/diff.mjs +0 -732
- package/.output/server/_libs/dnd-kit__accessibility.mjs +0 -46
- package/.output/server/_libs/dnd-kit__sortable.mjs +0 -400
- package/.output/server/_libs/entities.mjs +0 -372
- package/.output/server/_libs/escape-string-regexp.mjs +0 -7
- package/.output/server/_libs/estree-util-is-identifier-name.mjs +0 -20
- package/.output/server/_libs/extend.mjs +0 -75
- package/.output/server/_libs/h3+rou3+srvx.mjs +0 -1216
- package/.output/server/_libs/hast-util-from-parse5+[...].mjs +0 -741
- package/.output/server/_libs/hast-util-raw+[...].mjs +0 -7897
- package/.output/server/_libs/hast-util-sanitize.mjs +0 -780
- package/.output/server/_libs/hast-util-to-jsx-runtime+[...].mjs +0 -1165
- package/.output/server/_libs/hookable.mjs +0 -41
- package/.output/server/_libs/html-url-attributes.mjs +0 -44
- package/.output/server/_libs/is-plain-obj.mjs +0 -8
- package/.output/server/_libs/longest-streak.mjs +0 -29
- package/.output/server/_libs/lucide-react.mjs +0 -788
- package/.output/server/_libs/markdown-table.mjs +0 -289
- package/.output/server/_libs/mdast-util-find-and-replace.mjs +0 -198
- package/.output/server/_libs/mdast-util-from-markdown+[...].mjs +0 -8409
- package/.output/server/_libs/mdast-util-gfm+[...].mjs +0 -2062
- package/.output/server/_libs/mdast-util-to-hast+[...].mjs +0 -1771
- package/.output/server/_libs/micromark-extension-gfm+[...].mjs +0 -2234
- package/.output/server/_libs/next-themes.mjs +0 -124
- package/.output/server/_libs/pierre__theme.mjs +0 -10
- package/.output/server/_libs/radix-ui__primitive.mjs +0 -9
- package/.output/server/_libs/radix-ui__react-compose-refs.mjs +0 -30
- package/.output/server/_libs/radix-ui__react-context.mjs +0 -88
- package/.output/server/_libs/react-markdown+[...].mjs +0 -2316
- package/.output/server/_libs/rehype-raw.mjs +0 -37
- package/.output/server/_libs/rehype-sanitize.mjs +0 -27
- package/.output/server/_libs/remark-gfm.mjs +0 -34
- package/.output/server/_libs/shiki.mjs +0 -16
- package/.output/server/_libs/shikijs__langs.mjs +0 -1355
- package/.output/server/_libs/shikijs__themes.mjs +0 -262
- package/.output/server/_libs/sonner.mjs +0 -908
- package/.output/server/_libs/tailwind-merge.mjs +0 -1962
- package/.output/server/_libs/tanstack__history.mjs +0 -342
- package/.output/server/_libs/tanstack__pacer.mjs +0 -1111
- package/.output/server/_libs/tanstack__query-core.mjs +0 -2202
- package/.output/server/_libs/tanstack__react-hotkeys.mjs +0 -152
- package/.output/server/_libs/tanstack__react-query.mjs +0 -180
- package/.output/server/_libs/tanstack__react-store.mjs +0 -39
- package/.output/server/_libs/tanstack__router-core.mjs +0 -6
- package/.output/server/_libs/tanstack__store.mjs +0 -28
- package/.output/server/_libs/ufo.mjs +0 -64
- package/.output/server/_libs/unctx.mjs +0 -82
- package/.output/server/_libs/ungap__structured-clone.mjs +0 -197
- package/.output/server/_libs/vaul.mjs +0 -1250
- package/.output/server/_libs/xterm__addon-fit.mjs +0 -44
- package/.output/server/_libs/xterm__xterm.mjs +0 -10234
- package/.output/server/_libs/zod.mjs +0 -3341
- package/.output/server/_routes/api/terminal/[id]/ws.mjs +0 -8874
- package/.output/server/_runtime.mjs +0 -35
- package/.output/server/_ssr/router-CN4JMm2A.mjs +0 -9733
- package/.output/server/_ssr/routes-BsQ26pbY.mjs +0 -29306
- package/.output/server/_ssr/routes-DbjuMLFI.mjs +0 -3400
- package/.output/server/_ssr/ssr.mjs +0 -5176
- package/.output/server/_ssr/start-jIczsXlR.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-Bs4g_j1_.mjs +0 -77
- package/.output/server/index.mjs +0 -2670
- package/.output/server/node_modules/node-pty/LICENSE +0 -69
- package/.output/server/node_modules/node-pty/README.md +0 -165
- package/.output/server/node_modules/node-pty/binding.gyp +0 -111
- package/.output/server/node_modules/node-pty/build/Makefile +0 -369
- package/.output/server/node_modules/node-pty/build/Release/pty.node +0 -0
- package/.output/server/node_modules/node-pty/build/binding.Makefile +0 -6
- package/.output/server/node_modules/node-pty/build/pty.target.mk +0 -168
- package/.output/server/node_modules/node-pty/deps/.editorconfig +0 -2
- package/.output/server/node_modules/node-pty/deps/winpty/.drone.yml +0 -17
- package/.output/server/node_modules/node-pty/deps/winpty/.gitattributes +0 -19
- package/.output/server/node_modules/node-pty/deps/winpty/LICENSE +0 -21
- package/.output/server/node_modules/node-pty/deps/winpty/Makefile +0 -166
- package/.output/server/node_modules/node-pty/deps/winpty/README.md +0 -151
- package/.output/server/node_modules/node-pty/deps/winpty/RELEASES.md +0 -280
- package/.output/server/node_modules/node-pty/deps/winpty/VERSION.txt +0 -1
- package/.output/server/node_modules/node-pty/deps/winpty/configure +0 -167
- package/.output/server/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +0 -90
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +0 -53
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +0 -72
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +0 -117
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +0 -113
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DebugClient.py +0 -42
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DebugServer.py +0 -63
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DumpLines.py +0 -5
- package/.output/server/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +0 -46
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +0 -528
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +0 -633
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +0 -630
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +0 -630
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +0 -630
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +0 -630
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +0 -16
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +0 -4
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +0 -144
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +0 -100
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FormatChar.h +0 -21
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +0 -62
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetCh.cc +0 -20
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +0 -41
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetFont.cc +0 -261
- package/.output/server/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
- package/.output/server/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +0 -87
- package/.output/server/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +0 -90
- package/.output/server/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +0 -34
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Notes.txt +0 -219
- package/.output/server/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +0 -27
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +0 -101
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +0 -671
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +0 -151
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +0 -45
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +0 -32
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +0 -10
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetFont.cc +0 -145
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +0 -36
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +0 -12
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +0 -40
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Spew.py +0 -5
- package/.output/server/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +0 -172
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +0 -102
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +0 -246
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +0 -130
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +0 -89
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +0 -46
- package/.output/server/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +0 -122
- package/.output/server/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +0 -56
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +0 -52
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +0 -57
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +0 -30
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +0 -26
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +0 -19
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +0 -46
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +0 -70
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +0 -78
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +0 -44
- package/.output/server/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +0 -27
- package/.output/server/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +0 -106
- package/.output/server/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
- package/.output/server/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
- package/.output/server/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
- package/.output/server/node_modules/node-pty/deps/winpty/misc/font-notes.txt +0 -300
- package/.output/server/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +0 -201
- package/.output/server/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
- package/.output/server/node_modules/node-pty/deps/winpty/ship/common_ship.py +0 -53
- package/.output/server/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +0 -165
- package/.output/server/node_modules/node-pty/deps/winpty/ship/ship.py +0 -108
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +0 -613
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Agent.h +0 -103
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +0 -84
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +0 -632
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +0 -852
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +0 -109
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +0 -121
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +0 -36
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +0 -152
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +0 -41
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Coord.h +0 -87
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +0 -239
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +0 -32
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +0 -422
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +0 -30
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +0 -99
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +0 -47
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +0 -246
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +0 -114
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +0 -71
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +0 -68
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +0 -378
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +0 -125
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +0 -699
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +0 -103
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +0 -75
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +0 -143
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +0 -535
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +0 -69
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +0 -157
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +0 -189
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +0 -107
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +0 -67
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +0 -193
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +0 -99
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/main.cc +0 -114
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +0 -61
- package/.output/server/node_modules/node-pty/deps/winpty/src/configurations.gypi +0 -60
- package/.output/server/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +0 -117
- package/.output/server/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +0 -41
- package/.output/server/node_modules/node-pty/deps/winpty/src/include/winpty.h +0 -242
- package/.output/server/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +0 -131
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +0 -75
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +0 -54
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +0 -72
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +0 -46
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +0 -970
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +0 -38
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +0 -122
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +0 -73
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +0 -103
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +0 -102
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +0 -187
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +0 -38
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +0 -138
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +0 -55
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +0 -54
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +0 -63
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +0 -36
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +0 -45
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +0 -43
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +0 -227
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +0 -114
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +0 -55
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +0 -80
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +0 -63
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +0 -45
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +0 -460
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +0 -104
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +0 -252
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +0 -29
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +0 -55
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +0 -64
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +0 -57
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +0 -43
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +0 -42
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +0 -27
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +0 -99
- package/.output/server/node_modules/node-pty/deps/winpty/src/subdir.mk +0 -5
- package/.output/server/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +0 -28
- package/.output/server/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +0 -158
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +0 -114
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +0 -56
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +0 -80
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +0 -53
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +0 -86
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +0 -31
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +0 -70
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +0 -42
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +0 -729
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +0 -41
- package/.output/server/node_modules/node-pty/deps/winpty/src/winpty.gyp +0 -234
- package/.output/server/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
- package/.output/server/node_modules/node-pty/lib/conpty_console_list_agent.js +0 -16
- package/.output/server/node_modules/node-pty/lib/conpty_console_list_agent.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.js +0 -47
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/index.js +0 -52
- package/.output/server/node_modules/node-pty/lib/index.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/interfaces.js +0 -7
- package/.output/server/node_modules/node-pty/lib/interfaces.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/shared/conout.js +0 -11
- package/.output/server/node_modules/node-pty/lib/shared/conout.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/terminal.js +0 -190
- package/.output/server/node_modules/node-pty/lib/terminal.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/terminal.test.js +0 -139
- package/.output/server/node_modules/node-pty/lib/terminal.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/testUtils.test.js +0 -28
- package/.output/server/node_modules/node-pty/lib/testUtils.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/types.js +0 -7
- package/.output/server/node_modules/node-pty/lib/types.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/unixTerminal.js +0 -346
- package/.output/server/node_modules/node-pty/lib/unixTerminal.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
- package/.output/server/node_modules/node-pty/lib/unixTerminal.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/utils.js +0 -39
- package/.output/server/node_modules/node-pty/lib/utils.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsConoutConnection.js +0 -125
- package/.output/server/node_modules/node-pty/lib/windowsConoutConnection.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.js +0 -320
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.js +0 -199
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.test.js.map +0 -1
- package/.output/server/node_modules/node-pty/lib/worker/conoutSocketWorker.js +0 -22
- package/.output/server/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +0 -1
- package/.output/server/node_modules/node-pty/package.json +0 -64
- package/.output/server/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/pty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/pty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
- package/.output/server/node_modules/node-pty/scripts/increment-version.js +0 -54
- package/.output/server/node_modules/node-pty/scripts/post-install.js +0 -80
- package/.output/server/node_modules/node-pty/scripts/prebuild.js +0 -34
- package/.output/server/node_modules/node-pty/src/conpty_console_list_agent.ts +0 -15
- package/.output/server/node_modules/node-pty/src/eventEmitter2.test.ts +0 -30
- package/.output/server/node_modules/node-pty/src/eventEmitter2.ts +0 -48
- package/.output/server/node_modules/node-pty/src/index.ts +0 -52
- package/.output/server/node_modules/node-pty/src/interfaces.ts +0 -130
- package/.output/server/node_modules/node-pty/src/native.d.ts +0 -54
- package/.output/server/node_modules/node-pty/src/shared/conout.ts +0 -15
- package/.output/server/node_modules/node-pty/src/terminal.test.ts +0 -119
- package/.output/server/node_modules/node-pty/src/terminal.ts +0 -211
- package/.output/server/node_modules/node-pty/src/testUtils.test.ts +0 -23
- package/.output/server/node_modules/node-pty/src/tsconfig.json +0 -22
- package/.output/server/node_modules/node-pty/src/types.ts +0 -15
- package/.output/server/node_modules/node-pty/src/unix/pty.cc +0 -799
- package/.output/server/node_modules/node-pty/src/unix/spawn-helper.cc +0 -23
- package/.output/server/node_modules/node-pty/src/unixTerminal.test.ts +0 -367
- package/.output/server/node_modules/node-pty/src/unixTerminal.ts +0 -388
- package/.output/server/node_modules/node-pty/src/utils.ts +0 -29
- package/.output/server/node_modules/node-pty/src/win/conpty.cc +0 -583
- package/.output/server/node_modules/node-pty/src/win/conpty.h +0 -41
- package/.output/server/node_modules/node-pty/src/win/conpty_console_list.cc +0 -44
- package/.output/server/node_modules/node-pty/src/win/path_util.cc +0 -95
- package/.output/server/node_modules/node-pty/src/win/path_util.h +0 -26
- package/.output/server/node_modules/node-pty/src/win/winpty.cc +0 -333
- package/.output/server/node_modules/node-pty/src/windowsConoutConnection.ts +0 -82
- package/.output/server/node_modules/node-pty/src/windowsPtyAgent.test.ts +0 -94
- package/.output/server/node_modules/node-pty/src/windowsPtyAgent.ts +0 -321
- package/.output/server/node_modules/node-pty/src/windowsTerminal.test.ts +0 -229
- package/.output/server/node_modules/node-pty/src/windowsTerminal.ts +0 -203
- package/.output/server/node_modules/node-pty/src/worker/conoutSocketWorker.ts +0 -22
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/typings/node-pty.d.ts +0 -211
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -10
- package/scripts/release.mjs +0 -173
- package/vendor/node-domexception/index.js +0 -3
- package/vendor/node-domexception/package.json +0 -10
- /package/.output/public/assets/{abap-smLpETzL.js → abap-CglpPUUh.js} +0 -0
- /package/.output/public/assets/{actionscript-3-o-aRvjY5.js → actionscript-3-CGv72Q9E.js} +0 -0
- /package/.output/public/assets/{ada-D5RRX1i4.js → ada-CfxXaXwr.js} +0 -0
- /package/.output/public/assets/{addon-fit-CMMXLNsg.js → addon-fit-C9RD8ot3.js} +0 -0
- /package/.output/public/assets/{andromeeda-N4z3YzmR.js → andromeeda-DXsn6mTE.js} +0 -0
- /package/.output/public/assets/{apache-DttKlSqg.js → apache-D5xAQKSB.js} +0 -0
- /package/.output/public/assets/{apex-DL7j-a2n.js → apex-qgfedJV2.js} +0 -0
- /package/.output/public/assets/{applescript-DCbL_2FX.js → applescript-DqumQxTt.js} +0 -0
- /package/.output/public/assets/{ara-DqheWJCe.js → ara-Ditv3ow6.js} +0 -0
- /package/.output/public/assets/{asciidoc-BH2sf2K4.js → asciidoc-DL8QwiT7.js} +0 -0
- /package/.output/public/assets/{asm-rfjOMz3U.js → asm-K6TMxl3o.js} +0 -0
- /package/.output/public/assets/{aurora-x-CND-FqEb.js → aurora-x-DGv-xZaa.js} +0 -0
- /package/.output/public/assets/{awk-CMV5n9Z7.js → awk-CYSfQSDT.js} +0 -0
- /package/.output/public/assets/{ayu-dark-on7xzq_B.js → ayu-dark-DGBaJbpH.js} +0 -0
- /package/.output/public/assets/{ayu-light-DnGeGGc2.js → ayu-light-BQrGPVs2.js} +0 -0
- /package/.output/public/assets/{ayu-mirage-DG3LlYC_.js → ayu-mirage-Do-5o2VL.js} +0 -0
- /package/.output/public/assets/{ballerina-BjMqJjlr.js → ballerina-BE-8n54s.js} +0 -0
- /package/.output/public/assets/{bat-BaVbo_qw.js → bat-B1zTc1QZ.js} +0 -0
- /package/.output/public/assets/{beancount-DBt5Mbc_.js → beancount-DhObrvif.js} +0 -0
- /package/.output/public/assets/{berry-Cyjuxiss.js → berry-Cnbvthv1.js} +0 -0
- /package/.output/public/assets/{bibtex-BV_0nsPq.js → bibtex-pp5SrwZy.js} +0 -0
- /package/.output/public/assets/{bicep-C2gEwu4J.js → bicep-BL6eYxbs.js} +0 -0
- /package/.output/public/assets/{bird2-BRyaEJd0.js → bird2-BQaXYY9n.js} +0 -0
- /package/.output/public/assets/{c-Nc9zJT78.js → c-BHFJ4Jk3.js} +0 -0
- /package/.output/public/assets/{c3-DTTbp5N2.js → c3-BHTco5Hb.js} +0 -0
- /package/.output/public/assets/{cadence-CPz83cmI.js → cadence-CoPxW0qb.js} +0 -0
- /package/.output/public/assets/{catppuccin-frappe-Dr22sraq.js → catppuccin-frappe-9fYwMJCf.js} +0 -0
- /package/.output/public/assets/{catppuccin-latte-C57EeX8c.js → catppuccin-latte-BUiKH1yZ.js} +0 -0
- /package/.output/public/assets/{catppuccin-macchiato-CpheI4uD.js → catppuccin-macchiato-ZmO2e0M_.js} +0 -0
- /package/.output/public/assets/{catppuccin-mocha-D8Lmdks_.js → catppuccin-mocha-CFwbXQfO.js} +0 -0
- /package/.output/public/assets/{clarity-CFJ2Yc3q.js → clarity-DVUGm1xP.js} +0 -0
- /package/.output/public/assets/{clojure-6R01QgJC.js → clojure-BgXJG6FG.js} +0 -0
- /package/.output/public/assets/{cmake-D5rSbMir.js → cmake-CZndsvm6.js} +0 -0
- /package/.output/public/assets/{codeowners-_3A-ClkN.js → codeowners-Dd7a447M.js} +0 -0
- /package/.output/public/assets/{codeql-DlIhJTR7.js → codeql-XJR6llG-.js} +0 -0
- /package/.output/public/assets/{common-lisp-BvQzz173.js → common-lisp-BOMbLvgT.js} +0 -0
- /package/.output/public/assets/{coq-DTNXReIC.js → coq-DnhmQYDa.js} +0 -0
- /package/.output/public/assets/{csharp-BDKQY1K9.js → csharp-BdEyRqBm.js} +0 -0
- /package/.output/public/assets/{css-DRmnABqB.js → css-CsTDDTLq.js} +0 -0
- /package/.output/public/assets/{csv-DNUpVBxl.js → csv-CXchYFbz.js} +0 -0
- /package/.output/public/assets/{cue-DDdBc2s3.js → cue-D7YpBZvd.js} +0 -0
- /package/.output/public/assets/{cypher-CguaznO2.js → cypher-XIm1N8YJ.js} +0 -0
- /package/.output/public/assets/{d-CHcoyjv3.js → d-DvB0pbZH.js} +0 -0
- /package/.output/public/assets/{dark-plus-CqeW_0kH.js → dark-plus-BUdpMFIA.js} +0 -0
- /package/.output/public/assets/{dart-RM3aRphk.js → dart-CwpSKTMB.js} +0 -0
- /package/.output/public/assets/{dax-nbnY1d79.js → dax-CEynWJsU.js} +0 -0
- /package/.output/public/assets/{desktop-BD76cvxT.js → desktop-Dk-YiYS_.js} +0 -0
- /package/.output/public/assets/{diff-CdkWtnkL.js → diff-abLZ-xM1.js} +0 -0
- /package/.output/public/assets/{docker-ZyPHc6zB.js → docker-BT48KsRJ.js} +0 -0
- /package/.output/public/assets/{dotenv-BdJZEwA6.js → dotenv-NOMQQbM0.js} +0 -0
- /package/.output/public/assets/{dracula-CtqCPLGa.js → dracula-BUW0ZyNO.js} +0 -0
- /package/.output/public/assets/{dracula-soft-DmBpwRAy.js → dracula-soft-BMjAt1_u.js} +0 -0
- /package/.output/public/assets/{dream-maker-BJL4qlg3.js → dream-maker-D26TP1Q3.js} +0 -0
- /package/.output/public/assets/{emacs-lisp-_LyYa2Ky.js → emacs-lisp-C2EvfotR.js} +0 -0
- /package/.output/public/assets/{everforest-dark-CrbyKk4n.js → everforest-dark-hC6a272f.js} +0 -0
- /package/.output/public/assets/{everforest-light-DRbSh8Tm.js → everforest-light-BTpbYY5G.js} +0 -0
- /package/.output/public/assets/{fennel-CC2BkRsS.js → fennel-DWOL-Ewx.js} +0 -0
- /package/.output/public/assets/{fish-D2ZCzqcE.js → fish-CQPQq0pQ.js} +0 -0
- /package/.output/public/assets/{fluent-DKAm3m7q.js → fluent-BYdsr2M8.js} +0 -0
- /package/.output/public/assets/{fortran-free-form-BPTf0lbT.js → fortran-free-form-C_EtY4F9.js} +0 -0
- /package/.output/public/assets/{gdscript-CsadCSaZ.js → gdscript-CH_tD-VB.js} +0 -0
- /package/.output/public/assets/{gdshader-PfnN_8tR.js → gdshader-BemFblFP.js} +0 -0
- /package/.output/public/assets/{genie-Bj-orPAV.js → genie-hCPg_eq7.js} +0 -0
- /package/.output/public/assets/{gherkin-COVWpJ-Q.js → gherkin-CO0ypD1P.js} +0 -0
- /package/.output/public/assets/{github-dark-ipGuFGYC.js → github-dark-cA72fqmI.js} +0 -0
- /package/.output/public/assets/{github-dark-default-DX3IG_X0.js → github-dark-default-DiYTFvY5.js} +0 -0
- /package/.output/public/assets/{github-dark-dimmed-CH6p_7ez.js → github-dark-dimmed-D-uBHzyG.js} +0 -0
- /package/.output/public/assets/{github-dark-high-contrast-Bg2sSao5.js → github-dark-high-contrast-BrUSkckI.js} +0 -0
- /package/.output/public/assets/{github-light-default-DwpDd1IQ.js → github-light-default-BT-6Vf7C.js} +0 -0
- /package/.output/public/assets/{github-light-high-contrast-C0QeixPf.js → github-light-high-contrast-DqmEyTTc.js} +0 -0
- /package/.output/public/assets/{github-light-BxjqOQl0.js → github-light-piFPqU8R.js} +0 -0
- /package/.output/public/assets/{gleam-BF2NigGj.js → gleam-CWJA_H5i.js} +0 -0
- /package/.output/public/assets/{gn-CMIt9roj.js → gn-nlTwLSjP.js} +0 -0
- /package/.output/public/assets/{gnuplot-DgWlRTEj.js → gnuplot-wYV0MbPl.js} +0 -0
- /package/.output/public/assets/{go-DLnOLj8q.js → go-BUPBDRDo.js} +0 -0
- /package/.output/public/assets/{groovy-B9qLWIkE.js → groovy-BusafOA8.js} +0 -0
- /package/.output/public/assets/{gruvbox-dark-hard-BIMX9ePb.js → gruvbox-dark-hard-BrrZYoPF.js} +0 -0
- /package/.output/public/assets/{gruvbox-dark-medium-DxuwyVzM.js → gruvbox-dark-medium-DsxcLuUs.js} +0 -0
- /package/.output/public/assets/{gruvbox-dark-soft-ba2fjht0.js → gruvbox-dark-soft-DQXOs_GH.js} +0 -0
- /package/.output/public/assets/{gruvbox-light-hard-DAJK2PqC.js → gruvbox-light-hard-CtHwj_cB.js} +0 -0
- /package/.output/public/assets/{gruvbox-light-medium-WRifDAJD.js → gruvbox-light-medium-CPJMdgXQ.js} +0 -0
- /package/.output/public/assets/{gruvbox-light-soft-B0dBOoVB.js → gruvbox-light-soft-C4Xh9Hc-.js} +0 -0
- /package/.output/public/assets/{haskell-BaGpmm_c.js → haskell-CaDqJkn4.js} +0 -0
- /package/.output/public/assets/{haxe-DfXTCEOz.js → haxe-Dxg-8_J7.js} +0 -0
- /package/.output/public/assets/{hcl-CbCtpSbi.js → hcl-Bjg-rMJ0.js} +0 -0
- /package/.output/public/assets/{hjson-_4-w-pHU.js → hjson-BMbeOOMg.js} +0 -0
- /package/.output/public/assets/{hlsl-DpuYn7pp.js → hlsl-D-cuwCFV.js} +0 -0
- /package/.output/public/assets/{horizon-C5RtD1fY.js → horizon-BofYY9of.js} +0 -0
- /package/.output/public/assets/{horizon-bright-pEOice34.js → horizon-bright-CFOVQsf2.js} +0 -0
- /package/.output/public/assets/{houston-A0zg9vNP.js → houston-BIBYxFpQ.js} +0 -0
- /package/.output/public/assets/{hy-t9zDXBje.js → hy-Cye3Jt7O.js} +0 -0
- /package/.output/public/assets/{imba-Bxu-TDfw.js → imba-CjkQtgD2.js} +0 -0
- /package/.output/public/assets/{ini-D-v34c8N.js → ini-BvMtfDNl.js} +0 -0
- /package/.output/public/assets/{java-DVLnIrqC.js → java-BYO3uQJZ.js} +0 -0
- /package/.output/public/assets/{javascript-Cop1kpy_.js → javascript-BsdGTPv_.js} +0 -0
- /package/.output/public/assets/{json-CTw4n7kn.js → json-Kp2u6f_f.js} +0 -0
- /package/.output/public/assets/{json5-D0XL1D5m.js → json5-BCxDPjxU.js} +0 -0
- /package/.output/public/assets/{jsonc-BBgf3TX3.js → jsonc-BV8VFjqO.js} +0 -0
- /package/.output/public/assets/{jsonl-KrKLbtB7.js → jsonl-DHrr7c-M.js} +0 -0
- /package/.output/public/assets/{jsonnet-B2ZwWMOt.js → jsonnet-xURar8mu.js} +0 -0
- /package/.output/public/assets/{jssm-ByRpI9-B.js → jssm-DtoLUQAt.js} +0 -0
- /package/.output/public/assets/{jsx-0oMUGqZj.js → jsx-CyrO086S.js} +0 -0
- /package/.output/public/assets/{kanagawa-dragon-CtPmcCMp.js → kanagawa-dragon-COwlYgQB.js} +0 -0
- /package/.output/public/assets/{kanagawa-lotus-DpOXEGCa.js → kanagawa-lotus-GZWqyq_E.js} +0 -0
- /package/.output/public/assets/{kanagawa-wave-CLVCyc-n.js → kanagawa-wave-CP4uw3DX.js} +0 -0
- /package/.output/public/assets/{kdl-6FPPEH4H.js → kdl-DGo2N7N5.js} +0 -0
- /package/.output/public/assets/{kotlin-D4L3Nd2D.js → kotlin-Cm4W8Bbs.js} +0 -0
- /package/.output/public/assets/{kusto-D-mmc07O.js → kusto-DQ22_tcT.js} +0 -0
- /package/.output/public/assets/{laserwave-7fEj4XGb.js → laserwave-DfABGYsD.js} +0 -0
- /package/.output/public/assets/{lean-BMVMuP2E.js → lean-D-8a6Wwv.js} +0 -0
- /package/.output/public/assets/{less-C95PyOu0.js → less-B-qZzFKw.js} +0 -0
- /package/.output/public/assets/{light-plus-DHI2dh3p.js → light-plus-DS_rmE1N.js} +0 -0
- /package/.output/public/assets/{llvm-Dy3qORTl.js → llvm-Ch-k6TUk.js} +0 -0
- /package/.output/public/assets/{log-BQop7fzg.js → log-BGwbCG2S.js} +0 -0
- /package/.output/public/assets/{logo-DKtnYmrp.js → logo-DHGHbFWy.js} +0 -0
- /package/.output/public/assets/{luau-Dha4KG0q.js → luau-qsvm_nYh.js} +0 -0
- /package/.output/public/assets/{make-DfmS6buu.js → make-Dlfjp_Q8.js} +0 -0
- /package/.output/public/assets/{markdown-BaI9LyM4.js → markdown-COh4ruD_.js} +0 -0
- /package/.output/public/assets/{material-theme-Dm6ETY8i.js → material-theme-Ccrl1jie.js} +0 -0
- /package/.output/public/assets/{material-theme-darker-BeyjmM5Z.js → material-theme-darker-CcOH0iHe.js} +0 -0
- /package/.output/public/assets/{material-theme-lighter-CCOYYzKL.js → material-theme-lighter-DoKpC7NM.js} +0 -0
- /package/.output/public/assets/{material-theme-ocean-CUtPiiX3.js → material-theme-ocean-BcvBZHgH.js} +0 -0
- /package/.output/public/assets/{material-theme-palenight-2L4zMwIM.js → material-theme-palenight-DIL4EAzl.js} +0 -0
- /package/.output/public/assets/{matlab-BT79Cq_j.js → matlab-CBqMuw7w.js} +0 -0
- /package/.output/public/assets/{mdx-CxGBwLNt.js → mdx-BjoJxHxW.js} +0 -0
- /package/.output/public/assets/{mermaid-DLf3axBN.js → mermaid-DjAh2yR5.js} +0 -0
- /package/.output/public/assets/{min-dark-B8TUPGHg.js → min-dark-CbwghdE5.js} +0 -0
- /package/.output/public/assets/{min-light-BDOoBxcA.js → min-light-_F39d_94.js} +0 -0
- /package/.output/public/assets/{mipsasm-DXuU_0cI.js → mipsasm-DA1H0O78.js} +0 -0
- /package/.output/public/assets/{mojo-1Omp2pIo.js → mojo-BVgjRjTn.js} +0 -0
- /package/.output/public/assets/{monokai-E_VBmXGZ.js → monokai-CxgvaWkX.js} +0 -0
- /package/.output/public/assets/{moonbit-DZzq699o.js → moonbit-tKY94ZOM.js} +0 -0
- /package/.output/public/assets/{move-DxDAOJVd.js → move-B5WspEjG.js} +0 -0
- /package/.output/public/assets/{narrat-CxDcPPb9.js → narrat-CDPRStf_.js} +0 -0
- /package/.output/public/assets/{nextflow-groovy-wvmJO4hi.js → nextflow-groovy-1GYTZoD5.js} +0 -0
- /package/.output/public/assets/{night-owl-DefhalNX.js → night-owl-CCydx7ZR.js} +0 -0
- /package/.output/public/assets/{night-owl-light-byb3AbEn.js → night-owl-light-CLM7UUPY.js} +0 -0
- /package/.output/public/assets/{nix-DsFTDHWT.js → nix-DXFN4IwW.js} +0 -0
- /package/.output/public/assets/{nord-D5rQzHT-.js → nord-CiCWZ1de.js} +0 -0
- /package/.output/public/assets/{nushell-BQ_rO0AM.js → nushell-Ck9o2qOx.js} +0 -0
- /package/.output/public/assets/{objective-c-BMq6JT_m.js → objective-c-4koxci9E.js} +0 -0
- /package/.output/public/assets/{objective-cpp-DRwojuGv.js → objective-cpp-BPFAgSN9.js} +0 -0
- /package/.output/public/assets/{ocaml-e4_gKO6E.js → ocaml-BdlBLhZV.js} +0 -0
- /package/.output/public/assets/{odin-mdTPwYOg.js → odin-BcGOLCqZ.js} +0 -0
- /package/.output/public/assets/{one-dark-pro-DxXww9jg.js → one-dark-pro-DEMdTgiO.js} +0 -0
- /package/.output/public/assets/{one-light-D9c03w7t.js → one-light-Cmpe9X1u.js} +0 -0
- /package/.output/public/assets/{openscad-D2aTdNfr.js → openscad-DBveSHYE.js} +0 -0
- /package/.output/public/assets/{pascal-D4n_G8vj.js → pascal-DxOVE99u.js} +0 -0
- /package/.output/public/assets/{pierre-dark-CizZ1Z5z.js → pierre-dark-DIUCKU6U.js} +0 -0
- /package/.output/public/assets/{pierre-light-CHMWfAMe.js → pierre-light-DVO2KPlh.js} +0 -0
- /package/.output/public/assets/{pkl-DcjhAp0L.js → pkl-pIvtf7Vu.js} +0 -0
- /package/.output/public/assets/{plastic-uOsw7z1x.js → plastic-Dvdf8qVN.js} +0 -0
- /package/.output/public/assets/{plsql-BSy3Ag0J.js → plsql-d50MFTFK.js} +0 -0
- /package/.output/public/assets/{po-Be96RYkA.js → po-CboxWwYg.js} +0 -0
- /package/.output/public/assets/{poimandres-CyO4HORD.js → poimandres-DHgQGH4M.js} +0 -0
- /package/.output/public/assets/{polar-BmhMKWum.js → polar-DNp7Oek8.js} +0 -0
- /package/.output/public/assets/{postcss-BTQso3H9.js → postcss-LpmI6XQv.js} +0 -0
- /package/.output/public/assets/{powerquery-DVyQv3M2.js → powerquery-BNCl8Uwz.js} +0 -0
- /package/.output/public/assets/{powershell-BmtCGJVD.js → powershell-CZ9J0XuS.js} +0 -0
- /package/.output/public/assets/{prisma-CCFA9rEj.js → prisma-AELUiJCl.js} +0 -0
- /package/.output/public/assets/{prolog-DWGEEo78.js → prolog-BlqwejRD.js} +0 -0
- /package/.output/public/assets/{proto-C3eop1kM.js → proto-DRQC3swD.js} +0 -0
- /package/.output/public/assets/{puppet-C0_7Nv5A.js → puppet-DBKR8MlH.js} +0 -0
- /package/.output/public/assets/{purescript-Bv-B8yRw.js → purescript-DItLzxZS.js} +0 -0
- /package/.output/public/assets/{python-CKg5r0C3.js → python-D9t_ETu8.js} +0 -0
- /package/.output/public/assets/{qmldir-Cqfb4Lox.js → qmldir-DP_KD1nk.js} +0 -0
- /package/.output/public/assets/{qss-Csho9BH8.js → qss-CL02opOd.js} +0 -0
- /package/.output/public/assets/{r-UcxRcvcA.js → r-DmmrCFmB.js} +0 -0
- /package/.output/public/assets/{racket-D8-uWeQH.js → racket-K0frLTWj.js} +0 -0
- /package/.output/public/assets/{raku-Cj4JSa8p.js → raku-DwgLlPg9.js} +0 -0
- /package/.output/public/assets/{red-z4H4llUY.js → red-DzDu-aXc.js} +0 -0
- /package/.output/public/assets/{reg-DXGFiJSl.js → reg-B_y3c7di.js} +0 -0
- /package/.output/public/assets/{regexp-3-A0406L.js → regexp--eMB47Xx.js} +0 -0
- /package/.output/public/assets/{rel-CunnVTBK.js → rel-CT65ywJp.js} +0 -0
- /package/.output/public/assets/{riscv-C8BcOCkS.js → riscv-Qv5W2vIg.js} +0 -0
- /package/.output/public/assets/{ron-DiDyR9oa.js → ron-cRHu9zPp.js} +0 -0
- /package/.output/public/assets/{rose-pine-BADquuIH.js → rose-pine-DFmTJHIJ.js} +0 -0
- /package/.output/public/assets/{rose-pine-dawn-BLcEeBoh.js → rose-pine-dawn-YIuK9wUm.js} +0 -0
- /package/.output/public/assets/{rose-pine-moon-BK_tLY1Y.js → rose-pine-moon-BYEHfkUB.js} +0 -0
- /package/.output/public/assets/{rosmsg-CHmL1Uyj.js → rosmsg-_L1z4wrx.js} +0 -0
- /package/.output/public/assets/{rust-DjJFInu3.js → rust-BA5wQ_EY.js} +0 -0
- /package/.output/public/assets/{sass-D3xZ5o-v.js → sass-sd__ov8V.js} +0 -0
- /package/.output/public/assets/{scala-B0IRml5w.js → scala--cVG4U7H.js} +0 -0
- /package/.output/public/assets/{scheme-BhwcV3Av.js → scheme-D6Q1O-kY.js} +0 -0
- /package/.output/public/assets/{sdbl-BmWYR-pI.js → sdbl-jB0DUrL_.js} +0 -0
- /package/.output/public/assets/{shellscript-DaVPunOM.js → shellscript-DyWRuzkj.js} +0 -0
- /package/.output/public/assets/{slack-dark-DOnVms5P.js → slack-dark-DHhAlQBa.js} +0 -0
- /package/.output/public/assets/{slack-ochin-DcRTft4q.js → slack-ochin-PZXbcZaN.js} +0 -0
- /package/.output/public/assets/{smalltalk-DVQuUMII.js → smalltalk-C7VkdTlv.js} +0 -0
- /package/.output/public/assets/{snazzy-light-x9CLJ1W9.js → snazzy-light-CPc_Qts9.js} +0 -0
- /package/.output/public/assets/{solarized-dark-BB1sh-pe.js → solarized-dark-DCCfKtTh.js} +0 -0
- /package/.output/public/assets/{solarized-light-9-RPS998.js → solarized-light-B84T-R9X.js} +0 -0
- /package/.output/public/assets/{solidity-gQ4WXILB.js → solidity-DVsDPpDS.js} +0 -0
- /package/.output/public/assets/{splunk-OB48_RcD.js → splunk-A-BwP6Va.js} +0 -0
- /package/.output/public/assets/{sql-CrTmZCMa.js → sql-CRzu7iKx.js} +0 -0
- /package/.output/public/assets/{ssh-config-DA9YMRGV.js → ssh-config-CFPv6mTy.js} +0 -0
- /package/.output/public/assets/{stylus-sKwvsUaC.js → stylus-CUf3IESt.js} +0 -0
- /package/.output/public/assets/{swift-C72NbAtg.js → swift-CSiiYB_Q.js} +0 -0
- /package/.output/public/assets/{synthwave-84-eJ9uRN_S.js → synthwave-84-uJp1j2Jd.js} +0 -0
- /package/.output/public/assets/{system-verilog-CnWMF7Nq.js → system-verilog-rMjKy-O9.js} +0 -0
- /package/.output/public/assets/{systemd-DMzItW5N.js → systemd-R-KDM4-t.js} +0 -0
- /package/.output/public/assets/{talonscript-DopQCWDL.js → talonscript-D666vCtm.js} +0 -0
- /package/.output/public/assets/{tasl-C28SYKbq.js → tasl-68cbBocU.js} +0 -0
- /package/.output/public/assets/{tcl-DHq7zmoF.js → tcl-Y39dJ_pX.js} +0 -0
- /package/.output/public/assets/{terraform-CogS1YKX.js → terraform-BF7wAo-b.js} +0 -0
- /package/.output/public/assets/{tokyo-night-B9N7LyrF.js → tokyo-night-EeABtN82.js} +0 -0
- /package/.output/public/assets/{toml-BH_iPsgK.js → toml-BrMFN1JF.js} +0 -0
- /package/.output/public/assets/{tsv-BIkdBZX1.js → tsv-Dp2l5v7f.js} +0 -0
- /package/.output/public/assets/{tsx-BjkCKOtw.js → tsx-CQqypS0k.js} +0 -0
- /package/.output/public/assets/{turtle-CqNXyJWZ.js → turtle-_N1aDtpV.js} +0 -0
- /package/.output/public/assets/{typescript-BoHeP9q1.js → typescript-CPmDkqmE.js} +0 -0
- /package/.output/public/assets/{typespec-CQ9LYD_e.js → typespec-ghgF2GAI.js} +0 -0
- /package/.output/public/assets/{typst-T-Fsk-Sv.js → typst-DP_izaNK.js} +0 -0
- /package/.output/public/assets/{v-BhMEOw9x.js → v-CdNC_Wok.js} +0 -0
- /package/.output/public/assets/{vala-DzajMnwt.js → vala-Bu4pYkLC.js} +0 -0
- /package/.output/public/assets/{vb-7Xr8dEYW.js → vb-u84IyWSS.js} +0 -0
- /package/.output/public/assets/{verilog-AvXtwZir.js → verilog-BC33pi7Z.js} +0 -0
- /package/.output/public/assets/{vesper-CtgQQ2sf.js → vesper-7-XtS0Kg.js} +0 -0
- /package/.output/public/assets/{vhdl-BHu0zg1P.js → vhdl-BBxTOQe0.js} +0 -0
- /package/.output/public/assets/{viml-Di0QpLfC.js → viml-X_r-ivXA.js} +0 -0
- /package/.output/public/assets/{vitesse-black-jXdfyqgD.js → vitesse-black-DRdlY-cW.js} +0 -0
- /package/.output/public/assets/{vitesse-dark-B88PxG1r.js → vitesse-dark-Bz0hOFHJ.js} +0 -0
- /package/.output/public/assets/{vitesse-light-BXxZh2iV.js → vitesse-light-7kCLd0yn.js} +0 -0
- /package/.output/public/assets/{vyper-C3R5yXgx.js → vyper-E7qIwMXy.js} +0 -0
- /package/.output/public/assets/{wasm-D_MQmneJ.js → wasm-BqG9CUph.js} +0 -0
- /package/.output/public/assets/{wasm-Chsuwt1A.js → wasm-C18OEcCL.js} +0 -0
- /package/.output/public/assets/{wenyan-BonVcr2i.js → wenyan-siXAC4el.js} +0 -0
- /package/.output/public/assets/{wgsl-D59WYmNq.js → wgsl-BJQt8Uld.js} +0 -0
- /package/.output/public/assets/{wikitext-ariTI2Wk.js → wikitext-Ci0ePJmf.js} +0 -0
- /package/.output/public/assets/{wit-EA4fa3Dt.js → wit-BdDJ7geN.js} +0 -0
- /package/.output/public/assets/{wolfram-DDp7LhyU.js → wolfram-Bi-O1IUM.js} +0 -0
- /package/.output/public/assets/{xterm-CCMwI7sy.js → xterm-TTe2Bv9Z.js} +0 -0
- /package/.output/public/assets/{yaml-BTD1XHJG.js → yaml-DgkO7CC2.js} +0 -0
- /package/.output/public/assets/{zenscript-4WaROUyc.js → zenscript-CnkrxCBw.js} +0 -0
- /package/.output/public/assets/{zig-CJoLJGwV.js → zig-CgMsxF9-.js} +0 -0
|
@@ -1,2234 +0,0 @@
|
|
|
1
|
-
import { a as factorySpace, c as asciiControl, d as markdownSpace, f as unicodePunctuation, g as splice, h as combineExtensions, i as classifyCharacter, l as markdownLineEnding, m as normalizeIdentifier, n as blankLine, o as asciiAlpha, p as unicodeWhitespace, r as resolveAll, s as asciiAlphanumeric, u as markdownLineEndingOrSpace } from "./mdast-util-from-markdown+[...].mjs";
|
|
2
|
-
//#region node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
|
|
3
|
-
/**
|
|
4
|
-
* @import {Code, ConstructRecord, Event, Extension, Previous, State, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
5
|
-
*/
|
|
6
|
-
var wwwPrefix = {
|
|
7
|
-
tokenize: tokenizeWwwPrefix,
|
|
8
|
-
partial: true
|
|
9
|
-
};
|
|
10
|
-
var domain = {
|
|
11
|
-
tokenize: tokenizeDomain,
|
|
12
|
-
partial: true
|
|
13
|
-
};
|
|
14
|
-
var path = {
|
|
15
|
-
tokenize: tokenizePath,
|
|
16
|
-
partial: true
|
|
17
|
-
};
|
|
18
|
-
var trail = {
|
|
19
|
-
tokenize: tokenizeTrail,
|
|
20
|
-
partial: true
|
|
21
|
-
};
|
|
22
|
-
var emailDomainDotTrail = {
|
|
23
|
-
tokenize: tokenizeEmailDomainDotTrail,
|
|
24
|
-
partial: true
|
|
25
|
-
};
|
|
26
|
-
var wwwAutolink = {
|
|
27
|
-
name: "wwwAutolink",
|
|
28
|
-
tokenize: tokenizeWwwAutolink,
|
|
29
|
-
previous: previousWww
|
|
30
|
-
};
|
|
31
|
-
var protocolAutolink = {
|
|
32
|
-
name: "protocolAutolink",
|
|
33
|
-
tokenize: tokenizeProtocolAutolink,
|
|
34
|
-
previous: previousProtocol
|
|
35
|
-
};
|
|
36
|
-
var emailAutolink = {
|
|
37
|
-
name: "emailAutolink",
|
|
38
|
-
tokenize: tokenizeEmailAutolink,
|
|
39
|
-
previous: previousEmail
|
|
40
|
-
};
|
|
41
|
-
/** @type {ConstructRecord} */
|
|
42
|
-
var text = {};
|
|
43
|
-
/**
|
|
44
|
-
* Create an extension for `micromark` to support GitHub autolink literal
|
|
45
|
-
* syntax.
|
|
46
|
-
*
|
|
47
|
-
* @returns {Extension}
|
|
48
|
-
* Extension for `micromark` that can be passed in `extensions` to enable GFM
|
|
49
|
-
* autolink literal syntax.
|
|
50
|
-
*/
|
|
51
|
-
function gfmAutolinkLiteral() {
|
|
52
|
-
return { text };
|
|
53
|
-
}
|
|
54
|
-
/** @type {Code} */
|
|
55
|
-
var code = 48;
|
|
56
|
-
while (code < 123) {
|
|
57
|
-
text[code] = emailAutolink;
|
|
58
|
-
code++;
|
|
59
|
-
if (code === 58) code = 65;
|
|
60
|
-
else if (code === 91) code = 97;
|
|
61
|
-
}
|
|
62
|
-
text[43] = emailAutolink;
|
|
63
|
-
text[45] = emailAutolink;
|
|
64
|
-
text[46] = emailAutolink;
|
|
65
|
-
text[95] = emailAutolink;
|
|
66
|
-
text[72] = [emailAutolink, protocolAutolink];
|
|
67
|
-
text[104] = [emailAutolink, protocolAutolink];
|
|
68
|
-
text[87] = [emailAutolink, wwwAutolink];
|
|
69
|
-
text[119] = [emailAutolink, wwwAutolink];
|
|
70
|
-
/**
|
|
71
|
-
* Email autolink literal.
|
|
72
|
-
*
|
|
73
|
-
* ```markdown
|
|
74
|
-
* > | a contact@example.org b
|
|
75
|
-
* ^^^^^^^^^^^^^^^^^^^
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* @this {TokenizeContext}
|
|
79
|
-
* @type {Tokenizer}
|
|
80
|
-
*/
|
|
81
|
-
function tokenizeEmailAutolink(effects, ok, nok) {
|
|
82
|
-
const self = this;
|
|
83
|
-
/** @type {boolean | undefined} */
|
|
84
|
-
let dot;
|
|
85
|
-
/** @type {boolean} */
|
|
86
|
-
let data;
|
|
87
|
-
return start;
|
|
88
|
-
/**
|
|
89
|
-
* Start of email autolink literal.
|
|
90
|
-
*
|
|
91
|
-
* ```markdown
|
|
92
|
-
* > | a contact@example.org b
|
|
93
|
-
* ^
|
|
94
|
-
* ```
|
|
95
|
-
*
|
|
96
|
-
* @type {State}
|
|
97
|
-
*/
|
|
98
|
-
function start(code) {
|
|
99
|
-
if (!gfmAtext(code) || !previousEmail.call(self, self.previous) || previousUnbalanced(self.events)) return nok(code);
|
|
100
|
-
effects.enter("literalAutolink");
|
|
101
|
-
effects.enter("literalAutolinkEmail");
|
|
102
|
-
return atext(code);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* In email atext.
|
|
106
|
-
*
|
|
107
|
-
* ```markdown
|
|
108
|
-
* > | a contact@example.org b
|
|
109
|
-
* ^
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @type {State}
|
|
113
|
-
*/
|
|
114
|
-
function atext(code) {
|
|
115
|
-
if (gfmAtext(code)) {
|
|
116
|
-
effects.consume(code);
|
|
117
|
-
return atext;
|
|
118
|
-
}
|
|
119
|
-
if (code === 64) {
|
|
120
|
-
effects.consume(code);
|
|
121
|
-
return emailDomain;
|
|
122
|
-
}
|
|
123
|
-
return nok(code);
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* In email domain.
|
|
127
|
-
*
|
|
128
|
-
* The reference code is a bit overly complex as it handles the `@`, of which
|
|
129
|
-
* there may be just one.
|
|
130
|
-
* Source: <https://github.com/github/cmark-gfm/blob/ef1cfcb/extensions/autolink.c#L318>
|
|
131
|
-
*
|
|
132
|
-
* ```markdown
|
|
133
|
-
* > | a contact@example.org b
|
|
134
|
-
* ^
|
|
135
|
-
* ```
|
|
136
|
-
*
|
|
137
|
-
* @type {State}
|
|
138
|
-
*/
|
|
139
|
-
function emailDomain(code) {
|
|
140
|
-
if (code === 46) return effects.check(emailDomainDotTrail, emailDomainAfter, emailDomainDot)(code);
|
|
141
|
-
if (code === 45 || code === 95 || asciiAlphanumeric(code)) {
|
|
142
|
-
data = true;
|
|
143
|
-
effects.consume(code);
|
|
144
|
-
return emailDomain;
|
|
145
|
-
}
|
|
146
|
-
return emailDomainAfter(code);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* In email domain, on dot that is not a trail.
|
|
150
|
-
*
|
|
151
|
-
* ```markdown
|
|
152
|
-
* > | a contact@example.org b
|
|
153
|
-
* ^
|
|
154
|
-
* ```
|
|
155
|
-
*
|
|
156
|
-
* @type {State}
|
|
157
|
-
*/
|
|
158
|
-
function emailDomainDot(code) {
|
|
159
|
-
effects.consume(code);
|
|
160
|
-
dot = true;
|
|
161
|
-
return emailDomain;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* After email domain.
|
|
165
|
-
*
|
|
166
|
-
* ```markdown
|
|
167
|
-
* > | a contact@example.org b
|
|
168
|
-
* ^
|
|
169
|
-
* ```
|
|
170
|
-
*
|
|
171
|
-
* @type {State}
|
|
172
|
-
*/
|
|
173
|
-
function emailDomainAfter(code) {
|
|
174
|
-
if (data && dot && asciiAlpha(self.previous)) {
|
|
175
|
-
effects.exit("literalAutolinkEmail");
|
|
176
|
-
effects.exit("literalAutolink");
|
|
177
|
-
return ok(code);
|
|
178
|
-
}
|
|
179
|
-
return nok(code);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* `www` autolink literal.
|
|
184
|
-
*
|
|
185
|
-
* ```markdown
|
|
186
|
-
* > | a www.example.org b
|
|
187
|
-
* ^^^^^^^^^^^^^^^
|
|
188
|
-
* ```
|
|
189
|
-
*
|
|
190
|
-
* @this {TokenizeContext}
|
|
191
|
-
* @type {Tokenizer}
|
|
192
|
-
*/
|
|
193
|
-
function tokenizeWwwAutolink(effects, ok, nok) {
|
|
194
|
-
const self = this;
|
|
195
|
-
return wwwStart;
|
|
196
|
-
/**
|
|
197
|
-
* Start of www autolink literal.
|
|
198
|
-
*
|
|
199
|
-
* ```markdown
|
|
200
|
-
* > | www.example.com/a?b#c
|
|
201
|
-
* ^
|
|
202
|
-
* ```
|
|
203
|
-
*
|
|
204
|
-
* @type {State}
|
|
205
|
-
*/
|
|
206
|
-
function wwwStart(code) {
|
|
207
|
-
if (code !== 87 && code !== 119 || !previousWww.call(self, self.previous) || previousUnbalanced(self.events)) return nok(code);
|
|
208
|
-
effects.enter("literalAutolink");
|
|
209
|
-
effects.enter("literalAutolinkWww");
|
|
210
|
-
return effects.check(wwwPrefix, effects.attempt(domain, effects.attempt(path, wwwAfter), nok), nok)(code);
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* After a www autolink literal.
|
|
214
|
-
*
|
|
215
|
-
* ```markdown
|
|
216
|
-
* > | www.example.com/a?b#c
|
|
217
|
-
* ^
|
|
218
|
-
* ```
|
|
219
|
-
*
|
|
220
|
-
* @type {State}
|
|
221
|
-
*/
|
|
222
|
-
function wwwAfter(code) {
|
|
223
|
-
effects.exit("literalAutolinkWww");
|
|
224
|
-
effects.exit("literalAutolink");
|
|
225
|
-
return ok(code);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Protocol autolink literal.
|
|
230
|
-
*
|
|
231
|
-
* ```markdown
|
|
232
|
-
* > | a https://example.org b
|
|
233
|
-
* ^^^^^^^^^^^^^^^^^^^
|
|
234
|
-
* ```
|
|
235
|
-
*
|
|
236
|
-
* @this {TokenizeContext}
|
|
237
|
-
* @type {Tokenizer}
|
|
238
|
-
*/
|
|
239
|
-
function tokenizeProtocolAutolink(effects, ok, nok) {
|
|
240
|
-
const self = this;
|
|
241
|
-
let buffer = "";
|
|
242
|
-
let seen = false;
|
|
243
|
-
return protocolStart;
|
|
244
|
-
/**
|
|
245
|
-
* Start of protocol autolink literal.
|
|
246
|
-
*
|
|
247
|
-
* ```markdown
|
|
248
|
-
* > | https://example.com/a?b#c
|
|
249
|
-
* ^
|
|
250
|
-
* ```
|
|
251
|
-
*
|
|
252
|
-
* @type {State}
|
|
253
|
-
*/
|
|
254
|
-
function protocolStart(code) {
|
|
255
|
-
if ((code === 72 || code === 104) && previousProtocol.call(self, self.previous) && !previousUnbalanced(self.events)) {
|
|
256
|
-
effects.enter("literalAutolink");
|
|
257
|
-
effects.enter("literalAutolinkHttp");
|
|
258
|
-
buffer += String.fromCodePoint(code);
|
|
259
|
-
effects.consume(code);
|
|
260
|
-
return protocolPrefixInside;
|
|
261
|
-
}
|
|
262
|
-
return nok(code);
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* In protocol.
|
|
266
|
-
*
|
|
267
|
-
* ```markdown
|
|
268
|
-
* > | https://example.com/a?b#c
|
|
269
|
-
* ^^^^^
|
|
270
|
-
* ```
|
|
271
|
-
*
|
|
272
|
-
* @type {State}
|
|
273
|
-
*/
|
|
274
|
-
function protocolPrefixInside(code) {
|
|
275
|
-
if (asciiAlpha(code) && buffer.length < 5) {
|
|
276
|
-
buffer += String.fromCodePoint(code);
|
|
277
|
-
effects.consume(code);
|
|
278
|
-
return protocolPrefixInside;
|
|
279
|
-
}
|
|
280
|
-
if (code === 58) {
|
|
281
|
-
const protocol = buffer.toLowerCase();
|
|
282
|
-
if (protocol === "http" || protocol === "https") {
|
|
283
|
-
effects.consume(code);
|
|
284
|
-
return protocolSlashesInside;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
return nok(code);
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* In slashes.
|
|
291
|
-
*
|
|
292
|
-
* ```markdown
|
|
293
|
-
* > | https://example.com/a?b#c
|
|
294
|
-
* ^^
|
|
295
|
-
* ```
|
|
296
|
-
*
|
|
297
|
-
* @type {State}
|
|
298
|
-
*/
|
|
299
|
-
function protocolSlashesInside(code) {
|
|
300
|
-
if (code === 47) {
|
|
301
|
-
effects.consume(code);
|
|
302
|
-
if (seen) return afterProtocol;
|
|
303
|
-
seen = true;
|
|
304
|
-
return protocolSlashesInside;
|
|
305
|
-
}
|
|
306
|
-
return nok(code);
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* After protocol, before domain.
|
|
310
|
-
*
|
|
311
|
-
* ```markdown
|
|
312
|
-
* > | https://example.com/a?b#c
|
|
313
|
-
* ^
|
|
314
|
-
* ```
|
|
315
|
-
*
|
|
316
|
-
* @type {State}
|
|
317
|
-
*/
|
|
318
|
-
function afterProtocol(code) {
|
|
319
|
-
return code === null || asciiControl(code) || markdownLineEndingOrSpace(code) || unicodeWhitespace(code) || unicodePunctuation(code) ? nok(code) : effects.attempt(domain, effects.attempt(path, protocolAfter), nok)(code);
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* After a protocol autolink literal.
|
|
323
|
-
*
|
|
324
|
-
* ```markdown
|
|
325
|
-
* > | https://example.com/a?b#c
|
|
326
|
-
* ^
|
|
327
|
-
* ```
|
|
328
|
-
*
|
|
329
|
-
* @type {State}
|
|
330
|
-
*/
|
|
331
|
-
function protocolAfter(code) {
|
|
332
|
-
effects.exit("literalAutolinkHttp");
|
|
333
|
-
effects.exit("literalAutolink");
|
|
334
|
-
return ok(code);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* `www` prefix.
|
|
339
|
-
*
|
|
340
|
-
* ```markdown
|
|
341
|
-
* > | a www.example.org b
|
|
342
|
-
* ^^^^
|
|
343
|
-
* ```
|
|
344
|
-
*
|
|
345
|
-
* @this {TokenizeContext}
|
|
346
|
-
* @type {Tokenizer}
|
|
347
|
-
*/
|
|
348
|
-
function tokenizeWwwPrefix(effects, ok, nok) {
|
|
349
|
-
let size = 0;
|
|
350
|
-
return wwwPrefixInside;
|
|
351
|
-
/**
|
|
352
|
-
* In www prefix.
|
|
353
|
-
*
|
|
354
|
-
* ```markdown
|
|
355
|
-
* > | www.example.com
|
|
356
|
-
* ^^^^
|
|
357
|
-
* ```
|
|
358
|
-
*
|
|
359
|
-
* @type {State}
|
|
360
|
-
*/
|
|
361
|
-
function wwwPrefixInside(code) {
|
|
362
|
-
if ((code === 87 || code === 119) && size < 3) {
|
|
363
|
-
size++;
|
|
364
|
-
effects.consume(code);
|
|
365
|
-
return wwwPrefixInside;
|
|
366
|
-
}
|
|
367
|
-
if (code === 46 && size === 3) {
|
|
368
|
-
effects.consume(code);
|
|
369
|
-
return wwwPrefixAfter;
|
|
370
|
-
}
|
|
371
|
-
return nok(code);
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* After www prefix.
|
|
375
|
-
*
|
|
376
|
-
* ```markdown
|
|
377
|
-
* > | www.example.com
|
|
378
|
-
* ^
|
|
379
|
-
* ```
|
|
380
|
-
*
|
|
381
|
-
* @type {State}
|
|
382
|
-
*/
|
|
383
|
-
function wwwPrefixAfter(code) {
|
|
384
|
-
return code === null ? nok(code) : ok(code);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* Domain.
|
|
389
|
-
*
|
|
390
|
-
* ```markdown
|
|
391
|
-
* > | a https://example.org b
|
|
392
|
-
* ^^^^^^^^^^^
|
|
393
|
-
* ```
|
|
394
|
-
*
|
|
395
|
-
* @this {TokenizeContext}
|
|
396
|
-
* @type {Tokenizer}
|
|
397
|
-
*/
|
|
398
|
-
function tokenizeDomain(effects, ok, nok) {
|
|
399
|
-
/** @type {boolean | undefined} */
|
|
400
|
-
let underscoreInLastSegment;
|
|
401
|
-
/** @type {boolean | undefined} */
|
|
402
|
-
let underscoreInLastLastSegment;
|
|
403
|
-
/** @type {boolean | undefined} */
|
|
404
|
-
let seen;
|
|
405
|
-
return domainInside;
|
|
406
|
-
/**
|
|
407
|
-
* In domain.
|
|
408
|
-
*
|
|
409
|
-
* ```markdown
|
|
410
|
-
* > | https://example.com/a
|
|
411
|
-
* ^^^^^^^^^^^
|
|
412
|
-
* ```
|
|
413
|
-
*
|
|
414
|
-
* @type {State}
|
|
415
|
-
*/
|
|
416
|
-
function domainInside(code) {
|
|
417
|
-
if (code === 46 || code === 95) return effects.check(trail, domainAfter, domainAtPunctuation)(code);
|
|
418
|
-
if (code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code) || code !== 45 && unicodePunctuation(code)) return domainAfter(code);
|
|
419
|
-
seen = true;
|
|
420
|
-
effects.consume(code);
|
|
421
|
-
return domainInside;
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* In domain, at potential trailing punctuation, that was not trailing.
|
|
425
|
-
*
|
|
426
|
-
* ```markdown
|
|
427
|
-
* > | https://example.com
|
|
428
|
-
* ^
|
|
429
|
-
* ```
|
|
430
|
-
*
|
|
431
|
-
* @type {State}
|
|
432
|
-
*/
|
|
433
|
-
function domainAtPunctuation(code) {
|
|
434
|
-
if (code === 95) underscoreInLastSegment = true;
|
|
435
|
-
else {
|
|
436
|
-
underscoreInLastLastSegment = underscoreInLastSegment;
|
|
437
|
-
underscoreInLastSegment = void 0;
|
|
438
|
-
}
|
|
439
|
-
effects.consume(code);
|
|
440
|
-
return domainInside;
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* After domain.
|
|
444
|
-
*
|
|
445
|
-
* ```markdown
|
|
446
|
-
* > | https://example.com/a
|
|
447
|
-
* ^
|
|
448
|
-
* ```
|
|
449
|
-
*
|
|
450
|
-
* @type {State} */
|
|
451
|
-
function domainAfter(code) {
|
|
452
|
-
if (underscoreInLastLastSegment || underscoreInLastSegment || !seen) return nok(code);
|
|
453
|
-
return ok(code);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
/**
|
|
457
|
-
* Path.
|
|
458
|
-
*
|
|
459
|
-
* ```markdown
|
|
460
|
-
* > | a https://example.org/stuff b
|
|
461
|
-
* ^^^^^^
|
|
462
|
-
* ```
|
|
463
|
-
*
|
|
464
|
-
* @this {TokenizeContext}
|
|
465
|
-
* @type {Tokenizer}
|
|
466
|
-
*/
|
|
467
|
-
function tokenizePath(effects, ok) {
|
|
468
|
-
let sizeOpen = 0;
|
|
469
|
-
let sizeClose = 0;
|
|
470
|
-
return pathInside;
|
|
471
|
-
/**
|
|
472
|
-
* In path.
|
|
473
|
-
*
|
|
474
|
-
* ```markdown
|
|
475
|
-
* > | https://example.com/a
|
|
476
|
-
* ^^
|
|
477
|
-
* ```
|
|
478
|
-
*
|
|
479
|
-
* @type {State}
|
|
480
|
-
*/
|
|
481
|
-
function pathInside(code) {
|
|
482
|
-
if (code === 40) {
|
|
483
|
-
sizeOpen++;
|
|
484
|
-
effects.consume(code);
|
|
485
|
-
return pathInside;
|
|
486
|
-
}
|
|
487
|
-
if (code === 41 && sizeClose < sizeOpen) return pathAtPunctuation(code);
|
|
488
|
-
if (code === 33 || code === 34 || code === 38 || code === 39 || code === 41 || code === 42 || code === 44 || code === 46 || code === 58 || code === 59 || code === 60 || code === 63 || code === 93 || code === 95 || code === 126) return effects.check(trail, ok, pathAtPunctuation)(code);
|
|
489
|
-
if (code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) return ok(code);
|
|
490
|
-
effects.consume(code);
|
|
491
|
-
return pathInside;
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* In path, at potential trailing punctuation, that was not trailing.
|
|
495
|
-
*
|
|
496
|
-
* ```markdown
|
|
497
|
-
* > | https://example.com/a"b
|
|
498
|
-
* ^
|
|
499
|
-
* ```
|
|
500
|
-
*
|
|
501
|
-
* @type {State}
|
|
502
|
-
*/
|
|
503
|
-
function pathAtPunctuation(code) {
|
|
504
|
-
if (code === 41) sizeClose++;
|
|
505
|
-
effects.consume(code);
|
|
506
|
-
return pathInside;
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Trail.
|
|
511
|
-
*
|
|
512
|
-
* This calls `ok` if this *is* the trail, followed by an end, which means
|
|
513
|
-
* the entire trail is not part of the link.
|
|
514
|
-
* It calls `nok` if this *is* part of the link.
|
|
515
|
-
*
|
|
516
|
-
* ```markdown
|
|
517
|
-
* > | https://example.com").
|
|
518
|
-
* ^^^
|
|
519
|
-
* ```
|
|
520
|
-
*
|
|
521
|
-
* @this {TokenizeContext}
|
|
522
|
-
* @type {Tokenizer}
|
|
523
|
-
*/
|
|
524
|
-
function tokenizeTrail(effects, ok, nok) {
|
|
525
|
-
return trail;
|
|
526
|
-
/**
|
|
527
|
-
* In trail of domain or path.
|
|
528
|
-
*
|
|
529
|
-
* ```markdown
|
|
530
|
-
* > | https://example.com").
|
|
531
|
-
* ^
|
|
532
|
-
* ```
|
|
533
|
-
*
|
|
534
|
-
* @type {State}
|
|
535
|
-
*/
|
|
536
|
-
function trail(code) {
|
|
537
|
-
if (code === 33 || code === 34 || code === 39 || code === 41 || code === 42 || code === 44 || code === 46 || code === 58 || code === 59 || code === 63 || code === 95 || code === 126) {
|
|
538
|
-
effects.consume(code);
|
|
539
|
-
return trail;
|
|
540
|
-
}
|
|
541
|
-
if (code === 38) {
|
|
542
|
-
effects.consume(code);
|
|
543
|
-
return trailCharacterReferenceStart;
|
|
544
|
-
}
|
|
545
|
-
if (code === 93) {
|
|
546
|
-
effects.consume(code);
|
|
547
|
-
return trailBracketAfter;
|
|
548
|
-
}
|
|
549
|
-
if (code === 60 || code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) return ok(code);
|
|
550
|
-
return nok(code);
|
|
551
|
-
}
|
|
552
|
-
/**
|
|
553
|
-
* In trail, after `]`.
|
|
554
|
-
*
|
|
555
|
-
* > 👉 **Note**: this deviates from `cmark-gfm` to fix a bug.
|
|
556
|
-
* > See end of <https://github.com/github/cmark-gfm/issues/278> for more.
|
|
557
|
-
*
|
|
558
|
-
* ```markdown
|
|
559
|
-
* > | https://example.com](
|
|
560
|
-
* ^
|
|
561
|
-
* ```
|
|
562
|
-
*
|
|
563
|
-
* @type {State}
|
|
564
|
-
*/
|
|
565
|
-
function trailBracketAfter(code) {
|
|
566
|
-
if (code === null || code === 40 || code === 91 || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) return ok(code);
|
|
567
|
-
return trail(code);
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* In character-reference like trail, after `&`.
|
|
571
|
-
*
|
|
572
|
-
* ```markdown
|
|
573
|
-
* > | https://example.com&).
|
|
574
|
-
* ^
|
|
575
|
-
* ```
|
|
576
|
-
*
|
|
577
|
-
* @type {State}
|
|
578
|
-
*/
|
|
579
|
-
function trailCharacterReferenceStart(code) {
|
|
580
|
-
return asciiAlpha(code) ? trailCharacterReferenceInside(code) : nok(code);
|
|
581
|
-
}
|
|
582
|
-
/**
|
|
583
|
-
* In character-reference like trail.
|
|
584
|
-
*
|
|
585
|
-
* ```markdown
|
|
586
|
-
* > | https://example.com&).
|
|
587
|
-
* ^
|
|
588
|
-
* ```
|
|
589
|
-
*
|
|
590
|
-
* @type {State}
|
|
591
|
-
*/
|
|
592
|
-
function trailCharacterReferenceInside(code) {
|
|
593
|
-
if (code === 59) {
|
|
594
|
-
effects.consume(code);
|
|
595
|
-
return trail;
|
|
596
|
-
}
|
|
597
|
-
if (asciiAlpha(code)) {
|
|
598
|
-
effects.consume(code);
|
|
599
|
-
return trailCharacterReferenceInside;
|
|
600
|
-
}
|
|
601
|
-
return nok(code);
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
/**
|
|
605
|
-
* Dot in email domain trail.
|
|
606
|
-
*
|
|
607
|
-
* This calls `ok` if this *is* the trail, followed by an end, which means
|
|
608
|
-
* the trail is not part of the link.
|
|
609
|
-
* It calls `nok` if this *is* part of the link.
|
|
610
|
-
*
|
|
611
|
-
* ```markdown
|
|
612
|
-
* > | contact@example.org.
|
|
613
|
-
* ^
|
|
614
|
-
* ```
|
|
615
|
-
*
|
|
616
|
-
* @this {TokenizeContext}
|
|
617
|
-
* @type {Tokenizer}
|
|
618
|
-
*/
|
|
619
|
-
function tokenizeEmailDomainDotTrail(effects, ok, nok) {
|
|
620
|
-
return start;
|
|
621
|
-
/**
|
|
622
|
-
* Dot.
|
|
623
|
-
*
|
|
624
|
-
* ```markdown
|
|
625
|
-
* > | contact@example.org.
|
|
626
|
-
* ^ ^
|
|
627
|
-
* ```
|
|
628
|
-
*
|
|
629
|
-
* @type {State}
|
|
630
|
-
*/
|
|
631
|
-
function start(code) {
|
|
632
|
-
effects.consume(code);
|
|
633
|
-
return after;
|
|
634
|
-
}
|
|
635
|
-
/**
|
|
636
|
-
* After dot.
|
|
637
|
-
*
|
|
638
|
-
* ```markdown
|
|
639
|
-
* > | contact@example.org.
|
|
640
|
-
* ^ ^
|
|
641
|
-
* ```
|
|
642
|
-
*
|
|
643
|
-
* @type {State}
|
|
644
|
-
*/
|
|
645
|
-
function after(code) {
|
|
646
|
-
return asciiAlphanumeric(code) ? nok(code) : ok(code);
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* See:
|
|
651
|
-
* <https://github.com/github/cmark-gfm/blob/ef1cfcb/extensions/autolink.c#L156>.
|
|
652
|
-
*
|
|
653
|
-
* @type {Previous}
|
|
654
|
-
*/
|
|
655
|
-
function previousWww(code) {
|
|
656
|
-
return code === null || code === 40 || code === 42 || code === 95 || code === 91 || code === 93 || code === 126 || markdownLineEndingOrSpace(code);
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* See:
|
|
660
|
-
* <https://github.com/github/cmark-gfm/blob/ef1cfcb/extensions/autolink.c#L214>.
|
|
661
|
-
*
|
|
662
|
-
* @type {Previous}
|
|
663
|
-
*/
|
|
664
|
-
function previousProtocol(code) {
|
|
665
|
-
return !asciiAlpha(code);
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* @this {TokenizeContext}
|
|
669
|
-
* @type {Previous}
|
|
670
|
-
*/
|
|
671
|
-
function previousEmail(code) {
|
|
672
|
-
return !(code === 47 || gfmAtext(code));
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* @param {Code} code
|
|
676
|
-
* @returns {boolean}
|
|
677
|
-
*/
|
|
678
|
-
function gfmAtext(code) {
|
|
679
|
-
return code === 43 || code === 45 || code === 46 || code === 95 || asciiAlphanumeric(code);
|
|
680
|
-
}
|
|
681
|
-
/**
|
|
682
|
-
* @param {Array<Event>} events
|
|
683
|
-
* @returns {boolean}
|
|
684
|
-
*/
|
|
685
|
-
function previousUnbalanced(events) {
|
|
686
|
-
let index = events.length;
|
|
687
|
-
let result = false;
|
|
688
|
-
while (index--) {
|
|
689
|
-
const token = events[index][1];
|
|
690
|
-
if ((token.type === "labelLink" || token.type === "labelImage") && !token._balanced) {
|
|
691
|
-
result = true;
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
if (token._gfmAutolinkLiteralWalkedInto) {
|
|
695
|
-
result = false;
|
|
696
|
-
break;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
if (events.length > 0 && !result) events[events.length - 1][1]._gfmAutolinkLiteralWalkedInto = true;
|
|
700
|
-
return result;
|
|
701
|
-
}
|
|
702
|
-
//#endregion
|
|
703
|
-
//#region node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js
|
|
704
|
-
/**
|
|
705
|
-
* @import {Event, Exiter, Extension, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
706
|
-
*/
|
|
707
|
-
var indent = {
|
|
708
|
-
tokenize: tokenizeIndent,
|
|
709
|
-
partial: true
|
|
710
|
-
};
|
|
711
|
-
/**
|
|
712
|
-
* Create an extension for `micromark` to enable GFM footnote syntax.
|
|
713
|
-
*
|
|
714
|
-
* @returns {Extension}
|
|
715
|
-
* Extension for `micromark` that can be passed in `extensions` to
|
|
716
|
-
* enable GFM footnote syntax.
|
|
717
|
-
*/
|
|
718
|
-
function gfmFootnote() {
|
|
719
|
-
/** @type {Extension} */
|
|
720
|
-
return {
|
|
721
|
-
document: { [91]: {
|
|
722
|
-
name: "gfmFootnoteDefinition",
|
|
723
|
-
tokenize: tokenizeDefinitionStart,
|
|
724
|
-
continuation: { tokenize: tokenizeDefinitionContinuation },
|
|
725
|
-
exit: gfmFootnoteDefinitionEnd
|
|
726
|
-
} },
|
|
727
|
-
text: {
|
|
728
|
-
[91]: {
|
|
729
|
-
name: "gfmFootnoteCall",
|
|
730
|
-
tokenize: tokenizeGfmFootnoteCall
|
|
731
|
-
},
|
|
732
|
-
[93]: {
|
|
733
|
-
name: "gfmPotentialFootnoteCall",
|
|
734
|
-
add: "after",
|
|
735
|
-
tokenize: tokenizePotentialGfmFootnoteCall,
|
|
736
|
-
resolveTo: resolveToPotentialGfmFootnoteCall
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
* @this {TokenizeContext}
|
|
743
|
-
* @type {Tokenizer}
|
|
744
|
-
*/
|
|
745
|
-
function tokenizePotentialGfmFootnoteCall(effects, ok, nok) {
|
|
746
|
-
const self = this;
|
|
747
|
-
let index = self.events.length;
|
|
748
|
-
const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
|
|
749
|
-
/** @type {Token} */
|
|
750
|
-
let labelStart;
|
|
751
|
-
while (index--) {
|
|
752
|
-
const token = self.events[index][1];
|
|
753
|
-
if (token.type === "labelImage") {
|
|
754
|
-
labelStart = token;
|
|
755
|
-
break;
|
|
756
|
-
}
|
|
757
|
-
if (token.type === "gfmFootnoteCall" || token.type === "labelLink" || token.type === "label" || token.type === "image" || token.type === "link") break;
|
|
758
|
-
}
|
|
759
|
-
return start;
|
|
760
|
-
/**
|
|
761
|
-
* @type {State}
|
|
762
|
-
*/
|
|
763
|
-
function start(code) {
|
|
764
|
-
if (!labelStart || !labelStart._balanced) return nok(code);
|
|
765
|
-
const id = normalizeIdentifier(self.sliceSerialize({
|
|
766
|
-
start: labelStart.end,
|
|
767
|
-
end: self.now()
|
|
768
|
-
}));
|
|
769
|
-
if (id.codePointAt(0) !== 94 || !defined.includes(id.slice(1))) return nok(code);
|
|
770
|
-
effects.enter("gfmFootnoteCallLabelMarker");
|
|
771
|
-
effects.consume(code);
|
|
772
|
-
effects.exit("gfmFootnoteCallLabelMarker");
|
|
773
|
-
return ok(code);
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
/** @type {Resolver} */
|
|
777
|
-
function resolveToPotentialGfmFootnoteCall(events, context) {
|
|
778
|
-
let index = events.length;
|
|
779
|
-
while (index--) if (events[index][1].type === "labelImage" && events[index][0] === "enter") {
|
|
780
|
-
events[index][1];
|
|
781
|
-
break;
|
|
782
|
-
}
|
|
783
|
-
events[index + 1][1].type = "data";
|
|
784
|
-
events[index + 3][1].type = "gfmFootnoteCallLabelMarker";
|
|
785
|
-
/** @type {Token} */
|
|
786
|
-
const call = {
|
|
787
|
-
type: "gfmFootnoteCall",
|
|
788
|
-
start: Object.assign({}, events[index + 3][1].start),
|
|
789
|
-
end: Object.assign({}, events[events.length - 1][1].end)
|
|
790
|
-
};
|
|
791
|
-
/** @type {Token} */
|
|
792
|
-
const marker = {
|
|
793
|
-
type: "gfmFootnoteCallMarker",
|
|
794
|
-
start: Object.assign({}, events[index + 3][1].end),
|
|
795
|
-
end: Object.assign({}, events[index + 3][1].end)
|
|
796
|
-
};
|
|
797
|
-
marker.end.column++;
|
|
798
|
-
marker.end.offset++;
|
|
799
|
-
marker.end._bufferIndex++;
|
|
800
|
-
/** @type {Token} */
|
|
801
|
-
const string = {
|
|
802
|
-
type: "gfmFootnoteCallString",
|
|
803
|
-
start: Object.assign({}, marker.end),
|
|
804
|
-
end: Object.assign({}, events[events.length - 1][1].start)
|
|
805
|
-
};
|
|
806
|
-
/** @type {Token} */
|
|
807
|
-
const chunk = {
|
|
808
|
-
type: "chunkString",
|
|
809
|
-
contentType: "string",
|
|
810
|
-
start: Object.assign({}, string.start),
|
|
811
|
-
end: Object.assign({}, string.end)
|
|
812
|
-
};
|
|
813
|
-
/** @type {Array<Event>} */
|
|
814
|
-
const replacement = [
|
|
815
|
-
events[index + 1],
|
|
816
|
-
events[index + 2],
|
|
817
|
-
[
|
|
818
|
-
"enter",
|
|
819
|
-
call,
|
|
820
|
-
context
|
|
821
|
-
],
|
|
822
|
-
events[index + 3],
|
|
823
|
-
events[index + 4],
|
|
824
|
-
[
|
|
825
|
-
"enter",
|
|
826
|
-
marker,
|
|
827
|
-
context
|
|
828
|
-
],
|
|
829
|
-
[
|
|
830
|
-
"exit",
|
|
831
|
-
marker,
|
|
832
|
-
context
|
|
833
|
-
],
|
|
834
|
-
[
|
|
835
|
-
"enter",
|
|
836
|
-
string,
|
|
837
|
-
context
|
|
838
|
-
],
|
|
839
|
-
[
|
|
840
|
-
"enter",
|
|
841
|
-
chunk,
|
|
842
|
-
context
|
|
843
|
-
],
|
|
844
|
-
[
|
|
845
|
-
"exit",
|
|
846
|
-
chunk,
|
|
847
|
-
context
|
|
848
|
-
],
|
|
849
|
-
[
|
|
850
|
-
"exit",
|
|
851
|
-
string,
|
|
852
|
-
context
|
|
853
|
-
],
|
|
854
|
-
events[events.length - 2],
|
|
855
|
-
events[events.length - 1],
|
|
856
|
-
[
|
|
857
|
-
"exit",
|
|
858
|
-
call,
|
|
859
|
-
context
|
|
860
|
-
]
|
|
861
|
-
];
|
|
862
|
-
events.splice(index, events.length - index + 1, ...replacement);
|
|
863
|
-
return events;
|
|
864
|
-
}
|
|
865
|
-
/**
|
|
866
|
-
* @this {TokenizeContext}
|
|
867
|
-
* @type {Tokenizer}
|
|
868
|
-
*/
|
|
869
|
-
function tokenizeGfmFootnoteCall(effects, ok, nok) {
|
|
870
|
-
const self = this;
|
|
871
|
-
const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
|
|
872
|
-
let size = 0;
|
|
873
|
-
/** @type {boolean} */
|
|
874
|
-
let data;
|
|
875
|
-
return start;
|
|
876
|
-
/**
|
|
877
|
-
* Start of footnote label.
|
|
878
|
-
*
|
|
879
|
-
* ```markdown
|
|
880
|
-
* > | a [^b] c
|
|
881
|
-
* ^
|
|
882
|
-
* ```
|
|
883
|
-
*
|
|
884
|
-
* @type {State}
|
|
885
|
-
*/
|
|
886
|
-
function start(code) {
|
|
887
|
-
effects.enter("gfmFootnoteCall");
|
|
888
|
-
effects.enter("gfmFootnoteCallLabelMarker");
|
|
889
|
-
effects.consume(code);
|
|
890
|
-
effects.exit("gfmFootnoteCallLabelMarker");
|
|
891
|
-
return callStart;
|
|
892
|
-
}
|
|
893
|
-
/**
|
|
894
|
-
* After `[`, at `^`.
|
|
895
|
-
*
|
|
896
|
-
* ```markdown
|
|
897
|
-
* > | a [^b] c
|
|
898
|
-
* ^
|
|
899
|
-
* ```
|
|
900
|
-
*
|
|
901
|
-
* @type {State}
|
|
902
|
-
*/
|
|
903
|
-
function callStart(code) {
|
|
904
|
-
if (code !== 94) return nok(code);
|
|
905
|
-
effects.enter("gfmFootnoteCallMarker");
|
|
906
|
-
effects.consume(code);
|
|
907
|
-
effects.exit("gfmFootnoteCallMarker");
|
|
908
|
-
effects.enter("gfmFootnoteCallString");
|
|
909
|
-
effects.enter("chunkString").contentType = "string";
|
|
910
|
-
return callData;
|
|
911
|
-
}
|
|
912
|
-
/**
|
|
913
|
-
* In label.
|
|
914
|
-
*
|
|
915
|
-
* ```markdown
|
|
916
|
-
* > | a [^b] c
|
|
917
|
-
* ^
|
|
918
|
-
* ```
|
|
919
|
-
*
|
|
920
|
-
* @type {State}
|
|
921
|
-
*/
|
|
922
|
-
function callData(code) {
|
|
923
|
-
if (size > 999 || code === 93 && !data || code === null || code === 91 || markdownLineEndingOrSpace(code)) return nok(code);
|
|
924
|
-
if (code === 93) {
|
|
925
|
-
effects.exit("chunkString");
|
|
926
|
-
const token = effects.exit("gfmFootnoteCallString");
|
|
927
|
-
if (!defined.includes(normalizeIdentifier(self.sliceSerialize(token)))) return nok(code);
|
|
928
|
-
effects.enter("gfmFootnoteCallLabelMarker");
|
|
929
|
-
effects.consume(code);
|
|
930
|
-
effects.exit("gfmFootnoteCallLabelMarker");
|
|
931
|
-
effects.exit("gfmFootnoteCall");
|
|
932
|
-
return ok;
|
|
933
|
-
}
|
|
934
|
-
if (!markdownLineEndingOrSpace(code)) data = true;
|
|
935
|
-
size++;
|
|
936
|
-
effects.consume(code);
|
|
937
|
-
return code === 92 ? callEscape : callData;
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* On character after escape.
|
|
941
|
-
*
|
|
942
|
-
* ```markdown
|
|
943
|
-
* > | a [^b\c] d
|
|
944
|
-
* ^
|
|
945
|
-
* ```
|
|
946
|
-
*
|
|
947
|
-
* @type {State}
|
|
948
|
-
*/
|
|
949
|
-
function callEscape(code) {
|
|
950
|
-
if (code === 91 || code === 92 || code === 93) {
|
|
951
|
-
effects.consume(code);
|
|
952
|
-
size++;
|
|
953
|
-
return callData;
|
|
954
|
-
}
|
|
955
|
-
return callData(code);
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* @this {TokenizeContext}
|
|
960
|
-
* @type {Tokenizer}
|
|
961
|
-
*/
|
|
962
|
-
function tokenizeDefinitionStart(effects, ok, nok) {
|
|
963
|
-
const self = this;
|
|
964
|
-
const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
|
|
965
|
-
/** @type {string} */
|
|
966
|
-
let identifier;
|
|
967
|
-
let size = 0;
|
|
968
|
-
/** @type {boolean | undefined} */
|
|
969
|
-
let data;
|
|
970
|
-
return start;
|
|
971
|
-
/**
|
|
972
|
-
* Start of GFM footnote definition.
|
|
973
|
-
*
|
|
974
|
-
* ```markdown
|
|
975
|
-
* > | [^a]: b
|
|
976
|
-
* ^
|
|
977
|
-
* ```
|
|
978
|
-
*
|
|
979
|
-
* @type {State}
|
|
980
|
-
*/
|
|
981
|
-
function start(code) {
|
|
982
|
-
effects.enter("gfmFootnoteDefinition")._container = true;
|
|
983
|
-
effects.enter("gfmFootnoteDefinitionLabel");
|
|
984
|
-
effects.enter("gfmFootnoteDefinitionLabelMarker");
|
|
985
|
-
effects.consume(code);
|
|
986
|
-
effects.exit("gfmFootnoteDefinitionLabelMarker");
|
|
987
|
-
return labelAtMarker;
|
|
988
|
-
}
|
|
989
|
-
/**
|
|
990
|
-
* In label, at caret.
|
|
991
|
-
*
|
|
992
|
-
* ```markdown
|
|
993
|
-
* > | [^a]: b
|
|
994
|
-
* ^
|
|
995
|
-
* ```
|
|
996
|
-
*
|
|
997
|
-
* @type {State}
|
|
998
|
-
*/
|
|
999
|
-
function labelAtMarker(code) {
|
|
1000
|
-
if (code === 94) {
|
|
1001
|
-
effects.enter("gfmFootnoteDefinitionMarker");
|
|
1002
|
-
effects.consume(code);
|
|
1003
|
-
effects.exit("gfmFootnoteDefinitionMarker");
|
|
1004
|
-
effects.enter("gfmFootnoteDefinitionLabelString");
|
|
1005
|
-
effects.enter("chunkString").contentType = "string";
|
|
1006
|
-
return labelInside;
|
|
1007
|
-
}
|
|
1008
|
-
return nok(code);
|
|
1009
|
-
}
|
|
1010
|
-
/**
|
|
1011
|
-
* In label.
|
|
1012
|
-
*
|
|
1013
|
-
* > 👉 **Note**: `cmark-gfm` prevents whitespace from occurring in footnote
|
|
1014
|
-
* > definition labels.
|
|
1015
|
-
*
|
|
1016
|
-
* ```markdown
|
|
1017
|
-
* > | [^a]: b
|
|
1018
|
-
* ^
|
|
1019
|
-
* ```
|
|
1020
|
-
*
|
|
1021
|
-
* @type {State}
|
|
1022
|
-
*/
|
|
1023
|
-
function labelInside(code) {
|
|
1024
|
-
if (size > 999 || code === 93 && !data || code === null || code === 91 || markdownLineEndingOrSpace(code)) return nok(code);
|
|
1025
|
-
if (code === 93) {
|
|
1026
|
-
effects.exit("chunkString");
|
|
1027
|
-
const token = effects.exit("gfmFootnoteDefinitionLabelString");
|
|
1028
|
-
identifier = normalizeIdentifier(self.sliceSerialize(token));
|
|
1029
|
-
effects.enter("gfmFootnoteDefinitionLabelMarker");
|
|
1030
|
-
effects.consume(code);
|
|
1031
|
-
effects.exit("gfmFootnoteDefinitionLabelMarker");
|
|
1032
|
-
effects.exit("gfmFootnoteDefinitionLabel");
|
|
1033
|
-
return labelAfter;
|
|
1034
|
-
}
|
|
1035
|
-
if (!markdownLineEndingOrSpace(code)) data = true;
|
|
1036
|
-
size++;
|
|
1037
|
-
effects.consume(code);
|
|
1038
|
-
return code === 92 ? labelEscape : labelInside;
|
|
1039
|
-
}
|
|
1040
|
-
/**
|
|
1041
|
-
* After `\`, at a special character.
|
|
1042
|
-
*
|
|
1043
|
-
* > 👉 **Note**: `cmark-gfm` currently does not support escaped brackets:
|
|
1044
|
-
* > <https://github.com/github/cmark-gfm/issues/240>
|
|
1045
|
-
*
|
|
1046
|
-
* ```markdown
|
|
1047
|
-
* > | [^a\*b]: c
|
|
1048
|
-
* ^
|
|
1049
|
-
* ```
|
|
1050
|
-
*
|
|
1051
|
-
* @type {State}
|
|
1052
|
-
*/
|
|
1053
|
-
function labelEscape(code) {
|
|
1054
|
-
if (code === 91 || code === 92 || code === 93) {
|
|
1055
|
-
effects.consume(code);
|
|
1056
|
-
size++;
|
|
1057
|
-
return labelInside;
|
|
1058
|
-
}
|
|
1059
|
-
return labelInside(code);
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* After definition label.
|
|
1063
|
-
*
|
|
1064
|
-
* ```markdown
|
|
1065
|
-
* > | [^a]: b
|
|
1066
|
-
* ^
|
|
1067
|
-
* ```
|
|
1068
|
-
*
|
|
1069
|
-
* @type {State}
|
|
1070
|
-
*/
|
|
1071
|
-
function labelAfter(code) {
|
|
1072
|
-
if (code === 58) {
|
|
1073
|
-
effects.enter("definitionMarker");
|
|
1074
|
-
effects.consume(code);
|
|
1075
|
-
effects.exit("definitionMarker");
|
|
1076
|
-
if (!defined.includes(identifier)) defined.push(identifier);
|
|
1077
|
-
return factorySpace(effects, whitespaceAfter, "gfmFootnoteDefinitionWhitespace");
|
|
1078
|
-
}
|
|
1079
|
-
return nok(code);
|
|
1080
|
-
}
|
|
1081
|
-
/**
|
|
1082
|
-
* After definition prefix.
|
|
1083
|
-
*
|
|
1084
|
-
* ```markdown
|
|
1085
|
-
* > | [^a]: b
|
|
1086
|
-
* ^
|
|
1087
|
-
* ```
|
|
1088
|
-
*
|
|
1089
|
-
* @type {State}
|
|
1090
|
-
*/
|
|
1091
|
-
function whitespaceAfter(code) {
|
|
1092
|
-
return ok(code);
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
/**
|
|
1096
|
-
* @this {TokenizeContext}
|
|
1097
|
-
* @type {Tokenizer}
|
|
1098
|
-
*/
|
|
1099
|
-
function tokenizeDefinitionContinuation(effects, ok, nok) {
|
|
1100
|
-
return effects.check(blankLine, ok, effects.attempt(indent, ok, nok));
|
|
1101
|
-
}
|
|
1102
|
-
/** @type {Exiter} */
|
|
1103
|
-
function gfmFootnoteDefinitionEnd(effects) {
|
|
1104
|
-
effects.exit("gfmFootnoteDefinition");
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* @this {TokenizeContext}
|
|
1108
|
-
* @type {Tokenizer}
|
|
1109
|
-
*/
|
|
1110
|
-
function tokenizeIndent(effects, ok, nok) {
|
|
1111
|
-
const self = this;
|
|
1112
|
-
return factorySpace(effects, afterPrefix, "gfmFootnoteDefinitionIndent", 5);
|
|
1113
|
-
/**
|
|
1114
|
-
* @type {State}
|
|
1115
|
-
*/
|
|
1116
|
-
function afterPrefix(code) {
|
|
1117
|
-
const tail = self.events[self.events.length - 1];
|
|
1118
|
-
return tail && tail[1].type === "gfmFootnoteDefinitionIndent" && tail[2].sliceSerialize(tail[1], true).length === 4 ? ok(code) : nok(code);
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
//#endregion
|
|
1122
|
-
//#region node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
1123
|
-
/**
|
|
1124
|
-
* @import {Options} from 'micromark-extension-gfm-strikethrough'
|
|
1125
|
-
* @import {Event, Extension, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
1126
|
-
*/
|
|
1127
|
-
/**
|
|
1128
|
-
* Create an extension for `micromark` to enable GFM strikethrough syntax.
|
|
1129
|
-
*
|
|
1130
|
-
* @param {Options | null | undefined} [options={}]
|
|
1131
|
-
* Configuration.
|
|
1132
|
-
* @returns {Extension}
|
|
1133
|
-
* Extension for `micromark` that can be passed in `extensions`, to
|
|
1134
|
-
* enable GFM strikethrough syntax.
|
|
1135
|
-
*/
|
|
1136
|
-
function gfmStrikethrough(options) {
|
|
1137
|
-
let single = (options || {}).singleTilde;
|
|
1138
|
-
const tokenizer = {
|
|
1139
|
-
name: "strikethrough",
|
|
1140
|
-
tokenize: tokenizeStrikethrough,
|
|
1141
|
-
resolveAll: resolveAllStrikethrough
|
|
1142
|
-
};
|
|
1143
|
-
if (single === null || single === void 0) single = true;
|
|
1144
|
-
return {
|
|
1145
|
-
text: { [126]: tokenizer },
|
|
1146
|
-
insideSpan: { null: [tokenizer] },
|
|
1147
|
-
attentionMarkers: { null: [126] }
|
|
1148
|
-
};
|
|
1149
|
-
/**
|
|
1150
|
-
* Take events and resolve strikethrough.
|
|
1151
|
-
*
|
|
1152
|
-
* @type {Resolver}
|
|
1153
|
-
*/
|
|
1154
|
-
function resolveAllStrikethrough(events, context) {
|
|
1155
|
-
let index = -1;
|
|
1156
|
-
while (++index < events.length) if (events[index][0] === "enter" && events[index][1].type === "strikethroughSequenceTemporary" && events[index][1]._close) {
|
|
1157
|
-
let open = index;
|
|
1158
|
-
while (open--) if (events[open][0] === "exit" && events[open][1].type === "strikethroughSequenceTemporary" && events[open][1]._open && events[index][1].end.offset - events[index][1].start.offset === events[open][1].end.offset - events[open][1].start.offset) {
|
|
1159
|
-
events[index][1].type = "strikethroughSequence";
|
|
1160
|
-
events[open][1].type = "strikethroughSequence";
|
|
1161
|
-
/** @type {Token} */
|
|
1162
|
-
const strikethrough = {
|
|
1163
|
-
type: "strikethrough",
|
|
1164
|
-
start: Object.assign({}, events[open][1].start),
|
|
1165
|
-
end: Object.assign({}, events[index][1].end)
|
|
1166
|
-
};
|
|
1167
|
-
/** @type {Token} */
|
|
1168
|
-
const text = {
|
|
1169
|
-
type: "strikethroughText",
|
|
1170
|
-
start: Object.assign({}, events[open][1].end),
|
|
1171
|
-
end: Object.assign({}, events[index][1].start)
|
|
1172
|
-
};
|
|
1173
|
-
/** @type {Array<Event>} */
|
|
1174
|
-
const nextEvents = [
|
|
1175
|
-
[
|
|
1176
|
-
"enter",
|
|
1177
|
-
strikethrough,
|
|
1178
|
-
context
|
|
1179
|
-
],
|
|
1180
|
-
[
|
|
1181
|
-
"enter",
|
|
1182
|
-
events[open][1],
|
|
1183
|
-
context
|
|
1184
|
-
],
|
|
1185
|
-
[
|
|
1186
|
-
"exit",
|
|
1187
|
-
events[open][1],
|
|
1188
|
-
context
|
|
1189
|
-
],
|
|
1190
|
-
[
|
|
1191
|
-
"enter",
|
|
1192
|
-
text,
|
|
1193
|
-
context
|
|
1194
|
-
]
|
|
1195
|
-
];
|
|
1196
|
-
const insideSpan = context.parser.constructs.insideSpan.null;
|
|
1197
|
-
if (insideSpan) splice(nextEvents, nextEvents.length, 0, resolveAll(insideSpan, events.slice(open + 1, index), context));
|
|
1198
|
-
splice(nextEvents, nextEvents.length, 0, [
|
|
1199
|
-
[
|
|
1200
|
-
"exit",
|
|
1201
|
-
text,
|
|
1202
|
-
context
|
|
1203
|
-
],
|
|
1204
|
-
[
|
|
1205
|
-
"enter",
|
|
1206
|
-
events[index][1],
|
|
1207
|
-
context
|
|
1208
|
-
],
|
|
1209
|
-
[
|
|
1210
|
-
"exit",
|
|
1211
|
-
events[index][1],
|
|
1212
|
-
context
|
|
1213
|
-
],
|
|
1214
|
-
[
|
|
1215
|
-
"exit",
|
|
1216
|
-
strikethrough,
|
|
1217
|
-
context
|
|
1218
|
-
]
|
|
1219
|
-
]);
|
|
1220
|
-
splice(events, open - 1, index - open + 3, nextEvents);
|
|
1221
|
-
index = open + nextEvents.length - 2;
|
|
1222
|
-
break;
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
index = -1;
|
|
1226
|
-
while (++index < events.length) if (events[index][1].type === "strikethroughSequenceTemporary") events[index][1].type = "data";
|
|
1227
|
-
return events;
|
|
1228
|
-
}
|
|
1229
|
-
/**
|
|
1230
|
-
* @this {TokenizeContext}
|
|
1231
|
-
* @type {Tokenizer}
|
|
1232
|
-
*/
|
|
1233
|
-
function tokenizeStrikethrough(effects, ok, nok) {
|
|
1234
|
-
const previous = this.previous;
|
|
1235
|
-
const events = this.events;
|
|
1236
|
-
let size = 0;
|
|
1237
|
-
return start;
|
|
1238
|
-
/** @type {State} */
|
|
1239
|
-
function start(code) {
|
|
1240
|
-
if (previous === 126 && events[events.length - 1][1].type !== "characterEscape") return nok(code);
|
|
1241
|
-
effects.enter("strikethroughSequenceTemporary");
|
|
1242
|
-
return more(code);
|
|
1243
|
-
}
|
|
1244
|
-
/** @type {State} */
|
|
1245
|
-
function more(code) {
|
|
1246
|
-
const before = classifyCharacter(previous);
|
|
1247
|
-
if (code === 126) {
|
|
1248
|
-
if (size > 1) return nok(code);
|
|
1249
|
-
effects.consume(code);
|
|
1250
|
-
size++;
|
|
1251
|
-
return more;
|
|
1252
|
-
}
|
|
1253
|
-
if (size < 2 && !single) return nok(code);
|
|
1254
|
-
const token = effects.exit("strikethroughSequenceTemporary");
|
|
1255
|
-
const after = classifyCharacter(code);
|
|
1256
|
-
token._open = !after || after === 2 && Boolean(before);
|
|
1257
|
-
token._close = !before || before === 2 && Boolean(after);
|
|
1258
|
-
return ok(code);
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
//#endregion
|
|
1263
|
-
//#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.js
|
|
1264
|
-
/**
|
|
1265
|
-
* @import {Event} from 'micromark-util-types'
|
|
1266
|
-
*/
|
|
1267
|
-
/**
|
|
1268
|
-
* @typedef {[number, number, Array<Event>]} Change
|
|
1269
|
-
* @typedef {[number, number, number]} Jump
|
|
1270
|
-
*/
|
|
1271
|
-
/**
|
|
1272
|
-
* Tracks a bunch of edits.
|
|
1273
|
-
*/
|
|
1274
|
-
var EditMap = class {
|
|
1275
|
-
/**
|
|
1276
|
-
* Create a new edit map.
|
|
1277
|
-
*/
|
|
1278
|
-
constructor() {
|
|
1279
|
-
/**
|
|
1280
|
-
* Record of changes.
|
|
1281
|
-
*
|
|
1282
|
-
* @type {Array<Change>}
|
|
1283
|
-
*/
|
|
1284
|
-
this.map = [];
|
|
1285
|
-
}
|
|
1286
|
-
/**
|
|
1287
|
-
* Create an edit: a remove and/or add at a certain place.
|
|
1288
|
-
*
|
|
1289
|
-
* @param {number} index
|
|
1290
|
-
* @param {number} remove
|
|
1291
|
-
* @param {Array<Event>} add
|
|
1292
|
-
* @returns {undefined}
|
|
1293
|
-
*/
|
|
1294
|
-
add(index, remove, add) {
|
|
1295
|
-
addImplementation(this, index, remove, add);
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* Done, change the events.
|
|
1299
|
-
*
|
|
1300
|
-
* @param {Array<Event>} events
|
|
1301
|
-
* @returns {undefined}
|
|
1302
|
-
*/
|
|
1303
|
-
consume(events) {
|
|
1304
|
-
this.map.sort(function(a, b) {
|
|
1305
|
-
return a[0] - b[0];
|
|
1306
|
-
});
|
|
1307
|
-
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
1308
|
-
if (this.map.length === 0) return;
|
|
1309
|
-
let index = this.map.length;
|
|
1310
|
-
/** @type {Array<Array<Event>>} */
|
|
1311
|
-
const vecs = [];
|
|
1312
|
-
while (index > 0) {
|
|
1313
|
-
index -= 1;
|
|
1314
|
-
vecs.push(events.slice(this.map[index][0] + this.map[index][1]), this.map[index][2]);
|
|
1315
|
-
events.length = this.map[index][0];
|
|
1316
|
-
}
|
|
1317
|
-
vecs.push(events.slice());
|
|
1318
|
-
events.length = 0;
|
|
1319
|
-
let slice = vecs.pop();
|
|
1320
|
-
while (slice) {
|
|
1321
|
-
for (const element of slice) events.push(element);
|
|
1322
|
-
slice = vecs.pop();
|
|
1323
|
-
}
|
|
1324
|
-
this.map.length = 0;
|
|
1325
|
-
}
|
|
1326
|
-
};
|
|
1327
|
-
/**
|
|
1328
|
-
* Create an edit.
|
|
1329
|
-
*
|
|
1330
|
-
* @param {EditMap} editMap
|
|
1331
|
-
* @param {number} at
|
|
1332
|
-
* @param {number} remove
|
|
1333
|
-
* @param {Array<Event>} add
|
|
1334
|
-
* @returns {undefined}
|
|
1335
|
-
*/
|
|
1336
|
-
function addImplementation(editMap, at, remove, add) {
|
|
1337
|
-
let index = 0;
|
|
1338
|
-
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
1339
|
-
if (remove === 0 && add.length === 0) return;
|
|
1340
|
-
while (index < editMap.map.length) {
|
|
1341
|
-
if (editMap.map[index][0] === at) {
|
|
1342
|
-
editMap.map[index][1] += remove;
|
|
1343
|
-
editMap.map[index][2].push(...add);
|
|
1344
|
-
return;
|
|
1345
|
-
}
|
|
1346
|
-
index += 1;
|
|
1347
|
-
}
|
|
1348
|
-
editMap.map.push([
|
|
1349
|
-
at,
|
|
1350
|
-
remove,
|
|
1351
|
-
add
|
|
1352
|
-
]);
|
|
1353
|
-
}
|
|
1354
|
-
//#endregion
|
|
1355
|
-
//#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.js
|
|
1356
|
-
/**
|
|
1357
|
-
* @import {Event} from 'micromark-util-types'
|
|
1358
|
-
*/
|
|
1359
|
-
/**
|
|
1360
|
-
* @typedef {'center' | 'left' | 'none' | 'right'} Align
|
|
1361
|
-
*/
|
|
1362
|
-
/**
|
|
1363
|
-
* Figure out the alignment of a GFM table.
|
|
1364
|
-
*
|
|
1365
|
-
* @param {Readonly<Array<Event>>} events
|
|
1366
|
-
* List of events.
|
|
1367
|
-
* @param {number} index
|
|
1368
|
-
* Table enter event.
|
|
1369
|
-
* @returns {Array<Align>}
|
|
1370
|
-
* List of aligns.
|
|
1371
|
-
*/
|
|
1372
|
-
function gfmTableAlign(events, index) {
|
|
1373
|
-
let inDelimiterRow = false;
|
|
1374
|
-
/** @type {Array<Align>} */
|
|
1375
|
-
const align = [];
|
|
1376
|
-
while (index < events.length) {
|
|
1377
|
-
const event = events[index];
|
|
1378
|
-
if (inDelimiterRow) {
|
|
1379
|
-
if (event[0] === "enter") {
|
|
1380
|
-
if (event[1].type === "tableContent") align.push(events[index + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
|
|
1381
|
-
} else if (event[1].type === "tableContent") {
|
|
1382
|
-
if (events[index - 1][1].type === "tableDelimiterMarker") {
|
|
1383
|
-
const alignIndex = align.length - 1;
|
|
1384
|
-
align[alignIndex] = align[alignIndex] === "left" ? "center" : "right";
|
|
1385
|
-
}
|
|
1386
|
-
} else if (event[1].type === "tableDelimiterRow") break;
|
|
1387
|
-
} else if (event[0] === "enter" && event[1].type === "tableDelimiterRow") inDelimiterRow = true;
|
|
1388
|
-
index += 1;
|
|
1389
|
-
}
|
|
1390
|
-
return align;
|
|
1391
|
-
}
|
|
1392
|
-
//#endregion
|
|
1393
|
-
//#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.js
|
|
1394
|
-
/**
|
|
1395
|
-
* @import {Event, Extension, Point, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
1396
|
-
*/
|
|
1397
|
-
/**
|
|
1398
|
-
* @typedef {[number, number, number, number]} Range
|
|
1399
|
-
* Cell info.
|
|
1400
|
-
*
|
|
1401
|
-
* @typedef {0 | 1 | 2 | 3} RowKind
|
|
1402
|
-
* Where we are: `1` for head row, `2` for delimiter row, `3` for body row.
|
|
1403
|
-
*/
|
|
1404
|
-
/**
|
|
1405
|
-
* Create an HTML extension for `micromark` to support GitHub tables syntax.
|
|
1406
|
-
*
|
|
1407
|
-
* @returns {Extension}
|
|
1408
|
-
* Extension for `micromark` that can be passed in `extensions` to enable GFM
|
|
1409
|
-
* table syntax.
|
|
1410
|
-
*/
|
|
1411
|
-
function gfmTable() {
|
|
1412
|
-
return { flow: { null: {
|
|
1413
|
-
name: "table",
|
|
1414
|
-
tokenize: tokenizeTable,
|
|
1415
|
-
resolveAll: resolveTable
|
|
1416
|
-
} } };
|
|
1417
|
-
}
|
|
1418
|
-
/**
|
|
1419
|
-
* @this {TokenizeContext}
|
|
1420
|
-
* @type {Tokenizer}
|
|
1421
|
-
*/
|
|
1422
|
-
function tokenizeTable(effects, ok, nok) {
|
|
1423
|
-
const self = this;
|
|
1424
|
-
let size = 0;
|
|
1425
|
-
let sizeB = 0;
|
|
1426
|
-
/** @type {boolean | undefined} */
|
|
1427
|
-
let seen;
|
|
1428
|
-
return start;
|
|
1429
|
-
/**
|
|
1430
|
-
* Start of a GFM table.
|
|
1431
|
-
*
|
|
1432
|
-
* If there is a valid table row or table head before, then we try to parse
|
|
1433
|
-
* another row.
|
|
1434
|
-
* Otherwise, we try to parse a head.
|
|
1435
|
-
*
|
|
1436
|
-
* ```markdown
|
|
1437
|
-
* > | | a |
|
|
1438
|
-
* ^
|
|
1439
|
-
* | | - |
|
|
1440
|
-
* > | | b |
|
|
1441
|
-
* ^
|
|
1442
|
-
* ```
|
|
1443
|
-
* @type {State}
|
|
1444
|
-
*/
|
|
1445
|
-
function start(code) {
|
|
1446
|
-
let index = self.events.length - 1;
|
|
1447
|
-
while (index > -1) {
|
|
1448
|
-
const type = self.events[index][1].type;
|
|
1449
|
-
if (type === "lineEnding" || type === "linePrefix") index--;
|
|
1450
|
-
else break;
|
|
1451
|
-
}
|
|
1452
|
-
const tail = index > -1 ? self.events[index][1].type : null;
|
|
1453
|
-
const next = tail === "tableHead" || tail === "tableRow" ? bodyRowStart : headRowBefore;
|
|
1454
|
-
if (next === bodyRowStart && self.parser.lazy[self.now().line]) return nok(code);
|
|
1455
|
-
return next(code);
|
|
1456
|
-
}
|
|
1457
|
-
/**
|
|
1458
|
-
* Before table head row.
|
|
1459
|
-
*
|
|
1460
|
-
* ```markdown
|
|
1461
|
-
* > | | a |
|
|
1462
|
-
* ^
|
|
1463
|
-
* | | - |
|
|
1464
|
-
* | | b |
|
|
1465
|
-
* ```
|
|
1466
|
-
*
|
|
1467
|
-
* @type {State}
|
|
1468
|
-
*/
|
|
1469
|
-
function headRowBefore(code) {
|
|
1470
|
-
effects.enter("tableHead");
|
|
1471
|
-
effects.enter("tableRow");
|
|
1472
|
-
return headRowStart(code);
|
|
1473
|
-
}
|
|
1474
|
-
/**
|
|
1475
|
-
* Before table head row, after whitespace.
|
|
1476
|
-
*
|
|
1477
|
-
* ```markdown
|
|
1478
|
-
* > | | a |
|
|
1479
|
-
* ^
|
|
1480
|
-
* | | - |
|
|
1481
|
-
* | | b |
|
|
1482
|
-
* ```
|
|
1483
|
-
*
|
|
1484
|
-
* @type {State}
|
|
1485
|
-
*/
|
|
1486
|
-
function headRowStart(code) {
|
|
1487
|
-
if (code === 124) return headRowBreak(code);
|
|
1488
|
-
seen = true;
|
|
1489
|
-
sizeB += 1;
|
|
1490
|
-
return headRowBreak(code);
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1493
|
-
* At break in table head row.
|
|
1494
|
-
*
|
|
1495
|
-
* ```markdown
|
|
1496
|
-
* > | | a |
|
|
1497
|
-
* ^
|
|
1498
|
-
* ^
|
|
1499
|
-
* ^
|
|
1500
|
-
* | | - |
|
|
1501
|
-
* | | b |
|
|
1502
|
-
* ```
|
|
1503
|
-
*
|
|
1504
|
-
* @type {State}
|
|
1505
|
-
*/
|
|
1506
|
-
function headRowBreak(code) {
|
|
1507
|
-
if (code === null) return nok(code);
|
|
1508
|
-
if (markdownLineEnding(code)) {
|
|
1509
|
-
if (sizeB > 1) {
|
|
1510
|
-
sizeB = 0;
|
|
1511
|
-
self.interrupt = true;
|
|
1512
|
-
effects.exit("tableRow");
|
|
1513
|
-
effects.enter("lineEnding");
|
|
1514
|
-
effects.consume(code);
|
|
1515
|
-
effects.exit("lineEnding");
|
|
1516
|
-
return headDelimiterStart;
|
|
1517
|
-
}
|
|
1518
|
-
return nok(code);
|
|
1519
|
-
}
|
|
1520
|
-
if (markdownSpace(code)) return factorySpace(effects, headRowBreak, "whitespace")(code);
|
|
1521
|
-
sizeB += 1;
|
|
1522
|
-
if (seen) {
|
|
1523
|
-
seen = false;
|
|
1524
|
-
size += 1;
|
|
1525
|
-
}
|
|
1526
|
-
if (code === 124) {
|
|
1527
|
-
effects.enter("tableCellDivider");
|
|
1528
|
-
effects.consume(code);
|
|
1529
|
-
effects.exit("tableCellDivider");
|
|
1530
|
-
seen = true;
|
|
1531
|
-
return headRowBreak;
|
|
1532
|
-
}
|
|
1533
|
-
effects.enter("data");
|
|
1534
|
-
return headRowData(code);
|
|
1535
|
-
}
|
|
1536
|
-
/**
|
|
1537
|
-
* In table head row data.
|
|
1538
|
-
*
|
|
1539
|
-
* ```markdown
|
|
1540
|
-
* > | | a |
|
|
1541
|
-
* ^
|
|
1542
|
-
* | | - |
|
|
1543
|
-
* | | b |
|
|
1544
|
-
* ```
|
|
1545
|
-
*
|
|
1546
|
-
* @type {State}
|
|
1547
|
-
*/
|
|
1548
|
-
function headRowData(code) {
|
|
1549
|
-
if (code === null || code === 124 || markdownLineEndingOrSpace(code)) {
|
|
1550
|
-
effects.exit("data");
|
|
1551
|
-
return headRowBreak(code);
|
|
1552
|
-
}
|
|
1553
|
-
effects.consume(code);
|
|
1554
|
-
return code === 92 ? headRowEscape : headRowData;
|
|
1555
|
-
}
|
|
1556
|
-
/**
|
|
1557
|
-
* In table head row escape.
|
|
1558
|
-
*
|
|
1559
|
-
* ```markdown
|
|
1560
|
-
* > | | a\-b |
|
|
1561
|
-
* ^
|
|
1562
|
-
* | | ---- |
|
|
1563
|
-
* | | c |
|
|
1564
|
-
* ```
|
|
1565
|
-
*
|
|
1566
|
-
* @type {State}
|
|
1567
|
-
*/
|
|
1568
|
-
function headRowEscape(code) {
|
|
1569
|
-
if (code === 92 || code === 124) {
|
|
1570
|
-
effects.consume(code);
|
|
1571
|
-
return headRowData;
|
|
1572
|
-
}
|
|
1573
|
-
return headRowData(code);
|
|
1574
|
-
}
|
|
1575
|
-
/**
|
|
1576
|
-
* Before delimiter row.
|
|
1577
|
-
*
|
|
1578
|
-
* ```markdown
|
|
1579
|
-
* | | a |
|
|
1580
|
-
* > | | - |
|
|
1581
|
-
* ^
|
|
1582
|
-
* | | b |
|
|
1583
|
-
* ```
|
|
1584
|
-
*
|
|
1585
|
-
* @type {State}
|
|
1586
|
-
*/
|
|
1587
|
-
function headDelimiterStart(code) {
|
|
1588
|
-
self.interrupt = false;
|
|
1589
|
-
if (self.parser.lazy[self.now().line]) return nok(code);
|
|
1590
|
-
effects.enter("tableDelimiterRow");
|
|
1591
|
-
seen = false;
|
|
1592
|
-
if (markdownSpace(code)) return factorySpace(effects, headDelimiterBefore, "linePrefix", self.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(code);
|
|
1593
|
-
return headDelimiterBefore(code);
|
|
1594
|
-
}
|
|
1595
|
-
/**
|
|
1596
|
-
* Before delimiter row, after optional whitespace.
|
|
1597
|
-
*
|
|
1598
|
-
* Reused when a `|` is found later, to parse another cell.
|
|
1599
|
-
*
|
|
1600
|
-
* ```markdown
|
|
1601
|
-
* | | a |
|
|
1602
|
-
* > | | - |
|
|
1603
|
-
* ^
|
|
1604
|
-
* | | b |
|
|
1605
|
-
* ```
|
|
1606
|
-
*
|
|
1607
|
-
* @type {State}
|
|
1608
|
-
*/
|
|
1609
|
-
function headDelimiterBefore(code) {
|
|
1610
|
-
if (code === 45 || code === 58) return headDelimiterValueBefore(code);
|
|
1611
|
-
if (code === 124) {
|
|
1612
|
-
seen = true;
|
|
1613
|
-
effects.enter("tableCellDivider");
|
|
1614
|
-
effects.consume(code);
|
|
1615
|
-
effects.exit("tableCellDivider");
|
|
1616
|
-
return headDelimiterCellBefore;
|
|
1617
|
-
}
|
|
1618
|
-
return headDelimiterNok(code);
|
|
1619
|
-
}
|
|
1620
|
-
/**
|
|
1621
|
-
* After `|`, before delimiter cell.
|
|
1622
|
-
*
|
|
1623
|
-
* ```markdown
|
|
1624
|
-
* | | a |
|
|
1625
|
-
* > | | - |
|
|
1626
|
-
* ^
|
|
1627
|
-
* ```
|
|
1628
|
-
*
|
|
1629
|
-
* @type {State}
|
|
1630
|
-
*/
|
|
1631
|
-
function headDelimiterCellBefore(code) {
|
|
1632
|
-
if (markdownSpace(code)) return factorySpace(effects, headDelimiterValueBefore, "whitespace")(code);
|
|
1633
|
-
return headDelimiterValueBefore(code);
|
|
1634
|
-
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Before delimiter cell value.
|
|
1637
|
-
*
|
|
1638
|
-
* ```markdown
|
|
1639
|
-
* | | a |
|
|
1640
|
-
* > | | - |
|
|
1641
|
-
* ^
|
|
1642
|
-
* ```
|
|
1643
|
-
*
|
|
1644
|
-
* @type {State}
|
|
1645
|
-
*/
|
|
1646
|
-
function headDelimiterValueBefore(code) {
|
|
1647
|
-
if (code === 58) {
|
|
1648
|
-
sizeB += 1;
|
|
1649
|
-
seen = true;
|
|
1650
|
-
effects.enter("tableDelimiterMarker");
|
|
1651
|
-
effects.consume(code);
|
|
1652
|
-
effects.exit("tableDelimiterMarker");
|
|
1653
|
-
return headDelimiterLeftAlignmentAfter;
|
|
1654
|
-
}
|
|
1655
|
-
if (code === 45) {
|
|
1656
|
-
sizeB += 1;
|
|
1657
|
-
return headDelimiterLeftAlignmentAfter(code);
|
|
1658
|
-
}
|
|
1659
|
-
if (code === null || markdownLineEnding(code)) return headDelimiterCellAfter(code);
|
|
1660
|
-
return headDelimiterNok(code);
|
|
1661
|
-
}
|
|
1662
|
-
/**
|
|
1663
|
-
* After delimiter cell left alignment marker.
|
|
1664
|
-
*
|
|
1665
|
-
* ```markdown
|
|
1666
|
-
* | | a |
|
|
1667
|
-
* > | | :- |
|
|
1668
|
-
* ^
|
|
1669
|
-
* ```
|
|
1670
|
-
*
|
|
1671
|
-
* @type {State}
|
|
1672
|
-
*/
|
|
1673
|
-
function headDelimiterLeftAlignmentAfter(code) {
|
|
1674
|
-
if (code === 45) {
|
|
1675
|
-
effects.enter("tableDelimiterFiller");
|
|
1676
|
-
return headDelimiterFiller(code);
|
|
1677
|
-
}
|
|
1678
|
-
return headDelimiterNok(code);
|
|
1679
|
-
}
|
|
1680
|
-
/**
|
|
1681
|
-
* In delimiter cell filler.
|
|
1682
|
-
*
|
|
1683
|
-
* ```markdown
|
|
1684
|
-
* | | a |
|
|
1685
|
-
* > | | - |
|
|
1686
|
-
* ^
|
|
1687
|
-
* ```
|
|
1688
|
-
*
|
|
1689
|
-
* @type {State}
|
|
1690
|
-
*/
|
|
1691
|
-
function headDelimiterFiller(code) {
|
|
1692
|
-
if (code === 45) {
|
|
1693
|
-
effects.consume(code);
|
|
1694
|
-
return headDelimiterFiller;
|
|
1695
|
-
}
|
|
1696
|
-
if (code === 58) {
|
|
1697
|
-
seen = true;
|
|
1698
|
-
effects.exit("tableDelimiterFiller");
|
|
1699
|
-
effects.enter("tableDelimiterMarker");
|
|
1700
|
-
effects.consume(code);
|
|
1701
|
-
effects.exit("tableDelimiterMarker");
|
|
1702
|
-
return headDelimiterRightAlignmentAfter;
|
|
1703
|
-
}
|
|
1704
|
-
effects.exit("tableDelimiterFiller");
|
|
1705
|
-
return headDelimiterRightAlignmentAfter(code);
|
|
1706
|
-
}
|
|
1707
|
-
/**
|
|
1708
|
-
* After delimiter cell right alignment marker.
|
|
1709
|
-
*
|
|
1710
|
-
* ```markdown
|
|
1711
|
-
* | | a |
|
|
1712
|
-
* > | | -: |
|
|
1713
|
-
* ^
|
|
1714
|
-
* ```
|
|
1715
|
-
*
|
|
1716
|
-
* @type {State}
|
|
1717
|
-
*/
|
|
1718
|
-
function headDelimiterRightAlignmentAfter(code) {
|
|
1719
|
-
if (markdownSpace(code)) return factorySpace(effects, headDelimiterCellAfter, "whitespace")(code);
|
|
1720
|
-
return headDelimiterCellAfter(code);
|
|
1721
|
-
}
|
|
1722
|
-
/**
|
|
1723
|
-
* After delimiter cell.
|
|
1724
|
-
*
|
|
1725
|
-
* ```markdown
|
|
1726
|
-
* | | a |
|
|
1727
|
-
* > | | -: |
|
|
1728
|
-
* ^
|
|
1729
|
-
* ```
|
|
1730
|
-
*
|
|
1731
|
-
* @type {State}
|
|
1732
|
-
*/
|
|
1733
|
-
function headDelimiterCellAfter(code) {
|
|
1734
|
-
if (code === 124) return headDelimiterBefore(code);
|
|
1735
|
-
if (code === null || markdownLineEnding(code)) {
|
|
1736
|
-
if (!seen || size !== sizeB) return headDelimiterNok(code);
|
|
1737
|
-
effects.exit("tableDelimiterRow");
|
|
1738
|
-
effects.exit("tableHead");
|
|
1739
|
-
return ok(code);
|
|
1740
|
-
}
|
|
1741
|
-
return headDelimiterNok(code);
|
|
1742
|
-
}
|
|
1743
|
-
/**
|
|
1744
|
-
* In delimiter row, at a disallowed byte.
|
|
1745
|
-
*
|
|
1746
|
-
* ```markdown
|
|
1747
|
-
* | | a |
|
|
1748
|
-
* > | | x |
|
|
1749
|
-
* ^
|
|
1750
|
-
* ```
|
|
1751
|
-
*
|
|
1752
|
-
* @type {State}
|
|
1753
|
-
*/
|
|
1754
|
-
function headDelimiterNok(code) {
|
|
1755
|
-
return nok(code);
|
|
1756
|
-
}
|
|
1757
|
-
/**
|
|
1758
|
-
* Before table body row.
|
|
1759
|
-
*
|
|
1760
|
-
* ```markdown
|
|
1761
|
-
* | | a |
|
|
1762
|
-
* | | - |
|
|
1763
|
-
* > | | b |
|
|
1764
|
-
* ^
|
|
1765
|
-
* ```
|
|
1766
|
-
*
|
|
1767
|
-
* @type {State}
|
|
1768
|
-
*/
|
|
1769
|
-
function bodyRowStart(code) {
|
|
1770
|
-
effects.enter("tableRow");
|
|
1771
|
-
return bodyRowBreak(code);
|
|
1772
|
-
}
|
|
1773
|
-
/**
|
|
1774
|
-
* At break in table body row.
|
|
1775
|
-
*
|
|
1776
|
-
* ```markdown
|
|
1777
|
-
* | | a |
|
|
1778
|
-
* | | - |
|
|
1779
|
-
* > | | b |
|
|
1780
|
-
* ^
|
|
1781
|
-
* ^
|
|
1782
|
-
* ^
|
|
1783
|
-
* ```
|
|
1784
|
-
*
|
|
1785
|
-
* @type {State}
|
|
1786
|
-
*/
|
|
1787
|
-
function bodyRowBreak(code) {
|
|
1788
|
-
if (code === 124) {
|
|
1789
|
-
effects.enter("tableCellDivider");
|
|
1790
|
-
effects.consume(code);
|
|
1791
|
-
effects.exit("tableCellDivider");
|
|
1792
|
-
return bodyRowBreak;
|
|
1793
|
-
}
|
|
1794
|
-
if (code === null || markdownLineEnding(code)) {
|
|
1795
|
-
effects.exit("tableRow");
|
|
1796
|
-
return ok(code);
|
|
1797
|
-
}
|
|
1798
|
-
if (markdownSpace(code)) return factorySpace(effects, bodyRowBreak, "whitespace")(code);
|
|
1799
|
-
effects.enter("data");
|
|
1800
|
-
return bodyRowData(code);
|
|
1801
|
-
}
|
|
1802
|
-
/**
|
|
1803
|
-
* In table body row data.
|
|
1804
|
-
*
|
|
1805
|
-
* ```markdown
|
|
1806
|
-
* | | a |
|
|
1807
|
-
* | | - |
|
|
1808
|
-
* > | | b |
|
|
1809
|
-
* ^
|
|
1810
|
-
* ```
|
|
1811
|
-
*
|
|
1812
|
-
* @type {State}
|
|
1813
|
-
*/
|
|
1814
|
-
function bodyRowData(code) {
|
|
1815
|
-
if (code === null || code === 124 || markdownLineEndingOrSpace(code)) {
|
|
1816
|
-
effects.exit("data");
|
|
1817
|
-
return bodyRowBreak(code);
|
|
1818
|
-
}
|
|
1819
|
-
effects.consume(code);
|
|
1820
|
-
return code === 92 ? bodyRowEscape : bodyRowData;
|
|
1821
|
-
}
|
|
1822
|
-
/**
|
|
1823
|
-
* In table body row escape.
|
|
1824
|
-
*
|
|
1825
|
-
* ```markdown
|
|
1826
|
-
* | | a |
|
|
1827
|
-
* | | ---- |
|
|
1828
|
-
* > | | b\-c |
|
|
1829
|
-
* ^
|
|
1830
|
-
* ```
|
|
1831
|
-
*
|
|
1832
|
-
* @type {State}
|
|
1833
|
-
*/
|
|
1834
|
-
function bodyRowEscape(code) {
|
|
1835
|
-
if (code === 92 || code === 124) {
|
|
1836
|
-
effects.consume(code);
|
|
1837
|
-
return bodyRowData;
|
|
1838
|
-
}
|
|
1839
|
-
return bodyRowData(code);
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
/** @type {Resolver} */
|
|
1843
|
-
function resolveTable(events, context) {
|
|
1844
|
-
let index = -1;
|
|
1845
|
-
let inFirstCellAwaitingPipe = true;
|
|
1846
|
-
/** @type {RowKind} */
|
|
1847
|
-
let rowKind = 0;
|
|
1848
|
-
/** @type {Range} */
|
|
1849
|
-
let lastCell = [
|
|
1850
|
-
0,
|
|
1851
|
-
0,
|
|
1852
|
-
0,
|
|
1853
|
-
0
|
|
1854
|
-
];
|
|
1855
|
-
/** @type {Range} */
|
|
1856
|
-
let cell = [
|
|
1857
|
-
0,
|
|
1858
|
-
0,
|
|
1859
|
-
0,
|
|
1860
|
-
0
|
|
1861
|
-
];
|
|
1862
|
-
let afterHeadAwaitingFirstBodyRow = false;
|
|
1863
|
-
let lastTableEnd = 0;
|
|
1864
|
-
/** @type {Token | undefined} */
|
|
1865
|
-
let currentTable;
|
|
1866
|
-
/** @type {Token | undefined} */
|
|
1867
|
-
let currentBody;
|
|
1868
|
-
/** @type {Token | undefined} */
|
|
1869
|
-
let currentCell;
|
|
1870
|
-
const map = new EditMap();
|
|
1871
|
-
while (++index < events.length) {
|
|
1872
|
-
const event = events[index];
|
|
1873
|
-
const token = event[1];
|
|
1874
|
-
if (event[0] === "enter") {
|
|
1875
|
-
if (token.type === "tableHead") {
|
|
1876
|
-
afterHeadAwaitingFirstBodyRow = false;
|
|
1877
|
-
if (lastTableEnd !== 0) {
|
|
1878
|
-
flushTableEnd(map, context, lastTableEnd, currentTable, currentBody);
|
|
1879
|
-
currentBody = void 0;
|
|
1880
|
-
lastTableEnd = 0;
|
|
1881
|
-
}
|
|
1882
|
-
currentTable = {
|
|
1883
|
-
type: "table",
|
|
1884
|
-
start: Object.assign({}, token.start),
|
|
1885
|
-
end: Object.assign({}, token.end)
|
|
1886
|
-
};
|
|
1887
|
-
map.add(index, 0, [[
|
|
1888
|
-
"enter",
|
|
1889
|
-
currentTable,
|
|
1890
|
-
context
|
|
1891
|
-
]]);
|
|
1892
|
-
} else if (token.type === "tableRow" || token.type === "tableDelimiterRow") {
|
|
1893
|
-
inFirstCellAwaitingPipe = true;
|
|
1894
|
-
currentCell = void 0;
|
|
1895
|
-
lastCell = [
|
|
1896
|
-
0,
|
|
1897
|
-
0,
|
|
1898
|
-
0,
|
|
1899
|
-
0
|
|
1900
|
-
];
|
|
1901
|
-
cell = [
|
|
1902
|
-
0,
|
|
1903
|
-
index + 1,
|
|
1904
|
-
0,
|
|
1905
|
-
0
|
|
1906
|
-
];
|
|
1907
|
-
if (afterHeadAwaitingFirstBodyRow) {
|
|
1908
|
-
afterHeadAwaitingFirstBodyRow = false;
|
|
1909
|
-
currentBody = {
|
|
1910
|
-
type: "tableBody",
|
|
1911
|
-
start: Object.assign({}, token.start),
|
|
1912
|
-
end: Object.assign({}, token.end)
|
|
1913
|
-
};
|
|
1914
|
-
map.add(index, 0, [[
|
|
1915
|
-
"enter",
|
|
1916
|
-
currentBody,
|
|
1917
|
-
context
|
|
1918
|
-
]]);
|
|
1919
|
-
}
|
|
1920
|
-
rowKind = token.type === "tableDelimiterRow" ? 2 : currentBody ? 3 : 1;
|
|
1921
|
-
} else if (rowKind && (token.type === "data" || token.type === "tableDelimiterMarker" || token.type === "tableDelimiterFiller")) {
|
|
1922
|
-
inFirstCellAwaitingPipe = false;
|
|
1923
|
-
if (cell[2] === 0) {
|
|
1924
|
-
if (lastCell[1] !== 0) {
|
|
1925
|
-
cell[0] = cell[1];
|
|
1926
|
-
currentCell = flushCell(map, context, lastCell, rowKind, void 0, currentCell);
|
|
1927
|
-
lastCell = [
|
|
1928
|
-
0,
|
|
1929
|
-
0,
|
|
1930
|
-
0,
|
|
1931
|
-
0
|
|
1932
|
-
];
|
|
1933
|
-
}
|
|
1934
|
-
cell[2] = index;
|
|
1935
|
-
}
|
|
1936
|
-
} else if (token.type === "tableCellDivider") if (inFirstCellAwaitingPipe) inFirstCellAwaitingPipe = false;
|
|
1937
|
-
else {
|
|
1938
|
-
if (lastCell[1] !== 0) {
|
|
1939
|
-
cell[0] = cell[1];
|
|
1940
|
-
currentCell = flushCell(map, context, lastCell, rowKind, void 0, currentCell);
|
|
1941
|
-
}
|
|
1942
|
-
lastCell = cell;
|
|
1943
|
-
cell = [
|
|
1944
|
-
lastCell[1],
|
|
1945
|
-
index,
|
|
1946
|
-
0,
|
|
1947
|
-
0
|
|
1948
|
-
];
|
|
1949
|
-
}
|
|
1950
|
-
} else if (token.type === "tableHead") {
|
|
1951
|
-
afterHeadAwaitingFirstBodyRow = true;
|
|
1952
|
-
lastTableEnd = index;
|
|
1953
|
-
} else if (token.type === "tableRow" || token.type === "tableDelimiterRow") {
|
|
1954
|
-
lastTableEnd = index;
|
|
1955
|
-
if (lastCell[1] !== 0) {
|
|
1956
|
-
cell[0] = cell[1];
|
|
1957
|
-
currentCell = flushCell(map, context, lastCell, rowKind, index, currentCell);
|
|
1958
|
-
} else if (cell[1] !== 0) currentCell = flushCell(map, context, cell, rowKind, index, currentCell);
|
|
1959
|
-
rowKind = 0;
|
|
1960
|
-
} else if (rowKind && (token.type === "data" || token.type === "tableDelimiterMarker" || token.type === "tableDelimiterFiller")) cell[3] = index;
|
|
1961
|
-
}
|
|
1962
|
-
if (lastTableEnd !== 0) flushTableEnd(map, context, lastTableEnd, currentTable, currentBody);
|
|
1963
|
-
map.consume(context.events);
|
|
1964
|
-
index = -1;
|
|
1965
|
-
while (++index < context.events.length) {
|
|
1966
|
-
const event = context.events[index];
|
|
1967
|
-
if (event[0] === "enter" && event[1].type === "table") event[1]._align = gfmTableAlign(context.events, index);
|
|
1968
|
-
}
|
|
1969
|
-
return events;
|
|
1970
|
-
}
|
|
1971
|
-
/**
|
|
1972
|
-
* Generate a cell.
|
|
1973
|
-
*
|
|
1974
|
-
* @param {EditMap} map
|
|
1975
|
-
* @param {Readonly<TokenizeContext>} context
|
|
1976
|
-
* @param {Readonly<Range>} range
|
|
1977
|
-
* @param {RowKind} rowKind
|
|
1978
|
-
* @param {number | undefined} rowEnd
|
|
1979
|
-
* @param {Token | undefined} previousCell
|
|
1980
|
-
* @returns {Token | undefined}
|
|
1981
|
-
*/
|
|
1982
|
-
function flushCell(map, context, range, rowKind, rowEnd, previousCell) {
|
|
1983
|
-
const groupName = rowKind === 1 ? "tableHeader" : rowKind === 2 ? "tableDelimiter" : "tableData";
|
|
1984
|
-
const valueName = "tableContent";
|
|
1985
|
-
if (range[0] !== 0) {
|
|
1986
|
-
previousCell.end = Object.assign({}, getPoint(context.events, range[0]));
|
|
1987
|
-
map.add(range[0], 0, [[
|
|
1988
|
-
"exit",
|
|
1989
|
-
previousCell,
|
|
1990
|
-
context
|
|
1991
|
-
]]);
|
|
1992
|
-
}
|
|
1993
|
-
const now = getPoint(context.events, range[1]);
|
|
1994
|
-
previousCell = {
|
|
1995
|
-
type: groupName,
|
|
1996
|
-
start: Object.assign({}, now),
|
|
1997
|
-
end: Object.assign({}, now)
|
|
1998
|
-
};
|
|
1999
|
-
map.add(range[1], 0, [[
|
|
2000
|
-
"enter",
|
|
2001
|
-
previousCell,
|
|
2002
|
-
context
|
|
2003
|
-
]]);
|
|
2004
|
-
if (range[2] !== 0) {
|
|
2005
|
-
const relatedStart = getPoint(context.events, range[2]);
|
|
2006
|
-
const relatedEnd = getPoint(context.events, range[3]);
|
|
2007
|
-
/** @type {Token} */
|
|
2008
|
-
const valueToken = {
|
|
2009
|
-
type: valueName,
|
|
2010
|
-
start: Object.assign({}, relatedStart),
|
|
2011
|
-
end: Object.assign({}, relatedEnd)
|
|
2012
|
-
};
|
|
2013
|
-
map.add(range[2], 0, [[
|
|
2014
|
-
"enter",
|
|
2015
|
-
valueToken,
|
|
2016
|
-
context
|
|
2017
|
-
]]);
|
|
2018
|
-
if (rowKind !== 2) {
|
|
2019
|
-
const start = context.events[range[2]];
|
|
2020
|
-
const end = context.events[range[3]];
|
|
2021
|
-
start[1].end = Object.assign({}, end[1].end);
|
|
2022
|
-
start[1].type = "chunkText";
|
|
2023
|
-
start[1].contentType = "text";
|
|
2024
|
-
if (range[3] > range[2] + 1) {
|
|
2025
|
-
const a = range[2] + 1;
|
|
2026
|
-
const b = range[3] - range[2] - 1;
|
|
2027
|
-
map.add(a, b, []);
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
map.add(range[3] + 1, 0, [[
|
|
2031
|
-
"exit",
|
|
2032
|
-
valueToken,
|
|
2033
|
-
context
|
|
2034
|
-
]]);
|
|
2035
|
-
}
|
|
2036
|
-
if (rowEnd !== void 0) {
|
|
2037
|
-
previousCell.end = Object.assign({}, getPoint(context.events, rowEnd));
|
|
2038
|
-
map.add(rowEnd, 0, [[
|
|
2039
|
-
"exit",
|
|
2040
|
-
previousCell,
|
|
2041
|
-
context
|
|
2042
|
-
]]);
|
|
2043
|
-
previousCell = void 0;
|
|
2044
|
-
}
|
|
2045
|
-
return previousCell;
|
|
2046
|
-
}
|
|
2047
|
-
/**
|
|
2048
|
-
* Generate table end (and table body end).
|
|
2049
|
-
*
|
|
2050
|
-
* @param {Readonly<EditMap>} map
|
|
2051
|
-
* @param {Readonly<TokenizeContext>} context
|
|
2052
|
-
* @param {number} index
|
|
2053
|
-
* @param {Token} table
|
|
2054
|
-
* @param {Token | undefined} tableBody
|
|
2055
|
-
*/
|
|
2056
|
-
function flushTableEnd(map, context, index, table, tableBody) {
|
|
2057
|
-
/** @type {Array<Event>} */
|
|
2058
|
-
const exits = [];
|
|
2059
|
-
const related = getPoint(context.events, index);
|
|
2060
|
-
if (tableBody) {
|
|
2061
|
-
tableBody.end = Object.assign({}, related);
|
|
2062
|
-
exits.push([
|
|
2063
|
-
"exit",
|
|
2064
|
-
tableBody,
|
|
2065
|
-
context
|
|
2066
|
-
]);
|
|
2067
|
-
}
|
|
2068
|
-
table.end = Object.assign({}, related);
|
|
2069
|
-
exits.push([
|
|
2070
|
-
"exit",
|
|
2071
|
-
table,
|
|
2072
|
-
context
|
|
2073
|
-
]);
|
|
2074
|
-
map.add(index + 1, 0, exits);
|
|
2075
|
-
}
|
|
2076
|
-
/**
|
|
2077
|
-
* @param {Readonly<Array<Event>>} events
|
|
2078
|
-
* @param {number} index
|
|
2079
|
-
* @returns {Readonly<Point>}
|
|
2080
|
-
*/
|
|
2081
|
-
function getPoint(events, index) {
|
|
2082
|
-
const event = events[index];
|
|
2083
|
-
const side = event[0] === "enter" ? "start" : "end";
|
|
2084
|
-
return event[1][side];
|
|
2085
|
-
}
|
|
2086
|
-
//#endregion
|
|
2087
|
-
//#region node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
|
|
2088
|
-
/**
|
|
2089
|
-
* @import {Extension, State, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
2090
|
-
*/
|
|
2091
|
-
var tasklistCheck = {
|
|
2092
|
-
name: "tasklistCheck",
|
|
2093
|
-
tokenize: tokenizeTasklistCheck
|
|
2094
|
-
};
|
|
2095
|
-
/**
|
|
2096
|
-
* Create an HTML extension for `micromark` to support GFM task list items
|
|
2097
|
-
* syntax.
|
|
2098
|
-
*
|
|
2099
|
-
* @returns {Extension}
|
|
2100
|
-
* Extension for `micromark` that can be passed in `htmlExtensions` to
|
|
2101
|
-
* support GFM task list items when serializing to HTML.
|
|
2102
|
-
*/
|
|
2103
|
-
function gfmTaskListItem() {
|
|
2104
|
-
return { text: { [91]: tasklistCheck } };
|
|
2105
|
-
}
|
|
2106
|
-
/**
|
|
2107
|
-
* @this {TokenizeContext}
|
|
2108
|
-
* @type {Tokenizer}
|
|
2109
|
-
*/
|
|
2110
|
-
function tokenizeTasklistCheck(effects, ok, nok) {
|
|
2111
|
-
const self = this;
|
|
2112
|
-
return open;
|
|
2113
|
-
/**
|
|
2114
|
-
* At start of task list item check.
|
|
2115
|
-
*
|
|
2116
|
-
* ```markdown
|
|
2117
|
-
* > | * [x] y.
|
|
2118
|
-
* ^
|
|
2119
|
-
* ```
|
|
2120
|
-
*
|
|
2121
|
-
* @type {State}
|
|
2122
|
-
*/
|
|
2123
|
-
function open(code) {
|
|
2124
|
-
if (self.previous !== null || !self._gfmTasklistFirstContentOfListItem) return nok(code);
|
|
2125
|
-
effects.enter("taskListCheck");
|
|
2126
|
-
effects.enter("taskListCheckMarker");
|
|
2127
|
-
effects.consume(code);
|
|
2128
|
-
effects.exit("taskListCheckMarker");
|
|
2129
|
-
return inside;
|
|
2130
|
-
}
|
|
2131
|
-
/**
|
|
2132
|
-
* In task list item check.
|
|
2133
|
-
*
|
|
2134
|
-
* ```markdown
|
|
2135
|
-
* > | * [x] y.
|
|
2136
|
-
* ^
|
|
2137
|
-
* ```
|
|
2138
|
-
*
|
|
2139
|
-
* @type {State}
|
|
2140
|
-
*/
|
|
2141
|
-
function inside(code) {
|
|
2142
|
-
if (markdownLineEndingOrSpace(code)) {
|
|
2143
|
-
effects.enter("taskListCheckValueUnchecked");
|
|
2144
|
-
effects.consume(code);
|
|
2145
|
-
effects.exit("taskListCheckValueUnchecked");
|
|
2146
|
-
return close;
|
|
2147
|
-
}
|
|
2148
|
-
if (code === 88 || code === 120) {
|
|
2149
|
-
effects.enter("taskListCheckValueChecked");
|
|
2150
|
-
effects.consume(code);
|
|
2151
|
-
effects.exit("taskListCheckValueChecked");
|
|
2152
|
-
return close;
|
|
2153
|
-
}
|
|
2154
|
-
return nok(code);
|
|
2155
|
-
}
|
|
2156
|
-
/**
|
|
2157
|
-
* At close of task list item check.
|
|
2158
|
-
*
|
|
2159
|
-
* ```markdown
|
|
2160
|
-
* > | * [x] y.
|
|
2161
|
-
* ^
|
|
2162
|
-
* ```
|
|
2163
|
-
*
|
|
2164
|
-
* @type {State}
|
|
2165
|
-
*/
|
|
2166
|
-
function close(code) {
|
|
2167
|
-
if (code === 93) {
|
|
2168
|
-
effects.enter("taskListCheckMarker");
|
|
2169
|
-
effects.consume(code);
|
|
2170
|
-
effects.exit("taskListCheckMarker");
|
|
2171
|
-
effects.exit("taskListCheck");
|
|
2172
|
-
return after;
|
|
2173
|
-
}
|
|
2174
|
-
return nok(code);
|
|
2175
|
-
}
|
|
2176
|
-
/**
|
|
2177
|
-
* @type {State}
|
|
2178
|
-
*/
|
|
2179
|
-
function after(code) {
|
|
2180
|
-
if (markdownLineEnding(code)) return ok(code);
|
|
2181
|
-
if (markdownSpace(code)) return effects.check({ tokenize: spaceThenNonSpace }, ok, nok)(code);
|
|
2182
|
-
return nok(code);
|
|
2183
|
-
}
|
|
2184
|
-
}
|
|
2185
|
-
/**
|
|
2186
|
-
* @this {TokenizeContext}
|
|
2187
|
-
* @type {Tokenizer}
|
|
2188
|
-
*/
|
|
2189
|
-
function spaceThenNonSpace(effects, ok, nok) {
|
|
2190
|
-
return factorySpace(effects, after, "whitespace");
|
|
2191
|
-
/**
|
|
2192
|
-
* After whitespace, after task list item check.
|
|
2193
|
-
*
|
|
2194
|
-
* ```markdown
|
|
2195
|
-
* > | * [x] y.
|
|
2196
|
-
* ^
|
|
2197
|
-
* ```
|
|
2198
|
-
*
|
|
2199
|
-
* @type {State}
|
|
2200
|
-
*/
|
|
2201
|
-
function after(code) {
|
|
2202
|
-
return code === null ? nok(code) : ok(code);
|
|
2203
|
-
}
|
|
2204
|
-
}
|
|
2205
|
-
//#endregion
|
|
2206
|
-
//#region node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js
|
|
2207
|
-
/**
|
|
2208
|
-
* @typedef {import('micromark-extension-gfm-footnote').HtmlOptions} HtmlOptions
|
|
2209
|
-
* @typedef {import('micromark-extension-gfm-strikethrough').Options} Options
|
|
2210
|
-
* @typedef {import('micromark-util-types').Extension} Extension
|
|
2211
|
-
* @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension
|
|
2212
|
-
*/
|
|
2213
|
-
/**
|
|
2214
|
-
* Create an extension for `micromark` to enable GFM syntax.
|
|
2215
|
-
*
|
|
2216
|
-
* @param {Options | null | undefined} [options]
|
|
2217
|
-
* Configuration (optional).
|
|
2218
|
-
*
|
|
2219
|
-
* Passed to `micromark-extens-gfm-strikethrough`.
|
|
2220
|
-
* @returns {Extension}
|
|
2221
|
-
* Extension for `micromark` that can be passed in `extensions` to enable GFM
|
|
2222
|
-
* syntax.
|
|
2223
|
-
*/
|
|
2224
|
-
function gfm(options) {
|
|
2225
|
-
return combineExtensions([
|
|
2226
|
-
gfmAutolinkLiteral(),
|
|
2227
|
-
gfmFootnote(),
|
|
2228
|
-
gfmStrikethrough(options),
|
|
2229
|
-
gfmTable(),
|
|
2230
|
-
gfmTaskListItem()
|
|
2231
|
-
]);
|
|
2232
|
-
}
|
|
2233
|
-
//#endregion
|
|
2234
|
-
export { gfm as t };
|