@altimateai/ui-components 0.0.78-beta.1 → 0.0.78

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 (404) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +23919 -67654
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2231 -2829
  5. package/dist/Switch.js +87 -128
  6. package/dist/ToggleGroup.js +5100 -6285
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/arc.js +53 -53
  10. package/dist/architectureDiagram-VXUJARFQ.js +4315 -480
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +19 -57
  16. package/dist/chatbotV2/index.js +56 -91
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +14 -14
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +2535 -160
  28. package/dist/dagre-6UL2VRFP.js +101 -101
  29. package/dist/dayjs.min.js +2 -2
  30. package/dist/defaultLocale.js +3 -3
  31. package/dist/diagram-PSM6KHXK.js +414 -198
  32. package/dist/diagram-QEK2KX5R.js +26 -26
  33. package/dist/diagram-S2PKOQOG.js +12 -12
  34. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  35. package/dist/flowDiagram-NV44I4VS.js +6 -6
  36. package/dist/ganttDiagram-LVOFAZNH.js +1718 -843
  37. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  38. package/dist/graph.js +18 -17
  39. package/dist/index.d.ts +6 -101
  40. package/dist/index.js +37 -37
  41. package/dist/index2.js +684 -216
  42. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  43. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  44. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  45. package/dist/layout.js +678 -567
  46. package/dist/lineage/index.js +1309 -1302
  47. package/dist/linear.js +1 -1
  48. package/dist/main.css +1 -1
  49. package/dist/main.js +150 -150
  50. package/dist/mermaid-parser.core.js +155 -155
  51. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  52. package/dist/pieDiagram-ADFJNKIX.js +108 -68
  53. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  54. package/dist/redux-toolkit.modern.js +555 -563
  55. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  56. package/dist/sankeyDiagram-TZEHDZUN.js +622 -229
  57. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  58. package/dist/shadcn/index.d.ts +8 -11
  59. package/dist/shadcn/index.js +4733 -6547
  60. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  61. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  62. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  63. package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
  64. package/dist/xychartDiagram-PRI3JC2R.js +491 -449
  65. package/package.json +1 -1
  66. package/dist/abap.js +0 -6
  67. package/dist/actionscript-3.js +0 -6
  68. package/dist/ada.js +0 -6
  69. package/dist/andromeeda.js +0 -4
  70. package/dist/angular-html.js +0 -32
  71. package/dist/angular-ts.js +0 -21
  72. package/dist/apache.js +0 -6
  73. package/dist/apex.js +0 -6
  74. package/dist/apl.js +0 -16
  75. package/dist/applescript.js +0 -6
  76. package/dist/ara.js +0 -6
  77. package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
  78. package/dist/asciidoc.js +0 -6
  79. package/dist/asm.js +0 -6
  80. package/dist/astro.js +0 -18
  81. package/dist/aurora-x.js +0 -4
  82. package/dist/awk.js +0 -6
  83. package/dist/ayu-dark.js +0 -4
  84. package/dist/ballerina.js +0 -6
  85. package/dist/band.js +0 -46
  86. package/dist/bat.js +0 -6
  87. package/dist/beancount.js +0 -6
  88. package/dist/berry.js +0 -6
  89. package/dist/bibtex.js +0 -6
  90. package/dist/bicep.js +0 -6
  91. package/dist/blade.js +0 -20
  92. package/dist/blockDiagram-VD42YOAC2.js +0 -2266
  93. package/dist/bsl.js +0 -8
  94. package/dist/c.js +0 -6
  95. package/dist/c3.js +0 -6
  96. package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
  97. package/dist/cadence.js +0 -6
  98. package/dist/cairo.js +0 -8
  99. package/dist/catppuccin-frappe.js +0 -4
  100. package/dist/catppuccin-latte.js +0 -4
  101. package/dist/catppuccin-macchiato.js +0 -4
  102. package/dist/catppuccin-mocha.js +0 -4
  103. package/dist/chunk-4BX2VUAB2.js +0 -9
  104. package/dist/chunk-55IACEB62.js +0 -9
  105. package/dist/chunk-B4BG7PRW2.js +0 -1377
  106. package/dist/chunk-DI55MBZ52.js +0 -1382
  107. package/dist/chunk-FMBD7UC42.js +0 -19
  108. package/dist/chunk-QN33PNHL2.js +0 -20
  109. package/dist/chunk-QZHKN3VN2.js +0 -15
  110. package/dist/chunk-TZMSLE5B2.js +0 -64
  111. package/dist/clarity.js +0 -6
  112. package/dist/classDiagram-2ON5EDUG2.js +0 -17
  113. package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
  114. package/dist/clojure.js +0 -6
  115. package/dist/cmake.js +0 -6
  116. package/dist/cobol.js +0 -10
  117. package/dist/code-block-37QAKDTI.js +0 -27
  118. package/dist/codeowners.js +0 -6
  119. package/dist/codeql.js +0 -6
  120. package/dist/coffee.js +0 -8
  121. package/dist/common-lisp.js +0 -6
  122. package/dist/coq.js +0 -6
  123. package/dist/cose-bilkent-S5V4N54A2.js +0 -231
  124. package/dist/cpp.js +0 -18
  125. package/dist/crystal.js +0 -18
  126. package/dist/csharp.js +0 -6
  127. package/dist/css.js +0 -6
  128. package/dist/csv.js +0 -6
  129. package/dist/cue.js +0 -6
  130. package/dist/cypher.js +0 -6
  131. package/dist/cytoscape-cose-bilkent.js +0 -2380
  132. package/dist/cytoscape-fcose.js +0 -3840
  133. package/dist/d.js +0 -6
  134. package/dist/dagre-6UL2VRFP2.js +0 -447
  135. package/dist/dark-plus.js +0 -4
  136. package/dist/dart.js +0 -6
  137. package/dist/dax.js +0 -6
  138. package/dist/desktop.js +0 -6
  139. package/dist/diagram-PSM6KHXK2.js +0 -319
  140. package/dist/diagram-QEK2KX5R2.js +0 -221
  141. package/dist/diagram-S2PKOQOG2.js +0 -143
  142. package/dist/diff.js +0 -6
  143. package/dist/docker.js +0 -6
  144. package/dist/dotenv.js +0 -6
  145. package/dist/dracula-soft.js +0 -4
  146. package/dist/dracula.js +0 -4
  147. package/dist/dream-maker.js +0 -6
  148. package/dist/edge.js +0 -12
  149. package/dist/elixir.js +0 -8
  150. package/dist/elm.js +0 -8
  151. package/dist/emacs-lisp.js +0 -6
  152. package/dist/erDiagram-Q2GNP2WA2.js +0 -843
  153. package/dist/erb.js +0 -10
  154. package/dist/erlang.js +0 -8
  155. package/dist/everforest-dark.js +0 -4
  156. package/dist/everforest-light.js +0 -4
  157. package/dist/fennel.js +0 -6
  158. package/dist/fish.js +0 -6
  159. package/dist/flowDiagram-NV44I4VS2.js +0 -1628
  160. package/dist/fluent.js +0 -6
  161. package/dist/fortran-fixed-form.js +0 -8
  162. package/dist/fortran-free-form.js +0 -6
  163. package/dist/fsharp.js +0 -8
  164. package/dist/ganttDiagram-JELNMOA3.js +0 -1788
  165. package/dist/gdresource.js +0 -10
  166. package/dist/gdscript.js +0 -6
  167. package/dist/gdshader.js +0 -6
  168. package/dist/genie.js +0 -6
  169. package/dist/gherkin.js +0 -6
  170. package/dist/git-commit.js +0 -8
  171. package/dist/git-rebase.js +0 -8
  172. package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
  173. package/dist/github-dark-default.js +0 -4
  174. package/dist/github-dark-dimmed.js +0 -4
  175. package/dist/github-dark-high-contrast.js +0 -4
  176. package/dist/github-dark.js +0 -4
  177. package/dist/github-light-default.js +0 -4
  178. package/dist/github-light-high-contrast.js +0 -4
  179. package/dist/github-light.js +0 -4
  180. package/dist/gleam.js +0 -6
  181. package/dist/glimmer-js.js +0 -14
  182. package/dist/glimmer-ts.js +0 -14
  183. package/dist/glsl.js +0 -8
  184. package/dist/gn.js +0 -6
  185. package/dist/gnuplot.js +0 -6
  186. package/dist/go.js +0 -6
  187. package/dist/graph2.js +0 -246
  188. package/dist/graphql.js +0 -14
  189. package/dist/groovy.js +0 -6
  190. package/dist/gruvbox-dark-hard.js +0 -4
  191. package/dist/gruvbox-dark-medium.js +0 -4
  192. package/dist/gruvbox-dark-soft.js +0 -4
  193. package/dist/gruvbox-light-hard.js +0 -4
  194. package/dist/gruvbox-light-medium.js +0 -4
  195. package/dist/gruvbox-light-soft.js +0 -4
  196. package/dist/hack.js +0 -10
  197. package/dist/haml.js +0 -10
  198. package/dist/handlebars.js +0 -14
  199. package/dist/haskell.js +0 -6
  200. package/dist/haxe.js +0 -6
  201. package/dist/hcl.js +0 -6
  202. package/dist/hjson.js +0 -6
  203. package/dist/hlsl.js +0 -6
  204. package/dist/houston.js +0 -4
  205. package/dist/html-derivative.js +0 -8
  206. package/dist/html.js +0 -10
  207. package/dist/http.js +0 -14
  208. package/dist/hurl.js +0 -12
  209. package/dist/hxml.js +0 -8
  210. package/dist/hy.js +0 -6
  211. package/dist/imba.js +0 -6
  212. package/dist/index3.js +0 -689
  213. package/dist/infoDiagram-WHAUD3N6.js +0 -24
  214. package/dist/ini.js +0 -6
  215. package/dist/java.js +0 -6
  216. package/dist/javascript.js +0 -6
  217. package/dist/jinja.js +0 -11
  218. package/dist/jison.js +0 -8
  219. package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
  220. package/dist/json.js +0 -6
  221. package/dist/json5.js +0 -6
  222. package/dist/jsonc.js +0 -6
  223. package/dist/jsonl.js +0 -6
  224. package/dist/jsonnet.js +0 -6
  225. package/dist/jssm.js +0 -6
  226. package/dist/jsx.js +0 -6
  227. package/dist/julia.js +0 -16
  228. package/dist/kanagawa-dragon.js +0 -4
  229. package/dist/kanagawa-lotus.js +0 -4
  230. package/dist/kanagawa-wave.js +0 -4
  231. package/dist/kanban-definition-3W4ZIXB72.js +0 -720
  232. package/dist/katex2.js +0 -11691
  233. package/dist/kdl.js +0 -6
  234. package/dist/kotlin.js +0 -6
  235. package/dist/kusto.js +0 -6
  236. package/dist/laserwave.js +0 -4
  237. package/dist/latex.js +0 -8
  238. package/dist/layout2.js +0 -1224
  239. package/dist/lean.js +0 -6
  240. package/dist/less.js +0 -6
  241. package/dist/light-plus.js +0 -4
  242. package/dist/liquid.js +0 -14
  243. package/dist/llvm.js +0 -6
  244. package/dist/log.js +0 -6
  245. package/dist/logo.js +0 -6
  246. package/dist/lua.js +0 -8
  247. package/dist/luau.js +0 -6
  248. package/dist/make.js +0 -6
  249. package/dist/markdown.js +0 -6
  250. package/dist/marko.js +0 -14
  251. package/dist/material-theme-darker.js +0 -4
  252. package/dist/material-theme-lighter.js +0 -4
  253. package/dist/material-theme-ocean.js +0 -4
  254. package/dist/material-theme-palenight.js +0 -4
  255. package/dist/material-theme.js +0 -4
  256. package/dist/matlab.js +0 -6
  257. package/dist/mdc.js +0 -12
  258. package/dist/mdx.js +0 -6
  259. package/dist/mermaid-4DMBBIKO.js +0 -4
  260. package/dist/mermaid.js +0 -6
  261. package/dist/min-dark.js +0 -4
  262. package/dist/min-light.js +0 -4
  263. package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
  264. package/dist/mipsasm.js +0 -6
  265. package/dist/mojo.js +0 -6
  266. package/dist/monokai.js +0 -4
  267. package/dist/moonbit.js +0 -6
  268. package/dist/move.js +0 -6
  269. package/dist/narrat.js +0 -6
  270. package/dist/nextflow.js +0 -6
  271. package/dist/nginx.js +0 -8
  272. package/dist/night-owl.js +0 -4
  273. package/dist/nim.js +0 -20
  274. package/dist/nix.js +0 -9
  275. package/dist/nord.js +0 -4
  276. package/dist/nushell.js +0 -6
  277. package/dist/objective-c.js +0 -6
  278. package/dist/objective-cpp.js +0 -6
  279. package/dist/ocaml.js +0 -6
  280. package/dist/one-dark-pro.js +0 -4
  281. package/dist/one-light.js +0 -4
  282. package/dist/openscad.js +0 -6
  283. package/dist/pascal.js +0 -6
  284. package/dist/perl.js +0 -16
  285. package/dist/php.js +0 -18
  286. package/dist/pie.js +0 -45
  287. package/dist/pieDiagram-ADFJNKIX2.js +0 -123
  288. package/dist/pkl.js +0 -6
  289. package/dist/plastic.js +0 -4
  290. package/dist/plsql.js +0 -6
  291. package/dist/po.js +0 -6
  292. package/dist/poimandres.js +0 -4
  293. package/dist/polar.js +0 -6
  294. package/dist/postcss.js +0 -6
  295. package/dist/powerquery.js +0 -6
  296. package/dist/powershell.js +0 -6
  297. package/dist/prisma.js +0 -6
  298. package/dist/prolog.js +0 -6
  299. package/dist/proto.js +0 -6
  300. package/dist/pug.js +0 -12
  301. package/dist/puppet.js +0 -6
  302. package/dist/purescript.js +0 -6
  303. package/dist/python.js +0 -6
  304. package/dist/qml.js +0 -8
  305. package/dist/qmldir.js +0 -6
  306. package/dist/qss.js +0 -6
  307. package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
  308. package/dist/r.js +0 -6
  309. package/dist/racket.js +0 -6
  310. package/dist/raku.js +0 -6
  311. package/dist/razor.js +0 -10
  312. package/dist/red.js +0 -4
  313. package/dist/reg.js +0 -6
  314. package/dist/regexp.js +0 -6
  315. package/dist/rel.js +0 -6
  316. package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
  317. package/dist/riscv.js +0 -6
  318. package/dist/rose-pine-dawn.js +0 -4
  319. package/dist/rose-pine-moon.js +0 -4
  320. package/dist/rose-pine.js +0 -4
  321. package/dist/rosmsg.js +0 -6
  322. package/dist/rst.js +0 -22
  323. package/dist/ruby.js +0 -30
  324. package/dist/rust.js +0 -6
  325. package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
  326. package/dist/sankeyLinkHorizontal.js +0 -403
  327. package/dist/sas.js +0 -8
  328. package/dist/sass.js +0 -6
  329. package/dist/scala.js +0 -6
  330. package/dist/scheme.js +0 -6
  331. package/dist/scss.js +0 -8
  332. package/dist/sdbl.js +0 -6
  333. package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
  334. package/dist/shaderlab.js +0 -8
  335. package/dist/shellscript.js +0 -6
  336. package/dist/shellsession.js +0 -8
  337. package/dist/slack-dark.js +0 -4
  338. package/dist/slack-ochin.js +0 -4
  339. package/dist/smalltalk.js +0 -6
  340. package/dist/snazzy-light.js +0 -4
  341. package/dist/solarized-dark.js +0 -4
  342. package/dist/solarized-light.js +0 -4
  343. package/dist/solidity.js +0 -6
  344. package/dist/soy.js +0 -8
  345. package/dist/sparql.js +0 -8
  346. package/dist/splunk.js +0 -6
  347. package/dist/sql.js +0 -6
  348. package/dist/ssh-config.js +0 -6
  349. package/dist/stata.js +0 -8
  350. package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
  351. package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
  352. package/dist/stylus.js +0 -6
  353. package/dist/svelte.js +0 -14
  354. package/dist/swift.js +0 -6
  355. package/dist/synthwave-84.js +0 -4
  356. package/dist/system-verilog.js +0 -6
  357. package/dist/systemd.js +0 -6
  358. package/dist/talonscript.js +0 -6
  359. package/dist/tasl.js +0 -6
  360. package/dist/tcl.js +0 -6
  361. package/dist/templ.js +0 -12
  362. package/dist/terraform.js +0 -6
  363. package/dist/tex.js +0 -8
  364. package/dist/time.js +0 -900
  365. package/dist/timeline-definition-IT6M3QCI2.js +0 -802
  366. package/dist/tokyo-night.js +0 -4
  367. package/dist/toml.js +0 -6
  368. package/dist/ts-tags.js +0 -41
  369. package/dist/tsv.js +0 -6
  370. package/dist/tsx.js +0 -6
  371. package/dist/turtle.js +0 -6
  372. package/dist/twig.js +0 -18
  373. package/dist/typescript.js +0 -6
  374. package/dist/typespec.js +0 -6
  375. package/dist/typst.js +0 -6
  376. package/dist/union.js +0 -8
  377. package/dist/v.js +0 -6
  378. package/dist/vala.js +0 -6
  379. package/dist/vb.js +0 -6
  380. package/dist/verilog.js +0 -6
  381. package/dist/vesper.js +0 -4
  382. package/dist/vhdl.js +0 -6
  383. package/dist/viml.js +0 -6
  384. package/dist/vitesse-black.js +0 -4
  385. package/dist/vitesse-dark.js +0 -4
  386. package/dist/vitesse-light.js +0 -4
  387. package/dist/vue-html.js +0 -8
  388. package/dist/vue-vine.js +0 -18
  389. package/dist/vue.js +0 -31
  390. package/dist/vyper.js +0 -6
  391. package/dist/wasm.js +0 -7
  392. package/dist/wasm2.js +0 -6
  393. package/dist/wenyan.js +0 -6
  394. package/dist/wgsl.js +0 -6
  395. package/dist/wikitext.js +0 -6
  396. package/dist/wit.js +0 -6
  397. package/dist/wolfram.js +0 -6
  398. package/dist/xml.js +0 -8
  399. package/dist/xsl.js +0 -8
  400. package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
  401. package/dist/yaml.js +0 -6
  402. package/dist/zenscript.js +0 -6
  403. package/dist/zig.js +0 -6
  404. package/dist/zipObject.js +0 -128
