@spteck/react-controls-v2 2.3.91 → 2.4.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 (319) hide show
  1. package/dist/LocalizationProvider-BbfcY9z3.cjs +2 -0
  2. package/dist/{LocalizationProvider-te5iu_6z.js → LocalizationProvider-CvSHuk0e.js} +46 -46
  3. package/dist/{ar-Blifx2MN.js → ar-BPzd6WER.js} +1 -1
  4. package/dist/ar-CBSdRr5Q.cjs +2 -0
  5. package/dist/az-DoZjCfF0.cjs +2 -0
  6. package/dist/{az-CMhDjtnj.js → az-MWX-WDgc.js} +1 -1
  7. package/dist/{bg-C96WirSv.js → bg-CvRGS4sF.js} +1 -1
  8. package/dist/bg-DI8UD_HF.cjs +2 -0
  9. package/dist/bs-DQhZlEEo.cjs +2 -0
  10. package/dist/{bs-_St1wBE_.js → bs-aXQgChJT.js} +1 -1
  11. package/dist/{ca-QlLcV4wf.js → ca-BCXCXzgh.js} +1 -1
  12. package/dist/ca-DSC32tOX.cjs +2 -0
  13. package/dist/components/dropDownField/IOption.d.ts +2 -0
  14. package/dist/components/iconButton/IconButtonProps.d.ts +2 -0
  15. package/dist/cs-B0C33FJt.cjs +2 -0
  16. package/dist/{cs-MrS2bH7F.js → cs-VHWnqXwJ.js} +1 -1
  17. package/dist/cy-BNabORao.cjs +2 -0
  18. package/dist/{cy-BX97Tgwk.js → cy-qF-aNCW-.js} +1 -1
  19. package/dist/da-BmgXTEXm.cjs +2 -0
  20. package/dist/{da-BnewPPrh.js → da-rR5TnSBw.js} +1 -1
  21. package/dist/de-B4w38-0d.cjs +2 -0
  22. package/dist/{de-BSZuzGTL.js → de-DbeDjRNp.js} +1 -1
  23. package/dist/el-Cgk6VsxL.cjs +2 -0
  24. package/dist/{el-DrOk3N7-.js → el-DDeD6FiX.js} +1 -1
  25. package/dist/es-3ugMIZuA.cjs +2 -0
  26. package/dist/{es-CGqzubZ2.js → es-dvKffn6Q.js} +1 -1
  27. package/dist/et-CIIzxbat.cjs +2 -0
  28. package/dist/{et-DGqkocuq.js → et-DgZFBtK7.js} +1 -1
  29. package/dist/eu-BUNUOJ7E.cjs +2 -0
  30. package/dist/{eu-DEo7fdTW.js → eu-C6r1_PRy.js} +1 -1
  31. package/dist/{fi-DxErwnd5.js → fi-CzOKgmjK.js} +1 -1
  32. package/dist/fi-q6BFPHtt.cjs +2 -0
  33. package/dist/fr-BEnCZ733.cjs +2 -0
  34. package/dist/{fr-zrtSZX0o.js → fr-D0cDkdbn.js} +1 -1
  35. package/dist/{ga-CbHxGc9_.js → ga-0A7ndSzw.js} +1 -1
  36. package/dist/ga-BXyKTnJr.cjs +2 -0
  37. package/dist/{gl--w0P3RY4.js → gl-BNwj4XAu.js} +1 -1
  38. package/dist/gl-DR1C-hSi.cjs +2 -0
  39. package/dist/{he-DY19lzWp.js → he-BPiZ6D5h.js} +1 -1
  40. package/dist/he-OD1Ex2Fw.cjs +2 -0
  41. package/dist/{hi-CFSsoO_8.js → hi-CSgtp9Yg.js} +1 -1
  42. package/dist/hi-Dt9FvBmh.cjs +2 -0
  43. package/dist/{hr-DIRJ1Z8e.js → hr-CDSSj52Q.js} +1 -1
  44. package/dist/hr-DMzwNhar.cjs +2 -0
  45. package/dist/hu-Bc-rChfV.cjs +2 -0
  46. package/dist/{hu-DqYPRWZh.js → hu-TDJYiDOB.js} +1 -1
  47. package/dist/{id-Dgj7SUCi.js → id-B3IF5pnh.js} +1 -1
  48. package/dist/id-CwndN9HH.cjs +2 -0
  49. package/dist/index.cjs +105 -114
  50. package/dist/index.js +6162 -18503
  51. package/dist/{it-QdChHqVN.js → it-BLET318M.js} +1 -1
  52. package/dist/it-DaYS5Vil.cjs +2 -0
  53. package/dist/ja-BYA2LXHy.cjs +2 -0
  54. package/dist/{ja-BNS0BbY-.js → ja-NxwXLaKV.js} +1 -1
  55. package/dist/{kk-Dhkax68h.js → kk-CceJcjtl.js} +1 -1
  56. package/dist/kk-Ctrvuqlz.cjs +2 -0
  57. package/dist/{ko-heRMHZWp.js → ko-cS_OE967.js} +1 -1
  58. package/dist/ko-evIcpTG8.cjs +2 -0
  59. package/dist/lt-CYTLGgh6.cjs +2 -0
  60. package/dist/{lt-Decqbo8S.js → lt-CZ-kk_5b.js} +1 -1
  61. package/dist/{lv-wZASv0Lw.js → lv-BTvPpEjc.js} +1 -1
  62. package/dist/lv-COjitD3w.cjs +2 -0
  63. package/dist/mk-B-LF5gVL.cjs +2 -0
  64. package/dist/{mk-BTsLGTJT.js → mk-CSSyI3El.js} +1 -1
  65. package/dist/ms-CzEvkib0.cjs +2 -0
  66. package/dist/{ms-C0cVNwky.js → ms-Dz5JnKJ1.js} +1 -1
  67. package/dist/nb-B1KWSX94.cjs +2 -0
  68. package/dist/{nb-DGX4q4tS.js → nb-DkgTg1et.js} +1 -1
  69. package/dist/{nl-CnXZa8tZ.js → nl-CQ5eoxw2.js} +1 -1
  70. package/dist/nl-knWqo2aX.cjs +2 -0
  71. package/dist/{pl-DbIdTNpg.js → pl-BQJfOizT.js} +1 -1
  72. package/dist/pl-Ce6dq53t.cjs +2 -0
  73. package/dist/providers.cjs +1 -1
  74. package/dist/providers.js +1 -1
  75. package/dist/pt-BVqTnGkF.cjs +2 -0
  76. package/dist/{pt-CcKYweQk.js → pt-b0p7DoD0.js} +1 -1
  77. package/dist/ro-DqJMfhmX.cjs +2 -0
  78. package/dist/{ro-C-8tiqgA.js → ro-sbBtUVJV.js} +1 -1
  79. package/dist/ru-Dm2NAQyK.cjs +2 -0
  80. package/dist/{ru-Dhnz96q2.js → ru-ofzbka6D.js} +1 -1
  81. package/dist/sk-BNe6CHG-.cjs +2 -0
  82. package/dist/{sk-BU-Z5EsC.js → sk-BtpdNCPC.js} +1 -1
  83. package/dist/{sl-CcfjJFxo.js → sl-B4GsKLu6.js} +1 -1
  84. package/dist/sl-BKmEUGyu.cjs +2 -0
  85. package/dist/{sr-S53unrLA.js → sr-C76YVpkQ.js} +1 -1
  86. package/dist/sr-Dwya5lwF.cjs +2 -0
  87. package/dist/sv-BGL2G9Vm.cjs +2 -0
  88. package/dist/{sv-BiJrVfZr.js → sv-PesX57cX.js} +1 -1
  89. package/dist/{th-vQ7LQ7nD.js → th-CbCNOBnR.js} +1 -1
  90. package/dist/th-DEv6shFI.cjs +2 -0
  91. package/dist/{tr-C5RrNGLz.js → tr-B0TPxXKS.js} +1 -1
  92. package/dist/tr-BB-QonGE.cjs +2 -0
  93. package/dist/uk-B-3fLKpR.cjs +2 -0
  94. package/dist/{uk-WGCFH0fY.js → uk-_9cNoBNe.js} +1 -1
  95. package/dist/{vi-Waa7HkXq.js → vi-B8SfqLW6.js} +1 -1
  96. package/dist/vi-Dx6pJ0ir.cjs +2 -0
  97. package/dist/zh-DD0ml2HG.cjs +2 -0
  98. package/dist/{zh-BmUS7Wn_.js → zh-DqHnbp6B.js} +1 -1
  99. package/package.json +6 -3
  100. package/dist/LocalizationProvider-B6NxHbu2.cjs +0 -2
  101. package/dist/_arrayEach-BuSFKyFt.js +0 -54
  102. package/dist/_arrayEach-ChR-TejB.cjs +0 -2
  103. package/dist/_getTag-BRuLtYrv.js +0 -28
  104. package/dist/_getTag-D6VVyrEu.cjs +0 -2
  105. package/dist/ar-ip3bGOX3.cjs +0 -2
  106. package/dist/arc-4yb49ncY.js +0 -82
  107. package/dist/arc-djsA8IT0.cjs +0 -2
  108. package/dist/architecture-PBZL5I3N-CvTfVLFi.js +0 -3
  109. package/dist/architecture-PBZL5I3N-wZIE3ggH.cjs +0 -1
  110. package/dist/architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs +0 -37
  111. package/dist/architectureDiagram-2XIMDMQ5-g-HotzpG.js +0 -4047
  112. package/dist/array-BNB_vRFv.cjs +0 -2
  113. package/dist/array-DP0duYiO.js +0 -8
  114. package/dist/az-CyVLdUDz.cjs +0 -2
  115. package/dist/bg-Bexoz3hL.cjs +0 -2
  116. package/dist/blockDiagram-WCTKOSBZ-DWgb5Ghz.js +0 -3165
  117. package/dist/blockDiagram-WCTKOSBZ-Dl04FBAy.cjs +0 -133
  118. package/dist/bs-MMcvhwLv.cjs +0 -2
  119. package/dist/c4Diagram-IC4MRINW-ClZvialQ.js +0 -2966
  120. package/dist/c4Diagram-IC4MRINW-ZFE2cGZP.cjs +0 -11
  121. package/dist/ca-BspMSeHN.cjs +0 -2
  122. package/dist/channel-2Bqnb1FY.js +0 -7
  123. package/dist/channel-5_aP1EVB.cjs +0 -2
  124. package/dist/chunk-4BX2VUAB-B5Va_oZz.js +0 -10
  125. package/dist/chunk-4BX2VUAB-BWDW-gYk.cjs +0 -2
  126. package/dist/chunk-55IACEB6-4ind_ByS.cjs +0 -2
  127. package/dist/chunk-55IACEB6-Pcyz_aR_.js +0 -10
  128. package/dist/chunk-7E7YKBS2-Sw9_w4gt.cjs +0 -2
  129. package/dist/chunk-7E7YKBS2-VHdgsed6.js +0 -25
  130. package/dist/chunk-7R4GIKGN-BKoqTTU_.cjs +0 -81
  131. package/dist/chunk-7R4GIKGN-CaQJ0QBF.js +0 -2598
  132. package/dist/chunk-C72U2L5F-CCvi6jiy.cjs +0 -2
  133. package/dist/chunk-C72U2L5F-MjJQTOMh.js +0 -25
  134. package/dist/chunk-D-IZpNpi.cjs +0 -1
  135. package/dist/chunk-EGIJ26TM-Bffl84Wq.cjs +0 -2
  136. package/dist/chunk-EGIJ26TM-DLMAfvpZ.js +0 -25
  137. package/dist/chunk-FMBD7UC4-BvqqU04Z.cjs +0 -16
  138. package/dist/chunk-FMBD7UC4-xjRtkFXe.js +0 -7
  139. package/dist/chunk-GEFDOKGD-BNgT40Ex.js +0 -1302
  140. package/dist/chunk-GEFDOKGD-BOwd6Jqp.cjs +0 -3
  141. package/dist/chunk-GLR3WWYH-DdNAJNRC.cjs +0 -2
  142. package/dist/chunk-GLR3WWYH-kyo6BUtq.js +0 -43
  143. package/dist/chunk-HHEYEP7N-DO1AYIZw.js +0 -11
  144. package/dist/chunk-HHEYEP7N-pdmgQZzP.cjs +0 -2
  145. package/dist/chunk-JSJVCQXG-Ci0seBb4.cjs +0 -2
  146. package/dist/chunk-JSJVCQXG-DowfYWcD.js +0 -62
  147. package/dist/chunk-KX2RTZJC-BJeOHReu.cjs +0 -2
  148. package/dist/chunk-KX2RTZJC-D-bUTSNy.js +0 -27
  149. package/dist/chunk-KYZI473N-DEPuSXaW.js +0 -3436
  150. package/dist/chunk-KYZI473N-DzBMFOER.cjs +0 -54
  151. package/dist/chunk-L3YUKLVL-BDGCTzmy.js +0 -25
  152. package/dist/chunk-L3YUKLVL-BZ17sqh5.cjs +0 -2
  153. package/dist/chunk-MX3YWQON-CAsnAj2e.js +0 -82
  154. package/dist/chunk-MX3YWQON-DulrBJdn.cjs +0 -2
  155. package/dist/chunk-NBPlniwU.js +0 -23
  156. package/dist/chunk-NQ4KR5QH-BJBAT2kM.cjs +0 -221
  157. package/dist/chunk-NQ4KR5QH-DFem-ORD.js +0 -2004
  158. package/dist/chunk-O4XLMI2P-BQF7MAo7.cjs +0 -8
  159. package/dist/chunk-O4XLMI2P-DA4TPzPG.js +0 -513
  160. package/dist/chunk-OZEHJAEY-CAiiXJUP.cjs +0 -2
  161. package/dist/chunk-OZEHJAEY-D7SX2SbR.js +0 -66
  162. package/dist/chunk-PQ6SQG4A-BZnW4-Sd.cjs +0 -2
  163. package/dist/chunk-PQ6SQG4A-ObFGkauo.js +0 -69
  164. package/dist/chunk-PU5JKC2W-BM5NPS-q.js +0 -1887
  165. package/dist/chunk-PU5JKC2W-eRU8wnTH.cjs +0 -71
  166. package/dist/chunk-QZHKN3VN-Dhli_tM0.cjs +0 -2
  167. package/dist/chunk-QZHKN3VN-x258g6EH.js +0 -17
  168. package/dist/chunk-R5LLSJPH-CNTEucEd.cjs +0 -2
  169. package/dist/chunk-R5LLSJPH-Gt27ml2m.js +0 -37
  170. package/dist/chunk-WL4C6EOR-CQXw6d0l.cjs +0 -190
  171. package/dist/chunk-WL4C6EOR-DuM6QmqM.js +0 -3196
  172. package/dist/chunk-XIRO2GV7-CswC9CO8.cjs +0 -2
  173. package/dist/chunk-XIRO2GV7-DXlO8X82.js +0 -32
  174. package/dist/chunk-XPW4576I-Bpsr4SZJ.js +0 -1148
  175. package/dist/chunk-XPW4576I-C68T-WIW.cjs +0 -33
  176. package/dist/chunk-XZSTWKYB-DJv9rEVU.cjs +0 -95
  177. package/dist/chunk-XZSTWKYB-jD9M1izK.js +0 -16132
  178. package/dist/chunk-YBOYWFTD-B6CeuteH.js +0 -34
  179. package/dist/chunk-YBOYWFTD-CiLW6HW_.cjs +0 -2
  180. package/dist/classDiagram-VBA2DB6C-Us0kuDfz.cjs +0 -2
  181. package/dist/classDiagram-VBA2DB6C-VOsE3gN0.js +0 -31
  182. package/dist/classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs +0 -2
  183. package/dist/classDiagram-v2-RAHNMMFH-DPqMNfOz.js +0 -31
  184. package/dist/cose-bilkent-S5V4N54A-CKhwzobJ.js +0 -2252
  185. package/dist/cose-bilkent-S5V4N54A-DmyaRQ6l.cjs +0 -2
  186. package/dist/cs-FZSeHYld.cjs +0 -2
  187. package/dist/cy-CzQmM2lQ.cjs +0 -2
  188. package/dist/cytoscape.esm-CcJAI0wG.cjs +0 -322
  189. package/dist/cytoscape.esm-D9EjU25_.js +0 -18102
  190. package/dist/da-CexFt-Oj.cjs +0 -2
  191. package/dist/dagre-CpEPaL3r.cjs +0 -2
  192. package/dist/dagre-Dd8wCGc6.js +0 -1305
  193. package/dist/dagre-KLK3FWXG-BpxkjvB3.js +0 -294
  194. package/dist/dagre-KLK3FWXG-DIznPQl_.cjs +0 -5
  195. package/dist/de-B68HwuYu.cjs +0 -2
  196. package/dist/defaultLocale-CYOzCjwh.js +0 -203
  197. package/dist/defaultLocale-DSgylVA1.cjs +0 -2
  198. package/dist/diagram-E7M64L7V-dXqTi77U.cjs +0 -25
  199. package/dist/diagram-E7M64L7V-oX07GVAD.js +0 -529
  200. package/dist/diagram-IFDJBPK2-CriVAAmI.cjs +0 -44
  201. package/dist/diagram-IFDJBPK2-lCNF06_S.js +0 -215
  202. package/dist/diagram-P4PSJMXO-TfwVJh4S.js +0 -135
  203. package/dist/diagram-P4PSJMXO-k7F0lH6Q.cjs +0 -25
  204. package/dist/dist-CV9Ez7cn.js +0 -52
  205. package/dist/dist-DVthN7lF.cjs +0 -2
  206. package/dist/el-DQc4jSMd.cjs +0 -2
  207. package/dist/erDiagram-INFDFZHY-CDt3mOSU.cjs +0 -71
  208. package/dist/erDiagram-INFDFZHY-Ds_R2Ds4.js +0 -1668
  209. package/dist/es-DI8Y4Bv1.cjs +0 -2
  210. package/dist/et-DfaryKvp.cjs +0 -2
  211. package/dist/eu-BVOSXciF.cjs +0 -2
  212. package/dist/fi-C5L-OzaI.cjs +0 -2
  213. package/dist/flowDiagram-PKNHOUZH-7XJG07fo.cjs +0 -163
  214. package/dist/flowDiagram-PKNHOUZH-CkeYebJ5.js +0 -4163
  215. package/dist/fr-yFvjqx8B.cjs +0 -2
  216. package/dist/ga-6mVQhlWi.cjs +0 -2
  217. package/dist/ganttDiagram-A5KZAMGK-Bbck1pyM.cjs +0 -293
  218. package/dist/ganttDiagram-A5KZAMGK-CFT3Xn_r.js +0 -3074
  219. package/dist/gitGraph-HDMCJU4V-BKE04oIl.js +0 -3
  220. package/dist/gitGraph-HDMCJU4V-C9GYfOYb.cjs +0 -1
  221. package/dist/gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js +0 -627
  222. package/dist/gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs +0 -66
  223. package/dist/gl-BJzJe1sq.cjs +0 -2
  224. package/dist/graphlib-CPo7oIsu.js +0 -223
  225. package/dist/graphlib-CmUS4Qin.cjs +0 -2
  226. package/dist/he-B3Bw3qr0.cjs +0 -2
  227. package/dist/hi-kofL-mD8.cjs +0 -2
  228. package/dist/hr-CDxqA9Jm.cjs +0 -2
  229. package/dist/hu-Defen_75.cjs +0 -2
  230. package/dist/id-DcwMRgmX.cjs +0 -2
  231. package/dist/identity-6JlhFhuM.cjs +0 -2
  232. package/dist/identity-C1jKsMoW.js +0 -395
  233. package/dist/info-3K5VOQVL-DfN_3mKd.js +0 -3
  234. package/dist/info-3K5VOQVL-d6J9FY0_.cjs +0 -1
  235. package/dist/infoDiagram-LFFYTUFH-Bp9btqnA.cjs +0 -3
  236. package/dist/infoDiagram-LFFYTUFH-DnvgRFnx.js +0 -21
  237. package/dist/init-BAFZAp9S.cjs +0 -2
  238. package/dist/init-m0TwgR4W.js +0 -17
  239. package/dist/isEmpty-BTp1uKIj.cjs +0 -2
  240. package/dist/isEmpty-uXVYZZYe.js +0 -17
  241. package/dist/ishikawaDiagram-PHBUUO56-DLaOkz38.js +0 -719
  242. package/dist/ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs +0 -71
  243. package/dist/it-D5nM6KCi.cjs +0 -2
  244. package/dist/ja-BtuHirv7.cjs +0 -2
  245. package/dist/journeyDiagram-4ABVD52K-Cv0DbLMi.cjs +0 -140
  246. package/dist/journeyDiagram-4ABVD52K-DYmmcNK4.js +0 -885
  247. package/dist/kanban-definition-K7BYSVSG-BdQLAMeB.cjs +0 -90
  248. package/dist/kanban-definition-K7BYSVSG-CLEYqSz5.js +0 -973
  249. package/dist/katex-B-Nju2J8.js +0 -22002
  250. package/dist/katex-WY67Rp7A.cjs +0 -266
  251. package/dist/kk-BSl8IqgQ.cjs +0 -2
  252. package/dist/ko-eplb1GD0.cjs +0 -2
  253. package/dist/line-CbEBKCYr.js +0 -36
  254. package/dist/line-DqSdvtRR.cjs +0 -2
  255. package/dist/linear-DvLDpS6A.cjs +0 -2
  256. package/dist/linear-Eb79THx6.js +0 -291
  257. package/dist/lt-DsYAWFbF.cjs +0 -2
  258. package/dist/lv-DHmTjCb8.cjs +0 -2
  259. package/dist/maplibre-gl-qSrG75fp.js +0 -33003
  260. package/dist/maplibre-gl-tm_pVdmb.cjs +0 -757
  261. package/dist/math-DR9t6ixc.cjs +0 -2
  262. package/dist/math-DyURnvXC.js +0 -12
  263. package/dist/mermaid-parser.core-BdTB9qx-.js +0 -61
  264. package/dist/mermaid-parser.core-BlzF5RRD.cjs +0 -4
  265. package/dist/mindmap-definition-YRQLILUH-CzcVgr-U.js +0 -966
  266. package/dist/mindmap-definition-YRQLILUH-zWN_YXC3.cjs +0 -69
  267. package/dist/mk-CCV_308U.cjs +0 -2
  268. package/dist/ms-CH83xVYN.cjs +0 -2
  269. package/dist/nb-DZ-DlwcL.cjs +0 -2
  270. package/dist/nl-Xdf-A19i.cjs +0 -2
  271. package/dist/ordinal-BAWGEQkf.js +0 -67
  272. package/dist/ordinal-CL2X4e2C.cjs +0 -2
  273. package/dist/packet-RMMSAZCW-Bek1stRX.cjs +0 -1
  274. package/dist/packet-RMMSAZCW-DUN6t9lN.js +0 -3
  275. package/dist/path-Bt6guLtL.cjs +0 -2
  276. package/dist/path-DSzKK8fH.js +0 -87
  277. package/dist/pie-UPGHQEXC-DjqNO54R.js +0 -3
  278. package/dist/pie-UPGHQEXC-pJq6_YgE.cjs +0 -1
  279. package/dist/pieDiagram-SKSYHLDU-Ba-c0fRA.cjs +0 -31
  280. package/dist/pieDiagram-SKSYHLDU-ya07MTY-.js +0 -167
  281. package/dist/pl-BStql1S-.cjs +0 -2
  282. package/dist/pt-Dk4jELuZ.cjs +0 -2
  283. package/dist/quadrantDiagram-337W2JSQ-CQQEVC49.cjs +0 -8
  284. package/dist/quadrantDiagram-337W2JSQ-Dp_QyIEO.js +0 -1976
  285. package/dist/radar-KQ55EAFF-Bid2hXXI.cjs +0 -1
  286. package/dist/radar-KQ55EAFF-C6zhEkCz.js +0 -3
  287. package/dist/requirementDiagram-Z7DCOOCP-CRl2914V.js +0 -2203
  288. package/dist/requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs +0 -74
  289. package/dist/ro-BvhMyTKh.cjs +0 -2
  290. package/dist/rough.esm-BjJ_weyP.cjs +0 -2
  291. package/dist/rough.esm-DBHP55VQ.js +0 -1354
  292. package/dist/ru-BQosng8l.cjs +0 -2
  293. package/dist/sankeyDiagram-WA2Y5GQK-BFrF47Iv.js +0 -922
  294. package/dist/sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs +0 -11
  295. package/dist/sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs +0 -146
  296. package/dist/sequenceDiagram-2WXFIKYE-BAd8OVlz.js +0 -4111
  297. package/dist/sk-BhA7UeAk.cjs +0 -2
  298. package/dist/sl-6Mczv4jG.cjs +0 -2
  299. package/dist/sr-CxObZdu0.cjs +0 -2
  300. package/dist/src-DFxq-N5I.cjs +0 -2
  301. package/dist/src-Dm6r9c7l.js +0 -2148
  302. package/dist/stateDiagram-RAJIS63D-C-tfqeC-.js +0 -219
  303. package/dist/stateDiagram-RAJIS63D-C1Aj8vJQ.cjs +0 -2
  304. package/dist/stateDiagram-v2-FVOUBMTO-C-w53gXL.js +0 -29
  305. package/dist/stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs +0 -2
  306. package/dist/sv-BfiunVuX.cjs +0 -2
  307. package/dist/th-BqLGltZi.cjs +0 -2
  308. package/dist/timeline-definition-YZTLITO2-CE1y2S_r.js +0 -832
  309. package/dist/timeline-definition-YZTLITO2-D8aFfnYE.cjs +0 -62
  310. package/dist/tr-Brwl4o_Z.cjs +0 -2
  311. package/dist/treemap-KZPCXAKY-D2v0uStP.cjs +0 -1
  312. package/dist/treemap-KZPCXAKY-DLE_f1Bk.js +0 -3
  313. package/dist/uk-CV49TRvS.cjs +0 -2
  314. package/dist/vennDiagram-LZ73GAT5-BSpVMORX.js +0 -1860
  315. package/dist/vennDiagram-LZ73GAT5-DvnB0e7u.cjs +0 -35
  316. package/dist/vi-JzM7bjn_.cjs +0 -2
  317. package/dist/xychartDiagram-JWTSCODW-0qbVGrDs.cjs +0 -8
  318. package/dist/xychartDiagram-JWTSCODW-DpIry-th.js +0 -2043
  319. package/dist/zh-DEm0SGzZ.cjs +0 -2
