@bkm016/basalt 0.1.21 → 0.1.22

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 (597) hide show
  1. package/{chunk-51a0843g.js → chunk-09tdbx7b.js} +1 -1
  2. package/{chunk-225dyk1y.js → chunk-0rsyawz5.js} +1 -1
  3. package/{chunk-y8mf9tcj.js → chunk-1td9hjn9.js} +8 -8
  4. package/{chunk-g6cc7ac1.js → chunk-1xjkzzyh.js} +2 -2
  5. package/{chunk-43qf44t8.js → chunk-38932kzp.js} +2 -2
  6. package/{chunk-gdx1j9c5.js → chunk-5415fcz7.js} +2 -2
  7. package/{chunk-3phf8eg6.js → chunk-5kezbmgw.js} +2 -2
  8. package/{chunk-qz6ybxjg.js → chunk-5ph58x6w.js} +8 -8
  9. package/{chunk-kgnd32hn.js → chunk-6jdqe7sz.js} +1 -1
  10. package/{chunk-2m2sa0bp.js → chunk-6ztgzx9s.js} +1 -1
  11. package/{chunk-3r38vbt5.js → chunk-7dzcdpdt.js} +1 -1
  12. package/{chunk-kka12j10.js → chunk-82djd5fk.js} +1 -1
  13. package/{chunk-x1y4s01x.js → chunk-86vhsd3y.js} +11 -11
  14. package/{chunk-jhwb962k.js → chunk-8rfv9mm1.js} +9 -9
  15. package/{chunk-m9386732.js → chunk-8tvz5ht1.js} +2 -2
  16. package/{chunk-ve1b6vg6.js → chunk-9pjmwz01.js} +1 -1
  17. package/{chunk-ewaskman.js → chunk-9wjd9bxm.js} +1 -1
  18. package/chunk-b49005n2.js +471 -0
  19. package/{chunk-feyt85gg.js → chunk-bdz2561d.js} +1 -1
  20. package/{chunk-3t8wz9w8.js → chunk-bkvhwgeb.js} +1 -1
  21. package/{chunk-kypdthjg.js → chunk-bp9tfav3.js} +1 -1
  22. package/{chunk-ak95r8mq.js → chunk-cc9htxzx.js} +216 -215
  23. package/chunk-chfzk1fx.js +3 -0
  24. package/{chunk-syhhzr1j.js → chunk-cv5kdnsw.js} +2 -2
  25. package/{chunk-sq5ppnr3.js → chunk-d79s1s4t.js} +3 -3
  26. package/{chunk-qn70tm91.js → chunk-ec6bzt7w.js} +3 -3
  27. package/{chunk-h00wjps7.js → chunk-eq54cmsa.js} +1 -1
  28. package/{chunk-03b5jh31.js → chunk-g54nd4fd.js} +1 -1
  29. package/{chunk-2fymxwe7.js → chunk-g8p5c4vx.js} +5 -5
  30. package/{chunk-tmq8ktys.js → chunk-g9bemxpt.js} +1 -1
  31. package/{chunk-35y6nf6k.js → chunk-hk5p2eee.js} +4 -4
  32. package/{chunk-9t3v8c3m.js → chunk-jerp4pj5.js} +1 -1
  33. package/{chunk-0x0459qp.js → chunk-jsvqp20s.js} +1 -1
  34. package/{chunk-85sjfyjd.js → chunk-kb526065.js} +1 -1
  35. package/{chunk-cjh5h31t.js → chunk-kpw1qa2n.js} +3 -3
  36. package/{chunk-97ntcrm7.js → chunk-mbvy2t23.js} +1 -1
  37. package/{chunk-ttv805sb.js → chunk-mmnsdje8.js} +5 -5
  38. package/{chunk-9x28stv0.js → chunk-nffwakxq.js} +1 -1
  39. package/{chunk-wxzk086k.js → chunk-nfj8sj53.js} +1 -1
  40. package/{chunk-ak9rkrf3.js → chunk-pzwaz2ew.js} +2 -2
  41. package/{chunk-jy07y4pv.js → chunk-qtrd33pp.js} +5 -5
  42. package/{chunk-hhxtc9jn.js → chunk-rbk6jxcr.js} +1 -1
  43. package/{chunk-c5ydt3vq.js → chunk-rx812nrp.js} +2 -2
  44. package/{chunk-h1fwdz4h.js → chunk-sfgw0vmt.js} +1 -1
  45. package/chunk-tmefdwxy.js +2 -0
  46. package/chunk-tvg54x0x.js +2 -0
  47. package/chunk-v89f2k9b.js +2 -0
  48. package/{chunk-z4g2q36h.js → chunk-vhe16b65.js} +2 -2
  49. package/{chunk-np123myw.js → chunk-w4kasz4j.js} +4 -4
  50. package/{chunk-4fj91gt1.js → chunk-w4zkgn1c.js} +2 -2
  51. package/chunk-we5emq6f.js +2 -0
  52. package/{chunk-jpwr1sd2.js → chunk-x0dcabw6.js} +2 -2
  53. package/{chunk-ntntwtxn.js → chunk-xtj7b70y.js} +2 -2
  54. package/{chunk-bn1aaewd.js → chunk-xwew53k7.js} +4 -4
  55. package/{chunk-e8xywvv4.js → chunk-xyhr89y5.js} +1 -1
  56. package/{chunk-hrn2ss1a.js → chunk-yce46csn.js} +1 -1
  57. package/{chunk-ftg4b5pa.js → chunk-yetcb1z9.js} +2 -2
  58. package/chunk-ypmpf75h.js +2 -0
  59. package/chunk-zz48zvk5.js +2 -0
  60. package/compiled.js +5 -5
  61. package/package.json +1 -1
  62. package/ui-test-worker.js +1 -1
  63. package/web/chunk-04c54f1s.js +1 -0
  64. package/web/chunk-04c54f1s.js.br +2 -0
  65. package/web/chunk-04c54f1s.js.gz +0 -0
  66. package/web/chunk-04m1cb8w.js +1 -0
  67. package/web/chunk-04m1cb8w.js.br +0 -0
  68. package/web/chunk-04m1cb8w.js.gz +0 -0
  69. package/web/{chunk-j2y3wkxc.js → chunk-08z6mkgz.js} +1 -1
  70. package/web/chunk-08z6mkgz.js.br +0 -0
  71. package/web/chunk-08z6mkgz.js.gz +0 -0
  72. package/web/{chunk-yw5wyz1q.js → chunk-0g9m3rpw.js} +1 -1
  73. package/web/chunk-0g9m3rpw.js.br +0 -0
  74. package/web/chunk-0g9m3rpw.js.gz +0 -0
  75. package/web/{chunk-5vc1wkwb.js → chunk-0jccrdw3.js} +1 -1
  76. package/web/chunk-0jccrdw3.js.br +0 -0
  77. package/web/chunk-0jccrdw3.js.gz +0 -0
  78. package/web/{chunk-yarsp7h7.js → chunk-0vweazdh.js} +1 -1
  79. package/web/chunk-0vweazdh.js.br +0 -0
  80. package/web/chunk-0vweazdh.js.gz +0 -0
  81. package/web/chunk-1vtf555r.js +1 -0
  82. package/web/chunk-1vtf555r.js.br +0 -0
  83. package/web/chunk-1vtf555r.js.gz +0 -0
  84. package/web/{chunk-2h2w244w.js → chunk-29z0ft67.js} +1 -1
  85. package/web/chunk-29z0ft67.js.br +0 -0
  86. package/web/chunk-29z0ft67.js.gz +0 -0
  87. package/web/{chunk-v7ck87jf.js → chunk-2q3m4btb.js} +1 -1
  88. package/web/chunk-2q3m4btb.js.br +0 -0
  89. package/web/chunk-2q3m4btb.js.gz +0 -0
  90. package/web/{chunk-b83bzjcx.js → chunk-2s6fhjjc.js} +90 -90
  91. package/web/chunk-2s6fhjjc.js.br +0 -0
  92. package/web/chunk-2s6fhjjc.js.gz +0 -0
  93. package/web/{chunk-rsc5k5he.js → chunk-2vdx4ykn.js} +1 -1
  94. package/web/chunk-2vdx4ykn.js.br +0 -0
  95. package/web/chunk-2vdx4ykn.js.gz +0 -0
  96. package/web/{chunk-0w6ta3ps.js → chunk-2zgqe8r7.js} +1 -1
  97. package/web/chunk-2zgqe8r7.js.br +0 -0
  98. package/web/chunk-2zgqe8r7.js.gz +0 -0
  99. package/web/{chunk-07dd0jed.js → chunk-3kqpmg83.js} +1 -1
  100. package/web/chunk-3kqpmg83.js.br +0 -0
  101. package/web/chunk-3kqpmg83.js.gz +0 -0
  102. package/web/chunk-3rmqxna0.js +1 -0
  103. package/web/chunk-3rmqxna0.js.br +0 -0
  104. package/web/chunk-3rmqxna0.js.gz +0 -0
  105. package/web/{chunk-vvk9nche.js → chunk-3xmv2349.js} +2 -2
  106. package/web/chunk-3xmv2349.js.br +0 -0
  107. package/web/chunk-3xmv2349.js.gz +0 -0
  108. package/web/{chunk-wh0vt2vd.js → chunk-46cdys11.js} +1 -1
  109. package/web/chunk-46cdys11.js.br +0 -0
  110. package/web/{chunk-wh0vt2vd.js.gz → chunk-46cdys11.js.gz} +0 -0
  111. package/web/chunk-46mw23f0.js +8 -0
  112. package/web/chunk-46mw23f0.js.br +0 -0
  113. package/web/chunk-46mw23f0.js.gz +0 -0
  114. package/web/{chunk-n00se8nk.js → chunk-4r0dvjrr.js} +1 -1
  115. package/web/chunk-4r0dvjrr.js.br +0 -0
  116. package/web/chunk-4r0dvjrr.js.gz +0 -0
  117. package/web/{chunk-16b5anw4.js → chunk-4v6m84pg.js} +1 -1
  118. package/web/chunk-4v6m84pg.js.br +0 -0
  119. package/web/chunk-4v6m84pg.js.gz +0 -0
  120. package/web/{chunk-c69t0ysj.js → chunk-4ye31s2w.js} +1 -1
  121. package/web/chunk-4ye31s2w.js.br +4 -0
  122. package/web/chunk-4ye31s2w.js.gz +0 -0
  123. package/web/{chunk-kr7shpnb.js → chunk-5kavsn22.js} +1 -1
  124. package/web/chunk-5kavsn22.js.br +0 -0
  125. package/web/{chunk-kr7shpnb.js.gz → chunk-5kavsn22.js.gz} +0 -0
  126. package/web/{chunk-m7kypzvp.js → chunk-5q2h4tg8.js} +1 -1
  127. package/web/chunk-5q2h4tg8.js.br +4 -0
  128. package/web/chunk-5q2h4tg8.js.gz +0 -0
  129. package/web/{chunk-gt4dzb4b.js → chunk-5tbk6dx6.js} +1 -1
  130. package/web/chunk-5tbk6dx6.js.br +0 -0
  131. package/web/chunk-5tbk6dx6.js.gz +0 -0
  132. package/web/{chunk-ffwyfdg4.js → chunk-5yb0sm1r.js} +1 -1
  133. package/web/chunk-5yb0sm1r.js.br +0 -0
  134. package/web/chunk-5yb0sm1r.js.gz +0 -0
  135. package/web/chunk-5yz46tjw.js +2 -0
  136. package/web/chunk-5yz46tjw.js.br +0 -0
  137. package/web/chunk-5yz46tjw.js.gz +0 -0
  138. package/web/{chunk-hw4f79k8.js → chunk-619a8t38.js} +1 -1
  139. package/web/chunk-619a8t38.js.br +0 -0
  140. package/web/chunk-619a8t38.js.gz +0 -0
  141. package/web/{chunk-7remkcff.js → chunk-6areryyn.js} +1 -1
  142. package/web/chunk-6areryyn.js.br +0 -0
  143. package/web/chunk-6areryyn.js.gz +0 -0
  144. package/web/{chunk-5wgdprjp.js → chunk-6ms78sx5.js} +1 -1
  145. package/web/chunk-6ms78sx5.js.br +0 -0
  146. package/web/chunk-6ms78sx5.js.gz +0 -0
  147. package/web/{chunk-50wrjr22.js → chunk-6ts9mtye.js} +1 -1
  148. package/web/chunk-6ts9mtye.js.br +0 -0
  149. package/web/chunk-6ts9mtye.js.gz +0 -0
  150. package/web/{chunk-abahqsws.js → chunk-79whhay2.js} +1 -1
  151. package/web/chunk-79whhay2.js.br +0 -0
  152. package/web/chunk-79whhay2.js.gz +0 -0
  153. package/web/{chunk-jge5e8c4.js → chunk-7n1abr86.js} +1 -1
  154. package/web/chunk-7n1abr86.js.br +0 -0
  155. package/web/chunk-7n1abr86.js.gz +0 -0
  156. package/web/chunk-7qxfx983.js +1 -0
  157. package/web/chunk-7qxfx983.js.br +0 -0
  158. package/web/chunk-7qxfx983.js.gz +0 -0
  159. package/web/chunk-91k30q92.js +1 -0
  160. package/web/chunk-91k30q92.js.br +0 -0
  161. package/web/chunk-91k30q92.js.gz +0 -0
  162. package/web/{chunk-78t5dqea.js → chunk-91nyvkrb.js} +1 -1
  163. package/web/chunk-91nyvkrb.js.br +0 -0
  164. package/web/chunk-91nyvkrb.js.gz +0 -0
  165. package/web/{chunk-0q5drhbk.js → chunk-9mbr6znb.js} +1 -1
  166. package/web/chunk-9mbr6znb.js.br +0 -0
  167. package/web/chunk-9mbr6znb.js.gz +0 -0
  168. package/web/{chunk-h4g8j133.js → chunk-9mvw6a5v.js} +1 -1
  169. package/web/chunk-9mvw6a5v.js.br +0 -0
  170. package/web/chunk-9mvw6a5v.js.gz +0 -0
  171. package/web/{chunk-2hd51wb6.js → chunk-a6hdn8tb.js} +1 -1
  172. package/web/chunk-a6hdn8tb.js.br +0 -0
  173. package/web/chunk-a6hdn8tb.js.gz +0 -0
  174. package/web/{chunk-e6r1sb5r.js → chunk-ar6m9fza.js} +1 -1
  175. package/web/chunk-ar6m9fza.js.br +0 -0
  176. package/web/chunk-ar6m9fza.js.gz +0 -0
  177. package/web/{chunk-d4kjy2qn.js → chunk-ayqakyyq.js} +1 -1
  178. package/web/chunk-ayqakyyq.js.br +0 -0
  179. package/web/chunk-ayqakyyq.js.gz +0 -0
  180. package/web/{chunk-4zftsyq2.js → chunk-cc6hn5xv.js} +1 -1
  181. package/web/chunk-cc6hn5xv.js.br +0 -0
  182. package/web/chunk-cc6hn5xv.js.gz +0 -0
  183. package/web/{chunk-0hvyq55w.js → chunk-ccymg1hp.js} +1 -1
  184. package/web/chunk-ccymg1hp.js.br +0 -0
  185. package/web/chunk-ccymg1hp.js.gz +0 -0
  186. package/web/{chunk-55kw8p9r.js → chunk-cg9fe42b.js} +1 -1
  187. package/web/chunk-cg9fe42b.js.br +0 -0
  188. package/web/chunk-cg9fe42b.js.gz +0 -0
  189. package/web/chunk-cmcgmf94.js +1 -0
  190. package/web/chunk-cmcgmf94.js.br +0 -0
  191. package/web/chunk-cmcgmf94.js.gz +0 -0
  192. package/web/chunk-cnbbvd6n.js +1 -0
  193. package/web/chunk-cnbbvd6n.js.br +0 -0
  194. package/web/chunk-cnbbvd6n.js.gz +0 -0
  195. package/web/{chunk-8c6h952g.js → chunk-cxp2nbtc.js} +1 -1
  196. package/web/chunk-cxp2nbtc.js.br +0 -0
  197. package/web/chunk-cxp2nbtc.js.gz +0 -0
  198. package/web/{chunk-j7sfcfxr.js → chunk-dj2b64aj.js} +1 -1
  199. package/web/chunk-dj2b64aj.js.br +0 -0
  200. package/web/chunk-dj2b64aj.js.gz +0 -0
  201. package/web/{chunk-2w4rdnhj.js → chunk-dsga6rp3.js} +1 -1
  202. package/web/chunk-dsga6rp3.js.br +0 -0
  203. package/web/chunk-dsga6rp3.js.gz +0 -0
  204. package/web/chunk-ek6q6a08.js +1 -0
  205. package/web/chunk-ek6q6a08.js.br +2 -0
  206. package/web/chunk-ek6q6a08.js.gz +0 -0
  207. package/web/{chunk-21d8pzcm.js → chunk-et1nm6h1.js} +2 -2
  208. package/web/chunk-et1nm6h1.js.br +0 -0
  209. package/web/chunk-et1nm6h1.js.gz +0 -0
  210. package/web/chunk-f1016wh6.js +1 -0
  211. package/web/chunk-f1016wh6.js.br +0 -0
  212. package/web/chunk-f1016wh6.js.gz +0 -0
  213. package/web/{chunk-z7adzvfz.js → chunk-f42mwg61.js} +1 -1
  214. package/web/chunk-f42mwg61.js.br +0 -0
  215. package/web/chunk-f42mwg61.js.gz +0 -0
  216. package/web/{chunk-pvhz0gqy.js → chunk-fk35d3bz.js} +1 -1
  217. package/web/chunk-fk35d3bz.js.br +0 -0
  218. package/web/chunk-fk35d3bz.js.gz +0 -0
  219. package/web/{chunk-keway722.js → chunk-fpwztdhn.js} +1 -1
  220. package/web/chunk-fpwztdhn.js.br +0 -0
  221. package/web/chunk-fpwztdhn.js.gz +0 -0
  222. package/web/{chunk-qcgs1mft.js → chunk-g30nqfka.js} +1 -1
  223. package/web/chunk-g30nqfka.js.br +0 -0
  224. package/web/chunk-g30nqfka.js.gz +0 -0
  225. package/web/chunk-gbwy4pfg.css +1 -0
  226. package/web/chunk-gbwy4pfg.css.br +0 -0
  227. package/web/chunk-gbwy4pfg.css.gz +0 -0
  228. package/web/{chunk-31vxes2p.js → chunk-gepgx19m.js} +1 -1
  229. package/web/chunk-gepgx19m.js.br +0 -0
  230. package/web/chunk-gepgx19m.js.gz +0 -0
  231. package/web/{chunk-62z94rt2.js → chunk-grz69q28.js} +1 -1
  232. package/web/chunk-grz69q28.js.br +0 -0
  233. package/web/chunk-grz69q28.js.gz +0 -0
  234. package/web/{chunk-acv6gk2b.js → chunk-gt62acsh.js} +1 -1
  235. package/web/chunk-gt62acsh.js.br +0 -0
  236. package/web/chunk-gt62acsh.js.gz +0 -0
  237. package/web/{chunk-w5c2r59n.js → chunk-h28xrvmg.js} +1 -1
  238. package/web/chunk-h28xrvmg.js.br +0 -0
  239. package/web/chunk-h28xrvmg.js.gz +0 -0
  240. package/web/{chunk-56tqa12m.js → chunk-h80ypke7.js} +1 -1
  241. package/web/chunk-h80ypke7.js.br +0 -0
  242. package/web/chunk-h80ypke7.js.gz +0 -0
  243. package/web/chunk-k1cd6e24.js +1 -0
  244. package/web/chunk-k1cd6e24.js.br +0 -0
  245. package/web/chunk-k1cd6e24.js.gz +0 -0
  246. package/web/chunk-k9248573.js +1 -0
  247. package/web/chunk-k9248573.js.br +0 -0
  248. package/web/chunk-k9248573.js.gz +0 -0
  249. package/web/{chunk-cbtpaf3e.js → chunk-kqgn9dsa.js} +1 -1
  250. package/web/chunk-kqgn9dsa.js.br +0 -0
  251. package/web/chunk-kqgn9dsa.js.gz +0 -0
  252. package/web/chunk-kqngpw5m.js +1 -0
  253. package/web/chunk-kqngpw5m.js.br +0 -0
  254. package/web/chunk-kqngpw5m.js.gz +0 -0
  255. package/web/{chunk-d1gga18f.js → chunk-kzj105r1.js} +1 -1
  256. package/web/chunk-kzj105r1.js.br +0 -0
  257. package/web/chunk-kzj105r1.js.gz +0 -0
  258. package/web/chunk-m14v2en1.js +1 -0
  259. package/web/chunk-m14v2en1.js.br +0 -0
  260. package/web/chunk-m14v2en1.js.gz +0 -0
  261. package/web/{chunk-2dykyq1n.js → chunk-m34et8g4.js} +1 -1
  262. package/web/chunk-m34et8g4.js.br +0 -0
  263. package/web/chunk-m34et8g4.js.gz +0 -0
  264. package/web/{chunk-60fbfw70.js → chunk-md1f6gmk.js} +1 -1
  265. package/web/chunk-md1f6gmk.js.br +0 -0
  266. package/web/chunk-md1f6gmk.js.gz +0 -0
  267. package/web/{chunk-fbzhgaak.js → chunk-n05xf20n.js} +1 -1
  268. package/web/chunk-n05xf20n.js.br +0 -0
  269. package/web/chunk-n05xf20n.js.gz +0 -0
  270. package/web/{chunk-zb01zmms.js → chunk-n2k1gd6n.js} +1 -1
  271. package/web/chunk-n2k1gd6n.js.br +0 -0
  272. package/web/chunk-n2k1gd6n.js.gz +0 -0
  273. package/web/{chunk-s7a2f62f.js → chunk-nm8yza3v.js} +1 -1
  274. package/web/chunk-nm8yza3v.js.br +0 -0
  275. package/web/chunk-nm8yza3v.js.gz +0 -0
  276. package/web/chunk-pbg9rdwv.js +1 -0
  277. package/web/chunk-pbg9rdwv.js.br +2 -0
  278. package/web/chunk-pbg9rdwv.js.gz +0 -0
  279. package/web/{chunk-8wgev3hd.js → chunk-qj9nd038.js} +1 -1
  280. package/web/chunk-qj9nd038.js.br +0 -0
  281. package/web/chunk-qj9nd038.js.gz +0 -0
  282. package/web/chunk-qjaex9c0.js +1 -0
  283. package/web/chunk-qjaex9c0.js.br +2 -0
  284. package/web/chunk-qjaex9c0.js.gz +0 -0
  285. package/web/{chunk-2c4affp1.js → chunk-qq79vsm8.js} +1 -1
  286. package/web/chunk-qq79vsm8.js.br +0 -0
  287. package/web/chunk-qq79vsm8.js.gz +0 -0
  288. package/web/{chunk-t0xjx21h.js → chunk-qs5wnwd6.js} +1 -1
  289. package/web/chunk-qs5wnwd6.js.br +0 -0
  290. package/web/chunk-qs5wnwd6.js.gz +0 -0
  291. package/web/{chunk-595tqsv5.js → chunk-r381n550.js} +1 -1
  292. package/web/chunk-r381n550.js.br +0 -0
  293. package/web/chunk-r381n550.js.gz +0 -0
  294. package/web/{chunk-2tc6krye.js → chunk-r48vazdm.js} +1 -1
  295. package/web/chunk-r48vazdm.js.br +0 -0
  296. package/web/chunk-r48vazdm.js.gz +0 -0
  297. package/web/{chunk-ngdj0r7w.js → chunk-r55seq42.js} +1 -1
  298. package/web/chunk-r55seq42.js.br +0 -0
  299. package/web/chunk-r55seq42.js.gz +0 -0
  300. package/web/{chunk-gs41j1vb.js → chunk-r79zekav.js} +1 -1
  301. package/web/chunk-r79zekav.js.br +0 -0
  302. package/web/chunk-r79zekav.js.gz +0 -0
  303. package/web/{chunk-fztzcy7c.js → chunk-r8qyvcks.js} +1 -1
  304. package/web/chunk-r8qyvcks.js.br +0 -0
  305. package/web/chunk-r8qyvcks.js.gz +0 -0
  306. package/web/chunk-r9dt0730.js +1 -0
  307. package/web/chunk-r9dt0730.js.br +0 -0
  308. package/web/chunk-r9dt0730.js.gz +0 -0
  309. package/web/{chunk-82zwwy0b.js → chunk-rpjzwknn.js} +1 -1
  310. package/web/chunk-rpjzwknn.js.br +0 -0
  311. package/web/{chunk-82zwwy0b.js.gz → chunk-rpjzwknn.js.gz} +0 -0
  312. package/web/{chunk-c37hhmtd.js → chunk-sk3065js.js} +1 -1
  313. package/web/chunk-sk3065js.js.br +0 -0
  314. package/web/chunk-sk3065js.js.gz +0 -0
  315. package/web/{chunk-qh24q7c0.js → chunk-smywa1zw.js} +1 -1
  316. package/web/chunk-smywa1zw.js.br +0 -0
  317. package/web/chunk-smywa1zw.js.gz +0 -0
  318. package/web/{chunk-kx2k462h.js → chunk-trssyq9a.js} +1 -1
  319. package/web/chunk-trssyq9a.js.br +0 -0
  320. package/web/chunk-trssyq9a.js.gz +0 -0
  321. package/web/{chunk-sac6fn9n.js → chunk-v329f8df.js} +1 -1
  322. package/web/chunk-v329f8df.js.br +0 -0
  323. package/web/chunk-v329f8df.js.gz +0 -0
  324. package/web/{chunk-p6ma361e.js → chunk-vb2feptd.js} +1 -1
  325. package/web/chunk-vb2feptd.js.br +0 -0
  326. package/web/chunk-vb2feptd.js.gz +0 -0
  327. package/web/chunk-vff33vj3.js +1 -0
  328. package/web/chunk-vff33vj3.js.br +2 -0
  329. package/web/chunk-vff33vj3.js.gz +0 -0
  330. package/web/{chunk-5nbmnchg.js → chunk-w9adyaze.js} +1 -1
  331. package/web/chunk-w9adyaze.js.br +0 -0
  332. package/web/chunk-w9adyaze.js.gz +0 -0
  333. package/web/{chunk-c1zhat04.js → chunk-wgc8z5jv.js} +1 -1
  334. package/web/chunk-wgc8z5jv.js.br +0 -0
  335. package/web/chunk-wgc8z5jv.js.gz +0 -0
  336. package/web/{chunk-m5b7hny2.js → chunk-wvdk3w03.js} +1 -1
  337. package/web/chunk-wvdk3w03.js.br +0 -0
  338. package/web/chunk-wvdk3w03.js.gz +0 -0
  339. package/web/{chunk-ajpzsx51.js → chunk-wxmaw4ht.js} +1 -1
  340. package/web/chunk-wxmaw4ht.js.br +0 -0
  341. package/web/chunk-wxmaw4ht.js.gz +0 -0
  342. package/web/{chunk-2w27acew.js → chunk-x19jdqnt.js} +1 -1
  343. package/web/chunk-x19jdqnt.js.br +0 -0
  344. package/web/chunk-x19jdqnt.js.gz +0 -0
  345. package/web/{chunk-3d3y4tep.js → chunk-x4153gx3.js} +1 -1
  346. package/web/chunk-x4153gx3.js.br +0 -0
  347. package/web/chunk-x4153gx3.js.gz +0 -0
  348. package/web/{chunk-39kaz6fa.js → chunk-x7wmb5d3.js} +1 -1
  349. package/web/chunk-x7wmb5d3.js.br +0 -0
  350. package/web/chunk-x7wmb5d3.js.gz +0 -0
  351. package/web/{chunk-dbv8qpen.js → chunk-xp2zpmpp.js} +2 -2
  352. package/web/chunk-xp2zpmpp.js.br +0 -0
  353. package/web/chunk-xp2zpmpp.js.gz +0 -0
  354. package/web/chunk-y09v3sz7.js +1 -0
  355. package/web/chunk-y09v3sz7.js.br +0 -0
  356. package/web/chunk-y09v3sz7.js.gz +0 -0
  357. package/web/{chunk-780qvh05.js → chunk-ywmsxe5z.js} +1 -1
  358. package/web/chunk-ywmsxe5z.js.br +0 -0
  359. package/web/{chunk-780qvh05.js.gz → chunk-ywmsxe5z.js.gz} +0 -0
  360. package/web/{chunk-fsz1msjr.js → chunk-yzyxa823.js} +1 -1
  361. package/web/chunk-yzyxa823.js.br +0 -0
  362. package/web/chunk-yzyxa823.js.gz +0 -0
  363. package/web/{chunk-ex66t805.js → chunk-zwx48gb8.js} +1 -1
  364. package/web/chunk-zwx48gb8.js.br +0 -0
  365. package/web/chunk-zwx48gb8.js.gz +0 -0
  366. package/web/index.html +1 -1
  367. package/web/index.html.br +0 -0
  368. package/web/index.html.gz +0 -0
  369. package/worker.js +1 -1
  370. package/chunk-49hsqsht.js +0 -2
  371. package/chunk-5h59tby8.js +0 -470
  372. package/chunk-b516bp7n.js +0 -3
  373. package/chunk-kb5h9rmb.js +0 -2
  374. package/chunk-r36b12zb.js +0 -2
  375. package/chunk-re8n2te5.js +0 -2
  376. package/chunk-rqrjzz73.js +0 -2
  377. package/chunk-w3n8wm44.js +0 -2
  378. package/web/chunk-07dd0jed.js.br +0 -0
  379. package/web/chunk-07dd0jed.js.gz +0 -0
  380. package/web/chunk-0hvyq55w.js.br +0 -0
  381. package/web/chunk-0hvyq55w.js.gz +0 -0
  382. package/web/chunk-0q5drhbk.js.br +0 -0
  383. package/web/chunk-0q5drhbk.js.gz +0 -0
  384. package/web/chunk-0w6ta3ps.js.br +0 -0
  385. package/web/chunk-0w6ta3ps.js.gz +0 -0
  386. package/web/chunk-16b5anw4.js.br +0 -0
  387. package/web/chunk-16b5anw4.js.gz +0 -0
  388. package/web/chunk-21d8pzcm.js.br +0 -0
  389. package/web/chunk-21d8pzcm.js.gz +0 -0
  390. package/web/chunk-2c4affp1.js.br +0 -0
  391. package/web/chunk-2c4affp1.js.gz +0 -0
  392. package/web/chunk-2dykyq1n.js.br +0 -0
  393. package/web/chunk-2dykyq1n.js.gz +0 -0
  394. package/web/chunk-2h2w244w.js.br +0 -0
  395. package/web/chunk-2h2w244w.js.gz +0 -0
  396. package/web/chunk-2hd51wb6.js.br +0 -0
  397. package/web/chunk-2hd51wb6.js.gz +0 -0
  398. package/web/chunk-2tc6krye.js.br +0 -0
  399. package/web/chunk-2tc6krye.js.gz +0 -0
  400. package/web/chunk-2w27acew.js.br +0 -0
  401. package/web/chunk-2w27acew.js.gz +0 -0
  402. package/web/chunk-2w4rdnhj.js.br +0 -0
  403. package/web/chunk-2w4rdnhj.js.gz +0 -0
  404. package/web/chunk-31vxes2p.js.br +0 -0
  405. package/web/chunk-31vxes2p.js.gz +0 -0
  406. package/web/chunk-32qd2y5h.js +0 -1
  407. package/web/chunk-32qd2y5h.js.br +0 -0
  408. package/web/chunk-32qd2y5h.js.gz +0 -0
  409. package/web/chunk-39kaz6fa.js.br +0 -0
  410. package/web/chunk-39kaz6fa.js.gz +0 -0
  411. package/web/chunk-3d3y4tep.js.br +0 -0
  412. package/web/chunk-3d3y4tep.js.gz +0 -0
  413. package/web/chunk-4makcmpw.js +0 -1
  414. package/web/chunk-4makcmpw.js.br +0 -0
  415. package/web/chunk-4makcmpw.js.gz +0 -0
  416. package/web/chunk-4zftsyq2.js.br +0 -0
  417. package/web/chunk-4zftsyq2.js.gz +0 -0
  418. package/web/chunk-50wrjr22.js.br +0 -0
  419. package/web/chunk-50wrjr22.js.gz +0 -0
  420. package/web/chunk-55kw8p9r.js.br +0 -0
  421. package/web/chunk-55kw8p9r.js.gz +0 -0
  422. package/web/chunk-56tqa12m.js.br +0 -0
  423. package/web/chunk-56tqa12m.js.gz +0 -0
  424. package/web/chunk-595tqsv5.js.br +0 -0
  425. package/web/chunk-595tqsv5.js.gz +0 -0
  426. package/web/chunk-5h193k2c.js +0 -1
  427. package/web/chunk-5h193k2c.js.br +0 -0
  428. package/web/chunk-5h193k2c.js.gz +0 -0
  429. package/web/chunk-5nbmnchg.js.br +0 -0
  430. package/web/chunk-5nbmnchg.js.gz +0 -0
  431. package/web/chunk-5vc1wkwb.js.br +0 -0
  432. package/web/chunk-5vc1wkwb.js.gz +0 -0
  433. package/web/chunk-5wgdprjp.js.br +0 -0
  434. package/web/chunk-5wgdprjp.js.gz +0 -0
  435. package/web/chunk-60fbfw70.js.br +0 -0
  436. package/web/chunk-60fbfw70.js.gz +0 -0
  437. package/web/chunk-62z94rt2.js.br +0 -0
  438. package/web/chunk-62z94rt2.js.gz +0 -0
  439. package/web/chunk-67khfy00.css +0 -1
  440. package/web/chunk-67khfy00.css.br +0 -0
  441. package/web/chunk-67khfy00.css.gz +0 -0
  442. package/web/chunk-6bt2t0xt.js +0 -8
  443. package/web/chunk-6bt2t0xt.js.br +0 -0
  444. package/web/chunk-6bt2t0xt.js.gz +0 -0
  445. package/web/chunk-780qvh05.js.br +0 -0
  446. package/web/chunk-78t5dqea.js.br +0 -0
  447. package/web/chunk-78t5dqea.js.gz +0 -0
  448. package/web/chunk-7edmyret.js +0 -1
  449. package/web/chunk-7edmyret.js.br +0 -0
  450. package/web/chunk-7edmyret.js.gz +0 -0
  451. package/web/chunk-7remkcff.js.br +0 -0
  452. package/web/chunk-7remkcff.js.gz +0 -0
  453. package/web/chunk-7s062q01.js +0 -1
  454. package/web/chunk-7s062q01.js.br +0 -0
  455. package/web/chunk-7s062q01.js.gz +0 -0
  456. package/web/chunk-82zwwy0b.js.br +0 -0
  457. package/web/chunk-8c6h952g.js.br +0 -0
  458. package/web/chunk-8c6h952g.js.gz +0 -0
  459. package/web/chunk-8wgev3hd.js.br +0 -0
  460. package/web/chunk-8wgev3hd.js.gz +0 -0
  461. package/web/chunk-9vcbnf1m.js +0 -1
  462. package/web/chunk-9vcbnf1m.js.br +0 -0
  463. package/web/chunk-9vcbnf1m.js.gz +0 -0
  464. package/web/chunk-abahqsws.js.br +0 -0
  465. package/web/chunk-abahqsws.js.gz +0 -0
  466. package/web/chunk-acv6gk2b.js.br +0 -0
  467. package/web/chunk-acv6gk2b.js.gz +0 -0
  468. package/web/chunk-ajpzsx51.js.br +0 -0
  469. package/web/chunk-ajpzsx51.js.gz +0 -0
  470. package/web/chunk-b1b9txvk.js +0 -1
  471. package/web/chunk-b1b9txvk.js.br +0 -0
  472. package/web/chunk-b1b9txvk.js.gz +0 -0
  473. package/web/chunk-b83bzjcx.js.br +0 -0
  474. package/web/chunk-b83bzjcx.js.gz +0 -0
  475. package/web/chunk-c1zhat04.js.br +0 -0
  476. package/web/chunk-c1zhat04.js.gz +0 -0
  477. package/web/chunk-c37hhmtd.js.br +0 -0
  478. package/web/chunk-c37hhmtd.js.gz +0 -0
  479. package/web/chunk-c69t0ysj.js.br +0 -0
  480. package/web/chunk-c69t0ysj.js.gz +0 -0
  481. package/web/chunk-caz85hz4.js +0 -1
  482. package/web/chunk-caz85hz4.js.br +0 -0
  483. package/web/chunk-caz85hz4.js.gz +0 -0
  484. package/web/chunk-cbtpaf3e.js.br +0 -0
  485. package/web/chunk-cbtpaf3e.js.gz +0 -0
  486. package/web/chunk-d1gga18f.js.br +0 -0
  487. package/web/chunk-d1gga18f.js.gz +0 -0
  488. package/web/chunk-d4kjy2qn.js.br +0 -0
  489. package/web/chunk-d4kjy2qn.js.gz +0 -0
  490. package/web/chunk-dbv8qpen.js.br +0 -0
  491. package/web/chunk-dbv8qpen.js.gz +0 -0
  492. package/web/chunk-e6r1sb5r.js.br +0 -0
  493. package/web/chunk-e6r1sb5r.js.gz +0 -0
  494. package/web/chunk-ep5qff8m.js +0 -1
  495. package/web/chunk-ep5qff8m.js.br +0 -0
  496. package/web/chunk-ep5qff8m.js.gz +0 -0
  497. package/web/chunk-ex66t805.js.br +0 -0
  498. package/web/chunk-ex66t805.js.gz +0 -0
  499. package/web/chunk-fb8qtyqg.js +0 -1
  500. package/web/chunk-fb8qtyqg.js.br +0 -0
  501. package/web/chunk-fb8qtyqg.js.gz +0 -0
  502. package/web/chunk-fbzhgaak.js.br +0 -0
  503. package/web/chunk-fbzhgaak.js.gz +0 -0
  504. package/web/chunk-ffwyfdg4.js.br +0 -0
  505. package/web/chunk-ffwyfdg4.js.gz +0 -0
  506. package/web/chunk-fsz1msjr.js.br +0 -0
  507. package/web/chunk-fsz1msjr.js.gz +0 -0
  508. package/web/chunk-fztzcy7c.js.br +0 -0
  509. package/web/chunk-fztzcy7c.js.gz +0 -0
  510. package/web/chunk-g4st8a4e.js +0 -1
  511. package/web/chunk-g4st8a4e.js.br +0 -0
  512. package/web/chunk-g4st8a4e.js.gz +0 -0
  513. package/web/chunk-gs41j1vb.js.br +0 -0
  514. package/web/chunk-gs41j1vb.js.gz +0 -0
  515. package/web/chunk-gt4dzb4b.js.br +0 -0
  516. package/web/chunk-gt4dzb4b.js.gz +0 -0
  517. package/web/chunk-h4g8j133.js.br +0 -0
  518. package/web/chunk-h4g8j133.js.gz +0 -0
  519. package/web/chunk-ht3cek8b.js +0 -1
  520. package/web/chunk-ht3cek8b.js.br +0 -2
  521. package/web/chunk-ht3cek8b.js.gz +0 -0
  522. package/web/chunk-hw4f79k8.js.br +0 -0
  523. package/web/chunk-hw4f79k8.js.gz +0 -0
  524. package/web/chunk-j2y3wkxc.js.br +0 -0
  525. package/web/chunk-j2y3wkxc.js.gz +0 -0
  526. package/web/chunk-j7sfcfxr.js.br +0 -0
  527. package/web/chunk-j7sfcfxr.js.gz +0 -0
  528. package/web/chunk-jge5e8c4.js.br +0 -0
  529. package/web/chunk-jge5e8c4.js.gz +0 -0
  530. package/web/chunk-jyjgvcac.js +0 -2
  531. package/web/chunk-jyjgvcac.js.br +0 -0
  532. package/web/chunk-jyjgvcac.js.gz +0 -0
  533. package/web/chunk-k9bzz441.js +0 -1
  534. package/web/chunk-k9bzz441.js.br +0 -0
  535. package/web/chunk-k9bzz441.js.gz +0 -0
  536. package/web/chunk-keway722.js.br +0 -0
  537. package/web/chunk-keway722.js.gz +0 -0
  538. package/web/chunk-kr7shpnb.js.br +0 -0
  539. package/web/chunk-kv5swske.js +0 -1
  540. package/web/chunk-kv5swske.js.br +0 -0
  541. package/web/chunk-kv5swske.js.gz +0 -0
  542. package/web/chunk-kx2k462h.js.br +0 -0
  543. package/web/chunk-kx2k462h.js.gz +0 -0
  544. package/web/chunk-m5b7hny2.js.br +0 -0
  545. package/web/chunk-m5b7hny2.js.gz +0 -0
  546. package/web/chunk-m7kypzvp.js.br +0 -0
  547. package/web/chunk-m7kypzvp.js.gz +0 -0
  548. package/web/chunk-n00se8nk.js.br +0 -0
  549. package/web/chunk-n00se8nk.js.gz +0 -0
  550. package/web/chunk-ngdj0r7w.js.br +0 -0
  551. package/web/chunk-ngdj0r7w.js.gz +0 -0
  552. package/web/chunk-p6ma361e.js.br +0 -0
  553. package/web/chunk-p6ma361e.js.gz +0 -0
  554. package/web/chunk-pvhz0gqy.js.br +0 -0
  555. package/web/chunk-pvhz0gqy.js.gz +0 -0
  556. package/web/chunk-q96eky9v.js +0 -1
  557. package/web/chunk-q96eky9v.js.br +0 -0
  558. package/web/chunk-q96eky9v.js.gz +0 -0
  559. package/web/chunk-qcgs1mft.js.br +0 -0
  560. package/web/chunk-qcgs1mft.js.gz +0 -0
  561. package/web/chunk-qh24q7c0.js.br +0 -0
  562. package/web/chunk-qh24q7c0.js.gz +0 -0
  563. package/web/chunk-r1xksxab.js +0 -1
  564. package/web/chunk-r1xksxab.js.br +0 -0
  565. package/web/chunk-r1xksxab.js.gz +0 -0
  566. package/web/chunk-rsc5k5he.js.br +0 -0
  567. package/web/chunk-rsc5k5he.js.gz +0 -0
  568. package/web/chunk-s7a2f62f.js.br +0 -0
  569. package/web/chunk-s7a2f62f.js.gz +0 -0
  570. package/web/chunk-sac6fn9n.js.br +0 -0
  571. package/web/chunk-sac6fn9n.js.gz +0 -0
  572. package/web/chunk-t0xjx21h.js.br +0 -0
  573. package/web/chunk-t0xjx21h.js.gz +0 -0
  574. package/web/chunk-v7ck87jf.js.br +0 -0
  575. package/web/chunk-v7ck87jf.js.gz +0 -0
  576. package/web/chunk-vvk9nche.js.br +0 -0
  577. package/web/chunk-vvk9nche.js.gz +0 -0
  578. package/web/chunk-vxtfen72.js +0 -1
  579. package/web/chunk-vxtfen72.js.br +0 -0
  580. package/web/chunk-vxtfen72.js.gz +0 -0
  581. package/web/chunk-w5c2r59n.js.br +0 -0
  582. package/web/chunk-w5c2r59n.js.gz +0 -0
  583. package/web/chunk-wh0vt2vd.js.br +0 -0
  584. package/web/chunk-xe7fj72r.js +0 -1
  585. package/web/chunk-xe7fj72r.js.br +0 -0
  586. package/web/chunk-xe7fj72r.js.gz +0 -0
  587. package/web/chunk-yarsp7h7.js.br +0 -0
  588. package/web/chunk-yarsp7h7.js.gz +0 -0
  589. package/web/chunk-yw5wyz1q.js.br +0 -0
  590. package/web/chunk-yw5wyz1q.js.gz +0 -0
  591. package/web/chunk-z3ea4vhk.js +0 -1
  592. package/web/chunk-z3ea4vhk.js.br +0 -0
  593. package/web/chunk-z3ea4vhk.js.gz +0 -0
  594. package/web/chunk-z7adzvfz.js.br +0 -0
  595. package/web/chunk-z7adzvfz.js.gz +0 -0
  596. package/web/chunk-zb01zmms.js.br +0 -0
  597. package/web/chunk-zb01zmms.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import{re}from"./chunk-n00se8nk.js";import{t,a,B,S,j,sn,A,R,I,L,D,P,N,u,h,Q,zs,Br,qt,X,bt,it}from"./chunk-dbv8qpen.js";import{fe}from"./chunk-21d8pzcm.js";import{un,Ka}from"./chunk-pvhz0gqy.js";import{Ze,Xe}from"./chunk-b83bzjcx.js";var ct=Xe(function(et,at){(function(i,s){if(typeof et==="object"&&typeof at==="object")at.exports=s(Ka());else if(typeof define==="function"&&define.amd)define(["cose-base"],s);else if(typeof et==="object")et.cytoscapeFcose=s(Ka());else i.cytoscapeFcose=s(i.coseBase)})(et,function(e){return(()=>{var i={658:(T)=>{T.exports=Object.assign!=null?Object.assign.bind(Object):function(O){for(var p=arguments.length,x=Array(p>1?p-1:0),l=1;l<p;l++)x[l-1]=arguments[l];return x.forEach(function(y){Object.keys(y).forEach(function(c){return O[c]=y[c]})}),O}},548:(T,O,p)=>{var x=function(){function c(d,f){var g=[],r=!0,G=!1,k=void 0;try{for(var o=d[Symbol.iterator](),v;!(r=(v=o.next()).done);r=!0)if(g.push(v.value),f&&g.length===f)break}catch(C){G=!0,k=C}finally{try{if(!r&&o.return)o.return()}finally{if(G)throw k}}return g}return function(d,f){if(Array.isArray(d))return d;else if(Symbol.iterator in Object(d))return c(d,f);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=p(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(c){var d={};for(var f=0;f<c.length;f++)d[c[f].id()]=!0;var g=c.filter(function(r,G){if(typeof r==="number")r=G;var k=r.parent()[0];while(k!=null){if(d[k.id()])return!1;k=k.parent()[0]}return!0});return g},y.connectComponents=function(c,d,f,g){var r=new l,G=new Set,k=[],o=void 0,v=void 0,C=void 0,n=!1,M=1,Y=[],b=[],U=function(){var w=c.collection();b.push(w);var _=f[0],q=c.collection();q.merge(_).merge(_.descendants().intersection(d)),k.push(_),q.forEach(function(ee){r.push(ee),G.add(ee),w.merge(ee)});var W=function(){_=r.shift();var ue=c.collection();_.neighborhood().nodes().forEach(function(H){if(d.intersection(_.edgesWith(H)).length>0)ue.merge(H)});for(var Ae=0;Ae<ue.length;Ae++){var Re=ue[Ae];if(o=f.intersection(Re.union(Re.ancestors())),o!=null&&!G.has(o[0])){var ce=o.union(o.descendants());ce.forEach(function(H){if(r.push(H),G.add(H),w.merge(H),f.has(H))k.push(H)})}}};while(r.length!=0)W();if(w.forEach(function(ee){d.intersection(ee.connectedEdges()).forEach(function(ue){if(w.has(ue.source())&&w.has(ue.target()))w.merge(ue)})}),k.length==f.length)n=!0;if(!n||n&&M>1){v=k[0],C=v.connectedEdges().length,k.forEach(function(ee){if(ee.connectedEdges().length<C)C=ee.connectedEdges().length,v=ee}),Y.push(v.id());var oe=c.collection();oe.merge(k[0]),k.forEach(function(ee){oe.merge(ee)}),k=[],f=f.difference(oe),M++}};do U();while(!n);if(g){if(Y.length>0)g.set("dummy"+(g.size+1),Y)}return b},y.relocateComponent=function(c,d,f){if(!f.fixedNodeConstraint){var{POSITIVE_INFINITY:g,NEGATIVE_INFINITY:r,POSITIVE_INFINITY:G,NEGATIVE_INFINITY:k}=Number;if(f.quality=="draft"){var o=!0,v=!1,C=void 0;try{for(var n=d.nodeIndexes[Symbol.iterator](),M;!(o=(M=n.next()).done);o=!0){var Y=M.value,b=x(Y,2),U=b[0],z=b[1],w=f.cy.getElementById(U);if(w){var _=w.boundingBox(),q=d.xCoords[z]-_.w/2,W=d.xCoords[z]+_.w/2,oe=d.yCoords[z]-_.h/2,ee=d.yCoords[z]+_.h/2;if(q<g)g=q;if(W>r)r=W;if(oe<G)G=oe;if(ee>k)k=ee}}}catch(H){v=!0,C=H}finally{try{if(!o&&n.return)n.return()}finally{if(v)throw C}}var ue=c.x-(r+g)/2,Ae=c.y-(k+G)/2;d.xCoords=d.xCoords.map(function(H){return H+ue}),d.yCoords=d.yCoords.map(function(H){return H+Ae})}else{Object.keys(d).forEach(function(H){var ae=d[H],Ie=ae.getRect().x,be=ae.getRect().x+ae.getRect().width,Ne=ae.getRect().y,xe=ae.getRect().y+ae.getRect().height;if(Ie<g)g=Ie;if(be>r)r=be;if(Ne<G)G=Ne;if(xe>k)k=xe});var Re=c.x-(r+g)/2,ce=c.y-(k+G)/2;Object.keys(d).forEach(function(H){var ae=d[H];ae.setCenter(ae.getCenterX()+Re,ae.getCenterY()+ce)})}}},y.calcBoundingBox=function(c,d,f,g){var{MAX_SAFE_INTEGER:r,MIN_SAFE_INTEGER:G,MAX_SAFE_INTEGER:k,MIN_SAFE_INTEGER:o}=Number,v=void 0,C=void 0,n=void 0,M=void 0,Y=c.descendants().not(":parent"),b=Y.length;for(var U=0;U<b;U++){var z=Y[U];if(v=d[g.get(z.id())]-z.width()/2,C=d[g.get(z.id())]+z.width()/2,n=f[g.get(z.id())]-z.height()/2,M=f[g.get(z.id())]+z.height()/2,r>v)r=v;if(G<C)G=C;if(k>n)k=n;if(o<M)o=M}var w={};return w.topLeftX=r,w.topLeftY=k,w.width=G-r,w.height=o-k,w},y.calcParentsWithoutChildren=function(c,d){var f=c.collection();return d.nodes(":parent").forEach(function(g){var r=!1;if(g.children().forEach(function(G){if(G.css("display")!="none")r=!0}),!r)f.merge(g)}),f},T.exports=y},816:(T,O,p)=>{var x=p(548),l=p(140).CoSELayout,y=p(140).CoSENode,c=p(140).layoutBase.PointD,d=p(140).layoutBase.DimensionD,f=p(140).layoutBase.LayoutConstants,g=p(140).layoutBase.FDLayoutConstants,r=p(140).CoSEConstants,G=function(o,v){var{cy:C,eles:n}=o,M=n.nodes(),Y=n.edges(),b=void 0,U=void 0,z=void 0,w={};if(o.randomize)b=v.nodeIndexes,U=v.xCoords,z=v.yCoords;var _=function(H){return typeof H==="function"},q=function(H,ae){if(_(H))return H(ae);else return H},W=x.calcParentsWithoutChildren(C,n),oe=function ce(H,ae,Ie,be){var Ne=ae.length;for(var xe=0;xe<Ne;xe++){var V=ae[xe],Te=null;if(V.intersection(W).length==0)Te=V.children();var te=void 0,ve=V.layoutDimensions({nodeDimensionsIncludeLabels:be.nodeDimensionsIncludeLabels});if(V.outerWidth()!=null&&V.outerHeight()!=null)if(be.randomize)if(!V.isParent())te=H.add(new y(Ie.graphManager,new c(U[b.get(V.id())]-ve.w/2,z[b.get(V.id())]-ve.h/2),new d(parseFloat(ve.w),parseFloat(ve.h))));else{var ke=x.calcBoundingBox(V,U,z,b);if(V.intersection(W).length==0)te=H.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new d(ke.width,ke.height)));else te=H.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new d(parseFloat(ve.w),parseFloat(ve.h))))}else te=H.add(new y(Ie.graphManager,new c(V.position("x")-ve.w/2,V.position("y")-ve.h/2),new d(parseFloat(ve.w),parseFloat(ve.h))));else te=H.add(new y(this.graphManager));if(te.id=V.data("id"),te.nodeRepulsion=q(be.nodeRepulsion,V),te.paddingLeft=parseInt(V.css("padding")),te.paddingTop=parseInt(V.css("padding")),te.paddingRight=parseInt(V.css("padding")),te.paddingBottom=parseInt(V.css("padding")),be.nodeDimensionsIncludeLabels)te.labelWidth=V.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,te.labelHeight=V.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,te.labelPosVertical=V.css("text-valign"),te.labelPosHorizontal=V.css("text-halign");if(w[V.data("id")]=te,isNaN(te.rect.x))te.rect.x=0;if(isNaN(te.rect.y))te.rect.y=0;if(Te!=null&&Te.length>0){var $e=void 0;$e=Ie.getGraphManager().add(Ie.newGraph(),te),ce($e,Te,Ie,be)}}},ee=function(H,ae,Ie){var be=0,Ne=0;for(var xe=0;xe<Ie.length;xe++){var V=Ie[xe],Te=w[V.data("source")],te=w[V.data("target")];if(Te&&te&&Te!==te&&Te.getEdgesBetween(te).length==0){var ve=ae.add(H.newEdge(),Te,te);ve.id=V.id(),ve.idealLength=q(o.idealEdgeLength,V),ve.edgeElasticity=q(o.edgeElasticity,V),be+=ve.idealLength,Ne++}}if(o.idealEdgeLength!=null){if(Ne>0)r.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=be/Ne;else if(!_(o.idealEdgeLength))r.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=o.idealEdgeLength;else r.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=50;r.MIN_REPULSION_DIST=g.MIN_REPULSION_DIST=g.DEFAULT_EDGE_LENGTH/10,r.DEFAULT_RADIAL_SEPARATION=g.DEFAULT_EDGE_LENGTH}},ue=function(H,ae){if(ae.fixedNodeConstraint)H.constraints.fixedNodeConstraint=ae.fixedNodeConstraint;if(ae.alignmentConstraint)H.constraints.alignmentConstraint=ae.alignmentConstraint;if(ae.relativePlacementConstraint)H.constraints.relativePlacementConstraint=ae.relativePlacementConstraint};if(o.nestingFactor!=null)r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=g.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=o.nestingFactor;if(o.gravity!=null)r.DEFAULT_GRAVITY_STRENGTH=g.DEFAULT_GRAVITY_STRENGTH=o.gravity;if(o.numIter!=null)r.MAX_ITERATIONS=g.MAX_ITERATIONS=o.numIter;if(o.gravityRange!=null)r.DEFAULT_GRAVITY_RANGE_FACTOR=g.DEFAULT_GRAVITY_RANGE_FACTOR=o.gravityRange;if(o.gravityCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=g.DEFAULT_COMPOUND_GRAVITY_STRENGTH=o.gravityCompound;if(o.gravityRangeCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=g.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=o.gravityRangeCompound;if(o.initialEnergyOnIncremental!=null)r.DEFAULT_COOLING_FACTOR_INCREMENTAL=g.DEFAULT_COOLING_FACTOR_INCREMENTAL=o.initialEnergyOnIncremental;if(o.tilingCompareBy!=null)r.TILING_COMPARE_BY=o.tilingCompareBy;if(o.quality=="proof")f.QUALITY=2;else f.QUALITY=0;if(r.NODE_DIMENSIONS_INCLUDE_LABELS=g.NODE_DIMENSIONS_INCLUDE_LABELS=f.NODE_DIMENSIONS_INCLUDE_LABELS=o.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=!o.randomize,r.ANIMATE=g.ANIMATE=f.ANIMATE=o.animate,r.TILE=o.tile,r.TILING_PADDING_VERTICAL=typeof o.tilingPaddingVertical==="function"?o.tilingPaddingVertical.call():o.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof o.tilingPaddingHorizontal==="function"?o.tilingPaddingHorizontal.call():o.tilingPaddingHorizontal,r.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=!0,r.PURE_INCREMENTAL=!o.randomize,f.DEFAULT_UNIFORM_LEAF_NODE_SIZES=o.uniformNodeDimensions,o.step=="transformed")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!1;if(o.step=="enforced")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!1;if(o.step=="cose")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!0;if(o.step=="all"){if(o.randomize)r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!0}if(o.fixedNodeConstraint||o.alignmentConstraint||o.relativePlacementConstraint)r.TREE_REDUCTION_ON_INCREMENTAL=!1;else r.TREE_REDUCTION_ON_INCREMENTAL=!0;var Ae=new l,Re=Ae.newGraphManager();return oe(Re.addRoot(),x.getTopMostNodes(M),Ae,o),ee(Ae,Re,Y),ue(Ae,o),Ae.runLayout(),w};T.exports={coseLayout:G}},212:(T,O,p)=>{var x=function(){function o(v,C){for(var n=0;n<C.length;n++){var M=C[n];if(M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M)M.writable=!0;Object.defineProperty(v,M.key,M)}}return function(v,C,n){if(C)o(v.prototype,C);if(n)o(v,n);return v}}();function l(o,v){if(!(o instanceof v))throw TypeError("Cannot call a class as a function")}var y=p(658),c=p(548),d=p(657),f=d.spectralLayout,g=p(816),r=g.coseLayout,G=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1000,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:0.0000001,nodeRepulsion:function(v){return 4500},idealEdgeLength:function(v){return 50},edgeElasticity:function(v){return 0.45},nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),k=function(){function o(v){l(this,o),this.options=y({},G,v)}return x(o,[{key:"run",value:function(){var C=this,n=this.options,{cy:M,eles:Y}=n,b=[],U=void 0,z=void 0,w=[],_=void 0,q=[];if(n.fixedNodeConstraint&&(!Array.isArray(n.fixedNodeConstraint)||n.fixedNodeConstraint.length==0))n.fixedNodeConstraint=void 0;if(n.alignmentConstraint){if(n.alignmentConstraint.vertical&&(!Array.isArray(n.alignmentConstraint.vertical)||n.alignmentConstraint.vertical.length==0))n.alignmentConstraint.vertical=void 0;if(n.alignmentConstraint.horizontal&&(!Array.isArray(n.alignmentConstraint.horizontal)||n.alignmentConstraint.horizontal.length==0))n.alignmentConstraint.horizontal=void 0}if(n.relativePlacementConstraint&&(!Array.isArray(n.relativePlacementConstraint)||n.relativePlacementConstraint.length==0))n.relativePlacementConstraint=void 0;var W=n.fixedNodeConstraint||n.alignmentConstraint||n.relativePlacementConstraint;if(W)n.tile=!1,n.packComponents=!1;var oe=void 0,ee=!1;if(M.layoutUtilities&&n.packComponents){if(oe=M.layoutUtilities("get"),!oe)oe=M.layoutUtilities();ee=!0}if(Y.nodes().length>0)if(!ee){var ue=n.eles.boundingBox();if(q.push({x:ue.x1+ue.w/2,y:ue.y1+ue.h/2}),n.randomize){var Ae=f(n);b.push(Ae)}if(n.quality=="default"||n.quality=="proof")w.push(r(n,b[0])),c.relocateComponent(q[0],w[0],n);else c.relocateComponent(q[0],b[0],n)}else{var Re=c.getTopMostNodes(n.eles.nodes());if(_=c.connectComponents(M,n.eles,Re),_.forEach(function(J){var F=J.boundingBox();q.push({x:F.x1+F.w/2,y:F.y1+F.h/2})}),n.randomize)_.forEach(function(J){n.eles=J,b.push(f(n))});if(n.quality=="default"||n.quality=="proof"){var ce=M.collection();if(n.tile){var H=new Map,ae=[],Ie=[],be=0,Ne={nodeIndexes:H,xCoords:ae,yCoords:Ie},xe=[];if(_.forEach(function(J,F){if(J.edges().length==0)J.nodes().forEach(function(pe,se){if(ce.merge(J.nodes()[se]),!pe.isParent())Ne.nodeIndexes.set(J.nodes()[se].id(),be++),Ne.xCoords.push(J.nodes()[0].position().x),Ne.yCoords.push(J.nodes()[0].position().y)}),xe.push(F)}),ce.length>1){var V=ce.boundingBox();q.push({x:V.x1+V.w/2,y:V.y1+V.h/2}),_.push(ce),b.push(Ne);for(var Te=xe.length-1;Te>=0;Te--)_.splice(xe[Te],1),b.splice(xe[Te],1),q.splice(xe[Te],1)}}_.forEach(function(J,F){n.eles=J,w.push(r(n,b[F])),c.relocateComponent(q[F],w[F],n)})}else _.forEach(function(J,F){c.relocateComponent(q[F],b[F],n)});var te=new Set;if(_.length>1){var ve=[],ke=Y.filter(function(J){return J.css("display")=="none"});_.forEach(function(J,F){var pe=void 0;if(n.quality=="draft")pe=b[F].nodeIndexes;if(J.nodes().not(ke).length>0){var se={};se.edges=[],se.nodes=[];var me=void 0;if(J.nodes().not(ke).forEach(function(de){if(n.quality=="draft")if(!de.isParent())me=pe.get(de.id()),se.nodes.push({x:b[F].xCoords[me]-de.boundingbox().w/2,y:b[F].yCoords[me]-de.boundingbox().h/2,width:de.boundingbox().w,height:de.boundingbox().h});else{var he=c.calcBoundingBox(de,b[F].xCoords,b[F].yCoords,pe);se.nodes.push({x:he.topLeftX,y:he.topLeftY,width:he.width,height:he.height})}else if(w[F][de.id()])se.nodes.push({x:w[F][de.id()].getLeft(),y:w[F][de.id()].getTop(),width:w[F][de.id()].getWidth(),height:w[F][de.id()].getHeight()})}),J.edges().forEach(function(de){var he=de.source(),Ee=de.target();if(he.css("display")!="none"&&Ee.css("display")!="none"){if(n.quality=="draft"){var Pe=pe.get(he.id()),Qe=pe.get(Ee.id()),Me=[],Ge=[];if(he.isParent()){var Ve=c.calcBoundingBox(he,b[F].xCoords,b[F].yCoords,pe);Me.push(Ve.topLeftX+Ve.width/2),Me.push(Ve.topLeftY+Ve.height/2)}else Me.push(b[F].xCoords[Pe]),Me.push(b[F].yCoords[Pe]);if(Ee.isParent()){var je=c.calcBoundingBox(Ee,b[F].xCoords,b[F].yCoords,pe);Ge.push(je.topLeftX+je.width/2),Ge.push(je.topLeftY+je.height/2)}else Ge.push(b[F].xCoords[Qe]),Ge.push(b[F].yCoords[Qe]);se.edges.push({startX:Me[0],startY:Me[1],endX:Ge[0],endY:Ge[1]})}else if(w[F][he.id()]&&w[F][Ee.id()])se.edges.push({startX:w[F][he.id()].getCenterX(),startY:w[F][he.id()].getCenterY(),endX:w[F][Ee.id()].getCenterX(),endY:w[F][Ee.id()].getCenterY()})}}),se.nodes.length>0)ve.push(se),te.add(F)}});var $e=oe.packComponents(ve,n.randomize).shifts;if(n.quality=="draft")b.forEach(function(J,F){var pe=J.xCoords.map(function(me){return me+$e[F].dx}),se=J.yCoords.map(function(me){return me+$e[F].dy});J.xCoords=pe,J.yCoords=se});else{var Je=0;te.forEach(function(J){Object.keys(w[J]).forEach(function(F){var pe=w[J][F];pe.setCenter(pe.getCenterX()+$e[Je].dx,pe.getCenterY()+$e[Je].dy)}),Je++})}}}var Ue=function(F,pe){if(n.quality=="default"||n.quality=="proof"){if(typeof F==="number")F=pe;var se=void 0,me=void 0,de=F.data("id");if(w.forEach(function(Ee){if(de in Ee)se={x:Ee[de].getRect().getCenterX(),y:Ee[de].getRect().getCenterY()},me=Ee[de]}),n.nodeDimensionsIncludeLabels){if(me.labelWidth){if(me.labelPosHorizontal=="left")se.x+=me.labelWidth/2;else if(me.labelPosHorizontal=="right")se.x-=me.labelWidth/2}if(me.labelHeight){if(me.labelPosVertical=="top")se.y+=me.labelHeight/2;else if(me.labelPosVertical=="bottom")se.y-=me.labelHeight/2}}if(se==null)se={x:F.position("x"),y:F.position("y")};return{x:se.x,y:se.y}}else{var he=void 0;if(b.forEach(function(Ee){var Pe=Ee.nodeIndexes.get(F.id());if(Pe!=null)he={x:Ee.xCoords[Pe],y:Ee.yCoords[Pe]}}),he==null)he={x:F.position("x"),y:F.position("y")};return{x:he.x,y:he.y}}};if(n.quality=="default"||n.quality=="proof"||n.randomize){var rt=c.calcParentsWithoutChildren(M,Y),He=Y.filter(function(J){return J.css("display")=="none"});if(n.eles=Y.not(He),Y.nodes().not(":parent").not(He).layoutPositions(C,n,Ue),rt.length>0)rt.forEach(function(J){J.position(Ue(J))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),o}();T.exports=k},657:(T,O,p)=>{var x=p(548),l=p(140).layoutBase.Matrix,y=p(140).layoutBase.SVD,c=function(f){var{cy:g,eles:r}=f,G=r.nodes(),k=r.nodes(":parent"),o=new Map,v=new Map,C=new Map,n=[],M=[],Y=[],b=[],U=[],z=[],w=[],_=[],q=void 0,W=void 0,oe=1e8,ee=0.000000001,{piTol:ue,samplingType:Ae,nodeSeparation:Re}=f,ce=void 0,H=function(){var Z=0,K=0,ie=!1;while(K<ce){Z=Math.floor(Math.random()*W),ie=!1;for(var ne=0;ne<K;ne++)if(b[ne]==Z){ie=!0;break}if(!ie)b[K]=Z,K++;else continue}},ae=function(Z,K,ie){var ne=[],we=0,ge=0,le=0,Le=void 0,Ce=[],De=0,Oe=1;for(var ze=0;ze<W;ze++)Ce[ze]=oe;ne[ge]=Z,Ce[Z]=0;while(ge>=we){le=ne[we++];var Ye=n[le];for(var Be=0;Be<Ye.length;Be++)if(Le=v.get(Ye[Be]),Ce[Le]==oe)Ce[Le]=Ce[le]+1,ne[++ge]=Le;z[le][K]=Ce[le]*Re}if(ie){for(var Fe=0;Fe<W;Fe++)if(z[Fe][K]<U[Fe])U[Fe]=z[Fe][K];for(var Ke=0;Ke<W;Ke++)if(U[Ke]>De)De=U[Ke],Oe=Ke}return Oe},Ie=function(Z){var K=void 0;if(!Z){H();for(var ie=0;ie<ce;ie++)ae(b[ie],ie,Z,!1)}else{K=Math.floor(Math.random()*W),q=K;for(var ne=0;ne<W;ne++)U[ne]=oe;for(var we=0;we<ce;we++)b[we]=K,K=ae(K,we,Z)}for(var ge=0;ge<W;ge++)for(var le=0;le<ce;le++)z[ge][le]*=z[ge][le];for(var Le=0;Le<ce;Le++)w[Le]=[];for(var Ce=0;Ce<ce;Ce++)for(var De=0;De<ce;De++)w[Ce][De]=z[b[De]][Ce]},be=function(){var Z=y.svd(w),{S:K,U:ie,V:ne}=Z,we=K[0]*K[0]*K[0],ge=[];for(var le=0;le<ce;le++){ge[le]=[];for(var Le=0;Le<ce;Le++)if(ge[le][Le]=0,le==Le)ge[le][Le]=K[le]/(K[le]*K[le]+we/(K[le]*K[le]))}_=l.multMat(l.multMat(ne,ge),l.transpose(ie))},Ne=function(){var Z=void 0,K=void 0,ie=[],ne=[],we=[],ge=[];for(var le=0;le<W;le++)ie[le]=Math.random(),ne[le]=Math.random();ie=l.normalize(ie),ne=l.normalize(ne);var Le=0,Ce=ee,De=ee,Oe=void 0;while(!0){Le++;for(var ze=0;ze<W;ze++)we[ze]=ie[ze];if(ie=l.multGamma(l.multL(l.multGamma(we),z,_)),Z=l.dotProduct(we,ie),ie=l.normalize(ie),Ce=l.dotProduct(we,ie),Oe=Math.abs(Ce/De),Oe<=1+ue&&Oe>=1)break;De=Ce}for(var Ye=0;Ye<W;Ye++)we[Ye]=ie[Ye];Le=0,De=ee;while(!0){Le++;for(var Be=0;Be<W;Be++)ge[Be]=ne[Be];if(ge=l.minusOp(ge,l.multCons(we,l.dotProduct(we,ge))),ne=l.multGamma(l.multL(l.multGamma(ge),z,_)),K=l.dotProduct(ge,ne),ne=l.normalize(ne),Ce=l.dotProduct(ge,ne),Oe=Math.abs(Ce/De),Oe<=1+ue&&Oe>=1)break;De=Ce}for(var Fe=0;Fe<W;Fe++)ge[Fe]=ne[Fe];M=l.multCons(we,Math.sqrt(Math.abs(Z))),Y=l.multCons(ge,Math.sqrt(Math.abs(K)))};x.connectComponents(g,r,x.getTopMostNodes(G),o),k.forEach(function(ye){x.connectComponents(g,r,x.getTopMostNodes(ye.descendants().intersection(r)),o)});var xe=0;for(var V=0;V<G.length;V++)if(!G[V].isParent())v.set(G[V].id(),xe++);var Te=!0,te=!1,ve=void 0;try{for(var ke=o.keys()[Symbol.iterator](),$e;!(Te=($e=ke.next()).done);Te=!0){var Je=$e.value;v.set(Je,xe++)}}catch(ye){te=!0,ve=ye}finally{try{if(!Te&&ke.return)ke.return()}finally{if(te)throw ve}}for(var Ue=0;Ue<v.size;Ue++)n[Ue]=[];k.forEach(function(ye){var Z=ye.children().intersection(r);while(Z.nodes(":childless").length==0)Z=Z.nodes()[0].children().intersection(r);var K=0,ie=Z.nodes(":childless")[0].connectedEdges().length;Z.nodes(":childless").forEach(function(ne,we){if(ne.connectedEdges().length<ie)ie=ne.connectedEdges().length,K=we}),C.set(ye.id(),Z.nodes(":childless")[K].id())}),G.forEach(function(ye){var Z=void 0;if(ye.isParent())Z=v.get(C.get(ye.id()));else Z=v.get(ye.id());ye.neighborhood().nodes().forEach(function(K){if(r.intersection(ye.edgesWith(K)).length>0)if(K.isParent())n[Z].push(C.get(K.id()));else n[Z].push(K.id())})});var rt=function(Z){var K=v.get(Z),ie=void 0;o.get(Z).forEach(function(ne){if(g.getElementById(ne).isParent())ie=C.get(ne);else ie=ne;n[K].push(ie),n[v.get(ie)].push(Z)})},He=!0,J=!1,F=void 0;try{for(var pe=o.keys()[Symbol.iterator](),se;!(He=(se=pe.next()).done);He=!0){var me=se.value;rt(me)}}catch(ye){J=!0,F=ye}finally{try{if(!He&&pe.return)pe.return()}finally{if(J)throw F}}W=v.size;var de=void 0;if(W>2){ce=W<f.sampleSize?W:f.sampleSize;for(var he=0;he<W;he++)z[he]=[];for(var Ee=0;Ee<ce;Ee++)_[Ee]=[];if(f.quality=="draft"||f.step=="all")Ie(Ae),be(),Ne(),de={nodeIndexes:v,xCoords:M,yCoords:Y};else v.forEach(function(ye,Z){M.push(g.getElementById(Z).position("x")),Y.push(g.getElementById(Z).position("y"))}),de={nodeIndexes:v,xCoords:M,yCoords:Y};return de}else{var Pe=v.keys(),Qe=g.getElementById(Pe.next().value),Me=Qe.position(),Ge=Qe.outerWidth();if(M.push(Me.x),Y.push(Me.y),W==2){var Ve=g.getElementById(Pe.next().value),je=Ve.outerWidth();M.push(Me.x+Ge/2+je/2+f.idealEdgeLength),Y.push(Me.y)}return de={nodeIndexes:v,xCoords:M,yCoords:Y},de}};T.exports={spectralLayout:c}},579:(T,O,p)=>{var x=p(212),l=function(c){if(!c)return;c("layout","fcose",x)};if(typeof cytoscape<"u")l(cytoscape);T.exports=l},140:(T)=>{T.exports=e}},s={};function E(T){var O=s[T];if(O!==void 0)return O.exports;var p=s[T]={exports:{}};return i[T](p,p.exports,E),p.exports}var m=E(579);return m})()})});var mt=Ze(ct(),1);var dt={L:"left",R:"right",T:"top",B:"bottom"},ft={L:t((e)=>`${e},${e/2} 0,${e} 0,0`,"L"),R:t((e)=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:t((e)=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:t((e)=>`${e/2},0 ${e},${e} 0,${e}`,"B")},nt={L:t((e,i)=>e-i+2,"L"),R:t((e,i)=>e-2,"R"),T:t((e,i)=>e-i+2,"T"),B:t((e,i)=>e-2,"B")},It=t(function(e){if(Se(e))return e==="L"?"R":"L";else return e==="T"?"B":"T"},"getOppositeArchitectureDirection"),ut=t(function(e){let i=e;return i==="L"||i==="R"||i==="T"||i==="B"},"isArchitectureDirection"),Se=t(function(e){let i=e;return i==="L"||i==="R"},"isArchitectureDirectionX"),_e=t(function(e){let i=e;return i==="T"||i==="B"},"isArchitectureDirectionY"),lt=t(function(e,i){let s=Se(e)&&_e(i),E=_e(e)&&Se(i);return s||E},"isArchitectureDirectionXY"),Nt=t(function(e){let i=e[0],s=e[1],E=Se(i)&&_e(s),m=_e(i)&&Se(s);return E||m},"isArchitecturePairXY"),St=t(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),ot=t(function(e,i){let s=`${e}${i}`;return St(s)?s:void 0},"getArchitectureDirectionPair"),kt=t(function([e,i],s){let E=s[0],m=s[1];if(Se(E))if(_e(m))return[e+(E==="L"?-1:1),i+(m==="T"?1:-1)];else return[e+(E==="L"?-1:1),i];else if(Se(m))return[e+(m==="L"?1:-1),i+(E==="T"?1:-1)];else return[e,i+(E==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Dt=t(function(e){if(e==="LT"||e==="TL")return[1,1];else if(e==="BL"||e==="LB")return[1,-1];else if(e==="BR"||e==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),Rt=t(function(e,i){if(lt(e,i))return"bend";else if(Se(e))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),Mt=t(function(e){return e.type==="service"},"isArchitectureService"),Ft=t(function(e){return e.type==="junction"},"isArchitectureJunction"),gt=t((e,i)=>{let[s,E]=[e,i].sort();return`${JSON.stringify(s)}-${JSON.stringify(E)}`},"architectureGroupAlignmentKey"),ht=t((e)=>e.data(),"edgeData"),We=t((e)=>e.data(),"nodeData"),$t=B.architecture,vt=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=R,this.getAccTitle=I,this.setDiagramTitle=P,this.getDiagramTitle=N,this.getAccDescription=D,this.setAccDescription=L,this.clear()}static{t(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",A()}addService({id:e,icon:i,in:s,title:E,iconText:m}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(s)==="node")throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:i,iconText:m,title:E,edges:[],in:s})}getServices(){return[...this.nodes.values()].filter(Mt)}addJunction({id:e,in:i}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(i!==void 0){if(e===i)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(i)==="node")throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:i})}getJunctions(){return[...this.nodes.values()].filter(Ft)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:i,in:s,title:E}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(s)==="node")throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:i,title:E,in:s})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:i,lhsDir:s,rhsDir:E,lhsInto:m,rhsInto:T,lhsGroup:O,rhsGroup:p,title:x}){if(!ut(s))throw Error(`Invalid direction given for left hand side of edge ${e}--${i}. Expected (L,R,T,B) got ${String(s)}`);if(!ut(E))throw Error(`Invalid direction given for right hand side of edge ${e}--${i}. Expected (L,R,T,B) got ${String(E)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(i)&&!this.groups.has(i))throw Error(`The right-hand id [${i}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes.get(e).in,y=this.nodes.get(i).in;if(O&&l&&y&&l==y)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(p&&l&&y&&l==y)throw Error(`The right-hand id [${i}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let c={lhsId:e,lhsDir:s,lhsInto:m,lhsGroup:O,rhsId:i,rhsDir:E,rhsInto:T,rhsGroup:p,title:x};this.edges.push(c);let d=this.nodes.get(e),f=this.nodes.get(i);if(d&&f)d.edges.push(this.edges[this.edges.length-1]),f.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let i=new Set;e.members.forEach((s)=>{if(this.registeredIds.get(s)!=="node")throw Error(`align ${e.direction} references [${s}], which is not a service or junction`);if(i.has(s))throw Error(`align ${e.direction} lists [${s}] more than once`);i.add(s)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,i=new Map;for(let[O,p]of this.nodes.entries()){let x=new Map;for(let l of p.edges){let y=this.getNode(l.lhsId)?.in,c=this.getNode(l.rhsId)?.in;if(y&&c&&y!==c){let d=Rt(l.lhsDir,l.rhsDir);if(d!=="bend")e.set(gt(y,c),d)}if(l.lhsId===O){let d=ot(l.lhsDir,l.rhsDir);if(d)x.set(d,l.rhsId)}else{let d=ot(l.rhsDir,l.lhsDir);if(d)x.set(d,l.lhsId)}}i.set(O,x)}let s=new Set,E=new Set(i.keys()),m=t((O)=>{let p=new Map([[O,[0,0]]]),x=[O];while(x.length>0){let l=x.shift();if(l){s.add(l),E.delete(l);let y=i.get(l);if(!y)throw Error(`BFS error: adjacency list for id ${l} not found. Please report this as a bug.`);let c=p.get(l);if(!c)throw Error(`BFS error: position for id ${l} not found in spatial map. Please report this as a bug.`);let[d,f]=c;y.forEach((g,r)=>{if(!s.has(g))p.set(g,kt([d,f],r)),x.push(g)})}}return p},"BFS"),T=[];while(E.size>0){let O=E.values().next().value;T.push(m(O))}this.dataStructures={adjList:i,spatialMaps:T,groupAlignments:e}}return this.dataStructures}setElementForId(e,i){this.elements.set(e,i)}getElementById(e){return this.elements.get(e)}getConfig(){return X({...$t,...S().architecture})}getConfigField(e){return this.getConfig()[e]}},Pt=t((e,i)=>{re(e,i),e.groups.map((s)=>i.addGroup(s)),e.services.map((s)=>i.addService({...s,type:"service"})),e.junctions.map((s)=>i.addJunction({...s,type:"junction"})),e.edges.map((s)=>i.addEdge(s)),e.alignments?.map((s)=>i.addLayoutHint({direction:s.direction,members:[...s.members]}))},"populateDb"),pt={parser:{yy:void 0},parse:t(async(e)=>{let i=await fe("architecture",e);a.debug(i);let s=pt.parser?.yy;if(!(s instanceof vt))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Pt(i,s)},"parse")},Ot=t((e)=>`
1
+ import{re}from"./chunk-4r0dvjrr.js";import{t,a,B,S,j,sn,A,R,I,L,D,P,N,u,h,Q,zs,Br,qt,X,bt,it}from"./chunk-xp2zpmpp.js";import{fe}from"./chunk-et1nm6h1.js";import{un,Ka}from"./chunk-fk35d3bz.js";import{Ze,Xe}from"./chunk-2s6fhjjc.js";var ct=Xe(function(et,at){(function(i,s){if(typeof et==="object"&&typeof at==="object")at.exports=s(Ka());else if(typeof define==="function"&&define.amd)define(["cose-base"],s);else if(typeof et==="object")et.cytoscapeFcose=s(Ka());else i.cytoscapeFcose=s(i.coseBase)})(et,function(e){return(()=>{var i={658:(T)=>{T.exports=Object.assign!=null?Object.assign.bind(Object):function(O){for(var p=arguments.length,x=Array(p>1?p-1:0),l=1;l<p;l++)x[l-1]=arguments[l];return x.forEach(function(y){Object.keys(y).forEach(function(c){return O[c]=y[c]})}),O}},548:(T,O,p)=>{var x=function(){function c(d,f){var g=[],r=!0,G=!1,k=void 0;try{for(var o=d[Symbol.iterator](),v;!(r=(v=o.next()).done);r=!0)if(g.push(v.value),f&&g.length===f)break}catch(C){G=!0,k=C}finally{try{if(!r&&o.return)o.return()}finally{if(G)throw k}}return g}return function(d,f){if(Array.isArray(d))return d;else if(Symbol.iterator in Object(d))return c(d,f);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=p(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(c){var d={};for(var f=0;f<c.length;f++)d[c[f].id()]=!0;var g=c.filter(function(r,G){if(typeof r==="number")r=G;var k=r.parent()[0];while(k!=null){if(d[k.id()])return!1;k=k.parent()[0]}return!0});return g},y.connectComponents=function(c,d,f,g){var r=new l,G=new Set,k=[],o=void 0,v=void 0,C=void 0,n=!1,M=1,Y=[],b=[],U=function(){var w=c.collection();b.push(w);var _=f[0],q=c.collection();q.merge(_).merge(_.descendants().intersection(d)),k.push(_),q.forEach(function(ee){r.push(ee),G.add(ee),w.merge(ee)});var W=function(){_=r.shift();var ue=c.collection();_.neighborhood().nodes().forEach(function(H){if(d.intersection(_.edgesWith(H)).length>0)ue.merge(H)});for(var Ae=0;Ae<ue.length;Ae++){var Re=ue[Ae];if(o=f.intersection(Re.union(Re.ancestors())),o!=null&&!G.has(o[0])){var ce=o.union(o.descendants());ce.forEach(function(H){if(r.push(H),G.add(H),w.merge(H),f.has(H))k.push(H)})}}};while(r.length!=0)W();if(w.forEach(function(ee){d.intersection(ee.connectedEdges()).forEach(function(ue){if(w.has(ue.source())&&w.has(ue.target()))w.merge(ue)})}),k.length==f.length)n=!0;if(!n||n&&M>1){v=k[0],C=v.connectedEdges().length,k.forEach(function(ee){if(ee.connectedEdges().length<C)C=ee.connectedEdges().length,v=ee}),Y.push(v.id());var oe=c.collection();oe.merge(k[0]),k.forEach(function(ee){oe.merge(ee)}),k=[],f=f.difference(oe),M++}};do U();while(!n);if(g){if(Y.length>0)g.set("dummy"+(g.size+1),Y)}return b},y.relocateComponent=function(c,d,f){if(!f.fixedNodeConstraint){var{POSITIVE_INFINITY:g,NEGATIVE_INFINITY:r,POSITIVE_INFINITY:G,NEGATIVE_INFINITY:k}=Number;if(f.quality=="draft"){var o=!0,v=!1,C=void 0;try{for(var n=d.nodeIndexes[Symbol.iterator](),M;!(o=(M=n.next()).done);o=!0){var Y=M.value,b=x(Y,2),U=b[0],z=b[1],w=f.cy.getElementById(U);if(w){var _=w.boundingBox(),q=d.xCoords[z]-_.w/2,W=d.xCoords[z]+_.w/2,oe=d.yCoords[z]-_.h/2,ee=d.yCoords[z]+_.h/2;if(q<g)g=q;if(W>r)r=W;if(oe<G)G=oe;if(ee>k)k=ee}}}catch(H){v=!0,C=H}finally{try{if(!o&&n.return)n.return()}finally{if(v)throw C}}var ue=c.x-(r+g)/2,Ae=c.y-(k+G)/2;d.xCoords=d.xCoords.map(function(H){return H+ue}),d.yCoords=d.yCoords.map(function(H){return H+Ae})}else{Object.keys(d).forEach(function(H){var ae=d[H],Ie=ae.getRect().x,be=ae.getRect().x+ae.getRect().width,Ne=ae.getRect().y,xe=ae.getRect().y+ae.getRect().height;if(Ie<g)g=Ie;if(be>r)r=be;if(Ne<G)G=Ne;if(xe>k)k=xe});var Re=c.x-(r+g)/2,ce=c.y-(k+G)/2;Object.keys(d).forEach(function(H){var ae=d[H];ae.setCenter(ae.getCenterX()+Re,ae.getCenterY()+ce)})}}},y.calcBoundingBox=function(c,d,f,g){var{MAX_SAFE_INTEGER:r,MIN_SAFE_INTEGER:G,MAX_SAFE_INTEGER:k,MIN_SAFE_INTEGER:o}=Number,v=void 0,C=void 0,n=void 0,M=void 0,Y=c.descendants().not(":parent"),b=Y.length;for(var U=0;U<b;U++){var z=Y[U];if(v=d[g.get(z.id())]-z.width()/2,C=d[g.get(z.id())]+z.width()/2,n=f[g.get(z.id())]-z.height()/2,M=f[g.get(z.id())]+z.height()/2,r>v)r=v;if(G<C)G=C;if(k>n)k=n;if(o<M)o=M}var w={};return w.topLeftX=r,w.topLeftY=k,w.width=G-r,w.height=o-k,w},y.calcParentsWithoutChildren=function(c,d){var f=c.collection();return d.nodes(":parent").forEach(function(g){var r=!1;if(g.children().forEach(function(G){if(G.css("display")!="none")r=!0}),!r)f.merge(g)}),f},T.exports=y},816:(T,O,p)=>{var x=p(548),l=p(140).CoSELayout,y=p(140).CoSENode,c=p(140).layoutBase.PointD,d=p(140).layoutBase.DimensionD,f=p(140).layoutBase.LayoutConstants,g=p(140).layoutBase.FDLayoutConstants,r=p(140).CoSEConstants,G=function(o,v){var{cy:C,eles:n}=o,M=n.nodes(),Y=n.edges(),b=void 0,U=void 0,z=void 0,w={};if(o.randomize)b=v.nodeIndexes,U=v.xCoords,z=v.yCoords;var _=function(H){return typeof H==="function"},q=function(H,ae){if(_(H))return H(ae);else return H},W=x.calcParentsWithoutChildren(C,n),oe=function ce(H,ae,Ie,be){var Ne=ae.length;for(var xe=0;xe<Ne;xe++){var V=ae[xe],Te=null;if(V.intersection(W).length==0)Te=V.children();var te=void 0,ve=V.layoutDimensions({nodeDimensionsIncludeLabels:be.nodeDimensionsIncludeLabels});if(V.outerWidth()!=null&&V.outerHeight()!=null)if(be.randomize)if(!V.isParent())te=H.add(new y(Ie.graphManager,new c(U[b.get(V.id())]-ve.w/2,z[b.get(V.id())]-ve.h/2),new d(parseFloat(ve.w),parseFloat(ve.h))));else{var ke=x.calcBoundingBox(V,U,z,b);if(V.intersection(W).length==0)te=H.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new d(ke.width,ke.height)));else te=H.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new d(parseFloat(ve.w),parseFloat(ve.h))))}else te=H.add(new y(Ie.graphManager,new c(V.position("x")-ve.w/2,V.position("y")-ve.h/2),new d(parseFloat(ve.w),parseFloat(ve.h))));else te=H.add(new y(this.graphManager));if(te.id=V.data("id"),te.nodeRepulsion=q(be.nodeRepulsion,V),te.paddingLeft=parseInt(V.css("padding")),te.paddingTop=parseInt(V.css("padding")),te.paddingRight=parseInt(V.css("padding")),te.paddingBottom=parseInt(V.css("padding")),be.nodeDimensionsIncludeLabels)te.labelWidth=V.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,te.labelHeight=V.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,te.labelPosVertical=V.css("text-valign"),te.labelPosHorizontal=V.css("text-halign");if(w[V.data("id")]=te,isNaN(te.rect.x))te.rect.x=0;if(isNaN(te.rect.y))te.rect.y=0;if(Te!=null&&Te.length>0){var $e=void 0;$e=Ie.getGraphManager().add(Ie.newGraph(),te),ce($e,Te,Ie,be)}}},ee=function(H,ae,Ie){var be=0,Ne=0;for(var xe=0;xe<Ie.length;xe++){var V=Ie[xe],Te=w[V.data("source")],te=w[V.data("target")];if(Te&&te&&Te!==te&&Te.getEdgesBetween(te).length==0){var ve=ae.add(H.newEdge(),Te,te);ve.id=V.id(),ve.idealLength=q(o.idealEdgeLength,V),ve.edgeElasticity=q(o.edgeElasticity,V),be+=ve.idealLength,Ne++}}if(o.idealEdgeLength!=null){if(Ne>0)r.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=be/Ne;else if(!_(o.idealEdgeLength))r.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=o.idealEdgeLength;else r.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=50;r.MIN_REPULSION_DIST=g.MIN_REPULSION_DIST=g.DEFAULT_EDGE_LENGTH/10,r.DEFAULT_RADIAL_SEPARATION=g.DEFAULT_EDGE_LENGTH}},ue=function(H,ae){if(ae.fixedNodeConstraint)H.constraints.fixedNodeConstraint=ae.fixedNodeConstraint;if(ae.alignmentConstraint)H.constraints.alignmentConstraint=ae.alignmentConstraint;if(ae.relativePlacementConstraint)H.constraints.relativePlacementConstraint=ae.relativePlacementConstraint};if(o.nestingFactor!=null)r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=g.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=o.nestingFactor;if(o.gravity!=null)r.DEFAULT_GRAVITY_STRENGTH=g.DEFAULT_GRAVITY_STRENGTH=o.gravity;if(o.numIter!=null)r.MAX_ITERATIONS=g.MAX_ITERATIONS=o.numIter;if(o.gravityRange!=null)r.DEFAULT_GRAVITY_RANGE_FACTOR=g.DEFAULT_GRAVITY_RANGE_FACTOR=o.gravityRange;if(o.gravityCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=g.DEFAULT_COMPOUND_GRAVITY_STRENGTH=o.gravityCompound;if(o.gravityRangeCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=g.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=o.gravityRangeCompound;if(o.initialEnergyOnIncremental!=null)r.DEFAULT_COOLING_FACTOR_INCREMENTAL=g.DEFAULT_COOLING_FACTOR_INCREMENTAL=o.initialEnergyOnIncremental;if(o.tilingCompareBy!=null)r.TILING_COMPARE_BY=o.tilingCompareBy;if(o.quality=="proof")f.QUALITY=2;else f.QUALITY=0;if(r.NODE_DIMENSIONS_INCLUDE_LABELS=g.NODE_DIMENSIONS_INCLUDE_LABELS=f.NODE_DIMENSIONS_INCLUDE_LABELS=o.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=!o.randomize,r.ANIMATE=g.ANIMATE=f.ANIMATE=o.animate,r.TILE=o.tile,r.TILING_PADDING_VERTICAL=typeof o.tilingPaddingVertical==="function"?o.tilingPaddingVertical.call():o.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof o.tilingPaddingHorizontal==="function"?o.tilingPaddingHorizontal.call():o.tilingPaddingHorizontal,r.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=!0,r.PURE_INCREMENTAL=!o.randomize,f.DEFAULT_UNIFORM_LEAF_NODE_SIZES=o.uniformNodeDimensions,o.step=="transformed")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!1;if(o.step=="enforced")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!1;if(o.step=="cose")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!0;if(o.step=="all"){if(o.randomize)r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!0}if(o.fixedNodeConstraint||o.alignmentConstraint||o.relativePlacementConstraint)r.TREE_REDUCTION_ON_INCREMENTAL=!1;else r.TREE_REDUCTION_ON_INCREMENTAL=!0;var Ae=new l,Re=Ae.newGraphManager();return oe(Re.addRoot(),x.getTopMostNodes(M),Ae,o),ee(Ae,Re,Y),ue(Ae,o),Ae.runLayout(),w};T.exports={coseLayout:G}},212:(T,O,p)=>{var x=function(){function o(v,C){for(var n=0;n<C.length;n++){var M=C[n];if(M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M)M.writable=!0;Object.defineProperty(v,M.key,M)}}return function(v,C,n){if(C)o(v.prototype,C);if(n)o(v,n);return v}}();function l(o,v){if(!(o instanceof v))throw TypeError("Cannot call a class as a function")}var y=p(658),c=p(548),d=p(657),f=d.spectralLayout,g=p(816),r=g.coseLayout,G=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1000,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:0.0000001,nodeRepulsion:function(v){return 4500},idealEdgeLength:function(v){return 50},edgeElasticity:function(v){return 0.45},nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),k=function(){function o(v){l(this,o),this.options=y({},G,v)}return x(o,[{key:"run",value:function(){var C=this,n=this.options,{cy:M,eles:Y}=n,b=[],U=void 0,z=void 0,w=[],_=void 0,q=[];if(n.fixedNodeConstraint&&(!Array.isArray(n.fixedNodeConstraint)||n.fixedNodeConstraint.length==0))n.fixedNodeConstraint=void 0;if(n.alignmentConstraint){if(n.alignmentConstraint.vertical&&(!Array.isArray(n.alignmentConstraint.vertical)||n.alignmentConstraint.vertical.length==0))n.alignmentConstraint.vertical=void 0;if(n.alignmentConstraint.horizontal&&(!Array.isArray(n.alignmentConstraint.horizontal)||n.alignmentConstraint.horizontal.length==0))n.alignmentConstraint.horizontal=void 0}if(n.relativePlacementConstraint&&(!Array.isArray(n.relativePlacementConstraint)||n.relativePlacementConstraint.length==0))n.relativePlacementConstraint=void 0;var W=n.fixedNodeConstraint||n.alignmentConstraint||n.relativePlacementConstraint;if(W)n.tile=!1,n.packComponents=!1;var oe=void 0,ee=!1;if(M.layoutUtilities&&n.packComponents){if(oe=M.layoutUtilities("get"),!oe)oe=M.layoutUtilities();ee=!0}if(Y.nodes().length>0)if(!ee){var ue=n.eles.boundingBox();if(q.push({x:ue.x1+ue.w/2,y:ue.y1+ue.h/2}),n.randomize){var Ae=f(n);b.push(Ae)}if(n.quality=="default"||n.quality=="proof")w.push(r(n,b[0])),c.relocateComponent(q[0],w[0],n);else c.relocateComponent(q[0],b[0],n)}else{var Re=c.getTopMostNodes(n.eles.nodes());if(_=c.connectComponents(M,n.eles,Re),_.forEach(function(J){var F=J.boundingBox();q.push({x:F.x1+F.w/2,y:F.y1+F.h/2})}),n.randomize)_.forEach(function(J){n.eles=J,b.push(f(n))});if(n.quality=="default"||n.quality=="proof"){var ce=M.collection();if(n.tile){var H=new Map,ae=[],Ie=[],be=0,Ne={nodeIndexes:H,xCoords:ae,yCoords:Ie},xe=[];if(_.forEach(function(J,F){if(J.edges().length==0)J.nodes().forEach(function(pe,se){if(ce.merge(J.nodes()[se]),!pe.isParent())Ne.nodeIndexes.set(J.nodes()[se].id(),be++),Ne.xCoords.push(J.nodes()[0].position().x),Ne.yCoords.push(J.nodes()[0].position().y)}),xe.push(F)}),ce.length>1){var V=ce.boundingBox();q.push({x:V.x1+V.w/2,y:V.y1+V.h/2}),_.push(ce),b.push(Ne);for(var Te=xe.length-1;Te>=0;Te--)_.splice(xe[Te],1),b.splice(xe[Te],1),q.splice(xe[Te],1)}}_.forEach(function(J,F){n.eles=J,w.push(r(n,b[F])),c.relocateComponent(q[F],w[F],n)})}else _.forEach(function(J,F){c.relocateComponent(q[F],b[F],n)});var te=new Set;if(_.length>1){var ve=[],ke=Y.filter(function(J){return J.css("display")=="none"});_.forEach(function(J,F){var pe=void 0;if(n.quality=="draft")pe=b[F].nodeIndexes;if(J.nodes().not(ke).length>0){var se={};se.edges=[],se.nodes=[];var me=void 0;if(J.nodes().not(ke).forEach(function(de){if(n.quality=="draft")if(!de.isParent())me=pe.get(de.id()),se.nodes.push({x:b[F].xCoords[me]-de.boundingbox().w/2,y:b[F].yCoords[me]-de.boundingbox().h/2,width:de.boundingbox().w,height:de.boundingbox().h});else{var he=c.calcBoundingBox(de,b[F].xCoords,b[F].yCoords,pe);se.nodes.push({x:he.topLeftX,y:he.topLeftY,width:he.width,height:he.height})}else if(w[F][de.id()])se.nodes.push({x:w[F][de.id()].getLeft(),y:w[F][de.id()].getTop(),width:w[F][de.id()].getWidth(),height:w[F][de.id()].getHeight()})}),J.edges().forEach(function(de){var he=de.source(),Ee=de.target();if(he.css("display")!="none"&&Ee.css("display")!="none"){if(n.quality=="draft"){var Pe=pe.get(he.id()),Qe=pe.get(Ee.id()),Me=[],Ge=[];if(he.isParent()){var Ve=c.calcBoundingBox(he,b[F].xCoords,b[F].yCoords,pe);Me.push(Ve.topLeftX+Ve.width/2),Me.push(Ve.topLeftY+Ve.height/2)}else Me.push(b[F].xCoords[Pe]),Me.push(b[F].yCoords[Pe]);if(Ee.isParent()){var je=c.calcBoundingBox(Ee,b[F].xCoords,b[F].yCoords,pe);Ge.push(je.topLeftX+je.width/2),Ge.push(je.topLeftY+je.height/2)}else Ge.push(b[F].xCoords[Qe]),Ge.push(b[F].yCoords[Qe]);se.edges.push({startX:Me[0],startY:Me[1],endX:Ge[0],endY:Ge[1]})}else if(w[F][he.id()]&&w[F][Ee.id()])se.edges.push({startX:w[F][he.id()].getCenterX(),startY:w[F][he.id()].getCenterY(),endX:w[F][Ee.id()].getCenterX(),endY:w[F][Ee.id()].getCenterY()})}}),se.nodes.length>0)ve.push(se),te.add(F)}});var $e=oe.packComponents(ve,n.randomize).shifts;if(n.quality=="draft")b.forEach(function(J,F){var pe=J.xCoords.map(function(me){return me+$e[F].dx}),se=J.yCoords.map(function(me){return me+$e[F].dy});J.xCoords=pe,J.yCoords=se});else{var Je=0;te.forEach(function(J){Object.keys(w[J]).forEach(function(F){var pe=w[J][F];pe.setCenter(pe.getCenterX()+$e[Je].dx,pe.getCenterY()+$e[Je].dy)}),Je++})}}}var Ue=function(F,pe){if(n.quality=="default"||n.quality=="proof"){if(typeof F==="number")F=pe;var se=void 0,me=void 0,de=F.data("id");if(w.forEach(function(Ee){if(de in Ee)se={x:Ee[de].getRect().getCenterX(),y:Ee[de].getRect().getCenterY()},me=Ee[de]}),n.nodeDimensionsIncludeLabels){if(me.labelWidth){if(me.labelPosHorizontal=="left")se.x+=me.labelWidth/2;else if(me.labelPosHorizontal=="right")se.x-=me.labelWidth/2}if(me.labelHeight){if(me.labelPosVertical=="top")se.y+=me.labelHeight/2;else if(me.labelPosVertical=="bottom")se.y-=me.labelHeight/2}}if(se==null)se={x:F.position("x"),y:F.position("y")};return{x:se.x,y:se.y}}else{var he=void 0;if(b.forEach(function(Ee){var Pe=Ee.nodeIndexes.get(F.id());if(Pe!=null)he={x:Ee.xCoords[Pe],y:Ee.yCoords[Pe]}}),he==null)he={x:F.position("x"),y:F.position("y")};return{x:he.x,y:he.y}}};if(n.quality=="default"||n.quality=="proof"||n.randomize){var rt=c.calcParentsWithoutChildren(M,Y),He=Y.filter(function(J){return J.css("display")=="none"});if(n.eles=Y.not(He),Y.nodes().not(":parent").not(He).layoutPositions(C,n,Ue),rt.length>0)rt.forEach(function(J){J.position(Ue(J))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),o}();T.exports=k},657:(T,O,p)=>{var x=p(548),l=p(140).layoutBase.Matrix,y=p(140).layoutBase.SVD,c=function(f){var{cy:g,eles:r}=f,G=r.nodes(),k=r.nodes(":parent"),o=new Map,v=new Map,C=new Map,n=[],M=[],Y=[],b=[],U=[],z=[],w=[],_=[],q=void 0,W=void 0,oe=1e8,ee=0.000000001,{piTol:ue,samplingType:Ae,nodeSeparation:Re}=f,ce=void 0,H=function(){var Z=0,K=0,ie=!1;while(K<ce){Z=Math.floor(Math.random()*W),ie=!1;for(var ne=0;ne<K;ne++)if(b[ne]==Z){ie=!0;break}if(!ie)b[K]=Z,K++;else continue}},ae=function(Z,K,ie){var ne=[],we=0,ge=0,le=0,Le=void 0,Ce=[],De=0,Oe=1;for(var ze=0;ze<W;ze++)Ce[ze]=oe;ne[ge]=Z,Ce[Z]=0;while(ge>=we){le=ne[we++];var Ye=n[le];for(var Be=0;Be<Ye.length;Be++)if(Le=v.get(Ye[Be]),Ce[Le]==oe)Ce[Le]=Ce[le]+1,ne[++ge]=Le;z[le][K]=Ce[le]*Re}if(ie){for(var Fe=0;Fe<W;Fe++)if(z[Fe][K]<U[Fe])U[Fe]=z[Fe][K];for(var Ke=0;Ke<W;Ke++)if(U[Ke]>De)De=U[Ke],Oe=Ke}return Oe},Ie=function(Z){var K=void 0;if(!Z){H();for(var ie=0;ie<ce;ie++)ae(b[ie],ie,Z,!1)}else{K=Math.floor(Math.random()*W),q=K;for(var ne=0;ne<W;ne++)U[ne]=oe;for(var we=0;we<ce;we++)b[we]=K,K=ae(K,we,Z)}for(var ge=0;ge<W;ge++)for(var le=0;le<ce;le++)z[ge][le]*=z[ge][le];for(var Le=0;Le<ce;Le++)w[Le]=[];for(var Ce=0;Ce<ce;Ce++)for(var De=0;De<ce;De++)w[Ce][De]=z[b[De]][Ce]},be=function(){var Z=y.svd(w),{S:K,U:ie,V:ne}=Z,we=K[0]*K[0]*K[0],ge=[];for(var le=0;le<ce;le++){ge[le]=[];for(var Le=0;Le<ce;Le++)if(ge[le][Le]=0,le==Le)ge[le][Le]=K[le]/(K[le]*K[le]+we/(K[le]*K[le]))}_=l.multMat(l.multMat(ne,ge),l.transpose(ie))},Ne=function(){var Z=void 0,K=void 0,ie=[],ne=[],we=[],ge=[];for(var le=0;le<W;le++)ie[le]=Math.random(),ne[le]=Math.random();ie=l.normalize(ie),ne=l.normalize(ne);var Le=0,Ce=ee,De=ee,Oe=void 0;while(!0){Le++;for(var ze=0;ze<W;ze++)we[ze]=ie[ze];if(ie=l.multGamma(l.multL(l.multGamma(we),z,_)),Z=l.dotProduct(we,ie),ie=l.normalize(ie),Ce=l.dotProduct(we,ie),Oe=Math.abs(Ce/De),Oe<=1+ue&&Oe>=1)break;De=Ce}for(var Ye=0;Ye<W;Ye++)we[Ye]=ie[Ye];Le=0,De=ee;while(!0){Le++;for(var Be=0;Be<W;Be++)ge[Be]=ne[Be];if(ge=l.minusOp(ge,l.multCons(we,l.dotProduct(we,ge))),ne=l.multGamma(l.multL(l.multGamma(ge),z,_)),K=l.dotProduct(ge,ne),ne=l.normalize(ne),Ce=l.dotProduct(ge,ne),Oe=Math.abs(Ce/De),Oe<=1+ue&&Oe>=1)break;De=Ce}for(var Fe=0;Fe<W;Fe++)ge[Fe]=ne[Fe];M=l.multCons(we,Math.sqrt(Math.abs(Z))),Y=l.multCons(ge,Math.sqrt(Math.abs(K)))};x.connectComponents(g,r,x.getTopMostNodes(G),o),k.forEach(function(ye){x.connectComponents(g,r,x.getTopMostNodes(ye.descendants().intersection(r)),o)});var xe=0;for(var V=0;V<G.length;V++)if(!G[V].isParent())v.set(G[V].id(),xe++);var Te=!0,te=!1,ve=void 0;try{for(var ke=o.keys()[Symbol.iterator](),$e;!(Te=($e=ke.next()).done);Te=!0){var Je=$e.value;v.set(Je,xe++)}}catch(ye){te=!0,ve=ye}finally{try{if(!Te&&ke.return)ke.return()}finally{if(te)throw ve}}for(var Ue=0;Ue<v.size;Ue++)n[Ue]=[];k.forEach(function(ye){var Z=ye.children().intersection(r);while(Z.nodes(":childless").length==0)Z=Z.nodes()[0].children().intersection(r);var K=0,ie=Z.nodes(":childless")[0].connectedEdges().length;Z.nodes(":childless").forEach(function(ne,we){if(ne.connectedEdges().length<ie)ie=ne.connectedEdges().length,K=we}),C.set(ye.id(),Z.nodes(":childless")[K].id())}),G.forEach(function(ye){var Z=void 0;if(ye.isParent())Z=v.get(C.get(ye.id()));else Z=v.get(ye.id());ye.neighborhood().nodes().forEach(function(K){if(r.intersection(ye.edgesWith(K)).length>0)if(K.isParent())n[Z].push(C.get(K.id()));else n[Z].push(K.id())})});var rt=function(Z){var K=v.get(Z),ie=void 0;o.get(Z).forEach(function(ne){if(g.getElementById(ne).isParent())ie=C.get(ne);else ie=ne;n[K].push(ie),n[v.get(ie)].push(Z)})},He=!0,J=!1,F=void 0;try{for(var pe=o.keys()[Symbol.iterator](),se;!(He=(se=pe.next()).done);He=!0){var me=se.value;rt(me)}}catch(ye){J=!0,F=ye}finally{try{if(!He&&pe.return)pe.return()}finally{if(J)throw F}}W=v.size;var de=void 0;if(W>2){ce=W<f.sampleSize?W:f.sampleSize;for(var he=0;he<W;he++)z[he]=[];for(var Ee=0;Ee<ce;Ee++)_[Ee]=[];if(f.quality=="draft"||f.step=="all")Ie(Ae),be(),Ne(),de={nodeIndexes:v,xCoords:M,yCoords:Y};else v.forEach(function(ye,Z){M.push(g.getElementById(Z).position("x")),Y.push(g.getElementById(Z).position("y"))}),de={nodeIndexes:v,xCoords:M,yCoords:Y};return de}else{var Pe=v.keys(),Qe=g.getElementById(Pe.next().value),Me=Qe.position(),Ge=Qe.outerWidth();if(M.push(Me.x),Y.push(Me.y),W==2){var Ve=g.getElementById(Pe.next().value),je=Ve.outerWidth();M.push(Me.x+Ge/2+je/2+f.idealEdgeLength),Y.push(Me.y)}return de={nodeIndexes:v,xCoords:M,yCoords:Y},de}};T.exports={spectralLayout:c}},579:(T,O,p)=>{var x=p(212),l=function(c){if(!c)return;c("layout","fcose",x)};if(typeof cytoscape<"u")l(cytoscape);T.exports=l},140:(T)=>{T.exports=e}},s={};function E(T){var O=s[T];if(O!==void 0)return O.exports;var p=s[T]={exports:{}};return i[T](p,p.exports,E),p.exports}var m=E(579);return m})()})});var mt=Ze(ct(),1);var dt={L:"left",R:"right",T:"top",B:"bottom"},ft={L:t((e)=>`${e},${e/2} 0,${e} 0,0`,"L"),R:t((e)=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:t((e)=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:t((e)=>`${e/2},0 ${e},${e} 0,${e}`,"B")},nt={L:t((e,i)=>e-i+2,"L"),R:t((e,i)=>e-2,"R"),T:t((e,i)=>e-i+2,"T"),B:t((e,i)=>e-2,"B")},It=t(function(e){if(Se(e))return e==="L"?"R":"L";else return e==="T"?"B":"T"},"getOppositeArchitectureDirection"),ut=t(function(e){let i=e;return i==="L"||i==="R"||i==="T"||i==="B"},"isArchitectureDirection"),Se=t(function(e){let i=e;return i==="L"||i==="R"},"isArchitectureDirectionX"),_e=t(function(e){let i=e;return i==="T"||i==="B"},"isArchitectureDirectionY"),lt=t(function(e,i){let s=Se(e)&&_e(i),E=_e(e)&&Se(i);return s||E},"isArchitectureDirectionXY"),Nt=t(function(e){let i=e[0],s=e[1],E=Se(i)&&_e(s),m=_e(i)&&Se(s);return E||m},"isArchitecturePairXY"),St=t(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),ot=t(function(e,i){let s=`${e}${i}`;return St(s)?s:void 0},"getArchitectureDirectionPair"),kt=t(function([e,i],s){let E=s[0],m=s[1];if(Se(E))if(_e(m))return[e+(E==="L"?-1:1),i+(m==="T"?1:-1)];else return[e+(E==="L"?-1:1),i];else if(Se(m))return[e+(m==="L"?1:-1),i+(E==="T"?1:-1)];else return[e,i+(E==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Dt=t(function(e){if(e==="LT"||e==="TL")return[1,1];else if(e==="BL"||e==="LB")return[1,-1];else if(e==="BR"||e==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),Rt=t(function(e,i){if(lt(e,i))return"bend";else if(Se(e))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),Mt=t(function(e){return e.type==="service"},"isArchitectureService"),Ft=t(function(e){return e.type==="junction"},"isArchitectureJunction"),gt=t((e,i)=>{let[s,E]=[e,i].sort();return`${JSON.stringify(s)}-${JSON.stringify(E)}`},"architectureGroupAlignmentKey"),ht=t((e)=>e.data(),"edgeData"),We=t((e)=>e.data(),"nodeData"),$t=B.architecture,vt=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=R,this.getAccTitle=I,this.setDiagramTitle=P,this.getDiagramTitle=N,this.getAccDescription=D,this.setAccDescription=L,this.clear()}static{t(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",A()}addService({id:e,icon:i,in:s,title:E,iconText:m}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(s)==="node")throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:i,iconText:m,title:E,edges:[],in:s})}getServices(){return[...this.nodes.values()].filter(Mt)}addJunction({id:e,in:i}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(i!==void 0){if(e===i)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(i)==="node")throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:i})}getJunctions(){return[...this.nodes.values()].filter(Ft)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:i,in:s,title:E}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(s)==="node")throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:i,title:E,in:s})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:i,lhsDir:s,rhsDir:E,lhsInto:m,rhsInto:T,lhsGroup:O,rhsGroup:p,title:x}){if(!ut(s))throw Error(`Invalid direction given for left hand side of edge ${e}--${i}. Expected (L,R,T,B) got ${String(s)}`);if(!ut(E))throw Error(`Invalid direction given for right hand side of edge ${e}--${i}. Expected (L,R,T,B) got ${String(E)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(i)&&!this.groups.has(i))throw Error(`The right-hand id [${i}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes.get(e).in,y=this.nodes.get(i).in;if(O&&l&&y&&l==y)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(p&&l&&y&&l==y)throw Error(`The right-hand id [${i}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let c={lhsId:e,lhsDir:s,lhsInto:m,lhsGroup:O,rhsId:i,rhsDir:E,rhsInto:T,rhsGroup:p,title:x};this.edges.push(c);let d=this.nodes.get(e),f=this.nodes.get(i);if(d&&f)d.edges.push(this.edges[this.edges.length-1]),f.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let i=new Set;e.members.forEach((s)=>{if(this.registeredIds.get(s)!=="node")throw Error(`align ${e.direction} references [${s}], which is not a service or junction`);if(i.has(s))throw Error(`align ${e.direction} lists [${s}] more than once`);i.add(s)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,i=new Map;for(let[O,p]of this.nodes.entries()){let x=new Map;for(let l of p.edges){let y=this.getNode(l.lhsId)?.in,c=this.getNode(l.rhsId)?.in;if(y&&c&&y!==c){let d=Rt(l.lhsDir,l.rhsDir);if(d!=="bend")e.set(gt(y,c),d)}if(l.lhsId===O){let d=ot(l.lhsDir,l.rhsDir);if(d)x.set(d,l.rhsId)}else{let d=ot(l.rhsDir,l.lhsDir);if(d)x.set(d,l.lhsId)}}i.set(O,x)}let s=new Set,E=new Set(i.keys()),m=t((O)=>{let p=new Map([[O,[0,0]]]),x=[O];while(x.length>0){let l=x.shift();if(l){s.add(l),E.delete(l);let y=i.get(l);if(!y)throw Error(`BFS error: adjacency list for id ${l} not found. Please report this as a bug.`);let c=p.get(l);if(!c)throw Error(`BFS error: position for id ${l} not found in spatial map. Please report this as a bug.`);let[d,f]=c;y.forEach((g,r)=>{if(!s.has(g))p.set(g,kt([d,f],r)),x.push(g)})}}return p},"BFS"),T=[];while(E.size>0){let O=E.values().next().value;T.push(m(O))}this.dataStructures={adjList:i,spatialMaps:T,groupAlignments:e}}return this.dataStructures}setElementForId(e,i){this.elements.set(e,i)}getElementById(e){return this.elements.get(e)}getConfig(){return X({...$t,...S().architecture})}getConfigField(e){return this.getConfig()[e]}},Pt=t((e,i)=>{re(e,i),e.groups.map((s)=>i.addGroup(s)),e.services.map((s)=>i.addService({...s,type:"service"})),e.junctions.map((s)=>i.addJunction({...s,type:"junction"})),e.edges.map((s)=>i.addEdge(s)),e.alignments?.map((s)=>i.addLayoutHint({direction:s.direction,members:[...s.members]}))},"populateDb"),pt={parser:{yy:void 0},parse:t(async(e)=>{let i=await fe("architecture",e);a.debug(i);let s=pt.parser?.yy;if(!(s instanceof vt))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Pt(i,s)},"parse")},Ot=t((e)=>`
2
2
  .edge {
3
3
  stroke-width: ${e.archEdgeWidth};
4
4
  stroke: ${e.archEdgeColor};
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- import{t,a,G}from"./chunk-dbv8qpen.js";var Le=t((e,i,o,h)=>{e.attr("class",o);let{width:r,height:n,x:w,y:x}=u(e,i);G(e,n,r,h);let c=m(w,x,r,n,i);e.attr("viewBox",c),a.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=t((e,i)=>{let o=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=t((e,i,o,h,r)=>`${e-r} ${i-r} ${o} ${h}`,"createViewBox");
1
+ import{t,a,G}from"./chunk-xp2zpmpp.js";var Le=t((e,i,o,h)=>{e.attr("class",o);let{width:r,height:n,x:w,y:x}=u(e,i);G(e,n,r,h);let c=m(w,x,r,n,i);e.attr("viewBox",c),a.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=t((e,i)=>{let o=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=t((e,i,o,h,r)=>`${e-r} ${i-r} ${o} ${h}`,"createViewBox");
2
2
  export{Le};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{re}from"./chunk-n00se8nk.js";import{t,a,He,B,S,G,A,R,I,L,D,P,N,Q,X}from"./chunk-dbv8qpen.js";import{fe}from"./chunk-21d8pzcm.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},C=32,b={axes:[],curves:[],options:h},x=structuredClone(b),z=B.radar,W=t(()=>X({...z,...S().radar}),"getConfig"),M=t(()=>x.axes,"getAxes"),V=t(()=>x.curves,"getCurves"),H=t(()=>x.options,"getOptions"),j=t((n)=>{x.axes=n.map((e)=>({name:e.name,label:e.label??e.name}))},"setAxes"),U=t((n)=>{x.curves=n.map((e)=>({name:e.name,label:e.label??e.name,entries:K(e.entries)}))},"setCurves"),K=t((n)=>{if(n[0].axis==null)return n.map((r)=>r.value);let e=M();if(e.length===0)throw Error("Axes must be populated before curves for reference entries");return e.map((r)=>{let s=n.find((o)=>o.axis?.$refText===r.name);if(s===void 0)throw Error("Missing entry for axis "+r.label);return s.value})},"computeCurveEntries"),Y=t((n)=>{let e=n.reduce((r,s)=>(r[s.name]=s,r),{});if(x.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule},x.options.ticks>C)a.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${C}). Using ${C} instead.`),x.options.ticks=C},"setOptions"),Z=t(()=>{A(),x=structuredClone(b)},"clear"),y={getAxes:M,getCurves:V,getOptions:H,setAxes:j,setCurves:U,setOptions:Y,getConfig:W,clear:Z,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L},q=t((n)=>{re(n,y);let{axes:e,curves:r,options:s}=n;y.setAxes(e),y.setCurves(r),y.setOptions(s)},"populate"),J={parse:t(async(n)=>{let e=await fe("radar",n);a.debug(e),q(e)},"parse")},tt=t((n,e,r,s)=>{let o=s.db,c=o.getAxes(),d=o.getCurves(),i=o.getOptions(),l=o.getConfig(),u=o.getDiagramTitle(),m=Q(e),p=et(m,l),g=i.max??Math.max(...d.map((w)=>Math.max(...w.entries))),v=i.min,f=Math.min(l.width,l.height)/2;at(p,c,f,i.ticks,i.graticule),rt(p,c,f,l),T(p,c,d,v,g,i.graticule,l),_(p,d,i.showLegend,l),p.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),et=t((n,e)=>{let r=e.width+e.marginLeft+e.marginRight,s=e.height+e.marginTop+e.marginBottom,o={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return G(n,s,r,e.useMaxWidth??!0),n.attr("viewBox",`0 0 ${r} ${s}`).attr("overflow","visible"),n.append("g").attr("transform",`translate(${o.x}, ${o.y})`)},"drawFrame"),at=t((n,e,r,s,o)=>{if(o==="circle")for(let c=0;c<s;c++){let d=r*(c+1)/s;n.append("circle").attr("r",d).attr("class","radarGraticule")}else if(o==="polygon"){let c=e.length;for(let d=0;d<s;d++){let i=r*(d+1)/s,l=e.map((u,m)=>{let p=2*m*Math.PI/c-Math.PI/2,g=i*Math.cos(p),v=i*Math.sin(p);return`${g},${v}`}).join(" ");n.append("polygon").attr("points",l).attr("class","radarGraticule")}}},"drawGraticule"),rt=t((n,e,r,s)=>{let o=e.length;for(let c=0;c<o;c++){let d=e[c].label,i=2*c*Math.PI/o-Math.PI/2,l=Math.cos(i),u=Math.sin(i);n.append("line").attr("x1",0).attr("y1",0).attr("x2",r*s.axisScaleFactor*l).attr("y2",r*s.axisScaleFactor*u).attr("class","radarAxisLine");let m=l>0.01?"start":l<-0.01?"end":"middle",p=u>0.01?"hanging":u<-0.01?"auto":"central",g=4;n.append("text").text(d).attr("x",r*s.axisLabelFactor*l+g*l).attr("y",r*s.axisLabelFactor*u+g*u).attr("text-anchor",m).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function T(n,e,r,s,o,c,d){let i=e.length,l=Math.min(d.width,d.height)/2;r.forEach((u,m)=>{if(u.entries.length!==i)return;let p=u.entries.map((g,v)=>{let f=2*Math.PI*v/i-Math.PI/2,w=k(g,s,o,l),E=w*Math.cos(f),F=w*Math.sin(f);return{x:E,y:F}});if(c==="circle")n.append("path").attr("d",O(p,d.curveTension)).attr("class",`radarCurve-${m}`);else if(c==="polygon")n.append("polygon").attr("points",p.map((g)=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}t(T,"drawCurves");function k(n,e,r,s){let o=Math.min(Math.max(n,e),r);return s*(o-e)/(r-e)}t(k,"relativeRadius");function O(n,e){let r=n.length,s=`M${n[0].x},${n[0].y}`;for(let o=0;o<r;o++){let c=n[(o-1+r)%r],d=n[o],i=n[(o+1)%r],l=n[(o+2)%r],u={x:d.x+(i.x-c.x)*e,y:d.y+(i.y-c.y)*e},m={x:i.x-(l.x-d.x)*e,y:i.y-(l.y-d.y)*e};s+=` C${u.x},${u.y} ${m.x},${m.y} ${i.x},${i.y}`}return`${s} Z`}t(O,"closedRoundCurve");function _(n,e,r,s){if(!r)return;let o=(s.width/2+s.marginRight)*3/4,c=-(s.height/2+s.marginTop)*3/4,d=20;e.forEach((i,l)=>{let u=n.append("g").attr("transform",`translate(${o}, ${c+l*d})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${l}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}t(_,"drawLegend");var nt={draw:tt},st=t((n,e)=>{let r="";for(let s=0;s<n.THEME_COLOR_LIMIT;s++){let o=n[`cScale${s}`];r+=`
1
+ import{re}from"./chunk-4r0dvjrr.js";import{t,a,He,B,S,G,A,R,I,L,D,P,N,Q,X}from"./chunk-xp2zpmpp.js";import{fe}from"./chunk-et1nm6h1.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},C=32,b={axes:[],curves:[],options:h},x=structuredClone(b),z=B.radar,W=t(()=>X({...z,...S().radar}),"getConfig"),M=t(()=>x.axes,"getAxes"),V=t(()=>x.curves,"getCurves"),H=t(()=>x.options,"getOptions"),j=t((n)=>{x.axes=n.map((e)=>({name:e.name,label:e.label??e.name}))},"setAxes"),U=t((n)=>{x.curves=n.map((e)=>({name:e.name,label:e.label??e.name,entries:K(e.entries)}))},"setCurves"),K=t((n)=>{if(n[0].axis==null)return n.map((r)=>r.value);let e=M();if(e.length===0)throw Error("Axes must be populated before curves for reference entries");return e.map((r)=>{let s=n.find((o)=>o.axis?.$refText===r.name);if(s===void 0)throw Error("Missing entry for axis "+r.label);return s.value})},"computeCurveEntries"),Y=t((n)=>{let e=n.reduce((r,s)=>(r[s.name]=s,r),{});if(x.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule},x.options.ticks>C)a.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${C}). Using ${C} instead.`),x.options.ticks=C},"setOptions"),Z=t(()=>{A(),x=structuredClone(b)},"clear"),y={getAxes:M,getCurves:V,getOptions:H,setAxes:j,setCurves:U,setOptions:Y,getConfig:W,clear:Z,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L},q=t((n)=>{re(n,y);let{axes:e,curves:r,options:s}=n;y.setAxes(e),y.setCurves(r),y.setOptions(s)},"populate"),J={parse:t(async(n)=>{let e=await fe("radar",n);a.debug(e),q(e)},"parse")},tt=t((n,e,r,s)=>{let o=s.db,c=o.getAxes(),d=o.getCurves(),i=o.getOptions(),l=o.getConfig(),u=o.getDiagramTitle(),m=Q(e),p=et(m,l),g=i.max??Math.max(...d.map((w)=>Math.max(...w.entries))),v=i.min,f=Math.min(l.width,l.height)/2;at(p,c,f,i.ticks,i.graticule),rt(p,c,f,l),T(p,c,d,v,g,i.graticule,l),_(p,d,i.showLegend,l),p.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),et=t((n,e)=>{let r=e.width+e.marginLeft+e.marginRight,s=e.height+e.marginTop+e.marginBottom,o={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return G(n,s,r,e.useMaxWidth??!0),n.attr("viewBox",`0 0 ${r} ${s}`).attr("overflow","visible"),n.append("g").attr("transform",`translate(${o.x}, ${o.y})`)},"drawFrame"),at=t((n,e,r,s,o)=>{if(o==="circle")for(let c=0;c<s;c++){let d=r*(c+1)/s;n.append("circle").attr("r",d).attr("class","radarGraticule")}else if(o==="polygon"){let c=e.length;for(let d=0;d<s;d++){let i=r*(d+1)/s,l=e.map((u,m)=>{let p=2*m*Math.PI/c-Math.PI/2,g=i*Math.cos(p),v=i*Math.sin(p);return`${g},${v}`}).join(" ");n.append("polygon").attr("points",l).attr("class","radarGraticule")}}},"drawGraticule"),rt=t((n,e,r,s)=>{let o=e.length;for(let c=0;c<o;c++){let d=e[c].label,i=2*c*Math.PI/o-Math.PI/2,l=Math.cos(i),u=Math.sin(i);n.append("line").attr("x1",0).attr("y1",0).attr("x2",r*s.axisScaleFactor*l).attr("y2",r*s.axisScaleFactor*u).attr("class","radarAxisLine");let m=l>0.01?"start":l<-0.01?"end":"middle",p=u>0.01?"hanging":u<-0.01?"auto":"central",g=4;n.append("text").text(d).attr("x",r*s.axisLabelFactor*l+g*l).attr("y",r*s.axisLabelFactor*u+g*u).attr("text-anchor",m).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function T(n,e,r,s,o,c,d){let i=e.length,l=Math.min(d.width,d.height)/2;r.forEach((u,m)=>{if(u.entries.length!==i)return;let p=u.entries.map((g,v)=>{let f=2*Math.PI*v/i-Math.PI/2,w=k(g,s,o,l),E=w*Math.cos(f),F=w*Math.sin(f);return{x:E,y:F}});if(c==="circle")n.append("path").attr("d",O(p,d.curveTension)).attr("class",`radarCurve-${m}`);else if(c==="polygon")n.append("polygon").attr("points",p.map((g)=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}t(T,"drawCurves");function k(n,e,r,s){let o=Math.min(Math.max(n,e),r);return s*(o-e)/(r-e)}t(k,"relativeRadius");function O(n,e){let r=n.length,s=`M${n[0].x},${n[0].y}`;for(let o=0;o<r;o++){let c=n[(o-1+r)%r],d=n[o],i=n[(o+1)%r],l=n[(o+2)%r],u={x:d.x+(i.x-c.x)*e,y:d.y+(i.y-c.y)*e},m={x:i.x-(l.x-d.x)*e,y:i.y-(l.y-d.y)*e};s+=` C${u.x},${u.y} ${m.x},${m.y} ${i.x},${i.y}`}return`${s} Z`}t(O,"closedRoundCurve");function _(n,e,r,s){if(!r)return;let o=(s.width/2+s.marginRight)*3/4,c=-(s.height/2+s.marginTop)*3/4,d=20;e.forEach((i,l)=>{let u=n.append("g").attr("transform",`translate(${o}, ${c+l*d})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${l}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}t(_,"drawLegend");var nt={draw:tt},st=t((n,e)=>{let r="";for(let s=0;s<n.THEME_COLOR_LIMIT;s++){let o=n[`cScale${s}`];r+=`
2
2
  .radarCurve-${s} {
3
3
  color: ${o};
4
4
  fill: ${o};
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- import{o,r,p,e,n,y,Cn,xt,ge,ot,Ko,Qo,ba,Jo}from"./chunk-b83bzjcx.js";function te(z){let{Button:I,Panel:B,StatusChip:U,Markdown:A,ModelIcon:M,cn:d,style:Q,useTheme:q}=y();q();let{connection:k,sessionID:b,payload:L,onOpen:O}=z,s=L,[t,F]=r(),[W,S]=r(!1),[N,u]=r(),[T,P]=r(!1),[m,j]=r(!1),[G,_]=r(!1),g=G||s.state==="aborted"||s.state==="cancelled",f=g?"aborted":s.state,i=(s.state==="running"||s.state==="waiting")&&!g;o(()=>{let a,C=!1,E=()=>{k.request(`/api/sessions/${encodeURIComponent(b)}/tasks/${encodeURIComponent(s.childSessionID)}`).then((c)=>{if(!C)F(c),S(!1),u(void 0)}).catch((c)=>{if(!C){if(c instanceof Error&&c.message==="Task is not a direct child"){S(!0),u(void 0);return}u(c instanceof Error?c.message:"任务详情加载失败")}})};if(E(),i)a=setInterval(E,1500);return()=>{if(C=!0,a)clearInterval(a)}},[k,b,s.childSessionID,i]);let H=async()=>{if(T)return;P(!0);try{await k.request(`/api/sessions/${encodeURIComponent(b)}/tasks/${encodeURIComponent(s.childSessionID)}/kill`,{method:"POST"}),_(!0)}catch(a){u(a instanceof Error?a.message:"取消任务失败")}finally{P(!1)}},l=s.summary?.trim()||s.handoff?.conclusion.trim()||"",v=l.length>360||l.split(`
1
+ import{o,r,p,e,n,y,Cn,xt,ge,ot,Ko,Qo,ba,Jo}from"./chunk-2s6fhjjc.js";function te(z){let{Button:I,Panel:B,StatusChip:U,Markdown:A,ModelIcon:M,cn:d,style:Q,useTheme:q}=y();q();let{connection:k,sessionID:b,payload:L,onOpen:O}=z,s=L,[t,F]=r(),[W,S]=r(!1),[N,u]=r(),[T,P]=r(!1),[m,j]=r(!1),[G,_]=r(!1),g=G||s.state==="aborted"||s.state==="cancelled",f=g?"aborted":s.state,i=(s.state==="running"||s.state==="waiting")&&!g;o(()=>{let a,C=!1,E=()=>{k.request(`/api/sessions/${encodeURIComponent(b)}/tasks/${encodeURIComponent(s.childSessionID)}`).then((c)=>{if(!C)F(c),S(!1),u(void 0)}).catch((c)=>{if(!C){if(c instanceof Error&&c.message==="Task is not a direct child"){S(!0),u(void 0);return}u(c instanceof Error?c.message:"任务详情加载失败")}})};if(E(),i)a=setInterval(E,1500);return()=>{if(C=!0,a)clearInterval(a)}},[k,b,s.childSessionID,i]);let H=async()=>{if(T)return;P(!0);try{await k.request(`/api/sessions/${encodeURIComponent(b)}/tasks/${encodeURIComponent(s.childSessionID)}/kill`,{method:"POST"}),_(!0)}catch(a){u(a instanceof Error?a.message:"取消任务失败")}finally{P(!1)}},l=s.summary?.trim()||s.handoff?.conclusion.trim()||"",v=l.length>360||l.split(`
2
2
  `).length>8,x=t?.retried??0,h=i&&x>0,J=h?`重试中 (${x})`:Ko[f]??f,K=h?"danger":Qo[f]??"neutral",w=[t&&i&&t.lastTool&&`最近 ${t.lastTool}`,t&&Jo(t.elapsedMs),t&&`输入 ${ba(t.usage.input)}`,t&&`输出 ${ba(t.usage.output)}`,t&&t.usage.cacheRead>0&&`缓存 ${ba(t.usage.cacheRead)}`,t&&t.usage.cost>0&&`$${t.usage.cost.toFixed(4)}`].filter((a)=>Boolean(a)),D=h&&t?.lastError?`模型请求异常:${t.lastError}`:void 0,V=Boolean(l||s.state==="waiting"&&!g||D||N),R=s.model||t?.session.model;return e(B,{className:"my-2 animate-fade",header:n(p,{children:[R?e(M,{modelID:R,className:"size-3.5 shrink-0",size:14}):e(ot,{className:d("size-3.5 shrink-0",i?"text-warning":"text-faint")}),e("h4",{className:"truncate font-medium text-ink",title:s.description,children:s.description}),h&&n("span",{className:"shrink-0 text-xs font-medium text-danger tabular-nums",children:["已失败重试 ",x," 次"]}),w.length>0&&e("span",{className:"min-w-0 truncate text-xs text-faint tabular-nums",title:w.join(" "),children:w.join(" ")})]}),actions:n(p,{children:[e(U,{tone:K,pulse:f==="running",children:J}),i&&e(I,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:T,onClick:()=>{H()},children:"取消"}),!W&&n(I,{size:"sm",variant:"ghost",className:"h-6 gap-1 rounded-md px-2 text-xs text-faint hover:text-ink",onClick:()=>O(s.childSessionID),children:["进入子会话",e(xt,{className:"size-3.5"})]})]}),children:V&&n(p,{children:[D&&n("div",{className:"flex items-center gap-2 border-b border-line bg-danger/10 px-4 py-2 text-xs text-danger",children:[n("span",{className:"font-medium",children:["已自动重试 ",x," 次:"]}),e("span",{className:"truncate",title:t?.lastError,children:t?.lastError})]}),s.state==="waiting"&&!g&&n("div",{className:d("px-4 py-3",l&&"border-b border-line"),children:[n("p",{className:"flex items-center gap-1.5 text-xs font-medium text-warning",children:[e(Cn,{className:"size-3.5"}),"子任务向主代理提问,等待回答"]}),s.pendingQuestions&&s.pendingQuestions.length>0&&e("ul",{className:"mt-1.5 flex flex-col gap-1 text-[13px] leading-relaxed text-ink",children:s.pendingQuestions.map((a)=>e("li",{className:"break-words",children:a.text},a.askedAt))})]}),l&&n("div",{className:"px-4 py-3",children:[n("div",{className:d("relative text-[13.5px] leading-[1.65] break-words text-ink/90 overflow-hidden transition-[max-height] duration-300 ease-out-quint [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",v&&!m?"max-h-40":"max-h-[1800px]"),children:[e(A,{text:l}),v&&e("div",{className:d("pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-gradient-to-t from-panel via-panel/70 to-transparent transition-opacity duration-300",m?"opacity-0":"opacity-100")})]}),v&&n("button",{type:"button",className:Q("chat.timelineRow","cursor-pointer select-none"),onClick:()=>j(!m),children:[e("span",{children:m?"收起":"展开全部"}),e(ge,{className:d("size-3.5 transition-transform duration-300 ease-out-quint",m&&"rotate-180")})]})]}),N&&e("p",{role:"status",className:"px-4 py-2.5 text-xs text-danger",children:N})]})})}export{te as TaskCard};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{tl,$l,nl,Bl,Fl,rl}from"./chunk-5kavsn22.js";import"./chunk-g30nqfka.js";import"./chunk-cc6hn5xv.js";import"./chunk-xp2zpmpp.js";export{$l as applyDagreLayoutResult,tl as getEdgesToRender,Bl as measureDagreLayout,nl as prepareLayoutForDagre,rl as render,Fl as runDagreLayoutCore};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{wa}from"./chunk-et1nm6h1.js";export{wa as createRailroadServices};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{v,o,_,i,r,p,e,n,y,Nt}from"./chunk-b83bzjcx.js";var V="__chat__";function S(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function L(t){let u=Number.isFinite(t)?Math.max(0,t):0;return Math.round(u).toLocaleString("en-US")}function R(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let c=Math.floor(t/1000),a=Math.floor(c/60),f=c%60;return f>0?`${a}m ${f}s`:`${a}m`}if(t<259200000){let c=Math.floor(t/60000),a=Math.floor(c/60),f=c%60;return f>0?`${a}h ${f}m`:`${a}h`}let u=Math.floor(t/3600000),g=Math.floor(u/24),m=u%24;return m>0?`${g}d ${m}h`:`${g}d`}function ae(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let m=t/3600000;return`${m>=10?Math.round(m).toString():m.toFixed(1).replace(/\.0$/,"")}h`}let u=t/86400000;return`${u>=10?Math.round(u).toString():u.toFixed(1).replace(/\.0$/,"")}d`}function B(t,u=1){if(!Number.isFinite(t)||t<=0)return"0%";let g=10**-u/100;if(t<g)return`<${(g*100).toFixed(u)}%`;return`${(t*100).toFixed(u)}%`}function Q(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function W(t){let u=t.split("-"),g=u[1],m=u[2];if(g!==void 0&&m!==void 0)return`${g}/${m}`;return t}function Z(t){let u=t.split("-"),g=u[0],m=u[1],c=u[2];if(g===void 0||m===void 0||c===void 0)return t;let a=Number(g),f=Number(m)-1,b=Number(c),M=new Date(Date.UTC(a,f,b)),C=["周日","周一","周二","周三","周四","周五","周六"],w=M.getUTCDay(),F=C[w]??"";return`${t} ${F}`}function se(t,u=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let g=Math.max(0,u-t);if(g<60000)return"刚刚";if(g<3600000)return`${Math.max(1,Math.floor(g/60000))} 分钟前`;if(g<86400000)return`${Math.max(1,Math.floor(g/3600000))} 小时前`;if(g<2592000000)return`${Math.max(1,Math.floor(g/86400000))} 天前`;let m=new Date(t),c=m.getFullYear(),a=String(m.getMonth()+1).padStart(2,"0"),f=String(m.getDate()).padStart(2,"0");return`${c}-${a}-${f}`}function K(t){return e("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:e("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${t.percent}%`}})})}function Y(t){return e("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:t.children})}function G(t){return e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:t.children})}function J(t){return n(G,{children:[n("span",{children:["输入 ",e("span",{className:"text-ink",children:S(t.stat.inputTokens)})]}),n("span",{children:["输出 ",e("span",{className:"text-ink",children:S(t.stat.outputTokens)})]}),n("span",{children:["缓存读 ",e("span",{className:"text-ink",children:S(t.stat.cacheReadTokens)}),t.cacheHitRate!==void 0&&n("span",{className:"text-faint",children:[" (",B(t.cacheHitRate),")"]})]})]})}function oe(t){let{projects:u,selectedProjectID:g,onSelectProject:m}=t,{style:c}=y();if(u.length===0)return e("div",{className:c("surface.empty"),children:"暂无项目统计数据"});return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=a.projectID??V,b=g===f,M=Math.max(a.tokenShare>0?1:0,a.tokenShare*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate",children:a.name}),e("span",{className:c("control.badge","font-mono truncate max-w-[240px]"),title:a.directory||"未绑定项目目录",children:a.directory||"独立会话"}),e("button",{type:"button",onClick:()=>m(b?null:f),className:"rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:b?"取消筛选":"筛选"})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),n("span",{className:"text-[11px] text-faint",children:["(",B(a.tokenShare),")"]})]})]}),e(K,{percent:M}),n(Y,{children:[e(J,{stat:a,cacheHitRate:a.cacheHitRate}),n(G,{children:[n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:a.toolCalls.toLocaleString()})," 次"]})]})]})]},f)})})}function re(t){let{models:u}=t,{ModelIcon:g,style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无模型调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e(g,{modelID:c.model,className:"size-4 shrink-0"}),e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.shortName}),e("span",{className:m("control.badge","font-mono shrink-0"),children:c.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[c.avgTps!==null&&n("span",{className:"text-[11px] text-dim",children:[c.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:L(c.totalTokens),children:[S(c.totalTokens)," ",n("span",{className:"text-[11px] font-normal text-faint",children:["(",B(c.share),")"]})]})]})]}),e(K,{percent:a}),n(Y,{children:[e(J,{stat:c,cacheHitRate:c.cacheHitRate}),n(G,{children:[n("span",{children:[e("span",{className:"text-ink",children:c.turns.toLocaleString()})," 轮",c.errors>0?n("span",{className:"text-danger",children:[" (",c.errors," 错)"]}):null]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:c.toolCalls.toLocaleString()})," 次"]}),c.generationMs>0&&n("span",{children:["推理 ",e("span",{className:"text-ink",children:ae(c.generationMs)})]})]})]})]},c.model)})})}function ie(t){let{tools:u}=t,{StatusChip:g,style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无工具调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100),f=c.successRate>=0.95?"success":c.successRate>=0.8?"warning":"danger",b=Math.max(0,c.calls-c.errors),M=c.calls>0?Math.round(c.outputBytes/c.calls):0;return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.name}),n(g,{tone:f,children:["成功率 ",B(c.successRate)]})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[n("span",{className:"text-xs font-medium text-ink",children:[c.calls.toLocaleString()," 次"]}),n("span",{className:"text-[11px] text-faint",children:["(",B(c.share),")"]})]})]}),e(K,{percent:a}),n(Y,{children:[n(G,{children:[n("span",{children:["成功 ",e("span",{className:"text-ink",children:b.toLocaleString()})," 次"]}),n("span",{children:["失败 ",e("span",{className:c.errors>0?"text-danger":"text-ink",children:c.errors.toLocaleString()})," 次"]})]}),n(G,{children:[n("span",{children:["累计输出 ",e("span",{className:"text-ink",children:Q(c.outputBytes)})]}),n("span",{children:["单次均值 ",e("span",{className:"text-ink",children:Q(M)})]})]})]})]},c.name)})})}function le(t){let{sessions:u,onOpenSession:g}=t,{style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无高消耗会话记录"});let c=Math.max(1,...u.map((a)=>a.totalTokens));return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=c>0?Math.max(1,a.totalTokens/c*100):0,b=a.model.split("/").pop()??a.model;return n("button",{type:"button",onClick:()=>g(a.id),className:"group block w-full p-4 text-left space-y-2.5 hover:bg-raised/40 transition-colors cursor-pointer",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate group-hover:text-accent transition-colors",children:a.title.trim()||"新会话"}),e("span",{className:m("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:a.projectName,children:a.projectName}),a.kind==="sub"&&e("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-[10.5px] text-accent shrink-0",children:"子代理"}),a.archivedAt!==null&&e("span",{className:m("control.badge","shrink-0"),children:"已归档"})]}),n("div",{className:"flex items-center gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),e(Nt,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),e(K,{percent:f}),n(Y,{children:[e(J,{stat:a}),n(G,{children:[e("span",{className:"text-ink",children:b}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.assistantTurns})," 轮"]}),e("span",{className:"text-faint",children:se(a.updated)})]})]})]},a.id)})})}var ce=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function ue(t){let{cn:u,Segmented:g,SettingGroup:m,style:c}=y(),{daily:a}=t,[f,b]=r("tokens"),[M,C]=r(null),w=_(()=>a.some((s)=>s.totalTokens>0||s.activeDurationMs>0||s.runs>0),[a]),F=_(()=>{if(a.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(f==="tokens"){let N=a.reduce((P,A)=>P+A.totalTokens,0),j=a.filter((P)=>P.totalTokens>0).length,T=a[0];for(let P of a)if(!T||P.totalTokens>T.totalTokens)T=P;return{totalText:S(N),totalFullText:L(N),avgText:j>0?S(Math.round(N/j)):"0",peakDate:T&&T.totalTokens>0?W(T.date):"—",peakValueText:T&&T.totalTokens>0?S(T.totalTokens):"0"}}if(f==="duration"){let N=a.reduce((P,A)=>P+A.activeDurationMs,0),j=a.filter((P)=>P.activeDurationMs>0).length,T=a[0];for(let P of a)if(!T||P.activeDurationMs>T.activeDurationMs)T=P;return{totalText:R(N),totalFullText:R(N),avgText:j>0?R(Math.round(N/j)):"0s",peakDate:T&&T.activeDurationMs>0?W(T.date):"—",peakValueText:T&&T.activeDurationMs>0?R(T.activeDurationMs):"0s"}}let s=a.reduce((N,j)=>N+j.assistantTurns,0),l=a.reduce((N,j)=>N+j.userMessages,0),x=s+l,k=a.filter((N)=>N.assistantTurns>0||N.userMessages>0).length,h=a[0];for(let N of a){let j=h?h.assistantTurns+h.userMessages:0;if(!h||N.assistantTurns+N.userMessages>j)h=N}let H=h?h.assistantTurns+h.userMessages:0;return{totalText:`${x.toLocaleString()} 轮`,totalFullText:`助手 ${s.toLocaleString()} 轮 · 用户 ${l.toLocaleString()} 问`,avgText:k>0?`${(x/k).toFixed(1)} 轮/天`:"0 轮/天",peakDate:h&&H>0?W(h.date):"—",peakValueText:h&&H>0?`${H.toLocaleString()} 轮`:"0 轮"}},[a,f]),D=_(()=>{if(M){let s=a.find((l)=>l.date===M);if(s)return s}for(let s=a.length-1;s>=0;s--){let l=a[s];if(l&&(l.totalTokens>0||l.activeDurationMs>0||l.runs>0))return l}return a[a.length-1]},[a,M]),z=_(()=>{if(f==="tokens")return Math.max(1,...a.map((s)=>s.totalTokens));if(f==="duration")return Math.max(1000,...a.map((s)=>s.activeDurationMs));return Math.max(1,...a.map((s)=>s.assistantTurns+s.userMessages))},[a,f]),d=_(()=>{if(a.length<=7)return a.map((x)=>x.date);let s=6,l=[];for(let x=0;x<s;x++){let k=Math.round(x*(a.length-1)/(s-1)),h=a[k];if(h)l.push(h.date)}return l},[a]);if(!w)return e(m,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:e("div",{className:c("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return e(m,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:n("div",{className:"p-4 space-y-4",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-dim tabular-nums",children:[n("span",{children:["汇总 ",e("span",{className:"text-ink",children:F.totalText})]}),n("span",{children:["日均 ",e("span",{className:"text-ink",children:F.avgText})]}),n("span",{children:["峰值 ",e("span",{className:"text-ink",children:F.peakValueText}),F.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",F.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-[11px] text-dim",children:[f==="tokens"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent/40"}),"缓存读"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"输入"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"输出"]})]}),f==="duration"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"工作调度"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"模型推理"]})]}),f==="activity"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"助手回复"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"用户提问"]})]})]})]}),n("div",{className:"relative h-44 w-full pt-1",children:[n("div",{className:"absolute inset-0 flex flex-col justify-between pointer-events-none pb-5 text-[10px] text-faint/60",children:[e("div",{className:"border-b border-line/40 w-full"}),e("div",{className:"border-b border-line/30 w-full"}),e("div",{className:"border-b border-line/40 w-full"})]}),n("section",{"aria-label":"每日趋势柱状序列",className:"relative h-full flex flex-col justify-between",onMouseLeave:()=>C(null),children:[e("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:a.map((s)=>{let l=s.totalTokens;if(f==="duration")l=s.activeDurationMs;else if(f==="activity")l=s.assistantTurns+s.userMessages;let x=l<=0,k=x?0:Math.max(3,Math.min(100,l/z*100)),h=D?.date===s.date;return n("button",{type:"button","aria-label":`${s.date} 统计数据`,className:"flex-1 h-full flex flex-col justify-end items-center group cursor-pointer relative min-w-0 bg-transparent p-0 border-0 focus:outline-hidden",onMouseEnter:()=>C(s.date),onFocus:()=>C(s.date),onClick:()=>C(s.date),children:[e("div",{className:u("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",h?"bg-accent/10":"group-hover:bg-raised/60")}),x?e("div",{className:"h-1 w-full max-w-[24px] rounded-full bg-raised group-hover:bg-dim/30"}):n("div",{className:"w-full max-w-[24px] rounded-t-xs overflow-hidden flex flex-col justify-end transition-all duration-150",style:{height:`${k}%`},children:[f==="tokens"&&n(p,{children:[s.outputTokens>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.outputTokens/s.totalTokens*100}%`}}),s.inputTokens+s.cacheWriteTokens>0&&e("div",{className:"bg-accent transition-all duration-200",style:{height:`${(s.inputTokens+s.cacheWriteTokens)/s.totalTokens*100}%`}}),s.cacheReadTokens>0&&e("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${s.cacheReadTokens/s.totalTokens*100}%`}})]}),f==="duration"&&n(p,{children:[s.generationMs>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,s.generationMs/Math.max(1,s.activeDurationMs)*100)}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),f==="activity"&&n(p,{children:[s.userMessages>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.userMessages/Math.max(1,s.assistantTurns+s.userMessages)*100}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),h&&e("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},s.date)})}),e("div",{className:u("flex items-center pt-1.5 text-[10px] text-faint font-mono tabular-nums",a.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:d.map((s)=>e("div",{className:u("whitespace-nowrap",a.length<=7&&"flex-1 text-center"),children:W(s)},s))})]})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line pt-3 font-mono text-xs tabular-nums",children:D?n(p,{children:[e("span",{className:"text-ink",children:Z(D.date)}),n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 text-dim",children:[n("span",{children:["Token ",e("span",{className:"text-ink",children:S(D.totalTokens)})]}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(D.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[D.assistantTurns+D.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[D.toolCalls," 次"]})]})]})]}):e("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function pe(t){let{cn:u,SettingGroup:g}=y(),{daily:m,hourly:c}=t,[a,f]=r(null),b=_(()=>{let l=new Map;for(let k of c)l.set(k.hour,k);let x=[];for(let k=0;k<24;k++){let h=l.get(k);if(h)x.push(h);else x.push({hour:k,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return x},[c]),M=_(()=>{let l=b[0];for(let x of b)if(!l||x.totalTokens>l.totalTokens)l=x;return l&&l.totalTokens>0?l:null},[b]),C=_(()=>b.reduce((l,x)=>l+x.totalTokens,0),[b]),w=_(()=>Math.max(1,...b.map((l)=>l.totalTokens)),[b]),F=_(()=>{if(C<=0)return 0;return b.filter((x)=>x.hour>=8&&x.hour<20).reduce((x,k)=>x+k.totalTokens,0)/C},[b,C]),D=_(()=>Math.max(1,...m.map((l)=>l.totalTokens)),[m]),z=_(()=>{let l=0,x=0;for(let k of m)if(k.totalTokens>0||k.activeDurationMs>0||k.runs>0){if(x++,x>l)l=x}else x=0;return l},[m]),d=_(()=>m.filter((l)=>l.totalTokens>0||l.activeDurationMs>0||l.runs>0).length,[m]),s=a!==null?b[a]:M;return n(g,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",B(F)]}),n("span",{children:["连续活跃 ",z," 天"]}),n("span",{children:["活跃 ",d,"/",m.length," 天"]})]}),children:[n("div",{className:"p-4 space-y-3",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[e("span",{className:"text-dim",children:"24 小时分布"}),s?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[a!==null?"时段 ":"高峰 ",String(s.hour).padStart(2,"0"),":00 -"," ",String((s.hour+1)%24).padStart(2,"0"),":00"]}),e("span",{className:"text-ink",children:S(s.totalTokens)}),s.activeDurationMs>0&&e("span",{children:R(s.activeDurationMs)})]}):e("span",{className:"text-faint",children:"暂无时段分布"})]}),n("section",{"aria-label":"24 小时活跃分布序列",className:"h-28 w-full flex flex-col justify-between pt-1",onMouseLeave:()=>f(null),children:[e("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:b.map((l)=>{let x=M?.hour===l.hour,k=a===l.hour,h=l.totalTokens>0?Math.max(6,l.totalTokens/w*100):0,H=`${String(l.hour).padStart(2,"0")}:00 - ${String((l.hour+1)%24).padStart(2,"0")}:00
1
+ import{v,o,_,i,r,p,e,n,y,Nt}from"./chunk-2s6fhjjc.js";var V="__chat__";function S(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function L(t){let u=Number.isFinite(t)?Math.max(0,t):0;return Math.round(u).toLocaleString("en-US")}function R(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let c=Math.floor(t/1000),a=Math.floor(c/60),f=c%60;return f>0?`${a}m ${f}s`:`${a}m`}if(t<259200000){let c=Math.floor(t/60000),a=Math.floor(c/60),f=c%60;return f>0?`${a}h ${f}m`:`${a}h`}let u=Math.floor(t/3600000),g=Math.floor(u/24),m=u%24;return m>0?`${g}d ${m}h`:`${g}d`}function ae(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let m=t/3600000;return`${m>=10?Math.round(m).toString():m.toFixed(1).replace(/\.0$/,"")}h`}let u=t/86400000;return`${u>=10?Math.round(u).toString():u.toFixed(1).replace(/\.0$/,"")}d`}function B(t,u=1){if(!Number.isFinite(t)||t<=0)return"0%";let g=10**-u/100;if(t<g)return`<${(g*100).toFixed(u)}%`;return`${(t*100).toFixed(u)}%`}function Q(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function W(t){let u=t.split("-"),g=u[1],m=u[2];if(g!==void 0&&m!==void 0)return`${g}/${m}`;return t}function Z(t){let u=t.split("-"),g=u[0],m=u[1],c=u[2];if(g===void 0||m===void 0||c===void 0)return t;let a=Number(g),f=Number(m)-1,b=Number(c),M=new Date(Date.UTC(a,f,b)),C=["周日","周一","周二","周三","周四","周五","周六"],w=M.getUTCDay(),F=C[w]??"";return`${t} ${F}`}function se(t,u=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let g=Math.max(0,u-t);if(g<60000)return"刚刚";if(g<3600000)return`${Math.max(1,Math.floor(g/60000))} 分钟前`;if(g<86400000)return`${Math.max(1,Math.floor(g/3600000))} 小时前`;if(g<2592000000)return`${Math.max(1,Math.floor(g/86400000))} 天前`;let m=new Date(t),c=m.getFullYear(),a=String(m.getMonth()+1).padStart(2,"0"),f=String(m.getDate()).padStart(2,"0");return`${c}-${a}-${f}`}function K(t){return e("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-raised",children:e("div",{className:"h-full rounded-full bg-accent transition-all duration-300",style:{width:`${t.percent}%`}})})}function Y(t){return e("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 font-mono text-[11px] text-dim tabular-nums",children:t.children})}function G(t){return e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:t.children})}function J(t){return n(G,{children:[n("span",{children:["输入 ",e("span",{className:"text-ink",children:S(t.stat.inputTokens)})]}),n("span",{children:["输出 ",e("span",{className:"text-ink",children:S(t.stat.outputTokens)})]}),n("span",{children:["缓存读 ",e("span",{className:"text-ink",children:S(t.stat.cacheReadTokens)}),t.cacheHitRate!==void 0&&n("span",{className:"text-faint",children:[" (",B(t.cacheHitRate),")"]})]})]})}function oe(t){let{projects:u,selectedProjectID:g,onSelectProject:m}=t,{style:c}=y();if(u.length===0)return e("div",{className:c("surface.empty"),children:"暂无项目统计数据"});return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=a.projectID??V,b=g===f,M=Math.max(a.tokenShare>0?1:0,a.tokenShare*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate",children:a.name}),e("span",{className:c("control.badge","font-mono truncate max-w-[240px]"),title:a.directory||"未绑定项目目录",children:a.directory||"独立会话"}),e("button",{type:"button",onClick:()=>m(b?null:f),className:"rounded px-1.5 py-0.5 text-[11px] text-accent hover:bg-accent/10 transition-colors cursor-pointer shrink-0",children:b?"取消筛选":"筛选"})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),n("span",{className:"text-[11px] text-faint",children:["(",B(a.tokenShare),")"]})]})]}),e(K,{percent:M}),n(Y,{children:[e(J,{stat:a,cacheHitRate:a.cacheHitRate}),n(G,{children:[n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.sessionCount.toLocaleString()})," 会话"]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:a.toolCalls.toLocaleString()})," 次"]})]})]})]},f)})})}function re(t){let{models:u}=t,{ModelIcon:g,style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无模型调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100);return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e(g,{modelID:c.model,className:"size-4 shrink-0"}),e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.shortName}),e("span",{className:m("control.badge","font-mono shrink-0"),children:c.provider})]}),n("div",{className:"flex items-baseline gap-2.5 font-mono tabular-nums shrink-0",children:[c.avgTps!==null&&n("span",{className:"text-[11px] text-dim",children:[c.avgTps.toFixed(1)," tok/s"]}),n("span",{className:"text-xs font-medium text-ink",title:L(c.totalTokens),children:[S(c.totalTokens)," ",n("span",{className:"text-[11px] font-normal text-faint",children:["(",B(c.share),")"]})]})]})]}),e(K,{percent:a}),n(Y,{children:[e(J,{stat:c,cacheHitRate:c.cacheHitRate}),n(G,{children:[n("span",{children:[e("span",{className:"text-ink",children:c.turns.toLocaleString()})," 轮",c.errors>0?n("span",{className:"text-danger",children:[" (",c.errors," 错)"]}):null]}),n("span",{children:["工具 ",e("span",{className:"text-ink",children:c.toolCalls.toLocaleString()})," 次"]}),c.generationMs>0&&n("span",{children:["推理 ",e("span",{className:"text-ink",children:ae(c.generationMs)})]})]})]})]},c.model)})})}function ie(t){let{tools:u}=t,{StatusChip:g,style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无工具调用数据"});return e("div",{className:"divide-y divide-line",children:u.map((c)=>{let a=Math.max(c.share>0?1:0,c.share*100),f=c.successRate>=0.95?"success":c.successRate>=0.8?"warning":"danger",b=Math.max(0,c.calls-c.errors),M=c.calls>0?Math.round(c.outputBytes/c.calls):0;return n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"font-mono text-sm font-medium text-ink truncate",children:c.name}),n(g,{tone:f,children:["成功率 ",B(c.successRate)]})]}),n("div",{className:"flex items-baseline gap-1.5 font-mono tabular-nums shrink-0",children:[n("span",{className:"text-xs font-medium text-ink",children:[c.calls.toLocaleString()," 次"]}),n("span",{className:"text-[11px] text-faint",children:["(",B(c.share),")"]})]})]}),e(K,{percent:a}),n(Y,{children:[n(G,{children:[n("span",{children:["成功 ",e("span",{className:"text-ink",children:b.toLocaleString()})," 次"]}),n("span",{children:["失败 ",e("span",{className:c.errors>0?"text-danger":"text-ink",children:c.errors.toLocaleString()})," 次"]})]}),n(G,{children:[n("span",{children:["累计输出 ",e("span",{className:"text-ink",children:Q(c.outputBytes)})]}),n("span",{children:["单次均值 ",e("span",{className:"text-ink",children:Q(M)})]})]})]})]},c.name)})})}function le(t){let{sessions:u,onOpenSession:g}=t,{style:m}=y();if(u.length===0)return e("div",{className:m("surface.empty"),children:"暂无高消耗会话记录"});let c=Math.max(1,...u.map((a)=>a.totalTokens));return e("div",{className:"divide-y divide-line",children:u.map((a)=>{let f=c>0?Math.max(1,a.totalTokens/c*100):0,b=a.model.split("/").pop()??a.model;return n("button",{type:"button",onClick:()=>g(a.id),className:"group block w-full p-4 text-left space-y-2.5 hover:bg-raised/40 transition-colors cursor-pointer",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"font-medium text-sm text-ink truncate group-hover:text-accent transition-colors",children:a.title.trim()||"新会话"}),e("span",{className:m("control.badge","font-mono truncate max-w-[140px] shrink-0"),title:a.projectName,children:a.projectName}),a.kind==="sub"&&e("span",{className:"rounded bg-accent/15 px-1.5 py-0.5 text-[10.5px] text-accent shrink-0",children:"子代理"}),a.archivedAt!==null&&e("span",{className:m("control.badge","shrink-0"),children:"已归档"})]}),n("div",{className:"flex items-center gap-1.5 font-mono tabular-nums shrink-0",children:[e("span",{className:"text-xs font-medium text-ink",title:L(a.totalTokens),children:S(a.totalTokens)}),e(Nt,{className:"size-3.5 text-faint group-hover:text-ink group-hover:translate-x-0.5 transition-all"})]})]}),e(K,{percent:f}),n(Y,{children:[e(J,{stat:a}),n(G,{children:[e("span",{className:"text-ink",children:b}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(a.activeDurationMs)})]}),n("span",{children:[e("span",{className:"text-ink",children:a.assistantTurns})," 轮"]}),e("span",{className:"text-faint",children:se(a.updated)})]})]})]},a.id)})})}var ce=[{value:"tokens",label:"Token 用量"},{value:"duration",label:"活跃耗时"},{value:"activity",label:"交互轮次"}];function ue(t){let{cn:u,Segmented:g,SettingGroup:m,style:c}=y(),{daily:a}=t,[f,b]=r("tokens"),[M,C]=r(null),w=_(()=>a.some((s)=>s.totalTokens>0||s.activeDurationMs>0||s.runs>0),[a]),F=_(()=>{if(a.length===0)return{totalText:"0",avgText:"0",peakDate:"—",peakValueText:"0"};if(f==="tokens"){let N=a.reduce((P,A)=>P+A.totalTokens,0),j=a.filter((P)=>P.totalTokens>0).length,T=a[0];for(let P of a)if(!T||P.totalTokens>T.totalTokens)T=P;return{totalText:S(N),totalFullText:L(N),avgText:j>0?S(Math.round(N/j)):"0",peakDate:T&&T.totalTokens>0?W(T.date):"—",peakValueText:T&&T.totalTokens>0?S(T.totalTokens):"0"}}if(f==="duration"){let N=a.reduce((P,A)=>P+A.activeDurationMs,0),j=a.filter((P)=>P.activeDurationMs>0).length,T=a[0];for(let P of a)if(!T||P.activeDurationMs>T.activeDurationMs)T=P;return{totalText:R(N),totalFullText:R(N),avgText:j>0?R(Math.round(N/j)):"0s",peakDate:T&&T.activeDurationMs>0?W(T.date):"—",peakValueText:T&&T.activeDurationMs>0?R(T.activeDurationMs):"0s"}}let s=a.reduce((N,j)=>N+j.assistantTurns,0),l=a.reduce((N,j)=>N+j.userMessages,0),x=s+l,k=a.filter((N)=>N.assistantTurns>0||N.userMessages>0).length,h=a[0];for(let N of a){let j=h?h.assistantTurns+h.userMessages:0;if(!h||N.assistantTurns+N.userMessages>j)h=N}let H=h?h.assistantTurns+h.userMessages:0;return{totalText:`${x.toLocaleString()} 轮`,totalFullText:`助手 ${s.toLocaleString()} 轮 · 用户 ${l.toLocaleString()} 问`,avgText:k>0?`${(x/k).toFixed(1)} 轮/天`:"0 轮/天",peakDate:h&&H>0?W(h.date):"—",peakValueText:h&&H>0?`${H.toLocaleString()} 轮`:"0 轮"}},[a,f]),D=_(()=>{if(M){let s=a.find((l)=>l.date===M);if(s)return s}for(let s=a.length-1;s>=0;s--){let l=a[s];if(l&&(l.totalTokens>0||l.activeDurationMs>0||l.runs>0))return l}return a[a.length-1]},[a,M]),z=_(()=>{if(f==="tokens")return Math.max(1,...a.map((s)=>s.totalTokens));if(f==="duration")return Math.max(1000,...a.map((s)=>s.activeDurationMs));return Math.max(1,...a.map((s)=>s.assistantTurns+s.userMessages))},[a,f]),d=_(()=>{if(a.length<=7)return a.map((x)=>x.date);let s=6,l=[];for(let x=0;x<s;x++){let k=Math.round(x*(a.length-1)/(s-1)),h=a[k];if(h)l.push(h.date)}return l},[a]);if(!w)return e(m,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:e("div",{className:c("surface.empty"),children:"当前时间范围内暂无活跃数据"})});return e(m,{title:"每日趋势",action:e(g,{value:f,onChange:(s)=>b(s),options:ce}),children:n("div",{className:"p-4 space-y-4",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-dim tabular-nums",children:[n("span",{children:["汇总 ",e("span",{className:"text-ink",children:F.totalText})]}),n("span",{children:["日均 ",e("span",{className:"text-ink",children:F.avgText})]}),n("span",{children:["峰值 ",e("span",{className:"text-ink",children:F.peakValueText}),F.peakDate!=="—"?n("span",{className:"text-faint",children:[" (",F.peakDate,")"]}):null]})]}),n("div",{className:"flex items-center gap-3 text-[11px] text-dim",children:[f==="tokens"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent/40"}),"缓存读"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"输入"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"输出"]})]}),f==="duration"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"工作调度"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"模型推理"]})]}),f==="activity"&&n(p,{children:[n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-accent"}),"助手回复"]}),n("span",{className:"inline-flex items-center gap-1.5",children:[e("span",{className:"size-2 rounded-full bg-success"}),"用户提问"]})]})]})]}),n("div",{className:"relative h-44 w-full pt-1",children:[n("div",{className:"absolute inset-0 flex flex-col justify-between pointer-events-none pb-5 text-[10px] text-faint/60",children:[e("div",{className:"border-b border-line/40 w-full"}),e("div",{className:"border-b border-line/30 w-full"}),e("div",{className:"border-b border-line/40 w-full"})]}),n("section",{"aria-label":"每日趋势柱状序列",className:"relative h-full flex flex-col justify-between",onMouseLeave:()=>C(null),children:[e("div",{className:"flex-1 flex items-end gap-1 sm:gap-1.5 pb-2",children:a.map((s)=>{let l=s.totalTokens;if(f==="duration")l=s.activeDurationMs;else if(f==="activity")l=s.assistantTurns+s.userMessages;let x=l<=0,k=x?0:Math.max(3,Math.min(100,l/z*100)),h=D?.date===s.date;return n("button",{type:"button","aria-label":`${s.date} 统计数据`,className:"flex-1 h-full flex flex-col justify-end items-center group cursor-pointer relative min-w-0 bg-transparent p-0 border-0 focus:outline-hidden",onMouseEnter:()=>C(s.date),onFocus:()=>C(s.date),onClick:()=>C(s.date),children:[e("div",{className:u("absolute inset-y-0 w-full rounded-xs transition-colors pointer-events-none",h?"bg-accent/10":"group-hover:bg-raised/60")}),x?e("div",{className:"h-1 w-full max-w-[24px] rounded-full bg-raised group-hover:bg-dim/30"}):n("div",{className:"w-full max-w-[24px] rounded-t-xs overflow-hidden flex flex-col justify-end transition-all duration-150",style:{height:`${k}%`},children:[f==="tokens"&&n(p,{children:[s.outputTokens>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.outputTokens/s.totalTokens*100}%`}}),s.inputTokens+s.cacheWriteTokens>0&&e("div",{className:"bg-accent transition-all duration-200",style:{height:`${(s.inputTokens+s.cacheWriteTokens)/s.totalTokens*100}%`}}),s.cacheReadTokens>0&&e("div",{className:"bg-accent/40 transition-all duration-200",style:{height:`${s.cacheReadTokens/s.totalTokens*100}%`}})]}),f==="duration"&&n(p,{children:[s.generationMs>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${Math.min(100,s.generationMs/Math.max(1,s.activeDurationMs)*100)}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]}),f==="activity"&&n(p,{children:[s.userMessages>0&&e("div",{className:"bg-success transition-all duration-200",style:{height:`${s.userMessages/Math.max(1,s.assistantTurns+s.userMessages)*100}%`}}),e("div",{className:"bg-accent flex-1 transition-all duration-200"})]})]}),h&&e("div",{className:"absolute -bottom-1 size-1 rounded-full bg-accent"})]},s.date)})}),e("div",{className:u("flex items-center pt-1.5 text-[10px] text-faint font-mono tabular-nums",a.length<=7?"gap-1 sm:gap-1.5":"justify-between"),children:d.map((s)=>e("div",{className:u("whitespace-nowrap",a.length<=7&&"flex-1 text-center"),children:W(s)},s))})]})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-line pt-3 font-mono text-xs tabular-nums",children:D?n(p,{children:[e("span",{className:"text-ink",children:Z(D.date)}),n("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1 text-dim",children:[n("span",{children:["Token ",e("span",{className:"text-ink",children:S(D.totalTokens)})]}),n("span",{children:["耗时 ",e("span",{className:"text-ink",children:R(D.activeDurationMs)})]}),n("span",{children:["交互 ",n("span",{className:"text-ink",children:[D.assistantTurns+D.userMessages," 轮"]})]}),n("span",{children:["工具 ",n("span",{className:"text-ink",children:[D.toolCalls," 次"]})]})]})]}):e("span",{className:"font-sans text-faint",children:"悬停柱状图查看单日明细"})})]})})}function pe(t){let{cn:u,SettingGroup:g}=y(),{daily:m,hourly:c}=t,[a,f]=r(null),b=_(()=>{let l=new Map;for(let k of c)l.set(k.hour,k);let x=[];for(let k=0;k<24;k++){let h=l.get(k);if(h)x.push(h);else x.push({hour:k,totalTokens:0,activeDurationMs:0,userMessages:0,assistantTurns:0,runs:0})}return x},[c]),M=_(()=>{let l=b[0];for(let x of b)if(!l||x.totalTokens>l.totalTokens)l=x;return l&&l.totalTokens>0?l:null},[b]),C=_(()=>b.reduce((l,x)=>l+x.totalTokens,0),[b]),w=_(()=>Math.max(1,...b.map((l)=>l.totalTokens)),[b]),F=_(()=>{if(C<=0)return 0;return b.filter((x)=>x.hour>=8&&x.hour<20).reduce((x,k)=>x+k.totalTokens,0)/C},[b,C]),D=_(()=>Math.max(1,...m.map((l)=>l.totalTokens)),[m]),z=_(()=>{let l=0,x=0;for(let k of m)if(k.totalTokens>0||k.activeDurationMs>0||k.runs>0){if(x++,x>l)l=x}else x=0;return l},[m]),d=_(()=>m.filter((l)=>l.totalTokens>0||l.activeDurationMs>0||l.runs>0).length,[m]),s=a!==null?b[a]:M;return n(g,{title:"活跃时段与热力",action:n("div",{className:"flex items-center gap-3 font-mono text-xs text-faint tabular-nums",children:[n("span",{children:["日间占比 ",B(F)]}),n("span",{children:["连续活跃 ",z," 天"]}),n("span",{children:["活跃 ",d,"/",m.length," 天"]})]}),children:[n("div",{className:"p-4 space-y-3",children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[e("span",{className:"text-dim",children:"24 小时分布"}),s?n("div",{className:"flex items-center gap-3 font-mono text-dim tabular-nums",children:[n("span",{className:"text-ink",children:[a!==null?"时段 ":"高峰 ",String(s.hour).padStart(2,"0"),":00 -"," ",String((s.hour+1)%24).padStart(2,"0"),":00"]}),e("span",{className:"text-ink",children:S(s.totalTokens)}),s.activeDurationMs>0&&e("span",{children:R(s.activeDurationMs)})]}):e("span",{className:"text-faint",children:"暂无时段分布"})]}),n("section",{"aria-label":"24 小时活跃分布序列",className:"h-28 w-full flex flex-col justify-between pt-1",onMouseLeave:()=>f(null),children:[e("div",{className:"flex-1 flex items-end gap-1.5 pb-1.5",children:b.map((l)=>{let x=M?.hour===l.hour,k=a===l.hour,h=l.totalTokens>0?Math.max(6,l.totalTokens/w*100):0,H=`${String(l.hour).padStart(2,"0")}:00 - ${String((l.hour+1)%24).padStart(2,"0")}:00
2
2
  消耗: ${L(l.totalTokens)} Token
3
3
  耗时: ${R(l.activeDurationMs)}
4
4
  助手轮次: ${l.assistantTurns} 轮`;return e("button",{type:"button","aria-label":`${String(l.hour).padStart(2,"0")}:00 时段统计`,className:"flex-1 h-full flex flex-col justify-end items-center group relative cursor-pointer bg-transparent p-0 border-0 focus:outline-hidden",title:H,onMouseEnter:()=>f(l.hour),onFocus:()=>f(l.hour),onClick:()=>f(l.hour),children:h>0?e("div",{className:u("w-full max-w-[20px] rounded-t-xs transition-all duration-200",x||k?"bg-accent":"bg-accent/55 group-hover:bg-accent"),style:{height:`${h}%`}}):e("div",{className:"h-1 w-full max-w-[20px] rounded-full bg-raised group-hover:bg-dim/30"})},l.hour)})}),n("div",{className:"flex justify-between items-center text-[10px] text-faint font-mono pt-1.5 border-t border-line/40",children:[e("span",{children:"00:00"}),e("span",{children:"04:00"}),e("span",{children:"08:00"}),e("span",{children:"12:00"}),e("span",{children:"16:00"}),e("span",{children:"20:00"}),e("span",{children:"23:00"})]})]})]}),n("div",{className:"p-4 space-y-2.5",children:[n("div",{className:"text-xs text-dim",children:["自然日热力 (",m.length," 天)"]}),e("div",{className:"flex flex-wrap items-center gap-1.5",children:m.map((l)=>{let x="bg-raised";if(l.totalTokens>0){let h=l.totalTokens/D;if(h<=0.33)x="bg-accent/30";else if(h<=0.66)x="bg-accent/60";else x="bg-accent"}let k=`${Z(l.date)}
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{xs}from"./chunk-et1nm6h1.js";export{xs as createWardleyServices};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{t,a,at,j,Kn,k,A,R,I,L,D,P,N,u,h,F,bt,De,Te,Ee,Lt,ze,Ue}from"./chunk-dbv8qpen.js";import{In}from"./chunk-p6ma361e.js";import{Ct}from"./chunk-5nbmnchg.js";import{Fe}from"./chunk-2dykyq1n.js";import{Le}from"./chunk-acv6gk2b.js";var Je=function(){var s=t(function(K,b,m,g){for(m=m||{},g=K.length;g--;m[K[g]]=b);return m},"o"),r=[1,18],n=[1,19],l=[1,20],o=[1,41],p=[1,26],f=[1,42],d=[1,24],E=[1,25],T=[1,32],M=[1,33],J=[1,34],B=[1,45],Ne=[1,35],xe=[1,36],ve=[1,37],Ie=[1,38],Oe=[1,27],we=[1,28],Me=[1,29],Pe=[1,30],Ve=[1,31],_=[1,44],S=[1,46],x=[1,43],v=[1,47],Re=[1,9],C=[1,8,9],ce=[1,58],he=[1,59],de=[1,60],pe=[1,61],Ae=[1,62],Ge=[1,63],Ye=[1,64],V=[1,8,9,41],Ze=[1,77],H=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],be=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],fe=[13,60,86,100,102,103],Z=[13,60,73,74,86,100,102,103],$e=[13,60,68,69,70,71,72,86,100,102,103],ke=[1,103],ee=[1,121],te=[1,117],se=[1,113],ie=[1,119],ae=[1,114],re=[1,115],ne=[1,116],le=[1,118],ue=[1,120],et=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],me=[12,39],Ke=[1,8,9,39,41,44,46],ge=[1,8,9,22],st=[1,153],it=[1,8,9,61],z=[1,8,9,22,50,60,61,82,86,87,88,89,90],We={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:t(function(b,m,g,c,y,e,oe){var i=e.length-1;switch(y){case 8:this.$=e[i-1];break;case 9:case 10:case 13:case 15:this.$=e[i];break;case 11:case 14:this.$=e[i-2]+"."+e[i];break;case 12:case 16:this.$=e[i-1]+e[i];break;case 17:case 18:this.$=e[i-1]+"~"+e[i]+"~";break;case 19:c.addRelation(e[i]);break;case 20:e[i-1].title=c.cleanupLabel(e[i]),c.addRelation(e[i-1]);break;case 31:this.$=e[i].trim(),c.setAccTitle(this.$);break;case 32:case 33:this.$=e[i].trim(),c.setAccDescription(this.$);break;case 34:c.addClassesToNamespace(e[i-3],e[i-1][0],e[i-1][1]),c.popNamespace();break;case 35:c.addClassesToNamespace(e[i-4],e[i-1][0],e[i-1][1]),c.popNamespace();break;case 36:this.$=c.addNamespace(e[i]);break;case 37:this.$=c.addNamespace(e[i-1],e[i]);break;case 38:this.$=[[e[i]],[]];break;case 39:this.$=[[e[i-1]],[]];break;case 40:e[i][0].unshift(e[i-2]),this.$=e[i];break;case 41:this.$=[[],[e[i]]];break;case 42:this.$=[[],[e[i-1]]];break;case 43:e[i][1].unshift(e[i-2]),this.$=e[i];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[i];break;case 48:c.setCssClass(e[i-2],e[i]);break;case 49:c.addMembers(e[i-3],e[i-1]);break;case 51:c.setCssClass(e[i-5],e[i-3]),c.addMembers(e[i-5],e[i-1]);break;case 52:c.addAnnotation(e[i-3],e[i-1]);break;case 53:c.addAnnotation(e[i-6],e[i-4]),c.addMembers(e[i-6],e[i-1]);break;case 54:c.addAnnotation(e[i-5],e[i-3]);break;case 55:this.$=e[i],c.addClass(e[i]);break;case 56:this.$=e[i-1],c.addClass(e[i-1]),c.setClassLabel(e[i-1],e[i]);break;case 60:c.addAnnotation(e[i],e[i-2]);break;case 61:case 74:this.$=[e[i]];break;case 62:e[i].push(e[i-1]),this.$=e[i];break;case 63:break;case 64:c.addMember(e[i-1],c.cleanupLabel(e[i]));break;case 65:break;case 66:break;case 67:this.$={id1:e[i-2],id2:e[i],relation:e[i-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[i-3],id2:e[i],relation:e[i-1],relationTitle1:e[i-2],relationTitle2:"none"};break;case 69:this.$={id1:e[i-3],id2:e[i],relation:e[i-2],relationTitle1:"none",relationTitle2:e[i-1]};break;case 70:this.$={id1:e[i-4],id2:e[i],relation:e[i-2],relationTitle1:e[i-3],relationTitle2:e[i-1]};break;case 71:this.$=c.addNote(e[i],e[i-1]);break;case 72:this.$=c.addNote(e[i]);break;case 73:this.$=e[i-2],c.defineClass(e[i-1],e[i]);break;case 75:this.$=e[i-2].concat([e[i]]);break;case 76:c.setDirection("TB");break;case 77:c.setDirection("BT");break;case 78:c.setDirection("RL");break;case 79:c.setDirection("LR");break;case 80:this.$={type1:e[i-2],type2:e[i],lineType:e[i-1]};break;case 81:this.$={type1:"none",type2:e[i],lineType:e[i-1]};break;case 82:this.$={type1:e[i-1],type2:"none",lineType:e[i]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[i]};break;case 84:this.$=c.relationType.AGGREGATION;break;case 85:this.$=c.relationType.EXTENSION;break;case 86:this.$=c.relationType.COMPOSITION;break;case 87:this.$=c.relationType.DEPENDENCY;break;case 88:this.$=c.relationType.LOLLIPOP;break;case 89:this.$=c.lineType.LINE;break;case 90:this.$=c.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[i-2],c.setClickEvent(e[i-1],e[i]);break;case 92:case 98:this.$=e[i-3],c.setClickEvent(e[i-2],e[i-1]),c.setTooltip(e[i-2],e[i]);break;case 93:this.$=e[i-2],c.setLink(e[i-1],e[i]);break;case 94:this.$=e[i-3],c.setLink(e[i-2],e[i-1],e[i]);break;case 95:this.$=e[i-3],c.setLink(e[i-2],e[i-1]),c.setTooltip(e[i-2],e[i]);break;case 96:this.$=e[i-4],c.setLink(e[i-3],e[i-2],e[i]),c.setTooltip(e[i-3],e[i-1]);break;case 99:this.$=e[i-3],c.setClickEvent(e[i-2],e[i-1],e[i]);break;case 100:this.$=e[i-4],c.setClickEvent(e[i-3],e[i-2],e[i-1]),c.setTooltip(e[i-3],e[i]);break;case 101:this.$=e[i-3],c.setLink(e[i-2],e[i]);break;case 102:this.$=e[i-4],c.setLink(e[i-3],e[i-1],e[i]);break;case 103:this.$=e[i-4],c.setLink(e[i-3],e[i-1]),c.setTooltip(e[i-3],e[i]);break;case 104:this.$=e[i-5],c.setLink(e[i-4],e[i-2],e[i]),c.setTooltip(e[i-4],e[i-1]);break;case 105:this.$=e[i-2],c.setCssStyle(e[i-1],e[i]);break;case 106:c.setCssClass(e[i-1],e[i]);break;case 107:this.$=[e[i]];break;case 108:e[i-2].push(e[i]),this.$=e[i-2];break;case 110:this.$=e[i-1]+e[i];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:o,43:23,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Re,[2,5],{8:[1,48]}),{8:[1,49]},s(C,[2,19],{22:[1,50]}),s(C,[2,21]),s(C,[2,22]),s(C,[2,23]),s(C,[2,24]),s(C,[2,25]),s(C,[2,26]),s(C,[2,27]),s(C,[2,28]),s(C,[2,29]),s(C,[2,30]),{34:[1,51]},{36:[1,52]},s(C,[2,33]),s(C,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ce,69:he,70:de,71:pe,72:Ae,73:Ge,74:Ye}),{39:[1,65]},s(V,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(C,[2,65]),s(C,[2,66]),{16:69,60:B,86:_,100:S,102:x},{16:39,17:40,19:70,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:71,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:72,60:B,86:_,100:S,102:x,103:v},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:B,86:_,100:S,102:x,103:v},{13:Ze,55:76},{58:78,60:[1,79]},s(C,[2,76]),s(C,[2,77]),s(C,[2,78]),s(C,[2,79]),s(H,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:B,86:_,100:S,102:x,103:v}),s(H,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:87,60:B,86:_,100:S,102:x,103:v},s(be,[2,133]),s(be,[2,134]),s(be,[2,135]),s(be,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Re,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:n,37:l,42:o,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:o,43:23,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v},s(C,[2,20]),s(C,[2,31]),s(C,[2,32]),{13:[1,91],16:39,17:40,19:90,60:B,86:_,100:S,102:x,103:v},{53:92,66:56,67:57,68:ce,69:he,70:de,71:pe,72:Ae,73:Ge,74:Ye},s(C,[2,64]),{67:93,73:Ge,74:Ye},s(fe,[2,83],{66:94,68:ce,69:he,70:de,71:pe,72:Ae}),s(Z,[2,84]),s(Z,[2,85]),s(Z,[2,86]),s(Z,[2,87]),s(Z,[2,88]),s($e,[2,89]),s($e,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:o,43:23,48:f,54:T,56:M},{16:100,60:B,86:_,100:S,102:x},{41:[1,102],45:101,51:ke},{16:104,60:B,86:_,100:S,102:x},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ee,50:te,59:110,60:se,82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},{60:[1,122]},{13:Ze,55:123},s(V,[2,72]),s(V,[2,138]),{22:ee,50:te,59:124,60:se,61:[1,125],82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(et,[2,74]),{16:39,17:40,19:126,60:B,86:_,100:S,102:x,103:v},s(H,[2,16]),s(H,[2,17]),s(H,[2,18]),{11:127,12:tt,39:[2,36]},s(me,[2,9],{16:85,17:86,15:130,18:[1,129],60:B,86:_,100:S,102:x,103:v}),s(me,[2,10]),s(Ke,[2,55],{11:131,12:tt}),s(Re,[2,7]),{9:[1,132]},s(ge,[2,67]),{16:39,17:40,19:133,60:B,86:_,100:S,102:x,103:v},{13:[1,135],16:39,17:40,19:134,60:B,86:_,100:S,102:x,103:v},s(fe,[2,82],{66:136,68:ce,69:he,70:de,71:pe,72:Ae}),s(fe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:o,43:23,48:f,54:T,56:M},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(V,[2,48],{39:[1,142]}),{41:[1,143]},s(V,[2,50]),{41:[2,61],45:144,51:ke},{47:[1,145]},{16:39,17:40,19:146,60:B,86:_,100:S,102:x,103:v},s(C,[2,91],{13:[1,147]}),s(C,[2,93],{13:[1,149],77:[1,148]}),s(C,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(C,[2,105],{61:st}),s(it,[2,107],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(z,[2,109]),s(z,[2,111]),s(z,[2,112]),s(z,[2,113]),s(z,[2,114]),s(z,[2,115]),s(z,[2,116]),s(z,[2,117]),s(z,[2,118]),s(z,[2,119]),s(C,[2,106]),s(V,[2,71]),s(C,[2,73],{61:st}),{60:[1,155]},s(H,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:B,86:_,100:S,102:x,103:v},s(me,[2,12]),s(Ke,[2,56]),{1:[2,4]},s(ge,[2,69]),s(ge,[2,68]),{16:39,17:40,19:158,60:B,86:_,100:S,102:x,103:v},s(fe,[2,80]),s(V,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:o,43:23,48:f,54:T,56:M},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:o,43:23,48:f,54:T,56:M},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:o,43:23,48:f,54:T,56:M},{45:163,51:ke},s(V,[2,49]),{41:[2,62]},s(V,[2,52],{39:[1,164]}),s(C,[2,60]),s(C,[2,92]),s(C,[2,94]),s(C,[2,95],{77:[1,165]}),s(C,[2,98]),s(C,[2,99],{13:[1,166]}),s(C,[2,101],{13:[1,168],77:[1,167]}),{22:ee,50:te,60:se,82:ie,84:169,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(z,[2,110]),s(et,[2,75]),{14:[1,170]},s(me,[2,11]),s(ge,[2,70]),s(V,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ke},s(C,[2,96]),s(C,[2,100]),s(C,[2,102]),s(C,[2,103],{77:[1,174]}),s(it,[2,108],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(Ke,[2,8]),s(V,[2,51]),{41:[1,175]},s(V,[2,54]),s(C,[2,104]),s(V,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:t(function(b,m){if(m.recoverable)this.trace(b);else{var g=Error(b);throw g.hash=m,g}},"parseError"),parse:t(function(b){var m=this,g=[0],c=[],y=[null],e=[],oe=this.table,i="",ye=0,rt=0,nt=0,At=2,lt=1,ft=e.slice.call(arguments,1),O=Object.create(this.lexer),W={yy:{}};for(var Qe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Qe))W.yy[Qe]=this.yy[Qe];if(O.setInput(b,W.yy),W.yy.lexer=O,W.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var je=O.yylloc;e.push(je);var kt=O.options&&O.options.ranges;if(typeof W.yy.parseError==="function")this.parseError=W.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(U){g.length=g.length-2*U,y.length=y.length-U,e.length=e.length-U}t(mt,"popStack");function ut(){var U=c.pop()||O.lex()||lt;if(typeof U!=="number"){if(U instanceof Array)c=U,U=c.pop();U=m.symbols_[U]||U}return U}t(ut,"lex");var w,Xe,Q,G,Nt,He,q={},Be,Y,ot,_e;while(!0){if(Q=g[g.length-1],this.defaultActions[Q])G=this.defaultActions[Q];else{if(w===null||typeof w>"u")w=ut();G=oe[Q]&&oe[Q][w]}if(typeof G>"u"||!G.length||!G[0]){var qe="";_e=[];for(Be in oe[Q])if(this.terminals_[Be]&&Be>At)_e.push("'"+this.terminals_[Be]+"'");if(O.showPosition)qe="Parse error on line "+(ye+1)+`:
1
+ import{t,a,at,j,Kn,k,A,R,I,L,D,P,N,u,h,F,bt,De,Te,Ee,Lt,ze,Ue}from"./chunk-xp2zpmpp.js";import{In}from"./chunk-vb2feptd.js";import{Ct}from"./chunk-w9adyaze.js";import{Fe}from"./chunk-m34et8g4.js";import{Le}from"./chunk-gt62acsh.js";var Je=function(){var s=t(function(K,b,m,g){for(m=m||{},g=K.length;g--;m[K[g]]=b);return m},"o"),r=[1,18],n=[1,19],l=[1,20],o=[1,41],p=[1,26],f=[1,42],d=[1,24],E=[1,25],T=[1,32],M=[1,33],J=[1,34],B=[1,45],Ne=[1,35],xe=[1,36],ve=[1,37],Ie=[1,38],Oe=[1,27],we=[1,28],Me=[1,29],Pe=[1,30],Ve=[1,31],_=[1,44],S=[1,46],x=[1,43],v=[1,47],Re=[1,9],C=[1,8,9],ce=[1,58],he=[1,59],de=[1,60],pe=[1,61],Ae=[1,62],Ge=[1,63],Ye=[1,64],V=[1,8,9,41],Ze=[1,77],H=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],be=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],fe=[13,60,86,100,102,103],Z=[13,60,73,74,86,100,102,103],$e=[13,60,68,69,70,71,72,86,100,102,103],ke=[1,103],ee=[1,121],te=[1,117],se=[1,113],ie=[1,119],ae=[1,114],re=[1,115],ne=[1,116],le=[1,118],ue=[1,120],et=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],me=[12,39],Ke=[1,8,9,39,41,44,46],ge=[1,8,9,22],st=[1,153],it=[1,8,9,61],z=[1,8,9,22,50,60,61,82,86,87,88,89,90],We={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:t(function(b,m,g,c,y,e,oe){var i=e.length-1;switch(y){case 8:this.$=e[i-1];break;case 9:case 10:case 13:case 15:this.$=e[i];break;case 11:case 14:this.$=e[i-2]+"."+e[i];break;case 12:case 16:this.$=e[i-1]+e[i];break;case 17:case 18:this.$=e[i-1]+"~"+e[i]+"~";break;case 19:c.addRelation(e[i]);break;case 20:e[i-1].title=c.cleanupLabel(e[i]),c.addRelation(e[i-1]);break;case 31:this.$=e[i].trim(),c.setAccTitle(this.$);break;case 32:case 33:this.$=e[i].trim(),c.setAccDescription(this.$);break;case 34:c.addClassesToNamespace(e[i-3],e[i-1][0],e[i-1][1]),c.popNamespace();break;case 35:c.addClassesToNamespace(e[i-4],e[i-1][0],e[i-1][1]),c.popNamespace();break;case 36:this.$=c.addNamespace(e[i]);break;case 37:this.$=c.addNamespace(e[i-1],e[i]);break;case 38:this.$=[[e[i]],[]];break;case 39:this.$=[[e[i-1]],[]];break;case 40:e[i][0].unshift(e[i-2]),this.$=e[i];break;case 41:this.$=[[],[e[i]]];break;case 42:this.$=[[],[e[i-1]]];break;case 43:e[i][1].unshift(e[i-2]),this.$=e[i];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[i];break;case 48:c.setCssClass(e[i-2],e[i]);break;case 49:c.addMembers(e[i-3],e[i-1]);break;case 51:c.setCssClass(e[i-5],e[i-3]),c.addMembers(e[i-5],e[i-1]);break;case 52:c.addAnnotation(e[i-3],e[i-1]);break;case 53:c.addAnnotation(e[i-6],e[i-4]),c.addMembers(e[i-6],e[i-1]);break;case 54:c.addAnnotation(e[i-5],e[i-3]);break;case 55:this.$=e[i],c.addClass(e[i]);break;case 56:this.$=e[i-1],c.addClass(e[i-1]),c.setClassLabel(e[i-1],e[i]);break;case 60:c.addAnnotation(e[i],e[i-2]);break;case 61:case 74:this.$=[e[i]];break;case 62:e[i].push(e[i-1]),this.$=e[i];break;case 63:break;case 64:c.addMember(e[i-1],c.cleanupLabel(e[i]));break;case 65:break;case 66:break;case 67:this.$={id1:e[i-2],id2:e[i],relation:e[i-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[i-3],id2:e[i],relation:e[i-1],relationTitle1:e[i-2],relationTitle2:"none"};break;case 69:this.$={id1:e[i-3],id2:e[i],relation:e[i-2],relationTitle1:"none",relationTitle2:e[i-1]};break;case 70:this.$={id1:e[i-4],id2:e[i],relation:e[i-2],relationTitle1:e[i-3],relationTitle2:e[i-1]};break;case 71:this.$=c.addNote(e[i],e[i-1]);break;case 72:this.$=c.addNote(e[i]);break;case 73:this.$=e[i-2],c.defineClass(e[i-1],e[i]);break;case 75:this.$=e[i-2].concat([e[i]]);break;case 76:c.setDirection("TB");break;case 77:c.setDirection("BT");break;case 78:c.setDirection("RL");break;case 79:c.setDirection("LR");break;case 80:this.$={type1:e[i-2],type2:e[i],lineType:e[i-1]};break;case 81:this.$={type1:"none",type2:e[i],lineType:e[i-1]};break;case 82:this.$={type1:e[i-1],type2:"none",lineType:e[i]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[i]};break;case 84:this.$=c.relationType.AGGREGATION;break;case 85:this.$=c.relationType.EXTENSION;break;case 86:this.$=c.relationType.COMPOSITION;break;case 87:this.$=c.relationType.DEPENDENCY;break;case 88:this.$=c.relationType.LOLLIPOP;break;case 89:this.$=c.lineType.LINE;break;case 90:this.$=c.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[i-2],c.setClickEvent(e[i-1],e[i]);break;case 92:case 98:this.$=e[i-3],c.setClickEvent(e[i-2],e[i-1]),c.setTooltip(e[i-2],e[i]);break;case 93:this.$=e[i-2],c.setLink(e[i-1],e[i]);break;case 94:this.$=e[i-3],c.setLink(e[i-2],e[i-1],e[i]);break;case 95:this.$=e[i-3],c.setLink(e[i-2],e[i-1]),c.setTooltip(e[i-2],e[i]);break;case 96:this.$=e[i-4],c.setLink(e[i-3],e[i-2],e[i]),c.setTooltip(e[i-3],e[i-1]);break;case 99:this.$=e[i-3],c.setClickEvent(e[i-2],e[i-1],e[i]);break;case 100:this.$=e[i-4],c.setClickEvent(e[i-3],e[i-2],e[i-1]),c.setTooltip(e[i-3],e[i]);break;case 101:this.$=e[i-3],c.setLink(e[i-2],e[i]);break;case 102:this.$=e[i-4],c.setLink(e[i-3],e[i-1],e[i]);break;case 103:this.$=e[i-4],c.setLink(e[i-3],e[i-1]),c.setTooltip(e[i-3],e[i]);break;case 104:this.$=e[i-5],c.setLink(e[i-4],e[i-2],e[i]),c.setTooltip(e[i-4],e[i-1]);break;case 105:this.$=e[i-2],c.setCssStyle(e[i-1],e[i]);break;case 106:c.setCssClass(e[i-1],e[i]);break;case 107:this.$=[e[i]];break;case 108:e[i-2].push(e[i]),this.$=e[i-2];break;case 110:this.$=e[i-1]+e[i];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:o,43:23,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Re,[2,5],{8:[1,48]}),{8:[1,49]},s(C,[2,19],{22:[1,50]}),s(C,[2,21]),s(C,[2,22]),s(C,[2,23]),s(C,[2,24]),s(C,[2,25]),s(C,[2,26]),s(C,[2,27]),s(C,[2,28]),s(C,[2,29]),s(C,[2,30]),{34:[1,51]},{36:[1,52]},s(C,[2,33]),s(C,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ce,69:he,70:de,71:pe,72:Ae,73:Ge,74:Ye}),{39:[1,65]},s(V,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(C,[2,65]),s(C,[2,66]),{16:69,60:B,86:_,100:S,102:x},{16:39,17:40,19:70,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:71,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:72,60:B,86:_,100:S,102:x,103:v},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:B,86:_,100:S,102:x,103:v},{13:Ze,55:76},{58:78,60:[1,79]},s(C,[2,76]),s(C,[2,77]),s(C,[2,78]),s(C,[2,79]),s(H,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:B,86:_,100:S,102:x,103:v}),s(H,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:B,86:_,100:S,102:x,103:v},{16:39,17:40,19:87,60:B,86:_,100:S,102:x,103:v},s(be,[2,133]),s(be,[2,134]),s(be,[2,135]),s(be,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Re,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:n,37:l,42:o,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:l,38:22,42:o,43:23,46:p,48:f,51:d,52:E,54:T,56:M,57:J,60:B,62:Ne,63:xe,64:ve,65:Ie,75:Oe,76:we,78:Me,82:Pe,83:Ve,86:_,100:S,102:x,103:v},s(C,[2,20]),s(C,[2,31]),s(C,[2,32]),{13:[1,91],16:39,17:40,19:90,60:B,86:_,100:S,102:x,103:v},{53:92,66:56,67:57,68:ce,69:he,70:de,71:pe,72:Ae,73:Ge,74:Ye},s(C,[2,64]),{67:93,73:Ge,74:Ye},s(fe,[2,83],{66:94,68:ce,69:he,70:de,71:pe,72:Ae}),s(Z,[2,84]),s(Z,[2,85]),s(Z,[2,86]),s(Z,[2,87]),s(Z,[2,88]),s($e,[2,89]),s($e,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:o,43:23,48:f,54:T,56:M},{16:100,60:B,86:_,100:S,102:x},{41:[1,102],45:101,51:ke},{16:104,60:B,86:_,100:S,102:x},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ee,50:te,59:110,60:se,82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},{60:[1,122]},{13:Ze,55:123},s(V,[2,72]),s(V,[2,138]),{22:ee,50:te,59:124,60:se,61:[1,125],82:ie,84:111,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(et,[2,74]),{16:39,17:40,19:126,60:B,86:_,100:S,102:x,103:v},s(H,[2,16]),s(H,[2,17]),s(H,[2,18]),{11:127,12:tt,39:[2,36]},s(me,[2,9],{16:85,17:86,15:130,18:[1,129],60:B,86:_,100:S,102:x,103:v}),s(me,[2,10]),s(Ke,[2,55],{11:131,12:tt}),s(Re,[2,7]),{9:[1,132]},s(ge,[2,67]),{16:39,17:40,19:133,60:B,86:_,100:S,102:x,103:v},{13:[1,135],16:39,17:40,19:134,60:B,86:_,100:S,102:x,103:v},s(fe,[2,82],{66:136,68:ce,69:he,70:de,71:pe,72:Ae}),s(fe,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:o,43:23,48:f,54:T,56:M},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(V,[2,48],{39:[1,142]}),{41:[1,143]},s(V,[2,50]),{41:[2,61],45:144,51:ke},{47:[1,145]},{16:39,17:40,19:146,60:B,86:_,100:S,102:x,103:v},s(C,[2,91],{13:[1,147]}),s(C,[2,93],{13:[1,149],77:[1,148]}),s(C,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(C,[2,105],{61:st}),s(it,[2,107],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(z,[2,109]),s(z,[2,111]),s(z,[2,112]),s(z,[2,113]),s(z,[2,114]),s(z,[2,115]),s(z,[2,116]),s(z,[2,117]),s(z,[2,118]),s(z,[2,119]),s(C,[2,106]),s(V,[2,71]),s(C,[2,73],{61:st}),{60:[1,155]},s(H,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:B,86:_,100:S,102:x,103:v},s(me,[2,12]),s(Ke,[2,56]),{1:[2,4]},s(ge,[2,69]),s(ge,[2,68]),{16:39,17:40,19:158,60:B,86:_,100:S,102:x,103:v},s(fe,[2,80]),s(V,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:o,43:23,48:f,54:T,56:M},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:o,43:23,48:f,54:T,56:M},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:o,43:23,48:f,54:T,56:M},{45:163,51:ke},s(V,[2,49]),{41:[2,62]},s(V,[2,52],{39:[1,164]}),s(C,[2,60]),s(C,[2,92]),s(C,[2,94]),s(C,[2,95],{77:[1,165]}),s(C,[2,98]),s(C,[2,99],{13:[1,166]}),s(C,[2,101],{13:[1,168],77:[1,167]}),{22:ee,50:te,60:se,82:ie,84:169,85:112,86:ae,87:re,88:ne,89:le,90:ue},s(z,[2,110]),s(et,[2,75]),{14:[1,170]},s(me,[2,11]),s(ge,[2,70]),s(V,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ke},s(C,[2,96]),s(C,[2,100]),s(C,[2,102]),s(C,[2,103],{77:[1,174]}),s(it,[2,108],{85:154,22:ee,50:te,60:se,82:ie,86:ae,87:re,88:ne,89:le,90:ue}),s(Ke,[2,8]),s(V,[2,51]),{41:[1,175]},s(V,[2,54]),s(C,[2,104]),s(V,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:t(function(b,m){if(m.recoverable)this.trace(b);else{var g=Error(b);throw g.hash=m,g}},"parseError"),parse:t(function(b){var m=this,g=[0],c=[],y=[null],e=[],oe=this.table,i="",ye=0,rt=0,nt=0,At=2,lt=1,ft=e.slice.call(arguments,1),O=Object.create(this.lexer),W={yy:{}};for(var Qe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Qe))W.yy[Qe]=this.yy[Qe];if(O.setInput(b,W.yy),W.yy.lexer=O,W.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var je=O.yylloc;e.push(je);var kt=O.options&&O.options.ranges;if(typeof W.yy.parseError==="function")this.parseError=W.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(U){g.length=g.length-2*U,y.length=y.length-U,e.length=e.length-U}t(mt,"popStack");function ut(){var U=c.pop()||O.lex()||lt;if(typeof U!=="number"){if(U instanceof Array)c=U,U=c.pop();U=m.symbols_[U]||U}return U}t(ut,"lex");var w,Xe,Q,G,Nt,He,q={},Be,Y,ot,_e;while(!0){if(Q=g[g.length-1],this.defaultActions[Q])G=this.defaultActions[Q];else{if(w===null||typeof w>"u")w=ut();G=oe[Q]&&oe[Q][w]}if(typeof G>"u"||!G.length||!G[0]){var qe="";_e=[];for(Be in oe[Q])if(this.terminals_[Be]&&Be>At)_e.push("'"+this.terminals_[Be]+"'");if(O.showPosition)qe="Parse error on line "+(ye+1)+`:
2
2
  `+O.showPosition()+`
3
3
  Expecting `+_e.join(", ")+", got '"+(this.terminals_[w]||w)+"'";else qe="Parse error on line "+(ye+1)+": Unexpected "+(w==lt?"end of input":"'"+(this.terminals_[w]||w)+"'");this.parseError(qe,{text:O.match,token:this.terminals_[w]||w,line:O.yylineno,loc:je,expected:_e})}if(G[0]instanceof Array&&G.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+w);switch(G[0]){case 1:if(g.push(w),y.push(O.yytext),e.push(O.yylloc),g.push(G[1]),w=null,!Xe){if(rt=O.yyleng,i=O.yytext,ye=O.yylineno,je=O.yylloc,nt>0)nt--}else w=Xe,Xe=null;break;case 2:if(Y=this.productions_[G[1]][1],q.$=y[y.length-Y],q._$={first_line:e[e.length-(Y||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Y||1)].first_column,last_column:e[e.length-1].last_column},kt)q._$.range=[e[e.length-(Y||1)].range[0],e[e.length-1].range[1]];if(He=this.performAction.apply(q,[i,rt,ye,W.yy,G[1],y,e].concat(ft)),typeof He<"u")return He;if(Y)g=g.slice(0,-1*Y*2),y=y.slice(0,-1*Y),e=e.slice(0,-1*Y);g.push(this.productions_[G[1]][0]),y.push(q.$),e.push(q._$),ot=oe[g[g.length-2]][g[g.length-1]],g.push(ot);break;case 3:return!0}}return!0},"parse")},pt=function(){var K={EOF:1,parseError:t(function(m,g){if(this.yy.parser)this.yy.parser.parseError(m,g);else throw Error(m)},"parseError"),setInput:t(function(b,m){if(this.yy=m||this.yy||{},this._input=b,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 b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var m=b.match(/(?:\r\n?|\n).*/g);if(m)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),b},"input"),unput:t(function(b){var m=b.length,g=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var c=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),g.length-1)this.yylineno-=g.length-1;var y=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:g?(g.length===c.length?this.yylloc.first_column:0)+c[c.length-g.length].length-g[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[y[0],y[0]+this.yyleng-m];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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(b){this.unput(this.match.slice(b))},"less"),pastInput:t(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var b=this.pastInput(),m=Array(b.length+1).join("-");return b+this.upcomingInput()+`
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{_s}from"./chunk-et1nm6h1.js";export{_s as createCynefinServices};
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- import{t,h}from"./chunk-dbv8qpen.js";var Fe=t((o,e)=>{let n;if(e==="sandbox")n=h("#i"+o);return(e==="sandbox"?h(n.nodes()[0].contentDocument.body):h("body")).select(`[id="${o}"]`)},"getDiagramElement");
1
+ import{t,h}from"./chunk-xp2zpmpp.js";var Fe=t((o,e)=>{let n;if(e==="sandbox")n=h("#i"+o);return(e==="sandbox"?h(n.nodes()[0].contentDocument.body):h("body")).select(`[id="${o}"]`)},"getDiagramElement");
2
2
  export{Fe};
Binary file
Binary file