@stigmer/server-slim 0.1.0

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 (564) hide show
  1. package/README.md +3 -0
  2. package/console/404.html +1 -0
  3. package/console/__next.__PAGE__.txt +54 -0
  4. package/console/__next._full.txt +71 -0
  5. package/console/__next._index.txt +62 -0
  6. package/console/__next._tree.txt +6 -0
  7. package/console/_next/static/GjBokeF86FffwftazOhh6/_buildManifest.js +11 -0
  8. package/console/_next/static/GjBokeF86FffwftazOhh6/_clientMiddlewareManifest.js +1 -0
  9. package/console/_next/static/GjBokeF86FffwftazOhh6/_ssgManifest.js +1 -0
  10. package/console/_next/static/chunks/0376wi8qbsw94.js +1 -0
  11. package/console/_next/static/chunks/04cglffeuwumk.js +1 -0
  12. package/console/_next/static/chunks/04d276dp3qb52.js +1 -0
  13. package/console/_next/static/chunks/05526ws9tzwim.js +1 -0
  14. package/console/_next/static/chunks/05t5235u7o-c4.js +25 -0
  15. package/console/_next/static/chunks/06fz-g9t73bd6.js +4 -0
  16. package/console/_next/static/chunks/0789xt7opwvm-.js +24 -0
  17. package/console/_next/static/chunks/07twy5plc911w.js +1 -0
  18. package/console/_next/static/chunks/08-p5zefc1rea.js +1 -0
  19. package/console/_next/static/chunks/085db4op75mf5.js +1 -0
  20. package/console/_next/static/chunks/0923388wak11-.js +1 -0
  21. package/console/_next/static/chunks/0_7s7fzux7kiv.js +1 -0
  22. package/console/_next/static/chunks/0_bjj6hug8d9a.js +1 -0
  23. package/console/_next/static/chunks/0_zscrk6o0d0-.js +1 -0
  24. package/console/_next/static/chunks/0a4x97q7frgj3.js +1 -0
  25. package/console/_next/static/chunks/0ab5jlm8l0aud.js +1 -0
  26. package/console/_next/static/chunks/0c_c2b4z1yc02.js +1 -0
  27. package/console/_next/static/chunks/0cuyycns49hl4.js +1 -0
  28. package/console/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
  29. package/console/_next/static/chunks/0d8f3-znyc_to.js +1 -0
  30. package/console/_next/static/chunks/0e-f1rkyz_u2k.js +1 -0
  31. package/console/_next/static/chunks/0ffx83gbnwq09.js +28 -0
  32. package/console/_next/static/chunks/0fyno0jk61txk.js +115 -0
  33. package/console/_next/static/chunks/0ggwoicp90w_s.js +1 -0
  34. package/console/_next/static/chunks/0h_7_i44vofe3.js +1 -0
  35. package/console/_next/static/chunks/0hagmppwo8s-f.js +1 -0
  36. package/console/_next/static/chunks/0hfvbn6c9k3pf.js +1 -0
  37. package/console/_next/static/chunks/0hw7vilkfpzlc.js +1 -0
  38. package/console/_next/static/chunks/0kb63xcvghh_3.js +1 -0
  39. package/console/_next/static/chunks/0ko5wsi6kukgd.js +1 -0
  40. package/console/_next/static/chunks/0kq99qin4db-q.js +1 -0
  41. package/console/_next/static/chunks/0kqg4u5n17gje.js +1 -0
  42. package/console/_next/static/chunks/0ky9qppyx1n57.js +62 -0
  43. package/console/_next/static/chunks/0og4_5pph-mhm.js +1 -0
  44. package/console/_next/static/chunks/0p7p-bpdrqx75.js +1 -0
  45. package/console/_next/static/chunks/0q2bnr94vvuc2.js +1 -0
  46. package/console/_next/static/chunks/0q3sxhnylk_gn.js +1 -0
  47. package/console/_next/static/chunks/0qg6l3tattq3j.js +1 -0
  48. package/console/_next/static/chunks/0qwyk_70quvjh.js +1 -0
  49. package/console/_next/static/chunks/0qzyqii8_m5r2.js +1 -0
  50. package/console/_next/static/chunks/0rlfx91598uvc.js +1 -0
  51. package/console/_next/static/chunks/0s9njms3lumhx.js +1 -0
  52. package/console/_next/static/chunks/0srualwd948m1.js +29 -0
  53. package/console/_next/static/chunks/0u4m2805tgi7x.js +1 -0
  54. package/console/_next/static/chunks/0udcs-1vq74rp.js +1 -0
  55. package/console/_next/static/chunks/0vno04lmwdchj.js +1 -0
  56. package/console/_next/static/chunks/0vt1_fu_q116n.js +1 -0
  57. package/console/_next/static/chunks/0vuq85gcb9zcl.js +1 -0
  58. package/console/_next/static/chunks/0wxazby0i4xu3.js +5 -0
  59. package/console/_next/static/chunks/0yeh2zqwmmec0.js +22 -0
  60. package/console/_next/static/chunks/0zvl88sijsrqk.js +1 -0
  61. package/console/_next/static/chunks/110bgpy30m6m6.js +1 -0
  62. package/console/_next/static/chunks/14ipylvs6qyyw.js +1 -0
  63. package/console/_next/static/chunks/1745jt9onokna.js +1 -0
  64. package/console/_next/static/chunks/177rfq0tsoku9.js +4 -0
  65. package/console/_next/static/chunks/17mfsiiquey1d.js +1 -0
  66. package/console/_next/static/chunks/197iuvi8udifl.js +1 -0
  67. package/console/_next/static/chunks/1_2-z0tjk0xio.js +1 -0
  68. package/console/_next/static/chunks/1_gh5a14dqnji.js +1 -0
  69. package/console/_next/static/chunks/1ame8n7x9g3xc.js +1 -0
  70. package/console/_next/static/chunks/1apepr-7dz16b.js +1 -0
  71. package/console/_next/static/chunks/1dtukwrl8nulc.js +1 -0
  72. package/console/_next/static/chunks/1e0br64ibniud.js +24 -0
  73. package/console/_next/static/chunks/1fm-45g777ifx.js +1 -0
  74. package/console/_next/static/chunks/1g_iha5barqef.js +1 -0
  75. package/console/_next/static/chunks/1glr_lki18csr.js +2 -0
  76. package/console/_next/static/chunks/1hl355w6m5bp5.js +1 -0
  77. package/console/_next/static/chunks/1id3p9v9v5knn.js +1 -0
  78. package/console/_next/static/chunks/1j6kp4gg0_ylt.js +80 -0
  79. package/console/_next/static/chunks/1jssq3ch7qgd6.js +60 -0
  80. package/console/_next/static/chunks/1jzfyfh-3gqlb.js +1 -0
  81. package/console/_next/static/chunks/1k3d5c49mpp-2.js +1 -0
  82. package/console/_next/static/chunks/1kte_bxw9m-ie.js +1 -0
  83. package/console/_next/static/chunks/1lw52jm27gon2.js +1 -0
  84. package/console/_next/static/chunks/1m9e28v8syzxx.js +34 -0
  85. package/console/_next/static/chunks/1mrmq_pigo_yb.js +1 -0
  86. package/console/_next/static/chunks/1muf1a96cgbv5.js +1 -0
  87. package/console/_next/static/chunks/1n1x0ykt8by6w.js +1 -0
  88. package/console/_next/static/chunks/1qu0tqybdtj0_.js +1 -0
  89. package/console/_next/static/chunks/1r8itpdfffwxa.js +1 -0
  90. package/console/_next/static/chunks/1r_opkrpbuykx.js +1 -0
  91. package/console/_next/static/chunks/1tl0h3c_bp62t.js +1 -0
  92. package/console/_next/static/chunks/1v1m1fr8f0yle.js +1 -0
  93. package/console/_next/static/chunks/1v34vj52v7q0g.js +1 -0
  94. package/console/_next/static/chunks/1wztfxoxnu5_9.js +1 -0
  95. package/console/_next/static/chunks/1x7exm5d_hhb8.js +153 -0
  96. package/console/_next/static/chunks/1xwdphzrhi9cn.js +1 -0
  97. package/console/_next/static/chunks/1yc4gdqzxa5ie.js +1 -0
  98. package/console/_next/static/chunks/1zunrzvni97zi.js +1 -0
  99. package/console/_next/static/chunks/1zv6mtmekep40.js +36 -0
  100. package/console/_next/static/chunks/2-jaie5wchnsy.js +1 -0
  101. package/console/_next/static/chunks/20aa5hen470pm.js +1 -0
  102. package/console/_next/static/chunks/2116ko93nwgx8.js +1 -0
  103. package/console/_next/static/chunks/23vk0ig36j0he.js +1 -0
  104. package/console/_next/static/chunks/245vlws7l85dk.js +1 -0
  105. package/console/_next/static/chunks/24__o4dkdytc8.js +1 -0
  106. package/console/_next/static/chunks/24iwqo9ejhxl8.js +127 -0
  107. package/console/_next/static/chunks/24o9ia1be2cze.js +1 -0
  108. package/console/_next/static/chunks/25aea0bgjydel.css +1 -0
  109. package/console/_next/static/chunks/26-p2jxr4f20d.js +1 -0
  110. package/console/_next/static/chunks/28c--yt2jaxxf.js +1 -0
  111. package/console/_next/static/chunks/28vym848oh1ng.js +1 -0
  112. package/console/_next/static/chunks/29ou6qb6p1lni.js +1 -0
  113. package/console/_next/static/chunks/2aalpmeu_tni-.js +3 -0
  114. package/console/_next/static/chunks/2c4ifddi2dal0.js +20 -0
  115. package/console/_next/static/chunks/2ckm4edha_gkb.js +43 -0
  116. package/console/_next/static/chunks/2d5ods6a8n6yd.js +1 -0
  117. package/console/_next/static/chunks/2dm5g7ylrulvb.js +15 -0
  118. package/console/_next/static/chunks/2dtosus35_o5k.js +1 -0
  119. package/console/_next/static/chunks/2e0_cm1_wv-b4.js +1 -0
  120. package/console/_next/static/chunks/2fh_0n31hibdi.js +226 -0
  121. package/console/_next/static/chunks/2fjsaw5pgjcqb.js +1 -0
  122. package/console/_next/static/chunks/2h5pk3yu15nwr.js +1 -0
  123. package/console/_next/static/chunks/2i7w4yyf77gzw.js +1 -0
  124. package/console/_next/static/chunks/2jo3q7mfk65kd.js +1 -0
  125. package/console/_next/static/chunks/2jutbapb-t64n.js +31 -0
  126. package/console/_next/static/chunks/2k6tx8-w1creu.js +148 -0
  127. package/console/_next/static/chunks/2kh_m5onqedc5.js +1 -0
  128. package/console/_next/static/chunks/2ltzdgpjq3v6a.js +1 -0
  129. package/console/_next/static/chunks/2o2ftjhtb8od3.js +2 -0
  130. package/console/_next/static/chunks/2pyn841-jq-oo.js +10 -0
  131. package/console/_next/static/chunks/2rn289343m-y_.js +139 -0
  132. package/console/_next/static/chunks/2t2l3h2w_04bb.js +1 -0
  133. package/console/_next/static/chunks/2v11hooq3xd5t.js +15 -0
  134. package/console/_next/static/chunks/2vsg5t3fnqmfn.js +1 -0
  135. package/console/_next/static/chunks/2wayafjfoiq7q.css +6 -0
  136. package/console/_next/static/chunks/2xsvteosdtsb-.js +1 -0
  137. package/console/_next/static/chunks/2y-x8nhnufxzb.js +1 -0
  138. package/console/_next/static/chunks/2za4b-si894xj.js +1 -0
  139. package/console/_next/static/chunks/3-igvp1-n4pxs.js +104 -0
  140. package/console/_next/static/chunks/3-k25f-adpe5f.js +1 -0
  141. package/console/_next/static/chunks/3-pzmot7dbrfa.js +1 -0
  142. package/console/_next/static/chunks/3-x5lrgs3wcpl.js +80 -0
  143. package/console/_next/static/chunks/30nrkrr9518_z.js +1 -0
  144. package/console/_next/static/chunks/316lh1-hzgnod.js +1 -0
  145. package/console/_next/static/chunks/31wj1au8smjge.js +1 -0
  146. package/console/_next/static/chunks/329o6uup9qmb3.js +1 -0
  147. package/console/_next/static/chunks/34_1w929-5o6r.js +287 -0
  148. package/console/_next/static/chunks/35szx1ga574xu.js +1 -0
  149. package/console/_next/static/chunks/36tg522pkl8hm.js +1 -0
  150. package/console/_next/static/chunks/37-y9fgnir35a.js +1 -0
  151. package/console/_next/static/chunks/39wss1g0ffaqt.js +1 -0
  152. package/console/_next/static/chunks/3_cv0gj1bm3l6.js +1 -0
  153. package/console/_next/static/chunks/3_f8gd_6816re.js +101 -0
  154. package/console/_next/static/chunks/3a4qfuhsxefh2.js +12 -0
  155. package/console/_next/static/chunks/3asb3ztrvogwl.js +1 -0
  156. package/console/_next/static/chunks/3bsxbw10qhvqo.js +1 -0
  157. package/console/_next/static/chunks/3by94g38ljxl1.js +1 -0
  158. package/console/_next/static/chunks/3c_6owv8m4rta.js +90 -0
  159. package/console/_next/static/chunks/3ea2eo8b5gmju.js +2 -0
  160. package/console/_next/static/chunks/3ercnb2rksl_a.js +1 -0
  161. package/console/_next/static/chunks/3esxfmmm0ypxb.js +2 -0
  162. package/console/_next/static/chunks/3exiw74xbmika.js +1 -0
  163. package/console/_next/static/chunks/3f88-tc5u2heg.js +1 -0
  164. package/console/_next/static/chunks/3f_axahrombdp.js +1 -0
  165. package/console/_next/static/chunks/3gz91kn_v2lfa.js +1 -0
  166. package/console/_next/static/chunks/3i9z3x7tka5x2.js +1 -0
  167. package/console/_next/static/chunks/3ih4kfufd47st.js +1 -0
  168. package/console/_next/static/chunks/3itfi41ayfopd.js +15 -0
  169. package/console/_next/static/chunks/3iwgig-fgcscf.js +15 -0
  170. package/console/_next/static/chunks/3jf8qh1ev3gb4.js +2 -0
  171. package/console/_next/static/chunks/3l6svfyqdsq6o.js +1 -0
  172. package/console/_next/static/chunks/3lj0i-qlb4ah2.js +64 -0
  173. package/console/_next/static/chunks/3lmx6tkunfd3u.js +1 -0
  174. package/console/_next/static/chunks/3lp4d64he__am.js +152 -0
  175. package/console/_next/static/chunks/3m_jz3b2j38nn.js +1 -0
  176. package/console/_next/static/chunks/3oe9w1b39nzmn.js +3 -0
  177. package/console/_next/static/chunks/3on7r_d8o-kna.js +1 -0
  178. package/console/_next/static/chunks/3pbpowf3kdu5z.js +119 -0
  179. package/console/_next/static/chunks/3pwwv0u29nk8c.js +23 -0
  180. package/console/_next/static/chunks/3rweyye6o1z6b.js +79 -0
  181. package/console/_next/static/chunks/3sdqgrmvxm_u4.js +201 -0
  182. package/console/_next/static/chunks/3t3vbs-x5hixj.js +1 -0
  183. package/console/_next/static/chunks/3thqnz0a5zy-h.js +9 -0
  184. package/console/_next/static/chunks/3udubdawo7583.js +1 -0
  185. package/console/_next/static/chunks/3uz4lg6e199sb.js +1 -0
  186. package/console/_next/static/chunks/3v2mkz_46uei2.js +1 -0
  187. package/console/_next/static/chunks/3w5crjmhb-3um.js +1 -0
  188. package/console/_next/static/chunks/3waxhrmr_82j5.js +93 -0
  189. package/console/_next/static/chunks/3zmlzef_jxopu.js +1 -0
  190. package/console/_next/static/chunks/3zqvalj8nr-1y.js +1 -0
  191. package/console/_next/static/chunks/40igag4gq4k0a.js +77 -0
  192. package/console/_next/static/chunks/40wq034qcdji_.js +1 -0
  193. package/console/_next/static/chunks/44crhetqymq_e.js +34 -0
  194. package/console/_next/static/chunks/44q2pv6a3w19q.js +1 -0
  195. package/console/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
  196. package/console/_next/static/media/GeistMono_Variable-s.p.21mfa-4xv0w3g.woff2 +0 -0
  197. package/console/_next/static/media/Geist_Variable-s.p.217kyf1h_p0cg.woff2 +0 -0
  198. package/console/_next/static/media/IBMPlexMono_Medium-s.2v25u5rd2tsaf.woff2 +0 -0
  199. package/console/_next/static/media/IBMPlexMono_Regular-s.09u63wo58kris.woff2 +0 -0
  200. package/console/_next/static/media/IBMPlexSans_Bold-s.3iicodgz0epim.woff2 +0 -0
  201. package/console/_next/static/media/IBMPlexSans_Light-s.3ntejfdcyftfg.woff2 +0 -0
  202. package/console/_next/static/media/IBMPlexSans_Medium-s.3n25cgfiu6qss.woff2 +0 -0
  203. package/console/_next/static/media/IBMPlexSans_Regular-s.2e_-c_m03txvi.woff2 +0 -0
  204. package/console/_next/static/media/IBMPlexSans_SemiBold-s.2sutjpuns2xc5.woff2 +0 -0
  205. package/console/_next/static/media/Inter_Variable-s.2-lfiv6s83kzn.woff2 +0 -0
  206. package/console/_next/static/media/Nunito_Variable-s.3r4_r9s3kxd_-.woff2 +0 -0
  207. package/console/_not-found/__next._full.txt +73 -0
  208. package/console/_not-found/__next._index.txt +62 -0
  209. package/console/_not-found/__next._not-found.__PAGE__.txt +61 -0
  210. package/console/_not-found/__next._tree.txt +5 -0
  211. package/console/_not-found.html +1 -0
  212. package/console/_not-found.txt +73 -0
  213. package/console/apple-touch-icon-dark.png +0 -0
  214. package/console/apple-touch-icon-light.png +0 -0
  215. package/console/auth/callback/__next._full.txt +82 -0
  216. package/console/auth/callback/__next._index.txt +62 -0
  217. package/console/auth/callback/__next._tree.txt +8 -0
  218. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +67 -0
  219. package/console/auth/callback.html +1 -0
  220. package/console/auth/callback.txt +82 -0
  221. package/console/auth/oauth/callback/__next._full.txt +84 -0
  222. package/console/auth/oauth/callback/__next._index.txt +62 -0
  223. package/console/auth/oauth/callback/__next._tree.txt +9 -0
  224. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +69 -0
  225. package/console/auth/oauth/callback.html +1 -0
  226. package/console/auth/oauth/callback.txt +84 -0
  227. package/console/brand-avatar.png +0 -0
  228. package/console/chat/__placeholder__/__next._full.txt +80 -0
  229. package/console/chat/__placeholder__/__next._index.txt +62 -0
  230. package/console/chat/__placeholder__/__next._tree.txt +8 -0
  231. package/console/chat/__placeholder__/__next.chat.$d$channel.__PAGE__.txt +65 -0
  232. package/console/chat/__placeholder__.html +1 -0
  233. package/console/chat/__placeholder__.txt +80 -0
  234. package/console/connect/__placeholder__/__next._full.txt +79 -0
  235. package/console/connect/__placeholder__/__next._index.txt +62 -0
  236. package/console/connect/__placeholder__/__next._tree.txt +8 -0
  237. package/console/connect/__placeholder__/__next.connect.$d$token.__PAGE__.txt +64 -0
  238. package/console/connect/__placeholder__.html +1 -0
  239. package/console/connect/__placeholder__.txt +79 -0
  240. package/console/conversations/__next._full.txt +79 -0
  241. package/console/conversations/__next._index.txt +62 -0
  242. package/console/conversations/__next._tree.txt +7 -0
  243. package/console/conversations/__next.conversations.__PAGE__.txt +64 -0
  244. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +83 -0
  245. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +62 -0
  246. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +9 -0
  247. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +68 -0
  248. package/console/conversations/__placeholder__/__placeholder__.html +1 -0
  249. package/console/conversations/__placeholder__/__placeholder__.txt +83 -0
  250. package/console/conversations.html +1 -0
  251. package/console/conversations.txt +79 -0
  252. package/console/dashboard/__next._full.txt +77 -0
  253. package/console/dashboard/__next._index.txt +62 -0
  254. package/console/dashboard/__next._tree.txt +7 -0
  255. package/console/dashboard/__next.dashboard.__PAGE__.txt +62 -0
  256. package/console/dashboard.html +1 -0
  257. package/console/dashboard.txt +77 -0
  258. package/console/desktop/billing/__next._full.txt +82 -0
  259. package/console/desktop/billing/__next._index.txt +62 -0
  260. package/console/desktop/billing/__next._tree.txt +8 -0
  261. package/console/desktop/billing/__next.desktop.billing.__PAGE__.txt +67 -0
  262. package/console/desktop/billing.html +1 -0
  263. package/console/desktop/billing.txt +82 -0
  264. package/console/embed.js +1 -0
  265. package/console/favicon-dark-16x16.png +0 -0
  266. package/console/favicon-dark-32x32.png +0 -0
  267. package/console/favicon-dark.ico +0 -0
  268. package/console/favicon-dark.svg +1 -0
  269. package/console/favicon-light-16x16.png +0 -0
  270. package/console/favicon-light-32x32.png +0 -0
  271. package/console/favicon-light.ico +0 -0
  272. package/console/favicon-light.svg +1 -0
  273. package/console/index.html +1 -0
  274. package/console/index.txt +71 -0
  275. package/console/invite/__placeholder__/__next._full.txt +80 -0
  276. package/console/invite/__placeholder__/__next._index.txt +62 -0
  277. package/console/invite/__placeholder__/__next._tree.txt +8 -0
  278. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +65 -0
  279. package/console/invite/__placeholder__.html +1 -0
  280. package/console/invite/__placeholder__.txt +80 -0
  281. package/console/library/__next._full.txt +89 -0
  282. package/console/library/__next._index.txt +62 -0
  283. package/console/library/__next._tree.txt +7 -0
  284. package/console/library/__next.library.__PAGE__.txt +74 -0
  285. package/console/library/agents/__next._full.txt +94 -0
  286. package/console/library/agents/__next._index.txt +62 -0
  287. package/console/library/agents/__next._tree.txt +8 -0
  288. package/console/library/agents/__next.library.agents.__PAGE__.txt +79 -0
  289. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +96 -0
  290. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +62 -0
  291. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  292. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +81 -0
  293. package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
  294. package/console/library/agents/__placeholder__/__placeholder__.txt +96 -0
  295. package/console/library/agents/new/__next._full.txt +99 -0
  296. package/console/library/agents/new/__next._index.txt +62 -0
  297. package/console/library/agents/new/__next._tree.txt +9 -0
  298. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +84 -0
  299. package/console/library/agents/new.html +1 -0
  300. package/console/library/agents/new.txt +99 -0
  301. package/console/library/agents.html +1 -0
  302. package/console/library/agents.txt +94 -0
  303. package/console/library/environments/__next._full.txt +95 -0
  304. package/console/library/environments/__next._index.txt +62 -0
  305. package/console/library/environments/__next._tree.txt +8 -0
  306. package/console/library/environments/__next.library.environments.__PAGE__.txt +80 -0
  307. package/console/library/environments/__placeholder__/__placeholder__/__next._full.txt +97 -0
  308. package/console/library/environments/__placeholder__/__placeholder__/__next._index.txt +62 -0
  309. package/console/library/environments/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  310. package/console/library/environments/__placeholder__/__placeholder__/__next.library.environments.$d$org.$d$slug.__PAGE__.txt +82 -0
  311. package/console/library/environments/__placeholder__/__placeholder__.html +1 -0
  312. package/console/library/environments/__placeholder__/__placeholder__.txt +97 -0
  313. package/console/library/environments/new/__next._full.txt +99 -0
  314. package/console/library/environments/new/__next._index.txt +62 -0
  315. package/console/library/environments/new/__next._tree.txt +9 -0
  316. package/console/library/environments/new/__next.library.environments.new.__PAGE__.txt +84 -0
  317. package/console/library/environments/new.html +1 -0
  318. package/console/library/environments/new.txt +99 -0
  319. package/console/library/environments.html +1 -0
  320. package/console/library/environments.txt +95 -0
  321. package/console/library/files/__next._full.txt +94 -0
  322. package/console/library/files/__next._index.txt +62 -0
  323. package/console/library/files/__next._tree.txt +8 -0
  324. package/console/library/files/__next.library.files.__PAGE__.txt +79 -0
  325. package/console/library/files.html +1 -0
  326. package/console/library/files.txt +94 -0
  327. package/console/library/plugins/__next._full.txt +94 -0
  328. package/console/library/plugins/__next._index.txt +62 -0
  329. package/console/library/plugins/__next._tree.txt +8 -0
  330. package/console/library/plugins/__next.library.plugins.__PAGE__.txt +79 -0
  331. package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +97 -0
  332. package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +62 -0
  333. package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  334. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +82 -0
  335. package/console/library/plugins/__placeholder__/__placeholder__.html +1 -0
  336. package/console/library/plugins/__placeholder__/__placeholder__.txt +97 -0
  337. package/console/library/plugins/upload/__next._full.txt +99 -0
  338. package/console/library/plugins/upload/__next._index.txt +62 -0
  339. package/console/library/plugins/upload/__next._tree.txt +9 -0
  340. package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +84 -0
  341. package/console/library/plugins/upload.html +1 -0
  342. package/console/library/plugins/upload.txt +99 -0
  343. package/console/library/plugins.html +1 -0
  344. package/console/library/plugins.txt +94 -0
  345. package/console/library/routines/__next._full.txt +94 -0
  346. package/console/library/routines/__next._index.txt +62 -0
  347. package/console/library/routines/__next._tree.txt +8 -0
  348. package/console/library/routines/__next.library.routines.__PAGE__.txt +79 -0
  349. package/console/library/routines/__placeholder__/__placeholder__/__next._full.txt +97 -0
  350. package/console/library/routines/__placeholder__/__placeholder__/__next._index.txt +62 -0
  351. package/console/library/routines/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  352. package/console/library/routines/__placeholder__/__placeholder__/__next.library.routines.$d$org.$d$slug.__PAGE__.txt +82 -0
  353. package/console/library/routines/__placeholder__/__placeholder__.html +1 -0
  354. package/console/library/routines/__placeholder__/__placeholder__.txt +97 -0
  355. package/console/library/routines/new/__next._full.txt +98 -0
  356. package/console/library/routines/new/__next._index.txt +62 -0
  357. package/console/library/routines/new/__next._tree.txt +9 -0
  358. package/console/library/routines/new/__next.library.routines.new.__PAGE__.txt +83 -0
  359. package/console/library/routines/new.html +1 -0
  360. package/console/library/routines/new.txt +98 -0
  361. package/console/library/routines.html +1 -0
  362. package/console/library/routines.txt +94 -0
  363. package/console/library/skills/__next._full.txt +94 -0
  364. package/console/library/skills/__next._index.txt +62 -0
  365. package/console/library/skills/__next._tree.txt +8 -0
  366. package/console/library/skills/__next.library.skills.__PAGE__.txt +79 -0
  367. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +96 -0
  368. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +62 -0
  369. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  370. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +81 -0
  371. package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
  372. package/console/library/skills/__placeholder__/__placeholder__.txt +96 -0
  373. package/console/library/skills/new/__next._full.txt +98 -0
  374. package/console/library/skills/new/__next._index.txt +62 -0
  375. package/console/library/skills/new/__next._tree.txt +9 -0
  376. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +83 -0
  377. package/console/library/skills/new.html +1 -0
  378. package/console/library/skills/new.txt +98 -0
  379. package/console/library/skills.html +1 -0
  380. package/console/library/skills.txt +94 -0
  381. package/console/library.html +1 -0
  382. package/console/library.txt +89 -0
  383. package/console/login/__next._full.txt +81 -0
  384. package/console/login/__next._index.txt +62 -0
  385. package/console/login/__next._tree.txt +7 -0
  386. package/console/login/__next.login.__PAGE__.txt +66 -0
  387. package/console/login.html +1 -0
  388. package/console/login.txt +81 -0
  389. package/console/marketplace/__next._full.txt +81 -0
  390. package/console/marketplace/__next._index.txt +62 -0
  391. package/console/marketplace/__next._tree.txt +7 -0
  392. package/console/marketplace/__next.marketplace.__PAGE__.txt +66 -0
  393. package/console/marketplace.html +1 -0
  394. package/console/marketplace.txt +81 -0
  395. package/console/models/__next._full.txt +77 -0
  396. package/console/models/__next._index.txt +62 -0
  397. package/console/models/__next._tree.txt +7 -0
  398. package/console/models/__next.models.__PAGE__.txt +62 -0
  399. package/console/models.html +1 -0
  400. package/console/models.txt +77 -0
  401. package/console/oauth/slack/callback/__next._full.txt +84 -0
  402. package/console/oauth/slack/callback/__next._index.txt +62 -0
  403. package/console/oauth/slack/callback/__next._tree.txt +9 -0
  404. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +69 -0
  405. package/console/oauth/slack/callback.html +1 -0
  406. package/console/oauth/slack/callback.txt +84 -0
  407. package/console/runs/__placeholder__/__next._full.txt +77 -0
  408. package/console/runs/__placeholder__/__next._index.txt +62 -0
  409. package/console/runs/__placeholder__/__next._tree.txt +8 -0
  410. package/console/runs/__placeholder__/__next.runs.$d$id.__PAGE__.txt +62 -0
  411. package/console/runs/__placeholder__.html +1 -0
  412. package/console/runs/__placeholder__.txt +77 -0
  413. package/console/sessions/__placeholder__/__next._full.txt +77 -0
  414. package/console/sessions/__placeholder__/__next._index.txt +62 -0
  415. package/console/sessions/__placeholder__/__next._tree.txt +8 -0
  416. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +62 -0
  417. package/console/sessions/__placeholder__.html +1 -0
  418. package/console/sessions/__placeholder__.txt +77 -0
  419. package/console/settings/__next._full.txt +85 -0
  420. package/console/settings/__next._index.txt +62 -0
  421. package/console/settings/__next._tree.txt +7 -0
  422. package/console/settings/__next.settings.__PAGE__.txt +70 -0
  423. package/console/settings/access-history/__next._full.txt +87 -0
  424. package/console/settings/access-history/__next._index.txt +62 -0
  425. package/console/settings/access-history/__next._tree.txt +8 -0
  426. package/console/settings/access-history/__next.settings.access-history.__PAGE__.txt +72 -0
  427. package/console/settings/access-history.html +1 -0
  428. package/console/settings/access-history.txt +87 -0
  429. package/console/settings/account-preferences/__next._full.txt +87 -0
  430. package/console/settings/account-preferences/__next._index.txt +62 -0
  431. package/console/settings/account-preferences/__next._tree.txt +8 -0
  432. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +72 -0
  433. package/console/settings/account-preferences.html +1 -0
  434. package/console/settings/account-preferences.txt +87 -0
  435. package/console/settings/api-keys/__next._full.txt +86 -0
  436. package/console/settings/api-keys/__next._index.txt +62 -0
  437. package/console/settings/api-keys/__next._tree.txt +8 -0
  438. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +71 -0
  439. package/console/settings/api-keys.html +1 -0
  440. package/console/settings/api-keys.txt +86 -0
  441. package/console/settings/billing/__next._full.txt +89 -0
  442. package/console/settings/billing/__next._index.txt +62 -0
  443. package/console/settings/billing/__next._tree.txt +8 -0
  444. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +74 -0
  445. package/console/settings/billing.html +1 -0
  446. package/console/settings/billing.txt +89 -0
  447. package/console/settings/channel-apps/__next._full.txt +87 -0
  448. package/console/settings/channel-apps/__next._index.txt +62 -0
  449. package/console/settings/channel-apps/__next._tree.txt +8 -0
  450. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +72 -0
  451. package/console/settings/channel-apps.html +1 -0
  452. package/console/settings/channel-apps.txt +87 -0
  453. package/console/settings/federation-issuers/__next._full.txt +88 -0
  454. package/console/settings/federation-issuers/__next._index.txt +62 -0
  455. package/console/settings/federation-issuers/__next._tree.txt +8 -0
  456. package/console/settings/federation-issuers/__next.settings.federation-issuers.__PAGE__.txt +73 -0
  457. package/console/settings/federation-issuers.html +1 -0
  458. package/console/settings/federation-issuers.txt +88 -0
  459. package/console/settings/invitations/__next._full.txt +87 -0
  460. package/console/settings/invitations/__next._index.txt +62 -0
  461. package/console/settings/invitations/__next._tree.txt +8 -0
  462. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +72 -0
  463. package/console/settings/invitations.html +1 -0
  464. package/console/settings/invitations.txt +87 -0
  465. package/console/settings/licenses/__next._full.txt +90 -0
  466. package/console/settings/licenses/__next._index.txt +62 -0
  467. package/console/settings/licenses/__next._tree.txt +8 -0
  468. package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +75 -0
  469. package/console/settings/licenses.html +1 -0
  470. package/console/settings/licenses.txt +90 -0
  471. package/console/settings/members/__next._full.txt +86 -0
  472. package/console/settings/members/__next._index.txt +62 -0
  473. package/console/settings/members/__next._tree.txt +8 -0
  474. package/console/settings/members/__next.settings.members.__PAGE__.txt +71 -0
  475. package/console/settings/members.html +1 -0
  476. package/console/settings/members.txt +86 -0
  477. package/console/settings/memory/__next._full.txt +86 -0
  478. package/console/settings/memory/__next._index.txt +62 -0
  479. package/console/settings/memory/__next._tree.txt +8 -0
  480. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +71 -0
  481. package/console/settings/memory.html +1 -0
  482. package/console/settings/memory.txt +86 -0
  483. package/console/settings/model-catalog/__next._full.txt +89 -0
  484. package/console/settings/model-catalog/__next._index.txt +62 -0
  485. package/console/settings/model-catalog/__next._tree.txt +8 -0
  486. package/console/settings/model-catalog/__next.settings.model-catalog.__PAGE__.txt +74 -0
  487. package/console/settings/model-catalog.html +1 -0
  488. package/console/settings/model-catalog.txt +89 -0
  489. package/console/settings/notifications/__next._full.txt +89 -0
  490. package/console/settings/notifications/__next._index.txt +62 -0
  491. package/console/settings/notifications/__next._tree.txt +8 -0
  492. package/console/settings/notifications/__next.settings.notifications.__PAGE__.txt +74 -0
  493. package/console/settings/notifications.html +1 -0
  494. package/console/settings/notifications.txt +89 -0
  495. package/console/settings/oauth-apps/__next._full.txt +87 -0
  496. package/console/settings/oauth-apps/__next._index.txt +62 -0
  497. package/console/settings/oauth-apps/__next._tree.txt +8 -0
  498. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +72 -0
  499. package/console/settings/oauth-apps.html +1 -0
  500. package/console/settings/oauth-apps.txt +87 -0
  501. package/console/settings/org-embedding/__next._full.txt +87 -0
  502. package/console/settings/org-embedding/__next._index.txt +62 -0
  503. package/console/settings/org-embedding/__next._tree.txt +8 -0
  504. package/console/settings/org-embedding/__next.settings.org-embedding.__PAGE__.txt +72 -0
  505. package/console/settings/org-embedding.html +1 -0
  506. package/console/settings/org-embedding.txt +87 -0
  507. package/console/settings/org-policies/__next._full.txt +87 -0
  508. package/console/settings/org-policies/__next._index.txt +62 -0
  509. package/console/settings/org-policies/__next._tree.txt +8 -0
  510. package/console/settings/org-policies/__next.settings.org-policies.__PAGE__.txt +72 -0
  511. package/console/settings/org-policies.html +1 -0
  512. package/console/settings/org-policies.txt +87 -0
  513. package/console/settings/org-preferences/__next._full.txt +87 -0
  514. package/console/settings/org-preferences/__next._index.txt +62 -0
  515. package/console/settings/org-preferences/__next._tree.txt +8 -0
  516. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +72 -0
  517. package/console/settings/org-preferences.html +1 -0
  518. package/console/settings/org-preferences.txt +87 -0
  519. package/console/settings/org-profile/__next._full.txt +89 -0
  520. package/console/settings/org-profile/__next._index.txt +62 -0
  521. package/console/settings/org-profile/__next._tree.txt +8 -0
  522. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +74 -0
  523. package/console/settings/org-profile.html +1 -0
  524. package/console/settings/org-profile.txt +89 -0
  525. package/console/settings/plans/__next._full.txt +89 -0
  526. package/console/settings/plans/__next._index.txt +62 -0
  527. package/console/settings/plans/__next._tree.txt +8 -0
  528. package/console/settings/plans/__next.settings.plans.__PAGE__.txt +74 -0
  529. package/console/settings/plans.html +1 -0
  530. package/console/settings/plans.txt +89 -0
  531. package/console/settings/service-accounts/__next._full.txt +87 -0
  532. package/console/settings/service-accounts/__next._index.txt +62 -0
  533. package/console/settings/service-accounts/__next._tree.txt +8 -0
  534. package/console/settings/service-accounts/__next.settings.service-accounts.__PAGE__.txt +72 -0
  535. package/console/settings/service-accounts.html +1 -0
  536. package/console/settings/service-accounts.txt +87 -0
  537. package/console/settings/teams/__next._full.txt +86 -0
  538. package/console/settings/teams/__next._index.txt +62 -0
  539. package/console/settings/teams/__next._tree.txt +8 -0
  540. package/console/settings/teams/__next.settings.teams.__PAGE__.txt +71 -0
  541. package/console/settings/teams.html +1 -0
  542. package/console/settings/teams.txt +86 -0
  543. package/console/settings/usage/__next._full.txt +86 -0
  544. package/console/settings/usage/__next._index.txt +62 -0
  545. package/console/settings/usage/__next._tree.txt +8 -0
  546. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +71 -0
  547. package/console/settings/usage.html +1 -0
  548. package/console/settings/usage.txt +86 -0
  549. package/console/settings/vaults/__next._full.txt +86 -0
  550. package/console/settings/vaults/__next._index.txt +62 -0
  551. package/console/settings/vaults/__next._tree.txt +8 -0
  552. package/console/settings/vaults/__next.settings.vaults.__PAGE__.txt +71 -0
  553. package/console/settings/vaults.html +1 -0
  554. package/console/settings/vaults.txt +86 -0
  555. package/console/settings.html +1 -0
  556. package/console/settings.txt +85 -0
  557. package/main.js +1656 -0
  558. package/mappings.wasm +0 -0
  559. package/package.json +25 -0
  560. package/workflow-bundle-agent-execution.js +29297 -0
  561. package/workflow-bundle-evals.js +11997 -0
  562. package/workflow-bundle-grading.js +11155 -0
  563. package/workflow-bundle-routine.js +11300 -0
  564. package/workflow-worker-thread.cjs +111 -0
