@wzh-/ai-chat-example 1.0.0 → 1.0.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/dist/_basePickBy-CkZky1V-.js +135 -0
- package/dist/_baseUniq-f11MNaXe.js +573 -0
- package/dist/abap--jVlqvLx.js +2 -0
- package/dist/actionscript-3-N1AoJtTA.js +2 -0
- package/dist/ada-CYGINLea.js +2 -0
- package/dist/ai-chat-example.css +3 -0
- package/dist/andromeeda-CvsZnG9k.js +2 -0
- package/dist/angular-html-C5vmpet2.js +14 -0
- package/dist/angular-html-CLTv4jM9.js +5 -0
- package/dist/angular-ts-BKqJWrwt.js +19 -0
- package/dist/apache-D6X-_dyJ.js +2 -0
- package/dist/apex-C7VgAgAE.js +2 -0
- package/dist/apl-BcJs32yU.js +15 -0
- package/dist/applescript-DN64Su6U.js +2 -0
- package/dist/ara-Dm1jHrgg.js +2 -0
- package/dist/arc-Dh_0vvHo.js +78 -0
- package/dist/architecture-U656AL7Q-BqUSHYp0.js +8 -0
- package/dist/architectureDiagram-VXUJARFQ-BQvEdgpc.js +4053 -0
- package/dist/array-CkdOJbdT.js +5 -0
- package/dist/asciidoc-BpqtqRF5.js +2 -0
- package/dist/asm-DUGlKYIq.js +2 -0
- package/dist/astro-q-huTQEP.js +16 -0
- package/dist/aurora-x-DwOih-un.js +2 -0
- package/dist/awk-DcnVbJrN.js +2 -0
- package/dist/ayu-dark-Bd-89MKE.js +2 -0
- package/dist/ballerina-BQVdQd9X.js +2 -0
- package/dist/bash-DI_p7w58.js +2 -0
- package/dist/bat-juB1J52r.js +2 -0
- package/dist/beancount-ThxIlRc3.js +2 -0
- package/dist/berry-qC18BfC_.js +2 -0
- package/dist/bibtex-CahMDY_0.js +2 -0
- package/dist/bicep-CHLBKS47.js +2 -0
- package/dist/blade-Ckff5WJQ.js +19 -0
- package/dist/blockDiagram-VD42YOAC-DKkDshq3.js +3013 -0
- package/dist/bsl-BTNab0FD.js +3 -0
- package/dist/c-BYDGkYzS.js +2 -0
- package/dist/c-CX6yudYR.js +2 -0
- package/dist/c4Diagram-YG6GDRKO-KsGqOrVB.js +2955 -0
- package/dist/cadence-DA5J9-Di.js +2 -0
- package/dist/cairo-DUZgbTPW.js +3 -0
- package/dist/catppuccin-frappe-CE3kxG1f.js +2 -0
- package/dist/catppuccin-latte-DW2FXeIv.js +2 -0
- package/dist/catppuccin-macchiato-CD5qjRSF.js +2 -0
- package/dist/catppuccin-mocha-BYwVJvjI.js +2 -0
- package/dist/channel-BrxVk5HC.js +3 -0
- package/dist/chunk-4BX2VUAB-BGxl5VGr.js +6 -0
- package/dist/chunk-55IACEB6-CDMD5yu1.js +6 -0
- package/dist/chunk-76Q3JFCE-Db4Lkmow.js +19 -0
- package/dist/chunk-ABZYJK2D-BZvlc6Ej.js +2515 -0
- package/dist/chunk-ATLVNIR6-C3g7rsIT.js +65 -0
- package/dist/chunk-B4BG7PRW-Dx-bGI1r.js +3108 -0
- package/dist/chunk-CVBHYZKI-DxEBlSK7.js +10 -0
- package/dist/chunk-DI55MBZ5-CCWuZnfW.js +1994 -0
- package/dist/chunk-DNh5sLlG.js +18 -0
- package/dist/chunk-EXTU4WIE-BjMX7pAs.js +7 -0
- package/dist/chunk-FMBD7UC4-Dj3Ok4Bk.js +3 -0
- package/dist/chunk-FPAJGGOC-nWbO3e1v.js +12252 -0
- package/dist/chunk-FWNWRKHM-CjcwRw2u.js +56 -0
- package/dist/chunk-HN2XXSSU-Lv4Ef0co.js +74 -0
- package/dist/chunk-JA3XYJ7Z-Dhh1_u_p.js +463 -0
- package/dist/chunk-JZLCHNYA-vrb_Ucuc.js +4861 -0
- package/dist/chunk-LBM3YZW2-D8lrIfGo.js +19 -0
- package/dist/chunk-LHMN2FUI-DLQ0i8hl.js +19 -0
- package/dist/chunk-MI3HLSF2-Dy6F9XgR.js +1140 -0
- package/dist/chunk-N4CR4FBY-BdaGxHlZ.js +39 -0
- package/dist/chunk-O7ZBX7Z2-D8Yaukr5.js +26 -0
- package/dist/chunk-QN33PNHL-DnPw7tni.js +23 -0
- package/dist/chunk-QXUST7PY-D9mGQ-UP.js +486 -0
- package/dist/chunk-QZHKN3VN-ClanGuXA.js +11 -0
- package/dist/chunk-S3R3BYOJ-DHTsHczu.js +1074 -0
- package/dist/chunk-S6J4BHB3-8RrHs9bD.js +19 -0
- package/dist/chunk-T53DSG4Q-C2BDA_QX.js +24 -0
- package/dist/chunk-TZMSLE5B-F4nHm7N1.js +55 -0
- package/dist/chunk-XAJISQIX-Bz7ki7DY.js +135 -0
- package/dist/clarity-CsFOkG3c.js +2 -0
- package/dist/classDiagram-2ON5EDUG-C_ZEMlKu.js +33 -0
- package/dist/classDiagram-v2-WZHVMYZB-BHb5nZOM.js +33 -0
- package/dist/clojure-u1TZmmdQ.js +2 -0
- package/dist/clone-BRioDvRr.js +7 -0
- package/dist/cmake-CA3Lfsq7.js +2 -0
- package/dist/cmake-K1k8HMYR.js +2 -0
- package/dist/cobol-DhzLzJib.js +10 -0
- package/dist/codeowners-l4eSxhtA.js +2 -0
- package/dist/codeql-5CeQaktT.js +2 -0
- package/dist/coffee-P21KTKMu.js +3 -0
- package/dist/common-lisp-BVttGbYJ.js +2 -0
- package/dist/coq-CZjzQDnb.js +2 -0
- package/dist/cose-bilkent-S5V4N54A-Dy-do3hl.js +2250 -0
- package/dist/cpp-C6JyDxZu.js +16 -0
- package/dist/cpp-GAIEvywS.js +6 -0
- package/dist/crystal-BJfcoGS4.js +16 -0
- package/dist/csharp-BbUwciq4.js +2 -0
- package/dist/csharp-JE-9ns6W.js +2 -0
- package/dist/css-Crp0iO_o.js +2 -0
- package/dist/css-Cy-fypCV.js +2 -0
- package/dist/csv-DJ7xG4PY.js +2 -0
- package/dist/csv-DtT8LmMi.js +2 -0
- package/dist/cue-BwjaQTCz.js +2 -0
- package/dist/cypher-B7e06enY.js +2 -0
- package/dist/cytoscape.esm-CWqS6puh.js +18100 -0
- package/dist/d-q60wkid4.js +2 -0
- package/dist/dagre-6UL2VRFP-B38_sZWh.js +298 -0
- package/dist/dagre-DtvXp3zQ.js +1395 -0
- package/dist/dark-plus-D_fA88xf.js +2 -0
- package/dist/dart-DjkWvBgr.js +2 -0
- package/dist/dax-lueLIZQI.js +2 -0
- package/dist/defaultLocale-CoJOMwPq.js +177 -0
- package/dist/desktop-DaphHKD5.js +2 -0
- package/dist/diagram-PSM6KHXK-D6swsG-y.js +497 -0
- package/dist/diagram-QEK2KX5R-B7Hi0LAL.js +226 -0
- package/dist/diagram-S2PKOQOG-DLx7PlpM.js +144 -0
- package/dist/diff-COB48_rb.js +2 -0
- package/dist/diff-DlXnqUMK.js +2 -0
- package/dist/dist-CrnZo_23.js +49 -0
- package/dist/docker-DZKmuwpA.js +2 -0
- package/dist/dotenv-hmNahw-8.js +2 -0
- package/dist/dracula-ddM3a7au.js +2 -0
- package/dist/dracula-soft-vfA-TA_S.js +2 -0
- package/dist/dream-maker-Cxa2a8FY.js +2 -0
- package/dist/edge-Dm7HQa9N.js +12 -0
- package/dist/elixir-BkvHyCNd.js +5 -0
- package/dist/elm-rz9wTSrn.js +4 -0
- package/dist/emacs-lisp-w5URnZPZ.js +2 -0
- package/dist/erDiagram-Q2GNP2WA-B67FD8rh.js +1603 -0
- package/dist/erb-DyrwQYVz.js +25 -0
- package/dist/erlang-DLFKZs5N.js +3 -0
- package/dist/everforest-dark-DAPtv4yI.js +2 -0
- package/dist/everforest-light-nQzYm8GO.js +2 -0
- package/dist/fennel-CJDNJZTU.js +2 -0
- package/dist/fish-BkYaLI4-.js +2 -0
- package/dist/flowDiagram-NV44I4VS-DHXgrdJY.js +4132 -0
- package/dist/fluent-DShra35H.js +2 -0
- package/dist/fortran-fixed-form-SzB0QY3n.js +3 -0
- package/dist/fortran-free-form-CgbOAJnm.js +2 -0
- package/dist/fortran-free-form-Js8JrQQE.js +2 -0
- package/dist/fsharp-CtWO0jvL.js +3 -0
- package/dist/ganttDiagram-JELNMOA3-CGIqBt1P.js +3009 -0
- package/dist/gdresource-CgyXKpe4.js +8 -0
- package/dist/gdscript-DnurdQnh.js +2 -0
- package/dist/gdscript-STdmRKv-.js +2 -0
- package/dist/gdshader-Bs2s6cSB.js +2 -0
- package/dist/gdshader-YiVaPq6D.js +2 -0
- package/dist/genie-BppkvzZC.js +2 -0
- package/dist/gherkin-Bp4zdWMb.js +2 -0
- package/dist/git-commit--0GGwZNa.js +3 -0
- package/dist/git-rebase-orw-bSIZ.js +3 -0
- package/dist/gitGraph-F6HP7TQM-CH5XLm5Z.js +8 -0
- package/dist/gitGraphDiagram-NY62KEGX-Cq8AbOhM.js +634 -0
- package/dist/github-dark-CMN1tZPn.js +2 -0
- package/dist/github-dark-DxCf_Qaz.js +2 -0
- package/dist/github-dark-default-DVCJut02.js +2 -0
- package/dist/github-dark-dimmed-DXu9oDqW.js +2 -0
- package/dist/github-dark-high-contrast-BBZdE-mX.js +2 -0
- package/dist/github-light-CfdX7txK.js +2 -0
- package/dist/github-light-Y8g-VxKq.js +2 -0
- package/dist/github-light-default-BNGkGE--.js +2 -0
- package/dist/github-light-high-contrast-DiSIc-nG.js +2 -0
- package/dist/gleam-Lw0tKp8T.js +2 -0
- package/dist/glimmer-js-C6E6wJv0.js +12 -0
- package/dist/glimmer-ts-C6GgTGNO.js +12 -0
- package/dist/glsl-D8_YBRKT.js +3 -0
- package/dist/glsl-rwn_QCp2.js +3 -0
- package/dist/gnuplot-BeA3etmO.js +2 -0
- package/dist/go-BhDDN9y4.js +2 -0
- package/dist/go-xfE7BrfS.js +2 -0
- package/dist/graphlib-BZdVmxO6.js +223 -0
- package/dist/graphql-DQHhbQm2.js +6 -0
- package/dist/graphql-DoBLseH6.js +12 -0
- package/dist/groovy-C5-mv4io.js +2 -0
- package/dist/gruvbox-dark-hard-CULu6kVy.js +2 -0
- package/dist/gruvbox-dark-medium-BJM4uQXO.js +2 -0
- package/dist/gruvbox-dark-soft-CVaORUwa.js +2 -0
- package/dist/gruvbox-light-hard-B-WJAGLa.js +2 -0
- package/dist/gruvbox-light-medium-jc8FWnuC.js +2 -0
- package/dist/gruvbox-light-soft-CmvYQK92.js +2 -0
- package/dist/hack-DEAxoi73.js +10 -0
- package/dist/haml-BG2d3iX4.js +4 -0
- package/dist/haml-mA656Lm7.js +8 -0
- package/dist/handlebars-CO5xAxJ3.js +12 -0
- package/dist/haskell-Hsexh2aP.js +2 -0
- package/dist/haxe-BJVSeYxy.js +2 -0
- package/dist/haxe-CD_Rs3P5.js +2 -0
- package/dist/hcl-D098sJ_J.js +2 -0
- package/dist/hjson-BwXHX5r6.js +2 -0
- package/dist/hlsl-B0pnUVYG.js +2 -0
- package/dist/hlsl-Dt9-unql.js +2 -0
- package/dist/houston-C7hMWO_I.js +2 -0
- package/dist/html-DFCxtjnd.js +4 -0
- package/dist/html-DKSj3FeM.js +8 -0
- package/dist/html-derivative-BCRkrTcD.js +5 -0
- package/dist/html-derivative-C-vidKoA.js +3 -0
- package/dist/http-CYP1tEDW.js +17 -0
- package/dist/hurl-BJexUSKz.js +15 -0
- package/dist/hxml-XfuSEjM-.js +3 -0
- package/dist/hy-DPQ04rHt.js +2 -0
- package/dist/imba-Bgu2n5Mo.js +2 -0
- package/dist/info-NVLQJR56-hEN1y0nS.js +8 -0
- package/dist/infoDiagram-WHAUD3N6-btPwHXxp.js +31 -0
- package/dist/ini-g9mZnyrk.js +2 -0
- package/dist/init-CBay3kgM.js +13 -0
- package/dist/isArrayLikeObject-Dz_TDfw0.js +459 -0
- package/dist/isEmpty-CCym_WUL.js +32 -0
- package/dist/java-CUbPyze1.js +2 -0
- package/dist/java-DIOGgqAD.js +2 -0
- package/dist/javascript-9-JPeKdm.js +2 -0
- package/dist/javascript-De1qhUaI.js +2 -0
- package/dist/jinja-CVFxFRh6.js +5 -0
- package/dist/jison-0X6LppGq.js +3 -0
- package/dist/journeyDiagram-XKPGCS4Q-3OxtBx3I.js +884 -0
- package/dist/js/chat-example.es.js +39220 -0
- package/dist/js/chat-example.umd.js +2989 -0
- package/dist/json-DJtYdWQK.js +2 -0
- package/dist/json-fcFpRaf3.js +2 -0
- package/dist/json5-CPTZJOmf.js +2 -0
- package/dist/jsonc-CYrayg0k.js +2 -0
- package/dist/jsonl-Bsv7LjJ3.js +2 -0
- package/dist/jsonnet-B7LkHJxg.js +2 -0
- package/dist/jssm-BopKGZKg.js +2 -0
- package/dist/jsx-Bf3Nk9Di.js +2 -0
- package/dist/jsx-qo0JNHpZ.js +2 -0
- package/dist/julia-ChGs-n_c.js +17 -0
- package/dist/kanagawa-dragon-CSqqi78I.js +2 -0
- package/dist/kanagawa-lotus-l2vgoxpH.js +2 -0
- package/dist/kanagawa-wave-BWhFcnLj.js +2 -0
- package/dist/kanban-definition-3W4ZIXB7-zdtnJaXz.js +971 -0
- package/dist/katex-BcWXJDMd.js +22097 -0
- package/dist/katex-K1dsczyg.js +2 -0
- package/dist/kdl-BbokxoZ9.js +2 -0
- package/dist/kotlin-3dXKmwyJ.js +2 -0
- package/dist/kusto-Os6_yHEz.js +2 -0
- package/dist/laserwave-8RcN1zf8.js +2 -0
- package/dist/latex-BnWZlY4q.js +4 -0
- package/dist/lean--0Wr4Cy4.js +2 -0
- package/dist/less-B4ybD-7s.js +2 -0
- package/dist/less-Cb54jO7u.js +2 -0
- package/dist/light-plus-CP_iZQDF.js +2 -0
- package/dist/line-EpckC7pZ.js +30 -0
- package/dist/linear-DjVN4o4U.js +250 -0
- package/dist/liquid-pc5Mduds.js +12 -0
- package/dist/llvm-ILH_SX7E.js +2 -0
- package/dist/log-DwO_GzA0.js +2 -0
- package/dist/logo-B4FeRowR.js +2 -0
- package/dist/lua-0TqNbT8C.js +3 -0
- package/dist/lua-6pXga3HV.js +3 -0
- package/dist/luau-DsUEyLJN.js +2 -0
- package/dist/make-p6NYc19I.js +2 -0
- package/dist/markdown-CCRtgC0b.js +2 -0
- package/dist/markdown-LaaQ4Eua.js +2 -0
- package/dist/marked.esm-D9xINNve.js +1384 -0
- package/dist/marko-D8uDUUEs.js +12 -0
- package/dist/material-theme-D__z84-n.js +2 -0
- package/dist/material-theme-darker-CWC5BoMv.js +2 -0
- package/dist/material-theme-lighter-BJrV5b2o.js +2 -0
- package/dist/material-theme-ocean-DYpMfDiX.js +2 -0
- package/dist/material-theme-palenight-3Ix3iI7Q.js +2 -0
- package/dist/math-CJAnbPum.js +8 -0
- package/dist/matlab-CL0oMGfq.js +2 -0
- package/dist/mdc-Ki3KnB5U.js +13 -0
- package/dist/mdx-BTufVkNP.js +2 -0
- package/dist/mermaid-FCjIh1A7.js +2 -0
- package/dist/mermaid-parser.core-DVXSGppp.js +48 -0
- package/dist/mermaid.core-Ra1JFCui.js +895 -0
- package/dist/min-dark-B4KRMcN3.js +2 -0
- package/dist/min-light-BQVJODr0.js +2 -0
- package/dist/mindmap-definition-VGOIOE7T-CRPO52xV.js +960 -0
- package/dist/mipsasm-Cn6AQ4lM.js +2 -0
- package/dist/mojo-C9IiQhp4.js +2 -0
- package/dist/monokai-vDwMMRi4.js +2 -0
- package/dist/move-BdizQ4_I.js +2 -0
- package/dist/narrat-BP2kx-u2.js +2 -0
- package/dist/nextflow-CyRmCGOe.js +2 -0
- package/dist/nginx-B46vdQ9n.js +4 -0
- package/dist/night-owl-DmjkOa5g.js +2 -0
- package/dist/nim-BxQNx10D.js +19 -0
- package/dist/nix-qPhlsqZI.js +2 -0
- package/dist/nord-sjxbvIbg.js +2 -0
- package/dist/nushell-puA-1bCW.js +2 -0
- package/dist/objective-c-D-qDLNy5.js +2 -0
- package/dist/objective-cpp-CFxSAM6p.js +2 -0
- package/dist/ocaml-CsLB7SWJ.js +2 -0
- package/dist/one-dark-pro-BHH-VjFD.js +2 -0
- package/dist/one-light-BqE6erWk.js +2 -0
- package/dist/openscad-DJCIQfnJ.js +2 -0
- package/dist/ordinal-CYQpsShT.js +61 -0
- package/dist/packet-BFZMPI3H-Bnlch4JI.js +8 -0
- package/dist/pascal-CPg9_ZFN.js +2 -0
- package/dist/path-esxOUfAH.js +79 -0
- package/dist/perl-D1bDaADZ.js +15 -0
- package/dist/php-BX51InqL.js +9 -0
- package/dist/php-D5tmU8Cr.js +16 -0
- package/dist/pie-7BOR55EZ-B9egLHl5.js +8 -0
- package/dist/pieDiagram-ADFJNKIX-CKSgB7fx.js +172 -0
- package/dist/pkl-BQQ96hvn.js +2 -0
- package/dist/plastic-BrNUBdSC.js +2 -0
- package/dist/plsql-Co7Bxe7U.js +2 -0
- package/dist/po-BqzJCro7.js +2 -0
- package/dist/poimandres-C_AK8TlO.js +2 -0
- package/dist/polar-CtdYIPEe.js +2 -0
- package/dist/postcss-ChqFKb46.js +2 -0
- package/dist/postcss-ainQkoyY.js +2 -0
- package/dist/powerquery-CDugc1w-.js +2 -0
- package/dist/powershell-j5X-IA59.js +2 -0
- package/dist/prisma-Cyl7YhUw.js +2 -0
- package/dist/prolog-DELKnUYf.js +2 -0
- package/dist/proto-C4A_gDBY.js +2 -0
- package/dist/pug-BcLlS7Yb.js +10 -0
- package/dist/puppet-DFC9LyFj.js +2 -0
- package/dist/purescript-eECq7_n2.js +2 -0
- package/dist/python-BhdCuCld.js +2 -0
- package/dist/python-CuBu5pyY.js +2 -0
- package/dist/qml-MD0NqqIl.js +3 -0
- package/dist/qmldir-BpJII-Ze.js +2 -0
- package/dist/qss-CpMcemMc.js +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-BHzqivzD.js +1970 -0
- package/dist/r-CQeHOO4c.js +2 -0
- package/dist/r-D90zdkbN.js +2 -0
- package/dist/racket-COTs6Zfi.js +2 -0
- package/dist/radar-NHE76QYJ-DdALhlvV.js +8 -0
- package/dist/raku-DfOtwMUC.js +2 -0
- package/dist/razor-eRwFWsjJ.js +10 -0
- package/dist/red-CWGFZsim.js +2 -0
- package/dist/reg-BX5DwoEA.js +2 -0
- package/dist/regexp-Ca0eDBa2.js +2 -0
- package/dist/regexp-Cap8fK_2.js +2 -0
- package/dist/rel-CzXuLSk3.js +2 -0
- package/dist/requirementDiagram-UZGBJVZJ-Darhwvir.js +2194 -0
- package/dist/riscv-DnFIiqh3.js +2 -0
- package/dist/rose-pine-C4v2iQVe.js +2 -0
- package/dist/rose-pine-dawn-D5sdDB-J.js +2 -0
- package/dist/rose-pine-moon-2Vb7bLLO.js +2 -0
- package/dist/rosmsg-D02ul3fM.js +2 -0
- package/dist/rst-DFmSdXGd.js +34 -0
- package/dist/ruby-BAEFomR0.js +20 -0
- package/dist/ruby-DDMUvAvC.js +28 -0
- package/dist/rust-s3hBbfQg.js +2 -0
- package/dist/sankeyDiagram-TZEHDZUN-KiSvBN_C.js +884 -0
- package/dist/sas-TjtLSnOp.js +3 -0
- package/dist/sass-v3HeJ9Fl.js +2 -0
- package/dist/scala-BTIBM_Vn.js +2 -0
- package/dist/scheme-C4NQMf7a.js +2 -0
- package/dist/scss-C-bthdG1.js +3 -0
- package/dist/scss-D-6-mg-f.js +3 -0
- package/dist/sdbl-BA3l-JrH.js +2 -0
- package/dist/sdbl-gc7zIVWR.js +2 -0
- package/dist/sequenceDiagram-WL72ISMW-D2Mo7Vtj.js +3560 -0
- package/dist/shaderlab-BRlB5fpk.js +3 -0
- package/dist/shellscript-BQ8mKDAF.js +2 -0
- package/dist/shellscript-DZa_4vvb.js +2 -0
- package/dist/shellsession-CIlmlgbR.js +3 -0
- package/dist/slack-dark-DhXO5DWr.js +2 -0
- package/dist/slack-ochin-aAGl4PPH.js +2 -0
- package/dist/smalltalk-DbwVUw_i.js +2 -0
- package/dist/snazzy-light-B4S5mk83.js +2 -0
- package/dist/solarized-dark-Dexkq3Fm.js +2 -0
- package/dist/solarized-light-I-Bzy8UC.js +2 -0
- package/dist/solidity-SMk0TJDc.js +2 -0
- package/dist/soy-DwSCrzEF.js +5 -0
- package/dist/sparql-D9kVSpEx.js +3 -0
- package/dist/splunk-DXXu2r7r.js +2 -0
- package/dist/sql-Bi3LyNPb.js +2 -0
- package/dist/sql-D0eLHBiZ.js +2 -0
- package/dist/src-B-SBGd0A.js +1975 -0
- package/dist/ssh-config-DyVcFTfI.js +2 -0
- package/dist/stata-DkEObyNb.js +3 -0
- package/dist/stateDiagram-FKZM4ZOC-BRQN2Npg.js +224 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CeeIKiFG.js +32 -0
- package/dist/stylus-BKTuFHcX.js +2 -0
- package/dist/stylus-DEHALDNh.js +2 -0
- package/dist/svelte-KFuclcR6.js +12 -0
- package/dist/swift-Cenptrnf.js +2 -0
- package/dist/synthwave-84-BRkDuVE-.js +2 -0
- package/dist/system-verilog-Cvgukx4v.js +2 -0
- package/dist/systemd-BepdslJQ.js +2 -0
- package/dist/talonscript-Q98m-VXh.js +2 -0
- package/dist/tasl-uebrX98X.js +2 -0
- package/dist/tcl-B1Ny4XFf.js +2 -0
- package/dist/templ-C5mtYbb_.js +10 -0
- package/dist/terraform-0mA5ERTe.js +2 -0
- package/dist/tex-B4uYy1vC.js +3 -0
- package/dist/tex-BoVFa1ir.js +3 -0
- package/dist/timeline-definition-IT6M3QCI-CSwH0Pnx.js +830 -0
- package/dist/tokyo-night-D0mU3-u8.js +2 -0
- package/dist/toml-vMAjra5M.js +2 -0
- package/dist/treemap-KMMF4GRG-COjpj6-C.js +8 -0
- package/dist/ts-tags-DRdTXGhb.js +38 -0
- package/dist/tsv-BnmbkntZ.js +2 -0
- package/dist/tsx-BaaPsUbd.js +2 -0
- package/dist/tsx-C0w0w5St.js +2 -0
- package/dist/turtle-4UWi_qX6.js +2 -0
- package/dist/turtle-BRmolh-6.js +2 -0
- package/dist/twig-cEhAbahS.js +33 -0
- package/dist/typescript-4YtK2JL4.js +2 -0
- package/dist/typescript-CmJ8D0yY.js +2 -0
- package/dist/typespec-CILw3zvZ.js +2 -0
- package/dist/typst-CLajFw6q.js +2 -0
- package/dist/v-MJV2RQvK.js +2 -0
- package/dist/vala-Dc1TiHw1.js +2 -0
- package/dist/vb-CoJdNmGs.js +2 -0
- package/dist/verilog-C7aVmiO0.js +2 -0
- package/dist/vesper-Cvcqyrim.js +2 -0
- package/dist/vhdl-CYQvzAG1.js +2 -0
- package/dist/viml-DOyjiDI8.js +2 -0
- package/dist/vitesse-black-CUYJaB5b.js +2 -0
- package/dist/vitesse-dark-BNlzDJ1Z.js +2 -0
- package/dist/vitesse-light-JU98KqVa.js +2 -0
- package/dist/vue-B3C4YeUK.js +8 -0
- package/dist/vue-DMpjAWNv.js +20 -0
- package/dist/vue-html-BIZN50ug.js +13 -0
- package/dist/vue-vine-DxezWcjL.js +22 -0
- package/dist/vyper-JU_r7Ch6.js +2 -0
- package/dist/wasm-DJ1S--fN.js +2 -0
- package/dist/wasm-eLFiAU8u.js +2 -0
- package/dist/wenyan-CqkzmyWz.js +2 -0
- package/dist/wgsl-gV62iTnF.js +2 -0
- package/dist/wikitext-BfUl8La4.js +2 -0
- package/dist/wit-kp_bCf2U.js +2 -0
- package/dist/wolfram-aPsN9AKt.js +2 -0
- package/dist/xml-BglBgo29.js +3 -0
- package/dist/xml-BxRdgEAX.js +3 -0
- package/dist/xsl-Cni90e0k.js +4 -0
- package/dist/xychartDiagram-PRI3JC2R-CGXFYn39.js +2022 -0
- package/dist/yaml-DQRfaSRo.js +2 -0
- package/dist/yaml-P2kjOPvW.js +2 -0
- package/dist/zenscript-BuY4FX-t.js +2 -0
- package/dist/zig-CGDGjytz.js +2 -0
- package/package.json +10 -6
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -6
- package/auto-imports.d.ts +0 -73
- package/components.d.ts +0 -312
- package/components.json +0 -21
- package/index.html +0 -13
- package/src/App.vue +0 -68
- package/src/components/ChatConversation/ChatConversation.vue +0 -97
- package/src/components/ChatConversation/index.ts +0 -1
- package/src/components/ChatPromptInputProvider/ChatPromptInputProvider.vue +0 -47
- package/src/components/ChatPromptInputProvider/index.ts +0 -1
- package/src/components/ai-elements/artifact/Artifact.vue +0 -23
- package/src/components/ai-elements/artifact/ArtifactAction.vue +0 -72
- package/src/components/ai-elements/artifact/ArtifactActions.vue +0 -19
- package/src/components/ai-elements/artifact/ArtifactClose.vue +0 -39
- package/src/components/ai-elements/artifact/ArtifactContent.vue +0 -20
- package/src/components/ai-elements/artifact/ArtifactDescription.vue +0 -20
- package/src/components/ai-elements/artifact/ArtifactHeader.vue +0 -23
- package/src/components/ai-elements/artifact/ArtifactTitle.vue +0 -20
- package/src/components/ai-elements/artifact/index.ts +0 -8
- package/src/components/ai-elements/canvas/Canvas.vue +0 -37
- package/src/components/ai-elements/canvas/index.ts +0 -1
- package/src/components/ai-elements/chain-of-thought/ChainOfThought.vue +0 -41
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue +0 -32
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue +0 -43
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue +0 -25
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue +0 -24
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue +0 -17
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue +0 -54
- package/src/components/ai-elements/chain-of-thought/context.ts +0 -22
- package/src/components/ai-elements/chain-of-thought/index.ts +0 -7
- package/src/components/ai-elements/checkpoint/Checkpoint.vue +0 -19
- package/src/components/ai-elements/checkpoint/CheckpointIcon.vue +0 -19
- package/src/components/ai-elements/checkpoint/CheckpointTrigger.vue +0 -46
- package/src/components/ai-elements/checkpoint/index.ts +0 -3
- package/src/components/ai-elements/code-block/CodeBlock.vue +0 -84
- package/src/components/ai-elements/code-block/CodeBlockCopyButton.vue +0 -84
- package/src/components/ai-elements/code-block/context.ts +0 -7
- package/src/components/ai-elements/code-block/index.ts +0 -2
- package/src/components/ai-elements/code-block/utils.ts +0 -46
- package/src/components/ai-elements/confirmation/Confirmation.vue +0 -30
- package/src/components/ai-elements/confirmation/ConfirmationAccepted.vue +0 -18
- package/src/components/ai-elements/confirmation/ConfirmationAction.vue +0 -9
- package/src/components/ai-elements/confirmation/ConfirmationActions.vue +0 -23
- package/src/components/ai-elements/confirmation/ConfirmationRejected.vue +0 -18
- package/src/components/ai-elements/confirmation/ConfirmationRequest.vue +0 -11
- package/src/components/ai-elements/confirmation/ConfirmationTitle.vue +0 -18
- package/src/components/ai-elements/confirmation/context.ts +0 -46
- package/src/components/ai-elements/confirmation/index.ts +0 -7
- package/src/components/ai-elements/connection/Connection.vue +0 -36
- package/src/components/ai-elements/connection/index.ts +0 -1
- package/src/components/ai-elements/context/Context.vue +0 -29
- package/src/components/ai-elements/context/ContextCacheUsage.vue +0 -45
- package/src/components/ai-elements/context/ContextContent.vue +0 -20
- package/src/components/ai-elements/context/ContextContentBody.vue +0 -14
- package/src/components/ai-elements/context/ContextContentFooter.vue +0 -49
- package/src/components/ai-elements/context/ContextContentHeader.vue +0 -49
- package/src/components/ai-elements/context/ContextIcon.vue +0 -62
- package/src/components/ai-elements/context/ContextInputUsage.vue +0 -46
- package/src/components/ai-elements/context/ContextOutputUsage.vue +0 -45
- package/src/components/ai-elements/context/ContextReasoningUsage.vue +0 -48
- package/src/components/ai-elements/context/ContextTrigger.vue +0 -32
- package/src/components/ai-elements/context/TokensWithCost.vue +0 -25
- package/src/components/ai-elements/context/context.ts +0 -23
- package/src/components/ai-elements/context/index.ts +0 -12
- package/src/components/ai-elements/controls/Controls.vue +0 -25
- package/src/components/ai-elements/controls/index.ts +0 -1
- package/src/components/ai-elements/conversation/Conversation.vue +0 -37
- package/src/components/ai-elements/conversation/ConversationContent.vue +0 -21
- package/src/components/ai-elements/conversation/ConversationEmptyState.vue +0 -40
- package/src/components/ai-elements/conversation/ConversationScrollButton.vue +0 -34
- package/src/components/ai-elements/conversation/index.ts +0 -4
- package/src/components/ai-elements/edge/Animated.vue +0 -91
- package/src/components/ai-elements/edge/Temporary.vue +0 -28
- package/src/components/ai-elements/edge/index.ts +0 -2
- package/src/components/ai-elements/image/Image.vue +0 -29
- package/src/components/ai-elements/image/index.ts +0 -1
- package/src/components/ai-elements/inline-citation/InlineCitation.vue +0 -14
- package/src/components/ai-elements/inline-citation/InlineCitationCard.vue +0 -17
- package/src/components/ai-elements/inline-citation/InlineCitationCardBody.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue +0 -35
- package/src/components/ai-elements/inline-citation/InlineCitationCarousel.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue +0 -9
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue +0 -16
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue +0 -46
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue +0 -23
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue +0 -23
- package/src/components/ai-elements/inline-citation/InlineCitationQuote.vue +0 -16
- package/src/components/ai-elements/inline-citation/InlineCitationSource.vue +0 -26
- package/src/components/ai-elements/inline-citation/InlineCitationText.vue +0 -14
- package/src/components/ai-elements/inline-citation/index.ts +0 -14
- package/src/components/ai-elements/loader/Loader.vue +0 -23
- package/src/components/ai-elements/loader/LoaderIcon.vue +0 -38
- package/src/components/ai-elements/loader/index.ts +0 -2
- package/src/components/ai-elements/message/Message.vue +0 -27
- package/src/components/ai-elements/message/MessageAction.vue +0 -45
- package/src/components/ai-elements/message/MessageActions.vue +0 -19
- package/src/components/ai-elements/message/MessageAttachment.vue +0 -87
- package/src/components/ai-elements/message/MessageAttachments.vue +0 -25
- package/src/components/ai-elements/message/MessageAvatar.vue +0 -22
- package/src/components/ai-elements/message/MessageBranch.vue +0 -66
- package/src/components/ai-elements/message/MessageBranchContent.vue +0 -51
- package/src/components/ai-elements/message/MessageBranchNext.vue +0 -23
- package/src/components/ai-elements/message/MessageBranchPage.vue +0 -28
- package/src/components/ai-elements/message/MessageBranchPrevious.vue +0 -23
- package/src/components/ai-elements/message/MessageBranchSelector.vue +0 -23
- package/src/components/ai-elements/message/MessageContent.vue +0 -26
- package/src/components/ai-elements/message/MessageResponse.vue +0 -42
- package/src/components/ai-elements/message/MessageToolbar.vue +0 -24
- package/src/components/ai-elements/message/context.ts +0 -22
- package/src/components/ai-elements/message/index.ts +0 -15
- package/src/components/ai-elements/model-selector/ModelSelector.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorContent.vue +0 -29
- package/src/components/ai-elements/model-selector/ModelSelectorDialog.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorEmpty.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorGroup.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorInput.vue +0 -18
- package/src/components/ai-elements/model-selector/ModelSelectorItem.vue +0 -10
- package/src/components/ai-elements/model-selector/ModelSelectorList.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorLogo.vue +0 -22
- package/src/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue +0 -24
- package/src/components/ai-elements/model-selector/ModelSelectorName.vue +0 -19
- package/src/components/ai-elements/model-selector/ModelSelectorSeparator.vue +0 -7
- package/src/components/ai-elements/model-selector/ModelSelectorShortcut.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorTrigger.vue +0 -9
- package/src/components/ai-elements/model-selector/index.ts +0 -14
- package/src/components/ai-elements/node/Node.vue +0 -31
- package/src/components/ai-elements/node/NodeAction.vue +0 -9
- package/src/components/ai-elements/node/NodeContent.vue +0 -15
- package/src/components/ai-elements/node/NodeDescription.vue +0 -9
- package/src/components/ai-elements/node/NodeFooter.vue +0 -15
- package/src/components/ai-elements/node/NodeHeader.vue +0 -15
- package/src/components/ai-elements/node/NodeTitle.vue +0 -9
- package/src/components/ai-elements/node/index.ts +0 -7
- package/src/components/ai-elements/open-in-chat/OpenIn.vue +0 -20
- package/src/components/ai-elements/open-in-chat/OpenInContent.vue +0 -25
- package/src/components/ai-elements/open-in-chat/OpenInItemLink.vue +0 -30
- package/src/components/ai-elements/open-in-chat/OpenInTrigger.vue +0 -16
- package/src/components/ai-elements/open-in-chat/context.ts +0 -20
- package/src/components/ai-elements/open-in-chat/index.ts +0 -9
- package/src/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue +0 -13
- package/src/components/ai-elements/open-in-chat/providers/icons/Claude.vue +0 -15
- package/src/components/ai-elements/open-in-chat/providers/icons/Cursor.vue +0 -13
- package/src/components/ai-elements/open-in-chat/providers/icons/Github.vue +0 -8
- package/src/components/ai-elements/open-in-chat/providers/icons/Scira.vue +0 -58
- package/src/components/ai-elements/open-in-chat/providers/icons/V0.vue +0 -15
- package/src/components/ai-elements/open-in-chat/providers/icons/index.ts +0 -6
- package/src/components/ai-elements/open-in-chat/providers/index.ts +0 -69
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue +0 -18
- package/src/components/ai-elements/panel/Panel.vue +0 -28
- package/src/components/ai-elements/panel/index.ts +0 -1
- package/src/components/ai-elements/plan/Plan.vue +0 -32
- package/src/components/ai-elements/plan/PlanAction.vue +0 -9
- package/src/components/ai-elements/plan/PlanContent.vue +0 -12
- package/src/components/ai-elements/plan/PlanDescription.vue +0 -25
- package/src/components/ai-elements/plan/PlanFooter.vue +0 -9
- package/src/components/ai-elements/plan/PlanHeader.vue +0 -18
- package/src/components/ai-elements/plan/PlanTitle.vue +0 -16
- package/src/components/ai-elements/plan/PlanTrigger.vue +0 -25
- package/src/components/ai-elements/plan/context.ts +0 -20
- package/src/components/ai-elements/plan/index.ts +0 -8
- package/src/components/ai-elements/prompt-input/PromptInput.vue +0 -116
- package/src/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputActionMenu.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue +0 -21
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputAttachment.vue +0 -94
- package/src/components/ai-elements/prompt-input/PromptInputAttachments.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputBody.vue +0 -12
- package/src/components/ai-elements/prompt-input/PromptInputButton.vue +0 -56
- package/src/components/ai-elements/prompt-input/PromptInputCommand.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandGroup.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandInput.vue +0 -17
- package/src/components/ai-elements/prompt-input/PromptInputCommandItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandList.vue +0 -17
- package/src/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputFooter.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHeader.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHoverCard.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputProvider.vue +0 -32
- package/src/components/ai-elements/prompt-input/PromptInputSelect.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputSelectContent.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSelectItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue +0 -26
- package/src/components/ai-elements/prompt-input/PromptInputSelectValue.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSpeechButton.vue +0 -137
- package/src/components/ai-elements/prompt-input/PromptInputSubmit.vue +0 -60
- package/src/components/ai-elements/prompt-input/PromptInputTab.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabBody.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabItem.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabLabel.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabsList.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTextarea.vue +0 -78
- package/src/components/ai-elements/prompt-input/PromptInputTools.vue +0 -12
- package/src/components/ai-elements/prompt-input/context.ts +0 -223
- package/src/components/ai-elements/prompt-input/index.ts +0 -39
- package/src/components/ai-elements/prompt-input/types.ts +0 -28
- package/src/components/ai-elements/queue/Queue.vue +0 -21
- package/src/components/ai-elements/queue/QueueItem.vue +0 -21
- package/src/components/ai-elements/queue/QueueItemAction.vue +0 -25
- package/src/components/ai-elements/queue/QueueItemActions.vue +0 -14
- package/src/components/ai-elements/queue/QueueItemAttachment.vue +0 -14
- package/src/components/ai-elements/queue/QueueItemContent.vue +0 -32
- package/src/components/ai-elements/queue/QueueItemDescription.vue +0 -32
- package/src/components/ai-elements/queue/QueueItemFile.vue +0 -25
- package/src/components/ai-elements/queue/QueueItemImage.vue +0 -18
- package/src/components/ai-elements/queue/QueueItemIndicator.vue +0 -30
- package/src/components/ai-elements/queue/QueueList.vue +0 -22
- package/src/components/ai-elements/queue/QueueSection.vue +0 -26
- package/src/components/ai-elements/queue/QueueSectionContent.vue +0 -15
- package/src/components/ai-elements/queue/QueueSectionLabel.vue +0 -26
- package/src/components/ai-elements/queue/QueueSectionTrigger.vue +0 -25
- package/src/components/ai-elements/queue/index.ts +0 -15
- package/src/components/ai-elements/reasoning/Reasoning.vue +0 -94
- package/src/components/ai-elements/reasoning/ReasoningContent.vue +0 -41
- package/src/components/ai-elements/reasoning/ReasoningTrigger.vue +0 -61
- package/src/components/ai-elements/reasoning/context.ts +0 -19
- package/src/components/ai-elements/reasoning/index.ts +0 -3
- package/src/components/ai-elements/shimmer/Shimmer.vue +0 -69
- package/src/components/ai-elements/shimmer/index.ts +0 -1
- package/src/components/ai-elements/sources/Source.vue +0 -26
- package/src/components/ai-elements/sources/Sources.vue +0 -17
- package/src/components/ai-elements/sources/SourcesContent.vue +0 -23
- package/src/components/ai-elements/sources/SourcesTrigger.vue +0 -24
- package/src/components/ai-elements/sources/index.ts +0 -4
- package/src/components/ai-elements/suggestion/Suggestion.vue +0 -38
- package/src/components/ai-elements/suggestion/Suggestions.vue +0 -20
- package/src/components/ai-elements/suggestion/index.ts +0 -2
- package/src/components/ai-elements/task/Task.vue +0 -32
- package/src/components/ai-elements/task/TaskContent.vue +0 -27
- package/src/components/ai-elements/task/TaskItem.vue +0 -16
- package/src/components/ai-elements/task/TaskItemFile.vue +0 -18
- package/src/components/ai-elements/task/TaskTrigger.vue +0 -33
- package/src/components/ai-elements/task/index.ts +0 -5
- package/src/components/ai-elements/tool/Tool.vue +0 -18
- package/src/components/ai-elements/tool/ToolContent.vue +0 -23
- package/src/components/ai-elements/tool/ToolHeader.vue +0 -38
- package/src/components/ai-elements/tool/ToolInput.vue +0 -32
- package/src/components/ai-elements/tool/ToolOutput.vue +0 -69
- package/src/components/ai-elements/tool/ToolStatusBadge.vue +0 -63
- package/src/components/ai-elements/tool/index.ts +0 -5
- package/src/components/ai-elements/toolbar/Toolbar.vue +0 -32
- package/src/components/ai-elements/toolbar/index.ts +0 -1
- package/src/components/ai-elements/web-preview/WebPreview.vue +0 -60
- package/src/components/ai-elements/web-preview/WebPreviewBody.vue +0 -34
- package/src/components/ai-elements/web-preview/WebPreviewConsole.vue +0 -92
- package/src/components/ai-elements/web-preview/WebPreviewNavigation.vue +0 -21
- package/src/components/ai-elements/web-preview/WebPreviewNavigationButton.vue +0 -45
- package/src/components/ai-elements/web-preview/WebPreviewUrl.vue +0 -43
- package/src/components/ai-elements/web-preview/context.ts +0 -25
- package/src/components/ai-elements/web-preview/index.ts +0 -7
- package/src/components/ui/alert/Alert.vue +0 -21
- package/src/components/ui/alert/AlertDescription.vue +0 -17
- package/src/components/ui/alert/AlertTitle.vue +0 -17
- package/src/components/ui/alert/index.ts +0 -24
- package/src/components/ui/avatar/Avatar.vue +0 -18
- package/src/components/ui/avatar/AvatarFallback.vue +0 -21
- package/src/components/ui/avatar/AvatarImage.vue +0 -16
- package/src/components/ui/avatar/index.ts +0 -3
- package/src/components/ui/badge/Badge.vue +0 -26
- package/src/components/ui/badge/index.ts +0 -26
- package/src/components/ui/button/Button.vue +0 -29
- package/src/components/ui/button/index.ts +0 -38
- package/src/components/ui/button-group/ButtonGroup.vue +0 -22
- package/src/components/ui/button-group/ButtonGroupSeparator.vue +0 -24
- package/src/components/ui/button-group/ButtonGroupText.vue +0 -29
- package/src/components/ui/button-group/index.ts +0 -25
- package/src/components/ui/card/Card.vue +0 -22
- package/src/components/ui/card/CardAction.vue +0 -17
- package/src/components/ui/card/CardContent.vue +0 -17
- package/src/components/ui/card/CardDescription.vue +0 -17
- package/src/components/ui/card/CardFooter.vue +0 -17
- package/src/components/ui/card/CardHeader.vue +0 -17
- package/src/components/ui/card/CardTitle.vue +0 -17
- package/src/components/ui/card/index.ts +0 -7
- package/src/components/ui/carousel/Carousel.vue +0 -53
- package/src/components/ui/carousel/CarouselContent.vue +0 -33
- package/src/components/ui/carousel/CarouselItem.vue +0 -24
- package/src/components/ui/carousel/CarouselNext.vue +0 -41
- package/src/components/ui/carousel/CarouselPrevious.vue +0 -41
- package/src/components/ui/carousel/index.ts +0 -10
- package/src/components/ui/carousel/interface.ts +0 -26
- package/src/components/ui/carousel/useCarousel.ts +0 -56
- package/src/components/ui/collapsible/Collapsible.vue +0 -19
- package/src/components/ui/collapsible/CollapsibleContent.vue +0 -15
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +0 -15
- package/src/components/ui/collapsible/index.ts +0 -3
- package/src/components/ui/command/Command.vue +0 -87
- package/src/components/ui/command/CommandDialog.vue +0 -31
- package/src/components/ui/command/CommandEmpty.vue +0 -27
- package/src/components/ui/command/CommandGroup.vue +0 -45
- package/src/components/ui/command/CommandInput.vue +0 -39
- package/src/components/ui/command/CommandItem.vue +0 -76
- package/src/components/ui/command/CommandList.vue +0 -25
- package/src/components/ui/command/CommandSeparator.vue +0 -21
- package/src/components/ui/command/CommandShortcut.vue +0 -17
- package/src/components/ui/command/index.ts +0 -25
- package/src/components/ui/dialog/Dialog.vue +0 -19
- package/src/components/ui/dialog/DialogClose.vue +0 -15
- package/src/components/ui/dialog/DialogContent.vue +0 -53
- package/src/components/ui/dialog/DialogDescription.vue +0 -23
- package/src/components/ui/dialog/DialogFooter.vue +0 -15
- package/src/components/ui/dialog/DialogHeader.vue +0 -17
- package/src/components/ui/dialog/DialogOverlay.vue +0 -21
- package/src/components/ui/dialog/DialogScrollContent.vue +0 -59
- package/src/components/ui/dialog/DialogTitle.vue +0 -23
- package/src/components/ui/dialog/DialogTrigger.vue +0 -15
- package/src/components/ui/dialog/index.ts +0 -10
- package/src/components/ui/dropdown-menu/DropdownMenu.vue +0 -19
- package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -39
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -39
- package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +0 -15
- package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -31
- package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +0 -23
- package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -21
- package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -40
- package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -23
- package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +0 -17
- package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +0 -18
- package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +0 -27
- package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +0 -30
- package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -17
- package/src/components/ui/dropdown-menu/index.ts +0 -16
- package/src/components/ui/hover-card/HoverCard.vue +0 -19
- package/src/components/ui/hover-card/HoverCardContent.vue +0 -43
- package/src/components/ui/hover-card/HoverCardTrigger.vue +0 -15
- package/src/components/ui/hover-card/index.ts +0 -3
- package/src/components/ui/input/Input.vue +0 -33
- package/src/components/ui/input/index.ts +0 -1
- package/src/components/ui/input-group/InputGroup.vue +0 -37
- package/src/components/ui/input-group/InputGroupAddon.vue +0 -36
- package/src/components/ui/input-group/InputGroupButton.vue +0 -21
- package/src/components/ui/input-group/InputGroupInput.vue +0 -19
- package/src/components/ui/input-group/InputGroupText.vue +0 -19
- package/src/components/ui/input-group/InputGroupTextarea.vue +0 -19
- package/src/components/ui/input-group/index.ts +0 -59
- package/src/components/ui/progress/Progress.vue +0 -38
- package/src/components/ui/progress/index.ts +0 -1
- package/src/components/ui/scroll-area/ScrollArea.vue +0 -33
- package/src/components/ui/scroll-area/ScrollBar.vue +0 -32
- package/src/components/ui/scroll-area/index.ts +0 -2
- package/src/components/ui/select/Select.vue +0 -19
- package/src/components/ui/select/SelectContent.vue +0 -51
- package/src/components/ui/select/SelectGroup.vue +0 -15
- package/src/components/ui/select/SelectItem.vue +0 -44
- package/src/components/ui/select/SelectItemText.vue +0 -15
- package/src/components/ui/select/SelectLabel.vue +0 -17
- package/src/components/ui/select/SelectScrollDownButton.vue +0 -26
- package/src/components/ui/select/SelectScrollUpButton.vue +0 -26
- package/src/components/ui/select/SelectSeparator.vue +0 -19
- package/src/components/ui/select/SelectTrigger.vue +0 -33
- package/src/components/ui/select/SelectValue.vue +0 -15
- package/src/components/ui/select/index.ts +0 -11
- package/src/components/ui/separator/Separator.vue +0 -29
- package/src/components/ui/separator/index.ts +0 -1
- package/src/components/ui/textarea/Textarea.vue +0 -28
- package/src/components/ui/textarea/index.ts +0 -1
- package/src/components/ui/tooltip/Tooltip.vue +0 -19
- package/src/components/ui/tooltip/TooltipContent.vue +0 -34
- package/src/components/ui/tooltip/TooltipProvider.vue +0 -14
- package/src/components/ui/tooltip/TooltipTrigger.vue +0 -15
- package/src/components/ui/tooltip/index.ts +0 -4
- package/src/composables/useChat.ts +0 -46
- package/src/index.ts +0 -3
- package/src/lib/utils.ts +0 -7
- package/src/main.ts +0 -5
- package/src/request/index.ts +0 -41
- package/src/style.css +0 -120
- package/tsconfig.app.json +0 -25
- package/tsconfig.json +0 -13
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -26
- /package/{public → dist}/vite.svg +0 -0
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
import { g as log, h as __name, m as __export, p as select_default } from "./src-B-SBGd0A.js";
|
|
2
|
+
import { $ as is_dark_default, G as setupGraphViewbox, Q as lighten_default, Z as darken_default, a as clear, b as getConfig2, o as commonDb_exports } from "./chunk-ABZYJK2D-BZvlc6Ej.js";
|
|
3
|
+
import "./path-esxOUfAH.js";
|
|
4
|
+
import "./math-CJAnbPum.js";
|
|
5
|
+
import { t as arc_default } from "./arc-Dh_0vvHo.js";
|
|
6
|
+
var parser = (function() {
|
|
7
|
+
var e = /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
8
|
+
for (C ||= {}, w = e.length; w--; C[e[w]] = S);
|
|
9
|
+
return C;
|
|
10
|
+
}, "o"), C = [
|
|
11
|
+
6,
|
|
12
|
+
8,
|
|
13
|
+
10,
|
|
14
|
+
11,
|
|
15
|
+
12,
|
|
16
|
+
14,
|
|
17
|
+
16,
|
|
18
|
+
17,
|
|
19
|
+
20,
|
|
20
|
+
21
|
|
21
|
+
], w = [1, 9], T = [1, 10], E = [1, 11], D = [1, 12], O = [1, 13], k = [1, 16], A = [1, 17], j = {
|
|
22
|
+
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
23
|
+
yy: {},
|
|
24
|
+
symbols_: {
|
|
25
|
+
error: 2,
|
|
26
|
+
start: 3,
|
|
27
|
+
timeline: 4,
|
|
28
|
+
document: 5,
|
|
29
|
+
EOF: 6,
|
|
30
|
+
line: 7,
|
|
31
|
+
SPACE: 8,
|
|
32
|
+
statement: 9,
|
|
33
|
+
NEWLINE: 10,
|
|
34
|
+
title: 11,
|
|
35
|
+
acc_title: 12,
|
|
36
|
+
acc_title_value: 13,
|
|
37
|
+
acc_descr: 14,
|
|
38
|
+
acc_descr_value: 15,
|
|
39
|
+
acc_descr_multiline_value: 16,
|
|
40
|
+
section: 17,
|
|
41
|
+
period_statement: 18,
|
|
42
|
+
event_statement: 19,
|
|
43
|
+
period: 20,
|
|
44
|
+
event: 21,
|
|
45
|
+
$accept: 0,
|
|
46
|
+
$end: 1
|
|
47
|
+
},
|
|
48
|
+
terminals_: {
|
|
49
|
+
2: "error",
|
|
50
|
+
4: "timeline",
|
|
51
|
+
6: "EOF",
|
|
52
|
+
8: "SPACE",
|
|
53
|
+
10: "NEWLINE",
|
|
54
|
+
11: "title",
|
|
55
|
+
12: "acc_title",
|
|
56
|
+
13: "acc_title_value",
|
|
57
|
+
14: "acc_descr",
|
|
58
|
+
15: "acc_descr_value",
|
|
59
|
+
16: "acc_descr_multiline_value",
|
|
60
|
+
17: "section",
|
|
61
|
+
20: "period",
|
|
62
|
+
21: "event"
|
|
63
|
+
},
|
|
64
|
+
productions_: [
|
|
65
|
+
0,
|
|
66
|
+
[3, 3],
|
|
67
|
+
[5, 0],
|
|
68
|
+
[5, 2],
|
|
69
|
+
[7, 2],
|
|
70
|
+
[7, 1],
|
|
71
|
+
[7, 1],
|
|
72
|
+
[7, 1],
|
|
73
|
+
[9, 1],
|
|
74
|
+
[9, 2],
|
|
75
|
+
[9, 2],
|
|
76
|
+
[9, 1],
|
|
77
|
+
[9, 1],
|
|
78
|
+
[9, 1],
|
|
79
|
+
[9, 1],
|
|
80
|
+
[18, 1],
|
|
81
|
+
[19, 1]
|
|
82
|
+
],
|
|
83
|
+
performAction: /* @__PURE__ */ __name(function(e, S, C, w, T, E, D) {
|
|
84
|
+
var O = E.length - 1;
|
|
85
|
+
switch (T) {
|
|
86
|
+
case 1: return E[O - 1];
|
|
87
|
+
case 2:
|
|
88
|
+
this.$ = [];
|
|
89
|
+
break;
|
|
90
|
+
case 3:
|
|
91
|
+
E[O - 1].push(E[O]), this.$ = E[O - 1];
|
|
92
|
+
break;
|
|
93
|
+
case 4:
|
|
94
|
+
case 5:
|
|
95
|
+
this.$ = E[O];
|
|
96
|
+
break;
|
|
97
|
+
case 6:
|
|
98
|
+
case 7:
|
|
99
|
+
this.$ = [];
|
|
100
|
+
break;
|
|
101
|
+
case 8:
|
|
102
|
+
w.getCommonDb().setDiagramTitle(E[O].substr(6)), this.$ = E[O].substr(6);
|
|
103
|
+
break;
|
|
104
|
+
case 9:
|
|
105
|
+
this.$ = E[O].trim(), w.getCommonDb().setAccTitle(this.$);
|
|
106
|
+
break;
|
|
107
|
+
case 10:
|
|
108
|
+
case 11:
|
|
109
|
+
this.$ = E[O].trim(), w.getCommonDb().setAccDescription(this.$);
|
|
110
|
+
break;
|
|
111
|
+
case 12:
|
|
112
|
+
w.addSection(E[O].substr(8)), this.$ = E[O].substr(8);
|
|
113
|
+
break;
|
|
114
|
+
case 15:
|
|
115
|
+
w.addTask(E[O], 0, ""), this.$ = E[O];
|
|
116
|
+
break;
|
|
117
|
+
case 16:
|
|
118
|
+
w.addEvent(E[O].substr(2)), this.$ = E[O];
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}, "anonymous"),
|
|
122
|
+
table: [
|
|
123
|
+
{
|
|
124
|
+
3: 1,
|
|
125
|
+
4: [1, 2]
|
|
126
|
+
},
|
|
127
|
+
{ 1: [3] },
|
|
128
|
+
e(C, [2, 2], { 5: 3 }),
|
|
129
|
+
{
|
|
130
|
+
6: [1, 4],
|
|
131
|
+
7: 5,
|
|
132
|
+
8: [1, 6],
|
|
133
|
+
9: 7,
|
|
134
|
+
10: [1, 8],
|
|
135
|
+
11: w,
|
|
136
|
+
12: T,
|
|
137
|
+
14: E,
|
|
138
|
+
16: D,
|
|
139
|
+
17: O,
|
|
140
|
+
18: 14,
|
|
141
|
+
19: 15,
|
|
142
|
+
20: k,
|
|
143
|
+
21: A
|
|
144
|
+
},
|
|
145
|
+
e(C, [2, 7], { 1: [2, 1] }),
|
|
146
|
+
e(C, [2, 3]),
|
|
147
|
+
{
|
|
148
|
+
9: 18,
|
|
149
|
+
11: w,
|
|
150
|
+
12: T,
|
|
151
|
+
14: E,
|
|
152
|
+
16: D,
|
|
153
|
+
17: O,
|
|
154
|
+
18: 14,
|
|
155
|
+
19: 15,
|
|
156
|
+
20: k,
|
|
157
|
+
21: A
|
|
158
|
+
},
|
|
159
|
+
e(C, [2, 5]),
|
|
160
|
+
e(C, [2, 6]),
|
|
161
|
+
e(C, [2, 8]),
|
|
162
|
+
{ 13: [1, 19] },
|
|
163
|
+
{ 15: [1, 20] },
|
|
164
|
+
e(C, [2, 11]),
|
|
165
|
+
e(C, [2, 12]),
|
|
166
|
+
e(C, [2, 13]),
|
|
167
|
+
e(C, [2, 14]),
|
|
168
|
+
e(C, [2, 15]),
|
|
169
|
+
e(C, [2, 16]),
|
|
170
|
+
e(C, [2, 4]),
|
|
171
|
+
e(C, [2, 9]),
|
|
172
|
+
e(C, [2, 10])
|
|
173
|
+
],
|
|
174
|
+
defaultActions: {},
|
|
175
|
+
parseError: /* @__PURE__ */ __name(function(e, S) {
|
|
176
|
+
if (S.recoverable) this.trace(e);
|
|
177
|
+
else {
|
|
178
|
+
var C = Error(e);
|
|
179
|
+
throw C.hash = S, C;
|
|
180
|
+
}
|
|
181
|
+
}, "parseError"),
|
|
182
|
+
parse: /* @__PURE__ */ __name(function(e) {
|
|
183
|
+
var C = this, w = [0], T = [], E = [null], D = [], O = this.table, k = "", A = 0, j = 0, M = 0, N = 2, P = 1, F = D.slice.call(arguments, 1), I = Object.create(this.lexer), L = { yy: {} };
|
|
184
|
+
for (var R in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R) && (L.yy[R] = this.yy[R]);
|
|
185
|
+
I.setInput(e, L.yy), L.yy.lexer = I, L.yy.parser = this, I.yylloc === void 0 && (I.yylloc = {});
|
|
186
|
+
var z = I.yylloc;
|
|
187
|
+
D.push(z);
|
|
188
|
+
var B = I.options && I.options.ranges;
|
|
189
|
+
typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
190
|
+
function V(e) {
|
|
191
|
+
w.length -= 2 * e, E.length -= e, D.length -= e;
|
|
192
|
+
}
|
|
193
|
+
__name(V, "popStack");
|
|
194
|
+
function H() {
|
|
195
|
+
var e = T.pop() || I.lex() || P;
|
|
196
|
+
return typeof e != "number" && (e instanceof Array && (T = e, e = T.pop()), e = C.symbols_[e] || e), e;
|
|
197
|
+
}
|
|
198
|
+
__name(H, "lex");
|
|
199
|
+
for (var U, W, G, K, q, J = {}, Y, X, Z, Q;;) {
|
|
200
|
+
if (G = w[w.length - 1], this.defaultActions[G] ? K = this.defaultActions[G] : (U ??= H(), K = O[G] && O[G][U]), K === void 0 || !K.length || !K[0]) {
|
|
201
|
+
var $ = "";
|
|
202
|
+
for (Y in Q = [], O[G]) this.terminals_[Y] && Y > N && Q.push("'" + this.terminals_[Y] + "'");
|
|
203
|
+
$ = I.showPosition ? "Parse error on line " + (A + 1) + ":\n" + I.showPosition() + "\nExpecting " + Q.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : "Parse error on line " + (A + 1) + ": Unexpected " + (U == P ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError($, {
|
|
204
|
+
text: I.match,
|
|
205
|
+
token: this.terminals_[U] || U,
|
|
206
|
+
line: I.yylineno,
|
|
207
|
+
loc: z,
|
|
208
|
+
expected: Q
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
if (K[0] instanceof Array && K.length > 1) throw Error("Parse Error: multiple actions possible at state: " + G + ", token: " + U);
|
|
212
|
+
switch (K[0]) {
|
|
213
|
+
case 1:
|
|
214
|
+
w.push(U), E.push(I.yytext), D.push(I.yylloc), w.push(K[1]), U = null, W ? (U = W, W = null) : (j = I.yyleng, k = I.yytext, A = I.yylineno, z = I.yylloc, M > 0 && M--);
|
|
215
|
+
break;
|
|
216
|
+
case 2:
|
|
217
|
+
if (X = this.productions_[K[1]][1], J.$ = E[E.length - X], J._$ = {
|
|
218
|
+
first_line: D[D.length - (X || 1)].first_line,
|
|
219
|
+
last_line: D[D.length - 1].last_line,
|
|
220
|
+
first_column: D[D.length - (X || 1)].first_column,
|
|
221
|
+
last_column: D[D.length - 1].last_column
|
|
222
|
+
}, B && (J._$.range = [D[D.length - (X || 1)].range[0], D[D.length - 1].range[1]]), q = this.performAction.apply(J, [
|
|
223
|
+
k,
|
|
224
|
+
j,
|
|
225
|
+
A,
|
|
226
|
+
L.yy,
|
|
227
|
+
K[1],
|
|
228
|
+
E,
|
|
229
|
+
D
|
|
230
|
+
].concat(F)), q !== void 0) return q;
|
|
231
|
+
X && (w = w.slice(0, -1 * X * 2), E = E.slice(0, -1 * X), D = D.slice(0, -1 * X)), w.push(this.productions_[K[1]][0]), E.push(J.$), D.push(J._$), Z = O[w[w.length - 2]][w[w.length - 1]], w.push(Z);
|
|
232
|
+
break;
|
|
233
|
+
case 3: return !0;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return !0;
|
|
237
|
+
}, "parse")
|
|
238
|
+
};
|
|
239
|
+
j.lexer = /* @__PURE__ */ (function() {
|
|
240
|
+
return {
|
|
241
|
+
EOF: 1,
|
|
242
|
+
parseError: /* @__PURE__ */ __name(function(e, S) {
|
|
243
|
+
if (this.yy.parser) this.yy.parser.parseError(e, S);
|
|
244
|
+
else throw Error(e);
|
|
245
|
+
}, "parseError"),
|
|
246
|
+
setInput: /* @__PURE__ */ __name(function(e, S) {
|
|
247
|
+
return this.yy = S || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
248
|
+
first_line: 1,
|
|
249
|
+
first_column: 0,
|
|
250
|
+
last_line: 1,
|
|
251
|
+
last_column: 0
|
|
252
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
253
|
+
}, "setInput"),
|
|
254
|
+
input: /* @__PURE__ */ __name(function() {
|
|
255
|
+
var e = this._input[0];
|
|
256
|
+
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
257
|
+
}, "input"),
|
|
258
|
+
unput: /* @__PURE__ */ __name(function(e) {
|
|
259
|
+
var S = e.length, C = e.split(/(?:\r\n?|\n)/g);
|
|
260
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - S), this.offset -= S;
|
|
261
|
+
var w = this.match.split(/(?:\r\n?|\n)/g);
|
|
262
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C.length - 1 && (this.yylineno -= C.length - 1);
|
|
263
|
+
var T = this.yylloc.range;
|
|
264
|
+
return this.yylloc = {
|
|
265
|
+
first_line: this.yylloc.first_line,
|
|
266
|
+
last_line: this.yylineno + 1,
|
|
267
|
+
first_column: this.yylloc.first_column,
|
|
268
|
+
last_column: C ? (C.length === w.length ? this.yylloc.first_column : 0) + w[w.length - C.length].length - C[0].length : this.yylloc.first_column - S
|
|
269
|
+
}, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - S]), this.yyleng = this.yytext.length, this;
|
|
270
|
+
}, "unput"),
|
|
271
|
+
more: /* @__PURE__ */ __name(function() {
|
|
272
|
+
return this._more = !0, this;
|
|
273
|
+
}, "more"),
|
|
274
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
275
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
276
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
277
|
+
text: "",
|
|
278
|
+
token: null,
|
|
279
|
+
line: this.yylineno
|
|
280
|
+
});
|
|
281
|
+
return this;
|
|
282
|
+
}, "reject"),
|
|
283
|
+
less: /* @__PURE__ */ __name(function(e) {
|
|
284
|
+
this.unput(this.match.slice(e));
|
|
285
|
+
}, "less"),
|
|
286
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
287
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
288
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
289
|
+
}, "pastInput"),
|
|
290
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
291
|
+
var e = this.match;
|
|
292
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
293
|
+
}, "upcomingInput"),
|
|
294
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
295
|
+
var e = this.pastInput(), S = Array(e.length + 1).join("-");
|
|
296
|
+
return e + this.upcomingInput() + "\n" + S + "^";
|
|
297
|
+
}, "showPosition"),
|
|
298
|
+
test_match: /* @__PURE__ */ __name(function(e, S) {
|
|
299
|
+
var C, w, T;
|
|
300
|
+
if (this.options.backtrack_lexer && (T = {
|
|
301
|
+
yylineno: this.yylineno,
|
|
302
|
+
yylloc: {
|
|
303
|
+
first_line: this.yylloc.first_line,
|
|
304
|
+
last_line: this.last_line,
|
|
305
|
+
first_column: this.yylloc.first_column,
|
|
306
|
+
last_column: this.yylloc.last_column
|
|
307
|
+
},
|
|
308
|
+
yytext: this.yytext,
|
|
309
|
+
match: this.match,
|
|
310
|
+
matches: this.matches,
|
|
311
|
+
matched: this.matched,
|
|
312
|
+
yyleng: this.yyleng,
|
|
313
|
+
offset: this.offset,
|
|
314
|
+
_more: this._more,
|
|
315
|
+
_input: this._input,
|
|
316
|
+
yy: this.yy,
|
|
317
|
+
conditionStack: this.conditionStack.slice(0),
|
|
318
|
+
done: this.done
|
|
319
|
+
}, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), w = e[0].match(/(?:\r\n?|\n).*/g), w && (this.yylineno += w.length), this.yylloc = {
|
|
320
|
+
first_line: this.yylloc.last_line,
|
|
321
|
+
last_line: this.yylineno + 1,
|
|
322
|
+
first_column: this.yylloc.last_column,
|
|
323
|
+
last_column: w ? w[w.length - 1].length - w[w.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
324
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], C = this.performAction.call(this, this.yy, this, S, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C;
|
|
325
|
+
if (this._backtrack) {
|
|
326
|
+
for (var E in T) this[E] = T[E];
|
|
327
|
+
return !1;
|
|
328
|
+
}
|
|
329
|
+
return !1;
|
|
330
|
+
}, "test_match"),
|
|
331
|
+
next: /* @__PURE__ */ __name(function() {
|
|
332
|
+
if (this.done) return this.EOF;
|
|
333
|
+
this._input || (this.done = !0);
|
|
334
|
+
var e, S, C, w;
|
|
335
|
+
this._more || (this.yytext = "", this.match = "");
|
|
336
|
+
for (var T = this._currentRules(), E = 0; E < T.length; E++) if (C = this._input.match(this.rules[T[E]]), C && (!S || C[0].length > S[0].length)) {
|
|
337
|
+
if (S = C, w = E, this.options.backtrack_lexer) {
|
|
338
|
+
if (e = this.test_match(C, T[E]), e !== !1) return e;
|
|
339
|
+
if (this._backtrack) {
|
|
340
|
+
S = !1;
|
|
341
|
+
continue;
|
|
342
|
+
} else return !1;
|
|
343
|
+
} else if (!this.options.flex) break;
|
|
344
|
+
}
|
|
345
|
+
return S ? (e = this.test_match(S, T[w]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
346
|
+
text: "",
|
|
347
|
+
token: null,
|
|
348
|
+
line: this.yylineno
|
|
349
|
+
});
|
|
350
|
+
}, "next"),
|
|
351
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
352
|
+
return this.next() || this.lex();
|
|
353
|
+
}, "lex"),
|
|
354
|
+
begin: /* @__PURE__ */ __name(function(e) {
|
|
355
|
+
this.conditionStack.push(e);
|
|
356
|
+
}, "begin"),
|
|
357
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
358
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
359
|
+
}, "popState"),
|
|
360
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
361
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
362
|
+
}, "_currentRules"),
|
|
363
|
+
topState: /* @__PURE__ */ __name(function(e) {
|
|
364
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
365
|
+
}, "topState"),
|
|
366
|
+
pushState: /* @__PURE__ */ __name(function(e) {
|
|
367
|
+
this.begin(e);
|
|
368
|
+
}, "pushState"),
|
|
369
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
370
|
+
return this.conditionStack.length;
|
|
371
|
+
}, "stateStackSize"),
|
|
372
|
+
options: { "case-insensitive": !0 },
|
|
373
|
+
performAction: /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
374
|
+
switch (C) {
|
|
375
|
+
case 0: break;
|
|
376
|
+
case 1: break;
|
|
377
|
+
case 2: return 10;
|
|
378
|
+
case 3: break;
|
|
379
|
+
case 4: break;
|
|
380
|
+
case 5: return 4;
|
|
381
|
+
case 6: return 11;
|
|
382
|
+
case 7: return this.begin("acc_title"), 12;
|
|
383
|
+
case 8: return this.popState(), "acc_title_value";
|
|
384
|
+
case 9: return this.begin("acc_descr"), 14;
|
|
385
|
+
case 10: return this.popState(), "acc_descr_value";
|
|
386
|
+
case 11:
|
|
387
|
+
this.begin("acc_descr_multiline");
|
|
388
|
+
break;
|
|
389
|
+
case 12:
|
|
390
|
+
this.popState();
|
|
391
|
+
break;
|
|
392
|
+
case 13: return "acc_descr_multiline_value";
|
|
393
|
+
case 14: return 17;
|
|
394
|
+
case 15: return 21;
|
|
395
|
+
case 16: return 20;
|
|
396
|
+
case 17: return 6;
|
|
397
|
+
case 18: return "INVALID";
|
|
398
|
+
}
|
|
399
|
+
}, "anonymous"),
|
|
400
|
+
rules: [
|
|
401
|
+
/^(?:%(?!\{)[^\n]*)/i,
|
|
402
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
403
|
+
/^(?:[\n]+)/i,
|
|
404
|
+
/^(?:\s+)/i,
|
|
405
|
+
/^(?:#[^\n]*)/i,
|
|
406
|
+
/^(?:timeline\b)/i,
|
|
407
|
+
/^(?:title\s[^\n]+)/i,
|
|
408
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
409
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
410
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
411
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
412
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
413
|
+
/^(?:[\}])/i,
|
|
414
|
+
/^(?:[^\}]*)/i,
|
|
415
|
+
/^(?:section\s[^:\n]+)/i,
|
|
416
|
+
/^(?::\s(?:[^:\n]|:(?!\s))+)/i,
|
|
417
|
+
/^(?:[^#:\n]+)/i,
|
|
418
|
+
/^(?:$)/i,
|
|
419
|
+
/^(?:.)/i
|
|
420
|
+
],
|
|
421
|
+
conditions: {
|
|
422
|
+
acc_descr_multiline: {
|
|
423
|
+
rules: [12, 13],
|
|
424
|
+
inclusive: !1
|
|
425
|
+
},
|
|
426
|
+
acc_descr: {
|
|
427
|
+
rules: [10],
|
|
428
|
+
inclusive: !1
|
|
429
|
+
},
|
|
430
|
+
acc_title: {
|
|
431
|
+
rules: [8],
|
|
432
|
+
inclusive: !1
|
|
433
|
+
},
|
|
434
|
+
INITIAL: {
|
|
435
|
+
rules: [
|
|
436
|
+
0,
|
|
437
|
+
1,
|
|
438
|
+
2,
|
|
439
|
+
3,
|
|
440
|
+
4,
|
|
441
|
+
5,
|
|
442
|
+
6,
|
|
443
|
+
7,
|
|
444
|
+
9,
|
|
445
|
+
11,
|
|
446
|
+
14,
|
|
447
|
+
15,
|
|
448
|
+
16,
|
|
449
|
+
17,
|
|
450
|
+
18
|
|
451
|
+
],
|
|
452
|
+
inclusive: !0
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
})();
|
|
457
|
+
function M() {
|
|
458
|
+
this.yy = {};
|
|
459
|
+
}
|
|
460
|
+
return __name(M, "Parser"), M.prototype = j, j.Parser = M, new M();
|
|
461
|
+
})();
|
|
462
|
+
parser.parser = parser;
|
|
463
|
+
var timeline_default = parser, timelineDb_exports = {};
|
|
464
|
+
__export(timelineDb_exports, {
|
|
465
|
+
addEvent: () => addEvent,
|
|
466
|
+
addSection: () => addSection,
|
|
467
|
+
addTask: () => addTask,
|
|
468
|
+
addTaskOrg: () => addTaskOrg,
|
|
469
|
+
clear: () => clear2,
|
|
470
|
+
default: () => timelineDb_default,
|
|
471
|
+
getCommonDb: () => getCommonDb,
|
|
472
|
+
getSections: () => getSections,
|
|
473
|
+
getTasks: () => getTasks
|
|
474
|
+
});
|
|
475
|
+
var currentSection = "", currentTaskId = 0, sections = [], tasks = [], rawTasks = [], getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), clear2 = /* @__PURE__ */ __name(function() {
|
|
476
|
+
sections.length = 0, tasks.length = 0, currentSection = "", rawTasks.length = 0, clear();
|
|
477
|
+
}, "clear"), addSection = /* @__PURE__ */ __name(function(e) {
|
|
478
|
+
currentSection = e, sections.push(e);
|
|
479
|
+
}, "addSection"), getSections = /* @__PURE__ */ __name(function() {
|
|
480
|
+
return sections;
|
|
481
|
+
}, "getSections"), getTasks = /* @__PURE__ */ __name(function() {
|
|
482
|
+
let e = compileTasks(), S = 0;
|
|
483
|
+
for (; !e && S < 100;) e = compileTasks(), S++;
|
|
484
|
+
return tasks.push(...rawTasks), tasks;
|
|
485
|
+
}, "getTasks"), addTask = /* @__PURE__ */ __name(function(e, S, C) {
|
|
486
|
+
let w = {
|
|
487
|
+
id: currentTaskId++,
|
|
488
|
+
section: currentSection,
|
|
489
|
+
type: currentSection,
|
|
490
|
+
task: e,
|
|
491
|
+
score: S || 0,
|
|
492
|
+
events: C ? [C] : []
|
|
493
|
+
};
|
|
494
|
+
rawTasks.push(w);
|
|
495
|
+
}, "addTask"), addEvent = /* @__PURE__ */ __name(function(e) {
|
|
496
|
+
rawTasks.find((e) => e.id === currentTaskId - 1).events.push(e);
|
|
497
|
+
}, "addEvent"), addTaskOrg = /* @__PURE__ */ __name(function(e) {
|
|
498
|
+
let S = {
|
|
499
|
+
section: currentSection,
|
|
500
|
+
type: currentSection,
|
|
501
|
+
description: e,
|
|
502
|
+
task: e,
|
|
503
|
+
classes: []
|
|
504
|
+
};
|
|
505
|
+
tasks.push(S);
|
|
506
|
+
}, "addTaskOrg"), compileTasks = /* @__PURE__ */ __name(function() {
|
|
507
|
+
let e = /* @__PURE__ */ __name(function(e) {
|
|
508
|
+
return rawTasks[e].processed;
|
|
509
|
+
}, "compileTask"), C = !0;
|
|
510
|
+
for (let [S, w] of rawTasks.entries()) e(S), C &&= w.processed;
|
|
511
|
+
return C;
|
|
512
|
+
}, "compileTasks"), timelineDb_default = {
|
|
513
|
+
clear: clear2,
|
|
514
|
+
getCommonDb,
|
|
515
|
+
addSection,
|
|
516
|
+
getSections,
|
|
517
|
+
getTasks,
|
|
518
|
+
addTask,
|
|
519
|
+
addTaskOrg,
|
|
520
|
+
addEvent
|
|
521
|
+
}, MAX_SECTIONS = 12, drawRect = /* @__PURE__ */ __name(function(e, S) {
|
|
522
|
+
let C = e.append("rect");
|
|
523
|
+
return C.attr("x", S.x), C.attr("y", S.y), C.attr("fill", S.fill), C.attr("stroke", S.stroke), C.attr("width", S.width), C.attr("height", S.height), C.attr("rx", S.rx), C.attr("ry", S.ry), S.class !== void 0 && C.attr("class", S.class), C;
|
|
524
|
+
}, "drawRect"), drawFace = /* @__PURE__ */ __name(function(e, C) {
|
|
525
|
+
let w = e.append("circle").attr("cx", C.cx).attr("cy", C.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), T = e.append("g");
|
|
526
|
+
T.append("circle").attr("cx", C.cx - 15 / 3).attr("cy", C.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), T.append("circle").attr("cx", C.cx + 15 / 3).attr("cy", C.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
527
|
+
function E(e) {
|
|
528
|
+
let S = arc_default().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
529
|
+
e.append("path").attr("class", "mouth").attr("d", S).attr("transform", "translate(" + C.cx + "," + (C.cy + 2) + ")");
|
|
530
|
+
}
|
|
531
|
+
__name(E, "smile");
|
|
532
|
+
function D(e) {
|
|
533
|
+
let S = arc_default().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
534
|
+
e.append("path").attr("class", "mouth").attr("d", S).attr("transform", "translate(" + C.cx + "," + (C.cy + 7) + ")");
|
|
535
|
+
}
|
|
536
|
+
__name(D, "sad");
|
|
537
|
+
function O(e) {
|
|
538
|
+
e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", C.cx - 5).attr("y1", C.cy + 7).attr("x2", C.cx + 5).attr("y2", C.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
539
|
+
}
|
|
540
|
+
return __name(O, "ambivalent"), C.score > 3 ? E(T) : C.score < 3 ? D(T) : O(T), w;
|
|
541
|
+
}, "drawFace"), drawCircle = /* @__PURE__ */ __name(function(e, S) {
|
|
542
|
+
let C = e.append("circle");
|
|
543
|
+
return C.attr("cx", S.cx), C.attr("cy", S.cy), C.attr("class", "actor-" + S.pos), C.attr("fill", S.fill), C.attr("stroke", S.stroke), C.attr("r", S.r), C.class !== void 0 && C.attr("class", C.class), S.title !== void 0 && C.append("title").text(S.title), C;
|
|
544
|
+
}, "drawCircle"), drawText = /* @__PURE__ */ __name(function(e, S) {
|
|
545
|
+
let C = S.text.replace(/<br\s*\/?>/gi, " "), w = e.append("text");
|
|
546
|
+
w.attr("x", S.x), w.attr("y", S.y), w.attr("class", "legend"), w.style("text-anchor", S.anchor), S.class !== void 0 && w.attr("class", S.class);
|
|
547
|
+
let T = w.append("tspan");
|
|
548
|
+
return T.attr("x", S.x + S.textMargin * 2), T.text(C), w;
|
|
549
|
+
}, "drawText"), drawLabel = /* @__PURE__ */ __name(function(e, C) {
|
|
550
|
+
function w(e, S, C, w, T) {
|
|
551
|
+
return e + "," + S + " " + (e + C) + "," + S + " " + (e + C) + "," + (S + w - T) + " " + (e + C - T * 1.2) + "," + (S + w) + " " + e + "," + (S + w);
|
|
552
|
+
}
|
|
553
|
+
__name(w, "genPoints");
|
|
554
|
+
let T = e.append("polygon");
|
|
555
|
+
T.attr("points", w(C.x, C.y, 50, 20, 7)), T.attr("class", "labelBox"), C.y += C.labelMargin, C.x += .5 * C.labelMargin, drawText(e, C);
|
|
556
|
+
}, "drawLabel"), drawSection = /* @__PURE__ */ __name(function(e, S, C) {
|
|
557
|
+
let w = e.append("g"), T = getNoteRect();
|
|
558
|
+
T.x = S.x, T.y = S.y, T.fill = S.fill, T.width = C.width, T.height = C.height, T.class = "journey-section section-type-" + S.num, T.rx = 3, T.ry = 3, drawRect(w, T), _drawTextCandidateFunc(C)(S.text, w, T.x, T.y, T.width, T.height, { class: "journey-section section-type-" + S.num }, C, S.colour);
|
|
559
|
+
}, "drawSection"), taskCount = -1, drawTask = /* @__PURE__ */ __name(function(e, S, C) {
|
|
560
|
+
let w = S.x + C.width / 2, T = e.append("g");
|
|
561
|
+
taskCount++, T.append("line").attr("id", "task" + taskCount).attr("x1", w).attr("y1", S.y).attr("x2", w).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), drawFace(T, {
|
|
562
|
+
cx: w,
|
|
563
|
+
cy: 300 + (5 - S.score) * 30,
|
|
564
|
+
score: S.score
|
|
565
|
+
});
|
|
566
|
+
let E = getNoteRect();
|
|
567
|
+
E.x = S.x, E.y = S.y, E.fill = S.fill, E.width = C.width, E.height = C.height, E.class = "task task-type-" + S.num, E.rx = 3, E.ry = 3, drawRect(T, E), _drawTextCandidateFunc(C)(S.task, T, E.x, E.y, E.width, E.height, { class: "task" }, C, S.colour);
|
|
568
|
+
}, "drawTask"), drawBackgroundRect = /* @__PURE__ */ __name(function(e, S) {
|
|
569
|
+
drawRect(e, {
|
|
570
|
+
x: S.startx,
|
|
571
|
+
y: S.starty,
|
|
572
|
+
width: S.stopx - S.startx,
|
|
573
|
+
height: S.stopy - S.starty,
|
|
574
|
+
fill: S.fill,
|
|
575
|
+
class: "rect"
|
|
576
|
+
}).lower();
|
|
577
|
+
}, "drawBackgroundRect"), getTextObj = /* @__PURE__ */ __name(function() {
|
|
578
|
+
return {
|
|
579
|
+
x: 0,
|
|
580
|
+
y: 0,
|
|
581
|
+
fill: void 0,
|
|
582
|
+
"text-anchor": "start",
|
|
583
|
+
width: 100,
|
|
584
|
+
height: 100,
|
|
585
|
+
textMargin: 0,
|
|
586
|
+
rx: 0,
|
|
587
|
+
ry: 0
|
|
588
|
+
};
|
|
589
|
+
}, "getTextObj"), getNoteRect = /* @__PURE__ */ __name(function() {
|
|
590
|
+
return {
|
|
591
|
+
x: 0,
|
|
592
|
+
y: 0,
|
|
593
|
+
width: 100,
|
|
594
|
+
anchor: "start",
|
|
595
|
+
height: 100,
|
|
596
|
+
rx: 0,
|
|
597
|
+
ry: 0
|
|
598
|
+
};
|
|
599
|
+
}, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
600
|
+
function e(e, S, C, w, E, D, O, k) {
|
|
601
|
+
T(S.append("text").attr("x", C + E / 2).attr("y", w + D / 2 + 5).style("font-color", k).style("text-anchor", "middle").text(e), O);
|
|
602
|
+
}
|
|
603
|
+
__name(e, "byText");
|
|
604
|
+
function C(e, S, C, w, E, D, O, k, A) {
|
|
605
|
+
let { taskFontSize: j, taskFontFamily: M } = k, N = e.split(/<br\s*\/?>/gi);
|
|
606
|
+
for (let e = 0; e < N.length; e++) {
|
|
607
|
+
let k = e * j - j * (N.length - 1) / 2, P = S.append("text").attr("x", C + E / 2).attr("y", w).attr("fill", A).style("text-anchor", "middle").style("font-size", j).style("font-family", M);
|
|
608
|
+
P.append("tspan").attr("x", C + E / 2).attr("dy", k).text(N[e]), P.attr("y", w + D / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), T(P, O);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
__name(C, "byTspan");
|
|
612
|
+
function w(e, S, w, E, D, O, k, A) {
|
|
613
|
+
let j = S.append("switch"), M = j.append("foreignObject").attr("x", w).attr("y", E).attr("width", D).attr("height", O).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
614
|
+
M.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), C(e, j, w, E, D, O, k, A), T(M, k);
|
|
615
|
+
}
|
|
616
|
+
__name(w, "byFo");
|
|
617
|
+
function T(e, S) {
|
|
618
|
+
for (let C in S) C in S && e.attr(C, S[C]);
|
|
619
|
+
}
|
|
620
|
+
return __name(T, "_setTextAttrs"), function(S) {
|
|
621
|
+
return S.textPlacement === "fo" ? w : S.textPlacement === "old" ? e : C;
|
|
622
|
+
};
|
|
623
|
+
})(), initGraphics = /* @__PURE__ */ __name(function(e) {
|
|
624
|
+
e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
625
|
+
}, "initGraphics");
|
|
626
|
+
function wrap(e, S) {
|
|
627
|
+
e.each(function() {
|
|
628
|
+
var e = select_default(this), C = e.text().split(/(\s+|<br>)/).reverse(), T, E = [], D = 1.1, O = e.attr("y"), k = parseFloat(e.attr("dy")), A = e.text(null).append("tspan").attr("x", 0).attr("y", O).attr("dy", k + "em");
|
|
629
|
+
for (let w = 0; w < C.length; w++) T = C[C.length - 1 - w], E.push(T), A.text(E.join(" ").trim()), (A.node().getComputedTextLength() > S || T === "<br>") && (E.pop(), A.text(E.join(" ").trim()), E = T === "<br>" ? [""] : [T], A = e.append("tspan").attr("x", 0).attr("y", O).attr("dy", D + "em").text(T));
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
__name(wrap, "wrap");
|
|
633
|
+
var drawNode = /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
634
|
+
let T = C % MAX_SECTIONS - 1, E = e.append("g");
|
|
635
|
+
S.section = T, E.attr("class", (S.class ? S.class + " " : "") + "timeline-node " + ("section-" + T));
|
|
636
|
+
let D = E.append("g"), O = E.append("g"), k = O.append("text").text(S.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, S.width).node().getBBox(), A = w.fontSize?.replace ? w.fontSize.replace("px", "") : w.fontSize;
|
|
637
|
+
return S.height = k.height + A * 1.1 * .5 + S.padding, S.height = Math.max(S.height, S.maxHeight), S.width += 2 * S.padding, O.attr("transform", "translate(" + S.width / 2 + ", " + S.padding / 2 + ")"), defaultBkg(D, S, T, w), S;
|
|
638
|
+
}, "drawNode"), getVirtualNodeHeight = /* @__PURE__ */ __name(function(e, S, C) {
|
|
639
|
+
let w = e.append("g"), T = w.append("text").text(S.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, S.width).node().getBBox(), E = C.fontSize?.replace ? C.fontSize.replace("px", "") : C.fontSize;
|
|
640
|
+
return w.remove(), T.height + E * 1.1 * .5 + S.padding;
|
|
641
|
+
}, "getVirtualNodeHeight"), defaultBkg = /* @__PURE__ */ __name(function(e, S, C) {
|
|
642
|
+
e.append("path").attr("id", "node-" + S.id).attr("class", "node-bkg node-" + S.type).attr("d", `M0 ${S.height - 5} v${-S.height + 10} q0,-5 5,-5 h${S.width - 10} q5,0 5,5 v${S.height - 5} H0 Z`), e.append("line").attr("class", "node-line-" + C).attr("x1", 0).attr("y1", S.height).attr("x2", S.width).attr("y2", S.height);
|
|
643
|
+
}, "defaultBkg"), svgDraw_default = {
|
|
644
|
+
drawRect,
|
|
645
|
+
drawCircle,
|
|
646
|
+
drawSection,
|
|
647
|
+
drawText,
|
|
648
|
+
drawLabel,
|
|
649
|
+
drawTask,
|
|
650
|
+
drawBackgroundRect,
|
|
651
|
+
getTextObj,
|
|
652
|
+
getNoteRect,
|
|
653
|
+
initGraphics,
|
|
654
|
+
drawNode,
|
|
655
|
+
getVirtualNodeHeight
|
|
656
|
+
}, draw = /* @__PURE__ */ __name(function(S, C, T, D) {
|
|
657
|
+
let O = getConfig2(), k = O.timeline?.leftMargin ?? 50;
|
|
658
|
+
log.debug("timeline", D.db);
|
|
659
|
+
let j = O.securityLevel, M;
|
|
660
|
+
j === "sandbox" && (M = select_default("#i" + C));
|
|
661
|
+
let N = select_default(j === "sandbox" ? M.nodes()[0].contentDocument.body : "body").select("#" + C);
|
|
662
|
+
N.append("g");
|
|
663
|
+
let P = D.db.getTasks(), F = D.db.getCommonDb().getDiagramTitle();
|
|
664
|
+
log.debug("task", P), svgDraw_default.initGraphics(N);
|
|
665
|
+
let I = D.db.getSections();
|
|
666
|
+
log.debug("sections", I);
|
|
667
|
+
let L = 0, R = 0, z = 0, B = 0, V = 50 + k, H = 50;
|
|
668
|
+
B = 50;
|
|
669
|
+
let U = 0, W = !0;
|
|
670
|
+
I.forEach(function(S) {
|
|
671
|
+
let C = {
|
|
672
|
+
number: U,
|
|
673
|
+
descr: S,
|
|
674
|
+
section: U,
|
|
675
|
+
width: 150,
|
|
676
|
+
padding: 20,
|
|
677
|
+
maxHeight: L
|
|
678
|
+
}, w = svgDraw_default.getVirtualNodeHeight(N, C, O);
|
|
679
|
+
log.debug("sectionHeight before draw", w), L = Math.max(L, w + 20);
|
|
680
|
+
});
|
|
681
|
+
let G = 0, K = 0;
|
|
682
|
+
log.debug("tasks.length", P.length);
|
|
683
|
+
for (let [S, C] of P.entries()) {
|
|
684
|
+
let w = {
|
|
685
|
+
number: S,
|
|
686
|
+
descr: C,
|
|
687
|
+
section: C.section,
|
|
688
|
+
width: 150,
|
|
689
|
+
padding: 20,
|
|
690
|
+
maxHeight: R
|
|
691
|
+
}, T = svgDraw_default.getVirtualNodeHeight(N, w, O);
|
|
692
|
+
log.debug("taskHeight before draw", T), R = Math.max(R, T + 20), G = Math.max(G, C.events.length);
|
|
693
|
+
let E = 0;
|
|
694
|
+
for (let e of C.events) {
|
|
695
|
+
let S = {
|
|
696
|
+
descr: e,
|
|
697
|
+
section: C.section,
|
|
698
|
+
number: C.section,
|
|
699
|
+
width: 150,
|
|
700
|
+
padding: 20,
|
|
701
|
+
maxHeight: 50
|
|
702
|
+
};
|
|
703
|
+
E += svgDraw_default.getVirtualNodeHeight(N, S, O);
|
|
704
|
+
}
|
|
705
|
+
C.events.length > 0 && (E += (C.events.length - 1) * 10), K = Math.max(K, E);
|
|
706
|
+
}
|
|
707
|
+
log.debug("maxSectionHeight before draw", L), log.debug("maxTaskHeight before draw", R), I && I.length > 0 ? I.forEach((S) => {
|
|
708
|
+
let C = P.filter((e) => e.section === S), w = {
|
|
709
|
+
number: U,
|
|
710
|
+
descr: S,
|
|
711
|
+
section: U,
|
|
712
|
+
width: 200 * Math.max(C.length, 1) - 50,
|
|
713
|
+
padding: 20,
|
|
714
|
+
maxHeight: L
|
|
715
|
+
};
|
|
716
|
+
log.debug("sectionNode", w);
|
|
717
|
+
let T = N.append("g"), E = svgDraw_default.drawNode(T, w, U, O);
|
|
718
|
+
log.debug("sectionNode output", E), T.attr("transform", `translate(${V}, ${B})`), H += L + 50, C.length > 0 && drawTasks(N, C, U, V, H, R, O, G, K, L, !1), V += 200 * Math.max(C.length, 1), H = B, U++;
|
|
719
|
+
}) : (W = !1, drawTasks(N, P, U, V, H, R, O, G, K, L, !0));
|
|
720
|
+
let q = N.node().getBBox();
|
|
721
|
+
log.debug("bounds", q), F && N.append("text").text(F).attr("x", q.width / 2 - k).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), z = W ? L + R + 150 : R + 100, N.append("g").attr("class", "lineWrapper").append("line").attr("x1", k).attr("y1", z).attr("x2", q.width + 3 * k).attr("y2", z).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), setupGraphViewbox(void 0, N, O.timeline?.padding ?? 50, O.timeline?.useMaxWidth ?? !1);
|
|
722
|
+
}, "draw"), drawTasks = /* @__PURE__ */ __name(function(S, C, w, T, E, D, O, k, A, j, M) {
|
|
723
|
+
for (let k of C) {
|
|
724
|
+
let C = {
|
|
725
|
+
descr: k.task,
|
|
726
|
+
section: w,
|
|
727
|
+
number: w,
|
|
728
|
+
width: 150,
|
|
729
|
+
padding: 20,
|
|
730
|
+
maxHeight: D
|
|
731
|
+
};
|
|
732
|
+
log.debug("taskNode", C);
|
|
733
|
+
let j = S.append("g").attr("class", "taskWrapper"), N = svgDraw_default.drawNode(j, C, w, O).height;
|
|
734
|
+
if (log.debug("taskHeight after draw", N), j.attr("transform", `translate(${T}, ${E})`), D = Math.max(D, N), k.events) {
|
|
735
|
+
let e = S.append("g").attr("class", "lineWrapper"), C = D;
|
|
736
|
+
E += 100, C += drawEvents(S, k.events, w, T, E, O), E -= 100, e.append("line").attr("x1", T + 190 / 2).attr("y1", E + D).attr("x2", T + 190 / 2).attr("y2", E + D + 100 + A + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
737
|
+
}
|
|
738
|
+
T += 200, M && !O.timeline?.disableMulticolor && w++;
|
|
739
|
+
}
|
|
740
|
+
E -= 10;
|
|
741
|
+
}, "drawTasks"), drawEvents = /* @__PURE__ */ __name(function(S, C, w, T, E, D) {
|
|
742
|
+
let O = 0, k = E;
|
|
743
|
+
E += 100;
|
|
744
|
+
for (let k of C) {
|
|
745
|
+
let C = {
|
|
746
|
+
descr: k,
|
|
747
|
+
section: w,
|
|
748
|
+
number: w,
|
|
749
|
+
width: 150,
|
|
750
|
+
padding: 20,
|
|
751
|
+
maxHeight: 50
|
|
752
|
+
};
|
|
753
|
+
log.debug("eventNode", C);
|
|
754
|
+
let A = S.append("g").attr("class", "eventWrapper"), j = svgDraw_default.drawNode(A, C, w, D).height;
|
|
755
|
+
O += j, A.attr("transform", `translate(${T}, ${E})`), E = E + 10 + j;
|
|
756
|
+
}
|
|
757
|
+
return E = k, O;
|
|
758
|
+
}, "drawEvents"), timelineRenderer_default = {
|
|
759
|
+
setConf: /* @__PURE__ */ __name(() => {}, "setConf"),
|
|
760
|
+
draw
|
|
761
|
+
}, genSections = /* @__PURE__ */ __name((e) => {
|
|
762
|
+
let S = "";
|
|
763
|
+
for (let S = 0; S < e.THEME_COLOR_LIMIT; S++) e["lineColor" + S] = e["lineColor" + S] || e["cScaleInv" + S], is_dark_default(e["lineColor" + S]) ? e["lineColor" + S] = lighten_default(e["lineColor" + S], 20) : e["lineColor" + S] = darken_default(e["lineColor" + S], 20);
|
|
764
|
+
for (let C = 0; C < e.THEME_COLOR_LIMIT; C++) {
|
|
765
|
+
let w = "" + (17 - 3 * C);
|
|
766
|
+
S += `
|
|
767
|
+
.section-${C - 1} rect, .section-${C - 1} path, .section-${C - 1} circle, .section-${C - 1} path {
|
|
768
|
+
fill: ${e["cScale" + C]};
|
|
769
|
+
}
|
|
770
|
+
.section-${C - 1} text {
|
|
771
|
+
fill: ${e["cScaleLabel" + C]};
|
|
772
|
+
}
|
|
773
|
+
.node-icon-${C - 1} {
|
|
774
|
+
font-size: 40px;
|
|
775
|
+
color: ${e["cScaleLabel" + C]};
|
|
776
|
+
}
|
|
777
|
+
.section-edge-${C - 1}{
|
|
778
|
+
stroke: ${e["cScale" + C]};
|
|
779
|
+
}
|
|
780
|
+
.edge-depth-${C - 1}{
|
|
781
|
+
stroke-width: ${w};
|
|
782
|
+
}
|
|
783
|
+
.section-${C - 1} line {
|
|
784
|
+
stroke: ${e["cScaleInv" + C]} ;
|
|
785
|
+
stroke-width: 3;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.lineWrapper line{
|
|
789
|
+
stroke: ${e["cScaleLabel" + C]} ;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.disabled, .disabled circle, .disabled text {
|
|
793
|
+
fill: lightgray;
|
|
794
|
+
}
|
|
795
|
+
.disabled text {
|
|
796
|
+
fill: #efefef;
|
|
797
|
+
}
|
|
798
|
+
`;
|
|
799
|
+
}
|
|
800
|
+
return S;
|
|
801
|
+
}, "genSections"), diagram = {
|
|
802
|
+
db: timelineDb_exports,
|
|
803
|
+
renderer: timelineRenderer_default,
|
|
804
|
+
parser: timeline_default,
|
|
805
|
+
styles: /* @__PURE__ */ __name((e) => `
|
|
806
|
+
.edge {
|
|
807
|
+
stroke-width: 3;
|
|
808
|
+
}
|
|
809
|
+
${genSections(e)}
|
|
810
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
811
|
+
fill: ${e.git0};
|
|
812
|
+
}
|
|
813
|
+
.section-root text {
|
|
814
|
+
fill: ${e.gitBranchLabel0};
|
|
815
|
+
}
|
|
816
|
+
.icon-container {
|
|
817
|
+
height:100%;
|
|
818
|
+
display: flex;
|
|
819
|
+
justify-content: center;
|
|
820
|
+
align-items: center;
|
|
821
|
+
}
|
|
822
|
+
.edge {
|
|
823
|
+
fill: none;
|
|
824
|
+
}
|
|
825
|
+
.eventWrapper {
|
|
826
|
+
filter: brightness(120%);
|
|
827
|
+
}
|
|
828
|
+
`, "getStyles")
|
|
829
|
+
};
|
|
830
|
+
export { diagram };
|