ranui 0.2.1-alpha.1 → 0.2.1-alpha.3

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 (310) hide show
  1. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
  2. package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
  3. package/dist/arc-D25LhgTs.cjs +1 -0
  4. package/dist/arc-DRPGof21.js +82 -0
  5. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
  6. package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
  7. package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
  8. package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
  9. package/dist/array-By5736M5.js +7 -0
  10. package/dist/array-C3cbN3GY.cjs +1 -0
  11. package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
  12. package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
  13. package/dist/builder.d.ts +2 -2
  14. package/dist/builder.js +39 -34
  15. package/dist/{builtin-D9djWkCE.js → builtin-BkM0LLof.js} +83 -76
  16. package/dist/button-D0zcnKnG.js +117 -0
  17. package/dist/button.js +1 -1
  18. package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
  19. package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
  20. package/dist/{card-CqJa4Q_v.js → card-CygMndQS.js} +2 -2
  21. package/dist/card.js +1 -1
  22. package/dist/channel-C9WSNwcS.cjs +1 -0
  23. package/dist/channel-k5-UxdcV.js +5 -0
  24. package/dist/{checkbox-CThC9-vy.js → checkbox-D5om9aJO.js} +10 -10
  25. package/dist/checkbox.js +1 -1
  26. package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
  27. package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
  28. package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
  29. package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
  30. package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
  31. package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
  32. package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
  33. package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
  34. package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
  35. package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
  36. package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
  37. package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
  38. package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
  39. package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
  40. package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
  41. package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
  42. package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
  43. package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
  44. package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
  45. package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
  46. package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
  47. package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
  48. package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
  49. package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
  50. package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
  51. package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
  52. package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
  53. package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
  54. package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
  55. package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
  56. package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
  57. package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
  58. package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
  59. package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
  60. package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
  61. package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
  62. package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
  63. package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
  64. package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
  65. package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
  66. package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
  67. package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
  68. package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
  69. package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
  70. package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
  71. package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
  72. package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
  73. package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
  74. package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
  75. package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
  76. package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
  77. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
  78. package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
  79. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
  80. package/dist/{colorpicker-XNxDRcQ-.js → colorpicker-qWnaTlYX.js} +8 -8
  81. package/dist/colorpicker.js +1 -1
  82. package/dist/components/glass/index.d.ts +52 -0
  83. package/dist/components/icon/core-icons.d.ts +13 -0
  84. package/dist/components/icon/index.d.ts +1 -1
  85. package/dist/components/mermaid/index.d.ts +52 -0
  86. package/dist/components/modal/index.d.ts +9 -0
  87. package/dist/content-Rry-U6ir.js +39 -0
  88. package/dist/content.js +5 -0
  89. package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
  90. package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
  91. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
  92. package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
  93. package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
  94. package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
  95. package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
  96. package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
  97. package/dist/dagre-D1-W1tt6.cjs +1 -0
  98. package/dist/dagre-D8GLTwuf.js +1578 -0
  99. package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
  100. package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
  101. package/dist/defaultLocale-0M_kMcEH.js +184 -0
  102. package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
  103. package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
  104. package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
  105. package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
  106. package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
  107. package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
  108. package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
  109. package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
  110. package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
  111. package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
  112. package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
  113. package/dist/dist-C0Fwsvsq.js +70 -0
  114. package/dist/dist-C20XxSsP.cjs +1 -0
  115. package/dist/{dropdown-CCvsambb.js → dropdown-DzdAR1nI.js} +4 -4
  116. package/dist/dropdown.js +1 -1
  117. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
  118. package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
  119. package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
  120. package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
  121. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
  122. package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
  123. package/dist/factory-BkvRcCOx.js +482 -0
  124. package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
  125. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
  126. package/dist/{form-Ceq3uJzz.js → form-CUJpeQ7Q.js} +5 -5
  127. package/dist/form.js +1 -1
  128. package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
  129. package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
  130. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
  131. package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
  132. package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
  133. package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
  134. package/dist/glass-Bj1Zf8Hy.js +115 -0
  135. package/dist/glass.js +5 -0
  136. package/dist/graphlib-CCKThIKP.js +1104 -0
  137. package/dist/graphlib-Du-578Js.cjs +1 -0
  138. package/dist/{icon-C_ENrJ3F.js → icon-CtlZJISZ.js} +77 -25
  139. package/dist/icon.js +1 -1
  140. package/dist/icons.js +1 -1
  141. package/dist/iife/button.iife.js +1 -1
  142. package/dist/iife/card.iife.js +1 -1
  143. package/dist/iife/checkbox.iife.js +1 -1
  144. package/dist/iife/colorpicker.iife.js +2 -2
  145. package/dist/iife/content.iife.js +1 -0
  146. package/dist/iife/dropdown.iife.js +1 -1
  147. package/dist/iife/form.iife.js +1 -1
  148. package/dist/iife/glass.iife.js +1 -0
  149. package/dist/iife/icon.iife.js +1 -1
  150. package/dist/iife/image.iife.js +1 -1
  151. package/dist/iife/input.iife.js +1 -1
  152. package/dist/iife/loading.iife.js +1 -1
  153. package/dist/iife/math.iife.js +14 -14
  154. package/dist/iife/mermaid.iife.js +3535 -0
  155. package/dist/iife/message.iife.js +1 -1
  156. package/dist/iife/modal.iife.js +1 -1
  157. package/dist/iife/player.iife.js +8 -8
  158. package/dist/iife/popover.iife.js +1 -1
  159. package/dist/iife/progress.iife.js +1 -1
  160. package/dist/iife/radar.iife.js +1 -1
  161. package/dist/iife/route.iife.js +1 -1
  162. package/dist/iife/router.iife.js +1 -1
  163. package/dist/iife/scratch.iife.js +1 -1
  164. package/dist/iife/section.iife.js +1 -1
  165. package/dist/iife/select.iife.js +1 -1
  166. package/dist/iife/skeleton.iife.js +1 -1
  167. package/dist/iife/tab.iife.js +1 -1
  168. package/dist/iife/tabpane.iife.js +1 -1
  169. package/dist/{image-B7MBI5n_.js → image-ILZNlaGc.js} +4 -4
  170. package/dist/image.js +1 -1
  171. package/dist/index.cjs +38 -37
  172. package/dist/index.d.ts +8 -0
  173. package/dist/index.iife.js +3623 -88
  174. package/dist/index.js +88 -84
  175. package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
  176. package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
  177. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
  178. package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
  179. package/dist/init-1VpIn1S3.js +16 -0
  180. package/dist/init-CbDwVtpO.cjs +1 -0
  181. package/dist/{input-RNqdEHPf.js → input-CDH6zY9I.js} +6 -6
  182. package/dist/input.js +1 -1
  183. package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
  184. package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
  185. package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
  186. package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
  187. package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
  188. package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
  189. package/dist/katex-Cq3Y8cmK.cjs +257 -0
  190. package/dist/katex-Pg2EqTH0.js +23485 -0
  191. package/dist/line-BIPmUVxO.js +33 -0
  192. package/dist/line-CAB5QHC6.cjs +1 -0
  193. package/dist/linear-B2AM4ZBe.js +259 -0
  194. package/dist/linear-CSAfNEpl.cjs +1 -0
  195. package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
  196. package/dist/link.js +1 -1
  197. package/dist/{loading-B9MFI03l.js → loading-DJWGih1g.js} +4 -4
  198. package/dist/loading.js +1 -1
  199. package/dist/map-BC2bk_rV.cjs +1 -0
  200. package/dist/map-DMSWkcq6.js +208 -0
  201. package/dist/{math-CudIwEXZ.js → math-DRmkEDSQ.js} +4 -4
  202. package/dist/math.js +1 -1
  203. package/dist/mermaid-CMhm7npE.js +261 -0
  204. package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
  205. package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
  206. package/dist/mermaid.core-B2d5lQW2.js +1085 -0
  207. package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
  208. package/dist/mermaid.js +5 -0
  209. package/dist/{message-DW7qWpEm.js → message-BpYJBvYn.js} +6 -6
  210. package/dist/message.js +1 -1
  211. package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
  212. package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
  213. package/dist/{modal-CrvGKL2B.js → modal-BeQlDYDP.js} +40 -24
  214. package/dist/modal.js +1 -1
  215. package/dist/ordinal-BMN81JG2.js +64 -0
  216. package/dist/ordinal-BplLHIij.cjs +1 -0
  217. package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
  218. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
  219. package/dist/path-Bja5PoYn.js +82 -0
  220. package/dist/path-DmfWsuKi.cjs +1 -0
  221. package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
  222. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
  223. package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
  224. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
  225. package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
  226. package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
  227. package/dist/{player-BKQaaT7o.js → player-CQ4e3Yeo.js} +196 -195
  228. package/dist/player.js +1 -1
  229. package/dist/{popover-CvYIVgUS.js → popover-eZMnL1F3.js} +22 -54
  230. package/dist/popover.js +1 -1
  231. package/dist/{progress-C6jctsFH.js → progress-DyHgW4Ep.js} +5 -5
  232. package/dist/progress.js +1 -1
  233. package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
  234. package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
  235. package/dist/{radar-BUb4EzmG.js → radar-D21Rccap.js} +5 -5
  236. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
  237. package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
  238. package/dist/radar.js +1 -1
  239. package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
  240. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
  241. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
  242. package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
  243. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
  244. package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
  245. package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
  246. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
  247. package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
  248. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
  249. package/dist/ranui.css +1 -1
  250. package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
  251. package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
  252. package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
  253. package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
  254. package/dist/rough.esm-BWe9E0Nz.js +1387 -0
  255. package/dist/rough.esm-BfSi6CZE.cjs +1 -0
  256. package/dist/{route-Djrf9UR_.js → route-pR5P4ann.js} +10 -10
  257. package/dist/route.js +1 -1
  258. package/dist/{router-BU2KhtxV.js → router-CewzSH7O.js} +5 -5
  259. package/dist/router.js +1 -1
  260. package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
  261. package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
  262. package/dist/{scratch-CO4I2dIa.js → scratch-BFVsgl-7.js} +2 -2
  263. package/dist/scratch.js +1 -1
  264. package/dist/{section-CsUkp8bv.js → section-DSPCsIxv.js} +2 -2
  265. package/dist/section.js +1 -1
  266. package/dist/{select-Dn26ajJZ.js → select-B58nMfB1.js} +13 -13
  267. package/dist/select.js +1 -1
  268. package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
  269. package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
  270. package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
  271. package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
  272. package/dist/{skeleton-BuMLhvzQ.js → skeleton-DoHYMsTn.js} +5 -5
  273. package/dist/skeleton.js +1 -1
  274. package/dist/src-C9EhKhbk.cjs +1 -0
  275. package/dist/src-DtRLxcYO.js +2104 -0
  276. package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
  277. package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
  278. package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
  279. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
  280. package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
  281. package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
  282. package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
  283. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
  284. package/dist/{tab-40fDkuox.js → tab-BRPdZ9Ws.js} +5 -5
  285. package/dist/tab.js +1 -1
  286. package/dist/{tabpane-F4Pd7JtC.js → tabpane-Owf72hw_.js} +5 -5
  287. package/dist/tabpane.js +1 -1
  288. package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
  289. package/dist/theme-switch.js +1 -1
  290. package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
  291. package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
  292. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
  293. package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
  294. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
  295. package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
  296. package/dist/utils/builder/core.d.ts +133 -3
  297. package/dist/utils/builder/index.d.ts +1 -1
  298. package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
  299. package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
  300. package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
  301. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
  302. package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
  303. package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
  304. package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
  305. package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
  306. package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
  307. package/docs/BUILDER.md +155 -2
  308. package/package.json +7 -1
  309. package/dist/button-BfYw0fes.js +0 -117
  310. package/dist/factory-DCrO37si.js +0 -334
