palettecn 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +10 -0
- package/dist/web/nitro.json +17 -0
- package/dist/web/public/assets/abap-BdvmRIgS.js +1 -0
- package/dist/web/public/assets/actionscript-3-et0rQaqm.js +1 -0
- package/dist/web/public/assets/ada-DPgrustg.js +1 -0
- package/dist/web/public/assets/andromeeda-DJl1yeV_.js +1 -0
- package/dist/web/public/assets/angular-html-Dm7s7tSx.js +1 -0
- package/dist/web/public/assets/angular-ts-B_ywTULt.js +1 -0
- package/dist/web/public/assets/apache-CFpsYX8S.js +1 -0
- package/dist/web/public/assets/apex-CN5n6pbI.js +1 -0
- package/dist/web/public/assets/apl-Dm11wHHc.js +1 -0
- package/dist/web/public/assets/applescript-JrY23hsL.js +1 -0
- package/dist/web/public/assets/ara-DR83hn3A.js +1 -0
- package/dist/web/public/assets/asciidoc-Dpu9XLB1.js +1 -0
- package/dist/web/public/assets/asm-BYI3A31V.js +1 -0
- package/dist/web/public/assets/astro-DP1naDCT.js +1 -0
- package/dist/web/public/assets/aurora-x-Nav5jnoQ.js +1 -0
- package/dist/web/public/assets/awk-BIoTx_w6.js +1 -0
- package/dist/web/public/assets/ayu-dark-H5QV5J7K.js +1 -0
- package/dist/web/public/assets/ayu-light-BrwTNGnU.js +1 -0
- package/dist/web/public/assets/ayu-mirage-Bg6FpF5w.js +1 -0
- package/dist/web/public/assets/ballerina-BFvDNd4T.js +1 -0
- package/dist/web/public/assets/bat-DtQkx7Ny.js +1 -0
- package/dist/web/public/assets/beancount-BIjKALa1.js +1 -0
- package/dist/web/public/assets/berry-BPkDN_EZ.js +1 -0
- package/dist/web/public/assets/bibtex-Dur2CNW6.js +1 -0
- package/dist/web/public/assets/bicep-BMz1bZ7m.js +1 -0
- package/dist/web/public/assets/bird2-91rdr9s7.js +1 -0
- package/dist/web/public/assets/blade-DD5O596X.js +1 -0
- package/dist/web/public/assets/bsl-FmB7U2qd.js +1 -0
- package/dist/web/public/assets/bundle-mjs-Bso3xn9x.js +1 -0
- package/dist/web/public/assets/c-DqqBLLyl.js +1 -0
- package/dist/web/public/assets/c3-CJTbEooS.js +1 -0
- package/dist/web/public/assets/cadence-C0GI7BZZ.js +1 -0
- package/dist/web/public/assets/cairo-B5JMmIC0.js +1 -0
- package/dist/web/public/assets/catppuccin-frappe-D76-cUjK.js +1 -0
- package/dist/web/public/assets/catppuccin-latte-DUHNJ_6_.js +1 -0
- package/dist/web/public/assets/catppuccin-macchiato-CFhPH2wd.js +1 -0
- package/dist/web/public/assets/catppuccin-mocha-BRD0cvUW.js +1 -0
- package/dist/web/public/assets/chunk-FRKYWMV7-DUkk3w4h.js +122 -0
- package/dist/web/public/assets/clarity-KgUVrNfC.js +1 -0
- package/dist/web/public/assets/clojure-BhQuoGIG.js +1 -0
- package/dist/web/public/assets/cmake-CA59gUFQ.js +1 -0
- package/dist/web/public/assets/cobol-CCFShgGZ.js +1 -0
- package/dist/web/public/assets/codeowners-CD36YqjJ.js +1 -0
- package/dist/web/public/assets/codeql-CrMosKUt.js +1 -0
- package/dist/web/public/assets/coffee-C-Mn3tBT.js +1 -0
- package/dist/web/public/assets/common-lisp-DYnOjAFz.js +1 -0
- package/dist/web/public/assets/components-DiZ1dSl3.js +77 -0
- package/dist/web/public/assets/coq-BaHtq3Qt.js +1 -0
- package/dist/web/public/assets/cpp-D8Y73ItU.js +1 -0
- package/dist/web/public/assets/crystal-CnXWqbxx.js +1 -0
- package/dist/web/public/assets/csharp-D6sghVPa.js +1 -0
- package/dist/web/public/assets/css-CUGjdPw_.js +1 -0
- package/dist/web/public/assets/csv-DuxyxUAI.js +1 -0
- package/dist/web/public/assets/cue-D9NRAX0_.js +1 -0
- package/dist/web/public/assets/cypher-HJRdtilF.js +1 -0
- package/dist/web/public/assets/d-B4Ont7_X.js +1 -0
- package/dist/web/public/assets/dark-plus-DZSBycyp.js +1 -0
- package/dist/web/public/assets/dart-Dp4asavE.js +1 -0
- package/dist/web/public/assets/dax-DBUubp6S.js +1 -0
- package/dist/web/public/assets/desktop-DQ0n6zIQ.js +1 -0
- package/dist/web/public/assets/diff-CFHlrffC.js +1 -0
- package/dist/web/public/assets/docker-BuefmsF5.js +1 -0
- package/dist/web/public/assets/dotenv-BKTsUQ_r.js +1 -0
- package/dist/web/public/assets/dracula-MOn9qacs.js +1 -0
- package/dist/web/public/assets/dracula-soft-C4r_sC_D.js +1 -0
- package/dist/web/public/assets/dream-maker-BNdv5lLS.js +1 -0
- package/dist/web/public/assets/edge-C-Mi8Oda.js +1 -0
- package/dist/web/public/assets/elixir-CTS5wQtX.js +1 -0
- package/dist/web/public/assets/elm-rM310x8D.js +1 -0
- package/dist/web/public/assets/emacs-lisp-D9FIGRtM.js +1 -0
- package/dist/web/public/assets/erb-oaGjGVGO.js +1 -0
- package/dist/web/public/assets/erlang-q4Mkyw3m.js +1 -0
- package/dist/web/public/assets/everforest-dark-CNa2QFRn.js +1 -0
- package/dist/web/public/assets/everforest-light-DRbUDqJT.js +1 -0
- package/dist/web/public/assets/fennel-DpqQTaVZ.js +1 -0
- package/dist/web/public/assets/field-1-Ujza0S5j.js +1 -0
- package/dist/web/public/assets/fish-hyk5x6Q4.js +1 -0
- package/dist/web/public/assets/fluent-DMll-MGX.js +1 -0
- package/dist/web/public/assets/fortran-fixed-form-BmdfKovV.js +1 -0
- package/dist/web/public/assets/fortran-free-form-MCAifii4.js +1 -0
- package/dist/web/public/assets/fsharp-DLlBn9Nl.js +1 -0
- package/dist/web/public/assets/gdresource-BzFzBRli.js +1 -0
- package/dist/web/public/assets/gdscript-D3R4J0Cv.js +1 -0
- package/dist/web/public/assets/gdshader-BAubtqqN.js +1 -0
- package/dist/web/public/assets/genie-BnIIX2pC.js +1 -0
- package/dist/web/public/assets/gherkin-CL3NUuB1.js +1 -0
- package/dist/web/public/assets/git-commit-BYPE8h85.js +1 -0
- package/dist/web/public/assets/git-rebase-Bmmgf6eN.js +1 -0
- package/dist/web/public/assets/github-dark-default-C6I2oE4c.js +1 -0
- package/dist/web/public/assets/github-dark-dimmed-DEqwxg6D.js +1 -0
- package/dist/web/public/assets/github-dark-high-contrast-DDt3j0cs.js +1 -0
- package/dist/web/public/assets/github-dark-oLN6SDKl.js +1 -0
- package/dist/web/public/assets/github-light-DaN-N2Gj.js +1 -0
- package/dist/web/public/assets/github-light-default-B3EwMbS7.js +1 -0
- package/dist/web/public/assets/github-light-high-contrast-Cl9D0f_e.js +1 -0
- package/dist/web/public/assets/gleam-Cvj8QRtQ.js +1 -0
- package/dist/web/public/assets/glimmer-js-CahbROb1.js +1 -0
- package/dist/web/public/assets/glimmer-ts-JMFYNbot.js +1 -0
- package/dist/web/public/assets/global-XWAvxWcA.css +2 -0
- package/dist/web/public/assets/glsl-BCuCNM3V.js +1 -0
- package/dist/web/public/assets/gn-DxCHSEMl.js +1 -0
- package/dist/web/public/assets/gnuplot-CkGXHK7B.js +1 -0
- package/dist/web/public/assets/go-B_NLCuTj.js +1 -0
- package/dist/web/public/assets/graphql-RXOfHGfI.js +1 -0
- package/dist/web/public/assets/groovy-DVge8oRs.js +1 -0
- package/dist/web/public/assets/gruvbox-dark-hard-BwZz1yni.js +1 -0
- package/dist/web/public/assets/gruvbox-dark-medium-Bqy6jkuO.js +1 -0
- package/dist/web/public/assets/gruvbox-dark-soft-DjUvyUfH.js +1 -0
- package/dist/web/public/assets/gruvbox-light-hard-BTLmfPdm.js +1 -0
- package/dist/web/public/assets/gruvbox-light-medium-DeWqsWs6.js +1 -0
- package/dist/web/public/assets/gruvbox-light-soft-BL8ld-1F.js +1 -0
- package/dist/web/public/assets/hack-BBQpwyf_.js +1 -0
- package/dist/web/public/assets/haml-mWELc9kh.js +1 -0
- package/dist/web/public/assets/handlebars-COrUo8cC.js +1 -0
- package/dist/web/public/assets/haskell-DRmM8XlQ.js +1 -0
- package/dist/web/public/assets/haxe-BEhq8ZEr.js +1 -0
- package/dist/web/public/assets/hcl-B5ZIaGS0.js +1 -0
- package/dist/web/public/assets/highlighted-body-TPN3WLV5-YJgGFx4e.js +1 -0
- package/dist/web/public/assets/hjson-B9uRLqIO.js +1 -0
- package/dist/web/public/assets/hlsl-Hv1kKjrS.js +1 -0
- package/dist/web/public/assets/horizon-ClXGBjWw.js +1 -0
- package/dist/web/public/assets/horizon-bright-CvUCr3ux.js +1 -0
- package/dist/web/public/assets/houston-NqkqG60q.js +1 -0
- package/dist/web/public/assets/html-cmigv1ou.js +1 -0
- package/dist/web/public/assets/html-derivative-B3me0pSu.js +1 -0
- package/dist/web/public/assets/http-BojM9cyU.js +1 -0
- package/dist/web/public/assets/hurl-BxEmMiGP.js +1 -0
- package/dist/web/public/assets/hxml-CoBuVbfs.js +1 -0
- package/dist/web/public/assets/hy-CeISYGGU.js +1 -0
- package/dist/web/public/assets/imba-xjcDFXUW.js +1 -0
- package/dist/web/public/assets/ini-D0ZCSj6e.js +1 -0
- package/dist/web/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/web/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/web/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/web/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/web/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/web/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/web/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/web/public/assets/java-BvheClGI.js +1 -0
- package/dist/web/public/assets/javascript-DjlJORDg.js +1 -0
- package/dist/web/public/assets/jinja-Bi4sG72X.js +1 -0
- package/dist/web/public/assets/jison-BTz5Ik2Y.js +1 -0
- package/dist/web/public/assets/json-CiTd40Rg.js +1 -0
- package/dist/web/public/assets/json5-FR9EyF7a.js +1 -0
- package/dist/web/public/assets/jsonc-CHIeFfsD.js +1 -0
- package/dist/web/public/assets/jsonl-B4WQkwTf.js +1 -0
- package/dist/web/public/assets/jsonnet-vd-gzGkL.js +1 -0
- package/dist/web/public/assets/jssm-C_bj1LkZ.js +1 -0
- package/dist/web/public/assets/jsx-Bx-RZMFH.js +1 -0
- package/dist/web/public/assets/jsx-runtime-n8k0hwt8.js +1 -0
- package/dist/web/public/assets/julia-BKcIfSxk.js +1 -0
- package/dist/web/public/assets/just-IkZCagAs.js +1 -0
- package/dist/web/public/assets/kanagawa-dragon-B3Cz89vt.js +1 -0
- package/dist/web/public/assets/kanagawa-lotus-CRe_W5Ft.js +1 -0
- package/dist/web/public/assets/kanagawa-wave-BPqZ5XB7.js +1 -0
- package/dist/web/public/assets/kdl-BzL_Ak31.js +1 -0
- package/dist/web/public/assets/kotlin-BQQFk6ql.js +1 -0
- package/dist/web/public/assets/kusto-vWe6OLKV.js +1 -0
- package/dist/web/public/assets/laserwave-CwtvEUcj.js +1 -0
- package/dist/web/public/assets/latex-9N90_WFU.js +1 -0
- package/dist/web/public/assets/lean-CaqenOqv.js +1 -0
- package/dist/web/public/assets/less-CERnPzn6.js +1 -0
- package/dist/web/public/assets/light-plus-B9_M_OKq.js +1 -0
- package/dist/web/public/assets/liquid-CQLPDP7m.js +1 -0
- package/dist/web/public/assets/llvm-BylJXvm7.js +1 -0
- package/dist/web/public/assets/log-CBBcNcbO.js +1 -0
- package/dist/web/public/assets/logo-r-8Jc8Xk.js +1 -0
- package/dist/web/public/assets/lua-BBL6LXKd.js +1 -0
- package/dist/web/public/assets/luau-B2g7L-zP.js +1 -0
- package/dist/web/public/assets/main-0lKVDR64.css +2 -0
- package/dist/web/public/assets/main-CcNf0BOb.js +126 -0
- package/dist/web/public/assets/make-DK-HzJ2w.js +1 -0
- package/dist/web/public/assets/markdown-FgdsukgR.js +1 -0
- package/dist/web/public/assets/marko-CLZwt2N2.js +1 -0
- package/dist/web/public/assets/material-theme-DOJ9PS4O.js +1 -0
- package/dist/web/public/assets/material-theme-darker-DOurH5jT.js +1 -0
- package/dist/web/public/assets/material-theme-lighter-BfPWxCP6.js +1 -0
- package/dist/web/public/assets/material-theme-ocean-BcO5PKoq.js +1 -0
- package/dist/web/public/assets/material-theme-palenight-ClWQBDDd.js +1 -0
- package/dist/web/public/assets/matlab-DwyUVNXd.js +1 -0
- package/dist/web/public/assets/mdc-Bo8CRPg4.js +1 -0
- package/dist/web/public/assets/mdx-3EBShbsD.js +1 -0
- package/dist/web/public/assets/mermaid-ByG2-SLz.js +1 -0
- package/dist/web/public/assets/mermaid-O7DHMXV3-COAgR3aM.js +1 -0
- package/dist/web/public/assets/min-dark-ClJ2x5pc.js +1 -0
- package/dist/web/public/assets/min-light-BsOUz5iE.js +1 -0
- package/dist/web/public/assets/mipsasm-BKDtQCf3.js +1 -0
- package/dist/web/public/assets/mojo-DmEAK7iv.js +1 -0
- package/dist/web/public/assets/monokai-BKc3VADO.js +1 -0
- package/dist/web/public/assets/moonbit-Qm8v_cKN.js +1 -0
- package/dist/web/public/assets/move-CMectUPk.js +1 -0
- package/dist/web/public/assets/narrat-Bdm8NaK8.js +1 -0
- package/dist/web/public/assets/nextflow-BpSt05nC.js +1 -0
- package/dist/web/public/assets/nextflow-groovy-BZ-bqJ-u.js +1 -0
- package/dist/web/public/assets/nginx-ChZL5FWE.js +1 -0
- package/dist/web/public/assets/night-owl-CbFc5pXO.js +1 -0
- package/dist/web/public/assets/night-owl-light-zYbVCVuz.js +1 -0
- package/dist/web/public/assets/nim-5JnPAJWa.js +1 -0
- package/dist/web/public/assets/nix-P5P-2qHs.js +1 -0
- package/dist/web/public/assets/nord-C7hKGudV.js +1 -0
- package/dist/web/public/assets/nushell-DKPnC5RG.js +1 -0
- package/dist/web/public/assets/objective-c-BPwXtM0v.js +1 -0
- package/dist/web/public/assets/objective-cpp-CWYEdWNG.js +1 -0
- package/dist/web/public/assets/ocaml-CL7OJ02v.js +1 -0
- package/dist/web/public/assets/odin-Dtay25eA.js +1 -0
- package/dist/web/public/assets/one-dark-pro-CrdFNNwF.js +1 -0
- package/dist/web/public/assets/one-light-BUiz8X4B.js +1 -0
- package/dist/web/public/assets/openscad-WD4sXUUp.js +1 -0
- package/dist/web/public/assets/pascal-A6-MZnZ8.js +1 -0
- package/dist/web/public/assets/perl-Yq3AfnVV.js +1 -0
- package/dist/web/public/assets/php-CCj0foPx.js +1 -0
- package/dist/web/public/assets/pkl-cmPbg8fI.js +1 -0
- package/dist/web/public/assets/plastic-DtQ_LnDB.js +1 -0
- package/dist/web/public/assets/plsql-DwmuVd7q.js +1 -0
- package/dist/web/public/assets/po-CkVxkZaj.js +1 -0
- package/dist/web/public/assets/poimandres-Dt0xZuaa.js +1 -0
- package/dist/web/public/assets/polar-hStNz_W2.js +1 -0
- package/dist/web/public/assets/postcss-ZIk0AQ7M.js +1 -0
- package/dist/web/public/assets/powerquery-D0gqoHHD.js +1 -0
- package/dist/web/public/assets/powershell-DXB5HoVh.js +1 -0
- package/dist/web/public/assets/prisma-DmTrfxC0.js +1 -0
- package/dist/web/public/assets/prolog-CdoyriEj.js +1 -0
- package/dist/web/public/assets/proto-4MrN11dS.js +1 -0
- package/dist/web/public/assets/pug-svYJKDOQ.js +1 -0
- package/dist/web/public/assets/puppet-MEaLGpAP.js +1 -0
- package/dist/web/public/assets/purescript-CPxCorqB.js +1 -0
- package/dist/web/public/assets/python-f4fp5z0z.js +1 -0
- package/dist/web/public/assets/qml-BzEtWdqI.js +1 -0
- package/dist/web/public/assets/qmldir-DCjSceJ_.js +1 -0
- package/dist/web/public/assets/qss-BdM02NUc.js +1 -0
- package/dist/web/public/assets/r-luosIeJH.js +1 -0
- package/dist/web/public/assets/racket-D2tfa8Zc.js +1 -0
- package/dist/web/public/assets/raku-KeGPJVZg.js +1 -0
- package/dist/web/public/assets/razor-Bokxs4Qx.js +1 -0
- package/dist/web/public/assets/red-C0qZ-1lN.js +1 -0
- package/dist/web/public/assets/reg-DdnswvOj.js +1 -0
- package/dist/web/public/assets/regexp-CYC8h6V9.js +1 -0
- package/dist/web/public/assets/rel-RhzEfSRc.js +1 -0
- package/dist/web/public/assets/riscv-dS5TzX10.js +1 -0
- package/dist/web/public/assets/ron-CQjQSCVp.js +1 -0
- package/dist/web/public/assets/rose-pine-C89ViLdr.js +1 -0
- package/dist/web/public/assets/rose-pine-dawn-Dq2gf0yi.js +1 -0
- package/dist/web/public/assets/rose-pine-moon-CBDvXVs_.js +1 -0
- package/dist/web/public/assets/rosmsg-nvjuSIGu.js +1 -0
- package/dist/web/public/assets/routes-BXqJCOpL.js +542 -0
- package/dist/web/public/assets/rst-1xwvVGf7.js +1 -0
- package/dist/web/public/assets/ruby-Blad-eDx.js +1 -0
- package/dist/web/public/assets/rust-rV8q_xyI.js +1 -0
- package/dist/web/public/assets/sas-DUPWtptg.js +1 -0
- package/dist/web/public/assets/sass-CuxdoNN0.js +1 -0
- package/dist/web/public/assets/scala-Df4L7N3R.js +1 -0
- package/dist/web/public/assets/scheme-DalRmAPH.js +1 -0
- package/dist/web/public/assets/scss-CYQ8LEwP.js +1 -0
- package/dist/web/public/assets/sdbl-B_TmFnGf.js +1 -0
- package/dist/web/public/assets/shaderlab-DYEMDY3e.js +1 -0
- package/dist/web/public/assets/shellscript-DjKZ34ac.js +1 -0
- package/dist/web/public/assets/shellsession-C3kcnBnh.js +1 -0
- package/dist/web/public/assets/slack-dark-ak_jOeLl.js +1 -0
- package/dist/web/public/assets/slack-ochin-ByiYhLwu.js +1 -0
- package/dist/web/public/assets/smalltalk-DTTnjjZJ.js +1 -0
- package/dist/web/public/assets/snazzy-light-BBRYeY60.js +1 -0
- package/dist/web/public/assets/solarized-dark-BtoLnWkw.js +1 -0
- package/dist/web/public/assets/solarized-light-CtzUA7GI.js +1 -0
- package/dist/web/public/assets/solidity-CSIHEQ2t.js +1 -0
- package/dist/web/public/assets/soy-BN0uzUAI.js +1 -0
- package/dist/web/public/assets/sparql-B6k9tA6Q.js +1 -0
- package/dist/web/public/assets/splunk-DkRzN7V_.js +1 -0
- package/dist/web/public/assets/sql-Bx-WX28V.js +1 -0
- package/dist/web/public/assets/ssh-config-Bqp7ng33.js +1 -0
- package/dist/web/public/assets/stata-HAj7doU8.js +1 -0
- package/dist/web/public/assets/stylus-CdbCxDLX.js +1 -0
- package/dist/web/public/assets/surrealql-BkGf0I3k.js +1 -0
- package/dist/web/public/assets/svelte-DtWg6ssL.js +1 -0
- package/dist/web/public/assets/swift-yRu2dtgr.js +1 -0
- package/dist/web/public/assets/synthwave-84-2WIu6MHX.js +1 -0
- package/dist/web/public/assets/system-verilog-GUE_oP1V.js +1 -0
- package/dist/web/public/assets/systemd-FLIJAQZV.js +1 -0
- package/dist/web/public/assets/talonscript-DTR-8ILs.js +1 -0
- package/dist/web/public/assets/tasl-WHNWP-1F.js +1 -0
- package/dist/web/public/assets/tcl-BaBXNNp6.js +1 -0
- package/dist/web/public/assets/templ-Dc9vj00n.js +1 -0
- package/dist/web/public/assets/terraform-uJUFpr8t.js +1 -0
- package/dist/web/public/assets/tex-DA3dAz55.js +1 -0
- package/dist/web/public/assets/tokyo-night-BbogFqAr.js +1 -0
- package/dist/web/public/assets/toml-CyR4Gqq1.js +1 -0
- package/dist/web/public/assets/ts-tags-BD1j21LH.js +1 -0
- package/dist/web/public/assets/tsv-COLVYI6A.js +1 -0
- package/dist/web/public/assets/tsx-CFm2E6uK.js +1 -0
- package/dist/web/public/assets/turtle-PQwt4gkb.js +1 -0
- package/dist/web/public/assets/twig-DrUXy85s.js +1 -0
- package/dist/web/public/assets/typescript-Dy-5sXFx.js +1 -0
- package/dist/web/public/assets/typespec-Bb7qHV0g.js +1 -0
- package/dist/web/public/assets/typst-Bj_JElGz.js +1 -0
- package/dist/web/public/assets/v-BTkrtik4.js +1 -0
- package/dist/web/public/assets/vala-AXT1CI9v.js +1 -0
- package/dist/web/public/assets/vb-DzTKUgW8.js +1 -0
- package/dist/web/public/assets/verilog-aI3j5Xj8.js +1 -0
- package/dist/web/public/assets/vesper-BmnwIC_B.js +1 -0
- package/dist/web/public/assets/vhdl-4IgBB7vO.js +1 -0
- package/dist/web/public/assets/viml-D_XMKSR6.js +1 -0
- package/dist/web/public/assets/vitesse-black-DhmxIXiA.js +1 -0
- package/dist/web/public/assets/vitesse-dark-dvEH_9qt.js +1 -0
- package/dist/web/public/assets/vitesse-light-Ca0W2L1O.js +1 -0
- package/dist/web/public/assets/vue-DC_yTvy2.js +1 -0
- package/dist/web/public/assets/vue-html-Bp8x4gdt.js +1 -0
- package/dist/web/public/assets/vue-vine-ZcUkuUUp.js +1 -0
- package/dist/web/public/assets/vyper-Dz2f7-FK.js +1 -0
- package/dist/web/public/assets/wasm-CuXPCj65.js +1 -0
- package/dist/web/public/assets/wasm-DHkXUMsP.js +1 -0
- package/dist/web/public/assets/wenyan-BRAtM0Iv.js +1 -0
- package/dist/web/public/assets/wgsl-CMpn9jTa.js +1 -0
- package/dist/web/public/assets/wikitext-DRmBVmVA.js +1 -0
- package/dist/web/public/assets/wit-Drp_HLqJ.js +1 -0
- package/dist/web/public/assets/wolfram-C33umj7M.js +1 -0
- package/dist/web/public/assets/xml-BHoOtGbO.js +1 -0
- package/dist/web/public/assets/xsl-CN1PlFqm.js +1 -0
- package/dist/web/public/assets/yaml-DT0mpn8u.js +1 -0
- package/dist/web/public/assets/zenscript-BlYQ_Frf.js +1 -0
- package/dist/web/public/assets/zig-Buk7I0y-.js +1 -0
- package/dist/web/server/_chunks/ssr-renderer.mjs +15 -0
- package/dist/web/server/_libs/@ai-sdk/anthropic+[...].mjs +14021 -0
- package/dist/web/server/_libs/@ai-sdk/moonshotai+[...].mjs +898 -0
- package/dist/web/server/_libs/@ai-sdk/react+[...].mjs +8969 -0
- package/dist/web/server/_libs/@emotion/is-prop-valid+[...].mjs +34 -0
- package/dist/web/server/_libs/@floating-ui/core+[...].mjs +698 -0
- package/dist/web/server/_libs/@floating-ui/dom+[...].mjs +644 -0
- package/dist/web/server/_libs/@floating-ui/react-dom+[...].mjs +475 -0
- package/dist/web/server/_libs/@lobehub/icons+[...].mjs +3079 -0
- package/dist/web/server/_libs/@radix-ui/react-arrow+[...].mjs +184 -0
- package/dist/web/server/_libs/@radix-ui/react-collapsible+[...].mjs +374 -0
- package/dist/web/server/_libs/@radix-ui/react-dialog+[...].mjs +1503 -0
- package/dist/web/server/_libs/@radix-ui/react-menu+[...].mjs +1236 -0
- package/dist/web/server/_libs/@radix-ui/react-select+[...].mjs +1007 -0
- package/dist/web/server/_libs/@shikijs/core+[...].mjs +9017 -0
- package/dist/web/server/_libs/@shikijs/engine-javascript+[...].mjs +3159 -0
- package/dist/web/server/_libs/@streamdown/math+[...].mjs +37559 -0
- package/dist/web/server/_libs/@tanstack/react-router+[...].mjs +14074 -0
- package/dist/web/server/_libs/_.mjs +3 -0
- package/dist/web/server/_libs/_2.mjs +3 -0
- package/dist/web/server/_libs/_3.mjs +2 -0
- package/dist/web/server/_libs/_4.mjs +2 -0
- package/dist/web/server/_libs/ai-sdk__gateway+vercel__oidc.mjs +1255 -0
- package/dist/web/server/_libs/ai-sdk__google.mjs +1630 -0
- package/dist/web/server/_libs/ai-sdk__openai+zod.mjs +4951 -0
- package/dist/web/server/_libs/ai-sdk__provider-utils.mjs +411 -0
- package/dist/web/server/_libs/ai-sdk__provider.mjs +222 -0
- package/dist/web/server/_libs/bail.mjs +13 -0
- package/dist/web/server/_libs/character-entities.mjs +2135 -0
- package/dist/web/server/_libs/class-variance-authority+clsx.mjs +69 -0
- package/dist/web/server/_libs/color+[...].mjs +2185 -0
- package/dist/web/server/_libs/copy-text-to-clipboard.mjs +40 -0
- package/dist/web/server/_libs/d3-array.mjs +231 -0
- package/dist/web/server/_libs/d3-color.mjs +330 -0
- package/dist/web/server/_libs/d3-format.mjs +252 -0
- package/dist/web/server/_libs/d3-interpolate.mjs +207 -0
- package/dist/web/server/_libs/d3-path.mjs +77 -0
- package/dist/web/server/_libs/d3-scale+[...].mjs +1907 -0
- package/dist/web/server/_libs/d3-shape.mjs +818 -0
- package/dist/web/server/_libs/date-fns.mjs +3012 -0
- package/dist/web/server/_libs/date-fns__tz.mjs +249 -0
- package/dist/web/server/_libs/decimal.js-light.mjs +884 -0
- package/dist/web/server/_libs/decode-named-character-reference+[...].mjs +19 -0
- package/dist/web/server/_libs/dexie.mjs +3745 -0
- package/dist/web/server/_libs/escape-string-regexp.mjs +7 -0
- package/dist/web/server/_libs/estree-util-is-identifier-name.mjs +20 -0
- package/dist/web/server/_libs/eventemitter3.mjs +237 -0
- package/dist/web/server/_libs/extend.mjs +75 -0
- package/dist/web/server/_libs/fast-equals.mjs +423 -0
- package/dist/web/server/_libs/framer-motion+[...].mjs +9573 -0
- package/dist/web/server/_libs/fuzzysort.mjs +621 -0
- package/dist/web/server/_libs/h3+rou3+srvx.mjs +1158 -0
- package/dist/web/server/_libs/hast-util-raw+[...].mjs +800 -0
- package/dist/web/server/_libs/hast-util-sanitize.mjs +780 -0
- package/dist/web/server/_libs/hast-util-to-jsx-runtime+[...].mjs +853 -0
- package/dist/web/server/_libs/hookable.mjs +41 -0
- package/dist/web/server/_libs/html-url-attributes.mjs +44 -0
- package/dist/web/server/_libs/is-plain-obj.mjs +8 -0
- package/dist/web/server/_libs/lodash.mjs +4532 -0
- package/dist/web/server/_libs/lucide-react.mjs +605 -0
- package/dist/web/server/_libs/markdown-table.mjs +289 -0
- package/dist/web/server/_libs/marked.mjs +1511 -0
- package/dist/web/server/_libs/mdast-util-find-and-replace.mjs +198 -0
- package/dist/web/server/_libs/mdast-util-from-markdown+[...].mjs +8121 -0
- package/dist/web/server/_libs/mdast-util-gfm+[...].mjs +2060 -0
- package/dist/web/server/_libs/mdast-util-to-hast+[...].mjs +1770 -0
- package/dist/web/server/_libs/micromark-extension-gfm+[...].mjs +2235 -0
- package/dist/web/server/_libs/nanoid.mjs +26 -0
- package/dist/web/server/_libs/next-themes.mjs +124 -0
- package/dist/web/server/_libs/prop-types.mjs +69 -0
- package/dist/web/server/_libs/radix-ui__number.mjs +6 -0
- package/dist/web/server/_libs/radix-ui__primitive.mjs +9 -0
- package/dist/web/server/_libs/radix-ui__react-collection.mjs +80 -0
- package/dist/web/server/_libs/radix-ui__react-direction.mjs +11 -0
- package/dist/web/server/_libs/radix-ui__react-label.mjs +23 -0
- package/dist/web/server/_libs/radix-ui__react-menubar.mjs +400 -0
- package/dist/web/server/_libs/radix-ui__react-popover.mjs +251 -0
- package/dist/web/server/_libs/radix-ui__react-progress.mjs +81 -0
- package/dist/web/server/_libs/radix-ui__react-scroll-area.mjs +669 -0
- package/dist/web/server/_libs/radix-ui__react-separator.mjs +32 -0
- package/dist/web/server/_libs/radix-ui__react-slider.mjs +464 -0
- package/dist/web/server/_libs/radix-ui__react-switch.mjs +120 -0
- package/dist/web/server/_libs/radix-ui__react-tabs.mjs +145 -0
- package/dist/web/server/_libs/radix-ui__react-tooltip.mjs +494 -0
- package/dist/web/server/_libs/react-day-picker.mjs +3510 -0
- package/dist/web/server/_libs/react-is.mjs +48 -0
- package/dist/web/server/_libs/react-resizable-panels.mjs +1517 -0
- package/dist/web/server/_libs/react-smooth.mjs +1024 -0
- package/dist/web/server/_libs/recharts+[...].mjs +12998 -0
- package/dist/web/server/_libs/rehype-harden.mjs +210 -0
- package/dist/web/server/_libs/rehype-raw.mjs +37 -0
- package/dist/web/server/_libs/rehype-sanitize.mjs +27 -0
- package/dist/web/server/_libs/remark-gfm.mjs +34 -0
- package/dist/web/server/_libs/remark-parse.mjs +37 -0
- package/dist/web/server/_libs/remark-rehype.mjs +169 -0
- package/dist/web/server/_libs/remend.mjs +544 -0
- package/dist/web/server/_libs/scule.mjs +55 -0
- package/dist/web/server/_libs/shiki+streamdown__code.mjs +1748 -0
- package/dist/web/server/_libs/shiki.mjs +16 -0
- package/dist/web/server/_libs/shikijs__engine-oniguruma.mjs +387 -0
- package/dist/web/server/_libs/shikijs__langs.mjs +1357 -0
- package/dist/web/server/_libs/shikijs__themes.mjs +268 -0
- package/dist/web/server/_libs/sonner.mjs +909 -0
- package/dist/web/server/_libs/streamdown+[...].mjs +5842 -0
- package/dist/web/server/_libs/tanstack__history.mjs +342 -0
- package/dist/web/server/_libs/tanstack__query-core.mjs +2073 -0
- package/dist/web/server/_libs/tanstack__react-query.mjs +146 -0
- package/dist/web/server/_libs/tanstack__router-core.mjs +6 -0
- package/dist/web/server/_libs/tanstack__zod-adapter.mjs +16 -0
- package/dist/web/server/_libs/ufo.mjs +64 -0
- package/dist/web/server/_libs/ungap__structured-clone.mjs +197 -0
- package/dist/web/server/_libs/use-stick-to-bottom.mjs +410 -0
- package/dist/web/server/_libs/vercel__oidc.mjs +393 -0
- package/dist/web/server/_libs/zhipu-ai-provider.mjs +13483 -0
- package/dist/web/server/_libs/zustand.mjs +48 -0
- package/dist/web/server/_runtime.mjs +35 -0
- package/dist/web/server/_ssr/components-BzCiScpA.mjs +1452 -0
- package/dist/web/server/_ssr/dist-3Mu7PF0n.mjs +137 -0
- package/dist/web/server/_ssr/dist-BRaLXgxZ.mjs +17 -0
- package/dist/web/server/_ssr/field-1-agM60DBf.mjs +167 -0
- package/dist/web/server/_ssr/get-providers-BoYkp0Of.mjs +40 -0
- package/dist/web/server/_ssr/initialize-provider-B6W8V5Eg.mjs +19 -0
- package/dist/web/server/_ssr/model-list-CDFjdz2P.mjs +60 -0
- package/dist/web/server/_ssr/router-BmmOCtJZ.mjs +168 -0
- package/dist/web/server/_ssr/routes-CvlpZK4Q.mjs +2630 -0
- package/dist/web/server/_ssr/schemas-DsZ5O3zp.mjs +67 -0
- package/dist/web/server/_ssr/send-message-DUT1vRvx.mjs +135 -0
- package/dist/web/server/_ssr/ssr.mjs +5253 -0
- package/dist/web/server/_ssr/start-rewezkfD.mjs +4 -0
- package/dist/web/server/_ssr/submit-key-CcCv6-yy.mjs +62 -0
- package/dist/web/server/_ssr/suggestions-B0Uc3p7F.mjs +38 -0
- package/dist/web/server/_ssr/use-providers-Bwqg2U3N.mjs +1554 -0
- package/dist/web/server/_tanstack-start-manifest_v-BMIvh4y6.mjs +60 -0
- package/dist/web/server/index.mjs +2531 -0
- package/dist/web/server/node_modules/tslib/modules/index.js +70 -0
- package/dist/web/server/node_modules/tslib/modules/package.json +3 -0
- package/dist/web/server/node_modules/tslib/package.json +47 -0
- package/dist/web/server/node_modules/tslib/tslib.js +484 -0
- package/package.json +32 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { D as SKIP, E as visit } from "./@streamdown/math+[...].mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/rehype-harden@1.1.8/node_modules/rehype-harden/dist/index.js
|
|
3
|
+
var BlockPolicy = {
|
|
4
|
+
indicator: "indicator",
|
|
5
|
+
textOnly: "text-only",
|
|
6
|
+
remove: "remove"
|
|
7
|
+
};
|
|
8
|
+
function harden({ defaultOrigin = "", allowedLinkPrefixes = [], allowedImagePrefixes = [], allowDataImages = false, allowedProtocols = [], blockedImageClass = "inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm", blockedLinkClass = "text-gray-500", linkBlockPolicy = BlockPolicy.indicator, imageBlockPolicy = BlockPolicy.indicator }) {
|
|
9
|
+
const hasSpecificLinkPrefixes = allowedLinkPrefixes.length && !allowedLinkPrefixes.every((p) => p === "*");
|
|
10
|
+
const hasSpecificImagePrefixes = allowedImagePrefixes.length && !allowedImagePrefixes.every((p) => p === "*");
|
|
11
|
+
if (!defaultOrigin && (hasSpecificLinkPrefixes || hasSpecificImagePrefixes)) throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");
|
|
12
|
+
return (tree) => {
|
|
13
|
+
const visitor = createVisitor(defaultOrigin, allowedLinkPrefixes, allowedImagePrefixes, allowDataImages, allowedProtocols, blockedImageClass, blockedLinkClass, linkBlockPolicy, imageBlockPolicy);
|
|
14
|
+
stripNullChildren(tree);
|
|
15
|
+
visit(tree, visitor);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function parseUrl(url, defaultOrigin) {
|
|
19
|
+
if (typeof url !== "string") return null;
|
|
20
|
+
try {
|
|
21
|
+
return new URL(url);
|
|
22
|
+
} catch {
|
|
23
|
+
if (defaultOrigin) try {
|
|
24
|
+
return new URL(url, defaultOrigin);
|
|
25
|
+
} catch {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
if (url.startsWith("/") || url.startsWith("./") || url.startsWith("../")) try {
|
|
29
|
+
return new URL(url, "http://example.com");
|
|
30
|
+
} catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function isPathRelativeUrl(url) {
|
|
37
|
+
if (typeof url !== "string") return false;
|
|
38
|
+
return url.startsWith("/") || url.startsWith("./") || url.startsWith("../");
|
|
39
|
+
}
|
|
40
|
+
var safeProtocols = new Set([
|
|
41
|
+
"https:",
|
|
42
|
+
"http:",
|
|
43
|
+
"irc:",
|
|
44
|
+
"ircs:",
|
|
45
|
+
"mailto:",
|
|
46
|
+
"xmpp:",
|
|
47
|
+
"blob:"
|
|
48
|
+
]);
|
|
49
|
+
var blockedProtocols = new Set([
|
|
50
|
+
"javascript:",
|
|
51
|
+
"data:",
|
|
52
|
+
"file:",
|
|
53
|
+
"vbscript:"
|
|
54
|
+
]);
|
|
55
|
+
function transformUrl(url, allowedPrefixes, defaultOrigin, allowDataImages = false, isImage = false, allowedProtocols = []) {
|
|
56
|
+
if (!url) return null;
|
|
57
|
+
if (typeof url === "string" && url.startsWith("#") && !isImage) try {
|
|
58
|
+
if (new URL(url, "http://example.com").hash === url) return url;
|
|
59
|
+
} catch {}
|
|
60
|
+
if (typeof url === "string" && url.startsWith("data:")) {
|
|
61
|
+
if (isImage && allowDataImages && url.startsWith("data:image/")) return url;
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
if (typeof url === "string" && url.startsWith("blob:")) {
|
|
65
|
+
try {
|
|
66
|
+
if (new URL(url).protocol === "blob:" && url.length > 5) {
|
|
67
|
+
const afterProtocol = url.substring(5);
|
|
68
|
+
if (afterProtocol && afterProtocol.length > 0 && afterProtocol !== "invalid") return url;
|
|
69
|
+
}
|
|
70
|
+
} catch {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
const parsedUrl = parseUrl(url, defaultOrigin);
|
|
76
|
+
if (!parsedUrl) return null;
|
|
77
|
+
if (blockedProtocols.has(parsedUrl.protocol)) return null;
|
|
78
|
+
if (!(safeProtocols.has(parsedUrl.protocol) || allowedProtocols.includes(parsedUrl.protocol) || allowedProtocols.includes("*"))) return null;
|
|
79
|
+
if (parsedUrl.protocol === "mailto:" || !parsedUrl.protocol.match(/^https?:$/)) return parsedUrl.href;
|
|
80
|
+
const inputWasRelative = isPathRelativeUrl(url);
|
|
81
|
+
if (parsedUrl && allowedPrefixes.some((prefix) => {
|
|
82
|
+
const parsedPrefix = parseUrl(prefix, defaultOrigin);
|
|
83
|
+
if (!parsedPrefix) return false;
|
|
84
|
+
if (parsedPrefix.origin !== parsedUrl.origin) return false;
|
|
85
|
+
return parsedUrl.href.startsWith(parsedPrefix.href);
|
|
86
|
+
})) {
|
|
87
|
+
if (inputWasRelative) return parsedUrl.pathname + parsedUrl.search + parsedUrl.hash;
|
|
88
|
+
return parsedUrl.href;
|
|
89
|
+
}
|
|
90
|
+
if (allowedPrefixes.includes("*")) {
|
|
91
|
+
if (parsedUrl.protocol !== "https:" && parsedUrl.protocol !== "http:") return null;
|
|
92
|
+
if (inputWasRelative) return parsedUrl.pathname + parsedUrl.search + parsedUrl.hash;
|
|
93
|
+
return parsedUrl.href;
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
function stripNullChildren(node) {
|
|
98
|
+
if ("children" in node && Array.isArray(node.children)) {
|
|
99
|
+
node.children = node.children.filter((child) => child != null);
|
|
100
|
+
for (const child of node.children) stripNullChildren(child);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
var SEEN = Symbol("node-seen");
|
|
104
|
+
function resolveLinkBlockPolicy(node, policy, blockedLinkClass) {
|
|
105
|
+
if (policy === BlockPolicy.remove) return { type: "remove" };
|
|
106
|
+
if (policy === BlockPolicy.textOnly) return {
|
|
107
|
+
type: "replace",
|
|
108
|
+
element: {
|
|
109
|
+
type: "element",
|
|
110
|
+
tagName: "span",
|
|
111
|
+
properties: {},
|
|
112
|
+
children: [...node.children]
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
return {
|
|
116
|
+
type: "replace",
|
|
117
|
+
element: {
|
|
118
|
+
type: "element",
|
|
119
|
+
tagName: "span",
|
|
120
|
+
properties: {
|
|
121
|
+
title: "Blocked URL: " + String(node.properties.href),
|
|
122
|
+
class: blockedLinkClass
|
|
123
|
+
},
|
|
124
|
+
children: [...node.children, {
|
|
125
|
+
type: "text",
|
|
126
|
+
value: " [blocked]"
|
|
127
|
+
}]
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function resolveImageBlockPolicy(node, policy, blockedImageClass) {
|
|
132
|
+
if (policy === BlockPolicy.remove) return { type: "remove" };
|
|
133
|
+
if (policy === BlockPolicy.textOnly) {
|
|
134
|
+
const altText = String(node.properties.alt || "");
|
|
135
|
+
if (!altText) return { type: "remove" };
|
|
136
|
+
return {
|
|
137
|
+
type: "replace",
|
|
138
|
+
element: {
|
|
139
|
+
type: "element",
|
|
140
|
+
tagName: "span",
|
|
141
|
+
properties: {},
|
|
142
|
+
children: [{
|
|
143
|
+
type: "text",
|
|
144
|
+
value: altText
|
|
145
|
+
}]
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
type: "replace",
|
|
151
|
+
element: {
|
|
152
|
+
type: "element",
|
|
153
|
+
tagName: "span",
|
|
154
|
+
properties: { class: blockedImageClass },
|
|
155
|
+
children: [{
|
|
156
|
+
type: "text",
|
|
157
|
+
value: "[Image blocked: " + String(node.properties.alt || "No description") + "]"
|
|
158
|
+
}]
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
var createVisitor = (defaultOrigin, allowedLinkPrefixes, allowedImagePrefixes, allowDataImages, allowedProtocols, blockedImageClass, blockedLinkClass, linkBlockPolicy, imageBlockPolicy) => {
|
|
163
|
+
const visitor = (node, index, parent) => {
|
|
164
|
+
if (node.type !== "element" || node[SEEN]) return true;
|
|
165
|
+
if (node.tagName === "a") {
|
|
166
|
+
const transformedUrl = transformUrl(node.properties.href, allowedLinkPrefixes, defaultOrigin, false, false, allowedProtocols);
|
|
167
|
+
if (transformedUrl === null) {
|
|
168
|
+
node[SEEN] = true;
|
|
169
|
+
visit(node, visitor);
|
|
170
|
+
if (parent && typeof index === "number") {
|
|
171
|
+
const result = resolveLinkBlockPolicy(node, linkBlockPolicy, blockedLinkClass);
|
|
172
|
+
if (result.type === "remove") {
|
|
173
|
+
parent.children.splice(index, 1);
|
|
174
|
+
return [SKIP, index];
|
|
175
|
+
}
|
|
176
|
+
parent.children[index] = result.element;
|
|
177
|
+
}
|
|
178
|
+
return SKIP;
|
|
179
|
+
} else {
|
|
180
|
+
node.properties.href = transformedUrl;
|
|
181
|
+
node.properties.target = "_blank";
|
|
182
|
+
node.properties.rel = "noopener noreferrer";
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (node.tagName === "img") {
|
|
187
|
+
const transformedUrl = transformUrl(node.properties.src, allowedImagePrefixes, defaultOrigin, allowDataImages, true, allowedProtocols);
|
|
188
|
+
if (transformedUrl === null) {
|
|
189
|
+
node[SEEN] = true;
|
|
190
|
+
visit(node, visitor);
|
|
191
|
+
if (parent && typeof index === "number") {
|
|
192
|
+
const result = resolveImageBlockPolicy(node, imageBlockPolicy, blockedImageClass);
|
|
193
|
+
if (result.type === "remove") {
|
|
194
|
+
parent.children.splice(index, 1);
|
|
195
|
+
return [SKIP, index];
|
|
196
|
+
}
|
|
197
|
+
parent.children[index] = result.element;
|
|
198
|
+
}
|
|
199
|
+
return SKIP;
|
|
200
|
+
} else {
|
|
201
|
+
node.properties.src = transformedUrl;
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return true;
|
|
206
|
+
};
|
|
207
|
+
return visitor;
|
|
208
|
+
};
|
|
209
|
+
//#endregion
|
|
210
|
+
export { harden as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as raw } from "./hast-util-raw+[...].mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('hast').Root} Root
|
|
5
|
+
* @typedef {import('hast-util-raw').Options} RawOptions
|
|
6
|
+
* @typedef {import('vfile').VFile} VFile
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @typedef {Omit<RawOptions, 'file'>} Options
|
|
10
|
+
* Configuration.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Parse the tree (and raw nodes) again, keeping positional info okay.
|
|
14
|
+
*
|
|
15
|
+
* @param {Options | null | undefined} [options]
|
|
16
|
+
* Configuration (optional).
|
|
17
|
+
* @returns
|
|
18
|
+
* Transform.
|
|
19
|
+
*/
|
|
20
|
+
function rehypeRaw(options) {
|
|
21
|
+
/**
|
|
22
|
+
* @param {Root} tree
|
|
23
|
+
* Tree.
|
|
24
|
+
* @param {VFile} file
|
|
25
|
+
* File.
|
|
26
|
+
* @returns {Root}
|
|
27
|
+
* New tree.
|
|
28
|
+
*/
|
|
29
|
+
return function(tree, file) {
|
|
30
|
+
return raw(tree, {
|
|
31
|
+
...options,
|
|
32
|
+
file
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { rehypeRaw as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as sanitize } from "./hast-util-sanitize.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.js
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('hast').Root} Root
|
|
5
|
+
* @typedef {import('hast-util-sanitize').Schema} Schema
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Sanitize HTML.
|
|
9
|
+
*
|
|
10
|
+
* @param {Schema | null | undefined} [options]
|
|
11
|
+
* Configuration (optional).
|
|
12
|
+
* @returns
|
|
13
|
+
* Transform.
|
|
14
|
+
*/
|
|
15
|
+
function rehypeSanitize(options) {
|
|
16
|
+
/**
|
|
17
|
+
* @param {Root} tree
|
|
18
|
+
* Tree.
|
|
19
|
+
* @returns {Root}
|
|
20
|
+
* New tree.
|
|
21
|
+
*/
|
|
22
|
+
return function(tree) {
|
|
23
|
+
return sanitize(tree, options);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { rehypeSanitize as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { n as gfmToMarkdown, t as gfmFromMarkdown } from "./mdast-util-gfm+[...].mjs";
|
|
2
|
+
import { t as gfm } from "./micromark-extension-gfm+[...].mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
|
|
4
|
+
/**
|
|
5
|
+
* @import {Root} from 'mdast'
|
|
6
|
+
* @import {Options} from 'remark-gfm'
|
|
7
|
+
* @import {} from 'remark-parse'
|
|
8
|
+
* @import {} from 'remark-stringify'
|
|
9
|
+
* @import {Processor} from 'unified'
|
|
10
|
+
*/
|
|
11
|
+
/** @type {Options} */
|
|
12
|
+
var emptyOptions = {};
|
|
13
|
+
/**
|
|
14
|
+
* Add support GFM (autolink literals, footnotes, strikethrough, tables,
|
|
15
|
+
* tasklists).
|
|
16
|
+
*
|
|
17
|
+
* @param {Options | null | undefined} [options]
|
|
18
|
+
* Configuration (optional).
|
|
19
|
+
* @returns {undefined}
|
|
20
|
+
* Nothing.
|
|
21
|
+
*/
|
|
22
|
+
function remarkGfm(options) {
|
|
23
|
+
const self = this;
|
|
24
|
+
const settings = options || emptyOptions;
|
|
25
|
+
const data = self.data();
|
|
26
|
+
const micromarkExtensions = data.micromarkExtensions || (data.micromarkExtensions = []);
|
|
27
|
+
const fromMarkdownExtensions = data.fromMarkdownExtensions || (data.fromMarkdownExtensions = []);
|
|
28
|
+
const toMarkdownExtensions = data.toMarkdownExtensions || (data.toMarkdownExtensions = []);
|
|
29
|
+
micromarkExtensions.push(gfm(settings));
|
|
30
|
+
fromMarkdownExtensions.push(gfmFromMarkdown());
|
|
31
|
+
toMarkdownExtensions.push(gfmToMarkdown(settings));
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { remarkGfm as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as fromMarkdown } from "./mdast-util-from-markdown+[...].mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('mdast').Root} Root
|
|
5
|
+
* @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions
|
|
6
|
+
* @typedef {import('unified').Parser<Root>} Parser
|
|
7
|
+
* @typedef {import('unified').Processor<Root>} Processor
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @typedef {Omit<FromMarkdownOptions, 'extensions' | 'mdastExtensions'>} Options
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Aadd support for parsing from markdown.
|
|
14
|
+
*
|
|
15
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
|
16
|
+
* Configuration (optional).
|
|
17
|
+
* @returns {undefined}
|
|
18
|
+
* Nothing.
|
|
19
|
+
*/
|
|
20
|
+
function remarkParse(options) {
|
|
21
|
+
/** @type {Processor} */
|
|
22
|
+
const self = this;
|
|
23
|
+
self.parser = parser;
|
|
24
|
+
/**
|
|
25
|
+
* @type {Parser}
|
|
26
|
+
*/
|
|
27
|
+
function parser(doc) {
|
|
28
|
+
return fromMarkdown(doc, {
|
|
29
|
+
...self.data("settings"),
|
|
30
|
+
...options,
|
|
31
|
+
extensions: self.data("micromarkExtensions") || [],
|
|
32
|
+
mdastExtensions: self.data("fromMarkdownExtensions") || []
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { remarkParse as t };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { t as toHast } from "./mdast-util-to-hast+[...].mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Root as HastRoot} from 'hast'
|
|
5
|
+
* @import {Root as MdastRoot} from 'mdast'
|
|
6
|
+
* @import {Options as ToHastOptions} from 'mdast-util-to-hast'
|
|
7
|
+
* @import {Processor} from 'unified'
|
|
8
|
+
* @import {VFile} from 'vfile'
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {Omit<ToHastOptions, 'file'>} Options
|
|
12
|
+
*
|
|
13
|
+
* @callback TransformBridge
|
|
14
|
+
* Bridge-mode.
|
|
15
|
+
*
|
|
16
|
+
* Runs the destination with the new hast tree.
|
|
17
|
+
* Discards result.
|
|
18
|
+
* @param {MdastRoot} tree
|
|
19
|
+
* Tree.
|
|
20
|
+
* @param {VFile} file
|
|
21
|
+
* File.
|
|
22
|
+
* @returns {Promise<undefined>}
|
|
23
|
+
* Nothing.
|
|
24
|
+
*
|
|
25
|
+
* @callback TransformMutate
|
|
26
|
+
* Mutate-mode.
|
|
27
|
+
*
|
|
28
|
+
* Further transformers run on the hast tree.
|
|
29
|
+
* @param {MdastRoot} tree
|
|
30
|
+
* Tree.
|
|
31
|
+
* @param {VFile} file
|
|
32
|
+
* File.
|
|
33
|
+
* @returns {HastRoot}
|
|
34
|
+
* Tree (hast).
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Turn markdown into HTML.
|
|
38
|
+
*
|
|
39
|
+
* ##### Notes
|
|
40
|
+
*
|
|
41
|
+
* ###### Signature
|
|
42
|
+
*
|
|
43
|
+
* * if a processor is given,
|
|
44
|
+
* runs the (rehype) plugins used on it with a hast tree,
|
|
45
|
+
* then discards the result (*bridge mode*)
|
|
46
|
+
* * otherwise,
|
|
47
|
+
* returns a hast tree,
|
|
48
|
+
* the plugins used after `remarkRehype` are rehype plugins (*mutate mode*)
|
|
49
|
+
*
|
|
50
|
+
* > 👉 **Note**:
|
|
51
|
+
* > It’s highly unlikely that you want to pass a `processor`.
|
|
52
|
+
*
|
|
53
|
+
* ###### HTML
|
|
54
|
+
*
|
|
55
|
+
* Raw HTML is available in mdast as `html` nodes and can be embedded in hast
|
|
56
|
+
* as semistandard `raw` nodes.
|
|
57
|
+
* Most plugins ignore `raw` nodes but two notable ones don’t:
|
|
58
|
+
*
|
|
59
|
+
* * `rehype-stringify` also has an option `allowDangerousHtml` which will
|
|
60
|
+
* output the raw HTML.
|
|
61
|
+
* This is typically discouraged as noted by the option name but is useful if
|
|
62
|
+
* you completely trust authors
|
|
63
|
+
* * `rehype-raw` can handle the raw embedded HTML strings by parsing them
|
|
64
|
+
* into standard hast nodes (`element`, `text`, etc);
|
|
65
|
+
* this is a heavy task as it needs a full HTML parser,
|
|
66
|
+
* but it is the only way to support untrusted content
|
|
67
|
+
*
|
|
68
|
+
* ###### Footnotes
|
|
69
|
+
*
|
|
70
|
+
* Many options supported here relate to footnotes.
|
|
71
|
+
* Footnotes are not specified by CommonMark,
|
|
72
|
+
* which we follow by default.
|
|
73
|
+
* They are supported by GitHub,
|
|
74
|
+
* so footnotes can be enabled in markdown with `remark-gfm`.
|
|
75
|
+
*
|
|
76
|
+
* The options `footnoteBackLabel` and `footnoteLabel` define natural language
|
|
77
|
+
* that explains footnotes,
|
|
78
|
+
* which is hidden for sighted users but shown to assistive technology.
|
|
79
|
+
* When your page is not in English,
|
|
80
|
+
* you must define translated values.
|
|
81
|
+
*
|
|
82
|
+
* Back references use ARIA attributes,
|
|
83
|
+
* but the section label itself uses a heading that is hidden with an
|
|
84
|
+
* `sr-only` class.
|
|
85
|
+
* To show it to sighted users,
|
|
86
|
+
* define different attributes in `footnoteLabelProperties`.
|
|
87
|
+
*
|
|
88
|
+
* ###### Clobbering
|
|
89
|
+
*
|
|
90
|
+
* Footnotes introduces a problem,
|
|
91
|
+
* as it links footnote calls to footnote definitions on the page through `id`
|
|
92
|
+
* attributes generated from user content,
|
|
93
|
+
* which results in DOM clobbering.
|
|
94
|
+
*
|
|
95
|
+
* DOM clobbering is this:
|
|
96
|
+
*
|
|
97
|
+
* ```html
|
|
98
|
+
* <p id=x></p>
|
|
99
|
+
* <script>alert(x) // `x` now refers to the DOM `p#x` element<\/script>
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* Elements by their ID are made available by browsers on the `window` object,
|
|
103
|
+
* which is a security risk.
|
|
104
|
+
* Using a prefix solves this problem.
|
|
105
|
+
*
|
|
106
|
+
* More information on how to handle clobbering and the prefix is explained in
|
|
107
|
+
* *Example: headings (DOM clobbering)* in `rehype-sanitize`.
|
|
108
|
+
*
|
|
109
|
+
* ###### Unknown nodes
|
|
110
|
+
*
|
|
111
|
+
* Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.
|
|
112
|
+
* The default behavior for unknown nodes is:
|
|
113
|
+
*
|
|
114
|
+
* * when the node has a `value`
|
|
115
|
+
* (and doesn’t have `data.hName`, `data.hProperties`, or `data.hChildren`,
|
|
116
|
+
* see later),
|
|
117
|
+
* create a hast `text` node
|
|
118
|
+
* * otherwise,
|
|
119
|
+
* create a `<div>` element (which could be changed with `data.hName`),
|
|
120
|
+
* with its children mapped from mdast to hast as well
|
|
121
|
+
*
|
|
122
|
+
* This behavior can be changed by passing an `unknownHandler`.
|
|
123
|
+
*
|
|
124
|
+
* @overload
|
|
125
|
+
* @param {Processor} processor
|
|
126
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
|
127
|
+
* @returns {TransformBridge}
|
|
128
|
+
*
|
|
129
|
+
* @overload
|
|
130
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
|
131
|
+
* @returns {TransformMutate}
|
|
132
|
+
*
|
|
133
|
+
* @overload
|
|
134
|
+
* @param {Readonly<Options> | Processor | null | undefined} [destination]
|
|
135
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
|
136
|
+
* @returns {TransformBridge | TransformMutate}
|
|
137
|
+
*
|
|
138
|
+
* @param {Readonly<Options> | Processor | null | undefined} [destination]
|
|
139
|
+
* Processor or configuration (optional).
|
|
140
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
|
141
|
+
* When a processor was given,
|
|
142
|
+
* configuration (optional).
|
|
143
|
+
* @returns {TransformBridge | TransformMutate}
|
|
144
|
+
* Transform.
|
|
145
|
+
*/
|
|
146
|
+
function remarkRehype(destination, options) {
|
|
147
|
+
if (destination && "run" in destination)
|
|
148
|
+
/**
|
|
149
|
+
* @type {TransformBridge}
|
|
150
|
+
*/
|
|
151
|
+
return async function(tree, file) {
|
|
152
|
+
const hastTree = toHast(tree, {
|
|
153
|
+
file,
|
|
154
|
+
...options
|
|
155
|
+
});
|
|
156
|
+
await destination.run(hastTree, file);
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* @type {TransformMutate}
|
|
160
|
+
*/
|
|
161
|
+
return function(tree, file) {
|
|
162
|
+
return toHast(tree, {
|
|
163
|
+
file,
|
|
164
|
+
...destination || options
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
export { remarkRehype as t };
|