openwork-server 0.18.49 → 0.18.56

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 (695) hide show
  1. package/README.md +31 -1
  2. package/bin/openwork-server.mjs +28 -20
  3. package/bin/platform.mjs +28 -0
  4. package/dist/opencode-plugin-deps-1.18.30.tgz +0 -0
  5. package/dist/opencode-plugins/agent-instruction-compose.js +81 -0
  6. package/dist/opencode-plugins/gmail-attachment-fulfillment.js +199 -0
  7. package/dist/opencode-plugins/managed-policy-client.js +39 -0
  8. package/dist/opencode-plugins/managed-policy-next.js +13894 -0
  9. package/dist/opencode-plugins/managed-policy.js +100 -0
  10. package/dist/opencode-plugins/openwork-anthropic-adaptive-thinking.js +83 -0
  11. package/dist/opencode-plugins/openwork-anthropic-tool-schema.js +154 -0
  12. package/dist/opencode-plugins/openwork-capabilities-knowledge.js +13842 -0
  13. package/dist/opencode-plugins/openwork-chrome-devtools.js +13690 -0
  14. package/dist/opencode-plugins/openwork-context-v2.js +84 -0
  15. package/dist/opencode-plugins/openwork-extensions-preview-steering.js +295 -0
  16. package/dist/opencode-plugins/openwork-extensions-preview.js +16388 -0
  17. package/dist/opencode-plugins/openwork-gateway-quota-v2.js +13816 -0
  18. package/dist/opencode-plugins/openwork-gateway-quota.js +14141 -0
  19. package/dist/opencode-plugins/openwork-mcp-results-v2.js +154 -0
  20. package/dist/opencode-plugins/openwork-office-attachments.js +3013 -0
  21. package/dist/opencode-plugins/openwork-pdf-attachments.js +23811 -0
  22. package/dist/opencode-plugins/openwork-provider-adapters.js +292 -0
  23. package/dist/opencode-plugins/openwork-provider-filters-v2.js +69 -0
  24. package/dist/opencode-plugins/openwork-read-transport.js +2 -0
  25. package/dist/opencode-plugins/openwork-spreadsheets.js +16582 -0
  26. package/dist/opencode-plugins/openwork-title-recovery.js +255 -0
  27. package/dist/opencode-plugins/openwork-ui-bridge.js +81 -0
  28. package/dist/opencode-plugins/pdfium.wasm +0 -0
  29. package/dist/opencode-plugins/session-activity.js +45 -0
  30. package/dist/opencode-plugins/workspace-file-identity.js +162 -0
  31. package/dist/openwork-server.mjs +114735 -0
  32. package/dist/pdfium.wasm +0 -0
  33. package/package.json +7 -1
  34. package/web/apple-touch-icon.png +0 -0
  35. package/web/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  36. package/web/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  37. package/web/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  38. package/web/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  39. package/web/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  40. package/web/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  41. package/web/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  42. package/web/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  43. package/web/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  44. package/web/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  45. package/web/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  46. package/web/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  47. package/web/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  48. package/web/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  49. package/web/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  50. package/web/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  51. package/web/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  52. package/web/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  53. package/web/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  54. package/web/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  55. package/web/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  56. package/web/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  57. package/web/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  58. package/web/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  59. package/web/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  60. package/web/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  61. package/web/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  62. package/web/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  63. package/web/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  64. package/web/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  65. package/web/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  66. package/web/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  67. package/web/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  68. package/web/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  69. package/web/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  70. package/web/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  71. package/web/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  72. package/web/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  73. package/web/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  74. package/web/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  75. package/web/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  76. package/web/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  77. package/web/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  78. package/web/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  79. package/web/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  80. package/web/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  81. package/web/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  82. package/web/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  83. package/web/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  84. package/web/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  85. package/web/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  86. package/web/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  87. package/web/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  88. package/web/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  89. package/web/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  90. package/web/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  91. package/web/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  92. package/web/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  93. package/web/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  94. package/web/assets/abap-BdImnpbu.js +1 -0
  95. package/web/assets/abnfDiagram-VCTEODGH-Dr1YMfll.js +1 -0
  96. package/web/assets/actionscript-3-CoDkCxhg.js +1 -0
  97. package/web/assets/ada-bCR0ucgS.js +1 -0
  98. package/web/assets/andromeeda-C4gqWexZ.js +1 -0
  99. package/web/assets/angular-html-DA-rfuFy.js +1 -0
  100. package/web/assets/angular-ts-BrjP3tb8.js +1 -0
  101. package/web/assets/apache-Pmp26Uib.js +1 -0
  102. package/web/assets/apex-D8_7TLub.js +1 -0
  103. package/web/assets/apl-CORt7UWP.js +1 -0
  104. package/web/assets/app-D9Nvta88.js +2631 -0
  105. package/web/assets/app-DOrYoP_4.css +32 -0
  106. package/web/assets/applescript-Co6uUVPk.js +1 -0
  107. package/web/assets/ara-BRHolxvo.js +1 -0
  108. package/web/assets/arc-7SoIBvT7.js +1 -0
  109. package/web/assets/architectureDiagram-5GKGNRK7-BZwevfH9.js +36 -0
  110. package/web/assets/artifact-code-view-WLwX_I1h.js +1906 -0
  111. package/web/assets/artifact-spreadsheet-editor-BvEnxKsm.js +11 -0
  112. package/web/assets/artifact-text-editor-BHyVrNyR.js +34 -0
  113. package/web/assets/asciidoc-Ve4PFQV2.js +1 -0
  114. package/web/assets/asm-D_Q5rh1f.js +1 -0
  115. package/web/assets/astro-HNnZUWAn.js +1 -0
  116. package/web/assets/aurora-x-D-2ljcwZ.js +1 -0
  117. package/web/assets/awk-DMzUqQB5.js +1 -0
  118. package/web/assets/ayu-dark-DYE7WIF3.js +1 -0
  119. package/web/assets/ayu-light-BA47KaF1.js +1 -0
  120. package/web/assets/ayu-mirage-32ctXXKs.js +1 -0
  121. package/web/assets/ballerina-BFfxhgS-.js +1 -0
  122. package/web/assets/bat-BkioyH1T.js +1 -0
  123. package/web/assets/beancount-k_qm7-4y.js +1 -0
  124. package/web/assets/berry-uYugtg8r.js +1 -0
  125. package/web/assets/bibtex-CHM0blh-.js +1 -0
  126. package/web/assets/bicep-Bmn6On1c.js +1 -0
  127. package/web/assets/bird2-BIv1doCn.js +1 -0
  128. package/web/assets/blade-BjGOyj-B.js +1 -0
  129. package/web/assets/blockDiagram-OSKFZWR5-Cvqr9DPi.js +129 -0
  130. package/web/assets/bsl-BO_Y6i37.js +1 -0
  131. package/web/assets/c-BIGW1oBm.js +1 -0
  132. package/web/assets/c3-eo99z4R2.js +1 -0
  133. package/web/assets/c4Diagram-7LVT6UL2-CWTWC9C1.js +38 -0
  134. package/web/assets/cadence-Bv_4Rxtq.js +1 -0
  135. package/web/assets/cairo-KRGpt6FW.js +1 -0
  136. package/web/assets/catppuccin-frappe-DFWUc33u.js +1 -0
  137. package/web/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
  138. package/web/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
  139. package/web/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
  140. package/web/assets/channel-BkgEJbR-.js +1 -0
  141. package/web/assets/chunk-2Q5K7J3B-DpJkzZ5x.js +1 -0
  142. package/web/assets/chunk-5VM5RSS4-BtTBnr9m.js +15 -0
  143. package/web/assets/chunk-F27PBJKO-BbAvFJAg.js +1 -0
  144. package/web/assets/chunk-HLEWEB6X-DX5mKBrj.js +206 -0
  145. package/web/assets/chunk-JWPE2WC7-CugB1e5O.js +1 -0
  146. package/web/assets/chunk-POPQ4Y6H-BQ-bWmmo.js +1 -0
  147. package/web/assets/chunk-SVP7TREG-szCI_Kz9.js +88 -0
  148. package/web/assets/chunk-XXDRQBXY-C5UTO899.js +1 -0
  149. package/web/assets/chunk-ZLD2IHE6-D5v_jiDg.js +231 -0
  150. package/web/assets/clarity-D53aC0YG.js +1 -0
  151. package/web/assets/classDiagram-CYGNFDIV-BHINh3-f.js +1 -0
  152. package/web/assets/classDiagram-v2-TLXNO2FR-BHINh3-f.js +1 -0
  153. package/web/assets/clojure-P80f7IUj.js +1 -0
  154. package/web/assets/cmake-D1j8_8rp.js +1 -0
  155. package/web/assets/cobol-nBiQ_Alo.js +1 -0
  156. package/web/assets/codeowners-Bp6g37R7.js +1 -0
  157. package/web/assets/codeql-DsOJ9woJ.js +1 -0
  158. package/web/assets/coffee-Ch7k5sss.js +1 -0
  159. package/web/assets/common-lisp-Cg-RD9OK.js +1 -0
  160. package/web/assets/coq-DkFqJrB1.js +1 -0
  161. package/web/assets/cose-bilkent-JH36ORCC-BhG_zAfo.js +1 -0
  162. package/web/assets/cpp-CofmeUqb.js +1 -0
  163. package/web/assets/crystal-DNxU26gB.js +1 -0
  164. package/web/assets/csharp-COcwbKMJ.js +1 -0
  165. package/web/assets/css-CLj8gQPS.js +1 -0
  166. package/web/assets/csv-fuZLfV_i.js +1 -0
  167. package/web/assets/cue-D82EKSYY.js +1 -0
  168. package/web/assets/cynefin-OW5HDTMX-DSTjm6jO.js +178 -0
  169. package/web/assets/cynefinDiagram-5FMLGOSQ-Dqkgb6tF.js +62 -0
  170. package/web/assets/cypher-COkxafJQ.js +1 -0
  171. package/web/assets/cytoscape.esm-CNiYdHpY.js +331 -0
  172. package/web/assets/d-85-TOEBH.js +1 -0
  173. package/web/assets/dagre-OS7QT2EB-BZMseQyA.js +4 -0
  174. package/web/assets/dark-plus-C3mMm8J8.js +1 -0
  175. package/web/assets/dart-bE4Kk8sk.js +1 -0
  176. package/web/assets/dax-CEL-wOlO.js +1 -0
  177. package/web/assets/defaultLocale-DX6XiGOO.js +1 -0
  178. package/web/assets/desktop-BmXAJ9_W.js +1 -0
  179. package/web/assets/diagram-S7CK7UJ4-Cs2hsmEJ.js +30 -0
  180. package/web/assets/diagram-UQ7AKVKN-CDnRP_yz.js +41 -0
  181. package/web/assets/diagram-VSXAHHWV-DxKXQXAC.js +3 -0
  182. package/web/assets/diagram-VX7I27RA-BJKoseDf.js +24 -0
  183. package/web/assets/diagram-Z3DM3KII-DDcMvRxo.js +24 -0
  184. package/web/assets/diff-D97Zzqfu.js +1 -0
  185. package/web/assets/docker-BcOcwvcX.js +1 -0
  186. package/web/assets/dotenv-Da5cRb03.js +1 -0
  187. package/web/assets/dracula-BzJJZx-M.js +1 -0
  188. package/web/assets/dracula-soft-BXkSAIEj.js +1 -0
  189. package/web/assets/dream-maker-BtqSS_iP.js +1 -0
  190. package/web/assets/ebnfDiagram-PWID7BFC-C2uUm-CC.js +1 -0
  191. package/web/assets/edge-FbVlp4U3.js +1 -0
  192. package/web/assets/elixir-CkH2-t6x.js +1 -0
  193. package/web/assets/elm-DbKCFpqz.js +1 -0
  194. package/web/assets/emacs-lisp-CXvaQtF9.js +1 -0
  195. package/web/assets/erDiagram-2YWLMYGG-B0Mdv5WO.js +99 -0
  196. package/web/assets/erb-BYCe7drp.js +1 -0
  197. package/web/assets/erlang-DsQrWhSR.js +1 -0
  198. package/web/assets/everforest-dark-BgDCqdQA.js +1 -0
  199. package/web/assets/everforest-light-C8M2exoo.js +1 -0
  200. package/web/assets/fennel-BYunw83y.js +1 -0
  201. package/web/assets/fish-BvzEVeQv.js +1 -0
  202. package/web/assets/flowDiagram-T62WH6J4-CUnt9AMo.js +168 -0
  203. package/web/assets/fluent-C4IJs8-o.js +1 -0
  204. package/web/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
  205. package/web/assets/fortran-free-form-BxgE0vQu.js +1 -0
  206. package/web/assets/fsharp-CXgrBDvD.js +1 -0
  207. package/web/assets/ganttDiagram-EL5Y4UJY-CENsUToC.js +292 -0
  208. package/web/assets/gdresource-BOOCDP_w.js +1 -0
  209. package/web/assets/gdscript-C5YyOfLZ.js +1 -0
  210. package/web/assets/gdshader-DkwncUOv.js +1 -0
  211. package/web/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2 +0 -0
  212. package/web/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2 +0 -0
  213. package/web/assets/geist-latin-wght-normal-Dm3htQBi.woff2 +0 -0
  214. package/web/assets/genie-D0YGMca9.js +1 -0
  215. package/web/assets/gherkin-DyxjwDmM.js +1 -0
  216. package/web/assets/git-commit-F4YmCXRG.js +1 -0
  217. package/web/assets/git-rebase-r7XF79zn.js +1 -0
  218. package/web/assets/gitGraphDiagram-WWUBYQGX-CrbKh94B.js +106 -0
  219. package/web/assets/github-dark-DHJKELXO.js +1 -0
  220. package/web/assets/github-dark-default-Cuk6v7N8.js +1 -0
  221. package/web/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  222. package/web/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  223. package/web/assets/github-light-DAi9KRSo.js +1 -0
  224. package/web/assets/github-light-default-D7oLnXFd.js +1 -0
  225. package/web/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  226. package/web/assets/gleam-BspZqrRM.js +1 -0
  227. package/web/assets/glimmer-js-ByusRIyA.js +1 -0
  228. package/web/assets/glimmer-ts-BfAWNZQY.js +1 -0
  229. package/web/assets/glsl-DplSGwfg.js +1 -0
  230. package/web/assets/gn-n2N0HUVH.js +1 -0
  231. package/web/assets/gnuplot-DdkO51Og.js +1 -0
  232. package/web/assets/go-C27-OAKa.js +1 -0
  233. package/web/assets/graphql-ChdNCCLP.js +1 -0
  234. package/web/assets/groovy-gcz8RCvz.js +1 -0
  235. package/web/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  236. package/web/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  237. package/web/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  238. package/web/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  239. package/web/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  240. package/web/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  241. package/web/assets/hack-i7_Ulhet.js +1 -0
  242. package/web/assets/haml-D5jkg6IW.js +1 -0
  243. package/web/assets/handlebars-BpdQsYii.js +1 -0
  244. package/web/assets/haskell-Df6bDoY_.js +1 -0
  245. package/web/assets/haxe-CzTSHFRz.js +1 -0
  246. package/web/assets/hcl-BWvSN4gD.js +1 -0
  247. package/web/assets/hjson-D5-asLiD.js +1 -0
  248. package/web/assets/hlsl-D3lLCCz7.js +1 -0
  249. package/web/assets/horizon-BUw7H-hv.js +1 -0
  250. package/web/assets/horizon-bright-CUuTKBJd.js +1 -0
  251. package/web/assets/houston-DnULxvSX.js +1 -0
  252. package/web/assets/html-derivative-DlHx6ybY.js +1 -0
  253. package/web/assets/html-pp8916En.js +1 -0
  254. package/web/assets/http-jrhK8wxY.js +1 -0
  255. package/web/assets/hurl-irOxFIW8.js +1 -0
  256. package/web/assets/hxml-Bvhsp5Yf.js +1 -0
  257. package/web/assets/hy-DFXneXwc.js +1 -0
  258. package/web/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
  259. package/web/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
  260. package/web/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
  261. package/web/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
  262. package/web/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
  263. package/web/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
  264. package/web/assets/imba-DGztddWO.js +1 -0
  265. package/web/assets/index-CyyMNIC_.css +1 -0
  266. package/web/assets/index-D6FUvVB1.js +49 -0
  267. package/web/assets/infoDiagram-FKFFQAWI-B-U-x_qU.js +2 -0
  268. package/web/assets/ini-BEwlwnbL.js +1 -0
  269. package/web/assets/init-Gi6I4Gst.js +1 -0
  270. package/web/assets/ishikawaDiagram-5VMMS53U-jNVSJSu1.js +70 -0
  271. package/web/assets/java-CylS5w8V.js +1 -0
  272. package/web/assets/javascript-wDzz0qaB.js +1 -0
  273. package/web/assets/jinja-f2NsQr07.js +1 -0
  274. package/web/assets/jison-wvAkD_A8.js +1 -0
  275. package/web/assets/journeyDiagram-EYS64GPL-De3j0gPh.js +139 -0
  276. package/web/assets/json-Cp-IABpG.js +1 -0
  277. package/web/assets/json5-C9tS-k6U.js +1 -0
  278. package/web/assets/jsonc-Des-eS-w.js +1 -0
  279. package/web/assets/jsonl-DcaNXYhu.js +1 -0
  280. package/web/assets/jsonnet-DFQXde-d.js +1 -0
  281. package/web/assets/jssm-C2t-YnRu.js +1 -0
  282. package/web/assets/jsx-g9-lgVsj.js +1 -0
  283. package/web/assets/julia-CxzCAyBv.js +1 -0
  284. package/web/assets/just-VxiPbLrw.js +1 -0
  285. package/web/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
  286. package/web/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
  287. package/web/assets/kanagawa-wave-DWedfzmr.js +1 -0
  288. package/web/assets/kanban-definition-UXKFOSKX-Bbc8wjhq.js +89 -0
  289. package/web/assets/katex-HP8lGamR.js +257 -0
  290. package/web/assets/kdl-DV7GczEv.js +1 -0
  291. package/web/assets/kotlin-BdnUsdx6.js +1 -0
  292. package/web/assets/kusto-wEQ09or8.js +1 -0
  293. package/web/assets/laserwave-DUszq2jm.js +1 -0
  294. package/web/assets/latex-CWtU0Tv5.js +1 -0
  295. package/web/assets/layout-BIjP2nup.js +1 -0
  296. package/web/assets/lean-BZvkOJ9d.js +1 -0
  297. package/web/assets/less-B1dDrJ26.js +1 -0
  298. package/web/assets/light-plus-B7mTdjB0.js +1 -0
  299. package/web/assets/linear-lvQZOiHM.js +1 -0
  300. package/web/assets/liquid-C0sCDyMI.js +1 -0
  301. package/web/assets/llvm-DjAJT7YJ.js +1 -0
  302. package/web/assets/log-2UxHyX5q.js +1 -0
  303. package/web/assets/logo-BtOb2qkB.js +1 -0
  304. package/web/assets/lua-BaeVxFsk.js +1 -0
  305. package/web/assets/luau-C-HG3fhB.js +1 -0
  306. package/web/assets/make-CHLpvVh8.js +1 -0
  307. package/web/assets/markdown-Cvjx9yec.js +1 -0
  308. package/web/assets/marko-DjSrsDqO.js +1 -0
  309. package/web/assets/material-theme-D5KoaKCx.js +1 -0
  310. package/web/assets/material-theme-darker-BfHTSMKl.js +1 -0
  311. package/web/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  312. package/web/assets/material-theme-ocean-CyktbL80.js +1 -0
  313. package/web/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  314. package/web/assets/matlab-D7o27uSR.js +1 -0
  315. package/web/assets/mdc-DTYItulj.js +1 -0
  316. package/web/assets/mdx-Cmh6b_Ma.js +1 -0
  317. package/web/assets/mermaid-mWjccvbQ.js +1 -0
  318. package/web/assets/mermaid.core-LJPf4T7o.js +310 -0
  319. package/web/assets/min-dark-CafNBF8u.js +1 -0
  320. package/web/assets/min-light-CTRr51gU.js +1 -0
  321. package/web/assets/mindmap-definition-THT77NOG-DiboHsg8.js +96 -0
  322. package/web/assets/mipsasm-CKIfxQSi.js +1 -0
  323. package/web/assets/mojo-rZm6bMo-.js +1 -0
  324. package/web/assets/monokai-D4h5O-jR.js +1 -0
  325. package/web/assets/moonbit-_H4v1dQx.js +1 -0
  326. package/web/assets/move-IF9eRakj.js +1 -0
  327. package/web/assets/narrat-DRg8JJMk.js +1 -0
  328. package/web/assets/nextflow-C-mBbutL.js +1 -0
  329. package/web/assets/nextflow-groovy-vE_lwT2v.js +1 -0
  330. package/web/assets/nginx-BpAMiNFr.js +1 -0
  331. package/web/assets/night-owl-C39BiMTA.js +1 -0
  332. package/web/assets/night-owl-light-CMTm3GFP.js +1 -0
  333. package/web/assets/nim-BIad80T-.js +1 -0
  334. package/web/assets/nix-CwoSXNpI.js +1 -0
  335. package/web/assets/nord-Ddv68eIx.js +1 -0
  336. package/web/assets/nushell-Cz2AlsmD.js +1 -0
  337. package/web/assets/objective-c-DXmwc3jG.js +1 -0
  338. package/web/assets/objective-cpp-CLxacb5B.js +1 -0
  339. package/web/assets/ocaml-C0hk2d4L.js +1 -0
  340. package/web/assets/odin-BBf5iR-q.js +1 -0
  341. package/web/assets/one-dark-pro-DVMEJ2y_.js +1 -0
  342. package/web/assets/one-light-C3Wv6jpd.js +1 -0
  343. package/web/assets/openscad-C4EeE6gA.js +1 -0
  344. package/web/assets/ordinal-Cboi1Yqb.js +1 -0
  345. package/web/assets/overlay-DA5SOee-.js +1 -0
  346. package/web/assets/pascal-D93ZcfNL.js +1 -0
  347. package/web/assets/pegDiagram-XKGWAZYB-DO_edVtr.js +1 -0
  348. package/web/assets/perl-NvoQZIq0.js +1 -0
  349. package/web/assets/php-R6g_5hLQ.js +1 -0
  350. package/web/assets/pieDiagram-E7YTZNPT-bPvBuBuG.js +39 -0
  351. package/web/assets/pierre-dark-CyvmCCZW.js +1 -0
  352. package/web/assets/pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js +1 -0
  353. package/web/assets/pierre-dark-soft-BHGpRqa4.js +1 -0
  354. package/web/assets/pierre-dark-tritanopia-Beq2gCRQ.js +1 -0
  355. package/web/assets/pierre-dark-vibrant-BWBVywrn.js +1 -0
  356. package/web/assets/pierre-light-480U9XYS.js +1 -0
  357. package/web/assets/pierre-light-protanopia-deuteranopia-CaVOBURG.js +1 -0
  358. package/web/assets/pierre-light-soft-CVdyfjmI.js +1 -0
  359. package/web/assets/pierre-light-tritanopia-B4_gpKOM.js +1 -0
  360. package/web/assets/pierre-light-vibrant-DdTDNdfJ.js +1 -0
  361. package/web/assets/pkl-u5AG7uiY.js +1 -0
  362. package/web/assets/plastic-3e1v2bzS.js +1 -0
  363. package/web/assets/plsql-ChMvpjG-.js +1 -0
  364. package/web/assets/po-BTJTHyun.js +1 -0
  365. package/web/assets/poimandres-CS3Unz2-.js +1 -0
  366. package/web/assets/polar-C0HS_06l.js +1 -0
  367. package/web/assets/postcss-CXtECtnM.js +1 -0
  368. package/web/assets/powerquery-CEu0bR-o.js +1 -0
  369. package/web/assets/powershell-Dpen1YoG.js +1 -0
  370. package/web/assets/prisma-Dd19v3D-.js +1 -0
  371. package/web/assets/prolog-CbFg5uaA.js +1 -0
  372. package/web/assets/proto-C7zT0LnQ.js +1 -0
  373. package/web/assets/pug-DKIMFp6K.js +1 -0
  374. package/web/assets/puppet-BMWR74SV.js +1 -0
  375. package/web/assets/purescript-CklMAg4u.js +1 -0
  376. package/web/assets/python-B6aJPvgy.js +1 -0
  377. package/web/assets/qml-3beO22l8.js +1 -0
  378. package/web/assets/qmldir-C8lEn-DE.js +1 -0
  379. package/web/assets/qss-IeuSbFQv.js +1 -0
  380. package/web/assets/quadrantDiagram-AXDQQJYC-BGyrQhlH.js +7 -0
  381. package/web/assets/r-Dspwwk_N.js +1 -0
  382. package/web/assets/racket-BqYA7rlc.js +1 -0
  383. package/web/assets/railroadDiagram-O6MQD6OU-XhPIuoOE.js +1 -0
  384. package/web/assets/raku-DXvB9xmW.js +1 -0
  385. package/web/assets/razor-BDqjjVU7.js +1 -0
  386. package/web/assets/red-bN70gL4F.js +1 -0
  387. package/web/assets/reg-C-SQnVFl.js +1 -0
  388. package/web/assets/regexp-CDVJQ6XC.js +1 -0
  389. package/web/assets/rel-C3B-1QV4.js +1 -0
  390. package/web/assets/requirementDiagram-IS5BZ75X-atdASt4G.js +84 -0
  391. package/web/assets/riscv-BM1_JUlF.js +1 -0
  392. package/web/assets/ron-D8l8udqQ.js +1 -0
  393. package/web/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
  394. package/web/assets/rose-pine-moon-D4_iv3hh.js +1 -0
  395. package/web/assets/rose-pine-qdsjHGoJ.js +1 -0
  396. package/web/assets/rosmsg-BJDFO7_C.js +1 -0
  397. package/web/assets/rst-CRjBmOyv.js +1 -0
  398. package/web/assets/ruby-Wjq7vjNf.js +1 -0
  399. package/web/assets/rust-B1yitclQ.js +1 -0
  400. package/web/assets/sankeyDiagram-P5KCCOFB-BV9prEKy.js +40 -0
  401. package/web/assets/sas-cz2c8ADy.js +1 -0
  402. package/web/assets/sass-Cj5Yp3dK.js +1 -0
  403. package/web/assets/scala-C151Ov-r.js +1 -0
  404. package/web/assets/scheme-C98Dy4si.js +1 -0
  405. package/web/assets/scss-D5BDwBP9.js +1 -0
  406. package/web/assets/sdbl-DVxCFoDh.js +1 -0
  407. package/web/assets/sequenceDiagram-WJ2MYXX4-Csfm-fZ-.js +162 -0
  408. package/web/assets/shaderlab-Dg9Lc6iA.js +1 -0
  409. package/web/assets/shellscript-Yzrsuije.js +1 -0
  410. package/web/assets/shellsession-BADoaaVG.js +1 -0
  411. package/web/assets/sizeCapture-INFHLROL-CLmH-AjF.js +1 -0
  412. package/web/assets/slack-dark-BthQWCQV.js +1 -0
  413. package/web/assets/slack-ochin-DqwNpetd.js +1 -0
  414. package/web/assets/smalltalk-BERRCDM3.js +1 -0
  415. package/web/assets/snazzy-light-Bw305WKR.js +1 -0
  416. package/web/assets/solarized-dark-DXbdFlpD.js +1 -0
  417. package/web/assets/solarized-light-L9t79GZl.js +1 -0
  418. package/web/assets/solidity-rGO070M0.js +1 -0
  419. package/web/assets/soy-8wufbnw4.js +1 -0
  420. package/web/assets/sparql-rVzFXLq3.js +1 -0
  421. package/web/assets/splunk-BtCnVYZw.js +1 -0
  422. package/web/assets/sql-BLtJtn59.js +1 -0
  423. package/web/assets/ssh-config-_ykCGR6B.js +1 -0
  424. package/web/assets/stata-BH5u7GGu.js +1 -0
  425. package/web/assets/stateDiagram-XQSTLZYL-yiSt2fJK.js +1 -0
  426. package/web/assets/stateDiagram-v2-IH3M54BS-BEhxOujx.js +1 -0
  427. package/web/assets/stylus-BEDo0Tqx.js +1 -0
  428. package/web/assets/surrealql-Bq5Q-fJD.js +1 -0
  429. package/web/assets/svelte-Cy7k_4gC.js +1 -0
  430. package/web/assets/swift-D82vCrfD.js +1 -0
  431. package/web/assets/swimlanes-V6O3JKXN-BpXNggx9.js +1 -0
  432. package/web/assets/swimlanesDiagram-JKAHXJPX-DWqwFv9F.js +8 -0
  433. package/web/assets/synthwave-84-CbfX1IO0.js +1 -0
  434. package/web/assets/system-verilog-CnnmHF94.js +1 -0
  435. package/web/assets/systemd-4A_iFExJ.js +1 -0
  436. package/web/assets/talonscript-CkByrt1z.js +1 -0
  437. package/web/assets/tasl-QIJgUcNo.js +1 -0
  438. package/web/assets/tcl-dwOrl1Do.js +1 -0
  439. package/web/assets/templ-DhtptRzy.js +1 -0
  440. package/web/assets/terraform-BETggiCN.js +1 -0
  441. package/web/assets/tex-idrVyKtj.js +1 -0
  442. package/web/assets/timeline-definition-24CTP7MA-C8X71OnL.js +120 -0
  443. package/web/assets/tokyo-night-hegEt444.js +1 -0
  444. package/web/assets/toml-vGWfd6FD.js +1 -0
  445. package/web/assets/ts-tags-DQrlYJgV.js +1 -0
  446. package/web/assets/tsv-B_m7g4N7.js +1 -0
  447. package/web/assets/tsx-COt5Ahok.js +1 -0
  448. package/web/assets/turtle-BsS91CYL.js +1 -0
  449. package/web/assets/twig-xg9kU7Mw.js +1 -0
  450. package/web/assets/typescript-BPQ3VLAy.js +1 -0
  451. package/web/assets/typespec-CAFt9gP4.js +1 -0
  452. package/web/assets/typst-DHCkPAjA.js +1 -0
  453. package/web/assets/v-BcVCzyr7.js +1 -0
  454. package/web/assets/vala-CsfeWuGM.js +1 -0
  455. package/web/assets/vb-D17OF-Vu.js +1 -0
  456. package/web/assets/vennDiagram-4TSXK5OY-BZo-99ra.js +34 -0
  457. package/web/assets/verilog-BQ8w6xss.js +1 -0
  458. package/web/assets/vesper-DU1UobuO.js +1 -0
  459. package/web/assets/vhdl-CeAyd5Ju.js +1 -0
  460. package/web/assets/viml-CJc9bBzg.js +1 -0
  461. package/web/assets/vitesse-black-Bkuqu6BP.js +1 -0
  462. package/web/assets/vitesse-dark-D0r3Knsf.js +1 -0
  463. package/web/assets/vitesse-light-CVO1_9PV.js +1 -0
  464. package/web/assets/vue-D2xRrEX4.js +1 -0
  465. package/web/assets/vue-html-AaS7Mt5G.js +1 -0
  466. package/web/assets/vue-vine-BoDAl6tE.js +1 -0
  467. package/web/assets/vyper-CDx5xZoG.js +1 -0
  468. package/web/assets/wardleyDiagram-VM6X3IG4-BHwH6ZLg.js +78 -0
  469. package/web/assets/wasm-CG6Dc4jp.js +1 -0
  470. package/web/assets/wasm-MzD3tlZU.js +1 -0
  471. package/web/assets/wenyan-BV7otONQ.js +1 -0
  472. package/web/assets/wgsl-Dx-B1_4e.js +1 -0
  473. package/web/assets/wikitext-BhOHFoWU.js +1 -0
  474. package/web/assets/wit-5i3qLPDT.js +1 -0
  475. package/web/assets/wolfram-lXgVvXCa.js +1 -0
  476. package/web/assets/workspace-file-tree-C8iSfvPt.js +1278 -0
  477. package/web/assets/xml-sdJ4AIDG.js +1 -0
  478. package/web/assets/xsl-CtQFsRM5.js +1 -0
  479. package/web/assets/xychartDiagram-S5SC5T6Z-BieEi319.js +7 -0
  480. package/web/assets/yaml-Buea-lGh.js +1 -0
  481. package/web/assets/zenscript-DVFEvuxE.js +1 -0
  482. package/web/assets/zig-VOosw3JB.js +1 -0
  483. package/web/ext-context7.svg +1 -0
  484. package/web/ext-github.svg +1 -0
  485. package/web/ext-google-workspace.svg +6 -0
  486. package/web/ext-hubspot.svg +1 -0
  487. package/web/ext-linear.svg +1 -0
  488. package/web/ext-notion.svg +1 -0
  489. package/web/ext-ollama.svg +1 -0
  490. package/web/ext-openai.svg +1 -0
  491. package/web/ext-sentry.svg +1 -0
  492. package/web/ext-slack.svg +1 -0
  493. package/web/ext-stripe.svg +1 -0
  494. package/web/favicon-16x16.png +0 -0
  495. package/web/favicon-32x32.png +0 -0
  496. package/web/grain-art/extension/extension-001.png +0 -0
  497. package/web/grain-art/extension/extension-002.png +0 -0
  498. package/web/grain-art/extension/extension-003.png +0 -0
  499. package/web/grain-art/extension/extension-004.png +0 -0
  500. package/web/grain-art/extension/extension-005.png +0 -0
  501. package/web/grain-art/extension/extension-006.png +0 -0
  502. package/web/grain-art/extension/extension-007.png +0 -0
  503. package/web/grain-art/extension/extension-008.png +0 -0
  504. package/web/grain-art/extension/extension-009.png +0 -0
  505. package/web/grain-art/extension/extension-010.png +0 -0
  506. package/web/grain-art/extension/extension-011.png +0 -0
  507. package/web/grain-art/extension/extension-012.png +0 -0
  508. package/web/grain-art/extension/extension-013.png +0 -0
  509. package/web/grain-art/extension/extension-014.png +0 -0
  510. package/web/grain-art/extension/extension-015.png +0 -0
  511. package/web/grain-art/extension/extension-016.png +0 -0
  512. package/web/grain-art/extension/extension-017.png +0 -0
  513. package/web/grain-art/extension/extension-018.png +0 -0
  514. package/web/grain-art/extension/extension-019.png +0 -0
  515. package/web/grain-art/extension/extension-020.png +0 -0
  516. package/web/grain-art/extension/extension-021.png +0 -0
  517. package/web/grain-art/extension/extension-022.png +0 -0
  518. package/web/grain-art/extension/extension-023.png +0 -0
  519. package/web/grain-art/extension/extension-024.png +0 -0
  520. package/web/grain-art/extension/extension-025.png +0 -0
  521. package/web/grain-art/extension/extension-026.png +0 -0
  522. package/web/grain-art/extension/extension-027.png +0 -0
  523. package/web/grain-art/extension/extension-028.png +0 -0
  524. package/web/grain-art/extension/extension-029.png +0 -0
  525. package/web/grain-art/extension/extension-030.png +0 -0
  526. package/web/grain-art/extension/extension-031.png +0 -0
  527. package/web/grain-art/extension/extension-032.png +0 -0
  528. package/web/grain-art/fallback/fallback-001.png +0 -0
  529. package/web/grain-art/fallback/fallback-002.png +0 -0
  530. package/web/grain-art/fallback/fallback-003.png +0 -0
  531. package/web/grain-art/fallback/fallback-004.png +0 -0
  532. package/web/grain-art/fallback/fallback-005.png +0 -0
  533. package/web/grain-art/fallback/fallback-006.png +0 -0
  534. package/web/grain-art/fallback/fallback-007.png +0 -0
  535. package/web/grain-art/fallback/fallback-008.png +0 -0
  536. package/web/grain-art/fallback/fallback-009.png +0 -0
  537. package/web/grain-art/fallback/fallback-010.png +0 -0
  538. package/web/grain-art/fallback/fallback-011.png +0 -0
  539. package/web/grain-art/fallback/fallback-012.png +0 -0
  540. package/web/grain-art/fallback/fallback-013.png +0 -0
  541. package/web/grain-art/fallback/fallback-014.png +0 -0
  542. package/web/grain-art/fallback/fallback-015.png +0 -0
  543. package/web/grain-art/fallback/fallback-016.png +0 -0
  544. package/web/grain-art/fallback/fallback-017.png +0 -0
  545. package/web/grain-art/fallback/fallback-018.png +0 -0
  546. package/web/grain-art/fallback/fallback-019.png +0 -0
  547. package/web/grain-art/fallback/fallback-020.png +0 -0
  548. package/web/grain-art/fallback/fallback-021.png +0 -0
  549. package/web/grain-art/fallback/fallback-022.png +0 -0
  550. package/web/grain-art/fallback/fallback-023.png +0 -0
  551. package/web/grain-art/fallback/fallback-024.png +0 -0
  552. package/web/grain-art/fallback/fallback-025.png +0 -0
  553. package/web/grain-art/fallback/fallback-026.png +0 -0
  554. package/web/grain-art/fallback/fallback-027.png +0 -0
  555. package/web/grain-art/fallback/fallback-028.png +0 -0
  556. package/web/grain-art/fallback/fallback-029.png +0 -0
  557. package/web/grain-art/fallback/fallback-030.png +0 -0
  558. package/web/grain-art/fallback/fallback-031.png +0 -0
  559. package/web/grain-art/fallback/fallback-032.png +0 -0
  560. package/web/grain-art/mcps/mcps-001.png +0 -0
  561. package/web/grain-art/mcps/mcps-002.png +0 -0
  562. package/web/grain-art/mcps/mcps-003.png +0 -0
  563. package/web/grain-art/mcps/mcps-004.png +0 -0
  564. package/web/grain-art/mcps/mcps-005.png +0 -0
  565. package/web/grain-art/mcps/mcps-006.png +0 -0
  566. package/web/grain-art/mcps/mcps-007.png +0 -0
  567. package/web/grain-art/mcps/mcps-008.png +0 -0
  568. package/web/grain-art/mcps/mcps-009.png +0 -0
  569. package/web/grain-art/mcps/mcps-010.png +0 -0
  570. package/web/grain-art/mcps/mcps-011.png +0 -0
  571. package/web/grain-art/mcps/mcps-012.png +0 -0
  572. package/web/grain-art/mcps/mcps-013.png +0 -0
  573. package/web/grain-art/mcps/mcps-014.png +0 -0
  574. package/web/grain-art/mcps/mcps-015.png +0 -0
  575. package/web/grain-art/mcps/mcps-016.png +0 -0
  576. package/web/grain-art/mcps/mcps-017.png +0 -0
  577. package/web/grain-art/mcps/mcps-018.png +0 -0
  578. package/web/grain-art/mcps/mcps-019.png +0 -0
  579. package/web/grain-art/mcps/mcps-020.png +0 -0
  580. package/web/grain-art/mcps/mcps-021.png +0 -0
  581. package/web/grain-art/mcps/mcps-022.png +0 -0
  582. package/web/grain-art/mcps/mcps-023.png +0 -0
  583. package/web/grain-art/mcps/mcps-024.png +0 -0
  584. package/web/grain-art/mcps/mcps-025.png +0 -0
  585. package/web/grain-art/mcps/mcps-026.png +0 -0
  586. package/web/grain-art/mcps/mcps-027.png +0 -0
  587. package/web/grain-art/mcps/mcps-028.png +0 -0
  588. package/web/grain-art/mcps/mcps-029.png +0 -0
  589. package/web/grain-art/mcps/mcps-030.png +0 -0
  590. package/web/grain-art/mcps/mcps-031.png +0 -0
  591. package/web/grain-art/mcps/mcps-032.png +0 -0
  592. package/web/grain-art/plugins/plugins-001.png +0 -0
  593. package/web/grain-art/plugins/plugins-002.png +0 -0
  594. package/web/grain-art/plugins/plugins-003.png +0 -0
  595. package/web/grain-art/plugins/plugins-004.png +0 -0
  596. package/web/grain-art/plugins/plugins-005.png +0 -0
  597. package/web/grain-art/plugins/plugins-006.png +0 -0
  598. package/web/grain-art/plugins/plugins-007.png +0 -0
  599. package/web/grain-art/plugins/plugins-008.png +0 -0
  600. package/web/grain-art/plugins/plugins-009.png +0 -0
  601. package/web/grain-art/plugins/plugins-010.png +0 -0
  602. package/web/grain-art/plugins/plugins-011.png +0 -0
  603. package/web/grain-art/plugins/plugins-012.png +0 -0
  604. package/web/grain-art/plugins/plugins-013.png +0 -0
  605. package/web/grain-art/plugins/plugins-014.png +0 -0
  606. package/web/grain-art/plugins/plugins-015.png +0 -0
  607. package/web/grain-art/plugins/plugins-016.png +0 -0
  608. package/web/grain-art/plugins/plugins-017.png +0 -0
  609. package/web/grain-art/plugins/plugins-018.png +0 -0
  610. package/web/grain-art/plugins/plugins-019.png +0 -0
  611. package/web/grain-art/plugins/plugins-020.png +0 -0
  612. package/web/grain-art/plugins/plugins-021.png +0 -0
  613. package/web/grain-art/plugins/plugins-022.png +0 -0
  614. package/web/grain-art/plugins/plugins-023.png +0 -0
  615. package/web/grain-art/plugins/plugins-024.png +0 -0
  616. package/web/grain-art/plugins/plugins-025.png +0 -0
  617. package/web/grain-art/plugins/plugins-026.png +0 -0
  618. package/web/grain-art/plugins/plugins-027.png +0 -0
  619. package/web/grain-art/plugins/plugins-028.png +0 -0
  620. package/web/grain-art/plugins/plugins-029.png +0 -0
  621. package/web/grain-art/plugins/plugins-030.png +0 -0
  622. package/web/grain-art/plugins/plugins-031.png +0 -0
  623. package/web/grain-art/plugins/plugins-032.png +0 -0
  624. package/web/grain-art/skills/skills-001.png +0 -0
  625. package/web/grain-art/skills/skills-002.png +0 -0
  626. package/web/grain-art/skills/skills-003.png +0 -0
  627. package/web/grain-art/skills/skills-004.png +0 -0
  628. package/web/grain-art/skills/skills-005.png +0 -0
  629. package/web/grain-art/skills/skills-006.png +0 -0
  630. package/web/grain-art/skills/skills-007.png +0 -0
  631. package/web/grain-art/skills/skills-008.png +0 -0
  632. package/web/grain-art/skills/skills-009.png +0 -0
  633. package/web/grain-art/skills/skills-010.png +0 -0
  634. package/web/grain-art/skills/skills-011.png +0 -0
  635. package/web/grain-art/skills/skills-012.png +0 -0
  636. package/web/grain-art/skills/skills-013.png +0 -0
  637. package/web/grain-art/skills/skills-014.png +0 -0
  638. package/web/grain-art/skills/skills-015.png +0 -0
  639. package/web/grain-art/skills/skills-016.png +0 -0
  640. package/web/grain-art/skills/skills-017.png +0 -0
  641. package/web/grain-art/skills/skills-018.png +0 -0
  642. package/web/grain-art/skills/skills-019.png +0 -0
  643. package/web/grain-art/skills/skills-020.png +0 -0
  644. package/web/grain-art/skills/skills-021.png +0 -0
  645. package/web/grain-art/skills/skills-022.png +0 -0
  646. package/web/grain-art/skills/skills-023.png +0 -0
  647. package/web/grain-art/skills/skills-024.png +0 -0
  648. package/web/grain-art/skills/skills-025.png +0 -0
  649. package/web/grain-art/skills/skills-026.png +0 -0
  650. package/web/grain-art/skills/skills-027.png +0 -0
  651. package/web/grain-art/skills/skills-028.png +0 -0
  652. package/web/grain-art/skills/skills-029.png +0 -0
  653. package/web/grain-art/skills/skills-030.png +0 -0
  654. package/web/grain-art/skills/skills-031.png +0 -0
  655. package/web/grain-art/skills/skills-032.png +0 -0
  656. package/web/grain-art/workspaces/workspaces-001.png +0 -0
  657. package/web/grain-art/workspaces/workspaces-002.png +0 -0
  658. package/web/grain-art/workspaces/workspaces-003.png +0 -0
  659. package/web/grain-art/workspaces/workspaces-004.png +0 -0
  660. package/web/grain-art/workspaces/workspaces-005.png +0 -0
  661. package/web/grain-art/workspaces/workspaces-006.png +0 -0
  662. package/web/grain-art/workspaces/workspaces-007.png +0 -0
  663. package/web/grain-art/workspaces/workspaces-008.png +0 -0
  664. package/web/grain-art/workspaces/workspaces-009.png +0 -0
  665. package/web/grain-art/workspaces/workspaces-010.png +0 -0
  666. package/web/grain-art/workspaces/workspaces-011.png +0 -0
  667. package/web/grain-art/workspaces/workspaces-012.png +0 -0
  668. package/web/grain-art/workspaces/workspaces-013.png +0 -0
  669. package/web/grain-art/workspaces/workspaces-014.png +0 -0
  670. package/web/grain-art/workspaces/workspaces-015.png +0 -0
  671. package/web/grain-art/workspaces/workspaces-016.png +0 -0
  672. package/web/grain-art/workspaces/workspaces-017.png +0 -0
  673. package/web/grain-art/workspaces/workspaces-018.png +0 -0
  674. package/web/grain-art/workspaces/workspaces-019.png +0 -0
  675. package/web/grain-art/workspaces/workspaces-020.png +0 -0
  676. package/web/grain-art/workspaces/workspaces-021.png +0 -0
  677. package/web/grain-art/workspaces/workspaces-022.png +0 -0
  678. package/web/grain-art/workspaces/workspaces-023.png +0 -0
  679. package/web/grain-art/workspaces/workspaces-024.png +0 -0
  680. package/web/grain-art/workspaces/workspaces-025.png +0 -0
  681. package/web/grain-art/workspaces/workspaces-026.png +0 -0
  682. package/web/grain-art/workspaces/workspaces-027.png +0 -0
  683. package/web/grain-art/workspaces/workspaces-028.png +0 -0
  684. package/web/grain-art/workspaces/workspaces-029.png +0 -0
  685. package/web/grain-art/workspaces/workspaces-030.png +0 -0
  686. package/web/grain-art/workspaces/workspaces-031.png +0 -0
  687. package/web/grain-art/workspaces/workspaces-032.png +0 -0
  688. package/web/index.html +130 -0
  689. package/web/manifest.webmanifest +22 -0
  690. package/web/openwork-logo-square.svg +2 -0
  691. package/web/openwork-logo.svg +1 -0
  692. package/web/openwork-mark.svg +16 -0
  693. package/web/openwork-sidebar-mark.svg +17 -0
  694. package/web/overlay.html +29 -0
  695. package/dist/bin/openwork-server +0 -4