@@ -1,2043 +0,0 @@
1
- import { g as e, h as t } from "./src-Dm6r9c7l.js";
2
- import { B as n, C as r, E as i, L as a, V as o, W as s, _ as c, a as l, c as u, d, v as f, y as p } from "./chunk-7R4GIKGN-CaQJ0QBF.js";
3
- import { t as m } from "./linear-Eb79THx6.js";
4
- import { t as h } from "./ordinal-BAWGEQkf.js";
5
- import { t as g } from "./init-m0TwgR4W.js";
6
- import { r as _ } from "./chunk-GEFDOKGD-BNgT40Ex.js";
7
- import { t as v } from "./line-CbEBKCYr.js";
8
- import { t as y } from "./chunk-HHEYEP7N-DO1AYIZw.js";
9
- import { t as b } from "./chunk-PU5JKC2W-BM5NPS-q.js";
10
- //#region node_modules/d3-array/src/range.js
11
- function x(e, t, n) {
12
- e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
13
- for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
14
- return a;
15
- }
16
- //#endregion
17
- //#region node_modules/d3-scale/src/band.js
18
- function S() {
19
- var e = h().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
20
- delete e.unknown;
21
- function d() {
22
- var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
23
- a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
24
- var m = x(e).map(function(e) {
25
- return f + a * e;
26
- });
27
- return n(d ? m.reverse() : m);
28
- }
29
- return e.domain = function(e) {
30
- return arguments.length ? (t(e), d()) : t();
31
- }, e.range = function(e) {
32
- return arguments.length ? ([r, i] = e, r = +r, i = +i, d()) : [r, i];
33
- }, e.rangeRound = function(e) {
34
- return [r, i] = e, r = +r, i = +i, s = !0, d();
35
- }, e.bandwidth = function() {
36
- return o;
37
- }, e.step = function() {
38
- return a;
39
- }, e.round = function(e) {
40
- return arguments.length ? (s = !!e, d()) : s;
41
- }, e.padding = function(e) {
42
- return arguments.length ? (c = Math.min(1, l = +e), d()) : c;
43
- }, e.paddingInner = function(e) {
44
- return arguments.length ? (c = Math.min(1, e), d()) : c;
45
- }, e.paddingOuter = function(e) {
46
- return arguments.length ? (l = +e, d()) : l;
47
- }, e.align = function(e) {
48
- return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
49
- }, e.copy = function() {
50
- return S(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
51
- }, g.apply(d(), arguments);
52
- }
53
- //#endregion
54
- //#region node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-JWTSCODW.mjs
55
- var C = (function() {
56
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
57
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
58
- return n;
59
- }, "o"), n = [
60
- 1,
61
- 10,
62
- 12,
63
- 14,
64
- 16,
65
- 18,
66
- 19,
67
- 21,
68
- 23
69
- ], r = [2, 6], i = [1, 3], a = [1, 5], o = [1, 6], s = [1, 7], c = [
70
- 1,
71
- 5,
72
- 10,
73
- 12,
74
- 14,
75
- 16,
76
- 18,
77
- 19,
78
- 21,
79
- 23,
80
- 34,
81
- 35,
82
- 36
83
- ], l = [1, 25], u = [1, 26], d = [1, 28], f = [1, 29], p = [1, 30], m = [1, 31], h = [1, 32], g = [1, 33], _ = [1, 34], v = [1, 35], y = [1, 36], b = [1, 37], x = [1, 43], S = [1, 42], C = [1, 47], w = [1, 50], T = [
84
- 1,
85
- 10,
86
- 12,
87
- 14,
88
- 16,
89
- 18,
90
- 19,
91
- 21,
92
- 23,
93
- 34,
94
- 35,
95
- 36
96
- ], E = [
97
- 1,
98
- 10,
99
- 12,
100
- 14,
101
- 16,
102
- 18,
103
- 19,
104
- 21,
105
- 23,
106
- 24,
107
- 26,
108
- 27,
109
- 28,
110
- 34,
111
- 35,
112
- 36
113
- ], D = [
114
- 1,
115
- 10,
116
- 12,
117
- 14,
118
- 16,
119
- 18,
120
- 19,
121
- 21,
122
- 23,
123
- 24,
124
- 26,
125
- 27,
126
- 28,
127
- 34,
128
- 35,
129
- 36,
130
- 41,
131
- 42,
132
- 43,
133
- 44,
134
- 45,
135
- 46,
136
- 47,
137
- 48,
138
- 49,
139
- 50
140
- ], O = [1, 64], k = {
141
- trace: /* @__PURE__ */ t(function() {}, "trace"),
142
- yy: {},
143
- symbols_: {
144
- error: 2,
145
- start: 3,
146
- eol: 4,
147
- XYCHART: 5,
148
- chartConfig: 6,
149
- document: 7,
150
- CHART_ORIENTATION: 8,
151
- statement: 9,
152
- title: 10,
153
- text: 11,
154
- X_AXIS: 12,
155
- parseXAxis: 13,
156
- Y_AXIS: 14,
157
- parseYAxis: 15,
158
- LINE: 16,
159
- plotData: 17,
160
- BAR: 18,
161
- acc_title: 19,
162
- acc_title_value: 20,
163
- acc_descr: 21,
164
- acc_descr_value: 22,
165
- acc_descr_multiline_value: 23,
166
- SQUARE_BRACES_START: 24,
167
- commaSeparatedNumbers: 25,
168
- SQUARE_BRACES_END: 26,
169
- NUMBER_WITH_DECIMAL: 27,
170
- COMMA: 28,
171
- xAxisData: 29,
172
- bandData: 30,
173
- ARROW_DELIMITER: 31,
174
- commaSeparatedTexts: 32,
175
- yAxisData: 33,
176
- NEWLINE: 34,
177
- SEMI: 35,
178
- EOF: 36,
179
- alphaNum: 37,
180
- STR: 38,
181
- MD_STR: 39,
182
- alphaNumToken: 40,
183
- AMP: 41,
184
- NUM: 42,
185
- ALPHA: 43,
186
- PLUS: 44,
187
- EQUALS: 45,
188
- MULT: 46,
189
- DOT: 47,
190
- BRKT: 48,
191
- MINUS: 49,
192
- UNDERSCORE: 50,
193
- $accept: 0,
194
- $end: 1
195
- },
196
- terminals_: {
197
- 2: "error",
198
- 5: "XYCHART",
199
- 8: "CHART_ORIENTATION",
200
- 10: "title",
201
- 12: "X_AXIS",
202
- 14: "Y_AXIS",
203
- 16: "LINE",
204
- 18: "BAR",
205
- 19: "acc_title",
206
- 20: "acc_title_value",
207
- 21: "acc_descr",
208
- 22: "acc_descr_value",
209
- 23: "acc_descr_multiline_value",
210
- 24: "SQUARE_BRACES_START",
211
- 26: "SQUARE_BRACES_END",
212
- 27: "NUMBER_WITH_DECIMAL",
213
- 28: "COMMA",
214
- 31: "ARROW_DELIMITER",
215
- 34: "NEWLINE",
216
- 35: "SEMI",
217
- 36: "EOF",
218
- 38: "STR",
219
- 39: "MD_STR",
220
- 41: "AMP",
221
- 42: "NUM",
222
- 43: "ALPHA",
223
- 44: "PLUS",
224
- 45: "EQUALS",
225
- 46: "MULT",
226
- 47: "DOT",
227
- 48: "BRKT",
228
- 49: "MINUS",
229
- 50: "UNDERSCORE"
230
- },
231
- productions_: [
232
- 0,
233
- [3, 2],
234
- [3, 3],
235
- [3, 2],
236
- [3, 1],
237
- [6, 1],
238
- [7, 0],
239
- [7, 2],
240
- [9, 2],
241
- [9, 2],
242
- [9, 2],
243
- [9, 2],
244
- [9, 2],
245
- [9, 3],
246
- [9, 2],
247
- [9, 3],
248
- [9, 2],
249
- [9, 2],
250
- [9, 1],
251
- [17, 3],
252
- [25, 3],
253
- [25, 1],
254
- [13, 1],
255
- [13, 2],
256
- [13, 1],
257
- [29, 1],
258
- [29, 3],
259
- [30, 3],
260
- [32, 3],
261
- [32, 1],
262
- [15, 1],
263
- [15, 2],
264
- [15, 1],
265
- [33, 3],
266
- [4, 1],
267
- [4, 1],
268
- [4, 1],
269
- [11, 1],
270
- [11, 1],
271
- [11, 1],
272
- [37, 1],
273
- [37, 2],
274
- [40, 1],
275
- [40, 1],
276
- [40, 1],
277
- [40, 1],
278
- [40, 1],
279
- [40, 1],
280
- [40, 1],
281
- [40, 1],
282
- [40, 1],
283
- [40, 1]
284
- ],
285
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
286
- var s = a.length - 1;
287
- switch (i) {
288
- case 5:
289
- r.setOrientation(a[s]);
290
- break;
291
- case 9:
292
- r.setDiagramTitle(a[s].text.trim());
293
- break;
294
- case 12:
295
- r.setLineData({
296
- text: "",
297
- type: "text"
298
- }, a[s]);
299
- break;
300
- case 13:
301
- r.setLineData(a[s - 1], a[s]);
302
- break;
303
- case 14:
304
- r.setBarData({
305
- text: "",
306
- type: "text"
307
- }, a[s]);
308
- break;
309
- case 15:
310
- r.setBarData(a[s - 1], a[s]);
311
- break;
312
- case 16:
313
- this.$ = a[s].trim(), r.setAccTitle(this.$);
314
- break;
315
- case 17:
316
- case 18:
317
- this.$ = a[s].trim(), r.setAccDescription(this.$);
318
- break;
319
- case 19:
320
- this.$ = a[s - 1];
321
- break;
322
- case 20:
323
- this.$ = [Number(a[s - 2]), ...a[s]];
324
- break;
325
- case 21:
326
- this.$ = [Number(a[s])];
327
- break;
328
- case 22:
329
- r.setXAxisTitle(a[s]);
330
- break;
331
- case 23:
332
- r.setXAxisTitle(a[s - 1]);
333
- break;
334
- case 24:
335
- r.setXAxisTitle({
336
- type: "text",
337
- text: ""
338
- });
339
- break;
340
- case 25:
341
- r.setXAxisBand(a[s]);
342
- break;
343
- case 26:
344
- r.setXAxisRangeData(Number(a[s - 2]), Number(a[s]));
345
- break;
346
- case 27:
347
- this.$ = a[s - 1];
348
- break;
349
- case 28:
350
- this.$ = [a[s - 2], ...a[s]];
351
- break;
352
- case 29:
353
- this.$ = [a[s]];
354
- break;
355
- case 30:
356
- r.setYAxisTitle(a[s]);
357
- break;
358
- case 31:
359
- r.setYAxisTitle(a[s - 1]);
360
- break;
361
- case 32:
362
- r.setYAxisTitle({
363
- type: "text",
364
- text: ""
365
- });
366
- break;
367
- case 33:
368
- r.setYAxisRangeData(Number(a[s - 2]), Number(a[s]));
369
- break;
370
- case 37:
371
- this.$ = {
372
- text: a[s],
373
- type: "text"
374
- };
375
- break;
376
- case 38:
377
- this.$ = {
378
- text: a[s],
379
- type: "text"
380
- };
381
- break;
382
- case 39:
383
- this.$ = {
384
- text: a[s],
385
- type: "markdown"
386
- };
387
- break;
388
- case 40:
389
- this.$ = a[s];
390
- break;
391
- case 41:
392
- this.$ = a[s - 1] + "" + a[s];
393
- break;
394
- }
395
- }, "anonymous"),
396
- table: [
397
- e(n, r, {
398
- 3: 1,
399
- 4: 2,
400
- 7: 4,
401
- 5: i,
402
- 34: a,
403
- 35: o,
404
- 36: s
405
- }),
406
- { 1: [3] },
407
- e(n, r, {
408
- 4: 2,
409
- 7: 4,
410
- 3: 8,
411
- 5: i,
412
- 34: a,
413
- 35: o,
414
- 36: s
415
- }),
416
- e(n, r, {
417
- 4: 2,
418
- 7: 4,
419
- 6: 9,
420
- 3: 10,
421
- 5: i,
422
- 8: [1, 11],
423
- 34: a,
424
- 35: o,
425
- 36: s
426
- }),
427
- {
428
- 1: [2, 4],
429
- 9: 12,
430
- 10: [1, 13],
431
- 12: [1, 14],
432
- 14: [1, 15],
433
- 16: [1, 16],
434
- 18: [1, 17],
435
- 19: [1, 18],
436
- 21: [1, 19],
437
- 23: [1, 20]
438
- },
439
- e(c, [2, 34]),
440
- e(c, [2, 35]),
441
- e(c, [2, 36]),
442
- { 1: [2, 1] },
443
- e(n, r, {
444
- 4: 2,
445
- 7: 4,
446
- 3: 21,
447
- 5: i,
448
- 34: a,
449
- 35: o,
450
- 36: s
451
- }),
452
- { 1: [2, 3] },
453
- e(c, [2, 5]),
454
- e(n, [2, 7], {
455
- 4: 22,
456
- 34: a,
457
- 35: o,
458
- 36: s
459
- }),
460
- {
461
- 11: 23,
462
- 37: 24,
463
- 38: l,
464
- 39: u,
465
- 40: 27,
466
- 41: d,
467
- 42: f,
468
- 43: p,
469
- 44: m,
470
- 45: h,
471
- 46: g,
472
- 47: _,
473
- 48: v,
474
- 49: y,
475
- 50: b
476
- },
477
- {
478
- 11: 39,
479
- 13: 38,
480
- 24: x,
481
- 27: S,
482
- 29: 40,
483
- 30: 41,
484
- 37: 24,
485
- 38: l,
486
- 39: u,
487
- 40: 27,
488
- 41: d,
489
- 42: f,
490
- 43: p,
491
- 44: m,
492
- 45: h,
493
- 46: g,
494
- 47: _,
495
- 48: v,
496
- 49: y,
497
- 50: b
498
- },
499
- {
500
- 11: 45,
501
- 15: 44,
502
- 27: C,
503
- 33: 46,
504
- 37: 24,
505
- 38: l,
506
- 39: u,
507
- 40: 27,
508
- 41: d,
509
- 42: f,
510
- 43: p,
511
- 44: m,
512
- 45: h,
513
- 46: g,
514
- 47: _,
515
- 48: v,
516
- 49: y,
517
- 50: b
518
- },
519
- {
520
- 11: 49,
521
- 17: 48,
522
- 24: w,
523
- 37: 24,
524
- 38: l,
525
- 39: u,
526
- 40: 27,
527
- 41: d,
528
- 42: f,
529
- 43: p,
530
- 44: m,
531
- 45: h,
532
- 46: g,
533
- 47: _,
534
- 48: v,
535
- 49: y,
536
- 50: b
537
- },
538
- {
539
- 11: 52,
540
- 17: 51,
541
- 24: w,
542
- 37: 24,
543
- 38: l,
544
- 39: u,
545
- 40: 27,
546
- 41: d,
547
- 42: f,
548
- 43: p,
549
- 44: m,
550
- 45: h,
551
- 46: g,
552
- 47: _,
553
- 48: v,
554
- 49: y,
555
- 50: b
556
- },
557
- { 20: [1, 53] },
558
- { 22: [1, 54] },
559
- e(T, [2, 18]),
560
- { 1: [2, 2] },
561
- e(T, [2, 8]),
562
- e(T, [2, 9]),
563
- e(E, [2, 37], {
564
- 40: 55,
565
- 41: d,
566
- 42: f,
567
- 43: p,
568
- 44: m,
569
- 45: h,
570
- 46: g,
571
- 47: _,
572
- 48: v,
573
- 49: y,
574
- 50: b
575
- }),
576
- e(E, [2, 38]),
577
- e(E, [2, 39]),
578
- e(D, [2, 40]),
579
- e(D, [2, 42]),
580
- e(D, [2, 43]),
581
- e(D, [2, 44]),
582
- e(D, [2, 45]),
583
- e(D, [2, 46]),
584
- e(D, [2, 47]),
585
- e(D, [2, 48]),
586
- e(D, [2, 49]),
587
- e(D, [2, 50]),
588
- e(D, [2, 51]),
589
- e(T, [2, 10]),
590
- e(T, [2, 22], {
591
- 30: 41,
592
- 29: 56,
593
- 24: x,
594
- 27: S
595
- }),
596
- e(T, [2, 24]),
597
- e(T, [2, 25]),
598
- { 31: [1, 57] },
599
- {
600
- 11: 59,
601
- 32: 58,
602
- 37: 24,
603
- 38: l,
604
- 39: u,
605
- 40: 27,
606
- 41: d,
607
- 42: f,
608
- 43: p,
609
- 44: m,
610
- 45: h,
611
- 46: g,
612
- 47: _,
613
- 48: v,
614
- 49: y,
615
- 50: b
616
- },
617
- e(T, [2, 11]),
618
- e(T, [2, 30], {
619
- 33: 60,
620
- 27: C
621
- }),
622
- e(T, [2, 32]),
623
- { 31: [1, 61] },
624
- e(T, [2, 12]),
625
- {
626
- 17: 62,
627
- 24: w
628
- },
629
- {
630
- 25: 63,
631
- 27: O
632
- },
633
- e(T, [2, 14]),
634
- {
635
- 17: 65,
636
- 24: w
637
- },
638
- e(T, [2, 16]),
639
- e(T, [2, 17]),
640
- e(D, [2, 41]),
641
- e(T, [2, 23]),
642
- { 27: [1, 66] },
643
- { 26: [1, 67] },
644
- {
645
- 26: [2, 29],
646
- 28: [1, 68]
647
- },
648
- e(T, [2, 31]),
649
- { 27: [1, 69] },
650
- e(T, [2, 13]),
651
- { 26: [1, 70] },
652
- {
653
- 26: [2, 21],
654
- 28: [1, 71]
655
- },
656
- e(T, [2, 15]),
657
- e(T, [2, 26]),
658
- e(T, [2, 27]),
659
- {
660
- 11: 59,
661
- 32: 72,
662
- 37: 24,
663
- 38: l,
664
- 39: u,
665
- 40: 27,
666
- 41: d,
667
- 42: f,
668
- 43: p,
669
- 44: m,
670
- 45: h,
671
- 46: g,
672
- 47: _,
673
- 48: v,
674
- 49: y,
675
- 50: b
676
- },
677
- e(T, [2, 33]),
678
- e(T, [2, 19]),
679
- {
680
- 25: 73,
681
- 27: O
682
- },
683
- { 26: [2, 28] },
684
- { 26: [2, 20] }
685
- ],
686
- defaultActions: {
687
- 8: [2, 1],
688
- 10: [2, 3],
689
- 21: [2, 2],
690
- 72: [2, 28],
691
- 73: [2, 20]
692
- },
693
- parseError: /* @__PURE__ */ t(function(e, t) {
694
- if (t.recoverable) this.trace(e);
695
- else {
696
- var n = Error(e);
697
- throw n.hash = t, n;
698
- }
699
- }, "parseError"),
700
- parse: /* @__PURE__ */ t(function(e) {
701
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
702
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
703
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
704
- var v = h.yylloc;
705
- o.push(v);
706
- var y = h.options && h.options.ranges;
707
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
708
- function b(e) {
709
- r.length -= 2 * e, a.length -= e, o.length -= e;
710
- }
711
- t(b, "popStack");
712
- function x() {
713
- var e = i.pop() || h.lex() || p;
714
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
715
- }
716
- t(x, "lex");
717
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
718
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
719
- var M = "";
720
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
721
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
722
- text: h.match,
723
- token: this.terminals_[S] || S,
724
- line: h.yylineno,
725
- loc: v,
726
- expected: j
727
- });
728
- }
729
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
730
- switch (T[0]) {
731
- case 1:
732
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
733
- break;
734
- case 2:
735
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
736
- first_line: o[o.length - (k || 1)].first_line,
737
- last_line: o[o.length - 1].last_line,
738
- first_column: o[o.length - (k || 1)].first_column,
739
- last_column: o[o.length - 1].last_column
740
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
741
- c,
742
- u,
743
- l,
744
- g.yy,
745
- T[1],
746
- a,
747
- o
748
- ].concat(m)), E !== void 0) return E;
749
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
750
- break;
751
- case 3: return !0;
752
- }
753
- }
754
- return !0;
755
- }, "parse")
756
- };
757
- k.lexer = /* @__PURE__ */ (function() {
758
- return {
759
- EOF: 1,
760
- parseError: /* @__PURE__ */ t(function(e, t) {
761
- if (this.yy.parser) this.yy.parser.parseError(e, t);
762
- else throw Error(e);
763
- }, "parseError"),
764
- setInput: /* @__PURE__ */ t(function(e, t) {
765
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
766
- first_line: 1,
767
- first_column: 0,
768
- last_line: 1,
769
- last_column: 0
770
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
771
- }, "setInput"),
772
- input: /* @__PURE__ */ t(function() {
773
- var e = this._input[0];
774
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
775
- }, "input"),
776
- unput: /* @__PURE__ */ t(function(e) {
777
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
778
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
779
- var r = this.match.split(/(?:\r\n?|\n)/g);
780
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
781
- var i = this.yylloc.range;
782
- return this.yylloc = {
783
- first_line: this.yylloc.first_line,
784
- last_line: this.yylineno + 1,
785
- first_column: this.yylloc.first_column,
786
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
787
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
788
- }, "unput"),
789
- more: /* @__PURE__ */ t(function() {
790
- return this._more = !0, this;
791
- }, "more"),
792
- reject: /* @__PURE__ */ t(function() {
793
- if (this.options.backtrack_lexer) this._backtrack = !0;
794
- 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(), {
795
- text: "",
796
- token: null,
797
- line: this.yylineno
798
- });
799
- return this;
800
- }, "reject"),
801
- less: /* @__PURE__ */ t(function(e) {
802
- this.unput(this.match.slice(e));
803
- }, "less"),
804
- pastInput: /* @__PURE__ */ t(function() {
805
- var e = this.matched.substr(0, this.matched.length - this.match.length);
806
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
807
- }, "pastInput"),
808
- upcomingInput: /* @__PURE__ */ t(function() {
809
- var e = this.match;
810
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
811
- }, "upcomingInput"),
812
- showPosition: /* @__PURE__ */ t(function() {
813
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
814
- return e + this.upcomingInput() + "\n" + t + "^";
815
- }, "showPosition"),
816
- test_match: /* @__PURE__ */ t(function(e, t) {
817
- var n, r, i;
818
- if (this.options.backtrack_lexer && (i = {
819
- yylineno: this.yylineno,
820
- yylloc: {
821
- first_line: this.yylloc.first_line,
822
- last_line: this.last_line,
823
- first_column: this.yylloc.first_column,
824
- last_column: this.yylloc.last_column
825
- },
826
- yytext: this.yytext,
827
- match: this.match,
828
- matches: this.matches,
829
- matched: this.matched,
830
- yyleng: this.yyleng,
831
- offset: this.offset,
832
- _more: this._more,
833
- _input: this._input,
834
- yy: this.yy,
835
- conditionStack: this.conditionStack.slice(0),
836
- done: this.done
837
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
838
- first_line: this.yylloc.last_line,
839
- last_line: this.yylineno + 1,
840
- first_column: this.yylloc.last_column,
841
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
842
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
843
- if (this._backtrack) {
844
- for (var a in i) this[a] = i[a];
845
- return !1;
846
- }
847
- return !1;
848
- }, "test_match"),
849
- next: /* @__PURE__ */ t(function() {
850
- if (this.done) return this.EOF;
851
- this._input || (this.done = !0);
852
- var e, t, n, r;
853
- this._more || (this.yytext = "", this.match = "");
854
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
855
- if (t = n, r = a, this.options.backtrack_lexer) {
856
- if (e = this.test_match(n, i[a]), e !== !1) return e;
857
- if (this._backtrack) {
858
- t = !1;
859
- continue;
860
- } else return !1;
861
- } else if (!this.options.flex) break;
862
- }
863
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
864
- text: "",
865
- token: null,
866
- line: this.yylineno
867
- });
868
- }, "next"),
869
- lex: /* @__PURE__ */ t(function() {
870
- return this.next() || this.lex();
871
- }, "lex"),
872
- begin: /* @__PURE__ */ t(function(e) {
873
- this.conditionStack.push(e);
874
- }, "begin"),
875
- popState: /* @__PURE__ */ t(function() {
876
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
877
- }, "popState"),
878
- _currentRules: /* @__PURE__ */ t(function() {
879
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
880
- }, "_currentRules"),
881
- topState: /* @__PURE__ */ t(function(e) {
882
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
883
- }, "topState"),
884
- pushState: /* @__PURE__ */ t(function(e) {
885
- this.begin(e);
886
- }, "pushState"),
887
- stateStackSize: /* @__PURE__ */ t(function() {
888
- return this.conditionStack.length;
889
- }, "stateStackSize"),
890
- options: { "case-insensitive": !0 },
891
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
892
- switch (n) {
893
- case 0: break;
894
- case 1: break;
895
- case 2: return this.popState(), 34;
896
- case 3: return this.popState(), 34;
897
- case 4: return 34;
898
- case 5: break;
899
- case 6: return 10;
900
- case 7: return this.pushState("acc_title"), 19;
901
- case 8: return this.popState(), "acc_title_value";
902
- case 9: return this.pushState("acc_descr"), 21;
903
- case 10: return this.popState(), "acc_descr_value";
904
- case 11:
905
- this.pushState("acc_descr_multiline");
906
- break;
907
- case 12:
908
- this.popState();
909
- break;
910
- case 13: return "acc_descr_multiline_value";
911
- case 14: return 5;
912
- case 15: return 5;
913
- case 16: return 8;
914
- case 17: return this.pushState("axis_data"), "X_AXIS";
915
- case 18: return this.pushState("axis_data"), "Y_AXIS";
916
- case 19: return this.pushState("axis_band_data"), 24;
917
- case 20: return 31;
918
- case 21: return this.pushState("data"), 16;
919
- case 22: return this.pushState("data"), 18;
920
- case 23: return this.pushState("data_inner"), 24;
921
- case 24: return 27;
922
- case 25: return this.popState(), 26;
923
- case 26:
924
- this.popState();
925
- break;
926
- case 27:
927
- this.pushState("string");
928
- break;
929
- case 28:
930
- this.popState();
931
- break;
932
- case 29: return "STR";
933
- case 30: return 24;
934
- case 31: return 26;
935
- case 32: return 43;
936
- case 33: return "COLON";
937
- case 34: return 44;
938
- case 35: return 28;
939
- case 36: return 45;
940
- case 37: return 46;
941
- case 38: return 48;
942
- case 39: return 50;
943
- case 40: return 47;
944
- case 41: return 41;
945
- case 42: return 49;
946
- case 43: return 42;
947
- case 44: break;
948
- case 45: return 35;
949
- case 46: return 36;
950
- }
951
- }, "anonymous"),
952
- rules: [
953
- /^(?:%%(?!\{)[^\n]*)/i,
954
- /^(?:[^\}]%%[^\n]*)/i,
955
- /^(?:(\r?\n))/i,
956
- /^(?:(\r?\n))/i,
957
- /^(?:[\n\r]+)/i,
958
- /^(?:%%[^\n]*)/i,
959
- /^(?:title\b)/i,
960
- /^(?:accTitle\s*:\s*)/i,
961
- /^(?:(?!\n||)*[^\n]*)/i,
962
- /^(?:accDescr\s*:\s*)/i,
963
- /^(?:(?!\n||)*[^\n]*)/i,
964
- /^(?:accDescr\s*\{\s*)/i,
965
- /^(?:\})/i,
966
- /^(?:[^\}]*)/i,
967
- /^(?:xychart-beta\b)/i,
968
- /^(?:xychart\b)/i,
969
- /^(?:(?:vertical|horizontal))/i,
970
- /^(?:x-axis\b)/i,
971
- /^(?:y-axis\b)/i,
972
- /^(?:\[)/i,
973
- /^(?:-->)/i,
974
- /^(?:line\b)/i,
975
- /^(?:bar\b)/i,
976
- /^(?:\[)/i,
977
- /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,
978
- /^(?:\])/i,
979
- /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,
980
- /^(?:["])/i,
981
- /^(?:["])/i,
982
- /^(?:[^"]*)/i,
983
- /^(?:\[)/i,
984
- /^(?:\])/i,
985
- /^(?:[A-Za-z]+)/i,
986
- /^(?::)/i,
987
- /^(?:\+)/i,
988
- /^(?:,)/i,
989
- /^(?:=)/i,
990
- /^(?:\*)/i,
991
- /^(?:#)/i,
992
- /^(?:[\_])/i,
993
- /^(?:\.)/i,
994
- /^(?:&)/i,
995
- /^(?:-)/i,
996
- /^(?:[0-9]+)/i,
997
- /^(?:\s+)/i,
998
- /^(?:;)/i,
999
- /^(?:$)/i
1000
- ],
1001
- conditions: {
1002
- data_inner: {
1003
- rules: [
1004
- 0,
1005
- 1,
1006
- 4,
1007
- 5,
1008
- 6,
1009
- 7,
1010
- 9,
1011
- 11,
1012
- 14,
1013
- 15,
1014
- 16,
1015
- 17,
1016
- 18,
1017
- 21,
1018
- 22,
1019
- 24,
1020
- 25,
1021
- 26,
1022
- 27,
1023
- 30,
1024
- 31,
1025
- 32,
1026
- 33,
1027
- 34,
1028
- 35,
1029
- 36,
1030
- 37,
1031
- 38,
1032
- 39,
1033
- 40,
1034
- 41,
1035
- 42,
1036
- 43,
1037
- 44,
1038
- 45,
1039
- 46
1040
- ],
1041
- inclusive: !0
1042
- },
1043
- data: {
1044
- rules: [
1045
- 0,
1046
- 1,
1047
- 3,
1048
- 4,
1049
- 5,
1050
- 6,
1051
- 7,
1052
- 9,
1053
- 11,
1054
- 14,
1055
- 15,
1056
- 16,
1057
- 17,
1058
- 18,
1059
- 21,
1060
- 22,
1061
- 23,
1062
- 26,
1063
- 27,
1064
- 30,
1065
- 31,
1066
- 32,
1067
- 33,
1068
- 34,
1069
- 35,
1070
- 36,
1071
- 37,
1072
- 38,
1073
- 39,
1074
- 40,
1075
- 41,
1076
- 42,
1077
- 43,
1078
- 44,
1079
- 45,
1080
- 46
1081
- ],
1082
- inclusive: !0
1083
- },
1084
- axis_band_data: {
1085
- rules: [
1086
- 0,
1087
- 1,
1088
- 4,
1089
- 5,
1090
- 6,
1091
- 7,
1092
- 9,
1093
- 11,
1094
- 14,
1095
- 15,
1096
- 16,
1097
- 17,
1098
- 18,
1099
- 21,
1100
- 22,
1101
- 25,
1102
- 26,
1103
- 27,
1104
- 30,
1105
- 31,
1106
- 32,
1107
- 33,
1108
- 34,
1109
- 35,
1110
- 36,
1111
- 37,
1112
- 38,
1113
- 39,
1114
- 40,
1115
- 41,
1116
- 42,
1117
- 43,
1118
- 44,
1119
- 45,
1120
- 46
1121
- ],
1122
- inclusive: !0
1123
- },
1124
- axis_data: {
1125
- rules: [
1126
- 0,
1127
- 1,
1128
- 2,
1129
- 4,
1130
- 5,
1131
- 6,
1132
- 7,
1133
- 9,
1134
- 11,
1135
- 14,
1136
- 15,
1137
- 16,
1138
- 17,
1139
- 18,
1140
- 19,
1141
- 20,
1142
- 21,
1143
- 22,
1144
- 24,
1145
- 26,
1146
- 27,
1147
- 30,
1148
- 31,
1149
- 32,
1150
- 33,
1151
- 34,
1152
- 35,
1153
- 36,
1154
- 37,
1155
- 38,
1156
- 39,
1157
- 40,
1158
- 41,
1159
- 42,
1160
- 43,
1161
- 44,
1162
- 45,
1163
- 46
1164
- ],
1165
- inclusive: !0
1166
- },
1167
- acc_descr_multiline: {
1168
- rules: [12, 13],
1169
- inclusive: !1
1170
- },
1171
- acc_descr: {
1172
- rules: [10],
1173
- inclusive: !1
1174
- },
1175
- acc_title: {
1176
- rules: [8],
1177
- inclusive: !1
1178
- },
1179
- title: {
1180
- rules: [],
1181
- inclusive: !1
1182
- },
1183
- md_string: {
1184
- rules: [],
1185
- inclusive: !1
1186
- },
1187
- string: {
1188
- rules: [28, 29],
1189
- inclusive: !1
1190
- },
1191
- INITIAL: {
1192
- rules: [
1193
- 0,
1194
- 1,
1195
- 4,
1196
- 5,
1197
- 6,
1198
- 7,
1199
- 9,
1200
- 11,
1201
- 14,
1202
- 15,
1203
- 16,
1204
- 17,
1205
- 18,
1206
- 21,
1207
- 22,
1208
- 26,
1209
- 27,
1210
- 30,
1211
- 31,
1212
- 32,
1213
- 33,
1214
- 34,
1215
- 35,
1216
- 36,
1217
- 37,
1218
- 38,
1219
- 39,
1220
- 40,
1221
- 41,
1222
- 42,
1223
- 43,
1224
- 44,
1225
- 45,
1226
- 46
1227
- ],
1228
- inclusive: !0
1229
- }
1230
- }
1231
- };
1232
- })();
1233
- function A() {
1234
- this.yy = {};
1235
- }
1236
- return t(A, "Parser"), A.prototype = k, k.Parser = A, new A();
1237
- })();
1238
- C.parser = C;
1239
- var w = C;
1240
- function T(e) {
1241
- return e.type === "bar";
1242
- }
1243
- t(T, "isBarPlot");
1244
- function E(e) {
1245
- return e.type === "band";
1246
- }
1247
- t(E, "isBandAxisData");
1248
- function D(e) {
1249
- return e.type === "linear";
1250
- }
1251
- t(D, "isLinearAxisData");
1252
- var O = class {
1253
- constructor(e) {
1254
- this.parentGroup = e;
1255
- }
1256
- static {
1257
- t(this, "TextDimensionCalculatorWithFont");
1258
- }
1259
- getMaxDimension(e, t) {
1260
- if (!this.parentGroup) return {
1261
- width: e.reduce((e, t) => Math.max(t.length, e), 0) * t,
1262
- height: t
1263
- };
1264
- let n = {
1265
- width: 0,
1266
- height: 0
1267
- }, r = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", t);
1268
- for (let i of e) {
1269
- let e = b(r, 1, i), a = e ? e.width : i.length * t, o = e ? e.height : t;
1270
- n.width = Math.max(n.width, a), n.height = Math.max(n.height, o);
1271
- }
1272
- return r.remove(), n;
1273
- }
1274
- }, k = .7, A = .2, j = class {
1275
- constructor(e, t, n, r) {
1276
- this.axisConfig = e, this.title = t, this.textDimensionCalculator = n, this.axisThemeConfig = r, this.boundingRect = {
1277
- x: 0,
1278
- y: 0,
1279
- width: 0,
1280
- height: 0
1281
- }, 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 = {
1282
- x: 0,
1283
- y: 0,
1284
- width: 0,
1285
- height: 0
1286
- }, this.axisPosition = "left";
1287
- }
1288
- static {
1289
- t(this, "BaseAxis");
1290
- }
1291
- setRange(e) {
1292
- this.range = e, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = e[1] - e[0] : this.boundingRect.width = e[1] - e[0], this.recalculateScale();
1293
- }
1294
- getRange() {
1295
- return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
1296
- }
1297
- setAxisPosition(e) {
1298
- this.axisPosition = e, this.setRange(this.range);
1299
- }
1300
- getTickDistance() {
1301
- let e = this.getRange();
1302
- return Math.abs(e[0] - e[1]) / this.getTickValues().length;
1303
- }
1304
- getAxisOuterPadding() {
1305
- return this.outerPadding;
1306
- }
1307
- getLabelDimension() {
1308
- return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((e) => e.toString()), this.axisConfig.labelFontSize);
1309
- }
1310
- recalculateOuterPaddingToDrawBar() {
1311
- k * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(k * this.getTickDistance() / 2)), this.recalculateScale();
1312
- }
1313
- calculateSpaceIfDrawnHorizontally(e) {
1314
- let t = e.height;
1315
- if (this.axisConfig.showAxisLine && t > this.axisConfig.axisLineWidth && (t -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
1316
- let n = this.getLabelDimension(), r = A * e.width;
1317
- this.outerPadding = Math.min(n.width / 2, r);
1318
- let i = n.height + this.axisConfig.labelPadding * 2;
1319
- this.labelTextHeight = n.height, i <= t && (t -= i, this.showLabel = !0);
1320
- }
1321
- if (this.axisConfig.showTick && t >= this.axisConfig.tickLength && (this.showTick = !0, t -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
1322
- let e = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), n = e.height + this.axisConfig.titlePadding * 2;
1323
- this.titleTextHeight = e.height, n <= t && (t -= n, this.showTitle = !0);
1324
- }
1325
- this.boundingRect.width = e.width, this.boundingRect.height = e.height - t;
1326
- }
1327
- calculateSpaceIfDrawnVertical(e) {
1328
- let t = e.width;
1329
- if (this.axisConfig.showAxisLine && t > this.axisConfig.axisLineWidth && (t -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
1330
- let n = this.getLabelDimension(), r = A * e.height;
1331
- this.outerPadding = Math.min(n.height / 2, r);
1332
- let i = n.width + this.axisConfig.labelPadding * 2;
1333
- i <= t && (t -= i, this.showLabel = !0);
1334
- }
1335
- if (this.axisConfig.showTick && t >= this.axisConfig.tickLength && (this.showTick = !0, t -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
1336
- let e = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), n = e.height + this.axisConfig.titlePadding * 2;
1337
- this.titleTextHeight = e.height, n <= t && (t -= n, this.showTitle = !0);
1338
- }
1339
- this.boundingRect.width = e.width - t, this.boundingRect.height = e.height;
1340
- }
1341
- calculateSpace(e) {
1342
- return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(e) : this.calculateSpaceIfDrawnHorizontally(e), this.recalculateScale(), {
1343
- width: this.boundingRect.width,
1344
- height: this.boundingRect.height
1345
- };
1346
- }
1347
- setBoundingBoxXY(e) {
1348
- this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1349
- }
1350
- getDrawableElementsForLeftAxis() {
1351
- let e = [];
1352
- if (this.showAxisLine) {
1353
- let t = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
1354
- e.push({
1355
- type: "path",
1356
- groupTexts: ["left-axis", "axisl-line"],
1357
- data: [{
1358
- path: `M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y + this.boundingRect.height} `,
1359
- strokeFill: this.axisThemeConfig.axisLineColor,
1360
- strokeWidth: this.axisConfig.axisLineWidth
1361
- }]
1362
- });
1363
- }
1364
- if (this.showLabel && e.push({
1365
- type: "text",
1366
- groupTexts: ["left-axis", "label"],
1367
- data: this.getTickValues().map((e) => ({
1368
- text: e.toString(),
1369
- 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),
1370
- y: this.getScaleValue(e),
1371
- fill: this.axisThemeConfig.labelColor,
1372
- fontSize: this.axisConfig.labelFontSize,
1373
- rotation: 0,
1374
- verticalPos: "middle",
1375
- horizontalPos: "right"
1376
- }))
1377
- }), this.showTick) {
1378
- let t = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1379
- e.push({
1380
- type: "path",
1381
- groupTexts: ["left-axis", "ticks"],
1382
- data: this.getTickValues().map((e) => ({
1383
- path: `M ${t},${this.getScaleValue(e)} L ${t - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
1384
- strokeFill: this.axisThemeConfig.tickColor,
1385
- strokeWidth: this.axisConfig.tickWidth
1386
- }))
1387
- });
1388
- }
1389
- return this.showTitle && e.push({
1390
- type: "text",
1391
- groupTexts: ["left-axis", "title"],
1392
- data: [{
1393
- text: this.title,
1394
- x: this.boundingRect.x + this.axisConfig.titlePadding,
1395
- y: this.boundingRect.y + this.boundingRect.height / 2,
1396
- fill: this.axisThemeConfig.titleColor,
1397
- fontSize: this.axisConfig.titleFontSize,
1398
- rotation: 270,
1399
- verticalPos: "top",
1400
- horizontalPos: "center"
1401
- }]
1402
- }), e;
1403
- }
1404
- getDrawableElementsForBottomAxis() {
1405
- let e = [];
1406
- if (this.showAxisLine) {
1407
- let t = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
1408
- e.push({
1409
- type: "path",
1410
- groupTexts: ["bottom-axis", "axis-line"],
1411
- data: [{
1412
- path: `M ${this.boundingRect.x},${t} L ${this.boundingRect.x + this.boundingRect.width},${t}`,
1413
- strokeFill: this.axisThemeConfig.axisLineColor,
1414
- strokeWidth: this.axisConfig.axisLineWidth
1415
- }]
1416
- });
1417
- }
1418
- if (this.showLabel && e.push({
1419
- type: "text",
1420
- groupTexts: ["bottom-axis", "label"],
1421
- data: this.getTickValues().map((e) => ({
1422
- text: e.toString(),
1423
- x: this.getScaleValue(e),
1424
- y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
1425
- fill: this.axisThemeConfig.labelColor,
1426
- fontSize: this.axisConfig.labelFontSize,
1427
- rotation: 0,
1428
- verticalPos: "top",
1429
- horizontalPos: "center"
1430
- }))
1431
- }), this.showTick) {
1432
- let t = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1433
- e.push({
1434
- type: "path",
1435
- groupTexts: ["bottom-axis", "ticks"],
1436
- data: this.getTickValues().map((e) => ({
1437
- path: `M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t + this.axisConfig.tickLength}`,
1438
- strokeFill: this.axisThemeConfig.tickColor,
1439
- strokeWidth: this.axisConfig.tickWidth
1440
- }))
1441
- });
1442
- }
1443
- return this.showTitle && e.push({
1444
- type: "text",
1445
- groupTexts: ["bottom-axis", "title"],
1446
- data: [{
1447
- text: this.title,
1448
- x: this.range[0] + (this.range[1] - this.range[0]) / 2,
1449
- y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
1450
- fill: this.axisThemeConfig.titleColor,
1451
- fontSize: this.axisConfig.titleFontSize,
1452
- rotation: 0,
1453
- verticalPos: "top",
1454
- horizontalPos: "center"
1455
- }]
1456
- }), e;
1457
- }
1458
- getDrawableElementsForTopAxis() {
1459
- let e = [];
1460
- if (this.showAxisLine) {
1461
- let t = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
1462
- e.push({
1463
- type: "path",
1464
- groupTexts: ["top-axis", "axis-line"],
1465
- data: [{
1466
- path: `M ${this.boundingRect.x},${t} L ${this.boundingRect.x + this.boundingRect.width},${t}`,
1467
- strokeFill: this.axisThemeConfig.axisLineColor,
1468
- strokeWidth: this.axisConfig.axisLineWidth
1469
- }]
1470
- });
1471
- }
1472
- if (this.showLabel && e.push({
1473
- type: "text",
1474
- groupTexts: ["top-axis", "label"],
1475
- data: this.getTickValues().map((e) => ({
1476
- text: e.toString(),
1477
- x: this.getScaleValue(e),
1478
- y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
1479
- fill: this.axisThemeConfig.labelColor,
1480
- fontSize: this.axisConfig.labelFontSize,
1481
- rotation: 0,
1482
- verticalPos: "top",
1483
- horizontalPos: "center"
1484
- }))
1485
- }), this.showTick) {
1486
- let t = this.boundingRect.y;
1487
- e.push({
1488
- type: "path",
1489
- groupTexts: ["top-axis", "ticks"],
1490
- data: this.getTickValues().map((e) => ({
1491
- path: `M ${this.getScaleValue(e)},${t + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${t + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
1492
- strokeFill: this.axisThemeConfig.tickColor,
1493
- strokeWidth: this.axisConfig.tickWidth
1494
- }))
1495
- });
1496
- }
1497
- return this.showTitle && e.push({
1498
- type: "text",
1499
- groupTexts: ["top-axis", "title"],
1500
- data: [{
1501
- text: this.title,
1502
- x: this.boundingRect.x + this.boundingRect.width / 2,
1503
- y: this.boundingRect.y + this.axisConfig.titlePadding,
1504
- fill: this.axisThemeConfig.titleColor,
1505
- fontSize: this.axisConfig.titleFontSize,
1506
- rotation: 0,
1507
- verticalPos: "top",
1508
- horizontalPos: "center"
1509
- }]
1510
- }), e;
1511
- }
1512
- getDrawableElements() {
1513
- if (this.axisPosition === "left") return this.getDrawableElementsForLeftAxis();
1514
- if (this.axisPosition === "right") throw Error("Drawing of right axis is not implemented");
1515
- return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
1516
- }
1517
- }, M = class extends j {
1518
- static {
1519
- t(this, "BandAxis");
1520
- }
1521
- constructor(e, t, n, r, i) {
1522
- super(e, r, i, t), this.categories = n, this.scale = S().domain(this.categories).range(this.getRange());
1523
- }
1524
- setRange(e) {
1525
- super.setRange(e);
1526
- }
1527
- recalculateScale() {
1528
- this.scale = S().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5), e.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
1529
- }
1530
- getTickValues() {
1531
- return this.categories;
1532
- }
1533
- getScaleValue(e) {
1534
- return this.scale(e) ?? this.getRange()[0];
1535
- }
1536
- }, ee = class extends j {
1537
- static {
1538
- t(this, "LinearAxis");
1539
- }
1540
- constructor(e, t, n, r, i) {
1541
- super(e, r, i, t), this.domain = n, this.scale = m().domain(this.domain).range(this.getRange());
1542
- }
1543
- getTickValues() {
1544
- return this.scale.ticks();
1545
- }
1546
- recalculateScale() {
1547
- let e = [...this.domain];
1548
- this.axisPosition === "left" && e.reverse(), this.scale = m().domain(e).range(this.getRange());
1549
- }
1550
- getScaleValue(e) {
1551
- return this.scale(e);
1552
- }
1553
- };
1554
- function N(e, t, n, r) {
1555
- let i = new O(r);
1556
- return E(e) ? new M(t, n, e.categories, e.title, i) : new ee(t, n, [e.min, e.max], e.title, i);
1557
- }
1558
- t(N, "getAxis");
1559
- var te = class {
1560
- constructor(e, t, n, r) {
1561
- this.textDimensionCalculator = e, this.chartConfig = t, this.chartData = n, this.chartThemeConfig = r, this.boundingRect = {
1562
- x: 0,
1563
- y: 0,
1564
- width: 0,
1565
- height: 0
1566
- }, this.showChartTitle = !1;
1567
- }
1568
- static {
1569
- t(this, "ChartTitle");
1570
- }
1571
- setBoundingBoxXY(e) {
1572
- this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1573
- }
1574
- calculateSpace(e) {
1575
- let t = this.textDimensionCalculator.getMaxDimension([this.chartData.title], this.chartConfig.titleFontSize), n = Math.max(t.width, e.width), r = t.height + 2 * this.chartConfig.titlePadding;
1576
- return t.width <= n && t.height <= r && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = n, this.boundingRect.height = r, this.showChartTitle = !0), {
1577
- width: this.boundingRect.width,
1578
- height: this.boundingRect.height
1579
- };
1580
- }
1581
- getDrawableElements() {
1582
- let e = [];
1583
- return this.showChartTitle && e.push({
1584
- groupTexts: ["chart-title"],
1585
- type: "text",
1586
- data: [{
1587
- fontSize: this.chartConfig.titleFontSize,
1588
- text: this.chartData.title,
1589
- verticalPos: "middle",
1590
- horizontalPos: "center",
1591
- x: this.boundingRect.x + this.boundingRect.width / 2,
1592
- y: this.boundingRect.y + this.boundingRect.height / 2,
1593
- fill: this.chartThemeConfig.titleColor,
1594
- rotation: 0
1595
- }]
1596
- }), e;
1597
- }
1598
- };
1599
- function ne(e, t, n, r) {
1600
- return new te(new O(r), e, t, n);
1601
- }
1602
- t(ne, "getChartTitleComponent");
1603
- var re = class {
1604
- constructor(e, t, n, r, i) {
1605
- this.plotData = e, this.xAxis = t, this.yAxis = n, this.orientation = r, this.plotIndex = i;
1606
- }
1607
- static {
1608
- t(this, "LinePlot");
1609
- }
1610
- getDrawableElement() {
1611
- let e = this.plotData.data.map((e) => [this.xAxis.getScaleValue(e[0]), this.yAxis.getScaleValue(e[1])]), t;
1612
- return t = this.orientation === "horizontal" ? v().y((e) => e[0]).x((e) => e[1])(e) : v().x((e) => e[0]).y((e) => e[1])(e), t ? [{
1613
- groupTexts: ["plot", `line-plot-${this.plotIndex}`],
1614
- type: "path",
1615
- data: [{
1616
- path: t,
1617
- strokeFill: this.plotData.strokeFill,
1618
- strokeWidth: this.plotData.strokeWidth
1619
- }]
1620
- }] : [];
1621
- }
1622
- }, ie = class {
1623
- constructor(e, t, n, r, i, a) {
1624
- this.barData = e, this.boundingRect = t, this.xAxis = n, this.yAxis = r, this.orientation = i, this.plotIndex = a;
1625
- }
1626
- static {
1627
- t(this, "BarPlot");
1628
- }
1629
- getDrawableElement() {
1630
- let e = this.barData.data.map((e) => [this.xAxis.getScaleValue(e[0]), this.yAxis.getScaleValue(e[1])]), t = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * .95, n = t / 2;
1631
- return this.orientation === "horizontal" ? [{
1632
- groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1633
- type: "rect",
1634
- data: e.map((e) => ({
1635
- x: this.boundingRect.x,
1636
- y: e[0] - n,
1637
- height: t,
1638
- width: e[1] - this.boundingRect.x,
1639
- fill: this.barData.fill,
1640
- strokeWidth: 0,
1641
- strokeFill: this.barData.fill
1642
- }))
1643
- }] : [{
1644
- groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1645
- type: "rect",
1646
- data: e.map((e) => ({
1647
- x: e[0] - n,
1648
- y: e[1],
1649
- width: t,
1650
- height: this.boundingRect.y + this.boundingRect.height - e[1],
1651
- fill: this.barData.fill,
1652
- strokeWidth: 0,
1653
- strokeFill: this.barData.fill
1654
- }))
1655
- }];
1656
- }
1657
- }, ae = class {
1658
- constructor(e, t, n) {
1659
- this.chartConfig = e, this.chartData = t, this.chartThemeConfig = n, this.boundingRect = {
1660
- x: 0,
1661
- y: 0,
1662
- width: 0,
1663
- height: 0
1664
- };
1665
- }
1666
- static {
1667
- t(this, "BasePlot");
1668
- }
1669
- setAxes(e, t) {
1670
- this.xAxis = e, this.yAxis = t;
1671
- }
1672
- setBoundingBoxXY(e) {
1673
- this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1674
- }
1675
- calculateSpace(e) {
1676
- return this.boundingRect.width = e.width, this.boundingRect.height = e.height, {
1677
- width: this.boundingRect.width,
1678
- height: this.boundingRect.height
1679
- };
1680
- }
1681
- getDrawableElements() {
1682
- if (!(this.xAxis && this.yAxis)) throw Error("Axes must be passed to render Plots");
1683
- let e = [];
1684
- for (let [t, n] of this.chartData.plots.entries()) switch (n.type) {
1685
- case "line":
1686
- {
1687
- let r = new re(n, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1688
- e.push(...r.getDrawableElement());
1689
- }
1690
- break;
1691
- case "bar":
1692
- {
1693
- let r = new ie(n, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1694
- e.push(...r.getDrawableElement());
1695
- }
1696
- break;
1697
- }
1698
- return e;
1699
- }
1700
- };
1701
- function P(e, t, n) {
1702
- return new ae(e, t, n);
1703
- }
1704
- t(P, "getPlotComponent");
1705
- var oe = class {
1706
- constructor(e, t, n, r) {
1707
- this.chartConfig = e, this.chartData = t, this.componentStore = {
1708
- title: ne(e, t, n, r),
1709
- plot: P(e, t, n),
1710
- xAxis: N(t.xAxis, e.xAxis, {
1711
- titleColor: n.xAxisTitleColor,
1712
- labelColor: n.xAxisLabelColor,
1713
- tickColor: n.xAxisTickColor,
1714
- axisLineColor: n.xAxisLineColor
1715
- }, r),
1716
- yAxis: N(t.yAxis, e.yAxis, {
1717
- titleColor: n.yAxisTitleColor,
1718
- labelColor: n.yAxisLabelColor,
1719
- tickColor: n.yAxisTickColor,
1720
- axisLineColor: n.yAxisLineColor
1721
- }, r)
1722
- };
1723
- }
1724
- static {
1725
- t(this, "Orchestrator");
1726
- }
1727
- calculateVerticalSpace() {
1728
- let e = this.chartConfig.width, t = this.chartConfig.height, n = 0, r = 0, i = Math.floor(e * this.chartConfig.plotReservedSpacePercent / 100), a = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), o = this.componentStore.plot.calculateSpace({
1729
- width: i,
1730
- height: a
1731
- });
1732
- e -= o.width, t -= o.height, o = this.componentStore.title.calculateSpace({
1733
- width: this.chartConfig.width,
1734
- height: t
1735
- }), r = o.height, t -= o.height, this.componentStore.xAxis.setAxisPosition("bottom"), o = this.componentStore.xAxis.calculateSpace({
1736
- width: e,
1737
- height: t
1738
- }), t -= o.height, this.componentStore.yAxis.setAxisPosition("left"), o = this.componentStore.yAxis.calculateSpace({
1739
- width: e,
1740
- height: t
1741
- }), n = o.width, e -= o.width, e > 0 && (i += e, e = 0), t > 0 && (a += t, t = 0), this.componentStore.plot.calculateSpace({
1742
- width: i,
1743
- height: a
1744
- }), this.componentStore.plot.setBoundingBoxXY({
1745
- x: n,
1746
- y: r
1747
- }), this.componentStore.xAxis.setRange([n, n + i]), this.componentStore.xAxis.setBoundingBoxXY({
1748
- x: n,
1749
- y: r + a
1750
- }), this.componentStore.yAxis.setRange([r, r + a]), this.componentStore.yAxis.setBoundingBoxXY({
1751
- x: 0,
1752
- y: r
1753
- }), this.chartData.plots.some((e) => T(e)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1754
- }
1755
- calculateHorizontalSpace() {
1756
- let e = this.chartConfig.width, t = this.chartConfig.height, n = 0, r = 0, i = 0, a = Math.floor(e * this.chartConfig.plotReservedSpacePercent / 100), o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), s = this.componentStore.plot.calculateSpace({
1757
- width: a,
1758
- height: o
1759
- });
1760
- e -= s.width, t -= s.height, s = this.componentStore.title.calculateSpace({
1761
- width: this.chartConfig.width,
1762
- height: t
1763
- }), n = s.height, t -= s.height, this.componentStore.xAxis.setAxisPosition("left"), s = this.componentStore.xAxis.calculateSpace({
1764
- width: e,
1765
- height: t
1766
- }), e -= s.width, r = s.width, this.componentStore.yAxis.setAxisPosition("top"), s = this.componentStore.yAxis.calculateSpace({
1767
- width: e,
1768
- height: t
1769
- }), t -= s.height, i = n + s.height, e > 0 && (a += e, e = 0), t > 0 && (o += t, t = 0), this.componentStore.plot.calculateSpace({
1770
- width: a,
1771
- height: o
1772
- }), this.componentStore.plot.setBoundingBoxXY({
1773
- x: r,
1774
- y: i
1775
- }), this.componentStore.yAxis.setRange([r, r + a]), this.componentStore.yAxis.setBoundingBoxXY({
1776
- x: r,
1777
- y: n
1778
- }), this.componentStore.xAxis.setRange([i, i + o]), this.componentStore.xAxis.setBoundingBoxXY({
1779
- x: 0,
1780
- y: i
1781
- }), this.chartData.plots.some((e) => T(e)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1782
- }
1783
- calculateSpace() {
1784
- this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1785
- }
1786
- getDrawableElement() {
1787
- this.calculateSpace();
1788
- let e = [];
1789
- this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1790
- for (let t of Object.values(this.componentStore)) e.push(...t.getDrawableElements());
1791
- return e;
1792
- }
1793
- }, se = class {
1794
- static {
1795
- t(this, "XYChartBuilder");
1796
- }
1797
- static build(e, t, n, r) {
1798
- return new oe(e, t, n, r).getDrawableElement();
1799
- }
1800
- }, F = 0, I, L = W(), R = U(), z = G(), B = R.plotColorPalette.split(",").map((e) => e.trim()), V = !1, H = !1;
1801
- function U() {
1802
- let e = i(), t = p();
1803
- return _(e.xyChart, t.themeVariables.xyChart);
1804
- }
1805
- t(U, "getChartDefaultThemeConfig");
1806
- function W() {
1807
- let e = p();
1808
- return _(d.xyChart, e.xyChart);
1809
- }
1810
- t(W, "getChartDefaultConfig");
1811
- function G() {
1812
- return {
1813
- yAxis: {
1814
- type: "linear",
1815
- title: "",
1816
- min: Infinity,
1817
- max: -Infinity
1818
- },
1819
- xAxis: {
1820
- type: "band",
1821
- title: "",
1822
- categories: []
1823
- },
1824
- title: "",
1825
- plots: []
1826
- };
1827
- }
1828
- t(G, "getChartDefaultData");
1829
- function K(e) {
1830
- let t = p();
1831
- return a(e.trim(), t);
1832
- }
1833
- t(K, "textSanitizer");
1834
- function q(e) {
1835
- I = e;
1836
- }
1837
- t(q, "setTmpSVGG");
1838
- function J(e) {
1839
- e === "horizontal" ? L.chartOrientation = "horizontal" : L.chartOrientation = "vertical";
1840
- }
1841
- t(J, "setOrientation");
1842
- function Y(e) {
1843
- z.xAxis.title = K(e.text);
1844
- }
1845
- t(Y, "setXAxisTitle");
1846
- function X(e, t) {
1847
- z.xAxis = {
1848
- type: "linear",
1849
- title: z.xAxis.title,
1850
- min: e,
1851
- max: t
1852
- }, V = !0;
1853
- }
1854
- t(X, "setXAxisRangeData");
1855
- function ce(e) {
1856
- z.xAxis = {
1857
- type: "band",
1858
- title: z.xAxis.title,
1859
- categories: e.map((e) => K(e.text))
1860
- }, V = !0;
1861
- }
1862
- t(ce, "setXAxisBand");
1863
- function le(e) {
1864
- z.yAxis.title = K(e.text);
1865
- }
1866
- t(le, "setYAxisTitle");
1867
- function ue(e, t) {
1868
- z.yAxis = {
1869
- type: "linear",
1870
- title: z.yAxis.title,
1871
- min: e,
1872
- max: t
1873
- }, H = !0;
1874
- }
1875
- t(ue, "setYAxisRangeData");
1876
- function de(e) {
1877
- let t = Math.min(...e), n = Math.max(...e), r = D(z.yAxis) ? z.yAxis.min : Infinity, i = D(z.yAxis) ? z.yAxis.max : -Infinity;
1878
- z.yAxis = {
1879
- type: "linear",
1880
- title: z.yAxis.title,
1881
- min: Math.min(r, t),
1882
- max: Math.max(i, n)
1883
- };
1884
- }
1885
- t(de, "setYAxisRangeFromPlotData");
1886
- function Z(e) {
1887
- let t = [];
1888
- if (e.length === 0) return t;
1889
- if (!V) {
1890
- let t = D(z.xAxis) ? z.xAxis.min : Infinity, n = D(z.xAxis) ? z.xAxis.max : -Infinity;
1891
- X(Math.min(t, 1), Math.max(n, e.length));
1892
- }
1893
- if (H || de(e), E(z.xAxis) && (t = z.xAxis.categories.map((t, n) => [t, e[n]])), D(z.xAxis)) {
1894
- let n = z.xAxis.min, r = z.xAxis.max, i = (r - n) / (e.length - 1), a = [];
1895
- for (let e = n; e <= r; e += i) a.push(`${e}`);
1896
- t = a.map((t, n) => [t, e[n]]);
1897
- }
1898
- return t;
1899
- }
1900
- t(Z, "transformDataWithoutCategory");
1901
- function Q(e) {
1902
- return B[e === 0 ? 0 : e % B.length];
1903
- }
1904
- t(Q, "getPlotColorFromPalette");
1905
- function fe(e, t) {
1906
- let n = Z(t);
1907
- z.plots.push({
1908
- type: "line",
1909
- strokeFill: Q(F),
1910
- strokeWidth: 2,
1911
- data: n
1912
- }), F++;
1913
- }
1914
- t(fe, "setLineData");
1915
- function pe(e, t) {
1916
- let n = Z(t);
1917
- z.plots.push({
1918
- type: "bar",
1919
- fill: Q(F),
1920
- data: n
1921
- }), F++;
1922
- }
1923
- t(pe, "setBarData");
1924
- function me() {
1925
- if (z.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data");
1926
- return z.title = r(), se.build(L, z, R, I);
1927
- }
1928
- t(me, "getDrawableElem");
1929
- function he() {
1930
- return R;
1931
- }
1932
- t(he, "getChartThemeConfig");
1933
- function ge() {
1934
- return L;
1935
- }
1936
- t(ge, "getChartConfig");
1937
- function $() {
1938
- return z;
1939
- }
1940
- t($, "getXYChartData");
1941
- var _e = {
1942
- parser: w,
1943
- db: {
1944
- getDrawableElem: me,
1945
- clear: /* @__PURE__ */ t(function() {
1946
- l(), F = 0, L = W(), z = G(), R = U(), B = R.plotColorPalette.split(",").map((e) => e.trim()), V = !1, H = !1;
1947
- }, "clear"),
1948
- setAccTitle: o,
1949
- getAccTitle: f,
1950
- setDiagramTitle: s,
1951
- getDiagramTitle: r,
1952
- getAccDescription: c,
1953
- setAccDescription: n,
1954
- setOrientation: J,
1955
- setXAxisTitle: Y,
1956
- setXAxisRangeData: X,
1957
- setXAxisBand: ce,
1958
- setYAxisTitle: le,
1959
- setYAxisRangeData: ue,
1960
- setLineData: fe,
1961
- setBarData: pe,
1962
- setTmpSVGG: q,
1963
- getChartThemeConfig: he,
1964
- getChartConfig: ge,
1965
- getXYChartData: $
1966
- },
1967
- renderer: { draw: /* @__PURE__ */ t((n, r, i, a) => {
1968
- let o = a.db, s = o.getChartThemeConfig(), c = o.getChartConfig(), l = o.getXYChartData().plots[0].data.map((e) => e[1]);
1969
- function d(e) {
1970
- return e === "top" ? "text-before-edge" : "middle";
1971
- }
1972
- t(d, "getDominantBaseLine");
1973
- function f(e) {
1974
- return e === "left" ? "start" : e === "right" ? "end" : "middle";
1975
- }
1976
- t(f, "getTextAnchor");
1977
- function p(e) {
1978
- return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1979
- }
1980
- t(p, "getTextTransformation"), e.debug("Rendering xychart chart\n" + n);
1981
- let m = y(r), h = m.append("g").attr("class", "main"), g = h.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
1982
- u(m, c.height, c.width, !0), m.attr("viewBox", `0 0 ${c.width} ${c.height}`), g.attr("fill", s.backgroundColor), o.setTmpSVGG(m.append("g").attr("class", "mermaid-tmp-group"));
1983
- let _ = o.getDrawableElem(), v = {};
1984
- function b(e) {
1985
- let t = h, n = "";
1986
- for (let [r] of e.entries()) {
1987
- let i = h;
1988
- r > 0 && v[n] && (i = v[n]), n += e[r], t = v[n], t ||= v[n] = i.append("g").attr("class", e[r]);
1989
- }
1990
- return t;
1991
- }
1992
- t(b, "getGroup");
1993
- for (let e of _) {
1994
- if (e.data.length === 0) continue;
1995
- let n = b(e.groupTexts);
1996
- switch (e.type) {
1997
- case "rect":
1998
- if (n.selectAll("rect").data(e.data).enter().append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth), c.showDataLabel) if (c.chartOrientation === "horizontal") {
1999
- let r = function(e, t) {
2000
- let { data: n, label: r } = e;
2001
- return t * r.length * i <= n.width - 10;
2002
- };
2003
- t(r, "fitsHorizontally");
2004
- let i = .7, a = e.data.map((e, t) => ({
2005
- data: e,
2006
- label: l[t].toString()
2007
- })).filter((e) => e.data.width > 0 && e.data.height > 0), o = a.map((e) => {
2008
- let { data: t } = e, n = t.height * .7;
2009
- for (; !r(e, n) && n > 0;) --n;
2010
- return n;
2011
- }), s = Math.floor(Math.min(...o));
2012
- n.selectAll("text").data(a).enter().append("text").attr("x", (e) => e.data.x + e.data.width - 10).attr("y", (e) => e.data.y + e.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${s}px`).text((e) => e.label);
2013
- } else {
2014
- let r = function(e, t, n) {
2015
- let { data: r, label: i } = e, a = t * i.length * .7, o = r.x + r.width / 2, s = o - a / 2, c = o + a / 2, l = s >= r.x && c <= r.x + r.width, u = r.y + n + t <= r.y + r.height;
2016
- return l && u;
2017
- };
2018
- t(r, "fitsInBar");
2019
- let i = e.data.map((e, t) => ({
2020
- data: e,
2021
- label: l[t].toString()
2022
- })).filter((e) => e.data.width > 0 && e.data.height > 0), a = i.map((e) => {
2023
- let { data: t, label: n } = e, i = t.width / (n.length * .7);
2024
- for (; !r(e, i, 10) && i > 0;) --i;
2025
- return i;
2026
- }), o = Math.floor(Math.min(...a));
2027
- n.selectAll("text").data(i).enter().append("text").attr("x", (e) => e.data.x + e.data.width / 2).attr("y", (e) => e.data.y + 10).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${o}px`).text((e) => e.label);
2028
- }
2029
- break;
2030
- case "text":
2031
- n.selectAll("text").data(e.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => d(e.verticalPos)).attr("text-anchor", (e) => f(e.horizontalPos)).attr("transform", (e) => p(e)).text((e) => e.text);
2032
- break;
2033
- case "path":
2034
- n.selectAll("path").data(e.data).enter().append("path").attr("d", (e) => e.path).attr("fill", (e) => e.fill ? e.fill : "none").attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth);
2035
- break;
2036
- }
2037
- }
2038
- }, "draw") }
2039
- };
2040
- //#endregion
2041
- export { _e as diagram };
2042
-
2043
- //# sourceMappingURL=xychartDiagram-JWTSCODW-DpIry-th.js.map