@bkm016/basalt 0.1.32 → 0.1.33

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 (703) hide show
  1. package/{chunk-nzpzjbpp.js → chunk-3j26jsy0.js} +1 -1
  2. package/{chunk-54qzhq9t.js → chunk-5ggyf53b.js} +2 -2
  3. package/{chunk-scq1dz62.js → chunk-fb2ydc2s.js} +4 -4
  4. package/{chunk-3dtgkgam.js → chunk-nkmvqcge.js} +143 -134
  5. package/compiled.js +1 -1
  6. package/package.json +1 -1
  7. package/ui-test-worker.js +1 -1
  8. package/web/{chunk-v5q92q5d.js → chunk-07kt1zpn.js} +1 -1
  9. package/web/chunk-07kt1zpn.js.br +0 -0
  10. package/web/chunk-07kt1zpn.js.gz +0 -0
  11. package/web/{chunk-d9c65yrg.js → chunk-0d068bmj.js} +1 -1
  12. package/web/chunk-0d068bmj.js.br +0 -0
  13. package/web/chunk-0d068bmj.js.gz +0 -0
  14. package/web/{chunk-f0kc6vf9.js → chunk-0m15ghn0.js} +2 -2
  15. package/web/chunk-0m15ghn0.js.br +0 -0
  16. package/web/chunk-0m15ghn0.js.gz +0 -0
  17. package/web/chunk-0swykhgr.js +2 -0
  18. package/web/chunk-0swykhgr.js.br +0 -0
  19. package/web/chunk-0swykhgr.js.gz +0 -0
  20. package/web/{chunk-3s4mqjna.js → chunk-100a4th6.js} +3 -3
  21. package/web/chunk-100a4th6.js.br +0 -0
  22. package/web/chunk-100a4th6.js.gz +0 -0
  23. package/web/{chunk-0n134mev.js → chunk-1mdvm20t.js} +3 -3
  24. package/web/chunk-1mdvm20t.js.br +0 -0
  25. package/web/chunk-1mdvm20t.js.gz +0 -0
  26. package/web/chunk-1p7wa1rq.js +1 -0
  27. package/web/chunk-1p7wa1rq.js.br +0 -0
  28. package/web/chunk-1p7wa1rq.js.gz +0 -0
  29. package/web/{chunk-we9q8a9q.js → chunk-20gcnbgn.js} +2 -2
  30. package/web/chunk-20gcnbgn.js.br +0 -0
  31. package/web/chunk-20gcnbgn.js.gz +0 -0
  32. package/web/chunk-2grspw9t.js +1 -0
  33. package/web/chunk-2grspw9t.js.br +0 -0
  34. package/web/chunk-2grspw9t.js.gz +0 -0
  35. package/web/chunk-2nwvdqxm.js +1 -0
  36. package/web/chunk-2nwvdqxm.js.br +0 -0
  37. package/web/chunk-2nwvdqxm.js.gz +0 -0
  38. package/web/{chunk-pa0sqjjk.js → chunk-2zz8t49r.js} +1 -1
  39. package/web/chunk-2zz8t49r.js.br +0 -0
  40. package/web/chunk-2zz8t49r.js.gz +0 -0
  41. package/web/{chunk-tanv869p.js → chunk-34g2xrgq.js} +2 -2
  42. package/web/chunk-34g2xrgq.js.br +0 -0
  43. package/web/chunk-34g2xrgq.js.gz +0 -0
  44. package/web/{chunk-cjbqey5q.js → chunk-34q3az4b.js} +1 -1
  45. package/web/chunk-34q3az4b.js.br +0 -0
  46. package/web/chunk-34q3az4b.js.gz +0 -0
  47. package/web/{chunk-gw1d4wmd.js → chunk-39jqdq4r.js} +1 -1
  48. package/web/chunk-39jqdq4r.js.br +0 -0
  49. package/web/chunk-39jqdq4r.js.gz +0 -0
  50. package/web/{chunk-p01t2t8w.js → chunk-3d2fm4qc.js} +1 -1
  51. package/web/chunk-3d2fm4qc.js.br +0 -0
  52. package/web/chunk-3d2fm4qc.js.gz +0 -0
  53. package/web/{chunk-98zd6fb7.js → chunk-3s16fbrf.js} +1 -1
  54. package/web/chunk-3s16fbrf.js.br +0 -0
  55. package/web/chunk-3s16fbrf.js.gz +0 -0
  56. package/web/{chunk-hmc93mm5.js → chunk-3vsey6mw.js} +1 -1
  57. package/web/chunk-3vsey6mw.js.br +0 -0
  58. package/web/chunk-3vsey6mw.js.gz +0 -0
  59. package/web/{chunk-4rbzcphw.js → chunk-3y29sc9c.js} +5 -5
  60. package/web/chunk-3y29sc9c.js.br +0 -0
  61. package/web/chunk-3y29sc9c.js.gz +0 -0
  62. package/web/{chunk-8gvxttsz.js → chunk-40f59ze9.js} +1 -1
  63. package/web/chunk-40f59ze9.js.br +0 -0
  64. package/web/chunk-40f59ze9.js.gz +0 -0
  65. package/web/chunk-414npx47.js +1 -0
  66. package/web/chunk-414npx47.js.br +0 -0
  67. package/web/chunk-414npx47.js.gz +0 -0
  68. package/web/{chunk-wjv2q7b1.js → chunk-495sjpc6.js} +1 -1
  69. package/web/chunk-495sjpc6.js.br +0 -0
  70. package/web/chunk-495sjpc6.js.gz +0 -0
  71. package/web/{chunk-wh028xj6.js → chunk-4ab1dv3g.js} +19 -19
  72. package/web/chunk-4ab1dv3g.js.br +0 -0
  73. package/web/chunk-4ab1dv3g.js.gz +0 -0
  74. package/web/{chunk-02v1btpv.js → chunk-545zx869.js} +2 -2
  75. package/web/chunk-545zx869.js.br +0 -0
  76. package/web/chunk-545zx869.js.gz +0 -0
  77. package/web/{chunk-cgbz97dr.js → chunk-55mx05jg.js} +2 -2
  78. package/web/chunk-55mx05jg.js.br +0 -0
  79. package/web/{chunk-cgbz97dr.js.gz → chunk-55mx05jg.js.gz} +0 -0
  80. package/web/{chunk-8qda1pw3.js → chunk-58xhn7ry.js} +1 -1
  81. package/web/chunk-58xhn7ry.js.br +0 -0
  82. package/web/chunk-58xhn7ry.js.gz +0 -0
  83. package/web/chunk-67pa4950.js +1 -0
  84. package/web/chunk-67pa4950.js.br +0 -0
  85. package/web/chunk-67pa4950.js.gz +0 -0
  86. package/web/chunk-690qxds4.js +1 -0
  87. package/web/chunk-690qxds4.js.br +0 -0
  88. package/web/chunk-690qxds4.js.gz +0 -0
  89. package/web/{chunk-vrakntde.js → chunk-6ana63fs.js} +8 -8
  90. package/web/chunk-6ana63fs.js.br +0 -0
  91. package/web/chunk-6ana63fs.js.gz +0 -0
  92. package/web/{chunk-kvz46sd7.js → chunk-6ew54553.js} +2 -2
  93. package/web/chunk-6ew54553.js.br +0 -0
  94. package/web/chunk-6ew54553.js.gz +0 -0
  95. package/web/{chunk-ev6xj0qs.js → chunk-6f1q0tjv.js} +107 -107
  96. package/web/chunk-6f1q0tjv.js.br +0 -0
  97. package/web/chunk-6f1q0tjv.js.gz +0 -0
  98. package/web/chunk-6gpzz5wm.js +1 -0
  99. package/web/chunk-6gpzz5wm.js.br +0 -0
  100. package/web/chunk-6gpzz5wm.js.gz +0 -0
  101. package/web/{chunk-qz8yct8b.js → chunk-71g6vrx9.js} +1 -1
  102. package/web/chunk-71g6vrx9.js.br +0 -0
  103. package/web/chunk-71g6vrx9.js.gz +0 -0
  104. package/web/chunk-77dnqrb6.js +2 -0
  105. package/web/chunk-77dnqrb6.js.br +0 -0
  106. package/web/chunk-77dnqrb6.js.gz +0 -0
  107. package/web/{chunk-02xgh26g.js → chunk-7fdrwy21.js} +1 -1
  108. package/web/{chunk-02xgh26g.js.br → chunk-7fdrwy21.js.br} +0 -0
  109. package/web/chunk-7fdrwy21.js.gz +0 -0
  110. package/web/{chunk-g5ngaf53.js → chunk-84s7821x.js} +2 -2
  111. package/web/chunk-84s7821x.js.br +0 -0
  112. package/web/chunk-84s7821x.js.gz +0 -0
  113. package/web/{chunk-pss11x84.js → chunk-8e5qd73v.js} +2 -2
  114. package/web/chunk-8e5qd73v.js.br +0 -0
  115. package/web/chunk-8e5qd73v.js.gz +0 -0
  116. package/web/{chunk-mtzj1zyw.js → chunk-8kyj945c.js} +2 -2
  117. package/web/chunk-8kyj945c.js.br +0 -0
  118. package/web/chunk-8kyj945c.js.gz +0 -0
  119. package/web/{chunk-a3qa5c8q.js → chunk-9b0evht1.js} +3 -3
  120. package/web/chunk-9b0evht1.js.br +0 -0
  121. package/web/chunk-9b0evht1.js.gz +0 -0
  122. package/web/{chunk-x0zvwdq6.js → chunk-9j7v0e4v.js} +2 -2
  123. package/web/chunk-9j7v0e4v.js.br +0 -0
  124. package/web/chunk-9j7v0e4v.js.gz +0 -0
  125. package/web/{chunk-magq6xms.js → chunk-9jb5xwya.js} +2 -2
  126. package/web/chunk-9jb5xwya.js.br +0 -0
  127. package/web/chunk-9jb5xwya.js.gz +0 -0
  128. package/web/chunk-9kf8arqg.js +1 -0
  129. package/web/chunk-9kf8arqg.js.br +0 -0
  130. package/web/chunk-9kf8arqg.js.gz +0 -0
  131. package/web/{chunk-ads3r60t.js → chunk-9msmea44.js} +1 -1
  132. package/web/chunk-9msmea44.js.br +0 -0
  133. package/web/chunk-9msmea44.js.gz +0 -0
  134. package/web/{chunk-n5hvbjdt.js → chunk-a7q85665.js} +3 -3
  135. package/web/chunk-a7q85665.js.br +0 -0
  136. package/web/chunk-a7q85665.js.gz +0 -0
  137. package/web/chunk-aan5qk6x.js +1 -0
  138. package/web/chunk-aan5qk6x.js.br +0 -0
  139. package/web/chunk-aan5qk6x.js.gz +0 -0
  140. package/web/{chunk-qxyanf4n.js → chunk-b9cjgxr1.js} +2 -2
  141. package/web/chunk-b9cjgxr1.js.br +0 -0
  142. package/web/chunk-b9cjgxr1.js.gz +0 -0
  143. package/web/{chunk-wgezeg5k.js → chunk-baaattjv.js} +1 -1
  144. package/web/chunk-baaattjv.js.br +0 -0
  145. package/web/chunk-baaattjv.js.gz +0 -0
  146. package/web/{chunk-psymen6a.js → chunk-bj9m08f9.js} +1 -1
  147. package/web/chunk-bj9m08f9.js.br +0 -0
  148. package/web/chunk-bj9m08f9.js.gz +0 -0
  149. package/web/{chunk-wydnkdtp.js → chunk-bm4fvq6q.js} +4 -4
  150. package/web/chunk-bm4fvq6q.js.br +0 -0
  151. package/web/chunk-bm4fvq6q.js.gz +0 -0
  152. package/web/chunk-c4g2k9wp.js +1 -0
  153. package/web/chunk-c4g2k9wp.js.br +0 -0
  154. package/web/chunk-c4g2k9wp.js.gz +0 -0
  155. package/web/{chunk-batey85v.js → chunk-cnptxet3.js} +2 -2
  156. package/web/chunk-cnptxet3.js.br +0 -0
  157. package/web/chunk-cnptxet3.js.gz +0 -0
  158. package/web/{chunk-yjan9xfw.js → chunk-d5n2yz4e.js} +2 -2
  159. package/web/chunk-d5n2yz4e.js.br +0 -0
  160. package/web/chunk-d5n2yz4e.js.gz +0 -0
  161. package/web/{chunk-54cy79n2.js → chunk-db2jge7w.js} +2 -2
  162. package/web/chunk-db2jge7w.js.br +0 -0
  163. package/web/chunk-db2jge7w.js.gz +0 -0
  164. package/web/chunk-dsxjv5an.js +1 -0
  165. package/web/chunk-dsxjv5an.js.br +0 -0
  166. package/web/chunk-dsxjv5an.js.gz +0 -0
  167. package/web/{chunk-qb820yv8.js → chunk-e362x35y.js} +1 -1
  168. package/web/chunk-e362x35y.js.br +0 -0
  169. package/web/chunk-e362x35y.js.gz +0 -0
  170. package/web/{chunk-cqce094e.js → chunk-e6jfnajp.js} +9 -9
  171. package/web/chunk-e6jfnajp.js.br +0 -0
  172. package/web/chunk-e6jfnajp.js.gz +0 -0
  173. package/web/{chunk-szfzt9ph.js → chunk-ex34kdxk.js} +2 -2
  174. package/web/chunk-ex34kdxk.js.br +0 -0
  175. package/web/chunk-ex34kdxk.js.gz +0 -0
  176. package/web/chunk-exa2z1b4.js +1 -0
  177. package/web/chunk-exa2z1b4.js.br +0 -0
  178. package/web/chunk-exa2z1b4.js.gz +0 -0
  179. package/web/{chunk-x9b1052x.js → chunk-f5wyg9zh.js} +2 -2
  180. package/web/chunk-f5wyg9zh.js.br +0 -0
  181. package/web/chunk-f5wyg9zh.js.gz +0 -0
  182. package/web/{chunk-gp3356tf.js → chunk-fjvd2dx2.js} +1 -1
  183. package/web/chunk-fjvd2dx2.js.br +0 -0
  184. package/web/chunk-fjvd2dx2.js.gz +0 -0
  185. package/web/chunk-fs39pqet.js +2 -0
  186. package/web/chunk-fs39pqet.js.br +0 -0
  187. package/web/chunk-fs39pqet.js.gz +0 -0
  188. package/web/{chunk-2vh05ags.js → chunk-gvndjaan.js} +2 -2
  189. package/web/chunk-gvndjaan.js.br +0 -0
  190. package/web/{chunk-2vh05ags.js.gz → chunk-gvndjaan.js.gz} +0 -0
  191. package/web/{chunk-r992px5p.js → chunk-h3618s7t.js} +2 -2
  192. package/web/chunk-h3618s7t.js.br +0 -0
  193. package/web/chunk-h3618s7t.js.gz +0 -0
  194. package/web/chunk-hks91ztk.js +8 -0
  195. package/web/chunk-hks91ztk.js.br +0 -0
  196. package/web/chunk-hks91ztk.js.gz +0 -0
  197. package/web/{chunk-pczbf6w0.js → chunk-hqd97ez8.js} +4 -4
  198. package/web/chunk-hqd97ez8.js.br +0 -0
  199. package/web/chunk-hqd97ez8.js.gz +0 -0
  200. package/web/{chunk-yqzsx086.js → chunk-hta68vm8.js} +2 -2
  201. package/web/chunk-hta68vm8.js.br +0 -0
  202. package/web/chunk-hta68vm8.js.gz +0 -0
  203. package/web/chunk-jcbvhp3h.js +1 -0
  204. package/web/chunk-jcbvhp3h.js.br +0 -0
  205. package/web/chunk-jcbvhp3h.js.gz +0 -0
  206. package/web/chunk-jw6e38cy.js +1 -0
  207. package/web/chunk-jw6e38cy.js.br +0 -0
  208. package/web/chunk-jw6e38cy.js.gz +0 -0
  209. package/web/{chunk-24syb9ar.js → chunk-jzp1qd92.js} +1 -1
  210. package/web/chunk-jzp1qd92.js.br +0 -0
  211. package/web/chunk-jzp1qd92.js.gz +0 -0
  212. package/web/{chunk-14t6ms50.js → chunk-kg39a24q.js} +1 -1
  213. package/web/chunk-kg39a24q.js.br +0 -0
  214. package/web/chunk-kg39a24q.js.gz +0 -0
  215. package/web/{chunk-ezx3f7hw.js → chunk-kj75rme3.js} +1 -1
  216. package/web/chunk-kj75rme3.js.br +0 -0
  217. package/web/chunk-kj75rme3.js.gz +0 -0
  218. package/web/chunk-kvxmwmen.js +1 -0
  219. package/web/chunk-kvxmwmen.js.br +0 -0
  220. package/web/chunk-kvxmwmen.js.gz +0 -0
  221. package/web/chunk-kzdmsaet.js +1 -0
  222. package/web/chunk-kzdmsaet.js.br +0 -0
  223. package/web/chunk-kzdmsaet.js.gz +0 -0
  224. package/web/{chunk-faestmhg.js → chunk-m203pzza.js} +2 -2
  225. package/web/chunk-m203pzza.js.br +0 -0
  226. package/web/chunk-m203pzza.js.gz +0 -0
  227. package/web/{chunk-zcetrm2j.js → chunk-m3xw41vq.js} +1 -1
  228. package/web/chunk-m3xw41vq.js.br +0 -0
  229. package/web/chunk-m3xw41vq.js.gz +0 -0
  230. package/web/{chunk-qm88s0at.js → chunk-m8jcx13t.js} +2 -2
  231. package/web/chunk-m8jcx13t.js.br +0 -0
  232. package/web/chunk-m8jcx13t.js.gz +0 -0
  233. package/web/{chunk-qpmyxj27.js → chunk-mpgz1bj6.js} +1 -1
  234. package/web/chunk-mpgz1bj6.js.br +0 -0
  235. package/web/chunk-mpgz1bj6.js.gz +0 -0
  236. package/web/{chunk-7aqr59hm.js → chunk-mzagmpq5.js} +1 -1
  237. package/web/chunk-mzagmpq5.js.br +0 -0
  238. package/web/chunk-mzagmpq5.js.gz +0 -0
  239. package/web/chunk-n51q6d6e.js +1 -0
  240. package/web/chunk-n51q6d6e.js.br +0 -0
  241. package/web/chunk-n51q6d6e.js.gz +0 -0
  242. package/web/chunk-nbf2zaaj.js +1 -0
  243. package/web/chunk-nbf2zaaj.js.br +0 -0
  244. package/web/chunk-nbf2zaaj.js.gz +0 -0
  245. package/web/chunk-ngsv0xfb.js +1 -0
  246. package/web/chunk-ngsv0xfb.js.br +0 -0
  247. package/web/chunk-ngsv0xfb.js.gz +0 -0
  248. package/web/chunk-nxd7dn08.js +1 -0
  249. package/web/chunk-nxd7dn08.js.br +0 -0
  250. package/web/chunk-nxd7dn08.js.gz +0 -0
  251. package/web/chunk-p44ezwgh.js +1 -0
  252. package/web/chunk-p44ezwgh.js.br +0 -0
  253. package/web/chunk-p44ezwgh.js.gz +0 -0
  254. package/web/{chunk-ece0ex2b.js → chunk-pdg3bxc0.js} +2 -2
  255. package/web/chunk-pdg3bxc0.js.br +0 -0
  256. package/web/chunk-pdg3bxc0.js.gz +0 -0
  257. package/web/chunk-pjbp0xwn.css +1 -0
  258. package/web/chunk-pjbp0xwn.css.br +0 -0
  259. package/web/chunk-pjbp0xwn.css.gz +0 -0
  260. package/web/{chunk-cm5cmpxr.js → chunk-pkbyh261.js} +1 -1
  261. package/web/chunk-pkbyh261.js.br +0 -0
  262. package/web/chunk-pkbyh261.js.gz +0 -0
  263. package/web/{chunk-67pmbk1h.js → chunk-q3q25jr9.js} +1 -1
  264. package/web/chunk-q3q25jr9.js.br +0 -0
  265. package/web/chunk-q3q25jr9.js.gz +0 -0
  266. package/web/{chunk-6ebp7qd7.js → chunk-q5nr5wjn.js} +6 -6
  267. package/web/chunk-q5nr5wjn.js.br +0 -0
  268. package/web/chunk-q5nr5wjn.js.gz +0 -0
  269. package/web/{chunk-n6wz1xv2.js → chunk-qd9y8r3g.js} +2 -2
  270. package/web/chunk-qd9y8r3g.js.br +0 -0
  271. package/web/chunk-qd9y8r3g.js.gz +0 -0
  272. package/web/{chunk-86f9x5fs.js → chunk-qm039dan.js} +1 -1
  273. package/web/chunk-qm039dan.js.br +0 -0
  274. package/web/chunk-qm039dan.js.gz +0 -0
  275. package/web/chunk-qqp31fyy.js +1 -0
  276. package/web/chunk-qqp31fyy.js.br +0 -0
  277. package/web/chunk-qqp31fyy.js.gz +0 -0
  278. package/web/chunk-r7st369j.js +1 -0
  279. package/web/chunk-r7st369j.js.br +0 -0
  280. package/web/chunk-r7st369j.js.gz +0 -0
  281. package/web/chunk-rc3sv7v4.js +1 -0
  282. package/web/chunk-rc3sv7v4.js.br +0 -0
  283. package/web/chunk-rc3sv7v4.js.gz +0 -0
  284. package/web/chunk-rj1rp0tc.js +1 -0
  285. package/web/chunk-rj1rp0tc.js.br +0 -0
  286. package/web/chunk-rj1rp0tc.js.gz +0 -0
  287. package/web/{chunk-43h0rwsj.js → chunk-rtk95qme.js} +1 -1
  288. package/web/chunk-rtk95qme.js.br +0 -0
  289. package/web/chunk-rtk95qme.js.gz +0 -0
  290. package/web/{chunk-rxadtk6j.js → chunk-s4rfkyqn.js} +3 -3
  291. package/web/chunk-s4rfkyqn.js.br +0 -0
  292. package/web/{chunk-rxadtk6j.js.gz → chunk-s4rfkyqn.js.gz} +0 -0
  293. package/web/{chunk-29mff7z7.js → chunk-s6a0gfv3.js} +1 -1
  294. package/web/chunk-s6a0gfv3.js.br +0 -0
  295. package/web/chunk-s6a0gfv3.js.gz +0 -0
  296. package/web/{chunk-kqpj6dnm.js → chunk-s7rwbxr5.js} +2 -2
  297. package/web/chunk-s7rwbxr5.js.br +0 -0
  298. package/web/chunk-s7rwbxr5.js.gz +0 -0
  299. package/web/{chunk-qhwsegs1.js → chunk-s8f6v2nn.js} +1 -1
  300. package/web/chunk-s8f6v2nn.js.br +0 -0
  301. package/web/chunk-s8f6v2nn.js.gz +0 -0
  302. package/web/{chunk-9hkz2jgq.js → chunk-sawc81kc.js} +49 -49
  303. package/web/chunk-sawc81kc.js.br +0 -0
  304. package/web/chunk-sawc81kc.js.gz +0 -0
  305. package/web/{chunk-j94hffw3.js → chunk-sex2gevj.js} +2 -2
  306. package/web/chunk-sex2gevj.js.br +0 -0
  307. package/web/chunk-sex2gevj.js.gz +0 -0
  308. package/web/{chunk-nfz5qmem.js → chunk-smmdqmcy.js} +1 -1
  309. package/web/chunk-smmdqmcy.js.br +0 -0
  310. package/web/chunk-smmdqmcy.js.gz +0 -0
  311. package/web/{chunk-sk3ssmwp.js → chunk-tntwwpyh.js} +2 -2
  312. package/web/chunk-tntwwpyh.js.br +0 -0
  313. package/web/chunk-tntwwpyh.js.gz +0 -0
  314. package/web/{chunk-szwh742y.js → chunk-tpzyyc2z.js} +2 -2
  315. package/web/{chunk-szwh742y.js.br → chunk-tpzyyc2z.js.br} +0 -0
  316. package/web/{chunk-szwh742y.js.gz → chunk-tpzyyc2z.js.gz} +0 -0
  317. package/web/{chunk-jw830br8.js → chunk-txhvq81f.js} +3 -3
  318. package/web/chunk-txhvq81f.js.br +0 -0
  319. package/web/chunk-txhvq81f.js.gz +0 -0
  320. package/web/{chunk-3srybd24.js → chunk-txtm71rz.js} +1 -1
  321. package/web/chunk-txtm71rz.js.br +0 -0
  322. package/web/chunk-txtm71rz.js.gz +0 -0
  323. package/web/chunk-tykcqm6v.js +2 -0
  324. package/web/chunk-tykcqm6v.js.br +0 -0
  325. package/web/chunk-tykcqm6v.js.gz +0 -0
  326. package/web/{chunk-whprx2wg.js → chunk-tyrmd7j6.js} +1 -1
  327. package/web/chunk-tyrmd7j6.js.br +0 -0
  328. package/web/chunk-tyrmd7j6.js.gz +0 -0
  329. package/web/{chunk-ax4wvgv9.js → chunk-v6ebn3sf.js} +2 -2
  330. package/web/chunk-v6ebn3sf.js.br +0 -0
  331. package/web/chunk-v6ebn3sf.js.gz +0 -0
  332. package/web/{chunk-26y868vk.js → chunk-vbx7t0h5.js} +6 -6
  333. package/web/chunk-vbx7t0h5.js.br +0 -0
  334. package/web/chunk-vbx7t0h5.js.gz +0 -0
  335. package/web/chunk-vj3wz0a2.js +1 -0
  336. package/web/chunk-vj3wz0a2.js.br +0 -0
  337. package/web/chunk-vj3wz0a2.js.gz +0 -0
  338. package/web/{chunk-1fv6rp41.js → chunk-vndrjeyr.js} +2 -2
  339. package/web/chunk-vndrjeyr.js.br +0 -0
  340. package/web/chunk-vndrjeyr.js.gz +0 -0
  341. package/web/{chunk-ggfwnr7a.js → chunk-vqgkd7q8.js} +1 -1
  342. package/web/chunk-vqgkd7q8.js.br +0 -0
  343. package/web/chunk-vqgkd7q8.js.gz +0 -0
  344. package/web/chunk-vvsfwjrg.js +1 -0
  345. package/web/chunk-vvsfwjrg.js.br +0 -0
  346. package/web/chunk-vvsfwjrg.js.gz +0 -0
  347. package/web/{chunk-1fp0r6da.js → chunk-w0k63gap.js} +2 -2
  348. package/web/chunk-w0k63gap.js.br +0 -0
  349. package/web/chunk-w0k63gap.js.gz +0 -0
  350. package/web/chunk-wafwgky9.js +1 -0
  351. package/web/chunk-wafwgky9.js.br +0 -0
  352. package/web/chunk-wafwgky9.js.gz +0 -0
  353. package/web/chunk-wdd9pasx.js +1 -0
  354. package/web/chunk-wdd9pasx.js.br +0 -0
  355. package/web/chunk-wdd9pasx.js.gz +0 -0
  356. package/web/{chunk-qzeb7kj6.js → chunk-wk89vrvf.js} +1 -1
  357. package/web/chunk-wk89vrvf.js.br +0 -0
  358. package/web/chunk-wk89vrvf.js.gz +0 -0
  359. package/web/{chunk-jrh3s3f5.js → chunk-wqjn3yz1.js} +42 -42
  360. package/web/chunk-wqjn3yz1.js.br +0 -0
  361. package/web/chunk-wqjn3yz1.js.gz +0 -0
  362. package/web/{chunk-ccdww2gj.js → chunk-wrej9qt0.js} +1 -1
  363. package/web/chunk-wrej9qt0.js.br +0 -0
  364. package/web/chunk-wrej9qt0.js.gz +0 -0
  365. package/web/{chunk-xwyvptzt.js → chunk-xbjv549c.js} +2 -2
  366. package/web/chunk-xbjv549c.js.br +0 -0
  367. package/web/chunk-xbjv549c.js.gz +0 -0
  368. package/web/{chunk-2z5tpzd0.js → chunk-xmp1ag6z.js} +1 -1
  369. package/web/chunk-xmp1ag6z.js.br +0 -0
  370. package/web/chunk-xmp1ag6z.js.gz +0 -0
  371. package/web/{chunk-1c1jdx2r.js → chunk-xsqd38a2.js} +4 -4
  372. package/web/chunk-xsqd38a2.js.br +0 -0
  373. package/web/chunk-xsqd38a2.js.gz +0 -0
  374. package/web/{chunk-d0qb5kr7.js → chunk-y2fbz356.js} +1 -1
  375. package/web/chunk-y2fbz356.js.br +0 -0
  376. package/web/chunk-y2fbz356.js.gz +0 -0
  377. package/web/chunk-y48mj5d7.js +1 -0
  378. package/web/chunk-y48mj5d7.js.br +0 -0
  379. package/web/chunk-y48mj5d7.js.gz +0 -0
  380. package/web/chunk-yebmbyrj.js +1 -0
  381. package/web/chunk-yebmbyrj.js.br +2 -0
  382. package/web/chunk-yebmbyrj.js.gz +0 -0
  383. package/web/{chunk-9b43td2b.js → chunk-ypytxmn6.js} +1 -1
  384. package/web/chunk-ypytxmn6.js.br +0 -0
  385. package/web/chunk-ypytxmn6.js.gz +0 -0
  386. package/web/{chunk-35zjz7ms.js → chunk-z6jy8edk.js} +5 -5
  387. package/web/chunk-z6jy8edk.js.br +0 -0
  388. package/web/chunk-z6jy8edk.js.gz +0 -0
  389. package/web/{chunk-7qnxv6xx.js → chunk-zg5n1hx4.js} +1 -1
  390. package/web/chunk-zg5n1hx4.js.br +0 -0
  391. package/web/chunk-zg5n1hx4.js.gz +0 -0
  392. package/web/{chunk-tpps3mfw.js → chunk-zmrd0bnc.js} +2 -2
  393. package/web/chunk-zmrd0bnc.js.br +0 -0
  394. package/web/chunk-zmrd0bnc.js.gz +0 -0
  395. package/web/{chunk-ct6hkz49.js → chunk-zqm6n89p.js} +1 -1
  396. package/web/chunk-zqm6n89p.js.br +0 -0
  397. package/web/chunk-zqm6n89p.js.gz +0 -0
  398. package/web/chunk-zvat895r.js +1 -0
  399. package/web/chunk-zvat895r.js.br +0 -0
  400. package/web/chunk-zvat895r.js.gz +0 -0
  401. package/web/chunk-zxt17pcp.js +1 -0
  402. package/web/chunk-zxt17pcp.js.br +0 -0
  403. package/web/chunk-zxt17pcp.js.gz +0 -0
  404. package/web/index.html +1 -1
  405. package/web/index.html.br +0 -0
  406. package/web/index.html.gz +0 -0
  407. package/web/chunk-02v1btpv.js.br +0 -0
  408. package/web/chunk-02v1btpv.js.gz +0 -0
  409. package/web/chunk-02xgh26g.js.gz +0 -0
  410. package/web/chunk-0n134mev.js.br +0 -0
  411. package/web/chunk-0n134mev.js.gz +0 -0
  412. package/web/chunk-14t6ms50.js.br +0 -0
  413. package/web/chunk-14t6ms50.js.gz +0 -0
  414. package/web/chunk-17j1pnvx.js +0 -1
  415. package/web/chunk-17j1pnvx.js.br +0 -0
  416. package/web/chunk-17j1pnvx.js.gz +0 -0
  417. package/web/chunk-19qs8qhf.js +0 -2
  418. package/web/chunk-19qs8qhf.js.br +0 -0
  419. package/web/chunk-19qs8qhf.js.gz +0 -0
  420. package/web/chunk-1c1jdx2r.js.br +0 -0
  421. package/web/chunk-1c1jdx2r.js.gz +0 -0
  422. package/web/chunk-1fp0r6da.js.br +0 -0
  423. package/web/chunk-1fp0r6da.js.gz +0 -0
  424. package/web/chunk-1fv6rp41.js.br +0 -0
  425. package/web/chunk-1fv6rp41.js.gz +0 -0
  426. package/web/chunk-1r8npw1h.js +0 -1
  427. package/web/chunk-1r8npw1h.js.br +0 -0
  428. package/web/chunk-1r8npw1h.js.gz +0 -0
  429. package/web/chunk-215gszpx.js +0 -1
  430. package/web/chunk-215gszpx.js.br +0 -0
  431. package/web/chunk-215gszpx.js.gz +0 -0
  432. package/web/chunk-2372y9qw.css +0 -1
  433. package/web/chunk-2372y9qw.css.br +0 -0
  434. package/web/chunk-2372y9qw.css.gz +0 -0
  435. package/web/chunk-24syb9ar.js.br +0 -0
  436. package/web/chunk-24syb9ar.js.gz +0 -0
  437. package/web/chunk-26y868vk.js.br +0 -0
  438. package/web/chunk-26y868vk.js.gz +0 -0
  439. package/web/chunk-29mff7z7.js.br +0 -0
  440. package/web/chunk-29mff7z7.js.gz +0 -0
  441. package/web/chunk-2vh05ags.js.br +0 -0
  442. package/web/chunk-2z5tpzd0.js.br +0 -2
  443. package/web/chunk-2z5tpzd0.js.gz +0 -0
  444. package/web/chunk-35zjz7ms.js.br +0 -0
  445. package/web/chunk-35zjz7ms.js.gz +0 -0
  446. package/web/chunk-3q8tjjp1.js +0 -1
  447. package/web/chunk-3q8tjjp1.js.br +0 -2
  448. package/web/chunk-3q8tjjp1.js.gz +0 -0
  449. package/web/chunk-3s4mqjna.js.br +0 -0
  450. package/web/chunk-3s4mqjna.js.gz +0 -0
  451. package/web/chunk-3srybd24.js.br +0 -0
  452. package/web/chunk-3srybd24.js.gz +0 -0
  453. package/web/chunk-3zsfd0hv.js +0 -1
  454. package/web/chunk-3zsfd0hv.js.br +0 -0
  455. package/web/chunk-3zsfd0hv.js.gz +0 -0
  456. package/web/chunk-43h0rwsj.js.br +0 -0
  457. package/web/chunk-43h0rwsj.js.gz +0 -0
  458. package/web/chunk-4gehgwdn.js +0 -1
  459. package/web/chunk-4gehgwdn.js.br +0 -0
  460. package/web/chunk-4gehgwdn.js.gz +0 -0
  461. package/web/chunk-4q1j0ehq.js +0 -1
  462. package/web/chunk-4q1j0ehq.js.br +0 -2
  463. package/web/chunk-4q1j0ehq.js.gz +0 -0
  464. package/web/chunk-4rbzcphw.js.br +0 -0
  465. package/web/chunk-4rbzcphw.js.gz +0 -0
  466. package/web/chunk-4xvh57dr.js +0 -1
  467. package/web/chunk-4xvh57dr.js.br +0 -0
  468. package/web/chunk-4xvh57dr.js.gz +0 -0
  469. package/web/chunk-54cy79n2.js.br +0 -0
  470. package/web/chunk-54cy79n2.js.gz +0 -0
  471. package/web/chunk-5v7dyp6t.js +0 -2
  472. package/web/chunk-5v7dyp6t.js.br +0 -0
  473. package/web/chunk-5v7dyp6t.js.gz +0 -0
  474. package/web/chunk-5xm6c0r0.js +0 -1
  475. package/web/chunk-5xm6c0r0.js.br +0 -0
  476. package/web/chunk-5xm6c0r0.js.gz +0 -0
  477. package/web/chunk-67pmbk1h.js.br +0 -0
  478. package/web/chunk-67pmbk1h.js.gz +0 -0
  479. package/web/chunk-6ebp7qd7.js.br +0 -0
  480. package/web/chunk-6ebp7qd7.js.gz +0 -0
  481. package/web/chunk-6k8me9kr.js +0 -1
  482. package/web/chunk-6k8me9kr.js.br +0 -0
  483. package/web/chunk-6k8me9kr.js.gz +0 -0
  484. package/web/chunk-7aqr59hm.js.br +0 -0
  485. package/web/chunk-7aqr59hm.js.gz +0 -0
  486. package/web/chunk-7qnxv6xx.js.br +0 -0
  487. package/web/chunk-7qnxv6xx.js.gz +0 -0
  488. package/web/chunk-7yb2g5zs.js +0 -1
  489. package/web/chunk-7yb2g5zs.js.br +0 -0
  490. package/web/chunk-7yb2g5zs.js.gz +0 -0
  491. package/web/chunk-86f9x5fs.js.br +0 -0
  492. package/web/chunk-86f9x5fs.js.gz +0 -0
  493. package/web/chunk-8gvxttsz.js.br +0 -0
  494. package/web/chunk-8gvxttsz.js.gz +0 -0
  495. package/web/chunk-8kjx7nve.js +0 -1
  496. package/web/chunk-8kjx7nve.js.br +0 -0
  497. package/web/chunk-8kjx7nve.js.gz +0 -0
  498. package/web/chunk-8qda1pw3.js.br +0 -0
  499. package/web/chunk-8qda1pw3.js.gz +0 -0
  500. package/web/chunk-98zd6fb7.js.br +0 -0
  501. package/web/chunk-98zd6fb7.js.gz +0 -0
  502. package/web/chunk-9b43td2b.js.br +0 -0
  503. package/web/chunk-9b43td2b.js.gz +0 -0
  504. package/web/chunk-9hkz2jgq.js.br +0 -0
  505. package/web/chunk-9hkz2jgq.js.gz +0 -0
  506. package/web/chunk-a3qa5c8q.js.br +0 -0
  507. package/web/chunk-a3qa5c8q.js.gz +0 -0
  508. package/web/chunk-ads3r60t.js.br +0 -0
  509. package/web/chunk-ads3r60t.js.gz +0 -0
  510. package/web/chunk-ax4wvgv9.js.br +0 -0
  511. package/web/chunk-ax4wvgv9.js.gz +0 -0
  512. package/web/chunk-b9knvs0r.js +0 -1
  513. package/web/chunk-b9knvs0r.js.br +0 -0
  514. package/web/chunk-b9knvs0r.js.gz +0 -0
  515. package/web/chunk-batey85v.js.br +0 -0
  516. package/web/chunk-batey85v.js.gz +0 -0
  517. package/web/chunk-ccdww2gj.js.br +0 -0
  518. package/web/chunk-ccdww2gj.js.gz +0 -0
  519. package/web/chunk-cgbz97dr.js.br +0 -0
  520. package/web/chunk-cjbqey5q.js.br +0 -0
  521. package/web/chunk-cjbqey5q.js.gz +0 -0
  522. package/web/chunk-cm5cmpxr.js.br +0 -0
  523. package/web/chunk-cm5cmpxr.js.gz +0 -0
  524. package/web/chunk-cqce094e.js.br +0 -0
  525. package/web/chunk-cqce094e.js.gz +0 -0
  526. package/web/chunk-ct6hkz49.js.br +0 -0
  527. package/web/chunk-ct6hkz49.js.gz +0 -0
  528. package/web/chunk-d0qb5kr7.js.br +0 -0
  529. package/web/chunk-d0qb5kr7.js.gz +0 -0
  530. package/web/chunk-d9c65yrg.js.br +0 -0
  531. package/web/chunk-d9c65yrg.js.gz +0 -0
  532. package/web/chunk-ece0ex2b.js.br +0 -0
  533. package/web/chunk-ece0ex2b.js.gz +0 -0
  534. package/web/chunk-ejrsh0nz.js +0 -1
  535. package/web/chunk-ejrsh0nz.js.br +0 -2
  536. package/web/chunk-ejrsh0nz.js.gz +0 -0
  537. package/web/chunk-ekcnhcm0.js +0 -1
  538. package/web/chunk-ekcnhcm0.js.br +0 -0
  539. package/web/chunk-ekcnhcm0.js.gz +0 -0
  540. package/web/chunk-eq4skc30.js +0 -1
  541. package/web/chunk-eq4skc30.js.br +0 -0
  542. package/web/chunk-eq4skc30.js.gz +0 -0
  543. package/web/chunk-ev6xj0qs.js.br +0 -0
  544. package/web/chunk-ev6xj0qs.js.gz +0 -0
  545. package/web/chunk-ezx3f7hw.js.br +0 -0
  546. package/web/chunk-ezx3f7hw.js.gz +0 -0
  547. package/web/chunk-f0kc6vf9.js.br +0 -0
  548. package/web/chunk-f0kc6vf9.js.gz +0 -0
  549. package/web/chunk-fabemrkx.js +0 -1
  550. package/web/chunk-fabemrkx.js.br +0 -0
  551. package/web/chunk-fabemrkx.js.gz +0 -0
  552. package/web/chunk-faestmhg.js.br +0 -0
  553. package/web/chunk-faestmhg.js.gz +0 -0
  554. package/web/chunk-g5ngaf53.js.br +0 -0
  555. package/web/chunk-g5ngaf53.js.gz +0 -0
  556. package/web/chunk-gcyhcbej.js +0 -1
  557. package/web/chunk-gcyhcbej.js.br +0 -2
  558. package/web/chunk-gcyhcbej.js.gz +0 -0
  559. package/web/chunk-ggfwnr7a.js.br +0 -0
  560. package/web/chunk-ggfwnr7a.js.gz +0 -0
  561. package/web/chunk-gp3356tf.js.br +0 -0
  562. package/web/chunk-gp3356tf.js.gz +0 -0
  563. package/web/chunk-gw1d4wmd.js.br +0 -0
  564. package/web/chunk-gw1d4wmd.js.gz +0 -0
  565. package/web/chunk-hmc93mm5.js.br +0 -0
  566. package/web/chunk-hmc93mm5.js.gz +0 -0
  567. package/web/chunk-hn9rxtn8.js +0 -8
  568. package/web/chunk-hn9rxtn8.js.br +0 -0
  569. package/web/chunk-hn9rxtn8.js.gz +0 -0
  570. package/web/chunk-hrng3h6w.js +0 -1
  571. package/web/chunk-hrng3h6w.js.br +0 -2
  572. package/web/chunk-hrng3h6w.js.gz +0 -0
  573. package/web/chunk-hxyxfhhs.js +0 -1
  574. package/web/chunk-hxyxfhhs.js.br +0 -2
  575. package/web/chunk-hxyxfhhs.js.gz +0 -0
  576. package/web/chunk-j94hffw3.js.br +0 -0
  577. package/web/chunk-j94hffw3.js.gz +0 -0
  578. package/web/chunk-jrh3s3f5.js.br +0 -0
  579. package/web/chunk-jrh3s3f5.js.gz +0 -0
  580. package/web/chunk-jw830br8.js.br +0 -0
  581. package/web/chunk-jw830br8.js.gz +0 -0
  582. package/web/chunk-k3whmjng.js +0 -1
  583. package/web/chunk-k3whmjng.js.br +0 -0
  584. package/web/chunk-k3whmjng.js.gz +0 -0
  585. package/web/chunk-kgfzf3q8.js +0 -1
  586. package/web/chunk-kgfzf3q8.js.br +0 -0
  587. package/web/chunk-kgfzf3q8.js.gz +0 -0
  588. package/web/chunk-kqpj6dnm.js.br +0 -0
  589. package/web/chunk-kqpj6dnm.js.gz +0 -0
  590. package/web/chunk-kvz46sd7.js.br +0 -0
  591. package/web/chunk-kvz46sd7.js.gz +0 -0
  592. package/web/chunk-magq6xms.js.br +0 -0
  593. package/web/chunk-magq6xms.js.gz +0 -0
  594. package/web/chunk-mtzj1zyw.js.br +0 -0
  595. package/web/chunk-mtzj1zyw.js.gz +0 -0
  596. package/web/chunk-my778zsk.js +0 -1
  597. package/web/chunk-my778zsk.js.br +0 -0
  598. package/web/chunk-my778zsk.js.gz +0 -0
  599. package/web/chunk-mzevfdmp.js +0 -1
  600. package/web/chunk-mzevfdmp.js.br +0 -0
  601. package/web/chunk-mzevfdmp.js.gz +0 -0
  602. package/web/chunk-n5hvbjdt.js.br +0 -0
  603. package/web/chunk-n5hvbjdt.js.gz +0 -0
  604. package/web/chunk-n6wz1xv2.js.br +0 -0
  605. package/web/chunk-n6wz1xv2.js.gz +0 -0
  606. package/web/chunk-nfz5qmem.js.br +0 -0
  607. package/web/chunk-nfz5qmem.js.gz +0 -0
  608. package/web/chunk-p01t2t8w.js.br +0 -0
  609. package/web/chunk-p01t2t8w.js.gz +0 -0
  610. package/web/chunk-pa0sqjjk.js.br +0 -0
  611. package/web/chunk-pa0sqjjk.js.gz +0 -0
  612. package/web/chunk-pczbf6w0.js.br +0 -0
  613. package/web/chunk-pczbf6w0.js.gz +0 -0
  614. package/web/chunk-pss11x84.js.br +0 -0
  615. package/web/chunk-pss11x84.js.gz +0 -0
  616. package/web/chunk-psymen6a.js.br +0 -0
  617. package/web/chunk-psymen6a.js.gz +0 -0
  618. package/web/chunk-q5rd9d4z.js +0 -1
  619. package/web/chunk-q5rd9d4z.js.br +0 -0
  620. package/web/chunk-q5rd9d4z.js.gz +0 -0
  621. package/web/chunk-qb820yv8.js.br +0 -0
  622. package/web/chunk-qb820yv8.js.gz +0 -0
  623. package/web/chunk-qcacb7rs.js +0 -1
  624. package/web/chunk-qcacb7rs.js.br +0 -0
  625. package/web/chunk-qcacb7rs.js.gz +0 -0
  626. package/web/chunk-qhwsegs1.js.br +0 -0
  627. package/web/chunk-qhwsegs1.js.gz +0 -0
  628. package/web/chunk-qm88s0at.js.br +0 -0
  629. package/web/chunk-qm88s0at.js.gz +0 -0
  630. package/web/chunk-qpmyxj27.js.br +0 -0
  631. package/web/chunk-qpmyxj27.js.gz +0 -0
  632. package/web/chunk-qxyanf4n.js.br +0 -0
  633. package/web/chunk-qxyanf4n.js.gz +0 -0
  634. package/web/chunk-qz8yct8b.js.br +0 -0
  635. package/web/chunk-qz8yct8b.js.gz +0 -0
  636. package/web/chunk-qzeb7kj6.js.br +0 -0
  637. package/web/chunk-qzeb7kj6.js.gz +0 -0
  638. package/web/chunk-r827h2kc.js +0 -1
  639. package/web/chunk-r827h2kc.js.br +0 -2
  640. package/web/chunk-r827h2kc.js.gz +0 -0
  641. package/web/chunk-r992px5p.js.br +0 -0
  642. package/web/chunk-r992px5p.js.gz +0 -0
  643. package/web/chunk-rvgx4jhr.js +0 -1
  644. package/web/chunk-rvgx4jhr.js.br +0 -0
  645. package/web/chunk-rvgx4jhr.js.gz +0 -0
  646. package/web/chunk-rxadtk6j.js.br +0 -0
  647. package/web/chunk-sk3ssmwp.js.br +0 -0
  648. package/web/chunk-sk3ssmwp.js.gz +0 -0
  649. package/web/chunk-snvwfzxt.js +0 -2
  650. package/web/chunk-snvwfzxt.js.br +0 -0
  651. package/web/chunk-snvwfzxt.js.gz +0 -0
  652. package/web/chunk-szfzt9ph.js.br +0 -0
  653. package/web/chunk-szfzt9ph.js.gz +0 -0
  654. package/web/chunk-t9hnp1zd.js +0 -2
  655. package/web/chunk-t9hnp1zd.js.br +0 -3
  656. package/web/chunk-t9hnp1zd.js.gz +0 -0
  657. package/web/chunk-tanv869p.js.br +0 -0
  658. package/web/chunk-tanv869p.js.gz +0 -0
  659. package/web/chunk-tpps3mfw.js.br +0 -0
  660. package/web/chunk-tpps3mfw.js.gz +0 -0
  661. package/web/chunk-txb5yf8n.js +0 -1
  662. package/web/chunk-txb5yf8n.js.br +0 -0
  663. package/web/chunk-txb5yf8n.js.gz +0 -0
  664. package/web/chunk-v3vqv74s.js +0 -1
  665. package/web/chunk-v3vqv74s.js.br +0 -0
  666. package/web/chunk-v3vqv74s.js.gz +0 -0
  667. package/web/chunk-v5q92q5d.js.br +0 -0
  668. package/web/chunk-v5q92q5d.js.gz +0 -0
  669. package/web/chunk-vayamfxv.js +0 -1
  670. package/web/chunk-vayamfxv.js.br +0 -0
  671. package/web/chunk-vayamfxv.js.gz +0 -0
  672. package/web/chunk-vrakntde.js.br +0 -0
  673. package/web/chunk-vrakntde.js.gz +0 -0
  674. package/web/chunk-we9q8a9q.js.br +0 -0
  675. package/web/chunk-we9q8a9q.js.gz +0 -0
  676. package/web/chunk-wgezeg5k.js.br +0 -0
  677. package/web/chunk-wgezeg5k.js.gz +0 -0
  678. package/web/chunk-wh028xj6.js.br +0 -0
  679. package/web/chunk-wh028xj6.js.gz +0 -0
  680. package/web/chunk-whprx2wg.js.br +0 -0
  681. package/web/chunk-whprx2wg.js.gz +0 -0
  682. package/web/chunk-wjv2q7b1.js.br +0 -0
  683. package/web/chunk-wjv2q7b1.js.gz +0 -0
  684. package/web/chunk-wydnkdtp.js.br +0 -0
  685. package/web/chunk-wydnkdtp.js.gz +0 -0
  686. package/web/chunk-x0zvwdq6.js.br +0 -0
  687. package/web/chunk-x0zvwdq6.js.gz +0 -0
  688. package/web/chunk-x9b1052x.js.br +0 -0
  689. package/web/chunk-x9b1052x.js.gz +0 -0
  690. package/web/chunk-xwyvptzt.js.br +0 -0
  691. package/web/chunk-xwyvptzt.js.gz +0 -0
  692. package/web/chunk-ya7gs2bv.js +0 -1
  693. package/web/chunk-ya7gs2bv.js.br +0 -0
  694. package/web/chunk-ya7gs2bv.js.gz +0 -0
  695. package/web/chunk-yjan9xfw.js.br +0 -0
  696. package/web/chunk-yjan9xfw.js.gz +0 -0
  697. package/web/chunk-yqzsx086.js.br +0 -0
  698. package/web/chunk-yqzsx086.js.gz +0 -0
  699. package/web/chunk-zcetrm2j.js.br +0 -3
  700. package/web/chunk-zcetrm2j.js.gz +0 -0
  701. package/web/chunk-zk1ddepw.js +0 -1
  702. package/web/chunk-zk1ddepw.js.br +0 -0
  703. package/web/chunk-zk1ddepw.js.gz +0 -0
