@altimateai/ui-components 0.0.77-combobox-beta1 → 0.0.78-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +68190 -24455
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2868 -2222
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +6185 -4997
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/abap.js +6 -0
  10. package/dist/actionscript-3.js +6 -0
  11. package/dist/ada.js +6 -0
  12. package/dist/andromeeda.js +4 -0
  13. package/dist/angular-html.js +32 -0
  14. package/dist/angular-ts.js +21 -0
  15. package/dist/apache.js +6 -0
  16. package/dist/apex.js +6 -0
  17. package/dist/apl.js +16 -0
  18. package/dist/applescript.js +6 -0
  19. package/dist/ara.js +6 -0
  20. package/dist/arc.js +53 -53
  21. package/dist/architectureDiagram-VXUJARFQ.js +480 -4315
  22. package/dist/architectureDiagram-VXUJARFQ2.js +831 -0
  23. package/dist/asciidoc.js +6 -0
  24. package/dist/asm.js +6 -0
  25. package/dist/assets/icons/index.js +1 -1
  26. package/dist/astro.js +18 -0
  27. package/dist/aurora-x.js +4 -0
  28. package/dist/awk.js +6 -0
  29. package/dist/ayu-dark.js +4 -0
  30. package/dist/ballerina.js +6 -0
  31. package/dist/band.js +46 -0
  32. package/dist/bat.js +6 -0
  33. package/dist/beancount.js +6 -0
  34. package/dist/berry.js +6 -0
  35. package/dist/bibtex.js +6 -0
  36. package/dist/bicep.js +6 -0
  37. package/dist/blade.js +20 -0
  38. package/dist/blockDiagram-VD42YOAC.js +1 -1
  39. package/dist/blockDiagram-VD42YOAC2.js +2266 -0
  40. package/dist/bsl.js +8 -0
  41. package/dist/c.js +6 -0
  42. package/dist/c3.js +6 -0
  43. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  44. package/dist/c4Diagram-YG6GDRKO2.js +1582 -0
  45. package/dist/cadence.js +6 -0
  46. package/dist/cairo.js +8 -0
  47. package/dist/catppuccin-frappe.js +4 -0
  48. package/dist/catppuccin-latte.js +4 -0
  49. package/dist/catppuccin-macchiato.js +4 -0
  50. package/dist/catppuccin-mocha.js +4 -0
  51. package/dist/channel.js +2 -2
  52. package/dist/chatbotV2/index.d.ts +57 -19
  53. package/dist/chatbotV2/index.js +91 -56
  54. package/dist/chunk-4BX2VUAB.js +1 -1
  55. package/dist/chunk-4BX2VUAB2.js +9 -0
  56. package/dist/chunk-55IACEB6.js +2 -2
  57. package/dist/chunk-55IACEB62.js +9 -0
  58. package/dist/chunk-B4BG7PRW.js +1 -1
  59. package/dist/chunk-B4BG7PRW2.js +1377 -0
  60. package/dist/chunk-DI55MBZ5.js +14 -14
  61. package/dist/chunk-DI55MBZ52.js +1382 -0
  62. package/dist/chunk-FMBD7UC4.js +1 -1
  63. package/dist/chunk-FMBD7UC42.js +19 -0
  64. package/dist/chunk-QN33PNHL.js +5 -5
  65. package/dist/chunk-QN33PNHL2.js +20 -0
  66. package/dist/chunk-QZHKN3VN.js +1 -1
  67. package/dist/chunk-QZHKN3VN2.js +15 -0
  68. package/dist/chunk-TZMSLE5B.js +1 -1
  69. package/dist/chunk-TZMSLE5B2.js +64 -0
  70. package/dist/clarity.js +6 -0
  71. package/dist/classDiagram-2ON5EDUG.js +1 -1
  72. package/dist/classDiagram-2ON5EDUG2.js +17 -0
  73. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  74. package/dist/classDiagram-v2-WZHVMYZB2.js +17 -0
  75. package/dist/clojure.js +6 -0
  76. package/dist/cmake.js +6 -0
  77. package/dist/cobol.js +10 -0
  78. package/dist/code-block-37QAKDTI.js +27 -0
  79. package/dist/codeowners.js +6 -0
  80. package/dist/codeql.js +6 -0
  81. package/dist/coffee.js +8 -0
  82. package/dist/common-lisp.js +6 -0
  83. package/dist/coq.js +6 -0
  84. package/dist/cose-bilkent-S5V4N54A.js +160 -2535
  85. package/dist/cose-bilkent-S5V4N54A2.js +231 -0
  86. package/dist/cpp.js +18 -0
  87. package/dist/crystal.js +18 -0
  88. package/dist/csharp.js +6 -0
  89. package/dist/css.js +6 -0
  90. package/dist/csv.js +6 -0
  91. package/dist/cue.js +6 -0
  92. package/dist/cypher.js +6 -0
  93. package/dist/cytoscape-cose-bilkent.js +2380 -0
  94. package/dist/cytoscape-fcose.js +3840 -0
  95. package/dist/d.js +6 -0
  96. package/dist/dagre-6UL2VRFP.js +101 -101
  97. package/dist/dagre-6UL2VRFP2.js +447 -0
  98. package/dist/dark-plus.js +4 -0
  99. package/dist/dart.js +6 -0
  100. package/dist/dax.js +6 -0
  101. package/dist/dayjs.min.js +2 -2
  102. package/dist/defaultLocale.js +3 -3
  103. package/dist/desktop.js +6 -0
  104. package/dist/diagram-PSM6KHXK.js +198 -414
  105. package/dist/diagram-PSM6KHXK2.js +319 -0
  106. package/dist/diagram-QEK2KX5R.js +26 -26
  107. package/dist/diagram-QEK2KX5R2.js +221 -0
  108. package/dist/diagram-S2PKOQOG.js +12 -12
  109. package/dist/diagram-S2PKOQOG2.js +143 -0
  110. package/dist/diff.js +6 -0
  111. package/dist/docker.js +6 -0
  112. package/dist/dotenv.js +6 -0
  113. package/dist/dracula-soft.js +4 -0
  114. package/dist/dracula.js +4 -0
  115. package/dist/dream-maker.js +6 -0
  116. package/dist/edge.js +12 -0
  117. package/dist/elixir.js +8 -0
  118. package/dist/elm.js +8 -0
  119. package/dist/emacs-lisp.js +6 -0
  120. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  121. package/dist/erDiagram-Q2GNP2WA2.js +843 -0
  122. package/dist/erb.js +10 -0
  123. package/dist/erlang.js +8 -0
  124. package/dist/everforest-dark.js +4 -0
  125. package/dist/everforest-light.js +4 -0
  126. package/dist/fennel.js +6 -0
  127. package/dist/fish.js +6 -0
  128. package/dist/flowDiagram-NV44I4VS.js +6 -6
  129. package/dist/flowDiagram-NV44I4VS2.js +1628 -0
  130. package/dist/fluent.js +6 -0
  131. package/dist/fortran-fixed-form.js +8 -0
  132. package/dist/fortran-free-form.js +6 -0
  133. package/dist/fsharp.js +8 -0
  134. package/dist/ganttDiagram-JELNMOA3.js +1788 -0
  135. package/dist/ganttDiagram-LVOFAZNH.js +843 -1718
  136. package/dist/gdresource.js +10 -0
  137. package/dist/gdscript.js +6 -0
  138. package/dist/gdshader.js +6 -0
  139. package/dist/genie.js +6 -0
  140. package/dist/gherkin.js +6 -0
  141. package/dist/git-commit.js +8 -0
  142. package/dist/git-rebase.js +8 -0
  143. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  144. package/dist/gitGraphDiagram-NY62KEGX2.js +713 -0
  145. package/dist/github-dark-default.js +4 -0
  146. package/dist/github-dark-dimmed.js +4 -0
  147. package/dist/github-dark-high-contrast.js +4 -0
  148. package/dist/github-dark.js +4 -0
  149. package/dist/github-light-default.js +4 -0
  150. package/dist/github-light-high-contrast.js +4 -0
  151. package/dist/github-light.js +4 -0
  152. package/dist/gleam.js +6 -0
  153. package/dist/glimmer-js.js +14 -0
  154. package/dist/glimmer-ts.js +14 -0
  155. package/dist/glsl.js +8 -0
  156. package/dist/gn.js +6 -0
  157. package/dist/gnuplot.js +6 -0
  158. package/dist/go.js +6 -0
  159. package/dist/graph.js +17 -18
  160. package/dist/graph2.js +246 -0
  161. package/dist/graphql.js +14 -0
  162. package/dist/groovy.js +6 -0
  163. package/dist/gruvbox-dark-hard.js +4 -0
  164. package/dist/gruvbox-dark-medium.js +4 -0
  165. package/dist/gruvbox-dark-soft.js +4 -0
  166. package/dist/gruvbox-light-hard.js +4 -0
  167. package/dist/gruvbox-light-medium.js +4 -0
  168. package/dist/gruvbox-light-soft.js +4 -0
  169. package/dist/hack.js +10 -0
  170. package/dist/haml.js +10 -0
  171. package/dist/handlebars.js +14 -0
  172. package/dist/haskell.js +6 -0
  173. package/dist/haxe.js +6 -0
  174. package/dist/hcl.js +6 -0
  175. package/dist/hjson.js +6 -0
  176. package/dist/hlsl.js +6 -0
  177. package/dist/houston.js +4 -0
  178. package/dist/html-derivative.js +8 -0
  179. package/dist/html.js +10 -0
  180. package/dist/http.js +14 -0
  181. package/dist/hurl.js +12 -0
  182. package/dist/hxml.js +8 -0
  183. package/dist/hy.js +6 -0
  184. package/dist/imba.js +6 -0
  185. package/dist/index.d.ts +101 -6
  186. package/dist/index.js +37 -37
  187. package/dist/index2.js +216 -684
  188. package/dist/index3.js +689 -0
  189. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  190. package/dist/infoDiagram-WHAUD3N6.js +24 -0
  191. package/dist/ini.js +6 -0
  192. package/dist/java.js +6 -0
  193. package/dist/javascript.js +6 -0
  194. package/dist/jinja.js +11 -0
  195. package/dist/jison.js +8 -0
  196. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  197. package/dist/journeyDiagram-XKPGCS4Q2.js +837 -0
  198. package/dist/json.js +6 -0
  199. package/dist/json5.js +6 -0
  200. package/dist/jsonc.js +6 -0
  201. package/dist/jsonl.js +6 -0
  202. package/dist/jsonnet.js +6 -0
  203. package/dist/jssm.js +6 -0
  204. package/dist/jsx.js +6 -0
  205. package/dist/julia.js +16 -0
  206. package/dist/kanagawa-dragon.js +4 -0
  207. package/dist/kanagawa-lotus.js +4 -0
  208. package/dist/kanagawa-wave.js +4 -0
  209. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  210. package/dist/kanban-definition-3W4ZIXB72.js +720 -0
  211. package/dist/katex2.js +11691 -0
  212. package/dist/kdl.js +6 -0
  213. package/dist/kotlin.js +6 -0
  214. package/dist/kusto.js +6 -0
  215. package/dist/laserwave.js +4 -0
  216. package/dist/latex.js +8 -0
  217. package/dist/layout.js +567 -678
  218. package/dist/layout2.js +1224 -0
  219. package/dist/lean.js +6 -0
  220. package/dist/less.js +6 -0
  221. package/dist/light-plus.js +4 -0
  222. package/dist/lineage/index.js +1082 -1089
  223. package/dist/linear.js +1 -1
  224. package/dist/liquid.js +14 -0
  225. package/dist/llvm.js +6 -0
  226. package/dist/log.js +6 -0
  227. package/dist/logo.js +6 -0
  228. package/dist/lua.js +8 -0
  229. package/dist/luau.js +6 -0
  230. package/dist/main.css +1 -1
  231. package/dist/main.js +151 -151
  232. package/dist/make.js +6 -0
  233. package/dist/markdown.js +6 -0
  234. package/dist/marko.js +14 -0
  235. package/dist/material-theme-darker.js +4 -0
  236. package/dist/material-theme-lighter.js +4 -0
  237. package/dist/material-theme-ocean.js +4 -0
  238. package/dist/material-theme-palenight.js +4 -0
  239. package/dist/material-theme.js +4 -0
  240. package/dist/matlab.js +6 -0
  241. package/dist/mdc.js +12 -0
  242. package/dist/mdx.js +6 -0
  243. package/dist/mermaid-4DMBBIKO.js +4 -0
  244. package/dist/mermaid-parser.core.js +155 -155
  245. package/dist/mermaid.js +6 -0
  246. package/dist/min-dark.js +4 -0
  247. package/dist/min-light.js +4 -0
  248. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  249. package/dist/mindmap-definition-VGOIOE7T2.js +786 -0
  250. package/dist/mipsasm.js +6 -0
  251. package/dist/mojo.js +6 -0
  252. package/dist/monokai.js +4 -0
  253. package/dist/moonbit.js +6 -0
  254. package/dist/move.js +6 -0
  255. package/dist/narrat.js +6 -0
  256. package/dist/nextflow.js +6 -0
  257. package/dist/nginx.js +8 -0
  258. package/dist/night-owl.js +4 -0
  259. package/dist/nim.js +20 -0
  260. package/dist/nix.js +9 -0
  261. package/dist/nord.js +4 -0
  262. package/dist/nushell.js +6 -0
  263. package/dist/objective-c.js +6 -0
  264. package/dist/objective-cpp.js +6 -0
  265. package/dist/ocaml.js +6 -0
  266. package/dist/one-dark-pro.js +4 -0
  267. package/dist/one-light.js +4 -0
  268. package/dist/openscad.js +6 -0
  269. package/dist/pascal.js +6 -0
  270. package/dist/perl.js +16 -0
  271. package/dist/php.js +18 -0
  272. package/dist/pie.js +45 -0
  273. package/dist/pieDiagram-ADFJNKIX.js +68 -108
  274. package/dist/pieDiagram-ADFJNKIX2.js +123 -0
  275. package/dist/pkl.js +6 -0
  276. package/dist/plastic.js +4 -0
  277. package/dist/plsql.js +6 -0
  278. package/dist/po.js +6 -0
  279. package/dist/poimandres.js +4 -0
  280. package/dist/polar.js +6 -0
  281. package/dist/postcss.js +6 -0
  282. package/dist/powerquery.js +6 -0
  283. package/dist/powershell.js +6 -0
  284. package/dist/prisma.js +6 -0
  285. package/dist/prolog.js +6 -0
  286. package/dist/proto.js +6 -0
  287. package/dist/pug.js +12 -0
  288. package/dist/puppet.js +6 -0
  289. package/dist/purescript.js +6 -0
  290. package/dist/python.js +6 -0
  291. package/dist/qml.js +8 -0
  292. package/dist/qmldir.js +6 -0
  293. package/dist/qss.js +6 -0
  294. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  295. package/dist/quadrantDiagram-AYHSOK5B2.js +1025 -0
  296. package/dist/r.js +6 -0
  297. package/dist/racket.js +6 -0
  298. package/dist/raku.js +6 -0
  299. package/dist/razor.js +10 -0
  300. package/dist/red.js +4 -0
  301. package/dist/redux-toolkit.modern.js +563 -555
  302. package/dist/reg.js +6 -0
  303. package/dist/regexp.js +6 -0
  304. package/dist/rel.js +6 -0
  305. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  306. package/dist/requirementDiagram-UZGBJVZJ2.js +852 -0
  307. package/dist/riscv.js +6 -0
  308. package/dist/rose-pine-dawn.js +4 -0
  309. package/dist/rose-pine-moon.js +4 -0
  310. package/dist/rose-pine.js +4 -0
  311. package/dist/rosmsg.js +6 -0
  312. package/dist/rst.js +22 -0
  313. package/dist/ruby.js +30 -0
  314. package/dist/rust.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN.js +229 -622
  316. package/dist/sankeyDiagram-TZEHDZUN2.js +418 -0
  317. package/dist/sankeyLinkHorizontal.js +403 -0
  318. package/dist/sas.js +8 -0
  319. package/dist/sass.js +6 -0
  320. package/dist/scala.js +6 -0
  321. package/dist/scheme.js +6 -0
  322. package/dist/scss.js +8 -0
  323. package/dist/sdbl.js +6 -0
  324. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  325. package/dist/sequenceDiagram-WL72ISMW2.js +2523 -0
  326. package/dist/shadcn/index.d.ts +43 -21
  327. package/dist/shadcn/index.js +7330 -5516
  328. package/dist/shaderlab.js +8 -0
  329. package/dist/shellscript.js +6 -0
  330. package/dist/shellsession.js +8 -0
  331. package/dist/slack-dark.js +4 -0
  332. package/dist/slack-ochin.js +4 -0
  333. package/dist/smalltalk.js +6 -0
  334. package/dist/snazzy-light.js +4 -0
  335. package/dist/solarized-dark.js +4 -0
  336. package/dist/solarized-light.js +4 -0
  337. package/dist/solidity.js +6 -0
  338. package/dist/soy.js +8 -0
  339. package/dist/sparql.js +8 -0
  340. package/dist/splunk.js +6 -0
  341. package/dist/sql.js +6 -0
  342. package/dist/ssh-config.js +6 -0
  343. package/dist/stata.js +8 -0
  344. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  345. package/dist/stateDiagram-FKZM4ZOC2.js +264 -0
  346. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  347. package/dist/stateDiagram-v2-4FDKWEC32.js +17 -0
  348. package/dist/storybook/Typography.stories.tsx +120 -93
  349. package/dist/stylus.js +6 -0
  350. package/dist/svelte.js +14 -0
  351. package/dist/swift.js +6 -0
  352. package/dist/synthwave-84.js +4 -0
  353. package/dist/system-verilog.js +6 -0
  354. package/dist/systemd.js +6 -0
  355. package/dist/talonscript.js +6 -0
  356. package/dist/tasl.js +6 -0
  357. package/dist/tcl.js +6 -0
  358. package/dist/templ.js +12 -0
  359. package/dist/terraform.js +6 -0
  360. package/dist/tex.js +8 -0
  361. package/dist/time.js +900 -0
  362. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  363. package/dist/timeline-definition-IT6M3QCI2.js +802 -0
  364. package/dist/tokyo-night.js +4 -0
  365. package/dist/toml.js +6 -0
  366. package/dist/ts-tags.js +41 -0
  367. package/dist/tsv.js +6 -0
  368. package/dist/tsx.js +6 -0
  369. package/dist/turtle.js +6 -0
  370. package/dist/twig.js +18 -0
  371. package/dist/{types-ByRPUpXR.d.ts → types-UHJCpYj0.d.ts} +25 -116
  372. package/dist/typescript.js +6 -0
  373. package/dist/typespec.js +6 -0
  374. package/dist/typst.js +6 -0
  375. package/dist/union.js +8 -0
  376. package/dist/v.js +6 -0
  377. package/dist/vala.js +6 -0
  378. package/dist/vb.js +6 -0
  379. package/dist/verilog.js +6 -0
  380. package/dist/vesper.js +4 -0
  381. package/dist/vhdl.js +6 -0
  382. package/dist/viml.js +6 -0
  383. package/dist/vitesse-black.js +4 -0
  384. package/dist/vitesse-dark.js +4 -0
  385. package/dist/vitesse-light.js +4 -0
  386. package/dist/vue-html.js +8 -0
  387. package/dist/vue-vine.js +18 -0
  388. package/dist/vue.js +31 -0
  389. package/dist/vyper.js +6 -0
  390. package/dist/wasm.js +7 -0
  391. package/dist/wasm2.js +6 -0
  392. package/dist/wenyan.js +6 -0
  393. package/dist/wgsl.js +6 -0
  394. package/dist/wikitext.js +6 -0
  395. package/dist/wit.js +6 -0
  396. package/dist/wolfram.js +6 -0
  397. package/dist/xml.js +8 -0
  398. package/dist/xsl.js +8 -0
  399. package/dist/xychartDiagram-PRI3JC2R.js +449 -491
  400. package/dist/xychartDiagram-PRI3JC2R2.js +1299 -0
  401. package/dist/yaml.js +6 -0
  402. package/dist/zenscript.js +6 -0
  403. package/dist/zig.js +6 -0
  404. package/dist/zipObject.js +128 -0
  405. package/package.json +1 -1
