@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,1994 @@
|
|
|
1
|
+
import { g as utils_default, s as generateId } from "./chunk-S3R3BYOJ-DHTsHczu.js";
|
|
2
|
+
import { g as log, h as __name } from "./src-B-SBGd0A.js";
|
|
3
|
+
import { B as setAccTitle, C as getDiagramTitle, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-BZvlc6Ej.js";
|
|
4
|
+
import { t as getDiagramElement } from "./chunk-55IACEB6-CDMD5yu1.js";
|
|
5
|
+
import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-DnPw7tni.js";
|
|
6
|
+
import { r as render } from "./chunk-N4CR4FBY-BdaGxHlZ.js";
|
|
7
|
+
var parser = (function() {
|
|
8
|
+
var e = /* @__PURE__ */ __name(function(e, b, x, S) {
|
|
9
|
+
for (x ||= {}, S = e.length; S--; x[e[S]] = b);
|
|
10
|
+
return x;
|
|
11
|
+
}, "o"), b = [1, 2], x = [1, 3], C = [1, 4], w = [2, 4], T = [1, 9], E = [1, 11], D = [1, 16], O = [1, 17], k = [1, 18], A = [1, 19], j = [1, 33], M = [1, 20], N = [1, 21], P = [1, 22], F = [1, 23], I = [1, 24], L = [1, 26], R = [1, 27], z = [1, 28], B = [1, 29], V = [1, 30], H = [1, 31], U = [1, 32], W = [1, 35], G = [1, 36], K = [1, 37], q = [1, 38], J = [1, 34], Y = [
|
|
12
|
+
1,
|
|
13
|
+
4,
|
|
14
|
+
5,
|
|
15
|
+
16,
|
|
16
|
+
17,
|
|
17
|
+
19,
|
|
18
|
+
21,
|
|
19
|
+
22,
|
|
20
|
+
24,
|
|
21
|
+
25,
|
|
22
|
+
26,
|
|
23
|
+
27,
|
|
24
|
+
28,
|
|
25
|
+
29,
|
|
26
|
+
33,
|
|
27
|
+
35,
|
|
28
|
+
37,
|
|
29
|
+
38,
|
|
30
|
+
41,
|
|
31
|
+
45,
|
|
32
|
+
48,
|
|
33
|
+
51,
|
|
34
|
+
52,
|
|
35
|
+
53,
|
|
36
|
+
54,
|
|
37
|
+
57
|
|
38
|
+
], X = [
|
|
39
|
+
1,
|
|
40
|
+
4,
|
|
41
|
+
5,
|
|
42
|
+
14,
|
|
43
|
+
15,
|
|
44
|
+
16,
|
|
45
|
+
17,
|
|
46
|
+
19,
|
|
47
|
+
21,
|
|
48
|
+
22,
|
|
49
|
+
24,
|
|
50
|
+
25,
|
|
51
|
+
26,
|
|
52
|
+
27,
|
|
53
|
+
28,
|
|
54
|
+
29,
|
|
55
|
+
33,
|
|
56
|
+
35,
|
|
57
|
+
37,
|
|
58
|
+
38,
|
|
59
|
+
39,
|
|
60
|
+
40,
|
|
61
|
+
41,
|
|
62
|
+
45,
|
|
63
|
+
48,
|
|
64
|
+
51,
|
|
65
|
+
52,
|
|
66
|
+
53,
|
|
67
|
+
54,
|
|
68
|
+
57
|
|
69
|
+
], Z = [
|
|
70
|
+
4,
|
|
71
|
+
5,
|
|
72
|
+
16,
|
|
73
|
+
17,
|
|
74
|
+
19,
|
|
75
|
+
21,
|
|
76
|
+
22,
|
|
77
|
+
24,
|
|
78
|
+
25,
|
|
79
|
+
26,
|
|
80
|
+
27,
|
|
81
|
+
28,
|
|
82
|
+
29,
|
|
83
|
+
33,
|
|
84
|
+
35,
|
|
85
|
+
37,
|
|
86
|
+
38,
|
|
87
|
+
41,
|
|
88
|
+
45,
|
|
89
|
+
48,
|
|
90
|
+
51,
|
|
91
|
+
52,
|
|
92
|
+
53,
|
|
93
|
+
54,
|
|
94
|
+
57
|
|
95
|
+
], Q = {
|
|
96
|
+
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
97
|
+
yy: {},
|
|
98
|
+
symbols_: {
|
|
99
|
+
error: 2,
|
|
100
|
+
start: 3,
|
|
101
|
+
SPACE: 4,
|
|
102
|
+
NL: 5,
|
|
103
|
+
SD: 6,
|
|
104
|
+
document: 7,
|
|
105
|
+
line: 8,
|
|
106
|
+
statement: 9,
|
|
107
|
+
classDefStatement: 10,
|
|
108
|
+
styleStatement: 11,
|
|
109
|
+
cssClassStatement: 12,
|
|
110
|
+
idStatement: 13,
|
|
111
|
+
DESCR: 14,
|
|
112
|
+
"-->": 15,
|
|
113
|
+
HIDE_EMPTY: 16,
|
|
114
|
+
scale: 17,
|
|
115
|
+
WIDTH: 18,
|
|
116
|
+
COMPOSIT_STATE: 19,
|
|
117
|
+
STRUCT_START: 20,
|
|
118
|
+
STRUCT_STOP: 21,
|
|
119
|
+
STATE_DESCR: 22,
|
|
120
|
+
AS: 23,
|
|
121
|
+
ID: 24,
|
|
122
|
+
FORK: 25,
|
|
123
|
+
JOIN: 26,
|
|
124
|
+
CHOICE: 27,
|
|
125
|
+
CONCURRENT: 28,
|
|
126
|
+
note: 29,
|
|
127
|
+
notePosition: 30,
|
|
128
|
+
NOTE_TEXT: 31,
|
|
129
|
+
direction: 32,
|
|
130
|
+
acc_title: 33,
|
|
131
|
+
acc_title_value: 34,
|
|
132
|
+
acc_descr: 35,
|
|
133
|
+
acc_descr_value: 36,
|
|
134
|
+
acc_descr_multiline_value: 37,
|
|
135
|
+
CLICK: 38,
|
|
136
|
+
STRING: 39,
|
|
137
|
+
HREF: 40,
|
|
138
|
+
classDef: 41,
|
|
139
|
+
CLASSDEF_ID: 42,
|
|
140
|
+
CLASSDEF_STYLEOPTS: 43,
|
|
141
|
+
DEFAULT: 44,
|
|
142
|
+
style: 45,
|
|
143
|
+
STYLE_IDS: 46,
|
|
144
|
+
STYLEDEF_STYLEOPTS: 47,
|
|
145
|
+
class: 48,
|
|
146
|
+
CLASSENTITY_IDS: 49,
|
|
147
|
+
STYLECLASS: 50,
|
|
148
|
+
direction_tb: 51,
|
|
149
|
+
direction_bt: 52,
|
|
150
|
+
direction_rl: 53,
|
|
151
|
+
direction_lr: 54,
|
|
152
|
+
eol: 55,
|
|
153
|
+
";": 56,
|
|
154
|
+
EDGE_STATE: 57,
|
|
155
|
+
STYLE_SEPARATOR: 58,
|
|
156
|
+
left_of: 59,
|
|
157
|
+
right_of: 60,
|
|
158
|
+
$accept: 0,
|
|
159
|
+
$end: 1
|
|
160
|
+
},
|
|
161
|
+
terminals_: {
|
|
162
|
+
2: "error",
|
|
163
|
+
4: "SPACE",
|
|
164
|
+
5: "NL",
|
|
165
|
+
6: "SD",
|
|
166
|
+
14: "DESCR",
|
|
167
|
+
15: "-->",
|
|
168
|
+
16: "HIDE_EMPTY",
|
|
169
|
+
17: "scale",
|
|
170
|
+
18: "WIDTH",
|
|
171
|
+
19: "COMPOSIT_STATE",
|
|
172
|
+
20: "STRUCT_START",
|
|
173
|
+
21: "STRUCT_STOP",
|
|
174
|
+
22: "STATE_DESCR",
|
|
175
|
+
23: "AS",
|
|
176
|
+
24: "ID",
|
|
177
|
+
25: "FORK",
|
|
178
|
+
26: "JOIN",
|
|
179
|
+
27: "CHOICE",
|
|
180
|
+
28: "CONCURRENT",
|
|
181
|
+
29: "note",
|
|
182
|
+
31: "NOTE_TEXT",
|
|
183
|
+
33: "acc_title",
|
|
184
|
+
34: "acc_title_value",
|
|
185
|
+
35: "acc_descr",
|
|
186
|
+
36: "acc_descr_value",
|
|
187
|
+
37: "acc_descr_multiline_value",
|
|
188
|
+
38: "CLICK",
|
|
189
|
+
39: "STRING",
|
|
190
|
+
40: "HREF",
|
|
191
|
+
41: "classDef",
|
|
192
|
+
42: "CLASSDEF_ID",
|
|
193
|
+
43: "CLASSDEF_STYLEOPTS",
|
|
194
|
+
44: "DEFAULT",
|
|
195
|
+
45: "style",
|
|
196
|
+
46: "STYLE_IDS",
|
|
197
|
+
47: "STYLEDEF_STYLEOPTS",
|
|
198
|
+
48: "class",
|
|
199
|
+
49: "CLASSENTITY_IDS",
|
|
200
|
+
50: "STYLECLASS",
|
|
201
|
+
51: "direction_tb",
|
|
202
|
+
52: "direction_bt",
|
|
203
|
+
53: "direction_rl",
|
|
204
|
+
54: "direction_lr",
|
|
205
|
+
56: ";",
|
|
206
|
+
57: "EDGE_STATE",
|
|
207
|
+
58: "STYLE_SEPARATOR",
|
|
208
|
+
59: "left_of",
|
|
209
|
+
60: "right_of"
|
|
210
|
+
},
|
|
211
|
+
productions_: [
|
|
212
|
+
0,
|
|
213
|
+
[3, 2],
|
|
214
|
+
[3, 2],
|
|
215
|
+
[3, 2],
|
|
216
|
+
[7, 0],
|
|
217
|
+
[7, 2],
|
|
218
|
+
[8, 2],
|
|
219
|
+
[8, 1],
|
|
220
|
+
[8, 1],
|
|
221
|
+
[9, 1],
|
|
222
|
+
[9, 1],
|
|
223
|
+
[9, 1],
|
|
224
|
+
[9, 1],
|
|
225
|
+
[9, 2],
|
|
226
|
+
[9, 3],
|
|
227
|
+
[9, 4],
|
|
228
|
+
[9, 1],
|
|
229
|
+
[9, 2],
|
|
230
|
+
[9, 1],
|
|
231
|
+
[9, 4],
|
|
232
|
+
[9, 3],
|
|
233
|
+
[9, 6],
|
|
234
|
+
[9, 1],
|
|
235
|
+
[9, 1],
|
|
236
|
+
[9, 1],
|
|
237
|
+
[9, 1],
|
|
238
|
+
[9, 4],
|
|
239
|
+
[9, 4],
|
|
240
|
+
[9, 1],
|
|
241
|
+
[9, 2],
|
|
242
|
+
[9, 2],
|
|
243
|
+
[9, 1],
|
|
244
|
+
[9, 5],
|
|
245
|
+
[9, 5],
|
|
246
|
+
[10, 3],
|
|
247
|
+
[10, 3],
|
|
248
|
+
[11, 3],
|
|
249
|
+
[12, 3],
|
|
250
|
+
[32, 1],
|
|
251
|
+
[32, 1],
|
|
252
|
+
[32, 1],
|
|
253
|
+
[32, 1],
|
|
254
|
+
[55, 1],
|
|
255
|
+
[55, 1],
|
|
256
|
+
[13, 1],
|
|
257
|
+
[13, 1],
|
|
258
|
+
[13, 3],
|
|
259
|
+
[13, 3],
|
|
260
|
+
[30, 1],
|
|
261
|
+
[30, 1]
|
|
262
|
+
],
|
|
263
|
+
performAction: /* @__PURE__ */ __name(function(e, b, x, S, C, w, T) {
|
|
264
|
+
var E = w.length - 1;
|
|
265
|
+
switch (C) {
|
|
266
|
+
case 3: return S.setRootDoc(w[E]), w[E];
|
|
267
|
+
case 4:
|
|
268
|
+
this.$ = [];
|
|
269
|
+
break;
|
|
270
|
+
case 5:
|
|
271
|
+
w[E] != "nl" && (w[E - 1].push(w[E]), this.$ = w[E - 1]);
|
|
272
|
+
break;
|
|
273
|
+
case 6:
|
|
274
|
+
case 7:
|
|
275
|
+
this.$ = w[E];
|
|
276
|
+
break;
|
|
277
|
+
case 8:
|
|
278
|
+
this.$ = "nl";
|
|
279
|
+
break;
|
|
280
|
+
case 12:
|
|
281
|
+
this.$ = w[E];
|
|
282
|
+
break;
|
|
283
|
+
case 13:
|
|
284
|
+
let e = w[E - 1];
|
|
285
|
+
e.description = S.trimColon(w[E]), this.$ = e;
|
|
286
|
+
break;
|
|
287
|
+
case 14:
|
|
288
|
+
this.$ = {
|
|
289
|
+
stmt: "relation",
|
|
290
|
+
state1: w[E - 2],
|
|
291
|
+
state2: w[E]
|
|
292
|
+
};
|
|
293
|
+
break;
|
|
294
|
+
case 15:
|
|
295
|
+
let b = S.trimColon(w[E]);
|
|
296
|
+
this.$ = {
|
|
297
|
+
stmt: "relation",
|
|
298
|
+
state1: w[E - 3],
|
|
299
|
+
state2: w[E - 1],
|
|
300
|
+
description: b
|
|
301
|
+
};
|
|
302
|
+
break;
|
|
303
|
+
case 19:
|
|
304
|
+
this.$ = {
|
|
305
|
+
stmt: "state",
|
|
306
|
+
id: w[E - 3],
|
|
307
|
+
type: "default",
|
|
308
|
+
description: "",
|
|
309
|
+
doc: w[E - 1]
|
|
310
|
+
};
|
|
311
|
+
break;
|
|
312
|
+
case 20:
|
|
313
|
+
var D = w[E], O = w[E - 2].trim();
|
|
314
|
+
if (w[E].match(":")) {
|
|
315
|
+
var k = w[E].split(":");
|
|
316
|
+
D = k[0], O = [O, k[1]];
|
|
317
|
+
}
|
|
318
|
+
this.$ = {
|
|
319
|
+
stmt: "state",
|
|
320
|
+
id: D,
|
|
321
|
+
type: "default",
|
|
322
|
+
description: O
|
|
323
|
+
};
|
|
324
|
+
break;
|
|
325
|
+
case 21:
|
|
326
|
+
this.$ = {
|
|
327
|
+
stmt: "state",
|
|
328
|
+
id: w[E - 3],
|
|
329
|
+
type: "default",
|
|
330
|
+
description: w[E - 5],
|
|
331
|
+
doc: w[E - 1]
|
|
332
|
+
};
|
|
333
|
+
break;
|
|
334
|
+
case 22:
|
|
335
|
+
this.$ = {
|
|
336
|
+
stmt: "state",
|
|
337
|
+
id: w[E],
|
|
338
|
+
type: "fork"
|
|
339
|
+
};
|
|
340
|
+
break;
|
|
341
|
+
case 23:
|
|
342
|
+
this.$ = {
|
|
343
|
+
stmt: "state",
|
|
344
|
+
id: w[E],
|
|
345
|
+
type: "join"
|
|
346
|
+
};
|
|
347
|
+
break;
|
|
348
|
+
case 24:
|
|
349
|
+
this.$ = {
|
|
350
|
+
stmt: "state",
|
|
351
|
+
id: w[E],
|
|
352
|
+
type: "choice"
|
|
353
|
+
};
|
|
354
|
+
break;
|
|
355
|
+
case 25:
|
|
356
|
+
this.$ = {
|
|
357
|
+
stmt: "state",
|
|
358
|
+
id: S.getDividerId(),
|
|
359
|
+
type: "divider"
|
|
360
|
+
};
|
|
361
|
+
break;
|
|
362
|
+
case 26:
|
|
363
|
+
this.$ = {
|
|
364
|
+
stmt: "state",
|
|
365
|
+
id: w[E - 1].trim(),
|
|
366
|
+
note: {
|
|
367
|
+
position: w[E - 2].trim(),
|
|
368
|
+
text: w[E].trim()
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
break;
|
|
372
|
+
case 29:
|
|
373
|
+
this.$ = w[E].trim(), S.setAccTitle(this.$);
|
|
374
|
+
break;
|
|
375
|
+
case 30:
|
|
376
|
+
case 31:
|
|
377
|
+
this.$ = w[E].trim(), S.setAccDescription(this.$);
|
|
378
|
+
break;
|
|
379
|
+
case 32:
|
|
380
|
+
this.$ = {
|
|
381
|
+
stmt: "click",
|
|
382
|
+
id: w[E - 3],
|
|
383
|
+
url: w[E - 2],
|
|
384
|
+
tooltip: w[E - 1]
|
|
385
|
+
};
|
|
386
|
+
break;
|
|
387
|
+
case 33:
|
|
388
|
+
this.$ = {
|
|
389
|
+
stmt: "click",
|
|
390
|
+
id: w[E - 3],
|
|
391
|
+
url: w[E - 1],
|
|
392
|
+
tooltip: ""
|
|
393
|
+
};
|
|
394
|
+
break;
|
|
395
|
+
case 34:
|
|
396
|
+
case 35:
|
|
397
|
+
this.$ = {
|
|
398
|
+
stmt: "classDef",
|
|
399
|
+
id: w[E - 1].trim(),
|
|
400
|
+
classes: w[E].trim()
|
|
401
|
+
};
|
|
402
|
+
break;
|
|
403
|
+
case 36:
|
|
404
|
+
this.$ = {
|
|
405
|
+
stmt: "style",
|
|
406
|
+
id: w[E - 1].trim(),
|
|
407
|
+
styleClass: w[E].trim()
|
|
408
|
+
};
|
|
409
|
+
break;
|
|
410
|
+
case 37:
|
|
411
|
+
this.$ = {
|
|
412
|
+
stmt: "applyClass",
|
|
413
|
+
id: w[E - 1].trim(),
|
|
414
|
+
styleClass: w[E].trim()
|
|
415
|
+
};
|
|
416
|
+
break;
|
|
417
|
+
case 38:
|
|
418
|
+
S.setDirection("TB"), this.$ = {
|
|
419
|
+
stmt: "dir",
|
|
420
|
+
value: "TB"
|
|
421
|
+
};
|
|
422
|
+
break;
|
|
423
|
+
case 39:
|
|
424
|
+
S.setDirection("BT"), this.$ = {
|
|
425
|
+
stmt: "dir",
|
|
426
|
+
value: "BT"
|
|
427
|
+
};
|
|
428
|
+
break;
|
|
429
|
+
case 40:
|
|
430
|
+
S.setDirection("RL"), this.$ = {
|
|
431
|
+
stmt: "dir",
|
|
432
|
+
value: "RL"
|
|
433
|
+
};
|
|
434
|
+
break;
|
|
435
|
+
case 41:
|
|
436
|
+
S.setDirection("LR"), this.$ = {
|
|
437
|
+
stmt: "dir",
|
|
438
|
+
value: "LR"
|
|
439
|
+
};
|
|
440
|
+
break;
|
|
441
|
+
case 44:
|
|
442
|
+
case 45:
|
|
443
|
+
this.$ = {
|
|
444
|
+
stmt: "state",
|
|
445
|
+
id: w[E].trim(),
|
|
446
|
+
type: "default",
|
|
447
|
+
description: ""
|
|
448
|
+
};
|
|
449
|
+
break;
|
|
450
|
+
case 46:
|
|
451
|
+
this.$ = {
|
|
452
|
+
stmt: "state",
|
|
453
|
+
id: w[E - 2].trim(),
|
|
454
|
+
classes: [w[E].trim()],
|
|
455
|
+
type: "default",
|
|
456
|
+
description: ""
|
|
457
|
+
};
|
|
458
|
+
break;
|
|
459
|
+
case 47:
|
|
460
|
+
this.$ = {
|
|
461
|
+
stmt: "state",
|
|
462
|
+
id: w[E - 2].trim(),
|
|
463
|
+
classes: [w[E].trim()],
|
|
464
|
+
type: "default",
|
|
465
|
+
description: ""
|
|
466
|
+
};
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
}, "anonymous"),
|
|
470
|
+
table: [
|
|
471
|
+
{
|
|
472
|
+
3: 1,
|
|
473
|
+
4: b,
|
|
474
|
+
5: x,
|
|
475
|
+
6: C
|
|
476
|
+
},
|
|
477
|
+
{ 1: [3] },
|
|
478
|
+
{
|
|
479
|
+
3: 5,
|
|
480
|
+
4: b,
|
|
481
|
+
5: x,
|
|
482
|
+
6: C
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
3: 6,
|
|
486
|
+
4: b,
|
|
487
|
+
5: x,
|
|
488
|
+
6: C
|
|
489
|
+
},
|
|
490
|
+
e([
|
|
491
|
+
1,
|
|
492
|
+
4,
|
|
493
|
+
5,
|
|
494
|
+
16,
|
|
495
|
+
17,
|
|
496
|
+
19,
|
|
497
|
+
22,
|
|
498
|
+
24,
|
|
499
|
+
25,
|
|
500
|
+
26,
|
|
501
|
+
27,
|
|
502
|
+
28,
|
|
503
|
+
29,
|
|
504
|
+
33,
|
|
505
|
+
35,
|
|
506
|
+
37,
|
|
507
|
+
38,
|
|
508
|
+
41,
|
|
509
|
+
45,
|
|
510
|
+
48,
|
|
511
|
+
51,
|
|
512
|
+
52,
|
|
513
|
+
53,
|
|
514
|
+
54,
|
|
515
|
+
57
|
|
516
|
+
], w, { 7: 7 }),
|
|
517
|
+
{ 1: [2, 1] },
|
|
518
|
+
{ 1: [2, 2] },
|
|
519
|
+
{
|
|
520
|
+
1: [2, 3],
|
|
521
|
+
4: T,
|
|
522
|
+
5: E,
|
|
523
|
+
8: 8,
|
|
524
|
+
9: 10,
|
|
525
|
+
10: 12,
|
|
526
|
+
11: 13,
|
|
527
|
+
12: 14,
|
|
528
|
+
13: 15,
|
|
529
|
+
16: D,
|
|
530
|
+
17: O,
|
|
531
|
+
19: k,
|
|
532
|
+
22: A,
|
|
533
|
+
24: j,
|
|
534
|
+
25: M,
|
|
535
|
+
26: N,
|
|
536
|
+
27: P,
|
|
537
|
+
28: F,
|
|
538
|
+
29: I,
|
|
539
|
+
32: 25,
|
|
540
|
+
33: L,
|
|
541
|
+
35: R,
|
|
542
|
+
37: z,
|
|
543
|
+
38: B,
|
|
544
|
+
41: V,
|
|
545
|
+
45: H,
|
|
546
|
+
48: U,
|
|
547
|
+
51: W,
|
|
548
|
+
52: G,
|
|
549
|
+
53: K,
|
|
550
|
+
54: q,
|
|
551
|
+
57: J
|
|
552
|
+
},
|
|
553
|
+
e(Y, [2, 5]),
|
|
554
|
+
{
|
|
555
|
+
9: 39,
|
|
556
|
+
10: 12,
|
|
557
|
+
11: 13,
|
|
558
|
+
12: 14,
|
|
559
|
+
13: 15,
|
|
560
|
+
16: D,
|
|
561
|
+
17: O,
|
|
562
|
+
19: k,
|
|
563
|
+
22: A,
|
|
564
|
+
24: j,
|
|
565
|
+
25: M,
|
|
566
|
+
26: N,
|
|
567
|
+
27: P,
|
|
568
|
+
28: F,
|
|
569
|
+
29: I,
|
|
570
|
+
32: 25,
|
|
571
|
+
33: L,
|
|
572
|
+
35: R,
|
|
573
|
+
37: z,
|
|
574
|
+
38: B,
|
|
575
|
+
41: V,
|
|
576
|
+
45: H,
|
|
577
|
+
48: U,
|
|
578
|
+
51: W,
|
|
579
|
+
52: G,
|
|
580
|
+
53: K,
|
|
581
|
+
54: q,
|
|
582
|
+
57: J
|
|
583
|
+
},
|
|
584
|
+
e(Y, [2, 7]),
|
|
585
|
+
e(Y, [2, 8]),
|
|
586
|
+
e(Y, [2, 9]),
|
|
587
|
+
e(Y, [2, 10]),
|
|
588
|
+
e(Y, [2, 11]),
|
|
589
|
+
e(Y, [2, 12], {
|
|
590
|
+
14: [1, 40],
|
|
591
|
+
15: [1, 41]
|
|
592
|
+
}),
|
|
593
|
+
e(Y, [2, 16]),
|
|
594
|
+
{ 18: [1, 42] },
|
|
595
|
+
e(Y, [2, 18], { 20: [1, 43] }),
|
|
596
|
+
{ 23: [1, 44] },
|
|
597
|
+
e(Y, [2, 22]),
|
|
598
|
+
e(Y, [2, 23]),
|
|
599
|
+
e(Y, [2, 24]),
|
|
600
|
+
e(Y, [2, 25]),
|
|
601
|
+
{
|
|
602
|
+
30: 45,
|
|
603
|
+
31: [1, 46],
|
|
604
|
+
59: [1, 47],
|
|
605
|
+
60: [1, 48]
|
|
606
|
+
},
|
|
607
|
+
e(Y, [2, 28]),
|
|
608
|
+
{ 34: [1, 49] },
|
|
609
|
+
{ 36: [1, 50] },
|
|
610
|
+
e(Y, [2, 31]),
|
|
611
|
+
{
|
|
612
|
+
13: 51,
|
|
613
|
+
24: j,
|
|
614
|
+
57: J
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
42: [1, 52],
|
|
618
|
+
44: [1, 53]
|
|
619
|
+
},
|
|
620
|
+
{ 46: [1, 54] },
|
|
621
|
+
{ 49: [1, 55] },
|
|
622
|
+
e(X, [2, 44], { 58: [1, 56] }),
|
|
623
|
+
e(X, [2, 45], { 58: [1, 57] }),
|
|
624
|
+
e(Y, [2, 38]),
|
|
625
|
+
e(Y, [2, 39]),
|
|
626
|
+
e(Y, [2, 40]),
|
|
627
|
+
e(Y, [2, 41]),
|
|
628
|
+
e(Y, [2, 6]),
|
|
629
|
+
e(Y, [2, 13]),
|
|
630
|
+
{
|
|
631
|
+
13: 58,
|
|
632
|
+
24: j,
|
|
633
|
+
57: J
|
|
634
|
+
},
|
|
635
|
+
e(Y, [2, 17]),
|
|
636
|
+
e(Z, w, { 7: 59 }),
|
|
637
|
+
{ 24: [1, 60] },
|
|
638
|
+
{ 24: [1, 61] },
|
|
639
|
+
{ 23: [1, 62] },
|
|
640
|
+
{ 24: [2, 48] },
|
|
641
|
+
{ 24: [2, 49] },
|
|
642
|
+
e(Y, [2, 29]),
|
|
643
|
+
e(Y, [2, 30]),
|
|
644
|
+
{
|
|
645
|
+
39: [1, 63],
|
|
646
|
+
40: [1, 64]
|
|
647
|
+
},
|
|
648
|
+
{ 43: [1, 65] },
|
|
649
|
+
{ 43: [1, 66] },
|
|
650
|
+
{ 47: [1, 67] },
|
|
651
|
+
{ 50: [1, 68] },
|
|
652
|
+
{ 24: [1, 69] },
|
|
653
|
+
{ 24: [1, 70] },
|
|
654
|
+
e(Y, [2, 14], { 14: [1, 71] }),
|
|
655
|
+
{
|
|
656
|
+
4: T,
|
|
657
|
+
5: E,
|
|
658
|
+
8: 8,
|
|
659
|
+
9: 10,
|
|
660
|
+
10: 12,
|
|
661
|
+
11: 13,
|
|
662
|
+
12: 14,
|
|
663
|
+
13: 15,
|
|
664
|
+
16: D,
|
|
665
|
+
17: O,
|
|
666
|
+
19: k,
|
|
667
|
+
21: [1, 72],
|
|
668
|
+
22: A,
|
|
669
|
+
24: j,
|
|
670
|
+
25: M,
|
|
671
|
+
26: N,
|
|
672
|
+
27: P,
|
|
673
|
+
28: F,
|
|
674
|
+
29: I,
|
|
675
|
+
32: 25,
|
|
676
|
+
33: L,
|
|
677
|
+
35: R,
|
|
678
|
+
37: z,
|
|
679
|
+
38: B,
|
|
680
|
+
41: V,
|
|
681
|
+
45: H,
|
|
682
|
+
48: U,
|
|
683
|
+
51: W,
|
|
684
|
+
52: G,
|
|
685
|
+
53: K,
|
|
686
|
+
54: q,
|
|
687
|
+
57: J
|
|
688
|
+
},
|
|
689
|
+
e(Y, [2, 20], { 20: [1, 73] }),
|
|
690
|
+
{ 31: [1, 74] },
|
|
691
|
+
{ 24: [1, 75] },
|
|
692
|
+
{ 39: [1, 76] },
|
|
693
|
+
{ 39: [1, 77] },
|
|
694
|
+
e(Y, [2, 34]),
|
|
695
|
+
e(Y, [2, 35]),
|
|
696
|
+
e(Y, [2, 36]),
|
|
697
|
+
e(Y, [2, 37]),
|
|
698
|
+
e(X, [2, 46]),
|
|
699
|
+
e(X, [2, 47]),
|
|
700
|
+
e(Y, [2, 15]),
|
|
701
|
+
e(Y, [2, 19]),
|
|
702
|
+
e(Z, w, { 7: 78 }),
|
|
703
|
+
e(Y, [2, 26]),
|
|
704
|
+
e(Y, [2, 27]),
|
|
705
|
+
{ 5: [1, 79] },
|
|
706
|
+
{ 5: [1, 80] },
|
|
707
|
+
{
|
|
708
|
+
4: T,
|
|
709
|
+
5: E,
|
|
710
|
+
8: 8,
|
|
711
|
+
9: 10,
|
|
712
|
+
10: 12,
|
|
713
|
+
11: 13,
|
|
714
|
+
12: 14,
|
|
715
|
+
13: 15,
|
|
716
|
+
16: D,
|
|
717
|
+
17: O,
|
|
718
|
+
19: k,
|
|
719
|
+
21: [1, 81],
|
|
720
|
+
22: A,
|
|
721
|
+
24: j,
|
|
722
|
+
25: M,
|
|
723
|
+
26: N,
|
|
724
|
+
27: P,
|
|
725
|
+
28: F,
|
|
726
|
+
29: I,
|
|
727
|
+
32: 25,
|
|
728
|
+
33: L,
|
|
729
|
+
35: R,
|
|
730
|
+
37: z,
|
|
731
|
+
38: B,
|
|
732
|
+
41: V,
|
|
733
|
+
45: H,
|
|
734
|
+
48: U,
|
|
735
|
+
51: W,
|
|
736
|
+
52: G,
|
|
737
|
+
53: K,
|
|
738
|
+
54: q,
|
|
739
|
+
57: J
|
|
740
|
+
},
|
|
741
|
+
e(Y, [2, 32]),
|
|
742
|
+
e(Y, [2, 33]),
|
|
743
|
+
e(Y, [2, 21])
|
|
744
|
+
],
|
|
745
|
+
defaultActions: {
|
|
746
|
+
5: [2, 1],
|
|
747
|
+
6: [2, 2],
|
|
748
|
+
47: [2, 48],
|
|
749
|
+
48: [2, 49]
|
|
750
|
+
},
|
|
751
|
+
parseError: /* @__PURE__ */ __name(function(e, b) {
|
|
752
|
+
if (b.recoverable) this.trace(e);
|
|
753
|
+
else {
|
|
754
|
+
var x = Error(e);
|
|
755
|
+
throw x.hash = b, x;
|
|
756
|
+
}
|
|
757
|
+
}, "parseError"),
|
|
758
|
+
parse: /* @__PURE__ */ __name(function(e) {
|
|
759
|
+
var b = this, x = [0], C = [], w = [null], T = [], E = this.table, D = "", O = 0, k = 0, A = 0, j = 2, M = 1, N = T.slice.call(arguments, 1), P = Object.create(this.lexer), F = { yy: {} };
|
|
760
|
+
for (var I in this.yy) Object.prototype.hasOwnProperty.call(this.yy, I) && (F.yy[I] = this.yy[I]);
|
|
761
|
+
P.setInput(e, F.yy), F.yy.lexer = P, F.yy.parser = this, P.yylloc === void 0 && (P.yylloc = {});
|
|
762
|
+
var L = P.yylloc;
|
|
763
|
+
T.push(L);
|
|
764
|
+
var R = P.options && P.options.ranges;
|
|
765
|
+
typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
766
|
+
function z(e) {
|
|
767
|
+
x.length -= 2 * e, w.length -= e, T.length -= e;
|
|
768
|
+
}
|
|
769
|
+
__name(z, "popStack");
|
|
770
|
+
function B() {
|
|
771
|
+
var e = C.pop() || P.lex() || M;
|
|
772
|
+
return typeof e != "number" && (e instanceof Array && (C = e, e = C.pop()), e = b.symbols_[e] || e), e;
|
|
773
|
+
}
|
|
774
|
+
__name(B, "lex");
|
|
775
|
+
for (var V, H, U, W, G, K = {}, q, J, Y, X;;) {
|
|
776
|
+
if (U = x[x.length - 1], this.defaultActions[U] ? W = this.defaultActions[U] : (V ??= B(), W = E[U] && E[U][V]), W === void 0 || !W.length || !W[0]) {
|
|
777
|
+
var Z = "";
|
|
778
|
+
for (q in X = [], E[U]) this.terminals_[q] && q > j && X.push("'" + this.terminals_[q] + "'");
|
|
779
|
+
Z = P.showPosition ? "Parse error on line " + (O + 1) + ":\n" + P.showPosition() + "\nExpecting " + X.join(", ") + ", got '" + (this.terminals_[V] || V) + "'" : "Parse error on line " + (O + 1) + ": Unexpected " + (V == M ? "end of input" : "'" + (this.terminals_[V] || V) + "'"), this.parseError(Z, {
|
|
780
|
+
text: P.match,
|
|
781
|
+
token: this.terminals_[V] || V,
|
|
782
|
+
line: P.yylineno,
|
|
783
|
+
loc: L,
|
|
784
|
+
expected: X
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
if (W[0] instanceof Array && W.length > 1) throw Error("Parse Error: multiple actions possible at state: " + U + ", token: " + V);
|
|
788
|
+
switch (W[0]) {
|
|
789
|
+
case 1:
|
|
790
|
+
x.push(V), w.push(P.yytext), T.push(P.yylloc), x.push(W[1]), V = null, H ? (V = H, H = null) : (k = P.yyleng, D = P.yytext, O = P.yylineno, L = P.yylloc, A > 0 && A--);
|
|
791
|
+
break;
|
|
792
|
+
case 2:
|
|
793
|
+
if (J = this.productions_[W[1]][1], K.$ = w[w.length - J], K._$ = {
|
|
794
|
+
first_line: T[T.length - (J || 1)].first_line,
|
|
795
|
+
last_line: T[T.length - 1].last_line,
|
|
796
|
+
first_column: T[T.length - (J || 1)].first_column,
|
|
797
|
+
last_column: T[T.length - 1].last_column
|
|
798
|
+
}, R && (K._$.range = [T[T.length - (J || 1)].range[0], T[T.length - 1].range[1]]), G = this.performAction.apply(K, [
|
|
799
|
+
D,
|
|
800
|
+
k,
|
|
801
|
+
O,
|
|
802
|
+
F.yy,
|
|
803
|
+
W[1],
|
|
804
|
+
w,
|
|
805
|
+
T
|
|
806
|
+
].concat(N)), G !== void 0) return G;
|
|
807
|
+
J && (x = x.slice(0, -1 * J * 2), w = w.slice(0, -1 * J), T = T.slice(0, -1 * J)), x.push(this.productions_[W[1]][0]), w.push(K.$), T.push(K._$), Y = E[x[x.length - 2]][x[x.length - 1]], x.push(Y);
|
|
808
|
+
break;
|
|
809
|
+
case 3: return !0;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return !0;
|
|
813
|
+
}, "parse")
|
|
814
|
+
};
|
|
815
|
+
Q.lexer = /* @__PURE__ */ (function() {
|
|
816
|
+
return {
|
|
817
|
+
EOF: 1,
|
|
818
|
+
parseError: /* @__PURE__ */ __name(function(e, b) {
|
|
819
|
+
if (this.yy.parser) this.yy.parser.parseError(e, b);
|
|
820
|
+
else throw Error(e);
|
|
821
|
+
}, "parseError"),
|
|
822
|
+
setInput: /* @__PURE__ */ __name(function(e, b) {
|
|
823
|
+
return this.yy = b || 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 = {
|
|
824
|
+
first_line: 1,
|
|
825
|
+
first_column: 0,
|
|
826
|
+
last_line: 1,
|
|
827
|
+
last_column: 0
|
|
828
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
829
|
+
}, "setInput"),
|
|
830
|
+
input: /* @__PURE__ */ __name(function() {
|
|
831
|
+
var e = this._input[0];
|
|
832
|
+
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;
|
|
833
|
+
}, "input"),
|
|
834
|
+
unput: /* @__PURE__ */ __name(function(e) {
|
|
835
|
+
var b = e.length, x = e.split(/(?:\r\n?|\n)/g);
|
|
836
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - b), this.offset -= b;
|
|
837
|
+
var S = this.match.split(/(?:\r\n?|\n)/g);
|
|
838
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), x.length - 1 && (this.yylineno -= x.length - 1);
|
|
839
|
+
var C = this.yylloc.range;
|
|
840
|
+
return this.yylloc = {
|
|
841
|
+
first_line: this.yylloc.first_line,
|
|
842
|
+
last_line: this.yylineno + 1,
|
|
843
|
+
first_column: this.yylloc.first_column,
|
|
844
|
+
last_column: x ? (x.length === S.length ? this.yylloc.first_column : 0) + S[S.length - x.length].length - x[0].length : this.yylloc.first_column - b
|
|
845
|
+
}, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - b]), this.yyleng = this.yytext.length, this;
|
|
846
|
+
}, "unput"),
|
|
847
|
+
more: /* @__PURE__ */ __name(function() {
|
|
848
|
+
return this._more = !0, this;
|
|
849
|
+
}, "more"),
|
|
850
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
851
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
852
|
+
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(), {
|
|
853
|
+
text: "",
|
|
854
|
+
token: null,
|
|
855
|
+
line: this.yylineno
|
|
856
|
+
});
|
|
857
|
+
return this;
|
|
858
|
+
}, "reject"),
|
|
859
|
+
less: /* @__PURE__ */ __name(function(e) {
|
|
860
|
+
this.unput(this.match.slice(e));
|
|
861
|
+
}, "less"),
|
|
862
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
863
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
864
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
865
|
+
}, "pastInput"),
|
|
866
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
867
|
+
var e = this.match;
|
|
868
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
869
|
+
}, "upcomingInput"),
|
|
870
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
871
|
+
var e = this.pastInput(), b = Array(e.length + 1).join("-");
|
|
872
|
+
return e + this.upcomingInput() + "\n" + b + "^";
|
|
873
|
+
}, "showPosition"),
|
|
874
|
+
test_match: /* @__PURE__ */ __name(function(e, b) {
|
|
875
|
+
var x, S, C;
|
|
876
|
+
if (this.options.backtrack_lexer && (C = {
|
|
877
|
+
yylineno: this.yylineno,
|
|
878
|
+
yylloc: {
|
|
879
|
+
first_line: this.yylloc.first_line,
|
|
880
|
+
last_line: this.last_line,
|
|
881
|
+
first_column: this.yylloc.first_column,
|
|
882
|
+
last_column: this.yylloc.last_column
|
|
883
|
+
},
|
|
884
|
+
yytext: this.yytext,
|
|
885
|
+
match: this.match,
|
|
886
|
+
matches: this.matches,
|
|
887
|
+
matched: this.matched,
|
|
888
|
+
yyleng: this.yyleng,
|
|
889
|
+
offset: this.offset,
|
|
890
|
+
_more: this._more,
|
|
891
|
+
_input: this._input,
|
|
892
|
+
yy: this.yy,
|
|
893
|
+
conditionStack: this.conditionStack.slice(0),
|
|
894
|
+
done: this.done
|
|
895
|
+
}, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), S = e[0].match(/(?:\r\n?|\n).*/g), S && (this.yylineno += S.length), this.yylloc = {
|
|
896
|
+
first_line: this.yylloc.last_line,
|
|
897
|
+
last_line: this.yylineno + 1,
|
|
898
|
+
first_column: this.yylloc.last_column,
|
|
899
|
+
last_column: S ? S[S.length - 1].length - S[S.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
900
|
+
}, 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], x = this.performAction.call(this, this.yy, this, b, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x) return x;
|
|
901
|
+
if (this._backtrack) {
|
|
902
|
+
for (var w in C) this[w] = C[w];
|
|
903
|
+
return !1;
|
|
904
|
+
}
|
|
905
|
+
return !1;
|
|
906
|
+
}, "test_match"),
|
|
907
|
+
next: /* @__PURE__ */ __name(function() {
|
|
908
|
+
if (this.done) return this.EOF;
|
|
909
|
+
this._input || (this.done = !0);
|
|
910
|
+
var e, b, x, S;
|
|
911
|
+
this._more || (this.yytext = "", this.match = "");
|
|
912
|
+
for (var C = this._currentRules(), w = 0; w < C.length; w++) if (x = this._input.match(this.rules[C[w]]), x && (!b || x[0].length > b[0].length)) {
|
|
913
|
+
if (b = x, S = w, this.options.backtrack_lexer) {
|
|
914
|
+
if (e = this.test_match(x, C[w]), e !== !1) return e;
|
|
915
|
+
if (this._backtrack) {
|
|
916
|
+
b = !1;
|
|
917
|
+
continue;
|
|
918
|
+
} else return !1;
|
|
919
|
+
} else if (!this.options.flex) break;
|
|
920
|
+
}
|
|
921
|
+
return b ? (e = this.test_match(b, C[S]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
922
|
+
text: "",
|
|
923
|
+
token: null,
|
|
924
|
+
line: this.yylineno
|
|
925
|
+
});
|
|
926
|
+
}, "next"),
|
|
927
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
928
|
+
return this.next() || this.lex();
|
|
929
|
+
}, "lex"),
|
|
930
|
+
begin: /* @__PURE__ */ __name(function(e) {
|
|
931
|
+
this.conditionStack.push(e);
|
|
932
|
+
}, "begin"),
|
|
933
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
934
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
935
|
+
}, "popState"),
|
|
936
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
937
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
938
|
+
}, "_currentRules"),
|
|
939
|
+
topState: /* @__PURE__ */ __name(function(e) {
|
|
940
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
941
|
+
}, "topState"),
|
|
942
|
+
pushState: /* @__PURE__ */ __name(function(e) {
|
|
943
|
+
this.begin(e);
|
|
944
|
+
}, "pushState"),
|
|
945
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
946
|
+
return this.conditionStack.length;
|
|
947
|
+
}, "stateStackSize"),
|
|
948
|
+
options: { "case-insensitive": !0 },
|
|
949
|
+
performAction: /* @__PURE__ */ __name(function(e, b, x, S) {
|
|
950
|
+
switch (x) {
|
|
951
|
+
case 0: return 38;
|
|
952
|
+
case 1: return 40;
|
|
953
|
+
case 2: return 39;
|
|
954
|
+
case 3: return 44;
|
|
955
|
+
case 4: return 51;
|
|
956
|
+
case 5: return 52;
|
|
957
|
+
case 6: return 53;
|
|
958
|
+
case 7: return 54;
|
|
959
|
+
case 8: break;
|
|
960
|
+
case 9: break;
|
|
961
|
+
case 10: return 5;
|
|
962
|
+
case 11: break;
|
|
963
|
+
case 12: break;
|
|
964
|
+
case 13: break;
|
|
965
|
+
case 14: break;
|
|
966
|
+
case 15: return this.pushState("SCALE"), 17;
|
|
967
|
+
case 16: return 18;
|
|
968
|
+
case 17:
|
|
969
|
+
this.popState();
|
|
970
|
+
break;
|
|
971
|
+
case 18: return this.begin("acc_title"), 33;
|
|
972
|
+
case 19: return this.popState(), "acc_title_value";
|
|
973
|
+
case 20: return this.begin("acc_descr"), 35;
|
|
974
|
+
case 21: return this.popState(), "acc_descr_value";
|
|
975
|
+
case 22:
|
|
976
|
+
this.begin("acc_descr_multiline");
|
|
977
|
+
break;
|
|
978
|
+
case 23:
|
|
979
|
+
this.popState();
|
|
980
|
+
break;
|
|
981
|
+
case 24: return "acc_descr_multiline_value";
|
|
982
|
+
case 25: return this.pushState("CLASSDEF"), 41;
|
|
983
|
+
case 26: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
984
|
+
case 27: return this.popState(), this.pushState("CLASSDEFID"), 42;
|
|
985
|
+
case 28: return this.popState(), 43;
|
|
986
|
+
case 29: return this.pushState("CLASS"), 48;
|
|
987
|
+
case 30: return this.popState(), this.pushState("CLASS_STYLE"), 49;
|
|
988
|
+
case 31: return this.popState(), 50;
|
|
989
|
+
case 32: return this.pushState("STYLE"), 45;
|
|
990
|
+
case 33: return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
|
|
991
|
+
case 34: return this.popState(), 47;
|
|
992
|
+
case 35: return this.pushState("SCALE"), 17;
|
|
993
|
+
case 36: return 18;
|
|
994
|
+
case 37:
|
|
995
|
+
this.popState();
|
|
996
|
+
break;
|
|
997
|
+
case 38:
|
|
998
|
+
this.pushState("STATE");
|
|
999
|
+
break;
|
|
1000
|
+
case 39: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 25;
|
|
1001
|
+
case 40: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 26;
|
|
1002
|
+
case 41: return this.popState(), b.yytext = b.yytext.slice(0, -10).trim(), 27;
|
|
1003
|
+
case 42: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 25;
|
|
1004
|
+
case 43: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 26;
|
|
1005
|
+
case 44: return this.popState(), b.yytext = b.yytext.slice(0, -10).trim(), 27;
|
|
1006
|
+
case 45: return 51;
|
|
1007
|
+
case 46: return 52;
|
|
1008
|
+
case 47: return 53;
|
|
1009
|
+
case 48: return 54;
|
|
1010
|
+
case 49:
|
|
1011
|
+
this.pushState("STATE_STRING");
|
|
1012
|
+
break;
|
|
1013
|
+
case 50: return this.pushState("STATE_ID"), "AS";
|
|
1014
|
+
case 51: return this.popState(), "ID";
|
|
1015
|
+
case 52:
|
|
1016
|
+
this.popState();
|
|
1017
|
+
break;
|
|
1018
|
+
case 53: return "STATE_DESCR";
|
|
1019
|
+
case 54: return 19;
|
|
1020
|
+
case 55:
|
|
1021
|
+
this.popState();
|
|
1022
|
+
break;
|
|
1023
|
+
case 56: return this.popState(), this.pushState("struct"), 20;
|
|
1024
|
+
case 57: break;
|
|
1025
|
+
case 58: return this.popState(), 21;
|
|
1026
|
+
case 59: break;
|
|
1027
|
+
case 60: return this.begin("NOTE"), 29;
|
|
1028
|
+
case 61: return this.popState(), this.pushState("NOTE_ID"), 59;
|
|
1029
|
+
case 62: return this.popState(), this.pushState("NOTE_ID"), 60;
|
|
1030
|
+
case 63:
|
|
1031
|
+
this.popState(), this.pushState("FLOATING_NOTE");
|
|
1032
|
+
break;
|
|
1033
|
+
case 64: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
|
|
1034
|
+
case 65: break;
|
|
1035
|
+
case 66: return "NOTE_TEXT";
|
|
1036
|
+
case 67: return this.popState(), "ID";
|
|
1037
|
+
case 68: return this.popState(), this.pushState("NOTE_TEXT"), 24;
|
|
1038
|
+
case 69: return this.popState(), b.yytext = b.yytext.substr(2).trim(), 31;
|
|
1039
|
+
case 70: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 31;
|
|
1040
|
+
case 71: return 6;
|
|
1041
|
+
case 72: return 6;
|
|
1042
|
+
case 73: return 16;
|
|
1043
|
+
case 74: return 57;
|
|
1044
|
+
case 75: return 24;
|
|
1045
|
+
case 76: return b.yytext = b.yytext.trim(), 14;
|
|
1046
|
+
case 77: return 15;
|
|
1047
|
+
case 78: return 28;
|
|
1048
|
+
case 79: return 58;
|
|
1049
|
+
case 80: return 5;
|
|
1050
|
+
case 81: return "INVALID";
|
|
1051
|
+
}
|
|
1052
|
+
}, "anonymous"),
|
|
1053
|
+
rules: [
|
|
1054
|
+
/^(?:click\b)/i,
|
|
1055
|
+
/^(?:href\b)/i,
|
|
1056
|
+
/^(?:"[^"]*")/i,
|
|
1057
|
+
/^(?:default\b)/i,
|
|
1058
|
+
/^(?:.*direction\s+TB[^\n]*)/i,
|
|
1059
|
+
/^(?:.*direction\s+BT[^\n]*)/i,
|
|
1060
|
+
/^(?:.*direction\s+RL[^\n]*)/i,
|
|
1061
|
+
/^(?:.*direction\s+LR[^\n]*)/i,
|
|
1062
|
+
/^(?:%%(?!\{)[^\n]*)/i,
|
|
1063
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
1064
|
+
/^(?:[\n]+)/i,
|
|
1065
|
+
/^(?:[\s]+)/i,
|
|
1066
|
+
/^(?:((?!\n)\s)+)/i,
|
|
1067
|
+
/^(?:#[^\n]*)/i,
|
|
1068
|
+
/^(?:%[^\n]*)/i,
|
|
1069
|
+
/^(?:scale\s+)/i,
|
|
1070
|
+
/^(?:\d+)/i,
|
|
1071
|
+
/^(?:\s+width\b)/i,
|
|
1072
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
1073
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1074
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
1075
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1076
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
1077
|
+
/^(?:[\}])/i,
|
|
1078
|
+
/^(?:[^\}]*)/i,
|
|
1079
|
+
/^(?:classDef\s+)/i,
|
|
1080
|
+
/^(?:DEFAULT\s+)/i,
|
|
1081
|
+
/^(?:\w+\s+)/i,
|
|
1082
|
+
/^(?:[^\n]*)/i,
|
|
1083
|
+
/^(?:class\s+)/i,
|
|
1084
|
+
/^(?:(\w+)+((,\s*\w+)*))/i,
|
|
1085
|
+
/^(?:[^\n]*)/i,
|
|
1086
|
+
/^(?:style\s+)/i,
|
|
1087
|
+
/^(?:[\w,]+\s+)/i,
|
|
1088
|
+
/^(?:[^\n]*)/i,
|
|
1089
|
+
/^(?:scale\s+)/i,
|
|
1090
|
+
/^(?:\d+)/i,
|
|
1091
|
+
/^(?:\s+width\b)/i,
|
|
1092
|
+
/^(?:state\s+)/i,
|
|
1093
|
+
/^(?:.*<<fork>>)/i,
|
|
1094
|
+
/^(?:.*<<join>>)/i,
|
|
1095
|
+
/^(?:.*<<choice>>)/i,
|
|
1096
|
+
/^(?:.*\[\[fork\]\])/i,
|
|
1097
|
+
/^(?:.*\[\[join\]\])/i,
|
|
1098
|
+
/^(?:.*\[\[choice\]\])/i,
|
|
1099
|
+
/^(?:.*direction\s+TB[^\n]*)/i,
|
|
1100
|
+
/^(?:.*direction\s+BT[^\n]*)/i,
|
|
1101
|
+
/^(?:.*direction\s+RL[^\n]*)/i,
|
|
1102
|
+
/^(?:.*direction\s+LR[^\n]*)/i,
|
|
1103
|
+
/^(?:["])/i,
|
|
1104
|
+
/^(?:\s*as\s+)/i,
|
|
1105
|
+
/^(?:[^\n\{]*)/i,
|
|
1106
|
+
/^(?:["])/i,
|
|
1107
|
+
/^(?:[^"]*)/i,
|
|
1108
|
+
/^(?:[^\n\s\{]+)/i,
|
|
1109
|
+
/^(?:\n)/i,
|
|
1110
|
+
/^(?:\{)/i,
|
|
1111
|
+
/^(?:%%(?!\{)[^\n]*)/i,
|
|
1112
|
+
/^(?:\})/i,
|
|
1113
|
+
/^(?:[\n])/i,
|
|
1114
|
+
/^(?:note\s+)/i,
|
|
1115
|
+
/^(?:left of\b)/i,
|
|
1116
|
+
/^(?:right of\b)/i,
|
|
1117
|
+
/^(?:")/i,
|
|
1118
|
+
/^(?:\s*as\s*)/i,
|
|
1119
|
+
/^(?:["])/i,
|
|
1120
|
+
/^(?:[^"]*)/i,
|
|
1121
|
+
/^(?:[^\n]*)/i,
|
|
1122
|
+
/^(?:\s*[^:\n\s\-]+)/i,
|
|
1123
|
+
/^(?:\s*:[^:\n;]+)/i,
|
|
1124
|
+
/^(?:[\s\S]*?end note\b)/i,
|
|
1125
|
+
/^(?:stateDiagram\s+)/i,
|
|
1126
|
+
/^(?:stateDiagram-v2\s+)/i,
|
|
1127
|
+
/^(?:hide empty description\b)/i,
|
|
1128
|
+
/^(?:\[\*\])/i,
|
|
1129
|
+
/^(?:[^:\n\s\-\{]+)/i,
|
|
1130
|
+
/^(?:\s*:[^:\n;]+)/i,
|
|
1131
|
+
/^(?:-->)/i,
|
|
1132
|
+
/^(?:--)/i,
|
|
1133
|
+
/^(?::::)/i,
|
|
1134
|
+
/^(?:$)/i,
|
|
1135
|
+
/^(?:.)/i
|
|
1136
|
+
],
|
|
1137
|
+
conditions: {
|
|
1138
|
+
LINE: {
|
|
1139
|
+
rules: [12, 13],
|
|
1140
|
+
inclusive: !1
|
|
1141
|
+
},
|
|
1142
|
+
struct: {
|
|
1143
|
+
rules: [
|
|
1144
|
+
12,
|
|
1145
|
+
13,
|
|
1146
|
+
25,
|
|
1147
|
+
29,
|
|
1148
|
+
32,
|
|
1149
|
+
38,
|
|
1150
|
+
45,
|
|
1151
|
+
46,
|
|
1152
|
+
47,
|
|
1153
|
+
48,
|
|
1154
|
+
57,
|
|
1155
|
+
58,
|
|
1156
|
+
59,
|
|
1157
|
+
60,
|
|
1158
|
+
74,
|
|
1159
|
+
75,
|
|
1160
|
+
76,
|
|
1161
|
+
77,
|
|
1162
|
+
78
|
|
1163
|
+
],
|
|
1164
|
+
inclusive: !1
|
|
1165
|
+
},
|
|
1166
|
+
FLOATING_NOTE_ID: {
|
|
1167
|
+
rules: [67],
|
|
1168
|
+
inclusive: !1
|
|
1169
|
+
},
|
|
1170
|
+
FLOATING_NOTE: {
|
|
1171
|
+
rules: [
|
|
1172
|
+
64,
|
|
1173
|
+
65,
|
|
1174
|
+
66
|
|
1175
|
+
],
|
|
1176
|
+
inclusive: !1
|
|
1177
|
+
},
|
|
1178
|
+
NOTE_TEXT: {
|
|
1179
|
+
rules: [69, 70],
|
|
1180
|
+
inclusive: !1
|
|
1181
|
+
},
|
|
1182
|
+
NOTE_ID: {
|
|
1183
|
+
rules: [68],
|
|
1184
|
+
inclusive: !1
|
|
1185
|
+
},
|
|
1186
|
+
NOTE: {
|
|
1187
|
+
rules: [
|
|
1188
|
+
61,
|
|
1189
|
+
62,
|
|
1190
|
+
63
|
|
1191
|
+
],
|
|
1192
|
+
inclusive: !1
|
|
1193
|
+
},
|
|
1194
|
+
STYLEDEF_STYLEOPTS: {
|
|
1195
|
+
rules: [],
|
|
1196
|
+
inclusive: !1
|
|
1197
|
+
},
|
|
1198
|
+
STYLEDEF_STYLES: {
|
|
1199
|
+
rules: [34],
|
|
1200
|
+
inclusive: !1
|
|
1201
|
+
},
|
|
1202
|
+
STYLE_IDS: {
|
|
1203
|
+
rules: [],
|
|
1204
|
+
inclusive: !1
|
|
1205
|
+
},
|
|
1206
|
+
STYLE: {
|
|
1207
|
+
rules: [33],
|
|
1208
|
+
inclusive: !1
|
|
1209
|
+
},
|
|
1210
|
+
CLASS_STYLE: {
|
|
1211
|
+
rules: [31],
|
|
1212
|
+
inclusive: !1
|
|
1213
|
+
},
|
|
1214
|
+
CLASS: {
|
|
1215
|
+
rules: [30],
|
|
1216
|
+
inclusive: !1
|
|
1217
|
+
},
|
|
1218
|
+
CLASSDEFID: {
|
|
1219
|
+
rules: [28],
|
|
1220
|
+
inclusive: !1
|
|
1221
|
+
},
|
|
1222
|
+
CLASSDEF: {
|
|
1223
|
+
rules: [26, 27],
|
|
1224
|
+
inclusive: !1
|
|
1225
|
+
},
|
|
1226
|
+
acc_descr_multiline: {
|
|
1227
|
+
rules: [23, 24],
|
|
1228
|
+
inclusive: !1
|
|
1229
|
+
},
|
|
1230
|
+
acc_descr: {
|
|
1231
|
+
rules: [21],
|
|
1232
|
+
inclusive: !1
|
|
1233
|
+
},
|
|
1234
|
+
acc_title: {
|
|
1235
|
+
rules: [19],
|
|
1236
|
+
inclusive: !1
|
|
1237
|
+
},
|
|
1238
|
+
SCALE: {
|
|
1239
|
+
rules: [
|
|
1240
|
+
16,
|
|
1241
|
+
17,
|
|
1242
|
+
36,
|
|
1243
|
+
37
|
|
1244
|
+
],
|
|
1245
|
+
inclusive: !1
|
|
1246
|
+
},
|
|
1247
|
+
ALIAS: {
|
|
1248
|
+
rules: [],
|
|
1249
|
+
inclusive: !1
|
|
1250
|
+
},
|
|
1251
|
+
STATE_ID: {
|
|
1252
|
+
rules: [51],
|
|
1253
|
+
inclusive: !1
|
|
1254
|
+
},
|
|
1255
|
+
STATE_STRING: {
|
|
1256
|
+
rules: [52, 53],
|
|
1257
|
+
inclusive: !1
|
|
1258
|
+
},
|
|
1259
|
+
FORK_STATE: {
|
|
1260
|
+
rules: [],
|
|
1261
|
+
inclusive: !1
|
|
1262
|
+
},
|
|
1263
|
+
STATE: {
|
|
1264
|
+
rules: [
|
|
1265
|
+
12,
|
|
1266
|
+
13,
|
|
1267
|
+
39,
|
|
1268
|
+
40,
|
|
1269
|
+
41,
|
|
1270
|
+
42,
|
|
1271
|
+
43,
|
|
1272
|
+
44,
|
|
1273
|
+
49,
|
|
1274
|
+
50,
|
|
1275
|
+
54,
|
|
1276
|
+
55,
|
|
1277
|
+
56
|
|
1278
|
+
],
|
|
1279
|
+
inclusive: !1
|
|
1280
|
+
},
|
|
1281
|
+
ID: {
|
|
1282
|
+
rules: [12, 13],
|
|
1283
|
+
inclusive: !1
|
|
1284
|
+
},
|
|
1285
|
+
INITIAL: {
|
|
1286
|
+
rules: [
|
|
1287
|
+
0,
|
|
1288
|
+
1,
|
|
1289
|
+
2,
|
|
1290
|
+
3,
|
|
1291
|
+
4,
|
|
1292
|
+
5,
|
|
1293
|
+
6,
|
|
1294
|
+
7,
|
|
1295
|
+
8,
|
|
1296
|
+
9,
|
|
1297
|
+
10,
|
|
1298
|
+
11,
|
|
1299
|
+
13,
|
|
1300
|
+
14,
|
|
1301
|
+
15,
|
|
1302
|
+
18,
|
|
1303
|
+
20,
|
|
1304
|
+
22,
|
|
1305
|
+
25,
|
|
1306
|
+
29,
|
|
1307
|
+
32,
|
|
1308
|
+
35,
|
|
1309
|
+
38,
|
|
1310
|
+
56,
|
|
1311
|
+
60,
|
|
1312
|
+
71,
|
|
1313
|
+
72,
|
|
1314
|
+
73,
|
|
1315
|
+
74,
|
|
1316
|
+
75,
|
|
1317
|
+
76,
|
|
1318
|
+
77,
|
|
1319
|
+
79,
|
|
1320
|
+
80,
|
|
1321
|
+
81
|
|
1322
|
+
],
|
|
1323
|
+
inclusive: !0
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
})();
|
|
1328
|
+
function $() {
|
|
1329
|
+
this.yy = {};
|
|
1330
|
+
}
|
|
1331
|
+
return __name($, "Parser"), $.prototype = Q, Q.Parser = $, new $();
|
|
1332
|
+
})();
|
|
1333
|
+
parser.parser = parser;
|
|
1334
|
+
var stateDiagram_default = parser, DEFAULT_DIAGRAM_DIRECTION = "TB", DEFAULT_NESTED_DOC_DIR = "TB", STMT_DIRECTION = "dir", STMT_STATE = "state", STMT_ROOT = "root", STMT_RELATION = "relation", STMT_CLASSDEF = "classDef", STMT_STYLEDEF = "style", STMT_APPLYCLASS = "applyClass", DEFAULT_STATE_TYPE = "default", DIVIDER_TYPE = "divider", G_EDGE_STYLE = "fill:none", G_EDGE_ARROWHEADSTYLE = "fill: #333", G_EDGE_LABELPOS = "c", G_EDGE_LABELTYPE = "text", G_EDGE_THICKNESS = "normal", SHAPE_STATE = "rect", SHAPE_STATE_WITH_DESC = "rectWithTitle", SHAPE_START = "stateStart", SHAPE_END = "stateEnd", SHAPE_DIVIDER = "divider", SHAPE_GROUP = "roundedWithTitle", SHAPE_NOTE = "note", SHAPE_NOTEGROUP = "noteGroup", CSS_DIAGRAM = "statediagram", CSS_DIAGRAM_STATE = `${CSS_DIAGRAM}-state`, CSS_EDGE = "transition", CSS_NOTE = "note", CSS_EDGE_NOTE_EDGE = `${CSS_EDGE} note-edge`, CSS_DIAGRAM_NOTE = `${CSS_DIAGRAM}-${CSS_NOTE}`, CSS_DIAGRAM_CLUSTER = `${CSS_DIAGRAM}-cluster`, CSS_DIAGRAM_CLUSTER_ALT = `${CSS_DIAGRAM}-cluster-alt`, PARENT = "parent", NOTE = "note", DOMID_STATE = "state", DOMID_TYPE_SPACER = "----", NOTE_ID = `${DOMID_TYPE_SPACER}${NOTE}`, PARENT_ID = `${DOMID_TYPE_SPACER}${PARENT}`, getDir = /* @__PURE__ */ __name((e, b = DEFAULT_NESTED_DOC_DIR) => {
|
|
1335
|
+
if (!e.doc) return b;
|
|
1336
|
+
let x = b;
|
|
1337
|
+
for (let b of e.doc) b.stmt === "dir" && (x = b.value);
|
|
1338
|
+
return x;
|
|
1339
|
+
}, "getDir"), stateRenderer_v3_unified_default = {
|
|
1340
|
+
getClasses: /* @__PURE__ */ __name(function(e, b) {
|
|
1341
|
+
return b.db.getClasses();
|
|
1342
|
+
}, "getClasses"),
|
|
1343
|
+
draw: /* @__PURE__ */ __name(async function(b, S, C, w) {
|
|
1344
|
+
log.info("REF0:"), log.info("Drawing state diagram (v2)", S);
|
|
1345
|
+
let { securityLevel: T, state: E, layout: D } = getConfig2();
|
|
1346
|
+
w.db.extract(w.db.getRootDocV2());
|
|
1347
|
+
let k = w.db.getData(), A = getDiagramElement(S, T);
|
|
1348
|
+
k.type = w.type, k.layoutAlgorithm = D, k.nodeSpacing = E?.nodeSpacing || 50, k.rankSpacing = E?.rankSpacing || 50, k.markers = ["barb"], k.diagramId = S, await render(k, A);
|
|
1349
|
+
try {
|
|
1350
|
+
(typeof w.db.getLinks == "function" ? w.db.getLinks() : /* @__PURE__ */ new Map()).forEach((e, b) => {
|
|
1351
|
+
let S = typeof b == "string" ? b : typeof b?.id == "string" ? b.id : "";
|
|
1352
|
+
if (!S) {
|
|
1353
|
+
log.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(b));
|
|
1354
|
+
return;
|
|
1355
|
+
}
|
|
1356
|
+
let C = A.node()?.querySelectorAll("g"), w;
|
|
1357
|
+
if (C?.forEach((e) => {
|
|
1358
|
+
e.textContent?.trim() === S && (w = e);
|
|
1359
|
+
}), !w) {
|
|
1360
|
+
log.warn("⚠️ Could not find node matching text:", S);
|
|
1361
|
+
return;
|
|
1362
|
+
}
|
|
1363
|
+
let T = w.parentNode;
|
|
1364
|
+
if (!T) {
|
|
1365
|
+
log.warn("⚠️ Node has no parent, cannot wrap:", S);
|
|
1366
|
+
return;
|
|
1367
|
+
}
|
|
1368
|
+
let E = document.createElementNS("http://www.w3.org/2000/svg", "a"), D = e.url.replace(/^"+|"+$/g, "");
|
|
1369
|
+
if (E.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", D), E.setAttribute("target", "_blank"), e.tooltip) {
|
|
1370
|
+
let b = e.tooltip.replace(/^"+|"+$/g, "");
|
|
1371
|
+
E.setAttribute("title", b);
|
|
1372
|
+
}
|
|
1373
|
+
T.replaceChild(E, w), E.appendChild(w), log.info("🔗 Wrapped node in <a> tag for:", S, e.url);
|
|
1374
|
+
});
|
|
1375
|
+
} catch (e) {
|
|
1376
|
+
log.error("❌ Error injecting clickable links:", e);
|
|
1377
|
+
}
|
|
1378
|
+
utils_default.insertTitle(A, "statediagramTitleText", E?.titleTopMargin ?? 25, w.db.getDiagramTitle()), setupViewPortForSVG(A, 8, CSS_DIAGRAM, E?.useMaxWidth ?? !0);
|
|
1379
|
+
}, "draw"),
|
|
1380
|
+
getDir
|
|
1381
|
+
}, nodeDb = /* @__PURE__ */ new Map(), graphItemCount = 0;
|
|
1382
|
+
function stateDomId(e = "", b = 0, x = "", S = DOMID_TYPE_SPACER) {
|
|
1383
|
+
return `${DOMID_STATE}-${e}${x !== null && x.length > 0 ? `${S}${x}` : ""}-${b}`;
|
|
1384
|
+
}
|
|
1385
|
+
__name(stateDomId, "stateDomId");
|
|
1386
|
+
var setupDoc = /* @__PURE__ */ __name((e, b, S, C, w, T, E, D) => {
|
|
1387
|
+
log.trace("items", b), b.forEach((b) => {
|
|
1388
|
+
switch (b.stmt) {
|
|
1389
|
+
case STMT_STATE:
|
|
1390
|
+
dataFetcher(e, b, S, C, w, T, E, D);
|
|
1391
|
+
break;
|
|
1392
|
+
case DEFAULT_STATE_TYPE:
|
|
1393
|
+
dataFetcher(e, b, S, C, w, T, E, D);
|
|
1394
|
+
break;
|
|
1395
|
+
case STMT_RELATION:
|
|
1396
|
+
{
|
|
1397
|
+
dataFetcher(e, b.state1, S, C, w, T, E, D), dataFetcher(e, b.state2, S, C, w, T, E, D);
|
|
1398
|
+
let x = {
|
|
1399
|
+
id: "edge" + graphItemCount,
|
|
1400
|
+
start: b.state1.id,
|
|
1401
|
+
end: b.state2.id,
|
|
1402
|
+
arrowhead: "normal",
|
|
1403
|
+
arrowTypeEnd: "arrow_barb",
|
|
1404
|
+
style: G_EDGE_STYLE,
|
|
1405
|
+
labelStyle: "",
|
|
1406
|
+
label: common_default.sanitizeText(b.description ?? "", getConfig2()),
|
|
1407
|
+
arrowheadStyle: G_EDGE_ARROWHEADSTYLE,
|
|
1408
|
+
labelpos: G_EDGE_LABELPOS,
|
|
1409
|
+
labelType: G_EDGE_LABELTYPE,
|
|
1410
|
+
thickness: G_EDGE_THICKNESS,
|
|
1411
|
+
classes: CSS_EDGE,
|
|
1412
|
+
look: E
|
|
1413
|
+
};
|
|
1414
|
+
w.push(x), graphItemCount++;
|
|
1415
|
+
}
|
|
1416
|
+
break;
|
|
1417
|
+
}
|
|
1418
|
+
});
|
|
1419
|
+
}, "setupDoc"), getDir2 = /* @__PURE__ */ __name((e, b = DEFAULT_NESTED_DOC_DIR) => {
|
|
1420
|
+
let x = b;
|
|
1421
|
+
if (e.doc) for (let b of e.doc) b.stmt === "dir" && (x = b.value);
|
|
1422
|
+
return x;
|
|
1423
|
+
}, "getDir");
|
|
1424
|
+
function insertOrUpdateNode(e, b, x) {
|
|
1425
|
+
if (!b.id || b.id === "</join></fork>" || b.id === "</choice>") return;
|
|
1426
|
+
b.cssClasses && (Array.isArray(b.cssCompiledStyles) || (b.cssCompiledStyles = []), b.cssClasses.split(" ").forEach((e) => {
|
|
1427
|
+
let S = x.get(e);
|
|
1428
|
+
S && (b.cssCompiledStyles = [...b.cssCompiledStyles ?? [], ...S.styles]);
|
|
1429
|
+
}));
|
|
1430
|
+
let S = e.find((e) => e.id === b.id);
|
|
1431
|
+
S ? Object.assign(S, b) : e.push(b);
|
|
1432
|
+
}
|
|
1433
|
+
__name(insertOrUpdateNode, "insertOrUpdateNode");
|
|
1434
|
+
function getClassesFromDbInfo(e) {
|
|
1435
|
+
return e?.classes?.join(" ") ?? "";
|
|
1436
|
+
}
|
|
1437
|
+
__name(getClassesFromDbInfo, "getClassesFromDbInfo");
|
|
1438
|
+
function getStylesFromDbInfo(e) {
|
|
1439
|
+
return e?.styles ?? [];
|
|
1440
|
+
}
|
|
1441
|
+
__name(getStylesFromDbInfo, "getStylesFromDbInfo");
|
|
1442
|
+
var dataFetcher = /* @__PURE__ */ __name((e, b, S, C, w, T, E, D) => {
|
|
1443
|
+
let A = b.id, j = S.get(A), M = getClassesFromDbInfo(j), N = getStylesFromDbInfo(j), P = getConfig2();
|
|
1444
|
+
if (log.info("dataFetcher parsedItem", b, j, N), A !== "root") {
|
|
1445
|
+
let S = SHAPE_STATE;
|
|
1446
|
+
b.start === !0 ? S = SHAPE_START : b.start === !1 && (S = SHAPE_END), b.type !== DEFAULT_STATE_TYPE && (S = b.type), nodeDb.get(A) || nodeDb.set(A, {
|
|
1447
|
+
id: A,
|
|
1448
|
+
shape: S,
|
|
1449
|
+
description: common_default.sanitizeText(A, P),
|
|
1450
|
+
cssClasses: `${M} ${CSS_DIAGRAM_STATE}`,
|
|
1451
|
+
cssStyles: N
|
|
1452
|
+
});
|
|
1453
|
+
let O = nodeDb.get(A);
|
|
1454
|
+
b.description && (Array.isArray(O.description) ? (O.shape = SHAPE_STATE_WITH_DESC, O.description.push(b.description)) : O.description?.length && O.description.length > 0 ? (O.shape = SHAPE_STATE_WITH_DESC, O.description === A ? O.description = [b.description] : O.description = [O.description, b.description]) : (O.shape = SHAPE_STATE, O.description = b.description), O.description = common_default.sanitizeTextOrArray(O.description, P)), O.description?.length === 1 && O.shape === SHAPE_STATE_WITH_DESC && (O.type === "group" ? O.shape = SHAPE_GROUP : O.shape = SHAPE_STATE), !O.type && b.doc && (log.info("Setting cluster for XCX", A, getDir2(b)), O.type = "group", O.isGroup = !0, O.dir = getDir2(b), O.shape = b.type === DIVIDER_TYPE ? SHAPE_DIVIDER : SHAPE_GROUP, O.cssClasses = `${O.cssClasses} ${CSS_DIAGRAM_CLUSTER} ${T ? CSS_DIAGRAM_CLUSTER_ALT : ""}`);
|
|
1455
|
+
let j = {
|
|
1456
|
+
labelStyle: "",
|
|
1457
|
+
shape: O.shape,
|
|
1458
|
+
label: O.description,
|
|
1459
|
+
cssClasses: O.cssClasses,
|
|
1460
|
+
cssCompiledStyles: [],
|
|
1461
|
+
cssStyles: O.cssStyles,
|
|
1462
|
+
id: A,
|
|
1463
|
+
dir: O.dir,
|
|
1464
|
+
domId: stateDomId(A, graphItemCount),
|
|
1465
|
+
type: O.type,
|
|
1466
|
+
isGroup: O.type === "group",
|
|
1467
|
+
padding: 8,
|
|
1468
|
+
rx: 10,
|
|
1469
|
+
ry: 10,
|
|
1470
|
+
look: E
|
|
1471
|
+
};
|
|
1472
|
+
if (j.shape === SHAPE_DIVIDER && (j.label = ""), e && e.id !== "root" && (log.trace("Setting node ", A, " to be child of its parent ", e.id), j.parentId = e.id), j.centerLabel = !0, b.note) {
|
|
1473
|
+
let e = {
|
|
1474
|
+
labelStyle: "",
|
|
1475
|
+
shape: SHAPE_NOTE,
|
|
1476
|
+
label: b.note.text,
|
|
1477
|
+
cssClasses: CSS_DIAGRAM_NOTE,
|
|
1478
|
+
cssStyles: [],
|
|
1479
|
+
cssCompiledStyles: [],
|
|
1480
|
+
id: A + NOTE_ID + "-" + graphItemCount,
|
|
1481
|
+
domId: stateDomId(A, graphItemCount, NOTE),
|
|
1482
|
+
type: O.type,
|
|
1483
|
+
isGroup: O.type === "group",
|
|
1484
|
+
padding: P.flowchart?.padding,
|
|
1485
|
+
look: E,
|
|
1486
|
+
position: b.note.position
|
|
1487
|
+
}, x = A + PARENT_ID, S = {
|
|
1488
|
+
labelStyle: "",
|
|
1489
|
+
shape: SHAPE_NOTEGROUP,
|
|
1490
|
+
label: b.note.text,
|
|
1491
|
+
cssClasses: O.cssClasses,
|
|
1492
|
+
cssStyles: [],
|
|
1493
|
+
id: A + PARENT_ID,
|
|
1494
|
+
domId: stateDomId(A, graphItemCount, PARENT),
|
|
1495
|
+
type: "group",
|
|
1496
|
+
isGroup: !0,
|
|
1497
|
+
padding: 16,
|
|
1498
|
+
look: E,
|
|
1499
|
+
position: b.note.position
|
|
1500
|
+
};
|
|
1501
|
+
graphItemCount++, S.id = x, e.parentId = x, insertOrUpdateNode(C, S, D), insertOrUpdateNode(C, e, D), insertOrUpdateNode(C, j, D);
|
|
1502
|
+
let T = A, k = e.id;
|
|
1503
|
+
b.note.position === "left of" && (T = e.id, k = A), w.push({
|
|
1504
|
+
id: T + "-" + k,
|
|
1505
|
+
start: T,
|
|
1506
|
+
end: k,
|
|
1507
|
+
arrowhead: "none",
|
|
1508
|
+
arrowTypeEnd: "",
|
|
1509
|
+
style: G_EDGE_STYLE,
|
|
1510
|
+
labelStyle: "",
|
|
1511
|
+
classes: CSS_EDGE_NOTE_EDGE,
|
|
1512
|
+
arrowheadStyle: G_EDGE_ARROWHEADSTYLE,
|
|
1513
|
+
labelpos: G_EDGE_LABELPOS,
|
|
1514
|
+
labelType: G_EDGE_LABELTYPE,
|
|
1515
|
+
thickness: G_EDGE_THICKNESS,
|
|
1516
|
+
look: E
|
|
1517
|
+
});
|
|
1518
|
+
} else insertOrUpdateNode(C, j, D);
|
|
1519
|
+
}
|
|
1520
|
+
b.doc && (log.trace("Adding nodes children "), setupDoc(b, b.doc, S, C, w, !T, E, D));
|
|
1521
|
+
}, "dataFetcher"), reset = /* @__PURE__ */ __name(() => {
|
|
1522
|
+
nodeDb.clear(), graphItemCount = 0;
|
|
1523
|
+
}, "reset"), CONSTANTS = {
|
|
1524
|
+
START_NODE: "[*]",
|
|
1525
|
+
START_TYPE: "start",
|
|
1526
|
+
END_NODE: "[*]",
|
|
1527
|
+
END_TYPE: "end",
|
|
1528
|
+
COLOR_KEYWORD: "color",
|
|
1529
|
+
FILL_KEYWORD: "fill",
|
|
1530
|
+
BG_FILL: "bgFill",
|
|
1531
|
+
STYLECLASS_SEP: ","
|
|
1532
|
+
}, newClassesList = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Map(), "newClassesList"), newDoc = /* @__PURE__ */ __name(() => ({
|
|
1533
|
+
relations: [],
|
|
1534
|
+
states: /* @__PURE__ */ new Map(),
|
|
1535
|
+
documents: {}
|
|
1536
|
+
}), "newDoc"), clone = /* @__PURE__ */ __name((e) => JSON.parse(JSON.stringify(e)), "clone"), StateDB = class {
|
|
1537
|
+
constructor(e) {
|
|
1538
|
+
this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = newClassesList(), this.documents = { root: newDoc() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = getAccTitle, this.setAccTitle = setAccTitle, this.getAccDescription = getAccDescription, this.setAccDescription = setAccDescription, this.setDiagramTitle = setDiagramTitle, this.getDiagramTitle = getDiagramTitle, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
|
|
1539
|
+
}
|
|
1540
|
+
static #e = __name(this, "StateDB");
|
|
1541
|
+
static #t = this.relationType = {
|
|
1542
|
+
AGGREGATION: 0,
|
|
1543
|
+
EXTENSION: 1,
|
|
1544
|
+
COMPOSITION: 2,
|
|
1545
|
+
DEPENDENCY: 3
|
|
1546
|
+
};
|
|
1547
|
+
extract(e) {
|
|
1548
|
+
this.clear(!0);
|
|
1549
|
+
for (let b of Array.isArray(e) ? e : e.doc) switch (b.stmt) {
|
|
1550
|
+
case STMT_STATE:
|
|
1551
|
+
this.addState(b.id.trim(), b.type, b.doc, b.description, b.note);
|
|
1552
|
+
break;
|
|
1553
|
+
case STMT_RELATION:
|
|
1554
|
+
this.addRelation(b.state1, b.state2, b.description);
|
|
1555
|
+
break;
|
|
1556
|
+
case STMT_CLASSDEF:
|
|
1557
|
+
this.addStyleClass(b.id.trim(), b.classes);
|
|
1558
|
+
break;
|
|
1559
|
+
case STMT_STYLEDEF:
|
|
1560
|
+
this.handleStyleDef(b);
|
|
1561
|
+
break;
|
|
1562
|
+
case STMT_APPLYCLASS:
|
|
1563
|
+
this.setCssClass(b.id.trim(), b.styleClass);
|
|
1564
|
+
break;
|
|
1565
|
+
case "click":
|
|
1566
|
+
this.addLink(b.id, b.url, b.tooltip);
|
|
1567
|
+
break;
|
|
1568
|
+
}
|
|
1569
|
+
let b = this.getStates(), x = getConfig2();
|
|
1570
|
+
reset(), dataFetcher(void 0, this.getRootDocV2(), b, this.nodes, this.edges, !0, x.look, this.classes);
|
|
1571
|
+
for (let e of this.nodes) if (Array.isArray(e.label)) {
|
|
1572
|
+
if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
|
|
1573
|
+
e.label = e.label[0];
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
handleStyleDef(e) {
|
|
1577
|
+
let b = e.id.trim().split(","), x = e.styleClass.split(",");
|
|
1578
|
+
for (let e of b) {
|
|
1579
|
+
let b = this.getState(e);
|
|
1580
|
+
if (!b) {
|
|
1581
|
+
let x = e.trim();
|
|
1582
|
+
this.addState(x), b = this.getState(x);
|
|
1583
|
+
}
|
|
1584
|
+
b && (b.styles = x.map((e) => e.replace(/;/g, "")?.trim()));
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
setRootDoc(e) {
|
|
1588
|
+
log.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
|
|
1589
|
+
}
|
|
1590
|
+
docTranslator(e, x, S) {
|
|
1591
|
+
if (x.stmt === STMT_RELATION) {
|
|
1592
|
+
this.docTranslator(e, x.state1, !0), this.docTranslator(e, x.state2, !1);
|
|
1593
|
+
return;
|
|
1594
|
+
}
|
|
1595
|
+
if (x.stmt === STMT_STATE && (x.id === CONSTANTS.START_NODE ? (x.id = e.id + (S ? "_start" : "_end"), x.start = S) : x.id = x.id.trim()), x.stmt !== STMT_ROOT && x.stmt !== STMT_STATE || !x.doc) return;
|
|
1596
|
+
let C = [], w = [];
|
|
1597
|
+
for (let e of x.doc) if (e.type === DIVIDER_TYPE) {
|
|
1598
|
+
let b = clone(e);
|
|
1599
|
+
b.doc = clone(w), C.push(b), w = [];
|
|
1600
|
+
} else w.push(e);
|
|
1601
|
+
if (C.length > 0 && w.length > 0) {
|
|
1602
|
+
let e = {
|
|
1603
|
+
stmt: STMT_STATE,
|
|
1604
|
+
id: generateId(),
|
|
1605
|
+
type: "divider",
|
|
1606
|
+
doc: clone(w)
|
|
1607
|
+
};
|
|
1608
|
+
C.push(clone(e)), x.doc = C;
|
|
1609
|
+
}
|
|
1610
|
+
x.doc.forEach((e) => this.docTranslator(x, e, !0));
|
|
1611
|
+
}
|
|
1612
|
+
getRootDocV2() {
|
|
1613
|
+
return this.docTranslator({
|
|
1614
|
+
id: STMT_ROOT,
|
|
1615
|
+
stmt: STMT_ROOT
|
|
1616
|
+
}, {
|
|
1617
|
+
id: STMT_ROOT,
|
|
1618
|
+
stmt: STMT_ROOT,
|
|
1619
|
+
doc: this.rootDoc
|
|
1620
|
+
}, !0), {
|
|
1621
|
+
id: STMT_ROOT,
|
|
1622
|
+
doc: this.rootDoc
|
|
1623
|
+
};
|
|
1624
|
+
}
|
|
1625
|
+
addState(e, b = DEFAULT_STATE_TYPE, S = void 0, C = void 0, w = void 0, T = void 0, E = void 0, D = void 0) {
|
|
1626
|
+
let A = e?.trim();
|
|
1627
|
+
if (!this.currentDocument.states.has(A)) log.info("Adding state ", A, C), this.currentDocument.states.set(A, {
|
|
1628
|
+
stmt: STMT_STATE,
|
|
1629
|
+
id: A,
|
|
1630
|
+
descriptions: [],
|
|
1631
|
+
type: b,
|
|
1632
|
+
doc: S,
|
|
1633
|
+
note: w,
|
|
1634
|
+
classes: [],
|
|
1635
|
+
styles: [],
|
|
1636
|
+
textStyles: []
|
|
1637
|
+
});
|
|
1638
|
+
else {
|
|
1639
|
+
let e = this.currentDocument.states.get(A);
|
|
1640
|
+
if (!e) throw Error(`State not found: ${A}`);
|
|
1641
|
+
e.doc ||= S, e.type ||= b;
|
|
1642
|
+
}
|
|
1643
|
+
if (C && (log.info("Setting state description", A, C), (Array.isArray(C) ? C : [C]).forEach((e) => this.addDescription(A, e.trim()))), w) {
|
|
1644
|
+
let e = this.currentDocument.states.get(A);
|
|
1645
|
+
if (!e) throw Error(`State not found: ${A}`);
|
|
1646
|
+
e.note = w, e.note.text = common_default.sanitizeText(e.note.text, getConfig2());
|
|
1647
|
+
}
|
|
1648
|
+
T && (log.info("Setting state classes", A, T), (Array.isArray(T) ? T : [T]).forEach((e) => this.setCssClass(A, e.trim()))), E && (log.info("Setting state styles", A, E), (Array.isArray(E) ? E : [E]).forEach((e) => this.setStyle(A, e.trim()))), D && (log.info("Setting state styles", A, E), (Array.isArray(D) ? D : [D]).forEach((e) => this.setTextStyle(A, e.trim())));
|
|
1649
|
+
}
|
|
1650
|
+
clear(e) {
|
|
1651
|
+
this.nodes = [], this.edges = [], this.documents = { root: newDoc() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = newClassesList(), e || (this.links = /* @__PURE__ */ new Map(), clear());
|
|
1652
|
+
}
|
|
1653
|
+
getState(e) {
|
|
1654
|
+
return this.currentDocument.states.get(e);
|
|
1655
|
+
}
|
|
1656
|
+
getStates() {
|
|
1657
|
+
return this.currentDocument.states;
|
|
1658
|
+
}
|
|
1659
|
+
logDocuments() {
|
|
1660
|
+
log.info("Documents = ", this.documents);
|
|
1661
|
+
}
|
|
1662
|
+
getRelations() {
|
|
1663
|
+
return this.currentDocument.relations;
|
|
1664
|
+
}
|
|
1665
|
+
addLink(e, b, S) {
|
|
1666
|
+
this.links.set(e, {
|
|
1667
|
+
url: b,
|
|
1668
|
+
tooltip: S
|
|
1669
|
+
}), log.warn("Adding link", e, b, S);
|
|
1670
|
+
}
|
|
1671
|
+
getLinks() {
|
|
1672
|
+
return this.links;
|
|
1673
|
+
}
|
|
1674
|
+
startIdIfNeeded(e = "") {
|
|
1675
|
+
return e === CONSTANTS.START_NODE ? (this.startEndCount++, `${CONSTANTS.START_TYPE}${this.startEndCount}`) : e;
|
|
1676
|
+
}
|
|
1677
|
+
startTypeIfNeeded(e = "", b = DEFAULT_STATE_TYPE) {
|
|
1678
|
+
return e === CONSTANTS.START_NODE ? CONSTANTS.START_TYPE : b;
|
|
1679
|
+
}
|
|
1680
|
+
endIdIfNeeded(e = "") {
|
|
1681
|
+
return e === CONSTANTS.END_NODE ? (this.startEndCount++, `${CONSTANTS.END_TYPE}${this.startEndCount}`) : e;
|
|
1682
|
+
}
|
|
1683
|
+
endTypeIfNeeded(e = "", b = DEFAULT_STATE_TYPE) {
|
|
1684
|
+
return e === CONSTANTS.END_NODE ? CONSTANTS.END_TYPE : b;
|
|
1685
|
+
}
|
|
1686
|
+
addRelationObjs(e, b, x = "") {
|
|
1687
|
+
let S = this.startIdIfNeeded(e.id.trim()), C = this.startTypeIfNeeded(e.id.trim(), e.type), w = this.startIdIfNeeded(b.id.trim()), T = this.startTypeIfNeeded(b.id.trim(), b.type);
|
|
1688
|
+
this.addState(S, C, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(w, T, b.doc, b.description, b.note, b.classes, b.styles, b.textStyles), this.currentDocument.relations.push({
|
|
1689
|
+
id1: S,
|
|
1690
|
+
id2: w,
|
|
1691
|
+
relationTitle: common_default.sanitizeText(x, getConfig2())
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
addRelation(e, b, x) {
|
|
1695
|
+
if (typeof e == "object" && typeof b == "object") this.addRelationObjs(e, b, x);
|
|
1696
|
+
else if (typeof e == "string" && typeof b == "string") {
|
|
1697
|
+
let S = this.startIdIfNeeded(e.trim()), C = this.startTypeIfNeeded(e), w = this.endIdIfNeeded(b.trim()), T = this.endTypeIfNeeded(b);
|
|
1698
|
+
this.addState(S, C), this.addState(w, T), this.currentDocument.relations.push({
|
|
1699
|
+
id1: S,
|
|
1700
|
+
id2: w,
|
|
1701
|
+
relationTitle: x ? common_default.sanitizeText(x, getConfig2()) : void 0
|
|
1702
|
+
});
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
addDescription(e, b) {
|
|
1706
|
+
let x = this.currentDocument.states.get(e), S = b.startsWith(":") ? b.replace(":", "").trim() : b;
|
|
1707
|
+
x?.descriptions?.push(common_default.sanitizeText(S, getConfig2()));
|
|
1708
|
+
}
|
|
1709
|
+
cleanupLabel(e) {
|
|
1710
|
+
return e.startsWith(":") ? e.slice(2).trim() : e.trim();
|
|
1711
|
+
}
|
|
1712
|
+
getDividerId() {
|
|
1713
|
+
return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
|
|
1714
|
+
}
|
|
1715
|
+
addStyleClass(e, b = "") {
|
|
1716
|
+
this.classes.has(e) || this.classes.set(e, {
|
|
1717
|
+
id: e,
|
|
1718
|
+
styles: [],
|
|
1719
|
+
textStyles: []
|
|
1720
|
+
});
|
|
1721
|
+
let x = this.classes.get(e);
|
|
1722
|
+
b && x && b.split(CONSTANTS.STYLECLASS_SEP).forEach((e) => {
|
|
1723
|
+
let b = e.replace(/([^;]*);/, "$1").trim();
|
|
1724
|
+
if (RegExp(CONSTANTS.COLOR_KEYWORD).exec(e)) {
|
|
1725
|
+
let e = b.replace(CONSTANTS.FILL_KEYWORD, CONSTANTS.BG_FILL).replace(CONSTANTS.COLOR_KEYWORD, CONSTANTS.FILL_KEYWORD);
|
|
1726
|
+
x.textStyles.push(e);
|
|
1727
|
+
}
|
|
1728
|
+
x.styles.push(b);
|
|
1729
|
+
});
|
|
1730
|
+
}
|
|
1731
|
+
getClasses() {
|
|
1732
|
+
return this.classes;
|
|
1733
|
+
}
|
|
1734
|
+
setCssClass(e, b) {
|
|
1735
|
+
e.split(",").forEach((e) => {
|
|
1736
|
+
let x = this.getState(e);
|
|
1737
|
+
if (!x) {
|
|
1738
|
+
let b = e.trim();
|
|
1739
|
+
this.addState(b), x = this.getState(b);
|
|
1740
|
+
}
|
|
1741
|
+
x?.classes?.push(b);
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
setStyle(e, b) {
|
|
1745
|
+
this.getState(e)?.styles?.push(b);
|
|
1746
|
+
}
|
|
1747
|
+
setTextStyle(e, b) {
|
|
1748
|
+
this.getState(e)?.textStyles?.push(b);
|
|
1749
|
+
}
|
|
1750
|
+
getDirectionStatement() {
|
|
1751
|
+
return this.rootDoc.find((e) => e.stmt === STMT_DIRECTION);
|
|
1752
|
+
}
|
|
1753
|
+
getDirection() {
|
|
1754
|
+
return this.getDirectionStatement()?.value ?? DEFAULT_DIAGRAM_DIRECTION;
|
|
1755
|
+
}
|
|
1756
|
+
setDirection(e) {
|
|
1757
|
+
let b = this.getDirectionStatement();
|
|
1758
|
+
b ? b.value = e : this.rootDoc.unshift({
|
|
1759
|
+
stmt: STMT_DIRECTION,
|
|
1760
|
+
value: e
|
|
1761
|
+
});
|
|
1762
|
+
}
|
|
1763
|
+
trimColon(e) {
|
|
1764
|
+
return e.startsWith(":") ? e.slice(1).trim() : e.trim();
|
|
1765
|
+
}
|
|
1766
|
+
getData() {
|
|
1767
|
+
let e = getConfig2();
|
|
1768
|
+
return {
|
|
1769
|
+
nodes: this.nodes,
|
|
1770
|
+
edges: this.edges,
|
|
1771
|
+
other: {},
|
|
1772
|
+
config: e,
|
|
1773
|
+
direction: getDir(this.getRootDocV2())
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
getConfig() {
|
|
1777
|
+
return getConfig2().state;
|
|
1778
|
+
}
|
|
1779
|
+
}, styles_default = /* @__PURE__ */ __name((e) => `
|
|
1780
|
+
defs #statediagram-barbEnd {
|
|
1781
|
+
fill: ${e.transitionColor};
|
|
1782
|
+
stroke: ${e.transitionColor};
|
|
1783
|
+
}
|
|
1784
|
+
g.stateGroup text {
|
|
1785
|
+
fill: ${e.nodeBorder};
|
|
1786
|
+
stroke: none;
|
|
1787
|
+
font-size: 10px;
|
|
1788
|
+
}
|
|
1789
|
+
g.stateGroup text {
|
|
1790
|
+
fill: ${e.textColor};
|
|
1791
|
+
stroke: none;
|
|
1792
|
+
font-size: 10px;
|
|
1793
|
+
|
|
1794
|
+
}
|
|
1795
|
+
g.stateGroup .state-title {
|
|
1796
|
+
font-weight: bolder;
|
|
1797
|
+
fill: ${e.stateLabelColor};
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
g.stateGroup rect {
|
|
1801
|
+
fill: ${e.mainBkg};
|
|
1802
|
+
stroke: ${e.nodeBorder};
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
g.stateGroup line {
|
|
1806
|
+
stroke: ${e.lineColor};
|
|
1807
|
+
stroke-width: 1;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.transition {
|
|
1811
|
+
stroke: ${e.transitionColor};
|
|
1812
|
+
stroke-width: 1;
|
|
1813
|
+
fill: none;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
.stateGroup .composit {
|
|
1817
|
+
fill: ${e.background};
|
|
1818
|
+
border-bottom: 1px
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
.stateGroup .alt-composit {
|
|
1822
|
+
fill: #e0e0e0;
|
|
1823
|
+
border-bottom: 1px
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
.state-note {
|
|
1827
|
+
stroke: ${e.noteBorderColor};
|
|
1828
|
+
fill: ${e.noteBkgColor};
|
|
1829
|
+
|
|
1830
|
+
text {
|
|
1831
|
+
fill: ${e.noteTextColor};
|
|
1832
|
+
stroke: none;
|
|
1833
|
+
font-size: 10px;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
.stateLabel .box {
|
|
1838
|
+
stroke: none;
|
|
1839
|
+
stroke-width: 0;
|
|
1840
|
+
fill: ${e.mainBkg};
|
|
1841
|
+
opacity: 0.5;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.edgeLabel .label rect {
|
|
1845
|
+
fill: ${e.labelBackgroundColor};
|
|
1846
|
+
opacity: 0.5;
|
|
1847
|
+
}
|
|
1848
|
+
.edgeLabel {
|
|
1849
|
+
background-color: ${e.edgeLabelBackground};
|
|
1850
|
+
p {
|
|
1851
|
+
background-color: ${e.edgeLabelBackground};
|
|
1852
|
+
}
|
|
1853
|
+
rect {
|
|
1854
|
+
opacity: 0.5;
|
|
1855
|
+
background-color: ${e.edgeLabelBackground};
|
|
1856
|
+
fill: ${e.edgeLabelBackground};
|
|
1857
|
+
}
|
|
1858
|
+
text-align: center;
|
|
1859
|
+
}
|
|
1860
|
+
.edgeLabel .label text {
|
|
1861
|
+
fill: ${e.transitionLabelColor || e.tertiaryTextColor};
|
|
1862
|
+
}
|
|
1863
|
+
.label div .edgeLabel {
|
|
1864
|
+
color: ${e.transitionLabelColor || e.tertiaryTextColor};
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
.stateLabel text {
|
|
1868
|
+
fill: ${e.stateLabelColor};
|
|
1869
|
+
font-size: 10px;
|
|
1870
|
+
font-weight: bold;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
.node circle.state-start {
|
|
1874
|
+
fill: ${e.specialStateColor};
|
|
1875
|
+
stroke: ${e.specialStateColor};
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
.node .fork-join {
|
|
1879
|
+
fill: ${e.specialStateColor};
|
|
1880
|
+
stroke: ${e.specialStateColor};
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
.node circle.state-end {
|
|
1884
|
+
fill: ${e.innerEndBackground};
|
|
1885
|
+
stroke: ${e.background};
|
|
1886
|
+
stroke-width: 1.5
|
|
1887
|
+
}
|
|
1888
|
+
.end-state-inner {
|
|
1889
|
+
fill: ${e.compositeBackground || e.background};
|
|
1890
|
+
// stroke: ${e.background};
|
|
1891
|
+
stroke-width: 1.5
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
.node rect {
|
|
1895
|
+
fill: ${e.stateBkg || e.mainBkg};
|
|
1896
|
+
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1897
|
+
stroke-width: 1px;
|
|
1898
|
+
}
|
|
1899
|
+
.node polygon {
|
|
1900
|
+
fill: ${e.mainBkg};
|
|
1901
|
+
stroke: ${e.stateBorder || e.nodeBorder};;
|
|
1902
|
+
stroke-width: 1px;
|
|
1903
|
+
}
|
|
1904
|
+
#statediagram-barbEnd {
|
|
1905
|
+
fill: ${e.lineColor};
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
.statediagram-cluster rect {
|
|
1909
|
+
fill: ${e.compositeTitleBackground};
|
|
1910
|
+
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1911
|
+
stroke-width: 1px;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
.cluster-label, .nodeLabel {
|
|
1915
|
+
color: ${e.stateLabelColor};
|
|
1916
|
+
// line-height: 1;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
.statediagram-cluster rect.outer {
|
|
1920
|
+
rx: 5px;
|
|
1921
|
+
ry: 5px;
|
|
1922
|
+
}
|
|
1923
|
+
.statediagram-state .divider {
|
|
1924
|
+
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
.statediagram-state .title-state {
|
|
1928
|
+
rx: 5px;
|
|
1929
|
+
ry: 5px;
|
|
1930
|
+
}
|
|
1931
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
1932
|
+
fill: ${e.compositeBackground || e.background};
|
|
1933
|
+
}
|
|
1934
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
1935
|
+
fill: ${e.altBackground ? e.altBackground : "#efefef"};
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
.statediagram-cluster .inner {
|
|
1939
|
+
rx:0;
|
|
1940
|
+
ry:0;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
.statediagram-state rect.basic {
|
|
1944
|
+
rx: 5px;
|
|
1945
|
+
ry: 5px;
|
|
1946
|
+
}
|
|
1947
|
+
.statediagram-state rect.divider {
|
|
1948
|
+
stroke-dasharray: 10,10;
|
|
1949
|
+
fill: ${e.altBackground ? e.altBackground : "#efefef"};
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
.note-edge {
|
|
1953
|
+
stroke-dasharray: 5;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
.statediagram-note rect {
|
|
1957
|
+
fill: ${e.noteBkgColor};
|
|
1958
|
+
stroke: ${e.noteBorderColor};
|
|
1959
|
+
stroke-width: 1px;
|
|
1960
|
+
rx: 0;
|
|
1961
|
+
ry: 0;
|
|
1962
|
+
}
|
|
1963
|
+
.statediagram-note rect {
|
|
1964
|
+
fill: ${e.noteBkgColor};
|
|
1965
|
+
stroke: ${e.noteBorderColor};
|
|
1966
|
+
stroke-width: 1px;
|
|
1967
|
+
rx: 0;
|
|
1968
|
+
ry: 0;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
.statediagram-note text {
|
|
1972
|
+
fill: ${e.noteTextColor};
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
.statediagram-note .nodeLabel {
|
|
1976
|
+
color: ${e.noteTextColor};
|
|
1977
|
+
}
|
|
1978
|
+
.statediagram .edgeLabel {
|
|
1979
|
+
color: red; // ${e.noteTextColor};
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
#dependencyStart, #dependencyEnd {
|
|
1983
|
+
fill: ${e.lineColor};
|
|
1984
|
+
stroke: ${e.lineColor};
|
|
1985
|
+
stroke-width: 1;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
.statediagramTitleText {
|
|
1989
|
+
text-anchor: middle;
|
|
1990
|
+
font-size: 18px;
|
|
1991
|
+
fill: ${e.textColor};
|
|
1992
|
+
}
|
|
1993
|
+
`, "getStyles");
|
|
1994
|
+
export { styles_default as i, stateDiagram_default as n, stateRenderer_v3_unified_default as r, StateDB as t };
|