@qwen-code/web-shell 0.25.3 → 0.25.4-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICES.txt +1240 -0
- package/README.md +33 -27
- package/dist/{PierreFilePreview-CDwdShQj.js → PierreFilePreview-DDGm1BwT.js} +1 -1
- package/dist/{SpreadsheetPreview-DrhBxOLb.js → SpreadsheetPreview-Bo3dF5jL.js} +2 -2
- package/dist/{WorkspaceFileBrowser-Cj-IkaDU.js → WorkspaceFileBrowser-K5x5fG6c.js} +656 -656
- package/dist/{agents-route-CNZAhyBJ.js → agents-route-hV5r9VDG.js} +2 -2
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/docx-preview-BucJeYCm.js +5570 -0
- package/dist/{index-D0B7Fiw9.js → index-CU9u4ISL.js} +58969 -56718
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +11784 -11135
- package/dist/types/App.d.ts +4 -2
- package/dist/types/adapters/messageTypes.d.ts +3 -0
- package/dist/types/adapters/transcriptToMessages.d.ts +3 -1
- package/dist/types/components/ChatEditor.d.ts +5 -0
- package/dist/types/components/MessageDeletionToolbar.d.ts +4 -0
- package/dist/types/components/MessageItem.d.ts +2 -0
- package/dist/types/components/MessageList.d.ts +2 -0
- package/dist/types/components/MessageTimestamp.d.ts +5 -2
- package/dist/types/components/ModelRefreshControl.d.ts +5 -0
- package/dist/types/components/artifacts/CodeReviewArtifactDetail.d.ts +5 -0
- package/dist/types/components/artifacts/DocxPreview.d.ts +8 -0
- package/dist/types/components/artifacts/TrajectoryExecutions.d.ts +9 -1
- package/dist/types/components/artifacts/TrajectoryInspector.d.ts +2 -1
- package/dist/types/components/artifacts/artifactUtils.d.ts +7 -0
- package/dist/types/components/artifacts/token-usage-messages.d.ts +9 -0
- package/dist/types/components/artifacts/token-usage-messages.transcript-stub.d.ts +7 -0
- package/dist/types/components/channels/channel-platform.d.ts +1 -1
- package/dist/types/components/dialogs/ModelDialog.d.ts +3 -1
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +251 -7
- package/dist/types/components/managed/java-managed-agent-client.d.ts +10 -0
- package/dist/types/components/managed/managed-agent-provider.d.ts +7 -0
- package/dist/types/components/managed/managed-pending-storage.d.ts +2 -0
- package/dist/types/components/managed/managed-session-messages.d.ts +1 -0
- package/dist/types/components/managed/use-managed-file-references.d.ts +19 -0
- package/dist/types/components/message-deletion-messages.d.ts +7 -0
- package/dist/types/components/message-deletion-messages.transcript-stub.d.ts +7 -0
- package/dist/types/components/messages/TasksStatusMessage.d.ts +6 -0
- package/dist/types/components/messages/toolFormatting.d.ts +1 -0
- package/dist/types/components/messages/tools/ToolDetailsContext.d.ts +13 -0
- package/dist/types/customization.d.ts +2 -1
- package/dist/types/daemon/session/actions.d.ts +10 -2
- package/dist/types/daemon/session/types.d.ts +6 -1
- package/dist/types/hooks/useAtMentionSources.d.ts +5 -0
- package/dist/types/hooks/useComposerCore.d.ts +2 -0
- package/dist/types/hooks/useMessageDeletion.d.ts +33 -0
- package/dist/types/hooks/useModelRefresh.d.ts +6 -0
- package/dist/types/transcript.d.ts +2 -2
- package/dist/types/utils/composerTag.d.ts +1 -0
- package/dist/types/utils/dom.d.ts +1 -0
- package/dist/types/utils/message-deletion.d.ts +20 -0
- package/dist/types/utils/planMode.d.ts +1 -1
- package/dist/types/utils/plural.d.ts +7 -0
- package/dist/{useDaemonMidTurnInjected-BDFSY1Yl.js → useDaemonMidTurnInjected-CfhBFIym.js} +5686 -5264
- package/package.json +3 -1
|
@@ -6,12 +6,12 @@ var nd = (e, t, n) => t in e ? td(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var ct = (e, t, n) => nd(e, typeof t != "symbol" ? t + "" : t, n), Oi = (e, t, n) => t.has(e) || vl("Cannot " + n);
|
|
7
7
|
var s = (e, t, n) => (Oi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), M = (e, t, n) => t.has(e) ? vl("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), b = (e, t, n, r) => (Oi(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), m = (e, t, n) => (Oi(e, t, "access private method"), n);
|
|
8
8
|
import { jsx as V, jsxs as xe, Fragment as ti } from "react/jsx-runtime";
|
|
9
|
-
import { N as rd, O as Ua, P as od, Q as id, R as sd, q as ld, s as ad, t as cd, v as cn, S as ud, U as dd,
|
|
9
|
+
import { N as rd, O as Ua, P as od, Q as id, R as sd, q as ld, s as ad, t as cd, v as cn, S as ud, U as dd, V as hd, W as fd, D as pd, f as md, g as gd, h as vd, i as yd, X as ro, Y as bd, I as yl, k as Id, B as Jt, Z as wd, _ as xd, $ as Sd, a0 as Cd, a1 as _d, a2 as kd, a3 as Pd, a4 as Ed, w as bl, d as Dd } from "./index-CU9u4ISL.js";
|
|
10
10
|
import * as Bs from "react-resizable-panels";
|
|
11
11
|
import { usePanelRef as Il } from "react-resizable-panels";
|
|
12
|
-
import { EyeIcon as
|
|
13
|
-
import { forwardRef as zs, useMemo as
|
|
14
|
-
import { W as
|
|
12
|
+
import { EyeIcon as Md, Code2Icon as Td, StickyNotePlusIcon as Nd, FolderPlusIcon as Ad, RotateCwIcon as Rd, FolderIcon as Vd, XIcon as wl, SearchIcon as Fd } from "lucide-react";
|
|
13
|
+
import { forwardRef as zs, useMemo as Ld, useRef as it, useState as We, useId as Bd, useEffect as oo } from "react";
|
|
14
|
+
import { W as zd, T as Hd } from "./useDaemonMidTurnInjected-CfhBFIym.js";
|
|
15
15
|
import "@qwen-code/sdk/daemon";
|
|
16
16
|
function gr(e) {
|
|
17
17
|
return rd(
|
|
@@ -35,72 +35,72 @@ const Wa = `<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
|
35
35
|
<symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
|
|
36
36
|
<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" />
|
|
37
37
|
</symbol>
|
|
38
|
-
</svg>`,
|
|
38
|
+
</svg>`, $d = `<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
|
|
39
39
|
<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"/>
|
|
40
40
|
<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"/>
|
|
41
|
-
</symbol>`,
|
|
41
|
+
</symbol>`, qd = `<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
|
|
42
42
|
<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"/>
|
|
43
|
-
</symbol>`,
|
|
43
|
+
</symbol>`, Od = `<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
|
|
44
44
|
<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"/>
|
|
45
45
|
<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"/>
|
|
46
|
-
</symbol>`,
|
|
46
|
+
</symbol>`, jd = `<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
|
|
47
47
|
<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"/>
|
|
48
|
-
</symbol>`,
|
|
48
|
+
</symbol>`, Ud = `<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
|
|
49
49
|
<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"/>
|
|
50
50
|
<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"/>
|
|
51
|
-
</symbol>`,
|
|
51
|
+
</symbol>`, Wd = `<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
|
|
52
52
|
<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"/>
|
|
53
53
|
<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"/>
|
|
54
54
|
<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"/>
|
|
55
|
-
</symbol>`,
|
|
55
|
+
</symbol>`, Kd = `<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
|
|
56
56
|
<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"/>
|
|
57
|
-
</symbol>`,
|
|
57
|
+
</symbol>`, Gd = `<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
|
|
58
58
|
<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"/>
|
|
59
|
-
</symbol>`,
|
|
59
|
+
</symbol>`, Yd = `<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
|
|
60
60
|
<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"/>
|
|
61
|
-
</symbol>`,
|
|
61
|
+
</symbol>`, Xd = `<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
|
|
62
62
|
<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"/>
|
|
63
|
-
</symbol>`,
|
|
63
|
+
</symbol>`, Qd = `<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
|
|
64
64
|
<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"/>
|
|
65
65
|
<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"/>
|
|
66
|
-
</symbol>`,
|
|
66
|
+
</symbol>`, Zd = `<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
|
|
67
67
|
<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"/>
|
|
68
68
|
<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"/>
|
|
69
69
|
<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"/>
|
|
70
|
-
</symbol>`,
|
|
70
|
+
</symbol>`, Jd = `<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
|
|
71
71
|
<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"/>
|
|
72
72
|
<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"/>
|
|
73
|
-
</symbol>`,
|
|
73
|
+
</symbol>`, eh = `<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
|
|
74
74
|
<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"/>
|
|
75
75
|
<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"/>
|
|
76
|
-
</symbol>`,
|
|
76
|
+
</symbol>`, th = `<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
|
|
77
77
|
<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"/>
|
|
78
78
|
<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"/>
|
|
79
|
-
</symbol>`,
|
|
79
|
+
</symbol>`, nh = `<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
|
|
80
80
|
<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"/>
|
|
81
|
-
</symbol>`,
|
|
81
|
+
</symbol>`, rh = `<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
|
|
82
82
|
<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"/>
|
|
83
|
-
</symbol>`,
|
|
83
|
+
</symbol>`, oh = `<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
|
|
84
84
|
<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"/>
|
|
85
|
-
</symbol>`,
|
|
85
|
+
</symbol>`, ih = `<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
|
|
86
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>`,
|
|
87
|
+
</symbol>`, sh = `<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
|
|
88
88
|
<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"/>
|
|
89
89
|
<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"/>
|
|
90
|
-
</symbol>`,
|
|
90
|
+
</symbol>`, lh = `<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
|
|
91
91
|
<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"/>
|
|
92
92
|
<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"/>
|
|
93
|
-
</symbol>`,
|
|
93
|
+
</symbol>`, ah = `<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
|
|
94
94
|
<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"/>
|
|
95
95
|
<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"/>
|
|
96
|
-
</symbol>`,
|
|
96
|
+
</symbol>`, ch = `<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
|
|
97
97
|
<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"/>
|
|
98
|
-
</symbol>`,
|
|
98
|
+
</symbol>`, uh = `<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
|
|
99
99
|
<path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
|
|
100
|
-
</symbol>`,
|
|
100
|
+
</symbol>`, dh = `<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
|
|
101
101
|
<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"/>
|
|
102
102
|
<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"/>
|
|
103
|
-
</symbol>`,
|
|
103
|
+
</symbol>`, hh = `<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
|
|
104
104
|
<defs>
|
|
105
105
|
<linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
|
|
106
106
|
<stop stop-color="currentColor"/>
|
|
@@ -110,135 +110,135 @@ const Wa = `<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
|
110
110
|
<path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
|
|
111
111
|
<path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
|
|
112
112
|
<path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
|
|
113
|
-
</symbol>`,
|
|
113
|
+
</symbol>`, fh = `<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
|
|
114
114
|
<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"/>
|
|
115
115
|
<path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
|
|
116
|
-
</symbol>`,
|
|
116
|
+
</symbol>`, ph = `<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
|
|
117
117
|
<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"/>
|
|
118
|
-
</symbol>`,
|
|
118
|
+
</symbol>`, mh = `<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
|
|
119
119
|
<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"/>
|
|
120
|
-
</symbol>`,
|
|
120
|
+
</symbol>`, gh = `<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
|
|
121
121
|
<path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
|
|
122
122
|
<path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
|
|
123
123
|
<path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
|
|
124
124
|
<path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
|
|
125
|
-
</symbol>`,
|
|
125
|
+
</symbol>`, vh = `<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
|
|
126
126
|
<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"/>
|
|
127
127
|
<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"/>
|
|
128
|
-
</symbol>`,
|
|
128
|
+
</symbol>`, yh = `<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
|
|
129
129
|
<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"/>
|
|
130
130
|
<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"/>
|
|
131
|
-
</symbol>`,
|
|
131
|
+
</symbol>`, bh = `<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
|
|
132
132
|
<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"/>
|
|
133
|
-
</symbol>`,
|
|
133
|
+
</symbol>`, Ih = `<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
|
|
134
134
|
<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"/>
|
|
135
|
-
</symbol>`,
|
|
135
|
+
</symbol>`, wh = `<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
|
|
136
136
|
<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"/>
|
|
137
|
-
</symbol>`,
|
|
137
|
+
</symbol>`, xh = `<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
|
|
138
138
|
<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"/>
|
|
139
139
|
<path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
|
|
140
|
-
</symbol>`,
|
|
140
|
+
</symbol>`, Sh = `<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
|
|
141
141
|
<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"/>
|
|
142
|
-
</symbol>`,
|
|
142
|
+
</symbol>`, Ch = `<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
|
|
143
143
|
<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"/>
|
|
144
144
|
<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"/>
|
|
145
|
-
</symbol>`,
|
|
145
|
+
</symbol>`, _h = `<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
|
|
146
146
|
<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"/>
|
|
147
147
|
<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"/>
|
|
148
|
-
</symbol>`,
|
|
148
|
+
</symbol>`, kh = `<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
|
|
149
149
|
<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"/>
|
|
150
|
-
</symbol>`,
|
|
150
|
+
</symbol>`, Ph = `<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
|
|
151
151
|
<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"/>
|
|
152
152
|
<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"/>
|
|
153
|
-
</symbol>`,
|
|
153
|
+
</symbol>`, Eh = `<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
|
|
154
154
|
<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"/>
|
|
155
|
-
</symbol>`,
|
|
155
|
+
</symbol>`, Dh = `<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
|
|
156
156
|
<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"/>
|
|
157
|
-
</symbol>`,
|
|
157
|
+
</symbol>`, Mh = `<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
|
|
158
158
|
<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"/>
|
|
159
159
|
<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"/>
|
|
160
|
-
</symbol>`,
|
|
160
|
+
</symbol>`, Th = `<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
|
|
161
161
|
<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"/>
|
|
162
162
|
<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"/>
|
|
163
|
-
</symbol>`,
|
|
163
|
+
</symbol>`, Nh = `<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
|
|
164
164
|
<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"/>
|
|
165
|
-
</symbol>`,
|
|
165
|
+
</symbol>`, Ah = `<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
|
|
166
166
|
<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"/>
|
|
167
167
|
<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"/>
|
|
168
168
|
<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"/>
|
|
169
|
-
</symbol>`,
|
|
169
|
+
</symbol>`, Rh = `<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
|
|
170
170
|
<path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
|
|
171
171
|
<path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
|
|
172
|
-
</symbol>`,
|
|
172
|
+
</symbol>`, Vh = `<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
|
|
173
173
|
<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"/>
|
|
174
174
|
<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"/>
|
|
175
175
|
<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"/>
|
|
176
|
-
</symbol>`,
|
|
176
|
+
</symbol>`, Fh = `<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
|
|
177
177
|
<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"/>
|
|
178
178
|
<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"/>
|
|
179
|
-
</symbol>`,
|
|
179
|
+
</symbol>`, Lh = `<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
|
|
180
180
|
<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"/>
|
|
181
|
-
</symbol>`,
|
|
181
|
+
</symbol>`, Bh = `<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
|
|
182
182
|
<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"/>
|
|
183
183
|
<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"/>
|
|
184
|
-
</symbol>`,
|
|
185
|
-
|
|
186
|
-
Wd,
|
|
184
|
+
</symbol>`, zh = [
|
|
185
|
+
Od,
|
|
187
186
|
Gd,
|
|
188
|
-
Yd,
|
|
189
187
|
Xd,
|
|
190
188
|
Qd,
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
Zd,
|
|
190
|
+
Jd,
|
|
193
191
|
nh,
|
|
192
|
+
rh,
|
|
194
193
|
oh,
|
|
195
|
-
ih,
|
|
196
194
|
sh,
|
|
197
195
|
lh,
|
|
198
196
|
ah,
|
|
199
197
|
ch,
|
|
200
|
-
|
|
198
|
+
uh,
|
|
199
|
+
dh,
|
|
201
200
|
vh,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
201
|
+
bh,
|
|
202
|
+
Ih,
|
|
203
|
+
kh,
|
|
204
|
+
Ph,
|
|
205
|
+
Mh,
|
|
206
|
+
Th,
|
|
207
207
|
`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
|
|
208
208
|
<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"/>
|
|
209
209
|
<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"/>
|
|
210
210
|
</symbol>`
|
|
211
|
-
],
|
|
212
|
-
|
|
213
|
-
Hd,
|
|
211
|
+
], Hh = [
|
|
212
|
+
$d,
|
|
214
213
|
qd,
|
|
215
|
-
Od,
|
|
216
214
|
jd,
|
|
217
215
|
Ud,
|
|
216
|
+
Wd,
|
|
218
217
|
Kd,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
dh,
|
|
218
|
+
Yd,
|
|
219
|
+
eh,
|
|
220
|
+
th,
|
|
221
|
+
ih,
|
|
224
222
|
hh,
|
|
225
223
|
fh,
|
|
226
224
|
ph,
|
|
225
|
+
mh,
|
|
227
226
|
gh,
|
|
228
|
-
|
|
229
|
-
Ih,
|
|
227
|
+
yh,
|
|
230
228
|
wh,
|
|
231
229
|
xh,
|
|
232
230
|
Sh,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
231
|
+
Ch,
|
|
232
|
+
_h,
|
|
233
|
+
Eh,
|
|
234
|
+
Dh,
|
|
237
235
|
Nh,
|
|
238
236
|
Ah,
|
|
239
237
|
Rh,
|
|
240
238
|
Vh,
|
|
241
|
-
Fh
|
|
239
|
+
Fh,
|
|
240
|
+
Lh,
|
|
241
|
+
Bh
|
|
242
242
|
];
|
|
243
243
|
function Ka(e, t) {
|
|
244
244
|
return t.length === 0 ? e : e.replace("</svg>", `
|
|
@@ -246,11 +246,11 @@ function Ka(e, t) {
|
|
|
246
246
|
`)}
|
|
247
247
|
</svg>`);
|
|
248
248
|
}
|
|
249
|
-
const xl = Ka(Wa,
|
|
249
|
+
const xl = Ka(Wa, zh), $h = {
|
|
250
250
|
minimal: Wa,
|
|
251
251
|
standard: xl,
|
|
252
|
-
complete: Ka(xl,
|
|
253
|
-
},
|
|
252
|
+
complete: Ka(xl, Hh)
|
|
253
|
+
}, qh = {
|
|
254
254
|
".babelrc": "babel",
|
|
255
255
|
".babelrc.json": "babel",
|
|
256
256
|
".bash_profile": "bash",
|
|
@@ -355,7 +355,7 @@ const xl = Ka(Wa, Lh), zh = {
|
|
|
355
355
|
"webpack.config.js": "webpack",
|
|
356
356
|
"webpack.config.mjs": "webpack",
|
|
357
357
|
"webpack.config.ts": "webpack"
|
|
358
|
-
},
|
|
358
|
+
}, Oh = {
|
|
359
359
|
"7z": "zip",
|
|
360
360
|
astro: "astro",
|
|
361
361
|
AUTHORS: "text",
|
|
@@ -476,7 +476,7 @@ const xl = Ka(Wa, Lh), zh = {
|
|
|
476
476
|
zig: "zig",
|
|
477
477
|
zip: "zip",
|
|
478
478
|
zsh: "bash"
|
|
479
|
-
},
|
|
479
|
+
}, jh = {
|
|
480
480
|
jsx: "react",
|
|
481
481
|
sass: "sass",
|
|
482
482
|
scss: "sass",
|
|
@@ -505,34 +505,34 @@ const xl = Ka(Wa, Lh), zh = {
|
|
|
505
505
|
"text",
|
|
506
506
|
"typescript",
|
|
507
507
|
"zip"
|
|
508
|
-
]),
|
|
509
|
-
function
|
|
510
|
-
return
|
|
508
|
+
]), Uh = /* @__PURE__ */ new Set(["complete"]);
|
|
509
|
+
function Wh(e) {
|
|
510
|
+
return $h[e === "none" ? "minimal" : e];
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Kh(e) {
|
|
513
513
|
return `file-tree-builtin-${e}`;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
return e !== "none" &&
|
|
515
|
+
function Gh(e) {
|
|
516
|
+
return e !== "none" && Uh.has(e);
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Yh(e, t, n) {
|
|
519
519
|
if (e === "minimal" || e === "none") return;
|
|
520
|
-
const r = e === "complete", o =
|
|
520
|
+
const r = e === "complete", o = qh[t.toLowerCase()];
|
|
521
521
|
if (o != null && (r || Sl.has(o)))
|
|
522
522
|
return o;
|
|
523
523
|
for (const i of n) {
|
|
524
524
|
if (r) {
|
|
525
|
-
const a =
|
|
525
|
+
const a = jh[i];
|
|
526
526
|
if (a != null) return a;
|
|
527
527
|
}
|
|
528
|
-
const l =
|
|
528
|
+
const l = Oh[i];
|
|
529
529
|
if (l != null && (r || Sl.has(l)))
|
|
530
530
|
return l;
|
|
531
531
|
}
|
|
532
532
|
return "default";
|
|
533
533
|
}
|
|
534
|
-
const Cl = "file-tree-container", _l = "data-file-tree-style", kl = "data-file-tree-unsafe-css",
|
|
535
|
-
function
|
|
534
|
+
const Cl = "file-tree-container", _l = "data-file-tree-style", kl = "data-file-tree-unsafe-css", Xh = "data-file-tree-scrollbar-measure", Pl = "data-file-tree-scrollbar-gutter-measured", Qh = "--trees-scrollbar-gutter-measured", Qi = "header", ni = "context-menu", Zh = "context-menu-trigger";
|
|
535
|
+
function Jh(e) {
|
|
536
536
|
return e.spriteSheet != null || e.remap != null || e.byFileName != null || e.byFileExtension != null || e.byFileNameContains != null;
|
|
537
537
|
}
|
|
538
538
|
function li(e) {
|
|
@@ -544,11 +544,11 @@ function li(e) {
|
|
|
544
544
|
colored: !0
|
|
545
545
|
} : {
|
|
546
546
|
...e,
|
|
547
|
-
set: e.set ?? (
|
|
547
|
+
set: e.set ?? (Jh(e) ? "none" : "complete"),
|
|
548
548
|
colored: e.colored ?? !0
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
-
const
|
|
551
|
+
const ef = (e) => e.trim().toLowerCase(), tf = (e) => e.split("/").at(-1) ?? e, nf = (e) => {
|
|
552
552
|
const t = e.toLowerCase().split("."), n = [];
|
|
553
553
|
for (let r = 1; r < t.length; r += 1) n.push(t.slice(r).join("."));
|
|
554
554
|
return n;
|
|
@@ -562,30 +562,30 @@ function io(e, t) {
|
|
|
562
562
|
remappedFrom: t
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function rf(e) {
|
|
566
566
|
const t = li(e), n = t.remap, r = /* @__PURE__ */ new Map();
|
|
567
567
|
for (const [a, c] of Object.entries(t.byFileName ?? {})) r.set(a.toLowerCase(), c);
|
|
568
568
|
const o = /* @__PURE__ */ new Map();
|
|
569
|
-
for (const [a, c] of Object.entries(t.byFileExtension ?? {})) o.set(
|
|
569
|
+
for (const [a, c] of Object.entries(t.byFileExtension ?? {})) o.set(ef(a), c);
|
|
570
570
|
const i = Object.entries(t.byFileNameContains ?? {}).map(([a, c]) => [a.toLowerCase(), c]);
|
|
571
571
|
return { resolveIcon: (a, c) => {
|
|
572
572
|
if (a === "file-tree-icon-file" && c != null) {
|
|
573
|
-
const p =
|
|
573
|
+
const p = tf(c), g = p.toLowerCase(), u = r.get(g);
|
|
574
574
|
if (u != null) return io(u, a);
|
|
575
575
|
for (const [x, _] of i) if (g.includes(x)) return io(_, a);
|
|
576
|
-
const I =
|
|
576
|
+
const I = nf(p);
|
|
577
577
|
for (const x of I) {
|
|
578
578
|
const _ = o.get(x);
|
|
579
579
|
if (_ != null) return io(_, a);
|
|
580
580
|
}
|
|
581
|
-
const y =
|
|
581
|
+
const y = Yh(t.set, p, I);
|
|
582
582
|
if (y != null && t.set !== "none") {
|
|
583
583
|
if (y === "default") {
|
|
584
584
|
const x = n?.[a];
|
|
585
585
|
if (x != null) return io(x, a);
|
|
586
586
|
}
|
|
587
587
|
return {
|
|
588
|
-
name:
|
|
588
|
+
name: Kh(y),
|
|
589
589
|
remappedFrom: a,
|
|
590
590
|
token: y
|
|
591
591
|
};
|
|
@@ -595,7 +595,7 @@ function tf(e) {
|
|
|
595
595
|
return h == null ? { name: a } : io(h, a);
|
|
596
596
|
} };
|
|
597
597
|
}
|
|
598
|
-
const bo = 5, Ei = 1 << bo,
|
|
598
|
+
const bo = 5, Ei = 1 << bo, of = Ei * 4;
|
|
599
599
|
function uo() {
|
|
600
600
|
return {
|
|
601
601
|
childIdByNameId: /* @__PURE__ */ new Map(),
|
|
@@ -665,7 +665,7 @@ function Zi(e, t, n) {
|
|
|
665
665
|
let i = n, l = 0;
|
|
666
666
|
for (const a of r) {
|
|
667
667
|
if (i < a) {
|
|
668
|
-
const c =
|
|
668
|
+
const c = lf(e, t, l, i);
|
|
669
669
|
return {
|
|
670
670
|
...c,
|
|
671
671
|
childVisibleIndex: n - c.localVisibleIndex
|
|
@@ -691,7 +691,7 @@ function Zi(e, t, n) {
|
|
|
691
691
|
}
|
|
692
692
|
throw new Error(`Visible child index ${String(n)} is out of range`);
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function sf(e, t, n) {
|
|
695
695
|
let r = 0;
|
|
696
696
|
const o = t.childVisibleChunkSums;
|
|
697
697
|
let i = 0;
|
|
@@ -709,7 +709,7 @@ function rf(e, t, n) {
|
|
|
709
709
|
return r;
|
|
710
710
|
}
|
|
711
711
|
function Lr(e, t) {
|
|
712
|
-
if (t.childIds.length <
|
|
712
|
+
if (t.childIds.length < of) {
|
|
713
713
|
t.childVisibleChunkSums = null;
|
|
714
714
|
return;
|
|
715
715
|
}
|
|
@@ -722,7 +722,7 @@ function Lr(e, t) {
|
|
|
722
722
|
}
|
|
723
723
|
t.childVisibleChunkSums = r;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function lf(e, t, n, r) {
|
|
726
726
|
const o = Math.min(t.childIds.length, n + Ei);
|
|
727
727
|
let i = r;
|
|
728
728
|
for (let l = n; l < o; l++) {
|
|
@@ -739,7 +739,7 @@ function of(e, t, n, r) {
|
|
|
739
739
|
}
|
|
740
740
|
throw new Error(`Visible child index ${String(r)} is out of range`);
|
|
741
741
|
}
|
|
742
|
-
const
|
|
742
|
+
const af = 7, $s = 3, Ya = 1 << $s, Xa = 4;
|
|
743
743
|
function Et(e, t, n = 0) {
|
|
744
744
|
return e << Xa | n << $s | t;
|
|
745
745
|
}
|
|
@@ -753,7 +753,7 @@ function z(e) {
|
|
|
753
753
|
return (e.depthAndFlags & Ya) !== 0;
|
|
754
754
|
}
|
|
755
755
|
function Qa(e) {
|
|
756
|
-
return e.depthAndFlags &
|
|
756
|
+
return e.depthAndFlags & af;
|
|
757
757
|
}
|
|
758
758
|
function $e(e, t) {
|
|
759
759
|
return (Qa(e) & t) !== 0;
|
|
@@ -761,11 +761,11 @@ function $e(e, t) {
|
|
|
761
761
|
function Ti(e, t) {
|
|
762
762
|
e.depthAndFlags |= t;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function cf(e, t) {
|
|
765
765
|
e.depthAndFlags = Et(t, Qa(e), Mi(e));
|
|
766
766
|
}
|
|
767
767
|
const Za = Symbol("benchmarkInstrumentation");
|
|
768
|
-
function
|
|
768
|
+
function uf(e, t) {
|
|
769
769
|
return t == null || Object.defineProperty(e, Za, {
|
|
770
770
|
configurable: !0,
|
|
771
771
|
enumerable: !1,
|
|
@@ -785,7 +785,7 @@ function ai(e, t, n) {
|
|
|
785
785
|
function Dl(e) {
|
|
786
786
|
return e >= 48 && e <= 57;
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function df(e) {
|
|
789
789
|
const t = [];
|
|
790
790
|
let n = 0, r = 0;
|
|
791
791
|
for (; r < e.length; ) {
|
|
@@ -803,10 +803,10 @@ function Bo(e) {
|
|
|
803
803
|
const t = e.toLowerCase();
|
|
804
804
|
return {
|
|
805
805
|
lowerValue: t,
|
|
806
|
-
tokens:
|
|
806
|
+
tokens: df(t)
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function hf(e, t) {
|
|
810
810
|
const n = Math.min(e.length, t.length);
|
|
811
811
|
for (let r = 0; r < n; r++) {
|
|
812
812
|
const o = e[r], i = t[r];
|
|
@@ -820,33 +820,33 @@ function uf(e, t) {
|
|
|
820
820
|
function Os(e, t) {
|
|
821
821
|
if (e.tokens.length === 1 && t.tokens.length === 1 && typeof e.tokens[0] == "string" && typeof t.tokens[0] == "string")
|
|
822
822
|
return e.lowerValue === t.lowerValue ? 0 : e.lowerValue < t.lowerValue ? -1 : 1;
|
|
823
|
-
const n =
|
|
823
|
+
const n = hf(e.tokens, t.tokens);
|
|
824
824
|
return n !== 0 ? n : e.lowerValue !== t.lowerValue ? e.lowerValue < t.lowerValue ? -1 : 1 : 0;
|
|
825
825
|
}
|
|
826
826
|
function Ja(e, t, n) {
|
|
827
827
|
const r = Os(n(e), n(t));
|
|
828
828
|
return r !== 0 ? r : e === t ? 0 : e < t ? -1 : 1;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function ff(e, t) {
|
|
831
831
|
return Ja(e, t, Bo);
|
|
832
832
|
}
|
|
833
833
|
function Si(e, t) {
|
|
834
834
|
return t !== e.segments.length - 1 || e.isDirectory ? 1 : 0;
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function pf(e, t) {
|
|
837
837
|
const n = Math.min(e.segments.length, t.segments.length);
|
|
838
838
|
for (let r = 0; r < n; r++) {
|
|
839
839
|
const o = e.segments[r], i = t.segments[r];
|
|
840
840
|
if (o === i) continue;
|
|
841
841
|
const l = Si(e, r);
|
|
842
|
-
return l !== Si(t, r) ? l === 1 ? -1 : 1 :
|
|
842
|
+
return l !== Si(t, r) ? l === 1 ? -1 : 1 : ff(o, i);
|
|
843
843
|
}
|
|
844
844
|
return e.segments.length !== t.segments.length ? e.segments.length < t.segments.length ? -1 : 1 : e.isDirectory === t.isDirectory ? 0 : e.isDirectory ? -1 : 1;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
return
|
|
846
|
+
function mf(e, t) {
|
|
847
|
+
return pf(e, t);
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function gf(e, t, n) {
|
|
850
850
|
const r = (i) => {
|
|
851
851
|
const l = n.get(i);
|
|
852
852
|
if (l != null) return l;
|
|
@@ -936,9 +936,9 @@ function Ml(e) {
|
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
938
|
function oc(e, t, n) {
|
|
939
|
-
return n === "default" ?
|
|
939
|
+
return n === "default" ? mf(e, t) : n(Ml(e), Ml(t));
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function vf() {
|
|
942
942
|
return {
|
|
943
943
|
depthAndFlags: Et(0, 3, 1),
|
|
944
944
|
nameId: 0,
|
|
@@ -947,7 +947,7 @@ function mf() {
|
|
|
947
947
|
visibleSubtreeCount: 1
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function yf(e, t) {
|
|
951
951
|
const n = Math.min(e.length, t.length);
|
|
952
952
|
for (let r = 0; r < n; r++) if (e[r] !== t[r]) return r;
|
|
953
953
|
return n;
|
|
@@ -955,23 +955,23 @@ function gf(e, t) {
|
|
|
955
955
|
function Tl(e) {
|
|
956
956
|
return e.isDirectory ? e.segments.length : e.segments.length - 1;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function bf(e) {
|
|
959
959
|
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");
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function If(e) {
|
|
962
962
|
return Array.isArray(e) && e.every((t) => typeof t == "string");
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function wf(e, t = {}) {
|
|
965
965
|
return Us(e, t).map((n) => n.path);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function xf(e, t = {}) {
|
|
968
968
|
const n = Us(e, t);
|
|
969
969
|
return rc({
|
|
970
970
|
paths: n.map((r) => r.path),
|
|
971
971
|
preparedPaths: n
|
|
972
972
|
}, "prepared");
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Sf(e) {
|
|
975
975
|
const t = e.length;
|
|
976
976
|
let n = !1;
|
|
977
977
|
for (let r = 0; r < t; r += 1) {
|
|
@@ -987,17 +987,17 @@ function wf(e) {
|
|
|
987
987
|
presortedPathsContainDirectories: n
|
|
988
988
|
}, "presorted");
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function Cf(e) {
|
|
991
991
|
const t = e, n = t.preparedPaths;
|
|
992
992
|
if (t[js] === "prepared" && n != null) return n;
|
|
993
|
-
if (!
|
|
993
|
+
if (!bf(n)) throw new Error("preparedInput must come from PathStore.prepareInput()");
|
|
994
994
|
return n;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function _f(e) {
|
|
997
997
|
const t = e;
|
|
998
|
-
return t[js] === "presorted" && t.presortedPaths != null ||
|
|
998
|
+
return t[js] === "presorted" && t.presortedPaths != null || If(t.presortedPaths) ? t.presortedPaths : null;
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function kf(e) {
|
|
1001
1001
|
const t = e;
|
|
1002
1002
|
return typeof t.presortedPathsContainDirectories == "boolean" ? t.presortedPathsContainDirectories : null;
|
|
1003
1003
|
}
|
|
@@ -1016,7 +1016,7 @@ var ic = class {
|
|
|
1016
1016
|
ct(this, "createdDirectoriesAllExpanded", !1);
|
|
1017
1017
|
ct(this, "createdDirectoryCount", 0);
|
|
1018
1018
|
ct(this, "lastPreparedPath", null);
|
|
1019
|
-
ct(this, "nodes", [
|
|
1019
|
+
ct(this, "nodes", [vf()]);
|
|
1020
1020
|
ct(this, "options");
|
|
1021
1021
|
ct(this, "instrumentation");
|
|
1022
1022
|
ct(this, "segmentSortKeyCache", /* @__PURE__ */ new Map());
|
|
@@ -1195,10 +1195,10 @@ var ic = class {
|
|
|
1195
1195
|
appendPreparedPath(e, t) {
|
|
1196
1196
|
if (this.hasDeferredDirectoryIndexes && (this.buildDirectoryIndexes(), this.hasDeferredDirectoryIndexes = !1), this.lastPreparedPath != null) {
|
|
1197
1197
|
if (e.path === this.lastPreparedPath.path) throw new Error(`Duplicate path: "${e.path}"`);
|
|
1198
|
-
if (t && (this.options.sort === "default" ?
|
|
1198
|
+
if (t && (this.options.sort === "default" ? gf(this.lastPreparedPath, e, this.segmentSortKeyCache) : oc(this.lastPreparedPath, e, this.options.sort)) > 0)
|
|
1199
1199
|
throw new Error(`Builder input must be sorted before appendPaths(): "${e.path}"`);
|
|
1200
1200
|
}
|
|
1201
|
-
const n = this.lastPreparedPath, r = Tl(e), o = n == null ? 0 : Tl(n), i = n == null ? 0 :
|
|
1201
|
+
const n = this.lastPreparedPath, r = Tl(e), o = n == null ? 0 : Tl(n), i = n == null ? 0 : yf(n.segments, e.segments), l = Math.min(i, r, o);
|
|
1202
1202
|
this.directoryStack.length = l + 1;
|
|
1203
1203
|
for (let c = l; c < r; c++) {
|
|
1204
1204
|
const h = this.directoryStack[this.directoryStack.length - 1];
|
|
@@ -1334,8 +1334,8 @@ var ic = class {
|
|
|
1334
1334
|
return xi(this.nodes, n), t.subtreeNodeCount = r, t.visibleSubtreeCount = r, r;
|
|
1335
1335
|
}
|
|
1336
1336
|
};
|
|
1337
|
-
function
|
|
1338
|
-
const r =
|
|
1337
|
+
function Pf(e, t = "closed", n = null) {
|
|
1338
|
+
const r = Df(t);
|
|
1339
1339
|
return {
|
|
1340
1340
|
activeNodeCount: e.nodes.length - 1,
|
|
1341
1341
|
collapsedDirectoryIds: /* @__PURE__ */ new Set(),
|
|
@@ -1356,14 +1356,14 @@ function _f(e, t = "closed", n = null) {
|
|
|
1356
1356
|
transactionStack: []
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function Ef() {
|
|
1360
1360
|
return {
|
|
1361
1361
|
affectedAncestorIds: /* @__PURE__ */ new Set(),
|
|
1362
1362
|
affectedNodeIds: /* @__PURE__ */ new Set(),
|
|
1363
1363
|
events: []
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Df(e) {
|
|
1367
1367
|
if (typeof e != "number") return e;
|
|
1368
1368
|
if (!Number.isInteger(e) || e < 0) throw new Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(e)}`);
|
|
1369
1369
|
return e;
|
|
@@ -1405,7 +1405,7 @@ function lc(e, t) {
|
|
|
1405
1405
|
function wo(e, t) {
|
|
1406
1406
|
return e.directoryLoadInfoById.get(t)?.state ?? "loaded";
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Mf(e, t) {
|
|
1409
1409
|
const n = lc(e, t);
|
|
1410
1410
|
if (n.state === "loading" && n.activeAttemptId != null) return {
|
|
1411
1411
|
attemptId: n.activeAttemptId,
|
|
@@ -1419,32 +1419,32 @@ function Ef(e, t) {
|
|
|
1419
1419
|
reused: !1
|
|
1420
1420
|
};
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function Tf(e, t) {
|
|
1423
1423
|
const n = lc(e, t);
|
|
1424
1424
|
n.activeAttemptId = null, n.errorMessage = null, n.state = "unloaded";
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function Nf(e, t, n) {
|
|
1427
1427
|
const r = e.directoryLoadInfoById.get(t);
|
|
1428
1428
|
return r == null || r.activeAttemptId !== n ? !1 : (r.activeAttemptId = null, r.errorMessage = null, r.state = "loaded", !0);
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Af(e, t, n) {
|
|
1431
1431
|
return e.directoryLoadInfoById.get(t)?.activeAttemptId === n;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function Rf(e, t, n, r) {
|
|
1434
1434
|
const o = e.directoryLoadInfoById.get(t);
|
|
1435
1435
|
return o == null || o.activeAttemptId !== n ? !1 : (o.activeAttemptId = null, o.errorMessage = r ?? null, o.state = "error", !0);
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function Vf(e, t) {
|
|
1438
1438
|
e.directoryLoadInfoById.delete(t);
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function Ff(e, t, n) {
|
|
1441
1441
|
const r = n, o = e.listeners.get(t);
|
|
1442
1442
|
return o != null ? o.add(r) : e.listeners.set(t, /* @__PURE__ */ new Set([r])), () => {
|
|
1443
1443
|
const i = e.listeners.get(t);
|
|
1444
1444
|
i != null && (i.delete(r), i.size === 0 && e.listeners.delete(t));
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function Lf(e) {
|
|
1448
1448
|
return {
|
|
1449
1449
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1450
1450
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1455,7 +1455,7 @@ function Vf(e) {
|
|
|
1455
1455
|
visibleCountDelta: null
|
|
1456
1456
|
};
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function Bf(e) {
|
|
1459
1459
|
return {
|
|
1460
1460
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1461
1461
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1467,7 +1467,7 @@ function Ff(e) {
|
|
|
1467
1467
|
visibleCountDelta: null
|
|
1468
1468
|
};
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function zf(e) {
|
|
1471
1471
|
return {
|
|
1472
1472
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1473
1473
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1479,7 +1479,7 @@ function Lf(e) {
|
|
|
1479
1479
|
visibleCountDelta: null
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1482
|
+
function Hf(e) {
|
|
1483
1483
|
return {
|
|
1484
1484
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1485
1485
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1490,7 +1490,7 @@ function Bf(e) {
|
|
|
1490
1490
|
visibleCountDelta: null
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function $f(e) {
|
|
1494
1494
|
return {
|
|
1495
1495
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1496
1496
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1501,7 +1501,7 @@ function zf(e) {
|
|
|
1501
1501
|
visibleCountDelta: null
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function qf(e) {
|
|
1505
1505
|
return {
|
|
1506
1506
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1507
1507
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1512,7 +1512,7 @@ function Hf(e) {
|
|
|
1512
1512
|
visibleCountDelta: null
|
|
1513
1513
|
};
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Of(e) {
|
|
1516
1516
|
return {
|
|
1517
1517
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1518
1518
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1525,7 +1525,7 @@ function $f(e) {
|
|
|
1525
1525
|
visibleCountDelta: null
|
|
1526
1526
|
};
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function jf(e) {
|
|
1529
1529
|
return {
|
|
1530
1530
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1531
1531
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1538,7 +1538,7 @@ function qf(e) {
|
|
|
1538
1538
|
visibleCountDelta: null
|
|
1539
1539
|
};
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Uf(e) {
|
|
1542
1542
|
return {
|
|
1543
1543
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1544
1544
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1551,7 +1551,7 @@ function Of(e) {
|
|
|
1551
1551
|
visibleCountDelta: null
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Wf(e) {
|
|
1555
1555
|
return {
|
|
1556
1556
|
affectedAncestorIds: e.affectedAncestorIds ?? [],
|
|
1557
1557
|
affectedNodeIds: e.affectedNodeIds ?? [],
|
|
@@ -1565,7 +1565,7 @@ function jf(e) {
|
|
|
1565
1565
|
visibleCountDelta: null
|
|
1566
1566
|
};
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Kf(e) {
|
|
1569
1569
|
return {
|
|
1570
1570
|
activeNodeCountAfter: e.activeNodeCountAfter,
|
|
1571
1571
|
activeNodeCountBefore: e.activeNodeCountBefore,
|
|
@@ -1597,8 +1597,8 @@ function pt(e, t, n) {
|
|
|
1597
1597
|
visibleCountDelta: ns(e) - t
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1601
|
-
const n = ns(e), r =
|
|
1600
|
+
function Gf(e, t) {
|
|
1601
|
+
const n = ns(e), r = Ef();
|
|
1602
1602
|
e.transactionStack.push(r);
|
|
1603
1603
|
try {
|
|
1604
1604
|
t();
|
|
@@ -1621,7 +1621,7 @@ function Nl(e, t) {
|
|
|
1621
1621
|
ts(e, t);
|
|
1622
1622
|
return;
|
|
1623
1623
|
}
|
|
1624
|
-
n.events.push(t),
|
|
1624
|
+
n.events.push(t), Qf(n, t);
|
|
1625
1625
|
}
|
|
1626
1626
|
function Al(e, t, n, r = null) {
|
|
1627
1627
|
if (e.transactionStack.pop() !== t) throw new Error("Transaction stack underflow");
|
|
@@ -1632,14 +1632,14 @@ function Al(e, t, n, r = null) {
|
|
|
1632
1632
|
a == null ? Rl(o, t) : R(a, "store.events.batch.merge", () => Rl(o, t));
|
|
1633
1633
|
return;
|
|
1634
1634
|
}
|
|
1635
|
-
const i =
|
|
1635
|
+
const i = Yf(t, r), l = e.instrumentation;
|
|
1636
1636
|
if (l == null) {
|
|
1637
1637
|
ts(e, i);
|
|
1638
1638
|
return;
|
|
1639
1639
|
}
|
|
1640
1640
|
R(l, "store.events.batch.commit", () => ts(e, i));
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Yf(e, t) {
|
|
1643
1643
|
return {
|
|
1644
1644
|
affectedAncestorIds: [...e.affectedAncestorIds],
|
|
1645
1645
|
affectedNodeIds: [...e.affectedNodeIds],
|
|
@@ -1650,15 +1650,15 @@ function Kf(e, t) {
|
|
|
1650
1650
|
visibleCountDelta: t
|
|
1651
1651
|
};
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function Xf(e, t) {
|
|
1654
1654
|
for (const n of t.affectedAncestorIds) e.affectedAncestorIds.add(n);
|
|
1655
1655
|
for (const n of t.affectedNodeIds) e.affectedNodeIds.add(n);
|
|
1656
1656
|
}
|
|
1657
1657
|
function Rl(e, t) {
|
|
1658
1658
|
for (const n of t.events) e.events.push(n);
|
|
1659
|
-
|
|
1659
|
+
Xf(e, t);
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function Qf(e, t) {
|
|
1662
1662
|
for (const n of t.affectedNodeIds) e.affectedNodeIds.add(n);
|
|
1663
1663
|
for (const n of t.affectedAncestorIds) e.affectedAncestorIds.add(n);
|
|
1664
1664
|
}
|
|
@@ -1706,10 +1706,10 @@ function Ci(e, t) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
function ac(e, t) {
|
|
1708
1708
|
const n = t == null ? e.snapshot.rootId : Ft(e, t);
|
|
1709
|
-
return n == null ? [] :
|
|
1709
|
+
return n == null ? [] : Jf(e, n);
|
|
1710
1710
|
}
|
|
1711
1711
|
function Fl(e, t) {
|
|
1712
|
-
const n = vo(t), r = n.isDirectory ? n.segments : n.segments.slice(0, -1), o = jn(e,
|
|
1712
|
+
const n = vo(t), r = n.isDirectory ? n.segments : n.segments.slice(0, -1), o = jn(e, a1(e, r)), { createdNodeIds: i, directoryId: l } = e1(e, r), a = new Set(i);
|
|
1713
1713
|
let c = l;
|
|
1714
1714
|
if (n.isDirectory) {
|
|
1715
1715
|
const p = L(e, l);
|
|
@@ -1719,10 +1719,10 @@ function Fl(e, t) {
|
|
|
1719
1719
|
version: e.pathCacheVersion
|
|
1720
1720
|
}), a.add(l);
|
|
1721
1721
|
} else
|
|
1722
|
-
c =
|
|
1722
|
+
c = n1(e, l, n.basename), a.add(c);
|
|
1723
1723
|
sr(e, l);
|
|
1724
1724
|
const h = jn(e, l);
|
|
1725
|
-
return
|
|
1725
|
+
return Lf({
|
|
1726
1726
|
affectedAncestorIds: Kt(e, c),
|
|
1727
1727
|
affectedNodeIds: [...a],
|
|
1728
1728
|
path: t,
|
|
@@ -1738,7 +1738,7 @@ function Ll(e, t, n) {
|
|
|
1738
1738
|
const i = o.parentId, l = jn(e, i), a = uc(e, r);
|
|
1739
1739
|
Gs(e, i, r, o.nameId), Ys(e, i), sr(e, i);
|
|
1740
1740
|
const c = jn(e, i);
|
|
1741
|
-
return
|
|
1741
|
+
return Bf({
|
|
1742
1742
|
affectedAncestorIds: Kt(e, i),
|
|
1743
1743
|
affectedNodeIds: a,
|
|
1744
1744
|
path: t,
|
|
@@ -1751,16 +1751,16 @@ function Bl(e, t, n, r) {
|
|
|
1751
1751
|
if (o == null) throw new Error(`Source path does not exist: "${t}"`);
|
|
1752
1752
|
const i = L(e, o);
|
|
1753
1753
|
if ($e(i, 2)) throw new Error("The root node cannot be moved");
|
|
1754
|
-
const l = r.collision ?? "error", a =
|
|
1754
|
+
const l = r.collision ?? "error", a = s1(e, o, n), c = jn(e, i.parentId), h = jn(e, a.parentId), p = sn(e.snapshot.segmentTable, i.nameId), g = On(e.snapshot.segmentTable, a.basename);
|
|
1755
1755
|
if (a.parentId === i.parentId && p === a.basename) return null;
|
|
1756
|
-
if (z(i) &&
|
|
1756
|
+
if (z(i) && u1(e, o, a.parentId)) throw new Error("Cannot move a directory into one of its descendants");
|
|
1757
1757
|
const u = lr(e.snapshot.nodes, Ce(e, a.parentId)).get(g), I = a.existingNodeId ?? u ?? null;
|
|
1758
|
-
if (I != null && I !== o &&
|
|
1758
|
+
if (I != null && I !== o && l1(e, I, l, Mi(i)) === "skip")
|
|
1759
1759
|
return null;
|
|
1760
1760
|
const y = i.parentId;
|
|
1761
1761
|
Gs(e, y, o, i.nameId), i.parentId = a.parentId, i.nameId = g, e.pathCacheByNodeId.delete(o), fc(e, o), Ks(e, a.parentId, o), Ys(e, y), e.pathCacheVersion++, sr(e, y), a.parentId !== y && sr(e, a.parentId);
|
|
1762
1762
|
const x = jn(e, y), _ = jn(e, a.parentId);
|
|
1763
|
-
return
|
|
1763
|
+
return zf({
|
|
1764
1764
|
affectedAncestorIds: [.../* @__PURE__ */ new Set([...Kt(e, y), ...Kt(e, a.parentId)])],
|
|
1765
1765
|
affectedNodeIds: [o],
|
|
1766
1766
|
from: t,
|
|
@@ -1768,7 +1768,7 @@ function Bl(e, t, n, r) {
|
|
|
1768
1768
|
to: Se(e, o)
|
|
1769
1769
|
});
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function Zf(e, t) {
|
|
1772
1772
|
const n = e.pathCacheByNodeId.get(t);
|
|
1773
1773
|
return n != null && n.version === e.pathCacheVersion ? n.path : null;
|
|
1774
1774
|
}
|
|
@@ -1779,7 +1779,7 @@ function zl(e, t, n) {
|
|
|
1779
1779
|
}), n;
|
|
1780
1780
|
}
|
|
1781
1781
|
function Se(e, t) {
|
|
1782
|
-
const n = L(e, t), r =
|
|
1782
|
+
const n = L(e, t), r = Zf(e, t);
|
|
1783
1783
|
if (r != null) return r;
|
|
1784
1784
|
if ($e(n, 2)) return zl(e, t, "");
|
|
1785
1785
|
const o = Se(e, n.parentId), i = sn(e.snapshot.segmentTable, n.nameId), l = o.length === 0 ? i : `${o}${i}`;
|
|
@@ -1847,7 +1847,7 @@ function L(e, t) {
|
|
|
1847
1847
|
if (n === void 0 || $e(n, 4)) throw new Error(`Unknown node ID: ${String(t)}`);
|
|
1848
1848
|
return n;
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function Jf(e, t) {
|
|
1851
1851
|
const n = e.snapshot.nodes[t];
|
|
1852
1852
|
if (n === void 0 || $e(n, 4)) return [];
|
|
1853
1853
|
if (!z(n)) return [Se(e, t)];
|
|
@@ -1885,7 +1885,7 @@ function Qf(e, t) {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
return r;
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1888
|
+
function e1(e, t) {
|
|
1889
1889
|
const n = [];
|
|
1890
1890
|
let r = e.snapshot.rootId;
|
|
1891
1891
|
for (const o of t) {
|
|
@@ -1895,14 +1895,14 @@ function Zf(e, t) {
|
|
|
1895
1895
|
r = a;
|
|
1896
1896
|
continue;
|
|
1897
1897
|
}
|
|
1898
|
-
r =
|
|
1898
|
+
r = t1(e, r, i), n.push(r);
|
|
1899
1899
|
}
|
|
1900
1900
|
return {
|
|
1901
1901
|
createdNodeIds: n,
|
|
1902
1902
|
directoryId: r
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function t1(e, t, n) {
|
|
1906
1906
|
const r = L(e, t), o = e.snapshot.nodes.length;
|
|
1907
1907
|
return e.snapshot.nodes.push({
|
|
1908
1908
|
depthAndFlags: Et(on(r) + 1, 0, 1),
|
|
@@ -1912,9 +1912,9 @@ function Jf(e, t, n) {
|
|
|
1912
1912
|
visibleSubtreeCount: 1
|
|
1913
1913
|
}), e.snapshot.directories.set(o, uo()), Ks(e, t, o), e.collapseNewDirectoriesByDefault && (e.collapsedDirectoryIds.add(o), e.hasCollapsedDirectoryOverrides = !0), e.activeNodeCount++, o;
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function n1(e, t, n) {
|
|
1916
1916
|
const r = On(e.snapshot.segmentTable, n), o = Ce(e, t);
|
|
1917
|
-
if (lr(e.snapshot.nodes, o).has(r)) throw new Error(`Path already exists: "${
|
|
1917
|
+
if (lr(e.snapshot.nodes, o).has(r)) throw new Error(`Path already exists: "${d1(e, t, n)}"`);
|
|
1918
1918
|
const i = L(e, t), l = e.snapshot.nodes.length;
|
|
1919
1919
|
return e.snapshot.nodes.push({
|
|
1920
1920
|
depthAndFlags: Et(on(i) + 1, 0),
|
|
@@ -1924,7 +1924,7 @@ function e1(e, t, n) {
|
|
|
1924
1924
|
visibleSubtreeCount: 1
|
|
1925
1925
|
}), Ks(e, t, l), e.activeNodeCount++, l;
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function r1(e, t, n) {
|
|
1928
1928
|
let r = 0, o = t.childIds.length;
|
|
1929
1929
|
for (; r < o; ) {
|
|
1930
1930
|
const i = r + o >>> 1, l = t.childIds[i];
|
|
@@ -1932,14 +1932,14 @@ function t1(e, t, n) {
|
|
|
1932
1932
|
o = i;
|
|
1933
1933
|
continue;
|
|
1934
1934
|
}
|
|
1935
|
-
|
|
1935
|
+
o1(e, n, l) < 0 ? o = i : r = i + 1;
|
|
1936
1936
|
}
|
|
1937
1937
|
return r;
|
|
1938
1938
|
}
|
|
1939
1939
|
function Ks(e, t, n) {
|
|
1940
1940
|
const r = Ce(e, t), o = L(e, n);
|
|
1941
1941
|
lr(e.snapshot.nodes, r).set(o.nameId, n), Hs(r, n, o.subtreeNodeCount, o.visibleSubtreeCount);
|
|
1942
|
-
const i =
|
|
1942
|
+
const i = r1(e, r, n);
|
|
1943
1943
|
r.childIds.splice(i, 0, n), Ga(r, i), Lr(e.snapshot.nodes, r);
|
|
1944
1944
|
}
|
|
1945
1945
|
function Gs(e, t, n, r) {
|
|
@@ -1948,11 +1948,11 @@ function Gs(e, t, n, r) {
|
|
|
1948
1948
|
const a = e.snapshot.nodes[n];
|
|
1949
1949
|
a != null && Hs(o, n, -a.subtreeNodeCount, -a.visibleSubtreeCount), l >= 0 && (o.childIds.splice(l, 1), Ga(o, l), Lr(e.snapshot.nodes, o));
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function o1(e, t, n) {
|
|
1952
1952
|
const r = e.snapshot.options.sort;
|
|
1953
|
-
return r === "default" ?
|
|
1953
|
+
return r === "default" ? i1(e, t, n) : r(Hl(e, t), Hl(e, n));
|
|
1954
1954
|
}
|
|
1955
|
-
function
|
|
1955
|
+
function i1(e, t, n) {
|
|
1956
1956
|
const r = L(e, t), o = L(e, n), i = z(r);
|
|
1957
1957
|
if (i !== z(o)) return i ? -1 : 1;
|
|
1958
1958
|
const l = Os(Ji(e.snapshot.segmentTable, r.nameId), Ji(e.snapshot.segmentTable, o.nameId));
|
|
@@ -1970,7 +1970,7 @@ function Hl(e, t) {
|
|
|
1970
1970
|
segments: i.length === 0 ? [] : i.split("/")
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1973
|
+
function s1(e, t, n) {
|
|
1974
1974
|
const r = L(e, t), o = Ft(e, n);
|
|
1975
1975
|
if (o != null) {
|
|
1976
1976
|
const h = L(e, o);
|
|
@@ -1994,7 +1994,7 @@ function o1(e, t, n) {
|
|
|
1994
1994
|
parentId: c
|
|
1995
1995
|
};
|
|
1996
1996
|
}
|
|
1997
|
-
function
|
|
1997
|
+
function l1(e, t, n, r) {
|
|
1998
1998
|
if (n === "skip") return "skip";
|
|
1999
1999
|
if (n === "error") throw new Error(`Destination already exists: "${Se(e, t)}"`);
|
|
2000
2000
|
const o = L(e, t);
|
|
@@ -2013,7 +2013,7 @@ function uc(e, t) {
|
|
|
2013
2013
|
if (o == null) break;
|
|
2014
2014
|
const i = L(e, o.nodeId);
|
|
2015
2015
|
if (o.visitedChildren || !z(i)) {
|
|
2016
|
-
z(i) && e.snapshot.directories.delete(o.nodeId), Ti(i, 4), e.pathCacheByNodeId.delete(o.nodeId), e.collapsedDirectoryIds.delete(o.nodeId) && (e.hasCollapsedDirectoryOverrides = e.collapsedDirectoryIds.size > 0), e.expandedDirectoryIds.delete(o.nodeId),
|
|
2016
|
+
z(i) && e.snapshot.directories.delete(o.nodeId), Ti(i, 4), e.pathCacheByNodeId.delete(o.nodeId), e.collapsedDirectoryIds.delete(o.nodeId) && (e.hasCollapsedDirectoryOverrides = e.collapsedDirectoryIds.size > 0), e.expandedDirectoryIds.delete(o.nodeId), Vf(e, o.nodeId), e.activeNodeCount--, n.push(o.nodeId);
|
|
2017
2017
|
continue;
|
|
2018
2018
|
}
|
|
2019
2019
|
r.push({
|
|
@@ -2039,7 +2039,7 @@ function Ys(e, t) {
|
|
|
2039
2039
|
Ti(r, 1), n = r.parentId === n ? null : r.parentId;
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function a1(e, t) {
|
|
2043
2043
|
let n = e.snapshot.rootId;
|
|
2044
2044
|
for (const r of t) {
|
|
2045
2045
|
const o = e.snapshot.segmentTable.idByValue.get(r);
|
|
@@ -2051,7 +2051,7 @@ function s1(e, t) {
|
|
|
2051
2051
|
return n;
|
|
2052
2052
|
}
|
|
2053
2053
|
function jn(e, t) {
|
|
2054
|
-
const n =
|
|
2054
|
+
const n = c1(e, t);
|
|
2055
2055
|
if (n == null) return null;
|
|
2056
2056
|
const r = ir(e, n), o = L(e, r), i = n === r ? null : Ci(e, n).map((l) => Se(e, l));
|
|
2057
2057
|
return JSON.stringify({
|
|
@@ -2071,7 +2071,7 @@ function hc(e, t) {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
return !1;
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function c1(e, t) {
|
|
2075
2075
|
let n = t;
|
|
2076
2076
|
for (; n != null; ) {
|
|
2077
2077
|
const r = L(e, n);
|
|
@@ -2083,11 +2083,11 @@ function l1(e, t) {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
function fc(e, t) {
|
|
2085
2085
|
const n = L(e, t);
|
|
2086
|
-
if (
|
|
2086
|
+
if (cf(n, (t === e.snapshot.rootId ? -1 : on(L(e, n.parentId))) + 1), !z(n)) return;
|
|
2087
2087
|
const r = Ce(e, t);
|
|
2088
2088
|
for (const o of r.childIds) fc(e, o);
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function u1(e, t, n) {
|
|
2091
2091
|
let r = n;
|
|
2092
2092
|
for (; r != null; ) {
|
|
2093
2093
|
if (r === t) return !0;
|
|
@@ -2131,7 +2131,7 @@ function ql(e, t, n, r) {
|
|
|
2131
2131
|
}
|
|
2132
2132
|
n.visibleSubtreeCount = $r(e, t) != null ? l : dt(e, t, n) ? 1 + l : 1;
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function d1(e, t, n) {
|
|
2135
2135
|
const r = Se(e, t);
|
|
2136
2136
|
return r.length === 0 ? n : `${r}${n}`;
|
|
2137
2137
|
}
|
|
@@ -2142,25 +2142,25 @@ function _i(e, t) {
|
|
|
2142
2142
|
const n = e.snapshot.nodes[t];
|
|
2143
2143
|
return !Br(n) || !z(n) || $e(n, 2) ? null : n;
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2145
|
+
function h1(e) {
|
|
2146
2146
|
let t = 0;
|
|
2147
2147
|
for (const [n, r] of e.pathCacheByNodeId)
|
|
2148
2148
|
r.version === e.pathCacheVersion && Br(e.snapshot.nodes[n]) && (t += 1);
|
|
2149
2149
|
return t;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function f1(e) {
|
|
2152
2152
|
return Math.max(0, e.valueById.length - 1);
|
|
2153
2153
|
}
|
|
2154
2154
|
function Ol(e) {
|
|
2155
2155
|
return {
|
|
2156
2156
|
activeNodeCount: e.activeNodeCount,
|
|
2157
|
-
cachedPathEntryCount:
|
|
2157
|
+
cachedPathEntryCount: h1(e),
|
|
2158
2158
|
loadInfoEntryCount: e.directoryLoadInfoById.size,
|
|
2159
|
-
segmentCount:
|
|
2159
|
+
segmentCount: f1(e.snapshot.segmentTable),
|
|
2160
2160
|
totalNodeSlotCount: Math.max(0, e.snapshot.nodes.length - 1)
|
|
2161
2161
|
};
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2163
|
+
function p1(e, t, n, r) {
|
|
2164
2164
|
return {
|
|
2165
2165
|
activeNodeCountAfter: r.activeNodeCount,
|
|
2166
2166
|
activeNodeCountBefore: n.activeNodeCount,
|
|
@@ -2226,13 +2226,13 @@ function vc(e, t) {
|
|
|
2226
2226
|
});
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function m1(e) {
|
|
2230
2230
|
e.pathCacheVersion += 1, e.pathCacheByNodeId.clear(), e.pathCacheByNodeId.set(e.snapshot.rootId, {
|
|
2231
2231
|
path: "",
|
|
2232
2232
|
version: e.pathCacheVersion
|
|
2233
2233
|
});
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function g1(e) {
|
|
2236
2236
|
const t = e.snapshot.segmentTable, n = nc();
|
|
2237
2237
|
for (const r of e.snapshot.nodes)
|
|
2238
2238
|
if (Br(r)) {
|
|
@@ -2244,7 +2244,7 @@ function p1(e) {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
e.snapshot.segmentTable = n;
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2247
|
+
function v1(e) {
|
|
2248
2248
|
for (const [t, n] of e.snapshot.directories) {
|
|
2249
2249
|
const r = e.snapshot.nodes[t];
|
|
2250
2250
|
if (!Br(r) || !z(r)) {
|
|
@@ -2258,7 +2258,7 @@ function m1(e) {
|
|
|
2258
2258
|
n.childIds = o, n.childIdByNameId = new Map(o.map((i) => [L(e, i).nameId, i])), n.childPositionById = new Map(o.map((i, l) => [i, l])), xi(e.snapshot.nodes, n);
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function y1(e) {
|
|
2262
2262
|
let t = e.snapshot.nodes.length - 1;
|
|
2263
2263
|
for (; t > e.snapshot.rootId; ) {
|
|
2264
2264
|
const n = e.snapshot.nodes[t];
|
|
@@ -2267,12 +2267,12 @@ function g1(e) {
|
|
|
2267
2267
|
}
|
|
2268
2268
|
e.snapshot.nodes.length = t + 1;
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function b1(e) {
|
|
2271
2271
|
const t = pc(e), n = mc(e);
|
|
2272
|
-
R(e.instrumentation, "store.cleanup.stable.clearPathCaches", () =>
|
|
2272
|
+
R(e.instrumentation, "store.cleanup.stable.clearPathCaches", () => m1(e)), R(e.instrumentation, "store.cleanup.stable.rebuildSegmentTable", () => g1(e)), R(e.instrumentation, "store.cleanup.stable.rebuildDirectoryIndexes", () => v1(e)), R(e.instrumentation, "store.cleanup.stable.trimTrailingRemovedNodeSlots", () => y1(e)), R(e.instrumentation, "store.cleanup.stable.restoreExpansionOverrides", () => gc(e, t)), R(e.instrumentation, "store.cleanup.stable.restoreDirectoryLoadInfos", () => vc(e, n)), R(e.instrumentation, "store.cleanup.stable.recomputeCounts", () => Ws(e, e.snapshot.rootId));
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2275
|
-
const t = pc(e), n = mc(e), r = R(e.instrumentation, "store.cleanup.aggressive.listPaths", () => ac(e)), o =
|
|
2274
|
+
function I1(e) {
|
|
2275
|
+
const t = pc(e), n = mc(e), r = R(e.instrumentation, "store.cleanup.aggressive.listPaths", () => ac(e)), o = uf({ ...e.snapshot.options }, e.instrumentation), i = R(e.instrumentation, "store.cleanup.aggressive.rebuildSnapshot", () => {
|
|
2276
2276
|
const l = new ic(o);
|
|
2277
2277
|
return l.appendPaths(r), l.finish();
|
|
2278
2278
|
});
|
|
@@ -2281,18 +2281,18 @@ function y1(e) {
|
|
|
2281
2281
|
version: 0
|
|
2282
2282
|
}]]), e.pathCacheVersion = 0, R(e.instrumentation, "store.cleanup.aggressive.restoreExpansionOverrides", () => gc(e, t)), R(e.instrumentation, "store.cleanup.aggressive.restoreDirectoryLoadInfos", () => vc(e, n)), R(e.instrumentation, "store.cleanup.aggressive.recomputeCounts", () => Ws(e, e.snapshot.rootId));
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function w1(e) {
|
|
2285
2285
|
for (const t of e.directoryLoadInfoById.values()) if (t.state === "loading" && t.activeAttemptId != null) return !0;
|
|
2286
2286
|
return !1;
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function x1(e, t) {
|
|
2289
2289
|
const n = Ol(e);
|
|
2290
|
-
t === "stable" ? R(e.instrumentation, "store.cleanup.stable", () =>
|
|
2290
|
+
t === "stable" ? R(e.instrumentation, "store.cleanup.stable", () => b1(e)) : R(e.instrumentation, "store.cleanup.aggressive", () => I1(e));
|
|
2291
2291
|
const r = Ol(e);
|
|
2292
|
-
return
|
|
2292
|
+
return p1(t, t === "stable", n, r);
|
|
2293
2293
|
}
|
|
2294
|
-
const
|
|
2295
|
-
function
|
|
2294
|
+
const S1 = 64;
|
|
2295
|
+
function C1(e, t) {
|
|
2296
2296
|
const n = t + 2;
|
|
2297
2297
|
if (n <= e.length) return e;
|
|
2298
2298
|
let r = e.length;
|
|
@@ -2307,7 +2307,7 @@ function yc(e, t, n, r) {
|
|
|
2307
2307
|
const o = L(e, t.terminalNodeId), i = Math.max(1, o.visibleSubtreeCount);
|
|
2308
2308
|
return Math.min(r - 1, n + i - 1);
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function _1(e, t, n, r) {
|
|
2311
2311
|
return {
|
|
2312
2312
|
ancestorPaths: r,
|
|
2313
2313
|
index: t.index,
|
|
@@ -2320,9 +2320,9 @@ function S1(e, t, n, r) {
|
|
|
2320
2320
|
function bc(e, t, n, r, o, i) {
|
|
2321
2321
|
const l = Ce(e, t), { childIndex: a, childVisibleIndex: c, localVisibleIndex: h } = Zi(e.snapshot.nodes, l, n), p = l.childIds[a];
|
|
2322
2322
|
if (p == null) throw new Error(`Visible index ${String(n)} is out of range`);
|
|
2323
|
-
return
|
|
2323
|
+
return k1(e, p, h, r + c, o + 1, a, l.childIds.length, i);
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function k1(e, t, n, r, o, i, l, a) {
|
|
2326
2326
|
if (!z(L(e, t))) {
|
|
2327
2327
|
if (n === 0) return {
|
|
2328
2328
|
ancestors: a,
|
|
@@ -2354,7 +2354,7 @@ function C1(e, t, n, r, o, i, l, a) {
|
|
|
2354
2354
|
setSize: l
|
|
2355
2355
|
}]);
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function P1(e, t) {
|
|
2358
2358
|
const n = Ye(e);
|
|
2359
2359
|
if (t < 0 || t >= n) return null;
|
|
2360
2360
|
const r = bc(e, e.snapshot.rootId, t, 0, -1, []), o = r.ancestors.map((l) => Se(e, l.cursor.terminalNodeId));
|
|
@@ -2365,7 +2365,7 @@ function _1(e, t) {
|
|
|
2365
2365
|
if (i != null) return i;
|
|
2366
2366
|
const l = [], a = [];
|
|
2367
2367
|
for (const c of r.ancestors) {
|
|
2368
|
-
const h =
|
|
2368
|
+
const h = _1(e, c, n, [...a]);
|
|
2369
2369
|
l.push(h), a.push(h.row.path);
|
|
2370
2370
|
}
|
|
2371
2371
|
return i = l, i;
|
|
@@ -2377,12 +2377,12 @@ function _1(e, t) {
|
|
|
2377
2377
|
subtreeEndIndex: yc(e, r.cursor, r.index, n)
|
|
2378
2378
|
};
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2380
|
+
function E1(e, t, n) {
|
|
2381
2381
|
const r = e.instrumentation, o = Ye(e);
|
|
2382
2382
|
if (o <= 0 || n < t) return [];
|
|
2383
2383
|
const i = Math.max(0, Math.min(t, o - 1)), l = Math.max(i, Math.min(n, o - 1));
|
|
2384
2384
|
if (r == null) {
|
|
2385
|
-
if (i === 0) return
|
|
2385
|
+
if (i === 0) return V1(e, l + 1);
|
|
2386
2386
|
const g = [];
|
|
2387
2387
|
let u = jl(e, i);
|
|
2388
2388
|
for (let I = i; I <= l && u != null; I++) {
|
|
@@ -2403,10 +2403,10 @@ function Ic(e, t = Ye(e)) {
|
|
|
2403
2403
|
const n = e.instrumentation;
|
|
2404
2404
|
return n == null ? Wl(e, t) : R(n, "store.getVisibleTreeProjection", () => Wl(e, t));
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2407
|
-
return
|
|
2406
|
+
function D1(e) {
|
|
2407
|
+
return R1(Ic(e));
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function M1(e, t) {
|
|
2410
2410
|
const n = Ft(e, t);
|
|
2411
2411
|
if (n == null || n === e.snapshot.rootId || z(L(e, n)) && ir(e, n) !== n) return null;
|
|
2412
2412
|
let r = 0, o = n;
|
|
@@ -2414,7 +2414,7 @@ function E1(e, t) {
|
|
|
2414
2414
|
for (; o !== l; ) {
|
|
2415
2415
|
const a = L(e, o).parentId, c = Ce(e, a), h = Di(c).get(o);
|
|
2416
2416
|
if (h == null) throw new Error(`Child ${String(o)} was not found in its parent index`);
|
|
2417
|
-
if (r +=
|
|
2417
|
+
if (r += sf(i, c, h), a !== l) {
|
|
2418
2418
|
const p = L(e, a), g = $r(e, a);
|
|
2419
2419
|
if (!dt(e, a, p) && g !== o) return null;
|
|
2420
2420
|
ir(e, a) === a && (r += 1);
|
|
@@ -2423,23 +2423,23 @@ function E1(e, t) {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
return r;
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2426
|
+
function T1(e, t) {
|
|
2427
2427
|
const n = Ft(e, t);
|
|
2428
2428
|
if (n == null) throw new Error(`Path does not exist: "${t}"`);
|
|
2429
2429
|
const r = L(e, n);
|
|
2430
2430
|
if (!z(r)) throw new Error(`Path is not a directory: "${t}"`);
|
|
2431
|
-
return dt(e, n, r) ? null : (Io(e, n, !0, r), sr(e, n),
|
|
2431
|
+
return dt(e, n, r) ? null : (Io(e, n, !0, r), sr(e, n), Hf({
|
|
2432
2432
|
affectedAncestorIds: Kt(e, n),
|
|
2433
2433
|
affectedNodeIds: [n],
|
|
2434
2434
|
path: t
|
|
2435
2435
|
}));
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function N1(e, t) {
|
|
2438
2438
|
const n = Ft(e, t);
|
|
2439
2439
|
if (n == null) throw new Error(`Path does not exist: "${t}"`);
|
|
2440
2440
|
const r = L(e, n);
|
|
2441
2441
|
if (!z(r)) throw new Error(`Path is not a directory: "${t}"`);
|
|
2442
|
-
return dt(e, n, r) ? (Io(e, n, !1, r), sr(e, n),
|
|
2442
|
+
return dt(e, n, r) ? (Io(e, n, !1, r), sr(e, n), $f({
|
|
2443
2443
|
affectedAncestorIds: Kt(e, n),
|
|
2444
2444
|
affectedNodeIds: [n],
|
|
2445
2445
|
path: t
|
|
@@ -2483,7 +2483,7 @@ function xc(e, t, n) {
|
|
|
2483
2483
|
visibleDepth: n
|
|
2484
2484
|
};
|
|
2485
2485
|
}
|
|
2486
|
-
function
|
|
2486
|
+
function A1(e, t) {
|
|
2487
2487
|
const n = L(e, t);
|
|
2488
2488
|
if (!z(n)) return !0;
|
|
2489
2489
|
const r = n.parentId;
|
|
@@ -2506,10 +2506,10 @@ function Ul(e, t) {
|
|
|
2506
2506
|
if (c < 0) throw new Error(`Child ${String(r)} was not found in its parent index`);
|
|
2507
2507
|
const h = a.childIds[c + 1] ?? null;
|
|
2508
2508
|
if (h != null) return os(e, h, 0, o);
|
|
2509
|
-
|
|
2509
|
+
A1(e, r) && o--, r = l;
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function R1(e) {
|
|
2513
2513
|
const t = e.paths.length, n = new Array(t);
|
|
2514
2514
|
for (let r = 0; r < t; r += 1) {
|
|
2515
2515
|
const o = e.getParentIndex(r);
|
|
@@ -2531,7 +2531,7 @@ function N1(e) {
|
|
|
2531
2531
|
}
|
|
2532
2532
|
function Wl(e, t) {
|
|
2533
2533
|
const n = new Array(t), r = new Int32Array(t), o = new Int32Array(t), i = new Int32Array(t);
|
|
2534
|
-
let l = new Int32Array(
|
|
2534
|
+
let l = new Int32Array(S1);
|
|
2535
2535
|
l.fill(-1);
|
|
2536
2536
|
let a = 0;
|
|
2537
2537
|
const { nodes: c, directories: h, segmentTable: p } = e.snapshot, g = [[
|
|
@@ -2546,14 +2546,14 @@ function Wl(e, t) {
|
|
|
2546
2546
|
g.pop();
|
|
2547
2547
|
continue;
|
|
2548
2548
|
}
|
|
2549
|
-
const j = C[1], q = P.childIds[C[1]++],
|
|
2550
|
-
l =
|
|
2549
|
+
const j = C[1], q = P.childIds[C[1]++], oe = c[q], ye = C[2] + 1, ue = C[3];
|
|
2550
|
+
l = C1(l, ye);
|
|
2551
2551
|
let Ee, be = q;
|
|
2552
|
-
if (z(
|
|
2553
|
-
be = u ? ir(e, q) : q, Ee = be === q ? `${ue}${x[
|
|
2552
|
+
if (z(oe))
|
|
2553
|
+
be = u ? ir(e, q) : q, Ee = be === q ? `${ue}${x[oe.nameId]}/` : Se(e, be);
|
|
2554
2554
|
else {
|
|
2555
2555
|
const _e = I.get(q);
|
|
2556
|
-
Ee = _e != null && _e.version === y ? _e.path : `${ue}${x[
|
|
2556
|
+
Ee = _e != null && _e.version === y ? _e.path : `${ue}${x[oe.nameId]}`;
|
|
2557
2557
|
}
|
|
2558
2558
|
r[a] = l[ye], n[a] = Ee, o[a] = j, i[a] = P.childIds.length, l[ye + 1] = a, a += 1;
|
|
2559
2559
|
const pe = c[be];
|
|
@@ -2583,7 +2583,7 @@ function Wl(e, t) {
|
|
|
2583
2583
|
}
|
|
2584
2584
|
};
|
|
2585
2585
|
}
|
|
2586
|
-
function
|
|
2586
|
+
function V1(e, t) {
|
|
2587
2587
|
const n = new Array(t);
|
|
2588
2588
|
let r = 0;
|
|
2589
2589
|
const { nodes: o, directories: i, segmentTable: l } = e.snapshot, a = [[
|
|
@@ -2631,7 +2631,7 @@ function A1(e, t) {
|
|
|
2631
2631
|
return r < t && (n.length = r), n;
|
|
2632
2632
|
}
|
|
2633
2633
|
function xo(e, t) {
|
|
2634
|
-
const n = L(e, t.terminalNodeId), r = z(n) ?
|
|
2634
|
+
const n = L(e, t.terminalNodeId), r = z(n) ? F1(e, t) : null, o = Se(e, t.terminalNodeId), i = sn(e.snapshot.segmentTable, n.nameId), l = z(n) && Ce(e, t.terminalNodeId).childIds.length > 0, a = t.headNodeId !== t.terminalNodeId, c = e.instrumentation, h = a ? c == null ? Ci(e, t.headNodeId).map((p) => {
|
|
2635
2635
|
const g = L(e, p);
|
|
2636
2636
|
return {
|
|
2637
2637
|
isTerminal: p === t.terminalNodeId,
|
|
@@ -2662,7 +2662,7 @@ function xo(e, t) {
|
|
|
2662
2662
|
path: o
|
|
2663
2663
|
};
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function F1(e, t) {
|
|
2666
2666
|
if (t.headNodeId === t.terminalNodeId) return wo(e, t.terminalNodeId);
|
|
2667
2667
|
const n = Ci(e, t.headNodeId);
|
|
2668
2668
|
let r = !1, o = !1;
|
|
@@ -2678,7 +2678,7 @@ function R1(e, t) {
|
|
|
2678
2678
|
return o ? "error" : r ? "unloaded" : "loaded";
|
|
2679
2679
|
}
|
|
2680
2680
|
const Kl = 8;
|
|
2681
|
-
function
|
|
2681
|
+
function L1(e) {
|
|
2682
2682
|
const { nodes: t, directories: n, rootId: r, options: o } = e, i = t.length, l = new Int32Array(i), a = new Int32Array(i), c = new Int32Array(i), h = new Int32Array(i), p = new Int32Array(i), g = new Int32Array(i), u = new Int32Array(i);
|
|
2683
2683
|
for (let _ = 0; _ < i; _ += 1) {
|
|
2684
2684
|
const E = t[_];
|
|
@@ -2708,7 +2708,7 @@ function V1(e) {
|
|
|
2708
2708
|
childIdsFlat: y
|
|
2709
2709
|
};
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2711
|
+
function B1(e) {
|
|
2712
2712
|
const { nodeCount: t, rootId: n, flattenEmptyDirectories: r, depthAndFlags: o, subtreeNodeCount: i, visibleSubtreeCount: l, childStart: a, childCount: c, childIdsFlat: h } = e;
|
|
2713
2713
|
for (let y = t - 1; y >= 1; y -= 1) {
|
|
2714
2714
|
if (!(o[y] & Kl)) continue;
|
|
@@ -2730,7 +2730,7 @@ function F1(e) {
|
|
|
2730
2730
|
}
|
|
2731
2731
|
i[n] = 1 + u, l[n] = I;
|
|
2732
2732
|
}
|
|
2733
|
-
function
|
|
2733
|
+
function z1(e) {
|
|
2734
2734
|
const { directories: t, nodes: n, options: r, rootId: o, presortedDirectoryNodeIds: i } = e.snapshot, l = r.flattenEmptyDirectories === !0, a = (I) => {
|
|
2735
2735
|
const y = n[I];
|
|
2736
2736
|
if (y == null || !z(y)) return;
|
|
@@ -2766,9 +2766,9 @@ function L1(e) {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
h.totalChildSubtreeNodeCount = g, h.totalChildVisibleSubtreeCount = u, Lr(n, h), c.subtreeNodeCount = 1 + g, c.visibleSubtreeCount = u;
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2770
|
-
const { directories: t, nodes: n, rootId: r } = e.snapshot, o =
|
|
2771
|
-
|
|
2769
|
+
function H1(e) {
|
|
2770
|
+
const { directories: t, nodes: n, rootId: r } = e.snapshot, o = L1(e.snapshot);
|
|
2771
|
+
B1(o);
|
|
2772
2772
|
const i = o.subtreeNodeCount, l = o.visibleSubtreeCount;
|
|
2773
2773
|
for (let a = 0; a < n.length; a += 1) {
|
|
2774
2774
|
const c = n[a];
|
|
@@ -2786,7 +2786,7 @@ function B1(e) {
|
|
|
2786
2786
|
c.totalChildSubtreeNodeCount = g, c.totalChildVisibleSubtreeCount = u, (a === r || p >= 128) && Lr(n, c);
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2789
|
+
function $1(e) {
|
|
2790
2790
|
return e.initialExpansion === "open" && (e.initialExpandedPaths == null || e.initialExpandedPaths.length === 0);
|
|
2791
2791
|
}
|
|
2792
2792
|
var w, xr, Sc = (xr = class {
|
|
@@ -2794,25 +2794,25 @@ var w, xr, Sc = (xr = class {
|
|
|
2794
2794
|
M(this, w);
|
|
2795
2795
|
const n = qs(t), r = R(n, "store.builder.create", () => new ic(t));
|
|
2796
2796
|
if (t.preparedInput != null) {
|
|
2797
|
-
const a =
|
|
2798
|
-
a != null ? r.appendPresortedPaths(a,
|
|
2797
|
+
const a = _f(t.preparedInput);
|
|
2798
|
+
a != null ? r.appendPresortedPaths(a, kf(t.preparedInput)) : r.appendPreparedPaths(Cf(t.preparedInput), !1);
|
|
2799
2799
|
} else {
|
|
2800
2800
|
const a = t.paths ?? [];
|
|
2801
2801
|
t.presorted === !0 ? r.appendPaths(a) : r.appendPreparedPaths(R(n, "store.preparePathEntries", () => Us(a, t)));
|
|
2802
2802
|
}
|
|
2803
2803
|
const o = R(n, "store.builder.finish", () => r.finish({ skipSubtreeCountPass: !0 })), i = R(n, "store.state.detectAllDirectoriesExpanded", () => (t.initialExpansion ?? "closed") === "closed" && r.didMatchAllInitialExpandedPaths());
|
|
2804
|
-
b(this, w, R(n, "store.state.create", () =>
|
|
2804
|
+
b(this, w, R(n, "store.state.create", () => Pf(o, i ? "open" : t.initialExpansion ?? "closed", n))), i && (s(this, w).collapseNewDirectoriesByDefault = !0);
|
|
2805
2805
|
const l = i ? s(this, w).snapshot.directories.size - 1 : R(n, "store.state.initializeExpandedPaths", () => this.initializeExpandedPaths(t.initialExpandedPaths));
|
|
2806
|
-
i ||
|
|
2806
|
+
i || $1(t) || (t.initialExpansion ?? "closed") === "closed" && l === s(this, w).snapshot.directories.size - 1 || (t.initialExpandedPaths?.length ?? 0) > 0 && R(n, "store.state.checkAllDirectoriesExpanded", () => this.hasAllDirectoriesExpanded()) ? t.useSoaCountSweep === !0 ? R(n, "store.state.initializeOpenVisibleCountsViaSoa", () => H1(s(this, w))) : R(n, "store.state.initializeOpenVisibleCounts", () => z1(s(this, w))) : R(n, "store.state.recomputeCounts", () => Ws(s(this, w), s(this, w).snapshot.rootId));
|
|
2807
2807
|
}
|
|
2808
2808
|
static preparePaths(t, n = {}) {
|
|
2809
|
-
return
|
|
2809
|
+
return wf(t, n);
|
|
2810
2810
|
}
|
|
2811
2811
|
static prepareInput(t, n = {}) {
|
|
2812
|
-
return
|
|
2812
|
+
return xf(t, n);
|
|
2813
2813
|
}
|
|
2814
2814
|
static preparePresortedInput(t) {
|
|
2815
|
-
return
|
|
2815
|
+
return Sf(t);
|
|
2816
2816
|
}
|
|
2817
2817
|
list(t) {
|
|
2818
2818
|
return R(s(this, w).instrumentation, "store.list", () => ac(s(this, w), t));
|
|
@@ -2836,7 +2836,7 @@ var w, xr, Sc = (xr = class {
|
|
|
2836
2836
|
});
|
|
2837
2837
|
}
|
|
2838
2838
|
batch(t) {
|
|
2839
|
-
|
|
2839
|
+
Gf(s(this, w), () => {
|
|
2840
2840
|
if (typeof t == "function") {
|
|
2841
2841
|
t(this);
|
|
2842
2842
|
return;
|
|
@@ -2858,13 +2858,13 @@ var w, xr, Sc = (xr = class {
|
|
|
2858
2858
|
return R(s(this, w).instrumentation, "store.getVisibleCount", () => Ye(s(this, w)));
|
|
2859
2859
|
}
|
|
2860
2860
|
getVisibleSlice(t, n) {
|
|
2861
|
-
return R(s(this, w).instrumentation, "store.getVisibleSlice", () =>
|
|
2861
|
+
return R(s(this, w).instrumentation, "store.getVisibleSlice", () => E1(s(this, w), t, n));
|
|
2862
2862
|
}
|
|
2863
2863
|
getVisibleRowContext(t) {
|
|
2864
|
-
return R(s(this, w).instrumentation, "store.getVisibleRowContext", () =>
|
|
2864
|
+
return R(s(this, w).instrumentation, "store.getVisibleRowContext", () => P1(s(this, w), t));
|
|
2865
2865
|
}
|
|
2866
2866
|
getVisibleTreeProjection() {
|
|
2867
|
-
return
|
|
2867
|
+
return D1(s(this, w));
|
|
2868
2868
|
}
|
|
2869
2869
|
getVisibleTreeProjectionData(t) {
|
|
2870
2870
|
return Ic(s(this, w), t);
|
|
@@ -2874,7 +2874,7 @@ var w, xr, Sc = (xr = class {
|
|
|
2874
2874
|
* index. Returns null when the path is unknown or currently hidden.
|
|
2875
2875
|
*/
|
|
2876
2876
|
getVisibleIndex(t) {
|
|
2877
|
-
return R(s(this, w).instrumentation, "store.getVisibleIndex", () =>
|
|
2877
|
+
return R(s(this, w).instrumentation, "store.getVisibleIndex", () => M1(s(this, w), t));
|
|
2878
2878
|
}
|
|
2879
2879
|
/**
|
|
2880
2880
|
* Resolves a lookup path to the store's canonical path and item kind.
|
|
@@ -2901,18 +2901,18 @@ var w, xr, Sc = (xr = class {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
expand(t) {
|
|
2903
2903
|
R(s(this, w).instrumentation, "store.expand", () => {
|
|
2904
|
-
const n = Ye(s(this, w)), r =
|
|
2904
|
+
const n = Ye(s(this, w)), r = T1(s(this, w), t);
|
|
2905
2905
|
r != null && jt(s(this, w), pt(s(this, w), n, r));
|
|
2906
2906
|
});
|
|
2907
2907
|
}
|
|
2908
2908
|
collapse(t) {
|
|
2909
2909
|
R(s(this, w).instrumentation, "store.collapse", () => {
|
|
2910
|
-
const n = Ye(s(this, w)), r =
|
|
2910
|
+
const n = Ye(s(this, w)), r = N1(s(this, w), t);
|
|
2911
2911
|
r != null && jt(s(this, w), pt(s(this, w), n, r));
|
|
2912
2912
|
});
|
|
2913
2913
|
}
|
|
2914
2914
|
on(t, n) {
|
|
2915
|
-
return
|
|
2915
|
+
return Ff(s(this, w), t, n);
|
|
2916
2916
|
}
|
|
2917
2917
|
getDirectoryLoadState(t) {
|
|
2918
2918
|
const n = this.requireDirectoryNodeId(t);
|
|
@@ -2923,7 +2923,7 @@ var w, xr, Sc = (xr = class {
|
|
|
2923
2923
|
const n = this.requireDirectoryNodeId(t);
|
|
2924
2924
|
if (Ce(s(this, w), n).childIds.length > 0) throw new Error(`Cannot mark a directory with known children as unloaded: "${t}"`);
|
|
2925
2925
|
const r = Ye(s(this, w));
|
|
2926
|
-
|
|
2926
|
+
Tf(s(this, w), n), jt(s(this, w), pt(s(this, w), r, qf({
|
|
2927
2927
|
affectedAncestorIds: Kt(s(this, w), n),
|
|
2928
2928
|
affectedNodeIds: [n],
|
|
2929
2929
|
path: t,
|
|
@@ -2933,8 +2933,8 @@ var w, xr, Sc = (xr = class {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
beginChildLoad(t) {
|
|
2935
2935
|
return R(s(this, w).instrumentation, "store.beginChildLoad", () => {
|
|
2936
|
-
const n = this.requireDirectoryNodeId(t), r = Ye(s(this, w)), o =
|
|
2937
|
-
return jt(s(this, w), pt(s(this, w), r,
|
|
2936
|
+
const n = this.requireDirectoryNodeId(t), r = Ye(s(this, w)), o = Mf(s(this, w), n);
|
|
2937
|
+
return jt(s(this, w), pt(s(this, w), r, Of({
|
|
2938
2938
|
affectedAncestorIds: Kt(s(this, w), n),
|
|
2939
2939
|
affectedNodeIds: [n],
|
|
2940
2940
|
attemptId: o.attemptId,
|
|
@@ -2947,12 +2947,12 @@ var w, xr, Sc = (xr = class {
|
|
|
2947
2947
|
applyChildPatch(t, n) {
|
|
2948
2948
|
return R(s(this, w).instrumentation, "store.applyChildPatch", () => {
|
|
2949
2949
|
const r = this.resolveActiveDirectoryNodeId(t.nodeId);
|
|
2950
|
-
if (r == null || wo(s(this, w), r) !== "loading" || !
|
|
2950
|
+
if (r == null || wo(s(this, w), r) !== "loading" || !Af(s(this, w), r, t.attemptId)) return !1;
|
|
2951
2951
|
const o = Se(s(this, w), r);
|
|
2952
2952
|
this.validateChildPatch(o, n);
|
|
2953
2953
|
const i = Ye(s(this, w)), l = [];
|
|
2954
2954
|
for (const c of n.operations) {
|
|
2955
|
-
|
|
2955
|
+
q1(o, c);
|
|
2956
2956
|
const h = Ye(s(this, w));
|
|
2957
2957
|
switch (c.type) {
|
|
2958
2958
|
case "add":
|
|
@@ -2969,7 +2969,7 @@ var w, xr, Sc = (xr = class {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
2971
|
const a = l.some((c) => c.projectionChanged) || this.isDirectoryProjectionVisible(r);
|
|
2972
|
-
return jt(s(this, w), pt(s(this, w), i,
|
|
2972
|
+
return jt(s(this, w), pt(s(this, w), i, jf({
|
|
2973
2973
|
affectedAncestorIds: Kt(s(this, w), r),
|
|
2974
2974
|
affectedNodeIds: [r],
|
|
2975
2975
|
attemptId: t.attemptId,
|
|
@@ -2983,8 +2983,8 @@ var w, xr, Sc = (xr = class {
|
|
|
2983
2983
|
return R(s(this, w).instrumentation, "store.completeChildLoad", () => {
|
|
2984
2984
|
const n = this.resolveActiveDirectoryNodeId(t.nodeId);
|
|
2985
2985
|
if (n == null) return !1;
|
|
2986
|
-
const r = Ye(s(this, w)), o =
|
|
2987
|
-
return jt(s(this, w), pt(s(this, w), r,
|
|
2986
|
+
const r = Ye(s(this, w)), o = Nf(s(this, w), n, t.attemptId);
|
|
2987
|
+
return jt(s(this, w), pt(s(this, w), r, Uf({
|
|
2988
2988
|
affectedAncestorIds: Kt(s(this, w), n),
|
|
2989
2989
|
affectedNodeIds: [n],
|
|
2990
2990
|
attemptId: t.attemptId,
|
|
@@ -2998,8 +2998,8 @@ var w, xr, Sc = (xr = class {
|
|
|
2998
2998
|
return R(s(this, w).instrumentation, "store.failChildLoad", () => {
|
|
2999
2999
|
const r = this.resolveActiveDirectoryNodeId(t.nodeId);
|
|
3000
3000
|
if (r == null) return !1;
|
|
3001
|
-
const o = Ye(s(this, w)), i =
|
|
3002
|
-
return jt(s(this, w), pt(s(this, w), o,
|
|
3001
|
+
const o = Ye(s(this, w)), i = Rf(s(this, w), r, t.attemptId, n);
|
|
3002
|
+
return jt(s(this, w), pt(s(this, w), o, Wf({
|
|
3003
3003
|
affectedAncestorIds: Kt(s(this, w), r),
|
|
3004
3004
|
affectedNodeIds: [r],
|
|
3005
3005
|
attemptId: t.attemptId,
|
|
@@ -3013,9 +3013,9 @@ var w, xr, Sc = (xr = class {
|
|
|
3013
3013
|
cleanup(t = {}) {
|
|
3014
3014
|
return R(s(this, w).instrumentation, "store.cleanup", () => {
|
|
3015
3015
|
if (s(this, w).transactionStack.length > 0) throw new Error("Cleanup cannot run during an open batch or transaction.");
|
|
3016
|
-
if (
|
|
3017
|
-
const n = Ye(s(this, w)), r =
|
|
3018
|
-
return jt(s(this, w), pt(s(this, w), n,
|
|
3016
|
+
if (w1(s(this, w))) throw new Error("Cleanup cannot run while directory loads are active.");
|
|
3017
|
+
const n = Ye(s(this, w)), r = x1(s(this, w), t.mode ?? "stable");
|
|
3018
|
+
return jt(s(this, w), pt(s(this, w), n, Kf({
|
|
3019
3019
|
...r,
|
|
3020
3020
|
affectedAncestorIds: [],
|
|
3021
3021
|
affectedNodeIds: [],
|
|
@@ -3056,16 +3056,16 @@ var w, xr, Sc = (xr = class {
|
|
|
3056
3056
|
let x = I === 0 ? s(this, w).snapshot.rootId : o[I - 1] ?? s(this, w).snapshot.rootId, _ = I, E = !0, D = y;
|
|
3057
3057
|
for (; D <= u; ) {
|
|
3058
3058
|
const k = g.indexOf("/", D), C = k === -1 || k > u ? u : k, P = g.slice(D, C), j = Ce(s(this, w), x).childIds, q = _ === I ? r[_] ?? 0 : 0;
|
|
3059
|
-
let
|
|
3059
|
+
let oe = q, ye;
|
|
3060
3060
|
const ue = p.get(P) ?? Bo(P);
|
|
3061
3061
|
p.set(P, ue);
|
|
3062
3062
|
const Ee = (be, pe) => {
|
|
3063
|
-
for (
|
|
3064
|
-
const _e = j[
|
|
3063
|
+
for (oe = be; oe < pe; oe += 1) {
|
|
3064
|
+
const _e = j[oe], Xe = h[_e], ke = c[Xe.nameId];
|
|
3065
3065
|
if (ke === P)
|
|
3066
3066
|
return ye = _e, !0;
|
|
3067
|
-
const
|
|
3068
|
-
if (
|
|
3067
|
+
const ae = Os(Ji(a, Xe.nameId), ue);
|
|
3068
|
+
if (ae > 0 || ae === 0 && ke > P) return !1;
|
|
3069
3069
|
}
|
|
3070
3070
|
return !1;
|
|
3071
3071
|
};
|
|
@@ -3077,7 +3077,7 @@ var w, xr, Sc = (xr = class {
|
|
|
3077
3077
|
E = !1;
|
|
3078
3078
|
break;
|
|
3079
3079
|
}
|
|
3080
|
-
if (r[_] =
|
|
3080
|
+
if (r[_] = oe, o[_] = ye, x = ye, _ += 1, C === u) break;
|
|
3081
3081
|
D = C + 1;
|
|
3082
3082
|
}
|
|
3083
3083
|
if (l = g, i = u, r.length = _, o.length = _, !E) {
|
|
@@ -3135,7 +3135,7 @@ var w, xr, Sc = (xr = class {
|
|
|
3135
3135
|
}).batch(n.operations);
|
|
3136
3136
|
}
|
|
3137
3137
|
}, w = new WeakMap(), xr);
|
|
3138
|
-
function
|
|
3138
|
+
function q1(e, t) {
|
|
3139
3139
|
switch (t.type) {
|
|
3140
3140
|
case "add":
|
|
3141
3141
|
case "remove":
|
|
@@ -3160,7 +3160,7 @@ const is = {
|
|
|
3160
3160
|
factor: 1.2
|
|
3161
3161
|
}
|
|
3162
3162
|
};
|
|
3163
|
-
function
|
|
3163
|
+
function O1(e, t) {
|
|
3164
3164
|
if (typeof e == "number") return {
|
|
3165
3165
|
itemHeight: t ?? is.default.itemHeight,
|
|
3166
3166
|
factor: e
|
|
@@ -4272,32 +4272,32 @@ function Yl(e) {
|
|
|
4272
4272
|
${e}
|
|
4273
4273
|
}`;
|
|
4274
4274
|
}
|
|
4275
|
-
function
|
|
4275
|
+
function j1(e) {
|
|
4276
4276
|
return `${_c}
|
|
4277
4277
|
@layer unsafe {
|
|
4278
4278
|
${e}
|
|
4279
4279
|
}`;
|
|
4280
4280
|
}
|
|
4281
4281
|
const Xl = /* @__PURE__ */ new WeakMap();
|
|
4282
|
-
function
|
|
4282
|
+
function U1(e) {
|
|
4283
4283
|
const t = Xl.get(e);
|
|
4284
4284
|
if (t != null) return t;
|
|
4285
4285
|
const n = document.createElement("div");
|
|
4286
|
-
n.setAttribute(
|
|
4286
|
+
n.setAttribute(Xh, "true");
|
|
4287
4287
|
const r = document.createElement("div");
|
|
4288
4288
|
r.style.position = "relative", r.style.height = "200%", n.appendChild(r), e.appendChild(n);
|
|
4289
4289
|
const o = Math.max(n.offsetWidth - n.clientWidth, 0);
|
|
4290
4290
|
return n.remove(), Xl.set(e, o), o;
|
|
4291
4291
|
}
|
|
4292
|
-
function
|
|
4292
|
+
function W1(e, t) {
|
|
4293
4293
|
if (!e.isConnected) return;
|
|
4294
|
-
const n =
|
|
4294
|
+
const n = U1(t);
|
|
4295
4295
|
if (n == null) return;
|
|
4296
4296
|
const r = t.querySelector(`style[${Pl}]`), o = r instanceof HTMLStyleElement ? r : document.createElement("style");
|
|
4297
|
-
r instanceof HTMLStyleElement || (o.setAttribute(Pl, ""), t.appendChild(o)), o.textContent = `:host { ${
|
|
4297
|
+
r instanceof HTMLStyleElement || (o.setAttribute(Pl, ""), t.appendChild(o)), o.textContent = `:host { ${Qh}: ${n}px; }`;
|
|
4298
4298
|
}
|
|
4299
4299
|
let ri;
|
|
4300
|
-
function
|
|
4300
|
+
function K1(e) {
|
|
4301
4301
|
if (typeof CSSStyleSheet < "u" && typeof CSSStyleSheet.prototype.replaceSync == "function" && "adoptedStyleSheets" in e) {
|
|
4302
4302
|
ri == null && (ri = new CSSStyleSheet(), ri.replaceSync(Yl(Gl)));
|
|
4303
4303
|
let t = !1;
|
|
@@ -4316,9 +4316,9 @@ function U1(e) {
|
|
|
4316
4316
|
}
|
|
4317
4317
|
}
|
|
4318
4318
|
function ss(e, t) {
|
|
4319
|
-
|
|
4319
|
+
G1(e, t), K1(t), W1(e, t);
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4321
|
+
function G1(e, t) {
|
|
4322
4322
|
const n = e.querySelector('template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]');
|
|
4323
4323
|
n instanceof HTMLTemplateElement && (t.childNodes.length > 0 || (t.appendChild(n.content.cloneNode(!0)), n.hasAttribute("shadowrootmode") && n.remove()));
|
|
4324
4324
|
}
|
|
@@ -4335,8 +4335,8 @@ if (typeof HTMLElement < "u" && customElements.get("file-tree-container") == nul
|
|
|
4335
4335
|
if (customElements.define(Cl, e), typeof document < "u") for (const t of Array.from(document.querySelectorAll(Cl)))
|
|
4336
4336
|
t instanceof HTMLElement && ss(t, t.shadowRoot ?? t.attachShadow({ mode: "open" }));
|
|
4337
4337
|
}
|
|
4338
|
-
const
|
|
4339
|
-
function
|
|
4338
|
+
const Y1 = (e) => e.startsWith("f::") ? e.slice(3) : e;
|
|
4339
|
+
function X1(e) {
|
|
4340
4340
|
const t = e.lastIndexOf("/");
|
|
4341
4341
|
return t < 0 ? {
|
|
4342
4342
|
parentPath: "",
|
|
@@ -4346,21 +4346,21 @@ function G1(e) {
|
|
|
4346
4346
|
baseName: e.slice(t + 1)
|
|
4347
4347
|
};
|
|
4348
4348
|
}
|
|
4349
|
-
function
|
|
4349
|
+
function Q1(e, t) {
|
|
4350
4350
|
return e === "" ? t : `${e}/${t}`;
|
|
4351
4351
|
}
|
|
4352
|
-
function
|
|
4353
|
-
const o =
|
|
4352
|
+
function Z1({ files: e, path: t, isFolder: n, nextBasename: r }) {
|
|
4353
|
+
const o = Y1(t), i = r.trim();
|
|
4354
4354
|
if (i.length === 0) return { error: "Name cannot be empty." };
|
|
4355
4355
|
if (i.includes("/")) return { error: 'Name cannot include "/".' };
|
|
4356
|
-
const { parentPath: l, baseName: a } =
|
|
4356
|
+
const { parentPath: l, baseName: a } = X1(o);
|
|
4357
4357
|
if (i === a) return {
|
|
4358
4358
|
nextFiles: e,
|
|
4359
4359
|
sourcePath: o,
|
|
4360
4360
|
destinationPath: o,
|
|
4361
4361
|
isFolder: n
|
|
4362
4362
|
};
|
|
4363
|
-
const c =
|
|
4363
|
+
const c = Q1(l, i), h = new Array(e.length), p = /* @__PURE__ */ new Set();
|
|
4364
4364
|
if (!n) {
|
|
4365
4365
|
const y = `${c}/`;
|
|
4366
4366
|
let x = !1;
|
|
@@ -4394,14 +4394,14 @@ function X1({ files: e, path: t, isFolder: n, nextBasename: r }) {
|
|
|
4394
4394
|
isFolder: n
|
|
4395
4395
|
};
|
|
4396
4396
|
}
|
|
4397
|
-
function
|
|
4397
|
+
function J1(e) {
|
|
4398
4398
|
return e.endsWith("/");
|
|
4399
4399
|
}
|
|
4400
|
-
function
|
|
4400
|
+
function e0(e) {
|
|
4401
4401
|
const t = e.endsWith("/") ? e.slice(0, -1) : e, n = t.lastIndexOf("/"), r = n < 0 ? t : t.slice(n + 1);
|
|
4402
4402
|
return e.endsWith("/") ? `${r}/` : r;
|
|
4403
4403
|
}
|
|
4404
|
-
function
|
|
4404
|
+
function t0(e) {
|
|
4405
4405
|
const t = [], n = /* @__PURE__ */ new Set();
|
|
4406
4406
|
for (const o of e)
|
|
4407
4407
|
n.has(o) || (n.add(o), t.push(o));
|
|
@@ -4420,10 +4420,10 @@ function J1(e) {
|
|
|
4420
4420
|
}
|
|
4421
4421
|
return t.filter((o) => r.has(o));
|
|
4422
4422
|
}
|
|
4423
|
-
function
|
|
4424
|
-
return t.includes(e) ?
|
|
4423
|
+
function n0(e, t) {
|
|
4424
|
+
return t.includes(e) ? t0(t) : [e];
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function r0(e, t) {
|
|
4427
4427
|
return e === t ? !0 : e == null || t == null ? !1 : e.kind === t.kind && e.directoryPath === t.directoryPath && e.flattenedSegmentPath === t.flattenedSegmentPath && e.hoveredPath === t.hoveredPath;
|
|
4428
4428
|
}
|
|
4429
4429
|
function Ql(e, t) {
|
|
@@ -4435,16 +4435,16 @@ function Ql(e, t) {
|
|
|
4435
4435
|
function Zl(e, t) {
|
|
4436
4436
|
if (t.kind !== "directory" || t.directoryPath == null) return !1;
|
|
4437
4437
|
for (const n of e)
|
|
4438
|
-
if (
|
|
4438
|
+
if (J1(n) && (t.directoryPath === n || t.directoryPath.startsWith(n)))
|
|
4439
4439
|
return !0;
|
|
4440
4440
|
return !1;
|
|
4441
4441
|
}
|
|
4442
|
-
function
|
|
4443
|
-
return t.kind === "root" || t.directoryPath == null ?
|
|
4442
|
+
function o0(e, t) {
|
|
4443
|
+
return t.kind === "root" || t.directoryPath == null ? e0(e) : t.directoryPath;
|
|
4444
4444
|
}
|
|
4445
|
-
function
|
|
4445
|
+
function i0(e, t) {
|
|
4446
4446
|
const n = e.map((r) => {
|
|
4447
|
-
const o =
|
|
4447
|
+
const o = o0(r, t);
|
|
4448
4448
|
return o === r ? null : {
|
|
4449
4449
|
from: r,
|
|
4450
4450
|
to: o,
|
|
@@ -4460,7 +4460,7 @@ function r0(e, t) {
|
|
|
4460
4460
|
}
|
|
4461
4461
|
};
|
|
4462
4462
|
}
|
|
4463
|
-
function
|
|
4463
|
+
function s0(e, t) {
|
|
4464
4464
|
if (e === t) return !0;
|
|
4465
4465
|
if (e.length !== t.length) return !1;
|
|
4466
4466
|
for (let n = 0; n < e.length; n += 1) if (e[n] !== t[n]) return !1;
|
|
@@ -4480,7 +4480,7 @@ function Jl(e, t, n) {
|
|
|
4480
4480
|
paths: i,
|
|
4481
4481
|
preparedInput: o
|
|
4482
4482
|
};
|
|
4483
|
-
if (!
|
|
4483
|
+
if (!s0(Sc.preparePaths(r, n == null ? {} : { sort: n }), i)) throw new Error(`FileTree ${t} received paths and preparedInput for different path lists`);
|
|
4484
4484
|
return {
|
|
4485
4485
|
paths: i,
|
|
4486
4486
|
preparedInput: o
|
|
@@ -4489,12 +4489,12 @@ function Jl(e, t, n) {
|
|
|
4489
4489
|
function ea(e) {
|
|
4490
4490
|
return e.operation === "add" || e.operation === "remove" || e.operation === "move" || e.operation === "batch";
|
|
4491
4491
|
}
|
|
4492
|
-
function
|
|
4492
|
+
function l0(e, t, n) {
|
|
4493
4493
|
if (e === t) return n;
|
|
4494
4494
|
const r = t.endsWith("/") ? t : `${t}/`;
|
|
4495
4495
|
return e.startsWith(r) ? `${n.endsWith("/") ? n : `${n}/`}${e.slice(r.length)}` : e;
|
|
4496
4496
|
}
|
|
4497
|
-
function
|
|
4497
|
+
function a0(e, t) {
|
|
4498
4498
|
if (e === t) return !0;
|
|
4499
4499
|
const n = t.endsWith("/") ? t : `${t}/`;
|
|
4500
4500
|
return e.startsWith(n);
|
|
@@ -4513,9 +4513,9 @@ function ho(e, t, n = !1) {
|
|
|
4513
4513
|
case "cleanup":
|
|
4514
4514
|
return e;
|
|
4515
4515
|
case "remove":
|
|
4516
|
-
return
|
|
4516
|
+
return a0(e, t.path) ? n ? e : null : e;
|
|
4517
4517
|
case "move":
|
|
4518
|
-
return
|
|
4518
|
+
return l0(e, t.from, t.to);
|
|
4519
4519
|
case "batch": {
|
|
4520
4520
|
let r = e;
|
|
4521
4521
|
for (const o of t.events)
|
|
@@ -4555,21 +4555,21 @@ function kc(e) {
|
|
|
4555
4555
|
};
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
4558
|
-
function
|
|
4558
|
+
function c0(e) {
|
|
4559
4559
|
return {
|
|
4560
4560
|
...ci(e),
|
|
4561
4561
|
events: e.events.filter((t) => t.operation === "add" || t.operation === "remove" || t.operation === "move").map((t) => kc(t)),
|
|
4562
4562
|
operation: "batch"
|
|
4563
4563
|
};
|
|
4564
4564
|
}
|
|
4565
|
-
function
|
|
4565
|
+
function u0(e) {
|
|
4566
4566
|
switch (e.operation) {
|
|
4567
4567
|
case "add":
|
|
4568
4568
|
case "remove":
|
|
4569
4569
|
case "move":
|
|
4570
4570
|
return kc(e);
|
|
4571
4571
|
case "batch":
|
|
4572
|
-
return
|
|
4572
|
+
return c0(e);
|
|
4573
4573
|
default:
|
|
4574
4574
|
return null;
|
|
4575
4575
|
}
|
|
@@ -4595,7 +4595,7 @@ function oi(e) {
|
|
|
4595
4595
|
return e.endsWith("/");
|
|
4596
4596
|
}
|
|
4597
4597
|
const Wi = (e) => e.toLowerCase();
|
|
4598
|
-
function
|
|
4598
|
+
function d0(e) {
|
|
4599
4599
|
const t = e.endsWith("/") ? e.slice(0, -1) : e, n = t.lastIndexOf("/");
|
|
4600
4600
|
return n < 0 ? t : t.slice(n + 1);
|
|
4601
4601
|
}
|
|
@@ -4605,16 +4605,16 @@ function na(e) {
|
|
|
4605
4605
|
function ra(e, t) {
|
|
4606
4606
|
return t && !e.endsWith("/") ? `${e}/` : e;
|
|
4607
4607
|
}
|
|
4608
|
-
const
|
|
4608
|
+
const h0 = (e) => {
|
|
4609
4609
|
const t = e.trim();
|
|
4610
4610
|
return t.length === 0 ? "" : (t.includes("\\") ? t.replaceAll("\\", "/") : t).toLowerCase();
|
|
4611
4611
|
};
|
|
4612
4612
|
/*! Modified by Qwen Code: display-only formatItemName and search; see package NOTICE. */
|
|
4613
|
-
const Pc = Symbol("FILE_TREE_RENAME_VIEW"),
|
|
4614
|
-
function
|
|
4613
|
+
const Pc = Symbol("FILE_TREE_RENAME_VIEW"), f0 = 512, p0 = 512;
|
|
4614
|
+
function m0(e) {
|
|
4615
4615
|
return e === "top" || e === "center" ? e : "nearest";
|
|
4616
4616
|
}
|
|
4617
|
-
function
|
|
4617
|
+
function g0(e, t, n) {
|
|
4618
4618
|
if (e === 0) return -1;
|
|
4619
4619
|
if (n != null) {
|
|
4620
4620
|
const r = t(n);
|
|
@@ -4629,7 +4629,7 @@ function p0(e, t, n) {
|
|
|
4629
4629
|
}
|
|
4630
4630
|
return 0;
|
|
4631
4631
|
}
|
|
4632
|
-
function
|
|
4632
|
+
function v0(e, t, n) {
|
|
4633
4633
|
if (e.paths.length === 0) return {
|
|
4634
4634
|
focusedIndex: -1,
|
|
4635
4635
|
getParentIndex: e.getParentIndex,
|
|
@@ -4646,14 +4646,14 @@ function m0(e, t, n) {
|
|
|
4646
4646
|
};
|
|
4647
4647
|
const r = n ?? ((o) => e.visibleIndexByPath.get(o) ?? null);
|
|
4648
4648
|
return {
|
|
4649
|
-
focusedIndex:
|
|
4649
|
+
focusedIndex: g0(e.paths.length, r, t),
|
|
4650
4650
|
getParentIndex: e.getParentIndex,
|
|
4651
4651
|
paths: e.paths,
|
|
4652
4652
|
posInSetByIndex: e.posInSetByIndex,
|
|
4653
4653
|
setSizeByIndex: e.setSizeByIndex
|
|
4654
4654
|
};
|
|
4655
4655
|
}
|
|
4656
|
-
var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po, kr, Pr, _t, Eo, Do, Mo, To, Oe, mt, rn, hn, er, tr, nr, Fe, rr, Bn, Rt, zn, or, Pi, ut, he, Hn, O, Er, Dr, je, $n, f, Ec, Dc, Mc, Tc, En, ls, ui, as, cs, us, ds, hs, St, Nc, Ac, Rc, di, hi, Vc, fs, Fc, fo, Lc, fi, Bc, ps, ms, zc, Ut, Hc, gs, po, vs, yr, ys, qe, bs, Is, ws, Dn, pi, un, br, Wt, tn, $c, xs, Ss, Mr,
|
|
4656
|
+
var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po, kr, Pr, _t, Eo, Do, Mo, To, Oe, mt, rn, hn, er, tr, nr, Fe, rr, Bn, Rt, zn, or, Pi, ut, he, Hn, O, Er, Dr, je, $n, f, Ec, Dc, Mc, Tc, En, ls, ui, as, cs, us, ds, hs, St, Nc, Ac, Rc, di, hi, Vc, fs, Fc, fo, Lc, fi, Bc, ps, ms, zc, Ut, Hc, gs, po, vs, yr, ys, qe, bs, Is, ws, Dn, pi, un, br, Wt, tn, $c, xs, Ss, Mr, y0 = (Mr = class {
|
|
4657
4657
|
constructor(t) {
|
|
4658
4658
|
M(this, f);
|
|
4659
4659
|
M(this, Sr);
|
|
@@ -4746,7 +4746,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
4746
4746
|
const o = m(this, f, Hc).call(this, r);
|
|
4747
4747
|
o < 0 || m(this, f, pi).call(this, o) != null && (n?.focus !== !1 && m(this, f, Wt).call(this, o, !1), b(this, or, {
|
|
4748
4748
|
id: b(this, Pi, s(this, Pi) + 1),
|
|
4749
|
-
offset:
|
|
4749
|
+
offset: m0(n?.offset),
|
|
4750
4750
|
visibleIndex: o
|
|
4751
4751
|
}), m(this, f, qe).call(this));
|
|
4752
4752
|
}
|
|
@@ -4803,7 +4803,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
4803
4803
|
const r = Math.max(0, t), o = Math.min(s(this, je) - 1, n);
|
|
4804
4804
|
if (o < r) return [];
|
|
4805
4805
|
const i = o - r + 1;
|
|
4806
|
-
if (s(this, Rt) == null && !s(this, dn) && o >= s(this, _t).length && i <=
|
|
4806
|
+
if (s(this, Rt) == null && !s(this, dn) && o >= s(this, _t).length && i <= p0) {
|
|
4807
4807
|
const l = [];
|
|
4808
4808
|
for (let a = r; a <= o; a += 1) {
|
|
4809
4809
|
const c = s(this, O).getVisibleRowContext(a);
|
|
@@ -4964,7 +4964,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
4964
4964
|
if (s(this, At) == null) return !1;
|
|
4965
4965
|
const n = m(this, f, un).call(this, t);
|
|
4966
4966
|
if (n == null || s(this, Fe) != null && s(this, Fe).length > 0) return !1;
|
|
4967
|
-
const r = this.getSelectedPaths(), o =
|
|
4967
|
+
const r = this.getSelectedPaths(), o = n0(n, r);
|
|
4968
4968
|
return s(this, At).canDrag?.(o) === !1 ? !1 : (r.includes(n) || m(this, f, St).call(this, [n], n, !1), m(this, f, br).call(this, n), b(this, Ke, {
|
|
4969
4969
|
draggedPaths: o,
|
|
4970
4970
|
primaryPath: n,
|
|
@@ -4979,7 +4979,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
4979
4979
|
const o = Ql(n.draggedPaths, r);
|
|
4980
4980
|
(Zl(n.draggedPaths, r) || s(this, At)?.canDrop?.(o) === !1) && (r = null);
|
|
4981
4981
|
}
|
|
4982
|
-
|
|
4982
|
+
r0(n.target, r) || (b(this, Ke, {
|
|
4983
4983
|
...n,
|
|
4984
4984
|
target: r
|
|
4985
4985
|
}), m(this, f, qe).call(this));
|
|
@@ -4997,7 +4997,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
4997
4997
|
const r = Ql(t.draggedPaths, n);
|
|
4998
4998
|
if (Zl(t.draggedPaths, n) || s(this, At)?.canDrop?.(r) === !1)
|
|
4999
4999
|
return m(this, f, qe).call(this), !1;
|
|
5000
|
-
const o =
|
|
5000
|
+
const o = i0(t.draggedPaths, n);
|
|
5001
5001
|
if (o == null)
|
|
5002
5002
|
return m(this, f, qe).call(this), !1;
|
|
5003
5003
|
try {
|
|
@@ -5076,7 +5076,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
5076
5076
|
path: l
|
|
5077
5077
|
})) === !1) return !1;
|
|
5078
5078
|
for (const h of Mn(o)) s(this, O).isExpanded(h) || s(this, O).expand(h);
|
|
5079
|
-
return m(this, f, St).call(this, [o], o, !1), s(this, Fe) != null && (m(this, f, yr).call(this, null, !1), (c = s(this, kr)) == null || c.call(this, s(this, Fe))), m(this, f, br).call(this, o), b(this, Oe, o), b(this, mt,
|
|
5079
|
+
return m(this, f, St).call(this, [o], o, !1), s(this, Fe) != null && (m(this, f, yr).call(this, null, !1), (c = s(this, kr)) == null || c.call(this, s(this, Fe))), m(this, f, br).call(this, o), b(this, Oe, o), b(this, mt, d0(o)), b(this, rn, n.removeIfCanceled ?? !1), m(this, f, qe).call(this), !0;
|
|
5080
5080
|
}
|
|
5081
5081
|
resetPaths(t, n = {}) {
|
|
5082
5082
|
var _;
|
|
@@ -5112,7 +5112,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
5112
5112
|
b(this, Oe, null), b(this, mt, ""), b(this, rn, !1), this.remove(t, oi(t) ? { recursive: !0 } : void 0);
|
|
5113
5113
|
return;
|
|
5114
5114
|
}
|
|
5115
|
-
const n = oi(t), r =
|
|
5115
|
+
const n = oi(t), r = Z1({
|
|
5116
5116
|
files: s(this, O).list(),
|
|
5117
5117
|
isFolder: n,
|
|
5118
5118
|
nextBasename: s(this, mt),
|
|
@@ -5341,7 +5341,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
5341
5341
|
i != null && this.focusPath(i);
|
|
5342
5342
|
}, yr = function(t, n) {
|
|
5343
5343
|
var i;
|
|
5344
|
-
const r = t == null ? null :
|
|
5344
|
+
const r = t == null ? null : h0(t), o = s(this, Fe);
|
|
5345
5345
|
if (o !== r) {
|
|
5346
5346
|
if (o == null && r != null && b(this, nr, m(this, f, Bc).call(this)), b(this, Fe, r), r == null)
|
|
5347
5347
|
m(this, f, ps).call(this, !0), b(this, nr, null), s(this, hn).clear(), b(this, rr, null), m(this, f, Dn).call(this, s(this, ne), !0);
|
|
@@ -5399,7 +5399,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
5399
5399
|
}, Dn = function(t, n = !0) {
|
|
5400
5400
|
const r = s(this, O).getVisibleCount();
|
|
5401
5401
|
b(this, Er, r);
|
|
5402
|
-
const o =
|
|
5402
|
+
const o = v0(s(this, O).getVisibleTreeProjectionData(n ? void 0 : Math.min(r, f0)), t, n ? (i) => s(this, O).getVisibleIndex(i) : void 0);
|
|
5403
5403
|
s(this, Cr).clear(), s(this, _r).clear(), b(this, dn, o.paths.length >= r), b(this, _o, o.getParentIndex), b(this, _t, o.paths), b(this, Eo, o.posInSetByIndex), b(this, Do, o.setSizeByIndex), m(this, f, zc).call(this), b(this, Ct, t == null ? m(this, f, Ut).call(this).length > 0 ? 0 : -1 : m(this, f, En).call(this, t)), b(this, ne, s(this, Ct) < 0 ? null : m(this, f, pi).call(this, s(this, Ct)));
|
|
5404
5404
|
}, pi = function(t) {
|
|
5405
5405
|
const n = m(this, f, Ut).call(this)[t];
|
|
@@ -5426,7 +5426,7 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
5426
5426
|
t.canonicalChanged && (s(this, Nn).clear(), m(this, f, fi).call(this)), s(this, Ke) != null && ea(t) && b(this, Ke, null);
|
|
5427
5427
|
const n = ea(t) ? m(this, f, $c).call(this, t) : s(this, ne), r = s(this, Fe) != null && s(this, Fe).length > 0 ? m(this, f, ys).call(this) : s(this, Fe) === "" ? s(this, ne) : n, o = s(this, Fe) != null || t.operation !== "expand" && t.operation !== "collapse";
|
|
5428
5428
|
m(this, f, Dn).call(this, r, o), m(this, f, qe).call(this);
|
|
5429
|
-
const i =
|
|
5429
|
+
const i = u0(t);
|
|
5430
5430
|
i != null && m(this, f, bs).call(this, i);
|
|
5431
5431
|
});
|
|
5432
5432
|
}, Ss = function(t) {
|
|
@@ -5455,13 +5455,13 @@ var Sr, Jn, nn, At, Ke, Cr, _r, Ct, ne, dn, _o, Nn, An, Rn, Vn, Fn, Ln, ko, Po,
|
|
|
5455
5455
|
},
|
|
5456
5456
|
writable: !0
|
|
5457
5457
|
}), Mr);
|
|
5458
|
-
const
|
|
5458
|
+
const b0 = (e) => {
|
|
5459
5459
|
if (e == null || e.length === 0) return "0";
|
|
5460
5460
|
let t = `${e.length}`;
|
|
5461
5461
|
for (const n of e) t += `\0${n.path}\0${n.status}`;
|
|
5462
5462
|
return t;
|
|
5463
5463
|
};
|
|
5464
|
-
function
|
|
5464
|
+
function I0(e) {
|
|
5465
5465
|
const t = e.endsWith("/");
|
|
5466
5466
|
let n = "", r = -1;
|
|
5467
5467
|
for (let o = 0; o <= e.length; o += 1) {
|
|
@@ -5488,11 +5488,11 @@ function qc(e) {
|
|
|
5488
5488
|
}
|
|
5489
5489
|
return n;
|
|
5490
5490
|
}
|
|
5491
|
-
function
|
|
5491
|
+
function w0(e, t) {
|
|
5492
5492
|
return t ? `${e}/` : e;
|
|
5493
5493
|
}
|
|
5494
5494
|
function oa(e, t = null) {
|
|
5495
|
-
const n =
|
|
5495
|
+
const n = b0(e == null ? void 0 : [...e]);
|
|
5496
5496
|
if (n === "0") return null;
|
|
5497
5497
|
if (t?.signature === n) return t;
|
|
5498
5498
|
const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
@@ -5516,14 +5516,14 @@ function oa(e, t = null) {
|
|
|
5516
5516
|
statusByPath: r
|
|
5517
5517
|
};
|
|
5518
5518
|
}
|
|
5519
|
-
function
|
|
5519
|
+
function x0(e, t) {
|
|
5520
5520
|
const n = t?.remove ?? [], r = t?.set ?? [];
|
|
5521
5521
|
if (n.length === 0 && r.length === 0) return e;
|
|
5522
5522
|
const o = new Map(e?.statusByPath), i = new Set(e?.directoriesWithChanges), l = new Set(e?.ignoredDirectoryPaths), a = new Map(e?.changeCountByDirectoryPath);
|
|
5523
5523
|
let c = !1;
|
|
5524
5524
|
for (const h of n) {
|
|
5525
5525
|
const p = jc(h);
|
|
5526
|
-
p != null && (c =
|
|
5526
|
+
p != null && (c = S0({
|
|
5527
5527
|
canonicalPath: p.canonicalPath,
|
|
5528
5528
|
changeCountByDirectoryPath: a,
|
|
5529
5529
|
directoriesWithChanges: i,
|
|
@@ -5547,7 +5547,7 @@ function I0(e, t) {
|
|
|
5547
5547
|
changeCountByDirectoryPath: a,
|
|
5548
5548
|
directoriesWithChanges: i,
|
|
5549
5549
|
ignoredDirectoryPaths: l,
|
|
5550
|
-
signature:
|
|
5550
|
+
signature: k0(o),
|
|
5551
5551
|
statusByPath: o
|
|
5552
5552
|
} : e;
|
|
5553
5553
|
}
|
|
@@ -5555,32 +5555,32 @@ function Oc(e) {
|
|
|
5555
5555
|
return jc(e.path);
|
|
5556
5556
|
}
|
|
5557
5557
|
function jc(e) {
|
|
5558
|
-
const t =
|
|
5558
|
+
const t = I0(e);
|
|
5559
5559
|
if (t != null)
|
|
5560
5560
|
return {
|
|
5561
|
-
canonicalPath:
|
|
5561
|
+
canonicalPath: w0(t.path, t.isDirectory),
|
|
5562
5562
|
isDirectory: t.isDirectory
|
|
5563
5563
|
};
|
|
5564
5564
|
}
|
|
5565
|
-
function
|
|
5565
|
+
function S0({ canonicalPath: e, changeCountByDirectoryPath: t, directoriesWithChanges: n, ignoredDirectoryPaths: r, statusByPath: o }) {
|
|
5566
5566
|
const i = o.get(e);
|
|
5567
|
-
return i == null ? !1 : (o.delete(e), i === "ignored" && e.endsWith("/") && r.delete(e),
|
|
5567
|
+
return i == null ? !1 : (o.delete(e), i === "ignored" && e.endsWith("/") && r.delete(e), _0(t, n, e), !0);
|
|
5568
5568
|
}
|
|
5569
5569
|
function Uc({ canonicalPath: e, changeCountByDirectoryPath: t, directoriesWithChanges: n, ignoredDirectoryPaths: r, isDirectory: o, status: i, statusByPath: l }) {
|
|
5570
5570
|
const a = l.get(e);
|
|
5571
|
-
return a === i ? !1 : (a == null &&
|
|
5571
|
+
return a === i ? !1 : (a == null && C0(t, n, e), l.set(e, i), i === "ignored" && o ? r.add(e) : o && r.delete(e), !0);
|
|
5572
5572
|
}
|
|
5573
|
-
function
|
|
5573
|
+
function C0(e, t, n) {
|
|
5574
5574
|
for (const r of qc(n))
|
|
5575
5575
|
e.set(r, (e.get(r) ?? 0) + 1), t.add(r);
|
|
5576
5576
|
}
|
|
5577
|
-
function
|
|
5577
|
+
function _0(e, t, n) {
|
|
5578
5578
|
for (const r of qc(n)) {
|
|
5579
5579
|
const o = (e.get(r) ?? 0) - 1;
|
|
5580
5580
|
o > 0 ? e.set(r, o) : (e.delete(r), t.delete(r));
|
|
5581
5581
|
}
|
|
5582
5582
|
}
|
|
5583
|
-
function
|
|
5583
|
+
function k0(e) {
|
|
5584
5584
|
let t = `${e.size}`;
|
|
5585
5585
|
for (const [n, r] of e) t += `\0${n}\0${r}`;
|
|
5586
5586
|
return t;
|
|
@@ -5620,20 +5620,20 @@ function Xc(e) {
|
|
|
5620
5620
|
}
|
|
5621
5621
|
}
|
|
5622
5622
|
function sa(e) {
|
|
5623
|
-
(8 & e.__g || !(e.__g |= 8) || !Zn.push(e) || ki++) && ia == fe.debounceRendering || ((ia = fe.debounceRendering) || queueMicrotask)(
|
|
5623
|
+
(8 & e.__g || !(e.__g |= 8) || !Zn.push(e) || ki++) && ia == fe.debounceRendering || ((ia = fe.debounceRendering) || queueMicrotask)(P0);
|
|
5624
5624
|
}
|
|
5625
|
-
function
|
|
5625
|
+
function P0() {
|
|
5626
5626
|
for (var e, t, n, r, o, i, l, a, c = 1; Zn.length; ) Zn.length > c && Zn.sort(Kc), e = Zn.shift(), c = Zn.length, 8 & e.__g && (n = void 0, o = (r = (t = e).__v).__e, i = [], l = [], (a = t.__P) && ((n = Un({}, r)).__v = r.__v + 1, fe.vnode && fe.vnode(n), Js(a, n, r, t.__n, a.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? zr(r), !!(32 & r.__u), l, a.ownerDocument), n.__v = r.__v, n.__.__k[n.__i] = n, Jc(i, n, l), n.__e != o && Xc(n)));
|
|
5627
5627
|
ki = 0;
|
|
5628
5628
|
}
|
|
5629
5629
|
function Qc(e, t, n, r, o, i, l, a, c, h, p, g) {
|
|
5630
5630
|
var u, I, y, x, _, E, D, k = r && r.__k || Yc, C = t.length;
|
|
5631
|
-
for (c =
|
|
5631
|
+
for (c = E0(n, t, k, c, C), u = 0; u < C; u++) (y = n.__k[u]) != null && (I = y.__i == -1 ? So : k[y.__i] || So, y.__i = u, E = Js(e, y, I, o, i, l, a, c, h, p, g), x = y.__e, y.ref && I.ref != y.ref && (I.ref && el(I.ref, null, y), p.push(y.ref, y.__c || x, y)), _ == null && x != null && (_ = x), (D = !!(4 & y.__u)) || I.__k === y.__k ? c = Zc(y, c, e, D) : typeof y.type == "function" && E !== void 0 ? c = E : x && (c = x.nextSibling), y.__u &= -7);
|
|
5632
5632
|
return n.__e = _, c;
|
|
5633
5633
|
}
|
|
5634
|
-
function
|
|
5634
|
+
function E0(e, t, n, r, o) {
|
|
5635
5635
|
var i, l, a, c, h, p = n.length, g = p, u = 0;
|
|
5636
|
-
for (e.__k = new Array(o), i = 0; i < o; i++) (l = t[i]) != null && typeof l != "boolean" && typeof l != "function" ? (c = i + u, (l = e.__k[i] = typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? mi(null, l, null, null, null) : Ni(l) ? mi(qr, { children: l }, null, null, null) : l.constructor == null && l.__b > 0 ? mi(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : l).__ = e, l.__b = e.__b + 1, a = null, (h = l.__i =
|
|
5636
|
+
for (e.__k = new Array(o), i = 0; i < o; i++) (l = t[i]) != null && typeof l != "boolean" && typeof l != "function" ? (c = i + u, (l = e.__k[i] = typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? mi(null, l, null, null, null) : Ni(l) ? mi(qr, { children: l }, null, null, null) : l.constructor == null && l.__b > 0 ? mi(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : l).__ = e, l.__b = e.__b + 1, a = null, (h = l.__i = D0(l, n, c, g)) != -1 && (g--, (a = n[h]) && (a.__u |= 2)), a == null || a.__v == null ? (h == -1 && (o > p ? u-- : o < p && u++), typeof l.type != "function" && (l.__u |= 4)) : h != c && (h == c - 1 ? u-- : h == c + 1 ? u++ : (h > c ? u-- : u++, l.__u |= 4))) : e.__k[i] = null;
|
|
5637
5637
|
if (g) for (i = 0; i < p; i++) (a = n[i]) != null && !(2 & a.__u) && (a.__e == r && (r = zr(a)), tu(a, a));
|
|
5638
5638
|
return r;
|
|
5639
5639
|
}
|
|
@@ -5649,7 +5649,7 @@ function Zc(e, t, n, r) {
|
|
|
5649
5649
|
while (t != null && t.nodeType == 8);
|
|
5650
5650
|
return t;
|
|
5651
5651
|
}
|
|
5652
|
-
function
|
|
5652
|
+
function D0(e, t, n, r) {
|
|
5653
5653
|
var o, i, l, a = e.key, c = e.type, h = t[n], p = h != null && (2 & h.__u) == 0;
|
|
5654
5654
|
if (h === null && e.key == null || p && a == h.key && c == h.type) return n;
|
|
5655
5655
|
if (r > (p ? 1 : 0)) {
|
|
@@ -5689,15 +5689,15 @@ function aa(e) {
|
|
|
5689
5689
|
};
|
|
5690
5690
|
}
|
|
5691
5691
|
function Js(e, t, n, r, o, i, l, a, c, h, p) {
|
|
5692
|
-
var g, u, I, y, x, _, E, D, k, C, P, j, q,
|
|
5692
|
+
var g, u, I, y, x, _, E, D, k, C, P, j, q, oe, ye, ue, Ee, be, pe, _e, Xe, ke = t.type;
|
|
5693
5693
|
if (t.constructor != null) return null;
|
|
5694
5694
|
128 & n.__u && (c = !!(32 & n.__u), n.__c.__z && (a = t.__e = n.__e = (i = n.__c.__z)[0], n.__c.__z = null)), (g = fe.__b) && g(t);
|
|
5695
5695
|
e: if (typeof ke == "function") try {
|
|
5696
|
-
if (D = t.props, k = "prototype" in ke && ke.prototype.render, C = (g = ke.contextType) && r[g.__c], P = g ? C ? C.props.value : g.__ : r, n.__c ? 2 & (u = t.__c = n.__c).__g && (u.__g |= 1, E = !0) : (k ? t.__c = u = new ke(D, P) : (t.__c = u = new gi(D, P), u.constructor = ke, u.render =
|
|
5696
|
+
if (D = t.props, k = "prototype" in ke && ke.prototype.render, C = (g = ke.contextType) && r[g.__c], P = g ? C ? C.props.value : g.__ : r, n.__c ? 2 & (u = t.__c = n.__c).__g && (u.__g |= 1, E = !0) : (k ? t.__c = u = new ke(D, P) : (t.__c = u = new gi(D, P), u.constructor = ke, u.render = T0), C && C.sub(u), u.props = D, u.state || (u.state = {}), u.context = P, u.__n = r, I = !0, u.__g |= 8, u.__h = [], u._sb = []), k && u.__s == null && (u.__s = u.state), k && ke.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = Un({}, u.__s)), Un(u.__s, ke.getDerivedStateFromProps(D, u.__s))), y = u.props, x = u.state, u.__v = t, I) k && ke.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), k && u.componentDidMount != null && u.__h.push(u.componentDidMount);
|
|
5697
5697
|
else {
|
|
5698
5698
|
if (k && ke.getDerivedStateFromProps == null && D !== y && u.componentWillReceiveProps != null && u.componentWillReceiveProps(D, P), !(4 & u.__g) && u.shouldComponentUpdate != null && u.shouldComponentUpdate(D, u.__s, P) === !1 || t.__v == n.__v) {
|
|
5699
|
-
for (t.__v != n.__v && (u.props = D, u.state = u.__s, u.__g &= -9), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(
|
|
5700
|
-
|
|
5699
|
+
for (t.__v != n.__v && (u.props = D, u.state = u.__s, u.__g &= -9), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ae) {
|
|
5700
|
+
ae && (ae.__ = t);
|
|
5701
5701
|
}), j = 0; j < u._sb.length; j++) u.__h.push(u._sb[j]);
|
|
5702
5702
|
u._sb = [], u.__h.length && l.push(u);
|
|
5703
5703
|
break e;
|
|
@@ -5706,15 +5706,15 @@ function Js(e, t, n, r, o, i, l, a, c, h, p) {
|
|
|
5706
5706
|
u.componentDidUpdate(y, x, _);
|
|
5707
5707
|
});
|
|
5708
5708
|
}
|
|
5709
|
-
if (u.context = P, u.props = D, u.__P = e, u.__g &= -5, q = fe.__r,
|
|
5709
|
+
if (u.context = P, u.props = D, u.__P = e, u.__g &= -5, q = fe.__r, oe = 0, k) {
|
|
5710
5710
|
for (u.state = u.__s, u.__g &= -9, q && q(t), g = u.render(u.props, u.state, u.context), ye = 0; ye < u._sb.length; ye++) u.__h.push(u._sb[ye]);
|
|
5711
5711
|
u._sb = [];
|
|
5712
5712
|
} else do
|
|
5713
5713
|
u.__g &= -9, q && q(t), g = u.render(u.props, u.state, u.context), u.state = u.__s;
|
|
5714
|
-
while (8 & u.__g && ++
|
|
5714
|
+
while (8 & u.__g && ++oe < 25);
|
|
5715
5715
|
u.state = u.__s, u.getChildContext != null && (r = Un({}, r, u.getChildContext())), k && !I && u.getSnapshotBeforeUpdate != null && (_ = u.getSnapshotBeforeUpdate(y, x)), ue = g, g != null && g.type === qr && g.key == null && (ue = eu(g.props.children)), a = Qc(e, Ni(ue) ? ue : [ue], t, n, r, o, i, l, a, c, h, p), t.__u &= -161, u.__h.length && l.push(u), E && (u.__g &= -4);
|
|
5716
|
-
} catch (
|
|
5717
|
-
if (t.__v = null, c || i != null) if (
|
|
5716
|
+
} catch (ae) {
|
|
5717
|
+
if (t.__v = null, c || i != null) if (ae.then) {
|
|
5718
5718
|
for (Ee = 0, be = !1, t.__u |= c ? 160 : 128, t.__c.__z = [], pe = 0; pe < i.length; pe++) (_e = i[pe]) == null || be || (_e.nodeType == 8 && _e.data == "$s" ? (Ee > 0 && t.__c.__z.push(_e), Ee++, i[pe] = null) : _e.nodeType == 8 && _e.data == "/$s" ? (--Ee > 0 && t.__c.__z.push(_e), be = Ee === 0, a = i[pe], i[pe] = null) : Ee > 0 && (t.__c.__z.push(_e), i[pe] = null));
|
|
5719
5719
|
if (!be) {
|
|
5720
5720
|
for (; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
@@ -5725,10 +5725,10 @@ function Js(e, t, n, r, o, i, l, a, c, h, p) {
|
|
|
5725
5725
|
for (Xe = i.length; Xe--; ) Zs(i[Xe]);
|
|
5726
5726
|
Ps(t);
|
|
5727
5727
|
}
|
|
5728
|
-
else t.__e = n.__e, t.__k = n.__k,
|
|
5729
|
-
fe.__e(
|
|
5728
|
+
else t.__e = n.__e, t.__k = n.__k, ae.then || Ps(t);
|
|
5729
|
+
fe.__e(ae, t, n);
|
|
5730
5730
|
}
|
|
5731
|
-
else a = t.__e =
|
|
5731
|
+
else a = t.__e = M0(n.__e, t, n, r, o, i, l, c, h, p);
|
|
5732
5732
|
return (g = fe.diffed) && g(t), 128 & t.__u ? void 0 : a;
|
|
5733
5733
|
}
|
|
5734
5734
|
function Ps(e) {
|
|
@@ -5749,7 +5749,7 @@ function Jc(e, t, n) {
|
|
|
5749
5749
|
function eu(e) {
|
|
5750
5750
|
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ni(e) ? e.map(eu) : Un({}, e);
|
|
5751
5751
|
}
|
|
5752
|
-
function
|
|
5752
|
+
function M0(e, t, n, r, o, i, l, a, c, h) {
|
|
5753
5753
|
var p, g, u, I, y, x, _, E, D = n.props, k = t.props, C = t.type;
|
|
5754
5754
|
if (C == "svg" ? o = "http://www.w3.org/2000/svg" : C == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
5755
5755
|
for (p = 0; p < i.length; p++) if ((y = i[p]) && "setAttribute" in y == !!C && (C ? y.localName == C : y.nodeType == 3)) {
|
|
@@ -5801,14 +5801,14 @@ function tu(e, t, n) {
|
|
|
5801
5801
|
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && tu(r[o], t, n || typeof e.type != "function");
|
|
5802
5802
|
n || Zs(e.__e), e.__e && e.__e.__l && (e.__e.__l = null), e.__e = e.__c = e.__ = null;
|
|
5803
5803
|
}
|
|
5804
|
-
function
|
|
5804
|
+
function T0(e, t, n) {
|
|
5805
5805
|
return this.constructor(e, n);
|
|
5806
5806
|
}
|
|
5807
5807
|
function Es(e, t) {
|
|
5808
5808
|
var n, r, o, i;
|
|
5809
5809
|
t == document && (t = document.documentElement), fe.__ && fe.__(e, t), r = (n = !!(e && 32 & e.__u)) ? null : t.__k, e = t.__k = ks(qr, null, [e]), o = [], i = [], Js(t, e, r || So, So, t.namespaceURI, r ? null : t.firstChild ? Qs.call(t.childNodes) : null, o, r ? r.__e : t.firstChild, n, i, t.ownerDocument), Jc(o, e, i);
|
|
5810
5810
|
}
|
|
5811
|
-
function
|
|
5811
|
+
function N0(e, t) {
|
|
5812
5812
|
e.__u |= 32, Es(e, t);
|
|
5813
5813
|
}
|
|
5814
5814
|
fe = { __e: function(e, t, n, r) {
|
|
@@ -5829,20 +5829,20 @@ fe = { __e: function(e, t, n, r) {
|
|
|
5829
5829
|
}, gi.prototype.render = qr, Zn = [], ki = 0, Kc = function(e, t) {
|
|
5830
5830
|
return e.__v.__b - t.__v.__b;
|
|
5831
5831
|
}, Gc = /(PointerCapture)$|Capture$/i, Xs = 0, Cs = aa(!1), _s = aa(!0);
|
|
5832
|
-
var
|
|
5832
|
+
var A0 = 0;
|
|
5833
5833
|
function N(e, t, n, r, o, i) {
|
|
5834
5834
|
t || (t = {});
|
|
5835
5835
|
var l, a, c = t;
|
|
5836
5836
|
if ("ref" in c && typeof e != "function") for (a in c = {}, t) a == "ref" ? l = t[a] : c[a] = t[a];
|
|
5837
|
-
var h = { type: e, props: c, key: n, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
5837
|
+
var h = { type: e, props: c, key: n, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --A0, __i: -1, __u: 0, __source: o, __self: i };
|
|
5838
5838
|
return fe.vnode && fe.vnode(h), h;
|
|
5839
5839
|
}
|
|
5840
|
-
const
|
|
5840
|
+
const R0 = 16, V0 = 16, F0 = {};
|
|
5841
5841
|
function yo({ name: e, remappedFrom: t, token: n, width: r, height: o, viewBox: i, label: l, alignCapitals: a = !1 }) {
|
|
5842
5842
|
"use no memo";
|
|
5843
|
-
const c = `#${e.replace(/^#/, "")}`, { width: h, height: p, viewBox: g } =
|
|
5844
|
-
width:
|
|
5845
|
-
height:
|
|
5843
|
+
const c = `#${e.replace(/^#/, "")}`, { width: h, height: p, viewBox: g } = F0[e] ?? {
|
|
5844
|
+
width: R0,
|
|
5845
|
+
height: V0
|
|
5846
5846
|
}, u = r ?? h, I = o ?? p, y = i ?? g ?? `0 0 ${h} ${p}`;
|
|
5847
5847
|
return /* @__PURE__ */ N("svg", {
|
|
5848
5848
|
"data-icon-name": t ?? e,
|
|
@@ -5858,7 +5858,7 @@ function yo({ name: e, remappedFrom: t, token: n, width: r, height: o, viewBox:
|
|
|
5858
5858
|
children: /* @__PURE__ */ N("use", { href: c })
|
|
5859
5859
|
});
|
|
5860
5860
|
}
|
|
5861
|
-
const ca = (e) => e !== void 0 && /\s/.test(e),
|
|
5861
|
+
const ca = (e) => e !== void 0 && /\s/.test(e), L0 = (e, t) => {
|
|
5862
5862
|
const n = (r) => ca(e[r - 1]) || ca(e[r]);
|
|
5863
5863
|
if (!n(t)) return t;
|
|
5864
5864
|
for (let r = 1; r < e.length; r++) {
|
|
@@ -5868,32 +5868,32 @@ const ca = (e) => e !== void 0 && /\s/.test(e), V0 = (e, t) => {
|
|
|
5868
5868
|
if (i < e.length && !n(i)) return i;
|
|
5869
5869
|
}
|
|
5870
5870
|
return t;
|
|
5871
|
-
}, nu = (e) =>
|
|
5871
|
+
}, nu = (e) => L0(e, Math.ceil(e.length / 2)), ua = (e) => {
|
|
5872
5872
|
if (e.length < 2) return [e, ""];
|
|
5873
5873
|
const t = nu(e);
|
|
5874
5874
|
return [e.slice(0, t), e.slice(t)];
|
|
5875
|
-
},
|
|
5875
|
+
}, B0 = (e) => {
|
|
5876
5876
|
if (e.length < 4) return [e, ""];
|
|
5877
5877
|
const t = e.lastIndexOf(".") + 1, n = e.length - t > 10, r = t >= 1 && !n ? t : nu(e);
|
|
5878
5878
|
return [e.slice(0, r), e.slice(r)];
|
|
5879
|
-
},
|
|
5879
|
+
}, z0 = (e) => {
|
|
5880
5880
|
if (e.length < 4) return [e, ""];
|
|
5881
5881
|
const t = e.lastIndexOf("/") + 1, n = e.length - t > 25, r = t >= 1 && !n ? t : Math.ceil(e.length / 2);
|
|
5882
5882
|
return [e.slice(0, r), e.slice(r)];
|
|
5883
|
-
},
|
|
5883
|
+
}, H0 = (e, { splitIndex: t } = {}) => {
|
|
5884
5884
|
if (typeof t != "number") {
|
|
5885
5885
|
const n = Math.ceil(e.length / 2);
|
|
5886
5886
|
return [e.slice(0, n), e.slice(n)];
|
|
5887
5887
|
}
|
|
5888
5888
|
return [e.slice(0, t), e.slice(t)];
|
|
5889
|
-
},
|
|
5889
|
+
}, $0 = (e, { splitOffset: t } = {}) => {
|
|
5890
5890
|
if (typeof t != "number" || t <= 0 || t >= e.length) {
|
|
5891
5891
|
const r = Math.ceil(e.length / 2);
|
|
5892
5892
|
return [e.slice(0, r), e.slice(r)];
|
|
5893
5893
|
}
|
|
5894
5894
|
const n = e.length - t;
|
|
5895
5895
|
return [e.slice(0, n), e.slice(n)];
|
|
5896
|
-
},
|
|
5896
|
+
}, q0 = (e, { splitOffset: t } = {}) => {
|
|
5897
5897
|
if (typeof t != "number" || t <= 0 || t >= e.length) {
|
|
5898
5898
|
const r = Math.ceil(e.length / 2);
|
|
5899
5899
|
return [e.slice(0, r), e.slice(r)];
|
|
@@ -5901,7 +5901,7 @@ const ca = (e) => e !== void 0 && /\s/.test(e), V0 = (e, t) => {
|
|
|
5901
5901
|
const n = t;
|
|
5902
5902
|
return [e.slice(0, n), e.slice(n)];
|
|
5903
5903
|
};
|
|
5904
|
-
function
|
|
5904
|
+
function O0({ children: e, marker: t, variant: n = "default" }) {
|
|
5905
5905
|
"use no memo";
|
|
5906
5906
|
return /* @__PURE__ */ N("div", {
|
|
5907
5907
|
"aria-hidden": !0,
|
|
@@ -5912,7 +5912,7 @@ function $0({ children: e, marker: t, variant: n = "default" }) {
|
|
|
5912
5912
|
})
|
|
5913
5913
|
});
|
|
5914
5914
|
}
|
|
5915
|
-
function
|
|
5915
|
+
function j0(e) {
|
|
5916
5916
|
"use no memo";
|
|
5917
5917
|
const { mode: t, children: n } = e;
|
|
5918
5918
|
return /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
|
|
@@ -5926,10 +5926,10 @@ function q0(e) {
|
|
|
5926
5926
|
}
|
|
5927
5927
|
function ru({ children: e, mode: t = "truncate", marker: n = "…", variant: r = "default", ...o }) {
|
|
5928
5928
|
"use no memo";
|
|
5929
|
-
const i = /* @__PURE__ */ N(
|
|
5929
|
+
const i = /* @__PURE__ */ N(j0, {
|
|
5930
5930
|
mode: t,
|
|
5931
5931
|
children: e
|
|
5932
|
-
}, "content"), l = /* @__PURE__ */ N(
|
|
5932
|
+
}, "content"), l = /* @__PURE__ */ N(O0, {
|
|
5933
5933
|
marker: n,
|
|
5934
5934
|
mode: t,
|
|
5935
5935
|
variant: r
|
|
@@ -5964,7 +5964,7 @@ function Ki({ children: e, ...t }) {
|
|
|
5964
5964
|
children: e
|
|
5965
5965
|
});
|
|
5966
5966
|
}
|
|
5967
|
-
function
|
|
5967
|
+
function U0({ children: e, contents: t, priority: n = "end", split: r = "center", minimumLength: o = 12, className: i, style: l, ...a }) {
|
|
5968
5968
|
"use no memo";
|
|
5969
5969
|
let c = null, h = null;
|
|
5970
5970
|
if (Array.isArray(t)) {
|
|
@@ -5997,12 +5997,12 @@ function O0({ children: e, contents: t, priority: n = "end", split: r = "center"
|
|
|
5997
5997
|
});
|
|
5998
5998
|
let p = null, g = null, u = null;
|
|
5999
5999
|
if (typeof r == "string")
|
|
6000
|
-
r === "center" ? p = ua : r === "extension" ? p =
|
|
6000
|
+
r === "center" ? p = ua : r === "extension" ? p = B0 : r === "leaf-path" && (p = z0);
|
|
6001
6001
|
else if (typeof r == "number")
|
|
6002
|
-
p =
|
|
6002
|
+
p = H0, g = r;
|
|
6003
6003
|
else if (Array.isArray(r)) {
|
|
6004
6004
|
const [C, P] = r;
|
|
6005
|
-
u = P, C === "last" ? p =
|
|
6005
|
+
u = P, C === "last" ? p = $0 : C === "first" && (p = q0);
|
|
6006
6006
|
} else typeof r == "function" && (p = r);
|
|
6007
6007
|
p ??= ua;
|
|
6008
6008
|
const [I, y] = p(e, {
|
|
@@ -6038,7 +6038,7 @@ const Ds = {
|
|
|
6038
6038
|
endIndex: -1,
|
|
6039
6039
|
startIndex: -1
|
|
6040
6040
|
};
|
|
6041
|
-
function
|
|
6041
|
+
function W0(e, t, n) {
|
|
6042
6042
|
return Math.min(Math.max(e, t), n);
|
|
6043
6043
|
}
|
|
6044
6044
|
function da(e, t) {
|
|
@@ -6050,7 +6050,7 @@ function da(e, t) {
|
|
|
6050
6050
|
function Ms(e) {
|
|
6051
6051
|
return e.startIndex < 0 || e.endIndex < e.startIndex;
|
|
6052
6052
|
}
|
|
6053
|
-
function
|
|
6053
|
+
function K0(e, t) {
|
|
6054
6054
|
return Ms(e) ? 0 : (e.endIndex - e.startIndex + 1) * t;
|
|
6055
6055
|
}
|
|
6056
6056
|
function ha(e, t, n) {
|
|
@@ -6058,10 +6058,10 @@ function ha(e, t, n) {
|
|
|
6058
6058
|
const r = t * n;
|
|
6059
6059
|
return e <= 0 ? 0 : e >= r ? t : Math.floor(e / n);
|
|
6060
6060
|
}
|
|
6061
|
-
function
|
|
6061
|
+
function G0(e, t, n) {
|
|
6062
6062
|
return t <= 0 || e <= 0 ? -1 : e >= t * n ? t - 1 : Math.ceil(e / n) - 1;
|
|
6063
6063
|
}
|
|
6064
|
-
function
|
|
6064
|
+
function Y0(e) {
|
|
6065
6065
|
const t = /* @__PURE__ */ new Map();
|
|
6066
6066
|
return e.forEach((n, r) => {
|
|
6067
6067
|
if (n.kind !== "directory" || !n.isExpanded) return;
|
|
@@ -6073,7 +6073,7 @@ function K0(e) {
|
|
|
6073
6073
|
i.push(r);
|
|
6074
6074
|
}), t;
|
|
6075
6075
|
}
|
|
6076
|
-
function
|
|
6076
|
+
function X0(e, t) {
|
|
6077
6077
|
let n = 0, r = e.length - 1, o = -1;
|
|
6078
6078
|
for (; n <= r; ) {
|
|
6079
6079
|
const i = Math.floor((n + r) / 2), l = e[i];
|
|
@@ -6086,7 +6086,7 @@ function G0(e, t) {
|
|
|
6086
6086
|
}
|
|
6087
6087
|
return o;
|
|
6088
6088
|
}
|
|
6089
|
-
function
|
|
6089
|
+
function Q0(e) {
|
|
6090
6090
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
6091
6091
|
for (let o = 0; o < e.length; o += 1) {
|
|
6092
6092
|
const i = e[o];
|
|
@@ -6110,12 +6110,12 @@ function Y0(e) {
|
|
|
6110
6110
|
}
|
|
6111
6111
|
function ou(e, t, n) {
|
|
6112
6112
|
if (e.length === 0 || t <= 0) return [];
|
|
6113
|
-
const r =
|
|
6113
|
+
const r = Q0(e), o = Y0(e), i = [];
|
|
6114
6114
|
for (let l = 0; l < e.length; l += 1) {
|
|
6115
6115
|
const a = o.get(l);
|
|
6116
6116
|
if (a == null || a.length === 0) break;
|
|
6117
6117
|
const c = t + l * n;
|
|
6118
|
-
let h =
|
|
6118
|
+
let h = X0(a, Math.min(e.length - 1, Math.floor(c / n))), p = null;
|
|
6119
6119
|
for (; h >= 0; ) {
|
|
6120
6120
|
const g = a[h], u = g == null ? null : e[g] ?? null;
|
|
6121
6121
|
if (u != null && (l === 0 || u.ancestorPaths[l - 1] === i[l - 1]?.path)) {
|
|
@@ -6140,8 +6140,8 @@ function ou(e, t, n) {
|
|
|
6140
6140
|
};
|
|
6141
6141
|
}).filter((l) => l.top + n > 0);
|
|
6142
6142
|
}
|
|
6143
|
-
function
|
|
6144
|
-
const n = t.totalRowCount ?? e.length, r = n * t.itemHeight, o = Math.max(0, t.viewportHeight), i = Math.max(0, Math.floor(t.overscan)), l = Math.max(0, r - o), a =
|
|
6143
|
+
function Z0(e, t) {
|
|
6144
|
+
const n = t.totalRowCount ?? e.length, r = n * t.itemHeight, o = Math.max(0, t.viewportHeight), i = Math.max(0, Math.floor(t.overscan)), l = Math.max(0, r - o), a = W0(t.scrollTop, 0, l), c = t.stickyRows ?? ou(e, a, t.itemHeight), h = c.reduce((j, q) => Math.max(j, q.top + t.itemHeight), 0), p = Math.min(r, a + h), g = Math.max(0, o - h), u = Math.max(0, r - p), I = ha(a, n, t.itemHeight), y = ha(p, n, t.itemHeight), x = h <= 0 || I < 0 || I >= n ? -1 : I, _ = x === -1 ? -1 : Math.min(n - 1, y - 1), E = x === -1 || _ < x ? 0 : _ - x + 1, D = g <= 0 || y >= n ? Ds : da(y, G0(p + g, n, t.itemHeight)), k = _ + 1, C = Ms(D) ? Ds : da(Math.max(k, D.startIndex - i), Math.min(n - 1, D.endIndex + i)), P = K0(C, t.itemHeight);
|
|
6145
6145
|
return {
|
|
6146
6146
|
occlusion: {
|
|
6147
6147
|
firstOccludedIndex: x,
|
|
@@ -6175,22 +6175,22 @@ function X0(e, t) {
|
|
|
6175
6175
|
}
|
|
6176
6176
|
};
|
|
6177
6177
|
}
|
|
6178
|
-
const
|
|
6178
|
+
const J0 = {
|
|
6179
6179
|
added: "A",
|
|
6180
6180
|
deleted: "D",
|
|
6181
6181
|
ignored: null,
|
|
6182
6182
|
modified: "M",
|
|
6183
6183
|
renamed: "R",
|
|
6184
6184
|
untracked: "U"
|
|
6185
|
-
},
|
|
6185
|
+
}, ep = {
|
|
6186
6186
|
added: "Git status: added",
|
|
6187
6187
|
deleted: "Git status: deleted",
|
|
6188
6188
|
ignored: "Git status: ignored",
|
|
6189
6189
|
modified: "Git status: modified",
|
|
6190
6190
|
renamed: "Git status: renamed",
|
|
6191
6191
|
untracked: "Git status: untracked"
|
|
6192
|
-
},
|
|
6193
|
-
function
|
|
6192
|
+
}, tp = "Contains git status items";
|
|
6193
|
+
function np(e) {
|
|
6194
6194
|
return e.current ? !0 : (e.current = !0, !1);
|
|
6195
6195
|
}
|
|
6196
6196
|
function iu(e) {
|
|
@@ -6207,7 +6207,7 @@ function iu(e) {
|
|
|
6207
6207
|
}
|
|
6208
6208
|
return null;
|
|
6209
6209
|
}
|
|
6210
|
-
function
|
|
6210
|
+
function rp(e) {
|
|
6211
6211
|
const { currentScrollTop: t, focusedIndex: n, itemHeight: r, offset: o, topInset: i = 0, totalHeight: l, viewportHeight: a } = e;
|
|
6212
6212
|
if (o === "nearest") return iu({
|
|
6213
6213
|
currentScrollTop: t,
|
|
@@ -6220,7 +6220,7 @@ function tp(e) {
|
|
|
6220
6220
|
const c = Math.max(0, i), h = n * r, p = Math.max(0, a - c), g = o === "center" ? c + Math.max(0, (p - r) / 2) : c, u = Math.max(0, l - a), I = Math.max(0, Math.min(h - g, u));
|
|
6221
6221
|
return I === t ? null : I;
|
|
6222
6222
|
}
|
|
6223
|
-
function
|
|
6223
|
+
function op(e) {
|
|
6224
6224
|
const { currentScrollTop: t, focusedIndex: n, itemHeight: r, targetViewportOffset: o, totalHeight: i, viewportHeight: l } = e;
|
|
6225
6225
|
if (n < 0) return null;
|
|
6226
6226
|
const a = Math.max(0, o), c = n * r, h = c + r, p = t + a, g = t + l;
|
|
@@ -6251,7 +6251,7 @@ function lo(e, t) {
|
|
|
6251
6251
|
function fa(e, t) {
|
|
6252
6252
|
return e != null && e > 0 ? e : t;
|
|
6253
6253
|
}
|
|
6254
|
-
function
|
|
6254
|
+
function ip(e) {
|
|
6255
6255
|
const t = e.borderBoxSize, n = Array.isArray(t) ? t[0] : t;
|
|
6256
6256
|
return n != null && Number.isFinite(n.blockSize) && n.blockSize > 0 ? n.blockSize : e.contentRect.height > 0 ? e.contentRect.height : null;
|
|
6257
6257
|
}
|
|
@@ -6265,8 +6265,8 @@ function pa(e, t, n, r, o = 0) {
|
|
|
6265
6265
|
});
|
|
6266
6266
|
return i == null ? !1 : (e.scrollTop = i, !0);
|
|
6267
6267
|
}
|
|
6268
|
-
function
|
|
6269
|
-
const a =
|
|
6268
|
+
function sp(e, t, n, r, o, i, l = 0) {
|
|
6269
|
+
const a = rp({
|
|
6270
6270
|
currentScrollTop: e.scrollTop,
|
|
6271
6271
|
focusedIndex: t,
|
|
6272
6272
|
itemHeight: n,
|
|
@@ -6278,7 +6278,7 @@ function op(e, t, n, r, o, i, l = 0) {
|
|
|
6278
6278
|
return a == null ? !1 : (e.scrollTop = a, !0);
|
|
6279
6279
|
}
|
|
6280
6280
|
function ao(e, t, n, r, o, i) {
|
|
6281
|
-
const l =
|
|
6281
|
+
const l = op({
|
|
6282
6282
|
currentScrollTop: e.scrollTop,
|
|
6283
6283
|
focusedIndex: t,
|
|
6284
6284
|
itemHeight: n,
|
|
@@ -6291,11 +6291,11 @@ function ao(e, t, n, r, o, i) {
|
|
|
6291
6291
|
function ma(e, t, n, r) {
|
|
6292
6292
|
return n.end < n.start ? null : e < n.start ? -t : e > n.end ? r : null;
|
|
6293
6293
|
}
|
|
6294
|
-
function
|
|
6294
|
+
function lp(e) {
|
|
6295
6295
|
const { renamingPath: t, previousRenamingPath: n, hasRenderedInput: r } = e;
|
|
6296
6296
|
return t == null ? "reset" : r ? n === t ? "ignore" : "focus-input" : "reveal-canonical";
|
|
6297
6297
|
}
|
|
6298
|
-
function
|
|
6298
|
+
function ap({ ariaLabel: e, isFlattened: t = !1, ref: n, value: r, onBlur: o, onInput: i }) {
|
|
6299
6299
|
return /* @__PURE__ */ N("input", {
|
|
6300
6300
|
ref: n,
|
|
6301
6301
|
"data-item-rename-input": !0,
|
|
@@ -6309,7 +6309,7 @@ function sp({ ariaLabel: e, isFlattened: t = !1, ref: n, value: r, onBlur: o, on
|
|
|
6309
6309
|
onPointerDown: (l) => l.stopPropagation()
|
|
6310
6310
|
});
|
|
6311
6311
|
}
|
|
6312
|
-
function
|
|
6312
|
+
function cp(e) {
|
|
6313
6313
|
const { row: t, mode: n, targetPath: r, ariaLabel: o, domId: i, isParked: l, itemHeight: a, features: c, state: h, extraStyle: p } = e, g = n === "sticky", u = t.ancestorPaths.at(-1) ?? "", I = {};
|
|
6314
6314
|
return h.isFocusRinged && (I["data-item-focused"] = !0), t.isSelected && (I["data-item-selected"] = !0), h.isContextHovered && (I["data-item-context-hover"] = "true"), h.isDragTarget && (I["data-item-drag-target"] = !0), h.isDragging && (I["data-item-dragging"] = !0), h.effectiveGitStatus != null && (I["data-item-git-status"] = h.effectiveGitStatus), h.containsGitChange && (I["data-item-contains-git-change"] = "true"), {
|
|
6315
6315
|
"aria-expanded": !g && t.kind === "directory" ? t.isExpanded : void 0,
|
|
@@ -6340,7 +6340,7 @@ function lp(e) {
|
|
|
6340
6340
|
...I
|
|
6341
6341
|
};
|
|
6342
6342
|
}
|
|
6343
|
-
function
|
|
6343
|
+
function up(e) {
|
|
6344
6344
|
const { event: t, mode: n, isSearchOpen: r, isDirectory: o } = e, i = t.ctrlKey || t.metaKey, l = t.shiftKey || i, a = t.shiftKey ? {
|
|
6345
6345
|
additive: i,
|
|
6346
6346
|
kind: "range"
|
|
@@ -6359,9 +6359,9 @@ function Ai(e, t) {
|
|
|
6359
6359
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
6360
6360
|
}
|
|
6361
6361
|
function en(e) {
|
|
6362
|
-
return Co = 1,
|
|
6362
|
+
return Co = 1, dp(lu, e);
|
|
6363
6363
|
}
|
|
6364
|
-
function
|
|
6364
|
+
function dp(e, t, n) {
|
|
6365
6365
|
var r = Ai(Hr++, 2);
|
|
6366
6366
|
if (r.t = e, !r.__c && (r.__ = [lu(void 0, t), function(a) {
|
|
6367
6367
|
var c = r.__N ? r.__N[0] : r.__[0], h = r.t(c, a);
|
|
@@ -6417,7 +6417,7 @@ function st(e, t) {
|
|
|
6417
6417
|
return e;
|
|
6418
6418
|
}, t);
|
|
6419
6419
|
}
|
|
6420
|
-
function
|
|
6420
|
+
function hp() {
|
|
6421
6421
|
for (var e; e = su.shift(); ) if (e.__P && e.__H) try {
|
|
6422
6422
|
e.__H.__h.forEach(yi), e.__H.__h.forEach(Ns), e.__H.__h = [];
|
|
6423
6423
|
} catch (t) {
|
|
@@ -6437,7 +6437,7 @@ Le.__b = function(e) {
|
|
|
6437
6437
|
}, Le.diffed = function(e) {
|
|
6438
6438
|
ba && ba(e);
|
|
6439
6439
|
var t = e.__c;
|
|
6440
|
-
t && t.__H && (t.__H.__h.length && (su.push(t) !== 1 && ga === Le.requestAnimationFrame || ((ga = Le.requestAnimationFrame) ||
|
|
6440
|
+
t && t.__H && (t.__H.__h.length && (su.push(t) !== 1 && ga === Le.requestAnimationFrame || ((ga = Le.requestAnimationFrame) || fp)(hp)), t.__H.__.forEach(function(n) {
|
|
6441
6441
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
6442
6442
|
})), Gi = Ne = null;
|
|
6443
6443
|
}, Le.__c = function(e, t) {
|
|
@@ -6464,7 +6464,7 @@ Le.__b = function(e) {
|
|
|
6464
6464
|
}), n.__H = void 0, t && Le.__e(t, n.__v));
|
|
6465
6465
|
};
|
|
6466
6466
|
var Ca = typeof requestAnimationFrame == "function";
|
|
6467
|
-
function
|
|
6467
|
+
function fp(e) {
|
|
6468
6468
|
var t, n = function() {
|
|
6469
6469
|
clearTimeout(r), Ca && cancelAnimationFrame(t), setTimeout(e);
|
|
6470
6470
|
}, r = setTimeout(n, 35);
|
|
@@ -6487,7 +6487,7 @@ function lu(e, t) {
|
|
|
6487
6487
|
return typeof t == "function" ? t(e) : t;
|
|
6488
6488
|
}
|
|
6489
6489
|
/*! Modified by Qwen Code: display-only formatItemName and search; see package NOTICE. */
|
|
6490
|
-
function
|
|
6490
|
+
function pp(e, t = null, n = null) {
|
|
6491
6491
|
"use no memo";
|
|
6492
6492
|
const r = e.flattenedSegments;
|
|
6493
6493
|
return r == null || r.length === 0 ? t ?? e.name : /* @__PURE__ */ N("span", {
|
|
@@ -6524,7 +6524,7 @@ function _a(e, t, n, r) {
|
|
|
6524
6524
|
}).filter((o) => o.top + n > 0);
|
|
6525
6525
|
}
|
|
6526
6526
|
function Yi({ controller: e, itemHeight: t, overscan: n, scrollTop: r, stickyFolders: o, viewportHeight: i }) {
|
|
6527
|
-
const l = e.getVisibleCount(), a = o && l > 0 ? e.getStickyRowCandidates(r, t) : [], c = a == null && o && l > 0 ? e.getVisibleRows(0, l - 1) : [], h =
|
|
6527
|
+
const l = e.getVisibleCount(), a = o && l > 0 ? e.getStickyRowCandidates(r, t) : [], c = a == null && o && l > 0 ? e.getVisibleRows(0, l - 1) : [], h = Z0(c, {
|
|
6528
6528
|
itemHeight: t,
|
|
6529
6529
|
overscan: n,
|
|
6530
6530
|
scrollTop: r,
|
|
@@ -6539,12 +6539,12 @@ function Yi({ controller: e, itemHeight: t, overscan: n, scrollTop: r, stickyFol
|
|
|
6539
6539
|
visibleRows: c
|
|
6540
6540
|
};
|
|
6541
6541
|
}
|
|
6542
|
-
const
|
|
6543
|
-
function
|
|
6542
|
+
const mp = 400, ka = 10, vr = 40, Pa = 18;
|
|
6543
|
+
function gp(e, t, n) {
|
|
6544
6544
|
const r = e, o = document.elementFromPoint?.bind(document) ?? null, i = r.elementFromPoint?.(t, n) ?? o?.(t, n) ?? null;
|
|
6545
|
-
return e instanceof ShadowRoot && (i == null || !e.contains(i)) ?
|
|
6545
|
+
return e instanceof ShadowRoot && (i == null || !e.contains(i)) ? vp(e, t, n) : i instanceof HTMLElement ? i : null;
|
|
6546
6546
|
}
|
|
6547
|
-
function
|
|
6547
|
+
function vp(e, t, n) {
|
|
6548
6548
|
const r = Array.from(e.querySelectorAll('[data-type="item"], [data-item-flattened-subitem]'));
|
|
6549
6549
|
for (let o = r.length - 1; o >= 0; o--) {
|
|
6550
6550
|
const i = r[o], l = i.getBoundingClientRect();
|
|
@@ -6596,21 +6596,21 @@ function Da(e) {
|
|
|
6596
6596
|
zIndex: "10000"
|
|
6597
6597
|
}), t;
|
|
6598
6598
|
}
|
|
6599
|
-
function
|
|
6599
|
+
function yp() {
|
|
6600
6600
|
return navigator.vendor !== "Apple Computer, Inc.";
|
|
6601
6601
|
}
|
|
6602
|
-
function
|
|
6602
|
+
function bp(e, t) {
|
|
6603
6603
|
const n = e - t.top;
|
|
6604
6604
|
if (n < vr) return -Math.ceil((vr - Math.max(0, n)) / vr * Pa);
|
|
6605
6605
|
const r = t.bottom - e;
|
|
6606
6606
|
return r < vr ? Math.ceil((vr - Math.max(0, r)) / vr * Pa) : 0;
|
|
6607
6607
|
}
|
|
6608
|
-
function
|
|
6608
|
+
function Ip(e, t) {
|
|
6609
6609
|
if (e != null) {
|
|
6610
|
-
const n =
|
|
6610
|
+
const n = J0[e];
|
|
6611
6611
|
return n == null ? null : {
|
|
6612
6612
|
text: n,
|
|
6613
|
-
title:
|
|
6613
|
+
title: ep[e]
|
|
6614
6614
|
};
|
|
6615
6615
|
}
|
|
6616
6616
|
return t ? {
|
|
@@ -6619,10 +6619,10 @@ function yp(e, t) {
|
|
|
6619
6619
|
width: 6,
|
|
6620
6620
|
height: 6
|
|
6621
6621
|
},
|
|
6622
|
-
title:
|
|
6622
|
+
title: tp
|
|
6623
6623
|
} : null;
|
|
6624
6624
|
}
|
|
6625
|
-
function
|
|
6625
|
+
function wp(e, t, n) {
|
|
6626
6626
|
if (t == null || t.size === 0) return null;
|
|
6627
6627
|
const r = [];
|
|
6628
6628
|
for (let o = e.length - 1; o >= 0; o -= 1) {
|
|
@@ -6647,19 +6647,19 @@ function Ma(e) {
|
|
|
6647
6647
|
function au(e) {
|
|
6648
6648
|
return e.code === "Space" || e.key === " " || e.key === "Spacebar";
|
|
6649
6649
|
}
|
|
6650
|
-
function
|
|
6650
|
+
function xp(e) {
|
|
6651
6651
|
return e.key.length === 1 && /^[\p{L}\p{N}]$/u.test(e.key) && !e.ctrlKey && !e.metaKey && !e.altKey;
|
|
6652
6652
|
}
|
|
6653
|
-
function
|
|
6653
|
+
function Sp(e) {
|
|
6654
6654
|
return e == null ? "" : `[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"] { opacity: 1; }`;
|
|
6655
6655
|
}
|
|
6656
6656
|
function cu(e) {
|
|
6657
6657
|
return e.shiftKey && e.key === "F10" || e.key === "ContextMenu";
|
|
6658
6658
|
}
|
|
6659
|
-
function
|
|
6659
|
+
function Cp(e, t) {
|
|
6660
6660
|
return t && cu(e) || (e.ctrlKey || e.metaKey) && au(e) ? !0 : e.key === "ArrowDown" || e.key === "ArrowLeft" || e.key === "ArrowRight" || e.key === "ArrowUp";
|
|
6661
6661
|
}
|
|
6662
|
-
const
|
|
6662
|
+
const _p = /* @__PURE__ */ new Set([
|
|
6663
6663
|
"ArrowDown",
|
|
6664
6664
|
"ArrowLeft",
|
|
6665
6665
|
"ArrowRight",
|
|
@@ -6675,7 +6675,7 @@ function Ta(e) {
|
|
|
6675
6675
|
return !0;
|
|
6676
6676
|
return !1;
|
|
6677
6677
|
}
|
|
6678
|
-
function
|
|
6678
|
+
function kp(e) {
|
|
6679
6679
|
return {
|
|
6680
6680
|
bottom: e.bottom,
|
|
6681
6681
|
height: e.height,
|
|
@@ -6687,7 +6687,7 @@ function Cp(e) {
|
|
|
6687
6687
|
y: e.y
|
|
6688
6688
|
};
|
|
6689
6689
|
}
|
|
6690
|
-
function
|
|
6690
|
+
function Pp(e, t) {
|
|
6691
6691
|
return {
|
|
6692
6692
|
bottom: t,
|
|
6693
6693
|
height: 0,
|
|
@@ -6699,7 +6699,7 @@ function _p(e, t) {
|
|
|
6699
6699
|
y: t
|
|
6700
6700
|
};
|
|
6701
6701
|
}
|
|
6702
|
-
function
|
|
6702
|
+
function Ep(e, t) {
|
|
6703
6703
|
if (e == null) return t.offsetTop;
|
|
6704
6704
|
const n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
6705
6705
|
return n.top - r.top;
|
|
@@ -6718,7 +6718,7 @@ function Aa(e, t, n) {
|
|
|
6718
6718
|
const o = n.get(e) ?? null;
|
|
6719
6719
|
return o?.dataset.itemParked === "true" ? null : o;
|
|
6720
6720
|
}
|
|
6721
|
-
function
|
|
6721
|
+
function Dp(e) {
|
|
6722
6722
|
if (e == null) return [];
|
|
6723
6723
|
const t = [];
|
|
6724
6724
|
for (const n of e.querySelectorAll('button[data-file-tree-sticky-row="true"]')) {
|
|
@@ -6728,13 +6728,13 @@ function Pp(e) {
|
|
|
6728
6728
|
}
|
|
6729
6729
|
return t;
|
|
6730
6730
|
}
|
|
6731
|
-
function
|
|
6731
|
+
function Mp(e, t) {
|
|
6732
6732
|
if (e == null || t == null) return null;
|
|
6733
6733
|
for (const n of e.querySelectorAll('button[data-item-focused="true"][data-item-parked="true"]')) if (n instanceof HTMLElement && n.dataset.itemPath === t) return n;
|
|
6734
6734
|
return null;
|
|
6735
6735
|
}
|
|
6736
|
-
function
|
|
6737
|
-
const a = Math.max(0, i - o), c = t?.getBoundingClientRect() ?? null, h = c == null || n == null ? null : n.getBoundingClientRect().top - c.top, p =
|
|
6736
|
+
function Tp(e, t, n, r, o, i, l) {
|
|
6737
|
+
const a = Math.max(0, i - o), c = t?.getBoundingClientRect() ?? null, h = c == null || n == null ? null : n.getBoundingClientRect().top - c.top, p = Mp(e, r), g = c == null || p == null ? null : p.getBoundingClientRect().top - c.top;
|
|
6738
6738
|
return Math.max(0, Math.min(g ?? Math.max(h ?? 0, a), Math.max(0, l - o)));
|
|
6739
6739
|
}
|
|
6740
6740
|
function Ra(e, t) {
|
|
@@ -6744,7 +6744,7 @@ function Ra(e, t) {
|
|
|
6744
6744
|
path: t
|
|
6745
6745
|
};
|
|
6746
6746
|
}
|
|
6747
|
-
function
|
|
6747
|
+
function Np(e) {
|
|
6748
6748
|
return e == null ? void 0 : `${e}__tree`;
|
|
6749
6749
|
}
|
|
6750
6750
|
function uu(e, t, n) {
|
|
@@ -6789,7 +6789,7 @@ function La(e) {
|
|
|
6789
6789
|
'[tabindex]:not([tabindex="-1"])'
|
|
6790
6790
|
].join(", ")) ?? e);
|
|
6791
6791
|
}
|
|
6792
|
-
function
|
|
6792
|
+
function Ap(e, t, { actionLaneEnabled: n = !1, customDecoration: r = null, decorationLaneEnabled: o = !1, dragTargetFlattenedSegmentPath: i = null, gitDecoration: l = null, gitLaneActive: a = !1, renameInput: c = null, showDecorativeActionAffordance: h = !1 } = {}) {
|
|
6793
6793
|
const p = wr(e);
|
|
6794
6794
|
return /* @__PURE__ */ N(qr, { children: [
|
|
6795
6795
|
e.depth > 0 ? /* @__PURE__ */ N("div", {
|
|
@@ -6805,7 +6805,7 @@ function Tp(e, t, { actionLaneEnabled: n = !1, customDecoration: r = null, decor
|
|
|
6805
6805
|
}),
|
|
6806
6806
|
/* @__PURE__ */ N("div", {
|
|
6807
6807
|
"data-item-section": "content",
|
|
6808
|
-
children: e.isFlattened ?
|
|
6808
|
+
children: e.isFlattened ? pp(e, c, i) : c ?? /* @__PURE__ */ N(U0, {
|
|
6809
6809
|
minimumLength: 5,
|
|
6810
6810
|
split: "extension",
|
|
6811
6811
|
children: e.name
|
|
@@ -6835,7 +6835,7 @@ function bi(e, t, n, r = {}) {
|
|
|
6835
6835
|
name: e.formatItemName(t.name),
|
|
6836
6836
|
flattenedSegments: t.flattenedSegments?.map((ee) => ({ ...ee, name: e.formatItemName(ee.name) }))
|
|
6837
6837
|
});
|
|
6838
|
-
const { controller: o, renameView: i, visualFocusPath: l, contextHoverPath: a, draggedPathSet: c, dragTarget: h, dragAndDropEnabled: p, shouldSuppressContextMenu: g, handleRowDragStart: u, handleRowDragEnd: I, handleRowTouchStart: y, instanceId: x, itemHeight: _, gitStatusByPath: E, ignoredGitDirectories: D, ignoredInheritanceCache: k, directoriesWithGitChanges: C, gitLaneActive: P, contextMenuEnabled: j, contextMenuTriggerMode: q, contextMenuButtonTriggerEnabled:
|
|
6838
|
+
const { controller: o, renameView: i, visualFocusPath: l, contextHoverPath: a, draggedPathSet: c, dragTarget: h, dragAndDropEnabled: p, shouldSuppressContextMenu: g, handleRowDragStart: u, handleRowDragEnd: I, handleRowTouchStart: y, instanceId: x, itemHeight: _, gitStatusByPath: E, ignoredGitDirectories: D, ignoredInheritanceCache: k, directoriesWithGitChanges: C, gitLaneActive: P, contextMenuEnabled: j, contextMenuTriggerMode: q, contextMenuButtonTriggerEnabled: oe, contextMenuButtonVisibility: ye, contextMenuRightClickEnabled: ue, registerRenameInput: Ee, registerButton: be, resolveIcon: pe, renderDecorationForRow: _e, openContextMenuForRow: Xe, onRowClick: ke, onKeyDown: ae } = e, te = wr(t), { isParked: Qe = !1, mode: Ze = "flow", style: vt } = r, ht = Ze === "sticky", Je = E?.get(te) ?? null ?? wp(t.ancestorPaths, D, k), Lt = t.kind === "directory" && (C?.has(te) ?? !1), ln = _e(t, te), yt = Ip(Je, Lt), Be = j && oe, Bt = ln != null || P || Be, ze = Be && ye === "always", zt = i.getPath() === te, et = zt ? i.getValue() : "", bt = ht || !zt ? null : /* @__PURE__ */ N(ap, {
|
|
6839
6839
|
ref: Ee,
|
|
6840
6840
|
ariaLabel: `Rename ${As(t)}`,
|
|
6841
6841
|
isFlattened: t.isFlattened,
|
|
@@ -6846,7 +6846,7 @@ function bi(e, t, n, r = {}) {
|
|
|
6846
6846
|
onInput: (ee) => {
|
|
6847
6847
|
i.setValue(ee.currentTarget.value);
|
|
6848
6848
|
}
|
|
6849
|
-
}), tt =
|
|
6849
|
+
}), tt = Ap(t, pe, {
|
|
6850
6850
|
actionLaneEnabled: Be,
|
|
6851
6851
|
customDecoration: ln,
|
|
6852
6852
|
decorationLaneEnabled: Bt,
|
|
@@ -6856,7 +6856,7 @@ function bi(e, t, n, r = {}) {
|
|
|
6856
6856
|
renameInput: bt,
|
|
6857
6857
|
showDecorativeActionAffordance: ze
|
|
6858
6858
|
}), ft = {
|
|
6859
|
-
...
|
|
6859
|
+
...cp({
|
|
6860
6860
|
ariaLabel: As(t),
|
|
6861
6861
|
domId: t.isFocused ? uu(x, te, Qe) : void 0,
|
|
6862
6862
|
extraStyle: vt,
|
|
@@ -6888,14 +6888,14 @@ function bi(e, t, n, r = {}) {
|
|
|
6888
6888
|
return;
|
|
6889
6889
|
}
|
|
6890
6890
|
j && (ee.preventDefault(), ue && (o.focusMountedPathFromInput(te), Xe(t, te, {
|
|
6891
|
-
anchorRect:
|
|
6891
|
+
anchorRect: Pp(ee.clientX, ee.clientY),
|
|
6892
6892
|
source: "right-click"
|
|
6893
6893
|
})));
|
|
6894
6894
|
} : void 0,
|
|
6895
6895
|
onFocus: ht ? void 0 : () => {
|
|
6896
6896
|
o.focusMountedPathFromInput(te);
|
|
6897
6897
|
},
|
|
6898
|
-
onKeyDown: ht ? void 0 :
|
|
6898
|
+
onKeyDown: ht ? void 0 : ae,
|
|
6899
6899
|
ref: (ee) => {
|
|
6900
6900
|
be(te, ee);
|
|
6901
6901
|
}
|
|
@@ -6927,16 +6927,16 @@ function bi(e, t, n, r = {}) {
|
|
|
6927
6927
|
children: tt
|
|
6928
6928
|
});
|
|
6929
6929
|
}
|
|
6930
|
-
function
|
|
6930
|
+
function Rp(e, t, n) {
|
|
6931
6931
|
return t.end < t.start ? [] : e.controller.getVisibleRows(t.start, t.end).filter((r) => !n.has(wr(r))).map((r, o) => bi(e, r, t.start + o));
|
|
6932
6932
|
}
|
|
6933
6933
|
function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirectories: r, directoriesWithGitChanges: o, icons: i, instanceId: l, itemHeight: a = Cc, overscan: c = 10, renamingEnabled: h = !1, formatItemName: p, renderRowDecoration: g, searchBlurBehavior: u = "close", searchEnabled: I = !1, searchFakeFocus: y = !1, slotHost: x, stickyFolders: _ = !1, initialViewportHeight: E = 420 }) {
|
|
6934
6934
|
"use no memo";
|
|
6935
|
-
const D = W(null), k = W(null), C = W(!1), P = W(null), j = W(null), q = W(null),
|
|
6935
|
+
const D = W(null), k = W(null), C = W(!1), P = W(null), j = W(null), q = W(null), oe = W(null), ye = W(null), ue = W(/* @__PURE__ */ new Map()), Ee = W(/* @__PURE__ */ new Map()), be = W(() => {
|
|
6936
6936
|
}), pe = W(null), _e = W(0), Xe = W(!1), ke = W(null);
|
|
6937
6937
|
ke.current !== t && (Xe.current = !1, ke.current = t);
|
|
6938
|
-
const
|
|
6939
|
-
|
|
6938
|
+
const ae = W(!1), te = W(null), Qe = W(null), Ze = W(!1), vt = W(null), ht = W(null), Je = W(null), Lt = W(null), ln = W(null), yt = W(null), Be = W(null), Bt = W(null), ze = W(!1), zt = W(null), et = W(null), bt = W(null), tt = W(null), ft = Tn(() => /* @__PURE__ */ new Map(), []), [, ee] = en(0), It = W(!1), [ar, Ht] = en(null), [Mt, cr] = en(null), [In, Or] = en(null), [zo, Gt] = en(null), [jr, Ri] = en(0), [ie, ur] = en(null), re = W(ie);
|
|
6939
|
+
re.current = ie;
|
|
6940
6940
|
const Yt = W(null), wn = W(null), xn = W(null), Ie = W(null), Sn = W(null), Wn = W(!1), Vi = () => {
|
|
6941
6941
|
wn.current = null, xn.current = null, Ie.current = null;
|
|
6942
6942
|
}, Ur = (d, S) => {
|
|
@@ -6987,7 +6987,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
6987
6987
|
Na(Ee.current, d, S);
|
|
6988
6988
|
}, []), jo = st((d) => {
|
|
6989
6989
|
j.current = d;
|
|
6990
|
-
}, []), v = st((d) => Aa(d, Ee.current, ue.current), []), K = n != null || r != null || o != null, { resolveIcon: me } = Tn(() =>
|
|
6990
|
+
}, []), v = st((d) => Aa(d, Ee.current, ue.current), []), K = n != null || r != null || o != null, { resolveIcon: me } = Tn(() => rf(i), [i]), G = t[Pc](), Ae = G.getPath(), wt = Ae != null, Me = t.isSearchOpen(), rt = t.getSearchValue(), Q = t.getFocusedPath(), U = t.getFocusedIndex(), qt = t.getScrollRequest(), Tt = t.isDragAndDropEnabled(), _n = t.getDragSession(), Gn = Tn(() => _n == null ? null : new Set(_n.draggedPaths), [_n]), Xr = _n?.target ?? null, Yn = _n?.primaryPath ?? null, F = Np(l), { overlayHeight: se, overlayRows: J, snapshot: Z, visibleRows: ge } = qo, Re = Z.physical.viewportHeight, Ue = Tn(() => ({
|
|
6991
6991
|
end: Z.window.endIndex,
|
|
6992
6992
|
start: Z.window.startIndex
|
|
6993
6993
|
}), [Z.window.endIndex, Z.window.startIndex]), Ve = J, an = Z.sticky.rows, Qt = Z.physical.totalHeight, fr = Z.sticky.height, Uo = Tn(() => new Set(an.map((d) => wr(d.row))), [an]), Bi = U >= 0 && U >= Ue.start && U <= Ue.end, xu = st((d, S) => g?.({
|
|
@@ -6999,20 +6999,20 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
6999
6999
|
ol.current = Wo;
|
|
7000
7000
|
const pr = W(!0), zi = W(() => {
|
|
7001
7001
|
}), Nt = st((d = !0) => {
|
|
7002
|
-
const S =
|
|
7002
|
+
const S = re.current;
|
|
7003
7003
|
S != null && (pr.current = pr.current && d, ur(null), e?.contextMenu?.onClose?.(), pr.current && Wo(S.path));
|
|
7004
7004
|
}, [e?.contextMenu, Wo]);
|
|
7005
7005
|
zi.current = Nt;
|
|
7006
7006
|
const Qr = st((d) => {
|
|
7007
|
-
const S = d == null ? null :
|
|
7007
|
+
const S = d == null ? null : Ep(q.current, d);
|
|
7008
7008
|
Or((B) => B === S ? B : S);
|
|
7009
7009
|
}, []), il = st((d, S, B) => {
|
|
7010
7010
|
const T = t.getItem(S);
|
|
7011
7011
|
if (T == null) return;
|
|
7012
7012
|
const A = v(S);
|
|
7013
7013
|
if (A?.dataset.fileTreeStickyRow === "true") {
|
|
7014
|
-
const $ =
|
|
7015
|
-
Ur(S, $?.scrollTop ?? null),
|
|
7014
|
+
const $ = oe.current;
|
|
7015
|
+
Ur(S, $?.scrollTop ?? null), ae.current = !0, Ht((we) => we === S ? we : S);
|
|
7016
7016
|
}
|
|
7017
7017
|
T.focus(), Qr(A), pr.current = !0, ur({
|
|
7018
7018
|
anchorRect: B?.anchorRect ?? null,
|
|
@@ -7027,7 +7027,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7027
7027
|
]), Su = st((d) => {
|
|
7028
7028
|
if (h) {
|
|
7029
7029
|
if (t.isSearchOpen()) {
|
|
7030
|
-
const S =
|
|
7030
|
+
const S = oe.current, B = lo(S, Re);
|
|
7031
7031
|
vt.current = U < 0 || S == null ? null : Math.max(0, Math.min(U * a - S.scrollTop, Math.max(0, B - a))), Ze.current = !0;
|
|
7032
7032
|
}
|
|
7033
7033
|
t.startRenaming(d) !== !1 && (Gt("focus"), ee((S) => S + 1));
|
|
@@ -7039,7 +7039,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7039
7039
|
h,
|
|
7040
7040
|
Re
|
|
7041
7041
|
]), Ko = st((d, { restoreTreeFocus: S = !0, targetOffset: B = "live-overlay" } = {}) => {
|
|
7042
|
-
const T =
|
|
7042
|
+
const T = oe.current;
|
|
7043
7043
|
if (T == null) return !1;
|
|
7044
7044
|
t.focusPath(d);
|
|
7045
7045
|
const A = t.getFocusedIndex();
|
|
@@ -7054,7 +7054,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7054
7054
|
stickyFolders: _,
|
|
7055
7055
|
viewportHeight: we
|
|
7056
7056
|
}).snapshot.sticky.height;
|
|
7057
|
-
return
|
|
7057
|
+
return ae.current = !0, ao(T, A, a, we, H, ce), be.current(), Yt.current = S ? d : null, !0;
|
|
7058
7058
|
}, [
|
|
7059
7059
|
t,
|
|
7060
7060
|
a,
|
|
@@ -7087,7 +7087,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7087
7087
|
}, Jr = () => {
|
|
7088
7088
|
Bt.current?.(), Bt.current = null, tt.current != null && (clearTimeout(tt.current), tt.current = null), ze.current = !1, zt.current = null, bt.current = null, et.current != null && (et.current.setAttribute("draggable", "true"), et.current.style.removeProperty("touch-action"), et.current = null), Go(), kn(), Zr(), Be.current = null;
|
|
7089
7089
|
}, Yo = (d, S) => {
|
|
7090
|
-
const B = q.current?.getRootNode(), T = Ea(
|
|
7090
|
+
const B = q.current?.getRootNode(), T = Ea(gp(B instanceof ShadowRoot ? B : document, d, S));
|
|
7091
7091
|
return t.setDragTarget(T), t.getDragSession()?.target ?? null;
|
|
7092
7092
|
}, Hi = (d) => {
|
|
7093
7093
|
const S = t.getDragAndDropConfig()?.openOnDropDelay ?? 800;
|
|
@@ -7107,9 +7107,9 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7107
7107
|
}, S));
|
|
7108
7108
|
}, al = () => {
|
|
7109
7109
|
ht.current = null;
|
|
7110
|
-
const d = ln.current, S =
|
|
7110
|
+
const d = ln.current, S = oe.current;
|
|
7111
7111
|
if (d == null || S == null || t.getDragSession() == null) return;
|
|
7112
|
-
const B = S.getBoundingClientRect(), T =
|
|
7112
|
+
const B = S.getBoundingClientRect(), T = bp(d.clientY, B);
|
|
7113
7113
|
if (T === 0) return;
|
|
7114
7114
|
const A = Math.max(0, S.scrollHeight - S.clientHeight), $ = Math.max(0, Math.min(A, S.scrollTop + T));
|
|
7115
7115
|
$ !== S.scrollTop && (S.scrollTop = $, be.current()), Hi(Yo(d.clientX, d.clientY)), ht.current = sl(al);
|
|
@@ -7125,7 +7125,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7125
7125
|
d.preventDefault();
|
|
7126
7126
|
return;
|
|
7127
7127
|
}
|
|
7128
|
-
if (Be.current = S, d.dataTransfer != null && (d.dataTransfer.effectAllowed = "move", d.dataTransfer.dropEffect = "move", d.dataTransfer.setData("text/plain", B),
|
|
7128
|
+
if (Be.current = S, d.dataTransfer != null && (d.dataTransfer.effectAllowed = "move", d.dataTransfer.dropEffect = "move", d.dataTransfer.setData("text/plain", B), yp())) {
|
|
7129
7129
|
const A = Da(T), $ = T.getBoundingClientRect();
|
|
7130
7130
|
Object.assign(A.style, {
|
|
7131
7131
|
height: `${$.height}px`,
|
|
@@ -7176,8 +7176,8 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7176
7176
|
const He = Ot.touches[0];
|
|
7177
7177
|
if (He == null) return;
|
|
7178
7178
|
Ot.preventDefault();
|
|
7179
|
-
const
|
|
7180
|
-
|
|
7179
|
+
const le = zt.current;
|
|
7180
|
+
le != null && yt.current != null && (yt.current.style.transform = `translate3d(${He.clientX - le.x}px, ${He.clientY - le.y}px, 0)`), Hi(Yo(He.clientX, He.clientY)), cl(He.clientX, He.clientY);
|
|
7181
7181
|
}, Pe = (Ot) => {
|
|
7182
7182
|
const He = Ot.changedTouches[0];
|
|
7183
7183
|
He != null && Yo(He.clientX, He.clientY), t.completeDrag(), Jr();
|
|
@@ -7187,14 +7187,14 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7187
7187
|
Bt.current = () => {
|
|
7188
7188
|
document.removeEventListener("touchmove", de), document.removeEventListener("touchend", Pe), document.removeEventListener("touchcancel", ot);
|
|
7189
7189
|
}, document.addEventListener("touchmove", de, { passive: !1 }), document.addEventListener("touchend", Pe), document.addEventListener("touchcancel", ot);
|
|
7190
|
-
},
|
|
7190
|
+
}, mp);
|
|
7191
7191
|
}, ul = (d) => {
|
|
7192
|
-
if (
|
|
7192
|
+
if (ie != null) {
|
|
7193
7193
|
if (d.key === "Escape") {
|
|
7194
7194
|
Nt(), d.preventDefault(), d.stopPropagation();
|
|
7195
7195
|
return;
|
|
7196
7196
|
}
|
|
7197
|
-
|
|
7197
|
+
_p.has(d.key) && (d.preventDefault(), d.stopPropagation());
|
|
7198
7198
|
return;
|
|
7199
7199
|
}
|
|
7200
7200
|
if (G.isActive()) {
|
|
@@ -7215,7 +7215,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7215
7215
|
else if (d.key === "Enter") {
|
|
7216
7216
|
const Te = t.getFocusedPath();
|
|
7217
7217
|
Te != null && t.selectOnlyPath(Te);
|
|
7218
|
-
const Zt =
|
|
7218
|
+
const Zt = oe.current, ei = lo(Zt, Re);
|
|
7219
7219
|
vt.current = U < 0 || Zt == null ? null : Math.max(0, Math.min(U * a - Zt.scrollTop, Math.max(0, ei - a))), Ze.current = !0, t.closeSearch();
|
|
7220
7220
|
} else if (d.key === "ArrowDown") t.focusNextSearchMatch();
|
|
7221
7221
|
else if (d.key === "ArrowUp") t.focusPreviousSearchMatch();
|
|
@@ -7223,24 +7223,24 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7223
7223
|
Gt("focus"), ee((Te) => Te + 1), d.preventDefault(), d.stopPropagation();
|
|
7224
7224
|
return;
|
|
7225
7225
|
}
|
|
7226
|
-
if (I &&
|
|
7226
|
+
if (I && xp(d)) {
|
|
7227
7227
|
t.openSearch(d.key), ee((Te) => Te + 1), d.preventDefault(), d.stopPropagation();
|
|
7228
7228
|
return;
|
|
7229
7229
|
}
|
|
7230
|
-
const S = nt && cu(d), B =
|
|
7230
|
+
const S = nt && cu(d), B = Cp(d, nt), T = B && q.current != null ? si(q.current) : null, A = B ? new Set(Dp(q.current)) : /* @__PURE__ */ new Set(), $ = T?.dataset.fileTreeStickyPath ?? null, we = T?.dataset.fileTreeStickyRow === "true" && $ != null;
|
|
7231
7231
|
if (we && $ !== Q && A.has($)) {
|
|
7232
|
-
const Te =
|
|
7232
|
+
const Te = oe.current;
|
|
7233
7233
|
Ur($, Te?.scrollTop ?? null), t.focusPath($);
|
|
7234
7234
|
}
|
|
7235
7235
|
const H = t.getFocusedPath(), ce = t.getFocusedIndex(), ve = t.getFocusedItem();
|
|
7236
7236
|
if (ve == null) return;
|
|
7237
|
-
const de = Ma(ve) ? ve : null, Pe = H != null && (Uo.has(H) || we && $ === H && A.has(H)), ot = d.key === "ArrowDown" || d.key === "ArrowUp" || d.key === "ArrowRight" && de != null && de.isExpanded(), Ot = d.key === "ArrowLeft" && Pe && de != null && de.isExpanded(), He =
|
|
7238
|
-
let
|
|
7237
|
+
const de = Ma(ve) ? ve : null, Pe = H != null && (Uo.has(H) || we && $ === H && A.has(H)), ot = d.key === "ArrowDown" || d.key === "ArrowUp" || d.key === "ArrowRight" && de != null && de.isExpanded(), Ot = d.key === "ArrowLeft" && Pe && de != null && de.isExpanded(), He = oe.current;
|
|
7238
|
+
let le = !0;
|
|
7239
7239
|
if (d.shiftKey && d.key === "ArrowDown") t.extendSelectionFromFocused(1);
|
|
7240
7240
|
else if (d.shiftKey && d.key === "ArrowUp") t.extendSelectionFromFocused(-1);
|
|
7241
7241
|
else if (S && H != null && ce >= 0) {
|
|
7242
7242
|
const Te = t.getVisibleRows(ce, ce)[0] ?? null, Zt = Aa(H, Ee.current, ue.current);
|
|
7243
|
-
Te == null || Zt == null ?
|
|
7243
|
+
Te == null || Zt == null ? le = !1 : il(Te, H);
|
|
7244
7244
|
} else if ((d.ctrlKey || d.metaKey) && au(d)) t.toggleFocusedSelection();
|
|
7245
7245
|
else if ((d.ctrlKey || d.metaKey) && d.key.toLowerCase() === "a") t.selectAllVisiblePaths();
|
|
7246
7246
|
else switch (d.key) {
|
|
@@ -7263,16 +7263,16 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7263
7263
|
t.focusLastItem();
|
|
7264
7264
|
break;
|
|
7265
7265
|
default:
|
|
7266
|
-
|
|
7266
|
+
le = !1;
|
|
7267
7267
|
}
|
|
7268
|
-
if (!
|
|
7268
|
+
if (!le) return;
|
|
7269
7269
|
Gt("focus");
|
|
7270
7270
|
const De = t.getFocusedPath(), at = De != null && (Uo.has(De) || A.has(De)), Zo = ot && De !== H, Jo = S && we && $ === H && De === H;
|
|
7271
7271
|
if ((Pe || Jo) && De != null && (Zo && at || Jo))
|
|
7272
|
-
Ur(De, He?.scrollTop ?? null),
|
|
7272
|
+
Ur(De, He?.scrollTop ?? null), ae.current = !0, Ht((Te) => Te === De ? Te : De);
|
|
7273
7273
|
else {
|
|
7274
7274
|
const Te = d.key === "ArrowUp" && Pe && De !== H;
|
|
7275
|
-
De != null && (Te || Ot && De === H) ? (Ho(De,
|
|
7275
|
+
De != null && (Te || Ot && De === H) ? (Ho(De, Tp(q.current, He, T, H, a, fr, Re)), ae.current = !0, Ht((Zt) => Zt === De ? Zt : De)) : Vi();
|
|
7276
7276
|
}
|
|
7277
7277
|
ee((Te) => Te + 1), d.preventDefault(), d.stopPropagation();
|
|
7278
7278
|
};
|
|
@@ -7286,7 +7286,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7286
7286
|
}
|
|
7287
7287
|
}, [Me, I]), xt(() => {
|
|
7288
7288
|
const d = j.current;
|
|
7289
|
-
switch (
|
|
7289
|
+
switch (lp({
|
|
7290
7290
|
hasRenderedInput: d != null,
|
|
7291
7291
|
previousRenamingPath: Qe.current,
|
|
7292
7292
|
renamingPath: Ae
|
|
@@ -7322,7 +7322,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7322
7322
|
const we = si(d)?.dataset.itemPath ?? null;
|
|
7323
7323
|
Ht((H) => H === we ? H : we);
|
|
7324
7324
|
}, A = () => {
|
|
7325
|
-
B(),
|
|
7325
|
+
B(), ae.current = !0, T();
|
|
7326
7326
|
}, $ = (we) => {
|
|
7327
7327
|
const H = we.relatedTarget;
|
|
7328
7328
|
if (H == null) {
|
|
@@ -7331,12 +7331,12 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7331
7331
|
T();
|
|
7332
7332
|
return;
|
|
7333
7333
|
}
|
|
7334
|
-
|
|
7334
|
+
ae.current = !1, Ht(null);
|
|
7335
7335
|
}, 0);
|
|
7336
7336
|
return;
|
|
7337
7337
|
}
|
|
7338
7338
|
if (!(H instanceof Node) || !d.contains(H)) {
|
|
7339
|
-
B(),
|
|
7339
|
+
B(), ae.current = !1, Ht(null);
|
|
7340
7340
|
return;
|
|
7341
7341
|
}
|
|
7342
7342
|
const ce = H instanceof HTMLElement ? H.dataset.itemPath ?? null : null;
|
|
@@ -7350,11 +7350,11 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7350
7350
|
d != null && (Z.physical.scrollTop <= 0 ? d.dataset.scrollAtTop = "true" : delete d.dataset.scrollAtTop);
|
|
7351
7351
|
}, [Z.physical.scrollTop]), xt(() => {
|
|
7352
7352
|
let d = null;
|
|
7353
|
-
const S =
|
|
7353
|
+
const S = oe.current, B = P.current, T = q.current;
|
|
7354
7354
|
if (S == null) return;
|
|
7355
7355
|
pe.current = lo(S, E);
|
|
7356
7356
|
const A = () => {
|
|
7357
|
-
const
|
|
7357
|
+
const le = t.getVisibleCount(), De = fa(pe.current, E), at = Math.max(0, le * a - De);
|
|
7358
7358
|
S.scrollTop > at && (S.scrollTop = at), $t(Yi({
|
|
7359
7359
|
controller: t,
|
|
7360
7360
|
itemHeight: a,
|
|
@@ -7366,18 +7366,18 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7366
7366
|
};
|
|
7367
7367
|
if (!Xe.current) {
|
|
7368
7368
|
Xe.current = !0;
|
|
7369
|
-
const
|
|
7370
|
-
if (
|
|
7371
|
-
const De = fa(pe.current, E), at = t.getVisibleRows(
|
|
7372
|
-
pa(S,
|
|
7369
|
+
const le = t.getFocusedIndex();
|
|
7370
|
+
if (le >= 0) {
|
|
7371
|
+
const De = fa(pe.current, E), at = t.getVisibleRows(le, le)[0] ?? null;
|
|
7372
|
+
pa(S, le, a, De, _ && at != null ? Math.max(0, Math.min(at.ancestorPaths.length * a, Math.max(0, De - a))) : 0);
|
|
7373
7373
|
}
|
|
7374
7374
|
}
|
|
7375
7375
|
be.current = A;
|
|
7376
7376
|
const $ = t.subscribe(() => {
|
|
7377
|
-
|
|
7377
|
+
np(It) && ee((le) => le + 1), A();
|
|
7378
7378
|
}), we = () => {
|
|
7379
7379
|
Wn.current !== !0 && (B != null && (B.dataset.isScrolling ??= ""), T != null && (T.dataset.isScrolling ??= ""), C.current = !0, d != null && clearTimeout(d), d = setTimeout(() => {
|
|
7380
|
-
B != null && delete B.dataset.isScrolling, T != null && delete T.dataset.isScrolling, C.current = !1, Ri((
|
|
7380
|
+
B != null && delete B.dataset.isScrolling, T != null && delete T.dataset.isScrolling, C.current = !1, Ri((le) => le + 1), d = null;
|
|
7381
7381
|
}, 50));
|
|
7382
7382
|
};
|
|
7383
7383
|
let H = null;
|
|
@@ -7388,11 +7388,11 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7388
7388
|
ce();
|
|
7389
7389
|
}, 200));
|
|
7390
7390
|
}, de = () => {
|
|
7391
|
-
if (A(), S.scrollTop > 0 && ce(),
|
|
7391
|
+
if (A(), S.scrollTop > 0 && ce(), re.current != null && C.current && zi.current(), Wn.current === !0) {
|
|
7392
7392
|
C.current = !1;
|
|
7393
7393
|
return;
|
|
7394
7394
|
}
|
|
7395
|
-
cr((
|
|
7395
|
+
cr((le) => le == null ? le : null), we();
|
|
7396
7396
|
}, Pe = () => {
|
|
7397
7397
|
we(), ve();
|
|
7398
7398
|
}, ot = /* @__PURE__ */ new Set([
|
|
@@ -7406,12 +7406,12 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7406
7406
|
"End",
|
|
7407
7407
|
" ",
|
|
7408
7408
|
"Spacebar"
|
|
7409
|
-
]), Ot = (
|
|
7410
|
-
ot.has(
|
|
7409
|
+
]), Ot = (le) => {
|
|
7410
|
+
ot.has(le.key) && Pe();
|
|
7411
7411
|
};
|
|
7412
7412
|
S.addEventListener("scroll", de, { passive: !0 }), S.addEventListener("wheel", Pe, { passive: !0 }), S.addEventListener("touchmove", Pe, { passive: !0 }), S.addEventListener("keydown", Ot);
|
|
7413
|
-
const He = typeof ResizeObserver < "u" ? new ResizeObserver((
|
|
7414
|
-
pe.current = (
|
|
7413
|
+
const He = typeof ResizeObserver < "u" ? new ResizeObserver((le) => {
|
|
7414
|
+
pe.current = (le[0] == null ? null : ip(le[0])) ?? lo(S, E), A();
|
|
7415
7415
|
}) : null;
|
|
7416
7416
|
return He?.observe(S), () => {
|
|
7417
7417
|
be.current = () => {
|
|
@@ -7424,30 +7424,30 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7424
7424
|
c,
|
|
7425
7425
|
_
|
|
7426
7426
|
]), xt(() => {
|
|
7427
|
-
nt ||
|
|
7427
|
+
nt || ie == null || Nt(!1);
|
|
7428
7428
|
}, [
|
|
7429
7429
|
Nt,
|
|
7430
7430
|
nt,
|
|
7431
|
-
|
|
7431
|
+
ie
|
|
7432
7432
|
]);
|
|
7433
|
-
const dl = Tn(() =>
|
|
7433
|
+
const dl = Tn(() => ie == null ? null : `${ie.path}::${ie.source}`, [ie]);
|
|
7434
7434
|
xt(() => {
|
|
7435
7435
|
if (dl == null) {
|
|
7436
7436
|
x?.clearSlotContent(ni);
|
|
7437
7437
|
return;
|
|
7438
7438
|
}
|
|
7439
|
-
const d =
|
|
7439
|
+
const d = re.current;
|
|
7440
7440
|
if (d == null) return;
|
|
7441
7441
|
const S = k.current ?? D.current;
|
|
7442
7442
|
if (S == null) return;
|
|
7443
7443
|
const B = {
|
|
7444
7444
|
anchorElement: S,
|
|
7445
|
-
anchorRect: d.anchorRect ??
|
|
7445
|
+
anchorRect: d.anchorRect ?? kp(S.getBoundingClientRect()),
|
|
7446
7446
|
close: (A) => {
|
|
7447
7447
|
zi.current(A?.restoreFocus ?? !0);
|
|
7448
7448
|
},
|
|
7449
7449
|
restoreFocus: () => {
|
|
7450
|
-
pr.current && ol.current(
|
|
7450
|
+
pr.current && ol.current(re.current?.path ?? null);
|
|
7451
7451
|
}
|
|
7452
7452
|
}, T = e?.contextMenu?.render?.(d.item, B) ?? null;
|
|
7453
7453
|
return x?.setSlotContent(ni, T), e?.contextMenu?.onOpen?.(d.item, B), La(T), queueMicrotask(() => {
|
|
@@ -7460,13 +7460,13 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7460
7460
|
e?.contextMenu,
|
|
7461
7461
|
x
|
|
7462
7462
|
]), xt(() => {
|
|
7463
|
-
|
|
7463
|
+
ie != null && t.getItem(ie.path) == null && Nt();
|
|
7464
7464
|
}, [
|
|
7465
7465
|
Nt,
|
|
7466
|
-
|
|
7466
|
+
ie,
|
|
7467
7467
|
t
|
|
7468
7468
|
]), xt(() => {
|
|
7469
|
-
if (
|
|
7469
|
+
if (ie == null) return;
|
|
7470
7470
|
const d = q.current?.getRootNode(), S = d instanceof ShadowRoot ? d.host : q.current, B = (A) => {
|
|
7471
7471
|
const $ = A.target;
|
|
7472
7472
|
$ instanceof Node && (Ta(A) || D.current?.contains($) !== !0 && S?.contains($) !== !0 && Nt());
|
|
@@ -7476,25 +7476,25 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7476
7476
|
return document.addEventListener("mousedown", B, !0), document.addEventListener("keydown", T, !0), () => {
|
|
7477
7477
|
document.removeEventListener("mousedown", B, !0), document.removeEventListener("keydown", T, !0);
|
|
7478
7478
|
};
|
|
7479
|
-
}, [Nt,
|
|
7480
|
-
const d =
|
|
7479
|
+
}, [Nt, ie]), xt(() => {
|
|
7480
|
+
const d = oe.current, S = q.current;
|
|
7481
7481
|
if (d == null || S == null) {
|
|
7482
7482
|
te.current = Q;
|
|
7483
7483
|
return;
|
|
7484
7484
|
}
|
|
7485
|
-
const B = Q == null ? null : ue.current.get(Q) ?? null, T = si(S), A = T?.dataset.itemPath ?? null, $ = wt && j.current === T, we = I && ye.current === T, H = Ze.current && !Me, ce = vt.current ?? 0, ve = Yt.current, de = wn.current, Pe = xn.current, ot = Ie.current, Ot = T != null, He =
|
|
7485
|
+
const B = Q == null ? null : ue.current.get(Q) ?? null, T = si(S), A = T?.dataset.itemPath ?? null, $ = wt && j.current === T, we = I && ye.current === T, H = Ze.current && !Me, ce = vt.current ?? 0, ve = Yt.current, de = wn.current, Pe = xn.current, ot = Ie.current, Ot = T != null, He = ae.current || Ot, le = te.current !== Q, De = de != null && de === Q && Q != null;
|
|
7486
7486
|
let at = !1, Zo = !1;
|
|
7487
7487
|
if (qt != null && qt.id !== _e.current) {
|
|
7488
7488
|
_e.current = qt.id;
|
|
7489
7489
|
const qi = qt.visibleIndex, gl = t.getVisibleRows(qi, qi)[0] ?? null;
|
|
7490
7490
|
if (gl != null) {
|
|
7491
7491
|
const ed = _ ? Math.max(0, Math.min(gl.ancestorPaths.length * a, Math.max(0, Re - a))) : fr;
|
|
7492
|
-
at = !0, Zo =
|
|
7492
|
+
at = !0, Zo = sp(d, qi, a, Re, Qt, qt.offset, ed);
|
|
7493
7493
|
}
|
|
7494
7494
|
t.clearScrollRequest(qt.id);
|
|
7495
7495
|
}
|
|
7496
7496
|
const Jo = !at && H && ao(d, U, a, Re, Qt, ce), Te = !at && ve != null && ve === Q && ao(d, U, a, Re, Qt, fr), Zt = !at && Pe != null && Pe.path === Q && ao(d, U, a, Re, Qt, Pe.viewportOffset), ei = !at && ot != null && ot.path === Q && d.scrollTop !== ot.scrollTop;
|
|
7497
|
-
if (ei && (d.scrollTop = ot.scrollTop), (ei || Zo || Te || Zt || Jo || He &&
|
|
7497
|
+
if (ei && (d.scrollTop = ot.scrollTop), (ei || Zo || Te || Zt || Jo || He && le && ve !== Q && !De && pa(d, U, a, Re, fr)) && be.current(), at) {
|
|
7498
7498
|
te.current = Q;
|
|
7499
7499
|
return;
|
|
7500
7500
|
}
|
|
@@ -7514,7 +7514,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7514
7514
|
H && U >= 0 && (ao(d, U, a, Re, Qt, ce), be.current()), te.current = Q;
|
|
7515
7515
|
return;
|
|
7516
7516
|
}
|
|
7517
|
-
(
|
|
7517
|
+
(le || H || ve === Q || de === Q || Pe?.path === Q || ot?.path === Q || A == null || A !== Q) && (Ir(B), ve === Q && (Yt.current = null), de === Q && (wn.current = null), Pe?.path === Q && (xn.current = null), ot?.path === Q && (Ie.current = null), Ze.current = !1, vt.current = null), te.current = Q;
|
|
7518
7518
|
}, [
|
|
7519
7519
|
t,
|
|
7520
7520
|
U,
|
|
@@ -7532,11 +7532,11 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7532
7532
|
Qt,
|
|
7533
7533
|
ge
|
|
7534
7534
|
]);
|
|
7535
|
-
const Du = U >= 0 && U >= Z.visible.startIndex && U <= Z.visible.endIndex, Mu = Q != null && Ve.some((d) => wr(d.row) === Q), Tu = Du || Mu, Nu = Xt &&
|
|
7535
|
+
const Du = U >= 0 && U >= Z.visible.startIndex && U <= Z.visible.endIndex, Mu = Q != null && Ve.some((d) => wr(d.row) === Q), Tu = Du || Mu, Nu = Xt && ae.current === !0 && Tu ? Q : null, Au = zo === "pointer" ? Mt : null, Xn = ie?.path ?? Sn.current ?? Au ?? Nu ?? Mt, hl = ie?.source === "right-click";
|
|
7536
7536
|
xt(() => {
|
|
7537
|
-
C.current &&
|
|
7537
|
+
C.current && ie == null || Qr(v(Xn));
|
|
7538
7538
|
}, [
|
|
7539
|
-
|
|
7539
|
+
ie,
|
|
7540
7540
|
v,
|
|
7541
7541
|
Ue,
|
|
7542
7542
|
Re,
|
|
@@ -7574,13 +7574,13 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7574
7574
|
S instanceof Node && q.current?.contains(S) === !0 || (kn(), Zr(), t.setDragTarget(null));
|
|
7575
7575
|
}, Bu = (d) => {
|
|
7576
7576
|
!Tt || t.getDragSession() == null || ze.current || (d.preventDefault(), Yo(d.clientX, d.clientY), t.completeDrag(), Go(), kn(), Zr(), Be.current = null);
|
|
7577
|
-
}, eo = Z.window.height, zu = Z.window.offsetTop, Hu = Math.min(0, Re - eo), $u = Math.min(0, Re - eo - fr), qu = ar === Q || Ze.current, mr = Q != null && qu && !Bi && U >= 0 ? ge[U] ?? t.getVisibleRows(U, U)[0] ?? null : null, fl = mr == null ? null : ma(U, a, Ue, eo), Pn = Be.current, Ou = Yn != null && Pn != null && Pn.path === Yn && Pn.index >= Ue.start && Pn.index <= Ue.end, to = Yn != null && Pn != null && Pn.path === Yn && !Ou && Pn.path !== mr?.path ? Pn : null, pl = to == null ? null : ma(to.index, a, Ue, eo), ju =
|
|
7577
|
+
}, eo = Z.window.height, zu = Z.window.offsetTop, Hu = Math.min(0, Re - eo), $u = Math.min(0, Re - eo - fr), qu = ar === Q || Ze.current, mr = Q != null && qu && !Bi && U >= 0 ? ge[U] ?? t.getVisibleRows(U, U)[0] ?? null : null, fl = mr == null ? null : ma(U, a, Ue, eo), Pn = Be.current, Ou = Yn != null && Pn != null && Pn.path === Yn && Pn.index >= Ue.start && Pn.index <= Ue.end, to = Yn != null && Pn != null && Pn.path === Yn && !Ou && Pn.path !== mr?.path ? Pn : null, pl = to == null ? null : ma(to.index, a, Ue, eo), ju = Sp((U >= 0 ? ge[U] ?? t.getVisibleRows(U, U)[0] ?? null : null)?.ancestorPaths.at(-1) ?? null), Uu = Me && Q != null ? uu(l, Q, !Bi) : void 0, Wu = ie?.path ?? (Me ? Q : ar), Ku = ie?.path ?? Mt, no = v(Xn), $i = nt && Xt && !hl && !wt && no != null && In != null && Xn != null, Gu = nt && ($i || ie != null), Xo = ie?.anchorRect, ml = Xo == null && no != null && In != null && (ie != null || $i) ? In : null, Yu = Xo != null ? {
|
|
7578
7578
|
left: `${Xo.left}px`,
|
|
7579
7579
|
position: "fixed",
|
|
7580
7580
|
right: "auto",
|
|
7581
7581
|
top: `${Xo.top}px`
|
|
7582
7582
|
} : ml != null ? { top: `${ml}px` } : void 0, Xu = hl ? { opacity: "0" } : void 0, Qu = st((d, S, B, T) => {
|
|
7583
|
-
const A =
|
|
7583
|
+
const A = up({
|
|
7584
7584
|
event: {
|
|
7585
7585
|
ctrlKey: d.ctrlKey,
|
|
7586
7586
|
metaKey: d.metaKey,
|
|
@@ -7604,7 +7604,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7604
7604
|
break;
|
|
7605
7605
|
}
|
|
7606
7606
|
const ce = d.currentTarget instanceof HTMLElement ? d.currentTarget : null, ve = S.index >= Z.visible.startIndex && S.index <= Z.visible.endIndex, de = T === "flow" && ve && ce != null && ce.dataset.itemParked !== "true";
|
|
7607
|
-
t.focusMountedPathFromInput(H), de && (
|
|
7607
|
+
t.focusMountedPathFromInput(H), de && (ae.current = !0, Ht((Pe) => Pe === H ? Pe : H), Gt("focus")), $ && t.toggleMountedDirectoryFromInput(H), A.closeSearch && t.closeSearch(), A.revealCanonical && Ko(H, { targetOffset: "sticky-parents" });
|
|
7608
7608
|
}, [
|
|
7609
7609
|
t,
|
|
7610
7610
|
Me,
|
|
@@ -7713,14 +7713,14 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7713
7713
|
})
|
|
7714
7714
|
}) : null,
|
|
7715
7715
|
/* @__PURE__ */ N("div", {
|
|
7716
|
-
ref:
|
|
7716
|
+
ref: oe,
|
|
7717
7717
|
"data-file-tree-virtualized-scroll": "true",
|
|
7718
7718
|
children: [_ && Yr && Ve.length > 0 ? /* @__PURE__ */ N("div", {
|
|
7719
7719
|
"aria-hidden": "true",
|
|
7720
7720
|
"data-file-tree-sticky-overlay": "true",
|
|
7721
7721
|
children: /* @__PURE__ */ N("div", {
|
|
7722
7722
|
"data-file-tree-sticky-overlay-content": "true",
|
|
7723
|
-
style: { height: `${
|
|
7723
|
+
style: { height: `${se}px` },
|
|
7724
7724
|
children: Ve.map((d, S) => bi(Ju, d.row, `sticky:${wr(d.row)}`, {
|
|
7725
7725
|
mode: "sticky",
|
|
7726
7726
|
style: {
|
|
@@ -7748,7 +7748,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7748
7748
|
bottom: `${$u}px`
|
|
7749
7749
|
},
|
|
7750
7750
|
children: [
|
|
7751
|
-
|
|
7751
|
+
Rp(Qo, Ue, Uo),
|
|
7752
7752
|
mr != null && fl != null ? bi(Qo, mr, `parked:${mr.path}`, {
|
|
7753
7753
|
isParked: !0,
|
|
7754
7754
|
style: {
|
|
@@ -7783,16 +7783,16 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7783
7783
|
children: [/* @__PURE__ */ N("button", {
|
|
7784
7784
|
ref: k,
|
|
7785
7785
|
type: "button",
|
|
7786
|
-
"data-type":
|
|
7786
|
+
"data-type": Zh,
|
|
7787
7787
|
"aria-label": "Options",
|
|
7788
7788
|
"aria-haspopup": "menu",
|
|
7789
|
-
"aria-expanded":
|
|
7789
|
+
"aria-expanded": ie != null ? "true" : "false",
|
|
7790
7790
|
"data-visible": $i ? "true" : "false",
|
|
7791
7791
|
onMouseDown: (d) => {
|
|
7792
7792
|
d.preventDefault();
|
|
7793
7793
|
},
|
|
7794
7794
|
onClick: (d) => {
|
|
7795
|
-
if (d.preventDefault(), d.stopPropagation(),
|
|
7795
|
+
if (d.preventDefault(), d.stopPropagation(), ie != null) {
|
|
7796
7796
|
Nt();
|
|
7797
7797
|
return;
|
|
7798
7798
|
}
|
|
@@ -7801,9 +7801,9 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7801
7801
|
tabIndex: -1,
|
|
7802
7802
|
style: Xu,
|
|
7803
7803
|
children: /* @__PURE__ */ N(yo, { ...me("file-tree-icon-ellipsis") })
|
|
7804
|
-
}),
|
|
7804
|
+
}), ie != null ? /* @__PURE__ */ N("slot", { name: ni }) : null]
|
|
7805
7805
|
}) : null,
|
|
7806
|
-
|
|
7806
|
+
ie != null ? /* @__PURE__ */ N("div", {
|
|
7807
7807
|
"data-type": "context-menu-wash",
|
|
7808
7808
|
"aria-hidden": "true",
|
|
7809
7809
|
onMouseDownCapture: (d) => {
|
|
@@ -7824,7 +7824,7 @@ function Ba({ composition: e, controller: t, gitStatusByPath: n, ignoredGitDirec
|
|
|
7824
7824
|
}
|
|
7825
7825
|
const nl = {
|
|
7826
7826
|
hydrateRoot: (e, t) => {
|
|
7827
|
-
|
|
7827
|
+
N0(ks(Ba, t), e);
|
|
7828
7828
|
},
|
|
7829
7829
|
renderRoot: (e, t) => {
|
|
7830
7830
|
Es(ks(Ba, t), e);
|
|
@@ -7836,13 +7836,13 @@ const nl = {
|
|
|
7836
7836
|
function co(e, t) {
|
|
7837
7837
|
nl.renderRoot(e, t);
|
|
7838
7838
|
}
|
|
7839
|
-
function
|
|
7839
|
+
function Vp(e, t) {
|
|
7840
7840
|
nl.hydrateRoot(e, t);
|
|
7841
7841
|
}
|
|
7842
|
-
function
|
|
7842
|
+
function Fp(e) {
|
|
7843
7843
|
nl.unmountRoot(e);
|
|
7844
7844
|
}
|
|
7845
|
-
var gt, qn, Dt, Ii, mo, du, ja,
|
|
7845
|
+
var gt, qn, Dt, Ii, mo, du, ja, Lp = (ja = class {
|
|
7846
7846
|
constructor() {
|
|
7847
7847
|
M(this, Dt);
|
|
7848
7848
|
M(this, gt, /* @__PURE__ */ new Map());
|
|
@@ -7908,10 +7908,10 @@ var gt, qn, Dt, Ii, mo, du, ja, Vp = (ja = class {
|
|
|
7908
7908
|
}, ja);
|
|
7909
7909
|
/*! Modified by Qwen Code: display-only formatItemName and search; see package NOTICE. */
|
|
7910
7910
|
let za = 0;
|
|
7911
|
-
function
|
|
7911
|
+
function Bp(e) {
|
|
7912
7912
|
return e != null && e.length > 0 ? e : (za += 1, `pst_ft_${za}`);
|
|
7913
7913
|
}
|
|
7914
|
-
function
|
|
7914
|
+
function zp({ initialVisibleRowCount: e, itemHeight: t }) {
|
|
7915
7915
|
return e == null ? 420 : Math.max(0, e) * (t ?? Cc);
|
|
7916
7916
|
}
|
|
7917
7917
|
function Ha(e) {
|
|
@@ -7927,7 +7927,7 @@ function $a(e) {
|
|
|
7927
7927
|
function qa(e) {
|
|
7928
7928
|
return Array.from(e.children).filter((t) => t instanceof SVGElement);
|
|
7929
7929
|
}
|
|
7930
|
-
var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, Nr, Ar, Rr, Ge, Vr, Fr, Y, hu, Qn, go, Rs, fu, wi, pu, mu, gu, vu, Vs, Fs, yu, bu,
|
|
7930
|
+
var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, Nr, Ar, Rr, Ge, Vr, Fr, Y, hu, Qn, go, Rs, fu, wi, pu, mu, gu, vu, Vs, Fs, yu, bu, Hp = (Xi = class {
|
|
7931
7931
|
constructor(e) {
|
|
7932
7932
|
M(this, Y);
|
|
7933
7933
|
M(this, fn);
|
|
@@ -7940,7 +7940,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
|
|
|
7940
7940
|
M(this, Vo);
|
|
7941
7941
|
M(this, Fo);
|
|
7942
7942
|
M(this, Lo);
|
|
7943
|
-
M(this, mn, new
|
|
7943
|
+
M(this, mn, new Lp());
|
|
7944
7944
|
M(this, gn);
|
|
7945
7945
|
M(this, vn);
|
|
7946
7946
|
M(this, Vt);
|
|
@@ -7955,12 +7955,12 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
|
|
|
7955
7955
|
M(this, Vr, !1);
|
|
7956
7956
|
M(this, Fr, !1);
|
|
7957
7957
|
const { composition: t, density: n, fileTreeSearchMode: r, gitStatus: o, id: i, initialSearchQuery: l, icons: a, itemHeight: c, onSearchChange: h, onSelectionChange: p, overscan: g, formatItemName: u, renderRowDecoration: I, renaming: y, search: x, searchBlurBehavior: _, searchFakeFocus: E, stickyFolders: D, unsafeCSS: k, initialVisibleRowCount: C, ...P } = e;
|
|
7958
|
-
b(this, fn, t), b(this, pn,
|
|
7958
|
+
b(this, fn, t), b(this, pn, Bp(i)), b(this, kt, oa(o)), b(this, yn, a), b(this, bn, k), b(this, Tr, p), b(this, No, I), b(this, Ao, u), b(this, Ro, y != null && y !== !1), b(this, Vo, _), b(this, Fo, x === !0), b(this, Lo, E === !0), b(this, gn, O1(n, c)), b(this, vn, {
|
|
7959
7959
|
itemHeight: s(this, gn).itemHeight,
|
|
7960
7960
|
overscan: g,
|
|
7961
7961
|
stickyFolders: D,
|
|
7962
7962
|
initialVisibleRowCount: C
|
|
7963
|
-
}), b(this, X, new
|
|
7963
|
+
}), b(this, X, new y0({
|
|
7964
7964
|
...P,
|
|
7965
7965
|
formatItemName: u,
|
|
7966
7966
|
fileTreeSearchMode: r,
|
|
@@ -7972,7 +7972,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
|
|
|
7972
7972
|
}));
|
|
7973
7973
|
}
|
|
7974
7974
|
unmount() {
|
|
7975
|
-
s(this, Ge) != null && (
|
|
7975
|
+
s(this, Ge) != null && (Fp(s(this, Ge)), delete s(this, Ge).dataset.fileTreeVirtualizedWrapper, b(this, Ge, void 0)), s(this, mn).clearAll(), s(this, mn).setHost(null), s(this, Vt) != null && (delete s(this, Vt).dataset.fileTreeVirtualized, m(this, Y, bu).call(this, s(this, Vt)), b(this, Vt, void 0));
|
|
7976
7976
|
}
|
|
7977
7977
|
cleanUp() {
|
|
7978
7978
|
var e;
|
|
@@ -8052,7 +8052,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
|
|
|
8052
8052
|
s(this, X).batch(e);
|
|
8053
8053
|
}
|
|
8054
8054
|
applyGitStatusPatch(e) {
|
|
8055
|
-
const t =
|
|
8055
|
+
const t = x0(s(this, kt), e);
|
|
8056
8056
|
if (t === s(this, kt)) return;
|
|
8057
8057
|
b(this, kt, t);
|
|
8058
8058
|
const n = m(this, Y, go).call(this);
|
|
@@ -8116,7 +8116,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
|
|
|
8116
8116
|
}
|
|
8117
8117
|
hydrate({ fileTreeContainer: e }) {
|
|
8118
8118
|
const t = m(this, Y, Fs).call(this, e), n = m(this, Y, Vs).call(this, t);
|
|
8119
|
-
m(this, Y, wi).call(this),
|
|
8119
|
+
m(this, Y, wi).call(this), Vp(n, m(this, Y, Qn).call(this));
|
|
8120
8120
|
}
|
|
8121
8121
|
render({ containerWrapper: e, fileTreeContainer: t }) {
|
|
8122
8122
|
const n = m(this, Y, Fs).call(this, t ?? s(this, Vt), e), r = m(this, Y, Vs).call(this, n);
|
|
@@ -8124,7 +8124,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
|
|
|
8124
8124
|
}
|
|
8125
8125
|
}, fn = new WeakMap(), X = new WeakMap(), pn = new WeakMap(), Tr = new WeakMap(), No = new WeakMap(), Ao = new WeakMap(), Ro = new WeakMap(), Vo = new WeakMap(), Fo = new WeakMap(), Lo = new WeakMap(), mn = new WeakMap(), gn = new WeakMap(), vn = new WeakMap(), Vt = new WeakMap(), kt = new WeakMap(), yn = new WeakMap(), bn = new WeakMap(), Pt = new WeakMap(), Nr = new WeakMap(), Ar = new WeakMap(), Rr = new WeakMap(), Ge = new WeakMap(), Vr = new WeakMap(), Fr = new WeakMap(), Y = new WeakSet(), hu = function() {
|
|
8126
8126
|
return {
|
|
8127
|
-
initialViewportHeight:
|
|
8127
|
+
initialViewportHeight: zp({
|
|
8128
8128
|
initialVisibleRowCount: s(this, vn).initialVisibleRowCount,
|
|
8129
8129
|
itemHeight: s(this, vn).itemHeight
|
|
8130
8130
|
}),
|
|
@@ -8172,7 +8172,7 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
|
|
|
8172
8172
|
}
|
|
8173
8173
|
s(this, mn).setSlotHtml(Qi, s(this, fn)?.header?.html ?? null);
|
|
8174
8174
|
}, pu = function(e) {
|
|
8175
|
-
const t = qa(e).find((r) => $a(r)), n = Ha(
|
|
8175
|
+
const t = qa(e).find((r) => $a(r)), n = Ha(Wh(li(s(this, yn)).set));
|
|
8176
8176
|
n != null && (t != null && t.outerHTML === n.outerHTML || (t != null ? t.replaceWith(n) : e.prepend(n)));
|
|
8177
8177
|
}, mu = function(e) {
|
|
8178
8178
|
const t = qa(e), n = t.find((l) => $a(l)), r = t.filter((l) => l !== n), o = li(s(this, yn)).spriteSheet?.trim() ?? "";
|
|
@@ -8191,14 +8191,14 @@ var Xi, fn, X, pn, Tr, No, Ao, Ro, Vo, Fo, Lo, mn, gn, vn, Vt, kt, yn, bn, Pt, N
|
|
|
8191
8191
|
}
|
|
8192
8192
|
}, gu = function(e) {
|
|
8193
8193
|
const t = li(s(this, yn));
|
|
8194
|
-
t.colored &&
|
|
8194
|
+
t.colored && Gh(t.set) ? e.dataset.fileTreeColoredIcons = "true" : delete e.dataset.fileTreeColoredIcons;
|
|
8195
8195
|
}, vu = function(e) {
|
|
8196
8196
|
const t = e.querySelector(`style[${kl}]`);
|
|
8197
8197
|
if (s(this, Pt) == null && t instanceof HTMLStyleElement && b(this, Pt, t), s(this, bn) == null || s(this, bn) === "") {
|
|
8198
8198
|
s(this, Pt)?.remove(), b(this, Pt, void 0), b(this, Nr, void 0);
|
|
8199
8199
|
return;
|
|
8200
8200
|
}
|
|
8201
|
-
s(this, Pt)?.parentNode === e && s(this, Nr) === s(this, bn) || (s(this, Pt) ?? b(this, Pt, document.createElement("style")), s(this, Pt).setAttribute(kl, ""), s(this, Pt).parentNode !== e && e.appendChild(s(this, Pt)), s(this, Pt).textContent =
|
|
8201
|
+
s(this, Pt)?.parentNode === e && s(this, Nr) === s(this, bn) || (s(this, Pt) ?? b(this, Pt, document.createElement("style")), s(this, Pt).setAttribute(kl, ""), s(this, Pt).parentNode !== e && e.appendChild(s(this, Pt)), s(this, Pt).textContent = j1(s(this, bn)), b(this, Nr, s(this, bn)));
|
|
8202
8202
|
}, Vs = function(e) {
|
|
8203
8203
|
if (s(this, Ge) != null) return s(this, Ge);
|
|
8204
8204
|
const t = e.shadowRoot;
|
|
@@ -8247,34 +8247,34 @@ const wu = zs(({ className: e, ...t }, n) => /* @__PURE__ */ V(
|
|
|
8247
8247
|
}
|
|
8248
8248
|
));
|
|
8249
8249
|
wu.displayName = "ResizableHandle";
|
|
8250
|
-
const
|
|
8251
|
-
browser:
|
|
8252
|
-
toolbar:
|
|
8253
|
-
path:
|
|
8254
|
-
columns:
|
|
8255
|
-
content:
|
|
8256
|
-
sidebar:
|
|
8257
|
-
splitHandle:
|
|
8258
|
-
search:
|
|
8259
|
-
tree:
|
|
8260
|
-
notices:
|
|
8261
|
-
noMatches:
|
|
8262
|
-
dropHint:
|
|
8263
|
-
uploadProgress:
|
|
8264
|
-
uploadError:
|
|
8250
|
+
const $p = "_browser_pgoiu_1", qp = "_toolbar_pgoiu_10", Op = "_path_pgoiu_19", jp = "_columns_pgoiu_29", Up = "_content_pgoiu_36", Wp = "_sidebar_pgoiu_46", Kp = "_splitHandle_pgoiu_56", Gp = "_search_pgoiu_66", Yp = "_tree_pgoiu_86", Xp = "_notices_pgoiu_100", Qp = "_noMatches_pgoiu_111", Zp = "_dropHint_pgoiu_118", Jp = "_uploadProgress_pgoiu_131", em = "_uploadError_pgoiu_145", lt = {
|
|
8251
|
+
browser: $p,
|
|
8252
|
+
toolbar: qp,
|
|
8253
|
+
path: Op,
|
|
8254
|
+
columns: jp,
|
|
8255
|
+
content: Up,
|
|
8256
|
+
sidebar: Wp,
|
|
8257
|
+
splitHandle: Kp,
|
|
8258
|
+
search: Gp,
|
|
8259
|
+
tree: Yp,
|
|
8260
|
+
notices: Xp,
|
|
8261
|
+
noMatches: Qp,
|
|
8262
|
+
dropHint: Zp,
|
|
8263
|
+
uploadProgress: Jp,
|
|
8264
|
+
uploadError: em
|
|
8265
8265
|
};
|
|
8266
8266
|
function Oa(e) {
|
|
8267
8267
|
const t = e.replace(/\/$/, "");
|
|
8268
8268
|
return t.slice(0, Math.max(0, t.lastIndexOf("/")));
|
|
8269
8269
|
}
|
|
8270
|
-
function
|
|
8270
|
+
function cm({
|
|
8271
8271
|
workspaceCwd: e,
|
|
8272
8272
|
actions: t,
|
|
8273
8273
|
renderPreview: n,
|
|
8274
8274
|
onOpenPreview: r,
|
|
8275
8275
|
onReferenceFile: o
|
|
8276
8276
|
}) {
|
|
8277
|
-
const { t: i } =
|
|
8277
|
+
const { t: i } = zd(), l = od(), a = Hd(), { fileUploadEnabled: c } = id(), h = Ld(
|
|
8278
8278
|
() => c !== !1 && t.uploadWorkspaceFile ? { uploadWorkspaceFile: t.uploadWorkspaceFile } : void 0,
|
|
8279
8279
|
[t, c]
|
|
8280
8280
|
), p = a.capabilities?.limits?.maxWorkspaceFileUploadBytes ?? 50 * 1024 * 1024, { uploads: g, isBusy: u, uploadFiles: I, removeUpload: y } = sd({
|
|
@@ -8283,17 +8283,17 @@ function lm({
|
|
|
8283
8283
|
targetKey: `${e}:${h ? "enabled" : "disabled"}`
|
|
8284
8284
|
}), x = it(
|
|
8285
8285
|
/* @__PURE__ */ new Map()
|
|
8286
|
-
), _ = it(/* @__PURE__ */ new Set()), [E, D] = We(), k = it(void 0), C = Il(), P = Il(), j = it(null), q = it(null),
|
|
8286
|
+
), _ = it(/* @__PURE__ */ new Set()), [E, D] = We(), k = it(void 0), C = Il(), P = Il(), j = it(null), q = it(null), oe = it(!1), ye = it(i("files.title"));
|
|
8287
8287
|
ye.current = i("files.title");
|
|
8288
|
-
const ue = it(void 0), Ee =
|
|
8288
|
+
const ue = it(void 0), Ee = Bd(), be = it(null), pe = it(!1), _e = it(void 0), Xe = it(void 0), [ke, ae] = We(), te = it(void 0), [Qe, Ze] = We(), [vt, ht] = We("file"), [Je, Lt] = We(!1), [ln, yt] = We(), [Be, Bt] = We(""), [ze, zt] = We(!1), [et, bt] = We(), tt = it(void 0), [ft, ee] = We(), It = ft !== void 0, [ar, Ht] = We(!1), [Mt, cr] = We(!0), [In, Or] = We(""), [zo, Gt] = We(!1), [jr, Ri] = We(0), [ie, ur] = We([]), [re, Yt] = We(), [wn, xn] = We(), Ie = it(void 0), Sn = it(!1);
|
|
8289
8289
|
oo(() => {
|
|
8290
8290
|
const v = requestAnimationFrame(() => {
|
|
8291
8291
|
It ? P.current?.resize("70%") : C.current?.resize("100%");
|
|
8292
8292
|
});
|
|
8293
8293
|
return () => cancelAnimationFrame(v);
|
|
8294
8294
|
}, [It, P, C]), oo(() => {
|
|
8295
|
-
if (It || !Mt || !
|
|
8296
|
-
|
|
8295
|
+
if (It || !Mt || !oe.current) return;
|
|
8296
|
+
oe.current = !1;
|
|
8297
8297
|
const v = requestAnimationFrame(() => {
|
|
8298
8298
|
q.current?.focus({ preventScroll: !0 });
|
|
8299
8299
|
});
|
|
@@ -8303,8 +8303,8 @@ function lm({
|
|
|
8303
8303
|
if (!v) return;
|
|
8304
8304
|
let K = !1;
|
|
8305
8305
|
const me = {};
|
|
8306
|
-
Ie.current = me, Yt(void 0),
|
|
8307
|
-
const G = /* @__PURE__ */ new Set(), Ae = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Map(), Q = !!(t.createFile || t.createDirectory || t.deleteDirectory), U = new
|
|
8306
|
+
Ie.current = me, Yt(void 0), ae(void 0), zt(!1), Ze(void 0), Lt(!1);
|
|
8307
|
+
const G = /* @__PURE__ */ new Set(), Ae = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Map(), Q = !!(t.createFile || t.createDirectory || t.deleteDirectory), U = new Hp({
|
|
8308
8308
|
paths: [],
|
|
8309
8309
|
initialExpansion: "closed",
|
|
8310
8310
|
flattenEmptyDirectories: !1,
|
|
@@ -8332,9 +8332,9 @@ function lm({
|
|
|
8332
8332
|
contextMenu: {
|
|
8333
8333
|
triggerMode: Q ? "both" : "right-click",
|
|
8334
8334
|
buttonVisibility: "when-needed",
|
|
8335
|
-
onOpen(F,
|
|
8335
|
+
onOpen(F, se) {
|
|
8336
8336
|
const J = Me.get(F.path);
|
|
8337
|
-
J && (J.kind === "file" || J.kind === "symlink" || J.kind === "directory" && Q) ? (Sn.current = !1, pe.current = !1, xn(void 0), Yt({ path: F.path, kind: J.kind, context:
|
|
8337
|
+
J && (J.kind === "file" || J.kind === "symlink" || J.kind === "directory" && Q) ? (Sn.current = !1, pe.current = !1, xn(void 0), Yt({ path: F.path, kind: J.kind, context: se })) : se.close();
|
|
8338
8338
|
},
|
|
8339
8339
|
onClose() {
|
|
8340
8340
|
Sn.current = !0, K || Yt(void 0);
|
|
@@ -8345,8 +8345,8 @@ function lm({
|
|
|
8345
8345
|
F === null && Or("");
|
|
8346
8346
|
},
|
|
8347
8347
|
onSelectionChange(F) {
|
|
8348
|
-
const
|
|
8349
|
-
|
|
8348
|
+
const se = F.at(-1), J = se ? Me.get(se) : void 0;
|
|
8349
|
+
se && (J?.kind === "file" || J?.kind === "symlink") && (ee(se), Ht(!1));
|
|
8350
8350
|
}
|
|
8351
8351
|
});
|
|
8352
8352
|
ue.current = U, ur([]), Gt(!1), U.render({ fileTreeContainer: v });
|
|
@@ -8356,11 +8356,11 @@ function lm({
|
|
|
8356
8356
|
K || ur([...rt.values()]);
|
|
8357
8357
|
}, Xr = async (F) => {
|
|
8358
8358
|
if (K || rt.has(F)) return;
|
|
8359
|
-
const
|
|
8360
|
-
Ae.set(F,
|
|
8359
|
+
const se = {};
|
|
8360
|
+
Ae.set(F, se), rt.set(F, { path: F }), Gn();
|
|
8361
8361
|
try {
|
|
8362
8362
|
const J = await t.listDirectory(F || ".");
|
|
8363
|
-
if (K || Ae.get(F) !==
|
|
8363
|
+
if (K || Ae.get(F) !== se) return;
|
|
8364
8364
|
const Z = new Map(
|
|
8365
8365
|
J.entries.map((Ve) => [Ve.name, Ve])
|
|
8366
8366
|
);
|
|
@@ -8380,7 +8380,7 @@ function lm({
|
|
|
8380
8380
|
}).filter((Ve) => !U.getItem(Ve.path));
|
|
8381
8381
|
Ue.length && U.batch(Ue);
|
|
8382
8382
|
} catch (J) {
|
|
8383
|
-
if (K || Ae.get(F) !==
|
|
8383
|
+
if (K || Ae.get(F) !== se) return;
|
|
8384
8384
|
rt.set(F, {
|
|
8385
8385
|
path: F,
|
|
8386
8386
|
error: J instanceof Error ? J.message : String(J)
|
|
@@ -8390,22 +8390,22 @@ function lm({
|
|
|
8390
8390
|
}, Yn = U.subscribe(() => {
|
|
8391
8391
|
const F = !!U.getSearchValue();
|
|
8392
8392
|
if (Gt(F && U.getSearchMatchingPaths().length === 0), !F)
|
|
8393
|
-
for (const [
|
|
8393
|
+
for (const [se, J] of Me) {
|
|
8394
8394
|
if (J.kind !== "directory") continue;
|
|
8395
|
-
const Z = U.getItem(
|
|
8396
|
-
Z && "isExpanded" in Z && Z.isExpanded() && Xr(
|
|
8395
|
+
const Z = U.getItem(se);
|
|
8396
|
+
Z && "isExpanded" in Z && Z.isExpanded() && Xr(se.slice(0, -1));
|
|
8397
8397
|
}
|
|
8398
8398
|
});
|
|
8399
8399
|
return tt.current = (F) => {
|
|
8400
8400
|
rt.delete(F), Xr(F);
|
|
8401
|
-
}, Xe.current = (F,
|
|
8402
|
-
const J = `${F}${
|
|
8403
|
-
|
|
8401
|
+
}, Xe.current = (F, se) => {
|
|
8402
|
+
const J = `${F}${se === "directory" ? "/" : ""}`;
|
|
8403
|
+
se === "directory" && U.getItem(J) && (te.current?.(F), ee(
|
|
8404
8404
|
(Ve) => Ve?.startsWith(J) ? void 0 : Ve
|
|
8405
8405
|
));
|
|
8406
8406
|
const Z = {
|
|
8407
8407
|
name: F.split("/").at(-1),
|
|
8408
|
-
kind:
|
|
8408
|
+
kind: se,
|
|
8409
8409
|
ignored: !1
|
|
8410
8410
|
};
|
|
8411
8411
|
G.delete(F), wt.set(J, Z), Me.set(J, Z);
|
|
@@ -8414,13 +8414,13 @@ function lm({
|
|
|
8414
8414
|
const Ue = ge ? U.getItem(`${ge}/`) : void 0;
|
|
8415
8415
|
Ue && "expand" in Ue && Ue.expand(), Gn();
|
|
8416
8416
|
}, te.current = (F) => {
|
|
8417
|
-
const
|
|
8417
|
+
const se = `${F}/`;
|
|
8418
8418
|
G.add(F);
|
|
8419
8419
|
for (const ge of Me.keys())
|
|
8420
|
-
(ge === F || ge ===
|
|
8420
|
+
(ge === F || ge === se || ge.startsWith(se)) && (Me.delete(ge), wt.delete(ge));
|
|
8421
8421
|
for (const ge of rt.keys())
|
|
8422
|
-
(ge === F || ge.startsWith(
|
|
8423
|
-
U.getItem(
|
|
8422
|
+
(ge === F || ge.startsWith(se)) && (rt.delete(ge), Ae.delete(ge));
|
|
8423
|
+
U.getItem(se) ? U.remove(se, { recursive: !0 }) : U.getItem(F) && U.remove(F);
|
|
8424
8424
|
const J = F.split("/").slice(0, -1).join("/"), Z = rt.get(J);
|
|
8425
8425
|
Z && rt.set(J, {
|
|
8426
8426
|
...Z,
|
|
@@ -8432,7 +8432,7 @@ function lm({
|
|
|
8432
8432
|
if ([...G].some((Z) => F.startsWith(`${Z}/`)))
|
|
8433
8433
|
return;
|
|
8434
8434
|
G.delete(F);
|
|
8435
|
-
const
|
|
8435
|
+
const se = Oa(F);
|
|
8436
8436
|
if (!Me.has(F)) {
|
|
8437
8437
|
const Z = {
|
|
8438
8438
|
name: F.split("/").at(-1),
|
|
@@ -8441,8 +8441,8 @@ function lm({
|
|
|
8441
8441
|
};
|
|
8442
8442
|
wt.set(F, Z), Me.set(F, Z), U.getItem(F) || U.add(F);
|
|
8443
8443
|
}
|
|
8444
|
-
const J = rt.get(
|
|
8445
|
-
J && rt.set(
|
|
8444
|
+
const J = rt.get(se);
|
|
8445
|
+
J && rt.set(se, { ...J, empty: !1 }), Gn();
|
|
8446
8446
|
}, Xr(""), () => {
|
|
8447
8447
|
K = !0, Ie.current === me && (Ie.current = void 0), _n.disconnect(), Yn(), U.cleanUp(), v.replaceChildren(), ue.current = void 0, tt.current = void 0, Xe.current = void 0, te.current = void 0, k.current = void 0;
|
|
8448
8448
|
};
|
|
@@ -8501,14 +8501,14 @@ function lm({
|
|
|
8501
8501
|
v.dataTransfer.types.includes("Files") && (v.preventDefault(), v.stopPropagation(), v.dataTransfer.dropEffect = "none");
|
|
8502
8502
|
}, $t = async (v, K = !1) => {
|
|
8503
8503
|
const me = Ie.current;
|
|
8504
|
-
Sn.current = !0, pe.current = K,
|
|
8504
|
+
Sn.current = !0, pe.current = K, re?.context.close({ restoreFocus: !K }), Yt(void 0);
|
|
8505
8505
|
try {
|
|
8506
8506
|
await v();
|
|
8507
8507
|
} catch (G) {
|
|
8508
8508
|
Ie.current === me && xn(G instanceof Error ? G.message : String(G));
|
|
8509
8509
|
}
|
|
8510
8510
|
}, Yr = () => {
|
|
8511
|
-
const v = document.activeElement, K =
|
|
8511
|
+
const v = document.activeElement, K = re?.path, me = Ie.current;
|
|
8512
8512
|
_e.current = () => {
|
|
8513
8513
|
if (Ie.current === me)
|
|
8514
8514
|
if (K) {
|
|
@@ -8521,7 +8521,7 @@ function lm({
|
|
|
8521
8521
|
} else v instanceof HTMLElement && v.isConnected && v.focus();
|
|
8522
8522
|
};
|
|
8523
8523
|
}, hr = (v, K) => {
|
|
8524
|
-
Yr(), Bt(""), bt(void 0),
|
|
8524
|
+
Yr(), Bt(""), bt(void 0), ae({ kind: v, parent: K.replace(/\/$/, "") });
|
|
8525
8525
|
}, nt = async () => {
|
|
8526
8526
|
if (!ke || ze) return;
|
|
8527
8527
|
if (!Be.trim() || Be === "." || Be === ".." || /[\\/\p{Cc}]/u.test(Be)) {
|
|
@@ -8534,7 +8534,7 @@ function lm({
|
|
|
8534
8534
|
zt(!0), bt(void 0);
|
|
8535
8535
|
try {
|
|
8536
8536
|
if (await K(me), Ie.current !== G) return;
|
|
8537
|
-
Xe.current?.(me, v.kind),
|
|
8537
|
+
Xe.current?.(me, v.kind), ae(void 0);
|
|
8538
8538
|
} catch (Ae) {
|
|
8539
8539
|
Ie.current === G && bt(Ae instanceof Error ? Ae.message : String(Ae));
|
|
8540
8540
|
} finally {
|
|
@@ -8557,7 +8557,7 @@ function lm({
|
|
|
8557
8557
|
}
|
|
8558
8558
|
}, Xt = /^(?:[a-z]:[\\/]|\\\\)/i.test(e) ? "\\" : "/", Kn = (v) => v ? `${e.replace(Xt === "\\" ? /[\\/]+$/ : /\/+$/, "")}${Xt}${v.replaceAll("/", Xt)}` : e, Oo = gr(
|
|
8559
8559
|
e.split(/[\\/]/).filter(Boolean).at(-1) ?? e
|
|
8560
|
-
), Fi = Kn(
|
|
8560
|
+
), Fi = Kn(re?.path ?? ""), Li = ft && /\.(?:md|markdown|html?)$/i.test(ft), jo = ie.filter(
|
|
8561
8561
|
(v) => v.error || v.empty || v.truncated
|
|
8562
8562
|
);
|
|
8563
8563
|
return /* @__PURE__ */ xe(
|
|
@@ -8569,13 +8569,13 @@ function lm({
|
|
|
8569
8569
|
onDragOver: qo,
|
|
8570
8570
|
onDrop: qo,
|
|
8571
8571
|
children: [
|
|
8572
|
-
|
|
8572
|
+
re && /* @__PURE__ */ xe(
|
|
8573
8573
|
ld,
|
|
8574
8574
|
{
|
|
8575
8575
|
open: !0,
|
|
8576
8576
|
modal: !1,
|
|
8577
8577
|
onOpenChange: (v) => {
|
|
8578
|
-
!v && !Sn.current && (Sn.current = !0,
|
|
8578
|
+
!v && !Sn.current && (Sn.current = !0, re.context.close(), Yt(void 0));
|
|
8579
8579
|
},
|
|
8580
8580
|
children: [
|
|
8581
8581
|
/* @__PURE__ */ V(ad, { asChild: !0, children: /* @__PURE__ */ V(
|
|
@@ -8585,8 +8585,8 @@ function lm({
|
|
|
8585
8585
|
tabIndex: -1,
|
|
8586
8586
|
style: {
|
|
8587
8587
|
position: "fixed",
|
|
8588
|
-
left:
|
|
8589
|
-
top:
|
|
8588
|
+
left: re.context.anchorRect.left,
|
|
8589
|
+
top: re.context.anchorRect.top,
|
|
8590
8590
|
width: 0,
|
|
8591
8591
|
height: 0,
|
|
8592
8592
|
pointerEvents: "none"
|
|
@@ -8597,18 +8597,18 @@ function lm({
|
|
|
8597
8597
|
cd,
|
|
8598
8598
|
{
|
|
8599
8599
|
className: "w-48",
|
|
8600
|
-
"aria-label": `${i("files.title")}: ${gr(
|
|
8600
|
+
"aria-label": `${i("files.title")}: ${gr(re.path)}`,
|
|
8601
8601
|
"aria-labelledby": void 0,
|
|
8602
8602
|
"data-file-tree-context-menu-root": "true",
|
|
8603
8603
|
onCloseAutoFocus: (v) => {
|
|
8604
|
-
v.preventDefault(), pe.current ||
|
|
8604
|
+
v.preventDefault(), pe.current || re.context.restoreFocus();
|
|
8605
8605
|
},
|
|
8606
|
-
children:
|
|
8606
|
+
children: re.kind === "directory" ? /* @__PURE__ */ xe(ti, { children: [
|
|
8607
8607
|
t.createFile && /* @__PURE__ */ V(
|
|
8608
8608
|
cn,
|
|
8609
8609
|
{
|
|
8610
8610
|
onSelect: () => void $t(
|
|
8611
|
-
() => hr("file",
|
|
8611
|
+
() => hr("file", re.path),
|
|
8612
8612
|
!0
|
|
8613
8613
|
),
|
|
8614
8614
|
children: i("files.newFile")
|
|
@@ -8618,7 +8618,7 @@ function lm({
|
|
|
8618
8618
|
cn,
|
|
8619
8619
|
{
|
|
8620
8620
|
onSelect: () => void $t(
|
|
8621
|
-
() => hr("directory",
|
|
8621
|
+
() => hr("directory", re.path),
|
|
8622
8622
|
!0
|
|
8623
8623
|
),
|
|
8624
8624
|
children: i("files.newFolder")
|
|
@@ -8630,7 +8630,7 @@ function lm({
|
|
|
8630
8630
|
variant: "destructive",
|
|
8631
8631
|
onSelect: () => {
|
|
8632
8632
|
Yr();
|
|
8633
|
-
const v =
|
|
8633
|
+
const v = re.path.replace(/\/$/, "");
|
|
8634
8634
|
$t(() => {
|
|
8635
8635
|
yt(void 0), ht("directory"), Ze(v);
|
|
8636
8636
|
}, !0);
|
|
@@ -8639,10 +8639,10 @@ function lm({
|
|
|
8639
8639
|
}
|
|
8640
8640
|
)
|
|
8641
8641
|
] }) : /* @__PURE__ */ xe(ti, { children: [
|
|
8642
|
-
(/\.(?:md|markdown|html?)$/i.test(
|
|
8642
|
+
(/\.(?:md|markdown|html?)$/i.test(re.path) || ud(re.path) || dd(re.path) || hd(re.path) || fd({ workspacePath: re.path })) && /* @__PURE__ */ V(
|
|
8643
8643
|
cn,
|
|
8644
8644
|
{
|
|
8645
|
-
onSelect: () => void $t(() => r(
|
|
8645
|
+
onSelect: () => void $t(() => r(re.path), !0),
|
|
8646
8646
|
children: i("attachment.showPreview")
|
|
8647
8647
|
}
|
|
8648
8648
|
),
|
|
@@ -8650,14 +8650,14 @@ function lm({
|
|
|
8650
8650
|
cn,
|
|
8651
8651
|
{
|
|
8652
8652
|
disabled: !o,
|
|
8653
|
-
onSelect: () => void $t(() => o?.(
|
|
8653
|
+
onSelect: () => void $t(() => o?.(re.path), !0),
|
|
8654
8654
|
children: i("files.reference")
|
|
8655
8655
|
}
|
|
8656
8656
|
),
|
|
8657
8657
|
/* @__PURE__ */ V(
|
|
8658
8658
|
cn,
|
|
8659
8659
|
{
|
|
8660
|
-
onSelect: () => void $t(() => bl(
|
|
8660
|
+
onSelect: () => void $t(() => bl(re.path)),
|
|
8661
8661
|
children: i("files.copyRelativePath")
|
|
8662
8662
|
}
|
|
8663
8663
|
),
|
|
@@ -8676,9 +8676,9 @@ function lm({
|
|
|
8676
8676
|
onSelect: () => {
|
|
8677
8677
|
const v = Ie.current;
|
|
8678
8678
|
$t(
|
|
8679
|
-
() =>
|
|
8679
|
+
() => Dd(
|
|
8680
8680
|
t,
|
|
8681
|
-
|
|
8681
|
+
re.path,
|
|
8682
8682
|
void 0,
|
|
8683
8683
|
() => Ie.current !== v
|
|
8684
8684
|
)
|
|
@@ -8687,13 +8687,13 @@ function lm({
|
|
|
8687
8687
|
children: i("common.download")
|
|
8688
8688
|
}
|
|
8689
8689
|
),
|
|
8690
|
-
|
|
8690
|
+
re.kind === "file" && t.deleteWorkspaceFile && /* @__PURE__ */ V(
|
|
8691
8691
|
cn,
|
|
8692
8692
|
{
|
|
8693
8693
|
variant: "destructive",
|
|
8694
8694
|
onSelect: () => {
|
|
8695
8695
|
Yr();
|
|
8696
|
-
const v =
|
|
8696
|
+
const v = re.path;
|
|
8697
8697
|
$t(() => {
|
|
8698
8698
|
yt(void 0), ht("file"), Ze(v);
|
|
8699
8699
|
}, !0);
|
|
@@ -8708,14 +8708,14 @@ function lm({
|
|
|
8708
8708
|
}
|
|
8709
8709
|
),
|
|
8710
8710
|
/* @__PURE__ */ V(
|
|
8711
|
-
|
|
8711
|
+
pd,
|
|
8712
8712
|
{
|
|
8713
8713
|
open: ke !== void 0,
|
|
8714
8714
|
onOpenChange: (v) => {
|
|
8715
|
-
!v && !ze &&
|
|
8715
|
+
!v && !ze && ae(void 0);
|
|
8716
8716
|
},
|
|
8717
8717
|
children: /* @__PURE__ */ xe(
|
|
8718
|
-
|
|
8718
|
+
md,
|
|
8719
8719
|
{
|
|
8720
8720
|
showCloseButton: !ze,
|
|
8721
8721
|
onOpenAutoFocus: (v) => {
|
|
@@ -8731,11 +8731,11 @@ function lm({
|
|
|
8731
8731
|
v.preventDefault(), _e.current?.();
|
|
8732
8732
|
},
|
|
8733
8733
|
children: [
|
|
8734
|
-
/* @__PURE__ */ xe(
|
|
8735
|
-
/* @__PURE__ */ V(
|
|
8734
|
+
/* @__PURE__ */ xe(gd, { children: [
|
|
8735
|
+
/* @__PURE__ */ V(vd, { children: i(
|
|
8736
8736
|
ke?.kind === "directory" ? "files.newFolder" : "files.newFile"
|
|
8737
8737
|
) }),
|
|
8738
|
-
/* @__PURE__ */ xe(
|
|
8738
|
+
/* @__PURE__ */ xe(yd, { className: "break-all", children: [
|
|
8739
8739
|
i("files.destination"),
|
|
8740
8740
|
":",
|
|
8741
8741
|
" ",
|
|
@@ -8749,7 +8749,7 @@ function lm({
|
|
|
8749
8749
|
v.preventDefault(), nt();
|
|
8750
8750
|
},
|
|
8751
8751
|
children: [
|
|
8752
|
-
/* @__PURE__ */ V(
|
|
8752
|
+
/* @__PURE__ */ V(bd, { htmlFor: Ee, children: i("files.name") }),
|
|
8753
8753
|
/* @__PURE__ */ V(
|
|
8754
8754
|
yl,
|
|
8755
8755
|
{
|
|
@@ -8772,14 +8772,14 @@ function lm({
|
|
|
8772
8772
|
children: et
|
|
8773
8773
|
}
|
|
8774
8774
|
),
|
|
8775
|
-
/* @__PURE__ */ xe(
|
|
8775
|
+
/* @__PURE__ */ xe(Id, { className: "mt-4", children: [
|
|
8776
8776
|
/* @__PURE__ */ V(
|
|
8777
8777
|
Jt,
|
|
8778
8778
|
{
|
|
8779
8779
|
type: "button",
|
|
8780
8780
|
variant: "outline",
|
|
8781
8781
|
disabled: ze,
|
|
8782
|
-
onClick: () =>
|
|
8782
|
+
onClick: () => ae(void 0),
|
|
8783
8783
|
children: i("common.cancel")
|
|
8784
8784
|
}
|
|
8785
8785
|
),
|
|
@@ -8794,14 +8794,14 @@ function lm({
|
|
|
8794
8794
|
}
|
|
8795
8795
|
),
|
|
8796
8796
|
/* @__PURE__ */ V(
|
|
8797
|
-
|
|
8797
|
+
wd,
|
|
8798
8798
|
{
|
|
8799
8799
|
open: Qe !== void 0,
|
|
8800
8800
|
onOpenChange: (v) => {
|
|
8801
8801
|
!v && !Je && Ze(void 0);
|
|
8802
8802
|
},
|
|
8803
8803
|
children: /* @__PURE__ */ xe(
|
|
8804
|
-
|
|
8804
|
+
xd,
|
|
8805
8805
|
{
|
|
8806
8806
|
onEscapeKeyDown: (v) => {
|
|
8807
8807
|
Je && v.preventDefault();
|
|
@@ -8810,11 +8810,11 @@ function lm({
|
|
|
8810
8810
|
v.preventDefault(), _e.current?.();
|
|
8811
8811
|
},
|
|
8812
8812
|
children: [
|
|
8813
|
-
/* @__PURE__ */ xe(
|
|
8814
|
-
/* @__PURE__ */ V(
|
|
8813
|
+
/* @__PURE__ */ xe(Sd, { children: [
|
|
8814
|
+
/* @__PURE__ */ V(Cd, { children: i(
|
|
8815
8815
|
vt === "directory" ? "files.deleteFolderTitle" : "files.deleteTitle"
|
|
8816
8816
|
) }),
|
|
8817
|
-
/* @__PURE__ */ xe(
|
|
8817
|
+
/* @__PURE__ */ xe(_d, { children: [
|
|
8818
8818
|
i(
|
|
8819
8819
|
vt === "directory" ? "files.deleteFolderWarning" : "files.deleteWarning"
|
|
8820
8820
|
),
|
|
@@ -8824,10 +8824,10 @@ function lm({
|
|
|
8824
8824
|
] })
|
|
8825
8825
|
] }),
|
|
8826
8826
|
ln && /* @__PURE__ */ V("div", { role: "alert", className: "break-words text-sm text-destructive", children: ln }),
|
|
8827
|
-
/* @__PURE__ */ xe(
|
|
8828
|
-
/* @__PURE__ */ V(
|
|
8827
|
+
/* @__PURE__ */ xe(kd, { children: [
|
|
8828
|
+
/* @__PURE__ */ V(Pd, { disabled: Je, children: i("common.cancel") }),
|
|
8829
8829
|
/* @__PURE__ */ V(
|
|
8830
|
-
|
|
8830
|
+
Ed,
|
|
8831
8831
|
{
|
|
8832
8832
|
variant: "destructive",
|
|
8833
8833
|
disabled: Je || u,
|
|
@@ -8867,7 +8867,7 @@ function lm({
|
|
|
8867
8867
|
size: "sm",
|
|
8868
8868
|
onClick: () => Ht((v) => !v),
|
|
8869
8869
|
children: [
|
|
8870
|
-
ar ? /* @__PURE__ */ V(
|
|
8870
|
+
ar ? /* @__PURE__ */ V(Md, {}) : /* @__PURE__ */ V(Td, {}),
|
|
8871
8871
|
i(ar ? "attachment.showPreview" : "attachment.showSource")
|
|
8872
8872
|
]
|
|
8873
8873
|
}
|
|
@@ -8880,7 +8880,7 @@ function lm({
|
|
|
8880
8880
|
"aria-label": i("files.newFile"),
|
|
8881
8881
|
title: i("files.newFile"),
|
|
8882
8882
|
onClick: () => hr("file", ""),
|
|
8883
|
-
children: /* @__PURE__ */ V(
|
|
8883
|
+
children: /* @__PURE__ */ V(Nd, {})
|
|
8884
8884
|
}
|
|
8885
8885
|
),
|
|
8886
8886
|
t.createDirectory && /* @__PURE__ */ V(
|
|
@@ -8891,7 +8891,7 @@ function lm({
|
|
|
8891
8891
|
"aria-label": i("files.newFolder"),
|
|
8892
8892
|
title: i("files.newFolder"),
|
|
8893
8893
|
onClick: () => hr("directory", ""),
|
|
8894
|
-
children: /* @__PURE__ */ V(
|
|
8894
|
+
children: /* @__PURE__ */ V(Ad, {})
|
|
8895
8895
|
}
|
|
8896
8896
|
),
|
|
8897
8897
|
/* @__PURE__ */ V(
|
|
@@ -8902,7 +8902,7 @@ function lm({
|
|
|
8902
8902
|
onClick: () => Ri((v) => v + 1),
|
|
8903
8903
|
"aria-label": i("common.refresh"),
|
|
8904
8904
|
title: i("common.refresh"),
|
|
8905
|
-
children: /* @__PURE__ */ V(
|
|
8905
|
+
children: /* @__PURE__ */ V(Rd, {})
|
|
8906
8906
|
}
|
|
8907
8907
|
),
|
|
8908
8908
|
It && /* @__PURE__ */ V(
|
|
@@ -8914,7 +8914,7 @@ function lm({
|
|
|
8914
8914
|
"aria-label": i("files.toggleTree"),
|
|
8915
8915
|
title: i("files.toggleTree"),
|
|
8916
8916
|
"aria-pressed": Mt,
|
|
8917
|
-
children: /* @__PURE__ */ V(
|
|
8917
|
+
children: /* @__PURE__ */ V(Vd, {})
|
|
8918
8918
|
}
|
|
8919
8919
|
),
|
|
8920
8920
|
It && /* @__PURE__ */ V(
|
|
@@ -8925,7 +8925,7 @@ function lm({
|
|
|
8925
8925
|
"aria-label": i("files.closePreview"),
|
|
8926
8926
|
title: i("files.closePreview"),
|
|
8927
8927
|
onClick: () => {
|
|
8928
|
-
|
|
8928
|
+
oe.current = !0, ue.current?.getItem(ft)?.deselect(), C.current?.expand(), ee(void 0);
|
|
8929
8929
|
},
|
|
8930
8930
|
children: /* @__PURE__ */ V(wl, {})
|
|
8931
8931
|
}
|
|
@@ -9019,7 +9019,7 @@ function lm({
|
|
|
9019
9019
|
E === "." ? Oo : ro(E)
|
|
9020
9020
|
] }),
|
|
9021
9021
|
/* @__PURE__ */ xe("div", { className: lt.search, children: [
|
|
9022
|
-
/* @__PURE__ */ V(
|
|
9022
|
+
/* @__PURE__ */ V(Fd, { "aria-hidden": !0 }),
|
|
9023
9023
|
/* @__PURE__ */ V(
|
|
9024
9024
|
yl,
|
|
9025
9025
|
{
|
|
@@ -9098,5 +9098,5 @@ function lm({
|
|
|
9098
9098
|
);
|
|
9099
9099
|
}
|
|
9100
9100
|
export {
|
|
9101
|
-
|
|
9101
|
+
cm as WorkspaceFileBrowser
|
|
9102
9102
|
};
|