@bkm016/basalt 0.1.20 → 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 (629) hide show
  1. package/{chunk-tb3zsqe8.js → chunk-09tdbx7b.js} +1 -1
  2. package/{chunk-cks36jdh.js → chunk-0rsyawz5.js} +2 -2
  3. package/{chunk-nszq2z0w.js → chunk-16yz5ebn.js} +1 -1
  4. package/chunk-1kdd7xry.js +2 -0
  5. package/chunk-1td9hjn9.js +25 -0
  6. package/{chunk-s819vmwh.js → chunk-1xjkzzyh.js} +2 -2
  7. package/{chunk-gg3kfa12.js → chunk-38932kzp.js} +2 -2
  8. package/chunk-3qxq264t.js +2 -0
  9. package/{chunk-cwrf78vs.js → chunk-3s8rpc1w.js} +2 -2
  10. package/{chunk-5ja0vsam.js → chunk-5415fcz7.js} +3 -3
  11. package/{chunk-3phf8eg6.js → chunk-5kezbmgw.js} +2 -2
  12. package/{chunk-bkhsva5n.js → chunk-5m51j40e.js} +3 -3
  13. package/{chunk-2fts9k52.js → chunk-5mt8xxex.js} +2 -2
  14. package/{chunk-tp885r8h.js → chunk-5ph58x6w.js} +11 -11
  15. package/{chunk-eps1epfr.js → chunk-6jdqe7sz.js} +2 -2
  16. package/{chunk-mde2dd79.js → chunk-6ztgzx9s.js} +1 -1
  17. package/{chunk-3r38vbt5.js → chunk-7dzcdpdt.js} +1 -1
  18. package/{chunk-w9fdcchk.js → chunk-82djd5fk.js} +1 -1
  19. package/{chunk-x1y4s01x.js → chunk-86vhsd3y.js} +11 -11
  20. package/chunk-8rfv9mm1.js +15 -0
  21. package/{chunk-30bbdzma.js → chunk-8tvz5ht1.js} +12 -12
  22. package/{chunk-a2z1cy84.js → chunk-9pjmwz01.js} +1 -1
  23. package/{chunk-7kz9435k.js → chunk-9w1m9av8.js} +3 -3
  24. package/{chunk-w6nc3jn7.js → chunk-9wjd9bxm.js} +1 -1
  25. package/chunk-b49005n2.js +471 -0
  26. package/{chunk-w045zk55.js → chunk-bdz2561d.js} +1 -1
  27. package/{chunk-wj09qkyw.js → chunk-bkvhwgeb.js} +2 -2
  28. package/{chunk-1gaj43fx.js → chunk-bp9tfav3.js} +1 -1
  29. package/chunk-cc9htxzx.js +3557 -0
  30. package/chunk-chfzk1fx.js +3 -0
  31. package/{chunk-p0e82mee.js → chunk-cr0tqn6j.js} +2 -2
  32. package/{chunk-e3bgzeb3.js → chunk-cv5kdnsw.js} +2 -2
  33. package/{chunk-svx7mz0w.js → chunk-d79s1s4t.js} +4 -4
  34. package/{chunk-29g01nrz.js → chunk-ec6bzt7w.js} +5 -5
  35. package/{chunk-h2pp8mnh.js → chunk-eq54cmsa.js} +1 -1
  36. package/{chunk-1tbv5t08.js → chunk-g54nd4fd.js} +1 -1
  37. package/{chunk-v7da0aqn.js → chunk-g8p5c4vx.js} +5 -5
  38. package/chunk-g9bemxpt.js +3 -0
  39. package/{chunk-fgjw0r6g.js → chunk-hk5p2eee.js} +4 -4
  40. package/{chunk-0bgg0hdd.js → chunk-jerp4pj5.js} +1 -1
  41. package/{chunk-3sg32v3n.js → chunk-jsvqp20s.js} +1 -1
  42. package/{chunk-0g8rtf05.js → chunk-k9x1r69s.js} +8 -8
  43. package/{chunk-5e7yegea.js → chunk-kb526065.js} +1 -1
  44. package/{chunk-y83tnkr3.js → chunk-kpw1qa2n.js} +3 -3
  45. package/chunk-mbvy2t23.js +2 -0
  46. package/{chunk-sm9fpy18.js → chunk-mmnsdje8.js} +9 -9
  47. package/{chunk-d2f0hq8z.js → chunk-nffwakxq.js} +1 -1
  48. package/chunk-nfj8sj53.js +2 -0
  49. package/{chunk-ak9rkrf3.js → chunk-pzwaz2ew.js} +2 -2
  50. package/{chunk-yk29stq0.js → chunk-qtgc74er.js} +2 -2
  51. package/chunk-qtrd33pp.js +7 -0
  52. package/{chunk-6en06hkk.js → chunk-rbk6jxcr.js} +1 -1
  53. package/{chunk-y3vap4a1.js → chunk-rpbxbb92.js} +1 -1
  54. package/{chunk-agb771ak.js → chunk-rx812nrp.js} +2 -2
  55. package/{chunk-tpetsqzt.js → chunk-scy1p7x2.js} +3 -3
  56. package/{chunk-4dgqcp6q.js → chunk-sfgw0vmt.js} +1 -1
  57. package/chunk-tmefdwxy.js +2 -0
  58. package/chunk-tvg54x0x.js +2 -0
  59. package/{chunk-eyyxqb6y.js → chunk-v878x8zr.js} +2 -2
  60. package/chunk-v89f2k9b.js +2 -0
  61. package/{chunk-ewr51fwc.js → chunk-vhe16b65.js} +2 -2
  62. package/{chunk-z9p2ry9w.js → chunk-w3skxmvx.js} +2 -2
  63. package/{chunk-qxpx8dn6.js → chunk-w4kasz4j.js} +5 -5
  64. package/chunk-w4zkgn1c.js +4 -0
  65. package/chunk-we5emq6f.js +2 -0
  66. package/{chunk-11xxfc0x.js → chunk-x0dcabw6.js} +2 -2
  67. package/chunk-xtj7b70y.js +5 -0
  68. package/{chunk-a1vdrgsh.js → chunk-xwew53k7.js} +5 -5
  69. package/{chunk-np2xnt1g.js → chunk-xyhr89y5.js} +2 -2
  70. package/chunk-yce46csn.js +2 -0
  71. package/{chunk-s8m4svhf.js → chunk-yetcb1z9.js} +2 -2
  72. package/chunk-ypmpf75h.js +2 -0
  73. package/chunk-zz48zvk5.js +2 -0
  74. package/compiled.js +8 -8
  75. package/package.json +1 -1
  76. package/ui-test-worker.js +16 -16
  77. package/web/chunk-04c54f1s.js +1 -0
  78. package/web/chunk-04c54f1s.js.br +2 -0
  79. package/web/chunk-04c54f1s.js.gz +0 -0
  80. package/web/chunk-04m1cb8w.js +1 -0
  81. package/web/chunk-04m1cb8w.js.br +0 -0
  82. package/web/chunk-04m1cb8w.js.gz +0 -0
  83. package/web/{chunk-js940jjj.js → chunk-08z6mkgz.js} +4 -4
  84. package/web/chunk-08z6mkgz.js.br +0 -0
  85. package/web/chunk-08z6mkgz.js.gz +0 -0
  86. package/web/{chunk-x2hxq5yr.js → chunk-0g9m3rpw.js} +1 -1
  87. package/web/chunk-0g9m3rpw.js.br +0 -0
  88. package/web/chunk-0g9m3rpw.js.gz +0 -0
  89. package/web/{chunk-gk1bc3c3.js → chunk-0jccrdw3.js} +1 -1
  90. package/web/chunk-0jccrdw3.js.br +0 -0
  91. package/web/chunk-0jccrdw3.js.gz +0 -0
  92. package/web/{chunk-59h87pvn.js → chunk-0vweazdh.js} +1 -1
  93. package/web/chunk-0vweazdh.js.br +0 -0
  94. package/web/chunk-0vweazdh.js.gz +0 -0
  95. package/web/chunk-1vtf555r.js +1 -0
  96. package/web/chunk-1vtf555r.js.br +0 -0
  97. package/web/chunk-1vtf555r.js.gz +0 -0
  98. package/web/{chunk-znrsm604.js → chunk-29z0ft67.js} +17 -17
  99. package/web/chunk-29z0ft67.js.br +0 -0
  100. package/web/chunk-29z0ft67.js.gz +0 -0
  101. package/web/{chunk-tg3f9xmp.js → chunk-2q3m4btb.js} +1 -1
  102. package/web/chunk-2q3m4btb.js.br +0 -0
  103. package/web/chunk-2q3m4btb.js.gz +0 -0
  104. package/web/{chunk-qjg6dw46.js → chunk-2s6fhjjc.js} +94 -94
  105. package/web/chunk-2s6fhjjc.js.br +0 -0
  106. package/web/chunk-2s6fhjjc.js.gz +0 -0
  107. package/web/{chunk-fjrgg82c.js → chunk-2vdx4ykn.js} +4 -4
  108. package/web/chunk-2vdx4ykn.js.br +0 -0
  109. package/web/chunk-2vdx4ykn.js.gz +0 -0
  110. package/web/{chunk-zthww0ws.js → chunk-2zgqe8r7.js} +1 -1
  111. package/web/chunk-2zgqe8r7.js.br +0 -0
  112. package/web/chunk-2zgqe8r7.js.gz +0 -0
  113. package/web/{chunk-mbpv2w5h.js → chunk-3kqpmg83.js} +2 -2
  114. package/web/chunk-3kqpmg83.js.br +0 -0
  115. package/web/chunk-3kqpmg83.js.gz +0 -0
  116. package/web/chunk-3rmqxna0.js +1 -0
  117. package/web/chunk-3rmqxna0.js.br +0 -0
  118. package/web/chunk-3rmqxna0.js.gz +0 -0
  119. package/web/{chunk-jmnzcm1f.js → chunk-3xmv2349.js} +4 -4
  120. package/web/chunk-3xmv2349.js.br +0 -0
  121. package/web/chunk-3xmv2349.js.gz +0 -0
  122. package/web/{chunk-08w40agf.js → chunk-46cdys11.js} +7 -7
  123. package/web/chunk-46cdys11.js.br +0 -0
  124. package/web/chunk-46cdys11.js.gz +0 -0
  125. package/web/chunk-46mw23f0.js +8 -0
  126. package/web/chunk-46mw23f0.js.br +0 -0
  127. package/web/chunk-46mw23f0.js.gz +0 -0
  128. package/web/{chunk-mwfrxgbs.js → chunk-4r0dvjrr.js} +1 -1
  129. package/web/chunk-4r0dvjrr.js.br +0 -0
  130. package/web/chunk-4r0dvjrr.js.gz +0 -0
  131. package/web/{chunk-aw9bwd4w.js → chunk-4v6m84pg.js} +2 -2
  132. package/web/chunk-4v6m84pg.js.br +0 -0
  133. package/web/chunk-4v6m84pg.js.gz +0 -0
  134. package/web/{chunk-wvqcbp4a.js → chunk-4ye31s2w.js} +1 -1
  135. package/web/chunk-4ye31s2w.js.br +4 -0
  136. package/web/chunk-4ye31s2w.js.gz +0 -0
  137. package/web/{chunk-ezj5rjqr.js → chunk-5kavsn22.js} +1 -1
  138. package/web/chunk-5kavsn22.js.br +0 -0
  139. package/web/chunk-5kavsn22.js.gz +0 -0
  140. package/web/{chunk-vxadngbp.js → chunk-5q2h4tg8.js} +1 -1
  141. package/web/chunk-5q2h4tg8.js.br +4 -0
  142. package/web/chunk-5q2h4tg8.js.gz +0 -0
  143. package/web/{chunk-dmzvhbpn.js → chunk-5tbk6dx6.js} +3 -3
  144. package/web/chunk-5tbk6dx6.js.br +0 -0
  145. package/web/chunk-5tbk6dx6.js.gz +0 -0
  146. package/web/{chunk-9n1nsdqs.js → chunk-5yb0sm1r.js} +1 -1
  147. package/web/chunk-5yb0sm1r.js.br +0 -0
  148. package/web/chunk-5yb0sm1r.js.gz +0 -0
  149. package/web/chunk-5yz46tjw.js +2 -0
  150. package/web/chunk-5yz46tjw.js.br +0 -0
  151. package/web/chunk-5yz46tjw.js.gz +0 -0
  152. package/web/{chunk-3fd6mgf0.js → chunk-619a8t38.js} +1 -1
  153. package/web/chunk-619a8t38.js.br +0 -0
  154. package/web/chunk-619a8t38.js.gz +0 -0
  155. package/web/{chunk-cmhxtckb.js → chunk-6areryyn.js} +1 -1
  156. package/web/chunk-6areryyn.js.br +0 -0
  157. package/web/chunk-6areryyn.js.gz +0 -0
  158. package/web/{chunk-tgeeggkh.js → chunk-6ms78sx5.js} +1 -1
  159. package/web/chunk-6ms78sx5.js.br +0 -0
  160. package/web/chunk-6ms78sx5.js.gz +0 -0
  161. package/web/{chunk-bks2k04k.js → chunk-6ts9mtye.js} +1 -1
  162. package/web/chunk-6ts9mtye.js.br +0 -0
  163. package/web/chunk-6ts9mtye.js.gz +0 -0
  164. package/web/{chunk-kedjfh66.js → chunk-79whhay2.js} +1 -1
  165. package/web/chunk-79whhay2.js.br +0 -0
  166. package/web/chunk-79whhay2.js.gz +0 -0
  167. package/web/{chunk-ye7vge7s.js → chunk-7n1abr86.js} +1 -1
  168. package/web/chunk-7n1abr86.js.br +0 -0
  169. package/web/chunk-7n1abr86.js.gz +0 -0
  170. package/web/chunk-7qxfx983.js +1 -0
  171. package/web/chunk-7qxfx983.js.br +0 -0
  172. package/web/chunk-7qxfx983.js.gz +0 -0
  173. package/web/chunk-91k30q92.js +1 -0
  174. package/web/chunk-91k30q92.js.br +0 -0
  175. package/web/chunk-91k30q92.js.gz +0 -0
  176. package/web/{chunk-k6fwzn0z.js → chunk-91nyvkrb.js} +1 -1
  177. package/web/chunk-91nyvkrb.js.br +0 -0
  178. package/web/chunk-91nyvkrb.js.gz +0 -0
  179. package/web/{chunk-ahdca62g.js → chunk-9mbr6znb.js} +1 -1
  180. package/web/chunk-9mbr6znb.js.br +0 -0
  181. package/web/chunk-9mbr6znb.js.gz +0 -0
  182. package/web/{chunk-1yvcxpp2.js → chunk-9mvw6a5v.js} +4 -4
  183. package/web/chunk-9mvw6a5v.js.br +0 -0
  184. package/web/chunk-9mvw6a5v.js.gz +0 -0
  185. package/web/{chunk-kdegb6pd.js → chunk-a6hdn8tb.js} +5 -5
  186. package/web/chunk-a6hdn8tb.js.br +0 -0
  187. package/web/chunk-a6hdn8tb.js.gz +0 -0
  188. package/web/{chunk-37hmswdk.js → chunk-ar6m9fza.js} +5 -5
  189. package/web/chunk-ar6m9fza.js.br +0 -0
  190. package/web/chunk-ar6m9fza.js.gz +0 -0
  191. package/web/{chunk-q0srq8g5.js → chunk-ayqakyyq.js} +1 -1
  192. package/web/chunk-ayqakyyq.js.br +0 -0
  193. package/web/chunk-ayqakyyq.js.gz +0 -0
  194. package/web/{chunk-1ps9fj5n.js → chunk-cc6hn5xv.js} +2 -2
  195. package/web/chunk-cc6hn5xv.js.br +0 -0
  196. package/web/chunk-cc6hn5xv.js.gz +0 -0
  197. package/web/{chunk-d7f85w1y.js → chunk-ccymg1hp.js} +1 -1
  198. package/web/chunk-ccymg1hp.js.br +0 -0
  199. package/web/chunk-ccymg1hp.js.gz +0 -0
  200. package/web/{chunk-mhzqgzh0.js → chunk-cg9fe42b.js} +1 -1
  201. package/web/chunk-cg9fe42b.js.br +0 -0
  202. package/web/chunk-cg9fe42b.js.gz +0 -0
  203. package/web/chunk-cmcgmf94.js +1 -0
  204. package/web/chunk-cmcgmf94.js.br +0 -0
  205. package/web/chunk-cmcgmf94.js.gz +0 -0
  206. package/web/chunk-cnbbvd6n.js +1 -0
  207. package/web/chunk-cnbbvd6n.js.br +0 -0
  208. package/web/chunk-cnbbvd6n.js.gz +0 -0
  209. package/web/{chunk-wa8wr2y9.js → chunk-cxp2nbtc.js} +9 -9
  210. package/web/chunk-cxp2nbtc.js.br +0 -0
  211. package/web/chunk-cxp2nbtc.js.gz +0 -0
  212. package/web/{chunk-vh2prc6k.js → chunk-dj2b64aj.js} +1 -1
  213. package/web/chunk-dj2b64aj.js.br +0 -0
  214. package/web/chunk-dj2b64aj.js.gz +0 -0
  215. package/web/{chunk-gbcf0rdk.js → chunk-dsga6rp3.js} +1 -1
  216. package/web/chunk-dsga6rp3.js.br +0 -0
  217. package/web/chunk-dsga6rp3.js.gz +0 -0
  218. package/web/chunk-ek6q6a08.js +1 -0
  219. package/web/chunk-ek6q6a08.js.br +2 -0
  220. package/web/chunk-ek6q6a08.js.gz +0 -0
  221. package/web/{chunk-53cg6pxm.js → chunk-et1nm6h1.js} +2 -2
  222. package/web/chunk-et1nm6h1.js.br +0 -0
  223. package/web/chunk-et1nm6h1.js.gz +0 -0
  224. package/web/chunk-f1016wh6.js +1 -0
  225. package/web/chunk-f1016wh6.js.br +0 -0
  226. package/web/chunk-f1016wh6.js.gz +0 -0
  227. package/web/{chunk-6pbhqbv0.js → chunk-f42mwg61.js} +1 -1
  228. package/web/chunk-f42mwg61.js.br +0 -0
  229. package/web/chunk-f42mwg61.js.gz +0 -0
  230. package/web/{chunk-1ratg1jd.js → chunk-fk35d3bz.js} +1 -1
  231. package/web/chunk-fk35d3bz.js.br +0 -0
  232. package/web/chunk-fk35d3bz.js.gz +0 -0
  233. package/web/{chunk-e2z3kdhw.js → chunk-fpwztdhn.js} +3 -3
  234. package/web/chunk-fpwztdhn.js.br +0 -0
  235. package/web/chunk-fpwztdhn.js.gz +0 -0
  236. package/web/{chunk-1cwyy3gh.js → chunk-g30nqfka.js} +1 -1
  237. package/web/chunk-g30nqfka.js.br +0 -0
  238. package/web/chunk-g30nqfka.js.gz +0 -0
  239. package/web/chunk-gbwy4pfg.css +1 -0
  240. package/web/chunk-gbwy4pfg.css.br +0 -0
  241. package/web/chunk-gbwy4pfg.css.gz +0 -0
  242. package/web/{chunk-gj6bdv1y.js → chunk-gepgx19m.js} +9 -9
  243. package/web/chunk-gepgx19m.js.br +0 -0
  244. package/web/chunk-gepgx19m.js.gz +0 -0
  245. package/web/{chunk-v5p2fds9.js → chunk-grz69q28.js} +4 -4
  246. package/web/chunk-grz69q28.js.br +0 -0
  247. package/web/chunk-grz69q28.js.gz +0 -0
  248. package/web/{chunk-vhpzp7zd.js → chunk-gt62acsh.js} +1 -1
  249. package/web/chunk-gt62acsh.js.br +0 -0
  250. package/web/chunk-gt62acsh.js.gz +0 -0
  251. package/web/{chunk-81xbfpbq.js → chunk-h28xrvmg.js} +1 -1
  252. package/web/chunk-h28xrvmg.js.br +0 -0
  253. package/web/chunk-h28xrvmg.js.gz +0 -0
  254. package/web/{chunk-gpjytpyw.js → chunk-h80ypke7.js} +2 -2
  255. package/web/chunk-h80ypke7.js.br +0 -0
  256. package/web/chunk-h80ypke7.js.gz +0 -0
  257. package/web/chunk-k1cd6e24.js +1 -0
  258. package/web/chunk-k1cd6e24.js.br +0 -0
  259. package/web/chunk-k1cd6e24.js.gz +0 -0
  260. package/web/chunk-k9248573.js +1 -0
  261. package/web/chunk-k9248573.js.br +0 -0
  262. package/web/chunk-k9248573.js.gz +0 -0
  263. package/web/{chunk-6n1ha6ta.js → chunk-kqgn9dsa.js} +1 -1
  264. package/web/chunk-kqgn9dsa.js.br +0 -0
  265. package/web/chunk-kqgn9dsa.js.gz +0 -0
  266. package/web/chunk-kqngpw5m.js +1 -0
  267. package/web/chunk-kqngpw5m.js.br +0 -0
  268. package/web/chunk-kqngpw5m.js.gz +0 -0
  269. package/web/{chunk-dmhezjv3.js → chunk-kzj105r1.js} +4 -4
  270. package/web/chunk-kzj105r1.js.br +0 -0
  271. package/web/chunk-kzj105r1.js.gz +0 -0
  272. package/web/chunk-m14v2en1.js +1 -0
  273. package/web/chunk-m14v2en1.js.br +0 -0
  274. package/web/chunk-m14v2en1.js.gz +0 -0
  275. package/web/{chunk-1ghnag5v.js → chunk-m34et8g4.js} +1 -1
  276. package/web/chunk-m34et8g4.js.br +0 -0
  277. package/web/chunk-m34et8g4.js.gz +0 -0
  278. package/web/{chunk-esckazz2.js → chunk-md1f6gmk.js} +1 -1
  279. package/web/chunk-md1f6gmk.js.br +0 -0
  280. package/web/chunk-md1f6gmk.js.gz +0 -0
  281. package/web/{chunk-vpbnyz43.js → chunk-n05xf20n.js} +1 -1
  282. package/web/chunk-n05xf20n.js.br +0 -0
  283. package/web/chunk-n05xf20n.js.gz +0 -0
  284. package/web/{chunk-mh3nkkpx.js → chunk-n2k1gd6n.js} +6 -6
  285. package/web/chunk-n2k1gd6n.js.br +0 -0
  286. package/web/chunk-n2k1gd6n.js.gz +0 -0
  287. package/web/{chunk-apr33amc.js → chunk-nm8yza3v.js} +1 -1
  288. package/web/chunk-nm8yza3v.js.br +0 -0
  289. package/web/chunk-nm8yza3v.js.gz +0 -0
  290. package/web/chunk-pbg9rdwv.js +1 -0
  291. package/web/chunk-pbg9rdwv.js.br +2 -0
  292. package/web/chunk-pbg9rdwv.js.gz +0 -0
  293. package/web/chunk-qj9nd038.js +1 -0
  294. package/web/chunk-qj9nd038.js.br +0 -0
  295. package/web/chunk-qj9nd038.js.gz +0 -0
  296. package/web/chunk-qjaex9c0.js +1 -0
  297. package/web/chunk-qjaex9c0.js.br +2 -0
  298. package/web/chunk-qjaex9c0.js.gz +0 -0
  299. package/web/{chunk-72st75n7.js → chunk-qq79vsm8.js} +3 -3
  300. package/web/chunk-qq79vsm8.js.br +0 -0
  301. package/web/chunk-qq79vsm8.js.gz +0 -0
  302. package/web/{chunk-6a3wt5c5.js → chunk-qs5wnwd6.js} +3 -3
  303. package/web/chunk-qs5wnwd6.js.br +0 -0
  304. package/web/chunk-qs5wnwd6.js.gz +0 -0
  305. package/web/{chunk-wbxz2bjb.js → chunk-r381n550.js} +1 -1
  306. package/web/chunk-r381n550.js.br +0 -0
  307. package/web/chunk-r381n550.js.gz +0 -0
  308. package/web/{chunk-2rnnvxa5.js → chunk-r48vazdm.js} +3 -3
  309. package/web/chunk-r48vazdm.js.br +0 -0
  310. package/web/chunk-r48vazdm.js.gz +0 -0
  311. package/web/{chunk-hqt1f3fm.js → chunk-r55seq42.js} +1 -1
  312. package/web/chunk-r55seq42.js.br +0 -0
  313. package/web/chunk-r55seq42.js.gz +0 -0
  314. package/web/{chunk-82q4e8ff.js → chunk-r79zekav.js} +1 -1
  315. package/web/chunk-r79zekav.js.br +0 -0
  316. package/web/chunk-r79zekav.js.gz +0 -0
  317. package/web/{chunk-nb58m79v.js → chunk-r8qyvcks.js} +1 -1
  318. package/web/chunk-r8qyvcks.js.br +0 -0
  319. package/web/chunk-r8qyvcks.js.gz +0 -0
  320. package/web/chunk-r9dt0730.js +1 -0
  321. package/web/chunk-r9dt0730.js.br +0 -0
  322. package/web/chunk-r9dt0730.js.gz +0 -0
  323. package/web/chunk-rpjzwknn.js +1 -0
  324. package/web/chunk-rpjzwknn.js.br +0 -0
  325. package/web/chunk-rpjzwknn.js.gz +0 -0
  326. package/web/{chunk-186rp10x.js → chunk-sk3065js.js} +1 -1
  327. package/web/chunk-sk3065js.js.br +0 -0
  328. package/web/chunk-sk3065js.js.gz +0 -0
  329. package/web/{chunk-hwxj58j5.js → chunk-smywa1zw.js} +1 -1
  330. package/web/chunk-smywa1zw.js.br +0 -0
  331. package/web/chunk-smywa1zw.js.gz +0 -0
  332. package/web/{chunk-a8qe7kvz.js → chunk-trssyq9a.js} +1 -1
  333. package/web/chunk-trssyq9a.js.br +0 -0
  334. package/web/chunk-trssyq9a.js.gz +0 -0
  335. package/web/{chunk-0h0whn75.js → chunk-v329f8df.js} +1 -1
  336. package/web/chunk-v329f8df.js.br +0 -0
  337. package/web/chunk-v329f8df.js.gz +0 -0
  338. package/web/{chunk-zbzgd8kn.js → chunk-vb2feptd.js} +1 -1
  339. package/web/chunk-vb2feptd.js.br +0 -0
  340. package/web/chunk-vb2feptd.js.gz +0 -0
  341. package/web/chunk-vff33vj3.js +1 -0
  342. package/web/chunk-vff33vj3.js.br +2 -0
  343. package/web/chunk-vff33vj3.js.gz +0 -0
  344. package/web/{chunk-k4pknkvp.js → chunk-w9adyaze.js} +1 -1
  345. package/web/chunk-w9adyaze.js.br +0 -0
  346. package/web/chunk-w9adyaze.js.gz +0 -0
  347. package/web/{chunk-v6snw1sw.js → chunk-wgc8z5jv.js} +1 -1
  348. package/web/chunk-wgc8z5jv.js.br +0 -0
  349. package/web/chunk-wgc8z5jv.js.gz +0 -0
  350. package/web/{chunk-recfg8af.js → chunk-wvdk3w03.js} +1 -1
  351. package/web/chunk-wvdk3w03.js.br +0 -0
  352. package/web/chunk-wvdk3w03.js.gz +0 -0
  353. package/web/{chunk-bg0qgabv.js → chunk-wxmaw4ht.js} +1 -1
  354. package/web/chunk-wxmaw4ht.js.br +0 -0
  355. package/web/chunk-wxmaw4ht.js.gz +0 -0
  356. package/web/{chunk-7h59ac2b.js → chunk-x19jdqnt.js} +1 -1
  357. package/web/chunk-x19jdqnt.js.br +0 -0
  358. package/web/chunk-x19jdqnt.js.gz +0 -0
  359. package/web/{chunk-mj8dzc8q.js → chunk-x4153gx3.js} +5 -5
  360. package/web/chunk-x4153gx3.js.br +0 -0
  361. package/web/chunk-x4153gx3.js.gz +0 -0
  362. package/web/{chunk-qx5ab39c.js → chunk-x7wmb5d3.js} +2 -2
  363. package/web/chunk-x7wmb5d3.js.br +0 -0
  364. package/web/chunk-x7wmb5d3.js.gz +0 -0
  365. package/web/{chunk-v2bkkhb8.js → chunk-xp2zpmpp.js} +41 -41
  366. package/web/chunk-xp2zpmpp.js.br +0 -0
  367. package/web/chunk-xp2zpmpp.js.gz +0 -0
  368. package/web/chunk-y09v3sz7.js +1 -0
  369. package/web/chunk-y09v3sz7.js.br +0 -0
  370. package/web/chunk-y09v3sz7.js.gz +0 -0
  371. package/web/{chunk-h1c0m3g4.js → chunk-ywmsxe5z.js} +3 -3
  372. package/web/chunk-ywmsxe5z.js.br +0 -0
  373. package/web/chunk-ywmsxe5z.js.gz +0 -0
  374. package/web/{chunk-0tcmnvab.js → chunk-yzyxa823.js} +1 -1
  375. package/web/chunk-yzyxa823.js.br +0 -0
  376. package/web/chunk-yzyxa823.js.gz +0 -0
  377. package/web/{chunk-c28crzwk.js → chunk-zwx48gb8.js} +1 -1
  378. package/web/chunk-zwx48gb8.js.br +0 -0
  379. package/web/chunk-zwx48gb8.js.gz +0 -0
  380. package/web/index.html +1 -1
  381. package/web/index.html.br +0 -0
  382. package/web/index.html.gz +0 -0
  383. package/worker.js +1 -1
  384. package/chunk-0wwd4q6h.js +0 -5
  385. package/chunk-204c01mz.js +0 -25
  386. package/chunk-4wc2gbhe.js +0 -2
  387. package/chunk-51pfvmhh.js +0 -470
  388. package/chunk-5tsfqsmf.js +0 -2
  389. package/chunk-6hatfwsq.js +0 -2
  390. package/chunk-78ky455y.js +0 -4
  391. package/chunk-8mqaq042.js +0 -2
  392. package/chunk-as2mwf79.js +0 -2
  393. package/chunk-b516bp7n.js +0 -3
  394. package/chunk-c5pg2875.js +0 -3552
  395. package/chunk-g9hsrrj5.js +0 -2
  396. package/chunk-gpceyezp.js +0 -2
  397. package/chunk-h4n0gg11.js +0 -2
  398. package/chunk-jzya0e5n.js +0 -7
  399. package/chunk-ncb0tyaw.js +0 -2
  400. package/chunk-tpeg9fkd.js +0 -2
  401. package/chunk-v0mw006s.js +0 -15
  402. package/chunk-ys2fds2x.js +0 -3
  403. package/chunk-yshdvnsp.js +0 -2
  404. package/web/chunk-08w40agf.js.br +0 -0
  405. package/web/chunk-08w40agf.js.gz +0 -0
  406. package/web/chunk-0bfypmyv.js +0 -1
  407. package/web/chunk-0bfypmyv.js.br +0 -2
  408. package/web/chunk-0bfypmyv.js.gz +0 -0
  409. package/web/chunk-0h0whn75.js.br +0 -0
  410. package/web/chunk-0h0whn75.js.gz +0 -0
  411. package/web/chunk-0pzs9k06.js +0 -1
  412. package/web/chunk-0pzs9k06.js.br +0 -0
  413. package/web/chunk-0pzs9k06.js.gz +0 -0
  414. package/web/chunk-0tcmnvab.js.br +0 -0
  415. package/web/chunk-0tcmnvab.js.gz +0 -0
  416. package/web/chunk-186rp10x.js.br +0 -0
  417. package/web/chunk-186rp10x.js.gz +0 -0
  418. package/web/chunk-1cwyy3gh.js.br +0 -0
  419. package/web/chunk-1cwyy3gh.js.gz +0 -0
  420. package/web/chunk-1ecsxh85.js +0 -1
  421. package/web/chunk-1ecsxh85.js.br +0 -0
  422. package/web/chunk-1ecsxh85.js.gz +0 -0
  423. package/web/chunk-1ghnag5v.js.br +0 -0
  424. package/web/chunk-1ghnag5v.js.gz +0 -0
  425. package/web/chunk-1ps9fj5n.js.br +0 -0
  426. package/web/chunk-1ps9fj5n.js.gz +0 -0
  427. package/web/chunk-1ratg1jd.js.br +0 -0
  428. package/web/chunk-1ratg1jd.js.gz +0 -0
  429. package/web/chunk-1yvcxpp2.js.br +0 -0
  430. package/web/chunk-1yvcxpp2.js.gz +0 -0
  431. package/web/chunk-2r3w0pt0.js +0 -8
  432. package/web/chunk-2r3w0pt0.js.br +0 -0
  433. package/web/chunk-2r3w0pt0.js.gz +0 -0
  434. package/web/chunk-2rnnvxa5.js.br +0 -0
  435. package/web/chunk-2rnnvxa5.js.gz +0 -0
  436. package/web/chunk-2stffcvc.js +0 -1
  437. package/web/chunk-2stffcvc.js.br +0 -0
  438. package/web/chunk-2stffcvc.js.gz +0 -0
  439. package/web/chunk-2svqgkqw.js +0 -1
  440. package/web/chunk-2svqgkqw.js.br +0 -0
  441. package/web/chunk-2svqgkqw.js.gz +0 -0
  442. package/web/chunk-37hmswdk.js.br +0 -0
  443. package/web/chunk-37hmswdk.js.gz +0 -0
  444. package/web/chunk-3fd6mgf0.js.br +0 -0
  445. package/web/chunk-3fd6mgf0.js.gz +0 -0
  446. package/web/chunk-53cg6pxm.js.br +0 -0
  447. package/web/chunk-53cg6pxm.js.gz +0 -0
  448. package/web/chunk-59h87pvn.js.br +0 -0
  449. package/web/chunk-59h87pvn.js.gz +0 -0
  450. package/web/chunk-6a3wt5c5.js.br +0 -0
  451. package/web/chunk-6a3wt5c5.js.gz +0 -0
  452. package/web/chunk-6n1ha6ta.js.br +0 -0
  453. package/web/chunk-6n1ha6ta.js.gz +0 -0
  454. package/web/chunk-6pbhqbv0.js.br +0 -0
  455. package/web/chunk-6pbhqbv0.js.gz +0 -0
  456. package/web/chunk-72st75n7.js.br +0 -0
  457. package/web/chunk-72st75n7.js.gz +0 -0
  458. package/web/chunk-7h59ac2b.js.br +0 -0
  459. package/web/chunk-7h59ac2b.js.gz +0 -0
  460. package/web/chunk-81xbfpbq.js.br +0 -0
  461. package/web/chunk-81xbfpbq.js.gz +0 -0
  462. package/web/chunk-82q4e8ff.js.br +0 -0
  463. package/web/chunk-82q4e8ff.js.gz +0 -0
  464. package/web/chunk-89e8629e.js +0 -1
  465. package/web/chunk-89e8629e.js.br +0 -0
  466. package/web/chunk-89e8629e.js.gz +0 -0
  467. package/web/chunk-9n1nsdqs.js.br +0 -0
  468. package/web/chunk-9n1nsdqs.js.gz +0 -0
  469. package/web/chunk-a8qe7kvz.js.br +0 -0
  470. package/web/chunk-a8qe7kvz.js.gz +0 -0
  471. package/web/chunk-ahdca62g.js.br +0 -0
  472. package/web/chunk-ahdca62g.js.gz +0 -0
  473. package/web/chunk-apr33amc.js.br +0 -0
  474. package/web/chunk-apr33amc.js.gz +0 -0
  475. package/web/chunk-aw9bwd4w.js.br +0 -0
  476. package/web/chunk-aw9bwd4w.js.gz +0 -0
  477. package/web/chunk-bg0qgabv.js.br +0 -0
  478. package/web/chunk-bg0qgabv.js.gz +0 -0
  479. package/web/chunk-bks2k04k.js.br +0 -0
  480. package/web/chunk-bks2k04k.js.gz +0 -0
  481. package/web/chunk-c28crzwk.js.br +0 -0
  482. package/web/chunk-c28crzwk.js.gz +0 -0
  483. package/web/chunk-cmhxtckb.js.br +0 -0
  484. package/web/chunk-cmhxtckb.js.gz +0 -0
  485. package/web/chunk-d7f85w1y.js.br +0 -0
  486. package/web/chunk-d7f85w1y.js.gz +0 -0
  487. package/web/chunk-dmhezjv3.js.br +0 -0
  488. package/web/chunk-dmhezjv3.js.gz +0 -0
  489. package/web/chunk-dmzvhbpn.js.br +0 -0
  490. package/web/chunk-dmzvhbpn.js.gz +0 -0
  491. package/web/chunk-e2z3kdhw.js.br +0 -0
  492. package/web/chunk-e2z3kdhw.js.gz +0 -0
  493. package/web/chunk-eqmghkwh.js +0 -1
  494. package/web/chunk-eqmghkwh.js.br +0 -0
  495. package/web/chunk-eqmghkwh.js.gz +0 -0
  496. package/web/chunk-esckazz2.js.br +0 -0
  497. package/web/chunk-esckazz2.js.gz +0 -0
  498. package/web/chunk-ezj5rjqr.js.br +0 -0
  499. package/web/chunk-ezj5rjqr.js.gz +0 -0
  500. package/web/chunk-fjrgg82c.js.br +0 -0
  501. package/web/chunk-fjrgg82c.js.gz +0 -0
  502. package/web/chunk-gbcf0rdk.js.br +0 -0
  503. package/web/chunk-gbcf0rdk.js.gz +0 -0
  504. package/web/chunk-gj6bdv1y.js.br +0 -0
  505. package/web/chunk-gj6bdv1y.js.gz +0 -0
  506. package/web/chunk-gk1bc3c3.js.br +0 -0
  507. package/web/chunk-gk1bc3c3.js.gz +0 -0
  508. package/web/chunk-gpjytpyw.js.br +0 -0
  509. package/web/chunk-gpjytpyw.js.gz +0 -0
  510. package/web/chunk-h1c0m3g4.js.br +0 -0
  511. package/web/chunk-h1c0m3g4.js.gz +0 -0
  512. package/web/chunk-h1qv0cpd.css +0 -1
  513. package/web/chunk-h1qv0cpd.css.br +0 -0
  514. package/web/chunk-h1qv0cpd.css.gz +0 -0
  515. package/web/chunk-hq7e5xgd.js +0 -1
  516. package/web/chunk-hq7e5xgd.js.br +0 -0
  517. package/web/chunk-hq7e5xgd.js.gz +0 -0
  518. package/web/chunk-hqt1f3fm.js.br +0 -0
  519. package/web/chunk-hqt1f3fm.js.gz +0 -0
  520. package/web/chunk-hwxj58j5.js.br +0 -0
  521. package/web/chunk-hwxj58j5.js.gz +0 -0
  522. package/web/chunk-hxzb25a8.js +0 -1
  523. package/web/chunk-hxzb25a8.js.br +0 -0
  524. package/web/chunk-hxzb25a8.js.gz +0 -0
  525. package/web/chunk-jmnzcm1f.js.br +0 -0
  526. package/web/chunk-jmnzcm1f.js.gz +0 -0
  527. package/web/chunk-js940jjj.js.br +0 -0
  528. package/web/chunk-js940jjj.js.gz +0 -0
  529. package/web/chunk-jy9vkfbf.js +0 -1
  530. package/web/chunk-jy9vkfbf.js.br +0 -0
  531. package/web/chunk-jy9vkfbf.js.gz +0 -0
  532. package/web/chunk-k4pknkvp.js.br +0 -0
  533. package/web/chunk-k4pknkvp.js.gz +0 -0
  534. package/web/chunk-k6fwzn0z.js.br +0 -0
  535. package/web/chunk-k6fwzn0z.js.gz +0 -0
  536. package/web/chunk-kdegb6pd.js.br +0 -0
  537. package/web/chunk-kdegb6pd.js.gz +0 -0
  538. package/web/chunk-kedjfh66.js.br +0 -0
  539. package/web/chunk-kedjfh66.js.gz +0 -0
  540. package/web/chunk-mbpv2w5h.js.br +0 -0
  541. package/web/chunk-mbpv2w5h.js.gz +0 -0
  542. package/web/chunk-mh3nkkpx.js.br +0 -0
  543. package/web/chunk-mh3nkkpx.js.gz +0 -0
  544. package/web/chunk-mhzqgzh0.js.br +0 -0
  545. package/web/chunk-mhzqgzh0.js.gz +0 -0
  546. package/web/chunk-mj8dzc8q.js.br +0 -0
  547. package/web/chunk-mj8dzc8q.js.gz +0 -0
  548. package/web/chunk-mwfrxgbs.js.br +0 -0
  549. package/web/chunk-mwfrxgbs.js.gz +0 -0
  550. package/web/chunk-nb58m79v.js.br +0 -0
  551. package/web/chunk-nb58m79v.js.gz +0 -0
  552. package/web/chunk-nsna2v2r.js +0 -1
  553. package/web/chunk-nsna2v2r.js.br +0 -0
  554. package/web/chunk-nsna2v2r.js.gz +0 -0
  555. package/web/chunk-nxdp58nf.js +0 -1
  556. package/web/chunk-nxdp58nf.js.br +0 -0
  557. package/web/chunk-nxdp58nf.js.gz +0 -0
  558. package/web/chunk-nytgs01h.js +0 -1
  559. package/web/chunk-nytgs01h.js.br +0 -0
  560. package/web/chunk-nytgs01h.js.gz +0 -0
  561. package/web/chunk-pkxn54jm.js +0 -1
  562. package/web/chunk-pkxn54jm.js.br +0 -0
  563. package/web/chunk-pkxn54jm.js.gz +0 -0
  564. package/web/chunk-q0srq8g5.js.br +0 -0
  565. package/web/chunk-q0srq8g5.js.gz +0 -0
  566. package/web/chunk-qjg6dw46.js.br +0 -0
  567. package/web/chunk-qjg6dw46.js.gz +0 -0
  568. package/web/chunk-qjjxevxe.js +0 -1
  569. package/web/chunk-qjjxevxe.js.br +0 -0
  570. package/web/chunk-qjjxevxe.js.gz +0 -0
  571. package/web/chunk-qx5ab39c.js.br +0 -0
  572. package/web/chunk-qx5ab39c.js.gz +0 -0
  573. package/web/chunk-recfg8af.js.br +0 -0
  574. package/web/chunk-recfg8af.js.gz +0 -0
  575. package/web/chunk-tg3f9xmp.js.br +0 -0
  576. package/web/chunk-tg3f9xmp.js.gz +0 -0
  577. package/web/chunk-tgeeggkh.js.br +0 -0
  578. package/web/chunk-tgeeggkh.js.gz +0 -0
  579. package/web/chunk-v2bkkhb8.js.br +0 -0
  580. package/web/chunk-v2bkkhb8.js.gz +0 -0
  581. package/web/chunk-v5p2fds9.js.br +0 -0
  582. package/web/chunk-v5p2fds9.js.gz +0 -0
  583. package/web/chunk-v6snw1sw.js.br +0 -0
  584. package/web/chunk-v6snw1sw.js.gz +0 -0
  585. package/web/chunk-veadbga2.js +0 -1
  586. package/web/chunk-veadbga2.js.br +0 -2
  587. package/web/chunk-veadbga2.js.gz +0 -0
  588. package/web/chunk-vh2prc6k.js.br +0 -0
  589. package/web/chunk-vh2prc6k.js.gz +0 -0
  590. package/web/chunk-vhpzp7zd.js.br +0 -0
  591. package/web/chunk-vhpzp7zd.js.gz +0 -0
  592. package/web/chunk-vpbnyz43.js.br +0 -0
  593. package/web/chunk-vpbnyz43.js.gz +0 -0
  594. package/web/chunk-vxadngbp.js.br +0 -3
  595. package/web/chunk-vxadngbp.js.gz +0 -0
  596. package/web/chunk-wa8wr2y9.js.br +0 -0
  597. package/web/chunk-wa8wr2y9.js.gz +0 -0
  598. package/web/chunk-wbxz2bjb.js.br +0 -0
  599. package/web/chunk-wbxz2bjb.js.gz +0 -0
  600. package/web/chunk-wgzatts8.js +0 -1
  601. package/web/chunk-wgzatts8.js.br +0 -0
  602. package/web/chunk-wgzatts8.js.gz +0 -0
  603. package/web/chunk-whczyxqw.js +0 -1
  604. package/web/chunk-whczyxqw.js.br +0 -0
  605. package/web/chunk-whczyxqw.js.gz +0 -0
  606. package/web/chunk-wmzz2crn.js +0 -1
  607. package/web/chunk-wmzz2crn.js.br +0 -0
  608. package/web/chunk-wmzz2crn.js.gz +0 -0
  609. package/web/chunk-wvqcbp4a.js.br +0 -0
  610. package/web/chunk-wvqcbp4a.js.gz +0 -0
  611. package/web/chunk-x2hxq5yr.js.br +0 -0
  612. package/web/chunk-x2hxq5yr.js.gz +0 -0
  613. package/web/chunk-x8bnp6vr.js +0 -1
  614. package/web/chunk-x8bnp6vr.js.br +0 -0
  615. package/web/chunk-x8bnp6vr.js.gz +0 -0
  616. package/web/chunk-xvmzsftt.js +0 -2
  617. package/web/chunk-xvmzsftt.js.br +0 -0
  618. package/web/chunk-xvmzsftt.js.gz +0 -0
  619. package/web/chunk-ye7vge7s.js.br +0 -0
  620. package/web/chunk-ye7vge7s.js.gz +0 -0
  621. package/web/chunk-zbzgd8kn.js.br +0 -0
  622. package/web/chunk-zbzgd8kn.js.gz +0 -0
  623. package/web/chunk-zhwqscat.js +0 -1
  624. package/web/chunk-zhwqscat.js.br +0 -0
  625. package/web/chunk-zhwqscat.js.gz +0 -0
  626. package/web/chunk-znrsm604.js.br +0 -0
  627. package/web/chunk-znrsm604.js.gz +0 -0
  628. package/web/chunk-zthww0ws.js.br +0 -0
  629. package/web/chunk-zthww0ws.js.gz +0 -0
