@floegence/floe-webapp-core 0.48.4 → 0.48.5

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.
@@ -1,166 +1,167 @@
1
- import { createComponent as l, Dynamic as U, insert as h, effect as k, className as Y, setAttribute as c, template as g, setStyleProperty as F } from "solid-js/web";
2
- import { Show as C, createUniqueId as q } from "solid-js";
3
- var K = /* @__PURE__ */ g('<svg><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></svg>', !1, !0, !1), W = /* @__PURE__ */ g('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8">'), J = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--error) stroke-width=1.35 stroke-linecap=round d="M15.9 15.9 20.1 20.1"></svg>', !1, !0, !1), Q = /* @__PURE__ */ g('<svg><g data-file-link-kind=symbolic><circle cx=18 cy=18 r=4 stroke-width=1></circle><path fill=none stroke-width=1.2 stroke-linecap=round stroke-linejoin=round d="M15.8 18h3.4m0 0-1.4-1.4m1.4 1.4-1.4 1.4"></svg>', !1, !0, !1), Z = /* @__PURE__ */ g('<svg><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z"></svg>', !1, !0, !1), ee = /* @__PURE__ */ g('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><defs><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style=stop-color:var(--warning);stop-opacity:1></stop><stop offset=100% style=stop-opacity:1></stop></linearGradient></defs><path>'), te = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--info) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m10 13-2 2 2 2m4-4 2 2-2 2"></svg>', !1, !0, !1), ne = /* @__PURE__ */ g('<svg><g><rect x=5 y=13.5 width=14 height=5.75 rx=1.8 opacity=0.12 stroke-width=1></rect><text x=12 y=17.45 font-weight=700 text-anchor=middle style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace"></svg>', !1, !0, !1), re = /* @__PURE__ */ g("<svg><circle cx=10 cy=13 r=2 fill=var(--success)></svg>", !1, !0, !1), oe = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--success) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m20 17-3-3-4 4-2-2-5 3"></svg>', !1, !0, !1), le = /* @__PURE__ */ g('<svg><g data-file-icon-kind=video><rect x=6.75 y=12 width=10.5 height=6.25 rx=1.5 fill="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"opacity=0.14 stroke="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"stroke-width=1.2></rect><path fill="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"d="M10.75 13.7v2.85a.45.45 0 0 0 .68.39l2.45-1.43a.45.45 0 0 0 0-.78l-2.45-1.42a.45.45 0 0 0-.68.39z"></path><line x1=8 y1=19.5 x2=16 y2=19.5 stroke="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"stroke-width=1.2 stroke-linecap=round opacity=0.72></svg>', !1, !0, !1), se = /* @__PURE__ */ g('<svg><g data-file-icon-kind=audio><path fill=none stroke=var(--info) stroke-width=1.45 stroke-linecap=round stroke-linejoin=round d="M9 16.25v-5.2l5.5-1.15v5.15"></path><ellipse cx=8.2 cy=17.2 rx=1.75 ry=1.25 fill=var(--info) opacity=0.2 stroke=var(--info) stroke-width=1.1></ellipse><ellipse cx=13.7 cy=16 rx=1.75 ry=1.25 fill=var(--info) opacity=0.2 stroke=var(--info) stroke-width=1.1></svg>', !1, !0, !1), ie = /* @__PURE__ */ g("<svg><line x1=8 y1=13 x2=16 y2=13 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), ae = /* @__PURE__ */ g("<svg><line x1=8 y1=17 x2=14 y2=17 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), ce = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--warning) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M10 12v4h2m-2-4h2l2 4"></svg>', !1, !0, !1), fe = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--primary) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M9 14h6m-3-3v6"></svg>', !1, !0, !1), de = /* @__PURE__ */ g("<span>");
4
- const ge = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), ue = /* @__PURE__ */ new Set(["mp4", "webm", "mov", "m4v", "ogv", "mkv"]), ve = /* @__PURE__ */ new Set(["mp3", "m4a", "aac", "wav", "ogg", "oga", "opus", "flac"]), Ee = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), he = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), ke = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), me = /* @__PURE__ */ new Set(["clj", "cljs", "cljc", "coffee", "elm", "erl", "ex", "exs", "haml", "handlebars", "hbs", "heex", "hrl", "jinja", "jinja2", "jl", "lisp", "liquid", "m", "mm", "ml", "mli", "nim", "proto", "slim", "twig", "zig"]), _e = "color-mix(in srgb, #8b5cf6 86%, var(--foreground))", Se = {
1
+ import { createComponent as l, Dynamic as q, insert as E, effect as k, className as K, setAttribute as c, template as d, setStyleProperty as F } from "solid-js/web";
2
+ import { Show as C, createUniqueId as W } from "solid-js";
3
+ import { classifyArchiveFileName as O } from "./archiveFiles.js";
4
+ var J = /* @__PURE__ */ d('<svg><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></svg>', !1, !0, !1), Q = /* @__PURE__ */ d('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8">'), Z = /* @__PURE__ */ d('<svg><path fill=none stroke=var(--error) stroke-width=1.35 stroke-linecap=round d="M15.9 15.9 20.1 20.1"></svg>', !1, !0, !1), ee = /* @__PURE__ */ d('<svg><g data-file-link-kind=symbolic><circle cx=18 cy=18 r=4 stroke-width=1></circle><path fill=none stroke-width=1.2 stroke-linecap=round stroke-linejoin=round d="M15.8 18h3.4m0 0-1.4-1.4m1.4 1.4-1.4 1.4"></svg>', !1, !0, !1), te = /* @__PURE__ */ d('<svg><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z"></svg>', !1, !0, !1), ne = /* @__PURE__ */ d('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><defs><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style=stop-color:var(--warning);stop-opacity:1></stop><stop offset=100% style=stop-opacity:1></stop></linearGradient></defs><path>'), re = /* @__PURE__ */ d('<svg><g data-file-icon-kind=archive><path d="M10 9.75h4M10 12.25h4M10 14.75h4"fill=none stroke=var(--warning) stroke-width=1.35 stroke-linecap=round></path><rect x=9.25 y=17 width=5.5 height=2.25 rx=0.7 fill=var(--warning) opacity=0.18 stroke=var(--warning) stroke-width=1></svg>', !1, !0, !1), oe = /* @__PURE__ */ d('<svg><path fill=none stroke=var(--info) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m10 13-2 2 2 2m4-4 2 2-2 2"></svg>', !1, !0, !1), le = /* @__PURE__ */ d('<svg><g><rect x=5 y=13.5 width=14 height=5.75 rx=1.8 opacity=0.12 stroke-width=1></rect><text x=12 y=17.45 font-weight=700 text-anchor=middle style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace"></svg>', !1, !0, !1), ie = /* @__PURE__ */ d("<svg><circle cx=10 cy=13 r=2 fill=var(--success)></svg>", !1, !0, !1), se = /* @__PURE__ */ d('<svg><path fill=none stroke=var(--success) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m20 17-3-3-4 4-2-2-5 3"></svg>', !1, !0, !1), ae = /* @__PURE__ */ d('<svg><g data-file-icon-kind=video><rect x=6.75 y=12 width=10.5 height=6.25 rx=1.5 fill="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"opacity=0.14 stroke="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"stroke-width=1.2></rect><path fill="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"d="M10.75 13.7v2.85a.45.45 0 0 0 .68.39l2.45-1.43a.45.45 0 0 0 0-.78l-2.45-1.42a.45.45 0 0 0-.68.39z"></path><line x1=8 y1=19.5 x2=16 y2=19.5 stroke="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"stroke-width=1.2 stroke-linecap=round opacity=0.72></svg>', !1, !0, !1), ce = /* @__PURE__ */ d('<svg><g data-file-icon-kind=audio><path fill=none stroke=var(--info) stroke-width=1.45 stroke-linecap=round stroke-linejoin=round d="M9 16.25v-5.2l5.5-1.15v5.15"></path><ellipse cx=8.2 cy=17.2 rx=1.75 ry=1.25 fill=var(--info) opacity=0.2 stroke=var(--info) stroke-width=1.1></ellipse><ellipse cx=13.7 cy=16 rx=1.75 ry=1.25 fill=var(--info) opacity=0.2 stroke=var(--info) stroke-width=1.1></svg>', !1, !0, !1), fe = /* @__PURE__ */ d("<svg><line x1=8 y1=13 x2=16 y2=13 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), ge = /* @__PURE__ */ d("<svg><line x1=8 y1=17 x2=14 y2=17 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), de = /* @__PURE__ */ d('<svg><path fill=none stroke=var(--warning) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M10 12v4h2m-2-4h2l2 4"></svg>', !1, !0, !1), ue = /* @__PURE__ */ d('<svg><path fill=none stroke=var(--primary) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M9 14h6m-3-3v6"></svg>', !1, !0, !1), ve = /* @__PURE__ */ d("<span>");
5
+ const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), Ee = /* @__PURE__ */ new Set(["mp4", "webm", "mov", "m4v", "ogv", "mkv"]), ke = /* @__PURE__ */ new Set(["mp3", "m4a", "aac", "wav", "ogg", "oga", "opus", "flac"]), me = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), _e = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), Se = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), pe = /* @__PURE__ */ new Set(["clj", "cljs", "cljc", "coffee", "elm", "erl", "ex", "exs", "haml", "handlebars", "hbs", "heex", "hrl", "jinja", "jinja2", "jl", "lisp", "liquid", "m", "mm", "ml", "mli", "nim", "proto", "slim", "twig", "zig"]), be = "color-mix(in srgb, #8b5cf6 86%, var(--foreground))", ye = {
5
6
  warning: "var(--warning)",
6
7
  primary: "var(--primary)",
7
8
  info: "var(--info)",
8
9
  success: "var(--success)",
9
10
  error: "var(--error)",
10
11
  neutral: "color-mix(in srgb, var(--foreground) 70%, var(--background))"
11
- }, O = {
12
+ }, M = {
12
13
  label: "JS",
13
14
  tone: "warning"
14
15
  }, L = {
15
16
  label: "TS",
16
17
  tone: "primary"
17
- }, w = {
18
+ }, A = {
18
19
  label: "SH",
19
20
  tone: "success"
20
- }, pe = {
21
+ }, Ce = {
21
22
  label: "PY",
22
23
  tone: "info"
23
- }, M = {
24
+ }, N = {
24
25
  label: "RB",
25
26
  tone: "error"
26
- }, be = {
27
+ }, xe = {
27
28
  label: "GO",
28
29
  tone: "info"
29
- }, ye = {
30
+ }, we = {
30
31
  label: "RS",
31
32
  tone: "error"
32
- }, Ce = {
33
+ }, Ae = {
33
34
  label: "JAVA",
34
35
  tone: "warning"
35
- }, xe = {
36
+ }, Be = {
36
37
  label: "KT",
37
38
  tone: "primary"
38
- }, Ae = {
39
+ }, Te = {
39
40
  label: "SC",
40
41
  tone: "error"
41
- }, we = {
42
+ }, Ie = {
42
43
  label: "C",
43
44
  tone: "neutral"
44
- }, Be = {
45
+ }, De = {
45
46
  label: "C++",
46
47
  tone: "neutral"
47
- }, Te = {
48
+ }, Pe = {
48
49
  label: "C#",
49
50
  tone: "primary"
50
- }, Ie = {
51
+ }, Ge = {
51
52
  label: "F#",
52
53
  tone: "info"
53
- }, De = {
54
+ }, Fe = {
54
55
  label: "PHP",
55
56
  tone: "primary"
56
- }, Pe = {
57
+ }, Oe = {
57
58
  label: "PL",
58
59
  tone: "info"
59
- }, Ge = {
60
+ }, Me = {
60
61
  label: "SW",
61
62
  tone: "error"
62
- }, Fe = {
63
+ }, Le = {
63
64
  label: "LUA",
64
65
  tone: "warning"
65
- }, Oe = {
66
+ }, Ne = {
66
67
  label: "DART",
67
68
  tone: "info"
68
- }, Le = {
69
+ }, je = {
69
70
  label: "R",
70
71
  tone: "info"
71
- }, Me = {
72
+ }, Re = {
72
73
  label: "SQL",
73
74
  tone: "warning"
74
- }, Ne = {
75
+ }, ze = {
75
76
  label: "GQL",
76
77
  tone: "primary"
77
- }, N = {
78
+ }, j = {
78
79
  label: "GRV",
79
80
  tone: "success"
80
- }, je = {
81
+ }, $e = {
81
82
  label: "HTML",
82
83
  tone: "warning"
83
- }, Re = {
84
+ }, He = {
84
85
  label: "VUE",
85
86
  tone: "success"
86
- }, ze = {
87
+ }, Ve = {
87
88
  label: "SVE",
88
89
  tone: "error"
89
- }, He = {
90
+ }, Xe = {
90
91
  label: "AST",
91
92
  tone: "warning"
92
- }, Ve = {
93
+ }, Ue = {
93
94
  label: "MDX",
94
95
  tone: "primary"
95
- }, A = {
96
+ }, w = {
96
97
  label: "DKR",
97
98
  tone: "info"
98
- }, $e = {
99
+ }, Ye = {
99
100
  label: "MAKE",
100
101
  tone: "warning"
101
- }, j = {
102
+ }, R = {
102
103
  label: "CMK",
103
104
  tone: "primary"
104
- }, Xe = {
105
+ }, qe = {
105
106
  label: "PS",
106
107
  tone: "primary"
107
- }, Ue = {
108
+ }, Ke = {
108
109
  label: "BAT",
109
110
  tone: "neutral"
110
- }, B = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map();
111
- r(O, ["js", "jsx", "mjs", "cjs"]);
111
+ }, B = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map();
112
+ r(M, ["js", "jsx", "mjs", "cjs"]);
112
113
  r(L, ["ts", "tsx", "mts", "cts"]);
