@kabmo-labs/kabmo 0.39.1 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +363 -363
  3. package/dist/client/static/js/{CsvGrid-7synegzg.js → CsvGrid-j9nvnhq1.js} +2 -2
  4. package/dist/client/static/js/{DocxView-v5d9n5yw.js → DocxView-87gnpm81.js} +5 -5
  5. package/dist/client/static/js/{DrawioView-ww7y98tt.js → DrawioView-a351t8f8.js} +2 -2
  6. package/dist/client/static/js/ImageView-c139r891.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-08axzr3a.js +2 -0
  8. package/dist/client/static/js/{Modal-qj39shgb.js → Modal-0weqfqvk.js} +17 -17
  9. package/dist/client/static/js/{PdfView-t9v4datp.js → PdfView-n6bwcvc8.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-yqy0a1xg.js → SessionsView-awef8ehj.js} +1 -1
  11. package/dist/client/static/js/{SheetView-6zkxbjd4.js → SheetView-k8ymr87w.js} +24 -24
  12. package/dist/client/static/js/{SvgPreview-7rt2p1y1.js → SvgPreview-5pcp444e.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-888zn5zg.js → abnfDiagram-O67JEVCF-psav75bx.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-6rbq97t9.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-b04e26rb.js → architectureDiagram-NJMV4G6O-9bk6ykn7.js} +3 -3
  16. package/dist/client/static/js/{astro-4ybhkc9b.js → astro-0rh34hha.js} +1 -1
  17. package/dist/client/static/js/bash-vv2ysp0a.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-32ph2m52.js → blockDiagram-BEXU5L5S-17xsf182.js} +5 -5
  19. package/dist/client/static/js/c-67jyc7sg.js +1 -0
  20. package/dist/client/static/js/{c4Diagram-YGBWAQC7-hwnaa333.js → c4Diagram-YGBWAQC7-jn9j4n04.js} +2 -2
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-2kg7dqeb.js → classDiagram-v2-NBCMYWYE-663z1g1r.js} +5 -5
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-tj2sbtyv.js → cose-bilkent-JH36ORCC-vp4yvx8x.js} +1 -1
  23. package/dist/client/static/js/cpp-crfbnwv8.js +1 -0
  24. package/dist/client/static/js/css-983fbv00.js +1 -0
  25. package/dist/client/static/js/css-zj4qzw6r.js +1 -0
  26. package/dist/client/static/js/cynefin-OW5HDTMX-zafxcz2k.js +1 -0
  27. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-wx2y8dhm.js → cynefinDiagram-VND7K2PF-dagkrjbh.js} +1 -1
  28. package/dist/client/static/js/{dagre-6A5THRUB-5v3rzdxd.js → dagre-6A5THRUB-8qgwpb5a.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-7er2jwy1.js → diagram-22UHCM2B-671xtp0d.js} +11 -11
  30. package/dist/client/static/js/{diagram-3UASUU5V-2b7nmdha.js → diagram-3UASUU5V-8nn5fha8.js} +1 -1
  31. package/dist/client/static/js/{diagram-ATOU4E4O-yf61ftn0.js → diagram-ATOU4E4O-dnar0ktg.js} +3 -3
  32. package/dist/client/static/js/{diagram-CDSNMT55-cn3rs9xn.js → diagram-CDSNMT55-bt0fhk7n.js} +3 -3
  33. package/dist/client/static/js/{diagram-MLGK6HIB-7kvtsj6c.js → diagram-MLGK6HIB-tp6dwxdb.js} +1 -1
  34. package/dist/client/static/js/{diagram-MPIPVDR6-g3zg3r5e.js → diagram-MPIPVDR6-qgx8c8ee.js} +2 -2
  35. package/dist/client/static/js/{dockerfile-f9j396wm.js → dockerfile-hk0s4qaw.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-ft02nzne.js → ebnfDiagram-ZINNZB2B-nmf9r33z.js} +1 -1
  37. package/dist/client/static/js/{elixir-v9bbxsgg.js → elixir-gpez1k9m.js} +1 -1
  38. package/dist/client/static/js/{elk-276RUBZZ-87fvkn2k.js → elk-276RUBZZ-dheh5ngz.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-gh9mp6j8.js → erDiagram-OPXOYQCR-8837mk18.js} +5 -5
  40. package/dist/client/static/js/{erlang-55r0skxa.js → erlang-w9gmf866.js} +1 -1
  41. package/dist/client/static/js/eventmodeling-NTZA5JFV-cq3dvz7e.js +1 -0
  42. package/dist/client/static/js/flowDiagram-KWPJA3E3-spzh2jxq.js +1 -0
  43. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-227xs61z.js → ganttDiagram-FUAMR5RP-g68mvnje.js} +2 -2
  44. package/dist/client/static/js/{ghostty-web-2gt2tp72.js → ghostty-web-22pdvhta.js} +4 -4
  45. package/dist/client/static/js/gitGraph-4MIJSDKK-epgk26pj.js +1 -0
  46. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-4671gdym.js → gitGraphDiagram-X574FWY7-ymk81cdj.js} +2 -2
  47. package/dist/client/static/js/graphql-dewsj5g1.js +1 -0
  48. package/dist/client/static/js/html-1cpe2xc8.js +1 -0
  49. package/dist/client/static/js/{index-hdd8nqz8.js → index-018ehs1n.js} +1 -1
  50. package/dist/client/static/js/{index-442mbhwb.js → index-173x4bh0.js} +2 -2
  51. package/dist/client/static/js/{index-c1be3rva.js → index-2kg3r5jw.js} +2 -2
  52. package/dist/client/static/js/{index-d3prrt2q.js → index-4j1g7m8g.js} +1 -1
  53. package/dist/client/static/js/{index-m847wafq.js → index-4j5jwb54.js} +2 -2
  54. package/dist/client/static/js/{index-8egjccbq.js → index-547h1b8j.js} +52 -52
  55. package/dist/client/static/js/{index-f1nqk6z6.js → index-69xe17c1.js} +2 -2
  56. package/dist/client/static/js/{index-y91j4t1q.js → index-6wtx7a9x.js} +2 -2
  57. package/dist/client/static/js/{index-kkfbd1db.js → index-8888hgj8.js} +5 -5
  58. package/dist/client/static/js/{index-s80x8d58.js → index-8ggxxp8c.js} +2 -2
  59. package/dist/client/static/js/{index-b08hx4tw.js → index-9wjnbb3q.js} +2 -2
  60. package/dist/client/static/js/{index-qbnd827h.js → index-ag78jnva.js} +1 -1
  61. package/dist/client/static/js/{index-xrp2zv8z.js → index-agdbjh5k.js} +2 -2
  62. package/dist/client/static/js/index-aznkfx1z.js +2 -0
  63. package/dist/client/static/js/{index-cfnxda13.js → index-b612vske.js} +2 -2
  64. package/dist/client/static/js/{index-xnk1500f.js → index-bdz08fe2.js} +12 -12
  65. package/dist/client/static/js/{index-8xasfxf3.js → index-bgpcf3mr.js} +1 -1
  66. package/dist/client/static/js/index-bj3wn9je.js +1 -0
  67. package/dist/client/static/js/{index-phm1zb8m.js → index-c003wb3r.js} +1 -1
  68. package/dist/client/static/js/{index-87qandgr.js → index-cccrappc.js} +2 -2
  69. package/dist/client/static/js/{index-k7sdsmgv.js → index-ce4vytm6.js} +2 -2
  70. package/dist/client/static/js/{index-2rs03vfy.js → index-d1vearmk.js} +2 -2
  71. package/dist/client/static/js/index-dhrp656p.js +1 -0
  72. package/dist/client/static/js/{index-w0rbyw47.js → index-dj7y2df7.js} +2 -2
  73. package/dist/client/static/js/{index-4wtr5wjp.js → index-ek4gwrm8.js} +2 -2
  74. package/dist/client/static/js/{index-xfr6r539.js → index-ek7hqfp0.js} +2 -2
  75. package/dist/client/static/js/{index-drjtwfp5.js → index-fg965t62.js} +2 -2
  76. package/dist/client/static/js/{index-j2g39xq7.js → index-g10nr8m6.js} +5 -5
  77. package/dist/client/static/js/{index-4wvtar0v.js → index-gn92c6hp.js} +2 -2
  78. package/dist/client/static/js/{index-t6gznaxm.js → index-gx2xefdg.js} +2 -2
  79. package/dist/client/static/js/{index-q0bph5x0.js → index-haaz8t7e.js} +2 -2
  80. package/dist/client/static/js/{index-wgvysmnr.js → index-harsfp4x.js} +10 -10
  81. package/dist/client/static/js/{index-4c2zcvem.js → index-j4ks5s41.js} +179 -179
  82. package/dist/client/static/js/{index-cst843zs.css → index-jqs23cc7.css} +1 -1
  83. package/dist/client/static/js/{index-35mh9kbs.js → index-js81yrmy.js} +3 -3
  84. package/dist/client/static/js/{index-enmh3w27.js → index-jy91r3ap.js} +2 -2
  85. package/dist/client/static/js/{index-mtadrbxt.js → index-mxpgfj6p.js} +2 -2
  86. package/dist/client/static/js/{index-28a5kf88.js → index-p2812ygk.js} +1 -1
  87. package/dist/client/static/js/index-pp6mss9b.js +3 -0
  88. package/dist/client/static/js/index-q1bqg4f6.js +1 -0
  89. package/dist/client/static/js/{index-668chrpq.js → index-qnt118mp.js} +1 -1
  90. package/dist/client/static/js/index-qntpsp98.js +2 -0
  91. package/dist/client/static/js/{index-fjnkzk12.js → index-qsw5edtk.js} +5 -5
  92. package/dist/client/static/js/{index-tmnnafht.js → index-qw5aqk2d.js} +1 -1
  93. package/dist/client/static/js/{index-9gepbvdt.js → index-r1fe56cn.js} +2 -2
  94. package/dist/client/static/js/{index-72289dgx.js → index-rc8wrs2a.js} +2 -2
  95. package/dist/client/static/js/index-rvjc19x7.js +2 -0
  96. package/dist/client/static/js/{index-9d6x1f3t.js → index-s78n0dtv.js} +2 -2
  97. package/dist/client/static/js/{index-c36pag9y.js → index-sj4y8kj2.js} +2 -2
  98. package/dist/client/static/js/{index-qsrw5c67.js → index-vv9ytx0t.js} +2 -2
  99. package/dist/client/static/js/{index-1sgad84m.js → index-vwc8pdy3.js} +2 -2
  100. package/dist/client/static/js/{index-6rs8e8ng.js → index-w130cs7d.js} +1 -1
  101. package/dist/client/static/js/{index-vb3srfyc.js → index-wsqgp9jw.js} +2 -2
  102. package/dist/client/static/js/{index-y5ymgp20.js → index-wv36ddd5.js} +48 -48
  103. package/dist/client/static/js/{index-7qc2avfy.js → index-wy05jt00.js} +2 -2
  104. package/dist/client/static/js/{index-0j518hqm.js → index-xf36nmbm.js} +2 -2
  105. package/dist/client/static/js/{index-h8rr48px.js → index-y5hxhr7q.js} +4 -4
  106. package/dist/client/static/js/{index-f73v86a3.js → index-y82bk3hr.js} +3 -3
  107. package/dist/client/static/js/{index-rj81xrvw.js → index-ys4t1am4.js} +2 -2
  108. package/dist/client/static/js/{index-y3qxrs90.js → index-yzg9mbsv.js} +2 -2
  109. package/dist/client/static/js/info-A6RAGUB7-0an46pag.js +1 -0
  110. package/dist/client/static/js/{infoDiagram-VRGFBTTK-k1jnhhbp.js → infoDiagram-VRGFBTTK-11trzn8c.js} +1 -1
  111. package/dist/client/static/js/ini-09e0scxh.js +1 -0
  112. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ar94x2gr.js → ishikawaDiagram-OU5B5YK6-8xnnymb5.js} +2 -2
  113. package/dist/client/static/js/java-vnaesxzs.js +1 -0
  114. package/dist/client/static/js/javascript-zegm06a1.js +1 -0
  115. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-ntfp0w54.js → journeyDiagram-ZHPQQLJL-wd47j0hy.js} +3 -3
  116. package/dist/client/static/js/json-g5ggnd94.js +1 -0
  117. package/dist/client/static/js/jsx-xz71aed4.js +1 -0
  118. package/dist/client/static/js/{julia-jhe2vd4f.js → julia-c2q0vwpd.js} +1 -1
  119. package/dist/client/static/js/{kanban-definition-PNTS6WVX-q5rsr6j3.js → kanban-definition-PNTS6WVX-s5rgcp44.js} +4 -4
  120. package/dist/client/static/js/lua-e4wenyzt.js +1 -0
  121. package/dist/client/static/js/markdown-yv3p1p7m.js +1 -0
  122. package/dist/client/static/js/{mermaid.core-0gafsqrm.js → mermaid.core-9fxp8nt2.js} +7 -7
  123. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jgz6nyhk.js → mindmap-definition-NLK3R4M7-4fyewtst.js} +3 -3
  124. package/dist/client/static/js/one-dark-pro-ahch85zb.js +1 -0
  125. package/dist/client/static/js/one-light-9706jgqt.js +1 -0
  126. package/dist/client/static/js/packet-AYTQ26CC-5e397pav.js +1 -0
  127. package/dist/client/static/js/{pegDiagram-GJSIUBJH-b3e9ma2c.js → pegDiagram-GJSIUBJH-s2xe2e2k.js} +1 -1
  128. package/dist/client/static/js/{perl-qhj6tk7k.js → perl-6pa0tn3b.js} +1 -1
  129. package/dist/client/static/js/{php-arycc4w7.js → php-1zy994pz.js} +1 -1
  130. package/dist/client/static/js/pie-WAS4IAKB-0zzmzg64.js +1 -0
  131. package/dist/client/static/js/{pieDiagram-5QR66LMP-66mn2qnt.js → pieDiagram-5QR66LMP-1szpjbzy.js} +2 -2
  132. package/dist/client/static/js/properties-0ag74bdj.js +1 -0
  133. package/dist/client/static/js/python-zsn5tdbj.js +1 -0
  134. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-n7warg0e.js → quadrantDiagram-O4NWA36T-mv3ee2qa.js} +3 -3
  135. package/dist/client/static/js/r-mwtqhnw3.js +1 -0
  136. package/dist/client/static/js/radar-RG4KPBEZ-mtar9742.js +1 -0
  137. package/dist/client/static/js/railroad-74A4TZTK-d6a6j9fq.js +1 -0
  138. package/dist/client/static/js/railroad-abnf-HS5TGJTU-1257kd8x.js +1 -0
  139. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-v8b6qmas.js +1 -0
  140. package/dist/client/static/js/railroad-peg-WCYAUIDC-jxpbx410.js +1 -0
  141. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-k8j43rxj.js → railroadDiagram-XR7U4H2S-hgdqjpm9.js} +1 -1
  142. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-ef2v7nyq.js → requirementDiagram-PLB6GJNP-yrfjp9wx.js} +3 -3
  143. package/dist/client/static/js/{ruby-fb6zzevm.js → ruby-arvs7kz4.js} +1 -1
  144. package/dist/client/static/js/{rust-jvkbr060.js → rust-3ahjk339.js} +1 -1
  145. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-3njbd1yd.js → sankeyDiagram-IPEJSGJF-k7k871xa.js} +3 -3
  146. package/dist/client/static/js/{sass-fzs6a0kr.js → sass-cmkf7nwd.js} +1 -1
  147. package/dist/client/static/js/{scss-gdb52d0c.js → scss-x7ddw6gb.js} +1 -1
  148. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-k2wqc0qt.js → sequenceDiagram-PO4LG4MO-gd80m0as.js} +7 -7
  149. package/dist/client/static/js/{sizeCapture-INFHLROL-cpnd12ee.js → sizeCapture-INFHLROL-jv6p4834.js} +1 -1
  150. package/dist/client/static/js/sql-aczp05f2.js +1 -0
  151. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-1ydpxaeg.js → stateDiagram-v2-GCMORJYK-tvphxq2h.js} +3 -3
  152. package/dist/client/static/js/{svelte-8s3k6qjd.js → svelte-0hv6pak2.js} +1 -1
  153. package/dist/client/static/js/{swimlanes-2SLR337P-4md43da2.js → swimlanes-2SLR337P-3dt7nxj2.js} +1 -1
  154. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-aqnh1hhp.js +8 -0
  155. package/dist/client/static/js/{timeline-definition-EJHVYXUP-sp32bf3e.js → timeline-definition-EJHVYXUP-40vvf856.js} +4 -4
  156. package/dist/client/static/js/treeView-Q6P3EWNA-q3qr7ew7.js +1 -0
  157. package/dist/client/static/js/treemap-WGGIJYW6-zgbdydeq.js +1 -0
  158. package/dist/client/static/js/tsx-s1shkfg9.js +1 -0
  159. package/dist/client/static/js/typescript-htx9v6bf.js +1 -0
  160. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-p2ssettn.js → usecaseDiagram-POWQR4AR-g1j5x0xh.js} +28 -28
  161. package/dist/client/static/js/{vennDiagram-UO4OBE2U-ejqq8b82.js → vennDiagram-UO4OBE2U-5b8789qk.js} +1 -1
  162. package/dist/client/static/js/{vue-k3f3chre.js → vue-zccj3qa5.js} +1 -1
  163. package/dist/client/static/js/wardley-WFR3VGLG-b230aajh.js +1 -0
  164. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-tkk79rsn.js → wardleyDiagram-VNRHLVJA-c7x3za3w.js} +3 -3
  165. package/dist/client/static/js/xml-23y6pgvx.js +1 -0
  166. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-zhgrsqpb.js → xychartDiagram-PMCCYNJV-h0fy45tg.js} +3 -3
  167. package/dist/client/static/js/yaml-vrayja34.js +1 -0
  168. package/marketplace/plugins/command-runner/package.json +2 -2
  169. package/marketplace/plugins/command-runner/src/panel/Custom.test.tsx +1 -0
  170. package/marketplace/plugins/command-runner/src/panel/Groups.test.tsx +10 -0
  171. package/marketplace/plugins/command-runner/src/panel/Groups.tsx +24 -3
  172. package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -0
  173. package/marketplace/plugins/command-runner/src/protocol.ts +10 -0
  174. package/marketplace/plugins/command-runner/src/server/discovery.test.ts +30 -0
  175. package/marketplace/plugins/command-runner/src/server/scan.ts +16 -3
  176. package/package.json +1 -1
  177. package/src/client/components/common/header-controls/MoreMenu.tsx +24 -14
  178. package/src/client/components/common/header-controls/index.test.tsx +22 -0
  179. package/src/client/components/common/header-controls/index.tsx +8 -2
  180. package/src/client/components/mobile/LayoutWrapper.tsx +19 -2
  181. package/src/client/components/mobile/RightSidebar.tsx +49 -1
  182. package/src/client/components/mobile/SessionSidebar.tsx +25 -1
  183. package/src/client/components/mobile/header-titlebar.test.tsx +17 -0
  184. package/src/client/components/mobile/mobile-main-view/Header.test.tsx +43 -0
  185. package/src/client/components/mobile/mobile-main-view/Header.tsx +30 -0
  186. package/src/client/components/mobile/mobile-session-sidebar/Dock.tsx +5 -1
  187. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +12 -1
  188. package/src/client/components/mobile/panel-chips.test.tsx +13 -0
  189. package/src/client/components/mobile/panel-chips.tsx +9 -2
  190. package/src/client/components/settings/categories/connect-settings/DeviceTable.test.tsx +92 -0
  191. package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +22 -3
  192. package/src/client/components/workspace/git-panel/commit-modal/Header.test.tsx +21 -0
  193. package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +13 -9
  194. package/src/client/components/workspace/terminal-panel/focus-target.test.ts +121 -0
  195. package/src/client/components/workspace/terminal-panel/focus-target.ts +54 -0
  196. package/src/client/components/workspace/terminal-panel/index.tsx +7 -1
  197. package/src/client/components/workspace/terminal-panel/instance.ts +82 -0
  198. package/src/client/components/workspace/terminal-panel/mount.ts +22 -63
  199. package/src/client/components/workspace/terminal-panel/soft-keyboard.ts +29 -0
  200. package/src/client/hooks/ui/touch-device.ts +8 -3
  201. package/src/client/hooks/ui/visibility-menu-trigger.test.ts +155 -0
  202. package/src/client/hooks/ui/visibility-menu-trigger.ts +85 -0
  203. package/src/client/hooks/workspace/panel-visibility-menu.ts +50 -0
  204. package/src/client/lib/ui/soft-keyboard.test.ts +103 -0
  205. package/src/client/lib/ui/soft-keyboard.ts +90 -0
  206. package/src/server/lib/auth/guard.ts +8 -2
  207. package/src/server/lib/connect/devices.server.test.ts +70 -0
  208. package/src/server/lib/connect/devices.server.ts +43 -1
  209. package/src/server/lib/connect/last-connect.gate.test.ts +52 -0
  210. package/src/server/routes/connect/devices.ts +5 -4
  211. package/src/shared/lib/connect/types.ts +1 -0
  212. package/dist/client/static/js/ImageView-t3rkypzs.js +0 -1
  213. package/dist/client/static/js/LayoutWrapper-th2pd4yt.js +0 -2
  214. package/dist/client/static/js/architecture-7GRP2DOG-y0zb4vqa.js +0 -1
  215. package/dist/client/static/js/bash-k6p3y3pr.js +0 -1
  216. package/dist/client/static/js/c-ve09y19q.js +0 -1
  217. package/dist/client/static/js/cpp-vhqp7bcy.js +0 -1
  218. package/dist/client/static/js/css-77mvf0ca.js +0 -1
  219. package/dist/client/static/js/css-tys2rrny.js +0 -1
  220. package/dist/client/static/js/cynefin-OW5HDTMX-nt1ed192.js +0 -1
  221. package/dist/client/static/js/eventmodeling-NTZA5JFV-v4edaxx7.js +0 -1
  222. package/dist/client/static/js/flowDiagram-KWPJA3E3-6gc6gd1d.js +0 -1
  223. package/dist/client/static/js/gitGraph-4MIJSDKK-adzhec96.js +0 -1
  224. package/dist/client/static/js/graphql-g97hycb3.js +0 -1
  225. package/dist/client/static/js/html-2syect3n.js +0 -1
  226. package/dist/client/static/js/index-1jeyjqkh.js +0 -2
  227. package/dist/client/static/js/index-4ry8kz8h.js +0 -3
  228. package/dist/client/static/js/index-fjqp03xe.js +0 -2
  229. package/dist/client/static/js/index-fs3pbqwn.js +0 -1
  230. package/dist/client/static/js/index-jze0zg3z.js +0 -2
  231. package/dist/client/static/js/index-w0xvdda9.js +0 -1
  232. package/dist/client/static/js/index-wfcgqjzr.js +0 -1
  233. package/dist/client/static/js/info-A6RAGUB7-2ye26vqn.js +0 -1
  234. package/dist/client/static/js/ini-7ffv28px.js +0 -1
  235. package/dist/client/static/js/java-4x5yky4a.js +0 -1
  236. package/dist/client/static/js/javascript-4kw2j9t3.js +0 -1
  237. package/dist/client/static/js/json-h3kwpty2.js +0 -1
  238. package/dist/client/static/js/jsx-jk20f0dr.js +0 -1
  239. package/dist/client/static/js/lua-k02dpxq8.js +0 -1
  240. package/dist/client/static/js/markdown-fhhg7ms6.js +0 -1
  241. package/dist/client/static/js/one-dark-pro-n0as47q7.js +0 -1
  242. package/dist/client/static/js/one-light-05nw3mzj.js +0 -1
  243. package/dist/client/static/js/packet-AYTQ26CC-b0j3te0q.js +0 -1
  244. package/dist/client/static/js/pie-WAS4IAKB-28qq62fn.js +0 -1
  245. package/dist/client/static/js/properties-qhvcxc13.js +0 -1
  246. package/dist/client/static/js/python-3qsrs510.js +0 -1
  247. package/dist/client/static/js/r-z2ng7mza.js +0 -1
  248. package/dist/client/static/js/radar-RG4KPBEZ-fyrcbpyd.js +0 -1
  249. package/dist/client/static/js/railroad-74A4TZTK-9s62qncd.js +0 -1
  250. package/dist/client/static/js/railroad-abnf-HS5TGJTU-f7yjmhrk.js +0 -1
  251. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-sfrw8gkz.js +0 -1
  252. package/dist/client/static/js/railroad-peg-WCYAUIDC-4mm4cern.js +0 -1
  253. package/dist/client/static/js/sql-ypk53ntb.js +0 -1
  254. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-d48g5gjf.js +0 -8
  255. package/dist/client/static/js/treeView-Q6P3EWNA-a5vgg4gz.js +0 -1
  256. package/dist/client/static/js/treemap-WGGIJYW6-ctqhajgg.js +0 -1
  257. package/dist/client/static/js/tsx-zy7hb2hw.js +0 -1
  258. package/dist/client/static/js/typescript-2hr53c8j.js +0 -1
  259. package/dist/client/static/js/wardley-WFR3VGLG-ns7e0fqf.js +0 -1
  260. package/dist/client/static/js/xml-p4742r9b.js +0 -1
  261. package/dist/client/static/js/yaml-qbckg671.js +0 -1