@@ -0,0 +1,127 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,638987,t=>{"use strict";var e=t.i(572247),r=t.i(609003),a=t.i(136013),i=t.i(864421),s=t.i(669587),n=t.i(908381),l=t.i(171206),o=t.i(885812),d=t.i(342919),c=t.i(991085),h=t.i(338489);function g(t,e){for(let r in e)Object.hasOwn(e,r)&&(t[r]=e[r])}var p=t.i(569696),u=t.i(950241);t.i(947716);var y=t.i(723685);t.i(566661);var f=t.i(704642),x=t.i(785833),b=t.i(600104),w=function(){var t=(0,l.p)(function(t,e,r,a){for(r=r||{},a=t.length;a--;r[t[a]]=e);return r},"o"),e=[1,15],r=[1,7],a=[1,13],i=[1,14],s=[1,19],n=[1,16],o=[1,17],d=[1,18],c=[8,30],h=[8,10,21,28,29,30,31,39,43,46],g=[1,23],p=[1,24],u=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],f=[1,49],x={trace:(0,l.p)(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,l.p)(function(t,e,r,a,i,s,n){var l=s.length-1;switch(i){case 4:a.getLogger().debug("Rule: separator (NL) ");break;case 5:a.getLogger().debug("Rule: separator (Space) ");break;case 6:a.getLogger().debug("Rule: separator (EOF) ");break;case 7:a.getLogger().debug("Rule: hierarchy: ",s[l-1]),a.setHierarchy(s[l-1]);break;case 8:a.getLogger().debug("Stop NL ");break;case 9:a.getLogger().debug("Stop EOF ");break;case 10:a.getLogger().debug("Stop NL2 ");break;case 11:a.getLogger().debug("Stop EOF2 ");break;case 12:a.getLogger().debug("Rule: statement: ",s[l]),"number"==typeof s[l].length?this.$=s[l]:this.$=[s[l]];break;case 13:a.getLogger().debug("Rule: statement #2: ",s[l-1]),this.$=[s[l-1]].concat(s[l]);break;case 14:a.getLogger().debug("Rule: link: ",s[l],t),this.$={edgeTypeStr:s[l],label:""};break;case 15:a.getLogger().debug("Rule: LABEL link: ",s[l-3],s[l-1],s[l]),this.$={edgeTypeStr:s[l],label:s[l-1]};break;case 18:let o=parseInt(s[l]),d=a.generateId();this.$={id:d,type:"space",label:"",width:o,children:[]};break;case 23:a.getLogger().debug("Rule: (nodeStatement link node) ",s[l-2],s[l-1],s[l]," typestr: ",s[l-1].edgeTypeStr);let c=a.edgeStrToEdgeData(s[l-1].edgeTypeStr),h=a.edgeStrToEdgeStartData(s[l-1].edgeTypeStr),g=a.edgeStrToThickness(s[l-1].edgeTypeStr),p=a.edgeStrToPattern(s[l-1].edgeTypeStr);this.$=[{id:s[l-2].id,label:s[l-2].label,type:s[l-2].type,directions:s[l-2].directions},{id:s[l-2].id+"-"+s[l].id,start:s[l-2].id,end:s[l].id,label:s[l-1].label,type:"edge",thickness:g,pattern:p,directions:s[l].directions,arrowTypeEnd:c,arrowTypeStart:h},{id:s[l].id,label:s[l].label,type:a.typeStr2Type(s[l].typeStr),directions:s[l].directions}];break;case 24:a.getLogger().debug("Rule: nodeStatement (abc88 node size) ",s[l-1],s[l]),this.$={id:s[l-1].id,label:s[l-1].label,type:a.typeStr2Type(s[l-1].typeStr),directions:s[l-1].directions,widthInColumns:parseInt(s[l],10)};break;case 25:a.getLogger().debug("Rule: nodeStatement (node) ",s[l]),this.$={id:s[l].id,label:s[l].label,type:a.typeStr2Type(s[l].typeStr),directions:s[l].directions,widthInColumns:1};break;case 26:a.getLogger().debug("APA123",this?this:"na"),a.getLogger().debug("COLUMNS: ",s[l]),this.$={type:"column-setting",columns:"auto"===s[l]?-1:parseInt(s[l])};break;case 27:a.getLogger().debug("Rule: id-block statement : ",s[l-2],s[l-1]),a.generateId(),this.$={...s[l-2],type:"composite",children:s[l-1]};break;case 28:a.getLogger().debug("Rule: blockStatement : ",s[l-2],s[l-1],s[l]);let u=a.generateId();this.$={id:u,type:"composite",label:"",children:s[l-1]};break;case 29:a.getLogger().debug("Rule: node (NODE_ID separator): ",s[l]),this.$={id:s[l]};break;case 30:a.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",s[l-1],s[l]),this.$={id:s[l-1],label:s[l].label,typeStr:s[l].typeStr,directions:s[l].directions};break;case 31:a.getLogger().debug("Rule: dirList: ",s[l]),this.$=[s[l]];break;case 32:a.getLogger().debug("Rule: dirList: ",s[l-1],s[l]),this.$=[s[l-1]].concat(s[l]);break;case 33:a.getLogger().debug("Rule: nodeShapeNLabel: ",s[l-2],s[l-1],s[l]),this.$={typeStr:s[l-2]+s[l],label:s[l-1]};break;case 34:a.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",s[l-3],s[l-2]," #3:",s[l-1],s[l]),this.$={typeStr:s[l-3]+s[l],label:s[l-2],directions:s[l-1]};break;case 35:case 36:this.$={type:"classDef",id:s[l-1].trim(),css:s[l].trim()};break;case 37:this.$={type:"applyClass",id:s[l-1].trim(),styleClass:s[l].trim()};break;case 38:this.$={type:"applyStyles",id:s[l-1].trim(),stylesStr:s[l].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:e,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:i,31:s,39:n,43:o,46:d},{8:[1,20]},t(c,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:e,21:r,28:a,29:i,31:s,39:n,43:o,46:d}),t(h,[2,16],{14:22,15:g,16:p}),t(h,[2,17]),t(h,[2,18]),t(h,[2,19]),t(h,[2,20]),t(h,[2,21]),t(h,[2,22]),t(u,[2,25],{27:[1,25]}),t(h,[2,26]),{19:26,26:12,31:s},{10:e,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:i,31:s,39:n,43:o,46:d},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(c,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},t(u,[2,24]),{10:e,11:37,13:4,14:22,15:g,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:i,31:s,39:n,43:o,46:d},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(y,[2,30]),{18:[1,43]},{18:[1,44]},t(u,[2,23]),{18:[1,45]},{30:[1,46]},t(h,[2,28]),t(h,[2,35]),t(h,[2,36]),t(h,[2,37]),t(h,[2,38]),{36:[1,47]},{33:48,34:f},{15:[1,50]},t(h,[2,27]),t(y,[2,33]),{38:[1,51]},{33:52,34:f,38:[2,31]},{31:[2,15]},t(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,l.p)(function(t,e){if(e.recoverable)this.trace(t);else{var r=Error(t);throw r.hash=e,r}},"parseError"),parse:(0,l.p)(function(t){var e=this,r=[0],a=[],i=[null],s=[],n=this.table,o="",d=0,c=0,h=0,g=s.slice.call(arguments,1),p=Object.create(this.lexer),u={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(u[y]=this.yy[y]);p.setInput(t,u),u.lexer=p,u.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;s.push(f);var x=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=a.pop()||p.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof u.parseError?this.parseError=u.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.p)(function(t){r.length=r.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,l.p)(b,"lex");for(var w,m,k,S,L,_,E,$,D,T={};;){if(k=r[r.length-1],this.defaultActions[k]?S=this.defaultActions[k]:(null==w&&(w=b()),S=n[k]&&n[k][w]),void 0===S||!S.length||!S[0]){var N="";for(_ in D=[],n[k])this.terminals_[_]&&_>2&&D.push("'"+this.terminals_[_]+"'");N=p.showPosition?"Parse error on line "+(d+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(d+1)+": Unexpected "+(1==w?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[w]||w,line:p.yylineno,loc:f,expected:D})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+w);switch(S[0]){case 1:r.push(w),i.push(p.yytext),s.push(p.yylloc),r.push(S[1]),w=null,m?(w=m,m=null):(c=p.yyleng,o=p.yytext,d=p.yylineno,f=p.yylloc,h>0&&h--);break;case 2:if(E=this.productions_[S[1]][1],T.$=i[i.length-E],T._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},x&&(T._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),void 0!==(L=this.performAction.apply(T,[o,c,d,u,S[1],i,s].concat(g))))return L;E&&(r=r.slice(0,-1*E*2),i=i.slice(0,-1*E),s=s.slice(0,-1*E)),r.push(this.productions_[S[1]][0]),i.push(T.$),s.push(T._$),$=n[r[r.length-2]][r[r.length-1]],r.push($);break;case 3:return!0}}return!0},"parse")};function b(){this.yy={}}return x.lexer={EOF:1,parseError:(0,l.p)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.p)(function(t,e){return this.yy=e||this.yy||{},this._input=t,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]),this.offset=0,this},"setInput"),input:(0,l.p)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,l.p)(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.p)(function(){return this._more=!0,this},"more"),reject:(0,l.p)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.p)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.p)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.p)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.p)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.p)(function(t,e){var r,a,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,l.p)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,r,a,i=this._currentRules(),s=0;s<i.length;s++)if((r=this._input.match(this.rules[i[s]]))&&(!e||r[0].length>e[0].length)){if(e=r,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.p)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.p)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.p)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.p)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.p)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.p)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.p)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,l.p)(function(t,e,r,a){switch(r){case 0:return t.getLogger().debug("Found block-beta"),10;case 1:return t.getLogger().debug("Found id-block"),29;case 2:return t.getLogger().debug("Found block"),10;case 3:t.getLogger().debug(".",e.yytext);break;case 4:t.getLogger().debug("_",e.yytext);break;case 5:return 5;case 6:return e.yytext=-1,28;case 7:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 13:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 14:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 15:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),37;case 74:return t.getLogger().debug("Lex: NODE_ID",e.yytext),31;case 75:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 78:return"NODE_DESCR";case 80:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:t.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return t.getLogger().debug("LEX: NODE_DESCR:",e.yytext),"NODE_DESCR";case 83:t.getLogger().debug("LEX POPPING"),this.popState();break;case 84:t.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (right): dir:",e.yytext),"DIR";case 86:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (left):",e.yytext),"DIR";case 87:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (x):",e.yytext),"DIR";case 88:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (y):",e.yytext),"DIR";case 89:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (up):",e.yytext),"DIR";case 90:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (down):",e.yytext),"DIR";case 91:return e.yytext="]>",t.getLogger().debug("Lex (ARROW_DIR end):",e.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 93:case 94:case 95:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 96:case 97:case 98:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 100:return t.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 102:case 103:return this.popState(),t.getLogger().debug("Lex: LINK",e.yytext),15;case 104:return t.getLogger().debug("Lex: COLON",e.yytext),e.yytext=e.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}},(0,l.p)(b,"Parser"),b.prototype=x,x.Parser=b,new b}();w.parser=w;var m=new Map,k=[],S=new Map,L="color",_="fill",E=(0,n.z)(),$=new Map,D="",T=(0,l.p)(t=>n.E.sanitizeText(t,E),"sanitizeText"),N=(0,l.p)(function(t,e=""){let r=$.get(t);r||(r={id:t,styles:[],textStyles:[]},$.set(t,r)),null!=e&&e.split(",").forEach(t=>{let e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(L).exec(t)){let t=e.replace(_,"bgFill").replace(L,_);r.textStyles.push(t)}r.styles.push(e)})},"addStyleClass"),v=(0,l.p)(function(t,e=""){let r=m.get(t);null!=e&&(r.styles=e.split(","))},"addStyle2Node"),C=(0,l.p)(function(t,e){t.split(",").forEach(function(t){let r=m.get(t);if(void 0===r){let e=t.trim();r={id:e,type:"na",children:[]},m.set(e,r)}r.classes||(r.classes=[]),r.classes.push(e)})},"setCssClass"),I=(0,l.p)((t,e)=>{let r=t.flat(),a=[],i=r.find(t=>t?.type==="column-setting"),s=i?.columns??-1;for(let t of r){if("number"==typeof s&&s>0&&"column-setting"!==t.type&&"number"==typeof t.widthInColumns&&t.widthInColumns>s&&l.d.warn(`Block ${t.id} width ${t.widthInColumns} exceeds configured column width ${s}`),t.label&&(t.label=T(t.label)),"classDef"===t.type){N(t.id,t.css);continue}if("applyClass"===t.type){C(t.id,t?.styleClass??"");continue}if("applyStyles"===t.type){t?.stylesStr&&v(t.id,t?.stylesStr);continue}if("column-setting"===t.type)e.columns=t.columns??-1;else if("edge"===t.type){let e=(S.get(t.id)??0)+1;S.set(t.id,e),t.id=e+"-"+t.id,k.push(t)}else{t.label||("composite"===t.type?t.label="":t.label=t.id);let e=m.get(t.id);if(void 0===e?m.set(t.id,t):("na"!==t.type&&(e.type=t.type),t.label!==t.id&&(e.label=t.label)),t.children&&I(t.children,t),"space"===t.type){let e=t.width??1;for(let r=0;r<e;r++){let e=function(t){if((0,o.f)(t))return t;let e=(0,d.f)(t);if(!function(t){switch((0,d.f)(t)){case c.C:case c.Q:case c.J:case c.n:case c.P:case c.s:case c.H:case c.B:case c.K:case c.E:case c.o:case c.f:case c.F:case c.l:case c.L:case c.z:case c._:case c.$:case c.D:case c.G:case c.A:case c.R:return!0;default:return!1}}(t))return{};if(Array.isArray(t)){let e=Array.from(t);return t.length>0&&"string"==typeof t[0]&&Object.hasOwn(t,"index")&&(e.index=t.index,e.input=t.input),e}if((0,h.f)(t))return new t.constructor(t.buffer,t.byteOffset,t.length);if(e===c.J)return new ArrayBuffer(t.byteLength);if(e===c.n){let e=t.buffer,r=t.byteOffset,a=t.byteLength,i=new ArrayBuffer(a),s=new Uint8Array(e,r,a);return new Uint8Array(i).set(s),new DataView(i)}if(e===c.P||e===c.F||e===c._){let r=new t.constructor(t.valueOf());return e===c._?function(t,e){let r=e.valueOf().length;for(let a in e)Object.hasOwn(e,a)&&(Number.isNaN(Number(a))||Number(a)>=r)&&(t[a]=e[a])}(r,t):g(r,t),r}if(e===c.s)return new Date(Number(t));if(e===c.L){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(e===c.$)return Object(Symbol.prototype.valueOf.call(t));if(e===c.f){let e=new Map;return t.forEach((t,r)=>{e.set(r,t)}),e}if(e===c.z){let e=new Set;return t.forEach(t=>{e.add(t)}),e}if(e===c.C){let e={};return g(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}let r={};return function(t,e){let r=Object.getPrototypeOf(e);null!==r&&"function"==typeof e.constructor&&Object.setPrototypeOf(t,r)}(r,t),g(r,t),function(t,e){let r=Object.getOwnPropertySymbols(e);for(let a=0;a<r.length;a++){let i=r[a];Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}}(r,t),r}(t);e.id=e.id+"-"+r,m.set(e.id,e),a.push(e)}}else void 0===e&&a.push(t)}}e.children=a},"populateBlockDatabase"),O=[],z={id:"root",type:"composite",children:[],columns:-1},B=(0,l.p)(()=>{l.d.debug("Clear called"),(0,n.M)(),m=new Map([["root",z={id:"root",type:"composite",children:[],columns:-1}]]),O=[],$=new Map,k=[],S=new Map,D=""},"clear");function R(t){switch(l.d.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return l.d.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function A(t){return(l.d.debug("typeStr2Type",t),"=="===t)?"thick":"normal"}function M(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function P(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function Y(t){return t.includes("==")?"thick":"normal"}function F(t){return t.includes(".-")?"dotted":"solid"}(0,l.p)(R,"typeStr2Type"),(0,l.p)(A,"edgeTypeStr2Type"),(0,l.p)(M,"edgeStrToEdgeData"),(0,l.p)(P,"edgeStrToEdgeStartData"),(0,l.p)(Y,"edgeStrToThickness"),(0,l.p)(F,"edgeStrToPattern");var W=0,U=(0,l.p)(()=>(W++,"id-"+Math.random().toString(36).substr(2,12)+"-"+W),"generateId"),X=(0,l.p)(t=>{z.children=t,I(t,z),O=z.children},"setHierarchy"),j=(0,l.p)(t=>{let e=m.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),K=(0,l.p)(()=>[...m.values()],"getBlocksFlat"),H=(0,l.p)(()=>O||[],"getBlocks"),q=(0,l.p)(()=>k,"getEdges"),Z=(0,l.p)(t=>m.get(t),"getBlock"),J=(0,l.p)(t=>{m.set(t.id,t)},"setBlock"),G=(0,l.p)(t=>{D=t},"setDiagramId"),Q=(0,l.p)(()=>D,"getDiagramId"),V=(0,l.p)(()=>l.d,"getLogger"),tt=(0,l.p)(function(){return $},"getClasses"),te={getConfig:(0,l.p)(()=>(0,n.N)().block,"getConfig"),typeStr2Type:R,edgeTypeStr2Type:A,edgeStrToEdgeData:M,edgeStrToEdgeStartData:P,edgeStrToThickness:Y,edgeStrToPattern:F,getLogger:V,getBlocksFlat:K,getBlocks:H,getEdges:q,setHierarchy:X,getBlock:Z,setBlock:J,getColumns:j,getClasses:tt,clear:B,generateId:U,setDiagramId:G,getDiagramId:Q},tr=(0,l.p)((t,e)=>{let r=p.f,a=r(t,"r"),i=r(t,"g"),s=r(t,"b");return u.f(a,i,s,e)},"fade"),ta=(0,l.p)(t=>`.label {
2
+ font-family: ${t.fontFamily};
3
+ color: ${t.nodeTextColor||t.textColor};
4
+ }
5
+ .cluster-label text {
6
+ fill: ${t.titleColor};
7
+ }
8
+ .cluster-label span,p {
9
+ color: ${t.titleColor};
10
+ }
11
+
12
+
13
+
14
+ .label text,span,p {
15
+ fill: ${t.nodeTextColor||t.textColor};
16
+ color: ${t.nodeTextColor||t.textColor};
17
+ }
18
+
19
+ .node rect,
20
+ .node circle,
21
+ .node ellipse,
22
+ .node polygon,
23
+ .node path {
24
+ fill: ${t.mainBkg};
25
+ stroke: ${t.nodeBorder};
26
+ stroke-width: 1px;
27
+ }
28
+ .flowchart-label text {
29
+ text-anchor: middle;
30
+ }
31
+ // .flowchart-label .text-outer-tspan {
32
+ // text-anchor: middle;
33
+ // }
34
+ // .flowchart-label .text-inner-tspan {
35
+ // text-anchor: start;
36
+ // }
37
+
38
+ .node .label {
39
+ text-align: center;
40
+ }
41
+ .node.clickable {
42
+ cursor: pointer;
43
+ }
44
+
45
+ .arrowheadPath {
46
+ fill: ${t.arrowheadColor};
47
+ }
48
+
49
+ .edgePath .path {
50
+ stroke: ${t.lineColor};
51
+ stroke-width: 2.0px;
52
+ }
53
+
54
+ .flowchart-link {
55
+ stroke: ${t.lineColor};
56
+ fill: none;
57
+ }
58
+
59
+ .edgeLabel {
60
+ background-color: ${t.edgeLabelBackground};
61
+ /*
62
+ * This is for backward compatibility with existing code that didn't
63
+ * add a \`<p>\` around edge labels.
64
+ *
65
+ * TODO: We should probably remove this in a future release.
66
+ */
67
+ p {
68
+ margin: 0;
69
+ padding: 0;
70
+ display: inline;
71
+ }
72
+ rect {
73
+ opacity: 0.5;
74
+ background-color: ${t.edgeLabelBackground};
75
+ fill: ${t.edgeLabelBackground};
76
+ }
77
+ text-align: center;
78
+ }
79
+
80
+ /* For html labels only */
81
+ .labelBkg {
82
+ background-color: ${t.edgeLabelBackground};
83
+ }
84
+
85
+ .node .cluster {
86
+ // fill: ${tr(t.mainBkg,.5)};
87
+ fill: ${tr(t.clusterBkg,.5)};
88
+ stroke: ${tr(t.clusterBorder,.2)};
89
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
90
+ stroke-width: 1px;
91
+ }
92
+
93
+ .cluster text {
94
+ fill: ${t.titleColor};
95
+ }
96
+
97
+ .cluster span,p {
98
+ color: ${t.titleColor};
99
+ }
100
+ /* .cluster div {
101
+ color: ${t.titleColor};
102
+ } */
103
+
104
+ div.mermaidTooltip {
105
+ position: absolute;
106
+ text-align: center;
107
+ max-width: 200px;
108
+ padding: 2px;
109
+ font-family: ${t.fontFamily};
110
+ font-size: 12px;
111
+ background: ${t.tertiaryColor};
112
+ border: 1px solid ${t.border2};
113
+ border-radius: 2px;
114
+ pointer-events: none;
115
+ z-index: 100;
116
+ }
117
+
118
+ .flowchartTitleText {
119
+ text-anchor: middle;
120
+ font-size: 18px;
121
+ fill: ${t.textColor};
122
+ }
123
+ ${(0,e.f)()}
124
+ `,"getStyles"),ti=(0,l.p)((t,e,r,a)=>{e.forEach(e=>{tg[e](t,r,a)})},"insertMarkers"),ts=(0,l.p)((t,e,r)=>{l.d.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),tn=(0,l.p)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),tl=(0,l.p)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),to=(0,l.p)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),td=(0,l.p)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),tc=(0,l.p)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),th=(0,l.p)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),tg={extension:ts,composition:tn,aggregation:tl,dependency:to,lollipop:td,point:tc,circle:th,cross:(0,l.p)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:(0,l.p)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb")},tp=(0,n.z)()?.block?.padding??8;function tu(t,e){if(0===t||!Number.isInteger(t))throw Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw Error("Position must be a non-negative integer."+e);if(t<0)return{px:e,py:0};if(1===t)return{px:0,py:e};let r=Math.floor(e/t);return{px:e%t,py:r}}(0,l.p)(tu,"calculateBlockPosition");var ty=(0,l.p)(t=>{let e=0,r=0;for(let a of t.children){let{width:t,height:i,x:s,y:n}=a.size??{width:0,height:0,x:0,y:0};if(l.d.debug("getMaxChildSize abc95 child:",a.id,"width:",t,"height:",i,"x:",s,"y:",n,a.type),"space"===a.type)continue;let o=t/(a.widthInColumns??1);o>e&&(e=o),i>r&&(r=i)}return{width:e,height:r}},"getMaxChildSize");function tf(t,e,r=0,a=0){l.d.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",r),t?.size?.width||(t.size={width:r,height:a,x:0,y:0});let i=0,s=0;if(t.children?.length>0){for(let r of t.children)tf(r,e);let n=ty(t);for(let e of(i=n.width,s=n.height,l.d.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",i,s),t.children))e.size&&(l.d.debug(`abc95 Setting size of children of ${t.id} id=${e.id} ${i} ${s} ${JSON.stringify(e.size)}`),e.size.width=i*(e.widthInColumns??1)+tp*((e.widthInColumns??1)-1),e.size.height=s,e.size.x=0,e.size.y=0,l.d.debug(`abc95 updating size of ${t.id} children child:${e.id} maxWidth:${i} maxHeight:${s}`));for(let r of t.children)tf(r,e,i,s);let o=t.columns??-1,d=0;for(let e of t.children)d+=e.widthInColumns??1;let c=t.children.length;o>0&&o<d&&(c=o);let h=Math.ceil(d/c),g=c*(i+tp)+tp,p=h*(s+tp)+tp;if(g<r){l.d.debug(`Detected to small sibling: abc95 ${t.id} siblingWidth ${r} siblingHeight ${a} width ${g}`),g=r,p=a;let e=(r-c*tp-tp)/c,n=(a-h*tp-tp)/h;for(let r of(l.d.debug("Size indata abc88",t.id,"childWidth",e,"maxWidth",i),l.d.debug("Size indata abc88",t.id,"childHeight",n,"maxHeight",s),l.d.debug("Size indata abc88 xSize",c,"padding",tp),t.children))r.size&&(r.size.width=e,r.size.height=n,r.size.x=0,r.size.y=0)}if(l.d.debug(`abc95 (finale calc) ${t.id} xSize ${c} ySize ${h} columns ${o}${t.children.length} width=${Math.max(g,t.size?.width||0)}`),g<(t?.size?.width||0)){g=t?.size?.width||0;let e=o>0?Math.min(t.children.length,o):t.children.length;if(e>0){let r=(g-e*tp-tp)/e;for(let e of(l.d.debug("abc95 (growing to fit) width",t.id,g,t.size?.width,r),t.children))e.size&&(e.size.width=r)}}t.size={width:g,height:p,x:0,y:0}}l.d.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}function tx(t,e){l.d.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);let r=t.columns??-1;if(l.d.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){let a=t?.children[0]?.size?.width??0,i=t.children.length*a+(t.children.length-1)*tp;l.d.debug("widthOfChildren 88",i,"posX");let s=new Map;{let e=0;for(let a of t.children){if(!a.size)continue;let{py:t}=tu(r,e),i=s.get(t)??0;a.size.height>i&&s.set(t,a.size.height);let n=a?.widthInColumns??1;r>0&&(n=Math.min(n,r-e%r)),e+=n}}let n=new Map;{let t=0;for(let e of[...s.keys()].sort((t,e)=>t-e))n.set(e,t),t+=(s.get(e)??0)+tp}let o=0;l.d.debug("abc91 block?.size?.x",t.id,t?.size?.x);let d=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-tp,c=0;for(let a of t.children){if(!a.size)continue;let{width:i,height:h}=a.size,{px:g,py:p}=tu(r,o);if(p!=c&&(c=p,d=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-tp,l.d.debug("New row in layout for block",t.id," and child ",a.id,c)),l.d.debug(`abc89 layout blocks (child) id: ${a.id} Pos: ${o} (px, py) ${g},${p} (${t?.size?.x},${t?.size?.y}) parent: ${t.id} width: ${i}${tp}`),t.size){let e=i/2;a.size.x=d+tp+e,l.d.debug(`abc91 layout blocks (calc) px, pyid:${a.id} startingPos=X${d} new startingPosX${a.size.x} ${e} padding=${tp} width=${i} halfWidth=${e} => x:${a.size.x} y:${a.size.y} ${a.widthInColumns} (width * (child?.w || 1)) / 2 ${i*(a?.widthInColumns??1)/2}`),d=a.size.x+e;let r=n.get(p)??0,o=s.get(p)??h;a.size.y=t.size.y-t.size.height/2+r+o/2+tp,l.d.debug(`abc88 layout blocks (calc) px, pyid:${a.id}startingPosX${d}${tp}${e}=>x:${a.size.x}y:${a.size.y}${a.widthInColumns}(width * (child?.w || 1)) / 2${i*(a?.widthInColumns??1)/2}`)}a.children&&tx(a,e);let u=a?.widthInColumns??1;r>0&&(u=Math.min(u,r-o%r)),o+=u,l.d.debug("abc88 columnsPos",a,o)}}l.d.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}function tb(t,{minX:e,minY:r,maxX:a,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&"root"!==t.id){let{x:s,y:n,width:l,height:o}=t.size;s-l/2<e&&(e=s-l/2),n-o/2<r&&(r=n-o/2),s+l/2>a&&(a=s+l/2),n+o/2>i&&(i=n+o/2)}if(t.children)for(let s of t.children)({minX:e,minY:r,maxX:a,maxY:i}=tb(s,{minX:e,minY:r,maxX:a,maxY:i}));return{minX:e,minY:r,maxX:a,maxY:i}}function tw(t){let e=t.getBlock("root");if(!e)return;tf(e,t,0,0),tx(e,t),l.d.debug("getBlocks",JSON.stringify(e,null,2));let{minX:r,minY:a,maxX:i,maxY:s}=tb(e);return{x:r,y:a,width:i-r,height:s-a}}(0,l.p)(tf,"setBlockSizes"),(0,l.p)(tx,"layoutBlocks"),(0,l.p)(tb,"findBounds"),(0,l.p)(tw,"layout");var tm=(0,l.p)(async(t,e,r,a=!1,s=!1)=>{let l=e||"";"object"==typeof l&&(l=l[0]);let o=(0,n.z)(),d=(0,n.o)(o);return await (0,i.w)(t,l,{style:r,isTitle:a,useHtmlLabels:d,markdown:!1,isNode:s,width:1/0},o)},"createLabel"),tk=(0,l.p)((t,e,r,a,i)=>{e.arrowTypeStart&&tL(t,"start",e.arrowTypeStart,r,a,i),e.arrowTypeEnd&&tL(t,"end",e.arrowTypeEnd,r,a,i)},"addEdgeMarkers"),tS={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},tL=(0,l.p)((t,e,r,a,i,s)=>{let n=tS[r];n?t.attr(`marker-${e}`,`url(${a}#${i}_${s}-${n}${"start"===e?"Start":"End"})`):l.d.warn(`Unknown arrow type: ${r}`)},"addEdgeMarker"),t_={},tE={},t$=(0,l.p)(async(t,e)=>{let a,s=(0,n.z)(),l=(0,n.o)(s),o=t.insert("g").attr("class","edgeLabel"),d=o.insert("g").attr("class","label"),c="markdown"===e.labelType,h=await (0,i.w)(t,e.label,{style:e.labelStyle,useHtmlLabels:l,addSvgBackground:c,isNode:!1,markdown:c,width:c?void 0:1/0},s);d.node().appendChild(h);let g=h.getBBox(),p=g;if(l){let t=h.children[0],e=(0,y.f)(h);p=g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}else{let t=(0,y.f)(h).select("text").node();t&&"function"==typeof t.getBBox&&(p=t.getBBox())}if(d.attr("transform",(0,r.O)(p,l)),t_[e.id]=o,e.width=g.width,e.height=g.height,e.startLabelLeft){let i=t.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),n=await tm(s,e.startLabelLeft,e.labelStyle);a=n;let o=n.getBBox();if(l){let t=n.children[0],e=(0,y.f)(n);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}s.attr("transform",(0,r.O)(o,l)),tE[e.id]||(tE[e.id]={}),tE[e.id].startLeft=i,tD(a,e.startLabelLeft)}if(e.startLabelRight){let i=t.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),n=await tm(s,e.startLabelRight,e.labelStyle);a=n;let o=n.getBBox();if(l){let t=n.children[0],e=(0,y.f)(n);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}s.attr("transform",(0,r.O)(o,l)),tE[e.id]||(tE[e.id]={}),tE[e.id].startRight=i,tD(a,e.startLabelRight)}if(e.endLabelLeft){let i=t.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),n=await tm(i,e.endLabelLeft,e.labelStyle);a=n;let o=n.getBBox();if(l){let t=n.children[0],e=(0,y.f)(n);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}s.attr("transform",(0,r.O)(o,l)),tE[e.id]||(tE[e.id]={}),tE[e.id].endLeft=i,tD(a,e.endLabelLeft)}if(e.endLabelRight){let i=t.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),n=await tm(i,e.endLabelRight,e.labelStyle);a=n;let o=n.getBBox();if(l){let t=n.children[0],e=(0,y.f)(n);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}s.attr("transform",(0,r.O)(o,l)),tE[e.id]||(tE[e.id]={}),tE[e.id].endRight=i,tD(a,e.endLabelRight)}return h},"insertEdgeLabel");function tD(t,e){(0,n.o)((0,n.z)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,l.p)(tD,"setTerminalWidth");var tT=(0,l.p)((t,e)=>{l.d.debug("Moving label abc88 ",t.id,t.label,t_[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,n.z)(),{subGraphTitleTotalMargin:o}=(0,a.i)(i);if(t.label){let a=t_[t.id],i=t.x,n=t.y;if(r){let a=s.u.calcLabelPosition(r);l.d.debug("Moving label "+t.label+" from (",i,",",n,") to (",a.x,",",a.y,") abc88"),e.updatedPath&&(i=a.x,n=a.y)}a.attr("transform",`translate(${i}, ${n+o/2})`)}if(t.startLabelLeft){let e=tE[t.id].startLeft,a=t.x,i=t.y;if(r){let e=s.u.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.startLabelRight){let e=tE[t.id].startRight,a=t.x,i=t.y;if(r){let e=s.u.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.endLabelLeft){let e=tE[t.id].endLeft,a=t.x,i=t.y;if(r){let e=s.u.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.endLabelRight){let e=tE[t.id].endRight,a=t.x,i=t.y;if(r){let e=s.u.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}},"positionEdgeLabel"),tN=(0,l.p)((t,e)=>{let r=t.x,a=t.y,i=Math.abs(e.x-r),s=Math.abs(e.y-a),n=t.width/2,l=t.height/2;return!!(i>=n)||!!(s>=l)},"outsideNode"),tv=(0,l.p)((t,e,r)=>{l.d.debug(`intersection calc abc89:
125
+ outsidePoint: ${JSON.stringify(e)}
126
+ insidePoint : ${JSON.stringify(r)}
127
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let a=t.x,i=t.y,s=Math.abs(a-r.x),n=t.width/2,o=r.x<e.x?n-s:n+s,d=t.height/2,c=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*n>Math.abs(a-e.x)*d){let t=r.y<e.y?e.y-d-i:i-d-e.y;o=h*t/c;let a={x:r.x<e.x?r.x+o:r.x-h+o,y:r.y<e.y?r.y+c-t:r.y-c+t};return 0===o&&(a.x=e.x,a.y=e.y),0===h&&(a.x=e.x),0===c&&(a.y=e.y),l.d.debug(`abc89 topp/bott calc, Q ${c}, q ${t}, R ${h}, r ${o}`,a),a}{let t=c*(o=r.x<e.x?e.x-n-a:a-n-e.x)/h,i=r.x<e.x?r.x+h-o:r.x-h+o,s=r.y<e.y?r.y+t:r.y-t;return l.d.debug(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r ${o}`,{_x:i,_y:s}),0===o&&(i=e.x,s=e.y),0===h&&(i=e.x),0===c&&(s=e.y),{x:i,y:s}}},"intersection"),tC=(0,l.p)((t,e)=>{l.d.debug("abc88 cutPathAtIntersect",t,e);let r=[],a=t[0],i=!1;return t.forEach(t=>{if(tN(e,t)||i)a=t,i||r.push(t);else{let s=tv(e,a,t),n=!1;r.forEach(t=>{n=n||t.x===s.x&&t.y===s.y}),r.some(t=>t.x===s.x&&t.y===s.y)||r.push(s),i=!0}}),r},"cutPathAtIntersect"),tI=(0,l.p)(function(t,e,a,i,s,o,d){let c,h=a.points;l.d.debug("abc88 InsertEdge: edge=",a,"e=",e);let g=!1,p=o.node(e.v);var u=o.node(e.w);u?.intersect&&p?.intersect&&((h=h.slice(1,a.points.length-1)).unshift(p.intersect(h[0])),h.push(u.intersect(h[h.length-1]))),a.toCluster&&(l.d.debug("to cluster abc88",i[a.toCluster]),h=tC(a.points,i[a.toCluster].node),g=!0),a.fromCluster&&(l.d.debug("from cluster abc88",i[a.fromCluster]),h=tC(h.reverse(),i[a.fromCluster].node).reverse(),g=!0);let y=h.filter(t=>!Number.isNaN(t.y)),f=b.f;a.curve&&("graph"===s||"flowchart"===s)&&(f=a.curve);let{x:w,y:m}=(0,r.r)(a),k=(0,x.f)().x(w).y(m).curve(f);switch(a.thickness){case"normal":c="edge-thickness-normal";break;case"thick":case"invisible":c="edge-thickness-thick";break;default:c=""}switch(a.pattern){case"solid":c+=" edge-pattern-solid";break;case"dotted":c+=" edge-pattern-dotted";break;case"dashed":c+=" edge-pattern-dashed"}let S=t.append("path").attr("d",k(y)).attr("id",a.id).attr("class"," "+c+(a.classes?" "+a.classes:"")).attr("style",a.style),L="";((0,n.z)().flowchart.arrowMarkerAbsolute||(0,n.z)().state.arrowMarkerAbsolute)&&(L=(0,n.q)(!0)),tk(S,a,L,d,s);let _={};return g&&(_.updatedPath=h),_.originalPath=a.points,_},"insertEdge"),tO=(0,l.p)(t=>{let e=new Set;for(let r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r)}return e},"expandAndDeduplicateDirections"),tz=(0,l.p)((t,e,r,a)=>{let i=tO(t),s=e.height+2*r.padding,n=s/2,l=a??e.width+2*n+r.padding,o=r.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:l/2,y:2*o},{x:l-n,y:0},{x:l,y:0},{x:l,y:-s/3},{x:l+2*o,y:-s/2},{x:l,y:-2*s/3},{x:l,y:-s},{x:l-n,y:-s},{x:l/2,y:-s-2*o},{x:n,y:-s},{x:0,y:-s},{x:0,y:-2*s/3},{x:-2*o,y:-s/2},{x:0,y:-s/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:n,y:0},{x:l-n,y:0},{x:l,y:-s/2},{x:l-n,y:-s},{x:n,y:-s},{x:0,y:-s/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:l-n,y:-s},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-n},{x:l,y:-s+n},{x:0,y:-s}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-n},{x:0,y:-s+n},{x:l,y:-s}]:i.has("right")&&i.has("left")?[{x:n,y:0},{x:n,y:-o},{x:l-n,y:-o},{x:l-n,y:0},{x:l,y:-s/2},{x:l-n,y:-s},{x:l-n,y:-s+o},{x:n,y:-s+o},{x:n,y:-s},{x:0,y:-s/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-o},{x:n,y:-o},{x:n,y:-s+o},{x:0,y:-s+o},{x:l/2,y:-s},{x:l,y:-s+o},{x:l-n,y:-s+o},{x:l-n,y:-o},{x:l,y:-o}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-n},{x:0,y:-s}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-n},{x:l,y:-s}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:i.has("right")?[{x:n,y:-o},{x:n,y:-o},{x:l-n,y:-o},{x:l-n,y:0},{x:l,y:-s/2},{x:l-n,y:-s},{x:l-n,y:-s+o},{x:n,y:-s+o},{x:n,y:-s+o}]:i.has("left")?[{x:n,y:0},{x:n,y:-o},{x:l-n,y:-o},{x:l-n,y:-s+o},{x:n,y:-s+o},{x:n,y:-s},{x:0,y:-s/2}]:i.has("up")?[{x:n,y:-o},{x:n,y:-s+o},{x:0,y:-s+o},{x:l/2,y:-s},{x:l,y:-s+o},{x:l-n,y:-s+o},{x:l-n,y:-o}]:i.has("down")?[{x:l/2,y:0},{x:0,y:-o},{x:n,y:-o},{x:n,y:-s+o},{x:l-n,y:-s+o},{x:l-n,y:-o},{x:l,y:-o}]:[{x:0,y:0}]},"getArrowPoints");function tB(t,e,r,a){var i=t.x,s=t.y,n=i-a.x,l=s-a.y,o=Math.sqrt(e*e*l*l+r*r*n*n),d=Math.abs(e*r*n/o);a.x<i&&(d=-d);var c=Math.abs(e*r*l/o);return a.y<s&&(c=-c),{x:i+d,y:s+c}}function tR(t,e,r){return tB(t,e,e,r)}function tA(t,e,r,a){var i,s,n,l,o,d,c,h,g,p,u,y,f;if(i=e.y-t.y,n=t.x-e.x,o=e.x*t.y-t.x*e.y,g=i*r.x+n*r.y+o,p=i*a.x+n*a.y+o,!(0!==g&&0!==p&&tM(g,p))){if((s=a.y-r.y,l=r.x-a.x,d=a.x*r.y-r.x*a.y,c=s*t.x+l*t.y+d,h=s*e.x+l*e.y+d,!(0!==c&&0!==h&&tM(c,h)))&&0!=(u=i*l-s*n))return y=Math.abs(u/2),{x:(f=n*d-l*o)<0?(f-y)/u:(f+y)/u,y:(f=s*o-i*d)<0?(f-y)/u:(f+y)/u}}}function tM(t,e){return t*e>0}function tP(t,e,r){var a=t.x,i=t.y,s=[],n=1/0,l=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),l=Math.min(l,t.y)}):(n=Math.min(n,e.x),l=Math.min(l,e.y));for(var o=a-t.width/2-n,d=i-t.height/2-l,c=0;c<e.length;c++){var h=e[c],g=e[c<e.length-1?c+1:0],p=tA(t,r,{x:o+h.x,y:d+h.y},{x:o+g.x,y:d+g.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort(function(t,e){var a=t.x-r.x,i=t.y-r.y,s=Math.sqrt(a*a+i*i),n=e.x-r.x,l=e.y-r.y,o=Math.sqrt(n*n+l*l);return s<o?-1:+(s!==o)}),s[0]):t}(0,l.p)(function(t,e){return t.intersect(e)},"intersectNode"),(0,l.p)(tB,"intersectEllipse"),(0,l.p)(tR,"intersectCircle"),(0,l.p)(tA,"intersectLine"),(0,l.p)(tM,"sameSign"),(0,l.p)(tP,"intersectPolygon");var tY=(0,l.p)((t,e)=>{var r,a,i=t.x,s=t.y,n=e.x-i,l=e.y-s,o=t.width/2,d=t.height/2;return Math.abs(l)*o>Math.abs(n)*d?(l<0&&(d=-d),r=0===l?0:d*n/l,a=d):(n<0&&(o=-o),r=o,a=0===n?0:o*l/n),{x:i+r,y:s+a}},"intersectRect"),tF=(0,l.p)(async(t,e,r,l)=>{let o,d,c=(0,n.z)(),h=e.useHtmlLabels||(0,n.o)(c),g=t.insert("g").attr("class",r||"node default").attr("id",e.domId||e.id),p=g.insert("g").attr("class","label").attr("style",e.labelStyle);o=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];let u=(d="markdown"===e.labelType?(0,i.w)(p,(0,n.w)((0,s.Q)(o),c),{useHtmlLabels:h,width:e.width||c.flowchart.wrappingWidth,classes:"markdown-node-label"},c):await tm(p,(0,n.w)((0,s.Q)(o),c),e.labelStyle,!1,l)).getBBox(),f=e.padding/2;if((0,n.o)(c)){let t=d.children[0],e=(0,y.f)(d);await (0,a.n)(t,o),u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}return h?p.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):p.attr("transform","translate(0, "+-u.height/2+")"),e.centerLabel&&p.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),p.insert("rect",":first-child"),{shapeSvg:g,bbox:u,halfPadding:f,label:p}},"labelHelper"),tW=(0,l.p)((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function tU(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,l.p)(tU,"insertPolygonShape");var tX=(0,l.p)(async(t,e)=>{e.useHtmlLabels||(0,n.o)((0,n.z)())||(e.centerLabel=!0);let{shapeSvg:r,bbox:a,halfPadding:i}=await tF(t,e,"node "+e.classes,!0);l.d.info("Classes = ",e.classes);let s=r.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-a.width/2-i).attr("y",-a.height/2-i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),tW(e,s),e.intersect=function(t){return tY(e,t)},r},"note"),tj=(0,l.p)(t=>t?" "+t:"","formatClass"),tK=(0,l.p)((t,e)=>`${e||"node default"}${tj(t.classes)} ${tj(t.class)}`,"getClassesFromNode"),tH=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.width+e.padding+(a.height+e.padding),s=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];l.d.info("Question main (Circle)");let n=tU(r,i,i,s);return n.attr("style",e.style),tW(e,n),e.intersect=function(t){return l.d.warn("Intersect called"),tP(e,s,t)},r},"question"),tq=(0,l.p)((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(t){return t.x+","+t.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return tR(e,14,t)},r},"choice"),tZ=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=e.positioned?e.height:a.height+e.padding,s=i/4,n=e.positioned?e.width:a.width+2*s+e.padding,l=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-i/2},{x:n-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],o=tU(r,n,i,l);return o.attr("style",e.style),tW(e,o),e.intersect=function(t){return tP(e,l,t)},r},"hexagon"),tJ=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,void 0,!0),i=a.height+2*e.padding,s=i/2,n=a.width+2*s+e.padding,l=e.positioned&&(e.widthInColumns??1)>1&&e.width>n?e.width:n,o=tz(e.directions,a,e,l),d=tU(r,l,i,o);return d.attr("style",e.style),tW(e,d),e.intersect=function(t){return tP(e,o,t)},r},"block_arrow"),tG=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-s/2,y:0},{x:i,y:0},{x:i,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return tU(r,i,s,n).attr("style",e.style),e.width=i+s,e.height=s,e.intersect=function(t){return tP(e,n,t)},r},"rect_left_inv_arrow"),tQ=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-2*s/6,y:0},{x:i-s/6,y:0},{x:i+2*s/6,y:-s},{x:s/6,y:-s}],l=tU(r,i,s,n);return l.attr("style",e.style),tW(e,l),e.intersect=function(t){return tP(e,n,t)},r},"lean_right"),tV=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:2*s/6,y:0},{x:i+s/6,y:0},{x:i-2*s/6,y:-s},{x:-s/6,y:-s}],l=tU(r,i,s,n);return l.attr("style",e.style),tW(e,l),e.intersect=function(t){return tP(e,n,t)},r},"lean_left"),t0=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-2*s/6,y:0},{x:i+2*s/6,y:0},{x:i-s/6,y:-s},{x:s/6,y:-s}],l=tU(r,i,s,n);return l.attr("style",e.style),tW(e,l),e.intersect=function(t){return tP(e,n,t)},r},"trapezoid"),t1=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:s/6,y:0},{x:i-s/6,y:0},{x:i+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=tU(r,i,s,n);return l.attr("style",e.style),tW(e,l),e.intersect=function(t){return tP(e,n,t)},r},"inv_trapezoid"),t2=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:0,y:0},{x:i+s/2,y:0},{x:i,y:-s/2},{x:i+s/2,y:-s},{x:0,y:-s}],l=tU(r,i,s,n);return l.attr("style",e.style),tW(e,l),e.intersect=function(t){return tP(e,n,t)},r},"rect_right_inv_arrow"),t3=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.width+e.padding,s=i/2,n=s/(2.5+i/50),l=a.height+n+e.padding,o="M 0,"+n+" a "+s+","+n+" 0,0,0 "+i+" 0 a "+s+","+n+" 0,0,0 "+-i+" 0 l 0,"+l+" a "+s+","+n+" 0,0,0 "+i+" 0 l 0,"+-l,d=r.attr("label-offset-y",n).insert("path",":first-child").attr("style",e.style).attr("d",o).attr("transform","translate("+-i/2+","+-(l/2+n)+")");return tW(e,d),e.intersect=function(t){let r=tY(e,t),a=r.x-e.x;if(0!=s&&(Math.abs(a)<e.width/2||Math.abs(a)==e.width/2&&Math.abs(r.y-e.y)>e.height/2-n)){let i=n*n*(1-a*a/(s*s));0!=i&&(i=Math.sqrt(i)),i=n-i,t.y-e.y>0&&(i=-i),r.y+=i}return r},r},"cylinder"),t4=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a,halfPadding:i}=await tF(t,e,"node "+e.classes+" "+e.class,!0),s=r.insert("rect",":first-child"),n=e.positioned?e.width:a.width+e.padding,o=e.positioned?e.height:a.height+e.padding,d=e.positioned?-n/2:-a.width/2-i,c=e.positioned?-o/2:-a.height/2-i;if(s.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",d).attr("y",c).attr("width",n).attr("height",o),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(t9(s,e.props.borders,n,o),t.delete("borders")),t.forEach(t=>{l.d.warn(`Unknown node property ${t}`)})}return tW(e,s),e.intersect=function(t){return tY(e,t)},r},"rect"),t8=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a,halfPadding:i}=await tF(t,e,"node "+e.classes,!0),s=r.insert("rect",":first-child"),n=e.positioned?e.width:a.width+e.padding,o=e.positioned?e.height:a.height+e.padding,d=e.positioned?-n/2:-a.width/2-i,c=e.positioned?-o/2:-a.height/2-i;if(s.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",d).attr("y",c).attr("width",n).attr("height",o),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(t9(s,e.props.borders,n,o),t.delete("borders")),t.forEach(t=>{l.d.warn(`Unknown node property ${t}`)})}return tW(e,s),e.intersect=function(t){return tY(e,t)},r},"composite"),t5=(0,l.p)(async(t,e)=>{let{shapeSvg:r}=await tF(t,e,"label",!0);l.d.trace("Classes = ",e.class);let a=r.insert("rect",":first-child");if(a.attr("width",0).attr("height",0),r.attr("class","label edgeLabel"),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(t9(a,e.props.borders,0,0),t.delete("borders")),t.forEach(t=>{l.d.warn(`Unknown node property ${t}`)})}return tW(e,a),e.intersect=function(t){return tY(e,t)},r},"labelRect");function t9(t,e,r,a){let i=[],s=(0,l.p)(t=>{i.push(t,0)},"addBorder"),n=(0,l.p)(t=>{i.push(0,t)},"skipBorder");e.includes("t")?(l.d.debug("add top border"),s(r)):n(r),e.includes("r")?(l.d.debug("add right border"),s(a)):n(a),e.includes("b")?(l.d.debug("add bottom border"),s(r)):n(r),e.includes("l")?(l.d.debug("add left border"),s(a)):n(a),t.attr("stroke-dasharray",i.join(" "))}(0,l.p)(t9,"applyNodePropertyBorders");var t6=(0,l.p)(async(t,e)=>{let r;r=e.classes?"node "+e.classes:"node default";let a=t.insert("g").attr("class",r).attr("id",e.domId||e.id),i=a.insert("rect",":first-child"),s=a.insert("line"),o=a.insert("g").attr("class","label"),d=e.labelText.flat?e.labelText.flat():e.labelText,c="";c="object"==typeof d?d[0]:d,l.d.info("Label text abc79",c,d,"object"==typeof d);let h=await tm(o,c,e.labelStyle,!0,!0),g={width:0,height:0};if((0,n.o)((0,n.z)())){let t=h.children[0],e=(0,y.f)(h);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}l.d.info("Text 2",d);let p=d.slice(1,d.length),u=h.getBBox(),f=await tm(o,p.join?p.join("<br/>"):p,e.labelStyle,!0,!0);if((0,n.o)((0,n.z)())){let t=f.children[0],e=(0,y.f)(f);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}let x=e.padding/2;return(0,y.f)(f).attr("transform","translate( "+(g.width>u.width?0:(u.width-g.width)/2)+", "+(u.height+x+5)+")"),(0,y.f)(h).attr("transform","translate( "+(g.width<u.width?0:-(u.width-g.width)/2)+", 0)"),g=o.node().getBBox(),o.attr("transform","translate("+-g.width/2+", "+(-g.height/2-x+3)+")"),i.attr("class","outer title-state").attr("x",-g.width/2-x).attr("y",-g.height/2-x).attr("width",g.width+e.padding).attr("height",g.height+e.padding),s.attr("class","divider").attr("x1",-g.width/2-x).attr("x2",g.width/2+x).attr("y1",-g.height/2-x+u.height+x).attr("y2",-g.height/2-x+u.height+x),tW(e,i),e.intersect=function(t){return tY(e,t)},a},"rectWithTitle"),t7=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.height+e.padding,s=a.width+i/4+e.padding,n=r.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-s/2).attr("y",-i/2).attr("width",s).attr("height",i);return tW(e,n),e.intersect=function(t){return tY(e,t)},r},"stadium"),et=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a,halfPadding:i}=await tF(t,e,tK(e,void 0),!0),s=r.insert("circle",":first-child");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),l.d.info("Circle main"),tW(e,s),e.intersect=function(t){return l.d.info("Circle intersect",e,a.width/2+i,t),tR(e,a.width/2+i,t)},r},"circle"),ee=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a,halfPadding:i}=await tF(t,e,tK(e,void 0),!0),s=r.insert("g",":first-child"),n=s.insert("circle"),o=s.insert("circle");return s.attr("class",e.class),n.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+i+5).attr("width",a.width+e.padding+10).attr("height",a.height+e.padding+10),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),l.d.info("DoubleCircle main"),tW(e,n),e.intersect=function(t){return l.d.info("DoubleCircle intersect",e,a.width/2+i+5,t),tR(e,a.width/2+i+5,t)},r},"doublecircle"),er=(0,l.p)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tF(t,e,tK(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:0,y:0},{x:i,y:0},{x:i,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=tU(r,i,s,n);return l.attr("style",e.style),tW(e,l),e.intersect=function(t){return tP(e,n,t)},r},"subroutine"),ea=(0,l.p)((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),tW(e,a),e.intersect=function(t){return tR(e,7,t)},r},"start"),ei=(0,l.p)((t,e,r)=>{let a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=70,s=10;return"LR"===r&&(i=10,s=70),tW(e,a.append("rect").attr("x",-1*i/2).attr("y",-1*s/2).attr("width",i).attr("height",s).attr("class","fork-join")),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return tY(e,t)},a},"forkJoin"),es={rhombus:tH,composite:t8,question:tH,rect:t4,labelRect:t5,rectWithTitle:t6,choice:tq,circle:et,doublecircle:ee,stadium:t7,hexagon:tZ,block_arrow:tJ,rect_left_inv_arrow:tG,lean_right:tQ,lean_left:tV,trapezoid:t0,inv_trapezoid:t1,rect_right_inv_arrow:t2,cylinder:t3,start:ea,end:(0,l.p)((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),tW(e,i),e.intersect=function(t){return tR(e,7,t)},r},"end"),note:tX,subroutine:er,fork:ei,join:ei,class_box:(0,l.p)(async(t,e)=>{let r,a=e.padding/2;r=e.classes?"node "+e.classes:"node default";let i=t.insert("g").attr("class",r).attr("id",e.domId||e.id),s=i.insert("rect",":first-child"),l=i.insert("line"),o=i.insert("line"),d=0,c=4,h=i.insert("g").attr("class","label"),g=0,p=e.classData.annotations?.[0],u=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",f=await tm(h,u,e.labelStyle,!0,!0),x=f.getBBox();if((0,n.o)((0,n.z)())){let t=f.children[0],e=(0,y.f)(f);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}e.classData.annotations[0]&&(c+=x.height+4,d+=x.width);let b=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&((0,n.o)((0,n.z)())?b+="&lt;"+e.classData.type+"&gt;":b+="<"+e.classData.type+">");let w=await tm(h,b,e.labelStyle,!0,!0);(0,y.f)(w).attr("class","classTitle");let m=w.getBBox();if((0,n.o)((0,n.z)())){let t=w.children[0],e=(0,y.f)(w);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}c+=m.height+4,m.width>d&&(d=m.width);let k=[];e.classData.members.forEach(async t=>{let r=t.getDisplayDetails(),a=r.displayText;(0,n.o)((0,n.z)())&&(a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let i=await tm(h,a,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0),s=i.getBBox();if((0,n.o)((0,n.z)())){let t=i.children[0],e=(0,y.f)(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s.width>d&&(d=s.width),c+=s.height+4,k.push(i)}),c+=8;let S=[];if(e.classData.methods.forEach(async t=>{let r=t.getDisplayDetails(),a=r.displayText;(0,n.o)((0,n.z)())&&(a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let i=await tm(h,a,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0),s=i.getBBox();if((0,n.o)((0,n.z)())){let t=i.children[0],e=(0,y.f)(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s.width>d&&(d=s.width),c+=s.height+4,S.push(i)}),c+=8,p){let t=(d-x.width)/2;(0,y.f)(f).attr("transform","translate( "+(-1*d/2+t)+", "+-1*c/2+")"),g=x.height+4}let L=(d-m.width)/2;return(0,y.f)(w).attr("transform","translate( "+(-1*d/2+L)+", "+(-1*c/2+g)+")"),g+=m.height+4,l.attr("class","divider").attr("x1",-d/2-a).attr("x2",d/2+a).attr("y1",-c/2-a+8+g).attr("y2",-c/2-a+8+g),g+=8,k.forEach(t=>{(0,y.f)(t).attr("transform","translate( "+-d/2+", "+(-1*c/2+g+4)+")");let e=t?.getBBox();g+=(e?.height??0)+4}),g+=8,o.attr("class","divider").attr("x1",-d/2-a).attr("x2",d/2+a).attr("y1",-c/2-a+8+g).attr("y2",-c/2-a+8+g),g+=8,S.forEach(t=>{(0,y.f)(t).attr("transform","translate( "+-d/2+", "+(-1*c/2+g)+")");let e=t?.getBBox();g+=(e?.height??0)+4}),s.attr("style",e.style).attr("class","outer title-state").attr("x",-d/2-a).attr("y",-(c/2)-a).attr("width",d+e.padding).attr("height",c+e.padding),tW(e,s),e.intersect=function(t){return tY(e,t)},i},"class_box")},en={},el=(0,l.p)(async(t,e,r)=>{let a,i;if(e.link){let s;"sandbox"===(0,n.z)().securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s),i=await es[e.shape](a,e,r)}else a=i=await es[e.shape](t,e,r);return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),en[e.id]=a,e.haveCallback&&en[e.id].attr("class",en[e.id].attr("class")+" clickable"),a},"insertNode"),eo=(0,l.p)(t=>{let e=en[t.id];l.d.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode");function ed(t,e,r=!1){let a,i="default";(t?.classes?.length||0)>0&&(i=(t?.classes??[]).join(" ")),i+=" flowchart-label";let l=0,o="";switch(t.type){case"round":l=5,o="rect";break;case"composite":l=0,o="composite",a=0;break;case"square":case"group":default:o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"block_arrow":o="block_arrow";break;case"odd":case"rect_left_inv_arrow":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"doublecircle":o="doublecircle"}let d=(0,s.y)(t?.styles??[]),c=t.label,h=t.size??{width:0,height:0,x:0,y:0},g=e.getDiagramId();return{labelStyle:d.labelStyle,shape:o,labelText:c,rx:l,ry:l,class:i,style:d.style,id:t.id,domId:g?`${g}-${t.id}`:t.id,directions:t.directions,width:h.width,height:h.height,x:h.x,y:h.y,positioned:r,intersect:void 0,type:t.type,padding:a??(0,n.N)()?.block?.padding??0,widthInColumns:t.widthInColumns??1}}async function ec(t,e,r){let a=ed(e,r,!1);if("group"===a.type)return;let i=(0,n.N)(),s=await el(t,a,{config:i}),l=s.node().getBBox(),o=r.getBlock(a.id);o.size={width:l.width,height:l.height,x:0,y:0,node:s},r.setBlock(o),s.remove()}async function eh(t,e,r){let a=ed(e,r,!0);if("space"!==r.getBlock(a.id).type){let r=(0,n.N)();await el(t,a,{config:r}),e.intersect=a?.intersect,eo(a)}}async function eg(t,e,r,a){for(let i of e)await a(t,i,r),i.children&&await eg(t,i.children,r,a)}async function ep(t,e,r){await eg(t,e,r,ec)}async function eu(t,e,r){await eg(t,e,r,eh)}async function ey(t,e,r,a,i){let s=new f.f({multigraph:!0,compound:!0});for(let t of(s.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8}),r))t.size&&s.setNode(t.id,{width:t.size.width,height:t.size.height,intersect:t.intersect});for(let r of e)if(r.start&&r.end){let e=a.getBlock(r.start),n=a.getBlock(r.end);if(e?.size&&n?.size){let a=e.size,l=n.size,o=[{x:a.x,y:a.y},{x:a.x+(l.x-a.x)/2,y:a.y+(l.y-a.y)/2},{x:l.x,y:l.y}],d=i?`${i}-${r.id}`:r.id,c="thick"===r.thickness?"edge-thickness-thick":"edge-thickness-normal",h="dotted"===r.pattern?"edge-pattern-dotted":"edge-pattern-solid",g=`${c} ${h} flowchart-link LS-a1 LE-b1`;tI(t,{v:r.start,w:r.end,name:d},{...r,id:d,arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:o,classes:g},void 0,"block",s,i),r.label&&(await t$(t,{...r,label:r.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:o,classes:g}),tT({...r,x:o[1].x,y:o[1].y},{originalPath:o}))}}}(0,l.p)(ed,"getNodeFromBlock"),(0,l.p)(ec,"calculateBlockSize"),(0,l.p)(eh,"insertBlockPositioned"),(0,l.p)(eg,"performOperations"),(0,l.p)(ep,"calculateBlockSizes"),(0,l.p)(eu,"insertBlocks"),(0,l.p)(ey,"insertEdges");var ef=(0,l.p)(function(t,e){return e.db.getClasses()},"getClasses"),ex=(0,l.p)(async function(t,e,r,a){let i,{securityLevel:s,block:o}=(0,n.N)(),d=a.db;d.setDiagramId(e),"sandbox"===s&&(i=(0,y.f)("#i"+e));let c="sandbox"===s?(0,y.f)(i.nodes()[0].contentDocument.body):(0,y.f)("body"),h="sandbox"===s?c.select(`[id="${e}"]`):(0,y.f)(`[id="${e}"]`);ti(h,["point","circle","cross"],a.type,e);let g=d.getBlocks(),p=d.getBlocksFlat(),u=d.getEdges(),f=h.insert("g").attr("class","block");await ep(f,g,d);let x=tw(d);if(await eu(f,g,d),await ey(f,u,p,d,e),x){let t=Math.max(1,Math.round(.125*(x.width/x.height))),e=x.height+t+10,r=x.width+10,{useMaxWidth:a}=o;(0,n.m)(h,e,r,!!a),l.d.debug("Here Bounds",x,x),h.attr("viewBox",`${x.x-5} ${x.y-5} ${x.width+10} ${x.height+10}`)}},"draw");t.s(["diagram",0,{parser:w,db:te,renderer:{draw:ex,getClasses:ef},styles:ta}],638987)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,311015,e=>{"use strict";var t=e.i(974265),s=e.i(893976),a=e.i(65642),r=e.i(651023),n=e.i(475254);let l=(0,n.f)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),i=(0,n.f)("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),o=(0,n.f)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var c=e.i(63209);let d="stg:h-10 stg:w-10";e.s(["f",0,function({variant:e,resourceLabel:n,icon:g,title:u,description:m,errorMessage:x,action:h,children:p,className:f}){let v=function(e){let{variant:t,resourceLabel:s="resources",title:a,description:n,errorMessage:g}=e;return(0,r.useMemo)(()=>{let e=function(e,t){switch(e){case"first-use":return{title:`No ${t} yet`,description:`Create ${"agents"===t?"an agent":`a ${t.replace(/s$/,"")}`} to get started.`};case"zero-results":return{title:"No results found",description:"Try adjusting your search or filters."};case"permission":return{title:`No access to ${t}`,description:"You don't have permission to view these resources. Contact your organization admin."};case"error":return{title:"Something went wrong",description:"We couldn't load this content. Please try again."}}}(t,s);return{title:a??e.title,description:"error"===t&&g?g:n??e.description,defaultIcon:function(e){switch(e){case"first-use":return(0,r.createElement)(l,{className:d});case"zero-results":return(0,r.createElement)(i,{className:d});case"permission":return(0,r.createElement)(o,{className:d});case"error":return(0,r.createElement)(c.f,{className:d})}}(t),role:"error"===t?"alert":"status"}},[t,s,a,n,g])}({variant:e,resourceLabel:n,title:u,description:m,errorMessage:x});return(0,t.jsxs)("div",{role:v.role,className:(0,s.f)("stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-12 stg:text-center",f),children:[(0,t.jsx)("div",{className:"stg:text-muted-foreground-faint",children:g??v.defaultIcon}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("p",{className:"stg:m-0 stg:text-sm stg:font-medium stg:text-muted-foreground",children:v.title}),(0,t.jsx)("p",{className:"stg:m-0 stg:max-w-sm stg:text-xs stg:text-muted-foreground",children:v.description})]}),p?(0,t.jsx)("div",{className:"stg:mt-1",children:p}):h&&(0,t.jsx)(a.f,{variant:"error"===e?"outline":"primary",icon:h.icon,onClick:h.onClick,className:"stg:mt-1",children:h.label})]})}],311015)},476007,e=>{"use strict";var t=e.i(974265),s=e.i(651023),a=e.i(610595),r=e.i(893976);let n={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function l({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,t.jsx)("path",{d:"M8 6v3"}),(0,t.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function i({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,t.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function o({className:e}){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 6l4 4 4-4"})})}function c({className:e}){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 6.5h4v-4"}),(0,t.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}e.s(["f",0,function({error:e,title:d,retry:g,className:u}){let[m,x]=(0,s.useState)(!1);if(!e)return null;let h=(0,a.V)(e),p=(0,a.g)(e),f=(0,a.X)(e),v=(0,a.f)(e);return(0,t.jsx)("div",{role:"alert",className:(0,r.f)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===h||"permission"===h?(0,t.jsx)(i,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,t.jsx)(l,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium",children:d??n[h]}),(0,t.jsx)("p",{className:"stg:m-0 stg:text-destructive stg:text-sm",children:p}),f&&(0,t.jsxs)("div",{className:"stg:pt-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),className:"stg:text-destructive stg:hover:underline stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,t.jsx)(o,{className:(0,r.f)("stg:size-3 stg:transition-transform",m&&"stg:rotate-180")}),"Technical details"]}),m&&(0,t.jsxs)("dl",{className:"stg:text-destructive stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:f.method})]}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:f.path})]})]})]})]}),g&&v&&(0,t.jsxs)("button",{type:"button",onClick:g,className:(0,r.f)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,t.jsx)(c,{className:"stg:size-3"}),"Retry"]})]})})}])},630983,e=>{"use strict";var t=e.i(974265),s=e.i(893976);function a({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6.25"}),(0,t.jsx)("path",{d:"M8 7v4"}),(0,t.jsx)("circle",{cx:"8",cy:"5",r:"0.5",fill:"currentColor",stroke:"none"})]})}e.s(["f",0,function({children:e,className:r}){return(0,t.jsxs)("div",{role:"status",className:(0,s.f)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",r),children:[(0,t.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:e})]})}])},66724,e=>{"use strict";var t=e.i(974265),s=e.i(893976);e.s(["f",0,function({title:e,description:a,actions:r,headingLevel:n=1,headingId:l,className:i}){return(0,t.jsxs)("header",{className:(0,s.f)("stg:flex stg:flex-col stg:gap-1",i),children:[(0,t.jsxs)("div",{className:"stg:flex stg:min-h-8 stg:flex-wrap stg:items-center stg:justify-between stg:gap-x-6 stg:gap-y-2",children:[(0,t.jsx)(1===n?"h1":"h2",{id:l,className:"stg:m-0 stg:text-xl stg:font-semibold stg:tracking-tight stg:text-foreground",children:e}),null!=r&&!1!==r&&(0,t.jsx)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-2",children:r})]}),null!=a&&(0,t.jsx)("p",{className:"stg:m-0 stg:max-w-2xl stg:text-sm stg:text-muted-foreground",children:a})]})}])},252771,e=>{"use strict";var t=e.i(974265),s=e.i(651023),a=e.i(893976),r=e.i(610595),n=e.i(803874),l=e.i(379410),i=e.i(891287),o=e.i(459153),c=e.i(255817),d=e.i(781836);function g({currentSlug:e,rename:n,isRenaming:i,error:o,clearError:c,onRenamed:d,hint:u,label:m="Slug",className:x}){let h=(0,s.useId)(),[p,f]=(0,s.useState)(e),[v,b]=(0,s.useState)(null);(0,s.useEffect)(()=>{f(e),b(null)},[e]);let j=i||null!==v,N=p.trim(),y=N.length>0&&N!==e&&!j,k=(0,s.useCallback)(async()=>{if(y){c();try{let t=await n(N);b(e),d(t)}catch{}}},[y,c,n,N,e,d]);return(0,t.jsxs)("div",{className:(0,a.f)("stg:space-y-1",x),children:[(0,t.jsx)("label",{htmlFor:h,className:"stg:text-2xs stg:font-medium stg:text-muted-foreground stg:uppercase stg:tracking-wider",children:m}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("input",{id:h,type:"text",value:p,onChange:e=>{f(e.target.value),c()},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),k())},disabled:j,spellCheck:!1,autoComplete:"off",className:(0,a.f)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:font-mono stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),(0,t.jsxs)("button",{type:"button",onClick:()=>void k(),disabled:!y,className:(0,a.f)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:border stg:border-input stg:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[j&&(0,t.jsx)(l.f,{size:12}),"Rename"]})]}),o?(0,t.jsx)("p",{className:"stg:text-destructive stg:text-2xs",role:"alert",children:(0,r.g)(o)}):(0,t.jsx)("p",{className:"stg:text-2xs stg:text-muted-foreground",children:u})]})}e.s(["V",0,g,"e",0,function({kind:e,resourceId:a,currentSlug:r,onRenamed:l,fallback:u=null,className:m}){let x=(0,n.f)(a?{kind:e,id:a}:null,"can_delete",{fail:"closed"}),{rename:h,isRenaming:p,error:f,clearError:v}=function(e){let t=(0,c.f)(),[a,r]=(0,s.useState)(!1),[n,l]=(0,s.useState)(null),g=(0,s.useCallback)(()=>l(null),[]),u=(0,s.useCallback)(async(s,a)=>{r(!0),l(null);let n=(0,i.f)(o.I,{resourceId:s,slug:a});try{return await function(e,t,s){switch(t){case"agent":return e.agent.rename(s);case"vault":return e.vault.rename(s);case"routine":return e.routine.rename(s);case"environment":return e.environment.rename(s);case"channel_app":return e.channelapp.rename(s);case"oauth_app":return e.oauthapp.rename(s);case"team":return e.team.rename(s);case"federation_issuer":return e.federationIssuer.rename(s)}}(t,e,n)}catch(e){throw l((0,d.f)(e)),e}finally{r(!1)}},[t,e]);return(0,s.useMemo)(()=>({rename:u,isRenaming:a,error:n,clearError:g}),[u,a,n,g])}(e),b=(0,s.useCallback)(e=>h(a??"",e),[h,a]);return a&&x.allowed?(0,t.jsx)(g,{currentSlug:r,rename:b,isRenaming:p,error:f,clearError:v,onRenamed:l,hint:"The name in links and files. After a rename the old slug keeps working for reading for 30 days; a file that names it must change to the new one.",className:m}):(0,t.jsx)(t.Fragment,{children:u})}],252771)},193251,e=>{"use strict";var t=e.i(974265),s=e.i(311015);e.s(["H",0,"Ask one of them if this organization needs one.","j",0,function({what:e}){return(0,t.jsx)(s.f,{variant:"first-use",title:"No organization selected",description:`Choose an organization to see ${e}.`,className:"stg:rounded-lg stg:border stg:border-dashed stg:border-border"})}])},365785,e=>{"use strict";var t=e.i(974265),s=e.i(651023),a=e.i(893976),r=e.i(311015),n=e.i(630983),l=e.i(66724);e.s(["f",0,function({title:e,description:i,actions:o,unavailable:c,denied:d=!1,children:g,className:u}){let m=(0,s.useId)(),x=!0===d?{title:`Only an admin can open ${e}`,description:"Ask an owner or an admin of this organization."}:d||null,h=!!c||null!==x;return(0,t.jsxs)("section",{"aria-labelledby":m,className:(0,a.f)("stg:flex stg:flex-col stg:gap-6",u),children:[(0,t.jsx)(l.f,{title:e,description:i,actions:h?void 0:o,headingLevel:2,headingId:m}),c?(0,t.jsx)(n.f,{children:c}):null!==x?(0,t.jsx)(r.f,{variant:"permission",title:x.title,description:x.description,className:"stg:rounded-lg stg:border stg:border-border"}):g]})}])},734433,e=>{"use strict";var t=e.i(974265),s=e.i(893976),a=e.i(996675);e.s(["SettingsSkeleton",0,function({label:e="Loading",variant:r="rows",rows:n,className:l}){return"figures"===r?(0,t.jsxs)(a.f,{label:e,className:(0,s.f)("stg:flex stg:flex-col stg:gap-4",l),children:[(0,t.jsx)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-3","aria-hidden":"true",children:Array.from({length:n??3},(e,s)=>(0,t.jsxs)("span",{className:"stg:flex stg:h-20 stg:flex-col stg:justify-center stg:gap-2 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-4",children:[(0,t.jsx)("span",{className:"stg:h-2.5 stg:w-20 stg:animate-pulse stg:rounded stg:bg-muted-subtle"}),(0,t.jsx)("span",{className:"stg:h-5 stg:w-24 stg:animate-pulse stg:rounded stg:bg-muted"})]},s))}),(0,t.jsx)("span",{className:"stg:block stg:h-40 stg:animate-pulse stg:rounded-lg stg:border stg:border-border stg:bg-card","aria-hidden":"true"})]}):(0,t.jsx)(a.f,{label:e,className:(0,s.f)("stg:overflow-hidden stg:rounded-lg stg:border stg:border-border stg:bg-card",l),children:(0,t.jsx)("ul",{className:"stg:m-0 stg:list-none stg:divide-y stg:divide-border stg:p-0","aria-hidden":"true",children:Array.from({length:n??4},(e,s)=>(0,t.jsxs)("li",{className:"stg:flex stg:items-center stg:gap-3 stg:px-4 stg:py-3",children:[(0,t.jsx)("span",{className:"stg:size-8 stg:shrink-0 stg:animate-pulse stg:rounded-full stg:bg-muted"}),(0,t.jsxs)("span",{className:"stg:flex stg:flex-1 stg:flex-col stg:gap-1.5",children:[(0,t.jsx)("span",{className:"stg:h-3 stg:w-40 stg:max-w-full stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("span",{className:"stg:h-2.5 stg:w-64 stg:max-w-full stg:animate-pulse stg:rounded stg:bg-muted-subtle"})]}),(0,t.jsx)("span",{className:"stg:h-5 stg:w-14 stg:shrink-0 stg:animate-pulse stg:rounded-full stg:bg-muted"})]},s))})})}])},355277,e=>{"use strict";var t=e.i(974265),s=e.i(651023),a=e.i(610595),r=e.i(231118),n=e.i(237915),l=e.i(65642),i=e.i(476007),o=e.i(266066),c=e.i(297629),d=e.i(893976),g=e.i(379410),u=e.i(231666),m=e.i(255817),x=e.i(781836);function h({org:e,onCreated:r,onCancel:n,className:l}){let i=(0,s.useId)(),{create:o,isCreating:c,error:p,clearError:f}=function(){let e=(0,m.f)(),[t,a]=(0,s.useState)(!1),[r,n]=(0,s.useState)(null),l=(0,s.useCallback)(()=>n(null),[]);return{create:(0,s.useCallback)(async t=>{a(!0),n(null);try{return await e.vault.create({name:t.name,org:t.org,...t.description?{description:t.description}:{},...t.externalId?{externalId:t.externalId}:{}})}catch(e){throw n((0,x.f)(e)),e}finally{a(!1)}},[e]),isCreating:t,error:r,clearError:l}}(),[v,b]=(0,s.useState)(""),[j,N]=(0,s.useState)(""),[y,k]=(0,s.useState)(""),C=v.trim(),w=""!==C&&!c,S=(0,s.useCallback)(async t=>{if(t.preventDefault(),w)try{let t=await o({org:e,name:C,description:j.trim()||void 0,externalId:y.trim()||void 0});b(""),N(""),k(""),r?.(t)}catch{}},[w,o,e,C,j,y,r]);return(0,t.jsxs)("form",{onSubmit:S,className:(0,d.f)("stg:space-y-3",l),children:[(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:`${i}-name`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Name"}),(0,t.jsx)("input",{id:`${i}-name`,value:v,onChange:e=>{b(e.target.value),f()},placeholder:"Ledger keys",disabled:c,className:u.c,autoFocus:!0})]}),(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsxs)("label",{htmlFor:`${i}-description`,className:"stg:text-xs stg:font-medium stg:text-muted-foreground",children:["Description ",(0,t.jsx)("span",{className:"stg:text-muted-foreground-subtle",children:"(optional)"})]}),(0,t.jsx)("input",{id:`${i}-description`,value:j,onChange:e=>N(e.target.value),placeholder:"The finance team's ledger key",disabled:c,className:u.c})]}),(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsxs)("label",{htmlFor:`${i}-external`,className:"stg:text-xs stg:font-medium stg:text-muted-foreground",children:["External id ",(0,t.jsx)("span",{className:"stg:text-muted-foreground-subtle",children:"(optional, your own id for it)"})]}),(0,t.jsx)("input",{id:`${i}-external`,value:y,onChange:e=>k(e.target.value),placeholder:"customer-1234",disabled:c,className:u.c})]}),p&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-2xs",role:"alert",children:(0,a.g)(p)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsxs)("button",{type:"submit",disabled:!w,className:u.h,children:[c&&(0,t.jsx)(g.f,{}),"Create vault"]}),n&&(0,t.jsx)("button",{type:"button",onClick:n,disabled:c,className:u.m,children:"Cancel"})]})]})}var p=e.i(459058),f=e.i(17616),v=e.i(869803),b=e.i(320320);let j=/^[A-Za-z_][A-Za-z0-9_]*$/;function N(e){return e?`Saved ${(0,f.S)(e).toLocaleDateString()}`:""}function y({vault:e,onSetSecrets:n,onRemoveSecrets:l,onSetConnection:i,onRemoveConnections:o,isMutating:c=!1,readOnly:g=!1,connectionAction:u,className:m}){let[x,h]=(0,s.useState)(null),p=(0,s.useCallback)(async e=>{h(null);try{return await e(),!0}catch(e){return h((0,a.g)(e)),!1}},[]),f=(0,s.useMemo)(()=>Object.entries(e?.spec?.secrets??{}).sort(([e],[t])=>e.localeCompare(t)),[e]),b=(0,s.useMemo)(()=>Object.entries(e?.spec?.connections??{}).sort(([e],[t])=>e.localeCompare(t)),[e]);return(0,t.jsxs)("div",{className:(0,d.f)("stg:space-y-5",m),children:[(0,t.jsxs)("section",{"aria-label":"Secrets",className:"stg:space-y-2",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:"Secrets"}),(0,t.jsx)("p",{className:"stg:text-2xs stg:text-muted-foreground",children:"Matched by name, such as OPENAI_API_KEY. Saved values are never shown again."}),0===f.length?(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"No secrets saved."}):(0,t.jsx)("ul",{className:(0,d.f)(v.J,"stg:space-y-1.5"),children:f.map(([e,s])=>(0,t.jsx)(k,{title:e,mono:!0,detail:[s.description,N(s.savedAt)].filter(Boolean).join(" · "),readOnly:g,disabled:c,replaceLabel:`New value for ${e}`,onReplace:t=>p(()=>n({[e]:{value:t,description:s.description}})),onRemove:()=>p(()=>l([e]))},e))}),!g&&(0,t.jsx)(C,{disabled:c,onAdd:(e,t,s)=>p(()=>n({[e]:{value:t,description:s}}))})]}),(0,t.jsxs)("section",{"aria-label":"Logins",className:"stg:space-y-2",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:"Logins"}),(0,t.jsx)("p",{className:"stg:text-2xs stg:text-muted-foreground",children:"Matched by the address of the tool or Git host they are for, such as https://mcp.linear.app/mcp or github.com."}),0===b.length?(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"No logins saved."}):(0,t.jsx)("ul",{className:(0,d.f)(v.J,"stg:space-y-1.5"),children:b.map(([e,s])=>(0,t.jsx)(k,{title:e,detail:[s.description,function(e){if(e.source!==r.r.sign_in)return["Pasted token",N(e.savedAt)].filter(Boolean).join(" · ");let t=Number(e.signIn?.expiresAt??0),s=0===t?"does not expire":`renewed automatically (expires ${new Date(1e3*t).toLocaleString()})`;return`Signed in \xb7 ${s}`}(s)].filter(Boolean).join(" · "),readOnly:g,disabled:c,replaceLabel:`New token for ${e}`,onReplace:t=>p(()=>i(e,t,s.description)),onRemove:()=>p(()=>o([e])),extra:u?.(e,s)},e))}),!g&&(0,t.jsx)(w,{disabled:c,onAdd:(e,t,s)=>p(()=>i(e,t,s))})]}),x&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-2xs",role:"alert",children:x})]})}function k({title:e,detail:a,mono:r=!1,readOnly:n,disabled:l,replaceLabel:i,onReplace:o,onRemove:c,extra:g}){let[m,x]=(0,s.useState)(!1),[h,p]=(0,s.useState)(!1),[f,v]=(0,s.useState)(""),b=async e=>{e.preventDefault(),""!==f&&await o(f)&&(v(""),x(!1))};return(0,t.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border-muted stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("span",{className:(0,d.f)("stg:block stg:truncate stg:text-xs stg:font-medium stg:text-foreground",r&&"stg:font-mono"),children:e}),a&&(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-2xs stg:text-muted-foreground",children:a})]}),g,!n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",disabled:l,onClick:()=>{p(!1),x(e=>!e)},className:u.m,children:"Replace"}),(0,t.jsx)("button",{type:"button",disabled:l,onClick:()=>{x(!1),p(!0)},"aria-label":`Remove ${e}`,className:u.x,children:"Remove"})]})]}),h&&(0,t.jsxs)("div",{role:"group","aria-label":`Confirm removing ${e}`,className:"stg:mt-2 stg:space-y-2",children:[(0,t.jsxs)("p",{className:"stg:text-2xs stg:text-muted-foreground",children:["Remove ",e,"? Its value cannot be read back, so it cannot be restored; you would enter it again."]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",disabled:l,onClick:()=>{p(!1),c()},className:u.x,children:"Remove"}),(0,t.jsx)("button",{type:"button",disabled:l,onClick:()=>p(!1),className:u.m,children:"Keep"})]})]}),m&&(0,t.jsxs)("form",{onSubmit:b,className:"stg:mt-2 stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("input",{type:"password","aria-label":i,value:f,onChange:e=>v(e.target.value),autoComplete:"off",disabled:l,className:u.c,autoFocus:!0}),(0,t.jsx)("button",{type:"submit",disabled:l||""===f,className:u.h,children:"Save"})]})]})}function C({disabled:e,onAdd:a}){let r=(0,s.useId)(),[n,l]=(0,s.useState)(""),[i,o]=(0,s.useState)(""),[c,g]=(0,s.useState)(""),m=n.trim(),x=""===m||j.test(m),h=""!==m&&x&&""!==i&&!e,p=async e=>{e.preventDefault(),h&&await a(m,i,c.trim())&&(l(""),o(""),g(""))};return(0,t.jsxs)("form",{onSubmit:p,"aria-label":"Add a secret",className:"stg:grid stg:grid-cols-1 stg:gap-2 stg:sm:grid-cols-[1fr_1fr_1fr_auto]",children:[(0,t.jsx)("input",{id:`${r}-name`,"aria-label":"Secret name",placeholder:"NAME",value:n,onChange:e=>l(e.target.value),disabled:e,className:(0,d.f)(u.c,"stg:font-mono"),"aria-invalid":!x}),(0,t.jsx)("input",{type:"password","aria-label":"Secret value",placeholder:"Value",value:i,onChange:e=>o(e.target.value),autoComplete:"off",disabled:e,className:u.c}),(0,t.jsx)("input",{"aria-label":"Secret description",placeholder:"What it is for (optional)",value:c,onChange:e=>g(e.target.value),disabled:e,className:u.c}),(0,t.jsx)("button",{type:"submit",disabled:!h,className:u.h,children:"Add"}),!x&&(0,t.jsx)("p",{className:"stg:col-span-full stg:text-destructive stg:text-2xs",role:"alert",children:"A name starts with a letter or underscore and holds only letters, digits and underscores."})]})}function w({disabled:e,onAdd:a}){let[r,n]=(0,s.useState)(""),[l,i]=(0,s.useState)(""),[o,c]=(0,s.useState)(""),d=""===r.trim()?null:(0,b.b)(r),g=""===r.trim()||null!==d,m=null!==d&&""!==l&&!e,x=async e=>{e.preventDefault(),m&&null!==d&&await a(d,l,o.trim())&&(n(""),i(""),c(""))};return(0,t.jsxs)("form",{onSubmit:x,"aria-label":"Add a login",className:"stg:grid stg:grid-cols-1 stg:gap-2 stg:sm:grid-cols-[1fr_1fr_1fr_auto]",children:[(0,t.jsx)("input",{"aria-label":"Login address",placeholder:"https://mcp.example.com/mcp or github.com",value:r,onChange:e=>n(e.target.value),disabled:e,className:u.c,"aria-invalid":!g}),(0,t.jsx)("input",{type:"password","aria-label":"Login token",placeholder:"Token",value:l,onChange:e=>i(e.target.value),autoComplete:"off",disabled:e,className:u.c}),(0,t.jsx)("input",{"aria-label":"Login description",placeholder:"What it is for (optional)",value:o,onChange:e=>c(e.target.value),disabled:e,className:u.c}),(0,t.jsx)("button",{type:"submit",disabled:!m,className:u.h,children:"Add"}),!g&&(0,t.jsx)("p",{className:"stg:col-span-full stg:text-destructive stg:text-2xs",role:"alert",children:"Enter a tool's full URL (https://…) or a Git host such as github.com."})]})}var S=e.i(170255),M=e.i(302933),A=e.i(217127),I=e.i(734433),R=e.i(311015),L=e.i(891287),z=e.i(4212),_=e.i(713805),$=e.i(302367),E=e.i(252771);function O({org:e,readOnly:a=!1,onRefetchRef:r,className:n}){let{vaults:l,isLoading:o,error:c,refetch:g}=(0,$.k)(e),[u,m]=(0,s.useState)(null);r&&r(g);let x=(0,s.useMemo)(()=>l.filter(e=>!(0,$.V)(e)),[l]);return o?(0,t.jsx)(I.SettingsSkeleton,{label:"Loading vaults",rows:3,className:n}):c?(0,t.jsx)(i.f,{error:c,title:"The shared vaults could not be read",retry:g,className:n}):0===x.length?(0,t.jsx)(R.f,{variant:"first-use",title:"No shared vaults yet",description:"A shared vault holds the organization's own keys; a conversation, a routine or a channel can name one so its runs use it.",className:(0,d.f)("stg:rounded-lg stg:border stg:border-dashed stg:border-border",n)}):(0,t.jsx)("div",{className:(0,d.f)("stg:space-y-2",n),role:"list","aria-label":"Shared vaults",children:x.map(s=>{let r=s.metadata?.id??"";return(0,t.jsx)(D,{vault:s,org:e,isExpanded:u===r,onToggle:()=>m(e=>e===r?null:r),readOnly:a,onChanged:g},r)})})}function D({vault:e,org:s,isExpanded:a,onToggle:r,readOnly:l,onChanged:i}){let o=e.metadata?.id??"",c=e.metadata?.name||e.metadata?.slug||"Unnamed",g=e.spec?.description??"",u=Object.keys(e.spec?.secrets??{}).length+Object.keys(e.spec?.connections??{}).length,m=e.metadata?.visibility??M.b.visibility_private;return(0,t.jsxs)("div",{role:"listitem",className:(0,d.f)("stg:rounded-lg stg:border stg:transition-colors",a?"stg:border-border stg:bg-card":"stg:border-border-muted stg:hover:border-border"),children:[(0,t.jsxs)("div",{className:"stg:flex stg:w-full stg:items-center stg:gap-3 stg:px-3 stg:py-2.5",children:[(0,t.jsxs)("button",{type:"button",onClick:r,"aria-expanded":a,className:"stg:flex stg:min-w-0 stg:flex-1 stg:items-center stg:gap-3 stg:text-left",children:[(0,t.jsx)(B,{expanded:a}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-sm stg:font-medium stg:text-foreground",children:c}),g&&(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-xs stg:text-muted-foreground",children:g})]})]}),(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-xs stg:text-muted-foreground",children:m===M.b.visibility_org?"Everyone can use":"Admins and granted"}),!l&&""!==o&&(0,t.jsx)(A.f,{resource:{kind:S.X.vault,kindString:"vault",id:o,org:s},visibility:{kind:"vault",current:m,onChanged:i},label:"Who can use",className:"stg:shrink-0"}),(0,t.jsxs)("span",{className:"stg:shrink-0 stg:text-xs stg:text-muted-foreground",children:[u," ",1===u?"entry":"entries"]})]}),a&&""!==o&&(0,t.jsxs)("div",{className:"stg:border-border-muted stg:space-y-4 stg:border-t stg:px-3 stg:pb-3 stg:pt-2",children:[(0,t.jsx)(V,{vault:e,org:s,readOnly:l,onChanged:i}),!l&&(0,t.jsx)(n.f,{resource:{kind:"vault",id:o},relation:"can_edit",children:(0,t.jsx)(T,{vault:e,onChanged:i})})]})]})}function V({vault:e,org:a,readOnly:r,onChanged:l}){let i=function(e,t){let a=(0,m.f)(),[r,n]=(0,s.useState)(!1),[l,i]=(0,s.useState)(null),o=(0,s.useCallback)(async s=>{if(!e||!t)throw Error("useVaultEntries: org and vaultId are required to write.");n(!0),i(null);try{return await s(e,t)}catch(e){throw i((0,x.f)(e)),e}finally{n(!1)}},[e,t]),c=(0,s.useCallback)(e=>o((t,s)=>a.vault.setSecrets((0,L.f)(z.i,{vault:(0,_.H)(t,s),secrets:Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(0,L.f)(z.J,"string"==typeof t?{value:t}:{value:t.value,description:t.description??""})]))}))),[o,a]),d=(0,s.useCallback)(e=>o((t,s)=>a.vault.removeSecrets((0,L.f)(z.h,{vault:(0,_.H)(t,s),names:[...e]}))),[o,a]);return{setSecrets:c,removeSecrets:d,setConnection:(0,s.useCallback)((e,t,s)=>o((r,n)=>a.vault.setConnection((0,L.f)(z.Z,{vault:(0,_.H)(r,n),address:e,token:t,description:s??""}))),[o,a]),removeConnections:(0,s.useCallback)(e=>o((t,s)=>a.vault.removeConnections((0,L.f)(z.f,{vault:(0,_.H)(t,s),addresses:[...e]}))),[o,a]),isMutating:r,error:l}}(a,e.metadata?.id??null),o=(0,s.useCallback)(e=>async(...t)=>{let s=await e(...t);return l(),s},[l]),c=(0,t.jsx)(y,{vault:e,onSetSecrets:o(i.setSecrets),onRemoveSecrets:o(i.removeSecrets),onSetConnection:o(i.setConnection),onRemoveConnections:o(i.removeConnections),isMutating:i.isMutating,readOnly:!0});return r?c:(0,t.jsx)(n.f,{resource:{kind:"vault",id:e.metadata?.id??""},relation:"can_edit",fallback:c,children:(0,t.jsx)(y,{vault:e,onSetSecrets:o(i.setSecrets),onRemoveSecrets:o(i.removeSecrets),onSetConnection:o(i.setConnection),onRemoveConnections:o(i.removeConnections),isMutating:i.isMutating})})}function T({vault:e,onChanged:r}){let l=(0,m.f)(),{update:i,isUpdating:o,error:c}=function(){let e=(0,m.f)(),[t,a]=(0,s.useState)(!1),[r,n]=(0,s.useState)(null),l=(0,s.useCallback)(()=>n(null),[]);return{update:(0,s.useCallback)(async t=>{a(!0),n(null);let s=t.vault.metadata,r=[...void 0!==t.name?["metadata.name"]:[],...void 0!==t.description?["spec.description"]:[],...void 0!==t.externalId?["spec.external_id"]:[]];if(0===r.length)return a(!1),t.vault;try{return await e.vault.update({metadata:{id:s?.id??"",etag:s?.etag??"",name:t.name??""},spec:{description:t.description??"",externalId:t.externalId??""}},r)}catch(e){throw n((0,x.f)(e)),e}finally{a(!1)}},[e]),isUpdating:t,error:r,clearError:l}}(),[d,g]=(0,s.useState)(e.metadata?.name??""),[h,p]=(0,s.useState)(e.spec?.description??""),[f,v]=(0,s.useState)(e.spec?.externalId??""),[b,j]=(0,s.useState)(null),[N,y]=(0,s.useState)(!1),k=d.trim()!==(e.metadata?.name??"")||h.trim()!==(e.spec?.description??"")||f.trim()!==(e.spec?.externalId??""),C=async()=>{try{await i({vault:e,name:d.trim(),description:h.trim(),externalId:f.trim()}),r()}catch{}},w=async()=>{j(null);try{await l.vault.delete({resourceId:e.metadata?.id??""}),r()}catch(e){j((0,a.g)(e))}};return(0,t.jsxs)("div",{className:"stg:space-y-2","aria-label":"Vault details",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:"Details"}),(0,t.jsxs)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-2 stg:sm:grid-cols-3",children:[(0,t.jsx)("input",{"aria-label":"Vault name",value:d,onChange:e=>g(e.target.value),className:u.c}),(0,t.jsx)("input",{"aria-label":"Vault description",placeholder:"Description",value:h,onChange:e=>p(e.target.value),className:u.c}),(0,t.jsx)("input",{"aria-label":"External id",placeholder:"External id",value:f,onChange:e=>v(e.target.value),className:u.c})]}),!(0,$.V)(e)&&(0,t.jsx)(E.e,{kind:"vault",resourceId:e.metadata?.id||null,currentSlug:e.metadata?.slug??"",onRenamed:r,className:"stg:max-w-md"}),(c||b)&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-2xs",role:"alert",children:b??(c?(0,a.g)(c):"")}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",disabled:!k||o||""===d.trim(),onClick:()=>void C(),className:u.h,children:"Save details"}),(0,t.jsx)(n.f,{resource:{kind:"vault",id:e.metadata?.id??""},relation:"can_delete",children:N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:"Delete this vault and every value in it? Surfaces that name it stop at their next run."}),(0,t.jsx)("button",{type:"button",onClick:()=>void w(),className:u.x,children:"Delete"}),(0,t.jsx)("button",{type:"button",onClick:()=>y(!1),className:u.m,children:"Cancel"})]}):(0,t.jsx)("button",{type:"button",onClick:()=>y(!0),className:u.x,children:"Delete vault"})})]})]})}function B({expanded:e}){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:(0,d.f)("stg:shrink-0 stg:text-muted-foreground stg:transition-transform stg:duration-150",e&&"stg:rotate-90"),children:(0,t.jsx)("path",{d:"M6 4l4 4-4 4"})})}var P=e.i(193251),W=e.i(365785);function F({org:e}){let n=(0,p.f)(e||null),l=(0,o.P)(),c=(0,s.useId)(),{signIn:d}=l,g=(0,s.useCallback)(t=>{d(t,{org:e}).then(n.refetch,()=>{})},[d,e,n.refetch]);return(0,t.jsxs)("section",{"aria-labelledby":c,className:"stg:flex stg:flex-col stg:gap-3",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-baseline stg:gap-2",children:[(0,t.jsx)("h3",{id:c,className:"stg:m-0 stg:text-foreground stg:text-sm stg:font-semibold",children:"My vault"}),(0,t.jsx)("span",{className:"stg:bg-primary-subtle stg:text-primary stg:rounded-full stg:px-2 stg:py-0.5 stg:text-2xs stg:font-medium stg:uppercase stg:tracking-wider",children:"You"})]}),(0,t.jsx)("p",{className:"stg:m-0 stg:text-muted-foreground stg:text-xs",children:"Your own logins and secrets. A chat that includes My vault uses them for the messages you send, never a teammate's, and a chat with an agent of another organization never does. Saved values can be replaced but are never shown again."})]}),n.isLoading?(0,t.jsx)(I.SettingsSkeleton,{label:"Loading My vault",rows:2}):n.error&&!n.vault?(0,t.jsx)(i.f,{error:n.error,title:"My vault could not be read",retry:n.refetch}):(0,t.jsx)(y,{vault:n.vault,onSetSecrets:n.setSecrets,onRemoveSecrets:n.removeSecrets,onSetConnection:n.setConnection,onRemoveConnections:n.removeConnections,isMutating:n.isMutating||l.isInProgress,connectionAction:(e,s)=>s.source===r.r.sign_in?(0,t.jsx)("button",{type:"button",disabled:l.isInProgress,onClick:()=>g(e),className:u.m,children:"Sign in again"}):null}),l.error&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-xs",role:"alert",children:(0,a.g)(l.error)})]})}function q({org:e,showCreate:a,onCreated:r,onCancelCreate:n,onRefetchRef:l}){let i=(0,s.useId)();return(0,t.jsxs)("section",{"aria-labelledby":i,className:"stg:flex stg:flex-col stg:gap-3",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("h3",{id:i,className:"stg:m-0 stg:text-foreground stg:text-sm stg:font-semibold",children:"Shared vaults"}),(0,t.jsx)("p",{className:"stg:m-0 stg:text-muted-foreground stg:text-xs",children:"Your organization's team keys. Admins create them and choose who may use them; a conversation, a routine or a channel can name one so its runs use it."})]}),a&&(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(h,{org:e,onCreated:r,onCancel:n})}),(0,t.jsx)(O,{org:e,onRefetchRef:l})]})}e.s(["VaultsSection",0,function(){let e=(0,c.x)(),[a,r]=(0,s.useState)(!1),i=(0,s.useRef)(null),o=(0,s.useCallback)(e=>{i.current=e},[]),d=(0,s.useCallback)(()=>{r(!1),i.current?.()},[]);return(0,t.jsx)(W.f,{title:"Vaults",description:"The logins and secrets your agents use: your own, in My vault, and your organization's, in shared vaults.",actions:!a&&e&&(0,t.jsx)(n.f,{resource:{kind:"organization",id:e},relation:"can_create_shared_vault",children:(0,t.jsx)(l.f,{size:"sm",onClick:()=>r(!0),children:"New shared vault"})}),children:e?(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-8",children:[(0,t.jsx)(F,{org:e}),(0,t.jsx)(q,{org:e,showCreate:a,onCreated:d,onCancelCreate:()=>r(!1),onRefetchRef:o})]}):(0,t.jsx)(P.j,{what:"its vaults"})})}],355277)},231666,e=>{"use strict";e.s(["x",0,"stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:text-muted-foreground stg:transition-colors stg:hover:bg-destructive/10 stg:hover:text-destructive stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:disabled:opacity-50","c",0,"stg:w-full stg:rounded-md stg:border stg:border-border stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground stg:placeholder:text-muted-foreground stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring stg:disabled:opacity-50","h",0,"stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:bg-primary stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-primary-foreground stg:hover:bg-primary/90 stg:disabled:cursor-not-allowed stg:disabled:opacity-50","m",0,"stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:text-muted-foreground stg:transition-colors stg:hover:bg-accent stg:hover:text-accent-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:disabled:opacity-50"])}]);