@@ -0,0 +1,1025 @@
1
+ import { aG as o, be as _e, b6 as D, aS as At, aM as wt, aR as Ae, aW as ie, aI as ke, aJ as Fe, aV as Pe, aK as ve, aL as Ce, b0 as Le, aT as Ee } from "./CoachForm.js";
2
+ import { s as zt } from "./redux-toolkit.modern.js";
3
+ import { l as ee } from "./linear.js";
4
+ var Vt = function() {
5
+ var t = /* @__PURE__ */ o(function(j, r, l, g) {
6
+ for (l = l || {}, g = j.length; g--; l[j[g]] = r) ;
7
+ return l;
8
+ }, "o"), n = [1, 3], u = [1, 4], c = [1, 5], h = [1, 6], p = [1, 7], y = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], S = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], a = [55, 56, 57], A = [2, 36], d = [1, 37], T = [1, 36], q = [1, 38], m = [1, 35], b = [1, 43], x = [1, 41], O = [1, 14], Y = [1, 23], G = [1, 18], yt = [1, 19], Tt = [1, 20], dt = [1, 21], Ft = [1, 22], ut = [1, 24], xt = [1, 25], ft = [1, 26], gt = [1, 27], i = [1, 28], Rt = [1, 29], W = [1, 32], U = [1, 33], k = [1, 34], F = [1, 39], P = [1, 40], v = [1, 42], C = [1, 44], H = [1, 62], X = [1, 61], L = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Bt = [1, 65], Nt = [1, 66], Wt = [1, 67], Ut = [1, 68], Qt = [1, 69], Ot = [1, 70], Ht = [1, 71], Xt = [1, 72], Mt = [1, 73], Yt = [1, 74], jt = [1, 75], Gt = [1, 76], I = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], Z = [1, 90], $ = [1, 91], tt = [1, 92], et = [1, 99], it = [1, 93], at = [1, 96], nt = [1, 94], st = [1, 95], rt = [1, 97], ot = [1, 98], Pt = [1, 102], Kt = [10, 55, 56, 57], B = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], vt = {
9
+ trace: /* @__PURE__ */ o(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ symbols_: { error: 2, idStringToken: 3, ALPHA: 4, NUM: 5, NODE_STRING: 6, DOWN: 7, MINUS: 8, DEFAULT: 9, COMMA: 10, COLON: 11, AMP: 12, BRKT: 13, MULT: 14, UNICODE_TEXT: 15, styleComponent: 16, UNIT: 17, SPACE: 18, STYLE: 19, PCT: 20, idString: 21, style: 22, stylesOpt: 23, classDefStatement: 24, CLASSDEF: 25, start: 26, eol: 27, QUADRANT: 28, document: 29, line: 30, statement: 31, axisDetails: 32, quadrantDetails: 33, points: 34, title: 35, title_value: 36, acc_title: 37, acc_title_value: 38, acc_descr: 39, acc_descr_value: 40, acc_descr_multiline_value: 41, section: 42, text: 43, point_start: 44, point_x: 45, point_y: 46, class_name: 47, "X-AXIS": 48, "AXIS-TEXT-DELIMITER": 49, "Y-AXIS": 50, QUADRANT_1: 51, QUADRANT_2: 52, QUADRANT_3: 53, QUADRANT_4: 54, NEWLINE: 55, SEMI: 56, EOF: 57, alphaNumToken: 58, textNoTagsToken: 59, STR: 60, MD_STR: 61, alphaNum: 62, PUNCTUATION: 63, PLUS: 64, EQUALS: 65, DOT: 66, UNDERSCORE: 67, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 4: "ALPHA", 5: "NUM", 6: "NODE_STRING", 7: "DOWN", 8: "MINUS", 9: "DEFAULT", 10: "COMMA", 11: "COLON", 12: "AMP", 13: "BRKT", 14: "MULT", 15: "UNICODE_TEXT", 17: "UNIT", 18: "SPACE", 19: "STYLE", 20: "PCT", 25: "CLASSDEF", 28: "QUADRANT", 35: "title", 36: "title_value", 37: "acc_title", 38: "acc_title_value", 39: "acc_descr", 40: "acc_descr_value", 41: "acc_descr_multiline_value", 42: "section", 44: "point_start", 45: "point_x", 46: "point_y", 47: "class_name", 48: "X-AXIS", 49: "AXIS-TEXT-DELIMITER", 50: "Y-AXIS", 51: "QUADRANT_1", 52: "QUADRANT_2", 53: "QUADRANT_3", 54: "QUADRANT_4", 55: "NEWLINE", 56: "SEMI", 57: "EOF", 60: "STR", 61: "MD_STR", 63: "PUNCTUATION", 64: "PLUS", 65: "EQUALS", 66: "DOT", 67: "UNDERSCORE" },
14
+ productions_: [0, [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [21, 1], [21, 2], [22, 1], [22, 2], [23, 1], [23, 3], [24, 5], [26, 2], [26, 2], [26, 2], [29, 0], [29, 2], [30, 2], [31, 0], [31, 1], [31, 2], [31, 1], [31, 1], [31, 1], [31, 2], [31, 2], [31, 2], [31, 1], [31, 1], [34, 4], [34, 5], [34, 5], [34, 6], [32, 4], [32, 3], [32, 2], [32, 4], [32, 3], [32, 2], [33, 2], [33, 2], [33, 2], [33, 2], [27, 1], [27, 1], [27, 1], [43, 1], [43, 2], [43, 1], [43, 1], [62, 1], [62, 2], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [59, 1], [59, 1], [59, 1]],
15
+ performAction: /* @__PURE__ */ o(function(r, l, g, f, _, e, pt) {
16
+ var s = e.length - 1;
17
+ switch (_) {
18
+ case 23:
19
+ this.$ = e[s];
20
+ break;
21
+ case 24:
22
+ this.$ = e[s - 1] + "" + e[s];
23
+ break;
24
+ case 26:
25
+ this.$ = e[s - 1] + e[s];
26
+ break;
27
+ case 27:
28
+ this.$ = [e[s].trim()];
29
+ break;
30
+ case 28:
31
+ e[s - 2].push(e[s].trim()), this.$ = e[s - 2];
32
+ break;
33
+ case 29:
34
+ this.$ = e[s - 4], f.addClass(e[s - 2], e[s]);
35
+ break;
36
+ case 37:
37
+ this.$ = [];
38
+ break;
39
+ case 42:
40
+ this.$ = e[s].trim(), f.setDiagramTitle(this.$);
41
+ break;
42
+ case 43:
43
+ this.$ = e[s].trim(), f.setAccTitle(this.$);
44
+ break;
45
+ case 44:
46
+ case 45:
47
+ this.$ = e[s].trim(), f.setAccDescription(this.$);
48
+ break;
49
+ case 46:
50
+ f.addSection(e[s].substr(8)), this.$ = e[s].substr(8);
51
+ break;
52
+ case 47:
53
+ f.addPoint(e[s - 3], "", e[s - 1], e[s], []);
54
+ break;
55
+ case 48:
56
+ f.addPoint(e[s - 4], e[s - 3], e[s - 1], e[s], []);
57
+ break;
58
+ case 49:
59
+ f.addPoint(e[s - 4], "", e[s - 2], e[s - 1], e[s]);
60
+ break;
61
+ case 50:
62
+ f.addPoint(e[s - 5], e[s - 4], e[s - 2], e[s - 1], e[s]);
63
+ break;
64
+ case 51:
65
+ f.setXAxisLeftText(e[s - 2]), f.setXAxisRightText(e[s]);
66
+ break;
67
+ case 52:
68
+ e[s - 1].text += " ⟶ ", f.setXAxisLeftText(e[s - 1]);
69
+ break;
70
+ case 53:
71
+ f.setXAxisLeftText(e[s]);
72
+ break;
73
+ case 54:
74
+ f.setYAxisBottomText(e[s - 2]), f.setYAxisTopText(e[s]);
75
+ break;
76
+ case 55:
77
+ e[s - 1].text += " ⟶ ", f.setYAxisBottomText(e[s - 1]);
78
+ break;
79
+ case 56:
80
+ f.setYAxisBottomText(e[s]);
81
+ break;
82
+ case 57:
83
+ f.setQuadrant1Text(e[s]);
84
+ break;
85
+ case 58:
86
+ f.setQuadrant2Text(e[s]);
87
+ break;
88
+ case 59:
89
+ f.setQuadrant3Text(e[s]);
90
+ break;
91
+ case 60:
92
+ f.setQuadrant4Text(e[s]);
93
+ break;
94
+ case 64:
95
+ this.$ = { text: e[s], type: "text" };
96
+ break;
97
+ case 65:
98
+ this.$ = { text: e[s - 1].text + "" + e[s], type: e[s - 1].type };
99
+ break;
100
+ case 66:
101
+ this.$ = { text: e[s], type: "text" };
102
+ break;
103
+ case 67:
104
+ this.$ = { text: e[s], type: "markdown" };
105
+ break;
106
+ case 68:
107
+ this.$ = e[s];
108
+ break;
109
+ case 69:
110
+ this.$ = e[s - 1] + "" + e[s];
111
+ break;
112
+ }
113
+ }, "anonymous"),
114
+ table: [{ 18: n, 26: 1, 27: 2, 28: u, 55: c, 56: h, 57: p }, { 1: [3] }, { 18: n, 26: 8, 27: 2, 28: u, 55: c, 56: h, 57: p }, { 18: n, 26: 9, 27: 2, 28: u, 55: c, 56: h, 57: p }, t(y, [2, 33], { 29: 10 }), t(S, [2, 61]), t(S, [2, 62]), t(S, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(a, A, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 18: O, 25: Y, 35: G, 37: yt, 39: Tt, 41: dt, 42: Ft, 48: ut, 50: xt, 51: ft, 52: gt, 53: i, 54: Rt, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(y, [2, 34]), { 27: 45, 55: c, 56: h, 57: p }, t(a, [2, 37]), t(a, A, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 18: O, 25: Y, 35: G, 37: yt, 39: Tt, 41: dt, 42: Ft, 48: ut, 50: xt, 51: ft, 52: gt, 53: i, 54: Rt, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 39]), t(a, [2, 40]), t(a, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(a, [2, 45]), t(a, [2, 46]), { 18: [1, 50] }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 51, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 52, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 53, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 54, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 55, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 56, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: k, 64: F, 65: P, 66: v, 67: C }, t(L, [2, 64]), t(L, [2, 66]), t(L, [2, 67]), t(L, [2, 70]), t(L, [2, 71]), t(L, [2, 72]), t(L, [2, 73]), t(L, [2, 74]), t(L, [2, 75]), t(L, [2, 76]), t(L, [2, 77]), t(L, [2, 78]), t(L, [2, 79]), t(L, [2, 80]), t(y, [2, 35]), t(a, [2, 38]), t(a, [2, 42]), t(a, [2, 43]), t(a, [2, 44]), { 3: 64, 4: Bt, 5: Nt, 6: Wt, 7: Ut, 8: Qt, 9: Ot, 10: Ht, 11: Xt, 12: Mt, 13: Yt, 14: jt, 15: Gt, 21: 63 }, t(a, [2, 53], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 49: [1, 77], 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 56], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 49: [1, 78], 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 57], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 58], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 59], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 60], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), { 45: [1, 79] }, { 44: [1, 80] }, t(L, [2, 65]), t(L, [2, 81]), t(L, [2, 82]), t(L, [2, 83]), { 3: 82, 4: Bt, 5: Nt, 6: Wt, 7: Ut, 8: Qt, 9: Ot, 10: Ht, 11: Xt, 12: Mt, 13: Yt, 14: jt, 15: Gt, 18: [1, 81] }, t(I, [2, 23]), t(I, [2, 1]), t(I, [2, 2]), t(I, [2, 3]), t(I, [2, 4]), t(I, [2, 5]), t(I, [2, 6]), t(I, [2, 7]), t(I, [2, 8]), t(I, [2, 9]), t(I, [2, 10]), t(I, [2, 11]), t(I, [2, 12]), t(a, [2, 52], { 58: 31, 43: 83, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 55], { 58: 31, 43: 84, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 16: 89, 17: nt, 18: st, 19: rt, 20: ot, 22: 88, 23: 87 }, t(I, [2, 24]), t(a, [2, 51], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 54], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 47], { 22: 88, 16: 89, 23: 100, 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), { 46: [1, 101] }, t(a, [2, 29], { 10: Pt }), t(Kt, [2, 27], { 16: 103, 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), t(B, [2, 25]), t(B, [2, 13]), t(B, [2, 14]), t(B, [2, 15]), t(B, [2, 16]), t(B, [2, 17]), t(B, [2, 18]), t(B, [2, 19]), t(B, [2, 20]), t(B, [2, 21]), t(B, [2, 22]), t(a, [2, 49], { 10: Pt }), t(a, [2, 48], { 22: 88, 16: 89, 23: 104, 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), { 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 16: 89, 17: nt, 18: st, 19: rt, 20: ot, 22: 105 }, t(B, [2, 26]), t(a, [2, 50], { 10: Pt }), t(Kt, [2, 28], { 16: 103, 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot })],
115
+ defaultActions: { 8: [2, 30], 9: [2, 31] },
116
+ parseError: /* @__PURE__ */ o(function(r, l) {
117
+ if (l.recoverable)
118
+ this.trace(r);
119
+ else {
120
+ var g = new Error(r);
121
+ throw g.hash = l, g;
122
+ }
123
+ }, "parseError"),
124
+ parse: /* @__PURE__ */ o(function(r) {
125
+ var l = this, g = [0], f = [], _ = [null], e = [], pt = this.table, s = "", mt = 0, Jt = 0, qe = 2, Zt = 1, me = e.slice.call(arguments, 1), E = Object.create(this.lexer), K = { yy: {} };
126
+ for (var Ct in this.yy)
127
+ Object.prototype.hasOwnProperty.call(this.yy, Ct) && (K.yy[Ct] = this.yy[Ct]);
128
+ E.setInput(r, K.yy), K.yy.lexer = E, K.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
129
+ var Lt = E.yylloc;
130
+ e.push(Lt);
131
+ var be = E.options && E.options.ranges;
132
+ typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
133
+ function Se(R) {
134
+ g.length = g.length - 2 * R, _.length = _.length - R, e.length = e.length - R;
135
+ }
136
+ o(Se, "popStack");
137
+ function $t() {
138
+ var R;
139
+ return R = f.pop() || E.lex() || Zt, typeof R != "number" && (R instanceof Array && (f = R, R = f.pop()), R = l.symbols_[R] || R), R;
140
+ }
141
+ o($t, "lex");
142
+ for (var w, J, N, Et, lt = {}, bt, M, te, St; ; ) {
143
+ if (J = g[g.length - 1], this.defaultActions[J] ? N = this.defaultActions[J] : ((w === null || typeof w > "u") && (w = $t()), N = pt[J] && pt[J][w]), typeof N > "u" || !N.length || !N[0]) {
144
+ var Dt = "";
145
+ St = [];
146
+ for (bt in pt[J])
147
+ this.terminals_[bt] && bt > qe && St.push("'" + this.terminals_[bt] + "'");
148
+ E.showPosition ? Dt = "Parse error on line " + (mt + 1) + `:
149
+ ` + E.showPosition() + `
150
+ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt = "Parse error on line " + (mt + 1) + ": Unexpected " + (w == Zt ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Dt, {
151
+ text: E.match,
152
+ token: this.terminals_[w] || w,
153
+ line: E.yylineno,
154
+ loc: Lt,
155
+ expected: St
156
+ });
157
+ }
158
+ if (N[0] instanceof Array && N.length > 1)
159
+ throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + w);
160
+ switch (N[0]) {
161
+ case 1:
162
+ g.push(w), _.push(E.yytext), e.push(E.yylloc), g.push(N[1]), w = null, Jt = E.yyleng, s = E.yytext, mt = E.yylineno, Lt = E.yylloc;
163
+ break;
164
+ case 2:
165
+ if (M = this.productions_[N[1]][1], lt.$ = _[_.length - M], lt._$ = {
166
+ first_line: e[e.length - (M || 1)].first_line,
167
+ last_line: e[e.length - 1].last_line,
168
+ first_column: e[e.length - (M || 1)].first_column,
169
+ last_column: e[e.length - 1].last_column
170
+ }, be && (lt._$.range = [
171
+ e[e.length - (M || 1)].range[0],
172
+ e[e.length - 1].range[1]
173
+ ]), Et = this.performAction.apply(lt, [
174
+ s,
175
+ Jt,
176
+ mt,
177
+ K.yy,
178
+ N[1],
179
+ _,
180
+ e
181
+ ].concat(me)), typeof Et < "u")
182
+ return Et;
183
+ M && (g = g.slice(0, -1 * M * 2), _ = _.slice(0, -1 * M), e = e.slice(0, -1 * M)), g.push(this.productions_[N[1]][0]), _.push(lt.$), e.push(lt._$), te = pt[g[g.length - 2]][g[g.length - 1]], g.push(te);
184
+ break;
185
+ case 3:
186
+ return !0;
187
+ }
188
+ }
189
+ return !0;
190
+ }, "parse")
191
+ }, Te = /* @__PURE__ */ function() {
192
+ var j = {
193
+ EOF: 1,
194
+ parseError: /* @__PURE__ */ o(function(l, g) {
195
+ if (this.yy.parser)
196
+ this.yy.parser.parseError(l, g);
197
+ else
198
+ throw new Error(l);
199
+ }, "parseError"),
200
+ // resets the lexer, sets new input
201
+ setInput: /* @__PURE__ */ o(function(r, l) {
202
+ return this.yy = l || 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 = {
203
+ first_line: 1,
204
+ first_column: 0,
205
+ last_line: 1,
206
+ last_column: 0
207
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
208
+ }, "setInput"),
209
+ // consumes and returns one char from the input
210
+ input: /* @__PURE__ */ o(function() {
211
+ var r = this._input[0];
212
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
213
+ var l = r.match(/(?:\r\n?|\n).*/g);
214
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
215
+ }, "input"),
216
+ // unshifts one char (or a string) into the input
217
+ unput: /* @__PURE__ */ o(function(r) {
218
+ var l = r.length, g = r.split(/(?:\r\n?|\n)/g);
219
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
220
+ var f = this.match.split(/(?:\r\n?|\n)/g);
221
+ 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);
222
+ var _ = this.yylloc.range;
223
+ return this.yylloc = {
224
+ first_line: this.yylloc.first_line,
225
+ last_line: this.yylineno + 1,
226
+ first_column: this.yylloc.first_column,
227
+ last_column: g ? (g.length === f.length ? this.yylloc.first_column : 0) + f[f.length - g.length].length - g[0].length : this.yylloc.first_column - l
228
+ }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
229
+ }, "unput"),
230
+ // When called from action, caches matched text and appends it on next action
231
+ more: /* @__PURE__ */ o(function() {
232
+ return this._more = !0, this;
233
+ }, "more"),
234
+ // 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.
235
+ reject: /* @__PURE__ */ o(function() {
236
+ if (this.options.backtrack_lexer)
237
+ this._backtrack = !0;
238
+ else
239
+ 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).
240
+ ` + this.showPosition(), {
241
+ text: "",
242
+ token: null,
243
+ line: this.yylineno
244
+ });
245
+ return this;
246
+ }, "reject"),
247
+ // retain first n characters of the match
248
+ less: /* @__PURE__ */ o(function(r) {
249
+ this.unput(this.match.slice(r));
250
+ }, "less"),
251
+ // displays already matched input, i.e. for error messages
252
+ pastInput: /* @__PURE__ */ o(function() {
253
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
254
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
255
+ }, "pastInput"),
256
+ // displays upcoming input, i.e. for error messages
257
+ upcomingInput: /* @__PURE__ */ o(function() {
258
+ var r = this.match;
259
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
260
+ }, "upcomingInput"),
261
+ // displays the character position where the lexing error occurred, i.e. for error messages
262
+ showPosition: /* @__PURE__ */ o(function() {
263
+ var r = this.pastInput(), l = new Array(r.length + 1).join("-");
264
+ return r + this.upcomingInput() + `
265
+ ` + l + "^";
266
+ }, "showPosition"),
267
+ // test the lexed token: return FALSE when not a match, otherwise return token
268
+ test_match: /* @__PURE__ */ o(function(r, l) {
269
+ var g, f, _;
270
+ if (this.options.backtrack_lexer && (_ = {
271
+ yylineno: this.yylineno,
272
+ yylloc: {
273
+ first_line: this.yylloc.first_line,
274
+ last_line: this.last_line,
275
+ first_column: this.yylloc.first_column,
276
+ last_column: this.yylloc.last_column
277
+ },
278
+ yytext: this.yytext,
279
+ match: this.match,
280
+ matches: this.matches,
281
+ matched: this.matched,
282
+ yyleng: this.yyleng,
283
+ offset: this.offset,
284
+ _more: this._more,
285
+ _input: this._input,
286
+ yy: this.yy,
287
+ conditionStack: this.conditionStack.slice(0),
288
+ done: this.done
289
+ }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), f = r[0].match(/(?:\r\n?|\n).*/g), f && (this.yylineno += f.length), this.yylloc = {
290
+ first_line: this.yylloc.last_line,
291
+ last_line: this.yylineno + 1,
292
+ first_column: this.yylloc.last_column,
293
+ last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
294
+ }, 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, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
295
+ return g;
296
+ if (this._backtrack) {
297
+ for (var e in _)
298
+ this[e] = _[e];
299
+ return !1;
300
+ }
301
+ return !1;
302
+ }, "test_match"),
303
+ // return next match in input
304
+ next: /* @__PURE__ */ o(function() {
305
+ if (this.done)
306
+ return this.EOF;
307
+ this._input || (this.done = !0);
308
+ var r, l, g, f;
309
+ this._more || (this.yytext = "", this.match = "");
310
+ for (var _ = this._currentRules(), e = 0; e < _.length; e++)
311
+ if (g = this._input.match(this.rules[_[e]]), g && (!l || g[0].length > l[0].length)) {
312
+ if (l = g, f = e, this.options.backtrack_lexer) {
313
+ if (r = this.test_match(g, _[e]), r !== !1)
314
+ return r;
315
+ if (this._backtrack) {
316
+ l = !1;
317
+ continue;
318
+ } else
319
+ return !1;
320
+ } else if (!this.options.flex)
321
+ break;
322
+ }
323
+ return l ? (r = this.test_match(l, _[f]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
324
+ ` + this.showPosition(), {
325
+ text: "",
326
+ token: null,
327
+ line: this.yylineno
328
+ });
329
+ }, "next"),
330
+ // return next match that has a token
331
+ lex: /* @__PURE__ */ o(function() {
332
+ var l = this.next();
333
+ return l || this.lex();
334
+ }, "lex"),
335
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
336
+ begin: /* @__PURE__ */ o(function(l) {
337
+ this.conditionStack.push(l);
338
+ }, "begin"),
339
+ // pop the previously active lexer condition state off the condition stack
340
+ popState: /* @__PURE__ */ o(function() {
341
+ var l = this.conditionStack.length - 1;
342
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
343
+ }, "popState"),
344
+ // produce the lexer rule set which is active for the currently active lexer condition state
345
+ _currentRules: /* @__PURE__ */ o(function() {
346
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
347
+ }, "_currentRules"),
348
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
349
+ topState: /* @__PURE__ */ o(function(l) {
350
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
351
+ }, "topState"),
352
+ // alias for begin(condition)
353
+ pushState: /* @__PURE__ */ o(function(l) {
354
+ this.begin(l);
355
+ }, "pushState"),
356
+ // return the number of states currently on the stack
357
+ stateStackSize: /* @__PURE__ */ o(function() {
358
+ return this.conditionStack.length;
359
+ }, "stateStackSize"),
360
+ options: { "case-insensitive": !0 },
361
+ performAction: /* @__PURE__ */ o(function(l, g, f, _) {
362
+ switch (f) {
363
+ case 0:
364
+ break;
365
+ case 1:
366
+ break;
367
+ case 2:
368
+ return 55;
369
+ case 3:
370
+ break;
371
+ case 4:
372
+ return this.begin("title"), 35;
373
+ case 5:
374
+ return this.popState(), "title_value";
375
+ case 6:
376
+ return this.begin("acc_title"), 37;
377
+ case 7:
378
+ return this.popState(), "acc_title_value";
379
+ case 8:
380
+ return this.begin("acc_descr"), 39;
381
+ case 9:
382
+ return this.popState(), "acc_descr_value";
383
+ case 10:
384
+ this.begin("acc_descr_multiline");
385
+ break;
386
+ case 11:
387
+ this.popState();
388
+ break;
389
+ case 12:
390
+ return "acc_descr_multiline_value";
391
+ case 13:
392
+ return 48;
393
+ case 14:
394
+ return 50;
395
+ case 15:
396
+ return 49;
397
+ case 16:
398
+ return 51;
399
+ case 17:
400
+ return 52;
401
+ case 18:
402
+ return 53;
403
+ case 19:
404
+ return 54;
405
+ case 20:
406
+ return 25;
407
+ case 21:
408
+ this.begin("md_string");
409
+ break;
410
+ case 22:
411
+ return "MD_STR";
412
+ case 23:
413
+ this.popState();
414
+ break;
415
+ case 24:
416
+ this.begin("string");
417
+ break;
418
+ case 25:
419
+ this.popState();
420
+ break;
421
+ case 26:
422
+ return "STR";
423
+ case 27:
424
+ this.begin("class_name");
425
+ break;
426
+ case 28:
427
+ return this.popState(), 47;
428
+ case 29:
429
+ return this.begin("point_start"), 44;
430
+ case 30:
431
+ return this.begin("point_x"), 45;
432
+ case 31:
433
+ this.popState();
434
+ break;
435
+ case 32:
436
+ this.popState(), this.begin("point_y");
437
+ break;
438
+ case 33:
439
+ return this.popState(), 46;
440
+ case 34:
441
+ return 28;
442
+ case 35:
443
+ return 4;
444
+ case 36:
445
+ return 11;
446
+ case 37:
447
+ return 64;
448
+ case 38:
449
+ return 10;
450
+ case 39:
451
+ return 65;
452
+ case 40:
453
+ return 65;
454
+ case 41:
455
+ return 14;
456
+ case 42:
457
+ return 13;
458
+ case 43:
459
+ return 67;
460
+ case 44:
461
+ return 66;
462
+ case 45:
463
+ return 12;
464
+ case 46:
465
+ return 8;
466
+ case 47:
467
+ return 5;
468
+ case 48:
469
+ return 18;
470
+ case 49:
471
+ return 56;
472
+ case 50:
473
+ return 63;
474
+ case 51:
475
+ return 57;
476
+ }
477
+ }, "anonymous"),
478
+ rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:classDef\b)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?::::)/i, /^(?:^\w+)/i, /^(?:\s*:\s*\[\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?:\s*\] *)/i, /^(?:\s*,\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
479
+ conditions: { class_name: { rules: [28], inclusive: !1 }, point_y: { rules: [33], inclusive: !1 }, point_x: { rules: [32], inclusive: !1 }, point_start: { rules: [30, 31], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, title: { rules: [5], inclusive: !1 }, md_string: { rules: [22, 23], inclusive: !1 }, string: { rules: [25, 26], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 27, 29, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], inclusive: !0 } }
480
+ };
481
+ return j;
482
+ }();
483
+ vt.lexer = Te;
484
+ function qt() {
485
+ this.yy = {};
486
+ }
487
+ return o(qt, "Parser"), qt.prototype = vt, vt.Parser = qt, new qt();
488
+ }();
489
+ Vt.parser = Vt;
490
+ var De = Vt, V = _e(), ht, ze = (ht = class {
491
+ constructor() {
492
+ this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
493
+ }
494
+ getDefaultData() {
495
+ return {
496
+ titleText: "",
497
+ quadrant1Text: "",
498
+ quadrant2Text: "",
499
+ quadrant3Text: "",
500
+ quadrant4Text: "",
501
+ xAxisLeftText: "",
502
+ xAxisRightText: "",
503
+ yAxisBottomText: "",
504
+ yAxisTopText: "",
505
+ points: []
506
+ };
507
+ }
508
+ getDefaultConfig() {
509
+ var n, u, c, h, p, y, S, a, A, d, T, q, m, b, x, O, Y, G;
510
+ return {
511
+ showXAxis: !0,
512
+ showYAxis: !0,
513
+ showTitle: !0,
514
+ chartHeight: ((n = D.quadrantChart) == null ? void 0 : n.chartWidth) || 500,
515
+ chartWidth: ((u = D.quadrantChart) == null ? void 0 : u.chartHeight) || 500,
516
+ titlePadding: ((c = D.quadrantChart) == null ? void 0 : c.titlePadding) || 10,
517
+ titleFontSize: ((h = D.quadrantChart) == null ? void 0 : h.titleFontSize) || 20,
518
+ quadrantPadding: ((p = D.quadrantChart) == null ? void 0 : p.quadrantPadding) || 5,
519
+ xAxisLabelPadding: ((y = D.quadrantChart) == null ? void 0 : y.xAxisLabelPadding) || 5,
520
+ yAxisLabelPadding: ((S = D.quadrantChart) == null ? void 0 : S.yAxisLabelPadding) || 5,
521
+ xAxisLabelFontSize: ((a = D.quadrantChart) == null ? void 0 : a.xAxisLabelFontSize) || 16,
522
+ yAxisLabelFontSize: ((A = D.quadrantChart) == null ? void 0 : A.yAxisLabelFontSize) || 16,
523
+ quadrantLabelFontSize: ((d = D.quadrantChart) == null ? void 0 : d.quadrantLabelFontSize) || 16,
524
+ quadrantTextTopPadding: ((T = D.quadrantChart) == null ? void 0 : T.quadrantTextTopPadding) || 5,
525
+ pointTextPadding: ((q = D.quadrantChart) == null ? void 0 : q.pointTextPadding) || 5,
526
+ pointLabelFontSize: ((m = D.quadrantChart) == null ? void 0 : m.pointLabelFontSize) || 12,
527
+ pointRadius: ((b = D.quadrantChart) == null ? void 0 : b.pointRadius) || 5,
528
+ xAxisPosition: ((x = D.quadrantChart) == null ? void 0 : x.xAxisPosition) || "top",
529
+ yAxisPosition: ((O = D.quadrantChart) == null ? void 0 : O.yAxisPosition) || "left",
530
+ quadrantInternalBorderStrokeWidth: ((Y = D.quadrantChart) == null ? void 0 : Y.quadrantInternalBorderStrokeWidth) || 1,
531
+ quadrantExternalBorderStrokeWidth: ((G = D.quadrantChart) == null ? void 0 : G.quadrantExternalBorderStrokeWidth) || 2
532
+ };
533
+ }
534
+ getDefaultThemeConfig() {
535
+ return {
536
+ quadrant1Fill: V.quadrant1Fill,
537
+ quadrant2Fill: V.quadrant2Fill,
538
+ quadrant3Fill: V.quadrant3Fill,
539
+ quadrant4Fill: V.quadrant4Fill,
540
+ quadrant1TextFill: V.quadrant1TextFill,
541
+ quadrant2TextFill: V.quadrant2TextFill,
542
+ quadrant3TextFill: V.quadrant3TextFill,
543
+ quadrant4TextFill: V.quadrant4TextFill,
544
+ quadrantPointFill: V.quadrantPointFill,
545
+ quadrantPointTextFill: V.quadrantPointTextFill,
546
+ quadrantXAxisTextFill: V.quadrantXAxisTextFill,
547
+ quadrantYAxisTextFill: V.quadrantYAxisTextFill,
548
+ quadrantTitleFill: V.quadrantTitleFill,
549
+ quadrantInternalBorderStrokeFill: V.quadrantInternalBorderStrokeFill,
550
+ quadrantExternalBorderStrokeFill: V.quadrantExternalBorderStrokeFill
551
+ };
552
+ }
553
+ clear() {
554
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), At.info("clear called");
555
+ }
556
+ setData(n) {
557
+ this.data = { ...this.data, ...n };
558
+ }
559
+ addPoints(n) {
560
+ this.data.points = [...n, ...this.data.points];
561
+ }
562
+ addClass(n, u) {
563
+ this.classes.set(n, u);
564
+ }
565
+ setConfig(n) {
566
+ At.trace("setConfig called with: ", n), this.config = { ...this.config, ...n };
567
+ }
568
+ setThemeConfig(n) {
569
+ At.trace("setThemeConfig called with: ", n), this.themeConfig = { ...this.themeConfig, ...n };
570
+ }
571
+ calculateSpace(n, u, c, h) {
572
+ const p = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, y = {
573
+ top: n === "top" && u ? p : 0,
574
+ bottom: n === "bottom" && u ? p : 0
575
+ }, S = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, a = {
576
+ left: this.config.yAxisPosition === "left" && c ? S : 0,
577
+ right: this.config.yAxisPosition === "right" && c ? S : 0
578
+ }, A = this.config.titleFontSize + this.config.titlePadding * 2, d = {
579
+ top: h ? A : 0
580
+ }, T = this.config.quadrantPadding + a.left, q = this.config.quadrantPadding + y.top + d.top, m = this.config.chartWidth - this.config.quadrantPadding * 2 - a.left - a.right, b = this.config.chartHeight - this.config.quadrantPadding * 2 - y.top - y.bottom - d.top, x = m / 2, O = b / 2;
581
+ return {
582
+ xAxisSpace: y,
583
+ yAxisSpace: a,
584
+ titleSpace: d,
585
+ quadrantSpace: {
586
+ quadrantLeft: T,
587
+ quadrantTop: q,
588
+ quadrantWidth: m,
589
+ quadrantHalfWidth: x,
590
+ quadrantHeight: b,
591
+ quadrantHalfHeight: O
592
+ }
593
+ };
594
+ }
595
+ getAxisLabels(n, u, c, h) {
596
+ const { quadrantSpace: p, titleSpace: y } = h, {
597
+ quadrantHalfHeight: S,
598
+ quadrantHeight: a,
599
+ quadrantLeft: A,
600
+ quadrantHalfWidth: d,
601
+ quadrantTop: T,
602
+ quadrantWidth: q
603
+ } = p, m = !!this.data.xAxisRightText, b = !!this.data.yAxisTopText, x = [];
604
+ return this.data.xAxisLeftText && u && x.push({
605
+ text: this.data.xAxisLeftText,
606
+ fill: this.themeConfig.quadrantXAxisTextFill,
607
+ x: A + (m ? d / 2 : 0),
608
+ y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
609
+ fontSize: this.config.xAxisLabelFontSize,
610
+ verticalPos: m ? "center" : "left",
611
+ horizontalPos: "top",
612
+ rotation: 0
613
+ }), this.data.xAxisRightText && u && x.push({
614
+ text: this.data.xAxisRightText,
615
+ fill: this.themeConfig.quadrantXAxisTextFill,
616
+ x: A + d + (m ? d / 2 : 0),
617
+ y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
618
+ fontSize: this.config.xAxisLabelFontSize,
619
+ verticalPos: m ? "center" : "left",
620
+ horizontalPos: "top",
621
+ rotation: 0
622
+ }), this.data.yAxisBottomText && c && x.push({
623
+ text: this.data.yAxisBottomText,
624
+ fill: this.themeConfig.quadrantYAxisTextFill,
625
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + A + q + this.config.quadrantPadding,
626
+ y: T + a - (b ? S / 2 : 0),
627
+ fontSize: this.config.yAxisLabelFontSize,
628
+ verticalPos: b ? "center" : "left",
629
+ horizontalPos: "top",
630
+ rotation: -90
631
+ }), this.data.yAxisTopText && c && x.push({
632
+ text: this.data.yAxisTopText,
633
+ fill: this.themeConfig.quadrantYAxisTextFill,
634
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + A + q + this.config.quadrantPadding,
635
+ y: T + S - (b ? S / 2 : 0),
636
+ fontSize: this.config.yAxisLabelFontSize,
637
+ verticalPos: b ? "center" : "left",
638
+ horizontalPos: "top",
639
+ rotation: -90
640
+ }), x;
641
+ }
642
+ getQuadrants(n) {
643
+ const { quadrantSpace: u } = n, { quadrantHalfHeight: c, quadrantLeft: h, quadrantHalfWidth: p, quadrantTop: y } = u, S = [
644
+ {
645
+ text: {
646
+ text: this.data.quadrant1Text,
647
+ fill: this.themeConfig.quadrant1TextFill,
648
+ x: 0,
649
+ y: 0,
650
+ fontSize: this.config.quadrantLabelFontSize,
651
+ verticalPos: "center",
652
+ horizontalPos: "middle",
653
+ rotation: 0
654
+ },
655
+ x: h + p,
656
+ y,
657
+ width: p,
658
+ height: c,
659
+ fill: this.themeConfig.quadrant1Fill
660
+ },
661
+ {
662
+ text: {
663
+ text: this.data.quadrant2Text,
664
+ fill: this.themeConfig.quadrant2TextFill,
665
+ x: 0,
666
+ y: 0,
667
+ fontSize: this.config.quadrantLabelFontSize,
668
+ verticalPos: "center",
669
+ horizontalPos: "middle",
670
+ rotation: 0
671
+ },
672
+ x: h,
673
+ y,
674
+ width: p,
675
+ height: c,
676
+ fill: this.themeConfig.quadrant2Fill
677
+ },
678
+ {
679
+ text: {
680
+ text: this.data.quadrant3Text,
681
+ fill: this.themeConfig.quadrant3TextFill,
682
+ x: 0,
683
+ y: 0,
684
+ fontSize: this.config.quadrantLabelFontSize,
685
+ verticalPos: "center",
686
+ horizontalPos: "middle",
687
+ rotation: 0
688
+ },
689
+ x: h,
690
+ y: y + c,
691
+ width: p,
692
+ height: c,
693
+ fill: this.themeConfig.quadrant3Fill
694
+ },
695
+ {
696
+ text: {
697
+ text: this.data.quadrant4Text,
698
+ fill: this.themeConfig.quadrant4TextFill,
699
+ x: 0,
700
+ y: 0,
701
+ fontSize: this.config.quadrantLabelFontSize,
702
+ verticalPos: "center",
703
+ horizontalPos: "middle",
704
+ rotation: 0
705
+ },
706
+ x: h + p,
707
+ y: y + c,
708
+ width: p,
709
+ height: c,
710
+ fill: this.themeConfig.quadrant4Fill
711
+ }
712
+ ];
713
+ for (const a of S)
714
+ a.text.x = a.x + a.width / 2, this.data.points.length === 0 ? (a.text.y = a.y + a.height / 2, a.text.horizontalPos = "middle") : (a.text.y = a.y + this.config.quadrantTextTopPadding, a.text.horizontalPos = "top");
715
+ return S;
716
+ }
717
+ getQuadrantPoints(n) {
718
+ const { quadrantSpace: u } = n, { quadrantHeight: c, quadrantLeft: h, quadrantTop: p, quadrantWidth: y } = u, S = ee().domain([0, 1]).range([h, y + h]), a = ee().domain([0, 1]).range([c + p, p]);
719
+ return this.data.points.map((d) => {
720
+ const T = this.classes.get(d.className);
721
+ return T && (d = { ...T, ...d }), {
722
+ x: S(d.x),
723
+ y: a(d.y),
724
+ fill: d.color ?? this.themeConfig.quadrantPointFill,
725
+ radius: d.radius ?? this.config.pointRadius,
726
+ text: {
727
+ text: d.text,
728
+ fill: this.themeConfig.quadrantPointTextFill,
729
+ x: S(d.x),
730
+ y: a(d.y) + this.config.pointTextPadding,
731
+ verticalPos: "center",
732
+ horizontalPos: "top",
733
+ fontSize: this.config.pointLabelFontSize,
734
+ rotation: 0
735
+ },
736
+ strokeColor: d.strokeColor ?? this.themeConfig.quadrantPointFill,
737
+ strokeWidth: d.strokeWidth ?? "0px"
738
+ };
739
+ });
740
+ }
741
+ getBorders(n) {
742
+ const u = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: c } = n, {
743
+ quadrantHalfHeight: h,
744
+ quadrantHeight: p,
745
+ quadrantLeft: y,
746
+ quadrantHalfWidth: S,
747
+ quadrantTop: a,
748
+ quadrantWidth: A
749
+ } = c;
750
+ return [
751
+ // top border
752
+ {
753
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
754
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
755
+ x1: y - u,
756
+ y1: a,
757
+ x2: y + A + u,
758
+ y2: a
759
+ },
760
+ // right border
761
+ {
762
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
763
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
764
+ x1: y + A,
765
+ y1: a + u,
766
+ x2: y + A,
767
+ y2: a + p - u
768
+ },
769
+ // bottom border
770
+ {
771
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
772
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
773
+ x1: y - u,
774
+ y1: a + p,
775
+ x2: y + A + u,
776
+ y2: a + p
777
+ },
778
+ // left border
779
+ {
780
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
781
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
782
+ x1: y,
783
+ y1: a + u,
784
+ x2: y,
785
+ y2: a + p - u
786
+ },
787
+ // vertical inner border
788
+ {
789
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
790
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
791
+ x1: y + S,
792
+ y1: a + u,
793
+ x2: y + S,
794
+ y2: a + p - u
795
+ },
796
+ // horizontal inner border
797
+ {
798
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
799
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
800
+ x1: y + u,
801
+ y1: a + h,
802
+ x2: y + A - u,
803
+ y2: a + h
804
+ }
805
+ ];
806
+ }
807
+ getTitle(n) {
808
+ if (n)
809
+ return {
810
+ text: this.data.titleText,
811
+ fill: this.themeConfig.quadrantTitleFill,
812
+ fontSize: this.config.titleFontSize,
813
+ horizontalPos: "top",
814
+ verticalPos: "center",
815
+ rotation: 0,
816
+ y: this.config.titlePadding,
817
+ x: this.config.chartWidth / 2
818
+ };
819
+ }
820
+ build() {
821
+ const n = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), u = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), c = this.config.showTitle && !!this.data.titleText, h = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, p = this.calculateSpace(h, n, u, c);
822
+ return {
823
+ points: this.getQuadrantPoints(p),
824
+ quadrants: this.getQuadrants(p),
825
+ axisLabels: this.getAxisLabels(h, n, u, p),
826
+ borderLines: this.getBorders(p),
827
+ title: this.getTitle(c)
828
+ };
829
+ }
830
+ }, o(ht, "QuadrantBuilder"), ht), ct, _t = (ct = class extends Error {
831
+ constructor(n, u, c) {
832
+ super(`value for ${n} ${u} is invalid, please use a valid ${c}`), this.name = "InvalidStyleError";
833
+ }
834
+ }, o(ct, "InvalidStyleError"), ct);
835
+ function It(t) {
836
+ return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
837
+ }
838
+ o(It, "validateHexCode");
839
+ function ae(t) {
840
+ return !/^\d+$/.test(t);
841
+ }
842
+ o(ae, "validateNumber");
843
+ function ne(t) {
844
+ return !/^\d+px$/.test(t);
845
+ }
846
+ o(ne, "validateSizeInPixels");
847
+ var Ve = wt();
848
+ function Q(t) {
849
+ return Ae(t.trim(), Ve);
850
+ }
851
+ o(Q, "textSanitizer");
852
+ var z = new ze();
853
+ function se(t) {
854
+ z.setData({ quadrant1Text: Q(t.text) });
855
+ }
856
+ o(se, "setQuadrant1Text");
857
+ function re(t) {
858
+ z.setData({ quadrant2Text: Q(t.text) });
859
+ }
860
+ o(re, "setQuadrant2Text");
861
+ function oe(t) {
862
+ z.setData({ quadrant3Text: Q(t.text) });
863
+ }
864
+ o(oe, "setQuadrant3Text");
865
+ function le(t) {
866
+ z.setData({ quadrant4Text: Q(t.text) });
867
+ }
868
+ o(le, "setQuadrant4Text");
869
+ function he(t) {
870
+ z.setData({ xAxisLeftText: Q(t.text) });
871
+ }
872
+ o(he, "setXAxisLeftText");
873
+ function ce(t) {
874
+ z.setData({ xAxisRightText: Q(t.text) });
875
+ }
876
+ o(ce, "setXAxisRightText");
877
+ function de(t) {
878
+ z.setData({ yAxisTopText: Q(t.text) });
879
+ }
880
+ o(de, "setYAxisTopText");
881
+ function ue(t) {
882
+ z.setData({ yAxisBottomText: Q(t.text) });
883
+ }
884
+ o(ue, "setYAxisBottomText");
885
+ function kt(t) {
886
+ const n = {};
887
+ for (const u of t) {
888
+ const [c, h] = u.trim().split(/\s*:\s*/);
889
+ if (c === "radius") {
890
+ if (ae(h))
891
+ throw new _t(c, h, "number");
892
+ n.radius = parseInt(h);
893
+ } else if (c === "color") {
894
+ if (It(h))
895
+ throw new _t(c, h, "hex code");
896
+ n.color = h;
897
+ } else if (c === "stroke-color") {
898
+ if (It(h))
899
+ throw new _t(c, h, "hex code");
900
+ n.strokeColor = h;
901
+ } else if (c === "stroke-width") {
902
+ if (ne(h))
903
+ throw new _t(c, h, "number of pixels (eg. 10px)");
904
+ n.strokeWidth = h;
905
+ } else
906
+ throw new Error(`style named ${c} is not supported.`);
907
+ }
908
+ return n;
909
+ }
910
+ o(kt, "parseStyles");
911
+ function xe(t, n, u, c, h) {
912
+ const p = kt(h);
913
+ z.addPoints([
914
+ {
915
+ x: u,
916
+ y: c,
917
+ text: Q(t.text),
918
+ className: n,
919
+ ...p
920
+ }
921
+ ]);
922
+ }
923
+ o(xe, "addPoint");
924
+ function fe(t, n) {
925
+ z.addClass(t, kt(n));
926
+ }
927
+ o(fe, "addClass");
928
+ function ge(t) {
929
+ z.setConfig({ chartWidth: t });
930
+ }
931
+ o(ge, "setWidth");
932
+ function pe(t) {
933
+ z.setConfig({ chartHeight: t });
934
+ }
935
+ o(pe, "setHeight");
936
+ function ye() {
937
+ const t = wt(), { themeVariables: n, quadrantChart: u } = t;
938
+ return u && z.setConfig(u), z.setThemeConfig({
939
+ quadrant1Fill: n.quadrant1Fill,
940
+ quadrant2Fill: n.quadrant2Fill,
941
+ quadrant3Fill: n.quadrant3Fill,
942
+ quadrant4Fill: n.quadrant4Fill,
943
+ quadrant1TextFill: n.quadrant1TextFill,
944
+ quadrant2TextFill: n.quadrant2TextFill,
945
+ quadrant3TextFill: n.quadrant3TextFill,
946
+ quadrant4TextFill: n.quadrant4TextFill,
947
+ quadrantPointFill: n.quadrantPointFill,
948
+ quadrantPointTextFill: n.quadrantPointTextFill,
949
+ quadrantXAxisTextFill: n.quadrantXAxisTextFill,
950
+ quadrantYAxisTextFill: n.quadrantYAxisTextFill,
951
+ quadrantExternalBorderStrokeFill: n.quadrantExternalBorderStrokeFill,
952
+ quadrantInternalBorderStrokeFill: n.quadrantInternalBorderStrokeFill,
953
+ quadrantTitleFill: n.quadrantTitleFill
954
+ }), z.setData({ titleText: ie() }), z.build();
955
+ }
956
+ o(ye, "getQuadrantData");
957
+ var Ie = /* @__PURE__ */ o(function() {
958
+ z.clear(), Le();
959
+ }, "clear"), we = {
960
+ setWidth: ge,
961
+ setHeight: pe,
962
+ setQuadrant1Text: se,
963
+ setQuadrant2Text: re,
964
+ setQuadrant3Text: oe,
965
+ setQuadrant4Text: le,
966
+ setXAxisLeftText: he,
967
+ setXAxisRightText: ce,
968
+ setYAxisTopText: de,
969
+ setYAxisBottomText: ue,
970
+ parseStyles: kt,
971
+ addPoint: xe,
972
+ addClass: fe,
973
+ getQuadrantData: ye,
974
+ clear: Ie,
975
+ setAccTitle: ke,
976
+ getAccTitle: Fe,
977
+ setDiagramTitle: Pe,
978
+ getDiagramTitle: ie,
979
+ getAccDescription: ve,
980
+ setAccDescription: Ce
981
+ }, Re = /* @__PURE__ */ o((t, n, u, c) => {
982
+ var xt, ft, gt;
983
+ function h(i) {
984
+ return i === "top" ? "hanging" : "middle";
985
+ }
986
+ o(h, "getDominantBaseLine");
987
+ function p(i) {
988
+ return i === "left" ? "start" : "middle";
989
+ }
990
+ o(p, "getTextAnchor");
991
+ function y(i) {
992
+ return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
993
+ }
994
+ o(y, "getTransformation");
995
+ const S = wt();
996
+ At.debug(`Rendering quadrant chart
997
+ ` + t);
998
+ const a = S.securityLevel;
999
+ let A;
1000
+ a === "sandbox" && (A = zt("#i" + n));
1001
+ const T = (a === "sandbox" ? zt(A.nodes()[0].contentDocument.body) : zt("body")).select(`[id="${n}"]`), q = T.append("g").attr("class", "main"), m = ((xt = S.quadrantChart) == null ? void 0 : xt.chartWidth) ?? 500, b = ((ft = S.quadrantChart) == null ? void 0 : ft.chartHeight) ?? 500;
1002
+ Ee(T, b, m, ((gt = S.quadrantChart) == null ? void 0 : gt.useMaxWidth) ?? !0), T.attr("viewBox", "0 0 " + m + " " + b), c.db.setHeight(b), c.db.setWidth(m);
1003
+ const x = c.db.getQuadrantData(), O = q.append("g").attr("class", "quadrants"), Y = q.append("g").attr("class", "border"), G = q.append("g").attr("class", "data-points"), yt = q.append("g").attr("class", "labels"), Tt = q.append("g").attr("class", "title");
1004
+ x.title && Tt.append("text").attr("x", 0).attr("y", 0).attr("fill", x.title.fill).attr("font-size", x.title.fontSize).attr("dominant-baseline", h(x.title.horizontalPos)).attr("text-anchor", p(x.title.verticalPos)).attr("transform", y(x.title)).text(x.title.text), x.borderLines && Y.selectAll("line").data(x.borderLines).enter().append("line").attr("x1", (i) => i.x1).attr("y1", (i) => i.y1).attr("x2", (i) => i.x2).attr("y2", (i) => i.y2).style("stroke", (i) => i.strokeFill).style("stroke-width", (i) => i.strokeWidth);
1005
+ const dt = O.selectAll("g.quadrant").data(x.quadrants).enter().append("g").attr("class", "quadrant");
1006
+ dt.append("rect").attr("x", (i) => i.x).attr("y", (i) => i.y).attr("width", (i) => i.width).attr("height", (i) => i.height).attr("fill", (i) => i.fill), dt.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1007
+ "dominant-baseline",
1008
+ (i) => h(i.text.horizontalPos)
1009
+ ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text)).text((i) => i.text.text), yt.selectAll("g.label").data(x.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((i) => i.text).attr("fill", (i) => i.fill).attr("font-size", (i) => i.fontSize).attr("dominant-baseline", (i) => h(i.horizontalPos)).attr("text-anchor", (i) => p(i.verticalPos)).attr("transform", (i) => y(i));
1010
+ const ut = G.selectAll("g.data-point").data(x.points).enter().append("g").attr("class", "data-point");
1011
+ ut.append("circle").attr("cx", (i) => i.x).attr("cy", (i) => i.y).attr("r", (i) => i.radius).attr("fill", (i) => i.fill).attr("stroke", (i) => i.strokeColor).attr("stroke-width", (i) => i.strokeWidth), ut.append("text").attr("x", 0).attr("y", 0).text((i) => i.text.text).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1012
+ "dominant-baseline",
1013
+ (i) => h(i.text.horizontalPos)
1014
+ ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text));
1015
+ }, "draw"), Be = {
1016
+ draw: Re
1017
+ }, Qe = {
1018
+ parser: De,
1019
+ db: we,
1020
+ renderer: Be,
1021
+ styles: /* @__PURE__ */ o(() => "", "styles")
1022
+ };
1023
+ export {
1024
+ Qe as diagram
1025
+ };