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