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,342 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@tanstack+history@1.161.6/node_modules/@tanstack/history/dist/esm/index.js
|
|
2
|
+
var stateIndexKey = "__TSR_index";
|
|
3
|
+
var popStateEvent = "popstate";
|
|
4
|
+
var beforeUnloadEvent = "beforeunload";
|
|
5
|
+
function createHistory(opts) {
|
|
6
|
+
let location = opts.getLocation();
|
|
7
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
8
|
+
const notify = (action) => {
|
|
9
|
+
location = opts.getLocation();
|
|
10
|
+
subscribers.forEach((subscriber) => subscriber({
|
|
11
|
+
location,
|
|
12
|
+
action
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
const handleIndexChange = (action) => {
|
|
16
|
+
if (opts.notifyOnIndexChange ?? true) notify(action);
|
|
17
|
+
else location = opts.getLocation();
|
|
18
|
+
};
|
|
19
|
+
const tryNavigation = async ({ task, navigateOpts, ...actionInfo }) => {
|
|
20
|
+
if (navigateOpts?.ignoreBlocker ?? false) {
|
|
21
|
+
task();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const blockers = opts.getBlockers?.() ?? [];
|
|
25
|
+
const isPushOrReplace = actionInfo.type === "PUSH" || actionInfo.type === "REPLACE";
|
|
26
|
+
if (typeof document !== "undefined" && blockers.length && isPushOrReplace) for (const blocker of blockers) {
|
|
27
|
+
const nextLocation = parseHref(actionInfo.path, actionInfo.state);
|
|
28
|
+
if (await blocker.blockerFn({
|
|
29
|
+
currentLocation: location,
|
|
30
|
+
nextLocation,
|
|
31
|
+
action: actionInfo.type
|
|
32
|
+
})) {
|
|
33
|
+
opts.onBlocked?.();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
task();
|
|
38
|
+
};
|
|
39
|
+
return {
|
|
40
|
+
get location() {
|
|
41
|
+
return location;
|
|
42
|
+
},
|
|
43
|
+
get length() {
|
|
44
|
+
return opts.getLength();
|
|
45
|
+
},
|
|
46
|
+
subscribers,
|
|
47
|
+
subscribe: (cb) => {
|
|
48
|
+
subscribers.add(cb);
|
|
49
|
+
return () => {
|
|
50
|
+
subscribers.delete(cb);
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
push: (path, state, navigateOpts) => {
|
|
54
|
+
const currentIndex = location.state[stateIndexKey];
|
|
55
|
+
state = assignKeyAndIndex(currentIndex + 1, state);
|
|
56
|
+
tryNavigation({
|
|
57
|
+
task: () => {
|
|
58
|
+
opts.pushState(path, state);
|
|
59
|
+
notify({ type: "PUSH" });
|
|
60
|
+
},
|
|
61
|
+
navigateOpts,
|
|
62
|
+
type: "PUSH",
|
|
63
|
+
path,
|
|
64
|
+
state
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
replace: (path, state, navigateOpts) => {
|
|
68
|
+
const currentIndex = location.state[stateIndexKey];
|
|
69
|
+
state = assignKeyAndIndex(currentIndex, state);
|
|
70
|
+
tryNavigation({
|
|
71
|
+
task: () => {
|
|
72
|
+
opts.replaceState(path, state);
|
|
73
|
+
notify({ type: "REPLACE" });
|
|
74
|
+
},
|
|
75
|
+
navigateOpts,
|
|
76
|
+
type: "REPLACE",
|
|
77
|
+
path,
|
|
78
|
+
state
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
go: (index, navigateOpts) => {
|
|
82
|
+
tryNavigation({
|
|
83
|
+
task: () => {
|
|
84
|
+
opts.go(index);
|
|
85
|
+
handleIndexChange({
|
|
86
|
+
type: "GO",
|
|
87
|
+
index
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
navigateOpts,
|
|
91
|
+
type: "GO"
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
back: (navigateOpts) => {
|
|
95
|
+
tryNavigation({
|
|
96
|
+
task: () => {
|
|
97
|
+
opts.back(navigateOpts?.ignoreBlocker ?? false);
|
|
98
|
+
handleIndexChange({ type: "BACK" });
|
|
99
|
+
},
|
|
100
|
+
navigateOpts,
|
|
101
|
+
type: "BACK"
|
|
102
|
+
});
|
|
103
|
+
},
|
|
104
|
+
forward: (navigateOpts) => {
|
|
105
|
+
tryNavigation({
|
|
106
|
+
task: () => {
|
|
107
|
+
opts.forward(navigateOpts?.ignoreBlocker ?? false);
|
|
108
|
+
handleIndexChange({ type: "FORWARD" });
|
|
109
|
+
},
|
|
110
|
+
navigateOpts,
|
|
111
|
+
type: "FORWARD"
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
canGoBack: () => location.state[stateIndexKey] !== 0,
|
|
115
|
+
createHref: (str) => opts.createHref(str),
|
|
116
|
+
block: (blocker) => {
|
|
117
|
+
if (!opts.setBlockers) return () => {};
|
|
118
|
+
const blockers = opts.getBlockers?.() ?? [];
|
|
119
|
+
opts.setBlockers([...blockers, blocker]);
|
|
120
|
+
return () => {
|
|
121
|
+
const blockers = opts.getBlockers?.() ?? [];
|
|
122
|
+
opts.setBlockers?.(blockers.filter((b) => b !== blocker));
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
flush: () => opts.flush?.(),
|
|
126
|
+
destroy: () => opts.destroy?.(),
|
|
127
|
+
notify
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function assignKeyAndIndex(index, state) {
|
|
131
|
+
if (!state) state = {};
|
|
132
|
+
const key = createRandomKey();
|
|
133
|
+
return {
|
|
134
|
+
...state,
|
|
135
|
+
key,
|
|
136
|
+
__TSR_key: key,
|
|
137
|
+
[stateIndexKey]: index
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Creates a history object that can be used to interact with the browser's
|
|
142
|
+
* navigation. This is a lightweight API wrapping the browser's native methods.
|
|
143
|
+
* It is designed to work with TanStack Router, but could be used as a standalone API as well.
|
|
144
|
+
* IMPORTANT: This API implements history throttling via a microtask to prevent
|
|
145
|
+
* excessive calls to the history API. In some browsers, calling history.pushState or
|
|
146
|
+
* history.replaceState in quick succession can cause the browser to ignore subsequent
|
|
147
|
+
* calls. This API smooths out those differences and ensures that your application
|
|
148
|
+
* state will *eventually* match the browser state. In most cases, this is not a problem,
|
|
149
|
+
* but if you need to ensure that the browser state is up to date, you can use the
|
|
150
|
+
* `history.flush` method to immediately flush all pending state changes to the browser URL.
|
|
151
|
+
* @param opts
|
|
152
|
+
* @param opts.getHref A function that returns the current href (path + search + hash)
|
|
153
|
+
* @param opts.createHref A function that takes a path and returns a href (path + search + hash)
|
|
154
|
+
* @returns A history instance
|
|
155
|
+
*/
|
|
156
|
+
function createBrowserHistory(opts) {
|
|
157
|
+
const win = opts?.window ?? (typeof document !== "undefined" ? window : void 0);
|
|
158
|
+
const originalPushState = win.history.pushState;
|
|
159
|
+
const originalReplaceState = win.history.replaceState;
|
|
160
|
+
let blockers = [];
|
|
161
|
+
const _getBlockers = () => blockers;
|
|
162
|
+
const _setBlockers = (newBlockers) => blockers = newBlockers;
|
|
163
|
+
const createHref = opts?.createHref ?? ((path) => path);
|
|
164
|
+
const parseLocation = opts?.parseLocation ?? (() => parseHref(`${win.location.pathname}${win.location.search}${win.location.hash}`, win.history.state));
|
|
165
|
+
if (!win.history.state?.__TSR_key && !win.history.state?.key) {
|
|
166
|
+
const addedKey = createRandomKey();
|
|
167
|
+
win.history.replaceState({
|
|
168
|
+
[stateIndexKey]: 0,
|
|
169
|
+
key: addedKey,
|
|
170
|
+
__TSR_key: addedKey
|
|
171
|
+
}, "");
|
|
172
|
+
}
|
|
173
|
+
let currentLocation = parseLocation();
|
|
174
|
+
let rollbackLocation;
|
|
175
|
+
let nextPopIsGo = false;
|
|
176
|
+
let ignoreNextPop = false;
|
|
177
|
+
let skipBlockerNextPop = false;
|
|
178
|
+
let ignoreNextBeforeUnload = false;
|
|
179
|
+
const getLocation = () => currentLocation;
|
|
180
|
+
let next;
|
|
181
|
+
let scheduled;
|
|
182
|
+
const flush = () => {
|
|
183
|
+
if (!next) return;
|
|
184
|
+
history._ignoreSubscribers = true;
|
|
185
|
+
(next.isPush ? win.history.pushState : win.history.replaceState)(next.state, "", next.href);
|
|
186
|
+
history._ignoreSubscribers = false;
|
|
187
|
+
next = void 0;
|
|
188
|
+
scheduled = void 0;
|
|
189
|
+
rollbackLocation = void 0;
|
|
190
|
+
};
|
|
191
|
+
const queueHistoryAction = (type, destHref, state) => {
|
|
192
|
+
const href = createHref(destHref);
|
|
193
|
+
if (!scheduled) rollbackLocation = currentLocation;
|
|
194
|
+
currentLocation = parseHref(destHref, state);
|
|
195
|
+
next = {
|
|
196
|
+
href,
|
|
197
|
+
state,
|
|
198
|
+
isPush: next?.isPush || type === "push"
|
|
199
|
+
};
|
|
200
|
+
if (!scheduled) scheduled = Promise.resolve().then(() => flush());
|
|
201
|
+
};
|
|
202
|
+
const onPushPop = (type) => {
|
|
203
|
+
currentLocation = parseLocation();
|
|
204
|
+
history.notify({ type });
|
|
205
|
+
};
|
|
206
|
+
const onPushPopEvent = async () => {
|
|
207
|
+
if (ignoreNextPop) {
|
|
208
|
+
ignoreNextPop = false;
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
const nextLocation = parseLocation();
|
|
212
|
+
const delta = nextLocation.state[stateIndexKey] - currentLocation.state[stateIndexKey];
|
|
213
|
+
const isForward = delta === 1;
|
|
214
|
+
const isBack = delta === -1;
|
|
215
|
+
const isGo = !isForward && !isBack || nextPopIsGo;
|
|
216
|
+
nextPopIsGo = false;
|
|
217
|
+
const action = isGo ? "GO" : isBack ? "BACK" : "FORWARD";
|
|
218
|
+
const notify = isGo ? {
|
|
219
|
+
type: "GO",
|
|
220
|
+
index: delta
|
|
221
|
+
} : { type: isBack ? "BACK" : "FORWARD" };
|
|
222
|
+
if (skipBlockerNextPop) skipBlockerNextPop = false;
|
|
223
|
+
else {
|
|
224
|
+
const blockers = _getBlockers();
|
|
225
|
+
if (typeof document !== "undefined" && blockers.length) {
|
|
226
|
+
for (const blocker of blockers) if (await blocker.blockerFn({
|
|
227
|
+
currentLocation,
|
|
228
|
+
nextLocation,
|
|
229
|
+
action
|
|
230
|
+
})) {
|
|
231
|
+
ignoreNextPop = true;
|
|
232
|
+
win.history.go(1);
|
|
233
|
+
history.notify(notify);
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
currentLocation = parseLocation();
|
|
239
|
+
history.notify(notify);
|
|
240
|
+
};
|
|
241
|
+
const onBeforeUnload = (e) => {
|
|
242
|
+
if (ignoreNextBeforeUnload) {
|
|
243
|
+
ignoreNextBeforeUnload = false;
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
let shouldBlock = false;
|
|
247
|
+
const blockers = _getBlockers();
|
|
248
|
+
if (typeof document !== "undefined" && blockers.length) for (const blocker of blockers) {
|
|
249
|
+
const shouldHaveBeforeUnload = blocker.enableBeforeUnload ?? true;
|
|
250
|
+
if (shouldHaveBeforeUnload === true) {
|
|
251
|
+
shouldBlock = true;
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
if (typeof shouldHaveBeforeUnload === "function" && shouldHaveBeforeUnload() === true) {
|
|
255
|
+
shouldBlock = true;
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
if (shouldBlock) {
|
|
260
|
+
e.preventDefault();
|
|
261
|
+
return e.returnValue = "";
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
const history = createHistory({
|
|
265
|
+
getLocation,
|
|
266
|
+
getLength: () => win.history.length,
|
|
267
|
+
pushState: (href, state) => queueHistoryAction("push", href, state),
|
|
268
|
+
replaceState: (href, state) => queueHistoryAction("replace", href, state),
|
|
269
|
+
back: (ignoreBlocker) => {
|
|
270
|
+
if (ignoreBlocker) skipBlockerNextPop = true;
|
|
271
|
+
ignoreNextBeforeUnload = true;
|
|
272
|
+
return win.history.back();
|
|
273
|
+
},
|
|
274
|
+
forward: (ignoreBlocker) => {
|
|
275
|
+
if (ignoreBlocker) skipBlockerNextPop = true;
|
|
276
|
+
ignoreNextBeforeUnload = true;
|
|
277
|
+
win.history.forward();
|
|
278
|
+
},
|
|
279
|
+
go: (n) => {
|
|
280
|
+
nextPopIsGo = true;
|
|
281
|
+
win.history.go(n);
|
|
282
|
+
},
|
|
283
|
+
createHref: (href) => createHref(href),
|
|
284
|
+
flush,
|
|
285
|
+
destroy: () => {
|
|
286
|
+
win.history.pushState = originalPushState;
|
|
287
|
+
win.history.replaceState = originalReplaceState;
|
|
288
|
+
win.removeEventListener(beforeUnloadEvent, onBeforeUnload, { capture: true });
|
|
289
|
+
win.removeEventListener(popStateEvent, onPushPopEvent);
|
|
290
|
+
},
|
|
291
|
+
onBlocked: () => {
|
|
292
|
+
if (rollbackLocation && currentLocation !== rollbackLocation) currentLocation = rollbackLocation;
|
|
293
|
+
},
|
|
294
|
+
getBlockers: _getBlockers,
|
|
295
|
+
setBlockers: _setBlockers,
|
|
296
|
+
notifyOnIndexChange: false
|
|
297
|
+
});
|
|
298
|
+
win.addEventListener(beforeUnloadEvent, onBeforeUnload, { capture: true });
|
|
299
|
+
win.addEventListener(popStateEvent, onPushPopEvent);
|
|
300
|
+
win.history.pushState = function(...args) {
|
|
301
|
+
const res = originalPushState.apply(win.history, args);
|
|
302
|
+
if (!history._ignoreSubscribers) onPushPop("PUSH");
|
|
303
|
+
return res;
|
|
304
|
+
};
|
|
305
|
+
win.history.replaceState = function(...args) {
|
|
306
|
+
const res = originalReplaceState.apply(win.history, args);
|
|
307
|
+
if (!history._ignoreSubscribers) onPushPop("REPLACE");
|
|
308
|
+
return res;
|
|
309
|
+
};
|
|
310
|
+
return history;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Sanitize a path to prevent open redirect vulnerabilities.
|
|
314
|
+
* Removes control characters and collapses leading double slashes.
|
|
315
|
+
*/
|
|
316
|
+
function sanitizePath(path) {
|
|
317
|
+
let sanitized = path.replace(/[\x00-\x1f\x7f]/g, "");
|
|
318
|
+
if (sanitized.startsWith("//")) sanitized = "/" + sanitized.replace(/^\/+/, "");
|
|
319
|
+
return sanitized;
|
|
320
|
+
}
|
|
321
|
+
function parseHref(href, state) {
|
|
322
|
+
const sanitizedHref = sanitizePath(href);
|
|
323
|
+
const hashIndex = sanitizedHref.indexOf("#");
|
|
324
|
+
const searchIndex = sanitizedHref.indexOf("?");
|
|
325
|
+
const addedKey = createRandomKey();
|
|
326
|
+
return {
|
|
327
|
+
href: sanitizedHref,
|
|
328
|
+
pathname: sanitizedHref.substring(0, hashIndex > 0 ? searchIndex > 0 ? Math.min(hashIndex, searchIndex) : hashIndex : searchIndex > 0 ? searchIndex : sanitizedHref.length),
|
|
329
|
+
hash: hashIndex > -1 ? sanitizedHref.substring(hashIndex) : "",
|
|
330
|
+
search: searchIndex > -1 ? sanitizedHref.slice(searchIndex, hashIndex === -1 ? void 0 : hashIndex) : "",
|
|
331
|
+
state: state || {
|
|
332
|
+
[stateIndexKey]: 0,
|
|
333
|
+
key: addedKey,
|
|
334
|
+
__TSR_key: addedKey
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function createRandomKey() {
|
|
339
|
+
return (Math.random() + 1).toString(36).substring(7);
|
|
340
|
+
}
|
|
341
|
+
//#endregion
|
|
342
|
+
export { parseHref as n, createBrowserHistory as t };
|