@foris/avocado-not-front 1.11.7-beta.4 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) hide show
  1. package/dist/abap-Y8Dl9g_6-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW-vP6ak0IW.js +6 -0
  4. package/dist/andromeeda-BIpZ7gaU-BIpZ7gaU.js +4 -0
  5. package/dist/angular-html-DPB4Rf0C-1_1_4tyh.js +34 -0
  6. package/dist/angular-ts-CeqPwKaz-ohSx1G-R.js +24 -0
  7. package/dist/apache-BUjz-sD2-BUjz-sD2.js +6 -0
  8. package/dist/apex-oLhhs58q-oLhhs58q.js +6 -0
  9. package/dist/apl-Bfz1rp5e-DI6exAvT.js +17 -0
  10. package/dist/applescript-BPx7YFFu-BPx7YFFu.js +6 -0
  11. package/dist/ara-Z2fSOxSw-Z2fSOxSw.js +6 -0
  12. package/dist/arc-DHSZg76Q-C6o4oFmD.js +85 -0
  13. package/dist/architectureDiagram-VXUJARFQ-Cp8vugxX-9O3-degh.js +4672 -0
  14. package/dist/asciidoc-B-pCoB3G-B-pCoB3G.js +6 -0
  15. package/dist/asm-BTWLY5ym-BTWLY5ym.js +6 -0
  16. package/dist/astro-CFFExE8Q-D857V_mk.js +18 -0
  17. package/dist/aurora-x-BwoVEUWZ-BwoVEUWZ.js +4 -0
  18. package/dist/avocado-not-front.es.js +8 -2167
  19. package/dist/avocado-not-front.umd.js +4642 -3
  20. package/dist/awk-Fb0P9dkn-Fb0P9dkn.js +6 -0
  21. package/dist/ayu-dark-CxPZkpb2-CxPZkpb2.js +4 -0
  22. package/dist/ballerina-oZK-YekG-oZK-YekG.js +6 -0
  23. package/dist/bat-0FvbqU9S-0FvbqU9S.js +6 -0
  24. package/dist/beancount-DqJEb89h-DqJEb89h.js +6 -0
  25. package/dist/berry-DODBq_Ff-DODBq_Ff.js +6 -0
  26. package/dist/bibtex-EULQRLY5-EULQRLY5.js +6 -0
  27. package/dist/bicep-BorU73w0-BorU73w0.js +6 -0
  28. package/dist/blade-DRRSiTQz-DuQj1Sqy.js +21 -0
  29. package/dist/blockDiagram-VD42YOAC-B4cTulr6-CNlYtTjf.js +2407 -0
  30. package/dist/bsl-NkNNwerW-DeWv6DbE.js +8 -0
  31. package/dist/c-eeMepfLm-eeMepfLm.js +6 -0
  32. package/dist/c4Diagram-YG6GDRKO-B8--s8xx-CZw1PsLU.js +1585 -0
  33. package/dist/cadence-02UX7mW8-02UX7mW8.js +6 -0
  34. package/dist/cairo-DM6WF2e3-BLxuUSuB.js +8 -0
  35. package/dist/catppuccin-frappe-D3cH2rXe-D3cH2rXe.js +4 -0
  36. package/dist/catppuccin-latte-C0LRGUW4-C0LRGUW4.js +4 -0
  37. package/dist/catppuccin-macchiato-c5wQ11TT-c5wQ11TT.js +4 -0
  38. package/dist/catppuccin-mocha-WMD6Qvya-WMD6Qvya.js +4 -0
  39. package/dist/channel-Cqk_cOiy-72hMZ_v0.js +5 -0
  40. package/dist/chunk-4BX2VUAB-Cb-wAjVN-DlY_dtbp.js +9 -0
  41. package/dist/chunk-55IACEB6-QFXfbMHG-AnxyrPT-.js +8 -0
  42. package/dist/chunk-B4BG7PRW-CFs53zrP-DB12fnkn.js +1375 -0
  43. package/dist/chunk-DI55MBZ5-CKjAOeh7-D98MsfUL.js +1383 -0
  44. package/dist/chunk-FMBD7UC4-B29MtLTn-tjtGIWPm.js +19 -0
  45. package/dist/chunk-QN33PNHL-5bU-bM6A-vK9OZVa6.js +20 -0
  46. package/dist/chunk-QZHKN3VN-B_Q6cMrq-78n0e61s.js +15 -0
  47. package/dist/chunk-TZMSLE5B-DlULRafu-BlGLxuE_.js +64 -0
  48. package/dist/clarity-PKm5CwqM-PKm5CwqM.js +6 -0
  49. package/dist/classDiagram-2ON5EDUG-DJmXfcVi-CF8YlvOv.js +22 -0
  50. package/dist/classDiagram-v2-WZHVMYZB-DJmXfcVi-CF8YlvOv.js +22 -0
  51. package/dist/clojure-CXJfHrL3-CXJfHrL3.js +6 -0
  52. package/dist/cmake-BJz8BOTU-BJz8BOTU.js +6 -0
  53. package/dist/cobol-DYTFdEK1-1eoMdnt0.js +12 -0
  54. package/dist/code-block-QI2IAROF-C_F85uim-MNaL7yo9.js +2805 -0
  55. package/dist/codeowners-Bt9yU6NX-Bt9yU6NX.js +6 -0
  56. package/dist/codeql-DHkodjjI-DHkodjjI.js +6 -0
  57. package/dist/coffee-DGBR_nr_-Cu5d6u6p.js +8 -0
  58. package/dist/common-lisp-EVqT9Zhp-EVqT9Zhp.js +6 -0
  59. package/dist/coq-B0L9upzn-B0L9upzn.js +6 -0
  60. package/dist/cose-bilkent-S5V4N54A-N3jM_XQd-BbbJbKzj.js +2612 -0
  61. package/dist/cpp-ZFnOq6fV-CkUSzFY-.js +19 -0
  62. package/dist/crystal-CRJyc4G--B_7jzPPy.js +18 -0
  63. package/dist/csharp-C7yUs7-w-C7yUs7-w.js +6 -0
  64. package/dist/css-CECN5uSL-CECN5uSL.js +6 -0
  65. package/dist/csv-CmYOceLb-DlI6xKnA.js +6 -0
  66. package/dist/cue-ZzumE7IT-ZzumE7IT.js +6 -0
  67. package/dist/cypher-jpdmjtA6-jpdmjtA6.js +6 -0
  68. package/dist/cytoscape.esm-ClN43hhW-Dh4GqQxb.js +18836 -0
  69. package/dist/d-CBagWSwH-CBagWSwH.js +6 -0
  70. package/dist/dagre-6UL2VRFP-CJdrtgOu-CLaqjT6l.js +451 -0
  71. package/dist/dark-plus-pUHDTVV0-pUHDTVV0.js +4 -0
  72. package/dist/dart-6ObCrKr9-6ObCrKr9.js +6 -0
  73. package/dist/dax-CcDT-8dH-CcDT-8dH.js +6 -0
  74. package/dist/defaultLocale-DcQU6Vee-C62bXCQv.js +177 -0
  75. package/dist/desktop-B93p9R9O-B93p9R9O.js +6 -0
  76. package/dist/diagram-PSM6KHXK-DSaDqHvO-DVH1Sew6.js +544 -0
  77. package/dist/diagram-QEK2KX5R-BbxboH_--DYDmO4S1.js +224 -0
  78. package/dist/diagram-S2PKOQOG-DWsCb5He--yPVUK-A.js +146 -0
  79. package/dist/diff-BxzP2J8R-BxzP2J8R.js +6 -0
  80. package/dist/docker-CsHqm9tx-CsHqm9tx.js +6 -0
  81. package/dist/dotenv-BMjVjUL1-BMjVjUL1.js +6 -0
  82. package/dist/dracula-BtZx2Kac-BtZx2Kac.js +4 -0
  83. package/dist/dracula-soft-BKa-aqBv-BKa-aqBv.js +4 -0
  84. package/dist/dream-maker-PAx17jaB-PAx17jaB.js +6 -0
  85. package/dist/edge-B882-fmN-CXsL8OuZ.js +14 -0
  86. package/dist/elixir-DRzNHQCz-EnC5QsDh.js +10 -0
  87. package/dist/elm-DZPAA5Qn-BCPZo0aa.js +9 -0
  88. package/dist/emacs-lisp-Cfxdx5D--Cfxdx5D-.js +6 -0
  89. package/dist/erDiagram-Q2GNP2WA-Bl0uHx93-Cm6cgw10.js +844 -0
  90. package/dist/erb-DB1DqdBc-CnAEHkSC.js +27 -0
  91. package/dist/erlang-DNcDT8Hi-Cs3llSSi.js +8 -0
  92. package/dist/everforest-dark-DMCBqXCK-DMCBqXCK.js +4 -0
  93. package/dist/everforest-light-BbXl82Em-BbXl82Em.js +4 -0
  94. package/dist/fennel-N4WcXuKx-N4WcXuKx.js +6 -0
  95. package/dist/fish-BTDEUgqH-BTDEUgqH.js +6 -0
  96. package/dist/flowDiagram-NV44I4VS-Dq0mXT8f-BL0sk42H.js +1631 -0
  97. package/dist/fluent-BMXUxfv1-BMXUxfv1.js +6 -0
  98. package/dist/fortran-fixed-form-DUsA-VGo-CYX4aMfD.js +8 -0
  99. package/dist/fortran-free-form-DPIT_jbP-DPIT_jbP.js +6 -0
  100. package/dist/fsharp-CYOiIVNx-D3KYyprZ.js +8 -0
  101. package/dist/ganttDiagram-JELNMOA3-Dj1adndm-BODWVm5T.js +2702 -0
  102. package/dist/gdresource-BwtMIoBm-DVtwhfL2.js +10 -0
  103. package/dist/gdscript-BifyeYhI-BifyeYhI.js +6 -0
  104. package/dist/gdshader-Bk8fF6yr-Bk8fF6yr.js +6 -0
  105. package/dist/genie-DzUvd7U9-DzUvd7U9.js +6 -0
  106. package/dist/gherkin-DHRaV0YP-DHRaV0YP.js +6 -0
  107. package/dist/git-commit-Bd32YZ0K-D9qSjMiw.js +8 -0
  108. package/dist/git-rebase-ZWUFO_T4-uqUGWt5o.js +8 -0
  109. package/dist/gitGraphDiagram-NY62KEGX-DIFZugA1-BsIE257G.js +715 -0
  110. package/dist/github-dark-DenFmJkN-DenFmJkN.js +4 -0
  111. package/dist/github-dark-default-BJPUVz4H-BJPUVz4H.js +4 -0
  112. package/dist/github-dark-dimmed-DUshB20C-DUshB20C.js +4 -0
  113. package/dist/github-dark-high-contrast-D3aGCnF8-D3aGCnF8.js +4 -0
  114. package/dist/github-light-JYsPkUQd-JYsPkUQd.js +4 -0
  115. package/dist/github-light-default-D99KPAby-D99KPAby.js +4 -0
  116. package/dist/github-light-high-contrast-BbmZE-Mp-BbmZE-Mp.js +4 -0
  117. package/dist/gleam-Bv284lvN-Bv284lvN.js +6 -0
  118. package/dist/glimmer-js-DkxNrfPT-Dr8vv_dk.js +14 -0
  119. package/dist/glimmer-ts-D6YZEmK_-CeJS1lkt.js +14 -0
  120. package/dist/glsl-CkUcVZNK-D6P60Alb.js +8 -0
  121. package/dist/gnuplot-yPG9-sE_-yPG9-sE_.js +6 -0
  122. package/dist/go-ChxJuLYK-ChxJuLYK.js +6 -0
  123. package/dist/graph-DB2UxkYH-Bs-uwV4G.js +1190 -0
  124. package/dist/graphql-CBu2ehBn-B9KpeKh4.js +14 -0
  125. package/dist/groovy-CJQTphOW-CJQTphOW.js +6 -0
  126. package/dist/gruvbox-dark-hard-C5HOtKIh-C5HOtKIh.js +4 -0
  127. package/dist/gruvbox-dark-medium-FVgwJHuz-FVgwJHuz.js +4 -0
  128. package/dist/gruvbox-dark-soft-B46F314v-B46F314v.js +4 -0
  129. package/dist/gruvbox-light-hard-CJD38wDZ-CJD38wDZ.js +4 -0
  130. package/dist/gruvbox-light-medium-BlIhMYTA-BlIhMYTA.js +4 -0
  131. package/dist/gruvbox-light-soft-DoPHyLVZ-DoPHyLVZ.js +4 -0
  132. package/dist/hack-DVWgrvc2-CFszvyOs.js +12 -0
  133. package/dist/haml-NZLVzu_R-6sAynSNG.js +10 -0
  134. package/dist/handlebars-mxStpSE7-C1GOcwW1.js +14 -0
  135. package/dist/haskell-WeIwNIP6-WeIwNIP6.js +6 -0
  136. package/dist/haxe-TztHsm5T-TztHsm5T.js +6 -0
  137. package/dist/hcl-D438OF-I-D438OF-I.js +6 -0
  138. package/dist/hjson-DYBUbqOl-DYBUbqOl.js +6 -0
  139. package/dist/hlsl-Bk8TCZNL-Bk8TCZNL.js +6 -0
  140. package/dist/hooks/useAction.d.ts +3 -3
  141. package/dist/houston-BDYrDoDW-BDYrDoDW.js +4 -0
  142. package/dist/html-B50bmoVb-BJ3eCZKL.js +10 -0
  143. package/dist/html-derivative-ByyNxAP5-BxLhKRHw.js +10 -0
  144. package/dist/http-BVIWqb92-CjnDmEd8.js +19 -0
  145. package/dist/hurl-B8OTiYoQ-DoRwHSAy.js +17 -0
  146. package/dist/hxml-GbqSQCLa-BnvJylRx.js +8 -0
  147. package/dist/hy-Brt5EZ7--Brt5EZ7-.js +6 -0
  148. package/dist/imba-CimUv-Uh-CimUv-Uh.js +6 -0
  149. package/dist/infoDiagram-WHAUD3N6-DPjzRs82-ChgGSBbk.js +27 -0
  150. package/dist/ini-BZIuRIvJ-BZIuRIvJ.js +6 -0
  151. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  152. package/dist/java-DY6VlHhP-DY6VlHhP.js +6 -0
  153. package/dist/javascript-C25yR2R2-C25yR2R2.js +6 -0
  154. package/dist/jinja-CI-LSgSv-BEWEZ83m.js +13 -0
  155. package/dist/jison-DdreslRX-DzaoIrEq.js +8 -0
  156. package/dist/journeyDiagram-XKPGCS4Q-DLrlPVyq-DYzqQ6Qu.js +840 -0
  157. package/dist/json-DxJze_jm-DxJze_jm.js +6 -0
  158. package/dist/json5-BT4Fjg39-BT4Fjg39.js +6 -0
  159. package/dist/jsonc-CHjZD8gR-CHjZD8gR.js +6 -0
  160. package/dist/jsonl-BGuvDmy9-BGuvDmy9.js +6 -0
  161. package/dist/jsonnet-Bx2cfsXg-Bx2cfsXg.js +6 -0
  162. package/dist/jssm-BcADi6EI-BcADi6EI.js +6 -0
  163. package/dist/jsx-BtKADgXT-BtKADgXT.js +6 -0
  164. package/dist/julia-ll8P6QXy-CifMye9u.js +19 -0
  165. package/dist/kanagawa-dragon-CiKur4Hl-CiKur4Hl.js +4 -0
  166. package/dist/kanagawa-lotus-BKu-smKu-BKu-smKu.js +4 -0
  167. package/dist/kanagawa-wave-CQwozSzG-CQwozSzG.js +4 -0
  168. package/dist/kanban-definition-3W4ZIXB7-BTI5yGHx-Bz8MmnxI.js +724 -0
  169. package/dist/katex.min-l0sNRNKZ-l0sNRNKZ.js +1 -0
  170. package/dist/kdl-BNOv9TC3-0Q4F1UAs.js +6 -0
  171. package/dist/kotlin-ByBMgTeR-ByBMgTeR.js +6 -0
  172. package/dist/kusto-VWFLl2T0-VWFLl2T0.js +6 -0
  173. package/dist/laserwave-6a00oqik-6a00oqik.js +4 -0
  174. package/dist/latex-DF20280u-RMy1LUrW.js +9 -0
  175. package/dist/layout-Q6wQN5dr-BC95Y2G0.js +1727 -0
  176. package/dist/lean-D5yRrexI-D5yRrexI.js +6 -0
  177. package/dist/less-B1GLI2Di-B1GLI2Di.js +6 -0
  178. package/dist/light-plus-CZuVqSLX-CZuVqSLX.js +4 -0
  179. package/dist/linear-UL3ZZUJv-CWZvrkAD.js +277 -0
  180. package/dist/liquid-CHzkx3jT-G75tv0iE.js +14 -0
  181. package/dist/llvm-co1rIKs3-co1rIKs3.js +6 -0
  182. package/dist/log-Al8wyEFV-Al8wyEFV.js +6 -0
  183. package/dist/logo-DBa4JDzV-DBa4JDzV.js +6 -0
  184. package/dist/lua-kX5WP_P5-DxLUTRud.js +8 -0
  185. package/dist/luau-DtBSxLyz-DtBSxLyz.js +6 -0
  186. package/dist/make-CsMclxtr-CsMclxtr.js +6 -0
  187. package/dist/markdown-CrScaQ96-CrScaQ96.js +6 -0
  188. package/dist/marko-ls0Jg2j8-BHrfxEh0.js +14 -0
  189. package/dist/material-theme-D6KBX41T-D6KBX41T.js +4 -0
  190. package/dist/material-theme-darker-CkRroheE-CkRroheE.js +4 -0
  191. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
  192. package/dist/material-theme-ocean-ClGX14Ja-ClGX14Ja.js +4 -0
  193. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
  194. package/dist/matlab-BOAaUVP0-BOAaUVP0.js +6 -0
  195. package/dist/mdc-DIP5_jeM-Cff0amyo.js +15 -0
  196. package/dist/mdx-BOhZZUJ8-BOhZZUJ8.js +6 -0
  197. package/dist/mermaid-B0ixDHKN-B0ixDHKN.js +6 -0
  198. package/dist/mermaid-NA5CF7SZ-BDJrKfjz-Cq0tva8U.js +140994 -0
  199. package/dist/mermaid.core-Cpfp0NBU-DQS-fLaZ.js +14401 -0
  200. package/dist/min-dark-C7ak0t6c-C7ak0t6c.js +4 -0
  201. package/dist/min-light-CKFxVcPp-CKFxVcPp.js +4 -0
  202. package/dist/mindmap-definition-VGOIOE7T-B6ovfeib-CXlRkpn9.js +790 -0
  203. package/dist/mipsasm-CTx18fBl-CTx18fBl.js +6 -0
  204. package/dist/mojo-BD611d7o-BD611d7o.js +6 -0
  205. package/dist/monokai-C1KBYcO0-C1KBYcO0.js +4 -0
  206. package/dist/move-F-dICmj2-F-dICmj2.js +6 -0
  207. package/dist/narrat-DmhDCBs--DmhDCBs-.js +6 -0
  208. package/dist/nextflow-DmSVRGjG-DmSVRGjG.js +6 -0
  209. package/dist/nginx-COxS3qoU-CvZmIOfz.js +9 -0
  210. package/dist/night-owl-Bm2rzalh-Bm2rzalh.js +4 -0
  211. package/dist/nim-CCwXZLHG-CVhjPGL5.js +21 -0
  212. package/dist/nix-BZK5F767-BZK5F767.js +9 -0
  213. package/dist/nord-CC5OiUXg-CC5OiUXg.js +4 -0
  214. package/dist/nushell-D8j3dhT--D8j3dhT-.js +6 -0
  215. package/dist/objective-c-Itk8tzmv-Itk8tzmv.js +6 -0
  216. package/dist/objective-cpp-DGt5UKRO-DGt5UKRO.js +6 -0
  217. package/dist/ocaml-eSVK32Eg-eSVK32Eg.js +6 -0
  218. package/dist/one-dark-pro-DTA3VF0_-DTA3VF0_.js +4 -0
  219. package/dist/one-light-D9sNaUtq-D9sNaUtq.js +4 -0
  220. package/dist/openscad-Sp5uZ6f2-Sp5uZ6f2.js +6 -0
  221. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  222. package/dist/pascal-xy8pJNns-xy8pJNns.js +6 -0
  223. package/dist/perl-NvKK8p2P-DbsmNmLT.js +17 -0
  224. package/dist/php-CK5hNnT0-DEpqLZ_n.js +19 -0
  225. package/dist/pieDiagram-ADFJNKIX-Bn24elWA-iGwy_4tX.js +166 -0
  226. package/dist/pkl-C-zSNmaA-C-zSNmaA.js +6 -0
  227. package/dist/plastic-CSTz3KZp-CSTz3KZp.js +4 -0
  228. package/dist/plsql-pVbGZfOv-pVbGZfOv.js +6 -0
  229. package/dist/po-BNfHvqmm-BNfHvqmm.js +6 -0
  230. package/dist/poimandres-C-VADXHD-C-VADXHD.js +4 -0
  231. package/dist/polar-CAZahv3u-CAZahv3u.js +6 -0
  232. package/dist/postcss-05aHdL-n-05aHdL-n.js +6 -0
  233. package/dist/powerquery-DI9HkTvs-DI9HkTvs.js +6 -0
  234. package/dist/powershell-Clc4ydu--Clc4ydu-.js +6 -0
  235. package/dist/prisma-FZjmVtSl-FZjmVtSl.js +6 -0
  236. package/dist/prolog-C5-yg4TO-C5-yg4TO.js +6 -0
  237. package/dist/proto-MmCPeFAD-MmCPeFAD.js +6 -0
  238. package/dist/pug-XOw9Q1Ho-BO4tUzTj.js +12 -0
  239. package/dist/puppet-CUJHmnxV-CUJHmnxV.js +6 -0
  240. package/dist/purescript-rUfGld-4-rUfGld-4.js +6 -0
  241. package/dist/python-BFNSHbwJ-BFNSHbwJ.js +6 -0
  242. package/dist/qml-rTNXsquU-DeTe0b4l.js +8 -0
  243. package/dist/qmldir-BInDYbpo-BInDYbpo.js +6 -0
  244. package/dist/qss-AeJTysr_-AeJTysr_.js +6 -0
  245. package/dist/quadrantDiagram-AYHSOK5B-CsbmyLll-CFP8fgtI.js +1030 -0
  246. package/dist/r-Bm0uF0U2-Bm0uF0U2.js +6 -0
  247. package/dist/racket-B83wSAja-B83wSAja.js +6 -0
  248. package/dist/raku-nEQ4ZJJ7-nEQ4ZJJ7.js +6 -0
  249. package/dist/razor-CoqPuKQU-DUBs-Qe6.js +12 -0
  250. package/dist/red-7y8PH7HH-7y8PH7HH.js +4 -0
  251. package/dist/reg-m_s_Kiip-m_s_Kiip.js +6 -0
  252. package/dist/regexp-BazyLpPg-BazyLpPg.js +6 -0
  253. package/dist/rel-BcRfyd6Q-BcRfyd6Q.js +6 -0
  254. package/dist/requirementDiagram-UZGBJVZJ--9rfbKaz-CC8EZoyz.js +854 -0
  255. package/dist/riscv-Ce8MAQLP-Ce8MAQLP.js +6 -0
  256. package/dist/rose-pine-BKc3yVeu-BKc3yVeu.js +4 -0
  257. package/dist/rose-pine-dawn-BulJcPZT-BulJcPZT.js +4 -0
  258. package/dist/rose-pine-moon-j6jiXKV8-j6jiXKV8.js +4 -0
  259. package/dist/rosmsg-Cz0w1km8-Cz0w1km8.js +6 -0
  260. package/dist/rst-AoEjemIj-Dr7TcJwd.js +36 -0
  261. package/dist/ruby-CGSl8JoB-D4hDjzwe.js +36 -0
  262. package/dist/rust-CLzF9zIN-CLzF9zIN.js +6 -0
  263. package/dist/sankeyDiagram-TZEHDZUN-Cp2id-3k-DhByp8vU.js +830 -0
  264. package/dist/sas-fpEvgATw-D9dNv8Ej.js +8 -0
  265. package/dist/sass-DxHp5rTx-DxHp5rTx.js +6 -0
  266. package/dist/scala-D4grkFkl-D4grkFkl.js +6 -0
  267. package/dist/scheme-BCRWuEm4-BCRWuEm4.js +6 -0
  268. package/dist/scss-B1FaCqwR-DbNEJJFR.js +8 -0
  269. package/dist/sdbl-B7T8abf4-B7T8abf4.js +6 -0
  270. package/dist/sequenceDiagram-WL72ISMW-Bdoz1Co7-DcFuWrLs.js +2526 -0
  271. package/dist/services/axios/useFetchAndLoad.d.ts +1 -1
  272. package/dist/shaderlab-Cr62-Wb4-D_jbKjpl.js +8 -0
  273. package/dist/shellscript-InADTalH-InADTalH.js +6 -0
  274. package/dist/shellsession-DiDJNQdy-BGvYrs9g.js +8 -0
  275. package/dist/slack-dark-i7wN4OET-i7wN4OET.js +4 -0
  276. package/dist/slack-ochin-ndHf0LoP-ndHf0LoP.js +4 -0
  277. package/dist/smalltalk-BlI1_OkM-BlI1_OkM.js +6 -0
  278. package/dist/snazzy-light-BlSJXAu4-BlSJXAu4.js +4 -0
  279. package/dist/solarized-dark-UTmkh7lw-UTmkh7lw.js +4 -0
  280. package/dist/solarized-light-BheCkDPT-BheCkDPT.js +4 -0
  281. package/dist/solidity-DUWnFhS6-DUWnFhS6.js +6 -0
  282. package/dist/soy-YPoZ1G2p-C1q7UQeu.js +10 -0
  283. package/dist/sparql-B0KWFEri-CqC-y0Su.js +8 -0
  284. package/dist/splunk-CRXR8A9s-CRXR8A9s.js +6 -0
  285. package/dist/sql-Cn_v3PB0-Cn_v3PB0.js +6 -0
  286. package/dist/ssh-config-DP-hNVbF-DP-hNVbF.js +6 -0
  287. package/dist/stata-B8c5fTjX-Bf3brRPV.js +8 -0
  288. package/dist/stateDiagram-FKZM4ZOC-BLHxjrc8-FBnBvaVW.js +268 -0
  289. package/dist/stateDiagram-v2-4FDKWEC3-CbxCwS8b-B_Pfgmu4.js +21 -0
  290. package/dist/style.css +1 -1
  291. package/dist/stylus-CyKEU1Ej-CyKEU1Ej.js +6 -0
  292. package/dist/svelte-5UasyOg7-e8KUCojE.js +14 -0
  293. package/dist/swift-9UzSvamq-9UzSvamq.js +6 -0
  294. package/dist/synthwave-84-NU3C_KFZ-NU3C_KFZ.js +4 -0
  295. package/dist/system-verilog-BCm7smPJ-BCm7smPJ.js +6 -0
  296. package/dist/systemd-C-4qm6XH-C-4qm6XH.js +6 -0
  297. package/dist/talonscript-CFF3LF_O-CvtCkGGO.js +6 -0
  298. package/dist/tasl-Cg_WBUAe-Cg_WBUAe.js +6 -0
  299. package/dist/tcl-DN7buRTF-DN7buRTF.js +6 -0
  300. package/dist/templ-peLZIM2D-DkTUdVi-.js +12 -0
  301. package/dist/terraform-DGvcn9zM-DGvcn9zM.js +6 -0
  302. package/dist/tex-DpOayVob-BjP51rYh.js +8 -0
  303. package/dist/timeline-definition-IT6M3QCI-s3Wsbz6h-DfdfMl2Q.js +805 -0
  304. package/dist/tokyo-night-DP4TmcQl-DP4TmcQl.js +4 -0
  305. package/dist/toml-DY62mUL_-DY62mUL_.js +6 -0
  306. package/dist/treemap-KMMF4GRG-D_L55G0b-CANAYd5X.js +15006 -0
  307. package/dist/ts-tags-CWmBp2js-DrKIoTCJ.js +43 -0
  308. package/dist/tsv-BtvSkaG0-BtvSkaG0.js +6 -0
  309. package/dist/tsx-B8rCNbgL-B8rCNbgL.js +6 -0
  310. package/dist/turtle-_H59FV7D-_H59FV7D.js +6 -0
  311. package/dist/twig-Cpoho6oi-CQE9XWXP.js +35 -0
  312. package/dist/typescript-RycA9KXf-RycA9KXf.js +6 -0
  313. package/dist/typespec-DWqp-kUU-DWqp-kUU.js +6 -0
  314. package/dist/typst-D_1QKWns-D_1QKWns.js +6 -0
  315. package/dist/v-BPCNiyYe-BPCNiyYe.js +6 -0
  316. package/dist/vala-uxaPR7d1-uxaPR7d1.js +6 -0
  317. package/dist/vb-D8_c5-KN-D8_c5-KN.js +6 -0
  318. package/dist/verilog-B-bybjPF-B-bybjPF.js +6 -0
  319. package/dist/vesper-BckBta1U-BckBta1U.js +4 -0
  320. package/dist/vhdl-CUlNa8ac-CUlNa8ac.js +6 -0
  321. package/dist/viml-DsfA-sWm-DsfA-sWm.js +6 -0
  322. package/dist/vitesse-black-BoGvW84i-BoGvW84i.js +4 -0
  323. package/dist/vitesse-dark-Cym-eLtO-Cym-eLtO.js +4 -0
  324. package/dist/vitesse-light-CcmG315c-CcmG315c.js +4 -0
  325. package/dist/vue-DmFKWfEU-DXvRBLDJ.js +31 -0
  326. package/dist/vue-html-BB2aI7Yc-e0S8MQFq.js +15 -0
  327. package/dist/vue-vine-CznNap4x-DAbzn77p.js +24 -0
  328. package/dist/vyper-CPQuu50u-CPQuu50u.js +6 -0
  329. package/dist/wasm-BBXxrAl7-BBXxrAl7.js +6 -0
  330. package/dist/wasm-DQxwEHae-DQxwEHae.js +7 -0
  331. package/dist/wenyan-pbVjoM9_-pbVjoM9_.js +6 -0
  332. package/dist/wgsl-DY4iK1q1-DY4iK1q1.js +6 -0
  333. package/dist/wikitext-Z-MoUasO-Z-MoUasO.js +6 -0
  334. package/dist/wit-CQMQOlTg-CQMQOlTg.js +6 -0
  335. package/dist/wolfram-Dz4KXISs-Dz4KXISs.js +6 -0
  336. package/dist/xml-C2J0sS9M-IZlib8U3.js +8 -0
  337. package/dist/xsl-CbTBIiv3-CgleMmCH.js +9 -0
  338. package/dist/xychartDiagram-PRI3JC2R-D3ejwy7u-CFsnZXTL.js +1345 -0
  339. package/dist/yaml-DaO7k5B1-DaO7k5B1.js +6 -0
  340. package/dist/zenscript-CxBjpf9c-CxBjpf9c.js +6 -0
  341. package/dist/zig-Vm0PO9wB-Vm0PO9wB.js +6 -0
  342. package/package.json +25 -42
