file-viewer3 1.0.8 → 1.0.26

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 (370) hide show
  1. package/LICENSE +160 -0
  2. package/README.en.md +390 -0
  3. package/README.md +306 -89
  4. package/dist/components/3MFLoader.js +527 -0
  5. package/dist/components/AMFLoader.js +188 -0
  6. package/dist/components/ArchiveViewer.js +526 -0
  7. package/dist/components/AudioViewer.js +66 -0
  8. package/dist/components/CadViewer.js +9040 -0
  9. package/dist/components/CodeViewer.js +151 -0
  10. package/dist/components/ColladaLoader.js +2282 -0
  11. package/dist/components/DrawingViewer.js +295 -0
  12. package/dist/components/EdaViewer.js +630 -0
  13. package/dist/components/EmailViewer.js +276 -0
  14. package/dist/components/EpubViewer.js +172 -0
  15. package/dist/components/FBXLoader.js +1574 -0
  16. package/dist/components/GLTFLoader.js +1383 -0
  17. package/dist/components/ImageViewer.js +1516 -1895
  18. package/dist/components/KMZLoader.js +45 -0
  19. package/dist/components/MarkdownViewer.js +1456 -1557
  20. package/dist/components/ModelViewer.js +797 -0
  21. package/dist/components/OBJLoader.js +287 -0
  22. package/dist/components/OfdViewer.js +133 -0
  23. package/dist/components/PCDLoader.js +141 -0
  24. package/dist/components/PLYLoader.js +305 -0
  25. package/dist/components/PdfView.js +27662 -21655
  26. package/dist/components/PptxRender.js +11170 -21118
  27. package/dist/components/STLLoader.js +83 -0
  28. package/dist/components/TDSLoader.js +228 -0
  29. package/dist/components/TypstViewer.js +1697 -0
  30. package/dist/components/USDLoader.js +2526 -0
  31. package/dist/components/UmdViewer.js +1873 -0
  32. package/dist/components/VRMLLoader.js +6422 -0
  33. package/dist/components/VTKLoader.js +337 -0
  34. package/dist/components/XYZLoader.js +30 -0
  35. package/dist/components/XlsxTable.js +7871 -69873
  36. package/dist/components/__vite-browser-external.js +7 -0
  37. package/dist/components/_plugin-vue_export-helper.js +8 -0
  38. package/dist/components/ar-SA-G6X2FPQ2.js +523 -0
  39. package/dist/components/arc.js +79 -0
  40. package/dist/components/architecture-7EHR7CIX.js +3 -0
  41. package/dist/components/architectureDiagram-3BPJPVTR.js +4096 -0
  42. package/dist/components/archive.js +24 -0
  43. package/dist/components/asyncToGenerator.js +29 -0
  44. package/dist/components/audio.js +19 -0
  45. package/dist/components/az-AZ-76LH7QW2.js +523 -0
  46. package/dist/components/bash.js +169 -0
  47. package/dist/components/bg-BG-XCXSNQG7.js +523 -0
  48. package/dist/components/blockDiagram-GPEHLZMM.js +3357 -0
  49. package/dist/components/bn-BD-2XOGV67Q.js +523 -0
  50. package/dist/components/c4Diagram-AAUBKEIU.js +2957 -0
  51. package/dist/components/ca-ES-6MX7JW3Y.js +523 -0
  52. package/dist/components/cad.js +23 -0
  53. package/dist/components/cfb.js +1174 -0
  54. package/dist/components/channel.js +5 -0
  55. package/dist/components/chunk-2J33WTMH.js +26 -0
  56. package/dist/components/chunk-3OPIFGDE.js +4167 -0
  57. package/dist/components/chunk-4BX2VUAB.js +19 -0
  58. package/dist/components/chunk-55IACEB6.js +9 -0
  59. package/dist/components/chunk-5ZQYHXKU.js +669 -0
  60. package/dist/components/chunk-6U3AYISY.js +624 -0
  61. package/dist/components/chunk-727SXJPM.js +3356 -0
  62. package/dist/components/chunk-AGHRB4JF.js +324 -0
  63. package/dist/components/chunk-AQP2D5EJ.js +2055 -0
  64. package/dist/components/chunk-BSJP7CBP.js +83 -0
  65. package/dist/components/chunk-CSCIHK7Q.js +3500 -0
  66. package/dist/components/chunk-EIO257PC.js +1836 -0
  67. package/dist/components/chunk-FMBD7UC4.js +5 -0
  68. package/dist/components/chunk-K2UTITRG.js +17627 -0
  69. package/dist/components/chunk-KSCS5N6A.js +572 -0
  70. package/dist/components/chunk-L5ZTLDWV.js +40 -0
  71. package/dist/components/chunk-LZXEDZCA.js +60 -0
  72. package/dist/components/chunk-ND2GUHAM.js +61 -0
  73. package/dist/components/chunk-NNHCCRGN.js +20425 -0
  74. package/dist/components/chunk-NZK2D7GU.js +68 -0
  75. package/dist/components/chunk-O5CBEL6O.js +1894 -0
  76. package/dist/components/chunk-QZHKN3VN.js +12 -0
  77. package/dist/components/chunk-SRAX5OIU.js +22 -0
  78. package/dist/components/chunk-WU5MYG2G.js +14 -0
  79. package/dist/components/chunk-XPW4576I.js +1146 -0
  80. package/dist/components/chunk-Z3N5DIM6.js +59 -0
  81. package/dist/components/chunk-ZUYEQ4TG.js +22 -0
  82. package/dist/components/chunk.js +23 -0
  83. package/dist/components/classDiagram-4FO5ZUOK.js +29 -0
  84. package/dist/components/classDiagram-v2-Q7XG4LA2.js +29 -0
  85. package/dist/components/compiler.js +2 -0
  86. package/dist/components/core.js +845 -0
  87. package/dist/components/cose-bilkent-S5V4N54A.js +2268 -0
  88. package/dist/components/cpp.js +225 -0
  89. package/dist/components/cs-CZ-2BRQDIVT.js +523 -0
  90. package/dist/components/csharp.js +260 -0
  91. package/dist/components/css.js +140 -0
  92. package/dist/components/cytoscape.esm.js +18114 -0
  93. package/dist/components/da-DK-5WZEPLOC.js +523 -0
  94. package/dist/components/dagre-BM42HDAG.js +325 -0
  95. package/dist/components/dagre.js +1936 -0
  96. package/dist/components/de-DE-XR44H4JA.js +523 -0
  97. package/dist/components/defaultLocale.js +201 -0
  98. package/dist/components/defineProperty.js +50 -0
  99. package/dist/components/diagram-2AECGRRQ.js +229 -0
  100. package/dist/components/diagram-5GNKFQAL.js +108 -0
  101. package/dist/components/diagram-KO2AKTUF.js +443 -0
  102. package/dist/components/diagram-LMA3HP47.js +139 -0
  103. package/dist/components/diagram-OG6HWLK6.js +541 -0
  104. package/dist/components/diff.js +39 -0
  105. package/dist/components/directory-open-01563666.js +26 -0
  106. package/dist/components/directory-open-4ed118d0.js +83 -0
  107. package/dist/components/dist.js +50 -0
  108. package/dist/components/dist2.js +3291 -0
  109. package/dist/components/dist3.js +1593 -0
  110. package/dist/components/documentSearch.js +378 -0
  111. package/dist/components/docx-preview.js +3113 -0
  112. package/dist/components/drawing.js +19 -0
  113. package/dist/components/ebook.js +16 -0
  114. package/dist/components/eda.js +20 -0
  115. package/dist/components/el-GR-BZB4AONW.js +523 -0
  116. package/dist/components/email.js +21 -0
  117. package/dist/components/en-B4ZKOASM.js +3 -0
  118. package/dist/components/erDiagram-TEJ5UH35.js +1719 -0
  119. package/dist/components/es-ES-U4NZUMDT.js +523 -0
  120. package/dist/components/eu-ES-A7QVB2H4.js +523 -0
  121. package/dist/components/eventmodeling-FCH6USID.js +3 -0
  122. package/dist/components/fa-IR-HGAKTJCU.js +523 -0
  123. package/dist/components/fflate.module.js +323 -0
  124. package/dist/components/fi-FI-Z5N7JZ37.js +523 -0
  125. package/dist/components/file-open-002ab408.js +38 -0
  126. package/dist/components/file-open-7c801643.js +24 -0
  127. package/dist/components/file-save-3189631c.js +40 -0
  128. package/dist/components/file-save-745eba88.js +36 -0
  129. package/dist/components/flowDiagram-I6XJVG4X.js +4181 -0
  130. package/dist/components/fr-FR-RHASNOE6.js +523 -0
  131. package/dist/components/ganttDiagram-6RSMTGT7.js +2182 -0
  132. package/dist/components/gitGraph-WXDBUCRP.js +3 -0
  133. package/dist/components/gitGraphDiagram-PVQCEYII.js +788 -0
  134. package/dist/components/gl-ES-HMX3MZ6V.js +523 -0
  135. package/dist/components/global-compiler.js +23 -0
  136. package/dist/components/global-renderer.js +23 -0
  137. package/dist/components/go.js +140 -0
  138. package/dist/components/graphlib.js +1267 -0
  139. package/dist/components/he-IL-6SHJWFNN.js +523 -0
  140. package/dist/components/hi-IN-IWLTKZ5I.js +523 -0
  141. package/dist/components/hu-HU-A5ZG7DT2.js +523 -0
  142. package/dist/components/id-ID-SAP4L64H.js +523 -0
  143. package/dist/components/image-GAAHSSAO.js +3 -0
  144. package/dist/components/image-blob-reduce.esm.js +1429 -0
  145. package/dist/components/image.js +17 -0
  146. package/dist/components/info-J43DQDTF.js +3 -0
  147. package/dist/components/infoDiagram-5YYISTIA.js +26 -0
  148. package/dist/components/ini.js +88 -0
  149. package/dist/components/init.js +15 -0
  150. package/dist/components/ishikawaDiagram-YF4QCWOH.js +718 -0
  151. package/dist/components/it-IT-JPQ66NNP.js +523 -0
  152. package/dist/components/ja-JP-DBVTYXUO.js +523 -0
  153. package/dist/components/java.js +169 -0
  154. package/dist/components/javascript.js +436 -0
  155. package/dist/components/journeyDiagram-JHISSGLW.js +885 -0
  156. package/dist/components/json.js +36 -0
  157. package/dist/components/jszip.min.js +3033 -0
  158. package/dist/components/kaa-6HZHGXH3.js +523 -0
  159. package/dist/components/kab-KAB-ZGHBKWFO.js +523 -0
  160. package/dist/components/kanban-definition-UN3LZRKU.js +986 -0
  161. package/dist/components/katex.js +21979 -0
  162. package/dist/components/kk-KZ-P5N5QNE5.js +523 -0
  163. package/dist/components/km-KH-HSX4SM5Z.js +523 -0
  164. package/dist/components/ko-KR-MTYHY66A.js +523 -0
  165. package/dist/components/ku-TR-6OUDTVRD.js +523 -0
  166. package/dist/components/lib.js +4877 -0
  167. package/dist/components/libarchive.js +360 -0
  168. package/dist/components/linear.js +289 -0
  169. package/dist/components/lt-LT-XHIRWOB4.js +523 -0
  170. package/dist/components/lv-LV-5QDEKY6T.js +523 -0
  171. package/dist/components/markdown.js +181 -0
  172. package/dist/components/md.js +17 -0
  173. package/dist/components/mermaid-parser.core.js +328 -0
  174. package/dist/components/mindmap-definition-RKZ34NQL.js +1016 -0
  175. package/dist/components/model.js +21 -0
  176. package/dist/components/mp4.js +12 -0
  177. package/dist/components/mr-IN-CRQNXWMA.js +523 -0
  178. package/dist/components/my-MM-5M5IBNSE.js +523 -0
  179. package/dist/components/nb-NO-T6EIAALU.js +523 -0
  180. package/dist/components/nestedRender.js +158 -0
  181. package/dist/components/nl-NL-IS3SIHDZ.js +523 -0
  182. package/dist/components/nn-NO-6E72VCQL.js +523 -0
  183. package/dist/components/objectSpread2.js +29 -0
  184. package/dist/components/objectWithoutProperties.js +28 -0
  185. package/dist/components/oc-FR-POXYY2M6.js +523 -0
  186. package/dist/components/ofd.js +5261 -0
  187. package/dist/components/ofd2.js +16 -0
  188. package/dist/components/ordinal.js +65 -0
  189. package/dist/components/pa-IN-N4M65BXN.js +523 -0
  190. package/dist/components/packet-YPE3B663.js +3 -0
  191. package/dist/components/pdf.js +24 -0
  192. package/dist/components/percentages-BXMCSKIN.js +3 -0
  193. package/dist/components/php.js +294 -0
  194. package/dist/components/pica.js +1009 -0
  195. package/dist/components/pie-LRSECV5Y.js +3 -0
  196. package/dist/components/pie.js +47 -0
  197. package/dist/components/pieDiagram-4H26LBE5.js +130 -0
  198. package/dist/components/pl-PL-T2D74RX3.js +523 -0
  199. package/dist/components/postal-mime.js +3146 -0
  200. package/dist/components/pptx.js +15 -0
  201. package/dist/components/printLayout.js +42 -0
  202. package/dist/components/prod.js +21770 -0
  203. package/dist/components/pt-BR-5N22H2LF.js +523 -0
  204. package/dist/components/pt-PT-UZXXM6DQ.js +523 -0
  205. package/dist/components/python.js +238 -0
  206. package/dist/components/quadrantDiagram-W4KKPZXB.js +1988 -0
  207. package/dist/components/radar-GUYGQ44K.js +3 -0
  208. package/dist/components/renderer.js +2 -0
  209. package/dist/components/requirementDiagram-4Y6WPE33.js +2230 -0
  210. package/dist/components/ro-RO-JPDTUUEW.js +523 -0
  211. package/dist/components/rough.esm.js +1355 -0
  212. package/dist/components/roundRect.js +90 -0
  213. package/dist/components/ru-RU-B4JR7IUQ.js +523 -0
  214. package/dist/components/rust.js +169 -0
  215. package/dist/components/sankeyDiagram-5OEKKPKP.js +972 -0
  216. package/dist/components/sequenceDiagram-3UESZ5HK.js +4255 -0
  217. package/dist/components/shared.js +175 -0
  218. package/dist/components/shared2.js +4 -0
  219. package/dist/components/si-LK-N5RQ5JYF.js +523 -0
  220. package/dist/components/sk-SK-C5VTKIMK.js +523 -0
  221. package/dist/components/sl-SI-NN7IZMDC.js +523 -0
  222. package/dist/components/sourceLoading.js +134 -0
  223. package/dist/components/sql.js +118 -0
  224. package/dist/components/src.js +2664 -0
  225. package/dist/components/src2.js +10722 -0
  226. package/dist/components/stateDiagram-AJRCARHV.js +217 -0
  227. package/dist/components/stateDiagram-v2-BHNVJYJU.js +27 -0
  228. package/dist/components/subset-shared.chunk.js +3 -0
  229. package/dist/components/subset-worker.chunk.js +21 -0
  230. package/dist/components/sv-SE-XGPEYMSR.js +523 -0
  231. package/dist/components/ta-IN-2NMHFXQM.js +523 -0
  232. package/dist/components/text.js +20 -0
  233. package/dist/components/th-TH-HPSO5L25.js +523 -0
  234. package/dist/components/three.module.js +13134 -0
  235. package/dist/components/time.js +910 -0
  236. package/dist/components/timeline-definition-PNZ67QCA.js +1084 -0
  237. package/dist/components/tr-TR-DEFEU3FU.js +523 -0
  238. package/dist/components/treeView-BLDUP644.js +3 -0
  239. package/dist/components/treemap-LRROVOQU.js +3 -0
  240. package/dist/components/typescript.js +521 -0
  241. package/dist/components/typst.js +25 -0
  242. package/dist/components/uk-UA-QMV73CPH.js +523 -0
  243. package/dist/components/umd.js +16 -0
  244. package/dist/components/use.js +422 -0
  245. package/dist/components/util.js +49 -0
  246. package/dist/components/vennDiagram-CIIHVFJN.js +1880 -0
  247. package/dist/components/vi-VN-M7AON7JQ.js +523 -0
  248. package/dist/components/viewerZoom.js +92 -0
  249. package/dist/components/wardley-L42UT6IY.js +3 -0
  250. package/dist/components/wardleyDiagram-YWT4CUSO.js +656 -0
  251. package/dist/components/wasm-pack-shim.js +1711 -0
  252. package/dist/components/wasm-pack-shim2.js +934 -0
  253. package/dist/components/wasm.js +97 -0
  254. package/dist/components/word.js +3055 -0
  255. package/dist/components/worker-ref.js +15 -20
  256. package/dist/components/xlsx.js +21 -0
  257. package/dist/components/xml.js +166 -0
  258. package/dist/components/xychartDiagram-2RQKCTM6.js +2015 -0
  259. package/dist/components/yaml.js +144 -0
  260. package/dist/components/zh-CN-LNUGB5OW.js +523 -0
  261. package/dist/components/zh-HK-E62DVLB3.js +523 -0
  262. package/dist/components/zh-TW-RAJ6MFWO.js +523 -0
  263. package/dist/file-viewer3.css +2 -0
  264. package/dist/index.mjs +3292 -5
  265. package/dist/src/App.vue.d.ts +3 -0
  266. package/dist/src/compare/CompareApp.vue.d.ts +3 -0
  267. package/dist/src/compare/main.d.ts +0 -0
  268. package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
  269. package/dist/src/components/HelloWorld.vue.d.ts +3 -0
  270. package/dist/src/components/utils.d.ts +4 -0
  271. package/dist/src/main.d.ts +0 -0
  272. package/dist/src/package/common/printCapability.d.ts +27 -0
  273. package/dist/src/package/common/printLayout.d.ts +16 -0
  274. package/dist/src/package/common/sourceLoading.d.ts +10 -0
  275. package/dist/src/package/common/type.d.ts +522 -8
  276. package/dist/src/package/common/worker-ref.d.ts +1 -1
  277. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +74 -24
  278. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +9 -0
  279. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
  280. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +21 -0
  281. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
  282. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +34 -0
  283. package/dist/src/package/components/FileViewer/index.d.ts +1 -1
  284. package/dist/src/package/components/FileViewer/util.d.ts +2 -1
  285. package/dist/src/package/index.d.ts +14 -4
  286. package/dist/src/package/use/documentLocation.d.ts +15 -0
  287. package/dist/src/package/use/documentSearch.d.ts +234 -0
  288. package/dist/src/package/use/index.d.ts +4 -0
  289. package/dist/src/package/use/loading.d.ts +33 -0
  290. package/dist/src/package/use/viewerZoom.d.ts +42 -0
  291. package/dist/src/package/use/worker.d.ts +2 -2
  292. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +9 -0
  293. package/dist/src/package/vendors/archive/cache.d.ts +10 -0
  294. package/dist/src/package/vendors/archive/fallback.d.ts +9 -0
  295. package/dist/src/package/vendors/archive/index.d.ts +3 -0
  296. package/dist/src/package/vendors/archive/shared.d.ts +24 -0
  297. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +7 -0
  298. package/dist/src/package/vendors/audio/index.d.ts +7 -0
  299. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +9 -0
  300. package/dist/src/package/vendors/cad/index.d.ts +8 -0
  301. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +15 -0
  302. package/dist/src/package/vendors/drawing/index.d.ts +7 -0
  303. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +6 -0
  304. package/dist/src/package/vendors/ebook/index.d.ts +7 -0
  305. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +8 -0
  306. package/dist/src/package/vendors/eda/index.d.ts +2 -0
  307. package/dist/src/package/vendors/eda/parser.d.ts +77 -0
  308. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +10 -0
  309. package/dist/src/package/vendors/email/index.d.ts +2 -0
  310. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -13
  311. package/dist/src/package/vendors/image/index.d.ts +1 -1
  312. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -13
  313. package/dist/src/package/vendors/md/index.d.ts +1 -1
  314. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +8 -0
  315. package/dist/src/package/vendors/model/index.d.ts +3 -0
  316. package/dist/src/package/vendors/model/shared.d.ts +1 -0
  317. package/dist/src/package/vendors/nestedRender.d.ts +10 -0
  318. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
  319. package/dist/src/package/vendors/ofd/index.d.ts +7 -0
  320. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +10 -13
  321. package/dist/src/package/vendors/pdf/index.d.ts +2 -1
  322. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  323. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -81
  324. package/dist/src/package/vendors/pptx/index.d.ts +1 -1
  325. package/dist/src/package/vendors/renders.d.ts +1 -1
  326. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -13
  327. package/dist/src/package/vendors/text/index.d.ts +6 -2
  328. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +15 -0
  329. package/dist/src/package/vendors/typst/index.d.ts +8 -0
  330. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +6 -0
  331. package/dist/src/package/vendors/umd/index.d.ts +7 -0
  332. package/dist/src/package/vendors/umd/parser.d.ts +30 -0
  333. package/dist/src/package/vendors/word/doc.d.ts +5 -0
  334. package/dist/src/package/vendors/word/docx.d.ts +5 -0
  335. package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
  336. package/dist/src/package/vendors/word/index.d.ts +3 -0
  337. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +80 -0
  338. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +25 -0
  339. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -21
  340. package/dist/src/package/vendors/xlsx/index.d.ts +3 -2
  341. package/dist/src/package/vendors/xlsx/util.d.ts +0 -5
  342. package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -6
  343. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +73 -0
  344. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
  345. package/dist/style.css +1 -57
  346. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  347. package/dist/wasm/cad/dwg-worker.js +24 -0
  348. package/dist/wasm/cad/libredwg-web.js +15 -0
  349. package/dist/wasm/cad/libredwg-web.wasm +0 -0
  350. package/package.json +118 -42
  351. package/.vscode/extensions.json +0 -3
  352. package/dist/components/_commonjs-dynamic-modules.js +0 -6
  353. package/dist/components/_commonjsHelpers.js +0 -36
  354. package/dist/components/docx-preview.min.js +0 -5287
  355. package/dist/components/index.js +0 -1717
  356. package/dist/favicon.ico +0 -0
  357. package/dist/index.umd.js +0 -436
  358. package/dist/src/package/vendors/docx/index.d.ts +0 -4
  359. package/dist/src/package/vendors/xlsx/render.d.ts +0 -6
  360. package/dist/src/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
  361. package/dist/src/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
  362. package/dist/src/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
  363. package/dist/src/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
  364. package/dist/src/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
  365. package/dist/worker/pdf.worker.js +0 -66
  366. package/dist/worker/pptx.worker.js +0 -21
  367. package/dist/worker/sheet.worker.js +0 -38
  368. package/dist/worker/xlsx.worker.js +0 -65
  369. /package/dist/src/package/vendors/xlsx/worker/{xlsx → sheetjs}/color.d.ts +0 -0
  370. /package/dist/src/package/vendors/xlsx/worker/{xls → sheetjs}/index.d.ts +0 -0