@@ -0,0 +1,2058 @@
1
+ import { n as r } from "./chunk-Y2CYZVJY-0JxdZxki.js";
2
+ import { m as Tt, p as Pt } from "./src-DtRLxcYO.js";
3
+ import { D as _e, H as Ae, K as ke, U as Fe, a as Pe, c as ve, f as z, v as Ce, w as ae, x as Lt, y as Le, z as Ee } from "./chunk-WYO6CB5R-DDHkKowO.js";
4
+ import { t as ie } from "./linear-B2AM4ZBe.js";
5
+ var vt = (function() {
6
+ var t = /* @__PURE__ */ r(function(s, c, b, u) {
7
+ for (b = b || {}, u = s.length; u--; b[s[u]] = c) ;
8
+ return b;
9
+ }, "o"), o = [1, 3], T = [1, 4], f = [1, 5], l = [1, 6], d = [1, 7], S = [
10
+ 1,
11
+ 4,
12
+ 5,
13
+ 10,
14
+ 12,
15
+ 13,
16
+ 14,
17
+ 15,
18
+ 18,
19
+ 25,
20
+ 35,
21
+ 37,
22
+ 39,
23
+ 41,
24
+ 42,
25
+ 48,
26
+ 50,
27
+ 51,
28
+ 52,
29
+ 53,
30
+ 54,
31
+ 55,
32
+ 56,
33
+ 57,
34
+ 60,
35
+ 61,
36
+ 63,
37
+ 64,
38
+ 65,
39
+ 66,
40
+ 67
41
+ ], h = [
42
+ 1,
43
+ 4,
44
+ 5,
45
+ 10,
46
+ 12,
47
+ 13,
48
+ 14,
49
+ 15,
50
+ 18,
51
+ 25,
52
+ 28,
53
+ 35,
54
+ 37,
55
+ 39,
56
+ 41,
57
+ 42,
58
+ 48,
59
+ 50,
60
+ 51,
61
+ 52,
62
+ 53,
63
+ 54,
64
+ 55,
65
+ 56,
66
+ 57,
67
+ 60,
68
+ 61,
69
+ 63,
70
+ 64,
71
+ 65,
72
+ 66,
73
+ 67
74
+ ], n = [
75
+ 55,
76
+ 56,
77
+ 57
78
+ ], I = [2, 36], m = [1, 37], q = [1, 36], p = [1, 38], y = [1, 35], g = [1, 43], _ = [1, 41], A = [1, 45], ct = [1, 14], dt = [1, 23], ut = [1, 18], lt = [1, 19], ot = [1, 20], e = [1, 21], Et = [1, 22], Dt = [1, 24], zt = [1, 25], Vt = [1, 26], It = [1, 27], wt = [1, 28], Bt = [1, 29], Q = [1, 32], O = [1, 33], F = [1, 34], P = [1, 39], v = [1, 40], C = [1, 42], L = [1, 44], X = [1, 63], M = [1, 62], E = [
79
+ 4,
80
+ 5,
81
+ 8,
82
+ 10,
83
+ 12,
84
+ 13,
85
+ 14,
86
+ 15,
87
+ 18,
88
+ 44,
89
+ 47,
90
+ 49,
91
+ 55,
92
+ 56,
93
+ 57,
94
+ 63,
95
+ 64,
96
+ 65,
97
+ 66,
98
+ 67
99
+ ], Rt = [1, 66], Nt = [1, 67], Wt = [1, 68], Ut = [1, 69], Qt = [1, 70], Ot = [1, 71], Ht = [1, 72], Xt = [1, 73], Mt = [1, 74], Yt = [1, 75], jt = [1, 76], Gt = [1, 77], R = [
100
+ 4,
101
+ 5,
102
+ 6,
103
+ 7,
104
+ 8,
105
+ 9,
106
+ 10,
107
+ 11,
108
+ 12,
109
+ 13,
110
+ 14,
111
+ 15,
112
+ 18
113
+ ], K = [1, 91], Z = [1, 92], J = [1, 93], $ = [1, 100], tt = [1, 94], et = [1, 97], it = [1, 95], at = [1, 96], nt = [1, 98], st = [1, 99], qt = [1, 103], Kt = [
114
+ 10,
115
+ 55,
116
+ 56,
117
+ 57
118
+ ], N = [
119
+ 4,
120
+ 5,
121
+ 6,
122
+ 8,
123
+ 10,
124
+ 11,
125
+ 13,
126
+ 17,
127
+ 18,
128
+ 19,
129
+ 20,
130
+ 55,
131
+ 56,
132
+ 57
133
+ ], bt = {
134
+ trace: /* @__PURE__ */ r(function() {
135
+ }, "trace"),
136
+ yy: {},
137
+ symbols_: {
138
+ error: 2,
139
+ idStringToken: 3,
140
+ ALPHA: 4,
141
+ NUM: 5,
142
+ NODE_STRING: 6,
143
+ DOWN: 7,
144
+ MINUS: 8,
145
+ DEFAULT: 9,
146
+ COMMA: 10,
147
+ COLON: 11,
148
+ AMP: 12,
149
+ BRKT: 13,
150
+ MULT: 14,
151
+ UNICODE_TEXT: 15,
152
+ styleComponent: 16,
153
+ UNIT: 17,
154
+ SPACE: 18,
155
+ STYLE: 19,
156
+ PCT: 20,
157
+ idString: 21,
158
+ style: 22,
159
+ stylesOpt: 23,
160
+ classDefStatement: 24,
161
+ CLASSDEF: 25,
162
+ start: 26,
163
+ eol: 27,
164
+ QUADRANT: 28,
165
+ document: 29,
166
+ line: 30,
167
+ statement: 31,
168
+ axisDetails: 32,
169
+ quadrantDetails: 33,
170
+ points: 34,
171
+ title: 35,
172
+ title_value: 36,
173
+ acc_title: 37,
174
+ acc_title_value: 38,
175
+ acc_descr: 39,
176
+ acc_descr_value: 40,
177
+ acc_descr_multiline_value: 41,
178
+ section: 42,
179
+ text: 43,
180
+ point_start: 44,
181
+ point_x: 45,
182
+ point_y: 46,
183
+ class_name: 47,
184
+ "X-AXIS": 48,
185
+ "AXIS-TEXT-DELIMITER": 49,
186
+ "Y-AXIS": 50,
187
+ QUADRANT_1: 51,
188
+ QUADRANT_2: 52,
189
+ QUADRANT_3: 53,
190
+ QUADRANT_4: 54,
191
+ NEWLINE: 55,
192
+ SEMI: 56,
193
+ EOF: 57,
194
+ alphaNumToken: 58,
195
+ textNoTagsToken: 59,
196
+ STR: 60,
197
+ MD_STR: 61,
198
+ alphaNum: 62,
199
+ PUNCTUATION: 63,
200
+ PLUS: 64,
201
+ EQUALS: 65,
202
+ DOT: 66,
203
+ UNDERSCORE: 67,
204
+ $accept: 0,
205
+ $end: 1
206
+ },
207
+ terminals_: {
208
+ 2: "error",
209
+ 4: "ALPHA",
210
+ 5: "NUM",
211
+ 6: "NODE_STRING",
212
+ 7: "DOWN",
213
+ 8: "MINUS",
214
+ 9: "DEFAULT",
215
+ 10: "COMMA",
216
+ 11: "COLON",
217
+ 12: "AMP",
218
+ 13: "BRKT",
219
+ 14: "MULT",
220
+ 15: "UNICODE_TEXT",
221
+ 17: "UNIT",
222
+ 18: "SPACE",
223
+ 19: "STYLE",
224
+ 20: "PCT",
225
+ 25: "CLASSDEF",
226
+ 28: "QUADRANT",
227
+ 35: "title",
228
+ 36: "title_value",
229
+ 37: "acc_title",
230
+ 38: "acc_title_value",
231
+ 39: "acc_descr",
232
+ 40: "acc_descr_value",
233
+ 41: "acc_descr_multiline_value",
234
+ 42: "section",
235
+ 44: "point_start",
236
+ 45: "point_x",
237
+ 46: "point_y",
238
+ 47: "class_name",
239
+ 48: "X-AXIS",
240
+ 49: "AXIS-TEXT-DELIMITER",
241
+ 50: "Y-AXIS",
242
+ 51: "QUADRANT_1",
243
+ 52: "QUADRANT_2",
244
+ 53: "QUADRANT_3",
245
+ 54: "QUADRANT_4",
246
+ 55: "NEWLINE",
247
+ 56: "SEMI",
248
+ 57: "EOF",
249
+ 60: "STR",
250
+ 61: "MD_STR",
251
+ 63: "PUNCTUATION",
252
+ 64: "PLUS",
253
+ 65: "EQUALS",
254
+ 66: "DOT",
255
+ 67: "UNDERSCORE"
256
+ },
257
+ productions_: [
258
+ 0,
259
+ [3, 1],
260
+ [3, 1],
261
+ [3, 1],
262
+ [3, 1],
263
+ [3, 1],
264
+ [3, 1],
265
+ [3, 1],
266
+ [3, 1],
267
+ [3, 1],
268
+ [3, 1],
269
+ [3, 1],
270
+ [3, 1],
271
+ [16, 1],
272
+ [16, 1],
273
+ [16, 1],
274
+ [16, 1],
275
+ [16, 1],
276
+ [16, 1],
277
+ [16, 1],
278
+ [16, 1],
279
+ [16, 1],
280
+ [16, 1],
281
+ [21, 1],
282
+ [21, 2],
283
+ [22, 1],
284
+ [22, 2],
285
+ [23, 1],
286
+ [23, 3],
287
+ [24, 5],
288
+ [26, 2],
289
+ [26, 2],
290
+ [26, 2],
291
+ [29, 0],
292
+ [29, 2],
293
+ [30, 2],
294
+ [31, 0],
295
+ [31, 1],
296
+ [31, 2],
297
+ [31, 1],
298
+ [31, 1],
299
+ [31, 1],
300
+ [31, 2],
301
+ [31, 2],
302
+ [31, 2],
303
+ [31, 1],
304
+ [31, 1],
305
+ [34, 4],
306
+ [34, 5],
307
+ [34, 5],
308
+ [34, 6],
309
+ [32, 4],
310
+ [32, 3],
311
+ [32, 2],
312
+ [32, 4],
313
+ [32, 3],
314
+ [32, 2],
315
+ [33, 2],
316
+ [33, 2],
317
+ [33, 2],
318
+ [33, 2],
319
+ [27, 1],
320
+ [27, 1],
321
+ [27, 1],
322
+ [43, 1],
323
+ [43, 2],
324
+ [43, 1],
325
+ [43, 1],
326
+ [62, 1],
327
+ [62, 2],
328
+ [58, 1],
329
+ [58, 1],
330
+ [58, 1],
331
+ [58, 1],
332
+ [58, 1],
333
+ [58, 1],
334
+ [58, 1],
335
+ [58, 1],
336
+ [58, 1],
337
+ [58, 1],
338
+ [58, 1],
339
+ [58, 1],
340
+ [59, 1],
341
+ [59, 1],
342
+ [59, 1]
343
+ ],
344
+ performAction: /* @__PURE__ */ r(function(c, b, u, x, k, i, ht) {
345
+ var a = i.length - 1;
346
+ switch (k) {
347
+ case 23:
348
+ this.$ = i[a];
349
+ break;
350
+ case 24:
351
+ this.$ = i[a - 1] + "" + i[a];
352
+ break;
353
+ case 26:
354
+ this.$ = i[a - 1] + i[a];
355
+ break;
356
+ case 27:
357
+ this.$ = [i[a].trim()];
358
+ break;
359
+ case 28:
360
+ i[a - 2].push(i[a].trim()), this.$ = i[a - 2];
361
+ break;
362
+ case 29:
363
+ this.$ = i[a - 4], x.addClass(i[a - 2], i[a]);
364
+ break;
365
+ case 37:
366
+ this.$ = [];
367
+ break;
368
+ case 42:
369
+ this.$ = i[a].trim(), x.setDiagramTitle(this.$);
370
+ break;
371
+ case 43:
372
+ this.$ = i[a].trim(), x.setAccTitle(this.$);
373
+ break;
374
+ case 44:
375
+ case 45:
376
+ this.$ = i[a].trim(), x.setAccDescription(this.$);
377
+ break;
378
+ case 46:
379
+ x.addSection(i[a].substr(8)), this.$ = i[a].substr(8);
380
+ break;
381
+ case 47:
382
+ x.addPoint(i[a - 3], "", i[a - 1], i[a], []);
383
+ break;
384
+ case 48:
385
+ x.addPoint(i[a - 4], i[a - 3], i[a - 1], i[a], []);
386
+ break;
387
+ case 49:
388
+ x.addPoint(i[a - 4], "", i[a - 2], i[a - 1], i[a]);
389
+ break;
390
+ case 50:
391
+ x.addPoint(i[a - 5], i[a - 4], i[a - 2], i[a - 1], i[a]);
392
+ break;
393
+ case 51:
394
+ x.setXAxisLeftText(i[a - 2]), x.setXAxisRightText(i[a]);
395
+ break;
396
+ case 52:
397
+ i[a - 1].text += " ⟶ ", x.setXAxisLeftText(i[a - 1]);
398
+ break;
399
+ case 53:
400
+ x.setXAxisLeftText(i[a]);
401
+ break;
402
+ case 54:
403
+ x.setYAxisBottomText(i[a - 2]), x.setYAxisTopText(i[a]);
404
+ break;
405
+ case 55:
406
+ i[a - 1].text += " ⟶ ", x.setYAxisBottomText(i[a - 1]);
407
+ break;
408
+ case 56:
409
+ x.setYAxisBottomText(i[a]);
410
+ break;
411
+ case 57:
412
+ x.setQuadrant1Text(i[a]);
413
+ break;
414
+ case 58:
415
+ x.setQuadrant2Text(i[a]);
416
+ break;
417
+ case 59:
418
+ x.setQuadrant3Text(i[a]);
419
+ break;
420
+ case 60:
421
+ x.setQuadrant4Text(i[a]);
422
+ break;
423
+ case 64:
424
+ this.$ = {
425
+ text: i[a],
426
+ type: "text"
427
+ };
428
+ break;
429
+ case 65:
430
+ this.$ = {
431
+ text: i[a - 1].text + "" + i[a],
432
+ type: i[a - 1].type
433
+ };
434
+ break;
435
+ case 66:
436
+ this.$ = {
437
+ text: i[a],
438
+ type: "text"
439
+ };
440
+ break;
441
+ case 67:
442
+ this.$ = {
443
+ text: i[a],
444
+ type: "markdown"
445
+ };
446
+ break;
447
+ case 68:
448
+ this.$ = i[a];
449
+ break;
450
+ case 69:
451
+ this.$ = i[a - 1] + "" + i[a];
452
+ break;
453
+ }
454
+ }, "anonymous"),
455
+ table: [
456
+ {
457
+ 18: o,
458
+ 26: 1,
459
+ 27: 2,
460
+ 28: T,
461
+ 55: f,
462
+ 56: l,
463
+ 57: d
464
+ },
465
+ { 1: [3] },
466
+ {
467
+ 18: o,
468
+ 26: 8,
469
+ 27: 2,
470
+ 28: T,
471
+ 55: f,
472
+ 56: l,
473
+ 57: d
474
+ },
475
+ {
476
+ 18: o,
477
+ 26: 9,
478
+ 27: 2,
479
+ 28: T,
480
+ 55: f,
481
+ 56: l,
482
+ 57: d
483
+ },
484
+ t(S, [2, 33], { 29: 10 }),
485
+ t(h, [2, 61]),
486
+ t(h, [2, 62]),
487
+ t(h, [2, 63]),
488
+ { 1: [2, 30] },
489
+ { 1: [2, 31] },
490
+ t(n, I, {
491
+ 30: 11,
492
+ 31: 12,
493
+ 24: 13,
494
+ 32: 15,
495
+ 33: 16,
496
+ 34: 17,
497
+ 43: 30,
498
+ 58: 31,
499
+ 1: [2, 32],
500
+ 4: m,
501
+ 5: q,
502
+ 10: p,
503
+ 12: y,
504
+ 13: g,
505
+ 14: _,
506
+ 15: A,
507
+ 18: ct,
508
+ 25: dt,
509
+ 35: ut,
510
+ 37: lt,
511
+ 39: ot,
512
+ 41: e,
513
+ 42: Et,
514
+ 48: Dt,
515
+ 50: zt,
516
+ 51: Vt,
517
+ 52: It,
518
+ 53: wt,
519
+ 54: Bt,
520
+ 60: Q,
521
+ 61: O,
522
+ 63: F,
523
+ 64: P,
524
+ 65: v,
525
+ 66: C,
526
+ 67: L
527
+ }),
528
+ t(S, [2, 34]),
529
+ {
530
+ 27: 46,
531
+ 55: f,
532
+ 56: l,
533
+ 57: d
534
+ },
535
+ t(n, [2, 37]),
536
+ t(n, I, {
537
+ 24: 13,
538
+ 32: 15,
539
+ 33: 16,
540
+ 34: 17,
541
+ 43: 30,
542
+ 58: 31,
543
+ 31: 47,
544
+ 4: m,
545
+ 5: q,
546
+ 10: p,
547
+ 12: y,
548
+ 13: g,
549
+ 14: _,
550
+ 15: A,
551
+ 18: ct,
552
+ 25: dt,
553
+ 35: ut,
554
+ 37: lt,
555
+ 39: ot,
556
+ 41: e,
557
+ 42: Et,
558
+ 48: Dt,
559
+ 50: zt,
560
+ 51: Vt,
561
+ 52: It,
562
+ 53: wt,
563
+ 54: Bt,
564
+ 60: Q,
565
+ 61: O,
566
+ 63: F,
567
+ 64: P,
568
+ 65: v,
569
+ 66: C,
570
+ 67: L
571
+ }),
572
+ t(n, [2, 39]),
573
+ t(n, [2, 40]),
574
+ t(n, [2, 41]),
575
+ { 36: [1, 48] },
576
+ { 38: [1, 49] },
577
+ { 40: [1, 50] },
578
+ t(n, [2, 45]),
579
+ t(n, [2, 46]),
580
+ { 18: [1, 51] },
581
+ {
582
+ 4: m,
583
+ 5: q,
584
+ 10: p,
585
+ 12: y,
586
+ 13: g,
587
+ 14: _,
588
+ 15: A,
589
+ 43: 52,
590
+ 58: 31,
591
+ 60: Q,
592
+ 61: O,
593
+ 63: F,
594
+ 64: P,
595
+ 65: v,
596
+ 66: C,
597
+ 67: L
598
+ },
599
+ {
600
+ 4: m,
601
+ 5: q,
602
+ 10: p,
603
+ 12: y,
604
+ 13: g,
605
+ 14: _,
606
+ 15: A,
607
+ 43: 53,
608
+ 58: 31,
609
+ 60: Q,
610
+ 61: O,
611
+ 63: F,
612
+ 64: P,
613
+ 65: v,
614
+ 66: C,
615
+ 67: L
616
+ },
617
+ {
618
+ 4: m,
619
+ 5: q,
620
+ 10: p,
621
+ 12: y,
622
+ 13: g,
623
+ 14: _,
624
+ 15: A,
625
+ 43: 54,
626
+ 58: 31,
627
+ 60: Q,
628
+ 61: O,
629
+ 63: F,
630
+ 64: P,
631
+ 65: v,
632
+ 66: C,
633
+ 67: L
634
+ },
635
+ {
636
+ 4: m,
637
+ 5: q,
638
+ 10: p,
639
+ 12: y,
640
+ 13: g,
641
+ 14: _,
642
+ 15: A,
643
+ 43: 55,
644
+ 58: 31,
645
+ 60: Q,
646
+ 61: O,
647
+ 63: F,
648
+ 64: P,
649
+ 65: v,
650
+ 66: C,
651
+ 67: L
652
+ },
653
+ {
654
+ 4: m,
655
+ 5: q,
656
+ 10: p,
657
+ 12: y,
658
+ 13: g,
659
+ 14: _,
660
+ 15: A,
661
+ 43: 56,
662
+ 58: 31,
663
+ 60: Q,
664
+ 61: O,
665
+ 63: F,
666
+ 64: P,
667
+ 65: v,
668
+ 66: C,
669
+ 67: L
670
+ },
671
+ {
672
+ 4: m,
673
+ 5: q,
674
+ 10: p,
675
+ 12: y,
676
+ 13: g,
677
+ 14: _,
678
+ 15: A,
679
+ 43: 57,
680
+ 58: 31,
681
+ 60: Q,
682
+ 61: O,
683
+ 63: F,
684
+ 64: P,
685
+ 65: v,
686
+ 66: C,
687
+ 67: L
688
+ },
689
+ {
690
+ 4: m,
691
+ 5: q,
692
+ 8: X,
693
+ 10: p,
694
+ 12: y,
695
+ 13: g,
696
+ 14: _,
697
+ 15: A,
698
+ 18: M,
699
+ 44: [1, 58],
700
+ 47: [1, 59],
701
+ 58: 61,
702
+ 59: 60,
703
+ 63: F,
704
+ 64: P,
705
+ 65: v,
706
+ 66: C,
707
+ 67: L
708
+ },
709
+ t(E, [2, 64]),
710
+ t(E, [2, 66]),
711
+ t(E, [2, 67]),
712
+ t(E, [2, 70]),
713
+ t(E, [2, 71]),
714
+ t(E, [2, 72]),
715
+ t(E, [2, 73]),
716
+ t(E, [2, 74]),
717
+ t(E, [2, 75]),
718
+ t(E, [2, 76]),
719
+ t(E, [2, 77]),
720
+ t(E, [2, 78]),
721
+ t(E, [2, 79]),
722
+ t(E, [2, 80]),
723
+ t(E, [2, 81]),
724
+ t(S, [2, 35]),
725
+ t(n, [2, 38]),
726
+ t(n, [2, 42]),
727
+ t(n, [2, 43]),
728
+ t(n, [2, 44]),
729
+ {
730
+ 3: 65,
731
+ 4: Rt,
732
+ 5: Nt,
733
+ 6: Wt,
734
+ 7: Ut,
735
+ 8: Qt,
736
+ 9: Ot,
737
+ 10: Ht,
738
+ 11: Xt,
739
+ 12: Mt,
740
+ 13: Yt,
741
+ 14: jt,
742
+ 15: Gt,
743
+ 21: 64
744
+ },
745
+ t(n, [2, 53], {
746
+ 59: 60,
747
+ 58: 61,
748
+ 4: m,
749
+ 5: q,
750
+ 8: X,
751
+ 10: p,
752
+ 12: y,
753
+ 13: g,
754
+ 14: _,
755
+ 15: A,
756
+ 18: M,
757
+ 49: [1, 78],
758
+ 63: F,
759
+ 64: P,
760
+ 65: v,
761
+ 66: C,
762
+ 67: L
763
+ }),
764
+ t(n, [2, 56], {
765
+ 59: 60,
766
+ 58: 61,
767
+ 4: m,
768
+ 5: q,
769
+ 8: X,
770
+ 10: p,
771
+ 12: y,
772
+ 13: g,
773
+ 14: _,
774
+ 15: A,
775
+ 18: M,
776
+ 49: [1, 79],
777
+ 63: F,
778
+ 64: P,
779
+ 65: v,
780
+ 66: C,
781
+ 67: L
782
+ }),
783
+ t(n, [2, 57], {
784
+ 59: 60,
785
+ 58: 61,
786
+ 4: m,
787
+ 5: q,
788
+ 8: X,
789
+ 10: p,
790
+ 12: y,
791
+ 13: g,
792
+ 14: _,
793
+ 15: A,
794
+ 18: M,
795
+ 63: F,
796
+ 64: P,
797
+ 65: v,
798
+ 66: C,
799
+ 67: L
800
+ }),
801
+ t(n, [2, 58], {
802
+ 59: 60,
803
+ 58: 61,
804
+ 4: m,
805
+ 5: q,
806
+ 8: X,
807
+ 10: p,
808
+ 12: y,
809
+ 13: g,
810
+ 14: _,
811
+ 15: A,
812
+ 18: M,
813
+ 63: F,
814
+ 64: P,
815
+ 65: v,
816
+ 66: C,
817
+ 67: L
818
+ }),
819
+ t(n, [2, 59], {
820
+ 59: 60,
821
+ 58: 61,
822
+ 4: m,
823
+ 5: q,
824
+ 8: X,
825
+ 10: p,
826
+ 12: y,
827
+ 13: g,
828
+ 14: _,
829
+ 15: A,
830
+ 18: M,
831
+ 63: F,
832
+ 64: P,
833
+ 65: v,
834
+ 66: C,
835
+ 67: L
836
+ }),
837
+ t(n, [2, 60], {
838
+ 59: 60,
839
+ 58: 61,
840
+ 4: m,
841
+ 5: q,
842
+ 8: X,
843
+ 10: p,
844
+ 12: y,
845
+ 13: g,
846
+ 14: _,
847
+ 15: A,
848
+ 18: M,
849
+ 63: F,
850
+ 64: P,
851
+ 65: v,
852
+ 66: C,
853
+ 67: L
854
+ }),
855
+ { 45: [1, 80] },
856
+ { 44: [1, 81] },
857
+ t(E, [2, 65]),
858
+ t(E, [2, 82]),
859
+ t(E, [2, 83]),
860
+ t(E, [2, 84]),
861
+ {
862
+ 3: 83,
863
+ 4: Rt,
864
+ 5: Nt,
865
+ 6: Wt,
866
+ 7: Ut,
867
+ 8: Qt,
868
+ 9: Ot,
869
+ 10: Ht,
870
+ 11: Xt,
871
+ 12: Mt,
872
+ 13: Yt,
873
+ 14: jt,
874
+ 15: Gt,
875
+ 18: [1, 82]
876
+ },
877
+ t(R, [2, 23]),
878
+ t(R, [2, 1]),
879
+ t(R, [2, 2]),
880
+ t(R, [2, 3]),
881
+ t(R, [2, 4]),
882
+ t(R, [2, 5]),
883
+ t(R, [2, 6]),
884
+ t(R, [2, 7]),
885
+ t(R, [2, 8]),
886
+ t(R, [2, 9]),
887
+ t(R, [2, 10]),
888
+ t(R, [2, 11]),
889
+ t(R, [2, 12]),
890
+ t(n, [2, 52], {
891
+ 58: 31,
892
+ 43: 84,
893
+ 4: m,
894
+ 5: q,
895
+ 10: p,
896
+ 12: y,
897
+ 13: g,
898
+ 14: _,
899
+ 15: A,
900
+ 60: Q,
901
+ 61: O,
902
+ 63: F,
903
+ 64: P,
904
+ 65: v,
905
+ 66: C,
906
+ 67: L
907
+ }),
908
+ t(n, [2, 55], {
909
+ 58: 31,
910
+ 43: 85,
911
+ 4: m,
912
+ 5: q,
913
+ 10: p,
914
+ 12: y,
915
+ 13: g,
916
+ 14: _,
917
+ 15: A,
918
+ 60: Q,
919
+ 61: O,
920
+ 63: F,
921
+ 64: P,
922
+ 65: v,
923
+ 66: C,
924
+ 67: L
925
+ }),
926
+ { 46: [1, 86] },
927
+ { 45: [1, 87] },
928
+ {
929
+ 4: K,
930
+ 5: Z,
931
+ 6: J,
932
+ 8: $,
933
+ 11: tt,
934
+ 13: et,
935
+ 16: 90,
936
+ 17: it,
937
+ 18: at,
938
+ 19: nt,
939
+ 20: st,
940
+ 22: 89,
941
+ 23: 88
942
+ },
943
+ t(R, [2, 24]),
944
+ t(n, [2, 51], {
945
+ 59: 60,
946
+ 58: 61,
947
+ 4: m,
948
+ 5: q,
949
+ 8: X,
950
+ 10: p,
951
+ 12: y,
952
+ 13: g,
953
+ 14: _,
954
+ 15: A,
955
+ 18: M,
956
+ 63: F,
957
+ 64: P,
958
+ 65: v,
959
+ 66: C,
960
+ 67: L
961
+ }),
962
+ t(n, [2, 54], {
963
+ 59: 60,
964
+ 58: 61,
965
+ 4: m,
966
+ 5: q,
967
+ 8: X,
968
+ 10: p,
969
+ 12: y,
970
+ 13: g,
971
+ 14: _,
972
+ 15: A,
973
+ 18: M,
974
+ 63: F,
975
+ 64: P,
976
+ 65: v,
977
+ 66: C,
978
+ 67: L
979
+ }),
980
+ t(n, [2, 47], {
981
+ 22: 89,
982
+ 16: 90,
983
+ 23: 101,
984
+ 4: K,
985
+ 5: Z,
986
+ 6: J,
987
+ 8: $,
988
+ 11: tt,
989
+ 13: et,
990
+ 17: it,
991
+ 18: at,
992
+ 19: nt,
993
+ 20: st
994
+ }),
995
+ { 46: [1, 102] },
996
+ t(n, [2, 29], { 10: qt }),
997
+ t(Kt, [2, 27], {
998
+ 16: 104,
999
+ 4: K,
1000
+ 5: Z,
1001
+ 6: J,
1002
+ 8: $,
1003
+ 11: tt,
1004
+ 13: et,
1005
+ 17: it,
1006
+ 18: at,
1007
+ 19: nt,
1008
+ 20: st
1009
+ }),
1010
+ t(N, [2, 25]),
1011
+ t(N, [2, 13]),
1012
+ t(N, [2, 14]),
1013
+ t(N, [2, 15]),
1014
+ t(N, [2, 16]),
1015
+ t(N, [2, 17]),
1016
+ t(N, [2, 18]),
1017
+ t(N, [2, 19]),
1018
+ t(N, [2, 20]),
1019
+ t(N, [2, 21]),
1020
+ t(N, [2, 22]),
1021
+ t(n, [2, 49], { 10: qt }),
1022
+ t(n, [2, 48], {
1023
+ 22: 89,
1024
+ 16: 90,
1025
+ 23: 105,
1026
+ 4: K,
1027
+ 5: Z,
1028
+ 6: J,
1029
+ 8: $,
1030
+ 11: tt,
1031
+ 13: et,
1032
+ 17: it,
1033
+ 18: at,
1034
+ 19: nt,
1035
+ 20: st
1036
+ }),
1037
+ {
1038
+ 4: K,
1039
+ 5: Z,
1040
+ 6: J,
1041
+ 8: $,
1042
+ 11: tt,
1043
+ 13: et,
1044
+ 16: 90,
1045
+ 17: it,
1046
+ 18: at,
1047
+ 19: nt,
1048
+ 20: st,
1049
+ 22: 106
1050
+ },
1051
+ t(N, [2, 26]),
1052
+ t(n, [2, 50], { 10: qt }),
1053
+ t(Kt, [2, 28], {
1054
+ 16: 104,
1055
+ 4: K,
1056
+ 5: Z,
1057
+ 6: J,
1058
+ 8: $,
1059
+ 11: tt,
1060
+ 13: et,
1061
+ 17: it,
1062
+ 18: at,
1063
+ 19: nt,
1064
+ 20: st
1065
+ })
1066
+ ],
1067
+ defaultActions: {
1068
+ 8: [2, 30],
1069
+ 9: [2, 31]
1070
+ },
1071
+ parseError: /* @__PURE__ */ r(function(c, b) {
1072
+ if (b.recoverable) this.trace(c);
1073
+ else {
1074
+ var u = new Error(c);
1075
+ throw u.hash = b, u;
1076
+ }
1077
+ }, "parseError"),
1078
+ parse: /* @__PURE__ */ r(function(c) {
1079
+ var b = this, u = [0], x = [], k = [null], i = [], ht = this.table, a = "", ft = 0, Zt = 0, Jt = 0, me = 2, $t = 1, qe = i.slice.call(arguments, 1), D = Object.create(this.lexer), j = { yy: {} };
1080
+ for (var St in this.yy) Object.prototype.hasOwnProperty.call(this.yy, St) && (j.yy[St] = this.yy[St]);
1081
+ D.setInput(c, j.yy), j.yy.lexer = D, j.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
1082
+ var _t = D.yylloc;
1083
+ i.push(_t);
1084
+ var be = D.options && D.options.ranges;
1085
+ typeof j.yy.parseError == "function" ? this.parseError = j.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1086
+ function Se(U) {
1087
+ u.length = u.length - 2 * U, k.length = k.length - U, i.length = i.length - U;
1088
+ }
1089
+ r(Se, "popStack");
1090
+ function te() {
1091
+ var U = x.pop() || D.lex() || $t;
1092
+ return typeof U != "number" && (U instanceof Array && (x = U, U = x.pop()), U = b.symbols_[U] || U), U;
1093
+ }
1094
+ r(te, "lex");
1095
+ for (var w, At, G, W, kt, rt = {}, gt, Y, ee, pt; ; ) {
1096
+ if (G = u[u.length - 1], this.defaultActions[G] ? W = this.defaultActions[G] : ((w === null || typeof w > "u") && (w = te()), W = ht[G] && ht[G][w]), typeof W > "u" || !W.length || !W[0]) {
1097
+ var Ft = "";
1098
+ pt = [];
1099
+ for (gt in ht[G]) this.terminals_[gt] && gt > me && pt.push("'" + this.terminals_[gt] + "'");
1100
+ D.showPosition ? Ft = "Parse error on line " + (ft + 1) + `:
1101
+ ` + D.showPosition() + `
1102
+ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Ft = "Parse error on line " + (ft + 1) + ": Unexpected " + (w == $t ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Ft, {
1103
+ text: D.match,
1104
+ token: this.terminals_[w] || w,
1105
+ line: D.yylineno,
1106
+ loc: _t,
1107
+ expected: pt
1108
+ });
1109
+ }
1110
+ if (W[0] instanceof Array && W.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + w);
1111
+ switch (W[0]) {
1112
+ case 1:
1113
+ u.push(w), k.push(D.yytext), i.push(D.yylloc), u.push(W[1]), w = null, At ? (w = At, At = null) : (Zt = D.yyleng, a = D.yytext, ft = D.yylineno, _t = D.yylloc, Jt > 0 && Jt--);
1114
+ break;
1115
+ case 2:
1116
+ if (Y = this.productions_[W[1]][1], rt.$ = k[k.length - Y], rt._$ = {
1117
+ first_line: i[i.length - (Y || 1)].first_line,
1118
+ last_line: i[i.length - 1].last_line,
1119
+ first_column: i[i.length - (Y || 1)].first_column,
1120
+ last_column: i[i.length - 1].last_column
1121
+ }, be && (rt._$.range = [i[i.length - (Y || 1)].range[0], i[i.length - 1].range[1]]), kt = this.performAction.apply(rt, [
1122
+ a,
1123
+ Zt,
1124
+ ft,
1125
+ j.yy,
1126
+ W[1],
1127
+ k,
1128
+ i
1129
+ ].concat(qe)), typeof kt < "u") return kt;
1130
+ Y && (u = u.slice(0, -1 * Y * 2), k = k.slice(0, -1 * Y), i = i.slice(0, -1 * Y)), u.push(this.productions_[W[1]][0]), k.push(rt.$), i.push(rt._$), ee = ht[u[u.length - 2]][u[u.length - 1]], u.push(ee);
1131
+ break;
1132
+ case 3:
1133
+ return !0;
1134
+ }
1135
+ }
1136
+ return !0;
1137
+ }, "parse")
1138
+ };
1139
+ bt.lexer = /* @__PURE__ */ (function() {
1140
+ return {
1141
+ EOF: 1,
1142
+ parseError: /* @__PURE__ */ r(function(c, b) {
1143
+ if (this.yy.parser) this.yy.parser.parseError(c, b);
1144
+ else throw new Error(c);
1145
+ }, "parseError"),
1146
+ setInput: /* @__PURE__ */ r(function(s, c) {
1147
+ return this.yy = c || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1148
+ first_line: 1,
1149
+ first_column: 0,
1150
+ last_line: 1,
1151
+ last_column: 0
1152
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1153
+ }, "setInput"),
1154
+ input: /* @__PURE__ */ r(function() {
1155
+ var s = this._input[0];
1156
+ return this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s, s.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
1157
+ }, "input"),
1158
+ unput: /* @__PURE__ */ r(function(s) {
1159
+ var c = s.length, b = s.split(/(?:\r\n?|\n)/g);
1160
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
1161
+ var u = this.match.split(/(?:\r\n?|\n)/g);
1162
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
1163
+ var x = this.yylloc.range;
1164
+ return this.yylloc = {
1165
+ first_line: this.yylloc.first_line,
1166
+ last_line: this.yylineno + 1,
1167
+ first_column: this.yylloc.first_column,
1168
+ last_column: b ? (b.length === u.length ? this.yylloc.first_column : 0) + u[u.length - b.length].length - b[0].length : this.yylloc.first_column - c
1169
+ }, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
1170
+ }, "unput"),
1171
+ more: /* @__PURE__ */ r(function() {
1172
+ return this._more = !0, this;
1173
+ }, "more"),
1174
+ reject: /* @__PURE__ */ r(function() {
1175
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1176
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
1177
+ ` + this.showPosition(), {
1178
+ text: "",
1179
+ token: null,
1180
+ line: this.yylineno
1181
+ });
1182
+ return this;
1183
+ }, "reject"),
1184
+ less: /* @__PURE__ */ r(function(s) {
1185
+ this.unput(this.match.slice(s));
1186
+ }, "less"),
1187
+ pastInput: /* @__PURE__ */ r(function() {
1188
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
1189
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
1190
+ }, "pastInput"),
1191
+ upcomingInput: /* @__PURE__ */ r(function() {
1192
+ var s = this.match;
1193
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
1194
+ }, "upcomingInput"),
1195
+ showPosition: /* @__PURE__ */ r(function() {
1196
+ var s = this.pastInput(), c = new Array(s.length + 1).join("-");
1197
+ return s + this.upcomingInput() + `
1198
+ ` + c + "^";
1199
+ }, "showPosition"),
1200
+ test_match: /* @__PURE__ */ r(function(s, c) {
1201
+ var b, u, x;
1202
+ if (this.options.backtrack_lexer && (x = {
1203
+ yylineno: this.yylineno,
1204
+ yylloc: {
1205
+ first_line: this.yylloc.first_line,
1206
+ last_line: this.last_line,
1207
+ first_column: this.yylloc.first_column,
1208
+ last_column: this.yylloc.last_column
1209
+ },
1210
+ yytext: this.yytext,
1211
+ match: this.match,
1212
+ matches: this.matches,
1213
+ matched: this.matched,
1214
+ yyleng: this.yyleng,
1215
+ offset: this.offset,
1216
+ _more: this._more,
1217
+ _input: this._input,
1218
+ yy: this.yy,
1219
+ conditionStack: this.conditionStack.slice(0),
1220
+ done: this.done
1221
+ }, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))), u = s[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
1222
+ first_line: this.yylloc.last_line,
1223
+ last_line: this.yylineno + 1,
1224
+ first_column: this.yylloc.last_column,
1225
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
1226
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], b = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), b) return b;
1227
+ if (this._backtrack) {
1228
+ for (var k in x) this[k] = x[k];
1229
+ return !1;
1230
+ }
1231
+ return !1;
1232
+ }, "test_match"),
1233
+ next: /* @__PURE__ */ r(function() {
1234
+ if (this.done) return this.EOF;
1235
+ this._input || (this.done = !0);
1236
+ var s, c, b, u;
1237
+ this._more || (this.yytext = "", this.match = "");
1238
+ for (var x = this._currentRules(), k = 0; k < x.length; k++)
1239
+ if (b = this._input.match(this.rules[x[k]]), b && (!c || b[0].length > c[0].length)) {
1240
+ if (c = b, u = k, this.options.backtrack_lexer) {
1241
+ if (s = this.test_match(b, x[k]), s !== !1) return s;
1242
+ if (this._backtrack) {
1243
+ c = !1;
1244
+ continue;
1245
+ } else return !1;
1246
+ } else if (!this.options.flex) break;
1247
+ }
1248
+ return c ? (s = this.test_match(c, x[u]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1249
+ ` + this.showPosition(), {
1250
+ text: "",
1251
+ token: null,
1252
+ line: this.yylineno
1253
+ });
1254
+ }, "next"),
1255
+ lex: /* @__PURE__ */ r(function() {
1256
+ var c = this.next();
1257
+ return c || this.lex();
1258
+ }, "lex"),
1259
+ begin: /* @__PURE__ */ r(function(c) {
1260
+ this.conditionStack.push(c);
1261
+ }, "begin"),
1262
+ popState: /* @__PURE__ */ r(function() {
1263
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1264
+ }, "popState"),
1265
+ _currentRules: /* @__PURE__ */ r(function() {
1266
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1267
+ }, "_currentRules"),
1268
+ topState: /* @__PURE__ */ r(function(c) {
1269
+ return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
1270
+ }, "topState"),
1271
+ pushState: /* @__PURE__ */ r(function(c) {
1272
+ this.begin(c);
1273
+ }, "pushState"),
1274
+ stateStackSize: /* @__PURE__ */ r(function() {
1275
+ return this.conditionStack.length;
1276
+ }, "stateStackSize"),
1277
+ options: { "case-insensitive": !0 },
1278
+ performAction: /* @__PURE__ */ r(function(c, b, u, x) {
1279
+ switch (u) {
1280
+ case 0:
1281
+ break;
1282
+ case 1:
1283
+ break;
1284
+ case 2:
1285
+ return 55;
1286
+ case 3:
1287
+ break;
1288
+ case 4:
1289
+ return this.begin("title"), 35;
1290
+ case 5:
1291
+ return this.popState(), "title_value";
1292
+ case 6:
1293
+ return this.begin("acc_title"), 37;
1294
+ case 7:
1295
+ return this.popState(), "acc_title_value";
1296
+ case 8:
1297
+ return this.begin("acc_descr"), 39;
1298
+ case 9:
1299
+ return this.popState(), "acc_descr_value";
1300
+ case 10:
1301
+ this.begin("acc_descr_multiline");
1302
+ break;
1303
+ case 11:
1304
+ this.popState();
1305
+ break;
1306
+ case 12:
1307
+ return "acc_descr_multiline_value";
1308
+ case 13:
1309
+ return 48;
1310
+ case 14:
1311
+ return 50;
1312
+ case 15:
1313
+ return 49;
1314
+ case 16:
1315
+ return 51;
1316
+ case 17:
1317
+ return 52;
1318
+ case 18:
1319
+ return 53;
1320
+ case 19:
1321
+ return 54;
1322
+ case 20:
1323
+ return 25;
1324
+ case 21:
1325
+ this.begin("md_string");
1326
+ break;
1327
+ case 22:
1328
+ return "MD_STR";
1329
+ case 23:
1330
+ this.popState();
1331
+ break;
1332
+ case 24:
1333
+ this.begin("string");
1334
+ break;
1335
+ case 25:
1336
+ this.popState();
1337
+ break;
1338
+ case 26:
1339
+ return "STR";
1340
+ case 27:
1341
+ this.begin("class_name");
1342
+ break;
1343
+ case 28:
1344
+ return this.popState(), 47;
1345
+ case 29:
1346
+ return this.begin("point_start"), 44;
1347
+ case 30:
1348
+ return this.begin("point_x"), 45;
1349
+ case 31:
1350
+ this.popState();
1351
+ break;
1352
+ case 32:
1353
+ this.popState(), this.begin("point_y");
1354
+ break;
1355
+ case 33:
1356
+ return this.popState(), 46;
1357
+ case 34:
1358
+ return 28;
1359
+ case 35:
1360
+ return 4;
1361
+ case 36:
1362
+ return 15;
1363
+ case 37:
1364
+ return 11;
1365
+ case 38:
1366
+ return 64;
1367
+ case 39:
1368
+ return 10;
1369
+ case 40:
1370
+ return 65;
1371
+ case 41:
1372
+ return 65;
1373
+ case 42:
1374
+ return 14;
1375
+ case 43:
1376
+ return 13;
1377
+ case 44:
1378
+ return 67;
1379
+ case 45:
1380
+ return 66;
1381
+ case 46:
1382
+ return 12;
1383
+ case 47:
1384
+ return 8;
1385
+ case 48:
1386
+ return 5;
1387
+ case 49:
1388
+ return 18;
1389
+ case 50:
1390
+ return 56;
1391
+ case 51:
1392
+ return 63;
1393
+ case 52:
1394
+ return 57;
1395
+ }
1396
+ }, "anonymous"),
1397
+ rules: [
1398
+ /^(?:%%(?!\{)[^\n]*)/i,
1399
+ /^(?:[^\}]%%[^\n]*)/i,
1400
+ /^(?:[\n\r]+)/i,
1401
+ /^(?:%%[^\n]*)/i,
1402
+ /^(?:title\b)/i,
1403
+ /^(?:(?!\n||)*[^\n]*)/i,
1404
+ /^(?:accTitle\s*:\s*)/i,
1405
+ /^(?:(?!\n||)*[^\n]*)/i,
1406
+ /^(?:accDescr\s*:\s*)/i,
1407
+ /^(?:(?!\n||)*[^\n]*)/i,
1408
+ /^(?:accDescr\s*\{\s*)/i,
1409
+ /^(?:[\}])/i,
1410
+ /^(?:[^\}]*)/i,
1411
+ /^(?: *x-axis *)/i,
1412
+ /^(?: *y-axis *)/i,
1413
+ /^(?: *--+> *)/i,
1414
+ /^(?: *quadrant-1 *)/i,
1415
+ /^(?: *quadrant-2 *)/i,
1416
+ /^(?: *quadrant-3 *)/i,
1417
+ /^(?: *quadrant-4 *)/i,
1418
+ /^(?:classDef\b)/i,
1419
+ /^(?:["][`])/i,
1420
+ /^(?:[^`"]+)/i,
1421
+ /^(?:[`]["])/i,
1422
+ /^(?:["])/i,
1423
+ /^(?:["])/i,
1424
+ /^(?:[^"]*)/i,
1425
+ /^(?::::)/i,
1426
+ /^(?:^\w+)/i,
1427
+ /^(?:\s*:\s*\[\s*)/i,
1428
+ /^(?:(1)|(0(.\d+)?))/i,
1429
+ /^(?:\s*\] *)/i,
1430
+ /^(?:\s*,\s*)/i,
1431
+ /^(?:(1)|(0(.\d+)?))/i,
1432
+ /^(?: *quadrantChart *)/i,
1433
+ /^(?:[A-Za-z]+)/i,
1434
+ /^(?:[^\x00-\x7F]+)/i,
1435
+ /^(?::)/i,
1436
+ /^(?:\+)/i,
1437
+ /^(?:,)/i,
1438
+ /^(?:=)/i,
1439
+ /^(?:=)/i,
1440
+ /^(?:\*)/i,
1441
+ /^(?:#)/i,
1442
+ /^(?:[\_])/i,
1443
+ /^(?:\.)/i,
1444
+ /^(?:&)/i,
1445
+ /^(?:-)/i,
1446
+ /^(?:[0-9]+)/i,
1447
+ /^(?:\s)/i,
1448
+ /^(?:;)/i,
1449
+ /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1450
+ /^(?:$)/i
1451
+ ],
1452
+ conditions: {
1453
+ class_name: {
1454
+ rules: [28],
1455
+ inclusive: !1
1456
+ },
1457
+ point_y: {
1458
+ rules: [33],
1459
+ inclusive: !1
1460
+ },
1461
+ point_x: {
1462
+ rules: [32],
1463
+ inclusive: !1
1464
+ },
1465
+ point_start: {
1466
+ rules: [30, 31],
1467
+ inclusive: !1
1468
+ },
1469
+ acc_descr_multiline: {
1470
+ rules: [11, 12],
1471
+ inclusive: !1
1472
+ },
1473
+ acc_descr: {
1474
+ rules: [9],
1475
+ inclusive: !1
1476
+ },
1477
+ acc_title: {
1478
+ rules: [7],
1479
+ inclusive: !1
1480
+ },
1481
+ title: {
1482
+ rules: [5],
1483
+ inclusive: !1
1484
+ },
1485
+ md_string: {
1486
+ rules: [22, 23],
1487
+ inclusive: !1
1488
+ },
1489
+ string: {
1490
+ rules: [25, 26],
1491
+ inclusive: !1
1492
+ },
1493
+ INITIAL: {
1494
+ rules: [
1495
+ 0,
1496
+ 1,
1497
+ 2,
1498
+ 3,
1499
+ 4,
1500
+ 6,
1501
+ 8,
1502
+ 10,
1503
+ 13,
1504
+ 14,
1505
+ 15,
1506
+ 16,
1507
+ 17,
1508
+ 18,
1509
+ 19,
1510
+ 20,
1511
+ 21,
1512
+ 24,
1513
+ 27,
1514
+ 29,
1515
+ 34,
1516
+ 35,
1517
+ 36,
1518
+ 37,
1519
+ 38,
1520
+ 39,
1521
+ 40,
1522
+ 41,
1523
+ 42,
1524
+ 43,
1525
+ 44,
1526
+ 45,
1527
+ 46,
1528
+ 47,
1529
+ 48,
1530
+ 49,
1531
+ 50,
1532
+ 51,
1533
+ 52
1534
+ ],
1535
+ inclusive: !0
1536
+ }
1537
+ }
1538
+ };
1539
+ })();
1540
+ function xt() {
1541
+ this.yy = {};
1542
+ }
1543
+ return r(xt, "Parser"), xt.prototype = bt, bt.Parser = xt, new xt();
1544
+ })();
1545
+ vt.parser = vt;
1546
+ var De = vt, B = _e(), ze = class {
1547
+ constructor() {
1548
+ this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
1549
+ }
1550
+ static {
1551
+ r(this, "QuadrantBuilder");
1552
+ }
1553
+ getDefaultData() {
1554
+ return {
1555
+ titleText: "",
1556
+ quadrant1Text: "",
1557
+ quadrant2Text: "",
1558
+ quadrant3Text: "",
1559
+ quadrant4Text: "",
1560
+ xAxisLeftText: "",
1561
+ xAxisRightText: "",
1562
+ yAxisBottomText: "",
1563
+ yAxisTopText: "",
1564
+ points: []
1565
+ };
1566
+ }
1567
+ getDefaultConfig() {
1568
+ return {
1569
+ showXAxis: !0,
1570
+ showYAxis: !0,
1571
+ showTitle: !0,
1572
+ chartHeight: z.quadrantChart?.chartWidth || 500,
1573
+ chartWidth: z.quadrantChart?.chartHeight || 500,
1574
+ titlePadding: z.quadrantChart?.titlePadding || 10,
1575
+ titleFontSize: z.quadrantChart?.titleFontSize || 20,
1576
+ quadrantPadding: z.quadrantChart?.quadrantPadding || 5,
1577
+ xAxisLabelPadding: z.quadrantChart?.xAxisLabelPadding || 5,
1578
+ yAxisLabelPadding: z.quadrantChart?.yAxisLabelPadding || 5,
1579
+ xAxisLabelFontSize: z.quadrantChart?.xAxisLabelFontSize || 16,
1580
+ yAxisLabelFontSize: z.quadrantChart?.yAxisLabelFontSize || 16,
1581
+ quadrantLabelFontSize: z.quadrantChart?.quadrantLabelFontSize || 16,
1582
+ quadrantTextTopPadding: z.quadrantChart?.quadrantTextTopPadding || 5,
1583
+ pointTextPadding: z.quadrantChart?.pointTextPadding || 5,
1584
+ pointLabelFontSize: z.quadrantChart?.pointLabelFontSize || 12,
1585
+ pointRadius: z.quadrantChart?.pointRadius || 5,
1586
+ xAxisPosition: z.quadrantChart?.xAxisPosition || "top",
1587
+ yAxisPosition: z.quadrantChart?.yAxisPosition || "left",
1588
+ quadrantInternalBorderStrokeWidth: z.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
1589
+ quadrantExternalBorderStrokeWidth: z.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
1590
+ };
1591
+ }
1592
+ getDefaultThemeConfig() {
1593
+ return {
1594
+ quadrant1Fill: B.quadrant1Fill,
1595
+ quadrant2Fill: B.quadrant2Fill,
1596
+ quadrant3Fill: B.quadrant3Fill,
1597
+ quadrant4Fill: B.quadrant4Fill,
1598
+ quadrant1TextFill: B.quadrant1TextFill,
1599
+ quadrant2TextFill: B.quadrant2TextFill,
1600
+ quadrant3TextFill: B.quadrant3TextFill,
1601
+ quadrant4TextFill: B.quadrant4TextFill,
1602
+ quadrantPointFill: B.quadrantPointFill,
1603
+ quadrantPointTextFill: B.quadrantPointTextFill,
1604
+ quadrantXAxisTextFill: B.quadrantXAxisTextFill,
1605
+ quadrantYAxisTextFill: B.quadrantYAxisTextFill,
1606
+ quadrantTitleFill: B.quadrantTitleFill,
1607
+ quadrantInternalBorderStrokeFill: B.quadrantInternalBorderStrokeFill,
1608
+ quadrantExternalBorderStrokeFill: B.quadrantExternalBorderStrokeFill
1609
+ };
1610
+ }
1611
+ clear() {
1612
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), Tt.info("clear called");
1613
+ }
1614
+ setData(t) {
1615
+ this.data = {
1616
+ ...this.data,
1617
+ ...t
1618
+ };
1619
+ }
1620
+ addPoints(t) {
1621
+ this.data.points = [...t, ...this.data.points];
1622
+ }
1623
+ addClass(t, o) {
1624
+ this.classes.set(t, o);
1625
+ }
1626
+ setConfig(t) {
1627
+ Tt.trace("setConfig called with: ", t), this.config = {
1628
+ ...this.config,
1629
+ ...t
1630
+ };
1631
+ }
1632
+ setThemeConfig(t) {
1633
+ Tt.trace("setThemeConfig called with: ", t), this.themeConfig = {
1634
+ ...this.themeConfig,
1635
+ ...t
1636
+ };
1637
+ }
1638
+ calculateSpace(t, o, T, f) {
1639
+ const l = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, d = {
1640
+ top: t === "top" && o ? l : 0,
1641
+ bottom: t === "bottom" && o ? l : 0
1642
+ }, S = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, h = {
1643
+ left: this.config.yAxisPosition === "left" && T ? S : 0,
1644
+ right: this.config.yAxisPosition === "right" && T ? S : 0
1645
+ }, n = this.config.titleFontSize + this.config.titlePadding * 2, I = { top: f ? n : 0 }, m = this.config.quadrantPadding + h.left, q = this.config.quadrantPadding + d.top + I.top, p = this.config.chartWidth - this.config.quadrantPadding * 2 - h.left - h.right, y = this.config.chartHeight - this.config.quadrantPadding * 2 - d.top - d.bottom - I.top;
1646
+ return {
1647
+ xAxisSpace: d,
1648
+ yAxisSpace: h,
1649
+ titleSpace: I,
1650
+ quadrantSpace: {
1651
+ quadrantLeft: m,
1652
+ quadrantTop: q,
1653
+ quadrantWidth: p,
1654
+ quadrantHalfWidth: p / 2,
1655
+ quadrantHeight: y,
1656
+ quadrantHalfHeight: y / 2
1657
+ }
1658
+ };
1659
+ }
1660
+ getAxisLabels(t, o, T, f) {
1661
+ const { quadrantSpace: l, titleSpace: d } = f, { quadrantHalfHeight: S, quadrantHeight: h, quadrantLeft: n, quadrantHalfWidth: I, quadrantTop: m, quadrantWidth: q } = l, p = !!this.data.xAxisRightText, y = !!this.data.yAxisTopText, g = [];
1662
+ return this.data.xAxisLeftText && o && g.push({
1663
+ text: this.data.xAxisLeftText,
1664
+ fill: this.themeConfig.quadrantXAxisTextFill,
1665
+ x: n + (p ? I / 2 : 0),
1666
+ y: t === "top" ? this.config.xAxisLabelPadding + d.top : this.config.xAxisLabelPadding + m + h + this.config.quadrantPadding,
1667
+ fontSize: this.config.xAxisLabelFontSize,
1668
+ verticalPos: p ? "center" : "left",
1669
+ horizontalPos: "top",
1670
+ rotation: 0
1671
+ }), this.data.xAxisRightText && o && g.push({
1672
+ text: this.data.xAxisRightText,
1673
+ fill: this.themeConfig.quadrantXAxisTextFill,
1674
+ x: n + I + (p ? I / 2 : 0),
1675
+ y: t === "top" ? this.config.xAxisLabelPadding + d.top : this.config.xAxisLabelPadding + m + h + this.config.quadrantPadding,
1676
+ fontSize: this.config.xAxisLabelFontSize,
1677
+ verticalPos: p ? "center" : "left",
1678
+ horizontalPos: "top",
1679
+ rotation: 0
1680
+ }), this.data.yAxisBottomText && T && g.push({
1681
+ text: this.data.yAxisBottomText,
1682
+ fill: this.themeConfig.quadrantYAxisTextFill,
1683
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + n + q + this.config.quadrantPadding,
1684
+ y: m + h - (y ? S / 2 : 0),
1685
+ fontSize: this.config.yAxisLabelFontSize,
1686
+ verticalPos: y ? "center" : "left",
1687
+ horizontalPos: "top",
1688
+ rotation: -90
1689
+ }), this.data.yAxisTopText && T && g.push({
1690
+ text: this.data.yAxisTopText,
1691
+ fill: this.themeConfig.quadrantYAxisTextFill,
1692
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + n + q + this.config.quadrantPadding,
1693
+ y: m + S - (y ? S / 2 : 0),
1694
+ fontSize: this.config.yAxisLabelFontSize,
1695
+ verticalPos: y ? "center" : "left",
1696
+ horizontalPos: "top",
1697
+ rotation: -90
1698
+ }), g;
1699
+ }
1700
+ getQuadrants(t) {
1701
+ const { quadrantSpace: o } = t, { quadrantHalfHeight: T, quadrantLeft: f, quadrantHalfWidth: l, quadrantTop: d } = o, S = [
1702
+ {
1703
+ text: {
1704
+ text: this.data.quadrant1Text,
1705
+ fill: this.themeConfig.quadrant1TextFill,
1706
+ x: 0,
1707
+ y: 0,
1708
+ fontSize: this.config.quadrantLabelFontSize,
1709
+ verticalPos: "center",
1710
+ horizontalPos: "middle",
1711
+ rotation: 0
1712
+ },
1713
+ x: f + l,
1714
+ y: d,
1715
+ width: l,
1716
+ height: T,
1717
+ fill: this.themeConfig.quadrant1Fill
1718
+ },
1719
+ {
1720
+ text: {
1721
+ text: this.data.quadrant2Text,
1722
+ fill: this.themeConfig.quadrant2TextFill,
1723
+ x: 0,
1724
+ y: 0,
1725
+ fontSize: this.config.quadrantLabelFontSize,
1726
+ verticalPos: "center",
1727
+ horizontalPos: "middle",
1728
+ rotation: 0
1729
+ },
1730
+ x: f,
1731
+ y: d,
1732
+ width: l,
1733
+ height: T,
1734
+ fill: this.themeConfig.quadrant2Fill
1735
+ },
1736
+ {
1737
+ text: {
1738
+ text: this.data.quadrant3Text,
1739
+ fill: this.themeConfig.quadrant3TextFill,
1740
+ x: 0,
1741
+ y: 0,
1742
+ fontSize: this.config.quadrantLabelFontSize,
1743
+ verticalPos: "center",
1744
+ horizontalPos: "middle",
1745
+ rotation: 0
1746
+ },
1747
+ x: f,
1748
+ y: d + T,
1749
+ width: l,
1750
+ height: T,
1751
+ fill: this.themeConfig.quadrant3Fill
1752
+ },
1753
+ {
1754
+ text: {
1755
+ text: this.data.quadrant4Text,
1756
+ fill: this.themeConfig.quadrant4TextFill,
1757
+ x: 0,
1758
+ y: 0,
1759
+ fontSize: this.config.quadrantLabelFontSize,
1760
+ verticalPos: "center",
1761
+ horizontalPos: "middle",
1762
+ rotation: 0
1763
+ },
1764
+ x: f + l,
1765
+ y: d + T,
1766
+ width: l,
1767
+ height: T,
1768
+ fill: this.themeConfig.quadrant4Fill
1769
+ }
1770
+ ];
1771
+ for (const h of S)
1772
+ h.text.x = h.x + h.width / 2, this.data.points.length === 0 ? (h.text.y = h.y + h.height / 2, h.text.horizontalPos = "middle") : (h.text.y = h.y + this.config.quadrantTextTopPadding, h.text.horizontalPos = "top");
1773
+ return S;
1774
+ }
1775
+ getQuadrantPoints(t) {
1776
+ const { quadrantSpace: o } = t, { quadrantHeight: T, quadrantLeft: f, quadrantTop: l, quadrantWidth: d } = o, S = ie().domain([0, 1]).range([f, d + f]), h = ie().domain([0, 1]).range([T + l, l]);
1777
+ return this.data.points.map((n) => {
1778
+ const I = this.classes.get(n.className);
1779
+ return I && (n = {
1780
+ ...I,
1781
+ ...n
1782
+ }), {
1783
+ x: S(n.x),
1784
+ y: h(n.y),
1785
+ fill: n.color ?? this.themeConfig.quadrantPointFill,
1786
+ radius: n.radius ?? this.config.pointRadius,
1787
+ text: {
1788
+ text: n.text,
1789
+ fill: this.themeConfig.quadrantPointTextFill,
1790
+ x: S(n.x),
1791
+ y: h(n.y) + this.config.pointTextPadding,
1792
+ verticalPos: "center",
1793
+ horizontalPos: "top",
1794
+ fontSize: this.config.pointLabelFontSize,
1795
+ rotation: 0
1796
+ },
1797
+ strokeColor: n.strokeColor ?? this.themeConfig.quadrantPointFill,
1798
+ strokeWidth: n.strokeWidth ?? "0px"
1799
+ };
1800
+ });
1801
+ }
1802
+ getBorders(t) {
1803
+ const o = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: T } = t, { quadrantHalfHeight: f, quadrantHeight: l, quadrantLeft: d, quadrantHalfWidth: S, quadrantTop: h, quadrantWidth: n } = T;
1804
+ return [
1805
+ {
1806
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1807
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1808
+ x1: d - o,
1809
+ y1: h,
1810
+ x2: d + n + o,
1811
+ y2: h
1812
+ },
1813
+ {
1814
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1815
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1816
+ x1: d + n,
1817
+ y1: h + o,
1818
+ x2: d + n,
1819
+ y2: h + l - o
1820
+ },
1821
+ {
1822
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1823
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1824
+ x1: d - o,
1825
+ y1: h + l,
1826
+ x2: d + n + o,
1827
+ y2: h + l
1828
+ },
1829
+ {
1830
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1831
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1832
+ x1: d,
1833
+ y1: h + o,
1834
+ x2: d,
1835
+ y2: h + l - o
1836
+ },
1837
+ {
1838
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1839
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1840
+ x1: d + S,
1841
+ y1: h + o,
1842
+ x2: d + S,
1843
+ y2: h + l - o
1844
+ },
1845
+ {
1846
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1847
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1848
+ x1: d + o,
1849
+ y1: h + f,
1850
+ x2: d + n - o,
1851
+ y2: h + f
1852
+ }
1853
+ ];
1854
+ }
1855
+ getTitle(t) {
1856
+ if (t) return {
1857
+ text: this.data.titleText,
1858
+ fill: this.themeConfig.quadrantTitleFill,
1859
+ fontSize: this.config.titleFontSize,
1860
+ horizontalPos: "top",
1861
+ verticalPos: "center",
1862
+ rotation: 0,
1863
+ y: this.config.titlePadding,
1864
+ x: this.config.chartWidth / 2
1865
+ };
1866
+ }
1867
+ build() {
1868
+ const t = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), o = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), T = this.config.showTitle && !!this.data.titleText, f = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, l = this.calculateSpace(f, t, o, T);
1869
+ return {
1870
+ points: this.getQuadrantPoints(l),
1871
+ quadrants: this.getQuadrants(l),
1872
+ axisLabels: this.getAxisLabels(f, t, o, l),
1873
+ borderLines: this.getBorders(l),
1874
+ title: this.getTitle(T)
1875
+ };
1876
+ }
1877
+ }, yt = class extends Error {
1878
+ static {
1879
+ r(this, "InvalidStyleError");
1880
+ }
1881
+ constructor(t, o, T) {
1882
+ super(`value for ${t} ${o} is invalid, please use a valid ${T}`), this.name = "InvalidStyleError";
1883
+ }
1884
+ };
1885
+ function Ct(t) {
1886
+ return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
1887
+ }
1888
+ r(Ct, "validateHexCode");
1889
+ function ne(t) {
1890
+ return !/^\d+$/.test(t);
1891
+ }
1892
+ r(ne, "validateNumber");
1893
+ function se(t) {
1894
+ return !/^\d+px$/.test(t);
1895
+ }
1896
+ r(se, "validateSizeInPixels");
1897
+ function H(t) {
1898
+ return Ee(t.trim(), Lt());
1899
+ }
1900
+ r(H, "textSanitizer");
1901
+ var V = new ze();
1902
+ function re(t) {
1903
+ V.setData({ quadrant1Text: H(t.text) });
1904
+ }
1905
+ r(re, "setQuadrant1Text");
1906
+ function le(t) {
1907
+ V.setData({ quadrant2Text: H(t.text) });
1908
+ }
1909
+ r(le, "setQuadrant2Text");
1910
+ function oe(t) {
1911
+ V.setData({ quadrant3Text: H(t.text) });
1912
+ }
1913
+ r(oe, "setQuadrant3Text");
1914
+ function he(t) {
1915
+ V.setData({ quadrant4Text: H(t.text) });
1916
+ }
1917
+ r(he, "setQuadrant4Text");
1918
+ function ce(t) {
1919
+ V.setData({ xAxisLeftText: H(t.text) });
1920
+ }
1921
+ r(ce, "setXAxisLeftText");
1922
+ function de(t) {
1923
+ V.setData({ xAxisRightText: H(t.text) });
1924
+ }
1925
+ r(de, "setXAxisRightText");
1926
+ function ue(t) {
1927
+ V.setData({ yAxisTopText: H(t.text) });
1928
+ }
1929
+ r(ue, "setYAxisTopText");
1930
+ function xe(t) {
1931
+ V.setData({ yAxisBottomText: H(t.text) });
1932
+ }
1933
+ r(xe, "setYAxisBottomText");
1934
+ function mt(t) {
1935
+ const o = {};
1936
+ for (const T of t) {
1937
+ const [f, l] = T.trim().split(/\s*:\s*/);
1938
+ if (f === "radius") {
1939
+ if (ne(l)) throw new yt(f, l, "number");
1940
+ o.radius = parseInt(l);
1941
+ } else if (f === "color") {
1942
+ if (Ct(l)) throw new yt(f, l, "hex code");
1943
+ o.color = l;
1944
+ } else if (f === "stroke-color") {
1945
+ if (Ct(l)) throw new yt(f, l, "hex code");
1946
+ o.strokeColor = l;
1947
+ } else if (f === "stroke-width") {
1948
+ if (se(l)) throw new yt(f, l, "number of pixels (eg. 10px)");
1949
+ o.strokeWidth = l;
1950
+ } else throw new Error(`style named ${f} is not supported.`);
1951
+ }
1952
+ return o;
1953
+ }
1954
+ r(mt, "parseStyles");
1955
+ function fe(t, o, T, f, l) {
1956
+ const d = mt(l);
1957
+ V.addPoints([{
1958
+ x: T,
1959
+ y: f,
1960
+ text: H(t.text),
1961
+ className: o,
1962
+ ...d
1963
+ }]);
1964
+ }
1965
+ r(fe, "addPoint");
1966
+ function ge(t, o) {
1967
+ V.addClass(t, mt(o));
1968
+ }
1969
+ r(ge, "addClass");
1970
+ function pe(t) {
1971
+ V.setConfig({ chartWidth: t });
1972
+ }
1973
+ r(pe, "setWidth");
1974
+ function ye(t) {
1975
+ V.setConfig({ chartHeight: t });
1976
+ }
1977
+ r(ye, "setHeight");
1978
+ function Te() {
1979
+ const { themeVariables: t, quadrantChart: o } = Lt();
1980
+ return o && V.setConfig(o), V.setThemeConfig({
1981
+ quadrant1Fill: t.quadrant1Fill,
1982
+ quadrant2Fill: t.quadrant2Fill,
1983
+ quadrant3Fill: t.quadrant3Fill,
1984
+ quadrant4Fill: t.quadrant4Fill,
1985
+ quadrant1TextFill: t.quadrant1TextFill,
1986
+ quadrant2TextFill: t.quadrant2TextFill,
1987
+ quadrant3TextFill: t.quadrant3TextFill,
1988
+ quadrant4TextFill: t.quadrant4TextFill,
1989
+ quadrantPointFill: t.quadrantPointFill,
1990
+ quadrantPointTextFill: t.quadrantPointTextFill,
1991
+ quadrantXAxisTextFill: t.quadrantXAxisTextFill,
1992
+ quadrantYAxisTextFill: t.quadrantYAxisTextFill,
1993
+ quadrantExternalBorderStrokeFill: t.quadrantExternalBorderStrokeFill,
1994
+ quadrantInternalBorderStrokeFill: t.quadrantInternalBorderStrokeFill,
1995
+ quadrantTitleFill: t.quadrantTitleFill
1996
+ }), V.setData({ titleText: ae() }), V.build();
1997
+ }
1998
+ r(Te, "getQuadrantData");
1999
+ var Ve = {
2000
+ setWidth: pe,
2001
+ setHeight: ye,
2002
+ setQuadrant1Text: re,
2003
+ setQuadrant2Text: le,
2004
+ setQuadrant3Text: oe,
2005
+ setQuadrant4Text: he,
2006
+ setXAxisLeftText: ce,
2007
+ setXAxisRightText: de,
2008
+ setYAxisTopText: ue,
2009
+ setYAxisBottomText: xe,
2010
+ parseStyles: mt,
2011
+ addPoint: fe,
2012
+ addClass: ge,
2013
+ getQuadrantData: Te,
2014
+ clear: /* @__PURE__ */ r(function() {
2015
+ V.clear(), Pe();
2016
+ }, "clear"),
2017
+ setAccTitle: Fe,
2018
+ getAccTitle: Le,
2019
+ setDiagramTitle: ke,
2020
+ getDiagramTitle: ae,
2021
+ getAccDescription: Ce,
2022
+ setAccDescription: Ae
2023
+ }, Ne = {
2024
+ parser: De,
2025
+ db: Ve,
2026
+ renderer: { draw: /* @__PURE__ */ r((t, o, T, f) => {
2027
+ function l(e) {
2028
+ return e === "top" ? "hanging" : "middle";
2029
+ }
2030
+ r(l, "getDominantBaseLine");
2031
+ function d(e) {
2032
+ return e === "left" ? "start" : "middle";
2033
+ }
2034
+ r(d, "getTextAnchor");
2035
+ function S(e) {
2036
+ return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
2037
+ }
2038
+ r(S, "getTransformation");
2039
+ const h = Lt();
2040
+ Tt.debug(`Rendering quadrant chart
2041
+ ` + t);
2042
+ const n = h.securityLevel;
2043
+ let I;
2044
+ n === "sandbox" && (I = Pt("#i" + o));
2045
+ const m = (n === "sandbox" ? Pt(I.nodes()[0].contentDocument.body) : Pt("body")).select(`[id="${o}"]`), q = m.append("g").attr("class", "main"), p = h.quadrantChart?.chartWidth ?? 500, y = h.quadrantChart?.chartHeight ?? 500;
2046
+ ve(m, y, p, h.quadrantChart?.useMaxWidth ?? !0), m.attr("viewBox", "0 0 " + p + " " + y), f.db.setHeight(y), f.db.setWidth(p);
2047
+ const g = f.db.getQuadrantData(), _ = q.append("g").attr("class", "quadrants"), A = q.append("g").attr("class", "border"), ct = q.append("g").attr("class", "data-points"), dt = q.append("g").attr("class", "labels"), ut = q.append("g").attr("class", "title");
2048
+ g.title && ut.append("text").attr("x", 0).attr("y", 0).attr("fill", g.title.fill).attr("font-size", g.title.fontSize).attr("dominant-baseline", l(g.title.horizontalPos)).attr("text-anchor", d(g.title.verticalPos)).attr("transform", S(g.title)).text(g.title.text), g.borderLines && A.selectAll("line").data(g.borderLines).enter().append("line").attr("x1", (e) => e.x1).attr("y1", (e) => e.y1).attr("x2", (e) => e.x2).attr("y2", (e) => e.y2).style("stroke", (e) => e.strokeFill).style("stroke-width", (e) => e.strokeWidth);
2049
+ const lt = _.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class", "quadrant");
2050
+ lt.append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill), lt.append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => l(e.text.horizontalPos)).attr("text-anchor", (e) => d(e.text.verticalPos)).attr("transform", (e) => S(e.text)).text((e) => e.text.text), dt.selectAll("g.label").data(g.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((e) => e.text).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => l(e.horizontalPos)).attr("text-anchor", (e) => d(e.verticalPos)).attr("transform", (e) => S(e));
2051
+ const ot = ct.selectAll("g.data-point").data(g.points).enter().append("g").attr("class", "data-point");
2052
+ ot.append("circle").attr("cx", (e) => e.x).attr("cy", (e) => e.y).attr("r", (e) => e.radius).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeColor).attr("stroke-width", (e) => e.strokeWidth), ot.append("text").attr("x", 0).attr("y", 0).text((e) => e.text.text).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => l(e.text.horizontalPos)).attr("text-anchor", (e) => d(e.text.verticalPos)).attr("transform", (e) => S(e.text));
2053
+ }, "draw") },
2054
+ styles: /* @__PURE__ */ r(() => "", "styles")
2055
+ };
2056
+ export {
2057
+ Ne as diagram
2058
+ };