113
- r(w, ["sh", "bash", "zsh", "fish", "ksh", "csh"]);
114
- r(pe, ["py", "pyi", "pyw"]);
115
- r(M, ["rb", "rake", "gemspec", "erb"]);
116
- r(be, ["go"]);
117
- r(ye, ["rs"]);
118
- r(Ce, ["java"]);
119
- r(xe, ["kt", "kts"]);
120
- r(Ae, ["scala", "sc"]);
121
- r(we, ["c", "h"]);
122
- r(Be, ["cc", "cp", "cpp", "cxx", "hh", "hpp", "hxx"]);
123
- r(Te, ["cs"]);
124
- r(Ie, ["fs", "fsi", "fsx"]);
125
- r(De, ["php", "phtml"]);
126
- r(Pe, ["pl", "pm"]);
127
- r(Ge, ["swift"]);
128
- r(Fe, ["lua"]);
129
- r(Oe, ["dart"]);
130
- r(Le, ["r"]);
131
- r(Me, ["sql"]);
132
- r(Ne, ["graphql", "gql"]);
133
- r(N, ["groovy", "gradle", "gvy"]);
134
- r(je, ["html", "htm", "xhtml"]);
135
- r(Re, ["vue"]);
136
- r(ze, ["svelte"]);
137
- r(He, ["astro"]);
138
- r(Ve, ["mdx"]);
139
- r(Xe, ["ps1", "psd1", "psm1"]);
140
- r(Ue, ["bat", "cmd"]);
141
- r(A, ["dockerfile", "containerfile"]);
142
- r(j, ["cmake"]);
143
- m(A, ["dockerfile", "containerfile"]);
144
- m($e, ["makefile", "gnumakefile", "justfile"]);
145
- m(j, ["cmakelists.txt"]);
146
- m(w, [".bashrc", ".bash_profile", ".bash_aliases", ".profile", ".zshrc", ".zprofile", ".zshenv", ".zlogin", ".zlogout", ".kshrc", ".cshrc", ".tcshrc", ".envrc"]);
147
- m(M, ["gemfile", "rakefile", "podfile", "fastfile", "appfile", "brewfile", "vagrantfile"]);
148
- m(N, ["jenkinsfile"]);
149
- Ye(A, ["dockerfile.", "containerfile."]);
150
- qe(A, [".dockerfile", ".containerfile"]);
114
+ r(A, ["sh", "bash", "zsh", "fish", "ksh", "csh"]);
115
+ r(Ce, ["py", "pyi", "pyw"]);
116
+ r(N, ["rb", "rake", "gemspec", "erb"]);
117
+ r(xe, ["go"]);
118
+ r(we, ["rs"]);
119
+ r(Ae, ["java"]);
120
+ r(Be, ["kt", "kts"]);
121
+ r(Te, ["scala", "sc"]);
122
+ r(Ie, ["c", "h"]);
123
+ r(De, ["cc", "cp", "cpp", "cxx", "hh", "hpp", "hxx"]);
124
+ r(Pe, ["cs"]);
125
+ r(Ge, ["fs", "fsi", "fsx"]);
126
+ r(Fe, ["php", "phtml"]);
127
+ r(Oe, ["pl", "pm"]);
128
+ r(Me, ["swift"]);
129
+ r(Le, ["lua"]);
130
+ r(Ne, ["dart"]);
131
+ r(je, ["r"]);
132
+ r(Re, ["sql"]);
133
+ r(ze, ["graphql", "gql"]);
134
+ r(j, ["groovy", "gradle", "gvy"]);
135
+ r($e, ["html", "htm", "xhtml"]);
136
+ r(He, ["vue"]);
137
+ r(Ve, ["svelte"]);
138
+ r(Xe, ["astro"]);
139
+ r(Ue, ["mdx"]);
140
+ r(qe, ["ps1", "psd1", "psm1"]);
141
+ r(Ke, ["bat", "cmd"]);
142
+ r(w, ["dockerfile", "containerfile"]);
143
+ r(R, ["cmake"]);
144
+ m(w, ["dockerfile", "containerfile"]);
145
+ m(Ye, ["makefile", "gnumakefile", "justfile"]);
146
+ m(R, ["cmakelists.txt"]);
147
+ m(A, [".bashrc", ".bash_profile", ".bash_aliases", ".profile", ".zshrc", ".zprofile", ".zshenv", ".zlogin", ".zlogout", ".kshrc", ".cshrc", ".tcshrc", ".envrc"]);
148
+ m(N, ["gemfile", "rakefile", "podfile", "fastfile", "appfile", "brewfile", "vagrantfile"]);
149
+ m(j, ["jenkinsfile"]);
150
+ We(w, ["dockerfile.", "containerfile."]);
151
+ Je(w, [".dockerfile", ".containerfile"]);
151
152
  function r(e, t) {
152
153
  for (const n of t)
153
154
  B.set(n, e);
154
155
  }