@@ -0,0 +1,2015 @@
1
+ import { n as e, r as t } from "./chunk-AGHRB4JF.js";
2
+ import { D as n, H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f, z as p } from "./chunk-CSCIHK7Q.js";
3
+ import { t as m } from "./linear.js";
4
+ import { t as h } from "./ordinal.js";
5
+ import { v as g } from "./src.js";
6
+ import { t as _ } from "./init.js";
7
+ import { i as v } from "./chunk-5ZQYHXKU.js";
8
+ import { t as y } from "./chunk-WU5MYG2G.js";
9
+ import { t as b } from "./chunk-O5CBEL6O.js";
10
+ //#region node_modules/.pnpm/d3-array@3.2.4/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/.pnpm/d3-scale@4.0.2/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
+ }, _.apply(d(), arguments);
52
+ }
53
+ //#endregion
54
+ //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-2RQKCTM6.mjs
55
+ var C, w, T, E, D, O, k, A, j, M, N = (function() {
56
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
57
+ for (n = 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__ */ e(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__ */ e(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
+ t(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
+ t(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
+ t(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
+ t(c, [2, 34]),
440
+ t(c, [2, 35]),
441
+ t(c, [2, 36]),
442
+ { 1: [2, 1] },
443
+ t(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
+ t(c, [2, 5]),
454
+ t(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
+ t(T, [2, 18]),
560
+ { 1: [2, 2] },
561
+ t(T, [2, 8]),
562
+ t(T, [2, 9]),
563
+ t(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
+ t(E, [2, 38]),
577
+ t(E, [2, 39]),
578
+ t(D, [2, 40]),
579
+ t(D, [2, 42]),
580
+ t(D, [2, 43]),
581
+ t(D, [2, 44]),
582
+ t(D, [2, 45]),
583
+ t(D, [2, 46]),
584
+ t(D, [2, 47]),
585
+ t(D, [2, 48]),
586
+ t(D, [2, 49]),
587
+ t(D, [2, 50]),
588
+ t(D, [2, 51]),
589
+ t(T, [2, 10]),
590
+ t(T, [2, 22], {
591
+ 30: 41,
592
+ 29: 56,
593
+ 24: x,
594
+ 27: S
595
+ }),
596
+ t(T, [2, 24]),
597
+ t(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
+ t(T, [2, 11]),
618
+ t(T, [2, 30], {
619
+ 33: 60,
620
+ 27: C
621
+ }),
622
+ t(T, [2, 32]),
623
+ { 31: [1, 61] },
624
+ t(T, [2, 12]),
625
+ {
626
+ 17: 62,
627
+ 24: w
628
+ },
629
+ {
630
+ 25: 63,
631
+ 27: O
632
+ },
633
+ t(T, [2, 14]),
634
+ {
635
+ 17: 65,
636
+ 24: w
637
+ },
638
+ t(T, [2, 16]),
639
+ t(T, [2, 17]),
640
+ t(D, [2, 41]),
641
+ t(T, [2, 23]),
642
+ { 27: [1, 66] },
643
+ { 26: [1, 67] },
644
+ {
645
+ 26: [2, 29],
646
+ 28: [1, 68]
647
+ },
648
+ t(T, [2, 31]),
649
+ { 27: [1, 69] },
650
+ t(T, [2, 13]),
651
+ { 26: [1, 70] },
652
+ {
653
+ 26: [2, 21],
654
+ 28: [1, 71]
655
+ },
656
+ t(T, [2, 15]),
657
+ t(T, [2, 26]),
658
+ t(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
+ t(T, [2, 33]),
678
+ t(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__ */ e(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__ */ e(function(t) {
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(t, 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
+ e(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
+ e(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 == null && (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__ */ e(function(e, t) {
761
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
762
+ else throw Error(e);
763
+ }, "parseError"),
764
+ setInput: /* @__PURE__ */ e(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__ */ e(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__ */ e(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__ */ e(function() {
790
+ return this._more = !0, this;
791
+ }, "more"),
792
+ reject: /* @__PURE__ */ e(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__ */ e(function(e) {
802
+ this.unput(this.match.slice(e));
803
+ }, "less"),
804
+ pastInput: /* @__PURE__ */ e(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__ */ e(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__ */ e(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__ */ e(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__ */ e(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__ */ e(function() {
870
+ return this.next() || this.lex();
871
+ }, "lex"),
872
+ begin: /* @__PURE__ */ e(function(e) {
873
+ this.conditionStack.push(e);
874
+ }, "begin"),
875
+ popState: /* @__PURE__ */ e(function() {
876
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
877
+ }, "popState"),
878
+ _currentRules: /* @__PURE__ */ e(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__ */ e(function(e) {
882
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
883
+ }, "topState"),
884
+ pushState: /* @__PURE__ */ e(function(e) {
885
+ this.begin(e);
886
+ }, "pushState"),
887
+ stateStackSize: /* @__PURE__ */ e(function() {
888
+ return this.conditionStack.length;
889
+ }, "stateStackSize"),
890
+ options: { "case-insensitive": !0 },
891
+ performAction: /* @__PURE__ */ e(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 e(A, "Parser"), A.prototype = k, k.Parser = A, new A();
1237
+ })();
1238
+ N.parser = N;
1239
+ var ee = N;
1240
+ function P(e) {
1241
+ return e.type === "bar";
1242
+ }
1243
+ e(P, "isBarPlot");
1244
+ function F(e) {
1245
+ return e.type === "band";
1246
+ }
1247
+ e(F, "isBandAxisData");
1248
+ function I(e) {
1249
+ return e.type === "linear";
1250
+ }
1251
+ e(I, "isLinearAxisData");
1252
+ var L = (C = class {
1253
+ constructor(e) {
1254
+ this.parentGroup = e;
1255
+ }
1256
+ getMaxDimension(e, t) {
1257
+ if (!this.parentGroup) return {
1258
+ width: e.reduce((e, t) => Math.max(t.length, e), 0) * t,
1259
+ height: t
1260
+ };
1261
+ let n = {
1262
+ width: 0,
1263
+ height: 0
1264
+ }, r = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", t);
1265
+ for (let i of e) {
1266
+ let e = b(r, 1, i), a = e ? e.width : i.length * t, o = e ? e.height : t;
1267
+ n.width = Math.max(n.width, a), n.height = Math.max(n.height, o);
1268
+ }
1269
+ return r.remove(), n;
1270
+ }
1271
+ }, e(C, "TextDimensionCalculatorWithFont"), C), te = .7, ne = .2, re = (w = class {
1272
+ constructor(e, t, n, r) {
1273
+ this.axisConfig = e, this.title = t, this.textDimensionCalculator = n, this.axisThemeConfig = r, this.boundingRect = {
1274
+ x: 0,
1275
+ y: 0,
1276
+ width: 0,
1277
+ height: 0
1278
+ }, 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 = {
1279
+ x: 0,
1280
+ y: 0,
1281
+ width: 0,
1282
+ height: 0
1283
+ }, this.axisPosition = "left";
1284
+ }
1285
+ setRange(e) {
1286
+ 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();
1287
+ }
1288
+ getRange() {
1289
+ return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
1290
+ }
1291
+ setAxisPosition(e) {
1292
+ this.axisPosition = e, this.setRange(this.range);
1293
+ }
1294
+ getTickDistance() {
1295
+ let e = this.getRange();
1296
+ return Math.abs(e[0] - e[1]) / this.getTickValues().length;
1297
+ }
1298
+ getAxisOuterPadding() {
1299
+ return this.outerPadding;
1300
+ }
1301
+ getLabelDimension() {
1302
+ return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((e) => e.toString()), this.axisConfig.labelFontSize);
1303
+ }
1304
+ recalculateOuterPaddingToDrawBar() {
1305
+ te * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(te * this.getTickDistance() / 2)), this.recalculateScale();
1306
+ }
1307
+ calculateSpaceIfDrawnHorizontally(e) {
1308
+ let t = e.height;
1309
+ if (this.axisConfig.showAxisLine && t > this.axisConfig.axisLineWidth && (t -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
1310
+ let n = this.getLabelDimension(), r = ne * e.width;
1311
+ this.outerPadding = Math.min(n.width / 2, r);
1312
+ let i = n.height + this.axisConfig.labelPadding * 2;
1313
+ this.labelTextHeight = n.height, i <= t && (t -= i, this.showLabel = !0);
1314
+ }
1315
+ if (this.axisConfig.showTick && t >= this.axisConfig.tickLength && (this.showTick = !0, t -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
1316
+ let e = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), n = e.height + this.axisConfig.titlePadding * 2;
1317
+ this.titleTextHeight = e.height, n <= t && (t -= n, this.showTitle = !0);
1318
+ }
1319
+ this.boundingRect.width = e.width, this.boundingRect.height = e.height - t;
1320
+ }
1321
+ calculateSpaceIfDrawnVertical(e) {
1322
+ let t = e.width;
1323
+ if (this.axisConfig.showAxisLine && t > this.axisConfig.axisLineWidth && (t -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
1324
+ let n = this.getLabelDimension(), r = ne * e.height;
1325
+ this.outerPadding = Math.min(n.height / 2, r);
1326
+ let i = n.width + this.axisConfig.labelPadding * 2;
1327
+ i <= t && (t -= i, this.showLabel = !0);
1328
+ }
1329
+ if (this.axisConfig.showTick && t >= this.axisConfig.tickLength && (this.showTick = !0, t -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
1330
+ let e = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), n = e.height + this.axisConfig.titlePadding * 2;
1331
+ this.titleTextHeight = e.height, n <= t && (t -= n, this.showTitle = !0);
1332
+ }
1333
+ this.boundingRect.width = e.width - t, this.boundingRect.height = e.height;
1334
+ }
1335
+ calculateSpace(e) {
1336
+ return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(e) : this.calculateSpaceIfDrawnHorizontally(e), this.recalculateScale(), {
1337
+ width: this.boundingRect.width,
1338
+ height: this.boundingRect.height
1339
+ };
1340
+ }
1341
+ setBoundingBoxXY(e) {
1342
+ this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1343
+ }
1344
+ getDrawableElementsForLeftAxis() {
1345
+ let e = [];
1346
+ if (this.showAxisLine) {
1347
+ let t = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
1348
+ e.push({
1349
+ type: "path",
1350
+ groupTexts: ["left-axis", "axisl-line"],
1351
+ data: [{
1352
+ path: `M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y + this.boundingRect.height} `,
1353
+ strokeFill: this.axisThemeConfig.axisLineColor,
1354
+ strokeWidth: this.axisConfig.axisLineWidth
1355
+ }]
1356
+ });
1357
+ }
1358
+ if (this.showLabel && e.push({
1359
+ type: "text",
1360
+ groupTexts: ["left-axis", "label"],
1361
+ data: this.getTickValues().map((e) => ({
1362
+ text: e.toString(),
1363
+ 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),
1364
+ y: this.getScaleValue(e),
1365
+ fill: this.axisThemeConfig.labelColor,
1366
+ fontSize: this.axisConfig.labelFontSize,
1367
+ rotation: 0,
1368
+ verticalPos: "middle",
1369
+ horizontalPos: "right"
1370
+ }))
1371
+ }), this.showTick) {
1372
+ let t = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1373
+ e.push({
1374
+ type: "path",
1375
+ groupTexts: ["left-axis", "ticks"],
1376
+ data: this.getTickValues().map((e) => ({
1377
+ path: `M ${t},${this.getScaleValue(e)} L ${t - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
1378
+ strokeFill: this.axisThemeConfig.tickColor,
1379
+ strokeWidth: this.axisConfig.tickWidth
1380
+ }))
1381
+ });
1382
+ }
1383
+ return this.showTitle && e.push({
1384
+ type: "text",
1385
+ groupTexts: ["left-axis", "title"],
1386
+ data: [{
1387
+ text: this.title,
1388
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
1389
+ y: this.boundingRect.y + this.boundingRect.height / 2,
1390
+ fill: this.axisThemeConfig.titleColor,
1391
+ fontSize: this.axisConfig.titleFontSize,
1392
+ rotation: 270,
1393
+ verticalPos: "top",
1394
+ horizontalPos: "center"
1395
+ }]
1396
+ }), e;
1397
+ }
1398
+ getDrawableElementsForBottomAxis() {
1399
+ let e = [];
1400
+ if (this.showAxisLine) {
1401
+ let t = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
1402
+ e.push({
1403
+ type: "path",
1404
+ groupTexts: ["bottom-axis", "axis-line"],
1405
+ data: [{
1406
+ path: `M ${this.boundingRect.x},${t} L ${this.boundingRect.x + this.boundingRect.width},${t}`,
1407
+ strokeFill: this.axisThemeConfig.axisLineColor,
1408
+ strokeWidth: this.axisConfig.axisLineWidth
1409
+ }]
1410
+ });
1411
+ }
1412
+ if (this.showLabel && e.push({
1413
+ type: "text",
1414
+ groupTexts: ["bottom-axis", "label"],
1415
+ data: this.getTickValues().map((e) => ({
1416
+ text: e.toString(),
1417
+ x: this.getScaleValue(e),
1418
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
1419
+ fill: this.axisThemeConfig.labelColor,
1420
+ fontSize: this.axisConfig.labelFontSize,
1421
+ rotation: 0,
1422
+ verticalPos: "top",
1423
+ horizontalPos: "center"
1424
+ }))
1425
+ }), this.showTick) {
1426
+ let t = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1427
+ e.push({
1428
+ type: "path",
1429
+ groupTexts: ["bottom-axis", "ticks"],
1430
+ data: this.getTickValues().map((e) => ({
1431
+ path: `M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t + this.axisConfig.tickLength}`,
1432
+ strokeFill: this.axisThemeConfig.tickColor,
1433
+ strokeWidth: this.axisConfig.tickWidth
1434
+ }))
1435
+ });
1436
+ }
1437
+ return this.showTitle && e.push({
1438
+ type: "text",
1439
+ groupTexts: ["bottom-axis", "title"],
1440
+ data: [{
1441
+ text: this.title,
1442
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
1443
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
1444
+ fill: this.axisThemeConfig.titleColor,
1445
+ fontSize: this.axisConfig.titleFontSize,
1446
+ rotation: 0,
1447
+ verticalPos: "top",
1448
+ horizontalPos: "center"
1449
+ }]
1450
+ }), e;
1451
+ }
1452
+ getDrawableElementsForTopAxis() {
1453
+ let e = [];
1454
+ if (this.showAxisLine) {
1455
+ let t = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
1456
+ e.push({
1457
+ type: "path",
1458
+ groupTexts: ["top-axis", "axis-line"],
1459
+ data: [{
1460
+ path: `M ${this.boundingRect.x},${t} L ${this.boundingRect.x + this.boundingRect.width},${t}`,
1461
+ strokeFill: this.axisThemeConfig.axisLineColor,
1462
+ strokeWidth: this.axisConfig.axisLineWidth
1463
+ }]
1464
+ });
1465
+ }
1466
+ if (this.showLabel && e.push({
1467
+ type: "text",
1468
+ groupTexts: ["top-axis", "label"],
1469
+ data: this.getTickValues().map((e) => ({
1470
+ text: e.toString(),
1471
+ x: this.getScaleValue(e),
1472
+ y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
1473
+ fill: this.axisThemeConfig.labelColor,
1474
+ fontSize: this.axisConfig.labelFontSize,
1475
+ rotation: 0,
1476
+ verticalPos: "top",
1477
+ horizontalPos: "center"
1478
+ }))
1479
+ }), this.showTick) {
1480
+ let t = this.boundingRect.y;
1481
+ e.push({
1482
+ type: "path",
1483
+ groupTexts: ["top-axis", "ticks"],
1484
+ data: this.getTickValues().map((e) => ({
1485
+ 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)}`,
1486
+ strokeFill: this.axisThemeConfig.tickColor,
1487
+ strokeWidth: this.axisConfig.tickWidth
1488
+ }))
1489
+ });
1490
+ }
1491
+ return this.showTitle && e.push({
1492
+ type: "text",
1493
+ groupTexts: ["top-axis", "title"],
1494
+ data: [{
1495
+ text: this.title,
1496
+ x: this.boundingRect.x + this.boundingRect.width / 2,
1497
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
1498
+ fill: this.axisThemeConfig.titleColor,
1499
+ fontSize: this.axisConfig.titleFontSize,
1500
+ rotation: 0,
1501
+ verticalPos: "top",
1502
+ horizontalPos: "center"
1503
+ }]
1504
+ }), e;
1505
+ }
1506
+ getDrawableElements() {
1507
+ if (this.axisPosition === "left") return this.getDrawableElementsForLeftAxis();
1508
+ if (this.axisPosition === "right") throw Error("Drawing of right axis is not implemented");
1509
+ return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
1510
+ }
1511
+ }, e(w, "BaseAxis"), w), ie = (T = class extends re {
1512
+ constructor(e, t, n, r, i) {
1513
+ super(e, r, i, t), this.categories = n, this.scale = S().domain(this.categories).range(this.getRange());
1514
+ }
1515
+ setRange(e) {
1516
+ super.setRange(e);
1517
+ }
1518
+ recalculateScale() {
1519
+ this.scale = S().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5), t.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
1520
+ }
1521
+ getTickValues() {
1522
+ return this.categories;
1523
+ }
1524
+ getScaleValue(e) {
1525
+ var t;
1526
+ return (t = this.scale(e)) == null ? this.getRange()[0] : t;
1527
+ }
1528
+ }, e(T, "BandAxis"), T), ae = (E = class extends re {
1529
+ constructor(e, t, n, r, i) {
1530
+ super(e, r, i, t), this.domain = n, this.scale = m().domain(this.domain).range(this.getRange());
1531
+ }
1532
+ getTickValues() {
1533
+ return this.scale.ticks();
1534
+ }
1535
+ recalculateScale() {
1536
+ let e = [...this.domain];
1537
+ this.axisPosition === "left" && e.reverse(), this.scale = m().domain(e).range(this.getRange());
1538
+ }
1539
+ getScaleValue(e) {
1540
+ return this.scale(e);
1541
+ }
1542
+ }, e(E, "LinearAxis"), E);
1543
+ function R(e, t, n, r) {
1544
+ let i = new L(r);
1545
+ return F(e) ? new ie(t, n, e.categories, e.title, i) : new ae(t, n, [e.min, e.max], e.title, i);
1546
+ }
1547
+ e(R, "getAxis");
1548
+ var oe = (D = class {
1549
+ constructor(e, t, n, r) {
1550
+ this.textDimensionCalculator = e, this.chartConfig = t, this.chartData = n, this.chartThemeConfig = r, this.boundingRect = {
1551
+ x: 0,
1552
+ y: 0,
1553
+ width: 0,
1554
+ height: 0
1555
+ }, this.showChartTitle = !1;
1556
+ }
1557
+ setBoundingBoxXY(e) {
1558
+ this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1559
+ }
1560
+ calculateSpace(e) {
1561
+ 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;
1562
+ return t.width <= n && t.height <= r && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = n, this.boundingRect.height = r, this.showChartTitle = !0), {
1563
+ width: this.boundingRect.width,
1564
+ height: this.boundingRect.height
1565
+ };
1566
+ }
1567
+ getDrawableElements() {
1568
+ let e = [];
1569
+ return this.showChartTitle && e.push({
1570
+ groupTexts: ["chart-title"],
1571
+ type: "text",
1572
+ data: [{
1573
+ fontSize: this.chartConfig.titleFontSize,
1574
+ text: this.chartData.title,
1575
+ verticalPos: "middle",
1576
+ horizontalPos: "center",
1577
+ x: this.boundingRect.x + this.boundingRect.width / 2,
1578
+ y: this.boundingRect.y + this.boundingRect.height / 2,
1579
+ fill: this.chartThemeConfig.titleColor,
1580
+ rotation: 0
1581
+ }]
1582
+ }), e;
1583
+ }
1584
+ }, e(D, "ChartTitle"), D);
1585
+ function se(e, t, n, r) {
1586
+ return new oe(new L(r), e, t, n);
1587
+ }
1588
+ e(se, "getChartTitleComponent");
1589
+ var ce = (O = class {
1590
+ constructor(e, t, n, r, i) {
1591
+ this.plotData = e, this.xAxis = t, this.yAxis = n, this.orientation = r, this.plotIndex = i;
1592
+ }
1593
+ getDrawableElement() {
1594
+ let e = this.plotData.data.map((e) => [this.xAxis.getScaleValue(e[0]), this.yAxis.getScaleValue(e[1])]), t;
1595
+ return t = this.orientation === "horizontal" ? g().y((e) => e[0]).x((e) => e[1])(e) : g().x((e) => e[0]).y((e) => e[1])(e), t ? [{
1596
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`],
1597
+ type: "path",
1598
+ data: [{
1599
+ path: t,
1600
+ strokeFill: this.plotData.strokeFill,
1601
+ strokeWidth: this.plotData.strokeWidth
1602
+ }]
1603
+ }] : [];
1604
+ }
1605
+ }, e(O, "LinePlot"), O), le = (k = class {
1606
+ constructor(e, t, n, r, i, a) {
1607
+ this.barData = e, this.boundingRect = t, this.xAxis = n, this.yAxis = r, this.orientation = i, this.plotIndex = a;
1608
+ }
1609
+ getDrawableElement() {
1610
+ 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;
1611
+ return this.orientation === "horizontal" ? [{
1612
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1613
+ type: "rect",
1614
+ data: e.map((e) => ({
1615
+ x: this.boundingRect.x,
1616
+ y: e[0] - n,
1617
+ height: t,
1618
+ width: e[1] - this.boundingRect.x,
1619
+ fill: this.barData.fill,
1620
+ strokeWidth: 0,
1621
+ strokeFill: this.barData.fill
1622
+ }))
1623
+ }] : [{
1624
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1625
+ type: "rect",
1626
+ data: e.map((e) => ({
1627
+ x: e[0] - n,
1628
+ y: e[1],
1629
+ width: t,
1630
+ height: this.boundingRect.y + this.boundingRect.height - e[1],
1631
+ fill: this.barData.fill,
1632
+ strokeWidth: 0,
1633
+ strokeFill: this.barData.fill
1634
+ }))
1635
+ }];
1636
+ }
1637
+ }, e(k, "BarPlot"), k), ue = (A = class {
1638
+ constructor(e, t, n) {
1639
+ this.chartConfig = e, this.chartData = t, this.chartThemeConfig = n, this.boundingRect = {
1640
+ x: 0,
1641
+ y: 0,
1642
+ width: 0,
1643
+ height: 0
1644
+ };
1645
+ }
1646
+ setAxes(e, t) {
1647
+ this.xAxis = e, this.yAxis = t;
1648
+ }
1649
+ setBoundingBoxXY(e) {
1650
+ this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1651
+ }
1652
+ calculateSpace(e) {
1653
+ return this.boundingRect.width = e.width, this.boundingRect.height = e.height, {
1654
+ width: this.boundingRect.width,
1655
+ height: this.boundingRect.height
1656
+ };
1657
+ }
1658
+ getDrawableElements() {
1659
+ if (!(this.xAxis && this.yAxis)) throw Error("Axes must be passed to render Plots");
1660
+ let e = [];
1661
+ for (let [t, n] of this.chartData.plots.entries()) switch (n.type) {
1662
+ case "line":
1663
+ {
1664
+ let r = new ce(n, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1665
+ e.push(...r.getDrawableElement());
1666
+ }
1667
+ break;
1668
+ case "bar":
1669
+ {
1670
+ let r = new le(n, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1671
+ e.push(...r.getDrawableElement());
1672
+ }
1673
+ break;
1674
+ }
1675
+ return e;
1676
+ }
1677
+ }, e(A, "BasePlot"), A);
1678
+ function de(e, t, n) {
1679
+ return new ue(e, t, n);
1680
+ }
1681
+ e(de, "getPlotComponent");
1682
+ var fe = (j = class {
1683
+ constructor(e, t, n, r) {
1684
+ this.chartConfig = e, this.chartData = t, this.componentStore = {
1685
+ title: se(e, t, n, r),
1686
+ plot: de(e, t, n),
1687
+ xAxis: R(t.xAxis, e.xAxis, {
1688
+ titleColor: n.xAxisTitleColor,
1689
+ labelColor: n.xAxisLabelColor,
1690
+ tickColor: n.xAxisTickColor,
1691
+ axisLineColor: n.xAxisLineColor
1692
+ }, r),
1693
+ yAxis: R(t.yAxis, e.yAxis, {
1694
+ titleColor: n.yAxisTitleColor,
1695
+ labelColor: n.yAxisLabelColor,
1696
+ tickColor: n.yAxisTickColor,
1697
+ axisLineColor: n.yAxisLineColor
1698
+ }, r)
1699
+ };
1700
+ }
1701
+ calculateVerticalSpace() {
1702
+ 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({
1703
+ width: i,
1704
+ height: a
1705
+ });
1706
+ e -= o.width, t -= o.height, o = this.componentStore.title.calculateSpace({
1707
+ width: this.chartConfig.width,
1708
+ height: t
1709
+ }), r = o.height, t -= o.height, this.componentStore.xAxis.setAxisPosition("bottom"), o = this.componentStore.xAxis.calculateSpace({
1710
+ width: e,
1711
+ height: t
1712
+ }), t -= o.height, this.componentStore.yAxis.setAxisPosition("left"), o = this.componentStore.yAxis.calculateSpace({
1713
+ width: e,
1714
+ height: t
1715
+ }), n = o.width, e -= o.width, e > 0 && (i += e, e = 0), t > 0 && (a += t, t = 0), this.componentStore.plot.calculateSpace({
1716
+ width: i,
1717
+ height: a
1718
+ }), this.componentStore.plot.setBoundingBoxXY({
1719
+ x: n,
1720
+ y: r
1721
+ }), this.componentStore.xAxis.setRange([n, n + i]), this.componentStore.xAxis.setBoundingBoxXY({
1722
+ x: n,
1723
+ y: r + a
1724
+ }), this.componentStore.yAxis.setRange([r, r + a]), this.componentStore.yAxis.setBoundingBoxXY({
1725
+ x: 0,
1726
+ y: r
1727
+ }), this.chartData.plots.some((e) => P(e)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1728
+ }
1729
+ calculateHorizontalSpace() {
1730
+ 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({
1731
+ width: a,
1732
+ height: o
1733
+ });
1734
+ e -= s.width, t -= s.height, s = this.componentStore.title.calculateSpace({
1735
+ width: this.chartConfig.width,
1736
+ height: t
1737
+ }), n = s.height, t -= s.height, this.componentStore.xAxis.setAxisPosition("left"), s = this.componentStore.xAxis.calculateSpace({
1738
+ width: e,
1739
+ height: t
1740
+ }), e -= s.width, r = s.width, this.componentStore.yAxis.setAxisPosition("top"), s = this.componentStore.yAxis.calculateSpace({
1741
+ width: e,
1742
+ height: t
1743
+ }), t -= s.height, i = n + s.height, e > 0 && (a += e, e = 0), t > 0 && (o += t, t = 0), this.componentStore.plot.calculateSpace({
1744
+ width: a,
1745
+ height: o
1746
+ }), this.componentStore.plot.setBoundingBoxXY({
1747
+ x: r,
1748
+ y: i
1749
+ }), this.componentStore.yAxis.setRange([r, r + a]), this.componentStore.yAxis.setBoundingBoxXY({
1750
+ x: r,
1751
+ y: n
1752
+ }), this.componentStore.xAxis.setRange([i, i + o]), this.componentStore.xAxis.setBoundingBoxXY({
1753
+ x: 0,
1754
+ y: i
1755
+ }), this.chartData.plots.some((e) => P(e)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1756
+ }
1757
+ calculateSpace() {
1758
+ this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1759
+ }
1760
+ getDrawableElement() {
1761
+ this.calculateSpace();
1762
+ let e = [];
1763
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1764
+ for (let t of Object.values(this.componentStore)) e.push(...t.getDrawableElements());
1765
+ return e;
1766
+ }
1767
+ }, e(j, "Orchestrator"), j), pe = (M = class {
1768
+ static build(e, t, n, r) {
1769
+ return new fe(e, t, n, r).getDrawableElement();
1770
+ }
1771
+ }, e(M, "XYChartBuilder"), M), z = 0, me, B = q(), V = K(), H = J(), U = V.plotColorPalette.split(",").map((e) => e.trim()), W = !1, G = !1;
1772
+ function K() {
1773
+ let e = n(), t = s();
1774
+ return v(e.xyChart, t.themeVariables.xyChart);
1775
+ }
1776
+ e(K, "getChartDefaultThemeConfig");
1777
+ function q() {
1778
+ let e = s();
1779
+ return v(l.xyChart, e.xyChart);
1780
+ }
1781
+ e(q, "getChartDefaultConfig");
1782
+ function J() {
1783
+ return {
1784
+ yAxis: {
1785
+ type: "linear",
1786
+ title: "",
1787
+ min: Infinity,
1788
+ max: -Infinity
1789
+ },
1790
+ xAxis: {
1791
+ type: "band",
1792
+ title: "",
1793
+ categories: []
1794
+ },
1795
+ title: "",
1796
+ plots: []
1797
+ };
1798
+ }
1799
+ e(J, "getChartDefaultData");
1800
+ function Y(e) {
1801
+ let t = s();
1802
+ return p(e.trim(), t);
1803
+ }
1804
+ e(Y, "textSanitizer");
1805
+ function he(e) {
1806
+ me = e;
1807
+ }
1808
+ e(he, "setTmpSVGG");
1809
+ function ge(e) {
1810
+ e === "horizontal" ? B.chartOrientation = "horizontal" : B.chartOrientation = "vertical";
1811
+ }
1812
+ e(ge, "setOrientation");
1813
+ function _e(e) {
1814
+ H.xAxis.title = Y(e.text);
1815
+ }
1816
+ e(_e, "setXAxisTitle");
1817
+ function X(e, t) {
1818
+ H.xAxis = {
1819
+ type: "linear",
1820
+ title: H.xAxis.title,
1821
+ min: e,
1822
+ max: t
1823
+ }, W = !0;
1824
+ }
1825
+ e(X, "setXAxisRangeData");
1826
+ function ve(e) {
1827
+ H.xAxis = {
1828
+ type: "band",
1829
+ title: H.xAxis.title,
1830
+ categories: e.map((e) => Y(e.text))
1831
+ }, W = !0;
1832
+ }
1833
+ e(ve, "setXAxisBand");
1834
+ function ye(e) {
1835
+ H.yAxis.title = Y(e.text);
1836
+ }
1837
+ e(ye, "setYAxisTitle");
1838
+ function be(e, t) {
1839
+ H.yAxis = {
1840
+ type: "linear",
1841
+ title: H.yAxis.title,
1842
+ min: e,
1843
+ max: t
1844
+ }, G = !0;
1845
+ }
1846
+ e(be, "setYAxisRangeData");
1847
+ function xe(e) {
1848
+ let t = Math.min(...e), n = Math.max(...e), r = I(H.yAxis) ? H.yAxis.min : Infinity, i = I(H.yAxis) ? H.yAxis.max : -Infinity;
1849
+ H.yAxis = {
1850
+ type: "linear",
1851
+ title: H.yAxis.title,
1852
+ min: Math.min(r, t),
1853
+ max: Math.max(i, n)
1854
+ };
1855
+ }
1856
+ e(xe, "setYAxisRangeFromPlotData");
1857
+ function Z(e) {
1858
+ let t = [];
1859
+ if (e.length === 0) return t;
1860
+ if (!W) {
1861
+ let t = I(H.xAxis) ? H.xAxis.min : Infinity, n = I(H.xAxis) ? H.xAxis.max : -Infinity;
1862
+ X(Math.min(t, 1), Math.max(n, e.length));
1863
+ }
1864
+ if (G || xe(e), F(H.xAxis) && (t = H.xAxis.categories.map((t, n) => [t, e[n]])), I(H.xAxis)) {
1865
+ let n = H.xAxis.min, r = H.xAxis.max, i = (r - n) / (e.length - 1), a = [];
1866
+ for (let e = n; e <= r; e += i) a.push(`${e}`);
1867
+ t = a.map((t, n) => [t, e[n]]);
1868
+ }
1869
+ return t;
1870
+ }
1871
+ e(Z, "transformDataWithoutCategory");
1872
+ function Q(e) {
1873
+ return U[e === 0 ? 0 : e % U.length];
1874
+ }
1875
+ e(Q, "getPlotColorFromPalette");
1876
+ function Se(e, t) {
1877
+ let n = Z(t);
1878
+ H.plots.push({
1879
+ type: "line",
1880
+ strokeFill: Q(z),
1881
+ strokeWidth: 2,
1882
+ data: n
1883
+ }), z++;
1884
+ }
1885
+ e(Se, "setLineData");
1886
+ function Ce(e, t) {
1887
+ let n = Z(t);
1888
+ H.plots.push({
1889
+ type: "bar",
1890
+ fill: Q(z),
1891
+ data: n
1892
+ }), z++;
1893
+ }
1894
+ e(Ce, "setBarData");
1895
+ function $() {
1896
+ if (H.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data");
1897
+ return H.title = d(), pe.build(B, H, V, me);
1898
+ }
1899
+ e($, "getDrawableElem");
1900
+ function we() {
1901
+ return V;
1902
+ }
1903
+ e(we, "getChartThemeConfig");
1904
+ function Te() {
1905
+ return B;
1906
+ }
1907
+ e(Te, "getChartConfig");
1908
+ function Ee() {
1909
+ return H;
1910
+ }
1911
+ e(Ee, "getXYChartData");
1912
+ var De = {
1913
+ parser: ee,
1914
+ db: {
1915
+ getDrawableElem: $,
1916
+ clear: /* @__PURE__ */ e(function() {
1917
+ o(), z = 0, B = q(), H = J(), V = K(), U = V.plotColorPalette.split(",").map((e) => e.trim()), W = !1, G = !1;
1918
+ }, "clear"),
1919
+ setAccTitle: a,
1920
+ getAccTitle: f,
1921
+ setDiagramTitle: i,
1922
+ getDiagramTitle: d,
1923
+ getAccDescription: u,
1924
+ setAccDescription: r,
1925
+ setOrientation: ge,
1926
+ setXAxisTitle: _e,
1927
+ setXAxisRangeData: X,
1928
+ setXAxisBand: ve,
1929
+ setYAxisTitle: ye,
1930
+ setYAxisRangeData: be,
1931
+ setLineData: Se,
1932
+ setBarData: Ce,
1933
+ setTmpSVGG: he,
1934
+ getChartThemeConfig: we,
1935
+ getChartConfig: Te,
1936
+ getXYChartData: Ee
1937
+ },
1938
+ renderer: { draw: /* @__PURE__ */ e((n, r, i, a) => {
1939
+ let o = a.db, s = o.getChartThemeConfig(), l = o.getChartConfig(), u = o.getXYChartData().plots[0].data.map((e) => e[1]);
1940
+ function d(e) {
1941
+ return e === "top" ? "text-before-edge" : "middle";
1942
+ }
1943
+ e(d, "getDominantBaseLine");
1944
+ function f(e) {
1945
+ return e === "left" ? "start" : e === "right" ? "end" : "middle";
1946
+ }
1947
+ e(f, "getTextAnchor");
1948
+ function p(e) {
1949
+ return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1950
+ }
1951
+ e(p, "getTextTransformation"), t.debug("Rendering xychart chart\n" + n);
1952
+ let m = y(r), h = m.append("g").attr("class", "main"), g = h.append("rect").attr("width", l.width).attr("height", l.height).attr("class", "background");
1953
+ c(m, l.height, l.width, !0), m.attr("viewBox", `0 0 ${l.width} ${l.height}`), g.attr("fill", s.backgroundColor), o.setTmpSVGG(m.append("g").attr("class", "mermaid-tmp-group"));
1954
+ let _ = o.getDrawableElem(), v = {};
1955
+ function b(e) {
1956
+ let t = h, n = "";
1957
+ for (let [r] of e.entries()) {
1958
+ let i = h;
1959
+ r > 0 && v[n] && (i = v[n]), n += e[r], t = v[n], t || (t = v[n] = i.append("g").attr("class", e[r]));
1960
+ }
1961
+ return t;
1962
+ }
1963
+ e(b, "getGroup");
1964
+ for (let t of _) {
1965
+ if (t.data.length === 0) continue;
1966
+ let n = b(t.groupTexts);
1967
+ switch (t.type) {
1968
+ case "rect":
1969
+ if (n.selectAll("rect").data(t.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), l.showDataLabel) {
1970
+ let r = l.showDataLabelOutsideBar;
1971
+ if (l.chartOrientation === "horizontal") {
1972
+ let i = function(e, t) {
1973
+ let { data: n, label: r } = e;
1974
+ return t * r.length * a <= n.width - o;
1975
+ };
1976
+ e(i, "fitsHorizontally");
1977
+ let a = .7, o = 10, c = t.data.map((e, t) => ({
1978
+ data: e,
1979
+ label: u[t].toString()
1980
+ })).filter((e) => e.data.width > 0 && e.data.height > 0), l = c.map((e) => {
1981
+ let { data: t } = e, n = t.height * .7;
1982
+ for (; !i(e, n) && n > 0;) --n;
1983
+ return n;
1984
+ }), d = Math.floor(Math.min(...l)), f = /* @__PURE__ */ e((e) => r ? e.data.x + e.data.width + 10 : e.data.x + e.data.width - 10, "determineLabelXPosition");
1985
+ n.selectAll("text").data(c).enter().append("text").attr("x", f).attr("y", (e) => e.data.y + e.data.height / 2).attr("text-anchor", r ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", s.dataLabelColor).attr("font-size", `${d}px`).text((e) => e.label);
1986
+ } else {
1987
+ let i = function(e, t, n) {
1988
+ 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;
1989
+ return l && u;
1990
+ };
1991
+ e(i, "fitsInBar");
1992
+ let a = t.data.map((e, t) => ({
1993
+ data: e,
1994
+ label: u[t].toString()
1995
+ })).filter((e) => e.data.width > 0 && e.data.height > 0), o = a.map((e) => {
1996
+ let { data: t, label: n } = e, r = t.width / (n.length * .7);
1997
+ for (; !i(e, r, 10) && r > 0;) --r;
1998
+ return r;
1999
+ }), c = Math.floor(Math.min(...o)), l = /* @__PURE__ */ e((e) => r ? e.data.y - 10 : e.data.y + 10, "determineLabelYPosition");
2000
+ n.selectAll("text").data(a).enter().append("text").attr("x", (e) => e.data.x + e.data.width / 2).attr("y", l).attr("text-anchor", "middle").attr("dominant-baseline", r ? "auto" : "hanging").attr("fill", s.dataLabelColor).attr("font-size", `${c}px`).text((e) => e.label);
2001
+ }
2002
+ }
2003
+ break;
2004
+ case "text":
2005
+ n.selectAll("text").data(t.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);
2006
+ break;
2007
+ case "path":
2008
+ n.selectAll("path").data(t.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);
2009
+ break;
2010
+ }
2011
+ }
2012
+ }, "draw") }
2013
+ };
2014
+ //#endregion
2015
+ export { De as diagram };