@kabmo-labs/kabmo 0.31.0 → 0.32.1

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 (509) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +446 -427
  3. package/dist/client/static/js/CsvGrid-4gx0jevc.js +2 -0
  4. package/dist/client/static/js/DocxView-0667nr8h.js +58 -0
  5. package/dist/client/static/js/DrawioView-522v0d0r.js +5 -0
  6. package/dist/client/static/js/ImageView-t8xp60hm.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-xjnveecv.js +2 -0
  8. package/dist/client/static/js/Modal-k2jr9hc4.js +38 -0
  9. package/dist/client/static/js/PdfView-3fx172xh.js +1 -0
  10. package/dist/client/static/js/SessionsView-n3agmf5t.js +1 -0
  11. package/dist/client/static/js/SheetView-nmrdb1b8.js +140 -0
  12. package/dist/client/static/js/SvgPreview-0xsc6xam.js +1 -0
  13. package/dist/client/static/js/__vite-browser-external-2447137e-mq6vaetg.js +0 -0
  14. package/dist/client/static/js/abnfDiagram-O67JEVCF-jj31rs62.js +1 -0
  15. package/dist/client/static/js/andromeeda-17pn42cc.js +1 -0
  16. package/dist/client/static/js/architecture-7GRP2DOG-1y9zvsyt.js +1 -0
  17. package/dist/client/static/js/architectureDiagram-NJMV4G6O-ay3yr7pf.js +36 -0
  18. package/dist/client/static/js/astro-qgx1r159.js +1 -0
  19. package/dist/client/static/js/aurora-x-hxy97145.js +1 -0
  20. package/dist/client/static/js/ayu-dark-x0jd4baz.js +1 -0
  21. package/dist/client/static/js/ayu-light-12fg03q0.js +1 -0
  22. package/dist/client/static/js/ayu-mirage-52h7xjbv.js +1 -0
  23. package/dist/client/static/js/bash-m0qjsyy0.js +1 -0
  24. package/dist/client/static/js/blockDiagram-BEXU5L5S-4x33e16k.js +140 -0
  25. package/dist/client/static/js/c-wkgxb1t1.js +1 -0
  26. package/dist/client/static/js/c4Diagram-YGBWAQC7-dtb81cgz.js +38 -0
  27. package/dist/client/static/js/catppuccin-frappe-fqgpn512.js +1 -0
  28. package/dist/client/static/js/catppuccin-latte-tr2x6gmz.js +1 -0
  29. package/dist/client/static/js/catppuccin-macchiato-rm7kh084.js +1 -0
  30. package/dist/client/static/js/catppuccin-mocha-hw0dzp99.js +1 -0
  31. package/dist/client/static/js/classDiagram-v2-NBCMYWYE-vk5a2n9w.js +217 -0
  32. package/dist/client/static/js/clike-h8p24dc6.js +1 -0
  33. package/dist/client/static/js/clojure-tf457n84.js +1 -0
  34. package/dist/client/static/js/clojure-w19rx1x5.js +1 -0
  35. package/dist/client/static/js/cmake-qpejsvqg.js +1 -0
  36. package/dist/client/static/js/cose-bilkent-JH36ORCC-6rbjbe19.js +1 -0
  37. package/dist/client/static/js/cpp-y0t6mynx.js +1 -0
  38. package/dist/client/static/js/csharp-dap1ppts.js +1 -0
  39. package/dist/client/static/js/css-t4ngafan.js +1 -0
  40. package/dist/client/static/js/css-tf1s0nb7.js +1 -0
  41. package/dist/client/static/js/cynefin-OW5HDTMX-k2188qcq.js +1 -0
  42. package/dist/client/static/js/cynefinDiagram-VND7K2PF-vyjksedr.js +62 -0
  43. package/dist/client/static/js/dagre-6A5THRUB-7hey38z5.js +4 -0
  44. package/dist/client/static/js/dark-plus-weqfnwnf.js +1 -0
  45. package/dist/client/static/js/dart-dxn88tw0.js +1 -0
  46. package/dist/client/static/js/diagram-22UHCM2B-aes06jde.js +200 -0
  47. package/dist/client/static/js/diagram-3UASUU5V-3cfkgm3x.js +24 -0
  48. package/dist/client/static/js/diagram-ATOU4E4O-z8mfhwpy.js +3 -0
  49. package/dist/client/static/js/diagram-CDSNMT55-t4821ctz.js +30 -0
  50. package/dist/client/static/js/diagram-MLGK6HIB-23yxbfrx.js +24 -0
  51. package/dist/client/static/js/diagram-MPIPVDR6-chhtf7v0.js +41 -0
  52. package/dist/client/static/js/diff-r1sqd2db.js +1 -0
  53. package/dist/client/static/js/dockerfile-5b87ghm7.js +1 -0
  54. package/dist/client/static/js/dockerfile-d43jt8fq.js +1 -0
  55. package/dist/client/static/js/dracula-k5pe1hsy.js +1 -0
  56. package/dist/client/static/js/dracula-soft-xqzm7g02.js +1 -0
  57. package/dist/client/static/js/ebnfDiagram-ZINNZB2B-9jejcvfr.js +1 -0
  58. package/dist/client/static/js/elixir-rpa1g4gy.js +1 -0
  59. package/dist/client/static/js/elk-276RUBZZ-xhhtkf58.js +2 -0
  60. package/dist/client/static/js/erDiagram-OPXOYQCR-mt2apjjb.js +99 -0
  61. package/dist/client/static/js/erlang-1ch2hjv9.js +1 -0
  62. package/dist/client/static/js/erlang-6m6tpt72.js +1 -0
  63. package/dist/client/static/js/eventmodeling-NTZA5JFV-pdr0qn0n.js +1 -0
  64. package/dist/client/static/js/everforest-dark-v44f35e9.js +1 -0
  65. package/dist/client/static/js/everforest-light-c7m7g4z4.js +1 -0
  66. package/dist/client/static/js/flowDiagram-KWPJA3E3-zvz0mxne.js +1 -0
  67. package/dist/client/static/js/ganttDiagram-FUAMR5RP-8cm7a29w.js +292 -0
  68. package/dist/client/static/js/ghostty-web-2gt2tp72.js +13 -0
  69. package/dist/client/static/js/gitGraph-4MIJSDKK-wmqf046s.js +1 -0
  70. package/dist/client/static/js/gitGraphDiagram-X574FWY7-5s0gbnx2.js +106 -0
  71. package/dist/client/static/js/github-dark-default-1000qs8y.js +1 -0
  72. package/dist/client/static/js/github-dark-dimmed-vfghfgh1.js +1 -0
  73. package/dist/client/static/js/github-dark-fvd3e45k.js +1 -0
  74. package/dist/client/static/js/github-dark-high-contrast-2j07czxg.js +1 -0
  75. package/dist/client/static/js/github-light-9r4ahj0m.js +1 -0
  76. package/dist/client/static/js/github-light-default-6d4nszch.js +1 -0
  77. package/dist/client/static/js/github-light-high-contrast-qwzscwzg.js +1 -0
  78. package/dist/client/static/js/go-nfrqbjpq.js +1 -0
  79. package/dist/client/static/js/go-rtqh5zp3.js +1 -0
  80. package/dist/client/static/js/graphql-692h0n2x.js +1 -0
  81. package/dist/client/static/js/groovy-63s5pygd.js +1 -0
  82. package/dist/client/static/js/groovy-s992001c.js +1 -0
  83. package/dist/client/static/js/gruvbox-dark-hard-ctttkbm1.js +1 -0
  84. package/dist/client/static/js/gruvbox-dark-medium-vh8mkpgj.js +1 -0
  85. package/dist/client/static/js/gruvbox-dark-soft-9f1ph8sj.js +1 -0
  86. package/dist/client/static/js/gruvbox-light-hard-n3ma2f5b.js +1 -0
  87. package/dist/client/static/js/gruvbox-light-medium-hkamn7bg.js +1 -0
  88. package/dist/client/static/js/gruvbox-light-soft-r39t4g97.js +1 -0
  89. package/dist/client/static/js/haskell-ev7ynt8z.js +1 -0
  90. package/dist/client/static/js/haskell-phxh4hcg.js +1 -0
  91. package/dist/client/static/js/hcl-wndsmevr.js +1 -0
  92. package/dist/client/static/js/horizon-bright-wz5mjtp4.js +1 -0
  93. package/dist/client/static/js/horizon-pr13gmaz.js +1 -0
  94. package/dist/client/static/js/houston-mrdq0gj4.js +1 -0
  95. package/dist/client/static/js/html-pv88ny12.js +1 -0
  96. package/dist/client/static/js/index-0j518hqm.js +2 -0
  97. package/dist/client/static/js/index-2gfc25tq.js +1 -0
  98. package/dist/client/static/js/index-2xj14800.js +2 -0
  99. package/dist/client/static/js/index-360d7j0d.js +1 -0
  100. package/dist/client/static/js/index-3vhznzgr.js +2 -0
  101. package/dist/client/static/js/index-4s8ttfxj.js +474 -0
  102. package/dist/client/static/js/index-532btjmp.js +2 -0
  103. package/dist/client/static/js/index-59jb53v3.js +2 -0
  104. package/dist/client/static/js/index-5x95n3hx.js +1 -0
  105. package/dist/client/static/js/index-5y7c62sm.js +7 -0
  106. package/dist/client/static/js/index-61tm0v57.js +1 -0
  107. package/dist/client/static/js/index-629kfbcb.js +2 -0
  108. package/dist/client/static/js/index-6q80csr0.js +2 -0
  109. package/dist/client/static/js/index-7fdp9c7m.js +2 -0
  110. package/dist/client/static/js/index-7n68yx6m.js +2 -0
  111. package/dist/client/static/js/index-9sd0vjmh.js +2 -0
  112. package/dist/client/static/js/index-9t82sx0w.js +2 -0
  113. package/dist/client/static/js/index-a0bdavdr.js +2 -0
  114. package/dist/client/static/js/index-a293pdg7.js +2 -0
  115. package/dist/client/static/js/index-a6k2hqke.js +1 -0
  116. package/dist/client/static/js/index-a733k69t.js +2 -0
  117. package/dist/client/static/js/index-ay34b398.js +214 -0
  118. package/dist/client/static/js/index-bbggh3f8.js +2 -0
  119. package/dist/client/static/js/index-brj8qwa6.js +2 -0
  120. package/dist/client/static/js/index-c0x6s6f7.js +3 -0
  121. package/dist/client/static/js/index-c93sp4yh.js +1 -0
  122. package/dist/client/static/js/index-dnp07j57.js +1 -0
  123. package/dist/client/static/js/index-dq1kdt03.js +2 -0
  124. package/dist/client/static/js/index-dt7e1328.js +2 -0
  125. package/dist/client/static/js/index-e94a1en0.css +1 -0
  126. package/dist/client/static/js/index-ehcpzk5b.js +2 -0
  127. package/dist/client/static/js/index-ejgd8w3s.js +179 -0
  128. package/dist/client/static/js/index-fdbfzshx.js +2 -0
  129. package/dist/client/static/js/index-g33knza2.js +2 -0
  130. package/dist/client/static/js/index-gbfg0anm.js +2 -0
  131. package/dist/client/static/js/index-h06bcfds.js +1 -0
  132. package/dist/client/static/js/index-h6jxmkxk.js +129 -0
  133. package/dist/client/static/js/index-h7pn9qw6.js +2 -0
  134. package/dist/client/static/js/index-hc2jmzpx.js +314 -0
  135. package/dist/client/static/js/index-jppt5mgc.js +2 -0
  136. package/dist/client/static/js/index-jz9fpznk.js +9 -0
  137. package/dist/client/static/js/index-kg86e3sy.js +12 -0
  138. package/dist/client/static/js/index-kpspnztv.js +2 -0
  139. package/dist/client/static/js/index-nmmxb4va.js +2 -0
  140. package/dist/client/static/js/index-p7btwjvj.js +3 -0
  141. package/dist/client/static/js/index-pf5sbesf.js +2 -0
  142. package/dist/client/static/js/index-pf7syd7t.js +3 -0
  143. package/dist/client/static/js/index-qkscve6n.js +2 -0
  144. package/dist/client/static/js/index-qnwqaczk.js +4 -0
  145. package/dist/client/static/js/index-rg8jpbsw.js +2 -0
  146. package/dist/client/static/js/index-sa9cp6km.js +2 -0
  147. package/dist/client/static/js/index-vd0e25p0.js +1 -0
  148. package/dist/client/static/js/index-vnvrzwht.js +240 -0
  149. package/dist/client/static/js/index-vtbbfwx0.js +2 -0
  150. package/dist/client/static/js/index-w7xbfv44.js +2 -0
  151. package/dist/client/static/js/index-wzma5n54.js +2 -0
  152. package/dist/client/static/js/index-x07kp3jz.js +2 -0
  153. package/dist/client/static/js/index-xj9649ac.js +332 -0
  154. package/dist/client/static/js/index-xya34x4v.js +2 -0
  155. package/dist/client/static/js/index-ye3sr7db.js +89 -0
  156. package/dist/client/static/js/index-z4v1xmh1.js +2 -0
  157. package/dist/client/static/js/index-z5s27s26.js +1 -0
  158. package/dist/client/static/js/info-A6RAGUB7-zg3twte6.js +1 -0
  159. package/dist/client/static/js/infoDiagram-VRGFBTTK-3w1yz32c.js +2 -0
  160. package/dist/client/static/js/ini-cg0a5wm3.js +1 -0
  161. package/dist/client/static/js/ishikawaDiagram-OU5B5YK6-ckt471dy.js +70 -0
  162. package/dist/client/static/js/java-vcck089n.js +1 -0
  163. package/dist/client/static/js/javascript-18thb3jp.js +1 -0
  164. package/dist/client/static/js/javascript-4kw2j9t3.js +1 -0
  165. package/dist/client/static/js/journeyDiagram-ZHPQQLJL-kfvn4w7e.js +139 -0
  166. package/dist/client/static/js/json-j5q8nt57.js +1 -0
  167. package/dist/client/static/js/json5-hmb38a78.js +1 -0
  168. package/dist/client/static/js/jsx-ht9zyzwa.js +1 -0
  169. package/dist/client/static/js/julia-0j0gsjvc.js +1 -0
  170. package/dist/client/static/js/julia-ft9kd90a.js +1 -0
  171. package/dist/client/static/js/kanagawa-dragon-nya1w1ke.js +1 -0
  172. package/dist/client/static/js/kanagawa-lotus-hwn4nbn5.js +1 -0
  173. package/dist/client/static/js/kanagawa-wave-7rsxqd8r.js +1 -0
  174. package/dist/client/static/js/kanban-definition-PNTS6WVX-0q36cm83.js +89 -0
  175. package/dist/client/static/js/katex-eh1m1m1d.js +257 -0
  176. package/dist/client/static/js/kotlin-bw3n4j1v.js +1 -0
  177. package/dist/client/static/js/laserwave-37chepry.js +1 -0
  178. package/dist/client/static/js/less-w8v48sx0.js +1 -0
  179. package/dist/client/static/js/light-plus-mcbbmtzj.js +1 -0
  180. package/dist/client/static/js/lua-6at2ddf6.js +1 -0
  181. package/dist/client/static/js/lua-ke895s2q.js +1 -0
  182. package/dist/client/static/js/main-rx9grv92.js +7 -0
  183. package/dist/client/static/js/makefile-22weg265.js +1 -0
  184. package/dist/client/static/js/markdown-gwmsh53r.js +1 -0
  185. package/dist/client/static/js/material-theme-darker-pcm1tb69.js +1 -0
  186. package/dist/client/static/js/material-theme-lighter-cbdrfj3g.js +1 -0
  187. package/dist/client/static/js/material-theme-ocean-3rs19bm6.js +1 -0
  188. package/dist/client/static/js/material-theme-palenight-rxhkgd4c.js +1 -0
  189. package/dist/client/static/js/material-theme-x46yf0tm.js +1 -0
  190. package/dist/client/static/js/mermaid.core-b1ssa824.js +12 -0
  191. package/dist/client/static/js/min-dark-f279fhzv.js +1 -0
  192. package/dist/client/static/js/min-light-s53yjy4e.js +1 -0
  193. package/dist/client/static/js/mindmap-definition-NLK3R4M7-e2ym5en8.js +96 -0
  194. package/dist/client/static/js/mllike-cnahv8ak.js +1 -0
  195. package/dist/client/static/js/monokai-yr7h8283.js +1 -0
  196. package/dist/client/static/js/night-owl-8d01zsx4.js +1 -0
  197. package/dist/client/static/js/night-owl-light-7jbd0p3j.js +1 -0
  198. package/dist/client/static/js/nix-7e31jz1m.js +1 -0
  199. package/dist/client/static/js/nord-h1bak1eb.js +1 -0
  200. package/dist/client/static/js/objective-c-8r3dxert.js +1 -0
  201. package/dist/client/static/js/ocaml-bpjgcgwa.js +1 -0
  202. package/dist/client/static/js/one-dark-pro-4geyzhjj.js +1 -0
  203. package/dist/client/static/js/one-light-tqssjm9t.js +1 -0
  204. package/dist/client/static/js/packet-AYTQ26CC-3pav51g0.js +1 -0
  205. package/dist/client/static/js/pegDiagram-GJSIUBJH-t8bbdyhe.js +1 -0
  206. package/dist/client/static/js/perl-3t5fm1te.js +1 -0
  207. package/dist/client/static/js/perl-7n7e9ncg.js +1 -0
  208. package/dist/client/static/js/php-32vy69vd.js +1 -0
  209. package/dist/client/static/js/pie-WAS4IAKB-wqfh7zdk.js +1 -0
  210. package/dist/client/static/js/pieDiagram-5QR66LMP-envv4brj.js +39 -0
  211. package/dist/client/static/js/plastic-8kfqgcmr.js +1 -0
  212. package/dist/client/static/js/poimandres-rjcckfek.js +1 -0
  213. package/dist/client/static/js/powershell-m5qb6mjj.js +1 -0
  214. package/dist/client/static/js/powershell-rrzhqtmb.js +1 -0
  215. package/dist/client/static/js/properties-mzvvbqg5.js +1 -0
  216. package/dist/client/static/js/properties-qq2pcfyk.js +1 -0
  217. package/dist/client/static/js/protobuf-578974t5.js +1 -0
  218. package/dist/client/static/js/protobuf-ggczeare.js +1 -0
  219. package/dist/client/static/js/python-3w64wsyd.js +1 -0
  220. package/dist/client/static/js/python-wbdfs2gc.js +1 -0
  221. package/dist/client/static/js/quadrantDiagram-O4NWA36T-72rk137a.js +7 -0
  222. package/dist/client/static/js/r-32re2zwb.js +1 -0
  223. package/dist/client/static/js/r-z4m38eb1.js +1 -0
  224. package/dist/client/static/js/racket-dhm8rebp.js +1 -0
  225. package/dist/client/static/js/radar-RG4KPBEZ-w7qjdr2g.js +1 -0
  226. package/dist/client/static/js/railroad-74A4TZTK-rhr99kkj.js +1 -0
  227. package/dist/client/static/js/railroad-abnf-HS5TGJTU-c4jeea3m.js +1 -0
  228. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-x2ee66ex.js +1 -0
  229. package/dist/client/static/js/railroad-peg-WCYAUIDC-yw8wjfwg.js +1 -0
  230. package/dist/client/static/js/railroadDiagram-XR7U4H2S-1ej0f5hr.js +1 -0
  231. package/dist/client/static/js/red-zgbwyj31.js +1 -0
  232. package/dist/client/static/js/requirementDiagram-PLB6GJNP-rvdaknpd.js +84 -0
  233. package/dist/client/static/js/rose-pine-azwmazxg.js +1 -0
  234. package/dist/client/static/js/rose-pine-dawn-3t3j9bnk.js +1 -0
  235. package/dist/client/static/js/rose-pine-moon-35ecvxkf.js +1 -0
  236. package/dist/client/static/js/ruby-5ty7fys7.js +1 -0
  237. package/dist/client/static/js/ruby-nq98w40a.js +1 -0
  238. package/dist/client/static/js/rust-2geezrcs.js +1 -0
  239. package/dist/client/static/js/rust-psncxtga.js +1 -0
  240. package/dist/client/static/js/sankeyDiagram-IPEJSGJF-nxvhtdaw.js +40 -0
  241. package/dist/client/static/js/sass-k1jjq4y7.js +1 -0
  242. package/dist/client/static/js/sass-mey5150f.js +1 -0
  243. package/dist/client/static/js/scala-atdk263v.js +1 -0
  244. package/dist/client/static/js/scheme-181kqjff.js +1 -0
  245. package/dist/client/static/js/scheme-jvs3e9c8.js +1 -0
  246. package/dist/client/static/js/scss-zphrqp25.js +1 -0
  247. package/dist/client/static/js/sequenceDiagram-PO4LG4MO-n5cn5qrt.js +169 -0
  248. package/dist/client/static/js/shell-5rhwzbr3.js +1 -0
  249. package/dist/client/static/js/sizeCapture-INFHLROL-r074kj7s.js +1 -0
  250. package/dist/client/static/js/slack-dark-j9p83tbc.js +1 -0
  251. package/dist/client/static/js/slack-ochin-fe90gs3m.js +1 -0
  252. package/dist/client/static/js/snazzy-light-pj44bwcm.js +1 -0
  253. package/dist/client/static/js/solarized-dark-54jyr51c.js +1 -0
  254. package/dist/client/static/js/solarized-light-ca8r58m6.js +1 -0
  255. package/dist/client/static/js/solidity-bx92jb30.js +1 -0
  256. package/dist/client/static/js/sql-g8wcshpc.js +1 -0
  257. package/dist/client/static/js/sql-wsvbkyd1.js +1 -0
  258. package/dist/client/static/js/stateDiagram-v2-GCMORJYK-vxghxdb0.js +291 -0
  259. package/dist/client/static/js/stylus-fht9fjbw.js +1 -0
  260. package/dist/client/static/js/stylus-xh0f7m9m.js +1 -0
  261. package/dist/client/static/js/svelte-3ewx0hzx.js +1 -0
  262. package/dist/client/static/js/swift-0rtnm3tm.js +1 -0
  263. package/dist/client/static/js/swift-rr9wc5y7.js +1 -0
  264. package/dist/client/static/js/swimlanes-2SLR337P-qkkv894p.js +1 -0
  265. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y81h9n27.js +8 -0
  266. package/dist/client/static/js/synthwave-84-yq047vcq.js +1 -0
  267. package/dist/client/static/js/timeline-definition-EJHVYXUP-5tbq4ex2.js +120 -0
  268. package/dist/client/static/js/tokyo-night-jfy87bj1.js +1 -0
  269. package/dist/client/static/js/toml-b5g7qp6k.js +1 -0
  270. package/dist/client/static/js/toml-prjdc335.js +1 -0
  271. package/dist/client/static/js/treeView-Q6P3EWNA-ekz05ccs.js +1 -0
  272. package/dist/client/static/js/treemap-WGGIJYW6-aq6qymjr.js +1 -0
  273. package/dist/client/static/js/tsx-0p183w2f.js +1 -0
  274. package/dist/client/static/js/typescript-t9a5jyvv.js +1 -0
  275. package/dist/client/static/js/usecaseDiagram-POWQR4AR-6p8hf0b7.js +370 -0
  276. package/dist/client/static/js/vennDiagram-UO4OBE2U-7k5jsxf9.js +34 -0
  277. package/dist/client/static/js/vesper-0e7jx631.js +1 -0
  278. package/dist/client/static/js/vitesse-black-avx6j9e8.js +1 -0
  279. package/dist/client/static/js/vitesse-dark-5ypr9e1f.js +1 -0
  280. package/dist/client/static/js/vitesse-light-sze15mny.js +1 -0
  281. package/dist/client/static/js/vue-06rdf4wh.js +1 -0
  282. package/dist/client/static/js/wardley-WFR3VGLG-z34tj4y3.js +1 -0
  283. package/dist/client/static/js/wardleyDiagram-VNRHLVJA-km2x4er8.js +78 -0
  284. package/dist/client/static/js/xml-81hxjjt4.js +1 -0
  285. package/dist/client/static/js/xml-f6syr877.js +1 -0
  286. package/dist/client/static/js/xychartDiagram-PMCCYNJV-kr3sgr4m.js +7 -0
  287. package/dist/client/static/js/yaml-qwwswzvs.js +1 -0
  288. package/dist/client/static/js/yaml-yssayv8a.js +1 -0
  289. package/dist/client/static/js/zig-yf26r6vn.js +1 -0
  290. package/package.json +5 -2
  291. package/src/client/App.tsx +16 -0
  292. package/src/client/components/common/anchored-menu/index.test.tsx +3 -3
  293. package/src/client/components/common/anchored-menu/index.tsx +10 -16
  294. package/src/client/components/common/command-palette/ChordHint.tsx +36 -0
  295. package/src/client/components/common/command-palette/index.test.tsx +126 -0
  296. package/src/client/components/common/command-palette/index.tsx +216 -0
  297. package/src/client/components/common/context-usage-button/index.tsx +26 -17
  298. package/src/client/components/common/key-binding-cheatsheet/index.tsx +147 -0
  299. package/src/client/components/common/server-control/Panel.tsx +8 -9
  300. package/src/client/components/common/session-actions-menu/index.test.tsx +26 -0
  301. package/src/client/components/common/session-actions-menu/index.tsx +25 -16
  302. package/src/client/components/common/session-row/RunElapsed.tsx +50 -0
  303. package/src/client/components/common/session-row/TimeCell.tsx +38 -0
  304. package/src/client/components/common/session-row/TrailingSlot.tsx +26 -12
  305. package/src/client/components/common/session-row/index.tsx +5 -0
  306. package/src/client/components/common/session-row/session-row.test.tsx +26 -1
  307. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +2 -0
  308. package/src/client/components/layout/desktop-layout/index.tsx +2 -2
  309. package/src/client/components/layout/session-sidebar/CategoryItem.tsx +2 -1
  310. package/src/client/components/layout/session-sidebar/Footer.tsx +13 -2
  311. package/src/client/components/layout/session-sidebar/SessionItem.test.ts +17 -0
  312. package/src/client/components/layout/session-sidebar/SessionItem.tsx +13 -7
  313. package/src/client/components/layout/session-sidebar/SessionsView.tsx +20 -33
  314. package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +2 -1
  315. package/src/client/components/mobile/LayoutWrapper.tsx +16 -26
  316. package/src/client/components/mobile/SessionSidebar.tsx +2 -0
  317. package/src/client/components/mobile/mobile-main-view/Header.test.tsx +122 -0
  318. package/src/client/components/mobile/mobile-main-view/Header.tsx +25 -26
  319. package/src/client/components/mobile/mobile-session-sidebar/Footer.tsx +11 -1
  320. package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +2 -1
  321. package/src/client/components/mobile/mobile-session-sidebar/SessionRow.tsx +10 -5
  322. package/src/client/components/mobile/worktree-session.ts +4 -1
  323. package/src/client/components/settings/Modal.tsx +3 -0
  324. package/src/client/components/settings/Sidebar.tsx +3 -2
  325. package/src/client/components/settings/categories/ChatSettings.test.tsx +2 -2
  326. package/src/client/components/settings/categories/ChatSettings.tsx +0 -2
  327. package/src/client/components/settings/categories/KeyboardSettings.tsx +31 -0
  328. package/src/client/components/settings/categories/NotificationSettings.tsx +9 -0
  329. package/src/client/components/settings/categories/SkillCatalogSettings.tsx +34 -16
  330. package/src/client/components/settings/categories/SkillSettings.tsx +22 -1
  331. package/src/client/components/settings/categories/chat-settings/groups.ts +2 -11
  332. package/src/client/components/settings/categories/{chat-settings/KeybindingsSection.tsx → keyboard-settings/ComposerKeys.tsx} +2 -2
  333. package/src/client/components/settings/categories/keyboard-settings/KeyRecorder.tsx +106 -0
  334. package/src/client/components/settings/categories/keyboard-settings/ShortcutTable.tsx +137 -0
  335. package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +13 -41
  336. package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
  337. package/src/client/components/settings/categories/skill-catalog/catalog-ui.test.tsx +3 -6
  338. package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +43 -2
  339. package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +9 -0
  340. package/src/client/components/settings/categories/skill-settings/pane.test.tsx +28 -0
  341. package/src/client/components/settings/categories/skill-settings/row-meta.ts +3 -0
  342. package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +16 -15
  343. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +38 -5
  344. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.wait.test.tsx +158 -0
  345. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +1 -1
  346. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +28 -33
  347. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +24 -67
  348. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.search.test.tsx +4 -2
  349. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +101 -78
  350. package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
  351. package/src/client/components/workspace/chat-timeline/fork-preview.test.tsx +11 -0
  352. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.test.tsx +20 -0
  353. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +5 -0
  354. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.test.tsx +113 -0
  355. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.tsx +198 -0
  356. package/src/client/components/workspace/editor/Body.tsx +0 -15
  357. package/src/client/components/workspace/editor/FileDocument.tsx +0 -26
  358. package/src/client/components/workspace/editor/FilePane.tsx +0 -15
  359. package/src/client/components/workspace/editor/Pane.tsx +4 -1
  360. package/src/client/components/workspace/editor/index.tsx +5 -8
  361. package/src/client/hooks/chat/btw/mode.ts +5 -1
  362. package/src/client/hooks/chat/omp/session-list.test.ts +13 -0
  363. package/src/client/hooks/chat/omp/session-list.tsx +33 -8
  364. package/src/client/hooks/chat/omp/session-sidebar-controller.ts +9 -3
  365. package/src/client/hooks/chat/timeline/new-chat.ts +4 -1
  366. package/src/client/hooks/chat/timeline/pending-dispatch.ts +6 -10
  367. package/src/client/hooks/chat/waiting/composer-wait.ts +2 -2
  368. package/src/client/hooks/chat/waiting/dispatch.ts +4 -1
  369. package/src/client/hooks/commands/use-command-catalog.ts +52 -0
  370. package/src/client/hooks/commands/use-command-context.ts +21 -0
  371. package/src/client/hooks/commands/use-command-runtime.test.ts +117 -0
  372. package/src/client/hooks/commands/use-command-runtime.ts +62 -0
  373. package/src/client/hooks/commands/use-overlays.ts +35 -0
  374. package/src/client/hooks/commands/use-palette-items.ts +156 -0
  375. package/src/client/hooks/commands/use-plugin-commands.ts +69 -0
  376. package/src/client/hooks/editor/find-harness.test-util.ts +20 -3
  377. package/src/client/hooks/editor/use-editor-command-target.ts +46 -0
  378. package/src/client/hooks/editor/use-editor-find.test.ts +4 -9
  379. package/src/client/hooks/editor/use-editor-panel-keys.ts +24 -93
  380. package/src/client/hooks/editor/use-editor-panel-ui.ts +0 -10
  381. package/src/client/hooks/settings/skill-catalog.ts +3 -3
  382. package/src/client/hooks/settings/skill-git-import.ts +3 -11
  383. package/src/client/hooks/ui/icon-style.ts +10 -5
  384. package/src/client/hooks/ui/notification-events.test.ts +126 -0
  385. package/src/client/hooks/ui/notification-events.ts +61 -0
  386. package/src/client/hooks/ui/second-tick.ts +55 -0
  387. package/src/client/hooks/ui/theme.ts +9 -5
  388. package/src/client/hooks/workspace/batch-delete-run.ts +5 -1
  389. package/src/client/hooks/workspace/commands.ts +51 -0
  390. package/src/client/hooks/workspace/session-delete.ts +5 -1
  391. package/src/client/lib/commands/context.ts +51 -0
  392. package/src/client/lib/commands/dispatcher.ts +101 -0
  393. package/src/client/lib/commands/editor-target.ts +36 -0
  394. package/src/client/lib/commands/keymap.test.ts +68 -0
  395. package/src/client/lib/commands/keymap.ts +151 -0
  396. package/src/client/lib/commands/overlays.ts +87 -0
  397. package/src/client/lib/commands/registry.ts +69 -0
  398. package/src/client/lib/notifications/os.test.ts +24 -0
  399. package/src/client/lib/notifications/os.ts +16 -0
  400. package/src/client/lib/notifications/watch.ts +48 -0
  401. package/src/client/lib/plugins/slots.ts +1 -0
  402. package/src/client/lib/router/branch-params.test.ts +62 -0
  403. package/src/client/lib/router/branch-params.ts +48 -0
  404. package/src/client/main.tsx +7 -0
  405. package/src/client/tailwind.css +5 -38
  406. package/src/server/db.server.test.ts +10 -4
  407. package/src/server/index.ts +12 -8
  408. package/src/server/lib/assets/shell-settings.server.test.ts +35 -0
  409. package/src/server/lib/assets/shell-settings.server.ts +33 -0
  410. package/src/server/lib/assets/theme-css.server.test.ts +58 -0
  411. package/src/server/lib/assets/theme-css.server.ts +52 -0
  412. package/src/server/lib/auth/guard.ts +6 -1
  413. package/src/server/lib/browser/runtime.test.ts +21 -16
  414. package/src/server/lib/db/client.test.ts +89 -0
  415. package/src/server/lib/db/client.ts +31 -0
  416. package/src/server/lib/db/compact-chat-overlay.ts +7 -1
  417. package/src/server/lib/db/schema.ts +4 -0
  418. package/src/server/lib/db/workspace-sync.ts +7 -7
  419. package/src/server/lib/harness/acp/session-permissions.ts +4 -0
  420. package/src/server/lib/lifecycle/fd-pressure.test.ts +43 -0
  421. package/src/server/lib/lifecycle/fd-pressure.ts +38 -0
  422. package/src/server/lib/lifecycle/listener.ts +4 -4
  423. package/src/server/lib/lifecycle/shell-entry.server.ts +29 -0
  424. package/src/server/lib/lifecycle/shell-route.ts +5 -4
  425. package/src/server/lib/notifications/feed.server.test.ts +127 -0
  426. package/src/server/lib/notifications/feed.server.ts +195 -0
  427. package/src/server/lib/notifications/schema.server.ts +47 -0
  428. package/src/server/lib/notifications/store.server.test.ts +118 -0
  429. package/src/server/lib/notifications/store.server.ts +103 -0
  430. package/src/server/lib/observer-ws.test.ts +49 -0
  431. package/src/server/lib/observer-ws.ts +2 -1
  432. package/src/server/lib/omp/config/definitions.test.ts +17 -18
  433. package/src/server/lib/omp/config/skills-catalog.ts +109 -73
  434. package/src/server/lib/omp/config/skills-git-repo.ts +10 -12
  435. package/src/server/lib/omp/rpc/frame-fold-frames.test.ts +2 -0
  436. package/src/server/lib/omp/rpc/manager.ts +4 -1
  437. package/src/server/lib/omp/rpc/run-model.test.ts +2 -0
  438. package/src/server/lib/omp/session/sidebar-data.server.ts +1 -0
  439. package/src/server/lib/realtime/hub.server.test.ts +27 -1
  440. package/src/server/lib/realtime/hub.server.ts +6 -2
  441. package/src/server/lib/realtime/hub.types.ts +9 -1
  442. package/src/server/lib/realtime/topics/catalog.server.ts +5 -0
  443. package/src/server/lib/realtime/topics/peer-relay.server.test.ts +17 -14
  444. package/src/server/lib/realtime/topics.server.test.ts +2 -1
  445. package/src/server/plugins/shell.server.test.ts +4 -4
  446. package/src/server/plugins/shell.server.ts +83 -22
  447. package/src/server/plugins/ssr.ts +33 -19
  448. package/src/server/plugins/static.ts +5 -7
  449. package/src/server/routes/health/probe.ts +7 -8
  450. package/src/server/routes/index.ts +2 -0
  451. package/src/server/routes/notifications/index.ts +6 -0
  452. package/src/server/routes/notifications/stream.test.ts +116 -0
  453. package/src/server/routes/notifications/stream.ts +88 -0
  454. package/src/server/routes/settings/skills-catalog-actions.ts +11 -31
  455. package/src/server/routes/settings/skills.test.ts +14 -0
  456. package/src/server/routes/settings/skills.ts +29 -21
  457. package/src/shared/lib/code/highlight-cache.test.ts +19 -8
  458. package/src/shared/lib/commands/catalog.ts +114 -0
  459. package/src/shared/lib/commands/chord.test.ts +66 -0
  460. package/src/shared/lib/commands/chord.ts +193 -0
  461. package/src/shared/lib/commands/conflicts.test.ts +43 -0
  462. package/src/shared/lib/commands/conflicts.ts +53 -0
  463. package/src/shared/lib/commands/record.test.ts +24 -0
  464. package/src/shared/lib/commands/record.ts +44 -0
  465. package/src/shared/lib/commands/resolve.test.ts +54 -0
  466. package/src/shared/lib/commands/resolve.ts +45 -0
  467. package/src/shared/lib/commands/score.test.ts +41 -0
  468. package/src/shared/lib/commands/score.ts +53 -0
  469. package/src/shared/lib/commands/types.ts +60 -0
  470. package/src/shared/lib/commands/user-keybindings.test.ts +33 -0
  471. package/src/shared/lib/commands/user-keybindings.ts +64 -0
  472. package/src/shared/lib/commands/when.test.ts +46 -0
  473. package/src/shared/lib/commands/when.ts +221 -0
  474. package/src/shared/lib/icons/icon-paint-authority.test.ts +9 -0
  475. package/src/shared/lib/icons/icon-paint-authority.ts +25 -8
  476. package/src/shared/lib/notifications/events.test.ts +77 -0
  477. package/src/shared/lib/notifications/events.ts +104 -0
  478. package/src/shared/lib/omp/session/prewarm-misc.test.ts +3 -2
  479. package/src/shared/lib/omp/session/schema-migrations.ts +4 -0
  480. package/src/shared/lib/omp/session/stream-state.server.test.ts +37 -1
  481. package/src/shared/lib/omp/session/stream-state.server.ts +42 -5
  482. package/src/shared/lib/omp/skill-source.test.ts +24 -0
  483. package/src/shared/lib/omp/skill-source.ts +20 -0
  484. package/src/shared/lib/panels/slot-labels.ts +6 -1
  485. package/src/shared/lib/realtime/protocol.ts +11 -0
  486. package/src/shared/lib/theme/css.ts +11 -0
  487. package/src/shared/lib/ui/menu-anchor.test.ts +17 -5
  488. package/src/shared/lib/ui/menu-anchor.ts +22 -5
  489. package/src/shared/lib/workspace/refresh-cadence.test.ts +34 -1
  490. package/src/shared/lib/workspace/relative-time.ts +22 -0
  491. package/src/shared/types/realtime.ts +10 -0
  492. package/src/shared/types/settings/skill.ts +1 -9
  493. package/src/shared/types/settings/state.ts +1 -0
  494. package/src/shared/types/workspace.ts +5 -0
  495. package/src/test-support/peer-harness.ts +40 -6
  496. package/dist/client/static/js/index-naa91727.css +0 -1
  497. package/dist/client/static/js/index-r3bhgvkt.js +0 -5696
  498. package/src/client/components/layout/session-sidebar/new-session-context.test.ts +0 -55
  499. package/src/client/components/workspace/editor/CommandPalette.test.ts +0 -242
  500. package/src/client/components/workspace/editor/CommandPalette.tsx +0 -138
  501. package/src/client/components/workspace/editor/QuickOpenModal.tsx +0 -146
  502. package/src/client/hooks/ui/input-required-alert.ts +0 -50
  503. package/src/client/hooks/ui/notifications.ts +0 -54
  504. package/src/client/hooks/ui/run-outcome-alert.ts +0 -48
  505. package/src/client/hooks/ui/ui-alert.test.ts +0 -235
  506. package/src/client/hooks/workspace/keybindings.ts +0 -44
  507. package/src/shared/lib/notifications/outcomes.test.ts +0 -96
  508. package/src/shared/lib/notifications/outcomes.ts +0 -64
  509. package/src/shared/lib/ui/mobile-overlay.ts +0 -61