@@ -1,17 +1,17 @@
1
- import{wr}from"./chunk-cmhxtckb.js";import{re}from"./chunk-mwfrxgbs.js";import{t,a,B,S,k,A,R,I,L,D,P,M,u,za,h,qs,X,F}from"./chunk-v2bkkhb8.js";import{fe}from"./chunk-53cg6pxm.js";var C={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=B.gitGraph,V=t(()=>X({...Ce,...S().gitGraph}),"getConfig"),m=new wr(()=>{let e=V(),{mainBranchName:r,mainBranchOrder:o}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:o}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function se(){return qs({length:7})}t(se,"getID");function pe(e,r){let o=Object.create(null);return e.reduce((c,i)=>{let l=r(i);if(!o[l])o[l]=!0,c.push(i);return c},[])}t(pe,"uniqBy");var ve=t(function(e){m.records.direction=e},"setDirection"),Ee=t(function(e){a.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){a.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=t(function(){return m.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:o,type:c,tags:i}=e;a.info("commit",r,o,c,i),a.debug("Entering commit:",r,o,c,i);let l=V();o=k.sanitizeText(o,l),r=k.sanitizeText(r,l),i=i?.map((s)=>k.sanitizeText(s,l));let n={id:o?o:m.records.seq+"-"+se(),message:r,seq:m.records.seq++,type:c??C.NORMAL,tags:i??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=n,a.info("main branch",l.mainBranchName),m.records.commits.has(n.id))a.warn(`Commit ID ${n.id} already exists`);m.records.commits.set(n.id,n),m.records.branches.set(m.records.currBranch,n.id),a.debug("in pushCommit "+n.id)},"commit"),Me=t(function(e){let{name:r,order:o}=e;if(r=k.sanitizeText(r,V()),m.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:o}),ye(r),a.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:o,type:c,tags:i}=e,l=V();if(r=k.sanitizeText(r,l),o)o=k.sanitizeText(o,l);let n=m.records.branches.get(m.records.currBranch),s=m.records.branches.get(r),g=n?m.records.commits.get(n):void 0,p=s?m.records.commits.get(s):void 0;if(g&&p&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!m.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(p===void 0||!p){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===p){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(o&&m.records.commits.has(o)){let d=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${o} ${c} ${i?.join(" ")}`,token:`merge ${r} ${o} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${o}_UNIQUE ${c} ${i?.join(" ")}`]},d}let y=s?s:"",f={id:o||`${m.records.seq}-${se()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,y],branch:m.records.currBranch,type:C.MERGE,customType:c,customId:o?!0:!1,tags:i??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),a.debug(m.records.branches),a.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:o,tags:c,parent:i}=e;a.debug("Entering cherryPick:",r,o,c);let l=V();if(r=k.sanitizeText(r,l),o=k.sanitizeText(o,l),c=c?.map((g)=>k.sanitizeText(g,l)),i=k.sanitizeText(i,l),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},g}let n=m.records.commits.get(r);if(n===void 0||!n)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(n.parents)&&n.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=n.branch;if(n.type===C.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(s===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let p=m.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let y={id:m.records.seq+"-"+se(),message:`cherry-picked ${n?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,n.id],branch:m.records.currBranch,type:C.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${n.id}${n.type===C.MERGE?`|parent:${i}`:""}`]};m.records.head=y,m.records.commits.set(y.id,y),m.records.branches.set(m.records.currBranch,y.id),a.debug(m.records.branches),a.debug("in cherryPick")}},"cherryPick"),ye=t(function(e){if(e=k.sanitizeText(e,V()),!m.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function de(e,r,o){let c=e.indexOf(r);if(c===-1)e.push(o);else e.splice(c,1,o)}t(de,"upsert");function le(e){let r=e.reduce((i,l)=>{if(i.seq>l.seq)return i;return l},e[0]),o="";e.forEach(function(i){if(i===r)o+="\t*";else o+="\t|"});let c=[o,r.id,r.seq];for(let i in m.records.branches)if(m.records.branches.get(i)===r.id)c.push(i);if(a.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=m.records.commits.get(r.parents[0]);if(de(e,r,i),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=m.records.commits.get(r.parents[0]);de(e,r,i)}e=pe(e,(i)=>i.id),le(e)}t(le,"prettyPrintCommitHistory");var Oe=t(function(){a.debug(m.records.commits);let e=xe()[0];le([e])},"prettyPrint"),Ie=t(function(){m.reset(),A()},"clear"),_e=t(function(){return[...m.records.branchConfig.values()].map((r,o)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${o}`)}}).sort((r,o)=>(r.order??0)-(o.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return m.records.branches},"getBranches"),De=t(function(){return m.records.commits},"getCommits"),xe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){a.debug(r.id)}),e.sort((r,o)=>r.seq-o.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ue={commitType:C,getConfig:V,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:R,getAccTitle:I,getAccDescription:D,setAccDescription:L,setDiagramTitle:P,getDiagramTitle:M},He=t((e,r)=>{if(re(e,r),e.dir)r.setDirection(e.dir);for(let o of e.statements)Se(o,r)},"populate"),Se=t((e,r)=>{let c={Commit:t((i)=>r.commit(Ne(i)),"Commit"),Branch:t((i)=>r.branch(Fe(i)),"Branch"),Merge:t((i)=>r.merge(ze(i)),"Merge"),Checkout:t((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:t((i)=>r.cherryPick(je(i)),"CherryPicking")}[e.$type];if(c)c(e);else a.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?C[e.type]:C.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?C[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await fe("gitGraph",e);a.debug(r),He(r,ue)},"parse")},Y=10,j=40,q=4,N=2,K=8,ne=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),he=12,me=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),U=t((e,r,o=!1)=>{if(o&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),_=new Map,G=new Map,ae=30,Q=new Map,oe=[],z=0,b="LR",Ve=t(()=>{_.clear(),G.clear(),Q.clear(),z=0,oe=[],b="LR"},"clear"),be=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=t((e)=>{let r,o,c;if(b==="BT")o=t((i,l)=>i<=l,"comparisonFunc"),c=1/0;else o=t((i,l)=>i>=l,"comparisonFunc"),c=0;return e.forEach((i)=>{let l=b==="TB"||b=="BT"?G.get(i)?.y:G.get(i)?.x;if(l!==void 0&&o(l,c))r=i,c=l}),r},"findClosestParent"),Ze=t((e)=>{let r="",o=1/0;return e.forEach((c)=>{let i=G.get(c).y;if(i<=o)r=c,o=i}),r||void 0},"findClosestParentBT"),Xe=t((e,r,o)=>{let c=o,i=o,l=[];e.forEach((n)=>{let s=r.get(n);if(!s)throw Error(`Commit not found for key ${n}`);if(s.parents.length)c=Qe(s),i=Math.max(c,i);else l.push(s);et(s,c)}),c=i,l.forEach((n)=>{tt(n,c,o)}),e.forEach((n)=>{let s=r.get(n);if(s?.parents.length){let g=Ze(s.parents);if(c=G.get(g).y-j,c<=i)i=c;let p=_.get(s.branch).pos,y=c-Y;G.set(s.id,{x:p,y})}})},"setParallelBTPos"),Je=t((e)=>{let r=we(e.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let o=G.get(r)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return o},"findClosestParentPos"),Qe=t((e)=>Je(e)+j,"calculateCommitPosition"),et=t((e,r)=>{let o=_.get(e.branch);if(!o)throw Error(`Branch not found for commit ${e.id}`);let c=o.pos,i=r+Y;return G.set(e.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=t((e,r,o)=>{let c=_.get(e.branch);if(!c)throw Error(`Branch not found for commit ${e.id}`);let i=r+o,l=c.pos;G.set(e.id,{x:l,y:i})},"setRootPosition"),rt=t((e,r,o,c,i,l)=>{let{theme:n}=u(),s=ne.has(n??""),g=me.has(n??""),p=Ue.has(n??"");if(l===C.HIGHLIGHT)e.append("rect").attr("x",o.x-10+(s?3:0)).attr("y",o.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${U(i,K,g)} ${c}-outer`),e.append("rect").attr("x",o.x-6+(s?2:0)).attr("y",o.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${U(i,K,g)} ${c}-inner`);else if(l===C.CHERRY_PICK)e.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let y=e.append("circle");if(y.attr("cx",o.x),y.attr("cy",o.y),y.attr("r",s?7:10),y.attr("class",`commit ${r.id} commit${U(i,K,g)}`),l===C.MERGE){let f=e.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",s?5:6),f.attr("class",`commit ${c} ${r.id} commit${U(i,K,g)}`)}if(l===C.REVERSE){let f=e.append("path"),d=s?4:5;f.attr("d",`M ${o.x-d},${o.y-d}L${o.x+d},${o.y+d}M${o.x-d},${o.y+d}L${o.x+d},${o.y-d}`).attr("class",`commit ${c} ${r.id} commit${U(i,K,g)}`)}}},"drawCommitBullet"),at=t((e,r,o,c,i)=>{if(r.type!==C.CHERRY_PICK&&(r.customId&&r.type===C.MERGE||r.type!==C.MERGE)&&i.showCommitLabel){let l=e.append("g"),n=l.insert("rect").attr("class","commit-label-bkg"),s=l.append("text").attr("x",c).attr("y",o.y+25).attr("class","commit-label").text(r.id),g=s.node()?.getBBox();if(g){if(n.attr("x",o.posWithOffset-g.width/2-N).attr("y",o.y+13.5).attr("width",g.width+2*N).attr("height",g.height+2*N),b==="TB"||b==="BT")n.attr("x",o.x-(g.width+4*q+5)).attr("y",o.y-12),s.attr("x",o.x-(g.width+4*q)).attr("y",o.y+g.height-12);else s.attr("x",o.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(b==="TB"||b==="BT")s.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let p=-7.5-(g.width+10)/25*9.5,y=10+g.width/25*8.5;l.attr("transform","translate("+p+", "+y+") rotate(-45, "+c+", "+o.y+")")}}}},"drawCommitLabel"),ot=t((e,r,o,c)=>{if(r.tags.length>0){let i=0,l=0,n=0,s=[];for(let g of r.tags.reverse()){let p=e.insert("polygon"),y=e.append("circle"),f=e.append("text").attr("y",o.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");l=Math.max(l,d.width),n=Math.max(n,d.height),f.attr("x",o.posWithOffset-d.width/2),s.push({tag:f,hole:y,rect:p,yOffset:i}),i+=20}for(let{tag:g,hole:p,rect:y,yOffset:f}of s){let d=n/2,w=o.y-19.2-f;if(y.attr("class","tag-label-bkg").attr("points",`
2
- ${c-l/2-q/2},${w+N}
3
- ${c-l/2-q/2},${w-N}
4
- ${o.posWithOffset-l/2-q},${w-d-N}
5
- ${o.posWithOffset+l/2+q},${w-d-N}
6
- ${o.posWithOffset+l/2+q},${w+d+N}
7
- ${o.posWithOffset-l/2-q},${w+d+N}`),p.attr("cy",w).attr("cx",c-l/2+q/2).attr("r",1.5).attr("class","tag-hole"),b==="TB"||b==="BT"){let x=c+f;y.attr("class","tag-label-bkg").attr("points",`
1
+ import{wr}from"./chunk-6areryyn.js";import{re}from"./chunk-4r0dvjrr.js";import{t,a,B,S,k,A,R,I,L,D,P,N,u,za,h,qs,X,F}from"./chunk-xp2zpmpp.js";import{fe}from"./chunk-et1nm6h1.js";var C={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=B.gitGraph,V=t(()=>X({...Ce,...S().gitGraph}),"getConfig"),m=new wr(()=>{let e=V(),{mainBranchName:r,mainBranchOrder:o}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:o}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function se(){return qs({length:7})}t(se,"getID");function pe(e,r){let o=Object.create(null);return e.reduce((c,i)=>{let l=r(i);if(!o[l])o[l]=!0,c.push(i);return c},[])}t(pe,"uniqBy");var ve=t(function(e){m.records.direction=e},"setDirection"),Ee=t(function(e){a.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){a.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=t(function(){return m.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:o,type:c,tags:i}=e;a.info("commit",r,o,c,i),a.debug("Entering commit:",r,o,c,i);let l=V();o=k.sanitizeText(o,l),r=k.sanitizeText(r,l),i=i?.map((s)=>k.sanitizeText(s,l));let n={id:o?o:m.records.seq+"-"+se(),message:r,seq:m.records.seq++,type:c??C.NORMAL,tags:i??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=n,a.info("main branch",l.mainBranchName),m.records.commits.has(n.id))a.warn(`Commit ID ${n.id} already exists`);m.records.commits.set(n.id,n),m.records.branches.set(m.records.currBranch,n.id),a.debug("in pushCommit "+n.id)},"commit"),Me=t(function(e){let{name:r,order:o}=e;if(r=k.sanitizeText(r,V()),m.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:o}),ye(r),a.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:o,type:c,tags:i}=e,l=V();if(r=k.sanitizeText(r,l),o)o=k.sanitizeText(o,l);let n=m.records.branches.get(m.records.currBranch),s=m.records.branches.get(r),g=n?m.records.commits.get(n):void 0,p=s?m.records.commits.get(s):void 0;if(g&&p&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!m.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(p===void 0||!p){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===p){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(o&&m.records.commits.has(o)){let d=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${o} ${c} ${i?.join(" ")}`,token:`merge ${r} ${o} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${o}_UNIQUE ${c} ${i?.join(" ")}`]},d}let y=s?s:"",f={id:o||`${m.records.seq}-${se()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,y],branch:m.records.currBranch,type:C.MERGE,customType:c,customId:o?!0:!1,tags:i??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),a.debug(m.records.branches),a.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:o,tags:c,parent:i}=e;a.debug("Entering cherryPick:",r,o,c);let l=V();if(r=k.sanitizeText(r,l),o=k.sanitizeText(o,l),c=c?.map((g)=>k.sanitizeText(g,l)),i=k.sanitizeText(i,l),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},g}let n=m.records.commits.get(r);if(n===void 0||!n)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(n.parents)&&n.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=n.branch;if(n.type===C.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(s===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let p=m.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let y={id:m.records.seq+"-"+se(),message:`cherry-picked ${n?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,n.id],branch:m.records.currBranch,type:C.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${n.id}${n.type===C.MERGE?`|parent:${i}`:""}`]};m.records.head=y,m.records.commits.set(y.id,y),m.records.branches.set(m.records.currBranch,y.id),a.debug(m.records.branches),a.debug("in cherryPick")}},"cherryPick"),ye=t(function(e){if(e=k.sanitizeText(e,V()),!m.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function de(e,r,o){let c=e.indexOf(r);if(c===-1)e.push(o);else e.splice(c,1,o)}t(de,"upsert");function le(e){let r=e.reduce((i,l)=>{if(i.seq>l.seq)return i;return l},e[0]),o="";e.forEach(function(i){if(i===r)o+="\t*";else o+="\t|"});let c=[o,r.id,r.seq];for(let i in m.records.branches)if(m.records.branches.get(i)===r.id)c.push(i);if(a.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=m.records.commits.get(r.parents[0]);if(de(e,r,i),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=m.records.commits.get(r.parents[0]);de(e,r,i)}e=pe(e,(i)=>i.id),le(e)}t(le,"prettyPrintCommitHistory");var Oe=t(function(){a.debug(m.records.commits);let e=xe()[0];le([e])},"prettyPrint"),Ie=t(function(){m.reset(),A()},"clear"),_e=t(function(){return[...m.records.branchConfig.values()].map((r,o)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${o}`)}}).sort((r,o)=>(r.order??0)-(o.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return m.records.branches},"getBranches"),De=t(function(){return m.records.commits},"getCommits"),xe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){a.debug(r.id)}),e.sort((r,o)=>r.seq-o.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ue={commitType:C,getConfig:V,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:R,getAccTitle:I,getAccDescription:D,setAccDescription:L,setDiagramTitle:P,getDiagramTitle:N},He=t((e,r)=>{if(re(e,r),e.dir)r.setDirection(e.dir);for(let o of e.statements)Se(o,r)},"populate"),Se=t((e,r)=>{let c={Commit:t((i)=>r.commit(Ne(i)),"Commit"),Branch:t((i)=>r.branch(Fe(i)),"Branch"),Merge:t((i)=>r.merge(ze(i)),"Merge"),Checkout:t((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:t((i)=>r.cherryPick(je(i)),"CherryPicking")}[e.$type];if(c)c(e);else a.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?C[e.type]:C.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?C[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await fe("gitGraph",e);a.debug(r),He(r,ue)},"parse")},Y=10,j=40,W=4,H=2,K=8,ne=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),he=12,me=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),U=t((e,r,o=!1)=>{if(o&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),O=new Map,_=new Map,ae=30,Q=new Map,oe=[],z=0,b="LR",Ve=t(()=>{O.clear(),_.clear(),Q.clear(),z=0,oe=[],b="LR"},"clear"),be=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=t((e)=>{let r,o,c;if(b==="BT")o=t((i,l)=>i<=l,"comparisonFunc"),c=1/0;else o=t((i,l)=>i>=l,"comparisonFunc"),c=0;return e.forEach((i)=>{let l=b==="TB"||b=="BT"?_.get(i)?.y:_.get(i)?.x;if(l!==void 0&&o(l,c))r=i,c=l}),r},"findClosestParent"),Ze=t((e)=>{let r="",o=1/0;return e.forEach((c)=>{let i=_.get(c).y;if(i<=o)r=c,o=i}),r||void 0},"findClosestParentBT"),Xe=t((e,r,o)=>{let c=o,i=o,l=[];e.forEach((n)=>{let s=r.get(n);if(!s)throw Error(`Commit not found for key ${n}`);if(s.parents.length)c=Qe(s),i=Math.max(c,i);else l.push(s);et(s,c)}),c=i,l.forEach((n)=>{tt(n,c,o)}),e.forEach((n)=>{let s=r.get(n);if(s?.parents.length){let g=Ze(s.parents);if(c=_.get(g).y-j,c<=i)i=c;let p=O.get(s.branch).pos,y=c-Y;_.set(s.id,{x:p,y})}})},"setParallelBTPos"),Je=t((e)=>{let r=we(e.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let o=_.get(r)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return o},"findClosestParentPos"),Qe=t((e)=>Je(e)+j,"calculateCommitPosition"),et=t((e,r)=>{let o=O.get(e.branch);if(!o)throw Error(`Branch not found for commit ${e.id}`);let c=o.pos,i=r+Y;return _.set(e.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=t((e,r,o)=>{let c=O.get(e.branch);if(!c)throw Error(`Branch not found for commit ${e.id}`);let i=r+o,l=c.pos;_.set(e.id,{x:l,y:i})},"setRootPosition"),rt=t((e,r,o,c,i,l)=>{let{theme:n}=u(),s=ne.has(n??""),g=me.has(n??""),p=Ue.has(n??"");if(l===C.HIGHLIGHT)e.append("rect").attr("x",o.x-10+(s?3:0)).attr("y",o.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${U(i,K,g)} ${c}-outer`),e.append("rect").attr("x",o.x-6+(s?2:0)).attr("y",o.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${U(i,K,g)} ${c}-inner`);else if(l===C.CHERRY_PICK)e.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),e.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let y=e.append("circle");if(y.attr("cx",o.x),y.attr("cy",o.y),y.attr("r",s?7:10),y.attr("class",`commit ${r.id} commit${U(i,K,g)}`),l===C.MERGE){let f=e.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",s?5:6),f.attr("class",`commit ${c} ${r.id} commit${U(i,K,g)}`)}if(l===C.REVERSE){let f=e.append("path"),d=s?4:5;f.attr("d",`M ${o.x-d},${o.y-d}L${o.x+d},${o.y+d}M${o.x-d},${o.y+d}L${o.x+d},${o.y-d}`).attr("class",`commit ${c} ${r.id} commit${U(i,K,g)}`)}}},"drawCommitBullet"),at=t((e,r,o,c,i)=>{if(r.type!==C.CHERRY_PICK&&(r.customId&&r.type===C.MERGE||r.type!==C.MERGE)&&i.showCommitLabel){let l=e.append("g"),n=l.insert("rect").attr("class","commit-label-bkg"),s=l.append("text").attr("x",c).attr("y",o.y+25).attr("class","commit-label").text(r.id),g=s.node()?.getBBox();if(g){if(n.attr("x",o.posWithOffset-g.width/2-H).attr("y",o.y+13.5).attr("width",g.width+2*H).attr("height",g.height+2*H),b==="TB"||b==="BT")n.attr("x",o.x-(g.width+4*W+5)).attr("y",o.y-12),s.attr("x",o.x-(g.width+4*W)).attr("y",o.y+g.height-12);else s.attr("x",o.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(b==="TB"||b==="BT")s.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let p=-7.5-(g.width+10)/25*9.5,y=10+g.width/25*8.5;l.attr("transform","translate("+p+", "+y+") rotate(-45, "+c+", "+o.y+")")}}}},"drawCommitLabel"),ot=t((e,r,o,c)=>{if(r.tags.length>0){let i=0,l=0,n=0,s=[];for(let g of r.tags.reverse()){let p=e.insert("polygon"),y=e.append("circle"),f=e.append("text").attr("y",o.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");l=Math.max(l,d.width),n=Math.max(n,d.height),f.attr("x",o.posWithOffset-d.width/2),s.push({tag:f,hole:y,rect:p,yOffset:i}),i+=20}for(let{tag:g,hole:p,rect:y,yOffset:f}of s){let d=n/2,w=o.y-19.2-f;if(y.attr("class","tag-label-bkg").attr("points",`
2
+ ${c-l/2-W/2},${w+H}
3
+ ${c-l/2-W/2},${w-H}
4
+ ${o.posWithOffset-l/2-W},${w-d-H}
5
+ ${o.posWithOffset+l/2+W},${w-d-H}
6
+ ${o.posWithOffset+l/2+W},${w+d+H}
7
+ ${o.posWithOffset-l/2-W},${w+d+H}`),p.attr("cy",w).attr("cx",c-l/2+W/2).attr("r",1.5).attr("class","tag-hole"),b==="TB"||b==="BT"){let x=c+f;y.attr("class","tag-label-bkg").attr("points",`
8
8
  ${o.x},${x+2}
9
9
  ${o.x},${x-2}
10
10
  ${o.x+Y},${x-d-2}
11
11
  ${o.x+Y+l+4},${x-d-2}
12
12
  ${o.x+Y+l+4},${x+d+2}
13
- ${o.x+Y},${x+d+2}`).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),p.attr("cx",o.x+q/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),g.attr("x",o.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+o.x+","+c+")")}}}},"drawCommitTags"),st=t((e)=>{switch(e.customType??e.type){case C.NORMAL:return"commit-normal";case C.REVERSE:return"commit-reverse";case C.HIGHLIGHT:return"commit-highlight";case C.MERGE:return"commit-merge";case C.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=t((e,r,o,c)=>{let i={x:0,y:0};if(e.parents.length>0){let l=we(e.parents);if(l){let n=c.get(l)??i;if(r==="TB")return n.y+j;else if(r==="BT")return(c.get(e.id)??i).y-j;else return n.x+j}}else if(r==="TB")return ae;else if(r==="BT")return(c.get(e.id)??i).y-j;else return 0;return 0},"calculatePosition"),ct=t((e,r,o)=>{let c=b==="BT"&&o?r:r+Y,i=_.get(e.branch)?.pos,l=b==="TB"||b==="BT"?_.get(e.branch)?.pos:c;if(l===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let n=ne.has(u().theme??""),s=b==="TB"||b==="BT"?c:i+(n?he/2+1:-2);return{x:l,y:s,posWithOffset:c}},"getCommitPosition"),$e=t((e,r,o,c)=>{let i=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),n=b==="TB"||b==="BT"?ae:0,s=[...r.keys()],g=c.parallelCommits??!1,p=t((f,d)=>{let w=r.get(f)?.seq,x=r.get(d)?.seq;return w!==void 0&&x!==void 0?w-x:0},"sortKeys"),y=s.sort(p);if(b==="BT"){if(g)Xe(y,r,n);y=y.reverse()}y.forEach((f)=>{let d=r.get(f);if(!d)throw Error(`Commit not found for key ${f}`);if(g)n=nt(d,b,n,G);let w=ct(d,n,g);if(o){let x=st(d),v=d.customType??d.type,E=_.get(d.branch)?.index??0;rt(i,d,w,x,E,v),at(l,d,w,n,c),ot(l,d,w,n)}if(b==="TB"||b==="BT")G.set(d.id,{x:w.x,y:w.posWithOffset});else G.set(d.id,{x:w.posWithOffset,y:w.y});if(n=b==="BT"&&g?n+j:n+j+Y,n>z)z=n})},"drawCommits"),it=t((e,r,o,c,i)=>{let n=(b==="TB"||b==="BT"?o.x<c.x:o.y<c.y)?r.branch:e.branch,s=t((p)=>p.branch===n,"isOnBranchToGetCurve"),g=t((p)=>p.seq>e.seq&&p.seq<r.seq,"isBetweenCommits");return[...i.values()].some((p)=>g(p)&&s(p))},"shouldRerouteArrow"),ee=t((e,r,o=0)=>{let c=e+Math.abs(e-r)/2;if(o>5)return c;if(oe.every((n)=>Math.abs(n-c)>=10))return oe.push(c),c;let l=Math.abs(e-r);return ee(e,r-l/5,o+1)},"findLane"),dt=t((e,r,o,c)=>{let{theme:i}=u(),l=me.has(i??""),n=G.get(r.id),s=G.get(o.id);if(n===void 0||s===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${o.id}`);let g=it(r,o,n,s,c),p="",y="",f=0,d=0,w=_.get(o.branch)?.index;if(o.type===C.MERGE&&r.id!==o.parents[0])w=_.get(r.branch)?.index;let x;if(g){p="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",f=10,d=10;let v=n.y<s.y?ee(n.y,s.y):ee(s.y,n.y),E=n.x<s.x?ee(n.x,s.x):ee(s.x,n.x);if(b==="TB")if(n.x<s.x)x=`M ${n.x} ${n.y} L ${E-f} ${n.y} ${y} ${E} ${n.y+d} L ${E} ${s.y-f} ${p} ${E+d} ${s.y} L ${s.x} ${s.y}`;else w=_.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${E+f} ${n.y} ${p} ${E} ${n.y+d} L ${E} ${s.y-f} ${y} ${E-d} ${s.y} L ${s.x} ${s.y}`;else if(b==="BT")if(n.x<s.x)x=`M ${n.x} ${n.y} L ${E-f} ${n.y} ${p} ${E} ${n.y-d} L ${E} ${s.y+f} ${y} ${E+d} ${s.y} L ${s.x} ${s.y}`;else w=_.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${E+f} ${n.y} ${y} ${E} ${n.y-d} L ${E} ${s.y+f} ${p} ${E-d} ${s.y} L ${s.x} ${s.y}`;else if(n.y<s.y)x=`M ${n.x} ${n.y} L ${n.x} ${v-f} ${p} ${n.x+d} ${v} L ${s.x-f} ${v} ${y} ${s.x} ${v+d} L ${s.x} ${s.y}`;else w=_.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${n.x} ${v+f} ${y} ${n.x+d} ${v} L ${s.x-f} ${v} ${p} ${s.x} ${v-d} L ${s.x} ${s.y}`}else if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,b==="TB"){if(n.x<s.x)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${p} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${y} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;if(n.x>s.x)if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${y} ${n.x-d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x+f} ${n.y} ${p} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;if(n.x===s.x)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}else if(b==="BT"){if(n.x<s.x)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${y} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${p} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;if(n.x>s.x)if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${p} ${n.x-d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x+f} ${n.y} ${y} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;if(n.x===s.x)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}else{if(n.y<s.y)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${y} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${p} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;if(n.y>s.y)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${p} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${y} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;if(n.y===s.y)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}if(x===void 0)throw Error("Line definition not found");e.append("path").attr("d",x).attr("class","arrow arrow"+U(w,K,l))},"drawArrow"),ht=t((e,r)=>{let o=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach((c)=>{let i=r.get(c);if(i.parents&&i.parents.length>0)i.parents.forEach((l)=>{dt(o,r.get(l),i,r)})})},"drawArrows"),lt=t((e,r,o,c)=>{let{look:i,theme:l,themeVariables:n}=u(),{dropShadow:s,THEME_COLOR_LIMIT:g}=n,p=ne.has(l??""),y=me.has(l??""),f=e.append("g");r.forEach((d,w)=>{let x=U(w,p?g:K,y),v=_.get(d.name)?.pos;if(v===void 0)throw Error(`Position not found for branch ${d.name}`);let E=b==="TB"||b==="BT"?v:p?v+he/2+1:v-2,T=f.append("line");if(T.attr("x1",0),T.attr("y1",E),T.attr("x2",z),T.attr("y2",E),T.attr("class","branch branch"+x),b==="TB")T.attr("y1",ae),T.attr("x1",v),T.attr("y2",z),T.attr("x2",v);else if(b==="BT")T.attr("y1",z),T.attr("x1",v),T.attr("y2",ae),T.attr("x2",v);oe.push(E);let ce=d.name,J=be(ce),W=f.insert("rect"),H=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+x);H.node().appendChild(J);let O=J.getBBox(),ge=p?0:4,te=p?16:0,Z=p?he:0;if(i==="neo")W.attr("data-look","neo");if(W.attr("class","branchLabelBkg label"+x).attr("style",i==="neo"?`filter:${p?`url(#${c}-drop-shadow)`:s}`:"").attr("rx",ge).attr("ry",ge).attr("x",-O.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-O.height/2+10).attr("width",O.width+18+te).attr("height",O.height+4+Z),H.attr("transform","translate("+(-O.width-14-(o.rotateCommitLabel===!0?30:0)+te/2)+", "+(E-O.height/2-2)+")"),b==="TB"){if(W.attr("x",v-O.width/2-10).attr("y",0),H.attr("transform","translate("+(v-O.width/2-5)+", 0)"),p)W.attr("transform",`translate(${-te/2-3}, ${-Z-10})`),H.attr("transform","translate("+(v-O.width/2-5)+", "+(-Z*2+7)+")")}else if(b==="BT"){if(W.attr("x",v-O.width/2-10).attr("y",z),H.attr("transform","translate("+(v-O.width/2-5)+", "+z+")"),p)W.attr("transform",`translate(${-te/2-3}, ${Z+10})`),H.attr("transform","translate("+(v-O.width/2-5)+", "+(z+Z*2+4)+")")}else W.attr("transform","translate(-19, "+(E-12-Z/2)+")")})},"drawBranches"),mt=t(function(e,r,o,c,i){return _.set(e,{pos:r,index:o}),r+=50+(i?40:0)+(b==="TB"||b==="BT"?c.width/2:0),r},"setBranchPosition"),gt=t(function(e,r,o,c){Ve(),a.debug("in gitgraph renderer",e+`
14
- `,"id:",r,o);let i=c.db;if(!i.getConfig){a.error("getConfig method is not available on db");return}let l=i.getConfig(),n=l.rotateCommitLabel??!1;Q=i.getCommits();let s=i.getBranchesAsObjArray();b=i.getDirection();let g=h(`[id="${r}"]`),{look:p,theme:y,themeVariables:f}=u(),{useGradient:d,gradientStart:w,gradientStop:x,filterColor:v}=f;if(d){let T=g.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",w).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}if(p==="neo"&&ne.has(y??""))g.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",v);let E=0;if(s.forEach((T,ce)=>{let J=be(T.name),W=g.append("g"),ie=W.insert("g").attr("class","branchLabel"),H=ie.insert("g").attr("class","label branch-label");H.node()?.appendChild(J);let O=J.getBBox();E=mt(T.name,E,ce,O,n),H.remove(),ie.remove(),W.remove()}),$e(g,Q,!1,l),l.showBranches)lt(g,s,l,r);ht(g,Q),$e(g,Q,!0,l),F.insertTitle(g,"gitTitleText",l.titleTopMargin??0,i.getDiagramTitle()),za(void 0,g,l.diagramPadding,l.useMaxWidth)},"draw"),ft={draw:gt},Be=8,ke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=t((e)=>{let{svgId:r}=e,o="";if(e.useGradient&&r)for(let c=0;c<e.THEME_COLOR_LIMIT;c++)o+=`
13
+ ${o.x+Y},${x+d+2}`).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),p.attr("cx",o.x+W/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+o.x+","+c+")"),g.attr("x",o.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+o.x+","+c+")")}}}},"drawCommitTags"),st=t((e)=>{switch(e.customType??e.type){case C.NORMAL:return"commit-normal";case C.REVERSE:return"commit-reverse";case C.HIGHLIGHT:return"commit-highlight";case C.MERGE:return"commit-merge";case C.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=t((e,r,o,c)=>{let i={x:0,y:0};if(e.parents.length>0){let l=we(e.parents);if(l){let n=c.get(l)??i;if(r==="TB")return n.y+j;else if(r==="BT")return(c.get(e.id)??i).y-j;else return n.x+j}}else if(r==="TB")return ae;else if(r==="BT")return(c.get(e.id)??i).y-j;else return 0;return 0},"calculatePosition"),ct=t((e,r,o)=>{let c=b==="BT"&&o?r:r+Y,i=O.get(e.branch)?.pos,l=b==="TB"||b==="BT"?O.get(e.branch)?.pos:c;if(l===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let n=ne.has(u().theme??""),s=b==="TB"||b==="BT"?c:i+(n?he/2+1:-2);return{x:l,y:s,posWithOffset:c}},"getCommitPosition"),$e=t((e,r,o,c)=>{let i=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),n=b==="TB"||b==="BT"?ae:0,s=[...r.keys()],g=c.parallelCommits??!1,p=t((f,d)=>{let w=r.get(f)?.seq,x=r.get(d)?.seq;return w!==void 0&&x!==void 0?w-x:0},"sortKeys"),y=s.sort(p);if(b==="BT"){if(g)Xe(y,r,n);y=y.reverse()}y.forEach((f)=>{let d=r.get(f);if(!d)throw Error(`Commit not found for key ${f}`);if(g)n=nt(d,b,n,_);let w=ct(d,n,g);if(o){let x=st(d),v=d.customType??d.type,E=O.get(d.branch)?.index??0;rt(i,d,w,x,E,v),at(l,d,w,n,c),ot(l,d,w,n)}if(b==="TB"||b==="BT")_.set(d.id,{x:w.x,y:w.posWithOffset});else _.set(d.id,{x:w.posWithOffset,y:w.y});if(n=b==="BT"&&g?n+j:n+j+Y,n>z)z=n})},"drawCommits"),it=t((e,r,o,c,i)=>{let n=(b==="TB"||b==="BT"?o.x<c.x:o.y<c.y)?r.branch:e.branch,s=t((p)=>p.branch===n,"isOnBranchToGetCurve"),g=t((p)=>p.seq>e.seq&&p.seq<r.seq,"isBetweenCommits");return[...i.values()].some((p)=>g(p)&&s(p))},"shouldRerouteArrow"),ee=t((e,r,o=0)=>{let c=e+Math.abs(e-r)/2;if(o>5)return c;if(oe.every((n)=>Math.abs(n-c)>=10))return oe.push(c),c;let l=Math.abs(e-r);return ee(e,r-l/5,o+1)},"findLane"),dt=t((e,r,o,c)=>{let{theme:i}=u(),l=me.has(i??""),n=_.get(r.id),s=_.get(o.id);if(n===void 0||s===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${o.id}`);let g=it(r,o,n,s,c),p="",y="",f=0,d=0,w=O.get(o.branch)?.index;if(o.type===C.MERGE&&r.id!==o.parents[0])w=O.get(r.branch)?.index;let x;if(g){p="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",f=10,d=10;let v=n.y<s.y?ee(n.y,s.y):ee(s.y,n.y),E=n.x<s.x?ee(n.x,s.x):ee(s.x,n.x);if(b==="TB")if(n.x<s.x)x=`M ${n.x} ${n.y} L ${E-f} ${n.y} ${y} ${E} ${n.y+d} L ${E} ${s.y-f} ${p} ${E+d} ${s.y} L ${s.x} ${s.y}`;else w=O.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${E+f} ${n.y} ${p} ${E} ${n.y+d} L ${E} ${s.y-f} ${y} ${E-d} ${s.y} L ${s.x} ${s.y}`;else if(b==="BT")if(n.x<s.x)x=`M ${n.x} ${n.y} L ${E-f} ${n.y} ${p} ${E} ${n.y-d} L ${E} ${s.y+f} ${y} ${E+d} ${s.y} L ${s.x} ${s.y}`;else w=O.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${E+f} ${n.y} ${y} ${E} ${n.y-d} L ${E} ${s.y+f} ${p} ${E-d} ${s.y} L ${s.x} ${s.y}`;else if(n.y<s.y)x=`M ${n.x} ${n.y} L ${n.x} ${v-f} ${p} ${n.x+d} ${v} L ${s.x-f} ${v} ${y} ${s.x} ${v+d} L ${s.x} ${s.y}`;else w=O.get(r.branch)?.index,x=`M ${n.x} ${n.y} L ${n.x} ${v+f} ${y} ${n.x+d} ${v} L ${s.x-f} ${v} ${p} ${s.x} ${v-d} L ${s.x} ${s.y}`}else if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,b==="TB"){if(n.x<s.x)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${p} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${y} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;if(n.x>s.x)if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${y} ${n.x-d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x+f} ${n.y} ${p} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;if(n.x===s.x)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}else if(b==="BT"){if(n.x<s.x)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${y} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${p} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;if(n.x>s.x)if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,d=20,o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${p} ${n.x-d} ${s.y} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${s.x+f} ${n.y} ${y} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;if(n.x===s.x)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}else{if(n.y<s.y)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${y} ${s.x} ${n.y+d} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${n.x} ${s.y-f} ${p} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;if(n.y>s.y)if(o.type===C.MERGE&&r.id!==o.parents[0])x=`M ${n.x} ${n.y} L ${s.x-f} ${n.y} ${p} ${s.x} ${n.y-d} L ${s.x} ${s.y}`;else x=`M ${n.x} ${n.y} L ${n.x} ${s.y+f} ${y} ${n.x+d} ${s.y} L ${s.x} ${s.y}`;if(n.y===s.y)x=`M ${n.x} ${n.y} L ${s.x} ${s.y}`}if(x===void 0)throw Error("Line definition not found");e.append("path").attr("d",x).attr("class","arrow arrow"+U(w,K,l))},"drawArrow"),ht=t((e,r)=>{let o=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach((c)=>{let i=r.get(c);if(i.parents&&i.parents.length>0)i.parents.forEach((l)=>{dt(o,r.get(l),i,r)})})},"drawArrows"),lt=t((e,r,o,c)=>{let{look:i,theme:l,themeVariables:n}=u(),{dropShadow:s,THEME_COLOR_LIMIT:g}=n,p=ne.has(l??""),y=me.has(l??""),f=e.append("g");r.forEach((d,w)=>{let x=U(w,p?g:K,y),v=O.get(d.name)?.pos;if(v===void 0)throw Error(`Position not found for branch ${d.name}`);let E=b==="TB"||b==="BT"?v:p?v+he/2+1:v-2,T=f.append("line");if(T.attr("x1",0),T.attr("y1",E),T.attr("x2",z),T.attr("y2",E),T.attr("class","branch branch"+x),b==="TB")T.attr("y1",ae),T.attr("x1",v),T.attr("y2",z),T.attr("x2",v);else if(b==="BT")T.attr("y1",z),T.attr("x1",v),T.attr("y2",ae),T.attr("x2",v);oe.push(E);let ce=d.name,J=be(ce),G=f.insert("rect"),q=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+x);q.node().appendChild(J);let M=J.getBBox(),ge=p?0:4,te=p?16:0,Z=p?he:0;if(i==="neo")G.attr("data-look","neo");if(G.attr("class","branchLabelBkg label"+x).attr("style",i==="neo"?`filter:${p?`url(#${c}-drop-shadow)`:s}`:"").attr("rx",ge).attr("ry",ge).attr("x",-M.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-M.height/2+10).attr("width",M.width+18+te).attr("height",M.height+4+Z),q.attr("transform","translate("+(-M.width-14-(o.rotateCommitLabel===!0?30:0)+te/2)+", "+(E-M.height/2-2)+")"),b==="TB"){if(G.attr("x",v-M.width/2-10).attr("y",0),q.attr("transform","translate("+(v-M.width/2-5)+", 0)"),p)G.attr("transform",`translate(${-te/2-3}, ${-Z-10})`),q.attr("transform","translate("+(v-M.width/2-5)+", "+(-Z*2+7)+")")}else if(b==="BT"){if(G.attr("x",v-M.width/2-10).attr("y",z),q.attr("transform","translate("+(v-M.width/2-5)+", "+z+")"),p)G.attr("transform",`translate(${-te/2-3}, ${Z+10})`),q.attr("transform","translate("+(v-M.width/2-5)+", "+(z+Z*2+4)+")")}else G.attr("transform","translate(-19, "+(E-12-Z/2)+")")})},"drawBranches"),mt=t(function(e,r,o,c,i){return O.set(e,{pos:r,index:o}),r+=50+(i?40:0)+(b==="TB"||b==="BT"?c.width/2:0),r},"setBranchPosition"),gt=t(function(e,r,o,c){Ve(),a.debug("in gitgraph renderer",e+`
14
+ `,"id:",r,o);let i=c.db;if(!i.getConfig){a.error("getConfig method is not available on db");return}let l=i.getConfig(),n=l.rotateCommitLabel??!1;Q=i.getCommits();let s=i.getBranchesAsObjArray();b=i.getDirection();let g=h(`[id="${r}"]`),{look:p,theme:y,themeVariables:f}=u(),{useGradient:d,gradientStart:w,gradientStop:x,filterColor:v}=f;if(d){let T=g.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",w).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}if(p==="neo"&&ne.has(y??""))g.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",v);let E=0;if(s.forEach((T,ce)=>{let J=be(T.name),G=g.append("g"),ie=G.insert("g").attr("class","branchLabel"),q=ie.insert("g").attr("class","label branch-label");q.node()?.appendChild(J);let M=J.getBBox();E=mt(T.name,E,ce,M,n),q.remove(),ie.remove(),G.remove()}),$e(g,Q,!1,l),l.showBranches)lt(g,s,l,r);ht(g,Q),$e(g,Q,!0,l),F.insertTitle(g,"gitTitleText",l.titleTopMargin??0,i.getDiagramTitle()),za(void 0,g,l.diagramPadding,l.useMaxWidth)},"draw"),ft={draw:gt},Be=8,ke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=t((e)=>{let{svgId:r}=e,o="";if(e.useGradient&&r)for(let c=0;c<e.THEME_COLOR_LIMIT;c++)o+=`
15
15
  .label${c} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
16
16
  `;return o},"genGitGraphGradient"),bt=t((e)=>{let r=S(),{theme:o,themeVariables:c}=r,{borderColorArray:i}=c,l=ke.has(o);if(pt.has(o)){let n="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)if(s===0)n+=`
17
17
  .branch-label${s} { fill: ${e.nodeBorder};}
Binary file
Binary file
@@ -1 +1 @@
1
- import{ee,r,e,n,y,ye,oe}from"./chunk-qjg6dw46.js";import{jn,Hr}from"./chunk-kedjfh66.js";import"./chunk-recfg8af.js";function B({connection:p}){let{Button:l,ModelIcon:u,ModelSelector:f,SettingGroup:d,SettingRow:h,Switch:v,cn:x}=y(),c=ee(),[S,b]=r(""),s=Hr({connection:p,endpoint:"/api/plugins/agents/settings",loadError:"读取理事会设置失败",toBody:(t)=>({schemaVersion:1,models:t.models,research:t.research}),differs:(t,i)=>JSON.stringify(t.models)!==JSON.stringify(i.models)||t.research!==i.research}),N=(t)=>{if(!t)return;s.edit((i)=>{if(i.models.includes(t)||i.models.length>=8)return i;return{...i,models:[...i.models,t]}}),b("")},k=(t)=>{s.edit((i)=>({...i,models:i.models.filter((o)=>o!==t)}))},a=s.settings?.models??[];return n("form",{id:c,onSubmit:s.save,className:"min-w-0 space-y-5",children:[e(d,{title:"参会模型",description:`已选 ${a.length}/8,至少 2 个模型参与群聊交叉审查`,children:n("ul",{className:"divide-y divide-line/60",children:[a.map((t)=>{let i=s.modelList.models.find((C)=>C.id===t),o=t.indexOf("/"),m=o<0?"":t.slice(0,o),g=i?.name??(o<0?t:t.slice(o+1));return n("li",{title:t,className:"group flex min-h-11 items-center gap-3",children:[e("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-raised",children:e(u,{modelID:t,className:"size-4",size:16})}),e("span",{className:"min-w-0 flex-1 truncate text-[13px] text-ink",children:g}),m&&e("span",{className:"max-w-32 shrink-0 truncate text-xs text-faint",children:m}),e(l,{type:"button",size:"icon-xs",variant:"ghost",disabled:s.loading||s.saving,"aria-label":`移除 ${g}`,onClick:()=>k(t),className:"text-faint opacity-40 group-hover:opacity-100 hover:text-danger focus-visible:opacity-100",children:e(oe,{className:"size-3.5"})})]},t)}),a.length<8&&n("li",{className:"flex items-center gap-2",children:[e("div",{className:"min-w-0 flex-1",children:e(f,{variant:"add",models:{models:s.modelList.models.filter((t)=>!a.includes(t.id))},value:S,onChange:N})}),e(l,{type:"button",size:"icon-xs",variant:"ghost",disabled:s.loading||s.refreshing||s.saving,"aria-label":"刷新模型列表",title:"刷新模型列表",onClick:()=>void s.load(!0),className:"text-faint hover:text-ink",children:e(ye,{className:x("size-3.5",s.refreshing&&"animate-spin")})})]})]})}),e(d,{title:"流程",children:e(h,{title:"调研阶段",description:"表态前各自先查证,关闭后直接发表意见",children:e(v,{label:"调研阶段",checked:s.settings?.research??!0,disabled:s.loading||s.saving,onCheckedChange:(t)=>{s.edit((i)=>({...i,research:t}))}})})}),e(jn,{formID:c,notice:s.notice,dirty:s.dirty,busy:s.loading||s.saving,saving:s.saving,onReset:s.reset})]})}export{B as CouncilSettingsSection};
1
+ import{ee,r,e,n,y,ye,oe}from"./chunk-2s6fhjjc.js";import{jn,Hr}from"./chunk-79whhay2.js";import"./chunk-wvdk3w03.js";function B({connection:p}){let{Button:l,ModelIcon:u,ModelSelector:f,SettingGroup:d,SettingRow:h,Switch:v,cn:x}=y(),c=ee(),[S,b]=r(""),s=Hr({connection:p,endpoint:"/api/plugins/agents/settings",loadError:"读取理事会设置失败",toBody:(t)=>({schemaVersion:1,models:t.models,research:t.research}),differs:(t,i)=>JSON.stringify(t.models)!==JSON.stringify(i.models)||t.research!==i.research}),N=(t)=>{if(!t)return;s.edit((i)=>{if(i.models.includes(t)||i.models.length>=8)return i;return{...i,models:[...i.models,t]}}),b("")},k=(t)=>{s.edit((i)=>({...i,models:i.models.filter((o)=>o!==t)}))},a=s.settings?.models??[];return n("form",{id:c,onSubmit:s.save,className:"min-w-0 space-y-5",children:[e(d,{title:"参会模型",description:`已选 ${a.length}/8,至少 2 个模型参与群聊交叉审查`,children:n("ul",{className:"divide-y divide-line/60",children:[a.map((t)=>{let i=s.modelList.models.find((C)=>C.id===t),o=t.indexOf("/"),m=o<0?"":t.slice(0,o),g=i?.name??(o<0?t:t.slice(o+1));return n("li",{title:t,className:"group flex min-h-11 items-center gap-3",children:[e("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-raised",children:e(u,{modelID:t,className:"size-4",size:16})}),e("span",{className:"min-w-0 flex-1 truncate text-[13px] text-ink",children:g}),m&&e("span",{className:"max-w-32 shrink-0 truncate text-xs text-faint",children:m}),e(l,{type:"button",size:"icon-xs",variant:"ghost",disabled:s.loading||s.saving,"aria-label":`移除 ${g}`,onClick:()=>k(t),className:"text-faint opacity-40 group-hover:opacity-100 hover:text-danger focus-visible:opacity-100",children:e(oe,{className:"size-3.5"})})]},t)}),a.length<8&&n("li",{className:"flex items-center gap-2",children:[e("div",{className:"min-w-0 flex-1",children:e(f,{variant:"add",models:{models:s.modelList.models.filter((t)=>!a.includes(t.id))},value:S,onChange:N})}),e(l,{type:"button",size:"icon-xs",variant:"ghost",disabled:s.loading||s.refreshing||s.saving,"aria-label":"刷新模型列表",title:"刷新模型列表",onClick:()=>void s.load(!0),className:"text-faint hover:text-ink",children:e(ye,{className:x("size-3.5",s.refreshing&&"animate-spin")})})]})]})}),e(d,{title:"流程",children:e(h,{title:"调研阶段",description:"表态前各自先查证,关闭后直接发表意见",children:e(v,{label:"调研阶段",checked:s.settings?.research??!0,disabled:s.loading||s.saving,onCheckedChange:(t)=>{s.edit((i)=>({...i,research:t}))}})})}),e(jn,{formID:c,notice:s.notice,dirty:s.dirty,busy:s.loading||s.saving,saving:s.saving,onReset:s.reset})]})}export{B as CouncilSettingsSection};
Binary file
Binary file
@@ -1 +1 @@
1
- import{r,p,e,n,y,s,be,le,Z,Pt}from"./chunk-qjg6dw46.js";var z=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],h=s("circle-slash",z);function B(t){if(!t||typeof t!=="object")return;if(!("id"in t)||typeof t.id!=="string")return;if(!("state"in t)||typeof t.state!=="string")return;return{id:t.id,state:t.state,command:"command"in t&&typeof t.command==="string"?t.command:void 0,code:"code"in t&&(t.code===null||typeof t.code==="number")?t.code:void 0,output:"output"in t&&typeof t.output==="string"?t.output:void 0}}function U(t){let{Button:N,Panel:b,style:k}=y(),i=B(t.payload),[a,c]=r(!1),[C,P]=r(!1),[u,m]=r();if(!i)return null;let o=C?"killed":i.state,d=o==="running",l=o==="exited"&&i.code===0,f=o==="killed"||o==="timeout",g=i.output?.trim(),I=async()=>{if(a)return;c(!0),m(void 0);try{await t.connection.request(`/api/sessions/${encodeURIComponent(t.sessionID)}/jobs/${encodeURIComponent(i.id)}/kill`,{method:"POST"}),P(!0)}catch(x){m(x instanceof Error?x.message:"停止失败,后台任务可能已结束")}finally{c(!1)}};return n(b,{className:"my-2",header:n(p,{children:[e(Pt,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"truncate font-mono text-ink/90",title:i.command??i.id,children:i.command??`任务 ${i.id}`})]}),actions:n(p,{children:[d&&n(p,{children:[n("span",{className:"flex items-center gap-1 text-warning",children:[e(le,{className:"size-3.5 animate-spin"}),e("span",{children:"后台运行中"})]}),e(N,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:a,onClick:()=>{I()},children:"停止"})]}),l&&n("span",{className:"flex items-center gap-1 text-success",children:[e(Z,{className:"size-3.5"}),e("span",{children:"已完成"})]}),f&&n("span",{className:"flex items-center gap-1 text-faint",children:[e(h,{className:"size-3.5"}),e("span",{children:o==="timeout"?"已超时":"已停止"})]}),!d&&!l&&!f&&n("span",{className:"flex items-center gap-1 text-danger",children:[e(be,{className:"size-3.5"}),n("span",{children:["退出码 ",i.code??"异常"]})]})]}),children:[u&&e("p",{role:"status",className:"border-b border-line px-4 py-2.5 text-xs text-danger",children:u}),g&&e("pre",{className:k("chat.toolOutput","max-h-60 text-ink/90 select-text"),children:g})]})}export{U as BashJobCard};
1
+ import{r,p,e,n,y,s,be,le,Z,Pt}from"./chunk-2s6fhjjc.js";var z=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],h=s("circle-slash",z);function B(t){if(!t||typeof t!=="object")return;if(!("id"in t)||typeof t.id!=="string")return;if(!("state"in t)||typeof t.state!=="string")return;return{id:t.id,state:t.state,command:"command"in t&&typeof t.command==="string"?t.command:void 0,code:"code"in t&&(t.code===null||typeof t.code==="number")?t.code:void 0,output:"output"in t&&typeof t.output==="string"?t.output:void 0}}function U(t){let{Button:N,Panel:b,style:k}=y(),i=B(t.payload),[a,c]=r(!1),[C,P]=r(!1),[u,m]=r();if(!i)return null;let o=C?"killed":i.state,d=o==="running",l=o==="exited"&&i.code===0,f=o==="killed"||o==="timeout",g=i.output?.trim(),I=async()=>{if(a)return;c(!0),m(void 0);try{await t.connection.request(`/api/sessions/${encodeURIComponent(t.sessionID)}/jobs/${encodeURIComponent(i.id)}/kill`,{method:"POST"}),P(!0)}catch(x){m(x instanceof Error?x.message:"停止失败,后台任务可能已结束")}finally{c(!1)}};return n(b,{className:"my-2",header:n(p,{children:[e(Pt,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"truncate font-mono text-ink/90",title:i.command??i.id,children:i.command??`任务 ${i.id}`})]}),actions:n(p,{children:[d&&n(p,{children:[n("span",{className:"flex items-center gap-1 text-warning",children:[e(le,{className:"size-3.5 animate-spin"}),e("span",{children:"后台运行中"})]}),e(N,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:a,onClick:()=>{I()},children:"停止"})]}),l&&n("span",{className:"flex items-center gap-1 text-success",children:[e(Z,{className:"size-3.5"}),e("span",{children:"已完成"})]}),f&&n("span",{className:"flex items-center gap-1 text-faint",children:[e(h,{className:"size-3.5"}),e("span",{children:o==="timeout"?"已超时":"已停止"})]}),!d&&!l&&!f&&n("span",{className:"flex items-center gap-1 text-danger",children:[e(be,{className:"size-3.5"}),n("span",{children:["退出码 ",i.code??"异常"]})]})]}),children:[u&&e("p",{role:"status",className:"border-b border-line px-4 py-2.5 text-xs text-danger",children:u}),g&&e("pre",{className:k("chat.toolOutput","max-h-60 text-ink/90 select-text"),children:g})]})}export{U as BashJobCard};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{bs}from"./chunk-et1nm6h1.js";export{bs as createTreemapServices};
@@ -0,0 +1,2 @@
1
+ $�import{bs}from"./chunk-et1nm6h1.js";export{bs as createTreemapServices};
2
+ 
Binary file
@@ -1,4 +1,4 @@
1
- import{wn,C}from"./chunk-qjg6dw46.js";var tn={};wn(tn,{AbnfAlternation:()=>Eo,AbnfConcatenation:()=>Co,AbnfElement:()=>mi,AbnfGroup:()=>bo,AbnfNumVal:()=>_o,AbnfOptionalGroup:()=>So,AbnfPrimary:()=>ur,AbnfRule:()=>yi,AbnfRuleName:()=>wo,AbnfStringLiteral:()=>Po,AbstractMermaidTokenBuilder:()=>ue,AbstractMermaidValueConverter:()=>Ie,Architecture:()=>ot,ArchitectureGrammarGeneratedModule:()=>Ml,Branch:()=>qn,Commit:()=>dr,CommonTokenBuilder:()=>kR,CommonValueConverter:()=>Je,Cynefin:()=>qt,CynefinGrammarGeneratedModule:()=>Dl,DomainBlock:()=>Hn,DomainItem:()=>xi,EbnfChoice:()=>ko,EbnfExceptionPostfix:()=>Io,EbnfGroup:()=>No,EbnfNonTerminal:()=>Oo,EbnfOneOrMorePostfix:()=>Mo,EbnfOptional:()=>Do,EbnfOptionalPostfix:()=>Lo,EbnfPostfix:()=>Hr,EbnfPrimary:()=>Ut,EbnfRepetition:()=>xo,EbnfRule:()=>gi,EbnfSequence:()=>Go,EbnfSpecial:()=>Fo,EbnfTerm:()=>vi,EbnfTerminal:()=>jo,EbnfZeroOrMorePostfix:()=>zo,EmDataEntity:()=>cr,EmFrame:()=>Vt,EmptyFileSystem:()=>oe,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Ht,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>Zr,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>mr,MermaidGeneratedSharedModule:()=>le,Packet:()=>hr,PacketBlock:()=>yr,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Bo,PegGroup:()=>Uo,PegIdentifier:()=>Vo,PegLiteral:()=>Ko,PegOrderedChoice:()=>Wo,PegPrefix:()=>Ti,PegPrimary:()=>Yr,PegRule:()=>$i,PegSequence:()=>qo,PegSuffix:()=>Ri,Pie:()=>Yt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>Yn,Radar:()=>Kt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>gr,RailroadAbnf:()=>vr,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Ho,RailroadEbnf:()=>Tr,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Yo,RailroadOneOrMoreExpr:()=>Xo,RailroadOptionalExpr:()=>Jo,RailroadPeg:()=>$r,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ai,RailroadSequenceExpr:()=>Zo,RailroadSpecialExpr:()=>Qo,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>fr,Transition:()=>Qr,TreeNode:()=>pr,TreeView:()=>Xr,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>Rr,TreemapGrammarGeneratedModule:()=>Wl,Wardley:()=>Oe,WardleyGrammarGeneratedModule:()=>Hl,__name:()=>i,createDefaultCoreModule:()=>ne,createDefaultSharedCoreModule:()=>ae,inject:()=>W,isArchitecture:()=>Vp,isBranch:()=>Kp,isCommit:()=>Wp,isCynefin:()=>qp,isDomainBlock:()=>Hp,isDomainItem:()=>Yp,isEmModelEntityType:()=>Xp,isEmResetFrame:()=>hi,isGitGraph:()=>Jp,isInfo:()=>Zp,isMerge:()=>Qp,isPacket:()=>ed,isPacketBlock:()=>td,isPie:()=>rd,isPieSection:()=>nd,isRailroad:()=>ad,isRailroadAbnf:()=>id,isRailroadEbnf:()=>sd,isRailroadPeg:()=>od,isTransition:()=>ld,isTreemap:()=>ud,isWardley:()=>cd});var{create:rA,defineProperty:Gi,getOwnPropertyDescriptor:nA,getOwnPropertyNames:Sf,getPrototypeOf:aA}=Object,iA=Object.prototype.hasOwnProperty,i=(e,t)=>Gi(e,"name",{value:t,configurable:!0}),sA=(e,t)=>function(){return e&&(t=(0,e[Sf(e)[0]])(e=0)),t},J=(e,t)=>function(){return t||(0,e[Sf(e)[0]])((t={exports:{}}).exports,t),t.exports},oA=(e,t)=>{for(var r in t)Gi(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of Sf(t))if(!iA.call(e,a)&&a!==r)Gi(e,a,{get:()=>t[a],enumerable:!(n=nA(t,a))||n.enumerable})}return e},wf=(e,t,r)=>(r=e!=null?rA(aA(e)):{},Nm(t||!e||!e.__esModule?Gi(r,"default",{value:e,enumerable:!0}):r,e)),Pf=(e)=>Nm(Gi({},"__esModule",{value:!0}),e),Fi=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=r,e.number=n,e.error=a,e.func=s,e.array=o,e.stringArray=l;function t(u){return u===!0||u===!1}i(t,"boolean");function r(u){return typeof u==="string"||u instanceof String}i(r,"string");function n(u){return typeof u==="number"||u instanceof Number}i(n,"number");function a(u){return u instanceof Error}i(a,"error");function s(u){return typeof u==="function"}i(s,"func");function o(u){return Array.isArray(u)}i(o,"array");function l(u){return o(u)&&u.every((c)=>r(c))}i(l,"stringArray")}}),Om=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?function(A,g,b,O){if(O===void 0)O=b;var w=Object.getOwnPropertyDescriptor(g,b);if(!w||("get"in w?!g.__esModule:w.writable||w.configurable))w={enumerable:!0,get:i(function(){return g[b]},"get")};Object.defineProperty(A,O,w)}:function(A,g,b,O){if(O===void 0)O=b;A[O]=g[b]}),r=e&&e.__setModuleDefault||(Object.create?function(A,g){Object.defineProperty(A,"default",{enumerable:!0,value:g})}:function(A,g){A.default=g}),n=e&&e.__importStar||function(){var A=i(function(g){return A=Object.getOwnPropertyNames||function(b){var O=[];for(var w in b)if(Object.prototype.hasOwnProperty.call(b,w))O[O.length]=w;return O},A(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var b={};if(g!=null){for(var O=A(g),w=0;w<O.length;w++)if(O[w]!=="default")t(b,g,O[w])}return r(b,g),b}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var a=n(Fi()),s;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32000,A.serverErrorEnd=-32000})(s||(e.ErrorCodes=s={}));var o=class A extends Error{static{i(this,"ResponseError")}code;data;constructor(g,b,O){super(b);this.code=a.number(g)?g:s.UnknownErrorCode,this.data=O,Object.setPrototypeOf(this,A.prototype)}toJson(){let g={code:this.code,message:this.message};if(this.data!==void 0)g.data=this.data;return g}};e.ResponseError=o;var l=class A{static{i(this,"ParameterStructures")}kind;static auto=new A("auto");static byPosition=new A("byPosition");static byName=new A("byName");constructor(g){this.kind=g}static is(g){return g===A.auto||g===A.byName||g===A.byPosition}toString(){return this.kind}};e.ParameterStructures=l;var u=class{static{i(this,"AbstractMessageSignature")}method;numberOfParams;constructor(A,g){this.method=A,this.numberOfParams=g}get parameterStructures(){return l.auto}};e.AbstractMessageSignature=u;var c=class extends u{static{i(this,"RequestType0")}_;constructor(A){super(A,0)}};e.RequestType0=c;var p=class extends u{static{i(this,"RequestType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType=p;var h=class extends u{static{i(this,"RequestType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType1=h;var y=class extends u{static{i(this,"RequestType2")}_;constructor(A){super(A,2)}};e.RequestType2=y;var d=class extends u{static{i(this,"RequestType3")}_;constructor(A){super(A,3)}};e.RequestType3=d;var E=class extends u{static{i(this,"RequestType4")}_;constructor(A){super(A,4)}};e.RequestType4=E;var T=class extends u{static{i(this,"RequestType5")}_;constructor(A){super(A,5)}};e.RequestType5=T;var v=class extends u{static{i(this,"RequestType6")}_;constructor(A){super(A,6)}};e.RequestType6=v;var R=class extends u{static{i(this,"RequestType7")}_;constructor(A){super(A,7)}};e.RequestType7=R;var P=class extends u{static{i(this,"RequestType8")}_;constructor(A){super(A,8)}};e.RequestType8=P;var S=class extends u{static{i(this,"RequestType9")}_;constructor(A){super(A,9)}};e.RequestType9=S;var D=class extends u{static{i(this,"NotificationType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType=D;var x=class extends u{static{i(this,"NotificationType0")}_;constructor(A){super(A,0)}};e.NotificationType0=x;var F=class extends u{static{i(this,"NotificationType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=F;var V=class extends u{static{i(this,"NotificationType2")}_;constructor(A){super(A,2)}};e.NotificationType2=V;var ee=class extends u{static{i(this,"NotificationType3")}_;constructor(A){super(A,3)}};e.NotificationType3=ee;var ce=class extends u{static{i(this,"NotificationType4")}_;constructor(A){super(A,4)}};e.NotificationType4=ce;var Z=class extends u{static{i(this,"NotificationType5")}_;constructor(A){super(A,5)}};e.NotificationType5=Z;var k=class extends u{static{i(this,"NotificationType6")}_;constructor(A){super(A,6)}};e.NotificationType6=k;var L=class extends u{static{i(this,"NotificationType7")}_;constructor(A){super(A,7)}};e.NotificationType7=L;var j=class extends u{static{i(this,"NotificationType8")}_;constructor(A){super(A,8)}};e.NotificationType8=j;var z=class extends u{static{i(this,"NotificationType9")}_;constructor(A){super(A,9)}};e.NotificationType9=z;var N;(function(A){function g(w){let M=w;return M&&a.string(M.method)&&(a.string(M.id)||a.number(M.id))}i(g,"isRequest"),A.isRequest=g;function b(w){let M=w;return M&&a.string(M.method)&&w.id===void 0}i(b,"isNotification"),A.isNotification=b;function O(w){let M=w;return M&&(M.result!==void 0||!!M.error)&&(a.string(M.id)||a.number(M.id)||M.id===null)}i(O,"isResponse"),A.isResponse=O})(N||(e.Message=N={}))}}),Mm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var t;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(t||(e.Touch=t={}));var r=class{static{i(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(a){let s=this._map.get(a);return s?s.previous?.value:void 0}after(a){let s=this._map.get(a);return s?s.next?.value:void 0}has(a){return this._map.has(a)}get(a,s=t.None){let o=this._map.get(a);if(!o)return;if(s!==t.None)this.touch(o,s);return o.value}set(a,s,o=t.None){let l=this._map.get(a);if(l){if(l.value=s,o!==t.None)this.touch(l,o)}else{switch(l={key:a,value:s,next:void 0,previous:void 0},o){case t.None:this.addItemLast(l);break;case t.First:this.addItemFirst(l);break;case t.Last:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(a,l),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){let s=this._map.get(a);if(!s)return;return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){let o=this._state,l=this._head;while(l){if(s)a.bind(s)(l.value,l.key,this);else a(l.value,l.key,this);if(this._state!==o)throw Error("LinkedMap got modified during iteration.");l=l.next}}keys(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}values(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}entries(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}[Symbol.iterator](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;while(s&&o>a)this._map.delete(s.key),s=s.next,o--;if(this._head=s,this._size=o,s)s.previous=void 0;this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(!this._head)throw Error("Invalid list");else a.next=this._head,this._head.previous=a;this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(!this._tail)throw Error("Invalid list");else a.previous=this._tail,this._tail.next=a;this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{let{next:s,previous:o}=a;if(!s||!o)throw Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw Error("Invalid list");if(s!==t.First&&s!==t.Last)return;if(s===t.First){if(a===this._head)return;let{next:o,previous:l}=a;if(a===this._tail)l.next=void 0,this._tail=l;else o.previous=l,l.next=o;a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===t.Last){if(a===this._tail)return;let{next:o,previous:l}=a;if(a===this._head)o.previous=void 0,this._head=o;else o.previous=l,l.next=o;a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}toJSON(){let a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(let[s,o]of a)this.set(s,o)}};e.LinkedMap=r;var n=class extends r{static{i(this,"LRUCache")}_limit;_ratio;constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,s=t.AsNew){return super.get(a,s)}peek(a){return super.get(a,t.None)}set(a,s){return super.set(a,s,t.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),lA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),an=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}i(r,"RAL"),function(n){function a(s){if(s===void 0)throw Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a}(r||(r={})),e.default=r}}),ji=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r=t(an()),n;(function(o){let l={dispose(){}};o.None=function(){return l}})(n||(e.Event=n={}));var a=class{static{i(this,"CallbackList")}_callbacks;_contexts;add(o,l=null,u){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(o),this._contexts.push(l),Array.isArray(u))u.push({dispose:i(()=>this.remove(o,l),"dispose")})}remove(o,l=null){if(!this._callbacks)return;let u=!1;for(let c=0,p=this._callbacks.length;c<p;c++)if(this._callbacks[c]===o)if(this._contexts[c]===l){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...o){if(!this._callbacks)return[];let l=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let p=0,h=u.length;p<h;p++)try{l.push(u[p].apply(c[p],o))}catch(y){(0,r.default)().console.error(y)}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class o{static{i(this,"Emitter")}_options;static _noop=i(function(){},"_noop");_event;_callbacks;constructor(l){this._options=l}get event(){if(!this._event)this._event=(l,u,c)=>{if(!this._callbacks)this._callbacks=new a;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(l,u);let p={dispose:i(()=>{if(!this._callbacks)return;if(this._callbacks.remove(l,u),p.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(c))c.push(p);return p};return this._event}fire(l){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,l)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=s}}),kf=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?function(y,d,E,T){if(T===void 0)T=E;var v=Object.getOwnPropertyDescriptor(d,E);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable))v={enumerable:!0,get:i(function(){return d[E]},"get")};Object.defineProperty(y,T,v)}:function(y,d,E,T){if(T===void 0)T=E;y[T]=d[E]}),r=e&&e.__setModuleDefault||(Object.create?function(y,d){Object.defineProperty(y,"default",{enumerable:!0,value:d})}:function(y,d){y.default=d}),n=e&&e.__importStar||function(){var y=i(function(d){return y=Object.getOwnPropertyNames||function(E){var T=[];for(var v in E)if(Object.prototype.hasOwnProperty.call(E,v))T[T.length]=v;return T},y(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var E={};if(d!=null){for(var T=y(d),v=0;v<T.length;v++)if(T[v]!=="default")t(E,d,T[v])}return r(E,d),E}}(),a=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var s=a(an()),o=n(Fi()),l=ji(),u;(function(y){y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None});function d(E){let T=E;return T&&(T===y.None||T===y.Cancelled||o.boolean(T.isCancellationRequested)&&!!T.onCancellationRequested)}i(d,"is"),y.is=d})(u||(e.CancellationToken=u={}));var c=Object.freeze(function(y,d){let E=(0,s.default)().timer.setTimeout(y.bind(d),0);return{dispose(){E.dispose()}}}),p=class{static{i(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return c;if(!this._emitter)this._emitter=new l.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}},h=class{static{i(this,"CancellationTokenSource")}_token;get token(){if(!this._token)this._token=new p;return this._token}cancel(){if(!this._token)this._token=u.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=u.None;else if(this._token instanceof p)this._token.dispose()}};e.CancellationTokenSource=h}}),uA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=kf(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let p=new Int32Array(c,0,1);Atomics.store(p,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}data;constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(l){let u=l.$cancellationData;if(u===void 0)return new t.CancellationTokenSource;return new s(u)}};e.SharedArrayReceiverStrategy=o}}),Dm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var r=t(an()),n=class{static{i(this,"Semaphore")}_capacity;_active;_waiting;constructor(a=1){if(a<=0)throw Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let s=a.thunk();if(s instanceof Promise)s.then((o)=>{this._active--,a.resolve(o),this.runNext()},(o)=>{this._active--,a.reject(o),this.runNext()});else this._active--,a.resolve(s),this.runNext()}catch(s){this._active--,a.reject(s),this.runNext()}}};e.Semaphore=n}}),cA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?function(d,E,T,v){if(v===void 0)v=T;var R=Object.getOwnPropertyDescriptor(E,T);if(!R||("get"in R?!E.__esModule:R.writable||R.configurable))R={enumerable:!0,get:i(function(){return E[T]},"get")};Object.defineProperty(d,v,R)}:function(d,E,T,v){if(v===void 0)v=T;d[v]=E[T]}),r=e&&e.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),n=e&&e.__importStar||function(){var d=i(function(E){return d=Object.getOwnPropertyNames||function(T){var v=[];for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R))v[v.length]=R;return v},d(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var T={};if(E!=null){for(var v=d(E),R=0;R<v.length;R++)if(v[R]!=="default")t(T,E,v[R])}return r(T,E),T}}(),a=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var s=a(an()),o=n(Fi()),l=ji(),u=Dm(),c;(function(d){function E(T){let v=T;return v&&o.func(v.listen)&&o.func(v.dispose)&&o.func(v.onError)&&o.func(v.onClose)&&o.func(v.onPartialMessage)}i(E,"is"),d.is=E})(c||(e.MessageReader=c={}));var p=class{static{i(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d){this.errorEmitter.fire(this.asError(d))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(d){this.partialMessageEmitter.fire(d)}asError(d){if(d instanceof Error)return d;else return Error(`Reader received error. Reason: ${o.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageReader=p;var h;(function(d){function E(T){let v,R,P,S=new Map,D,x=new Map;if(T===void 0||typeof T==="string")v=T??"utf-8";else{if(v=T.charset??"utf-8",T.contentDecoder!==void 0)P=T.contentDecoder,S.set(P.name,P);if(T.contentDecoders!==void 0)for(let F of T.contentDecoders)S.set(F.name,F);if(T.contentTypeDecoder!==void 0)D=T.contentTypeDecoder,x.set(D.name,D);if(T.contentTypeDecoders!==void 0)for(let F of T.contentTypeDecoders)x.set(F.name,F)}if(D===void 0)D=(0,s.default)().applicationJson.decoder,x.set(D.name,D);return{charset:v,contentDecoder:P,contentDecoders:S,contentTypeDecoder:D,contentTypeDecoders:x}}i(E,"fromOptions"),d.fromOptions=E})(h||(h={}));var y=class extends p{static{i(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(d,E){super();this.readable=d,this.options=h.fromOptions(E),this.buffer=(0,s.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new u.Semaphore(1)}set partialMessageTimeout(d){this._partialMessageTimeout=d}get partialMessageTimeout(){return this._partialMessageTimeout}listen(d){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=d;let E=this.readable.onData((T)=>{this.onData(T)});return this.readable.onError((T)=>this.fireError(T)),this.readable.onClose(()=>this.fireClose()),E}onData(d){try{this.buffer.append(d);while(!0){if(this.nextMessageLength===-1){let T=this.buffer.tryReadHeaders(!0);if(!T)return;let v=T.get("content-length");if(!v){this.fireError(Error(`Header must provide a Content-Length property.
1
+ import{wn,C}from"./chunk-2s6fhjjc.js";var tn={};wn(tn,{AbnfAlternation:()=>Eo,AbnfConcatenation:()=>Co,AbnfElement:()=>mi,AbnfGroup:()=>bo,AbnfNumVal:()=>_o,AbnfOptionalGroup:()=>So,AbnfPrimary:()=>ur,AbnfRule:()=>yi,AbnfRuleName:()=>wo,AbnfStringLiteral:()=>Po,AbstractMermaidTokenBuilder:()=>ue,AbstractMermaidValueConverter:()=>Ie,Architecture:()=>ot,ArchitectureGrammarGeneratedModule:()=>Ml,Branch:()=>qn,Commit:()=>dr,CommonTokenBuilder:()=>kR,CommonValueConverter:()=>Je,Cynefin:()=>qt,CynefinGrammarGeneratedModule:()=>Dl,DomainBlock:()=>Hn,DomainItem:()=>xi,EbnfChoice:()=>ko,EbnfExceptionPostfix:()=>Io,EbnfGroup:()=>No,EbnfNonTerminal:()=>Oo,EbnfOneOrMorePostfix:()=>Mo,EbnfOptional:()=>Do,EbnfOptionalPostfix:()=>Lo,EbnfPostfix:()=>Hr,EbnfPrimary:()=>Ut,EbnfRepetition:()=>xo,EbnfRule:()=>gi,EbnfSequence:()=>Go,EbnfSpecial:()=>Fo,EbnfTerm:()=>vi,EbnfTerminal:()=>jo,EbnfZeroOrMorePostfix:()=>zo,EmDataEntity:()=>cr,EmFrame:()=>Vt,EmptyFileSystem:()=>oe,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Ht,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>Zr,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>mr,MermaidGeneratedSharedModule:()=>le,Packet:()=>hr,PacketBlock:()=>yr,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Bo,PegGroup:()=>Uo,PegIdentifier:()=>Vo,PegLiteral:()=>Ko,PegOrderedChoice:()=>Wo,PegPrefix:()=>Ti,PegPrimary:()=>Yr,PegRule:()=>$i,PegSequence:()=>qo,PegSuffix:()=>Ri,Pie:()=>Yt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>Yn,Radar:()=>Kt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>gr,RailroadAbnf:()=>vr,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Ho,RailroadEbnf:()=>Tr,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Yo,RailroadOneOrMoreExpr:()=>Xo,RailroadOptionalExpr:()=>Jo,RailroadPeg:()=>$r,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ai,RailroadSequenceExpr:()=>Zo,RailroadSpecialExpr:()=>Qo,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>fr,Transition:()=>Qr,TreeNode:()=>pr,TreeView:()=>Xr,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>Rr,TreemapGrammarGeneratedModule:()=>Wl,Wardley:()=>Oe,WardleyGrammarGeneratedModule:()=>Hl,__name:()=>i,createDefaultCoreModule:()=>ne,createDefaultSharedCoreModule:()=>ae,inject:()=>W,isArchitecture:()=>Vp,isBranch:()=>Kp,isCommit:()=>Wp,isCynefin:()=>qp,isDomainBlock:()=>Hp,isDomainItem:()=>Yp,isEmModelEntityType:()=>Xp,isEmResetFrame:()=>hi,isGitGraph:()=>Jp,isInfo:()=>Zp,isMerge:()=>Qp,isPacket:()=>ed,isPacketBlock:()=>td,isPie:()=>rd,isPieSection:()=>nd,isRailroad:()=>ad,isRailroadAbnf:()=>id,isRailroadEbnf:()=>sd,isRailroadPeg:()=>od,isTransition:()=>ld,isTreemap:()=>ud,isWardley:()=>cd});var{create:rA,defineProperty:Gi,getOwnPropertyDescriptor:nA,getOwnPropertyNames:Sf,getPrototypeOf:aA}=Object,iA=Object.prototype.hasOwnProperty,i=(e,t)=>Gi(e,"name",{value:t,configurable:!0}),sA=(e,t)=>function(){return e&&(t=(0,e[Sf(e)[0]])(e=0)),t},J=(e,t)=>function(){return t||(0,e[Sf(e)[0]])((t={exports:{}}).exports,t),t.exports},oA=(e,t)=>{for(var r in t)Gi(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of Sf(t))if(!iA.call(e,a)&&a!==r)Gi(e,a,{get:()=>t[a],enumerable:!(n=nA(t,a))||n.enumerable})}return e},wf=(e,t,r)=>(r=e!=null?rA(aA(e)):{},Nm(t||!e||!e.__esModule?Gi(r,"default",{value:e,enumerable:!0}):r,e)),Pf=(e)=>Nm(Gi({},"__esModule",{value:!0}),e),Fi=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=r,e.number=n,e.error=a,e.func=s,e.array=o,e.stringArray=l;function t(u){return u===!0||u===!1}i(t,"boolean");function r(u){return typeof u==="string"||u instanceof String}i(r,"string");function n(u){return typeof u==="number"||u instanceof Number}i(n,"number");function a(u){return u instanceof Error}i(a,"error");function s(u){return typeof u==="function"}i(s,"func");function o(u){return Array.isArray(u)}i(o,"array");function l(u){return o(u)&&u.every((c)=>r(c))}i(l,"stringArray")}}),Om=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?function(A,g,b,O){if(O===void 0)O=b;var w=Object.getOwnPropertyDescriptor(g,b);if(!w||("get"in w?!g.__esModule:w.writable||w.configurable))w={enumerable:!0,get:i(function(){return g[b]},"get")};Object.defineProperty(A,O,w)}:function(A,g,b,O){if(O===void 0)O=b;A[O]=g[b]}),r=e&&e.__setModuleDefault||(Object.create?function(A,g){Object.defineProperty(A,"default",{enumerable:!0,value:g})}:function(A,g){A.default=g}),n=e&&e.__importStar||function(){var A=i(function(g){return A=Object.getOwnPropertyNames||function(b){var O=[];for(var w in b)if(Object.prototype.hasOwnProperty.call(b,w))O[O.length]=w;return O},A(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var b={};if(g!=null){for(var O=A(g),w=0;w<O.length;w++)if(O[w]!=="default")t(b,g,O[w])}return r(b,g),b}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var a=n(Fi()),s;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32000,A.serverErrorEnd=-32000})(s||(e.ErrorCodes=s={}));var o=class A extends Error{static{i(this,"ResponseError")}code;data;constructor(g,b,O){super(b);this.code=a.number(g)?g:s.UnknownErrorCode,this.data=O,Object.setPrototypeOf(this,A.prototype)}toJson(){let g={code:this.code,message:this.message};if(this.data!==void 0)g.data=this.data;return g}};e.ResponseError=o;var l=class A{static{i(this,"ParameterStructures")}kind;static auto=new A("auto");static byPosition=new A("byPosition");static byName=new A("byName");constructor(g){this.kind=g}static is(g){return g===A.auto||g===A.byName||g===A.byPosition}toString(){return this.kind}};e.ParameterStructures=l;var u=class{static{i(this,"AbstractMessageSignature")}method;numberOfParams;constructor(A,g){this.method=A,this.numberOfParams=g}get parameterStructures(){return l.auto}};e.AbstractMessageSignature=u;var c=class extends u{static{i(this,"RequestType0")}_;constructor(A){super(A,0)}};e.RequestType0=c;var p=class extends u{static{i(this,"RequestType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType=p;var h=class extends u{static{i(this,"RequestType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType1=h;var y=class extends u{static{i(this,"RequestType2")}_;constructor(A){super(A,2)}};e.RequestType2=y;var d=class extends u{static{i(this,"RequestType3")}_;constructor(A){super(A,3)}};e.RequestType3=d;var E=class extends u{static{i(this,"RequestType4")}_;constructor(A){super(A,4)}};e.RequestType4=E;var T=class extends u{static{i(this,"RequestType5")}_;constructor(A){super(A,5)}};e.RequestType5=T;var v=class extends u{static{i(this,"RequestType6")}_;constructor(A){super(A,6)}};e.RequestType6=v;var R=class extends u{static{i(this,"RequestType7")}_;constructor(A){super(A,7)}};e.RequestType7=R;var P=class extends u{static{i(this,"RequestType8")}_;constructor(A){super(A,8)}};e.RequestType8=P;var S=class extends u{static{i(this,"RequestType9")}_;constructor(A){super(A,9)}};e.RequestType9=S;var D=class extends u{static{i(this,"NotificationType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType=D;var x=class extends u{static{i(this,"NotificationType0")}_;constructor(A){super(A,0)}};e.NotificationType0=x;var F=class extends u{static{i(this,"NotificationType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=F;var V=class extends u{static{i(this,"NotificationType2")}_;constructor(A){super(A,2)}};e.NotificationType2=V;var ee=class extends u{static{i(this,"NotificationType3")}_;constructor(A){super(A,3)}};e.NotificationType3=ee;var ce=class extends u{static{i(this,"NotificationType4")}_;constructor(A){super(A,4)}};e.NotificationType4=ce;var Z=class extends u{static{i(this,"NotificationType5")}_;constructor(A){super(A,5)}};e.NotificationType5=Z;var k=class extends u{static{i(this,"NotificationType6")}_;constructor(A){super(A,6)}};e.NotificationType6=k;var L=class extends u{static{i(this,"NotificationType7")}_;constructor(A){super(A,7)}};e.NotificationType7=L;var j=class extends u{static{i(this,"NotificationType8")}_;constructor(A){super(A,8)}};e.NotificationType8=j;var z=class extends u{static{i(this,"NotificationType9")}_;constructor(A){super(A,9)}};e.NotificationType9=z;var N;(function(A){function g(w){let M=w;return M&&a.string(M.method)&&(a.string(M.id)||a.number(M.id))}i(g,"isRequest"),A.isRequest=g;function b(w){let M=w;return M&&a.string(M.method)&&w.id===void 0}i(b,"isNotification"),A.isNotification=b;function O(w){let M=w;return M&&(M.result!==void 0||!!M.error)&&(a.string(M.id)||a.number(M.id)||M.id===null)}i(O,"isResponse"),A.isResponse=O})(N||(e.Message=N={}))}}),Mm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var t;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(t||(e.Touch=t={}));var r=class{static{i(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(a){let s=this._map.get(a);return s?s.previous?.value:void 0}after(a){let s=this._map.get(a);return s?s.next?.value:void 0}has(a){return this._map.has(a)}get(a,s=t.None){let o=this._map.get(a);if(!o)return;if(s!==t.None)this.touch(o,s);return o.value}set(a,s,o=t.None){let l=this._map.get(a);if(l){if(l.value=s,o!==t.None)this.touch(l,o)}else{switch(l={key:a,value:s,next:void 0,previous:void 0},o){case t.None:this.addItemLast(l);break;case t.First:this.addItemFirst(l);break;case t.Last:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(a,l),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){let s=this._map.get(a);if(!s)return;return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){let o=this._state,l=this._head;while(l){if(s)a.bind(s)(l.value,l.key,this);else a(l.value,l.key,this);if(this._state!==o)throw Error("LinkedMap got modified during iteration.");l=l.next}}keys(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}values(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}entries(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}[Symbol.iterator](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;while(s&&o>a)this._map.delete(s.key),s=s.next,o--;if(this._head=s,this._size=o,s)s.previous=void 0;this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(!this._head)throw Error("Invalid list");else a.next=this._head,this._head.previous=a;this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(!this._tail)throw Error("Invalid list");else a.previous=this._tail,this._tail.next=a;this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{let{next:s,previous:o}=a;if(!s||!o)throw Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw Error("Invalid list");if(s!==t.First&&s!==t.Last)return;if(s===t.First){if(a===this._head)return;let{next:o,previous:l}=a;if(a===this._tail)l.next=void 0,this._tail=l;else o.previous=l,l.next=o;a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===t.Last){if(a===this._tail)return;let{next:o,previous:l}=a;if(a===this._head)o.previous=void 0,this._head=o;else o.previous=l,l.next=o;a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}toJSON(){let a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(let[s,o]of a)this.set(s,o)}};e.LinkedMap=r;var n=class extends r{static{i(this,"LRUCache")}_limit;_ratio;constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,s=t.AsNew){return super.get(a,s)}peek(a){return super.get(a,t.None)}set(a,s){return super.set(a,s,t.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),lA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),an=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}i(r,"RAL"),function(n){function a(s){if(s===void 0)throw Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a}(r||(r={})),e.default=r}}),ji=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r=t(an()),n;(function(o){let l={dispose(){}};o.None=function(){return l}})(n||(e.Event=n={}));var a=class{static{i(this,"CallbackList")}_callbacks;_contexts;add(o,l=null,u){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(o),this._contexts.push(l),Array.isArray(u))u.push({dispose:i(()=>this.remove(o,l),"dispose")})}remove(o,l=null){if(!this._callbacks)return;let u=!1;for(let c=0,p=this._callbacks.length;c<p;c++)if(this._callbacks[c]===o)if(this._contexts[c]===l){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...o){if(!this._callbacks)return[];let l=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let p=0,h=u.length;p<h;p++)try{l.push(u[p].apply(c[p],o))}catch(y){(0,r.default)().console.error(y)}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class o{static{i(this,"Emitter")}_options;static _noop=i(function(){},"_noop");_event;_callbacks;constructor(l){this._options=l}get event(){if(!this._event)this._event=(l,u,c)=>{if(!this._callbacks)this._callbacks=new a;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(l,u);let p={dispose:i(()=>{if(!this._callbacks)return;if(this._callbacks.remove(l,u),p.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(c))c.push(p);return p};return this._event}fire(l){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,l)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=s}}),kf=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?function(y,d,E,T){if(T===void 0)T=E;var v=Object.getOwnPropertyDescriptor(d,E);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable))v={enumerable:!0,get:i(function(){return d[E]},"get")};Object.defineProperty(y,T,v)}:function(y,d,E,T){if(T===void 0)T=E;y[T]=d[E]}),r=e&&e.__setModuleDefault||(Object.create?function(y,d){Object.defineProperty(y,"default",{enumerable:!0,value:d})}:function(y,d){y.default=d}),n=e&&e.__importStar||function(){var y=i(function(d){return y=Object.getOwnPropertyNames||function(E){var T=[];for(var v in E)if(Object.prototype.hasOwnProperty.call(E,v))T[T.length]=v;return T},y(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var E={};if(d!=null){for(var T=y(d),v=0;v<T.length;v++)if(T[v]!=="default")t(E,d,T[v])}return r(E,d),E}}(),a=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var s=a(an()),o=n(Fi()),l=ji(),u;(function(y){y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None});function d(E){let T=E;return T&&(T===y.None||T===y.Cancelled||o.boolean(T.isCancellationRequested)&&!!T.onCancellationRequested)}i(d,"is"),y.is=d})(u||(e.CancellationToken=u={}));var c=Object.freeze(function(y,d){let E=(0,s.default)().timer.setTimeout(y.bind(d),0);return{dispose(){E.dispose()}}}),p=class{static{i(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return c;if(!this._emitter)this._emitter=new l.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}},h=class{static{i(this,"CancellationTokenSource")}_token;get token(){if(!this._token)this._token=new p;return this._token}cancel(){if(!this._token)this._token=u.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=u.None;else if(this._token instanceof p)this._token.dispose()}};e.CancellationTokenSource=h}}),uA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=kf(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let p=new Int32Array(c,0,1);Atomics.store(p,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}data;constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(l){let u=l.$cancellationData;if(u===void 0)return new t.CancellationTokenSource;return new s(u)}};e.SharedArrayReceiverStrategy=o}}),Dm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var r=t(an()),n=class{static{i(this,"Semaphore")}_capacity;_active;_waiting;constructor(a=1){if(a<=0)throw Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let s=a.thunk();if(s instanceof Promise)s.then((o)=>{this._active--,a.resolve(o),this.runNext()},(o)=>{this._active--,a.reject(o),this.runNext()});else this._active--,a.resolve(s),this.runNext()}catch(s){this._active--,a.reject(s),this.runNext()}}};e.Semaphore=n}}),cA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?function(d,E,T,v){if(v===void 0)v=T;var R=Object.getOwnPropertyDescriptor(E,T);if(!R||("get"in R?!E.__esModule:R.writable||R.configurable))R={enumerable:!0,get:i(function(){return E[T]},"get")};Object.defineProperty(d,v,R)}:function(d,E,T,v){if(v===void 0)v=T;d[v]=E[T]}),r=e&&e.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),n=e&&e.__importStar||function(){var d=i(function(E){return d=Object.getOwnPropertyNames||function(T){var v=[];for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R))v[v.length]=R;return v},d(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var T={};if(E!=null){for(var v=d(E),R=0;R<v.length;R++)if(v[R]!=="default")t(T,E,v[R])}return r(T,E),T}}(),a=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var s=a(an()),o=n(Fi()),l=ji(),u=Dm(),c;(function(d){function E(T){let v=T;return v&&o.func(v.listen)&&o.func(v.dispose)&&o.func(v.onError)&&o.func(v.onClose)&&o.func(v.onPartialMessage)}i(E,"is"),d.is=E})(c||(e.MessageReader=c={}));var p=class{static{i(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d){this.errorEmitter.fire(this.asError(d))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(d){this.partialMessageEmitter.fire(d)}asError(d){if(d instanceof Error)return d;else return Error(`Reader received error. Reason: ${o.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageReader=p;var h;(function(d){function E(T){let v,R,P,S=new Map,D,x=new Map;if(T===void 0||typeof T==="string")v=T??"utf-8";else{if(v=T.charset??"utf-8",T.contentDecoder!==void 0)P=T.contentDecoder,S.set(P.name,P);if(T.contentDecoders!==void 0)for(let F of T.contentDecoders)S.set(F.name,F);if(T.contentTypeDecoder!==void 0)D=T.contentTypeDecoder,x.set(D.name,D);if(T.contentTypeDecoders!==void 0)for(let F of T.contentTypeDecoders)x.set(F.name,F)}if(D===void 0)D=(0,s.default)().applicationJson.decoder,x.set(D.name,D);return{charset:v,contentDecoder:P,contentDecoders:S,contentTypeDecoder:D,contentTypeDecoders:x}}i(E,"fromOptions"),d.fromOptions=E})(h||(h={}));var y=class extends p{static{i(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(d,E){super();this.readable=d,this.options=h.fromOptions(E),this.buffer=(0,s.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new u.Semaphore(1)}set partialMessageTimeout(d){this._partialMessageTimeout=d}get partialMessageTimeout(){return this._partialMessageTimeout}listen(d){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=d;let E=this.readable.onData((T)=>{this.onData(T)});return this.readable.onError((T)=>this.fireError(T)),this.readable.onClose(()=>this.fireClose()),E}onData(d){try{this.buffer.append(d);while(!0){if(this.nextMessageLength===-1){let T=this.buffer.tryReadHeaders(!0);if(!T)return;let v=T.get("content-length");if(!v){this.fireError(Error(`Header must provide a Content-Length property.
2
2
  ${JSON.stringify(Object.fromEntries(T))}`));return}let R=parseInt(v);if(isNaN(R)){this.fireError(Error(`Content-Length value must be a number. Got ${v}`));return}this.nextMessageLength=R}let E=this.buffer.tryReadBody(this.nextMessageLength);if(E===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let T=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(E):E,v=await this.options.contentTypeDecoder.decode(T,this.options);this.callback(v)}).catch((T)=>{this.fireError(T)})}}catch(E){this.fireError(E)}}clearPartialMessageTimer(){if(this.partialMessageTimer)this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0}setPartialMessageTimer(){if(this.clearPartialMessageTimer(),this._partialMessageTimeout<=0)return;this.partialMessageTimer=(0,s.default)().timer.setTimeout((d,E)=>{if(this.partialMessageTimer=void 0,d===this.messageToken)this.firePartialMessage({messageToken:d,waitingTime:E}),this.setPartialMessageTimer()},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}};e.ReadableStreamMessageReader=y}}),fA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var t=e&&e.__createBinding||(Object.create?function(T,v,R,P){if(P===void 0)P=R;var S=Object.getOwnPropertyDescriptor(v,R);if(!S||("get"in S?!v.__esModule:S.writable||S.configurable))S={enumerable:!0,get:i(function(){return v[R]},"get")};Object.defineProperty(T,P,S)}:function(T,v,R,P){if(P===void 0)P=R;T[P]=v[R]}),r=e&&e.__setModuleDefault||(Object.create?function(T,v){Object.defineProperty(T,"default",{enumerable:!0,value:v})}:function(T,v){T.default=v}),n=e&&e.__importStar||function(){var T=i(function(v){return T=Object.getOwnPropertyNames||function(R){var P=[];for(var S in R)if(Object.prototype.hasOwnProperty.call(R,S))P[P.length]=S;return P},T(v)},"ownKeys");return function(v){if(v&&v.__esModule)return v;var R={};if(v!=null){for(var P=T(v),S=0;S<P.length;S++)if(P[S]!=="default")t(R,v,P[S])}return r(R,v),R}}(),a=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var s=a(an()),o=n(Fi()),l=Dm(),u=ji(),c="Content-Length: ",p=`\r
3
3
  `,h;(function(T){function v(R){let P=R;return P&&o.func(P.dispose)&&o.func(P.onClose)&&o.func(P.onError)&&o.func(P.write)}i(v,"is"),T.is=v})(h||(e.MessageWriter=h={}));var y=class{static{i(this,"AbstractMessageWriter")}errorEmitter;closeEmitter;constructor(){this.errorEmitter=new u.Emitter,this.closeEmitter=new u.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(T,v,R){this.errorEmitter.fire([this.asError(T),v,R])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(T){if(T instanceof Error)return T;else return Error(`Writer received error. Reason: ${o.string(T.message)?T.message:"unknown"}`)}};e.AbstractMessageWriter=y;var d;(function(T){function v(R){if(R===void 0||typeof R==="string")return{charset:R??"utf-8",contentTypeEncoder:(0,s.default)().applicationJson.encoder};else return{charset:R.charset??"utf-8",contentEncoder:R.contentEncoder,contentTypeEncoder:R.contentTypeEncoder??(0,s.default)().applicationJson.encoder}}i(v,"fromOptions"),T.fromOptions=v})(d||(d={}));var E=class extends y{static{i(this,"WriteableStreamMessageWriter")}writable;options;errorCount;writeSemaphore;constructor(T,v){super();this.writable=T,this.options=d.fromOptions(v),this.errorCount=0,this.writeSemaphore=new l.Semaphore(1),this.writable.onError((R)=>this.fireError(R)),this.writable.onClose(()=>this.fireClose())}async write(T){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(T,this.options).then((R)=>{if(this.options.contentEncoder!==void 0)return this.options.contentEncoder.encode(R);else return R}).then((R)=>{let P=[];return P.push(c,R.byteLength.toString(),p),P.push(p),this.doWrite(T,P,R)},(R)=>{throw this.fireError(R),R}))}async doWrite(T,v,R){try{return await this.writable.write(v.join(""),"ascii"),this.writable.write(R)}catch(P){return this.handleError(P,T),Promise.reject(P)}}handleError(T,v){this.errorCount++,this.fireError(T,v,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=E}}),pA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,r=10,n=`\r
4
4
  `,a=class{static{i(this,"AbstractMessageBuffer")}_encoding;_chunks;_totalLength;constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){let o=typeof s==="string"?this.fromString(s,this._encoding):s;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let o=0,l=0,u=0,c=0;e:while(l<this._chunks.length){let d=this._chunks[l];u=0;while(u<d.length){switch(d[u]){case t:switch(o){case 0:o=1;break;case 2:o=3;break;default:o=0}break;case r:switch(o){case 1:o=2;break;case 3:o=4,u++;break e;default:o=0}break;default:o=0}u++}c+=d.byteLength,l++}if(o!==4)return;let p=this._read(c+u),h=new Map,y=this.toString(p,"ascii").split(n);if(y.length<2)return h;for(let d=0;d<y.length-2;d++){let E=y[d],T=E.indexOf(":");if(T===-1)throw Error(`Message header must separate key and value using ':'
@@ -136,7 +136,7 @@ ${t}`;if(this.inline)return`{${n}}`;else return n}};function bR(e,t,r){if(e==="l
136
136
  `);return}},Je=class extends Ie{static{i(this,"CommonValueConverter")}runCustomConverter(e,t,r){return}},ue=class extends aR{static{i(this,"AbstractMermaidTokenBuilder")}constructor(e){super();this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach((a)=>{if(this.keywords.has(a.name)&&a.PATTERN!==void 0)a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))")}),n}},kR=class extends ue{static{i(this,"CommonTokenBuilder")}};var dP=class extends ue{static{i(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},IR={parser:{TokenBuilder:i(()=>new dP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function vs(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),zl,IR);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}i(vs,"createRadarServices");var mP=class extends ue{static{i(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},NR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
137
137
  `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),hP=class extends Ie{static{i(this,"RailroadValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return NR(a)}return n}runCustomConverter(e,t,r){if(e.name==="RR_STRING")return NR(t);return}},OR={parser:{TokenBuilder:i(()=>new mP,"TokenBuilder"),ValueConverter:i(()=>new hP,"ValueConverter")}};function wa(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Vl,OR);return t.ServiceRegistry.register(r),{shared:t,Railroad:r}}i(wa,"createRailroadServices");var yP=class extends ue{static{i(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},MR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
138
138
  `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),gP=class extends Ie{static{i(this,"RailroadEbnfValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return MR(a)}return n}runCustomConverter(e,t,r){if(e.name==="EBNF_STRING")return MR(t);if(e.name==="EBNF_SPECIAL_SEQUENCE")return t.slice(1,-1).trim();return}},DR={parser:{TokenBuilder:i(()=>new yP,"TokenBuilder"),ValueConverter:i(()=>new gP,"ValueConverter")}};function ka(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Ul,DR);return t.ServiceRegistry.register(r),{shared:t,RailroadEbnf:r}}i(ka,"createRailroadEbnfServices");var vP=class extends ue{static{i(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},TP=class extends Ie{static{i(this,"RailroadAbnfValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return a.slice(1,-1)}return n}runCustomConverter(e,t,r){if(e.name==="ABNF_STRING")return t.slice(1,-1);return}},LR={parser:{TokenBuilder:i(()=>new vP,"TokenBuilder"),ValueConverter:i(()=>new TP,"ValueConverter")}};function Ca(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Bl,LR);return t.ServiceRegistry.register(r),{shared:t,RailroadAbnf:r}}i(Ca,"createRailroadAbnfServices");var $P=class extends ue{static{i(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},xR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
139
- `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),RP=class extends Ie{static{i(this,"RailroadPegValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return xR(a)}return n}runCustomConverter(e,t,r){if(e.name==="PEG_STRING")return xR(t);return}},GR={parser:{TokenBuilder:i(()=>new $P,"TokenBuilder"),ValueConverter:i(()=>new RP,"ValueConverter")}};function Sa(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Kl,GR);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}i(Sa,"createRailroadPegServices");var AP=class extends ue{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},EP=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,CP=class extends Ie{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));else if(e.name==="SEPARATOR")return t.substring(1,t.length-1);else if(e.name==="STRING2")return t.substring(1,t.length-1);else if(e.name==="INDENTATION")return t.length;else if(e.name==="ClassDef"){if(typeof t!=="string")return t;let n=EP.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}return}};function FR(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(FR,"registerValidationChecks");var bP=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows){if(!n.item)continue;if(r===void 0&&n.indent===void 0)r=0;else if(n.indent===void 0)t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"});else if(r!==void 0&&r>=parseInt(n.indent,10))t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"})}}},jR={parser:{TokenBuilder:i(()=>new AP,"TokenBuilder"),ValueConverter:i(()=>new CP,"ValueConverter")},validation:{TreemapValidator:i(()=>new bP,"TreemapValidator")}};function bs(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Wl,jR);return t.ServiceRegistry.register(r),FR(r),{shared:t,Treemap:r}}i(bs,"createTreemapServices");var _P=class extends Ie{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},zR={parser:{ValueConverter:i(()=>new _P,"ValueConverter")}};function xs(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Hl,zR);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(xs,"createWardleyServices");var SP=class extends ue{static{i(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},BR={parser:{TokenBuilder:i(()=>new SP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function _s(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Dl,BR);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}i(_s,"createCynefinServices");var wP=class extends ue{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},UR={parser:{TokenBuilder:i(()=>new wP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function ws(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),xl,UR);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(ws,"createGitGraphServices");var PP=class extends ue{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},VR={parser:{TokenBuilder:i(()=>new PP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function ks(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Gl,VR);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(ks,"createInfoServices");var kP=class extends ue{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},KR={parser:{TokenBuilder:i(()=>new kP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Cs(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Fl,KR);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(Cs,"createPacketServices");var IP=class extends ue{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},NP=class extends Ie{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name!=="PIE_SECTION_LABEL")return;return t.replace(/"/g,"").trim()}},WR={parser:{TokenBuilder:i(()=>new IP,"TokenBuilder"),ValueConverter:i(()=>new NP,"ValueConverter")}};function Ss(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),jl,WR);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(Ss,"createPieServices");var OP=class extends Ie{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(e.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let n=t.trim();return n.substring(5,n.length-1)}if(e.name==="DESC_ANNOTATION")return t.trim().substring(2).trim();return}},MP=class extends ue{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},qR={parser:{TokenBuilder:i(()=>new MP,"TokenBuilder"),ValueConverter:i(()=>new OP,"ValueConverter")}};function Ts(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),ql,qR);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(Ts,"createTreeViewServices");var DP=class extends ue{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},LP=class extends Ie{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'");return n.trim()}return}},HR={parser:{TokenBuilder:i(()=>new DP,"TokenBuilder"),ValueConverter:i(()=>new LP,"ValueConverter")}};function Es(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Ml,HR);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(Es,"createArchitectureServices");var xP=class extends ue{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},YR=new Set(["cmd","command"]),XR=new Set(["evt","event"]),fd=new Set(["rmo","readmodel"]),JR=new Set(["pcr","processor"]),ZR=new Set(["ui"]);function QR(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(QR,"registerValidationChecks");var GP=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){if(e.sourceFrames.length===0)return;if(YR.has(e.modelEntityType))this.validateSources(e,new Set([...ZR,...JR]),"command","ui or processor",t);else if(XR.has(e.modelEntityType))this.validateSources(e,YR,"event","command",t);else if(fd.has(e.modelEntityType))this.validateSources(e,XR,"read model","event",t);else if(JR.has(e.modelEntityType))this.validateSources(e,fd,"processor","read model",t);else if(ZR.has(e.modelEntityType))this.validateSources(e,fd,"ui","read model",t)}validateSources(e,t,r,n,a){for(let s of e.sourceFrames){let o=s.ref;if(o!==void 0&&!t.has(o.modelEntityType))a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},eA={parser:{TokenBuilder:i(()=>new xP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")},validation:{EventModelingValidator:i(()=>new GP,"EventModelingValidator")}};function As(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Ll,eA);return t.ServiceRegistry.register(r),QR(r),{shared:t,EventModel:r}}i(As,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (C("nxdp58nf"),import("./chunk-nxdp58nf.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (C("x8bnp6vr"),import("./chunk-x8bnp6vr.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (C("1ecsxh85"),import("./chunk-1ecsxh85.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (C("hq7e5xgd"),import("./chunk-hq7e5xgd.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (C("qjjxevxe"),import("./chunk-qjjxevxe.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (C("zhwqscat"),import("./chunk-zhwqscat.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (C("whczyxqw"),import("./chunk-whczyxqw.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (C("0bfypmyv"),import("./chunk-0bfypmyv.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (C("eqmghkwh"),import("./chunk-eqmghkwh.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (C("wmzz2crn"),import("./chunk-wmzz2crn.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (C("2stffcvc"),import("./chunk-2stffcvc.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (C("veadbga2"),import("./chunk-veadbga2.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (C("nsna2v2r"),import("./chunk-nsna2v2r.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (C("hxzb25a8"),import("./chunk-hxzb25a8.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (C("nytgs01h"),import("./chunk-nytgs01h.js")),t=e().Cynefin.parser.LangiumParser;je.cynefin=t},"cynefin")};async function fe(e,t){let r=FP[e];if(!r)throw Error(`Unknown diagram type: ${e}`);if(!je[e])await r();let a=je[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new gn(a);return a.value}i(fe,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),gn=class extends Error{constructor(e){let t=e.lexerErrors.map((n)=>{let a=Yl(n.line),s=Yl(n.column);return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
139
+ `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),RP=class extends Ie{static{i(this,"RailroadPegValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return xR(a)}return n}runCustomConverter(e,t,r){if(e.name==="PEG_STRING")return xR(t);return}},GR={parser:{TokenBuilder:i(()=>new $P,"TokenBuilder"),ValueConverter:i(()=>new RP,"ValueConverter")}};function Sa(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Kl,GR);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}i(Sa,"createRailroadPegServices");var AP=class extends ue{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},EP=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,CP=class extends Ie{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));else if(e.name==="SEPARATOR")return t.substring(1,t.length-1);else if(e.name==="STRING2")return t.substring(1,t.length-1);else if(e.name==="INDENTATION")return t.length;else if(e.name==="ClassDef"){if(typeof t!=="string")return t;let n=EP.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}return}};function FR(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(FR,"registerValidationChecks");var bP=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows){if(!n.item)continue;if(r===void 0&&n.indent===void 0)r=0;else if(n.indent===void 0)t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"});else if(r!==void 0&&r>=parseInt(n.indent,10))t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"})}}},jR={parser:{TokenBuilder:i(()=>new AP,"TokenBuilder"),ValueConverter:i(()=>new CP,"ValueConverter")},validation:{TreemapValidator:i(()=>new bP,"TreemapValidator")}};function bs(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Wl,jR);return t.ServiceRegistry.register(r),FR(r),{shared:t,Treemap:r}}i(bs,"createTreemapServices");var _P=class extends Ie{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},zR={parser:{ValueConverter:i(()=>new _P,"ValueConverter")}};function xs(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Hl,zR);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(xs,"createWardleyServices");var SP=class extends ue{static{i(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},BR={parser:{TokenBuilder:i(()=>new SP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function _s(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Dl,BR);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}i(_s,"createCynefinServices");var wP=class extends ue{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},UR={parser:{TokenBuilder:i(()=>new wP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function ws(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),xl,UR);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(ws,"createGitGraphServices");var PP=class extends ue{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},VR={parser:{TokenBuilder:i(()=>new PP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function ks(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Gl,VR);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(ks,"createInfoServices");var kP=class extends ue{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},KR={parser:{TokenBuilder:i(()=>new kP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Cs(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Fl,KR);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(Cs,"createPacketServices");var IP=class extends ue{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},NP=class extends Ie{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name!=="PIE_SECTION_LABEL")return;return t.replace(/"/g,"").trim()}},WR={parser:{TokenBuilder:i(()=>new IP,"TokenBuilder"),ValueConverter:i(()=>new NP,"ValueConverter")}};function Ss(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),jl,WR);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(Ss,"createPieServices");var OP=class extends Ie{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(e.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let n=t.trim();return n.substring(5,n.length-1)}if(e.name==="DESC_ANNOTATION")return t.trim().substring(2).trim();return}},MP=class extends ue{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},qR={parser:{TokenBuilder:i(()=>new MP,"TokenBuilder"),ValueConverter:i(()=>new OP,"ValueConverter")}};function Ts(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),ql,qR);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(Ts,"createTreeViewServices");var DP=class extends ue{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},LP=class extends Ie{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'");return n.trim()}return}},HR={parser:{TokenBuilder:i(()=>new DP,"TokenBuilder"),ValueConverter:i(()=>new LP,"ValueConverter")}};function Es(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Ml,HR);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(Es,"createArchitectureServices");var xP=class extends ue{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},YR=new Set(["cmd","command"]),XR=new Set(["evt","event"]),fd=new Set(["rmo","readmodel"]),JR=new Set(["pcr","processor"]),ZR=new Set(["ui"]);function QR(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(QR,"registerValidationChecks");var GP=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){if(e.sourceFrames.length===0)return;if(YR.has(e.modelEntityType))this.validateSources(e,new Set([...ZR,...JR]),"command","ui or processor",t);else if(XR.has(e.modelEntityType))this.validateSources(e,YR,"event","command",t);else if(fd.has(e.modelEntityType))this.validateSources(e,XR,"read model","event",t);else if(JR.has(e.modelEntityType))this.validateSources(e,fd,"processor","read model",t);else if(ZR.has(e.modelEntityType))this.validateSources(e,fd,"ui","read model",t)}validateSources(e,t,r,n,a){for(let s of e.sourceFrames){let o=s.ref;if(o!==void 0&&!t.has(o.modelEntityType))a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},eA={parser:{TokenBuilder:i(()=>new xP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")},validation:{EventModelingValidator:i(()=>new GP,"EventModelingValidator")}};function As(e=oe){let t=W(ae(e),le),r=W(ne({shared:t}),Ll,eA);return t.ServiceRegistry.register(r),QR(r),{shared:t,EventModel:r}}i(As,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (C("91k30q92"),import("./chunk-91k30q92.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (C("pbg9rdwv"),import("./chunk-pbg9rdwv.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (C("cnbbvd6n"),import("./chunk-cnbbvd6n.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (C("04c54f1s"),import("./chunk-04c54f1s.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (C("f1016wh6"),import("./chunk-f1016wh6.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (C("qjaex9c0"),import("./chunk-qjaex9c0.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (C("r9dt0730"),import("./chunk-r9dt0730.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (C("vff33vj3"),import("./chunk-vff33vj3.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (C("k9248573"),import("./chunk-k9248573.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (C("1vtf555r"),import("./chunk-1vtf555r.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (C("y09v3sz7"),import("./chunk-y09v3sz7.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (C("cmcgmf94"),import("./chunk-cmcgmf94.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (C("ek6q6a08"),import("./chunk-ek6q6a08.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (C("kqngpw5m"),import("./chunk-kqngpw5m.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (C("m14v2en1"),import("./chunk-m14v2en1.js")),t=e().Cynefin.parser.LangiumParser;je.cynefin=t},"cynefin")};async function fe(e,t){let r=FP[e];if(!r)throw Error(`Unknown diagram type: ${e}`);if(!je[e])await r();let a=je[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new gn(a);return a.value}i(fe,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),gn=class extends Error{constructor(e){let t=e.lexerErrors.map((n)=>{let a=Yl(n.line),s=Yl(n.column);return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
140
140
  `),r=e.parserErrors.map((n)=>{let a=Yl(n.token.startLine),s=Yl(n.token.startColumn);return`Parse error on line ${a}, column ${s}: ${n.message}`}).join(`
141
141
  `);super(`Parsing failed: ${t} ${r}`);this.result=e}static{i(this,"MermaidParseError")}};
142
142
  export{hi,vs,wa,ka,Ca,Sa,bs,xs,_s,ws,ks,Cs,Ss,Ts,Es,As,fe,gn};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Es}from"./chunk-et1nm6h1.js";export{Es as createArchitectureServices};
Binary file
Binary file