@aiquants/directory-tree 6.1.2 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,77 +1,482 @@
1
- import { jsx as u, jsxs as Ne, Fragment as cr } from "react/jsx-runtime";
2
- import { VIRTUAL_SCROLL_LABEL_KEYS as ht, VIRTUAL_SCROLL_LABEL_CATALOGS as In, resolveVirtualScrollLocale as An, resolveVirtualScrollLabels as dr, VirtualScroll as ur, ScrollBar as hr } from "@aiquants/virtualscroll";
3
- import * as ae from "react";
4
- import { useRef as H, useEffect as Ae, useCallback as E, memo as zt, useState as de, useMemo as O, useSyncExternalStore as fr, useLayoutEffect as En, useImperativeHandle as mr, useTransition as pr } from "react";
1
+ import { jsx as f, jsxs as Z0, Fragment as M2 } from "react/jsx-runtime";
2
+ import { VIRTUAL_SCROLL_LABEL_KEYS as p1, VIRTUAL_SCROLL_LABEL_CATALOGS as Me, resolveVirtualScrollLocale as ke, resolveVirtualScrollLabels as E2, VirtualScroll as b2, ScrollBar as w2 } from "@aiquants/virtualscroll";
3
+ import * as t from "react";
4
+ import { createContext as S2, useRef as _, useEffect as T0, useCallback as b, memo as D1, useState as f0, useMemo as R, useSyncExternalStore as L2, useLayoutEffect as Ee, useImperativeHandle as I2, useTransition as C2 } from "react";
5
5
  import { twMerge as j } from "tailwind-merge";