@@ -1,1299 +0,0 @@
1
- import { aG as n, bf as gi, aS as Xt, N as Bt, be as xi, b8 as Ct, b7 as Nt, b6 as di, aR as pi, aW as Yt, aI as fi, aJ as yi, aV as mi, aK as bi, aL as Ai, b0 as wi, bb as Ci, aT as Si } from "./CoachForm.js";
2
- import "./redux-toolkit.modern.js";
3
- import { b as Wt } from "./band.js";
4
- import { l as zt } from "./linear.js";
5
- var mt = function() {
6
- var s = /* @__PURE__ */ n(function(W, r, u, g) {
7
- for (u = u || {}, g = W.length; g--; u[W[g]] = r) ;
8
- return u;
9
- }, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], e = [1, 3], a = [1, 5], c = [1, 6], d = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], b = [1, 25], P = [1, 26], I = [1, 28], R = [1, 29], L = [1, 30], z = [1, 31], F = [1, 32], D = [1, 33], V = [1, 34], f = [1, 35], C = [1, 36], l = [1, 37], M = [1, 43], B = [1, 42], U = [1, 47], X = [1, 50], h = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], k = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], S = [1, 64], $ = {
10
- trace: /* @__PURE__ */ n(function() {
11
- }, "trace"),
12
- yy: {},
13
- symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
14
- terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
15
- productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
16
- performAction: /* @__PURE__ */ n(function(r, u, g, x, A, o, nt) {
17
- var p = o.length - 1;
18
- switch (A) {
19
- case 5:
20
- x.setOrientation(o[p]);
21
- break;
22
- case 9:
23
- x.setDiagramTitle(o[p].text.trim());
24
- break;
25
- case 12:
26
- x.setLineData({ text: "", type: "text" }, o[p]);
27
- break;
28
- case 13:
29
- x.setLineData(o[p - 1], o[p]);
30
- break;
31
- case 14:
32
- x.setBarData({ text: "", type: "text" }, o[p]);
33
- break;
34
- case 15:
35
- x.setBarData(o[p - 1], o[p]);
36
- break;
37
- case 16:
38
- this.$ = o[p].trim(), x.setAccTitle(this.$);
39
- break;
40
- case 17:
41
- case 18:
42
- this.$ = o[p].trim(), x.setAccDescription(this.$);
43
- break;
44
- case 19:
45
- this.$ = o[p - 1];
46
- break;
47
- case 20:
48
- this.$ = [Number(o[p - 2]), ...o[p]];
49
- break;
50
- case 21:
51
- this.$ = [Number(o[p])];
52
- break;
53
- case 22:
54
- x.setXAxisTitle(o[p]);
55
- break;
56
- case 23:
57
- x.setXAxisTitle(o[p - 1]);
58
- break;
59
- case 24:
60
- x.setXAxisTitle({ type: "text", text: "" });
61
- break;
62
- case 25:
63
- x.setXAxisBand(o[p]);
64
- break;
65
- case 26:
66
- x.setXAxisRangeData(Number(o[p - 2]), Number(o[p]));
67
- break;
68
- case 27:
69
- this.$ = o[p - 1];
70
- break;
71
- case 28:
72
- this.$ = [o[p - 2], ...o[p]];
73
- break;
74
- case 29:
75
- this.$ = [o[p]];
76
- break;
77
- case 30:
78
- x.setYAxisTitle(o[p]);
79
- break;
80
- case 31:
81
- x.setYAxisTitle(o[p - 1]);
82
- break;
83
- case 32:
84
- x.setYAxisTitle({ type: "text", text: "" });
85
- break;
86
- case 33:
87
- x.setYAxisRangeData(Number(o[p - 2]), Number(o[p]));
88
- break;
89
- case 37:
90
- this.$ = { text: o[p], type: "text" };
91
- break;
92
- case 38:
93
- this.$ = { text: o[p], type: "text" };
94
- break;
95
- case 39:
96
- this.$ = { text: o[p], type: "markdown" };
97
- break;
98
- case 40:
99
- this.$ = o[p];
100
- break;
101
- case 41:
102
- this.$ = o[p - 1] + "" + o[p];
103
- break;
104
- }
105
- }, "anonymous"),
106
- table: [s(t, i, { 3: 1, 4: 2, 7: 4, 5: e, 34: a, 35: c, 36: d }), { 1: [3] }, s(t, i, { 4: 2, 7: 4, 3: 8, 5: e, 34: a, 35: c, 36: d }), s(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: e, 8: [1, 11], 34: a, 35: c, 36: d }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, s(m, [2, 34]), s(m, [2, 35]), s(m, [2, 36]), { 1: [2, 1] }, s(t, i, { 4: 2, 7: 4, 3: 21, 5: e, 34: a, 35: c, 36: d }), { 1: [2, 3] }, s(m, [2, 5]), s(t, [2, 7], { 4: 22, 34: a, 35: c, 36: d }), { 11: 23, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 39, 13: 38, 24: M, 27: B, 29: 40, 30: 41, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 49, 17: 48, 24: X, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 52, 17: 51, 24: X, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 20: [1, 53] }, { 22: [1, 54] }, s(h, [2, 18]), { 1: [2, 2] }, s(h, [2, 8]), s(h, [2, 9]), s(k, [2, 37], { 40: 55, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }), s(k, [2, 38]), s(k, [2, 39]), s(w, [2, 40]), s(w, [2, 42]), s(w, [2, 43]), s(w, [2, 44]), s(w, [2, 45]), s(w, [2, 46]), s(w, [2, 47]), s(w, [2, 48]), s(w, [2, 49]), s(w, [2, 50]), s(w, [2, 51]), s(h, [2, 10]), s(h, [2, 22], { 30: 41, 29: 56, 24: M, 27: B }), s(h, [2, 24]), s(h, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, s(h, [2, 11]), s(h, [2, 30], { 33: 60, 27: U }), s(h, [2, 32]), { 31: [1, 61] }, s(h, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: S }, s(h, [2, 14]), { 17: 65, 24: X }, s(h, [2, 16]), s(h, [2, 17]), s(w, [2, 41]), s(h, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, s(h, [2, 31]), { 27: [1, 69] }, s(h, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, s(h, [2, 15]), s(h, [2, 26]), s(h, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, s(h, [2, 33]), s(h, [2, 19]), { 25: 73, 27: S }, { 26: [2, 28] }, { 26: [2, 20] }],
107
- defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
108
- parseError: /* @__PURE__ */ n(function(r, u) {
109
- if (u.recoverable)
110
- this.trace(r);
111
- else {
112
- var g = new Error(r);
113
- throw g.hash = u, g;
114
- }
115
- }, "parseError"),
116
- parse: /* @__PURE__ */ n(function(r) {
117
- var u = this, g = [0], x = [], A = [null], o = [], nt = this.table, p = "", lt = 0, Et = 0, hi = 2, It = 1, li = o.slice.call(arguments, 1), _ = Object.create(this.lexer), Y = { yy: {} };
118
- for (var dt in this.yy)
119
- Object.prototype.hasOwnProperty.call(this.yy, dt) && (Y.yy[dt] = this.yy[dt]);
120
- _.setInput(r, Y.yy), Y.yy.lexer = _, Y.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
121
- var pt = _.yylloc;
122
- o.push(pt);
123
- var ci = _.options && _.options.ranges;
124
- typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
125
- function ui(v) {
126
- g.length = g.length - 2 * v, A.length = A.length - v, o.length = o.length - v;
127
- }
128
- n(ui, "popStack");
129
- function Vt() {
130
- var v;
131
- return v = x.pop() || _.lex() || It, typeof v != "number" && (v instanceof Array && (x = v, v = x.pop()), v = u.symbols_[v] || v), v;
132
- }
133
- n(Vt, "lex");
134
- for (var T, H, E, ft, G = {}, ct, O, Mt, ut; ; ) {
135
- if (H = g[g.length - 1], this.defaultActions[H] ? E = this.defaultActions[H] : ((T === null || typeof T > "u") && (T = Vt()), E = nt[H] && nt[H][T]), typeof E > "u" || !E.length || !E[0]) {
136
- var yt = "";
137
- ut = [];
138
- for (ct in nt[H])
139
- this.terminals_[ct] && ct > hi && ut.push("'" + this.terminals_[ct] + "'");
140
- _.showPosition ? yt = "Parse error on line " + (lt + 1) + `:
141
- ` + _.showPosition() + `
142
- Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt = "Parse error on line " + (lt + 1) + ": Unexpected " + (T == It ? "end of input" : "'" + (this.terminals_[T] || T) + "'"), this.parseError(yt, {
143
- text: _.match,
144
- token: this.terminals_[T] || T,
145
- line: _.yylineno,
146
- loc: pt,
147
- expected: ut
148
- });
149
- }
150
- if (E[0] instanceof Array && E.length > 1)
151
- throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + T);
152
- switch (E[0]) {
153
- case 1:
154
- g.push(T), A.push(_.yytext), o.push(_.yylloc), g.push(E[1]), T = null, Et = _.yyleng, p = _.yytext, lt = _.yylineno, pt = _.yylloc;
155
- break;
156
- case 2:
157
- if (O = this.productions_[E[1]][1], G.$ = A[A.length - O], G._$ = {
158
- first_line: o[o.length - (O || 1)].first_line,
159
- last_line: o[o.length - 1].last_line,
160
- first_column: o[o.length - (O || 1)].first_column,
161
- last_column: o[o.length - 1].last_column
162
- }, ci && (G._$.range = [
163
- o[o.length - (O || 1)].range[0],
164
- o[o.length - 1].range[1]
165
- ]), ft = this.performAction.apply(G, [
166
- p,
167
- Et,
168
- lt,
169
- Y.yy,
170
- E[1],
171
- A,
172
- o
173
- ].concat(li)), typeof ft < "u")
174
- return ft;
175
- O && (g = g.slice(0, -1 * O * 2), A = A.slice(0, -1 * O), o = o.slice(0, -1 * O)), g.push(this.productions_[E[1]][0]), A.push(G.$), o.push(G._$), Mt = nt[g[g.length - 2]][g[g.length - 1]], g.push(Mt);
176
- break;
177
- case 3:
178
- return !0;
179
- }
180
- }
181
- return !0;
182
- }, "parse")
183
- }, Lt = /* @__PURE__ */ function() {
184
- var W = {
185
- EOF: 1,
186
- parseError: /* @__PURE__ */ n(function(u, g) {
187
- if (this.yy.parser)
188
- this.yy.parser.parseError(u, g);
189
- else
190
- throw new Error(u);
191
- }, "parseError"),
192
- // resets the lexer, sets new input
193
- setInput: /* @__PURE__ */ n(function(r, u) {
194
- return this.yy = u || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
195
- first_line: 1,
196
- first_column: 0,
197
- last_line: 1,
198
- last_column: 0
199
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
200
- }, "setInput"),
201
- // consumes and returns one char from the input
202
- input: /* @__PURE__ */ n(function() {
203
- var r = this._input[0];
204
- this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
205
- var u = r.match(/(?:\r\n?|\n).*/g);
206
- return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
207
- }, "input"),
208
- // unshifts one char (or a string) into the input
209
- unput: /* @__PURE__ */ n(function(r) {
210
- var u = r.length, g = r.split(/(?:\r\n?|\n)/g);
211
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
212
- var x = this.match.split(/(?:\r\n?|\n)/g);
213
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
214
- var A = this.yylloc.range;
215
- return this.yylloc = {
216
- first_line: this.yylloc.first_line,
217
- last_line: this.yylineno + 1,
218
- first_column: this.yylloc.first_column,
219
- last_column: g ? (g.length === x.length ? this.yylloc.first_column : 0) + x[x.length - g.length].length - g[0].length : this.yylloc.first_column - u
220
- }, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
221
- }, "unput"),
222
- // When called from action, caches matched text and appends it on next action
223
- more: /* @__PURE__ */ n(function() {
224
- return this._more = !0, this;
225
- }, "more"),
226
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
227
- reject: /* @__PURE__ */ n(function() {
228
- if (this.options.backtrack_lexer)
229
- this._backtrack = !0;
230
- else
231
- 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).
232
- ` + this.showPosition(), {
233
- text: "",
234
- token: null,
235
- line: this.yylineno
236
- });
237
- return this;
238
- }, "reject"),
239
- // retain first n characters of the match
240
- less: /* @__PURE__ */ n(function(r) {
241
- this.unput(this.match.slice(r));
242
- }, "less"),
243
- // displays already matched input, i.e. for error messages
244
- pastInput: /* @__PURE__ */ n(function() {
245
- var r = this.matched.substr(0, this.matched.length - this.match.length);
246
- return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
247
- }, "pastInput"),
248
- // displays upcoming input, i.e. for error messages
249
- upcomingInput: /* @__PURE__ */ n(function() {
250
- var r = this.match;
251
- return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
252
- }, "upcomingInput"),
253
- // displays the character position where the lexing error occurred, i.e. for error messages
254
- showPosition: /* @__PURE__ */ n(function() {
255
- var r = this.pastInput(), u = new Array(r.length + 1).join("-");
256
- return r + this.upcomingInput() + `
257
- ` + u + "^";
258
- }, "showPosition"),
259
- // test the lexed token: return FALSE when not a match, otherwise return token
260
- test_match: /* @__PURE__ */ n(function(r, u) {
261
- var g, x, A;
262
- if (this.options.backtrack_lexer && (A = {
263
- yylineno: this.yylineno,
264
- yylloc: {
265
- first_line: this.yylloc.first_line,
266
- last_line: this.last_line,
267
- first_column: this.yylloc.first_column,
268
- last_column: this.yylloc.last_column
269
- },
270
- yytext: this.yytext,
271
- match: this.match,
272
- matches: this.matches,
273
- matched: this.matched,
274
- yyleng: this.yyleng,
275
- offset: this.offset,
276
- _more: this._more,
277
- _input: this._input,
278
- yy: this.yy,
279
- conditionStack: this.conditionStack.slice(0),
280
- done: this.done
281
- }, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
282
- first_line: this.yylloc.last_line,
283
- last_line: this.yylineno + 1,
284
- first_column: this.yylloc.last_column,
285
- last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
286
- }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], g = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
287
- return g;
288
- if (this._backtrack) {
289
- for (var o in A)
290
- this[o] = A[o];
291
- return !1;
292
- }
293
- return !1;
294
- }, "test_match"),
295
- // return next match in input
296
- next: /* @__PURE__ */ n(function() {
297
- if (this.done)
298
- return this.EOF;
299
- this._input || (this.done = !0);
300
- var r, u, g, x;
301
- this._more || (this.yytext = "", this.match = "");
302
- for (var A = this._currentRules(), o = 0; o < A.length; o++)
303
- if (g = this._input.match(this.rules[A[o]]), g && (!u || g[0].length > u[0].length)) {
304
- if (u = g, x = o, this.options.backtrack_lexer) {
305
- if (r = this.test_match(g, A[o]), r !== !1)
306
- return r;
307
- if (this._backtrack) {
308
- u = !1;
309
- continue;
310
- } else
311
- return !1;
312
- } else if (!this.options.flex)
313
- break;
314
- }
315
- return u ? (r = this.test_match(u, A[x]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
316
- ` + this.showPosition(), {
317
- text: "",
318
- token: null,
319
- line: this.yylineno
320
- });
321
- }, "next"),
322
- // return next match that has a token
323
- lex: /* @__PURE__ */ n(function() {
324
- var u = this.next();
325
- return u || this.lex();
326
- }, "lex"),
327
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
328
- begin: /* @__PURE__ */ n(function(u) {
329
- this.conditionStack.push(u);
330
- }, "begin"),
331
- // pop the previously active lexer condition state off the condition stack
332
- popState: /* @__PURE__ */ n(function() {
333
- var u = this.conditionStack.length - 1;
334
- return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
335
- }, "popState"),
336
- // produce the lexer rule set which is active for the currently active lexer condition state
337
- _currentRules: /* @__PURE__ */ n(function() {
338
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
339
- }, "_currentRules"),
340
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
341
- topState: /* @__PURE__ */ n(function(u) {
342
- return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
343
- }, "topState"),
344
- // alias for begin(condition)
345
- pushState: /* @__PURE__ */ n(function(u) {
346
- this.begin(u);
347
- }, "pushState"),
348
- // return the number of states currently on the stack
349
- stateStackSize: /* @__PURE__ */ n(function() {
350
- return this.conditionStack.length;
351
- }, "stateStackSize"),
352
- options: { "case-insensitive": !0 },
353
- performAction: /* @__PURE__ */ n(function(u, g, x, A) {
354
- switch (x) {
355
- case 0:
356
- break;
357
- case 1:
358
- break;
359
- case 2:
360
- return this.popState(), 34;
361
- case 3:
362
- return this.popState(), 34;
363
- case 4:
364
- return 34;
365
- case 5:
366
- break;
367
- case 6:
368
- return 10;
369
- case 7:
370
- return this.pushState("acc_title"), 19;
371
- case 8:
372
- return this.popState(), "acc_title_value";
373
- case 9:
374
- return this.pushState("acc_descr"), 21;
375
- case 10:
376
- return this.popState(), "acc_descr_value";
377
- case 11:
378
- this.pushState("acc_descr_multiline");
379
- break;
380
- case 12:
381
- this.popState();
382
- break;
383
- case 13:
384
- return "acc_descr_multiline_value";
385
- case 14:
386
- return 5;
387
- case 15:
388
- return 5;
389
- case 16:
390
- return 8;
391
- case 17:
392
- return this.pushState("axis_data"), "X_AXIS";
393
- case 18:
394
- return this.pushState("axis_data"), "Y_AXIS";
395
- case 19:
396
- return this.pushState("axis_band_data"), 24;
397
- case 20:
398
- return 31;
399
- case 21:
400
- return this.pushState("data"), 16;
401
- case 22:
402
- return this.pushState("data"), 18;
403
- case 23:
404
- return this.pushState("data_inner"), 24;
405
- case 24:
406
- return 27;
407
- case 25:
408
- return this.popState(), 26;
409
- case 26:
410
- this.popState();
411
- break;
412
- case 27:
413
- this.pushState("string");
414
- break;
415
- case 28:
416
- this.popState();
417
- break;
418
- case 29:
419
- return "STR";
420
- case 30:
421
- return 24;
422
- case 31:
423
- return 26;
424
- case 32:
425
- return 43;
426
- case 33:
427
- return "COLON";
428
- case 34:
429
- return 44;
430
- case 35:
431
- return 28;
432
- case 36:
433
- return 45;
434
- case 37:
435
- return 46;
436
- case 38:
437
- return 48;
438
- case 39:
439
- return 50;
440
- case 40:
441
- return 47;
442
- case 41:
443
- return 41;
444
- case 42:
445
- return 49;
446
- case 43:
447
- return 42;
448
- case 44:
449
- break;
450
- case 45:
451
- return 35;
452
- case 46:
453
- return 36;
454
- }
455
- }, "anonymous"),
456
- rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:xychart\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
457
- conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [], inclusive: !1 }, md_string: { rules: [], inclusive: !1 }, string: { rules: [28, 29], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 } }
458
- };
459
- return W;
460
- }();
461
- $.lexer = Lt;
462
- function N() {
463
- this.yy = {};
464
- }
465
- return n(N, "Parser"), N.prototype = $, $.Parser = N, new N();
466
- }();
467
- mt.parser = mt;
468
- var _i = mt;
469
- function bt(s) {
470
- return s.type === "bar";
471
- }
472
- n(bt, "isBarPlot");
473
- function St(s) {
474
- return s.type === "band";
475
- }
476
- n(St, "isBandAxisData");
477
- function q(s) {
478
- return s.type === "linear";
479
- }
480
- n(q, "isLinearAxisData");
481
- var j, Ht = (j = class {
482
- constructor(t) {
483
- this.parentGroup = t;
484
- }
485
- getMaxDimension(t, i) {
486
- if (!this.parentGroup)
487
- return {
488
- width: t.reduce((c, d) => Math.max(d.length, c), 0) * i,
489
- height: i
490
- };
491
- const e = {
492
- width: 0,
493
- height: 0
494
- }, a = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
495
- for (const c of t) {
496
- const d = gi(a, 1, c), m = d ? d.width : c.length * i, b = d ? d.height : i;
497
- e.width = Math.max(e.width, m), e.height = Math.max(e.height, b);
498
- }
499
- return a.remove(), e;
500
- }
501
- }, n(j, "TextDimensionCalculatorWithFont"), j), Ft = 0.7, Ot = 0.2, Q, Ut = (Q = class {
502
- constructor(t, i, e, a) {
503
- this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = a, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
504
- }
505
- setRange(t) {
506
- this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
507
- }
508
- getRange() {
509
- return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
510
- }
511
- setAxisPosition(t) {
512
- this.axisPosition = t, this.setRange(this.range);
513
- }
514
- getTickDistance() {
515
- const t = this.getRange();
516
- return Math.abs(t[0] - t[1]) / this.getTickValues().length;
517
- }
518
- getAxisOuterPadding() {
519
- return this.outerPadding;
520
- }
521
- getLabelDimension() {
522
- return this.textDimensionCalculator.getMaxDimension(
523
- this.getTickValues().map((t) => t.toString()),
524
- this.axisConfig.labelFontSize
525
- );
526
- }
527
- recalculateOuterPaddingToDrawBar() {
528
- Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
529
- }
530
- calculateSpaceIfDrawnHorizontally(t) {
531
- let i = t.height;
532
- if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
533
- const e = this.getLabelDimension(), a = Ot * t.width;
534
- this.outerPadding = Math.min(e.width / 2, a);
535
- const c = e.height + this.axisConfig.labelPadding * 2;
536
- this.labelTextHeight = e.height, c <= i && (i -= c, this.showLabel = !0);
537
- }
538
- if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
539
- const e = this.textDimensionCalculator.getMaxDimension(
540
- [this.title],
541
- this.axisConfig.titleFontSize
542
- ), a = e.height + this.axisConfig.titlePadding * 2;
543
- this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
544
- }
545
- this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
546
- }
547
- calculateSpaceIfDrawnVertical(t) {
548
- let i = t.width;
549
- if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
550
- const e = this.getLabelDimension(), a = Ot * t.height;
551
- this.outerPadding = Math.min(e.height / 2, a);
552
- const c = e.width + this.axisConfig.labelPadding * 2;
553
- c <= i && (i -= c, this.showLabel = !0);
554
- }
555
- if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
556
- const e = this.textDimensionCalculator.getMaxDimension(
557
- [this.title],
558
- this.axisConfig.titleFontSize
559
- ), a = e.height + this.axisConfig.titlePadding * 2;
560
- this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
561
- }
562
- this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
563
- }
564
- calculateSpace(t) {
565
- return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
566
- width: this.boundingRect.width,
567
- height: this.boundingRect.height
568
- };
569
- }
570
- setBoundingBoxXY(t) {
571
- this.boundingRect.x = t.x, this.boundingRect.y = t.y;
572
- }
573
- getDrawableElementsForLeftAxis() {
574
- const t = [];
575
- if (this.showAxisLine) {
576
- const i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
577
- t.push({
578
- type: "path",
579
- groupTexts: ["left-axis", "axisl-line"],
580
- data: [
581
- {
582
- path: `M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y + this.boundingRect.height} `,
583
- strokeFill: this.axisThemeConfig.axisLineColor,
584
- strokeWidth: this.axisConfig.axisLineWidth
585
- }
586
- ]
587
- });
588
- }
589
- if (this.showLabel && t.push({
590
- type: "text",
591
- groupTexts: ["left-axis", "label"],
592
- data: this.getTickValues().map((i) => ({
593
- text: i.toString(),
594
- 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),
595
- y: this.getScaleValue(i),
596
- fill: this.axisThemeConfig.labelColor,
597
- fontSize: this.axisConfig.labelFontSize,
598
- rotation: 0,
599
- verticalPos: "middle",
600
- horizontalPos: "right"
601
- }))
602
- }), this.showTick) {
603
- const i = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
604
- t.push({
605
- type: "path",
606
- groupTexts: ["left-axis", "ticks"],
607
- data: this.getTickValues().map((e) => ({
608
- path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
609
- strokeFill: this.axisThemeConfig.tickColor,
610
- strokeWidth: this.axisConfig.tickWidth
611
- }))
612
- });
613
- }
614
- return this.showTitle && t.push({
615
- type: "text",
616
- groupTexts: ["left-axis", "title"],
617
- data: [
618
- {
619
- text: this.title,
620
- x: this.boundingRect.x + this.axisConfig.titlePadding,
621
- y: this.boundingRect.y + this.boundingRect.height / 2,
622
- fill: this.axisThemeConfig.titleColor,
623
- fontSize: this.axisConfig.titleFontSize,
624
- rotation: 270,
625
- verticalPos: "top",
626
- horizontalPos: "center"
627
- }
628
- ]
629
- }), t;
630
- }
631
- getDrawableElementsForBottomAxis() {
632
- const t = [];
633
- if (this.showAxisLine) {
634
- const i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
635
- t.push({
636
- type: "path",
637
- groupTexts: ["bottom-axis", "axis-line"],
638
- data: [
639
- {
640
- path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
641
- strokeFill: this.axisThemeConfig.axisLineColor,
642
- strokeWidth: this.axisConfig.axisLineWidth
643
- }
644
- ]
645
- });
646
- }
647
- if (this.showLabel && t.push({
648
- type: "text",
649
- groupTexts: ["bottom-axis", "label"],
650
- data: this.getTickValues().map((i) => ({
651
- text: i.toString(),
652
- x: this.getScaleValue(i),
653
- y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
654
- fill: this.axisThemeConfig.labelColor,
655
- fontSize: this.axisConfig.labelFontSize,
656
- rotation: 0,
657
- verticalPos: "top",
658
- horizontalPos: "center"
659
- }))
660
- }), this.showTick) {
661
- const i = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
662
- t.push({
663
- type: "path",
664
- groupTexts: ["bottom-axis", "ticks"],
665
- data: this.getTickValues().map((e) => ({
666
- path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
667
- strokeFill: this.axisThemeConfig.tickColor,
668
- strokeWidth: this.axisConfig.tickWidth
669
- }))
670
- });
671
- }
672
- return this.showTitle && t.push({
673
- type: "text",
674
- groupTexts: ["bottom-axis", "title"],
675
- data: [
676
- {
677
- text: this.title,
678
- x: this.range[0] + (this.range[1] - this.range[0]) / 2,
679
- y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
680
- fill: this.axisThemeConfig.titleColor,
681
- fontSize: this.axisConfig.titleFontSize,
682
- rotation: 0,
683
- verticalPos: "top",
684
- horizontalPos: "center"
685
- }
686
- ]
687
- }), t;
688
- }
689
- getDrawableElementsForTopAxis() {
690
- const t = [];
691
- if (this.showAxisLine) {
692
- const i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
693
- t.push({
694
- type: "path",
695
- groupTexts: ["top-axis", "axis-line"],
696
- data: [
697
- {
698
- path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
699
- strokeFill: this.axisThemeConfig.axisLineColor,
700
- strokeWidth: this.axisConfig.axisLineWidth
701
- }
702
- ]
703
- });
704
- }
705
- if (this.showLabel && t.push({
706
- type: "text",
707
- groupTexts: ["top-axis", "label"],
708
- data: this.getTickValues().map((i) => ({
709
- text: i.toString(),
710
- x: this.getScaleValue(i),
711
- y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
712
- fill: this.axisThemeConfig.labelColor,
713
- fontSize: this.axisConfig.labelFontSize,
714
- rotation: 0,
715
- verticalPos: "top",
716
- horizontalPos: "center"
717
- }))
718
- }), this.showTick) {
719
- const i = this.boundingRect.y;
720
- t.push({
721
- type: "path",
722
- groupTexts: ["top-axis", "ticks"],
723
- data: this.getTickValues().map((e) => ({
724
- path: `M ${this.getScaleValue(e)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
725
- strokeFill: this.axisThemeConfig.tickColor,
726
- strokeWidth: this.axisConfig.tickWidth
727
- }))
728
- });
729
- }
730
- return this.showTitle && t.push({
731
- type: "text",
732
- groupTexts: ["top-axis", "title"],
733
- data: [
734
- {
735
- text: this.title,
736
- x: this.boundingRect.x + this.boundingRect.width / 2,
737
- y: this.boundingRect.y + this.axisConfig.titlePadding,
738
- fill: this.axisThemeConfig.titleColor,
739
- fontSize: this.axisConfig.titleFontSize,
740
- rotation: 0,
741
- verticalPos: "top",
742
- horizontalPos: "center"
743
- }
744
- ]
745
- }), t;
746
- }
747
- getDrawableElements() {
748
- if (this.axisPosition === "left")
749
- return this.getDrawableElementsForLeftAxis();
750
- if (this.axisPosition === "right")
751
- throw Error("Drawing of right axis is not implemented");
752
- return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
753
- }
754
- }, n(Q, "BaseAxis"), Q), K, ki = (K = class extends Ut {
755
- constructor(t, i, e, a, c) {
756
- super(t, a, c, i), this.categories = e, this.scale = Wt().domain(this.categories).range(this.getRange());
757
- }
758
- setRange(t) {
759
- super.setRange(t);
760
- }
761
- recalculateScale() {
762
- this.scale = Wt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
763
- }
764
- getTickValues() {
765
- return this.categories;
766
- }
767
- getScaleValue(t) {
768
- return this.scale(t) ?? this.getRange()[0];
769
- }
770
- }, n(K, "BandAxis"), K), J, Ti = (J = class extends Ut {
771
- constructor(t, i, e, a, c) {
772
- super(t, a, c, i), this.domain = e, this.scale = zt().domain(this.domain).range(this.getRange());
773
- }
774
- getTickValues() {
775
- return this.scale.ticks();
776
- }
777
- recalculateScale() {
778
- const t = [...this.domain];
779
- this.axisPosition === "left" && t.reverse(), this.scale = zt().domain(t).range(this.getRange());
780
- }
781
- getScaleValue(t) {
782
- return this.scale(t);
783
- }
784
- }, n(J, "LinearAxis"), J);
785
- function At(s, t, i, e) {
786
- const a = new Ht(e);
787
- return St(s) ? new ki(
788
- t,
789
- i,
790
- s.categories,
791
- s.title,
792
- a
793
- ) : new Ti(
794
- t,
795
- i,
796
- [s.min, s.max],
797
- s.title,
798
- a
799
- );
800
- }
801
- n(At, "getAxis");
802
- var Z, Ri = (Z = class {
803
- constructor(t, i, e, a) {
804
- this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = a, this.boundingRect = {
805
- x: 0,
806
- y: 0,
807
- width: 0,
808
- height: 0
809
- }, this.showChartTitle = !1;
810
- }
811
- setBoundingBoxXY(t) {
812
- this.boundingRect.x = t.x, this.boundingRect.y = t.y;
813
- }
814
- calculateSpace(t) {
815
- const i = this.textDimensionCalculator.getMaxDimension(
816
- [this.chartData.title],
817
- this.chartConfig.titleFontSize
818
- ), e = Math.max(i.width, t.width), a = i.height + 2 * this.chartConfig.titlePadding;
819
- return i.width <= e && i.height <= a && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = a, this.showChartTitle = !0), {
820
- width: this.boundingRect.width,
821
- height: this.boundingRect.height
822
- };
823
- }
824
- getDrawableElements() {
825
- const t = [];
826
- return this.showChartTitle && t.push({
827
- groupTexts: ["chart-title"],
828
- type: "text",
829
- data: [
830
- {
831
- fontSize: this.chartConfig.titleFontSize,
832
- text: this.chartData.title,
833
- verticalPos: "middle",
834
- horizontalPos: "center",
835
- x: this.boundingRect.x + this.boundingRect.width / 2,
836
- y: this.boundingRect.y + this.boundingRect.height / 2,
837
- fill: this.chartThemeConfig.titleColor,
838
- rotation: 0
839
- }
840
- ]
841
- }), t;
842
- }
843
- }, n(Z, "ChartTitle"), Z);
844
- function $t(s, t, i, e) {
845
- const a = new Ht(e);
846
- return new Ri(a, s, t, i);
847
- }
848
- n($t, "getChartTitleComponent");
849
- var tt, Di = (tt = class {
850
- constructor(t, i, e, a, c) {
851
- this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = a, this.plotIndex = c;
852
- }
853
- getDrawableElement() {
854
- const t = this.plotData.data.map((e) => [
855
- this.xAxis.getScaleValue(e[0]),
856
- this.yAxis.getScaleValue(e[1])
857
- ]);
858
- let i;
859
- return this.orientation === "horizontal" ? i = Bt().y((e) => e[0]).x((e) => e[1])(t) : i = Bt().x((e) => e[0]).y((e) => e[1])(t), i ? [
860
- {
861
- groupTexts: ["plot", `line-plot-${this.plotIndex}`],
862
- type: "path",
863
- data: [
864
- {
865
- path: i,
866
- strokeFill: this.plotData.strokeFill,
867
- strokeWidth: this.plotData.strokeWidth
868
- }
869
- ]
870
- }
871
- ] : [];
872
- }
873
- }, n(tt, "LinePlot"), tt), it, vi = (it = class {
874
- constructor(t, i, e, a, c, d) {
875
- this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = a, this.orientation = c, this.plotIndex = d;
876
- }
877
- getDrawableElement() {
878
- const t = this.barData.data.map((c) => [
879
- this.xAxis.getScaleValue(c[0]),
880
- this.yAxis.getScaleValue(c[1])
881
- ]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), a = e / 2;
882
- return this.orientation === "horizontal" ? [
883
- {
884
- groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
885
- type: "rect",
886
- data: t.map((c) => ({
887
- x: this.boundingRect.x,
888
- y: c[0] - a,
889
- height: e,
890
- width: c[1] - this.boundingRect.x,
891
- fill: this.barData.fill,
892
- strokeWidth: 0,
893
- strokeFill: this.barData.fill
894
- }))
895
- }
896
- ] : [
897
- {
898
- groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
899
- type: "rect",
900
- data: t.map((c) => ({
901
- x: c[0] - a,
902
- y: c[1],
903
- width: e,
904
- height: this.boundingRect.y + this.boundingRect.height - c[1],
905
- fill: this.barData.fill,
906
- strokeWidth: 0,
907
- strokeFill: this.barData.fill
908
- }))
909
- }
910
- ];
911
- }
912
- }, n(it, "BarPlot"), it), et, Pi = (et = class {
913
- constructor(t, i, e) {
914
- this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
915
- x: 0,
916
- y: 0,
917
- width: 0,
918
- height: 0
919
- };
920
- }
921
- setAxes(t, i) {
922
- this.xAxis = t, this.yAxis = i;
923
- }
924
- setBoundingBoxXY(t) {
925
- this.boundingRect.x = t.x, this.boundingRect.y = t.y;
926
- }
927
- calculateSpace(t) {
928
- return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
929
- width: this.boundingRect.width,
930
- height: this.boundingRect.height
931
- };
932
- }
933
- getDrawableElements() {
934
- if (!(this.xAxis && this.yAxis))
935
- throw Error("Axes must be passed to render Plots");
936
- const t = [];
937
- for (const [i, e] of this.chartData.plots.entries())
938
- switch (e.type) {
939
- case "line":
940
- {
941
- const a = new Di(
942
- e,
943
- this.xAxis,
944
- this.yAxis,
945
- this.chartConfig.chartOrientation,
946
- i
947
- );
948
- t.push(...a.getDrawableElement());
949
- }
950
- break;
951
- case "bar":
952
- {
953
- const a = new vi(
954
- e,
955
- this.boundingRect,
956
- this.xAxis,
957
- this.yAxis,
958
- this.chartConfig.chartOrientation,
959
- i
960
- );
961
- t.push(...a.getDrawableElement());
962
- }
963
- break;
964
- }
965
- return t;
966
- }
967
- }, n(et, "BasePlot"), et);
968
- function Gt(s, t, i) {
969
- return new Pi(s, t, i);
970
- }
971
- n(Gt, "getPlotComponent");
972
- var st, Li = (st = class {
973
- constructor(t, i, e, a) {
974
- this.chartConfig = t, this.chartData = i, this.componentStore = {
975
- title: $t(t, i, e, a),
976
- plot: Gt(t, i, e),
977
- xAxis: At(
978
- i.xAxis,
979
- t.xAxis,
980
- {
981
- titleColor: e.xAxisTitleColor,
982
- labelColor: e.xAxisLabelColor,
983
- tickColor: e.xAxisTickColor,
984
- axisLineColor: e.xAxisLineColor
985
- },
986
- a
987
- ),
988
- yAxis: At(
989
- i.yAxis,
990
- t.yAxis,
991
- {
992
- titleColor: e.yAxisTitleColor,
993
- labelColor: e.yAxisLabelColor,
994
- tickColor: e.yAxisTickColor,
995
- axisLineColor: e.yAxisLineColor
996
- },
997
- a
998
- )
999
- };
1000
- }
1001
- calculateVerticalSpace() {
1002
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, a = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), d = Math.floor(
1003
- i * this.chartConfig.plotReservedSpacePercent / 100
1004
- ), m = this.componentStore.plot.calculateSpace({
1005
- width: c,
1006
- height: d
1007
- });
1008
- t -= m.width, i -= m.height, m = this.componentStore.title.calculateSpace({
1009
- width: this.chartConfig.width,
1010
- height: i
1011
- }), a = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("bottom"), m = this.componentStore.xAxis.calculateSpace({
1012
- width: t,
1013
- height: i
1014
- }), i -= m.height, this.componentStore.yAxis.setAxisPosition("left"), m = this.componentStore.yAxis.calculateSpace({
1015
- width: t,
1016
- height: i
1017
- }), e = m.width, t -= m.width, t > 0 && (c += t, t = 0), i > 0 && (d += i, i = 0), this.componentStore.plot.calculateSpace({
1018
- width: c,
1019
- height: d
1020
- }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: a }), this.componentStore.xAxis.setRange([e, e + c]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: a + d }), this.componentStore.yAxis.setRange([a, a + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: a }), this.chartData.plots.some((b) => bt(b)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1021
- }
1022
- calculateHorizontalSpace() {
1023
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, a = 0, c = 0, d = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), m = Math.floor(
1024
- i * this.chartConfig.plotReservedSpacePercent / 100
1025
- ), b = this.componentStore.plot.calculateSpace({
1026
- width: d,
1027
- height: m
1028
- });
1029
- t -= b.width, i -= b.height, b = this.componentStore.title.calculateSpace({
1030
- width: this.chartConfig.width,
1031
- height: i
1032
- }), e = b.height, i -= b.height, this.componentStore.xAxis.setAxisPosition("left"), b = this.componentStore.xAxis.calculateSpace({
1033
- width: t,
1034
- height: i
1035
- }), t -= b.width, a = b.width, this.componentStore.yAxis.setAxisPosition("top"), b = this.componentStore.yAxis.calculateSpace({
1036
- width: t,
1037
- height: i
1038
- }), i -= b.height, c = e + b.height, t > 0 && (d += t, t = 0), i > 0 && (m += i, i = 0), this.componentStore.plot.calculateSpace({
1039
- width: d,
1040
- height: m
1041
- }), this.componentStore.plot.setBoundingBoxXY({ x: a, y: c }), this.componentStore.yAxis.setRange([a, a + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: a, y: e }), this.componentStore.xAxis.setRange([c, c + m]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: c }), this.chartData.plots.some((P) => bt(P)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1042
- }
1043
- calculateSpace() {
1044
- this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1045
- }
1046
- getDrawableElement() {
1047
- this.calculateSpace();
1048
- const t = [];
1049
- this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1050
- for (const i of Object.values(this.componentStore))
1051
- t.push(...i.getDrawableElements());
1052
- return t;
1053
- }
1054
- }, n(st, "Orchestrator"), st), at, Ei = (at = class {
1055
- static build(t, i, e, a) {
1056
- return new Li(t, i, e, a).getDrawableElement();
1057
- }
1058
- }, n(at, "XYChartBuilder"), at), ot = 0, qt, rt = Tt(), ht = kt(), y = Rt(), wt = ht.plotColorPalette.split(",").map((s) => s.trim()), gt = !1, _t = !1;
1059
- function kt() {
1060
- const s = xi(), t = Ct();
1061
- return Nt(s.xyChart, t.themeVariables.xyChart);
1062
- }
1063
- n(kt, "getChartDefaultThemeConfig");
1064
- function Tt() {
1065
- const s = Ct();
1066
- return Nt(
1067
- di.xyChart,
1068
- s.xyChart
1069
- );
1070
- }
1071
- n(Tt, "getChartDefaultConfig");
1072
- function Rt() {
1073
- return {
1074
- yAxis: {
1075
- type: "linear",
1076
- title: "",
1077
- min: 1 / 0,
1078
- max: -1 / 0
1079
- },
1080
- xAxis: {
1081
- type: "band",
1082
- title: "",
1083
- categories: []
1084
- },
1085
- title: "",
1086
- plots: []
1087
- };
1088
- }
1089
- n(Rt, "getChartDefaultData");
1090
- function xt(s) {
1091
- const t = Ct();
1092
- return pi(s.trim(), t);
1093
- }
1094
- n(xt, "textSanitizer");
1095
- function jt(s) {
1096
- qt = s;
1097
- }
1098
- n(jt, "setTmpSVGG");
1099
- function Qt(s) {
1100
- s === "horizontal" ? rt.chartOrientation = "horizontal" : rt.chartOrientation = "vertical";
1101
- }
1102
- n(Qt, "setOrientation");
1103
- function Kt(s) {
1104
- y.xAxis.title = xt(s.text);
1105
- }
1106
- n(Kt, "setXAxisTitle");
1107
- function Dt(s, t) {
1108
- y.xAxis = { type: "linear", title: y.xAxis.title, min: s, max: t }, gt = !0;
1109
- }
1110
- n(Dt, "setXAxisRangeData");
1111
- function Jt(s) {
1112
- y.xAxis = {
1113
- type: "band",
1114
- title: y.xAxis.title,
1115
- categories: s.map((t) => xt(t.text))
1116
- }, gt = !0;
1117
- }
1118
- n(Jt, "setXAxisBand");
1119
- function Zt(s) {
1120
- y.yAxis.title = xt(s.text);
1121
- }
1122
- n(Zt, "setYAxisTitle");
1123
- function ti(s, t) {
1124
- y.yAxis = { type: "linear", title: y.yAxis.title, min: s, max: t }, _t = !0;
1125
- }
1126
- n(ti, "setYAxisRangeData");
1127
- function ii(s) {
1128
- const t = Math.min(...s), i = Math.max(...s), e = q(y.yAxis) ? y.yAxis.min : 1 / 0, a = q(y.yAxis) ? y.yAxis.max : -1 / 0;
1129
- y.yAxis = {
1130
- type: "linear",
1131
- title: y.yAxis.title,
1132
- min: Math.min(e, t),
1133
- max: Math.max(a, i)
1134
- };
1135
- }
1136
- n(ii, "setYAxisRangeFromPlotData");
1137
- function vt(s) {
1138
- let t = [];
1139
- if (s.length === 0)
1140
- return t;
1141
- if (!gt) {
1142
- const i = q(y.xAxis) ? y.xAxis.min : 1 / 0, e = q(y.xAxis) ? y.xAxis.max : -1 / 0;
1143
- Dt(Math.min(i, 1), Math.max(e, s.length));
1144
- }
1145
- if (_t || ii(s), St(y.xAxis) && (t = y.xAxis.categories.map((i, e) => [i, s[e]])), q(y.xAxis)) {
1146
- const i = y.xAxis.min, e = y.xAxis.max, a = (e - i) / (s.length - 1), c = [];
1147
- for (let d = i; d <= e; d += a)
1148
- c.push(`${d}`);
1149
- t = c.map((d, m) => [d, s[m]]);
1150
- }
1151
- return t;
1152
- }
1153
- n(vt, "transformDataWithoutCategory");
1154
- function Pt(s) {
1155
- return wt[s === 0 ? 0 : s % wt.length];
1156
- }
1157
- n(Pt, "getPlotColorFromPalette");
1158
- function ei(s, t) {
1159
- const i = vt(t);
1160
- y.plots.push({
1161
- type: "line",
1162
- strokeFill: Pt(ot),
1163
- strokeWidth: 2,
1164
- data: i
1165
- }), ot++;
1166
- }
1167
- n(ei, "setLineData");
1168
- function si(s, t) {
1169
- const i = vt(t);
1170
- y.plots.push({
1171
- type: "bar",
1172
- fill: Pt(ot),
1173
- data: i
1174
- }), ot++;
1175
- }
1176
- n(si, "setBarData");
1177
- function ai() {
1178
- if (y.plots.length === 0)
1179
- throw Error("No Plot to render, please provide a plot with some data");
1180
- return y.title = Yt(), Ei.build(rt, y, ht, qt);
1181
- }
1182
- n(ai, "getDrawableElem");
1183
- function ni() {
1184
- return ht;
1185
- }
1186
- n(ni, "getChartThemeConfig");
1187
- function oi() {
1188
- return rt;
1189
- }
1190
- n(oi, "getChartConfig");
1191
- function ri() {
1192
- return y;
1193
- }
1194
- n(ri, "getXYChartData");
1195
- var Ii = /* @__PURE__ */ n(function() {
1196
- wi(), ot = 0, rt = Tt(), y = Rt(), ht = kt(), wt = ht.plotColorPalette.split(",").map((s) => s.trim()), gt = !1, _t = !1;
1197
- }, "clear"), Vi = {
1198
- getDrawableElem: ai,
1199
- clear: Ii,
1200
- setAccTitle: fi,
1201
- getAccTitle: yi,
1202
- setDiagramTitle: mi,
1203
- getDiagramTitle: Yt,
1204
- getAccDescription: bi,
1205
- setAccDescription: Ai,
1206
- setOrientation: Qt,
1207
- setXAxisTitle: Kt,
1208
- setXAxisRangeData: Dt,
1209
- setXAxisBand: Jt,
1210
- setYAxisTitle: Zt,
1211
- setYAxisRangeData: ti,
1212
- setLineData: ei,
1213
- setBarData: si,
1214
- setTmpSVGG: jt,
1215
- getChartThemeConfig: ni,
1216
- getChartConfig: oi,
1217
- getXYChartData: ri
1218
- }, Mi = /* @__PURE__ */ n((s, t, i, e) => {
1219
- const a = e.db, c = a.getChartThemeConfig(), d = a.getChartConfig(), m = a.getXYChartData().plots[0].data.map((f) => f[1]);
1220
- function b(f) {
1221
- return f === "top" ? "text-before-edge" : "middle";
1222
- }
1223
- n(b, "getDominantBaseLine");
1224
- function P(f) {
1225
- return f === "left" ? "start" : f === "right" ? "end" : "middle";
1226
- }
1227
- n(P, "getTextAnchor");
1228
- function I(f) {
1229
- return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
1230
- }
1231
- n(I, "getTextTransformation"), Xt.debug(`Rendering xychart chart
1232
- ` + s);
1233
- const R = Ci(t), L = R.append("g").attr("class", "main"), z = L.append("rect").attr("width", d.width).attr("height", d.height).attr("class", "background");
1234
- Si(R, d.height, d.width, !0), R.attr("viewBox", `0 0 ${d.width} ${d.height}`), z.attr("fill", c.backgroundColor), a.setTmpSVGG(R.append("g").attr("class", "mermaid-tmp-group"));
1235
- const F = a.getDrawableElem(), D = {};
1236
- function V(f) {
1237
- let C = L, l = "";
1238
- for (const [M] of f.entries()) {
1239
- let B = L;
1240
- M > 0 && D[l] && (B = D[l]), l += f[M], C = D[l], C || (C = D[l] = B.append("g").attr("class", f[M]));
1241
- }
1242
- return C;
1243
- }
1244
- n(V, "getGroup");
1245
- for (const f of F) {
1246
- if (f.data.length === 0)
1247
- continue;
1248
- const C = V(f.groupTexts);
1249
- switch (f.type) {
1250
- case "rect":
1251
- if (C.selectAll("rect").data(f.data).enter().append("rect").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).attr("fill", (l) => l.fill).attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth), d.showDataLabel)
1252
- if (d.chartOrientation === "horizontal") {
1253
- let l = function(h, k) {
1254
- const { data: w, label: S } = h;
1255
- return k * S.length * M <= w.width - 10;
1256
- };
1257
- n(l, "fitsHorizontally");
1258
- const M = 0.7, B = f.data.map((h, k) => ({ data: h, label: m[k].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = B.map((h) => {
1259
- const { data: k } = h;
1260
- let w = k.height * 0.7;
1261
- for (; !l(h, w) && w > 0; )
1262
- w -= 1;
1263
- return w;
1264
- }), X = Math.floor(Math.min(...U));
1265
- C.selectAll("text").data(B).enter().append("text").attr("x", (h) => h.data.x + h.data.width - 10).attr("y", (h) => h.data.y + h.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
1266
- } else {
1267
- let l = function(h, k, w) {
1268
- const { data: S, label: $ } = h, N = k * $.length * 0.7, W = S.x + S.width / 2, r = W - N / 2, u = W + N / 2, g = r >= S.x && u <= S.x + S.width, x = S.y + w + k <= S.y + S.height;
1269
- return g && x;
1270
- };
1271
- n(l, "fitsInBar");
1272
- const M = 10, B = f.data.map((h, k) => ({ data: h, label: m[k].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = B.map((h) => {
1273
- const { data: k, label: w } = h;
1274
- let S = k.width / (w.length * 0.7);
1275
- for (; !l(h, S, M) && S > 0; )
1276
- S -= 1;
1277
- return S;
1278
- }), X = Math.floor(Math.min(...U));
1279
- C.selectAll("text").data(B).enter().append("text").attr("x", (h) => h.data.x + h.data.width / 2).attr("y", (h) => h.data.y + M).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
1280
- }
1281
- break;
1282
- case "text":
1283
- C.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (l) => l.fill).attr("font-size", (l) => l.fontSize).attr("dominant-baseline", (l) => b(l.verticalPos)).attr("text-anchor", (l) => P(l.horizontalPos)).attr("transform", (l) => I(l)).text((l) => l.text);
1284
- break;
1285
- case "path":
1286
- C.selectAll("path").data(f.data).enter().append("path").attr("d", (l) => l.path).attr("fill", (l) => l.fill ? l.fill : "none").attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
1287
- break;
1288
- }
1289
- }
1290
- }, "draw"), Bi = {
1291
- draw: Mi
1292
- }, Xi = {
1293
- parser: _i,
1294
- db: Vi,
1295
- renderer: Bi
1296
- };
1297
- export {
1298
- Xi as diagram
1299
- };