Binary file
@@ -1,4 +1,4 @@
1
- import{t}from"./chunk-9hkz2jgq.js";var Tt=t(()=>`
1
+ import{t}from"./chunk-sawc81kc.js";var Tt=t(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
Binary file
Binary file
@@ -1 +1 @@
1
- import{a,m,e,n,b,l,ye,se,Q,jt}from"./chunk-ev6xj0qs.js";var B=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],h=l("circle-slash",B);function S(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:k,style:C}=b(),s=S(t.payload),[o,r]=a(!1),[P,I]=a(!1),[c,u]=a();if(!s)return null;let i=P?"killed":s.state,d=i==="running",f=i==="exited"&&s.code===0,p=i==="killed"||i==="timeout",g=s.output?.trim(),z=async()=>{if(o)return;r(!0),u(void 0);try{await t.connection.request(`/api/sessions/${encodeURIComponent(t.sessionID)}/jobs/${encodeURIComponent(s.id)}/kill`,{method:"POST"}),I(!0)}catch(x){u(x instanceof Error?x.message:"停止失败,后台任务可能已结束")}finally{r(!1)}};return n(k,{className:"my-2",header:n(m,{children:[e(jt,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"truncate font-mono text-ink/90",title:s.command??s.id,children:s.command??`任务 ${s.id}`})]}),actions:n(m,{children:[d&&n(m,{children:[n("span",{className:"flex items-center gap-1 text-warning",children:[e(se,{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:o,onClick:()=>{z()},children:"停止"})]}),f&&n("span",{className:"flex items-center gap-1 text-success",children:[e(Q,{className:"size-3.5"}),e("span",{children:"已完成"})]}),p&&n("span",{className:"flex items-center gap-1 text-faint",children:[e(h,{className:"size-3.5"}),e("span",{children:i==="timeout"?"已超时":"已停止"})]}),!d&&!f&&!p&&n("span",{className:"flex items-center gap-1 text-danger",children:[e(ye,{className:"size-3.5"}),n("span",{children:["退出码 ",s.code??"异常"]})]})]}),children:[c&&e("p",{role:"status",className:"border-b border-line px-4 py-2.5 text-xs text-danger",children:c}),g&&e("pre",{className:C("chat.toolOutput","max-h-60 text-ink/90 select-text"),children:g})]})}export{U as BashJobCard};
1
+ import{a,m,e,n,b,l,ye,ae,Q,jt}from"./chunk-6f1q0tjv.js";var B=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],h=l("circle-slash",B);function S(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:k,style:C}=b(),s=S(t.payload),[o,r]=a(!1),[P,I]=a(!1),[c,u]=a();if(!s)return null;let i=P?"killed":s.state,d=i==="running",f=i==="exited"&&s.code===0,p=i==="killed"||i==="timeout",g=s.output?.trim(),z=async()=>{if(o)return;r(!0),u(void 0);try{await t.connection.request(`/api/sessions/${encodeURIComponent(t.sessionID)}/jobs/${encodeURIComponent(s.id)}/kill`,{method:"POST"}),I(!0)}catch(x){u(x instanceof Error?x.message:"停止失败,后台任务可能已结束")}finally{r(!1)}};return n(k,{className:"my-2",header:n(m,{children:[e(jt,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"truncate font-mono text-ink/90",title:s.command??s.id,children:s.command??`任务 ${s.id}`})]}),actions:n(m,{children:[d&&n(m,{children:[n("span",{className:"flex items-center gap-1 text-warning",children:[e(ae,{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:o,onClick:()=>{z()},children:"停止"})]}),f&&n("span",{className:"flex items-center gap-1 text-success",children:[e(Q,{className:"size-3.5"}),e("span",{children:"已完成"})]}),p&&n("span",{className:"flex items-center gap-1 text-faint",children:[e(h,{className:"size-3.5"}),e("span",{children:i==="timeout"?"已超时":"已停止"})]}),!d&&!f&&!p&&n("span",{className:"flex items-center gap-1 text-danger",children:[e(ye,{className:"size-3.5"}),n("span",{children:["退出码 ",s.code??"异常"]})]})]}),children:[c&&e("p",{role:"status",className:"border-b border-line px-4 py-2.5 text-xs text-danger",children:c}),g&&e("pre",{className:C("chat.toolOutput","max-h-60 text-ink/90 select-text"),children:g})]})}export{U as BashJobCard};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ function $n(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{$n};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Fs}from"./chunk-4ab1dv3g.js";export{Fs as createTreeViewServices};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{t,i,de,f,h,F,q,mn,d,J,Xt,Kt,An,hn,sr}from"./chunk-9hkz2jgq.js";import{Tt}from"./chunk-14t6ms50.js";var se=function(){var e=t(function(A,s,r,o){for(r=r||{},o=A.length;o--;r[A[o]]=s);return r},"o"),p=[1,4],m=[1,13],a=[1,12],y=[1,15],N=[1,16],S=[1,20],u=[1,19],C=[6,7,8],T=[1,26],b=[1,24],P=[1,25],x=[6,7,11],z=[1,31],D=[6,7,11,24],U=[1,6,13,16,17,20,23],k=[1,35],V=[1,36],w=[1,6,7,11,13,16,17,20,23],X=[1,38],B={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(s,r,o,c,g,n,j){var l=n.length-1;switch(g){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",n[l-1].id),c.addNode(n[l-2].length,n[l-1].id,n[l-1].descr,n[l-1].type,n[l]);break;case 16:c.getLogger().info("Node: ",n[l].id),c.addNode(n[l-1].length,n[l].id,n[l].descr,n[l].type);break;case 17:c.getLogger().trace("Icon: ",n[l]),c.decorateNode({icon:n[l]});break;case 18:case 23:c.decorateNode({class:n[l]});break;case 19:c.getLogger().trace("SPACELIST");break;case 20:c.getLogger().trace("Node: ",n[l-1].id),c.addNode(0,n[l-1].id,n[l-1].descr,n[l-1].type,n[l]);break;case 21:c.getLogger().trace("Node: ",n[l].id),c.addNode(0,n[l].id,n[l].descr,n[l].type);break;case 22:c.decorateNode({icon:n[l]});break;case 27:c.getLogger().trace("node found ..",n[l-2]),this.$={id:n[l-1],descr:n[l-1],type:c.getType(n[l-2],n[l])};break;case 28:this.$={id:n[l],descr:n[l],type:0};break;case 29:c.getLogger().trace("node found ..",n[l-3]),this.$={id:n[l-3],descr:n[l-1],type:c.getType(n[l-2],n[l])};break;case 30:this.$=n[l-1]+n[l];break;case 31:this.$=n[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:p},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:p},{6:m,7:[1,10],9:9,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},e(C,[2,3]),{1:[2,2]},e(C,[2,4]),e(C,[2,5]),{1:[2,6],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},{6:m,9:22,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},{6:T,7:b,10:23,11:P},e(x,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:u}),e(x,[2,19]),e(x,[2,21],{15:30,24:z}),e(x,[2,22]),e(x,[2,23]),e(D,[2,25]),e(D,[2,26]),e(D,[2,28],{20:[1,32]}),{21:[1,33]},{6:T,7:b,10:34,11:P},{1:[2,7],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},e(U,[2,14],{7:k,11:V}),e(w,[2,8]),e(w,[2,9]),e(w,[2,10]),e(x,[2,16],{15:37,24:z}),e(x,[2,17]),e(x,[2,18]),e(x,[2,20],{24:X}),e(D,[2,31]),{21:[1,39]},{22:[1,40]},e(U,[2,13],{7:k,11:V}),e(w,[2,11]),e(w,[2,12]),e(x,[2,15],{24:X}),e(D,[2,30]),{22:[1,41]},e(D,[2,27]),e(D,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(s,r){if(r.recoverable)this.trace(s);else{var o=Error(s);throw o.hash=r,o}},"parseError"),parse:t(function(s){var r=this,o=[0],c=[],g=[null],n=[],j=this.table,l="",K=0,le=0,he=0,be=2,ue=1,ye=n.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ee in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ee))G.yy[ee]=this.yy[ee];if(_.setInput(s,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var te=_.yylloc;n.push(te);var me=_.options&&_.options.ranges;if(typeof G.yy.parseError==="function")this.parseError=G.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ke(O){o.length=o.length-2*O,g.length=g.length-O,n.length=n.length-O}t(ke,"popStack");function ge(){var O=c.pop()||_.lex()||ue;if(typeof O!=="number"){if(O instanceof Array)c=O,O=c.pop();O=r.symbols_[O]||O}return O}t(ge,"lex");var v,ne,M,L,je,ie,W={},Y,R,pe,Q;while(!0){if(M=o[o.length-1],this.defaultActions[M])L=this.defaultActions[M];else{if(v===null||typeof v>"u")v=ge();L=j[M]&&j[M][v]}if(typeof L>"u"||!L.length||!L[0]){var re="";Q=[];for(Y in j[M])if(this.terminals_[Y]&&Y>be)Q.push("'"+this.terminals_[Y]+"'");if(_.showPosition)re="Parse error on line "+(K+1)+`:
1
+ import{t,i,de,f,h,F,q,mn,d,J,Xt,Kt,An,hn,lr}from"./chunk-sawc81kc.js";import{Tt}from"./chunk-kg39a24q.js";var se=function(){var e=t(function(A,s,r,o){for(r=r||{},o=A.length;o--;r[A[o]]=s);return r},"o"),p=[1,4],m=[1,13],a=[1,12],y=[1,15],N=[1,16],S=[1,20],u=[1,19],C=[6,7,8],T=[1,26],b=[1,24],P=[1,25],x=[6,7,11],z=[1,31],D=[6,7,11,24],U=[1,6,13,16,17,20,23],k=[1,35],V=[1,36],w=[1,6,7,11,13,16,17,20,23],X=[1,38],B={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(s,r,o,c,g,n,j){var l=n.length-1;switch(g){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",n[l-1].id),c.addNode(n[l-2].length,n[l-1].id,n[l-1].descr,n[l-1].type,n[l]);break;case 16:c.getLogger().info("Node: ",n[l].id),c.addNode(n[l-1].length,n[l].id,n[l].descr,n[l].type);break;case 17:c.getLogger().trace("Icon: ",n[l]),c.decorateNode({icon:n[l]});break;case 18:case 23:c.decorateNode({class:n[l]});break;case 19:c.getLogger().trace("SPACELIST");break;case 20:c.getLogger().trace("Node: ",n[l-1].id),c.addNode(0,n[l-1].id,n[l-1].descr,n[l-1].type,n[l]);break;case 21:c.getLogger().trace("Node: ",n[l].id),c.addNode(0,n[l].id,n[l].descr,n[l].type);break;case 22:c.decorateNode({icon:n[l]});break;case 27:c.getLogger().trace("node found ..",n[l-2]),this.$={id:n[l-1],descr:n[l-1],type:c.getType(n[l-2],n[l])};break;case 28:this.$={id:n[l],descr:n[l],type:0};break;case 29:c.getLogger().trace("node found ..",n[l-3]),this.$={id:n[l-3],descr:n[l-1],type:c.getType(n[l-2],n[l])};break;case 30:this.$=n[l-1]+n[l];break;case 31:this.$=n[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:p},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:p},{6:m,7:[1,10],9:9,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},e(C,[2,3]),{1:[2,2]},e(C,[2,4]),e(C,[2,5]),{1:[2,6],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},{6:m,9:22,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},{6:T,7:b,10:23,11:P},e(x,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:u}),e(x,[2,19]),e(x,[2,21],{15:30,24:z}),e(x,[2,22]),e(x,[2,23]),e(D,[2,25]),e(D,[2,26]),e(D,[2,28],{20:[1,32]}),{21:[1,33]},{6:T,7:b,10:34,11:P},{1:[2,7],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},e(U,[2,14],{7:k,11:V}),e(w,[2,8]),e(w,[2,9]),e(w,[2,10]),e(x,[2,16],{15:37,24:z}),e(x,[2,17]),e(x,[2,18]),e(x,[2,20],{24:X}),e(D,[2,31]),{21:[1,39]},{22:[1,40]},e(U,[2,13],{7:k,11:V}),e(w,[2,11]),e(w,[2,12]),e(x,[2,15],{24:X}),e(D,[2,30]),{22:[1,41]},e(D,[2,27]),e(D,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(s,r){if(r.recoverable)this.trace(s);else{var o=Error(s);throw o.hash=r,o}},"parseError"),parse:t(function(s){var r=this,o=[0],c=[],g=[null],n=[],j=this.table,l="",K=0,le=0,he=0,be=2,ue=1,ye=n.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ee in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ee))G.yy[ee]=this.yy[ee];if(_.setInput(s,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var te=_.yylloc;n.push(te);var me=_.options&&_.options.ranges;if(typeof G.yy.parseError==="function")this.parseError=G.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ke(O){o.length=o.length-2*O,g.length=g.length-O,n.length=n.length-O}t(ke,"popStack");function ge(){var O=c.pop()||_.lex()||ue;if(typeof O!=="number"){if(O instanceof Array)c=O,O=c.pop();O=r.symbols_[O]||O}return O}t(ge,"lex");var v,ne,M,L,je,ie,W={},Y,R,pe,Q;while(!0){if(M=o[o.length-1],this.defaultActions[M])L=this.defaultActions[M];else{if(v===null||typeof v>"u")v=ge();L=j[M]&&j[M][v]}if(typeof L>"u"||!L.length||!L[0]){var re="";Q=[];for(Y in j[M])if(this.terminals_[Y]&&Y>be)Q.push("'"+this.terminals_[Y]+"'");if(_.showPosition)re="Parse error on line "+(K+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+Q.join(", ")+", got '"+(this.terminals_[v]||v)+"'";else re="Parse error on line "+(K+1)+": Unexpected "+(v==ue?"end of input":"'"+(this.terminals_[v]||v)+"'");this.parseError(re,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:te,expected:Q})}if(L[0]instanceof Array&&L.length>1)throw Error("Parse Error: multiple actions possible at state: "+M+", token: "+v);switch(L[0]){case 1:if(o.push(v),g.push(_.yytext),n.push(_.yylloc),o.push(L[1]),v=null,!ne){if(le=_.yyleng,l=_.yytext,K=_.yylineno,te=_.yylloc,he>0)he--}else v=ne,ne=null;break;case 2:if(R=this.productions_[L[1]][1],W.$=g[g.length-R],W._$={first_line:n[n.length-(R||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(R||1)].first_column,last_column:n[n.length-1].last_column},me)W._$.range=[n[n.length-(R||1)].range[0],n[n.length-1].range[1]];if(ie=this.performAction.apply(W,[l,le,K,G.yy,L[1],g,n].concat(ye)),typeof ie<"u")return ie;if(R)o=o.slice(0,-1*R*2),g=g.slice(0,-1*R),n=n.slice(0,-1*R);o.push(this.productions_[L[1]][0]),g.push(W.$),n.push(W._$),pe=j[o[o.length-2]][o[o.length-1]],o.push(pe);break;case 3:return!0}}return!0},"parse")},Z=function(){var A={EOF:1,parseError:t(function(r,o){if(this.yy.parser)this.yy.parser.parseError(r,o);else throw Error(r)},"parseError"),setInput:t(function(s,r){if(this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);if(r)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),s},"input"),unput:t(function(s){var r=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var c=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1)this.yylineno-=o.length-1;var g=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges)this.yylloc.range=[g[0],g[0]+this.yyleng-r];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(s){this.unput(this.match.slice(s))},"less"),pastInput:t(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var s=this.match;if(s.length<20)s+=this._input.substr(0,20-s.length);return(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var s=this.pastInput(),r=Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -8,7 +8,7 @@ Expecting `+Q.join(", ")+", got '"+(this.terminals_[v]||v)+"'";else re="Parse er
8
8
  `+y+`
9
9
  }`;else T=y+`
10
10
  `;let b=Kt(T,{schema:Xt});if(b.shape&&(b.shape!==b.shape.toLowerCase()||b.shape.includes("_")))throw Error(`No such shape: ${b.shape}. Shape names should be lowercase.`);if(b?.shape&&b.shape==="kanbanItem")u.shape=b?.shape;if(b?.label)u.label=b?.label;if(b?.icon)u.icon=b?.icon.toString();if(b?.assigned)u.assigned=b?.assigned.toString();if(b?.ticket)u.ticket=b?.ticket.toString();if(b?.priority)u.priority=b?.priority}let C=Se(e);if(C)u.parentId=C.id||"kbn"+ae++;else oe.push(u);I.push(u)},"addNode"),E={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},ve=t((e,p)=>{switch(i.debug("In get type",e,p),e){case"[":return E.RECT;case"(":return p===")"?E.ROUNDED_RECT:E.CLOUD;case"((":return E.CIRCLE;case")":return E.CLOUD;case"))":return E.BANG;case"{{":return E.HEXAGON;default:return E.DEFAULT}},"getType"),De=t((e,p)=>{ce[e]=p},"setElementForId"),Le=t((e)=>{if(!e)return;let p=d(),m=I[I.length-1];if(e.icon)m.icon=q(e.icon,p);if(e.class)m.cssClasses=q(e.class,p)},"decorateNode"),Oe=t((e)=>{switch(e){case E.DEFAULT:return"no-border";case E.RECT:return"rect";case E.ROUNDED_RECT:return"rounded-rect";case E.CIRCLE:return"circle";case E.CLOUD:return"cloud";case E.BANG:return"bang";case E.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Ie=t(()=>i,"getLogger"),Ce=t((e)=>ce[e],"getElementById"),we={clear:_e,addNode:xe,getSections:fe,getData:Ne,nodeType:E,getType:ve,setElementForId:De,decorateNode:Le,type2Str:Oe,getLogger:Ie,getElementById:Ce},Ae=we,Te=t(async(e,p,m,a)=>{i.debug(`Rendering kanban diagram
11
- `+e);let N=a.db.getData(),S=d();S.htmlLabels=!1;let u=J(p);for(let k of N.nodes)k.domId=`${p}-${k.id}`;let C=u.append("g");C.attr("class","sections");let T=u.append("g");T.attr("class","items");let b=N.nodes.filter((k)=>k.isGroup),P=0,x=10,z=[],D=25;for(let k of b){let V=S?.kanban?.sectionWidth||200;P=P+1,k.x=V*P+(P-1)*x/2,k.width=V,k.y=0,k.height=V*3,k.rx=5,k.ry=5,k.cssClasses=k.cssClasses+" section-"+P;let w=await sr(C,k);D=Math.max(D,w?.labelBBox?.height),z.push(w)}let U=0;for(let k of b){let V=z[U];U=U+1;let w=S?.kanban?.sectionWidth||200,X=-w*3/2+D,B=X,Z=N.nodes.filter((s)=>s.parentId===k.id);for(let s of Z){if(s.isGroup)throw Error("Groups within groups are not allowed in Kanban diagrams");s.x=k.x,s.width=w-1.5*x;let o=(await An(T,s,{config:S})).node().getBBox();s.y=B+o.height/2,await hn(s),B=s.y+o.height/2+x/2}let H=V.cluster.select("rect"),A=Math.max(B-X+3*x,50)+(D-25);H.attr("height",A)}mn(void 0,u,S.mindmap?.padding??F.kanban.padding,S.mindmap?.useMaxWidth??F.kanban.useMaxWidth)},"draw"),Re={draw:Te},Pe=t((e)=>{let p="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(e["lineColor"+a]=e["lineColor"+a]||e["cScaleInv"+a],de(e["lineColor"+a]))e["lineColor"+a]=f(e["lineColor"+a],20);else e["lineColor"+a]=h(e["lineColor"+a],20);let m=t((a,y)=>e.darkMode?h(a,y):f(a,y),"adjuster");for(let a=0;a<e.THEME_COLOR_LIMIT;a++){let y=""+(17-3*a);p+=`
11
+ `+e);let N=a.db.getData(),S=d();S.htmlLabels=!1;let u=J(p);for(let k of N.nodes)k.domId=`${p}-${k.id}`;let C=u.append("g");C.attr("class","sections");let T=u.append("g");T.attr("class","items");let b=N.nodes.filter((k)=>k.isGroup),P=0,x=10,z=[],D=25;for(let k of b){let V=S?.kanban?.sectionWidth||200;P=P+1,k.x=V*P+(P-1)*x/2,k.width=V,k.y=0,k.height=V*3,k.rx=5,k.ry=5,k.cssClasses=k.cssClasses+" section-"+P;let w=await lr(C,k);D=Math.max(D,w?.labelBBox?.height),z.push(w)}let U=0;for(let k of b){let V=z[U];U=U+1;let w=S?.kanban?.sectionWidth||200,X=-w*3/2+D,B=X,Z=N.nodes.filter((s)=>s.parentId===k.id);for(let s of Z){if(s.isGroup)throw Error("Groups within groups are not allowed in Kanban diagrams");s.x=k.x,s.width=w-1.5*x;let o=(await An(T,s,{config:S})).node().getBBox();s.y=B+o.height/2,await hn(s),B=s.y+o.height/2+x/2}let H=V.cluster.select("rect"),A=Math.max(B-X+3*x,50)+(D-25);H.attr("height",A)}mn(void 0,u,S.mindmap?.padding??F.kanban.padding,S.mindmap?.useMaxWidth??F.kanban.useMaxWidth)},"draw"),Re={draw:Te},Pe=t((e)=>{let p="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(e["lineColor"+a]=e["lineColor"+a]||e["cScaleInv"+a],de(e["lineColor"+a]))e["lineColor"+a]=f(e["lineColor"+a],20);else e["lineColor"+a]=h(e["lineColor"+a],20);let m=t((a,y)=>e.darkMode?h(a,y):f(a,y),"adjuster");for(let a=0;a<e.THEME_COLOR_LIMIT;a++){let y=""+(17-3*a);p+=`
12
12
  .section-${a-1} rect, .section-${a-1} path, .section-${a-1} circle, .section-${a-1} polygon, .section-${a-1} path {
13
13
  fill: ${m(e["cScale"+a],10)};
14
14
  stroke: ${m(e["cScale"+a],10)};
Binary file
Binary file
@@ -1 +1 @@
1
- import{t}from"./chunk-9hkz2jgq.js";var c=1;function i(){if(typeof globalThis>"u")return;return globalThis}t(i,"getCaptureGlobal");function p(){return Boolean(i()?.mermaidCaptureSizes)}t(p,"shouldCaptureSizes");function u(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}t(u,"capturedFromLocation");function d(n,r){let o=i();if(!o)return;let e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";o.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};o.mermaidCapturedSizes.push(a),o.mermaidLastCapturedSizes=a}t(d,"emitCapturedSizes");function m(n,r){let o=[];for(let e of r.nodes){if(e.isGroup)continue;o.push({id:e.id,width:e.width??0,height:e.height??0})}if(o.length===0)return;d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:o},n)}t(m,"captureNodeSizes");export{m as captureNodeSizes};
1
+ import{t}from"./chunk-sawc81kc.js";var c=1;function i(){if(typeof globalThis>"u")return;return globalThis}t(i,"getCaptureGlobal");function p(){return Boolean(i()?.mermaidCaptureSizes)}t(p,"shouldCaptureSizes");function u(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}t(u,"capturedFromLocation");function d(n,r){let o=i();if(!o)return;let e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";o.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};o.mermaidCapturedSizes.push(a),o.mermaidLastCapturedSizes=a}t(d,"emitCapturedSizes");function m(n,r){let o=[];for(let e of r.nodes){if(e.isGroup)continue;o.push({id:e.id,width:e.width??0,height:e.height??0})}if(o.length===0)return;d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:o},n)}t(m,"captureNodeSizes");export{m as captureNodeSizes};
Binary file
Binary file
@@ -1,6 +1,6 @@
1
- import{Mr}from"./chunk-ccdww2gj.js";import{ae}from"./chunk-5v7dyp6t.js";import{t,i,F,A,q,W,N,M,P,R,I,O,D,J,Wr,Zt,Z}from"./chunk-9hkz2jgq.js";import{fe}from"./chunk-wh028xj6.js";var S=/[─━│┃└┗├┣]/,H=/[└┗├┣]/,K=/[─━]/,k=/^[\s│┃]+$/,E=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,L=/^\s*%%/,Q=" ";function X(n){return n.some((r)=>S.test(r))}t(X,"isBoxDrawingFormat");function z(n){for(let r of n){let e=H.exec(r);if(e?.index&&e.index>0)return e.index}return 4}t(z,"inferSegmentWidth");function G(n,r){return n.replace(/\bline\s+(\d+)\b/gi,(e,o)=>{let c=parseInt(o,10),s=r.get(c);return s?`line ${s}`:e})}t(G,"remapErrorLines");function Y(n){let r=n.split(`
1
+ import{Mr}from"./chunk-wrej9qt0.js";import{ie}from"./chunk-tykcqm6v.js";import{t,i,F,A,q,W,N,M,P,R,I,O,D,J,Wr,Zt,Z}from"./chunk-sawc81kc.js";import{fe}from"./chunk-4ab1dv3g.js";var S=/[─━│┃└┗├┣]/,H=/[└┗├┣]/,K=/[─━]/,k=/^[\s│┃]+$/,E=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,L=/^\s*%%/,Q=" ";function X(n){return n.some((r)=>S.test(r))}t(X,"isBoxDrawingFormat");function z(n){for(let r of n){let e=H.exec(r);if(e?.index&&e.index>0)return e.index}return 4}t(z,"inferSegmentWidth");function G(n,r){return n.replace(/\bline\s+(\d+)\b/gi,(e,o)=>{let c=parseInt(o,10),s=r.get(c);return s?`line ${s}`:e})}t(G,"remapErrorLines");function Y(n){let r=n.split(`
2
2
  `),e=new Map,o=-1;for(let[g,d]of r.entries())if(d.trim()==="treeView-beta"){o=g;break}if(o===-1)return{text:n,lineMap:e};let c=[];for(let g=o+1;g<r.length;g++){let d=r[g];if(d.trim()===""||L.test(d)||E.test(d))continue;if(k.test(d))continue;c.push(d.replace(/\t/g," "))}if(!X(c))return{text:n,lineMap:e};let s=z(c),a=[],l=0;for(let g=0;g<=o;g++)a.push(r[g]),l++,e.set(l,g+1);for(let g=o+1;g<r.length;g++){let d=r[g],p=d.trim(),f=g+1;if(p===""){a.push(d),l++,e.set(l,f);continue}if(L.test(d)){a.push(d),l++,e.set(l,f);continue}if(E.test(d)){a.push(d),l++,e.set(l,f);continue}if(k.test(d))continue;let h=d.replace(/\t/g," "),w=H.exec(h);if(w?.index!==void 0){let u=w.index,x=Math.round(u/s)+1,m=u+1;while(m<h.length&&K.test(h[m]))m++;while(m<h.length&&h[m]===" ")m++;let b=h.slice(m).trimEnd();if(!b)throw Error(`Line ${f}: Empty node — expected a filename or directory name after the box-drawing prefix`);let j=Q.repeat(x);a.push(j+b),l++,e.set(l,f)}else if(/^[\s─━│┃└┗├┣]+$/.test(h))continue;else if(S.test(h))a.push(d),l++,e.set(l,f);else if(/^\s+/.test(h))throw Error(`Line ${f}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);else a.push(d),l++,e.set(l,f)}return{text:a.join(`
3
- `),lineMap:e}}t(Y,"preprocessBoxDrawing");var v=new Mr(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ee=t(()=>{v.reset(),N()},"clear"),te=t(()=>v.records.stack[0],"getRoot"),re=t(()=>v.records.cnt,"getCount"),ne=F.treeView,ie=t(()=>Z(ne,A().treeView),"getConfig"),oe=t((n,r,e,o,c,s)=>{while(n<=v.records.stack[v.records.stack.length-1].level)v.records.stack.pop();let a={id:v.records.cnt++,level:n,name:r,nodeType:e,icon:c,cssClass:o,description:s,children:[]};v.records.stack[v.records.stack.length-1].children.push(a),v.records.stack.push(a)},"addNode"),se={clear:ee,addNode:oe,getRoot:te,getCount:re,getConfig:ie,getAccTitle:P,getAccDescription:I,getDiagramTitle:D,setAccDescription:R,setAccTitle:M,setDiagramTitle:O},y=se,ce=t((n)=>{ae(n,y);for(let r of n.nodes){let e=typeof r.indent==="number"?r.indent:0,o=r.name,c=o.endsWith("/");if(c)o=o.slice(0,-1);let s=c?"directory":"file",a=r.classAnnotation||void 0,l=r.iconAnnotation,g=l!==void 0?l||"none":void 0,d=r.descAnnotation||void 0,p=d?q(d,A()):void 0;y.addNode(e,o,s,a,g,p)}},"populate"),le={parse:t(async(n)=>{let{text:r,lineMap:e}=Y(n);try{let o=await fe("treeView",r);i.debug(o),ce(o)}catch(o){if(e.size>0&&o instanceof Error)o.message=G(o.message,e);throw o}},"parse")},C={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function U(n,r){let e=r?.filenameIcons?.[n];if(e)return e;let o=n.lastIndexOf(".");if(o>0){let c=n.substring(o).toLowerCase(),s=r?.extensionIcons;return s?.[c]??s?.[c.slice(1)]}return}t(U,"detectIcon");function B(n,r){if(n.includes(":"))return n;if(n in C.icons||!r)return`${C.prefix}:${n}`;return`${r}:${n}`}t(B,"qualifyIcon");function V(n,r){if(n.icon==="none")return;if(n.icon)return B(n.icon,r.defaultIconPack);if(!r.showIcons)return;if(n.nodeType==="file"){let e=U(n.name,r);if(e==="none")return;if(e)return B(e,r.defaultIconPack)}return`${C.prefix}:${n.nodeType==="directory"?"folder":"file"}`}t(V,"getNodeIcon");Wr([{name:C.prefix,icons:C}]);var T=14,de=4,he=16,pe=t(async(n,r)=>{let e=[],o=t((s)=>{let a=V(s,r);if(a)e.push({icon:a,node:s});s.children.forEach(o)},"collect");o(n);let c=await Promise.all(e.map(async({icon:s,node:a})=>({id:a.id,svg:await Zt(s,{height:T,width:T})})));return new Map(c.map(({id:s,svg:a})=>[s,a]))},"resolveNodeIcons"),ge=t((n,r,e,o,c,s)=>{let a=o.append("g"),l="treeView-node-label";if(e.nodeType==="directory")l+=" treeView-node-dir";if(e.cssClass)l+=` ${e.cssClass}`;let g=T+de,d=V(e,c),p=d!==void 0;if(d)a.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+c.paddingX}, ${r+c.paddingY})`).html(s.get(e.id)??"");let f=a.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",l),{height:h,width:w}=f.node().getBBox(),u=h+c.paddingY*2,x=n+c.paddingX+(p?g:0);f.attr("x",x),f.attr("y",r+u/2);let m=x+w,b=w+c.paddingX*2+(p?g:0);if(e.BBox={x:n,y:r,width:b,height:u},e.cssClass?.split(/\s+/).includes("highlight"))a.insert("rect",":first-child").attr("x",n).attr("y",r+1).attr("width",0).attr("height",u-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:e,nodeGroup:a,labelRightEdge:m,centerY:r+u/2}},"positionLabel"),_=t((n,r,e,o,c,s)=>n.append("line").attr("x1",r).attr("y1",e).attr("x2",o).attr("y2",c).attr("stroke-width",s).attr("class","treeView-node-line"),"positionLine"),ue=t((n,r,e,o)=>{let c=0,s=0,a=[],l=t((p,f,h,w)=>{let u=w*(h.rowIndent+h.paddingX),x=ge(u,c,f,p,h,o);a.push(x);let{height:m,width:b}=f.BBox;_(p,u-h.rowIndent,c+m/2,u,c+m/2,h.lineThickness),s=Math.max(s,u+b),c+=m},"drawNode"),g=t((p,f=0)=>{l(n,p,e,f),p.children.forEach((x)=>{g(x,f+1)});let{x:h,y:w,height:u}=p.BBox;if(p.children.length){let{y:x,height:m}=p.children[p.children.length-1].BBox;_(n,h+e.paddingX,w+u,h+e.paddingX,x+m/2+e.lineThickness/2,e.lineThickness)}},"processNode");g(r);let d=a.filter((p)=>p.node.description);if(d.length>0){let f=Math.max(...a.map((h)=>h.labelRightEdge))+he;for(let h of d){let u=h.nodeGroup.append("text").text(h.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",f).attr("y",h.centerY).node().getBBox();s=Math.max(s,f+u.width+e.paddingX)}}for(let p of a)if(p.node.cssClass?.split(/\s+/).includes("highlight")){let f=p.nodeGroup.select(".treeView-highlight-bg");if(!f.empty()){let h=s-p.node.BBox.x+8;f.attr("width",h),s=Math.max(s,p.node.BBox.x+h+2)}}return{totalHeight:c,totalWidth:s}},"drawTree"),me=t(async(n,r,e,o)=>{i.debug(`Rendering treeView diagram
3
+ `),lineMap:e}}t(Y,"preprocessBoxDrawing");var v=new Mr(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ee=t(()=>{v.reset(),N()},"clear"),te=t(()=>v.records.stack[0],"getRoot"),re=t(()=>v.records.cnt,"getCount"),ne=F.treeView,oe=t(()=>Z(ne,A().treeView),"getConfig"),se=t((n,r,e,o,c,s)=>{while(n<=v.records.stack[v.records.stack.length-1].level)v.records.stack.pop();let a={id:v.records.cnt++,level:n,name:r,nodeType:e,icon:c,cssClass:o,description:s,children:[]};v.records.stack[v.records.stack.length-1].children.push(a),v.records.stack.push(a)},"addNode"),ae={clear:ee,addNode:se,getRoot:te,getCount:re,getConfig:oe,getAccTitle:P,getAccDescription:I,getDiagramTitle:D,setAccDescription:R,setAccTitle:M,setDiagramTitle:O},y=ae,ce=t((n)=>{ie(n,y);for(let r of n.nodes){let e=typeof r.indent==="number"?r.indent:0,o=r.name,c=o.endsWith("/");if(c)o=o.slice(0,-1);let s=c?"directory":"file",a=r.classAnnotation||void 0,l=r.iconAnnotation,g=l!==void 0?l||"none":void 0,d=r.descAnnotation||void 0,p=d?q(d,A()):void 0;y.addNode(e,o,s,a,g,p)}},"populate"),le={parse:t(async(n)=>{let{text:r,lineMap:e}=Y(n);try{let o=await fe("treeView",r);i.debug(o),ce(o)}catch(o){if(e.size>0&&o instanceof Error)o.message=G(o.message,e);throw o}},"parse")},C={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function U(n,r){let e=r?.filenameIcons?.[n];if(e)return e;let o=n.lastIndexOf(".");if(o>0){let c=n.substring(o).toLowerCase(),s=r?.extensionIcons;return s?.[c]??s?.[c.slice(1)]}return}t(U,"detectIcon");function B(n,r){if(n.includes(":"))return n;if(n in C.icons||!r)return`${C.prefix}:${n}`;return`${r}:${n}`}t(B,"qualifyIcon");function V(n,r){if(n.icon==="none")return;if(n.icon)return B(n.icon,r.defaultIconPack);if(!r.showIcons)return;if(n.nodeType==="file"){let e=U(n.name,r);if(e==="none")return;if(e)return B(e,r.defaultIconPack)}return`${C.prefix}:${n.nodeType==="directory"?"folder":"file"}`}t(V,"getNodeIcon");Wr([{name:C.prefix,icons:C}]);var T=14,de=4,he=16,pe=t(async(n,r)=>{let e=[],o=t((s)=>{let a=V(s,r);if(a)e.push({icon:a,node:s});s.children.forEach(o)},"collect");o(n);let c=await Promise.all(e.map(async({icon:s,node:a})=>({id:a.id,svg:await Zt(s,{height:T,width:T})})));return new Map(c.map(({id:s,svg:a})=>[s,a]))},"resolveNodeIcons"),ge=t((n,r,e,o,c,s)=>{let a=o.append("g"),l="treeView-node-label";if(e.nodeType==="directory")l+=" treeView-node-dir";if(e.cssClass)l+=` ${e.cssClass}`;let g=T+de,d=V(e,c),p=d!==void 0;if(d)a.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+c.paddingX}, ${r+c.paddingY})`).html(s.get(e.id)??"");let f=a.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",l),{height:h,width:w}=f.node().getBBox(),u=h+c.paddingY*2,x=n+c.paddingX+(p?g:0);f.attr("x",x),f.attr("y",r+u/2);let m=x+w,b=w+c.paddingX*2+(p?g:0);if(e.BBox={x:n,y:r,width:b,height:u},e.cssClass?.split(/\s+/).includes("highlight"))a.insert("rect",":first-child").attr("x",n).attr("y",r+1).attr("width",0).attr("height",u-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:e,nodeGroup:a,labelRightEdge:m,centerY:r+u/2}},"positionLabel"),_=t((n,r,e,o,c,s)=>n.append("line").attr("x1",r).attr("y1",e).attr("x2",o).attr("y2",c).attr("stroke-width",s).attr("class","treeView-node-line"),"positionLine"),ue=t((n,r,e,o)=>{let c=0,s=0,a=[],l=t((p,f,h,w)=>{let u=w*(h.rowIndent+h.paddingX),x=ge(u,c,f,p,h,o);a.push(x);let{height:m,width:b}=f.BBox;_(p,u-h.rowIndent,c+m/2,u,c+m/2,h.lineThickness),s=Math.max(s,u+b),c+=m},"drawNode"),g=t((p,f=0)=>{l(n,p,e,f),p.children.forEach((x)=>{g(x,f+1)});let{x:h,y:w,height:u}=p.BBox;if(p.children.length){let{y:x,height:m}=p.children[p.children.length-1].BBox;_(n,h+e.paddingX,w+u,h+e.paddingX,x+m/2+e.lineThickness/2,e.lineThickness)}},"processNode");g(r);let d=a.filter((p)=>p.node.description);if(d.length>0){let f=Math.max(...a.map((h)=>h.labelRightEdge))+he;for(let h of d){let u=h.nodeGroup.append("text").text(h.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",f).attr("y",h.centerY).node().getBBox();s=Math.max(s,f+u.width+e.paddingX)}}for(let p of a)if(p.node.cssClass?.split(/\s+/).includes("highlight")){let f=p.nodeGroup.select(".treeView-highlight-bg");if(!f.empty()){let h=s-p.node.BBox.x+8;f.attr("width",h),s=Math.max(s,p.node.BBox.x+h+2)}}return{totalHeight:c,totalWidth:s}},"drawTree"),me=t(async(n,r,e,o)=>{i.debug(`Rendering treeView diagram
4
4
  `+n);let c=o.db,s=c.getRoot(),a=c.getConfig(),l=J(r),g=l.append("g");g.attr("class","tree-view");let d=await pe(s,a),{totalHeight:p,totalWidth:f}=ue(g,s,a,d);l.attr("viewBox",`-${a.lineThickness/2} 0 ${f} ${p}`),W(l,p,f,a.useMaxWidth)},"draw"),we={draw:me},xe=we,ve={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},be=t(({treeView:n})=>{let{labelFontSize:r,labelColor:e,lineColor:o,iconColor:c,descriptionColor:s,highlightBg:a,highlightStroke:l}=Z(ve,n);return`
5
5
  .treeView-node-label {
6
6
  font-size: ${r};
Binary file
Binary file
@@ -1 +1 @@
1
- import{v,s,ee,o,a,m,e,n,b,Sr,ge}from"./chunk-ev6xj0qs.js";import{Xn}from"./chunk-yqzsx086.js";import"./chunk-19qs8qhf.js";var H={config:"自定义路径",env:"环境变量",system:"系统预装"},E="chrome://inspect/#remote-debugging";function M({connection:f}){let{Button:S,Input:N,Switch:y,SettingGroup:C,SettingRow:p,cn:B}=b(),R=ee(),[w,k]=a({}),[r,g]=a({}),[i,x]=a(null),[u,I]=a(!0),[O,P]=a(!1),[d,G]=a(!1),[D,c]=a(null),T=o(null),q=(r.executable??"")!==(w.executable??"")||Boolean(r.noSandbox)!==Boolean(w.noSandbox)||Boolean(r.ignoreCertErrors)!==Boolean(w.ignoreCertErrors)||Boolean(r.userBrowser)!==Boolean(w.userBrowser)||(r.cdpEndpoint??"")!==(w.cdpEndpoint??""),z=v(async(t)=>{P(!0);try{let l=await f.request("/api/plugins/browser/status",{signal:t});x(l)}catch(l){if(!t?.aborted)x({available:!1,error:l instanceof Error?l.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)P(!1)}},[f]);s(()=>{let t=new AbortController;return T.current=t,Promise.all([f.request("/api/plugins/browser/settings",{signal:t.signal}),f.request("/api/plugins/browser/status",{signal:t.signal})]).then(([l,h])=>{if(!t.signal.aborted)k(l),g(l),x(h)}).catch((l)=>{if(!t.signal.aborted)c({type:"error",text:l instanceof Error?l.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)I(!1)}),()=>t.abort()},[f]);let U=async(t)=>{if(t?.preventDefault(),d||u)return;let l=new AbortController;G(!0),c(null);try{if(await f.request("/api/plugins/browser/settings",{method:"PATCH",signal:l.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),!l.signal.aborted)k(r),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await z(l.signal)}catch(h){if(!l.signal.aborted)c({type:"error",text:h instanceof Error?h.message:"保存设置失败"})}finally{if(!l.signal.aborted)G(!1)}},L=()=>{g(w),c(null)},_=async()=>{try{await navigator.clipboard.writeText(E),c({type:"success",text:"已复制,粘贴到 Chrome 地址栏打开后开启远程调试。"})}catch{c({type:"error",text:`无法写入剪贴板,请手动复制:${E}`})}},F=i?.user?.available===!1,A="首次连接时在 Chrome 弹窗中点「允许」";if(F)A=r.cdpEndpoint?e("span",{className:"break-words text-danger",children:i?.user?.error}):"在 Chrome 打开远程调试设置页并开启";return n("form",{id:R,onSubmit:U,className:"min-w-0 space-y-5",children:[e(C,{title:"运行环境",children:e(p,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:B("size-2 shrink-0 rounded-full",i?.available?"bg-success":"bg-danger")}),i?i.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:i&&!i.available&&i.error?e("span",{className:"text-danger",children:i.error}):i?.available&&i.source?`来源:${H[i.source]??i.source}`:void 0,children:n(S,{type:"button",size:"sm",variant:"ghost",disabled:u||O,onClick:()=>void z(),className:"text-dim",children:[e(ge,{className:B("size-3.5",O&&"animate-spin")}),"重新检测"]})})}),n(C,{title:"用户浏览器",children:[e(p,{title:"启用远程调试连接",description:"允许通过 Chrome 远程调试连接你的浏览器(默认关闭)",children:e(y,{label:"启用远程调试连接",disabled:u||d,checked:r.userBrowser??!1,onCheckedChange:(t)=>{g({...r,userBrowser:t}),c(null)}})}),r.userBrowser&&n(m,{children:[e(p,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:B("size-2 shrink-0 rounded-full",i?.user?i.user.available?"bg-success":"bg-danger":"bg-dim")}),i?.user?i.user.available?"可以连接":"暂不可连接":"待保存后检测"]}),description:i?.user?A:"点击下方保存后将检测远程调试连接状态",children:!r.cdpEndpoint&&n(S,{type:"button",size:"sm",variant:"secondary",title:E,onClick:()=>void _(),children:[e(Sr,{className:"size-3.5"}),"复制远程调试地址"]})}),e(p,{vertical:!0,title:"调试地址",description:"可选,连接以 --remote-debugging-port 启动的本机浏览器",children:e(N,{id:"browser-cdp-endpoint","aria-label":"浏览器调试地址",disabled:u||d,value:r.cdpEndpoint??"",placeholder:"留空连接日常 Chrome",onChange:(t)=>{g({...r,cdpEndpoint:t.target.value}),c(null)}})})]})]}),n(C,{title:"启动参数",children:[e(p,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(N,{id:"browser-executable",disabled:u||d,value:r.executable??"",placeholder:"自动探测",onChange:(t)=>{g({...r,executable:t.target.value}),c(null)}}),r.executable&&e(S,{type:"button",variant:"ghost",size:"sm",disabled:u||d,onClick:()=>{g({...r,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(p,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(y,{label:"禁用沙箱",disabled:u||d,checked:r.noSandbox??!1,onCheckedChange:(t)=>{g({...r,noSandbox:t}),c(null)}})}),e(p,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(y,{label:"忽略证书错误",disabled:u||d,checked:r.ignoreCertErrors??!1,onCheckedChange:(t)=>{g({...r,ignoreCertErrors:t}),c(null)}})})]}),e(Xn,{formID:R,notice:D,dirty:q,busy:u||d,saving:d,onReset:L})]})}export{M as default};
1
+ import{v,s,ee,o,a,m,e,n,b,Sr,ge}from"./chunk-6f1q0tjv.js";import{Zn}from"./chunk-hta68vm8.js";import"./chunk-77dnqrb6.js";var H={config:"自定义路径",env:"环境变量",system:"系统预装"},E="chrome://inspect/#remote-debugging";function M({connection:f}){let{Button:S,Input:N,Switch:y,SettingGroup:C,SettingRow:p,cn:B}=b(),R=ee(),[w,k]=a({}),[r,g]=a({}),[i,x]=a(null),[u,I]=a(!0),[O,P]=a(!1),[d,G]=a(!1),[D,c]=a(null),T=o(null),q=(r.executable??"")!==(w.executable??"")||Boolean(r.noSandbox)!==Boolean(w.noSandbox)||Boolean(r.ignoreCertErrors)!==Boolean(w.ignoreCertErrors)||Boolean(r.userBrowser)!==Boolean(w.userBrowser)||(r.cdpEndpoint??"")!==(w.cdpEndpoint??""),z=v(async(t)=>{P(!0);try{let l=await f.request("/api/plugins/browser/status",{signal:t});x(l)}catch(l){if(!t?.aborted)x({available:!1,error:l instanceof Error?l.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)P(!1)}},[f]);s(()=>{let t=new AbortController;return T.current=t,Promise.all([f.request("/api/plugins/browser/settings",{signal:t.signal}),f.request("/api/plugins/browser/status",{signal:t.signal})]).then(([l,h])=>{if(!t.signal.aborted)k(l),g(l),x(h)}).catch((l)=>{if(!t.signal.aborted)c({type:"error",text:l instanceof Error?l.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)I(!1)}),()=>t.abort()},[f]);let U=async(t)=>{if(t?.preventDefault(),d||u)return;let l=new AbortController;G(!0),c(null);try{if(await f.request("/api/plugins/browser/settings",{method:"PATCH",signal:l.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),!l.signal.aborted)k(r),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await z(l.signal)}catch(h){if(!l.signal.aborted)c({type:"error",text:h instanceof Error?h.message:"保存设置失败"})}finally{if(!l.signal.aborted)G(!1)}},L=()=>{g(w),c(null)},_=async()=>{try{await navigator.clipboard.writeText(E),c({type:"success",text:"已复制,粘贴到 Chrome 地址栏打开后开启远程调试。"})}catch{c({type:"error",text:`无法写入剪贴板,请手动复制:${E}`})}},F=i?.user?.available===!1,A="首次连接时在 Chrome 弹窗中点「允许」";if(F)A=r.cdpEndpoint?e("span",{className:"break-words text-danger",children:i?.user?.error}):"在 Chrome 打开远程调试设置页并开启";return n("form",{id:R,onSubmit:U,className:"min-w-0 space-y-5",children:[e(C,{title:"运行环境",children:e(p,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:B("size-2 shrink-0 rounded-full",i?.available?"bg-success":"bg-danger")}),i?i.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:i&&!i.available&&i.error?e("span",{className:"text-danger",children:i.error}):i?.available&&i.source?`来源:${H[i.source]??i.source}`:void 0,children:n(S,{type:"button",size:"sm",variant:"ghost",disabled:u||O,onClick:()=>void z(),className:"text-dim",children:[e(ge,{className:B("size-3.5",O&&"animate-spin")}),"重新检测"]})})}),n(C,{title:"用户浏览器",children:[e(p,{title:"启用远程调试连接",description:"允许通过 Chrome 远程调试连接你的浏览器(默认关闭)",children:e(y,{label:"启用远程调试连接",disabled:u||d,checked:r.userBrowser??!1,onCheckedChange:(t)=>{g({...r,userBrowser:t}),c(null)}})}),r.userBrowser&&n(m,{children:[e(p,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:B("size-2 shrink-0 rounded-full",i?.user?i.user.available?"bg-success":"bg-danger":"bg-dim")}),i?.user?i.user.available?"可以连接":"暂不可连接":"待保存后检测"]}),description:i?.user?A:"点击下方保存后将检测远程调试连接状态",children:!r.cdpEndpoint&&n(S,{type:"button",size:"sm",variant:"secondary",title:E,onClick:()=>void _(),children:[e(Sr,{className:"size-3.5"}),"复制远程调试地址"]})}),e(p,{vertical:!0,title:"调试地址",description:"可选,连接以 --remote-debugging-port 启动的本机浏览器",children:e(N,{id:"browser-cdp-endpoint","aria-label":"浏览器调试地址",disabled:u||d,value:r.cdpEndpoint??"",placeholder:"留空连接日常 Chrome",onChange:(t)=>{g({...r,cdpEndpoint:t.target.value}),c(null)}})})]})]}),n(C,{title:"启动参数",children:[e(p,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(N,{id:"browser-executable",disabled:u||d,value:r.executable??"",placeholder:"自动探测",onChange:(t)=>{g({...r,executable:t.target.value}),c(null)}}),r.executable&&e(S,{type:"button",variant:"ghost",size:"sm",disabled:u||d,onClick:()=>{g({...r,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(p,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(y,{label:"禁用沙箱",disabled:u||d,checked:r.noSandbox??!1,onCheckedChange:(t)=>{g({...r,noSandbox:t}),c(null)}})}),e(p,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(y,{label:"忽略证书错误",disabled:u||d,checked:r.ignoreCertErrors??!1,onCheckedChange:(t)=>{g({...r,ignoreCertErrors:t}),c(null)}})})]}),e(Zn,{formID:R,notice:D,dirty:q,busy:u||d,saving:d,onReset:L})]})}export{M as default};
Binary file
Binary file
@@ -1 +1 @@
1
- import{v,s,o,a,m,e,n,b,l,ye,zt,$e,be,ge,vt,jt,xe,ce,Vc,di,mi,fi,cs}from"./chunk-ev6xj0qs.js";import{_i,wi,ki}from"./chunk-mtzj1zyw.js";var Ce=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],ue=l("rotate-cw",Ce);function pe(i){let{ApprovalPanel:P,Button:S,CopyButton:H,DetailChip:R,DetailList:g,DetailRow:p,DetailTitle:M,Dialog:D,Switch:Z,Tooltip:u,cn:te,confirm:w,useTheme:ne}=b();ne();let{info:r,connection:j}=i,N=i.projectID?`?projectID=${encodeURIComponent(i.projectID)}`:"",[G,se]=a(),[J,z]=a(),[h,T]=a(!1),[y,E]=a(),[B,O]=a(),Y=r.status.status==="connected",ee=r.status.status==="needs_auth",A=r.status.status==="failed",t=r.config.type==="remote"&&Boolean(r.config.oauth),I=r.projectID!==(i.projectID??null);s(()=>{function d(k){if(k&&k!==r.name)return;j.request(`/api/mcp/${encodeURIComponent(r.name)}/connect${N}`,{method:"POST"}).then((C)=>i.onChanged(C)).catch((C)=>{z(C instanceof Error?C.message:"授权后重新连接失败")})}function c(k){if(k.origin!==window.location.origin)return;if(k.data?.type==="mcp-oauth-success")d(k.data.name)}function f(k){if(k.key==="basalt-mcp-oauth-event"&&k.newValue)try{let C=JSON.parse(k.newValue);d(C.name)}catch(C){}}window.addEventListener("message",c),window.addEventListener("storage",f);let K;if("BroadcastChannel"in window)K=new BroadcastChannel("basalt-mcp-oauth"),K.onmessage=(k)=>{if(k.data?.type==="mcp-oauth-success")d(k.data.name)};return()=>{window.removeEventListener("message",c),window.removeEventListener("storage",f),K?.close()}},[j,r.name,N,i]),s(()=>{if(r.status.status!=="connected")return;j.request(`/api/mcp/${encodeURIComponent(r.name)}/tools${N}`).then((d)=>{if(Array.isArray(d))se(d),z(void 0)}).catch((d)=>{z(d instanceof Error?d.message:"获取工具失败")})},[j,r.name,N,r.status.status]);async function x(d){T(!0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/${d}${N}`,{method:"POST"});i.onChanged(c)}catch{}finally{T(!1)}}async function F(){if(!y||h)return;let d=y.fingerprint;O(void 0),T(!0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/trust${N}`,{method:"POST",body:JSON.stringify({fingerprint:d})});i.onChanged(c),E(void 0)}catch(c){O(c instanceof Error?c.message:"确认失败,请刷新配置")}finally{T(!1)}}async function U(){let d=window.open("about:blank","_blank","width=600,height=700");if(!d){z("授权窗口被浏览器拦截,请允许弹出窗口后重试");return}T(!0),z(void 0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/oauth/authorize${N}`,{method:"POST"}),f=new URL(c.authorizationUrl);if(f.protocol!=="https:"&&f.protocol!=="http:")throw Error("授权服务返回了不支持的链接协议");d.location.href=f.href}catch(c){d.close(),z(c instanceof Error?c.message:"获取授权链接失败")}finally{T(!1)}}async function ie(){T(!0);try{let d=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/oauth/clear${N}`,{method:"POST"});i.onChanged(d)}finally{T(!1)}}async function _(){if(!await w({title:`删除 ${r.name}?`,description:"删除后将断开连接并不再向会话提供其工具。",action:"删除",danger:!0}))return;T(!0);try{await j.request(`/api/mcp/${encodeURIComponent(r.name)}${N}`,{method:"DELETE"}),i.onChanged(),i.onClose()}finally{T(!1)}}let ae=r.config,re=fi(ae),V="error"in r.status?r.status.error:void 0,oe=ae.enabled===!1,le=!oe&&!ee&&r.status.status!=="needs_trust";if(y)return e(D,{open:!0,onOpenChange:(d)=>{if(!d&&!h)E(void 0)},title:`信任 ${r.name}?`,size:"lg",children:n(P,{hideTitle:!0,title:"信任项目本地命令",command:y.command,approveLabel:"信任并连接",busy:h?"approve":void 0,error:B,onDecision:(d)=>{if(d)F();else E(void 0)},description:"项目命令将以你的权限运行,请确认来源可信。",children:[n("div",{className:"flex min-w-0 items-start gap-2 text-xs text-dim",children:[e("span",{className:"shrink-0 leading-5",children:"目录"}),e("code",{className:"min-w-0 flex-1 leading-5 [overflow-wrap:anywhere]",children:y.cwd}),e(H,{text:y.cwd,label:"复制工作目录",size:"icon-xs"})]}),n("section",{className:"min-w-0 space-y-2",children:[e("h3",{className:"text-xs font-medium text-dim",children:"环境变量"}),y.variables.length?e("div",{className:"flex min-w-0 flex-wrap gap-2",children:y.variables.map((d)=>e("span",{className:"max-w-full rounded-md bg-raised px-2 py-1 font-mono text-xs text-dim [overflow-wrap:anywhere]",children:d},d))}):e("p",{className:"text-xs text-faint",children:"无"})]}),e("p",{className:"text-xs leading-5 text-faint",children:"配置变更后需重新确认。"})]})});return e(D,{open:!0,onOpenChange:(d)=>{if(!d&&!h)i.onClose()},title:e(M,{icon:ae.type==="local"?e(jt,{}):e($e,{}),name:r.name,meta:[ae.type==="local"?"本地命令":"远程服务",mi(r.scope),t&&"OAuth 2.0"]}),size:"lg",footer:n("div",{className:"flex w-full items-center justify-between gap-2 max-sm:[&>*]:flex-none",children:[n("div",{className:"inline-flex items-center gap-2.5 text-ui text-dim",children:[!I&&e(Z,{label:`启用 ${r.name}`,checked:!oe,disabled:h||i.toggling,onCheckedChange:i.onToggle}),e(cs,{info:r,tools:!0})]}),n("div",{className:"flex items-center gap-1.5",children:[r.status.status==="needs_trust"&&e(S,{type:"button",size:"sm",onClick:()=>{if(r.status.status!=="needs_trust"||r.config.type!=="local")return;O(void 0),E({fingerprint:r.status.fingerprint,cwd:r.status.cwd,command:fi(r.config),variables:Object.keys(r.config.environment??{})})},disabled:h,children:"信任并连接"}),t&&e(S,{type:"button",variant:"ghost",size:"sm",onClick:ie,disabled:h,children:"清除凭据"}),!I&&e(u,{label:"删除服务器",children:e(S,{type:"button",variant:"danger-ghost",size:"icon","aria-label":"删除服务器",onClick:_,disabled:h,children:e(xe,{className:"size-4"})})}),le&&e(u,{label:"终止服务进程并重新启动,让更新后的代码生效",children:e(S,{type:"button",variant:"ghost",size:"icon","aria-label":"重启",onClick:()=>x("restart"),disabled:h,children:e(ue,{className:te("size-4",h&&"animate-spin")})})}),le&&e(S,{type:"button",size:"sm",onClick:()=>x(Y?"disconnect":"connect"),disabled:h,children:Y?"断开连接":"连接"}),!I&&n(S,{type:"button",size:"sm",onClick:i.onEdit,disabled:h,children:[e(vt,{className:"size-3.5"}),e("span",{children:"编辑配置"})]})]})]}),children:n(g,{children:[n(p,{label:ae.type==="local"?"命令":"地址",children:[e("span",{className:"min-w-0 font-mono text-xs text-dim leading-5.5 [overflow-wrap:anywhere]",children:re}),e(H,{text:re,label:"复制",size:"icon-xs",className:"shrink-0 text-faint hover:text-ink"})]}),ee&&n("div",{className:"flex items-center justify-between gap-4 py-3.5 max-sm:flex-col max-sm:items-start max-sm:gap-2.5",children:[n("div",{className:"min-w-0 space-y-1",children:[e("p",{className:"text-ui text-ink leading-5",children:"需要授权"}),e("p",{className:"text-xs text-faint leading-5",children:"完成授权后即可使用,凭据自动保存。"})]}),e(S,{type:"button",size:"sm",className:"shrink-0",onClick:U,disabled:h,children:h?"正在连接…":"连接账户"})]}),A&&e(p,{label:"错误",children:e("p",{className:"min-w-0 font-mono text-xs text-danger leading-5 [overflow-wrap:anywhere]",children:V})}),e(p,{label:"工具",children:J?e("span",{className:"text-danger",children:J}):!Y?e("span",{className:"text-faint",children:"连接后列出工具"}):!G?e("span",{role:"status",className:"text-faint",children:"正在获取"}):G.length===0?e("span",{className:"text-faint",children:"服务器没有声明任何工具"}):G.map((d)=>e(R,{mono:!0,title:d.description,children:d.name},d.name))})]})})}var we=/^[A-Za-z0-9_-]{1,64}$/;function Q(i){return e("span",{className:"truncate text-xs text-faint",children:i.children})}function fe(i){let{pairs:P,onChange:S,InputComponent:H}=i,R=(g,p)=>S(P.map((M,D)=>D===g?{...M,...p}:M));return n("div",{className:"space-y-2",children:[n("div",{className:"flex min-h-7 items-center gap-2",children:[e("span",{className:"shrink-0 text-ui font-medium text-dim",children:i.label}),e(Q,{children:i.tip}),n("button",{type:"button",className:"ml-auto inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-lg px-2 text-xs font-medium text-dim transition-colors hover:bg-raised hover:text-ink",onClick:()=>S([...P,{key:"",value:"",saved:!1}]),children:[e(be,{className:"size-3.5"}),"添加"]})]}),P.map((g,p)=>n("div",{className:"flex min-w-0 items-center gap-1.5",children:[e(H,{"aria-label":`${i.keyLabel} ${p+1}`,placeholder:i.keyLabel,value:g.key,readOnly:g.saved,onChange:(M)=>R(p,{key:M.target.value}),className:"min-w-0 flex-[2] font-mono text-xs"}),e(H,{"aria-label":`${i.keyLabel} ${g.key||p+1} 的值`,type:"password",autoComplete:"off",placeholder:g.saved?"已保存,留空保持不变":"值",value:g.value,onChange:(M)=>R(p,{value:M.target.value}),className:"min-w-0 flex-[3] font-mono text-xs"}),e("button",{type:"button","aria-label":`删除 ${g.key||"该项"}`,className:"flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-danger/10 hover:text-danger",onClick:()=>S(P.filter((M,D)=>D!==p)),children:e(ce,{className:"size-4"})})]},p))]})}function he(i){return Object.keys(i??{}).map((P)=>({key:P,value:"",saved:!0}))}function ve(i){let{Button:P,Segmented:S,Dialog:H,Form:R,Field:g,Input:p,Switch:M,style:D,useTheme:Z}=b();Z();let{existing:u}=i,[te,w]=a(u?.config.type??"local"),[ne,r]=a(u?.name??""),[j,N]=a(u?.config.type==="local"?di(u.config.command):""),[G,se]=a(u?.config.type==="remote"?u.config.url:""),[J,z]=a(he(u?.config.type==="local"?u.config.environment:void 0)),[h,T]=a(he(u?.config.type==="remote"?u.config.headers:void 0)),y=u?.config.type==="remote"?u.config.oauth:void 0,[E,B]=a(Boolean(y)),[O,Y]=a(typeof y==="object"&&y.clientId?y.clientId:""),[ee,A]=a(""),[t,I]=a(typeof y==="object"&&y.scope?y.scope:""),[x,F]=a(u?.config.defer??"default"),[U,ie]=a(u?.config.timeout!==void 0?String(u.config.timeout):""),[_,ae]=a(u?.config.defer!==void 0||u?.config.timeout!==void 0),[re,V]=a(),[oe,le]=a(!1);async function d(c){c.preventDefault(),V(void 0);let f=ne.trim();if(!u&&!we.test(f)){V("名称只能包含英文字母、数字、下划线与中划线,长度 1-64");return}if(!u&&i.taken.includes(f)){V("同名服务器已存在");return}let K=U.trim()?Number.parseInt(U.trim(),10):void 0;if(K!==void 0&&(!Number.isFinite(K)||K<=0)){V("超时时间须为大于 0 的毫秒数");return}let k;if(te==="local"){let C=Vc(j.trim());if(!C.length){V("请输入启动命令");return}let W={};for(let q of J){let L=q.key.trim();if(!L)continue;if(!q.saved||q.value)W[L]=q.value}k={type:"local",command:C,environment:Object.keys(W).length?W:void 0,enabled:u?u.config.enabled:!0,defer:x==="default"?void 0:x,timeout:K}}else{let C=G.trim();try{let L=new URL(C);if(L.protocol!=="http:"&&L.protocol!=="https:")throw Error("bad protocol")}catch{V("请输入合法的 HTTP 或 HTTPS 地址");return}let W={};for(let L of h){let de=L.key.trim();if(!de)continue;if(!L.saved||L.value)W[de]=L.value}let q;if(E){let L=O.trim(),de=ee.trim(),me=t.trim();if(L||de||me)q={clientId:L||void 0,clientSecret:de||void 0,scope:me||void 0};else q=!0}else q=!1;k={type:"remote",url:C,headers:Object.keys(W).length?W:void 0,oauth:q,enabled:u?u.config.enabled:!0,defer:x==="default"?void 0:x,timeout:K}}le(!0);try{let C=u?.name??f,W=u?u.projectID:i.projectID,q=W?`?projectID=${encodeURIComponent(W)}`:"";await i.connection.request(`/api/mcp/${encodeURIComponent(C)}${q}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(k)}),i.onSaved()}catch(C){V(C instanceof Error?C.message:"保存失败")}finally{le(!1)}}return e(H,{open:!0,onOpenChange:(c)=>{if(!c&&!oe)i.onClose()},title:u?`编辑 ${u.name}`:"添加 MCP 服务器",size:"lg",footer:n("div",{className:"flex w-full justify-end gap-2.5",children:[e(P,{type:"button",variant:"ghost",onClick:i.onClose,disabled:oe,className:"min-w-20",children:"取消"}),e(P,{type:"submit",form:"mcp-server-form",variant:"primary",disabled:oe,className:"min-w-24",children:oe?"保存中...":"保存"})]}),children:n(R,{id:"mcp-server-form",onSubmit:d,children:[e(S,{value:te,onChange:(c)=>w(c),className:"w-full [&>button]:flex-1",options:[{value:"local",label:"本地(标准输入输出)"},{value:"remote",label:"远程(HTTP / SSE)"}]}),!u&&e(g,{label:"名称",aside:e(Q,{children:"唯一标识,如 postgres"}),children:(c)=>e(p,{id:c,value:ne,onChange:(f)=>r(f.target.value),placeholder:"postgres",className:"font-mono text-xs"})}),te==="local"?n(m,{children:[e(g,{label:"启动命令",aside:e(Q,{children:"完整命令及参数"}),children:(c)=>e(p,{id:c,value:j,onChange:(f)=>N(f.target.value),placeholder:"npx -y @modelcontextprotocol/server-postgres ...",className:"font-mono text-xs"})}),e(fe,{label:"环境变量",tip:"启动进程时注入",keyLabel:"变量名",pairs:J,onChange:z,InputComponent:p})]}):n(m,{children:[e(g,{label:"服务地址",aside:e(Q,{children:"HTTP / HTTPS 端点"}),children:(c)=>e(p,{id:c,value:G,onChange:(f)=>se(f.target.value),placeholder:"https://example.com/mcp",className:"font-mono text-xs"})}),e(fe,{label:"请求头",tip:"随每次请求发送",keyLabel:"头字段",pairs:h,onChange:T,InputComponent:p}),n("div",{className:"flex items-center justify-between gap-4",children:[n("div",{className:"min-w-0",children:[e("span",{className:"block text-ui font-medium text-dim",children:"OAuth 2.0 认证"}),e("span",{className:"block truncate text-xs text-faint",children:"自动发现授权端点,使用 PKCE 并刷新令牌"})]}),e(M,{checked:E,onCheckedChange:B,label:"启用 OAuth 2.0"})]}),E&&n(m,{children:[e(g,{label:"Client ID",aside:e(Q,{children:"留空自动动态注册(DCR)"}),children:(c)=>e(p,{id:c,value:O,onChange:(f)=>Y(f.target.value),placeholder:"留空自动动态注册",className:"font-mono text-xs"})}),e(g,{label:"Client Secret",aside:e(Q,{children:"留空保持不变"}),children:(c)=>e(p,{id:c,type:"password",autoComplete:"off",value:ee,onChange:(f)=>A(f.target.value),placeholder:"••••••••",className:"font-mono text-xs"})}),e(g,{label:"Scope",aside:e(Q,{children:"选填授权范围"}),children:(c)=>e(p,{id:c,value:t,onChange:(f)=>I(f.target.value),placeholder:"repo read:org",className:"font-mono text-xs"})})]})]}),n("div",{className:"space-y-3 border-t border-line/60 pt-3",children:[n("button",{type:"button","aria-expanded":_,className:"flex w-full cursor-pointer items-center gap-1.5 text-ui font-medium text-dim transition-colors hover:text-ink",onClick:()=>ae(!_),children:[e(zt,{className:`size-3.5 transition-transform ${_?"rotate-90":""}`}),"高级设置",e("span",{className:"truncate text-xs font-normal text-faint",children:"加载时机、超时"})]}),_&&n("div",{className:"grid grid-cols-2 gap-3 max-sm:grid-cols-1",children:[e(g,{label:"加载时机",aside:e(Q,{children:"延迟 = 按需加载"}),children:()=>e(S,{value:x,onChange:(c)=>F(c),className:"w-full [&>button]:flex-1",options:[{value:"default",label:"默认"},{value:"defer",label:"延迟"},{value:"always",label:"常驻"}]})}),e(g,{label:"超时(毫秒)",aside:e(Q,{children:"留空用默认"}),children:(c)=>e(p,{id:c,value:U,onChange:(f)=>ie(f.target.value),placeholder:"默认",className:"font-mono text-xs"})})]})]}),re&&n("div",{role:"alert",className:D("callout.base",D("callout.danger"),"px-3 py-2.5 text-xs"),children:[e(ye,{className:"mt-0.5 size-3.5 shrink-0"}),e("span",{className:"min-w-0 break-words",children:re})]})]})})}var X="global";function He({connection:i}){let{Button:P,Select:S,CatalogRow:H,style:R,useTheme:g}=b();g();let[p,M]=a(""),[D,Z]=a(),[u,te]=a([]),[w,ne]=a(X),[r,j]=a(),[N,G]=a(!1),[se,J]=a(),[z,h]=a(!1),T=o(!1),[y,E]=a(),B=o(0),O=v(async()=>{let t=++B.current;G(!0);try{let I=w===X?"":`?projectID=${encodeURIComponent(w)}`,[x,F]=await Promise.all([i.request(`/api/mcp${I}`),i.request("/api/mcp/projects")]);if(t!==B.current)return;if(Z(x),te(F),w!==X&&!F.some((U)=>U.id===w))ne(X);j(void 0)}catch(I){if(t===B.current)j(I instanceof Error?I.message:"读取失败")}finally{if(t===B.current)G(!1)}},[i,w]);s(()=>(O(),()=>{B.current++}),[O]);async function Y(t,I){if(T.current)return;T.current=!0,h(!0);let x=B.current;try{let F=t.projectID?`?projectID=${encodeURIComponent(t.projectID)}`:"",U=await i.request(`/api/mcp/${encodeURIComponent(t.name)}${F}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({...t.config,enabled:I})});if(x===B.current)Z((ie)=>ie?.map((_)=>_.name===U.name&&_.projectID===U.projectID?U:_))}finally{T.current=!1,h(!1)}}let ee=D?.filter((t)=>`${t.name} ${fi(t.config)}`.toLowerCase().includes(p.trim().toLowerCase())),A=D?.find((t)=>t.name===se);return n("div",{className:"min-w-0 space-y-6",children:[n("section",{className:"min-w-0",children:[n("div",{className:"mb-2.5 flex flex-wrap items-end justify-between gap-3 px-0.5",children:[n("div",{className:"min-w-0 flex-1 basis-48",children:[e("h2",{className:R("settings.groupTitle"),children:"MCP 服务器"}),e("p",{className:R("settings.groupDesc"),children:"外部工具与数据源管理"})]}),n("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[e(S,{value:w,disabled:N,onValueChange:(t)=>{J(void 0),E(void 0),Z(void 0),ne(t)},groups:[{options:[{value:X,label:"全局"}]},..._i(u)],className:"w-44"}),e(P,{variant:"ghost",disabled:N,onClick:O,className:"h-9 px-2.5 text-xs",children:e(ge,{className:`size-3.5 ${N?"animate-spin":""}`})}),n(P,{variant:"secondary",onClick:()=>E({}),className:"h-9 px-2.5 text-xs",children:[e(be,{className:"size-3.5 mr-1"}),"添加服务器"]})]})]}),r&&n("div",{role:"alert",className:R("callout.base",R("callout.danger"),"mb-3 flex-wrap items-center justify-between"),children:[n("p",{className:"min-w-0 flex-1 break-words text-sm text-danger",children:["无法读取 MCP 服务器:",r]}),e(P,{disabled:N,onClick:O,children:"重试"})]}),e(wi,{label:"搜索 MCP 服务器",placeholder:"搜索服务器",value:p,onChange:M}),e("div",{className:R("settings.groupBox"),children:!D?e(ki,{}):ee?.length===0?e("p",{className:"p-4 text-sm text-dim",children:"没有匹配的 MCP 服务器"}):e("ul",{className:"divide-y divide-line",children:ee?.map((t)=>{let I=t.config.enabled===!1,x=t.projectID!==(w===X?null:w);return e("li",{children:e(H,{name:t.name,selectLabel:`查看 ${t.name}`,onSelect:()=>J(t.name),title:x?"继承的全局配置,请切换到全局范围编辑":void 0,description:e("span",{className:"font-mono text-2xs",children:fi(t.config)}),icon:t.config.type==="local"?e(jt,{}):e($e,{}),inactive:I,aside:n(m,{children:[e("span",{className:R("control.badge"),children:mi(t.scope)}),e(cs,{info:t})]}),toggle:x?void 0:{checked:!I,label:`启用服务器 ${t.name}`,disabled:z||N,onCheckedChange:(F)=>Y(t,F)}})},t.name)})})})]}),A&&!y&&e(pe,{connection:i,info:A,toggling:z,onToggle:(t)=>Y(A,t),projectID:w===X?void 0:w,onClose:()=>J(void 0),onEdit:()=>E({info:A}),onChanged:(t)=>t?Z((I)=>I?.map((x)=>x.name===t.name?t:x)):O()},`${A.projectID}:${A.name}`),y&&e(ve,{connection:i,projectID:w===X?void 0:w,existing:y.info,taken:(D??[]).filter((t)=>t.scope===(w===X?"global":"project")).map((t)=>t.name),onClose:()=>E(void 0),onSaved:()=>{E(void 0),O()}})]})}export{He as McpSection};
1
+ import{v,s,o,a,m,e,n,b,l,ye,zt,$e,be,ge,vt,jt,xe,ce,Wc,mi,fi,hi,ls}from"./chunk-6f1q0tjv.js";import{wi,ki,Ci}from"./chunk-8kyj945c.js";var Ce=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],ue=l("rotate-cw",Ce);function pe(i){let{ApprovalPanel:P,Button:S,CopyButton:H,DetailChip:R,DetailList:g,DetailRow:p,DetailTitle:M,Dialog:D,Switch:Z,Tooltip:u,cn:te,confirm:w,useTheme:ne}=b();ne();let{info:r,connection:j}=i,N=i.projectID?`?projectID=${encodeURIComponent(i.projectID)}`:"",[G,se]=a(),[J,z]=a(),[h,T]=a(!1),[y,E]=a(),[B,O]=a(),Y=r.status.status==="connected",ee=r.status.status==="needs_auth",A=r.status.status==="failed",t=r.config.type==="remote"&&Boolean(r.config.oauth),I=r.projectID!==(i.projectID??null);s(()=>{function d(k){if(k&&k!==r.name)return;j.request(`/api/mcp/${encodeURIComponent(r.name)}/connect${N}`,{method:"POST"}).then((C)=>i.onChanged(C)).catch((C)=>{z(C instanceof Error?C.message:"授权后重新连接失败")})}function c(k){if(k.origin!==window.location.origin)return;if(k.data?.type==="mcp-oauth-success")d(k.data.name)}function f(k){if(k.key==="basalt-mcp-oauth-event"&&k.newValue)try{let C=JSON.parse(k.newValue);d(C.name)}catch(C){}}window.addEventListener("message",c),window.addEventListener("storage",f);let K;if("BroadcastChannel"in window)K=new BroadcastChannel("basalt-mcp-oauth"),K.onmessage=(k)=>{if(k.data?.type==="mcp-oauth-success")d(k.data.name)};return()=>{window.removeEventListener("message",c),window.removeEventListener("storage",f),K?.close()}},[j,r.name,N,i]),s(()=>{if(r.status.status!=="connected")return;j.request(`/api/mcp/${encodeURIComponent(r.name)}/tools${N}`).then((d)=>{if(Array.isArray(d))se(d),z(void 0)}).catch((d)=>{z(d instanceof Error?d.message:"获取工具失败")})},[j,r.name,N,r.status.status]);async function x(d){T(!0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/${d}${N}`,{method:"POST"});i.onChanged(c)}catch{}finally{T(!1)}}async function F(){if(!y||h)return;let d=y.fingerprint;O(void 0),T(!0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/trust${N}`,{method:"POST",body:JSON.stringify({fingerprint:d})});i.onChanged(c),E(void 0)}catch(c){O(c instanceof Error?c.message:"确认失败,请刷新配置")}finally{T(!1)}}async function U(){let d=window.open("about:blank","_blank","width=600,height=700");if(!d){z("授权窗口被浏览器拦截,请允许弹出窗口后重试");return}T(!0),z(void 0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/oauth/authorize${N}`,{method:"POST"}),f=new URL(c.authorizationUrl);if(f.protocol!=="https:"&&f.protocol!=="http:")throw Error("授权服务返回了不支持的链接协议");d.location.href=f.href}catch(c){d.close(),z(c instanceof Error?c.message:"获取授权链接失败")}finally{T(!1)}}async function ie(){T(!0);try{let d=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/oauth/clear${N}`,{method:"POST"});i.onChanged(d)}finally{T(!1)}}async function _(){if(!await w({title:`删除 ${r.name}?`,description:"删除后将断开连接并不再向会话提供其工具。",action:"删除",danger:!0}))return;T(!0);try{await j.request(`/api/mcp/${encodeURIComponent(r.name)}${N}`,{method:"DELETE"}),i.onChanged(),i.onClose()}finally{T(!1)}}let ae=r.config,re=hi(ae),V="error"in r.status?r.status.error:void 0,oe=ae.enabled===!1,le=!oe&&!ee&&r.status.status!=="needs_trust";if(y)return e(D,{open:!0,onOpenChange:(d)=>{if(!d&&!h)E(void 0)},title:`信任 ${r.name}?`,size:"lg",children:n(P,{hideTitle:!0,title:"信任项目本地命令",command:y.command,approveLabel:"信任并连接",busy:h?"approve":void 0,error:B,onDecision:(d)=>{if(d)F();else E(void 0)},description:"项目命令将以你的权限运行,请确认来源可信。",children:[n("div",{className:"flex min-w-0 items-start gap-2 text-xs text-dim",children:[e("span",{className:"shrink-0 leading-5",children:"目录"}),e("code",{className:"min-w-0 flex-1 leading-5 [overflow-wrap:anywhere]",children:y.cwd}),e(H,{text:y.cwd,label:"复制工作目录",size:"icon-xs"})]}),n("section",{className:"min-w-0 space-y-2",children:[e("h3",{className:"text-xs font-medium text-dim",children:"环境变量"}),y.variables.length?e("div",{className:"flex min-w-0 flex-wrap gap-2",children:y.variables.map((d)=>e("span",{className:"max-w-full rounded-md bg-raised px-2 py-1 font-mono text-xs text-dim [overflow-wrap:anywhere]",children:d},d))}):e("p",{className:"text-xs text-faint",children:"无"})]}),e("p",{className:"text-xs leading-5 text-faint",children:"配置变更后需重新确认。"})]})});return e(D,{open:!0,onOpenChange:(d)=>{if(!d&&!h)i.onClose()},title:e(M,{icon:ae.type==="local"?e(jt,{}):e($e,{}),name:r.name,meta:[ae.type==="local"?"本地命令":"远程服务",fi(r.scope),t&&"OAuth 2.0"]}),size:"lg",footer:n("div",{className:"flex w-full items-center justify-between gap-2 max-sm:[&>*]:flex-none",children:[n("div",{className:"inline-flex items-center gap-2.5 text-ui text-dim",children:[!I&&e(Z,{label:`启用 ${r.name}`,checked:!oe,disabled:h||i.toggling,onCheckedChange:i.onToggle}),e(ls,{info:r,tools:!0})]}),n("div",{className:"flex items-center gap-1.5",children:[r.status.status==="needs_trust"&&e(S,{type:"button",size:"sm",onClick:()=>{if(r.status.status!=="needs_trust"||r.config.type!=="local")return;O(void 0),E({fingerprint:r.status.fingerprint,cwd:r.status.cwd,command:hi(r.config),variables:Object.keys(r.config.environment??{})})},disabled:h,children:"信任并连接"}),t&&e(S,{type:"button",variant:"ghost",size:"sm",onClick:ie,disabled:h,children:"清除凭据"}),!I&&e(u,{label:"删除服务器",children:e(S,{type:"button",variant:"danger-ghost",size:"icon","aria-label":"删除服务器",onClick:_,disabled:h,children:e(xe,{className:"size-4"})})}),le&&e(u,{label:"终止服务进程并重新启动,让更新后的代码生效",children:e(S,{type:"button",variant:"ghost",size:"icon","aria-label":"重启",onClick:()=>x("restart"),disabled:h,children:e(ue,{className:te("size-4",h&&"animate-spin")})})}),le&&e(S,{type:"button",size:"sm",onClick:()=>x(Y?"disconnect":"connect"),disabled:h,children:Y?"断开连接":"连接"}),!I&&n(S,{type:"button",size:"sm",onClick:i.onEdit,disabled:h,children:[e(vt,{className:"size-3.5"}),e("span",{children:"编辑配置"})]})]})]}),children:n(g,{children:[n(p,{label:ae.type==="local"?"命令":"地址",children:[e("span",{className:"min-w-0 font-mono text-xs text-dim leading-5.5 [overflow-wrap:anywhere]",children:re}),e(H,{text:re,label:"复制",size:"icon-xs",className:"shrink-0 text-faint hover:text-ink"})]}),ee&&n("div",{className:"flex items-center justify-between gap-4 py-3.5 max-sm:flex-col max-sm:items-start max-sm:gap-2.5",children:[n("div",{className:"min-w-0 space-y-1",children:[e("p",{className:"text-ui text-ink leading-5",children:"需要授权"}),e("p",{className:"text-xs text-faint leading-5",children:"完成授权后即可使用,凭据自动保存。"})]}),e(S,{type:"button",size:"sm",className:"shrink-0",onClick:U,disabled:h,children:h?"正在连接…":"连接账户"})]}),A&&e(p,{label:"错误",children:e("p",{className:"min-w-0 font-mono text-xs text-danger leading-5 [overflow-wrap:anywhere]",children:V})}),e(p,{label:"工具",children:J?e("span",{className:"text-danger",children:J}):!Y?e("span",{className:"text-faint",children:"连接后列出工具"}):!G?e("span",{role:"status",className:"text-faint",children:"正在获取"}):G.length===0?e("span",{className:"text-faint",children:"服务器没有声明任何工具"}):G.map((d)=>e(R,{mono:!0,title:d.description,children:d.name},d.name))})]})})}var we=/^[A-Za-z0-9_-]{1,64}$/;function Q(i){return e("span",{className:"truncate text-xs text-faint",children:i.children})}function fe(i){let{pairs:P,onChange:S,InputComponent:H}=i,R=(g,p)=>S(P.map((M,D)=>D===g?{...M,...p}:M));return n("div",{className:"space-y-2",children:[n("div",{className:"flex min-h-7 items-center gap-2",children:[e("span",{className:"shrink-0 text-ui font-medium text-dim",children:i.label}),e(Q,{children:i.tip}),n("button",{type:"button",className:"ml-auto inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-lg px-2 text-xs font-medium text-dim transition-colors hover:bg-raised hover:text-ink",onClick:()=>S([...P,{key:"",value:"",saved:!1}]),children:[e(be,{className:"size-3.5"}),"添加"]})]}),P.map((g,p)=>n("div",{className:"flex min-w-0 items-center gap-1.5",children:[e(H,{"aria-label":`${i.keyLabel} ${p+1}`,placeholder:i.keyLabel,value:g.key,readOnly:g.saved,onChange:(M)=>R(p,{key:M.target.value}),className:"min-w-0 flex-[2] font-mono text-xs"}),e(H,{"aria-label":`${i.keyLabel} ${g.key||p+1} 的值`,type:"password",autoComplete:"off",placeholder:g.saved?"已保存,留空保持不变":"值",value:g.value,onChange:(M)=>R(p,{value:M.target.value}),className:"min-w-0 flex-[3] font-mono text-xs"}),e("button",{type:"button","aria-label":`删除 ${g.key||"该项"}`,className:"flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-danger/10 hover:text-danger",onClick:()=>S(P.filter((M,D)=>D!==p)),children:e(ce,{className:"size-4"})})]},p))]})}function he(i){return Object.keys(i??{}).map((P)=>({key:P,value:"",saved:!0}))}function ve(i){let{Button:P,Segmented:S,Dialog:H,Form:R,Field:g,Input:p,Switch:M,style:D,useTheme:Z}=b();Z();let{existing:u}=i,[te,w]=a(u?.config.type??"local"),[ne,r]=a(u?.name??""),[j,N]=a(u?.config.type==="local"?mi(u.config.command):""),[G,se]=a(u?.config.type==="remote"?u.config.url:""),[J,z]=a(he(u?.config.type==="local"?u.config.environment:void 0)),[h,T]=a(he(u?.config.type==="remote"?u.config.headers:void 0)),y=u?.config.type==="remote"?u.config.oauth:void 0,[E,B]=a(Boolean(y)),[O,Y]=a(typeof y==="object"&&y.clientId?y.clientId:""),[ee,A]=a(""),[t,I]=a(typeof y==="object"&&y.scope?y.scope:""),[x,F]=a(u?.config.defer??"default"),[U,ie]=a(u?.config.timeout!==void 0?String(u.config.timeout):""),[_,ae]=a(u?.config.defer!==void 0||u?.config.timeout!==void 0),[re,V]=a(),[oe,le]=a(!1);async function d(c){c.preventDefault(),V(void 0);let f=ne.trim();if(!u&&!we.test(f)){V("名称只能包含英文字母、数字、下划线与中划线,长度 1-64");return}if(!u&&i.taken.includes(f)){V("同名服务器已存在");return}let K=U.trim()?Number.parseInt(U.trim(),10):void 0;if(K!==void 0&&(!Number.isFinite(K)||K<=0)){V("超时时间须为大于 0 的毫秒数");return}let k;if(te==="local"){let C=Wc(j.trim());if(!C.length){V("请输入启动命令");return}let W={};for(let q of J){let L=q.key.trim();if(!L)continue;if(!q.saved||q.value)W[L]=q.value}k={type:"local",command:C,environment:Object.keys(W).length?W:void 0,enabled:u?u.config.enabled:!0,defer:x==="default"?void 0:x,timeout:K}}else{let C=G.trim();try{let L=new URL(C);if(L.protocol!=="http:"&&L.protocol!=="https:")throw Error("bad protocol")}catch{V("请输入合法的 HTTP 或 HTTPS 地址");return}let W={};for(let L of h){let de=L.key.trim();if(!de)continue;if(!L.saved||L.value)W[de]=L.value}let q;if(E){let L=O.trim(),de=ee.trim(),me=t.trim();if(L||de||me)q={clientId:L||void 0,clientSecret:de||void 0,scope:me||void 0};else q=!0}else q=!1;k={type:"remote",url:C,headers:Object.keys(W).length?W:void 0,oauth:q,enabled:u?u.config.enabled:!0,defer:x==="default"?void 0:x,timeout:K}}le(!0);try{let C=u?.name??f,W=u?u.projectID:i.projectID,q=W?`?projectID=${encodeURIComponent(W)}`:"";await i.connection.request(`/api/mcp/${encodeURIComponent(C)}${q}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(k)}),i.onSaved()}catch(C){V(C instanceof Error?C.message:"保存失败")}finally{le(!1)}}return e(H,{open:!0,onOpenChange:(c)=>{if(!c&&!oe)i.onClose()},title:u?`编辑 ${u.name}`:"添加 MCP 服务器",size:"lg",footer:n("div",{className:"flex w-full justify-end gap-2.5",children:[e(P,{type:"button",variant:"ghost",onClick:i.onClose,disabled:oe,className:"min-w-20",children:"取消"}),e(P,{type:"submit",form:"mcp-server-form",variant:"primary",disabled:oe,className:"min-w-24",children:oe?"保存中...":"保存"})]}),children:n(R,{id:"mcp-server-form",onSubmit:d,children:[e(S,{value:te,onChange:(c)=>w(c),className:"w-full [&>button]:flex-1",options:[{value:"local",label:"本地(标准输入输出)"},{value:"remote",label:"远程(HTTP / SSE)"}]}),!u&&e(g,{label:"名称",aside:e(Q,{children:"唯一标识,如 postgres"}),children:(c)=>e(p,{id:c,value:ne,onChange:(f)=>r(f.target.value),placeholder:"postgres",className:"font-mono text-xs"})}),te==="local"?n(m,{children:[e(g,{label:"启动命令",aside:e(Q,{children:"完整命令及参数"}),children:(c)=>e(p,{id:c,value:j,onChange:(f)=>N(f.target.value),placeholder:"npx -y @modelcontextprotocol/server-postgres ...",className:"font-mono text-xs"})}),e(fe,{label:"环境变量",tip:"启动进程时注入",keyLabel:"变量名",pairs:J,onChange:z,InputComponent:p})]}):n(m,{children:[e(g,{label:"服务地址",aside:e(Q,{children:"HTTP / HTTPS 端点"}),children:(c)=>e(p,{id:c,value:G,onChange:(f)=>se(f.target.value),placeholder:"https://example.com/mcp",className:"font-mono text-xs"})}),e(fe,{label:"请求头",tip:"随每次请求发送",keyLabel:"头字段",pairs:h,onChange:T,InputComponent:p}),n("div",{className:"flex items-center justify-between gap-4",children:[n("div",{className:"min-w-0",children:[e("span",{className:"block text-ui font-medium text-dim",children:"OAuth 2.0 认证"}),e("span",{className:"block truncate text-xs text-faint",children:"自动发现授权端点,使用 PKCE 并刷新令牌"})]}),e(M,{checked:E,onCheckedChange:B,label:"启用 OAuth 2.0"})]}),E&&n(m,{children:[e(g,{label:"Client ID",aside:e(Q,{children:"留空自动动态注册(DCR)"}),children:(c)=>e(p,{id:c,value:O,onChange:(f)=>Y(f.target.value),placeholder:"留空自动动态注册",className:"font-mono text-xs"})}),e(g,{label:"Client Secret",aside:e(Q,{children:"留空保持不变"}),children:(c)=>e(p,{id:c,type:"password",autoComplete:"off",value:ee,onChange:(f)=>A(f.target.value),placeholder:"••••••••",className:"font-mono text-xs"})}),e(g,{label:"Scope",aside:e(Q,{children:"选填授权范围"}),children:(c)=>e(p,{id:c,value:t,onChange:(f)=>I(f.target.value),placeholder:"repo read:org",className:"font-mono text-xs"})})]})]}),n("div",{className:"space-y-3 border-t border-line/60 pt-3",children:[n("button",{type:"button","aria-expanded":_,className:"flex w-full cursor-pointer items-center gap-1.5 text-ui font-medium text-dim transition-colors hover:text-ink",onClick:()=>ae(!_),children:[e(zt,{className:`size-3.5 transition-transform ${_?"rotate-90":""}`}),"高级设置",e("span",{className:"truncate text-xs font-normal text-faint",children:"加载时机、超时"})]}),_&&n("div",{className:"grid grid-cols-2 gap-3 max-sm:grid-cols-1",children:[e(g,{label:"加载时机",aside:e(Q,{children:"延迟 = 按需加载"}),children:()=>e(S,{value:x,onChange:(c)=>F(c),className:"w-full [&>button]:flex-1",options:[{value:"default",label:"默认"},{value:"defer",label:"延迟"},{value:"always",label:"常驻"}]})}),e(g,{label:"超时(毫秒)",aside:e(Q,{children:"留空用默认"}),children:(c)=>e(p,{id:c,value:U,onChange:(f)=>ie(f.target.value),placeholder:"默认",className:"font-mono text-xs"})})]})]}),re&&n("div",{role:"alert",className:D("callout.base",D("callout.danger"),"px-3 py-2.5 text-xs"),children:[e(ye,{className:"mt-0.5 size-3.5 shrink-0"}),e("span",{className:"min-w-0 break-words",children:re})]})]})})}var X="global";function He({connection:i}){let{Button:P,Select:S,CatalogRow:H,style:R,useTheme:g}=b();g();let[p,M]=a(""),[D,Z]=a(),[u,te]=a([]),[w,ne]=a(X),[r,j]=a(),[N,G]=a(!1),[se,J]=a(),[z,h]=a(!1),T=o(!1),[y,E]=a(),B=o(0),O=v(async()=>{let t=++B.current;G(!0);try{let I=w===X?"":`?projectID=${encodeURIComponent(w)}`,[x,F]=await Promise.all([i.request(`/api/mcp${I}`),i.request("/api/mcp/projects")]);if(t!==B.current)return;if(Z(x),te(F),w!==X&&!F.some((U)=>U.id===w))ne(X);j(void 0)}catch(I){if(t===B.current)j(I instanceof Error?I.message:"读取失败")}finally{if(t===B.current)G(!1)}},[i,w]);s(()=>(O(),()=>{B.current++}),[O]);async function Y(t,I){if(T.current)return;T.current=!0,h(!0);let x=B.current;try{let F=t.projectID?`?projectID=${encodeURIComponent(t.projectID)}`:"",U=await i.request(`/api/mcp/${encodeURIComponent(t.name)}${F}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({...t.config,enabled:I})});if(x===B.current)Z((ie)=>ie?.map((_)=>_.name===U.name&&_.projectID===U.projectID?U:_))}finally{T.current=!1,h(!1)}}let ee=D?.filter((t)=>`${t.name} ${hi(t.config)}`.toLowerCase().includes(p.trim().toLowerCase())),A=D?.find((t)=>t.name===se);return n("div",{className:"min-w-0 space-y-6",children:[n("section",{className:"min-w-0",children:[n("div",{className:"mb-2.5 flex flex-wrap items-end justify-between gap-3 px-0.5",children:[n("div",{className:"min-w-0 flex-1 basis-48",children:[e("h2",{className:R("settings.groupTitle"),children:"MCP 服务器"}),e("p",{className:R("settings.groupDesc"),children:"外部工具与数据源管理"})]}),n("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[e(S,{value:w,disabled:N,onValueChange:(t)=>{J(void 0),E(void 0),Z(void 0),ne(t)},groups:[{options:[{value:X,label:"全局"}]},...wi(u)],className:"w-44"}),e(P,{variant:"ghost",disabled:N,onClick:O,className:"h-9 px-2.5 text-xs",children:e(ge,{className:`size-3.5 ${N?"animate-spin":""}`})}),n(P,{variant:"secondary",onClick:()=>E({}),className:"h-9 px-2.5 text-xs",children:[e(be,{className:"size-3.5 mr-1"}),"添加服务器"]})]})]}),r&&n("div",{role:"alert",className:R("callout.base",R("callout.danger"),"mb-3 flex-wrap items-center justify-between"),children:[n("p",{className:"min-w-0 flex-1 break-words text-sm text-danger",children:["无法读取 MCP 服务器:",r]}),e(P,{disabled:N,onClick:O,children:"重试"})]}),e(ki,{label:"搜索 MCP 服务器",placeholder:"搜索服务器",value:p,onChange:M}),e("div",{className:R("settings.groupBox"),children:!D?e(Ci,{}):ee?.length===0?e("p",{className:"p-4 text-sm text-dim",children:"没有匹配的 MCP 服务器"}):e("ul",{className:"divide-y divide-line",children:ee?.map((t)=>{let I=t.config.enabled===!1,x=t.projectID!==(w===X?null:w);return e("li",{children:e(H,{name:t.name,selectLabel:`查看 ${t.name}`,onSelect:()=>J(t.name),title:x?"继承的全局配置,请切换到全局范围编辑":void 0,description:e("span",{className:"font-mono text-2xs",children:hi(t.config)}),icon:t.config.type==="local"?e(jt,{}):e($e,{}),inactive:I,aside:n(m,{children:[e("span",{className:R("control.badge"),children:fi(t.scope)}),e(ls,{info:t})]}),toggle:x?void 0:{checked:!I,label:`启用服务器 ${t.name}`,disabled:z||N,onCheckedChange:(F)=>Y(t,F)}})},t.name)})})})]}),A&&!y&&e(pe,{connection:i,info:A,toggling:z,onToggle:(t)=>Y(A,t),projectID:w===X?void 0:w,onClose:()=>J(void 0),onEdit:()=>E({info:A}),onChanged:(t)=>t?Z((I)=>I?.map((x)=>x.name===t.name?t:x)):O()},`${A.projectID}:${A.name}`),y&&e(ve,{connection:i,projectID:w===X?void 0:w,existing:y.info,taken:(D??[]).filter((t)=>t.scope===(w===X?"global":"project")).map((t)=>t.name),onClose:()=>E(void 0),onSaved:()=>{E(void 0),O()}})]})}export{He as McpSection};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{zs}from"./chunk-4ab1dv3g.js";export{zs as createArchitectureServices};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Da}from"./chunk-4ab1dv3g.js";export{Da as createRailroadAbnfServices};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Es}from"./chunk-d5n2yz4e.js";export{Es as default};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{v,s,o,a,e,n,b,l,ae,Nn,xa,st,ps}from"./chunk-6f1q0tjv.js";import{zn}from"./chunk-w0k63gap.js";var O=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],j=l("music",O);var _=26214400;function A(y){let{cn:E,style:U}=b(),u=y.payload,[k,z]=a(),[S,L]=a({}),[P,I]=a({}),[q,h]=a({}),g=o({}),C=v((t)=>`/api/plugins/send-file/sessions/${encodeURIComponent(y.sessionID)}/files/${encodeURIComponent(u.callID)}/${t}`,[u.callID,y.sessionID]),w=v(async(t,r)=>{let c=y.connection.requestStream;if(!c)return;let i=await(await c(C(t))).blob();if(r&&(!i.type||i.type==="application/octet-stream"))return new Blob([i],{type:r});return i},[C,y.connection.requestStream]),N=v(async(t,r)=>{let c=u.files[t],m=c?ps(c.name):void 0;if(!c||!m||!y.connection.requestStream)return;L((i)=>({...i,[t]:!0})),h(({[t]:i,...d})=>d);try{let i=await w(t,m.mime);if(!i||r?.cancelled)return;let d=URL.createObjectURL(i);if(r?.cancelled){URL.revokeObjectURL(d);return}let f=g.current[t];if(f)URL.revokeObjectURL(f);g.current[t]=d,I((p)=>({...p,[t]:{url:d,mime:m.mime}}))}catch(i){if(!r?.cancelled)h((d)=>({...d,[t]:i instanceof Error?i.message:"加载预览失败"}))}finally{if(!r?.cancelled)L(({[t]:i,...d})=>d)}},[w,u.files,y.connection.requestStream]);s(()=>{let t={cancelled:!1};for(let r=0;r<u.files.length;r++){let c=u.files[r];if(!c||!ps(c.name)||c.size>_)continue;N(r,t)}return()=>{t.cancelled=!0}},[N,u.files]),s(()=>{let t=g.current;return()=>{for(let r of Object.values(t))URL.revokeObjectURL(r)}},[]);let x=async(t)=>{let r=u.files[t],c=y.connection.requestStream;if(!r||!c||k!==void 0)return;let m=P[t];if(m){let p=document.createElement("a");p.href=m.url,p.download=r.name,p.click();return}z(t),h(({[t]:p,...R})=>R);let i=await w(t).catch((p)=>{h((R)=>({...R,[t]:p instanceof Error?p.message:"下载失败"}));return});if(z(void 0),!i)return;let d=URL.createObjectURL(i),f=document.createElement("a");f.href=d,f.download=r.name,f.click(),setTimeout(()=>URL.revokeObjectURL(d),60000)};return e("div",{className:"my-2 space-y-2 text-xs",children:u.files.map((t,r)=>{let c=ps(t.name),m=P[r],i=!!S[r],d=q[r],f=c?.kind==="video"||c?.kind==="image";if(f&&m&&!d)return n("div",{className:E("group relative overflow-hidden rounded-dock border border-line/70",c.kind==="video"?"w-full bg-scrim/80":"inline-block max-w-full bg-panel"),children:[c.kind==="video"?e("video",{src:m.url,controls:!0,playsInline:!0,preload:"metadata",className:"block max-h-[420px] w-full",children:e("track",{kind:"captions"})}):e("img",{src:m.url,alt:t.name,className:"block max-h-[420px] w-auto max-w-full object-contain"}),e("button",{type:"button",title:`下载 ${t.name} (${zn(t.size)})`,"aria-label":`下载 ${t.name}`,disabled:k!==void 0,onClick:()=>void x(r),className:"absolute top-2.5 right-2.5 inline-flex size-8 items-center justify-center rounded-lg bg-scrim/60 text-ink/90 opacity-0 backdrop-blur-sm transition-opacity hover:bg-scrim/80 focus-visible:opacity-100 group-hover:opacity-100 disabled:cursor-default",children:k===r?e(ae,{className:"size-4 animate-spin"}):e(Nn,{className:"size-4"})})]},t.path);if(f&&i)return n("div",{className:"flex h-36 w-full items-center justify-center gap-2 rounded-dock border border-line/60 bg-raised/40 text-dim",children:[e(ae,{className:"size-4 shrink-0 animate-spin"}),n("span",{children:["正在加载 ",t.name,"…"]})]},t.path);if(c?.kind==="audio"&&m&&!d)return n("div",{className:U("surface.panel","flex items-center gap-2.5 px-3 py-2"),children:[e(j,{className:"size-4 shrink-0 text-dim"}),e("audio",{src:m.url,controls:!0,className:"min-w-0 flex-1",children:e("track",{kind:"captions"})}),e("button",{type:"button",title:`下载 ${t.name} (${zn(t.size)})`,"aria-label":`下载 ${t.name}`,disabled:k!==void 0,onClick:()=>void x(r),className:"inline-flex size-7 shrink-0 items-center justify-center rounded-md text-dim transition-colors hover:bg-raised/70 hover:text-ink disabled:cursor-default",children:k===r?e(ae,{className:"size-4 animate-spin"}):e(Nn,{className:"size-4"})})]},t.path);return e("div",{className:U("surface.panel","overflow-hidden"),children:n("div",{className:"flex min-w-0 items-center gap-2.5 px-3 py-2.5",children:[e(st,{className:"size-4 shrink-0 text-dim"}),n("div",{className:"min-w-0 flex-1",title:t.path,children:[e("span",{className:"block truncate text-ink",children:t.name}),d?e("span",{className:"block wrap-anywhere text-danger",children:d}):e("span",{className:"block text-2xs text-faint",children:zn(t.size)})]}),c&&!i&&n("button",{type:"button",onClick:()=>void N(r),className:"inline-flex h-7 shrink-0 items-center gap-1 rounded-md border border-line/70 px-2 text-2xs text-dim transition-colors hover:bg-raised/70 hover:text-ink",children:[e(xa,{className:"size-3.5"}),"预览"]}),e("button",{type:"button",title:"下载文件","aria-label":`下载 ${t.name}`,disabled:k!==void 0,onClick:()=>void x(r),className:"inline-flex size-7 shrink-0 items-center justify-center rounded-md text-dim transition-colors hover:bg-raised/70 hover:text-ink disabled:cursor-default",children:k===r?e(ae,{className:"size-4 animate-spin"}):e(Nn,{className:"size-4"})})]})},t.path)})})}export{A as SendFileCard};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Ps}from"./chunk-4ab1dv3g.js";export{Ps as createWardleyServices};
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- import{a,m,e,n,b,l,ye,lr,se}from"./chunk-ev6xj0qs.js";var g=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]],s=l("chart-spline",g);function Li(t){let o=b();o.useTheme();let[u,d]=a("preview"),r=t.streaming&&!t.rendered,c=!t.streaming&&!t.rendered&&Boolean(t.error),i=u==="code"||r;return n(o.Panel,{"aria-label":t.title,"data-render-pending":t.pending&&!c?"true":void 0,className:"group/graph relative my-4 font-sans not-italic first:mt-0 last:mb-0",children:[e("div",{role:"toolbar","aria-label":`${t.title}操作`,className:r?"absolute top-2 right-2 z-10 flex items-center":o.style("surface.toolbarFloating","absolute top-2 right-2 z-10 opacity-0 transition-opacity duration-150 group-hover/graph:opacity-100 focus-within:opacity-100 [@media(hover:none)]:opacity-70"),children:r?n("span",{className:o.style("control.badge","gap-1.5 rounded-full px-2 py-0.5 text-2xs"),children:[e(se,{className:"size-3 animate-spin"}),"生成",t.title]}):n(m,{children:[e("button",{type:"button","aria-label":i?"查看图表":"查看代码",title:i?"查看图表":"查看代码",onClick:()=>d(i?"preview":"code"),className:"flex size-6 items-center justify-center rounded-md text-dim hover:bg-raised hover:text-ink [&_svg]:size-3.5",children:i?e(s,{}):e(lr,{})}),e(o.CopyButton,{text:t.code,size:"icon-sm",label:"复制代码"})]})}),i&&e(o.Code,{code:t.code,lang:t.codeLang,className:"px-4 py-3"}),c&&!i&&n("div",{role:"alert",className:"flex flex-col items-center gap-2 px-4 py-8 text-center",children:[e(ye,{className:"size-5 text-warning"}),e("p",{className:"max-w-full text-xs break-words text-dim",children:t.error}),e("button",{type:"button",onClick:()=>d("code"),className:"text-xs text-accent-strong underline underline-offset-2",children:"查看代码"})]}),e("div",{hidden:i||c,children:t.children})]})}
2
- export{Li};
1
+ import{a,m,e,n,b,l,ye,ur,ae}from"./chunk-6f1q0tjv.js";var g=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]],s=l("chart-spline",g);function Ni(t){let o=b();o.useTheme();let[u,d]=a("preview"),r=t.streaming&&!t.rendered,c=!t.streaming&&!t.rendered&&Boolean(t.error),i=u==="code"||r;return n(o.Panel,{"aria-label":t.title,"data-render-pending":t.pending&&!c?"true":void 0,className:"group/graph relative my-4 font-sans not-italic first:mt-0 last:mb-0",children:[e("div",{role:"toolbar","aria-label":`${t.title}操作`,className:r?"absolute top-2 right-2 z-10 flex items-center":o.style("surface.toolbarFloating","absolute top-2 right-2 z-10 opacity-0 transition-opacity duration-150 group-hover/graph:opacity-100 focus-within:opacity-100 [@media(hover:none)]:opacity-70"),children:r?n("span",{className:o.style("control.badge","gap-1.5 rounded-full px-2 py-0.5 text-2xs"),children:[e(ae,{className:"size-3 animate-spin"}),"生成",t.title]}):n(m,{children:[e("button",{type:"button","aria-label":i?"查看图表":"查看代码",title:i?"查看图表":"查看代码",onClick:()=>d(i?"preview":"code"),className:"flex size-6 items-center justify-center rounded-md text-dim hover:bg-raised hover:text-ink [&_svg]:size-3.5",children:i?e(s,{}):e(ur,{})}),e(o.CopyButton,{text:t.code,size:"icon-sm",label:"复制代码"})]})}),i&&e(o.Code,{code:t.code,lang:t.codeLang,className:"px-4 py-3"}),c&&!i&&n("div",{role:"alert",className:"flex flex-col items-center gap-2 px-4 py-8 text-center",children:[e(ye,{className:"size-5 text-warning"}),e("p",{className:"max-w-full text-xs break-words text-dim",children:t.error}),e("button",{type:"button",onClick:()=>d("code"),className:"text-xs text-accent-strong underline underline-offset-2",children:"查看代码"})]}),e("div",{hidden:i||c,children:t.children})]})}
2
+ export{Ni};
Binary file
Binary file