6
- import { FileIcon as yr, FileText as gr, FileCode as br, FileZip as Sr, FileVideo as vr, FileAudio as wr, FileImage as Ir, FilePpt as Er, FileDoc as xr, FileCsv as Nr, FileXls as Rr, FilePdf as kr, FileMd as Cr } from "@phosphor-icons/react";
7
- function Pr({
6
+ function F2({
8
7
  title: e,
9
- titleId: t,
8
+ titleId: a,
10
9
  ...n
11
10
  }, r) {
12
- return /* @__PURE__ */ ae.createElement("svg", Object.assign({
11
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
13
12
  xmlns: "http://www.w3.org/2000/svg",
14
13
  viewBox: "0 0 24 24",
15
14
  fill: "currentColor",
16
15
  "aria-hidden": "true",
17
16
  "data-slot": "icon",
18
17
  ref: r,
19
- "aria-labelledby": t
20
- }, n), e ? /* @__PURE__ */ ae.createElement("title", {
21
- id: t
22
- }, e) : null, /* @__PURE__ */ ae.createElement("path", {
18
+ "aria-labelledby": a
19
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
20
+ id: a
21
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
23
22
  fillRule: "evenodd",
24
23
  d: "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",
25
24
  clipRule: "evenodd"
26
25
  }));
27
26
  }
28
- const Tr = /* @__PURE__ */ ae.forwardRef(Pr);
29
- function Or({
27
+ const N2 = /* @__PURE__ */ t.forwardRef(F2);
28
+ function x2({
30
29
  title: e,
31
- titleId: t,
30
+ titleId: a,
32
31
  ...n
33
32
  }, r) {
34
- return /* @__PURE__ */ ae.createElement("svg", Object.assign({
33
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
35
34
  xmlns: "http://www.w3.org/2000/svg",
36
35
  viewBox: "0 0 24 24",
37
36
  fill: "currentColor",
38
37
  "aria-hidden": "true",
39
38
  "data-slot": "icon",
40
39
  ref: r,
41
- "aria-labelledby": t
42
- }, n), e ? /* @__PURE__ */ ae.createElement("title", {
43
- id: t
44
- }, e) : null, /* @__PURE__ */ ae.createElement("path", {
40
+ "aria-labelledby": a
41
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
42
+ id: a
43
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
45
44
  fillRule: "evenodd",
46
45
  d: "M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",
47
46
  clipRule: "evenodd"
48
47
  }));
49
48
  }
50
- const Lr = /* @__PURE__ */ ae.forwardRef(Or);
51
- function Dr({
49
+ const R2 = /* @__PURE__ */ t.forwardRef(x2);
50
+ function k2({
52
51
  title: e,
53
- titleId: t,
52
+ titleId: a,
54
53
  ...n
55
54
  }, r) {
56
- return /* @__PURE__ */ ae.createElement("svg", Object.assign({
55
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
57
56
  xmlns: "http://www.w3.org/2000/svg",
58
57
  viewBox: "0 0 24 24",
59
58
  fill: "currentColor",
60
59
  "aria-hidden": "true",
61
60
  "data-slot": "icon",
62
61
  ref: r,
63
- "aria-labelledby": t
64
- }, n), e ? /* @__PURE__ */ ae.createElement("title", {
65
- id: t
66
- }, e) : null, /* @__PURE__ */ ae.createElement("path", {
62
+ "aria-labelledby": a
63
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
64
+ id: a
65
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
67
66
  d: "M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"
68
67
  }));
69
68
  }
70
- const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
69
+ const P2 = /* @__PURE__ */ t.forwardRef(k2), T2 = S2({
70
+ color: "currentColor",
71
+ size: "1em",
72
+ weight: "regular",
73
+ mirrored: !1
74
+ }), n0 = t.forwardRef(
75
+ (e, a) => {
76
+ const {
77
+ alt: n,
78
+ color: r,
79
+ size: o,
80
+ weight: c,
81
+ mirrored: s,
82
+ children: d,
83
+ weights: u,
84
+ ...p
85
+ } = e, {
86
+ color: y = "currentColor",
87
+ size: E,
88
+ weight: M = "regular",
89
+ mirrored: H = !1,
90
+ ...m
91
+ } = t.useContext(T2);
92
+ return /* @__PURE__ */ t.createElement(
93
+ "svg",
94
+ {
95
+ ref: a,
96
+ xmlns: "http://www.w3.org/2000/svg",
97
+ width: o ?? E,
98
+ height: o ?? E,
99
+ fill: r ?? y,
100
+ viewBox: "0 0 256 256",
101
+ transform: s || H ? "scale(-1, 1)" : void 0,
102
+ ...m,
103
+ ...p
104
+ },
105
+ !!n && /* @__PURE__ */ t.createElement("title", null, n),
106
+ d,
107
+ u.get(c ?? M)
108
+ );
109
+ }
110
+ );
111
+ n0.displayName = "IconBase";
112
+ const O2 = /* @__PURE__ */ new Map([
113
+ [
114
+ "bold",
115
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z" }))
116
+ ],
117
+ [
118
+ "duotone",
119
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z" }))
120
+ ],
121
+ [
122
+ "fill",
123
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z" }))
124
+ ],
125
+ [
126
+ "light",
127
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z" }))
128
+ ],
129
+ [
130
+ "regular",
131
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z" }))
132
+ ],
133
+ [
134
+ "thin",
135
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z" }))
136
+ ]
137
+ ]), Pe = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: O2 }));
138
+ Pe.displayName = "FileIcon";
139
+ const $2 = /* @__PURE__ */ new Map([
140
+ [
141
+ "bold",
142
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M96.59,124.91a12,12,0,0,0-13.08,2.6L63,148H44a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12H63l20.48,20.48A12,12,0,0,0,104,224V136A12,12,0,0,0,96.59,124.91ZM80,195l-3.51-3.52A12,12,0,0,0,68,188H56V172H68a12,12,0,0,0,8.49-3.51L80,165Zm80-15a44.55,44.55,0,0,1-21.95,38.36A12,12,0,1,1,126,197.64a20.51,20.51,0,0,0,0-35.28,12,12,0,1,1,12.1-20.72A44.55,44.55,0,0,1,160,180ZM216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v72a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Z" }))
143
+ ],
144
+ [
145
+ "duotone",
146
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M72,160l24-24v88L72,200H48V160ZM152,32V88h56Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM88,204.69,77.66,194.34A8,8,0,0,0,72,192H56V168H72a8,8,0,0,0,5.66-2.34L88,155.31ZM152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180Zm61.66-97.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
147
+ ],
148
+ [
149
+ "fill",
150
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180ZM99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM216,88V216a16,16,0,0,1-16,16H168a8,8,0,0,1,0-16h32V96H152a8,8,0,0,1-8-8V40H56v80a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Z" }))
151
+ ],
152
+ [
153
+ "light",
154
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M98.3,130.46a6,6,0,0,0-6.54,1.3L69.51,154H48a6,6,0,0,0-6,6v40a6,6,0,0,0,6,6H69.51l22.25,22.24A6,6,0,0,0,102,224V136A6,6,0,0,0,98.3,130.46Zm-8.3,79L76.24,195.76A6,6,0,0,0,72,194H54V166H72a6,6,0,0,0,4.24-1.76L90,150.49ZM150,180a38.53,38.53,0,0,1-19,33.18A6,6,0,0,1,125,202.82a26.5,26.5,0,0,0,0-45.64A6,6,0,0,1,131,146.82,38.53,38.53,0,0,1,150,180Zm62.24-96.24-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v80a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H168a6,6,0,0,0,0,12h32a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Z" }))
155
+ ],
156
+ [
157
+ "regular",
158
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM88,204.69,77.66,194.34A8,8,0,0,0,72,192H56V168H72a8,8,0,0,0,5.66-2.34L88,155.31ZM152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180Zm61.66-97.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
159
+ ],
160
+ [
161
+ "thin",
162
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M97.53,132.3a4,4,0,0,0-4.36.87L70.34,156H48a4,4,0,0,0-4,4v40a4,4,0,0,0,4,4H70.34l22.83,22.83A4,4,0,0,0,100,224V136A4,4,0,0,0,97.53,132.3Zm-5.53,82L74.83,197.17A4,4,0,0,0,72,196H52V164H72a4,4,0,0,0,2.83-1.17L92,145.66ZM148,180a36.52,36.52,0,0,1-18,31.45,4,4,0,0,1-4-6.9,28.5,28.5,0,0,0,0-49.1,4,4,0,0,1,4-6.9A36.52,36.52,0,0,1,148,180Zm62.83-94.83-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v80a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H168a4,4,0,0,0,0,8h32a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156Z" }))
163
+ ]
164
+ ]), Te = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: $2 }));
165
+ Te.displayName = "FileAudioIcon";
166
+ const D2 = /* @__PURE__ */ new Map([
167
+ [
168
+ "bold",
169
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180.49,143.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L155,152l-15.52-15.51a12,12,0,1,1,17-17Zm-64-24a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,0,0,17-17L101,152l15.52-15.51A12,12,0,0,0,116.49,119.51ZM220,88V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88ZM160,57V80h23Zm36,155V104H148a12,12,0,0,1-12-12V44H60V212Z" }))
170
+ ],
171
+ [
172
+ "duotone",
173
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z" }))
174
+ ],
175
+ [
176
+ "fill",
177
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-104,88a8,8,0,0,1-11.32,11.32l-24-24a8,8,0,0,1,0-11.32l24-24a8,8,0,0,1,11.32,11.32L91.31,152Zm72-12.68-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32l24,24A8,8,0,0,1,181.66,157.66ZM152,88V44l44,44Z" }))
178
+ ],
179
+ [
180
+ "light",
181
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z" }))
182
+ ],
183
+ [
184
+ "regular",
185
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z" }))
186
+ ],
187
+ [
188
+ "thin",
189
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z" }))
190
+ ]
191
+ ]), Oe = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: D2 }));
192
+ Oe.displayName = "FileCodeIcon";
193
+ const _2 = /* @__PURE__ */ new Map([
194
+ [
195
+ "bold",
196
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,8.67,5.49,16,12,16a10.27,10.27,0,0,0,7.33-3.43,12,12,0,1,1,17.34,16.6A34,34,0,0,1,60,220C40.15,220,24,202,24,180s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,1,1-17.34,16.6A10.27,10.27,0,0,0,60,164C53.49,164,48,171.31,48,180Zm97.51-5.71c-5.13-3.45-11.33-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,143,142a69.24,69.24,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.48,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2,2,0,0,1-.22.71c-1.36,1.55-9.57,1.79-16.39-.06a12,12,0,0,0-6.45,23.11A63.73,63.73,0,0,0,125.09,220c6.47,0,13.74-1.17,19.74-5.15a24.73,24.73,0,0,0,10.95-18C157,187.53,153.32,179.53,145.51,174.27ZM216,140.68A12,12,0,0,0,200.7,148L192,172.3,183.3,148A12,12,0,1,0,160.7,156l20,56a12,12,0,0,0,22.6,0l20-56A12,12,0,0,0,216,140.68ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z" }))
197
+ ],
198
+ [
199
+ "duotone",
200
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }))
201
+ ],
202
+ [
203
+ "fill",
204
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM48,180c0,11,7.18,20,16,20a14.18,14.18,0,0,0,10.06-4.5,8.21,8.21,0,0,1,10.9-.91,8,8,0,0,1,.82,11.81A30.06,30.06,0,0,1,64,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.39,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.17,14.17,0,0,0,64,160C55.18,160,48,169,48,180Zm103.81,16.31a20.82,20.82,0,0,1-9.19,15.23C137.43,215,131,216,125.13,216A61.14,61.14,0,0,1,110,214a8,8,0,1,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C137.49,174.17,154.05,179,151.81,196.31ZM215.42,155l-19.89,55.68a8,8,0,0,1-15.06,0L160.58,155a8.21,8.21,0,0,1,4.5-10.45,8,8,0,0,1,10.45,4.76L188,184.21l12.47-34.9a8,8,0,0,1,10.45-4.76A8.23,8.23,0,0,1,215.42,155Z" }))
205
+ ],
206
+ [
207
+ "light",
208
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M46,180c0,12.13,8.07,22,18,22a16.24,16.24,0,0,0,11.67-5.28,6,6,0,0,1,8.66,8.3A28.06,28.06,0,0,1,64,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,64,158C54.07,158,46,167.86,46,180Zm81.05-6.77c-10.86-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.66-1.82,21.45-.84a6,6,0,0,0,3.06-11.6c-2-.53-20.1-5-31.21,2.48a18.61,18.61,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.78,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,110.48,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C151.84,180.39,136.92,176.08,127.05,173.22Zm83-26.88a6,6,0,0,0-7.67,3.63L188,190.15,173.65,150a6,6,0,1,0-11.3,4l20,56a6,6,0,0,0,11.3,0l20-56A6,6,0,0,0,210,146.34ZM214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88Zm-20.49-6L158,46.48V82Z" }))
209
+ ],
210
+ [
211
+ "regular",
212
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }))
213
+ ],
214
+ [
215
+ "thin",
216
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,180c0,13.23,9,24,20,24a18.15,18.15,0,0,0,13.11-5.9,4,4,0,1,1,5.78,5.54A26.11,26.11,0,0,1,64,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,64,156C53,156,44,166.77,44,180Zm82.49-4.85c-10.53-3-15.08-4.91-14.42-10.08a8.51,8.51,0,0,1,3.75-6.49c6.25-4.23,18.77-2.24,23.06-1.11a4,4,0,0,0,2-7.74,61.11,61.11,0,0,0-10.47-1.61c-8.12-.54-14.54.75-19.1,3.82a16.66,16.66,0,0,0-7.22,12.13c-1.58,12.49,10.46,16,20.14,18.77,11.26,3.25,16.47,5.49,15.64,11.94a8.94,8.94,0,0,1-3.91,6.75c-6.27,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.89,57.89,0,0,0,125.19,212c5.18,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C149.64,181.84,136.26,178,126.49,175.15Zm82.85-26.92a4,4,0,0,0-5.11,2.42L188,196.11l-16.23-45.46a4,4,0,1,0-7.54,2.7l20,56a4,4,0,0,0,7.54,0l20-56A4,4,0,0,0,209.34,148.23ZM212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-13.66-4L156,41.65V84Z" }))
217
+ ]
218
+ ]), $e = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: _2 }));
219
+ $e.displayName = "FileCsvIcon";
220
+ const z2 = /* @__PURE__ */ new Map([
221
+ [
222
+ "bold",
223
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,140H32a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12H48a40,40,0,0,0,0-80Zm0,56H44V164h4a16,16,0,0,1,0,32Zm180.3-3.8a12,12,0,0,1,.37,17A34,34,0,0,1,204,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,0,1-17.34,16.6A10.27,10.27,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43A12,12,0,0,1,228.3,192.2ZM128,140c-19.85,0-36,17.94-36,40s16.15,40,36,40,36-17.94,36-40S147.85,140,128,140Zm0,56c-6.5,0-12-7.33-12-16s5.5-16,12-16,12,7.33,12,16S134.5,196,128,196ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z" }))
224
+ ],
225
+ [
226
+ "duotone",
227
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.18,14.18,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.64,0-32,16.15-32,36s14.36,36,32,36,32-16.15,32-36S145.64,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z" }))
228
+ ],
229
+ [
230
+ "fill",
231
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z" }))
232
+ ],
233
+ [
234
+ "light",
235
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z" }))
236
+ ],
237
+ [
238
+ "regular",
239
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.65,0-32,16.15-32,36s14.35,36,32,36,32-16.15,32-36S145.65,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z" }))
240
+ ],
241
+ [
242
+ "thin",
243
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,148H36a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4H52a32,32,0,0,0,0-64Zm0,56H40V156H52a24,24,0,0,1,0,48Zm166.77-6a4,4,0,0,1,.12,5.66A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a18.15,18.15,0,0,0,13.11-5.9A4,4,0,0,1,218.77,198ZM128,148c-15.44,0-28,14.36-28,32s12.56,32,28,32,28-14.36,28-32S143.44,148,128,148Zm0,56c-11,0-20-10.77-20-24s9-24,20-24,20,10.77,20,24S139,204,128,204ZM48,116a4,4,0,0,0,4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72A4,4,0,0,0,48,116ZM156,41.65,198.34,84H156Z" }))
244
+ ]
245
+ ]), De = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: z2 }));
246
+ De.displayName = "FileDocIcon";
247
+ const B2 = /* @__PURE__ */ new Map([
248
+ [
249
+ "bold",
250
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M114,145.34a12,12,0,0,0-20,0L79,167.82,72.3,157.73a12,12,0,0,0-20.07.17L13.91,217.51A12,12,0,0,0,24,236H152a12,12,0,0,0,10-18.66ZM46,212,62.5,186.3l6.55,9.81a12,12,0,0,0,20,0l15-22.48L129.58,212ZM216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v84a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Z" }))
251
+ ],
252
+ [
253
+ "duotone",
254
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
255
+ "path",
256
+ {
257
+ d: "M104,152l48,72H24l36-56,16.36,25.45ZM152,32V88h56Z",
258
+ opacity: "0.2"
259
+ }
260
+ ), /* @__PURE__ */ t.createElement("path", { d: "M110.66,147.56a8,8,0,0,0-13.32,0L76.49,178.85l-9.76-15.18a8,8,0,0,0-13.46,0l-36,56A8,8,0,0,0,24,232H152a8,8,0,0,0,6.66-12.44ZM38.65,216,60,182.79l9.63,15a8,8,0,0,0,13.39.11l21-31.47L137.05,216Zm175-133.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
261
+ ],
262
+ [
263
+ "fill",
264
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M158.66,219.56A8,8,0,0,1,152,232H24a8,8,0,0,1-6.73-12.33l36-56a8,8,0,0,1,13.46,0l9.76,15.18,20.85-31.29a8,8,0,0,1,13.32,0ZM216,88V216a16,16,0,0,1-16,16h-8a8,8,0,0,1,0-16h8V96H152a8,8,0,0,1-8-8V40H56v88a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Z" }))
265
+ ],
266
+ [
267
+ "light",
268
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M109,148.67a6,6,0,0,0-10,0L76.46,182.5,65.05,164.76a6,6,0,0,0-10.1,0l-36,56A6,6,0,0,0,24,230H152a6,6,0,0,0,5-9.33ZM35,218l25-38.9,11.32,17.6a6,6,0,0,0,10,.08l22.64-34L140.79,218ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v88a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Z" }))
269
+ ],
270
+ [
271
+ "regular",
272
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M110.66,147.56a8,8,0,0,0-13.32,0L76.49,178.85l-9.76-15.18a8,8,0,0,0-13.46,0l-36,56A8,8,0,0,0,24,232H152a8,8,0,0,0,6.66-12.44ZM38.65,216,60,182.79l9.63,15a8,8,0,0,0,13.39.11l21-31.47L137.05,216Zm175-133.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
273
+ ],
274
+ [
275
+ "thin",
276
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M107.33,149.78a4,4,0,0,0-6.66,0L76.42,186.15,63.36,165.84a4,4,0,0,0-6.72,0l-36,56A4,4,0,0,0,24,228H152a4,4,0,0,0,3.33-6.22ZM31.33,220,60,175.4l13,20.22a4,4,0,0,0,3.33,1.83,3.93,3.93,0,0,0,3.36-1.78L104,159.21,144.53,220ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v88a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156Z" }))
277
+ ]
278
+ ]), _e = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: B2 }));
279
+ _e.displayName = "FileImageIcon";
280
+ const W2 = /* @__PURE__ */ new Map([
281
+ [
282
+ "bold",
283
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M100,152v56a12,12,0,0,1-24,0V190.07l-6.17,8.81a12,12,0,0,1-19.66,0L44,190.07V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.83-6.88L60,171.07l18.17-25.95A12,12,0,0,1,100,152Zm84,28a40,40,0,0,1-40,40H128a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,184,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,160,180Zm60-92V224a12,12,0,0,1-24,0V104H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88Zm-60-8h23L160,57Z" }))
284
+ ],
285
+ [
286
+ "duotone",
287
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z" }))
288
+ ],
289
+ [
290
+ "fill",
291
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H196a4,4,0,0,1,4,4V224a8,8,0,0,0,9.19,7.91,8.15,8.15,0,0,0,6.81-8.16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-8,56H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,144,144Zm-.49,56H136V160h8a20,20,0,0,1,20,20.77C163.58,191.59,154.34,200,143.51,200ZM104,152v55.73A8.17,8.17,0,0,1,96.53,216,8,8,0,0,1,88,208V177.38l-13.32,19a8.3,8.3,0,0,1-4.2,3.2,8,8,0,0,1-9-3L48,177.38v30.35A8.17,8.17,0,0,1,40.53,216,8,8,0,0,1,32,208V152.31a8.27,8.27,0,0,1,4.56-7.53,8,8,0,0,1,10,2.63L68,178.05l21.27-30.39a8.28,8.28,0,0,1,8.06-3.55A8,8,0,0,1,104,152Z" }))
292
+ ],
293
+ [
294
+ "light",
295
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V224a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM144,146H128a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6h16a34,34,0,0,0,0-68Zm0,56H134V158h10a22,22,0,0,1,0,44Zm-42-50v56a6,6,0,0,1-12,0V171L72.92,195.44a6,6,0,0,1-9.84,0L46,171v37a6,6,0,0,1-12,0V152a6,6,0,0,1,10.92-3.44l23.08,33,23.08-33A6,6,0,0,1,102,152Z" }))
296
+ ],
297
+ [
298
+ "regular",
299
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z" }))
300
+ ],
301
+ [
302
+ "thin",
303
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V224a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM144,148H128a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4h16a32,32,0,0,0,0-64Zm0,56H132V156h12a24,24,0,0,1,0,48Zm-44-52v56a4,4,0,0,1-8,0V164.69l-20.72,29.6a4,4,0,0,1-6.56,0L44,164.69V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.28-2.29L68,185l24.72-35.31A4,4,0,0,1,100,152Z" }))
304
+ ]
305
+ ]), ze = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: W2 }));
306
+ ze.displayName = "FileMdIcon";
307
+ const j2 = /* @__PURE__ */ new Map([
308
+ [
309
+ "bold",
310
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z" }))
311
+ ],
312
+ [
313
+ "duotone",
314
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
315
+ ],
316
+ [
317
+ "fill",
318
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z" }))
319
+ ],
320
+ [
321
+ "light",
322
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z" }))
323
+ ],
324
+ [
325
+ "regular",
326
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
327
+ ],
328
+ [
329
+ "thin",
330
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z" }))
331
+ ]
332
+ ]), Be = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: j2 }));
333
+ Be.displayName = "FilePdfIcon";
334
+ const K2 = /* @__PURE__ */ new Map([
335
+ [
336
+ "bold",
337
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M232,152a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,232,152ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm96,0a32,32,0,0,1-32,32h-4v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h16A32,32,0,0,1,164,172Zm-24,0a8,8,0,0,0-8-8h-4v16h4A8,8,0,0,0,140,172ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,80h23L160,57Z" }))
338
+ ],
339
+ [
340
+ "duotone",
341
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
342
+ ],
343
+ [
344
+ "fill",
345
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z" }))
346
+ ],
347
+ [
348
+ "light",
349
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M222,152a6,6,0,0,1-6,6H202v50a6,6,0,0,1-12,0V158H176a6,6,0,0,1,0-12h40A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm80,0a26,26,0,0,1-26,26H122v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h16A26,26,0,0,1,158,172Zm-12,0a14,14,0,0,0-14-14H122v28h10A14,14,0,0,0,146,172ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z" }))
350
+ ],
351
+ [
352
+ "regular",
353
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
354
+ ],
355
+ [
356
+ "thin",
357
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M220,152a4,4,0,0,1-4,4H200v52a4,4,0,0,1-8,0V156H176a4,4,0,0,1,0-8h40A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm76,0a24,24,0,0,1-24,24H120v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h16A24,24,0,0,1,156,172Zm-8,0a16,16,0,0,0-16-16H120v32h12A16,16,0,0,0,148,172ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z" }))
358
+ ]
359
+ ]), We = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: K2 }));
360
+ We.displayName = "FilePptIcon";
361
+ const G2 = /* @__PURE__ */ new Map([
362
+ [
363
+ "bold",
364
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z" }))
365
+ ],
366
+ [
367
+ "duotone",
368
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z" }))
369
+ ],
370
+ [
371
+ "fill",
372
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z" }))
373
+ ],
374
+ [
375
+ "light",
376
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z" }))
377
+ ],
378
+ [
379
+ "regular",
380
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z" }))
381
+ ],
382
+ [
383
+ "thin",
384
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z" }))
385
+ ]
386
+ ]), je = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: G2 }));
387
+ je.displayName = "FileTextIcon";
388
+ const Y2 = /* @__PURE__ */ new Map([
389
+ [
390
+ "bold",
391
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-1.91,84.69a12,12,0,0,0-11.92-.15L126.5,152.44A20,20,0,0,0,108,140H48a20,20,0,0,0-20,20v48a20,20,0,0,0,20,20h60a20,20,0,0,0,18.5-12.44l19.67,10.93A12,12,0,0,0,164,216V152A12,12,0,0,0,158.09,141.66ZM104,204H52V164h52Zm36-8.39-12-6.67v-9.88l12-6.67Z" }))
392
+ ],
393
+ [
394
+ "duotone",
395
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
396
+ "path",
397
+ {
398
+ d: "M208,88H152V32Zm-88,72a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V196l32,20V152l-32,20Z",
399
+ opacity: "0.2"
400
+ }
401
+ ), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z" }))
402
+ ],
403
+ [
404
+ "fill",
405
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM144,201.57l-16-10V176.43l16-10Z" }))
406
+ ],
407
+ [
408
+ "light",
409
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Zm-3.09,100.27a6,6,0,0,0-6.09.16L126,161.17V160a14,14,0,0,0-14-14H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h64a14,14,0,0,0,14-14v-1.17l22.82,14.26A6,6,0,0,0,158,216V152A6,6,0,0,0,154.91,146.75ZM114,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V160a2,2,0,0,1,2-2h64a2,2,0,0,1,2,2Zm32-2.83-20-12.5V175.33l20-12.5Z" }))
410
+ ],
411
+ [
412
+ "regular",
413
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z" }))
414
+ ],
415
+ [
416
+ "thin",
417
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM153.94,148.5a4,4,0,0,0-4.06.11L124,164.78V160a12,12,0,0,0-12-12H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12v-4.78l25.88,16.17A4,4,0,0,0,152,220a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,156,216V152A4,4,0,0,0,153.94,148.5ZM116,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V160a4,4,0,0,1,4-4h64a4,4,0,0,1,4,4Zm32,.78-24-15V174.22l24-15Z" }))
418
+ ]
419
+ ]), Ke = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: Y2 }));
420
+ Ke.displayName = "FileVideoIcon";
421
+ const X2 = /* @__PURE__ */ new Map([
422
+ [
423
+ "bold",
424
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M160,208a12,12,0,0,1-12,12H120a12,12,0,0,1-12-12V152a12,12,0,0,1,24,0v44h16A12,12,0,0,1,160,208ZM91,142.22A12,12,0,0,0,74.24,145L64,159.34,53.77,145a12,12,0,1,0-19.53,14l15,21-15,21A12,12,0,1,0,53.77,215L64,200.62,74.24,215A12,12,0,0,0,93.77,201l-15-21,15-21A12,12,0,0,0,91,142.22Zm122.53,32.05c-5.12-3.45-11.32-5.24-16.79-6.82a79.69,79.69,0,0,1-7.92-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z" }))
425
+ ],
426
+ [
427
+ "duotone",
428
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.56-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z" }))
429
+ ],
430
+ [
431
+ "fill",
432
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z" }))
433
+ ],
434
+ [
435
+ "light",
436
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z" }))
437
+ ],
438
+ [
439
+ "regular",
440
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.72,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.55-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z" }))
441
+ ],
442
+ [
443
+ "thin",
444
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M152,208a4,4,0,0,1-4,4H120a4,4,0,0,1-4-4V152a4,4,0,0,1,8,0v52h24A4,4,0,0,1,152,208ZM90.32,148.75a4,4,0,0,0-5.58.92L68,173.12,51.25,149.67a4,4,0,0,0-6.5,4.66L63.08,180,44.75,205.67a4,4,0,0,0,.93,5.58A3.91,3.91,0,0,0,48,212a4,4,0,0,0,3.25-1.67L68,186.88l16.74,23.45A4,4,0,0,0,88,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L72.91,180l18.34-25.67A4,4,0,0,0,90.32,148.75Zm100.17,26.4c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z" }))
445
+ ]
446
+ ]), Ge = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: X2 }));
447
+ Ge.displayName = "FileXlsIcon";
448
+ const U2 = /* @__PURE__ */ new Map([
449
+ [
450
+ "bold",
451
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M188,140H172a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40h-4V164h4a8,8,0,0,1,0,16Zm-48-28v56a12,12,0,0,1-24,0V152a12,12,0,0,1,24,0ZM96,208a12,12,0,0,1-12,12H52a12,12,0,0,1-10.42-17.95L63.32,164H52a12,12,0,0,1,0-24H84A12,12,0,0,1,94.42,158L72.68,196H84A12,12,0,0,1,96,208ZM216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88A12,12,0,0,0,216.49,79.52ZM160,80V57l23,23Z" }))
452
+ ],
453
+ [
454
+ "duotone",
455
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm-48-32v56a8,8,0,0,1-16,0V152a8,8,0,0,1,16,0ZM96,208a8,8,0,0,1-8,8H56a8,8,0,0,1-7-12l25.16-44H56a8,8,0,0,1,0-16H88a8,8,0,0,1,7,12L69.79,200H88A8,8,0,0,1,96,208ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z" }))
456
+ ],
457
+ [
458
+ "fill",
459
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v55.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,184,144Zm-.35,40H176V160h8A12,12,0,0,1,196,173.16,12.25,12.25,0,0,1,183.65,184ZM136,152v55.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152.27a8.17,8.17,0,0,1,7.47-8.25A8,8,0,0,1,136,152ZM96,208.53A8.17,8.17,0,0,1,87.73,216H56.23a8.27,8.27,0,0,1-6-2.5A8,8,0,0,1,49.05,204l25.16-44H56.27A8.17,8.17,0,0,1,48,152.53,8,8,0,0,1,56,144H87.77a8.27,8.27,0,0,1,6,2.5A8,8,0,0,1,95,156L69.79,200H88A8,8,0,0,1,96,208.53ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z" }))
460
+ ],
461
+ [
462
+ "light",
463
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,146H168a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198h10a26,26,0,0,0,0-52Zm0,40H174V158h10a14,14,0,0,1,0,28Zm-50-34v56a6,6,0,0,1-12,0V152a6,6,0,0,1,12,0ZM94,208a6,6,0,0,1-6,6H56a6,6,0,0,1-5.21-9l26.87-47H56a6,6,0,0,1,0-12H88a6,6,0,0,1,5.21,9L66.34,202H88A6,6,0,0,1,94,208ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,82V46.48L193.52,82Z" }))
464
+ ],
465
+ [
466
+ "regular",
467
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm-48-32v56a8,8,0,0,1-16,0V152a8,8,0,0,1,16,0ZM96,208a8,8,0,0,1-8,8H56a8,8,0,0,1-7-12l25.16-44H56a8,8,0,0,1,0-16H88a8,8,0,0,1,7,12L69.79,200H88A8,8,0,0,1,96,208ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z" }))
468
+ ],
469
+ [
470
+ "thin",
471
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,148H168a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196h12a24,24,0,0,0,0-48Zm0,40H172V156h12a16,16,0,0,1,0,32Zm-52-36v56a4,4,0,0,1-8,0V152a4,4,0,0,1,8,0Zm-40.53,2L62.89,204H88a4,4,0,0,1,0,8H56a4,4,0,0,1-3.47-6l28.58-50H56a4,4,0,0,1,0-8H88a4,4,0,0,1,3.47,6ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,84V41.65L198.34,84Z" }))
472
+ ]
473
+ ]), Ye = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(n0, { ref: a, ...e, weights: U2 }));
474
+ Ye.displayName = "FileZipIcon";
475
+ const J2 = {
71
476
  icon: { light: "#6a7282", dark: "#99a1af" },
72
477
  iconSelected: { light: "#1447e6", dark: "#51a2ff" },
73
478
  checkedRing: { light: "#155dfc", dark: "#51a2ff" }
74
- }, Yo = {
479
+ }, o8 = {
75
480
  markdown: { light: "#0084d1", dark: "#00bcff" },
76
481
  pdf: { light: "#e7000b", dark: "#ff6467" },
77
482
  spreadsheet: { light: "#007a55", dark: "#00d492" },
@@ -83,8 +488,8 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
83
488
  video: { light: "#7f22fe", dark: "#a684ff" },
84
489
  archive: { light: "#bb4d00", dark: "#ffb900" },
85
490
  code: { light: "#9810fa", dark: "#c27aff" },
86
- text: _r.icon
87
- }, _n = "#71829b", oe = {
491
+ text: J2.icon
492
+ }, Xe = "#71829b", c0 = {
88
493
  rowHover: "hover:bg-[color:light-dark(#f3f4f6,#1e2939)]",
89
494
  rowSelected: "bg-[color:light-dark(#eff6ff,#162456)]",
90
495
  checkedRing: "inset-ring-1 inset-ring-[color:light-dark(#155dfc,#51a2ff)]",
@@ -93,7 +498,7 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
93
498
  gridEdge: "text-[color:light-dark(#4a5565,#d1d5dc)]",
94
499
  icon: "text-[color:light-dark(#6a7282,#99a1af)]",
95
500
  iconSelected: "text-[color:light-dark(#1447e6,#51a2ff)]"
96
- }, ie = {
501
+ }, i0 = {
97
502
  markdown: "text-[color:light-dark(#0084d1,#00bcff)]",
98
503
  pdf: "text-[color:light-dark(#e7000b,#ff6467)]",
99
504
  spreadsheet: "text-[color:light-dark(#007a55,#00d492)]",
@@ -106,63 +511,63 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
106
511
  archive: "text-[color:light-dark(#bb4d00,#ffb900)]",
107
512
  code: "text-[color:light-dark(#9810fa,#c27aff)]",
108
513
  text: "text-[color:light-dark(#6a7282,#99a1af)]"
109
- }, zn = "text-[length:var(--dt-font-size-body,0.8125rem)]", zr = `${zn} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`, Tt = 44, Fr = 12, $r = 8, se = 14, Mr = 14, Fn = (e) => e === void 0 ? void 0 : { fontSize: typeof e == "number" ? `${e}px` : e }, ee = (e) => ({ width: e, height: e }), T = {
514
+ }, Ue = "text-[length:var(--dt-font-size-body,0.8125rem)]", q2 = `${Ue} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`, R1 = 44, Q2 = 12, et = 8, s0 = 14, tt = 14, Je = (e) => e === void 0 ? void 0 : { fontSize: typeof e == "number" ? `${e}px` : e }, a0 = (e) => ({ width: e, height: e }), F = {
110
515
  container: "directory-tree-container relative h-full overflow-y-hidden pb-[3px] pr-[2px]",
111
516
  // 保留中も薄めない。薄めた文字と印は地と混ざり、配色表の組の対比 (文字 7:1・印 3:1) を割る
112
517
  containerPending: "cursor-progress",
113
518
  // 行は itemHeight の固定の箱で中身を縦の中央に置くため、上下の詰め物は行の高さを中身から奪うだけになる
114
519
  // (行の中に置いたホストのボタンが行の高さいっぱいの的にならない)
115
- entry: `directory-tree-entry flex items-center cursor-pointer relative select-none ${zr}`,
116
- entryHover: `directory-tree-entry--hover ${oe.rowHover}`,
117
- entrySelected: `directory-tree-entry--selected ${oe.rowSelected}`,
520
+ entry: `directory-tree-entry flex items-center cursor-pointer relative select-none ${q2}`,
521
+ entryHover: `directory-tree-entry--hover ${c0.rowHover}`,
522
+ entrySelected: `directory-tree-entry--selected ${c0.rowSelected}`,
118
523
  // 輪は行の内側に描く。外側の輪は、後に描く隣の行の不透明な地 (ホバーや選択) に覆われる
119
- entryItemSelected: `directory-tree-entry--item-selected ${oe.rowSelected} ${oe.checkedRing}`,
524
+ entryItemSelected: `directory-tree-entry--item-selected ${c0.rowSelected} ${c0.checkedRing}`,
120
525
  // 箱の大きさはクラスでなく EXPAND_BOX_SIZE から行が付ける (ツリーラインのジオメトリが印を置く箱と同じ値を読むため)
121
- expandIcon: `directory-tree-expand-icon flex-shrink-0 flex items-center justify-center ${oe.icon}`,
122
- expandIconSelected: `directory-tree-expand-icon--selected ${oe.iconSelected}`,
526
+ expandIcon: `directory-tree-expand-icon flex-shrink-0 flex items-center justify-center ${c0.icon}`,
527
+ expandIconSelected: `directory-tree-expand-icon--selected ${c0.iconSelected}`,
123
528
  // 箱の大きさはクラスでなく visual.typeIconSize から行が付ける (ツリーラインのジオメトリと同じ値を読むため)
124
- typeIcon: `directory-tree-type-icon flex-shrink-0 flex items-center justify-center ${oe.icon}`,
125
- typeIconSelected: `directory-tree-type-icon--selected ${oe.iconSelected}`,
529
+ typeIcon: `directory-tree-type-icon flex-shrink-0 flex items-center justify-center ${c0.icon}`,
530
+ typeIconSelected: `directory-tree-type-icon--selected ${c0.iconSelected}`,
126
531
  // 文字の行の高さ (line-height) は行 (entry) の body の行を受け継ぐため、名前には文字の大きさだけを付ける
127
- name: `directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${zn} font-normal ${oe.name}`,
532
+ name: `directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${Ue} font-normal ${c0.name}`,
128
533
  nameDirectory: "directory-tree-name--directory font-medium",
129
- nameSelected: `directory-tree-name--selected font-semibold ${oe.nameSelected}`
130
- }, Ft = (e) => {
131
- const t = e.slice(e.lastIndexOf("/") + 1), n = t.lastIndexOf(".");
132
- return n <= 0 ? "" : t.slice(n + 1).toLowerCase();
133
- }, Hr = /^[a-z][a-z\d+.-]*:\/\//i, xn = (e) => Ft(Hr.test(e) ? e.split(/[?#]/, 1)[0] : e), $n = (e) => Ft(e.name) || xn(e.relativePath) || xn(e.absolutePath), Mn = ({ isDirectory: e, isExpanded: t, showExpandIcons: n, useCanvasExpandIcons: r, expandIconSize: s }) => {
134
- const a = s ? { width: s, height: s } : void 0, i = s ? "" : "h-4 w-4";
135
- return !(n && e) || r ? /* @__PURE__ */ u("span", { className: i, style: a, "aria-hidden": "true" }) : t ? /* @__PURE__ */ u(Tr, { className: i, style: a }) : /* @__PURE__ */ u(Lr, { className: i, style: a });
136
- }, Lt = (e, t) => {
534
+ nameSelected: `directory-tree-name--selected font-semibold ${c0.nameSelected}`
535
+ }, _1 = (e) => {
536
+ const a = e.slice(e.lastIndexOf("/") + 1), n = a.lastIndexOf(".");
537
+ return n <= 0 ? "" : a.slice(n + 1).toLowerCase();
538
+ }, at = /^[a-z][a-z\d+.-]*:\/\//i, be = (e) => _1(at.test(e) ? e.split(/[?#]/, 1)[0] : e), qe = (e) => _1(e.name) || be(e.relativePath) || be(e.absolutePath), Qe = ({ isDirectory: e, isExpanded: a, showExpandIcons: n, useCanvasExpandIcons: r, expandIconSize: o }) => {
539
+ const c = o ? { width: o, height: o } : void 0, s = o ? "" : "h-4 w-4";
540
+ return !(n && e) || r ? /* @__PURE__ */ f("span", { className: s, style: c, "aria-hidden": "true" }) : a ? /* @__PURE__ */ f(N2, { className: s, style: c }) : /* @__PURE__ */ f(R2, { className: s, style: c });
541
+ }, P1 = (e, a) => {
137
542
  if (e == null || typeof e == "boolean") return null;
138
543
  if (typeof e == "function")
139
- return console.warn(`[DirectoryTree] Function returned by renderer for "${t}". Return a node.`), null;
544
+ return console.warn(`[DirectoryTree] Function returned by renderer for "${a}". Return a node.`), null;
140
545
  if (typeof e == "object") {
141
546
  if ("then" in e)
142
- return console.warn(`[DirectoryTree] Promise returned for "${t}". Not supported.`), null;
547
+ return console.warn(`[DirectoryTree] Promise returned for "${a}". Not supported.`), null;
143
548
  if (Array.isArray(e)) {
144
- const r = e.map((s) => Lt(s, t)).filter(Boolean);
549
+ const r = e.map((o) => P1(o, a)).filter(Boolean);
145
550
  return r.length ? r : null;
146
551
  }
147
552
  const n = e.type;
148
553
  if (n && n.$$typeof === /* @__PURE__ */ Symbol.for("react.lazy"))
149
- return console.warn(`[DirectoryTree] Lazy component for "${t}". Not supported.`), null;
554
+ return console.warn(`[DirectoryTree] Lazy component for "${a}". Not supported.`), null;
150
555
  }
151
556
  return e;
152
- }, Br = {
153
- markdown: (e) => /* @__PURE__ */ u(Cr, { className: ie.markdown, style: ee(e) }),
154
- pdf: (e) => /* @__PURE__ */ u(kr, { className: ie.pdf, style: ee(e) }),
155
- spreadsheet: (e) => /* @__PURE__ */ u(Rr, { className: ie.spreadsheet, style: ee(e) }),
156
- csv: (e) => /* @__PURE__ */ u(Nr, { className: ie.csv, style: ee(e) }),
157
- document: (e) => /* @__PURE__ */ u(xr, { className: ie.document, style: ee(e) }),
158
- presentation: (e) => /* @__PURE__ */ u(Er, { className: ie.presentation, style: ee(e) }),
159
- image: (e) => /* @__PURE__ */ u(Ir, { className: ie.image, style: ee(e) }),
160
- audio: (e) => /* @__PURE__ */ u(wr, { className: ie.audio, style: ee(e) }),
161
- video: (e) => /* @__PURE__ */ u(vr, { className: ie.video, style: ee(e) }),
162
- archive: (e) => /* @__PURE__ */ u(Sr, { className: ie.archive, style: ee(e) }),
163
- code: (e) => /* @__PURE__ */ u(br, { className: ie.code, style: ee(e) }),
164
- text: (e) => /* @__PURE__ */ u(gr, { className: ie.text, style: ee(e) })
165
- }, Wr = {
557
+ }, nt = {
558
+ markdown: (e) => /* @__PURE__ */ f(ze, { className: i0.markdown, style: a0(e) }),
559
+ pdf: (e) => /* @__PURE__ */ f(Be, { className: i0.pdf, style: a0(e) }),
560
+ spreadsheet: (e) => /* @__PURE__ */ f(Ge, { className: i0.spreadsheet, style: a0(e) }),
561
+ csv: (e) => /* @__PURE__ */ f($e, { className: i0.csv, style: a0(e) }),
562
+ document: (e) => /* @__PURE__ */ f(De, { className: i0.document, style: a0(e) }),
563
+ presentation: (e) => /* @__PURE__ */ f(We, { className: i0.presentation, style: a0(e) }),
564
+ image: (e) => /* @__PURE__ */ f(_e, { className: i0.image, style: a0(e) }),
565
+ audio: (e) => /* @__PURE__ */ f(Te, { className: i0.audio, style: a0(e) }),
566
+ video: (e) => /* @__PURE__ */ f(Ke, { className: i0.video, style: a0(e) }),
567
+ archive: (e) => /* @__PURE__ */ f(Ye, { className: i0.archive, style: a0(e) }),
568
+ code: (e) => /* @__PURE__ */ f(Oe, { className: i0.code, style: a0(e) }),
569
+ text: (e) => /* @__PURE__ */ f(je, { className: i0.text, style: a0(e) })
570
+ }, rt = {
166
571
  markdown: ["md", "markdown", "mdx"],
167
572
  pdf: ["pdf"],
168
573
  spreadsheet: ["xls", "xlsx", "xlsm", "xlsb", "ods"],
@@ -175,7 +580,7 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
175
580
  archive: ["zip", "tar", "gz", "7z", "rar", "tgz", "bz2"],
176
581
  code: ["js", "mjs", "cjs", "ts", "tsx", "jsx", "json", "html", "htm", "css", "scss", "py", "go", "rs", "c", "cpp", "h", "hpp", "sh", "bash", "yaml", "yml", "sql", "xml", "toml"],
177
582
  text: ["txt", "log"]
178
- }, jr = new Map(Object.entries(Wr).flatMap(([e, t]) => t.map((n) => [n, e]))), Kr = /* @__PURE__ */ new Set(["", "application/octet-stream", "binary/octet-stream", "text/plain", "application/x-empty"]), Gr = (e) => (e ?? "").split(";", 1)[0].trim().toLowerCase(), Yr = (e) => {
583
+ }, lt = new Map(Object.entries(rt).flatMap(([e, a]) => a.map((n) => [n, e]))), ot = /* @__PURE__ */ new Set(["", "application/octet-stream", "binary/octet-stream", "text/plain", "application/x-empty"]), ct = (e) => (e ?? "").split(";", 1)[0].trim().toLowerCase(), st = (e) => {
179
584
  if (e === "text/markdown" || e === "text/x-markdown") return "markdown";
180
585
  if (e === "application/pdf") return "pdf";
181
586
  if (e.includes("excel") || e.includes("spreadsheet")) return "spreadsheet";
@@ -189,21 +594,21 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
189
594
  if (e === "application/json" || e.includes("javascript") || e.includes("typescript") || e.includes("xml") || e.startsWith("text/html") || e.startsWith("text/css") || e.includes("x-python") || e.includes("x-sh") || e.includes("x-go") || e.includes("x-rust"))
190
595
  return "code";
191
596
  if (e.startsWith("text/")) return "text";
192
- }, Xr = (e, t, n, r) => {
193
- const s = Gr(e), a = Yr(s), i = jr.get((t || (n ? Ft(n) : "")).toLowerCase()), d = (Kr.has(s) ? [i, a] : [a, i]).find((y) => y !== void 0);
194
- return d === void 0 ? /* @__PURE__ */ u(yr, { className: oe.icon, style: ee(r) }) : Br[d](r);
195
- }, Hn = (e, t, n) => {
196
- const { entry: r, isDirectory: s, isExpanded: a, extension: i, mimeType: c } = e;
197
- let d;
198
- const y = c || r.mimeType;
199
- return r.icon !== void 0 ? d = r.icon : s ? d = a && t?.directoryExpanded || t?.directory || /* @__PURE__ */ u(Ar, { style: ee(n) }) : i && t?.fileByExtension?.[i] ? d = t.fileByExtension[i] : d = t?.file || Xr(y, i, r.name, n), Lt(typeof d == "function" ? d(e) : d, r.absolutePath);
200
- }, Vr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Bn = (e) => {
597
+ }, it = (e, a, n, r) => {
598
+ const o = ct(e), c = st(o), s = lt.get((a || (n ? _1(n) : "")).toLowerCase()), u = (ot.has(o) ? [s, c] : [c, s]).find((p) => p !== void 0);
599
+ return u === void 0 ? /* @__PURE__ */ f(Pe, { className: c0.icon, style: a0(r) }) : nt[u](r);
600
+ }, e2 = (e, a, n) => {
601
+ const { entry: r, isDirectory: o, isExpanded: c, extension: s, mimeType: d } = e;
602
+ let u;
603
+ const p = d || r.mimeType;
604
+ return r.icon !== void 0 ? u = r.icon : o ? u = c && a?.directoryExpanded || a?.directory || /* @__PURE__ */ f(P2, { style: a0(n) }) : s && a?.fileByExtension?.[s] ? u = a.fileByExtension[s] : u = a?.file || it(p, s, r.name, n), P1(typeof u == "function" ? u(e) : u, r.absolutePath);
605
+ }, dt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), t2 = (e) => {
201
606
  if (!e)
202
607
  return;
203
- const t = Object.entries(e).filter(([, n]) => n != null);
204
- if (t.length !== 0)
205
- return Object.fromEntries(t.map(([n, r]) => [`data-${Vr(n)}`, String(r)]));
206
- }, Ur = [
608
+ const a = Object.entries(e).filter(([, n]) => n != null);
609
+ if (a.length !== 0)
610
+ return Object.fromEntries(a.map(([n, r]) => [`data-${dt(n)}`, String(r)]));
611
+ }, ht = [
207
612
  // 塗り: 箱の大きさと位置を変えずに行の面・縁・指す形だけを描く (アウトラインと影は箱の外に描かれ、場所を取らない)
208
613
  "color",
209
614
  "background",
@@ -250,160 +655,171 @@ const Ar = /* @__PURE__ */ ae.forwardRef(Dr), _r = {
250
655
  "textDecorationThickness",
251
656
  "textUnderlineOffset",
252
657
  "textTransform"
253
- ], Jr = ["color", "opacity"], Zr = "the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)", qr = new Set(Ur), Qr = new Set(Jr), Nn = (e, t) => {
254
- const n = t === void 0 ? e.option : `${e.option}.${t}`;
658
+ ], ut = ["color", "opacity"], mt = "the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)", ft = new Set(ht), pt = new Set(ut), we = (e, a) => {
659
+ const n = a === void 0 ? e.option : `${e.option}.${a}`;
255
660
  return e.absolutePath === void 0 ? n : `${n} of "${e.absolutePath}"`;
256
- }, Wn = (e, t, n, r) => {
661
+ }, a2 = (e, a, n, r) => {
257
662
  if (e !== void 0) {
258
663
  if (typeof e != "object" || e === null)
259
- throw new RangeError(`${Nn(n, void 0)} must be an object of CSS properties or undefined, got ${e === null ? "null" : typeof e}.`);
260
- for (const [s, a] of Object.entries(e))
261
- if (a !== void 0 && !t.has(s))
262
- throw new RangeError(`${Nn(n, s)} cannot be set: ${Zr}, so ${r}.`);
664
+ throw new RangeError(`${we(n, void 0)} must be an object of CSS properties or undefined, got ${e === null ? "null" : typeof e}.`);
665
+ for (const [o, c] of Object.entries(e))
666
+ if (c !== void 0 && !a.has(o))
667
+ throw new RangeError(`${we(n, o)} cannot be set: ${mt}, so ${r}.`);
263
668
  }
264
- }, Ge = (e, t) => Wn(e, qr, t, "a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"), eo = (e, t) => Wn(e, Qr, t, "the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"), to = 500, jn = ({ entry: e, isDirectory: t, isExpanded: n, isItemSelected: r, selectionMode: s, onSelectionChange: a, onEntryClick: i, toggleDirectory: c, onToggleDirectoryRecursive: d }) => {
265
- const y = H(null);
266
- return Ae(
669
+ }, q0 = (e, a) => a2(e, ft, a, "a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"), At = (e, a) => a2(e, pt, a, "the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"), vt = 500, n2 = ({ entry: e, isDirectory: a, isExpanded: n, isItemSelected: r, selectionMode: o, onSelectionChange: c, onEntryClick: s, toggleDirectory: d, onToggleDirectoryRecursive: u }) => {
670
+ const p = _(null);
671
+ T0(
267
672
  () => () => {
268
- y.current && window.clearTimeout(y.current);
673
+ p.current && window.clearTimeout(p.current);
269
674
  },
270
675
  []
271
- ), E(
272
- (N) => {
273
- N.stopPropagation(), s !== "none" && !t && a && a(e, !r);
274
- let w = !1;
275
- i({
276
- entry: e,
277
- isDirectory: t,
278
- isExpanded: n,
279
- preventDefault: () => {
280
- w = !0;
281
- }
282
- }), !(!t || w) && (y.current ? (window.clearTimeout(y.current), y.current = null, d(e)) : y.current = window.setTimeout(() => {
283
- c(e.absolutePath), y.current = null;
284
- }, to));
676
+ );
677
+ const y = b(() => {
678
+ o !== "none" && !a && c && c(e, !r);
679
+ let H = !1;
680
+ return s({
681
+ entry: e,
682
+ isDirectory: a,
683
+ isExpanded: n,
684
+ preventDefault: () => {
685
+ H = !0;
686
+ }
687
+ }), a && !H;
688
+ }, [e, a, n, r, o, c, s]), E = b(
689
+ (H) => {
690
+ H.stopPropagation(), y() && (p.current ? (window.clearTimeout(p.current), p.current = null, u(e)) : p.current = window.setTimeout(() => {
691
+ d(e.absolutePath), p.current = null;
692
+ }, vt));
693
+ },
694
+ [y, e, u, d]
695
+ ), M = b(
696
+ (H) => {
697
+ H.stopPropagation(), y() && d(e.absolutePath);
285
698
  },
286
- [t, e, n, d, c, i, s, a, r]
699
+ [y, e, d]
287
700
  );
288
- }, Kn = (e) => e === "right" ? "dt-grid-cell--right" : e === "center" ? "dt-grid-cell--center" : "", Rn = (e, t) => e.children !== void 0 && t(e.absolutePath), Gn = (e, t) => ({
701
+ return { handleClick: E, handleKeyActivate: M };
702
+ }, r2 = (e) => e === "right" ? "dt-grid-cell--right" : e === "center" ? "dt-grid-cell--center" : "", Se = (e, a) => e.children !== void 0 && a(e.absolutePath), l2 = (e, a) => ({
289
703
  width: e,
290
- gridTemplateColumns: t
291
- }), Yn = zt(
704
+ gridTemplateColumns: a
705
+ }), o2 = D1(
292
706
  ({
293
707
  entry: e,
294
- indentLevel: t,
708
+ indentLevel: a,
295
709
  positionInSet: n,
296
710
  setSize: r,
297
- rowIndex: s,
298
- flatIndex: a,
299
- onRowFocus: i,
300
- onRowBlur: c,
301
- isSelectedForAria: d,
302
- rowHeight: y,
303
- isDirOpen: N,
304
- columns: w,
305
- numericTemplate: R,
306
- numericTotal: f,
307
- nameWidth: m,
308
- rowClassName: h,
309
- selection: { onEntryClick: S, selectedPath: b, currentPath: z, mode: x = "none", selectedItems: k, onSelectionChange: p },
310
- expansion: { toggleDirectory: L, onToggleDirectoryRecursive: D },
311
- visual: { iconOverrides: P, showExpandIcons: le = !0, showDirectoryIcons: J = !0, showFileIcons: $ = !0, useCanvasExpandIcons: Y = !1, expandIconSize: be, typeIconSize: B, fontSize: ue, indentSize: Se, highlightStyles: Z, expandIconClassName: q, expandIconStyle: _e }
711
+ rowIndex: o,
712
+ flatIndex: c,
713
+ isActive: s,
714
+ registerRowRef: d,
715
+ onNavigationKeyDown: u,
716
+ onRowFocus: p,
717
+ onRowBlur: y,
718
+ isSelectedForAria: E,
719
+ rowHeight: M,
720
+ isDirOpen: H,
721
+ columns: m,
722
+ numericTemplate: h,
723
+ numericTotal: Z,
724
+ nameWidth: g,
725
+ rowClassName: I,
726
+ selection: { onEntryClick: w, selectedPath: S, currentPath: A, mode: D = "none", selectedItems: P, onSelectionChange: T },
727
+ expansion: { toggleDirectory: z, onToggleDirectoryRecursive: O },
728
+ visual: { iconOverrides: d0, showExpandIcons: r0 = !0, showDirectoryIcons: B = !0, showFileIcons: x = !0, useCanvasExpandIcons: h0 = !1, expandIconSize: y0, typeIconSize: M0, fontSize: Q, indentSize: O0, highlightStyles: e0, expandIconClassName: $0, expandIconStyle: D0 }
312
729
  }) => {
313
- Ge(e.style, { option: "entry.style", absolutePath: e.absolutePath });
314
- const [Re, ke] = de(!1), A = e.children !== void 0, te = A && N(e.absolutePath), M = e.absolutePath === b, Ye = e.absolutePath === z, I = !A && !!k?.has(e.absolutePath), ze = A ? void 0 : $n(e), ve = jn({ entry: e, isDirectory: A, isExpanded: te, isItemSelected: I, selectionMode: x, onSelectionChange: p, onEntryClick: S, toggleDirectory: L, onToggleDirectoryRecursive: D }), Ce = Re ? Z?.hoverClassName !== void 0 ? Z.hoverClassName : T.entryHover : "", Fe = (() => {
315
- if (A) {
316
- if (M) return Z?.directorySelectedClassName !== void 0 ? Z.directorySelectedClassName : T.entrySelected;
317
- } else if (M || I)
318
- return Z?.itemSelectedClassName !== void 0 ? Z.itemSelectedClassName : j(M && T.entrySelected, I && T.entryItemSelected);
730
+ q0(e.style, { option: "entry.style", absolutePath: e.absolutePath });
731
+ const [v0, u0] = f0(!1), $ = e.children !== void 0, L = $ && H(e.absolutePath), Y = e.absolutePath === S, I0 = e.absolutePath === A, X = !$ && !!P?.has(e.absolutePath), _0 = $ ? void 0 : qe(e), C = b((N) => d(c, N), [d, c]), { handleClick: p0, handleKeyActivate: K } = n2({ entry: e, isDirectory: $, isExpanded: L, isItemSelected: X, selectionMode: D, onSelectionChange: T, onEntryClick: w, toggleDirectory: z, onToggleDirectoryRecursive: O }), z0 = v0 ? e0?.hoverClassName !== void 0 ? e0.hoverClassName : F.entryHover : "", t0 = (() => {
732
+ if ($) {
733
+ if (Y) return e0?.directorySelectedClassName !== void 0 ? e0.directorySelectedClassName : F.entrySelected;
734
+ } else if (Y || X)
735
+ return e0?.itemSelectedClassName !== void 0 ? e0.itemSelectedClassName : j(Y && F.entrySelected, X && F.entryItemSelected);
319
736
  return "";
320
- })(), C = typeof h == "function" ? h(e) : h, he = j("dt-grid-row cursor-pointer select-none", Ce, Fe, C, e.className), K = j(T.expandIcon, q, (M || I) && T.expandIconSelected), $e = j(T.typeIcon, (M || I) && T.typeIconSelected), Q = j("dt-grid-name-label ml-1", oe.name, A && T.nameDirectory, (M || I) && T.nameSelected), X = Mn({ isDirectory: A, isExpanded: te, showExpandIcons: le, useCanvasExpandIcons: Y, expandIconSize: be }), ne = (A ? J : $) ? Hn({ entry: e, isDirectory: A, isExpanded: te, isSelected: M, isItemSelected: I, extension: ze, mimeType: e.mimeType }, P, B) : null, we = { indentLevel: t, isDirectory: A, isExpanded: te }, [me, ...Pe] = w, pe = me?.render ? me.render(e, we) : e.label ?? e.name, Xe = {
321
- ...Re ? Z?.hoverStyle : {},
322
- ...A && M ? Z?.directorySelectedStyle : {},
323
- ...!A && (M || I) ? Z?.itemSelectedStyle : {}
737
+ })(), U = typeof I == "function" ? I(e) : I, l0 = j("dt-grid-row cursor-pointer select-none", z0, t0, U, e.className), B0 = j(F.expandIcon, $0, (Y || X) && F.expandIconSelected), C0 = j(F.typeIcon, (Y || X) && F.typeIconSelected), W0 = j("dt-grid-name-label ml-1", c0.name, $ && F.nameDirectory, (Y || X) && F.nameSelected), g0 = Qe({ isDirectory: $, isExpanded: L, showExpandIcons: r0, useCanvasExpandIcons: h0, expandIconSize: y0 }), Q0 = ($ ? B : x) ? e2({ entry: e, isDirectory: $, isExpanded: L, isSelected: Y, isItemSelected: X, extension: _0, mimeType: e.mimeType }, d0, M0) : null, E0 = { indentLevel: a, isDirectory: $, isExpanded: L }, [b0, ...j0] = m, F0 = b0?.render ? b0.render(e, E0) : e.label ?? e.name, N0 = {
738
+ ...v0 ? e0?.hoverStyle : {},
739
+ ...$ && Y ? e0?.directorySelectedStyle : {},
740
+ ...!$ && (Y || X) ? e0?.itemSelectedStyle : {}
324
741
  };
325
- return /* @__PURE__ */ Ne(
742
+ return /* @__PURE__ */ Z0(
326
743
  "div",
327
744
  {
328
- className: he,
329
- style: { ...Xe, ...e.style, height: y },
745
+ className: l0,
746
+ style: { ...N0, ...e.style, height: M },
330
747
  role: "row",
331
- "aria-expanded": A ? te : void 0,
332
- "aria-level": t + 1,
748
+ "aria-expanded": $ ? L : void 0,
749
+ "aria-level": a + 1,
333
750
  "aria-posinset": n,
334
751
  "aria-setsize": r,
335
- "aria-rowindex": s,
336
- "aria-selected": x === "none" ? void 0 : d,
337
- "aria-current": Ye ? "page" : void 0,
338
- ...Bn(e.data),
339
- "data-entry-type": A ? "directory" : "file",
340
- "data-entry-expanded": A ? String(te) : void 0,
341
- "data-entry-selected": M ? "true" : void 0,
342
- "data-entry-item-selected": I ? "true" : void 0,
343
- onClick: ve,
344
- onMouseEnter: () => ke(!0),
345
- onMouseLeave: () => ke(!1),
346
- onFocus: (F) => i(a, e.absolutePath, F.currentTarget),
347
- onBlur: (F) => c(e.absolutePath, F.currentTarget),
348
- onKeyDown: (F) => {
349
- if (F.key === "Enter") {
350
- if (F.repeat) {
351
- F.preventDefault();
352
- return;
353
- }
354
- ve(F);
752
+ "aria-rowindex": o,
753
+ "aria-selected": D === "none" ? void 0 : E,
754
+ "aria-current": I0 ? "page" : void 0,
755
+ ...t2(e.data),
756
+ "data-entry-type": $ ? "directory" : "file",
757
+ "data-entry-expanded": $ ? String(L) : void 0,
758
+ "data-entry-selected": Y ? "true" : void 0,
759
+ "data-entry-item-selected": X ? "true" : void 0,
760
+ onClick: p0,
761
+ onMouseEnter: () => u0(!0),
762
+ onMouseLeave: () => u0(!1),
763
+ onFocus: (N) => p(c, e.absolutePath, N.currentTarget),
764
+ onBlur: (N) => y(e.absolutePath, N.currentTarget),
765
+ ref: C,
766
+ onKeyDown: (N) => {
767
+ if (N.key === "Enter" || N.key === " ") {
768
+ N.preventDefault(), N.repeat || K(N);
769
+ return;
355
770
  }
771
+ u(N, c);
356
772
  },
357
- tabIndex: 0,
773
+ tabIndex: s ? 0 : -1,
358
774
  children: [
359
- /* @__PURE__ */ Ne("div", { className: j("dt-grid-name-cell", me?.className), role: "gridcell", style: { width: m, paddingLeft: Math.max(0, t * Se) }, children: [
360
- (le || Y) && /* @__PURE__ */ u("span", { className: K, style: { ..._e, width: se, height: se }, children: X }),
361
- (A ? J : $) && /* @__PURE__ */ u("span", { className: $e, style: { width: B, height: B }, children: ne }),
362
- /* @__PURE__ */ u("span", { className: Q, style: Fn(ue), children: pe })
775
+ /* @__PURE__ */ Z0("div", { className: j("dt-grid-name-cell", b0?.className), role: "gridcell", style: { width: g, paddingLeft: Math.max(0, a * O0) }, children: [
776
+ (r0 || h0) && /* @__PURE__ */ f("span", { className: B0, style: { ...D0, width: s0, height: s0 }, children: g0 }),
777
+ ($ ? B : x) && /* @__PURE__ */ f("span", { className: C0, style: { width: M0, height: M0 }, children: Q0 }),
778
+ /* @__PURE__ */ f("span", { className: W0, style: Je(Q), children: F0 })
363
779
  ] }),
364
- Pe.length > 0 && /* @__PURE__ */ u("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ u("div", { className: "dt-grid-numeric-track", style: Gn(f, R), children: Pe.map((F) => /* @__PURE__ */ u("div", { className: j("dt-grid-cell", Kn(F.align), F.className), role: "gridcell", children: F.render ? F.render(e, we) : null }, F.key)) }) })
780
+ j0.length > 0 && /* @__PURE__ */ f("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ f("div", { className: "dt-grid-numeric-track", style: l2(Z, h), children: j0.map((N) => /* @__PURE__ */ f("div", { className: j("dt-grid-cell", r2(N.align), N.className), role: "gridcell", children: N.render ? N.render(e, E0) : null }, N.key)) }) })
365
781
  ]
366
782
  }
367
783
  );
368
784
  },
369
- (e, t) => {
370
- if (e.entry !== t.entry) return !1;
371
- const n = Rn(e.entry, e.isDirOpen), r = Rn(t.entry, t.isDirOpen);
372
- return e.indentLevel === t.indentLevel && e.positionInSet === t.positionInSet && e.setSize === t.setSize && e.rowIndex === t.rowIndex && // 焦点の通知は行番号で行うため、番号が変われば描き直してハンドラへ新しい番号を渡す
373
- e.flatIndex === t.flatIndex && e.isSelectedForAria === t.isSelectedForAria && e.rowHeight === t.rowHeight && n === r && e.columns === t.columns && e.numericTemplate === t.numericTemplate && e.numericTotal === t.numericTotal && e.nameWidth === t.nameWidth && e.rowClassName === t.rowClassName && e.selection.selectedPath === t.selection.selectedPath && e.selection.currentPath === t.selection.currentPath && e.selection.mode === t.selection.mode && e.selection.selectedItems === t.selection.selectedItems && e.visual === t.visual;
785
+ (e, a) => {
786
+ if (e.entry !== a.entry) return !1;
787
+ const n = Se(e.entry, e.isDirOpen), r = Se(a.entry, a.isDirOpen);
788
+ return e.indentLevel === a.indentLevel && e.positionInSet === a.positionInSet && e.setSize === a.setSize && e.rowIndex === a.rowIndex && // 焦点の通知は行番号で行うため、番号が変われば描き直してハンドラへ新しい番号を渡す
789
+ e.flatIndex === a.flatIndex && e.isActive === a.isActive && e.isSelectedForAria === a.isSelectedForAria && e.rowHeight === a.rowHeight && n === r && e.columns === a.columns && e.numericTemplate === a.numericTemplate && e.numericTotal === a.numericTotal && e.nameWidth === a.nameWidth && e.rowClassName === a.rowClassName && e.selection.selectedPath === a.selection.selectedPath && e.selection.currentPath === a.selection.currentPath && e.selection.mode === a.selection.mode && e.selection.selectedItems === a.selection.selectedItems && e.visual === a.visual;
374
790
  }
375
791
  );
376
- Yn.displayName = "DirectoryTreeGridRow";
377
- const Xn = ({
792
+ o2.displayName = "DirectoryTreeGridRow";
793
+ const c2 = ({
378
794
  kind: e,
379
- columns: t,
795
+ columns: a,
380
796
  numericTemplate: n,
381
797
  numericTotal: r,
382
- nameWidth: s,
383
- scrollBarWidth: a,
384
- className: i,
385
- nameContent: c,
386
- renderCell: d
798
+ nameWidth: o,
799
+ scrollBarWidth: c,
800
+ className: s,
801
+ nameContent: d,
802
+ renderCell: u
387
803
  }) => {
388
- const [, ...y] = t, N = e === "header" ? "dt-grid-name-header" : "dt-grid-name-footer", w = e === "header" ? "dt-grid-header" : "dt-grid-footer", R = e === "header" ? "columnheader" : "gridcell";
389
- return /* @__PURE__ */ Ne("div", { className: j(w, oe.gridEdge, i), role: "row", children: [
390
- /* @__PURE__ */ u("div", { className: j(N, "px-1", t[0]?.className), role: R, style: { width: s }, children: c }),
391
- y.length > 0 && /* @__PURE__ */ u("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ u("div", { className: "dt-grid-numeric-track", style: Gn(r, n), children: y.map((f) => /* @__PURE__ */ u("div", { className: j("dt-grid-cell", Kn(f.align), f.className), role: R, children: d(f) }, f.key)) }) }),
392
- /* @__PURE__ */ u("div", { className: "dt-grid-scrollbar-spacer", style: { width: a }, "aria-hidden": "true" })
804
+ const [, ...p] = a, y = e === "header" ? "dt-grid-name-header" : "dt-grid-name-footer", E = e === "header" ? "dt-grid-header" : "dt-grid-footer", M = e === "header" ? "columnheader" : "gridcell";
805
+ return /* @__PURE__ */ Z0("div", { className: j(E, c0.gridEdge, s), role: "row", children: [
806
+ /* @__PURE__ */ f("div", { className: j(y, "px-1", a[0]?.className), role: M, style: { width: o }, children: d }),
807
+ p.length > 0 && /* @__PURE__ */ f("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ f("div", { className: "dt-grid-numeric-track", style: l2(r, n), children: p.map((H) => /* @__PURE__ */ f("div", { className: j("dt-grid-cell", r2(H.align), H.className), role: M, children: u(H) }, H.key)) }) }),
808
+ /* @__PURE__ */ f("div", { className: "dt-grid-scrollbar-spacer", style: { width: c }, "aria-hidden": "true" })
393
809
  ] });
394
- }, no = ({ columns: e, className: t, ...n }) => /* @__PURE__ */ u(Xn, { kind: "header", columns: e, className: t, nameContent: e[0]?.header ?? null, renderCell: (r) => r.header ?? null, ...n }), kn = (e, t) => typeof e == "function" ? e(t) : e ?? null, ro = ({ columns: e, allEntries: t, className: n, ...r }) => /* @__PURE__ */ u(Xn, { kind: "footer", columns: e, className: n, nameContent: kn(e[0]?.footer, t), renderCell: (s) => kn(s.footer, t), ...r }), oo = 240, Vn = 96, Un = 12, Dt = (e, t) => {
810
+ }, gt = ({ columns: e, className: a, ...n }) => /* @__PURE__ */ f(c2, { kind: "header", columns: e, className: a, nameContent: e[0]?.header ?? null, renderCell: (r) => r.header ?? null, ...n }), Le = (e, a) => typeof e == "function" ? e(a) : e ?? null, Ht = ({ columns: e, allEntries: a, className: n, ...r }) => /* @__PURE__ */ f(c2, { kind: "footer", columns: e, className: n, nameContent: Le(e[0]?.footer, a), renderCell: (o) => Le(o.footer, a), ...r }), Vt = 240, s2 = 96, i2 = 12, T1 = (e, a) => {
395
811
  const n = e?.width;
396
- return typeof n == "number" && Number.isFinite(n) && n > 0 ? n : t;
397
- }, so = (e) => e.slice(1).map((t) => `${Dt(t, Vn)}px`).join(" "), io = ({ measuredWidth: e, columns: t, scrollBarWidth: n = Un }) => {
398
- const r = Dt(t[0], oo), s = t.slice(1).reduce((d, y) => d + Dt(y, Vn), 0), a = Number.isFinite(e) && e > 0 ? e : 0, i = Math.max(0, a - r - Math.max(0, n)), c = Math.max(0, s - i);
399
- return { nameWidth: r, numericTotal: s, numericVisible: i, maxHScroll: c };
400
- }, Ot = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : e > t ? t : e, ao = (e) => {
401
- const t = [], n = (r) => {
402
- for (const s of r)
403
- t.push(s), s.children && s.children.length > 0 && n(s.children);
812
+ return typeof n == "number" && Number.isFinite(n) && n > 0 ? n : a;
813
+ }, Zt = (e) => e.slice(1).map((a) => `${T1(a, s2)}px`).join(" "), yt = ({ measuredWidth: e, columns: a, scrollBarWidth: n = i2 }) => {
814
+ const r = T1(a[0], Vt), o = a.slice(1).reduce((u, p) => u + T1(p, s2), 0), c = Number.isFinite(e) && e > 0 ? e : 0, s = Math.max(0, c - r - Math.max(0, n)), d = Math.max(0, o - s);
815
+ return { nameWidth: r, numericTotal: o, numericVisible: s, maxHScroll: d };
816
+ }, k1 = (e, a) => !Number.isFinite(e) || e < 0 ? 0 : e > a ? a : e, Mt = (e) => {
817
+ const a = [], n = (r) => {
818
+ for (const o of r)
819
+ a.push(o), o.children && o.children.length > 0 && n(o.children);
404
820
  };
405
- return n(e), t;
406
- }, Jn = ["entryKindDirectory", "entryKindFile"], Cn = [...ht, ...Jn], At = Object.freeze({
821
+ return n(e), a;
822
+ }, d2 = ["entryKindDirectory", "entryKindFile"], Ie = [...p1, ...d2], O1 = Object.freeze({
407
823
  en: Object.freeze({
408
824
  entryKindDirectory: "directory",
409
825
  entryKindFile: "file"
@@ -412,254 +828,254 @@ const Xn = ({
412
828
  entryKindDirectory: "ディレクトリ",
413
829
  entryKindFile: "ファイル"
414
830
  })
415
- }), lo = Object.freeze({
416
- en: Object.freeze({ ...In.en, ...At.en }),
417
- ja: Object.freeze({ ...In.ja, ...At.ja })
418
- }), Pn = (e) => typeof e == "string" ? JSON.stringify(e) : e === null ? "null" : typeof e, co = (e) => {
419
- const t = {};
831
+ }), Et = Object.freeze({
832
+ en: Object.freeze({ ...Me.en, ...O1.en }),
833
+ ja: Object.freeze({ ...Me.ja, ...O1.ja })
834
+ }), Ce = (e) => typeof e == "string" ? JSON.stringify(e) : e === null ? "null" : typeof e, bt = (e) => {
835
+ const a = {};
420
836
  let n = !1;
421
- for (const r of ht) {
422
- const s = Object.hasOwn(e, r) ? e[r] : void 0;
423
- s !== void 0 && (t[r] = s, n = !0);
837
+ for (const r of p1) {
838
+ const o = Object.hasOwn(e, r) ? e[r] : void 0;
839
+ o !== void 0 && (a[r] = o, n = !0);
424
840
  }
425
- return n ? t : void 0;
426
- }, uo = (e, t) => {
427
- const n = An(e);
428
- if (t === void 0)
429
- return lo[n];
430
- if (t === null || typeof t != "object")
431
- throw new RangeError(`[directory-tree] labels must be an object; got ${Pn(t)}`);
432
- const r = Object.getPrototypeOf(t);
841
+ return n ? a : void 0;
842
+ }, wt = (e, a) => {
843
+ const n = ke(e);
844
+ if (a === void 0)
845
+ return Et[n];
846
+ if (a === null || typeof a != "object")
847
+ throw new RangeError(`[directory-tree] labels must be an object; got ${Ce(a)}`);
848
+ const r = Object.getPrototypeOf(a);
433
849
  if (r !== Object.prototype && r !== null)
434
- throw new RangeError(`[directory-tree] labels must be a plain object (prototype Object.prototype or null); got ${Array.isArray(t) ? "an array" : "an object with a non-plain prototype"}`);
435
- for (const i of Object.keys(t))
436
- if (!Cn.includes(i))
437
- throw new RangeError(`[directory-tree] labels.${i} is not a known label key; expected one of ${Cn.join(", ")}`);
438
- const a = { ...dr(n, co(t)), ...At[n] };
439
- for (const i of Jn) {
440
- const c = Object.hasOwn(t, i) ? t[i] : void 0;
441
- if (c !== void 0) {
442
- if (typeof c != "string" || c.trim() === "")
443
- throw new RangeError(`[directory-tree] labels.${i} must be a non-blank string; got ${Pn(c)}`);
444
- a[i] = c;
850
+ throw new RangeError(`[directory-tree] labels must be a plain object (prototype Object.prototype or null); got ${Array.isArray(a) ? "an array" : "an object with a non-plain prototype"}`);
851
+ for (const s of Object.keys(a))
852
+ if (!Ie.includes(s))
853
+ throw new RangeError(`[directory-tree] labels.${s} is not a known label key; expected one of ${Ie.join(", ")}`);
854
+ const c = { ...E2(n, bt(a)), ...O1[n] };
855
+ for (const s of d2) {
856
+ const d = Object.hasOwn(a, s) ? a[s] : void 0;
857
+ if (d !== void 0) {
858
+ if (typeof d != "string" || d.trim() === "")
859
+ throw new RangeError(`[directory-tree] labels.${s} must be a non-blank string; got ${Ce(d)}`);
860
+ c[s] = d;
445
861
  }
446
862
  }
863
+ return Object.freeze(c);
864
+ }, St = (e) => {
865
+ const a = {};
866
+ for (const n of p1)
867
+ a[n] = e[n];
447
868
  return Object.freeze(a);
448
- }, ho = (e) => {
449
- const t = {};
450
- for (const n of ht)
451
- t[n] = e[n];
452
- return Object.freeze(t);
453
- }, fo = () => {
869
+ }, Lt = () => {
454
870
  let e = null;
455
871
  return {
456
- mark: (t) => {
457
- const n = t.composedPath();
872
+ mark: (a) => {
873
+ const n = a.composedPath();
458
874
  e = n, setTimeout(() => {
459
875
  e === n && (e = null);
460
876
  }, 0);
461
877
  },
462
- landedOn: (t) => e?.includes(t) === !0
878
+ landedOn: (a) => e?.includes(a) === !0
463
879
  };
464
- }, Qe = (e) => typeof e == "string" ? JSON.stringify(e) : String(e), _t = (e, t) => {
465
- if (typeof t != "number" || !Number.isFinite(t) || t <= 0)
466
- throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${Qe(t)}.`);
467
- return t;
468
- }, mo = (e) => {
880
+ }, r1 = (e) => typeof e == "string" ? JSON.stringify(e) : String(e), $1 = (e, a) => {
881
+ if (typeof a != "number" || !Number.isFinite(a) || a <= 0)
882
+ throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${r1(a)}.`);
883
+ return a;
884
+ }, It = (e) => {
469
885
  if (typeof e == "string" && e.trim() !== "" || typeof e == "number" && Number.isFinite(e) && e > 0)
470
886
  return e;
471
- throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${Qe(e)}.`);
472
- }, po = ({ indentSize: e, typeIconSize: t, fontSize: n }) => ({
473
- indentSize: e === void 0 ? Fr : _t("indentSize", e),
474
- typeIconSize: t === void 0 ? Mr : _t("typeIconSize", t),
475
- fontSize: n === void 0 ? void 0 : mo(n)
476
- }), yo = ({ indentSize: e, removeRootIndent: t, hasExpandBox: n }) => t ? Math.max(0, e - (n ? se : 0)) : 0, go = (e, t, n) => {
887
+ throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${r1(e)}.`);
888
+ }, Ct = ({ indentSize: e, typeIconSize: a, fontSize: n }) => ({
889
+ indentSize: e === void 0 ? Q2 : $1("indentSize", e),
890
+ typeIconSize: a === void 0 ? tt : $1("typeIconSize", a),
891
+ fontSize: n === void 0 ? void 0 : It(n)
892
+ }), Ft = ({ indentSize: e, removeRootIndent: a, hasExpandBox: n }) => a ? Math.max(0, e - (n ? s0 : 0)) : 0, Nt = (e, a, n) => {
477
893
  if (typeof e != "function")
478
- return _t("itemHeight", e);
479
- const r = e(t, n);
894
+ return $1("itemHeight", e);
895
+ const r = e(a, n);
480
896
  if (typeof r != "number" || !Number.isFinite(r) || r <= 0)
481
- throw new RangeError(`[directory-tree] visual.itemHeight returned ${Qe(r)} for ${JSON.stringify(t.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);
897
+ throw new RangeError(`[directory-tree] visual.itemHeight returned ${r1(r)} for ${JSON.stringify(a.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);
482
898
  return r;
483
- }, bo = (e, t, n) => {
484
- const r = t === void 0 ? $r : t;
485
- if (typeof r != "number" || !Number.isFinite(r) || r <= 0 || r > se)
486
- throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${se} (the expand box, px) while tree lines are drawn; got ${Qe(r)}.`);
487
- const { indentSize: s, typeIconSize: a } = e, i = r / 2, c = se + a - r / 2;
488
- if (s < i || s > c)
899
+ }, xt = (e, a, n) => {
900
+ const r = a === void 0 ? et : a;
901
+ if (typeof r != "number" || !Number.isFinite(r) || r <= 0 || r > s0)
902
+ throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${s0} (the expand box, px) while tree lines are drawn; got ${r1(r)}.`);
903
+ const { indentSize: o, typeIconSize: c } = e, s = r / 2, d = s0 + c - r / 2;
904
+ if (o < s || o > d)
489
905
  throw new RangeError(
490
- `[directory-tree] visual.indentSize ${Qe(s)} does not fit the tree lines: with typeIconSize ${a} and an expand glyph of ${r} px it must be from ${i} (half the glyph) to ${c} (the ${se} px expand box + typeIconSize − half the glyph).`
906
+ `[directory-tree] visual.indentSize ${r1(o)} does not fit the tree lines: with typeIconSize ${c} and an expand glyph of ${r} px it must be from ${s} (half the glyph) to ${d} (the ${s0} px expand box + typeIconSize − half the glyph).`
491
907
  );
492
- return { indentSize: s, typeIconSize: a, glyphSize: r, originX: n };
493
- }, So = ({ indentSize: e, typeIconSize: t, glyphSize: n }) => Math.min(Math.max(se + t / 2 - e, n / 2), se - n / 2), vo = (e, t) => {
908
+ return { indentSize: o, typeIconSize: c, glyphSize: r, originX: n };
909
+ }, Rt = ({ indentSize: e, typeIconSize: a, glyphSize: n }) => Math.min(Math.max(s0 + a / 2 - e, n / 2), s0 - n / 2), kt = (e, a) => {
494
910
  const n = e.length - 1;
495
911
  if (n <= 0) return 0;
496
- let r = 0, s = n - 1, a = 0;
497
- for (; r <= s; ) {
498
- const i = r + s >>> 1;
499
- e[i] <= t ? (a = i, r = i + 1) : s = i - 1;
912
+ let r = 0, o = n - 1, c = 0;
913
+ for (; r <= o; ) {
914
+ const s = r + o >>> 1;
915
+ e[s] <= a ? (c = s, r = s + 1) : o = s - 1;
500
916
  }
501
- return a;
502
- }, wo = (e, t, n) => {
503
- if (n <= 0 || e.length === 0 || t.length !== e.length + 1)
917
+ return c;
918
+ }, Pt = (e, a, n) => {
919
+ if (n <= 0 || e.length === 0 || a.length !== e.length + 1)
504
920
  return null;
505
- const r = vo(t, n), s = e[r];
506
- return s ? {
507
- path: s.entry.absolutePath,
508
- offsetInViewport: n - t[r]
921
+ const r = kt(a, n), o = e[r];
922
+ return o ? {
923
+ path: o.entry.absolutePath,
924
+ offsetInViewport: n - a[r]
509
925
  } : null;
510
- }, Io = (e, t, n) => {
511
- if (t.length === 0 || n.length !== t.length + 1)
926
+ }, Tt = (e, a, n) => {
927
+ if (a.length === 0 || n.length !== a.length + 1)
512
928
  return null;
513
- for (let r = 0; r < t.length; r++)
514
- if (t[r].entry.absolutePath === e.path)
929
+ for (let r = 0; r < a.length; r++)
930
+ if (a[r].entry.absolutePath === e.path)
515
931
  return Math.max(0, n[r] + e.offsetInViewport);
516
932
  return null;
517
- }, Eo = (e, t, n) => {
933
+ }, Ot = (e, a, n) => {
518
934
  const r = [];
519
- for (let s = t; s < n; s++) {
520
- const a = e[s];
521
- if (!(!a || a.length === 0))
522
- for (const i of a)
523
- r.push(i);
935
+ for (let o = a; o < n; o++) {
936
+ const c = e[o];
937
+ if (!(!c || c.length === 0))
938
+ for (const s of c)
939
+ r.push(s);
524
940
  }
525
941
  return r;
526
- }, xo = (e, t, n) => {
942
+ }, $t = (e, a, n) => {
527
943
  const r = [];
528
- for (let s = t; s < n; s++) {
529
- const a = e[s];
530
- if (!(!a || a.length === 0))
531
- for (const i of a)
532
- r.push(i);
944
+ for (let o = a; o < n; o++) {
945
+ const c = e[o];
946
+ if (!(!c || c.length === 0))
947
+ for (const s of c)
948
+ r.push(s);
533
949
  }
534
950
  return r;
535
- }, No = (e, t, n, r) => {
536
- const s = Math.max(1, Math.floor(t * r)), a = Math.max(1, Math.floor(n * r));
537
- (e.width !== s || e.height !== a) && (e.width = s, e.height = a);
538
- const i = e.style;
539
- i.width !== `${t}px` && (i.width = `${t}px`), i.height !== `${n}px` && (i.height = `${n}px`);
540
- }, Ro = (e, t, n) => {
951
+ }, Dt = (e, a, n, r) => {
952
+ const o = Math.max(1, Math.floor(a * r)), c = Math.max(1, Math.floor(n * r));
953
+ (e.width !== o || e.height !== c) && (e.width = o, e.height = c);
954
+ const s = e.style;
955
+ s.width !== `${a}px` && (s.width = `${a}px`), s.height !== `${n}px` && (s.height = `${n}px`);
956
+ }, _t = (e, a, n) => {
541
957
  e.lineWidth = n, e.beginPath();
542
- for (const r of t)
958
+ for (const r of a)
543
959
  e.moveTo(r.x1, r.y1), e.lineTo(r.x2, r.y2);
544
960
  e.stroke();
545
- }, ko = (e, t, n, r) => {
546
- if (t.length === 0)
961
+ }, zt = (e, a, n, r) => {
962
+ if (a.length === 0)
547
963
  return;
548
- const s = e.strokeStyle, a = e.lineWidth, i = e.lineCap, c = e.lineJoin;
964
+ const o = e.strokeStyle, c = e.lineWidth, s = e.lineCap, d = e.lineJoin;
549
965
  e.strokeStyle = n, e.lineCap = "round", e.lineJoin = "round";
550
- for (const d of t) {
551
- const y = r ?? d.size, N = Math.max(0, y / 2), w = Math.max(1, Math.round(y * 0.08)), R = Math.max(1, Math.round(y * 0.14)), f = Math.max(0, N - w * 0.8), m = Math.max(0, f * 0.55);
552
- e.lineWidth = w, e.beginPath(), e.arc(d.centerX, d.centerY, Math.max(0, N - w * 0.3), 0, Math.PI * 2), e.stroke(), e.lineWidth = R, e.beginPath(), e.moveTo(d.centerX - m, d.centerY), e.lineTo(d.centerX + m, d.centerY), e.stroke(), d.isExpanded || (e.beginPath(), e.moveTo(d.centerX, d.centerY - m), e.lineTo(d.centerX, d.centerY + m), e.stroke());
966
+ for (const u of a) {
967
+ const p = r ?? u.size, y = Math.max(0, p / 2), E = Math.max(1, Math.round(p * 0.08)), M = Math.max(1, Math.round(p * 0.14)), H = Math.max(0, y - E * 0.8), m = Math.max(0, H * 0.55);
968
+ e.lineWidth = E, e.beginPath(), e.arc(u.centerX, u.centerY, Math.max(0, y - E * 0.3), 0, Math.PI * 2), e.stroke(), e.lineWidth = M, e.beginPath(), e.moveTo(u.centerX - m, u.centerY), e.lineTo(u.centerX + m, u.centerY), e.stroke(), u.isExpanded || (e.beginPath(), e.moveTo(u.centerX, u.centerY - m), e.lineTo(u.centerX, u.centerY + m), e.stroke());
553
969
  }
554
- e.strokeStyle = s, e.lineWidth = a, e.lineCap = i, e.lineJoin = c;
555
- }, Zn = zt(({ segmentsByItem: e, glyphsByItem: t, itemHeight: n, width: r, viewportHeight: s, scrollPosition: a, color: i = _n, strokeWidth: c = 1, renderStartIndex: d, renderEndIndex: y, lookaheadEndIndex: N, devicePixelRatio: w, expandGlyphColor: R, expandGlyphSize: f }) => {
556
- const m = H(null), h = H(null), S = H({
970
+ e.strokeStyle = o, e.lineWidth = c, e.lineCap = s, e.lineJoin = d;
971
+ }, h2 = D1(({ segmentsByItem: e, glyphsByItem: a, itemHeight: n, width: r, viewportHeight: o, scrollPosition: c, color: s = Xe, strokeWidth: d = 1, renderStartIndex: u, renderEndIndex: p, lookaheadEndIndex: y, devicePixelRatio: E, expandGlyphColor: M, expandGlyphSize: H }) => {
972
+ const m = _(null), h = _(null), Z = _({
557
973
  segmentsByItem: e,
558
- glyphsByItem: t,
974
+ glyphsByItem: a,
559
975
  itemHeight: n,
560
976
  width: r,
561
- viewportHeight: s,
562
- scrollPosition: a,
563
- color: i,
564
- strokeWidth: c,
565
- renderStartIndex: d,
566
- renderEndIndex: y,
567
- lookaheadEndIndex: N,
568
- devicePixelRatio: w,
569
- expandGlyphColor: R,
570
- expandGlyphSize: f
571
- }), b = E(() => {
977
+ viewportHeight: o,
978
+ scrollPosition: c,
979
+ color: s,
980
+ strokeWidth: d,
981
+ renderStartIndex: u,
982
+ renderEndIndex: p,
983
+ lookaheadEndIndex: y,
984
+ devicePixelRatio: E,
985
+ expandGlyphColor: M,
986
+ expandGlyphSize: H
987
+ }), g = b(() => {
572
988
  h.current = null;
573
- const x = m.current;
574
- if (!x)
989
+ const w = m.current;
990
+ if (!w)
575
991
  return;
576
- const k = x.getContext("2d");
577
- if (!k)
992
+ const S = w.getContext("2d");
993
+ if (!S)
578
994
  return;
579
- const p = S.current;
580
- if (p.width <= 0 || p.viewportHeight <= 0) {
581
- k.clearRect(0, 0, x.width, x.height);
995
+ const A = Z.current;
996
+ if (A.width <= 0 || A.viewportHeight <= 0) {
997
+ S.clearRect(0, 0, w.width, w.height);
582
998
  return;
583
999
  }
584
- const L = Number.isFinite(p.devicePixelRatio ?? NaN) ? p.devicePixelRatio : typeof window < "u" && window.devicePixelRatio || 1;
585
- No(x, p.width, p.viewportHeight, L);
586
- const D = p.segmentsByItem.length, P = typeof p.renderStartIndex == "number" && Number.isFinite(p.renderStartIndex) ? Math.max(0, Math.floor(p.renderStartIndex)) : Math.max(0, Math.floor(p.scrollPosition / p.itemHeight)), le = Math.min(D, Math.ceil((p.scrollPosition + p.viewportHeight) / p.itemHeight)), J = (() => {
587
- if (typeof p.renderEndIndex == "number" && Number.isFinite(p.renderEndIndex)) {
588
- const B = Math.floor(p.renderEndIndex);
589
- return Math.max(Math.min(D, B + 1), P);
1000
+ const D = Number.isFinite(A.devicePixelRatio ?? NaN) ? A.devicePixelRatio : typeof window < "u" && window.devicePixelRatio || 1;
1001
+ Dt(w, A.width, A.viewportHeight, D);
1002
+ const P = A.segmentsByItem.length, T = typeof A.renderStartIndex == "number" && Number.isFinite(A.renderStartIndex) ? Math.max(0, Math.floor(A.renderStartIndex)) : Math.max(0, Math.floor(A.scrollPosition / A.itemHeight)), z = Math.min(P, Math.ceil((A.scrollPosition + A.viewportHeight) / A.itemHeight)), O = (() => {
1003
+ if (typeof A.renderEndIndex == "number" && Number.isFinite(A.renderEndIndex)) {
1004
+ const x = Math.floor(A.renderEndIndex);
1005
+ return Math.max(Math.min(P, x + 1), T);
590
1006
  }
591
- return Math.max(le, P);
592
- })(), $ = (() => {
593
- if (typeof p.lookaheadEndIndex == "number" && Number.isFinite(p.lookaheadEndIndex)) {
594
- const B = Math.floor(p.lookaheadEndIndex), ue = Math.min(D, B + 1);
595
- return Math.max(ue, J);
1007
+ return Math.max(z, T);
1008
+ })(), d0 = (() => {
1009
+ if (typeof A.lookaheadEndIndex == "number" && Number.isFinite(A.lookaheadEndIndex)) {
1010
+ const x = Math.floor(A.lookaheadEndIndex), h0 = Math.min(P, x + 1);
1011
+ return Math.max(h0, O);
596
1012
  }
597
- return Math.max(le, J);
598
- })(), Y = Eo(p.segmentsByItem, P, $), be = xo(p.glyphsByItem, P, $);
599
- k.save(), k.scale(L, L), k.clearRect(0, 0, p.width, p.viewportHeight), k.translate(0, -p.scrollPosition), k.strokeStyle = p.color, Ro(k, Y, p.strokeWidth), ko(k, be, p.expandGlyphColor ?? p.color, p.expandGlyphSize), k.restore();
600
- }, []), z = E(() => {
601
- h.current === null && (h.current = window.requestAnimationFrame(b));
602
- }, [b]);
603
- return Ae(() => {
604
- S.current = {
1013
+ return Math.max(z, O);
1014
+ })(), r0 = Ot(A.segmentsByItem, T, d0), B = $t(A.glyphsByItem, T, d0);
1015
+ S.save(), S.scale(D, D), S.clearRect(0, 0, A.width, A.viewportHeight), S.translate(0, -A.scrollPosition), S.strokeStyle = A.color, _t(S, r0, A.strokeWidth), zt(S, B, A.expandGlyphColor ?? A.color, A.expandGlyphSize), S.restore();
1016
+ }, []), I = b(() => {
1017
+ h.current === null && (h.current = window.requestAnimationFrame(g));
1018
+ }, [g]);
1019
+ return T0(() => {
1020
+ Z.current = {
605
1021
  segmentsByItem: e,
606
- glyphsByItem: t,
1022
+ glyphsByItem: a,
607
1023
  itemHeight: n,
608
1024
  width: r,
609
- viewportHeight: s,
610
- scrollPosition: a,
611
- color: i,
612
- strokeWidth: c,
613
- renderStartIndex: d,
614
- renderEndIndex: y,
615
- lookaheadEndIndex: N,
616
- devicePixelRatio: w,
617
- expandGlyphColor: R,
618
- expandGlyphSize: f
619
- }, z();
620
- }, [e, t, n, r, s, a, i, c, d, y, N, w, R, f, z]), Ae(() => () => {
1025
+ viewportHeight: o,
1026
+ scrollPosition: c,
1027
+ color: s,
1028
+ strokeWidth: d,
1029
+ renderStartIndex: u,
1030
+ renderEndIndex: p,
1031
+ lookaheadEndIndex: y,
1032
+ devicePixelRatio: E,
1033
+ expandGlyphColor: M,
1034
+ expandGlyphSize: H
1035
+ }, I();
1036
+ }, [e, a, n, r, o, c, s, d, u, p, y, E, M, H, I]), T0(() => () => {
621
1037
  h.current !== null && (window.cancelAnimationFrame(h.current), h.current = null);
622
- }, []), /* @__PURE__ */ u("canvas", { ref: m, className: "pointer-events-none absolute top-0 left-0 z-0" });
1038
+ }, []), /* @__PURE__ */ f("canvas", { ref: m, className: "pointer-events-none absolute top-0 left-0 z-0" });
623
1039
  });
624
- Zn.displayName = "TreeLineCanvas";
625
- const Co = (e) => {
626
- const t = /* @__PURE__ */ new Map();
1040
+ h2.displayName = "TreeLineCanvas";
1041
+ const Bt = (e) => {
1042
+ const a = /* @__PURE__ */ new Map();
627
1043
  for (let n = 0; n < e.length; n++) {
628
1044
  const r = e[n].entry.absolutePath;
629
- t.has(r) || t.set(r, n);
1045
+ a.has(r) || a.set(r, n);
630
1046
  }
631
- return t;
632
- }, Tn = (e, t) => e.selectedPath === t ? e : { selectedPath: t, selectionGeneration: e.selectionGeneration + 1, anchor: e.anchor }, Po = (e, t) => ({ ...e, anchor: { path: t, selectionGeneration: e.selectionGeneration, focused: !0 } }), To = (e, t) => {
633
- const { anchor: n, selectionGeneration: r, selectedPath: s } = t;
1047
+ return a;
1048
+ }, Fe = (e, a) => e.selectedPath === a ? e : { selectedPath: a, selectionGeneration: e.selectionGeneration + 1, anchor: e.anchor }, Wt = (e, a) => ({ ...e, anchor: { path: a, selectionGeneration: e.selectionGeneration, focused: !0 } }), jt = (e, a) => {
1049
+ const { anchor: n, selectionGeneration: r, selectedPath: o } = a;
634
1050
  if (n !== null && (n.focused || n.selectionGeneration === r)) {
635
- const a = e.get(n.path);
636
- if (a !== void 0)
637
- return a;
1051
+ const c = e.get(n.path);
1052
+ if (c !== void 0)
1053
+ return c;
638
1054
  }
639
- if (s !== null) {
640
- const a = e.get(s);
641
- if (a !== void 0)
642
- return a;
1055
+ if (o !== null) {
1056
+ const c = e.get(o);
1057
+ if (c !== void 0)
1058
+ return c;
643
1059
  }
644
1060
  return 0;
645
- }, Oo = {
1061
+ }, Kt = {
646
1062
  msOverflowStyle: "none",
647
1063
  scrollbarWidth: "none"
648
- }, Lo = () => {
1064
+ }, Gt = () => {
649
1065
  let e = document.getElementById("directory-tree-webkit-scrollbar-hide");
650
1066
  e || (e = document.createElement("style"), e.id = "directory-tree-webkit-scrollbar-hide", e.textContent = ".directory-tree-container::-webkit-scrollbar { display: none; }", document.head.appendChild(e));
651
- }, Do = () => () => {
652
- }, Ao = () => !0, _o = () => !1, zo = (e) => {
653
- const t = H(null), n = t.current;
654
- return n !== null && ht.every((r) => n[r] === e[r]) ? n : (t.current = e, e);
655
- }, On = /* @__PURE__ */ new Set(["top", "bottom", "center", "nearest"]), Ln = (e) => {
656
- const t = e?.align;
657
- if (t === void 0)
1067
+ }, Yt = () => () => {
1068
+ }, Xt = () => !0, Ut = () => !1, Jt = (e) => {
1069
+ const a = _(null), n = a.current;
1070
+ return n !== null && p1.every((r) => n[r] === e[r]) ? n : (a.current = e, e);
1071
+ }, Ne = /* @__PURE__ */ new Set(["top", "bottom", "center", "nearest"]), xe = (e) => {
1072
+ const a = e?.align;
1073
+ if (a === void 0)
658
1074
  return "top";
659
- if (!On.has(t))
660
- throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(t)}; expected one of ${[...On].join(", ")}.`);
661
- return t;
662
- }, Fo = {
1075
+ if (!Ne.has(a))
1076
+ throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(a)}; expected one of ${[...Ne].join(", ")}.`);
1077
+ return a;
1078
+ }, qt = {
663
1079
  position: "absolute",
664
1080
  width: 1,
665
1081
  height: 1,
@@ -669,228 +1085,228 @@ const Co = (e) => {
669
1085
  overflow: "hidden",
670
1086
  clipPath: "inset(50%)",
671
1087
  whiteSpace: "nowrap"
672
- }, $o = (e, t, n, r, s) => {
673
- const a = [], i = [];
674
- let c = 0;
675
- const d = (y, N, w) => {
676
- const R = s ? [...y].sort(s) : y;
677
- for (let f = 0; f < R.length; f++) {
678
- const m = R[f], h = f === R.length - 1, S = [...w, h], b = m.children !== void 0, z = b && t(m.absolutePath, m.relativePath);
679
- let x = N, k = w;
680
- r && (x = N - 1, k = w.slice(1)), a.push({ entry: m, indentLevel: x, depth: N, positionInSet: f + 1, setSize: R.length }), n && (x > c && (c = x), i.push({
1088
+ }, Qt = (e, a, n, r, o) => {
1089
+ const c = [], s = [];
1090
+ let d = 0;
1091
+ const u = (p, y, E) => {
1092
+ const M = o ? [...p].sort(o) : p;
1093
+ for (let H = 0; H < M.length; H++) {
1094
+ const m = M[H], h = H === M.length - 1, Z = [...E, h], g = m.children !== void 0, I = g && a(m.absolutePath, m.relativePath);
1095
+ let w = y, S = E;
1096
+ r && (w = y - 1, S = E.slice(1)), c.push({ entry: m, indentLevel: w, depth: y, positionInSet: H + 1, setSize: M.length }), n && (w > d && (d = w), s.push({
681
1097
  id: m.absolutePath,
682
1098
  name: m.name,
683
1099
  absolutePath: m.absolutePath,
684
- indentLevel: x,
1100
+ indentLevel: w,
685
1101
  isLastChild: h,
686
- isDirectory: b,
687
- isExpanded: z,
688
- ancestorIsLast: [...k],
689
- hideLines: r && N === 0
690
- })), b && z && m.children && d(m.children, N + 1, S);
1102
+ isDirectory: g,
1103
+ isExpanded: I,
1104
+ ancestorIsLast: [...S],
1105
+ hideLines: r && y === 0
1106
+ })), g && I && m.children && u(m.children, y + 1, Z);
691
1107
  }
692
1108
  };
693
- return d(e, 0, []), { flatItems: a, lineItems: i, maxIndent: c };
694
- }, Dn = (e, t) => {
1109
+ return u(e, 0, []), { flatItems: c, lineItems: s, maxIndent: d };
1110
+ }, Re = (e, a) => {
695
1111
  const n = e.length - 1;
696
1112
  if (n <= 0) return 0;
697
- let r = 0, s = n - 1, a = 0;
698
- for (; r <= s; ) {
699
- const i = r + s >>> 1;
700
- e[i] <= t ? (a = i, r = i + 1) : s = i - 1;
1113
+ let r = 0, o = n - 1, c = 0;
1114
+ for (; r <= o; ) {
1115
+ const s = r + o >>> 1;
1116
+ e[s] <= a ? (c = s, r = s + 1) : o = s - 1;
701
1117
  }
702
- return a;
703
- }, Mo = (e, t, n, r, s, a) => {
704
- const i = r?.renderStart ?? Math.max(0, Dn(a, s)), c = t > 0 ? Dn(a, s + t) + n : i + n, d = e > 0 ? Math.min(e - 1, Math.max(i, c)) : i, y = r?.renderEnd ?? d, N = e > 0 ? Math.min(e - 1, y + n) : y;
705
- return { renderStart: i, renderEnd: y, lookaheadEnd: N };
706
- }, Ho = (e, t, n, r) => {
1118
+ return c;
1119
+ }, e8 = (e, a, n, r, o, c) => {
1120
+ const s = r?.renderStart ?? Math.max(0, Re(c, o)), d = a > 0 ? Re(c, o + a) + n : s + n, u = e > 0 ? Math.min(e - 1, Math.max(s, d)) : s, p = r?.renderEnd ?? u, y = e > 0 ? Math.min(e - 1, p + n) : p;
1121
+ return { renderStart: s, renderEnd: p, lookaheadEnd: y };
1122
+ }, t8 = (e, a, n, r, o) => {
707
1123
  if (e.length === 0)
708
1124
  return { segmentsByItem: [], glyphsByItem: [] };
709
- const { indentSize: s, typeIconSize: a, glyphSize: i, originX: c } = r, d = Array.from({ length: e.length }, () => []), y = Array.from({ length: e.length }, () => []), N = c + So(r), w = (f) => f * s + N, R = i / 2 + 2;
710
- for (let f = 0; f < e.length; f++) {
711
- const m = e[f], h = t[f] ?? 0, S = n[f] ?? 0, b = S + h / 2, z = e[f + 1], x = b + a / 2, k = S + h, p = z !== void 0 && z.indentLevel === m.indentLevel + 1 && x < k ? { key: `${m.id}-connector-children`, x1: w(z.indentLevel), y1: x, x2: w(z.indentLevel), y2: k, itemIndex: f } : null;
712
- if (m.hideLines) {
713
- p !== null && (d[f] = [p]);
1125
+ const { indentSize: c, typeIconSize: s, glyphSize: d, originX: u } = r, p = Array.from({ length: e.length }, () => []), y = Array.from({ length: e.length }, () => []), E = u + Rt(r), M = (m) => m * c + E, H = d / 2 + 2;
1126
+ for (let m = 0; m < e.length; m++) {
1127
+ const h = e[m], Z = a[m] ?? 0, g = n[m] ?? 0, I = g + Z / 2, w = e[m + 1], S = I + s / 2, A = g + Z, D = w !== void 0 && w.indentLevel === h.indentLevel + 1 && S < A ? { key: `${h.id}-connector-children`, x1: M(w.indentLevel), y1: S, x2: M(w.indentLevel), y2: A, itemIndex: m } : null;
1128
+ if (h.hideLines) {
1129
+ D !== null && (p[m] = [D]);
714
1130
  continue;
715
1131
  }
716
- const L = [];
717
- for (let P = 0; P < m.indentLevel; P++) {
718
- if (m.ancestorIsLast[P] ?? !1)
1132
+ const P = [], T = h.isDirectory && o;
1133
+ for (let O = 0; O < h.indentLevel; O++) {
1134
+ if (h.ancestorIsLast[O] ?? !1)
719
1135
  continue;
720
- let J = !1;
721
- for (let $ = f; $ < e.length; $++) {
722
- const Y = e[$];
723
- if (Y.indentLevel > P && Y.ancestorIsLast.length > P && !Y.ancestorIsLast[P]) {
724
- J = !0;
1136
+ let r0 = !1;
1137
+ for (let B = m; B < e.length; B++) {
1138
+ const x = e[B];
1139
+ if (x.indentLevel > O && x.ancestorIsLast.length > O && !x.ancestorIsLast[O]) {
1140
+ r0 = !0;
725
1141
  break;
726
1142
  }
727
- if ($ > f && Y.indentLevel === P)
1143
+ if (B > m && x.indentLevel === O)
728
1144
  break;
729
1145
  }
730
- if (J) {
731
- const $ = w(P);
732
- L.push({
733
- key: `${m.id}-ancestor-${P}`,
734
- x1: $,
735
- y1: S,
736
- x2: $,
737
- y2: S + h,
738
- itemIndex: f
1146
+ if (r0) {
1147
+ const B = M(O);
1148
+ P.push({
1149
+ key: `${h.id}-ancestor-${O}`,
1150
+ x1: B,
1151
+ y1: g,
1152
+ x2: B,
1153
+ y2: g + Z,
1154
+ itemIndex: m
739
1155
  });
740
1156
  }
741
1157
  }
742
- const D = w(m.indentLevel);
743
- f > 0 && L.push({
744
- key: `${m.id}-connector-top`,
745
- x1: D,
746
- y1: S,
747
- x2: D,
748
- y2: m.isDirectory ? b - R : b,
749
- itemIndex: f
750
- }), !m.isDirectory && m.isLastChild && L.push({
751
- key: `${m.id}-connector-horizontal`,
752
- x1: D,
753
- y1: b,
754
- x2: c + m.indentLevel * s + se,
755
- y2: b,
756
- itemIndex: f
757
- }), m.isLastChild || (m.isDirectory ? L.push({
758
- key: `${m.id}-connector-bottom`,
759
- x1: D,
760
- y1: b + R,
761
- x2: D,
762
- y2: S + h,
763
- itemIndex: f
764
- }) : L.push({
765
- key: `${m.id}-connector-bottom`,
766
- x1: D,
767
- y1: b,
768
- x2: D,
769
- y2: S + h,
770
- itemIndex: f
771
- })), p !== null && L.push(p), d[f] = L, m.isDirectory && (y[f] = [
1158
+ const z = M(h.indentLevel);
1159
+ m > 0 && P.push({
1160
+ key: `${h.id}-connector-top`,
1161
+ x1: z,
1162
+ y1: g,
1163
+ x2: z,
1164
+ y2: T ? I - H : I,
1165
+ itemIndex: m
1166
+ }), !T && h.isLastChild && P.push({
1167
+ key: `${h.id}-connector-horizontal`,
1168
+ x1: z,
1169
+ y1: I,
1170
+ x2: u + h.indentLevel * c + s0,
1171
+ y2: I,
1172
+ itemIndex: m
1173
+ }), h.isLastChild || (T ? P.push({
1174
+ key: `${h.id}-connector-bottom`,
1175
+ x1: z,
1176
+ y1: I + H,
1177
+ x2: z,
1178
+ y2: g + Z,
1179
+ itemIndex: m
1180
+ }) : P.push({
1181
+ key: `${h.id}-connector-bottom`,
1182
+ x1: z,
1183
+ y1: I,
1184
+ x2: z,
1185
+ y2: g + Z,
1186
+ itemIndex: m
1187
+ })), D !== null && P.push(D), p[m] = P, T && (y[m] = [
772
1188
  {
773
- key: `${m.id}-glyph`,
774
- itemIndex: f,
775
- centerX: D,
776
- centerY: b,
777
- size: i,
778
- isExpanded: m.isExpanded
1189
+ key: `${h.id}-glyph`,
1190
+ itemIndex: m,
1191
+ centerX: z,
1192
+ centerY: I,
1193
+ size: d,
1194
+ isExpanded: h.isExpanded
779
1195
  }
780
1196
  ]);
781
1197
  }
782
- return { segmentsByItem: d, glyphsByItem: y };
783
- }, qn = zt(
1198
+ return { segmentsByItem: p, glyphsByItem: y };
1199
+ }, u2 = D1(
784
1200
  ({
785
1201
  entry: e,
786
- indentLevel: t,
1202
+ indentLevel: a,
787
1203
  originX: n,
788
1204
  depth: r,
789
- positionInSet: s,
790
- setSize: a,
791
- isSelectedForAria: i,
792
- flatIndex: c,
793
- isActive: d,
794
- registerRowRef: y,
795
- onNavigationKeyDown: N,
796
- onRowFocus: w,
797
- onRowBlur: R,
798
- rowHeight: f,
1205
+ positionInSet: o,
1206
+ setSize: c,
1207
+ isSelectedForAria: s,
1208
+ flatIndex: d,
1209
+ isActive: u,
1210
+ registerRowRef: p,
1211
+ onNavigationKeyDown: y,
1212
+ onRowFocus: E,
1213
+ onRowBlur: M,
1214
+ rowHeight: H,
799
1215
  entryKindDirectory: m,
800
1216
  entryKindFile: h,
801
- isDirOpen: S,
802
- expansion: { toggleDirectory: b, onToggleDirectoryRecursive: z },
803
- selection: { onEntryClick: x, selectedPath: k, currentPath: p, mode: L = "none", selectedItems: D, onSelectionChange: P },
1217
+ isDirOpen: Z,
1218
+ expansion: { toggleDirectory: g, onToggleDirectoryRecursive: I },
1219
+ selection: { onEntryClick: w, selectedPath: S, currentPath: A, mode: D = "none", selectedItems: P, onSelectionChange: T },
804
1220
  visual: {
805
- iconOverrides: le,
806
- showExpandIcons: J = !0,
807
- showDirectoryIcons: $ = !0,
808
- showFileIcons: Y = !0,
809
- useCanvasExpandIcons: be = !1,
810
- expandIconSize: B,
811
- typeIconSize: ue,
812
- fontSize: Se,
813
- indentSize: Z,
814
- highlightStyles: q,
815
- entryClassName: _e,
816
- entryStyle: Re,
817
- nameClassName: ke,
818
- nameStyle: A,
819
- directoryNameClassName: te,
820
- directoryNameStyle: M,
821
- fileNameClassName: Ye,
822
- fileNameStyle: I,
823
- expandIconClassName: ze,
824
- expandIconStyle: ve
1221
+ iconOverrides: z,
1222
+ showExpandIcons: O = !0,
1223
+ showDirectoryIcons: d0 = !0,
1224
+ showFileIcons: r0 = !0,
1225
+ useCanvasExpandIcons: B = !1,
1226
+ expandIconSize: x,
1227
+ typeIconSize: h0,
1228
+ fontSize: y0,
1229
+ indentSize: M0,
1230
+ highlightStyles: Q,
1231
+ entryClassName: O0,
1232
+ entryStyle: e0,
1233
+ nameClassName: $0,
1234
+ nameStyle: D0,
1235
+ directoryNameClassName: v0,
1236
+ directoryNameStyle: u0,
1237
+ fileNameClassName: $,
1238
+ fileNameStyle: L,
1239
+ expandIconClassName: Y,
1240
+ expandIconStyle: I0
825
1241
  }
826
1242
  }) => {
827
- Ge(e.style, { option: "entry.style", absolutePath: e.absolutePath });
828
- const [Ce, Fe] = de(!1), C = e.children !== void 0, he = C && S(e.absolutePath), K = e.absolutePath === k, $e = e.absolutePath === p, Q = !C && D?.has(e.absolutePath), X = E((V) => y(c, V), [y, c]), ne = C ? void 0 : $n(e), we = jn({ entry: e, isDirectory: C, isExpanded: he, isItemSelected: !!Q, selectionMode: L, onSelectionChange: P, onEntryClick: x, toggleDirectory: b, onToggleDirectoryRecursive: z }), me = Ce ? q?.hoverClassName !== void 0 ? q.hoverClassName : T.entryHover : "", Pe = (() => {
1243
+ q0(e.style, { option: "entry.style", absolutePath: e.absolutePath });
1244
+ const [X, _0] = f0(!1), C = e.children !== void 0, p0 = C && Z(e.absolutePath), K = e.absolutePath === S, z0 = e.absolutePath === A, t0 = !C && P?.has(e.absolutePath), U = b((J) => p(d, J), [p, d]), l0 = C ? void 0 : qe(e), { handleClick: B0, handleKeyActivate: C0 } = n2({ entry: e, isDirectory: C, isExpanded: p0, isItemSelected: !!t0, selectionMode: D, onSelectionChange: T, onEntryClick: w, toggleDirectory: g, onToggleDirectoryRecursive: I }), W0 = X ? Q?.hoverClassName !== void 0 ? Q.hoverClassName : F.entryHover : "", g0 = (() => {
829
1245
  if (C) {
830
1246
  if (K)
831
- return q?.directorySelectedClassName !== void 0 ? q.directorySelectedClassName : T.entrySelected;
832
- } else if (K || Q)
833
- return q?.itemSelectedClassName !== void 0 ? q.itemSelectedClassName : j(K && T.entrySelected, Q && T.entryItemSelected);
1247
+ return Q?.directorySelectedClassName !== void 0 ? Q.directorySelectedClassName : F.entrySelected;
1248
+ } else if (K || t0)
1249
+ return Q?.itemSelectedClassName !== void 0 ? Q.itemSelectedClassName : j(K && F.entrySelected, t0 && F.entryItemSelected);
834
1250
  return "";
835
- })(), pe = j(T.entry, me, Pe, _e, e.className), Xe = j(T.expandIcon, ze, (K || Q) && T.expandIconSelected), F = j(T.typeIcon, (K || Q) && T.typeIconSelected), et = j(T.name, ke, C && T.nameDirectory, C && te, !C && Ye, (K || Q) && T.nameSelected), ft = Mn({ isDirectory: C, isExpanded: he, showExpandIcons: J && t >= 0, useCanvasExpandIcons: be, expandIconSize: B }), Ve = (C ? $ : Y) ? Hn({ entry: e, isDirectory: C, isExpanded: he, isSelected: K, isItemSelected: !!Q, extension: ne, mimeType: e.mimeType }, le, ue) : null, Ue = {
836
- ...Ce ? q?.hoverStyle : {},
837
- ...C && K ? q?.directorySelectedStyle : {},
838
- ...!C && (K || Q) ? q?.itemSelectedStyle : {}
839
- }, tt = Bn(e.data), mt = { width: ue, height: ue }, Te = Fn(Se), Ie = n + t * Z;
840
- return /* @__PURE__ */ Ne(
1251
+ })(), Q0 = j(F.entry, W0, g0, O0, e.className), E0 = j(F.expandIcon, Y, (K || t0) && F.expandIconSelected), b0 = j(F.typeIcon, (K || t0) && F.typeIconSelected), j0 = j(F.name, $0, C && F.nameDirectory, C && v0, !C && $, (K || t0) && F.nameSelected), F0 = Qe({ isDirectory: C, isExpanded: p0, showExpandIcons: O && a >= 0, useCanvasExpandIcons: B, expandIconSize: x }), N0 = (C ? d0 : r0) ? e2({ entry: e, isDirectory: C, isExpanded: p0, isSelected: K, isItemSelected: !!t0, extension: l0, mimeType: e.mimeType }, z, h0) : null, N = {
1252
+ ...X ? Q?.hoverStyle : {},
1253
+ ...C && K ? Q?.directorySelectedStyle : {},
1254
+ ...!C && (K || t0) ? Q?.itemSelectedStyle : {}
1255
+ }, A1 = t2(e.data), K0 = { width: h0, height: h0 }, e1 = Je(y0), w0 = n + a * M0;
1256
+ return /* @__PURE__ */ Z0(
841
1257
  "div",
842
1258
  {
843
- className: pe,
1259
+ className: Q0,
844
1260
  style: {
845
- ...Te,
846
- ...Ue,
847
- ...Re,
1261
+ ...e1,
1262
+ ...N,
1263
+ ...e0,
848
1264
  ...e.style,
849
1265
  // 箱の性質はホストのスタイルの後に書く。スプレッドは値が undefined のキーも写し、React はそれを空にするため、
850
1266
  // 前に書くと検査が通す { height: undefined } が行の高さを消す
851
- paddingLeft: `${Math.max(0, Ie)}px`,
852
- transform: Ie < 0 ? `translateX(${Ie}px)` : void 0,
853
- width: Ie < 0 ? `calc(100% + ${-Ie}px)` : void 0,
854
- height: `${f}px`
1267
+ paddingLeft: `${Math.max(0, w0)}px`,
1268
+ transform: w0 < 0 ? `translateX(${w0}px)` : void 0,
1269
+ width: w0 < 0 ? `calc(100% + ${-w0}px)` : void 0,
1270
+ height: `${H}px`
855
1271
  },
856
- ...tt,
1272
+ ...A1,
857
1273
  "data-entry-type": C ? "directory" : "file",
858
- "data-entry-expanded": C ? String(he) : void 0,
1274
+ "data-entry-expanded": C ? String(p0) : void 0,
859
1275
  "data-entry-selected": K ? "true" : void 0,
860
- "data-entry-item-selected": Q ? "true" : void 0,
861
- onClick: we,
862
- onMouseEnter: () => Fe(!0),
863
- onMouseLeave: () => Fe(!1),
864
- onFocus: (V) => w(c, e.absolutePath, V.currentTarget),
865
- onBlur: (V) => R(e.absolutePath, V.currentTarget),
866
- ref: X,
867
- onKeyDown: (V) => {
868
- if (V.key === "Enter" || V.key === " ") {
869
- V.preventDefault(), V.repeat || we(V);
1276
+ "data-entry-item-selected": t0 ? "true" : void 0,
1277
+ onClick: B0,
1278
+ onMouseEnter: () => _0(!0),
1279
+ onMouseLeave: () => _0(!1),
1280
+ onFocus: (J) => E(d, e.absolutePath, J.currentTarget),
1281
+ onBlur: (J) => M(e.absolutePath, J.currentTarget),
1282
+ ref: U,
1283
+ onKeyDown: (J) => {
1284
+ if (J.key === "Enter" || J.key === " ") {
1285
+ J.preventDefault(), J.repeat || C0(J);
870
1286
  return;
871
1287
  }
872
- N(V, c);
1288
+ y(J, d);
873
1289
  },
874
- tabIndex: d ? 0 : -1,
1290
+ tabIndex: u ? 0 : -1,
875
1291
  role: "treeitem",
876
- "aria-expanded": C ? he : void 0,
1292
+ "aria-expanded": C ? p0 : void 0,
877
1293
  "aria-level": r + 1,
878
- "aria-posinset": s,
879
- "aria-setsize": a,
880
- "aria-selected": L === "none" ? void 0 : i,
881
- "aria-current": $e ? "page" : void 0,
1294
+ "aria-posinset": o,
1295
+ "aria-setsize": c,
1296
+ "aria-selected": D === "none" ? void 0 : s,
1297
+ "aria-current": z0 ? "page" : void 0,
882
1298
  "aria-label": `${e.name} (${C ? m : h})`,
883
1299
  children: [
884
- (J || be) && /* @__PURE__ */ u("span", { className: Xe, style: { ...ve, width: se, height: se }, children: ft }),
885
- (C ? $ : Y) && /* @__PURE__ */ u("span", { className: F, style: mt, children: Ve }),
886
- /* @__PURE__ */ u(
1300
+ (O || B) && /* @__PURE__ */ f("span", { className: E0, style: { ...I0, width: s0, height: s0 }, children: F0 }),
1301
+ (C ? d0 : r0) && /* @__PURE__ */ f("span", { className: b0, style: K0, children: N0 }),
1302
+ /* @__PURE__ */ f(
887
1303
  "span",
888
1304
  {
889
- className: et,
1305
+ className: j0,
890
1306
  style: {
891
- ...Te,
892
- ...A,
893
- ...C ? M : I
1307
+ ...e1,
1308
+ ...D0,
1309
+ ...C ? u0 : L
894
1310
  },
895
1311
  "data-entry-type": C ? "directory" : "file",
896
1312
  "data-entry-role": "name",
@@ -901,646 +1317,655 @@ const Co = (e) => {
901
1317
  }
902
1318
  );
903
1319
  },
904
- (e, t) => {
905
- if (e.entry !== t.entry) return !1;
906
- const n = e.entry.children !== void 0, r = t.entry.children !== void 0, s = n && e.isDirOpen(e.entry.absolutePath), a = r && t.isDirOpen(t.entry.absolutePath);
907
- return e.indentLevel === t.indentLevel && e.originX === t.originX && // 位置情報は aria として描画されるため、変化したら再描画が必要
908
- e.depth === t.depth && e.positionInSet === t.positionInSet && e.setSize === t.setSize && e.isSelectedForAria === t.isSelectedForAria && e.flatIndex === t.flatIndex && e.isActive === t.isActive && e.rowHeight === t.rowHeight && // 種別語はアクセシブルネームとして描画されるため、ロケール / 上書きの変更で再描画が必要
909
- e.entryKindDirectory === t.entryKindDirectory && e.entryKindFile === t.entryKindFile && s === a && e.selection.selectedPath === t.selection.selectedPath && e.selection.currentPath === t.selection.currentPath && e.selection.mode === t.selection.mode && e.selection.selectedItems === t.selection.selectedItems && e.visual.iconOverrides === t.visual.iconOverrides && e.visual.showExpandIcons === t.visual.showExpandIcons && e.visual.showDirectoryIcons === t.visual.showDirectoryIcons && e.visual.showFileIcons === t.visual.showFileIcons && e.visual.useCanvasExpandIcons === t.visual.useCanvasExpandIcons && e.visual.expandIconSize === t.visual.expandIconSize && e.visual.typeIconSize === t.visual.typeIconSize && e.visual.fontSize === t.visual.fontSize && e.visual.indentSize === t.visual.indentSize && e.visual.highlightStyles === t.visual.highlightStyles && e.visual.entryClassName === t.visual.entryClassName && e.visual.entryStyle === t.visual.entryStyle && e.visual.nameClassName === t.visual.nameClassName && e.visual.nameStyle === t.visual.nameStyle && e.visual.directoryNameClassName === t.visual.directoryNameClassName && e.visual.directoryNameStyle === t.visual.directoryNameStyle && e.visual.fileNameClassName === t.visual.fileNameClassName && e.visual.fileNameStyle === t.visual.fileNameStyle && e.visual.expandIconClassName === t.visual.expandIconClassName && e.visual.expandIconStyle === t.visual.expandIconStyle;
1320
+ (e, a) => {
1321
+ if (e.entry !== a.entry) return !1;
1322
+ const n = e.entry.children !== void 0, r = a.entry.children !== void 0, o = n && e.isDirOpen(e.entry.absolutePath), c = r && a.isDirOpen(a.entry.absolutePath);
1323
+ return e.indentLevel === a.indentLevel && e.originX === a.originX && // 位置情報は aria として描画されるため、変化したら再描画が必要
1324
+ e.depth === a.depth && e.positionInSet === a.positionInSet && e.setSize === a.setSize && e.isSelectedForAria === a.isSelectedForAria && e.flatIndex === a.flatIndex && e.isActive === a.isActive && e.rowHeight === a.rowHeight && // 種別語はアクセシブルネームとして描画されるため、ロケール / 上書きの変更で再描画が必要
1325
+ e.entryKindDirectory === a.entryKindDirectory && e.entryKindFile === a.entryKindFile && o === c && e.selection.selectedPath === a.selection.selectedPath && e.selection.currentPath === a.selection.currentPath && e.selection.mode === a.selection.mode && e.selection.selectedItems === a.selection.selectedItems && e.visual.iconOverrides === a.visual.iconOverrides && e.visual.showExpandIcons === a.visual.showExpandIcons && e.visual.showDirectoryIcons === a.visual.showDirectoryIcons && e.visual.showFileIcons === a.visual.showFileIcons && e.visual.useCanvasExpandIcons === a.visual.useCanvasExpandIcons && e.visual.expandIconSize === a.visual.expandIconSize && e.visual.typeIconSize === a.visual.typeIconSize && e.visual.fontSize === a.visual.fontSize && e.visual.indentSize === a.visual.indentSize && e.visual.highlightStyles === a.visual.highlightStyles && e.visual.entryClassName === a.visual.entryClassName && e.visual.entryStyle === a.visual.entryStyle && e.visual.nameClassName === a.visual.nameClassName && e.visual.nameStyle === a.visual.nameStyle && e.visual.directoryNameClassName === a.visual.directoryNameClassName && e.visual.directoryNameStyle === a.visual.directoryNameStyle && e.visual.fileNameClassName === a.visual.fileNameClassName && e.visual.fileNameStyle === a.visual.fileNameStyle && e.visual.expandIconClassName === a.visual.expandIconClassName && e.visual.expandIconStyle === a.visual.expandIconStyle;
910
1326
  }
911
1327
  );
912
- qn.displayName = "DirectoryEntryItem";
913
- const Qn = (e) => {
914
- const t = [];
1328
+ u2.displayName = "DirectoryEntryItem";
1329
+ const m2 = (e) => {
1330
+ const a = [];
915
1331
  if (e.children)
916
1332
  for (const n of e.children)
917
- n.type === "directory" && (t.push(n.absolutePath), t.push(...Qn(n)));
918
- return t;
919
- }, Xo = ({
1333
+ n.type === "directory" && (a.push(n.absolutePath), a.push(...m2(n)));
1334
+ return a;
1335
+ }, c8 = ({
920
1336
  entries: e,
921
- expansion: { toggle: t, isExpanded: n, expandMultiple: r, collapseMultiple: s, isPending: a, alwaysExpanded: i = !1, doubleClickAction: c = "recursive" },
922
- selection: { onEntryClick: d, selectedPath: y, currentPath: N, mode: w = "none", selectedItems: R, onSelectionChange: f },
1337
+ expansion: { toggle: a, isExpanded: n, expandMultiple: r, collapseMultiple: o, isPending: c, alwaysExpanded: s = !1, doubleClickAction: d = "recursive" },
1338
+ selection: { onEntryClick: u, selectedPath: p, currentPath: y, mode: E = "none", selectedItems: M, onSelectionChange: H },
923
1339
  visual: {
924
1340
  className: m,
925
1341
  style: h,
926
- ariaLabel: S,
927
- ariaLabelledBy: b,
928
- lineColor: z = _n,
929
- showTreeLines: x = !0,
930
- showExpandIcons: k = !0,
931
- showDirectoryIcons: p = !0,
932
- showFileIcons: L = !0,
933
- iconOverrides: D,
934
- expandIconSize: P,
935
- typeIconSize: le,
936
- fontSize: J,
937
- indentSize: $,
938
- itemHeight: Y = Tt,
939
- removeRootIndent: be = !1,
940
- highlightStyles: B,
941
- entryClassName: ue,
942
- entryStyle: Se,
943
- nameClassName: Z,
944
- nameStyle: q,
945
- directoryNameClassName: _e,
946
- directoryNameStyle: Re,
947
- fileNameClassName: ke,
948
- fileNameStyle: A,
949
- expandIconClassName: te,
950
- expandIconStyle: M
1342
+ ariaLabel: Z,
1343
+ ariaLabelledBy: g,
1344
+ lineColor: I = Xe,
1345
+ showTreeLines: w = !0,
1346
+ showExpandIcons: S = !0,
1347
+ showDirectoryIcons: A = !0,
1348
+ showFileIcons: D = !0,
1349
+ iconOverrides: P,
1350
+ expandIconSize: T,
1351
+ typeIconSize: z,
1352
+ fontSize: O,
1353
+ indentSize: d0,
1354
+ itemHeight: r0 = R1,
1355
+ removeRootIndent: B = !1,
1356
+ highlightStyles: x,
1357
+ entryClassName: h0,
1358
+ entryStyle: y0,
1359
+ nameClassName: M0,
1360
+ nameStyle: Q,
1361
+ directoryNameClassName: O0,
1362
+ directoryNameStyle: e0,
1363
+ fileNameClassName: $0,
1364
+ fileNameStyle: D0,
1365
+ expandIconClassName: v0,
1366
+ expandIconStyle: u0
951
1367
  } = {},
952
- virtualScroll: Ye,
953
- grid: I,
954
- sort: ze,
955
- locale: ve,
956
- labels: Ce,
957
- ref: Fe
1368
+ virtualScroll: $,
1369
+ grid: L,
1370
+ sort: Y,
1371
+ locale: I0,
1372
+ labels: X,
1373
+ ref: _0
958
1374
  }) => {
959
- const C = An(ve), he = O(() => uo(ve, Ce), [ve, Ce]), K = zo(ho(he)), { entryKindDirectory: $e, entryKindFile: Q } = he, X = O(() => po({ indentSize: $, typeIconSize: le, fontSize: J }), [$, le, J]);
960
- O(() => {
961
- Ge(Se, { option: "visual.entryStyle" }), Ge(B?.hoverStyle, { option: "visual.highlightStyles.hoverStyle" }), Ge(B?.directorySelectedStyle, { option: "visual.highlightStyles.directorySelectedStyle" }), Ge(B?.itemSelectedStyle, { option: "visual.highlightStyles.itemSelectedStyle" }), eo(M, { option: "visual.expandIconStyle" });
962
- }, [Se, B, M]);
963
- const ne = I !== void 0, we = fr(Do, Ao, _o), me = H(null), Pe = H(null), pe = H(null), [Xe, F] = de(0), [et, ft] = de(0), [Ve, Ue] = de(0), [tt, mt] = de(null), {
964
- overscanCount: Te = 15,
965
- className: Ie,
966
- background: V,
967
- onScroll: $t,
968
- onRangeChange: Mt,
969
- onScrollAdjust: Ht,
970
- liveRegion: Bt,
971
- initialScrollIndex: Wt,
972
- initialScrollOffset: Me,
973
- initialScrollAnchor: jt,
974
- callbackThrottleMs: Kt = 5,
975
- contentInsets: Gt,
976
- onItemFocus: Yt,
977
- viewportHeightOverride: re,
978
- scrollBarOptions: pt,
979
- behaviorOptions: Xt,
980
- preserveScrollAnchor: Vt = !1,
981
- getItemKey: er,
1375
+ const C = ke(I0), p0 = R(() => wt(I0, X), [I0, X]), K = Jt(St(p0)), { entryKindDirectory: z0, entryKindFile: t0 } = p0, U = R(() => Ct({ indentSize: d0, typeIconSize: z, fontSize: O }), [d0, z, O]);
1376
+ R(() => {
1377
+ q0(y0, { option: "visual.entryStyle" }), q0(x?.hoverStyle, { option: "visual.highlightStyles.hoverStyle" }), q0(x?.directorySelectedStyle, { option: "visual.highlightStyles.directorySelectedStyle" }), q0(x?.itemSelectedStyle, { option: "visual.highlightStyles.itemSelectedStyle" }), At(u0, { option: "visual.expandIconStyle" });
1378
+ }, [y0, x, u0]);
1379
+ const l0 = L !== void 0, B0 = L2(Yt, Xt, Ut), C0 = _(null), W0 = _(null), g0 = _(null), [Q0, E0] = f0(0), [b0, j0] = f0(0), [F0, N0] = f0(0), [N, A1] = f0(null), {
1380
+ overscanCount: K0 = 15,
1381
+ className: e1,
1382
+ background: w0,
1383
+ onScroll: J,
1384
+ onRangeChange: z1,
1385
+ onScrollAdjust: B1,
1386
+ liveRegion: W1,
1387
+ initialScrollIndex: j1,
1388
+ initialScrollOffset: G0,
1389
+ initialScrollAnchor: K1,
1390
+ callbackThrottleMs: G1 = 5,
1391
+ contentInsets: Y1,
1392
+ onItemFocus: X1,
1393
+ viewportHeightOverride: o0,
1394
+ scrollBarOptions: v1,
1395
+ behaviorOptions: U1,
1396
+ preserveScrollAnchor: J1 = !1,
1397
+ getItemKey: f2,
982
1398
  // 素通しの pass-through。型で受け付けているものは実際に転送する
983
- testId: Ut,
984
- contentProps: yt
985
- } = Ye ?? {}, Jt = O(
986
- () => ne ? { ...yt, role: "rowgroup" } : {
987
- ...yt,
1399
+ testId: q1,
1400
+ contentProps: g1
1401
+ } = $ ?? {}, Q1 = R(
1402
+ () => l0 ? { ...g1, role: "rowgroup" } : {
1403
+ ...g1,
988
1404
  role: "tree",
989
- "aria-label": b ? void 0 : S,
990
- "aria-labelledby": b,
991
- "aria-multiselectable": w === "multiple" ? !0 : void 0,
992
- "aria-busy": a ? !0 : void 0
1405
+ "aria-label": g ? void 0 : Z,
1406
+ "aria-labelledby": g,
1407
+ "aria-multiselectable": E === "multiple" ? !0 : void 0,
1408
+ "aria-busy": c ? !0 : void 0
993
1409
  },
994
- [ne, yt, S, b, w, a]
995
- ), Zt = O(() => ({ ...Xt, enableKeyboardNavigation: !1 }), [Xt]), [nt, qt] = de(typeof Me == "number" ? Me : 0), gt = H(typeof Me == "number" ? Me : 0), Qt = E(
996
- (o, l) => {
997
- gt.current = o, qt(o), $t?.(o, l);
1410
+ [l0, g1, Z, g, E, c]
1411
+ ), ee = R(() => ({ ...U1, enableKeyboardNavigation: !1 }), [U1]), [l1, te] = f0(typeof G0 == "number" ? G0 : 0), H1 = _(typeof G0 == "number" ? G0 : 0), ae = b(
1412
+ (l, i) => {
1413
+ H1.current = l, te(l), J?.(l, i);
998
1414
  },
999
- [$t]
1000
- ), en = E(
1001
- (o) => {
1002
- const { renderingStartIndex: l, renderingEndIndex: g } = o;
1003
- mt((v) => v && v.renderStart === l && v.renderEnd === g ? v : { renderStart: l, renderEnd: g }), Mt?.(o);
1415
+ [J]
1416
+ ), ne = b(
1417
+ (l) => {
1418
+ const { renderingStartIndex: i, renderingEndIndex: v } = l;
1419
+ A1((V) => V && V.renderStart === i && V.renderEnd === v ? V : { renderStart: i, renderEnd: v }), z1?.(l);
1004
1420
  },
1005
- [Mt]
1421
+ [z1]
1006
1422
  );
1007
- Ae(() => {
1008
- Lo();
1009
- }, []), Ae(() => {
1010
- const o = me.current, l = ne ? Pe.current : o, g = () => {
1011
- if (o) {
1012
- const _ = o.clientWidth;
1013
- ft((G) => Math.abs(G - _) > 1 ? _ : G);
1423
+ T0(() => {
1424
+ Gt();
1425
+ }, []), T0(() => {
1426
+ const l = C0.current, i = l0 ? W0.current : l, v = () => {
1427
+ if (l) {
1428
+ const k = l.clientWidth;
1429
+ j0((G) => Math.abs(G - k) > 1 ? k : G);
1014
1430
  }
1015
- if (typeof re == "number")
1016
- F((_) => Math.abs(_ - re) > 1 ? re : _);
1017
- else if (l) {
1018
- const _ = l.clientHeight;
1019
- F((G) => Math.abs(G - _) > 1 ? _ : G);
1431
+ if (typeof o0 == "number")
1432
+ E0((k) => Math.abs(k - o0) > 1 ? o0 : k);
1433
+ else if (i) {
1434
+ const k = i.clientHeight;
1435
+ E0((G) => Math.abs(G - k) > 1 ? k : G);
1020
1436
  }
1021
1437
  };
1022
- if (!(o || l)) return F(0);
1023
- g();
1024
- const v = new ResizeObserver(g);
1025
- return o && v.observe(o), l && l !== o && v.observe(l), () => v.disconnect();
1026
- }, [re, ne]);
1027
- const He = typeof re == "number" ? re : Xe, fe = E((o) => i || (we ? n(o) : !1), [we, n, i]), tn = j(T.container, a && T.containerPending, m), nn = O(
1438
+ if (!(l || i)) return E0(0);
1439
+ v();
1440
+ const V = new ResizeObserver(v);
1441
+ return l && V.observe(l), i && i !== l && V.observe(i), () => V.disconnect();
1442
+ }, [o0, l0]);
1443
+ const Y0 = typeof o0 == "number" ? o0 : Q0, A0 = b((l) => s || (B0 ? n(l) : !1), [B0, n, s]), re = j(F.container, c && F.containerPending, m), le = R(
1028
1444
  () => ({
1029
- ...Oo,
1445
+ ...Kt,
1030
1446
  ...h ?? {},
1031
- ...typeof re == "number" ? { height: re, minHeight: re } : {}
1447
+ ...typeof o0 == "number" ? { height: o0, minHeight: o0 } : {}
1032
1448
  }),
1033
- [h, re]
1034
- ), bt = E(
1035
- (o, l) => {
1036
- const g = [o.absolutePath, ...Qn(o)], v = l || c;
1037
- if (g.every((ge) => fe(ge))) return s(g);
1038
- if (g.every((ge) => !fe(ge)) || v === "recursive") return r(g);
1039
- if (v === "toggle") return s(g);
1040
- console.warn(`[DirectoryTree] Unknown double click action: ${v}. No action taken.`);
1449
+ [h, o0]
1450
+ ), V1 = b(
1451
+ (l, i) => {
1452
+ const v = [l.absolutePath, ...m2(l)], V = i || d;
1453
+ if (v.every((V0) => A0(V0))) return o(v);
1454
+ if (v.every((V0) => !A0(V0)) || V === "recursive") return r(v);
1455
+ if (V === "toggle") return o(v);
1456
+ console.warn(`[DirectoryTree] Unknown double click action: ${V}. No action taken.`);
1041
1457
  },
1042
- [fe, r, s, c]
1043
- ), St = ne ? !1 : be, { flatItems: Oe, lineItems: vt, maxIndent: rn } = O(() => $o(e, fe, x, St, ze), [e, fe, x, St, ze]), rt = yo({ indentSize: X.indentSize, removeRootIndent: St, hasExpandBox: k || x }), ce = O(() => x ? bo(X, P, rt) : null, [x, X, P, rt]), W = O(() => Oe.map((o, l) => ({ ...o, rowHeight: go(Y, o.entry, l) })), [Oe, Y]), Ee = O(() => W.map((o) => o.rowHeight), [W]), Le = O(() => {
1044
- const o = new Array(Ee.length + 1);
1045
- o[0] = 0;
1046
- for (let l = 0; l < Ee.length; l++)
1047
- o[l + 1] = o[l] + Ee[l];
1048
- return o;
1049
- }, [Ee]), on = E((o) => W[o]?.rowHeight ?? Tt, [W]), tr = E((o) => W[o]?.entry.absolutePath ?? o, [W]), sn = er ?? tr, Be = y ?? null, wt = N ?? null, [an, Je] = de(() => ({ selectedPath: Be, selectionGeneration: 0, anchor: null })), It = Tn(an, Be);
1050
- It !== an && Je((o) => Tn(o, Be));
1051
- const ot = O(() => Co(Oe), [Oe]), We = O(() => To(ot, It), [ot, It]), Ze = H(/* @__PURE__ */ new Map()), st = H(null), [it] = de(fo), qe = H(null), [nr, ln] = de(!0), Et = H(Oe);
1052
- Et.current = Oe;
1053
- const cn = H(fe);
1054
- cn.current = fe;
1055
- const xt = H(t);
1056
- xt.current = t;
1057
- const dn = H(ot);
1058
- dn.current = ot;
1059
- const Nt = H(We);
1060
- Nt.current = We;
1061
- const un = H(Yt);
1062
- un.current = Yt;
1063
- const De = E((o) => {
1064
- const l = pe.current;
1065
- return !l || l.getViewportSize() <= 0 ? !1 : (l.scrollToIndex(o, { align: "nearest" }), !0);
1066
- }, []), ye = E(
1067
- (o) => {
1068
- const l = Ze.current.get(o);
1069
- if (l === void 0) {
1070
- qe.current = o, De(o) || (qe.current = null);
1458
+ [A0, r, o, d]
1459
+ ), Z1 = l0 ? !1 : B, { flatItems: x0, lineItems: y1, maxIndent: oe } = R(() => Qt(e, A0, w, Z1, Y), [e, A0, w, Z1, Y]), o1 = Ft({ indentSize: U.indentSize, removeRootIndent: Z1, hasExpandBox: S || w }), m0 = R(() => w ? xt(U, T, o1) : null, [w, U, T, o1]), W = R(() => x0.map((l, i) => ({ ...l, rowHeight: Nt(r0, l.entry, i) })), [x0, r0]), S0 = R(() => W.map((l) => l.rowHeight), [W]), R0 = R(() => {
1460
+ const l = new Array(S0.length + 1);
1461
+ l[0] = 0;
1462
+ for (let i = 0; i < S0.length; i++)
1463
+ l[i + 1] = l[i] + S0[i];
1464
+ return l;
1465
+ }, [S0]), ce = b((l) => W[l]?.rowHeight ?? R1, [W]), p2 = b((l) => W[l]?.entry.absolutePath ?? l, [W]), se = f2 ?? p2, X0 = p ?? null, M1 = y ?? null, [ie, t1] = f0(() => ({ selectedPath: X0, selectionGeneration: 0, anchor: null })), E1 = Fe(ie, X0);
1466
+ E1 !== ie && t1((l) => Fe(l, X0));
1467
+ const c1 = R(() => Bt(x0), [x0]), k0 = R(() => jt(c1, E1), [c1, E1]), a1 = _(/* @__PURE__ */ new Map()), s1 = _(null), [i1] = f0(Lt), n1 = _(null), [A2, de] = f0(!0), b1 = _(x0);
1468
+ b1.current = x0;
1469
+ const he = _(A0);
1470
+ he.current = A0;
1471
+ const w1 = _(a);
1472
+ w1.current = a;
1473
+ const ue = _(c1);
1474
+ ue.current = c1;
1475
+ const S1 = _(k0);
1476
+ S1.current = k0;
1477
+ const me = _(X1);
1478
+ me.current = X1;
1479
+ const P0 = b((l) => {
1480
+ const i = g0.current;
1481
+ return !i || i.getViewportSize() <= 0 ? !1 : (i.scrollToIndex(l, { align: "nearest" }), !0);
1482
+ }, []), H0 = b(
1483
+ (l) => {
1484
+ const i = a1.current.get(l);
1485
+ if (i === void 0) {
1486
+ n1.current = l, P0(l) || (n1.current = null);
1071
1487
  return;
1072
1488
  }
1073
- qe.current = null, De(o), l.focus({ preventScroll: !0 });
1489
+ n1.current = null, P0(l), i.focus({ preventScroll: !0 });
1074
1490
  },
1075
- [De]
1076
- ), hn = E((o, l) => {
1077
- if (l)
1078
- Ze.current.set(o, l), qe.current === o ? (qe.current = null, l.focus({ preventScroll: !0 })) : l.contains(l.ownerDocument.activeElement) && Je((g) => g.anchor === null ? g : { ...g, anchor: { ...g.anchor, focused: !0 } });
1491
+ [P0]
1492
+ ), L1 = b((l, i) => {
1493
+ if (i)
1494
+ a1.current.set(l, i), n1.current === l ? (n1.current = null, i.focus({ preventScroll: !0 })) : i.contains(i.ownerDocument.activeElement) && t1((v) => v.anchor === null ? v : { ...v, anchor: { ...v.anchor, focused: !0 } });
1079
1495
  else {
1080
- const g = Ze.current.get(o);
1081
- Ze.current.delete(o), g?.contains(g.ownerDocument.activeElement) && Je((v) => v.anchor === null ? v : { ...v, anchor: { ...v.anchor, focused: !1 } });
1496
+ const v = a1.current.get(l);
1497
+ a1.current.delete(l), v?.contains(v.ownerDocument.activeElement) && t1((V) => V.anchor === null ? V : { ...V, anchor: { ...V.anchor, focused: !1 } });
1082
1498
  }
1083
- o === Nt.current && ln(l !== null);
1499
+ l === S1.current && de(i !== null);
1084
1500
  }, []);
1085
- En(() => {
1086
- ln(Ze.current.has(We));
1087
- }, [We]);
1088
- const Rt = E(
1089
- (o, l, g) => {
1090
- const v = st.current === g;
1091
- st.current = null, v || (Je((_) => Po(_, l)), it.landedOn(g) || De(o)), un.current?.(o);
1501
+ Ee(() => {
1502
+ de(a1.current.has(k0));
1503
+ }, [k0]);
1504
+ const I1 = b(
1505
+ (l, i, v) => {
1506
+ const V = s1.current === v;
1507
+ s1.current = null, V || (t1((k) => Wt(k, i)), i1.landedOn(v) || P0(l)), me.current?.(l);
1092
1508
  },
1093
- [De, it]
1094
- ), at = E((o) => it.mark(o.nativeEvent), [it]), kt = E((o, l) => {
1095
- const { ownerDocument: g } = l;
1096
- if (!g.hasFocus() && l.contains(g.activeElement)) {
1097
- st.current = l;
1509
+ [P0, i1]
1510
+ ), d1 = b((l) => i1.mark(l.nativeEvent), [i1]), C1 = b((l, i) => {
1511
+ const { ownerDocument: v } = i;
1512
+ if (!v.hasFocus() && i.contains(v.activeElement)) {
1513
+ s1.current = i;
1098
1514
  return;
1099
1515
  }
1100
- st.current = null, Je((v) => v.anchor !== null && v.anchor.path === o ? { ...v, anchor: { ...v.anchor, focused: !1 } } : v);
1101
- }, []), rr = E(() => ye(Nt.current), [ye]), Ct = E(
1102
- (o, l) => {
1103
- const g = Ln(l), v = Et.current.length;
1104
- if (!Number.isInteger(o) || o < 0 || o >= v)
1105
- throw new RangeError(`[directory-tree] scrollToIndex: ${String(o)} is not a row index (${v === 0 ? "the tree has no rows" : `expected an integer in 0..${String(v - 1)}`}).`);
1106
- if (g === "nearest") {
1107
- De(o);
1516
+ s1.current = null, t1((V) => V.anchor !== null && V.anchor.path === l ? { ...V, anchor: { ...V.anchor, focused: !1 } } : V);
1517
+ }, []), v2 = b(() => H0(S1.current), [H0]), F1 = b(
1518
+ (l, i) => {
1519
+ const v = xe(i), V = b1.current.length;
1520
+ if (!Number.isInteger(l) || l < 0 || l >= V)
1521
+ throw new RangeError(`[directory-tree] scrollToIndex: ${String(l)} is not a row index (${V === 0 ? "the tree has no rows" : `expected an integer in 0..${String(V - 1)}`}).`);
1522
+ if (v === "nearest") {
1523
+ P0(l);
1108
1524
  return;
1109
1525
  }
1110
- pe.current?.scrollToIndex(o, { align: g });
1526
+ g0.current?.scrollToIndex(l, { align: v });
1111
1527
  },
1112
- [De]
1528
+ [P0]
1113
1529
  );
1114
- mr(
1115
- Fe,
1530
+ I2(
1531
+ _0,
1116
1532
  () => ({
1117
- scrollToIndex: Ct,
1118
- scrollToPath: (o, l) => {
1119
- Ln(l);
1120
- const g = dn.current.get(o);
1121
- return g === void 0 ? !1 : (Ct(g, l), !0);
1533
+ scrollToIndex: F1,
1534
+ scrollToPath: (l, i) => {
1535
+ xe(i);
1536
+ const v = ue.current.get(l);
1537
+ return v === void 0 ? !1 : (F1(v, i), !0);
1122
1538
  },
1123
- getScrollAnchor: () => pe.current?.getScrollAnchor() ?? null
1539
+ getScrollAnchor: () => g0.current?.getScrollAnchor() ?? null
1124
1540
  }),
1125
- [Ct]
1541
+ [F1]
1126
1542
  );
1127
- const fn = E(
1128
- (o, l) => {
1129
- if (o.altKey || o.ctrlKey || o.metaKey)
1543
+ const N1 = b(
1544
+ (l, i) => {
1545
+ if (l.altKey || l.ctrlKey || l.metaKey)
1130
1546
  return;
1131
- const g = Et.current, v = g.length - 1;
1132
- if (v < 0) return;
1133
- const _ = g[l], G = _?.entry.children !== void 0, ge = G && cn.current(_.entry.absolutePath);
1134
- switch (o.key) {
1547
+ const v = b1.current, V = v.length - 1;
1548
+ if (V < 0) return;
1549
+ const k = v[i], G = k?.entry.children !== void 0, V0 = G && he.current(k.entry.absolutePath);
1550
+ switch (l.key) {
1135
1551
  case "ArrowDown":
1136
- o.preventDefault(), ye(Math.min(l + 1, v));
1552
+ l.preventDefault(), H0(Math.min(i + 1, V));
1137
1553
  break;
1138
1554
  case "ArrowUp":
1139
- o.preventDefault(), ye(Math.max(l - 1, 0));
1555
+ l.preventDefault(), H0(Math.max(i - 1, 0));
1140
1556
  break;
1141
1557
  case "Home":
1142
- o.preventDefault(), ye(0);
1558
+ l.preventDefault(), H0(0);
1143
1559
  break;
1144
1560
  case "End":
1145
- o.preventDefault(), ye(v);
1561
+ l.preventDefault(), H0(V);
1146
1562
  break;
1147
1563
  case "ArrowRight":
1148
- o.preventDefault(), G && !ge ? xt.current(_.entry.absolutePath) : G && l < v && g[l + 1].depth > _.depth && ye(l + 1);
1564
+ l.preventDefault(), G && !V0 ? w1.current(k.entry.absolutePath) : G && i < V && v[i + 1].depth > k.depth && H0(i + 1);
1149
1565
  break;
1150
1566
  case "ArrowLeft": {
1151
- if (o.preventDefault(), G && ge) {
1152
- xt.current(_.entry.absolutePath);
1567
+ if (l.preventDefault(), G && V0) {
1568
+ w1.current(k.entry.absolutePath);
1153
1569
  break;
1154
1570
  }
1155
- const lr = _?.depth ?? 0;
1156
- for (let ut = l - 1; ut >= 0; ut--)
1157
- if (g[ut].depth < lr) {
1158
- ye(ut);
1571
+ const y2 = k?.depth ?? 0;
1572
+ for (let f1 = i - 1; f1 >= 0; f1--)
1573
+ if (v[f1].depth < y2) {
1574
+ H0(f1);
1159
1575
  break;
1160
1576
  }
1161
1577
  break;
1162
1578
  }
1163
1579
  }
1164
1580
  },
1165
- [ye]
1166
- ), lt = O(() => ce === null || vt.length === 0 ? { segmentsByItem: [], glyphsByItem: [] } : Ho(vt, Ee, Le, ce), [vt, Ee, Le, ce]), ct = O(() => ce === null || e.length === 0 ? 0 : ce.originX + rn * ce.indentSize + se + ce.typeIconSize, [e.length, rn, ce]), { renderStart: mn, renderEnd: pn, lookaheadEnd: yn } = O(
1167
- () => Mo(W.length, He, Te, tt, nt, Le),
1168
- [W.length, He, Te, tt, nt, Le]
1169
- ), Pt = O(() => ce === null || ct <= 0 || He <= 0 || lt.segmentsByItem.length === 0 ? null : /* @__PURE__ */ u("div", { className: "pointer-events-none absolute inset-0 z-1", "aria-hidden": "true", children: /* @__PURE__ */ u("div", { className: "absolute top-0 left-0", style: { width: ct, height: He }, children: /* @__PURE__ */ u(
1170
- Zn,
1581
+ [H0]
1582
+ ), h1 = R(
1583
+ () => m0 === null || y1.length === 0 ? { segmentsByItem: [], glyphsByItem: [] } : t8(y1, S0, R0, m0, S),
1584
+ [y1, S0, R0, m0, S]
1585
+ ), u1 = R(() => m0 === null || e.length === 0 ? 0 : m0.originX + oe * m0.indentSize + s0 + m0.typeIconSize, [e.length, oe, m0]), { renderStart: fe, renderEnd: pe, lookaheadEnd: Ae } = R(
1586
+ () => e8(W.length, Y0, K0, N, l1, R0),
1587
+ [W.length, Y0, K0, N, l1, R0]
1588
+ ), x1 = R(() => m0 === null || u1 <= 0 || Y0 <= 0 || h1.segmentsByItem.length === 0 ? null : /* @__PURE__ */ f("div", { className: "pointer-events-none absolute inset-0 z-1", "aria-hidden": "true", children: /* @__PURE__ */ f("div", { className: "absolute top-0 left-0", style: { width: u1, height: Y0 }, children: /* @__PURE__ */ f(
1589
+ h2,
1171
1590
  {
1172
- segmentsByItem: lt.segmentsByItem,
1173
- glyphsByItem: lt.glyphsByItem,
1174
- itemHeight: Ee[0] ?? Tt,
1175
- width: ct,
1176
- viewportHeight: He,
1177
- scrollPosition: nt,
1178
- color: z,
1179
- expandGlyphColor: z,
1180
- expandGlyphSize: ce.glyphSize,
1181
- renderStartIndex: mn,
1182
- renderEndIndex: pn,
1183
- lookaheadEndIndex: yn
1591
+ segmentsByItem: h1.segmentsByItem,
1592
+ glyphsByItem: h1.glyphsByItem,
1593
+ itemHeight: S0[0] ?? R1,
1594
+ width: u1,
1595
+ viewportHeight: Y0,
1596
+ scrollPosition: l1,
1597
+ color: I,
1598
+ expandGlyphColor: I,
1599
+ expandGlyphSize: m0.glyphSize,
1600
+ renderStartIndex: fe,
1601
+ renderEndIndex: pe,
1602
+ lookaheadEndIndex: Ae
1184
1603
  }
1185
- ) }) }), [ct, He, mn, pn, yn, nt, lt, z, ce, Ee]), gn = E((o) => W[o], [W]), bn = H(null);
1186
- En(() => {
1187
- const o = bn.current;
1188
- if (bn.current = { items: W, offsets: Le }, !Vt || !o || o.items === W)
1604
+ ) }) }), [u1, Y0, fe, pe, Ae, l1, h1, I, m0, S0]), ve = b((l) => W[l], [W]), ge = _(null);
1605
+ Ee(() => {
1606
+ const l = ge.current;
1607
+ if (ge.current = { items: W, offsets: R0 }, !J1 || !l || l.items === W)
1189
1608
  return;
1190
- const l = pe.current, g = l?.getScrollPosition(), v = typeof g == "number" && g >= 0 ? g : gt.current, _ = wo(o.items, o.offsets, v);
1191
- if (!_)
1609
+ const i = g0.current, v = i?.getScrollPosition(), V = typeof v == "number" && v >= 0 ? v : H1.current, k = Pt(l.items, l.offsets, V);
1610
+ if (!k)
1192
1611
  return;
1193
- const G = Io(_, W, Le);
1194
- if (G === null || Math.abs(G - v) < 1)
1612
+ const G = Tt(k, W, R0);
1613
+ if (G === null || Math.abs(G - V) < 1)
1195
1614
  return;
1196
- const ge = l ? l.scrollTo(G) : G;
1197
- gt.current = ge, qt(ge);
1198
- }, [W, Le, Vt]);
1199
- const xe = I?.columns, je = I?.scrollBarWidth ?? pt?.width ?? Un, U = O(() => xe ? io({ measuredWidth: et, columns: xe, scrollBarWidth: je }) : null, [xe, et, je]), dt = O(() => xe ? so(xe) : "", [xe]), or = O(() => I?.showFooter && xe ? ao(e) : [], [I?.showFooter, xe, e]), Ke = U?.maxHScroll ?? 0;
1200
- Ae(() => {
1201
- Ue((o) => Ot(o, Ke));
1202
- }, [Ke]);
1203
- const Sn = E((o) => Ue((l) => Ot(l + o, Ke)), [Ke]), vn = O(
1615
+ const V0 = i ? i.scrollTo(G) : G;
1616
+ H1.current = V0, te(V0);
1617
+ }, [W, R0, J1]);
1618
+ const L0 = L?.columns, U0 = L?.scrollBarWidth ?? v1?.width ?? i2, q = R(() => L0 ? yt({ measuredWidth: b0, columns: L0, scrollBarWidth: U0 }) : null, [L0, b0, U0]), m1 = R(() => L0 ? Zt(L0) : "", [L0]), g2 = R(() => L?.showFooter && L0 ? Mt(e) : [], [L?.showFooter, L0, e]), J0 = q?.maxHScroll ?? 0;
1619
+ T0(() => {
1620
+ N0((l) => k1(l, J0));
1621
+ }, [J0]);
1622
+ const He = b((l) => N0((i) => k1(i + l, J0)), [J0]), Ve = R(
1204
1623
  () => ({
1205
- iconOverrides: D,
1206
- showExpandIcons: k,
1207
- showDirectoryIcons: p,
1208
- showFileIcons: L,
1209
- useCanvasExpandIcons: x,
1210
- expandIconSize: P,
1211
- typeIconSize: X.typeIconSize,
1212
- fontSize: X.fontSize,
1213
- indentSize: X.indentSize,
1214
- highlightStyles: B,
1215
- expandIconClassName: te,
1216
- expandIconStyle: M
1624
+ iconOverrides: P,
1625
+ showExpandIcons: S,
1626
+ showDirectoryIcons: A,
1627
+ showFileIcons: D,
1628
+ useCanvasExpandIcons: w,
1629
+ expandIconSize: T,
1630
+ typeIconSize: U.typeIconSize,
1631
+ fontSize: U.fontSize,
1632
+ indentSize: U.indentSize,
1633
+ highlightStyles: x,
1634
+ expandIconClassName: v0,
1635
+ expandIconStyle: u0
1217
1636
  }),
1218
- [D, k, p, L, x, P, X, B, te, M]
1219
- ), wn = O(
1220
- () => /* @__PURE__ */ u(
1221
- ur,
1637
+ [P, S, A, D, w, T, U, x, v0, u0]
1638
+ ), Ze = R(
1639
+ () => /* @__PURE__ */ f(
1640
+ b2,
1222
1641
  {
1223
- ref: pe,
1642
+ ref: g0,
1224
1643
  itemCount: W.length,
1225
- getItem: gn,
1226
- getItemHeight: on,
1227
- getItemKey: sn,
1228
- testId: Ut,
1229
- contentProps: Jt,
1644
+ getItem: ve,
1645
+ getItemHeight: ce,
1646
+ getItemKey: se,
1647
+ testId: q1,
1648
+ contentProps: Q1,
1230
1649
  locale: C,
1231
1650
  labels: K,
1232
- viewportSize: typeof re == "number" ? re : void 0,
1233
- overscanCount: Te,
1234
- onScroll: Qt,
1235
- onRangeChange: en,
1236
- onScrollAdjust: Ht,
1237
- liveRegion: Bt,
1238
- className: Ie,
1239
- onWheelHorizontal: ne ? Sn : void 0,
1240
- background: /* @__PURE__ */ Ne(cr, { children: [
1241
- ne && U ? (
1651
+ viewportSize: typeof o0 == "number" ? o0 : void 0,
1652
+ overscanCount: K0,
1653
+ onScroll: ae,
1654
+ onRangeChange: ne,
1655
+ onScrollAdjust: B1,
1656
+ liveRegion: W1,
1657
+ className: e1,
1658
+ onWheelHorizontal: l0 ? He : void 0,
1659
+ background: /* @__PURE__ */ Z0(M2, { children: [
1660
+ l0 && q ? (
1242
1661
  // Clip the connector-line canvas to the frozen name column so deep trees never bleed into the numeric region.
1243
- /* @__PURE__ */ u("div", { className: "pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden", style: { width: U.nameWidth }, "aria-hidden": "true", children: Pt })
1244
- ) : Pt,
1245
- V
1662
+ /* @__PURE__ */ f("div", { className: "pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden", style: { width: q.nameWidth }, "aria-hidden": "true", children: x1 })
1663
+ ) : x1,
1664
+ w0
1246
1665
  ] }),
1247
- initialScrollIndex: Wt,
1248
- initialScrollOffset: Me,
1249
- initialScrollAnchor: jt,
1250
- callbackThrottleMs: Kt,
1251
- contentInsets: Gt,
1252
- scrollBarOptions: pt,
1253
- behaviorOptions: Zt,
1254
- children: (o, l) => o ? ne && I && U ? /* @__PURE__ */ u(
1255
- Yn,
1666
+ initialScrollIndex: j1,
1667
+ initialScrollOffset: G0,
1668
+ initialScrollAnchor: K1,
1669
+ callbackThrottleMs: G1,
1670
+ contentInsets: Y1,
1671
+ scrollBarOptions: v1,
1672
+ behaviorOptions: ee,
1673
+ children: (l, i) => l ? l0 && L && q ? /* @__PURE__ */ f(
1674
+ o2,
1256
1675
  {
1257
- entry: o.entry,
1258
- indentLevel: o.indentLevel,
1259
- positionInSet: o.positionInSet,
1260
- setSize: o.setSize,
1261
- rowIndex: l + (I.showHeader ?? !0 ? 2 : 1),
1262
- flatIndex: l,
1263
- onRowFocus: Rt,
1264
- onRowBlur: kt,
1265
- isSelectedForAria: !!R?.has(o.entry.absolutePath),
1266
- rowHeight: o.rowHeight,
1267
- isDirOpen: fe,
1268
- columns: I.columns,
1269
- numericTemplate: dt,
1270
- numericTotal: U.numericTotal,
1271
- nameWidth: U.nameWidth,
1272
- rowClassName: I.rowClassName,
1273
- selection: { onEntryClick: d, selectedPath: Be, currentPath: wt, mode: w, selectedItems: R, onSelectionChange: f },
1274
- expansion: { toggleDirectory: t, onToggleDirectoryRecursive: bt },
1275
- visual: vn
1676
+ entry: l.entry,
1677
+ indentLevel: l.indentLevel,
1678
+ positionInSet: l.positionInSet,
1679
+ setSize: l.setSize,
1680
+ rowIndex: i + (L.showHeader ?? !0 ? 2 : 1),
1681
+ flatIndex: i,
1682
+ isActive: i === k0,
1683
+ registerRowRef: L1,
1684
+ onNavigationKeyDown: N1,
1685
+ onRowFocus: I1,
1686
+ onRowBlur: C1,
1687
+ isSelectedForAria: !!M?.has(l.entry.absolutePath),
1688
+ rowHeight: l.rowHeight,
1689
+ isDirOpen: A0,
1690
+ columns: L.columns,
1691
+ numericTemplate: m1,
1692
+ numericTotal: q.numericTotal,
1693
+ nameWidth: q.nameWidth,
1694
+ rowClassName: L.rowClassName,
1695
+ selection: { onEntryClick: u, selectedPath: X0, currentPath: M1, mode: E, selectedItems: M, onSelectionChange: H },
1696
+ expansion: { toggleDirectory: a, onToggleDirectoryRecursive: V1 },
1697
+ visual: Ve
1276
1698
  },
1277
- o.entry.absolutePath
1278
- ) : /* @__PURE__ */ u(
1279
- qn,
1699
+ l.entry.absolutePath
1700
+ ) : /* @__PURE__ */ f(
1701
+ u2,
1280
1702
  {
1281
- entry: o.entry,
1282
- indentLevel: o.indentLevel,
1283
- originX: rt,
1284
- depth: o.depth,
1285
- positionInSet: o.positionInSet,
1286
- setSize: o.setSize,
1287
- isSelectedForAria: !!R?.has(o.entry.absolutePath),
1288
- flatIndex: l,
1289
- isActive: l === We,
1290
- registerRowRef: hn,
1291
- onNavigationKeyDown: fn,
1292
- onRowFocus: Rt,
1293
- onRowBlur: kt,
1294
- rowHeight: o.rowHeight,
1295
- entryKindDirectory: $e,
1296
- entryKindFile: Q,
1297
- isDirOpen: fe,
1298
- expansion: { toggleDirectory: t, onToggleDirectoryRecursive: bt },
1299
- selection: { onEntryClick: d, selectedPath: Be, currentPath: wt, mode: w, selectedItems: R, onSelectionChange: f },
1703
+ entry: l.entry,
1704
+ indentLevel: l.indentLevel,
1705
+ originX: o1,
1706
+ depth: l.depth,
1707
+ positionInSet: l.positionInSet,
1708
+ setSize: l.setSize,
1709
+ isSelectedForAria: !!M?.has(l.entry.absolutePath),
1710
+ flatIndex: i,
1711
+ isActive: i === k0,
1712
+ registerRowRef: L1,
1713
+ onNavigationKeyDown: N1,
1714
+ onRowFocus: I1,
1715
+ onRowBlur: C1,
1716
+ rowHeight: l.rowHeight,
1717
+ entryKindDirectory: z0,
1718
+ entryKindFile: t0,
1719
+ isDirOpen: A0,
1720
+ expansion: { toggleDirectory: a, onToggleDirectoryRecursive: V1 },
1721
+ selection: { onEntryClick: u, selectedPath: X0, currentPath: M1, mode: E, selectedItems: M, onSelectionChange: H },
1300
1722
  visual: {
1301
- iconOverrides: D,
1302
- showExpandIcons: k,
1303
- showDirectoryIcons: p,
1304
- showFileIcons: L,
1305
- useCanvasExpandIcons: x,
1306
- expandIconSize: P,
1307
- typeIconSize: X.typeIconSize,
1308
- fontSize: X.fontSize,
1309
- indentSize: X.indentSize,
1310
- highlightStyles: B,
1311
- entryClassName: ue,
1312
- entryStyle: Se,
1313
- nameClassName: Z,
1314
- nameStyle: q,
1315
- directoryNameClassName: _e,
1316
- directoryNameStyle: Re,
1317
- fileNameClassName: ke,
1318
- fileNameStyle: A,
1319
- expandIconClassName: te,
1320
- expandIconStyle: M
1723
+ iconOverrides: P,
1724
+ showExpandIcons: S,
1725
+ showDirectoryIcons: A,
1726
+ showFileIcons: D,
1727
+ useCanvasExpandIcons: w,
1728
+ expandIconSize: T,
1729
+ typeIconSize: U.typeIconSize,
1730
+ fontSize: U.fontSize,
1731
+ indentSize: U.indentSize,
1732
+ highlightStyles: x,
1733
+ entryClassName: h0,
1734
+ entryStyle: y0,
1735
+ nameClassName: M0,
1736
+ nameStyle: Q,
1737
+ directoryNameClassName: O0,
1738
+ directoryNameStyle: e0,
1739
+ fileNameClassName: $0,
1740
+ fileNameStyle: D0,
1741
+ expandIconClassName: v0,
1742
+ expandIconStyle: u0
1321
1743
  }
1322
1744
  },
1323
- o.entry.absolutePath
1745
+ l.entry.absolutePath
1324
1746
  ) : null
1325
1747
  }
1326
1748
  ),
1327
1749
  [
1328
1750
  W.length,
1329
- gn,
1330
- on,
1331
- sn,
1332
- Ut,
1333
- Jt,
1751
+ ve,
1752
+ ce,
1753
+ se,
1754
+ q1,
1755
+ Q1,
1334
1756
  C,
1335
1757
  K,
1336
- $e,
1337
- Q,
1338
- We,
1339
- hn,
1340
- fn,
1341
- Rt,
1342
- kt,
1343
- re,
1344
- Te,
1345
- Qt,
1346
- en,
1347
- Ht,
1348
- Bt,
1349
- Ie,
1758
+ z0,
1759
+ t0,
1760
+ k0,
1761
+ L1,
1762
+ N1,
1763
+ I1,
1764
+ C1,
1765
+ o0,
1766
+ K0,
1767
+ ae,
1350
1768
  ne,
1351
- Sn,
1352
- U,
1353
- Pt,
1354
- V,
1355
- Wt,
1356
- Me,
1357
- jt,
1358
- Kt,
1359
- Gt,
1360
- pt,
1361
- Zt,
1362
- I,
1363
- dt,
1364
- fe,
1365
- d,
1366
- Be,
1367
- wt,
1368
- w,
1369
- R,
1370
- f,
1371
- t,
1372
- bt,
1373
- vn,
1374
- D,
1375
- k,
1376
- p,
1769
+ B1,
1770
+ W1,
1771
+ e1,
1772
+ l0,
1773
+ He,
1774
+ q,
1775
+ x1,
1776
+ w0,
1777
+ j1,
1778
+ G0,
1779
+ K1,
1780
+ G1,
1781
+ Y1,
1782
+ v1,
1783
+ ee,
1377
1784
  L,
1378
- x,
1785
+ m1,
1786
+ A0,
1787
+ u,
1788
+ X0,
1789
+ M1,
1790
+ E,
1791
+ M,
1792
+ H,
1793
+ a,
1794
+ V1,
1795
+ Ve,
1379
1796
  P,
1380
- X,
1381
- rt,
1382
- B,
1383
- ue,
1384
- Se,
1385
- Z,
1386
- q,
1387
- _e,
1388
- Re,
1389
- ke,
1797
+ S,
1390
1798
  A,
1391
- te,
1392
- M
1799
+ D,
1800
+ w,
1801
+ T,
1802
+ U,
1803
+ o1,
1804
+ x,
1805
+ h0,
1806
+ y0,
1807
+ M0,
1808
+ Q,
1809
+ O0,
1810
+ e0,
1811
+ $0,
1812
+ D0,
1813
+ v0,
1814
+ u0
1393
1815
  ]
1394
- );
1395
- if (!(I && U))
1396
- return /* @__PURE__ */ Ne("div", { ref: me, className: tn, style: nn, onPointerDownCapture: at, onMouseDownCapture: at, children: [
1397
- Oe.length > 0 && !nr && // biome-ignore lint/a11y/noNoninteractiveTabindex: 停止点の行が描画窓の外で DOM に無い間だけ Tab を受け、受けた瞬間にその行へ焦点を渡す。これが無いとツリーに Tab で入れない
1398
- // biome-ignore lint/a11y/noStaticElementInteractions: 同上 (焦点の受け渡しだけを担い、要素自身は操作の対象ではない)
1399
- /* @__PURE__ */ u("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style: Fo, onFocus: rr }),
1400
- wn
1816
+ ), ye = x0.length > 0 && !A2 && // biome-ignore lint/a11y/noNoninteractiveTabindex: 停止点の行が描画窓の外にある間だけの代わりの停止点 (上の訳)
1817
+ // biome-ignore lint/a11y/noStaticElementInteractions: 同上 (焦点の受け渡しだけを担い、要素自身は操作の対象ではない)
1818
+ /* @__PURE__ */ f("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style: qt, onFocus: v2 });
1819
+ if (!(L && q))
1820
+ return /* @__PURE__ */ Z0("div", { ref: C0, className: re, style: le, onPointerDownCapture: d1, onMouseDownCapture: d1, children: [
1821
+ ye,
1822
+ Ze
1401
1823
  ] });
1402
- const sr = I.showHeader ?? !0, ir = I.showFooter ?? !1, ar = { ...nn, "--dt-hscroll": `${Ve}px` };
1403
- return /* @__PURE__ */ Ne(
1824
+ const H2 = L.showHeader ?? !0, V2 = L.showFooter ?? !1, Z2 = { ...le, "--dt-hscroll": `${F0}px` };
1825
+ return /* @__PURE__ */ Z0(
1404
1826
  "div",
1405
1827
  {
1406
- ref: me,
1407
- className: j(tn, "dt-grid"),
1408
- style: ar,
1828
+ ref: C0,
1829
+ className: j(re, "dt-grid"),
1830
+ style: Z2,
1409
1831
  role: "treegrid",
1410
- "aria-label": b ? void 0 : S,
1411
- "aria-labelledby": b,
1412
- "aria-multiselectable": w === "multiple" ? !0 : void 0,
1413
- "aria-busy": a ? !0 : void 0,
1414
- "aria-rowcount": W.length + (I.showHeader ?? !0 ? 1 : 0),
1415
- onPointerDownCapture: at,
1416
- onMouseDownCapture: at,
1832
+ "aria-label": g ? void 0 : Z,
1833
+ "aria-labelledby": g,
1834
+ "aria-multiselectable": E === "multiple" ? !0 : void 0,
1835
+ "aria-busy": c ? !0 : void 0,
1836
+ "aria-rowcount": W.length + (L.showHeader ?? !0 ? 1 : 0),
1837
+ onPointerDownCapture: d1,
1838
+ onMouseDownCapture: d1,
1417
1839
  children: [
1418
- sr && // biome-ignore lint/a11y/useSemanticElements: 仮想スクロールの treegrid は絶対配置行を使うため native table 要素にできない。ARIA ロールで意味を提供する
1419
- /* @__PURE__ */ u("div", { role: "rowgroup", children: /* @__PURE__ */ u(no, { columns: I.columns, numericTemplate: dt, numericTotal: U.numericTotal, nameWidth: U.nameWidth, scrollBarWidth: je, className: I.headerClassName }) }),
1420
- /* @__PURE__ */ u("div", { ref: Pe, className: "dt-grid-body", children: wn }),
1421
- Ke > 0 && /* @__PURE__ */ Ne("div", { className: "dt-grid-hscrollbar-row", children: [
1422
- /* @__PURE__ */ u("div", { className: "dt-grid-scrollbar-spacer", style: { width: U.nameWidth }, "aria-hidden": "true" }),
1423
- /* @__PURE__ */ u(
1424
- hr,
1840
+ H2 && // biome-ignore lint/a11y/useSemanticElements: 仮想スクロールの treegrid は絶対配置行を使うため native table 要素にできない。ARIA ロールで意味を提供する
1841
+ /* @__PURE__ */ f("div", { role: "rowgroup", children: /* @__PURE__ */ f(gt, { columns: L.columns, numericTemplate: m1, numericTotal: q.numericTotal, nameWidth: q.nameWidth, scrollBarWidth: U0, className: L.headerClassName }) }),
1842
+ /* @__PURE__ */ Z0("div", { ref: W0, className: "dt-grid-body", children: [
1843
+ ye,
1844
+ Ze
1845
+ ] }),
1846
+ J0 > 0 && /* @__PURE__ */ Z0("div", { className: "dt-grid-hscrollbar-row", children: [
1847
+ /* @__PURE__ */ f("div", { className: "dt-grid-scrollbar-spacer", style: { width: q.nameWidth }, "aria-hidden": "true" }),
1848
+ /* @__PURE__ */ f(
1849
+ w2,
1425
1850
  {
1426
1851
  horizontal: !0,
1427
- contentSize: U.numericTotal,
1428
- viewportSize: U.numericVisible,
1429
- scrollPosition: Ve,
1430
- scrollBarWidth: je,
1852
+ contentSize: q.numericTotal,
1853
+ viewportSize: q.numericVisible,
1854
+ scrollPosition: F0,
1855
+ scrollBarWidth: U0,
1431
1856
  locale: C,
1432
1857
  labels: K,
1433
- onScroll: (o) => {
1434
- const l = typeof o == "function" ? o(Ve) : o, g = Ot(l, Ke);
1435
- return Ue(g), g;
1858
+ onScroll: (l) => {
1859
+ const i = typeof l == "function" ? l(F0) : l, v = k1(i, J0);
1860
+ return N0(v), v;
1436
1861
  }
1437
1862
  }
1438
1863
  ),
1439
- /* @__PURE__ */ u("div", { className: "dt-grid-scrollbar-spacer", style: { width: je }, "aria-hidden": "true" })
1864
+ /* @__PURE__ */ f("div", { className: "dt-grid-scrollbar-spacer", style: { width: U0 }, "aria-hidden": "true" })
1440
1865
  ] }),
1441
- ir && // biome-ignore lint/a11y/useSemanticElements: 同上 (フッタ行も絶対配置レイアウトの一部)
1442
- /* @__PURE__ */ u("div", { role: "rowgroup", children: /* @__PURE__ */ u(ro, { columns: I.columns, numericTemplate: dt, numericTotal: U.numericTotal, nameWidth: U.nameWidth, scrollBarWidth: je, allEntries: or, className: I.footerClassName }) })
1866
+ V2 && // biome-ignore lint/a11y/useSemanticElements: 同上 (フッタ行も絶対配置レイアウトの一部)
1867
+ /* @__PURE__ */ f("div", { role: "rowgroup", children: /* @__PURE__ */ f(Ht, { columns: L.columns, numericTemplate: m1, numericTotal: q.numericTotal, nameWidth: q.nameWidth, scrollBarWidth: U0, allEntries: g2, className: L.footerClassName }) })
1443
1868
  ]
1444
1869
  }
1445
1870
  );
1446
- }, Vo = ({ initialExpanded: e = /* @__PURE__ */ new Set(), storageKey: t } = {}) => {
1447
- const [n, r] = pr(), [s, a] = de(() => {
1448
- if (typeof window < "u" && t)
1871
+ }, s8 = ({ initialExpanded: e = /* @__PURE__ */ new Set(), storageKey: a } = {}) => {
1872
+ const [n, r] = C2(), [o, c] = f0(() => {
1873
+ if (typeof window < "u" && a)
1449
1874
  try {
1450
- const h = window.localStorage.getItem(t);
1875
+ const h = window.localStorage.getItem(a);
1451
1876
  if (h) {
1452
- const S = JSON.parse(h);
1453
- return new Set(S);
1877
+ const Z = JSON.parse(h);
1878
+ return new Set(Z);
1454
1879
  }
1455
1880
  } catch (h) {
1456
1881
  console.error("[useDirectoryTreeState] Error reading from localStorage", h);
1457
1882
  }
1458
1883
  return e;
1459
- }), i = E((h) => {
1884
+ }), s = b((h) => {
1460
1885
  r(() => {
1461
- a((S) => {
1462
- const b = new Set(S);
1463
- return h(b), b;
1886
+ c((Z) => {
1887
+ const g = new Set(Z);
1888
+ return h(g), g;
1464
1889
  });
1465
1890
  });
1466
- }, []), c = E(
1467
- (h, S) => {
1468
- i((b) => {
1469
- for (const z of h)
1470
- S(b, z);
1891
+ }, []), d = b(
1892
+ (h, Z) => {
1893
+ s((g) => {
1894
+ for (const I of h)
1895
+ Z(g, I);
1471
1896
  });
1472
1897
  },
1473
- [i]
1898
+ [s]
1474
1899
  );
1475
- Ae(() => {
1476
- if (t && typeof window < "u")
1900
+ T0(() => {
1901
+ if (a && typeof window < "u")
1477
1902
  try {
1478
- window.localStorage.setItem(t, JSON.stringify(Array.from(s)));
1903
+ window.localStorage.setItem(a, JSON.stringify(Array.from(o)));
1479
1904
  } catch (h) {
1480
- console.warn(`Error setting localStorage key "${t}":`, h);
1905
+ console.warn(`Error setting localStorage key "${a}":`, h);
1481
1906
  }
1482
- }, [s, t]);
1483
- const d = E(
1907
+ }, [o, a]);
1908
+ const u = b(
1484
1909
  (h) => {
1485
- c([h], (S, b) => {
1486
- S.has(b) ? S.delete(b) : S.add(b);
1910
+ d([h], (Z, g) => {
1911
+ Z.has(g) ? Z.delete(g) : Z.add(g);
1487
1912
  });
1488
1913
  },
1489
- [c]
1490
- ), y = E(
1914
+ [d]
1915
+ ), p = b(
1491
1916
  (h) => {
1492
- c([h], (S, b) => {
1493
- S.add(b);
1917
+ d([h], (Z, g) => {
1918
+ Z.add(g);
1494
1919
  });
1495
1920
  },
1496
- [c]
1497
- ), N = E(
1921
+ [d]
1922
+ ), y = b(
1498
1923
  (h) => {
1499
- c([h], (S, b) => {
1500
- S.delete(b);
1924
+ d([h], (Z, g) => {
1925
+ Z.delete(g);
1501
1926
  });
1502
1927
  },
1503
- [c]
1504
- ), w = E(
1928
+ [d]
1929
+ ), E = b(
1505
1930
  (h) => {
1506
- c(h, (S, b) => {
1507
- S.delete(b);
1931
+ d(h, (Z, g) => {
1932
+ Z.delete(g);
1508
1933
  });
1509
1934
  },
1510
- [c]
1511
- ), R = E(
1935
+ [d]
1936
+ ), M = b(
1512
1937
  (h) => {
1513
- c(h, (S, b) => {
1514
- S.add(b);
1938
+ d(h, (Z, g) => {
1939
+ Z.add(g);
1515
1940
  });
1516
1941
  },
1517
- [c]
1518
- ), f = E(() => {
1519
- i((h) => {
1942
+ [d]
1943
+ ), H = b(() => {
1944
+ s((h) => {
1520
1945
  h.clear();
1521
1946
  });
1522
- }, [i]), m = E((h) => s.has(h), [s]);
1947
+ }, [s]), m = b((h) => o.has(h), [o]);
1523
1948
  return {
1524
- expanded: s,
1525
- toggle: d,
1526
- expand: y,
1527
- collapse: N,
1528
- collapseMultiple: w,
1529
- expandMultiple: R,
1530
- collapseAll: f,
1949
+ expanded: o,
1950
+ toggle: u,
1951
+ expand: p,
1952
+ collapse: y,
1953
+ collapseMultiple: E,
1954
+ expandMultiple: M,
1955
+ collapseAll: H,
1531
1956
  isExpanded: m,
1532
1957
  isPending: n
1533
1958
  };
1534
1959
  };
1535
1960
  export {
1536
- lo as DIRECTORY_TREE_LABEL_CATALOGS,
1537
- Cn as DIRECTORY_TREE_LABEL_KEYS,
1538
- Xo as DirectoryTree,
1539
- Jr as EXPAND_ICON_STYLE_PROPERTIES,
1540
- Yo as FILE_ICON_PAIRS,
1541
- _r as MARK_PAIRS,
1542
- Ur as ROW_STYLE_PROPERTIES,
1543
- T as directoryTreeClasses,
1544
- uo as resolveDirectoryTreeLabels,
1545
- Vo as useDirectoryTreeState
1961
+ Et as DIRECTORY_TREE_LABEL_CATALOGS,
1962
+ Ie as DIRECTORY_TREE_LABEL_KEYS,
1963
+ c8 as DirectoryTree,
1964
+ ut as EXPAND_ICON_STYLE_PROPERTIES,
1965
+ o8 as FILE_ICON_PAIRS,
1966
+ J2 as MARK_PAIRS,
1967
+ ht as ROW_STYLE_PROPERTIES,
1968
+ F as directoryTreeClasses,
1969
+ wt as resolveDirectoryTreeLabels,
1970
+ s8 as useDirectoryTreeState
1546
1971
  };