@@ -0,0 +1,1278 @@
1
+ import{r as U,j as oe,c as Ul}from"./index-D6FUvVB1.js";import{b as Kl,u as Wl,I as Gl,c as Yl,S as Xl,d as Ql,B as Jl,R as Zl}from"./app-D9Nvta88.js";const cr="file-tree-container",vo="data-file-tree-style",yo="data-file-tree-unsafe-css",ea="data-file-tree-scrollbar-measure",bo="data-file-tree-scrollbar-gutter-measured",ta="--trees-scrollbar-gutter-measured",Vn="header",Yt="context-menu",na="context-menu-trigger",Io=typeof window>"u"?U.useEffect:U.useLayoutEffect;function ra(e,t,n){const r=e!=null?oe.jsx("div",{slot:Vn,children:e}):null,o=t!=null&&n!=null?oe.jsx("div",{slot:Yt,children:t(n.item,n.context)}):null;return r==null&&o==null?null:oe.jsxs(oe.Fragment,{children:[r,o]})}function oa(e,t){return typeof window>"u"&&t!=null?oe.jsxs(oe.Fragment,{children:[oe.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):oe.jsx(oe.Fragment,{children:e})}function ia(e){const t=e.shadowRoot;return t?.querySelector("[data-file-tree-id]")instanceof HTMLElement||t?.querySelector("[data-file-tree-id]")instanceof SVGElement?!0:e.querySelector('template[shadowrootmode="open"]')instanceof HTMLTemplateElement}function sa(e,t,n,r,o){const i={...e??{}};if(t!=null&&delete i.header,n){const s=e?.contextMenu,l=s?.onClose,a=s?.onOpen;i.contextMenu={...s??{},enabled:!0,onClose:()=>{l?.(),r()},onOpen:(d,h)=>{o(d,h),a?.(d,h)}},delete i.contextMenu.render}return i.header!=null||i.contextMenu!=null?i:void 0}function la({header:e,id:t,model:n,preloadedData:r,renderContextMenu:o,...i}){const[s,l]=U.useState(null),[a,d]=U.useState(null),h=U.useRef(n.getComposition()),f=U.useRef(n);f.current!==n&&(f.current=n,h.current=n.getComposition());const c=o!=null,m=U.useCallback(()=>{l(null)},[]),p=U.useCallback((S,E)=>{l({context:E,item:S})},[]),g=h.current,v=U.useMemo(()=>sa(g,e,c,m,p),[g,m,p,c,e]),w=U.useCallback(S=>{d(S)},[]);U.useEffect(()=>{c||l(null)},[c]),Io(()=>{n.setComposition(v)},[v,n]),Io(()=>{if(a!=null)return r!=null&&ia(a)?n.hydrate({fileTreeContainer:a}):n.render({fileTreeContainer:a}),()=>{n.unmount(),n.setComposition(g)}},[g,a,n,r]);const x=oa(ra(e,o,s),r),b=t??r?.id,I={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...i.style};return oe.jsx(cr,{...i,id:b,ref:w,style:I,suppressHydrationWarning:r!=null,children:x})}const zi=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
2
+ <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
3
+ <path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
4
+ </symbol>
5
+ <symbol id="file-tree-icon-dot" viewBox="0 0 6 6">
6
+ <circle cx="3" cy="3" r="3" />
7
+ </symbol>
8
+ <symbol id="file-tree-icon-file" viewBox="0 0 16 16">
9
+ <path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".5"/>
10
+ <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
11
+ </symbol>
12
+ <symbol id="file-tree-icon-lock" viewBox="0 0 16 16">
13
+ <path fill="currentcolor" d="M4 5.336V4a4 4 0 1 1 8 0v1.336c1.586.54 2 1.843 2 4.664v1c0 4.118-.883 5-5 5H7c-4.117 0-5-.883-5-5v-1c0-2.821.414-4.124 2-4.664M5.5 4v1.054Q6.166 4.998 7 5h2q.834-.002 1.5.054V4a2.5 2.5 0 0 0-5 0m-2 6v1c0 .995.055 1.692.167 2.193.107.483.246.686.35.79s.307.243.79.35c.5.112 1.198.167 2.193.167h2c.995 0 1.692-.055 2.193-.166.483-.108.686-.247.79-.35.104-.105.243-.308.35-.791.112-.5.167-1.198.167-2.193v-1c0-.995-.055-1.692-.166-2.193-.108-.483-.247-.686-.35-.79-.105-.104-.308-.243-.791-.35C10.693 6.555 9.995 6.5 9 6.5H7c-.995 0-1.692.055-2.193.167-.483.107-.686.246-.79.35s-.243.307-.35.79C3.555 8.307 3.5 9.005 3.5 10" />
14
+ </symbol>
15
+ <symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
16
+ <path d="M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" />
17
+ </symbol>
18
+ </svg>`,aa=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
19
+ <path fill="currentColor" d="M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z" class="bg" opacity=".6"/>
20
+ <path fill="currentColor" d="M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z" class="fg"/>
21
+ </symbol>`,ca=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
22
+ <path fill="currentColor" fill-rule="evenodd" d="M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z" clip-rule="evenodd"/>
23
+ </symbol>`,ua=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
24
+ <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
25
+ <path fill="currentColor" d="M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0" class="fg-stroke"/>
26
+ </symbol>`,da=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
27
+ <path fill="currentColor" d="M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z"/>
28
+ </symbol>`,ha=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
29
+ <path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z" class="bg" clip-rule="evenodd" opacity=".2"/>
30
+ <path fill="currentColor" fill-rule="evenodd" d="M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z" class="fg" clip-rule="evenodd"/>
31
+ </symbol>`,fa=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
32
+ <path fill="currentColor" d="M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5" class="bg" opacity=".5"/>
33
+ <path fill="currentColor" d="M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21"/>
34
+ <path fill="currentColor" d="M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13"/>
35
+ </symbol>`,pa=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
36
+ <path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5"/>
37
+ </symbol>`,ma=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
38
+ <path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
39
+ </symbol>`,ga=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
40
+ <path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/>
41
+ </symbol>`,va=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
42
+ <path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
43
+ </symbol>`,ya=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
44
+ <path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/>
45
+ <path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/>
46
+ </symbol>`,ba=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
47
+ <path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/>
48
+ <path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/>
49
+ <path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/>
50
+ </symbol>`,Ia=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
51
+ <path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
52
+ <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
53
+ </symbol>`,xa=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
54
+ <path fill="currentColor" d="M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z"/>
55
+ <path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/>
56
+ </symbol>`,wa=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
57
+ <path fill="currentColor" d="M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2" opacity=".5"/>
58
+ <path fill="currentColor" d="m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z"/>
59
+ </symbol>`,Sa=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
60
+ <path fill="currentColor" d="M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z"/>
61
+ </symbol>`,Ca=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
62
+ <path fill="currentColor" d="M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27"/>
63
+ </symbol>`,_a=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
64
+ <path fill="currentColor" fill-rule="evenodd" d="M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3" clip-rule="evenodd"/>
65
+ </symbol>`,ka=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
66
+ <path fill="currentColor" fill-rule="evenodd" d="M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z" clip-rule="evenodd"/>
67
+ </symbol>`,Pa=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
68
+ <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
69
+ <path fill="currentColor" d="M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z" class="fg"/>
70
+ </symbol>`,Ea=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
71
+ <path fill="currentColor" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z" opacity=".3"/>
72
+ <path fill="currentColor" d="M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
73
+ </symbol>`,Da=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
74
+ <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
75
+ <path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8"/>
76
+ </symbol>`,Ma=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
77
+ <path fill="currentColor" d="M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5"/>
78
+ </symbol>`,Ta=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
79
+ <path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
80
+ </symbol>`,Na=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
81
+ <path fill="currentColor" d="M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82"/>
82
+ <path fill="currentColor" d="M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16"/>
83
+ </symbol>`,Aa=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
84
+ <defs>
85
+ <linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
86
+ <stop stop-color="currentColor"/>
87
+ <stop offset="1" stop-color="currentColor" stop-opacity="0"/>
88
+ </linearGradient>
89
+ </defs>
90
+ <path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
91
+ <path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
92
+ <path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
93
+ </symbol>`,Ra=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
94
+ <path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z" class="vector" opacity=".2"/>
95
+ <path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
96
+ </symbol>`,Va=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
97
+ <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z"/>
98
+ </symbol>`,La=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
99
+ <path fill="currentColor" d="M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8"/>
100
+ </symbol>`,Fa=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
101
+ <path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
102
+ <path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
103
+ <path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
104
+ <path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
105
+ </symbol>`,Ba=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
106
+ <path fill="currentColor" d="M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65" class="bg" opacity=".8"/>
107
+ <path fill="currentColor" d="M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64" class="fg"/>
108
+ </symbol>`,za=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
109
+ <path fill="currentColor" d="M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65"/>
110
+ <path fill="currentColor" fill-rule="evenodd" d="M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7" clip-rule="evenodd"/>
111
+ </symbol>`,Ha=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
112
+ <path fill="currentColor" fill-rule="evenodd" d="M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7" clip-rule="evenodd"/>
113
+ </symbol>`,qa=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
114
+ <path fill="currentColor" fill-rule="evenodd" d="M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z" clip-rule="evenodd"/>
115
+ </symbol>`,Oa=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
116
+ <path fill="currentColor" fill-rule="evenodd" d="M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z" clip-rule="evenodd"/>
117
+ </symbol>`,ja=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
118
+ <path fill="currentColor" d="M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"/>
119
+ <path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
120
+ </symbol>`,$a=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
121
+ <path fill="currentColor" d="m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z"/>
122
+ </symbol>`,Ua=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
123
+ <path fill="currentColor" d="M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/>
124
+ <path fill="currentColor" d="M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1" opacity=".5"/>
125
+ </symbol>`,Ka=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
126
+ <path fill="currentColor" d="M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4"/>
127
+ <path fill="currentColor" fill-rule="evenodd" d="M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27" clip-rule="evenodd"/>
128
+ </symbol>`,Wa=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
129
+ <path fill="currentColor" d="M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7"/>
130
+ </symbol>`,Ga=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
131
+ <path fill="currentColor" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" opacity=".4"/>
132
+ <path fill="currentColor" d="M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
133
+ </symbol>`,Ya=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
134
+ <path fill="currentColor" fill-rule="evenodd" d="M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8" clip-rule="evenodd"/>
135
+ </symbol>`,Xa=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
136
+ <path fill="currentColor" d="M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z"/>
137
+ </symbol>`,Qa=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
138
+ <path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/>
139
+ <path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
140
+ </symbol>`,Ja=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
141
+ <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
142
+ <path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z"/>
143
+ </symbol>`,Za=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
144
+ <path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/>
145
+ </symbol>`,ec=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
146
+ <path fill="currentColor" d="m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z" opacity=".75"/>
147
+ <path fill="currentColor" d="M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z" opacity=".65"/>
148
+ <path fill="currentColor" d="M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z"/>
149
+ </symbol>`,tc=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
150
+ <path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
151
+ <path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
152
+ </symbol>`,nc=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
153
+ <path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z" class="subtract" opacity=".2"/>
154
+ <path fill="currentColor" d="M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z"/>
155
+ <path fill="currentColor" fill-rule="evenodd" d="M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z" clip-rule="evenodd"/>
156
+ </symbol>`,rc=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
157
+ <path fill="currentColor" d="M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z" class="bg" opacity=".4"/>
158
+ <path fill="currentColor" d="m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z" class="fg"/>
159
+ </symbol>`,oc=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
160
+ <path fill="currentColor" d="M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>
161
+ </symbol>`,ic=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
162
+ <path fill="currentColor" d="m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z"/>
163
+ <path fill="currentColor" d="M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z"/>
164
+ </symbol>`,sc=[ua,ma,va,ya,ba,Ia,Sa,Ca,_a,Pa,Ea,Da,Ma,Ta,Na,Ba,Ha,qa,Wa,Ga,Qa,Ja,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
165
+ <path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
166
+ <path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
167
+ </symbol>`],lc=[aa,ca,da,ha,fa,pa,ga,xa,wa,ka,Aa,Ra,Va,La,Fa,za,Oa,ja,$a,Ua,Ka,Ya,Xa,Za,ec,tc,nc,rc,oc,ic];function Hi(e,t){return t.length===0?e:e.replace("</svg>",`
168
+ ${t.join(`
169
+ `)}
170
+ </svg>`)}const xo=Hi(zi,sc),ac={minimal:zi,standard:xo,complete:Hi(xo,lc)},cc={".babelrc":"babel",".babelrc.json":"babel",".bash_profile":"bash",".bashrc":"bash",".browserslistrc":"browserslist",".dockerignore":"docker",".eslintignore":"eslint",".eslintrc":"eslint",".eslintrc.cjs":"eslint",".eslintrc.js":"eslint",".eslintrc.json":"eslint",".eslintrc.yaml":"eslint",".eslintrc.yml":"eslint",".gitattributes":"git",".gitignore":"git",".gitkeep":"git",".gitmodules":"git",".oxlintrc.json":"oxc",".postcssrc":"postcss",".postcssrc.json":"postcss",".postcssrc.yaml":"postcss",".postcssrc.yml":"postcss",".prettierignore":"prettier",".prettierrc":"prettier",".prettierrc.cjs":"prettier",".prettierrc.js":"prettier",".prettierrc.json":"prettier",".prettierrc.mjs":"prettier",".prettierrc.toml":"prettier",".prettierrc.yaml":"prettier",".prettierrc.yml":"prettier",".stylelintignore":"stylelint",".stylelintrc":"stylelint",".stylelintrc.cjs":"stylelint",".stylelintrc.js":"stylelint",".stylelintrc.json":"stylelint",".stylelintrc.mjs":"stylelint",".stylelintrc.yaml":"stylelint",".stylelintrc.yml":"stylelint",".terraform.lock.hcl":"terraform",".zprofile":"bash",".zshenv":"bash",".zshrc":"bash","babel.config.cjs":"babel","babel.config.js":"babel","babel.config.json":"babel","babel.config.mjs":"babel","biome.json":"biome","biome.jsonc":"biome","bootstrap.bundle.js":"bootstrap","bootstrap.bundle.min.js":"bootstrap","bootstrap.css":"bootstrap","bootstrap.js":"bootstrap","bootstrap.min.css":"bootstrap","bootstrap.min.js":"bootstrap","bun.lock":"bun","bun.lockb":"bun","bunfig.toml":"bun","claude.md":"claude","compose.yaml":"docker","compose.yml":"docker","docker-compose.override.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker","eslint.config.cjs":"eslint","eslint.config.js":"eslint","eslint.config.mjs":"eslint","eslint.config.mts":"eslint","eslint.config.ts":"eslint",gemfile:"ruby","next.config.js":"nextjs","next.config.mjs":"nextjs","next.config.mts":"nextjs","next.config.ts":"nextjs","postcss.config.cjs":"postcss","postcss.config.js":"postcss","postcss.config.mjs":"postcss","postcss.config.ts":"postcss","prettier.config.cjs":"prettier","prettier.config.js":"prettier","prettier.config.mjs":"prettier",rakefile:"ruby","readme.md":"markdown","stylelint.config.cjs":"stylelint","stylelint.config.js":"stylelint","stylelint.config.mjs":"stylelint","svgo.config.cjs":"svgo","svgo.config.js":"svgo","svgo.config.mjs":"svgo","svgo.config.ts":"svgo","tailwind.config.cjs":"tailwind","tailwind.config.js":"tailwind","tailwind.config.mjs":"tailwind","tailwind.config.ts":"tailwind","vite.config.js":"vite","vite.config.mjs":"vite","vite.config.mts":"vite","vite.config.ts":"vite","webpack.config.babel.js":"webpack","webpack.config.cjs":"webpack","webpack.config.js":"webpack","webpack.config.mjs":"webpack","webpack.config.ts":"webpack"},uc={"7z":"zip",astro:"astro",AUTHORS:"text",avif:"image",bash:"bash",bmp:"image",bz2:"zip",c:"c",cc:"cpp",cfg:"text",CHANGELOG:"text",cjs:"javascript","code-workspace":"vscode",conf:"text",CONTRIBUTORS:"text",cpp:"cpp",csh:"bash",css:"css",csv:"table",cts:"typescript",cxx:"cpp",db:"database",editorconfig:"text",env:"text","env.development":"text","env.local":"text","env.production":"text",eot:"font",erb:"ruby",fish:"bash",gemspec:"ruby",gif:"image",go:"go",gql:"graphql",graphql:"graphql",gz:"zip",h:"c",hh:"cpp",hpp:"cpp",htm:"html",html:"html",hxx:"cpp",icns:"image",ico:"image",ini:"text",inl:"cpp",jar:"zip",jpeg:"image",jpg:"image",js:"javascript",json:"json",json5:"json",jsonc:"json",jsonl:"json",jsx:"javascript",ksh:"bash",less:"css",LICENSE:"text",log:"text",markdown:"markdown",mcp:"mcp",md:"markdown",mdx:"markdown","mdx.tsx":"markdown",mjs:"javascript",mm:"cpp",mts:"typescript",ods:"table",otf:"font",png:"image",postcss:"css",py:"python",pyi:"python",pyw:"python",pyx:"python",rake:"ruby",rar:"zip",rb:"ruby",rs:"rust",rst:"text",rtf:"text",sass:"css",scss:"css",sh:"bash",sql:"database",sqlite:"database",sqlite3:"database",styl:"css",svelte:"svelte",svg:"svg",swift:"swift",tar:"zip",tf:"terraform",tfstate:"terraform",tfvars:"terraform",tgz:"zip",tif:"image",tiff:"image",ts:"typescript",tsv:"table",tsx:"typescript",ttf:"font",txt:"text",vue:"vue",war:"zip",wasm:"wasm",wast:"wasm",wat:"wasm",webp:"image",woff:"font",woff2:"font",xhtml:"html",xls:"table",xlsx:"table",xz:"zip",yaml:"yml",yml:"yml",zig:"zig",zip:"zip",zsh:"bash"},dc={jsx:"react",sass:"sass",scss:"sass",tsx:"react"},wo=new Set(["bash","c","cpp","css","database","default","font","git","go","html","image","javascript","json","markdown","mcp","python","ruby","rust","swift","table","text","typescript","zip"]),hc=new Set(["complete"]);function fc(e){return ac[e==="none"?"minimal":e]}function pc(e){return`file-tree-builtin-${e}`}function mc(e){return e!=="none"&&hc.has(e)}function gc(e,t,n){if(e==="minimal"||e==="none")return;const r=e==="complete",o=cc[t.toLowerCase()];if(o!=null&&(r||wo.has(o)))return o;for(const i of n){if(r){const l=dc[i];if(l!=null)return l}const s=uc[i];if(s!=null&&(r||wo.has(s)))return s}return"default"}function vc(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function Pn(e){return e==null?{set:"complete",colored:!0}:typeof e=="string"?{set:e,colored:!0}:{...e,set:e.set??(vc(e)?"none":"complete"),colored:e.colored??!0}}const ur={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function yc(e,t){if(typeof e=="number")return{itemHeight:t??ur.default.itemHeight,factor:e};const n=ur[e??"default"];return{itemHeight:t??n.itemHeight,factor:n.factor}}const qi=ur.default.itemHeight;var So=`@layer base {
171
+ :host {
172
+ --trees-accent: var(--trees-accent-override, #009fff);
173
+ --trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));
174
+ --trees-fg-muted: var(--trees-fg-muted-override, var(--trees-theme-sidebar-header-fg, light-dark(#84848a, #84848a)));
175
+ --trees-bg: var(--trees-bg-override, var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415)));
176
+ --trees-bg-muted: var(--trees-bg-muted-override, var(--trees-theme-list-hover-bg, light-dark(color-mix(in lab,
177
+ var(--trees-accent) var(--trees-bg-alpha-light, 8%),
178
+ var(--trees-bg)), color-mix(in lab,
179
+ var(--trees-accent) var(--trees-bg-alpha-dark, 10%),
180
+ var(--trees-bg)))));
181
+ --trees-input-bg: var(--trees-input-bg-override, light-dark(#f8f8f8, #070707));
182
+ --trees-added-light: #16a994;
183
+ --trees-added-dark: #00cab1;
184
+ --trees-ignored-light: #adadb1;
185
+ --trees-ignored-dark: #4a4a4e;
186
+ --trees-modified-light: #1ca1c7;
187
+ --trees-modified-dark: #08c0ef;
188
+ --trees-renamed-light: #d5a910;
189
+ --trees-renamed-dark: #ffd452;
190
+ --trees-untracked-light: #16a994;
191
+ --trees-untracked-dark: #00cab1;
192
+ --trees-deleted-light: #ff2e3f;
193
+ --trees-deleted-dark: #ff6762;
194
+ --trees-border-color: var(--trees-border-color-override, var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707)));
195
+ --trees-indent-guide-bg: var(--trees-indent-guide-bg-override, color-mix(in lab, var(--trees-fg-muted) 25%, transparent));
196
+ --trees-density: var(--trees-density-override, 1);
197
+ --trees-border-radius: var(--trees-border-radius-override, calc(6px * var(--trees-density)));
198
+ --trees-font-family: var(--trees-font-family-override, system-ui);
199
+ --trees-font-size: var(--trees-font-size-override, 13px);
200
+ --trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);
201
+ --trees-font-weight-semibold: var(--trees-font-weight-semibold-override, 600);
202
+ --trees-focus-ring-color: var(--trees-focus-ring-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));
203
+ --trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);
204
+ --trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);
205
+ --trees-search-fg: var(--trees-search-fg-override, var(--trees-theme-input-fg, var(--trees-fg)));
206
+ --trees-search-font-weight: var(--trees-search-font-weight-override, 600);
207
+ --trees-search-bg: var(--trees-search-bg-override, var(--trees-theme-input-bg, var(--trees-input-bg)));
208
+ --trees-scrollbar-thumb: var(--trees-scrollbar-thumb-override, var(--trees-theme-scrollbar-thumb, color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))));
209
+ --trees-selected-fg: var(--trees-selected-fg-override, var(--trees-theme-list-active-selection-fg, var(--trees-fg)));
210
+ --trees-selected-bg: var(--trees-selected-bg-override, var(--trees-theme-list-active-selection-bg, light-dark(color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)), color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg)))));
211
+ --trees-selected-focused-border-color: var(--trees-selected-focused-border-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));
212
+ --trees-status-added: var(--trees-status-added-override, var(--trees-theme-git-added-fg, light-dark(var(--trees-added-light), var(--trees-added-dark))));
213
+ --trees-status-ignored: var(--trees-status-ignored-override, var(--trees-theme-git-ignored-fg, light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))));
214
+ --trees-status-modified: var(--trees-status-modified-override, var(--trees-theme-git-modified-fg, light-dark(var(--trees-modified-light), var(--trees-modified-dark))));
215
+ --trees-status-renamed: var(--trees-status-renamed-override, var(--trees-theme-git-renamed-fg, light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))));
216
+ --trees-status-untracked: var(--trees-status-untracked-override, var(--trees-theme-git-untracked-fg, light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))));
217
+ --trees-status-deleted: var(--trees-status-deleted-override, var(--trees-theme-git-deleted-fg, light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))));
218
+ --trees-git-modified-color: var(--trees-git-modified-color-override, var(--trees-status-modified));
219
+ --trees-git-added-color: var(--trees-git-added-color-override, var(--trees-status-added));
220
+ --trees-git-ignored-color: var(--trees-git-ignored-color-override, var(--trees-status-ignored));
221
+ --trees-git-deleted-color: var(--trees-git-deleted-color-override, var(--trees-status-deleted));
222
+ --trees-git-renamed-color: var(--trees-git-renamed-color-override, var(--trees-status-renamed));
223
+ --trees-git-untracked-color: var(--trees-git-untracked-color-override, var(--trees-status-untracked));
224
+ --trees-icon-gray: light-dark(#84848a, #adadb1);
225
+ --trees-icon-red: light-dark(#d52c36, #ff6762);
226
+ --trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);
227
+ --trees-icon-orange: light-dark(#d47628, #ffa359);
228
+ --trees-icon-yellow: light-dark(#d5a910, #ffd452);
229
+ --trees-icon-green: light-dark(#199f43, #5ecc71);
230
+ --trees-icon-teal: light-dark(#17a5af, #64d1db);
231
+ --trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);
232
+ --trees-icon-blue: light-dark(#1a85d4, #69b1ff);
233
+ --trees-icon-indigo: light-dark(#693acf, #9d6afb);
234
+ --trees-icon-purple: light-dark(#a631be, #d568ea);
235
+ --trees-icon-pink: light-dark(#d32a61, #ff678d);
236
+ --trees-icon-mauve: light-dark(#594c5b, #79697b);
237
+ --trees-file-icon-color-default: var(--trees-file-icon-color, var(--trees-icon-gray));
238
+ --trees-file-icon-color-astro: var(--trees-file-icon-color, var(--trees-icon-purple));
239
+ --trees-file-icon-color-babel: var(--trees-file-icon-color, var(--trees-icon-yellow));
240
+ --trees-file-icon-color-bash: var(--trees-file-icon-color, var(--trees-icon-green));
241
+ --trees-file-icon-color-biome: var(--trees-file-icon-color, var(--trees-icon-blue));
242
+ --trees-file-icon-color-bootstrap: var(--trees-file-icon-color, var(--trees-icon-indigo));
243
+ --trees-file-icon-color-browserslist: var(--trees-file-icon-color, var(--trees-icon-yellow));
244
+ --trees-file-icon-color-bun: var(--trees-file-icon-color, var(--trees-icon-mauve));
245
+ --trees-file-icon-color-c: var(--trees-file-icon-color, var(--trees-icon-blue));
246
+ --trees-file-icon-color-cpp: var(--trees-file-icon-color, var(--trees-icon-blue));
247
+ --trees-file-icon-color-claude: var(--trees-file-icon-color, var(--trees-icon-orange));
248
+ --trees-file-icon-color-css: var(--trees-file-icon-color, var(--trees-icon-indigo));
249
+ --trees-file-icon-color-database: var(--trees-file-icon-color, var(--trees-icon-purple));
250
+ --trees-file-icon-color-docker: var(--trees-file-icon-color, var(--trees-icon-blue));
251
+ --trees-file-icon-color-eslint: var(--trees-file-icon-color, var(--trees-icon-indigo));
252
+ --trees-file-icon-color-git: var(--trees-file-icon-vermilion, var(--trees-icon-vermilion));
253
+ --trees-file-icon-color-go: var(--trees-file-icon-color, var(--trees-icon-cyan));
254
+ --trees-file-icon-color-graphql: var(--trees-file-icon-color, var(--trees-icon-pink));
255
+ --trees-file-icon-color-html: var(--trees-file-icon-color, var(--trees-icon-orange));
256
+ --trees-file-icon-color-image: var(--trees-file-icon-color, var(--trees-icon-pink));
257
+ --trees-file-icon-color-javascript: var(--trees-file-icon-color, var(--trees-icon-yellow));
258
+ --trees-file-icon-color-json: var(--trees-file-icon-color, var(--trees-icon-orange));
259
+ --trees-file-icon-color-markdown: var(--trees-file-icon-color, var(--trees-icon-green));
260
+ --trees-file-icon-color-mcp: var(--trees-file-icon-color, var(--trees-icon-teal));
261
+ --trees-file-icon-color-npm: var(--trees-file-icon-color, var(--trees-icon-red));
262
+ --trees-file-icon-color-oxc: var(--trees-file-icon-cyan, var(--trees-icon-cyan));
263
+ --trees-file-icon-color-postcss: var(--trees-file-icon-color, var(--trees-icon-red));
264
+ --trees-file-icon-color-prettier: var(--trees-file-icon-color, var(--trees-icon-teal));
265
+ --trees-file-icon-color-python: var(--trees-file-icon-color, var(--trees-icon-blue));
266
+ --trees-file-icon-color-react: var(--trees-file-icon-color, var(--trees-icon-cyan));
267
+ --trees-file-icon-color-ruby: var(--trees-file-icon-color, var(--trees-icon-red));
268
+ --trees-file-icon-color-rust: var(--trees-file-icon-color, var(--trees-icon-orange));
269
+ --trees-file-icon-color-sass: var(--trees-file-icon-color, var(--trees-icon-pink));
270
+ --trees-file-icon-color-svg: var(--trees-file-icon-color, var(--trees-icon-orange));
271
+ --trees-file-icon-color-svelte: var(--trees-file-icon-color, var(--trees-icon-red));
272
+ --trees-file-icon-color-svgo: var(--trees-file-icon-color, var(--trees-icon-green));
273
+ --trees-file-icon-color-swift: var(--trees-file-icon-color, var(--trees-icon-orange));
274
+ --trees-file-icon-color-table: var(--trees-file-icon-color, var(--trees-icon-teal));
275
+ --trees-file-icon-color-text: var(--trees-file-icon-color, var(--trees-icon-gray));
276
+ --trees-file-icon-color-tailwind: var(--trees-file-icon-color, var(--trees-icon-cyan));
277
+ --trees-file-icon-color-terraform: var(--trees-file-icon-color, var(--trees-icon-indigo));
278
+ --trees-file-icon-color-typescript: var(--trees-file-icon-color, var(--trees-icon-blue));
279
+ --trees-file-icon-color-vite: var(--trees-file-icon-color, var(--trees-icon-purple));
280
+ --trees-file-icon-color-vscode: var(--trees-file-icon-color, var(--trees-icon-blue));
281
+ --trees-file-icon-color-vue: var(--trees-file-icon-color, var(--trees-icon-green));
282
+ --trees-file-icon-color-wasm: var(--trees-file-icon-color, var(--trees-icon-indigo));
283
+ --trees-file-icon-color-webpack: var(--trees-file-icon-color, var(--trees-icon-blue));
284
+ --trees-file-icon-color-yml: var(--trees-file-icon-color, var(--trees-icon-red));
285
+ --trees-file-icon-color-zig: var(--trees-file-icon-color, var(--trees-icon-orange));
286
+ --trees-file-icon-color-zip: var(--trees-file-icon-color, var(--trees-icon-orange));
287
+ --trees-level-gap: var(--trees-level-gap-override, calc(8px * var(--trees-density)));
288
+ --trees-item-padding-x: var(--trees-item-padding-x-override, calc(8px * var(--trees-density)));
289
+ --trees-item-margin-x: var(--trees-item-margin-x-override, calc(2px * var(--trees-density)));
290
+ --trees-item-row-gap: var(--trees-item-row-gap-override, calc(6px * var(--trees-density)));
291
+ --trees-icon-width: var(--trees-icon-width-override, 16px);
292
+ --trees-icon-nudge: var(--trees-icon-nudge-override, calc(1px * var(--trees-density)));
293
+ --trees-row-height: var(--trees-item-height, 30px);
294
+ --trees-git-lane-width: var(--trees-git-lane-width-override, 12px);
295
+ --trees-action-lane-width: var(--trees-action-lane-width-override, calc(var(--trees-icon-width) + 2px));
296
+ --trees-context-menu-trigger-inline-offset: calc(var(--trees-padding-inline) + var(--trees-item-padding-x) -
297
+ var(--trees-focus-ring-width));
298
+ --trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);
299
+ --trees-padding-inline: var(--trees-padding-inline-override, 16px);
300
+ color-scheme: light dark;
301
+ font-size: var(--trees-font-size);
302
+ color: var(--trees-fg);
303
+ background-color: var(--trees-bg);
304
+ --truncate-marker-background-color: var(--trees-bg);
305
+ --truncate-marker-background-overlay-color: transparent;
306
+ font-family: var(--trees-font-family);
307
+ font-weight: var(--trees-font-weight-regular);
308
+ flex-direction: column;
309
+ display: flex;
310
+ }
311
+
312
+ :host([data-file-tree-virtualized="true"]) {
313
+ height: 100%;
314
+ overflow: hidden;
315
+ }
316
+
317
+ [data-file-tree-virtualized-wrapper="true"], [data-file-tree-virtualized-root="true"] {
318
+ flex-direction: column;
319
+ height: 100%;
320
+ display: flex;
321
+ overflow: hidden;
322
+ }
323
+
324
+ [data-file-tree-virtualized-scroll="true"], [data-file-tree-scrollbar-measure="true"] {
325
+ --trees-scrollbar-thumb-current: transparent;
326
+ scrollbar-gutter: stable;
327
+ overflow-y: auto;
328
+
329
+ &:hover {
330
+ --trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb);
331
+ }
332
+
333
+ &::-webkit-scrollbar {
334
+ width: var(--trees-scrollbar-gutter);
335
+ height: var(--trees-scrollbar-gutter);
336
+ }
337
+
338
+ &::-webkit-scrollbar-track {
339
+ background: none;
340
+ }
341
+
342
+ &::-webkit-scrollbar-thumb {
343
+ background-color: var(--trees-scrollbar-thumb-current);
344
+ border-radius: calc(var(--trees-scrollbar-gutter) / 2);
345
+ background-clip: content-box;
346
+ border: 1px solid #0000;
347
+ }
348
+
349
+ &::-webkit-scrollbar-corner {
350
+ background-color: #0000;
351
+ }
352
+ }
353
+
354
+ [data-file-tree-scrollbar-measure="true"] {
355
+ visibility: hidden;
356
+ pointer-events: none;
357
+ width: 100px;
358
+ height: 100px;
359
+ position: absolute;
360
+ top: 0;
361
+ left: 0;
362
+ }
363
+
364
+ @supports ((-moz-appearance: none)) {
365
+ [data-file-tree-virtualized-scroll="true"], [data-file-tree-scrollbar-measure="true"] {
366
+ scrollbar-width: thin;
367
+ scrollbar-color: var(--trees-scrollbar-thumb-current) transparent;
368
+ }
369
+ }
370
+
371
+ [data-file-tree-virtualized-scroll="true"] {
372
+ min-height: 0;
373
+ padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
374
+ 0px)
375
+ /* NOTE(amadeus): We can assume that all Webkit based browser gutters
376
+ * will align to the value of '--trees-scrollbar-gutter', however if not, then
377
+ * \`--trees-scrollbar-gutter-measured\` should correct it. Mostly we are
378
+ * hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments
379
+ * \`--trees-scrollbar-gutter-measured\` should always be immediately available.
380
+ */
381
+ max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -
382
+ var(--trees-scrollbar-gutter-measured, var(--trees-scrollbar-gutter))),
383
+ 0px);
384
+ flex: 1 1 0;
385
+ position: relative;
386
+ overflow-y: auto;
387
+ }
388
+
389
+ @supports ((-moz-appearance: none)) {
390
+ [data-file-tree-virtualized-scroll="true"] {
391
+ padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
392
+ 0px)
393
+ /* NOTE(amadeus): However on Firefox it can vary a little bit, but most
394
+ * likely the majority of cases will default to a 0px width scrollbar lets
395
+ * inherit that first to avoid SSR jumps. In non-SSR'd environments
396
+ * \`--trees-scrollbar-gutter-measured\` should always be immediately available.
397
+ */
398
+ max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -
399
+ var(--trees-scrollbar-gutter-measured, 0px)),
400
+ 0px);
401
+ }
402
+ }
403
+
404
+ [data-file-tree-sticky-overlay="true"] {
405
+ z-index: 4;
406
+ pointer-events: none;
407
+ height: 0;
408
+ position: sticky;
409
+ top: 0;
410
+ overflow: visible;
411
+ }
412
+
413
+ [data-file-tree-virtualized-root="true"][data-scroll-at-top="true"]:not([data-overlay-reveal]) [data-file-tree-sticky-overlay="true"] {
414
+ visibility: hidden;
415
+ }
416
+
417
+ [data-file-tree-sticky-overlay-content="true"] {
418
+ background-color: var(--trees-bg);
419
+ pointer-events: none;
420
+ position: relative;
421
+ }
422
+
423
+ [data-file-tree-virtualized-list="true"] {
424
+ background-color: var(--trees-bg);
425
+ overflow-anchor: none;
426
+ width: 100%;
427
+ min-height: 100%;
428
+ position: relative;
429
+
430
+ &[data-is-scrolling] {
431
+ pointer-events: none;
432
+ }
433
+ }
434
+
435
+ [data-file-tree-virtualized-sticky-offset="true"] {
436
+ contain: layout size;
437
+ }
438
+
439
+ [data-file-tree-virtualized-sticky="true"] {
440
+ isolation: isolate;
441
+ will-change: transform;
442
+ flex-direction: column;
443
+ width: 100%;
444
+ display: flex;
445
+ position: sticky;
446
+ top: 0;
447
+ }
448
+
449
+ [data-file-tree-search-container] {
450
+ padding: 0;
451
+ padding-inline: var(--trees-padding-inline);
452
+ margin-bottom: var(--trees-item-row-gap);
453
+ display: flex;
454
+ }
455
+
456
+ [data-file-tree-search-input] {
457
+ --trees-focus-ring-width: 2px;
458
+ font-family: var(--trees-font-family);
459
+ font-size: var(--trees-font-size);
460
+ height: var(--trees-row-height);
461
+ padding-inline: var(--trees-item-padding-x);
462
+ line-height: var(--trees-row-height);
463
+ color: var(--trees-search-fg);
464
+ background-color: var(--trees-search-bg);
465
+ border: 1px solid var(--trees-border-color);
466
+ border-radius: var(--trees-border-radius);
467
+ outline: none;
468
+ flex: 1;
469
+ margin-block: 1px;
470
+
471
+ &::placeholder {
472
+ color: color-mix(in lab,
473
+ var(--trees-search-fg) 65%,
474
+ var(--trees-search-bg));
475
+ }
476
+
477
+ &:focus-visible, &[data-file-tree-search-input-fake-focus="true"] {
478
+ outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);
479
+ outline-offset: var(--trees-focus-ring-offset);
480
+ }
481
+ }
482
+
483
+ [role="tree"] {
484
+ gap: var(--trees-gap-override, 0);
485
+ flex-direction: column;
486
+ display: flex;
487
+ position: relative;
488
+ }
489
+
490
+ [data-type="item"] {
491
+ color: inherit;
492
+ font-family: var(--trees-font-family);
493
+ font-size: var(--trees-font-size);
494
+ text-align: start;
495
+ background-color: var(--trees-bg);
496
+ padding: 0 var(--trees-item-padding-x);
497
+ margin: 0 var(--trees-item-margin-x);
498
+ cursor: pointer;
499
+ user-select: none;
500
+ -webkit-touch-callout: none;
501
+ touch-action: manipulation;
502
+ flex: 0 0 var(--trees-row-height);
503
+ height: var(--trees-row-height);
504
+ line-height: var(--trees-row-height);
505
+ align-items: center;
506
+ gap: var(--trees-item-row-gap);
507
+ border-radius: var(--trees-border-radius);
508
+ --truncate-marker-background-color: var(--trees-bg);
509
+ --truncate-marker-background-overlay-color: transparent;
510
+ --truncate-marker-block-inset: 0px;
511
+ border: none;
512
+ outline: none;
513
+ display: flex;
514
+ position: relative;
515
+
516
+ &:hover, &[data-item-context-hover="true"] {
517
+ background-color: var(--trees-bg-muted);
518
+ --truncate-marker-background-overlay-color: var(--trees-bg-muted);
519
+ }
520
+
521
+ &[data-item-focused="true"], &:focus-visible {
522
+ z-index: 2;
523
+
524
+ & [data-item-flattened-subitems] {
525
+ --truncate-marker-block-inset: var(--trees-focus-ring-width);
526
+ }
527
+
528
+ &:before {
529
+ content: "";
530
+ border-radius: var(--trees-border-radius);
531
+ outline: var(--trees-focus-ring-width) solid
532
+ var(--trees-focus-ring-color);
533
+ outline-offset: var(--trees-focus-ring-offset);
534
+ pointer-events: none;
535
+ display: block;
536
+ position: absolute;
537
+ inset: 0;
538
+ }
539
+
540
+ &[data-item-selected="true"]:before {
541
+ outline-color: var(--trees-selected-focused-border-color);
542
+ }
543
+ }
544
+
545
+ &[data-item-selected="true"] {
546
+ color: var(--trees-selected-fg);
547
+ background-color: var(--trees-selected-bg);
548
+ --truncate-marker-background-overlay-color: var(--trees-selected-bg);
549
+ z-index: 3;
550
+
551
+ & [data-item-section="icon"] {
552
+ color: var(--trees-selected-fg);
553
+ }
554
+ }
555
+
556
+ &[data-item-search-match="true"] {
557
+ font-weight: var(--trees-search-font-weight);
558
+ }
559
+ }
560
+
561
+ [data-type="item"][data-file-tree-sticky-row="true"] {
562
+ pointer-events: auto;
563
+ }
564
+
565
+ [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"] {
566
+ pointer-events: none;
567
+ }
568
+
569
+ [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"]:hover:not([data-item-selected="true"]), [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"][data-item-context-hover="true"]:not([data-item-selected="true"]) {
570
+ background-color: var(--trees-bg);
571
+ --truncate-marker-background-overlay-color: transparent;
572
+ }
573
+
574
+ [data-item-selected="true"]:has( + [data-item-selected="true"]) {
575
+ border-bottom-right-radius: 0;
576
+ border-bottom-left-radius: 0;
577
+ }
578
+
579
+ [data-item-selected="true"] + [data-item-selected="true"] {
580
+ border-top-left-radius: 0;
581
+ border-top-right-radius: 0;
582
+ }
583
+
584
+ [data-item-flattened-subitems] {
585
+ align-items: center;
586
+ gap: 2px;
587
+ display: inline-flex;
588
+ }
589
+
590
+ [data-item-flattened-subitem]:hover, [data-item-flattened-subitem-drag-target="true"] {
591
+ text-decoration: underline;
592
+ }
593
+
594
+ [data-item-section="icon"] {
595
+ color: var(--trees-fg-muted);
596
+ fill: currentColor;
597
+ width: var(--trees-icon-width);
598
+ flex-shrink: 0;
599
+ justify-content: center;
600
+ align-items: center;
601
+ display: flex;
602
+ }
603
+
604
+ :where([data-item-section="icon"] > [data-icon-token]) {
605
+ color: var(--trees-fg-muted);
606
+ }
607
+
608
+ [data-file-tree-colored-icons="true"] {
609
+ & [data-icon-token="astro"] {
610
+ color: var(--trees-file-icon-color-astro);
611
+ }
612
+
613
+ & [data-icon-token="babel"] {
614
+ color: var(--trees-file-icon-color-babel);
615
+ }
616
+
617
+ & [data-icon-token="bash"] {
618
+ color: var(--trees-file-icon-color-bash);
619
+ }
620
+
621
+ & [data-icon-token="biome"] {
622
+ color: var(--trees-file-icon-color-biome);
623
+ }
624
+
625
+ & [data-icon-token="bootstrap"] {
626
+ color: var(--trees-file-icon-color-bootstrap);
627
+ }
628
+
629
+ & [data-icon-token="browserslist"] {
630
+ color: var(--trees-file-icon-color-browserslist);
631
+ }
632
+
633
+ & [data-icon-token="bun"] {
634
+ color: var(--trees-file-icon-color-bun);
635
+ }
636
+
637
+ & [data-icon-token="c"] {
638
+ color: var(--trees-file-icon-color-c);
639
+ }
640
+
641
+ & [data-icon-token="cpp"] {
642
+ color: var(--trees-file-icon-color-cpp);
643
+ }
644
+
645
+ & [data-icon-token="claude"] {
646
+ color: var(--trees-file-icon-color-claude);
647
+ }
648
+
649
+ & [data-icon-token="css"] {
650
+ color: var(--trees-file-icon-color-css);
651
+ }
652
+
653
+ & [data-icon-token="database"] {
654
+ color: var(--trees-file-icon-color-database);
655
+ }
656
+
657
+ & [data-icon-token="default"] {
658
+ color: var(--trees-file-icon-color-default);
659
+ }
660
+
661
+ & [data-icon-token="docker"] {
662
+ color: var(--trees-file-icon-color-docker);
663
+ }
664
+
665
+ & [data-icon-token="eslint"] {
666
+ color: var(--trees-file-icon-color-eslint);
667
+ }
668
+
669
+ & [data-icon-token="git"] {
670
+ color: var(--trees-file-icon-color-git);
671
+ }
672
+
673
+ & [data-icon-token="go"] {
674
+ color: var(--trees-file-icon-color-go);
675
+ }
676
+
677
+ & [data-icon-token="graphql"] {
678
+ color: var(--trees-file-icon-color-graphql);
679
+ }
680
+
681
+ & [data-icon-token="html"] {
682
+ color: var(--trees-file-icon-color-html);
683
+ }
684
+
685
+ & [data-icon-token="image"] {
686
+ color: var(--trees-file-icon-color-image);
687
+ }
688
+
689
+ & [data-icon-token="javascript"] {
690
+ color: var(--trees-file-icon-color-javascript);
691
+ }
692
+
693
+ & [data-icon-token="json"] {
694
+ color: var(--trees-file-icon-color-json);
695
+ }
696
+
697
+ & [data-icon-token="markdown"] {
698
+ color: var(--trees-file-icon-color-markdown);
699
+ }
700
+
701
+ & [data-icon-token="mcp"] {
702
+ color: var(--trees-file-icon-color-mcp);
703
+ }
704
+
705
+ & [data-icon-token="npm"] {
706
+ color: var(--trees-file-icon-color-npm);
707
+ }
708
+
709
+ & [data-icon-token="oxc"] {
710
+ color: var(--trees-file-icon-color-oxc);
711
+ }
712
+
713
+ & [data-icon-token="postcss"] {
714
+ color: var(--trees-file-icon-color-postcss);
715
+ }
716
+
717
+ & [data-icon-token="prettier"] {
718
+ color: var(--trees-file-icon-color-prettier);
719
+ }
720
+
721
+ & [data-icon-token="python"] {
722
+ color: var(--trees-file-icon-color-python);
723
+ }
724
+
725
+ & [data-icon-token="react"] {
726
+ color: var(--trees-file-icon-color-react);
727
+ }
728
+
729
+ & [data-icon-token="ruby"] {
730
+ color: var(--trees-file-icon-color-ruby);
731
+ }
732
+
733
+ & [data-icon-token="rust"] {
734
+ color: var(--trees-file-icon-color-rust);
735
+ }
736
+
737
+ & [data-icon-token="sass"] {
738
+ color: var(--trees-file-icon-color-sass);
739
+ }
740
+
741
+ & [data-icon-token="svg"] {
742
+ color: var(--trees-file-icon-color-svg);
743
+ }
744
+
745
+ & [data-icon-token="svelte"] {
746
+ color: var(--trees-file-icon-color-svelte);
747
+ }
748
+
749
+ & [data-icon-token="svgo"] {
750
+ color: var(--trees-file-icon-color-svgo);
751
+ }
752
+
753
+ & [data-icon-token="swift"] {
754
+ color: var(--trees-file-icon-color-swift);
755
+ }
756
+
757
+ & [data-icon-token="table"] {
758
+ color: var(--trees-file-icon-color-table);
759
+ }
760
+
761
+ & [data-icon-token="text"] {
762
+ color: var(--trees-file-icon-color-text);
763
+ }
764
+
765
+ & [data-icon-token="tailwind"] {
766
+ color: var(--trees-file-icon-color-tailwind);
767
+ }
768
+
769
+ & [data-icon-token="terraform"] {
770
+ color: var(--trees-file-icon-color-terraform);
771
+ }
772
+
773
+ & [data-icon-token="typescript"] {
774
+ color: var(--trees-file-icon-color-typescript);
775
+ }
776
+
777
+ & [data-icon-token="vite"] {
778
+ color: var(--trees-file-icon-color-vite);
779
+ }
780
+
781
+ & [data-icon-token="vscode"] {
782
+ color: var(--trees-file-icon-color-vscode);
783
+ }
784
+
785
+ & [data-icon-token="vue"] {
786
+ color: var(--trees-file-icon-color-vue);
787
+ }
788
+
789
+ & [data-icon-token="wasm"] {
790
+ color: var(--trees-file-icon-color-wasm);
791
+ }
792
+
793
+ & [data-icon-token="webpack"] {
794
+ color: var(--trees-file-icon-color-webpack);
795
+ }
796
+
797
+ & [data-icon-token="yml"] {
798
+ color: var(--trees-file-icon-color-yml);
799
+ }
800
+
801
+ & [data-icon-token="zig"] {
802
+ color: var(--trees-file-icon-color-zig);
803
+ }
804
+
805
+ & [data-icon-token="zip"] {
806
+ color: var(--trees-file-icon-color-zip);
807
+ }
808
+ }
809
+
810
+ [data-icon-name="file-tree-icon-chevron"] {
811
+ &[data-align-capitals="false"] {
812
+ transform: translate(0, var(--trees-icon-nudge));
813
+ }
814
+
815
+ &[data-align-capitals="true"] {
816
+ transform: translate(0);
817
+ }
818
+ }
819
+
820
+ [data-item-section="content"] {
821
+ text-align: start;
822
+ text-overflow: ellipsis;
823
+ flex: 0 auto;
824
+ min-width: 0;
825
+ max-width: 100%;
826
+ overflow: hidden;
827
+ }
828
+
829
+ [data-item-section="decoration"] {
830
+ text-align: end;
831
+ min-width: 0;
832
+ color: var(--trees-fg-muted);
833
+ flex: 1 1 0;
834
+ justify-content: flex-end;
835
+ display: flex;
836
+ overflow: hidden;
837
+ }
838
+
839
+ [data-item-section="decoration"] > span {
840
+ text-overflow: ellipsis;
841
+ white-space: nowrap;
842
+ justify-content: flex-end;
843
+ align-items: center;
844
+ min-width: 0;
845
+ max-width: 100%;
846
+ display: inline-flex;
847
+ overflow: hidden;
848
+ }
849
+
850
+ [data-item-section="git"], [data-item-section="action"] {
851
+ flex: none;
852
+ justify-content: center;
853
+ align-items: center;
854
+ display: flex;
855
+ }
856
+
857
+ [data-item-section="git"] {
858
+ width: var(--trees-git-lane-width);
859
+ }
860
+
861
+ [data-item-section="action"] {
862
+ width: var(--trees-action-lane-width);
863
+ color: var(--trees-fg-muted);
864
+ fill: currentColor;
865
+ pointer-events: none;
866
+ }
867
+
868
+ [data-item-section="git"] > span, [data-item-section="action"] > span {
869
+ justify-content: center;
870
+ align-items: center;
871
+ width: 100%;
872
+ display: inline-flex;
873
+ }
874
+
875
+ [data-item-action-affordance="decorative"] {
876
+ opacity: .85;
877
+ }
878
+
879
+ [data-item-rename-input] {
880
+ appearance: none;
881
+ width: 100%;
882
+ min-width: 0;
883
+ height: calc(var(--trees-row-height) - 4px);
884
+ font-family: inherit;
885
+ font-size: inherit;
886
+ color: inherit;
887
+ box-sizing: border-box;
888
+ background-color: #0000;
889
+ border: 0;
890
+ outline: none;
891
+ padding-inline: 6px;
892
+ }
893
+
894
+ [data-item-section="content"]:has([data-item-rename-input]) ~ [data-item-section="action"], [data-item-section="content"]:has([data-item-rename-input]) ~ [data-item-section="decoration"] {
895
+ display: none;
896
+ }
897
+
898
+ [aria-expanded="false"][data-item-type="folder"] > [data-item-section="icon"] > [data-icon-name="file-tree-icon-chevron"] {
899
+ &[data-align-capitals="true"] {
900
+ transform: rotate(-90deg)
901
+ translate(calc(var(--trees-icon-nudge) / 2),
902
+ calc(var(--trees-icon-nudge) / 2));
903
+ }
904
+
905
+ &[data-align-capitals="false"] {
906
+ transform: rotate(-90deg)
907
+ translate(calc(var(--trees-icon-nudge) / 2 * -1),
908
+ calc(var(--trees-icon-nudge) / 2));
909
+ }
910
+ }
911
+
912
+ [data-item-section="spacing"] {
913
+ height: var(--trees-row-height);
914
+ padding-left: calc(calc(var(--trees-icon-width) / 2) - .5px);
915
+ flex-direction: row;
916
+ justify-content: center;
917
+ align-items: center;
918
+ display: flex;
919
+
920
+ &:empty {
921
+ padding-left: 0;
922
+ }
923
+ }
924
+
925
+ [data-item-section="spacing-item"] {
926
+ border-left: 1px solid var(--trees-indent-guide-bg);
927
+ height: 100%;
928
+ margin-right: calc(var(--trees-level-gap) - 1px);
929
+ opacity: 0;
930
+ transition: opacity .15s;
931
+ display: inline-block;
932
+ transform: translateX(-.25px);
933
+
934
+ & + & {
935
+ margin-left: calc(var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - .5px);
936
+ }
937
+ }
938
+
939
+ :host(:hover) [data-item-section="spacing-item"] {
940
+ opacity: .75;
941
+ }
942
+
943
+ [data-item-contains-git-change="true"] > [data-item-section="git"] {
944
+ color: var(--trees-git-modified-color);
945
+ opacity: .5;
946
+ fill: currentColor;
947
+ }
948
+
949
+ [data-item-git-status] {
950
+ & > :where([data-item-section="icon"]) > :where(:not([data-icon-name="file-tree-icon-chevron"])), & > [data-item-section="content"] {
951
+ color: var(--trees-item-git-status-color);
952
+ }
953
+
954
+ & > [data-item-section="git"] {
955
+ color: var(--trees-item-git-status-color);
956
+ font-weight: var(--trees-font-weight-semibold);
957
+ }
958
+ }
959
+
960
+ [data-item-git-status="added"] {
961
+ --trees-item-git-status-color: var(--trees-git-added-color);
962
+ }
963
+
964
+ [data-item-git-status="deleted"] {
965
+ --trees-item-git-status-color: var(--trees-git-deleted-color);
966
+ }
967
+
968
+ [data-item-git-status="ignored"] {
969
+ --trees-item-git-status-color: var(--trees-git-ignored-color);
970
+
971
+ & > [data-item-section="icon"] {
972
+ opacity: .5;
973
+ }
974
+ }
975
+
976
+ [data-item-section="git"] [data-icon-name="file-tree-icon-dot"] {
977
+ transform: translateY(calc(.65ex - 50%));
978
+ }
979
+
980
+ [data-item-git-status="modified"] {
981
+ --trees-item-git-status-color: var(--trees-git-modified-color);
982
+ }
983
+
984
+ [data-item-git-status="renamed"] {
985
+ --trees-item-git-status-color: var(--trees-git-renamed-color);
986
+ }
987
+
988
+ [data-item-git-status="untracked"] {
989
+ --trees-item-git-status-color: var(--trees-git-untracked-color);
990
+ }
991
+
992
+ [data-item-drag-target="true"] {
993
+ background-color: var(--trees-selected-bg);
994
+ }
995
+
996
+ [data-item-dragging="true"] {
997
+ opacity: .5;
998
+ }
999
+
1000
+ [data-item-section="lock"] {
1001
+ color: var(--trees-fg-muted);
1002
+ flex: none;
1003
+ align-items: center;
1004
+ margin-left: auto;
1005
+ display: flex;
1006
+ }
1007
+
1008
+ [data-item-section="lock"] svg {
1009
+ display: block;
1010
+ }
1011
+
1012
+ [data-type="header-slot"] {
1013
+ flex: none;
1014
+ display: block;
1015
+ }
1016
+
1017
+ [data-type="context-menu-wash"] {
1018
+ z-index: 3;
1019
+ touch-action: none;
1020
+ background-color: #0000;
1021
+ position: absolute;
1022
+ inset: 0;
1023
+ }
1024
+
1025
+ [data-type="context-menu-anchor"] {
1026
+ top: 0;
1027
+ right: var(--trees-context-menu-trigger-inline-offset);
1028
+ z-index: 4;
1029
+ align-items: center;
1030
+ display: none;
1031
+ position: absolute;
1032
+
1033
+ &[data-visible="true"] {
1034
+ display: flex;
1035
+ }
1036
+ }
1037
+
1038
+ [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="context-menu-anchor"] {
1039
+ display: none;
1040
+ }
1041
+
1042
+ [data-type="context-menu-anchor"] > slot[name="context-menu"] {
1043
+ flex: 0 0 0;
1044
+ width: 0;
1045
+ min-width: 0;
1046
+ display: block;
1047
+ overflow: visible;
1048
+ }
1049
+
1050
+ [data-type="context-menu-trigger"] {
1051
+ all: unset;
1052
+ width: var(--trees-action-lane-width);
1053
+ color: var(--trees-fg-muted);
1054
+ fill: currentColor;
1055
+ cursor: pointer;
1056
+ font-family: var(--trees-font-family);
1057
+ font-size: var(--trees-font-size);
1058
+ border-top-right-radius: var(--trees-border-radius);
1059
+ border-bottom-right-radius: var(--trees-border-radius);
1060
+ margin: var(--trees-focus-ring-width);
1061
+ height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);
1062
+ border-width: 0;
1063
+ justify-content: center;
1064
+ align-items: center;
1065
+ transition: color .12s;
1066
+ display: flex;
1067
+ }
1068
+
1069
+ [data-type="context-menu-trigger"]:hover, [data-type="context-menu-trigger"][aria-expanded="true"] {
1070
+ color: var(--trees-fg);
1071
+ }
1072
+
1073
+ [data-truncate-container] {
1074
+ --truncate-internal-marker-fade-width: var(--truncate-marker-fade-width, 2px);
1075
+ --truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);
1076
+ --truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);
1077
+ --truncate-internal-middle-marker-opacity: var(--truncate-middle-marker-opacity, 80%);
1078
+ --truncate-internal-marker-background-color: var(--truncate-marker-background-color, light-dark(#fff, #000));
1079
+ --truncate-internal-marker-background-overlay-color: var(--truncate-marker-background-overlay-color, transparent);
1080
+ --truncate-internal-marker-block-inset: var(--truncate-marker-block-inset, 0px);
1081
+ --truncate-internal-marker-fade-out-duration: var(--truncate-marker-fade-out-duration, 0s);
1082
+ --truncate-internal-marker-fade-in-duration: var(--truncate-marker-fade-in-duration, .1s);
1083
+ --truncate-internal-fade-marker-color: var(--truncate-fade-marker-color, #000);
1084
+ --truncate-internal-fade-marker-width: var(--truncate-fade-marker-width, .2lh);
1085
+ --truncate-internal-single-line-height: 1lh;
1086
+ height: var(--truncate-internal-single-line-height);
1087
+ min-width: 0;
1088
+ margin-top: -1px;
1089
+ margin-bottom: -1px;
1090
+ overflow: hidden;
1091
+ }
1092
+
1093
+ [data-truncate-marker] {
1094
+ height: var(--truncate-internal-single-line-height);
1095
+ padding-block: var(--truncate-internal-marker-block-inset);
1096
+ box-sizing: border-box;
1097
+ z-index: 2;
1098
+ color: color-mix(in srgb,
1099
+ currentColor var(--truncate-internal-marker-opacity),
1100
+ transparent);
1101
+ opacity: 0;
1102
+ transition: opacity var(--truncate-internal-marker-fade-out-duration)
1103
+ ease-in-out;
1104
+ background-clip: content-box;
1105
+ align-items: center;
1106
+ display: flex;
1107
+ position: absolute;
1108
+ }
1109
+
1110
+ @container measure (height > 1lh) {
1111
+ [data-truncate-marker] {
1112
+ opacity: 1;
1113
+ transition: opacity var(--truncate-internal-marker-fade-in-duration)
1114
+ ease-in-out;
1115
+ }
1116
+ }
1117
+
1118
+ [data-truncate-grid] {
1119
+ display: grid;
1120
+ position: relative;
1121
+ }
1122
+
1123
+ [data-truncate-content="visible"] {
1124
+ white-space: nowrap;
1125
+ }
1126
+
1127
+ [data-truncate-content="overflow"] {
1128
+ opacity: 0;
1129
+ pointer-events: none;
1130
+ user-select: none;
1131
+ word-break: break-all;
1132
+ margin-top: calc(-1 * var(--truncate-internal-single-line-height));
1133
+ }
1134
+
1135
+ [data-truncate-marker-cell] {
1136
+ user-select: none;
1137
+ pointer-events: none;
1138
+ overflow: visible;
1139
+ container: measure / size;
1140
+ }
1141
+
1142
+ [data-truncate-container="truncate"] {
1143
+ & [data-truncate-grid] {
1144
+ grid-template-columns: minmax(0, max-content) 0;
1145
+ }
1146
+
1147
+ & [data-truncate-marker] {
1148
+ right: 0;
1149
+ }
1150
+
1151
+ & [data-truncate-fade] {
1152
+ margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));
1153
+ }
1154
+ }
1155
+
1156
+ [data-truncate-container="fruncate"] {
1157
+ & [data-truncate-grid] {
1158
+ grid-template-columns: 0 minmax(0, max-content) auto;
1159
+ }
1160
+
1161
+ & [data-truncate-content] {
1162
+ direction: rtl;
1163
+ }
1164
+
1165
+ & [data-truncate-content] > span {
1166
+ unicode-bidi: plaintext;
1167
+ }
1168
+
1169
+ & [data-truncate-fade] {
1170
+ margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));
1171
+ }
1172
+ }
1173
+
1174
+ [data-truncate-variant="default"] {
1175
+ & [data-truncate-marker] {
1176
+ background-color: var(--truncate-internal-marker-background-color);
1177
+ background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),
1178
+ var(--truncate-internal-marker-background-overlay-color));
1179
+ }
1180
+
1181
+ & [data-truncate-marker]:after, & [data-truncate-marker]:before {
1182
+ content: "";
1183
+ width: calc(var(--truncate-internal-marker-fade-width) +
1184
+ var(--truncate-internal-marker-gap));
1185
+ height: max(0px,
1186
+ calc(var(--truncate-internal-single-line-height) -
1187
+ var(--truncate-internal-marker-block-inset) * 2));
1188
+ background-color: var(--truncate-internal-marker-background-color);
1189
+ background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),
1190
+ var(--truncate-internal-marker-background-overlay-color));
1191
+ -webkit-mask-image: linear-gradient(var(--truncate-internal-fade-dir),
1192
+ #000 0%,
1193
+ #000 var(--truncate-internal-marker-gap),
1194
+ transparent 100%);
1195
+ mask-image: linear-gradient(var(--truncate-internal-fade-dir),
1196
+ #000 0%,
1197
+ #000 var(--truncate-internal-marker-gap),
1198
+ transparent 100%);
1199
+ position: absolute;
1200
+ inset-block-start: var(--truncate-internal-marker-block-inset);
1201
+ }
1202
+
1203
+ & [data-truncate-marker]:after {
1204
+ --truncate-internal-fade-dir: to right;
1205
+ right: calc(-1 *
1206
+ (
1207
+ var(--truncate-internal-marker-fade-width) +
1208
+ var(--truncate-internal-marker-gap)
1209
+ ));
1210
+ }
1211
+
1212
+ & [data-truncate-marker]:before {
1213
+ --truncate-internal-fade-dir: to left;
1214
+ left: calc(-1 *
1215
+ (
1216
+ var(--truncate-internal-marker-fade-width) +
1217
+ var(--truncate-internal-marker-gap)
1218
+ ));
1219
+ }
1220
+ }
1221
+
1222
+ [data-truncate-variant="fade"] {
1223
+ & [data-truncate-marker] {
1224
+ background: none;
1225
+ }
1226
+ }
1227
+
1228
+ [data-truncate-fade] {
1229
+ box-shadow: 0 0 calc(var(--truncate-internal-fade-marker-width) / 2)
1230
+ var(--truncate-internal-fade-marker-color),
1231
+ 0 0 var(--truncate-internal-fade-marker-width)
1232
+ var(--truncate-internal-fade-marker-color);
1233
+ width: calc(var(--truncate-internal-fade-marker-width) * 2);
1234
+ height: calc(var(--truncate-internal-single-line-height) -
1235
+ (var(--truncate-internal-fade-marker-width) * 2));
1236
+ margin: var(--truncate-internal-fade-marker-width) 0;
1237
+ }
1238
+
1239
+ [data-truncate-group-container="middle"] {
1240
+ & [data-truncate-container] {
1241
+ --truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);
1242
+ }
1243
+
1244
+ min-width: 0;
1245
+ display: flex;
1246
+
1247
+ & > div {
1248
+ min-width: 0;
1249
+ }
1250
+
1251
+ & > div[data-truncate-segment-priority="1"] {
1252
+ flex: 0 1 max-content;
1253
+ }
1254
+
1255
+ & > div[data-truncate-segment-priority="2"] {
1256
+ flex: 0 999999 max-content;
1257
+ }
1258
+ }
1259
+ }
1260
+
1261
+ @layer theme, unsafe;
1262
+ `;const Oi="@layer base, unsafe;";function Co(e){return`${Oi}
1263
+ @layer base {
1264
+ ${e}
1265
+ }`}function bc(e){return`${Oi}
1266
+ @layer unsafe {
1267
+ ${e}
1268
+ }`}const _o=new WeakMap;function Ic(e){const t=_o.get(e);if(t!=null)return t;const n=document.createElement("div");n.setAttribute(ea,"true");const r=document.createElement("div");r.style.position="relative",r.style.height="200%",n.appendChild(r),e.appendChild(n);const o=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),_o.set(e,o),o}function xc(e,t){if(!e.isConnected)return;const n=Ic(t);if(n==null)return;const r=t.querySelector(`style[${bo}]`),o=r instanceof HTMLStyleElement?r:document.createElement("style");r instanceof HTMLStyleElement||(o.setAttribute(bo,""),t.appendChild(o)),o.textContent=`:host { ${ta}: ${n}px; }`}let Sn;function wc(e){if(typeof CSSStyleSheet<"u"&&typeof CSSStyleSheet.prototype.replaceSync=="function"&&"adoptedStyleSheets"in e){Sn==null&&(Sn=new CSSStyleSheet,Sn.replaceSync(Co(So)));let t=!1;try{e.adoptedStyleSheets=[Sn],t=!0}catch{}if(t){e.querySelector(`style[${vo}]`)?.remove();return}}if(e.querySelector("style[data-file-tree-style]")==null){const t=document.createElement("style");t.setAttribute(vo,""),t.textContent=Co(So),e.prepend(t)}}function dr(e,t){Sc(e,t),wc(t),xc(e,t)}function Sc(e,t){const n=e.querySelector('template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]');n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute("shadowrootmode")&&n.remove()))}if(typeof HTMLElement<"u"&&customElements.get("file-tree-container")==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){const n=this.shadowRoot??this.attachShadow({mode:"open"});dr(this,n)}}if(customElements.define(cr,e),typeof document<"u")for(const t of Array.from(document.querySelectorAll(cr)))t instanceof HTMLElement&&dr(t,t.shadowRoot??t.attachShadow({mode:"open"}))}const en=5,qn=1<<en,Cc=qn*4;function Xt(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function ko(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function dt(e,t){if(t.childIdByNameId!=null)return t.childIdByNameId;const n=new Map;for(const r of t.childIds){const o=e[r];o!=null&&n.set(o.nameId,r)}return t.childIdByNameId=n,n}function On(e){if(e.childPositionById!=null)return e.childPositionById;const t=new Map;for(let n=0;n<e.childIds.length;n++){const r=e.childIds[n];r!=null&&t.set(r,n)}return e.childPositionById=t,t}function $t(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function ji(e,t){if(e.childPositionById!=null)for(let n=t;n<e.childIds.length;n++){const r=e.childIds[n];r!=null&&e.childPositionById.set(r,n)}}function Ln(e,t){let n=0,r=0;for(const o of t.childIds){const i=e[o];i!=null&&(n+=i.subtreeNodeCount,r+=i.visibleSubtreeCount)}t.totalChildSubtreeNodeCount=n,t.totalChildVisibleSubtreeCount=r,wt(e,t)}function Dr(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;const o=On(e).get(t);if(o===void 0)return;const i=o>>en;e.childVisibleChunkSums[i]+=r}function hr(e,t,n){const r=t.childVisibleChunkSums;if(r!=null){let i=n,s=0;for(const l of r){if(i<l){const a=kc(e,t,s,i);return{...a,childVisibleIndex:n-a.localVisibleIndex}}i-=l,s+=qn}throw new Error(`Visible child index ${String(n)} is out of range`)}let o=n;for(let i=0;i<t.childIds.length;i++){const s=t.childIds[i];if(s==null)continue;const l=e[s];if(l!=null){if(o<l.visibleSubtreeCount)return{childIndex:i,childVisibleIndex:n-o,localVisibleIndex:o};o-=l.visibleSubtreeCount}}throw new Error(`Visible child index ${String(n)} is out of range`)}function _c(e,t,n){let r=0;const o=t.childVisibleChunkSums;let i=0;if(o!=null){const s=n>>en;for(let l=0;l<s;l+=1)r+=o[l]??0;i=s<<en}for(let s=i;s<n;s+=1){const l=t.childIds[s];if(l==null)continue;const a=e[l];a!=null&&(r+=a.visibleSubtreeCount)}return r}function wt(e,t){if(t.childIds.length<Cc){t.childVisibleChunkSums=null;return}const n=Math.ceil(t.childIds.length/qn),r=new Int32Array(n);for(let o=0;o<t.childIds.length;o++){const i=t.childIds[o];if(i==null)continue;const s=e[i];s!=null&&(r[o>>en]+=s.visibleSubtreeCount)}t.childVisibleChunkSums=r}function kc(e,t,n,r){const o=Math.min(t.childIds.length,n+qn);let i=r;for(let s=n;s<o;s++){const l=t.childIds[s];if(l==null)continue;const a=e[l];if(a!=null){if(i<a.visibleSubtreeCount)return{childIndex:s,localVisibleIndex:i};i-=a.visibleSubtreeCount}}throw new Error(`Visible child index ${String(r)} is out of range`)}const Pc=7,Mr=3,$i=1<<Mr,Ui=4;function _e(e,t,n=0){return e<<Ui|n<<Mr|t}function ze(e){return e.depthAndFlags>>>Ui}function jn(e){return(e.depthAndFlags&$i)>>Mr}function T(e){return(e.depthAndFlags&$i)!==0}function Ki(e){return e.depthAndFlags&Pc}function ae(e,t){return(Ki(e)&t)!==0}function $n(e,t){e.depthAndFlags|=t}function Ec(e,t){e.depthAndFlags=_e(t,Ki(e),jn(e))}const Wi=Symbol("benchmarkInstrumentation");function Dc(e,t){return t==null||Object.defineProperty(e,Wi,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function Tr(e){return e==null?null:e[Wi]??null}function P(e,t,n){return e==null?n():e.measurePhase(t,n)}function En(e,t,n){!Number.isFinite(n)||e==null||e.setCounter(t,n)}function Po(e){return e>=48&&e<=57}function Mc(e){const t=[];let n=0,r=0;for(;r<e.length;){for(;r<e.length&&!Po(e.charCodeAt(r));)r+=1;if(r>=e.length)break;r>n&&t.push(e.slice(n,r));let o=0;for(;r<e.length&&Po(e.charCodeAt(r));)o=o*10+(e.charCodeAt(r)-48),r+=1;t.push(o),n=r}return(n<e.length||t.length===0)&&t.push(e.slice(n)),t}function ln(e){const t=e.toLowerCase();return{lowerValue:t,tokens:Mc(t)}}function Tc(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const o=e[r],i=t[r];if(o===i)continue;if(typeof o=="number"&&typeof i=="number")return o<i?-1:1;const s=String(o),l=String(i);if(s!==l)return s<l?-1:1}return e.length!==t.length?e.length<t.length?-1:1:0}function Nr(e,t){if(e.tokens.length===1&&t.tokens.length===1&&typeof e.tokens[0]=="string"&&typeof t.tokens[0]=="string")return e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1;const n=Tc(e.tokens,t.tokens);return n!==0?n:e.lowerValue!==t.lowerValue?e.lowerValue<t.lowerValue?-1:1:0}function Gi(e,t,n){const r=Nr(n(e),n(t));return r!==0?r:e===t?0:e<t?-1:1}function Nc(e,t){return Gi(e,t,ln)}function Fn(e,t){return t!==e.segments.length-1||e.isDirectory?1:0}function Ac(e,t){const n=Math.min(e.segments.length,t.segments.length);for(let r=0;r<n;r++){const o=e.segments[r],i=t.segments[r];if(o===i)continue;const s=Fn(e,r);return s!==Fn(t,r)?s===1?-1:1:Nc(o,i)}return e.segments.length!==t.segments.length?e.segments.length<t.segments.length?-1:1:e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1}function Rc(e,t){return Ac(e,t)}function Vc(e,t,n){const r=i=>{const s=n.get(i);if(s!=null)return s;const l=ln(i);return n.set(i,l),l},o=Math.min(e.segments.length,t.segments.length);for(let i=0;i<o;i++){const s=e.segments[i],l=t.segments[i];if(s===l)continue;const a=Fn(e,i);return a!==Fn(t,i)?a===1?-1:1:Gi(s,l,r)}return e.segments.length!==t.segments.length?e.segments.length<t.segments.length?-1:1:e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1}function fr(e,t){const n=e.sortKeyById[t];if(n!==void 0)return n;const r=e.valueById[t],o=ln(r);return e.sortKeyById[t]=o,o}function Yi(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??"default"}}function Xi(e){const t=e.length>0&&e.charCodeAt(e.length-1)===47,n=t?e.length-1:e.length,r=[];let o=0;for(let i=0;i<n;i++)e.charCodeAt(i)===47&&(r.push(e.slice(o,i)),o=i+1);return r.push(e.slice(o,n)),{hasTrailingSlash:t,segments:r}}function Jt(e){const{hasTrailingSlash:t,segments:n}=Xi(e);return{basename:n[n.length-1]??"",isDirectory:t,path:e,segments:n}}function pr(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};const{hasTrailingSlash:t,segments:n}=Xi(e);return{requiresDirectory:t,segments:n}}function Qi(){const e=new Map;return e.set("",0),{idByValue:e,valueById:[""],sortKeyById:[ln("")]}}function Je(e,t){const n=e.idByValue.get(t);if(n!==void 0)return n;const r=e.valueById.length;return e.idByValue.set(t,r),e.valueById.push(t),r}function He(e,t){const n=e.valueById[t];if(n===void 0)throw new Error(`Unknown segment ID: ${String(t)}`);return n}const Ar=Symbol("pathStorePreparedInputKind");function Ji(e,t){return e[Ar]=t,e}function Eo(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function Zi(e,t,n){return n==="default"?Rc(e,t):n(Eo(e),Eo(t))}function Lc(){return{depthAndFlags:_e(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function Fc(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!==t[r])return r;return n}function Do(e){return e.isDirectory?e.segments.length:e.segments.length-1}function Bc(e){return Array.isArray(e)&&e.every(t=>t!=null&&typeof t=="object"&&typeof t.path=="string"&&Array.isArray(t.segments)&&typeof t.basename=="string"&&typeof t.isDirectory=="boolean")}function zc(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function Hc(e,t={}){return Rr(e,t).map(n=>n.path)}function qc(e,t={}){const n=Rr(e,t);return Ji({paths:n.map(r=>r.path),preparedPaths:n},"prepared")}function Oc(e){const t=e.length;let n=!1;for(let r=0;r<t;r+=1){const o=e[r];if(o.length>0&&o.charCodeAt(o.length-1)===47){n=!0;break}}return Ji({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},"presorted")}function jc(e){const t=e,n=t.preparedPaths;if(t[Ar]==="prepared"&&n!=null)return n;if(!Bc(n))throw new Error("preparedInput must come from PathStore.prepareInput()");return n}function $c(e){const t=e;return t[Ar]==="presorted"&&t.presortedPaths!=null||zc(t.presortedPaths)?t.presortedPaths:null}function Uc(e){const t=e;return typeof t.presortedPathsContainDirectories=="boolean"?t.presortedPathsContainDirectories:null}function Rr(e,t={}){const n=Yi(t),r=Tr(t);En(r,"workload.inputFiles",e.length);const o=P(r,"store.preparePathEntries.parse",()=>e.map(i=>Jt(i)));return P(r,"store.preparePathEntries.sort",()=>o.sort((i,s)=>Zi(i,s,n.sort))),o}var es=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[Lc()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=Qi();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=Tr(e),this.options=Yi(e);const t=e.initialExpandedPaths??null;if(t==null||t.length===0)this.initialExpandedPathSet=null;else{const n=new Set,r=t.length;for(let o=0;o<r;o+=1){const i=t[o],s=i.length;n.add(s>0&&i.charCodeAt(s-1)===47?i.slice(0,s-1):i)}this.initialExpandedPathSet=n,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,Xt())}appendPaths(e){return P(this.instrumentation,"store.builder.appendPaths.parse",()=>this.appendPreparedPaths(e.map(t=>Jt(t))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,P(this.instrumentation,"store.builder.appendPreparedPaths",()=>{for(const n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return P(this.instrumentation,"store.builder.appendPresortedPaths",()=>{if(t===!1){this.appendPresortedFilePaths(e);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0;const o=this.nodes,i=this.segmentTable,s=i.idByValue,l=i.valueById,a=this.directoryStack;let d=0,h="",f=0;for(const c of e){if(n===c)throw new Error(`Duplicate path: "${c}"`);const m=c.length>0&&c.charCodeAt(c.length-1)===47,p=m?c.length-1:c.length;let g=0,v=0;if(n!=null)if(h.length>0&&c.length>h.length&&c.startsWith(h))g=f,v=h.length;else{const b=Math.min(p,n.length);let I=!0;for(let S=0;S<b;S++){const E=c.charCodeAt(S);if(E!==n.charCodeAt(S)){I=!1;break}E===47&&(g++,v=S+1)}I&&m&&b===p&&n.length>p&&n.charCodeAt(p)===47&&(g++,v=p+1)}d=g,r=g;let w=v,x=c.indexOf("/",w);for(;x>=0&&x<p;){const b=a[d];if(b===void 0)throw new Error("Directory stack underflow while building the path store");r++;const I=c.slice(w,x);let S=s.get(I);S===void 0&&(S=l.length,s.set(I,S),l.push(I));const E=o.length;o.push({depthAndFlags:_e(r,0,1),nameId:S,parentId:b,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(c.slice(0,x)),d++,a[d]=E,w=x+1,x=c.indexOf("/",w)}if(m){if(w<p){const I=a[d];if(I===void 0)throw new Error(`Unable to resolve directory parent for "${c}"`);r++;const S=c.slice(w,p);let E=s.get(S);E===void 0&&(E=l.length,s.set(S,E),l.push(S));const V=o.length;o.push({depthAndFlags:_e(r,0,1),nameId:E,parentId:I,subtreeNodeCount:1,visibleSubtreeCount:1}),d++,a[d]=V,w=p+1}const b=a[d];if(b===void 0)throw new Error(`Unable to resolve directory node for "${c}"`);this.promoteDirectoryToExplicit(b,c)}else{const b=a[d];if(b===void 0)throw new Error(`Unable to resolve file parent for "${c}"`);const I=c.slice(w);let S=s.get(I);S===void 0&&(S=l.length,s.set(I,S),l.push(I)),o.push({depthAndFlags:_e(r+1,0),nameId:S,parentId:b,subtreeNodeCount:1,visibleSubtreeCount:1})}w!==h.length&&(h=c.substring(0,w),f=r),n=c}a.length=d+1,n!=null&&(this.lastPreparedPath=Jt(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(e){let t=null,n=0;const r=this.nodes,o=this.segmentTable,i=o.idByValue,s=o.valueById,l=this.directoryStack;let a=0,d="",h=0;for(const f of e){if(t===f)throw new Error(`Duplicate path: "${f}"`);const c=f.length;let m=0,p=0;if(t!=null)if(d.length>0&&f.length>d.length&&f.startsWith(d))m=h,p=d.length;else{const I=Math.min(c,t.length);for(let S=0;S<I;S++){const E=f.charCodeAt(S);if(E!==t.charCodeAt(S))break;E===47&&(m++,p=S+1)}}a=m,n=m;let g=p,v=f.indexOf("/",g);for(;v>=0;){const I=l[a];if(I===void 0)throw new Error("Directory stack underflow while building the path store");n++;const S=f.slice(g,v);let E=i.get(S);E===void 0&&(E=s.length,i.set(S,E),s.push(S));const V=r.length;r.push({depthAndFlags:_e(n,0,1),nameId:E,parentId:I,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(f.slice(0,v)),this.presortedDirectoryNodeIds.push(V),a++,l[a]=V,g=v+1,v=f.indexOf("/",g)}const w=l[a];if(w===void 0)throw new Error(`Unable to resolve file parent for "${f}"`);const x=f.slice(g);let b=i.get(x);b===void 0&&(b=s.length,i.set(x,b),s.push(x)),r.push({depthAndFlags:_e(n+1,0),nameId:b,parentId:w,subtreeNodeCount:1,visibleSubtreeCount:1}),g!==d.length&&(d=f.substring(0,g),h=n),t=f}l.length=a+1,t!=null&&(this.lastPreparedPath=Jt(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){const t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(P(this.instrumentation,"store.builder.buildDirectoryIndexes",()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||P(this.instrumentation,"store.builder.computeSubtreeCounts",()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(e,t){if(this.hasDeferredDirectoryIndexes&&(this.buildDirectoryIndexes(),this.hasDeferredDirectoryIndexes=!1),this.lastPreparedPath!=null){if(e.path===this.lastPreparedPath.path)throw new Error(`Duplicate path: "${e.path}"`);if(t&&(this.options.sort==="default"?Vc(this.lastPreparedPath,e,this.segmentSortKeyCache):Zi(this.lastPreparedPath,e,this.options.sort))>0)throw new Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}const n=this.lastPreparedPath,r=Do(e),o=n==null?0:Do(n),i=n==null?0:Fc(n.segments,e.segments),s=Math.min(i,r,o);this.directoryStack.length=s+1;for(let a=s;a<r;a++){const d=this.directoryStack[this.directoryStack.length-1];if(d===void 0)throw new Error("Directory stack underflow while building the path store");const h=t?this.getOrCreateDirectoryChild(d,e.segments[a]):this.createDirectoryChild(d,e.segments[a]);this.directoryStack.push(h)}if(e.isDirectory){const a=this.directoryStack[this.directoryStack.length-1];if(a===void 0)throw new Error(`Unable to resolve directory node for "${e.path}"`);this.promoteDirectoryToExplicit(a,e.path),this.lastPreparedPath=e;return}const l=this.directoryStack[this.directoryStack.length-1];if(l===void 0)throw new Error(`Unable to resolve file parent for "${e.path}"`);t?this.createFileChild(l,e.basename,e.path):this.createFileChildUnchecked(l,e.basename),this.lastPreparedPath=e}recordCreatedDirectoryPath(e){!this.createdDirectoriesAllExpanded||this.initialExpandedPathSet==null||(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(e)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(e,t,n){const r=Je(this.segmentTable,t),o=this.getDirectoryIndex(e),i=o.childIdByNameId;if(i!=null&&i.get(r)!==void 0)throw new Error(`Path collides with an existing entry: "${n}"`);const s=this.nodes[e];if(s===void 0)throw new Error(`Unknown parent node ID: ${String(e)}`);const l=this.nodes.length;return this.nodes.push({depthAndFlags:_e(ze(s)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),i?.set(r,l),$t(o,l),l}createFileChildUnchecked(e,t){const n=Je(this.segmentTable,t),r=this.getDirectoryIndex(e),o=this.nodes[e];if(o===void 0)throw new Error(`Unknown parent node ID: ${String(e)}`);const i=this.nodes.length;return this.nodes.push({depthAndFlags:_e(ze(o)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,i),$t(r,i),i}getOrCreateDirectoryChild(e,t){const n=Je(this.segmentTable,t),r=this.getDirectoryIndex(e);if(r.childIdByNameId!=null){const s=r.childIdByNameId.get(n);if(s!==void 0){const l=this.nodes[s];if(l!=null&&!T(l))throw new Error(`Path collides with an existing file while creating directory "${t}"`);return s}}const o=this.nodes[e];if(o===void 0)throw new Error(`Unknown parent node ID: ${String(e)}`);const i=this.nodes.length;return this.nodes.push({depthAndFlags:_e(ze(o)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,i),$t(r,i),this.directories.set(i,Xt()),i}createDirectoryChild(e,t){const n=Je(this.segmentTable,t),r=this.getDirectoryIndex(e),o=this.nodes[e];if(o===void 0)throw new Error(`Unknown parent node ID: ${String(e)}`);const i=this.nodes.length;return this.nodes.push({depthAndFlags:_e(ze(o)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,i),$t(r,i),this.directories.set(i,Xt()),i}promoteDirectoryToExplicit(e,t){const n=this.nodes[e];if(n===void 0)throw new Error(`Unknown directory node ID: ${String(e)}`);if(!T(n))throw new Error(`Path is not a directory: "${t}"`);if(ae(n,1))throw new Error(`Duplicate path: "${t}"`);$n(n,1)}getDirectoryIndex(e){const t=this.directories.get(e);if(t!==void 0)return t;throw new Error(`Unknown directory child index for node ${String(e)}`)}buildPresortedFinish(e){const t=this.nodes,n=this.directories;n.set(0,ko());let r=-1,o=null;for(let i=1;i<t.length;i++){const s=t[i];if(s==null)continue;if(T(s)){const a=ko();n.set(i,a),r=i,o=a}let l;s.parentId===r?l=o:(l=n.get(s.parentId),r=s.parentId,o=l??null),l?.childIds.push(i)}if(!e)for(let i=t.length-1;i>=1;i--){const s=t[i];if(s==null)continue;const l=t[s.parentId];l!=null&&(l.subtreeNodeCount+=s.subtreeNodeCount,l.visibleSubtreeCount+=s.visibleSubtreeCount)}}buildDirectoryIndexes(){const e=this.nodes;for(let t=1;t<e.length;t++){const n=e[t];if(n==null)continue;T(n)&&this.directories.set(t,Xt());const r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),$t(r,t))}}computeSubtreeCounts(e){const t=this.nodes[e];if(t===void 0)throw new Error(`Unknown node ID: ${String(e)}`);if(!T(t))return t.subtreeNodeCount=1,t.visibleSubtreeCount=1,1;const n=this.getDirectoryIndex(e);let r=1;for(const o of n.childIds)r+=this.computeSubtreeCounts(o);return Ln(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function Kc(e,t="closed",n=null){const r=Gc(t);return{activeNodeCount:e.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r==="open",hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[e.rootId,{path:"",version:0}]]),pathCacheVersion:0,snapshot:e,transactionStack:[]}}function Wc(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function Gc(e){if(typeof e!="number")return e;if(!Number.isInteger(e)||e<0)throw new Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(e)}`);return e}function ts(e,t){return ae(t,2)||e.defaultExpansion==="open"?!0:e.defaultExpansion==="closed"?!1:ze(t)<=e.defaultExpansion}function be(e,t,n=e.snapshot.nodes[t]){return n==null||!T(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:ts(e,n)}function tn(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!T(r))return;const o=ts(e,r);if(n){if(o){e.collapsedDirectoryIds.delete(t),e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0;return}e.expandedDirectoryIds.add(t);return}if(o){e.collapsedDirectoryIds.add(t),e.hasCollapsedDirectoryOverrides=!0;return}e.expandedDirectoryIds.delete(t)}function ns(e,t){const n=e.directoryLoadInfoById.get(t);if(n!=null)return n;const r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:"loaded"};return e.directoryLoadInfoById.set(t,r),r}function nn(e,t){return e.directoryLoadInfoById.get(t)?.state??"loaded"}function Yc(e,t){const n=ns(e,t);if(n.state==="loading"&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:t,reused:!0};const r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state="loading",{attemptId:r,nodeId:t,reused:!1}}function Xc(e,t){const n=ns(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state="unloaded"}function Qc(e,t,n){const r=e.directoryLoadInfoById.get(t);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state="loaded",!0)}function Jc(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function Zc(e,t,n,r){const o=e.directoryLoadInfoById.get(t);return o==null||o.activeAttemptId!==n?!1:(o.activeAttemptId=null,o.errorMessage=r??null,o.state="error",!0)}function eu(e,t){e.directoryLoadInfoById.delete(t)}function tu(e,t,n){const r=n,o=e.listeners.get(t);return o!=null?o.add(r):e.listeners.set(t,new Set([r])),()=>{const i=e.listeners.get(t);i!=null&&(i.delete(r),i.size===0&&e.listeners.delete(t))}}function nu(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:"add",path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function ru(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:"remove",path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function ou(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:"move",projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function iu(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:"expand",path:e.path,projectionChanged:!0,visibleCountDelta:null}}function su(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:"collapse",path:e.path,projectionChanged:!0,visibleCountDelta:null}}function lu(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:"mark-directory-unloaded",path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function au(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:"begin-child-load",path:e.path,projectionChanged:e.projectionChanged,reused:e.reused,visibleCountDelta:null}}function cu(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:e.childEvents.some(t=>t.canonicalChanged),childEvents:e.childEvents,operation:"apply-child-patch",path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function uu(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:"complete-child-load",path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function du(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,errorMessage:e.errorMessage,operation:"fail-child-load",path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function hu(e){return{activeNodeCountAfter:e.activeNodeCountAfter,activeNodeCountBefore:e.activeNodeCountBefore,affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],cachedPathEntryCountAfter:e.cachedPathEntryCountAfter,cachedPathEntryCountBefore:e.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:e.idsPreserved,loadInfoEntryCountAfter:e.loadInfoEntryCountAfter,loadInfoEntryCountBefore:e.loadInfoEntryCountBefore,mode:e.mode,operation:"cleanup",projectionChanged:e.projectionChanged,reclaimedCachedPathEntryCount:e.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:e.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:e.reclaimedNodeSlotCount,reclaimedSegmentCount:e.reclaimedSegmentCount,segmentCountAfter:e.segmentCountAfter,segmentCountBefore:e.segmentCountBefore,totalNodeSlotCountAfter:e.totalNodeSlotCountAfter,totalNodeSlotCountBefore:e.totalNodeSlotCountBefore,visibleCountDelta:null}}function we(e,t,n){return{...n,visibleCountDelta:gr(e)-t}}function fu(e,t){const n=gr(e),r=Wc();e.transactionStack.push(r);try{t()}catch(o){throw To(e,r,!1),o}To(e,r,!0,gr(e)-n)}function Ae(e,t){const n=e.instrumentation;if(n==null){Mo(e,t);return}P(n,"store.events.record",()=>Mo(e,t))}function Mo(e,t){const n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){mr(e,t);return}n.events.push(t),gu(n,t)}function To(e,t,n,r=null){if(e.transactionStack.pop()!==t)throw new Error("Transaction stack underflow");if(!n)return;const o=e.transactionStack[e.transactionStack.length-1]??null;if(o!=null){const l=e.instrumentation;l==null?No(o,t):P(l,"store.events.batch.merge",()=>No(o,t));return}const i=pu(t,r),s=e.instrumentation;if(s==null){mr(e,i);return}P(s,"store.events.batch.commit",()=>mr(e,i))}function pu(e,t){return{affectedAncestorIds:[...e.affectedAncestorIds],affectedNodeIds:[...e.affectedNodeIds],canonicalChanged:e.events.some(n=>n.canonicalChanged),events:[...e.events],operation:"batch",projectionChanged:e.events.some(n=>n.projectionChanged),visibleCountDelta:t}}function mu(e,t){for(const n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(const n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function No(e,t){for(const n of t.events)e.events.push(n);mu(e,t)}function gu(e,t){for(const n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(const n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function mr(e,t){const n=e.instrumentation;if(n==null){Ao(e,t);return}P(n,"store.events.emit",()=>Ao(e,t))}function Ao(e,t){e.listeners.get(t.operation)?.forEach(n=>n(t)),e.listeners.get("*")?.forEach(n=>n(t))}function gr(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function kt(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;const n=e.snapshot.nodes[t];if(n==null||!T(n)||ae(n,2))return null;const r=e.snapshot.directories.get(t);if(r==null||r.childIds.length!==1)return null;const o=r.childIds[0];if(o==null)return null;const i=e.snapshot.nodes[o];return i==null||!T(i)?null:o}function ct(e,t){let n=t;for(;;){const r=kt(e,n);if(r==null)return n;n=r}}function Bn(e,t){const n=[t];let r=t;for(;;){const o=kt(e,r);if(o==null)return n;n.push(o),r=o}}function rs(e,t){const n=t==null?e.snapshot.rootId:Ee(e,t);return n==null?[]:yu(e,n)}function Ro(e,t){const n=Jt(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),o=Ze(e,Pu(e,r)),{createdNodeIds:i,directoryId:s}=bu(e,r),l=new Set(i);let a=s;if(n.isDirectory){const h=D(e,s);if(ae(h,1))throw new Error(`Path already exists: "${t}"`);$n(h,1),e.pathCacheByNodeId.set(s,{path:t,version:e.pathCacheVersion}),l.add(s)}else a=xu(e,s,n.basename),l.add(a);ut(e,s);const d=Ze(e,s);return nu({affectedAncestorIds:Re(e,a),affectedNodeIds:[...l],path:t,projectionChanged:ss(o,d)})}function Vo(e,t,n){const r=Ee(e,t);if(r==null)throw new Error(`Path does not exist: "${t}"`);const o=D(e,r);if(ae(o,2))throw new Error("The root node cannot be removed");if(T(o)&&G(e,r).childIds.length>0&&n.recursive!==!0)throw new Error(`Cannot remove a non-empty directory without recursive: "${t}"`);const i=o.parentId,s=Ze(e,i),l=is(e,r);Fr(e,i,r,o.nameId),Br(e,i),ut(e,i);const a=Ze(e,i);return ru({affectedAncestorIds:Re(e,i),affectedNodeIds:l,path:t,projectionChanged:ss(s,a),recursive:n.recursive===!0})}function Lo(e,t,n,r){const o=Ee(e,t);if(o==null)throw new Error(`Source path does not exist: "${t}"`);const i=D(e,o);if(ae(i,2))throw new Error("The root node cannot be moved");const s=r.collision??"error",l=_u(e,o,n),a=Ze(e,i.parentId),d=Ze(e,l.parentId),h=He(e.snapshot.segmentTable,i.nameId),f=Je(e.snapshot.segmentTable,l.basename);if(l.parentId===i.parentId&&h===l.basename)return null;if(T(i)&&Du(e,o,l.parentId))throw new Error("Cannot move a directory into one of its descendants");const c=dt(e.snapshot.nodes,G(e,l.parentId)).get(f),m=l.existingNodeId??c??null;if(m!=null&&m!==o&&ku(e,m,s,jn(i))==="skip")return null;const p=i.parentId;Fr(e,p,o,i.nameId),i.parentId=l.parentId,i.nameId=f,e.pathCacheByNodeId.delete(o),as(e,o),Lr(e,l.parentId,o),Br(e,p),e.pathCacheVersion++,ut(e,p),l.parentId!==p&&ut(e,l.parentId);const g=Ze(e,p),v=Ze(e,l.parentId);return ou({affectedAncestorIds:[...new Set([...Re(e,p),...Re(e,l.parentId)])],affectedNodeIds:[o],from:t,projectionChanged:ls([a,d],[g,v]),to:W(e,o)})}function vu(e,t){const n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function Fo(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function W(e,t){const n=D(e,t),r=vu(e,t);if(r!=null)return r;if(ae(n,2))return Fo(e,t,"");const o=W(e,n.parentId),i=He(e.snapshot.segmentTable,n.nameId),s=o.length===0?i:`${o}${i}`;return Fo(e,t,T(n)?`${s}/`:s)}function ut(e,t){const n=e.instrumentation;if(n==null){zo(e,t);return}P(n,"store.recomputeCountsUpwardFrom",()=>zo(e,t))}function Vr(e,t){const n=[[t,0]],{nodes:r,directories:o}=e.snapshot;for(;n.length>0;){const i=n[n.length-1],s=i[0],l=r[s];if(l==null||!T(l)){vr(e,s,l,!0),n.pop();continue}const a=o.get(s);if(a==null||i[1]>=a.childIds.length){vr(e,s,l,!0),n.pop();continue}const d=a.childIds[i[1]++];n.push([d,0])}}function Re(e,t){const n=[];let r=t;for(;r!=null;){const o=D(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=o.parentId}return n}function Ee(e,t){if(t.length===0)return e.snapshot.rootId;const n=pr(t);return os(e,n.segments,n.requiresDirectory)}function os(e,t,n){let r=e.snapshot.rootId;for(const i of t){const s=e.snapshot.segmentTable.idByValue.get(i);if(s===void 0)return null;const l=G(e,r),a=dt(e.snapshot.nodes,l).get(s);if(a===void 0)return null;r=a}const o=D(e,r);return n&&!T(o)?null:r}function G(e,t){const n=e.snapshot.directories.get(t);if(n===void 0)throw new Error(`Unknown directory child index for node ${String(t)}`);return n}function D(e,t){const n=e.snapshot.nodes[t];if(n===void 0||ae(n,4))throw new Error(`Unknown node ID: ${String(t)}`);return n}function yu(e,t){const n=e.snapshot.nodes[t];if(n===void 0||ae(n,4))return[];if(!T(n))return[W(e,t)];if(G(e,t).childIds.length===0)return ae(n,1)&&!ae(n,2)?[W(e,t)]:[];const r=[],o=[{childIndex:0,nodeId:t}];for(;o.length>0;){const i=o[o.length-1];if(i==null)break;const s=e.snapshot.nodes[i.nodeId];if(s===void 0||ae(s,4)){o.pop();continue}if(!T(s)){r.push(W(e,i.nodeId)),o.pop();continue}const l=G(e,i.nodeId);if(l.childIds.length===0){ae(s,1)&&!ae(s,2)&&r.push(W(e,i.nodeId)),o.pop();continue}const a=l.childIds[i.childIndex];if(a==null){o.pop();continue}i.childIndex++,o.push({childIndex:0,nodeId:a})}return r}function bu(e,t){const n=[];let r=e.snapshot.rootId;for(const o of t){const i=Je(e.snapshot.segmentTable,o),s=G(e,r),l=dt(e.snapshot.nodes,s).get(i);if(l!==void 0){if(!T(D(e,l)))throw new Error(`Cannot create a directory that collides with an existing file: "${o}"`);r=l;continue}r=Iu(e,r,i),n.push(r)}return{createdNodeIds:n,directoryId:r}}function Iu(e,t,n){const r=D(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:_e(ze(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(o,Xt()),Lr(e,t,o),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(o),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,o}function xu(e,t,n){const r=Je(e.snapshot.segmentTable,n),o=G(e,t);if(dt(e.snapshot.nodes,o).has(r))throw new Error(`Path already exists: "${Mu(e,t,n)}"`);const i=D(e,t),s=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:_e(ze(i)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),Lr(e,t,s),e.activeNodeCount++,s}function wu(e,t,n){let r=0,o=t.childIds.length;for(;r<o;){const i=r+o>>>1,s=t.childIds[i];if(s==null){o=i;continue}Su(e,n,s)<0?o=i:r=i+1}return r}function Lr(e,t,n){const r=G(e,t),o=D(e,n);dt(e.snapshot.nodes,r).set(o.nameId,n),Dr(r,n,o.subtreeNodeCount,o.visibleSubtreeCount);const i=wu(e,r,n);r.childIds.splice(i,0,n),ji(r,i),wt(e.snapshot.nodes,r)}function Fr(e,t,n,r){const o=G(e,t),i=On(o),s=i.get(n)??-1;dt(e.snapshot.nodes,o).delete(r),i.delete(n);const l=e.snapshot.nodes[n];l!=null&&Dr(o,n,-l.subtreeNodeCount,-l.visibleSubtreeCount),s>=0&&(o.childIds.splice(s,1),ji(o,s),wt(e.snapshot.nodes,o))}function Su(e,t,n){const r=e.snapshot.options.sort;return r==="default"?Cu(e,t,n):r(Bo(e,t),Bo(e,n))}function Cu(e,t,n){const r=D(e,t),o=D(e,n),i=T(r);if(i!==T(o))return i?-1:1;const s=Nr(fr(e.snapshot.segmentTable,r.nameId),fr(e.snapshot.segmentTable,o.nameId));if(s!==0)return s;const l=He(e.snapshot.segmentTable,r.nameId),a=He(e.snapshot.segmentTable,o.nameId);return l!==a?l<a?-1:1:t<n?-1:1}function Bo(e,t){const n=D(e,t),r=W(e,t),o=T(n),i=o?r.slice(0,-1):r;return{basename:He(e.snapshot.segmentTable,n.nameId),depth:ze(n),isDirectory:o,path:r,segments:i.length===0?[]:i.split("/")}}function _u(e,t,n){const r=D(e,t),o=Ee(e,n);if(o!=null){const d=D(e,o);if(T(d))return{basename:He(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:o};const h=pr(n).segments;return{basename:h[h.length-1]??"",existingNodeId:o,parentId:d.parentId}}const i=pr(n),s=i.segments[i.segments.length-1]??"",l=i.segments.slice(0,-1),a=l.length===0?e.snapshot.rootId:os(e,l,!0);if(a==null)throw new Error(`Destination parent does not exist: "${n}"`);return{basename:s,existingNodeId:null,parentId:a}}function ku(e,t,n,r){if(n==="skip")return"skip";if(n==="error")throw new Error(`Destination already exists: "${W(e,t)}"`);const o=D(e,t);if(jn(o)!==r)throw new Error("replace collision requires the same source and destination kinds");if(T(o)&&G(e,t).childIds.length>0)throw new Error("replace collision does not support non-empty directories");const i=o.parentId,s=o.nameId;return is(e,t),Fr(e,i,t,s),Br(e,i),ut(e,i),"handled"}function is(e,t){const n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){const o=r.pop();if(o==null)break;const i=D(e,o.nodeId);if(o.visitedChildren||!T(i)){T(i)&&e.snapshot.directories.delete(o.nodeId),$n(i,4),e.pathCacheByNodeId.delete(o.nodeId),e.collapsedDirectoryIds.delete(o.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(o.nodeId),eu(e,o.nodeId),e.activeNodeCount--,n.push(o.nodeId);continue}r.push({nodeId:o.nodeId,visitedChildren:!0});const s=G(e,o.nodeId);for(let l=s.childIds.length-1;l>=0;l--){const a=s.childIds[l];a!=null&&r.push({nodeId:a,visitedChildren:!1})}}return n}function Br(e,t){let n=t;for(;n!=null;){const r=D(e,n);if(!T(r)||ae(r,2)||G(e,n).childIds.length>0)return;$n(r,1),n=r.parentId===n?null:r.parentId}}function Pu(e,t){let n=e.snapshot.rootId;for(const r of t){const o=e.snapshot.segmentTable.idByValue.get(r);if(o==null)break;const i=dt(e.snapshot.nodes,G(e,n)).get(o);if(i==null||!T(D(e,i)))break;n=i}return n}function Ze(e,t){const n=Eu(e,t);if(n==null)return null;const r=ct(e,n),o=D(e,r),i=n===r?null:Bn(e,n).map(s=>W(e,s));return JSON.stringify({flattenedSegmentPaths:i,hasChildren:G(e,r).childIds.length>0,path:W(e,r),terminalKind:jn(o)})}function ss(e,t){return ls([e],[t])}function ls(e,t){for(let n=0;n<e.length;n+=1){const r=e[n],o=t[n];if(r==null||o==null||r!==o)return!0}return!1}function Eu(e,t){let n=t;for(;n!=null;){const r=D(e,n);if(!T(r)||ae(r,2))return null;if(!be(e,n,r))return n;n=r.parentId}return null}function as(e,t){const n=D(e,t);if(Ec(n,(t===e.snapshot.rootId?-1:ze(D(e,n.parentId)))+1),!T(n))return;const r=G(e,t);for(const o of r.childIds)as(e,o)}function Du(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;const o=D(e,r);if(r===e.snapshot.rootId)return!1;r=o.parentId}return!1}function vr(e,t,n=D(e,t),r=!1){const o=e.instrumentation;if(o==null){Ho(e,t,n,r);return}P(o,"store.recomputeNodeCounts",()=>Ho(e,t,n,r))}function zo(e,t){let n=t;for(;n!=null;){const r=D(e,n),o=r.subtreeNodeCount,i=r.visibleSubtreeCount;if(vr(e,n,r),n===e.snapshot.rootId)return;const s=r.subtreeNodeCount-o,l=r.visibleSubtreeCount-i,a=r.parentId;(s!==0||l!==0)&&Dr(G(e,a),n,s,l),n=a}}function Ho(e,t,n,r){if(!T(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}const o=G(e,t);if(r){const l=e.instrumentation;l==null?Ln(e.snapshot.nodes,o):P(l,"store.recomputeNodeCounts.rebuildChildAggregates",()=>Ln(e.snapshot.nodes,o))}const i=1+o.totalChildSubtreeNodeCount,s=o.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=i,ae(n,2)){n.visibleSubtreeCount=s;return}n.visibleSubtreeCount=kt(e,t)!=null?s:be(e,t,n)?1+s:1}function Mu(e,t,n){const r=W(e,t);return r.length===0?n:`${r}${n}`}function St(e){return e!=null&&!ae(e,4)}function zn(e,t){const n=e.snapshot.nodes[t];return!St(n)||!T(n)||ae(n,2)?null:n}function Tu(e){let t=0;for(const[n,r]of e.pathCacheByNodeId)r.version===e.pathCacheVersion&&St(e.snapshot.nodes[n])&&(t+=1);return t}function Nu(e){return Math.max(0,e.valueById.length-1)}function qo(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:Tu(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:Nu(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function Au(e,t,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:t,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:e,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function cs(e){const t=[],n=[];for(const r of e.collapsedDirectoryIds)zn(e,r)!=null&&t.push(W(e,r));for(const r of e.expandedDirectoryIds)zn(e,r)!=null&&n.push(W(e,r));return{collapsedPaths:t,expandedPaths:n}}function us(e){const t=[];for(const[n,r]of e.directoryLoadInfoById)zn(e,n)==null||nn(e,n)==="loaded"||t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:W(e,n)});return t}function ds(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(const n of t.expandedPaths){const r=Ee(e,n);r!=null&&tn(e,r,!0,D(e,r))}for(const n of t.collapsedPaths){const r=Ee(e,n);r!=null&&tn(e,r,!1,D(e,r))}}function hs(e,t){e.directoryLoadInfoById.clear();for(const n of t){const r=Ee(e,n.path);r!=null&&zn(e,r)!=null&&e.directoryLoadInfoById.set(r,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function Ru(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:"",version:e.pathCacheVersion})}function Vu(e){const t=e.snapshot.segmentTable,n=Qi();for(const r of e.snapshot.nodes)if(St(r)){if(ae(r,2)){r.nameId=0;continue}r.nameId=Je(n,He(t,r.nameId))}e.snapshot.segmentTable=n}function Lu(e){for(const[t,n]of e.snapshot.directories){const r=e.snapshot.nodes[t];if(!St(r)||!T(r)){e.snapshot.directories.delete(t);continue}const o=n.childIds.filter(i=>{const s=e.snapshot.nodes[i];return St(s)&&s.parentId===t});n.childIds=o,n.childIdByNameId=new Map(o.map(i=>[D(e,i).nameId,i])),n.childPositionById=new Map(o.map((i,s)=>[i,s])),Ln(e.snapshot.nodes,n)}}function Fu(e){let t=e.snapshot.nodes.length-1;for(;t>e.snapshot.rootId;){const n=e.snapshot.nodes[t];if(St(n))break;t-=1}e.snapshot.nodes.length=t+1}function Bu(e){const t=cs(e),n=us(e);P(e.instrumentation,"store.cleanup.stable.clearPathCaches",()=>Ru(e)),P(e.instrumentation,"store.cleanup.stable.rebuildSegmentTable",()=>Vu(e)),P(e.instrumentation,"store.cleanup.stable.rebuildDirectoryIndexes",()=>Lu(e)),P(e.instrumentation,"store.cleanup.stable.trimTrailingRemovedNodeSlots",()=>Fu(e)),P(e.instrumentation,"store.cleanup.stable.restoreExpansionOverrides",()=>ds(e,t)),P(e.instrumentation,"store.cleanup.stable.restoreDirectoryLoadInfos",()=>hs(e,n)),P(e.instrumentation,"store.cleanup.stable.recomputeCounts",()=>Vr(e,e.snapshot.rootId))}function zu(e){const t=cs(e),n=us(e),r=P(e.instrumentation,"store.cleanup.aggressive.listPaths",()=>rs(e)),o=Dc({...e.snapshot.options},e.instrumentation),i=P(e.instrumentation,"store.cleanup.aggressive.rebuildSnapshot",()=>{const s=new es(o);return s.appendPaths(r),s.finish()});e.snapshot=i,e.activeNodeCount=i.nodes.length-1,e.pathCacheByNodeId=new Map([[i.rootId,{path:"",version:0}]]),e.pathCacheVersion=0,P(e.instrumentation,"store.cleanup.aggressive.restoreExpansionOverrides",()=>ds(e,t)),P(e.instrumentation,"store.cleanup.aggressive.restoreDirectoryLoadInfos",()=>hs(e,n)),P(e.instrumentation,"store.cleanup.aggressive.recomputeCounts",()=>Vr(e,e.snapshot.rootId))}function Hu(e){for(const t of e.directoryLoadInfoById.values())if(t.state==="loading"&&t.activeAttemptId!=null)return!0;return!1}function qu(e,t){const n=qo(e);t==="stable"?P(e.instrumentation,"store.cleanup.stable",()=>Bu(e)):P(e.instrumentation,"store.cleanup.aggressive",()=>zu(e));const r=qo(e);return Au(t,t==="stable",n,r)}const Ou=64;function ju(e,t){const n=t+2;if(n<=e.length)return e;let r=e.length;for(;r<n;)r*=2;const o=new Int32Array(r);return o.fill(-1),o.set(e),o}function me(e){return D(e,e.snapshot.rootId).visibleSubtreeCount}function fs(e,t,n,r){const o=D(e,t.terminalNodeId),i=Math.max(1,o.visibleSubtreeCount);return Math.min(r-1,n+i-1)}function $u(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:rn(e,t.cursor),setSize:t.setSize,subtreeEndIndex:fs(e,t.cursor,t.index,n)}}function ps(e,t,n,r,o,i){const s=G(e,t),{childIndex:l,childVisibleIndex:a,localVisibleIndex:d}=hr(e.snapshot.nodes,s,n),h=s.childIds[l];if(h==null)throw new Error(`Visible index ${String(n)} is out of range`);return Uu(e,h,d,r+a,o+1,l,s.childIds.length,i)}function Uu(e,t,n,r,o,i,s,l){if(!T(D(e,t))){if(n===0)return{ancestors:l,cursor:{headNodeId:t,terminalNodeId:t,visibleDepth:o},index:r,posInSet:i,setSize:s};throw new Error(`Visible index ${String(n)} is out of range for file`)}const a=vs(e,t,o);if(n===0)return{ancestors:l,cursor:a,index:r,posInSet:i,setSize:s};const d=D(e,a.terminalNodeId);if(!T(d)||!be(e,a.terminalNodeId,d))throw new Error(`Visible index ${String(n)} is out of range for collapsed directory`);return ps(e,a.terminalNodeId,n-1,r+1,a.visibleDepth,[...l,{cursor:a,index:r,posInSet:i,setSize:s}])}function Ku(e,t){const n=me(e);if(t<0||t>=n)return null;const r=ps(e,e.snapshot.rootId,t,0,-1,[]),o=r.ancestors.map(s=>W(e,s.cursor.terminalNodeId));let i=null;return{ancestorPaths:o,get ancestorRows(){if(i!=null)return i;const s=[],l=[];for(const a of r.ancestors){const d=$u(e,a,n,[...l]);s.push(d),l.push(d.row.path)}return i=s,i},index:r.index,posInSet:r.posInSet,row:rn(e,r.cursor),setSize:r.setSize,subtreeEndIndex:fs(e,r.cursor,r.index,n)}}function Wu(e,t,n){const r=e.instrumentation,o=me(e);if(o<=0||n<t)return[];const i=Math.max(0,Math.min(t,o-1)),s=Math.max(i,Math.min(n,o-1));if(r==null){if(i===0)return ed(e,s+1);const f=[];let c=Oo(e,i);for(let m=i;m<=s&&c!=null;m++){const p=rn(e,c);f.push(p),c=jo(e,c)}return f}const l=[];let a=0,d=0,h=P(r,"store.getVisibleSlice.selectFirstRow",()=>Oo(e,i));for(let f=i;f<=s&&h!=null;f++){const c=P(r,"store.getVisibleSlice.materializeRow",()=>rn(e,h));l.push(c),c.isFlattened&&(a++,d+=c.flattenedSegments?.length??0),h=P(r,"store.getVisibleSlice.advanceCursor",()=>jo(e,h))}return En(r,"workload.visibleRowsRead",l.length),En(r,"workload.flattenedRowsRead",a),En(r,"workload.flattenedSegmentsRead",d),l}function ms(e,t=me(e)){const n=e.instrumentation;return n==null?$o(e,t):P(n,"store.getVisibleTreeProjection",()=>$o(e,t))}function Gu(e){return Zu(ms(e))}function Yu(e,t){const n=Ee(e,t);if(n==null||n===e.snapshot.rootId||T(D(e,n))&&ct(e,n)!==n)return null;let r=0,o=n;const{nodes:i,rootId:s}=e.snapshot;for(;o!==s;){const l=D(e,o).parentId,a=G(e,l),d=On(a).get(o);if(d==null)throw new Error(`Child ${String(o)} was not found in its parent index`);if(r+=_c(i,a,d),l!==s){const h=D(e,l),f=kt(e,l);if(!be(e,l,h)&&f!==o)return null;ct(e,l)===l&&(r+=1)}o=l}return r}function Xu(e,t){const n=Ee(e,t);if(n==null)throw new Error(`Path does not exist: "${t}"`);const r=D(e,n);if(!T(r))throw new Error(`Path is not a directory: "${t}"`);return be(e,n,r)?null:(tn(e,n,!0,r),ut(e,n),iu({affectedAncestorIds:Re(e,n),affectedNodeIds:[n],path:t}))}function Qu(e,t){const n=Ee(e,t);if(n==null)throw new Error(`Path does not exist: "${t}"`);const r=D(e,n);if(!T(r))throw new Error(`Path is not a directory: "${t}"`);return be(e,n,r)?(tn(e,n,!1,r),ut(e,n),su({affectedAncestorIds:Re(e,n),affectedNodeIds:[n],path:t})):null}function Oo(e,t){return t<0||t>=me(e)?null:gs(e,e.snapshot.rootId,t,-1)}function gs(e,t,n,r){const o=G(e,t),i=e.instrumentation,{childIndex:s,localVisibleIndex:l}=i==null?hr(e.snapshot.nodes,o,n):P(i,"store.getVisibleSlice.selectChildIndex",()=>hr(e.snapshot.nodes,o,n)),a=o.childIds[s];if(a!=null)return yr(e,a,l,r+1);throw new Error(`Visible index ${String(n)} is out of range`)}function yr(e,t,n,r){if(!T(D(e,t))){if(n===0)return{headNodeId:t,terminalNodeId:t,visibleDepth:r};throw new Error(`Visible index ${String(n)} is out of range for file`)}const o=vs(e,t,r);if(n===0)return o;const i=D(e,o.terminalNodeId);if(!T(i)||!be(e,o.terminalNodeId,i))throw new Error(`Visible index ${String(n)} is out of range for collapsed directory`);return gs(e,o.terminalNodeId,n-1,o.visibleDepth)}function vs(e,t,n){return T(D(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:ct(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:P(e.instrumentation,"store.getVisibleSlice.flatten.resolveTerminalDirectory",()=>ct(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function Ju(e,t){const n=D(e,t);if(!T(n))return!0;const r=n.parentId;return r===e.snapshot.rootId?!0:kt(e,r)!==t}function jo(e,t){const n=D(e,t.terminalNodeId);if(T(n)){const i=G(e,t.terminalNodeId);if(be(e,t.terminalNodeId,n)&&i.childIds.length>0){const s=i.childIds[0];return s==null?null:yr(e,s,0,t.visibleDepth+1)}}let r=t.terminalNodeId,o=t.visibleDepth;for(;;){const i=D(e,r);if(r===e.snapshot.rootId)return null;const s=i.parentId,l=G(e,s),a=On(l).get(r)??-1;if(a<0)throw new Error(`Child ${String(r)} was not found in its parent index`);const d=l.childIds[a+1]??null;if(d!=null)return yr(e,d,0,o);Ju(e,r)&&o--,r=s}}function Zu(e){const t=e.paths.length,n=new Array(t);for(let r=0;r<t;r+=1){const o=e.getParentIndex(r);n[r]={index:r,parentPath:o>=0?e.paths[o]??null:null,path:e.paths[r]??"",posInSet:e.posInSetByIndex[r]??0,setSize:e.setSizeByIndex[r]??0}}return{getParentIndex:e.getParentIndex,rows:n,get visibleIndexByPath(){return e.visibleIndexByPath}}}function $o(e,t){const n=new Array(t),r=new Int32Array(t),o=new Int32Array(t),i=new Int32Array(t);let s=new Int32Array(Ou);s.fill(-1);let l=0;const{nodes:a,directories:d,segmentTable:h}=e.snapshot,f=[[d.get(e.snapshot.rootId),0,-1,""]],c=e.snapshot.options.flattenEmptyDirectories,m=e.pathCacheByNodeId,p=e.pathCacheVersion,g=h.valueById;for(;f.length>0&&l<t;){const I=f[f.length-1],S=I[0];if(I[1]>=S.childIds.length){f.pop();continue}const E=I[1],V=S.childIds[I[1]++],de=a[V],Y=I[2]+1,fe=I[3];s=ju(s,Y);let Q,te=V;if(T(de))te=c?ct(e,V):V,Q=te===V?`${fe}${g[de.nameId]}/`:W(e,te);else{const ne=m.get(V);Q=ne!=null&&ne.version===p?ne.path:`${fe}${g[de.nameId]}`}r[l]=s[Y],n[l]=Q,o[l]=E,i[l]=S.childIds.length,s[Y+1]=l,l+=1;const ce=a[te];ce!=null&&T(ce)&&be(e,te,ce)&&f.push([d.get(te),0,Y,Q])}l<t&&(n.length=l);const v=r.subarray(0,l),w=o.subarray(0,l),x=i.subarray(0,l);let b=null;return{getParentIndex(I){return I<0||I>=l?-1:v[I]??-1},paths:n,posInSetByIndex:w,setSizeByIndex:x,get visibleIndexByPath(){if(b==null){b=new Map;for(let I=0;I<l;I+=1)b.set(n[I]??"",I)}return b}}}function ed(e,t){const n=new Array(t);let r=0;const{nodes:o,directories:i,segmentTable:s}=e.snapshot,l=[[i.get(e.snapshot.rootId),0,-1]],a=s.valueById,d=e.snapshot.options.flattenEmptyDirectories,h=e.pathCacheByNodeId,f=e.pathCacheVersion;for(;l.length>0&&r<t;){const c=l[l.length-1],m=c[0];if(c[1]>=m.childIds.length){l.pop();continue}const p=m.childIds[c[1]++],g=o[p],v=c[2]+1;if(!T(g)){const I=h.get(p);n[r++]={depth:v,flattenedSegments:void 0,hasChildren:!1,id:p,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:"file",loadState:void 0,name:a[g.nameId],path:I!=null&&I.version===f?I.path:W(e,p)};continue}const w=d?ct(e,p):p,x={headNodeId:p,terminalNodeId:w,visibleDepth:v};n[r++]=rn(e,x);const b=o[w];b!=null&&T(b)&&be(e,w,b)&&l.push([i.get(w),0,v])}return r<t&&(n.length=r),n}function rn(e,t){const n=D(e,t.terminalNodeId),r=T(n)?td(e,t):null,o=W(e,t.terminalNodeId),i=He(e.snapshot.segmentTable,n.nameId),s=T(n)&&G(e,t.terminalNodeId).childIds.length>0,l=t.headNodeId!==t.terminalNodeId,a=e.instrumentation,d=l?a==null?Bn(e,t.headNodeId).map(h=>{const f=D(e,h);return{isTerminal:h===t.terminalNodeId,name:He(e.snapshot.segmentTable,f.nameId),nodeId:h,path:W(e,h)}}):P(a,"store.getVisibleSlice.flatten.collectSegments",()=>Bn(e,t.headNodeId).map(h=>{const f=D(e,h);return{isTerminal:h===t.terminalNodeId,name:He(e.snapshot.segmentTable,f.nameId),nodeId:h,path:W(e,h)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:d,hasChildren:s,id:t.terminalNodeId,isExpanded:T(n)&&be(e,t.terminalNodeId,n),isFlattened:l,isLoading:r==="loading",kind:T(n)?"directory":"file",loadState:r==null||r==="loaded"?void 0:r,name:i,path:o}}function td(e,t){if(t.headNodeId===t.terminalNodeId)return nn(e,t.terminalNodeId);const n=Bn(e,t.headNodeId);let r=!1,o=!1;for(const i of n){const s=nn(e,i);if(s==="loading")return"loading";if(s==="error"){o=!0;continue}s==="unloaded"&&(r=!0)}return o?"error":r?"unloaded":"loaded"}const Uo=8;function nd(e){const{nodes:t,directories:n,rootId:r,options:o}=e,i=t.length,s=new Int32Array(i),l=new Int32Array(i),a=new Int32Array(i),d=new Int32Array(i),h=new Int32Array(i),f=new Int32Array(i),c=new Int32Array(i);for(let v=0;v<i;v+=1){const w=t[v];w!=null&&(s[v]=w.parentId,l[v]=w.nameId,a[v]=w.depthAndFlags,d[v]=w.subtreeNodeCount,h[v]=w.visibleSubtreeCount)}let m=0;for(const v of n.values())m+=v.childIds.length;const p=new Int32Array(m);let g=0;for(const[v,w]of n){const x=w.childIds;f[v]=g,c[v]=x.length;for(let b=0;b<x.length;b+=1)p[g]=x[b],g+=1}return{nodeCount:i,rootId:r,flattenEmptyDirectories:o.flattenEmptyDirectories===!0,parentId:s,nameId:l,depthAndFlags:a,subtreeNodeCount:d,visibleSubtreeCount:h,childStart:f,childCount:c,childIdsFlat:p}}function rd(e){const{nodeCount:t,rootId:n,flattenEmptyDirectories:r,depthAndFlags:o,subtreeNodeCount:i,visibleSubtreeCount:s,childStart:l,childCount:a,childIdsFlat:d}=e;for(let p=t-1;p>=1;p-=1){if((o[p]&Uo)===0)continue;const g=l[p],v=a[p];let w=0,x=0;for(let I=0;I<v;I+=1){const S=d[g+I];w+=i[S],x+=s[S]}i[p]=1+w;let b;r&&v===1?b=(o[d[g]]&Uo)!==0?x:1+x:b=1+x,s[p]=b}const h=l[n],f=a[n];let c=0,m=0;for(let p=0;p<f;p+=1){const g=d[h+p];c+=i[g],m+=s[g]}i[n]=1+c,s[n]=m}function od(e){const{directories:t,nodes:n,options:r,rootId:o,presortedDirectoryNodeIds:i}=e.snapshot,s=r.flattenEmptyDirectories===!0,l=m=>{const p=n[m];if(p==null||!T(p))return;const g=t.get(m);if(g==null)throw new Error(`Unknown directory child index for node ${String(m)}`);const v=g.childIds,w=v.length;let x=0,b=0;for(let S=0;S<w;S++){const E=v[S];if(E==null)continue;const V=n[E];x+=V.subtreeNodeCount,b+=V.visibleSubtreeCount}g.totalChildSubtreeNodeCount=x,g.totalChildVisibleSubtreeCount=b,w>=128&&wt(n,g),p.subtreeNodeCount=1+x;let I;if(s&&w===1){const S=n[v[0]];I=S!=null&&T(S)?b:1+b}else I=1+b;p.visibleSubtreeCount=I};if(i!=null)for(let m=i.length-1;m>=0;m--)l(i[m]);else for(let m=n.length-1;m>=1;m--)l(m);const a=n[o],d=t.get(o);if(a==null||d==null)return;const h=d.childIds;let f=0,c=0;for(let m=0;m<h.length;m++){const p=h[m];if(p==null)continue;const g=n[p];f+=g.subtreeNodeCount,c+=g.visibleSubtreeCount}d.totalChildSubtreeNodeCount=f,d.totalChildVisibleSubtreeCount=c,wt(n,d),a.subtreeNodeCount=1+f,a.visibleSubtreeCount=c}function id(e){const{directories:t,nodes:n,rootId:r}=e.snapshot,o=nd(e.snapshot);rd(o);const i=o.subtreeNodeCount,s=o.visibleSubtreeCount;for(let l=0;l<n.length;l+=1){const a=n[l];a!=null&&(a.subtreeNodeCount=i[l],a.visibleSubtreeCount=s[l])}for(const[l,a]of t){const d=a.childIds,h=d.length;let f=0,c=0;for(let m=0;m<h;m++){const p=d[m];if(p==null)continue;const g=n[p];f+=g.subtreeNodeCount,c+=g.visibleSubtreeCount}a.totalChildSubtreeNodeCount=f,a.totalChildVisibleSubtreeCount=c,(l===r||h>=128)&&wt(n,a)}}function sd(e){return e.initialExpansion==="open"&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var ys=class bs{#e;constructor(t={}){const n=Tr(t),r=P(n,"store.builder.create",()=>new es(t));if(t.preparedInput!=null){const l=$c(t.preparedInput);l!=null?r.appendPresortedPaths(l,Uc(t.preparedInput)):r.appendPreparedPaths(jc(t.preparedInput),!1)}else{const l=t.paths??[];t.presorted===!0?r.appendPaths(l):r.appendPreparedPaths(P(n,"store.preparePathEntries",()=>Rr(l,t)))}const o=P(n,"store.builder.finish",()=>r.finish({skipSubtreeCountPass:!0})),i=P(n,"store.state.detectAllDirectoriesExpanded",()=>(t.initialExpansion??"closed")==="closed"&&r.didMatchAllInitialExpandedPaths());this.#e=P(n,"store.state.create",()=>Kc(o,i?"open":t.initialExpansion??"closed",n)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);const s=i?this.#e.snapshot.directories.size-1:P(n,"store.state.initializeExpandedPaths",()=>this.initializeExpandedPaths(t.initialExpandedPaths));i||sd(t)||(t.initialExpansion??"closed")==="closed"&&s===this.#e.snapshot.directories.size-1||(t.initialExpandedPaths?.length??0)>0&&P(n,"store.state.checkAllDirectoriesExpanded",()=>this.hasAllDirectoriesExpanded())?t.useSoaCountSweep===!0?P(n,"store.state.initializeOpenVisibleCountsViaSoa",()=>id(this.#e)):P(n,"store.state.initializeOpenVisibleCounts",()=>od(this.#e)):P(n,"store.state.recomputeCounts",()=>Vr(this.#e,this.#e.snapshot.rootId))}static preparePaths(t,n={}){return Hc(t,n)}static prepareInput(t,n={}){return qc(t,n)}static preparePresortedInput(t){return Oc(t)}list(t){return P(this.#e.instrumentation,"store.list",()=>rs(this.#e,t))}add(t){P(this.#e.instrumentation,"store.add",()=>{const n=me(this.#e);Ae(this.#e,we(this.#e,n,Ro(this.#e,t)))})}remove(t,n={}){P(this.#e.instrumentation,"store.remove",()=>{const r=me(this.#e);Ae(this.#e,we(this.#e,r,Vo(this.#e,t,n)))})}move(t,n,r={}){P(this.#e.instrumentation,"store.move",()=>{const o=me(this.#e),i=Lo(this.#e,t,n,r);i!=null&&Ae(this.#e,we(this.#e,o,i))})}batch(t){fu(this.#e,()=>{if(typeof t=="function"){t(this);return}for(const n of t)switch(n.type){case"add":this.add(n.path);break;case"remove":this.remove(n.path,{recursive:n.recursive});break;case"move":this.move(n.from,n.to,{collision:n.collision});break}})}getVisibleCount(){return P(this.#e.instrumentation,"store.getVisibleCount",()=>me(this.#e))}getVisibleSlice(t,n){return P(this.#e.instrumentation,"store.getVisibleSlice",()=>Wu(this.#e,t,n))}getVisibleRowContext(t){return P(this.#e.instrumentation,"store.getVisibleRowContext",()=>Ku(this.#e,t))}getVisibleTreeProjection(){return Gu(this.#e)}getVisibleTreeProjectionData(t){return ms(this.#e,t)}getVisibleIndex(t){return P(this.#e.instrumentation,"store.getVisibleIndex",()=>Yu(this.#e,t))}getPathInfo(t){return P(this.#e.instrumentation,"store.getPathInfo",()=>{const n=Ee(this.#e,t);if(n==null)return null;const r=D(this.#e,n);return{depth:ze(r),kind:T(r)?"directory":"file",path:W(this.#e,n)}})}isExpanded(t){return P(this.#e.instrumentation,"store.isExpanded",()=>{const n=this.requireDirectoryNodeId(t),r=D(this.#e,n);return be(this.#e,n,r)})}expand(t){P(this.#e.instrumentation,"store.expand",()=>{const n=me(this.#e),r=Xu(this.#e,t);r!=null&&Ae(this.#e,we(this.#e,n,r))})}collapse(t){P(this.#e.instrumentation,"store.collapse",()=>{const n=me(this.#e),r=Qu(this.#e,t);r!=null&&Ae(this.#e,we(this.#e,n,r))})}on(t,n){return tu(this.#e,t,n)}getDirectoryLoadState(t){const n=this.requireDirectoryNodeId(t);return nn(this.#e,n)}markDirectoryUnloaded(t){P(this.#e.instrumentation,"store.markDirectoryUnloaded",()=>{const n=this.requireDirectoryNodeId(t);if(G(this.#e,n).childIds.length>0)throw new Error(`Cannot mark a directory with known children as unloaded: "${t}"`);const r=me(this.#e);Xc(this.#e,n),Ae(this.#e,we(this.#e,r,lu({affectedAncestorIds:Re(this.#e,n),affectedNodeIds:[n],path:t,projectionChanged:this.isDirectoryProjectionVisible(n)})))})}beginChildLoad(t){return P(this.#e.instrumentation,"store.beginChildLoad",()=>{const n=this.requireDirectoryNodeId(t),r=me(this.#e),o=Yc(this.#e,n);return Ae(this.#e,we(this.#e,r,au({affectedAncestorIds:Re(this.#e,n),affectedNodeIds:[n],attemptId:o.attemptId,path:t,projectionChanged:this.isDirectoryProjectionVisible(n),reused:o.reused}))),o})}applyChildPatch(t,n){return P(this.#e.instrumentation,"store.applyChildPatch",()=>{const r=this.resolveActiveDirectoryNodeId(t.nodeId);if(r==null||nn(this.#e,r)!=="loading"||!Jc(this.#e,r,t.attemptId))return!1;const o=W(this.#e,r);this.validateChildPatch(o,n);const i=me(this.#e),s=[];for(const a of n.operations){ld(o,a);const d=me(this.#e);switch(a.type){case"add":s.push(we(this.#e,d,Ro(this.#e,a.path)));break;case"remove":s.push(we(this.#e,d,Vo(this.#e,a.path,{recursive:a.recursive})));break;case"move":{const h=Lo(this.#e,a.from,a.to,{collision:a.collision});h!=null&&s.push(we(this.#e,d,h));break}}}const l=s.some(a=>a.projectionChanged)||this.isDirectoryProjectionVisible(r);return Ae(this.#e,we(this.#e,i,cu({affectedAncestorIds:Re(this.#e,r),affectedNodeIds:[r],attemptId:t.attemptId,childEvents:s,path:W(this.#e,r),projectionChanged:l}))),!0})}completeChildLoad(t){return P(this.#e.instrumentation,"store.completeChildLoad",()=>{const n=this.resolveActiveDirectoryNodeId(t.nodeId);if(n==null)return!1;const r=me(this.#e),o=Qc(this.#e,n,t.attemptId);return Ae(this.#e,we(this.#e,r,uu({affectedAncestorIds:Re(this.#e,n),affectedNodeIds:[n],attemptId:t.attemptId,path:W(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!o}))),o})}failChildLoad(t,n){return P(this.#e.instrumentation,"store.failChildLoad",()=>{const r=this.resolveActiveDirectoryNodeId(t.nodeId);if(r==null)return!1;const o=me(this.#e),i=Zc(this.#e,r,t.attemptId,n);return Ae(this.#e,we(this.#e,o,du({affectedAncestorIds:Re(this.#e,r),affectedNodeIds:[r],attemptId:t.attemptId,errorMessage:n,path:W(this.#e,r),projectionChanged:this.isDirectoryProjectionVisible(r),stale:!i}))),i})}cleanup(t={}){return P(this.#e.instrumentation,"store.cleanup",()=>{if(this.#e.transactionStack.length>0)throw new Error("Cleanup cannot run during an open batch or transaction.");if(Hu(this.#e))throw new Error("Cleanup cannot run while directory loads are active.");const n=me(this.#e),r=qu(this.#e,t.mode??"stable");return Ae(this.#e,we(this.#e,n,hu({...r,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:r.idsPreserved===!1}))),r})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(t){if(t==null||t.length===0)return 0;let n=0;const r=[],o=[];let i=0,s=null;const l=this.#e.snapshot.segmentTable,a=l.valueById,d=this.#e.snapshot.nodes,h=new Map;for(const f of t){s!=null&&f<s&&(s=null,i=0,r.length=0,o.length=0);const c=f.length>0&&f.charCodeAt(f.length-1)===47?f.length-1:f.length;if(c===0){s=f,i=c,r.length=0,o.length=0;continue}let m=0,p=0;if(s!=null){const b=Math.min(c,i);let I=!0;for(let S=0;S<b;S+=1){const E=f.charCodeAt(S);if(E!==s.charCodeAt(S)){I=!1;break}E===47&&(m+=1,p=S+1)}I&&(b===i&&c>b&&f.charCodeAt(b)===47?(m+=1,p=b+1):b===c&&i>b&&s.charCodeAt(b)===47&&(m+=1,p=c+1)),m=Math.min(m,o.length)}let g=m===0?this.#e.snapshot.rootId:o[m-1]??this.#e.snapshot.rootId,v=m,w=!0,x=p;for(;x<=c;){const b=f.indexOf("/",x),I=b===-1||b>c?c:b,S=f.slice(x,I),E=G(this.#e,g).childIds,V=v===m?r[v]??0:0;let de=V,Y;const fe=h.get(S)??ln(S);h.set(S,fe);const Q=(te,ce)=>{for(de=te;de<ce;de+=1){const ne=E[de],De=d[ne],j=a[De.nameId];if(j===S)return Y=ne,!0;const se=Nr(fr(l,De.nameId),fe);if(se>0||se===0&&j>S)return!1}return!1};if(!Q(V,E.length)&&V>0&&Q(0,V),Y===void 0){w=!1;break}if(!T(D(this.#e,Y))){w=!1;break}if(r[v]=de,o[v]=Y,g=Y,v+=1,I===c)break;x=I+1}if(s=f,i=c,r.length=v,o.length=v,!w){s=null,i=0,r.length=0,o.length=0;continue}for(let b=m;b<v;b+=1){const I=o[b];if(I==null)continue;const S=D(this.#e,I);be(this.#e,I,S)||(tn(this.#e,I,!0,S),n+=1)}}return n}hasAllDirectoriesExpanded(){for(const t of this.#e.snapshot.directories.keys()){if(t===this.#e.snapshot.rootId)continue;const n=D(this.#e,t);if(!be(this.#e,t,n))return!1}return!0}requireDirectoryNodeId(t){const n=Ee(this.#e,t);if(n==null)throw new Error(`Path does not exist: "${t}"`);if(!T(D(this.#e,n)))throw new Error(`Path is not a directory: "${t}"`);return n}resolveActiveDirectoryNodeId(t){try{if(!T(D(this.#e,t)))throw new Error(`Node is not a directory: ${String(t)}`);return t}catch{return null}}isDirectoryProjectionVisible(t){let n=t;for(;n!==this.#e.snapshot.rootId;){const r=D(this.#e,n).parentId;if(r!==this.#e.snapshot.rootId){const o=D(this.#e,r),i=kt(this.#e,r);if(!be(this.#e,r,o)&&i!==n)return!1}n=r}return!0}validateChildPatch(t,n){new bs({paths:this.list(t),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function ld(e,t){switch(t.type){case"add":case"remove":if(!t.path.startsWith(e)||t.path===e)throw new Error(`Child patch operation must stay within ${e}: "${t.path}"`);break;case"move":if(!t.from.startsWith(e)||!t.to.startsWith(e)||t.from===e||t.to===e)throw new Error(`Child patch move must stay within ${e}: "${t.from}" -> "${t.to}"`);break}}const ad=e=>e.startsWith("f::")?e.slice(3):e;function cd(e){const t=e.lastIndexOf("/");return t<0?{parentPath:"",baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function ud(e,t){return e===""?t:`${e}/${t}`}function dd({files:e,path:t,isFolder:n,nextBasename:r}){const o=ad(t),i=r.trim();if(i.length===0)return{error:"Name cannot be empty."};if(i.includes("/"))return{error:'Name cannot include "/".'};const{parentPath:s,baseName:l}=cd(o);if(i===l)return{nextFiles:e,sourcePath:o,destinationPath:o,isFolder:n};const a=ud(s,i),d=new Array(e.length),h=new Set;if(!n){const p=`${a}/`;let g=!1;for(let v=0;v<e.length;v++){const w=e[v];if(w!==o&&w.startsWith(p))return{error:`"${a}" already exists.`};const x=w===o?a:w;if(h.has(x))return{error:`"${a}" already exists.`};h.add(x),d[v]=x,w===o&&(g=!0)}return g?{nextFiles:d,sourcePath:o,destinationPath:a,isFolder:n}:{error:"Could not find the selected file to rename."}}const f=`${o}/`,c=`${a}/`;let m=0;for(let p=0;p<e.length;p++){const g=e[p],v=g===o||g.startsWith(f);if(!v&&(g===a||g.startsWith(c)))return{error:`"${a}" already exists.`};const w=v?`${a}${g.slice(o.length)}`:g;if(h.has(w))return{error:`"${a}" already exists.`};h.add(w),d[p]=w,v&&m++}return m===0?{error:"Could not find the selected folder to rename."}:{nextFiles:d,sourcePath:o,destinationPath:a,isFolder:n}}function hd(e){return e.endsWith("/")}function fd(e){const t=e.endsWith("/")?e.slice(0,-1):e,n=t.lastIndexOf("/"),r=n<0?t:t.slice(n+1);return e.endsWith("/")?`${r}/`:r}function pd(e){const t=[],n=new Set;for(const o of e)n.has(o)||(n.add(o),t.push(o));const r=new Set;for(const o of t.toSorted((i,s)=>i.length!==s.length?i.length-s.length:i.localeCompare(s))){const i=(o.endsWith("/")?o.slice(0,-1):o).split("/");let s=!1;for(let l=0;l<i.length-1;l+=1){const a=`${i.slice(0,l+1).join("/")}/`;if(r.has(a)){s=!0;break}}s||r.add(o)}return t.filter(o=>r.has(o))}function md(e,t){return t.includes(e)?pd(t):[e]}function gd(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function Ko(e,t){return{draggedPaths:e,target:t}}function Wo(e,t){if(t.kind!=="directory"||t.directoryPath==null)return!1;for(const n of e)if(hd(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function vd(e,t){return t.kind==="root"||t.directoryPath==null?fd(e):t.directoryPath}function yd(e,t){const n=e.map(r=>{const o=vd(r,t);return o===r?null:{from:r,to:o,type:"move"}}).filter(r=>r!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?"move":"batch",target:t}}}function bd(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function Go(e,t,n){const{paths:r,preparedInput:o}=e;if(o==null){if(r==null)throw new Error("FileTree requires paths or preparedInput");return{paths:r,preparedInput:void 0}}const i=o.paths;if(r==null)return{paths:i,preparedInput:o};if(!bd(ys.preparePaths(r,n==null?{}:{sort:n}),i))throw new Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:i,preparedInput:o}}function Yo(e){return e.operation==="add"||e.operation==="remove"||e.operation==="move"||e.operation==="batch"}function Id(e,t,n){if(e===t)return n;const r=t.endsWith("/")?t:`${t}/`;return e.startsWith(r)?`${n.endsWith("/")?n:`${n}/`}${e.slice(r.length)}`:e}function xd(e,t){if(e===t)return!0;const n=t.endsWith("/")?t:`${t}/`;return e.startsWith(n)}function Qt(e,t,n=!1){if(e==null)return null;switch(t.operation){case"add":case"expand":case"collapse":case"mark-directory-unloaded":case"begin-child-load":case"apply-child-patch":case"complete-child-load":case"fail-child-load":case"cleanup":return e;case"remove":return xd(e,t.path)?n?e:null:e;case"move":return Id(e,t.from,t.to);case"batch":{let r=e;for(const o of t.events)if(r=Qt(r,o,n),r==null)return null;return r}}}function Dn(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function Is(e){switch(e.operation){case"add":return{...Dn(e),operation:"add",path:e.path};case"remove":return{...Dn(e),operation:"remove",path:e.path,recursive:e.recursive};case"move":return{...Dn(e),from:e.from,operation:"move",to:e.to}}}function wd(e){return{...Dn(e),events:e.events.filter(t=>t.operation==="add"||t.operation==="remove"||t.operation==="move").map(t=>Is(t)),operation:"batch"}}function Sd(e){switch(e.operation){case"add":case"remove":case"move":return Is(e);case"batch":return wd(e);default:return null}}function or(e,t){if(e.size!==t.length)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function Xe(e){const t=e.endsWith("/")?e.slice(0,-1):e;if(t.length===0)return[];const n=t.split("/");return n.slice(0,-1).map((r,o)=>`${n.slice(0,o+1).join("/")}/`)}function ir(e){return Xe(e).at(-1)??null}function Xo(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function Cn(e){return e.endsWith("/")}const Qo=e=>e.toLowerCase();function Cd(e){const t=e.endsWith("/")?e.slice(0,-1):e,n=t.lastIndexOf("/");return n<0?t:t.slice(n+1)}function Jo(e){return e.endsWith("/")?e.slice(0,-1):e}function Zo(e,t){return t&&!e.endsWith("/")?`${e}/`:e}const _d=e=>{const t=e.trim();return t.length===0?"":(t.includes("\\")?t.replaceAll("\\","/"):t).toLowerCase()},xs=Symbol("FILE_TREE_RENAME_VIEW"),kd=512,Pd=512;function Ed(e){return e==="top"||e==="center"?e:"nearest"}function Dd(e,t,n){if(e===0)return-1;if(n!=null){const r=t(n);if(r!=null)return r;const o=Xe(n);for(let i=o.length-1;i>=0;i-=1){const s=o[i];if(s==null)continue;const l=t(s);if(l!=null)return l}}return 0}function Md(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};const r=n??(o=>e.visibleIndexByPath.get(o)??null);return{focusedIndex:Dd(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var Td=class ws{static{Object.defineProperty(ws.prototype,xs,{configurable:!0,value(){return{cancel:()=>{this.#ke()},commit:()=>{this.#Pe()},getPath:()=>this.#s,getValue:()=>this.#g,isActive:()=>this.#s!=null,setValue:t=>{this.#Ee(t)}}},writable:!0})}#e;#t=new Set;#c=new Map;#u=null;#l=null;#z=new Map;#H=new Map;#v=-1;#r=null;#y=!1;#E=t=>-1;#b=new Map;#m=null;#h=null;#I=null;#x=null;#f=null;#q;#O;#R;#o=[];#j=new Int32Array(0);#$=new Int32Array(0);#J=void 0;#D=!1;#s=null;#g="";#M=!1;#_=new Set;#U=[];#K;#W=null;#a=null;#V=null;#N=null;#C=null;#L=null;#Z=null;#_e=0;#w=null;#i=new Set;#G=0;#n;#ne=0;#re=!1;#p=0;#Y;constructor(t){const{dragAndDrop:n,fileTreeSearchMode:r,initialSearchQuery:o,initialSelectedPaths:i,renaming:s,onSearchChange:l,paths:a,preparedInput:d,...h}=t,f=Go({paths:a,preparedInput:d},"constructor",h.sort);this.#e=h,n!=null&&n!==!1&&(this.#u=n===!0?{}:n),this.#D=s!=null&&s!==!1,s!=null&&s!==!1&&s!==!0&&(this.#J=s.canRename,this.#O=s.onError,this.#q=s.onRename),this.#R=l,this.#K=r??"hide-non-matches",this.#n=this.#ie(f.paths,f.preparedInput);const c=i?.map(p=>this.#A(p)).filter(p=>p!=null)??[],m=c.at(-1)??null;c.length>0&&(this.#i=new Set(c),this.#w=m,this.#G=1),this.#B(m,!1),o!=null&&this.#X(o,!1),this.#Y=this.#Se()}destroy(){this.#Y?.(),this.#Y=null,this.#c.clear(),this.#t.clear(),this.#b.clear(),this.#l=null,this.#le()}focusFirstItem(){this.#k().length>0&&this.#P(0)}focusLastItem(){this.#p<=0||(this.#T(),this.#P(this.#p-1))}focusNextItem(){this.#we(1)}focusParentItem(){if(this.#r==null)return;const t=ir(this.#r);if(t==null)return;const n=this.#F(t);n>=0&&this.#P(n)}focusPath(t){const n=this.#n.getPathInfo(t)?.path??null;if(n==null)return;this.#T();const r=this.#F(n);r>=0&&this.#P(r)}scrollToPath(t,n){const r=this.#n.getPathInfo(t)?.path??null;if(r==null)return;this.#T();const o=this.#Be(r);o<0||this.#ae(o)!=null&&(n?.focus!==!1&&this.#P(o,!1),this.#Z={id:this.#_e+=1,offset:Ed(n?.offset),visibleIndex:o},this.#d())}focusMountedPathFromInput(t){const n=this.#n.getPathInfo(t)?.path??null;if(n==null)return;const r=this.#F(n);r>=0&&this.#P(r)}focusNearestPath(t){const n=this.resolveNearestVisiblePath(t);if(n==null)return null;const r=this.#F(n);return r>=0?(this.#P(r),this.#k()[r]??n):null}focusPreviousItem(){this.#we(-1)}getFocusedIndex(){return this.#v}getFocusedItem(){return this.#r==null?null:this.#ce(this.#r)}getFocusedPath(){return this.#r}getScrollRequest(){return this.#Z}clearScrollRequest(t){this.#Z?.id===t&&(this.#Z=null)}resolveNearestVisiblePath(t){const n=this.#k();if(this.#p===0)return null;if(t==null)return this.#r??n[0]??null;const r=this.#n.getPathInfo(t)?.path??t,o=this.#F(r);if(o>=0)return n[o]??r;const i=this.#De(r);return i??this.#r??n[0]??null}getSelectedPaths(){return[...this.#i]}getSelectionVersion(){return this.#G}getVisibleCount(){return this.#p}getVisibleRows(t,n){if(n<t||this.#p===0)return[];const r=Math.max(0,t),o=Math.min(this.#p-1,n);if(o<r)return[];const i=o-r+1;if(this.#C==null&&!this.#y&&o>=this.#o.length&&i<=Pd){const s=[];for(let l=r;l<=o;l+=1){const a=this.#n.getVisibleRowContext(l);if(a==null)break;s.push(this.#ue(a))}return s}if(!this.#y&&o>=this.#o.length&&this.#T(),this.#C!=null){const s=Array.from({length:o-r+1},(h,f)=>this.#ve(r+f)),l=new Map;let a=s[0]??-1,d=a;for(let h=1;h<=s.length;h+=1){const f=s[h];if(f!=null&&f===d+1){d=f;continue}if(a>=0&&this.#n.getVisibleSlice(a,d).forEach((c,m)=>{l.set(a+m,c)}),f==null){a=-1,d=-1;continue}a=f,d=f}return Array.from({length:o-r+1},(h,f)=>{const c=r+f,m=this.#ve(c),p=l.get(m),g=this.#o[m];if(p==null||g==null)throw new Error(`Missing projection row for filtered visible index ${String(c)}`);return this.#oe(p,c,m,{ancestorPaths:this.#fe(m),path:g})})}return this.#n.getVisibleSlice(r,o).map((s,l)=>{const a=r+l,d=this.#o[a];if(d==null)throw new Error(`Missing projection path for visible index ${String(a)}`);return this.#oe(s,a,a,{ancestorPaths:this.#fe(a),path:d})})}getStickyRowCandidates(t,n){if(this.#C!=null)return null;if(this.#p===0||t<=0||n<=0)return[];const r=[];for(let o=0;o<this.#p;o+=1){const i=t+o*n,s=Math.min(this.#p-1,Math.floor(i/n)),l=this.#de(s,o)??(s>0?this.#de(s-1,o):void 0);if(l==null)break;r.push({row:this.#ue(l),subtreeEndIndex:l.subtreeEndIndex})}return r}getItem(t){const n=this.#n.getPathInfo(t);return n==null?null:this.#ce(n.path,n)}resolveMountedDirectoryPathFromInput(t){const n=this.#n.getPathInfo(t);return n?.kind==="directory"?n.path:null}toggleMountedDirectoryFromInput(t){const n=this.resolveMountedDirectoryPathFromInput(t);n!=null&&this.#Ce(n)}selectAllVisiblePaths(){this.#T();const t=[...this.#k()];this.#S(t,this.#r??this.#w)}selectOnlyPath(t){const n=this.#A(t);n!=null&&this.#S([n],n)}selectOnlyMountedPathFromInput(t){this.#S([t],t)}selectPath(t){const n=this.#A(t);n==null||this.#i.has(n)||this.#S([...this.#i,n])}deselectPath(t){const n=this.#A(t);n==null||!this.#i.has(n)||this.#S([...this.#i].filter(r=>r!==n))}toggleFocusedSelection(){this.#r!=null&&this.togglePathSelectionFromInput(this.#r)}togglePathSelection(t){const n=this.#A(t);if(n!=null){if(this.#i.has(n)){this.deselectPath(n);return}this.selectPath(n)}}togglePathSelectionFromInput(t){const n=this.#A(t);if(n!=null){if(this.#i.has(n)){this.#S([...this.#i].filter(r=>r!==n),n);return}this.#S([...this.#i,n],n)}}selectPathRange(t,n){const r=this.#A(t);if(r==null)return;this.#T();const o=this.#w,i=o==null?-1:this.#te(o),s=this.#te(r);if(i===-1||s===-1){const f=n?[...this.#i,r]:[r];this.#S(f,r);return}const[l,a]=i<=s?[i,s]:[s,i],d=this.#k().slice(l,a+1),h=n?[...this.#i,...d]:d;this.#S(h,o)}extendSelectionFromFocused(t){if(this.#r==null)return;const n=this.#v;if(n===-1)return;const r=Math.min(this.#p-1,Math.max(0,n+t));if(r===n)return;!this.#y&&r>=this.#o.length&&this.#T();const o=this.#k(),i=o[n]??null,s=o[r]??null;if(i==null||s==null)return;const l=new Set(this.#i);l.has(i)&&l.has(s)?l.delete(i):l.add(s),this.#S([...l],this.#w??i,!1),this.#P(r)}getDragAndDropConfig(){return this.#u}isDragAndDropEnabled(){return this.#u!=null}getDragSession(){return this.#l==null?null:{draggedPaths:[...this.#l.draggedPaths],primaryPath:this.#l.primaryPath,target:this.#l.target==null?null:{...this.#l.target}}}startDrag(t){if(this.#u==null)return!1;const n=this.#A(t);if(n==null||this.#a!=null&&this.#a.length>0)return!1;const r=this.getSelectedPaths(),o=md(n,r);return this.#u.canDrag?.(o)===!1?!1:(r.includes(n)||this.#S([n],n,!1),this.#Q(n),this.#l={draggedPaths:o,primaryPath:n,target:null},this.#d(),!0)}setDragTarget(t){const n=this.#l;if(n==null)return;let r=t;if(r!=null){const o=Ko(n.draggedPaths,r);(Wo(n.draggedPaths,r)||this.#u?.canDrop?.(o)===!1)&&(r=null)}gd(n.target,r)||(this.#l={...n,target:r},this.#d())}cancelDrag(){this.#l!=null&&(this.#l=null,this.#d())}completeDrag(){const t=this.#l;if(t==null)return!1;this.#l=null;const n=t.target==null?null:{...t.target};if(n==null)return this.#d(),!1;const r=Ko(t.draggedPaths,n);if(Wo(t.draggedPaths,n)||this.#u?.canDrop?.(r)===!1)return this.#d(),!1;const o=yd(t.draggedPaths,n);if(o==null)return this.#d(),!1;try{if(o.operations.length===1){const i=o.operations[0];if(i==null||i.type!=="move")throw new Error("Expected a single move operation for one-item drops");this.#n.move(i.from,i.to,{collision:i.collision})}else this.#Ne(o.operations),this.#n.batch(o.operations)}catch(i){return this.#d(),this.#u?.onDropError?.(i instanceof Error?i.message:String(i),r),!1}return this.#u?.onDropComplete?.(o.result),!0}subscribe(t){return this.#t.add(t),t(),()=>{this.#t.delete(t)}}add(t){this.#n.add(t)}remove(t,n={}){this.#n.remove(t,n)}move(t,n,r={}){this.#n.move(t,n,r)}batch(t){this.#n.batch(t)}onMutation(t,n){const r=t,o=n;let i=this.#c.get(r);return i==null&&(i=new Set,this.#c.set(r,i)),i.add(o),()=>{const s=this.#c.get(r);s?.delete(o),s?.size===0&&this.#c.delete(r)}}setSearch(t){this.#X(t,!0)}openSearch(t=""){this.#X(t,!0)}closeSearch(){this.#X(null,!0)}isSearchOpen(){return this.#a!==null}getSearchValue(){return this.#a??""}getSearchMatchingPaths(){return this.#U}focusNextSearchMatch(){this.#ye(1)}focusPreviousSearchMatch(){this.#ye(-1)}startRenaming(t=this.#r??"",n={}){if(!this.#D)return!1;const r=this.#n.getPathInfo(t);if(r==null)return!1;const o=r.path,i=Cn(o),s=Jo(o);if(this.#J?.({isFolder:i,path:s})===!1)return!1;for(const l of Xe(o))this.#n.isExpanded(l)||this.#n.expand(l);return this.#S([o],o,!1),this.#a!=null&&(this.#X(null,!1),this.#R?.(this.#a)),this.#Q(o),this.#s=o,this.#g=Cd(o),this.#M=n.removeIfCanceled??!1,this.#d(),!0}#ke(){if(this.#s==null)return;const t=this.#s,n=this.#M;if(this.#s=null,this.#g="",this.#M=!1,n){this.remove(t,Cn(t)?{recursive:!0}:void 0);return}this.#Q(t),this.#d()}#Pe(){const t=this.#s;if(t==null)return;if(this.#M&&this.#g.trim().length===0){this.#s=null,this.#g="",this.#M=!1,this.remove(t,Cn(t)?{recursive:!0}:void 0);return}const n=Cn(t),r=dd({files:this.#n.list(),isFolder:n,nextBasename:this.#g,path:Jo(t)});if(this.#s=null,this.#g="",this.#M=!1,"error"in r){this.#Q(t),this.#O?.(r.error),this.#d();return}if(r.sourcePath===r.destinationPath){this.#Q(t),this.#d();return}this.#q?.({destinationPath:r.destinationPath,isFolder:r.isFolder,sourcePath:r.sourcePath}),this.move(Zo(r.sourcePath,n),Zo(r.destinationPath,n))}#Ee(t){this.#s==null||this.#g===t||(this.#g=t,this.#d())}resetPaths(t,n={}){const r=!Array.isArray(t),o=r?void 0:t,i=r?t:n,s=this.#n.list().length,l=this.#p,a=Go({paths:o,preparedInput:i.preparedInput},"resetPaths",this.#e.sort),d=this.#ie(a.paths,a.preparedInput,i.initialExpandedPaths),h=this.#r,f=this.#s,c=this.getSelectedPaths(),m=this.#w;this.#Y?.(),this.#n=d,this.#b.clear(),this.#le();const p=c.map(v=>d.getPathInfo(v)?.path??null).filter(v=>v!=null),g=!or(this.#i,p);this.#i=new Set(p),g&&(this.#G+=1),this.#w=m==null?null:d.getPathInfo(m)?.path??null,this.#s=f==null?null:d.getPathInfo(f)?.path??null,this.#s==null&&(this.#g="",this.#M=!1),this.#B(h,h!=null||p.length>0||this.#w!=null),this.#Y=this.#Se(),this.#d(),this.#Ie({canonicalChanged:!0,operation:"reset",pathCountAfter:a.paths.length,pathCountBefore:s,projectionChanged:!0,usedPreparedInput:i.preparedInput!=null,visibleCountDelta:this.#p-l})}#De(t){this.#T();const n=ir(t),r=Xo(t,n);let o=null,i=null;for(const s of this.#k()){if(ir(s)!==n)continue;const l=Xo(s,n);if(l<r){o=s;continue}if(l>r){i=s;break}}return o??i}#F(t){const n=this.#te(t);if(n!==-1)return n;const r=Xe(t);for(let o=r.length-1;o>=0;o-=1){const i=r[o];if(i==null)continue;const s=this.#te(i);if(s!==-1)return s}return this.#k().length>0?0:-1}#ce(t,n){const r=this.#b.get(t);if(r!=null)return r;const o=n??this.#n.getPathInfo(t);if(o==null)return null;const i=o.kind==="directory"?this.#Me(o.path):this.#Te(o.path);return this.#b.set(o.path,i),i}#oe(t,n,r,o){return{ancestorPaths:o.ancestorPaths,depth:t.depth,flattenedSegments:t.flattenedSegments?.map(i=>({isTerminal:i.isTerminal,name:i.name,path:i.path})),hasChildren:t.hasChildren,index:n,isExpanded:t.isExpanded,isFlattened:t.isFlattened,isFocused:o.path===this.#r,isSelected:this.#i.has(o.path),kind:t.kind,level:t.depth,name:t.name,path:o.path,posInSet:o.posInSet??this.#j[r]??0,setSize:o.setSize??this.#$[r]??0}}#ue(t){return this.#oe(t.row,t.index,t.index,{ancestorPaths:t.ancestorPaths,path:t.row.path,posInSet:t.posInSet,setSize:t.setSize})}#de(t,n){const r=this.#n.getVisibleRowContext(t);if(r==null)return;const o=r.ancestorRows[n];return o??(n===r.ancestorRows.length&&r.row.kind==="directory"&&r.row.isExpanded?r:void 0)}#he(t){const n=this.#z.get(t);if(n!=null)return n;const r=this.#E(t),o=r<0?[]:[...this.#he(r),r];return this.#z.set(t,o),o}#fe(t){const n=this.#H.get(t);if(n!=null)return n;const r=this.#he(t).map(o=>this.#o[o]??"").filter(o=>o!=="");return this.#H.set(t,r),r}#pe(t){this.#n.collapse(t)}#S(t,n=this.#w,r=!0){const o=[...new Set(t)],i=!or(this.#i,o),s=this.#w!==n;!i&&!s||(this.#i=new Set(o),this.#w=n,i&&(this.#G+=1),r&&this.#d())}#Me(t){return{collapse:()=>{this.#pe(t)},deselect:()=>{this.deselectPath(t)},expand:()=>{this.#xe(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!0,isExpanded:()=>this.#n.isExpanded(t),isFocused:()=>this.#r===t,isSelected:()=>this.#i.has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)},toggle:()=>{this.#Ce(t)}}}#Te(t){return{deselect:()=>{this.deselectPath(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!1,isFocused:()=>this.#r===t,isSelected:()=>this.#i.has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)}}}#Ne(t){const n=this.#n.list();this.#ie(n).batch(t)}#ie(t,n,r){return new ys({...this.#e,paths:t,preparedInput:n??void 0,...r!==void 0?{initialExpandedPaths:r}:{}})}#se(){return this.#x!=null?this.#x:(this.#x=this.#n.list(),this.#x)}#Ae(){if(this.#I!=null)return this.#I;const t=new Set;for(const n of this.#se()){t.add(n);for(const r of Xe(n))t.add(r)}return this.#I=[...t].sort(),this.#I}#Re(){return this.#f!=null?this.#f:(this.#f=this.#se().map(Qo),this.#f)}#ee(){return this.#m!=null?this.#m:(this.#m=this.#Ae().filter(t=>t.endsWith("/")),this.#m)}#Ve(){return this.#h!=null?this.#h:(this.#h=this.#ee().map(Qo),this.#h)}#le(){this.#m=null,this.#h=null,this.#I=null,this.#x=null,this.#f=null}#Le(){return this.#ee().filter(t=>this.#n.isExpanded(t))}#me(t){const n=new Set(this.#W??[]);if(t)for(const r of this.#i)for(const o of Xe(r))n.add(o);this.#ge(n)}#ge(t){this.#re=!0;try{for(const n of this.#ee()){const r=t.has(n),o=this.#n.isExpanded(n);r&&!o?this.#n.expand(n):!r&&o&&this.#n.collapse(n)}}finally{this.#re=!1}}#Fe(){if(this.#a==null||this.#a.length===0){this.#U=[],this.#C=null,this.#L=null,this.#N=null,this.#p=this.#ne;return}const t=this.#o;if(this.#U=t.filter(i=>this.#_.has(i)),this.#K!=="hide-non-matches"||this.#_.size===0){this.#C=null,this.#L=null,this.#N=null,this.#p=this.#ne;return}const n=[],r=[],o=new Map;for(const[i,s]of t.entries())this.#V?.has(s)===!0&&(o.set(s,r.length),n.push(i),r.push(s));this.#C=n,this.#L=r,this.#N=o,this.#p=r.length}#k(){return this.#L??this.#o}#Be(t){return this.#L!=null?this.#N?.get(t)??-1:this.#n.getVisibleIndex(t)??-1}#ve(t){return this.#C?.[t]??t}#te(t){const n=this.#N?.get(t);return n??this.#n.getVisibleIndex(t)??-1}#ye(t){const n=this.#U;if(n.length===0)return;const r=this.#r,o=r==null?-1:n.indexOf(r),i=n[o<0?t>0?0:n.length-1:Math.min(n.length-1,Math.max(0,o+t))];i!=null&&this.focusPath(i)}#X(t,n){const r=t==null?null:_d(t),o=this.#a;if(o!==r){if(o==null&&r!=null&&(this.#W=this.#Le()),this.#a=r,r==null)this.#me(!0),this.#W=null,this.#_.clear(),this.#V=null,this.#B(this.#r,!0);else if(r.length===0)this.#me(!1),this.#_.clear(),this.#V=null,this.#B(this.#r,!0);else{const i=this.#be();this.#B(i,!0)}n&&(this.#R?.(this.#a),this.#d())}}#be(){if(this.#a==null||this.#a.length===0)return this.#_.clear(),this.#r;const t=this.#a,n=this.#se(),r=this.#Re(),o=[],i=new Set;let s=null;for(let f=0;f<n.length;f+=1){if(!r[f].includes(t))continue;const c=n[f];o.push(c),i.add(c),s??=c}const l=this.#ee(),a=this.#Ve();for(let f=0;f<l.length;f+=1){if(!a[f].includes(t))continue;const c=l[f];i.has(c)||(o.push(c),i.add(c),s??=c)}this.#_=i;const d=this.#K==="hide-non-matches"&&o.length>0?new Set:null;this.#V=d;const h=this.#K==="expand-matches"?new Set(this.#W??[]):new Set;for(const f of o){d?.add(f),f.endsWith("/")&&h.add(f);for(const c of Xe(f))h.add(c),d?.add(c)}return this.#ge(h),s??this.#r}#d(){for(const t of this.#t)t()}#Ie(t){this.#c.get(t.operation)?.forEach(n=>{n(t)}),this.#c.get("*")?.forEach(n=>{n(t)})}#xe(t){for(const n of Xe(t))this.#n.isExpanded(n)||this.#n.expand(n);this.#n.isExpanded(t)||this.#n.expand(t)}#we(t){const n=this.#p;if(n===0)return;const r=this.#v===-1?0:this.#v,o=Math.min(n-1,Math.max(0,r+t));(o!==r||this.#v===-1)&&(!this.#y&&this.#C==null&&o>=this.#o.length&&this.#T(),this.#P(o))}#B(t,n=!0){const r=this.#n.getVisibleCount();this.#ne=r;const o=Md(this.#n.getVisibleTreeProjectionData(n?void 0:Math.min(r,kd)),t,n?i=>this.#n.getVisibleIndex(i):void 0);this.#z.clear(),this.#H.clear(),this.#y=o.paths.length>=r,this.#E=o.getParentIndex,this.#o=o.paths,this.#j=o.posInSetByIndex,this.#$=o.setSizeByIndex,this.#Fe(),this.#v=t==null?this.#k().length>0?0:-1:this.#F(t),this.#r=this.#v<0?null:this.#ae(this.#v)}#ae(t){const n=this.#k()[t];return n??(this.#C!=null?null:this.#n.getVisibleRowContext(t)?.row.path??null)}#A(t){return this.#n.getPathInfo(t)?.path??null}#Q(t){if(t==null)return;const n=this.#F(t);n>=0&&this.#P(n,!1)}#P(t,n=!0){const r=this.#ae(t);r!=null&&(this.#v===t&&this.#r===r||(this.#v=t,this.#r=r,n&&this.#d()))}#T(){this.#y||this.#B(this.#r,!0)}#ze(t){const n=Qt(this.#s,t);n==null&&this.#s!=null&&(this.#g=""),this.#s=n;const r=Qt(this.#r,t,!0),o=[...this.#i].map(a=>Qt(a,t)).filter(a=>a!=null).map(a=>this.#n.getPathInfo(a)?.path??null).filter(a=>a!=null),i=Qt(this.#w,t),s=i==null?null:this.#n.getPathInfo(i)?.path??null,l=[...new Set(o)];return or(this.#i,l)||(this.#i=new Set(l),this.#G+=1),this.#w=s,r}#Se(){return this.#n.on("*",t=>{if(this.#re)return;t.canonicalChanged&&(this.#b.clear(),this.#le()),this.#l!=null&&Yo(t)&&(this.#l=null);const n=Yo(t)?this.#ze(t):this.#r,r=this.#a!=null&&this.#a.length>0?this.#be():this.#a===""?this.#r:n,o=this.#a!=null||t.operation!=="expand"&&t.operation!=="collapse";this.#B(r,o),this.#d();const i=Sd(t);i!=null&&this.#Ie(i)})}#Ce(t){if(this.#n.isExpanded(t)){this.#pe(t);return}this.#xe(t)}};const Nd=e=>{if(e==null||e.length===0)return"0";let t=`${e.length}`;for(const n of e)t+=`\0${n.path}\0${n.status}`;return t};function Ad(e){const t=e.endsWith("/");let n="",r=-1;for(let o=0;o<=e.length;o+=1){if(!(e[o]==="/"||o===e.length)){r===-1&&(r=o);continue}r!==-1&&(n!==""&&(n+="/"),n+=e.slice(r,o),r=-1)}return n===""?null:{isDirectory:t,path:n}}function Ss(e){const t=e.endsWith("/")?e.slice(0,-1):e;if(t.length===0)return[];const n=[];let r=0;for(;;){const o=t.indexOf("/",r);if(o===-1)break;n.push(t.slice(0,o+1)),r=o+1}return n}function Rd(e,t){return t?`${e}/`:e}function ei(e,t=null){const n=Nd(e==null?void 0:[...e]);if(n==="0")return null;if(t?.signature===n)return t;const r=new Map,o=new Set,i=new Set,s=new Map;for(const l of e??[]){const a=Cs(l);a!=null&&ks({canonicalPath:a.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:o,ignoredDirectoryPaths:i,isDirectory:a.isDirectory,status:l.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:o,ignoredDirectoryPaths:i,signature:n,statusByPath:r}}function Vd(e,t){const n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;const o=new Map(e?.statusByPath),i=new Set(e?.directoriesWithChanges),s=new Set(e?.ignoredDirectoryPaths),l=new Map(e?.changeCountByDirectoryPath);let a=!1;for(const d of n){const h=_s(d);h!=null&&(a=Ld({canonicalPath:h.canonicalPath,changeCountByDirectoryPath:l,directoriesWithChanges:i,ignoredDirectoryPaths:s,statusByPath:o})||a)}for(const d of r){const h=Cs(d);h!=null&&(a=ks({canonicalPath:h.canonicalPath,changeCountByDirectoryPath:l,directoriesWithChanges:i,ignoredDirectoryPaths:s,isDirectory:h.isDirectory,status:d.status,statusByPath:o})||a)}return a?o.size===0?null:{changeCountByDirectoryPath:l,directoriesWithChanges:i,ignoredDirectoryPaths:s,signature:zd(o),statusByPath:o}:e}function Cs(e){return _s(e.path)}function _s(e){const t=Ad(e);if(t!=null)return{canonicalPath:Rd(t.path,t.isDirectory),isDirectory:t.isDirectory}}function Ld({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:o}){const i=o.get(e);return i==null?!1:(o.delete(e),i==="ignored"&&e.endsWith("/")&&r.delete(e),Bd(t,n,e),!0)}function ks({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:o,status:i,statusByPath:s}){const l=s.get(e);return l===i?!1:(l==null&&Fd(t,n,e),s.set(e,i),i==="ignored"&&o?r.add(e):o&&r.delete(e),!0)}function Fd(e,t,n){for(const r of Ss(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function Bd(e,t,n){for(const r of Ss(n)){const o=(e.get(r)??0)-1;o>0?e.set(r,o):(e.delete(r),t.delete(r))}}function zd(e){let t=`${e.size}`;for(const[n,r]of e)t+=`\0${n}\0${r}`;return t}const Hd=e=>e.trim().toLowerCase(),qd=e=>e.split("/").at(-1)??e,Od=e=>{const t=e.toLowerCase().split("."),n=[];for(let r=1;r<t.length;r+=1)n.push(t.slice(r).join("."));return n};function Ut(e,t){return typeof e=="string"?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function jd(e){const t=Pn(e),n=t.remap,r=new Map;for(const[l,a]of Object.entries(t.byFileName??{}))r.set(l.toLowerCase(),a);const o=new Map;for(const[l,a]of Object.entries(t.byFileExtension??{}))o.set(Hd(l),a);const i=Object.entries(t.byFileNameContains??{}).map(([l,a])=>[l.toLowerCase(),a]);return{resolveIcon:(l,a)=>{if(l==="file-tree-icon-file"&&a!=null){const h=qd(a),f=h.toLowerCase(),c=r.get(f);if(c!=null)return Ut(c,l);for(const[g,v]of i)if(f.includes(g))return Ut(v,l);const m=Od(h);for(const g of m){const v=o.get(g);if(v!=null)return Ut(v,l)}const p=gc(t.set,h,m);if(p!=null&&t.set!=="none"){if(p==="default"){const g=n?.[l];if(g!=null)return Ut(g,l)}return{name:pc(p),remappedFrom:l,token:p}}}const d=n?.[l];return d==null?{name:l}:Ut(d,l)}}}var O,Ps,at,ti,Hn,Es,Ds,zr,br,Ir,on={},Ms=[],Un=Array.isArray,Hr=Ms.slice,et=Object.assign;function qr(e){e&&e.parentNode&&e.remove()}function xr(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"&&typeof e!="function"?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?Hr.call(arguments,2):n),Mn(e,s,r,o,null)}function Mn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Ps,__i:-1,__u:0};return o==null&&O.vnode!=null&&O.vnode(i),i}function Pt(e){return e.children}function Tn(e,t){this.props=e,this.context=t,this.__g=0}function Ct(e,t){if(t==null)return e.__?Ct(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ct(e):null}function Ts(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return Ts(e)}}function ni(e){(8&e.__g||!(e.__g|=8)||!at.push(e)||Hn++)&&ti==O.debounceRendering||((ti=O.debounceRendering)||queueMicrotask)($d)}function $d(){for(var e,t,n,r,o,i,s,l,a=1;at.length;)at.length>a&&at.sort(Es),e=at.shift(),a=at.length,8&e.__g&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],(l=t.__P)&&((n=et({},r)).__v=r.__v+1,O.vnode&&O.vnode(n),Or(l,n,r,t.__n,l.namespaceURI,32&r.__u?[o]:null,i,o??Ct(r),!!(32&r.__u),s,l.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,Rs(i,n,s),n.__e!=o&&Ts(n)));Hn=0}function Ns(e,t,n,r,o,i,s,l,a,d,h,f){var c,m,p,g,v,w,x,b=r&&r.__k||Ms,I=t.length;for(a=Ud(n,t,b,a,I),c=0;c<I;c++)(p=n.__k[c])!=null&&(m=p.__i==-1?on:b[p.__i]||on,p.__i=c,w=Or(e,p,m,o,i,s,l,a,d,h,f),g=p.__e,p.ref&&m.ref!=p.ref&&(m.ref&&jr(m.ref,null,p),h.push(p.ref,p.__c||g,p)),v==null&&g!=null&&(v=g),(x=!!(4&p.__u))||m.__k===p.__k?a=As(p,a,e,x):typeof p.type=="function"&&w!==void 0?a=w:g&&(a=g.nextSibling),p.__u&=-7);return n.__e=v,a}function Ud(e,t,n,r,o){var i,s,l,a,d,h=n.length,f=h,c=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=i+c,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Mn(null,s,null,null,null):Un(s)?Mn(Pt,{children:s},null,null,null):s.constructor==null&&s.__b>0?Mn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,l=null,(d=s.__i=Kd(s,n,a,f))!=-1&&(f--,(l=n[d])&&(l.__u|=2)),l==null||l.__v==null?(d==-1&&(o>h?c--:o<h&&c++),typeof s.type!="function"&&(s.__u|=4)):d!=a&&(d==a-1?c--:d==a+1?c++:(d>a?c--:c++,s.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<h;i++)(l=n[i])!=null&&(2&l.__u)==0&&(l.__e==r&&(r=Ct(l)),Ls(l,l));return r}function As(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=As(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Ct(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Kd(e,t,n,r){var o,i,s,l=e.key,a=e.type,d=t[n],h=d!=null&&(2&d.__u)==0;if(d===null&&e.key==null||h&&l==d.key&&a==d.type)return n;if(r>(h?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((d=t[s=o>=0?o--:i++])!=null&&(2&d.__u)==0&&l==d.key&&a==d.type)return s}return-1}function ri(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n??""}function _n(e,t,n,r,o){var i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ri(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||ri(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Ds,"$1")),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||(e.__l={}),e.__l[t+i]=n,n?r?n.l=r.l:(n.l=zr,e.addEventListener(t,i?Ir:br,i)):e.removeEventListener(t,i?Ir:br,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function oi(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=zr++;else if(t.u<n.l)return;return n(O.event?O.event(t):t)}}}function Or(e,t,n,r,o,i,s,l,a,d,h){var f,c,m,p,g,v,w,x,b,I,S,E,V,de,Y,fe,Q,te,ce,ne,De,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(a=!!(32&n.__u),n.__c.__z&&(l=t.__e=n.__e=(i=n.__c.__z)[0],n.__c.__z=null)),(f=O.__b)&&f(t);e:if(typeof j=="function")try{if(x=t.props,b="prototype"in j&&j.prototype.render,I=(f=j.contextType)&&r[f.__c],S=f?I?I.props.value:f.__:r,n.__c?2&(c=t.__c=n.__c).__g&&(c.__g|=1,w=!0):(b?t.__c=c=new j(x,S):(t.__c=c=new Tn(x,S),c.constructor=j,c.render=Gd),I&&I.sub(c),c.props=x,c.state||(c.state={}),c.context=S,c.__n=r,m=!0,c.__g|=8,c.__h=[],c._sb=[]),b&&c.__s==null&&(c.__s=c.state),b&&j.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=et({},c.__s)),et(c.__s,j.getDerivedStateFromProps(x,c.__s))),p=c.props,g=c.state,c.__v=t,m)b&&j.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),b&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(b&&j.getDerivedStateFromProps==null&&x!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(x,S),!(4&c.__g)&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(x,c.__s,S)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=x,c.state=c.__s,c.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(se){se&&(se.__=t)}),E=0;E<c._sb.length;E++)c.__h.push(c._sb[E]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(x,c.__s,S),b&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,g,v)})}if(c.context=S,c.props=x,c.__P=e,c.__g&=-5,V=O.__r,de=0,b){for(c.state=c.__s,c.__g&=-9,V&&V(t),f=c.render(c.props,c.state,c.context),Y=0;Y<c._sb.length;Y++)c.__h.push(c._sb[Y]);c._sb=[]}else do c.__g&=-9,V&&V(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(8&c.__g&&++de<25);c.state=c.__s,c.getChildContext!=null&&(r=et({},r,c.getChildContext())),b&&!m&&c.getSnapshotBeforeUpdate!=null&&(v=c.getSnapshotBeforeUpdate(p,g)),fe=f,f!=null&&f.type===Pt&&f.key==null&&(fe=Vs(f.props.children)),l=Ns(e,Un(fe)?fe:[fe],t,n,r,o,i,s,l,a,d,h),t.__u&=-161,c.__h.length&&s.push(c),w&&(c.__g&=-4)}catch(se){if(t.__v=null,a||i!=null)if(se.then){for(Q=0,te=!1,t.__u|=a?160:128,t.__c.__z=[],ce=0;ce<i.length;ce++)(ne=i[ce])==null||te||(ne.nodeType==8&&ne.data=="$s"?(Q>0&&t.__c.__z.push(ne),Q++,i[ce]=null):ne.nodeType==8&&ne.data=="/$s"?(--Q>0&&t.__c.__z.push(ne),te=Q===0,l=i[ce],i[ce]=null):Q>0&&(t.__c.__z.push(ne),i[ce]=null));if(!te){for(;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,t.__c.__z=[l]}t.__e=l}else{for(De=i.length;De--;)qr(i[De]);wr(t)}else t.__e=n.__e,t.__k=n.__k,se.then||wr(t);O.__e(se,t,n)}else l=t.__e=Wd(n.__e,t,n,r,o,i,s,a,d,h);return(f=O.diffed)&&f(t),128&t.__u?void 0:l}function wr(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(wr)}function Rs(e,t,n){for(var r=0;r<n.length;r++)jr(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){O.__e(i,o.__v)}})}function Vs(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Un(e)?e.map(Vs):et({},e)}function Wd(e,t,n,r,o,i,s,l,a,d){var h,f,c,m,p,g,v,w,x=n.props,b=t.props,I=t.type;if(I=="svg"?o="http://www.w3.org/2000/svg":I=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(h=0;h<i.length;h++)if((p=i[h])&&"setAttribute"in p==!!I&&(I?p.localName==I:p.nodeType==3)){e=p,i[h]=null;break}}if(e==null){if(I==null)return d.createTextNode(b);e=d.createElementNS(o,I,b.is&&b),l&&(O.__m&&O.__m(t,i),l=!1),i=null}if(I==null)x===b||l&&e.data==b||(e.data=b);else{if(i=i&&Hr.call(e.childNodes),x=n.props||on,!l&&i!=null)for(x={},h=0;h<e.attributes.length;h++)x[(p=e.attributes[h]).name]=p.value;for(h in x)if(p=x[h],h!="children"){if(h=="dangerouslySetInnerHTML")c=p;else if(!(h in b)){if(h=="value"&&"defaultValue"in b||h=="checked"&&"defaultChecked"in b)continue;_n(e,h,null,p,o)}}for(h in w=1&n.__u,b)p=b[h],h=="children"?m=p:h=="dangerouslySetInnerHTML"?f=p:h=="value"?g=p:h=="checked"?v=p:l&&typeof p!="function"||x[h]===p&&!w||_n(e,h,p,x[h],o);if(f)l||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Ns(I=="template"?e.content:e,Un(m)?m:[m],t,n,r,I=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Ct(n,0),l,a,d),i!=null)for(h=i.length;h--;)qr(i[h]);l||(h="value",I=="progress"&&g==null?e.removeAttribute("value"):g==null||g===e[h]&&(I!=="progress"||g)||_n(e,h,g,x[h],o),h="checked",v!=null&&v!=e[h]&&_n(e,h,v,x[h],o))}return e}function jr(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){O.__e(o,n)}}function Ls(e,t,n){var r,o;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||jr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){O.__e(i,t)}r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ls(r[o],t,n||typeof e.type!="function");n||qr(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function Gd(e,t,n){return this.constructor(e,n)}function Sr(e,t){var n,r,o,i;t==document&&(t=document.documentElement),O.__&&O.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=xr(Pt,null,[e]),o=[],i=[],Or(t,e,r||on,on,t.namespaceURI,r?null:t.firstChild?Hr.call(t.childNodes):null,o,r?r.__e:t.firstChild,n,i,t.ownerDocument),Rs(o,e,i)}function Yd(e,t){e.__u|=32,Sr(e,t)}O={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!(1&o.__g)){o.__g|=4;try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=8&o.__g),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=8&o.__g),s)return void(o.__g|=2)}catch(l){e=l}}throw Hn=0,e}},Ps=0,Tn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=et({},this.state),typeof e=="function"&&(e=e(et({},n),this.props)),e&&et(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ni(this))},Tn.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),ni(this))},Tn.prototype.render=Pt,at=[],Hn=0,Es=function(e,t){return e.__v.__b-t.__v.__b},Ds=/(PointerCapture)$|Capture$/i,zr=0,br=oi(!1),Ir=oi(!0);var Xd=0;function _(e,t,n,r,o,i){t||(t={});var s,l,a=t;if("ref"in a&&typeof e!="function")for(l in a={},t)l=="ref"?s=t[l]:a[l]=t[l];var d={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Xd,__i:-1,__u:0,__source:o,__self:i};return O.vnode&&O.vnode(d),d}const Qd=16,Jd=16,Zd={};function Zt({name:e,remappedFrom:t,token:n,width:r,height:o,viewBox:i,label:s,alignCapitals:l=!1}){"use no memo";const a=`#${e.replace(/^#/,"")}`,{width:d,height:h,viewBox:f}=Zd[e]??{width:Qd,height:Jd},c=r??d,m=o??h,p=i??f??`0 0 ${d} ${h}`;return _("svg",{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":l,...s!=null?{"aria-label":s,role:"img"}:{"aria-hidden":!0},viewBox:p,width:c,height:m,children:_("use",{href:a})})}const ii=e=>e!==void 0&&/\s/.test(e),eh=(e,t)=>{const n=r=>ii(e[r-1])||ii(e[r]);if(!n(t))return t;for(let r=1;r<e.length;r++){const o=t-r;if(o>0&&!n(o))return o;const i=t+r;if(i<e.length&&!n(i))return i}return t},Fs=e=>eh(e,Math.ceil(e.length/2)),si=e=>{if(e.length<2)return[e,""];const t=Fs(e);return[e.slice(0,t),e.slice(t)]},th=e=>{if(e.length<4)return[e,""];const t=e.lastIndexOf(".")+1,n=e.length-t>10,r=t>=1&&!n?t:Fs(e);return[e.slice(0,r),e.slice(r)]},nh=e=>{if(e.length<4)return[e,""];const t=e.lastIndexOf("/")+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},rh=(e,{splitIndex:t}={})=>{if(typeof t!="number"){const n=Math.ceil(e.length/2);return[e.slice(0,n),e.slice(n)]}return[e.slice(0,t),e.slice(t)]},oh=(e,{splitOffset:t}={})=>{if(typeof t!="number"||t<=0||t>=e.length){const r=Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]}const n=e.length-t;return[e.slice(0,n),e.slice(n)]},ih=(e,{splitOffset:t}={})=>{if(typeof t!="number"||t<=0||t>=e.length){const r=Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]}const n=t;return[e.slice(0,n),e.slice(n)]};function sh({children:e,marker:t,variant:n="default"}){"use no memo";return _("div",{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:_("div",{"data-truncate-marker":!0,children:typeof t=="function"?t({children:e}):n==="fade"?_("span",{"data-truncate-fade":!0}):t})})}function lh(e){"use no memo";const{mode:t,children:n}=e;return _("div",{children:[_("div",{"data-truncate-content":"visible",children:t==="fruncate"?_("span",{children:n}):n}),_("div",{"data-truncate-content":"overflow","aria-hidden":!0,children:t==="fruncate"?_("span",{children:n}):n})]})}function Bs({children:e,mode:t="truncate",marker:n="…",variant:r="default",...o}){"use no memo";const i=_(lh,{mode:t,children:e},"content"),s=_(sh,{marker:n,mode:t,variant:r},"marker");return _("div",{"data-truncate-container":t,"data-truncate-variant":r,...o,children:_("div",{"data-truncate-grid":!0,children:t==="truncate"?[i,s]:[s,i,_("div",{"data-truncate-fill":!0},"fill")]})})}function Nn({children:e,...t}){"use no memo";return _(Bs,{mode:"truncate",...t,children:e})}function sr({children:e,...t}){"use no memo";return _(Bs,{mode:"fruncate",...t,children:e})}function ah({children:e,contents:t,priority:n="end",split:r="center",minimumLength:o=12,className:i,style:s,...l}){"use no memo";let a=null,d=null;if(Array.isArray(t)){if(t.length!==2)return console.error("MiddleTruncate: contents must be an array of two items"),null;a=_(Nn,{...l,children:t[0]}),d=_(sr,{...l,children:t[1]})}else{if(typeof e!="string")return console.error("MiddleTruncate: children must be a string"),null;if(e.length===0)return _("div",{className:i,style:s});if(e.length<o)return n==="end"?_(sr,{...l,className:i,style:s,children:e}):_(Nn,{...l,className:i,style:s,children:e});let h=null,f=null,c=null;if(typeof r=="string")r==="center"?h=si:r==="extension"?h=th:r==="leaf-path"&&(h=nh);else if(typeof r=="number")h=rh,f=r;else if(Array.isArray(r)){const[I,S]=r;c=S,I==="last"?h=oh:I==="first"&&(h=ih)}else typeof r=="function"&&(h=r);h??=si;const[m,p]=h(e,{priority:n,variant:l.variant,splitIndex:typeof f=="number"?f:void 0,splitOffset:typeof c=="number"?c:void 0}),g=m.length>=p.length,v=n==="equal"&&!g,w=n==="equal"&&g,x={},b={};v&&(x.marker=""),w&&(b.marker=""),a=_(Nn,{...l,...x,children:m}),d=_(sr,{...l,...b,children:p})}return _("div",{"data-truncate-group-container":"middle",className:i,style:s,children:[_("div",{"data-truncate-segment-priority":n==="start"||n==="equal"?"1":"2",children:a}),_("div",{"data-truncate-segment-priority":n==="end"||n==="equal"?"1":"2",children:d})]})}const Cr={endIndex:-1,startIndex:-1};function ch(e,t,n){return Math.min(Math.max(e,t),n)}function li(e,t){return e<0||t<e?Cr:{endIndex:t,startIndex:e}}function _r(e){return e.startIndex<0||e.endIndex<e.startIndex}function uh(e,t){return _r(e)?0:(e.endIndex-e.startIndex+1)*t}function ai(e,t,n){if(t<=0)return-1;const r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function dh(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function hh(e){const t=new Map;return e.forEach((n,r)=>{if(n.kind!=="directory"||!n.isExpanded)return;const o=n.ancestorPaths.length,i=t.get(o);if(i==null){t.set(o,[r]);return}i.push(r)}),t}function fh(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const i=Math.floor((n+r)/2),s=e[i];if(s==null)break;if(s<=t){o=i,n=i+1;continue}r=i-1}return o}function ph(e){const t=new Map,n=[];for(let o=0;o<e.length;o+=1){const i=e[o];if(i==null)continue;const s=i.kind==="directory"&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths;let l=0;for(;l<n.length&&l<s.length&&n[l]===s[l];)l+=1;for(let a=n.length-1;a>=l;a-=1){const d=n[a];d!=null&&t.set(d,o-1)}n.length=l;for(let a=l;a<s.length;a+=1){const d=s[a];d!=null&&n.push(d)}}const r=e.length-1;for(const o of n)t.set(o,r);return t}function zs(e,t,n){if(e.length===0||t<=0)return[];const r=ph(e),o=hh(e),i=[];for(let s=0;s<e.length;s+=1){const l=o.get(s);if(l==null||l.length===0)break;const a=t+s*n;let d=fh(l,Math.min(e.length-1,Math.floor(a/n))),h=null;for(;d>=0;){const f=l[d],c=f==null?null:e[f]??null;if(c!=null&&(s===0||c.ancestorPaths[s-1]===i[s-1]?.path)){h=c;break}d-=1}if(h==null)break;i.push(h)}return i.map((s,l)=>{const a=l*n,d=(r.get(s.path)??e.length-1)+1;if(d>=e.length)return{row:s,top:a};const h=d*n-t;return{row:s,top:Math.min(a,h-n)}}).filter(s=>s.top+n>0)}function mh(e,t){const n=t.totalRowCount??e.length,r=n*t.itemHeight,o=Math.max(0,t.viewportHeight),i=Math.max(0,Math.floor(t.overscan)),s=Math.max(0,r-o),l=ch(t.scrollTop,0,s),a=t.stickyRows??zs(e,l,t.itemHeight),d=a.reduce((E,V)=>Math.max(E,V.top+t.itemHeight),0),h=Math.min(r,l+d),f=Math.max(0,o-d),c=Math.max(0,r-h),m=ai(l,n,t.itemHeight),p=ai(h,n,t.itemHeight),g=d<=0||m<0||m>=n?-1:m,v=g===-1?-1:Math.min(n-1,p-1),w=g===-1||v<g?0:v-g+1,x=f<=0||p>=n?Cr:li(p,dh(h+f,n,t.itemHeight)),b=v+1,I=_r(x)?Cr:li(Math.max(b,x.startIndex-i),Math.min(n-1,x.endIndex+i)),S=uh(I,t.itemHeight);return{occlusion:{firstOccludedIndex:g,lastOccludedIndex:v,occludedCount:w},physical:{itemHeight:t.itemHeight,maxScrollTop:s,overscan:i,scrollTop:l,totalHeight:r,totalRowCount:n,viewportHeight:o},projected:{contentHeight:c,paneHeight:f,paneTop:h},sticky:{height:d,rows:a},visible:x,window:{endIndex:I.endIndex,height:S,offsetTop:_r(I)?0:I.startIndex*t.itemHeight,startIndex:I.startIndex}}}const gh={added:"A",deleted:"D",ignored:null,modified:"M",renamed:"R",untracked:"U"},vh={added:"Git status: added",deleted:"Git status: deleted",ignored:"Git status: ignored",modified:"Git status: modified",renamed:"Git status: renamed",untracked:"Git status: untracked"},yh="Contains git status items";function bh(e){return e.current?!0:(e.current=!0,!1)}function Hs(e){const{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:o=0,viewportHeight:i}=e;if(n<0)return null;const s=Math.max(0,o),l=n*r,a=l+r;if(l<t+s){const d=Math.max(0,l-s);return d===t?null:d}if(a>t+i){const d=a-i;return d===t?null:d}return null}function Ih(e){const{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:o,topInset:i=0,totalHeight:s,viewportHeight:l}=e;if(o==="nearest")return Hs({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i,viewportHeight:l});if(n<0)return null;const a=Math.max(0,i),d=n*r,h=Math.max(0,l-a),f=o==="center"?a+Math.max(0,(h-r)/2):a,c=Math.max(0,s-l),m=Math.max(0,Math.min(d-f,c));return m===t?null:m}function xh(e){const{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:o,totalHeight:i,viewportHeight:s}=e;if(n<0)return null;const l=Math.max(0,o),a=n*r,d=a+r,h=t+l,f=t+s;if(a>=h&&d<=f)return null;const c=Math.max(0,i-s),m=Math.max(0,Math.min(a-l,c));return m===t?null:m}function It(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function kn(e){const t=e.getRootNode();if(t instanceof ShadowRoot){const r=t.activeElement;return r instanceof HTMLElement?r:null}const n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function Kt(e,t){if(e==null)return t;const n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function ci(e,t){return e!=null&&e>0?e:t}function wh(e){const t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function ui(e,t,n,r,o=0){const i=Hs({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:o,viewportHeight:r});return i==null?!1:(e.scrollTop=i,!0)}function Sh(e,t,n,r,o,i,s=0){const l=Ih({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:i,topInset:s,totalHeight:o,viewportHeight:r});return l==null?!1:(e.scrollTop=l,!0)}function Wt(e,t,n,r,o,i){const s=xh({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:i,totalHeight:o,viewportHeight:r});return s==null?!1:(e.scrollTop=s,!0)}function di(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function Ch(e){const{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?"reset":r?n===t?"ignore":"focus-input":"reveal-canonical"}function _h({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:o,onInput:i}){return _("input",{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:o,onInput:i,onClick:s=>s.stopPropagation(),onMouseDown:s=>s.stopPropagation(),onPointerDown:s=>s.stopPropagation()})}function kh(e){const{row:t,mode:n,targetPath:r,ariaLabel:o,domId:i,isParked:s,itemHeight:l,features:a,state:d,extraStyle:h}=e,f=n==="sticky",c=t.ancestorPaths.at(-1)??"",m={};return d.isFocusRinged&&(m["data-item-focused"]=!0),t.isSelected&&(m["data-item-selected"]=!0),d.isContextHovered&&(m["data-item-context-hover"]="true"),d.isDragTarget&&(m["data-item-drag-target"]=!0),d.isDragging&&(m["data-item-dragging"]=!0),d.effectiveGitStatus!=null&&(m["data-item-git-status"]=d.effectiveGitStatus),d.containsGitChange&&(m["data-item-contains-git-change"]="true"),{"aria-expanded":!f&&t.kind==="directory"?t.isExpanded:void 0,"aria-haspopup":a.contextMenuEnabled?"menu":void 0,"aria-label":o,"aria-level":f?void 0:t.level+1,"aria-posinset":f?void 0:t.posInSet+1,"aria-selected":f?void 0:t.isSelected?"true":"false","aria-setsize":f?void 0:t.setSize,"data-file-tree-sticky-path":f?r:void 0,"data-file-tree-sticky-row":f?"true":void 0,"data-item-context-menu-button-visibility":a.actionLaneEnabled?a.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":a.contextMenuEnabled?a.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":a.actionLaneEnabled?"true":void 0,"data-item-has-git-lane":a.gitLaneActive?"true":void 0,"data-item-parent-path":c.length>0?c:void 0,"data-item-parked":s?"true":void 0,"data-item-path":r,"data-item-type":t.kind==="directory"?"folder":"file","data-type":"item",id:f?void 0:i,role:f?void 0:"treeitem",style:{minHeight:`${l}px`,...h},tabIndex:!f&&t.isFocused?0:-1,...m}}function Ph(e){const{event:t,mode:n,isSearchOpen:r,isDirectory:o}=e,i=t.ctrlKey||t.metaKey,s=t.shiftKey||i,l=t.shiftKey?{additive:i,kind:"range"}:i?{kind:"toggle"}:{kind:"single"};return{closeSearch:r,revealCanonical:n==="sticky",selection:l,toggleDirectory:!s&&o}}var _t,ee,lr,hi,kr=Object.is,sn=0,qs=[],ie=O,fi=ie.__b,pi=ie.__r,mi=ie.diffed,gi=ie.__c,vi=ie.unmount,yi=ie.__;function Kn(e,t){ie.__h&&ie.__h(ee,e,sn||t),sn=0;var n=ee.__H||(ee.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Be(e){return sn=1,Eh(Os,e)}function Eh(e,t,n){var r=Kn(_t++,2);if(r.t=e,!r.__c&&(r.__=[Os(void 0,t),function(l){var a=r.__N?r.__N[0]:r.__[0],d=r.t(a,l);kr(a,d)||(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=ee,!ee.__f)){var o=function(l,a,d){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(c){return!!c.__c});if(h.every(function(c){return!c.__N}))return!i||i.call(this,l,a,d);var f=r.__c.props!==l;return h.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,kr(m,c.__[0])||(f=!0)}}),i&&i.call(this,l,a,d)||f};ee.__f=!0;var i=ee.shouldComponentUpdate,s=ee.componentWillUpdate;ee.componentWillUpdate=function(l,a,d){if(4&this.__g){var h=i;i=void 0,o(l,a,d),i=h}s&&s.call(this,l,a,d)},ee.shouldComponentUpdate=o}return r.__N||r.__}function bi(e,t){var n=Kn(_t++,3);!ie.__s&&$r(n.__H,t)&&(n.__=e,n.u=t,ee.__H.__h.push(n))}function Ce(e,t){var n=Kn(_t++,4);!ie.__s&&$r(n.__H,t)&&(n.__=e,n.u=t,ee.__h.push(n))}function R(e){return sn=5,Qe(function(){return{current:e}},[])}function Qe(e,t){var n=Kn(_t++,7);return $r(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ve(e,t){return sn=8,Qe(function(){return e},t)}function Dh(){for(var e;e=qs.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(An),e.__H.__h.forEach(Pr),e.__H.__h=[]}catch(t){e.__H.__h=[],ie.__e(t,e.__v)}}ie.__b=function(e){ee=null,fi&&fi(e)},ie.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yi&&yi(e,t)},ie.__r=function(e){pi&&pi(e),_t=0;var t=(ee=e.__c).__H;t&&(lr===ee?(t.__h=[],ee.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(An),t.__h.forEach(Pr),t.__h=[],_t=0)),lr=ee},ie.diffed=function(e){mi&&mi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qs.push(t)!==1&&hi===ie.requestAnimationFrame||((hi=ie.requestAnimationFrame)||Mh)(Dh)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),lr=ee=null},ie.__c=function(e,t){t.some(function(n){try{n.__h.forEach(An),n.__h=n.__h.filter(function(r){return!r.__||Pr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ie.__e(r,n.__v)}}),gi&&gi(e,t)},ie.unmount=function(e){vi&&vi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{An(r)}catch(o){t=o}}),n.__H=void 0,t&&ie.__e(t,n.__v))};var Ii=typeof requestAnimationFrame=="function";function Mh(e){var t,n=function(){clearTimeout(r),Ii&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ii&&(t=requestAnimationFrame(n))}function An(e){var t=ee,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ee=t}function Pr(e){var t=ee;e.__c=e.__(),ee=t}function $r(e,t){return!e||e.length!==t.length||t.some(function(n,r){return!kr(n,e[r])})}function Os(e,t){return typeof t=="function"?t(e):t}function Th(e,t=null,n=null){"use no memo";const r=e.flattenedSegments;return r==null||r.length===0?t??e.name:_("span",{"data-item-flattened-subitems":!0,children:r.map((o,i)=>{const s=i===r.length-1;return _(Pt,{children:[_("span",{"data-item-flattened-subitem":o.path,"data-item-flattened-subitem-drag-target":n===o.path?"true":void 0,children:s&&t!=null?t:_(Nn,{children:o.name})}),i<r.length-1?" / ":""]},o.path)})})}function xt(e){return e.isFlattened?e.flattenedSegments?.findLast(t=>t.isTerminal)?.path??e.path:e.path}function Er(e){const t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(n=>n.name).join(" / ")}function xi(e,t,n,r){return e.map((o,i)=>{const s=i*n,l=o.subtreeEndIndex+1;if(l>=r)return{row:o.row,top:s};const a=l*n-t;return{row:o.row,top:Math.min(s,a-n)}}).filter(o=>o.top+n>0)}function ar({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:o,viewportHeight:i}){const s=e.getVisibleCount(),l=o&&s>0?e.getStickyRowCandidates(r,t):[],a=l==null&&o&&s>0?e.getVisibleRows(0,s-1):[],d=mh(a,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:l==null?void 0:xi(l,r,t,s),totalRowCount:s,viewportHeight:i}),h=o&&r<=0&&s>0?e.getStickyRowCandidates(1,t):[],f=h!=null&&r<=0?xi(h,1,t,s):o&&r<=0&&a.length>0?zs(a,1,t):d.sticky.rows;return{overlayHeight:f.reduce((c,m)=>Math.max(c,m.top+t),0),overlayRows:f,snapshot:d,visibleRows:a}}const Nh=400,wi=10,bt=40,Si=18;function Ah(e,t,n){const r=e,o=document.elementFromPoint?.bind(document)??null,i=r.elementFromPoint?.(t,n)??o?.(t,n)??null;return e instanceof ShadowRoot&&(i==null||!e.contains(i))?Rh(e,t,n):i instanceof HTMLElement?i:null}function Rh(e,t,n){const r=Array.from(e.querySelectorAll('[data-type="item"], [data-item-flattened-subitem]'));for(let o=r.length-1;o>=0;o--){const i=r[o],s=i.getBoundingClientRect();if(t>=s.left&&t<=s.right&&n>=s.top&&n<=s.bottom)return i}return null}function Ci(e){const t=e?.closest?.('[data-type="item"]');if(!(t instanceof HTMLElement))return null;const n=t.dataset.itemPath??null;if(n==null)return null;const r=e?.closest?.("[data-item-flattened-subitem]"),o=r instanceof HTMLElement?r.getAttribute("data-item-flattened-subitem")??null:null;if(o!=null&&o.endsWith("/"))return{directoryPath:o,flattenedSegmentPath:o,hoveredPath:n,kind:"directory"};if(t.dataset.itemType==="folder")return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"};const i=t.dataset.itemParentPath??null;return i==null||i.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:"root"}:{directoryPath:i,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"}}function _i(e){const t=e.cloneNode(!0);return t.removeAttribute("id"),t.dataset.fileTreeDragPreview="true",t.setAttribute("aria-hidden","true"),t.tabIndex=-1,Object.assign(t.style,{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",left:"0px",margin:"0",pointerEvents:"none",position:"fixed",top:"0px",willChange:"transform",zIndex:"10000"}),t}function Vh(){return navigator.vendor!=="Apple Computer, Inc."}function Lh(e,t){const n=e-t.top;if(n<bt)return-Math.ceil((bt-Math.max(0,n))/bt*Si);const r=t.bottom-e;return r<bt?Math.ceil((bt-Math.max(0,r))/bt*Si):0}function Fh(e,t){if(e!=null){const n=gh[e];return n==null?null:{text:n,title:vh[e]}}return t?{icon:{name:"file-tree-icon-dot",width:6,height:6},title:yh}:null}function Bh(e,t,n){if(t==null||t.size===0)return null;const r=[];for(let o=e.length-1;o>=0;o-=1){const i=e[o],s=n.get(i);if(s!=null){for(const l of r)n.set(l,s);return s?"ignored":null}if(t.has(i)){n.set(i,!0);for(const l of r)n.set(l,!0);return"ignored"}r.push(i)}for(const o of r)n.set(o,!1);return null}function ki(e){return e!=null&&"toggle"in e}function js(e){return e.code==="Space"||e.key===" "||e.key==="Spacebar"}function zh(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function Hh(e){return e==null?"":`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll("\\","\\\\").replaceAll('"','\\"')}"] { opacity: 1; }`}function $s(e){return e.shiftKey&&e.key==="F10"||e.key==="ContextMenu"}function qh(e,t){return t&&$s(e)||(e.ctrlKey||e.metaKey)&&js(e)?!0:e.key==="ArrowDown"||e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="ArrowUp"}const Oh=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]);function Pi(e){for(const t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot==="true"||t.dataset.type==="context-menu-anchor"||t.dataset.type==="context-menu-trigger"||t.getAttribute("slot")==="context-menu"))return!0;return!1}function jh(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function $h(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function Uh(e,t){if(e==null)return t.offsetTop;const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function Ei(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function Di(e,t,n){if(e==null)return null;const r=t.get(e)??null;if(r!=null)return r;const o=n.get(e)??null;return o?.dataset.itemParked==="true"?null:o}function Kh(e){if(e==null)return[];const t=[];for(const n of e.querySelectorAll('button[data-file-tree-sticky-row="true"]')){if(!(n instanceof HTMLElement))continue;const r=n.dataset.fileTreeStickyPath;r!=null&&t.push(r)}return t}function Wh(e,t){if(e==null||t==null)return null;for(const n of e.querySelectorAll('button[data-item-focused="true"][data-item-parked="true"]'))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function Gh(e,t,n,r,o,i,s){const l=Math.max(0,i-o),a=t?.getBoundingClientRect()??null,d=a==null||n==null?null:n.getBoundingClientRect().top-a.top,h=Wh(e,r),f=a==null||h==null?null:h.getBoundingClientRect().top-a.top;return Math.max(0,Math.min(f??Math.max(d??0,l),Math.max(0,s-o)))}function Mi(e,t){return{kind:e.kind,name:Er(e),path:t}}function Yh(e){return e==null?void 0:`${e}__tree`}function Us(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?"__parked":""}`}function Ti(e){return e==="file-tree-icon-chevron"||e==="file-tree-icon-dot"||e==="file-tree-icon-file"||e==="file-tree-icon-lock"}function Ni(e,t){if(e==null)return null;if("text"in e)return e.parts!=null?_("span",{title:e.title,children:e.parts.map((r,o)=>_("span",{style:{color:r.color},children:r.text},o))}):_("span",{title:e.title,children:e.text});const n=typeof e.icon=="string"?Ti(e.icon)?t(e.icon):{name:e.icon}:Ti(e.icon.name)?(()=>{const r=t(e.icon.name),{name:o,...i}=e.icon;return{...r,...i}})():e.icon;return _("span",{title:e.title,children:_(Zt,{...n})})}function Ai(e){e!=null&&It(e.querySelector(["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "))??e)}function Xh(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:o=!1,dragTargetFlattenedSegmentPath:i=null,gitDecoration:s=null,gitLaneActive:l=!1,renameInput:a=null,showDecorativeActionAffordance:d=!1}={}){const h=xt(e);return _(Pt,{children:[e.depth>0?_("div",{"data-item-section":"spacing",children:Array.from({length:e.depth}).map((f,c)=>_("div",{"data-item-section":"spacing-item","data-ancestor-path":e.ancestorPaths[c]},c))}):null,_("div",{"data-item-section":"icon",children:e.kind==="directory"?_(Zt,{...t("file-tree-icon-chevron")}):_(Zt,{...t("file-tree-icon-file",h)})}),_("div",{"data-item-section":"content",children:e.isFlattened?Th(e,a,i):a??_(ah,{minimumLength:5,split:"extension",children:e.name})}),o?_("div",{"data-item-section":"decoration",children:r!=null?Ni(r,t):null}):null,l?_("div",{"data-item-section":"git",children:Ni(s,t)}):null,n?_("div",{"data-item-section":"action",children:d?_("span",{"aria-hidden":"true","data-item-action-affordance":"decorative",children:_(Zt,{...t("file-tree-icon-ellipsis")})}):null}):null]})}function Rn(e,t,n,r={}){const{controller:o,renameView:i,visualFocusPath:s,contextHoverPath:l,draggedPathSet:a,dragTarget:d,dragAndDropEnabled:h,shouldSuppressContextMenu:f,handleRowDragStart:c,handleRowDragEnd:m,handleRowTouchStart:p,instanceId:g,itemHeight:v,gitStatusByPath:w,ignoredGitDirectories:x,ignoredInheritanceCache:b,directoriesWithGitChanges:I,gitLaneActive:S,contextMenuEnabled:E,contextMenuTriggerMode:V,contextMenuButtonTriggerEnabled:de,contextMenuButtonVisibility:Y,contextMenuRightClickEnabled:fe,registerRenameInput:Q,registerButton:te,resolveIcon:ce,renderDecorationForRow:ne,openContextMenuForRow:De,onRowClick:j,onKeyDown:se}=e,re=xt(t),{isParked:Se=!1,mode:qe="flow",style:tt}=r,Oe=qe==="sticky",nt=w?.get(re)??null??Bh(t.ancestorPaths,x,b),ht=t.kind==="directory"&&(I?.has(re)??!1),je=ne(t,re),Ke=Fh(nt,ht),ke=E&&de,Ve=je!=null||S||ke,Et=ke&&Y==="always",Ie=i.getPath()===re,rt=Ie?i.getValue():"",Me=Oe||!Ie?null:_(_h,{ref:Q,ariaLabel:`Rename ${Er(t)}`,isFlattened:t.isFlattened,value:rt,onBlur:()=>{i.commit()},onInput:ue=>{i.setValue(ue.currentTarget.value)}}),an=Xh(t,ce,{actionLaneEnabled:ke,customDecoration:je,decorationLaneEnabled:Ve,dragTargetFlattenedSegmentPath:d?.flattenedSegmentPath??null,gitDecoration:Ke,gitLaneActive:S,renameInput:Me,showDecorativeActionAffordance:Et}),$e={...kh({ariaLabel:Er(t),domId:t.isFocused?Us(g,re,Se):void 0,extraStyle:tt,features:{actionLaneEnabled:ke,contextMenuButtonVisibility:ke?Y:null,contextMenuEnabled:E,contextMenuTriggerMode:E?V:null,gitLaneActive:S},isParked:Se,itemHeight:v,mode:qe,row:t,state:{containsGitChange:ht,effectiveGitStatus:nt,isContextHovered:l===re,isDragTarget:d?.kind==="directory"&&d.directoryPath===re,isDragging:a?.has(re)===!0,isFocusRinged:t.isFocused&&s===re},targetPath:re}),key:n,onContextMenu:E||h?ue=>{if(f()){ue.preventDefault();return}E&&(ue.preventDefault(),fe&&(o.focusMountedPathFromInput(re),De(t,re,{anchorRect:$h(ue.clientX,ue.clientY),source:"right-click"})))}:void 0,onFocus:Oe?void 0:()=>{o.focusMountedPathFromInput(re)},onKeyDown:Oe?void 0:se,ref:ue=>{te(re,ue)}};return!Oe&&Ie?_("div",{...$e,children:an}):_("button",{...$e,type:"button",draggable:h&&!Se,onDragEnd:h&&!Se?m:void 0,onDragStart:h&&!Se?ue=>{c(ue,t,re)}:void 0,onMouseDown:ue=>{if(Oe){ue.preventDefault();return}o.isSearchOpen()&&ue.preventDefault()},onTouchStart:h&&!Se?ue=>{p(ue,t,re)}:void 0,onClick:ue=>{j(ue,t,re,qe)},children:an})}function Qh(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(r=>!n.has(xt(r))).map((r,o)=>Rn(e,r,t.start+o))}function Ri({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:o,icons:i,instanceId:s,itemHeight:l=qi,overscan:a=10,renamingEnabled:d=!1,renderRowDecoration:h,searchBlurBehavior:f="close",searchEnabled:c=!1,searchFakeFocus:m=!1,slotHost:p,stickyFolders:g=!1,initialViewportHeight:v=420}){"use no memo";const w=R(null),x=R(null),b=R(!1),I=R(null),S=R(null),E=R(null),V=R(null),de=R(null),Y=R(new Map),fe=R(new Map),Q=R(()=>{}),te=R(null),ce=R(0),ne=R(!1),De=R(null);De.current!==t&&(ne.current=!1,De.current=t);const j=R(!1),se=R(null),re=R(null),Se=R(!1),qe=R(null),tt=R(null),Oe=R(null),nt=R(null),ht=R(null),je=R(null),Ke=R(null),ke=R(null),Ve=R(!1),Et=R(null),Ie=R(null),rt=R(null),Me=R(null),an=Qe(()=>new Map,[]),[,$e]=Be(0),ue=R(!1),[Kr,We]=Be(null),[Wn,cn]=Be(null),[Gn,Ks]=Be(null),[Ws,ot]=Be(null),[Gs,Ys]=Be(0),[z,Yn]=Be(null),Dt=R(z);Dt.current=z;const un=R(null),Mt=R(null),Tt=R(null),Nt=R(null),Wr=R(null),dn=R(!1),Xs=()=>{Mt.current=null,Tt.current=null,Nt.current=null},Xn=(u,y)=>{Mt.current=u,Tt.current=null,Nt.current=y==null?null:{path:u,scrollTop:y}},Qs=(u,y)=>{Mt.current=null,Tt.current={path:u,viewportOffset:y},Nt.current=null},Gr=R(f==="retain"&&t.isSearchOpen()),[Js,Yr]=Be(m);bi(()=>{m||Yr(!1)},[m]);const Xr=R(!1),Qn=ve(()=>{Xr.current=!0,Yr(u=>u&&!1)},[]),[Zs,el]=Be(()=>ar({controller:t,itemHeight:l,overscan:a,scrollTop:0,stickyFolders:g,viewportHeight:v})),[tl,nl]=Be(!1);bi(()=>{nl(!0)},[]);const xe=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,ft=e?.contextMenu?.triggerMode??(xe?"right-click":"both"),pt=ft==="both"||ft==="button",Qr=e?.contextMenu?.buttonVisibility??"when-needed",rl=ft==="both"||ft==="right-click";Ce(()=>{const u=E.current;if(u==null)return;const y=C=>{if(!(C instanceof CustomEvent))return;const k=C.detail?.path??null;Wr.current=k,cn(k),ot(k==null?null:"pointer")},M=C=>{C instanceof CustomEvent&&(dn.current=C.detail?.disabled===!0)};return u.addEventListener("file-tree-debug-set-context-menu-trigger",y),u.addEventListener("file-tree-debug-set-scroll-suppression",M),()=>{u.removeEventListener("file-tree-debug-set-context-menu-trigger",y),u.removeEventListener("file-tree-debug-set-scroll-suppression",M)}},[]);const ol=ve((u,y)=>{Ei(Y.current,u,y)},[]),il=ve((u,y)=>{Ei(fe.current,u,y)},[]),sl=ve(u=>{S.current=u},[]),At=ve(u=>Di(u,fe.current,Y.current),[]),Jr=n!=null||r!=null||o!=null,{resolveIcon:Zr}=Qe(()=>jd(i),[i]),Rt=t[xs](),mt=Rt.getPath(),Jn=mt!=null,Le=t.isSearchOpen(),ll=t.getSearchValue(),L=t.getFocusedPath(),H=t.getFocusedIndex(),it=t.getScrollRequest(),Ue=t.isDragAndDropEnabled(),Vt=t.getDragSession(),al=Qe(()=>Vt==null?null:new Set(Vt.draggedPaths),[Vt]),cl=Vt?.target??null,Lt=Vt?.primaryPath??null,eo=Yh(s),{overlayHeight:ul,overlayRows:dl,snapshot:he,visibleRows:hn}=Zs,pe=he.physical.viewportHeight,Te=Qe(()=>({end:he.window.endIndex,start:he.window.startIndex}),[he.window.endIndex,he.window.startIndex]),Ft=dl,to=he.sticky.rows,st=he.physical.totalHeight,gt=he.sticky.height,fn=Qe(()=>new Set(to.map(u=>xt(u.row))),[to]),Zn=H>=0&&H>=Te.start&&H<=Te.end,hl=ve((u,y)=>h?.({item:Mi(u,y),row:u})??null,[h]),no=ve(u=>It(u==null?null:Y.current.get(u)??null)?!0:It(E.current),[]),pn=ve(u=>{no(t.focusNearestPath(u))},[t,no]),ro=R(pn);ro.current=pn;const vt=R(!0),er=R(()=>{}),Pe=ve((u=!0)=>{const y=Dt.current;y!=null&&(vt.current=vt.current&&u,Yn(null),e?.contextMenu?.onClose?.(),vt.current&&pn(y.path))},[e?.contextMenu,pn]);er.current=Pe;const Bt=ve(u=>{const y=u==null?null:Uh(E.current,u);Ks(M=>M===y?M:y)},[]),oo=ve((u,y,M)=>{const C=t.getItem(y);if(C==null)return;const k=At(y);if(k?.dataset.fileTreeStickyRow==="true"){const A=V.current;Xn(y,A?.scrollTop??null),j.current=!0,We(K=>K===y?K:y)}C.focus(),Bt(k),vt.current=!0,Yn({anchorRect:M?.anchorRect??null,item:Mi(u,y),path:y,source:M?.source??"keyboard"})},[t,At,Bt]),fl=ve(u=>{if(d){if(t.isSearchOpen()){const y=V.current,M=Kt(y,pe);qe.current=H<0||y==null?null:Math.max(0,Math.min(H*l-y.scrollTop,Math.max(0,M-l))),Se.current=!0}t.startRenaming(u)!==!1&&(ot("focus"),$e(y=>y+1))}},[t,H,l,d,pe]),mn=ve((u,{restoreTreeFocus:y=!0,targetOffset:M="live-overlay"}={})=>{const C=V.current;if(C==null)return!1;t.focusPath(u);const k=t.getFocusedIndex();if(k<0)return!1;const A=t.getVisibleRows(k,k)[0]??null;if(A==null)return!1;const K=Kt(C,pe),N=t.getVisibleCount()*l,B=M==="sticky-parents"?A.ancestorPaths.length*l:ar({controller:t,itemHeight:l,overscan:a,scrollTop:C.scrollTop,stickyFolders:g,viewportHeight:K}).snapshot.sticky.height;return j.current=!0,Wt(C,k,l,K,N,B),Q.current(),un.current=y?u:null,!0},[t,l,a,pe,g]),pl=()=>b.current===!0||Me.current!=null||Ve.current===!0,io=u=>typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{u()}):window.setTimeout(u,16),ml=u=>{if(u!=null){if(typeof window.cancelAnimationFrame=="function"){window.cancelAnimationFrame(u);return}window.clearTimeout(u)}},Ge=()=>{nt.current!=null&&(clearTimeout(nt.current),nt.current=null),Oe.current=null},gn=()=>{je.current?.remove(),je.current=null},zt=()=>{ml(tt.current),tt.current=null,ht.current=null},so=u=>{const y=E.current?.getRootNode();if(y instanceof ShadowRoot){y.append(u);return}document.body.append(u)},Ht=()=>{ke.current?.(),ke.current=null,Me.current!=null&&(clearTimeout(Me.current),Me.current=null),Ve.current=!1,Et.current=null,rt.current=null,Ie.current!=null&&(Ie.current.setAttribute("draggable","true"),Ie.current.style.removeProperty("touch-action"),Ie.current=null),gn(),Ge(),zt(),Ke.current=null},vn=(u,y)=>{const M=E.current?.getRootNode(),C=Ci(Ah(M instanceof ShadowRoot?M:document,u,y));return t.setDragTarget(C),t.getDragSession()?.target??null},tr=u=>{const y=t.getDragAndDropConfig()?.openOnDropDelay??800;if(u==null||u.kind!=="directory"||u.directoryPath==null||y<=0){Ge();return}const M=t.getItem(u.directoryPath),C=ki(M)?M:null;if(C==null||C.isExpanded()){Ge();return}const k=`${u.directoryPath}::${u.flattenedSegmentPath??""}`;Oe.current!==k&&(Ge(),Oe.current=k,nt.current=setTimeout(()=>{const A=t.getDragSession()?.target;A?.kind!=="directory"||A.directoryPath!==u.directoryPath||A.flattenedSegmentPath!==u.flattenedSegmentPath||C.expand()},y))},lo=()=>{tt.current=null;const u=ht.current,y=V.current;if(u==null||y==null||t.getDragSession()==null)return;const M=y.getBoundingClientRect(),C=Lh(u.clientY,M);if(C===0)return;const k=Math.max(0,y.scrollHeight-y.clientHeight),A=Math.max(0,Math.min(k,y.scrollTop+C));A!==y.scrollTop&&(y.scrollTop=A,Q.current()),tr(vn(u.clientX,u.clientY)),tt.current=io(lo)},ao=(u,y)=>{ht.current={clientX:u,clientY:y},tt.current??=io(lo)},gl=(u,y,M)=>{const C=u.currentTarget;if(C!=null){if(Ht(),gn(),Ge(),zt(),t.startDrag(M)===!1){u.preventDefault();return}if(Ke.current=y,u.dataTransfer!=null&&(u.dataTransfer.effectAllowed="move",u.dataTransfer.dropEffect="move",u.dataTransfer.setData("text/plain",M),Vh())){const k=_i(C),A=C.getBoundingClientRect();Object.assign(k.style,{height:`${A.height}px`,opacity:"0.85",transform:"translate3d(-9999px, 0px, 0)",width:`${A.width}px`}),so(k),je.current=k,u.dataTransfer.setDragImage(k,Math.max(0,u.clientX-A.left),Math.max(0,u.clientY-A.top))}}},vl=()=>{gn(),Ge(),zt(),Ke.current=null,t.cancelDrag()},yl=(u,y,M)=>{if(Me.current!=null||Ve.current)return;const C=u.touches[0],k=u.currentTarget;if(C==null||k==null)return;rt.current={clientX:C.clientX,clientY:C.clientY},Ie.current=k,k.setAttribute("draggable","false");const A=(B={})=>{const $=B.restoreNativeDraggable??!Ve.current;Me.current!=null&&(clearTimeout(Me.current),Me.current=null),document.removeEventListener("touchmove",K),document.removeEventListener("touchend",N),document.removeEventListener("touchcancel",N),ke.current===A&&(ke.current=null),$&&(k.setAttribute("draggable","true"),Ie.current===k&&(Ie.current=null),rt.current=null)},K=B=>{const $=B.touches[0],q=rt.current;if($==null||q==null)return;const X=$.clientX-q.clientX,ge=$.clientY-q.clientY;X*X+ge*ge<=wi*wi||A()},N=()=>{A()};document.addEventListener("touchmove",K,{passive:!0}),document.addEventListener("touchend",N),document.addEventListener("touchcancel",N),ke.current=A,Me.current=setTimeout(()=>{if(A({restoreNativeDraggable:!1}),t.startDrag(M)===!1){k.setAttribute("draggable","true"),Ie.current===k&&(Ie.current=null),rt.current=null;return}Ve.current=!0,Ie.current=k,k.setAttribute("draggable","false"),k.style.setProperty("touch-action","none"),Ke.current=y;const B=k.getBoundingClientRect(),$=_i(k);Object.assign($.style,{height:`${B.height}px`,opacity:"0.85",transform:`translate3d(${B.left}px, ${B.top}px, 0)`,width:`${B.width}px`}),so($),je.current=$,Et.current={x:C.clientX-B.left,y:C.clientY-B.top};const q=Ne=>{const le=Ne.touches[0];if(le==null)return;Ne.preventDefault();const F=Et.current;F!=null&&je.current!=null&&(je.current.style.transform=`translate3d(${le.clientX-F.x}px, ${le.clientY-F.y}px, 0)`),tr(vn(le.clientX,le.clientY)),ao(le.clientX,le.clientY)},X=Ne=>{const le=Ne.changedTouches[0];le!=null&&vn(le.clientX,le.clientY),t.completeDrag(),Ht()},ge=()=>{t.cancelDrag(),Ht()};ke.current=()=>{document.removeEventListener("touchmove",q),document.removeEventListener("touchend",X),document.removeEventListener("touchcancel",ge)},document.addEventListener("touchmove",q,{passive:!1}),document.addEventListener("touchend",X),document.addEventListener("touchcancel",ge)},Nh)},co=u=>{if(z!=null){if(u.key==="Escape"){Pe(),u.preventDefault(),u.stopPropagation();return}Oh.has(u.key)&&(u.preventDefault(),u.stopPropagation());return}if(Rt.isActive()){if(u.isComposing||u.keyCode===229)return;if(u.key==="Escape")Rt.cancel();else if(u.key==="Enter")Rt.commit();else return;ot("focus"),$e(Z=>Z+1),u.preventDefault(),u.stopPropagation();return}if(d&&u.key==="F2"){fl(L??void 0),u.preventDefault(),u.stopPropagation();return}if(Le){if(u.key==="Escape")Se.current=!1,qe.current=null,t.closeSearch();else if(u.key==="Enter"){const Z=t.getFocusedPath();Z!=null&&t.selectOnlyPath(Z);const Fe=V.current,wn=Kt(Fe,pe);qe.current=H<0||Fe==null?null:Math.max(0,Math.min(H*l-Fe.scrollTop,Math.max(0,wn-l))),Se.current=!0,t.closeSearch()}else if(u.key==="ArrowDown")t.focusNextSearchMatch();else if(u.key==="ArrowUp")t.focusPreviousSearchMatch();else return;ot("focus"),$e(Z=>Z+1),u.preventDefault(),u.stopPropagation();return}if(c&&zh(u)){t.openSearch(u.key),$e(Z=>Z+1),u.preventDefault(),u.stopPropagation();return}const y=xe&&$s(u),M=qh(u,xe),C=M&&E.current!=null?kn(E.current):null,k=M?new Set(Kh(E.current)):new Set,A=C?.dataset.fileTreeStickyPath??null,K=C?.dataset.fileTreeStickyRow==="true"&&A!=null;if(K&&A!==L&&k.has(A)){const Z=V.current;Xn(A,Z?.scrollTop??null),t.focusPath(A)}const N=t.getFocusedPath(),B=t.getFocusedIndex(),$=t.getFocusedItem();if($==null)return;const q=ki($)?$:null,X=N!=null&&(fn.has(N)||K&&A===N&&k.has(N)),ge=u.key==="ArrowDown"||u.key==="ArrowUp"||u.key==="ArrowRight"&&q!=null&&q.isExpanded(),Ne=u.key==="ArrowLeft"&&X&&q!=null&&q.isExpanded(),le=V.current;let F=!0;if(u.shiftKey&&u.key==="ArrowDown")t.extendSelectionFromFocused(1);else if(u.shiftKey&&u.key==="ArrowUp")t.extendSelectionFromFocused(-1);else if(y&&N!=null&&B>=0){const Z=t.getVisibleRows(B,B)[0]??null,Fe=Di(N,fe.current,Y.current);Z==null||Fe==null?F=!1:oo(Z,N)}else if((u.ctrlKey||u.metaKey)&&js(u))t.toggleFocusedSelection();else if((u.ctrlKey||u.metaKey)&&u.key.toLowerCase()==="a")t.selectAllVisiblePaths();else switch(u.key){case"ArrowDown":t.focusNextItem();break;case"ArrowUp":t.focusPreviousItem();break;case"ArrowRight":q==null||q.isExpanded()?t.focusNextItem():q.expand();break;case"ArrowLeft":q!=null&&q.isExpanded()?q.collapse():t.focusParentItem();break;case"Home":t.focusFirstItem();break;case"End":t.focusLastItem();break;default:F=!1}if(!F)return;ot("focus");const J=t.getFocusedPath(),ye=J!=null&&(fn.has(J)||k.has(J)),In=ge&&J!==N,xn=y&&K&&A===N&&J===N;if((X||xn)&&J!=null&&(In&&ye||xn))Xn(J,le?.scrollTop??null),j.current=!0,We(Z=>Z===J?Z:J);else{const Z=u.key==="ArrowUp"&&X&&J!==N;J!=null&&(Z||Ne&&J===N)?(Qs(J,Gh(E.current,le,C,N,l,gt,pe)),j.current=!0,We(Fe=>Fe===J?Fe:J)):Xs()}$e(Z=>Z+1),u.preventDefault(),u.stopPropagation()};Ce(()=>{if(!(!c||!Le)){if(Gr.current){Gr.current=!1;return}It(de.current)}},[Le,c]),Ce(()=>{const u=S.current;switch(Ch({hasRenderedInput:u!=null,previousRenamingPath:re.current,renamingPath:mt})){case"reset":re.current=null;return;case"reveal-canonical":mt!=null&&mn(mt,{restoreTreeFocus:!1,targetOffset:"live-overlay"});return;case"ignore":return;case"focus-input":u!=null&&(un.current=null,re.current=mt,It(u),u.select());return}},[Te.end,Te.start,mt,mn,fn]),Ce(()=>{const u=E.current;if(u==null)return;let y=null;const M=()=>{y!=null&&(clearTimeout(y),y=null)},C=()=>{const K=kn(u)?.dataset.itemPath??null;We(N=>N===K?N:K)},k=()=>{M(),j.current=!0,C()},A=K=>{const N=K.relatedTarget;if(N==null){M(),y=setTimeout(()=>{if(y=null,kn(u)!=null){C();return}j.current=!1,We(null)},0);return}if(!(N instanceof Node)||!u.contains(N)){M(),j.current=!1,We(null);return}const B=N instanceof HTMLElement?N.dataset.itemPath??null:null;We($=>$===B?$:B)};return u.addEventListener("focusin",k),u.addEventListener("focusout",A),()=>{M(),u.removeEventListener("focusin",k),u.removeEventListener("focusout",A)}},[]),Ce(()=>{const u=E.current;u!=null&&(he.physical.scrollTop<=0?u.dataset.scrollAtTop="true":delete u.dataset.scrollAtTop)},[he.physical.scrollTop]),Ce(()=>{let u=null;const y=V.current,M=I.current,C=E.current;if(y==null)return;te.current=Kt(y,v);const k=()=>{const F=t.getVisibleCount(),J=ci(te.current,v),ye=Math.max(0,F*l-J);y.scrollTop>ye&&(y.scrollTop=ye),el(ar({controller:t,itemHeight:l,overscan:a,scrollTop:Math.min(y.scrollTop,ye),stickyFolders:g,viewportHeight:J}))};if(!ne.current){ne.current=!0;const F=t.getFocusedIndex();if(F>=0){const J=ci(te.current,v),ye=t.getVisibleRows(F,F)[0]??null;ui(y,F,l,J,g&&ye!=null?Math.max(0,Math.min(ye.ancestorPaths.length*l,Math.max(0,J-l))):0)}}Q.current=k;const A=t.subscribe(()=>{bh(ue)&&$e(F=>F+1),k()}),K=()=>{dn.current!==!0&&(M!=null&&(M.dataset.isScrolling??=""),C!=null&&(C.dataset.isScrolling??=""),b.current=!0,u!=null&&clearTimeout(u),u=setTimeout(()=>{M!=null&&delete M.dataset.isScrolling,C!=null&&delete C.dataset.isScrolling,b.current=!1,Ys(F=>F+1),u=null},50))};let N=null;const B=()=>{C!=null&&delete C.dataset.overlayReveal,N!=null&&(clearTimeout(N),N=null)},$=()=>{C==null||dn.current===!0||y.scrollTop>0||(C.dataset.overlayReveal="true",N!=null&&clearTimeout(N),N=setTimeout(()=>{B()},200))},q=()=>{if(k(),y.scrollTop>0&&B(),Dt.current!=null&&b.current&&er.current(),dn.current===!0){b.current=!1;return}cn(F=>F==null?F:null),K()},X=()=>{K(),$()},ge=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"," ","Spacebar"]),Ne=F=>{ge.has(F.key)&&X()};y.addEventListener("scroll",q,{passive:!0}),y.addEventListener("wheel",X,{passive:!0}),y.addEventListener("touchmove",X,{passive:!0}),y.addEventListener("keydown",Ne);const le=typeof ResizeObserver<"u"?new ResizeObserver(F=>{te.current=(F[0]==null?null:wh(F[0]))??Kt(y,v),k()}):null;return le?.observe(y),()=>{Q.current=()=>{},A(),y.removeEventListener("scroll",q),y.removeEventListener("wheel",X),y.removeEventListener("touchmove",X),y.removeEventListener("keydown",Ne),u!=null&&clearTimeout(u),N!=null&&clearTimeout(N),M!=null&&delete M.dataset.isScrolling,C!=null&&(delete C.dataset.isScrolling,delete C.dataset.overlayReveal),b.current=!1,te.current=null,le?.disconnect()}},[t,v,l,a,g]),Ce(()=>{xe||z==null||Pe(!1)},[Pe,xe,z]);const uo=Qe(()=>z==null?null:`${z.path}::${z.source}`,[z]);Ce(()=>{if(uo==null){p?.clearSlotContent(Yt);return}const u=Dt.current;if(u==null)return;const y=x.current??w.current;if(y==null)return;const M={anchorElement:y,anchorRect:u.anchorRect??jh(y.getBoundingClientRect()),close:k=>{er.current(k?.restoreFocus??!0)},restoreFocus:()=>{vt.current&&ro.current(Dt.current?.path??null)}},C=e?.contextMenu?.render?.(u.item,M)??null;return p?.setSlotContent(Yt,C),e?.contextMenu?.onOpen?.(u.item,M),Ai(C),queueMicrotask(()=>{C==null||!C.isConnected||document.activeElement===C&&Ai(C)}),()=>{p?.clearSlotContent(Yt)}},[uo,e?.contextMenu,p]),Ce(()=>{z!=null&&t.getItem(z.path)==null&&Pe()},[Pe,z,t]),Ce(()=>{if(z==null)return;const u=E.current?.getRootNode(),y=u instanceof ShadowRoot?u.host:E.current,M=k=>{const A=k.target;A instanceof Node&&(Pi(k)||w.current?.contains(A)!==!0&&y?.contains(A)!==!0&&Pe())},C=k=>{k.key==="Escape"&&(k.preventDefault(),k.stopPropagation(),Pe())};return document.addEventListener("mousedown",M,!0),document.addEventListener("keydown",C,!0),()=>{document.removeEventListener("mousedown",M,!0),document.removeEventListener("keydown",C,!0)}},[Pe,z]),Ce(()=>{const u=V.current,y=E.current;if(u==null||y==null){se.current=L;return}const M=L==null?null:Y.current.get(L)??null,C=kn(y),k=C?.dataset.itemPath??null,A=Jn&&S.current===C,K=c&&de.current===C,N=Se.current&&!Le,B=qe.current??0,$=un.current,q=Mt.current,X=Tt.current,ge=Nt.current,Ne=C!=null,le=j.current||Ne,F=se.current!==L,J=q!=null&&q===L&&L!=null;let ye=!1,In=!1;if(it!=null&&it.id!==ce.current){ce.current=it.id;const rr=it.visibleIndex,go=t.getVisibleRows(rr,rr)[0]??null;if(go!=null){const $l=g?Math.max(0,Math.min(go.ancestorPaths.length*l,Math.max(0,pe-l))):gt;ye=!0,In=Sh(u,rr,l,pe,st,it.offset,$l)}t.clearScrollRequest(it.id)}const xn=!ye&&N&&Wt(u,H,l,pe,st,B),Z=!ye&&$!=null&&$===L&&Wt(u,H,l,pe,st,gt),Fe=!ye&&X!=null&&X.path===L&&Wt(u,H,l,pe,st,X.viewportOffset),wn=!ye&&ge!=null&&ge.path===L&&u.scrollTop!==ge.scrollTop;if(wn&&(u.scrollTop=ge.scrollTop),(wn||In||Z||Fe||xn||le&&F&&$!==L&&!J&&ui(u,H,l,pe,gt))&&Q.current(),ye){se.current=L;return}if(!le){se.current=L;return}if(A){se.current=L;return}if(K&&!N){se.current=L;return}if(M==null){N&&H>=0&&(Wt(u,H,l,pe,st,B),Q.current()),se.current=L;return}(F||N||$===L||q===L||X?.path===L||ge?.path===L||k==null||k!==L)&&(It(M),$===L&&(un.current=null),q===L&&(Mt.current=null),X?.path===L&&(Tt.current=null),ge?.path===L&&(Nt.current=null),Se.current=!1,qe.current=null),se.current=L},[t,H,L,Zn,l,Jn,Le,Te,pe,c,it,g,gt,st,hn]);const bl=H>=0&&H>=he.visible.startIndex&&H<=he.visible.endIndex,Il=L!=null&&Ft.some(u=>xt(u.row)===L),xl=bl||Il,wl=pt&&j.current===!0&&xl?L:null,Sl=Ws==="pointer"?Wn:null,lt=z?.path??Wr.current??Sl??wl??Wn,ho=z?.source==="right-click";Ce(()=>{b.current&&z==null||Bt(At(lt))},[z,At,Te,pe,Gs,Ft,lt,Bt,hn]);const Cl=ve(u=>{if(b.current||Pi(u))return;const y=u.target;if(!(y instanceof HTMLElement)||y.closest?.('[data-type="context-menu-trigger"]')!=null)return;const M=y.closest?.('[data-file-tree-sticky-row="true"]'),C=y.closest?.('[data-type="item"]'),k=M instanceof HTMLElement?M.dataset.fileTreeStickyPath??null:C instanceof HTMLElement?C.dataset.itemPath??null:null;k!=null&&ot(A=>A==="pointer"?A:"pointer"),cn(A=>A===k?A:k)},[]),_l=ve(()=>{cn(null)},[]);Ce(()=>{if(!Ue)return;const u=()=>{Ht(),t.cancelDrag()};return window.addEventListener("dragend",u),()=>{window.removeEventListener("dragend",u),Ht(),t.cancelDrag()}},[t,Ue]);const kl=u=>{if(!Ue||t.getDragSession()==null||Ve.current)return;const y=Ci(u.target instanceof HTMLElement?u.target:null);t.setDragTarget(y),tr(t.getDragSession()?.target??null),ao(u.clientX,u.clientY),u.dataTransfer!=null&&(u.dataTransfer.dropEffect="move"),u.preventDefault()},Pl=u=>{if(!Ue||t.getDragSession()==null||Ve.current)return;const y=u.relatedTarget;y instanceof Node&&E.current?.contains(y)===!0||(Ge(),zt(),t.setDragTarget(null))},El=u=>{!Ue||t.getDragSession()==null||Ve.current||(u.preventDefault(),vn(u.clientX,u.clientY),t.completeDrag(),gn(),Ge(),zt(),Ke.current=null)},qt=he.window.height,Dl=he.window.offsetTop,Ml=Math.min(0,pe-qt),Tl=Math.min(0,pe-qt-gt),Nl=Kr===L||Se.current,yt=L!=null&&Nl&&!Zn&&H>=0?hn[H]??t.getVisibleRows(H,H)[0]??null:null,fo=yt==null?null:di(H,l,Te,qt),Ye=Ke.current,Al=Lt!=null&&Ye!=null&&Ye.path===Lt&&Ye.index>=Te.start&&Ye.index<=Te.end,Ot=Lt!=null&&Ye!=null&&Ye.path===Lt&&!Al&&Ye.path!==yt?.path?Ye:null,po=Ot==null?null:di(Ot.index,l,Te,qt),Rl=Hh((H>=0?hn[H]??t.getVisibleRows(H,H)[0]??null:null)?.ancestorPaths.at(-1)??null),Vl=Le&&L!=null?Us(s,L,!Zn):void 0,Ll=z?.path??(Le?L:Kr),Fl=z?.path??Wn,jt=At(lt),nr=xe&&pt&&!ho&&!Jn&&jt!=null&&Gn!=null&&lt!=null,Bl=xe&&(nr||z!=null),yn=z?.anchorRect,mo=yn==null&&jt!=null&&Gn!=null&&(z!=null||nr)?Gn:null,zl=yn!=null?{left:`${yn.left}px`,position:"fixed",right:"auto",top:`${yn.top}px`}:mo!=null?{top:`${mo}px`}:void 0,Hl=ho?{opacity:"0"}:void 0,ql=ve((u,y,M,C)=>{const k=Ph({event:{ctrlKey:u.ctrlKey,metaKey:u.metaKey,shiftKey:u.shiftKey},isDirectory:y.kind==="directory",isSearchOpen:Le,mode:C}),A=k.toggleDirectory&&y.kind==="directory",K=A?t.resolveMountedDirectoryPathFromInput(M):null;if(A&&K==null)return;const N=K??M;switch(k.selection.kind){case"range":t.selectPathRange(N,k.selection.additive);break;case"toggle":t.togglePathSelectionFromInput(N);break;case"single":t.selectOnlyMountedPathFromInput(N);break}const B=u.currentTarget instanceof HTMLElement?u.currentTarget:null,$=y.index>=he.visible.startIndex&&y.index<=he.visible.endIndex,q=C==="flow"&&$&&B!=null&&B.dataset.itemParked!=="true";t.focusMountedPathFromInput(N),q&&(j.current=!0,We(X=>X===N?X:N),ot("focus")),A&&t.toggleMountedDirectoryFromInput(N),k.closeSearch&&t.closeSearch(),k.revealCanonical&&mn(N,{targetOffset:"sticky-parents"})},[t,Le,he.visible.endIndex,he.visible.startIndex,mn]),Ol=()=>{if(b.current||!pt||lt==null||jt==null)return;const u=t.getItem(lt);u!=null&&(Bt(jt),vt.current=!0,Yn({anchorRect:null,item:{kind:u.isDirectory()?"directory":"file",name:jt.getAttribute("aria-label")??lt,path:u.getPath()},path:u.getPath(),source:"button"}))},bn={contextHoverPath:Fl,contextMenuButtonTriggerEnabled:pt,contextMenuButtonVisibility:Qr,contextMenuEnabled:xe,contextMenuRightClickEnabled:rl,contextMenuTriggerMode:ft,controller:t,directoriesWithGitChanges:o,dragAndDropEnabled:Ue,draggedPathSet:al,dragTarget:cl,gitLaneActive:Jr,gitStatusByPath:n,handleRowDragEnd:vl,handleRowDragStart:gl,handleRowTouchStart:yl,ignoredGitDirectories:r,ignoredInheritanceCache:an,instanceId:s,itemHeight:l,onKeyDown:co,onRowClick:ql,openContextMenuForRow:oo,registerButton:ol,registerRenameInput:sl,renameView:Rt,renderDecorationForRow:hl,resolveIcon:Zr,shouldSuppressContextMenu:pl,visualFocusPath:Ll},jl={...bn,registerButton:il};return _("div",{ref:E,id:eo,"data-file-tree-context-menu-button-visibility":xe&&pt?Qr:void 0,"data-file-tree-context-menu-trigger-mode":xe?ft:void 0,"data-file-tree-has-context-menu-action-lane":xe&&pt?"true":void 0,"data-file-tree-has-git-lane":Jr?"true":void 0,"data-file-tree-virtualized-root":"true",onDragLeave:Ue?Pl:void 0,onDragOver:Ue?kl:void 0,onDrop:Ue?El:void 0,onKeyDown:co,onPointerLeave:xe?_l:void 0,onPointerOver:xe?Cl:void 0,role:"tree",tabIndex:-1,style:{outline:"none",position:"relative"},children:[_("style",{"data-file-tree-guide-style":"true",dangerouslySetInnerHTML:{__html:Rl}}),_("slot",{name:Vn,"data-type":"header-slot"}),c?_("div",{"data-file-tree-search-container":!0,"data-open":Le?"true":"false",children:_("input",{ref:de,"aria-activedescendant":Vl,"aria-controls":eo,placeholder:"Search…","data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Js?"true":void 0,value:ll,onBlur:()=>{f==="retain"&&!Xr.current||t.closeSearch()},onFocus:Qn,onPointerDown:Qn,onInput:u=>{Qn();const y=u.currentTarget;t.setSearch(y.value)}})}):null,_("div",{ref:V,"data-file-tree-virtualized-scroll":"true",children:[g&&tl&&Ft.length>0?_("div",{"aria-hidden":"true","data-file-tree-sticky-overlay":"true",children:_("div",{"data-file-tree-sticky-overlay-content":"true",style:{height:`${ul}px`},children:Ft.map((u,y)=>Rn(jl,u.row,`sticky:${xt(u.row)}`,{mode:"sticky",style:{left:"0",position:"absolute",right:"0",top:`${u.top}px`,zIndex:`${Ft.length-y}`}}))})}):null,_("div",{ref:I,"data-file-tree-virtualized-list":"true",style:{height:`${st}px`},children:[_("div",{"data-file-tree-virtualized-sticky-offset":"true","aria-hidden":"true",style:{height:`${Dl}px`}}),_("div",{"data-file-tree-virtualized-sticky":"true",style:{height:`${qt}px`,top:`${Ml}px`,bottom:`${Tl}px`},children:[Qh(bn,Te,fn),yt!=null&&fo!=null?Rn(bn,yt,`parked:${yt.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:Lt===yt.path?"none":void 0,position:"absolute",right:"0",top:`${fo}px`}}):null,Ot!=null&&po!=null?Rn(bn,Ot,`parked-drag:${Ot.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:"none",position:"absolute",right:"0",top:`${po}px`}}):null]})]})]}),xe?_("div",{ref:w,"data-type":"context-menu-anchor","data-visible":Bl?"true":"false",style:zl,children:[_("button",{ref:x,type:"button","data-type":na,"aria-label":"Options","aria-haspopup":"menu","aria-expanded":z!=null?"true":"false","data-visible":nr?"true":"false",onMouseDown:u=>{u.preventDefault()},onClick:u=>{if(u.preventDefault(),u.stopPropagation(),z!=null){Pe();return}Ol()},tabIndex:-1,style:Hl,children:_(Zt,{...Zr("file-tree-icon-ellipsis")})}),z!=null?_("slot",{name:Yt}):null]}):null,z!=null?_("div",{"data-type":"context-menu-wash","aria-hidden":"true",onMouseDownCapture:u=>{u.preventDefault(),Pe()},onTouchStartCapture:u=>{u.preventDefault(),u.stopPropagation(),Pe()},onTouchMoveCapture:u=>{u.preventDefault(),u.stopPropagation()},onWheelCapture:u=>{u.preventDefault(),u.stopPropagation()}}):null]})}const Ur={hydrateRoot:(e,t)=>{Yd(xr(Ri,t),e)},renderRoot:(e,t)=>{Sr(xr(Ri,t),e)},unmountRoot:e=>{Sr(null,e)}};function Gt(e,t){Ur.renderRoot(e,t)}function Jh(e,t){Ur.hydrateRoot(e,t)}function Zh(e){Ur.unmountRoot(e)}var ef=class{#e=new Map;#t=null;clearAll(){for(const e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){const t=this.#c(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#l(e);for(const[t,n]of this.#e)this.#u(t,n)}}setSlotContent(e,t){const n=this.#c(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#u(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#u(e,t)}setSlotHtml(e,t){const n=t?.trim()??"";if(n.length===0){this.setSlotContent(e,null);return}const r=this.#c(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#u(e,r);return}const o=document.createElement("div");o.innerHTML=n,this.setSlotContent(e,o)}#c(e){const t=this.#e.get(e)??null;if(t!=null)return t;const n=this.#t;if(n==null)return null;for(const r of Array.from(n.children))if(r instanceof HTMLElement&&r.dataset.fileTreeManagedSlot===e)return r;return null}#u(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#l(e){for(const t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;const n=t.dataset.fileTreeManagedSlot;n==null||this.#e.has(n)||this.#e.set(n,t)}}};let Vi=0;function tf(e){return e!=null&&e.length>0?e:(Vi+=1,`pst_ft_${Vi}`)}function nf({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??qi)}function Li(e){if(typeof document>"u")return;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("svg");return n instanceof SVGElement?n:void 0}function Fi(e){return e.querySelector("#file-tree-icon-chevron")instanceof SVGElement&&e.querySelector("#file-tree-icon-file")instanceof SVGElement&&e.querySelector("#file-tree-icon-dot")instanceof SVGElement&&e.querySelector("#file-tree-icon-lock")instanceof SVGElement}function Bi(e){return Array.from(e.children).filter(t=>t instanceof SVGElement)}var rf=class{static LoadedCustomComponent=!0;#e;#t;#c;#u;#l;#z;#H;#v;#r;#y=new ef;#E;#b;#m;#h;#I;#x;#f;#q;#O;#R=null;#o;#j=!1;#$=!1;constructor(e){const{composition:t,density:n,fileTreeSearchMode:r,gitStatus:o,id:i,initialSearchQuery:s,icons:l,itemHeight:a,onSearchChange:d,onSelectionChange:h,overscan:f,renderRowDecoration:c,renaming:m,search:p,searchBlurBehavior:g,searchFakeFocus:v,stickyFolders:w,unsafeCSS:x,initialVisibleRowCount:b,...I}=e;this.#e=t,this.#c=tf(i),this.#h=ei(o),this.#I=l,this.#x=x,this.#u=h,this.#l=c,this.#z=m!=null&&m!==!1,this.#H=g,this.#v=p===!0,this.#r=v===!0,this.#E=yc(n,a),this.#b={itemHeight:this.#E.itemHeight,overscan:f,stickyFolders:w,initialVisibleRowCount:b},this.#t=new Td({...I,fileTreeSearchMode:r,initialSearchQuery:s,onSearchChange:d,renaming:m}),this.#O=this.#t.getSelectionVersion(),this.#R=this.#u==null?null:this.subscribe(()=>{this.#M()})}unmount(){this.#o!=null&&(Zh(this.#o),delete this.#o.dataset.fileTreeVirtualizedWrapper,this.#o=void 0),this.#y.clearAll(),this.#y.setHost(null),this.#m!=null&&(delete this.#m.dataset.fileTreeVirtualized,this.#L(this.#m),this.#m=void 0)}cleanUp(){this.unmount(),this.#R?.(),this.#R=null,this.#t.destroy()}getFileTreeContainer(){return this.#m}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#E.itemHeight}getDensityFactor(){return this.#E.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){const t=Vd(this.#h,e);if(t===this.#h)return;this.#h=t;const n=this.#s();n!=null&&Gt(n.wrapper,this.#D())}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){Array.isArray(e)?this.#t.resetPaths(e,t):this.#t.resetPaths(e)}setComposition(e){this.#e=e;const t=this.#s();t!=null&&(this.#_(),Gt(t.wrapper,this.#D()))}setGitStatus(e){const t=ei(e,this.#h);if(t===this.#h)return;this.#h=t;const n=this.#s();n!=null&&Gt(n.wrapper,this.#D())}setIcons(e){this.#I=e;const t=this.#s();t!=null&&(this.#g(t.host,t.wrapper),Gt(t.wrapper,this.#D()))}hydrate({fileTreeContainer:e}){const t=this.#N(e),n=this.#V(t);this.#_(),Jh(n,this.#D())}render({containerWrapper:e,fileTreeContainer:t}){const n=this.#N(t??this.#m,e),r=this.#V(n);this.#_(),Gt(r,this.#D())}#J(){return{initialViewportHeight:nf({initialVisibleRowCount:this.#b.initialVisibleRowCount,itemHeight:this.#b.itemHeight}),itemHeight:this.#b.itemHeight,overscan:this.#b.overscan,stickyFolders:this.#b.stickyFolders}}#D(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#h?.statusByPath,ignoredGitDirectories:this.#h?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#h?.directoriesWithChanges,icons:this.#I,instanceId:this.#c,renamingEnabled:this.#z,renderRowDecoration:this.#l,searchBlurBehavior:this.#H,searchEnabled:this.#v,searchFakeFocus:this.#r,slotHost:this.#y,...this.#J()}}#s(){const e=this.#m,t=this.#o;return e==null||t==null?null:{host:e,wrapper:t}}#g(e,t){const n=e.shadowRoot;n!=null&&(this.#U(n),this.#K(n)),this.#W(t)}#M(){const e=this.#u;if(e==null)return;const t=this.#t.getSelectionVersion();t!==this.#O&&(this.#O=t,e(this.#t.getSelectedPaths()))}#_(){const e=this.#e?.header?.render;if(e!=null){this.#y.setSlotContent(Vn,e());return}this.#y.setSlotHtml(Vn,this.#e?.header?.html??null)}#U(e){const t=Bi(e).find(r=>Fi(r)),n=Li(fc(Pn(this.#I).set));n!=null&&(t!=null&&t.outerHTML===n.outerHTML||(t!=null?t.replaceWith(n):e.prepend(n)))}#K(e){const t=Bi(e),n=t.find(s=>Fi(s)),r=t.filter(s=>s!==n),o=Pn(this.#I).spriteSheet?.trim()??"";if(o.length===0){for(const s of r)s.remove();return}const i=Li(o);if(i==null){for(const s of r)s.remove();return}if(!(r.length===1&&r[0].outerHTML===i.outerHTML)){for(const s of r)s.remove();e.appendChild(i)}}#W(e){const t=Pn(this.#I);t.colored&&mc(t.set)?e.dataset.fileTreeColoredIcons="true":delete e.dataset.fileTreeColoredIcons}#a(e){const t=e.querySelector(`style[${yo}]`);if(this.#f==null&&t instanceof HTMLStyleElement&&(this.#f=t),this.#x==null||this.#x===""){this.#f?.remove(),this.#f=void 0,this.#q=void 0;return}this.#f?.parentNode===e&&this.#q===this.#x||(this.#f??=document.createElement("style"),this.#f.setAttribute(yo,""),this.#f.parentNode!==e&&e.appendChild(this.#f),this.#f.textContent=bc(this.#x),this.#q=this.#x)}#V(e){if(this.#o!=null)return this.#o;const t=e.shadowRoot;if(t==null)throw new Error("FileTree requires a shadow root");const n=Array.from(t.children).filter(o=>o instanceof HTMLDivElement&&typeof o.dataset.fileTreeId=="string"&&o.dataset.fileTreeId.length>0),r=n.find(o=>o.dataset.fileTreeId===this.#c)??n[0];return r!=null&&(this.#c=r.dataset.fileTreeId??this.#c),this.#o=r??document.createElement("div"),this.#o.dataset.fileTreeId=this.#c,this.#o.dataset.fileTreeVirtualizedWrapper="true",this.#g(e,this.#o),this.#o.parentNode!==t&&t.appendChild(this.#o),this.#o}#N(e,t){const n=e??this.#m??document.createElement("file-tree-container");t!=null&&n.parentNode!==t&&t.appendChild(n);const r=n.shadowRoot??n.attachShadow({mode:"open"});return dr(n,r),this.#a(r),n.dataset.fileTreeVirtualized="true",n.style.display="flex",this.#C(n),this.#y.setHost(n),this.#m=n,n}#C(e){e.style.getPropertyValue("--trees-item-height")===""&&(e.style.setProperty("--trees-item-height",`${String(this.#E.itemHeight)}px`),this.#j=!0),e.style.getPropertyValue("--trees-density-override")===""&&(e.style.setProperty("--trees-density-override",String(this.#E.factor)),this.#$=!0)}#L(e){this.#j&&(e.style.removeProperty("--trees-item-height"),this.#j=!1),this.#$&&(e.style.removeProperty("--trees-density-override"),this.#$=!1)}};function of(e){const[t]=U.useState(()=>new rf(e)),n=U.useRef({timeout:null,model:t});return U.useEffect(()=>{const{current:r}=n;return r.timeout!=null&&(clearTimeout(r.timeout),r.timeout=null),()=>{r.timeout=setTimeout(()=>r.model.cleanUp(),1)}},[]),{model:t}}function sf(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!Object.is(e[n],t[n]))return!1;return!0}function lf(e,t,n){return Object.is(e,t)||n?.(e,t)===!0}function af(e,t,n){const r=U.useRef({hasValue:!1,model:null,selector:null,value:void 0}),o=U.useCallback(s=>e.subscribe(s),[e]),i=U.useCallback(()=>{const s=r.current,l=t(e);if(s.model!==e||s.selector!==t||!s.hasValue)return s.hasValue=!0,s.model=e,s.selector=t,s.value=l,l;const a=s.value;return lf(a,l,n)?a:(s.value=l,l)},[n,e,t]);return U.useSyncExternalStore(o,i,i)}function cf(e,t){return e.isOpen===t.isOpen&&e.value===t.value&&sf(e.matchingPaths,t.matchingPaths)}function uf(e){const t=af(e,n=>({isOpen:n.isSearchOpen(),matchingPaths:n.getSearchMatchingPaths(),value:n.getSearchValue()}),cf);return U.useMemo(()=>({...t,close:()=>{e.closeSearch()},focusNextMatch:()=>{e.focusNextSearchMatch()},focusPreviousMatch:()=>{e.focusPreviousSearchMatch()},open:n=>{e.openSearch(n)},setValue:n=>{e.setSearch(n)}}),[e,t])}const df=`
1269
+ :host {
1270
+ --trees-bg-override: transparent;
1271
+ --trees-selected-bg-override: color-mix(in srgb, currentColor 12%, transparent);
1272
+ --trees-hover-bg-override: color-mix(in srgb, currentColor 7%, transparent);
1273
+ --trees-border-color-override: color-mix(in srgb, currentColor 14%, transparent);
1274
+ --trees-font-family-override: var(--font-sans);
1275
+ --trees-font-size-override: 12px;
1276
+ }
1277
+ button[data-type='item'] { border-radius: 5px; }
1278
+ `;function hf(e,t,n){const r=document.createElement("div");r.setAttribute("role","menu"),r.className="bg-popover text-popover-foreground min-w-36 rounded-lg border border-border p-1 shadow-md";for(const o of t){const i=document.createElement("button");i.type="button",i.setAttribute("role","menuitem"),i.className="hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground flex w-full items-center rounded-md px-2 py-1.5 text-start text-xs outline-none",i.textContent=o.label,i.addEventListener("click",()=>{n(),o.run(e)}),r.appendChild(i)}return r}function ff(e){return e.kind==="dir"?`${e.path}/`:e.path}function gf({client:e,workspaceId:t,workspaceName:n,selectedPath:r,onOpenFile:o,fileActions:i}){const s=Kl(),l=U.useRef(s);l.current=s;const a=Wl({queryKey:["workspace-file-tree",t],queryFn:()=>e.listWorkspaceFiles(t),staleTime:3e4,refetchOnWindowFocus:!1}),d=a.data?.items??[],h=U.useMemo(()=>new Map(d.map(v=>[v.path,v])),[d]),f=U.useRef(h);f.current=h;const c=U.useRef(i);c.current=i;const m=U.useMemo(()=>d.map(ff),[d]),{model:p}=of({composition:{contextMenu:{triggerMode:"both",buttonVisibility:"when-needed",onOpen:(v,w)=>{const x=l.current;if(!x||(w.close(),v.kind!=="file"))return;const b=f.current.get(v.path.replace(/\/$/,"")),I=c.current??[];!b||b.kind!=="file"||I.length===0||x(I.map(S=>({type:"item",id:S.id,label:S.label,onSelect:()=>S.run(b)})),{point:{x:w.anchorRect.left,y:w.anchorRect.bottom}})},render:(v,w)=>{if(l.current||v.kind!=="file")return null;const x=f.current.get(v.path.replace(/\/$/,"")),b=c.current??[];return!x||x.kind!=="file"||b.length===0?null:hf(x,b,()=>w.close())}}},density:"compact",fileTreeSearchMode:"hide-non-matches",flattenEmptyDirectories:!0,initialExpansion:1,onSelectionChange:v=>{const w=v.at(-1)?.replace(/\/$/,""),x=w?f.current.get(w):void 0;x?.kind==="file"&&o(x)},paths:[],search:!1,unsafeCSS:df}),g=uf(p);return U.useEffect(()=>p.resetPaths(m),[p,m]),U.useEffect(()=>{const v=p.getItem(r);if(v){for(const w of p.getSelectedPaths())p.getItem(w)?.deselect();v.select()}},[p,m,r]),oe.jsxs("aside",{className:"flex h-full min-h-0 w-40 shrink-0 flex-col border-r border-border bg-muted/20","data-workspace-file-tree":!0,"data-workspace-file-count":d.length,children:[oe.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border px-1.5",children:[oe.jsxs(Gl,{className:"h-7 min-w-0 flex-1 bg-background",children:[oe.jsx(Yl,{align:"inline-start",children:oe.jsx(Xl,{})}),oe.jsx(Ql,{"aria-label":`Search ${n} files`,placeholder:"Search files",value:g.value,onChange:v=>{const w=v.target.value;w.trim()?g.setValue(w):g.close()}})]}),oe.jsx(Jl,{variant:"ghost",size:"icon-xs","aria-label":"Refresh workspace files",onClick:()=>void a.refetch(),children:oe.jsx(Zl,{className:Ul(a.isFetching&&"animate-spin")})})]}),a.isError?oe.jsx("p",{role:"alert",className:"p-3 text-xs text-dls-secondary",children:"Could not load workspace files. Use Refresh to try again."}):oe.jsx(la,{model:p,"aria-label":`${n} files`,className:"min-h-0 flex-1 overflow-hidden",style:{"--trees-fg-override":"var(--foreground)"}}),a.data?.incomplete?oe.jsx("p",{role:"status",className:"border-t border-border px-2 py-1 text-[10px] text-muted-foreground",children:"Some folders could not be read. Check their permissions and refresh."}):null]})}export{gf as WorkspaceFileTree};