@bkm016/basalt 0.1.28 → 0.1.30

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 (972) hide show
  1. package/README.md +2 -2
  2. package/chunk-01xyv3ct.js +7 -0
  3. package/chunk-06gjy5s2.js +5 -0
  4. package/chunk-0pztrs5x.js +11 -0
  5. package/chunk-0v6seb9q.js +20 -0
  6. package/chunk-0z138vnr.js +12 -0
  7. package/chunk-1c8yqctx.js +3 -0
  8. package/chunk-1wt8pbns.js +2 -0
  9. package/chunk-1yvgmxew.js +2 -0
  10. package/chunk-229men2n.js +31 -0
  11. package/chunk-29x35nj4.js +5 -0
  12. package/chunk-3ee7dyh4.js +18 -0
  13. package/chunk-3gf3g0xt.js +3 -0
  14. package/chunk-3gts3ja0.js +8 -0
  15. package/chunk-4stj480w.js +3 -0
  16. package/chunk-4t2t0hcp.js +3 -0
  17. package/chunk-57b764s0.js +5 -0
  18. package/chunk-63mr2aa2.js +50 -0
  19. package/chunk-64h4gw8d.js +3 -0
  20. package/chunk-7gxx6829.js +2 -0
  21. package/chunk-898tss1j.js +51 -0
  22. package/chunk-9em1sne5.js +2 -0
  23. package/chunk-9p8n1xjn.js +4048 -0
  24. package/chunk-a0h0x1dn.js +3 -0
  25. package/chunk-a2r89pk2.js +12 -0
  26. package/chunk-a5mtw4y5.js +2 -0
  27. package/chunk-bbqhx91f.js +3 -0
  28. package/chunk-c9q0y8hp.js +4 -0
  29. package/chunk-cgzez9a5.js +2 -0
  30. package/chunk-drjajr57.js +3 -0
  31. package/chunk-dsnz6mzt.js +25 -0
  32. package/chunk-ee18zzzv.js +3 -0
  33. package/chunk-eg161ep9.js +3 -0
  34. package/chunk-ej42zg82.js +2 -0
  35. package/chunk-ejw7k7nn.js +2 -0
  36. package/chunk-f95j1a8x.js +3 -0
  37. package/chunk-fdgrayj5.js +3 -0
  38. package/chunk-fnxstmm5.js +2 -0
  39. package/chunk-gtjtkfjk.js +3 -0
  40. package/chunk-h4rve6x4.js +63 -0
  41. package/chunk-hp9bcx4x.js +2 -0
  42. package/chunk-hvxc1wyv.js +3 -0
  43. package/chunk-je4cjwhm.js +3 -0
  44. package/chunk-jn1zdamp.js +9 -0
  45. package/chunk-jpah46d1.js +2 -0
  46. package/chunk-jvsrda4n.js +16 -0
  47. package/chunk-jyhsae16.js +2 -0
  48. package/chunk-k7n6bhkz.js +3 -0
  49. package/chunk-kvv3mvk5.js +2 -0
  50. package/chunk-kzv5cgqz.js +286 -0
  51. package/chunk-mz3zt06w.js +7 -0
  52. package/chunk-n4crb1x3.js +2 -0
  53. package/chunk-nmmf0w14.js +5 -0
  54. package/chunk-nr5p4pvp.js +3 -0
  55. package/chunk-p39fex1r.js +2 -0
  56. package/chunk-pefgy360.js +7 -0
  57. package/chunk-psr71nf8.js +2 -0
  58. package/chunk-qsgc7b7x.js +3 -0
  59. package/chunk-qygv2jqa.js +2 -0
  60. package/chunk-r0gsb1qs.js +3 -0
  61. package/chunk-r449z8pj.js +2 -0
  62. package/chunk-r49sxmnc.js +3 -0
  63. package/chunk-rd52y45c.js +8 -0
  64. package/chunk-repjnwda.js +10 -0
  65. package/chunk-rh6yvdwz.js +3 -0
  66. package/chunk-s2d5zp37.js +44 -0
  67. package/chunk-s68eamf1.js +2 -0
  68. package/chunk-sacdpkwc.js +3 -0
  69. package/chunk-tey1hftz.js +490 -0
  70. package/chunk-vhvzyxx5.js +25 -0
  71. package/chunk-vytm86v0.js +2 -0
  72. package/chunk-x4bc1xkx.js +39 -0
  73. package/chunk-xa23zmzv.js +2 -0
  74. package/chunk-xq7zspqs.js +3 -0
  75. package/chunk-xqz8ac7j.js +2 -0
  76. package/chunk-ycce2a81.js +2 -0
  77. package/chunk-z99s31w5.js +2 -0
  78. package/chunk-zs6ytk7b.js +59 -0
  79. package/chunk-ztm5hqwh.js +2 -0
  80. package/chunk-zv29qg1q.js +10 -0
  81. package/compiled.js +9 -9
  82. package/package.json +4 -1
  83. package/ui-test-worker.js +79 -77
  84. package/web/chunk-02z3bqps.js +1 -0
  85. package/web/chunk-02z3bqps.js.br +0 -0
  86. package/web/chunk-02z3bqps.js.gz +0 -0
  87. package/web/chunk-0dg4qqe3.js +1 -0
  88. package/web/chunk-0dg4qqe3.js.br +2 -0
  89. package/web/chunk-0dg4qqe3.js.gz +0 -0
  90. package/web/chunk-0qar8vwc.js +2 -0
  91. package/web/chunk-0qar8vwc.js.br +0 -0
  92. package/web/chunk-0qar8vwc.js.gz +0 -0
  93. package/web/chunk-0qmgmqzd.js +2 -0
  94. package/web/chunk-0qmgmqzd.js.br +0 -0
  95. package/web/chunk-0qmgmqzd.js.gz +0 -0
  96. package/web/chunk-1pffd2va.js +2 -0
  97. package/web/chunk-1pffd2va.js.br +0 -0
  98. package/web/chunk-1pffd2va.js.gz +0 -0
  99. package/web/chunk-1q82849a.js +1 -0
  100. package/web/chunk-1q82849a.js.br +0 -0
  101. package/web/chunk-1q82849a.js.gz +0 -0
  102. package/web/chunk-2ajkzs3d.js +12 -0
  103. package/web/chunk-2ajkzs3d.js.br +0 -0
  104. package/web/chunk-2ajkzs3d.js.gz +0 -0
  105. package/web/chunk-2ttatv42.js +2 -0
  106. package/web/chunk-2ttatv42.js.br +0 -0
  107. package/web/chunk-2ttatv42.js.gz +0 -0
  108. package/web/chunk-2xrkfj8n.js +291 -0
  109. package/web/chunk-2xrkfj8n.js.br +0 -0
  110. package/web/chunk-2xrkfj8n.js.gz +0 -0
  111. package/web/chunk-45xqp3dn.js +1 -0
  112. package/web/chunk-45xqp3dn.js.br +0 -0
  113. package/web/chunk-45xqp3dn.js.gz +0 -0
  114. package/web/chunk-4fdgpye3.js +2 -0
  115. package/web/chunk-4fdgpye3.js.br +0 -0
  116. package/web/chunk-4fdgpye3.js.gz +0 -0
  117. package/web/chunk-4fzpmw3f.js +89 -0
  118. package/web/chunk-4fzpmw3f.js.br +0 -0
  119. package/web/chunk-4fzpmw3f.js.gz +0 -0
  120. package/web/chunk-51njd9f8.js +89 -0
  121. package/web/chunk-51njd9f8.js.br +0 -0
  122. package/web/chunk-51njd9f8.js.gz +0 -0
  123. package/web/chunk-66zw8mqe.js +2 -0
  124. package/web/chunk-66zw8mqe.js.br +0 -0
  125. package/web/chunk-66zw8mqe.js.gz +0 -0
  126. package/web/chunk-6f9btq4p.js +1 -0
  127. package/web/chunk-6f9btq4p.js.br +0 -0
  128. package/web/chunk-6f9btq4p.js.gz +0 -0
  129. package/web/chunk-6x73jtw7.js +7 -0
  130. package/web/chunk-6x73jtw7.js.br +0 -0
  131. package/web/chunk-6x73jtw7.js.gz +0 -0
  132. package/web/chunk-6y389kg6.js +1 -0
  133. package/web/chunk-6y389kg6.js.br +0 -0
  134. package/web/chunk-6y389kg6.js.gz +0 -0
  135. package/web/chunk-73peavw3.js +1 -0
  136. package/web/chunk-73peavw3.js.br +0 -0
  137. package/web/chunk-73peavw3.js.gz +0 -0
  138. package/web/chunk-7p7qtp6d.js +1 -0
  139. package/web/chunk-7p7qtp6d.js.br +0 -0
  140. package/web/chunk-7p7qtp6d.js.gz +0 -0
  141. package/web/chunk-81zj375g.js +1 -0
  142. package/web/chunk-81zj375g.js.br +0 -0
  143. package/web/chunk-81zj375g.js.gz +0 -0
  144. package/web/chunk-89dwrkrr.js +1 -0
  145. package/web/chunk-89dwrkrr.js.br +0 -0
  146. package/web/chunk-89dwrkrr.js.gz +0 -0
  147. package/web/chunk-8e829p0a.css +1 -0
  148. package/web/chunk-8e829p0a.css.br +0 -0
  149. package/web/chunk-8e829p0a.css.gz +0 -0
  150. package/web/chunk-9j7v0e4v.js +2 -0
  151. package/web/chunk-9j7v0e4v.js.br +0 -0
  152. package/web/chunk-9j7v0e4v.js.gz +0 -0
  153. package/web/chunk-9mgqrwwh.js +1 -0
  154. package/web/chunk-9mgqrwwh.js.br +0 -0
  155. package/web/chunk-9mgqrwwh.js.gz +0 -0
  156. package/web/chunk-ag97fhx1.js +1 -0
  157. package/web/chunk-ag97fhx1.js.br +0 -0
  158. package/web/chunk-ag97fhx1.js.gz +0 -0
  159. package/web/chunk-anm2706b.js +139 -0
  160. package/web/chunk-anm2706b.js.br +0 -0
  161. package/web/chunk-anm2706b.js.gz +0 -0
  162. package/web/chunk-aqz2exas.js +142 -0
  163. package/web/chunk-aqz2exas.js.br +0 -0
  164. package/web/chunk-aqz2exas.js.gz +0 -0
  165. package/web/chunk-at6wp72y.js +1 -0
  166. package/web/chunk-at6wp72y.js.br +0 -0
  167. package/web/chunk-at6wp72y.js.gz +0 -0
  168. package/web/chunk-ayfqxte8.js +1 -0
  169. package/web/chunk-ayfqxte8.js.br +2 -0
  170. package/web/chunk-ayfqxte8.js.gz +0 -0
  171. package/web/chunk-b564qxgk.js +98 -0
  172. package/web/chunk-b564qxgk.js.br +0 -0
  173. package/web/chunk-b564qxgk.js.gz +0 -0
  174. package/web/chunk-b9atg5sw.js +1 -0
  175. package/web/chunk-b9atg5sw.js.br +0 -0
  176. package/web/chunk-b9atg5sw.js.gz +0 -0
  177. package/web/chunk-bg2k54a5.js +70 -0
  178. package/web/chunk-bg2k54a5.js.br +0 -0
  179. package/web/chunk-bg2k54a5.js.gz +0 -0
  180. package/web/chunk-c2vtzhbs.js +1 -0
  181. package/web/chunk-c2vtzhbs.js.br +0 -0
  182. package/web/chunk-c2vtzhbs.js.gz +0 -0
  183. package/web/chunk-cb0g87b5.js +2 -0
  184. package/web/chunk-cb0g87b5.js.br +3 -0
  185. package/web/chunk-cb0g87b5.js.gz +0 -0
  186. package/web/chunk-cgm44rx8.js +2 -0
  187. package/web/chunk-cgm44rx8.js.br +0 -0
  188. package/web/chunk-cgm44rx8.js.gz +0 -0
  189. package/web/chunk-ctckn7gz.js +2 -0
  190. package/web/chunk-ctckn7gz.js.br +0 -0
  191. package/web/chunk-ctckn7gz.js.gz +0 -0
  192. package/web/chunk-def5mk0w.js +2 -0
  193. package/web/chunk-def5mk0w.js.br +0 -0
  194. package/web/chunk-def5mk0w.js.gz +0 -0
  195. package/web/chunk-e2nhv6bb.js +2 -0
  196. package/web/chunk-e2nhv6bb.js.br +0 -0
  197. package/web/chunk-e2nhv6bb.js.gz +0 -0
  198. package/web/chunk-e7djq8rb.js +2 -0
  199. package/web/chunk-e7djq8rb.js.br +0 -0
  200. package/web/chunk-e7djq8rb.js.gz +0 -0
  201. package/web/chunk-eagbq8k2.js +1 -0
  202. package/web/chunk-eagbq8k2.js.br +0 -0
  203. package/web/chunk-eagbq8k2.js.gz +0 -0
  204. package/web/chunk-fbxw7w0z.js +1 -0
  205. package/web/chunk-fbxw7w0z.js.br +0 -0
  206. package/web/chunk-fbxw7w0z.js.gz +0 -0
  207. package/web/chunk-fn95dxq2.js +1 -0
  208. package/web/chunk-fn95dxq2.js.br +0 -0
  209. package/web/chunk-fn95dxq2.js.gz +0 -0
  210. package/web/chunk-g3n4tbbv.js +1 -0
  211. package/web/chunk-g3n4tbbv.js.br +2 -0
  212. package/web/chunk-g3n4tbbv.js.gz +0 -0
  213. package/web/chunk-gp0xqyh2.js +62 -0
  214. package/web/chunk-gp0xqyh2.js.br +0 -0
  215. package/web/chunk-gp0xqyh2.js.gz +0 -0
  216. package/web/chunk-h2rv3exr.js +84 -0
  217. package/web/chunk-h2rv3exr.js.br +0 -0
  218. package/web/chunk-h2rv3exr.js.gz +0 -0
  219. package/web/chunk-h47k4j7f.js +1 -0
  220. package/web/chunk-h47k4j7f.js.br +0 -0
  221. package/web/chunk-h47k4j7f.js.gz +0 -0
  222. package/web/chunk-h888hb33.js +41 -0
  223. package/web/chunk-h888hb33.js.br +0 -0
  224. package/web/chunk-h888hb33.js.gz +0 -0
  225. package/web/chunk-hc9ep8b0.js +4 -0
  226. package/web/chunk-hc9ep8b0.js.br +0 -0
  227. package/web/chunk-hc9ep8b0.js.gz +0 -0
  228. package/web/chunk-hp0jfbty.js +1 -0
  229. package/web/chunk-hp0jfbty.js.br +0 -0
  230. package/web/chunk-hp0jfbty.js.gz +0 -0
  231. package/web/chunk-hx7rh5c1.js +2 -0
  232. package/web/chunk-hx7rh5c1.js.br +0 -0
  233. package/web/chunk-hx7rh5c1.js.gz +0 -0
  234. package/web/chunk-hzxz7smg.js +24 -0
  235. package/web/chunk-hzxz7smg.js.br +0 -0
  236. package/web/chunk-hzxz7smg.js.gz +0 -0
  237. package/web/chunk-j4w9gj2v.js +1 -0
  238. package/web/chunk-j4w9gj2v.js.br +0 -0
  239. package/web/chunk-j4w9gj2v.js.gz +0 -0
  240. package/web/chunk-j8m3c1s4.js +2 -0
  241. package/web/chunk-j8m3c1s4.js.br +0 -0
  242. package/web/chunk-j8m3c1s4.js.gz +0 -0
  243. package/web/chunk-jamb9e79.js +1 -0
  244. package/web/chunk-jamb9e79.js.br +0 -0
  245. package/web/chunk-jamb9e79.js.gz +0 -0
  246. package/web/chunk-jg19frxn.js +55 -0
  247. package/web/chunk-jg19frxn.js.br +0 -0
  248. package/web/chunk-jg19frxn.js.gz +0 -0
  249. package/web/chunk-jm2pevt8.js +1 -0
  250. package/web/chunk-jm2pevt8.js.br +0 -0
  251. package/web/chunk-jm2pevt8.js.gz +0 -0
  252. package/web/chunk-jmr00kdm.js +214 -0
  253. package/web/chunk-jmr00kdm.js.br +0 -0
  254. package/web/chunk-jmr00kdm.js.gz +0 -0
  255. package/web/chunk-jsff72z2.js +1 -0
  256. package/web/chunk-jsff72z2.js.br +0 -0
  257. package/web/chunk-jsff72z2.js.gz +0 -0
  258. package/web/chunk-jv83dscd.js +1 -0
  259. package/web/chunk-jv83dscd.js.br +0 -0
  260. package/web/chunk-jv83dscd.js.gz +0 -0
  261. package/web/chunk-k0da3cb3.js +1 -0
  262. package/web/chunk-k0da3cb3.js.br +0 -0
  263. package/web/chunk-k0da3cb3.js.gz +0 -0
  264. package/web/chunk-k6ks8zqg.js +1 -0
  265. package/web/chunk-k6ks8zqg.js.br +0 -0
  266. package/web/chunk-k6ks8zqg.js.gz +0 -0
  267. package/web/chunk-kdzew6g1.js +1 -0
  268. package/web/chunk-kdzew6g1.js.br +2 -0
  269. package/web/chunk-kdzew6g1.js.gz +0 -0
  270. package/web/chunk-ktmnzrpf.js +1 -0
  271. package/web/chunk-ktmnzrpf.js.br +2 -0
  272. package/web/chunk-ktmnzrpf.js.gz +0 -0
  273. package/web/chunk-kxezmcn5.js +30 -0
  274. package/web/chunk-kxezmcn5.js.br +0 -0
  275. package/web/chunk-kxezmcn5.js.gz +0 -0
  276. package/web/chunk-kyj99nqq.js +2 -0
  277. package/web/chunk-kyj99nqq.js.br +0 -0
  278. package/web/chunk-kyj99nqq.js.gz +0 -0
  279. package/web/chunk-m1009k4x.js +16 -0
  280. package/web/chunk-m1009k4x.js.br +0 -0
  281. package/web/chunk-m1009k4x.js.gz +0 -0
  282. package/web/chunk-mfsdyw6v.js +2 -0
  283. package/web/chunk-mfsdyw6v.js.br +0 -0
  284. package/web/chunk-mfsdyw6v.js.gz +0 -0
  285. package/web/chunk-mgr8wt71.js +370 -0
  286. package/web/chunk-mgr8wt71.js.br +0 -0
  287. package/web/chunk-mgr8wt71.js.gz +0 -0
  288. package/web/chunk-mya0w8tm.js +1 -0
  289. package/web/chunk-mya0w8tm.js.br +0 -0
  290. package/web/chunk-mya0w8tm.js.gz +0 -0
  291. package/web/chunk-n1wgda90.js +7 -0
  292. package/web/chunk-n1wgda90.js.br +0 -0
  293. package/web/chunk-n1wgda90.js.gz +0 -0
  294. package/web/chunk-n7hk5sxm.js +120 -0
  295. package/web/chunk-n7hk5sxm.js.br +0 -0
  296. package/web/chunk-n7hk5sxm.js.gz +0 -0
  297. package/web/chunk-n99yz498.js +36 -0
  298. package/web/chunk-n99yz498.js.br +0 -0
  299. package/web/chunk-n99yz498.js.gz +0 -0
  300. package/web/chunk-nnvqz2dh.js +1 -0
  301. package/web/chunk-nnvqz2dh.js.br +0 -0
  302. package/web/chunk-nnvqz2dh.js.gz +0 -0
  303. package/web/chunk-nx439rde.js +1 -0
  304. package/web/chunk-nx439rde.js.br +0 -0
  305. package/web/chunk-nx439rde.js.gz +0 -0
  306. package/web/chunk-pn50cj2y.js +1 -0
  307. package/web/chunk-pn50cj2y.js.br +0 -0
  308. package/web/chunk-pn50cj2y.js.gz +0 -0
  309. package/web/chunk-pph3x232.js +38 -0
  310. package/web/chunk-pph3x232.js.br +0 -0
  311. package/web/chunk-pph3x232.js.gz +0 -0
  312. package/web/chunk-pt2vfgkr.js +1 -0
  313. package/web/chunk-pt2vfgkr.js.br +0 -0
  314. package/web/chunk-pt2vfgkr.js.gz +0 -0
  315. package/web/chunk-pzvg5xnk.js +21 -0
  316. package/web/chunk-pzvg5xnk.js.br +0 -0
  317. package/web/chunk-pzvg5xnk.js.gz +0 -0
  318. package/web/chunk-q5hj3y5k.js +2 -0
  319. package/web/chunk-q5hj3y5k.js.br +0 -0
  320. package/web/chunk-q5hj3y5k.js.gz +0 -0
  321. package/web/chunk-qafnz668.js +1 -0
  322. package/web/chunk-qafnz668.js.br +0 -0
  323. package/web/chunk-qafnz668.js.gz +0 -0
  324. package/web/chunk-qkfqcr10.js +1 -0
  325. package/web/chunk-qkfqcr10.js.br +0 -0
  326. package/web/chunk-qkfqcr10.js.gz +0 -0
  327. package/web/chunk-qkgp0da2.js +1 -0
  328. package/web/chunk-qkgp0da2.js.br +0 -0
  329. package/web/chunk-qkgp0da2.js.gz +0 -0
  330. package/web/chunk-qpqdn0a8.js +1 -0
  331. package/web/chunk-qpqdn0a8.js.br +0 -0
  332. package/web/chunk-qpqdn0a8.js.gz +0 -0
  333. package/web/chunk-r0ch05x8.js +3 -0
  334. package/web/chunk-r0ch05x8.js.br +0 -0
  335. package/web/chunk-r0ch05x8.js.gz +0 -0
  336. package/web/chunk-r6s2vcby.js +8 -0
  337. package/web/chunk-r6s2vcby.js.br +6 -0
  338. package/web/chunk-r6s2vcby.js.gz +0 -0
  339. package/web/chunk-r71mdnq3.js +1 -0
  340. package/web/chunk-r71mdnq3.js.br +0 -0
  341. package/web/chunk-r71mdnq3.js.gz +0 -0
  342. package/web/chunk-r9m8jh7x.js +2 -0
  343. package/web/chunk-r9m8jh7x.js.br +0 -0
  344. package/web/chunk-r9m8jh7x.js.gz +0 -0
  345. package/web/chunk-rd60971b.js +2 -0
  346. package/web/chunk-rd60971b.js.br +0 -0
  347. package/web/chunk-rd60971b.js.gz +0 -0
  348. package/web/chunk-rdz21xd5.js +99 -0
  349. package/web/chunk-rdz21xd5.js.br +0 -0
  350. package/web/chunk-rdz21xd5.js.gz +0 -0
  351. package/web/chunk-rmzb9edh.js +303 -0
  352. package/web/chunk-rmzb9edh.js.br +0 -0
  353. package/web/chunk-rmzb9edh.js.gz +0 -0
  354. package/web/chunk-rqkd1h2n.js +2 -0
  355. package/web/chunk-rqkd1h2n.js.br +0 -0
  356. package/web/chunk-rqkd1h2n.js.gz +0 -0
  357. package/web/chunk-rz2cq4g2.js +2 -0
  358. package/web/chunk-rz2cq4g2.js.br +0 -0
  359. package/web/chunk-rz2cq4g2.js.gz +0 -0
  360. package/web/chunk-rzeh9b1q.js +2 -0
  361. package/web/chunk-rzeh9b1q.js.br +0 -0
  362. package/web/chunk-rzeh9b1q.js.gz +0 -0
  363. package/web/chunk-s6ax6yty.js +1 -0
  364. package/web/chunk-s6ax6yty.js.br +0 -0
  365. package/web/chunk-s6ax6yty.js.gz +0 -0
  366. package/web/chunk-s75zvbh9.js +1 -0
  367. package/web/chunk-s75zvbh9.js.br +0 -0
  368. package/web/chunk-s75zvbh9.js.gz +0 -0
  369. package/web/chunk-s7cz1q7g.js +324 -0
  370. package/web/chunk-s7cz1q7g.js.br +0 -0
  371. package/web/chunk-s7cz1q7g.js.gz +0 -0
  372. package/web/chunk-sh6xh1kh.js +1 -0
  373. package/web/chunk-sh6xh1kh.js.br +0 -0
  374. package/web/chunk-sh6xh1kh.js.gz +0 -0
  375. package/web/chunk-shc8bv2k.js +2 -0
  376. package/web/chunk-shc8bv2k.js.br +0 -0
  377. package/web/chunk-shc8bv2k.js.gz +0 -0
  378. package/web/chunk-sqa50cfh.js +2 -0
  379. package/web/chunk-sqa50cfh.js.br +0 -0
  380. package/web/chunk-sqa50cfh.js.gz +0 -0
  381. package/web/chunk-stp6j8y9.js +39 -0
  382. package/web/chunk-stp6j8y9.js.br +0 -0
  383. package/web/chunk-stp6j8y9.js.gz +0 -0
  384. package/web/chunk-t7wae2xz.js +332 -0
  385. package/web/chunk-t7wae2xz.js.br +0 -0
  386. package/web/chunk-t7wae2xz.js.gz +0 -0
  387. package/web/chunk-t8p7d5vk.js +2 -0
  388. package/web/chunk-t8p7d5vk.js.br +0 -0
  389. package/web/chunk-t8p7d5vk.js.gz +0 -0
  390. package/web/chunk-t9twwgfe.js +1 -0
  391. package/web/chunk-t9twwgfe.js.br +0 -0
  392. package/web/chunk-t9twwgfe.js.gz +0 -0
  393. package/web/chunk-tbj4d6qe.js +292 -0
  394. package/web/chunk-tbj4d6qe.js.br +0 -0
  395. package/web/chunk-tbj4d6qe.js.gz +0 -0
  396. package/web/chunk-v0wb751t.js +2 -0
  397. package/web/chunk-v0wb751t.js.br +0 -0
  398. package/web/chunk-v0wb751t.js.gz +0 -0
  399. package/web/chunk-v1vghfec.js +1 -0
  400. package/web/chunk-v1vghfec.js.br +0 -0
  401. package/web/chunk-v1vghfec.js.gz +0 -0
  402. package/web/chunk-v890rh1e.js +2 -0
  403. package/web/chunk-v890rh1e.js.br +0 -0
  404. package/web/chunk-v890rh1e.js.gz +0 -0
  405. package/web/chunk-vd2kng8p.js +4 -0
  406. package/web/chunk-vd2kng8p.js.br +0 -0
  407. package/web/chunk-vd2kng8p.js.gz +0 -0
  408. package/web/chunk-vfqmec16.js +217 -0
  409. package/web/chunk-vfqmec16.js.br +0 -0
  410. package/web/chunk-vfqmec16.js.gz +0 -0
  411. package/web/chunk-vhmcx472.js +1 -0
  412. package/web/chunk-vhmcx472.js.br +0 -0
  413. package/web/chunk-vhmcx472.js.gz +0 -0
  414. package/web/chunk-vtvf1x6b.js +2 -0
  415. package/web/chunk-vtvf1x6b.js.br +0 -0
  416. package/web/chunk-vtvf1x6b.js.gz +0 -0
  417. package/web/chunk-w0ae9ggt.js +40 -0
  418. package/web/chunk-w0ae9ggt.js.br +0 -0
  419. package/web/chunk-w0ae9ggt.js.gz +0 -0
  420. package/web/chunk-ws8rv0tb.js +1141 -0
  421. package/web/chunk-ws8rv0tb.js.br +0 -0
  422. package/web/chunk-ws8rv0tb.js.gz +0 -0
  423. package/web/chunk-wvnvh4a5.js +78 -0
  424. package/web/chunk-wvnvh4a5.js.br +0 -0
  425. package/web/chunk-wvnvh4a5.js.gz +0 -0
  426. package/web/chunk-x11ewabg.js +1 -0
  427. package/web/chunk-x11ewabg.js.br +0 -0
  428. package/web/chunk-x11ewabg.js.gz +0 -0
  429. package/web/chunk-x2tcf0r1.js +1 -0
  430. package/web/chunk-x2tcf0r1.js.br +2 -0
  431. package/web/chunk-x2tcf0r1.js.gz +0 -0
  432. package/web/chunk-x9mexzav.js +2 -0
  433. package/web/chunk-x9mexzav.js.br +0 -0
  434. package/web/chunk-x9mexzav.js.gz +0 -0
  435. package/web/chunk-xbrj4mk1.js +140 -0
  436. package/web/chunk-xbrj4mk1.js.br +0 -0
  437. package/web/chunk-xbrj4mk1.js.gz +0 -0
  438. package/web/chunk-xh8q1bcj.js +34 -0
  439. package/web/chunk-xh8q1bcj.js.br +0 -0
  440. package/web/chunk-xh8q1bcj.js.gz +0 -0
  441. package/web/chunk-xha3t633.js +1 -0
  442. package/web/chunk-xha3t633.js.br +0 -0
  443. package/web/chunk-xha3t633.js.gz +0 -0
  444. package/web/chunk-xk8637wb.js +1 -0
  445. package/web/chunk-xk8637wb.js.br +0 -0
  446. package/web/chunk-xk8637wb.js.gz +0 -0
  447. package/web/chunk-xmr18f18.js +1 -0
  448. package/web/chunk-xmr18f18.js.br +0 -0
  449. package/web/chunk-xmr18f18.js.gz +0 -0
  450. package/web/chunk-y372dg1e.js +7 -0
  451. package/web/chunk-y372dg1e.js.br +0 -0
  452. package/web/chunk-y372dg1e.js.gz +0 -0
  453. package/web/chunk-y48mj5d7.js +1 -0
  454. package/web/chunk-y48mj5d7.js.br +0 -0
  455. package/web/chunk-y48mj5d7.js.gz +0 -0
  456. package/web/chunk-y778wckc.js +24 -0
  457. package/web/chunk-y778wckc.js.br +0 -0
  458. package/web/chunk-y778wckc.js.gz +0 -0
  459. package/web/chunk-yerpvhym.js +169 -0
  460. package/web/chunk-yerpvhym.js.br +0 -0
  461. package/web/chunk-yerpvhym.js.gz +0 -0
  462. package/web/chunk-yrhe7a7c.js +106 -0
  463. package/web/chunk-yrhe7a7c.js.br +0 -0
  464. package/web/chunk-yrhe7a7c.js.gz +0 -0
  465. package/web/chunk-z2aazpzj.js +2 -0
  466. package/web/chunk-z2aazpzj.js.br +0 -0
  467. package/web/chunk-z2aazpzj.js.gz +0 -0
  468. package/web/chunk-z43td5ad.js +1 -0
  469. package/web/chunk-z43td5ad.js.br +0 -0
  470. package/web/chunk-z43td5ad.js.gz +0 -0
  471. package/web/chunk-z8fgdsx5.js +1 -0
  472. package/web/chunk-z8fgdsx5.js.br +0 -0
  473. package/web/chunk-z8fgdsx5.js.gz +0 -0
  474. package/web/chunk-zf42y65m.js +1 -0
  475. package/web/chunk-zf42y65m.js.br +0 -0
  476. package/web/chunk-zf42y65m.js.gz +0 -0
  477. package/web/chunk-zj2rhf4b.js +200 -0
  478. package/web/chunk-zj2rhf4b.js.br +0 -0
  479. package/web/chunk-zj2rhf4b.js.gz +0 -0
  480. package/web/chunk-zkn84jhm.js +2 -0
  481. package/web/chunk-zkn84jhm.js.br +0 -0
  482. package/web/chunk-zkn84jhm.js.gz +0 -0
  483. package/web/index.html +27 -2
  484. package/web/index.html.br +0 -0
  485. package/web/index.html.gz +0 -0
  486. package/web/sw.js +39 -24
  487. package/web/sw.js.br +0 -0
  488. package/web/sw.js.gz +0 -0
  489. package/worker.js +1 -1
  490. package/chunk-00jhevnt.js +0 -3
  491. package/chunk-04tx0etc.js +0 -2
  492. package/chunk-0r86p29p.js +0 -7
  493. package/chunk-10x1zefx.js +0 -25
  494. package/chunk-1amcz1cz.js +0 -10
  495. package/chunk-1pfdps04.js +0 -2
  496. package/chunk-206g40v9.js +0 -59
  497. package/chunk-2364s958.js +0 -7
  498. package/chunk-3fv2qcpg.js +0 -12
  499. package/chunk-3zz4a5tn.js +0 -31
  500. package/chunk-45wfmdts.js +0 -44
  501. package/chunk-4hkwjw05.js +0 -2
  502. package/chunk-4n4wn5cj.js +0 -4014
  503. package/chunk-4pq7ycp2.js +0 -5
  504. package/chunk-5e0qfdgx.js +0 -5
  505. package/chunk-78yngmvf.js +0 -51
  506. package/chunk-7hpf9qq2.js +0 -3
  507. package/chunk-82dkdvs9.js +0 -2
  508. package/chunk-8913dkey.js +0 -3
  509. package/chunk-8g1sbmwf.js +0 -3
  510. package/chunk-8hfch7d0.js +0 -2
  511. package/chunk-90arpvgz.js +0 -2
  512. package/chunk-912knnfg.js +0 -11
  513. package/chunk-97bazdk3.js +0 -20
  514. package/chunk-9akexjfn.js +0 -2
  515. package/chunk-9dgmbwcc.js +0 -2
  516. package/chunk-a454ntda.js +0 -50
  517. package/chunk-acd2cwza.js +0 -3
  518. package/chunk-ach16jbw.js +0 -2
  519. package/chunk-ax823t5v.js +0 -3
  520. package/chunk-b03hg30w.js +0 -2
  521. package/chunk-bh29df86.js +0 -5
  522. package/chunk-bhpg72c4.js +0 -2
  523. package/chunk-bwww6j2q.js +0 -2
  524. package/chunk-c126k8wc.js +0 -2
  525. package/chunk-cb3jgak9.js +0 -3
  526. package/chunk-cjeyy6da.js +0 -3
  527. package/chunk-cs4gb2hb.js +0 -2
  528. package/chunk-en5t6hwd.js +0 -3
  529. package/chunk-f4n1csz0.js +0 -3
  530. package/chunk-j01t6mnq.js +0 -3
  531. package/chunk-j16smb6d.js +0 -2
  532. package/chunk-j7eqp97m.js +0 -2
  533. package/chunk-jdrqn8m1.js +0 -2
  534. package/chunk-jp1gqkbp.js +0 -4
  535. package/chunk-jrcvxscb.js +0 -9
  536. package/chunk-k8zq95wr.js +0 -2
  537. package/chunk-ken7ras9.js +0 -8
  538. package/chunk-kqgpjmcf.js +0 -2
  539. package/chunk-krbdx24j.js +0 -3
  540. package/chunk-ky2ym708.js +0 -8
  541. package/chunk-kzfy666j.js +0 -16
  542. package/chunk-n0stnnxv.js +0 -2
  543. package/chunk-n9m2pagh.js +0 -2
  544. package/chunk-nedvy6yk.js +0 -10
  545. package/chunk-ng5g0fy3.js +0 -3
  546. package/chunk-nqeqasyt.js +0 -7
  547. package/chunk-nt30x5a7.js +0 -3
  548. package/chunk-q1s5r204.js +0 -3
  549. package/chunk-qj0vfk01.js +0 -2
  550. package/chunk-qqfdg01g.js +0 -3
  551. package/chunk-rj6qknjx.js +0 -12
  552. package/chunk-rvrj0nrs.js +0 -3
  553. package/chunk-sbhj5h2q.js +0 -2
  554. package/chunk-t71zzafh.js +0 -3
  555. package/chunk-t7fwvzmh.js +0 -3
  556. package/chunk-tpv5hz99.js +0 -5
  557. package/chunk-tx2rrrtq.js +0 -2
  558. package/chunk-tyzzbhr5.js +0 -3
  559. package/chunk-tzbefwf0.js +0 -286
  560. package/chunk-v4p8807b.js +0 -18
  561. package/chunk-vnxjcym9.js +0 -17
  562. package/chunk-w35r8v6x.js +0 -39
  563. package/chunk-wbygknv2.js +0 -3
  564. package/chunk-wk63htqy.js +0 -2
  565. package/chunk-wwazj6mz.js +0 -3
  566. package/chunk-xpc75mkw.js +0 -25
  567. package/chunk-ypxn8bec.js +0 -3
  568. package/chunk-yztc2q9q.js +0 -490
  569. package/web/chunk-02z7yrhn.js +0 -2
  570. package/web/chunk-02z7yrhn.js.br +0 -0
  571. package/web/chunk-02z7yrhn.js.gz +0 -0
  572. package/web/chunk-0an1eqtf.js +0 -1
  573. package/web/chunk-0an1eqtf.js.br +0 -0
  574. package/web/chunk-0an1eqtf.js.gz +0 -0
  575. package/web/chunk-128zy60g.js +0 -99
  576. package/web/chunk-128zy60g.js.br +0 -0
  577. package/web/chunk-128zy60g.js.gz +0 -0
  578. package/web/chunk-1e2jy7m2.js +0 -139
  579. package/web/chunk-1e2jy7m2.js.br +0 -0
  580. package/web/chunk-1e2jy7m2.js.gz +0 -0
  581. package/web/chunk-1hmw1eaw.js +0 -1
  582. package/web/chunk-1hmw1eaw.js.br +0 -0
  583. package/web/chunk-1hmw1eaw.js.gz +0 -0
  584. package/web/chunk-1v3e001f.js +0 -1
  585. package/web/chunk-1v3e001f.js.br +0 -0
  586. package/web/chunk-1v3e001f.js.gz +0 -0
  587. package/web/chunk-20gcnbgn.js +0 -2
  588. package/web/chunk-20gcnbgn.js.br +0 -0
  589. package/web/chunk-20gcnbgn.js.gz +0 -0
  590. package/web/chunk-214p3rj6.js +0 -41
  591. package/web/chunk-214p3rj6.js.br +0 -0
  592. package/web/chunk-214p3rj6.js.gz +0 -0
  593. package/web/chunk-29byd5kf.js +0 -89
  594. package/web/chunk-29byd5kf.js.br +0 -0
  595. package/web/chunk-29byd5kf.js.gz +0 -0
  596. package/web/chunk-2nwvdqxm.js +0 -1
  597. package/web/chunk-2nwvdqxm.js.br +0 -0
  598. package/web/chunk-2nwvdqxm.js.gz +0 -0
  599. package/web/chunk-2wvgy7f4.js +0 -1
  600. package/web/chunk-2wvgy7f4.js.br +0 -0
  601. package/web/chunk-2wvgy7f4.js.gz +0 -0
  602. package/web/chunk-3fbh1wxk.js +0 -62
  603. package/web/chunk-3fbh1wxk.js.br +0 -0
  604. package/web/chunk-3fbh1wxk.js.gz +0 -0
  605. package/web/chunk-3fnrzj1h.js +0 -98
  606. package/web/chunk-3fnrzj1h.js.br +0 -0
  607. package/web/chunk-3fnrzj1h.js.gz +0 -0
  608. package/web/chunk-3g1095m7.js +0 -78
  609. package/web/chunk-3g1095m7.js.br +0 -0
  610. package/web/chunk-3g1095m7.js.gz +0 -0
  611. package/web/chunk-3nn7w4hw.js +0 -2
  612. package/web/chunk-3nn7w4hw.js.br +0 -0
  613. package/web/chunk-3nn7w4hw.js.gz +0 -0
  614. package/web/chunk-3qa8xcdr.js +0 -1
  615. package/web/chunk-3qa8xcdr.js.br +0 -0
  616. package/web/chunk-3qa8xcdr.js.gz +0 -0
  617. package/web/chunk-3x69jfmh.js +0 -332
  618. package/web/chunk-3x69jfmh.js.br +0 -0
  619. package/web/chunk-3x69jfmh.js.gz +0 -0
  620. package/web/chunk-414npx47.js +0 -1
  621. package/web/chunk-414npx47.js.br +0 -0
  622. package/web/chunk-414npx47.js.gz +0 -0
  623. package/web/chunk-4v6m77sv.css +0 -1
  624. package/web/chunk-4v6m77sv.css.br +0 -0
  625. package/web/chunk-4v6m77sv.css.gz +0 -0
  626. package/web/chunk-4vk6xma5.js +0 -1
  627. package/web/chunk-4vk6xma5.js.br +0 -0
  628. package/web/chunk-4vk6xma5.js.gz +0 -0
  629. package/web/chunk-50pdas2t.js +0 -1
  630. package/web/chunk-50pdas2t.js.br +0 -0
  631. package/web/chunk-50pdas2t.js.gz +0 -0
  632. package/web/chunk-56a6zytc.js +0 -1139
  633. package/web/chunk-56a6zytc.js.br +0 -0
  634. package/web/chunk-56a6zytc.js.gz +0 -0
  635. package/web/chunk-5ckj4zez.js +0 -1
  636. package/web/chunk-5ckj4zez.js.br +0 -2
  637. package/web/chunk-5ckj4zez.js.gz +0 -0
  638. package/web/chunk-5mr8z024.js +0 -2
  639. package/web/chunk-5mr8z024.js.br +0 -0
  640. package/web/chunk-5mr8z024.js.gz +0 -0
  641. package/web/chunk-5q4pemdh.js +0 -1
  642. package/web/chunk-5q4pemdh.js.br +0 -0
  643. package/web/chunk-5q4pemdh.js.gz +0 -0
  644. package/web/chunk-63ft76vs.js +0 -1
  645. package/web/chunk-63ft76vs.js.br +0 -0
  646. package/web/chunk-63ft76vs.js.gz +0 -0
  647. package/web/chunk-67ynxnvq.js +0 -8
  648. package/web/chunk-67ynxnvq.js.br +0 -0
  649. package/web/chunk-67ynxnvq.js.gz +0 -0
  650. package/web/chunk-6c2pv79h.js +0 -1
  651. package/web/chunk-6c2pv79h.js.br +0 -0
  652. package/web/chunk-6c2pv79h.js.gz +0 -0
  653. package/web/chunk-719tz8xw.js +0 -1
  654. package/web/chunk-719tz8xw.js.br +0 -0
  655. package/web/chunk-719tz8xw.js.gz +0 -0
  656. package/web/chunk-77nxgqqb.js +0 -4
  657. package/web/chunk-77nxgqqb.js.br +0 -0
  658. package/web/chunk-77nxgqqb.js.gz +0 -0
  659. package/web/chunk-7c59jb8d.js +0 -2
  660. package/web/chunk-7c59jb8d.js.br +0 -0
  661. package/web/chunk-7c59jb8d.js.gz +0 -0
  662. package/web/chunk-7ed5jf6e.js +0 -36
  663. package/web/chunk-7ed5jf6e.js.br +0 -0
  664. package/web/chunk-7ed5jf6e.js.gz +0 -0
  665. package/web/chunk-891bpx3c.js +0 -70
  666. package/web/chunk-891bpx3c.js.br +0 -0
  667. package/web/chunk-891bpx3c.js.gz +0 -0
  668. package/web/chunk-8h4dc48v.js +0 -292
  669. package/web/chunk-8h4dc48v.js.br +0 -0
  670. package/web/chunk-8h4dc48v.js.gz +0 -0
  671. package/web/chunk-96n00vam.js +0 -1
  672. package/web/chunk-96n00vam.js.br +0 -0
  673. package/web/chunk-96n00vam.js.gz +0 -0
  674. package/web/chunk-99c0h3v7.js +0 -1
  675. package/web/chunk-99c0h3v7.js.br +0 -0
  676. package/web/chunk-99c0h3v7.js.gz +0 -0
  677. package/web/chunk-9bs7khrr.js +0 -24
  678. package/web/chunk-9bs7khrr.js.br +0 -0
  679. package/web/chunk-9bs7khrr.js.gz +0 -0
  680. package/web/chunk-9ctyqr3n.js +0 -169
  681. package/web/chunk-9ctyqr3n.js.br +0 -0
  682. package/web/chunk-9ctyqr3n.js.gz +0 -0
  683. package/web/chunk-9qdx0ekk.js +0 -142
  684. package/web/chunk-9qdx0ekk.js.br +0 -0
  685. package/web/chunk-9qdx0ekk.js.gz +0 -0
  686. package/web/chunk-9r0rnt6d.js +0 -214
  687. package/web/chunk-9r0rnt6d.js.br +0 -0
  688. package/web/chunk-9r0rnt6d.js.gz +0 -0
  689. package/web/chunk-aan5qk6x.js +0 -1
  690. package/web/chunk-aan5qk6x.js.br +0 -0
  691. package/web/chunk-aan5qk6x.js.gz +0 -0
  692. package/web/chunk-ac9g3w7v.js +0 -1
  693. package/web/chunk-ac9g3w7v.js.br +0 -0
  694. package/web/chunk-ac9g3w7v.js.gz +0 -0
  695. package/web/chunk-ackts7ph.js +0 -24
  696. package/web/chunk-ackts7ph.js.br +0 -0
  697. package/web/chunk-ackts7ph.js.gz +0 -0
  698. package/web/chunk-asyqrf38.js +0 -1
  699. package/web/chunk-asyqrf38.js.br +0 -0
  700. package/web/chunk-asyqrf38.js.gz +0 -0
  701. package/web/chunk-b13crsv9.js +0 -1
  702. package/web/chunk-b13crsv9.js.br +0 -0
  703. package/web/chunk-b13crsv9.js.gz +0 -0
  704. package/web/chunk-brg2zcv5.js +0 -55
  705. package/web/chunk-brg2zcv5.js.br +0 -0
  706. package/web/chunk-brg2zcv5.js.gz +0 -0
  707. package/web/chunk-c3d08dw1.js +0 -1
  708. package/web/chunk-c3d08dw1.js.br +0 -0
  709. package/web/chunk-c3d08dw1.js.gz +0 -0
  710. package/web/chunk-cgwnzse1.js +0 -16
  711. package/web/chunk-cgwnzse1.js.br +0 -0
  712. package/web/chunk-cgwnzse1.js.gz +0 -0
  713. package/web/chunk-cm4fjb6j.js +0 -2
  714. package/web/chunk-cm4fjb6j.js.br +0 -0
  715. package/web/chunk-cm4fjb6j.js.gz +0 -0
  716. package/web/chunk-cys4n4sv.js +0 -1
  717. package/web/chunk-cys4n4sv.js.br +0 -0
  718. package/web/chunk-cys4n4sv.js.gz +0 -0
  719. package/web/chunk-d5n2yz4e.js +0 -2
  720. package/web/chunk-d5n2yz4e.js.br +0 -0
  721. package/web/chunk-d5n2yz4e.js.gz +0 -0
  722. package/web/chunk-djrvdzsb.js +0 -89
  723. package/web/chunk-djrvdzsb.js.br +0 -0
  724. package/web/chunk-djrvdzsb.js.gz +0 -0
  725. package/web/chunk-dsffzc1e.js +0 -2
  726. package/web/chunk-dsffzc1e.js.br +0 -0
  727. package/web/chunk-dsffzc1e.js.gz +0 -0
  728. package/web/chunk-e1wy8050.js +0 -370
  729. package/web/chunk-e1wy8050.js.br +0 -0
  730. package/web/chunk-e1wy8050.js.gz +0 -0
  731. package/web/chunk-e4cwyn1g.js +0 -2
  732. package/web/chunk-e4cwyn1g.js.br +0 -0
  733. package/web/chunk-e4cwyn1g.js.gz +0 -0
  734. package/web/chunk-ebknmxdp.js +0 -2
  735. package/web/chunk-ebknmxdp.js.br +0 -0
  736. package/web/chunk-ebknmxdp.js.gz +0 -0
  737. package/web/chunk-efjc9mga.js +0 -2
  738. package/web/chunk-efjc9mga.js.br +0 -0
  739. package/web/chunk-efjc9mga.js.gz +0 -0
  740. package/web/chunk-egjv760p.js +0 -2
  741. package/web/chunk-egjv760p.js.br +0 -0
  742. package/web/chunk-egjv760p.js.gz +0 -0
  743. package/web/chunk-etpd8y98.js +0 -1
  744. package/web/chunk-etpd8y98.js.br +0 -0
  745. package/web/chunk-etpd8y98.js.gz +0 -0
  746. package/web/chunk-f5kr9p2k.js +0 -1
  747. package/web/chunk-f5kr9p2k.js.br +0 -2
  748. package/web/chunk-f5kr9p2k.js.gz +0 -0
  749. package/web/chunk-f5wyg9zh.js +0 -2
  750. package/web/chunk-f5wyg9zh.js.br +0 -0
  751. package/web/chunk-f5wyg9zh.js.gz +0 -0
  752. package/web/chunk-fjhqg9ag.js +0 -2
  753. package/web/chunk-fjhqg9ag.js.br +0 -0
  754. package/web/chunk-fjhqg9ag.js.gz +0 -0
  755. package/web/chunk-ftdzs90e.js +0 -1
  756. package/web/chunk-ftdzs90e.js.br +0 -0
  757. package/web/chunk-ftdzs90e.js.gz +0 -0
  758. package/web/chunk-fyr6rm2p.js +0 -2
  759. package/web/chunk-fyr6rm2p.js.br +0 -0
  760. package/web/chunk-fyr6rm2p.js.gz +0 -0
  761. package/web/chunk-grjq1g15.js +0 -1
  762. package/web/chunk-grjq1g15.js.br +0 -0
  763. package/web/chunk-grjq1g15.js.gz +0 -0
  764. package/web/chunk-gvndjaan.js +0 -2
  765. package/web/chunk-gvndjaan.js.br +0 -0
  766. package/web/chunk-gvndjaan.js.gz +0 -0
  767. package/web/chunk-h4bzgvbg.js +0 -303
  768. package/web/chunk-h4bzgvbg.js.br +0 -0
  769. package/web/chunk-h4bzgvbg.js.gz +0 -0
  770. package/web/chunk-heen0v5d.js +0 -12
  771. package/web/chunk-heen0v5d.js.br +0 -0
  772. package/web/chunk-heen0v5d.js.gz +0 -0
  773. package/web/chunk-henez15c.js +0 -4
  774. package/web/chunk-henez15c.js.br +0 -0
  775. package/web/chunk-henez15c.js.gz +0 -0
  776. package/web/chunk-hpcvwdkg.js +0 -1
  777. package/web/chunk-hpcvwdkg.js.br +0 -0
  778. package/web/chunk-hpcvwdkg.js.gz +0 -0
  779. package/web/chunk-hpvyk6rz.js +0 -324
  780. package/web/chunk-hpvyk6rz.js.br +0 -0
  781. package/web/chunk-hpvyk6rz.js.gz +0 -0
  782. package/web/chunk-hzvff525.js +0 -2
  783. package/web/chunk-hzvff525.js.br +0 -0
  784. package/web/chunk-hzvff525.js.gz +0 -0
  785. package/web/chunk-j0dyf1g8.js +0 -2
  786. package/web/chunk-j0dyf1g8.js.br +0 -3
  787. package/web/chunk-j0dyf1g8.js.gz +0 -0
  788. package/web/chunk-jb89v31q.js +0 -1
  789. package/web/chunk-jb89v31q.js.br +0 -0
  790. package/web/chunk-jb89v31q.js.gz +0 -0
  791. package/web/chunk-jb949ewp.js +0 -217
  792. package/web/chunk-jb949ewp.js.br +0 -0
  793. package/web/chunk-jb949ewp.js.gz +0 -0
  794. package/web/chunk-je4bf95v.js +0 -1
  795. package/web/chunk-je4bf95v.js.br +0 -0
  796. package/web/chunk-je4bf95v.js.gz +0 -0
  797. package/web/chunk-js6c1973.js +0 -1
  798. package/web/chunk-js6c1973.js.br +0 -0
  799. package/web/chunk-js6c1973.js.gz +0 -0
  800. package/web/chunk-k140nr54.js +0 -1
  801. package/web/chunk-k140nr54.js.br +0 -0
  802. package/web/chunk-k140nr54.js.gz +0 -0
  803. package/web/chunk-k89686qj.js +0 -2
  804. package/web/chunk-k89686qj.js.br +0 -0
  805. package/web/chunk-k89686qj.js.gz +0 -0
  806. package/web/chunk-kknrn2wb.js +0 -84
  807. package/web/chunk-kknrn2wb.js.br +0 -0
  808. package/web/chunk-kknrn2wb.js.gz +0 -0
  809. package/web/chunk-mhtzdq9d.js +0 -140
  810. package/web/chunk-mhtzdq9d.js.br +0 -0
  811. package/web/chunk-mhtzdq9d.js.gz +0 -0
  812. package/web/chunk-mqdvg55y.js +0 -2
  813. package/web/chunk-mqdvg55y.js.br +0 -0
  814. package/web/chunk-mqdvg55y.js.gz +0 -0
  815. package/web/chunk-mrnj2k3v.js +0 -2
  816. package/web/chunk-mrnj2k3v.js.br +0 -0
  817. package/web/chunk-mrnj2k3v.js.gz +0 -0
  818. package/web/chunk-my0k5w7f.js +0 -39
  819. package/web/chunk-my0k5w7f.js.br +0 -0
  820. package/web/chunk-my0k5w7f.js.gz +0 -0
  821. package/web/chunk-n08727ym.js +0 -34
  822. package/web/chunk-n08727ym.js.br +0 -0
  823. package/web/chunk-n08727ym.js.gz +0 -0
  824. package/web/chunk-n5ghyxwk.js +0 -38
  825. package/web/chunk-n5ghyxwk.js.br +0 -0
  826. package/web/chunk-n5ghyxwk.js.gz +0 -0
  827. package/web/chunk-ngsv0xfb.js +0 -1
  828. package/web/chunk-ngsv0xfb.js.br +0 -0
  829. package/web/chunk-ngsv0xfb.js.gz +0 -0
  830. package/web/chunk-nt21rjrm.js +0 -21
  831. package/web/chunk-nt21rjrm.js.br +0 -0
  832. package/web/chunk-nt21rjrm.js.gz +0 -0
  833. package/web/chunk-nzgj9qx5.js +0 -2
  834. package/web/chunk-nzgj9qx5.js.br +0 -0
  835. package/web/chunk-nzgj9qx5.js.gz +0 -0
  836. package/web/chunk-p9wm0dv3.js +0 -1
  837. package/web/chunk-p9wm0dv3.js.br +0 -0
  838. package/web/chunk-p9wm0dv3.js.gz +0 -0
  839. package/web/chunk-pqh9yszs.js +0 -106
  840. package/web/chunk-pqh9yszs.js.br +0 -0
  841. package/web/chunk-pqh9yszs.js.gz +0 -0
  842. package/web/chunk-q0vsqq43.js +0 -1
  843. package/web/chunk-q0vsqq43.js.br +0 -0
  844. package/web/chunk-q0vsqq43.js.gz +0 -0
  845. package/web/chunk-qv5d69fn.js +0 -2
  846. package/web/chunk-qv5d69fn.js.br +0 -0
  847. package/web/chunk-qv5d69fn.js.gz +0 -0
  848. package/web/chunk-r7afv22v.js +0 -2
  849. package/web/chunk-r7afv22v.js.br +0 -0
  850. package/web/chunk-r7afv22v.js.gz +0 -0
  851. package/web/chunk-rc6at4k5.js +0 -291
  852. package/web/chunk-rc6at4k5.js.br +0 -0
  853. package/web/chunk-rc6at4k5.js.gz +0 -0
  854. package/web/chunk-rj1rp0tc.js +0 -1
  855. package/web/chunk-rj1rp0tc.js.br +0 -0
  856. package/web/chunk-rj1rp0tc.js.gz +0 -0
  857. package/web/chunk-rnsvrehz.js +0 -30
  858. package/web/chunk-rnsvrehz.js.br +0 -0
  859. package/web/chunk-rnsvrehz.js.gz +0 -0
  860. package/web/chunk-rsmhn1fq.js +0 -1
  861. package/web/chunk-rsmhn1fq.js.br +0 -0
  862. package/web/chunk-rsmhn1fq.js.gz +0 -0
  863. package/web/chunk-s00gxcxn.js +0 -2
  864. package/web/chunk-s00gxcxn.js.br +0 -0
  865. package/web/chunk-s00gxcxn.js.gz +0 -0
  866. package/web/chunk-s1p271av.js +0 -1
  867. package/web/chunk-s1p271av.js.br +0 -0
  868. package/web/chunk-s1p271av.js.gz +0 -0
  869. package/web/chunk-s6a13wxe.js +0 -2
  870. package/web/chunk-s6a13wxe.js.br +0 -0
  871. package/web/chunk-s6a13wxe.js.gz +0 -0
  872. package/web/chunk-sc4kwbnh.js +0 -1
  873. package/web/chunk-sc4kwbnh.js.br +0 -2
  874. package/web/chunk-sc4kwbnh.js.gz +0 -0
  875. package/web/chunk-scebh2ee.js +0 -1
  876. package/web/chunk-scebh2ee.js.br +0 -0
  877. package/web/chunk-scebh2ee.js.gz +0 -0
  878. package/web/chunk-shtkgxz6.js +0 -2
  879. package/web/chunk-shtkgxz6.js.br +0 -0
  880. package/web/chunk-shtkgxz6.js.gz +0 -0
  881. package/web/chunk-spmfwbhd.js +0 -1
  882. package/web/chunk-spmfwbhd.js.br +0 -0
  883. package/web/chunk-spmfwbhd.js.gz +0 -0
  884. package/web/chunk-svtenejf.js +0 -1
  885. package/web/chunk-svtenejf.js.br +0 -0
  886. package/web/chunk-svtenejf.js.gz +0 -0
  887. package/web/chunk-szwh742y.js +0 -2
  888. package/web/chunk-szwh742y.js.br +0 -0
  889. package/web/chunk-szwh742y.js.gz +0 -0
  890. package/web/chunk-t9z1bp8j.js +0 -3
  891. package/web/chunk-t9z1bp8j.js.br +0 -0
  892. package/web/chunk-t9z1bp8j.js.gz +0 -0
  893. package/web/chunk-tnttdgsc.js +0 -1
  894. package/web/chunk-tnttdgsc.js.br +0 -0
  895. package/web/chunk-tnttdgsc.js.gz +0 -0
  896. package/web/chunk-tntwwpyh.js +0 -2
  897. package/web/chunk-tntwwpyh.js.br +0 -0
  898. package/web/chunk-tntwwpyh.js.gz +0 -0
  899. package/web/chunk-tp3fpa0t.js +0 -1
  900. package/web/chunk-tp3fpa0t.js.br +0 -0
  901. package/web/chunk-tp3fpa0t.js.gz +0 -0
  902. package/web/chunk-txdkp6yc.js +0 -7
  903. package/web/chunk-txdkp6yc.js.br +0 -0
  904. package/web/chunk-txdkp6yc.js.gz +0 -0
  905. package/web/chunk-v34mwgx8.js +0 -1
  906. package/web/chunk-v34mwgx8.js.br +0 -0
  907. package/web/chunk-v34mwgx8.js.gz +0 -0
  908. package/web/chunk-vayamfxv.js +0 -1
  909. package/web/chunk-vayamfxv.js.br +0 -0
  910. package/web/chunk-vayamfxv.js.gz +0 -0
  911. package/web/chunk-vndrjeyr.js +0 -2
  912. package/web/chunk-vndrjeyr.js.br +0 -0
  913. package/web/chunk-vndrjeyr.js.gz +0 -0
  914. package/web/chunk-vtp01n96.js +0 -1
  915. package/web/chunk-vtp01n96.js.br +0 -0
  916. package/web/chunk-vtp01n96.js.gz +0 -0
  917. package/web/chunk-vx1qmkbm.js +0 -120
  918. package/web/chunk-vx1qmkbm.js.br +0 -0
  919. package/web/chunk-vx1qmkbm.js.gz +0 -0
  920. package/web/chunk-vxx451tt.js +0 -1
  921. package/web/chunk-vxx451tt.js.br +0 -0
  922. package/web/chunk-vxx451tt.js.gz +0 -0
  923. package/web/chunk-w8epfc0c.js +0 -1
  924. package/web/chunk-w8epfc0c.js.br +0 -0
  925. package/web/chunk-w8epfc0c.js.gz +0 -0
  926. package/web/chunk-wdd9pasx.js +0 -1
  927. package/web/chunk-wdd9pasx.js.br +0 -0
  928. package/web/chunk-wdd9pasx.js.gz +0 -0
  929. package/web/chunk-whgh2r7d.js +0 -200
  930. package/web/chunk-whgh2r7d.js.br +0 -0
  931. package/web/chunk-whgh2r7d.js.gz +0 -0
  932. package/web/chunk-x0p1n5ws.js +0 -1
  933. package/web/chunk-x0p1n5ws.js.br +0 -2
  934. package/web/chunk-x0p1n5ws.js.gz +0 -0
  935. package/web/chunk-x2tk9zeq.js +0 -1
  936. package/web/chunk-x2tk9zeq.js.br +0 -0
  937. package/web/chunk-x2tk9zeq.js.gz +0 -0
  938. package/web/chunk-xbt045kt.js +0 -1
  939. package/web/chunk-xbt045kt.js.br +0 -2
  940. package/web/chunk-xbt045kt.js.gz +0 -0
  941. package/web/chunk-xh3agbvb.js +0 -7
  942. package/web/chunk-xh3agbvb.js.br +0 -0
  943. package/web/chunk-xh3agbvb.js.gz +0 -0
  944. package/web/chunk-xpw1spgj.js +0 -40
  945. package/web/chunk-xpw1spgj.js.br +0 -0
  946. package/web/chunk-xpw1spgj.js.gz +0 -0
  947. package/web/chunk-y2jkaf1e.js +0 -2
  948. package/web/chunk-y2jkaf1e.js.br +0 -0
  949. package/web/chunk-y2jkaf1e.js.gz +0 -0
  950. package/web/chunk-yp2jydfj.js +0 -1
  951. package/web/chunk-yp2jydfj.js.br +0 -0
  952. package/web/chunk-yp2jydfj.js.gz +0 -0
  953. package/web/chunk-yxp1es3b.js +0 -1
  954. package/web/chunk-yxp1es3b.js.br +0 -0
  955. package/web/chunk-yxp1es3b.js.gz +0 -0
  956. package/web/chunk-yzrww95m.js +0 -7
  957. package/web/chunk-yzrww95m.js.br +0 -0
  958. package/web/chunk-yzrww95m.js.gz +0 -0
  959. package/web/chunk-z502b5p0.js +0 -1
  960. package/web/chunk-z502b5p0.js.br +0 -0
  961. package/web/chunk-z502b5p0.js.gz +0 -0
  962. package/web/chunk-zny7cya7.js +0 -1
  963. package/web/chunk-zny7cya7.js.br +0 -2
  964. package/web/chunk-zny7cya7.js.gz +0 -0
  965. package/web/chunk-zq1qbaxb.js +0 -2
  966. package/web/chunk-zq1qbaxb.js.br +0 -0
  967. package/web/chunk-zq1qbaxb.js.gz +0 -0
  968. /package/{chunk-h4bvkm6p.js → chunk-2h2mvrw2.js} +0 -0
  969. /package/{chunk-51f8zbj5.js → chunk-54zpktrq.js} +0 -0
  970. /package/{chunk-fqfjjhkj.js → chunk-aq6xkc1w.js} +0 -0
  971. /package/{chunk-chfzk1fx.js → chunk-et2s8y6a.js} +0 -0
  972. /package/{chunk-pa7yh2q3.js → chunk-fgpzy3fe.js} +0 -0
