PageSourceSearch

https://app.devin.ai/assets/useFileTree-S_MrDsFc.js

js devin.ai collected 2026-10-02 02:18:24 UTC 252,898 bytes, 1,838 lines download raw bytes

1import{n as e}from"./rolldown-runtime-BcKkbAw3.js";import{t}from"./react-TlXBPkuU.js";import{t as n}from"./jsx-runtime-BbDfbRii.js";function r(e,t){return t.length===0?e:e.replace(`</svg>`,`\n  ${t.join(`
2  `)}\n</svg>`)}function i(e){return je[e===`none`?`minimal`:e]}function a(e){return`file-tree-builtin-${e}`}function o(e){return e!==`none`&&Ie.has(e)}function s(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=Me[t.toLowerCase()];if(i!=null&&(r||Fe.has(i)))return i;for(let e of n){if(r){let t=Pe[e];if(t!=null)return t}let t=Ne[e];if(t!=null&&(r||Fe.has(t)))return t}return`default`}var c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,ee,te,w,T,E,ne,D,re,O,ie,k,A,ae,oe,se,ce,le,ue,de,fe,pe,me,j,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,M,ke,Ae,je,Me,Ne,Pe,Fe,Ie;function Le(){return(Le=e((()=>{c=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
3  <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
4    <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"/>
5  </symbol>
6  <symbol id="file-tree-icon-dot" viewBox="0 0 6 6">
7    <circle cx="3" cy="3" r="3" />
8  </symbol>
9  <symbol id="file-tree-icon-file" viewBox="0 0 16 16">
10    <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"/>
11    <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"/>
12  </symbol>
13  <symbol id="file-tree-icon-lock" viewBox="0 0 16 16">
14    <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" />
15  </symbol>
16  <symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
17    <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" />
18  </symbol>
19</svg>
19`,l=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
20  <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"/>
21  <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"/>
22</symbol>`,u=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
23  <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"/>
24</symbol>`,d=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
25  <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"/>
26  <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"/>
27</symbol>`,f=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
28  <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"/>
29</symbol>`,p=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
30  <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"/>
31  <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"/>
32</symbol>`,m=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
33  <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"/>
34  <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"/>
35  <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"/>
36</symbol>`,h=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
37  <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"/>
38</symbol>`,g=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
39  <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"/>
40</symbol>`,_=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
41  <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
41-.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"/>
42</symbol>`,v=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
43  <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"/>
44</symbol>`,y=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
45  <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"/>
46  <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"/>
47</symbol>`,b=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
48  <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"/>
49  <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"/>
50  <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"/>
51</symbol>`,x=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
52  <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"/>
53  <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"/>
54</symbol>`,S=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
55  <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"/>
56  <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.
5613.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"/>
57</symbol>`,C=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
58  <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"/>
59  <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"/>
60</symbol>`,ee=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
61  <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"/>
62</symbol>`,te=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
63  <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"/>
64</symbol>`,w=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
65  <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"/>
66</symbol>`,T=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
67  <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"/>
68</symbol>`,E=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
69  <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"/>
70  <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"/>
71</symbol>`,ne=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
72  <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"/>
73  <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"/>
74</symbol>`,D=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
75  <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"/>
76  <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"/>
77</symbol>`,re=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
78  <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"/>
79</symbol>`,O=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
80  <path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
81</symbol>`,ie=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
82  <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"/>
83  <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"/>
84</symbol>`,k=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
85  <defs>
86  <linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
87  <stop stop-color="currentColor"/>
88  <stop offset="1" stop-color="currentColor" stop-opacity="0"/>
89  </linearGradient>
90  </defs>
91  <path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
92  <path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
93  <path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
94</symbol>`,A=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
95  <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"/>
96  <path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
97</symbol>
97`,ae=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
98  <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"/>
99</symbol>`,oe=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
100  <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"/>
101</symbol>`,se=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
102  <path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
103  <path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
104  <path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
105  <path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
106</symbol>`,ce=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
107  <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"/>
108  <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"/>
109</symbol>`,le=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
110  <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"/>
111  <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
111-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"/>
112</symbol>`,ue=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
113  <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"/>
114</symbol>`,de=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
115  <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"/>
116</symbol>`,fe=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
117  <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"/>
118</symbol>`,pe=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
119  <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"/>
120  <path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
121</symbol>`,me=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
122  <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"/>
123</symbol>`,j=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
124  <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"/>
125  <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"/>
126</symbol>`,he=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
127  <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"/>
128  <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"/>
129</symbol>`,ge=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
130  <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"/>
131</symbol>`,_e=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
132  <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"/>
133  <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"/>
134</symbol>`,ve=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
135  <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"/>
136</symbol>`,ye=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
137  <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"/>
138</symbol>`,be=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
139  <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"/>
140  <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"/>
141</symbol>`,xe=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
142  <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"/>
143  <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"/>
144</symbol>`,Se=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
145  <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
145-.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"/>
146</symbol>`,Ce=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
147  <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"/>
148  <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"/>
149  <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"/>
150</symbol>`,we=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
151  <path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
152  <path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
153</symbol>`,Te=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
154  <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"/>
155  <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"/>
156  <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"/>
157</symbol>`,Ee=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
158  <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"/>
159  <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"/>
160</symbol>`,De=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
161  <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"/>
162</symbol>`,Oe=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
163  <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"/>
164  <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"/>
165</symbol>`,M=[d,g,v,y,b,x,ee,te,w,E,ne,D,re,O,ie,ce,ue,de,ge,_e,be,xe,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
166  <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"/>
167  <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"/>
168</symbol>`],ke=[l,u,f,p,m,h,_,S,C,T,k,A,ae,oe,se,le,fe,pe,me,j,he,ve,ye,Se,Ce,we,Te,Ee,De,Oe],Ae=r(c,M),je={minimal:c,standard:Ae,complete:r(Ae,ke)},Me={".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`},Ne={"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`,editor
168config:`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`},Pe={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},Fe=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`]),Ie=new Set([`complete`])})))()}var Re,ze,Be,Ve,He,Ue,We,Ge,Ke;function qe(){return(qe=e((()=>{Re=`file-tree-container`,ze=`data-file-tree-style`,Be=`data-file-tree-unsafe-css`,Ve=`data-file-tree-scrollbar-measure`,He=`data-file-tree-scrollbar-gutter-measured`,Ue=`--trees-scrollbar-gutter-measured`,We=`header`,Ge=`context-menu`,Ke=`context-menu-trigger`})))()}function Je(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function Ye(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(Je(e)?`none`:`complete`),colored:e.colored??!0}}function Xe(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function Ze(e){let t=Ye(e),n=t.remap,r=new Map;for(let[e,n]of Object.entries(t.byFileName??{}))r.set(e.toLowerCase(),n);let i=new Map;for(let[e,n]of Object.entries(t.byFileExtension??{}))i.set(Qe(e),n);let o=Object.entries(t.byFileNameContains??{}).map(([e,t])=>[e.toLowerCase(),t]);return{resolveIcon:(e,c)=>{if(e===`file-tree-icon-file`&&c!=null){let n=N(c),l=n.toLowerCase(),u=r.get(l);if(u!=null)return Xe(u,e);for(let[t,n]of o)if(l.includes(t))return Xe(n,e);let d=$e(n);for(let t of d){let n=i.get(t);if(n!=null)return Xe(n,e)}let f=s(t.set,n,d);if(f!=null&&t.set!==`none`)return{name:a(f),remappedFrom:e,token:f}}let l=n?.[e];return l==null?{name:e}:Xe(l,e)}}}var Qe,N,$e;function et(){return(et=e((()=>{Le(),Qe=e=>e.trim().toLowerCase(),N=e=>e.split(`/`).at(-1)??e,$e=e=>{let t=e.toLowerCase().split(`.`),n=[];for(let e=1;e<t.length;e+=1)n.push(t.slice(e).join(`.`));return n}})))()}function tt(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function nt(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function rt(e,t){if(t.childIdByNameId!=null)return t.childIdByNameId;let n=new Map;for(let r of t.childIds){let t=e[r];t!=null&&n.set(t.nameId,r)}return t.childIdByNameId=n,n}function it(e){if(e.childPositionById!=null)return e.childPositionById;let t=new Map;for(let n=0;n<e.childIds.length;n++){let r=e.childIds[n];r!=null&&t.set(r,n)}return e.childPositionById=t,t}function at(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function ot(e,t){if(e.childPositionById!=null)for(let n=t;n<e.childIds.length;n++){let t=e.childIds[n];t!=null&&e.childPositionById.set(t,n)}}function st(e,t){let n=0,r=0;for(let i of t.childIds){let t=e[i];
168t!=null&&(n+=t.subtreeNodeCount,r+=t.visibleSubtreeCount)}t.totalChildSubtreeNodeCount=n,t.totalChildVisibleSubtreeCount=r,dt(e,t)}function ct(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=it(e).get(t);if(i===void 0)return;let a=i>>pt;e.childVisibleChunkSums[a]+=r}function lt(e,t,n){let r=t.childVisibleChunkSums;if(r!=null){let i=n,a=0;for(let o of r){if(i<o){let r=ft(e,t,a,i);return{...r,childVisibleIndex:n-r.localVisibleIndex}}i-=o,a+=P}throw Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let r=0;r<t.childIds.length;r++){let a=t.childIds[r];if(a==null)continue;let o=e[a];if(o!=null){if(i<o.visibleSubtreeCount)return{childIndex:r,childVisibleIndex:n-i,localVisibleIndex:i};i-=o.visibleSubtreeCount}}throw Error(`Visible child index ${String(n)} is out of range`)}function ut(e,t,n){let r=0,i=t.childVisibleChunkSums,a=0;if(i!=null){let e=n>>pt;for(let t=0;t<e;t+=1)r+=i[t]??0;a=e<<pt}for(let i=a;i<n;i+=1){let n=t.childIds[i];if(n==null)continue;let a=e[n];a!=null&&(r+=a.visibleSubtreeCount)}return r}function dt(e,t){if(t.childIds.length<F){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/P),r=new Int32Array(n);for(let n=0;n<t.childIds.length;n++){let i=t.childIds[n];if(i==null)continue;let a=e[i];a!=null&&(r[n>>pt]+=a.visibleSubtreeCount)}t.childVisibleChunkSums=r}function ft(e,t,n,r){let i=Math.min(t.childIds.length,n+P),a=r;for(let r=n;r<i;r++){let n=t.childIds[r];if(n==null)continue;let i=e[n];if(i!=null){if(a<i.visibleSubtreeCount)return{childIndex:r,localVisibleIndex:a};a-=i.visibleSubtreeCount}}throw Error(`Visible child index ${String(r)} is out of range`)}var pt,P,F;function mt(){return(mt=e((()=>{pt=5,P=32,F=128})))()}function I(e,t,n=0){return e<<bt|n<<yt|t}function L(e){return e.depthAndFlags>>>bt}function ht(e){return(e.depthAndFlags&V)>>yt}function R(e){return(e.depthAndFlags&V)!==0}function gt(e){return e.depthAndFlags&B}function z(e,t){return(gt(e)&t)!==0}function _t(e,t){e.depthAndFlags|=t}function vt(e,t){e.depthAndFlags=I(t,gt(e),ht(e))}var B,yt,V,bt;function xt(){return(xt=e((()=>{B=7,yt=3,V=8,bt=4})))()}function St(e,t){return t==null||Object.defineProperty(e,Tt,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function Ct(e){return e==null?null:e[Tt]??null}function H(e,t,n){return e==null?n():e.measurePhase(t,n)}function wt(e,t,n){!Number.isFinite(n)||e==null||e.setCounter(t,n)}var Tt;function Et(){return(Et=e((()=>{Tt=Symbol(`benchmarkInstrumentation`)})))()}function Dt(e){return e>=48&&e<=57}function Ot(e){let t=[],n=0,r=0;for(;r<e.length;){for(;r<e.length&&!Dt(e.charCodeAt(r));)r+=1;if(r>=e.length)break;r>n&&t.push(e.slice(n,r));let i=0;for(;r<e.length&&Dt(e.charCodeAt(r));)i=i*10+(e.charCodeAt(r)-48),r+=1;t.push(i),n=r}return(n<e.length||t.length===0)&&t.push(e.slice(n)),t}function kt(e){let t=e.toLowerCase();return{lowerValue:t,tokens:Ot(t)}}function At(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===i)continue;if(typeof n==`number`&&typeof i==`number`)return n<i?-1:1;let a=String(n),o=String(i);if(a!==o)return a<o?-1:1}return e.length===t.length?0:e.length<t.length?-1:1}function jt(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;let n=At(e.tokens,t.tokens);return n===0?e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1:n}function Mt(e,t,n){let r=jt(n(e),n(t));return r===0?e===t?0:e<t?-1:1:r}function Nt(e,t){return Mt(e,t,kt)}function Pt(e,t){return t===e.segments.length-1?+!!e.isDirectory:1}function Ft(e,t){let n=Math.min(e.segments.length,t.segments.length);for(let r=0;r<n;r++){let n=e.segments[r],i=t.segments[r];if(n===i)continue;let a=Pt(e,r);return a===Pt(t,r)?Nt(n,i):a===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function It(e,t){return Ft(e,t)}function Lt(e,t,n){let r=e=>{let t=n.get(e);if(t!=null)return t;let r=kt(e);return n.set(e,r),r},i=Math.min(e.segments.length,t.segments.length);for(let n=0;n<i;n++){let i=e.segments[n],a=t.segments[n];if(i===a)continue;let o=Pt(e,n);return o===Pt(t,n)?Mt(i,a,r):o===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function Rt(e,t){let n=e.sortKeyById[t];if(n!==void 0)return n;let r=e.valueById[t],i=kt(r);return e.sortKeyById[t]=i,i}function zt(){return(zt=e((()=>{xt()})))()}function Bt(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??`default`}}function Vt(e){let t=e.length>0&&e.charCodeAt(e.length-1)===47,n=t?e.length-1:e.length,r=[],i=0;for(let t=0;t<n;t++)e.charCodeAt(t)===47&&(r.push(e.slice(i,t)),i=t+1);return r.push(e.slice(i,n)),{hasTrailingSlash:t,segments:r}}function Ht(e){let{hasTrailingSlash:t,segments:n}=Vt(e);return{basename:n[n.length-1]??``,isDirectory:t,path:e,segments:n}}function Ut(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=Vt(e);return{requiresDirectory:t,segments:n}}function Wt(){let e=new Map;return e.set(qt,0),{idByValue:e,valueById:[qt],sortKeyById:[kt(qt)]}}function Gt(e,t){let n=e.idByValue.get(t);if(n!==void 0)return n;let r=e.valueById.length;return e.idByValue.set(t,r),e.valueById.push(t),r}function Kt(e,t){let n=e.valueById[t];
168if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var qt;function Jt(){return(Jt=e((()=>{zt(),qt=``})))()}function Yt(e,t){return e[dn]=t,e}function Xt(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function Zt(e,t,n){return n==="default"?It(e,t):n(Xt(e),Xt(t))}function Qt(){return{depthAndFlags:I(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function $t(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!==t[r])return r;return n}function en(e){return e.isDirectory?e.segments.length:e.segments.length-1}function tn(e){return Array.isArray(e)&&e.every(e=>typeof e==`object`&&!!e&&typeof e.path==`string`&&Array.isArray(e.segments)&&typeof e.basename==`string`&&typeof e.isDirectory==`boolean`)}function nn(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function rn(e,t={}){return un(e,t).map(e=>e.path)}function an(e,t={}){let n=un(e,t);return Yt({paths:n.map(e=>e.path),preparedPaths:n},`prepared`)}function on(e){let t=e.length,n=!1;for(let r=0;r<t;r+=1){let t=e[r];if(t.length>0&&t.charCodeAt(t.length-1)===47){n=!0;break}}return Yt({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},`presorted`)}function sn(e){let t=e,n=t.preparedPaths;if(t[dn]===`prepared`&&n!=null)return n;if(!tn(n))throw Error(`preparedInput must come from PathStore.prepareInput()`);return n}function cn(e){let t=e;return t[dn]===`presorted`&&t.presortedPaths!=null||nn(t.presortedPaths)?t.presortedPaths:null}function ln(e){let t=e;return typeof t.presortedPathsContainDirectories==`boolean`?t.presortedPathsContainDirectories:null}function un(e,t={}){let n=Bt(t),r=Ct(t);wt(r,`workload.inputFiles`,e.length);let i=H(r,`store.preparePathEntries.parse`,()=>e.map(e=>Ht(e)));return H(r,`store.preparePathEntries.sort`,()=>i.sort((e,t)=>Zt(e,t,n.sort))),i}var dn,fn;function pn(){return(pn=e((()=>{mt(),xt(),Et(),zt(),Jt(),dn=Symbol(`pathStorePreparedInputKind`),fn=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;
168nodes=[Qt()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=Wt();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=Ct(e),this.options=Bt(e);let t=e.initialExpandedPaths??null;if(t==null||t.length===0)this.initialExpandedPathSet=null;else{let e=new Set,n=t.length;for(let r=0;r<n;r+=1){let n=t[r],i=n.length;e.add(i>0&&n.charCodeAt(i-1)===47?n.slice(0,i-1):n)}this.initialExpandedPathSet=e,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,tt())}appendPaths(e){return H(this.instrumentation,`store.builder.appendPaths.parse`,()=>this.appendPreparedPaths(e.map(e=>Ht(e))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,H(this.instrumentation,`store.builder.appendPreparedPaths`,()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return H(this.instrumentation,`store.builder.appendPresortedPaths`,()=>{if(t===!1){this.appendPresortedFilePaths(e);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,a=this.segmentTable,o=a.idByValue,s=a.valueById,c=this.directoryStack,l=0,u=``,d=0;for(let t of e){if(n===t)throw Error(`Duplicate path: "${t}"`);let e=t.length>0&&t.charCodeAt(t.length-1)===47,a=e?t.length-1:t.length,f=0,p=0;if(n!=null){if(u.length>0&&t.length>u.length&&t.startsWith(u))f=d,p=u.length;else{let r=Math.min(a,n.length),i=!0;for(let e=0;e<r;e++){let r=t.charCodeAt(e);if(r!==n.charCodeAt(e)){i=!1;break}r===47&&(f++,p=e+1)}i&&e&&r===a&&n.length>a&&n.charCodeAt(a)===47&&(f++,p=a+1)}}l=f,r=f;let m=p,h=t.indexOf(`/`,m);for(;h>=0&&h<a;){let e=c[l];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);r++;let n=t.slice(m,h),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n));let u=i.length;i.push({depthAndFlags:I(r,0,1),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(t.slice(0,h)),l++,c[l]=u,m=h+1,h=t.indexOf(`/`,m)}if(e){if(m<a){let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory parent for "${t}"`);r++;let n=t.slice(m,a),u=o.get(n);u===void 0&&(u=s.length,o.set(n,u),s.push(n));let d=i.length;i.push({depthAndFlags:I(r,0,1),nameId:u,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),l++,c[l]=d}let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory node for "${t}"`);this.promoteDirectoryToExplicit(e,t)}else{let e=c[l];if(e===void 0)throw Error(`Unable to resolve file parent for "${t}"`);let n=t.slice(m),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n)),i.push({depthAndFlags:I(r+1,0),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1})}m!==u.length&&(u=t.substring(0,m),d=r),n=t}c.length=l+1,n!=null&&(this.lastPreparedPath=Ht(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(e){let t=null,n=0,r=this.nodes,i=this.segmentTable,a=i.idByValue,o=i.valueById,s=this.directoryStack,c=0,l=``,u=0;for(let i of e){if(t===i)throw Error(`Duplicate path: "${i}"`);let e=i.length,d=0,f=0;if(t!=null){if(l.length>0&&i.length>l.length&&i.startsWith(l))d=u,f=l.length;else{let n=Math.min(e,t.length);for(let e=0;e<n;e++){let n=i.charCodeAt(e);if(n!==t.charCodeAt(e))break;n===47&&(d++,f=e+1)}}}c=d,n=d;let p=f,m=i.indexOf(`/`,p);for(;m>=0;){let e=s[c];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);n++;let t=i.slice(p,m),l=a.get(t);l===void 0&&(l=o.length,a.set(t,l),o.push(t));let u=r.length;r.push({depthAndFlags:I(n,0,1),nameId:l,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(i.slice(0,m)),this.presortedDirectoryNodeIds.push(u),c++,s[c]=u,p=m+1,m=i.indexOf(`/`,p)}let h=s[c];if(h===void 0)throw Error(`Unable to resolve file parent for "${i}"`);let g=i.slice(p),_=a.get(g);_===void 0&&(_=o.length,a.set(g,_),o.push(g)),r.push({depthAndFlags:I(n+1,0),nameId:_,parentId:h,subtreeNodeCount:1,visibleSubtreeCount:1}),p!==l.length&&(l=i.substring(0,p),u=n),t=i}s.length=c+1,t!=null&&(this.lastPreparedPath=Ht(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(H(this.instrumentation,`store.builder.buildDirectoryIndexes`,()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||H(this.instrumentation,`store.builder.computeSubtree
168Counts`,()=>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(),!1),this.lastPreparedPath!=null){if(e.path===this.lastPreparedPath.path)throw Error(`Duplicate path: "${e.path}"`);if(t&&(this.options.sort==="default"?Lt(this.lastPreparedPath,e,this.segmentSortKeyCache):Zt(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}let n=this.lastPreparedPath,r=en(e),i=n==null?0:en(n),a=n==null?0:$t(n.segments,e.segments),o=Math.min(a,r,i);this.directoryStack.length=o+1;for(let n=o;n<r;n++){let r=this.directoryStack[this.directoryStack.length-1];if(r===void 0)throw Error(`Directory stack underflow while building the path store`);let i=t?this.getOrCreateDirectoryChild(r,e.segments[n]):this.createDirectoryChild(r,e.segments[n]);this.directoryStack.push(i)}if(e.isDirectory){let t=this.directoryStack[this.directoryStack.length-1];if(t===void 0)throw Error(`Unable to resolve directory node for "${e.path}"`);this.promoteDirectoryToExplicit(t,e.path),this.lastPreparedPath=e;return}let s=this.directoryStack[this.directoryStack.length-1];if(s===void 0)throw Error(`Unable to resolve file parent for "${e.path}"`);t?this.createFileChild(s,e.basename,e.path):this.createFileChildUnchecked(s,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){let r=Gt(this.segmentTable,t),i=this.getDirectoryIndex(e),a=i.childIdByNameId;if(a!=null&&a.get(r)!==void 0)throw Error(`Path collides with an existing entry: "${n}"`);let o=this.nodes[e];if(o===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let s=this.nodes.length;return this.nodes.push({depthAndFlags:I(L(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),a?.set(r,s),at(i,s),s}createFileChildUnchecked(e,t){let n=Gt(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:I(L(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),at(r,a),a}getOrCreateDirectoryChild(e,t){let n=Gt(this.segmentTable,t),r=this.getDirectoryIndex(e);if(r.childIdByNameId!=null){let e=r.childIdByNameId.get(n);if(e!==void 0){let n=this.nodes[e];if(n!=null&&!R(n))throw Error(`Path collides with an existing file while creating directory "${t}"`);return e}}let i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:I(L(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),at(r,a),this.directories.set(a,tt()),a}createDirectoryChild(e,t){let n=Gt(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:I(L(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),at(r,a),this.directories.set(a,tt()),a}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!R(n))throw Error(`Path is not a directory: "${t}"`);if(z(n,1))throw Error(`Duplicate path: "${t}"`);_t(n,1)}getDirectoryIndex(e){let t=this.directories.get(e);if(t!==void 0)return t;throw Error(`Unknown directory child index for node ${String(e)}`)}buildPresortedFinish(e){let t=this.nodes,n=this.directories;n.set(0,nt());let r=-1,i=null;for(let e=1;e<t.length;e++){let a=t[e];if(a==null)continue;if(R(a)){let t=nt();n.set(e,t),r=e,i=t}let o;a.parentId===r?o=i:(o=n.get(a.parentId),r=a.parentId,i=o??null),o?.childIds.push(e)}if(!e)for(let e=t.length-1;e>=1;e--){let n=t[e];if(n==null)continue;let r=t[n.parentId];r!=null&&(r.subtreeNodeCount+=n.subtreeNodeCount,r.visibleSubtree
168Count+=n.visibleSubtreeCount)}}buildDirectoryIndexes(){let e=this.nodes;for(let t=1;t<e.length;t++){let n=e[t];if(n==null)continue;R(n)&&this.directories.set(t,tt());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),at(r,t))}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!R(t))return t.subtreeNodeCount=1,t.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(e),r=1;for(let e of n.childIds)r+=this.computeSubtreeCounts(e);return st(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}}})))()}function mn(e,t=`closed`,n=null){let r=gn(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 hn(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function gn(e){if(typeof e!=`number`)return e;if(!Number.isInteger(e)||e<0)throw Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(e)}`);return e}function _n(e,t){return z(t,2)||e.defaultExpansion===`open`?!0:e.defaultExpansion!==`closed`&&L(t)<=e.defaultExpansion}function U(e,t,n=e.snapshot.nodes[t]){return n==null||!R(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:_n(e,n)}function vn(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!R(r))return;let i=_n(e,r);if(n){if(i){e.collapsedDirectoryIds.delete(t),e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0;return}e.expandedDirectoryIds.add(t);return}if(i){e.collapsedDirectoryIds.add(t),e.hasCollapsedDirectoryOverrides=!0;return}e.expandedDirectoryIds.delete(t)}function yn(e,t){let n=e.directoryLoadInfoById.get(t);if(n!=null)return n;let r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:`loaded`};return e.directoryLoadInfoById.set(t,r),r}function bn(e,t){return e.directoryLoadInfoById.get(t)?.state??`loaded`}function xn(e,t){let n=yn(e,t);if(n.state===`loading`&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:t,reused:!0};let r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state=`loading`,{attemptId:r,nodeId:t,reused:!1}}function Sn(e,t){let n=yn(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state=`unloaded`}function Cn(e,t,n){let r=e.directoryLoadInfoById.get(t);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state=`loaded`,!0)}function wn(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function Tn(e,t,n,r){let i=e.directoryLoadInfoById.get(t);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state=`error`,!0)}function En(e,t){e.directoryLoadInfoById.delete(t)}function Dn(){return(Dn=e((()=>{xt()})))()}function On(e,t,n){let r=n,i=e.listeners.get(t);return i==null?e.listeners.set(t,new Set([r])):i.add(r),()=>{let n=e.listeners.get(t);n!=null&&(n.delete(r),n.size===0&&e.listeners.delete(t))}}function kn(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`add`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function An(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`remove`,path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function jn(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:`move`,projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function Mn(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`expand`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function Nn(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`collapse`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function Pn(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`mark-directory-unloaded`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function Fn(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 In(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:e.childEvents.some(e=>e.canonicalChanged),childEvents:e.childEvents,operation:`apply-child-patch`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function Ln(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 Rn(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 zn(e){return{activeNodeCountAfter:e.activeNodeCountAfter,activeNodeCountBefore:e.activeNodeCountBefore,affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],cachedPathEntryCountAfter:e.cac
168hedPathEntryCountAfter,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 Bn(e,t,n){return{...n,visibleCountDelta:Zn(e)-t}}function Vn(e,t){let n=Zn(e),r=hn();e.transactionStack.push(r);try{t()}catch(t){throw Wn(e,r,!1),t}Wn(e,r,!0,Zn(e)-n)}function Hn(e,t){let n=e.instrumentation;if(n==null){Un(e,t);return}H(n,`store.events.record`,()=>Un(e,t))}function Un(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){Yn(e,t);return}n.events.push(t),Jn(n,t)}function Wn(e,t,n,r=null){if(e.transactionStack.pop()!==t)throw Error(`Transaction stack underflow`);if(!n)return;let i=e.transactionStack[e.transactionStack.length-1]??null;if(i!=null){let n=e.instrumentation;n==null?qn(i,t):H(n,`store.events.batch.merge`,()=>qn(i,t));return}let a=Gn(t,r),o=e.instrumentation;if(o==null){Yn(e,a);return}H(o,`store.events.batch.commit`,()=>Yn(e,a))}function Gn(e,t){return{affectedAncestorIds:[...e.affectedAncestorIds],affectedNodeIds:[...e.affectedNodeIds],canonicalChanged:e.events.some(e=>e.canonicalChanged),events:[...e.events],operation:`batch`,projectionChanged:e.events.some(e=>e.projectionChanged),visibleCountDelta:t}}function Kn(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function qn(e,t){for(let n of t.events)e.events.push(n);Kn(e,t)}function Jn(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function Yn(e,t){let n=e.instrumentation;if(n==null){Xn(e,t);return}H(n,`store.events.emit`,()=>Xn(e,t))}function Xn(e,t){e.listeners.get(t.operation)?.forEach(e=>e(t)),e.listeners.get(`*`)?.forEach(e=>e(t))}function Zn(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function Qn(){return(Qn=e((()=>{Et(),Dn()})))()}function $n(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];
168if(n==null||!R(n)||z(n,2))return null;let r=e.snapshot.directories.get(t);if(r==null||r.childIds.length!==1)return null;let i=r.childIds[0];if(i==null)return null;let a=e.snapshot.nodes[i];return a==null||!R(a)?null:i}function er(e,t){let n=t;for(;;){let t=$n(e,n);if(t==null)return n;n=t}}function tr(e,t){let n=[t],r=t;for(;;){let t=$n(e,r);if(t==null)return n;n.push(t),r=t}}function nr(){return(nr=e((()=>{xt()})))()}function rr(e,t){let n=t==null?e.snapshot.rootId:fr(e,t);return n==null?[]:mr(e,n)}function ir(e,t){let n=Ht(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=kr(e,Or(e,r)),{createdNodeIds:a,directoryId:o}=hr(e,r),s=new Set(a),c=o;if(n.isDirectory){let n=K(e,o);if(z(n,1))throw Error(`Path already exists: "${t}"`);_t(n,1),e.pathCacheByNodeId.set(o,{path:t,version:e.pathCacheVersion}),s.add(o)}else c=_r(e,o,n.basename),s.add(c);lr(e,o);let l=kr(e,o);return kn({affectedAncestorIds:dr(e,c),affectedNodeIds:[...s],path:t,projectionChanged:Ar(i,l)})}function ar(e,t,n){let r=fr(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=K(e,r);if(z(i,2))throw Error(`The root node cannot be removed`);if(R(i)&&G(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let a=i.parentId,o=kr(e,a),s=Er(e,r);br(e,a,r,i.nameId),Dr(e,a),lr(e,a);let c=kr(e,a);return An({affectedAncestorIds:dr(e,a),affectedNodeIds:s,path:t,projectionChanged:Ar(o,c),recursive:n.recursive===!0})}function or(e,t,n,r){let i=fr(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let a=K(e,i);if(z(a,2))throw Error(`The root node cannot be moved`);let o=r.collision??`error`,s=wr(e,i,n),c=kr(e,a.parentId),l=kr(e,s.parentId),u=Kt(e.snapshot.segmentTable,a.nameId),d=Gt(e.snapshot.segmentTable,s.basename);if(s.parentId===a.parentId&&u===s.basename)return null;if(R(a)&&Pr(e,i,s.parentId))throw Error(`Cannot move a directory into one of its descendants`);let f=rt(e.snapshot.nodes,G(e,s.parentId)).get(d),p=s.existingNodeId??f??null;if(p!=null&&p!==i&&Tr(e,p,o,ht(a))===`skip`)return null;let m=a.parentId;br(e,m,i,a.nameId),a.parentId=s.parentId,a.nameId=d,e.pathCacheByNodeId.delete(i),Nr(e,i),yr(e,s.parentId,i),Dr(e,m),e.pathCacheVersion++,lr(e,m),s.parentId!==m&&lr(e,s.parentId);let h=kr(e,m),g=kr(e,s.parentId);return jn({affectedAncestorIds:[...new Set([...dr(e,m),...dr(e,s.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:jr([c,l],[h,g]),to:W(e,i)})}function sr(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function cr(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function W(e,t){let n=K(e,t),r=sr(e,t);if(r!=null)return r;if(z(n,2))return cr(e,t,``);let i=W(e,n.parentId),a=Kt(e.snapshot.segmentTable,n.nameId),o=i.length===0?a:`${i}${a}`;return cr(e,t,R(n)?`${o}/`:o)}function lr(e,t){let n=e.instrumentation;if(n==null){Ir(e,t);return}H(n,`store.recomputeCountsUpwardFrom`,()=>Ir(e,t))}function ur(e,t){let n=[[t,0]],{nodes:r,directories:i}=e.snapshot;for(;n.length>0;){let t=n[n.length-1],a=t[0],o=r[a];if(o==null||!R(o)){Fr(e,a,o,!0),n.pop();continue}let s=i.get(a);if(s==null||t[1]>=s.childIds.length){Fr(e,a,o,!0),n.pop();continue}let c=s.childIds[t[1]++];n.push([c,0])}}function dr(e,t){let n=[],r=t;for(;r!=null;){let t=K(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=t.parentId}return n}function fr(e,t){if(t.length===0)return e.snapshot.rootId;let n=Ut(t);return pr(e,n.segments,n.requiresDirectory)}function pr(e,t,n){let r=e.snapshot.rootId;for(let n of t){let t=e.snapshot.segmentTable.idByValue.get(n);if(t===void 0)return null;let i=G(e,r),a=rt(e.snapshot.nodes,i).get(t);if(a===void 0)return null;r=a}let i=K(e,r);return n&&!R(i)?null:r}function G(e,t){let n=e.snapshot.directories.get(t);if(n===void 0)throw Error(`Unknown directory child index for node ${String(t)}`);return n}function K(e,t){let n=e.snapshot.nodes[t];
168if(n===void 0||z(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function mr(e,t){let n=e.snapshot.nodes[t];if(n===void 0||z(n,4))return[];if(!R(n))return[W(e,t)];if(G(e,t).childIds.length===0)return z(n,1)&&!z(n,2)?[W(e,t)]:[];let r=[],i=[{childIndex:0,nodeId:t}];for(;i.length>0;){let t=i[i.length-1];if(t==null)break;let n=e.snapshot.nodes[t.nodeId];if(n===void 0||z(n,4)){i.pop();continue}if(!R(n)){r.push(W(e,t.nodeId)),i.pop();continue}let a=G(e,t.nodeId);if(a.childIds.length===0){z(n,1)&&!z(n,2)&&r.push(W(e,t.nodeId)),i.pop();continue}let o=a.childIds[t.childIndex];if(o==null){i.pop();continue}t.childIndex++,i.push({childIndex:0,nodeId:o})}return r}function hr(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let t=Gt(e.snapshot.segmentTable,i),a=G(e,r),o=rt(e.snapshot.nodes,a).get(t);if(o!==void 0){if(!R(K(e,o)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=o;continue}r=gr(e,r,t),n.push(r)}return{createdNodeIds:n,directoryId:r}}function gr(e,t,n){let r=K(e,t),i=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:I(L(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,tt()),yr(e,t,i),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,i}function _r(e,t,n){let r=Gt(e.snapshot.segmentTable,n),i=G(e,t);if(rt(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${Rr(e,t,n)}"`);let a=K(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:I(L(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),yr(e,t,o),e.activeNodeCount++,o}function vr(e,t,n){let r=0,i=t.childIds.length;for(;r<i;){let a=r+i>>>1,o=t.childIds[a];if(o==null){i=a;continue}xr(e,n,o)<0?i=a:r=a+1}return r}function yr(e,t,n){let r=G(e,t),i=K(e,n);rt(e.snapshot.nodes,r).set(i.nameId,n),ct(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let a=vr(e,r,n);r.childIds.splice(a,0,n),ot(r,a),dt(e.snapshot.nodes,r)}function br(e,t,n,r){let i=G(e,t),a=it(i),o=a.get(n)??-1;rt(e.snapshot.nodes,i).delete(r),a.delete(n);let s=e.snapshot.nodes[n];s!=null&&ct(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),o>=0&&(i.childIds.splice(o,1),ot(i,o),dt(e.snapshot.nodes,i))}function xr(e,t,n){let r=e.snapshot.options.sort;return r==="default"?Sr(e,t,n):r(Cr(e,t),Cr(e,n))}function Sr(e,t,n){let r=K(e,t),i=K(e,n),a=R(r);if(a!==R(i))return a?-1:1;let o=jt(Rt(e.snapshot.segmentTable,r.nameId),Rt(e.snapshot.segmentTable,i.nameId));if(o!==0)return o;let s=Kt(e.snapshot.segmentTable,r.nameId),c=Kt(e.snapshot.segmentTable,i.nameId);return s===c?t<n?-1:1:s<c?-1:1}function Cr(e,t){let n=K(e,t),r=W(e,t),i=R(n),a=i?r.slice(0,-1):r;return{basename:Kt(e.snapshot.segmentTable,n.nameId),depth:L(n),isDirectory:i,path:r,segments:a.length===0?[]:a.split(`/`)}}function wr(e,t,n){let r=K(e,t),i=fr(e,n);if(i!=null){let t=K(e,i);if(R(t))return{basename:Kt(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let a=Ut(n).segments;return{basename:a[a.length-1]??``,existingNodeId:i,parentId:t.parentId}}let a=Ut(n),o=a.segments[a.segments.length-1]??``,s=a.segments.slice(0,-1),c=s.length===0?e.snapshot.rootId:pr(e,s,!0);if(c==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:o,existingNodeId:null,parentId:c}}function Tr(e,t,n,r){if(n===`skip`)return`skip`;if(n===`error`)throw Error(`Destination already exists: "${W(e,t)}"`);let i=K(e,t);if(ht(i)!==r)throw Error(`replace collision requires the same source and destination kinds`);if(R(i)&&G(e,t).childIds.length>0)throw Error(`replace collision does not support non-empty directories`);let a=i.parentId,o=i.nameId;return Er(e,t),br(e,a,t,o),Dr(e,a),lr(e,a),`handled`}function Er(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){let t=r.pop();if(t==null)break;let i=K(e,t.nodeId);if(t.visitedChildren||!R(i)){R(i)&&e.snapshot.directories.delete(t.nodeId),_t(i,4),e.pathCacheByNodeId.delete(t.nodeId),e.collapsedDirectoryIds.delete(t.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(t.nodeId),En(e,t.nodeId),e.activeNodeCount--,n.push(t.nodeId);continue}r.push({nodeId:t.nodeId,visitedChildren:!0});let a=G(e,t.nodeId);for(let e=a.childIds.length-1;e>=0;e--){let t=a.childIds[e];t!=null&&r.push({nodeId:t,visitedChildren:!1})}}return n}function Dr(e,t){let n=t;for(;n!=null;){let t=K(e,n);if(!R(t)||z(t,2)||G(e,n).childIds.length>0)return;_t(t,1),n=t.parentId===n?null:t.parentId}}function Or(e,t){let n=e.snapshot.rootId;for(let r of t){let t=e.snapshot.segmentTable.idByValue.get(r);if(t==null)break;
168let i=rt(e.snapshot.nodes,G(e,n)).get(t);if(i==null||!R(K(e,i)))break;n=i}return n}function kr(e,t){let n=Mr(e,t);if(n==null)return null;let r=er(e,n),i=K(e,r),a=n===r?null:tr(e,n).map(t=>W(e,t));return JSON.stringify({flattenedSegmentPaths:a,hasChildren:G(e,r).childIds.length>0,path:W(e,r),terminalKind:ht(i)})}function Ar(e,t){return jr([e],[t])}function jr(e,t){for(let n=0;n<e.length;n+=1){let r=e[n],i=t[n];if(r==null||i==null||r!==i)return!0}return!1}function Mr(e,t){let n=t;for(;n!=null;){let t=K(e,n);if(!R(t)||z(t,2))return null;if(!U(e,n,t))return n;n=t.parentId}return null}function Nr(e,t){let n=K(e,t);if(vt(n,(t===e.snapshot.rootId?-1:L(K(e,n.parentId)))+1),!R(n))return;let r=G(e,t);for(let t of r.childIds)Nr(e,t)}function Pr(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;let n=K(e,r);if(r===e.snapshot.rootId)return!1;r=n.parentId}return!1}function Fr(e,t,n=K(e,t),r=!1){let i=e.instrumentation;if(i==null){Lr(e,t,n,r);return}H(i,`store.recomputeNodeCounts`,()=>Lr(e,t,n,r))}function Ir(e,t){let n=t;for(;n!=null;){let t=K(e,n),r=t.subtreeNodeCount,i=t.visibleSubtreeCount;if(Fr(e,n,t),n===e.snapshot.rootId)return;let a=t.subtreeNodeCount-r,o=t.visibleSubtreeCount-i,s=t.parentId;(a!==0||o!==0)&&ct(G(e,s),n,a,o),n=s}}function Lr(e,t,n,r){if(!R(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=G(e,t);if(r){let t=e.instrumentation;t==null?st(e.snapshot.nodes,i):H(t,`store.recomputeNodeCounts.rebuildChildAggregates`,()=>st(e.snapshot.nodes,i))}let a=1+i.totalChildSubtreeNodeCount,o=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=a,z(n,2)){n.visibleSubtreeCount=o;return}n.visibleSubtreeCount=$n(e,t)==null?U(e,t,n)?1+o:1:o}function Rr(e,t,n){let r=W(e,t);return r.length===0?n:`${r}${n}`}function zr(){return(zr=e((()=>{mt(),xt(),Et(),zt(),Jt(),Dn(),Qn(),nr()})))()}function Br(e){return e!=null&&!z(e,4)}function Vr(e,t){let n=e.snapshot.nodes[t];return!Br(n)||!R(n)||z(n,2)?null:n}function Hr(e){let t=0;for(let[n,r]of e.pathCacheByNodeId)r.version===e.pathCacheVersion&&Br(e.snapshot.nodes[n])&&(t+=1);return t}function Ur(e){return Math.max(0,e.valueById.length-1)}function Wr(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:Hr(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:Ur(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function Gr(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 Kr(e){let t=[],n=[];for(let n of e.collapsedDirectoryIds)Vr(e,n)!=null&&t.push(W(e,n));for(let t of e.expandedDirectoryIds)Vr(e,t)!=null&&n.push(W(e,t));return{collapsedPaths:t,expandedPaths:n}}function qr(e){let t=[];for(let[n,r]of e.directoryLoadInfoById)Vr(e,n)!=null&&bn(e,n)!==`loaded`&&t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:W(e,n)});return t}function Jr(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(let n of t.expandedPaths){let t=fr(e,n);t!=null&&vn(e,t,!0,K(e,t))}for(let n of t.collapsedPaths){let t=fr(e,n);t!=null&&vn(e,t,!1,K(e,t))}}function Yr(e,t){e.directoryLoadInfoById.clear();for(let n of t){let t=fr(e,n.path);t!=null&&Vr(e,t)!=null&&e.directoryLoadInfoById.set(t,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function Xr(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:``,ver
168sion:e.pathCacheVersion})}function Zr(e){let t=e.snapshot.segmentTable,n=Wt();for(let r of e.snapshot.nodes)if(Br(r)){if(z(r,2)){r.nameId=0;continue}r.nameId=Gt(n,Kt(t,r.nameId))}e.snapshot.segmentTable=n}function Qr(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!Br(r)||!R(r)){e.snapshot.directories.delete(t);continue}let i=n.childIds.filter(n=>{let r=e.snapshot.nodes[n];return Br(r)&&r.parentId===t});n.childIds=i,n.childIdByNameId=new Map(i.map(t=>[K(e,t).nameId,t])),n.childPositionById=new Map(i.map((e,t)=>[e,t])),st(e.snapshot.nodes,n)}}function $r(e){let t=e.snapshot.nodes.length-1;for(;t>e.snapshot.rootId;){let n=e.snapshot.nodes[t];if(Br(n))break;--t}e.snapshot.nodes.length=t+1}function ei(e){let t=Kr(e),n=qr(e);H(e.instrumentation,`store.cleanup.stable.clearPathCaches`,()=>Xr(e)),H(e.instrumentation,`store.cleanup.stable.rebuildSegmentTable`,()=>Zr(e)),H(e.instrumentation,`store.cleanup.stable.rebuildDirectoryIndexes`,()=>Qr(e)),H(e.instrumentation,`store.cleanup.stable.trimTrailingRemovedNodeSlots`,()=>$r(e)),H(e.instrumentation,`store.cleanup.stable.restoreExpansionOverrides`,()=>Jr(e,t)),H(e.instrumentation,`store.cleanup.stable.restoreDirectoryLoadInfos`,()=>Yr(e,n)),H(e.instrumentation,`store.cleanup.stable.recomputeCounts`,()=>ur(e,e.snapshot.rootId))}function ti(e){let t=Kr(e),n=qr(e),r=H(e.instrumentation,`store.cleanup.aggressive.listPaths`,()=>rr(e)),i=St({...e.snapshot.options},e.instrumentation),a=H(e.instrumentation,`store.cleanup.aggressive.rebuildSnapshot`,()=>{let e=new fn(i);return e.appendPaths(r),e.finish()});e.snapshot=a,e.activeNodeCount=a.nodes.length-1,e.pathCacheByNodeId=new Map([[a.rootId,{path:``,version:0}]]),e.pathCacheVersion=0,H(e.instrumentation,`store.cleanup.aggressive.restoreExpansionOverrides`,()=>Jr(e,t)),H(e.instrumentation,`store.cleanup.aggressive.restoreDirectoryLoadInfos`,()=>Yr(e,n)),H(e.instrumentation,`store.cleanup.aggressive.recomputeCounts`,()=>ur(e,e.snapshot.rootId))}function ni(e){for(let t of e.directoryLoadInfoById.values())if(t.state===`loading`&&t.activeAttemptId!=null)return!0;return!1}function ri(e,t){let n=Wr(e);t===`stable`?H(e.instrumentation,`store.cleanup.stable`,()=>ei(e)):H(e.instrumentation,`store.cleanup.aggressive`,()=>ti(e));let r=Wr(e);return Gr(t,t===`stable`,n,r)}function ii(){return(ii=e((()=>{mt(),xt(),Et(),Jt(),pn(),Dn(),zr()})))()}function ai(e,t){let n=t+2;if(n<=e.length)return e;let r=e.length;for(;r<n;)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(e),i}function q(e){return K(e,e.snapshot.rootId).visibleSubtreeCount}function oi(e,t,n,r){let i=K(e,t.terminalNodeId),a=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+a-1)}function si(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:Ei(e,t.cursor),setSize:t.setSize,subtreeEndIndex:oi(e,t.cursor,t.index,n)}}function ci(e,t,n,r,i,a){let o=G(e,t),{childIndex:s,childVisibleIndex:c,localVisibleIndex:l}=lt(e.snapshot.nodes,o,n),u=o.childIds[s];if(u==null)throw Error(`Visible index ${String(n)} is out of range`);return li(e,u,l,r+c,i+1,s,o.childIds.length,a)}function li(e,t,n,r,i,a,o,s){if(!R(K(e,t))){if(n===0)return{ancestors:s,cursor:{headNodeId:t,terminalNodeId:t,visibleDepth:i},index:r,posInSet:a,setSize:o};throw Error(`Visible index ${String(n)} is out of range for file`)}let c=bi(e,t,i);if(n===0)return{ancestors:s,cursor:c,index:r,posInSet:a,setSize:o};let l=K(e,c.terminalNodeId);if(!R(l)||!U(e,c.terminalNodeId,l))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return ci(e,c.terminalNodeId,n-1,r+1,c.visibleDepth,[...s,{cursor:c,index:r,posInSet:a,setSize:o}])}function ui(e,t){let n=q(e);if(t<0||t>=n)return null;let r=ci(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map(t=>W(e,t.cursor.terminalNodeId)),a=null;return{ancestorPaths:i,get ancestorRows(){if(a!=null)return a;let t=[],i=[];for(let a of r.ancestors){let r=si(e,a,n,[...i]);t.push(r),i.push(r.row.path)}return a=t,a},index:r.index,posInSet:r.posInSet,row:Ei(e,r.cursor),setSize:r.setSize,subtreeEndIndex:oi(e,r.cursor,r.index,n)}}function di(e,t,n){let r=e.instrumentation,i=q(e);if(i<=0||n<t)return[];let a=Math.max(0,Math.min(t,i-1)),o=Math.max(a,Math.min(n,i-1));if(r==null){if(a===0)return Ti(e,o+1);let t=[],n=_i(e,a);for(let r=a;r<=o&&n!=null;r++){let r=Ei(e,n);t.push(r),n=Si(e,n)}return t}let s=[],c=0,l=0,u=H(r,`store.getVisibleSlice.selectFirstRow`,()=>_i(e,a));for(let t=a;t<=o&&u!=null;t++){let t=H(r,`store.getVisibleSlice.materializeRow`,()=>Ei(e,u));s.push(t),t.isFlattened&&(c++,l+=t.flattenedSegments?.length??0),u=H(r,`store.getVisibleSlice.advanceCursor`,()=>Si(e,u))}return wt(r,`workload.visibleRowsRead`,s.length),wt(r,`workload.flattenedRowsRead`,c),wt
168(r,`workload.flattenedSegmentsRead`,l),s}function fi(e,t=q(e)){let n=e.instrumentation;return n==null?wi(e,t):H(n,`store.getVisibleTreeProjection`,()=>wi(e,t))}function pi(e){return Ci(fi(e))}function mi(e,t){let n=fr(e,t);if(n==null||n===e.snapshot.rootId||R(K(e,n))&&er(e,n)!==n)return null;let r=0,i=n,{nodes:a,rootId:o}=e.snapshot;for(;i!==o;){let t=K(e,i).parentId,n=G(e,t),s=it(n).get(i);if(s==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=ut(a,n,s),t!==o){let n=K(e,t),a=$n(e,t);if(!U(e,t,n)&&a!==i)return null;er(e,t)===t&&(r+=1)}i=t}return r}function hi(e,t){let n=fr(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=K(e,n);if(!R(r))throw Error(`Path is not a directory: "${t}"`);return U(e,n,r)?null:(vn(e,n,!0,r),lr(e,n),Mn({affectedAncestorIds:dr(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0}))}function gi(e,t){let n=fr(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=K(e,n);if(!R(r))throw Error(`Path is not a directory: "${t}"`);return U(e,n,r)?(vn(e,n,!1,r),lr(e,n),Nn({affectedAncestorIds:dr(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})):null}function _i(e,t){return t<0||t>=q(e)?null:vi(e,e.snapshot.rootId,t,-1)}function vi(e,t,n,r){let i=G(e,t),a=e.instrumentation,{childIndex:o,localVisibleIndex:s}=a==null?lt(e.snapshot.nodes,i,n):H(a,`store.getVisibleSlice.selectChildIndex`,()=>lt(e.snapshot.nodes,i,n)),c=i.childIds[o];if(c!=null)return yi(e,c,s,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function yi(e,t,n,r){if(!R(K(e,t))){if(n===0)return{headNodeId:t,terminalNodeId:t,visibleDepth:r};throw Error(`Visible index ${String(n)} is out of range for file`)}let i=bi(e,t,r);if(n===0)return i;let a=K(e,i.terminalNodeId);if(!R(a)||!U(e,i.terminalNodeId,a))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return vi(e,i.terminalNodeId,n-1,i.visibleDepth)}function bi(e,t,n){return R(K(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:er(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:H(e.instrumentation,`store.getVisibleSlice.flatten.resolveTerminalDirectory`,()=>er(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function xi(e,t){let n=K(e,t);if(!R(n))return!0;let r=n.parentId;return r===e.snapshot.rootId||$n(e,r)!==t}function Si(e,t){let n=K(e,t.terminalNodeId);if(R(n)){let r=G(e,t.terminalNodeId);if(U(e,t.terminalNodeId,n)&&r.childIds.length>0){let n=r.childIds[0];return n==null?null:yi(e,n,0,t.visibleDepth+1)}}let r=t.terminalNodeId,i=t.visibleDepth;for(;;){let t=K(e,r);if(r===e.snapshot.rootId)return null;let n=t.parentId,a=G(e,n),o=it(a).get(r)??-1;if(o<0)throw Error(`Child ${String(r)} was not found in its parent index`);let s=a.childIds[o+1]??null;if(s!=null)return yi(e,s,0,i);xi(e,r)&&i--,r=n}
168}function Ci(e){let t=e.paths.length,n=Array(t);for(let r=0;r<t;r+=1){let t=e.getParentIndex(r);n[r]={index:r,parentPath:t>=0?e.paths[t]??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 wi(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),a=new Int32Array(t),o=new Int32Array(Oi);o.fill(-1);let s=0,{nodes:c,directories:l,segmentTable:u}=e.snapshot,d=[[l.get(e.snapshot.rootId),0,-1,``]],f=e.snapshot.options.flattenEmptyDirectories,p=e.pathCacheByNodeId,m=e.pathCacheVersion,h=u.valueById;for(;d.length>0&&s<t;){let t=d[d.length-1],u=t[0];if(t[1]>=u.childIds.length){d.pop();continue}let g=t[1],_=u.childIds[t[1]++],v=c[_],y=t[2]+1,b=t[3];o=ai(o,y);let x,S=_;if(R(v))S=f?er(e,_):_,x=S===_?`${b}${h[v.nameId]}/`:W(e,S);else{let e=p.get(_);x=e!=null&&e.version===m?e.path:`${b}${h[v.nameId]}`}r[s]=o[y],n[s]=x,i[s]=g,a[s]=u.childIds.length,o[y+1]=s,s+=1;let C=c[S];C!=null&&R(C)&&U(e,S,C)&&d.push([l.get(S),0,y,x])}s<t&&(n.length=s);let g=r.subarray(0,s),_=i.subarray(0,s),v=a.subarray(0,s),y=null;return{getParentIndex(e){return e<0||e>=s?-1:g[e]??-1},paths:n,posInSetByIndex:_,setSizeByIndex:v,get visibleIndexByPath(){if(y==null){y=new Map;for(let e=0;e<s;e+=1)y.set(n[e]??``,e)}return y}}}function Ti(e,t){let n=Array(t),r=0,{nodes:i,directories:a,segmentTable:o}=e.snapshot,s=[[a.get(e.snapshot.rootId),0,-1]],c=o.valueById,l=e.snapshot.options.flattenEmptyDirectories,u=e.pathCacheByNodeId,d=e.pathCacheVersion;for(;s.length>0&&r<t;){let t=s[s.length-1],o=t[0];if(t[1]>=o.childIds.length){s.pop();continue}let f=o.childIds[t[1]++],p=i[f],m=t[2]+1;if(!R(p)){let t=u.get(f);n[r++]={depth:m,flattenedSegments:void 0,hasChildren:!1,id:f,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:`file`,loadState:void 0,name:c[p.nameId],path:t!=null&&t.version===d?t.path:W(e,f)};continue}let h=l?er(e,f):f,g={headNodeId:f,terminalNodeId:h,visibleDepth:m};n[r++]=Ei(e,g);let _=i[h];_!=null&&R(_)&&U(e,h,_)&&s.push([a.get(h),0,m])}return r<t&&(n.length=r),n}function Ei(e,t){let n=K(e,t.terminalNodeId),r=R(n)?Di(e,t):null,i=W(e,t.terminalNodeId),a=Kt(e.snapshot.segmentTable,n.nameId),o=R(n)&&G(e,t.terminalNodeId).childIds.length>0,s=t.headNodeId!==t.terminalNodeId,c=e.instrumentation,l=s?c==null?tr(e,t.headNodeId).map(n=>{let r=K(e,n);return{isTerminal:n===t.terminalNodeId,name:Kt(e.snapshot.segmentTable,r.nameId),nodeId:n,path:W(e,n)}}):H(c,`store.getVisibleSlice.flatten.collectSegments`,()=>tr(e,t.headNodeId).map(n=>{let r=K(e,n);return{isTerminal:n===t.terminalNodeId,name:Kt(e.snapshot.segmentTable,r.nameId),nodeId:n,path:W(e,n)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:l,hasChildren:o,id:t.terminalNodeId,isExpanded:R(n)&&U(e,t.terminalNodeId,n),isFlattened:s,isLoading:r===`loading`,kind:R(n)?`directory`:`file`,loadState:r==null||r===`loaded`?void 0:r,name:a,path:i}}function Di(e,t){if(t.headNodeId===t.terminalNodeId)return bn(e,t.terminalNodeId);let n=tr(e,t.headNodeId),r=!1,i=!1;for(let t of n){let n=bn(e,t);if(n===`loading`)return`loading`;if(n===`error`){i=!0;continue}n===`unloaded`&&(r=!0)}return i?`error`:r?`unloaded`:`loaded`}var Oi;function ki(){return(ki=e((()=>{mt(),xt(),Et(),Jt(),Dn(),Qn(),nr(),zr(),Oi=64})))()}function Ai(e){let{directories:t,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:a}=e.snapshot,o=r.flattenEmptyDirectories===!0,s=e=>{let r=n[e];if(r==null||!R(r))return;let i=t.get(e);if(i==null)throw Error(`Unknown directory child index for node ${String(e)}`);let a=i.childIds,s=a.length,c=0,l=0;for(let e=0;e<s;e++){let t=a[e];if(t==null)continue;let r=n[t];c+=r.subtreeNodeCount,l+=r.visibleSubtreeCount}i.totalChildSubtreeNodeCount=c,i.totalChildVisibleSubtreeCount=l,s>=128&&dt(n,i),r.subtreeNodeCount=1+c;let u;if(o&&s===1){let e=n[a[0]];u=e!=null&&R(e)?l:1+l}else u=1+l;r.visibleSubtreeCount=u};if(a!=null)for(let e=a.length-1;e>=0;e--)s(a[e]);else for(let e=n.length-1;e>=1;e--)s(e);let c=n[i],l=t.get(i);if(c==null||l==null)return;let u=l.childIds,d=0,f=0;for(let e=0;e<u.length;e++){let t=u[e];if(t==null)continue;let r=n[t];
168d+=r.subtreeNodeCount,f+=r.visibleSubtreeCount}l.totalChildSubtreeNodeCount=d,l.totalChildVisibleSubtreeCount=f,dt(n,l),c.subtreeNodeCount=1+d,c.visibleSubtreeCount=f}function ji(e){return e.initialExpansion===`open`&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}function Mi(e,t){switch(t.type){case`add`:case`remove`:if(!t.path.startsWith(e)||t.path===e)throw 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 Error(`Child patch move must stay within ${e}: "${t.from}" -> "${t.to}"`)}}var Ni;function Pi(){return(Pi=e((()=>{mt(),xt(),Et(),zt(),pn(),Dn(),Qn(),nr(),zr(),ii(),ki(),Ni=class e{#e;constructor(e={}){let t=Ct(e),n=H(t,`store.builder.create`,()=>new fn(e));if(e.preparedInput!=null){let t=cn(e.preparedInput);t==null?n.appendPreparedPaths(sn(e.preparedInput),!1):n.appendPresortedPaths(t,ln(e.preparedInput))}else{let r=e.paths??[];e.presorted===!0?n.appendPaths(r):n.appendPreparedPaths(H(t,`store.preparePathEntries`,()=>un(r,e)))}let r=H(t,`store.builder.finish`,()=>n.finish({skipSubtreeCountPass:!0})),i=H(t,`store.state.detectAllDirectoriesExpanded`,()=>(e.initialExpansion??`closed`)===`closed`&&n.didMatchAllInitialExpandedPaths());this.#e=H(t,`store.state.create`,()=>mn(r,i?`open`:e.initialExpansion??`closed`,t)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=i?this.#e.snapshot.directories.size-1:H(t,`store.state.initializeExpandedPaths`,()=>this.initializeExpandedPaths(e.initialExpandedPaths));i||ji(e)||(e.initialExpansion??`closed`)===`closed`&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&H(t,`store.state.checkAllDirectoriesExpanded`,()=>this.hasAllDirectoriesExpanded())?H(t,`store.state.initializeOpenVisibleCounts`,()=>Ai(this.#e)):H(t,`store.state.recomputeCounts`,()=>ur(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,t={}){return rn(e,t)}static prepareInput(e,t={}){return an(e,t)}static preparePresortedInput(e){return on(e)}list(e){return H(this.#e.instrumentation,`store.list`,()=>rr(this.#e,e))}add(e){H(this.#e.instrumentation,`store.add`,()=>{let t=q(this.#e);Hn(this.#e,Bn(this.#e,t,ir(this.#e,e)))})}remove(e,t={}){H(this.#e.instrumentation,`store.remove`,()=>{let n=q(this.#e);Hn(this.#e,Bn(this.#e,n,ar(this.#e,e,t)))})}move(e,t,n={}){H(this.#e.instrumentation,`store.move`,()=>{let r=q(this.#e),i=or(this.#e,e,t,n);i!=null&&Hn(this.#e,Bn(this.#e,r,i))})}batch(e){Vn(this.#e,()=>{if(typeof e==`function`){e(this);return}for(let t of e)switch(t.type){case`add`:this.add(t.path);break;case`remove`:this.remove(t.path,{recursive:t.recursive});break;case`move`:this.move(t.from,t.to,{collision:t.collision});break}})}getVisibleCount(){return H(this.#e.instrumentation,`store.getVisibleCount`,()=>q(this.#e))}getVisibleSlice(e,t){return H(this.#e.instrumentation,`store.getVisibleSlice`,()=>di(this.#e,e,t))}getVisibleRowContext(e){return H(this.#e.instrumentation,`store.getVisibleRowContext`,()=>ui(this.#e,e))}getVisibleTreeProjection(){return pi(this.#e)}getVisibleTreeProjectionData(e){return fi(this.#e,e)}getVisibleIndex(e){return H(this.#e.instrumentation,`store.getVisibleIndex`,()=>mi(this.#e,e))}getPathInfo(e){return H(this.#e.instrumentation,`store.getPathInfo`,()=>{let t=fr(this.#e,e);if(t==null)return null;let n=K(this.#e,t);return{depth:L(n),kind:R(n)?`directory`:`file`,path:W(this.#e,t)}})}isExpanded(e){return H(this.#e.instrumentation,`store.isExpanded`,()=>{let t=this.requireDirectoryNodeId(e),n=K(this.#e,t);return U(this.#e,t,n)})}expand(e){H(this.#e.instrumentation,`store.expand`,()=>{let t=q(this.#e),n=hi(this.#e,e);n!=null&&Hn(this.#e,Bn(this.#e,t,n))})}collapse(e){H(this.#e.instrumentation,`store.collapse`,()=>{let t=q(this.#e),n=gi(this.#e,e);n!=null&&Hn(this.#e,Bn(this.#e,t,n))})}on(e,t){return On(this.#e,e,t)}getDirectoryLoadState(e){let t=this.requireDirectoryNodeId(e);return bn(this.#e,t)}markDirectoryUnloaded(e){H(this.#e.instrumentation,`store.markDirectoryUnloaded`,()=>{let t=this.requireDirectoryNodeId(e);if(G(this.#e,t).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let n=q(this.#e);Sn(this.#e,t),Hn(this.#e,Bn(this.#e,n,Pn({affectedAncestorIds:dr(this.#e,t),affectedNodeIds:[t],path:e,projectionChanged:this.isDirectoryProjectionVisible(t)})))})}beginChildLoad(e){return H(this.#e.instrumentation,`store.beginChildLoad`,()=>{let t=this.requireDirectoryNodeId(e),n=q(this.#e),r=xn(this.#e,t);return Hn(this.#e,Bn(this.#e,n,Fn({affectedAncestorIds:dr(this.#e,t),affectedNodeIds:[t],attemptId:r.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(t),reused:r.reused}))),r})}applyChildPatch(e,t){return H(this.#e.instrumentation,`store.applyChildPatch`,()=>
168{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null||bn(this.#e,n)!==`loading`||!wn(this.#e,n,e.attemptId))return!1;let r=W(this.#e,n);this.validateChildPatch(r,t);let i=q(this.#e),a=[];for(let e of t.operations){Mi(r,e);let t=q(this.#e);switch(e.type){case`add`:a.push(Bn(this.#e,t,ir(this.#e,e.path)));break;case`remove`:a.push(Bn(this.#e,t,ar(this.#e,e.path,{recursive:e.recursive})));break;case`move`:{let n=or(this.#e,e.from,e.to,{collision:e.collision});n!=null&&a.push(Bn(this.#e,t,n));break}}}let o=a.some(e=>e.projectionChanged)||this.isDirectoryProjectionVisible(n);return Hn(this.#e,Bn(this.#e,i,In({affectedAncestorIds:dr(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,childEvents:a,path:W(this.#e,n),projectionChanged:o}))),!0})}completeChildLoad(e){return H(this.#e.instrumentation,`store.completeChildLoad`,()=>{let t=this.resolveActiveDirectoryNodeId(e.nodeId);if(t==null)return!1;let n=q(this.#e),r=Cn(this.#e,t,e.attemptId);return Hn(this.#e,Bn(this.#e,n,Ln({affectedAncestorIds:dr(this.#e,t),affectedNodeIds:[t],attemptId:e.attemptId,path:W(this.#e,t),projectionChanged:this.isDirectoryProjectionVisible(t),stale:!r}))),r})}failChildLoad(e,t){return H(this.#e.instrumentation,`store.failChildLoad`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=q(this.#e),i=Tn(this.#e,n,e.attemptId,t);return Hn(this.#e,Bn(this.#e,r,Rn({affectedAncestorIds:dr(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,errorMessage:t,path:W(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}cleanup(e={}){return H(this.#e.instrumentation,`store.cleanup`,()=>{if(this.#e.transactionStack.length>0)throw Error(`Cleanup cannot run during an open batch or transaction.`);if(ni(this.#e))throw Error(`Cleanup cannot run while directory loads are active.`);let t=q(this.#e),n=ri(this.#e,e.mode??`stable`);return Hn(this.#e,Bn(this.#e,t,zn({...n,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:n.idsPreserved===!1}))),n})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let t=0,n=[],r=[],i=0,a=null,o=this.#e.snapshot.segmentTable,s=o.valueById,c=this.#e.snapshot.nodes,l=new Map;for(let u of e){a!=null&&u<a&&(a=null,i=0,n.length=0,r.length=0);let e=u.length>0&&u.charCodeAt(u.length-1)===47?u.length-1:u.length;if(e===0){a=u,i=e,n.length=0,r.length=0;continue}let d=0,f=0;if(a!=null){let t=Math.min(e,i),n=!0;for(let e=0;e<t;e+=1){let t=u.charCodeAt(e);if(t!==a.charCodeAt(e)){n=!1;break}t===47&&(d+=1,f=e+1)}n&&(t===i&&e>t&&u.charCodeAt(t)===47?(d+=1,f=t+1):t===e&&i>t&&a.charCodeAt(t)===47&&(d+=1,f=e+1)),d=Math.min(d,r.length)}let p=d===0?this.#e.snapshot.rootId:r[d-1]??this.#e.snapshot.rootId,m=d,h=!0,g=f;for(;g<=e;){let t=u.indexOf(`/`,g),i=t===-1||t>e?e:t,a=u.slice(g,i),f=G(this.#e,p).childIds,_=m===d?n[m]??0:0,v=_,y,b=l.get(a)??kt(a);l.set(a,b);let x=(e,t)=>{for(v=e;v<t;v+=1){let e=f[v],t=c[e],n=s[t.nameId];if(n===a)return y=e,!0;let r=jt(Rt(o,t.nameId),b);if(r>0||r===0&&n>a)return!1}return!1};if(!x(_,f.length)&&_>0&&x(0,_),y===void 0){h=!1;break}if(!R(K(this.#e,y))){h=!1;break}if(n[m]=v,r[m]=y,p=y,m+=1,i===e)break;g=i+1}if(a=u,i=e,n.length=m,r.length=m,!h){a=null,i=0,n.length=0,r.length=0;continue}for(let e=d;e<m;e+=1){let n=r[e];if(n==null)continue;let i=K(this.#e,n);U(this.#e,n,i)||(vn(this.#e,n,!0,i),t+=1)}}return t}hasAllDirectoriesExpanded(){for(let e of this.#e.snapshot.directories.keys()){if(e===this.#e.snapshot.rootId)continue;let t=K(this.#e,e);if(!U(this.#e,e,t))return!1}return!0}requireDirectoryNodeId(e){let t=fr(this.#e,e);if(t==null)throw Error(`Path does not exist: "${e}"`);if(!R(K(this.#e,t)))throw Error(`Path is not a directory: "${e}"`);return t}resolveActiveDirectoryNodeId(e){try{if(!R(K(this.#e,e)))throw Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let t=e;for(;t!==this.#e.snapshot.rootId;){let e=K(this.#e,t).parentId;if(e!==this.#e.snapshot.rootId){let n=K(this.#e,e),r=$n(this.#e,e);if(!U(this.#e,e,n)&&r!==t)return!1}t=e}return!0}validateChildPatch(t,n){new e({paths:this.list(t),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}}})))()}function Fi(e,t){if(typeof e==`number`)return{itemHeight:t??Ii.default.itemHeight,factor:e};let n=Ii[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var Ii;function Li(){return(Li=e((()=>{Ii={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}}})))()}var Ri;function zi(){return(zi=e((()=>{Li(),Ri=Ii.default.itemHeight})))()}var Bi;function Vi(){return(Vi=e((()=>{Bi=`@layer base, theme, unsafe;
169
170@layer base {
171  :host {
172    /*
173      CSS variables use a fallback stack to ensure user and theme colors slot
174      in with ease. User colors take precedence over theme colors, which take
175      precedence over defaults.
176
177      Fallback order:
178
179      1. --trees-*-override (explicit)
180      2. --trees-theme-* (e.g. Shiki/VS Code tokens)
181      3. defaults
182
183      Theme variable names mirror Shiki/VS Code theme file JSON tokens.
184
185      // Available CSS Color Overrides
186      --trees-fg-override
187      --trees-fg-muted-override
188      --trees-bg-override
189      --trees-bg-muted-override
190      --trees-accent-override
191      --trees-border-color-override
192
193      --trees-focus-ring-color-override
194      --trees-focus-ring-width-override
195      --trees-focus-ring-offset-override
196
197      --trees-search-fg-override
198      --trees-search-font-weight-override
199      --trees-search-bg-override
200
201      --trees-selected-fg-override
202      --trees-selected-bg-override
203      --trees-selected-focused-border-color-override
204
205      // Git Status Color Overrides
206      --trees-status-added-override
207      --trees-status-ignored-override
208      --trees-status-modified-override
209      --trees-status-renamed-override
210      --trees-status-untracked-override
211      --trees-status-deleted-override
212      --trees-git-added-color-override
213      --trees-git-ignored-color-override
214      --trees-git-modified-color-override
215      --trees-git-renamed-color-override
216      --trees-git-untracked-color-override
217      --trees-git-deleted-color-override
218
219      // Built-in File Icon Color Overrides
220      --trees-file-icon-color
221      --trees-file-icon-color-astro
222      --trees-file-icon-color-babel
223      --trees-file-icon-color-bash
224      --trees-file-icon-color-biome
225      --trees-file-icon-color-bootstrap
226      --trees-file-icon-color-browserslist
227      --trees-file-icon-color-bun
228      --trees-file-icon-color-c
229      --trees-file-icon-color-cpp
230      --trees-file-icon-color-claude
231      --trees-file-icon-color-css
232      --trees-file-icon-color-database
233      --trees-file-icon-color-default
234      --trees-file-icon-color-docker
235      --trees-file-icon-color-eslint
236      --trees-file-icon-color-git
237      --trees-file-icon-color-go
238      --trees-file-icon-color-graphql
239      --trees-file-icon-color-html
240      --trees-file-icon-color-image
241      --trees-file-icon-color-javascript
242      --trees-file-icon-color-json
243      --trees-file-icon-color-markdown
244      --trees-file-icon-color-mcp
245      --trees-file-icon-color-npm
246      --trees-file-icon-color-oxc
247      --trees-file-icon-color-postcss
248      --trees-file-icon-color-prettier
249      --trees-file-icon-color-python
250      --trees-file-icon-color-react
251      --trees-file-icon-color-ruby
252      --trees-file-icon-color-rust
253      --trees-file-icon-color-sass
254      --trees-file-icon-color-svg
255      --trees-file-icon-color-svelte
256      --trees-file-icon-color-svgo
257      --trees-file-icon-color-swift
258      --trees-file-icon-color-table
259      --trees-file-icon-color-text
260      --trees-file-icon-color-tailwind
261      --trees-file-icon-color-terraform
262      --trees-file-icon-color-typescript
263      --trees-file-icon-color-vite
264      --trees-file-icon-color-vscode
265      --trees-file-icon-color-vue
266      --trees-file-icon-color-wasm
267      --trees-file-icon-color-webpack
268      --trees-file-icon-color-yml
269      --trees-file-icon-color-zig
270      --trees-file-icon-color-zip
271
272      // Density
273      //
274      // A unitless scale factor for padding, gaps, and indentation. Usually
275      // set via \`density\` on useFileTree. Individual overrides take precedence.
276      //
277      //   Compact: 0.8
278      //   Default: 1
279      //   Relaxed: 1.2
280      //
281      --trees-density-override
282
283      // Available CSS Layout Overrides
284      --trees-gap-override
285      --trees-border-radius-override
286      --trees-font-family-override
287      --trees-font-size-override
288      --trees-font-weight-regular-override
289      --trees-font-weight-semibold-override
290      --trees-level-gap-override
291      --trees-item-padding-x-override
292      --trees-item-margin-x-override
293      --trees-item-row-gap-override
294      --trees-icon-width-override
295      --trees-icon-nudge-override
296      --trees-scrollbar-gutter-override
297      --trees-padding-inline-override
298    */
299
300    --trees-accent: var(--trees-accent-override, #009fff);
301    --trees-fg: var(
302      --trees-fg-override,
303      var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1))
304    );
305    --trees-fg-muted: var(
306      --trees-fg-muted-override,
307      var(--trees-theme-sidebar-header-fg, light-dark(#84848a, #84848a))
308    );
309    --trees-bg: var(
310      --trees-bg-override,
311      var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415))
312    );
313    /* var(--trees-theme-list-hover-bg, light-dark(#dfebff59, #19283c59)) */
314    --trees-bg-muted: var(
315      --trees-bg-muted-override,
316      var(
317        --trees-theme-list-hover-bg,
318        light-dark(
319          color-mix(
320            in lab,
321            var(--trees-accent) var(--trees-bg-alpha-light, 8%),
322            var(--trees-bg)
323          ),
324          color-mix(
325            in lab,
326            var(--trees-accent) var(--trees-bg-alpha-dark, 10%),
327            var(--trees-bg)
328          )
329        )
330      )
331    );
332    --trees-input-bg: var(
333      --trees-input-bg-override,
334      light-dark(#f8f8f8, #070707)
335    );
336
337    --trees-added-light: #16a994;
338    --trees-added-dark: #00cab1;
339    --trees-ignored-light: #adadb1;
340    --trees-ignored-dark: #4a4a4e;
341    --trees-modified-light: #1ca1c7;
342    --trees-modified-dark: #08c0ef;
343    --trees-renamed-light: #d5a910;
344    --trees-renamed-dark: #ffd452;
345    --trees-untracked-light: #16a994;
346    --trees-untracked-dark: #00cab1;
347    --trees-deleted-light: #ff2e3f;
348    --trees-deleted-dark: #ff6762;
349
350    --trees-border-color: var(
351      --trees-border-color-override,
352      var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707))
353    );
354    --trees-indent-guide-bg: var(
355      --trees-indent-guide-bg-override,
356      color-mix(in lab, var(--trees-fg-muted) 25%, transparent)
357    );
358    --trees-density: var(--trees-density-override, 1);
359    --trees-border-radius: var(
360      --trees-border-radius-override,
361      calc(6px * var(--trees-density))
362    );
363
364    --trees-font-family: var(--trees-font-family-override, system-ui);
365    --trees-font-size: var(--trees-font-size-override, 13px);
366    --trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);
367    --trees-font-weight-semibold: var(
368      --trees-font-weight-semibold-override,
369      600
370    );
371
372    --trees-focus-ring-color: var(
373      --trees-focus-ring-color-override,
374      var(--trees-theme-focus-ring, var(--trees-accent))
375    );
376    --trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);
377    --trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);
378
379    --trees-search-fg: var(
380      --trees-search-fg-override,
381      var(--trees-theme-input-fg, var(--trees-fg))
382    );
383    --trees-search-font-weight: var(--trees-search-font-weight-override, 600);
384    --trees-search-bg: var(
385      --trees-search-bg-override,
386      var(--trees-theme-input-bg, var(--trees-input-bg))
387    );
388
389    --trees-scrollbar-thumb: var(
390      --trees-scrollbar-thumb-override,
391      var(
392        --trees-theme-scrollbar-thumb,
393        color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))
394      )
395    );
396
397    --trees-selected-fg: var(
398      --trees-selected-fg-override,
399      var(--trees-theme-list-active-selection-fg, var(--trees-fg))
400    );
401    --trees-selected-bg: var(
402      --trees-selected-bg-override,
403      var(
404        --trees-theme-list-active-selection-bg,
405        light-dark(
406          color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)),
407          color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg))
408        )
409      )
410    );
411    --trees-selected-focused-border-color: var(
412      --trees-selected-focused-border-color-override,
413      var(--trees-theme-focus-ring, var(--trees-accent))
414    );
415
416    /* Git status (e.g. from Shiki theme gitDecoration.*) */
417    --trees-status-added: var(
418      --trees-status-added-override,
419      var(
420        --trees-theme-git-added-fg,
421        light-dark(var(--trees-added-light), var(--trees-added-dark))
422      )
423    );
424    --trees-status-ignored: var(
425      --trees-status-ignored-override,
426      var(
427        --trees-theme-git-ignored-fg,
428        light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))
429      )
430    );
431    --trees-status-modified: var(
432      --trees-status-modified-override,
433      var(
434        --trees-theme-git-modified-fg,
435        light-dark(var(--trees-modified-light), var(--trees-modified-dark))
436      )
437    );
438    --trees-status-renamed: var(
439      --trees-status-renamed-override,
440      var(
441        --trees-theme-git-renamed-fg,
442        light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))
443      )
444    );
445    --trees-status-untracked: var(
446      --trees-status-untracked-override,
447      var(
448        --trees-theme-git-untracked-fg,
449        light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))
450      )
451    );
452    --trees-status-deleted: var(
453      --trees-status-deleted-override,
454      var(
455        --trees-theme-git-deleted-fg,
456        light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))
457      )
458    );
459    --trees-git-modified-color: var(
460      --trees-git-modified-color-override,
461      var(--trees-status-modified)
462    );
463    --trees-git-added-color: var(
464      --trees-git-added-color-override,
465      var(--trees-status-added)
466    );
467    --trees-git-ignored-color: var(
468      --trees-git-ignored-color-override,
469      var(--trees-status-ignored)
470    );
471    --trees-git-deleted-color: var(
472      --trees-git-deleted-color-override,
473      var(--trees-status-deleted)
474    );
475    --trees-git-renamed-color: var(
476      --trees-git-renamed-color-override,
477      var(--trees-status-renamed)
478    );
479    --trees-git-untracked-color: var(
480      --trees-git-untracked-color-override,
481      var(--trees-status-untracked)
482    );
483
484    --trees-icon-gray: light-dark(#84848a, #adadb1);
485    --trees-icon-red: light-dark(#d52c36, #ff6762);
486    --trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);
487    --trees-icon-orange: light-dark(#d47628, #ffa359);
488    --trees-icon-yellow: light-dark(#d5a910, #ffd452);
489    --trees-icon-green: light-dark(#199f43, #5ecc71);
490    --trees-icon-teal: light-dark(#17a5af, #64d1db);
491    --trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);
492    --trees-icon-blue: light-dark(#1a85d4, #69b1ff);
493    --trees-icon-indigo: light-dark(#693acf, #9d6afb);
494    --trees-icon-purple: light-dark(#a631be, #d568ea);
495    --trees-icon-pink: light-dark(#d32a61, #ff678d);
496    --trees-icon-mauve: light-dark(#594c5b, #79697b);
497
498    --trees-file-icon-color-default: var(
499      --trees-file-icon-color,
500      var(--trees-icon-gray)
501    );
502    --trees-file-icon-color-astro: var(
503      --trees-file-icon-color,
504      var(--trees-icon-purple)
505    );
506    --trees-file-icon-color-babel: var(
507      --trees-file-icon-color,
508      var(--trees-icon-yellow)
509    );
510    --trees-file-icon-color-bash: var(
511      --trees-file-icon-color,
512      var(--trees-icon-green)
513    );
514    --trees-file-icon-color-biome: var(
515      --trees-file-icon-color,
516      var(--trees-icon-blue)
517    );
518    --trees-file-icon-color-bootstrap: var(
519      --trees-file-icon-color,
520      var(--trees-icon-indigo)
521    );
522    --trees-file-icon-color-browserslist: var(
523      --trees-file-icon-color,
524      var(--trees-icon-yellow)
525    );
526    --trees-file-icon-color-bun: var(
527      --trees-file-icon-color,
528      var(--trees-icon-mauve)
529    );
530    --trees-file-icon-color-c: var(
531      --trees-file-icon-color,
532      var(--trees-icon-blue)
533    );
534    --trees-file-icon-color-cpp: var(
535      --trees-file-icon-color,
536      var(--trees-icon-blue)
537    );
538    --trees-file-icon-color-claude: var(
539      --trees-file-icon-color,
540      var(--trees-icon-orange)
541    );
542    --trees-file-icon-color-css: var(
543      --trees-file-icon-color,
544      var(--trees-icon-indigo)
545    );
546    --trees-file-icon-color-database: var(
547      --trees-file-icon-color,
548      var(--trees-icon-purple)
549    );
550    --trees-file-icon-color-docker: var(
551      --trees-file-icon-color,
552      var(--trees-icon-blue)
553    );
554    --trees-file-icon-color-eslint: var(
555      --trees-file-icon-color,
556      var(--trees-icon-indigo)
557    );
558    --trees-file-icon-color-git: var(
559      --trees-file-icon-vermilion,
560      var(--trees-icon-vermilion)
561    );
562    --trees-file-icon-color-go: var(
563      --trees-file-icon-color,
564      var(--trees-icon-cyan)
565    );
566    --trees-file-icon-color-graphql: var(
567      --trees-file-icon-color,
568      var(--trees-icon-pink)
569    );
570    --trees-file-icon-color-html: var(
571      --trees-file-icon-color,
572      var(--trees-icon-orange)
573    );
574    --trees-file-icon-color-image: var(
575      --trees-file-icon-color,
576      var(--trees-icon-pink)
577    );
578    --trees-file-icon-color-javascript: var(
579      --trees-file-icon-color,
580      var(--trees-icon-yellow)
581    );
582    --trees-file-icon-color-json: var(
583      --trees-file-icon-color,
584      var(--trees-icon-orange)
585    );
586    --trees-file-icon-color-markdown: var(
587      --trees-file-icon-color,
588      var(--trees-icon-green)
589    );
590    --trees-file-icon-color-mcp: var(
591      --trees-file-icon-color,
592      var(--trees-icon-teal)
593    );
594    --trees-file-icon-color-npm: var(
595      --trees-file-icon-color,
596      var(--trees-icon-red)
597    );
598    --trees-file-icon-color-oxc: var(
599      --trees-file-icon-cyan,
600      var(--trees-icon-cyan)
601    );
602    --trees-file-icon-color-postcss: var(
603      --trees-file-icon-color,
604      var(--trees-icon-red)
605    );
606    --trees-file-icon-color-prettier: var(
607      --trees-file-icon-color,
608      var(--trees-icon-teal)
609    );
610    --trees-file-icon-color-python: var(
611      --trees-file-icon-color,
612      var(--trees-icon-blue)
613    );
614    --trees-file-icon-color-react: var(
615      --trees-file-icon-color,
616      var(--trees-icon-cyan)
617    );
618    --trees-file-icon-color-ruby: var(
619      --trees-file-icon-color,
620      var(--trees-icon-red)
621    );
622    --trees-file-icon-color-rust: var(
623      --trees-file-icon-color,
624      var(--trees-icon-orange)
625    );
626    --trees-file-icon-color-sass: var(
627      --trees-file-icon-color,
628      var(--trees-icon-pink)
629    );
630    --trees-file-icon-color-svg: var(
631      --trees-file-icon-color,
632      var(--trees-icon-orange)
633    );
634    --trees-file-icon-color-svelte: var(
635      --trees-file-icon-color,
636      var(--trees-icon-red)
637    );
638    --trees-file-icon-color-svgo: var(
639      --trees-file-icon-color,
640      var(--trees-icon-green)
641    );
642    --trees-file-icon-color-swift: var(
643      --trees-file-icon-color,
644      var(--trees-icon-orange)
645    );
646    --trees-file-icon-color-table: var(
647      --trees-file-icon-color,
648      var(--trees-icon-teal)
649    );
650    --trees-file-icon-color-text: var(
651      --trees-file-icon-color,
652      var(--trees-icon-gray)
653    );
654    --trees-file-icon-color-tailwind: var(
655      --trees-file-icon-color,
656      var(--trees-icon-cyan)
657    );
658    --trees-file-icon-color-terraform: var(
659      --trees-file-icon-color,
660      var(--trees-icon-indigo)
661    );
662    --trees-file-icon-color-typescript: var(
663      --trees-file-icon-color,
664      var(--trees-icon-blue)
665    );
666    --trees-file-icon-color-vite: var(
667      --trees-file-icon-color,
668      var(--trees-icon-purple)
669    );
670    --trees-file-icon-color-vscode: var(
671      --trees-file-icon-color,
672      var(--trees-icon-blue)
673    );
674    --trees-file-icon-color-vue: var(
675      --trees-file-icon-color,
676      var(--trees-icon-green)
677    );
678    --trees-file-icon-color-wasm: var(
679      --trees-file-icon-color,
680      var(--trees-icon-indigo)
681    );
682    --trees-file-icon-color-webpack: var(
683      --trees-file-icon-color,
684      var(--trees-icon-blue)
685    );
686    --trees-file-icon-color-yml: var(
687      --trees-file-icon-color,
688      var(--trees-icon-red)
689    );
690    --trees-file-icon-color-zig: var(
691      --trees-file-icon-color,
692      var(--trees-icon-orange)
693    );
694    --trees-file-icon-color-zip: var(
695      --trees-file-icon-color,
696      var(--trees-icon-orange)
697    );
698
699    --trees-level-gap: var(
700      --trees-level-gap-override,
701      calc(8px * var(--trees-density))
702    );
703    --trees-item-padding-x: var(
704      --trees-item-padding-x-override,
705      calc(8px * var(--trees-density))
706    );
707    --trees-item-margin-x: var(
708      --trees-item-margin-x-override,
709      calc(2px * var(--trees-density))
710    );
711    --trees-item-row-gap: var(
712      --trees-item-row-gap-override,
713      calc(6px * var(--trees-density))
714    );
715    --trees-icon-width: var(--trees-icon-width-override, 16px);
716    --trees-icon-nudge: var(
717      --trees-icon-nudge-override,
718      calc(1px * var(--trees-density))
719    );
720    --trees-row-height: var(--trees-item-height, 30px);
721    --trees-git-lane-width: var(--trees-git-lane-width-override, 12px);
722    --trees-action-lane-width: var(
723      --trees-action-lane-width-override,
724      calc(var(--trees-icon-width) + 2px)
725    );
726    /* Keep the floating trigger aligned with the row's action lane. Going in
727       from the root's right edge: the scroll container reserves
728       \`--trees-padding-inline\` of effective inset on each side (its asymmetric
729       padding formula cancels the scrollbar gutter on the right), the row
730       sits inside that inset, and its trailing \`--trees-item-padding-x\` is the
731       action lane itself. The trigger's own focus-ring margin then trims one
732       pixel back so the button's visible right edge lines up with the lane. */
733    --trees-context-menu-trigger-inline-offset: calc(
734      var(--trees-padding-inline) + var(--trees-item-padding-x) -
735        var(--trees-focus-ring-width)
736    );
737
738    --trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);
739    --trees-padding-inline: var(--trees-padding-inline-override, 16px);
740
741    color-scheme: light dark;
742    display: flex;
743    flex-direction: column;
744    font-size: var(--trees-font-size);
745    color: var(--trees-fg);
746    background-color: var(--trees-bg);
747    --truncate-marker-background-color: var(--trees-bg);
748    --truncate-marker-background-overlay-color: transparent;
749    font-family: var(--trees-font-family);
750    font-weight: var(--trees-font-weight-regular);
751  }
752
753  :host([data-file-tree-virtualized='true']) {
754    height: 100%;
755    overflow: hidden;
756  }
757
758  [data-file-tree-virtualized-wrapper='true'] {
759    height: 100%;
760    overflow: hidden;
761    display: flex;
762    flex-direction: column;
763  }
764
765  [data-file-tree-virtualized-root='true'] {
766    height: 100%;
767    display: flex;
768    flex-direction: column;
769    overflow: hidden;
770  }
771
772  [data-file-tree-virtualized-scroll='true'],
773  [data-file-tree-scrollbar-measure='true'] {
774    --trees-scrollbar-thumb-current: transparent;
775    overflow-y: auto;
776    scrollbar-gutter: stable;
777
778    &:hover {
779      --trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb);
780    }
781
782    &::-webkit-scrollbar {
783      width: var(--trees-scrollbar-gutter);
784      height: var(--trees-scrollbar-gutter);
785    }
786
787    &::-webkit-scrollbar-track {
788      background: transparent;
789    }
790
791    &::-webkit-scrollbar-thumb {
792      background-color: var(--trees-scrollbar-thumb-current);
793      border: 1px solid transparent;
794      background-clip: content-box;
795      border-radius: calc(var(--trees-scrollbar-gutter) / 2);
796    }
797
798    &::-webkit-scrollbar-corner {
799      background-color: transparent;
800    }
801  }
802
803  /* These are styles for a temporarily generated element to measure the size
804   * of the scrollbar.  It's intended to be somewhat similar in scrollbar style
805   * scope to the scrollable tree so \`--trees-scrollbar-gutter-measured\` is an
806   * accurate reflection of the size the scrollbar gutter takes up. */
807  [data-file-tree-scrollbar-measure='true'] {
808    position: absolute;
809    top: 0;
810    left: 0;
811    visibility: hidden;
812    pointer-events: none;
813    width: 100px;
814    height: 100px;
815  }
816
817  @supports (-moz-appearance: none) {
818    [data-file-tree-virtualized-scroll='true'],
819    [data-file-tree-scrollbar-measure='true'] {
820      scrollbar-width: thin;
821      scrollbar-color: var(--trees-scrollbar-thumb-current) transparent;
822    }
823  }
824
825  [data-file-tree-virtualized-scroll='true'] {
826    position: relative;
827    overflow-y: auto;
828    flex: 1 1 0;
829    min-height: 0;
830    padding-inline: max(
831        calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
832        0px
833      )
834      /* NOTE(amadeus): We can assume that all Webkit based browser gutters
835       * will align to the value of '--trees-scrollbar-gutter', however if not, then
836       * \`--trees-scrollbar-gutter-measured\` should correct it. Mostly we are
837       * hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments
838       * \`--trees-scrollbar-gutter-measured\` should always be immediately available.
839       */
840      max(
841        calc(
842          var(--trees-padding-inline) - var(--trees-item-margin-x) -
843            var(
844              --trees-scrollbar-gutter-measured,
845              var(--trees-scrollbar-gutter)
846            )
847        ),
848        0px
849      );
850  }
851
852  @supports (-moz-appearance: none) {
853    [data-file-tree-virtualized-scroll='true'] {
854      padding-inline: max(
855          calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
856          0px
857        )
858        /* NOTE(amadeus): However on Firefox it can vary a little bit, but most
859         * likely the majority of cases will default to a 0px width scrollbar lets
860         * inherit that first to avoid SSR jumps. In non-SSR'd environments
861         * \`--trees-scrollbar-gutter-measured\` should always be immediately available.
862         */
863        max(
864          calc(
865            var(--trees-padding-inline) - var(--trees-item-margin-x) -
866              var(--trees-scrollbar-gutter-measured, 0px)
867          ),
868          0px
869        );
870    }
871  }
872
873  [data-file-tree-sticky-overlay='true'] {
874    position: sticky;
875    top: 0;
876    height: 0;
877    z-index: 4;
878    overflow: visible;
879    pointer-events: none;
880  }
881
882  /* The overlay DOM is kept populated even at scrollTop=0 so the browser has
883   * the rendered rows on hand the moment scrolling begins — otherwise the
884   * compositor paints a scrolled frame before React can mount the overlay,
885   * and the topmost sticky folder jumps up by a couple of pixels before it
886   * "snaps" into its pinned position. We hide it via CSS whenever the scroll
887   * is at the top and no scroll is in progress, so the preview doesn't leak
888   * through at rest. \`data-overlay-reveal\` is stamped on the root only when
889   * the user initiates a scroll while already at the top — exactly the case
890   * where we need the pre-mounted overlay to be visible through the first
891   * compositor frame. It is deliberately distinct from the general
892   * \`data-is-scrolling\` flag so a scroll that ends at the top (e.g. ArrowUp
893   * navigation) re-hides the overlay the instant the scroll lands, rather
894   * than waiting for the hover-suppression timer to elapse. */
895  [data-file-tree-virtualized-root='true'][data-scroll-at-top='true']:not(
896      [data-overlay-reveal]
897    )
898    [data-file-tree-sticky-overlay='true'] {
899    visibility: hidden;
900  }
901
902  [data-file-tree-sticky-overlay-content='true'] {
903    background-color: var(--trees-bg);
904    position: relative;
905    pointer-events: none;
906  }
907
908  [data-file-tree-virtualized-list='true'] {
909    background-color: var(--trees-bg);
910    position: relative;
911    min-height: 100%;
912    width: 100%;
913    overflow-anchor: none;
914
915    &[data-is-scrolling] {
916      pointer-events: none;
917    }
918  }
919
920  [data-file-tree-virtualized-sticky-offset='true'] {
921    contain: layout size;
922  }
923
924  [data-file-tree-virtualized-sticky='true'] {
925    position: sticky;
926    top: 0;
927    width: 100%;
928    display: flex;
929    flex-direction: column;
930    isolation: isolate;
931    /* Promote to its own compositor layer so text inside the window is
932     * rasterized once and GPU-translated during scroll. Without this, the
933     * browser re-paints the window (and its text) at every scroll frame,
934     * which produces visible 1px shake / character tearing. */
935    will-change: transform;
936  }
937
938  [data-file-tree-search-container] {
939    display: flex;
940    padding: 0;
941    padding-inline: var(--trees-padding-inline);
942    margin-bottom: var(--trees-item-row-gap);
943  }
944
945  [data-file-tree-search-input] {
946    --trees-focus-ring-width: 2px;
947    font-family: var(--trees-font-family);
948    font-size: var(--trees-font-size);
949    flex: 1;
950    height: var(--trees-row-height);
951    /* 1px breathing room so the focus-visible outline isn't clipped when the
952     * input sits flush against the top of the scroll container. */
953    margin-block: 1px;
954    padding-inline: var(--trees-item-padding-x);
955    line-height: var(--trees-row-height);
956    color: var(--trees-search-fg);
957    background-color: var(--trees-search-bg);
958    border: 1px solid var(--trees-border-color);
959    border-radius: var(--trees-border-radius);
960    outline: none;
961
962    &::placeholder {
963      color: color-mix(
964        in lab,
965        var(--trees-search-fg) 65%,
966        var(--trees-search-bg)
967      );
968    }
969
970    &:focus-visible,
971    &[data-file-tree-search-input-fake-focus='true'] {
972      outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);
973      outline-offset: var(--trees-focus-ring-offset);
974    }
975  }
976
977  /* The wrapper for the tree items */
978  [role='tree'] {
979    position: relative;
980    display: flex;
981    flex-direction: column;
982    gap: var(--trees-gap-override, 0);
983  }
984
985  /* LIST ITEM */
986  [data-type='item'] {
987    color: inherit;
988    font-family: var(--trees-font-family);
989    font-size: var(--trees-font-size);
990    text-align: start;
991    outline: none;
992    background-color: var(--trees-bg);
993    border: none;
994    position: relative;
995
996    padding: 0 var(--trees-item-padding-x);
997    margin: 0 var(--trees-item-margin-x);
998    cursor: pointer;
999    -webkit-user-select: none;
1000            user-select: none;
1001    -webkit-touch-callout: none;
1002    touch-action: manipulation;
1003    display: flex;
1004    flex: 0 0 var(--trees-row-height);
1005    align-items: center;
1006    height: var(--trees-row-height);
1007    line-height: var(--trees-row-height);
1008    gap: var(--trees-item-row-gap);
1009    border-radius: var(--trees-border-radius);
1010    /* Row states may be translucent, so markers paint the tree background first
1011     * and then the state color on top to avoid compositing the same alpha twice. */
1012    --truncate-marker-background-color: var(--trees-bg);
1013    --truncate-marker-background-overlay-color: transparent;
1014    --truncate-marker-block-inset: 0px;
1015
1016    &:hover,
1017    &[data-item-context-hover='true'] {
1018      background-color: var(--trees-bg-muted);
1019      --truncate-marker-background-overlay-color: var(--trees-bg-muted);
1020    }
1021
1022    &[data-item-focused='true'],
1023    &:focus-visible {
1024      z-index: 2;
1025
1026      /* Flattened segment markers sit high enough to cover the row outline unless
1027       * their painted background is inset by the focus ring width. */
1028      [data-item-flattened-subitems] {
1029        --truncate-marker-block-inset: var(--trees-focus-ring-width);
1030      }
1031
1032      &::before {
1033        position: absolute;
1034        inset: 0;
1035        content: '';
1036        display: block;
1037        border-radius: var(--trees-border-radius);
1038        outline: var(--trees-focus-ring-width) solid
1039          var(--trees-focus-ring-color);
1040        outline-offset: var(--trees-focus-ring-offset);
1041        pointer-events: none;
1042      }
1043
1044      &[data-item-selected='true']::before {
1045        outline-color: var(--trees-selected-focused-border-color);
1046      }
1047    }
1048
1049    &[data-item-selected='true'] {
1050      color: var(--trees-selected-fg);
1051      background-color: var(--trees-selected-bg);
1052      --truncate-marker-background-overlay-color: var(--trees-selected-bg);
1053      z-index: 3;
1054
1055      [data-item-section='icon'] {
1056        color: var(--trees-selected-fg);
1057      }
1058    }
1059
1060    &[data-item-search-match='true'] {
1061      font-weight: var(--trees-search-font-weight);
1062    }
1063  }
1064
1065  [data-type='item'][data-file-tree-sticky-row='true'] {
1066    pointer-events: auto;
1067  }
1068
1069  /* Sticky rows opt back into pointer events because the overlay wrapper is
1070   * inert. During scroll, put them back under the same hover suppression as
1071   * the virtualized list so translucent hover states and menu triggers do not
1072   * paint over rows moving beneath the sticky stack. */
1073  [data-file-tree-virtualized-root='true'][data-is-scrolling]
1074    [data-type='item'][data-file-tree-sticky-row='true'] {
1075    pointer-events: none;
1076  }
1077
1078  [data-file-tree-virtualized-root='true'][data-is-scrolling]
1079    [data-type='item'][data-file-tree-sticky-row='true']:hover:not(
1080      [data-item-selected='true']
1081    ),
1082  [data-file-tree-virtualized-root='true'][data-is-scrolling]
1083    [data-type='item'][data-file-tree-sticky-row='true'][data-item-context-hover='true']:not(
1084      [data-item-selected='true']
1085    ) {
1086    background-color: var(--trees-bg);
1087    --truncate-marker-background-overlay-color: transparent;
1088  }
1089
1090  [data-item-selected='true']:has(+ [data-item-selected='true']) {
1091    border-bottom-left-radius: 0;
1092    border-bottom-right-radius: 0;
1093  }
1094
1095  [data-item-selected='true'] + [data-item-selected='true'] {
1096    border-top-left-radius: 0;
1097    border-top-right-radius: 0;
1098  }
1099
1100  /* Flattened Directory Parts */
1101  [data-item-flattened-subitems] {
1102    display: inline-flex;
1103    align-items: center;
1104    gap: 2px;
1105  }
1106  [data-item-flattened-subitem]:hover,
1107  [data-item-flattened-subitem-drag-target='true'] {
1108    text-decoration: underline;
1109  }
1110
1111  /* Icon for each item */
1112  [data-item-section='icon'] {
1113    flex-shrink: 0;
1114    display: flex;
1115    align-items: center;
1116    justify-content: center;
1117    color: var(--trees-fg-muted);
1118    fill: currentColor;
1119    width: var(--trees-icon-width);
1120  }
1121
1122  :where([data-item-section='icon'] > [data-icon-token]) {
1123    color: var(--trees-fg-muted);
1124  }
1125
1126  [data-file-tree-colored-icons='true'] {
1127    [data-icon-token='astro'] {
1128      color: var(--trees-file-icon-color-astro);
1129    }
1130    [data-icon-token='babel'] {
1131      color: var(--trees-file-icon-color-babel);
1132    }
1133    [data-icon-token='bash'] {
1134      color: var(--trees-file-icon-color-bash);
1135    }
1136    [data-icon-token='biome'] {
1137      color: var(--trees-file-icon-color-biome);
1138    }
1139    [data-icon-token='bootstrap'] {
1140      color: var(--trees-file-icon-color-bootstrap);
1141    }
1142    [data-icon-token='browserslist'] {
1143      color: var(--trees-file-icon-color-browserslist);
1144    }
1145    [data-icon-token='bun'] {
1146      color: var(--trees-file-icon-color-bun);
1147    }
1148    [data-icon-token='c'] {
1149      color: var(--trees-file-icon-color-c);
1150    }
1151    [data-icon-token='cpp'] {
1152      color: var(--trees-file-icon-color-cpp);
1153    }
1154    [data-icon-token='claude'] {
1155      color: var(--trees-file-icon-color-claude);
1156    }
1157    [data-icon-token='css'] {
1158      color: var(--trees-file-icon-color-css);
1159    }
1160    [data-icon-token='database'] {
1161      color: var(--trees-file-icon-color-database);
1162    }
1163    [data-icon-token='default'] {
1164      color: var(--trees-file-icon-color-default);
1165    }
1166    [data-icon-token='docker'] {
1167      color: var(--trees-file-icon-color-docker);
1168    }
1169    [data-icon-token='eslint'] {
1170      color: var(--trees-file-icon-color-eslint);
1171    }
1172    [data-icon-token='git'] {
1173      color: var(--trees-file-icon-color-git);
1174    }
1175    [data-icon-token='go'] {
1176      color: var(--trees-file-icon-color-go);
1177    }
1178    [data-icon-token='graphql'] {
1179      color: var(--trees-file-icon-color-graphql);
1180    }
1181    [data-icon-token='html'] {
1182      color: var(--trees-file-icon-color-html);
1183    }
1184    [data-icon-token='image'] {
1185      color: var(--trees-file-icon-color-image);
1186    }
1187    [data-icon-token='javascript'] {
1188      color: var(--trees-file-icon-color-javascript);
1189    }
1190    [data-icon-token='json'] {
1191      color: var(--trees-file-icon-color-json);
1192    }
1193    [data-icon-token='markdown'] {
1194      color: var(--trees-file-icon-color-markdown);
1195    }
1196    [data-icon-token='mcp'] {
1197      color: var(--trees-file-icon-color-mcp);
1198    }
1199    [data-icon-token='npm'] {
1200      color: var(--trees-file-icon-color-npm);
1201    }
1202    [data-icon-token='oxc'] {
1203      color: var(--trees-file-icon-color-oxc);
1204    }
1205    [data-icon-token='postcss'] {
1206      color: var(--trees-file-icon-color-postcss);
1207    }
1208    [data-icon-token='prettier'] {
1209      color: var(--trees-file-icon-color-prettier);
1210    }
1211    [data-icon-token='python'] {
1212      color: var(--trees-file-icon-color-python);
1213    }
1214    [data-icon-token='react'] {
1215      color: var(--trees-file-icon-color-react);
1216    }
1217    [data-icon-token='ruby'] {
1218      color: var(--trees-file-icon-color-ruby);
1219    }
1220    [data-icon-token='rust'] {
1221      color: var(--trees-file-icon-color-rust);
1222    }
1223    [data-icon-token='sass'] {
1224      color: var(--trees-file-icon-color-sass);
1225    }
1226    [data-icon-token='svg'] {
1227      color: var(--trees-file-icon-color-svg);
1228    }
1229    [data-icon-token='svelte'] {
1230      color: var(--trees-file-icon-color-svelte);
1231    }
1232    [data-icon-token='svgo'] {
1233      color: var(--trees-file-icon-color-svgo);
1234    }
1235    [data-icon-token='swift'] {
1236      color: var(--trees-file-icon-color-swift);
1237    }
1238    [data-icon-token='table'] {
1239      color: var(--trees-file-icon-color-table);
1240    }
1241    [data-icon-token='text'] {
1242      color: var(--trees-file-icon-color-text);
1243    }
1244    [data-icon-token='tailwind'] {
1245      color: var(--trees-file-icon-color-tailwind);
1246    }
1247    [data-icon-token='terraform'] {
1248      color: var(--trees-file-icon-color-terraform);
1249    }
1250    [data-icon-token='typescript'] {
1251      color: var(--trees-file-icon-color-typescript);
1252    }
1253    [data-icon-token='vite'] {
1254      color: var(--trees-file-icon-color-vite);
1255    }
1256    [data-icon-token='vscode'] {
1257      color: var(--trees-file-icon-color-vscode);
1258    }
1259    [data-icon-token='vue'] {
1260      color: var(--trees-file-icon-color-vue);
1261    }
1262    [data-icon-token='wasm'] {
1263      color: var(--trees-file-icon-color-wasm);
1264    }
1265    [data-icon-token='webpack'] {
1266      color: var(--trees-file-icon-color-webpack);
1267    }
1268    [data-icon-token='yml'] {
1269      color: var(--trees-file-icon-color-yml);
1270    }
1271    [data-icon-token='zig'] {
1272      color: var(--trees-file-icon-color-zig);
1273    }
1274    [data-icon-token='zip'] {
1275      color: var(--trees-file-icon-color-zip);
1276    }
1277  }
1278
1279  /* Chevron rotation and visual alignment */
1280  /* Chevron pointing down */
1281  [data-icon-name='file-tree-icon-chevron'] {
1282    &[data-align-capitals='false'] {
1283      transform: translate(0, var(--trees-icon-nudge));
1284    }
1285    &[data-align-capitals='true'] {
1286      transform: translate(0, 0);
1287    }
1288  }
1289
1290  [data-item-section='content'] {
1291    flex: 0 1 auto;
1292    text-align: start;
1293    min-width: 0;
1294    max-width: 100%;
1295    overflow: hidden;
1296    text-overflow: ellipsis;
1297    /* Breaks middle truncate component to also set this */
1298    /* white-space: nowrap; */
1299  }
1300
1301  [data-item-section='decoration'] {
1302    flex: 1 1 0;
1303    min-width: 0;
1304    display: flex;
1305    justify-content: flex-end;
1306    text-align: end;
1307    overflow: hidden;
1308    color: var(--trees-fg-muted);
1309  }
1310
1311  [data-item-section='decoration'] > span {
1312    min-width: 0;
1313    max-width: 100%;
1314    display: inline-flex;
1315    align-items: center;
1316    justify-content: flex-end;
1317    overflow: hidden;
1318    text-overflow: ellipsis;
1319    white-space: nowrap;
1320  }
1321
1322  [data-item-section='git'],
1323  [data-item-section='action'] {
1324    flex: 0 0 auto;
1325    display: flex;
1326    align-items: center;
1327    justify-content: center;
1328  }
1329
1330  [data-item-section='git'] {
1331    width: var(--trees-git-lane-width);
1332  }
1333
1334  [data-item-section='action'] {
1335    width: var(--trees-action-lane-width);
1336    color: var(--trees-fg-muted);
1337    fill: currentColor;
1338    pointer-events: none;
1339  }
1340
1341  [data-item-section='git'] > span,
1342  [data-item-section='action'] > span {
1343    width: 100%;
1344    display: inline-flex;
1345    align-items: center;
1346    justify-content: center;
1347  }
1348
1349  [data-item-action-affordance='decorative'] {
1350    opacity: 0.85;
1351  }
1352
1353  [data-item-rename-input] {
1354    appearance: none;
1355    width: 100%;
1356    min-width: 0;
1357    height: calc(var(--trees-row-height) - 4px);
1358    font-family: inherit;
1359    font-size: inherit;
1360    /* line-height: calc(var(--trees-row-height) - 8px); */
1361    color: inherit;
1362    background-color: transparent;
1363    border: 0;
1364    padding-inline: 6px;
1365    outline: none;
1366    box-sizing: border-box;
1367  }
1368
1369  [data-item-section='content']:has([data-item-rename-input])
1370    ~ [data-item-section='action'],
1371  [data-item-section='content']:has([data-item-rename-input])
1372    ~ [data-item-section='decoration'] {
1373    display: none;
1374  }
1375
1376  /* Chevron pointing right */
1377  [aria-expanded='false'][data-item-type='folder']
1378    > [data-item-section='icon']
1379    > [data-icon-name='file-tree-icon-chevron'] {
1380    &[data-align-capitals='true'] {
1381      transform: rotate(-90deg)
1382        translate(
1383          calc(var(--trees-icon-nudge) / 2),
1384          calc(var(--trees-icon-nudge) / 2)
1385        );
1386    }
1387    &[data-align-capitals='false'] {
1388      transform: rotate(-90deg)
1389        translate(
1390          calc(var(--trees-icon-nudge) / 2 * -1),
1391          calc(var(--trees-icon-nudge) / 2)
1392        );
1393    }
1394  }
1395
1396  /* LIST IDENTATION */
1397  /* Spacing container */
1398  [data-item-section='spacing'] {
1399    display: flex;
1400    flex-direction: row;
1401    align-items: center;
1402    justify-content: center;
1403    height: var(--trees-row-height);
1404    padding-left: calc(calc(var(--trees-icon-width) / 2) - 0.5px);
1405
1406    &:empty {
1407      padding-left: 0;
1408    }
1409  }
1410
1411  /* Spacing per level */
1412  [data-item-section='spacing-item'] {
1413    transform: translateX(-0.25px);
1414    display: inline-block;
1415    border-left: 1px solid var(--trees-indent-guide-bg);
1416    height: 100%;
1417    margin-right: calc(var(--trees-level-gap) - 1px);
1418    opacity: 0;
1419    transition: opacity 150ms ease;
1420
1421    & + & {
1422      margin-left: calc(
1423        var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - 0.5px
1424      );
1425    }
1426  }
1427
1428  :host(:hover) [data-item-section='spacing-item'] {
1429    opacity: 0.75;
1430  }
1431
1432  /* Git status indicator */
1433
1434  /* This is a folder that contains a git change */
1435  [data-item-contains-git-change='true'] > [data-item-section='git'] {
1436    color: var(--trees-git-modified-color);
1437    opacity: 0.5;
1438    fill: currentColor;
1439  }
1440
1441  /* These are files that have a git change */
1442  [data-item-git-status] {
1443    &
1444      > :where([data-item-section='icon'])
1445      > :where(:not([data-icon-name='file-tree-icon-chevron'])) {
1446      color: var(--trees-item-git-status-color);
1447    }
1448    & > [data-item-section='content'] {
1449      color: var(--trees-item-git-status-color);
1450    }
1451    & > [data-item-section='git'] {
1452      color: var(--trees-item-git-status-color);
1453      font-weight: var(--trees-font-weight-semibold);
1454    }
1455  }
1456
1457  [data-item-git-status='added'] {
1458    --trees-item-git-status-color: var(--trees-git-added-color);
1459  }
1460
1461  [data-item-git-status='deleted'] {
1462    --trees-item-git-status-color: var(--trees-git-deleted-color);
1463  }
1464
1465  [data-item-git-status='ignored'] {
1466    --trees-item-git-status-color: var(--trees-git-ignored-color);
1467
1468    & > [data-item-section='icon'] {
1469      opacity: 0.5;
1470    }
1471  }
1472
1473  [data-item-section='git'] [data-icon-name='file-tree-icon-dot'] {
1474    /* this is a nudge to align the dot with the likely lowercase text. it's slightly
1475    generalizable, but other fonts are gonna need other nudges i assume */
1476    transform: translateY(calc(0.65ex - 50%));
1477  }
1478
1479  [data-item-git-status='modified'] {
1480    --trees-item-git-status-color: var(--trees-git-modified-color);
1481  }
1482
1483  [data-item-git-status='renamed'] {
1484    --trees-item-git-status-color: var(--trees-git-renamed-color);
1485  }
1486
1487  [data-item-git-status='untracked'] {
1488    --trees-item-git-status-color: var(--trees-git-untracked-color);
1489  }
1490
1491  /* Drag and drop */
1492  [data-item-drag-target='true'] {
1493    background-color: var(--trees-selected-bg);
1494  }
1495
1496  [data-item-dragging='true'] {
1497    opacity: 0.5;
1498  }
1499
1500  /* Lock icon for locked paths (sibling of content) */
1501  [data-item-section='lock'] {
1502    flex: 0 0 auto;
1503    margin-left: auto;
1504    display: flex;
1505    align-items: center;
1506    color: var(--trees-fg-muted);
1507  }
1508  [data-item-section='lock'] svg {
1509    display: block;
1510  }
1511
1512  [data-type='header-slot'] {
1513    display: block;
1514    flex: 0 0 auto;
1515  }
1516
1517  [data-type='context-menu-wash'] {
1518    position: absolute;
1519    inset: 0;
1520    z-index: 3;
1521    background-color: transparent;
1522    touch-action: none;
1523  }
1524
1525  [data-type='context-menu-anchor'] {
1526    position: absolute;
1527    top: 0;
1528    right: var(--trees-context-menu-trigger-inline-offset);
1529    z-index: 4;
1530    display: none;
1531    align-items: center;
1532
1533    &[data-visible='true'] {
1534      display: flex;
1535    }
1536  }
1537
1538  /* Hide the floating trigger while the scroll container is actively moving.
1539   * The anchor is positioned against the root, not the scroll content, so its
1540   * \`top\` follows the row via a React state update — one frame behind the
1541   * compositor. That delay is visible as the trigger hovering over the wrong
1542   * row during the first frame of a scroll. The \`data-is-scrolling\` flag on
1543   * the root is flipped synchronously on \`wheel\`/\`touchmove\`/\`keydown\` before
1544   * the compositor commits the next paint, so this selector hides the anchor
1545   * in the same frame the scroll begins. */
1546  [data-file-tree-virtualized-root='true'][data-is-scrolling]
1547    [data-type='context-menu-anchor'] {
1548    display: none;
1549  }
1550
1551  [data-type='context-menu-anchor'] > slot[name='context-menu'] {
1552    display: block;
1553    width: 0;
1554    min-width: 0;
1555    flex: 0 0 0;
1556    overflow: visible;
1557  }
1558
1559  /* Single floating context menu trigger */
1560  [data-type='context-menu-trigger'] {
1561    all: unset;
1562    align-items: center;
1563    justify-content: center;
1564    width: var(--trees-action-lane-width);
1565    color: var(--trees-fg-muted);
1566    fill: currentColor;
1567    cursor: pointer;
1568    font-family: var(--trees-font-family);
1569    font-size: var(--trees-font-size);
1570    border-top-right-radius: var(--trees-border-radius);
1571    border-bottom-right-radius: var(--trees-border-radius);
1572    margin: var(--trees-focus-ring-width);
1573    height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);
1574    border-width: 0;
1575    transition: color 120ms ease;
1576
1577    display: flex;
1578  }
1579
1580  [data-type='context-menu-trigger']:hover,
1581  [data-type='context-menu-trigger'][aria-expanded='true'] {
1582    color: var(--trees-fg);
1583  }
1584
1585  /** @pierre/truncate css here, manually copy pasted for now */
1586  [data-truncate-container] {
1587    /* CUSTOM TO TREES, TO SUPPORT THE OUTLINE */
1588    margin-top: -1px;
1589    margin-bottom: -1px;
1590
1591    /* Width of the fade from default marker to text */
1592    --truncate-internal-marker-fade-width: var(
1593      --truncate-marker-fade-width,
1594      2px
1595    );
1596    /* Width of the solid color between the fade from the default marker to the text */
1597    --truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);
1598    /* Opacity of the marker 'color' property, not of the element itself */
1599    --truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);
1600    /* Opacity of the marker 'color' property specifically for the middle truncate, not opacity of the element itself */
1601    --truncate-internal-middle-marker-opacity: var(
1602      --truncate-middle-marker-opacity,
1603      80%
1604    );
1605    /* Background color of the default marker */
1606    --truncate-internal-marker-background-color: var(
1607      --truncate-marker-background-color,
1608      light-dark(white, black)
1609    );
1610    --truncate-internal-marker-background-overlay-color: var(
1611      --truncate-marker-background-overlay-color,
1612      transparent
1613    );
1614    --truncate-internal-marker-block-inset: var(
1615      --truncate-marker-block-inset,
1616      0px
1617    );
1618    /* Duration of the fade out animation for the marker */
1619    --truncate-internal-marker-fade-out-duration: var(
1620      --truncate-marker-fade-out-duration,
1621      0ms
1622    );
1623    /* Duration of the fade in animation for the marker */
1624    --truncate-internal-marker-fade-in-duration: var(
1625      --truncate-marker-fade-in-duration,
1626      100ms
1627    );
1628
1629    /* FADE Variant specifics */
1630    --truncate-internal-fade-marker-color: var(
1631      --truncate-fade-marker-color,
1632      #000
1633    );
1634    --truncate-internal-fade-marker-width: var(
1635      --truncate-fade-marker-width,
1636      0.2lh
1637    );
1638
1639    /*
1640    In some special cases people might be adding spacing in other ways
1641    that would benefit from being able to override this, however the container
1642    query below can't use this and would need to be redeclared with the overridden
1643    value. It's a bad time, but better than nothing.
1644    */
1645    --truncate-internal-single-line-height: 1lh;
1646
1647    height: var(--truncate-internal-single-line-height);
1648    min-width: 0;
1649    overflow: hidden;
1650  }
1651
1652  [data-truncate-marker] {
1653    display: flex;
1654    position: absolute;
1655    height: var(--truncate-internal-single-line-height);
1656    padding-block: var(--truncate-internal-marker-block-inset);
1657    box-sizing: border-box;
1658    align-items: center;
1659    background-clip: content-box;
1660    z-index: 2;
1661    color: color-mix(
1662      in srgb,
1663      currentColor var(--truncate-internal-marker-opacity),
1664      transparent
1665    );
1666
1667    /* Core trick for hiding the marker until overflow occurs */
1668    opacity: 0;
1669    transition: opacity var(--truncate-internal-marker-fade-out-duration)
1670      ease-in-out;
1671  }
1672
1673  @container measure (height > 1lh) {
1674    [data-truncate-marker] {
1675      opacity: 1;
1676      transition: opacity var(--truncate-internal-marker-fade-in-duration)
1677        ease-in-out;
1678    }
1679  }
1680
1681  [data-truncate-grid] {
1682    display: grid;
1683    position: relative;
1684  }
1685
1686  [data-truncate-content='visible'] {
1687    white-space: nowrap;
1688  }
1689
1690  [data-truncate-content='overflow'] {
1691    opacity: 0;
1692    pointer-events: none;
1693    -webkit-user-select: none;
1694            user-select: none;
1695    word-break: break-all;
1696    margin-top: calc(-1 * var(--truncate-internal-single-line-height));
1697  }
1698
1699  [data-truncate-marker-cell] {
1700    container: measure / size;
1701    overflow: visible;
1702    -webkit-user-select: none;
1703            user-select: none;
1704    pointer-events: none;
1705  }
1706
1707  [data-truncate-container='truncate'] {
1708    & [data-truncate-grid] {
1709      grid-template-columns: minmax(0, max-content) 0;
1710    }
1711    & [data-truncate-marker] {
1712      right: 0;
1713    }
1714    & [data-truncate-fade] {
1715      margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));
1716    }
1717  }
1718
1719  [data-truncate-container='fruncate'] {
1720    & [data-truncate-grid] {
1721      grid-template-columns: 0 minmax(0, max-content) auto;
1722    }
1723    & [data-truncate-content] {
1724      direction: rtl;
1725    }
1726    & [data-truncate-content] > span {
1727      unicode-bidi: plaintext;
1728    }
1729    & [data-truncate-fade] {
1730      margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));
1731    }
1732  }
1733
1734  [data-truncate-variant='default'] {
1735    & [data-truncate-marker] {
1736      background-color: var(--truncate-internal-marker-background-color);
1737      background-image: linear-gradient(
1738        var(--truncate-internal-marker-background-overlay-color),
1739        var(--truncate-internal-marker-background-overlay-color)
1740      );
1741    }
1742    & [data-truncate-marker]::after,
1743    & [data-truncate-marker]::before {
1744      content: '';
1745      position: absolute;
1746      width: calc(
1747        var(--truncate-internal-marker-fade-width) +
1748          var(--truncate-internal-marker-gap)
1749      );
1750      inset-block-start: var(--truncate-internal-marker-block-inset);
1751      height: max(
1752        0px,
1753        calc(
1754          var(--truncate-internal-single-line-height) -
1755            var(--truncate-internal-marker-block-inset) * 2
1756        )
1757      );
1758      background-color: var(--truncate-internal-marker-background-color);
1759      background-image: linear-gradient(
1760        var(--truncate-internal-marker-background-overlay-color),
1761        var(--truncate-internal-marker-background-overlay-color)
1762      );
1763      mask-image: linear-gradient(
1764        var(--truncate-internal-fade-dir),
1765        #000 0%,
1766        #000 var(--truncate-internal-marker-gap),
1767        transparent 100%
1768      );
1769    }
1770    & [data-truncate-marker]::after {
1771      --truncate-internal-fade-dir: to right;
1772      right: calc(
1773        -1 *
1774          (
1775            var(--truncate-internal-marker-fade-width) +
1776              var(--truncate-internal-marker-gap)
1777          )
1778      );
1779    }
1780    & [data-truncate-marker]::before {
1781      --truncate-internal-fade-dir: to left;
1782      left: calc(
1783        -1 *
1784          (
1785            var(--truncate-internal-marker-fade-width) +
1786              var(--truncate-internal-marker-gap)
1787          )
1788      );
1789    }
1790  }
1791
1792  [data-truncate-variant='fade'] {
1793    & [data-truncate-marker] {
1794      background: transparent;
1795    }
1796  }
1797
1798  [data-truncate-fade] {
1799    box-shadow:
1800      0 0 calc(var(--truncate-internal-fade-marker-width) / 2)
1801        var(--truncate-internal-fade-marker-color),
1802      0 0 var(--truncate-internal-fade-marker-width)
1803        var(--truncate-internal-fade-marker-color);
1804    width: calc(var(--truncate-internal-fade-marker-width) * 2);
1805    height: calc(
1806      var(--truncate-internal-single-line-height) -
1807        (var(--truncate-internal-fade-marker-width) * 2)
1808    );
1809    margin: var(--truncate-internal-fade-marker-width) 0;
1810  }
1811
1812  [data-truncate-group-container='middle'] {
1813    & [data-truncate-container] {
1814      --truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);
1815    }
1816
1817    display: flex;
1818    min-width: 0;
1819
1820    & > div {
1821      min-width: 0;
1822    }
1823
1824    & > div[data-truncate-segment-priority='1'] {
1825      flex: 0 1 max-content;
1826    }
1827    & > div[data-truncate-segment-priority='2'] {
1828      flex: 0 999999 max-content;
1829    }
1830  }
1831}
1832`})))()}function Hi(e){return`${Wi}
1833@layer base {
1834  ${e}
1835}`}function Ui(e){return`${Wi}
1836@layer unsafe {
1837  ${e}
1838}`}var Wi;function Gi(){return(Gi=e((()=>{Wi=`@layer base, unsafe;`}
1838)))()}function Ki(e){let t=Ji.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(Ve,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),Ji.set(e,i),i}function qi(e,t){if(!e.isConnected)return;let n=Ki(t);if(n==null)return;let r=t.querySelector(`style[${He}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(He,``),t.appendChild(i)),i.textContent=`:host { ${Ue}: ${n}px; }`}var Ji;function Yi(){return(Yi=e((()=>{qe(),Ji=new WeakMap})))()}function Xi(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){$i??($i=new CSSStyleSheet,$i.replaceSync(Hi(Bi)));let t=!1;try{e.adoptedStyleSheets=[$i],t=!0}catch{}if(t){e.querySelector(`style[${ze}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(ze,``),t.textContent=Hi(Bi),e.prepend(t)}}function Zi(e,t){Qi(e,t),Xi(t),qi(e,t)}function Qi(e,t){let 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()))}var $i;function ea(){return(ea=e((()=>{if(qe(),Vi(),Gi(),Yi(),typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});Zi(this,e)}}if(customElements.define(Re,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(Re)))e instanceof HTMLElement&&Zi(e,e.shadowRoot??e.attachShadow({mode:`open`}))}})))()}var ta;function na(){return(na=e((()=>{qe(),ta=e=>e.startsWith(`f::`)?e.slice(3):e})))()}function ra(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function ia(e,t){return e===``?t:`${e}/${t}`}function aa({files:e,path:t,isFolder:n,nextBasename:r}){let i=ta(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=ra(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=ia(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function oa(){return(oa=e((()=>{na()})))()}function sa(e){return e.endsWith(`/`)}function ca(e){let 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 la(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function ua(e,t){return t.includes(e)?la(t):[e]}function da(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 fa(e,t){return{draggedPaths:e,target:t}}function pa(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(sa(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n))
1838)return!0;return!1}function ma(e,t){return t.kind===`root`||t.directoryPath==null?ca(e):t.directoryPath}function ha(e,t){let n=e.map(e=>{let n=ma(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function ga(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 _a(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!ga(Ni.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function va(){return(va=e((()=>{Pi()})))()}function ya(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function ba(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function xa(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function Sa(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 xa(e,t.path)?n?e:null:e;case`move`:return ba(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=Sa(r,e,n),r==null)return null;return r}}}function Ca(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function wa(e){switch(e.operation){case`add`:return{...Ca(e),operation:`add`,path:e.path};case`remove`:return{...Ca(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...Ca(e),from:e.from,operation:`move`,to:e.to}}}function Ta(e){return{...Ca(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>wa(e)),operation:`batch`}}function Ea(e){switch(e.operation){case`add`:case`remove`:case`move`:return wa(e);case`batch`:return Ta(e);default:return null}}function Da(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Oa(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function ka(e){return Oa(e).at(-1)??null}function Aa(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function ja(e){return e.endsWith(`/`)}var Ma;function Na(){return(Na=e((()=>{Ma=e=>e.toLowerCase()})))()}function Pa(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function Fa(e){return e.endsWith(`/`)?e.slice(0,-1):e}function Ia(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var La;function Ra(){return(Ra=e((()=>{La=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()}})))()}function za(e){return e===`top`||e===`center`?e:`nearest`}function Ba(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=Oa(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function Va(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};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:Ba(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var Ha,Ua,Wa,Ga;function Ka(){return(Ka=e((()=>{Pi(),oa(),va(),Na(),Ra(),Ha=Symbol(`FILE_TREE_RENAME_VIEW`),Ua=512,Wa=512,Ga=class{#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput
1838:c,...l}=e,u=_a({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=ka(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:za(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=Wa){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t==null||!this.#B.has(t)||this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=ua(t,n);return this.#r.canDrag?.(r)!==!1&&(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=fa(t.draggedPaths,n);(pa(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}da(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=fa(e.draggedPaths,t);if(pa(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=ha(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=ja(r),a=Fa(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of Oa(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#
1838E=Pa(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}[Ha](){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,ja(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,ja(e)?{recursive:!0}:void 0);return}let t=ja(e),n=aa({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:Fa(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(Ia(n.sourcePath,t),Ia(n.destinationPath,t))}#Y(e){this.#T!=null&&this.#E!==e&&(this.#E=e,this.#De())}resetPaths(e,t={}){let n=this.#H.list().length,r=this.#G,i=_a({paths:e,preparedInput:t.preparedInput},`resetPaths`,this.#e.sort),a=this.#le(i.paths,i.preparedInput,t.initialExpandedPaths),o=this.#c,s=this.#T,c=this.getSelectedPaths(),l=this.#z;this.#K?.(),this.#H=a,this.#d.clear(),this.#he();let u=c.map(e=>a.getPathInfo(e)?.path??null).filter(e=>e!=null),d=!Da(this.#B,u);this.#B=new Set(u),d&&(this.#V+=1),this.#z=l==null?null:a.getPathInfo(l)?.path??null,this.#T=s==null?null:a.getPathInfo(s)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(o,o!=null||u.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:i.paths.length,pathCountBefore:n,projectionChanged:!0,usedPreparedInput:t.preparedInput!=null,visibleCountDelta:this.#G-r})}#X(e){this.#Ie();let t=ka(e),n=Aa(e,t),r=null,i=null;for(let e of this.#be()){if(ka(e)!==t)continue;let a=Aa(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=Oa(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!Da(this.#B,r),a=this.#z!==t;!i&&!a||(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}
1838#le(e,t,n){return new Ni({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of Oa(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(Ma),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(Ma),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of Oa(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:La(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of Oa(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of Oa(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=Va(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,Ua)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s!==e||this.#c!==n)&&(this.#s=e,this.#c=n,t&&this.#De())}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=Sa(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=Sa(this.#c,e,!0),r=[...this.#B].map(t=>Sa(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=Sa(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return Da(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&ya(e)&&(this.#i=null);let t=ya(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>
18380?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=Ea(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}}})))()}var qa;function Ja(){return(Ja=e((()=>{qa=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t}})))()}function Ya(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(e[t]!==`/`&&t!==e.length){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function Xa(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function Za(e,t){return t?`${e}/`:e}function Qa(e,t=null){let n=qa(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set;for(let t of e??[]){let e=Ya(t.path);if(e==null)continue;let n=Za(e.path,e.isDirectory);r.set(n,t.status),t.status===`ignored`&&e.isDirectory?a.add(n):e.isDirectory&&a.delete(n);for(let t of Xa(e.path))i.add(t)}return{directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}function $a(){return($a=e((()=>{Ja()})))()}function eo(e){e&&e.parentNode&&e.remove()}function to(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?zo.call(arguments,2):n),no(e,o,r,i,null)}function no(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Do,__i:-1,__u:0};return i==null&&J.vnode!=null&&J.vnode(a),a}function ro(e){return e.children}function io(e,t){this.props=e,this.context=t,this.__g=0}function ao(e,t){if(t==null)return e.__?ao(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`?ao(e):null}function oo(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 oo(e)}}function so(e){(8&e.__g||!(e.__g|=8)||!Oo.push(e)||Ao++)&&ko==J.debounceRendering||((ko=J.debounceRendering)||queueMicrotask)(co)}function co(){for(var e,t,n,r,i,a,o,s,c=1;Oo.length;)Oo.length>c&&Oo.sort(jo),e=Oo.shift(),c=Oo.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=Bo({},r)).__v=r.__v+1,J.vnode&&J.vnode(n),_o(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??ao(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,yo(a,n,o),n.__e!=i&&oo(n)));Ao=0}function lo(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||Lo,b=t.length;for(c=uo(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?Io:y[m.__i]||Io,m.__i=f,_=_o(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&So(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=fo(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function uo(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?no(null,o,null,null,null):Ro(o)?no(ro,{children:o},null,null,null):o.constructor==null&&o.__b>0?no(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=po(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=ao(s)),Co(s,s));return r}function fo(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=fo(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=ao(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function po(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;
vendor: 4,398 bytes, line 1838
1838)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function mo(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function ho(e,t,n,r,i){var a;n: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||mo(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||mo(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(Mo,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=No,e.addEventListener(t,a?Fo:Po,a)):e.removeEventListener(t,a?Fo:Po,a);else{if(i==`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 n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function go(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=No++;else if(t.u<n.l)return;return n(J.event?J.event(t):t)}}}function _o(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,ee,te,w,T,E,ne,D,re,O=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=J.__b)&&d(t);n:if(typeof O==`function`)try{if(v=t.props,y=`prototype`in O&&O.prototype.render,b=(d=O.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new O(v,x):(t.__c=f=new io(v,x),f.constructor=O,f.render=wo),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&O.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Bo({},f.__s)),Bo(f.__s,O.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&O.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&O.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=J.__r,ee=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),te=0;te<f._sb.length;te++)f.__h.push(f._sb[te]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++ee<25);f.state=f.__s,f.getChildContext!=null&&(r=Bo({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),w=d,d!=null&&d.type===ro&&d.key==null&&(w=bo(d.props.children)),s=lo(e,Ro(w)?w:[w],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(T=0,E=!1,t.__u|=c?160:128,t.__c.__z=[],ne=0;ne<a.length;ne++)(D=a[ne])==null||E||(D.nodeType==8&&D.data==`$s`?(T>0&&t.__c.__z.push(D),T++,a[ne]=null):D.nodeType==8&&D.data==`/$s`?(--T>0&&t.__c.__z.push(D),E=T===0,s=a[ne],a[ne]=null):T>0&&(t.__c.__z.push(D),a[ne]=null));if(!E){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(re=a.length;re--;)eo(a[re]);vo(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||vo(t);J.__e(e,t,n)}else s=t.__e=xo(n.__e,t,n,r,i,a,o,c,l,u);return(d=J.diffed)&&d(t),128&t.__u?void 0:s}function vo(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(vo)}function yo(e,t,n){for(var r=0;r<n.length;r++)So(n[r],n[++r],n[++r]);J.__c&&J.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){J.__e(e,t.__v)}})}function bo(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:Ro(e)?e.map(bo):Bo({},e)}function xo(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;
1838u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(J.__m&&J.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=zo.call(e.childNodes),v=n.props||Io,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;ho(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||ho(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),lo(b==`template`?e.content:e,Ro(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&ao(n,0),s,c,l),a!=null)for(u=a.length;u--;)eo(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||ho(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&ho(e,u,g,v[u],i))}return e}function So(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(e){J.__e(e,n)}}function Co(e,t,n){var r,i;if(J.unmount&&J.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||So(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){J.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Co(r[i],t,n||typeof e.type!=`function`);n||eo(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function wo(e,t,n){return this.constructor(e,n)}function To(e,t){var n,r,i,a;t==document&&(t=document.documentElement),J.__&&J.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=to(ro,null,[e]),i=[],a=[],_o(t,e,r||Io,Io,t.namespaceURI,r?null:t.firstChild?zo.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),yo(i,e,a)}function Eo(e,t){e.__u|=32,To(e,t)}var J,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo;function Vo(){return(Vo=e((()=>{Io={},Lo=[],Ro=Array.isArray,zo=Lo.slice,Bo=Object.assign,J={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw Ao=0,e}},Do=0,io.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Bo({},this.state);typeof e==`function`&&(e=e(Bo({},n),this.props)),e&&Bo(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),so(this))},io.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),so(this))},io.prototype.render=ro,Oo=[],Ao=0,jo=function(e,t){return e.__v.__b-t.__v.__b},Mo=/(PointerCapture)$|Capture$/i,No=0,Po=go(!1),Fo=go(!0)})))()}function Y(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ho,__i:-1,__u:0,__source:i,__self:a};return J.vnode&&J.vnode(l),l}var Ho;function Uo(){return(Uo=e((()=>{Vo(),Ho=0,Array.isArray})))()}function Wo({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=qo[e]??{width:Go,height:Ko},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return Y(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:Y(`use`,{href:c})})}var Go,Ko,qo;function Jo(){return(Jo=e((()=>{Uo(),Go=16,Ko=16,qo={}})))()}function Yo({children:e,marker:t,variant:n=`default`}){"use no memo";return Y(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:Y(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?Y(`span`,{"data-truncate-fade":!0}):t})})}function Xo(e){"use no memo";let{mode:t,children:n}=e;return Y(`div`,{children:[Y(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?Y(`span`,{children:n}):n}
1838),Y(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?Y(`span`,{children:n}):n})]})}function Zo({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Y(Xo,{mode:t,children:e},`content`),o=Y(Yo,{marker:n,mode:t,variant:r},`marker`),s=Y(`div`,{"data-truncate-fill":!0},`fill`);return Y(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:Y(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function Qo({children:e,...t}){"use no memo";return Y(Zo,{mode:`truncate`,...t,children:e})}function $o({children:e,...t}){"use no memo";return Y(Zo,{mode:`fruncate`,...t,children:e})}function es({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=Y(Qo,{...s,children:t[0]}),l=Y($o,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return Y(`div`,{className:a,style:o});if(e.length<i)return Y(n===`end`?$o:Qo,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=ts:r===`extension`?t=ns:r===`leaf-path`&&(t=rs);else if(typeof r==`number`)t=is,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=as:e===`first`&&(t=os)}else typeof r==`function`&&(t=r);t??=ts;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=Y(Qo,{...s,..._,children:f}),l=Y($o,{...s,...v,children:p})}return Y(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[Y(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),Y(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var ts,ns,rs,is,as,os;function ss(){return(ss=e((()=>{Uo(),ts=e=>{if(e.length<2)return[e,``];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]},ns=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},rs=e=>{if(e.length<4)return[e,``];let 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)]},is=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},as=(e,{splitOffset:t}={})=>
1838{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},os=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]}})))()}function cs(e,t,n){return Math.min(Math.max(e,t),n)}function ls(e,t){return e<0||t<e?ys:{endIndex:t,startIndex:e}}function us(e){return e.startIndex<0||e.endIndex<e.startIndex}function ds(e,t){return us(e)?0:(e.endIndex-e.startIndex+1)*t}function fs(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function ps(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function ms(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function hs(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function gs(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}
1838function _s(e,t,n){if(e.length===0||t<=0)return[];let r=gs(e),i=ms(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=hs(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function vs(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=cs(t.scrollTop,0,o),c=t.stickyRows??_s(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=fs(s,n,t.itemHeight),m=fs(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?ys:ls(m,ps(u+d,n,t.itemHeight)),y=g+1,b=us(v)?ys:ls(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=ds(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:us(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var ys;function bs(){return(bs=e((()=>{ys={endIndex:-1,startIndex:-1}})))()}var xs,Ss,Cs;function ws(){return(ws=e((()=>{xs={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},Ss={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},Cs=`Contains git status items`})))()}function Ts(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function Es(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return Ts({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function Ds(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function Os(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function ks(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function As(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function js(e,t){return e!=null&&e>0?e:t}function Ms(e){let 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 Ns(e,t,n,r,i=0){let a=Ts({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function Ps(e,t,n,r,i,a,o=0){let s=Es({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function Fs(e,t,n,r,i,a){let o=Ds({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHe
1838ight:r});return o!=null&&(e.scrollTop=o,!0)}function Is(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function Ls(){return(Ls=e((()=>{})))()}function Rs(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function zs({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return Y(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function Bs(){return(Bs=e((()=>{Uo()})))()}function Vs(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function Hs(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}function Us(e,t){$.__h&&$.__h(Q,e,ac||t),ac=0;var n=Q.__H||(Q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ws(e){return ac=1,Gs(ec,e)}function Gs(e,t,n){var r=Us(tc++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ec(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);ic(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Q,!Q.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,ic(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};Q.__f=!0;var a=Q.shouldComponentUpdate,o=Q.componentWillUpdate;Q.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},Q.shouldComponentUpdate=i}return r.__N||r.__}function Ks(e,t){var n=Us(tc++,3);!$.__s&&$s(n.__H,t)&&(n.__=e,n.u=t,Q.__H.__h.push(n))}function qs(e,t){var n=Us(tc++,4);!$.__s&&$s(n.__H,t)&&(n.__=e,n.u=t,Q.__h.push(n))}function X(e){return ac=5,Js(function(){return{current:e}},[])}function Js(e,t){var n=Us(tc++,7);return $s(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Z(e,t){return ac=8,Js(function(){return e},t)}function Ys(){for(var e;e=oc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Zs),e.__H.__h.forEach(Qs),e.__H.__h=[]}catch(t){e.__H.__h=[],$.__e(t,e.__v)}}function Xs(e){var t,n=function(){clearTimeout(r),pc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);pc&&(t=requestAnimationFrame(n))}function Zs(e){var t=Q,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Q=t}function Qs(e){var t=Q;e.__c=e.__(),Q=t}function $s(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!ic(t,e[n])})}function ec(e,t){return typeof t==`function`?t(e):t}var tc,Q,nc,rc,ic,ac,oc,$,sc,cc,lc,uc,dc,fc,pc;function mc(){return(mc=e((()=>{Vo(),ic=Object.is,ac=0,oc=[],$=J,sc=$.__b,cc=$.__r,lc=$.diffed,uc=$.__c,dc=$.unmount,fc=$.__,$.__b=function(e){Q=null,sc&&sc(e)},$.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fc&&fc(e,t)},$.__r=function(e){cc&&cc(e),tc=0;var t=(Q=e.__c).__H;t&&(nc===Q?(t.__h=[],Q.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(Zs),t.__h.forEach(Qs),t.__h=[],tc=0)),nc=Q},$.diffed=function(e){lc&&lc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(oc.push(t)!==1&&rc===$.requestAnimationFrame||((rc=$.requestAnimationFrame)||Xs)(Ys)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),nc=Q=null}
1838,$.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Zs),e.__h=e.__h.filter(function(e){return!e.__||Qs(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],$.__e(n,e.__v)}}),uc&&uc(e,t)},$.unmount=function(e){dc&&dc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Zs(e)}catch(e){t=e}}),n.__H=void 0,t&&$.__e(t,n.__v))},pc=typeof requestAnimationFrame==`function`})))()}function hc(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:Y(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return Y(ro,{children:[Y(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:Y(Qo,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function gc(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function _c(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function vc(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function yc({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=vs(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:vc(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?vc(u,1,t,o):i&&r<=0&&c.length>0?_s(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}function bc(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?xc(e,t,n):a instanceof HTMLElement?a:null}function xc(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function Sc(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function Cc(e){let 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 wc(){return navigator.vendor!==`Apple Computer, Inc.`}function Tc(e,t){let n=e-t.top;if(n<el)return-Math.ceil((el-Math.max(0,n))/el*tl);let r=t.bottom-e;return r<el?Math.ceil((el-Math.max(0,r))/el*tl):0}function Ec(e,t){if(e!=null){let t=xs[e];return t==null?null:{text:t,title:Ss[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:Cs}:null}function Dc(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function Oc(e){return e!=null&&`toggle`in e}function kc(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function Ac(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function jc(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function Mc(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function Nc(e,t){return t&&Mc(e)||(e.ctrlKey||e.metaKey)&&kc(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}function Pc(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.f
1838ileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function Fc(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 Ic(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function Lc(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function Rc(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function zc(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function Bc(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function Vc(e,t){if(e==null||t==null)return null;for(let 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 Hc(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=Vc(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function Uc(e,t){return{kind:e.kind,name:_c(e),path:t}}function Wc(e){return e==null?void 0:`${e}__tree`}function Gc(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function Kc(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function qc(e,t){if(e==null)return null;if(`text`in e)return Y(`span`,{title:e.title,children:e.text});let n=typeof e.icon==`string`?Kc(e.icon)?t(e.icon):{name:e.icon}:Kc(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return Y(`span`,{title:e.title,children:Y(Wo,{...n})})}function Jc(e){e!=null&&Os(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function Yc(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=gc(e);return Y(ro,{children:[e.depth>0?Y(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>Y(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,Y(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?Y(Wo,{...t(`file-tree-icon-chevron`)}):Y(Wo,{...t(`file-tree-icon-file`,u)})}),Y(`div`,{"data-item-section":`content`,children:e.isFlattened?hc(e,c,a):c??Y(es,{minimumLength:5,split:`extension`,children:e.name})}),i?Y(`div`,{"data-item-section":`decoration`,children:r==null?null:qc(r,t)}):null,s?Y(`div`,{"data-item-section":`git`,children:qc(o,t)}):null,n?Y(`div`,{"data-item-section":`action`,children:l?Y(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Y(Wo,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function Xc(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:ee,contextMenuButtonVisibility:te,contextMenuRightClickEnabled:w,registerRenameInput:T,registerButton:E,resolveIcon:ne,renderDecorationForRow:D,openContextMenuForRow:re,onRowClick:O,onKeyDown:ie}=e,k=gc(t),{isParked:A=!1,mode:ae=`flow`,style:oe}=r,se=ae===`sticky`,ce=_?.get(k)??null??Dc(t.ancestorPaths,v,y),le=t.kind===`directory`&&(b?.has(k)??!1),ue=D(t,k),de=Ec(ce,le),fe=S&&ee,pe=ue!=null||x||fe,me=fe&&te===`always`,j=a.getPath()===k,he=j?a.getValue():``,ge=se||!j?null:Y(zs,{ref:T,ariaLabel:`Rename ${_c(t)}`,isFlattened:t.isFlattened,value:he,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),_e=Yc(t,ne,{actionLaneEnabled:fe,customDecoration:ue,decorationLaneEnabled:pe,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:de,gitLaneActive:x,renameInput:ge,showDecorativeActionAffordance:me}),ve={...Vs({ariaLabel:_c(t),domId:t.isFocused?Gc(h,k,A):void 0,extraStyle:oe,features:{actionLaneEnabled:fe,contextMenuButtonVisibility:fe?te:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:A,itemHeight:g,mode:ae,row:t,state:{containsGitChange:le,effectiveGitStatus:ce,isContextHovered:s===k,isDragTarget:l?.kind===`directory`&&l.directoryPath===k,isDragging:c?.has(k)===!0,isFocusRinged:t.isFocused&&o===k}
1838,targetPath:k}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),w&&(i.focusMountedPathFromInput(k),re(t,k,{anchorRect:Ic(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:se?void 0:()=>{i.focusMountedPathFromInput(k)},onKeyDown:se?void 0:ie,ref:e=>{E(k,e)}};return!se&&j?Y(`div`,{...ve,children:_e}):Y(`button`,{...ve,type:`button`,draggable:u&&!A,onDragEnd:u&&!A?p:void 0,onDragStart:u&&!A?e=>{f(e,t,k)}:void 0,onMouseDown:e=>{if(se){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!A?e=>{m(e,t,k)}:void 0,onClick:e=>{O(e,t,k,ae)},children:_e})}function Zc(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(gc(e))).map((n,r)=>Xc(e,n,t.start+r))}function Qc({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=Ri,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=X(null),v=X(null),y=X(!1),b=X(null),x=X(null),S=X(null),C=X(null),ee=X(null),te=X(new Map),w=X(new Map),T=X(()=>{}),E=X(null),ne=X(0),D=X(!1),re=X(null);re.current!==t&&(D.current=!1,re.current=t);let O=X(!1),ie=X(null),k=X(null),A=X(!1),ae=X(null),oe=X(null),se=X(null),ce=X(null),le=X(null),ue=X(null),de=X(null),fe=X(null),pe=X(!1),me=X(null),j=X(null),he=X(null),ge=X(null),_e=Js(()=>new Map,[]),[,ve]=Ws(0),[ye,be]=Ws(null),[xe,Se]=Ws(null),[Ce,we]=Ws(null),[Te,Ee]=Ws(null),[De,Oe]=Ws(0),[M,ke]=Ws(null),Ae=X(M);Ae.current=M;let je=X(null),Me=X(null),Ne=X(null),Pe=X(null),Fe=X(null),Ie=X(!1),Le=()=>{Me.current=null,Ne.current=null,Pe.current=null},Re=(e,t)=>{Me.current=e,Ne.current=null,Pe.current=t==null?null:{path:e,scrollTop:t}},ze=(e,t)=>{Me.current=null,Ne.current={path:e,viewportOffset:t},Pe.current=null},Be=X(d===`retain`&&t.isSearchOpen()),[Ve,He]=Ws(p);Ks(()=>{p||He(!1)},[p]);let Ue=X(!1),qe=Z(()=>{Ue.current=!0,He(e=>e&&!1)},[]),[Je,Ye]=Ws(()=>yc({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Xe,Qe]=Ws(!1);Ks(()=>{Qe(!0)},[]);let N=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,$e=e?.contextMenu?.triggerMode??(N?`right-click`:`both`),et=$e===`both`||$e===`button`,tt=e?.contextMenu?.buttonVisibility??`when-needed`,nt=$e===`both`||$e===`right-click`;qs(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;Fe.current=t,Se(t),Ee(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Ie.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let rt=Z((e,t)=>{Rc(te.current,e,t)},[]),it=Z((e,t)=>{Rc(w.current,e,t)},[]),at=Z(e=>{x.current=e},[]),ot=Z(e=>zc(e,w.current,te.current),[]),st=n!=null||r!=null||i!=null,{resolveIcon:ct}=Js(()=>Ze(a),[a]),lt=t[Ha](),ut=lt.getPath(),dt=ut!=null,ft=t.isSearchOpen(),pt=t.getSearchValue(),P=t.getFocusedPath(),F=t.getFocusedIndex(),mt=t.getScrollRequest(),I=t.isDragAndDropEnabled(),L=t.getDragSession(),ht=Js(()=>L==null?null:new Set(L.draggedPaths),[L]),R=L?.target??null,gt=L?.primaryPath??null,z=Wc(o),{overlayHeight:_t,overlayRows:vt,snapshot:B,visibleRows:yt}=Je,V=B.physical.viewportHeight,bt=Js(()=>({end:B.window.endIndex,start:B.window.startIndex}),[B.window.endIndex,B.window.startIndex]),xt=vt,St=B.sticky.rows,Ct=B.physical.totalHeight,H=B.sticky.height,wt=Js(()=>new Set(St.map(e=>gc(e.row))),[St]),Tt=F>=0&&F>=bt.start&&F<=bt.end,Et=Z((e,t)=>u?.({item:Uc(e,t),row:e})??null,[u]),Dt=Z(e=>Os(e==null?null:te.current.get(e)??null)?!0:Os(S.current),[]),Ot=Z(e=>{Dt(t.focusNearestPath(e))},[t,Dt]),kt=X(Ot);kt.current=Ot;let At=X(!0),jt=X(()=>{}),Mt=Z((t=!0)=>{let n=Ae.current;n!=null&&(At.current=At.current&&t,ke(null),e?.contextMenu?.onClose?.(),At.current&&Ot(n.path))},[e?.contextMenu,Ot]);jt.current=Mt;let Nt=Z(e=>{let t=e==null?null:Lc(S.current,e);we(e=>e===t?e:t)},[]),Pt=Z((e,n,r)=>{let i=t.getItem(n);if(i==null)return;
1838let a=ot(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Re(n,e?.scrollTop??null),O.current=!0,be(e=>e===n?e:n)}i.focus(),Nt(a),At.current=!0,ke({anchorRect:r?.anchorRect??null,item:Uc(e,n),path:n,source:r?.source??`keyboard`})},[t,ot,Nt]),Ft=Z(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=As(e,V);ae.current=F<0||e==null?null:Math.max(0,Math.min(F*s-e.scrollTop,Math.max(0,t-s))),A.current=!0}t.startRenaming(e)!==!1&&(Ee(`focus`),ve(e=>e+1))}},[t,F,s,l,V]),It=Z((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=As(i,V),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:yc({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return O.current=!0,Fs(i,a,s,l,u,d),T.current(),je.current=n?e:null,!0},[t,s,c,V,h]),Lt=()=>y.current===!0||ge.current!=null||pe.current===!0,Rt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),zt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Bt=()=>{ce.current!=null&&(clearTimeout(ce.current),ce.current=null),se.current=null},Vt=()=>{ue.current?.remove(),ue.current=null},Ht=()=>{zt(oe.current),oe.current=null,le.current=null},Ut=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Wt=()=>{fe.current?.(),fe.current=null,ge.current!=null&&(clearTimeout(ge.current),ge.current=null),pe.current=!1,me.current=null,he.current=null,j.current!=null&&(j.current.setAttribute(`draggable`,`true`),j.current.style.removeProperty(`touch-action`),j.current=null),Vt(),Bt(),Ht(),de.current=null},Gt=(e,n)=>{let r=S.current?.getRootNode(),i=Sc(bc(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Kt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Bt();return}let r=t.getItem(e.directoryPath),i=Oc(r)?r:null;if(i==null||i.isExpanded()){Bt();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;se.current!==a&&(Bt(),se.current=a,ce.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},qt=()=>{oe.current=null;let e=le.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=Tc(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,T.current()),Kt(Gt(e.clientX,e.clientY)),oe.current=Rt(qt)},Jt=(e,t)=>{le.current={clientX:e,clientY:t},oe.current??=Rt(qt)},Yt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Wt(),Vt(),Bt(),Ht(),t.startDrag(r)===!1){e.preventDefault();return}if(de.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),wc())){let t=Cc(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Ut(t),ue.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Xt=()=>{Vt(),Bt(),Ht(),de.current=null,t.cancelDrag()},Zt=(e,n,r)=>{if(ge.current!=null||pe.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;he.current={clientX:i.clientX,clientY:i.clientY},j.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!pe.current;ge.current!=null&&(clearTimeout(ge.current),ge.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),fe.current===o&&(fe.current=null),t&&(a.setAttribute(`draggable`,`true`),j.current===a&&(j.current=null),he.current=null)},s=e=>{let t=e.touches[0],n=he.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=100||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),fe.current=o,ge.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),j.current===a&&(j.current=null),he.current=null;return}pe.current=!0,j.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),de.current=n;let e=a.getBoundingClientRect(),s=Cc(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),Ut(s),ue.current=s,me.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=me.current;n!=null&&ue.current!=null&&(ue.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Kt(Gt(t.clientX,t.clientY)),Jt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Gt(n.clientX,n.clientY),t.completeDrag(),Wt()},u=()=>{t.cancelDrag(),Wt()};fe.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},$c)},Qt=e=>{if(M!=null){if(e.key===`Escape`){Mt(),e.preventDefault(),e.stopPropagation();return}
1838nl.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(lt.isActive()){if(e.key===`Escape`)lt.cancel();else if(e.key===`Enter`)lt.commit();else return;Ee(`focus`),ve(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){Ft(P??void 0),e.preventDefault(),e.stopPropagation();return}if(ft){if(e.key===`Escape`)A.current=!1,ae.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=As(n,V);ae.current=F<0||n==null?null:Math.max(0,Math.min(F*s-n.scrollTop,Math.max(0,r-s))),A.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;Ee(`focus`),ve(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&Ac(e)){t.openSearch(e.key),ve(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=N&&Mc(e),r=Nc(e,N),i=r&&S.current!=null?ks(S.current):null,a=r?new Set(Bc(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==P&&a.has(o)){let e=C.current;Re(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=Oc(p)?p:null,h=u!=null&&(wt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=zc(u,w.current,te.current);e==null||n==null?y=!1:Pt(e,u)}else if((e.ctrlKey||e.metaKey)&&kc(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;Ee(`focus`);let b=t.getFocusedPath(),x=b!=null&&(wt.has(b)||a.has(b)),ee=g&&b!==u,T=n&&c&&o===u&&b===u;if((h||T)&&b!=null&&(ee&&x||T))Re(b,v?.scrollTop??null),O.current=!0,be(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(ze(b,Hc(S.current,v,i,u,s,H,V)),O.current=!0,be(e=>e===b?e:b)):Le()}ve(e=>e+1),e.preventDefault(),e.stopPropagation()};qs(()=>{if(!(!f||!ft)){if(Be.current){Be.current=!1;return}Os(ee.current)}},[ft,f]),qs(()=>{let e=x.current;switch(Rs({hasRenderedInput:e!=null,previousRenamingPath:k.current,renamingPath:ut})){case`reset`:k.current=null;return;case`reveal-canonical`:ut!=null&&It(ut,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(je.current=null,k.current=ut,Os(e),e.select());return}},[bt.end,bt.start,ut,It,wt]),qs(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=ks(e)?.dataset.itemPath??null;be(e=>e===t?e:t)},i=()=>{n(),O.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,ks(e)!=null){r();return}O.current=!1,be(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),O.current=!1,be(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;be(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),qs(()=>{let e=S.current;e!=null&&(B.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[B.physical.scrollTop]),qs(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;E.current=As(n,g);let a=()=>{let e=t.getVisibleCount(),r=js(E.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Ye(yc({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHe
1838ight:r}))};if(!D.current){D.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=js(E.current,g),i=t.getVisibleRows(e,e)[0]??null;Ns(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}T.current=a;let o=!1,l=t.subscribe(()=>{o?ve(e=>e+1):o=!0,a()}),u=()=>{Ie.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,Oe(e=>e+1),e=null},50))},d=null,f=()=>{i!=null&&delete i.dataset.overlayReveal,d!=null&&(clearTimeout(d),d=null)},p=()=>{i!=null&&Ie.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,d!=null&&clearTimeout(d),d=setTimeout(()=>{f()},200)))},m=()=>{if(a(),n.scrollTop>0&&f(),Ae.current!=null&&y.current&&jt.current(),Ie.current===!0){y.current=!1;return}Se(e=>e==null?e:null),u()},_=()=>{u(),p()},v=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),x=e=>{v.has(e.key)&&_()};n.addEventListener(`scroll`,m,{passive:!0}),n.addEventListener(`wheel`,_,{passive:!0}),n.addEventListener(`touchmove`,_,{passive:!0}),n.addEventListener(`keydown`,x);let ee=typeof ResizeObserver<`u`?new ResizeObserver(e=>{E.current=(e[0]==null?null:Ms(e[0]))??As(n,g),a()}):null;return ee?.observe(n),()=>{T.current=()=>{},l(),n.removeEventListener(`scroll`,m),n.removeEventListener(`wheel`,_),n.removeEventListener(`touchmove`,_),n.removeEventListener(`keydown`,x),e!=null&&clearTimeout(e),d!=null&&clearTimeout(d),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,E.current=null,ee?.disconnect()}},[t,g,s,c,h]),qs(()=>{N||M==null||Mt(!1)},[Mt,N,M]);let $t=Js(()=>M==null?null:`${M.path}::${M.source}`,[M]);qs(()=>{if($t==null){m?.clearSlotContent(Ge);return}let t=Ae.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??Fc(n.getBoundingClientRect()),close:e=>{jt.current(e?.restoreFocus??!0)},restoreFocus:()=>{At.current&&kt.current(Ae.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(Ge,i),e?.contextMenu?.onOpen?.(t.item,r),Jc(i),queueMicrotask(()=>{i==null||!i.isConnected||document.activeElement===i&&Jc(i)}),()=>{m?.clearSlotContent(Ge)}},[$t,e?.contextMenu,m]),qs(()=>{M!=null&&t.getItem(M.path)==null&&Mt()},[Mt,M,t]),qs(()=>{if(M==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(Pc(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Mt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Mt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Mt,M]),qs(()=>{let e=C.current,n=S.current;if(e==null||n==null){ie.current=P;return}let r=P==null?null:te.current.get(P)??null,i=ks(n),a=i?.dataset.itemPath??null,o=dt&&x.current===i,c=f&&ee.current===i,l=A.current&&!ft,u=ae.current??0,d=je.current,p=Me.current,m=Ne.current,g=Pe.current,_=i!=null,v=O.current||_,y=ie.current!==P,b=p!=null&&p===P&&P!=null,w=!1,E=!1;if(mt!=null&&mt.id!==ne.current){ne.current=mt.id;let n=mt.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,V-s))):H;w=!0,E=Ps(e,n,s,V,Ct,mt.offset,t)}t.clearScrollRequest(mt.id)}let D=!w&&l&&Fs(e,F,s,V,Ct,u),re=!w&&d!=null&&d===P&&Fs(e,F,s,V,Ct,H),k=!w&&m!=null&&m.path===P&&Fs(e,F,s,V,Ct,m.viewportOffset),oe=!w&&g!=null&&g.path===P&&e.scrollTop!==g.scrollTop;if(oe&&(e.scrollTop=g.scrollTop),(oe||E||re||k||D||v&&y&&d!==P&&!b&&Ns(e,F,s,V,H))&&T.current(),w){ie.current=P;return}if(!v){ie.current=P;return}if(o){ie.current=P;return}if(c&&!l){ie.current=P;return}if(r==null){l&&F>=0&&(Fs(e,F,s,V,Ct,u),T.current()),ie.current=P;return}(y||l||d===P||p===P||m?.path===P||g?.path===P||a==null||a!==P)&&(Os(r),d===P&&(je.current=null),p===P&&(Me.current=null),m?.path===P&&(Ne.current=null),g?.path===P&&(Pe.current=null),A.current=!1,ae.current=null),ie.current=P},[t,F,P,Tt,s,dt,ft,bt,V,f,mt,h,H,Ct,yt]);let en=F>=0&&F>=B.visible.startIndex&&F<=B.visible.endIndex,tn=P!=null&&xt.some(e=>gc(e.row)===P),nn=en||tn,rn=et&&O.current===!0&&nn?P:null,an=Te===`pointer`?xe:null,on=M?.path??Fe.current??an??rn??xe,sn=M?.source===`right-click`;qs(()=>{y.current&&M==null||Nt(ot(on))},[M,ot,bt,V,De,xt,on,Nt,yt]);let cn=Z(e=>{if(y.current||Pc(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.f
1838ileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&Ee(e=>e===`pointer`?e:`pointer`),Se(e=>e===i?e:i)},[]),ln=Z(()=>{Se(null)},[]);qs(()=>{if(!I)return;let e=()=>{Wt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Wt(),t.cancelDrag()}},[t,I]);let un=e=>{if(!I||t.getDragSession()==null||pe.current)return;let n=Sc(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Kt(t.getDragSession()?.target??null),Jt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},dn=e=>{if(!I||t.getDragSession()==null||pe.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Bt(),Ht(),t.setDragTarget(null))},fn=e=>{!I||t.getDragSession()==null||pe.current||(e.preventDefault(),Gt(e.clientX,e.clientY),t.completeDrag(),Vt(),Bt(),Ht(),de.current=null)},pn=B.window.height,mn=B.window.offsetTop,hn=Math.min(0,V-pn),gn=Math.min(0,V-pn-H),_n=ye===P||A.current,U=P!=null&&_n&&!Tt&&F>=0?yt[F]??t.getVisibleRows(F,F)[0]??null:null,vn=U==null?null:Is(F,s,bt,pn),yn=de.current,bn=gt!=null&&yn!=null&&yn.path===gt&&yn.index>=bt.start&&yn.index<=bt.end,xn=gt!=null&&yn!=null&&yn.path===gt&&!bn&&yn.path!==U?.path?yn:null,Sn=xn==null?null:Is(xn.index,s,bt,pn),Cn=jc((F>=0?yt[F]??t.getVisibleRows(F,F)[0]??null:null)?.ancestorPaths.at(-1)??null),wn=ft&&P!=null?Gc(o,P,!Tt):void 0,Tn=M?.path??(ft?P:ye),En=M?.path??xe,Dn=ot(on),On=N&&et&&!sn&&!dt&&Dn!=null&&Ce!=null&&on!=null,kn=N&&(On||M!=null),An=M?.anchorRect,jn=An==null&&Dn!=null&&Ce!=null&&(M!=null||On)?Ce:null,Mn=An==null?jn==null?void 0:{top:`${jn}px`}:{left:`${An.left}px`,position:`fixed`,right:`auto`,top:`${An.top}px`},Nn=sn?{opacity:`0`}:void 0,Pn=Z((e,n,r,i)=>{let a=Hs({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:ft,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c)}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=B.visible.startIndex&&n.index<=B.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(O.current=!0,be(e=>e===c?e:c),Ee(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&It(c,{targetOffset:`sticky-parents`})},[t,ft,B.visible.endIndex,B.visible.startIndex,It]),Fn=()=>{if(y.current||!et||on==null||Dn==null)return;let e=t.getItem(on);e!=null&&(Nt(Dn),At.current=!0,ke({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:Dn.getAttribute(`aria-label`)??on,path:e.getPath()},path:e.getPath(),source:`button`}))},In={contextHoverPath:En,contextMenuButtonTriggerEnabled:et,contextMenuButtonVisibility:tt,contextMenuEnabled:N,contextMenuRightClickEnabled:nt,contextMenuTriggerMode:$e,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:I,draggedPathSet:ht,dragTarget:R,gitLaneActive:st,gitStatusByPath:n,handleRowDragEnd:Xt,handleRowDragStart:Yt,handleRowTouchStart:Zt,ignoredGitDirectories:r,ignoredInheritanceCache:_e,instanceId:o,itemHeight:s,onKeyDown:Qt,onRowClick:Pn,openContextMenuForRow:Pt,registerButton:rt,registerRenameInput:at,renameView:lt,renderDecorationForRow:Et,resolveIcon:ct,shouldSuppressContextMenu:Lt,visualFocusPath:Tn},Ln={...In,registerButton:it};return Y(`div`,{ref:S,id:z,"data-file-tree-context-menu-button-visibility":N&&et?tt:void 0,"data-file-tree-context-menu-trigger-mode":N?$e:void 0,"data-file-tree-has-context-menu-action-lane":N&&et?`true`:void 0,"data-file-tree-has-git-lane":st?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:I?dn:void 0,onDragOver:I?un:void 0,onDrop:I?fn:void 0,onKeyDown:Qt,onPointerLeave:N?ln:void 0,onPointerOver:N?cn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Y(`style`,{"data-file-tree-guide-style":`true`,children:Cn}),Y(`slot`,{name:We,"data-type":`header-slot`}),f?Y(`div`,{"data-file-tree-search-container":!0,"data-open":ft?`true`:`false`,children:Y(`input`,{ref:ee,"aria-activedescendant":wn,"aria-controls":z,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Ve?`true`:void 0,value:pt,onBlur:()=>{d===`retain`&&!Ue.current||t.closeSearch()},onFocus:qe,onPointerDown:qe,onInput:e=>{qe();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Y(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Xe&&xt.length>0?Y(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:Y(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${_t}px`},children:xt.map((e,t)=>Xc(Ln,e.row,`sticky:${gc(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${xt.length-t}`}}))})}):null,Y(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${Ct}px`},children:[Y(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${mn}px`}}),Y(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${pn}px`,top:`${hn}px`,bottom:`${gn}px`},children:[Zc(In,bt,wt),U!=null&&vn!=null?Xc(In,U,`parked:${U.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:gt===U.path?`none`:void 0,position:`absolute`,right:`0`,top:`${vn}px`}}):null,xn!=null&&Sn!=null?Xc(In,xn,`parked-drag:${xn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${Sn}px`}}):null]})]})]}),N?Y(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":kn?`true`:`false`,style:Mn,children:[Y(`button`,{ref:v,type:`button`,"data-type":Ke,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":M==null?`false`:`true`,"data-visible":On?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),M!=null){Mt();return}Fn()},tabIndex:-1,style:Nn,children:Y(Wo,{...ct(`file-tree-icon-ellipsis`)})}),M==null?null:Y(`slot`,{name:Ge})]}):null,M==null?null:Y(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Mt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Mt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var $c,el,tl,nl;function rl(){return(rl=e((()=>{qe(),et(),zi(),Ka(),Jo(),ss(),bs(),ws(),Ls(),Bs(),Vo(),mc(),Uo(),$c=400,el=40,tl=18,nl=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`])})))()}function il(e,t){sl.renderRoot(e,t)}function al(e,t){sl.hydrateRoot(e,t)}function ol(e){sl.unmountRoot(e)}var sl;function cl(){return(cl=e((()=>{rl(),Vo(),sl={hydrateRoot:(e,t)=>
1838{Eo(to(Qc,t),e)},renderRoot:(e,t)=>{To(to(Qc,t),e)},unmountRoot:e=>{To(null,e)}}})))()}function ll(e){dl=e}function ul(e){return dl==null?e:dl.createHTML(e)}var dl;function fl(){return(fl=e((()=>{dl=null})))()}var pl;function ml(){return(ml=e((()=>{fl(),pl=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=ul(n),this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}}})))()}function hl(){return(hl=e((()=>{Vo(),Array.isArray})))()}function gl(e){return e!=null&&e.length>0?e:(xl+=1,`pst_ft_${xl}`)}function _l({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??Ri)}function vl(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=ul(e);let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function yl(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 bl(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var xl,Sl;function Cl(){return(Cl=e((()=>{Le(),qe(),Li(),zi(),Gi(),ea(),Ka(),$a(),cl(),ml(),fl(),Vo(),hl(),xl=0,Sl=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new pl;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;
1838constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=gl(a),this.#p=Qa(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=Fi(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new Ga({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(ol(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}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)}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){this.#t.resetPaths(e,t)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),il(t.wrapper,this.#w()))}setGitStatus(e){this.#p=Qa(e,this.#p);let t=this.#T();t!=null&&il(t.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),il(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),al(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),il(r,this.#w())}#C(){return{initialViewportHeight:_l({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(We,e());return}this.#l.setSlotHtml(We,this.#e?.header?.html??null)}#k(e){let t=bl(e).find(e=>yl(e)),n=vl(i(Ye(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=bl(e),n=t.find(e=>yl(e)),r=t.filter(e=>e!==n),i=Ye(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=vl(i);if(a==null){for(let e of r)e.remove();return}if(r.length!==1||r[0].outerHTML!==a.outerHTML){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=Ye(this.#m);
1838t.colored&&o(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${Be}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}(this.#g?.parentNode!==e||this.#_!==this.#h)&&(this.#g??=document.createElement(`style`),this.#g.setAttribute(Be,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=Ui(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return Zi(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}}})))()}function wl(e,t,n){let r=e==null?null:(0,Al.jsx)(`div`,{slot:We,children:e}),i=t!=null&&n!=null?(0,Al.jsx)(`div`,{slot:Ge,children:t(n.item,n.context)}):null;return r==null&&i==null?null:(0,Al.jsxs)(Al.Fragment,{children:[r,i]})}function Tl(e,t){return typeof window>`u`&&t!=null?(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):(0,Al.jsx)(Al.Fragment,{children:e})}function El(e){let t=e.shadowRoot;return t?.querySelector(`[data-file-tree-id]`)instanceof HTMLElement||t?.querySelector(`[data-file-tree-id]`)instanceof SVGElement||e.querySelector(`template[shadowrootmode="open"]`)instanceof HTMLTemplateElement}function Dl(e,t,n,r,i){let a={...e??{}};if(t!=null&&delete a.header,n){let t=e?.contextMenu,n=t?.onClose,o=t?.onOpen;a.contextMenu={...t??{},enabled:!0,onClose:()=>{n?.(),r()},onOpen:(e,t)=>{i(e,t),o?.(e,t)}},delete a.contextMenu.render}return a.header!=null||a.contextMenu!=null?a:void 0}function Ol({header:e,id:t,model:n,preloadedData:r,renderContextMenu:i,...a}){let[o,s]=(0,kl.useState)(null),[c,l]=(0,kl.useState)(null),u=(0,kl.useRef)(n.getComposition()),d=(0,kl.useRef)(n);d.current!==n&&(d.current=n,u.current=n.getComposition());let f=i!=null,p=(0,kl.useCallback)(()=>{s(null)},[]),m=(0,kl.useCallback)((e,t)=>{s({context:t,item:e})},[]),h=u.current,g=(0,kl.useMemo)(()=>Dl(h,e,f,p,m),[h,p,m,f,e]),_=(0,kl.useCallback)(e=>{l(e)},[]);(0,kl.useEffect)(()=>{f||s(null)},[f]),jl(()=>{n.setComposition(g)},[g,n]),jl(()=>{if(c!=null)return r!=null&&El(c)?n.hydrate({fileTreeContainer:c}):n.render({fileTreeContainer:c}),()=>{n.unmount(),n.setComposition(h)}},[h,c,n,r]);let v=Tl(wl(e,i,o),r),y=t??r?.id,b={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...a.style};return(0,Al.jsx)(Re,{...a,id:y,ref:_,style:b,suppressHydrationWarning:r!=null,children:v})}var kl,Al,jl;function Ml(){return(Ml=e((()=>{qe(),kl=t(),Al=n(),jl=typeof window>`u`?kl.useEffect:kl.useLayoutEffect})))()}function Nl(e){let[t]=(0,Pl.useState)(()=>new Sl(e)),n=(0,Pl.useRef)({timeout:null,model:t});return(0,Pl.useEffect)(()=>{let{current:e}=n;return e.timeout!=null&&(clearTimeout(e.timeout),e.timeout=null),()=>{e.timeout=setTimeout(()=>e.model.cleanUp(),1)}},[]),{model:t}}var Pl;function Fl(){return(Fl=e((()=>{Cl(),Pl=t()})))()}export{fl as a,Ml as i,Nl as n,ll as o,Ol as r,Fl as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.