Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
feat: support mermaid display
Li Xianggangdb21694dd50b
diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex 2d41d6926..fcf04f07e 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -15,6 +15,7 @@"dompurify": "^3.2.6","highlight.js": "^11.11.1","marked": "^5.1.2",+ "mermaid": "^11.4.1","pagefind": "^1.1.1","papaparse": "^5.5.3","pinia": "^3.0.1",@@ -56,6 +57,19 @@"node": ">=6.0.0"}},+ "node_modules/@antfu/install-pkg": {+ "version": "1.1.0",+ "resolved": "https://registry.npmmirror.com/@antfu/install-pkg/-/install-pkg-1.1.0.tgz",+ "integrity": "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==",+ "license": "MIT",+ "dependencies": {+ "package-manager-detector": "^1.3.0",+ "tinyexec": "^1.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },"node_modules/@babel/code-frame": {"version": "7.27.1","resolved": "https://mirrors.tencent.com/npm/@babel/code-frame/-/code-frame-7.27.1.tgz",@@ -84,6 +98,7 @@"resolved": "https://mirrors.tencent.com/npm/@babel/core/-/core-7.28.0.tgz","integrity": "sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==","dev": true,+ "peer": true,"dependencies": {"@ampproject/remapping": "^2.2.0","@babel/code-frame": "^7.27.1",@@ -440,6 +455,51 @@"node": ">=6.9.0"}},+ "node_modules/@braintree/sanitize-url": {+ "version": "7.1.2",+ "resolved": "https://registry.npmmirror.com/@braintree/sanitize-url/-/sanitize-url-7.1.2.tgz",+ "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==",+ "license": "MIT"+ },+ "node_modules/@chevrotain/cst-dts-gen": {+ "version": "11.1.2",+ "resolved": "https://registry.npmmirror.com/@chevrotain/cst-dts-gen/-/cst-dts-gen-11.1.2.tgz",+ "integrity": "sha512-XTsjvDVB5nDZBQB8o0o/0ozNelQtn2KrUVteIHSlPd2VAV2utEb6JzyCJaJ8tGxACR4RiBNWy5uYUHX2eji88Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@chevrotain/gast": "11.1.2",+ "@chevrotain/types": "11.1.2",+ "lodash-es": "4.17.23"+ }+ },+ "node_modules/@chevrotain/gast": {+ "version": "11.1.2",+ "resolved": "https://registry.npmmirror.com/@chevrotain/gast/-/gast-11.1.2.tgz",+ "integrity": "sha512-Z9zfXR5jNZb1Hlsd/p+4XWeUFugrHirq36bKzPWDSIacV+GPSVXdk+ahVWZTwjhNwofAWg/sZg58fyucKSQx5g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@chevrotain/types": "11.1.2",+ "lodash-es": "4.17.23"+ }+ },+ "node_modules/@chevrotain/regexp-to-ast": {+ "version": "11.1.2",+ "resolved": "https://registry.npmmirror.com/@chevrotain/regexp-to-ast/-/regexp-to-ast-11.1.2.tgz",+ "integrity": "sha512-nMU3Uj8naWer7xpZTYJdxbAs6RIv/dxYzkYU8GSwgUtcAAlzjcPfX1w+RKRcYG8POlzMeayOQ/znfwxEGo5ulw==",+ "license": "Apache-2.0"+ },+ "node_modules/@chevrotain/types": {+ "version": "11.1.2",+ "resolved": "https://registry.npmmirror.com/@chevrotain/types/-/types-11.1.2.tgz",+ "integrity": "sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==",+ "license": "Apache-2.0"+ },+ "node_modules/@chevrotain/utils": {+ "version": "11.1.2",+ "resolved": "https://registry.npmmirror.com/@chevrotain/utils/-/utils-11.1.2.tgz",+ "integrity": "sha512-4mudFAQ6H+MqBTfqLmU7G1ZwRzCLfJEooL/fsF6rCX5eePMbGhoy5n4g+G4vlh2muDcsCTJtL+uKbOzWxs5LHA==",+ "license": "Apache-2.0"+ },"node_modules/@esbuild/aix-ppc64": {"version": "0.25.6","resolved": "https://mirrors.tencent.com/npm/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz",@@ -876,6 +936,23 @@"node": ">=18"}},+ "node_modules/@iconify/types": {+ "version": "2.0.0",+ "resolved": "https://registry.npmmirror.com/@iconify/types/-/types-2.0.0.tgz",+ "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==",+ "license": "MIT"+ },+ "node_modules/@iconify/utils": {+ "version": "3.1.0",+ "resolved": "https://registry.npmmirror.com/@iconify/utils/-/utils-3.1.0.tgz",+ "integrity": "sha512-Zlzem1ZXhI1iHeeERabLNzBHdOa4VhQbqAcOQaMKuTuyZCpwKbC2R4Dd0Zo3g9EAc+Y4fiarO8HIHRAth7+skw==",+ "license": "MIT",+ "dependencies": {+ "@antfu/install-pkg": "^1.1.0",+ "@iconify/types": "^2.0.0",+ "mlly": "^1.8.0"+ }+ },"node_modules/@intlify/core-base": {"version": "11.1.12","resolved": "https://mirrors.tencent.com/npm/@intlify/core-base/-/core-base-11.1.12.tgz",@@ -962,6 +1039,15 @@"@jridgewell/sourcemap-codec": "^1.4.14"}},+ "node_modules/@mermaid-js/parser": {+ "version": "1.0.0",+ "resolved": "https://registry.npmmirror.com/@mermaid-js/parser/-/parser-1.0.0.tgz",+ "integrity": "sha512-vvK0Hi/VWndxoh03Mmz6wa1KDriSPjS2XMZL/1l19HFwygiObEEoEwSDxOqyLzzAI6J2PU3261JjTMTO7x+BPw==",+ "license": "MIT",+ "dependencies": {+ "langium": "^4.0.0"+ }+ },"node_modules/@microsoft/fetch-event-source": {"version": "2.0.1","resolved": "https://mirrors.tencent.com/npm/@microsoft/fetch-event-source/-/fetch-event-source-2.0.1.tgz",@@ -1327,6 +1413,259 @@"dev": true,"license": "MIT"},+ "node_modules/@types/d3": {+ "version": "7.4.3",+ "resolved": "https://registry.npmmirror.com/@types/d3/-/d3-7.4.3.tgz",+ "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-array": "*",+ "@types/d3-axis": "*",+ "@types/d3-brush": "*",+ "@types/d3-chord": "*",+ "@types/d3-color": "*",+ "@types/d3-contour": "*",+ "@types/d3-delaunay": "*",+ "@types/d3-dispatch": "*",+ "@types/d3-drag": "*",+ "@types/d3-dsv": "*",+ "@types/d3-ease": "*",+ "@types/d3-fetch": "*",+ "@types/d3-force": "*",+ "@types/d3-format": "*",+ "@types/d3-geo": "*",+ "@types/d3-hierarchy": "*",+ "@types/d3-interpolate": "*",+ "@types/d3-path": "*",+ "@types/d3-polygon": "*",+ "@types/d3-quadtree": "*",+ "@types/d3-random": "*",+ "@types/d3-scale": "*",+ "@types/d3-scale-chromatic": "*",+ "@types/d3-selection": "*",+ "@types/d3-shape": "*",+ "@types/d3-time": "*",+ "@types/d3-time-format": "*",+ "@types/d3-timer": "*",+ "@types/d3-transition": "*",+ "@types/d3-zoom": "*"+ }+ },+ "node_modules/@types/d3-array": {+ "version": "3.2.2",+ "resolved": "https://registry.npmmirror.com/@types/d3-array/-/d3-array-3.2.2.tgz",+ "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==",+ "license": "MIT"+ },+ "node_modules/@types/d3-axis": {+ "version": "3.0.6",+ "resolved": "https://registry.npmmirror.com/@types/d3-axis/-/d3-axis-3.0.6.tgz",+ "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-selection": "*"+ }+ },+ "node_modules/@types/d3-brush": {+ "version": "3.0.6",+ "resolved": "https://registry.npmmirror.com/@types/d3-brush/-/d3-brush-3.0.6.tgz",+ "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-selection": "*"+ }+ },+ "node_modules/@types/d3-chord": {+ "version": "3.0.6",+ "resolved": "https://registry.npmmirror.com/@types/d3-chord/-/d3-chord-3.0.6.tgz",+ "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==",+ "license": "MIT"+ },+ "node_modules/@types/d3-color": {+ "version": "3.1.3",+ "resolved": "https://registry.npmmirror.com/@types/d3-color/-/d3-color-3.1.3.tgz",+ "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==",+ "license": "MIT"+ },+ "node_modules/@types/d3-contour": {+ "version": "3.0.6",+ "resolved": "https://registry.npmmirror.com/@types/d3-contour/-/d3-contour-3.0.6.tgz",+ "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-array": "*",+ "@types/geojson": "*"+ }+ },+ "node_modules/@types/d3-delaunay": {+ "version": "6.0.4",+ "resolved": "https://registry.npmmirror.com/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz",+ "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==",+ "license": "MIT"+ },+ "node_modules/@types/d3-dispatch": {+ "version": "3.0.7",+ "resolved": "https://registry.npmmirror.com/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz",+ "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==",+ "license": "MIT"+ },+ "node_modules/@types/d3-drag": {+ "version": "3.0.7",+ "resolved": "https://registry.npmmirror.com/@types/d3-drag/-/d3-drag-3.0.7.tgz",+ "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-selection": "*"+ }+ },+ "node_modules/@types/d3-dsv": {+ "version": "3.0.7",+ "resolved": "https://registry.npmmirror.com/@types/d3-dsv/-/d3-dsv-3.0.7.tgz",+ "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==",+ "license": "MIT"+ },+ "node_modules/@types/d3-ease": {+ "version": "3.0.2",+ "resolved": "https://registry.npmmirror.com/@types/d3-ease/-/d3-ease-3.0.2.tgz",+ "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==",+ "license": "MIT"+ },+ "node_modules/@types/d3-fetch": {+ "version": "3.0.7",+ "resolved": "https://registry.npmmirror.com/@types/d3-fetch/-/d3-fetch-3.0.7.tgz",+ "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-dsv": "*"+ }+ },+ "node_modules/@types/d3-force": {+ "version": "3.0.10",+ "resolved": "https://registry.npmmirror.com/@types/d3-force/-/d3-force-3.0.10.tgz",+ "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==",+ "license": "MIT"+ },+ "node_modules/@types/d3-format": {+ "version": "3.0.4",+ "resolved": "https://registry.npmmirror.com/@types/d3-format/-/d3-format-3.0.4.tgz",+ "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==",+ "license": "MIT"+ },+ "node_modules/@types/d3-geo": {+ "version": "3.1.0",+ "resolved": "https://registry.npmmirror.com/@types/d3-geo/-/d3-geo-3.1.0.tgz",+ "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==",+ "license": "MIT",+ "dependencies": {+ "@types/geojson": "*"+ }+ },+ "node_modules/@types/d3-hierarchy": {+ "version": "3.1.7",+ "resolved": "https://registry.npmmirror.com/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz",+ "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==",+ "license": "MIT"+ },+ "node_modules/@types/d3-interpolate": {+ "version": "3.0.4",+ "resolved": "https://registry.npmmirror.com/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz",+ "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-color": "*"+ }+ },+ "node_modules/@types/d3-path": {+ "version": "3.1.1",+ "resolved": "https://registry.npmmirror.com/@types/d3-path/-/d3-path-3.1.1.tgz",+ "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==",+ "license": "MIT"+ },+ "node_modules/@types/d3-polygon": {+ "version": "3.0.2",+ "resolved": "https://registry.npmmirror.com/@types/d3-polygon/-/d3-polygon-3.0.2.tgz",+ "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==",+ "license": "MIT"+ },+ "node_modules/@types/d3-quadtree": {+ "version": "3.0.6",+ "resolved": "https://registry.npmmirror.com/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz",+ "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==",+ "license": "MIT"+ },+ "node_modules/@types/d3-random": {+ "version": "3.0.3",+ "resolved": "https://registry.npmmirror.com/@types/d3-random/-/d3-random-3.0.3.tgz",+ "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==",+ "license": "MIT"+ },+ "node_modules/@types/d3-scale": {+ "version": "4.0.9",+ "resolved": "https://registry.npmmirror.com/@types/d3-scale/-/d3-scale-4.0.9.tgz",+ "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-time": "*"+ }+ },+ "node_modules/@types/d3-scale-chromatic": {+ "version": "3.1.0",+ "resolved": "https://registry.npmmirror.com/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",+ "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==",+ "license": "MIT"+ },+ "node_modules/@types/d3-selection": {+ "version": "3.0.11",+ "resolved": "https://registry.npmmirror.com/@types/d3-selection/-/d3-selection-3.0.11.tgz",+ "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==",+ "license": "MIT"+ },+ "node_modules/@types/d3-shape": {+ "version": "3.1.8",+ "resolved": "https://registry.npmmirror.com/@types/d3-shape/-/d3-shape-3.1.8.tgz",+ "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-path": "*"+ }+ },+ "node_modules/@types/d3-time": {+ "version": "3.0.4",+ "resolved": "https://registry.npmmirror.com/@types/d3-time/-/d3-time-3.0.4.tgz",+ "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==",+ "license": "MIT"+ },+ "node_modules/@types/d3-time-format": {+ "version": "4.0.3",+ "resolved": "https://registry.npmmirror.com/@types/d3-time-format/-/d3-time-format-4.0.3.tgz",+ "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==",+ "license": "MIT"+ },+ "node_modules/@types/d3-timer": {+ "version": "3.0.2",+ "resolved": "https://registry.npmmirror.com/@types/d3-timer/-/d3-timer-3.0.2.tgz",+ "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==",+ "license": "MIT"+ },+ "node_modules/@types/d3-transition": {+ "version": "3.0.9",+ "resolved": "https://registry.npmmirror.com/@types/d3-transition/-/d3-transition-3.0.9.tgz",+ "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-selection": "*"+ }+ },+ "node_modules/@types/d3-zoom": {+ "version": "3.0.8",+ "resolved": "https://registry.npmmirror.com/@types/d3-zoom/-/d3-zoom-3.0.8.tgz",+ "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==",+ "license": "MIT",+ "dependencies": {+ "@types/d3-interpolate": "*",+ "@types/d3-selection": "*"+ }+ },"node_modules/@types/dompurify": {"version": "3.0.5","resolved": "https://mirrors.tencent.com/npm/@types/dompurify/-/dompurify-3.0.5.tgz",@@ -1361,6 +1700,12 @@"resolved": "https://mirrors.tencent.com/npm/@types/estree/-/estree-1.0.8.tgz","integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="},+ "node_modules/@types/geojson": {+ "version": "7946.0.16",+ "resolved": "https://registry.npmmirror.com/@types/geojson/-/geojson-7946.0.16.tgz",+ "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==",+ "license": "MIT"+ },"node_modules/@types/json-schema": {"version": "7.0.15","resolved": "https://mirrors.tencent.com/npm/@types/json-schema/-/json-schema-7.0.15.tgz",@@ -1888,6 +2233,7 @@"version": "8.15.0","resolved": "https://mirrors.tencent.com/npm/acorn/-/acorn-8.15.0.tgz","integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",+ "peer": true,"bin": {"acorn": "bin/acorn"},@@ -1912,6 +2258,7 @@"resolved": "https://mirrors.tencent.com/npm/ajv/-/ajv-8.17.1.tgz","integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==","license": "MIT",+ "peer": true,"dependencies": {"fast-deep-equal": "^3.1.3","fast-uri": "^3.0.1",@@ -2027,6 +2374,7 @@"url": "https://github.com/sponsors/ai"}],+ "peer": true,"dependencies": {"caniuse-lite": "^1.0.30001726","electron-to-chromium": "^1.5.173",@@ -2078,6 +2426,33 @@],"license": "CC-BY-4.0"},+ "node_modules/chevrotain": {+ "version": "11.1.2",+ "resolved": "https://registry.npmmirror.com/chevrotain/-/chevrotain-11.1.2.tgz",+ "integrity": "sha512-opLQzEVriiH1uUQ4Kctsd49bRoFDXGGSC4GUqj7pGyxM3RehRhvTlZJc1FL/Flew2p5uwxa1tUDWKzI4wNM8pg==",+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@chevrotain/cst-dts-gen": "11.1.2",+ "@chevrotain/gast": "11.1.2",+ "@chevrotain/regexp-to-ast": "11.1.2",+ "@chevrotain/types": "11.1.2",+ "@chevrotain/utils": "11.1.2",+ "lodash-es": "4.17.23"+ }+ },+ "node_modules/chevrotain-allstar": {+ "version": "0.3.1",+ "resolved": "https://registry.npmmirror.com/chevrotain-allstar/-/chevrotain-allstar-0.3.1.tgz",+ "integrity": "sha512-b7g+y9A0v4mxCW1qUhf3BSVPg+/NvGErk/dOkrDaHA0nQIQGAtrOjlX//9OQtRlSCy+x9rfB5N8yC71lH1nvMw==",+ "license": "MIT",+ "dependencies": {+ "lodash-es": "^4.17.21"+ },+ "peerDependencies": {+ "chevrotain": "^11.0.0"+ }+ },"node_modules/chrome-trace-event": {"version": "1.0.4","resolved": "https://mirrors.tencent.com/npm/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz",@@ -2104,6 +2479,12 @@"resolved": "https://mirrors.tencent.com/npm/commander/-/commander-2.20.3.tgz","integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="},+ "node_modules/confbox": {+ "version": "0.1.8",+ "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.1.8.tgz",+ "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",+ "license": "MIT"+ },"node_modules/convert-source-map": {"version": "2.0.0","resolved": "https://mirrors.tencent.com/npm/convert-source-map/-/convert-source-map-2.0.0.tgz",@@ -2123,6 +2504,15 @@"url": "https://github.com/sponsors/mesqueeb"}},+ "node_modules/cose-base": {+ "version": "1.0.3",+ "resolved": "https://registry.npmmirror.com/cose-base/-/cose-base-1.0.3.tgz",+ "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==",+ "license": "MIT",+ "dependencies": {+ "layout-base": "^1.0.0"+ }+ },"node_modules/cross-spawn": {"version": "7.0.6","resolved": "https://mirrors.tencent.com/npm/cross-spawn/-/cross-spawn-7.0.6.tgz",@@ -2164,115 +2554,635 @@"resolved": "https://mirrors.tencent.com/npm/csstype/-/csstype-3.1.3.tgz","integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="},- "node_modules/dayjs": {- "version": "1.11.10",- "resolved": "https://mirrors.tencent.com/npm/dayjs/-/dayjs-1.11.10.tgz",- "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="- },- "node_modules/de-indent": {- "version": "1.0.2",- "resolved": "https://mirrors.tencent.com/npm/de-indent/-/de-indent-1.0.2.tgz",- "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==",- "dev": true+ "node_modules/cytoscape": {+ "version": "3.33.1",+ "resolved": "https://registry.npmmirror.com/cytoscape/-/cytoscape-3.33.1.tgz",+ "integrity": "sha512-iJc4TwyANnOGR1OmWhsS9ayRS3s+XQ185FmuHObThD+5AeJCakAAbWv8KimMTt08xCCLNgneQwFp+JRJOr9qGQ==",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.10"+ }},- "node_modules/debug": {- "version": "4.4.1",- "resolved": "https://mirrors.tencent.com/npm/debug/-/debug-4.4.1.tgz",- "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",- "dev": true,+ "node_modules/cytoscape-cose-bilkent": {+ "version": "4.1.0",+ "resolved": "https://registry.npmmirror.com/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz",+ "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==",+ "license": "MIT","dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"+ "cose-base": "^1.0.0"},- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }+ "peerDependencies": {+ "cytoscape": "^3.2.0"}},- "node_modules/delayed-stream": {- "version": "1.0.0",- "resolved": "https://mirrors.tencent.com/npm/delayed-stream/-/delayed-stream-1.0.0.tgz",- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "node_modules/cytoscape-fcose": {+ "version": "2.2.0",+ "resolved": "https://registry.npmmirror.com/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz",+ "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==","license": "MIT",- "engines": {- "node": ">=0.4.0"+ "dependencies": {+ "cose-base": "^2.2.0"+ },+ "peerDependencies": {+ "cytoscape": "^3.2.0"}},- "node_modules/dompurify": {- "version": "3.2.6",- "resolved": "https://mirrors.tencent.com/npm/dompurify/-/dompurify-3.2.6.tgz",- "integrity": "sha512-/2GogDQlohXPZe6D6NOgQvXLPSYBqIWMnZ8zzOhn09REE4eyAzb+Hed3jhoM9OkuaJ8P6ZGTTVWQKAi8ieIzfQ==",- "license": "(MPL-2.0 OR Apache-2.0)",- "optionalDependencies": {- "@types/trusted-types": "^2.0.7"+ "node_modules/cytoscape-fcose/node_modules/cose-base": {+ "version": "2.2.0",+ "resolved": "https://registry.npmmirror.com/cose-base/-/cose-base-2.2.0.tgz",+ "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==",+ "license": "MIT",+ "dependencies": {+ "layout-base": "^2.0.0"}},- "node_modules/dunder-proto": {- "version": "1.0.1",- "resolved": "https://mirrors.tencent.com/npm/dunder-proto/-/dunder-proto-1.0.1.tgz",- "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",- "license": "MIT",+ "node_modules/cytoscape-fcose/node_modules/layout-base": {+ "version": "2.0.1",+ "resolved": "https://registry.npmmirror.com/layout-base/-/layout-base-2.0.1.tgz",+ "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==",+ "license": "MIT"+ },+ "node_modules/d3": {+ "version": "7.9.0",+ "resolved": "https://registry.npmmirror.com/d3/-/d3-7.9.0.tgz",+ "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==",+ "license": "ISC","dependencies": {- "call-bind-apply-helpers": "^1.0.1",- "es-errors": "^1.3.0",- "gopd": "^1.2.0"+ "d3-array": "3",+ "d3-axis": "3",+ "d3-brush": "3",+ "d3-chord": "3",+ "d3-color": "3",+ "d3-contour": "4",+ "d3-delaunay": "6",+ "d3-dispatch": "3",+ "d3-drag": "3",+ "d3-dsv": "3",+ "d3-ease": "3",+ "d3-fetch": "3",+ "d3-force": "3",+ "d3-format": "3",+ "d3-geo": "3",+ "d3-hierarchy": "3",+ "d3-interpolate": "3",+ "d3-path": "3",+ "d3-polygon": "3",+ "d3-quadtree": "3",+ "d3-random": "3",+ "d3-scale": "4",+ "d3-scale-chromatic": "3",+ "d3-selection": "3",+ "d3-shape": "3",+ "d3-time": "3",+ "d3-time-format": "4",+ "d3-timer": "3",+ "d3-transition": "3",+ "d3-zoom": "3"},"engines": {- "node": ">= 0.4"+ "node": ">=12"}},- "node_modules/electron-to-chromium": {- "version": "1.5.183",- "resolved": "https://mirrors.tencent.com/npm/electron-to-chromium/-/electron-to-chromium-1.5.183.tgz",- "integrity": "sha512-vCrDBYjQCAEefWGjlK3EpoSKfKbT10pR4XXPdn65q7snuNOZnthoVpBfZPykmDapOKfoD+MMIPG8ZjKyyc9oHA=="- },- "node_modules/enhanced-resolve": {- "version": "5.18.2",- "resolved": "https://mirrors.tencent.com/npm/enhanced-resolve/-/enhanced-resolve-5.18.2.tgz",- "integrity": "sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ==",+ "node_modules/d3-array": {+ "version": "3.2.4",+ "resolved": "https://registry.npmmirror.com/d3-array/-/d3-array-3.2.4.tgz",+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",+ "license": "ISC","dependencies": {- "graceful-fs": "^4.2.4",- "tapable": "^2.2.0"+ "internmap": "1 - 2"},"engines": {- "node": ">=10.13.0"+ "node": ">=12"}},- "node_modules/entities": {- "version": "4.5.0",- "resolved": "https://mirrors.tencent.com/npm/entities/-/entities-4.5.0.tgz",- "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",- "license": "BSD-2-Clause",+ "node_modules/d3-axis": {+ "version": "3.0.0",+ "resolved": "https://registry.npmmirror.com/d3-axis/-/d3-axis-3.0.0.tgz",+ "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==",+ "license": "ISC","engines": {- "node": ">=0.12"- },- "funding": {- "url": "https://github.com/fb55/entities?sponsor=1"+ "node": ">=12"}},- "node_modules/errno": {- "version": "0.1.8",- "resolved": "https://mirrors.tencent.com/npm/errno/-/errno-0.1.8.tgz",- "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==",- "dev": true,- "optional": true,+ "node_modules/d3-brush": {+ "version": "3.0.0",+ "resolved": "https://registry.npmmirror.com/d3-brush/-/d3-brush-3.0.0.tgz",+ "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==",+ "license": "ISC","dependencies": {- "prr": "~1.0.1"+ "d3-dispatch": "1 - 3",+ "d3-drag": "2 - 3",+ "d3-interpolate": "1 - 3",+ "d3-selection": "3",+ "d3-transition": "3"},- "bin": {- "errno": "cli.js"- }- },- "node_modules/es-define-property": {- "version": "1.0.1",- "resolved": "https://mirrors.tencent.com/npm/es-define-property/-/es-define-property-1.0.1.tgz",- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",- "license": "MIT","engines": {- "node": ">= 0.4"+ "node": ">=12"+ }+ },+ "node_modules/d3-chord": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-chord/-/d3-chord-3.0.1.tgz",+ "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==",+ "license": "ISC",+ "dependencies": {+ "d3-path": "1 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-color": {+ "version": "3.1.0",+ "resolved": "https://registry.npmmirror.com/d3-color/-/d3-color-3.1.0.tgz",+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-contour": {+ "version": "4.0.2",+ "resolved": "https://registry.npmmirror.com/d3-contour/-/d3-contour-4.0.2.tgz",+ "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==",+ "license": "ISC",+ "dependencies": {+ "d3-array": "^3.2.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-delaunay": {+ "version": "6.0.4",+ "resolved": "https://registry.npmmirror.com/d3-delaunay/-/d3-delaunay-6.0.4.tgz",+ "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==",+ "license": "ISC",+ "dependencies": {+ "delaunator": "5"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-dispatch": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-dispatch/-/d3-dispatch-3.0.1.tgz",+ "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-drag": {+ "version": "3.0.0",+ "resolved": "https://registry.npmmirror.com/d3-drag/-/d3-drag-3.0.0.tgz",+ "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==",+ "license": "ISC",+ "dependencies": {+ "d3-dispatch": "1 - 3",+ "d3-selection": "3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-dsv": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-dsv/-/d3-dsv-3.0.1.tgz",+ "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==",+ "license": "ISC",+ "dependencies": {+ "commander": "7",+ "iconv-lite": "0.6",+ "rw": "1"+ },+ "bin": {+ "csv2json": "bin/dsv2json.js",+ "csv2tsv": "bin/dsv2dsv.js",+ "dsv2dsv": "bin/dsv2dsv.js",+ "dsv2json": "bin/dsv2json.js",+ "json2csv": "bin/json2dsv.js",+ "json2dsv": "bin/json2dsv.js",+ "json2tsv": "bin/json2dsv.js",+ "tsv2csv": "bin/dsv2dsv.js",+ "tsv2json": "bin/dsv2json.js"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-dsv/node_modules/commander": {+ "version": "7.2.0",+ "resolved": "https://registry.npmmirror.com/commander/-/commander-7.2.0.tgz",+ "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",+ "license": "MIT",+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/d3-ease": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-ease/-/d3-ease-3.0.1.tgz",+ "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-fetch": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-fetch/-/d3-fetch-3.0.1.tgz",+ "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==",+ "license": "ISC",+ "dependencies": {+ "d3-dsv": "1 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-force": {+ "version": "3.0.0",+ "resolved": "https://registry.npmmirror.com/d3-force/-/d3-force-3.0.0.tgz",+ "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==",+ "license": "ISC",+ "dependencies": {+ "d3-dispatch": "1 - 3",+ "d3-quadtree": "1 - 3",+ "d3-timer": "1 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-format": {+ "version": "3.1.2",+ "resolved": "https://registry.npmmirror.com/d3-format/-/d3-format-3.1.2.tgz",+ "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-geo": {+ "version": "3.1.1",+ "resolved": "https://registry.npmmirror.com/d3-geo/-/d3-geo-3.1.1.tgz",+ "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==",+ "license": "ISC",+ "dependencies": {+ "d3-array": "2.5.0 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-hierarchy": {+ "version": "3.1.2",+ "resolved": "https://registry.npmmirror.com/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz",+ "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-interpolate": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz",+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",+ "license": "ISC",+ "dependencies": {+ "d3-color": "1 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-path": {+ "version": "3.1.0",+ "resolved": "https://registry.npmmirror.com/d3-path/-/d3-path-3.1.0.tgz",+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-polygon": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-polygon/-/d3-polygon-3.0.1.tgz",+ "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-quadtree": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-quadtree/-/d3-quadtree-3.0.1.tgz",+ "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-random": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-random/-/d3-random-3.0.1.tgz",+ "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-sankey": {+ "version": "0.12.3",+ "resolved": "https://registry.npmmirror.com/d3-sankey/-/d3-sankey-0.12.3.tgz",+ "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "d3-array": "1 - 2",+ "d3-shape": "^1.2.0"+ }+ },+ "node_modules/d3-sankey/node_modules/d3-array": {+ "version": "2.12.1",+ "resolved": "https://registry.npmmirror.com/d3-array/-/d3-array-2.12.1.tgz",+ "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "internmap": "^1.0.0"+ }+ },+ "node_modules/d3-sankey/node_modules/d3-path": {+ "version": "1.0.9",+ "resolved": "https://registry.npmmirror.com/d3-path/-/d3-path-1.0.9.tgz",+ "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==",+ "license": "BSD-3-Clause"+ },+ "node_modules/d3-sankey/node_modules/d3-shape": {+ "version": "1.3.7",+ "resolved": "https://registry.npmmirror.com/d3-shape/-/d3-shape-1.3.7.tgz",+ "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "d3-path": "1"+ }+ },+ "node_modules/d3-sankey/node_modules/internmap": {+ "version": "1.0.1",+ "resolved": "https://registry.npmmirror.com/internmap/-/internmap-1.0.1.tgz",+ "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==",+ "license": "ISC"+ },+ "node_modules/d3-scale": {+ "version": "4.0.2",+ "resolved": "https://registry.npmmirror.com/d3-scale/-/d3-scale-4.0.2.tgz",+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",+ "license": "ISC",+ "dependencies": {+ "d3-array": "2.10.0 - 3",+ "d3-format": "1 - 3",+ "d3-interpolate": "1.2.0 - 3",+ "d3-time": "2.1.1 - 3",+ "d3-time-format": "2 - 4"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-scale-chromatic": {+ "version": "3.1.0",+ "resolved": "https://registry.npmmirror.com/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",+ "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==",+ "license": "ISC",+ "dependencies": {+ "d3-color": "1 - 3",+ "d3-interpolate": "1 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-selection": {+ "version": "3.0.0",+ "resolved": "https://registry.npmmirror.com/d3-selection/-/d3-selection-3.0.0.tgz",+ "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",+ "license": "ISC",+ "peer": true,+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-shape": {+ "version": "3.2.0",+ "resolved": "https://registry.npmmirror.com/d3-shape/-/d3-shape-3.2.0.tgz",+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",+ "license": "ISC",+ "dependencies": {+ "d3-path": "^3.1.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-time": {+ "version": "3.1.0",+ "resolved": "https://registry.npmmirror.com/d3-time/-/d3-time-3.1.0.tgz",+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",+ "license": "ISC",+ "dependencies": {+ "d3-array": "2 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-time-format": {+ "version": "4.1.0",+ "resolved": "https://registry.npmmirror.com/d3-time-format/-/d3-time-format-4.1.0.tgz",+ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==",+ "license": "ISC",+ "dependencies": {+ "d3-time": "1 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-timer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-timer/-/d3-timer-3.0.1.tgz",+ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/d3-transition": {+ "version": "3.0.1",+ "resolved": "https://registry.npmmirror.com/d3-transition/-/d3-transition-3.0.1.tgz",+ "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==",+ "license": "ISC",+ "dependencies": {+ "d3-color": "1 - 3",+ "d3-dispatch": "1 - 3",+ "d3-ease": "1 - 3",+ "d3-interpolate": "1 - 3",+ "d3-timer": "1 - 3"+ },+ "engines": {+ "node": ">=12"+ },+ "peerDependencies": {+ "d3-selection": "2 - 3"+ }+ },+ "node_modules/d3-zoom": {+ "version": "3.0.0",+ "resolved": "https://registry.npmmirror.com/d3-zoom/-/d3-zoom-3.0.0.tgz",+ "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==",+ "license": "ISC",+ "dependencies": {+ "d3-dispatch": "1 - 3",+ "d3-drag": "2 - 3",+ "d3-interpolate": "1 - 3",+ "d3-selection": "2 - 3",+ "d3-transition": "2 - 3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/dagre-d3-es": {+ "version": "7.0.13",+ "resolved": "https://registry.npmmirror.com/dagre-d3-es/-/dagre-d3-es-7.0.13.tgz",+ "integrity": "sha512-efEhnxpSuwpYOKRm/L5KbqoZmNNukHa/Flty4Wp62JRvgH2ojwVgPgdYyr4twpieZnyRDdIH7PY2mopX26+j2Q==",+ "license": "MIT",+ "dependencies": {+ "d3": "^7.9.0",+ "lodash-es": "^4.17.21"+ }+ },+ "node_modules/dayjs": {+ "version": "1.11.19",+ "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.19.tgz",+ "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==",+ "license": "MIT"+ },+ "node_modules/de-indent": {+ "version": "1.0.2",+ "resolved": "https://mirrors.tencent.com/npm/de-indent/-/de-indent-1.0.2.tgz",+ "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==",+ "dev": true+ },+ "node_modules/debug": {+ "version": "4.4.1",+ "resolved": "https://mirrors.tencent.com/npm/debug/-/debug-4.4.1.tgz",+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",+ "dev": true,+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/delaunator": {+ "version": "5.0.1",+ "resolved": "https://registry.npmmirror.com/delaunator/-/delaunator-5.0.1.tgz",+ "integrity": "sha512-8nvh+XBe96aCESrGOqMp/84b13H9cdKbG5P2ejQCh4d4sK9RL4371qou9drQjMhvnPmhWl5hnmqbEE0fXr9Xnw==",+ "license": "ISC",+ "dependencies": {+ "robust-predicates": "^3.0.2"+ }+ },+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://mirrors.tencent.com/npm/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/dompurify": {+ "version": "3.2.6",+ "resolved": "https://mirrors.tencent.com/npm/dompurify/-/dompurify-3.2.6.tgz",+ "integrity": "sha512-/2GogDQlohXPZe6D6NOgQvXLPSYBqIWMnZ8zzOhn09REE4eyAzb+Hed3jhoM9OkuaJ8P6ZGTTVWQKAi8ieIzfQ==",+ "license": "(MPL-2.0 OR Apache-2.0)",+ "optionalDependencies": {+ "@types/trusted-types": "^2.0.7"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://mirrors.tencent.com/npm/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.183",+ "resolved": "https://mirrors.tencent.com/npm/electron-to-chromium/-/electron-to-chromium-1.5.183.tgz",+ "integrity": "sha512-vCrDBYjQCAEefWGjlK3EpoSKfKbT10pR4XXPdn65q7snuNOZnthoVpBfZPykmDapOKfoD+MMIPG8ZjKyyc9oHA=="+ },+ "node_modules/enhanced-resolve": {+ "version": "5.18.2",+ "resolved": "https://mirrors.tencent.com/npm/enhanced-resolve/-/enhanced-resolve-5.18.2.tgz",+ "integrity": "sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ==",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.2.0"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/entities": {+ "version": "4.5.0",+ "resolved": "https://mirrors.tencent.com/npm/entities/-/entities-4.5.0.tgz",+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/errno": {+ "version": "0.1.8",+ "resolved": "https://mirrors.tencent.com/npm/errno/-/errno-0.1.8.tgz",+ "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==",+ "dev": true,+ "optional": true,+ "dependencies": {+ "prr": "~1.0.1"+ },+ "bin": {+ "errno": "cli.js"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://mirrors.tencent.com/npm/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"}},"node_modules/es-errors": {@@ -2584,6 +3494,12 @@"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==","license": "ISC"},+ "node_modules/hachure-fill": {+ "version": "0.5.2",+ "resolved": "https://registry.npmmirror.com/hachure-fill/-/hachure-fill-0.5.2.tgz",+ "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==",+ "license": "MIT"+ },"node_modules/has-flag": {"version": "4.0.0","resolved": "https://mirrors.tencent.com/npm/has-flag/-/has-flag-4.0.0.tgz",@@ -2660,8 +3576,6 @@"version": "0.6.3","resolved": "https://mirrors.tencent.com/npm/iconv-lite/-/iconv-lite-0.6.3.tgz","integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",- "dev": true,- "optional": true,"dependencies": {"safer-buffer": ">= 2.1.2 < 3.0.0"},@@ -2682,6 +3596,15 @@"node": ">=0.10.0"}},+ "node_modules/internmap": {+ "version": "2.0.3",+ "resolved": "https://registry.npmmirror.com/internmap/-/internmap-2.0.3.tgz",+ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },"node_modules/is-what": {"version": "3.14.1","resolved": "https://mirrors.tencent.com/npm/is-what/-/is-what-3.14.1.tgz",@@ -2757,11 +3680,65 @@"node": ">=6"}},+ "node_modules/katex": {+ "version": "0.16.33",+ "resolved": "https://registry.npmmirror.com/katex/-/katex-0.16.33.tgz",+ "integrity": "sha512-q3N5u+1sY9Bu7T4nlXoiRBXWfwSefNGoKeOwekV+gw0cAXQlz2Ww6BLcmBxVDeXBMUDQv6fK5bcNaJLxob3ZQA==",+ "funding": [+ "https://opencollective.com/katex",+ "https://github.com/sponsors/katex"+ ],+ "license": "MIT",+ "dependencies": {+ "commander": "^8.3.0"+ },+ "bin": {+ "katex": "cli.js"+ }+ },+ "node_modules/katex/node_modules/commander": {+ "version": "8.3.0",+ "resolved": "https://registry.npmmirror.com/commander/-/commander-8.3.0.tgz",+ "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",+ "license": "MIT",+ "engines": {+ "node": ">= 12"+ }+ },+ "node_modules/khroma": {+ "version": "2.1.0",+ "resolved": "https://registry.npmmirror.com/khroma/-/khroma-2.1.0.tgz",+ "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw=="+ },+ "node_modules/langium": {+ "version": "4.2.1",+ "resolved": "https://registry.npmmirror.com/langium/-/langium-4.2.1.tgz",+ "integrity": "sha512-zu9QWmjpzJcomzdJQAHgDVhLGq5bLosVak1KVa40NzQHXfqr4eAHupvnPOVXEoLkg6Ocefvf/93d//SB7du4YQ==",+ "license": "MIT",+ "dependencies": {+ "chevrotain": "~11.1.1",+ "chevrotain-allstar": "~0.3.1",+ "vscode-languageserver": "~9.0.1",+ "vscode-languageserver-textdocument": "~1.0.11",+ "vscode-uri": "~3.1.0"+ },+ "engines": {+ "node": ">=20.10.0",+ "npm": ">=10.2.3"+ }+ },+ "node_modules/layout-base": {+ "version": "1.0.2",+ "resolved": "https://registry.npmmirror.com/layout-base/-/layout-base-1.0.2.tgz",+ "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==",+ "license": "MIT"+ },"node_modules/less": {"version": "4.3.0","resolved": "https://mirrors.tencent.com/npm/less/-/less-4.3.0.tgz","integrity": "sha512-X9RyH9fvemArzfdP8Pi3irr7lor2Ok4rOttDXBhlwDg+wKQsXOXgHWduAJE1EsF7JJx0w0bcO6BC6tCKKYnXKA==","dev": true,+ "peer": true,"dependencies": {"copy-anything": "^2.0.1","parse-node-version": "^1.0.1",@@ -2819,9 +3796,10 @@}},"node_modules/lodash-es": {- "version": "4.17.21",- "resolved": "https://mirrors.tencent.com/npm/lodash-es/-/lodash-es-4.17.21.tgz",- "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="+ "version": "4.17.23",+ "resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.23.tgz",+ "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==",+ "license": "MIT"},"node_modules/lru-cache": {"version": "5.1.1",@@ -2902,6 +3880,46 @@"integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==","license": "MIT"},+ "node_modules/mermaid": {+ "version": "11.12.3",+ "resolved": "https://registry.npmmirror.com/mermaid/-/mermaid-11.12.3.tgz",+ "integrity": "sha512-wN5ZSgJQIC+CHJut9xaKWsknLxaFBwCPwPkGTSUYrTiHORWvpT8RxGk849HPnpUAQ+/9BPRqYb80jTpearrHzQ==",+ "license": "MIT",+ "dependencies": {+ "@braintree/sanitize-url": "^7.1.1",+ "@iconify/utils": "^3.0.1",+ "@mermaid-js/parser": "^1.0.0",+ "@types/d3": "^7.4.3",+ "cytoscape": "^3.29.3",+ "cytoscape-cose-bilkent": "^4.1.0",+ "cytoscape-fcose": "^2.2.0",+ "d3": "^7.9.0",+ "d3-sankey": "^0.12.3",+ "dagre-d3-es": "7.0.13",+ "dayjs": "^1.11.18",+ "dompurify": "^3.2.5",+ "katex": "^0.16.22",+ "khroma": "^2.1.0",+ "lodash-es": "^4.17.23",+ "marked": "^16.2.1",+ "roughjs": "^4.6.6",+ "stylis": "^4.3.6",+ "ts-dedent": "^2.2.0",+ "uuid": "^11.1.0"+ }+ },+ "node_modules/mermaid/node_modules/marked": {+ "version": "16.4.2",+ "resolved": "https://registry.npmmirror.com/marked/-/marked-16.4.2.tgz",+ "integrity": "sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==",+ "license": "MIT",+ "bin": {+ "marked": "bin/marked.js"+ },+ "engines": {+ "node": ">= 20"+ }+ },"node_modules/mime": {"version": "1.6.0","resolved": "https://mirrors.tencent.com/npm/mime/-/mime-1.6.0.tgz",@@ -2956,6 +3974,18 @@"resolved": "https://mirrors.tencent.com/npm/mitt/-/mitt-3.0.1.tgz","integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw=="},+ "node_modules/mlly": {+ "version": "1.8.0",+ "resolved": "https://registry.npmmirror.com/mlly/-/mlly-1.8.0.tgz",+ "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==",+ "license": "MIT",+ "dependencies": {+ "acorn": "^8.15.0",+ "pathe": "^2.0.3",+ "pkg-types": "^1.3.1",+ "ufo": "^1.6.1"+ }+ },"node_modules/ms": {"version": "2.1.3","resolved": "https://mirrors.tencent.com/npm/ms/-/ms-2.1.3.tgz",@@ -3051,6 +4081,12 @@"npm": ">= 9"}},+ "node_modules/package-manager-detector": {+ "version": "1.6.0",+ "resolved": "https://registry.npmmirror.com/package-manager-detector/-/package-manager-detector-1.6.0.tgz",+ "integrity": "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==",+ "license": "MIT"+ },"node_modules/pagefind": {"version": "1.3.0","resolved": "https://mirrors.tencent.com/npm/pagefind/-/pagefind-1.3.0.tgz",@@ -3089,6 +4125,12 @@"integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==","dev": true},+ "node_modules/path-data-parser": {+ "version": "0.1.0",+ "resolved": "https://registry.npmmirror.com/path-data-parser/-/path-data-parser-0.1.0.tgz",+ "integrity": "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==",+ "license": "MIT"+ },"node_modules/path-key": {"version": "3.1.1","resolved": "https://mirrors.tencent.com/npm/path-key/-/path-key-3.1.1.tgz",@@ -3098,6 +4140,12 @@"node": ">=8"}},+ "node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "license": "MIT"+ },"node_modules/perfect-debounce": {"version": "1.0.0","resolved": "https://mirrors.tencent.com/npm/perfect-debounce/-/perfect-debounce-1.0.0.tgz",@@ -3114,6 +4162,7 @@"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==","dev": true,"license": "MIT",+ "peer": true,"engines": {"node": ">=12"},@@ -3165,6 +4214,33 @@}}},+ "node_modules/pkg-types": {+ "version": "1.3.1",+ "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-1.3.1.tgz",+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",+ "license": "MIT",+ "dependencies": {+ "confbox": "^0.1.8",+ "mlly": "^1.7.4",+ "pathe": "^2.0.1"+ }+ },+ "node_modules/points-on-curve": {+ "version": "0.2.0",+ "resolved": "https://registry.npmmirror.com/points-on-curve/-/points-on-curve-0.2.0.tgz",+ "integrity": "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==",+ "license": "MIT"+ },+ "node_modules/points-on-path": {+ "version": "0.2.1",+ "resolved": "https://registry.npmmirror.com/points-on-path/-/points-on-path-0.2.1.tgz",+ "integrity": "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==",+ "license": "MIT",+ "dependencies": {+ "path-data-parser": "0.1.0",+ "points-on-curve": "0.2.0"+ }+ },"node_modules/postcss": {"version": "8.5.6","resolved": "https://mirrors.tencent.com/npm/postcss/-/postcss-8.5.6.tgz",@@ -3240,6 +4316,12 @@"integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==","license": "MIT"},+ "node_modules/robust-predicates": {+ "version": "3.0.2",+ "resolved": "https://registry.npmmirror.com/robust-predicates/-/robust-predicates-3.0.2.tgz",+ "integrity": "sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==",+ "license": "Unlicense"+ },"node_modules/rollup": {"version": "4.45.0","resolved": "https://mirrors.tencent.com/npm/rollup/-/rollup-4.45.0.tgz",@@ -3280,6 +4362,24 @@"fsevents": "~2.3.2"}},+ "node_modules/roughjs": {+ "version": "4.6.6",+ "resolved": "https://registry.npmmirror.com/roughjs/-/roughjs-4.6.6.tgz",+ "integrity": "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==",+ "license": "MIT",+ "dependencies": {+ "hachure-fill": "^0.5.2",+ "path-data-parser": "^0.1.0",+ "points-on-curve": "^0.2.0",+ "points-on-path": "^0.2.1"+ }+ },+ "node_modules/rw": {+ "version": "1.3.3",+ "resolved": "https://registry.npmmirror.com/rw/-/rw-1.3.3.tgz",+ "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==",+ "license": "BSD-3-Clause"+ },"node_modules/safe-buffer": {"version": "5.2.1","resolved": "https://mirrors.tencent.com/npm/safe-buffer/-/safe-buffer-5.2.1.tgz",@@ -3303,9 +4403,7 @@"version": "2.1.2","resolved": "https://mirrors.tencent.com/npm/safer-buffer/-/safer-buffer-2.1.2.tgz","integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",- "dev": true,- "license": "MIT",- "optional": true+ "license": "MIT"},"node_modules/sax": {"version": "1.4.1",@@ -3426,6 +4524,12 @@"node": ">=0.10.0"}},+ "node_modules/stylis": {+ "version": "4.3.6",+ "resolved": "https://registry.npmmirror.com/stylis/-/stylis-4.3.6.tgz",+ "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==",+ "license": "MIT"+ },"node_modules/superjson": {"version": "2.2.2","resolved": "https://mirrors.tencent.com/npm/superjson/-/superjson-2.2.2.tgz",@@ -3601,6 +4705,15 @@"integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==","license": "MIT"},+ "node_modules/tinyexec": {+ "version": "1.0.2",+ "resolved": "https://registry.npmmirror.com/tinyexec/-/tinyexec-1.0.2.tgz",+ "integrity": "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },"node_modules/tinyglobby": {"version": "0.2.15","resolved": "https://mirrors.tencent.com/npm/tinyglobby/-/tinyglobby-0.2.15.tgz",@@ -3618,6 +4731,15 @@"url": "https://github.com/sponsors/SuperchupuDev"}},+ "node_modules/ts-dedent": {+ "version": "2.2.0",+ "resolved": "https://registry.npmmirror.com/ts-dedent/-/ts-dedent-2.2.0.tgz",+ "integrity": "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==",+ "license": "MIT",+ "engines": {+ "node": ">=6.10"+ }+ },"node_modules/tslib": {"version": "2.8.1","resolved": "https://mirrors.tencent.com/npm/tslib/-/tslib-2.8.1.tgz",@@ -3630,6 +4752,7 @@"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==","devOptional": true,"license": "Apache-2.0",+ "peer": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"@@ -3638,6 +4761,12 @@"node": ">=14.17"}},+ "node_modules/ufo": {+ "version": "1.6.3",+ "resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.6.3.tgz",+ "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==",+ "license": "MIT"+ },"node_modules/undici-types": {"version": "6.21.0","resolved": "https://mirrors.tencent.com/npm/undici-types/-/undici-types-6.21.0.tgz",@@ -3672,6 +4801,19 @@"browserslist": ">= 4.21.0"}},+ "node_modules/uuid": {+ "version": "11.1.0",+ "resolved": "https://registry.npmmirror.com/uuid/-/uuid-11.1.0.tgz",+ "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "license": "MIT",+ "bin": {+ "uuid": "dist/esm/bin/uuid"+ }+ },"node_modules/validator": {"version": "13.15.23","resolved": "https://mirrors.tencent.com/npm/validator/-/validator-13.15.23.tgz",@@ -3687,6 +4829,7 @@"integrity": "sha512-BxAKBWmIbrDgrokdGZH1IgkIk/5mMHDreLDmCJ0qpyJaAteP8NvMhkwr/ZCQNqNH97bw/dANTE9PDzqwJghfMQ==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"esbuild": "^0.25.0","fdir": "^6.5.0",@@ -3756,11 +4899,53 @@}}},+ "node_modules/vscode-jsonrpc": {+ "version": "8.2.0",+ "resolved": "https://registry.npmmirror.com/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz",+ "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==",+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/vscode-languageserver": {+ "version": "9.0.1",+ "resolved": "https://registry.npmmirror.com/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz",+ "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==",+ "license": "MIT",+ "dependencies": {+ "vscode-languageserver-protocol": "3.17.5"+ },+ "bin": {+ "installServerIntoExtension": "bin/installServerIntoExtension"+ }+ },+ "node_modules/vscode-languageserver-protocol": {+ "version": "3.17.5",+ "resolved": "https://registry.npmmirror.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz",+ "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==",+ "license": "MIT",+ "dependencies": {+ "vscode-jsonrpc": "8.2.0",+ "vscode-languageserver-types": "3.17.5"+ }+ },+ "node_modules/vscode-languageserver-textdocument": {+ "version": "1.0.12",+ "resolved": "https://registry.npmmirror.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz",+ "integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==",+ "license": "MIT"+ },+ "node_modules/vscode-languageserver-types": {+ "version": "3.17.5",+ "resolved": "https://registry.npmmirror.com/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz",+ "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==",+ "license": "MIT"+ },"node_modules/vscode-uri": {"version": "3.1.0","resolved": "https://mirrors.tencent.com/npm/vscode-uri/-/vscode-uri-3.1.0.tgz","integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==",- "dev": true,"license": "MIT"},"node_modules/vue": {@@ -3768,6 +4953,7 @@"resolved": "https://mirrors.tencent.com/npm/vue/-/vue-3.5.17.tgz","integrity": "sha512-LbHV3xPN9BeljML+Xctq4lbz2lVHCR6DtbpTf5XIO6gugpXUN49j2QQPcMj086r9+AkJ0FfUT8xjulKKBkkr9g==","license": "MIT",+ "peer": true,"dependencies": {"@vue/compiler-dom": "3.5.17","@vue/compiler-sfc": "3.5.17",diff --git a/frontend/package.json b/frontend/package.jsonindex 1fc1bce84..9f4419320 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -19,6 +19,7 @@"dompurify": "^3.2.6","highlight.js": "^11.11.1","marked": "^5.1.2",+ "mermaid": "^11.4.1","pagefind": "^1.1.1","papaparse": "^5.5.3","pinia": "^3.0.1",diff --git a/frontend/src/components/css/markdown.less b/frontend/src/components/css/markdown.lessindex 744b851a7..c1e81a19d 100644--- a/frontend/src/components/css/markdown.less+++ b/frontend/src/components/css/markdown.less@@ -6,6 +6,21 @@cursor: pointer;}+ // Mermaid 图表样式+ .mermaid {+ margin: 16px 0;+ padding: 16px;+ background: #f8f9fa;+ border-radius: 8px;+ overflow-x: auto;+ text-align: center;++ svg {+ max-width: 100%;+ height: auto;+ }+ }+h1,h2,h3,diff --git a/frontend/src/components/doc-content.vue b/frontend/src/components/doc-content.vueindex ef18a8320..c7a846508 100644--- a/frontend/src/components/doc-content.vue+++ b/frontend/src/components/doc-content.vue@@ -3,6 +3,7 @@import { marked } from "marked";import hljs from "highlight.js";import "highlight.js/styles/github.css";+import mermaid from "mermaid";import { onMounted, ref, nextTick, onUnmounted, onUpdated, watch } from "vue";import { downKnowledgeDetails, deleteGeneratedQuestion } from "@/api/knowledge-base/index";import { MessagePlugin, DialogPlugin } from "tdesign-vue-next";@@ -11,6 +12,38 @@ import { useI18n } from 'vue-i18n';const { t } = useI18n();+// Mermaid 初始化计数器,用于生成唯一ID+let mermaidRenderCount = 0;++// 初始化 Mermaid+mermaid.initialize({+ startOnLoad: false,+ theme: 'default',+ securityLevel: 'strict',+ fontFamily: 'PingFang SC, Microsoft YaHei, sans-serif',+ flowchart: {+ useMaxWidth: true,+ htmlLabels: true,+ curve: 'basis'+ },+ sequence: {+ useMaxWidth: true,+ diagramMarginX: 8,+ diagramMarginY: 8,+ actorMargin: 50,+ width: 150,+ height: 65+ },+ gantt: {+ useMaxWidth: true,+ leftPadding: 75,+ gridLineStartPadding: 35,+ barHeight: 20,+ barGap: 4,+ topPadding: 50+ }+});+marked.use({mangle: false,headerIds: false,@@ -133,6 +166,15 @@ renderer.image = function (href, title, text) {// 自定义代码块渲染器,只显示语言标签renderer.code = function (code, infostring) {const lang = (infostring || '').trim();++ // Mermaid 图表处理+ if (lang === 'mermaid') {+ // 生成唯一ID+ const id = `mermaid-${++mermaidRenderCount}`;+ // 返回带有 mermaid 类的 div,后续由 mermaid.run() 处理+ return `<div class="mermaid" id="${id}">${code}</div>`;+ }+let detectedLang = lang;let highlighted = '';if (lang && hljs.getLanguage(lang)) {@@ -209,9 +251,25 @@ watch(() => props.details.md, (newVal) => {}})}+ // 渲染 Mermaid 图表+ await renderMermaidDiagrams();})}, { immediate: true, deep: true })+// 渲染 Mermaid 图表的函数+const renderMermaidDiagrams = async () => {+ try {+ const mermaidElements = mdContentWrap.value?.querySelectorAll('.mermaid');+ if (mermaidElements && mermaidElements.length > 0) {+ await mermaid.run({+ nodes: mermaidElements+ });+ }+ } catch (error) {+ console.error('Mermaid rendering error:', error);+ }+};+// 安全地处理 Markdown 内容(使用 marked)const processMarkdown = (markdownText) => {if (!markdownText || typeof markdownText !== 'string') return '';diff --git a/frontend/src/utils/security.ts b/frontend/src/utils/security.tsindex 6123b877f..3020bf037 100644--- a/frontend/src/utils/security.ts+++ b/frontend/src/utils/security.ts@@ -12,12 +12,31 @@ const DOMPurifyConfig = {'h1', 'h2', 'h3', 'h4', 'h5', 'h6','ul', 'ol', 'li', 'blockquote', 'pre', 'code','a', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td',- 'div', 'span', 'figure', 'figcaption', 'think'+ 'div', 'span', 'figure', 'figcaption', 'think',+ // Mermaid SVG 支持的标签+ 'svg', 'g', 'path', 'rect', 'circle', 'ellipse', 'line', 'polygon',+ 'polyline', 'text', 'tspan', 'defs', 'marker', 'filter', 'use',+ 'clippath', 'lineargradient', 'radialgradient', 'stop', 'pattern',+ 'image', 'foreignobject', 'desc', 'title', 'switch', 'symbol', 'mask'],// 允许的属性ALLOWED_ATTR: ['href', 'title', 'alt', 'src', 'class', 'id', 'style',- 'target', 'rel', 'width', 'height'+ 'target', 'rel', 'width', 'height',+ // Mermaid SVG 支持的属性+ 'd', 'fill', 'stroke', 'stroke-width', 'stroke-linecap', 'stroke-linejoin',+ 'stroke-dasharray', 'stroke-dashoffset', 'stroke-miterlimit', 'stroke-opacity',+ 'fill-opacity', 'opacity', 'transform', 'viewbox', 'preserveaspectratio',+ 'x', 'y', 'x1', 'y1', 'x2', 'y2', 'cx', 'cy', 'rx', 'ry', 'r',+ 'dx', 'dy', 'text-anchor', 'dominant-baseline', 'font-family', 'font-size',+ 'font-weight', 'font-style', 'letter-spacing', 'word-spacing',+ 'marker-start', 'marker-mid', 'marker-end', 'markerunits', 'markerwidth',+ 'markerheight', 'refx', 'refy', 'orient', 'points', 'offset',+ 'gradientunits', 'gradienttransform', 'spreadmethod', 'stop-color', 'stop-opacity',+ 'patternunits', 'patterntransform', 'clippathunits', 'maskunits',+ 'filterunits', 'primitiveunits', 'xmlns', 'xmlns:xlink', 'xlink:href',+ 'version', 'baseprofile', 'enable-background', 'overflow', 'visibility',+ 'display', 'pointer-events', 'cursor', 'data-emit', 'direction'],// 允许的协议ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,diff --git a/frontend/src/views/chat/components/AgentStreamDisplay.vue b/frontend/src/views/chat/components/AgentStreamDisplay.vueindex aec6db747..c9d01643d 100644--- a/frontend/src/views/chat/components/AgentStreamDisplay.vue+++ b/frontend/src/views/chat/components/AgentStreamDisplay.vue@@ -219,6 +219,7 @@ import { ref, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue'import { useRouter } from 'vue-router';import { marked } from 'marked';import DOMPurify from 'dompurify';+import mermaid from 'mermaid';import ToolResultRenderer from './ToolResultRenderer.vue';import picturePreview from '@/components/picture-preview.vue';import { getChunkByIdOnly } from '@/api/knowledge-base';@@ -230,6 +231,71 @@ const router = useRouter();const uiStore = useUIStore();const { t } = useI18n();+// Mermaid 初始化计数器+let agentMermaidCount = 0;++// 初始化 Mermaid+mermaid.initialize({+ startOnLoad: false,+ theme: 'default',+ securityLevel: 'strict',+ fontFamily: 'PingFang SC, Microsoft YaHei, sans-serif',+ flowchart: {+ useMaxWidth: true,+ htmlLabels: true,+ curve: 'basis'+ },+ sequence: {+ useMaxWidth: true,+ diagramMarginX: 8,+ diagramMarginY: 8,+ actorMargin: 50,+ width: 150,+ height: 65+ },+ gantt: {+ useMaxWidth: true,+ leftPadding: 75,+ gridLineStartPadding: 35,+ barHeight: 20,+ barGap: 4,+ topPadding: 50+ }+});++// DOMPurify 配置 - 支持 Mermaid SVG 标签+const DOMPurifyConfig = {+ ALLOWED_TAGS: [+ 'p', 'br', 'strong', 'em', 'u', 'code', 'pre', 'ul', 'ol', 'li', 'blockquote',+ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'a', 'span', 'table', 'thead', 'tbody',+ 'tr', 'th', 'td', 'img', 'figure', 'figcaption', 'div',+ // Mermaid SVG 支持的标签+ 'svg', 'g', 'path', 'rect', 'circle', 'ellipse', 'line', 'polygon',+ 'polyline', 'text', 'tspan', 'defs', 'marker', 'filter', 'use',+ 'clippath', 'lineargradient', 'radialgradient', 'stop', 'pattern',+ 'image', 'foreignobject', 'desc', 'title', 'switch', 'symbol', 'mask'+ ],+ ALLOWED_ATTR: [+ 'href', 'title', 'target', 'rel', 'data-tooltip', 'data-url', 'data-kb-id',+ 'data-chunk-id', 'data-doc', 'class', 'role', 'tabindex', 'src', 'alt',+ 'width', 'height', 'style', 'id',+ // Mermaid SVG 支持的属性+ 'd', 'fill', 'stroke', 'stroke-width', 'stroke-linecap', 'stroke-linejoin',+ 'stroke-dasharray', 'stroke-dashoffset', 'stroke-miterlimit', 'stroke-opacity',+ 'fill-opacity', 'opacity', 'transform', 'viewbox', 'preserveaspectratio',+ 'x', 'y', 'x1', 'y1', 'x2', 'y2', 'cx', 'cy', 'rx', 'ry', 'r',+ 'dx', 'dy', 'text-anchor', 'dominant-baseline', 'font-family', 'font-size',+ 'font-weight', 'font-style', 'letter-spacing', 'word-spacing',+ 'marker-start', 'marker-mid', 'marker-end', 'markerunits', 'markerwidth',+ 'markerheight', 'refx', 'refy', 'orient', 'points', 'offset',+ 'gradientunits', 'gradienttransform', 'spreadmethod', 'stop-color', 'stop-opacity',+ 'patternunits', 'patterntransform', 'clippathunits', 'maskunits',+ 'filterunits', 'primitiveunits', 'xmlns', 'xmlns:xlink', 'xlink:href',+ 'version', 'baseprofile', 'enable-background', 'overflow', 'visibility',+ 'display', 'pointer-events', 'cursor', 'data-emit', 'direction'+ ]+};+const TOOL_NAME_I18N: Record<string, string> = {search_knowledge: '知识库检索',knowledge_search: '知识库检索',@@ -386,12 +452,17 @@ const expandedEvents = ref<Set<string>>(new Set());// Watch event stream to auto-expand thinking toolswatch(eventStream, (stream) => {if (!stream || !Array.isArray(stream)) return;-+stream.forEach((event: any) => {if (event?.type === 'tool_call' && event?.tool_name === 'thinking' && event?.tool_call_id) {expandedEvents.value.add(event.tool_call_id);}});++ // 渲染 Mermaid 图表+ nextTick(() => {+ renderMermaidDiagrams();+ });}, { immediate: true, deep: true });// State for intermediate steps collapse@@ -1150,19 +1221,33 @@ const preprocessMarkdown = (contentStr: string): string => {const getTokens = (content: any) => {const contentStr = typeof content === 'string' ? content : String(content || '');if (!contentStr.trim()) return [];-+const processed = preprocessMarkdown(contentStr);return marked.lexer(processed);};+// 自定义渲染器 - 支持 Mermaid+const agentRenderer = new marked.Renderer();+agentRenderer.code = function(code, infostring) {+ const lang = (infostring || '').trim();++ // Mermaid 图表处理+ if (lang === 'mermaid') {+ const id = `mermaid-agent-${++agentMermaidCount}`;+ return `<div class="mermaid" id="${id}">${code}</div>`;+ }++ // 普通代码块+ const displayLang = lang || 'Code';+ const escapedCode = code.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');+ return `<pre><code class="language-${displayLang}">${escapedCode}</code></pre>`;+};+// Render HTML from a single tokenconst getTokenHTML = (token: any): string => {try {- const html = marked.parser([token]);- return DOMPurify.sanitize(html, {- ALLOWED_TAGS: ['p', 'br', 'strong', 'em', 'u', 'code', 'pre', 'ul', 'ol', 'li', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'a', 'span', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'img', 'figure', 'figcaption'],- ALLOWED_ATTR: ['href', 'title', 'target', 'rel', 'data-tooltip', 'data-url', 'data-kb-id', 'data-chunk-id', 'data-doc', 'class', 'role', 'tabindex', 'src', 'alt', 'width', 'height', 'style']- });+ const html = marked.parser([token], { renderer: agentRenderer });+ return DOMPurify.sanitize(html, DOMPurifyConfig);} catch (e) {console.error('Token rendering error:', e);return '';@@ -1173,22 +1258,35 @@ const getTokenHTML = (token: any): string => {const renderMarkdown = (content: any): string => {const contentStr = typeof content === 'string' ? content : String(content || '');if (!contentStr.trim()) return '';-+try {const processed = preprocessMarkdown(contentStr);- const html = marked.parse(processed) as string;+ const html = marked.parse(processed, { renderer: agentRenderer }) as string;if (!html) return '';-- return DOMPurify.sanitize(html, {- ALLOWED_TAGS: ['p', 'br', 'strong', 'em', 'u', 'code', 'pre', 'ul', 'ol', 'li', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'a', 'span', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'img', 'figure', 'figcaption'],- ALLOWED_ATTR: ['href', 'title', 'target', 'rel', 'data-tooltip', 'data-url', 'data-kb-id', 'data-chunk-id', 'data-doc', 'class', 'role', 'tabindex', 'src', 'alt', 'width', 'height', 'style']- });++ return DOMPurify.sanitize(html, DOMPurifyConfig);} catch (e) {console.error('Markdown rendering error:', e, 'Content:', contentStr.substring(0, 100));return contentStr.replace(/</g, '<').replace(/>/g, '>');}};+// 渲染 Mermaid 图表的函数+const renderMermaidDiagrams = async () => {+ try {+ if (rootElement.value) {+ const mermaidElements = rootElement.value.querySelectorAll<HTMLElement>('.mermaid');+ if (mermaidElements && mermaidElements.length > 0) {+ await mermaid.run({+ nodes: mermaidElements+ });+ }+ }+ } catch (error) {+ console.error('Mermaid rendering error:', error);+ }+};+// Tool summary - extract key info to display externallyconst getToolSummary = (event: any): string => {if (!event || event.pending || !event.success) return '';@@ -2063,18 +2161,18 @@ const handleAddToKnowledge = (answerEvent: any) => {border-collapse: collapse;margin: 6px 0;font-size: 11px;-+th, td {border: 1px solid #e5e7eb;padding: 5px 8px;}-+th {background: #f9fafb;font-weight: 600;}}-+:deep(img) {max-width: 80%;max-height: 300px;@@ -2089,11 +2187,26 @@ const handleAddToKnowledge = (answerEvent: any) => {cursor: pointer;transition: transform 0.2s ease;background-color: #f9fafb; /* 加载时的占位背景色 */-+&:hover {transform: scale(1.02);}}++ // Mermaid 图表样式+ :deep(.mermaid) {+ margin: 16px 0;+ padding: 16px;+ background: #f8f9fa;+ border-radius: 8px;+ overflow-x: auto;+ text-align: center;++ svg {+ max-width: 100%;+ height: auto;+ }+ }}}diff --git a/frontend/src/views/chat/components/botmsg.vue b/frontend/src/views/chat/components/botmsg.vueindex 7353eaf05..d93d44553 100644--- a/frontend/src/views/chat/components/botmsg.vue+++ b/frontend/src/views/chat/components/botmsg.vue@@ -48,6 +48,7 @@<script setup>import { onMounted, onBeforeUnmount, watch, computed, ref, reactive, defineProps, nextTick } from 'vue';import { marked } from 'marked';+import mermaid from 'mermaid';import docInfo from './docInfo.vue';import deepThink from './deepThink.vue';import AgentStreamDisplay from './AgentStreamDisplay.vue';@@ -62,6 +63,39 @@ marked.use({headerIds: false,breaks: true, // 全局启用单个换行支持});++// Mermaid 初始化计数器+let botmsgMermaidCount = 0;++// 初始化 Mermaid+mermaid.initialize({+ startOnLoad: false,+ theme: 'default',+ securityLevel: 'strict',+ fontFamily: 'PingFang SC, Microsoft YaHei, sans-serif',+ flowchart: {+ useMaxWidth: true,+ htmlLabels: true,+ curve: 'basis'+ },+ sequence: {+ useMaxWidth: true,+ diagramMarginX: 8,+ diagramMarginY: 8,+ actorMargin: 50,+ width: 150,+ height: 65+ },+ gantt: {+ useMaxWidth: true,+ leftPadding: 75,+ gridLineStartPadding: 35,+ barHeight: 20,+ barGap: 4,+ topPadding: 50+ }+});+const emit = defineEmits(['scroll-bottom'])const { t } = useI18n()const uiStore = useUIStore();@@ -115,6 +149,22 @@ customRenderer.image = function(href, title, text) {return createSafeImage(href, text || '', title || '');};+// 覆盖代码块渲染方法,支持 Mermaid+customRenderer.code = function(code, infostring) {+ const lang = (infostring || '').trim();++ // Mermaid 图表处理+ if (lang === 'mermaid') {+ const id = `mermaid-botmsg-${++botmsgMermaidCount}`;+ return `<div class="mermaid" id="${id}">${code}</div>`;+ }++ // 普通代码块+ const displayLang = lang || 'Code';+ const escapedCode = code.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');+ return `<pre><code class="language-${displayLang}">${escapedCode}</code></pre>`;+};+// 计算属性:将 Markdown 文本转换为 tokensconst markdownTokens = computed(() => {const text = props.content || props.session?.content || '';@@ -247,12 +297,37 @@ const handleMarkdownImageClick = (e) => {}};+// 渲染 Mermaid 图表的函数+const renderMermaidDiagrams = async () => {+ try {+ if (parentMd.value) {+ const mermaidElements = parentMd.value.querySelectorAll('.mermaid');+ if (mermaidElements && mermaidElements.length > 0) {+ await mermaid.run({+ nodes: mermaidElements+ });+ }+ }+ } catch (error) {+ console.error('Mermaid rendering error:', error);+ }+};++// 监听内容变化并渲染 Mermaid+watch(() => [props.content, props.session?.content], () => {+ nextTick(() => {+ renderMermaidDiagrams();+ });+}, { immediate: true });+onMounted(async () => {// 为 markdown-content 中的图片添加点击事件nextTick(() => {if (parentMd.value) {parentMd.value.addEventListener('click', handleMarkdownImageClick, true);}+ // 初始渲染 Mermaid 图表+ renderMermaidDiagrams();});});@@ -389,6 +464,21 @@ onBeforeUnmount(() => {transform: scale(1.02);}}++ // Mermaid 图表样式+ :deep(.mermaid) {+ margin: 16px 0;+ padding: 16px;+ background: #f8f9fa;+ border-radius: 8px;+ overflow-x: auto;+ text-align: center;++ svg {+ max-width: 100%;+ height: auto;+ }+ }}.ai-markdown-img {