@@ -0,0 +1 @@
1
+ import{d,n,i,o,u,a,oe,e,fp,we,S,s,f,I,se,fa,ie,pe,C,y,le,nt,PA,no}from"./index-4s8ttfxj.js";var ne={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]},O=s(ne);function J(l,r,c=1e6){return{sessionId:l,sessionTitle:r,modelId:"",modelName:"",timestamp:"",contextUsed:0,contextLimit:c,contextPercent:0,messagesCount:0,userCount:0,assistantCount:0,totalCost:0,costFormatted:"$0.00",cacheHitAverage:0,costBreakdown:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0},lastMessage:{input:0,output:0,reasoning:0,cacheRead:0,cacheWrite:0,cacheHitPercent:0},distribution:{userTokens:0,userPercent:0,assistantTokens:0,assistantPercent:0,toolTokens:0,toolPercent:0,otherTokens:0,otherPercent:100},rawMessages:[]}}function Z({used:l,limit:r,percent:c}){let x=l.toLocaleString(),m=r.toLocaleString(),t=Math.min(100,Math.max(0,c));return e("div",{className:"bg-canvas border border-ink/10 rounded-xl p-4 transition-all",children:[e("div",{className:"flex items-center justify-between text-xs mb-2",children:[e("span",{className:"font-semibold text-ink/80",children:"Context"}),e("span",{className:"font-mono text-ink/70 text-[11px]",children:[x," / ",m]})]}),e("div",{className:"w-full h-1.5 bg-ink/10 rounded-full overflow-hidden mb-2",children:e("div",{className:"h-full bg-ink/70 rounded-full transition-all duration-500 ease-out",style:{width:`${t}%`}})}),e("div",{className:"text-[11px] font-mono text-ink/50 text-left",children:[t.toFixed(1),"% used"]})]})}function _(l){return l<0.01?"$0.01":`$${l.toFixed(6).replace(/0+$/,"").replace(/\.$/,"")}`}function z({open:l,onClose:r,breakdown:c,costFormatted:x}){let m=o(null);if(le(m,r),!l)return null;let t=c?[{label:"Total Cost",value:_(c.total),strong:!0},{label:"Input (cache miss)",value:_(c.input)},{label:"Output",value:_(c.output)},{label:"Cache Read (cache hit)",value:_(c.cacheRead)},{label:"Cache Write",value:_(c.cacheWrite)}]:[{label:"Total Cost",value:x??"$0.01",strong:!0}];return e("div",{ref:m,className:"glass-popover absolute top-full right-0 mt-1.5 z-50 w-64 bg-paper border border-ink/10 rounded-lg shadow-lg p-3",role:"dialog","aria-modal":"false",children:[e("div",{className:"flex items-center justify-between mb-2.5",children:[e("span",{className:"text-xs font-semibold text-ink tracking-tight",children:"Cost Breakdown"}),e("button",{type:"button",onClick:r,className:"p-1 rounded hover:bg-ink/5 text-ink/60 hover:text-ink transition-colors","aria-label":"Close cost breakdown",children:e(y,{size:14})})]}),e("div",{className:"space-y-1.5",children:t.map((b)=>e("div",{className:"flex items-center justify-between text-[11px] font-mono border-b border-ink/5 last:border-0 pb-1.5 last:pb-0",children:[e("span",{className:"text-ink/60",children:b.label}),e("span",{className:`${b.strong?"font-semibold text-ink":"text-ink/80"}`,children:b.value})]},b.label))})]})}function V({messagesCount:l,userCount:r,assistantCount:c,costFormatted:x,cacheHitAverage:m,costBreakdown:t}){let[b,h]=n(!1);return e(d,{children:[e("div",{className:"mb-1.5",children:e("span",{className:"text-xs font-semibold text-ink/80",children:"Session Stats"})}),e("div",{className:"flex gap-2 flex-wrap",children:[e(nt,{variant:"compact",label:"Messages",value:l}),e(nt,{variant:"compact",label:"User",value:r}),e(nt,{variant:"compact",label:"Assistant",value:c}),e(nt,{variant:"compact",label:"Cache Hit",value:m!==void 0?`${m.toFixed(1)}%`:"–"}),e("div",{className:"relative bg-canvas border border-ink/10 rounded-lg px-2.5 py-1.5 flex flex-col gap-0.5 flex-1 min-w-0",children:[e("span",{className:"text-[10px] font-medium text-ink/50 flex items-center gap-1",children:["Cost",e("button",{type:"button",onClick:()=>h(!0),className:"p-0.5 rounded text-ink/40 hover:text-ink hover:bg-ink/5 transition-colors","aria-label":"Show cost breakdown",title:"Cost breakdown",children:e(pe,{size:11})})]}),e("span",{className:"text-xs font-semibold font-mono text-ink truncate",children:x}),e(z,{open:b,onClose:()=>h(!1),breakdown:t,costFormatted:x})]})]})]})}function Q({input:l,output:r,reasoning:c,cacheRead:x,cacheWrite:m,cacheHitPercent:t}){return e(d,{children:[e("div",{className:"mb-1.5",children:e("span",{className:"text-xs font-semibold text-ink/80",children:"Last Assistant Message"})}),e("div",{className:"flex gap-2 flex-wrap",children:[e(nt,{variant:"compact",label:"In",value:l.toLocaleString()}),e(nt,{variant:"compact",label:"Out",value:r.toLocaleString()}),e(nt,{variant:"compact",label:"Reason",value:c.toLocaleString()}),e(nt,{variant:"compact",label:"Cache",value:`${x.toLocaleString()}/${m.toLocaleString()}`}),e(nt,{variant:"compact",label:"Hit",value:`${t.toFixed(1)}%`})]})]})}function G({userPercent:l,assistantPercent:r,toolPercent:c,otherPercent:x}){return e("div",{className:"space-y-2.5",children:[e("div",{className:"w-full h-1.5 rounded-full overflow-hidden flex bg-ink/10",children:[e("div",{className:"h-full bg-emerald-500 transition-all duration-300",style:{width:`${l}%`},title:`User: ${l}%`}),e("div",{className:"h-full bg-sky-500 transition-all duration-300",style:{width:`${r}%`},title:`Assistant: ${r}%`}),e("div",{className:"h-full bg-amber-500 transition-all duration-300",style:{width:`${c}%`},title:`Tool Calls: ${c}%`}),e("div",{className:"h-full bg-slate-400 transition-all duration-300",style:{width:`${x}%`},title:`Other: ${x}%`})]}),e("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px] text-ink/70",children:[e("div",{className:"flex items-center space-x-1.5",children:[e("span",{className:"w-2 h-2 rounded-full bg-emerald-500 flex-shrink-0"}),e("span",{children:["User ",l,"%"]})]}),e("div",{className:"flex items-center space-x-1.5",children:[e("span",{className:"w-2 h-2 rounded-full bg-sky-500 flex-shrink-0"}),e("span",{children:["Assistant ",r,"%"]})]}),e("div",{className:"flex items-center space-x-1.5",children:[e("span",{className:"w-2 h-2 rounded-full bg-amber-500 flex-shrink-0"}),e("span",{children:["Tool Calls ",c,"%"]})]}),e("div",{className:"flex items-center space-x-1.5",children:[e("span",{className:"w-2 h-2 rounded-full bg-slate-400 flex-shrink-0"}),e("span",{children:["Other ",x,"%"]})]})]})]})}function K({data:l}){no();let[r,c]=n(!1),x=o(null),m=o(null),t=JSON.stringify(l,null,2),b=PA(t),h=a((v)=>{let k=m.current;if(!k)return;k.scrollLeft=v.currentTarget.scrollLeft,k.scrollTop=v.currentTarget.scrollTop},[]),w=a(async(v)=>{v.stopPropagation();try{await navigator.clipboard.writeText(t)}catch{let k=document.createElement("textarea");k.value=t,k.style.position="fixed",k.style.opacity="0",document.body.appendChild(k),k.select(),document.execCommand("copy"),document.body.removeChild(k)}c(!0),setTimeout(()=>c(!1),2000)},[t]);return e("div",{className:"relative my-1.5 rounded-lg bg-paper/80 border border-ink/10 overflow-hidden",children:[e("div",{className:"flex items-center justify-between px-2.5 py-1.5 bg-ink/[0.04] border-b border-ink/10",children:[e("span",{className:"text-[10px] font-mono text-ink/50 select-none",children:[Object.keys(l).length," keys · ",t.length," chars"]}),e("button",{type:"button",onClick:w,className:"flex items-center space-x-1 px-2 py-1 rounded bg-canvas hover:bg-paper text-ink/70 hover:text-ink border border-ink/10 text-[10px] transition-colors shadow-xs",title:"Copy Pretty JSON",children:r?e(d,{children:[e(f,{size:11,className:"text-success"}),e("span",{className:"text-success font-sans font-medium",children:"Copied"})]}):e(d,{children:[e(ie,{size:11}),e("span",{className:"font-sans",children:"Copy JSON"})]})})]}),e("div",{className:"relative",children:[e("pre",{ref:m,"aria-hidden":!0,className:"absolute inset-0 p-2.5 m-0 font-mono text-[11px] leading-5 overflow-x-auto overflow-y-auto whitespace-pre pointer-events-none",dangerouslySetInnerHTML:{__html:b}}),e("pre",{ref:x,onScroll:h,className:"relative p-2.5 m-0 font-mono text-[11px] leading-5 overflow-x-auto overflow-y-auto whitespace-pre select-text selection:bg-ink selection:text-canvas",children:e("code",{className:"text-transparent",children:t})})]})]})}var B=["bg-emerald-500","bg-sky-500","bg-amber-500","bg-violet-500","bg-rose-500","bg-teal-500","bg-indigo-500","bg-fuchsia-500","bg-lime-500","bg-cyan-500","bg-orange-500","bg-pink-500","bg-yellow-500","bg-purple-500","bg-red-500","bg-blue-500","bg-green-500","bg-cyan-600","bg-violet-600","bg-amber-600"],W=20;function q(l){let r=0;for(let c=0;c<l.length;c++)r=r*31+l.charCodeAt(c)|0;return Math.abs(r)}function Y(l){let r=l.indexOf("/"),c=r>0?l.slice(0,r):l,x=r>0?l.slice(r+1):"";return x?`${c} · ${x}`:c}function X(l,r){if(r<=7)return Array.from({length:r},(b,h)=>h+1);let c=new Set([1,r,l,l-1,l+1]);if(l<=3)[2,3,4].forEach((b)=>c.add(b));if(l>=r-2)[r-3,r-2,r-1].forEach((b)=>c.add(b));let x=[...c].filter((b)=>b>=1&&b<=r).sort((b,h)=>b-h),m=[],t=0;for(let b of x){if(b-t>1)m.push("…");m.push(b),t=b}return m}function ee({sessionId:l,refreshKey:r=0}){let[c,x]=S("context.rawExpandedIds",{}),[m,t]=S("context.rawFilterRole","all"),[b,h]=n(1),[w,v]=n([]),[k,E]=n(0),[T,N]=n(!1),U=o(0),D=o(!1),A=a((p)=>{if(typeof window>"u")return;let g=++U.current;if(!p?.silent)N(!0);let R=new URLSearchParams({page:String(b),pageSize:String(W),role:m});if(l)R.set("sessionId",l);fetch(`/api/telemetry/raw-messages?${R.toString()}`).then((M)=>M.ok?M.json():null).then((M)=>{if(D.current||g!==U.current)return;v(M&&Array.isArray(M.items)?M.items:[]),E(M&&Number.isFinite(M.filteredTotal)?M.filteredTotal:0)}).catch(()=>{if(D.current||g!==U.current)return;v([]),E(0)}).finally(()=>{if(!p?.silent&&g===U.current)N(!1)})},[l,b,m]);i(()=>(D.current=!1,A(),()=>{D.current=!0}),[A,r]);let L=Math.max(1,Math.ceil(k/W)),P=Math.min(b,L),j=(p)=>h(Math.min(Math.max(1,p),L)),te=(p)=>{x((g)=>({...g,[p]:!g[p]}))},ae=()=>{if(w.every((g)=>c[g.id]))x({});else{let g={};w.forEach((R)=>{g[R.id]=!0}),x(g)}},F=u(()=>{let p=[];for(let g of w){let R=g.info.modelID;if(!R||p.includes(R))continue;p.push(R)}return p},[w]),H=(p)=>p?B[q(p)%B.length]:"bg-ink/20";return e("div",{className:"space-y-3",children:[F.length>0&&e("div",{children:[e("div",{className:"mb-1.5",children:e("span",{className:"text-xs font-semibold text-ink/80",children:"Legend"})}),e("div",{className:"bg-canvas border border-ink/10 rounded-xl px-3 py-2",children:e("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-[10px] font-mono text-ink/60",children:F.map((p)=>e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:`w-2 h-2 rounded-full ${H(p)}`}),e("span",{children:Y(p)})]},p))})})]}),e("div",{className:"flex items-center justify-between",children:[e("div",{className:"flex items-center space-x-2",children:[e("span",{className:"text-xs font-semibold text-ink/80",children:"Raw Messages"}),e("span",{className:"text-[10px] font-mono text-ink/50 bg-ink/5 px-1.5 py-0.5 rounded-full border border-ink/10",children:k})]}),e("div",{className:"flex items-center space-x-1",children:[e("div",{className:"flex items-center bg-canvas border border-ink/10 rounded-lg p-0.5 text-[10px]",children:[e("button",{type:"button",onClick:()=>{t("all"),h(1)},className:`px-1.5 py-0.5 rounded ${m==="all"?"bg-ink text-canvas font-medium":"text-ink/60 hover:text-ink"}`,children:"All"}),e("button",{type:"button",onClick:()=>{t("assistant"),h(1)},className:`px-1.5 py-0.5 rounded ${m==="assistant"?"bg-ink text-canvas font-medium":"text-ink/60 hover:text-ink"}`,children:"AI"}),e("button",{type:"button",onClick:()=>{t("user"),h(1)},className:`px-1.5 py-0.5 rounded ${m==="user"?"bg-ink text-canvas font-medium":"text-ink/60 hover:text-ink"}`,children:"User"})]}),e("button",{type:"button",onClick:ae,className:"p-1 rounded text-ink/60 hover:text-ink hover:bg-ink/5 transition-colors text-[10px] flex items-center",title:"Expand / Collapse All",children:e(O,{size:14})})]})]}),e("div",{className:"space-y-1.5",children:!T&&w.length===0?e("div",{className:"p-4 text-center text-xs text-ink/40 italic bg-canvas rounded-xl border border-ink/10",children:"No raw messages recorded yet."}):w.map((p)=>{let g=Boolean(c[p.id]);return e("div",{className:`bg-canvas border border-ink/10 rounded-xl overflow-hidden transition-all duration-200 ${T?"opacity-50":""}`,children:[e("button",{type:"button",onClick:()=>te(p.id),className:"w-full text-left px-3.5 py-2.5 flex items-center justify-between hover:bg-ink/5 transition-colors cursor-pointer",children:[e("div",{className:"flex items-center space-x-2 min-w-0 flex-1 mr-2",children:[e("span",{className:"text-ink/40 flex-shrink-0",children:g?e(I,{size:14}):e(se,{size:14})}),e("span",{className:"text-xs font-mono text-ink/90 truncate",children:p.badgeLabel})]}),e("div",{className:"flex items-center space-x-3 text-[11px] font-mono text-ink/50 flex-shrink-0",children:[p.tokenSummary&&e("span",{className:"text-ink/60",children:p.tokenSummary}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:`w-2 h-2 rounded-full ${H(p.info.modelID)}`}),e("span",{children:p.timestamp})]})]})]}),g&&e("div",{className:"px-3.5 pb-3 pt-1 border-t border-ink/5 bg-canvas/60",children:e(K,{data:p.rawPayload})})]},p.id)})}),L>1&&e("div",{className:"flex items-center justify-between pt-1",children:[e("span",{className:"text-[10px] font-mono text-ink/50",children:[(P-1)*W+1,"–",Math.min(P*W,k)," of ",k]}),e("div",{className:"flex items-center gap-0.5",children:[e("button",{type:"button",disabled:P<=1,onClick:()=>j(P-1),className:"p-1 rounded text-ink/60 hover:text-ink hover:bg-ink/5 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",title:"Previous page",children:e(fa,{size:14})}),X(P,L).map((p,g)=>p==="…"?e("span",{className:"px-1 text-[10px] font-mono text-ink/40 select-none",children:"…"},`gap-${g}`):e("button",{type:"button",onClick:()=>j(p),className:`min-w-[22px] h-[22px] px-1 rounded text-[10px] font-mono transition-colors ${p===P?"bg-ink text-canvas font-medium":"text-ink/60 hover:text-ink hover:bg-ink/5"}`,children:p},p)),e("button",{type:"button",disabled:P>=L,onClick:()=>j(P+1),className:"p-1 rounded text-ink/60 hover:text-ink hover:bg-ink/5 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",title:"Next page",children:e(se,{size:14})})]})]})]})}function dt({className:l="",enabled:r=!0,refreshKey:c=0}){let[x]=oe(),m=x.get("sessionId"),[t,b]=n(()=>J(m||"default","Session not started")),h=o(!1),w=a(()=>{if(typeof window>"u")return;let T=m?`?sessionId=${encodeURIComponent(m)}`:"";fetch(`/api/telemetry/context${T}`).then((N)=>N.ok?N.json():null).then((N)=>{if(!h.current&&N&&N.telemetry)b(N.telemetry)}).catch((N)=>{if(!h.current)console.warn("Failed to fetch context telemetry:",N)})},[m]);i(()=>{if(h.current=!1,!r)return;return w(),()=>{h.current=!0}},[r,c,w]);let v=we(m?fp(m):null,{enabled:r}),[k,E]=n(0);if(i(()=>{if(v.data)b(v.data),E((T)=>T+1)},[v.data]),!r)return e("div",{className:`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${l}`,children:e("span",{className:"text-xs font-mono text-muted",children:"No session selected"})});if(t.messagesCount===0)return e("div",{className:`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${l}`,children:e("span",{className:"text-xs font-mono",children:"Session not started"})});return e("div",{className:`flex flex-col h-full bg-paper text-ink overflow-hidden select-none ${l}`,children:[e("div",{className:"flex-shrink-0 p-4 border-b border-ink/10 bg-paper",children:e("div",{className:"flex items-start justify-between gap-2",children:[e("div",{className:"min-w-0",children:[e("h2",{className:"text-xs font-medium text-ink tracking-tight truncate",children:t.sessionTitle}),e("div",{className:"text-[11px] text-ink/50 mt-1 truncate font-mono",children:t.timestamp})]}),e("button",{type:"button",onClick:()=>{v.refresh(),w()},disabled:!r,title:"Refresh context telemetry","aria-label":"Refresh context telemetry","aria-busy":v.refreshing,className:"flex-shrink-0 rounded-md border border-ink/15 bg-paper p-1.5 text-ink/80 transition-colors hover:bg-ink/5 disabled:opacity-50",children:e(C,{size:12,className:v.refreshing?"animate-spin text-ink":""})})]})}),e("div",{className:"flex-1 scrollbar-overlay-container p-4 space-y-4",children:[e(Z,{used:t.contextUsed,limit:t.contextLimit,percent:t.contextPercent}),e(V,{messagesCount:t.messagesCount,userCount:t.userCount,assistantCount:t.assistantCount,costFormatted:t.costFormatted,cacheHitAverage:t.cacheHitAverage,costBreakdown:t.costBreakdown}),e(Q,{input:t.lastMessage.input,output:t.lastMessage.output,reasoning:t.lastMessage.reasoning,cacheRead:t.lastMessage.cacheRead,cacheWrite:t.lastMessage.cacheWrite,cacheHitPercent:t.lastMessage.cacheHitPercent}),e(G,{userPercent:t.distribution.userPercent,assistantPercent:t.distribution.assistantPercent,toolPercent:t.distribution.toolPercent,otherPercent:t.distribution.otherPercent}),e(ee,{sessionId:m,refreshKey:c+k})]})]})}export{dt as ContextPanel};
@@ -0,0 +1,2 @@
1
+ import{d,n,i,o,u,a,e,li,s,m,D,Or,No,f,ie,Dt,fe,C,F,xp,J,hn,Gl,wp,Tu}from"./index-4s8ttfxj.js";var Y={name:"clipboard-paste",size:24,node:[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]},Ss=s(Y);var K={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]},dp=s(K);function _({row:t,active:r,name:p,loading:c,onSelect:l,onCopyPath:g,onReveal:M}){return e("div",{className:"grid grid-cols-[1rem_minmax(0,1fr)_3.5rem] items-start gap-x-2 px-4 py-2 border-b border-ink/5 last:border-b-0 hover:bg-ink/[0.02] group/row transition-colors",children:[e("div",{className:"h-5 flex items-center justify-center",children:r&&e(f,{size:12,className:"text-ink","aria-label":"Selected repository"})}),e("button",{type:"button",onClick:l,disabled:r||!t.isRepo,title:!t.isRepo?t.error??"Not a git repository":r?"Already showing this repository":`Show ${t.path}`,className:"min-w-0 text-left cursor-pointer disabled:cursor-default",children:e("div",{className:"h-5 flex items-center gap-1.5 min-w-0",children:[e(fe,{size:11,className:r?"text-ink/60 flex-shrink-0":"text-ink/40 flex-shrink-0"}),e("span",{className:`truncate text-xs ${r?"font-semibold text-ink":"text-ink/90"}`,children:p})]})}),e("div",{className:"h-5 flex items-center justify-end gap-0.5 touch-visible opacity-0 group-hover/row:opacity-100",children:[e("button",{type:"button",onClick:g,disabled:c,title:`Copy the absolute path of ${t.path}`,"aria-label":`Copy path of ${t.path}`,className:"w-5 h-5 flex items-center justify-center rounded text-ink/40 hover:text-ink hover:bg-ink/10 cursor-pointer transition-colors disabled:opacity-30 disabled:cursor-default",children:e(ie,{size:11})}),e("button",{type:"button",onClick:M,title:`Reveal ${t.path} in the file manager`,"aria-label":`Reveal ${t.path}`,className:"w-5 h-5 flex items-center justify-center rounded text-ink/40 hover:text-ink hover:bg-ink/10 cursor-pointer transition-colors",children:e(Dt,{size:11})})]}),e("div",{className:"col-start-2 col-span-2 flex flex-wrap items-center gap-x-2 gap-y-0.5 min-w-0 mt-0.5",children:[t.isRepo?e(d,{children:[e("span",{className:`text-[10px] font-mono truncate ${t.detached?"text-warning":"text-ink/50"}`,title:t.detached?`Detached HEAD at ${t.branch}`:`On branch ${t.branch}`,children:t.branch}),e("span",{className:"text-[10px] text-ink/25","aria-hidden":!0,children:"·"}),e(X,{row:t})]}):e("span",{className:"text-[10px] text-ink/40 truncate",children:t.error??"Not a git repository"}),t.isRepo&&t.subject&&e(d,{children:[e("span",{className:"text-[10px] text-ink/25","aria-hidden":!0,children:"·"}),e("span",{className:"text-[10px] text-ink/40 truncate min-w-0",title:t.subject,children:t.subject})]})]})]})}function X({row:t}){let r=[];if(t.operation)r.push(e("span",{className:"flex flex-shrink-0 items-center gap-0.5 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning",title:t.operation==="stash-pop"?`A stash pop stopped on ${t.conflicts} conflict(s)`:`A ${li[t.operation]} is in progress, stopped on ${t.conflicts} conflict(s)`,children:[e(D,{size:9}),li[t.operation]]},"operation"));else if(t.conflicts>0)r.push(e("span",{className:"flex flex-shrink-0 items-center gap-0.5 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning",title:`${t.conflicts} conflicted path(s)`,children:[e(D,{size:9}),t.conflicts]},"conflicts"));if(t.changed>0||t.untracked>0)r.push(e("span",{className:"flex-shrink-0 rounded border border-info/30 px-1 text-[10px] font-mono tabular-nums text-info",title:`${t.changed} changed, ${t.untracked} untracked`,children:[t.changed>0?`${t.changed}±`:"",t.changed>0&&t.untracked>0?" ":"",t.untracked>0?`${t.untracked}?`:""]},"dirty"));if(t.gone)r.push(e("span",{className:"flex-shrink-0 rounded border border-warning/30 px-1 text-[10px] font-mono text-warning",title:`${t.upstream} no longer exists on the remote — fetch --prune to drop it`,children:"gone"},"gone"));else if(t.upstream&&(t.ahead>0||t.behind>0))r.push(e("span",{className:"flex flex-shrink-0 items-center gap-0.5 text-[10px] font-mono tabular-nums text-ink/60",title:`${t.ahead} ahead of, ${t.behind} behind ${t.upstream}`,children:[t.ahead>0&&e("span",{className:"flex items-center",children:[e(No,{size:9}),t.ahead]}),t.behind>0&&e("span",{className:"flex items-center",children:[e(Or,{size:9}),t.behind]})]},"track"));if(r.length===0)return e("span",{className:"text-[10px] font-mono text-ink/30",title:"Nothing to report: clean and in sync",children:"clean, in sync"});return e(d,{children:r})}function q(t){let{open:r,rootPath:p,scanning:c}=t,[l,g]=n([]),[M,y]=n(!1),[S,P]=n(!1),[k,v]=n(null),[w,j]=n(0),E=t.repos.join("\x00"),G=o(!0),b=o(null);i(()=>(G.current=!0,()=>{G.current=!1,b.current?.abort(),b.current=null}),[]);let A=a(async()=>{b.current?.abort();let R=new AbortController;b.current=R,P(!0),y(!0);try{let N=new URLSearchParams({repoDetails:"1"});if(p)N.set("root",p);let L=await fetch(`/api/fs/git?${N.toString()}`,{signal:R.signal}),T=await L.json();if(!G.current||b.current!==R)return;if(!L.ok||!Array.isArray(T.details)){v(T.error||`Failed to read repositories (HTTP ${L.status})`);return}g(T.details),v(null)}catch(N){if(!G.current||b.current!==R)return;if(N instanceof Error&&N.name==="AbortError")return;v(N instanceof Error?N.message:"Failed to read repositories")}finally{if(G.current&&b.current===R)b.current=null,P(!1),y(!1)}},[p]);i(()=>{if(!r){g([]),v(null),y(!1);return}A()},[r,A,E,c,w]);let O=a(()=>j((R)=>R+1),[]);return{details:l,loading:M,reading:S,error:k,refresh:O}}function I(t){let r=new Map;for(let p of t){if(!p||p==="."){if(!r.has(""))r.set("",{key:"",label:null,paths:[]});r.get("").paths.push(".");continue}let c=p.indexOf("/"),l=c===-1?"":p.slice(0,c),g=r.get(l);if(!g)g={key:l,label:l===""?null:l,paths:[]},r.set(l,g);g.paths.push(p)}for(let p of r.values())p.paths.sort((c,l)=>c==="."?-1:l==="."?1:c.localeCompare(l));return[...r.values()].sort((p,c)=>{if(p.key==="")return-1;if(c.key==="")return 1;return p.key.localeCompare(c.key)})}function B(t,r){if(t===".")return"workspace root";if(r==="")return t;return t.slice(r.length+1)}function U({isOpen:t,rootPath:r,activeRepo:p,repos:c,scanning:l,onSelectRepo:g,onRefreshRepos:M,onClose:y}){let[S,P]=n(""),[k,v]=n(null),{details:w,loading:j,reading:E,error:G,refresh:b}=q({open:t,rootPath:r,repos:c,scanning:l});i(()=>{if(!t)P(""),v(null)},[t]);let A=u(()=>{let x=S.trim().toLowerCase();if(!x)return w;return w.filter((h)=>h.path.toLowerCase().includes(x))},[w,S]),O=u(()=>I(A.map((x)=>x.path)),[A]),R=u(()=>{let x=new Map;for(let h of w)x.set(h.path,h);return x},[w]),N=a(()=>{M(),b()},[M,b]),L=a(async(x)=>{let h=r?Tu(r,x==="."?"":x):x,z=await hn(h);v(z?{text:`Copied ${h}`,kind:"success"}:{text:"Clipboard unavailable",kind:"error"})},[r]),T=a(async(x)=>{let h=new FormData;if(h.append("actionType","open_explorer"),h.append("path","."),h.append("repo",x),r)h.append("root",r);try{let z=await fetch("/api/fs/action",{method:"POST",body:h}),H=await z.json();if(!z.ok||H.error)v({text:H.error||"Could not open the file manager",kind:"error"})}catch{v({text:"Could not open the file manager",kind:"error"})}},[r]);if(!t)return null;return e(J,{onClose:y,maxWidthClass:"max-w-[min(96vw,720px)]",header:e("div",{className:"flex items-center gap-2 min-w-0",children:[e(dp,{size:14,className:"text-ink/60 flex-shrink-0"}),e("h2",{className:"text-sm font-semibold text-ink",children:"Repositories"}),e("span",{className:"text-[10px] font-mono text-ink/50 truncate",children:[c.length," in this workspace"]})]}),children:[e("div",{className:"px-5 py-3 flex items-center gap-2 border-b border-ink/10",children:[e(F,{size:12,className:"text-ink/40 flex-shrink-0"}),e("input",{type:"text",value:S,onChange:(x)=>P(x.currentTarget.value),placeholder:"Filter repositories…","aria-label":"Filter repositories",className:"flex-1 min-w-0 bg-transparent outline-none text-xs text-ink placeholder-ink/40",autoFocus:!0}),e("button",{type:"button",onClick:N,disabled:E||l,title:"Re-discover repositories and re-read their state","aria-label":"Refresh repositories",className:"text-ink/40 hover:text-ink transition-colors cursor-pointer disabled:opacity-40 flex-shrink-0",children:e(C,{size:12,className:E||l?"animate-spin":""})})]}),l&&e("div",{className:"px-5 py-1.5 border-b border-ink/10 text-[10px] font-mono text-ink/50 flex items-center gap-1.5",children:[e(m,{size:10,className:"animate-spin"}),"Still discovering repositories in this workspace…"]}),k&&e("div",{className:`px-5 py-1.5 border-b border-ink/10 text-[10px] font-mono truncate ${k.kind==="error"?"text-error":"text-ink/60"}`,title:k.text,role:"status",children:k.text}),e("div",{className:"min-h-[40vh] max-h-[60vh] overflow-y-auto scrollbar-overlay-container",children:j&&w.length===0?e("div",{className:"flex items-center justify-center gap-2 py-12 text-xs text-ink/50 font-mono",children:[e(m,{size:14,className:"animate-spin text-info"}),"Reading repositories…"]}):G?e("div",{className:"py-12 px-6 text-center text-xs text-error font-mono",children:G}):A.length===0?e("div",{className:"py-12 text-center text-xs text-ink/40 font-mono",children:S.trim()?"No matching repositories.":"No repositories in this workspace."}):O.map((x)=>e("div",{children:[e("div",{className:"px-4 py-1 text-[10px] uppercase tracking-wider text-ink/40 font-semibold bg-canvas/40 border-b border-ink/5 sticky top-0",children:x.label??Gl(".",r)}),x.paths.map((h)=>{let z=R.get(h);if(!z)return null;return e(_,{row:z,active:h===p,name:B(h,x.key),loading:E,onSelect:()=>{g(h),y()},onCopyPath:()=>void L(h),onReveal:()=>void T(h)},h)})]},x.key))})]})}function fr({rootPath:t,activeRepo:r,onSelectRepo:p,repos:c,scanning:l,onRefreshRepos:g}){let[M,y]=n(!1),S=u(()=>({root:t??null,repo:r,rows:c.map((k)=>({repo:k,label:Gl(k,t),short:wp(k,t)})),scanning:l,ready:!0,setRepo:p,refresh:g}),[t,r,c,l,p,g]),P=a(()=>y(!0),[]);return e("div",{className:"relative",children:[e(xp,{scope:S,onManage:P}),e(U,{isOpen:M,rootPath:t,activeRepo:r,repos:c,scanning:l,onSelectRepo:p,onRefreshRepos:g,onClose:()=>y(!1)})]})}var W="(pointer: coarse)",V="(hover: none)";function Q(){if(typeof window>"u")return!1;if(window.matchMedia(W).matches)return!0;return navigator.maxTouchPoints>0&&window.matchMedia(V).matches}function Iu(){let[t,r]=n(Q);return i(()=>{let p=[W,V].map((l)=>window.matchMedia(l)),c=()=>r(Q());for(let l of p)l.addEventListener("change",c);return()=>{for(let l of p)l.removeEventListener("change",c)}},[]),t}
2
+ export{Ss,dp,fr,Iu};
@@ -0,0 +1,214 @@
1
+ import{t,l,ot,aa,x,R,M,O,P,z,j,G,p,ia,Bo,h,nr,rr,H,An,st,Ye,Je,zn,Ol,_t,St,xn,Tt,lt}from"./index-hc2jmzpx.js";import{Nt}from"./index-4s8ttfxj.js";import{Na}from"./index-9sd0vjmh.js";var h1="flowchart-",d1=class{constructor(){this.vertexCounter=0,this.config=p(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=M,this.setAccDescription=P,this.setDiagramTitle=j,this.getAccTitle=O,this.getAccDescription=z,this.getDiagramTitle=G,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{t(this,"FlowDB")}sanitizeText(e){return x.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,a,n,o,k,c={},A){if(!e||e.trim().length===0)return;let f;if(A!==void 0){let T;if(!A.includes(`
2
+ `))T=`{
3
+ `+A+`
4
+ }`;else T=A+`
5
+ `;f=rr(T,{schema:nr})}let I=this.subGraphLookup.get(e);if(I&&f){I.metadata={...I.metadata,...f};return}let _=this.edges.find((T)=>T.id===e);if(_){let T=f;if(T?.animate!==void 0)_.animate=T.animate;if(T?.animation!==void 0)_.animation=T.animation;if(T?.curve!==void 0)_.interpolate=T.curve;return}let L,D=this.vertices.get(e);if(D===void 0){if(r===void 0&&a===void 0&&n!==void 0&&n!==null)l.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`);D={id:e,labelType:"text",domId:h1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,D)}if(this.vertexCounter++,r!==void 0){if(this.config=p(),L=this.sanitizeText(r.text.trim()),D.labelType=r.type,L.startsWith('"')&&L.endsWith('"'))L=L.substring(1,L.length-1);D.text=L}else if(D.text===void 0)D.text=e;if(a!==void 0)D.type=a;if(n!==void 0&&n!==null)n.forEach((T)=>{D.styles.push(T)});if(o!==void 0&&o!==null)o.forEach((T)=>{D.classes.push(T)});if(k!==void 0)D.dir=k;if(D.props===void 0)D.props=c;else if(c!==void 0)Object.assign(D.props,c);if(f!==void 0){if(f.shape){if(f.shape!==f.shape.toLowerCase()||f.shape.includes("_"))throw Error(`No such shape: ${f.shape}. Shape names should be lowercase.`);else if(!Ol(f.shape))throw Error(`No such shape: ${f.shape}.`);D.type=f?.shape}if(f?.label)D.text=f?.label,D.labelType=this.sanitizeNodeLabelType(f?.labelType);if(f?.icon){if(D.icon=f?.icon,!f.label?.trim()&&D.text===e)D.text=""}if(f?.form)D.form=f?.form;if(f?.pos)D.pos=f?.pos;if(f?.img){if(D.img=f?.img,!f.label?.trim()&&D.text===e)D.text=""}if(f?.constraint)D.constraint=f.constraint;if(f.w)D.assetWidth=Number(f.w);if(f.h)D.assetHeight=Number(f.h)}}addSingleLink(e,r,a,n){let c={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};l.info("abc78 Got edge...",c);let A=a.text;if(A!==void 0){if(c.text=this.sanitizeText(A.text.trim()),c.text.startsWith('"')&&c.text.endsWith('"'))c.text=c.text.substring(1,c.text.length-1);c.labelType=this.sanitizeNodeLabelType(A.type)}if(a!==void 0)c.type=a.type,c.stroke=a.stroke,c.length=a.length>10?10:a.length;if(n&&!this.edges.some((f)=>f.id===n))c.id=n,c.isUserDefinedId=!0;else{let f=this.edges.filter((I)=>I.start===c.start&&I.end===c.end);if(f.length===0)c.id=An(c.start,c.end,{counter:0,prefix:"L"});else c.id=An(c.start,c.end,{counter:f.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))l.info("Pushing edge..."),this.edges.push(c);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
+
7
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
+ You cannot set this config via configuration inside the diagram as it is a secure config.
9
+ You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,a){let n=this.isLinkData(a)?a.id.replace("@",""):void 0;l.info("addLink",e,r,n);for(let o of e)for(let k of r){let c=o===e[e.length-1],A=k===r[0];if(c&&A)this.addSingleLink(o,k,a,n);else this.addSingleLink(o,k,a,void 0)}}updateLinkInterpolate(e,r){e.forEach((a)=>{if(a==="default")this.edges.defaultInterpolate=r;else this.edges[a].interpolate=r})}updateLink(e,r){e.forEach((a)=>{if(typeof a==="number"&&a>=this.edges.length)throw Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(a==="default")this.edges.defaultStyle=r;else if(this.edges[a].style=r,(this.edges[a]?.style?.length??0)>0&&!this.edges[a]?.style?.some((n)=>n?.startsWith("fill")))this.edges[a]?.style?.push("fill:none")})}addClass(e,r){let a=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((n)=>{let o=this.classes.get(n);if(o===void 0)o={id:n,styles:[],textStyles:[]},this.classes.set(n,o);if(a!==void 0&&a!==null)a.forEach((k)=>{if(/color/.exec(k)){let c=k.replace("fill","bgFill");o.textStyles.push(c)}o.styles.push(k)})})}setDirection(e){if(this.direction=e.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let a of e.split(",")){let n=this.vertices.get(a);if(n)n.classes.push(r);let o=this.edges.find((c)=>c.id===a);if(o)o.classes.push(r);let k=this.subGraphLookup.get(a);if(k)k.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let a of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,r)}setClickFun(e,r,a){if(p().securityLevel!=="loose")return;if(r===void 0)return;let n=[];if(typeof a==="string"){n=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let k=0;k<n.length;k++){let c=n[k].trim();if(c.startsWith('"')&&c.endsWith('"'))c=c.substr(1,c.length-2);n[k]=c}}if(n.length===0)n.push(e);let o=this.vertices.get(e);if(o)o.haveCallback=!0,this.funs.push(()=>{let k=this.lookUpDomId(e),c=document.querySelector(`[id="${k}"]`);if(c!==null)c.addEventListener("click",()=>{H.runFunc(r,...n)},!1)})}setLink(e,r,a){e.split(",").forEach((n)=>{let o=this.vertices.get(n);if(o!==void 0)o.link=H.formatUrl(r,this.config),o.linkTarget=a}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,a){e.split(",").forEach((n)=>{this.setClickFun(n,r,a)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=Na();h(e).select("svg").selectAll("g.node").on("mouseover",(o)=>{let k=h(o.currentTarget),c=k.attr("title");if(c===null)return;let A=o.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(k.attr("title")).style("left",window.scrollX+A.left+(A.right-A.left)/2+"px").style("top",window.scrollY+A.bottom+"px"),r.html(Nt.sanitize(c)),k.classed("hover",!0)}).on("mouseout",(o)=>{r.transition().duration(500).style("opacity",0),h(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=p(),R()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,a){let n=e.text.trim(),o=a.text;if(e===a&&/\s/.exec(a.text))n=void 0;let c=t((L)=>{let D={boolean:{},number:{},string:{}},T=[],B;return{nodeList:L.filter(function(ie){let d=typeof ie;if(ie.stmt&&ie.stmt==="dir")return B=ie.value,!1;if(ie.trim()==="")return!1;if(d in D)return D[d].hasOwnProperty(ie)?!1:D[d][ie]=!0;else return T.includes(ie)?!1:T.push(ie)}),dir:B}},"uniq")(r.flat()),{nodeList:A,dir:f}=c,I=p().flowchart??{};if(f=f??(I.inheritDir?this.getDirection()??p().direction??void 0:void 0),this.version==="gen-1")for(let L=0;L<A.length;L++)A[L]=this.lookUpDomId(A[L]);n=n??"subGraph"+this.subCount,o=o||"",o=this.sanitizeText(o),this.subCount=this.subCount+1;let _={id:n,nodes:A,title:o.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(a?.type)};return l.info("Adding",_.id,_.nodes,_.dir),_.nodes=this.makeUniq(_,this.subGraphs).nodes,this.subGraphs.push(_),this.subGraphLookup.set(n,_),n}getPosForId(e){for(let[r,a]of this.subGraphs.entries())if(a.id===e)return r;return-1}indexNodes2(e,r){let a=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let n=0,o=1;while(n<a.length){let k=this.getPosForId(a[n]);if(k>=0){let c=this.indexNodes2(e,k);if(c.result)return{result:!0,count:o+c.count};else o=o+c.count}n=n+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(e){let r=e.trim(),a="arrow_open";switch(r[0]){case"<":a="arrow_point",r=r.slice(1);break;case"x":a="arrow_cross",r=r.slice(1);break;case"o":a="arrow_circle",r=r.slice(1);break}let n="normal";if(r.includes("="))n="thick";if(r.includes("."))n="dotted";return{type:a,stroke:n}}countChar(e,r){let a=r.length,n=0;for(let o=0;o<a;++o)if(r[o]===e)++n;return n}destructEndLink(e){let r=e.trim(),a=r.slice(0,-1),n="arrow_open";switch(r.slice(-1)){case"x":if(n="arrow_cross",r.startsWith("x"))n="double_"+n,a=a.slice(1);break;case">":if(n="arrow_point",r.startsWith("<"))n="double_"+n,a=a.slice(1);break;case"o":if(n="arrow_circle",r.startsWith("o"))n="double_"+n,a=a.slice(1);break}let o="normal",k=a.length-1;if(a.startsWith("="))o="thick";if(a.startsWith("~"))o="invisible";let c=this.countChar(".",a);if(c)o="dotted",k=c;return{type:n,stroke:o,length:k}}destructLink(e,r){let a=this.destructEndLink(e),n;if(r){if(n=this.destructStartLink(r),n.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=a.type;else{if(n.type!==a.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}if(n.type==="double_arrow")n.type="double_arrow_point";return n.length=a.length,n}return a}exists(e,r){for(let a of e)if(a.nodes.includes(r))return!0;return!1}makeUniq(e,r){let a=[];return e.nodes.forEach((n,o)=>{if(!this.exists(r,n))a.push(e.nodes[o])}),{nodes:a}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon){if(e.form==="circle")return"iconCircle";if(e.form==="square")return"iconSquare";if(e.form==="rounded")return"iconRounded";return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find((a)=>a.id===r)}destructEdgeType(e){let r="none",a="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":a=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),a=r;break}return{arrowTypeStart:r,arrowTypeEnd:a}}addNodeFromVertex(e,r,a,n,o,k){let c=a.get(e.id),A=n.get(e.id)??!1,f=this.findNode(r,e.id);if(f)f.cssStyles=e.styles,f.cssCompiledStyles=this.getCompiledStyles(e.classes),f.cssClasses=e.classes.join(" ");else{let I={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:c,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:k,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(A)r.push({...I,isGroup:!0,shape:"rect"});else r.push({...I,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:o.flowchart?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let a of e){let n=this.classes.get(a);if(n?.styles)r=[...r,...n.styles??[]].map((o)=>o.trim());if(n?.textStyles)r=[...r,...n.textStyles??[]].map((o)=>o.trim())}return r}getData(){let e=p(),r=[],a=[],n=this.getSubGraphs(),o=new Map,k=new Map,c=new Map;for(let d of n)for(let m of d.nodes)if(this.subGraphLookup.has(m))c.set(m,d.id);let A=new Map,f=new Map;for(let d of n){let m=c.get(d.id);if(m!==void 0)f.set(m,[...f.get(m)??[],d.id])}let I=0,_=t((d)=>{A.set(d,I++);for(let m of f.get(d)??[])_(m)},"walk");for(let d of n)if(!c.has(d.id))_(d.id);let L=t((d)=>this.subGraphLookup.get(d)?.metadata?.view==="collapsed","isCollapsed"),D=t((d)=>{let m,ue=new Set,le=d;while(le!==void 0&&!ue.has(le)){if(ue.add(le),L(le))m=le;le=c.get(le)}return m},"outermostCollapsed"),T=new Set,B=new Map;for(let d of n){let m=D(d.id);if(m===void 0)continue;if(d.id!==m)T.add(d.id),B.set(d.id,m);for(let ue of d.nodes){if(ue===m)continue;T.add(ue),B.set(ue,m)}}for(let d=n.length-1;d>=0;d--){let m=n[d];if(T.has(m.id))continue;if(m.nodes.length>0)k.set(m.id,!0);for(let ue of m.nodes)o.set(ue,m.id)}for(let d=n.length-1;d>=0;d--){let m=n[d];if(T.has(m.id))continue;if(m.metadata?.view==="collapsed")r.push({id:m.id,label:m.title,labelStyle:"",labelType:m.labelType,parentId:o.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssClasses:m.classes.join(" "),shape:"collapsedGroup",dir:m.dir,isGroup:!1,look:e.look,colorIndex:A.get(m.id)});else r.push({id:m.id,label:m.title,labelStyle:"",labelType:m.labelType,parentId:o.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssClasses:m.classes.join(" "),shape:"rect",dir:m.dir,isGroup:!0,look:e.look,colorIndex:A.get(m.id),metadata:m.metadata})}this.getVertices().forEach((d)=>{if(T.has(d.id))return;this.addNodeFromVertex(d,r,o,k,e,e.look||"classic")});let ie=this.getEdges();return ie.forEach((d,m)=>{let{arrowTypeStart:ue,arrowTypeEnd:le}=this.destructEdgeType(d.type),U=[...ie.defaultStyle??[]],W=B.get(d.start)??d.start,K=B.get(d.end)??d.end;if(W===K&&(B.has(d.start)||B.has(d.end)))return;if(d.style)U.push(...d.style);let q={id:An(W,K,{counter:m,prefix:"L"},d.id),isUserDefinedId:d.isUserDefinedId,start:W,end:K,type:d.type??"normal",label:d.text,labelType:d.labelType,labelpos:"c",thickness:d.stroke,minlen:d.length,classes:d?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":ue,arrowTypeEnd:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":le,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(d.classes),labelStyle:U,style:U,pattern:d.stroke,look:e.look,animate:d.animate,animation:d.animation,curve:d.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};a.push(q)}),{nodes:r,edges:a,other:{},config:e}}defaultConfig(){return Bo.flowchart}},p1=t(function(e,r){return r.db.getClasses()},"getClasses"),f1=t(async function(e,r,a,n){l.info("REF0:"),l.info("Drawing state diagram (v2)",r);let{securityLevel:o,flowchart:k,layout:c}=p();n.db.setDiagramId(r),l.debug("Before getData: ");let A=n.db.getData();l.debug("Data: ",A);let f=Tt(r,o),I=n.db.getDirection();A.type=n.type,A.layoutAlgorithm=St(c),A.direction=I,A.nodeSpacing=k?.nodeSpacing||50,A.rankSpacing=k?.rankSpacing||50,A.markers=["point","circle","cross"],A.diagramId=r,l.debug("REF1:",A),await _t(A,f);let _=A.config.flowchart?.diagramPadding??8;H.insertTitle(f,"flowchartTitleText",k?.titleTopMargin||0,n.db.getDiagramTitle()),lt(f,_,"flowchart",k?.useMaxWidth||!1)},"draw"),b1={getClasses:p1,draw:f1},At=function(){var e=t(function(Be,b,g,C){for(g=g||{},C=Be.length;C--;g[Be[C]]=b);return g},"o"),r=[1,4],a=[1,3],n=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],k=[2,2],c=[1,13],A=[1,14],f=[1,15],I=[1,16],_=[1,23],L=[1,25],D=[1,26],T=[1,27],B=[1,50],Y=[1,49],ie=[1,29],d=[1,30],m=[1,31],ue=[1,32],le=[1,33],U=[1,45],W=[1,47],K=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],Ze=[1,34],$e=[1,35],et=[1,36],tt=[1,37],it=[1,38],Fe=[1,58],v=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],be=[1,62],ke=[1,61],ge=[1,63],Ie=[8,9,11,75,77,78],mt=[1,79],Re=[1,92],Ne=[1,97],Ge=[1,96],Pe=[1,93],Oe=[1,89],Me=[1,95],Ue=[1,91],We=[1,98],ze=[1,94],je=[1,99],Ke=[1,90],ve=[8,9,10,11,40,75,77,78],re=[8,9,10,11,40,46,75,77,78],ce=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Ct=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],He=[44,60,89,102,105,106,109,111,114,115,116],Dt=[1,122],Et=[1,123],rt=[1,125],at=[1,124],yt=[44,60,62,74,89,102,105,106,109,111,114,115,116],xt=[1,134],Ft=[1,148],Bt=[1,149],vt=[1,150],Lt=[1,151],Vt=[1,136],wt=[1,138],It=[1,142],Rt=[1,143],Gt=[1,144],Pt=[1,145],Ot=[1,146],Mt=[1,147],Ut=[1,152],Wt=[1,153],zt=[1,132],jt=[1,133],Kt=[1,140],Yt=[1,135],Ht=[1,139],qt=[1,137],ht=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Xt=[1,155],Qt=[1,157],N=[8,9,11],he=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],E=[1,177],ae=[1,173],ne=[1,174],S=[1,178],y=[1,175],F=[1,176],qe=[77,116,119],V=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Jt=[10,106],_e=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Ae=[1,248],me=[1,246],Ce=[1,250],De=[1,244],Te=[1,245],Ee=[1,247],Se=[1,249],ye=[1,251],Xe=[1,269],Zt=[8,9,11,106],fe=[8,9,10,11,60,84,105,106,109,110,111,112],dt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:t(function(b,g,C,u,w,s,Le){var i=s.length-1;switch(w){case 2:this.$=[];break;case 3:if(!Array.isArray(s[i])||s[i].length>0)s[i-1].push(s[i]);this.$=s[i-1];break;case 4:case 183:this.$=s[i];break;case 11:u.setDirection("TB"),this.$="TB";break;case 12:u.setDirection(s[i-1]),this.$=s[i-1];break;case 27:this.$=s[i-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=u.addSubGraph(s[i-6],s[i-1],s[i-4]);break;case 34:this.$=u.addSubGraph(s[i-3],s[i-1],s[i-3]);break;case 35:this.$=u.addSubGraph(void 0,s[i-1],void 0);break;case 37:this.$=s[i].trim(),u.setAccTitle(this.$);break;case 38:case 39:this.$=s[i].trim(),u.setAccDescription(this.$);break;case 43:this.$=s[i-1]+s[i];break;case 44:this.$=s[i];break;case 45:u.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),u.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 46:u.addLink(s[i-2].stmt,s[i],s[i-1]),this.$={stmt:s[i],nodes:s[i].concat(s[i-2].nodes)};break;case 47:u.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 48:this.$={stmt:s[i-1],nodes:s[i-1]};break;case 49:u.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),this.$={stmt:s[i-1],nodes:s[i-1],shapeData:s[i]};break;case 50:this.$={stmt:s[i],nodes:s[i]};break;case 51:this.$=[s[i]];break;case 52:u.addVertex(s[i-5][s[i-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-4]),this.$=s[i-5].concat(s[i]);break;case 53:this.$=s[i-4].concat(s[i]);break;case 54:this.$=s[i];break;case 55:this.$=s[i-2],u.setClass(s[i-2],s[i]);break;case 56:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"square");break;case 57:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"doublecircle");break;case 58:this.$=s[i-5],u.addVertex(s[i-5],s[i-2],"circle");break;case 59:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"ellipse");break;case 60:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"stadium");break;case 61:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"subroutine");break;case 62:this.$=s[i-7],u.addVertex(s[i-7],s[i-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[i-5],s[i-3]]]));break;case 63:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"cylinder");break;case 64:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"round");break;case 65:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"diamond");break;case 66:this.$=s[i-5],u.addVertex(s[i-5],s[i-2],"hexagon");break;case 67:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"odd");break;case 68:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"trapezoid");break;case 69:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"inv_trapezoid");break;case 70:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"lean_right");break;case 71:this.$=s[i-3],u.addVertex(s[i-3],s[i-1],"lean_left");break;case 72:this.$=s[i],u.addVertex(s[i]);break;case 73:s[i-1].text=s[i],this.$=s[i-1];break;case 74:case 75:s[i-2].text=s[i-1],this.$=s[i-2];break;case 76:this.$=s[i];break;case 77:var X=u.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1]};break;case 78:var X=u.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1],id:s[i-3]};break;case 79:this.$={text:s[i],type:"text"};break;case 80:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 81:this.$={text:s[i],type:"string"};break;case 82:this.$={text:s[i],type:"markdown"};break;case 83:var X=u.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=u.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:s[i-1]};break;case 85:this.$=s[i-1];break;case 86:this.$={text:s[i],type:"text"};break;case 87:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 88:this.$={text:s[i],type:"string"};break;case 89:case 104:this.$={text:s[i],type:"markdown"};break;case 101:this.$={text:s[i],type:"text"};break;case 102:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 103:this.$={text:s[i],type:"text"};break;case 105:this.$=s[i-4],u.addClass(s[i-2],s[i]);break;case 106:this.$=s[i-4],u.setClass(s[i-2],s[i]);break;case 107:case 115:this.$=s[i-1],u.setClickEvent(s[i-1],s[i]);break;case 108:case 116:this.$=s[i-3],u.setClickEvent(s[i-3],s[i-2]),u.setTooltip(s[i-3],s[i]);break;case 109:this.$=s[i-2],u.setClickEvent(s[i-2],s[i-1],s[i]);break;case 110:this.$=s[i-4],u.setClickEvent(s[i-4],s[i-3],s[i-2]),u.setTooltip(s[i-4],s[i]);break;case 111:this.$=s[i-2],u.setLink(s[i-2],s[i]);break;case 112:this.$=s[i-4],u.setLink(s[i-4],s[i-2]),u.setTooltip(s[i-4],s[i]);break;case 113:this.$=s[i-4],u.setLink(s[i-4],s[i-2],s[i]);break;case 114:this.$=s[i-6],u.setLink(s[i-6],s[i-4],s[i]),u.setTooltip(s[i-6],s[i-2]);break;case 117:this.$=s[i-1],u.setLink(s[i-1],s[i]);break;case 118:this.$=s[i-3],u.setLink(s[i-3],s[i-2]),u.setTooltip(s[i-3],s[i]);break;case 119:this.$=s[i-3],u.setLink(s[i-3],s[i-2],s[i]);break;case 120:this.$=s[i-5],u.setLink(s[i-5],s[i-4],s[i]),u.setTooltip(s[i-5],s[i-2]);break;case 121:this.$=s[i-4],u.addVertex(s[i-2],void 0,void 0,s[i]);break;case 122:this.$=s[i-4],u.updateLink([s[i-2]],s[i]);break;case 123:this.$=s[i-4],u.updateLink(s[i-2],s[i]);break;case 124:this.$=s[i-8],u.updateLinkInterpolate([s[i-6]],s[i-2]),u.updateLink([s[i-6]],s[i]);break;case 125:this.$=s[i-8],u.updateLinkInterpolate(s[i-6],s[i-2]),u.updateLink(s[i-6],s[i]);break;case 126:this.$=s[i-6],u.updateLinkInterpolate([s[i-4]],s[i]);break;case 127:this.$=s[i-6],u.updateLinkInterpolate(s[i-4],s[i]);break;case 128:case 130:this.$=[s[i]];break;case 129:case 131:s[i-2].push(s[i]),this.$=s[i-2];break;case 133:this.$=s[i-1]+s[i];break;case 181:this.$=s[i];break;case 182:this.$=s[i-1]+""+s[i];break;case 184:this.$=s[i-1]+""+s[i];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:a,12:n},{1:[3]},e(o,k,{5:6}),{4:7,9:r,10:a,12:n},{4:8,9:r,10:a,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:c,9:A,10:f,11:I,20:17,22:18,23:19,24:20,25:21,26:22,27:_,33:24,34:L,36:D,38:T,42:28,43:39,44:B,45:40,47:41,60:Y,84:ie,85:d,86:m,87:ue,88:le,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:Ze,122:$e,123:et,124:tt,125:it},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,55],9:[1,56],10:Fe,15:54,18:57},e(v,[2,3]),e(v,[2,4]),e(v,[2,5]),e(v,[2,6]),e(v,[2,7]),e(v,[2,8]),{8:be,9:ke,11:ge,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:be,9:ke,11:ge,21:68},{8:be,9:ke,11:ge,21:69},{8:be,9:ke,11:ge,21:70},{8:be,9:ke,11:ge,21:71},{8:be,9:ke,11:ge,21:72},{8:be,9:ke,10:[1,73],11:ge,21:74},e(v,[2,36]),{35:[1,75]},{37:[1,76]},e(v,[2,39]),e(Ie,[2,50],{18:77,39:78,10:Fe,40:mt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Re,44:Ne,60:Ge,80:[1,87],89:Pe,95:[1,84],97:[1,85],101:86,105:Oe,106:Me,109:Ue,111:We,114:ze,115:je,116:Ke,120:88},e(v,[2,185]),e(v,[2,186]),e(v,[2,187]),e(v,[2,188]),e(v,[2,189]),e(ve,[2,51]),e(ve,[2,54],{46:[1,100]}),e(re,[2,72],{113:113,29:[1,101],44:B,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:Y,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:U,102:W,105:K,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(ce,[2,181]),e(ce,[2,142]),e(ce,[2,143]),e(ce,[2,144]),e(ce,[2,145]),e(ce,[2,146]),e(ce,[2,147]),e(ce,[2,148]),e(ce,[2,149]),e(ce,[2,150]),e(ce,[2,151]),e(ce,[2,152]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,114]},e(Ct,[2,26],{18:115,10:Fe}),e(v,[2,27]),{42:116,43:39,44:B,45:40,47:41,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(v,[2,40]),e(v,[2,41]),e(v,[2,42]),e(He,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Dt,81:Et,116:rt,119:at},{75:[1,126],77:[1,127]},e(yt,[2,83]),e(v,[2,28]),e(v,[2,29]),e(v,[2,30]),e(v,[2,31]),e(v,[2,32]),{10:xt,12:Ft,14:Bt,27:vt,28:128,32:Lt,44:Vt,60:wt,75:It,80:[1,130],81:[1,131],83:141,84:Rt,85:Gt,86:Pt,87:Ot,88:Mt,89:Ut,90:Wt,91:129,105:zt,109:jt,111:Kt,114:Yt,115:Ht,116:qt},e(ht,k,{5:154}),e(v,[2,37]),e(v,[2,38]),e(Ie,[2,48],{44:Xt}),e(Ie,[2,49],{18:156,10:Fe,40:Qt}),e(ve,[2,44]),{44:B,47:158,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:B,47:162,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:B,47:163,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(N,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(N,[2,115],{120:168,10:[1,167],14:Re,44:Ne,60:Ge,89:Pe,105:Oe,106:Me,109:Ue,111:We,114:ze,115:je,116:Ke}),e(N,[2,117],{10:[1,169]}),e(he,[2,183]),e(he,[2,170]),e(he,[2,171]),e(he,[2,172]),e(he,[2,173]),e(he,[2,174]),e(he,[2,175]),e(he,[2,176]),e(he,[2,177]),e(he,[2,178]),e(he,[2,179]),e(he,[2,180]),{44:B,47:170,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:179,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:181,50:[1,180],67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:182,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:183,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:184,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{109:[1,185]},{30:186,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:187,65:[1,188],67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:189,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:190,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{30:191,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},e(ce,[2,182]),e(o,[2,20]),e(Ct,[2,25]),e(Ie,[2,46],{39:192,18:193,10:Fe,40:mt}),e(He,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{77:[1,197],79:198,116:rt,119:at},e(qe,[2,79]),e(qe,[2,81]),e(qe,[2,82]),e(qe,[2,168]),e(qe,[2,169]),{76:199,79:121,80:Dt,81:Et,116:rt,119:at},e(yt,[2,84]),{8:be,9:ke,10:xt,11:ge,12:Ft,14:Bt,21:201,27:vt,29:[1,200],32:Lt,44:Vt,60:wt,75:It,83:141,84:Rt,85:Gt,86:Pt,87:Ot,88:Mt,89:Ut,90:Wt,91:202,105:zt,109:jt,111:Kt,114:Yt,115:Ht,116:qt},e(V,[2,101]),e(V,[2,103]),e(V,[2,104]),e(V,[2,157]),e(V,[2,158]),e(V,[2,159]),e(V,[2,160]),e(V,[2,161]),e(V,[2,162]),e(V,[2,163]),e(V,[2,164]),e(V,[2,165]),e(V,[2,166]),e(V,[2,167]),e(V,[2,90]),e(V,[2,91]),e(V,[2,92]),e(V,[2,93]),e(V,[2,94]),e(V,[2,95]),e(V,[2,96]),e(V,[2,97]),e(V,[2,98]),e(V,[2,99]),e(V,[2,100]),{6:11,7:12,8:c,9:A,10:f,11:I,20:17,22:18,23:19,24:20,25:21,26:22,27:_,32:[1,203],33:24,34:L,36:D,38:T,42:28,43:39,44:B,45:40,47:41,60:Y,84:ie,85:d,86:m,87:ue,88:le,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:Ze,122:$e,123:et,124:tt,125:it},{10:Fe,18:204},{44:[1,205]},e(ve,[2,43]),{10:[1,206],44:B,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},e(Jt,[2,128]),{10:[1,210],44:B,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:B,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},e(N,[2,109],{10:[1,213]}),e(N,[2,111],{10:[1,214]}),{80:[1,215]},e(he,[2,184]),{80:[1,216],98:[1,217]},e(ve,[2,55],{113:113,44:B,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:E,82:219,116:S,117:y,118:F},e(_e,[2,86]),e(_e,[2,88]),e(_e,[2,89]),e(_e,[2,153]),e(_e,[2,154]),e(_e,[2,155]),e(_e,[2,156]),{49:[1,220],67:E,82:219,116:S,117:y,118:F},{30:221,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{51:[1,222],67:E,82:219,116:S,117:y,118:F},{53:[1,223],67:E,82:219,116:S,117:y,118:F},{55:[1,224],67:E,82:219,116:S,117:y,118:F},{57:[1,225],67:E,82:219,116:S,117:y,118:F},{60:[1,226]},{64:[1,227],67:E,82:219,116:S,117:y,118:F},{66:[1,228],67:E,82:219,116:S,117:y,118:F},{30:229,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},{31:[1,230],67:E,82:219,116:S,117:y,118:F},{67:E,69:[1,231],71:[1,232],82:219,116:S,117:y,118:F},{67:E,69:[1,234],71:[1,233],82:219,116:S,117:y,118:F},e(Ie,[2,45],{18:156,10:Fe,40:Qt}),e(Ie,[2,47],{44:Xt}),e(He,[2,75]),e(He,[2,74]),{62:[1,235],67:E,82:219,116:S,117:y,118:F},e(He,[2,77]),e(qe,[2,80]),{77:[1,236],79:198,116:rt,119:at},{30:237,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},e(ht,k,{5:238}),e(V,[2,102]),e(v,[2,35]),{43:239,44:B,45:40,47:41,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Fe,18:240},{10:Ae,60:me,84:Ce,92:241,105:De,107:242,108:243,109:Te,110:Ee,111:Se,112:ye},{10:Ae,60:me,84:Ce,92:252,104:[1,253],105:De,107:242,108:243,109:Te,110:Ee,111:Se,112:ye},{10:Ae,60:me,84:Ce,92:254,104:[1,255],105:De,107:242,108:243,109:Te,110:Ee,111:Se,112:ye},{105:[1,256]},{10:Ae,60:me,84:Ce,92:257,105:De,107:242,108:243,109:Te,110:Ee,111:Se,112:ye},{44:B,47:258,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(N,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(N,[2,116]),e(N,[2,118],{10:[1,262]}),e(N,[2,119]),e(re,[2,56]),e(_e,[2,87]),e(re,[2,57]),{51:[1,263],67:E,82:219,116:S,117:y,118:F},e(re,[2,64]),e(re,[2,59]),e(re,[2,60]),e(re,[2,61]),{109:[1,264]},e(re,[2,63]),e(re,[2,65]),{66:[1,265],67:E,82:219,116:S,117:y,118:F},e(re,[2,67]),e(re,[2,68]),e(re,[2,70]),e(re,[2,69]),e(re,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(He,[2,78]),{31:[1,266],67:E,82:219,116:S,117:y,118:F},{6:11,7:12,8:c,9:A,10:f,11:I,20:17,22:18,23:19,24:20,25:21,26:22,27:_,32:[1,267],33:24,34:L,36:D,38:T,42:28,43:39,44:B,45:40,47:41,60:Y,84:ie,85:d,86:m,87:ue,88:le,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:Ze,122:$e,123:et,124:tt,125:it},e(ve,[2,53]),{43:268,44:B,45:40,47:41,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(N,[2,121],{106:Xe}),e(Zt,[2,130],{108:270,10:Ae,60:me,84:Ce,105:De,109:Te,110:Ee,111:Se,112:ye}),e(fe,[2,132]),e(fe,[2,134]),e(fe,[2,135]),e(fe,[2,136]),e(fe,[2,137]),e(fe,[2,138]),e(fe,[2,139]),e(fe,[2,140]),e(fe,[2,141]),e(N,[2,122],{106:Xe}),{10:[1,271]},e(N,[2,123],{106:Xe}),{10:[1,272]},e(Jt,[2,129]),e(N,[2,105],{106:Xe}),e(N,[2,106],{113:113,44:B,60:Y,89:U,102:W,105:K,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(N,[2,110]),e(N,[2,112],{10:[1,273]}),e(N,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:be,9:ke,11:ge,21:278},e(v,[2,34]),e(ve,[2,52]),{10:Ae,60:me,84:Ce,105:De,107:279,108:243,109:Te,110:Ee,111:Se,112:ye},e(fe,[2,133]),{14:Re,44:Ne,60:Ge,89:Pe,101:280,105:Oe,106:Me,109:Ue,111:We,114:ze,115:je,116:Ke,120:88},{14:Re,44:Ne,60:Ge,89:Pe,101:281,105:Oe,106:Me,109:Ue,111:We,114:ze,115:je,116:Ke,120:88},{98:[1,282]},e(N,[2,120]),e(re,[2,58]),{30:283,67:E,80:ae,81:ne,82:172,116:S,117:y,118:F},e(re,[2,66]),e(ht,k,{5:284}),e(Zt,[2,131],{108:270,10:Ae,60:me,84:Ce,105:De,109:Te,110:Ee,111:Se,112:ye}),e(N,[2,126],{120:168,10:[1,285],14:Re,44:Ne,60:Ge,89:Pe,105:Oe,106:Me,109:Ue,111:We,114:ze,115:je,116:Ke}),e(N,[2,127],{120:168,10:[1,286],14:Re,44:Ne,60:Ge,89:Pe,105:Oe,106:Me,109:Ue,111:We,114:ze,115:je,116:Ke}),e(N,[2,114]),{31:[1,287],67:E,82:219,116:S,117:y,118:F},{6:11,7:12,8:c,9:A,10:f,11:I,20:17,22:18,23:19,24:20,25:21,26:22,27:_,32:[1,288],33:24,34:L,36:D,38:T,42:28,43:39,44:B,45:40,47:41,60:Y,84:ie,85:d,86:m,87:ue,88:le,89:U,102:W,105:K,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:Ze,122:$e,123:et,124:tt,125:it},{10:Ae,60:me,84:Ce,92:289,105:De,107:242,108:243,109:Te,110:Ee,111:Se,112:ye},{10:Ae,60:me,84:Ce,92:290,105:De,107:242,108:243,109:Te,110:Ee,111:Se,112:ye},e(re,[2,62]),e(v,[2,33]),e(N,[2,124],{106:Xe}),e(N,[2,125],{106:Xe})],defaultActions:{},parseError:t(function(b,g){if(g.recoverable)this.trace(b);else{var C=Error(b);throw C.hash=g,C}},"parseError"),parse:t(function(b){var g=this,C=[0],u=[],w=[null],s=[],Le=this.table,i="",X=0,$t=0,e1=0,u1=2,t1=1,o1=s.slice.call(arguments,1),se=Object.create(this.lexer),Ve={yy:{}};for(var pt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,pt))Ve.yy[pt]=this.yy[pt];if(se.setInput(b,Ve.yy),Ve.yy.lexer=se,Ve.yy.parser=this,typeof se.yylloc>"u")se.yylloc={};var ft=se.yylloc;s.push(ft);var l1=se.options&&se.options.ranges;if(typeof Ve.yy.parseError==="function")this.parseError=Ve.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function c1(pe){C.length=C.length-2*pe,w.length=w.length-pe,s.length=s.length-pe}t(c1,"popStack");function s1(){var pe=u.pop()||se.lex()||t1;if(typeof pe!=="number"){if(pe instanceof Array)u=pe,pe=u.pop();pe=g.symbols_[pe]||pe}return pe}t(s1,"lex");var oe,bt,we,de,C1,kt,Qe={},ut,xe,i1,ct;while(!0){if(we=C[C.length-1],this.defaultActions[we])de=this.defaultActions[we];else{if(oe===null||typeof oe>"u")oe=s1();de=Le[we]&&Le[we][oe]}if(typeof de>"u"||!de.length||!de[0]){var gt="";ct=[];for(ut in Le[we])if(this.terminals_[ut]&&ut>u1)ct.push("'"+this.terminals_[ut]+"'");if(se.showPosition)gt="Parse error on line "+(X+1)+`:
10
+ `+se.showPosition()+`
11
+ Expecting `+ct.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'";else gt="Parse error on line "+(X+1)+": Unexpected "+(oe==t1?"end of input":"'"+(this.terminals_[oe]||oe)+"'");this.parseError(gt,{text:se.match,token:this.terminals_[oe]||oe,line:se.yylineno,loc:ft,expected:ct})}if(de[0]instanceof Array&&de.length>1)throw Error("Parse Error: multiple actions possible at state: "+we+", token: "+oe);switch(de[0]){case 1:if(C.push(oe),w.push(se.yytext),s.push(se.yylloc),C.push(de[1]),oe=null,!bt){if($t=se.yyleng,i=se.yytext,X=se.yylineno,ft=se.yylloc,e1>0)e1--}else oe=bt,bt=null;break;case 2:if(xe=this.productions_[de[1]][1],Qe.$=w[w.length-xe],Qe._$={first_line:s[s.length-(xe||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(xe||1)].first_column,last_column:s[s.length-1].last_column},l1)Qe._$.range=[s[s.length-(xe||1)].range[0],s[s.length-1].range[1]];if(kt=this.performAction.apply(Qe,[i,$t,X,Ve.yy,de[1],w,s].concat(o1)),typeof kt<"u")return kt;if(xe)C=C.slice(0,-1*xe*2),w=w.slice(0,-1*xe),s=s.slice(0,-1*xe);C.push(this.productions_[de[1]][0]),w.push(Qe.$),s.push(Qe._$),i1=Le[C[C.length-2]][C[C.length-1]],C.push(i1);break;case 3:return!0}}return!0},"parse")},n1=function(){var Be={EOF:1,parseError:t(function(g,C){if(this.yy.parser)this.yy.parser.parseError(g,C);else throw Error(g)},"parseError"),setInput:t(function(b,g){if(this.yy=g||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var g=b.match(/(?:\r\n?|\n).*/g);if(g)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),b},"input"),unput:t(function(b){var g=b.length,C=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var u=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1)this.yylineno-=C.length-1;var w=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===u.length?this.yylloc.first_column:0)+u[u.length-C.length].length-C[0].length:this.yylloc.first_column-g},this.options.ranges)this.yylloc.range=[w[0],w[0]+this.yyleng-g];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(b){this.unput(this.match.slice(b))},"less"),pastInput:t(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var b=this.pastInput(),g=Array(b.length+1).join("-");return b+this.upcomingInput()+`
13
+ `+g+"^"},"showPosition"),test_match:t(function(b,g){var C,u,w;if(this.options.backtrack_lexer){if(w={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)w.yylloc.range=this.yylloc.range.slice(0)}if(u=b[0].match(/(?:\r\n?|\n).*/g),u)this.yylineno+=u.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],C=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(C)return C;else if(this._backtrack){for(var s in w)this[s]=w[s];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var b,g,C,u;if(!this._more)this.yytext="",this.match="";var w=this._currentRules();for(var s=0;s<w.length;s++)if(C=this._input.match(this.rules[w[s]]),C&&(!g||C[0].length>g[0].length)){if(g=C,u=s,this.options.backtrack_lexer)if(b=this.test_match(C,w[s]),b!==!1)return b;else if(this._backtrack){g=!1;continue}else return!1;else if(!this.options.flex)break}if(g){if(b=this.test_match(g,w[u]),b!==!1)return b;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var g=this.next();if(g)return g;else return this.lex()},"lex"),begin:t(function(g){this.conditionStack.push(g)},"begin"),popState:t(function(){var g=this.conditionStack.length-1;if(g>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(g){if(g=this.conditionStack.length-1-Math.abs(g||0),g>=0)return this.conditionStack[g];else return"INITIAL"},"topState"),pushState:t(function(g){this.begin(g)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(g,C,u,w){var s=w;switch(u){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),C.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Le=/\n\s*/g;return C.yytext=C.yytext.replace(Le,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:if(g.lex.firstGraph())this.begin("dir");return 12;case 36:if(g.lex.firstGraph())this.begin("dir");return 12;case 37:if(g.lex.firstGraph())this.begin("dir");return 12;case 38:if(g.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Be}();dt.lexer=n1;function nt(){this.yy={}}return t(nt,"Parser"),nt.prototype=dt,dt.Parser=nt,new nt}();At.parser=At;var r1=At,a1=Object.assign({},r1);a1.parse=(e)=>{let r=e.replace(/}\s*\n/g,`}
15
+ `);return r1.parse(r)};var k1=a1,g1=t((e)=>{let{theme:r,bkgColorArray:a,borderColorArray:n}=e;if(!Ye(r,n))return"";let o=Je(e.look),k=st(a),c="";for(let A=0;A<zn(e.THEME_COLOR_LIMIT,n);A++){let f=n[A%n.length],I=k?`fill: ${a[A%a.length]};`:"",_=`[data-look="${o}"][data-color-id="color-${A}"]`,L=t((T)=>`${_}.node ${T}, ${_}.rough-node ${T}`,"collapsedRule"),D=t((T)=>`${_}.swimlane.cluster .swimlane-title${T}, ${_}.swimlane.cluster .swimlane-body${T}`,"laneRule");c+=`
16
+
17
+ ${_}.cluster:not(.swimlane) rect {
18
+ stroke: ${f};
19
+ ${I}
20
+ }
21
+
22
+ ${_}.cluster:not(.swimlane) path {
23
+ stroke: ${f};
24
+ ${I}
25
+ }
26
+
27
+ /* Lane, classic and neo. */
28
+ ${_}.swimlane.cluster rect.swimlane-title,
29
+ ${_}.swimlane.cluster rect.swimlane-body {
30
+ stroke: ${f};
31
+ ${I}
32
+ }
33
+
34
+ /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
35
+ ${D(" path:nth-of-type(2)")} {
36
+ stroke: ${f};
37
+ }
38
+ ${k?`
39
+ /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
40
+ ${D(" path:first-of-type")} {
41
+ stroke: ${a[A%a.length]};
42
+ }
43
+ `:""}
44
+ ${L(".collapsed-group")},
45
+ ${L(".collapsed-group path")} {
46
+ stroke: ${f};
47
+ ${I}
48
+ }
49
+
50
+ /* The ellipsis dots and the separator take clusterBorder further down, so without
51
+ these the container is palette-coloured while its own markers are not. */
52
+ ${L(".collapsed-indicator")} {
53
+ fill: ${f};
54
+ }
55
+
56
+ ${L(".collapsed-separator")} {
57
+ stroke: ${f};
58
+ }
59
+ `}return c},"genColor"),A1=t((e,r)=>{let a=aa,n=a(e,"r"),o=a(e,"g"),k=a(e,"b");return ot(n,o,k,r)},"fade"),m1=t((e)=>`${g1(e)}
60
+ .label {
61
+ font-family: ${e.fontFamily};
62
+ color: ${e.nodeTextColor||e.textColor};
63
+ }
64
+ .cluster-label text {
65
+ fill: ${e.titleColor};
66
+ }
67
+ .cluster-label span {
68
+ color: ${e.titleColor};
69
+ }
70
+ .cluster-label span p {
71
+ background-color: transparent;
72
+ }
73
+
74
+ .label text,span {
75
+ fill: ${e.nodeTextColor||e.textColor};
76
+ color: ${e.nodeTextColor||e.textColor};
77
+ }
78
+
79
+ .node rect,
80
+ .node circle,
81
+ .node ellipse,
82
+ .node polygon,
83
+ .node path {
84
+ fill: ${e.mainBkg};
85
+ stroke: ${e.nodeBorder};
86
+ stroke-width: ${e.strokeWidth??1}px;
87
+ }
88
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
89
+ text-anchor: middle;
90
+ }
91
+
92
+ .node .katex path {
93
+ fill: #000;
94
+ stroke: #000;
95
+ stroke-width: 1px;
96
+ }
97
+
98
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
99
+ text-align: center;
100
+ }
101
+ .node.clickable {
102
+ cursor: pointer;
103
+ }
104
+
105
+
106
+ .root .anchor path {
107
+ fill: ${e.lineColor} !important;
108
+ stroke-width: 0;
109
+ stroke: ${e.lineColor};
110
+ }
111
+
112
+ .arrowheadPath {
113
+ fill: ${e.arrowheadColor};
114
+ }
115
+
116
+ .edgePaths .path {
117
+ stroke: ${e.lineColor};
118
+ stroke-width: ${e.strokeWidth??2}px;
119
+ }
120
+
121
+ .flowchart-link {
122
+ stroke: ${e.lineColor};
123
+ fill: none;
124
+ }
125
+
126
+ .edgeLabel {
127
+ background-color: ${e.edgeLabelBackground};
128
+ p {
129
+ background-color: ${e.edgeLabelBackground};
130
+ }
131
+ rect {
132
+ opacity: 0.5;
133
+ background-color: ${e.edgeLabelBackground};
134
+ fill: ${e.edgeLabelBackground};
135
+ }
136
+ text-align: center;
137
+ }
138
+
139
+ /* For html labels only */
140
+ .labelBkg {
141
+ background-color: ${A1(e.edgeLabelBackground,0.5)};
142
+ // background-color:
143
+ }
144
+
145
+ .cluster rect {
146
+ fill: ${e.clusterBkg};
147
+ stroke: ${e.clusterBorder};
148
+ stroke-width: 1px;
149
+ }
150
+
151
+ .cluster text {
152
+ fill: ${e.titleColor};
153
+ }
154
+
155
+ .cluster span {
156
+ color: ${e.titleColor};
157
+ }
158
+ /* .cluster div {
159
+ color: ${e.titleColor};
160
+ } */
161
+
162
+ /* Collapsed subgraph node (@{ view: collapsed }) */
163
+ .node .collapsed-indicator {
164
+ fill: ${e.clusterBorder};
165
+ stroke: none;
166
+ opacity: 0.6;
167
+ }
168
+
169
+ .node .collapsed-separator {
170
+ stroke: ${e.clusterBorder};
171
+ stroke-width: 0.75px;
172
+ }
173
+
174
+ div.mermaidTooltip {
175
+ position: absolute;
176
+ text-align: center;
177
+ max-width: 200px;
178
+ padding: 2px;
179
+ font-family: ${e.fontFamily};
180
+ font-size: 12px;
181
+ background: ${e.tertiaryColor};
182
+ border: 1px solid ${e.border2};
183
+ border-radius: 2px;
184
+ pointer-events: none;
185
+ z-index: 100;
186
+ }
187
+
188
+ .flowchartTitleText {
189
+ text-anchor: middle;
190
+ font-size: 18px;
191
+ fill: ${e.textColor};
192
+ }
193
+
194
+ rect.text {
195
+ fill: none;
196
+ stroke-width: 0;
197
+ }
198
+
199
+ .icon-shape, .image-shape {
200
+ background-color: ${e.edgeLabelBackground};
201
+ p {
202
+ background-color: ${e.edgeLabelBackground};
203
+ padding: 2px;
204
+ }
205
+ .label rect {
206
+ opacity: 0.5;
207
+ background-color: ${e.edgeLabelBackground};
208
+ fill: ${e.edgeLabelBackground};
209
+ }
210
+ text-align: center;
211
+ }
212
+ ${xn()}
213
+ `,"getStyles"),uf=m1,df=t(({styles:e=uf}={})=>({parser:k1,get db(){return new d1},renderer:b1,styles:e,init:t((r)=>{if(!r.flowchart)r.flowchart={};r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,ia({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),th=df();
214
+ export{uf,df,th};
@@ -0,0 +1,2 @@
1
+ import{n,i,o,a,e,s,sr,m,se,Dt,tt,C,y,W,_e}from"./index-4s8ttfxj.js";var Y={name:"pin-off",size:24,node:[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]},ll=s(Y);var H={name:"pin",size:24,node:[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]},Ia=s(H);async function pd(r){let u=r?`?path=${encodeURIComponent(r)}`:"",p=await fetch(`/api/fs/browse${u}`),l=await p.json();if(!p.ok||l.error)throw Error(l.error||`HTTP ${p.status}`);return l}function bs({initialPath:r,onSelect:u,onClose:p}){let[l,P]=n(r??""),[b,f]=n(""),[h,D]=n([]),[x,T]=n(null),[R,k]=n(!0),[v,S]=n(null),[z,g]=n(null),L=o(null),d=a(async(t)=>{k(!0),S(null);try{let c=await pd(t);P(c.path??t??""),T(c.parentPath??null),f(c.path??t??""),D(c.directories??[])}catch(c){S(c instanceof Error?c.message:String(c))}finally{k(!1)}},[]);i(()=>{d(r)},[r,d]);let A=()=>{if(x)d(x)},I=(t)=>{t.preventDefault();let c=b.trim();if(c)d(c)},w=(t)=>{d(t.path)},_=(t)=>{g(t.path),u(t.path)},B=()=>{if(l)g(l),u(l)};return e("div",{className:"fixed inset-0 modal-scrim z-[60] flex items-center justify-center p-4",onClick:p,children:e("div",{className:"glass-overlay bg-paper border border-ink/15 rounded-lg shadow-2xl w-full max-w-lg flex flex-col overflow-hidden",onClick:(t)=>t.stopPropagation(),children:[e("div",{className:"flex items-center justify-between px-4 py-3 border-b border-ink/10",children:[e("h3",{className:"font-semibold text-sm flex items-center space-x-2",children:[e(Dt,{size:15,className:"text-ink/70"}),e("span",{children:"Choose Project Folder"})]}),e("button",{type:"button",onClick:p,className:"p-1 rounded hover:bg-ink/10 text-ink/60 hover:text-ink transition-colors","aria-label":"Close picker",children:e(y,{size:15})})]}),e("div",{className:"px-4 py-2 border-b border-ink/10 bg-canvas/50",children:[e("form",{onSubmit:I,className:"flex items-center space-x-2",children:[e(sr,{size:14,className:"text-ink/40 flex-shrink-0"}),e("input",{ref:L,type:"text",value:b,onChange:(t)=>f(t.currentTarget.value),placeholder:"~ or /absolute/path",className:"flex-1 bg-transparent outline-none text-xs font-mono text-ink placeholder-ink/35 py-1",spellcheck:!1}),e("button",{type:"submit",className:"px-2 py-1 rounded bg-ink/5 border border-ink/10 text-[11px] font-medium hover:bg-ink/10 transition-colors",children:"Go"})]}),e("div",{className:"flex items-center space-x-1 mt-1 text-[11px] text-ink/40 truncate",children:[e("button",{type:"button",onClick:()=>void d(),className:"hover:text-ink transition-colors flex items-center",children:[e(sr,{size:11,className:"mr-0.5"})," home"]}),l.split("/").filter(Boolean).map((t,c,F)=>{let N="/"+l.split("/").filter(Boolean).slice(0,c+1).join("/"),j=c===F.length-1;return e("span",{className:"flex items-center space-x-1 min-w-0",children:[e(se,{size:10,className:"text-ink/20 flex-shrink-0"}),j?e("span",{className:"text-ink/70 truncate",children:t}):e("button",{type:"button",onClick:()=>void d(N),className:"hover:text-ink transition-colors truncate max-w-[120px]",children:t})]},N)})]})]}),e("div",{className:"flex-1 min-h-[240px] max-h-[360px] scrollbar-overlay-container p-2",children:R?e("div",{className:"flex items-center justify-center h-40 text-ink/40",children:e(m,{size:18,className:"animate-spin"})}):v?e("div",{className:"flex flex-col items-center justify-center h-40 text-xs text-error space-y-2 px-4",children:[e("span",{children:v}),e("button",{type:"button",onClick:()=>void d(l||void 0),className:"px-2 py-1 rounded bg-ink/5 border border-ink/10 text-ink/70 hover:bg-ink/10 flex items-center space-x-1",children:[e(C,{size:11})," Retry"]})]}):h.length===0?e("div",{className:"text-center py-16 text-xs text-ink/40",children:"No subfolders"}):h.map((t)=>e("div",{className:`group flex items-center justify-between px-2.5 py-2 rounded cursor-pointer transition-colors ${z===t.path?"bg-ink/10":"hover:bg-ink/5"}`,onDblClick:()=>w(t),children:[e("button",{type:"button",onClick:()=>w(t),className:"flex items-center space-x-2 min-w-0 flex-1 text-left",children:[e(tt,{size:15,className:"text-ink/50 flex-shrink-0"}),e("span",{className:"text-xs truncate text-ink/85",children:t.name})]}),e("button",{type:"button",onClick:()=>_(t),className:"touch-shown-flex hidden group-hover:flex px-2 py-0.5 rounded bg-ink text-canvas text-[10px] font-semibold hover:bg-ink/80 transition-colors flex-shrink-0",children:"Choose"})]},t.path))}),e("div",{className:"flex items-center justify-between px-4 py-3 border-t border-ink/10",children:[e("div",{className:"flex items-center space-x-2 min-w-0",children:[e("button",{type:"button",onClick:A,disabled:!x,className:"px-2.5 py-1.5 rounded bg-ink/5 border border-ink/10 text-[11px] font-medium hover:bg-ink/10 disabled:opacity-40 transition-colors flex items-center space-x-1",children:[e("span",{children:"↑"}),e("span",{children:"Up"})]}),e("button",{type:"button",onClick:()=>void d(),className:"px-2.5 py-1.5 rounded bg-ink/5 border border-ink/10 text-[11px] font-medium hover:bg-ink/10 transition-colors",children:"Home"})]}),e("div",{className:"flex items-center space-x-2",children:[e("button",{type:"button",onClick:p,className:"px-3 py-1.5 text-xs font-medium text-ink/60 hover:text-ink transition-colors",children:"Cancel"}),e("button",{type:"button",onClick:B,disabled:!l,className:"px-3.5 py-1.5 text-xs font-medium bg-ink text-canvas rounded hover:bg-ink/90 disabled:opacity-50 transition-colors",children:"Use This Folder"})]})]})]})})}var iA="classic",oA=["classic","modern"];function M(r){return r==="classic"||r==="modern"}function cl(r){return M(r)?r:"classic"}var sA={classic:{label:"Classic",description:"A toolbar of boxed icons and compact rows — the layout Kabmo has always shipped.",caption:"Toolbar · 24px rows"},modern:{label:"Modern",description:"Permanent search, filter chips, sticky workspace headers and taller rows with one trailing column.",caption:"Search · chips · 30px rows"}};var U="sidebarStyle",E="omp:sidebar-style-changed";function V(r){return cl(W(U,r))}function lA(r){if(typeof window>"u")return;window.dispatchEvent(new CustomEvent(E,{detail:cl(r)}))}function au(){let[r,u]=n(()=>V());return _e(E,(p)=>{u(cl(p.detail))}),r}
2
+ export{ll,Ia,iA,oA,cl,sA,lA,au,pd,bs};
@@ -0,0 +1,2 @@
1
+ var e=Object.freeze(JSON.parse('{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"\']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"\'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"\')}])([^\\\\t\\\\n\\\\r \\"\\\\&\');->`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|(\'))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=\')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"\'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"\'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"\'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"\'])[\\\\t ]*+([^\\"\']+?)(?=[\\"\\\\&\';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"\'])[\\\\t ]*+([^\\"\']+?)(?=[\\"\\\\&\';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"\']+)(?=[\\"\\\\&\';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"\']+)(?=[\\"\\\\&\';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*((\'))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(\')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}')),pp=[e];
2
+ export{pp};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ var k=Object.create;var{getPrototypeOf:l,defineProperty:f,getOwnPropertyNames:m}=Object;var j=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,an=(a,b,c)=>{var g=a!=null&&typeof a==="object";if(g){var h=b?o??=new WeakMap:p??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?k(l(a)):{};let d=b||!a||!a.__esModule||!j.call(a,"default")?f(c,"default",{value:a,enumerable:!0}):c;if(a&&typeof a==="object"||typeof a==="function"){for(let e of m(a))if(!j.call(d,e))f(d,e,{get:n.bind(a,e),enumerable:!0})}if(g)h.set(a,d);return d};var yn=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a)=>a;function r(a,b){this[a]=q.bind(null,b)}var dn=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0,configurable:!0,set:r.bind(b,c)})};var Yf=import.meta.require;
3
+ export{an,yn,dn,Yf};