@@ -0,0 +1,1345 @@
1
+ import { _ as n, a1 as gi, G as Ct, F as Xt, E as ui, ak as xi, l as Nt, a9 as zt, i as di, p as Ot, s as pi, g as fi, o as mi, b as yi, c as bi, v as Ai, K as wi, k as Si } from "./mermaid.core-Cpfp0NBU-DQS-fLaZ.js";
2
+ import { t as Ci } from "./init-DjUOC4st-C8Nwz6AJ.js";
3
+ import { h as ki } from "./ordinal-MUacOSdK-B1MUT0BL.js";
4
+ import { f as Wt } from "./linear-UL3ZZUJv-CWZvrkAD.js";
5
+ import "./mermaid-NA5CF7SZ-BDJrKfjz-Cq0tva8U.js";
6
+ import "react";
7
+ import "react-dom";
8
+ import "./defaultLocale-DcQU6Vee-C62bXCQv.js";
9
+ function _i(t, i, e) {
10
+ t = +t, i = +i, e = (h = arguments.length) < 2 ? (i = t, t = 0, 1) : h < 3 ? 1 : +e;
11
+ for (var s = -1, h = Math.max(0, Math.ceil((i - t) / e)) | 0, x = new Array(h); ++s < h; )
12
+ x[s] = t + s * e;
13
+ return x;
14
+ }
15
+ function yt() {
16
+ var t = ki().unknown(void 0), i = t.domain, e = t.range, s = 0, h = 1, x, u, f = !1, S = 0, R = 0, D = 0.5;
17
+ delete t.unknown;
18
+ function A() {
19
+ var m = i().length, v = h < s, T = v ? h : s, L = v ? s : h;
20
+ x = (L - T) / Math.max(1, m - S + R * 2), f && (x = Math.floor(x)), T += (L - T - x * (m - S)) * D, u = x * (1 - S), f && (T = Math.round(T), u = Math.round(u));
21
+ var E = _i(m).map(function(p) {
22
+ return T + x * p;
23
+ });
24
+ return e(v ? E.reverse() : E);
25
+ }
26
+ return t.domain = function(m) {
27
+ return arguments.length ? (i(m), A()) : i();
28
+ }, t.range = function(m) {
29
+ return arguments.length ? ([s, h] = m, s = +s, h = +h, A()) : [s, h];
30
+ }, t.rangeRound = function(m) {
31
+ return [s, h] = m, s = +s, h = +h, f = !0, A();
32
+ }, t.bandwidth = function() {
33
+ return u;
34
+ }, t.step = function() {
35
+ return x;
36
+ }, t.round = function(m) {
37
+ return arguments.length ? (f = !!m, A()) : f;
38
+ }, t.padding = function(m) {
39
+ return arguments.length ? (S = Math.min(1, R = +m), A()) : S;
40
+ }, t.paddingInner = function(m) {
41
+ return arguments.length ? (S = Math.min(1, m), A()) : S;
42
+ }, t.paddingOuter = function(m) {
43
+ return arguments.length ? (R = +m, A()) : R;
44
+ }, t.align = function(m) {
45
+ return arguments.length ? (D = Math.max(0, Math.min(1, m)), A()) : D;
46
+ }, t.copy = function() {
47
+ return yt(i(), [s, h]).round(f).paddingInner(S).paddingOuter(R).align(D);
48
+ }, Ci.apply(A(), arguments);
49
+ }
50
+ var bt = function() {
51
+ var t = /* @__PURE__ */ n(function(z, o, c, g) {
52
+ for (c = c || {}, g = z.length; g--; c[z[g]] = o)
53
+ ;
54
+ return c;
55
+ }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], h = [1, 5], x = [1, 6], u = [1, 7], f = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], S = [1, 25], R = [1, 26], D = [1, 28], A = [1, 29], m = [1, 30], v = [1, 31], T = [1, 32], L = [1, 33], E = [1, 34], p = [1, 35], C = [1, 36], l = [1, 37], F = [1, 43], B = [1, 42], U = [1, 47], N = [1, 50], r = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], P = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], k = [1, 64], Q = {
56
+ trace: /* @__PURE__ */ n(function() {
57
+ }, "trace"),
58
+ yy: {},
59
+ symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
60
+ terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
61
+ productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
62
+ performAction: /* @__PURE__ */ n(function(z, o, c, g, b, a, I) {
63
+ var d = a.length - 1;
64
+ switch (b) {
65
+ case 5:
66
+ g.setOrientation(a[d]);
67
+ break;
68
+ case 9:
69
+ g.setDiagramTitle(a[d].text.trim());
70
+ break;
71
+ case 12:
72
+ g.setLineData({ text: "", type: "text" }, a[d]);
73
+ break;
74
+ case 13:
75
+ g.setLineData(a[d - 1], a[d]);
76
+ break;
77
+ case 14:
78
+ g.setBarData({ text: "", type: "text" }, a[d]);
79
+ break;
80
+ case 15:
81
+ g.setBarData(a[d - 1], a[d]);
82
+ break;
83
+ case 16:
84
+ this.$ = a[d].trim(), g.setAccTitle(this.$);
85
+ break;
86
+ case 17:
87
+ case 18:
88
+ this.$ = a[d].trim(), g.setAccDescription(this.$);
89
+ break;
90
+ case 19:
91
+ this.$ = a[d - 1];
92
+ break;
93
+ case 20:
94
+ this.$ = [Number(a[d - 2]), ...a[d]];
95
+ break;
96
+ case 21:
97
+ this.$ = [Number(a[d])];
98
+ break;
99
+ case 22:
100
+ g.setXAxisTitle(a[d]);
101
+ break;
102
+ case 23:
103
+ g.setXAxisTitle(a[d - 1]);
104
+ break;
105
+ case 24:
106
+ g.setXAxisTitle({ type: "text", text: "" });
107
+ break;
108
+ case 25:
109
+ g.setXAxisBand(a[d]);
110
+ break;
111
+ case 26:
112
+ g.setXAxisRangeData(Number(a[d - 2]), Number(a[d]));
113
+ break;
114
+ case 27:
115
+ this.$ = a[d - 1];
116
+ break;
117
+ case 28:
118
+ this.$ = [a[d - 2], ...a[d]];
119
+ break;
120
+ case 29:
121
+ this.$ = [a[d]];
122
+ break;
123
+ case 30:
124
+ g.setYAxisTitle(a[d]);
125
+ break;
126
+ case 31:
127
+ g.setYAxisTitle(a[d - 1]);
128
+ break;
129
+ case 32:
130
+ g.setYAxisTitle({ type: "text", text: "" });
131
+ break;
132
+ case 33:
133
+ g.setYAxisRangeData(Number(a[d - 2]), Number(a[d]));
134
+ break;
135
+ case 37:
136
+ this.$ = { text: a[d], type: "text" };
137
+ break;
138
+ case 38:
139
+ this.$ = { text: a[d], type: "text" };
140
+ break;
141
+ case 39:
142
+ this.$ = { text: a[d], type: "markdown" };
143
+ break;
144
+ case 40:
145
+ this.$ = a[d];
146
+ break;
147
+ case 41:
148
+ this.$ = a[d - 1] + "" + a[d];
149
+ break;
150
+ }
151
+ }, "anonymous"),
152
+ table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: h, 35: x, 36: u }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: h, 35: x, 36: u }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: h, 35: x, 36: u }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(f, [2, 34]), t(f, [2, 35]), t(f, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: h, 35: x, 36: u }), { 1: [2, 3] }, t(f, [2, 5]), t(i, [2, 7], { 4: 22, 34: h, 35: x, 36: u }), { 11: 23, 37: 24, 38: S, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 11: 39, 13: 38, 24: F, 27: B, 29: 40, 30: 41, 37: 24, 38: S, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: S, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 11: 49, 17: 48, 24: N, 37: 24, 38: S, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 11: 52, 17: 51, 24: N, 37: 24, 38: S, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 20: [1, 53] }, { 22: [1, 54] }, t(r, [2, 18]), { 1: [2, 2] }, t(r, [2, 8]), t(r, [2, 9]), t(P, [2, 37], { 40: 55, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }), t(P, [2, 38]), t(P, [2, 39]), t(w, [2, 40]), t(w, [2, 42]), t(w, [2, 43]), t(w, [2, 44]), t(w, [2, 45]), t(w, [2, 46]), t(w, [2, 47]), t(w, [2, 48]), t(w, [2, 49]), t(w, [2, 50]), t(w, [2, 51]), t(r, [2, 10]), t(r, [2, 22], { 30: 41, 29: 56, 24: F, 27: B }), t(r, [2, 24]), t(r, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: S, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, t(r, [2, 11]), t(r, [2, 30], { 33: 60, 27: U }), t(r, [2, 32]), { 31: [1, 61] }, t(r, [2, 12]), { 17: 62, 24: N }, { 25: 63, 27: k }, t(r, [2, 14]), { 17: 65, 24: N }, t(r, [2, 16]), t(r, [2, 17]), t(w, [2, 41]), t(r, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(r, [2, 31]), { 27: [1, 69] }, t(r, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(r, [2, 15]), t(r, [2, 26]), t(r, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: S, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, t(r, [2, 33]), t(r, [2, 19]), { 25: 73, 27: k }, { 26: [2, 28] }, { 26: [2, 20] }],
153
+ defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
154
+ parseError: /* @__PURE__ */ n(function(z, o) {
155
+ if (o.recoverable)
156
+ this.trace(z);
157
+ else {
158
+ var c = new Error(z);
159
+ throw c.hash = o, c;
160
+ }
161
+ }, "parseError"),
162
+ parse: /* @__PURE__ */ n(function(z) {
163
+ var o = this, c = [0], g = [], b = [null], a = [], I = this.table, d = "", Z = 0, Et = 0, oi = 2, It = 1, ri = a.slice.call(arguments, 1), _ = Object.create(this.lexer), V = { yy: {} };
164
+ for (var nt in this.yy)
165
+ Object.prototype.hasOwnProperty.call(this.yy, nt) && (V.yy[nt] = this.yy[nt]);
166
+ _.setInput(z, V.yy), V.yy.lexer = _, V.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
167
+ var at = _.yylloc;
168
+ a.push(at);
169
+ var li = _.options && _.options.ranges;
170
+ typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
171
+ function ci(M) {
172
+ c.length = c.length - 2 * M, b.length = b.length - M, a.length = a.length - M;
173
+ }
174
+ n(ci, "popStack");
175
+ function $t() {
176
+ var M;
177
+ return M = g.pop() || _.lex() || It, typeof M != "number" && (M instanceof Array && (g = M, M = g.pop()), M = o.symbols_[M] || M), M;
178
+ }
179
+ n($t, "lex");
180
+ for (var $, Y, W, ht, H = {}, tt, X, Mt, it; ; ) {
181
+ if (Y = c[c.length - 1], this.defaultActions[Y] ? W = this.defaultActions[Y] : (($ === null || typeof $ > "u") && ($ = $t()), W = I[Y] && I[Y][$]), typeof W > "u" || !W.length || !W[0]) {
182
+ var ot = "";
183
+ it = [];
184
+ for (tt in I[Y])
185
+ this.terminals_[tt] && tt > oi && it.push("'" + this.terminals_[tt] + "'");
186
+ _.showPosition ? ot = "Parse error on line " + (Z + 1) + `:
187
+ ` + _.showPosition() + `
188
+ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : ot = "Parse error on line " + (Z + 1) + ": Unexpected " + ($ == It ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(ot, {
189
+ text: _.match,
190
+ token: this.terminals_[$] || $,
191
+ line: _.yylineno,
192
+ loc: at,
193
+ expected: it
194
+ });
195
+ }
196
+ if (W[0] instanceof Array && W.length > 1)
197
+ throw new Error("Parse Error: multiple actions possible at state: " + Y + ", token: " + $);
198
+ switch (W[0]) {
199
+ case 1:
200
+ c.push($), b.push(_.yytext), a.push(_.yylloc), c.push(W[1]), $ = null, Et = _.yyleng, d = _.yytext, Z = _.yylineno, at = _.yylloc;
201
+ break;
202
+ case 2:
203
+ if (X = this.productions_[W[1]][1], H.$ = b[b.length - X], H._$ = {
204
+ first_line: a[a.length - (X || 1)].first_line,
205
+ last_line: a[a.length - 1].last_line,
206
+ first_column: a[a.length - (X || 1)].first_column,
207
+ last_column: a[a.length - 1].last_column
208
+ }, li && (H._$.range = [
209
+ a[a.length - (X || 1)].range[0],
210
+ a[a.length - 1].range[1]
211
+ ]), ht = this.performAction.apply(H, [
212
+ d,
213
+ Et,
214
+ Z,
215
+ V.yy,
216
+ W[1],
217
+ b,
218
+ a
219
+ ].concat(ri)), typeof ht < "u")
220
+ return ht;
221
+ X && (c = c.slice(0, -1 * X * 2), b = b.slice(0, -1 * X), a = a.slice(0, -1 * X)), c.push(this.productions_[W[1]][0]), b.push(H.$), a.push(H._$), Mt = I[c[c.length - 2]][c[c.length - 1]], c.push(Mt);
222
+ break;
223
+ case 3:
224
+ return !0;
225
+ }
226
+ }
227
+ return !0;
228
+ }, "parse")
229
+ }, J = /* @__PURE__ */ function() {
230
+ var z = {
231
+ EOF: 1,
232
+ parseError: /* @__PURE__ */ n(function(o, c) {
233
+ if (this.yy.parser)
234
+ this.yy.parser.parseError(o, c);
235
+ else
236
+ throw new Error(o);
237
+ }, "parseError"),
238
+ // resets the lexer, sets new input
239
+ setInput: /* @__PURE__ */ n(function(o, c) {
240
+ return this.yy = c || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
241
+ first_line: 1,
242
+ first_column: 0,
243
+ last_line: 1,
244
+ last_column: 0
245
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
246
+ }, "setInput"),
247
+ // consumes and returns one char from the input
248
+ input: /* @__PURE__ */ n(function() {
249
+ var o = this._input[0];
250
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
251
+ var c = o.match(/(?:\r\n?|\n).*/g);
252
+ return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
253
+ }, "input"),
254
+ // unshifts one char (or a string) into the input
255
+ unput: /* @__PURE__ */ n(function(o) {
256
+ var c = o.length, g = o.split(/(?:\r\n?|\n)/g);
257
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
258
+ var b = this.match.split(/(?:\r\n?|\n)/g);
259
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
260
+ var a = this.yylloc.range;
261
+ return this.yylloc = {
262
+ first_line: this.yylloc.first_line,
263
+ last_line: this.yylineno + 1,
264
+ first_column: this.yylloc.first_column,
265
+ last_column: g ? (g.length === b.length ? this.yylloc.first_column : 0) + b[b.length - g.length].length - g[0].length : this.yylloc.first_column - c
266
+ }, this.options.ranges && (this.yylloc.range = [a[0], a[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
267
+ }, "unput"),
268
+ // When called from action, caches matched text and appends it on next action
269
+ more: /* @__PURE__ */ n(function() {
270
+ return this._more = !0, this;
271
+ }, "more"),
272
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
273
+ reject: /* @__PURE__ */ n(function() {
274
+ if (this.options.backtrack_lexer)
275
+ this._backtrack = !0;
276
+ else
277
+ 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).
278
+ ` + this.showPosition(), {
279
+ text: "",
280
+ token: null,
281
+ line: this.yylineno
282
+ });
283
+ return this;
284
+ }, "reject"),
285
+ // retain first n characters of the match
286
+ less: /* @__PURE__ */ n(function(o) {
287
+ this.unput(this.match.slice(o));
288
+ }, "less"),
289
+ // displays already matched input, i.e. for error messages
290
+ pastInput: /* @__PURE__ */ n(function() {
291
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
292
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
293
+ }, "pastInput"),
294
+ // displays upcoming input, i.e. for error messages
295
+ upcomingInput: /* @__PURE__ */ n(function() {
296
+ var o = this.match;
297
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
298
+ }, "upcomingInput"),
299
+ // displays the character position where the lexing error occurred, i.e. for error messages
300
+ showPosition: /* @__PURE__ */ n(function() {
301
+ var o = this.pastInput(), c = new Array(o.length + 1).join("-");
302
+ return o + this.upcomingInput() + `
303
+ ` + c + "^";
304
+ }, "showPosition"),
305
+ // test the lexed token: return FALSE when not a match, otherwise return token
306
+ test_match: /* @__PURE__ */ n(function(o, c) {
307
+ var g, b, a;
308
+ if (this.options.backtrack_lexer && (a = {
309
+ yylineno: this.yylineno,
310
+ yylloc: {
311
+ first_line: this.yylloc.first_line,
312
+ last_line: this.last_line,
313
+ first_column: this.yylloc.first_column,
314
+ last_column: this.yylloc.last_column
315
+ },
316
+ yytext: this.yytext,
317
+ match: this.match,
318
+ matches: this.matches,
319
+ matched: this.matched,
320
+ yyleng: this.yyleng,
321
+ offset: this.offset,
322
+ _more: this._more,
323
+ _input: this._input,
324
+ yy: this.yy,
325
+ conditionStack: this.conditionStack.slice(0),
326
+ done: this.done
327
+ }, this.options.ranges && (a.yylloc.range = this.yylloc.range.slice(0))), b = o[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
328
+ first_line: this.yylloc.last_line,
329
+ last_line: this.yylineno + 1,
330
+ first_column: this.yylloc.last_column,
331
+ last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
332
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], g = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
333
+ return g;
334
+ if (this._backtrack) {
335
+ for (var I in a)
336
+ this[I] = a[I];
337
+ return !1;
338
+ }
339
+ return !1;
340
+ }, "test_match"),
341
+ // return next match in input
342
+ next: /* @__PURE__ */ n(function() {
343
+ if (this.done)
344
+ return this.EOF;
345
+ this._input || (this.done = !0);
346
+ var o, c, g, b;
347
+ this._more || (this.yytext = "", this.match = "");
348
+ for (var a = this._currentRules(), I = 0; I < a.length; I++)
349
+ if (g = this._input.match(this.rules[a[I]]), g && (!c || g[0].length > c[0].length)) {
350
+ if (c = g, b = I, this.options.backtrack_lexer) {
351
+ if (o = this.test_match(g, a[I]), o !== !1)
352
+ return o;
353
+ if (this._backtrack) {
354
+ c = !1;
355
+ continue;
356
+ } else
357
+ return !1;
358
+ } else if (!this.options.flex)
359
+ break;
360
+ }
361
+ return c ? (o = this.test_match(c, a[b]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
362
+ ` + this.showPosition(), {
363
+ text: "",
364
+ token: null,
365
+ line: this.yylineno
366
+ });
367
+ }, "next"),
368
+ // return next match that has a token
369
+ lex: /* @__PURE__ */ n(function() {
370
+ var o = this.next();
371
+ return o || this.lex();
372
+ }, "lex"),
373
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
374
+ begin: /* @__PURE__ */ n(function(o) {
375
+ this.conditionStack.push(o);
376
+ }, "begin"),
377
+ // pop the previously active lexer condition state off the condition stack
378
+ popState: /* @__PURE__ */ n(function() {
379
+ var o = this.conditionStack.length - 1;
380
+ return o > 0 ? this.conditionStack.pop() : this.conditionStack[0];
381
+ }, "popState"),
382
+ // produce the lexer rule set which is active for the currently active lexer condition state
383
+ _currentRules: /* @__PURE__ */ n(function() {
384
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
385
+ }, "_currentRules"),
386
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
387
+ topState: /* @__PURE__ */ n(function(o) {
388
+ return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
389
+ }, "topState"),
390
+ // alias for begin(condition)
391
+ pushState: /* @__PURE__ */ n(function(o) {
392
+ this.begin(o);
393
+ }, "pushState"),
394
+ // return the number of states currently on the stack
395
+ stateStackSize: /* @__PURE__ */ n(function() {
396
+ return this.conditionStack.length;
397
+ }, "stateStackSize"),
398
+ options: { "case-insensitive": !0 },
399
+ performAction: /* @__PURE__ */ n(function(o, c, g, b) {
400
+ switch (g) {
401
+ case 0:
402
+ break;
403
+ case 1:
404
+ break;
405
+ case 2:
406
+ return this.popState(), 34;
407
+ case 3:
408
+ return this.popState(), 34;
409
+ case 4:
410
+ return 34;
411
+ case 5:
412
+ break;
413
+ case 6:
414
+ return 10;
415
+ case 7:
416
+ return this.pushState("acc_title"), 19;
417
+ case 8:
418
+ return this.popState(), "acc_title_value";
419
+ case 9:
420
+ return this.pushState("acc_descr"), 21;
421
+ case 10:
422
+ return this.popState(), "acc_descr_value";
423
+ case 11:
424
+ this.pushState("acc_descr_multiline");
425
+ break;
426
+ case 12:
427
+ this.popState();
428
+ break;
429
+ case 13:
430
+ return "acc_descr_multiline_value";
431
+ case 14:
432
+ return 5;
433
+ case 15:
434
+ return 5;
435
+ case 16:
436
+ return 8;
437
+ case 17:
438
+ return this.pushState("axis_data"), "X_AXIS";
439
+ case 18:
440
+ return this.pushState("axis_data"), "Y_AXIS";
441
+ case 19:
442
+ return this.pushState("axis_band_data"), 24;
443
+ case 20:
444
+ return 31;
445
+ case 21:
446
+ return this.pushState("data"), 16;
447
+ case 22:
448
+ return this.pushState("data"), 18;
449
+ case 23:
450
+ return this.pushState("data_inner"), 24;
451
+ case 24:
452
+ return 27;
453
+ case 25:
454
+ return this.popState(), 26;
455
+ case 26:
456
+ this.popState();
457
+ break;
458
+ case 27:
459
+ this.pushState("string");
460
+ break;
461
+ case 28:
462
+ this.popState();
463
+ break;
464
+ case 29:
465
+ return "STR";
466
+ case 30:
467
+ return 24;
468
+ case 31:
469
+ return 26;
470
+ case 32:
471
+ return 43;
472
+ case 33:
473
+ return "COLON";
474
+ case 34:
475
+ return 44;
476
+ case 35:
477
+ return 28;
478
+ case 36:
479
+ return 45;
480
+ case 37:
481
+ return 46;
482
+ case 38:
483
+ return 48;
484
+ case 39:
485
+ return 50;
486
+ case 40:
487
+ return 47;
488
+ case 41:
489
+ return 41;
490
+ case 42:
491
+ return 49;
492
+ case 43:
493
+ return 42;
494
+ case 44:
495
+ break;
496
+ case 45:
497
+ return 35;
498
+ case 46:
499
+ return 36;
500
+ }
501
+ }, "anonymous"),
502
+ rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:xychart\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
503
+ conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [], inclusive: !1 }, md_string: { rules: [], inclusive: !1 }, string: { rules: [28, 29], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 } }
504
+ };
505
+ return z;
506
+ }();
507
+ Q.lexer = J;
508
+ function O() {
509
+ this.yy = {};
510
+ }
511
+ return n(O, "Parser"), O.prototype = Q, Q.Parser = O, new O();
512
+ }();
513
+ bt.parser = bt;
514
+ var Ti = bt;
515
+ function At(t) {
516
+ return t.type === "bar";
517
+ }
518
+ n(At, "isBarPlot");
519
+ function kt(t) {
520
+ return t.type === "band";
521
+ }
522
+ n(kt, "isBandAxisData");
523
+ function j(t) {
524
+ return t.type === "linear";
525
+ }
526
+ n(j, "isLinearAxisData");
527
+ var rt, Vt = (rt = class {
528
+ constructor(t) {
529
+ this.parentGroup = t;
530
+ }
531
+ getMaxDimension(t, i) {
532
+ if (!this.parentGroup)
533
+ return {
534
+ width: t.reduce((h, x) => Math.max(x.length, h), 0) * i,
535
+ height: i
536
+ };
537
+ const e = {
538
+ width: 0,
539
+ height: 0
540
+ }, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
541
+ for (const h of t) {
542
+ const x = xi(s, 1, h), u = x ? x.width : h.length * i, f = x ? x.height : i;
543
+ e.width = Math.max(e.width, u), e.height = Math.max(e.height, f);
544
+ }
545
+ return s.remove(), e;
546
+ }
547
+ }, n(rt, "TextDimensionCalculatorWithFont"), rt), Ft = 0.7, Bt = 0.2, lt, Yt = (lt = class {
548
+ constructor(t, i, e, s) {
549
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = s, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
550
+ }
551
+ setRange(t) {
552
+ this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
553
+ }
554
+ getRange() {
555
+ return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
556
+ }
557
+ setAxisPosition(t) {
558
+ this.axisPosition = t, this.setRange(this.range);
559
+ }
560
+ getTickDistance() {
561
+ const t = this.getRange();
562
+ return Math.abs(t[0] - t[1]) / this.getTickValues().length;
563
+ }
564
+ getAxisOuterPadding() {
565
+ return this.outerPadding;
566
+ }
567
+ getLabelDimension() {
568
+ return this.textDimensionCalculator.getMaxDimension(
569
+ this.getTickValues().map((t) => t.toString()),
570
+ this.axisConfig.labelFontSize
571
+ );
572
+ }
573
+ recalculateOuterPaddingToDrawBar() {
574
+ Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
575
+ }
576
+ calculateSpaceIfDrawnHorizontally(t) {
577
+ let i = t.height;
578
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
579
+ const e = this.getLabelDimension(), s = Bt * t.width;
580
+ this.outerPadding = Math.min(e.width / 2, s);
581
+ const h = e.height + this.axisConfig.labelPadding * 2;
582
+ this.labelTextHeight = e.height, h <= i && (i -= h, this.showLabel = !0);
583
+ }
584
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
585
+ const e = this.textDimensionCalculator.getMaxDimension(
586
+ [this.title],
587
+ this.axisConfig.titleFontSize
588
+ ), s = e.height + this.axisConfig.titlePadding * 2;
589
+ this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = !0);
590
+ }
591
+ this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
592
+ }
593
+ calculateSpaceIfDrawnVertical(t) {
594
+ let i = t.width;
595
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
596
+ const e = this.getLabelDimension(), s = Bt * t.height;
597
+ this.outerPadding = Math.min(e.height / 2, s);
598
+ const h = e.width + this.axisConfig.labelPadding * 2;
599
+ h <= i && (i -= h, this.showLabel = !0);
600
+ }
601
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
602
+ const e = this.textDimensionCalculator.getMaxDimension(
603
+ [this.title],
604
+ this.axisConfig.titleFontSize
605
+ ), s = e.height + this.axisConfig.titlePadding * 2;
606
+ this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = !0);
607
+ }
608
+ this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
609
+ }
610
+ calculateSpace(t) {
611
+ return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
612
+ width: this.boundingRect.width,
613
+ height: this.boundingRect.height
614
+ };
615
+ }
616
+ setBoundingBoxXY(t) {
617
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
618
+ }
619
+ getDrawableElementsForLeftAxis() {
620
+ const t = [];
621
+ if (this.showAxisLine) {
622
+ const i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
623
+ t.push({
624
+ type: "path",
625
+ groupTexts: ["left-axis", "axisl-line"],
626
+ data: [
627
+ {
628
+ path: `M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y + this.boundingRect.height} `,
629
+ strokeFill: this.axisThemeConfig.axisLineColor,
630
+ strokeWidth: this.axisConfig.axisLineWidth
631
+ }
632
+ ]
633
+ });
634
+ }
635
+ if (this.showLabel && t.push({
636
+ type: "text",
637
+ groupTexts: ["left-axis", "label"],
638
+ data: this.getTickValues().map((i) => ({
639
+ text: i.toString(),
640
+ x: this.boundingRect.x + this.boundingRect.width - (this.showLabel ? this.axisConfig.labelPadding : 0) - (this.showTick ? this.axisConfig.tickLength : 0) - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
641
+ y: this.getScaleValue(i),
642
+ fill: this.axisThemeConfig.labelColor,
643
+ fontSize: this.axisConfig.labelFontSize,
644
+ rotation: 0,
645
+ verticalPos: "middle",
646
+ horizontalPos: "right"
647
+ }))
648
+ }), this.showTick) {
649
+ const i = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
650
+ t.push({
651
+ type: "path",
652
+ groupTexts: ["left-axis", "ticks"],
653
+ data: this.getTickValues().map((e) => ({
654
+ path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
655
+ strokeFill: this.axisThemeConfig.tickColor,
656
+ strokeWidth: this.axisConfig.tickWidth
657
+ }))
658
+ });
659
+ }
660
+ return this.showTitle && t.push({
661
+ type: "text",
662
+ groupTexts: ["left-axis", "title"],
663
+ data: [
664
+ {
665
+ text: this.title,
666
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
667
+ y: this.boundingRect.y + this.boundingRect.height / 2,
668
+ fill: this.axisThemeConfig.titleColor,
669
+ fontSize: this.axisConfig.titleFontSize,
670
+ rotation: 270,
671
+ verticalPos: "top",
672
+ horizontalPos: "center"
673
+ }
674
+ ]
675
+ }), t;
676
+ }
677
+ getDrawableElementsForBottomAxis() {
678
+ const t = [];
679
+ if (this.showAxisLine) {
680
+ const i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
681
+ t.push({
682
+ type: "path",
683
+ groupTexts: ["bottom-axis", "axis-line"],
684
+ data: [
685
+ {
686
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
687
+ strokeFill: this.axisThemeConfig.axisLineColor,
688
+ strokeWidth: this.axisConfig.axisLineWidth
689
+ }
690
+ ]
691
+ });
692
+ }
693
+ if (this.showLabel && t.push({
694
+ type: "text",
695
+ groupTexts: ["bottom-axis", "label"],
696
+ data: this.getTickValues().map((i) => ({
697
+ text: i.toString(),
698
+ x: this.getScaleValue(i),
699
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
700
+ fill: this.axisThemeConfig.labelColor,
701
+ fontSize: this.axisConfig.labelFontSize,
702
+ rotation: 0,
703
+ verticalPos: "top",
704
+ horizontalPos: "center"
705
+ }))
706
+ }), this.showTick) {
707
+ const i = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
708
+ t.push({
709
+ type: "path",
710
+ groupTexts: ["bottom-axis", "ticks"],
711
+ data: this.getTickValues().map((e) => ({
712
+ path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
713
+ strokeFill: this.axisThemeConfig.tickColor,
714
+ strokeWidth: this.axisConfig.tickWidth
715
+ }))
716
+ });
717
+ }
718
+ return this.showTitle && t.push({
719
+ type: "text",
720
+ groupTexts: ["bottom-axis", "title"],
721
+ data: [
722
+ {
723
+ text: this.title,
724
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
725
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
726
+ fill: this.axisThemeConfig.titleColor,
727
+ fontSize: this.axisConfig.titleFontSize,
728
+ rotation: 0,
729
+ verticalPos: "top",
730
+ horizontalPos: "center"
731
+ }
732
+ ]
733
+ }), t;
734
+ }
735
+ getDrawableElementsForTopAxis() {
736
+ const t = [];
737
+ if (this.showAxisLine) {
738
+ const i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
739
+ t.push({
740
+ type: "path",
741
+ groupTexts: ["top-axis", "axis-line"],
742
+ data: [
743
+ {
744
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
745
+ strokeFill: this.axisThemeConfig.axisLineColor,
746
+ strokeWidth: this.axisConfig.axisLineWidth
747
+ }
748
+ ]
749
+ });
750
+ }
751
+ if (this.showLabel && t.push({
752
+ type: "text",
753
+ groupTexts: ["top-axis", "label"],
754
+ data: this.getTickValues().map((i) => ({
755
+ text: i.toString(),
756
+ x: this.getScaleValue(i),
757
+ y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
758
+ fill: this.axisThemeConfig.labelColor,
759
+ fontSize: this.axisConfig.labelFontSize,
760
+ rotation: 0,
761
+ verticalPos: "top",
762
+ horizontalPos: "center"
763
+ }))
764
+ }), this.showTick) {
765
+ const i = this.boundingRect.y;
766
+ t.push({
767
+ type: "path",
768
+ groupTexts: ["top-axis", "ticks"],
769
+ data: this.getTickValues().map((e) => ({
770
+ path: `M ${this.getScaleValue(e)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
771
+ strokeFill: this.axisThemeConfig.tickColor,
772
+ strokeWidth: this.axisConfig.tickWidth
773
+ }))
774
+ });
775
+ }
776
+ return this.showTitle && t.push({
777
+ type: "text",
778
+ groupTexts: ["top-axis", "title"],
779
+ data: [
780
+ {
781
+ text: this.title,
782
+ x: this.boundingRect.x + this.boundingRect.width / 2,
783
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
784
+ fill: this.axisThemeConfig.titleColor,
785
+ fontSize: this.axisConfig.titleFontSize,
786
+ rotation: 0,
787
+ verticalPos: "top",
788
+ horizontalPos: "center"
789
+ }
790
+ ]
791
+ }), t;
792
+ }
793
+ getDrawableElements() {
794
+ if (this.axisPosition === "left")
795
+ return this.getDrawableElementsForLeftAxis();
796
+ if (this.axisPosition === "right")
797
+ throw Error("Drawing of right axis is not implemented");
798
+ return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
799
+ }
800
+ }, n(lt, "BaseAxis"), lt), ct, Ri = (ct = class extends Yt {
801
+ constructor(t, i, e, s, h) {
802
+ super(t, s, h, i), this.categories = e, this.scale = yt().domain(this.categories).range(this.getRange());
803
+ }
804
+ setRange(t) {
805
+ super.setRange(t);
806
+ }
807
+ recalculateScale() {
808
+ this.scale = yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Nt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
809
+ }
810
+ getTickValues() {
811
+ return this.categories;
812
+ }
813
+ getScaleValue(t) {
814
+ return this.scale(t) ?? this.getRange()[0];
815
+ }
816
+ }, n(ct, "BandAxis"), ct), gt, Di = (gt = class extends Yt {
817
+ constructor(t, i, e, s, h) {
818
+ super(t, s, h, i), this.domain = e, this.scale = Wt().domain(this.domain).range(this.getRange());
819
+ }
820
+ getTickValues() {
821
+ return this.scale.ticks();
822
+ }
823
+ recalculateScale() {
824
+ const t = [...this.domain];
825
+ this.axisPosition === "left" && t.reverse(), this.scale = Wt().domain(t).range(this.getRange());
826
+ }
827
+ getScaleValue(t) {
828
+ return this.scale(t);
829
+ }
830
+ }, n(gt, "LinearAxis"), gt);
831
+ function wt(t, i, e, s) {
832
+ const h = new Vt(s);
833
+ return kt(t) ? new Ri(
834
+ i,
835
+ e,
836
+ t.categories,
837
+ t.title,
838
+ h
839
+ ) : new Di(
840
+ i,
841
+ e,
842
+ [t.min, t.max],
843
+ t.title,
844
+ h
845
+ );
846
+ }
847
+ n(wt, "getAxis");
848
+ var ut, Li = (ut = class {
849
+ constructor(t, i, e, s) {
850
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
851
+ x: 0,
852
+ y: 0,
853
+ width: 0,
854
+ height: 0
855
+ }, this.showChartTitle = !1;
856
+ }
857
+ setBoundingBoxXY(t) {
858
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
859
+ }
860
+ calculateSpace(t) {
861
+ const i = this.textDimensionCalculator.getMaxDimension(
862
+ [this.chartData.title],
863
+ this.chartConfig.titleFontSize
864
+ ), e = Math.max(i.width, t.width), s = i.height + 2 * this.chartConfig.titlePadding;
865
+ return i.width <= e && i.height <= s && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = s, this.showChartTitle = !0), {
866
+ width: this.boundingRect.width,
867
+ height: this.boundingRect.height
868
+ };
869
+ }
870
+ getDrawableElements() {
871
+ const t = [];
872
+ return this.showChartTitle && t.push({
873
+ groupTexts: ["chart-title"],
874
+ type: "text",
875
+ data: [
876
+ {
877
+ fontSize: this.chartConfig.titleFontSize,
878
+ text: this.chartData.title,
879
+ verticalPos: "middle",
880
+ horizontalPos: "center",
881
+ x: this.boundingRect.x + this.boundingRect.width / 2,
882
+ y: this.boundingRect.y + this.boundingRect.height / 2,
883
+ fill: this.chartThemeConfig.titleColor,
884
+ rotation: 0
885
+ }
886
+ ]
887
+ }), t;
888
+ }
889
+ }, n(ut, "ChartTitle"), ut);
890
+ function Ut(t, i, e, s) {
891
+ const h = new Vt(s);
892
+ return new Li(h, t, i, e);
893
+ }
894
+ n(Ut, "getChartTitleComponent");
895
+ var xt, Pi = (xt = class {
896
+ constructor(t, i, e, s, h) {
897
+ this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = h;
898
+ }
899
+ getDrawableElement() {
900
+ const t = this.plotData.data.map((e) => [
901
+ this.xAxis.getScaleValue(e[0]),
902
+ this.yAxis.getScaleValue(e[1])
903
+ ]);
904
+ let i;
905
+ return this.orientation === "horizontal" ? i = zt().y((e) => e[0]).x((e) => e[1])(t) : i = zt().x((e) => e[0]).y((e) => e[1])(t), i ? [
906
+ {
907
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`],
908
+ type: "path",
909
+ data: [
910
+ {
911
+ path: i,
912
+ strokeFill: this.plotData.strokeFill,
913
+ strokeWidth: this.plotData.strokeWidth
914
+ }
915
+ ]
916
+ }
917
+ ] : [];
918
+ }
919
+ }, n(xt, "LinePlot"), xt), dt, vi = (dt = class {
920
+ constructor(t, i, e, s, h, x) {
921
+ this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = h, this.plotIndex = x;
922
+ }
923
+ getDrawableElement() {
924
+ const t = this.barData.data.map((s) => [
925
+ this.xAxis.getScaleValue(s[0]),
926
+ this.yAxis.getScaleValue(s[1])
927
+ ]), i = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), e = i / 2;
928
+ return this.orientation === "horizontal" ? [
929
+ {
930
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
931
+ type: "rect",
932
+ data: t.map((s) => ({
933
+ x: this.boundingRect.x,
934
+ y: s[0] - e,
935
+ height: i,
936
+ width: s[1] - this.boundingRect.x,
937
+ fill: this.barData.fill,
938
+ strokeWidth: 0,
939
+ strokeFill: this.barData.fill
940
+ }))
941
+ }
942
+ ] : [
943
+ {
944
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
945
+ type: "rect",
946
+ data: t.map((s) => ({
947
+ x: s[0] - e,
948
+ y: s[1],
949
+ width: i,
950
+ height: this.boundingRect.y + this.boundingRect.height - s[1],
951
+ fill: this.barData.fill,
952
+ strokeWidth: 0,
953
+ strokeFill: this.barData.fill
954
+ }))
955
+ }
956
+ ];
957
+ }
958
+ }, n(dt, "BarPlot"), dt), pt, Ei = (pt = class {
959
+ constructor(t, i, e) {
960
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
961
+ x: 0,
962
+ y: 0,
963
+ width: 0,
964
+ height: 0
965
+ };
966
+ }
967
+ setAxes(t, i) {
968
+ this.xAxis = t, this.yAxis = i;
969
+ }
970
+ setBoundingBoxXY(t) {
971
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
972
+ }
973
+ calculateSpace(t) {
974
+ return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
975
+ width: this.boundingRect.width,
976
+ height: this.boundingRect.height
977
+ };
978
+ }
979
+ getDrawableElements() {
980
+ if (!(this.xAxis && this.yAxis))
981
+ throw Error("Axes must be passed to render Plots");
982
+ const t = [];
983
+ for (const [i, e] of this.chartData.plots.entries())
984
+ switch (e.type) {
985
+ case "line":
986
+ {
987
+ const s = new Pi(
988
+ e,
989
+ this.xAxis,
990
+ this.yAxis,
991
+ this.chartConfig.chartOrientation,
992
+ i
993
+ );
994
+ t.push(...s.getDrawableElement());
995
+ }
996
+ break;
997
+ case "bar":
998
+ {
999
+ const s = new vi(
1000
+ e,
1001
+ this.boundingRect,
1002
+ this.xAxis,
1003
+ this.yAxis,
1004
+ this.chartConfig.chartOrientation,
1005
+ i
1006
+ );
1007
+ t.push(...s.getDrawableElement());
1008
+ }
1009
+ break;
1010
+ }
1011
+ return t;
1012
+ }
1013
+ }, n(pt, "BasePlot"), pt);
1014
+ function Ht(t, i, e) {
1015
+ return new Ei(t, i, e);
1016
+ }
1017
+ n(Ht, "getPlotComponent");
1018
+ var ft, Ii = (ft = class {
1019
+ constructor(t, i, e, s) {
1020
+ this.chartConfig = t, this.chartData = i, this.componentStore = {
1021
+ title: Ut(t, i, e, s),
1022
+ plot: Ht(t, i, e),
1023
+ xAxis: wt(
1024
+ i.xAxis,
1025
+ t.xAxis,
1026
+ {
1027
+ titleColor: e.xAxisTitleColor,
1028
+ labelColor: e.xAxisLabelColor,
1029
+ tickColor: e.xAxisTickColor,
1030
+ axisLineColor: e.xAxisLineColor
1031
+ },
1032
+ s
1033
+ ),
1034
+ yAxis: wt(
1035
+ i.yAxis,
1036
+ t.yAxis,
1037
+ {
1038
+ titleColor: e.yAxisTitleColor,
1039
+ labelColor: e.yAxisLabelColor,
1040
+ tickColor: e.yAxisTickColor,
1041
+ axisLineColor: e.yAxisLineColor
1042
+ },
1043
+ s
1044
+ )
1045
+ };
1046
+ }
1047
+ calculateVerticalSpace() {
1048
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, h = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), x = Math.floor(
1049
+ i * this.chartConfig.plotReservedSpacePercent / 100
1050
+ ), u = this.componentStore.plot.calculateSpace({
1051
+ width: h,
1052
+ height: x
1053
+ });
1054
+ t -= u.width, i -= u.height, u = this.componentStore.title.calculateSpace({
1055
+ width: this.chartConfig.width,
1056
+ height: i
1057
+ }), s = u.height, i -= u.height, this.componentStore.xAxis.setAxisPosition("bottom"), u = this.componentStore.xAxis.calculateSpace({
1058
+ width: t,
1059
+ height: i
1060
+ }), i -= u.height, this.componentStore.yAxis.setAxisPosition("left"), u = this.componentStore.yAxis.calculateSpace({
1061
+ width: t,
1062
+ height: i
1063
+ }), e = u.width, t -= u.width, t > 0 && (h += t, t = 0), i > 0 && (x += i, i = 0), this.componentStore.plot.calculateSpace({
1064
+ width: h,
1065
+ height: x
1066
+ }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + h]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + x }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((f) => At(f)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1067
+ }
1068
+ calculateHorizontalSpace() {
1069
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, h = 0, x = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
1070
+ i * this.chartConfig.plotReservedSpacePercent / 100
1071
+ ), f = this.componentStore.plot.calculateSpace({
1072
+ width: x,
1073
+ height: u
1074
+ });
1075
+ t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
1076
+ width: this.chartConfig.width,
1077
+ height: i
1078
+ }), e = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("left"), f = this.componentStore.xAxis.calculateSpace({
1079
+ width: t,
1080
+ height: i
1081
+ }), t -= f.width, s = f.width, this.componentStore.yAxis.setAxisPosition("top"), f = this.componentStore.yAxis.calculateSpace({
1082
+ width: t,
1083
+ height: i
1084
+ }), i -= f.height, h = e + f.height, t > 0 && (x += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
1085
+ width: x,
1086
+ height: u
1087
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: h }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([h, h + u]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: h }), this.chartData.plots.some((S) => At(S)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1088
+ }
1089
+ calculateSpace() {
1090
+ this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1091
+ }
1092
+ getDrawableElement() {
1093
+ this.calculateSpace();
1094
+ const t = [];
1095
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1096
+ for (const i of Object.values(this.componentStore))
1097
+ t.push(...i.getDrawableElements());
1098
+ return t;
1099
+ }
1100
+ }, n(ft, "Orchestrator"), ft), mt, $i = (mt = class {
1101
+ static build(t, i, e, s) {
1102
+ return new Ii(t, i, e, s).getDrawableElement();
1103
+ }
1104
+ }, n(mt, "XYChartBuilder"), mt), G = 0, jt, K = Rt(), q = Tt(), y = Dt(), St = q.plotColorPalette.split(",").map((t) => t.trim()), et = !1, _t = !1;
1105
+ function Tt() {
1106
+ const t = gi(), i = Ct();
1107
+ return Xt(t.xyChart, i.themeVariables.xyChart);
1108
+ }
1109
+ n(Tt, "getChartDefaultThemeConfig");
1110
+ function Rt() {
1111
+ const t = Ct();
1112
+ return Xt(
1113
+ ui.xyChart,
1114
+ t.xyChart
1115
+ );
1116
+ }
1117
+ n(Rt, "getChartDefaultConfig");
1118
+ function Dt() {
1119
+ return {
1120
+ yAxis: {
1121
+ type: "linear",
1122
+ title: "",
1123
+ min: 1 / 0,
1124
+ max: -1 / 0
1125
+ },
1126
+ xAxis: {
1127
+ type: "band",
1128
+ title: "",
1129
+ categories: []
1130
+ },
1131
+ title: "",
1132
+ plots: []
1133
+ };
1134
+ }
1135
+ n(Dt, "getChartDefaultData");
1136
+ function st(t) {
1137
+ const i = Ct();
1138
+ return di(t.trim(), i);
1139
+ }
1140
+ n(st, "textSanitizer");
1141
+ function Qt(t) {
1142
+ jt = t;
1143
+ }
1144
+ n(Qt, "setTmpSVGG");
1145
+ function Gt(t) {
1146
+ t === "horizontal" ? K.chartOrientation = "horizontal" : K.chartOrientation = "vertical";
1147
+ }
1148
+ n(Gt, "setOrientation");
1149
+ function Kt(t) {
1150
+ y.xAxis.title = st(t.text);
1151
+ }
1152
+ n(Kt, "setXAxisTitle");
1153
+ function Lt(t, i) {
1154
+ y.xAxis = { type: "linear", title: y.xAxis.title, min: t, max: i }, et = !0;
1155
+ }
1156
+ n(Lt, "setXAxisRangeData");
1157
+ function qt(t) {
1158
+ y.xAxis = {
1159
+ type: "band",
1160
+ title: y.xAxis.title,
1161
+ categories: t.map((i) => st(i.text))
1162
+ }, et = !0;
1163
+ }
1164
+ n(qt, "setXAxisBand");
1165
+ function Jt(t) {
1166
+ y.yAxis.title = st(t.text);
1167
+ }
1168
+ n(Jt, "setYAxisTitle");
1169
+ function Zt(t, i) {
1170
+ y.yAxis = { type: "linear", title: y.yAxis.title, min: t, max: i }, _t = !0;
1171
+ }
1172
+ n(Zt, "setYAxisRangeData");
1173
+ function ti(t) {
1174
+ const i = Math.min(...t), e = Math.max(...t), s = j(y.yAxis) ? y.yAxis.min : 1 / 0, h = j(y.yAxis) ? y.yAxis.max : -1 / 0;
1175
+ y.yAxis = {
1176
+ type: "linear",
1177
+ title: y.yAxis.title,
1178
+ min: Math.min(s, i),
1179
+ max: Math.max(h, e)
1180
+ };
1181
+ }
1182
+ n(ti, "setYAxisRangeFromPlotData");
1183
+ function Pt(t) {
1184
+ let i = [];
1185
+ if (t.length === 0)
1186
+ return i;
1187
+ if (!et) {
1188
+ const e = j(y.xAxis) ? y.xAxis.min : 1 / 0, s = j(y.xAxis) ? y.xAxis.max : -1 / 0;
1189
+ Lt(Math.min(e, 1), Math.max(s, t.length));
1190
+ }
1191
+ if (_t || ti(t), kt(y.xAxis) && (i = y.xAxis.categories.map((e, s) => [e, t[s]])), j(y.xAxis)) {
1192
+ const e = y.xAxis.min, s = y.xAxis.max, h = (s - e) / (t.length - 1), x = [];
1193
+ for (let u = e; u <= s; u += h)
1194
+ x.push(`${u}`);
1195
+ i = x.map((u, f) => [u, t[f]]);
1196
+ }
1197
+ return i;
1198
+ }
1199
+ n(Pt, "transformDataWithoutCategory");
1200
+ function vt(t) {
1201
+ return St[t === 0 ? 0 : t % St.length];
1202
+ }
1203
+ n(vt, "getPlotColorFromPalette");
1204
+ function ii(t, i) {
1205
+ const e = Pt(i);
1206
+ y.plots.push({
1207
+ type: "line",
1208
+ strokeFill: vt(G),
1209
+ strokeWidth: 2,
1210
+ data: e
1211
+ }), G++;
1212
+ }
1213
+ n(ii, "setLineData");
1214
+ function ei(t, i) {
1215
+ const e = Pt(i);
1216
+ y.plots.push({
1217
+ type: "bar",
1218
+ fill: vt(G),
1219
+ data: e
1220
+ }), G++;
1221
+ }
1222
+ n(ei, "setBarData");
1223
+ function si() {
1224
+ if (y.plots.length === 0)
1225
+ throw Error("No Plot to render, please provide a plot with some data");
1226
+ return y.title = Ot(), $i.build(K, y, q, jt);
1227
+ }
1228
+ n(si, "getDrawableElem");
1229
+ function ni() {
1230
+ return q;
1231
+ }
1232
+ n(ni, "getChartThemeConfig");
1233
+ function ai() {
1234
+ return K;
1235
+ }
1236
+ n(ai, "getChartConfig");
1237
+ function hi() {
1238
+ return y;
1239
+ }
1240
+ n(hi, "getXYChartData");
1241
+ var Mi = /* @__PURE__ */ n(function() {
1242
+ Ai(), G = 0, K = Rt(), y = Dt(), q = Tt(), St = q.plotColorPalette.split(",").map((t) => t.trim()), et = !1, _t = !1;
1243
+ }, "clear"), zi = {
1244
+ getDrawableElem: si,
1245
+ clear: Mi,
1246
+ setAccTitle: pi,
1247
+ getAccTitle: fi,
1248
+ setDiagramTitle: mi,
1249
+ getDiagramTitle: Ot,
1250
+ getAccDescription: yi,
1251
+ setAccDescription: bi,
1252
+ setOrientation: Gt,
1253
+ setXAxisTitle: Kt,
1254
+ setXAxisRangeData: Lt,
1255
+ setXAxisBand: qt,
1256
+ setYAxisTitle: Jt,
1257
+ setYAxisRangeData: Zt,
1258
+ setLineData: ii,
1259
+ setBarData: ei,
1260
+ setTmpSVGG: Qt,
1261
+ getChartThemeConfig: ni,
1262
+ getChartConfig: ai,
1263
+ getXYChartData: hi
1264
+ }, Wi = /* @__PURE__ */ n((t, i, e, s) => {
1265
+ const h = s.db, x = h.getChartThemeConfig(), u = h.getChartConfig(), f = h.getXYChartData().plots[0].data.map((p) => p[1]);
1266
+ function S(p) {
1267
+ return p === "top" ? "text-before-edge" : "middle";
1268
+ }
1269
+ n(S, "getDominantBaseLine");
1270
+ function R(p) {
1271
+ return p === "left" ? "start" : p === "right" ? "end" : "middle";
1272
+ }
1273
+ n(R, "getTextAnchor");
1274
+ function D(p) {
1275
+ return `translate(${p.x}, ${p.y}) rotate(${p.rotation || 0})`;
1276
+ }
1277
+ n(D, "getTextTransformation"), Nt.debug(`Rendering xychart chart
1278
+ ` + t);
1279
+ const A = wi(i), m = A.append("g").attr("class", "main"), v = m.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
1280
+ Si(A, u.height, u.width, !0), A.attr("viewBox", `0 0 ${u.width} ${u.height}`), v.attr("fill", x.backgroundColor), h.setTmpSVGG(A.append("g").attr("class", "mermaid-tmp-group"));
1281
+ const T = h.getDrawableElem(), L = {};
1282
+ function E(p) {
1283
+ let C = m, l = "";
1284
+ for (const [F] of p.entries()) {
1285
+ let B = m;
1286
+ F > 0 && L[l] && (B = L[l]), l += p[F], C = L[l], C || (C = L[l] = B.append("g").attr("class", p[F]));
1287
+ }
1288
+ return C;
1289
+ }
1290
+ n(E, "getGroup");
1291
+ for (const p of T) {
1292
+ if (p.data.length === 0)
1293
+ continue;
1294
+ const C = E(p.groupTexts);
1295
+ switch (p.type) {
1296
+ case "rect":
1297
+ if (C.selectAll("rect").data(p.data).enter().append("rect").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).attr("fill", (l) => l.fill).attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth), u.showDataLabel)
1298
+ if (u.chartOrientation === "horizontal") {
1299
+ let l = function(r, P) {
1300
+ const { data: w, label: k } = r;
1301
+ return P * k.length * F <= w.width - 10;
1302
+ };
1303
+ n(l, "fitsHorizontally");
1304
+ const F = 0.7, B = p.data.map((r, P) => ({ data: r, label: f[P].toString() })).filter((r) => r.data.width > 0 && r.data.height > 0), U = B.map((r) => {
1305
+ const { data: P } = r;
1306
+ let w = P.height * 0.7;
1307
+ for (; !l(r, w) && w > 0; )
1308
+ w -= 1;
1309
+ return w;
1310
+ }), N = Math.floor(Math.min(...U));
1311
+ C.selectAll("text").data(B).enter().append("text").attr("x", (r) => r.data.x + r.data.width - 10).attr("y", (r) => r.data.y + r.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${N}px`).text((r) => r.label);
1312
+ } else {
1313
+ let l = function(r, P, w) {
1314
+ const { data: k, label: Q } = r, J = P * Q.length * 0.7, O = k.x + k.width / 2, z = O - J / 2, o = O + J / 2, c = z >= k.x && o <= k.x + k.width, g = k.y + w + P <= k.y + k.height;
1315
+ return c && g;
1316
+ };
1317
+ n(l, "fitsInBar");
1318
+ const F = 10, B = p.data.map((r, P) => ({ data: r, label: f[P].toString() })).filter((r) => r.data.width > 0 && r.data.height > 0), U = B.map((r) => {
1319
+ const { data: P, label: w } = r;
1320
+ let k = P.width / (w.length * 0.7);
1321
+ for (; !l(r, k, F) && k > 0; )
1322
+ k -= 1;
1323
+ return k;
1324
+ }), N = Math.floor(Math.min(...U));
1325
+ C.selectAll("text").data(B).enter().append("text").attr("x", (r) => r.data.x + r.data.width / 2).attr("y", (r) => r.data.y + F).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${N}px`).text((r) => r.label);
1326
+ }
1327
+ break;
1328
+ case "text":
1329
+ C.selectAll("text").data(p.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (l) => l.fill).attr("font-size", (l) => l.fontSize).attr("dominant-baseline", (l) => S(l.verticalPos)).attr("text-anchor", (l) => R(l.horizontalPos)).attr("transform", (l) => D(l)).text((l) => l.text);
1330
+ break;
1331
+ case "path":
1332
+ C.selectAll("path").data(p.data).enter().append("path").attr("d", (l) => l.path).attr("fill", (l) => l.fill ? l.fill : "none").attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
1333
+ break;
1334
+ }
1335
+ }
1336
+ }, "draw"), Fi = {
1337
+ draw: Wi
1338
+ }, ji = {
1339
+ parser: Ti,
1340
+ db: zi,
1341
+ renderer: Fi
1342
+ };
1343
+ export {
1344
+ ji as diagram
1345
+ };