@hyperpuncher/pi-ui 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +161 -0
- package/dist/npm/server-main.js +633 -0
- package/package.json +77 -0
- package/static/app/attachment-file.js +99 -0
- package/static/app/basecoat.js +57 -0
- package/static/app/code-copy.js +32 -0
- package/static/app/dialogs.js +153 -0
- package/static/app/display-refresh.js +125 -0
- package/static/app/display-refresh_test.ts +86 -0
- package/static/app/file-links.js +69 -0
- package/static/app/file-links_test.ts +13 -0
- package/static/app/file-transfer.js +463 -0
- package/static/app/file-transfer_test.ts +174 -0
- package/static/app/main.js +122 -0
- package/static/app/message-scroll.js +343 -0
- package/static/app/message-scroll_test.ts +28 -0
- package/static/app/model-search.js +37 -0
- package/static/app/model-search_test.ts +31 -0
- package/static/app/pickers.js +289 -0
- package/static/app/pickers_test.ts +40 -0
- package/static/app/prompt-history.js +100 -0
- package/static/app/prompt-history_test.ts +51 -0
- package/static/app/prompt.js +99 -0
- package/static/app/session-performance.js +56 -0
- package/static/app/vim-scroll.js +161 -0
- package/static/app/window-focus.js +43 -0
- package/static/app/window-focus_test.ts +83 -0
- package/static/app.css +2 -0
- package/static/basecoat.vendor.js +1 -0
- package/static/build/chunks/abap-sc56dbra.js +1 -0
- package/static/build/chunks/actionscript-3-8wkk0yve.js +1 -0
- package/static/build/chunks/ada-wkh6yxhp.js +1 -0
- package/static/build/chunks/ahk-vk45ms9x.js +1 -0
- package/static/build/chunks/ahk2-ap9fnbvc.js +1 -0
- package/static/build/chunks/andromeeda-zy6mvqwb.js +1 -0
- package/static/build/chunks/angular-html-61dpttc3.js +1 -0
- package/static/build/chunks/angular-ts-hwtqv276.js +1 -0
- package/static/build/chunks/apache-750k8mss.js +1 -0
- package/static/build/chunks/apex-vpts0jxm.js +1 -0
- package/static/build/chunks/apl-jkh6rwt8.js +1 -0
- package/static/build/chunks/applescript-zb2jfj46.js +1 -0
- package/static/build/chunks/ara-4yjpz89z.js +1 -0
- package/static/build/chunks/asciidoc-5xj8s3ay.js +1 -0
- package/static/build/chunks/asm-x6ejak5x.js +1 -0
- package/static/build/chunks/astro-9cd9b7yr.js +1 -0
- package/static/build/chunks/aurora-x-gp6v3669.js +1 -0
- package/static/build/chunks/awk-mpdee6bv.js +1 -0
- package/static/build/chunks/ayu-dark-hbtcbdtr.js +1 -0
- package/static/build/chunks/ayu-light-m7rwwssv.js +1 -0
- package/static/build/chunks/ayu-mirage-5z71k1jj.js +1 -0
- package/static/build/chunks/ballerina-7c4wt1p4.js +1 -0
- package/static/build/chunks/bat-9778z743.js +1 -0
- package/static/build/chunks/beancount-xs0qfpeg.js +1 -0
- package/static/build/chunks/berry-pmbyf94p.js +1 -0
- package/static/build/chunks/bibtex-nnkgf3bz.js +1 -0
- package/static/build/chunks/bicep-vqhsh01p.js +1 -0
- package/static/build/chunks/bird2-za6bpr1n.js +1 -0
- package/static/build/chunks/blade-s6ew6vqn.js +1 -0
- package/static/build/chunks/bsl-z36cmzeg.js +1 -0
- package/static/build/chunks/c-kmp7y11e.js +1 -0
- package/static/build/chunks/c3-1g0cgjqv.js +1 -0
- package/static/build/chunks/cadence-a23a7f13.js +1 -0
- package/static/build/chunks/cairo-r6vd4awx.js +1 -0
- package/static/build/chunks/catppuccin-frappe-05b7n5ms.js +1 -0
- package/static/build/chunks/catppuccin-latte-c7x59n84.js +1 -0
- package/static/build/chunks/catppuccin-macchiato-xq6zfjrk.js +1 -0
- package/static/build/chunks/catppuccin-mocha-xreqmgt9.js +1 -0
- package/static/build/chunks/chapel-717mc8q1.js +1 -0
- package/static/build/chunks/clarity-g6gq1dzn.js +1 -0
- package/static/build/chunks/clojure-pm54sv44.js +1 -0
- package/static/build/chunks/cmake-f1skxqyd.js +1 -0
- package/static/build/chunks/cobol-mys3qens.js +1 -0
- package/static/build/chunks/code-theme-y49p9zss.js +5 -0
- package/static/build/chunks/codeowners-1ys5r05d.js +1 -0
- package/static/build/chunks/codeql-tdw0bqwy.js +1 -0
- package/static/build/chunks/coffee-t9hejzk2.js +1 -0
- package/static/build/chunks/common-lisp-9hjzm22t.js +1 -0
- package/static/build/chunks/coq-fjr6d63p.js +1 -0
- package/static/build/chunks/cpp-1r5860gr.js +1 -0
- package/static/build/chunks/crystal-a1jynptt.js +1 -0
- package/static/build/chunks/csharp-4zp5c1yn.js +1 -0
- package/static/build/chunks/css-j5q0mhnm.js +1 -0
- package/static/build/chunks/csv-a39nx9ry.js +1 -0
- package/static/build/chunks/cue-tg9vgj1q.js +1 -0
- package/static/build/chunks/cypher-p1j7vh0k.js +1 -0
- package/static/build/chunks/d-1f7cc6re.js +1 -0
- package/static/build/chunks/dark-plus-zvzcxs8s.js +1 -0
- package/static/build/chunks/dart-8jekq66r.js +1 -0
- package/static/build/chunks/dax-2aph6zqg.js +1 -0
- package/static/build/chunks/desktop-fqy4qx2w.js +1 -0
- package/static/build/chunks/diff-hqj2qf6m.js +1 -0
- package/static/build/chunks/docker-cht4a1ht.js +1 -0
- package/static/build/chunks/dotenv-txd2x2vy.js +1 -0
- package/static/build/chunks/dracula-6abcnchd.js +1 -0
- package/static/build/chunks/dracula-soft-zyfsdrw6.js +1 -0
- package/static/build/chunks/dream-maker-0gsm31aq.js +1 -0
- package/static/build/chunks/edge-9h036g3s.js +1 -0
- package/static/build/chunks/elixir-7pyn80vc.js +1 -0
- package/static/build/chunks/elm-62v0vnec.js +1 -0
- package/static/build/chunks/emacs-lisp-58kh6hv8.js +1 -0
- package/static/build/chunks/erb-947psegf.js +1 -0
- package/static/build/chunks/erlang-vbf5hbwd.js +1 -0
- package/static/build/chunks/everforest-dark-g7rhmq33.js +1 -0
- package/static/build/chunks/everforest-light-spn7qghr.js +1 -0
- package/static/build/chunks/fennel-h323g5dt.js +1 -0
- package/static/build/chunks/fish-7qbmmjce.js +1 -0
- package/static/build/chunks/fluent-3sdffhr3.js +1 -0
- package/static/build/chunks/fonts-pcnzbv4q.js +1 -0
- package/static/build/chunks/fortran-fixed-form-azemmg4k.js +1 -0
- package/static/build/chunks/fortran-free-form-5njt96mh.js +1 -0
- package/static/build/chunks/fsharp-9eex114p.js +1 -0
- package/static/build/chunks/gdresource-v8yzpggb.js +1 -0
- package/static/build/chunks/gdscript-1snw12w7.js +1 -0
- package/static/build/chunks/gdshader-fmknssp0.js +1 -0
- package/static/build/chunks/genie-4gwgqcc6.js +1 -0
- package/static/build/chunks/gherkin-vjt0p14p.js +1 -0
- package/static/build/chunks/git-commit-z15avpkz.js +1 -0
- package/static/build/chunks/git-rebase-wj5kdx44.js +1 -0
- package/static/build/chunks/github-dark-default-q5m3jmep.js +1 -0
- package/static/build/chunks/github-dark-dimmed-0v34f529.js +1 -0
- package/static/build/chunks/github-dark-high-contrast-62grsqa6.js +1 -0
- package/static/build/chunks/github-dark-r3j6b7er.js +1 -0
- package/static/build/chunks/github-light-default-xgca5we2.js +1 -0
- package/static/build/chunks/github-light-high-contrast-0ee3g9rt.js +1 -0
- package/static/build/chunks/github-light-z1qp6zt5.js +1 -0
- package/static/build/chunks/gleam-znte7hjc.js +1 -0
- package/static/build/chunks/glimmer-js-nph8hwdq.js +1 -0
- package/static/build/chunks/glimmer-ts-fzpx4w3e.js +1 -0
- package/static/build/chunks/glsl-mzc3yta4.js +1 -0
- package/static/build/chunks/gn-3cqh8dtz.js +1 -0
- package/static/build/chunks/gnuplot-r8spf6zm.js +1 -0
- package/static/build/chunks/go-ac27dc57.js +1 -0
- package/static/build/chunks/graphql-f6vq7p23.js +1 -0
- package/static/build/chunks/groovy-p8r8bd0c.js +1 -0
- package/static/build/chunks/gruvbox-dark-hard-0zvxnx0e.js +1 -0
- package/static/build/chunks/gruvbox-dark-medium-qvjwy81n.js +1 -0
- package/static/build/chunks/gruvbox-dark-soft-mhtpt38s.js +1 -0
- package/static/build/chunks/gruvbox-light-hard-nrwjbbts.js +1 -0
- package/static/build/chunks/gruvbox-light-medium-qbwkw432.js +1 -0
- package/static/build/chunks/gruvbox-light-soft-rmkm778k.js +1 -0
- package/static/build/chunks/hack-a2wva0c2.js +1 -0
- package/static/build/chunks/haml-hmfn055t.js +1 -0
- package/static/build/chunks/handlebars-54kh2jwn.js +1 -0
- package/static/build/chunks/haskell-vkvkgtsh.js +1 -0
- package/static/build/chunks/haxe-yk1p58qs.js +1 -0
- package/static/build/chunks/hcl-mq3znmzm.js +1 -0
- package/static/build/chunks/hjson-ma7dfjrp.js +1 -0
- package/static/build/chunks/hlsl-jcfmchrk.js +1 -0
- package/static/build/chunks/horizon-bright-9s4tt51x.js +1 -0
- package/static/build/chunks/horizon-fm23m9qj.js +1 -0
- package/static/build/chunks/houston-fx2psmvq.js +1 -0
- package/static/build/chunks/html-derivative-xw79bbzd.js +1 -0
- package/static/build/chunks/html-nawteed7.js +1 -0
- package/static/build/chunks/http-72kn3sp8.js +1 -0
- package/static/build/chunks/hurl-eve0v3e8.js +1 -0
- package/static/build/chunks/hxml-8pcfrsh9.js +1 -0
- package/static/build/chunks/hy-989jkx6q.js +1 -0
- package/static/build/chunks/imba-cm19z6hg.js +1 -0
- package/static/build/chunks/index-gt9ev6v8.js +518 -0
- package/static/build/chunks/ini-a7zcn1v0.js +1 -0
- package/static/build/chunks/java-mjc9q3md.js +1 -0
- package/static/build/chunks/javascript-n8j33v1m.js +1 -0
- package/static/build/chunks/jinja-a6q4x5tm.js +1 -0
- package/static/build/chunks/jison-nj6cbyz2.js +1 -0
- package/static/build/chunks/json-bvza2dkb.js +1 -0
- package/static/build/chunks/json5-a53a0ked.js +1 -0
- package/static/build/chunks/jsonc-5tyv9mjd.js +1 -0
- package/static/build/chunks/jsonl-prv0dcjv.js +1 -0
- package/static/build/chunks/jsonnet-5gdjahsx.js +1 -0
- package/static/build/chunks/jssm-mwsp2p7j.js +1 -0
- package/static/build/chunks/jsx-75v76p5q.js +1 -0
- package/static/build/chunks/julia-45twp29b.js +1 -0
- package/static/build/chunks/just-ct7367ec.js +1 -0
- package/static/build/chunks/kanagawa-dragon-fbqq2bhk.js +1 -0
- package/static/build/chunks/kanagawa-lotus-zgxv1mgm.js +1 -0
- package/static/build/chunks/kanagawa-wave-wedn0ksa.js +1 -0
- package/static/build/chunks/kdl-n6ez9ngv.js +1 -0
- package/static/build/chunks/kotlin-ghtz1y98.js +1 -0
- package/static/build/chunks/kusto-43yprh9t.js +1 -0
- package/static/build/chunks/laserwave-2fz4nxs5.js +1 -0
- package/static/build/chunks/latex-httjryda.js +1 -0
- package/static/build/chunks/lean-49ww85t0.js +1 -0
- package/static/build/chunks/less-47m6fdq2.js +1 -0
- package/static/build/chunks/light-plus-5tghbj4b.js +1 -0
- package/static/build/chunks/liquid-r4gqgph0.js +1 -0
- package/static/build/chunks/llvm-zesbzx6h.js +1 -0
- package/static/build/chunks/log-n0g1tx1y.js +1 -0
- package/static/build/chunks/logo-j5ze60v0.js +1 -0
- package/static/build/chunks/lua-15pct4hw.js +1 -0
- package/static/build/chunks/luau-75hm4mxn.js +1 -0
- package/static/build/chunks/main-02cnngb2.js +2 -0
- package/static/build/chunks/main-06tnp3sh.js +2 -0
- package/static/build/chunks/main-0a9vnbak.js +2 -0
- package/static/build/chunks/main-0b281zv9.js +2 -0
- package/static/build/chunks/main-0nb87rgr.js +2 -0
- package/static/build/chunks/main-0w2eqgkm.js +2 -0
- package/static/build/chunks/main-1n8jg8rf.js +2 -0
- package/static/build/chunks/main-1q6650cv.js +2 -0
- package/static/build/chunks/main-1swy7s7h.js +2 -0
- package/static/build/chunks/main-1xeedcwa.js +2 -0
- package/static/build/chunks/main-2xnnvrcx.js +2 -0
- package/static/build/chunks/main-2zhgrhtb.js +2 -0
- package/static/build/chunks/main-3r9xmt0z.js +2 -0
- package/static/build/chunks/main-3s35k63z.js +2 -0
- package/static/build/chunks/main-3srxnktc.js +2 -0
- package/static/build/chunks/main-4sa6jbv9.js +2 -0
- package/static/build/chunks/main-61mzprk0.js +9 -0
- package/static/build/chunks/main-689tj0r4.js +2 -0
- package/static/build/chunks/main-6e7tjcht.js +2 -0
- package/static/build/chunks/main-6hjptvkk.js +2 -0
- package/static/build/chunks/main-6v87p7j0.js +2 -0
- package/static/build/chunks/main-77tx7a8q.js +2 -0
- package/static/build/chunks/main-7fchxg57.js +7 -0
- package/static/build/chunks/main-83kpz2vm.js +2 -0
- package/static/build/chunks/main-8vy6mdxc.js +2 -0
- package/static/build/chunks/main-98b1m2e8.js +2 -0
- package/static/build/chunks/main-9hkj1fvj.js +2 -0
- package/static/build/chunks/main-9r4kp1re.js +2 -0
- package/static/build/chunks/main-9rd1xskg.js +2 -0
- package/static/build/chunks/main-9rh1hxyw.js +2 -0
- package/static/build/chunks/main-9v5c2hm4.js +2 -0
- package/static/build/chunks/main-aw75bv70.js +2 -0
- package/static/build/chunks/main-b1wctdb9.js +2 -0
- package/static/build/chunks/main-brrygrcd.js +2 -0
- package/static/build/chunks/main-bxkfh3s9.js +2 -0
- package/static/build/chunks/main-capt12kv.js +2 -0
- package/static/build/chunks/main-cbea0k4t.js +2 -0
- package/static/build/chunks/main-cs7592x8.js +2 -0
- package/static/build/chunks/main-d04rg092.js +2 -0
- package/static/build/chunks/main-d4pbngvb.js +2 -0
- package/static/build/chunks/main-d96ygjmk.js +2 -0
- package/static/build/chunks/main-dbxf9vvb.js +2 -0
- package/static/build/chunks/main-e0bf1hc7.js +2 -0
- package/static/build/chunks/main-e1qp4v0e.js +2 -0
- package/static/build/chunks/main-ed67cb17.js +2 -0
- package/static/build/chunks/main-ef0zm6td.js +2 -0
- package/static/build/chunks/main-epkkzhsq.js +2 -0
- package/static/build/chunks/main-f1t9zy21.js +2 -0
- package/static/build/chunks/main-g4ry2z87.js +2 -0
- package/static/build/chunks/main-h9p54b6w.js +2 -0
- package/static/build/chunks/main-hp9qyk20.js +2 -0
- package/static/build/chunks/main-hv1v7a2c.js +2 -0
- package/static/build/chunks/main-jr2gz2ea.js +2 -0
- package/static/build/chunks/main-kktqjawn.js +2 -0
- package/static/build/chunks/main-knre9pdj.js +2 -0
- package/static/build/chunks/main-m9qkdc8e.js +2 -0
- package/static/build/chunks/main-mcptmf3e.js +2 -0
- package/static/build/chunks/main-mmmydrw7.js +2 -0
- package/static/build/chunks/main-mqmtpd6m.js +2 -0
- package/static/build/chunks/main-n8b99y0n.js +2 -0
- package/static/build/chunks/main-nex51cmy.js +2 -0
- package/static/build/chunks/main-nzkzztjw.js +2 -0
- package/static/build/chunks/main-p5c2apac.js +2 -0
- package/static/build/chunks/main-p8efbnm1.js +2 -0
- package/static/build/chunks/main-q9q129d1.js +2 -0
- package/static/build/chunks/main-qbf61mtn.js +2 -0
- package/static/build/chunks/main-rb1nkcm0.js +2 -0
- package/static/build/chunks/main-spgna5r3.js +2 -0
- package/static/build/chunks/main-tqpmccz6.js +2 -0
- package/static/build/chunks/main-v7n0f428.js +2 -0
- package/static/build/chunks/main-v9j8veta.js +2 -0
- package/static/build/chunks/main-w5g9070a.js +2 -0
- package/static/build/chunks/main-wbpws0v9.js +2 -0
- package/static/build/chunks/main-wcnadmhs.js +1530 -0
- package/static/build/chunks/main-x61973bh.js +2 -0
- package/static/build/chunks/main-xqc8f31a.js +2 -0
- package/static/build/chunks/main-xtaq3qt4.js +2 -0
- package/static/build/chunks/main-xvgwadfa.js +2 -0
- package/static/build/chunks/main-y0dvfpw7.js +2 -0
- package/static/build/chunks/main-ynjqm60c.js +2 -0
- package/static/build/chunks/main-ypk8hvc0.js +2 -0
- package/static/build/chunks/main-zjsthwaz.js +2 -0
- package/static/build/chunks/main-zy79z3j0.js +2 -0
- package/static/build/chunks/make-82gdkt9b.js +1 -0
- package/static/build/chunks/markdown-5tkrg1ah.js +1 -0
- package/static/build/chunks/marko-qafrqcsm.js +1 -0
- package/static/build/chunks/material-theme-darker-fnv6smqw.js +1 -0
- package/static/build/chunks/material-theme-lighter-35th362e.js +1 -0
- package/static/build/chunks/material-theme-ocean-4dq3ahw3.js +1 -0
- package/static/build/chunks/material-theme-p7k291d1.js +1 -0
- package/static/build/chunks/material-theme-palenight-yhd4pmvh.js +1 -0
- package/static/build/chunks/matlab-mbnxwt6q.js +1 -0
- package/static/build/chunks/mdc-w29armgh.js +1 -0
- package/static/build/chunks/mdx-53tq2vwd.js +1 -0
- package/static/build/chunks/mermaid-kp8v57t9.js +1 -0
- package/static/build/chunks/min-dark-rtx0tqrz.js +1 -0
- package/static/build/chunks/min-light-5m66fg5h.js +1 -0
- package/static/build/chunks/mipsasm-may8rjf3.js +1 -0
- package/static/build/chunks/mojo-ezqmbs71.js +1 -0
- package/static/build/chunks/monokai-79awbcqn.js +1 -0
- package/static/build/chunks/moonbit-57vh5qgn.js +1 -0
- package/static/build/chunks/move-71jrpzz7.js +1 -0
- package/static/build/chunks/narrat-n4xxr8p6.js +1 -0
- package/static/build/chunks/nextflow-c0gn0hzt.js +1 -0
- package/static/build/chunks/nextflow-groovy-13xg49y5.js +1 -0
- package/static/build/chunks/nginx-vtb8rwdx.js +1 -0
- package/static/build/chunks/night-owl-light-05jd94v7.js +1 -0
- package/static/build/chunks/night-owl-y5p2e2yz.js +1 -0
- package/static/build/chunks/nim-nfvgqc30.js +1 -0
- package/static/build/chunks/nix-rkxmnaat.js +1 -0
- package/static/build/chunks/nord-akta5pm4.js +1 -0
- package/static/build/chunks/nsis-6c1fw7sy.js +1 -0
- package/static/build/chunks/nushell-pvtw3a6j.js +1 -0
- package/static/build/chunks/objective-c-jd7171g7.js +1 -0
- package/static/build/chunks/objective-cpp-6v7n9hk7.js +1 -0
- package/static/build/chunks/ocaml-kjv8t7w5.js +1 -0
- package/static/build/chunks/odin-58v0n0xa.js +1 -0
- package/static/build/chunks/one-dark-pro-pbp84hvh.js +1 -0
- package/static/build/chunks/one-light-jpadzfmm.js +1 -0
- package/static/build/chunks/openscad-0xnz3sah.js +1 -0
- package/static/build/chunks/org-xe4jzp20.js +1 -0
- package/static/build/chunks/pascal-f75emr3j.js +1 -0
- package/static/build/chunks/perl-zp07ased.js +1 -0
- package/static/build/chunks/php-fjm4srka.js +1 -0
- package/static/build/chunks/pierre-dark-2sng8cw6.js +1 -0
- package/static/build/chunks/pierre-dark-protanopia-deuteranopia-615mrd5v.js +1 -0
- package/static/build/chunks/pierre-dark-soft-xpc8stwc.js +1 -0
- package/static/build/chunks/pierre-dark-tritanopia-nw71c9hw.js +1 -0
- package/static/build/chunks/pierre-dark-vibrant-dtc0vftx.js +1 -0
- package/static/build/chunks/pierre-light-mtkcs9xq.js +1 -0
- package/static/build/chunks/pierre-light-protanopia-deuteranopia-d84wh0sh.js +1 -0
- package/static/build/chunks/pierre-light-soft-f0vxkd08.js +1 -0
- package/static/build/chunks/pierre-light-tritanopia-prpe8fpj.js +1 -0
- package/static/build/chunks/pierre-light-vibrant-y1syd51f.js +1 -0
- package/static/build/chunks/pkl-x0wayphd.js +1 -0
- package/static/build/chunks/plastic-5dg6r26t.js +1 -0
- package/static/build/chunks/plsql-259gvzn9.js +1 -0
- package/static/build/chunks/po-6kcxkqtd.js +1 -0
- package/static/build/chunks/poimandres-p8seewrs.js +1 -0
- package/static/build/chunks/polar-b1ev80vb.js +1 -0
- package/static/build/chunks/postcss-kxdxws93.js +1 -0
- package/static/build/chunks/powerquery-ved4pq1y.js +1 -0
- package/static/build/chunks/powershell-6j0w6ann.js +1 -0
- package/static/build/chunks/prisma-7r1mj2qq.js +1 -0
- package/static/build/chunks/prolog-7a8gwgvm.js +1 -0
- package/static/build/chunks/proto-s5e2jd7n.js +1 -0
- package/static/build/chunks/pug-8cxb8b6f.js +1 -0
- package/static/build/chunks/puppet-d1048c00.js +1 -0
- package/static/build/chunks/purescript-vqffe1a1.js +1 -0
- package/static/build/chunks/python-7z2eacwy.js +1 -0
- package/static/build/chunks/qml-51nrq0re.js +1 -0
- package/static/build/chunks/qmldir-q0jk1gzg.js +1 -0
- package/static/build/chunks/qss-6far86jw.js +1 -0
- package/static/build/chunks/r-qkm8ck5x.js +1 -0
- package/static/build/chunks/racket-mzbdy2fp.js +1 -0
- package/static/build/chunks/raku-se52tvjp.js +1 -0
- package/static/build/chunks/razor-y9b1j8td.js +1 -0
- package/static/build/chunks/rbs-00y9vc5r.js +1 -0
- package/static/build/chunks/red-tkj5bw1z.js +1 -0
- package/static/build/chunks/reg-9z4ax2nc.js +1 -0
- package/static/build/chunks/regexp-99svsrmp.js +1 -0
- package/static/build/chunks/rel-tf2jya2v.js +1 -0
- package/static/build/chunks/riscv-hpebp724.js +1 -0
- package/static/build/chunks/ron-s3mfhwnh.js +1 -0
- package/static/build/chunks/rose-pine-dawn-apmj5y1p.js +1 -0
- package/static/build/chunks/rose-pine-moon-mgx7zgjy.js +1 -0
- package/static/build/chunks/rose-pine-vgbee1jh.js +1 -0
- package/static/build/chunks/rosmsg-vgsgfpe4.js +1 -0
- package/static/build/chunks/rst-xnf3rrzd.js +1 -0
- package/static/build/chunks/ruby-gysj44ty.js +1 -0
- package/static/build/chunks/rust-bzv74qkx.js +1 -0
- package/static/build/chunks/sas-t4zftd7j.js +1 -0
- package/static/build/chunks/sass-tnsj7t5t.js +1 -0
- package/static/build/chunks/scala-vsjg5eg2.js +1 -0
- package/static/build/chunks/scheme-yhv7mnk9.js +1 -0
- package/static/build/chunks/scss-vt2fyer8.js +1 -0
- package/static/build/chunks/sdbl-jv670bae.js +1 -0
- package/static/build/chunks/shaderlab-csszkf9s.js +1 -0
- package/static/build/chunks/shellscript-t3jf42zg.js +1 -0
- package/static/build/chunks/shellsession-e1m2zj1m.js +1 -0
- package/static/build/chunks/slack-dark-ntnagayj.js +1 -0
- package/static/build/chunks/slack-ochin-kge218j8.js +1 -0
- package/static/build/chunks/smalltalk-q8bgts0p.js +1 -0
- package/static/build/chunks/smithy-m7r7jeg3.js +1 -0
- package/static/build/chunks/snazzy-light-57mzezsa.js +1 -0
- package/static/build/chunks/solarized-dark-0r80rpr7.js +1 -0
- package/static/build/chunks/solarized-light-1e0p6z46.js +1 -0
- package/static/build/chunks/solidity-vb1zcsry.js +1 -0
- package/static/build/chunks/soy-bzh2aynk.js +1 -0
- package/static/build/chunks/sparql-6t8g6rdd.js +1 -0
- package/static/build/chunks/splunk-50bpjgv6.js +1 -0
- package/static/build/chunks/sql-kkaf039q.js +1 -0
- package/static/build/chunks/ssh-config-715bkrac.js +1 -0
- package/static/build/chunks/stata-zhvjkw4g.js +1 -0
- package/static/build/chunks/stylus-b8aj4z6s.js +1 -0
- package/static/build/chunks/surrealql-4w27b1xf.js +1 -0
- package/static/build/chunks/svelte-6vty1ayf.js +1 -0
- package/static/build/chunks/swift-2w2k3des.js +1 -0
- package/static/build/chunks/synthwave-84-007ndkbp.js +1 -0
- package/static/build/chunks/system-verilog-hzg0fpex.js +1 -0
- package/static/build/chunks/systemd-d3k4d1av.js +1 -0
- package/static/build/chunks/talonscript-fw295t4h.js +1 -0
- package/static/build/chunks/tasl-8n3br9kn.js +1 -0
- package/static/build/chunks/tcl-e485436v.js +1 -0
- package/static/build/chunks/templ-535cbmg6.js +1 -0
- package/static/build/chunks/terraform-k8aqghnt.js +1 -0
- package/static/build/chunks/tex-9yx3fnmk.js +1 -0
- package/static/build/chunks/tokyo-night-rvkd4sna.js +1 -0
- package/static/build/chunks/toml-bypjcbh1.js +1 -0
- package/static/build/chunks/ts-tags-zyfv802m.js +1 -0
- package/static/build/chunks/tsv-2n58sktq.js +1 -0
- package/static/build/chunks/tsx-gnkw8sgq.js +1 -0
- package/static/build/chunks/turtle-sf93b8kj.js +1 -0
- package/static/build/chunks/twig-8gw76pn3.js +1 -0
- package/static/build/chunks/typescript-077c9w1h.js +1 -0
- package/static/build/chunks/typespec-8r8ncprb.js +1 -0
- package/static/build/chunks/typst-yg6690gs.js +1 -0
- package/static/build/chunks/v-tdjz29z1.js +1 -0
- package/static/build/chunks/vala-trffggt0.js +1 -0
- package/static/build/chunks/vb-1dx16kyy.js +1 -0
- package/static/build/chunks/verilog-sv7hb60t.js +1 -0
- package/static/build/chunks/vesper-005phtef.js +1 -0
- package/static/build/chunks/vhdl-qck3dqgh.js +1 -0
- package/static/build/chunks/viml-m54vetp0.js +1 -0
- package/static/build/chunks/vitesse-black-sxfaa2kz.js +1 -0
- package/static/build/chunks/vitesse-dark-fhxvesec.js +1 -0
- package/static/build/chunks/vitesse-light-cygqrsgb.js +1 -0
- package/static/build/chunks/vue-html-5ex4htv4.js +1 -0
- package/static/build/chunks/vue-n8p10w4p.js +1 -0
- package/static/build/chunks/vue-vine-y2qnwmqn.js +1 -0
- package/static/build/chunks/vyper-r9v6ymtz.js +1 -0
- package/static/build/chunks/wasm-c0aw8acq.js +1 -0
- package/static/build/chunks/wasm-eftreyx0.js +1 -0
- package/static/build/chunks/wenyan-pn35fr2w.js +1 -0
- package/static/build/chunks/wgsl-akmafmem.js +1 -0
- package/static/build/chunks/wikitext-yp9d6pan.js +1 -0
- package/static/build/chunks/wit-rg9t2t2j.js +1 -0
- package/static/build/chunks/wolfram-m5vswcfg.js +1 -0
- package/static/build/chunks/workspace-review-3scrbyaw.js +1361 -0
- package/static/build/chunks/xml-8pftb6y7.js +1 -0
- package/static/build/chunks/xsl-w4bvqyjy.js +1 -0
- package/static/build/chunks/yaml-a56qt88c.js +1 -0
- package/static/build/chunks/zenscript-pp2pffj8.js +1 -0
- package/static/build/chunks/zig-53aewpf9.js +1 -0
- package/static/build/main.js +6 -0
- package/static/build/pierre-worker.js +156 -0
- package/static/favicon.svg +1 -0
- package/static/file-uri.js +18 -0
- package/static/file-uri_test.ts +35 -0
- package/static/icon-180.png +0 -0
- package/static/icon-192.png +0 -0
- package/static/icon-512.png +0 -0
- package/static/manifest.webmanifest +23 -0
- package/static/notification-icon.png +0 -0
- package/static/theme.js +17 -0
- package/static/vendor/datastar-inspector.min.js +1021 -0
- package/static/vendor/datastar.js +10 -0
|
@@ -0,0 +1,1361 @@
|
|
|
1
|
+
import{A as vs,a as sd,b as zr,c as $s,d as Us,e as qr,f as Js,g as Ks,h as Gs,i as Ji,l as Zs,m as ea,n as to,o as no,p as ro,q as Kr,r as ta,s as Nu,t as na,u as io,v as ir,w as ra,x as ad,y as ld,z as Cr}from"./main-wcnadmhs.js";import{O as Qi,ka as Ur,la as Zi,ma as eo}from"./main-7fchxg57.js";import{Pb as B,Qb as hs,Rb as Ci,Sb as xr,Tb as Sr,Ub as xu,Vb as en}from"./main-61mzprk0.js";import{cc as Sh,dc as Ih,fc as fm}from"./main-x61973bh.js";var Xs=Ih(function(Wr,Ys){(function(e,t){typeof Wr=="object"&&typeof Ys<"u"?t(Wr):typeof define=="function"&&define.amd?define(["exports"],t):t((e=e||self).lru_map=e.lru_map||{})})(Wr,function(e){let t=Symbol("newer"),n=Symbol("older");class r{constructor(l,c){typeof l!=="number"&&(c=l,l=0),this.size=0,this.limit=l,this.oldest=this.newest=void 0,this._keymap=new Map,c&&(this.assign(c),l<1&&(this.limit=this.size))}_markEntryAsUsed(l){if(l===this.newest)return;l[t]&&(l===this.oldest&&(this.oldest=l[t]),l[t][n]=l[n]),l[n]&&(l[n][t]=l[t]),l[t]=void 0,l[n]=this.newest,this.newest&&(this.newest[t]=l),this.newest=l}assign(l){let c,d=this.limit||Number.MAX_VALUE;this._keymap.clear();let f=l[Symbol.iterator]();for(let u=f.next();!u.done;u=f.next()){let m=new i(u.value[0],u.value[1]);if(this._keymap.set(m.key,m),c?(c[t]=m,m[n]=c):this.oldest=m,c=m,d--==0)throw Error("overflow")}this.newest=c,this.size=this._keymap.size}get(l){var c=this._keymap.get(l);return c?(this._markEntryAsUsed(c),c.value):void 0}set(l,c){var d=this._keymap.get(l);return d?(d.value=c,this._markEntryAsUsed(d),this):(this._keymap.set(l,d=new i(l,c)),this.newest?(this.newest[t]=d,d[n]=this.newest):this.oldest=d,this.newest=d,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var l=this.oldest;if(l)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),l[t]=l[n]=void 0,this._keymap.delete(l.key),--this.size,[l.key,l.value]}find(l){let c=this._keymap.get(l);return c?c.value:void 0}has(l){return this._keymap.has(l)}delete(l){var c=this._keymap.get(l);return c?(this._keymap.delete(c.key),c[t]&&c[n]?(c[n][t]=c[t],c[t][n]=c[n]):c[t]?(c[t][n]=void 0,this.oldest=c[t]):c[n]?(c[n][t]=void 0,this.newest=c[n]):this.oldest=this.newest=void 0,this.size--,c.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new s(this.oldest)}values(){return new a(this.oldest)}entries(){return this}[Symbol.iterator](){return new o(this.oldest)}forEach(l,c){typeof c!=="object"&&(c=this);let d=this.oldest;for(;d;)l.call(c,d.value,d.key,this),d=d[t]}toJSON(){for(var l=Array(this.size),c=0,d=this.oldest;d;)l[c++]={key:d.key,value:d.value},d=d[t];return l}toString(){for(var l="",c=this.oldest;c;)l+=String(c.key)+":"+c.value,c=c[t],c&&(l+=" < ");return l}}e.LRUMap=r;function i(l,c){this.key=l,this.value=c,this[t]=void 0,this[n]=void 0}function o(l){this.entry=l}o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let l=this.entry;return l?(this.entry=l[t],{done:!1,value:[l.key,l.value]}):{done:!0,value:void 0}};function s(l){this.entry=l}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let l=this.entry;return l?(this.entry=l[t],{done:!1,value:l.key}):{done:!0,value:void 0}};function a(l){this.entry=l}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let l=this.entry;return l?(this.entry=l[t],{done:!1,value:l.value}):{done:!0,value:void 0}}})});function ji(e){let t=[];for(let n of e){let r=zr.get(n);if(r==null)throw Error(`getResolvedLanguages: ${n} is not resolved. Please resolve languages before calling getResolvedLanguages`);t.push(r)}return t}function $i(e){for(let t of Array.isArray(e)?e:[e])if(!zr.has(t))return!1;return!0}async function Ui(e){let t=[],n=[];for(let r of e){if(r==="text"||r==="ansi")continue;let i=Us(r)??$s(r);if("then"in i)n.push(i);else t.push(i)}if(n.length>0)await Promise.all(n).then((r)=>{for(let i of r){if(i==null)throw Error("resolvedLanguages: unable to resolve language");t.push(i)}});return t}function Ki(e){return qr.getResolvedThemes(e)}async function Gi(e){for(let n of e)Ks(n);let t=await qr.resolveThemes(e);for(let n=0;n<e.length;n++)Gs(e[n],t[n]);return t}var oo=Sh(Xs(),1),jr=Symbol("IGNORE_RESPONSE"),$r=class extends Error{constructor(){super("WorkerPoolManager: operation canceled because the pool terminated")}},Yi=class extends Error{constructor(){super("WorkerPoolManager: operation canceled before the task completed")}},ia=class{options;highlighter;preferredHighlighter;renderOptions;renderOptionsRequestVersion=0;renderOptionsVersion=0;initialized=!1;workers=[];queuedTasks=[];queuedTaskByInstance=new Map;taskByHighlightKey=new Map;activeTaskById=new Map;activeRequestByInstance=new Map;nextRequestId=0;themeSubscribers=new Set;workersFailed=!1;statSubscribers=new Set;fileCache;diffCache;_queuedBroadcast;lifecycleGeneration=0;constructor(e,{langs:t,theme:n=Qi,useTokenTransformer:r=!1,lineDiffType:i="word-alt",maxLineDiffLength:o=1000,tokenizeMaxLineLength:s=1000,preferredHighlighter:a="shiki-js"}){this.options=e,this.preferredHighlighter=a,this.renderOptions={theme:n,useTokenTransformer:r,lineDiffType:i,maxLineDiffLength:o,tokenizeMaxLineLength:s},this.fileCache=new oo.default.LRUMap(e.totalASTLRUCacheSize??100),this.diffCache=new oo.default.LRUMap(e.totalASTLRUCacheSize??100),this.queueInitialization(t)}isWorkingPool(){return!this.workersFailed}getFileResultCache(e){return e.cacheKey!=null?this.fileCache.get(e.cacheKey):void 0}getDiffResultCache(e){return e.cacheKey!=null?this.diffCache.get(e.cacheKey):void 0}inspectCaches(){let{fileCache:e,diffCache:t}=this;return{fileCache:e,diffCache:t}}evictFileFromCache(e){try{return this.fileCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}evictDiffFromCache(e){try{return this.diffCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}async setRenderOptions({theme:e=this.renderOptions.theme??Qi,useTokenTransformer:t=this.renderOptions.useTokenTransformer??!1,lineDiffType:n=this.renderOptions.lineDiffType??"word-alt",maxLineDiffLength:r=this.renderOptions.maxLineDiffLength??1000,tokenizeMaxLineLength:i=this.renderOptions.tokenizeMaxLineLength??1000}){let{lifecycleGeneration:o}=this,s=++this.renderOptionsRequestVersion,a=()=>this.isCurrentLifecycle(o)&&this.renderOptionsRequestVersion===s;try{let l={theme:e,useTokenTransformer:t,lineDiffType:n,maxLineDiffLength:r,tokenizeMaxLineLength:i};if(!this.isInitialized())await this.initialize();if(!a()||ir(l,this.renderOptions))return;let c=no(e),d=[];if(!Zs(l.theme,this.renderOptions.theme))if(ro(c))d=Ki(c);else d=await Gi(c);if(!a())return;if(this.highlighter!=null)Js(d,this.highlighter);else{let u=await Ji({themes:c,langs:["text"],preferredHighlighter:this.preferredHighlighter});if(!a())return;this.highlighter=u}let f=this.setRenderOptionsOnWorkers(l,d);this.renderOptions=l,this.renderOptionsVersion++,this.diffCache.clear(),this.fileCache.clear(),this.invalidateRenderTasks();for(let u of this.themeSubscribers)u.onThemeChange();await f}catch(l){if(l instanceof $r||!a())return;throw l}}getPreferredHighlighter(){return this.preferredHighlighter}getFileRenderOptions(){let{tokenizeMaxLineLength:e,theme:t,useTokenTransformer:n}=this.renderOptions;return{theme:t,useTokenTransformer:n,tokenizeMaxLineLength:e}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(e,t){if(this.workersFailed)return;if(!this.isInitialized())await this.initialize();let n=[];for(let r of this.workers){if(!r.initialized)throw console.log({managedWorker:r}),Error("setRenderOptionsOnWorkers: Somehow we have an uninitialized worker");n.push(new Promise((i,o)=>{let s=this.generateRequestId(),a={type:"set-render-options",id:s,request:{type:"set-render-options",id:s,renderOptions:e,resolvedThemes:t},resolve:i,reject:o,requestStart:Date.now()};this.activeTaskById.set(s,a),r.pendingSetupRequestId=s,r.worker.postMessage(a.request)}))}await Promise.all(n)}subscribeToThemeChanges(e){return this.themeSubscribers.add(e),this.queueBroadcastStateChanges(),()=>{this.unsubscribeToThemeChanges(e),this.queueBroadcastStateChanges()}}unsubscribeToThemeChanges(e){this.themeSubscribers.delete(e),this.queueBroadcastStateChanges()}subscribeToStatChanges(e){return this.statSubscribers.add(e),e(this.getStats()),()=>{this.statSubscribers.delete(e)}}queueBroadcastStateChanges(){if(this._queuedBroadcast!=null)return;this._queuedBroadcast=requestAnimationFrame(this._broadcastStateChanges)}_broadcastStateChanges=()=>{if(this._queuedBroadcast!=null)cancelAnimationFrame(this._queuedBroadcast),this._queuedBroadcast=void 0;let e=this.getStats();for(let t of this.statSubscribers)t(e)};cleanUpTasks(e){this.detachInstanceFromQueuedTasks(e);let t=this.activeRequestByInstance.get(e);if(t!=null){let n=this.activeTaskById.get(t);if(Rt(n)){if(this.detachInstanceFromRenderTask(n,e),!n.primeCache&&n.instances.size===0)this.removeActiveTask(n)}else this.activeTaskById.delete(t)}this.activeRequestByInstance.delete(e),this.queueBroadcastStateChanges()}isInitialized(){return this.initialized===!0}async initialize(e=[]){if(this.initialized===!0)return;else if(this.initialized===!1){let{lifecycleGeneration:t}=this;this.initialized=new Promise((n,r)=>{(async()=>{try{let i=no(this.renderOptions.theme),o=[];if(ro(i))o=Ki(i);else o=await Gi(i);if(!this.isCurrentLifecycle(t)){n();return}let s=[];if($i(e))s=ji(e);else s=await Ui(e);if(!this.isCurrentLifecycle(t)){n();return}let[a]=await Promise.all([Ji({themes:i,langs:["text",...e],preferredHighlighter:this.preferredHighlighter}),this.initializeWorkers(o,s)]);if(!this.isCurrentLifecycle(t)){this.terminateWorkers(),n();return}this.highlighter=a,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),this.queueBroadcastStateChanges(),n()}catch(i){if(i instanceof $r||!this.isCurrentLifecycle(t)){n();return}this.initialized=!1,this.workersFailed=!0;for(let o of this.queuedTasks)this.rejectRenderTaskCallbacks(o,Xi(i));this.queueBroadcastStateChanges(),r(i)}})()}),this.queueBroadcastStateChanges()}else return this.initialized}async initializeWorkers(e,t){this.workersFailed=!1;let n=[],r=Zi(),i=r>0?eo():void 0;if(this.workers.length>0)this.terminateWorkers();for(let o=0;o<(this.options.poolSize??8);o++){let s=this.options.workerFactory(),a={worker:s,requestId:void 0,pendingSetupRequestId:void 0,initialized:!1,langs:new Set(["text",...t.map(({name:l})=>l)]),customExtensionsVersion:0};s.addEventListener("message",(l)=>{this.handleWorkerMessage(a,l.data)}),s.addEventListener("error",(l)=>console.error("Worker error:",l,a)),this.workers.push(a),n.push(new Promise((l,c)=>{let d=this.generateRequestId(),f={type:"initialize",id:d,request:{type:"initialize",id:d,renderOptions:this.renderOptions,preferredHighlighter:this.preferredHighlighter,resolvedThemes:e,resolvedLanguages:t,customExtensionsVersion:i!=null?r:void 0,customExtensionMap:i},resolve(){a.initialized=!0,l()},reject:c,requestStart:Date.now()};this.activeTaskById.set(d,f),this.executeTask(a,f)}))}await Promise.all(n)}drainQueue=()=>{if(this._queuedDrain=void 0,this.initialized!==!0||this.queuedTasks.length===0)return;for(let e=0;e<this.queuedTasks.length;){let t=this.queuedTasks[e];if(this.hasActiveRequest(t)){e++;continue}let n=Qs(t),r=this.getAvailableWorker(n);if(r==null)break;this.queuedTasks.splice(e,1),this.assignWorkerToTask(t,r),this.resolveLanguagesAndExecuteTask(r,t,n)}this.queueBroadcastStateChanges()};highlightFileAST(e,t){let n=this.getFileResultCache(t);if(to(t)||n!=null&&Kr(n.options,this.getFileRenderOptions()))return;if(!this.hasMatchingFileInstanceTask(e,t))this.submitTask(e,{type:"file",file:t})}primeFileHighlightCache(e){if(!this.isWorkingPool())return Promise.reject(Error("WorkerPoolManager.primeFileHighlightCache: worker pool is not working"));let t=this.getOrCreateFileHighlightCacheTask(e);return t!=null?this.createRenderTaskCallbacks(t):Promise.resolve()}getOrCreateFileHighlightCacheTask(e){if(e.cacheKey==null){console.warn(`WorkerPoolManager.primeFileHighlightCache: priming highlight cache requires file.cacheKey; skipping "${e.name}".`);return}let t=this.getFileResultCache(e),n=this.getFileHighlightKey(e);if(n==null||to(e)||t!=null&&Kr(t.options,this.getFileRenderOptions()))return;let r=this.getTaskByHighlightKey(n);if(r!=null)return r.primeCache=!0,r.type==="file"?r:void 0;else{let i=this.submitCacheTask({type:"file",file:e},n);return i.type==="file"?i:void 0}}getPlainFileAST(e,t,n,r){if(this.highlighter==null){this.queueInitialization();return}return ta(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:n,lines:r})}highlightDiffAST(e,t){let n=this.getDiffResultCache(t);if(io(t)||n!=null&&ir(n.options,this.getDiffRenderOptions()))return;if(!this.hasMatchingDiffInstanceTask(e,t))this.submitTask(e,{type:"diff",diff:t})}primeDiffHighlightCache(e){if(!this.isWorkingPool())return Promise.reject(Error("WorkerPoolManager.primeDiffHighlightCache: worker pool is not working"));let t=this.getOrCreateDiffHighlightCacheTask(e);return t!=null?this.createRenderTaskCallbacks(t):Promise.resolve()}getOrCreateDiffHighlightCacheTask(e){if(e.cacheKey==null){console.warn(`WorkerPoolManager.primeDiffHighlightCache: priming highlight cache requires diff.cacheKey; skipping "${e.prevName??e.name}" -> "${e.name}".`);return}let t=this.getDiffResultCache(e),n=this.getDiffHighlightKey(e);if(n==null||io(e)||t!=null&&ir(t.options,this.getDiffRenderOptions()))return;let r=this.getTaskByHighlightKey(n);if(r!=null)return r.primeCache=!0,r.type==="diff"?r:void 0;else{let i=this.submitCacheTask({type:"diff",diff:e},n);return i.type==="diff"?i:void 0}}getPlainDiffAST(e,t,n,r,i){return this.highlighter!=null?ra(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:n,expandedHunks:r,collapsedContextThreshold:i}):void 0}terminate(){this.lifecycleGeneration++,this.cancelActiveWorkerTasks(),this.terminateWorkers();let e=new $r;for(let t of this.queuedTasks)this.rejectRenderTaskCallbacks(t,e);this.fileCache.clear(),this.diffCache.clear(),this.activeRequestByInstance.clear(),this.queuedTasks.length=0,this.queuedTaskByInstance.clear(),this.taskByHighlightKey.clear(),this.activeTaskById.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1,this.queueBroadcastStateChanges()}isCurrentLifecycle(e){return this.lifecycleGeneration===e}queueInitialization(e){this.initialize(e).catch((t)=>{console.error(t)})}cancelActiveWorkerTasks(){let e=new $r;for(let t of this.activeTaskById.values())if("reject"in t)t.reject(e);else if(Rt(t))this.rejectRenderTaskCallbacks(t,e)}terminateWorkers(){for(let e of this.workers)e.worker.terminate();this.workers.length=0}getStats(){return{managerState:(()=>{if(this.initialized===!1)return"waiting";if(this.initialized!==!0)return"initializing";return"initialized"})(),totalWorkers:this.workers.length,workersFailed:this.workersFailed,busyWorkers:this.workers.filter((e)=>e.requestId!=null||e.pendingSetupRequestId!=null).length,queuedTasks:this.queuedTasks.length,activeTasks:this.activeTaskById.size,themeSubscribers:this.themeSubscribers.size,fileCacheSize:this.fileCache.size,diffCacheSize:this.diffCache.size}}submitTask(e,t){if(this.initialized===!1)this.queueInitialization();let n=this.getHighlightKeyForRequest(t),r=n!=null?this.getTaskByHighlightKey(n):void 0;if(r!=null){this.detachInstanceFromQueuedTasks(e,r),this.addInstanceToTask(r,e),this.queueBroadcastStateChanges();return}this.detachInstanceFromQueuedTasks(e);let i=this.generateRequestId(),o=Date.now(),{renderOptionsVersion:s}=this,a=(()=>{switch(t.type){case"file":return{type:"file",id:i,request:{...t,id:i},instances:new Set([e]),primeCache:!1,highlightKey:n,callbacks:new Set,renderOptionsVersion:s,requestStart:o};case"diff":return{type:"diff",id:i,request:{...t,id:i},instances:new Set([e]),primeCache:!1,highlightKey:n,callbacks:new Set,renderOptionsVersion:s,requestStart:o}}})();this.enqueueRenderTask(a,e)}submitCacheTask(e,t){if(this.initialized===!1)this.queueInitialization();let n=this.generateRequestId(),r=Date.now(),{renderOptionsVersion:i}=this,o=(()=>{switch(e.type){case"file":return{type:"file",id:n,request:{...e,id:n},instances:new Set,primeCache:!0,highlightKey:t,callbacks:new Set,renderOptionsVersion:i,requestStart:r};case"diff":return{type:"diff",id:n,request:{...e,id:n},instances:new Set,primeCache:!0,highlightKey:t,callbacks:new Set,renderOptionsVersion:i,requestStart:r}}})();return this.enqueueRenderTask(o),o}enqueueRenderTask(e,t){if(this.queuedTasks.push(e),t!=null)this.queuedTaskByInstance.set(t,e);if(e.highlightKey!=null)this.taskByHighlightKey.set(e.highlightKey,e);this.queueDrain()}async resolveLanguagesAndExecuteTask(e,t,n){try{let r=n.filter((i)=>!e.langs.has(i));if(r.length>0)if($i(r))t.request.resolvedLanguages=ji(r);else t.request.resolvedLanguages=await Ui(r);if(!this.activeTaskById.has(t.id)){if(e.requestId===t.id){if(this.cleanWorkerAndTask(e,t),this.queueBroadcastStateChanges(),this.queuedTasks.length>0)this.queueDrain()}return}this.executeTask(e,t)}catch(r){if(this.rejectRenderTaskCallbacks(t,Xi(r)),this.cleanWorkerAndTask(e,t),this.queueBroadcastStateChanges(),this.queuedTasks.length>0)this.queueDrain()}}handleWorkerMessage(e,t){let n=this.activeTaskById.get(t.id);try{if(n==null)throw jr;else if(t.type==="error"){let r=Error(t.error);if(t.stack)r.stack=t.stack;if("reject"in n)n.reject(r);else if(Rt(n))this.notifyHighlightError(n,r),this.rejectRenderTaskCallbacks(n,r);else throw Error("handleWorkerMessage: unknown task type");throw r}else switch(t.requestType){case"initialize":if(n.type!=="initialize")throw Error("handleWorkerMessage: task/response dont match");this.syncCustomExtensionVersion(e,n.request),n.resolve();break;case"set-render-options":if(n.type!=="set-render-options")throw Error("handleWorkerMessage: task/response dont match");n.resolve();break;case"file":{if(n.type!=="file")throw Error("handleWorkerMessage: task/response dont match");let{result:r,options:i}=t;if(!this.isCurrentRenderTask(n)||!Kr(i,this.getFileRenderOptions()))throw jr;let{request:o}=n;if(this.syncCustomExtensionVersion(e,o),n.cacheKeyAtDispatch!=null)this.fileCache.set(n.cacheKeyAtDispatch,{result:r,options:i});this.resolveRenderTaskCallbacks(n),this.notifyFileInstances(n,r,i);break}case"diff":{if(n.type!=="diff")throw Error("handleWorkerMessage: task/response dont match");let{result:r,options:i}=t;if(!this.isCurrentRenderTask(n)||!ir(i,this.getDiffRenderOptions()))throw jr;let{request:o}=n;if(this.syncCustomExtensionVersion(e,o),n.cacheKeyAtDispatch!=null)this.diffCache.set(n.cacheKeyAtDispatch,{result:r,options:i});this.resolveRenderTaskCallbacks(n),this.notifyDiffInstances(n,r,i);break}}}catch(r){if(r!==jr)console.error(r,n,t)}if(this.cleanWorkerAndTask(e,n,t.id),this.queueBroadcastStateChanges(),this.queuedTasks.length>0)this.queueDrain()}_queuedDrain;queueDrain(){if(this._queuedDrain!=null)return;this._queuedDrain=Promise.resolve().then(this.drainQueue),this.queueBroadcastStateChanges()}assignWorkerToTask(e,t){if(t.requestId=e.id,Rt(e))this.clearQueuedInstanceRequests(e),this.trackInstanceRequests(e);this.activeTaskById.set(e.id,e)}cleanWorkerAndTask(e,t,n=t?.id){if(e.requestId===n)e.requestId=void 0;if(e.pendingSetupRequestId===n)e.pendingSetupRequestId=void 0;if(t!=null){if(Rt(t))this.rejectRenderTaskCallbacks(t,new Yi),this.clearInstanceRequests(t),this.clearHighlightKey(t);this.activeTaskById.delete(t.id)}}executeTask(e,t){if(Ch(t.request))this.maybeAttachCustomExtensions(e,t.request);if(!this.activeTaskById.has(t.id))this.assignWorkerToTask(t,e);for(let n of Qs(t))e.langs.add(n);try{if(t.type==="file")t.cacheKeyAtDispatch=t.request.file.cacheKey;else if(t.type==="diff")t.cacheKeyAtDispatch=t.request.diff.cacheKey;e.worker.postMessage(t.request)}catch(n){if(console.error("Failed to post message to worker:",n),Rt(t))this.notifyHighlightError(t,n),this.rejectRenderTaskCallbacks(t,Xi(n));else if("reject"in t)t.reject(n);if(this.cleanWorkerAndTask(e,t),this.queuedTasks.length>0)this.queueDrain()}this.queueBroadcastStateChanges()}maybeAttachCustomExtensions(e,t){if(t.customExtensionsVersion!=null)return;let n=Zi();if(e.customExtensionsVersion>=n)return;t.customExtensionsVersion=n,t.customExtensionMap=eo()}syncCustomExtensionVersion(e,t){if(t.customExtensionsVersion==null)return;e.customExtensionsVersion=t.customExtensionsVersion}getAvailableWorker(e){let t;for(let n of this.workers){if(n.requestId!=null||n.pendingSetupRequestId!=null||!n.initialized)continue;if(t=n,e.length===0)break;let r=!0;for(let i of e)if(!n.langs.has(i)){r=!1;break}if(r)break}return t}getFileHighlightKey(e){if(e.cacheKey==null)return;return`file:${e.cacheKey}:${this.renderOptionsVersion}`}getDiffHighlightKey(e){if(e.cacheKey==null)return;return`diff:${e.cacheKey}:${this.renderOptionsVersion}`}getHighlightKeyForRequest(e){switch(e.type){case"file":return this.getFileHighlightKey(e.file);case"diff":return this.getDiffHighlightKey(e.diff)}}hasActiveRequest(e){for(let t of rr(e))if(this.activeRequestByInstance.has(t))return!0;return!1}addInstanceToTask(e,t){if(e.type==="file")e.instances.add(t);else e.instances.add(t);if(this.activeTaskById.has(e.id))this.activeRequestByInstance.set(t,e.id);else this.queuedTaskByInstance.set(t,e)}detachInstanceFromQueuedTasks(e,t){let n=this.queuedTaskByInstance.get(e);if(n==null||n===t)return;if(this.queuedTaskByInstance.delete(e),this.detachInstanceFromRenderTask(n,e),!n.primeCache&&n.instances.size===0)this.removeQueuedTask(n)}detachInstanceFromRenderTask(e,t){if(e.type==="file")e.instances.delete(t);else e.instances.delete(t)}removeQueuedTask(e){let t=this.queuedTasks.indexOf(e);if(t!==-1)this.queuedTasks.splice(t,1);this.rejectRenderTaskCallbacks(e,new Yi),this.clearQueuedInstanceRequests(e),this.clearHighlightKey(e)}removeActiveTask(e){this.rejectRenderTaskCallbacks(e,new Yi),this.clearInstanceRequests(e),this.clearHighlightKey(e),this.activeTaskById.delete(e.id)}createRenderTaskCallbacks(e){return new Promise((t,n)=>{e.callbacks.add({resolve:t,reject:n})})}resolveRenderTaskCallbacks(e){for(let t of e.callbacks)t.resolve();e.callbacks.clear()}rejectRenderTaskCallbacks(e,t){for(let n of e.callbacks)n.reject(t);e.callbacks.clear()}invalidateRenderTasks(){for(let e=this.queuedTasks.length-1;e>=0;e--){let t=this.queuedTasks[e];if(t.renderOptionsVersion!==this.renderOptionsVersion)this.removeQueuedTask(t)}for(let e of Array.from(this.activeTaskById.values()))if(Rt(e)&&e.renderOptionsVersion!==this.renderOptionsVersion)this.removeActiveTask(e)}clearQueuedInstanceRequests(e){for(let t of rr(e))if(this.queuedTaskByInstance.get(t)===e)this.queuedTaskByInstance.delete(t)}clearHighlightKey(e){if(e.highlightKey!=null&&this.taskByHighlightKey.get(e.highlightKey)===e)this.taskByHighlightKey.delete(e.highlightKey)}trackInstanceRequests(e){for(let t of rr(e))this.activeRequestByInstance.set(t,e.id)}clearInstanceRequests(e){for(let t of rr(e))if(this.activeRequestByInstance.get(t)===e.id)this.activeRequestByInstance.delete(t)}notifyFileInstances(e,t,n){for(let r of e.instances)if(this.activeRequestByInstance.get(r)===e.id)r.onHighlightSuccess(e.request.file,t,n)}notifyDiffInstances(e,t,n){for(let r of e.instances)if(this.activeRequestByInstance.get(r)===e.id)r.onHighlightSuccess(e.request.diff,t,n)}notifyHighlightError(e,t){for(let n of rr(e))if(this.activeRequestByInstance.get(n)===e.id)n.onHighlightError(t)}hasMatchingFileInstanceTask(e,t){for(let n of this.iterateRenderTasks())if(n.type==="file"&&this.isCurrentRenderTask(n)&&n.instances.has(e)&&ea(t,n.request.file))return!0;return!1}hasMatchingDiffInstanceTask(e,t){for(let n of this.iterateRenderTasks())if(n.type==="diff"&&this.isCurrentRenderTask(n)&&n.instances.has(e)&&na(n.request.diff,t))return!0;return!1}getTaskByHighlightKey(e){let t=this.taskByHighlightKey.get(e);return t!=null&&this.isCurrentRenderTask(t)?t:void 0}isCurrentRenderTask(e){return e.renderOptionsVersion===this.renderOptionsVersion}*iterateRenderTasks(){for(let e of this.queuedTasks)yield e;for(let e of this.activeTaskById.values())if(Rt(e))yield e}generateRequestId(){return`req_${++this.nextRequestId}`}};function Ch(e){return e.type==="initialize"||e.type==="file"||e.type==="diff"}function Qs(e){let t=new Set;if(e.type==="initialize"||e.type==="set-render-options")return[];switch(e.type){case"file":t.add(e.request.file.lang??Ur(e.request.file.name));break;case"diff":t.add(e.request.diff.lang??Ur(e.request.diff.name)),t.add(e.request.diff.lang??Ur(e.request.diff.prevName??"-"));break}return t.delete("text"),Array.from(t)}function Rt(e){return e?.type==="file"||e?.type==="diff"}function rr(e){return e.instances}function Xi(e){return e instanceof Error?e:Error(String(e))}var or;function so({poolOptions:e,highlighterOptions:t}){return or??=new ia(e,t),or}function ao(){if(or==null)return;or.terminate(),or=void 0}function Gt(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function lo(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function Dt(e,t){if(t.childIdByNameId!=null)return t.childIdByNameId;let n=new Map;for(let r of t.childIds){let i=e[r];if(i!=null)n.set(i.nameId,r)}return t.childIdByNameId=n,n}function mn(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];if(r!=null)t.set(r,n)}return e.childPositionById=t,t}function gn(e,t){if(e.childPositionById!=null)e.childPositionById.set(t,e.childIds.length);e.childIds.push(t)}function co(e,t){if(e.childPositionById==null)return;for(let n=t;n<e.childIds.length;n++){let r=e.childIds[n];if(r!=null)e.childPositionById.set(r,n)}}function Yt(e,t){let n=0,r=0;for(let i of t.childIds){let o=e[i];if(o==null)continue;n+=o.subtreeNodeCount,r+=o.visibleSubtreeCount}t.totalChildSubtreeNodeCount=n,t.totalChildVisibleSubtreeCount=r,Mt(e,t)}function Gr(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=mn(e).get(t);if(i===void 0)return;let o=i>>5;e.childVisibleChunkSums[o]+=r}function Yr(e,t,n){let r=t.childVisibleChunkSums;if(r!=null){let o=n,s=0;for(let a of r){if(o<a){let l=xh(e,t,s,o);return{...l,childVisibleIndex:n-l.localVisibleIndex}}o-=a,s+=32}throw Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let o=0;o<t.childIds.length;o++){let s=t.childIds[o];if(s==null)continue;let a=e[s];if(a==null)continue;if(i<a.visibleSubtreeCount)return{childIndex:o,childVisibleIndex:n-i,localVisibleIndex:i};i-=a.visibleSubtreeCount}throw Error(`Visible child index ${String(n)} is out of range`)}function oa(e,t,n){let r=0,i=t.childVisibleChunkSums,o=0;if(i!=null){let s=n>>5;for(let a=0;a<s;a+=1)r+=i[a]??0;o=s<<5}for(let s=o;s<n;s+=1){let a=t.childIds[s];if(a==null)continue;let l=e[a];if(l==null)continue;r+=l.visibleSubtreeCount}return r}function Mt(e,t){if(t.childIds.length<128){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/32),r=new Int32Array(n);for(let i=0;i<t.childIds.length;i++){let o=t.childIds[i];if(o==null)continue;let s=e[o];if(s==null)continue;r[i>>5]+=s.visibleSubtreeCount}t.childVisibleChunkSums=r}function xh(e,t,n,r){let i=Math.min(t.childIds.length,n+32),o=r;for(let s=n;s<i;s++){let a=t.childIds[s];if(a==null)continue;let l=e[a];if(l==null)continue;if(o<l.visibleSubtreeCount)return{childIndex:s,localVisibleIndex:o};o-=l.visibleSubtreeCount}throw Error(`Visible child index ${String(r)} is out of range`)}function Ae(e,t,n=0){return e<<4|n<<3|t}function Ve(e){return e.depthAndFlags>>>4}function sr(e){return(e.depthAndFlags&8)>>3}function D(e){return(e.depthAndFlags&8)!==0}function sa(e){return e.depthAndFlags&7}function ue(e,t){return(sa(e)&t)!==0}function vn(e,t){e.depthAndFlags|=t}function aa(e,t){e.depthAndFlags=Ae(t,sa(e),sr(e))}var la=Symbol("benchmarkInstrumentation");function ca(e,t){if(t==null)return e;return Object.defineProperty(e,la,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function ar(e){if(e==null)return null;return e[la]??null}function E(e,t,n){if(e==null)return n();return e.measurePhase(t,n)}function yn(e,t,n){if(!Number.isFinite(n)||e==null)return;e.setCounter(t,n)}function ua(e){return e>=48&&e<=57}function kh(e){let t=[],n=0,r=0;while(r<e.length){while(r<e.length&&!ua(e.charCodeAt(r)))r+=1;if(r>=e.length)break;if(r>n)t.push(e.slice(n,r));let i=0;while(r<e.length&&ua(e.charCodeAt(r)))i=i*10+(e.charCodeAt(r)-48),r+=1;t.push(i),n=r}if(n<e.length||t.length===0)t.push(e.slice(n));return t}function Xt(e){let t=e.toLowerCase();return{lowerValue:t,tokens:kh(t)}}function _h(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let i=e[r],o=t[r];if(i===o)continue;if(typeof i==="number"&&typeof o==="number")return i<o?-1:1;let s=String(i),a=String(o);if(s!==a)return s<a?-1:1}if(e.length!==t.length)return e.length<t.length?-1:1;return 0}function lr(e,t){if(e.tokens.length===1&&t.tokens.length===1&&typeof e.tokens[0]==="string"&&typeof t.tokens[0]==="string"){if(e.lowerValue===t.lowerValue)return 0;return e.lowerValue<t.lowerValue?-1:1}let n=_h(e.tokens,t.tokens);if(n!==0)return n;if(e.lowerValue!==t.lowerValue)return e.lowerValue<t.lowerValue?-1:1;return 0}function da(e,t,n){let r=lr(n(e),n(t));if(r!==0)return r;if(e===t)return 0;return e<t?-1:1}function Eh(e,t){return da(e,t,Xt)}function Xr(e,t){if(t!==e.segments.length-1)return 1;return e.isDirectory?1:0}function Th(e,t){let n=Math.min(e.segments.length,t.segments.length);for(let r=0;r<n;r++){let i=e.segments[r],o=t.segments[r];if(i===o)continue;let s=Xr(e,r);if(s!==Xr(t,r))return s===1?-1:1;return Eh(i,o)}if(e.segments.length!==t.segments.length)return e.segments.length<t.segments.length?-1:1;if(e.isDirectory===t.isDirectory)return 0;return e.isDirectory?-1:1}function ha(e,t){return Th(e,t)}function fa(e,t,n){let r=(o)=>{let s=n.get(o);if(s!=null)return s;let a=Xt(o);return n.set(o,a),a},i=Math.min(e.segments.length,t.segments.length);for(let o=0;o<i;o++){let s=e.segments[o],a=t.segments[o];if(s===a)continue;let l=Xr(e,o);if(l!==Xr(t,o))return l===1?-1:1;return da(s,a,r)}if(e.segments.length!==t.segments.length)return e.segments.length<t.segments.length?-1:1;if(e.isDirectory===t.isDirectory)return 0;return e.isDirectory?-1:1}function cr(e,t){let n=e.sortKeyById[t];if(n!==void 0)return n;let r=e.valueById[t],i=Xt(r);return e.sortKeyById[t]=i,i}function uo(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??"default"}}function pa(e){let t=e.length>0&&e.charCodeAt(e.length-1)===47,n=t?e.length-1:e.length,r=[],i=0;for(let o=0;o<n;o++){if(e.charCodeAt(o)!==47)continue;r.push(e.slice(i,o)),i=o+1}return r.push(e.slice(i,n)),{hasTrailingSlash:t,segments:r}}function Qt(e){let{hasTrailingSlash:t,segments:n}=pa(e);return{basename:n[n.length-1]??"",isDirectory:t,path:e,segments:n}}function Qr(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=pa(e);return{requiresDirectory:t,segments:n}}function Jr(){let e=new Map;return e.set("",0),{idByValue:e,valueById:[""],sortKeyById:[Xt("")]}}function rt(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 qe(e,t){let n=e.valueById[t];if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var ho=Symbol("pathStorePreparedInputKind");function va(e,t){return e[ho]=t,e}function ma(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function ya(e,t,n){if(n==="default")return ha(e,t);return n(ma(e),ma(t))}function Ph(){return{depthAndFlags:Ae(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function Rh(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 ga(e){return e.isDirectory?e.segments.length:e.segments.length-1}function Dh(e){return Array.isArray(e)&&e.every((t)=>t!=null&&typeof t==="object"&&typeof t.path==="string"&&Array.isArray(t.segments)&&typeof t.basename==="string"&&typeof t.isDirectory==="boolean")}function Mh(e){return Array.isArray(e)&&e.every((t)=>typeof t==="string")}function ba(e,t={}){return Zr(e,t).map((n)=>n.path)}function wa(e,t={}){let n=Zr(e,t);return va({paths:n.map((r)=>r.path),preparedPaths:n},"prepared")}function Ia(e){let t=e.length,n=!1;for(let r=0;r<t;r+=1){let i=e[r];if(i.length>0&&i.charCodeAt(i.length-1)===47){n=!0;break}}return va({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},"presorted")}function Sa(e){let t=e,n=t.preparedPaths;if(t[ho]==="prepared"&&n!=null)return n;if(!Dh(n))throw Error("preparedInput must come from PathStore.prepareInput()");return n}function Ca(e){let t=e;if(t[ho]==="presorted"&&t.presortedPaths!=null)return t.presortedPaths;return Mh(t.presortedPaths)?t.presortedPaths:null}function xa(e){let t=e;return typeof t.presortedPathsContainDirectories==="boolean"?t.presortedPathsContainDirectories:null}function Zr(e,t={}){let n=uo(t),r=ar(t);yn(r,"workload.inputFiles",e.length);let i=E(r,"store.preparePathEntries.parse",()=>e.map((o)=>Qt(o)));return E(r,"store.preparePathEntries.sort",()=>i.sort((o,s)=>ya(o,s,n.sort))),i}var ei=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[Ph()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=Jr();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=ar(e),this.options=uo(e);let t=e.initialExpandedPaths??null;if(t==null||t.length===0)this.initialExpandedPathSet=null;else{let n=new Set,r=t.length;for(let i=0;i<r;i+=1){let o=t[i],s=o.length;n.add(s>0&&o.charCodeAt(s-1)===47?o.slice(0,s-1):o)}this.initialExpandedPathSet=n,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,Gt())}appendPaths(e){return E(this.instrumentation,"store.builder.appendPaths.parse",()=>this.appendPreparedPaths(e.map((t)=>Qt(t))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,E(this.instrumentation,"store.builder.appendPreparedPaths",()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return E(this.instrumentation,"store.builder.appendPresortedPaths",()=>{if(t===!1){this.appendPresortedFilePaths(e);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,o=this.segmentTable,s=o.idByValue,a=o.valueById,l=this.directoryStack,c=0,d="",f=0;for(let u of e){if(n===u)throw Error(`Duplicate path: "${u}"`);let m=u.length>0&&u.charCodeAt(u.length-1)===47,p=m?u.length-1:u.length,g=0,v=0;if(n!=null)if(d.length>0&&u.length>d.length&&u.startsWith(d))g=f,v=d.length;else{let y=Math.min(p,n.length),w=!0;for(let x=0;x<y;x++){let P=u.charCodeAt(x);if(P!==n.charCodeAt(x)){w=!1;break}if(P===47)g++,v=x+1}if(w&&m&&y===p&&n.length>p&&n.charCodeAt(p)===47)g++,v=p+1}c=g,r=g;let S=v,C=u.indexOf("/",S);while(C>=0&&C<p){let y=l[c];if(y===void 0)throw Error("Directory stack underflow while building the path store");r++;let w=u.slice(S,C),x=s.get(w);if(x===void 0)x=a.length,s.set(w,x),a.push(w);let P=i.length;i.push({depthAndFlags:Ae(r,0,1),nameId:x,parentId:y,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(u.slice(0,C)),c++,l[c]=P,S=C+1,C=u.indexOf("/",S)}if(m){if(S<p){let w=l[c];if(w===void 0)throw Error(`Unable to resolve directory parent for "${u}"`);r++;let x=u.slice(S,p),P=s.get(x);if(P===void 0)P=a.length,s.set(x,P),a.push(x);let O=i.length;i.push({depthAndFlags:Ae(r,0,1),nameId:P,parentId:w,subtreeNodeCount:1,visibleSubtreeCount:1}),c++,l[c]=O,S=p+1}let y=l[c];if(y===void 0)throw Error(`Unable to resolve directory node for "${u}"`);this.promoteDirectoryToExplicit(y,u)}else{let y=l[c];if(y===void 0)throw Error(`Unable to resolve file parent for "${u}"`);let w=u.slice(S),x=s.get(w);if(x===void 0)x=a.length,s.set(w,x),a.push(w);i.push({depthAndFlags:Ae(r+1,0),nameId:x,parentId:y,subtreeNodeCount:1,visibleSubtreeCount:1})}if(S!==d.length)d=u.substring(0,S),f=r;n=u}if(l.length=c+1,n!=null)this.lastPreparedPath=Qt(n);this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(e){let t=null,n=0,r=this.nodes,i=this.segmentTable,o=i.idByValue,s=i.valueById,a=this.directoryStack,l=0,c="",d=0;for(let f of e){if(t===f)throw Error(`Duplicate path: "${f}"`);let u=f.length,m=0,p=0;if(t!=null)if(c.length>0&&f.length>c.length&&f.startsWith(c))m=d,p=c.length;else{let w=Math.min(u,t.length);for(let x=0;x<w;x++){let P=f.charCodeAt(x);if(P!==t.charCodeAt(x))break;if(P===47)m++,p=x+1}}l=m,n=m;let g=p,v=f.indexOf("/",g);while(v>=0){let w=a[l];if(w===void 0)throw Error("Directory stack underflow while building the path store");n++;let x=f.slice(g,v),P=o.get(x);if(P===void 0)P=s.length,o.set(x,P),s.push(x);let O=r.length;r.push({depthAndFlags:Ae(n,0,1),nameId:P,parentId:w,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(f.slice(0,v)),this.presortedDirectoryNodeIds.push(O),l++,a[l]=O,g=v+1,v=f.indexOf("/",g)}let S=a[l];if(S===void 0)throw Error(`Unable to resolve file parent for "${f}"`);let C=f.slice(g),y=o.get(C);if(y===void 0)y=s.length,o.set(C,y),s.push(C);if(r.push({depthAndFlags:Ae(n+1,0),nameId:y,parentId:S,subtreeNodeCount:1,visibleSubtreeCount:1}),g!==c.length)c=f.substring(0,g),d=n;t=f}if(a.length=l+1,t!=null)this.lastPreparedPath=Qt(t);this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;if(this.hasDeferredDirectoryIndexes)E(this.instrumentation,"store.builder.buildDirectoryIndexes",()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1;else if(!t)E(this.instrumentation,"store.builder.computeSubtreeCounts",()=>this.computeSubtreeCounts(0));return{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(e,t){if(this.hasDeferredDirectoryIndexes)this.buildDirectoryIndexes(),this.hasDeferredDirectoryIndexes=!1;if(this.lastPreparedPath!=null){if(e.path===this.lastPreparedPath.path)throw Error(`Duplicate path: "${e.path}"`);if(t){if((this.options.sort==="default"?fa(this.lastPreparedPath,e,this.segmentSortKeyCache):ya(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}}let n=this.lastPreparedPath,r=ga(e),i=n==null?0:ga(n),o=n==null?0:Rh(n.segments,e.segments),s=Math.min(o,r,i);this.directoryStack.length=s+1;for(let l=s;l<r;l++){let c=this.directoryStack[this.directoryStack.length-1];if(c===void 0)throw Error("Directory stack underflow while building the path store");let d=t?this.getOrCreateDirectoryChild(c,e.segments[l]):this.createDirectoryChild(c,e.segments[l]);this.directoryStack.push(d)}if(e.isDirectory){let l=this.directoryStack[this.directoryStack.length-1];if(l===void 0)throw Error(`Unable to resolve directory node for "${e.path}"`);this.promoteDirectoryToExplicit(l,e.path),this.lastPreparedPath=e;return}let a=this.directoryStack[this.directoryStack.length-1];if(a===void 0)throw Error(`Unable to resolve file parent for "${e.path}"`);if(t)this.createFileChild(a,e.basename,e.path);else this.createFileChildUnchecked(a,e.basename);this.lastPreparedPath=e}recordCreatedDirectoryPath(e){if(!this.createdDirectoriesAllExpanded||this.initialExpandedPathSet==null)return;if(this.createdDirectoryCount+=1,!this.initialExpandedPathSet.has(e))this.createdDirectoriesAllExpanded=!1}createFileChild(e,t,n){let r=rt(this.segmentTable,t),i=this.getDirectoryIndex(e),o=i.childIdByNameId;if(o!=null){if(o.get(r)!==void 0)throw Error(`Path collides with an existing entry: "${n}"`)}let s=this.nodes[e];if(s===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;if(this.nodes.push({depthAndFlags:Ae(Ve(s)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),o!=null)o.set(r,a);return gn(i,a),a}createFileChildUnchecked(e,t){let n=rt(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let o=this.nodes.length;if(this.nodes.push({depthAndFlags:Ae(Ve(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null)r.childIdByNameId.set(n,o);return gn(r,o),o}getOrCreateDirectoryChild(e,t){let n=rt(this.segmentTable,t),r=this.getDirectoryIndex(e);if(r.childIdByNameId!=null){let s=r.childIdByNameId.get(n);if(s!==void 0){let a=this.nodes[s];if(a!=null&&!D(a))throw Error(`Path collides with an existing file while creating directory "${t}"`);return s}}let i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let o=this.nodes.length;if(this.nodes.push({depthAndFlags:Ae(Ve(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null)r.childIdByNameId.set(n,o);return gn(r,o),this.directories.set(o,Gt()),o}createDirectoryChild(e,t){let n=rt(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let o=this.nodes.length;if(this.nodes.push({depthAndFlags:Ae(Ve(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null)r.childIdByNameId.set(n,o);return gn(r,o),this.directories.set(o,Gt()),o}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!D(n))throw Error(`Path is not a directory: "${t}"`);if(ue(n,1))throw Error(`Duplicate path: "${t}"`);vn(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,lo());let r=-1,i=null;for(let o=1;o<t.length;o++){let s=t[o];if(s==null)continue;if(D(s)){let l=lo();n.set(o,l),r=o,i=l}let a;if(s.parentId===r)a=i;else a=n.get(s.parentId),r=s.parentId,i=a??null;if(a!=null)a.childIds.push(o)}if(e)return;for(let o=t.length-1;o>=1;o--){let s=t[o];if(s==null)continue;let a=t[s.parentId];if(a!=null)a.subtreeNodeCount+=s.subtreeNodeCount,a.visibleSubtreeCount+=s.visibleSubtreeCount}}buildDirectoryIndexes(){let e=this.nodes;for(let t=1;t<e.length;t++){let n=e[t];if(n==null)continue;if(D(n))this.directories.set(t,Gt());let r=this.directories.get(n.parentId);if(r!=null){if(r.childIdByNameId!=null)r.childIdByNameId.set(n.nameId,t);gn(r,t)}}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!D(t))return t.subtreeNodeCount=1,t.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(e),r=1;for(let i of n.childIds)r+=this.computeSubtreeCounts(i);return Yt(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function ka(e,t="closed",n=null){let r=Ah(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 _a(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function Ah(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 Ea(e,t){if(ue(t,2))return!0;if(e.defaultExpansion==="open")return!0;if(e.defaultExpansion==="closed")return!1;return Ve(t)<=e.defaultExpansion}function Ce(e,t,n=e.snapshot.nodes[t]){if(n==null||!D(n))return!1;if(e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides)return!0;if(e.collapsedDirectoryIds.has(t))return!1;if(e.expandedDirectoryIds.has(t))return!0;return Ea(e,n)}function At(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!D(r))return;let i=Ea(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 Ta(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 Nt(e,t){return e.directoryLoadInfoById.get(t)?.state??"loaded"}function Pa(e,t){let n=Ta(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 Ra(e,t){let n=Ta(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state="unloaded"}function Da(e,t,n){let r=e.directoryLoadInfoById.get(t);if(r==null||r.activeAttemptId!==n)return!1;return r.activeAttemptId=null,r.errorMessage=null,r.state="loaded",!0}function Ma(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function Aa(e,t,n,r){let i=e.directoryLoadInfoById.get(t);if(i==null||i.activeAttemptId!==n)return!1;return i.activeAttemptId=null,i.errorMessage=r??null,i.state="error",!0}function Na(e,t){e.directoryLoadInfoById.delete(t)}function Va(e,t,n){let r=n,i=e.listeners.get(t);if(i!=null)i.add(r);else e.listeners.set(t,new Set([r]));return()=>{let o=e.listeners.get(t);if(o==null)return;if(o.delete(r),o.size===0)e.listeners.delete(t)}}function Oa(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:"add",path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function za(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:"remove",path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function qa(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:"move",projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function Wa(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:"expand",path:e.path,projectionChanged:!0,visibleCountDelta:null}}function ja(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:"collapse",path:e.path,projectionChanged:!0,visibleCountDelta:null}}function $a(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:"mark-directory-unloaded",path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function Ua(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 Ka(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:e.childEvents.some((t)=>t.canonicalChanged),childEvents:e.childEvents,operation:"apply-child-patch",path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function Ga(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 Ya(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 Xa(e){return{activeNodeCountAfter:e.activeNodeCountAfter,activeNodeCountBefore:e.activeNodeCountBefore,affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],cachedPathEntryCountAfter:e.cachedPathEntryCountAfter,cachedPathEntryCountBefore:e.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:e.idsPreserved,loadInfoEntryCountAfter:e.loadInfoEntryCountAfter,loadInfoEntryCountBefore:e.loadInfoEntryCountBefore,mode:e.mode,operation:"cleanup",projectionChanged:e.projectionChanged,reclaimedCachedPathEntryCount:e.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:e.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:e.reclaimedNodeSlotCount,reclaimedSegmentCount:e.reclaimedSegmentCount,segmentCountAfter:e.segmentCountAfter,segmentCountBefore:e.segmentCountBefore,totalNodeSlotCountAfter:e.totalNodeSlotCountAfter,totalNodeSlotCountBefore:e.totalNodeSlotCountBefore,visibleCountDelta:null}}function Ne(e,t,n){return{...n,visibleCountDelta:po(e)-t}}function Qa(e,t){let n=po(e),r=_a();e.transactionStack.push(r);try{t()}catch(i){throw Fa(e,r,!1),i}Fa(e,r,!0,po(e)-n)}function Xe(e,t){let n=e.instrumentation;if(n==null){La(e,t);return}E(n,"store.events.record",()=>La(e,t))}function La(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){fo(e,t);return}n.events.push(t),Fh(n,t)}function Fa(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 a=e.instrumentation;if(a==null)Ba(i,t);else E(a,"store.events.batch.merge",()=>Ba(i,t));return}let o=Nh(t,r),s=e.instrumentation;if(s==null){fo(e,o);return}E(s,"store.events.batch.commit",()=>fo(e,o))}function Nh(e,t){return{affectedAncestorIds:[...e.affectedAncestorIds],affectedNodeIds:[...e.affectedNodeIds],canonicalChanged:e.events.some((n)=>n.canonicalChanged),events:[...e.events],operation:"batch",projectionChanged:e.events.some((n)=>n.projectionChanged),visibleCountDelta:t}}function Lh(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function Ba(e,t){for(let n of t.events)e.events.push(n);Lh(e,t)}function Fh(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function fo(e,t){let n=e.instrumentation;if(n==null){Ha(e,t);return}E(n,"store.events.emit",()=>Ha(e,t))}function Ha(e,t){e.listeners.get(t.operation)?.forEach((n)=>n(t)),e.listeners.get("*")?.forEach((n)=>n(t))}function po(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function yt(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];if(n==null||!D(n)||ue(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 o=e.snapshot.nodes[i];if(o==null||!D(o))return null;return i}function bt(e,t){let n=t;while(!0){let r=yt(e,n);if(r==null)return n;n=r}}function bn(e,t){let n=[t],r=t;while(!0){let i=yt(e,r);if(i==null)return n;n.push(i),r=i}}function ti(e,t){let n=t==null?e.snapshot.rootId:Le(e,t);if(n==null)return[];return Hh(e,n)}function go(e,t){let n=Qt(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=Lt(e,Kh(e,r)),{createdNodeIds:o,directoryId:s}=Vh(e,r),a=new Set(o),l=s;if(n.isDirectory){let d=M(e,s);if(ue(d,1))throw Error(`Path already exists: "${t}"`);vn(d,1),e.pathCacheByNodeId.set(s,{path:t,version:e.pathCacheVersion}),a.add(s)}else l=zh(e,s,n.basename),a.add(l);Ft(e,s);let c=Lt(e,s);return Oa({affectedAncestorIds:We(e,l),affectedNodeIds:[...a],path:t,projectionChanged:il(i,c)})}function vo(e,t,n){let r=Le(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=M(e,r);if(ue(i,2))throw Error("The root node cannot be removed");if(D(i)&&ae(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let o=i.parentId,s=Lt(e,o),a=rl(e,r);wo(e,o,r,i.nameId),Io(e,o),Ft(e,o);let l=Lt(e,o);return za({affectedAncestorIds:We(e,o),affectedNodeIds:a,path:t,projectionChanged:il(s,l),recursive:n.recursive===!0})}function yo(e,t,n,r){let i=Le(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let o=M(e,i);if(ue(o,2))throw Error("The root node cannot be moved");let s=r.collision??"error",a=$h(e,i,n),l=Lt(e,o.parentId),c=Lt(e,a.parentId),d=qe(e.snapshot.segmentTable,o.nameId),f=rt(e.snapshot.segmentTable,a.basename);if(a.parentId===o.parentId&&d===a.basename)return null;if(D(o)&&Yh(e,i,a.parentId))throw Error("Cannot move a directory into one of its descendants");let u=Dt(e.snapshot.nodes,ae(e,a.parentId)).get(f),m=a.existingNodeId??u??null;if(m!=null&&m!==i){if(Uh(e,m,s,sr(o))==="skip")return null}let p=o.parentId;if(wo(e,p,i,o.nameId),o.parentId=a.parentId,o.nameId=f,e.pathCacheByNodeId.delete(i),sl(e,i),bo(e,a.parentId,i),Io(e,p),e.pathCacheVersion++,Ft(e,p),a.parentId!==p)Ft(e,a.parentId);let g=Lt(e,p),v=Lt(e,a.parentId);return qa({affectedAncestorIds:[...new Set([...We(e,p),...We(e,a.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:ol([l,c],[g,v]),to:ne(e,i)})}function Bh(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function Ja(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function ne(e,t){let n=M(e,t),r=Bh(e,t);if(r!=null)return r;if(ue(n,2))return Ja(e,t,"");let i=ne(e,n.parentId),o=qe(e.snapshot.segmentTable,n.nameId),s=i.length===0?o:`${i}${o}`;return Ja(e,t,D(n)?`${s}/`:s)}function Ft(e,t){let n=e.instrumentation;if(n==null){el(e,t);return}E(n,"store.recomputeCountsUpwardFrom",()=>el(e,t))}function ur(e,t){let n=[[t,0]],{nodes:r,directories:i}=e.snapshot;while(n.length>0){let o=n[n.length-1],s=o[0],a=r[s];if(a==null||!D(a)){mo(e,s,a,!0),n.pop();continue}let l=i.get(s);if(l==null||o[1]>=l.childIds.length){mo(e,s,a,!0),n.pop();continue}let c=l.childIds[o[1]++];n.push([c,0])}}function We(e,t){let n=[],r=t;while(r!=null){let i=M(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=i.parentId}return n}function Le(e,t){if(t.length===0)return e.snapshot.rootId;let n=Qr(t);return nl(e,n.segments,n.requiresDirectory)}function nl(e,t,n){let r=e.snapshot.rootId;for(let o of t){let s=e.snapshot.segmentTable.idByValue.get(o);if(s===void 0)return null;let a=ae(e,r),l=Dt(e.snapshot.nodes,a).get(s);if(l===void 0)return null;r=l}let i=M(e,r);if(n&&!D(i))return null;return r}function ae(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 M(e,t){let n=e.snapshot.nodes[t];if(n===void 0||ue(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function Hh(e,t){let n=e.snapshot.nodes[t];if(n===void 0||ue(n,4))return[];if(!D(n))return[ne(e,t)];if(ae(e,t).childIds.length===0)return ue(n,1)&&!ue(n,2)?[ne(e,t)]:[];let r=[],i=[{childIndex:0,nodeId:t}];while(i.length>0){let o=i[i.length-1];if(o==null)break;let s=e.snapshot.nodes[o.nodeId];if(s===void 0||ue(s,4)){i.pop();continue}if(!D(s)){r.push(ne(e,o.nodeId)),i.pop();continue}let a=ae(e,o.nodeId);if(a.childIds.length===0){if(ue(s,1)&&!ue(s,2))r.push(ne(e,o.nodeId));i.pop();continue}let l=a.childIds[o.childIndex];if(l==null){i.pop();continue}o.childIndex++,i.push({childIndex:0,nodeId:l})}return r}function Vh(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let o=rt(e.snapshot.segmentTable,i),s=ae(e,r),a=Dt(e.snapshot.nodes,s).get(o);if(a!==void 0){if(!D(M(e,a)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=a;continue}r=Oh(e,r,o),n.push(r)}return{createdNodeIds:n,directoryId:r}}function Oh(e,t,n){let r=M(e,t),i=e.snapshot.nodes.length;if(e.snapshot.nodes.push({depthAndFlags:Ae(Ve(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,Gt()),bo(e,t,i),e.collapseNewDirectoriesByDefault)e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0;return e.activeNodeCount++,i}function zh(e,t,n){let r=rt(e.snapshot.segmentTable,n),i=ae(e,t);if(Dt(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${Xh(e,t,n)}"`);let o=M(e,t),s=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:Ae(Ve(o)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),bo(e,t,s),e.activeNodeCount++,s}function qh(e,t,n){let r=0,i=t.childIds.length;while(r<i){let o=r+i>>>1,s=t.childIds[o];if(s==null){i=o;continue}if(Wh(e,n,s)<0)i=o;else r=o+1}return r}function bo(e,t,n){let r=ae(e,t),i=M(e,n);Dt(e.snapshot.nodes,r).set(i.nameId,n),Gr(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let o=qh(e,r,n);r.childIds.splice(o,0,n),co(r,o),Mt(e.snapshot.nodes,r)}function wo(e,t,n,r){let i=ae(e,t),o=mn(i),s=o.get(n)??-1;Dt(e.snapshot.nodes,i).delete(r),o.delete(n);let a=e.snapshot.nodes[n];if(a!=null)Gr(i,n,-a.subtreeNodeCount,-a.visibleSubtreeCount);if(s>=0)i.childIds.splice(s,1),co(i,s),Mt(e.snapshot.nodes,i)}function Wh(e,t,n){let r=e.snapshot.options.sort;if(r==="default")return jh(e,t,n);return r(Za(e,t),Za(e,n))}function jh(e,t,n){let r=M(e,t),i=M(e,n),o=D(r);if(o!==D(i))return o?-1:1;let s=lr(cr(e.snapshot.segmentTable,r.nameId),cr(e.snapshot.segmentTable,i.nameId));if(s!==0)return s;let a=qe(e.snapshot.segmentTable,r.nameId),l=qe(e.snapshot.segmentTable,i.nameId);if(a!==l)return a<l?-1:1;return t<n?-1:1}function Za(e,t){let n=M(e,t),r=ne(e,t),i=D(n),o=i?r.slice(0,-1):r;return{basename:qe(e.snapshot.segmentTable,n.nameId),depth:Ve(n),isDirectory:i,path:r,segments:o.length===0?[]:o.split("/")}}function $h(e,t,n){let r=M(e,t),i=Le(e,n);if(i!=null){let c=M(e,i);if(D(c))return{basename:qe(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let d=Qr(n).segments;return{basename:d[d.length-1]??"",existingNodeId:i,parentId:c.parentId}}let o=Qr(n),s=o.segments[o.segments.length-1]??"",a=o.segments.slice(0,-1),l=a.length===0?e.snapshot.rootId:nl(e,a,!0);if(l==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:s,existingNodeId:null,parentId:l}}function Uh(e,t,n,r){if(n==="skip")return"skip";if(n==="error")throw Error(`Destination already exists: "${ne(e,t)}"`);let i=M(e,t);if(sr(i)!==r)throw Error("replace collision requires the same source and destination kinds");if(D(i)&&ae(e,t).childIds.length>0)throw Error("replace collision does not support non-empty directories");let{parentId:o,nameId:s}=i;return rl(e,t),wo(e,o,t,s),Io(e,o),Ft(e,o),"handled"}function rl(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];while(r.length>0){let i=r.pop();if(i==null)break;let o=M(e,i.nodeId);if(i.visitedChildren||!D(o)){if(D(o))e.snapshot.directories.delete(i.nodeId);if(vn(o,4),e.pathCacheByNodeId.delete(i.nodeId),e.collapsedDirectoryIds.delete(i.nodeId))e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0;e.expandedDirectoryIds.delete(i.nodeId),Na(e,i.nodeId),e.activeNodeCount--,n.push(i.nodeId);continue}r.push({nodeId:i.nodeId,visitedChildren:!0});let s=ae(e,i.nodeId);for(let a=s.childIds.length-1;a>=0;a--){let l=s.childIds[a];if(l!=null)r.push({nodeId:l,visitedChildren:!1})}}return n}function Io(e,t){let n=t;while(n!=null){let r=M(e,n);if(!D(r)||ue(r,2))return;if(ae(e,n).childIds.length>0)return;vn(r,1),n=r.parentId===n?null:r.parentId}}function Kh(e,t){let n=e.snapshot.rootId;for(let r of t){let i=e.snapshot.segmentTable.idByValue.get(r);if(i==null)break;let o=Dt(e.snapshot.nodes,ae(e,n)).get(i);if(o==null)break;if(!D(M(e,o)))break;n=o}return n}function Lt(e,t){let n=Gh(e,t);if(n==null)return null;let r=bt(e,n),i=M(e,r),o=n===r?null:bn(e,n).map((s)=>ne(e,s));return JSON.stringify({flattenedSegmentPaths:o,hasChildren:ae(e,r).childIds.length>0,path:ne(e,r),terminalKind:sr(i)})}function il(e,t){return ol([e],[t])}function ol(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 Gh(e,t){let n=t;while(n!=null){let r=M(e,n);if(!D(r)||ue(r,2))return null;if(!Ce(e,n,r))return n;n=r.parentId}return null}function sl(e,t){let n=M(e,t);if(aa(n,(t===e.snapshot.rootId?-1:Ve(M(e,n.parentId)))+1),!D(n))return;let r=ae(e,t);for(let i of r.childIds)sl(e,i)}function Yh(e,t,n){let r=n;while(r!=null){if(r===t)return!0;let i=M(e,r);if(r===e.snapshot.rootId)return!1;r=i.parentId}return!1}function mo(e,t,n=M(e,t),r=!1){let i=e.instrumentation;if(i==null){tl(e,t,n,r);return}E(i,"store.recomputeNodeCounts",()=>tl(e,t,n,r))}function el(e,t){let n=t;while(n!=null){let r=M(e,n),i=r.subtreeNodeCount,o=r.visibleSubtreeCount;if(mo(e,n,r),n===e.snapshot.rootId)return;let s=r.subtreeNodeCount-i,a=r.visibleSubtreeCount-o,l=r.parentId;if(s!==0||a!==0)Gr(ae(e,l),n,s,a);n=l}}function tl(e,t,n,r){if(!D(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=ae(e,t);if(r){let a=e.instrumentation;if(a==null)Yt(e.snapshot.nodes,i);else E(a,"store.recomputeNodeCounts.rebuildChildAggregates",()=>Yt(e.snapshot.nodes,i))}let o=1+i.totalChildSubtreeNodeCount,s=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=o,ue(n,2)){n.visibleSubtreeCount=s;return}n.visibleSubtreeCount=yt(e,t)!=null?s:Ce(e,t,n)?1+s:1}function Xh(e,t,n){let r=ne(e,t);return r.length===0?n:`${r}${n}`}function wn(e){return e!=null&&!ue(e,4)}function ni(e,t){let n=e.snapshot.nodes[t];if(!wn(n)||!D(n)||ue(n,2))return null;return n}function Qh(e){let t=0;for(let[n,r]of e.pathCacheByNodeId){if(r.version!==e.pathCacheVersion)continue;if(!wn(e.snapshot.nodes[n]))continue;t+=1}return t}function Jh(e){return Math.max(0,e.valueById.length-1)}function al(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:Qh(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:Jh(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function Zh(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 ll(e){let t=[],n=[];for(let r of e.collapsedDirectoryIds)if(ni(e,r)!=null)t.push(ne(e,r));for(let r of e.expandedDirectoryIds)if(ni(e,r)!=null)n.push(ne(e,r));return{collapsedPaths:t,expandedPaths:n}}function cl(e){let t=[];for(let[n,r]of e.directoryLoadInfoById){if(ni(e,n)==null||Nt(e,n)==="loaded")continue;t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:ne(e,n)})}return t}function ul(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(let n of t.expandedPaths){let r=Le(e,n);if(r==null)continue;At(e,r,!0,M(e,r))}for(let n of t.collapsedPaths){let r=Le(e,n);if(r==null)continue;At(e,r,!1,M(e,r))}}function dl(e,t){e.directoryLoadInfoById.clear();for(let n of t){let r=Le(e,n.path);if(r==null)continue;if(ni(e,r)==null)continue;e.directoryLoadInfoById.set(r,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function ef(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:"",version:e.pathCacheVersion})}function tf(e){let t=e.snapshot.segmentTable,n=Jr();for(let r of e.snapshot.nodes){if(!wn(r))continue;if(ue(r,2)){r.nameId=0;continue}r.nameId=rt(n,qe(t,r.nameId))}e.snapshot.segmentTable=n}function nf(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!wn(r)||!D(r)){e.snapshot.directories.delete(t);continue}let i=n.childIds.filter((o)=>{let s=e.snapshot.nodes[o];return wn(s)&&s.parentId===t});n.childIds=i,n.childIdByNameId=new Map(i.map((o)=>[M(e,o).nameId,o])),n.childPositionById=new Map(i.map((o,s)=>[o,s])),Yt(e.snapshot.nodes,n)}}function rf(e){let t=e.snapshot.nodes.length-1;while(t>e.snapshot.rootId){let n=e.snapshot.nodes[t];if(wn(n))break;t-=1}e.snapshot.nodes.length=t+1}function of(e){let t=ll(e),n=cl(e);E(e.instrumentation,"store.cleanup.stable.clearPathCaches",()=>ef(e)),E(e.instrumentation,"store.cleanup.stable.rebuildSegmentTable",()=>tf(e)),E(e.instrumentation,"store.cleanup.stable.rebuildDirectoryIndexes",()=>nf(e)),E(e.instrumentation,"store.cleanup.stable.trimTrailingRemovedNodeSlots",()=>rf(e)),E(e.instrumentation,"store.cleanup.stable.restoreExpansionOverrides",()=>ul(e,t)),E(e.instrumentation,"store.cleanup.stable.restoreDirectoryLoadInfos",()=>dl(e,n)),E(e.instrumentation,"store.cleanup.stable.recomputeCounts",()=>ur(e,e.snapshot.rootId))}function sf(e){let t=ll(e),n=cl(e),r=E(e.instrumentation,"store.cleanup.aggressive.listPaths",()=>ti(e)),i=ca({...e.snapshot.options},e.instrumentation),o=E(e.instrumentation,"store.cleanup.aggressive.rebuildSnapshot",()=>{let s=new ei(i);return s.appendPaths(r),s.finish()});e.snapshot=o,e.activeNodeCount=o.nodes.length-1,e.pathCacheByNodeId=new Map([[o.rootId,{path:"",version:0}]]),e.pathCacheVersion=0,E(e.instrumentation,"store.cleanup.aggressive.restoreExpansionOverrides",()=>ul(e,t)),E(e.instrumentation,"store.cleanup.aggressive.restoreDirectoryLoadInfos",()=>dl(e,n)),E(e.instrumentation,"store.cleanup.aggressive.recomputeCounts",()=>ur(e,e.snapshot.rootId))}function hl(e){for(let t of e.directoryLoadInfoById.values())if(t.state==="loading"&&t.activeAttemptId!=null)return!0;return!1}function fl(e,t){let n=al(e);if(t==="stable")E(e.instrumentation,"store.cleanup.stable",()=>of(e));else E(e.instrumentation,"store.cleanup.aggressive",()=>sf(e));let r=al(e);return Zh(t,t==="stable",n,r)}var af=64;function lf(e,t){let n=t+2;if(n<=e.length)return e;let r=e.length;while(r<n)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(e),i}function xe(e){return M(e,e.snapshot.rootId).visibleSubtreeCount}function vl(e,t,n,r){let i=M(e,t.terminalNodeId),o=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+o-1)}function cf(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:dr(e,t.cursor),setSize:t.setSize,subtreeEndIndex:vl(e,t.cursor,t.index,n)}}function yl(e,t,n,r,i,o){let s=ae(e,t),{childIndex:a,childVisibleIndex:l,localVisibleIndex:c}=Yr(e.snapshot.nodes,s,n),d=s.childIds[a];if(d==null)throw Error(`Visible index ${String(n)} is out of range`);return uf(e,d,c,r+l,i+1,a,s.childIds.length,o)}function uf(e,t,n,r,i,o,s,a){if(!D(M(e,t))){if(n===0)return{ancestors:a,cursor:{headNodeId:t,terminalNodeId:t,visibleDepth:i},index:r,posInSet:o,setSize:s};throw Error(`Visible index ${String(n)} is out of range for file`)}let l=_l(e,t,i);if(n===0)return{ancestors:a,cursor:l,index:r,posInSet:o,setSize:s};let c=M(e,l.terminalNodeId);if(!D(c)||!Ce(e,l.terminalNodeId,c))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return yl(e,l.terminalNodeId,n-1,r+1,l.visibleDepth,[...a,{cursor:l,index:r,posInSet:o,setSize:s}])}function bl(e,t){let n=xe(e);if(t<0||t>=n)return null;let r=yl(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map((s)=>ne(e,s.cursor.terminalNodeId)),o=null;return{ancestorPaths:i,get ancestorRows(){if(o!=null)return o;let s=[],a=[];for(let l of r.ancestors){let c=cf(e,l,n,[...a]);s.push(c),a.push(c.row.path)}return o=s,o},index:r.index,posInSet:r.posInSet,row:dr(e,r.cursor),setSize:r.setSize,subtreeEndIndex:vl(e,r.cursor,r.index,n)}}function wl(e,t,n){let r=e.instrumentation,i=xe(e);if(i<=0||n<t)return[];let o=Math.max(0,Math.min(t,i-1)),s=Math.max(o,Math.min(n,i-1));if(r==null){if(o===0)return ff(e,s+1);let f=[],u=pl(e,o);for(let m=o;m<=s&&u!=null;m++){let p=dr(e,u);f.push(p),u=ml(e,u)}return f}let a=[],l=0,c=0,d=E(r,"store.getVisibleSlice.selectFirstRow",()=>pl(e,o));for(let f=o;f<=s&&d!=null;f++){let u=E(r,"store.getVisibleSlice.materializeRow",()=>dr(e,d));if(a.push(u),u.isFlattened)l++,c+=u.flattenedSegments?.length??0;d=E(r,"store.getVisibleSlice.advanceCursor",()=>ml(e,d))}return yn(r,"workload.visibleRowsRead",a.length),yn(r,"workload.flattenedRowsRead",l),yn(r,"workload.flattenedSegmentsRead",c),a}function Co(e,t=xe(e)){let n=e.instrumentation;if(n==null)return gl(e,t);return E(n,"store.getVisibleTreeProjection",()=>gl(e,t))}function Il(e){return hf(Co(e))}function Sl(e,t){let n=Le(e,t);if(n==null||n===e.snapshot.rootId)return null;if(D(M(e,n))&&bt(e,n)!==n)return null;let r=0,i=n,{nodes:o,rootId:s}=e.snapshot;while(i!==s){let a=M(e,i).parentId,l=ae(e,a),c=mn(l).get(i);if(c==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=oa(o,l,c),a!==s){let d=M(e,a),f=yt(e,a);if(!Ce(e,a,d)&&f!==i)return null;if(bt(e,a)===a)r+=1}i=a}return r}function Cl(e,t){let n=Le(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=M(e,n);if(!D(r))throw Error(`Path is not a directory: "${t}"`);if(Ce(e,n,r))return null;return At(e,n,!0,r),Ft(e,n),Wa({affectedAncestorIds:We(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})}function xl(e,t){let n=Le(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=M(e,n);if(!D(r))throw Error(`Path is not a directory: "${t}"`);if(!Ce(e,n,r))return null;return At(e,n,!1,r),Ft(e,n),ja({affectedAncestorIds:We(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})}function pl(e,t){if(t<0||t>=xe(e))return null;return kl(e,e.snapshot.rootId,t,-1)}function kl(e,t,n,r){let i=ae(e,t),o=e.instrumentation,{childIndex:s,localVisibleIndex:a}=o==null?Yr(e.snapshot.nodes,i,n):E(o,"store.getVisibleSlice.selectChildIndex",()=>Yr(e.snapshot.nodes,i,n)),l=i.childIds[s];if(l!=null)return So(e,l,a,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function So(e,t,n,r){if(!D(M(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=_l(e,t,r);if(n===0)return i;let o=M(e,i.terminalNodeId);if(!D(o)||!Ce(e,i.terminalNodeId,o))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return kl(e,i.terminalNodeId,n-1,i.visibleDepth)}function _l(e,t,n){if(!D(M(e,t)))return{headNodeId:t,terminalNodeId:t,visibleDepth:n};if(e.instrumentation==null)return{headNodeId:t,terminalNodeId:bt(e,t),visibleDepth:n};return{headNodeId:t,terminalNodeId:E(e.instrumentation,"store.getVisibleSlice.flatten.resolveTerminalDirectory",()=>bt(e,t)),visibleDepth:n}}function df(e,t){let n=M(e,t);if(!D(n))return!0;let r=n.parentId;if(r===e.snapshot.rootId)return!0;return yt(e,r)!==t}function ml(e,t){let n=M(e,t.terminalNodeId);if(D(n)){let o=ae(e,t.terminalNodeId);if(Ce(e,t.terminalNodeId,n)&&o.childIds.length>0){let s=o.childIds[0];return s==null?null:So(e,s,0,t.visibleDepth+1)}}let{terminalNodeId:r,visibleDepth:i}=t;while(!0){let o=M(e,r);if(r===e.snapshot.rootId)return null;let s=o.parentId,a=ae(e,s),l=mn(a).get(r)??-1;if(l<0)throw Error(`Child ${String(r)} was not found in its parent index`);let c=a.childIds[l+1]??null;if(c!=null)return So(e,c,0,i);if(df(e,r))i--;r=s}}function hf(e){let t=e.paths.length,n=Array(t);for(let r=0;r<t;r+=1){let i=e.getParentIndex(r);n[r]={index:r,parentPath:i>=0?e.paths[i]??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 gl(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),o=new Int32Array(t),s=new Int32Array(af);s.fill(-1);let a=0,{nodes:l,directories:c,segmentTable:d}=e.snapshot,f=[[c.get(e.snapshot.rootId),0,-1,""]],u=e.snapshot.options.flattenEmptyDirectories,m=e.pathCacheByNodeId,p=e.pathCacheVersion,g=d.valueById;while(f.length>0&&a<t){let w=f[f.length-1],x=w[0];if(w[1]>=x.childIds.length){f.pop();continue}let P=w[1],O=x.childIds[w[1]++],pe=l[O],G=w[2]+1,me=w[3];s=lf(s,G);let j,N=O;if(!D(pe)){let W=m.get(O);j=W!=null&&W.version===p?W.path:`${me}${g[pe.nameId]}`}else N=u?bt(e,O):O,j=N===O?`${me}${g[pe.nameId]}/`:ne(e,N);r[a]=s[G],n[a]=j,i[a]=P,o[a]=x.childIds.length,s[G+1]=a,a+=1;let re=l[N];if(re!=null&&D(re)&&Ce(e,N,re))f.push([c.get(N),0,G,j])}if(a<t)n.length=a;let v=r.subarray(0,a),S=i.subarray(0,a),C=o.subarray(0,a),y=null;return{getParentIndex(w){return w<0||w>=a?-1:v[w]??-1},paths:n,posInSetByIndex:S,setSizeByIndex:C,get visibleIndexByPath(){if(y==null){y=new Map;for(let w=0;w<a;w+=1)y.set(n[w]??"",w)}return y}}}function ff(e,t){let n=Array(t),r=0,{nodes:i,directories:o,segmentTable:s}=e.snapshot,a=[[o.get(e.snapshot.rootId),0,-1]],l=s.valueById,c=e.snapshot.options.flattenEmptyDirectories,d=e.pathCacheByNodeId,f=e.pathCacheVersion;while(a.length>0&&r<t){let u=a[a.length-1],m=u[0];if(u[1]>=m.childIds.length){a.pop();continue}let p=m.childIds[u[1]++],g=i[p],v=u[2]+1;if(!D(g)){let w=d.get(p);n[r++]={depth:v,flattenedSegments:void 0,hasChildren:!1,id:p,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:"file",loadState:void 0,name:l[g.nameId],path:w!=null&&w.version===f?w.path:ne(e,p)};continue}let S=c?bt(e,p):p,C={headNodeId:p,terminalNodeId:S,visibleDepth:v};n[r++]=dr(e,C);let y=i[S];if(y!=null&&D(y)&&Ce(e,S,y))a.push([o.get(S),0,v])}if(r<t)n.length=r;return n}function dr(e,t){let n=M(e,t.terminalNodeId),r=D(n)?pf(e,t):null,i=ne(e,t.terminalNodeId),o=qe(e.snapshot.segmentTable,n.nameId),s=D(n)&&ae(e,t.terminalNodeId).childIds.length>0,a=t.headNodeId!==t.terminalNodeId,l=e.instrumentation,c=a?l==null?bn(e,t.headNodeId).map((d)=>{let f=M(e,d);return{isTerminal:d===t.terminalNodeId,name:qe(e.snapshot.segmentTable,f.nameId),nodeId:d,path:ne(e,d)}}):E(l,"store.getVisibleSlice.flatten.collectSegments",()=>bn(e,t.headNodeId).map((d)=>{let f=M(e,d);return{isTerminal:d===t.terminalNodeId,name:qe(e.snapshot.segmentTable,f.nameId),nodeId:d,path:ne(e,d)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:c,hasChildren:s,id:t.terminalNodeId,isExpanded:D(n)&&Ce(e,t.terminalNodeId,n),isFlattened:a,isLoading:r==="loading",kind:D(n)?"directory":"file",loadState:r==null||r==="loaded"?void 0:r,name:o,path:i}}function pf(e,t){if(t.headNodeId===t.terminalNodeId)return Nt(e,t.terminalNodeId);let n=bn(e,t.headNodeId),r=!1,i=!1;for(let o of n){let s=Nt(e,o);if(s==="loading")return"loading";if(s==="error"){i=!0;continue}if(s==="unloaded")r=!0}if(i)return"error";if(r)return"unloaded";return"loaded"}var El=8;function Tl(e){let{nodes:t,directories:n,rootId:r,options:i}=e,o=t.length,s=new Int32Array(o),a=new Int32Array(o),l=new Int32Array(o),c=new Int32Array(o),d=new Int32Array(o),f=new Int32Array(o),u=new Int32Array(o);for(let v=0;v<o;v+=1){let S=t[v];if(S==null)continue;s[v]=S.parentId,a[v]=S.nameId,l[v]=S.depthAndFlags,c[v]=S.subtreeNodeCount,d[v]=S.visibleSubtreeCount}let m=0;for(let v of n.values())m+=v.childIds.length;let p=new Int32Array(m),g=0;for(let[v,S]of n){let C=S.childIds;f[v]=g,u[v]=C.length;for(let y=0;y<C.length;y+=1)p[g]=C[y],g+=1}return{nodeCount:o,rootId:r,flattenEmptyDirectories:i.flattenEmptyDirectories===!0,parentId:s,nameId:a,depthAndFlags:l,subtreeNodeCount:c,visibleSubtreeCount:d,childStart:f,childCount:u,childIdsFlat:p}}function Pl(e){let{nodeCount:t,rootId:n,flattenEmptyDirectories:r,depthAndFlags:i,subtreeNodeCount:o,visibleSubtreeCount:s,childStart:a,childCount:l,childIdsFlat:c}=e;for(let p=t-1;p>=1;p-=1){if((i[p]&El)===0)continue;let g=a[p],v=l[p],S=0,C=0;for(let w=0;w<v;w+=1){let x=c[g+w];S+=o[x],C+=s[x]}o[p]=1+S;let y;if(r&&v===1)y=(i[c[g]]&El)!==0?C:1+C;else y=1+C;s[p]=y}let d=a[n],f=l[n],u=0,m=0;for(let p=0;p<f;p+=1){let g=c[d+p];u+=o[g],m+=s[g]}o[n]=1+u,s[n]=m}function mf(e){let{directories:t,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:o}=e.snapshot,s=r.flattenEmptyDirectories===!0,a=(m)=>{let p=n[m];if(p==null||!D(p))return;let g=t.get(m);if(g==null)throw Error(`Unknown directory child index for node ${String(m)}`);let v=g.childIds,S=v.length,C=0,y=0;for(let x=0;x<S;x++){let P=v[x];if(P==null)continue;let O=n[P];C+=O.subtreeNodeCount,y+=O.visibleSubtreeCount}if(g.totalChildSubtreeNodeCount=C,g.totalChildVisibleSubtreeCount=y,S>=128)Mt(n,g);p.subtreeNodeCount=1+C;let w;if(s&&S===1){let x=n[v[0]];w=x!=null&&D(x)?y:1+y}else w=1+y;p.visibleSubtreeCount=w};if(o!=null)for(let m=o.length-1;m>=0;m--)a(o[m]);else for(let m=n.length-1;m>=1;m--)a(m);let l=n[i],c=t.get(i);if(l==null||c==null)return;let d=c.childIds,f=0,u=0;for(let m=0;m<d.length;m++){let p=d[m];if(p==null)continue;let g=n[p];f+=g.subtreeNodeCount,u+=g.visibleSubtreeCount}c.totalChildSubtreeNodeCount=f,c.totalChildVisibleSubtreeCount=u,Mt(n,c),l.subtreeNodeCount=1+f,l.visibleSubtreeCount=u}function gf(e){let{directories:t,nodes:n,rootId:r}=e.snapshot,i=Tl(e.snapshot);Pl(i);let{subtreeNodeCount:o,visibleSubtreeCount:s}=i;for(let a=0;a<n.length;a+=1){let l=n[a];if(l==null)continue;l.subtreeNodeCount=o[a],l.visibleSubtreeCount=s[a]}for(let[a,l]of t){let c=l.childIds,d=c.length,f=0,u=0;for(let m=0;m<d;m++){let p=c[m];if(p==null)continue;let g=n[p];f+=g.subtreeNodeCount,u+=g.visibleSubtreeCount}if(l.totalChildSubtreeNodeCount=f,l.totalChildVisibleSubtreeCount=u,a===r||d>=128)Mt(n,l)}}function vf(e){return e.initialExpansion==="open"&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var hr=class e{#e;constructor(t={}){let n=ar(t),r=E(n,"store.builder.create",()=>new ei(t));if(t.preparedInput!=null){let a=Ca(t.preparedInput);if(a!=null)r.appendPresortedPaths(a,xa(t.preparedInput));else r.appendPreparedPaths(Sa(t.preparedInput),!1)}else{let a=t.paths??[];if(t.presorted===!0)r.appendPaths(a);else r.appendPreparedPaths(E(n,"store.preparePathEntries",()=>Zr(a,t)))}let i=E(n,"store.builder.finish",()=>r.finish({skipSubtreeCountPass:!0})),o=E(n,"store.state.detectAllDirectoriesExpanded",()=>(t.initialExpansion??"closed")==="closed"&&r.didMatchAllInitialExpandedPaths());if(this.#e=E(n,"store.state.create",()=>ka(i,o?"open":t.initialExpansion??"closed",n)),o)this.#e.collapseNewDirectoriesByDefault=!0;let s=o?this.#e.snapshot.directories.size-1:E(n,"store.state.initializeExpandedPaths",()=>this.initializeExpandedPaths(t.initialExpandedPaths));if(o||vf(t)||(t.initialExpansion??"closed")==="closed"&&s===this.#e.snapshot.directories.size-1||(t.initialExpandedPaths?.length??0)>0&&E(n,"store.state.checkAllDirectoriesExpanded",()=>this.hasAllDirectoriesExpanded()))if(t.useSoaCountSweep===!0)E(n,"store.state.initializeOpenVisibleCountsViaSoa",()=>gf(this.#e));else E(n,"store.state.initializeOpenVisibleCounts",()=>mf(this.#e));else E(n,"store.state.recomputeCounts",()=>ur(this.#e,this.#e.snapshot.rootId))}static preparePaths(t,n={}){return ba(t,n)}static prepareInput(t,n={}){return wa(t,n)}static preparePresortedInput(t){return Ia(t)}list(t){return E(this.#e.instrumentation,"store.list",()=>ti(this.#e,t))}add(t){E(this.#e.instrumentation,"store.add",()=>{let n=xe(this.#e);Xe(this.#e,Ne(this.#e,n,go(this.#e,t)))})}remove(t,n={}){E(this.#e.instrumentation,"store.remove",()=>{let r=xe(this.#e);Xe(this.#e,Ne(this.#e,r,vo(this.#e,t,n)))})}move(t,n,r={}){E(this.#e.instrumentation,"store.move",()=>{let i=xe(this.#e),o=yo(this.#e,t,n,r);if(o!=null)Xe(this.#e,Ne(this.#e,i,o))})}batch(t){Qa(this.#e,()=>{if(typeof t==="function"){t(this);return}for(let n of t)switch(n.type){case"add":this.add(n.path);break;case"remove":this.remove(n.path,{recursive:n.recursive});break;case"move":this.move(n.from,n.to,{collision:n.collision});break}})}getVisibleCount(){return E(this.#e.instrumentation,"store.getVisibleCount",()=>xe(this.#e))}getVisibleSlice(t,n){return E(this.#e.instrumentation,"store.getVisibleSlice",()=>wl(this.#e,t,n))}getVisibleRowContext(t){return E(this.#e.instrumentation,"store.getVisibleRowContext",()=>bl(this.#e,t))}getVisibleTreeProjection(){return Il(this.#e)}getVisibleTreeProjectionData(t){return Co(this.#e,t)}getVisibleIndex(t){return E(this.#e.instrumentation,"store.getVisibleIndex",()=>Sl(this.#e,t))}getPathInfo(t){return E(this.#e.instrumentation,"store.getPathInfo",()=>{let n=Le(this.#e,t);if(n==null)return null;let r=M(this.#e,n);return{depth:Ve(r),kind:D(r)?"directory":"file",path:ne(this.#e,n)}})}isExpanded(t){return E(this.#e.instrumentation,"store.isExpanded",()=>{let n=this.requireDirectoryNodeId(t),r=M(this.#e,n);return Ce(this.#e,n,r)})}expand(t){E(this.#e.instrumentation,"store.expand",()=>{let n=xe(this.#e),r=Cl(this.#e,t);if(r!=null)Xe(this.#e,Ne(this.#e,n,r))})}collapse(t){E(this.#e.instrumentation,"store.collapse",()=>{let n=xe(this.#e),r=xl(this.#e,t);if(r!=null)Xe(this.#e,Ne(this.#e,n,r))})}on(t,n){return Va(this.#e,t,n)}getDirectoryLoadState(t){let n=this.requireDirectoryNodeId(t);return Nt(this.#e,n)}markDirectoryUnloaded(t){E(this.#e.instrumentation,"store.markDirectoryUnloaded",()=>{let n=this.requireDirectoryNodeId(t);if(ae(this.#e,n).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${t}"`);let r=xe(this.#e);Ra(this.#e,n),Xe(this.#e,Ne(this.#e,r,$a({affectedAncestorIds:We(this.#e,n),affectedNodeIds:[n],path:t,projectionChanged:this.isDirectoryProjectionVisible(n)})))})}beginChildLoad(t){return E(this.#e.instrumentation,"store.beginChildLoad",()=>{let n=this.requireDirectoryNodeId(t),r=xe(this.#e),i=Pa(this.#e,n);return Xe(this.#e,Ne(this.#e,r,Ua({affectedAncestorIds:We(this.#e,n),affectedNodeIds:[n],attemptId:i.attemptId,path:t,projectionChanged:this.isDirectoryProjectionVisible(n),reused:i.reused}))),i})}applyChildPatch(t,n){return E(this.#e.instrumentation,"store.applyChildPatch",()=>{let r=this.resolveActiveDirectoryNodeId(t.nodeId);if(r==null||Nt(this.#e,r)!=="loading"||!Ma(this.#e,r,t.attemptId))return!1;let i=ne(this.#e,r);this.validateChildPatch(i,n);let o=xe(this.#e),s=[];for(let l of n.operations){yf(i,l);let c=xe(this.#e);switch(l.type){case"add":s.push(Ne(this.#e,c,go(this.#e,l.path)));break;case"remove":s.push(Ne(this.#e,c,vo(this.#e,l.path,{recursive:l.recursive})));break;case"move":{let d=yo(this.#e,l.from,l.to,{collision:l.collision});if(d!=null)s.push(Ne(this.#e,c,d));break}}}let a=s.some((l)=>l.projectionChanged)||this.isDirectoryProjectionVisible(r);return Xe(this.#e,Ne(this.#e,o,Ka({affectedAncestorIds:We(this.#e,r),affectedNodeIds:[r],attemptId:t.attemptId,childEvents:s,path:ne(this.#e,r),projectionChanged:a}))),!0})}completeChildLoad(t){return E(this.#e.instrumentation,"store.completeChildLoad",()=>{let n=this.resolveActiveDirectoryNodeId(t.nodeId);if(n==null)return!1;let r=xe(this.#e),i=Da(this.#e,n,t.attemptId);return Xe(this.#e,Ne(this.#e,r,Ga({affectedAncestorIds:We(this.#e,n),affectedNodeIds:[n],attemptId:t.attemptId,path:ne(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}failChildLoad(t,n){return E(this.#e.instrumentation,"store.failChildLoad",()=>{let r=this.resolveActiveDirectoryNodeId(t.nodeId);if(r==null)return!1;let i=xe(this.#e),o=Aa(this.#e,r,t.attemptId,n);return Xe(this.#e,Ne(this.#e,i,Ya({affectedAncestorIds:We(this.#e,r),affectedNodeIds:[r],attemptId:t.attemptId,errorMessage:n,path:ne(this.#e,r),projectionChanged:this.isDirectoryProjectionVisible(r),stale:!o}))),o})}cleanup(t={}){return E(this.#e.instrumentation,"store.cleanup",()=>{if(this.#e.transactionStack.length>0)throw Error("Cleanup cannot run during an open batch or transaction.");if(hl(this.#e))throw Error("Cleanup cannot run while directory loads are active.");let n=xe(this.#e),r=fl(this.#e,t.mode??"stable");return Xe(this.#e,Ne(this.#e,n,Xa({...r,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:r.idsPreserved===!1}))),r})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(t){if(t==null||t.length===0)return 0;let n=0,r=[],i=[],o=0,s=null,a=this.#e.snapshot.segmentTable,l=a.valueById,c=this.#e.snapshot.nodes,d=new Map;for(let f of t){if(s!=null&&f<s)s=null,o=0,r.length=0,i.length=0;let u=f.length>0&&f.charCodeAt(f.length-1)===47?f.length-1:f.length;if(u===0){s=f,o=u,r.length=0,i.length=0;continue}let m=0,p=0;if(s!=null){let y=Math.min(u,o),w=!0;for(let x=0;x<y;x+=1){let P=f.charCodeAt(x);if(P!==s.charCodeAt(x)){w=!1;break}if(P===47)m+=1,p=x+1}if(w){if(y===o&&u>y&&f.charCodeAt(y)===47)m+=1,p=y+1;else if(y===u&&o>y&&s.charCodeAt(y)===47)m+=1,p=u+1}m=Math.min(m,i.length)}let g=m===0?this.#e.snapshot.rootId:i[m-1]??this.#e.snapshot.rootId,v=m,S=!0,C=p;while(C<=u){let y=f.indexOf("/",C),w=y===-1||y>u?u:y,x=f.slice(C,w),P=ae(this.#e,g).childIds,O=v===m?r[v]??0:0,pe=O,G,me=d.get(x)??Xt(x);d.set(x,me);let j=(N,re)=>{for(pe=N;pe<re;pe+=1){let W=P[pe],Ee=c[W],U=l[Ee.nameId];if(U===x)return G=W,!0;let de=lr(cr(a,Ee.nameId),me);if(de>0||de===0&&U>x)return!1}return!1};if(!j(O,P.length)&&O>0)j(0,O);if(G===void 0){S=!1;break}if(!D(M(this.#e,G))){S=!1;break}if(r[v]=pe,i[v]=G,g=G,v+=1,w===u)break;C=w+1}if(s=f,o=u,r.length=v,i.length=v,!S){s=null,o=0,r.length=0,i.length=0;continue}for(let y=m;y<v;y+=1){let w=i[y];if(w==null)continue;let x=M(this.#e,w);if(Ce(this.#e,w,x))continue;At(this.#e,w,!0,x),n+=1}}return n}hasAllDirectoriesExpanded(){for(let t of this.#e.snapshot.directories.keys()){if(t===this.#e.snapshot.rootId)continue;let n=M(this.#e,t);if(!Ce(this.#e,t,n))return!1}return!0}requireDirectoryNodeId(t){let n=Le(this.#e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);if(!D(M(this.#e,n)))throw Error(`Path is not a directory: "${t}"`);return n}resolveActiveDirectoryNodeId(t){try{if(!D(M(this.#e,t)))throw Error(`Node is not a directory: ${String(t)}`);return t}catch{return null}}isDirectoryProjectionVisible(t){let n=t;while(n!==this.#e.snapshot.rootId){let r=M(this.#e,n).parentId;if(r!==this.#e.snapshot.rootId){let i=M(this.#e,r),o=yt(this.#e,r);if(!Ce(this.#e,r,i)&&o!==n)return!1}n=r}return!0}validateChildPatch(t,n){new e({paths:this.list(t),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function yf(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}"`);break}}var bf=[`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
|
|
2
|
+
<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"/>
|
|
3
|
+
<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"/>
|
|
4
|
+
</symbol>`,`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
|
|
5
|
+
<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"/>
|
|
6
|
+
</symbol>`,`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
|
|
7
|
+
<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"/>
|
|
8
|
+
</symbol>`,`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
|
|
9
|
+
<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"/>
|
|
10
|
+
<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"/>
|
|
11
|
+
</symbol>`,`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
|
|
12
|
+
<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"/>
|
|
13
|
+
<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"/>
|
|
14
|
+
<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"/>
|
|
15
|
+
</symbol>`,`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
|
|
16
|
+
<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"/>
|
|
17
|
+
<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"/>
|
|
18
|
+
</symbol>`,`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
|
|
19
|
+
<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"/>
|
|
20
|
+
</symbol>`,`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
|
|
21
|
+
<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"/>
|
|
22
|
+
</symbol>`,`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
|
|
23
|
+
<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"/>
|
|
24
|
+
</symbol>`,`<symbol id="file-tree-builtin-html" 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="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"/>
|
|
27
|
+
</symbol>`,`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
|
|
28
|
+
<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"/>
|
|
29
|
+
<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"/>
|
|
30
|
+
</symbol>`,`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
|
|
31
|
+
<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"/>
|
|
32
|
+
<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"/>
|
|
33
|
+
</symbol>`,`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
|
|
34
|
+
<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"/>
|
|
35
|
+
</symbol>`,`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
|
|
36
|
+
<path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
|
|
37
|
+
</symbol>`,`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
|
|
38
|
+
<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"/>
|
|
39
|
+
<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"/>
|
|
40
|
+
</symbol>`,`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
|
|
41
|
+
<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"/>
|
|
42
|
+
<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"/>
|
|
43
|
+
</symbol>`,`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
|
|
44
|
+
<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"/>
|
|
45
|
+
</symbol>`,`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
|
|
46
|
+
<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"/>
|
|
47
|
+
</symbol>`,`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
|
|
48
|
+
<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"/>
|
|
49
|
+
</symbol>`,`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
|
|
50
|
+
<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"/>
|
|
51
|
+
<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"/>
|
|
52
|
+
</symbol>`,`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
|
|
53
|
+
<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"/>
|
|
54
|
+
<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"/>
|
|
55
|
+
</symbol>`,`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
|
|
56
|
+
<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"/>
|
|
57
|
+
<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"/>
|
|
58
|
+
</symbol>`,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
|
|
59
|
+
<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"/>
|
|
60
|
+
<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"/>
|
|
61
|
+
</symbol>`],wf=[`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
|
|
62
|
+
<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"/>
|
|
63
|
+
<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"/>
|
|
64
|
+
</symbol>`,`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
|
|
65
|
+
<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"/>
|
|
66
|
+
</symbol>`,`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
|
|
67
|
+
<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"/>
|
|
68
|
+
</symbol>`,`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
|
|
69
|
+
<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"/>
|
|
70
|
+
<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"/>
|
|
71
|
+
</symbol>`,`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
|
|
72
|
+
<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"/>
|
|
73
|
+
<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"/>
|
|
74
|
+
<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"/>
|
|
75
|
+
</symbol>`,`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
|
|
76
|
+
<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"/>
|
|
77
|
+
</symbol>`,`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
|
|
78
|
+
<path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/>
|
|
79
|
+
</symbol>`,`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
|
|
80
|
+
<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"/>
|
|
81
|
+
<path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/>
|
|
82
|
+
</symbol>`,`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
|
|
83
|
+
<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"/>
|
|
84
|
+
<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"/>
|
|
85
|
+
</symbol>`,`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
|
|
86
|
+
<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"/>
|
|
87
|
+
</symbol>`,`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
|
|
88
|
+
<defs>
|
|
89
|
+
<linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
|
|
90
|
+
<stop stop-color="currentColor"/>
|
|
91
|
+
<stop offset="1" stop-color="currentColor" stop-opacity="0"/>
|
|
92
|
+
</linearGradient>
|
|
93
|
+
</defs>
|
|
94
|
+
<path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
|
|
95
|
+
<path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
|
|
96
|
+
<path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
|
|
97
|
+
</symbol>`,`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
|
|
98
|
+
<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"/>
|
|
99
|
+
<path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
|
|
100
|
+
</symbol>`,`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
|
|
101
|
+
<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"/>
|
|
102
|
+
</symbol>`,`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
|
|
103
|
+
<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"/>
|
|
104
|
+
</symbol>`,`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
|
|
105
|
+
<path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
|
|
106
|
+
<path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
|
|
107
|
+
<path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
|
|
108
|
+
<path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
|
|
109
|
+
</symbol>`,`<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-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>`,`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
|
|
113
|
+
<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"/>
|
|
114
|
+
</symbol>`,`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
|
|
115
|
+
<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"/>
|
|
116
|
+
<path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
|
|
117
|
+
</symbol>`,`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
|
|
118
|
+
<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"/>
|
|
119
|
+
</symbol>`,`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
|
|
120
|
+
<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"/>
|
|
121
|
+
<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"/>
|
|
122
|
+
</symbol>`,`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
|
|
123
|
+
<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"/>
|
|
124
|
+
<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"/>
|
|
125
|
+
</symbol>`,`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
|
|
126
|
+
<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"/>
|
|
127
|
+
</symbol>`,`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
|
|
128
|
+
<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"/>
|
|
129
|
+
</symbol>`,`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
|
|
130
|
+
<path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/>
|
|
131
|
+
</symbol>`,`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
|
|
132
|
+
<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"/>
|
|
133
|
+
<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"/>
|
|
134
|
+
<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"/>
|
|
135
|
+
</symbol>`,`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
|
|
136
|
+
<path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
|
|
137
|
+
<path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
|
|
138
|
+
</symbol>`,`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
|
|
139
|
+
<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"/>
|
|
140
|
+
<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"/>
|
|
141
|
+
<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"/>
|
|
142
|
+
</symbol>`,`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
|
|
143
|
+
<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"/>
|
|
144
|
+
<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"/>
|
|
145
|
+
</symbol>`,`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
|
|
146
|
+
<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"/>
|
|
147
|
+
</symbol>`,`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
|
|
148
|
+
<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"/>
|
|
149
|
+
<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"/>
|
|
150
|
+
</symbol>`];function Ml(e,t){if(t.length===0)return e;return e.replace("</svg>",`
|
|
151
|
+
${t.join(`
|
|
152
|
+
`)}
|
|
153
|
+
</svg>`)}var Rl=Ml(`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
154
|
+
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
155
|
+
<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"/>
|
|
156
|
+
</symbol>
|
|
157
|
+
<symbol id="file-tree-icon-dot" viewBox="0 0 6 6">
|
|
158
|
+
<circle cx="3" cy="3" r="3" />
|
|
159
|
+
</symbol>
|
|
160
|
+
<symbol id="file-tree-icon-file" viewBox="0 0 16 16">
|
|
161
|
+
<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"/>
|
|
162
|
+
<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"/>
|
|
163
|
+
</symbol>
|
|
164
|
+
<symbol id="file-tree-icon-lock" viewBox="0 0 16 16">
|
|
165
|
+
<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" />
|
|
166
|
+
</symbol>
|
|
167
|
+
<symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
|
|
168
|
+
<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" />
|
|
169
|
+
</symbol>
|
|
170
|
+
</svg>`,bf),If={minimal:`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
171
|
+
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
172
|
+
<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"/>
|
|
173
|
+
</symbol>
|
|
174
|
+
<symbol id="file-tree-icon-dot" viewBox="0 0 6 6">
|
|
175
|
+
<circle cx="3" cy="3" r="3" />
|
|
176
|
+
</symbol>
|
|
177
|
+
<symbol id="file-tree-icon-file" viewBox="0 0 16 16">
|
|
178
|
+
<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"/>
|
|
179
|
+
<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"/>
|
|
180
|
+
</symbol>
|
|
181
|
+
<symbol id="file-tree-icon-lock" viewBox="0 0 16 16">
|
|
182
|
+
<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" />
|
|
183
|
+
</symbol>
|
|
184
|
+
<symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
|
|
185
|
+
<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" />
|
|
186
|
+
</symbol>
|
|
187
|
+
</svg>`,standard:Rl,complete:Ml(Rl,wf)},Sf={".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"},Cf={"7z":"zip",astro:"astro",AUTHORS:"text",avif:"image",bash:"bash",bmp:"image",bz2:"zip",c:"c",cc:"cpp",cfg:"text",CHANGELOG:"text",cjs:"javascript","code-workspace":"vscode",conf:"text",CONTRIBUTORS:"text",cpp:"cpp",csh:"bash",css:"css",csv:"table",cts:"typescript",cxx:"cpp",db:"database",editorconfig:"text",env:"text","env.development":"text","env.local":"text","env.production":"text",eot:"font",erb:"ruby",fish:"bash",gemspec:"ruby",gif:"image",go:"go",gql:"graphql",graphql:"graphql",gz:"zip",h:"c",hh:"cpp",hpp:"cpp",htm:"html",html:"html",hxx:"cpp",icns:"image",ico:"image",ini:"text",inl:"cpp",jar:"zip",jpeg:"image",jpg:"image",js:"javascript",json:"json",json5:"json",jsonc:"json",jsonl:"json",jsx:"javascript",ksh:"bash",less:"css",LICENSE:"text",log:"text",markdown:"markdown",mcp:"mcp",md:"markdown",mdx:"markdown","mdx.tsx":"markdown",mjs:"javascript",mm:"cpp",mts:"typescript",ods:"table",otf:"font",png:"image",postcss:"css",py:"python",pyi:"python",pyw:"python",pyx:"python",rake:"ruby",rar:"zip",rb:"ruby",rs:"rust",rst:"text",rtf:"text",sass:"css",scss:"css",sh:"bash",sql:"database",sqlite:"database",sqlite3:"database",styl:"css",svelte:"svelte",svg:"svg",swift:"swift",tar:"zip",tf:"terraform",tfstate:"terraform",tfvars:"terraform",tgz:"zip",tif:"image",tiff:"image",ts:"typescript",tsv:"table",tsx:"typescript",ttf:"font",txt:"text",vue:"vue",war:"zip",wasm:"wasm",wast:"wasm",wat:"wasm",webp:"image",woff:"font",woff2:"font",xhtml:"html",xls:"table",xlsx:"table",xz:"zip",yaml:"yml",yml:"yml",zig:"zig",zip:"zip",zsh:"bash"},xf={jsx:"react",sass:"sass",scss:"sass",tsx:"react"},Dl=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"]),kf=new Set(["complete"]);function Al(e){return If[e==="none"?"minimal":e]}function Nl(e){return`file-tree-builtin-${e}`}function Ll(e){return e!=="none"&&kf.has(e)}function Fl(e,t,n){if(e==="minimal"||e==="none")return;let r=e==="complete",i=Sf[t.toLowerCase()];if(i!=null){if(r||Dl.has(i))return i}for(let o of n){if(r){let a=xf[o];if(a!=null)return a}let s=Cf[o];if(s!=null){if(r||Dl.has(s))return s}}return"default"}var xo="file-tree-container",ri="data-file-tree-style",ko="data-file-tree-unsafe-css",Bl="data-file-tree-scrollbar-measure",_o="data-file-tree-scrollbar-gutter-measured",Hl="--trees-scrollbar-gutter-measured";var fr="header",pr="context-menu",Vl="context-menu-trigger";function _f(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function In(e){if(e==null)return{set:"complete",colored:!0};if(typeof e==="string")return{set:e,colored:!0};return{...e,set:e.set??(_f(e)?"none":"complete"),colored:e.colored??!0}}var ii={compact:{itemHeight:24,factor:0.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function Ol(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 oi=ii.default.itemHeight;var si=`@layer base {
|
|
188
|
+
:host {
|
|
189
|
+
--trees-accent: var(--trees-accent-override, #009fff);
|
|
190
|
+
--trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));
|
|
191
|
+
--trees-fg-muted: var(--trees-fg-muted-override, var(--trees-theme-sidebar-header-fg, light-dark(#84848a, #84848a)));
|
|
192
|
+
--trees-bg: var(--trees-bg-override, var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415)));
|
|
193
|
+
--trees-bg-muted: var(--trees-bg-muted-override, var(--trees-theme-list-hover-bg, light-dark(color-mix(in lab,
|
|
194
|
+
var(--trees-accent) var(--trees-bg-alpha-light, 8%),
|
|
195
|
+
var(--trees-bg)), color-mix(in lab,
|
|
196
|
+
var(--trees-accent) var(--trees-bg-alpha-dark, 10%),
|
|
197
|
+
var(--trees-bg)))));
|
|
198
|
+
--trees-input-bg: var(--trees-input-bg-override, light-dark(#f8f8f8, #070707));
|
|
199
|
+
--trees-added-light: #16a994;
|
|
200
|
+
--trees-added-dark: #00cab1;
|
|
201
|
+
--trees-ignored-light: #adadb1;
|
|
202
|
+
--trees-ignored-dark: #4a4a4e;
|
|
203
|
+
--trees-modified-light: #1ca1c7;
|
|
204
|
+
--trees-modified-dark: #08c0ef;
|
|
205
|
+
--trees-renamed-light: #d5a910;
|
|
206
|
+
--trees-renamed-dark: #ffd452;
|
|
207
|
+
--trees-untracked-light: #16a994;
|
|
208
|
+
--trees-untracked-dark: #00cab1;
|
|
209
|
+
--trees-deleted-light: #ff2e3f;
|
|
210
|
+
--trees-deleted-dark: #ff6762;
|
|
211
|
+
--trees-border-color: var(--trees-border-color-override, var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707)));
|
|
212
|
+
--trees-indent-guide-bg: var(--trees-indent-guide-bg-override, color-mix(in lab, var(--trees-fg-muted) 25%, transparent));
|
|
213
|
+
--trees-density: var(--trees-density-override, 1);
|
|
214
|
+
--trees-border-radius: var(--trees-border-radius-override, calc(6px * var(--trees-density)));
|
|
215
|
+
--trees-font-family: var(--trees-font-family-override, system-ui);
|
|
216
|
+
--trees-font-size: var(--trees-font-size-override, 13px);
|
|
217
|
+
--trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);
|
|
218
|
+
--trees-font-weight-semibold: var(--trees-font-weight-semibold-override, 600);
|
|
219
|
+
--trees-focus-ring-color: var(--trees-focus-ring-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));
|
|
220
|
+
--trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);
|
|
221
|
+
--trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);
|
|
222
|
+
--trees-search-fg: var(--trees-search-fg-override, var(--trees-theme-input-fg, var(--trees-fg)));
|
|
223
|
+
--trees-search-font-weight: var(--trees-search-font-weight-override, 600);
|
|
224
|
+
--trees-search-bg: var(--trees-search-bg-override, var(--trees-theme-input-bg, var(--trees-input-bg)));
|
|
225
|
+
--trees-scrollbar-thumb: var(--trees-scrollbar-thumb-override, var(--trees-theme-scrollbar-thumb, color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))));
|
|
226
|
+
--trees-selected-fg: var(--trees-selected-fg-override, var(--trees-theme-list-active-selection-fg, var(--trees-fg)));
|
|
227
|
+
--trees-selected-bg: var(--trees-selected-bg-override, var(--trees-theme-list-active-selection-bg, light-dark(color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)), color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg)))));
|
|
228
|
+
--trees-selected-focused-border-color: var(--trees-selected-focused-border-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));
|
|
229
|
+
--trees-status-added: var(--trees-status-added-override, var(--trees-theme-git-added-fg, light-dark(var(--trees-added-light), var(--trees-added-dark))));
|
|
230
|
+
--trees-status-ignored: var(--trees-status-ignored-override, var(--trees-theme-git-ignored-fg, light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))));
|
|
231
|
+
--trees-status-modified: var(--trees-status-modified-override, var(--trees-theme-git-modified-fg, light-dark(var(--trees-modified-light), var(--trees-modified-dark))));
|
|
232
|
+
--trees-status-renamed: var(--trees-status-renamed-override, var(--trees-theme-git-renamed-fg, light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))));
|
|
233
|
+
--trees-status-untracked: var(--trees-status-untracked-override, var(--trees-theme-git-untracked-fg, light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))));
|
|
234
|
+
--trees-status-deleted: var(--trees-status-deleted-override, var(--trees-theme-git-deleted-fg, light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))));
|
|
235
|
+
--trees-git-modified-color: var(--trees-git-modified-color-override, var(--trees-status-modified));
|
|
236
|
+
--trees-git-added-color: var(--trees-git-added-color-override, var(--trees-status-added));
|
|
237
|
+
--trees-git-ignored-color: var(--trees-git-ignored-color-override, var(--trees-status-ignored));
|
|
238
|
+
--trees-git-deleted-color: var(--trees-git-deleted-color-override, var(--trees-status-deleted));
|
|
239
|
+
--trees-git-renamed-color: var(--trees-git-renamed-color-override, var(--trees-status-renamed));
|
|
240
|
+
--trees-git-untracked-color: var(--trees-git-untracked-color-override, var(--trees-status-untracked));
|
|
241
|
+
--trees-icon-gray: light-dark(#84848a, #adadb1);
|
|
242
|
+
--trees-icon-red: light-dark(#d52c36, #ff6762);
|
|
243
|
+
--trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);
|
|
244
|
+
--trees-icon-orange: light-dark(#d47628, #ffa359);
|
|
245
|
+
--trees-icon-yellow: light-dark(#d5a910, #ffd452);
|
|
246
|
+
--trees-icon-green: light-dark(#199f43, #5ecc71);
|
|
247
|
+
--trees-icon-teal: light-dark(#17a5af, #64d1db);
|
|
248
|
+
--trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);
|
|
249
|
+
--trees-icon-blue: light-dark(#1a85d4, #69b1ff);
|
|
250
|
+
--trees-icon-indigo: light-dark(#693acf, #9d6afb);
|
|
251
|
+
--trees-icon-purple: light-dark(#a631be, #d568ea);
|
|
252
|
+
--trees-icon-pink: light-dark(#d32a61, #ff678d);
|
|
253
|
+
--trees-icon-mauve: light-dark(#594c5b, #79697b);
|
|
254
|
+
--trees-file-icon-color-default: var(--trees-file-icon-color, var(--trees-icon-gray));
|
|
255
|
+
--trees-file-icon-color-astro: var(--trees-file-icon-color, var(--trees-icon-purple));
|
|
256
|
+
--trees-file-icon-color-babel: var(--trees-file-icon-color, var(--trees-icon-yellow));
|
|
257
|
+
--trees-file-icon-color-bash: var(--trees-file-icon-color, var(--trees-icon-green));
|
|
258
|
+
--trees-file-icon-color-biome: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
259
|
+
--trees-file-icon-color-bootstrap: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
260
|
+
--trees-file-icon-color-browserslist: var(--trees-file-icon-color, var(--trees-icon-yellow));
|
|
261
|
+
--trees-file-icon-color-bun: var(--trees-file-icon-color, var(--trees-icon-mauve));
|
|
262
|
+
--trees-file-icon-color-c: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
263
|
+
--trees-file-icon-color-cpp: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
264
|
+
--trees-file-icon-color-claude: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
265
|
+
--trees-file-icon-color-css: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
266
|
+
--trees-file-icon-color-database: var(--trees-file-icon-color, var(--trees-icon-purple));
|
|
267
|
+
--trees-file-icon-color-docker: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
268
|
+
--trees-file-icon-color-eslint: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
269
|
+
--trees-file-icon-color-git: var(--trees-file-icon-vermilion, var(--trees-icon-vermilion));
|
|
270
|
+
--trees-file-icon-color-go: var(--trees-file-icon-color, var(--trees-icon-cyan));
|
|
271
|
+
--trees-file-icon-color-graphql: var(--trees-file-icon-color, var(--trees-icon-pink));
|
|
272
|
+
--trees-file-icon-color-html: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
273
|
+
--trees-file-icon-color-image: var(--trees-file-icon-color, var(--trees-icon-pink));
|
|
274
|
+
--trees-file-icon-color-javascript: var(--trees-file-icon-color, var(--trees-icon-yellow));
|
|
275
|
+
--trees-file-icon-color-json: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
276
|
+
--trees-file-icon-color-markdown: var(--trees-file-icon-color, var(--trees-icon-green));
|
|
277
|
+
--trees-file-icon-color-mcp: var(--trees-file-icon-color, var(--trees-icon-teal));
|
|
278
|
+
--trees-file-icon-color-npm: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
279
|
+
--trees-file-icon-color-oxc: var(--trees-file-icon-cyan, var(--trees-icon-cyan));
|
|
280
|
+
--trees-file-icon-color-postcss: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
281
|
+
--trees-file-icon-color-prettier: var(--trees-file-icon-color, var(--trees-icon-teal));
|
|
282
|
+
--trees-file-icon-color-python: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
283
|
+
--trees-file-icon-color-react: var(--trees-file-icon-color, var(--trees-icon-cyan));
|
|
284
|
+
--trees-file-icon-color-ruby: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
285
|
+
--trees-file-icon-color-rust: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
286
|
+
--trees-file-icon-color-sass: var(--trees-file-icon-color, var(--trees-icon-pink));
|
|
287
|
+
--trees-file-icon-color-svg: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
288
|
+
--trees-file-icon-color-svelte: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
289
|
+
--trees-file-icon-color-svgo: var(--trees-file-icon-color, var(--trees-icon-green));
|
|
290
|
+
--trees-file-icon-color-swift: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
291
|
+
--trees-file-icon-color-table: var(--trees-file-icon-color, var(--trees-icon-teal));
|
|
292
|
+
--trees-file-icon-color-text: var(--trees-file-icon-color, var(--trees-icon-gray));
|
|
293
|
+
--trees-file-icon-color-tailwind: var(--trees-file-icon-color, var(--trees-icon-cyan));
|
|
294
|
+
--trees-file-icon-color-terraform: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
295
|
+
--trees-file-icon-color-typescript: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
296
|
+
--trees-file-icon-color-vite: var(--trees-file-icon-color, var(--trees-icon-purple));
|
|
297
|
+
--trees-file-icon-color-vscode: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
298
|
+
--trees-file-icon-color-vue: var(--trees-file-icon-color, var(--trees-icon-green));
|
|
299
|
+
--trees-file-icon-color-wasm: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
300
|
+
--trees-file-icon-color-webpack: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
301
|
+
--trees-file-icon-color-yml: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
302
|
+
--trees-file-icon-color-zig: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
303
|
+
--trees-file-icon-color-zip: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
304
|
+
--trees-level-gap: var(--trees-level-gap-override, calc(8px * var(--trees-density)));
|
|
305
|
+
--trees-item-padding-x: var(--trees-item-padding-x-override, calc(8px * var(--trees-density)));
|
|
306
|
+
--trees-item-margin-x: var(--trees-item-margin-x-override, calc(2px * var(--trees-density)));
|
|
307
|
+
--trees-item-row-gap: var(--trees-item-row-gap-override, calc(6px * var(--trees-density)));
|
|
308
|
+
--trees-icon-width: var(--trees-icon-width-override, 16px);
|
|
309
|
+
--trees-icon-nudge: var(--trees-icon-nudge-override, calc(1px * var(--trees-density)));
|
|
310
|
+
--trees-row-height: var(--trees-item-height, 30px);
|
|
311
|
+
--trees-git-lane-width: var(--trees-git-lane-width-override, 12px);
|
|
312
|
+
--trees-action-lane-width: var(--trees-action-lane-width-override, calc(var(--trees-icon-width) + 2px));
|
|
313
|
+
--trees-context-menu-trigger-inline-offset: calc(var(--trees-padding-inline) + var(--trees-item-padding-x) -
|
|
314
|
+
var(--trees-focus-ring-width));
|
|
315
|
+
--trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);
|
|
316
|
+
--trees-padding-inline: var(--trees-padding-inline-override, 16px);
|
|
317
|
+
color-scheme: light dark;
|
|
318
|
+
font-size: var(--trees-font-size);
|
|
319
|
+
color: var(--trees-fg);
|
|
320
|
+
background-color: var(--trees-bg);
|
|
321
|
+
--truncate-marker-background-color: var(--trees-bg);
|
|
322
|
+
--truncate-marker-background-overlay-color: transparent;
|
|
323
|
+
font-family: var(--trees-font-family);
|
|
324
|
+
font-weight: var(--trees-font-weight-regular);
|
|
325
|
+
flex-direction: column;
|
|
326
|
+
display: flex;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:host([data-file-tree-virtualized="true"]) {
|
|
330
|
+
height: 100%;
|
|
331
|
+
overflow: hidden;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
[data-file-tree-virtualized-wrapper="true"], [data-file-tree-virtualized-root="true"] {
|
|
335
|
+
flex-direction: column;
|
|
336
|
+
height: 100%;
|
|
337
|
+
display: flex;
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
[data-file-tree-virtualized-scroll="true"], [data-file-tree-scrollbar-measure="true"] {
|
|
342
|
+
--trees-scrollbar-thumb-current: transparent;
|
|
343
|
+
scrollbar-gutter: stable;
|
|
344
|
+
overflow-y: auto;
|
|
345
|
+
|
|
346
|
+
&:hover {
|
|
347
|
+
--trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&::-webkit-scrollbar {
|
|
351
|
+
width: var(--trees-scrollbar-gutter);
|
|
352
|
+
height: var(--trees-scrollbar-gutter);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
&::-webkit-scrollbar-track {
|
|
356
|
+
background: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&::-webkit-scrollbar-thumb {
|
|
360
|
+
background-color: var(--trees-scrollbar-thumb-current);
|
|
361
|
+
border-radius: calc(var(--trees-scrollbar-gutter) / 2);
|
|
362
|
+
background-clip: content-box;
|
|
363
|
+
border: 1px solid #0000;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&::-webkit-scrollbar-corner {
|
|
367
|
+
background-color: #0000;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
[data-file-tree-scrollbar-measure="true"] {
|
|
372
|
+
visibility: hidden;
|
|
373
|
+
pointer-events: none;
|
|
374
|
+
width: 100px;
|
|
375
|
+
height: 100px;
|
|
376
|
+
position: absolute;
|
|
377
|
+
top: 0;
|
|
378
|
+
left: 0;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@supports ((-moz-appearance: none)) {
|
|
382
|
+
[data-file-tree-virtualized-scroll="true"], [data-file-tree-scrollbar-measure="true"] {
|
|
383
|
+
scrollbar-width: thin;
|
|
384
|
+
scrollbar-color: var(--trees-scrollbar-thumb-current) transparent;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
[data-file-tree-virtualized-scroll="true"] {
|
|
389
|
+
min-height: 0;
|
|
390
|
+
padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
|
|
391
|
+
0px)
|
|
392
|
+
/* NOTE(amadeus): We can assume that all Webkit based browser gutters
|
|
393
|
+
* will align to the value of '--trees-scrollbar-gutter', however if not, then
|
|
394
|
+
* \`--trees-scrollbar-gutter-measured\` should correct it. Mostly we are
|
|
395
|
+
* hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments
|
|
396
|
+
* \`--trees-scrollbar-gutter-measured\` should always be immediately available.
|
|
397
|
+
*/
|
|
398
|
+
max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -
|
|
399
|
+
var(--trees-scrollbar-gutter-measured, var(--trees-scrollbar-gutter))),
|
|
400
|
+
0px);
|
|
401
|
+
flex: 1 1 0;
|
|
402
|
+
position: relative;
|
|
403
|
+
overflow-y: auto;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
@supports ((-moz-appearance: none)) {
|
|
407
|
+
[data-file-tree-virtualized-scroll="true"] {
|
|
408
|
+
padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
|
|
409
|
+
0px)
|
|
410
|
+
/* NOTE(amadeus): However on Firefox it can vary a little bit, but most
|
|
411
|
+
* likely the majority of cases will default to a 0px width scrollbar lets
|
|
412
|
+
* inherit that first to avoid SSR jumps. In non-SSR'd environments
|
|
413
|
+
* \`--trees-scrollbar-gutter-measured\` should always be immediately available.
|
|
414
|
+
*/
|
|
415
|
+
max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -
|
|
416
|
+
var(--trees-scrollbar-gutter-measured, 0px)),
|
|
417
|
+
0px);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
[data-file-tree-sticky-overlay="true"] {
|
|
422
|
+
z-index: 4;
|
|
423
|
+
pointer-events: none;
|
|
424
|
+
height: 0;
|
|
425
|
+
position: sticky;
|
|
426
|
+
top: 0;
|
|
427
|
+
overflow: visible;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
[data-file-tree-virtualized-root="true"][data-scroll-at-top="true"]:not([data-overlay-reveal]) [data-file-tree-sticky-overlay="true"] {
|
|
431
|
+
visibility: hidden;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
[data-file-tree-sticky-overlay-content="true"] {
|
|
435
|
+
background-color: var(--trees-bg);
|
|
436
|
+
pointer-events: none;
|
|
437
|
+
position: relative;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
[data-file-tree-virtualized-list="true"] {
|
|
441
|
+
background-color: var(--trees-bg);
|
|
442
|
+
overflow-anchor: none;
|
|
443
|
+
width: 100%;
|
|
444
|
+
min-height: 100%;
|
|
445
|
+
position: relative;
|
|
446
|
+
|
|
447
|
+
&[data-is-scrolling] {
|
|
448
|
+
pointer-events: none;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
[data-file-tree-virtualized-sticky-offset="true"] {
|
|
453
|
+
contain: layout size;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
[data-file-tree-virtualized-sticky="true"] {
|
|
457
|
+
isolation: isolate;
|
|
458
|
+
will-change: transform;
|
|
459
|
+
flex-direction: column;
|
|
460
|
+
width: 100%;
|
|
461
|
+
display: flex;
|
|
462
|
+
position: sticky;
|
|
463
|
+
top: 0;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
[data-file-tree-search-container] {
|
|
467
|
+
padding: 0;
|
|
468
|
+
padding-inline: var(--trees-padding-inline);
|
|
469
|
+
margin-bottom: var(--trees-item-row-gap);
|
|
470
|
+
display: flex;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
[data-file-tree-search-input] {
|
|
474
|
+
--trees-focus-ring-width: 2px;
|
|
475
|
+
font-family: var(--trees-font-family);
|
|
476
|
+
font-size: var(--trees-font-size);
|
|
477
|
+
height: var(--trees-row-height);
|
|
478
|
+
padding-inline: var(--trees-item-padding-x);
|
|
479
|
+
line-height: var(--trees-row-height);
|
|
480
|
+
color: var(--trees-search-fg);
|
|
481
|
+
background-color: var(--trees-search-bg);
|
|
482
|
+
border: 1px solid var(--trees-border-color);
|
|
483
|
+
border-radius: var(--trees-border-radius);
|
|
484
|
+
outline: none;
|
|
485
|
+
flex: 1;
|
|
486
|
+
margin-block: 1px;
|
|
487
|
+
|
|
488
|
+
&::placeholder {
|
|
489
|
+
color: color-mix(in lab,
|
|
490
|
+
var(--trees-search-fg) 65%,
|
|
491
|
+
var(--trees-search-bg));
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
&:focus-visible, &[data-file-tree-search-input-fake-focus="true"] {
|
|
495
|
+
outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);
|
|
496
|
+
outline-offset: var(--trees-focus-ring-offset);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
[role="tree"] {
|
|
501
|
+
gap: var(--trees-gap-override, 0);
|
|
502
|
+
flex-direction: column;
|
|
503
|
+
display: flex;
|
|
504
|
+
position: relative;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
[data-type="item"] {
|
|
508
|
+
color: inherit;
|
|
509
|
+
font-family: var(--trees-font-family);
|
|
510
|
+
font-size: var(--trees-font-size);
|
|
511
|
+
text-align: start;
|
|
512
|
+
background-color: var(--trees-bg);
|
|
513
|
+
padding: 0 var(--trees-item-padding-x);
|
|
514
|
+
margin: 0 var(--trees-item-margin-x);
|
|
515
|
+
cursor: pointer;
|
|
516
|
+
user-select: none;
|
|
517
|
+
-webkit-touch-callout: none;
|
|
518
|
+
touch-action: manipulation;
|
|
519
|
+
flex: 0 0 var(--trees-row-height);
|
|
520
|
+
height: var(--trees-row-height);
|
|
521
|
+
line-height: var(--trees-row-height);
|
|
522
|
+
align-items: center;
|
|
523
|
+
gap: var(--trees-item-row-gap);
|
|
524
|
+
border-radius: var(--trees-border-radius);
|
|
525
|
+
--truncate-marker-background-color: var(--trees-bg);
|
|
526
|
+
--truncate-marker-background-overlay-color: transparent;
|
|
527
|
+
--truncate-marker-block-inset: 0px;
|
|
528
|
+
border: none;
|
|
529
|
+
outline: none;
|
|
530
|
+
display: flex;
|
|
531
|
+
position: relative;
|
|
532
|
+
|
|
533
|
+
&:hover, &[data-item-context-hover="true"] {
|
|
534
|
+
background-color: var(--trees-bg-muted);
|
|
535
|
+
--truncate-marker-background-overlay-color: var(--trees-bg-muted);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
&[data-item-focused="true"], &:focus-visible {
|
|
539
|
+
z-index: 2;
|
|
540
|
+
|
|
541
|
+
& [data-item-flattened-subitems] {
|
|
542
|
+
--truncate-marker-block-inset: var(--trees-focus-ring-width);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
&:before {
|
|
546
|
+
content: "";
|
|
547
|
+
border-radius: var(--trees-border-radius);
|
|
548
|
+
outline: var(--trees-focus-ring-width) solid
|
|
549
|
+
var(--trees-focus-ring-color);
|
|
550
|
+
outline-offset: var(--trees-focus-ring-offset);
|
|
551
|
+
pointer-events: none;
|
|
552
|
+
display: block;
|
|
553
|
+
position: absolute;
|
|
554
|
+
inset: 0;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
&[data-item-selected="true"]:before {
|
|
558
|
+
outline-color: var(--trees-selected-focused-border-color);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
&[data-item-selected="true"] {
|
|
563
|
+
color: var(--trees-selected-fg);
|
|
564
|
+
background-color: var(--trees-selected-bg);
|
|
565
|
+
--truncate-marker-background-overlay-color: var(--trees-selected-bg);
|
|
566
|
+
z-index: 3;
|
|
567
|
+
|
|
568
|
+
& [data-item-section="icon"] {
|
|
569
|
+
color: var(--trees-selected-fg);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
&[data-item-search-match="true"] {
|
|
574
|
+
font-weight: var(--trees-search-font-weight);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
[data-type="item"][data-file-tree-sticky-row="true"] {
|
|
579
|
+
pointer-events: auto;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
[data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"] {
|
|
583
|
+
pointer-events: none;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
[data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"]:hover:not([data-item-selected="true"]), [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"][data-item-context-hover="true"]:not([data-item-selected="true"]) {
|
|
587
|
+
background-color: var(--trees-bg);
|
|
588
|
+
--truncate-marker-background-overlay-color: transparent;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
[data-item-selected="true"]:has( + [data-item-selected="true"]) {
|
|
592
|
+
border-bottom-right-radius: 0;
|
|
593
|
+
border-bottom-left-radius: 0;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
[data-item-selected="true"] + [data-item-selected="true"] {
|
|
597
|
+
border-top-left-radius: 0;
|
|
598
|
+
border-top-right-radius: 0;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
[data-item-flattened-subitems] {
|
|
602
|
+
align-items: center;
|
|
603
|
+
gap: 2px;
|
|
604
|
+
display: inline-flex;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
[data-item-flattened-subitem]:hover, [data-item-flattened-subitem-drag-target="true"] {
|
|
608
|
+
text-decoration: underline;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
[data-item-section="icon"] {
|
|
612
|
+
color: var(--trees-fg-muted);
|
|
613
|
+
fill: currentColor;
|
|
614
|
+
width: var(--trees-icon-width);
|
|
615
|
+
flex-shrink: 0;
|
|
616
|
+
justify-content: center;
|
|
617
|
+
align-items: center;
|
|
618
|
+
display: flex;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
:where([data-item-section="icon"] > [data-icon-token]) {
|
|
622
|
+
color: var(--trees-fg-muted);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
[data-file-tree-colored-icons="true"] {
|
|
626
|
+
& [data-icon-token="astro"] {
|
|
627
|
+
color: var(--trees-file-icon-color-astro);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
& [data-icon-token="babel"] {
|
|
631
|
+
color: var(--trees-file-icon-color-babel);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
& [data-icon-token="bash"] {
|
|
635
|
+
color: var(--trees-file-icon-color-bash);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
& [data-icon-token="biome"] {
|
|
639
|
+
color: var(--trees-file-icon-color-biome);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
& [data-icon-token="bootstrap"] {
|
|
643
|
+
color: var(--trees-file-icon-color-bootstrap);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
& [data-icon-token="browserslist"] {
|
|
647
|
+
color: var(--trees-file-icon-color-browserslist);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
& [data-icon-token="bun"] {
|
|
651
|
+
color: var(--trees-file-icon-color-bun);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
& [data-icon-token="c"] {
|
|
655
|
+
color: var(--trees-file-icon-color-c);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
& [data-icon-token="cpp"] {
|
|
659
|
+
color: var(--trees-file-icon-color-cpp);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
& [data-icon-token="claude"] {
|
|
663
|
+
color: var(--trees-file-icon-color-claude);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
& [data-icon-token="css"] {
|
|
667
|
+
color: var(--trees-file-icon-color-css);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
& [data-icon-token="database"] {
|
|
671
|
+
color: var(--trees-file-icon-color-database);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
& [data-icon-token="default"] {
|
|
675
|
+
color: var(--trees-file-icon-color-default);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
& [data-icon-token="docker"] {
|
|
679
|
+
color: var(--trees-file-icon-color-docker);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
& [data-icon-token="eslint"] {
|
|
683
|
+
color: var(--trees-file-icon-color-eslint);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
& [data-icon-token="git"] {
|
|
687
|
+
color: var(--trees-file-icon-color-git);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
& [data-icon-token="go"] {
|
|
691
|
+
color: var(--trees-file-icon-color-go);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
& [data-icon-token="graphql"] {
|
|
695
|
+
color: var(--trees-file-icon-color-graphql);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
& [data-icon-token="html"] {
|
|
699
|
+
color: var(--trees-file-icon-color-html);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
& [data-icon-token="image"] {
|
|
703
|
+
color: var(--trees-file-icon-color-image);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
& [data-icon-token="javascript"] {
|
|
707
|
+
color: var(--trees-file-icon-color-javascript);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
& [data-icon-token="json"] {
|
|
711
|
+
color: var(--trees-file-icon-color-json);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
& [data-icon-token="markdown"] {
|
|
715
|
+
color: var(--trees-file-icon-color-markdown);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
& [data-icon-token="mcp"] {
|
|
719
|
+
color: var(--trees-file-icon-color-mcp);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
& [data-icon-token="npm"] {
|
|
723
|
+
color: var(--trees-file-icon-color-npm);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
& [data-icon-token="oxc"] {
|
|
727
|
+
color: var(--trees-file-icon-color-oxc);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
& [data-icon-token="postcss"] {
|
|
731
|
+
color: var(--trees-file-icon-color-postcss);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
& [data-icon-token="prettier"] {
|
|
735
|
+
color: var(--trees-file-icon-color-prettier);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
& [data-icon-token="python"] {
|
|
739
|
+
color: var(--trees-file-icon-color-python);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
& [data-icon-token="react"] {
|
|
743
|
+
color: var(--trees-file-icon-color-react);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
& [data-icon-token="ruby"] {
|
|
747
|
+
color: var(--trees-file-icon-color-ruby);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
& [data-icon-token="rust"] {
|
|
751
|
+
color: var(--trees-file-icon-color-rust);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
& [data-icon-token="sass"] {
|
|
755
|
+
color: var(--trees-file-icon-color-sass);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
& [data-icon-token="svg"] {
|
|
759
|
+
color: var(--trees-file-icon-color-svg);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
& [data-icon-token="svelte"] {
|
|
763
|
+
color: var(--trees-file-icon-color-svelte);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
& [data-icon-token="svgo"] {
|
|
767
|
+
color: var(--trees-file-icon-color-svgo);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
& [data-icon-token="swift"] {
|
|
771
|
+
color: var(--trees-file-icon-color-swift);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
& [data-icon-token="table"] {
|
|
775
|
+
color: var(--trees-file-icon-color-table);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
& [data-icon-token="text"] {
|
|
779
|
+
color: var(--trees-file-icon-color-text);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
& [data-icon-token="tailwind"] {
|
|
783
|
+
color: var(--trees-file-icon-color-tailwind);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
& [data-icon-token="terraform"] {
|
|
787
|
+
color: var(--trees-file-icon-color-terraform);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
& [data-icon-token="typescript"] {
|
|
791
|
+
color: var(--trees-file-icon-color-typescript);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
& [data-icon-token="vite"] {
|
|
795
|
+
color: var(--trees-file-icon-color-vite);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
& [data-icon-token="vscode"] {
|
|
799
|
+
color: var(--trees-file-icon-color-vscode);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
& [data-icon-token="vue"] {
|
|
803
|
+
color: var(--trees-file-icon-color-vue);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
& [data-icon-token="wasm"] {
|
|
807
|
+
color: var(--trees-file-icon-color-wasm);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
& [data-icon-token="webpack"] {
|
|
811
|
+
color: var(--trees-file-icon-color-webpack);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
& [data-icon-token="yml"] {
|
|
815
|
+
color: var(--trees-file-icon-color-yml);
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
& [data-icon-token="zig"] {
|
|
819
|
+
color: var(--trees-file-icon-color-zig);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
& [data-icon-token="zip"] {
|
|
823
|
+
color: var(--trees-file-icon-color-zip);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
[data-icon-name="file-tree-icon-chevron"] {
|
|
828
|
+
&[data-align-capitals="false"] {
|
|
829
|
+
transform: translate(0, var(--trees-icon-nudge));
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
&[data-align-capitals="true"] {
|
|
833
|
+
transform: translate(0);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
[data-item-section="content"] {
|
|
838
|
+
text-align: start;
|
|
839
|
+
text-overflow: ellipsis;
|
|
840
|
+
flex: 0 auto;
|
|
841
|
+
min-width: 0;
|
|
842
|
+
max-width: 100%;
|
|
843
|
+
overflow: hidden;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
[data-item-section="decoration"] {
|
|
847
|
+
text-align: end;
|
|
848
|
+
min-width: 0;
|
|
849
|
+
color: var(--trees-fg-muted);
|
|
850
|
+
flex: 1 1 0;
|
|
851
|
+
justify-content: flex-end;
|
|
852
|
+
display: flex;
|
|
853
|
+
overflow: hidden;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
[data-item-section="decoration"] > span {
|
|
857
|
+
text-overflow: ellipsis;
|
|
858
|
+
white-space: nowrap;
|
|
859
|
+
justify-content: flex-end;
|
|
860
|
+
align-items: center;
|
|
861
|
+
min-width: 0;
|
|
862
|
+
max-width: 100%;
|
|
863
|
+
display: inline-flex;
|
|
864
|
+
overflow: hidden;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
[data-item-section="git"], [data-item-section="action"] {
|
|
868
|
+
flex: none;
|
|
869
|
+
justify-content: center;
|
|
870
|
+
align-items: center;
|
|
871
|
+
display: flex;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
[data-item-section="git"] {
|
|
875
|
+
width: var(--trees-git-lane-width);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
[data-item-section="action"] {
|
|
879
|
+
width: var(--trees-action-lane-width);
|
|
880
|
+
color: var(--trees-fg-muted);
|
|
881
|
+
fill: currentColor;
|
|
882
|
+
pointer-events: none;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
[data-item-section="git"] > span, [data-item-section="action"] > span {
|
|
886
|
+
justify-content: center;
|
|
887
|
+
align-items: center;
|
|
888
|
+
width: 100%;
|
|
889
|
+
display: inline-flex;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
[data-item-action-affordance="decorative"] {
|
|
893
|
+
opacity: .85;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
[data-item-rename-input] {
|
|
897
|
+
appearance: none;
|
|
898
|
+
width: 100%;
|
|
899
|
+
min-width: 0;
|
|
900
|
+
height: calc(var(--trees-row-height) - 4px);
|
|
901
|
+
font-family: inherit;
|
|
902
|
+
font-size: inherit;
|
|
903
|
+
color: inherit;
|
|
904
|
+
box-sizing: border-box;
|
|
905
|
+
background-color: #0000;
|
|
906
|
+
border: 0;
|
|
907
|
+
outline: none;
|
|
908
|
+
padding-inline: 6px;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
[data-item-section="content"]:has([data-item-rename-input]) ~ [data-item-section="action"], [data-item-section="content"]:has([data-item-rename-input]) ~ [data-item-section="decoration"] {
|
|
912
|
+
display: none;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
[aria-expanded="false"][data-item-type="folder"] > [data-item-section="icon"] > [data-icon-name="file-tree-icon-chevron"] {
|
|
916
|
+
&[data-align-capitals="true"] {
|
|
917
|
+
transform: rotate(-90deg)
|
|
918
|
+
translate(calc(var(--trees-icon-nudge) / 2),
|
|
919
|
+
calc(var(--trees-icon-nudge) / 2));
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
&[data-align-capitals="false"] {
|
|
923
|
+
transform: rotate(-90deg)
|
|
924
|
+
translate(calc(var(--trees-icon-nudge) / 2 * -1),
|
|
925
|
+
calc(var(--trees-icon-nudge) / 2));
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
[data-item-section="spacing"] {
|
|
930
|
+
height: var(--trees-row-height);
|
|
931
|
+
padding-left: calc(calc(var(--trees-icon-width) / 2) - .5px);
|
|
932
|
+
flex-direction: row;
|
|
933
|
+
justify-content: center;
|
|
934
|
+
align-items: center;
|
|
935
|
+
display: flex;
|
|
936
|
+
|
|
937
|
+
&:empty {
|
|
938
|
+
padding-left: 0;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
[data-item-section="spacing-item"] {
|
|
943
|
+
border-left: 1px solid var(--trees-indent-guide-bg);
|
|
944
|
+
height: 100%;
|
|
945
|
+
margin-right: calc(var(--trees-level-gap) - 1px);
|
|
946
|
+
opacity: 0;
|
|
947
|
+
transition: opacity .15s;
|
|
948
|
+
display: inline-block;
|
|
949
|
+
transform: translateX(-.25px);
|
|
950
|
+
|
|
951
|
+
& + & {
|
|
952
|
+
margin-left: calc(var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - .5px);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
:host(:hover) [data-item-section="spacing-item"] {
|
|
957
|
+
opacity: .75;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
[data-item-contains-git-change="true"] > [data-item-section="git"] {
|
|
961
|
+
color: var(--trees-git-modified-color);
|
|
962
|
+
opacity: .5;
|
|
963
|
+
fill: currentColor;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
[data-item-git-status] {
|
|
967
|
+
& > :where([data-item-section="icon"]) > :where(:not([data-icon-name="file-tree-icon-chevron"])), & > [data-item-section="content"] {
|
|
968
|
+
color: var(--trees-item-git-status-color);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
& > [data-item-section="git"] {
|
|
972
|
+
color: var(--trees-item-git-status-color);
|
|
973
|
+
font-weight: var(--trees-font-weight-semibold);
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
[data-item-git-status="added"] {
|
|
978
|
+
--trees-item-git-status-color: var(--trees-git-added-color);
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
[data-item-git-status="deleted"] {
|
|
982
|
+
--trees-item-git-status-color: var(--trees-git-deleted-color);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
[data-item-git-status="ignored"] {
|
|
986
|
+
--trees-item-git-status-color: var(--trees-git-ignored-color);
|
|
987
|
+
|
|
988
|
+
& > [data-item-section="icon"] {
|
|
989
|
+
opacity: .5;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
[data-item-section="git"] [data-icon-name="file-tree-icon-dot"] {
|
|
994
|
+
transform: translateY(calc(.65ex - 50%));
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
[data-item-git-status="modified"] {
|
|
998
|
+
--trees-item-git-status-color: var(--trees-git-modified-color);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
[data-item-git-status="renamed"] {
|
|
1002
|
+
--trees-item-git-status-color: var(--trees-git-renamed-color);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
[data-item-git-status="untracked"] {
|
|
1006
|
+
--trees-item-git-status-color: var(--trees-git-untracked-color);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
[data-item-drag-target="true"] {
|
|
1010
|
+
background-color: var(--trees-selected-bg);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
[data-item-dragging="true"] {
|
|
1014
|
+
opacity: .5;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
[data-item-section="lock"] {
|
|
1018
|
+
color: var(--trees-fg-muted);
|
|
1019
|
+
flex: none;
|
|
1020
|
+
align-items: center;
|
|
1021
|
+
margin-left: auto;
|
|
1022
|
+
display: flex;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
[data-item-section="lock"] svg {
|
|
1026
|
+
display: block;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
[data-type="header-slot"] {
|
|
1030
|
+
flex: none;
|
|
1031
|
+
display: block;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
[data-type="context-menu-wash"] {
|
|
1035
|
+
z-index: 3;
|
|
1036
|
+
touch-action: none;
|
|
1037
|
+
background-color: #0000;
|
|
1038
|
+
position: absolute;
|
|
1039
|
+
inset: 0;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
[data-type="context-menu-anchor"] {
|
|
1043
|
+
top: 0;
|
|
1044
|
+
right: var(--trees-context-menu-trigger-inline-offset);
|
|
1045
|
+
z-index: 4;
|
|
1046
|
+
align-items: center;
|
|
1047
|
+
display: none;
|
|
1048
|
+
position: absolute;
|
|
1049
|
+
|
|
1050
|
+
&[data-visible="true"] {
|
|
1051
|
+
display: flex;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
[data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="context-menu-anchor"] {
|
|
1056
|
+
display: none;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
[data-type="context-menu-anchor"] > slot[name="context-menu"] {
|
|
1060
|
+
flex: 0 0 0;
|
|
1061
|
+
width: 0;
|
|
1062
|
+
min-width: 0;
|
|
1063
|
+
display: block;
|
|
1064
|
+
overflow: visible;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
[data-type="context-menu-trigger"] {
|
|
1068
|
+
all: unset;
|
|
1069
|
+
width: var(--trees-action-lane-width);
|
|
1070
|
+
color: var(--trees-fg-muted);
|
|
1071
|
+
fill: currentColor;
|
|
1072
|
+
cursor: pointer;
|
|
1073
|
+
font-family: var(--trees-font-family);
|
|
1074
|
+
font-size: var(--trees-font-size);
|
|
1075
|
+
border-top-right-radius: var(--trees-border-radius);
|
|
1076
|
+
border-bottom-right-radius: var(--trees-border-radius);
|
|
1077
|
+
margin: var(--trees-focus-ring-width);
|
|
1078
|
+
height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);
|
|
1079
|
+
border-width: 0;
|
|
1080
|
+
justify-content: center;
|
|
1081
|
+
align-items: center;
|
|
1082
|
+
transition: color .12s;
|
|
1083
|
+
display: flex;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
[data-type="context-menu-trigger"]:hover, [data-type="context-menu-trigger"][aria-expanded="true"] {
|
|
1087
|
+
color: var(--trees-fg);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
[data-truncate-container] {
|
|
1091
|
+
--truncate-internal-marker-fade-width: var(--truncate-marker-fade-width, 2px);
|
|
1092
|
+
--truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);
|
|
1093
|
+
--truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);
|
|
1094
|
+
--truncate-internal-middle-marker-opacity: var(--truncate-middle-marker-opacity, 80%);
|
|
1095
|
+
--truncate-internal-marker-background-color: var(--truncate-marker-background-color, light-dark(#fff, #000));
|
|
1096
|
+
--truncate-internal-marker-background-overlay-color: var(--truncate-marker-background-overlay-color, transparent);
|
|
1097
|
+
--truncate-internal-marker-block-inset: var(--truncate-marker-block-inset, 0px);
|
|
1098
|
+
--truncate-internal-marker-fade-out-duration: var(--truncate-marker-fade-out-duration, 0s);
|
|
1099
|
+
--truncate-internal-marker-fade-in-duration: var(--truncate-marker-fade-in-duration, .1s);
|
|
1100
|
+
--truncate-internal-fade-marker-color: var(--truncate-fade-marker-color, #000);
|
|
1101
|
+
--truncate-internal-fade-marker-width: var(--truncate-fade-marker-width, .2lh);
|
|
1102
|
+
--truncate-internal-single-line-height: 1lh;
|
|
1103
|
+
height: var(--truncate-internal-single-line-height);
|
|
1104
|
+
min-width: 0;
|
|
1105
|
+
margin-top: -1px;
|
|
1106
|
+
margin-bottom: -1px;
|
|
1107
|
+
overflow: hidden;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
[data-truncate-marker] {
|
|
1111
|
+
height: var(--truncate-internal-single-line-height);
|
|
1112
|
+
padding-block: var(--truncate-internal-marker-block-inset);
|
|
1113
|
+
box-sizing: border-box;
|
|
1114
|
+
z-index: 2;
|
|
1115
|
+
color: color-mix(in srgb,
|
|
1116
|
+
currentColor var(--truncate-internal-marker-opacity),
|
|
1117
|
+
transparent);
|
|
1118
|
+
opacity: 0;
|
|
1119
|
+
transition: opacity var(--truncate-internal-marker-fade-out-duration)
|
|
1120
|
+
ease-in-out;
|
|
1121
|
+
background-clip: content-box;
|
|
1122
|
+
align-items: center;
|
|
1123
|
+
display: flex;
|
|
1124
|
+
position: absolute;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
@container measure (height > 1lh) {
|
|
1128
|
+
[data-truncate-marker] {
|
|
1129
|
+
opacity: 1;
|
|
1130
|
+
transition: opacity var(--truncate-internal-marker-fade-in-duration)
|
|
1131
|
+
ease-in-out;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
[data-truncate-grid] {
|
|
1136
|
+
display: grid;
|
|
1137
|
+
position: relative;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
[data-truncate-content="visible"] {
|
|
1141
|
+
white-space: nowrap;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
[data-truncate-content="overflow"] {
|
|
1145
|
+
opacity: 0;
|
|
1146
|
+
pointer-events: none;
|
|
1147
|
+
user-select: none;
|
|
1148
|
+
word-break: break-all;
|
|
1149
|
+
margin-top: calc(-1 * var(--truncate-internal-single-line-height));
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
[data-truncate-marker-cell] {
|
|
1153
|
+
user-select: none;
|
|
1154
|
+
pointer-events: none;
|
|
1155
|
+
overflow: visible;
|
|
1156
|
+
container: measure / size;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
[data-truncate-container="truncate"] {
|
|
1160
|
+
& [data-truncate-grid] {
|
|
1161
|
+
grid-template-columns: minmax(0, max-content) 0;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
& [data-truncate-marker] {
|
|
1165
|
+
right: 0;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
& [data-truncate-fade] {
|
|
1169
|
+
margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
[data-truncate-container="fruncate"] {
|
|
1174
|
+
& [data-truncate-grid] {
|
|
1175
|
+
grid-template-columns: 0 minmax(0, max-content) auto;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
& [data-truncate-content] {
|
|
1179
|
+
direction: rtl;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
& [data-truncate-content] > span {
|
|
1183
|
+
unicode-bidi: plaintext;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
& [data-truncate-fade] {
|
|
1187
|
+
margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
[data-truncate-variant="default"] {
|
|
1192
|
+
& [data-truncate-marker] {
|
|
1193
|
+
background-color: var(--truncate-internal-marker-background-color);
|
|
1194
|
+
background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),
|
|
1195
|
+
var(--truncate-internal-marker-background-overlay-color));
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
& [data-truncate-marker]:after, & [data-truncate-marker]:before {
|
|
1199
|
+
content: "";
|
|
1200
|
+
width: calc(var(--truncate-internal-marker-fade-width) +
|
|
1201
|
+
var(--truncate-internal-marker-gap));
|
|
1202
|
+
height: max(0px,
|
|
1203
|
+
calc(var(--truncate-internal-single-line-height) -
|
|
1204
|
+
var(--truncate-internal-marker-block-inset) * 2));
|
|
1205
|
+
background-color: var(--truncate-internal-marker-background-color);
|
|
1206
|
+
background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),
|
|
1207
|
+
var(--truncate-internal-marker-background-overlay-color));
|
|
1208
|
+
-webkit-mask-image: linear-gradient(var(--truncate-internal-fade-dir),
|
|
1209
|
+
#000 0%,
|
|
1210
|
+
#000 var(--truncate-internal-marker-gap),
|
|
1211
|
+
transparent 100%);
|
|
1212
|
+
mask-image: linear-gradient(var(--truncate-internal-fade-dir),
|
|
1213
|
+
#000 0%,
|
|
1214
|
+
#000 var(--truncate-internal-marker-gap),
|
|
1215
|
+
transparent 100%);
|
|
1216
|
+
position: absolute;
|
|
1217
|
+
inset-block-start: var(--truncate-internal-marker-block-inset);
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
& [data-truncate-marker]:after {
|
|
1221
|
+
--truncate-internal-fade-dir: to right;
|
|
1222
|
+
right: calc(-1 *
|
|
1223
|
+
(
|
|
1224
|
+
var(--truncate-internal-marker-fade-width) +
|
|
1225
|
+
var(--truncate-internal-marker-gap)
|
|
1226
|
+
));
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
& [data-truncate-marker]:before {
|
|
1230
|
+
--truncate-internal-fade-dir: to left;
|
|
1231
|
+
left: calc(-1 *
|
|
1232
|
+
(
|
|
1233
|
+
var(--truncate-internal-marker-fade-width) +
|
|
1234
|
+
var(--truncate-internal-marker-gap)
|
|
1235
|
+
));
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
[data-truncate-variant="fade"] {
|
|
1240
|
+
& [data-truncate-marker] {
|
|
1241
|
+
background: none;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
[data-truncate-fade] {
|
|
1246
|
+
box-shadow: 0 0 calc(var(--truncate-internal-fade-marker-width) / 2)
|
|
1247
|
+
var(--truncate-internal-fade-marker-color),
|
|
1248
|
+
0 0 var(--truncate-internal-fade-marker-width)
|
|
1249
|
+
var(--truncate-internal-fade-marker-color);
|
|
1250
|
+
width: calc(var(--truncate-internal-fade-marker-width) * 2);
|
|
1251
|
+
height: calc(var(--truncate-internal-single-line-height) -
|
|
1252
|
+
(var(--truncate-internal-fade-marker-width) * 2));
|
|
1253
|
+
margin: var(--truncate-internal-fade-marker-width) 0;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
[data-truncate-group-container="middle"] {
|
|
1257
|
+
& [data-truncate-container] {
|
|
1258
|
+
--truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
min-width: 0;
|
|
1262
|
+
display: flex;
|
|
1263
|
+
|
|
1264
|
+
& > div {
|
|
1265
|
+
min-width: 0;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
& > div[data-truncate-segment-priority="1"] {
|
|
1269
|
+
flex: 0 1 max-content;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
& > div[data-truncate-segment-priority="2"] {
|
|
1273
|
+
flex: 0 999999 max-content;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
@layer theme, unsafe;
|
|
1279
|
+
`;function ai(e){return`@layer base, unsafe;
|
|
1280
|
+
@layer base {
|
|
1281
|
+
${e}
|
|
1282
|
+
}`}function zl(e){return`@layer base, unsafe;
|
|
1283
|
+
@layer unsafe {
|
|
1284
|
+
${e}
|
|
1285
|
+
}`}var ql=new WeakMap;function Ef(e){let t=ql.get(e);if(t!=null)return t;let n=document.createElement("div");n.setAttribute(Bl,"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(),ql.set(e,i),i}function Wl(e,t){if(!e.isConnected)return;let n=Ef(t);if(n==null)return;let r=t.querySelector(`style[${_o}]`),i=r instanceof HTMLStyleElement?r:document.createElement("style");if(!(r instanceof HTMLStyleElement))i.setAttribute(_o,""),t.appendChild(i);i.textContent=`:host { ${Hl}: ${n}px; }`}var li;function Tf(e){if(typeof CSSStyleSheet<"u"&&typeof CSSStyleSheet.prototype.replaceSync==="function"&&"adoptedStyleSheets"in e){if(li==null)li=new CSSStyleSheet,li.replaceSync(ai(si));let t=!1;try{e.adoptedStyleSheets=[li],t=!0}catch{}if(t){e.querySelector(`style[${ri}]`)?.remove();return}}if(e.querySelector("style[data-file-tree-style]")==null){let t=document.createElement("style");t.setAttribute(ri,""),t.textContent=ai(si),e.prepend(t)}}function ci(e,t){Pf(e,t),Tf(t),Wl(e,t)}function Pf(e,t){let n=e.querySelector('template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]');if(!(n instanceof HTMLTemplateElement))return;if(t.childNodes.length>0)return;if(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute("shadowrootmode"))n.remove()}if(typeof HTMLElement<"u"&&customElements.get("file-tree-container")==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let t=this.shadowRoot??this.attachShadow({mode:"open"});ci(this,t)}}if(customElements.define(xo,e),typeof document<"u")for(let t of Array.from(document.querySelectorAll(xo))){if(!(t instanceof HTMLElement))continue;ci(t,t.shadowRoot??t.attachShadow({mode:"open"}))}}var jl=(e)=>e.startsWith("f::")?e.slice(3):e;function Rf(e){let t=e.lastIndexOf("/");if(t<0)return{parentPath:"",baseName:e};return{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function Df(e,t){return e===""?t:`${e}/${t}`}function $l({files:e,path:t,isFolder:n,nextBasename:r}){let i=jl(t),o=r.trim();if(o.length===0)return{error:"Name cannot be empty."};if(o.includes("/"))return{error:'Name cannot include "/".'};let{parentPath:s,baseName:a}=Rf(i);if(o===a)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let l=Df(s,o),c=Array(e.length),d=new Set;if(!n){let p=`${l}/`,g=!1;for(let v=0;v<e.length;v++){let S=e[v];if(S!==i&&S.startsWith(p))return{error:`"${l}" already exists.`};let C=S===i?l:S;if(d.has(C))return{error:`"${l}" already exists.`};if(d.add(C),c[v]=C,S===i)g=!0}if(!g)return{error:"Could not find the selected file to rename."};return{nextFiles:c,sourcePath:i,destinationPath:l,isFolder:n}}let f=`${i}/`,u=`${l}/`,m=0;for(let p=0;p<e.length;p++){let g=e[p],v=g===i||g.startsWith(f);if(!v&&(g===l||g.startsWith(u)))return{error:`"${l}" already exists.`};let S=v?`${l}${g.slice(i.length)}`:g;if(d.has(S))return{error:`"${l}" already exists.`};if(d.add(S),c[p]=S,v)m++}if(m===0)return{error:"Could not find the selected folder to rename."};return{nextFiles:c,sourcePath:i,destinationPath:l,isFolder:n}}function Mf(e){return e.endsWith("/")}function Af(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 Nf(e){let t=[],n=new Set;for(let i of e){if(n.has(i))continue;n.add(i),t.push(i)}let r=new Set;for(let i of t.toSorted((o,s)=>{if(o.length!==s.length)return o.length-s.length;return o.localeCompare(s)})){let o=(i.endsWith("/")?i.slice(0,-1):i).split("/"),s=!1;for(let a=0;a<o.length-1;a+=1){let l=`${o.slice(0,a+1).join("/")}/`;if(!r.has(l))continue;s=!0;break}if(s)continue;r.add(i)}return t.filter((i)=>r.has(i))}function Ul(e,t){return t.includes(e)?Nf(t):[e]}function Kl(e,t){if(e===t)return!0;if(e==null||t==null)return!1;return e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function Eo(e,t){return{draggedPaths:e,target:t}}function To(e,t){if(t.kind!=="directory"||t.directoryPath==null)return!1;for(let n of e){if(!Mf(n))continue;if(t.directoryPath===n||t.directoryPath.startsWith(n))return!0}return!1}function Lf(e,t){if(t.kind==="root"||t.directoryPath==null)return Af(e);return t.directoryPath}function Gl(e,t){let n=e.map((r)=>{let i=Lf(r,t);if(i===r)return null;return{from:r,to:i,type:"move"}}).filter((r)=>r!=null);if(n.length===0)return null;return{operations:n,result:{draggedPaths:e,operation:n.length===1?"move":"batch",target:t}}}function Ff(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 Po(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 o=i.paths;if(r==null)return{paths:o,preparedInput:i};if(!Ff(hr.preparePaths(r,n==null?{}:{sort:n}),o))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:o,preparedInput:i}}function Ro(e){return e.operation==="add"||e.operation==="remove"||e.operation==="move"||e.operation==="batch"}function Bf(e,t,n){if(e===t)return n;let r=t.endsWith("/")?t:`${t}/`;if(!e.startsWith(r))return e;return`${n.endsWith("/")?n:`${n}/`}${e.slice(r.length)}`}function Hf(e,t){if(e===t)return!0;let n=t.endsWith("/")?t:`${t}/`;return e.startsWith(n)}function Sn(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 Hf(e,t.path)?n?e:null:e;case"move":return Bf(e,t.from,t.to);case"batch":{let r=e;for(let i of t.events)if(r=Sn(r,i,n),r==null)return null;return r}}}function ui(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function Yl(e){switch(e.operation){case"add":return{...ui(e),operation:"add",path:e.path};case"remove":return{...ui(e),operation:"remove",path:e.path,recursive:e.recursive};case"move":return{...ui(e),from:e.from,operation:"move",to:e.to}}}function Vf(e){return{...ui(e),events:e.events.filter((t)=>t.operation==="add"||t.operation==="remove"||t.operation==="move").map((t)=>Yl(t)),operation:"batch"}}function Xl(e){switch(e.operation){case"add":case"remove":case"move":return Yl(e);case"batch":return Vf(e);default:return null}}function di(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function wt(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((r,i)=>`${n.slice(0,i+1).join("/")}/`)}function hi(e){return wt(e).at(-1)??null}function Do(e,t){if(t==null)return e;return e.startsWith(t)?e.slice(t.length):e}function mr(e){return e.endsWith("/")}var Mo=(e)=>e.toLowerCase();function Ql(e){let t=e.endsWith("/")?e.slice(0,-1):e,n=t.lastIndexOf("/");return n<0?t:t.slice(n+1)}function Ao(e){return e.endsWith("/")?e.slice(0,-1):e}function No(e,t){return t&&!e.endsWith("/")?`${e}/`:e}var Jl=(e)=>{let t=e.trim();if(t.length===0)return"";return(t.includes("\\")?t.replaceAll("\\","/"):t).toLowerCase()};var Lo=Symbol("FILE_TREE_RENAME_VIEW"),Of=512,zf=512;function qf(e){return e==="top"||e==="center"?e:"nearest"}function Wf(e,t,n){if(e===0)return-1;if(n!=null){let r=t(n);if(r!=null)return r;let i=wt(n);for(let o=i.length-1;o>=0;o-=1){let s=i[o];if(s==null)continue;let a=t(s);if(a!=null)return a}}return 0}function jf(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??((i)=>e.visibleIndexByPath.get(i)??null);return{focusedIndex:Wf(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var Zl=class e{static{Object.defineProperty(e.prototype,Lo,{configurable:!0,value(){return{cancel:()=>{this.#_e()},commit:()=>{this.#Ee()},getPath:()=>this.#s,getValue:()=>this.#g,isActive:()=>this.#s!=null,setValue:(t)=>{this.#Te(t)}}},writable:!0})}#e;#t=new Set;#c=new Map;#u=null;#a=null;#V=new Map;#O=new Map;#v=-1;#r=null;#y=!1;#T=(t)=>-1;#b=new Map;#m=null;#h=null;#w=null;#I=null;#f=null;#z;#q;#N;#i=[];#W=new Int32Array(0);#j=new Int32Array(0);#J=void 0;#P=!1;#s=null;#g="";#R=!1;#k=new Set;#$=[];#U;#K=null;#l=null;#L=null;#M=null;#x=null;#F=null;#Z=null;#ke=0;#S=null;#o=new Set;#G=0;#n;#ne=0;#re=!1;#p=0;#Y;constructor(t){let{dragAndDrop:n,fileTreeSearchMode:r,initialSearchQuery:i,initialSelectedPaths:o,renaming:s,onSearchChange:a,paths:l,preparedInput:c,...d}=t,f=Po({paths:l,preparedInput:c},"constructor",d.sort);if(this.#e=d,n!=null&&n!==!1)this.#u=n===!0?{}:n;if(this.#P=s!=null&&s!==!1,s!=null&&s!==!1&&s!==!0)this.#J=s.canRename,this.#q=s.onError,this.#z=s.onRename;this.#N=a,this.#U=r??"hide-non-matches",this.#n=this.#oe(f.paths,f.preparedInput);let u=o?.map((p)=>this.#A(p)).filter((p)=>p!=null)??[],m=u.at(-1)??null;if(u.length>0)this.#o=new Set(u),this.#S=m,this.#G=1;if(this.#H(m,!1),i!=null)this.#X(i,!1);this.#Y=this.#Ce()}destroy(){this.#Y?.(),this.#Y=null,this.#c.clear(),this.#t.clear(),this.#b.clear(),this.#a=null,this.#ae()}focusFirstItem(){if(this.#_().length>0)this.#E(0)}focusLastItem(){if(this.#p<=0)return;this.#D(),this.#E(this.#p-1)}focusNextItem(){this.#Se(1)}focusParentItem(){if(this.#r==null)return;let t=hi(this.#r);if(t==null)return;let n=this.#B(t);if(n>=0)this.#E(n)}focusPath(t){let n=this.#n.getPathInfo(t)?.path??null;if(n==null)return;this.#D();let r=this.#B(n);if(r>=0)this.#E(r)}scrollToPath(t,n){let r=this.#n.getPathInfo(t)?.path??null;if(r==null)return;this.#D();let i=this.#He(r);if(i<0)return;if(this.#le(i)==null)return;if(n?.focus!==!1)this.#E(i,!1);this.#Z={id:this.#ke+=1,offset:qf(n?.offset),visibleIndex:i},this.#d()}focusMountedPathFromInput(t){let n=this.#n.getPathInfo(t)?.path??null;if(n==null)return;let r=this.#B(n);if(r>=0)this.#E(r)}focusNearestPath(t){let n=this.resolveNearestVisiblePath(t);if(n==null)return null;let r=this.#B(n);if(r>=0)return this.#E(r),this.#_()[r]??n;return null}focusPreviousItem(){this.#Se(-1)}getFocusedIndex(){return this.#v}getFocusedItem(){return this.#r==null?null:this.#ce(this.#r)}getFocusedPath(){return this.#r}getScrollRequest(){return this.#Z}clearScrollRequest(t){if(this.#Z?.id===t)this.#Z=null}resolveNearestVisiblePath(t){let n=this.#_();if(this.#p===0)return null;if(t==null)return this.#r??n[0]??null;let r=this.#n.getPathInfo(t)?.path??t,i=this.#B(r);if(i>=0)return n[i]??r;let o=this.#Pe(r);if(o!=null)return o;return this.#r??n[0]??null}getSelectedPaths(){return[...this.#o]}getSelectionVersion(){return this.#G}getVisibleCount(){return this.#p}getVisibleRows(t,n){if(n<t||this.#p===0)return[];let r=Math.max(0,t),i=Math.min(this.#p-1,n);if(i<r)return[];let o=i-r+1;if(this.#x==null&&!this.#y&&i>=this.#i.length&&o<=zf){let s=[];for(let a=r;a<=i;a+=1){let l=this.#n.getVisibleRowContext(a);if(l==null)break;s.push(this.#ue(l))}return s}if(!this.#y&&i>=this.#i.length)this.#D();if(this.#x!=null){let s=Array.from({length:i-r+1},(d,f)=>this.#ve(r+f)),a=new Map,l=s[0]??-1,c=l;for(let d=1;d<=s.length;d+=1){let f=s[d];if(f!=null&&f===c+1){c=f;continue}if(l>=0)this.#n.getVisibleSlice(l,c).forEach((u,m)=>{a.set(l+m,u)});if(f==null){l=-1,c=-1;continue}l=f,c=f}return Array.from({length:i-r+1},(d,f)=>{let u=r+f,m=this.#ve(u),p=a.get(m),g=this.#i[m];if(p==null||g==null)throw Error(`Missing projection row for filtered visible index ${String(u)}`);return this.#ie(p,u,m,{ancestorPaths:this.#fe(m),path:g})})}return this.#n.getVisibleSlice(r,i).map((s,a)=>{let l=r+a,c=this.#i[l];if(c==null)throw Error(`Missing projection path for visible index ${String(l)}`);return this.#ie(s,l,l,{ancestorPaths:this.#fe(l),path:c})})}getStickyRowCandidates(t,n){if(this.#x!=null)return null;if(this.#p===0||t<=0||n<=0)return[];let r=[];for(let i=0;i<this.#p;i+=1){let o=t+i*n,s=Math.min(this.#p-1,Math.floor(o/n)),a=this.#de(s,i)??(s>0?this.#de(s-1,i):void 0);if(a==null)break;r.push({row:this.#ue(a),subtreeEndIndex:a.subtreeEndIndex})}return r}getItem(t){let n=this.#n.getPathInfo(t);return n==null?null:this.#ce(n.path,n)}resolveMountedDirectoryPathFromInput(t){let n=this.#n.getPathInfo(t);return n?.kind==="directory"?n.path:null}toggleMountedDirectoryFromInput(t){let n=this.resolveMountedDirectoryPathFromInput(t);if(n==null)return;this.#xe(n)}selectAllVisiblePaths(){this.#D();let t=[...this.#_()];this.#C(t,this.#r??this.#S)}selectOnlyPath(t){let n=this.#A(t);if(n==null)return;this.#C([n],n)}selectOnlyMountedPathFromInput(t){this.#C([t],t)}selectPath(t){let n=this.#A(t);if(n==null||this.#o.has(n))return;this.#C([...this.#o,n])}deselectPath(t){let n=this.#A(t);if(n==null||!this.#o.has(n))return;this.#C([...this.#o].filter((r)=>r!==n))}toggleFocusedSelection(){if(this.#r==null)return;this.togglePathSelectionFromInput(this.#r)}togglePathSelection(t){let n=this.#A(t);if(n==null)return;if(this.#o.has(n)){this.deselectPath(n);return}this.selectPath(n)}togglePathSelectionFromInput(t){let n=this.#A(t);if(n==null)return;if(this.#o.has(n)){this.#C([...this.#o].filter((r)=>r!==n),n);return}this.#C([...this.#o,n],n)}selectPathRange(t,n){let r=this.#A(t);if(r==null)return;this.#D();let i=this.#S,o=i==null?-1:this.#te(i),s=this.#te(r);if(o===-1||s===-1){let f=n?[...this.#o,r]:[r];this.#C(f,r);return}let[a,l]=o<=s?[o,s]:[s,o],c=this.#_().slice(a,l+1),d=n?[...this.#o,...c]:c;this.#C(d,i)}extendSelectionFromFocused(t){if(this.#r==null)return;let n=this.#v;if(n===-1)return;let r=Math.min(this.#p-1,Math.max(0,n+t));if(r===n)return;if(!this.#y&&r>=this.#i.length)this.#D();let i=this.#_(),o=i[n]??null,s=i[r]??null;if(o==null||s==null)return;let a=new Set(this.#o);if(a.has(o)&&a.has(s))a.delete(o);else a.add(s);this.#C([...a],this.#S??o,!1),this.#E(r)}getDragAndDropConfig(){return this.#u}isDragAndDropEnabled(){return this.#u!=null}getDragSession(){if(this.#a==null)return null;return{draggedPaths:[...this.#a.draggedPaths],primaryPath:this.#a.primaryPath,target:this.#a.target==null?null:{...this.#a.target}}}startDrag(t){if(this.#u==null)return!1;let n=this.#A(t);if(n==null)return!1;if(this.#l!=null&&this.#l.length>0)return!1;let r=this.getSelectedPaths(),i=Ul(n,r);if(this.#u.canDrag?.(i)===!1)return!1;if(!r.includes(n))this.#C([n],n,!1);return this.#Q(n),this.#a={draggedPaths:i,primaryPath:n,target:null},this.#d(),!0}setDragTarget(t){let n=this.#a;if(n==null)return;let r=t;if(r!=null){let i=Eo(n.draggedPaths,r);if(To(n.draggedPaths,r)||this.#u?.canDrop?.(i)===!1)r=null}if(Kl(n.target,r))return;this.#a={...n,target:r},this.#d()}cancelDrag(){if(this.#a==null)return;this.#a=null,this.#d()}completeDrag(){let t=this.#a;if(t==null)return!1;this.#a=null;let n=t.target==null?null:{...t.target};if(n==null)return this.#d(),!1;let r=Eo(t.draggedPaths,n);if(To(t.draggedPaths,n)||this.#u?.canDrop?.(r)===!1)return this.#d(),!1;let i=Gl(t.draggedPaths,n);if(i==null)return this.#d(),!1;try{if(i.operations.length===1){let o=i.operations[0];if(o==null||o.type!=="move")throw Error("Expected a single move operation for one-item drops");this.#n.move(o.from,o.to,{collision:o.collision})}else this.#Me(i.operations),this.#n.batch(i.operations)}catch(o){return this.#d(),this.#u?.onDropError?.(o instanceof Error?o.message:String(o),r),!1}return this.#u?.onDropComplete?.(i.result),!0}subscribe(t){return this.#t.add(t),t(),()=>{this.#t.delete(t)}}add(t){this.#n.add(t)}remove(t,n={}){this.#n.remove(t,n)}move(t,n,r={}){this.#n.move(t,n,r)}batch(t){this.#n.batch(t)}onMutation(t,n){let r=t,i=n,o=this.#c.get(r);if(o==null)o=new Set,this.#c.set(r,o);return o.add(i),()=>{let s=this.#c.get(r);if(s?.delete(i),s?.size===0)this.#c.delete(r)}}setSearch(t){this.#X(t,!0)}openSearch(t=""){this.#X(t,!0)}closeSearch(){this.#X(null,!0)}isSearchOpen(){return this.#l!==null}getSearchValue(){return this.#l??""}getSearchMatchingPaths(){return this.#$}focusNextSearchMatch(){this.#ye(1)}focusPreviousSearchMatch(){this.#ye(-1)}startRenaming(t=this.#r??"",n={}){if(!this.#P)return!1;let r=this.#n.getPathInfo(t);if(r==null)return!1;let i=r.path,o=mr(i),s=Ao(i);if(this.#J?.({isFolder:o,path:s})===!1)return!1;for(let a of wt(i))if(!this.#n.isExpanded(a))this.#n.expand(a);if(this.#C([i],i,!1),this.#l!=null)this.#X(null,!1),this.#N?.(this.#l);return this.#Q(i),this.#s=i,this.#g=Ql(i),this.#R=n.removeIfCanceled??!1,this.#d(),!0}#_e(){if(this.#s==null)return;let t=this.#s,n=this.#R;if(this.#s=null,this.#g="",this.#R=!1,n){this.remove(t,mr(t)?{recursive:!0}:void 0);return}this.#Q(t),this.#d()}#Ee(){let t=this.#s;if(t==null)return;if(this.#R&&this.#g.trim().length===0){this.#s=null,this.#g="",this.#R=!1,this.remove(t,mr(t)?{recursive:!0}:void 0);return}let n=mr(t),r=$l({files:this.#n.list(),isFolder:n,nextBasename:this.#g,path:Ao(t)});if(this.#s=null,this.#g="",this.#R=!1,"error"in r){this.#Q(t),this.#q?.(r.error),this.#d();return}if(r.sourcePath===r.destinationPath){this.#Q(t),this.#d();return}this.#z?.({destinationPath:r.destinationPath,isFolder:r.isFolder,sourcePath:r.sourcePath}),this.move(No(r.sourcePath,n),No(r.destinationPath,n))}#Te(t){if(this.#s==null||this.#g===t)return;this.#g=t,this.#d()}resetPaths(t,n={}){let r=!Array.isArray(t),i=r?void 0:t,o=r?t:n,s=this.#n.list().length,a=this.#p,l=Po({paths:i,preparedInput:o.preparedInput},"resetPaths",this.#e.sort),c=this.#oe(l.paths,l.preparedInput,o.initialExpandedPaths),d=this.#r,f=this.#s,u=this.getSelectedPaths(),m=this.#S;this.#Y?.(),this.#n=c,this.#b.clear(),this.#ae();let p=u.map((v)=>c.getPathInfo(v)?.path??null).filter((v)=>v!=null),g=!di(this.#o,p);if(this.#o=new Set(p),g)this.#G+=1;if(this.#S=m==null?null:c.getPathInfo(m)?.path??null,this.#s=f==null?null:c.getPathInfo(f)?.path??null,this.#s==null)this.#g="",this.#R=!1;this.#H(d,d!=null||p.length>0||this.#S!=null),this.#Y=this.#Ce(),this.#d(),this.#we({canonicalChanged:!0,operation:"reset",pathCountAfter:l.paths.length,pathCountBefore:s,projectionChanged:!0,usedPreparedInput:o.preparedInput!=null,visibleCountDelta:this.#p-a})}#Pe(t){this.#D();let n=hi(t),r=Do(t,n),i=null,o=null;for(let s of this.#_()){if(hi(s)!==n)continue;let a=Do(s,n);if(a<r){i=s;continue}if(a>r){o=s;break}}return i??o}#B(t){let n=this.#te(t);if(n!==-1)return n;let r=wt(t);for(let i=r.length-1;i>=0;i-=1){let o=r[i];if(o==null)continue;let s=this.#te(o);if(s!==-1)return s}return this.#_().length>0?0:-1}#ce(t,n){let r=this.#b.get(t);if(r!=null)return r;let i=n??this.#n.getPathInfo(t);if(i==null)return null;let o=i.kind==="directory"?this.#Re(i.path):this.#De(i.path);return this.#b.set(i.path,o),o}#ie(t,n,r,i){return{ancestorPaths:i.ancestorPaths,depth:t.depth,flattenedSegments:t.flattenedSegments?.map((o)=>({isTerminal:o.isTerminal,name:o.name,path:o.path})),hasChildren:t.hasChildren,index:n,isExpanded:t.isExpanded,isFlattened:t.isFlattened,isFocused:i.path===this.#r,isSelected:this.#o.has(i.path),kind:t.kind,level:t.depth,name:t.name,path:i.path,posInSet:i.posInSet??this.#W[r]??0,setSize:i.setSize??this.#j[r]??0}}#ue(t){return this.#ie(t.row,t.index,t.index,{ancestorPaths:t.ancestorPaths,path:t.row.path,posInSet:t.posInSet,setSize:t.setSize})}#de(t,n){let r=this.#n.getVisibleRowContext(t);if(r==null)return;let i=r.ancestorRows[n];if(i!=null)return i;return n===r.ancestorRows.length&&r.row.kind==="directory"&&r.row.isExpanded?r:void 0}#he(t){let n=this.#V.get(t);if(n!=null)return n;let r=this.#T(t),i=r<0?[]:[...this.#he(r),r];return this.#V.set(t,i),i}#fe(t){let n=this.#O.get(t);if(n!=null)return n;let r=this.#he(t).map((i)=>this.#i[i]??"").filter((i)=>i!=="");return this.#O.set(t,r),r}#pe(t){this.#n.collapse(t)}#C(t,n=this.#S,r=!0){let i=[...new Set(t)],o=!di(this.#o,i),s=this.#S!==n;if(!o&&!s)return;if(this.#o=new Set(i),this.#S=n,o)this.#G+=1;if(r)this.#d()}#Re(t){return{collapse:()=>{this.#pe(t)},deselect:()=>{this.deselectPath(t)},expand:()=>{this.#Ie(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!0,isExpanded:()=>this.#n.isExpanded(t),isFocused:()=>this.#r===t,isSelected:()=>this.#o.has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)},toggle:()=>{this.#xe(t)}}}#De(t){return{deselect:()=>{this.deselectPath(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!1,isFocused:()=>this.#r===t,isSelected:()=>this.#o.has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)}}}#Me(t){let n=this.#n.list();this.#oe(n).batch(t)}#oe(t,n,r){return new hr({...this.#e,paths:t,preparedInput:n==null?void 0:n,...r!==void 0?{initialExpandedPaths:r}:{}})}#se(){if(this.#I!=null)return this.#I;return this.#I=this.#n.list(),this.#I}#Ae(){if(this.#w!=null)return this.#w;let t=new Set;for(let n of this.#se()){t.add(n);for(let r of wt(n))t.add(r)}return this.#w=[...t].sort(),this.#w}#Ne(){if(this.#f!=null)return this.#f;return this.#f=this.#se().map(Mo),this.#f}#ee(){if(this.#m!=null)return this.#m;return this.#m=this.#Ae().filter((t)=>t.endsWith("/")),this.#m}#Le(){if(this.#h!=null)return this.#h;return this.#h=this.#ee().map(Mo),this.#h}#ae(){this.#m=null,this.#h=null,this.#w=null,this.#I=null,this.#f=null}#Fe(){return this.#ee().filter((t)=>this.#n.isExpanded(t))}#me(t){let n=new Set(this.#K??[]);if(t)for(let r of this.#o)for(let i of wt(r))n.add(i);this.#ge(n)}#ge(t){this.#re=!0;try{for(let n of this.#ee()){let r=t.has(n),i=this.#n.isExpanded(n);if(r&&!i)this.#n.expand(n);else if(!r&&i)this.#n.collapse(n)}}finally{this.#re=!1}}#Be(){if(this.#l==null||this.#l.length===0){this.#$=[],this.#x=null,this.#F=null,this.#M=null,this.#p=this.#ne;return}let t=this.#i;if(this.#$=t.filter((o)=>this.#k.has(o)),this.#U!=="hide-non-matches"||this.#k.size===0){this.#x=null,this.#F=null,this.#M=null,this.#p=this.#ne;return}let n=[],r=[],i=new Map;for(let[o,s]of t.entries()){if(this.#L?.has(s)!==!0)continue;i.set(s,r.length),n.push(o),r.push(s)}this.#x=n,this.#F=r,this.#M=i,this.#p=r.length}#_(){return this.#F??this.#i}#He(t){if(this.#F!=null)return this.#M?.get(t)??-1;return this.#n.getVisibleIndex(t)??-1}#ve(t){return this.#x?.[t]??t}#te(t){let n=this.#M?.get(t);if(n!=null)return n;return this.#n.getVisibleIndex(t)??-1}#ye(t){let n=this.#$;if(n.length===0)return;let r=this.#r,i=r==null?-1:n.indexOf(r),o=n[i<0?t>0?0:n.length-1:Math.min(n.length-1,Math.max(0,i+t))];if(o!=null)this.focusPath(o)}#X(t,n){let r=t==null?null:Jl(t),i=this.#l;if(i===r)return;if(i==null&&r!=null)this.#K=this.#Fe();if(this.#l=r,r==null)this.#me(!0),this.#K=null,this.#k.clear(),this.#L=null,this.#H(this.#r,!0);else if(r.length===0)this.#me(!1),this.#k.clear(),this.#L=null,this.#H(this.#r,!0);else{let o=this.#be();this.#H(o,!0)}if(n)this.#N?.(this.#l),this.#d()}#be(){if(this.#l==null||this.#l.length===0)return this.#k.clear(),this.#r;let t=this.#l,n=this.#se(),r=this.#Ne(),i=[],o=new Set,s=null;for(let f=0;f<n.length;f+=1){if(!r[f].includes(t))continue;let u=n[f];i.push(u),o.add(u),s??=u}let a=this.#ee(),l=this.#Le();for(let f=0;f<a.length;f+=1){if(!l[f].includes(t))continue;let u=a[f];if(o.has(u))continue;i.push(u),o.add(u),s??=u}this.#k=o;let c=this.#U==="hide-non-matches"&&i.length>0?new Set:null;this.#L=c;let d=this.#U==="expand-matches"?new Set(this.#K??[]):new Set;for(let f of i){if(c!=null)c.add(f);if(f.endsWith("/"))d.add(f);for(let u of wt(f))if(d.add(u),c!=null)c.add(u)}return this.#ge(d),s??this.#r}#d(){for(let t of this.#t)t()}#we(t){this.#c.get(t.operation)?.forEach((n)=>{n(t)}),this.#c.get("*")?.forEach((n)=>{n(t)})}#Ie(t){for(let n of wt(t)){if(this.#n.isExpanded(n))continue;this.#n.expand(n)}if(!this.#n.isExpanded(t))this.#n.expand(t)}#Se(t){let n=this.#p;if(n===0)return;let r=this.#v===-1?0:this.#v,i=Math.min(n-1,Math.max(0,r+t));if(i!==r||this.#v===-1){if(!this.#y&&this.#x==null&&i>=this.#i.length)this.#D();this.#E(i)}}#H(t,n=!0){let r=this.#n.getVisibleCount();this.#ne=r;let i=jf(this.#n.getVisibleTreeProjectionData(n?void 0:Math.min(r,Of)),t,n?(o)=>this.#n.getVisibleIndex(o):void 0);this.#V.clear(),this.#O.clear(),this.#y=i.paths.length>=r,this.#T=i.getParentIndex,this.#i=i.paths,this.#W=i.posInSetByIndex,this.#j=i.setSizeByIndex,this.#Be(),this.#v=t==null?this.#_().length>0?0:-1:this.#B(t),this.#r=this.#v<0?null:this.#le(this.#v)}#le(t){let n=this.#_()[t];if(n!=null)return n;if(this.#x!=null)return null;return this.#n.getVisibleRowContext(t)?.row.path??null}#A(t){return this.#n.getPathInfo(t)?.path??null}#Q(t){if(t==null)return;let n=this.#B(t);if(n>=0)this.#E(n,!1)}#E(t,n=!0){let r=this.#le(t);if(r==null)return;if(this.#v===t&&this.#r===r)return;if(this.#v=t,this.#r=r,n)this.#d()}#D(){if(this.#y)return;this.#H(this.#r,!0)}#Ve(t){let n=Sn(this.#s,t);if(n==null&&this.#s!=null)this.#g="";this.#s=n;let r=Sn(this.#r,t,!0),i=[...this.#o].map((l)=>Sn(l,t)).filter((l)=>l!=null).map((l)=>this.#n.getPathInfo(l)?.path??null).filter((l)=>l!=null),o=Sn(this.#S,t),s=o==null?null:this.#n.getPathInfo(o)?.path??null,a=[...new Set(i)];if(!di(this.#o,a))this.#o=new Set(a),this.#G+=1;return this.#S=s,r}#Ce(){return this.#n.on("*",(t)=>{if(this.#re)return;if(t.canonicalChanged)this.#b.clear(),this.#ae();if(this.#a!=null&&Ro(t))this.#a=null;let n=Ro(t)?this.#Ve(t):this.#r,r=this.#l!=null&&this.#l.length>0?this.#be():this.#l===""?this.#r:n,i=this.#l!=null||t.operation!=="expand"&&t.operation!=="collapse";this.#H(r,i),this.#d();let o=Xl(t);if(o!=null)this.#we(o)})}#xe(t){if(this.#n.isExpanded(t)){this.#pe(t);return}this.#Ie(t)}};var ec=(e)=>{if(e==null||e.length===0)return"0";let t=`${e.length}`;for(let n of e)t+=`\x00${n.path}\x00${n.status}`;return t};function tc(e){let t=e.endsWith("/"),n="",r=-1;for(let i=0;i<=e.length;i+=1){if(!(e[i]==="/"||i===e.length)){if(r===-1)r=i;continue}if(r===-1)continue;if(n!=="")n+="/";n+=e.slice(r,i),r=-1}if(n==="")return null;return{isDirectory:t,path:n}}function nc(e){let t=e.endsWith("/")?e.slice(0,-1):e;if(t.length===0)return[];let n=[],r=0;for(;;){let i=t.indexOf("/",r);if(i===-1)break;n.push(t.slice(0,i+1)),r=i+1}return n}function $f(e,t){return t?`${e}/`:e}function Fo(e,t=null){let n=ec(e==null?void 0:[...e]);if(n==="0")return null;if(t?.signature===n)return t;let r=new Map,i=new Set,o=new Set,s=new Map;for(let a of e??[]){let l=ic(a);if(l==null)continue;sc({canonicalPath:l.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:i,ignoredDirectoryPaths:o,isDirectory:l.isDirectory,status:a.status,statusByPath:r})}if(r.size===0)return null;return{changeCountByDirectoryPath:s,directoriesWithChanges:i,ignoredDirectoryPaths:o,signature:n,statusByPath:r}}function rc(e,t){let n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;let i=new Map(e?.statusByPath),o=new Set(e?.directoriesWithChanges),s=new Set(e?.ignoredDirectoryPaths),a=new Map(e?.changeCountByDirectoryPath),l=!1;for(let c of n){let d=oc(c);if(d==null)continue;l=Uf({canonicalPath:d.canonicalPath,changeCountByDirectoryPath:a,directoriesWithChanges:o,ignoredDirectoryPaths:s,statusByPath:i})||l}for(let c of r){let d=ic(c);if(d==null)continue;l=sc({canonicalPath:d.canonicalPath,changeCountByDirectoryPath:a,directoriesWithChanges:o,ignoredDirectoryPaths:s,isDirectory:d.isDirectory,status:c.status,statusByPath:i})||l}if(!l)return e;if(i.size===0)return null;return{changeCountByDirectoryPath:a,directoriesWithChanges:o,ignoredDirectoryPaths:s,signature:Yf(i),statusByPath:i}}function ic(e){return oc(e.path)}function oc(e){let t=tc(e);if(t==null)return;return{canonicalPath:$f(t.path,t.isDirectory),isDirectory:t.isDirectory}}function Uf({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){let o=i.get(e);if(o==null)return!1;if(i.delete(e),o==="ignored"&&e.endsWith("/"))r.delete(e);return Gf(t,n,e),!0}function sc({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:o,statusByPath:s}){let a=s.get(e);if(a===o)return!1;if(a==null)Kf(t,n,e);if(s.set(e,o),o==="ignored"&&i)r.add(e);else if(i)r.delete(e);return!0}function Kf(e,t,n){for(let r of nc(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function Gf(e,t,n){for(let r of nc(n)){let i=(e.get(r)??0)-1;if(i>0)e.set(r,i);else e.delete(r),t.delete(r)}}function Yf(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\x00${n}\x00${r}`;return t}var Xf=(e)=>e.trim().toLowerCase(),Qf=(e)=>e.split("/").at(-1)??e,Jf=(e)=>{let t=e.toLowerCase().split("."),n=[];for(let r=1;r<t.length;r+=1)n.push(t.slice(r).join("."));return n};function gr(e,t){if(typeof e==="string")return{name:e,remappedFrom:t};return{...e,remappedFrom:t}}function ac(e){let t=In(e),n=t.remap,r=new Map;for(let[a,l]of Object.entries(t.byFileName??{}))r.set(a.toLowerCase(),l);let i=new Map;for(let[a,l]of Object.entries(t.byFileExtension??{}))i.set(Xf(a),l);let o=Object.entries(t.byFileNameContains??{}).map(([a,l])=>[a.toLowerCase(),l]);return{resolveIcon:(a,l)=>{if(a==="file-tree-icon-file"&&l!=null){let d=Qf(l),f=d.toLowerCase(),u=r.get(f);if(u!=null)return gr(u,a);for(let[g,v]of o)if(f.includes(g))return gr(v,a);let m=Jf(d);for(let g of m){let v=i.get(g);if(v!=null)return gr(v,a)}let p=Fl(t.set,d,m);if(p!=null&&t.set!=="none"){if(p==="default"){let g=n?.[a];if(g!=null)return gr(g,a)}return{name:Nl(p),remappedFrom:a,token:p}}}let c=n?.[a];if(c==null)return{name:a};return gr(c,a)}}}var Q,hc,Zf,Jt,lc,gi,fc,pc,Oo,Bo,Ho,ep,vr={},mc=[],vi=Array.isArray,zo=mc.slice,Bt=Object.assign;function qo(e){e&&e.parentNode&&e.remove()}function xn(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"&&typeof e!="function"?i=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?zo.call(arguments,2):n),pi(e,s,r,i,null)}function pi(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++hc:i,__i:-1,__u:0};return i==null&&Q.vnode!=null&&Q.vnode(o),o}function ct(e){return e.children}function mi(e,t){this.props=e,this.context=t,this.__g=0}function Cn(e,t){if(t==null)return e.__?Cn(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"?Cn(e):null}function gc(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 gc(e)}}function cc(e){(8&e.__g||!(e.__g|=8)||!Jt.push(e)||gi++)&&lc==Q.debounceRendering||((lc=Q.debounceRendering)||queueMicrotask)(tp)}function tp(){for(var e,t,n,r,i,o,s,a,l=1;Jt.length;)Jt.length>l&&Jt.sort(fc),e=Jt.shift(),l=Jt.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,o=[],s=[],(a=t.__P)&&((n=Bt({},r)).__v=r.__v+1,Q.vnode&&Q.vnode(n),Wo(a,n,r,t.__n,a.namespaceURI,32&r.__u?[i]:null,o,i==null?Cn(r):i,!!(32&r.__u),s,a.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,bc(o,n,s),n.__e!=i&&gc(n)));gi=0}function vc(e,t,n,r,i,o,s,a,l,c,d,f){var u,m,p,g,v,S,C,y=r&&r.__k||mc,w=t.length;for(l=np(n,t,y,l,w),u=0;u<w;u++)(p=n.__k[u])!=null&&(m=p.__i==-1?vr:y[p.__i]||vr,p.__i=u,S=Wo(e,p,m,i,o,s,a,l,c,d,f),g=p.__e,p.ref&&m.ref!=p.ref&&(m.ref&&jo(m.ref,null,p),d.push(p.ref,p.__c||g,p)),v==null&&g!=null&&(v=g),(C=!!(4&p.__u))||m.__k===p.__k?l=yc(p,l,e,C):typeof p.type=="function"&&S!==void 0?l=S:g&&(l=g.nextSibling),p.__u&=-7);return n.__e=v,l}function np(e,t,n,r,i){var o,s,a,l,c,d=n.length,f=d,u=0;for(e.__k=Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+u,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?pi(null,s,null,null,null):vi(s)?pi(ct,{children:s},null,null,null):s.constructor==null&&s.__b>0?pi(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(c=s.__i=rp(s,n,l,f))!=-1&&(f--,(a=n[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(i>d?u--:i<d&&u++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?u--:c==l+1?u++:(c>l?u--:u++,s.__u|=4))):e.__k[o]=null;if(f)for(o=0;o<d;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Cn(a)),Ic(a,a));return r}function yc(e,t,n,r){var i,o;if(typeof e.type=="function"){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=yc(i[o],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Cn(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function rp(e,t,n,r){var i,o,s,a=e.key,l=e.type,c=t[n],d=c!=null&&(2&c.__u)==0;if(c===null&&e.key==null||d&&a==c.key&&l==c.type)return n;if(r>(d?1:0)){for(i=n-1,o=n+1;i>=0||o<t.length;)if((c=t[s=i>=0?i--:o++])!=null&&(2&c.__u)==0&&a==c.key&&l==c.type)return s}return-1}function uc(e,t,n){t[0]=="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":n}function fi(e,t,n,r,i){var o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||uc(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||uc(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(pc,"$1")),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||(e.__l={}),e.__l[t+o]=n,n?r?n.l=r.l:(n.l=Oo,e.addEventListener(t,o?Ho:Bo,o)):e.removeEventListener(t,o?Ho:Bo,o);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==null?"":n;break e}catch(s){}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function dc(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=Oo++;else if(t.u<n.l)return;return n(Q.event?Q.event(t):t)}}}function Wo(e,t,n,r,i,o,s,a,l,c,d){var f,u,m,p,g,v,S,C,y,w,x,P,O,pe,G,me,j,N,re,W,Ee,U=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),n.__c.__z&&(a=t.__e=n.__e=(o=n.__c.__z)[0],n.__c.__z=null)),(f=Q.__b)&&f(t);e:if(typeof U=="function")try{if(C=t.props,y="prototype"in U&&U.prototype.render,w=(f=U.contextType)&&r[f.__c],x=f?w?w.props.value:f.__:r,n.__c?2&(u=t.__c=n.__c).__g&&(u.__g|=1,S=!0):(y?t.__c=u=new U(C,x):(t.__c=u=new mi(C,x),u.constructor=U,u.render=op),w&&w.sub(u),u.props=C,u.state||(u.state={}),u.context=x,u.__n=r,m=!0,u.__g|=8,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&U.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Bt({},u.__s)),Bt(u.__s,U.getDerivedStateFromProps(C,u.__s))),p=u.props,g=u.state,u.__v=t,m)y&&U.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&U.getDerivedStateFromProps==null&&C!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(C,x),!(4&u.__g)&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(C,u.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=C,u.state=u.__s,u.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(de){de&&(de.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(C,u.__s,x),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,g,v)})}if(u.context=x,u.props=C,u.__P=e,u.__g&=-5,O=Q.__r,pe=0,y){for(u.state=u.__s,u.__g&=-9,O&&O(t),f=u.render(u.props,u.state,u.context),G=0;G<u._sb.length;G++)u.__h.push(u._sb[G]);u._sb=[]}else do u.__g&=-9,O&&O(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(8&u.__g&&++pe<25);u.state=u.__s,u.getChildContext!=null&&(r=Bt({},r,u.getChildContext())),y&&!m&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(p,g)),me=f,f!=null&&f.type===ct&&f.key==null&&(me=wc(f.props.children)),a=vc(e,vi(me)?me:[me],t,n,r,i,o,s,a,l,c,d),t.__u&=-161,u.__h.length&&s.push(u),S&&(u.__g&=-4)}catch(de){if(t.__v=null,l||o!=null)if(de.then){for(j=0,N=!1,t.__u|=l?160:128,t.__c.__z=[],re=0;re<o.length;re++)(W=o[re])==null||N||(W.nodeType==8&&W.data=="$s"?(j>0&&t.__c.__z.push(W),j++,o[re]=null):W.nodeType==8&&W.data=="/$s"?(--j>0&&t.__c.__z.push(W),N=j===0,a=o[re],o[re]=null):j>0&&(t.__c.__z.push(W),o[re]=null));if(!N){for(;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__c.__z=[a]}t.__e=a}else{for(Ee=o.length;Ee--;)qo(o[Ee]);Vo(t)}else t.__e=n.__e,t.__k=n.__k,de.then||Vo(t);Q.__e(de,t,n)}else a=t.__e=ip(n.__e,t,n,r,i,o,s,l,c,d);return(f=Q.diffed)&&f(t),128&t.__u?void 0:a}function Vo(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(Vo)}function bc(e,t,n){for(var r=0;r<n.length;r++)jo(n[r],n[++r],n[++r]);Q.__c&&Q.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Q.__e(o,i.__v)}})}function wc(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:vi(e)?e.map(wc):Bt({},e)}function ip(e,t,n,r,i,o,s,a,l,c){var d,f,u,m,p,g,v,S,C=n.props,y=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((p=o[d])&&"setAttribute"in p==!!w&&(w?p.localName==w:p.nodeType==3)){e=p,o[d]=null;break}}if(e==null){if(w==null)return c.createTextNode(y);e=c.createElementNS(i,w,y.is&&y),a&&(Q.__m&&Q.__m(t,o),a=!1),o=null}if(w==null)C===y||a&&e.data==y||(e.data=y);else{if(o=o&&zo.call(e.childNodes),C=n.props||vr,!a&&o!=null)for(C={},d=0;d<e.attributes.length;d++)C[(p=e.attributes[d]).name]=p.value;for(d in C)if(p=C[d],d=="children");else if(d=="dangerouslySetInnerHTML")u=p;else if(!(d in y)){if(d=="value"&&"defaultValue"in y||d=="checked"&&"defaultChecked"in y)continue;fi(e,d,null,p,i)}for(d in S=1&n.__u,y)p=y[d],d=="children"?m=p:d=="dangerouslySetInnerHTML"?f=p:d=="value"?g=p:d=="checked"?v=p:a&&typeof p!="function"||C[d]===p&&!S||fi(e,d,p,C[d],i);if(f)a||u&&(f.__html==u.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),vc(w=="template"?e.content:e,vi(m)?m:[m],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Cn(n,0),a,l,c),o!=null)for(d=o.length;d--;)qo(o[d]);a||(d="value",w=="progress"&&g==null?e.removeAttribute("value"):g==null||g===e[d]&&(w!=="progress"||g)||fi(e,d,g,C[d],i),d="checked",v!=null&&v!=e[d]&&fi(e,d,v,C[d],i))}return e}function jo(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(i){Q.__e(i,n)}}function Ic(e,t,n){var r,i;if(Q.unmount&&Q.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||jo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Q.__e(o,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Ic(r[i],t,n||typeof e.type!="function");n||qo(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function op(e,t,n){return this.constructor(e,n)}function yi(e,t){var n,r,i,o;t==document&&(t=document.documentElement),Q.__&&Q.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=xn(ct,null,[e]),i=[],o=[],Wo(t,e,r||vr,vr,t.namespaceURI,r?null:t.firstChild?zo.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,o,t.ownerDocument),bc(i,e,o)}function Sc(e,t){e.__u|=32,yi(e,t)}Q={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=8&i.__g),s)return void(i.__g|=2)}catch(a){e=a}}throw gi=0,e}},hc=0,Zf=function(e){return e!=null&&e.constructor==null},mi.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Bt({},this.state),typeof e=="function"&&(e=e(Bt({},n),this.props)),e&&Bt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),cc(this))},mi.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),cc(this))},mi.prototype.render=ct,Jt=[],gi=0,fc=function(e,t){return e.__v.__b-t.__v.__b},pc=/(PointerCapture)$|Capture$/i,Oo=0,Bo=dc(!1),Ho=dc(!0),ep=0;var sp=0;function k(e,t,n,r,i,o){t||(t={});var s,a,l=t;if("ref"in l&&typeof e!="function")for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--sp,__i:-1,__u:0,__source:i,__self:o};return Q.vnode&&Q.vnode(c),c}var ap=16,lp=16,cp={};function kn({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:o,label:s,alignCapitals:a=!1}){let l=`#${e.replace(/^#/,"")}`,{width:c,height:d,viewBox:f}=cp[e]??{width:ap,height:lp},u=r??c,m=i??d,p=o??f??`0 0 ${c} ${d}`;return k("svg",{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":a,...s!=null?{"aria-label":s,role:"img"}:{"aria-hidden":!0},viewBox:p,width:u,height:m,children:k("use",{href:l})})}var Cc=(e)=>e!==void 0&&/\s/.test(e),up=(e,t)=>{let n=(r)=>Cc(e[r-1])||Cc(e[r]);if(!n(t))return t;for(let r=1;r<e.length;r++){let i=t-r;if(i>0&&!n(i))return i;let o=t+r;if(o<e.length&&!n(o))return o}return t},kc=(e)=>up(e,Math.ceil(e.length/2)),xc=(e)=>{if(e.length<2)return[e,""];let t=kc(e);return[e.slice(0,t),e.slice(t)]},dp=(e)=>{if(e.length<4)return[e,""];let t=e.lastIndexOf(".")+1,n=e.length-t>10,r=t>=1&&!n?t:kc(e);return[e.slice(0,r),e.slice(r)]},hp=(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)]},fp=(e,{splitIndex:t}={})=>{if(typeof t!=="number"){let n=Math.ceil(e.length/2);return[e.slice(0,n),e.slice(n)]}return[e.slice(0,t),e.slice(t)]},pp=(e,{splitOffset:t}={})=>{if(typeof t!=="number"||t<=0||t>=e.length){let r=Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},mp=(e,{splitOffset:t}={})=>{if(typeof t!=="number"||t<=0||t>=e.length){let r=Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]}let n=t;return[e.slice(0,n),e.slice(n)]};function gp({children:e,marker:t,variant:n="default"}){return k("div",{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:k("div",{"data-truncate-marker":!0,children:typeof t==="function"?t({children:e}):n==="fade"?k("span",{"data-truncate-fade":!0}):t})})}function vp(e){let{mode:t,children:n}=e;return k("div",{children:[k("div",{"data-truncate-content":"visible",children:t==="fruncate"?k("span",{children:n}):n}),k("div",{"data-truncate-content":"overflow","aria-hidden":!0,children:t==="fruncate"?k("span",{children:n}):n})]})}function _c({children:e,mode:t="truncate",marker:n="…",variant:r="default",...i}){let o=k(vp,{mode:t,children:e},"content"),s=k(gp,{marker:n,mode:t,variant:r},"marker"),a=k("div",{"data-truncate-fill":!0},"fill");return k("div",{"data-truncate-container":t,"data-truncate-variant":r,...i,children:k("div",{"data-truncate-grid":!0,children:t==="truncate"?[o,s]:[s,o,a]})})}function yr({children:e,...t}){return k(_c,{mode:"truncate",...t,children:e})}function $o({children:e,...t}){return k(_c,{mode:"fruncate",...t,children:e})}function Ec({children:e,contents:t,priority:n="end",split:r="center",minimumLength:i=12,className:o,style:s,...a}){let l=null,c=null;if(Array.isArray(t)){if(t.length!==2)return console.error("MiddleTruncate: contents must be an array of two items"),null;l=k(yr,{...a,children:t[0]}),c=k($o,{...a,children:t[1]})}else{if(typeof e!=="string")return console.error("MiddleTruncate: children must be a string"),null;if(e.length===0)return k("div",{className:o,style:s});if(e.length<i)if(n==="end")return k($o,{...a,className:o,style:s,children:e});else return k(yr,{...a,className:o,style:s,children:e});let d=null,f=null,u=null;if(typeof r==="string"){if(r==="center")d=xc;else if(r==="extension")d=dp;else if(r==="leaf-path")d=hp}else if(typeof r==="number")d=fp,f=r;else if(Array.isArray(r)){let[w,x]=r;if(u=x,w==="last")d=pp;else if(w==="first")d=mp}else if(typeof r==="function")d=r;d??=xc;let[m,p]=d(e,{priority:n,variant:a.variant,splitIndex:typeof f==="number"?f:void 0,splitOffset:typeof u==="number"?u:void 0}),g=m.length>=p.length,v=n==="equal"&&!g,S=n==="equal"&&g,C={},y={};if(v)C.marker="";if(S)y.marker="";l=k(yr,{...a,...C,children:m}),c=k($o,{...a,...y,children:p})}return k("div",{"data-truncate-group-container":"middle",className:o,style:s,children:[k("div",{"data-truncate-segment-priority":n==="start"||n==="equal"?"1":"2",children:l}),k("div",{"data-truncate-segment-priority":n==="end"||n==="equal"?"1":"2",children:c})]})}var Uo={endIndex:-1,startIndex:-1};function yp(e,t,n){return Math.min(Math.max(e,t),n)}function Tc(e,t){return e<0||t<e?Uo:{endIndex:t,startIndex:e}}function Ko(e){return e.startIndex<0||e.endIndex<e.startIndex}function bp(e,t){return Ko(e)?0:(e.endIndex-e.startIndex+1)*t}function Pc(e,t,n){if(t<=0)return-1;let r=t*n;if(e<=0)return 0;if(e>=r)return t;return Math.floor(e/n)}function wp(e,t,n){if(t<=0||e<=0)return-1;if(e>=t*n)return t-1;return Math.ceil(e/n)-1}function Ip(e){let t=new Map;return e.forEach((n,r)=>{if(n.kind!=="directory"||!n.isExpanded)return;let i=n.ancestorPaths.length,o=t.get(i);if(o==null){t.set(i,[r]);return}o.push(r)}),t}function Sp(e,t){let n=0,r=e.length-1,i=-1;while(n<=r){let o=Math.floor((n+r)/2),s=e[o];if(s==null)break;if(s<=t){i=o,n=o+1;continue}r=o-1}return i}function Cp(e){let t=new Map,n=[];for(let i=0;i<e.length;i+=1){let o=e[i];if(o==null)continue;let s=o.kind==="directory"&&o.isExpanded?[...o.ancestorPaths,o.path]:o.ancestorPaths,a=0;while(a<n.length&&a<s.length&&n[a]===s[a])a+=1;for(let l=n.length-1;l>=a;l-=1){let c=n[l];if(c!=null)t.set(c,i-1)}n.length=a;for(let l=a;l<s.length;l+=1){let c=s[l];if(c!=null)n.push(c)}}let r=e.length-1;for(let i of n)t.set(i,r);return t}function Go(e,t,n){if(e.length===0||t<=0)return[];let r=Cp(e),i=Ip(e),o=[];for(let s=0;s<e.length;s+=1){let a=i.get(s);if(a==null||a.length===0)break;let l=t+s*n,c=Sp(a,Math.min(e.length-1,Math.floor(l/n))),d=null;while(c>=0){let f=a[c],u=f==null?null:e[f]??null;if(u!=null&&(s===0||u.ancestorPaths[s-1]===o[s-1]?.path)){d=u;break}c-=1}if(d==null)break;o.push(d)}return o.map((s,a)=>{let l=a*n,c=(r.get(s.path)??e.length-1)+1;if(c>=e.length)return{row:s,top:l};let d=c*n-t;return{row:s,top:Math.min(l,d-n)}}).filter((s)=>s.top+n>0)}function Rc(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),o=Math.max(0,Math.floor(t.overscan)),s=Math.max(0,r-i),a=yp(t.scrollTop,0,s),l=t.stickyRows??Go(e,a,t.itemHeight),c=l.reduce((P,O)=>Math.max(P,O.top+t.itemHeight),0),d=Math.min(r,a+c),f=Math.max(0,i-c),u=Math.max(0,r-d),m=Pc(a,n,t.itemHeight),p=Pc(d,n,t.itemHeight),g=c<=0||m<0||m>=n?-1:m,v=g===-1?-1:Math.min(n-1,p-1),S=g===-1||v<g?0:v-g+1,C=f<=0||p>=n?Uo:Tc(p,wp(d+f,n,t.itemHeight)),y=v+1,w=Ko(C)?Uo:Tc(Math.max(y,C.startIndex-o),Math.min(n-1,C.endIndex+o)),x=bp(w,t.itemHeight);return{occlusion:{firstOccludedIndex:g,lastOccludedIndex:v,occludedCount:S},physical:{itemHeight:t.itemHeight,maxScrollTop:s,overscan:o,scrollTop:a,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:u,paneHeight:f,paneTop:d},sticky:{height:c,rows:l},visible:C,window:{endIndex:w.endIndex,height:x,offsetTop:Ko(w)?0:w.startIndex*t.itemHeight,startIndex:w.startIndex}}}var Dc={added:"A",deleted:"D",ignored:null,modified:"M",renamed:"R",untracked:"U"},Mc={added:"Git status: added",deleted:"Git status: deleted",ignored:"Git status: ignored",modified:"Git status: modified",renamed:"Git status: renamed",untracked:"Git status: untracked"},Ac="Contains git status items";function Nc(e){if(e.current)return!0;return e.current=!0,!1}function Yo(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),a=n*r,l=a+r;if(a<t+s){let c=Math.max(0,a-s);return c===t?null:c}if(l>t+o){let c=l-o;return c===t?null:c}return null}function Lc(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:o=0,totalHeight:s,viewportHeight:a}=e;if(i==="nearest")return Yo({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:o,viewportHeight:a});if(n<0)return null;let l=Math.max(0,o),c=n*r,d=Math.max(0,a-l),f=i==="center"?l+Math.max(0,(d-r)/2):l,u=Math.max(0,s-a),m=Math.max(0,Math.min(c-f,u));return m===t?null:m}function Fc(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:o,viewportHeight:s}=e;if(n<0)return null;let a=Math.max(0,i),l=n*r,c=l+r,d=t+a,f=t+s;if(l>=d&&c<=f)return null;let u=Math.max(0,o-s),m=Math.max(0,Math.min(l-a,u));return m===t?null:m}function Zt(e){if(e==null||!e.isConnected)return!1;if(e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();if(t instanceof ShadowRoot)return t.activeElement===e;return document.activeElement===e}function br(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let r=t.activeElement;return r instanceof HTMLElement?r:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function _n(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;if(n>0)return n;return e.clientHeight>0?e.clientHeight:t}function Xo(e,t){return e!=null&&e>0?e:t}function Bc(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;if(n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0)return n.blockSize;return e.contentRect.height>0?e.contentRect.height:null}function Qo(e,t,n,r,i=0){let o=Yo({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});if(o==null)return!1;return e.scrollTop=o,!0}function Hc(e,t,n,r,i,o,s=0){let a=Lc({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:o,topInset:s,totalHeight:i,viewportHeight:r});if(a==null)return!1;return e.scrollTop=a,!0}function En(e,t,n,r,i,o){let s=Fc({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:o,totalHeight:i,viewportHeight:r});if(s==null)return!1;return e.scrollTop=s,!0}function Jo(e,t,n,r){if(n.end<n.start)return null;if(e<n.start)return-t;if(e>n.end)return r;return null}function Vc(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;if(t==null)return"reset";if(!r)return"reveal-canonical";if(n===t)return"ignore";return"focus-input"}function Oc({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:o}){return k("input",{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:o,onClick:(s)=>s.stopPropagation(),onMouseDown:(s)=>s.stopPropagation(),onPointerDown:(s)=>s.stopPropagation()})}function zc(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:o,isParked:s,itemHeight:a,features:l,state:c,extraStyle:d}=e,f=n==="sticky",u=t.ancestorPaths.at(-1)??"",m={};if(c.isFocusRinged)m["data-item-focused"]=!0;if(t.isSelected)m["data-item-selected"]=!0;if(c.isContextHovered)m["data-item-context-hover"]="true";if(c.isDragTarget)m["data-item-drag-target"]=!0;if(c.isDragging)m["data-item-dragging"]=!0;if(c.effectiveGitStatus!=null)m["data-item-git-status"]=c.effectiveGitStatus;if(c.containsGitChange)m["data-item-contains-git-change"]="true";return{"aria-expanded":!f&&t.kind==="directory"?t.isExpanded:void 0,"aria-haspopup":l.contextMenuEnabled?"menu":void 0,"aria-label":i,"aria-level":!f?t.level+1:void 0,"aria-posinset":!f?t.posInSet+1:void 0,"aria-selected":!f?t.isSelected?"true":"false":void 0,"aria-setsize":!f?t.setSize:void 0,"data-file-tree-sticky-path":f?r:void 0,"data-file-tree-sticky-row":f?"true":void 0,"data-item-context-menu-button-visibility":l.actionLaneEnabled?l.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":l.contextMenuEnabled?l.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":l.actionLaneEnabled?"true":void 0,"data-item-has-git-lane":l.gitLaneActive?"true":void 0,"data-item-parent-path":u.length>0?u:void 0,"data-item-parked":s?"true":void 0,"data-item-path":r,"data-item-type":t.kind==="directory"?"folder":"file","data-type":"item",id:!f?o:void 0,role:!f?"treeitem":void 0,style:{minHeight:`${a}px`,...d},tabIndex:!f&&t.isFocused?0:-1,...m}}function qc(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,o=t.ctrlKey||t.metaKey,s=t.shiftKey||o,a=t.shiftKey?{additive:o,kind:"range"}:o?{kind:"toggle"}:{kind:"single"};return{closeSearch:r,revealCanonical:n==="sticky",selection:a,toggleDirectory:!s&&i}}var Tn,ye,Zo,Wc,es=Object.is,wr=0,Qc=[],be=Q,jc=be.__b,$c=be.__r,Uc=be.diffed,Kc=be.__c,Gc=be.unmount,Yc=be.__;function wi(e,t){be.__h&&be.__h(ye,e,wr||t),wr=0;var n=ye.__H||(ye.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function it(e){return wr=1,xp(Jc,e)}function xp(e,t,n){var r=wi(Tn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Jc(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);es(l,c)||(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=ye,!ye.__f)){var i=function(a,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(u){return!!u.__c});if(d.every(function(u){return!u.__N}))return!o||o.call(this,a,l,c);var f=r.__c.props!==a;return d.forEach(function(u){if(u.__N){var m=u.__[0];u.__=u.__N,u.__N=void 0,es(m,u.__[0])||(f=!0)}}),o&&o.call(this,a,l,c)||f};ye.__f=!0;var{shouldComponentUpdate:o,componentWillUpdate:s}=ye;ye.componentWillUpdate=function(a,l,c){if(4&this.__g){var d=o;o=void 0,i(a,l,c),o=d}s&&s.call(this,a,l,c)},ye.shouldComponentUpdate=i}return r.__N||r.__}function ns(e,t){var n=wi(Tn++,3);!be.__s&&rs(n.__H,t)&&(n.__=e,n.u=t,ye.__H.__h.push(n))}function Oe(e,t){var n=wi(Tn++,4);!be.__s&&rs(n.__H,t)&&(n.__=e,n.u=t,ye.__h.push(n))}function V(e){return wr=5,It(function(){return{current:e}},[])}function It(e,t){var n=wi(Tn++,7);return rs(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _e(e,t){return wr=8,It(function(){return e},t)}function kp(){for(var e;e=Qc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(bi),e.__H.__h.forEach(ts),e.__H.__h=[]}catch(t){e.__H.__h=[],be.__e(t,e.__v)}}be.__b=function(e){ye=null,jc&&jc(e)},be.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yc&&Yc(e,t)},be.__r=function(e){$c&&$c(e),Tn=0;var t=(ye=e.__c).__H;t&&(Zo===ye?(t.__h=[],ye.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(bi),t.__h.forEach(ts),t.__h=[],Tn=0)),Zo=ye},be.diffed=function(e){Uc&&Uc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qc.push(t)!==1&&Wc===be.requestAnimationFrame||((Wc=be.requestAnimationFrame)||_p)(kp)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Zo=ye=null},be.__c=function(e,t){t.some(function(n){try{n.__h.forEach(bi),n.__h=n.__h.filter(function(r){return!r.__||ts(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],be.__e(r,n.__v)}}),Kc&&Kc(e,t)},be.unmount=function(e){Gc&&Gc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{bi(r)}catch(i){t=i}}),n.__H=void 0,t&&be.__e(t,n.__v))};var Xc=typeof requestAnimationFrame=="function";function _p(e){var t,n=function(){clearTimeout(r),Xc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Xc&&(t=requestAnimationFrame(n))}function bi(e){var t=ye,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ye=t}function ts(e){var t=ye;e.__c=e.__(),ye=t}function rs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return!es(n,e[r])})}function Jc(e,t){return typeof t=="function"?t(e):t}function Ep(e,t=null,n=null){let r=e.flattenedSegments;if(r==null||r.length===0)return t??e.name;return k("span",{"data-item-flattened-subitems":!0,children:r.map((i,o)=>{let s=o===r.length-1;return k(ct,{children:[k("span",{"data-item-flattened-subitem":i.path,"data-item-flattened-subitem-drag-target":n===i.path?"true":void 0,children:s&&t!=null?t:k(yr,{children:i.name})}),o<r.length-1?" / ":""]},i.path)})})}function Rn(e){return e.isFlattened?e.flattenedSegments?.findLast((t)=>t.isTerminal)?.path??e.path:e.path}function os(e){let t=e.flattenedSegments;if(t==null||t.length===0)return e.name;return t.map((n)=>n.name).join(" / ")}function Zc(e,t,n,r){return e.map((i,o)=>{let s=o*n,a=i.subtreeEndIndex+1;if(a>=r)return{row:i.row,top:s};let l=a*n-t;return{row:i.row,top:Math.min(s,l-n)}}).filter((i)=>i.top+n>0)}function is({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:o}){let s=e.getVisibleCount(),a=i&&s>0?e.getStickyRowCandidates(r,t):[],l=a==null&&i&&s>0?e.getVisibleRows(0,s-1):[],c=Rc(l,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:a==null?void 0:Zc(a,r,t,s),totalRowCount:s,viewportHeight:o}),d=i&&r<=0&&s>0?e.getStickyRowCandidates(1,t):[],f=d!=null&&r<=0?Zc(d,1,t,s):i&&r<=0&&l.length>0?Go(l,1,t):c.sticky.rows;return{overlayHeight:f.reduce((u,m)=>Math.max(u,m.top+t),0),overlayRows:f,snapshot:c,visibleRows:l}}var Tp=400,eu=10,Pn=40,tu=18;function Pp(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,o=r.elementFromPoint?.(t,n)??i?.(t,n)??null;if(e instanceof ShadowRoot&&(o==null||!e.contains(o)))return Rp(e,t,n);return o instanceof HTMLElement?o:null}function Rp(e,t,n){let r=Array.from(e.querySelectorAll('[data-type="item"], [data-item-flattened-subitem]'));for(let i=r.length-1;i>=0;i--){let o=r[i],s=o.getBoundingClientRect();if(t>=s.left&&t<=s.right&&n>=s.top&&n<=s.bottom)return o}return null}function nu(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 o=t.dataset.itemParentPath??null;if(o==null||o.length===0)return{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:"root"};return{directoryPath:o,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"}}function ru(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 Dp(){return navigator.vendor!=="Apple Computer, Inc."}function Mp(e,t){let n=e-t.top;if(n<Pn)return-Math.ceil((Pn-Math.max(0,n))/Pn*tu);let r=t.bottom-e;if(r<Pn)return Math.ceil((Pn-Math.max(0,r))/Pn*tu);return 0}function Ap(e,t){if(e!=null){let n=Dc[e];if(n==null)return null;return{text:n,title:Mc[e]}}if(t)return{icon:{name:"file-tree-icon-dot",width:6,height:6},title:Ac};return null}function Np(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;i-=1){let o=e[i],s=n.get(o);if(s!=null){for(let a of r)n.set(a,s);return s?"ignored":null}if(t.has(o)){n.set(o,!0);for(let a of r)n.set(a,!0);return"ignored"}r.push(o)}for(let i of r)n.set(i,!1);return null}function iu(e){return e!=null&&"toggle"in e}function hu(e){return e.code==="Space"||e.key===" "||e.key==="Spacebar"}function Lp(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function Fp(e){if(e==null)return"";return`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll("\\","\\\\").replaceAll('"',"\\\"")}"] { opacity: 1; }`}function fu(e){return e.shiftKey&&e.key==="F10"||e.key==="ContextMenu"}function Bp(e,t){if(t&&fu(e))return!0;if((e.ctrlKey||e.metaKey)&&hu(e))return!0;return e.key==="ArrowDown"||e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="ArrowUp"}var Hp=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]);function ou(e){for(let t of e.composedPath()){if(!(t instanceof HTMLElement))continue;if(t.dataset.fileTreeContextMenuRoot==="true")return!0;if(t.dataset.type==="context-menu-anchor"||t.dataset.type==="context-menu-trigger")return!0;if(t.getAttribute("slot")==="context-menu")return!0}return!1}function Vp(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 Op(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function zp(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function su(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function au(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 qp(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 r=n.dataset.fileTreeStickyPath;if(r!=null)t.push(r)}return t}function Wp(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 jp(e,t,n,r,i,o,s){let a=Math.max(0,o-i),l=t?.getBoundingClientRect()??null,c=l==null||n==null?null:n.getBoundingClientRect().top-l.top,d=Wp(e,r),f=l==null||d==null?null:d.getBoundingClientRect().top-l.top;return Math.max(0,Math.min(f??Math.max(c??0,a),Math.max(0,s-i)))}function lu(e,t){return{kind:e.kind,name:os(e),path:t}}function $p(e){return e==null?void 0:`${e}__tree`}function pu(e,t,n){if(e==null)return;return`${e}__focused-item-${encodeURIComponent(t)}${n?"__parked":""}`}function cu(e){return e==="file-tree-icon-chevron"||e==="file-tree-icon-dot"||e==="file-tree-icon-file"||e==="file-tree-icon-lock"}function uu(e,t){if(e==null)return null;if("text"in e){if(e.parts!=null)return k("span",{title:e.title,children:e.parts.map((r,i)=>k("span",{style:{color:r.color},children:r.text},i))});return k("span",{title:e.title,children:e.text})}let n=typeof e.icon==="string"?cu(e.icon)?t(e.icon):{name:e.icon}:cu(e.icon.name)?(()=>{let r=t(e.icon.name),{name:i,...o}=e.icon;return{...r,...o}})():e.icon;return k("span",{title:e.title,children:k(kn,{...n})})}function du(e){if(e==null)return;Zt(e.querySelector(["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "))??e)}function Up(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:o=null,gitDecoration:s=null,gitLaneActive:a=!1,renameInput:l=null,showDecorativeActionAffordance:c=!1}={}){let d=Rn(e);return k(ct,{children:[e.depth>0?k("div",{"data-item-section":"spacing",children:Array.from({length:e.depth}).map((f,u)=>k("div",{"data-item-section":"spacing-item","data-ancestor-path":e.ancestorPaths[u]},u))}):null,k("div",{"data-item-section":"icon",children:e.kind==="directory"?k(kn,{...t("file-tree-icon-chevron")}):k(kn,{...t("file-tree-icon-file",d)})}),k("div",{"data-item-section":"content",children:e.isFlattened?Ep(e,l,o):l??k(Ec,{minimumLength:5,split:"extension",children:e.name})}),i?k("div",{"data-item-section":"decoration",children:r!=null?uu(r,t):null}):null,a?k("div",{"data-item-section":"git",children:uu(s,t)}):null,n?k("div",{"data-item-section":"action",children:c?k("span",{"aria-hidden":"true","data-item-action-affordance":"decorative",children:k(kn,{...t("file-tree-icon-ellipsis")})}):null}):null]})}function Ii(e,t,n,r={}){let{controller:i,renameView:o,visualFocusPath:s,contextHoverPath:a,draggedPathSet:l,dragTarget:c,dragAndDropEnabled:d,shouldSuppressContextMenu:f,handleRowDragStart:u,handleRowDragEnd:m,handleRowTouchStart:p,instanceId:g,itemHeight:v,gitStatusByPath:S,ignoredGitDirectories:C,ignoredInheritanceCache:y,directoriesWithGitChanges:w,gitLaneActive:x,contextMenuEnabled:P,contextMenuTriggerMode:O,contextMenuButtonTriggerEnabled:pe,contextMenuButtonVisibility:G,contextMenuRightClickEnabled:me,registerRenameInput:j,registerButton:N,resolveIcon:re,renderDecorationForRow:W,openContextMenuForRow:Ee,onRowClick:U,onKeyDown:de}=e,Z=Rn(t),{isParked:Y=!1,mode:Je="flow",style:Ue}=r,Ke=Je==="sticky",ht=S?.get(Z)??null??Np(t.ancestorPaths,C,y),_t=t.kind==="directory"&&(w?.has(Z)??!1),Fe=W(t,Z),ze=Ap(ht,_t),Te=P&&pe,Ge=Fe!=null||x||Te,ft=Te&&G==="always",Pe=o.getPath()===Z,pt=Pe?o.getValue():"",Be=Ke||!Pe?null:k(Oc,{ref:j,ariaLabel:`Rename ${os(t)}`,isFlattened:t.isFlattened,value:pt,onBlur:()=>{o.commit()},onInput:(ie)=>{o.setValue(ie.currentTarget.value)}}),sn=Up(t,re,{actionLaneEnabled:Te,customDecoration:Fe,decorationLaneEnabled:Ge,dragTargetFlattenedSegmentPath:c?.flattenedSegmentPath??null,gitDecoration:ze,gitLaneActive:x,renameInput:Be,showDecorativeActionAffordance:ft}),Ze={...zc({ariaLabel:os(t),domId:t.isFocused?pu(g,Z,Y):void 0,extraStyle:Ue,features:{actionLaneEnabled:Te,contextMenuButtonVisibility:Te?G:null,contextMenuEnabled:P,contextMenuTriggerMode:P?O:null,gitLaneActive:x},isParked:Y,itemHeight:v,mode:Je,row:t,state:{containsGitChange:_t,effectiveGitStatus:ht,isContextHovered:a===Z,isDragTarget:c?.kind==="directory"&&c.directoryPath===Z,isDragging:l?.has(Z)===!0,isFocusRinged:t.isFocused&&s===Z},targetPath:Z}),key:n,onContextMenu:P||d?(ie)=>{if(f()){ie.preventDefault();return}if(!P)return;if(ie.preventDefault(),!me)return;i.focusMountedPathFromInput(Z),Ee(t,Z,{anchorRect:Op(ie.clientX,ie.clientY),source:"right-click"})}:void 0,onFocus:!Ke?()=>{i.focusMountedPathFromInput(Z)}:void 0,onKeyDown:!Ke?de:void 0,ref:(ie)=>{N(Z,ie)}};if(!Ke&&Pe)return k("div",{...Ze,children:sn});return k("button",{...Ze,type:"button",draggable:d&&!Y,onDragEnd:d&&!Y?m:void 0,onDragStart:d&&!Y?(ie)=>{u(ie,t,Z)}:void 0,onMouseDown:(ie)=>{if(Ke){ie.preventDefault();return}if(i.isSearchOpen())ie.preventDefault()},onTouchStart:d&&!Y?(ie)=>{p(ie,t,Z)}:void 0,onClick:(ie)=>{U(ie,t,Z,Je)},children:sn})}function Kp(e,t,n){if(t.end<t.start)return[];return e.controller.getVisibleRows(t.start,t.end).filter((r)=>!n.has(Rn(r))).map((r,i)=>Ii(e,r,t.start+i))}function Si({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:o,instanceId:s,itemHeight:a=oi,overscan:l=10,renamingEnabled:c=!1,renderRowDecoration:d,searchBlurBehavior:f="close",searchEnabled:u=!1,searchFakeFocus:m=!1,slotHost:p,stickyFolders:g=!1,initialViewportHeight:v=420}){let S=V(null),C=V(null),y=V(!1),w=V(null),x=V(null),P=V(null),O=V(null),pe=V(null),G=V(new Map),me=V(new Map),j=V(()=>{}),N=V(null),re=V(0),W=V(!1),Ee=V(null);if(Ee.current!==t)W.current=!1,Ee.current=t;let U=V(!1),de=V(null),Z=V(null),Y=V(!1),Je=V(null),Ue=V(null),Ke=V(null),ht=V(null),_t=V(null),Fe=V(null),ze=V(null),Te=V(null),Ge=V(!1),ft=V(null),Pe=V(null),pt=V(null),Be=V(null),sn=It(()=>new Map,[]),[,Ze]=it(0),ie=V(!1),[jn,et]=it(null),[an,mt]=it(null),[De,gt]=it(null),[Fi,X]=it(null),[Tr,Pr]=it(0),[K,zt]=it(null),qt=V(K);qt.current=K;let ln=V(null),Wt=V(null),I=V(null),L=V(null),R=V(null),ge=V(!1),jt=()=>{Wt.current=null,I.current=null,L.current=null},Et=(h,b)=>{Wt.current=h,I.current=null,L.current=b==null?null:{path:h,scrollTop:b}},$n=(h,b)=>{Wt.current=null,I.current={path:h,viewportOffset:b},L.current=null},Cs=V(f==="retain"&&t.isSearchOpen()),[Td,xs]=it(m);ns(()=>{if(!m)xs(!1)},[m]);let ks=V(!1),Bi=_e(()=>{ks.current=!0,xs((h)=>h?!1:h)},[]),[Pd,Rd]=it(()=>is({controller:t,itemHeight:a,overscan:l,scrollTop:0,stickyFolders:g,viewportHeight:v})),[Dd,Md]=it(!1);ns(()=>{Md(!0)},[]);let He=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,cn=e?.contextMenu?.triggerMode??(He?"right-click":"both"),un=cn==="both"||cn==="button",_s=e?.contextMenu?.buttonVisibility??"when-needed",Ad=cn==="both"||cn==="right-click";Oe(()=>{let h=P.current;if(h==null)return;let b=(_)=>{if(!(_ instanceof CustomEvent))return;let T=_.detail?.path??null;R.current=T,mt(T),X(T==null?null:"pointer")},A=(_)=>{if(!(_ instanceof CustomEvent))return;ge.current=_.detail?.disabled===!0};return h.addEventListener("file-tree-debug-set-context-menu-trigger",b),h.addEventListener("file-tree-debug-set-scroll-suppression",A),()=>{h.removeEventListener("file-tree-debug-set-context-menu-trigger",b),h.removeEventListener("file-tree-debug-set-scroll-suppression",A)}},[]);let Nd=_e((h,b)=>{su(G.current,h,b)},[]),Ld=_e((h,b)=>{su(me.current,h,b)},[]),Fd=_e((h)=>{x.current=h},[]),Un=_e((h)=>au(h,me.current,G.current),[]),Es=n!=null||r!=null||i!=null,{resolveIcon:Ts}=It(()=>ac(o),[o]),Kn=t[Lo](),dn=Kn.getPath(),Hi=dn!=null,at=t.isSearchOpen(),Bd=t.getSearchValue(),q=t.getFocusedPath(),oe=t.getFocusedIndex(),$t=t.getScrollRequest(),vt=t.isDragAndDropEnabled(),Gn=t.getDragSession(),Hd=It(()=>Gn==null?null:new Set(Gn.draggedPaths),[Gn]),Vd=Gn?.target??null,Yn=Gn?.primaryPath??null,Ps=$p(s),{overlayHeight:Od,overlayRows:zd,snapshot:Se,visibleRows:Rr}=Pd,ke=Se.physical.viewportHeight,tt=It(()=>({end:Se.window.endIndex,start:Se.window.startIndex}),[Se.window.endIndex,Se.window.startIndex]),Xn=zd,Rs=Se.sticky.rows,Ut=Se.physical.totalHeight,hn=Se.sticky.height,Dr=It(()=>new Set(Rs.map((h)=>Rn(h.row))),[Rs]),Vi=oe>=0&&oe>=tt.start&&oe<=tt.end,qd=_e((h,b)=>d?.({item:lu(h,b),row:h})??null,[d]),Ds=_e((h)=>{if(Zt(h==null?null:G.current.get(h)??null))return!0;return Zt(P.current)},[]),Mr=_e((h)=>{Ds(t.focusNearestPath(h))},[t,Ds]),Ms=V(Mr);Ms.current=Mr;let fn=V(!0),Oi=V(()=>{}),Ye=_e((h=!0)=>{let b=qt.current;if(b==null)return;if(fn.current=fn.current&&h,zt(null),e?.contextMenu?.onClose?.(),fn.current)Mr(b.path)},[e?.contextMenu,Mr]);Oi.current=Ye;let Qn=_e((h)=>{let b=h==null?null:zp(P.current,h);gt((A)=>A===b?A:b)},[]),As=_e((h,b,A)=>{let _=t.getItem(b);if(_==null)return;let T=Un(b);if(T?.dataset.fileTreeStickyRow==="true"){let H=O.current;Et(b,H?.scrollTop??null),U.current=!0,et((ce)=>ce===b?ce:b)}_.focus(),Qn(T),fn.current=!0,zt({anchorRect:A?.anchorRect??null,item:lu(h,b),path:b,source:A?.source??"keyboard"})},[t,Un,Qn]),Wd=_e((h)=>{if(!c)return;if(t.isSearchOpen()){let b=O.current,A=_n(b,ke);Je.current=oe<0||b==null?null:Math.max(0,Math.min(oe*a-b.scrollTop,Math.max(0,A-a))),Y.current=!0}if(t.startRenaming(h)===!1)return;X("focus"),Ze((b)=>b+1)},[t,oe,a,c,ke]),Ar=_e((h,{restoreTreeFocus:b=!0,targetOffset:A="live-overlay"}={})=>{let _=O.current;if(_==null)return!1;t.focusPath(h);let T=t.getFocusedIndex();if(T<0)return!1;let H=t.getVisibleRows(T,T)[0]??null;if(H==null)return!1;let ce=_n(_,ke),F=t.getVisibleCount()*a,te=A==="sticky-parents"?H.ancestorPaths.length*a:is({controller:t,itemHeight:a,overscan:l,scrollTop:_.scrollTop,stickyFolders:g,viewportHeight:ce}).snapshot.sticky.height;return U.current=!0,En(_,T,a,ce,F,te),j.current(),ln.current=b?h:null,!0},[t,a,l,ke,g]),jd=()=>y.current===!0||Be.current!=null||Ge.current===!0,Ns=(h)=>typeof window.requestAnimationFrame==="function"?window.requestAnimationFrame(()=>{h()}):window.setTimeout(h,16),$d=(h)=>{if(h==null)return;if(typeof window.cancelAnimationFrame==="function"){window.cancelAnimationFrame(h);return}window.clearTimeout(h)},Tt=()=>{if(ht.current!=null)clearTimeout(ht.current),ht.current=null;Ke.current=null},Nr=()=>{Fe.current?.remove(),Fe.current=null},Jn=()=>{$d(Ue.current),Ue.current=null,_t.current=null},Ls=(h)=>{let b=P.current?.getRootNode();if(b instanceof ShadowRoot){b.append(h);return}document.body.append(h)},Zn=()=>{if(Te.current?.(),Te.current=null,Be.current!=null)clearTimeout(Be.current),Be.current=null;if(Ge.current=!1,ft.current=null,pt.current=null,Pe.current!=null)Pe.current.setAttribute("draggable","true"),Pe.current.style.removeProperty("touch-action"),Pe.current=null;Nr(),Tt(),Jn(),ze.current=null},Lr=(h,b)=>{let A=P.current?.getRootNode(),_=nu(Pp(A instanceof ShadowRoot?A:document,h,b));return t.setDragTarget(_),t.getDragSession()?.target??null},zi=(h)=>{let b=t.getDragAndDropConfig()?.openOnDropDelay??800;if(h==null||h.kind!=="directory"||h.directoryPath==null||b<=0){Tt();return}let A=t.getItem(h.directoryPath),_=iu(A)?A:null;if(_==null||_.isExpanded()){Tt();return}let T=`${h.directoryPath}::${h.flattenedSegmentPath??""}`;if(Ke.current===T)return;Tt(),Ke.current=T,ht.current=setTimeout(()=>{let H=t.getDragSession()?.target;if(H?.kind!=="directory"||H.directoryPath!==h.directoryPath||H.flattenedSegmentPath!==h.flattenedSegmentPath)return;_.expand()},b)},Fs=()=>{Ue.current=null;let h=_t.current,b=O.current;if(h==null||b==null||t.getDragSession()==null)return;let A=b.getBoundingClientRect(),_=Mp(h.clientY,A);if(_===0)return;let T=Math.max(0,b.scrollHeight-b.clientHeight),H=Math.max(0,Math.min(T,b.scrollTop+_));if(H!==b.scrollTop)b.scrollTop=H,j.current();zi(Lr(h.clientX,h.clientY)),Ue.current=Ns(Fs)},Bs=(h,b)=>{_t.current={clientX:h,clientY:b},Ue.current??=Ns(Fs)},Ud=(h,b,A)=>{let _=h.currentTarget;if(_==null)return;if(Zn(),Nr(),Tt(),Jn(),t.startDrag(A)===!1){h.preventDefault();return}if(ze.current=b,h.dataTransfer!=null){if(h.dataTransfer.effectAllowed="move",h.dataTransfer.dropEffect="move",h.dataTransfer.setData("text/plain",A),Dp()){let T=ru(_),H=_.getBoundingClientRect();Object.assign(T.style,{height:`${H.height}px`,opacity:"0.85",transform:"translate3d(-9999px, 0px, 0)",width:`${H.width}px`}),Ls(T),Fe.current=T,h.dataTransfer.setDragImage(T,Math.max(0,h.clientX-H.left),Math.max(0,h.clientY-H.top))}}},Kd=()=>{Nr(),Tt(),Jn(),ze.current=null,t.cancelDrag()},Gd=(h,b,A)=>{if(Be.current!=null||Ge.current)return;let _=h.touches[0],T=h.currentTarget;if(_==null||T==null)return;pt.current={clientX:_.clientX,clientY:_.clientY},Pe.current=T,T.setAttribute("draggable","false");let H=(te={})=>{let le=te.restoreNativeDraggable??!Ge.current;if(Be.current!=null)clearTimeout(Be.current),Be.current=null;if(document.removeEventListener("touchmove",ce),document.removeEventListener("touchend",F),document.removeEventListener("touchcancel",F),Te.current===H)Te.current=null;if(le){if(T.setAttribute("draggable","true"),Pe.current===T)Pe.current=null;pt.current=null}},ce=(te)=>{let le=te.touches[0],se=pt.current;if(le==null||se==null)return;let he=le.clientX-se.clientX,Re=le.clientY-se.clientY;if(he*he+Re*Re<=eu*eu)return;H()},F=()=>{H()};document.addEventListener("touchmove",ce,{passive:!0}),document.addEventListener("touchend",F),document.addEventListener("touchcancel",F),Te.current=H,Be.current=setTimeout(()=>{if(H({restoreNativeDraggable:!1}),t.startDrag(A)===!1){if(T.setAttribute("draggable","true"),Pe.current===T)Pe.current=null;pt.current=null;return}Ge.current=!0,Pe.current=T,T.setAttribute("draggable","false"),T.style.setProperty("touch-action","none"),ze.current=b;let te=T.getBoundingClientRect(),le=ru(T);Object.assign(le.style,{height:`${te.height}px`,opacity:"0.85",transform:`translate3d(${te.left}px, ${te.top}px, 0)`,width:`${te.width}px`}),Ls(le),Fe.current=le,ft.current={x:_.clientX-te.left,y:_.clientY-te.top};let se=(nt)=>{let we=nt.touches[0];if(we==null)return;nt.preventDefault();let ee=ft.current;if(ee!=null&&Fe.current!=null)Fe.current.style.transform=`translate3d(${we.clientX-ee.x}px, ${we.clientY-ee.y}px, 0)`;zi(Lr(we.clientX,we.clientY)),Bs(we.clientX,we.clientY)},he=(nt)=>{let we=nt.changedTouches[0];if(we!=null)Lr(we.clientX,we.clientY);t.completeDrag(),Zn()},Re=()=>{t.cancelDrag(),Zn()};Te.current=()=>{document.removeEventListener("touchmove",se),document.removeEventListener("touchend",he),document.removeEventListener("touchcancel",Re)},document.addEventListener("touchmove",se,{passive:!1}),document.addEventListener("touchend",he),document.addEventListener("touchcancel",Re)},Tp)},Hs=(h)=>{if(K!=null){if(h.key==="Escape"){Ye(),h.preventDefault(),h.stopPropagation();return}if(Hp.has(h.key))h.preventDefault(),h.stopPropagation();return}if(Kn.isActive()){if(h.isComposing||h.keyCode===229)return;if(h.key==="Escape")Kn.cancel();else if(h.key==="Enter")Kn.commit();else return;X("focus"),Ze((ve)=>ve+1),h.preventDefault(),h.stopPropagation();return}if(c&&h.key==="F2"){Wd(q??void 0),h.preventDefault(),h.stopPropagation();return}if(at){if(h.key==="Escape")Y.current=!1,Je.current=null,t.closeSearch();else if(h.key==="Enter"){let ve=t.getFocusedPath();if(ve!=null)t.selectOnlyPath(ve);let lt=O.current,Or=_n(lt,ke);Je.current=oe<0||lt==null?null:Math.max(0,Math.min(oe*a-lt.scrollTop,Math.max(0,Or-a))),Y.current=!0,t.closeSearch()}else if(h.key==="ArrowDown")t.focusNextSearchMatch();else if(h.key==="ArrowUp")t.focusPreviousSearchMatch();else return;X("focus"),Ze((ve)=>ve+1),h.preventDefault(),h.stopPropagation();return}if(u&&Lp(h)){t.openSearch(h.key),Ze((ve)=>ve+1),h.preventDefault(),h.stopPropagation();return}let b=He&&fu(h),A=Bp(h,He),_=A&&P.current!=null?br(P.current):null,T=A?new Set(qp(P.current)):new Set,H=_?.dataset.fileTreeStickyPath??null,ce=_?.dataset.fileTreeStickyRow==="true"&&H!=null;if(ce&&H!==q&&T.has(H)){let ve=O.current;Et(H,ve?.scrollTop??null),t.focusPath(H)}let F=t.getFocusedPath(),te=t.getFocusedIndex(),le=t.getFocusedItem();if(le==null)return;let se=iu(le)?le:null,he=F!=null&&(Dr.has(F)||ce&&H===F&&T.has(F)),Re=h.key==="ArrowDown"||h.key==="ArrowUp"||h.key==="ArrowRight"&&se!=null&&se.isExpanded(),nt=h.key==="ArrowLeft"&&he&&se!=null&&se.isExpanded(),we=O.current,ee=!0;if(h.shiftKey&&h.key==="ArrowDown")t.extendSelectionFromFocused(1);else if(h.shiftKey&&h.key==="ArrowUp")t.extendSelectionFromFocused(-1);else if(b&&F!=null&&te>=0){let ve=t.getVisibleRows(te,te)[0]??null,lt=au(F,me.current,G.current);if(ve==null||lt==null)ee=!1;else As(ve,F)}else if((h.ctrlKey||h.metaKey)&&hu(h))t.toggleFocusedSelection();else if((h.ctrlKey||h.metaKey)&&h.key.toLowerCase()==="a")t.selectAllVisiblePaths();else switch(h.key){case"ArrowDown":t.focusNextItem();break;case"ArrowUp":t.focusPreviousItem();break;case"ArrowRight":if(se==null||se.isExpanded())t.focusNextItem();else se.expand();break;case"ArrowLeft":if(se!=null&&se.isExpanded())se.collapse();else t.focusParentItem();break;case"Home":t.focusFirstItem();break;case"End":t.focusLastItem();break;default:ee=!1}if(!ee)return;X("focus");let fe=t.getFocusedPath(),Me=fe!=null&&(Dr.has(fe)||T.has(fe)),Hr=Re&&fe!==F,Vr=b&&ce&&H===F&&fe===F;if((he||Vr)&&fe!=null&&(Hr&&Me||Vr))Et(fe,we?.scrollTop??null),U.current=!0,et((ve)=>ve===fe?ve:fe);else{let ve=h.key==="ArrowUp"&&he&&fe!==F;if(fe!=null&&(ve||nt&&fe===F))$n(fe,jp(P.current,we,_,F,a,hn,ke)),U.current=!0,et((lt)=>lt===fe?lt:fe);else jt()}Ze((ve)=>ve+1),h.preventDefault(),h.stopPropagation()};Oe(()=>{if(!u||!at)return;if(Cs.current){Cs.current=!1;return}Zt(pe.current)},[at,u]),Oe(()=>{let h=x.current;switch(Vc({hasRenderedInput:h!=null,previousRenamingPath:Z.current,renamingPath:dn})){case"reset":Z.current=null;return;case"reveal-canonical":if(dn!=null)Ar(dn,{restoreTreeFocus:!1,targetOffset:"live-overlay"});return;case"ignore":return;case"focus-input":if(h!=null)ln.current=null,Z.current=dn,Zt(h),h.select();return}},[tt.end,tt.start,dn,Ar,Dr]),Oe(()=>{let h=P.current;if(h==null)return;let b=null,A=()=>{if(b==null)return;clearTimeout(b),b=null},_=()=>{let ce=br(h)?.dataset.itemPath??null;et((F)=>F===ce?F:ce)},T=()=>{A(),U.current=!0,_()},H=(ce)=>{let F=ce.relatedTarget;if(F==null){A(),b=setTimeout(()=>{if(b=null,br(h)!=null){_();return}U.current=!1,et(null)},0);return}if(!(F instanceof Node)||!h.contains(F)){A(),U.current=!1,et(null);return}let te=F instanceof HTMLElement?F.dataset.itemPath??null:null;et((le)=>le===te?le:te)};return h.addEventListener("focusin",T),h.addEventListener("focusout",H),()=>{A(),h.removeEventListener("focusin",T),h.removeEventListener("focusout",H)}},[]),Oe(()=>{let h=P.current;if(h==null)return;if(Se.physical.scrollTop<=0)h.dataset.scrollAtTop="true";else delete h.dataset.scrollAtTop},[Se.physical.scrollTop]),Oe(()=>{let h=null,b=O.current,A=w.current,_=P.current;if(b==null)return;N.current=_n(b,v);let T=()=>{let ee=t.getVisibleCount(),fe=Xo(N.current,v),Me=Math.max(0,ee*a-fe);if(b.scrollTop>Me)b.scrollTop=Me;Rd(is({controller:t,itemHeight:a,overscan:l,scrollTop:Math.min(b.scrollTop,Me),stickyFolders:g,viewportHeight:fe}))};if(!W.current){W.current=!0;let ee=t.getFocusedIndex();if(ee>=0){let fe=Xo(N.current,v),Me=t.getVisibleRows(ee,ee)[0]??null;Qo(b,ee,a,fe,g&&Me!=null?Math.max(0,Math.min(Me.ancestorPaths.length*a,Math.max(0,fe-a))):0)}}j.current=T;let H=t.subscribe(()=>{if(Nc(ie))Ze((ee)=>ee+1);T()}),ce=()=>{if(ge.current===!0)return;if(A!=null)A.dataset.isScrolling??="";if(_!=null)_.dataset.isScrolling??="";if(y.current=!0,h!=null)clearTimeout(h);h=setTimeout(()=>{if(A!=null)delete A.dataset.isScrolling;if(_!=null)delete _.dataset.isScrolling;y.current=!1,Pr((ee)=>ee+1),h=null},50)},F=null,te=()=>{if(_!=null)delete _.dataset.overlayReveal;if(F!=null)clearTimeout(F),F=null},le=()=>{if(_==null||ge.current===!0)return;if(b.scrollTop>0)return;if(_.dataset.overlayReveal="true",F!=null)clearTimeout(F);F=setTimeout(()=>{te()},200)},se=()=>{if(T(),b.scrollTop>0)te();if(qt.current!=null&&y.current)Oi.current();if(ge.current===!0){y.current=!1;return}mt((ee)=>ee==null?ee:null),ce()},he=()=>{ce(),le()},Re=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"," ","Spacebar"]),nt=(ee)=>{if(!Re.has(ee.key))return;he()};b.addEventListener("scroll",se,{passive:!0}),b.addEventListener("wheel",he,{passive:!0}),b.addEventListener("touchmove",he,{passive:!0}),b.addEventListener("keydown",nt);let we=typeof ResizeObserver<"u"?new ResizeObserver((ee)=>{N.current=(ee[0]==null?null:Bc(ee[0]))??_n(b,v),T()}):null;return we?.observe(b),()=>{if(j.current=()=>{},H(),b.removeEventListener("scroll",se),b.removeEventListener("wheel",he),b.removeEventListener("touchmove",he),b.removeEventListener("keydown",nt),h!=null)clearTimeout(h);if(F!=null)clearTimeout(F);if(A!=null)delete A.dataset.isScrolling;if(_!=null)delete _.dataset.isScrolling,delete _.dataset.overlayReveal;y.current=!1,N.current=null,we?.disconnect()}},[t,v,a,l,g]),Oe(()=>{if(He||K==null)return;Ye(!1)},[Ye,He,K]);let Vs=It(()=>K==null?null:`${K.path}::${K.source}`,[K]);Oe(()=>{if(Vs==null){p?.clearSlotContent(pr);return}let h=qt.current;if(h==null)return;let b=C.current??S.current;if(b==null)return;let A={anchorElement:b,anchorRect:h.anchorRect??Vp(b.getBoundingClientRect()),close:(T)=>{Oi.current(T?.restoreFocus??!0)},restoreFocus:()=>{if(!fn.current)return;Ms.current(qt.current?.path??null)}},_=e?.contextMenu?.render?.(h.item,A)??null;return p?.setSlotContent(pr,_),e?.contextMenu?.onOpen?.(h.item,A),du(_),queueMicrotask(()=>{if(_==null||!_.isConnected)return;if(document.activeElement!==_)return;du(_)}),()=>{p?.clearSlotContent(pr)}},[Vs,e?.contextMenu,p]),Oe(()=>{if(K!=null&&t.getItem(K.path)==null)Ye()},[Ye,K,t]),Oe(()=>{if(K==null)return;let h=P.current?.getRootNode(),b=h instanceof ShadowRoot?h.host:P.current,A=(T)=>{let H=T.target;if(!(H instanceof Node))return;if(ou(T))return;if(S.current?.contains(H)===!0)return;if(b?.contains(H)===!0)return;Ye()},_=(T)=>{if(T.key==="Escape")T.preventDefault(),T.stopPropagation(),Ye()};return document.addEventListener("mousedown",A,!0),document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("mousedown",A,!0),document.removeEventListener("keydown",_,!0)}},[Ye,K]),Oe(()=>{let h=O.current,b=P.current;if(h==null||b==null){de.current=q;return}let A=q==null?null:G.current.get(q)??null,_=br(b),T=_?.dataset.itemPath??null,H=Hi&&x.current===_,ce=u&&pe.current===_,F=Y.current&&!at,te=Je.current??0,le=ln.current,se=Wt.current,he=I.current,Re=L.current,nt=_!=null,we=U.current||nt,ee=de.current!==q,fe=se!=null&&se===q&&q!=null,Me=!1,Hr=!1;if($t!=null&&$t.id!==re.current){re.current=$t.id;let Wi=$t.visibleIndex,js=t.getVisibleRows(Wi,Wi)[0]??null;if(js!=null){let wh=g?Math.max(0,Math.min(js.ancestorPaths.length*a,Math.max(0,ke-a))):hn;Me=!0,Hr=Hc(h,Wi,a,ke,Ut,$t.offset,wh)}t.clearScrollRequest($t.id)}let Vr=!Me&&F&&En(h,oe,a,ke,Ut,te),ve=!Me&&le!=null&&le===q&&En(h,oe,a,ke,Ut,hn),lt=!Me&&he!=null&&he.path===q&&En(h,oe,a,ke,Ut,he.viewportOffset),Or=!Me&&Re!=null&&Re.path===q&&h.scrollTop!==Re.scrollTop;if(Or)h.scrollTop=Re.scrollTop;if(Or||Hr||ve||lt||Vr||we&&ee&&le!==q&&!fe&&Qo(h,oe,a,ke,hn))j.current();if(Me){de.current=q;return}if(!we){de.current=q;return}if(H){de.current=q;return}if(ce&&!F){de.current=q;return}if(A==null){if(F&&oe>=0)En(h,oe,a,ke,Ut,te),j.current();de.current=q;return}if(ee||F||le===q||se===q||he?.path===q||Re?.path===q||T==null||T!==q){if(Zt(A),le===q)ln.current=null;if(se===q)Wt.current=null;if(he?.path===q)I.current=null;if(Re?.path===q)L.current=null;Y.current=!1,Je.current=null}de.current=q},[t,oe,q,Vi,a,Hi,at,tt,ke,u,$t,g,hn,Ut,Rr]);let Yd=oe>=0&&oe>=Se.visible.startIndex&&oe<=Se.visible.endIndex,Xd=q!=null&&Xn.some((h)=>Rn(h.row)===q),Qd=Yd||Xd,Jd=un&&U.current===!0&&Qd?q:null,Zd=Fi==="pointer"?an:null,Kt=K?.path??R.current??Zd??Jd??an,Os=K?.source==="right-click";Oe(()=>{if(y.current&&K==null)return;Qn(Un(Kt))},[K,Un,tt,ke,Tr,Xn,Kt,Qn,Rr]);let eh=_e((h)=>{if(y.current)return;if(ou(h))return;let b=h.target;if(!(b instanceof HTMLElement))return;if(b.closest?.('[data-type="context-menu-trigger"]')!=null)return;let A=b.closest?.('[data-file-tree-sticky-row="true"]'),_=b.closest?.('[data-type="item"]'),T=A instanceof HTMLElement?A.dataset.fileTreeStickyPath??null:_ instanceof HTMLElement?_.dataset.itemPath??null:null;if(T!=null)X((H)=>H==="pointer"?H:"pointer");mt((H)=>H===T?H:T)},[]),th=_e(()=>{mt(null)},[]);Oe(()=>{if(!vt)return;let h=()=>{Zn(),t.cancelDrag()};return window.addEventListener("dragend",h),()=>{window.removeEventListener("dragend",h),Zn(),t.cancelDrag()}},[t,vt]);let nh=(h)=>{if(!vt||t.getDragSession()==null||Ge.current)return;let b=nu(h.target instanceof HTMLElement?h.target:null);if(t.setDragTarget(b),zi(t.getDragSession()?.target??null),Bs(h.clientX,h.clientY),h.dataTransfer!=null)h.dataTransfer.dropEffect="move";h.preventDefault()},rh=(h)=>{if(!vt||t.getDragSession()==null||Ge.current)return;let b=h.relatedTarget;if(b instanceof Node&&P.current?.contains(b)===!0)return;Tt(),Jn(),t.setDragTarget(null)},ih=(h)=>{if(!vt||t.getDragSession()==null||Ge.current)return;h.preventDefault(),Lr(h.clientX,h.clientY),t.completeDrag(),Nr(),Tt(),Jn(),ze.current=null},er=Se.window.height,oh=Se.window.offsetTop,sh=Math.min(0,ke-er),ah=Math.min(0,ke-er-hn),lh=jn===q||Y.current,pn=q!=null&&lh&&!Vi&&oe>=0?Rr[oe]??t.getVisibleRows(oe,oe)[0]??null:null,zs=pn==null?null:Jo(oe,a,tt,er),Pt=ze.current,ch=Yn!=null&&Pt!=null&&Pt.path===Yn&&Pt.index>=tt.start&&Pt.index<=tt.end,tr=Yn!=null&&Pt!=null&&Pt.path===Yn&&!ch&&Pt.path!==pn?.path?Pt:null,qs=tr==null?null:Jo(tr.index,a,tt,er),uh=Fp((oe>=0?Rr[oe]??t.getVisibleRows(oe,oe)[0]??null:null)?.ancestorPaths.at(-1)??null),dh=at&&q!=null?pu(s,q,!Vi):void 0,hh=K?.path??(at?q:jn),fh=K?.path??an,nr=Un(Kt),qi=He&&un&&!Os&&!Hi&&nr!=null&&De!=null&&Kt!=null,ph=He&&(qi||K!=null),Fr=K?.anchorRect,Ws=Fr==null&&nr!=null&&De!=null&&(K!=null||qi)?De:null,mh=Fr!=null?{left:`${Fr.left}px`,position:"fixed",right:"auto",top:`${Fr.top}px`}:Ws!=null?{top:`${Ws}px`}:void 0,gh=Os?{opacity:"0"}:void 0,vh=_e((h,b,A,_)=>{let T=qc({event:{ctrlKey:h.ctrlKey,metaKey:h.metaKey,shiftKey:h.shiftKey},isDirectory:b.kind==="directory",isSearchOpen:at,mode:_}),H=T.toggleDirectory&&b.kind==="directory",ce=H?t.resolveMountedDirectoryPathFromInput(A):null;if(H&&ce==null)return;let F=ce??A;switch(T.selection.kind){case"range":t.selectPathRange(F,T.selection.additive);break;case"toggle":t.togglePathSelectionFromInput(F);break;case"single":t.selectOnlyMountedPathFromInput(F);break}let te=h.currentTarget instanceof HTMLElement?h.currentTarget:null,le=b.index>=Se.visible.startIndex&&b.index<=Se.visible.endIndex,se=_==="flow"&&le&&te!=null&&te.dataset.itemParked!=="true";if(t.focusMountedPathFromInput(F),se)U.current=!0,et((he)=>he===F?he:F),X("focus");if(H)t.toggleMountedDirectoryFromInput(F);if(T.closeSearch)t.closeSearch();if(T.revealCanonical)Ar(F,{targetOffset:"sticky-parents"})},[t,at,Se.visible.endIndex,Se.visible.startIndex,Ar]),yh=()=>{if(y.current)return;if(!un)return;if(Kt==null||nr==null)return;let h=t.getItem(Kt);if(h==null)return;Qn(nr),fn.current=!0,zt({anchorRect:null,item:{kind:h.isDirectory()?"directory":"file",name:nr.getAttribute("aria-label")??Kt,path:h.getPath()},path:h.getPath(),source:"button"})},Br={contextHoverPath:fh,contextMenuButtonTriggerEnabled:un,contextMenuButtonVisibility:_s,contextMenuEnabled:He,contextMenuRightClickEnabled:Ad,contextMenuTriggerMode:cn,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:vt,draggedPathSet:Hd,dragTarget:Vd,gitLaneActive:Es,gitStatusByPath:n,handleRowDragEnd:Kd,handleRowDragStart:Ud,handleRowTouchStart:Gd,ignoredGitDirectories:r,ignoredInheritanceCache:sn,instanceId:s,itemHeight:a,onKeyDown:Hs,onRowClick:vh,openContextMenuForRow:As,registerButton:Nd,registerRenameInput:Fd,renameView:Kn,renderDecorationForRow:qd,resolveIcon:Ts,shouldSuppressContextMenu:jd,visualFocusPath:hh},bh={...Br,registerButton:Ld};return k("div",{ref:P,id:Ps,"data-file-tree-context-menu-button-visibility":He&&un?_s:void 0,"data-file-tree-context-menu-trigger-mode":He?cn:void 0,"data-file-tree-has-context-menu-action-lane":He&&un?"true":void 0,"data-file-tree-has-git-lane":Es?"true":void 0,"data-file-tree-virtualized-root":"true",onDragLeave:vt?rh:void 0,onDragOver:vt?nh:void 0,onDrop:vt?ih:void 0,onKeyDown:Hs,onPointerLeave:He?th:void 0,onPointerOver:He?eh:void 0,role:"tree",tabIndex:-1,style:{outline:"none",position:"relative"},children:[k("style",{"data-file-tree-guide-style":"true",dangerouslySetInnerHTML:{__html:uh}}),k("slot",{name:fr,"data-type":"header-slot"}),u?k("div",{"data-file-tree-search-container":!0,"data-open":at?"true":"false",children:k("input",{ref:pe,"aria-activedescendant":dh,"aria-controls":Ps,placeholder:"Search…","data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Td?"true":void 0,value:Bd,onBlur:()=>{if(f==="retain"&&!ks.current)return;t.closeSearch()},onFocus:Bi,onPointerDown:Bi,onInput:(h)=>{Bi();let b=h.currentTarget;t.setSearch(b.value)}})}):null,k("div",{ref:O,"data-file-tree-virtualized-scroll":"true",children:[g&&Dd&&Xn.length>0?k("div",{"aria-hidden":"true","data-file-tree-sticky-overlay":"true",children:k("div",{"data-file-tree-sticky-overlay-content":"true",style:{height:`${Od}px`},children:Xn.map((h,b)=>Ii(bh,h.row,`sticky:${Rn(h.row)}`,{mode:"sticky",style:{left:"0",position:"absolute",right:"0",top:`${h.top}px`,zIndex:`${Xn.length-b}`}}))})}):null,k("div",{ref:w,"data-file-tree-virtualized-list":"true",style:{height:`${Ut}px`},children:[k("div",{"data-file-tree-virtualized-sticky-offset":"true","aria-hidden":"true",style:{height:`${oh}px`}}),k("div",{"data-file-tree-virtualized-sticky":"true",style:{height:`${er}px`,top:`${sh}px`,bottom:`${ah}px`},children:[Kp(Br,tt,Dr),pn!=null&&zs!=null?Ii(Br,pn,`parked:${pn.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:Yn===pn.path?"none":void 0,position:"absolute",right:"0",top:`${zs}px`}}):null,tr!=null&&qs!=null?Ii(Br,tr,`parked-drag:${tr.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:"none",position:"absolute",right:"0",top:`${qs}px`}}):null]})]})]}),He?k("div",{ref:S,"data-type":"context-menu-anchor","data-visible":ph?"true":"false",style:mh,children:[k("button",{ref:C,type:"button","data-type":Vl,"aria-label":"Options","aria-haspopup":"menu","aria-expanded":K!=null?"true":"false","data-visible":qi?"true":"false",onMouseDown:(h)=>{h.preventDefault()},onClick:(h)=>{if(h.preventDefault(),h.stopPropagation(),K!=null){Ye();return}yh()},tabIndex:-1,style:gh,children:k(kn,{...Ts("file-tree-icon-ellipsis")})}),K!=null?k("slot",{name:pr}):null]}):null,K!=null?k("div",{"data-type":"context-menu-wash","aria-hidden":"true",onMouseDownCapture:(h)=>{h.preventDefault(),Ye()},onTouchStartCapture:(h)=>{h.preventDefault(),h.stopPropagation(),Ye()},onTouchMoveCapture:(h)=>{h.preventDefault(),h.stopPropagation()},onWheelCapture:(h)=>{h.preventDefault(),h.stopPropagation()}}):null]})}var ss={hydrateRoot:(e,t)=>{Sc(xn(Si,t),e)},renderRoot:(e,t)=>{yi(xn(Si,t),e)},unmountRoot:(e)=>{yi(null,e)}};function Dn(e,t){ss.renderRoot(e,t)}function mu(e,t){ss.hydrateRoot(e,t)}function gu(e){ss.unmountRoot(e)}var vu=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#c(e);if(t==null)return;t.remove(),this.#e.delete(e)}setHost(e){if(this.#t=e,e==null)return;this.#a(e);for(let[t,n]of this.#e)this.#u(t,n)}setSlotContent(e,t){let n=this.#c(e);if(n===t){if(t!=null)this.#e.set(e,t),this.#u(e,t);return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#u(e,t)}setSlotHtml(e,t){let n=t?.trim()??"";if(n.length===0){this.setSlotContent(e,null);return}let r=this.#c(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#u(e,r);return}let i=document.createElement("div");i.innerHTML=n,this.setSlotContent(e,i)}#c(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let r of Array.from(n.children)){if(!(r instanceof HTMLElement))continue;if(r.dataset.fileTreeManagedSlot===e)return r}return null}#u(e,t){if(t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t)this.#t.appendChild(t)}#a(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let n=t.dataset.fileTreeManagedSlot;if(n==null||this.#e.has(n))continue;this.#e.set(n,t)}}};function St(e,t,n){if(!e.s){if(n instanceof Gp){if(!n.s)return void(n.o=St.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(St.bind(null,e,t),St.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var Gp=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,i=this.s;if(i){var o=1&i?t:n;if(o){try{St(r,1,o(this.v))}catch(s){St(r,2,s)}return r}return this}return this.o=function(s){try{var a=s.v;1&s.s?St(r,1,t?t(a):a):n?St(r,1,n(a)):St(r,2,a)}catch(l){St(r,2,l)}},r},e}();var yu=0;function Yp(e){if(e!=null&&e.length>0)return e;return yu+=1,`pst_ft_${yu}`}function Xp({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??oi)}function bu(e){if(typeof document>"u")return;let t=document.createElement("div");t.innerHTML=e;let n=t.querySelector("svg");return n instanceof SVGElement?n:void 0}function wu(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 Iu(e){return Array.from(e.children).filter((t)=>t instanceof SVGElement)}var Ir=class{static LoadedCustomComponent=!0;#e;#t;#c;#u;#a;#V;#O;#v;#r;#y=new vu;#T;#b;#m;#h;#w;#I;#f;#z;#q;#N=null;#i;#W=!1;#j=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:o,initialSearchQuery:s,icons:a,itemHeight:l,onSearchChange:c,onSelectionChange:d,overscan:f,renderRowDecoration:u,renaming:m,search:p,searchBlurBehavior:g,searchFakeFocus:v,stickyFolders:S,unsafeCSS:C,initialVisibleRowCount:y,...w}=e;this.#e=t,this.#c=Yp(o),this.#h=Fo(i),this.#w=a,this.#I=C,this.#u=d,this.#a=u,this.#V=m!=null&&m!==!1,this.#O=g,this.#v=p===!0,this.#r=v===!0,this.#T=Ol(n,l),this.#b={itemHeight:this.#T.itemHeight,overscan:f,stickyFolders:S,initialVisibleRowCount:y},this.#t=new Zl({...w,fileTreeSearchMode:r,initialSearchQuery:s,onSearchChange:c,renaming:m}),this.#q=this.#t.getSelectionVersion(),this.#N=this.#u==null?null:this.subscribe(()=>{this.#R()})}unmount(){if(this.#i!=null)gu(this.#i),delete this.#i.dataset.fileTreeVirtualizedWrapper,this.#i=void 0;if(this.#y.clearAll(),this.#y.setHost(null),this.#m!=null)delete this.#m.dataset.fileTreeVirtualized,this.#F(this.#m),this.#m=void 0}cleanUp(){this.unmount(),this.#N?.(),this.#N=null,this.#t.destroy()}getFileTreeContainer(){return this.#m}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#T.itemHeight}getDensityFactor(){return this.#T.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){let t=rc(this.#h,e);if(t===this.#h)return;this.#h=t;let n=this.#s();if(n==null)return;Dn(n.wrapper,this.#P())}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){if(Array.isArray(e))this.#t.resetPaths(e,t);else this.#t.resetPaths(e)}setComposition(e){this.#e=e;let t=this.#s();if(t==null)return;this.#k(),Dn(t.wrapper,this.#P())}setGitStatus(e){let t=Fo(e,this.#h);if(t===this.#h)return;this.#h=t;let n=this.#s();if(n==null)return;Dn(n.wrapper,this.#P())}setIcons(e){this.#w=e;let t=this.#s();if(t==null)return;this.#g(t.host,t.wrapper),Dn(t.wrapper,this.#P())}hydrate({fileTreeContainer:e}){let t=this.#M(e),n=this.#L(t);this.#k(),mu(n,this.#P())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#M(t??this.#m,e),r=this.#L(n);this.#k(),Dn(r,this.#P())}#J(){return{initialViewportHeight:Xp({initialVisibleRowCount:this.#b.initialVisibleRowCount,itemHeight:this.#b.itemHeight}),itemHeight:this.#b.itemHeight,overscan:this.#b.overscan,stickyFolders:this.#b.stickyFolders}}#P(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#h?.statusByPath,ignoredGitDirectories:this.#h?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#h?.directoriesWithChanges,icons:this.#w,instanceId:this.#c,renamingEnabled:this.#V,renderRowDecoration:this.#a,searchBlurBehavior:this.#O,searchEnabled:this.#v,searchFakeFocus:this.#r,slotHost:this.#y,...this.#J()}}#s(){let e=this.#m,t=this.#i;if(e==null||t==null)return null;return{host:e,wrapper:t}}#g(e,t){let n=e.shadowRoot;if(n!=null)this.#$(n),this.#U(n);this.#K(t)}#R(){let e=this.#u;if(e==null)return;let t=this.#t.getSelectionVersion();if(t===this.#q)return;this.#q=t,e(this.#t.getSelectedPaths())}#k(){let e=this.#e?.header?.render;if(e!=null){this.#y.setSlotContent(fr,e());return}this.#y.setSlotHtml(fr,this.#e?.header?.html??null)}#$(e){let t=Iu(e).find((r)=>wu(r)),n=bu(Al(In(this.#w).set));if(n==null)return;if(t!=null&&t.outerHTML===n.outerHTML)return;if(t!=null)t.replaceWith(n);else e.prepend(n)}#U(e){let t=Iu(e),n=t.find((s)=>wu(s)),r=t.filter((s)=>s!==n),i=In(this.#w).spriteSheet?.trim()??"";if(i.length===0){for(let s of r)s.remove();return}let o=bu(i);if(o==null){for(let s of r)s.remove();return}if(r.length===1&&r[0].outerHTML===o.outerHTML)return;for(let s of r)s.remove();e.appendChild(o)}#K(e){let t=In(this.#w);if(t.colored&&Ll(t.set))e.dataset.fileTreeColoredIcons="true";else delete e.dataset.fileTreeColoredIcons}#l(e){let t=e.querySelector(`style[${ko}]`);if(this.#f==null&&t instanceof HTMLStyleElement)this.#f=t;if(this.#I==null||this.#I===""){this.#f?.remove(),this.#f=void 0,this.#z=void 0;return}if(this.#f?.parentNode===e&&this.#z===this.#I)return;if(this.#f??=document.createElement("style"),this.#f.setAttribute(ko,""),this.#f.parentNode!==e)e.appendChild(this.#f);this.#f.textContent=zl(this.#I),this.#z=this.#I}#L(e){if(this.#i!=null)return this.#i;let t=e.shadowRoot;if(t==null)throw Error("FileTree requires a shadow root");let n=Array.from(t.children).filter((i)=>i instanceof HTMLDivElement&&typeof i.dataset.fileTreeId==="string"&&i.dataset.fileTreeId.length>0),r=n.find((i)=>i.dataset.fileTreeId===this.#c)??n[0];if(r!=null)this.#c=r.dataset.fileTreeId??this.#c;if(this.#i=r??document.createElement("div"),this.#i.dataset.fileTreeId=this.#c,this.#i.dataset.fileTreeVirtualizedWrapper="true",this.#g(e,this.#i),this.#i.parentNode!==t)t.appendChild(this.#i);return this.#i}#M(e,t){let n=e??this.#m??document.createElement("file-tree-container");if(t!=null&&n.parentNode!==t)t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:"open"});return ci(n,r),this.#l(r),n.dataset.fileTreeVirtualized="true",n.style.display="flex",this.#x(n),this.#y.setHost(n),this.#m=n,n}#x(e){if(e.style.getPropertyValue("--trees-item-height")==="")e.style.setProperty("--trees-item-height",`${String(this.#T.itemHeight)}px`),this.#W=!0;if(e.style.getPropertyValue("--trees-density-override")==="")e.style.setProperty("--trees-density-override",String(this.#T.factor)),this.#j=!0}#F(e){if(this.#W)e.style.removeProperty("--trees-item-height"),this.#W=!1;if(this.#j)e.style.removeProperty("--trees-density-override"),this.#j=!1}};var Su=["--trees-bg-override: var(--pi-surface-raised)","--trees-bg-muted-override: var(--pi-hover-background)","--trees-border-color-override: transparent","--trees-fg-override: var(--foreground)","--trees-font-family-override: var(--font-sans)","--trees-focus-ring-color-override: var(--muted-foreground)","--trees-padding-inline-override: 8px","--trees-scrollbar-gutter-override: 4px","--trees-search-bg-override: var(--pi-tree-search-background)","--trees-selected-bg-override: var(--pi-selection-background)","--trees-selected-focused-border-color-override: var(--muted-foreground)"].join("; "),as=`
|
|
1286
|
+
[data-item-git-status] > [data-item-section='content'] { color: var(--trees-fg); }
|
|
1287
|
+
[data-file-tree-virtualized-sticky='true'] { will-change: auto; }
|
|
1288
|
+
`,Cu={density:"compact",fileTreeSearchMode:"hide-non-matches",flattenEmptyDirectories:!0,id:"review-file-tree",initialExpansion:"open",initialVisibleRowCount:20,search:!0,searchBlurBehavior:"retain",stickyFolders:!1,unsafeCSS:as};var Mn=50;var Jp=0.35,Zp=0.65;var em=224,tm=480;var nm=0.3,rm=0.7;function ku(e){if(!en(e))return{};return{changesRatio:ls(e.changesRatio,nm,rm),gitPaneRatio:ls(e.gitPaneRatio,Jp,Zp),layout:e.layout==="split"||e.layout==="unified"?e.layout:void 0,mode:e.mode==="all"||e.mode==="selected"?e.mode:void 0,reviewSidebarWidth:ls(e.reviewSidebarWidth,em,tm),tab:e.tab==="files"||e.tab==="git"?e.tab:void 0,wrap:xu(e.wrap)?e.wrap:void 0}}function ls(e,t,n){return Sr(e)&&Number.isFinite(e)?Math.min(Math.max(e,t),n):void 0}var im={branch:null,changes:[],commits:[],isGitRepository:!1,patch:"",revision:"non-git"},Zy={...im,revision:"git-unloaded"},_u=B.Object({additions:B.Number(),deletions:B.Number(),path:B.String(),status:B.Union([B.Literal("added"),B.Literal("deleted"),B.Literal("modified"),B.Literal("renamed"),B.Literal("untracked")])}),cs=B.Object({author:B.String(),authoredAt:B.String(),hash:B.String(),pushed:B.Union([B.Boolean(),B.Null()]),shortHash:B.String(),subject:B.String()}),om=B.Object({changes:B.Array(_u),commit:cs,patch:B.String()}),sm=B.Object({branch:B.Union([B.String(),B.Null()]),changes:B.Array(_u),commits:B.Array(cs),isGitRepository:B.Boolean(),patch:B.String(),revision:B.String()}),am=Ci(om),lm=Ci(B.Array(cs)),cm=Ci(sm);function Eu(e){return am.Check(e)}function Tu(e){return lm.Check(e)}function us(e){return cm.Check(e)}var Pu=B.Object({path:B.String(),contents:B.String(),revision:B.String(),size:B.Number()}),um=B.Union([Pu,B.Object({message:B.String(),path:B.String(),size:B.Number()})]),dm=B.Object({paths:B.Array(B.String()),workspacePath:B.String()}),ds=B.Object({path:B.String()}),hm=B.Object({error:B.String()});function Ru(e){let t=`${e}/content`,n=`${e}/entry`;return{async create(r,i){return(await An(n,ds,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({kind:i,path:r})})).path},async list(){return await An(e,dm)},async move(r,i){return(await An(n,ds,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({destination:i,path:r})})).path},async read(r){return await An(`${t}?path=${encodeURIComponent(r)}`,um)},async remove(r){await An(n,ds,{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({path:r})})},async save(r,i,o){return await An(t,Pu,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({contents:i,path:r,revision:o})})}}}async function An(e,t,n){let r=await fetch(e,{...n,headers:{accept:"application/json",...n?.headers}});if(!r.ok){let i=`Request failed (${r.status})`;try{i=hs(hm,await r.json()).error}catch{}throw Error(i)}return hs(t,await r.json())}function Lu(e){let t=Ru(e.endpoint),n=ot("workspace-file-tree"),r=ot("workspace-file-main"),i=ot("workspace-file-view"),o=ot("workspace-file-empty"),s=ot("workspace-file-path"),a=ot("workspace-file-status"),l=Ln("workspace-file-edit"),c=Ln("workspace-file-wrap"),d=Au("workspace-entry-dialog"),f=ot("workspace-entry-title"),u=ot("workspace-entry-description"),m=gm("workspace-entry-input"),p=ot("workspace-entry-error"),g=Ln("workspace-entry-cancel"),v=Ln("workspace-entry-action"),S=Au("workspace-confirm-dialog"),C=ot("workspace-confirm-title"),y=ot("workspace-confirm-description"),w=Ln("workspace-confirm-cancel"),x=Ln("workspace-confirm-action");n.style.cssText=Su;let P=e.initialWorkspacePath,O=[],pe,G=!1,me=0,j=0,N,re="",W=!1,Ee=!0,U,de,Z=new Nu(Te()),Y=new Ir({composition:{contextMenu:{enabled:!0,render:Je,triggerMode:"right-click"}},density:"compact",fileTreeSearchMode:"hide-non-matches",flattenEmptyDirectories:!0,gitStatus:e.initialGitStatus,id:"workspace-files-tree",initialExpansion:"closed",paths:[],search:!0,searchBlurBehavior:"retain",stickyFolders:!1,unsafeCSS:as,onSelectionChange(I){let L=I.length===1?I[0]:void 0;if(!L)return;let R=Y.getItem(L);if(R?.isDirectory()){X(""),R.deselect();return}jn(L)}});Y.render({containerWrapper:n}),l.addEventListener("click",()=>void an()),i.addEventListener("keydown",(I)=>{if((I.ctrlKey||I.metaKey)&&!I.altKey&&!I.shiftKey&&I.code==="KeyS")I.preventDefault(),an()}),c.addEventListener("click",()=>{Ee=!Ee,c.setAttribute("aria-pressed",String(Ee)),Z.setOptions(Te())}),window.addEventListener("pi-ui-code-theme-changed",()=>{Z.setOptions(Te()),Z.rerender()});function Je(I,L){let R=document.createElement("div");return R.className="workspace-tree-context-menu",R.setAttribute("role","menu"),R.append(Ue("New file",()=>{L.close({restoreFocus:!1}),Ke(I,"file")}),Ue("New folder",()=>{L.close({restoreFocus:!1}),Ke(I,"folder")}),Ue("Rename",()=>{L.close({restoreFocus:!1}),ht(I)}),Ue("Delete",()=>{L.close({restoreFocus:!1}),_t(I)},!0)),R}function Ue(I,L,R=!1){let ge=document.createElement("button");return ge.type="button",ge.className=`workspace-tree-context-menu-item${R?" text-destructive":""}`,ge.setAttribute("role","menuitem"),ge.textContent=I,ge.addEventListener("click",L),ge}async function Ke(I,L){let R=await Tr({title:`New ${L}`,description:`Enter a name for the new ${L}.`,action:"Create"});if(!R)return;let ge=I.kind==="directory"?I.path:Du(I.path),jt=Mu(ge,R);try{let Et=await t.create(jt,L);if(await ie(!0),L==="file")await ft(Et);else{let $n=Y.getItem(Et);if($n&&"expand"in $n)$n.expand()}}catch(Et){X(Ht(Et))}}async function ht(I){if(ze(I.path)&&W){await zt("Unsaved changes","Save or discard your changes before renaming this item.");return}let L=await Tr({title:`Rename ${I.kind==="directory"?"folder":"file"}`,description:`Enter a new name for ${I.name}.`,action:"Rename",initialValue:I.name});if(!L||L===I.name)return;let R=Mu(Du(I.path),L),ge=N&&ze(I.path)?`${R}${N.path.slice(I.path.length)}`:void 0;try{if(await t.move(I.path,R),ge)Fe();if(await ie(!0),ge)await ft(ge)}catch(jt){X(Ht(jt))}}async function _t(I){if(ze(I.path)&&W){await zt("Unsaved changes","Save or discard your changes before deleting this item.");return}let L=I.kind==="directory"?"folder":"file";if(!await K({title:`Delete ${L}?`,description:`This will permanently delete ${I.name}${I.kind==="directory"?" and all of its contents":""}. This action cannot be undone.`,action:"Delete"}))return;try{if(await t.remove(I.path),ze(I.path))Fe();await ie(!0)}catch(R){X(Ht(R))}}function Fe(){j+=1,mt(),N=void 0,re="",W=!1,s.textContent="Select a file",X(""),gt("Open a file from the workspace"),De()}function ze(I){return N?.path===I||N?.path.startsWith(`${I}/`)===!0}function Te(){return{disableFileHeader:!0,overflow:Ee?"wrap":"scroll",theme:Cr(),themeType:"system",unsafeCSS:`
|
|
1289
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1290
|
+
[data-caret] {
|
|
1291
|
+
animation-timing-function: step-end !important;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
::selection {
|
|
1296
|
+
color: currentColor;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
[data-file] {
|
|
1300
|
+
min-width: 100%;
|
|
1301
|
+
}
|
|
1302
|
+
`}}function Ge(I){if(G=I,G)ie()}async function ft(I){G=!0,await ie();for(let R of Y.getSelectedPaths())Y.getItem(R)?.deselect();let L=Y.getItem(I);if(L)L.select();else await jn(I)}function Pe(){Be()}function pt(I){if(N?.path===I)W=!1,De();Be()}async function Be(){let I=N,L=j;if(await ie(!0),!I||N!==I||j!==L)return;try{let R=await t.read(I.path);if(N!==I||j!==L)return;if("message"in R){if(W)X("File changed on disk");else Fe(),s.textContent=R.path,X(Nn(R.size)),gt(R.message);return}if(R.revision===I.revision)return;if(W){X("File changed on disk");return}let ge=++j;mt(),N=R,re=R.contents,Z.render({file:{cacheKey:`${P}:${R.path}:${R.revision}`,contents:R.contents,name:R.path},containerWrapper:i}),X(Nn(R.size)),De(),await et(ge)}catch(R){if(N!==I||j!==L)return;X(Ht(R))}}function sn(I){Y.setGitStatus(I)}function Ze(I){if(P===I)return;if(P=I,O=[],pe=void 0,me+=1,Fe(),Y.resetPaths([]),G)ie()}async function ie(I=!1){if(!G||!I&&pe===P)return;let L=++me;if(!I)X("Loading files…");try{let R=await t.list();if(L!==me||R.workspacePath!==P)return;if(pe=P,!pm(O,R.paths))O=R.paths,Y.resetPaths(R.paths);if(N&&R.paths.includes(N.path)){X(Nn(N.size));return}let ge=R.paths.includes("README.md")?"README.md":R.paths.find((jt)=>!jt.endsWith("/"));if(ge)Y.getItem(ge)?.select();else X(""),gt("No files in this workspace")}catch(R){if(L!==me)return;X(Ht(R)),gt("Could not load workspace files")}}async function jn(I){if(N?.path===I)return;if(W&&!await K({title:"Discard unsaved changes?",description:`Your unsaved changes to ${N?.path??"this file"} will be lost.`,action:"Discard"})){Y.getItem(I)?.deselect(),Y.getItem(N?.path??"")?.select();return}let L=++j;mt(),W=!1,s.textContent=I,X("");try{let R=await t.read(I);if(L!==j)return;if(X(Nn(R.size)),"message"in R){N=void 0,gt(R.message),De();return}N=R,re=R.contents,s.textContent=R.path,Z.render({file:{cacheKey:`${P}:${R.path}:${R.revision}`,contents:R.contents,name:R.path},containerWrapper:i}),Fi(),X(Nn(R.size)),De(),await et(L)}catch(R){if(L!==j)return;N=void 0,X(""),gt(Ht(R)),De()}}async function et(I){l.disabled=!0;try{let{Editor:L}=await import("./index-gt9ev6v8.js");if(I!==j||!N)return;U=new L({onChange(R){re=R.contents,W=re!==N?.contents,De()}}),de=U.edit(Z)}catch(L){U=void 0,X(Ht(L))}finally{De()}}async function an(){if(!N||!U||!W)return;l.disabled=!0,X("Saving…");try{N=await t.save(N.path,re,N.revision),re=N.contents,W=!1,X(Nn(N.size))}catch(I){X(Ht(I))}finally{De()}}function mt(){de?.(),de=void 0,U?.cleanUp(),U=void 0,De()}function De(){l.disabled=!N||!U||!W,l.textContent="Save",l.dataset.variant=W?"secondary":"ghost",l.removeAttribute("aria-pressed")}function gt(I){o.textContent=I,o.style.display="grid",i.style.display="none"}function Fi(){o.style.display="none",i.style.display="block"}function X(I){a.textContent=I}function Tr(I){return f.textContent=I.title,u.textContent=I.description,v.textContent=I.action,m.value=I.initialValue??"",p.textContent="",p.classList.add("hidden"),d.returnValue="",new Promise((L)=>{d.addEventListener("close",()=>L(d.returnValue==="submit"?m.value:void 0),{once:!0}),d.showModal(),m.select()})}function Pr(){if(!mm(m.value)){p.textContent="Use a non-empty name without slashes, '.', or '..'.",p.classList.remove("hidden");return}d.close("submit")}function K(I){return C.textContent=I.title,y.textContent=I.description,x.textContent=I.action,w.hidden=I.showCancel===!1,x.dataset.variant=I.destructive===!1?"default":"destructive",S.returnValue="",new Promise((L)=>{S.addEventListener("close",()=>L(S.returnValue==="confirm"),{once:!0}),S.showModal()})}async function zt(I,L){await K({title:I,description:L,action:"OK",showCancel:!1,destructive:!1})}g.addEventListener("click",()=>d.close("cancel")),v.addEventListener("click",Pr),m.addEventListener("keydown",(I)=>{if(I.key!=="Enter"||I.isComposing)return;I.preventDefault(),Pr()}),w.addEventListener("click",()=>S.close("cancel")),x.addEventListener("click",()=>S.close("confirm"));function qt(){let I=Y.getSelectedPaths()[0]??Y.getFocusedPath()??O[0];if(I)Y.scrollToPath(I,{focus:!0});requestAnimationFrame(()=>{(n.querySelector("file-tree-container")?.shadowRoot?.querySelector('[role="tree"]')??n).focus({preventScroll:!0})})}function ln(){(N?i:r).focus({preventScroll:!0})}function Wt(){mt(),Z.cleanUp(),Y.cleanUp()}return De(),gt("Open a file from the workspace"),{cleanUp:Wt,focusEditor:ln,focusTree:qt,openFile:ft,refresh:Pe,refreshAfterDiscard:pt,requestConfirmation:K,requestNotice:zt,setGitStatus:sn,setVisible:Ge,setWorkspace:Ze}}function Ht(e){return String(e).replace(/^Error: /,"")}function pm(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}function mm(e){return Boolean(e&&e===e.trim()&&e!=="."&&e!==".."&&!e.includes("/")&&!e.includes("\\"))}function Du(e){let t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function Mu(e,t){return e?`${e}/${t}`:t}function Nn(e){if(e<1024)return`${e} B`;if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1048576).toFixed(1)} MB`}function ot(e){let t=document.getElementById(e);if(!(t instanceof HTMLElement))throw Error(`Missing #${e}`);return t}function Ln(e){let t=document.getElementById(e);if(!(t instanceof HTMLButtonElement))throw Error(`Missing #${e}`);return t}function Au(e){let t=document.getElementById(e);if(!(t instanceof HTMLDialogElement))throw Error(`Missing #${e}`);return t}function gm(e){let t=document.getElementById(e);if(!(t instanceof HTMLInputElement))throw Error(`Missing #${e}`);return t}function Fu(e){return{async discard(t){let n=await fetch(`${e}/discard`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:t})});if(n.ok)return;let r=`Request failed (${n.status})`;try{let i=await n.json();if(en(i)&&xr(i.error))r=i.error}catch{}throw Error(r)},async loadCommit(t){try{let n=await fetch(`${e}/commit?hash=${encodeURIComponent(t)}`,{headers:{accept:"application/json"}});if(!n.ok)return;let r=await n.json();return Eu(r)?r:void 0}catch{return}},async loadHistory(t){try{let n=await fetch(`${e}/history?offset=${t}`,{headers:{accept:"application/json"}});if(!n.ok)return;let r=await n.json();return Tu(r)?r:void 0}catch{return}}}}function Bu(){let e=new Map,t=new Map,n=0;function r(f,u,m){if(a())return!1;let p={lineNumber:Math.max(m.start,m.end),metadata:{body:null,id:`review-comment-${++n}`,range:{...m}},side:vm(m)};return e.set(f,[...e.get(f)??[],p]),t.set(f,u),!0}function i(f,u){let m=u.trim();if(!m)return;return d(f,(p)=>({...p,metadata:{...p.metadata,body:m}}))}function o(f){for(let[u,m]of e){let p=m.filter((g)=>g.metadata.id!==f);if(p.length===m.length)continue;if(p.length>0)e.set(u,p);else e.delete(u),t.delete(u);return u}return}function s(f){let u=[];for(let m of e.keys()){if(f.get(m)===t.get(m))continue;e.delete(m),t.delete(m),u.push(m)}return u}function a(){for(let f of e.values())if(f.some((u)=>u.metadata.body===null))return!0;return!1}function l(){let f=[];for(let[u,m]of e)for(let p of m){let g=p.metadata.body;if(g===null)continue;f.push({body:g,endLine:p.metadata.range.end,endSide:p.metadata.range.endSide??p.metadata.range.side??p.side,path:u,startLine:p.metadata.range.start,startSide:p.metadata.range.side??p.side})}return f}function c(){e.clear(),t.clear()}function d(f,u){for(let[m,p]of e){let g=p.findIndex((S)=>S.metadata.id===f);if(g<0)continue;let v=[...p];return v[g]=u(v[g]),e.set(m,v),m}return}return{add:r,annotations:e,hasDraft:a,reconcileFiles:s,remove:o,reset:c,save:i,savedComments:l}}function vm(e){return e.endSide??e.side??"additions"}var ym=navigator.userAgent.includes("Macintosh");function bm(e){return ym?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Vu(e){let t=Bu(),n,r=!1;e.submitButton.addEventListener("click",()=>void d()),f();function i(p,g){let v=p.fileDiff.name;if(t.add(v,Hu(p.fileDiff),g))c(v)}function o(p){if(!("side"in p))return;let{metadata:g}=p,v=document.createElement("div");v.className="w-full overflow-hidden",v.dataset.reviewCommentId=g.id;let S=document.createElement("div");S.className="mx-3 my-2 max-w-2xl whitespace-normal rounded-lg border border-border bg-card p-3 font-sans text-foreground shadow-sm",v.append(S);let C=document.createElement("p");if(C.className="mb-2 text-xs font-medium text-muted-foreground",C.textContent=wm(g.range,p.side),S.append(C),g.body===null)s(S,g.id);else a(S,g.id,g.body);return v}function s(p,g){let v=document.createElement("textarea");v.className="textarea min-h-20 w-full resize-y text-sm",v.placeholder="Leave a comment for the agent…",v.setAttribute("aria-label","Review comment");let S=document.createElement("div");S.className="mt-2 flex items-center gap-2";let C=fs("Add comment");C.disabled=!0;let y=fs("Cancel","outline"),w=()=>{let x=t.save(g,v.value);if(!x)return;c(x),e.clearSelection()};C.addEventListener("click",w),y.addEventListener("click",()=>l(g)),v.addEventListener("input",()=>{C.disabled=v.value.trim()===""}),v.addEventListener("keydown",(x)=>{if(x.key==="Escape")x.preventDefault(),l(g);else if(x.key==="Enter"&&bm(x))x.preventDefault(),w()}),S.append(C,y),p.append(v,S),setTimeout(()=>v.focus(),0)}function a(p,g,v){let S=document.createElement("p");S.className="whitespace-pre-wrap text-sm leading-relaxed",S.textContent=v;let C=document.createElement("div");C.className="mt-2";let y=fs("Remove","ghost");y.classList.add("pi-error-foreground"),y.addEventListener("click",()=>l(g)),C.append(y),p.append(S,C)}function l(p){let g=t.remove(p);if(!g)return;e.clearSelection(),c(g)}function c(p){n=void 0,f(),e.onAnnotationsChange(p)}async function d(){let p=t.savedComments();if(p.length===0||t.hasDraft()||r)return;r=!0,n=void 0,f();let g=await e.submit(p).catch(()=>!1);if(r=!1,!g){n="Couldn’t send",f();return}t.reset(),f(),e.onSubmitted()}function f(){let p=t.savedComments().length,g=t.hasDraft();e.submitButton.classList.toggle("hidden",p===0&&!g),e.submitButton.disabled=p===0||g||r,e.submitButton.textContent=r?"Sending…":`Submit review${p>0?` (${p})`:""}`,e.status.classList.toggle("hidden",!n),e.status.textContent=n??""}function u(p){if(t.reconcileFiles(new Map(p.filter((v)=>t.annotations.has(v.fileDiff.name)).map((v)=>[v.fileDiff.name,Hu(v.fileDiff)]))).length===0)return;e.clearSelection(),n="Changes updated; outdated comments removed",f()}function m(){t.reset(),n=void 0,f()}return{add:i,annotations:t.annotations,canAdd:()=>!t.hasDraft(),reconcileItems:u,render:o,reset:m}}function fs(e,t){let n=document.createElement("button");if(n.type="button",n.className="btn",n.dataset.size="xs",t)n.dataset.variant=t;return n.textContent=e,n}function Hu(e){return JSON.stringify(e)}function wm(e,t){let n=e.side??t,r=e.endSide??e.side??t,i=(a)=>a==="additions"?"new":"old";if(n!==r)return`${i(n)} line ${e.start} to ${i(r)} line ${e.end}`;let o=Math.min(e.start,e.end),s=Math.max(e.start,e.end);return o===s?`${i(n)} line ${o}`:`${i(n)} lines ${o}–${s}`}function Ou(e,t=new Date,n){let r=Im(e,t);if(r===0)return e.toLocaleTimeString(n,{hour:"2-digit",minute:"2-digit"});if(r===1)return new Intl.RelativeTimeFormat(n,{numeric:"auto"}).format(-1,"day");if(r>1&&r<7)return e.toLocaleDateString(n,{weekday:"long"});return e.toLocaleDateString(n,{month:"short",day:"numeric",year:e.getFullYear()===t.getFullYear()?void 0:"numeric"})}function zu(e,t){return new Intl.DateTimeFormat(t,{dateStyle:"medium",timeStyle:"short"}).format(e)}function Im(e,t){let n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),r=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((r-n)/86400000)}function Wu({commits:e,getCommitDetail:t,history:n,loading:r,onSelectCommit:i,onSelectCommitPath:o,revision:s,selection:a}){let l=n.scrollTop;if(n.replaceChildren(),e.length===0){let d=document.createElement("p");d.className="text-muted-foreground px-2 py-1 text-xs",d.textContent=s==="git-unloaded"?"Loading history…":"No commits yet",n.append(d);return}let c;for(let d of e){if(d.pushed!==c)n.append(Sm(d.pushed)),c=d.pushed;let f=a.kind==="commit"&&a.hash===d.hash,u=document.createElement("div"),m=document.createElement("button");m.type="button",m.className="pi-selected-surface hover:bg-muted/60 flex w-full min-w-0 flex-col rounded-md px-2 py-1.5 text-left",m.setAttribute("aria-pressed",String(f)),m.title=d.subject,m.addEventListener("click",()=>i(d.hash));let p=document.createElement("span");p.className="w-full truncate text-xs",p.textContent=d.subject||"Untitled commit";let g=document.createElement("span");g.className="pi-fine-print flex w-full min-w-0 items-center gap-1.5 text-[10px]";let v=document.createElement("span");v.className="shrink-0 font-mono",v.textContent=d.shortHash;let S=document.createElement("span");S.className="truncate",S.textContent=d.author;let C=document.createElement("time");if(C.className="pi-date ml-auto",C.dateTime=d.authoredAt,C.title=Uu(d.authoredAt),C.textContent=xm(d.authoredAt),g.append(v,S,C),m.append(p,g),u.append(m),f){let y=t(d.hash);if(y)u.append(Cm(d.hash,y.changes,a.path,o))}n.append(u)}if(r){let d=document.createElement("p");d.className="pi-fine-print px-2 py-2 text-center text-[10px]",d.textContent="Loading older commits…",n.append(d)}n.scrollTop=l}function ju(e,t){e.replaceChildren(),e.classList.remove("hidden");let n=document.createElement("div");n.className="flex min-w-0 items-center gap-2";let r=document.createElement("div");r.className="min-w-0 flex-1 truncate text-xs font-medium",r.textContent=t.commit.subject||"Untitled commit";let i=document.createElement("span");i.className="flex shrink-0 gap-1 font-mono text-[10px] tabular-nums";let o=document.createElement("span");o.className="text-(--pi-diff-addition)",o.textContent=`+${qu(t.changes,"additions")}`;let s=document.createElement("span");s.className="text-(--pi-diff-deletion)",s.textContent=`-${qu(t.changes,"deletions")}`,i.append(o,s),n.append(r,i);let a=document.createElement("div");a.className="pi-fine-print mt-0.5 flex min-w-0 items-center gap-2 text-[10px]";let l=document.createElement("span");l.className="font-mono",l.textContent=t.commit.shortHash;let c=document.createElement("span");c.className="truncate",c.textContent=t.commit.author;let d=document.createElement("time");d.className="pi-date ml-auto",d.dateTime=t.commit.authoredAt,d.title=Uu(t.commit.authoredAt),d.textContent=d.title,a.append(l,c,d),e.append(n,a)}function $u(e){e.classList.add("hidden"),e.replaceChildren()}function Sm(e){let t=document.createElement("div");t.className="pi-fine-print flex items-center gap-2 px-2 py-1 text-[10px] font-medium";let n=document.createElement("span");n.textContent=e===null?"No upstream":e?"Pushed":"Not pushed";let r=document.createElement("span");return r.className="border-border flex-1 border-t",t.append(n,r),t}function Cm(e,t,n,r){let i=document.createElement("div");i.className="border-border ml-3 border-l py-0.5 pl-1";for(let o of t){let s=document.createElement("button");s.type="button",s.className="pi-fine-print pi-selected-surface hover:bg-muted/60 flex w-full min-w-0 items-center gap-1.5 rounded px-2 py-1 text-left text-[11px]",s.setAttribute("aria-pressed",String(n===o.path)),s.title=o.path,s.addEventListener("click",()=>r(e,o.path));let a=document.createElement("span");a.className="w-3 shrink-0 font-mono",a.textContent=km(o.status);let l=document.createElement("span");l.className="truncate",l.textContent=o.path,s.append(a,l),i.append(s)}return i}function Uu(e,t=Ku()){return zu(new Date(e),t)}function xm(e,t=new Date,n=Ku()){return Ou(new Date(e),t,n)}function Ku(){return"document"in globalThis?globalThis.document.body.dataset.timeLocale||void 0:void 0}function qu(e,t){return e.reduce((n,r)=>n+r[t],0)}function km(e){if(e==="added")return"A";if(e==="deleted")return"D";if(e==="renamed")return"R";if(e==="untracked")return"U";return"M"}function xi(e){return e==="git-unloaded"||e.startsWith("git-summary:")}function Gu(e,t){return e.workspacePath!==t.workspacePath||e.revision!==t.revision}function Yu(e,t,n){if(e[0]?.hash!==n[0]?.hash)return{commits:[...n],hasMore:n.length===Mn,reset:!0};let i=new Set(n.map(({hash:o})=>o));return{commits:[...n,...e.slice(Mn).filter(({hash:o})=>!i.has(o))],hasMore:t,reset:!1}}function Xu(e,t){if(e.kind==="commit"&&t[0])return{kind:"working",path:t[0].path};return e}function Qu(e,t,n,r){if(t){if(n[0])return{kind:"working",path:n[0].path};if(r[0])return{hash:r[0].hash,kind:"commit"};return{kind:"working"}}if(e.kind!=="working")return e;return{kind:"working",path:n.some(({path:i})=>i===e.path)?e.path:n[0]?.path}}function Ju(e,t){let n=new Set(e.map(({hash:i})=>i)),r=t.filter(({hash:i})=>!n.has(i));return{commits:[...e,...r],hasMore:t.length===Mn&&r.length>0}}var _m=10,Zu=4,ed=document.body.dataset.codeThemeLight,td=document.body.dataset.codeThemeDark;if(ed&&td)vs({dark:td,light:ed});var Em=document.body.dataset.workspaceReviewEndpoint??"",Tm=document.body.dataset.workspaceFilesEndpoint??"",ys=Fu(Em);window.addEventListener("pi-ui-code-theme-changed",(e)=>{if(!(e instanceof CustomEvent)||!ld(e.detail))return;let t=e.detail;if(vs(t),Ie)Ie.setOptions(rn()),Ie.setItems(Ot==="all"?je:J.path&&ut.has(J.path)?[ut.get(J.path)]:[])});var Pm=st("app"),Rm=document.querySelectorAll("[data-workspace-mode]"),Ei=st("review-tree"),kr=st("review-history"),cd=st("review-detail-header"),Hn=st("review-diff-view"),Dm=st("workspace-file-tree"),nd=st("workspace-file-view"),rd=st("review-empty"),ud=Wn("review-mode-all"),dd=Wn("review-mode-selected"),hd=Wn("review-layout-split"),fd=Wn("review-layout-stacked"),ps=Wn("review-wrap"),Mm=st("workspace-review"),Am=Wn("review-submit-comments"),Nm=st("review-comment-status"),bs=st("workspace-review-data"),Vt=JSON.parse(bs.textContent??"");if(!en(Vt)||!Sr(Vt.filesRevision)||!xr(Vt.workspacePath)||!us(Vt.snapshot))throw Error("Invalid initial workspace review state");var Pi=ku(Vt.preferences),Fn=Vt.workspacePath,id=Vt.filesRevision,z=Vt.snapshot,tn=[...z.commits],Vn=z.commits.length===Mn,On=!1,Ti=0,Ot=Pi.mode??"all",J={kind:"working",path:z.changes[0]?.path},ws=Pi.layout,Bn=Pi.wrap??!0,pd=0,ms=new Map,Ie,nn=Vu({clearSelection:()=>Ie?.clearSelectedLines(),onAnnotationsChange:r1,onSubmitted(){if(Ct=Mi(z.changes,z.patch,"working"),J.kind==="working")je=Ct,ut=Er(je),Ie?.clearSelectedLines(),on();window.piUi.messageScroll.scrollBottom()},status:Nm,submit:t1,submitButton:Am}),Ct=kd(Mi(z.changes,z.patch,"working")),je=Ct,ut=Er(je),ki=z.revision!=="git-unloaded",Ri=new Map,_i=new Map,gs=0,$e=Lu({endpoint:Tm,initialGitStatus:z.changes,initialWorkspacePath:Fn}),Di=Pi.tab,xt=$m(Di,z.isGitRepository),kt=Zm(Pm,!0,(e)=>{if($e.setVisible(e&&xt==="files"),e&&xt==="git")_d()});for(let e of Rm)e.addEventListener("click",()=>{let t=e.dataset.workspaceMode;if(t==="files"||t==="git"&&z.isGitRepository)Ni(t)});var Qe=new Ir({...Cu,composition:{contextMenu:{enabled:!0,render:Qm,triggerMode:"right-click"}},gitStatus:z.changes,paths:z.changes.map(({path:e})=>e),onSelectionChange(e){let t=e.length===1?e[0]:void 0;if(t)wd(t,!0)}});Qe.render({containerWrapper:Ei});Ym();window.piUi.workspaceReview={...kt,focusEditor:Gm,focusFiles:Um,focusGit:Km};kr.addEventListener("scroll",Ai,{passive:!0});ud.addEventListener("click",()=>yd("all"));dd.addEventListener("click",()=>yd("selected"));hd.addEventListener("click",()=>bd("split"));fd.addEventListener("click",()=>bd("unified"));ps.addEventListener("click",()=>{Bn=!Bn,ps.setAttribute("aria-pressed",String(Bn)),Li(),Ie?.setOptions(rn())});var _r=qn(),md=new ResizeObserver(()=>{let e=qn();if(Ss(e),e===_r)return;_r=e,Ie?.setOptions(rn())});md.observe(Hn);var gd=new MutationObserver(()=>Ie?.setOptions(rn()));gd.observe(document.documentElement,{attributeFilter:["class"],attributes:!0});var vd=new MutationObserver(()=>{try{let e=JSON.parse(bs.textContent??"");if(en(e)&&Sr(e.filesRevision)&&xr(e.workspacePath)&&us(e.snapshot)){let t=e.workspacePath===Fn&&e.filesRevision!==id;if(id=e.filesRevision,Lm(e.workspacePath,e.snapshot),t)$e.refresh()}}catch{}});vd.observe(bs,{characterData:!0,childList:!0,subtree:!0});Ed();Ss();ps.setAttribute("aria-pressed",String(Bn));dt();window.addEventListener("pagehide",()=>{vd.disconnect(),md.disconnect(),gd.disconnect(),Qe.cleanUp(),$e.cleanUp(),Ie?.cleanUp(),ao()},{once:!0});function Lm(e,t){if(!Gu({revision:z.revision,workspacePath:Fn},{revision:t.revision,workspacePath:e}))return;if(e!==Fn)Fn=e,$e.setWorkspace(Fn),gs++,Ti++,tn=[],Vn=!1,On=!1,Ri.clear(),_i.clear(),ms.clear(),nn.reset(),ki=!1,J={kind:"working"};Fm(t)}function Fm(e){let t=xi(z.revision)||!ki,n=z.isGitRepository,r=Yu(tn,Vn,e.commits);if(z=e,$e.setGitStatus(z.changes),tn=r.commits,Vn=r.hasMore,r.reset)Ti++,On=!1;if(!z.isGitRepository)xt="files";else if(!n&&Di!=="files")xt="git";$e.setVisible(kt.isOpen()&&xt==="files");let i=Mi(z.changes,z.patch,"working");if(nn.reconcileItems(i),Ct=kd(i),Qe.resetPaths(z.changes.map(({path:o})=>o)),Qe.setGitStatus(z.changes),xi(z.revision)){ki=!1,dt(),Ie?.setItems([]),zn("Loading Git data…");return}if(J=Qu(J,t,xd(),z.commits),t)ki=!0;if(dt(),kt.isOpen()&&xt==="git")requestAnimationFrame(Ai);if(J.kind==="commit")Sd(J.hash,J.path);else Id(J.path)}function yd(e){if(Ot=e,Ed(),Li(),Ot==="selected"&&!J.path)J.path=je[0]?.fileDiff.name;dt(),on()}function bd(e){ws=e,_r=qn(),Ss(_r),Li(),Ie?.setOptions(rn())}function wd(e,t=!1){if(Id(e),dt(),e&&!t)Qe.scrollToPath(e,{focus:!1,offset:"nearest"});if(e)Cd(e)}function Id(e){J={kind:"working",path:e},je=Ct,ut=Er(je),Wm(),on()}async function Sd(e,t){J={hash:e,kind:"commit",path:t},Vm(),dt();let n=Ri.get(e);if(n){od(n,t);return}zn("Loading commit…");let r=await Bm(e);if(J.kind!=="commit"||J.hash!==e)return;if(!r){zn("Unable to load commit");return}od(r,t)}function od(e,t){je=e.items,ut=Er(je),J={hash:e.detail.commit.hash,kind:"commit",path:t&&ut.has(t)?t:je[0]?.fileDiff.name},qm(e.detail),dt(),on()}function Bm(e){let t=_i.get(e);if(t)return t;let n=gs,r=ys.loadCommit(e).then((i)=>{if(!i)return;let o={detail:i,items:Mi(i.changes,i.patch,i.commit.hash)};if(n!==gs)return;return Ri.set(e,o),o}).finally(()=>_i.delete(e));return _i.set(e,r),r}function Hm(e,t){if(J.kind!=="commit"||J.hash!==e)return;if(J.path=t,dt(),Ot==="selected")on();else Cd(t)}function Cd(e){let t=ut.get(e);if(t&&Ie)Ie.scrollTo({type:"item",id:t.id,align:"start",behavior:"smooth-auto"})}function xd(){let e=new Set(z.changes.map(({path:r})=>r)),t=Qe.getVisibleRows(0,Qe.getVisibleCount()).find((r)=>r.kind==="file"&&e.has(r.path))?.path;if(!t||t===z.changes[0]?.path)return z.changes;let n=z.changes.find(({path:r})=>r===t);return n?[n,...z.changes.filter(({path:r})=>r!==t)]:z.changes}function Vm(){for(let e of Qe.getSelectedPaths())Qe.getItem(e)?.deselect()}function on(){let e=Ot==="all"?je:J.path&&ut.has(J.path)?[ut.get(J.path)]:[];if(e.length===0){Ie?.setItems([]),zn(e1());return}if(zn(),!kt.isOpen())return;if(!Ie)_r=qn(),Ie=new ad(rn(),jm()),Ie.setup(Hn);else Ie.setOptions(rn());Ie.setItems(e)}function Mi(e,t,n){let r=new Map;for(let i of sd(t))for(let o of i.files)r.set(o.name,o);return e.map((i)=>{let o=r.get(i.path)??Om(i),s=`${n}:${i.path}`,a=JSON.stringify({...o,cacheKey:void 0}),l=ms.get(s),c=l?.content===a?l.version:++pd;return ms.set(s,{content:a,version:c}),{fileDiff:{...o,cacheKey:`pi-ui:${s}:${c}`},id:`diff:${s}`,type:"diff",version:c}})}function kd(e){return e.map((t)=>({...t,annotations:nn.annotations.get(t.fileDiff.name)}))}function Er(e){return new Map(e.map((t)=>[t.fileDiff.name,t]))}function Om(e){return{additionLines:[],deletionLines:[],hunks:[],isPartial:!0,name:e.path,splitLineCount:0,type:e.status==="added"||e.status==="untracked"?"new":e.status==="deleted"?"deleted":e.status==="renamed"?"rename-pure":"change",unifiedLineCount:0}}function dt(){Wu({commits:tn,getCommitDetail:(e)=>Ri.get(e)?.detail,history:kr,loading:On,onSelectCommit:(e)=>void Sd(e),onSelectCommitPath:Hm,revision:z.revision,selection:J})}function Ai(){if(!kt.isOpen()||On||!Vn||kr.scrollHeight-kr.scrollTop-kr.clientHeight>120)return;zm()}async function zm(){On=!0;let e=Ti;dt();let t=await ys.loadHistory(tn.length);if(e!==Ti)return;if(t){let n=Ju(tn,t);tn=n.commits,Vn=n.hasMore}else Vn=!1;On=!1,dt(),requestAnimationFrame(Ai)}function qm(e){ju(cd,e)}function Wm(){$u(cd)}function rn(){let e=J.kind==="working"&&nn.canAdd();return{diffIndicators:"none",enableGutterUtility:e,enableLineSelection:e,onGutterUtilityClick(t,n){if(n.item.type==="diff")nn.add(n.item,t)},pointerEventsOnScroll:!0,renderAnnotation:nn.render,diffStyle:qn(),hunkSeparators:"simple",itemMetrics:{diffHeaderHeight:36,paddingBottom:0,spacing:0},layout:{gap:Zu,paddingBottom:_m,paddingTop:Zu},lineHoverHighlight:"both",overflow:Bn?"wrap":"scroll",stickyHeaders:!0,theme:Cr(),themeType:document.documentElement.classList.contains("dark")?"dark":"light",unsafeCSS:`
|
|
1303
|
+
:host {
|
|
1304
|
+
--diffs-bg: var(--pi-code-surface);
|
|
1305
|
+
--diffs-dark-bg: var(--pi-code-surface);
|
|
1306
|
+
--diffs-bg-selection-override: var(--pi-selection-background);
|
|
1307
|
+
--diffs-bg-selection-number-override: var(--pi-selection-background);
|
|
1308
|
+
--diffs-editor-selection-bg: var(--pi-selection-background) !important;
|
|
1309
|
+
--diffs-font-family: var(--font-mono);
|
|
1310
|
+
--diffs-gap-block: 0px;
|
|
1311
|
+
--diffs-gap-style: 0 solid transparent;
|
|
1312
|
+
--diffs-header-font-family: var(--font-sans);
|
|
1313
|
+
--diffs-light-bg: var(--pi-code-surface);
|
|
1314
|
+
--diffs-scrollbar-gutter-override: 0px;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
::selection {
|
|
1318
|
+
background: var(--pi-selection-background);
|
|
1319
|
+
color: currentColor;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
[data-diffs-header="default"] {
|
|
1323
|
+
min-height: 36px;
|
|
1324
|
+
padding-inline: 12px;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
[data-diffs-header="default"] :is([data-title], [data-prev-name]) {
|
|
1328
|
+
font-family: var(--font-mono);
|
|
1329
|
+
font-weight: 500;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
[data-diffs-header="default"] [data-metadata],
|
|
1333
|
+
[data-diffs-header="default"] [data-additions-count],
|
|
1334
|
+
[data-diffs-header="default"] [data-deletions-count] {
|
|
1335
|
+
font-family: var(--font-mono);
|
|
1336
|
+
font-size: 10px;
|
|
1337
|
+
font-variant-numeric: tabular-nums;
|
|
1338
|
+
font-weight: 500;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
[data-diffs-header="default"] [data-additions-count] {
|
|
1342
|
+
order: 1;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
[data-diffs-header="default"] [data-deletions-count] {
|
|
1346
|
+
order: 2;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
[data-diffs-header="default"] [data-metadata] slot {
|
|
1350
|
+
order: 3;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
[data-code] {
|
|
1354
|
+
padding-bottom: 0 !important;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
[data-annotation-content] {
|
|
1358
|
+
min-width: 0;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
`}}function jm(){return so({highlighterOptions:{langs:["text"],preferredHighlighter:"shiki-js",theme:Cr(),useTokenTransformer:!0},poolOptions:{poolSize:1,totalASTLRUCacheSize:100,workerFactory:()=>new Worker(new URL("../pierre-worker.js",import.meta.url),{type:"module"})}})}function $m(e,t){return t&&e!=="files"?"git":"files"}function Ni(e){if(e===xt||e==="git"&&!z.isGitRepository)return;if(xt=e,Di=e,Li(),!kt.isOpen())return;if($e.setVisible(e==="files"),e==="git")_d()}function Um(){kt.open(),Ni("files"),Is(()=>$e.focusTree())}function Km(){if(!z.isGitRepository)return;kt.open(),Ni("git"),Is(()=>{let e=Qe.getSelectedPaths()[0]??Qe.getFocusedPath()??z.changes[0]?.path;if(e)Qe.scrollToPath(e,{focus:!0});requestAnimationFrame(()=>{(Ei.querySelector("file-tree-container")?.shadowRoot?.querySelector('[role="tree"]')??Ei).focus({preventScroll:!0})})})}function Gm(){kt.open(),Is(()=>{if(xt==="files")$e.focusEditor();else Hn.focus({preventScroll:!0})})}function Is(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Ym(){Mm.addEventListener("keydown",(e)=>{if(e.defaultPrevented||e.isComposing||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.code!=="KeyJ"&&e.code!=="KeyK")return;let t=e.composedPath();if(t.some(Xm))return;let n=e.code==="KeyJ"?"ArrowDown":"ArrowUp";if(t.some((i)=>i===Ei||i===Dm)){e.preventDefault(),t[0]?.dispatchEvent(new KeyboardEvent("keydown",{bubbles:!0,code:n,composed:!0,key:n}));return}let r=t.includes(nd)?nd:t.includes(Hn)?Hn:void 0;if(!r)return;e.preventDefault(),r.scrollBy({behavior:"smooth",top:e.code==="KeyJ"?100:-100})})}function Xm(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e instanceof HTMLElement&&e.isContentEditable}function Qm(e,t){if(e.kind!=="file")return null;let n=document.createElement("div");n.className="workspace-tree-context-menu",n.setAttribute("role","menu");let r=document.createElement("button");r.type="button",r.className="workspace-tree-context-menu-item",r.setAttribute("role","menuitem"),r.textContent="Open in editor",r.addEventListener("click",()=>{t.close({restoreFocus:!1}),Ni("files"),$e.openFile(e.path)});let i=document.createElement("button");return i.type="button",i.className="workspace-tree-context-menu-item text-destructive",i.setAttribute("role","menuitem"),i.textContent="Discard changes",i.addEventListener("click",()=>{t.close({restoreFocus:!1}),Jm(e.path)}),n.append(r,i),n}async function Jm(e){let t=z.changes.find((r)=>r.path===e);if(!t)return;if(!await $e.requestConfirmation({title:"Discard changes?",description:t.status==="untracked"?`${e} is untracked and will be permanently deleted. This action cannot be undone.`:`All changes to ${e} will be permanently discarded. This action cannot be undone.`,action:"Discard"}))return;try{await ys.discard(e),$e.refreshAfterDiscard(e)}catch(r){await $e.requestNotice("Could not discard changes",String(r).replace(/^Error: /,""))}}function _d(){let e=Xu(J,xd());if(e!==J&&e.kind==="working")wd(e.path);if(z.revision==="git-unloaded")zn("Loading Git data…");else requestAnimationFrame(()=>{on(),Ai()})}function Zm(e,t,n){let r=t,i=!1,o=()=>{let l=document.querySelector('[data-pi-ui-action="review"]');if(!l)return;l.inert=!r,l.style.visibility=r?"visible":"hidden"},s=(l)=>{e.dispatchEvent(new CustomEvent("pi-ui-workspace-review-open",{detail:{open:r&&l}}))},a=(l)=>{if(l&&!r){s(!1);return}let c=i;if(i=l,i!==c)n(i)};return o(),a(e.classList.contains("pi-review-open")),{applyOpen:a,isAvailable:()=>r,isOpen:()=>i,open:()=>s(!0),setAvailable(l){if(r=l,o(),!r)s(!1)}}}function Ed(){ud.setAttribute("aria-pressed",String(Ot==="all")),dd.setAttribute("aria-pressed",String(Ot==="selected"))}function qn(){if(Hn.clientWidth<720)return"unified";return ws??"split"}function Ss(e=qn()){let t=e==="split";hd.setAttribute("aria-pressed",String(t)),fd.setAttribute("aria-pressed",String(!t))}function e1(){if(xi(z.revision))return"Loading Git data…";if(!z.isGitRepository)return"Open a Git repository";if(J.kind==="commit")return"This commit has no file changes";if(z.changes.length===0)return"Working tree clean";return"No changes to display"}function zn(e){if(rd.style.display=e?"grid":"none",e)rd.textContent=e}function Li(){n1({layout:ws,mode:Ot,tab:Di,wrap:Bn})}function t1(e){return new Promise((t)=>{let n=setTimeout(()=>t(!1),1e4);window.addEventListener("pi-ui-workspace-review-submitted",()=>{clearTimeout(n),t(!0)},{once:!0}),document.body.dispatchEvent(new CustomEvent("pi-ui-workspace-review-submit",{detail:{comments:e}}))})}function n1(e){document.body.dispatchEvent(new CustomEvent("pi-ui-workspace-review-preferences",{detail:e}))}function r1(e){let t=Ct.findIndex((r)=>r.fileDiff.name===e);if(t<0)return;let n=[...Ct];if(n[t]={...n[t],annotations:nn.annotations.get(e),version:++pd},Ct=n,J.kind==="working")je=Ct,ut=Er(je),on()}function st(e){let t=document.getElementById(e);if(!(t instanceof HTMLElement))throw Error(`Missing #${e}`);return t}function Wn(e){let t=document.getElementById(e);if(!(t instanceof HTMLButtonElement))throw Error(`Missing #${e}`);return t}
|