@@ -1,200 +0,0 @@
1
- import{t,i,Ie,st,C,L,M,R,P,I,O,D,d,vr,Ur,g,Gt,Wt,H,kt,De,Ne,Me,Ot,si,He,Ue}from"./chunk-h4bzgvbg.js";import{On}from"./chunk-shtkgxz6.js";import{Et}from"./chunk-cgwnzse1.js";import{$n}from"./chunk-j0dyf1g8.js";import{ze}from"./chunk-r7afv22v.js";import{Re}from"./chunk-qv5d69fn.js";var St={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},P1=new Set([St.SHAPE_UNSUPPORTED,St.SHAPE_REMOVED,St.CONTAINMENT_VIOLATION]),xs=new Set(Object.values(St).filter((e)=>!P1.has(e))),G1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),U1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),j1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),At="roundedRect";function Ct(e){if(!e)return e;return G1.get(e)??e}t(Ct,"resolveShapeAlias");function D1(e,n){for(let a of e){if(a.isGroup)continue;if(!a.shape||a.shape==="squareRect"||a.shape==="rect")a.shape=At;if(U1.has(a.shape)){let o=`shape "${a.shape}" was removed in v0.8.1, using "${At}"`;if(n?.emitError)n.emitError("SHAPE_REMOVED",o,{nodeId:a.id});else i.warn(`agentflow: ${o}`);a.shape=At;continue}if(!j1.has(a.shape)){let o=`shape "${a.shape}" is not supported, using "${At}"`;if(n?.emitWarning)n.emitWarning("SHAPE_UNSUPPORTED",o,{nodeId:a.id});else i.warn(`agentflow: ${o}`);a.shape=At}}}t(D1,"normaliseNodeShapes");var t1=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),_1=t1.size,v1=t((e)=>`af-kind-${e}`,"kindClass"),z1=[...t1.keys()],F1=t((e)=>Math.max(1,e-_1),"containerSlotCount"),V1=t((e,n)=>{let a=_1+e%F1(n);return n>0?a%n:a},"containerSlot");function I1(e,n,a){let o=d().themeVariables?.borderColorArray,c=Array.isArray(o)?o.length:0,h=a.size;for(let u of e??[]){if(u.isGroup||u.shape==="collapsedGroup"){let m=a.get(String(u.id))??h++;u.colorIndex=V1(m,c);continue}let p=n(String(u.id));if(p&&t1.has(p))u.cssClasses=`${u.cssClasses??""} ${v1(p)}`.replace(/\s+/g," ").trim()}}t(I1,"assignColorSlots");var T1="agentflow-",u1=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),W1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),K1={flow:"flowGroup"};function e1(e){if(Array.isArray(e))return e.map((a)=>e1(a));if(e===null||typeof e!=="object")return e;let n={};for(let a of Object.keys(e)){if(a==="__proto__"||a==="constructor"||a==="prototype")continue;n[a]=e1(e[a])}return n}t(e1,"stripPrototypeKeys");function L1(e){let n=!1,a=!1,o=0,c,h=[];for(let u of e.split(`
2
- `)){if(c!==void 0){let A=u.length-u.trimStart().length;if(u.trim()===""||A>c){h.push(u);continue}c=void 0}let p=-1;for(let A=0;A<u.length;A++){let S=u[A];if(a){if(S==="\\")A++;else if(S==='"')a=!1}else if(n){if(S==="'")n=!1}else if(S==='"')a=!0;else if(S==="'")n=!0;else if(S==="#"&&(A===0||u[A-1]===" "||u[A-1]==="\t")){p=A;break}else if(S==="["||S==="{")o++;else if(S==="]"||S==="}")o=Math.max(0,o-1)}if(n||a||o>0){h.push(u);continue}let m=p>=0?u.slice(0,p):u,k=p>=0?u.slice(p):"";if(/:\s*[>|][\d+-]*\s*$/.test(m)){c=u.length-u.trimStart().length,h.push(u);continue}h.push(m.replace(/,([\t ]*)$/,"$1")+k)}return h.join(`
3
- `)}t(L1,"stripLineTrailingCommas");var H1=class{constructor(){this.vertexCounter=0,this.config=d(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=M,this.setAccDescription=P,this.setDiagramTitle=O,this.getAccTitle=R,this.getAccDescription=I,this.getDiagramTitle=D,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{t(this,"AgentFlowDB")}sanitizeText(e){return C.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let n of this.vertices.values())if(n.id===e)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,n,a,o,c,h,u={},p,m){if(!e||e.trim().length===0)return;let k;if(p!==void 0){let E;if(!p.includes(`
4
- `))E=`{
5
- `+p+`
6
- }`;else E=p+`
7
- `;try{k=Wt(E,{schema:Gt})??{}}catch(f){let b=p.includes(`
8
- `)?L1(p):p;if(b!==p)try{k=Wt(b+`
9
- `,{schema:Gt})??{}}catch{this.rethrowMetadataYamlError(f,p,m)}else this.rethrowMetadataYamlError(f,p,m)}k=e1(k)}let A;if(k&&typeof k.shape==="string"){let E=k;A=E.shape;let f=Ct(A);if(f&&f!==A)E.shape=f}let S=this.subGraphLookup.get(e);if(S&&k){S.metadata={...S.metadata,...k};return}let w=this.connectors.get(e);if(w&&k){w.metadata={...w.metadata,...k};return}if(e==="connectors")return;let v=this.edges.find((E)=>E.id===e);if(v){let E=k;if(E?.animate!==void 0)v.animate=E.animate;if(E?.animation!==void 0)v.animation=E.animation;if(E?.curve!==void 0)v.interpolate=E.curve;if(k)v.metadata={...v.metadata,...k};return}let z,V=this.vertices.get(e);if(V===void 0)V={id:e,labelType:"text",domId:T1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,V);if(this.vertexCounter++,n!==void 0){if(this.config=d(),z=this.sanitizeText(n.text.trim()),V.labelType=n.type,z.startsWith('"')&&z.endsWith('"'))z=z.substring(1,z.length-1);V.text=z}else if(V.text===void 0)V.text=e;if(a!==void 0)V.type=a;if(o!==void 0&&o!==null)o.forEach((E)=>{V.styles.push(E)});if(c!==void 0&&c!==null)c.forEach((E)=>{V.classes.push(E)});if(h!==void 0)V.dir=h;if(V.props===void 0)V.props=u;else if(u!==void 0)Object.assign(V.props,u);if(k){if(V.metadata={...V.metadata,...k},k.shape){let E=A??k.shape;if(typeof E!=="string")throw this.positionedShapeError(`No such shape: ${JSON.stringify(E)}.`,m);if(E!==E.toLowerCase()||E.includes("_"))throw this.positionedShapeError(`No such shape: ${E}. Shape names should be lowercase.`,m);else if(!si(k.shape))throw this.positionedShapeError(`No such shape: ${k.shape}.`,m);V.type=k?.shape}if(k?.label)V.text=this.sanitizeText(k.label),V.labelType=this.sanitizeNodeLabelType(k?.labelType)}}positionedShapeError(e,n){let a=Error(e);if(!n)return a;let o=n.first_line+this.frontmatterLineOffset;return Object.assign(a,{hash:{text:"",token:null,line:o-1,loc:{first_line:o,last_line:n.last_line+this.frontmatterLineOffset,first_column:n.first_column,last_column:n.last_column},expected:[]}}),a}rethrowMetadataYamlError(e,n,a){let o=e;if(!o||o.name!=="YAMLException"||!o.mark||!a)throw e;let c;try{let h=!n.includes(`
10
- `),u=h?`{
11
- `+n+`
12
- }`:n+`
13
- `,p=a.first_line+this.frontmatterLineOffset,m=a.first_column+2,k=t((E,f)=>{if(h)return{line:p,column:m+(E===1?f:0)};return{line:p+E,column:E===0?m+f:f}},"toSource"),A=k(o.mark.line,o.mark.column),S=o.reason??(o.message??"").split(`
14
- `)[0].replace(/\s*\(\d+:\d+\)\s*$/,""),w=u.split(`
15
- `),v=[];if(h)v.push(1);else for(let E=o.mark.line-1;E<=o.mark.line+1;E++){if(E<0||E>=w.length)continue;if(E===w.length-1&&w[E]===""&&E!==o.mark.line)continue;v.push(E)}let z=Math.max(...v.map((E)=>String(k(E,0).line).length)),V=[];for(let E of v){let f=k(E,0).line,b=` ${String(f).padStart(z)} | `;if(V.push(b+w[E].replace(/\t/g,"→")),E===o.mark.line)V.push("-".repeat(b.length+o.mark.column)+"^")}c={message:`${S} (${A.line}:${A.column+1})
16
-
17
- ${V.join(`
18
- `)}`,markLine:A.line-1,markColumn:A.column,hash:{text:"",token:null,line:A.line-1,loc:{first_line:A.line,last_line:A.line,first_column:A.column,last_column:A.column+1},expected:[]}}}catch{}if(c)o.message=c.message,o.mark.line=c.markLine,o.mark.column=c.markColumn,o.hash=c.hash;throw o}addSingleLink(e,n,a,o){let u={start:e,end:n,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};i.info("abc78 Got edge...",u);let p=a.text;if(p!==void 0){if(u.text=this.sanitizeText(p.text.trim()),u.text.startsWith('"')&&u.text.endsWith('"'))u.text=u.text.substring(1,u.text.length-1);u.labelType=this.sanitizeNodeLabelType(p.type)}if(a!==void 0){if(u.type=a.type,u.stroke=a.stroke,u.length=a.length>10?10:a.length,a.edgeSemantic)u.edgeSemantic=a.edgeSemantic}if(o&&!this.edges.some((m)=>m.id===o))u.id=o,u.isUserDefinedId=!0;else{let m=this.edges.filter((k)=>k.start===u.start&&k.end===u.end);if(m.length===0)u.id=kt(u.start,u.end,{counter:0,prefix:"L"});else u.id=kt(u.start,u.end,{counter:m.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))i.info("Pushing edge..."),this.edges.push(u);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
19
-
20
- Initialize mermaid with maxEdges set to a higher number to allow more edges.
21
- You cannot set this config via configuration inside the diagram as it is a secure config.
22
- You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,n,a){let o=this.isLinkData(a)?a.id.replace("@",""):void 0;i.info("addLink",e,n,o);for(let c of e)for(let h of n){let u=c===e[e.length-1],p=h===n[0];if(u&&p)this.addSingleLink(c,h,a,o);else this.addSingleLink(c,h,a,void 0)}}updateLinkInterpolate(e,n){e.forEach((a)=>{if(a==="default"){this.edges.defaultInterpolate=n;return}if(typeof a==="number"&&a>=this.edges.length)throw Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[a].interpolate=n})}updateLink(e,n){e.forEach((a)=>{if(typeof a==="number"&&a>=this.edges.length)throw Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(a==="default")this.edges.defaultStyle=n;else if(this.edges[a].style=n,(this.edges[a]?.style?.length??0)>0&&!this.edges[a]?.style?.some((o)=>o?.startsWith("fill")))this.edges[a]?.style?.push("fill:none")})}addClass(e,n){let a=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((o)=>{let c=this.classes.get(o);if(c===void 0)c={id:o,styles:[],textStyles:[]},this.classes.set(o,c);if(a!==void 0&&a!==null)a.forEach((h)=>{if(/color/.exec(h)){let u=h.replace("fill","bgFill");c.textStyles.push(u)}c.styles.push(h)})})}setDirection(e){if(this.direction=e.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,n){for(let a of e.split(",")){let o=this.vertices.get(a);if(o)o.classes.push(n);let c=this.edges.find((u)=>u.id===a);if(c)c.classes.push(n);let h=this.subGraphLookup.get(a);if(h)h.classes.push(n)}}setTooltip(e,n){if(n===void 0)return;n=this.sanitizeText(n);for(let a of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,n)}setClickFun(e,n,a){if(d().securityLevel!=="loose")return;if(n===void 0)return;let o=[];if(typeof a==="string"){o=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<o.length;h++){let u=o[h].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);o[h]=u}}if(o.length===0)o.push(e);let c=this.vertices.get(e);if(c)c.haveCallback=!0,this.funs.push(()=>{let h=this.lookUpDomId(e),u=document.querySelector(`[id="${h}"]`);if(u!==null)u.addEventListener("click",()=>{H.runFunc(n,...o)},!1)})}setLink(e,n,a){e.split(",").forEach((o)=>{let c=this.vertices.get(o);if(c!==void 0)c.link=H.formatUrl(n,this.config),c.linkTarget=a}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,n,a){e.split(",").forEach((o)=>{this.setClickFun(o,n,a)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((n)=>{n(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return W1.has(e.type)}getTools(){let e=[];for(let n of this.vertices.values())if(this.isToolDefinition(n))e.push(n);return e}getClasses(){return this.classes}setupToolTips(e){let n=On();g(e).select("svg").selectAll("g.node").on("mouseover",(c)=>{let h=g(c.currentTarget),u=h.attr("title");if(u===null)return;let p=c.currentTarget?.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(h.attr("title")).style("left",window.scrollX+p.left+(p.right-p.left)/2+"px").style("top",window.scrollY+p.bottom+"px"),n.html(st.sanitize(u)),h.classed("hover",!0)}).on("mouseout",(c)=>{n.transition().duration(500).style("opacity",0),g(c.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=d(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,L()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,n,a,o){let c=e?.text?.trim(),h=a?.text;if(e===a&&a?.text&&/\s/.exec(a.text))c=void 0;let p=t((v)=>{let z={boolean:{},number:{},string:{}},V=[],E;return{nodeList:v.filter(function(b){let F=typeof b;if(b.stmt&&b.stmt==="dir")return E=b.value,!1;if(b.trim()==="")return!1;if(F in z)return z[F].hasOwnProperty(b)?!1:z[F][b]=!0;else return V.includes(b)?!1:V.push(b)}),dir:E}},"uniq")(n.flat()),{nodeList:m,dir:k}=p,A=d().flowchart??{};if(k=k??(A.inheritDir?this.getDirection()??d().direction??void 0:void 0),this.version==="gen-1")for(let v=0;v<m.length;v++)m[v]=this.lookUpDomId(m[v]);c=c??"subGraph"+this.subCount,h=h||"",h=this.sanitizeText(h),this.subCount=this.subCount+1;let S={id:c,nodes:m.filter((v)=>v!==c&&!this.globalNodes.has(v)),title:h.trim(),classes:[],dir:k,labelType:this.sanitizeNodeLabelType(a?.type),type:o??"flow"};i.info("Adding",S.id,S.nodes,S.dir),S.nodes=this.makeUniq(S,this.subGraphs).nodes;let w=this.getPosForId(c);if(w!==-1){let v=this.subGraphs[w];for(let z of S.nodes)if(!v.nodes.includes(z))v.nodes.push(z);if(S.title)v.title=S.title;if(S.dir)v.dir=S.dir;if(S.type)v.type=S.type;this.subGraphLookup.set(c,v)}else this.subGraphs.push(S),this.subGraphLookup.set(c,S);return c}addGlobal(e){for(let n of e.flat()){if(typeof n!=="string")continue;let a=n.trim();if(a!=="")this.globalNodes.add(a)}for(let n of this.subGraphs)n.nodes=n.nodes.filter((a)=>!this.globalNodes.has(a))}getPosForId(e){for(let[n,a]of this.subGraphs.entries())if(a.id===e)return n;return-1}indexNodes2(e,n){let a=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===e)return{result:!0,count:0};let o=0,c=1;while(o<a.length){let h=this.getPosForId(a[o]);if(h>=0){let u=this.indexNodes2(e,h);if(u.result)return{result:!0,count:c+u.count};else c=c+u.count}o=o+1}return{result:!1,count:c}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}addConnector(e,n){let a=e?.text?.trim();if(!a)return"";let o=n?.text?.trim()??"",c=o.length>0?this.sanitizeText(o):a,h=this.connectors.get(a);if(!h)h={id:a,labelType:"text",domId:T1+a+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:c},this.connectors.set(a,h),this.vertices.set(a,h),this.vertexCounter++;else if(o.length>0)h.text=c;return a}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}computeEdgeSemantic(e,n){if(e==="arrow_point"&&n==="normal")return"sequence";if(e==="arrow_cross"&&n==="normal")return"failure";if(e==="arrow_open"&&n==="dotted")return"reference";return}destructStartLink(e){let n=e.trim(),a="arrow_open",o="normal";if(n.includes("."))o="dotted";return{type:"arrow_open",stroke:o}}countChar(e,n){let a=n.length,o=0;for(let c=0;c<a;++c)if(n[c]===e)++o;return o}destructEndLink(e){let n=e.trim(),a=n.slice(0,-1),o="arrow_open";switch(n.slice(-1)){case"x":o="arrow_cross";break;case">":o="arrow_point";break;case"-":case".":o="arrow_open",a=n;break}let c="normal",h=a.length-1,u=this.countChar(".",a);if(u>0)c="dotted",h=u;return{type:o,stroke:c,length:h}}destructLink(e,n){let a=this.destructEndLink(e),o;if(n){if(o=this.destructStartLink(n),o.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};return o.type=a.type,o.length=a.length,{...o,edgeSemantic:this.computeEdgeSemantic(o.type,o.stroke)}}return{...a,edgeSemantic:this.computeEdgeSemantic(a.type,a.stroke)}}exists(e,n){for(let a of e)if(a.nodes.includes(n))return!0;return!1}makeUniq(e,n){let a=[];return e.nodes.forEach((o,c)=>{if(!this.exists(n,o))a.push(e.nodes[c])}),{nodes:a}}getTypeFromVertex(e){let n=typeof e.type==="string"?Ct(e.type):e.type;switch(n){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return n}}findNode(e,n){return e.find((a)=>a.id===n)}destructEdgeType(e){let n="none",a="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":a=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=e.replace("double_",""),a=n;break}return{arrowTypeStart:n,arrowTypeEnd:a}}addNodeFromVertex(e,n,a,o,c,h){let u=a.get(e.id),p=o.get(e.id)??!1,m=this.findNode(n,e.id);if(m)m.cssStyles=e.styles,m.cssCompiledStyles=this.getCompiledStyles(e.classes),m.cssClasses=e.classes.join(" ");else{let k={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:u,padding:c.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:h,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};if(p)n.push({...k,isGroup:!0,shape:"rect"});else n.push({...k,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:c.agentflow?.wrappingWidth,minWidth:c.agentflow?.minNodeWidth})}}getCompiledStyles(e){let n=[];for(let a of e){let o=this.classes.get(a);if(o?.styles)n=[...n,...o.styles??[]].map((c)=>c.trim());if(o?.textStyles)n=[...n,...o.textStyles??[]].map((c)=>c.trim())}return n}runPostParseValidators(){if(this.postParseValidationRun)return;this.postParseValidationRun=!0}getData(){this.runPostParseValidators();let e=d(),n=[],a=[],o=this.getSubGraphs(),c=new Map,h=new Map,u=new Set,p=new Map,m=t((f,b,F=new Set)=>{if(F.has(f))return;F.add(f);let q=this.subGraphLookup.get(f);if(!q)return;for(let fe of q.nodes){if(fe===b||F.has(fe))continue;u.add(fe),p.set(fe,b),m(fe,b,F)}},"collectDescendants");for(let f of o)if(f.metadata?.view==="collapsed"&&!u.has(f.id))m(f.id,f.id);let k=t((f,b)=>{let F=new Set,q=b;while(q!==void 0&&!F.has(q)){if(q===f)return!0;F.add(q),q=c.get(q)}return!1},"wouldCloseContainmentCycle");for(let f=o.length-1;f>=0;f--){let b=o[f];if(u.has(b.id))continue;if(b.nodes.length>0)h.set(b.id,!0);for(let F of b.nodes){if(k(F,b.id)){this.emitWarning(St.CONTAINMENT_VIOLATION,`Container "${b.id}" cannot contain "${F}" because "${F}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:F});continue}c.set(F,b.id)}}for(let f=o.length-1;f>=0;f--){let b=o[f];if(u.has(b.id))continue;if(b.metadata?.view==="collapsed"){let q={...b.metadata,containerType:b.type};n.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:c.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssClasses:b.classes.join(" "),shape:"collapsedGroup",dir:b.dir,isGroup:!1,look:e.look,metadata:q})}else n.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:c.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssClasses:b.classes.join(" "),shape:K1[b.type??"flow"],dir:b.dir,isGroup:!0,look:e.look,metadata:b.metadata})}this.getVertices().forEach((f)=>{if(u.has(f.id))return;this.addNodeFromVertex(f,n,c,h,e,e.look||"classic")});let S=this.getEdges();S.forEach((f,b)=>{let F=p.get(f.start)??f.start,q=p.get(f.end)??f.end;if(F===q&&f.start!==f.end)return;let{arrowTypeStart:fe,arrowTypeEnd:Se}=this.destructEdgeType(f.type),Ee=[...S.defaultStyle??[]];if(f.style)Ee.push(...f.style);let xe={id:kt(F,q,{counter:b,prefix:"L"},f.id),isUserDefinedId:f.isUserDefinedId,start:F,end:q,type:f.type??"normal",label:f.text,labelType:f.labelType,labelpos:"c",thickness:f.stroke,minlen:f.length,classes:f?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:f?.stroke==="invisible"||f?.type==="arrow_open"?"none":fe,arrowTypeEnd:f?.stroke==="invisible"||f?.type==="arrow_open"?"none":Se,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(f.classes),labelStyle:Ee,style:Ee,pattern:f.stroke,look:e.look,animate:f.animate,animation:f.animation,curve:f.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:f.metadata};a.push(xe)}),D1(n,this);let w=new Map,v=new Map;for(let f of o){let b=c.get(f.id);if(b!==void 0)v.set(b,[...v.get(b)??[],f.id])}let z=0,V=t((f)=>{if(w.has(f))return;w.set(f,z++);for(let b of v.get(f)??[])V(b)},"walkContainers");for(let f of o)if(c.get(f.id)===void 0)V(f.id);let E=new Set(this.getConnectors().map((f)=>f.id));return I1(n,(f)=>{if(E.has(f))return"connector";let b=this.vertices.get(f);return b?this.deriveVertexKind(b,Ct(b.type)):void 0},w),{nodes:n,edges:a,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return Ur.flowchart}deriveVertexKind(e,n){if(this.isToolDefinition(e))return"tool";if(n==="hexagon"||n==="hex")return"action";if(n==="lean-right"||n==="lean_right")return"input";if(n==="lin-doc"||n==="lined-document")return"refdoc";if(n==="diamond")return"decision";return"task"}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map((u)=>u.id)),n=[],a=[];for(let[u,p]of this.vertices){if(e.has(u))continue;if(p.isConnector){let A={id:u};if(p.text!==void 0&&p.text!==u)A.title=p.text;if(p.metadata&&Object.keys(p.metadata).length>0){let S={};for(let[w,v]of Object.entries(p.metadata)){if(u1.has(w))continue;S[w]=v}if(Object.keys(S).length>0)A.metadata=S}a.push(A);continue}let m={id:u};if(p.text!==void 0)m.label=p.text;let k=typeof p.type==="string"?Ct(p.type):p.type;if(k!==void 0)m.shape=k;if(m.vertexKind=this.deriveVertexKind(p,k),p.metadata&&Object.keys(p.metadata).length>0){let A={};for(let[S,w]of Object.entries(p.metadata)){if(u1.has(S))continue;A[S]=w}if(Object.keys(A).length>0)m.metadata=A}n.push(m)}let o=this.edges.map((u)=>{let p={start:u.start,end:u.end};if(u.id!==void 0)p.id=u.id;if(typeof u.text==="string"&&u.text.length>0)p.label=u.text;if(u.type!==void 0)p.type=u.type;if(u.stroke!==void 0)p.stroke=u.stroke;if(u.edgeSemantic!==void 0)p.edgeSemantic=u.edgeSemantic;if(u.length!==void 0)p.length=u.length;if(u.metadata&&Object.keys(u.metadata).length>0)p.metadata={...u.metadata};return p}),c=this.subGraphs.map((u)=>{let p={id:u.id,nodes:[...u.nodes]};if(u.type!==void 0)p.type=u.type;if(u.title!==void 0)p.title=u.title;if(u.dir!==void 0)p.direction=u.dir;if(u.metadata&&Object.keys(u.metadata).length>0){let m={};for(let[k,A]of Object.entries(u.metadata)){if(u1.has(k))continue;m[k]=A}if(Object.keys(m).length>0)p.metadata=m}return p}),h={vertices:n,edges:o,subGraphs:c,connectors:a,diagnostics:this.diagnostics};if(this.direction!==void 0)h.direction=this.direction;return h}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let n=e?.first_line??0,a=e?.first_column??0,o=e?.last_line??n,c=e?.last_column??a,[h,u]=e?.range??[0,0];return{startLine:n+this.frontmatterLineOffset,startColumn:a,endLine:o+this.frontmatterLineOffset,endColumn:c,startIndex:h,endIndex:u}}pushMapping(e,n,a){if(!e)return;let o={id:e,type:n,position:this.toElementPosition(a)};return this.elementMappings.push(o),o}addVertexMapping(e,n,a,o){let c=this.pushMapping(e,"vertex",o);if(c&&a==null)this.bareVertexMappings.add(c)}extendVertexMapping(e,n){if(!e||!n)return;let a=this.toElementPosition(n);for(let o=this.elementMappings.length-1;o>=0;o--){let c=this.elementMappings[o];if(c.type==="vertex"&&c.id===e){if(this.bareVertexMappings.has(c))c.type="attachment",this.bareVertexMappings.delete(c);if(a.endLine>c.position.endLine||a.endLine===c.position.endLine&&a.endColumn>c.position.endColumn)c.position.endLine=a.endLine,c.position.endColumn=a.endColumn,c.position.endIndex=a.endIndex;return}}this.pushMapping(e,"attachment",n)}addEdgeMapping(e,n,a,o){let c=Array.isArray(n)?n.map((u)=>typeof u==="string"?u:u?.id??"").filter(Boolean):[],h=c.length>0?c.join(">"):"edge";this.pushMapping(h,"edge",o)}addSubgraphMapping(e,n,a,o){let c=(typeof e==="string"?e:e?.text)??"",h=this.toElementPosition(a),u=o?this.toElementPosition(o):h;if(!c)return;this.elementMappings.push({id:c,type:"subgraph",position:{startLine:h.startLine,startColumn:h.startColumn,endLine:u.endLine,endColumn:u.endColumn,startIndex:h.startIndex,endIndex:u.endIndex}})}addConnectorMapping(e,n,a,o){let c=e?.text?.trim()??"";if(!c)return;let h=this.toElementPosition(a),u=o?this.toElementPosition(o):h;this.elementMappings.push({id:c,type:"connector",position:{startLine:h.startLine,startColumn:h.startColumn,endLine:u.endLine,endColumn:u.endColumn,startIndex:h.startIndex,endIndex:u.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find((n)=>n.id===e)}getElementsOnLine(e){return this.elementMappings.filter((n)=>e>=n.position.startLine&&e<=n.position.endLine)}getElementAtPosition(e,n){let a=this.elementMappings.filter((c)=>{let{startLine:h,startColumn:u,endLine:p,endColumn:m}=c.position;if(e<h||e>p)return!1;if(e===h&&n<u)return!1;if(e===p&&n>m)return!1;return!0});if(a.length===0)return;let o=t(({position:c})=>[c.endLine-c.startLine,c.endColumn-c.startColumn],"span");return a.reduce((c,h)=>{let[u,p]=o(c),[m,k]=o(h);if(m!==u)return m<u?h:c;return k<p?h:c})}getMappingStats(){let e=0,n=0,a=0,o=0,c=0;for(let h of this.elementMappings)if(h.type==="vertex")e++;else if(h.type==="edge")n++;else if(h.type==="subgraph")a++;else if(h.type==="connector")o++;else if(h.type==="attachment")c++;return{vertices:e,edges:n,subgraphs:a,connectors:o,attachments:c,totalElements:this.elementMappings.length}}emitDiagnostic(e,n,a,o){let c=o?.nodeId??o?.edgeId,h=c?this.getElementById(c):void 0,u={id:e,severity:n,message:a,...o?.nodeId?{nodeId:o.nodeId}:{},...o?.edgeId&&!o?.nodeId?{edgeId:o.edgeId}:{},...h?{position:h.position}:{}};if(this.diagnostics.some((k)=>k.id===u.id&&k.severity===u.severity&&k.message===u.message&&k.nodeId===u.nodeId&&k.edgeId===u.edgeId))return;this.diagnostics.push(u);let m=`agentflow[${e}]: ${a}`;if(n==="error")i.error(m);else i.warn(m)}emitWarning(e,n,a){this.emitDiagnostic(e,"warning",n,a)}emitError(e,n,a){this.emitDiagnostic(e,"error",n,a)}getDiagnostics(){return[...this.diagnostics]}},Y1=t(function(e,n){return n.db.getClasses()},"getClasses"),q1=t(async function(e,n,a,o){i.debug("Drawing agentflow diagram",n);let{securityLevel:c,agentflow:h,layout:u}=d();o.db.setDiagramId(n),i.debug("Before getData: ");let p=o.db.getData();i.debug("Data: ",p);let m=ze(n,c),k=o.db.getDirection();if(p.type=o.type,p.layoutAlgorithm=Ue(u),p.layoutAlgorithm==="dagre"&&u==="elk")i.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback.");p.direction=k,p.nodeSpacing=h?.nodeSpacing||50,p.rankSpacing=h?.rankSpacing||50,p.markers=["point","circle","cross","hierarchy"],p.diagramId=n,i.debug("REF1:",p),await He(p,m);let A=h?.diagramPadding??8;H.insertTitle(m,"agentflowTitleText",h?.titleTopMargin??0,o.db.getDiagramTitle()),Re(m,A,"agentflow",h?.useMaxWidth??!0)},"draw"),X1={getClasses:Y1,draw:q1},l1=function(){var e=t(function(Ge,x,T,_){for(T=T||{},_=Ge.length;_--;T[Ge[_]]=x);return T},"o"),n=[1,5],a=[1,4],o=[1,3],c=[1,6],h=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],u=[2,2],p=[1,15],m=[1,16],k=[1,17],A=[1,18],S=[1,19],w=[1,26],v=[1,27],z=[1,28],V=[1,30],E=[1,31],f=[1,32],b=[1,55],F=[1,54],q=[1,34],fe=[1,35],Se=[1,36],Ee=[1,37],xe=[1,38],Q=[1,50],J=[1,52],Z=[1,48],ee=[1,53],te=[1,49],se=[1,56],ie=[1,51],re=[1,57],ne=[1,58],je=[1,39],We=[1,40],Ke=[1,41],Ye=[1,42],qe=[1,43],Oe=[1,64],B=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],ce=[1,70],de=[1,68],he=[1,67],pe=[1,69],Ze=[8,9,10,12,78,80,81],$e=[1,88],et=[1,101],tt=[1,106],it=[1,105],rt=[1,102],nt=[1,98],at=[1,104],ot=[1,100],ut=[1,107],lt=[1,103],ct=[1,108],dt=[1,99],Xe=[8,9,10,11,12,43,78,80,81],oe=[8,9,10,11,12,43,49,78,80,81],be=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],c1=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],ht=[47,63,92,105,108,109,112,114,117,118,119],d1=[1,131],h1=[1,132],xt=[1,134],Tt=[1,133],p1=[47,63,65,77,92,105,108,109,112,114,117,118,119],Dt=[1,143],_t=[1,157],vt=[1,158],Ft=[1,159],Vt=[1,162],It=[1,161],Lt=[1,160],Bt=[1,145],Mt=[1,147],yt=[1,151],f1=[1,139],g1=[1,140],wt=[1,152],Nt=[1,153],Rt=[1,154],Pt=[1,155],Ut=[1,156],jt=[1,163],zt=[1,164],Kt=[1,141],Ht=[1,142],Yt=[1,149],qt=[1,144],Xt=[1,148],Qt=[1,146],pt=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],b1=[1,168],ft=[1,170],X=[8,9,10,12],ke=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],N=[1,190],ue=[1,186],le=[1,187],G=[1,191],U=[1,188],j=[1,189],gt=[80,119,122],W=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],k1=[11,109],Pe=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],Te=[1,269],_e=[1,267],ve=[1,271],Fe=[1,265],Ve=[1,266],Le=[1,268],Be=[1,270],ye=[1,272],bt=[1,292],m1=[8,9,10,12,109],Ce=[8,9,10,11,12,63,87,108,109,112,113,114,115],s1={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:t(function(x,T,_,l,K,s,y){var r=s.length-1;switch(K){case 2:this.$=[];break;case 3:if(!Array.isArray(s[r])||s[r].length>0)s[r-1].push(s[r]);this.$=s[r-1];break;case 4:case 198:this.$=s[r];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:l.setDirection("TB"),this.$="TB";break;case 14:l.setDirection(s[r-1]),this.$=s[r-1];break;case 32:this.$=s[r-1].nodes;break;case 38:if(this.$=l.addSubGraph(s[r-6],s[r-1],s[r-4],"flow"),l.addSubgraphMapping)l.addSubgraphMapping(s[r-6],s[r-4],y[r-8],y[r]);break;case 39:if(this.$=l.addSubGraph(s[r-7],s[r-1],s[r-5],"flow"),l.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,s[r-3],y[r-3]),l.addSubgraphMapping)l.addSubgraphMapping(s[r-7],s[r-5],y[r-9],y[r]);break;case 40:if(this.$=l.addSubGraph(s[r-3],s[r-1],{text:"",type:"text"},"flow"),l.addSubgraphMapping)l.addSubgraphMapping(s[r-3],{text:"",type:"text"},y[r-5],y[r]);break;case 41:if(this.$=l.addSubGraph(s[r-4],s[r-1],{text:"",type:"text"},"flow"),l.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,s[r-3],y[r-3]),l.addSubgraphMapping)l.addSubgraphMapping(s[r-4],{text:"",type:"text"},y[r-6],y[r]);break;case 42:if(this.$=l.addSubGraph(void 0,s[r-1],void 0,"flow"),l.addSubgraphMapping)l.addSubgraphMapping(void 0,void 0,y[r-3],y[r]);break;case 43:l.addGlobal(s[r-1]),this.$=[];break;case 44:if(this.$=l.addConnector(s[r-4],s[r-2]),l.addConnectorMapping)l.addConnectorMapping(s[r-4],s[r-2],y[r-6],y[r]);break;case 45:if(this.$=l.addConnector(s[r-5],s[r-3]),l.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,s[r-1],y[r-1]),l.addConnectorMapping)l.addConnectorMapping(s[r-5],s[r-3],y[r-7],y[r]);break;case 46:if(this.$=l.addConnector(s[r-1],{text:"",type:"text"}),l.addConnectorMapping)l.addConnectorMapping(s[r-1],{text:"",type:"text"},y[r-3],y[r]);break;case 47:if(this.$=l.addConnector(s[r-2],{text:"",type:"text"}),l.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,s[r-1],y[r-1]),l.addConnectorMapping)l.addConnectorMapping(s[r-2],{text:"",type:"text"},y[r-4],y[r]);break;case 49:this.$=s[r].trim(),l.setAccTitle(this.$);break;case 50:case 51:this.$=s[r].trim(),l.setAccDescription(this.$);break;case 56:this.$=s[r-1]+s[r];break;case 57:this.$=s[r];break;case 58:if(l.addVertex(s[r-1][s[r-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[r],y[r]),l.extendVertexMapping)l.extendVertexMapping(s[r-1][s[r-1].length-1],y[r]);if(l.addLink(s[r-3].stmt,s[r-1],s[r-2]),l.addEdgeMapping)l.addEdgeMapping(s[r-3].stmt,s[r-1],s[r-2],this._$);this.$={stmt:s[r-1],nodes:s[r-1].concat(s[r-3].nodes)};break;case 59:if(l.addLink(s[r-2].stmt,s[r],s[r-1]),l.addEdgeMapping)l.addEdgeMapping(s[r-2].stmt,s[r],s[r-1],this._$);this.$={stmt:s[r],nodes:s[r].concat(s[r-2].nodes)};break;case 60:if(l.addLink(s[r-3].stmt,s[r-1],s[r-2]),l.addEdgeMapping)l.addEdgeMapping(s[r-3].stmt,s[r-1],s[r-2],this._$);this.$={stmt:s[r-1],nodes:s[r-1].concat(s[r-3].nodes)};break;case 61:this.$={stmt:s[r-1],nodes:s[r-1]};break;case 62:if(l.addVertex(s[r-1][s[r-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[r],y[r]),l.extendVertexMapping)l.extendVertexMapping(s[r-1][s[r-1].length-1],y[r]);this.$={stmt:s[r-1],nodes:s[r-1],shapeData:s[r]};break;case 63:this.$={stmt:s[r],nodes:s[r]};break;case 64:this.$=[s[r]];break;case 65:if(l.addVertex(s[r-5][s[r-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[r-4],y[r-4]),l.extendVertexMapping)l.extendVertexMapping(s[r-5][s[r-5].length-1],y[r-4]);this.$=s[r-5].concat(s[r]);break;case 66:this.$=s[r-4].concat(s[r]);break;case 67:this.$=s[r];break;case 68:this.$=s[r-2],l.setClass(s[r-2],s[r]);break;case 69:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"square"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"square",this._$);break;case 70:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"doublecircle"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"doublecircle",this._$);break;case 71:if(this.$=s[r-5],l.addVertex(s[r-5],s[r-2],"circle"),l.addVertexMapping)l.addVertexMapping(s[r-5],s[r-2],"circle",this._$);break;case 72:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"ellipse"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"ellipse",this._$);break;case 73:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"stadium"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"stadium",this._$);break;case 74:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"subroutine"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"subroutine",this._$);break;case 75:if(this.$=s[r-7],l.addVertex(s[r-7],s[r-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[r-5],s[r-3]]])),l.addVertexMapping)l.addVertexMapping(s[r-7],s[r-1],"rect",this._$);break;case 76:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"cylinder"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"cylinder",this._$);break;case 77:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"round"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"round",this._$);break;case 78:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"diamond"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"diamond",this._$);break;case 79:if(this.$=s[r-5],l.addVertex(s[r-5],s[r-2],"hexagon"),l.addVertexMapping)l.addVertexMapping(s[r-5],s[r-2],"hexagon",this._$);break;case 80:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"odd"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"odd",this._$);break;case 81:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"trapezoid"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"trapezoid",this._$);break;case 82:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"inv_trapezoid"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"inv_trapezoid",this._$);break;case 83:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"lean_right"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"lean_right",this._$);break;case 84:if(this.$=s[r-3],l.addVertex(s[r-3],s[r-1],"lean_left"),l.addVertexMapping)l.addVertexMapping(s[r-3],s[r-1],"lean_left",this._$);break;case 85:if(this.$=s[r],l.addVertex(s[r]),l.addVertexMapping)l.addVertexMapping(s[r],void 0,void 0,this._$);break;case 86:s[r-1].text=s[r],this.$=s[r-1];break;case 87:case 88:s[r-2].text=s[r-1],this.$=s[r-2];break;case 89:this.$=s[r];break;case 90:var Y=l.destructLink(s[r],s[r-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,edgeSemantic:Y.edgeSemantic,text:s[r-1]};break;case 91:var Y=l.destructLink(s[r],s[r-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,edgeSemantic:Y.edgeSemantic,text:s[r-1],id:s[r-3]};break;case 92:this.$={text:s[r],type:"text"};break;case 93:this.$={text:s[r-1].text+""+s[r],type:s[r-1].type};break;case 94:this.$={text:s[r],type:"string"};break;case 95:this.$={text:s[r],type:"markdown"};break;case 96:var Y=l.destructLink(s[r]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,edgeSemantic:Y.edgeSemantic};break;case 97:var Y=l.destructLink(s[r]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,edgeSemantic:Y.edgeSemantic,id:s[r-1]};break;case 98:this.$=s[r-1];break;case 99:this.$={text:s[r],type:"text"};break;case 100:this.$={text:s[r-1].text+""+s[r],type:s[r-1].type};break;case 101:this.$={text:s[r],type:"string"};break;case 102:case 119:this.$={text:s[r],type:"markdown"};break;case 116:this.$={text:s[r],type:"text"};break;case 117:this.$={text:s[r-1].text+""+s[r],type:s[r-1].type};break;case 118:this.$={text:s[r],type:"text"};break;case 120:this.$=s[r-4],l.addClass(s[r-2],s[r]);break;case 121:this.$=s[r-4],l.setClass(s[r-2],s[r]);break;case 122:case 130:this.$=s[r-1],l.setClickEvent(s[r-1],s[r]);break;case 123:case 131:this.$=s[r-3],l.setClickEvent(s[r-3],s[r-2]),l.setTooltip(s[r-3],s[r]);break;case 124:this.$=s[r-2],l.setClickEvent(s[r-2],s[r-1],s[r]);break;case 125:this.$=s[r-4],l.setClickEvent(s[r-4],s[r-3],s[r-2]),l.setTooltip(s[r-4],s[r]);break;case 126:this.$=s[r-2],l.setLink(s[r-2],s[r]);break;case 127:this.$=s[r-4],l.setLink(s[r-4],s[r-2]),l.setTooltip(s[r-4],s[r]);break;case 128:this.$=s[r-4],l.setLink(s[r-4],s[r-2],s[r]);break;case 129:this.$=s[r-6],l.setLink(s[r-6],s[r-4],s[r]),l.setTooltip(s[r-6],s[r-2]);break;case 132:this.$=s[r-1],l.setLink(s[r-1],s[r]);break;case 133:this.$=s[r-3],l.setLink(s[r-3],s[r-2]),l.setTooltip(s[r-3],s[r]);break;case 134:this.$=s[r-3],l.setLink(s[r-3],s[r-2],s[r]);break;case 135:this.$=s[r-5],l.setLink(s[r-5],s[r-4],s[r]),l.setTooltip(s[r-5],s[r-2]);break;case 136:this.$=s[r-4],l.addVertex(s[r-2],void 0,void 0,s[r]);break;case 137:this.$=s[r-4],l.updateLink([s[r-2]],s[r]);break;case 138:this.$=s[r-4],l.updateLink(s[r-2],s[r]);break;case 139:this.$=s[r-8],l.updateLinkInterpolate([s[r-6]],s[r-2]),l.updateLink([s[r-6]],s[r]);break;case 140:this.$=s[r-8],l.updateLinkInterpolate(s[r-6],s[r-2]),l.updateLink(s[r-6],s[r]);break;case 141:this.$=s[r-6],l.updateLinkInterpolate([s[r-4]],s[r]);break;case 142:this.$=s[r-6],l.updateLinkInterpolate(s[r-4],s[r]);break;case 143:case 145:this.$=[s[r]];break;case 144:case 146:s[r-2].push(s[r]),this.$=s[r-2];break;case 148:this.$=s[r-1]+s[r];break;case 196:this.$=s[r];break;case 197:this.$=s[r-1]+""+s[r];break;case 199:this.$=s[r-1]+""+s[r];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,8:n,10:a,11:o,13:c},{1:[3]},e(h,u,{5:7}),{4:8,8:n,10:a,11:o,13:c},{4:9,8:n,10:a,11:o,13:c},{4:10,8:n,10:a,11:o,13:c},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:w,35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},e(h,[2,10]),e(h,[2,11]),e(h,[2,12]),e(h,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:Oe,16:59,19:62},e(B,[2,3]),e(B,[2,4]),e(B,[2,5]),e(B,[2,6]),e(B,[2,7]),e(B,[2,8]),e(B,[2,9]),{8:ce,9:de,10:he,12:pe,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:ce,9:de,10:he,12:pe,22:75},{8:ce,9:de,10:he,12:pe,22:76},{8:ce,9:de,10:he,12:pe,22:77},{8:ce,9:de,10:he,12:pe,22:78},{8:ce,9:de,10:he,12:pe,22:79},{8:ce,9:de,10:he,11:[1,80],12:pe,22:81},{8:ce,9:de,10:he,12:pe,22:82},{11:[1,83]},e(B,[2,48]),{39:[1,84]},{41:[1,85]},e(B,[2,51]),e(Ze,[2,63],{19:86,34:87,11:Oe,43:$e}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:et,47:tt,63:it,83:[1,96],92:rt,98:[1,93],100:[1,94],104:95,108:nt,109:at,112:ot,114:ut,117:lt,118:ct,119:dt,123:97},e(B,[2,200]),e(B,[2,201]),e(B,[2,202]),e(B,[2,203]),e(B,[2,204]),e(Xe,[2,64]),e(Xe,[2,67],{49:[1,109]}),e(oe,[2,85],{116:122,30:[1,110],47:b,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:F,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:Q,105:J,108:Z,109:ee,112:te,114:se,117:ie,118:re,119:ne}),e(be,[2,196]),e(be,[2,157]),e(be,[2,158]),e(be,[2,159]),e(be,[2,160]),e(be,[2,161]),e(be,[2,162]),e(be,[2,163]),e(be,[2,164]),e(be,[2,165]),e(be,[2,166]),e(be,[2,167]),e(h,[2,14]),e(h,[2,20]),e(h,[2,21]),{10:[1,123]},e(h,[2,23]),e(c1,[2,31],{19:124,11:Oe}),e(B,[2,32]),{45:125,46:44,47:b,48:45,50:46,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},e(B,[2,52]),e(B,[2,53]),e(B,[2,54]),e(B,[2,55]),e(ht,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:d1,84:h1,119:xt,122:Tt},{78:[1,135],80:[1,136]},e(p1,[2,96]),e(B,[2,33]),e(B,[2,34]),e(B,[2,35]),e(B,[2,36]),e(B,[2,37]),{11:Dt,13:_t,15:vt,28:Ft,29:137,33:Vt,35:It,36:Lt,47:Bt,63:Mt,78:yt,83:f1,84:g1,86:150,87:wt,88:Nt,89:Rt,90:Pt,91:Ut,92:jt,93:zt,94:138,108:Kt,112:Ht,114:Yt,117:qt,118:Xt,119:Qt},e(pt,u,{5:165}),e(pt,u,{5:166}),{11:Dt,13:_t,15:vt,28:Ft,29:167,33:Vt,35:It,36:Lt,47:Bt,63:Mt,78:yt,83:f1,84:g1,86:150,87:wt,88:Nt,89:Rt,90:Pt,91:Ut,92:jt,93:zt,94:138,108:Kt,112:Ht,114:Yt,117:qt,118:Xt,119:Qt},e(B,[2,49]),e(B,[2,50]),e(Ze,[2,61],{47:b1}),e(Ze,[2,62],{19:169,11:Oe,43:ft}),e(Xe,[2,57]),{47:b,50:171,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},{105:[1,172],106:173,108:[1,174]},{47:b,50:175,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},{47:b,50:176,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},e(X,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(X,[2,130],{123:181,11:[1,180],15:et,47:tt,63:it,92:rt,108:nt,109:at,112:ot,114:ut,117:lt,118:ct,119:dt}),e(X,[2,132],{11:[1,182]}),e(ke,[2,198]),e(ke,[2,185]),e(ke,[2,186]),e(ke,[2,187]),e(ke,[2,188]),e(ke,[2,189]),e(ke,[2,190]),e(ke,[2,191]),e(ke,[2,192]),e(ke,[2,193]),e(ke,[2,194]),e(ke,[2,195]),{47:b,50:183,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},{31:184,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:192,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:194,53:[1,193],70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:195,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:196,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:197,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{112:[1,198]},{31:199,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:200,68:[1,201],70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:202,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:203,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{31:204,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},e(be,[2,197]),e(h,[2,22]),e(c1,[2,30]),e(Ze,[2,59],{34:205,19:206,11:Oe,43:$e}),e(ht,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{80:[1,210],82:211,119:xt,122:Tt},e(gt,[2,92]),e(gt,[2,94]),e(gt,[2,95]),e(gt,[2,183]),e(gt,[2,184]),{79:212,82:130,83:d1,84:h1,119:xt,122:Tt},e(p1,[2,97]),{8:ce,9:de,10:he,11:Dt,12:pe,13:_t,15:vt,22:214,28:Ft,30:[1,213],33:Vt,34:215,35:It,36:Lt,43:$e,47:Bt,63:Mt,78:yt,86:150,87:wt,88:Nt,89:Rt,90:Pt,91:Ut,92:jt,93:zt,94:216,108:Kt,112:Ht,114:Yt,117:qt,118:Xt,119:Qt},e(W,[2,116]),e(W,[2,118]),e(W,[2,119]),e(W,[2,172]),e(W,[2,173]),e(W,[2,174]),e(W,[2,175]),e(W,[2,176]),e(W,[2,177]),e(W,[2,178]),e(W,[2,179]),e(W,[2,180]),e(W,[2,181]),e(W,[2,182]),e(W,[2,103]),e(W,[2,104]),e(W,[2,105]),e(W,[2,106]),e(W,[2,107]),e(W,[2,108]),e(W,[2,109]),e(W,[2,110]),e(W,[2,111]),e(W,[2,112]),e(W,[2,113]),e(W,[2,114]),e(W,[2,115]),{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,217],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,218],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},{8:ce,9:de,10:he,11:Dt,12:pe,13:_t,15:vt,22:220,28:Ft,30:[1,219],33:Vt,34:221,35:It,36:Lt,43:$e,47:Bt,63:Mt,78:yt,86:150,87:wt,88:Nt,89:Rt,90:Pt,91:Ut,92:jt,93:zt,94:216,108:Kt,112:Ht,114:Yt,117:qt,118:Xt,119:Qt},{11:Oe,19:222},{47:[1,223]},e(Xe,[2,56]),{11:[1,224],47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:122,117:ie,118:re,119:ne},{11:[1,225]},{11:[1,226],109:[1,227]},e(k1,[2,143]),{11:[1,228],47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:122,117:ie,118:re,119:ne},{11:[1,229],47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:122,117:ie,118:re,119:ne},{83:[1,230]},e(X,[2,124],{11:[1,231]}),e(X,[2,126],{11:[1,232]}),{83:[1,233]},e(ke,[2,199]),{83:[1,234],101:[1,235]},e(Xe,[2,68],{116:122,47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,117:ie,118:re,119:ne}),{32:[1,236],70:N,85:237,119:G,120:U,121:j},e(Pe,[2,99]),e(Pe,[2,101]),e(Pe,[2,102]),e(Pe,[2,168]),e(Pe,[2,169]),e(Pe,[2,170]),e(Pe,[2,171]),{52:[1,238],70:N,85:237,119:G,120:U,121:j},{31:239,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{54:[1,240],70:N,85:237,119:G,120:U,121:j},{56:[1,241],70:N,85:237,119:G,120:U,121:j},{58:[1,242],70:N,85:237,119:G,120:U,121:j},{60:[1,243],70:N,85:237,119:G,120:U,121:j},{63:[1,244]},{67:[1,245],70:N,85:237,119:G,120:U,121:j},{69:[1,246],70:N,85:237,119:G,120:U,121:j},{31:247,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},{32:[1,248],70:N,85:237,119:G,120:U,121:j},{70:N,72:[1,249],74:[1,250],85:237,119:G,120:U,121:j},{70:N,72:[1,252],74:[1,251],85:237,119:G,120:U,121:j},e(Ze,[2,58],{19:169,11:Oe,43:ft}),e(Ze,[2,60],{47:b1}),e(ht,[2,88]),e(ht,[2,87]),{65:[1,253],70:N,85:237,119:G,120:U,121:j},e(ht,[2,90]),e(gt,[2,93]),{80:[1,254],82:211,119:xt,122:Tt},{31:255,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},e(pt,u,{5:256}),{8:ce,9:de,10:he,12:pe,22:257,43:ft},e(W,[2,117]),e(B,[2,42]),e(B,[2,43]),{31:258,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},e(B,[2,46]),{8:ce,9:de,10:he,12:pe,22:259,43:ft},{46:260,47:b,48:45,50:46,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},{11:Oe,19:261},{11:Te,63:_e,87:ve,95:262,108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{11:Te,63:_e,87:ve,95:273,107:[1,274],108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{11:Te,63:_e,87:ve,95:275,107:[1,276],108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{108:[1,277]},{11:Te,63:_e,87:ve,95:278,108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{47:b,50:279,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},e(X,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(X,[2,131]),e(X,[2,133],{11:[1,283]}),e(X,[2,134]),e(oe,[2,69]),e(Pe,[2,100]),e(oe,[2,70]),{54:[1,284],70:N,85:237,119:G,120:U,121:j},e(oe,[2,77]),e(oe,[2,72]),e(oe,[2,73]),e(oe,[2,74]),{112:[1,285]},e(oe,[2,76]),e(oe,[2,78]),{69:[1,286],70:N,85:237,119:G,120:U,121:j},e(oe,[2,80]),e(oe,[2,81]),e(oe,[2,83]),e(oe,[2,82]),e(oe,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(ht,[2,91]),{32:[1,287],70:N,85:237,119:G,120:U,121:j},{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,288],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},e(pt,u,{5:289}),{32:[1,290],70:N,85:237,119:G,120:U,121:j},e(B,[2,47]),e(Xe,[2,66]),{46:291,47:b,48:45,50:46,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne},e(X,[2,136],{109:bt}),e(m1,[2,145],{111:293,11:Te,63:_e,87:ve,108:Fe,112:Ve,113:Le,114:Be,115:ye}),e(Ce,[2,147]),e(Ce,[2,149]),e(Ce,[2,150]),e(Ce,[2,151]),e(Ce,[2,152]),e(Ce,[2,153]),e(Ce,[2,154]),e(Ce,[2,155]),e(Ce,[2,156]),e(X,[2,137],{109:bt}),{11:[1,294]},e(X,[2,138],{109:bt}),{11:[1,295]},e(k1,[2,144]),e(X,[2,120],{109:bt}),e(X,[2,121],{116:122,47:b,63:F,92:Q,105:J,108:Z,109:ee,112:te,114:se,117:ie,118:re,119:ne}),e(X,[2,125]),e(X,[2,127],{11:[1,296]}),e(X,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:ce,9:de,10:he,12:pe,22:301,34:302,43:$e},e(B,[2,40]),{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,303],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},{8:ce,9:de,10:he,12:pe,22:304,34:305,43:$e},e(Xe,[2,65]),{11:Te,63:_e,87:ve,108:Fe,110:306,111:264,112:Ve,113:Le,114:Be,115:ye},e(Ce,[2,148]),{15:et,47:tt,63:it,92:rt,104:307,108:nt,109:at,112:ot,114:ut,117:lt,118:ct,119:dt,123:97},{15:et,47:tt,63:it,92:rt,104:308,108:nt,109:at,112:ot,114:ut,117:lt,118:ct,119:dt,123:97},{101:[1,309]},e(X,[2,135]),e(oe,[2,71]),{31:310,70:N,83:ue,84:le,85:185,119:G,120:U,121:j},e(oe,[2,79]),e(pt,u,{5:311}),{8:ce,9:de,10:he,12:pe,22:312,43:ft},e(B,[2,41]),e(B,[2,44]),{8:ce,9:de,10:he,12:pe,22:313,43:ft},e(m1,[2,146],{111:293,11:Te,63:_e,87:ve,108:Fe,112:Ve,113:Le,114:Be,115:ye}),e(X,[2,141],{123:181,11:[1,314],15:et,47:tt,63:it,92:rt,108:nt,109:at,112:ot,114:ut,117:lt,118:ct,119:dt}),e(X,[2,142],{123:181,11:[1,315],15:et,47:tt,63:it,92:rt,108:nt,109:at,112:ot,114:ut,117:lt,118:ct,119:dt}),e(X,[2,129]),{32:[1,316],70:N,85:237,119:G,120:U,121:j},{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,317],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},e(pt,u,{5:318}),e(B,[2,45]),{11:Te,63:_e,87:ve,95:319,108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},{11:Te,63:_e,87:ve,95:320,108:Fe,110:263,111:264,112:Ve,113:Le,114:Be,115:ye},e(oe,[2,75]),e(B,[2,38]),{6:13,7:14,8:p,9:m,10:k,11:A,12:S,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,321],35:v,36:z,37:29,38:V,40:E,42:f,45:33,46:44,47:b,48:45,50:46,63:F,87:q,88:fe,89:Se,90:Ee,91:xe,92:Q,105:J,108:Z,109:ee,112:te,114:se,116:47,117:ie,118:re,119:ne,124:je,125:We,126:Ke,127:Ye,128:qe},e(X,[2,139],{109:bt}),e(X,[2,140],{109:bt}),e(B,[2,39])],defaultActions:{},parseError:t(function(x,T){if(T.recoverable)this.trace(x);else{var _=Error(x);throw _.hash=T,_}},"parseError"),parse:t(function(x){var T=this,_=[0],l=[],K=[null],s=[],y=this.table,r="",Y=0,A1=0,E1=0,w1=2,C1=1,N1=s.slice.call(arguments,1),ae=Object.create(this.lexer),Qe={yy:{}};for(var i1 in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,i1))Qe.yy[i1]=this.yy[i1];if(ae.setInput(x,Qe.yy),Qe.yy.lexer=ae,Qe.yy.parser=this,typeof ae.yylloc>"u")ae.yylloc={};var r1=ae.yylloc;s.push(r1);var R1=ae.options&&ae.options.ranges;if(typeof Qe.yy.parseError==="function")this.parseError=Qe.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function O1(Ae){_.length=_.length-2*Ae,K.length=K.length-Ae,s.length=s.length-Ae}t(O1,"popStack");function S1(){var Ae=l.pop()||ae.lex()||C1;if(typeof Ae!=="number"){if(Ae instanceof Array)l=Ae,Ae=l.pop();Ae=T.symbols_[Ae]||Ae}return Ae}t(S1,"lex");var ge,n1,Je,me,ts,a1,mt={},Zt,we,x1,$t;while(!0){if(Je=_[_.length-1],this.defaultActions[Je])me=this.defaultActions[Je];else{if(ge===null||typeof ge>"u")ge=S1();me=y[Je]&&y[Je][ge]}if(typeof me>"u"||!me.length||!me[0]){var o1="";$t=[];for(Zt in y[Je])if(this.terminals_[Zt]&&Zt>w1)$t.push("'"+this.terminals_[Zt]+"'");if(ae.showPosition)o1="Parse error on line "+(Y+1)+`:
23
- `+ae.showPosition()+`
24
- Expecting `+$t.join(", ")+", got '"+(this.terminals_[ge]||ge)+"'";else o1="Parse error on line "+(Y+1)+": Unexpected "+(ge==C1?"end of input":"'"+(this.terminals_[ge]||ge)+"'");this.parseError(o1,{text:ae.match,token:this.terminals_[ge]||ge,line:ae.yylineno,loc:r1,expected:$t})}if(me[0]instanceof Array&&me.length>1)throw Error("Parse Error: multiple actions possible at state: "+Je+", token: "+ge);switch(me[0]){case 1:if(_.push(ge),K.push(ae.yytext),s.push(ae.yylloc),_.push(me[1]),ge=null,!n1){if(A1=ae.yyleng,r=ae.yytext,Y=ae.yylineno,r1=ae.yylloc,E1>0)E1--}else ge=n1,n1=null;break;case 2:if(we=this.productions_[me[1]][1],mt.$=K[K.length-we],mt._$={first_line:s[s.length-(we||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(we||1)].first_column,last_column:s[s.length-1].last_column},R1)mt._$.range=[s[s.length-(we||1)].range[0],s[s.length-1].range[1]];if(a1=this.performAction.apply(mt,[r,A1,Y,Qe.yy,me[1],K,s].concat(N1)),typeof a1<"u")return a1;if(we)_=_.slice(0,-1*we*2),K=K.slice(0,-1*we),s=s.slice(0,-1*we);_.push(this.productions_[me[1]][0]),K.push(mt.$),s.push(mt._$),x1=y[_[_.length-2]][_[_.length-1]],_.push(x1);break;case 3:return!0}}return!0},"parse")},y1=function(){var Ge={EOF:1,parseError:t(function(T,_){if(this.yy.parser)this.yy.parser.parseError(T,_);else throw Error(T)},"parseError"),setInput:t(function(x,T){if(this.yy=T||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var T=x.match(/(?:\r\n?|\n).*/g);if(T)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),x},"input"),unput:t(function(x){var T=x.length,_=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var l=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1)this.yylineno-=_.length-1;var K=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===l.length?this.yylloc.first_column:0)+l[l.length-_.length].length-_[0].length:this.yylloc.first_column-T},this.options.ranges)this.yylloc.range=[K[0],K[0]+this.yyleng-T];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
25
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(x){this.unput(this.match.slice(x))},"less"),pastInput:t(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var x=this.match;if(x.length<20)x+=this._input.substr(0,20-x.length);return(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var x=this.pastInput(),T=Array(x.length+1).join("-");return x+this.upcomingInput()+`
26
- `+T+"^"},"showPosition"),test_match:t(function(x,T){var _,l,K;if(this.options.backtrack_lexer){if(K={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)K.yylloc.range=this.yylloc.range.slice(0)}if(l=x[0].match(/(?:\r\n?|\n).*/g),l)this.yylineno+=l.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+x[0].length},this.yytext+=x[0],this.match+=x[0],this.matches=x,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(x[0].length),this.matched+=x[0],_=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(_)return _;else if(this._backtrack){for(var s in K)this[s]=K[s];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var x,T,_,l;if(!this._more)this.yytext="",this.match="";var K=this._currentRules();for(var s=0;s<K.length;s++)if(_=this._input.match(this.rules[K[s]]),_&&(!T||_[0].length>T[0].length)){if(T=_,l=s,this.options.backtrack_lexer)if(x=this.test_match(_,K[s]),x!==!1)return x;else if(this._backtrack){T=!1;continue}else return!1;else if(!this.options.flex)break}if(T){if(x=this.test_match(T,K[l]),x!==!1)return x;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
27
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var T=this.next();if(T)return T;else return this.lex()},"lex"),begin:t(function(T){this.conditionStack.push(T)},"begin"),popState:t(function(){var T=this.conditionStack.length-1;if(T>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(T){if(T=this.conditionStack.length-1-Math.abs(T||0),T>=0)return this.conditionStack[T];else return"INITIAL"},"topState"),pushState:t(function(T){this.begin(T)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(T,_,l,K){var s=K;switch(l){case 0:return this.begin("acc_title"),38;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),40;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),_.yytext="",43;break;case 8:return this.pushState("shapeDataStr"),43;break;case 9:return this.popState(),43;break;case 10:let y=/\n\s*/g;return _.yytext=_.yytext.replace(y,"<br/>"),43;break;case 11:return 43;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 17:this.popState();break;case 18:return 99;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 91;case 35:if(T.lex.firstGraph())this.begin("dir");return 13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;break;case 45:return this.popState(),15;break;case 46:return this.popState(),15;break;case 47:return this.popState(),15;break;case 48:return this.popState(),15;break;case 49:return this.popState(),15;break;case 50:return this.popState(),15;break;case 51:return this.popState(),15;break;case 52:return this.popState(),15;break;case 53:return this.popState(),15;break;case 54:return this.popState(),15;break;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;break;case 70:return this.pushState("edgeText"),78;break;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;break;case 75:return"TEXT";case 76:return this.pushState("ellipseText"),55;break;case 77:return this.popState(),58;break;case 78:return this.pushState("text"),57;break;case 79:return this.popState(),60;break;case 80:return this.pushState("text"),59;break;case 81:return 61;case 82:return this.pushState("text"),70;break;case 83:return this.popState(),67;break;case 84:return this.pushState("text"),66;break;case 85:return this.popState(),52;break;case 86:return this.pushState("text"),51;break;case 87:break;case 88:return this.popState(),72;break;case 89:return this.popState(),74;break;case 90:return 120;case 91:return this.pushState("trapText"),71;break;case 92:return this.pushState("trapText"),73;break;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;break;case 106:return this.pushState("text"),65;break;case 107:return this.popState(),54;break;case 108:return this.pushState("text"),53;break;case 109:return this.popState(),32;break;case 110:return this.pushState("text"),30;break;case 111:return this.popState(),69;break;case 112:return this.pushState("text"),68;break;case 113:break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}};return Ge}();s1.lexer=y1;function Jt(){this.yy={}}return t(Jt,"Parser"),Jt.prototype=s1,s1.Parser=Jt,new Jt}();l1.parser=l1;var B1=l1,M1=Object.assign({},B1);M1.parse=(e)=>{let n=e.replace(/}[^\S\n]*\n/g,`}
28
- `);return B1.parse(n)};var Q1=M1,J1=t((e)=>{let{theme:n,bkgColorArray:a,borderColorArray:o}=e;if(!Ne(n,o))return"";let c=Me(e.look),h=De(a),u=Ot(e.THEME_COLOR_LIMIT,o),p=t((A)=>o[A%o.length],"border"),m=t((A)=>h?`fill: ${a[A%a.length]};`:"","fill"),k="";for(let A of z1){let S=t1.get(A),w=`[data-look="${c}"].node.${v1(A)}`;k+=`
29
-
30
- ${w} rect,
31
- ${w} path,
32
- ${w} polygon {
33
- stroke: ${p(S)};
34
- ${m(S)}
35
- }
36
- `}for(let A=0;A<F1(u);A++){let S=V1(A,u),w=`[data-look="${c}"][data-color-id="color-${S}"].cluster`,v=`[data-look="${c}"][data-color-id="color-${S}"].node`,z=t((V)=>`${w} ${V}, ${v} ${V}`,"rule");k+=`
37
-
38
- ${z("rect")},
39
- ${z("path")} {
40
- stroke: ${p(S)};
41
- ${m(S)}
42
- }
43
- `}return k},"genColor"),Z1=t((e,n)=>{let a=$n,o=a(e,"r"),c=a(e,"g"),h=a(e,"b");return Ie(o,c,h,n)},"fade"),$1=t((e)=>`${J1(e)}
44
- .label {
45
- font-family: ${e.fontFamily};
46
- color: ${e.nodeTextColor||e.textColor};
47
- }
48
- .cluster-label text {
49
- fill: ${e.titleColor};
50
- }
51
- .cluster-label span {
52
- color: ${e.titleColor};
53
- }
54
- .cluster-label span p {
55
- background-color: transparent;
56
- }
57
-
58
- .label text,span {
59
- fill: ${e.nodeTextColor||e.textColor};
60
- color: ${e.nodeTextColor||e.textColor};
61
- }
62
-
63
- .node rect,
64
- .node circle,
65
- .node ellipse,
66
- .node polygon,
67
- .node path {
68
- fill: ${e.mainBkg};
69
- stroke: ${e.nodeBorder};
70
- stroke-width: ${e.strokeWidth??1}px;
71
- }
72
- .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
73
- text-anchor: middle;
74
- }
75
- .node .katex path {
76
- fill: ${e.nodeTextColor||e.textColor};
77
- stroke: ${e.nodeTextColor||e.textColor};
78
- stroke-width: 1px;
79
- }
80
-
81
- .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
82
- text-align: center;
83
- }
84
- .node.clickable {
85
- cursor: pointer;
86
- }
87
-
88
-
89
- .root .anchor path {
90
- fill: ${e.lineColor} !important;
91
- stroke-width: 0;
92
- stroke: ${e.lineColor};
93
- }
94
-
95
- .arrowheadPath {
96
- fill: ${e.arrowheadColor};
97
- }
98
-
99
- .edgePaths .path {
100
- stroke: ${e.lineColor};
101
- stroke-width: ${e.strokeWidth??2}px;
102
- }
103
-
104
- .flowchart-link {
105
- stroke: ${e.lineColor};
106
- fill: none;
107
- }
108
-
109
- .edgeLabel {
110
- background-color: ${e.edgeLabelBackground};
111
- p {
112
- background-color: ${e.edgeLabelBackground};
113
- }
114
- rect {
115
- opacity: 0.5;
116
- background-color: ${e.edgeLabelBackground};
117
- fill: ${e.edgeLabelBackground};
118
- }
119
- text-align: center;
120
- }
121
-
122
- /* For html labels only */
123
- .labelBkg {
124
- background-color: ${Z1(e.edgeLabelBackground,0.5)};
125
- }
126
-
127
- .cluster rect {
128
- fill: ${e.clusterBkg};
129
- stroke: ${e.clusterBorder};
130
- stroke-width: 1px;
131
- }
132
-
133
- .flow-cluster rect {
134
- fill: none;
135
- stroke: ${e.clusterBorder};
136
- stroke-width: 0.75px;
137
- }
138
-
139
- .node .collapsed-indicator {
140
- fill: ${e.nodeBorder};
141
- stroke: none;
142
- stroke-width: 0;
143
- opacity: 0.5;
144
- }
145
-
146
- .node .collapsed-separator {
147
- stroke-width: 0.75px;
148
- }
149
-
150
- .cluster text {
151
- fill: ${e.titleColor};
152
- }
153
-
154
- .cluster span {
155
- color: ${e.titleColor};
156
- }
157
- /* .cluster div {
158
- color: ${e.titleColor};
159
- } */
160
-
161
- div.mermaidTooltip {
162
- position: absolute;
163
- text-align: center;
164
- max-width: 200px;
165
- padding: 2px;
166
- font-family: ${e.fontFamily};
167
- font-size: 12px;
168
- background: ${e.tertiaryColor};
169
- border: 1px solid ${e.border2};
170
- border-radius: 2px;
171
- pointer-events: none;
172
- z-index: 100;
173
- }
174
-
175
- .agentflowTitleText {
176
- text-anchor: middle;
177
- font-size: 18px;
178
- fill: ${e.textColor};
179
- }
180
-
181
- rect.text {
182
- fill: none;
183
- stroke-width: 0;
184
- }
185
-
186
- .icon-shape, .image-shape {
187
- background-color: ${e.edgeLabelBackground};
188
- p {
189
- background-color: ${e.edgeLabelBackground};
190
- padding: 2px;
191
- }
192
- .label rect {
193
- opacity: 0.5;
194
- background-color: ${e.edgeLabelBackground};
195
- fill: ${e.edgeLabelBackground};
196
- }
197
- text-align: center;
198
- }
199
- ${Et()}
200
- `,"getStyles"),es=$1,Ds={parser:Q1,get db(){return new H1},renderer:X1,styles:es,init:t((e)=>{if(e.agentflow??={},e.layout)vr({layout:e.layout});e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,vr({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")};export{Ds as diagram};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{Xc}from"./chunk-56a6zytc.js";export{Xc as QuestionDock};
@@ -1,2 +0,0 @@
1
- ��import{Xc}from"./chunk-56a6zytc.js";export{Xc as QuestionDock};
2
- 
Binary file
@@ -1 +0,0 @@
1
- import{te,e,n,b}from"./chunk-56a6zytc.js";import{Wn,na}from"./chunk-fjhqg9ag.js";import"./chunk-egjv760p.js";function M({connection:p}){let{ModelSelector:d,Select:c,SettingGroup:s,SettingRow:l}=b(),m=te(),i=na({connection:p,endpoint:"/api/plugins/prompt-optimizer/settings",loadError:"读取优化插件设置失败",toBody:(o)=>({schemaVersion:1,revision:o.revision,primaryModel:o.primaryModel,maxClarificationRounds:o.maxClarificationRounds}),differs:(o,t)=>o.primaryModel?.providerID!==t.primaryModel?.providerID||o.primaryModel?.modelID!==t.primaryModel?.modelID||o.maxClarificationRounds!==t.maxClarificationRounds}),r=i.settings?.primaryModel??null,u=r?`${r.providerID}/${r.modelID}`:"";return n("form",{id:m,onSubmit:i.save,className:"min-w-0 space-y-5",children:[e(s,{title:"模型",children:e(l,{title:"优化模型",description:"未选择时拒绝改写,不会自动回退到其他模型",children:e("div",{className:"w-56",children:e(d,{variant:"field",models:i.modelList,value:u,onChange:(o)=>{let t=o.indexOf("/"),a=t<0?"":o.slice(0,t),g=t<0?o:o.slice(t+1);i.edit((f)=>({...f,primaryModel:{providerID:a,modelID:g}}))}})})})}),e(s,{title:"交互",children:e(l,{title:"澄清提问轮数",description:"草稿有关键歧义时,模型最多可反问几轮",children:e("div",{className:"w-56",children:e(c,{value:String(i.settings?.maxClarificationRounds??1),disabled:i.loading||i.saving,onValueChange:(o)=>{let t=o==="2"?2:1;i.edit((a)=>({...a,maxClarificationRounds:t}))},groups:[{options:[{value:"1",label:"单轮澄清(推荐)",description:"提问一次后直接输出改写结果"},{value:"2",label:"最多两轮澄清",description:"首轮澄清后可针对残留疑问追问一次"}]}]})})})}),e(Wn,{formID:m,notice:i.notice,dirty:i.dirty,busy:i.loading||i.saving,saving:i.saving,onReset:i.reset})]})}export{M as PromptOptimizerSettingsSection};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{Fs}from"./chunk-9qdx0ekk.js";export{Fs as createTreeViewServices};
@@ -1,2 +0,0 @@
1
- �$�import{Fs}from"./chunk-9qdx0ekk.js";export{Fs as createTreeViewServices};
2
- 
Binary file
@@ -1,7 +0,0 @@
1
- import{t,i,Xe,F,q,Y,L,M,R,P,I,O,D,d,g}from"./chunk-h4bzgvbg.js";import"./chunk-96n00vam.js";import{vn}from"./chunk-3nn7w4hw.js";var Ut=function(){var e=t(function(st,o,h,f){for(h=h||{},f=st.length;f--;h[st[f]]=o);return h},"o"),r=[1,3],T=[1,4],y=[1,5],l=[1,6],p=[1,7],E=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],v=[2,36],_=[1,37],A=[1,36],m=[1,38],k=[1,35],S=[1,43],b=[1,41],z=[1,45],St=[1,14],_t=[1,23],At=[1,18],Ft=[1,19],mt=[1,20],zt=[1,21],qt=[1,22],n=[1,24],Ot=[1,25],Ht=[1,26],Xt=[1,27],Mt=[1,28],Yt=[1,29],tt=[1,32],et=[1,33],V=[1,34],w=[1,39],B=[1,40],N=[1,42],W=[1,44],at=[1,63],nt=[1,62],U=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],jt=[1,66],Gt=[1,67],Kt=[1,68],Zt=[1,69],Jt=[1,70],$t=[1,71],te=[1,72],ee=[1,73],ie=[1,74],ae=[1,75],ne=[1,76],re=[1,77],G=[4,5,6,7,8,9,10,11,12,13,14,15,18],ht=[1,91],ct=[1,92],dt=[1,93],ut=[1,100],xt=[1,94],ft=[1,97],gt=[1,95],pt=[1,96],yt=[1,98],bt=[1,99],Vt=[1,103],se=[10,55,56,57],K=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],It={trace:t(function(){},"trace"),yy:{},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},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"},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],[58,1],[59,1],[59,1],[59,1]],performAction:t(function(o,h,f,x,C,a,kt){var s=a.length-1;switch(C){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+""+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],x.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),x.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),x.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),x.setAccDescription(this.$);break;case 46:x.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:x.addPoint(a[s-3],"",a[s-1],a[s],[]);break;case 48:x.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:x.addPoint(a[s-4],"",a[s-2],a[s-1],a[s]);break;case 50:x.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:x.setXAxisLeftText(a[s-2]),x.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=" ⟶ ",x.setXAxisLeftText(a[s-1]);break;case 53:x.setXAxisLeftText(a[s]);break;case 54:x.setYAxisBottomText(a[s-2]),x.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=" ⟶ ",x.setYAxisBottomText(a[s-1]);break;case 56:x.setYAxisBottomText(a[s]);break;case 57:x.setQuadrant1Text(a[s]);break;case 58:x.setQuadrant2Text(a[s]);break;case 59:x.setQuadrant3Text(a[s]);break;case 60:x.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:"text"};break;case 65:this.$={text:a[s-1].text+""+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:"text"};break;case 67:this.$={text:a[s],type:"markdown"};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+""+a[s];break}},"anonymous"),table:[{18:r,26:1,27:2,28:T,55:y,56:l,57:p},{1:[3]},{18:r,26:8,27:2,28:T,55:y,56:l,57:p},{18:r,26:9,27:2,28:T,55:y,56:l,57:p},e(E,[2,33],{29:10}),e(c,[2,61]),e(c,[2,62]),e(c,[2,63]),{1:[2,30]},{1:[2,31]},e(u,v,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:_,5:A,10:m,12:k,13:S,14:b,15:z,18:St,25:_t,35:At,37:Ft,39:mt,41:zt,42:qt,48:n,50:Ot,51:Ht,52:Xt,53:Mt,54:Yt,60:tt,61:et,63:V,64:w,65:B,66:N,67:W}),e(E,[2,34]),{27:46,55:y,56:l,57:p},e(u,[2,37]),e(u,v,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:_,5:A,10:m,12:k,13:S,14:b,15:z,18:St,25:_t,35:At,37:Ft,39:mt,41:zt,42:qt,48:n,50:Ot,51:Ht,52:Xt,53:Mt,54:Yt,60:tt,61:et,63:V,64:w,65:B,66:N,67:W}),e(u,[2,39]),e(u,[2,40]),e(u,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(u,[2,45]),e(u,[2,46]),{18:[1,51]},{4:_,5:A,10:m,12:k,13:S,14:b,15:z,43:52,58:31,60:tt,61:et,63:V,64:w,65:B,66:N,67:W},{4:_,5:A,10:m,12:k,13:S,14:b,15:z,43:53,58:31,60:tt,61:et,63:V,64:w,65:B,66:N,67:W},{4:_,5:A,10:m,12:k,13:S,14:b,15:z,43:54,58:31,60:tt,61:et,63:V,64:w,65:B,66:N,67:W},{4:_,5:A,10:m,12:k,13:S,14:b,15:z,43:55,58:31,60:tt,61:et,63:V,64:w,65:B,66:N,67:W},{4:_,5:A,10:m,12:k,13:S,14:b,15:z,43:56,58:31,60:tt,61:et,63:V,64:w,65:B,66:N,67:W},{4:_,5:A,10:m,12:k,13:S,14:b,15:z,43:57,58:31,60:tt,61:et,63:V,64:w,65:B,66:N,67:W},{4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,44:[1,58],47:[1,59],58:61,59:60,63:V,64:w,65:B,66:N,67:W},e(U,[2,64]),e(U,[2,66]),e(U,[2,67]),e(U,[2,70]),e(U,[2,71]),e(U,[2,72]),e(U,[2,73]),e(U,[2,74]),e(U,[2,75]),e(U,[2,76]),e(U,[2,77]),e(U,[2,78]),e(U,[2,79]),e(U,[2,80]),e(U,[2,81]),e(E,[2,35]),e(u,[2,38]),e(u,[2,42]),e(u,[2,43]),e(u,[2,44]),{3:65,4:jt,5:Gt,6:Kt,7:Zt,8:Jt,9:$t,10:te,11:ee,12:ie,13:ae,14:ne,15:re,21:64},e(u,[2,53],{59:60,58:61,4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,49:[1,78],63:V,64:w,65:B,66:N,67:W}),e(u,[2,56],{59:60,58:61,4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,49:[1,79],63:V,64:w,65:B,66:N,67:W}),e(u,[2,57],{59:60,58:61,4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,63:V,64:w,65:B,66:N,67:W}),e(u,[2,58],{59:60,58:61,4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,63:V,64:w,65:B,66:N,67:W}),e(u,[2,59],{59:60,58:61,4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,63:V,64:w,65:B,66:N,67:W}),e(u,[2,60],{59:60,58:61,4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,63:V,64:w,65:B,66:N,67:W}),{45:[1,80]},{44:[1,81]},e(U,[2,65]),e(U,[2,82]),e(U,[2,83]),e(U,[2,84]),{3:83,4:jt,5:Gt,6:Kt,7:Zt,8:Jt,9:$t,10:te,11:ee,12:ie,13:ae,14:ne,15:re,18:[1,82]},e(G,[2,23]),e(G,[2,1]),e(G,[2,2]),e(G,[2,3]),e(G,[2,4]),e(G,[2,5]),e(G,[2,6]),e(G,[2,7]),e(G,[2,8]),e(G,[2,9]),e(G,[2,10]),e(G,[2,11]),e(G,[2,12]),e(u,[2,52],{58:31,43:84,4:_,5:A,10:m,12:k,13:S,14:b,15:z,60:tt,61:et,63:V,64:w,65:B,66:N,67:W}),e(u,[2,55],{58:31,43:85,4:_,5:A,10:m,12:k,13:S,14:b,15:z,60:tt,61:et,63:V,64:w,65:B,66:N,67:W}),{46:[1,86]},{45:[1,87]},{4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,16:90,17:gt,18:pt,19:yt,20:bt,22:89,23:88},e(G,[2,24]),e(u,[2,51],{59:60,58:61,4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,63:V,64:w,65:B,66:N,67:W}),e(u,[2,54],{59:60,58:61,4:_,5:A,8:at,10:m,12:k,13:S,14:b,15:z,18:nt,63:V,64:w,65:B,66:N,67:W}),e(u,[2,47],{22:89,16:90,23:101,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),{46:[1,102]},e(u,[2,29],{10:Vt}),e(se,[2,27],{16:104,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),e(K,[2,25]),e(K,[2,13]),e(K,[2,14]),e(K,[2,15]),e(K,[2,16]),e(K,[2,17]),e(K,[2,18]),e(K,[2,19]),e(K,[2,20]),e(K,[2,21]),e(K,[2,22]),e(u,[2,49],{10:Vt}),e(u,[2,48],{22:89,16:90,23:105,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt}),{4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,16:90,17:gt,18:pt,19:yt,20:bt,22:106},e(K,[2,26]),e(u,[2,50],{10:Vt}),e(se,[2,28],{16:104,4:ht,5:ct,6:dt,8:ut,11:xt,13:ft,17:gt,18:pt,19:yt,20:bt})],defaultActions:{8:[2,30],9:[2,31]},parseError:t(function(o,h){if(h.recoverable)this.trace(o);else{var f=Error(o);throw f.hash=h,f}},"parseError"),parse:t(function(o){var h=this,f=[0],x=[],C=[null],a=[],kt=this.table,s="",vt=0,oe=0,le=0,ve=2,he=1,Ce=a.slice.call(arguments,1),Q=Object.create(this.lexer),ot={yy:{}};for(var wt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,wt))ot.yy[wt]=this.yy[wt];if(Q.setInput(o,ot.yy),ot.yy.lexer=Q,ot.yy.parser=this,typeof Q.yylloc>"u")Q.yylloc={};var Bt=Q.yylloc;a.push(Bt);var Le=Q.options&&Q.options.ranges;if(typeof ot.yy.parseError==="function")this.parseError=ot.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ee(J){f.length=f.length-2*J,C.length=C.length-J,a.length=a.length-J}t(Ee,"popStack");function ce(){var J=x.pop()||Q.lex()||he;if(typeof J!=="number"){if(J instanceof Array)x=J,J=x.pop();J=h.symbols_[J]||J}return J}t(ce,"lex");var X,Rt,lt,Z,Re,Nt,Tt={},Ct,rt,de,Lt;while(!0){if(lt=f[f.length-1],this.defaultActions[lt])Z=this.defaultActions[lt];else{if(X===null||typeof X>"u")X=ce();Z=kt[lt]&&kt[lt][X]}if(typeof Z>"u"||!Z.length||!Z[0]){var Wt="";Lt=[];for(Ct in kt[lt])if(this.terminals_[Ct]&&Ct>ve)Lt.push("'"+this.terminals_[Ct]+"'");if(Q.showPosition)Wt="Parse error on line "+(vt+1)+`:
2
- `+Q.showPosition()+`
3
- Expecting `+Lt.join(", ")+", got '"+(this.terminals_[X]||X)+"'";else Wt="Parse error on line "+(vt+1)+": Unexpected "+(X==he?"end of input":"'"+(this.terminals_[X]||X)+"'");this.parseError(Wt,{text:Q.match,token:this.terminals_[X]||X,line:Q.yylineno,loc:Bt,expected:Lt})}if(Z[0]instanceof Array&&Z.length>1)throw Error("Parse Error: multiple actions possible at state: "+lt+", token: "+X);switch(Z[0]){case 1:if(f.push(X),C.push(Q.yytext),a.push(Q.yylloc),f.push(Z[1]),X=null,!Rt){if(oe=Q.yyleng,s=Q.yytext,vt=Q.yylineno,Bt=Q.yylloc,le>0)le--}else X=Rt,Rt=null;break;case 2:if(rt=this.productions_[Z[1]][1],Tt.$=C[C.length-rt],Tt._$={first_line:a[a.length-(rt||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(rt||1)].first_column,last_column:a[a.length-1].last_column},Le)Tt._$.range=[a[a.length-(rt||1)].range[0],a[a.length-1].range[1]];if(Nt=this.performAction.apply(Tt,[s,oe,vt,ot.yy,Z[1],C,a].concat(Ce)),typeof Nt<"u")return Nt;if(rt)f=f.slice(0,-1*rt*2),C=C.slice(0,-1*rt),a=a.slice(0,-1*rt);f.push(this.productions_[Z[1]][0]),C.push(Tt.$),a.push(Tt._$),de=kt[f[f.length-2]][f[f.length-1]],f.push(de);break;case 3:return!0}}return!0},"parse")},Pe=function(){var st={EOF:1,parseError:t(function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw Error(h)},"parseError"),setInput:t(function(o,h){if(this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);if(h)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:t(function(o){var h=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var x=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1)this.yylineno-=f.length-1;var C=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===x.length?this.yylloc.first_column:0)+x[x.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges)this.yylloc.range=[C[0],C[0]+this.yyleng-h];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),h=Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
- `+h+"^"},"showPosition"),test_match:t(function(o,h){var f,x,C;if(this.options.backtrack_lexer){if(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)C.yylloc.range=this.yylloc.range.slice(0)}if(x=o[0].match(/(?:\r\n?|\n).*/g),x)this.yylineno+=x.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(f)return f;else if(this._backtrack){for(var a in C)this[a]=C[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,h,f,x;if(!this._more)this.yytext="",this.match="";var C=this._currentRules();for(var a=0;a<C.length;a++)if(f=this._input.match(this.rules[C[a]]),f&&(!h||f[0].length>h[0].length)){if(h=f,x=a,this.options.backtrack_lexer)if(o=this.test_match(f,C[a]),o!==!1)return o;else if(this._backtrack){h=!1;continue}else return!1;else if(!this.options.flex)break}if(h){if(o=this.test_match(h,C[x]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var h=this.next();if(h)return h;else return this.lex()},"lex"),begin:t(function(h){this.conditionStack.push(h)},"begin"),popState:t(function(){var h=this.conditionStack.length-1;if(h>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(h){if(h=this.conditionStack.length-1-Math.abs(h||0),h>=0)return this.conditionStack[h];else return"INITIAL"},"topState"),pushState:t(function(h){this.begin(h)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(h,f,x,C){var a=C;switch(x){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),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,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],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,52],inclusive:!0}}};return st}();It.lexer=Pe;function Pt(){this.yy={}}return t(Pt,"Parser"),Pt.prototype=It,It.Parser=Pt,new Pt}();Ut.parser=Ut;var De=Ut,j=Xe(),ze=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{t(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:F.quadrantChart?.chartWidth||500,chartWidth:F.quadrantChart?.chartHeight||500,titlePadding:F.quadrantChart?.titlePadding||10,titleFontSize:F.quadrantChart?.titleFontSize||20,quadrantPadding:F.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:F.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:F.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:F.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:F.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:F.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:F.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:F.quadrantChart?.pointTextPadding||5,pointLabelFontSize:F.quadrantChart?.pointLabelFontSize||12,pointRadius:F.quadrantChart?.pointRadius||5,xAxisPosition:F.quadrantChart?.xAxisPosition||"top",yAxisPosition:F.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:F.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:F.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:j.quadrant1Fill,quadrant2Fill:j.quadrant2Fill,quadrant3Fill:j.quadrant3Fill,quadrant4Fill:j.quadrant4Fill,quadrant1TextFill:j.quadrant1TextFill,quadrant2TextFill:j.quadrant2TextFill,quadrant3TextFill:j.quadrant3TextFill,quadrant4TextFill:j.quadrant4TextFill,quadrantPointFill:j.quadrantPointFill,quadrantPointTextFill:j.quadrantPointTextFill,quadrantXAxisTextFill:j.quadrantXAxisTextFill,quadrantYAxisTextFill:j.quadrantYAxisTextFill,quadrantTitleFill:j.quadrantTitleFill,quadrantInternalBorderStrokeFill:j.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:j.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,i.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){i.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){i.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,T,y){let l=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,p={top:e==="top"&&r?l:0,bottom:e==="bottom"&&r?l:0},E=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,c={left:this.config.yAxisPosition==="left"&&T?E:0,right:this.config.yAxisPosition==="right"&&T?E:0},u=this.config.titleFontSize+this.config.titlePadding*2,v={top:y?u:0},_=this.config.quadrantPadding+c.left,A=this.config.quadrantPadding+p.top+v.top,m=this.config.chartWidth-this.config.quadrantPadding*2-c.left-c.right,k=this.config.chartHeight-this.config.quadrantPadding*2-p.top-p.bottom-v.top,S=m/2,b=k/2;return{xAxisSpace:p,yAxisSpace:c,titleSpace:v,quadrantSpace:{quadrantLeft:_,quadrantTop:A,quadrantWidth:m,quadrantHalfWidth:S,quadrantHeight:k,quadrantHalfHeight:b}}}getAxisLabels(e,r,T,y){let{quadrantSpace:l,titleSpace:p}=y,{quadrantHalfHeight:E,quadrantHeight:c,quadrantLeft:u,quadrantHalfWidth:v,quadrantTop:_,quadrantWidth:A}=l,m=Boolean(this.data.xAxisRightText),k=Boolean(this.data.yAxisTopText),S=[];if(this.data.xAxisLeftText&&r)S.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+(m?v/2:0),y:e==="top"?this.config.xAxisLabelPadding+p.top:this.config.xAxisLabelPadding+_+c+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0});if(this.data.xAxisRightText&&r)S.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:u+v+(m?v/2:0),y:e==="top"?this.config.xAxisLabelPadding+p.top:this.config.xAxisLabelPadding+_+c+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0});if(this.data.yAxisBottomText&&T)S.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+A+this.config.quadrantPadding,y:_+c-(k?E/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});if(this.data.yAxisTopText&&T)S.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+u+A+this.config.quadrantPadding,y:_+E-(k?E/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:k?"center":"left",horizontalPos:"top",rotation:-90});return S}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:T,quadrantLeft:y,quadrantHalfWidth:l,quadrantTop:p}=r,E=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+l,y:p,width:l,height:T,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:p,width:l,height:T,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y,y:p+T,width:l,height:T,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:y+l,y:p+T,width:l,height:T,fill:this.themeConfig.quadrant4Fill}];for(let c of E)if(c.text.x=c.x+c.width/2,this.data.points.length===0)c.text.y=c.y+c.height/2,c.text.horizontalPos="middle";else c.text.y=c.y+this.config.quadrantTextTopPadding,c.text.horizontalPos="top";return E}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:T,quadrantLeft:y,quadrantTop:l,quadrantWidth:p}=r,E=vn().domain([0,1]).range([y,p+y]),c=vn().domain([0,1]).range([T+l,l]);return this.data.points.map((v)=>{let _=this.classes.get(v.className);if(_)v={..._,...v};return{x:E(v.x),y:c(v.y),fill:v.color??this.themeConfig.quadrantPointFill,radius:v.radius??this.config.pointRadius,text:{text:v.text,fill:this.themeConfig.quadrantPointTextFill,x:E(v.x),y:c(v.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:v.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:v.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:T}=e,{quadrantHalfHeight:y,quadrantHeight:l,quadrantLeft:p,quadrantHalfWidth:E,quadrantTop:c,quadrantWidth:u}=T;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:p-r,y1:c,x2:p+u+r,y2:c},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:p+u,y1:c+r,x2:p+u,y2:c+l-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:p-r,y1:c+l,x2:p+u+r,y2:c+l},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:p,y1:c+r,x2:p,y2:c+l-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:p+E,y1:c+r,x2:p+E,y2:c+l-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:p+r,y1:c+y,x2:p+u-r,y2:c+y}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2};return}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),T=this.config.showTitle&&!!this.data.titleText,y=this.data.points.length>0?"bottom":this.config.xAxisPosition,l=this.calculateSpace(y,e,r,T);return{points:this.getQuadrantPoints(l),quadrants:this.getQuadrants(l),axisLabels:this.getAxisLabels(y,e,r,l),borderLines:this.getBorders(l),title:this.getTitle(T)}}},Et=class extends Error{static{t(this,"InvalidStyleError")}constructor(e,r,T){super(`value for ${e} ${r} is invalid, please use a valid ${T}`);this.name="InvalidStyleError"}};function Qt(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}t(Qt,"validateHexCode");function ue(e){return!/^\d+$/.test(e)}t(ue,"validateNumber");function xe(e){return!/^\d+px$/.test(e)}t(xe,"validateSizeInPixels");function it(e){return q(e.trim(),d())}t(it,"textSanitizer");var H=new ze;function fe(e){H.setData({quadrant1Text:it(e.text)})}t(fe,"setQuadrant1Text");function ge(e){H.setData({quadrant2Text:it(e.text)})}t(ge,"setQuadrant2Text");function pe(e){H.setData({quadrant3Text:it(e.text)})}t(pe,"setQuadrant3Text");function ye(e){H.setData({quadrant4Text:it(e.text)})}t(ye,"setQuadrant4Text");function be(e){H.setData({xAxisLeftText:it(e.text)})}t(be,"setXAxisLeftText");function Te(e){H.setData({xAxisRightText:it(e.text)})}t(Te,"setXAxisRightText");function me(e){H.setData({yAxisTopText:it(e.text)})}t(me,"setYAxisTopText");function qe(e){H.setData({yAxisBottomText:it(e.text)})}t(qe,"setYAxisBottomText");function Dt(e){let r={};for(let T of e){let[y,l]=T.trim().split(/\s*:\s*/);if(y==="radius"){if(ue(l))throw new Et(y,l,"number");r.radius=parseInt(l)}else if(y==="color"){if(Qt(l))throw new Et(y,l,"hex code");r.color=l}else if(y==="stroke-color"){if(Qt(l))throw new Et(y,l,"hex code");r.strokeColor=l}else if(y==="stroke-width"){if(xe(l))throw new Et(y,l,"number of pixels (eg. 10px)");r.strokeWidth=l}else throw Error(`style named ${y} is not supported.`)}return r}t(Dt,"parseStyles");function ke(e,r,T,y,l){let p=Dt(l);H.addPoints([{x:T,y,text:it(e.text),className:r,...p}])}t(ke,"addPoint");function Se(e,r){H.addClass(e,Dt(r))}t(Se,"addClass");function _e(e){H.setConfig({chartWidth:e})}t(_e,"setWidth");function Ae(e){H.setConfig({chartHeight:e})}t(Ae,"setHeight");function Fe(){let e=d(),{themeVariables:r,quadrantChart:T}=e;if(T)H.setConfig(T);return H.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),H.setData({titleText:D()}),H.build()}t(Fe,"getQuadrantData");var Ve=t(function(){H.clear(),L()},"clear"),Ie={setWidth:_e,setHeight:Ae,setQuadrant1Text:fe,setQuadrant2Text:ge,setQuadrant3Text:pe,setQuadrant4Text:ye,setXAxisLeftText:be,setXAxisRightText:Te,setYAxisTopText:me,setYAxisBottomText:qe,parseStyles:Dt,addPoint:ke,addClass:Se,getQuadrantData:Fe,clear:Ve,setAccTitle:M,getAccTitle:R,setDiagramTitle:O,getDiagramTitle:D,getAccDescription:I,setAccDescription:P},we=t((e,r,T,y)=>{function l(n){return n==="top"?"hanging":"middle"}t(l,"getDominantBaseLine");function p(n){return n==="left"?"start":"middle"}t(p,"getTextAnchor");function E(n){return`translate(${n.x}, ${n.y}) rotate(${n.rotation||0})`}t(E,"getTransformation");let c=d();i.debug(`Rendering quadrant chart
7
- `+e);let u=c.securityLevel,v;if(u==="sandbox")v=g("#i"+r);let A=(u==="sandbox"?g(v.nodes()[0].contentDocument.body):g("body")).select(`[id="${r}"]`),m=A.append("g").attr("class","main"),k=c.quadrantChart?.chartWidth??500,S=c.quadrantChart?.chartHeight??500;Y(A,S,k,c.quadrantChart?.useMaxWidth??!0),A.attr("viewBox","0 0 "+k+" "+S),y.db.setHeight(S),y.db.setWidth(k);let b=y.db.getQuadrantData(),z=m.append("g").attr("class","quadrants"),St=m.append("g").attr("class","border"),_t=m.append("g").attr("class","data-points"),At=m.append("g").attr("class","labels"),Ft=m.append("g").attr("class","title");if(b.title)Ft.append("text").attr("x",0).attr("y",0).attr("fill",b.title.fill).attr("font-size",b.title.fontSize).attr("dominant-baseline",l(b.title.horizontalPos)).attr("text-anchor",p(b.title.verticalPos)).attr("transform",E(b.title)).text(b.title.text);if(b.borderLines)St.selectAll("line").data(b.borderLines).enter().append("line").attr("x1",(n)=>n.x1).attr("y1",(n)=>n.y1).attr("x2",(n)=>n.x2).attr("y2",(n)=>n.y2).style("stroke",(n)=>n.strokeFill).style("stroke-width",(n)=>n.strokeWidth);let mt=z.selectAll("g.quadrant").data(b.quadrants).enter().append("g").attr("class","quadrant");mt.append("rect").attr("x",(n)=>n.x).attr("y",(n)=>n.y).attr("width",(n)=>n.width).attr("height",(n)=>n.height).attr("fill",(n)=>n.fill),mt.append("text").attr("x",0).attr("y",0).attr("fill",(n)=>n.text.fill).attr("font-size",(n)=>n.text.fontSize).attr("dominant-baseline",(n)=>l(n.text.horizontalPos)).attr("text-anchor",(n)=>p(n.text.verticalPos)).attr("transform",(n)=>E(n.text)).text((n)=>n.text.text),At.selectAll("g.label").data(b.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((n)=>n.text).attr("fill",(n)=>n.fill).attr("font-size",(n)=>n.fontSize).attr("dominant-baseline",(n)=>l(n.horizontalPos)).attr("text-anchor",(n)=>p(n.verticalPos)).attr("transform",(n)=>E(n));let qt=_t.selectAll("g.data-point").data(b.points).enter().append("g").attr("class","data-point");qt.append("circle").attr("cx",(n)=>n.x).attr("cy",(n)=>n.y).attr("r",(n)=>n.radius).attr("fill",(n)=>n.fill).attr("stroke",(n)=>n.strokeColor).attr("stroke-width",(n)=>n.strokeWidth),qt.append("text").attr("x",0).attr("y",0).text((n)=>n.text.text).attr("fill",(n)=>n.text.fill).attr("font-size",(n)=>n.text.fontSize).attr("dominant-baseline",(n)=>l(n.text.horizontalPos)).attr("text-anchor",(n)=>p(n.text.verticalPos)).attr("transform",(n)=>E(n.text))},"draw"),Be={draw:we},He={parser:De,db:Ie,renderer:Be,styles:t(()=>"","styles")};export{He as diagram};
Binary file
Binary file
@@ -1,40 +0,0 @@
1
- import{t,C,un,L,M,R,P,I,O,D,d,Ur,g,we,la,Mc,No,Mo,ua}from"./chunk-h4bzgvbg.js";import{ra,Mr}from"./chunk-efjc9mga.js";import{Ut}from"./chunk-k89686qj.js";function nt(n,l){let p=0;if(l===void 0){for(let m of n)if(m=+m)p+=m}else{let m=-1;for(let v of n)if(v=+l(v,++m,n))p+=v}return p}function ht(n){var l=n.length/6|0,p=Array(l),m=0;while(m<l)p[m]="#"+n.slice(m*6,++m*6);return p}var dt=ht("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Lt(n){return n.source}function Et(n){return n.target}function Pt(n){let l=Lt,p=Et,m=No,v=Mo,S=null,y=null,T=la(i);function i(){let o,u=Mc.call(arguments),b=l.apply(this,u),x=p.apply(this,u);if(S==null)y=n(o=T());if(y.lineStart(),u[0]=b,y.point(+m.apply(this,u),+v.apply(this,u)),u[0]=x,y.point(+m.apply(this,u),+v.apply(this,u)),y.lineEnd(),o)return y=null,o+""||null}return i.source=function(o){return arguments.length?(l=o,i):l},i.target=function(o){return arguments.length?(p=o,i):p},i.x=function(o){return arguments.length?(m=typeof o==="function"?o:we(+o),i):m},i.y=function(o){return arguments.length?(v=typeof o==="function"?o:we(+o),i):v},i.context=function(o){return arguments.length?(o==null?S=y=null:y=n(S=o),i):S},i}function kt(){return Pt(ua)}function At(n){return n.target.depth}function pt(n){return n.depth}function yt(n,l){return l-1-n.height}function rt(n,l){return n.sourceLinks.length?n.depth:l-1}function mt(n){return n.targetLinks.length?n.depth:n.sourceLinks.length?Mr(n.sourceLinks,At)-1:0}function tt(n){return function(){return n}}function bt(n,l){return st(n.source,l.source)||n.index-l.index}function vt(n,l){return st(n.target,l.target)||n.index-l.index}function st(n,l){return n.y0-l.y0}function gt(n){return n.value}function Tt(n){return n.index}function Ct(n){return n.nodes}function Bt(n){return n.links}function _t(n,l){let p=n.get(l);if(!p)throw Error("missing: "+l);return p}function St({nodes:n}){for(let l of n){let p=l.y0,m=p;for(let v of l.sourceLinks)v.y0=p+v.width/2,p+=v.width;for(let v of l.targetLinks)v.y1=m+v.width/2,m+=v.width}}function ot(){let n=0,l=0,p=1,m=1,v=24,S=8,y,T=Tt,i=rt,o,u,b=Ct,x=Bt,f=6;function _(){let e={nodes:b.apply(null,arguments),links:x.apply(null,arguments)};return B(e),N(e),W(e),U(e),z(e),St(e),e}_.update=function(e){return St(e),e},_.nodeId=function(e){return arguments.length?(T=typeof e==="function"?e:tt(e),_):T},_.nodeAlign=function(e){return arguments.length?(i=typeof e==="function"?e:tt(e),_):i},_.nodeSort=function(e){return arguments.length?(o=e,_):o},_.nodeWidth=function(e){return arguments.length?(v=+e,_):v},_.nodePadding=function(e){return arguments.length?(S=y=+e,_):S},_.nodes=function(e){return arguments.length?(b=typeof e==="function"?e:tt(e),_):b},_.links=function(e){return arguments.length?(x=typeof e==="function"?e:tt(e),_):x},_.linkSort=function(e){return arguments.length?(u=e,_):u},_.size=function(e){return arguments.length?(n=l=0,p=+e[0],m=+e[1],_):[p-n,m-l]},_.extent=function(e){return arguments.length?(n=+e[0][0],p=+e[1][0],l=+e[0][1],m=+e[1][1],_):[[n,l],[p,m]]},_.iterations=function(e){return arguments.length?(f=+e,_):f};function B({nodes:e,links:a}){for(let[r,s]of e.entries())s.index=r,s.sourceLinks=[],s.targetLinks=[];let c=new Map(e.map((r,s)=>[T(r,s,e),r]));for(let[r,s]of a.entries()){s.index=r;let{source:h,target:k}=s;if(typeof h!=="object")h=s.source=_t(c,h);if(typeof k!=="object")k=s.target=_t(c,k);h.sourceLinks.push(s),k.targetLinks.push(s)}if(u!=null)for(let{sourceLinks:r,targetLinks:s}of e)r.sort(u),s.sort(u)}function N({nodes:e}){for(let a of e)a.value=a.fixedValue===void 0?Math.max(nt(a.sourceLinks,gt),nt(a.targetLinks,gt)):a.fixedValue}function W({nodes:e}){let a=e.length,c=new Set(e),r=new Set,s=0;while(c.size){for(let h of c){h.depth=s;for(let{target:k}of h.sourceLinks)r.add(k)}if(++s>a)throw Error("circular link");c=r,r=new Set}}function U({nodes:e}){let a=e.length,c=new Set(e),r=new Set,s=0;while(c.size){for(let h of c){h.height=s;for(let{source:k}of h.targetLinks)r.add(k)}if(++s>a)throw Error("circular link");c=r,r=new Set}}function Q({nodes:e}){let a=ra(e,(s)=>s.depth)+1,c=(p-n-v)/(a-1),r=Array(a);for(let s of e){let h=Math.max(0,Math.min(a-1,Math.floor(i.call(null,s,a))));if(s.layer=h,s.x0=n+h*c,s.x1=s.x0+v,r[h])r[h].push(s);else r[h]=[s]}if(o)for(let s of r)s.sort(o);return r}function q(e){let a=Mr(e,(c)=>(m-l-(c.length-1)*y)/nt(c,gt));for(let c of e){let r=l;for(let s of c){s.y0=r,s.y1=r+s.value*a,r=s.y1+y;for(let h of s.sourceLinks)h.width=h.value*a}r=(m-r+y)/(c.length+1);for(let s=0;s<c.length;++s){let h=c[s];h.y0+=r*(s+1),h.y1+=r*(s+1)}K(c)}}function z(e){let a=Q(e);y=Math.min(S,(m-l)/(ra(a,(c)=>c.length)-1)),q(a);for(let c=0;c<f;++c){let r=Math.pow(0.99,c),s=Math.max(1-r,(c+1)/f);Y(a,r,s),w(a,r,s)}}function w(e,a,c){for(let r=1,s=e.length;r<s;++r){let h=e[r];for(let k of h){let J=0,G=0;for(let{source:A,value:ft}of k.targetLinks){let et=ft*(k.layer-A.layer);J+=E(A,k)*et,G+=et}if(!(G>0))continue;let F=(J/G-k.y0)*a;k.y0+=F,k.y1+=F,Z(k)}if(o===void 0)h.sort(st);H(h,c)}}function Y(e,a,c){for(let r=e.length,s=r-2;s>=0;--s){let h=e[s];for(let k of h){let J=0,G=0;for(let{target:A,value:ft}of k.sourceLinks){let et=ft*(A.layer-k.layer);J+=V(k,A)*et,G+=et}if(!(G>0))continue;let F=(J/G-k.y0)*a;k.y0+=F,k.y1+=F,Z(k)}if(o===void 0)h.sort(st);H(h,c)}}function H(e,a){let c=e.length>>1,r=e[c];j(e,r.y0-y,c-1,a),X(e,r.y1+y,c+1,a),j(e,m,e.length-1,a),X(e,l,0,a)}function X(e,a,c,r){for(;c<e.length;++c){let s=e[c],h=(a-s.y0)*r;if(h>0.000001)s.y0+=h,s.y1+=h;a=s.y1+y}}function j(e,a,c,r){for(;c>=0;--c){let s=e[c],h=(s.y1-a)*r;if(h>0.000001)s.y0-=h,s.y1-=h;a=s.y0-y}}function Z({sourceLinks:e,targetLinks:a}){if(u===void 0){for(let{source:{sourceLinks:c}}of a)c.sort(vt);for(let{target:{targetLinks:c}}of e)c.sort(bt)}}function K(e){if(u===void 0)for(let{sourceLinks:a,targetLinks:c}of e)a.sort(vt),c.sort(bt)}function E(e,a){let c=e.y0-(e.sourceLinks.length-1)*y/2;for(let{target:r,width:s}of e.sourceLinks){if(r===a)break;c+=s+y}for(let{source:r,width:s}of a.targetLinks){if(r===e)break;c-=s}return c}function V(e,a){let c=a.y0-(a.targetLinks.length-1)*y/2;for(let{source:r,width:s}of a.targetLinks){if(r===e)break;c+=s+y}for(let{target:r,width:s}of e.sourceLinks){if(r===a)break;c-=s}return c}return _}function Ot(n){return[n.source.x1,n.y0]}function Rt(n){return[n.target.x0,n.y1]}function it(){return kt().source(Ot).target(Rt)}var xt=function(){var n=t(function(T,i,o,u){for(o=o||{},u=T.length;u--;o[T[u]]=i);return o},"o"),l=[1,9],p=[1,10],m=[1,5,10,12],v={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:t(function(i,o,u,b,x,f,_){var B=f.length-1;switch(x){case 7:let N=b.findOrCreateNode(f[B-4].trim().replaceAll('""','"')),W=b.findOrCreateNode(f[B-2].trim().replaceAll('""','"')),U=parseFloat(f[B].trim());b.addLink(N,W,U);break;case 8:case 9:case 11:this.$=f[B];break;case 10:this.$=f[B-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:l,20:p},{1:[2,6],7:11,10:[1,12]},n(p,[2,4],{9:13,5:[1,14]}),{12:[1,15]},n(m,[2,8]),n(m,[2,9]),{19:[1,16]},n(m,[2,11]),{1:[2,1]},{1:[2,5]},n(p,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:l,20:p},{15:18,16:7,17:8,18:l,20:p},{18:[1,19]},n(p,[2,3]),{12:[1,20]},n(m,[2,10]),{15:21,16:7,17:8,18:l,20:p},n([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:t(function(i,o){if(o.recoverable)this.trace(i);else{var u=Error(i);throw u.hash=o,u}},"parseError"),parse:t(function(i){var o=this,u=[0],b=[],x=[null],f=[],_=this.table,B="",N=0,W=0,U=0,Q=2,q=1,z=f.slice.call(arguments,1),w=Object.create(this.lexer),Y={yy:{}};for(var H in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,H))Y.yy[H]=this.yy[H];if(w.setInput(i,Y.yy),Y.yy.lexer=w,Y.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var X=w.yylloc;f.push(X);var j=w.options&&w.options.ranges;if(typeof Y.yy.parseError==="function")this.parseError=Y.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Z(A){u.length=u.length-2*A,x.length=x.length-A,f.length=f.length-A}t(Z,"popStack");function K(){var A=b.pop()||w.lex()||q;if(typeof A!=="number"){if(A instanceof Array)b=A,A=b.pop();A=o.symbols_[A]||A}return A}t(K,"lex");var E,V,e,a,c,r,s={},h,k,J,G;while(!0){if(e=u[u.length-1],this.defaultActions[e])a=this.defaultActions[e];else{if(E===null||typeof E>"u")E=K();a=_[e]&&_[e][E]}if(typeof a>"u"||!a.length||!a[0]){var F="";G=[];for(h in _[e])if(this.terminals_[h]&&h>Q)G.push("'"+this.terminals_[h]+"'");if(w.showPosition)F="Parse error on line "+(N+1)+`:
2
- `+w.showPosition()+`
3
- Expecting `+G.join(", ")+", got '"+(this.terminals_[E]||E)+"'";else F="Parse error on line "+(N+1)+": Unexpected "+(E==q?"end of input":"'"+(this.terminals_[E]||E)+"'");this.parseError(F,{text:w.match,token:this.terminals_[E]||E,line:w.yylineno,loc:X,expected:G})}if(a[0]instanceof Array&&a.length>1)throw Error("Parse Error: multiple actions possible at state: "+e+", token: "+E);switch(a[0]){case 1:if(u.push(E),x.push(w.yytext),f.push(w.yylloc),u.push(a[1]),E=null,!V){if(W=w.yyleng,B=w.yytext,N=w.yylineno,X=w.yylloc,U>0)U--}else E=V,V=null;break;case 2:if(k=this.productions_[a[1]][1],s.$=x[x.length-k],s._$={first_line:f[f.length-(k||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(k||1)].first_column,last_column:f[f.length-1].last_column},j)s._$.range=[f[f.length-(k||1)].range[0],f[f.length-1].range[1]];if(r=this.performAction.apply(s,[B,W,N,Y.yy,a[1],x,f].concat(z)),typeof r<"u")return r;if(k)u=u.slice(0,-1*k*2),x=x.slice(0,-1*k),f=f.slice(0,-1*k);u.push(this.productions_[a[1]][0]),x.push(s.$),f.push(s._$),J=_[u[u.length-2]][u[u.length-1]],u.push(J);break;case 3:return!0}}return!0},"parse")},S=function(){var T={EOF:1,parseError:t(function(o,u){if(this.yy.parser)this.yy.parser.parseError(o,u);else throw Error(o)},"parseError"),setInput:t(function(i,o){if(this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);if(o)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),i},"input"),unput:t(function(i){var o=i.length,u=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var b=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1)this.yylineno-=u.length-1;var x=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===b.length?this.yylloc.first_column:0)+b[b.length-u.length].length-u[0].length:this.yylloc.first_column-o},this.options.ranges)this.yylloc.range=[x[0],x[0]+this.yyleng-o];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(i){this.unput(this.match.slice(i))},"less"),pastInput:t(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var i=this.pastInput(),o=Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
- `+o+"^"},"showPosition"),test_match:t(function(i,o){var u,b,x;if(this.options.backtrack_lexer){if(x={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)x.yylloc.range=this.yylloc.range.slice(0)}if(b=i[0].match(/(?:\r\n?|\n).*/g),b)this.yylineno+=b.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],u=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(u)return u;else if(this._backtrack){for(var f in x)this[f]=x[f];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,o,u,b;if(!this._more)this.yytext="",this.match="";var x=this._currentRules();for(var f=0;f<x.length;f++)if(u=this._input.match(this.rules[x[f]]),u&&(!o||u[0].length>o[0].length)){if(o=u,b=f,this.options.backtrack_lexer)if(i=this.test_match(u,x[f]),i!==!1)return i;else if(this._backtrack){o=!1;continue}else return!1;else if(!this.options.flex)break}if(o){if(i=this.test_match(o,x[b]),i!==!1)return i;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var o=this.next();if(o)return o;else return this.lex()},"lex"),begin:t(function(o){this.conditionStack.push(o)},"begin"),popState:t(function(){var o=this.conditionStack.length-1;if(o>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(o){if(o=this.conditionStack.length-1-Math.abs(o||0),o>=0)return this.conditionStack[o];else return"INITIAL"},"topState"),pushState:t(function(o){this.begin(o)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(o,u,b,x){var f=x;switch(b){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return T}();v.lexer=S;function y(){this.yy={}}return t(y,"Parser"),y.prototype=v,v.Parser=y,new y}();xt.parser=xt;var at=xt,ct=[],ut=[],lt=new Map,Nt=t(()=>{ct=[],ut=[],lt=new Map,L()},"clear"),Gt=class{constructor(n,l,p=0){this.source=n,this.target=l,this.value=p}static{t(this,"SankeyLink")}},It=t((n,l,p)=>{ct.push(new Gt(n,l,p))},"addLink"),Mt=class{constructor(n){this.ID=n}static{t(this,"SankeyNode")}},Yt=t((n)=>{n=C.sanitizeText(n,d());let l=lt.get(n);if(l===void 0)l=new Mt(n),lt.set(n,l),ut.push(l);return l},"findOrCreateNode"),Dt=t(()=>ut,"getNodes"),jt=t(()=>ct,"getLinks"),$t=t(()=>({nodes:ut.map((n)=>({id:n.ID})),links:ct.map((n)=>({source:n.source.ID,target:n.target.ID,value:n.value}))}),"getGraph"),zt={nodesMap:lt,getConfig:t(()=>d().sankey,"getConfig"),getNodes:Dt,getLinks:jt,getGraph:$t,addLink:It,findOrCreateNode:Yt,getAccTitle:R,setAccTitle:M,getAccDescription:I,setAccDescription:P,getDiagramTitle:D,setDiagramTitle:O,clear:Nt},wt=class n{static{t(this,"Uid")}static{this.count=0}static next(l){return new n(l+ ++n.count)}constructor(l){this.id=l,this.href=`#${l}`}toString(){return"url("+this.href+")"}},Vt={left:pt,right:yt,center:mt,justify:rt},Ft=t((n)=>{let l=0,p=0;for(let m of n){let v=m.value??0;if(v>l)l=v,p=m.layer??0}return p},"findCentralNodeLayer"),Wt=t(function(n,l,p,m){let{securityLevel:v,sankey:S}=d(),y=Ur.sankey,T;if(v==="sandbox")T=g("#i"+l);let i=v==="sandbox"?g(T.nodes()[0].contentDocument.body):g("body"),o=v==="sandbox"?i.select(`[id="${l}"]`):g(`[id="${l}"]`),u=S?.width??y.width,b=S?.height??y.width,x=S?.useMaxWidth??y.useMaxWidth,f=S?.nodeAlignment??y.nodeAlignment,_=S?.prefix??y.prefix,B=S?.suffix??y.suffix,N=S?.showValues??y.showValues,W=S?.nodeWidth??y.nodeWidth??10,U=S?.nodePadding??y.nodePadding??12,Q=S?.labelStyle??y.labelStyle??"legacy",q=S?.nodeColors??{},z=m.db.getGraph(),w=Vt[f];ot().nodeId((r)=>r.id).nodeWidth(W).nodePadding(U+(N?15:0)).nodeAlign(w).extent([[0,0],[u,b]])(z);let H=Ft(z.nodes),X=Ut(dt),j=t((r)=>q[r]??X(r),"getNodeColor");o.append("g").attr("class","nodes").selectAll(".node").data(z.nodes).join("g").attr("class","node").attr("id",(r)=>(r.uid=wt.next("node-")).id).attr("transform",function(r){return"translate("+r.x0+","+r.y0+")"}).attr("x",(r)=>r.x0).attr("y",(r)=>r.y0).append("rect").attr("height",(r)=>r.y1-r.y0).attr("width",(r)=>r.x1-r.x0).attr("fill",(r)=>j(r.id));let Z=t(({id:r,value:s})=>{if(!N)return r;return`${r}
7
- ${_}${Math.round(s*100)/100}${B}`},"getText"),K=t((r)=>{if(Q==="outlined"){if((r.layer??0)<H)return{x:r.x0-6,anchor:"end"};return{x:r.x1+6,anchor:"start"}}if(r.x0<u/2)return{x:r.x1+6,anchor:"start"};return{x:r.x0-6,anchor:"end"}},"getLabelPosition"),E=o.append("g").attr("class","node-labels").attr("font-size",14),V=t((r)=>E.selectAll(r?`.${r}`:"text").data(z.nodes).join("text").attr("class",r??null).attr("x",(s)=>K(s).x).attr("y",(s)=>(s.y1+s.y0)/2).attr("dy",`${N?"0":"0.35"}em`).attr("text-anchor",(s)=>K(s).anchor).text(Z),"appendLabel");if(Q==="outlined")V("sankey-label-bg"),V("sankey-label-fg");else V();let e=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",0.5).selectAll(".link").data(z.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),a=S?.linkColor??"gradient";if(a==="gradient"){let r=e.append("linearGradient").attr("id",(s)=>(s.uid=wt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",(s)=>s.source.x1).attr("x2",(s)=>s.target.x0);r.append("stop").attr("offset","0%").attr("stop-color",(s)=>j(s.source.id)),r.append("stop").attr("offset","100%").attr("stop-color",(s)=>j(s.target.id))}let c;switch(a){case"gradient":c=t((r)=>r.uid,"coloring");break;case"source":c=t((r)=>j(r.source.id),"coloring");break;case"target":c=t((r)=>j(r.target.id),"coloring");break;default:c=a}e.append("path").attr("d",it()).attr("stroke",c).attr("stroke-width",(r)=>Math.max(1,r.width)),un(void 0,o,0,x)},"draw"),Ht={draw:Wt},Xt=t((n)=>n.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
8
- `).trim(),"prepareTextForParsing"),Jt=t((n)=>`.label {
9
- font-family: ${n.fontFamily};
10
- }
11
-
12
- .node-labels {
13
- font-family: ${n.fontFamily};
14
- }
15
-
16
- /* Outlined label style - background stroke for better readability */
17
- .sankey-label-bg {
18
- stroke: ${n.mainBkg||n.background||"#fff"};
19
- stroke-width: 4px;
20
- stroke-linejoin: round;
21
- paint-order: stroke;
22
- }
23
-
24
- /* Foreground label text */
25
- .sankey-label-fg {
26
- fill: ${n.textColor};
27
- }
28
-
29
- /* Node styling */
30
- .node rect {
31
- shape-rendering: crispEdges;
32
- }
33
-
34
- /* Link styling */
35
- .link {
36
- fill: none;
37
- stroke-opacity: 0.5;
38
- mix-blend-mode: multiply;
39
- }
40
- `,"getStyles"),Kt=Jt,Qt=at.parse.bind(at);at.parse=(n)=>Qt(Xt(n));var Be={styles:Kt,parser:at,db:zt,renderer:Ht};export{Be as diagram};
Binary file
Binary file