@@ -1,2 +1,2 @@
1
- import{Pe}from"./index-0j518hqm.js";import{_a}from"./index-xrp2zv8z.js";import{lg}from"./index-442mbhwb.js";import{Ic}from"./index-c36pag9y.js";var e=Object.freeze(JSON.parse('{"displayName":"GraphQL","fileTypes":["graphql","graphqls","gql","graphcool"],"name":"graphql","patterns":[{"include":"#graphql"}],"repository":{"graphql":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-fragment-definition"},{"include":"#graphql-directive-definition"},{"include":"#graphql-type-interface"},{"include":"#graphql-enum"},{"include":"#graphql-scalar"},{"include":"#graphql-union"},{"include":"#graphql-schema"},{"include":"#graphql-operation-def"},{"include":"#literal-quasi-embedded"}]},"graphql-ampersand":{"captures":{"1":{"name":"keyword.operator.logical.graphql"}},"match":"\\\\s*(&)"},"graphql-arguments":{"begin":"\\\\s*(\\\\()","beginCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"end":"\\\\s*(\\\\))","endCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"name":"meta.arguments.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"},"2":{"name":"punctuation.colon.graphql"}},"end":"(?=\\\\s*(?:([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)|\\\\)))|\\\\s*(,)","endCaptures":{"3":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-value"},{"include":"#graphql-skip-newlines"}]},{"include":"#literal-quasi-embedded"}]},"graphql-boolean-value":{"captures":{"1":{"name":"constant.language.boolean.graphql"}},"match":"\\\\s*\\\\b(true|false)\\\\b"},"graphql-colon":{"captures":{"1":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*(:)"},"graphql-comma":{"captures":{"1":{"name":"punctuation.comma.graphql"}},"match":"\\\\s*(,)"},"graphql-comment":{"patterns":[{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"match":"(\\\\s*)(#).*","name":"comment.line.graphql.js"},{"begin":"(\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\"\\"\\")","name":"comment.line.graphql.js"},{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\")","name":"comment.line.graphql.js"}]},"graphql-description-docstring":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"comment.block.graphql"},"graphql-description-singleline":{"match":"#(?=([^\\"]*\\"[^\\"]*\\")*[^\\"]*$).*$","name":"comment.line.number-sign.graphql"},"graphql-directive":{"applyEndPatternLast":1,"begin":"\\\\s*((@)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))","beginCaptures":{"1":{"name":"entity.name.function.directive.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-arguments"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-directive-definition":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(directive)\\\\b\\\\s*(@[A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.directive.graphql"},"2":{"name":"entity.name.function.directive.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-variable-definitions"},{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.on.graphql"},"2":{"name":"support.type.location.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"},{"captures":{"2":{"name":"support.type.location.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z]*)"}]},{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"}]},"graphql-enum":{"begin":"\\\\s*+\\\\b(enum)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.enum.graphql"},"2":{"name":"support.type.enum.graphql"}},"end":"(?<=})","name":"meta.enum.graphql","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-object-type"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-enum-value"},{"include":"#literal-quasi-embedded"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"}]},"graphql-enum-value":{"match":"\\\\s*(?!=\\\\b(true|false|null)\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","name":"constant.character.enum.graphql"},"graphql-field":{"patterns":[{"captures":{"1":{"name":"string.unquoted.alias.graphql"},"2":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)"},{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-arguments"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-float-value":{"captures":{"1":{"name":"constant.numeric.float.graphql"}},"match":"\\\\s*(-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?(([Ee])([-+])?[0-9]+)?)"},"graphql-fragment-definition":{"begin":"\\\\s*\\\\b(fragment)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.fragment.graphql"},"2":{"name":"entity.name.fragment.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?<=})","name":"meta.fragment.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-fragment-spread":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?!\\\\bon\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"variable.fragment.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-ignore-spaces":{"match":"\\\\s*"},"graphql-inline-fragment":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?:\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))?","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-input-types":{"patterns":[{"include":"#graphql-scalar-type"},{"captures":{"1":{"name":"support.type.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?:\\\\s*(!))?"},{"begin":"\\\\s*(\\\\[)","captures":{"1":{"name":"meta.brace.square.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"end":"\\\\s*(])(?:\\\\s*(!))?","name":"meta.type.list.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-input-types"},{"include":"#graphql-comma"},{"include":"#literal-quasi-embedded"}]}]},"graphql-list-value":{"patterns":[{"begin":"\\\\s*+(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.graphql"}},"end":"\\\\s*(])","endCaptures":{"1":{"name":"meta.brace.square.graphql"}},"name":"meta.listvalues.graphql","patterns":[{"include":"#graphql-value"}]}]},"graphql-name":{"captures":{"1":{"name":"entity.name.function.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-null-value":{"captures":{"1":{"name":"constant.language.null.graphql"}},"match":"\\\\s*\\\\b(null)\\\\b"},"graphql-object-field":{"captures":{"1":{"name":"constant.object.key.graphql"},"2":{"name":"string.unquoted.graphql"},"3":{"name":"punctuation.graphql"}},"match":"\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*))\\\\s*(:)"},"graphql-object-value":{"patterns":[{"begin":"\\\\s*+(\\\\{)","beginCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"name":"meta.objectvalues.graphql","patterns":[{"include":"#graphql-object-field"},{"include":"#graphql-value"}]}]},"graphql-operation-def":{"patterns":[{"include":"#graphql-query-mutation"},{"include":"#graphql-name"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"}]},"graphql-query-mutation":{"captures":{"1":{"name":"keyword.operation.graphql"}},"match":"\\\\s*\\\\b(query|mutation)\\\\b"},"graphql-scalar":{"captures":{"1":{"name":"keyword.scalar.graphql"},"2":{"name":"entity.scalar.graphql"}},"match":"\\\\s*\\\\b(scalar)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-scalar-type":{"captures":{"1":{"name":"support.type.builtin.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*\\\\b(Int|Float|String|Boolean|ID)\\\\b(?:\\\\s*(!))?"},"graphql-schema":{"begin":"\\\\s*\\\\b(schema)\\\\b","beginCaptures":{"1":{"name":"keyword.schema.graphql"}},"end":"(?<=})","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"patterns":[{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.arguments.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-colon"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"}]},"graphql-selection-set":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.selectionset.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-field"},{"include":"#graphql-fragment-spread"},{"include":"#graphql-inline-fragment"},{"include":"#graphql-comma"},{"include":"#native-interpolation"},{"include":"#literal-quasi-embedded"}]},"graphql-skip-newlines":{"match":"\\\\s*\\\\n"},"graphql-string-content":{"patterns":[{"match":"\\\\\\\\[\\"\'/\\\\\\\\bfnrt]","name":"constant.character.escape.graphql"},{"match":"\\\\\\\\u(\\\\h{4})","name":"constant.character.escape.graphql"}]},"graphql-string-value":{"begin":"\\\\s*+((\\"))","beginCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.begin.graphql"}},"contentName":"string.quoted.double.graphql","end":"\\\\s*+(?:((\\"))|(\\\\n))","endCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.end.graphql"},"3":{"name":"invalid.illegal.newline.graphql"}},"patterns":[{"include":"#graphql-string-content"},{"include":"#literal-quasi-embedded"}]},"graphql-type-definition":{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-type-object"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#literal-quasi-embedded"}]},"graphql-type-interface":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(?:(extends?)?\\\\b\\\\s*\\\\b(type)|(interface)|(input))\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?","captures":{"1":{"name":"keyword.type.graphql"},"2":{"name":"keyword.type.graphql"},"3":{"name":"keyword.interface.graphql"},"4":{"name":"keyword.input.graphql"},"5":{"name":"support.type.graphql"}},"end":"(?=.)","name":"meta.type.interface.graphql","patterns":[{"begin":"\\\\s*\\\\b(implements)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.implements.graphql"}},"end":"\\\\s*(?=\\\\{)","patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-ampersand"},{"include":"#graphql-comma"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-type-object"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-ignore-spaces"}]},"graphql-type-object":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-object-type"},{"include":"#graphql-type-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-union":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(union)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.union.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"applyEndPatternLast":1,"begin":"\\\\s*(=)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"punctuation.assignment.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"},{"captures":{"1":{"name":"punctuation.or.graphql"},"2":{"name":"support.type.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-union-mark":{"captures":{"1":{"name":"punctuation.union.graphql"}},"match":"\\\\s*(\\\\|)"},"graphql-value":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-variable-name"},{"include":"#graphql-float-value"},{"include":"#graphql-string-value"},{"include":"#graphql-boolean-value"},{"include":"#graphql-null-value"},{"include":"#graphql-enum-value"},{"include":"#graphql-list-value"},{"include":"#graphql-object-value"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-assignment":{"applyEndPatternLast":1,"begin":"\\\\s(=)","beginCaptures":{"1":{"name":"punctuation.assignment.graphql"}},"end":"(?=[\\\\n),])","patterns":[{"include":"#graphql-value"}]},"graphql-variable-definition":{"begin":"\\\\s*(\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"}},"end":"(?=\\\\s*((\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|([)}])))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"name":"meta.variables.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#graphql-variable-assignment"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-variable-definitions":{"begin":"\\\\s*(\\\\()","captures":{"1":{"name":"meta.brace.round.graphql"}},"end":"\\\\s*(\\\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-variable-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-name":{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*(\\\\$[A-Z_a-z][0-9A-Z_a-z]*)"},"native-interpolation":{"begin":"\\\\s*(\\\\$\\\\{)","beginCaptures":{"1":{"name":"keyword.other.substitution.begin"}},"end":"(})","endCaptures":{"1":{"name":"keyword.other.substitution.end"}},"name":"native.interpolation","patterns":[{"include":"source.js"},{"include":"source.ts"},{"include":"source.js.jsx"},{"include":"source.tsx"}]}},"scopeName":"source.graphql","embeddedLangs":["javascript","typescript","jsx","tsx"],"aliases":["gql"]}')),Mf=[...Pe,..._a,...lg,...Ic,e];
2
- export{Mf};
1
+ import{$e}from"./index-xf36nmbm.js";import{Sa}from"./index-agdbjh5k.js";import{Ag}from"./index-173x4bh0.js";import{Rc}from"./index-sj4y8kj2.js";var e=Object.freeze(JSON.parse('{"displayName":"GraphQL","fileTypes":["graphql","graphqls","gql","graphcool"],"name":"graphql","patterns":[{"include":"#graphql"}],"repository":{"graphql":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-fragment-definition"},{"include":"#graphql-directive-definition"},{"include":"#graphql-type-interface"},{"include":"#graphql-enum"},{"include":"#graphql-scalar"},{"include":"#graphql-union"},{"include":"#graphql-schema"},{"include":"#graphql-operation-def"},{"include":"#literal-quasi-embedded"}]},"graphql-ampersand":{"captures":{"1":{"name":"keyword.operator.logical.graphql"}},"match":"\\\\s*(&)"},"graphql-arguments":{"begin":"\\\\s*(\\\\()","beginCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"end":"\\\\s*(\\\\))","endCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"name":"meta.arguments.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"},"2":{"name":"punctuation.colon.graphql"}},"end":"(?=\\\\s*(?:([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)|\\\\)))|\\\\s*(,)","endCaptures":{"3":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-value"},{"include":"#graphql-skip-newlines"}]},{"include":"#literal-quasi-embedded"}]},"graphql-boolean-value":{"captures":{"1":{"name":"constant.language.boolean.graphql"}},"match":"\\\\s*\\\\b(true|false)\\\\b"},"graphql-colon":{"captures":{"1":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*(:)"},"graphql-comma":{"captures":{"1":{"name":"punctuation.comma.graphql"}},"match":"\\\\s*(,)"},"graphql-comment":{"patterns":[{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"match":"(\\\\s*)(#).*","name":"comment.line.graphql.js"},{"begin":"(\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\"\\"\\")","name":"comment.line.graphql.js"},{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\")","name":"comment.line.graphql.js"}]},"graphql-description-docstring":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"comment.block.graphql"},"graphql-description-singleline":{"match":"#(?=([^\\"]*\\"[^\\"]*\\")*[^\\"]*$).*$","name":"comment.line.number-sign.graphql"},"graphql-directive":{"applyEndPatternLast":1,"begin":"\\\\s*((@)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))","beginCaptures":{"1":{"name":"entity.name.function.directive.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-arguments"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-directive-definition":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(directive)\\\\b\\\\s*(@[A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.directive.graphql"},"2":{"name":"entity.name.function.directive.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-variable-definitions"},{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.on.graphql"},"2":{"name":"support.type.location.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"},{"captures":{"2":{"name":"support.type.location.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z]*)"}]},{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"}]},"graphql-enum":{"begin":"\\\\s*+\\\\b(enum)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.enum.graphql"},"2":{"name":"support.type.enum.graphql"}},"end":"(?<=})","name":"meta.enum.graphql","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-object-type"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-enum-value"},{"include":"#literal-quasi-embedded"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"}]},"graphql-enum-value":{"match":"\\\\s*(?!=\\\\b(true|false|null)\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","name":"constant.character.enum.graphql"},"graphql-field":{"patterns":[{"captures":{"1":{"name":"string.unquoted.alias.graphql"},"2":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)"},{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-arguments"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-float-value":{"captures":{"1":{"name":"constant.numeric.float.graphql"}},"match":"\\\\s*(-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?(([Ee])([-+])?[0-9]+)?)"},"graphql-fragment-definition":{"begin":"\\\\s*\\\\b(fragment)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.fragment.graphql"},"2":{"name":"entity.name.fragment.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?<=})","name":"meta.fragment.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-fragment-spread":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?!\\\\bon\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"variable.fragment.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-ignore-spaces":{"match":"\\\\s*"},"graphql-inline-fragment":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?:\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))?","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-input-types":{"patterns":[{"include":"#graphql-scalar-type"},{"captures":{"1":{"name":"support.type.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?:\\\\s*(!))?"},{"begin":"\\\\s*(\\\\[)","captures":{"1":{"name":"meta.brace.square.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"end":"\\\\s*(])(?:\\\\s*(!))?","name":"meta.type.list.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-input-types"},{"include":"#graphql-comma"},{"include":"#literal-quasi-embedded"}]}]},"graphql-list-value":{"patterns":[{"begin":"\\\\s*+(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.graphql"}},"end":"\\\\s*(])","endCaptures":{"1":{"name":"meta.brace.square.graphql"}},"name":"meta.listvalues.graphql","patterns":[{"include":"#graphql-value"}]}]},"graphql-name":{"captures":{"1":{"name":"entity.name.function.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-null-value":{"captures":{"1":{"name":"constant.language.null.graphql"}},"match":"\\\\s*\\\\b(null)\\\\b"},"graphql-object-field":{"captures":{"1":{"name":"constant.object.key.graphql"},"2":{"name":"string.unquoted.graphql"},"3":{"name":"punctuation.graphql"}},"match":"\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*))\\\\s*(:)"},"graphql-object-value":{"patterns":[{"begin":"\\\\s*+(\\\\{)","beginCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"name":"meta.objectvalues.graphql","patterns":[{"include":"#graphql-object-field"},{"include":"#graphql-value"}]}]},"graphql-operation-def":{"patterns":[{"include":"#graphql-query-mutation"},{"include":"#graphql-name"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"}]},"graphql-query-mutation":{"captures":{"1":{"name":"keyword.operation.graphql"}},"match":"\\\\s*\\\\b(query|mutation)\\\\b"},"graphql-scalar":{"captures":{"1":{"name":"keyword.scalar.graphql"},"2":{"name":"entity.scalar.graphql"}},"match":"\\\\s*\\\\b(scalar)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-scalar-type":{"captures":{"1":{"name":"support.type.builtin.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*\\\\b(Int|Float|String|Boolean|ID)\\\\b(?:\\\\s*(!))?"},"graphql-schema":{"begin":"\\\\s*\\\\b(schema)\\\\b","beginCaptures":{"1":{"name":"keyword.schema.graphql"}},"end":"(?<=})","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"patterns":[{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.arguments.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-colon"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"}]},"graphql-selection-set":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.selectionset.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-field"},{"include":"#graphql-fragment-spread"},{"include":"#graphql-inline-fragment"},{"include":"#graphql-comma"},{"include":"#native-interpolation"},{"include":"#literal-quasi-embedded"}]},"graphql-skip-newlines":{"match":"\\\\s*\\\\n"},"graphql-string-content":{"patterns":[{"match":"\\\\\\\\[\\"\'/\\\\\\\\bfnrt]","name":"constant.character.escape.graphql"},{"match":"\\\\\\\\u(\\\\h{4})","name":"constant.character.escape.graphql"}]},"graphql-string-value":{"begin":"\\\\s*+((\\"))","beginCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.begin.graphql"}},"contentName":"string.quoted.double.graphql","end":"\\\\s*+(?:((\\"))|(\\\\n))","endCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.end.graphql"},"3":{"name":"invalid.illegal.newline.graphql"}},"patterns":[{"include":"#graphql-string-content"},{"include":"#literal-quasi-embedded"}]},"graphql-type-definition":{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-type-object"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#literal-quasi-embedded"}]},"graphql-type-interface":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(?:(extends?)?\\\\b\\\\s*\\\\b(type)|(interface)|(input))\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?","captures":{"1":{"name":"keyword.type.graphql"},"2":{"name":"keyword.type.graphql"},"3":{"name":"keyword.interface.graphql"},"4":{"name":"keyword.input.graphql"},"5":{"name":"support.type.graphql"}},"end":"(?=.)","name":"meta.type.interface.graphql","patterns":[{"begin":"\\\\s*\\\\b(implements)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.implements.graphql"}},"end":"\\\\s*(?=\\\\{)","patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-ampersand"},{"include":"#graphql-comma"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-type-object"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-ignore-spaces"}]},"graphql-type-object":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-object-type"},{"include":"#graphql-type-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-union":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(union)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.union.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"applyEndPatternLast":1,"begin":"\\\\s*(=)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"punctuation.assignment.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"},{"captures":{"1":{"name":"punctuation.or.graphql"},"2":{"name":"support.type.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-union-mark":{"captures":{"1":{"name":"punctuation.union.graphql"}},"match":"\\\\s*(\\\\|)"},"graphql-value":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-variable-name"},{"include":"#graphql-float-value"},{"include":"#graphql-string-value"},{"include":"#graphql-boolean-value"},{"include":"#graphql-null-value"},{"include":"#graphql-enum-value"},{"include":"#graphql-list-value"},{"include":"#graphql-object-value"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-assignment":{"applyEndPatternLast":1,"begin":"\\\\s(=)","beginCaptures":{"1":{"name":"punctuation.assignment.graphql"}},"end":"(?=[\\\\n),])","patterns":[{"include":"#graphql-value"}]},"graphql-variable-definition":{"begin":"\\\\s*(\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"}},"end":"(?=\\\\s*((\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|([)}])))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"name":"meta.variables.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#graphql-variable-assignment"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-variable-definitions":{"begin":"\\\\s*(\\\\()","captures":{"1":{"name":"meta.brace.round.graphql"}},"end":"\\\\s*(\\\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-variable-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-name":{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*(\\\\$[A-Z_a-z][0-9A-Z_a-z]*)"},"native-interpolation":{"begin":"\\\\s*(\\\\$\\\\{)","beginCaptures":{"1":{"name":"keyword.other.substitution.begin"}},"end":"(})","endCaptures":{"1":{"name":"keyword.other.substitution.end"}},"name":"native.interpolation","patterns":[{"include":"source.js"},{"include":"source.ts"},{"include":"source.js.jsx"},{"include":"source.tsx"}]}},"scopeName":"source.graphql","embeddedLangs":["javascript","typescript","jsx","tsx"],"aliases":["gql"]}')),qf=[...$e,...Sa,...Ag,...Rc,e];
2
+ export{qf};
@@ -1 +1 @@
1
- import{d,n,o,W,i,u,a,Jt,e,S,lr,cr,Be,Li,f,Oi,$i,zi,O,Gi,b,mt,pe,ai,$s,it,st,ft,$u,Vl}from"./index-4c2zcvem.js";import{hr}from"./index-fjqp03xe.js";var fe=2000,D=new Map;function me(s){if(s.length===0)return"";let r="";for(let t of s)r+=`${t.start}-${t.end},`;return r}function Z(s,r,t){let h=ai(r),c=`${r}\x00${me(t)}\x00${s}`;if(h){let m=D.get(c);if(m!==void 0)return D.delete(c),D.set(c,m),m}let l=$s(s,r,{marks:t});if(!h)return l;if(D.set(c,l),D.size>fe){let m=D.keys().next();if(!m.done)D.delete(m.value)}return l}function ee(s,r,t){let h=[],c=0;for(let l of r){if(l.start<c||l.end<=l.start||l.end>s.length)continue;if(l.start>c)h.push({text:s.slice(c,l.start),kind:"plain"});if(h.push({text:s.slice(l.start,l.end),kind:"removed"}),t)h.push({text:t,kind:"inserted"});c=l.end}if(c<s.length)h.push({text:s.slice(c),kind:"plain"});return h}function ge({file:s,result:r,replacement:t,showReplacePreview:h,onOpen:c}){let l=r.ranges??[],m=h&&t.length>0;return e("button",{type:"button",onClick:()=>c(r),className:"flex w-full items-start gap-2 rounded px-1 py-0.5 text-left hover:bg-ink/5 cursor-pointer",title:`Open ${s}:${r.line}`,children:[e("span",{className:"w-6 flex-shrink-0 text-right font-mono text-ink/40",children:r.line}),m?e("span",{className:"min-w-0 truncate font-mono text-ink",children:ee(r.content,l,t).map((R,p)=>R.kind==="plain"?e("span",{children:R.text},p):R.kind==="removed"?e("del",{className:"search-replace-old",children:R.text},p):e("ins",{className:"search-replace-new",children:R.text},p))}):e("span",{className:"min-w-0 truncate font-mono text-ink",dangerouslySetInnerHTML:{__html:Z(r.content,ft(s),l)}})]})}var te=Jt(ge);var Y={header:4,hit:4,group:16},re={headerBox:16,hitBox:20},ne=5000;function se(s){let r=[],t=null;for(let h of s){if(!t||t.file!==h.file)t={file:h.file,results:[]},r.push(t);t.results.push(h)}return r}function oe(s){let r=[];for(let t of s){r.push({kind:"group",file:t.file,count:t.results.length});for(let h=0;h<t.results.length;h++)r.push({kind:"hit",file:t.file,result:t.results[h],last:h===t.results.length-1})}return r}function xe(s,r){if(s.kind==="group")return r.headerBox+Y.header;return r.hitBox+(s.last?Y.group:Y.hit)}function ie(s,r){let t=Array(s.length),h=Array(s.length),c=0;for(let l=0;l<s.length;l++){let m=xe(s[l],r);t[l]=c,h[l]=m,c+=m}return{offsets:t,heights:h,total:c}}function ae(s,r,t,h,c=240){if(s.length===0)return{start:0,end:0};let l=Math.max(0,t),m=l-c,R=l+h+c,p=0,v=s.length-1;while(p<v){let x=p+v>>1;if(s[x]+r[x]>m)v=x;else p=x+1}let w=p;p=w,v=s.length;while(p<v){let x=p+v>>1;if(s[x]>=R)v=x;else p=x+1}return{start:w,end:p}}var be=8,Se=8;function le({groups:s,replacement:r,showReplacePreview:t,onOpen:h,onReplaceFile:c,replaceBusy:l}){let m=i(null),R=i(null),p=u(()=>oe(s),[s]),[v,w]=n(re),x=u(()=>ie(p,v),[p,v]),[M,E]=n(()=>({start:0,end:Math.min(p.length,60)})),F=a((g)=>{m.current=g},[]),k=a(()=>{let g=m.current;if(!g)return;let N=ae(x.offsets,x.heights,g.scrollTop,g.clientHeight);E((I)=>I.start===N.start&&I.end===N.end?I:N)},[x]),y=a(()=>{k()},[k]);W(()=>{let g=R.current;if(!g)return;let N=g.querySelector("[data-search-header] > div")?.offsetHeight??0,I=g.querySelector("[data-search-hit] > button")?.offsetHeight??0;if(N>0&&N!==v.headerBox)w((C)=>({...C,headerBox:N}));if(I>0&&I!==v.hitBox)w((C)=>({...C,hitBox:I}))},[M,v,p]),W(()=>{k()},[k]),W(()=>{let g=m.current;if(!g||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>k());return N.observe(g),()=>N.disconnect()},[k]);let P=p.length===0?0:Math.min(M.start,p.length-1),L=Math.min(M.end,p.length),B=p.slice(P,L),A=L<p.length?x.total-x.offsets[L]:0;return e("div",{ref:F,onScroll:y,className:"flex-1 scrollbar-overlay-container px-3 text-xs",style:{overflowAnchor:"none"},children:[e("div",{style:{height:be+(x.offsets[P]??0)},"aria-hidden":"true"}),e("div",{ref:R,children:B.map((g,N)=>{let I=P+N,C=x.heights[I];if(g.kind==="group")return e("div",{"data-search-header":"",style:{height:C},children:e("div",{className:"font-semibold text-ink/80 flex items-center justify-between group",children:[e("div",{className:"flex items-center min-w-0",children:[e(it,{name:g.file,size:12,className:"mr-1.5 flex-shrink-0"}),e("span",{className:"truncate",children:g.file}),e("span",{className:"ml-2 bg-ink/10 text-[10px] px-1.5 py-0.5 rounded-full flex-shrink-0",children:g.count})]}),e("button",{onClick:()=>c(g.file),disabled:l,className:"touch-visible opacity-0 group-hover:opacity-100 p-1 text-ink/40 hover:text-ink rounded hover:bg-ink/5 disabled:opacity-50 flex-shrink-0",title:"Replace in this file",children:e(zi,{size:12})})]})},`group:${g.file}`);return e("div",{"data-search-hit":"",style:{height:C},children:e(te,{file:g.file,result:g.result,replacement:r,showReplacePreview:t,onOpen:h})},`hit:${g.file}:${g.result.line}:${I}`)})}),e("div",{style:{height:Se+A},"aria-hidden":"true"})]})}function ce({className:s,query:r,setQuery:t,replaceQuery:h,setReplaceQuery:c,matchCase:l,setMatchCase:m,wholeWord:R,setWholeWord:p,useRegex:v,setUseRegex:w,includeFiles:x,setIncludeFiles:M,showIncludeField:E,setShowIncludeField:F,showMenu:k,setShowMenu:y,menuRef:P,rootPath:L,activeRepo:B,setActiveRepo:A,repos:g,reposScanning:N,rescanRepos:I,results:C,isSearching:G,truncated:H,error:z,onOpenFile:J,handleReplace:q,replaceBusy:Q}){let X=u(()=>se(C),[C]),_=i(null),K=i(null),U=a(()=>{t(""),_.current?.focus()},[t]),j=a(()=>{c(""),K.current?.focus()},[c]),V=u(()=>({matchCase:l,wholeWord:R,isRegex:v,inSelection:!1}),[l,R,v]),he=a((T)=>{$u({path:T.file,line:Number(T.line),query:r,options:V}),J?.({path:T.file,name:T.file.split("/").pop()||T.file,root:L,repo:B})},[r,V,L,B,J]),de=a((T)=>q(T),[q]);return e("div",{className:`flex flex-col h-full bg-paper ${s}`,children:[e(mt,{left:e(d,{children:[e("h2",{className:"text-xs font-semibold text-ink uppercase tracking-wider",children:"Search"}),e(hr,{rootPath:L,activeRepo:B,onSelectRepo:A,repos:g,scanning:N,onRefreshRepos:I})]}),right:e("div",{className:"relative",ref:P,children:[e("button",{onClick:()=>y(!k),className:`p-1 rounded hover:bg-ink/5 transition-colors ${k||E?"text-ink":"text-ink/40"}`,title:"Search Options",children:e(Be,{size:14})}),k&&e("div",{className:"glass-popover absolute right-0 top-full mt-1 w-48 bg-paper border border-ink/10 rounded shadow-lg z-10 py-1",children:e("button",{onClick:()=>{if(F(!E),E)M("");y(!1)},className:"w-full px-3 py-1.5 text-left text-xs text-ink hover:bg-ink/5 flex items-center justify-between",children:[e("span",{children:"Files to include"}),E&&e(f,{size:12,className:"text-ink/60"})]})})]})}),e("div",{className:"p-3 flex flex-col gap-2.5 border-b border-ink/10",children:[e("div",{className:"relative",children:e("div",{className:"flex items-center border border-ink/20 rounded bg-paper focus-within:border-ink/40 focus-within:ring-1 focus-within:ring-ink/10 transition-all",children:[e(O,{size:14,className:"ml-2 text-ink/40 flex-shrink-0"}),e("input",{ref:_,type:"text",placeholder:"Search",value:r,onChange:(T)=>t(T.currentTarget.value),className:"w-full bg-transparent border-none text-xs px-2 py-1.5 focus:outline-none text-ink placeholder-ink/35 min-w-0"}),r&&e("button",{type:"button",onClick:U,title:"Clear search","aria-label":"Clear search",className:"p-1 mr-0.5 rounded text-ink/40 hover:text-ink hover:bg-ink/5 flex-shrink-0",children:e(b,{size:12})}),e("div",{className:"flex items-center space-x-0.5 pr-1 text-ink/40 flex-shrink-0",children:[e("button",{onClick:()=>m(!l),className:`p-1 rounded hover:text-ink ${l?"bg-ink/10 text-ink":"hover:bg-ink/5"}`,title:"Match Case",children:e(Li,{size:14})}),e("button",{onClick:()=>p(!R),className:`p-1 rounded hover:text-ink ${R?"bg-ink/10 text-ink":"hover:bg-ink/5"}`,title:"Match Whole Word",children:e(Gi,{size:14})}),e("button",{onClick:()=>w(!v),className:`p-1 rounded hover:text-ink ${v?"bg-ink/10 text-ink":"hover:bg-ink/5"}`,title:"Use Regular Expression",children:e(Oi,{size:14})})]})]})}),e("div",{className:"relative flex items-center space-x-1",children:[e("div",{className:"flex flex-1 min-w-0 items-center border border-ink/20 rounded bg-paper focus-within:border-ink/40 focus-within:ring-1 focus-within:ring-ink/10 transition-all",children:[e("input",{ref:K,type:"text",placeholder:"Replace",value:h,onChange:(T)=>c(T.currentTarget.value),className:"flex-1 min-w-0 bg-transparent border-none text-xs px-2 py-1.5 focus:outline-none text-ink placeholder-ink/35"}),h&&e("button",{type:"button",onClick:j,title:"Clear replace","aria-label":"Clear replace",className:"p-1 mr-0.5 rounded text-ink/40 hover:text-ink hover:bg-ink/5 flex-shrink-0",children:e(b,{size:12})})]}),e("button",{onClick:()=>q(),disabled:C.length===0||Q,className:"p-1.5 rounded border border-ink/20 text-ink/60 hover:text-ink hover:bg-ink/5 disabled:opacity-50 disabled:cursor-not-allowed bg-paper",title:"Replace All",children:e($i,{size:14})})]}),E&&e("div",{className:"relative",children:e("input",{type:"text",value:x,onChange:(T)=>M(T.currentTarget.value),placeholder:"Files to include (e.g. *.js, src/*)",className:"w-full bg-paper border border-ink/20 rounded text-xs px-2 py-1.5 focus:outline-none focus:border-ink/40 focus:ring-1 focus:ring-ink/10 transition-all text-ink placeholder-ink/40"})})]}),z&&C.length===0?e("div",{className:"flex-1 px-3 py-3",role:"alert",children:e("div",{className:"rounded border border-error/30 bg-error/5 px-2.5 py-2",children:[e("div",{className:"text-[11px] font-semibold text-error",children:"Search failed"}),e("div",{className:"mt-1 whitespace-pre-wrap break-words font-mono text-[10.5px] text-ink/70",children:z}),v&&e("div",{className:"mt-1 text-[10.5px] text-ink/50",children:["Regex is on — escape metacharacters such as ",e("code",{className:"font-mono",children:"( ) [ ] * ? +"})," or turn it off to search literally."]})]})}):G&&C.length===0?e("div",{className:"flex-1 text-ink/40 italic text-center py-4",children:"Searching..."}):r.trim().length<=2?e("div",{className:"flex-1 text-ink/40 italic text-center py-4",children:"Type at least 3 characters to search."}):C.length===0?e("div",{className:"flex-1 text-ink/40 italic text-center py-4",children:"No results found."}):e(d,{children:[z&&e("div",{className:"px-3 pt-2 text-[10.5px] text-error",role:"alert",children:["Search failed: ",e("span",{className:"font-mono",children:z})]}),G&&e("div",{className:"px-3 pt-2 text-ink/40 italic",children:"Searching…"}),H&&e("div",{className:"px-3 pt-2 text-ink/50 italic",children:["Showing the first ",ne," matches — refine the query to see the rest."]}),e(le,{groups:X,replacement:h,showReplacePreview:h.length>0,onOpen:he,onReplaceFile:de,replaceBusy:Q})]})]})}function ue(s){let[r,t]=n({scope:s,results:[],truncated:!1,error:null}),[h,c]=n(!1),l=i(null),m=i(!0),R=i(s);R.current=s,o(()=>(m.current=!0,()=>{m.current=!1,l.current?.abort(),l.current=null}),[]);let p=a(async(v)=>{l.current?.abort();let w=new AbortController;l.current=w;let x=R.current;t({scope:x,results:[],truncated:!1,error:null}),c(!0);try{let M=await fetch("/api/fs/search",{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(v),signal:w.signal});await Vl(M,(E,F)=>{if(R.current!==x)return;if(E==="done"){let k=!1;try{k=JSON.parse(F)?.truncated===!0}catch{}t((y)=>y.scope===x?{...y,truncated:k}:y);return}if(E==="error"){let k="Search failed";try{k=JSON.parse(F)?.error||k}catch{}t((y)=>y.scope===x?{...y,error:k}:y);return}if(E!=="matches")return;try{let k=JSON.parse(F);if(Array.isArray(k))t((y)=>y.scope===x?{...y,results:[...y.results,...k]}:y)}catch{}},w.signal)}catch{}finally{if(m.current&&l.current===w)l.current=null,c(!1)}},[]);return{results:r.scope===s?r.results:[],isSearching:h&&r.scope===s,truncated:r.scope===s&&r.truncated,error:r.scope===s?r.error:null,start:p}}function ot({className:s="",enabled:r=!0,rootPath:t,onOpenFile:h}){let[c,l]=S("search.query",""),[m,R]=S("search.replaceQuery",""),[p,v]=S("search.matchCase",!1),[w,x]=S("search.wholeWord",!1),[M,E]=S("search.useRegex",!1),[F,k]=S("search.includeFiles",""),[y,P]=n(!1),[L,B]=S("search.showIncludeField",!1),{activeRepo:A,setActiveRepo:g}=lr(t),{repos:N,scanning:I,rescan:C}=cr(t,r),G=i(null),H=st(),{results:z,isSearching:J,truncated:q,error:Q,start:X}=ue(`${t??""}\x00${A}`);pe(G,()=>P(!1));let _=a(()=>{if(!r)return;if(c.trim().length>2)return X({q:c,matchCase:String(p),wholeWord:String(w),useRegex:String(M),includeFiles:L?F:"",...t?{root:t}:{},...A!=="."?{repo:A}:{}})},[r,c,p,w,M,L,F,t,A,X]);o(()=>{let U=setTimeout(()=>{_()},300);return()=>clearTimeout(U)},[_]);let K=a((U)=>{if(!c)return;let j=U?[U]:Array.from(new Set(z.map((V)=>V.file)));if(j.length===0)return;H.submit({q:c,replaceWith:m,matchCase:String(p),wholeWord:String(w),useRegex:String(M),files:JSON.stringify(j),...t?{root:t}:{},...A!=="."?{repo:A}:{}},{method:"POST",action:"/api/fs/replace"})},[c,m,p,w,M,z,t,A,H]);if(o(()=>{if(H.state==="idle"&&H.data?.success)_()},[H.state,H.data,_]),!r)return e("div",{className:`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${s}`,children:e("span",{className:"text-xs font-mono text-muted",children:"No session selected"})});return e(ce,{className:s,query:c,setQuery:l,replaceQuery:m,setReplaceQuery:R,matchCase:p,setMatchCase:v,wholeWord:w,setWholeWord:x,useRegex:M,setUseRegex:E,includeFiles:F,setIncludeFiles:k,showIncludeField:L,setShowIncludeField:B,showMenu:y,setShowMenu:P,menuRef:G,rootPath:t,activeRepo:A,setActiveRepo:g,repos:N,reposScanning:I,rescanRepos:C,results:z,isSearching:J,truncated:q,error:Q,onOpenFile:h,handleReplace:K,replaceBusy:H.state!=="idle"})}export{ot as SearchPanel};
1
+ import{d,n,o,W,i,u,a,Zt,e,S,cr,ur,Be,Oi,f,Ui,Gi,ji,O,Hi,b,ft,pe,si,qs,it,st,gt,Wu,tc}from"./index-j4ks5s41.js";import{br}from"./index-rvjc19x7.js";var fe=2000,D=new Map;function me(s){if(s.length===0)return"";let r="";for(let t of s)r+=`${t.start}-${t.end},`;return r}function Z(s,r,t){let h=si(r),c=`${r}\x00${me(t)}\x00${s}`;if(h){let m=D.get(c);if(m!==void 0)return D.delete(c),D.set(c,m),m}let l=qs(s,r,{marks:t});if(!h)return l;if(D.set(c,l),D.size>fe){let m=D.keys().next();if(!m.done)D.delete(m.value)}return l}function ee(s,r,t){let h=[],c=0;for(let l of r){if(l.start<c||l.end<=l.start||l.end>s.length)continue;if(l.start>c)h.push({text:s.slice(c,l.start),kind:"plain"});if(h.push({text:s.slice(l.start,l.end),kind:"removed"}),t)h.push({text:t,kind:"inserted"});c=l.end}if(c<s.length)h.push({text:s.slice(c),kind:"plain"});return h}function ge({file:s,result:r,replacement:t,showReplacePreview:h,onOpen:c}){let l=r.ranges??[],m=h&&t.length>0;return e("button",{type:"button",onClick:()=>c(r),className:"flex w-full items-start gap-2 rounded px-1 py-0.5 text-left hover:bg-ink/5 cursor-pointer",title:`Open ${s}:${r.line}`,children:[e("span",{className:"w-6 flex-shrink-0 text-right font-mono text-ink/40",children:r.line}),m?e("span",{className:"min-w-0 truncate font-mono text-ink",children:ee(r.content,l,t).map((R,p)=>R.kind==="plain"?e("span",{children:R.text},p):R.kind==="removed"?e("del",{className:"search-replace-old",children:R.text},p):e("ins",{className:"search-replace-new",children:R.text},p))}):e("span",{className:"min-w-0 truncate font-mono text-ink",dangerouslySetInnerHTML:{__html:Z(r.content,gt(s),l)}})]})}var te=Zt(ge);var Y={header:4,hit:4,group:16},re={headerBox:16,hitBox:20},ne=5000;function se(s){let r=[],t=null;for(let h of s){if(!t||t.file!==h.file)t={file:h.file,results:[]},r.push(t);t.results.push(h)}return r}function oe(s){let r=[];for(let t of s){r.push({kind:"group",file:t.file,count:t.results.length});for(let h=0;h<t.results.length;h++)r.push({kind:"hit",file:t.file,result:t.results[h],last:h===t.results.length-1})}return r}function xe(s,r){if(s.kind==="group")return r.headerBox+Y.header;return r.hitBox+(s.last?Y.group:Y.hit)}function ie(s,r){let t=Array(s.length),h=Array(s.length),c=0;for(let l=0;l<s.length;l++){let m=xe(s[l],r);t[l]=c,h[l]=m,c+=m}return{offsets:t,heights:h,total:c}}function ae(s,r,t,h,c=240){if(s.length===0)return{start:0,end:0};let l=Math.max(0,t),m=l-c,R=l+h+c,p=0,v=s.length-1;while(p<v){let x=p+v>>1;if(s[x]+r[x]>m)v=x;else p=x+1}let w=p;p=w,v=s.length;while(p<v){let x=p+v>>1;if(s[x]>=R)v=x;else p=x+1}return{start:w,end:p}}var be=8,Se=8;function le({groups:s,replacement:r,showReplacePreview:t,onOpen:h,onReplaceFile:c,replaceBusy:l}){let m=i(null),R=i(null),p=u(()=>oe(s),[s]),[v,w]=n(re),x=u(()=>ie(p,v),[p,v]),[M,E]=n(()=>({start:0,end:Math.min(p.length,60)})),F=a((g)=>{m.current=g},[]),k=a(()=>{let g=m.current;if(!g)return;let N=ae(x.offsets,x.heights,g.scrollTop,g.clientHeight);E((I)=>I.start===N.start&&I.end===N.end?I:N)},[x]),y=a(()=>{k()},[k]);W(()=>{let g=R.current;if(!g)return;let N=g.querySelector("[data-search-header] > div")?.offsetHeight??0,I=g.querySelector("[data-search-hit] > button")?.offsetHeight??0;if(N>0&&N!==v.headerBox)w((C)=>({...C,headerBox:N}));if(I>0&&I!==v.hitBox)w((C)=>({...C,hitBox:I}))},[M,v,p]),W(()=>{k()},[k]),W(()=>{let g=m.current;if(!g||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>k());return N.observe(g),()=>N.disconnect()},[k]);let P=p.length===0?0:Math.min(M.start,p.length-1),L=Math.min(M.end,p.length),B=p.slice(P,L),A=L<p.length?x.total-x.offsets[L]:0;return e("div",{ref:F,onScroll:y,className:"flex-1 scrollbar-overlay-container px-3 text-xs",style:{overflowAnchor:"none"},children:[e("div",{style:{height:be+(x.offsets[P]??0)},"aria-hidden":"true"}),e("div",{ref:R,children:B.map((g,N)=>{let I=P+N,C=x.heights[I];if(g.kind==="group")return e("div",{"data-search-header":"",style:{height:C},children:e("div",{className:"font-semibold text-ink/80 flex items-center justify-between group",children:[e("div",{className:"flex items-center min-w-0",children:[e(it,{name:g.file,size:12,className:"mr-1.5 flex-shrink-0"}),e("span",{className:"truncate",children:g.file}),e("span",{className:"ml-2 bg-ink/10 text-[10px] px-1.5 py-0.5 rounded-full flex-shrink-0",children:g.count})]}),e("button",{onClick:()=>c(g.file),disabled:l,className:"touch-visible opacity-0 group-hover:opacity-100 p-1 text-ink/40 hover:text-ink rounded hover:bg-ink/5 disabled:opacity-50 flex-shrink-0",title:"Replace in this file",children:e(ji,{size:12})})]})},`group:${g.file}`);return e("div",{"data-search-hit":"",style:{height:C},children:e(te,{file:g.file,result:g.result,replacement:r,showReplacePreview:t,onOpen:h})},`hit:${g.file}:${g.result.line}:${I}`)})}),e("div",{style:{height:Se+A},"aria-hidden":"true"})]})}function ce({className:s,query:r,setQuery:t,replaceQuery:h,setReplaceQuery:c,matchCase:l,setMatchCase:m,wholeWord:R,setWholeWord:p,useRegex:v,setUseRegex:w,includeFiles:x,setIncludeFiles:M,showIncludeField:E,setShowIncludeField:F,showMenu:k,setShowMenu:y,menuRef:P,rootPath:L,activeRepo:B,setActiveRepo:A,repos:g,reposScanning:N,rescanRepos:I,results:C,isSearching:G,truncated:H,error:z,onOpenFile:J,handleReplace:q,replaceBusy:Q}){let X=u(()=>se(C),[C]),_=i(null),K=i(null),U=a(()=>{t(""),_.current?.focus()},[t]),j=a(()=>{c(""),K.current?.focus()},[c]),V=u(()=>({matchCase:l,wholeWord:R,isRegex:v,inSelection:!1}),[l,R,v]),he=a((T)=>{Wu({path:T.file,line:Number(T.line),query:r,options:V}),J?.({path:T.file,name:T.file.split("/").pop()||T.file,root:L,repo:B})},[r,V,L,B,J]),de=a((T)=>q(T),[q]);return e("div",{className:`flex flex-col h-full bg-paper ${s}`,children:[e(ft,{left:e(d,{children:[e("h2",{className:"text-xs font-semibold text-ink uppercase tracking-wider",children:"Search"}),e(br,{rootPath:L,activeRepo:B,onSelectRepo:A,repos:g,scanning:N,onRefreshRepos:I})]}),right:e("div",{className:"relative",ref:P,children:[e("button",{onClick:()=>y(!k),className:`p-1 rounded hover:bg-ink/5 transition-colors ${k||E?"text-ink":"text-ink/40"}`,title:"Search Options",children:e(Be,{size:14})}),k&&e("div",{className:"glass-popover absolute right-0 top-full mt-1 w-48 bg-paper border border-ink/10 rounded shadow-lg z-10 py-1",children:e("button",{onClick:()=>{if(F(!E),E)M("");y(!1)},className:"w-full px-3 py-1.5 text-left text-xs text-ink hover:bg-ink/5 flex items-center justify-between",children:[e("span",{children:"Files to include"}),E&&e(f,{size:12,className:"text-ink/60"})]})})]})}),e("div",{className:"p-3 flex flex-col gap-2.5 border-b border-ink/10",children:[e("div",{className:"relative",children:e("div",{className:"flex items-center border border-ink/20 rounded bg-paper focus-within:border-ink/40 focus-within:ring-1 focus-within:ring-ink/10 transition-all",children:[e(O,{size:14,className:"ml-2 text-ink/40 flex-shrink-0"}),e("input",{ref:_,type:"text",placeholder:"Search",value:r,onChange:(T)=>t(T.currentTarget.value),className:"w-full bg-transparent border-none text-xs px-2 py-1.5 focus:outline-none text-ink placeholder-ink/35 min-w-0"}),r&&e("button",{type:"button",onClick:U,title:"Clear search","aria-label":"Clear search",className:"p-1 mr-0.5 rounded text-ink/40 hover:text-ink hover:bg-ink/5 flex-shrink-0",children:e(b,{size:12})}),e("div",{className:"flex items-center space-x-0.5 pr-1 text-ink/40 flex-shrink-0",children:[e("button",{onClick:()=>m(!l),className:`p-1 rounded hover:text-ink ${l?"bg-ink/10 text-ink":"hover:bg-ink/5"}`,title:"Match Case",children:e(Oi,{size:14})}),e("button",{onClick:()=>p(!R),className:`p-1 rounded hover:text-ink ${R?"bg-ink/10 text-ink":"hover:bg-ink/5"}`,title:"Match Whole Word",children:e(Hi,{size:14})}),e("button",{onClick:()=>w(!v),className:`p-1 rounded hover:text-ink ${v?"bg-ink/10 text-ink":"hover:bg-ink/5"}`,title:"Use Regular Expression",children:e(Ui,{size:14})})]})]})}),e("div",{className:"relative flex items-center space-x-1",children:[e("div",{className:"flex flex-1 min-w-0 items-center border border-ink/20 rounded bg-paper focus-within:border-ink/40 focus-within:ring-1 focus-within:ring-ink/10 transition-all",children:[e("input",{ref:K,type:"text",placeholder:"Replace",value:h,onChange:(T)=>c(T.currentTarget.value),className:"flex-1 min-w-0 bg-transparent border-none text-xs px-2 py-1.5 focus:outline-none text-ink placeholder-ink/35"}),h&&e("button",{type:"button",onClick:j,title:"Clear replace","aria-label":"Clear replace",className:"p-1 mr-0.5 rounded text-ink/40 hover:text-ink hover:bg-ink/5 flex-shrink-0",children:e(b,{size:12})})]}),e("button",{onClick:()=>q(),disabled:C.length===0||Q,className:"p-1.5 rounded border border-ink/20 text-ink/60 hover:text-ink hover:bg-ink/5 disabled:opacity-50 disabled:cursor-not-allowed bg-paper",title:"Replace All",children:e(Gi,{size:14})})]}),E&&e("div",{className:"relative",children:e("input",{type:"text",value:x,onChange:(T)=>M(T.currentTarget.value),placeholder:"Files to include (e.g. *.js, src/*)",className:"w-full bg-paper border border-ink/20 rounded text-xs px-2 py-1.5 focus:outline-none focus:border-ink/40 focus:ring-1 focus:ring-ink/10 transition-all text-ink placeholder-ink/40"})})]}),z&&C.length===0?e("div",{className:"flex-1 px-3 py-3",role:"alert",children:e("div",{className:"rounded border border-error/30 bg-error/5 px-2.5 py-2",children:[e("div",{className:"text-[11px] font-semibold text-error",children:"Search failed"}),e("div",{className:"mt-1 whitespace-pre-wrap break-words font-mono text-[10.5px] text-ink/70",children:z}),v&&e("div",{className:"mt-1 text-[10.5px] text-ink/50",children:["Regex is on — escape metacharacters such as ",e("code",{className:"font-mono",children:"( ) [ ] * ? +"})," or turn it off to search literally."]})]})}):G&&C.length===0?e("div",{className:"flex-1 text-ink/40 italic text-center py-4",children:"Searching..."}):r.trim().length<=2?e("div",{className:"flex-1 text-ink/40 italic text-center py-4",children:"Type at least 3 characters to search."}):C.length===0?e("div",{className:"flex-1 text-ink/40 italic text-center py-4",children:"No results found."}):e(d,{children:[z&&e("div",{className:"px-3 pt-2 text-[10.5px] text-error",role:"alert",children:["Search failed: ",e("span",{className:"font-mono",children:z})]}),G&&e("div",{className:"px-3 pt-2 text-ink/40 italic",children:"Searching…"}),H&&e("div",{className:"px-3 pt-2 text-ink/50 italic",children:["Showing the first ",ne," matches — refine the query to see the rest."]}),e(le,{groups:X,replacement:h,showReplacePreview:h.length>0,onOpen:he,onReplaceFile:de,replaceBusy:Q})]})]})}function ue(s){let[r,t]=n({scope:s,results:[],truncated:!1,error:null}),[h,c]=n(!1),l=i(null),m=i(!0),R=i(s);R.current=s,o(()=>(m.current=!0,()=>{m.current=!1,l.current?.abort(),l.current=null}),[]);let p=a(async(v)=>{l.current?.abort();let w=new AbortController;l.current=w;let x=R.current;t({scope:x,results:[],truncated:!1,error:null}),c(!0);try{let M=await fetch("/api/fs/search",{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(v),signal:w.signal});await tc(M,(E,F)=>{if(R.current!==x)return;if(E==="done"){let k=!1;try{k=JSON.parse(F)?.truncated===!0}catch{}t((y)=>y.scope===x?{...y,truncated:k}:y);return}if(E==="error"){let k="Search failed";try{k=JSON.parse(F)?.error||k}catch{}t((y)=>y.scope===x?{...y,error:k}:y);return}if(E!=="matches")return;try{let k=JSON.parse(F);if(Array.isArray(k))t((y)=>y.scope===x?{...y,results:[...y.results,...k]}:y)}catch{}},w.signal)}catch{}finally{if(m.current&&l.current===w)l.current=null,c(!1)}},[]);return{results:r.scope===s?r.results:[],isSearching:h&&r.scope===s,truncated:r.scope===s&&r.truncated,error:r.scope===s?r.error:null,start:p}}function ot({className:s="",enabled:r=!0,rootPath:t,onOpenFile:h}){let[c,l]=S("search.query",""),[m,R]=S("search.replaceQuery",""),[p,v]=S("search.matchCase",!1),[w,x]=S("search.wholeWord",!1),[M,E]=S("search.useRegex",!1),[F,k]=S("search.includeFiles",""),[y,P]=n(!1),[L,B]=S("search.showIncludeField",!1),{activeRepo:A,setActiveRepo:g}=cr(t),{repos:N,scanning:I,rescan:C}=ur(t,r),G=i(null),H=st(),{results:z,isSearching:J,truncated:q,error:Q,start:X}=ue(`${t??""}\x00${A}`);pe(G,()=>P(!1));let _=a(()=>{if(!r)return;if(c.trim().length>2)return X({q:c,matchCase:String(p),wholeWord:String(w),useRegex:String(M),includeFiles:L?F:"",...t?{root:t}:{},...A!=="."?{repo:A}:{}})},[r,c,p,w,M,L,F,t,A,X]);o(()=>{let U=setTimeout(()=>{_()},300);return()=>clearTimeout(U)},[_]);let K=a((U)=>{if(!c)return;let j=U?[U]:Array.from(new Set(z.map((V)=>V.file)));if(j.length===0)return;H.submit({q:c,replaceWith:m,matchCase:String(p),wholeWord:String(w),useRegex:String(M),files:JSON.stringify(j),...t?{root:t}:{},...A!=="."?{repo:A}:{}},{method:"POST",action:"/api/fs/replace"})},[c,m,p,w,M,z,t,A,H]);if(o(()=>{if(H.state==="idle"&&H.data?.success)_()},[H.state,H.data,_]),!r)return e("div",{className:`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${s}`,children:e("span",{className:"text-xs font-mono text-muted",children:"No session selected"})});return e(ce,{className:s,query:c,setQuery:l,replaceQuery:m,setReplaceQuery:R,matchCase:p,setMatchCase:v,wholeWord:w,setWholeWord:x,useRegex:M,setUseRegex:E,includeFiles:F,setIncludeFiles:k,showIncludeField:L,setShowIncludeField:B,showMenu:y,setShowMenu:P,menuRef:G,rootPath:t,activeRepo:A,setActiveRepo:g,repos:N,reposScanning:I,rescanRepos:C,results:z,isSearching:J,truncated:q,error:Q,onOpenFile:h,handleReplace:K,replaceBusy:H.state!=="idle"})}export{ot as SearchPanel};
@@ -1,2 +1,2 @@
1
- import{n,o,i,a,e,s,ur,m,ie,Nt,nt,D,b,G,Ie}from"./index-4c2zcvem.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"}]]},ml=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"}]]},Ta=s(H);async function xd(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 ws({initialPath:r,onSelect:u,onClose:p}){let[l,C]=n(r??""),[f,y]=n(""),[h,P]=n([]),[x,T]=n(null),[R,k]=n(!0),[v,S]=n(null),[z,g]=n(null),L=i(null),d=a(async(t)=>{k(!0),S(null);try{let c=await xd(t);C(c.path??t??""),T(c.parentPath??null),y(c.path??t??""),P(c.directories??[])}catch(c){S(c instanceof Error?c.message:String(c))}finally{k(!1)}},[]);o(()=>{d(r)},[r,d]);let A=()=>{if(x)d(x)},I=(t)=>{t.preventDefault();let c=f.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(Nt,{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(b,{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(ur,{size:14,className:"text-ink/40 flex-shrink-0"}),e("input",{ref:L,type:"text",value:f,onChange:(t)=>y(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(ur,{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(ie,{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(D,{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(nt,{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 Ag="modern",hg=["classic","modern"];function M(r){return r==="classic"||r==="modern"}function fl(r){return M(r)?r:"modern"}var bg={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 fl(G(U,r))}function yg(r){if(typeof window>"u")return;window.dispatchEvent(new CustomEvent(E,{detail:fl(r)}))}function du(){let[r,u]=n(()=>V());return Ie(E,(p)=>{u(fl(p.detail))}),r}
2
- export{ml,Ta,Ag,hg,fl,bg,yg,du,xd,ws};
1
+ import{n,o,i,a,e,s,dr,m,ie,Rt,nt,D,b,G,Ie}from"./index-j4ks5s41.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"}]]},bl=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"}]]},Da=s(H);async function Td(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 _s({initialPath:r,onSelect:u,onClose:p}){let[l,C]=n(r??""),[f,y]=n(""),[h,P]=n([]),[x,T]=n(null),[R,k]=n(!0),[v,S]=n(null),[z,g]=n(null),L=i(null),d=a(async(t)=>{k(!0),S(null);try{let c=await Td(t);C(c.path??t??""),T(c.parentPath??null),y(c.path??t??""),P(c.directories??[])}catch(c){S(c instanceof Error?c.message:String(c))}finally{k(!1)}},[]);o(()=>{d(r)},[r,d]);let A=()=>{if(x)d(x)},I=(t)=>{t.preventDefault();let c=f.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(Rt,{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(b,{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(dr,{size:14,className:"text-ink/40 flex-shrink-0"}),e("input",{ref:L,type:"text",value:f,onChange:(t)=>y(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(dr,{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(ie,{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(D,{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(nt,{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 Cg="modern",Eg=["classic","modern"];function M(r){return r==="classic"||r==="modern"}function yl(r){return M(r)?r:"modern"}var Bg={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 yl(G(U,r))}function Ig(r){if(typeof window>"u")return;window.dispatchEvent(new CustomEvent(E,{detail:yl(r)}))}function bu(){let[r,u]=n(()=>V());return Ie(E,(p)=>{u(yl(p.detail))}),r}
2
+ export{bl,Da,Cg,Eg,yl,Bg,Ig,bu,Td,_s};