155
156
  function m(e, t) {
156
157
  for (const n of t)
157
- R.set(n, e);
158
+ z.set(n, e);
158
159
  }
159
- function Ye(e, t) {
160
+ function We(e, t) {
160
161
  for (const n of t)
161
- z.set(n, e);
162
+ $.set(n, e);
162
163
  }
163
- function qe(e, t) {
164
+ function Je(e, t) {
164
165
  for (const n of t)
165
166
  H.set(n, e);
166
167
  }
@@ -169,45 +170,45 @@ function V(e) {
169
170
  if (t)
170
171
  return t.startsWith(".") ? t.slice(1) : t;
171
172
  }
172
- function $(e) {
173
+ function X(e) {
173
174
  const t = e?.trim();
174
175
  if (!t)
175
176
  return;
176
177
  const n = t.split(/[\\/]/);
177
178
  return n[n.length - 1]?.toLowerCase();
178
179
  }
179
- function Ke(e) {
180
- const t = $(e);
180
+ function Qe(e) {
181
+ const t = X(e);
181
182
  if (!t)
182
183
  return;
183
184
  const n = t.lastIndexOf(".");
184
185
  if (!(n <= 0 || n === t.length - 1))
185
186
  return t.slice(n + 1);
186
187
  }
187
- function X(e) {
188
- return V(e.extension) ?? Ke(e.name);
188
+ function U(e) {
189
+ return V(e.extension) ?? Qe(e.name);
189
190
  }
190
- function We(e) {
191
- const t = $(e.name);
191
+ function Ze(e) {
192
+ const t = X(e.name);
192
193
  if (t) {
193
- const d = R.get(t);
194
- if (d)
195
- return d;
196
- for (const [f, o] of z)
194
+ const g = z.get(t);
195
+ if (g)
196
+ return g;
197
+ for (const [f, o] of $)
197
198
  if (t.startsWith(f))
198
199
  return o;
199
200
  for (const [f, o] of H)
200
201
  if (t.endsWith(f))
201
202
  return o;
202
203
  }
203
- const n = X(e);
204
+ const n = U(e);
204
205
  return n ? B.get(n) : void 0;
205
206
  }
206
- function Je(e) {
207
+ function et(e) {
207
208
  return e.length <= 2 ? "6.2" : e.length === 3 ? "5.3" : e.length === 4 ? "4.5" : "4";
208
209
  }
209
- function Qe(e) {
210
- return (t) => l(ct, {
210
+ function tt(e) {
211
+ return (t) => l(dt, {
211
212
  get class() {
212
213
  return t.class;
213
214
  },
@@ -218,30 +219,30 @@ function x(e) {
218
219
  const t = `${e.tone}:${e.label}`, n = G.get(t);
219
220
  if (n)
220
221
  return n;
221
- const d = Qe(e);
222
- return G.set(t, d), d;
222
+ const g = tt(e);
223
+ return G.set(t, g), g;
223
224
  }
224
- const E = (e) => {
225
+ const v = (e) => {
225
226
  const t = () => e.accent ?? "currentColor";
226
227
  return (() => {
227
- var n = W(), d = n.firstChild, f = d.nextSibling;
228
- return h(n, l(C, {
228
+ var n = Q(), g = n.firstChild, f = g.nextSibling;
229
+ return E(n, l(C, {
229
230
  get when() {
230
231
  return e.accent;
231
232
  },
232
233
  get children() {
233
- var o = K();
234
- return k((s) => {
235
- var i = t(), u = e.fillOpacity ?? 0.18;
236
- return i !== s.e && c(o, "fill", s.e = i), u !== s.t && c(o, "opacity", s.t = u), s;
234
+ var o = J();
235
+ return k((i) => {
236
+ var s = t(), u = e.fillOpacity ?? 0.18;
237
+ return s !== i.e && c(o, "fill", i.e = s), u !== i.t && c(o, "opacity", i.t = u), i;
237
238
  }, {
238
239
  e: void 0,
239
240
  t: void 0
240
241
  }), o;
241
242
  }
242
- }), d), h(n, () => e.children, null), k((o) => {
243
- var s = e.class, i = e.linkTargetType ? "symbolic" : void 0, u = e.linkTargetType, v = t(), a = t();
244
- return s !== o.e && c(n, "class", o.e = s), i !== o.t && c(n, "data-file-link-kind", o.t = i), u !== o.a && c(n, "data-file-link-target-type", o.a = u), v !== o.o && c(d, "stroke", o.o = v), a !== o.i && c(f, "stroke", o.i = a), o;
243
+ }), g), E(n, () => e.children, null), k((o) => {
244
+ var i = e.class, s = e.linkTargetType ? "symbolic" : void 0, u = e.linkTargetType, h = t(), a = t();
245
+ return i !== o.e && c(n, "class", o.e = i), s !== o.t && c(n, "data-file-link-kind", o.t = s), u !== o.a && c(n, "data-file-link-target-type", o.a = u), h !== o.o && c(g, "stroke", o.o = h), a !== o.i && c(f, "stroke", o.i = a), o;
245
246
  }, {
246
247
  e: void 0,
247
248
  t: void 0,
@@ -253,36 +254,36 @@ const E = (e) => {
253
254
  }, T = (e) => {
254
255
  const t = () => e.targetType === "broken" ? "var(--error)" : "color-mix(in srgb, var(--foreground) 82%, var(--background))", n = () => e.targetType === "broken" ? "color-mix(in srgb, var(--error) 18%, var(--background))" : "color-mix(in srgb, var(--background) 92%, var(--foreground) 8%)";
255
256
  return (() => {
256
- var d = Q(), f = d.firstChild, o = f.nextSibling;
257
- return h(d, l(C, {
257
+ var g = ee(), f = g.firstChild, o = f.nextSibling;
258
+ return E(g, l(C, {
258
259
  get when() {
259
260
  return e.targetType === "broken";
260
261
  },
261
262
  get children() {
262
- return J();
263
+ return Z();
263
264
  }
264
- }), null), k((s) => {
265
- var i = e.targetType, u = n(), v = t(), a = t();
266
- return i !== s.e && c(d, "data-file-link-target-type", s.e = i), u !== s.t && c(f, "fill", s.t = u), v !== s.a && c(f, "stroke", s.a = v), a !== s.o && c(o, "stroke", s.o = a), s;
265
+ }), null), k((i) => {
266
+ var s = e.targetType, u = n(), h = t(), a = t();
267
+ return s !== i.e && c(g, "data-file-link-target-type", i.e = s), u !== i.t && c(f, "fill", i.t = u), h !== i.a && c(f, "stroke", i.a = h), a !== i.o && c(o, "stroke", i.o = a), i;
267
268
  }, {
268
269
  e: void 0,
269
270
  t: void 0,
270
271
  a: void 0,
271
272
  o: void 0
272
- }), d;
273
+ }), g;
273
274
  })();
274
275
  }, _ = (e) => {
275
- const t = q(), n = () => !!e.open, d = () => `${n() ? "floe-folder-open-gradient" : "floe-folder-gradient"}-${t}`;
276
+ const t = W(), n = () => !!e.open, g = () => `${n() ? "floe-folder-open-gradient" : "floe-folder-gradient"}-${t}`;
276
277
  return (() => {
277
- var f = ee(), o = f.firstChild, s = o.firstChild, i = s.firstChild, u = i.nextSibling, v = o.nextSibling;
278
- return h(f, l(C, {
278
+ var f = ne(), o = f.firstChild, i = o.firstChild, s = i.firstChild, u = s.nextSibling, h = o.nextSibling;
279
+ return E(f, l(C, {
279
280
  get when() {
280
281
  return n();
281
282
  },
282
283
  get children() {
283
- return Z();
284
+ return te();
284
285
  }
285
- }), null), h(f, l(C, {
286
+ }), null), E(f, l(C, {
286
287
  get when() {
287
288
  return e.linkTargetType;
288
289
  },
@@ -294,8 +295,8 @@ const E = (e) => {
294
295
  });
295
296
  }
296
297
  }), null), k((a) => {
297
- var S = e.class, p = e.linkTargetType ? "symbolic" : void 0, b = e.linkTargetType, y = d(), I = n() ? "color-mix(in srgb, var(--warning) 70%, var(--foreground))" : "color-mix(in srgb, var(--warning) 80%, var(--foreground))", D = `url(#${d()})`, P = n() ? "M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7.414A2 2 0 0 0 20.414 6L18 3.586A2 2 0 0 0 16.586 3H5zm4 2h7.586L19 7.414V17H5V5h4z" : "M3 5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293L12 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5z";
298
- return S !== a.e && c(f, "class", a.e = S), p !== a.t && c(f, "data-file-link-kind", a.t = p), b !== a.a && c(f, "data-file-link-target-type", a.a = b), y !== a.o && c(s, "id", a.o = y), I !== a.i && F(u, "stop-color", a.i = I), D !== a.n && c(v, "fill", a.n = D), P !== a.s && c(v, "d", a.s = P), a;
298
+ var S = e.class, p = e.linkTargetType ? "symbolic" : void 0, b = e.linkTargetType, y = g(), I = n() ? "color-mix(in srgb, var(--warning) 70%, var(--foreground))" : "color-mix(in srgb, var(--warning) 80%, var(--foreground))", D = `url(#${g()})`, P = n() ? "M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7.414A2 2 0 0 0 20.414 6L18 3.586A2 2 0 0 0 16.586 3H5zm4 2h7.586L19 7.414V17H5V5h4z" : "M3 5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293L12 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5z";
299
+ return S !== a.e && c(f, "class", a.e = S), p !== a.t && c(f, "data-file-link-kind", a.t = p), b !== a.a && c(f, "data-file-link-target-type", a.a = b), y !== a.o && c(i, "id", a.o = y), I !== a.i && F(u, "stop-color", a.i = I), D !== a.n && c(h, "fill", a.n = D), P !== a.s && c(h, "d", a.s = P), a;
299
300
  }, {
300
301
  e: void 0,
301
302
  t: void 0,
@@ -306,42 +307,42 @@ const E = (e) => {
306
307
  s: void 0
307
308
  }), f;
308
309
  })();
309
- }, Ze = (e) => l(_, {
310
+ }, nt = (e) => l(_, {
310
311
  get class() {
311
312
  return e.class;
312
313
  }
313
- }), et = (e) => l(_, {
314
+ }), rt = (e) => l(_, {
314
315
  get class() {
315
316
  return e.class;
316
317
  },
317
318
  open: !0
318
- }), tt = (e) => l(_, {
319
+ }), ot = (e) => l(_, {
319
320
  get class() {
320
321
  return e.class;
321
322
  },
322
323
  linkTargetType: "folder"
323
- }), nt = (e) => l(_, {
324
+ }), lt = (e) => l(_, {
324
325
  get class() {
325
326
  return e.class;
326
327
  },
327
328
  open: !0,
328
329
  linkTargetType: "folder"
329
- }), rt = (e) => l(_, {
330
+ }), it = (e) => l(_, {
330
331
  get class() {
331
332
  return e.class;
332
333
  },
333
334
  linkTargetType: "broken"
334
- }), ot = (e) => l(_, {
335
+ }), st = (e) => l(_, {
335
336
  get class() {
336
337
  return e.class;
337
338
  },
338
339
  open: !0,
339
340
  linkTargetType: "broken"
340
- }), lt = (e) => l(E, {
341
+ }), at = (e) => l(v, {
341
342
  get class() {
342
343
  return e.class;
343
344
  }
344
- }), st = (e) => l(E, {
345
+ }), ct = (e) => l(v, {
345
346
  get class() {
346
347
  return e.class;
347
348
  },
@@ -351,7 +352,7 @@ const E = (e) => {
351
352
  targetType: "file"
352
353
  });
353
354
  }
354
- }), it = (e) => l(E, {
355
+ }), ft = (e) => l(v, {
355
356
  get class() {
356
357
  return e.class;
357
358
  },
@@ -362,17 +363,25 @@ const E = (e) => {
362
363
  targetType: "broken"
363
364
  });
364
365
  }
365
- }), at = (e) => l(E, {
366
+ }), Y = (e) => l(v, {
367
+ get class() {
368
+ return e.class;
369
+ },
370
+ accent: "var(--warning)",
371
+ get children() {
372
+ return re();
373
+ }
374
+ }), gt = (e) => l(v, {
366
375
  get class() {
367
376
  return e.class;
368
377
  },
369
378
  accent: "var(--info)",
370
379
  get children() {
371
- return te();
380
+ return oe();
372
381
  }
373
- }), ct = (e) => {
374
- const t = () => Se[e.spec.tone], n = () => Je(e.spec.label), d = () => e.spec.label.length > 3 ? "0.02em" : "0.04em";
375
- return l(E, {
382
+ }), dt = (e) => {
383
+ const t = () => ye[e.spec.tone], n = () => et(e.spec.label), g = () => e.spec.label.length > 3 ? "0.02em" : "0.04em";
384
+ return l(v, {
376
385
  get class() {
377
386
  return e.class;
378
387
  },
@@ -380,10 +389,10 @@ const E = (e) => {
380
389
  return t();
381
390
  },
382
391
  get children() {
383
- var f = ne(), o = f.firstChild, s = o.nextSibling;
384
- return h(s, () => e.spec.label), k((i) => {
385
- var u = e.spec.label, v = e.spec.tone, a = t(), S = t(), p = t(), b = n(), y = d();
386
- return u !== i.e && c(f, "data-code-badge-label", i.e = u), v !== i.t && c(f, "data-code-badge-tone", i.t = v), a !== i.a && c(o, "fill", i.a = a), S !== i.o && c(o, "stroke", i.o = S), p !== i.i && c(s, "fill", i.i = p), b !== i.n && c(s, "font-size", i.n = b), y !== i.s && F(s, "letter-spacing", i.s = y), i;
392
+ var f = le(), o = f.firstChild, i = o.nextSibling;
393
+ return E(i, () => e.spec.label), k((s) => {
394
+ var u = e.spec.label, h = e.spec.tone, a = t(), S = t(), p = t(), b = n(), y = g();
395
+ return u !== s.e && c(f, "data-code-badge-label", s.e = u), h !== s.t && c(f, "data-code-badge-tone", s.t = h), a !== s.a && c(o, "fill", s.a = a), S !== s.o && c(o, "stroke", s.o = S), p !== s.i && c(i, "fill", s.i = p), b !== s.n && c(i, "font-size", s.n = b), y !== s.s && F(i, "letter-spacing", s.s = y), s;
387
396
  }, {
388
397
  e: void 0,
389
398
  t: void 0,
@@ -395,83 +404,87 @@ const E = (e) => {
395
404
  }), f;
396
405
  }
397
406
  });
398
- }, pt = x(O), bt = x(L), yt = x(w), ft = (e) => l(E, {
407
+ }, xt = x(M), wt = x(L), At = x(A), ut = (e) => l(v, {
399
408
  get class() {
400
409
  return e.class;
401
410
  },
402
411
  accent: "var(--success)",
403
412
  get children() {
404
- return [re(), oe()];
413
+ return [ie(), se()];
405
414
  }
406
- }), dt = (e) => l(E, {
415
+ }), vt = (e) => l(v, {
407
416
  get class() {
408
417
  return e.class;
409
418
  },
410
- accent: _e,
419
+ accent: be,
411
420
  get children() {
412
- var t = le(), n = t.firstChild, d = n.nextSibling;
413
- return d.nextSibling, t;
421
+ var t = ae(), n = t.firstChild, g = n.nextSibling;
422
+ return g.nextSibling, t;
414
423
  }
415
- }), gt = (e) => l(E, {
424
+ }), ht = (e) => l(v, {
416
425
  get class() {
417
426
  return e.class;
418
427
  },
419
428
  accent: "var(--info)",
420
429
  get children() {
421
- return se();
430
+ return ce();
422
431
  }
423
- }), ut = (e) => l(E, {
432
+ }), Et = (e) => l(v, {
424
433
  get class() {
425
434
  return e.class;
426
435
  },
427
436
  accent: "var(--error)",
428
437
  get children() {
429
- return [ie(), ae()];
438
+ return [fe(), ge()];
430
439
  }
431
- }), vt = (e) => l(E, {
440
+ }), kt = (e) => l(v, {
432
441
  get class() {
433
442
  return e.class;
434
443
  },
435
444
  accent: "var(--warning)",
436
445
  get children() {
437
- return ce();
446
+ return de();
438
447
  }
439
- }), Et = (e) => l(E, {
448
+ }), mt = (e) => l(v, {
440
449
  get class() {
441
450
  return e.class;
442
451
  },
443
452
  accent: "var(--primary)",
444
453
  get children() {
445
- return fe();
454
+ return ue();
446
455
  }
447
456
  });
448
- function ht(e) {
457
+ function _t(e) {
449
458
  const t = V(e);
459
+ if (t && O(`file.${t}`))
460
+ return Y;
450
461
  if (t) {
451
462
  const n = B.get(t);
452
463
  if (n)
453
464
  return x(n);
454
465
  }
455
- return t && me.has(t) ? at : t && ge.has(t) ? ft : t && ue.has(t) ? dt : t && ve.has(t) ? gt : t && Ee.has(t) ? ut : t && he.has(t) ? vt : t && ke.has(t) ? Et : lt;
466
+ return t && pe.has(t) ? gt : t && he.has(t) ? ut : t && Ee.has(t) ? vt : t && ke.has(t) ? ht : t && me.has(t) ? Et : t && _e.has(t) ? kt : t && Se.has(t) ? mt : at;
456
467
  }
457
- function kt(e, t) {
468
+ function St(e, t) {
458
469
  const n = e.link?.kind === "symbolic" ? e.link.targetType : void 0;
459
- return n === "broken" ? t.open ? ot : rt : n ? t.open ? nt : tt : t.open ? et : Ze;
470
+ return n === "broken" ? t.open ? st : it : n ? t.open ? lt : ot : t.open ? rt : nt;
460
471
  }
461
- function mt(e, t = {}) {
472
+ function pt(e, t = {}) {
462
473
  if (e.icon)
463
474
  return e.icon;
464
475
  if (e.type === "folder")
465
- return kt(e, t);
476
+ return St(e, t);
466
477
  if (e.link?.kind === "symbolic" && e.link.targetType === "broken")
467
- return it;
478
+ return ft;
468
479
  if (e.link?.kind === "symbolic")
469
- return st;
470
- const n = We(e);
471
- return n ? x(n) : ht(X(e));
480
+ return ct;
481
+ if (O(e.name))
482
+ return Y;
483
+ const n = Ze(e);
484
+ return n ? x(n) : _t(U(e));
472
485
  }
473
- function Ct(e) {
474
- const t = () => mt(e.item, {
486
+ function Bt(e) {
487
+ const t = () => pt(e.item, {
475
488
  open: e.open
476
489
  });
477
490
  return l(C, {
@@ -480,12 +493,12 @@ function Ct(e) {
480
493
  },
481
494
  get fallback() {
482
495
  return (() => {
483
- var n = de();
484
- return h(n, () => t()), k(() => Y(n, `inline-flex items-center justify-center ${e.class ?? ""}`.trim())), n;
496
+ var n = ve();
497
+ return E(n, () => t()), k(() => K(n, `inline-flex items-center justify-center ${e.class ?? ""}`.trim())), n;
485
498
  })();
486
499
  },
487
500
  get children() {
488
- return l(U, {
501
+ return l(q, {
489
502
  get component() {
490
503
  return t();
491
504
  },
@@ -497,24 +510,25 @@ function Ct(e) {
497
510
  });
498
511
  }
499
512
  export {
500
- gt as AudioFileIcon,
501
- it as BrokenSymlinkIcon,
502
- at as CodeFileIcon,
503
- vt as ConfigFileIcon,
504
- ut as DocumentFileIcon,
505
- lt as FileIcon,
506
- Ct as FileItemIcon,
507
- Ze as FolderIcon,
508
- et as FolderOpenIcon,
509
- ft as ImageFileIcon,
510
- pt as JavaScriptFileIcon,
511
- yt as ShellScriptFileIcon,
512
- Et as StyleFileIcon,
513
- st as SymlinkFileIcon,
514
- tt as SymlinkFolderIcon,
515
- nt as SymlinkFolderOpenIcon,
516
- bt as TypeScriptFileIcon,
517
- dt as VideoFileIcon,
518
- ht as getFileIcon,
519
- mt as resolveFileItemIcon
513
+ Y as ArchiveFileIcon,
514
+ ht as AudioFileIcon,
515
+ ft as BrokenSymlinkIcon,
516
+ gt as CodeFileIcon,
517
+ kt as ConfigFileIcon,
518
+ Et as DocumentFileIcon,
519
+ at as FileIcon,
520
+ Bt as FileItemIcon,
521
+ nt as FolderIcon,
522
+ rt as FolderOpenIcon,
523
+ ut as ImageFileIcon,
524
+ xt as JavaScriptFileIcon,
525
+ At as ShellScriptFileIcon,
526
+ mt as StyleFileIcon,
527
+ ct as SymlinkFileIcon,
528
+ ot as SymlinkFolderIcon,
529
+ lt as SymlinkFolderOpenIcon,
530
+ wt as TypeScriptFileIcon,
531
+ vt as VideoFileIcon,
532
+ _t as getFileIcon,
533
+ pt as resolveFileItemIcon
520
534
  };