vuefinder 2.5.6 → 2.5.8

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/vuefinder.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Go = Object.defineProperty;
2
2
  var Ko = (t, e, s) => e in t ? Go(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var mn = (t, e, s) => Ko(t, typeof e != "symbol" ? e + "" : e, s);
4
- import { reactive as Ot, watch as ze, ref as E, shallowRef as Wo, onMounted as Ce, onUnmounted as qs, onUpdated as Rn, nextTick as ft, computed as Ze, inject as ae, openBlock as f, createElementBlock as g, withKeys as $t, unref as a, createElementVNode as o, withModifiers as rt, renderSlot as Dt, normalizeClass as me, toDisplayString as _, createBlock as W, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as P, withDirectives as ve, vModelCheckbox as jt, createTextVNode as Q, createVNode as Y, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as Yo, vShow as Pe, TransitionGroup as Xo, normalizeStyle as os, mergeModels as Jo, useModel as Nn, resolveComponent as Qo, provide as Zo, Transition as er, resolveDynamicComponent as tr } from "vue";
4
+ import { reactive as Ot, watch as Ne, ref as E, shallowRef as Wo, onMounted as Ce, onUnmounted as qs, onUpdated as Rn, nextTick as ft, computed as Ze, inject as ae, openBlock as f, createElementBlock as g, withKeys as $t, unref as a, createElementVNode as o, withModifiers as rt, renderSlot as Dt, normalizeClass as de, toDisplayString as _, createBlock as W, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as j, withDirectives as ve, vModelCheckbox as Pt, createTextVNode as Q, createVNode as Y, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as Yo, vShow as je, TransitionGroup as Xo, normalizeStyle as os, mergeModels as Jo, useModel as Nn, resolveComponent as Qo, provide as Zo, Transition as er, resolveDynamicComponent as tr } from "vue";
5
5
  import sr from "mitt";
6
6
  import nr from "dragselect";
7
7
  import or from "@uppy/core";
@@ -40,7 +40,7 @@ class ir {
40
40
  l !== "get" && (i instanceof FormData ? (u = i, s.body != null && Object.entries(this.config.body).forEach(([m, v]) => {
41
41
  u.append(m, v);
42
42
  })) : (u = { ...i }, s.body != null && Object.assign(u, this.config.body)));
43
- const h = {
43
+ const p = {
44
44
  url: d,
45
45
  method: l,
46
46
  headers: n,
@@ -55,9 +55,9 @@ class ir {
55
55
  params: c,
56
56
  body: u
57
57
  });
58
- m.url != null && (h.url = m.url), m.method != null && (h.method = m.method), m.params != null && (h.params = m.params ?? {}), m.headers != null && (h.headers = m.headers ?? {}), m.body != null && (h.body = m.body);
58
+ m.url != null && (p.url = m.url), m.method != null && (p.method = m.method), m.params != null && (p.params = m.params ?? {}), m.headers != null && (p.headers = m.headers ?? {}), m.body != null && (p.body = m.body);
59
59
  }
60
- return h;
60
+ return p;
61
61
  }
62
62
  /**
63
63
  * Get download url
@@ -137,7 +137,7 @@ function cr(t) {
137
137
  function dr(t) {
138
138
  let e = localStorage.getItem(t + "_storage");
139
139
  const s = Ot(JSON.parse(e ?? "{}"));
140
- ze(s, r);
140
+ Ne(s, r);
141
141
  function r() {
142
142
  Object.keys(s).length ? localStorage.setItem(t + "_storage", JSON.stringify(s)) : localStorage.removeItem(t + "_storage");
143
143
  }
@@ -158,18 +158,18 @@ async function ur(t, e) {
158
158
  }
159
159
  function mr(t, e, s, r) {
160
160
  const { getStore: n, setStore: c } = t, i = E({}), d = E(n("locale", e)), l = (m, v = e) => {
161
- ur(m, r).then((p) => {
162
- i.value = p, c("locale", m), d.value = m, c("translations", p), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + m }), s.emit("vf-language-saved"));
163
- }).catch((p) => {
161
+ ur(m, r).then((h) => {
162
+ i.value = h, c("locale", m), d.value = m, c("translations", h), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + m }), s.emit("vf-language-saved"));
163
+ }).catch((h) => {
164
164
  v ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(v, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
165
165
  });
166
166
  };
167
167
  !n("locale") && !r.length ? l(e) : i.value = n("translations");
168
168
  const u = (m, ...v) => v.length ? u(m = m.replace("%s", v.shift()), ...v) : m;
169
- function h(m, ...v) {
169
+ function p(m, ...v) {
170
170
  return i.value && i.value.hasOwnProperty(m) ? u(i.value[m], ...v) : u(m, ...v);
171
171
  }
172
- return { t: h, changeLocale: l, locale: d };
172
+ return { t: p, changeLocale: l, locale: d };
173
173
  }
174
174
  const pe = {
175
175
  EDIT: "edit",
@@ -185,7 +185,7 @@ const pe = {
185
185
  FULL_SCREEN: "fullscreen",
186
186
  DOWNLOAD: "download",
187
187
  LANGUAGE: "language"
188
- }, fr = Object.values(pe), hr = "2.5.6";
188
+ }, fr = Object.values(pe), hr = "2.5.8";
189
189
  function Un(t, e, s, r, n) {
190
190
  return (e = Math, s = e.log, r = 1024, n = s(t) / s(r) | 0, t / e.pow(r, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "iB" : "B");
191
191
  }
@@ -244,12 +244,12 @@ function gr() {
244
244
  const Ve = (t, e) => {
245
245
  const { o: s, i: r, u: n } = t;
246
246
  let c = s, i;
247
- const d = (h, m) => {
248
- const v = c, p = h, x = m || (r ? !r(v, p) : v !== p);
249
- return (x || n) && (c = p, i = v), [c, x, i];
247
+ const d = (p, m) => {
248
+ const v = c, h = p, x = m || (r ? !r(v, h) : v !== h);
249
+ return (x || n) && (c = h, i = v), [c, x, i];
250
250
  };
251
- return [e ? (h) => d(e(c, i), h) : d, (h) => [c, !!h, i]];
252
- }, Pn = typeof window < "u" && typeof document < "u", Ae = Pn ? window : {}, jn = Math.max, _r = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, qn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, xr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), Gn = Pn && Node.ELEMENT_NODE, { toString: Bf, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, qe = (t) => typeof t == "number", ls = (t) => typeof t == "string", Kn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", Ge = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !Ge(t) && !Ks(t), is = (t) => {
251
+ return [e ? (p) => d(e(c, i), p) : d, (p) => [c, !!p, i]];
252
+ }, jn = typeof window < "u" && typeof document < "u", Ae = jn ? window : {}, Pn = Math.max, _r = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, qn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, xr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), Gn = jn && Node.ELEMENT_NODE, { toString: Bf, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, qe = (t) => typeof t == "number", ls = (t) => typeof t == "string", Kn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", Ge = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !Ge(t) && !Ks(t), is = (t) => {
253
253
  const e = !!t && t.length, s = qe(e) && e > -1 && e % 1 == 0;
254
254
  return Ge(t) || !Fe(t) && s ? e > 0 && Lt(t) ? e - 1 in t : !0 : !1;
255
255
  }, es = (t) => {
@@ -278,7 +278,7 @@ function ce(t, e) {
278
278
  }
279
279
  const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e, s) => (!ls(e) && is(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), dt = (t) => Array.from(t || []), Wn = (t) => Ge(t) ? t : [t], Ms = (t) => !!t && !t.length, pn = (t) => dt(new Set(t)), Ie = (t, e, s) => {
280
280
  ce(t, (n) => n && n.apply(void 0, e || [])), !s && (t.length = 0);
281
- }, Yn = "paddingTop", Xn = "paddingRight", Jn = "paddingLeft", Qn = "paddingBottom", Zn = "marginLeft", eo = "marginRight", to = "marginBottom", yr = "overflowX", br = "overflowY", yt = "width", bt = "height", ot = "visible", ut = "hidden", wt = "scroll", wr = (t) => {
281
+ }, Yn = "paddingTop", Xn = "paddingRight", Jn = "paddingLeft", Qn = "paddingBottom", Zn = "marginLeft", eo = "marginRight", to = "marginBottom", br = "overflowX", yr = "overflowY", bt = "width", yt = "height", ot = "visible", ut = "hidden", wt = "scroll", wr = (t) => {
282
282
  const e = String(t || "");
283
283
  return e ? e[0].toUpperCase() + e.slice(1) : "";
284
284
  }, ds = (t, e, s, r) => {
@@ -299,35 +299,35 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
299
299
  }, () => r(e)];
300
300
  }, As = (t, e) => {
301
301
  const { _: s, p: r, v: n, m: c } = e || {};
302
- let i, d, l, u, h = at;
303
- const m = function(y) {
304
- h(), Es(i), u = i = d = void 0, h = at, t.apply(this, y);
305
- }, v = (b) => c && d ? c(d, b) : b, p = () => {
306
- h !== at && m(v(l) || l);
302
+ let i, d, l, u, p = at;
303
+ const m = function(b) {
304
+ p(), Es(i), u = i = d = void 0, p = at, t.apply(this, b);
305
+ }, v = (y) => c && d ? c(d, y) : y, h = () => {
306
+ p !== at && m(v(l) || l);
307
307
  }, x = function() {
308
- const y = dt(arguments), A = Fe(s) ? s() : s;
308
+ const b = dt(arguments), A = Fe(s) ? s() : s;
309
309
  if (qe(A) && A >= 0) {
310
- const U = Fe(r) ? r() : r, B = qe(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : qn, T = v(y) || y, O = m.bind(0, T);
310
+ const U = Fe(r) ? r() : r, B = qe(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : qn, T = v(b) || b, O = m.bind(0, T);
311
311
  let M;
312
- h(), n && !u ? (O(), u = !0, M = D(() => u = void 0, A)) : (M = D(O, A), B && !i && (i = Qt(p, U))), h = () => L(M), d = l = T;
312
+ p(), n && !u ? (O(), u = !0, M = D(() => u = void 0, A)) : (M = D(O, A), B && !i && (i = Qt(h, U))), p = () => L(M), d = l = T;
313
313
  } else
314
- m(y);
314
+ m(b);
315
315
  };
316
- return x.S = p, x;
316
+ return x.S = h, x;
317
317
  }, no = (t, e) => Object.prototype.hasOwnProperty.call(t, e), et = (t) => t ? Object.keys(t) : [], re = (t, e, s, r, n, c, i) => {
318
318
  const d = [e, s, r, n, c, i];
319
319
  return (typeof t != "object" || Ks(t)) && !Fe(t) && (t = {}), ce(d, (l) => {
320
- ce(l, (u, h) => {
321
- const m = l[h];
320
+ ce(l, (u, p) => {
321
+ const m = l[p];
322
322
  if (t === m)
323
323
  return !0;
324
324
  const v = Ge(m);
325
325
  if (m && es(m)) {
326
- const p = t[h];
327
- let x = p;
328
- v && !Ge(p) ? x = [] : !v && !es(p) && (x = {}), t[h] = re(x, m);
326
+ const h = t[p];
327
+ let x = h;
328
+ v && !Ge(h) ? x = [] : !v && !es(h) && (x = {}), t[p] = re(x, m);
329
329
  } else
330
- t[h] = v ? m.slice() : m;
330
+ t[p] = v ? m.slice() : m;
331
331
  });
332
332
  }), t;
333
333
  }, oo = (t, e) => ce(re({}, t), (s, r, n) => {
@@ -336,11 +336,11 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
336
336
  for (const e in t)
337
337
  return !1;
338
338
  return !0;
339
- }, Ds = (t, e, s) => jn(t, _r(e, s)), ht = (t) => dt(new Set((Ge(t) ? t : (t || "").split(" ")).filter((e) => e))), Xs = (t, e) => t && t.getAttribute(e), vn = (t, e) => t && t.hasAttribute(e), Je = (t, e, s) => {
339
+ }, Ds = (t, e, s) => Pn(t, _r(e, s)), ht = (t) => dt(new Set((Ge(t) ? t : (t || "").split(" ")).filter((e) => e))), Xs = (t, e) => t && t.getAttribute(e), vn = (t, e) => t && t.hasAttribute(e), Je = (t, e, s) => {
340
340
  ce(ht(e), (r) => {
341
341
  t && t.setAttribute(r, String(s || ""));
342
342
  });
343
- }, Ue = (t, e) => {
343
+ }, ze = (t, e) => {
344
344
  ce(ht(e), (s) => t && t.removeAttribute(s));
345
345
  }, us = (t, e) => {
346
346
  const s = ht(Xs(t, e)), r = J(Je, t, e), n = (c, i) => {
@@ -411,7 +411,7 @@ function pt(t, e, s) {
411
411
  }
412
412
  return n;
413
413
  }
414
- const yn = (t, e, s) => {
414
+ const bn = (t, e, s) => {
415
415
  const r = e ? `${e}-` : "", n = s ? `-${s}` : "", c = `${r}top${n}`, i = `${r}right${n}`, d = `${r}bottom${n}`, l = `${r}left${n}`, u = pt(t, [c, i, d, l]);
416
416
  return {
417
417
  t: qt(u[c]),
@@ -419,22 +419,22 @@ const yn = (t, e, s) => {
419
419
  b: qt(u[d]),
420
420
  l: qt(u[l])
421
421
  };
422
- }, ys = (t, e) => `translate${Lt(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Er = (t) => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), Tr = {
422
+ }, bs = (t, e) => `translate${Lt(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Er = (t) => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), Tr = {
423
423
  w: 0,
424
424
  h: 0
425
425
  }, ms = (t, e) => e ? {
426
426
  w: e[`${t}Width`],
427
427
  h: e[`${t}Height`]
428
428
  } : Tr, Mr = (t) => ms("inner", t || Ae), Mt = J(ms, "offset"), fo = J(ms, "client"), Bs = J(ms, "scroll"), tn = (t) => {
429
- const e = parseFloat(pt(t, yt)) || 0, s = parseFloat(pt(t, bt)) || 0;
429
+ const e = parseFloat(pt(t, bt)) || 0, s = parseFloat(pt(t, yt)) || 0;
430
430
  return {
431
431
  w: e - Cs(e),
432
432
  h: s - Cs(s)
433
433
  };
434
- }, At = (t) => t.getBoundingClientRect(), Ar = (t) => !!t && Er(t), Rs = (t) => !!(t && (t[bt] || t[yt])), ho = (t, e) => {
434
+ }, At = (t) => t.getBoundingClientRect(), Ar = (t) => !!t && Er(t), Rs = (t) => !!(t && (t[yt] || t[bt])), ho = (t, e) => {
435
435
  const s = Rs(t);
436
436
  return !Rs(e) && s;
437
- }, bn = (t, e, s, r) => {
437
+ }, yn = (t, e, s, r) => {
438
438
  ce(ht(e), (n) => {
439
439
  t && t.removeEventListener(n, s, r);
440
440
  });
@@ -445,12 +445,12 @@ const yn = (t, e, s) => {
445
445
  capture: i
446
446
  };
447
447
  return J(Ie, ht(e).map((u) => {
448
- const h = d ? (m) => {
449
- bn(t, u, h, i), s && s(m);
448
+ const p = d ? (m) => {
449
+ yn(t, u, p, i), s && s(m);
450
450
  } : s;
451
- return t && t.addEventListener(u, h, l), J(bn, t, u, h, i);
451
+ return t && t.addEventListener(u, p, l), J(yn, t, u, p, i);
452
452
  }));
453
- }, po = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), vo = (t) => po(t) || Fs(t), je = (t, e) => {
453
+ }, po = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), vo = (t) => po(t) || Fs(t), Pe = (t, e) => {
454
454
  const { x: s, y: r } = qe(e) ? {
455
455
  x: e,
456
456
  y: e
@@ -469,14 +469,14 @@ const yn = (t, e, s) => {
469
469
  y: 0
470
470
  }
471
471
  }), Dr = (t, e) => {
472
- const { T: s, D: r } = t, { w: n, h: c } = e, i = (m, v, p) => {
473
- let x = fn(m) * p, b = fn(v) * p;
474
- if (x === b) {
475
- const y = Jt(m), A = Jt(v);
476
- b = y > A ? 0 : b, x = y < A ? 0 : x;
472
+ const { T: s, D: r } = t, { w: n, h: c } = e, i = (m, v, h) => {
473
+ let x = fn(m) * h, y = fn(v) * h;
474
+ if (x === y) {
475
+ const b = Jt(m), A = Jt(v);
476
+ y = b > A ? 0 : y, x = b < A ? 0 : x;
477
477
  }
478
- return x = x === b ? 0 : x, [x + 0, b + 0];
479
- }, [d, l] = i(s.x, r.x, n), [u, h] = i(s.y, r.y, c);
478
+ return x = x === y ? 0 : x, [x + 0, y + 0];
479
+ }, [d, l] = i(s.x, r.x, n), [u, p] = i(s.y, r.y, c);
480
480
  return {
481
481
  T: {
482
482
  x: d,
@@ -484,7 +484,7 @@ const yn = (t, e, s) => {
484
484
  },
485
485
  D: {
486
486
  x: l,
487
- y: h
487
+ y: p
488
488
  }
489
489
  };
490
490
  }, wn = ({ T: t, D: e }) => {
@@ -519,15 +519,15 @@ const yn = (t, e, s) => {
519
519
  }, r = (c, i) => {
520
520
  if (ls(c)) {
521
521
  const u = e.get(c) || /* @__PURE__ */ new Set();
522
- return e.set(c, u), $n((h) => {
523
- Fe(h) && u.add(h);
522
+ return e.set(c, u), $n((p) => {
523
+ Fe(p) && u.add(p);
524
524
  }, i), J(s, c, i);
525
525
  }
526
526
  Kn(i) && i && s();
527
527
  const d = et(c), l = [];
528
528
  return ce(d, (u) => {
529
- const h = c[u];
530
- h && xe(l, r(u, h));
529
+ const p = c[u];
530
+ p && xe(l, r(u, p));
531
531
  }), J(Ie, l);
532
532
  }, n = (c, i) => {
533
533
  ce(dt(e.get(c)), (d) => {
@@ -578,7 +578,7 @@ const yn = (t, e, s) => {
578
578
  d && (s[n] = i);
579
579
  }
580
580
  }), s;
581
- }, En = (t, e, s) => (r) => [Cn(t, r), s || Cn(e, r) !== void 0], Ct = "data-overlayscrollbars", Yt = "os-environment", Gt = `${Yt}-scrollbar-hidden`, bs = `${Ct}-initialize`, Xt = "noClipping", Tn = `${Ct}-body`, lt = Ct, Vr = "host", nt = `${Ct}-viewport`, Or = yr, Hr = br, Br = "arrange", xo = "measuring", yo = "scrollbarHidden", Rr = "scrollbarPressed", Fr = "noContent", Us = `${Ct}-padding`, Mn = `${Ct}-content`, sn = "os-size-observer", Ir = `${sn}-appear`, Nr = `${sn}-listener`, Ur = "os-trinsic-observer", zr = "os-theme-none", Be = "os-scrollbar", Pr = `${Be}-rtl`, jr = `${Be}-horizontal`, qr = `${Be}-vertical`, bo = `${Be}-track`, nn = `${Be}-handle`, Gr = `${Be}-visible`, Kr = `${Be}-cornerless`, An = `${Be}-interaction`, Dn = `${Be}-unusable`, zs = `${Be}-auto-hide`, Ln = `${zs}-hidden`, Vn = `${Be}-wheel`, Wr = `${bo}-interactive`, Yr = `${nn}-interactive`;
581
+ }, En = (t, e, s) => (r) => [Cn(t, r), s || Cn(e, r) !== void 0], Ct = "data-overlayscrollbars", Yt = "os-environment", Gt = `${Yt}-scrollbar-hidden`, ys = `${Ct}-initialize`, Xt = "noClipping", Tn = `${Ct}-body`, lt = Ct, Vr = "host", nt = `${Ct}-viewport`, Or = br, Hr = yr, Br = "arrange", xo = "measuring", bo = "scrollbarHidden", Rr = "scrollbarPressed", Fr = "noContent", Us = `${Ct}-padding`, Mn = `${Ct}-content`, sn = "os-size-observer", Ir = `${sn}-appear`, Nr = `${sn}-listener`, Ur = "os-trinsic-observer", zr = "os-theme-none", Be = "os-scrollbar", jr = `${Be}-rtl`, Pr = `${Be}-horizontal`, qr = `${Be}-vertical`, yo = `${Be}-track`, nn = `${Be}-handle`, Gr = `${Be}-visible`, Kr = `${Be}-cornerless`, An = `${Be}-interaction`, Dn = `${Be}-unusable`, zs = `${Be}-auto-hide`, Ln = `${zs}-hidden`, Vn = `${Be}-wheel`, Wr = `${yo}-interactive`, Yr = `${nn}-interactive`;
582
582
  let ws;
583
583
  const Xr = () => {
584
584
  const t = (k, U, B) => {
@@ -599,10 +599,10 @@ const Xr = () => {
599
599
  }, s = `.${Yt}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Yt} div{width:200%;height:200%;margin:10px 0}.${Gt}{scrollbar-width:none!important}.${Gt}::-webkit-scrollbar,.${Gt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, n = mo(`<div class="${Yt}"><div></div><style>${s}</style></div>`)[0], c = n.firstChild, [i, , d] = Ns(), [l, u] = Ve({
600
600
  o: t(n, c),
601
601
  i: Wt
602
- }, J(t, n, c, !0)), [h] = u(), m = e(n), v = {
603
- x: h.x === 0,
604
- y: h.y === 0
605
- }, p = {
602
+ }, J(t, n, c, !0)), [p] = u(), m = e(n), v = {
603
+ x: p.x === 0,
604
+ y: p.y === 0
605
+ }, h = {
606
606
  elements: {
607
607
  host: null,
608
608
  padding: !m,
@@ -616,20 +616,20 @@ const Xr = () => {
616
616
  nativeScrollbarsOverlaid: !1,
617
617
  body: null
618
618
  }
619
- }, x = re({}, Lr), b = J(re, {}, x), y = J(re, {}, p), A = {
620
- k: h,
619
+ }, x = re({}, Lr), y = J(re, {}, x), b = J(re, {}, h), A = {
620
+ k: p,
621
621
  M: v,
622
622
  R: m,
623
623
  V: !!Ts,
624
624
  L: J(i, "r"),
625
- P: y,
626
- U: (k) => re(p, k) && y(),
627
- N: b,
628
- q: (k) => re(x, k) && b(),
629
- B: re({}, p),
625
+ P: b,
626
+ U: (k) => re(h, k) && b(),
627
+ N: y,
628
+ q: (k) => re(x, k) && y(),
629
+ B: re({}, h),
630
630
  F: re({}, x)
631
631
  };
632
- if (Ue(n, "style"), it(n), fe(Ae, "resize", () => {
632
+ if (ze(n, "style"), it(n), fe(Ae, "resize", () => {
633
633
  d("r", []);
634
634
  }), Fe(Ae.matchMedia) && !m && (!v.x || !v.y)) {
635
635
  const k = (U) => {
@@ -653,7 +653,7 @@ const Xr = () => {
653
653
  const n = as(r) ? s : r, c = wo(t, n);
654
654
  return !!c && (ts(c) ? c : e.apply(0, t));
655
655
  }, Qr = (t, e) => {
656
- const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, h = as(r) ? l : r, m = (n.x || n.y) && u, v = t && (Ks(h) ? !c : h);
656
+ const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, p = as(r) ? l : r, m = (n.x || n.y) && u, v = t && (Ks(p) ? !c : p);
657
657
  return !!m || !!v;
658
658
  }, on = /* @__PURE__ */ new WeakMap(), Zr = (t, e) => {
659
659
  on.set(t, e);
@@ -666,39 +666,39 @@ const Xr = () => {
666
666
  }, i = (d) => {
667
667
  if (n && s) {
668
668
  const l = s.map((u) => {
669
- const [h, m] = u || [];
670
- return [m && h ? (d || io)(h, t) : [], m];
669
+ const [p, m] = u || [];
670
+ return [m && p ? (d || io)(p, t) : [], m];
671
671
  });
672
- ce(l, (u) => ce(u[0], (h) => {
673
- const m = u[1], v = n.get(h) || [];
674
- if (t.contains(h) && m) {
675
- const x = fe(h, m, (b) => {
676
- r ? (x(), n.delete(h)) : e(b);
672
+ ce(l, (u) => ce(u[0], (p) => {
673
+ const m = u[1], v = n.get(p) || [];
674
+ if (t.contains(p) && m) {
675
+ const x = fe(p, m, (y) => {
676
+ r ? (x(), n.delete(p)) : e(y);
677
677
  });
678
- n.set(h, xe(v, x));
678
+ n.set(p, xe(v, x));
679
679
  } else
680
- Ie(v), n.delete(h);
680
+ Ie(v), n.delete(p);
681
681
  }));
682
682
  }
683
683
  };
684
684
  return i(), [c, i];
685
685
  }, On = (t, e, s, r) => {
686
686
  let n = !1;
687
- const { j: c, X: i, Y: d, W: l, J: u, K: h } = r || {}, m = As(() => n && s(!0), {
687
+ const { j: c, X: i, Y: d, W: l, J: u, K: p } = r || {}, m = As(() => n && s(!0), {
688
688
  _: 33,
689
689
  p: 99
690
- }), [v, p] = ta(t, m, d), x = c || [], b = i || [], y = Qe(x, b), A = (U, B) => {
690
+ }), [v, h] = ta(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
691
691
  if (!Ms(B)) {
692
- const D = u || at, L = h || at, V = [], T = [];
692
+ const D = u || at, L = p || at, V = [], T = [];
693
693
  let O = !1, M = !1;
694
694
  if (ce(B, (S) => {
695
- const { attributeName: H, target: $, type: w, oldValue: I, addedNodes: R, removedNodes: ne } = S, de = w === "attributes", le = w === "childList", F = t === $, ee = de && H, te = ee && Xs($, H || ""), X = ls(te) ? te : null, ue = ee && I !== X, z = Ws(b, H) && ue;
695
+ const { attributeName: H, target: $, type: w, oldValue: I, addedNodes: R, removedNodes: ne } = S, ue = w === "attributes", le = w === "childList", F = t === $, ee = ue && H, te = ee && Xs($, H || ""), X = ls(te) ? te : null, me = ee && I !== X, z = Ws(y, H) && me;
696
696
  if (e && (le || !F)) {
697
- const q = de && ue, j = q && l && ss($, l), N = (j ? !D($, H, I, X) : !de || q) && !L(S, !!j, t, r);
697
+ const q = ue && me, P = q && l && ss($, l), N = (P ? !D($, H, I, X) : !ue || q) && !L(S, !!P, t, r);
698
698
  ce(R, (G) => xe(V, G)), ce(ne, (G) => xe(V, G)), M = M || N;
699
699
  }
700
- !e && F && ue && !D($, H, I, X) && (xe(T, H), O = O || z);
701
- }), p((S) => pn(V).reduce((H, $) => (xe(H, io(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
700
+ !e && F && me && !D($, H, I, X) && (xe(T, H), O = O || z);
701
+ }), h((S) => pn(V).reduce((H, $) => (xe(H, io(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
702
702
  return !U && M && s(!1), [!1];
703
703
  if (!Ms(T) || O) {
704
704
  const S = [pn(T), O];
@@ -709,7 +709,7 @@ const Xr = () => {
709
709
  return [() => (k.observe(t, {
710
710
  attributes: !0,
711
711
  attributeOldValue: !0,
712
- attributeFilter: y,
712
+ attributeFilter: b,
713
713
  subtree: e,
714
714
  childList: e,
715
715
  characterData: e
@@ -726,16 +726,16 @@ const Xr = () => {
726
726
  }, Eo = (t, e, s) => et(t).map((r) => {
727
727
  const { static: n, instance: c } = t[r], [i, d, l] = s || [], u = s ? c : n;
728
728
  if (u) {
729
- const h = s ? u(i, d, e) : u(e);
730
- return (l || Co)[r] = h;
729
+ const p = s ? u(i, d, e) : u(e);
730
+ return (l || Co)[r] = p;
731
731
  }
732
732
  }), Ht = (t) => Co[t], na = "__osOptionsValidationPlugin", oa = "__osSizeObserverPlugin", ra = (t, e) => {
733
733
  const { M: s } = e, [r, n] = t("showNativeOverlaidScrollbars");
734
734
  return [r && s.x && s.y, n];
735
735
  }, ns = (t) => t.indexOf(ot) === 0, aa = (t, e) => {
736
736
  const s = (n, c, i, d) => {
737
- const l = n === ot ? ut : n.replace(`${ot}-`, ""), u = ns(n), h = ns(i);
738
- return !c && !d ? ut : u && h ? ot : u ? c && d ? l : c ? ot : ut : c ? l : h && d ? ot : ut;
737
+ const l = n === ot ? ut : n.replace(`${ot}-`, ""), u = ns(n), p = ns(i);
738
+ return !c && !d ? ut : u && p ? ot : u ? c && d ? l : c ? ot : ut : c ? l : p && d ? ot : ut;
739
739
  }, r = {
740
740
  x: s(e.x, t.x, e.y, t.y),
741
741
  y: s(e.y, t.y, e.x, t.x)
@@ -753,26 +753,26 @@ const Xr = () => {
753
753
  u: !0
754
754
  });
755
755
  return () => {
756
- const i = [], l = mo(`<div class="${sn}"><div class="${Nr}"></div></div>`)[0], u = l.firstChild, h = (m) => {
756
+ const i = [], l = mo(`<div class="${sn}"><div class="${Nr}"></div></div>`)[0], u = l.firstChild, p = (m) => {
757
757
  const v = m instanceof ResizeObserverEntry;
758
- let p = !1, x = !1;
758
+ let h = !1, x = !1;
759
759
  if (v) {
760
- const [b, , y] = c(m.contentRect), A = Rs(b);
761
- x = ho(b, y), p = !x && !A;
760
+ const [y, , b] = c(m.contentRect), A = Rs(y);
761
+ x = ho(y, b), h = !x && !A;
762
762
  } else
763
763
  x = m === !0;
764
- p || e({
764
+ h || e({
765
765
  ft: !0,
766
766
  dt: x
767
767
  });
768
768
  };
769
769
  if (Zt) {
770
- const m = new Zt((v) => h(v.pop()));
770
+ const m = new Zt((v) => p(v.pop()));
771
771
  m.observe(u), xe(i, () => {
772
772
  m.disconnect();
773
773
  });
774
774
  } else if (n) {
775
- const [m, v] = n(u, h, r);
775
+ const [m, v] = n(u, p, r);
776
776
  xe(i, Qe([Zs(l, Ir), fe(l, "animationstart", m)], v));
777
777
  } else
778
778
  return at;
@@ -784,8 +784,8 @@ const Xr = () => {
784
784
  o: !1
785
785
  }), i = (l, u) => {
786
786
  if (l) {
787
- const h = c(r(l)), [, m] = h;
788
- return m && !u && e(h) && [h];
787
+ const p = c(r(l)), [, m] = p;
788
+ return m && !u && e(p) && [p];
789
789
  }
790
790
  }, d = (l, u) => i(u.pop(), l);
791
791
  return [() => {
@@ -798,8 +798,8 @@ const Xr = () => {
798
798
  });
799
799
  else {
800
800
  const u = () => {
801
- const h = Mt(n);
802
- i(h);
801
+ const p = Mt(n);
802
+ i(p);
803
803
  };
804
804
  xe(l, Mo(n, u)()), u();
805
805
  }
@@ -807,9 +807,9 @@ const Xr = () => {
807
807
  }, () => s && d(!0, s.takeRecords())];
808
808
  }, ca = (t, e, s, r) => {
809
809
  let n, c, i, d, l, u;
810
- const h = `[${lt}]`, m = `[${nt}]`, v = [], p = ["wrap", "cols", "rows"], x = ["id", "class", "style", "open"], { vt: b, ht: y, ot: A, gt: k, bt: U, wt: B, nt: D, yt: L, St: V, Ot: T } = t, O = (C) => pt(C, "direction") === "rtl", M = {
810
+ const p = `[${lt}]`, m = `[${nt}]`, v = [], h = ["wrap", "cols", "rows"], x = ["id", "class", "style", "open"], { vt: y, ht: b, ot: A, gt: k, bt: U, wt: B, nt: D, yt: L, St: V, Ot: T } = t, O = (C) => pt(C, "direction") === "rtl", M = {
811
811
  $t: !1,
812
- ct: O(b)
812
+ ct: O(y)
813
813
  }, S = Ke(), H = Ht(To), [$] = Ve({
814
814
  i: so,
815
815
  o: {
@@ -817,12 +817,12 @@ const Xr = () => {
817
817
  h: 0
818
818
  }
819
819
  }, () => {
820
- const C = H && H.tt(t, e, M, S, s).ut, G = !(L && D) && Qs(y, lt, Xt), K = !D && V(Br), Z = K && He(k), ie = T(xo, G), be = K && C && C()[0], Se = Bs(A), oe = tn(A);
821
- return be && be(), je(k, Z), G && ie(), {
820
+ const C = H && H.tt(t, e, M, S, s).ut, G = !(L && D) && Qs(b, lt, Xt), K = !D && V(Br), Z = K && He(k), ie = T(xo, G), ye = K && C && C()[0], Se = Bs(A), oe = tn(A);
821
+ return ye && ye(), Pe(k, Z), G && ie(), {
822
822
  w: Se.w + oe.w,
823
823
  h: Se.h + oe.h
824
824
  };
825
- }), w = B ? p : Qe(x, p), I = As(r, {
825
+ }), w = B ? h : Qe(x, h), I = As(r, {
826
826
  _: () => n,
827
827
  p: () => c,
828
828
  m(C, N) {
@@ -830,7 +830,7 @@ const Xr = () => {
830
830
  return [Qe(et(G), et(K)).reduce((Z, ie) => (Z[ie] = G[ie] || K[ie], Z), {})];
831
831
  }
832
832
  }), R = (C) => {
833
- const N = O(b);
833
+ const N = O(y);
834
834
  re(C, {
835
835
  Ct: u !== N
836
836
  }), re(M, {
@@ -843,7 +843,7 @@ const Xr = () => {
843
843
  return re(M, {
844
844
  $t: G
845
845
  }), !N && r(Z), Z;
846
- }, de = ({ ft: C, dt: N }) => {
846
+ }, ue = ({ ft: C, dt: N }) => {
847
847
  const K = !(C && !N) && S.R ? I : r, Z = {
848
848
  ft: C || N,
849
849
  dt: N
@@ -859,18 +859,18 @@ const Xr = () => {
859
859
  Et: N
860
860
  };
861
861
  return R(K), N && !G && I(K), K;
862
- }, [ee, te] = U ? ia(y, ne) : [], X = !D && Mo(y, de, {
862
+ }, [ee, te] = U ? ia(b, ne) : [], X = !D && Mo(b, ue, {
863
863
  dt: !0
864
- }), [ue, z] = On(y, !1, F, {
864
+ }), [me, z] = On(b, !1, F, {
865
865
  X: x,
866
866
  j: Qe(x, v)
867
867
  }), q = D && Zt && new Zt((C) => {
868
868
  const N = C[C.length - 1].contentRect;
869
- de({
869
+ ue({
870
870
  ft: !0,
871
871
  dt: ho(N, l)
872
872
  }), l = N;
873
- }), j = As(() => {
873
+ }), P = As(() => {
874
874
  const [, C] = $();
875
875
  r({
876
876
  Ht: C
@@ -880,116 +880,116 @@ const Xr = () => {
880
880
  v: !0
881
881
  });
882
882
  return [() => {
883
- q && q.observe(y);
884
- const C = X && X(), N = ee && ee(), G = ue(), K = S.L((Z) => {
883
+ q && q.observe(b);
884
+ const C = X && X(), N = ee && ee(), G = me(), K = S.L((Z) => {
885
885
  Z ? I({
886
886
  zt: Z
887
- }) : j();
887
+ }) : P();
888
888
  });
889
889
  return () => {
890
890
  q && q.disconnect(), C && C(), N && N(), d && d(), G(), K();
891
891
  };
892
892
  }, ({ It: C, At: N, Tt: G }) => {
893
- const K = {}, [Z] = C("update.ignoreMutation"), [ie, be] = C("update.attributes"), [Se, oe] = C("update.elementEvents"), [we, Ee] = C("update.debounce"), Re = oe || be, ke = N || G, De = (ye) => Fe(Z) && Z(ye);
893
+ const K = {}, [Z] = C("update.ignoreMutation"), [ie, ye] = C("update.attributes"), [Se, oe] = C("update.elementEvents"), [we, Ee] = C("update.debounce"), Re = oe || ye, ke = N || G, De = (be) => Fe(Z) && Z(be);
894
894
  if (Re) {
895
895
  i && i(), d && d();
896
- const [ye, ge] = On(U || A, !0, le, {
896
+ const [be, ge] = On(U || A, !0, le, {
897
897
  j: Qe(w, ie || []),
898
898
  Y: Se,
899
- W: h,
899
+ W: p,
900
900
  K: (Te, _e) => {
901
901
  const { target: Me, attributeName: Le } = Te;
902
- return (!_e && Le && !D ? Sr(Me, h, m) : !1) || !!_t(Me, `.${Be}`) || !!De(Te);
902
+ return (!_e && Le && !D ? Sr(Me, p, m) : !1) || !!_t(Me, `.${Be}`) || !!De(Te);
903
903
  }
904
904
  });
905
- d = ye(), i = ge;
905
+ d = be(), i = ge;
906
906
  }
907
907
  if (Ee)
908
908
  if (I.S(), Ge(we)) {
909
- const ye = we[0], ge = we[1];
910
- n = qe(ye) && ye, c = qe(ge) && ge;
909
+ const be = we[0], ge = we[1];
910
+ n = qe(be) && be, c = qe(ge) && ge;
911
911
  } else qe(we) ? (n = we, c = !1) : (n = !1, c = !1);
912
912
  if (ke) {
913
- const ye = z(), ge = te && te(), Te = i && i();
914
- ye && re(K, F(ye[0], ye[1], ke)), ge && re(K, ne(ge[0], ke)), Te && re(K, le(Te[0], ke));
913
+ const be = z(), ge = te && te(), Te = i && i();
914
+ be && re(K, F(be[0], be[1], ke)), ge && re(K, ne(ge[0], ke)), Te && re(K, le(Te[0], ke));
915
915
  }
916
916
  return R(K), K;
917
917
  }, M];
918
918
  }, da = (t, e, s, r) => {
919
- const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: h, gt: m, yt: v, nt: p } = e, { scrollbars: x } = h ? {} : t, { slot: b } = x || {}, y = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
919
+ const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: p, gt: m, yt: v, nt: h } = e, { scrollbars: x } = p ? {} : t, { slot: y } = x || {}, b = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
920
920
  source: m,
921
921
  axis: z
922
922
  }), k = {
923
923
  x: A("x"),
924
924
  y: A("y")
925
- }, U = ko([d, l, u], () => p && v ? d : l, i, b), B = (z, q) => {
925
+ }, U = ko([d, l, u], () => h && v ? d : l, i, y), B = (z, q) => {
926
926
  if (q) {
927
- const Z = z ? yt : bt, { kt: ie, Mt: be } = q, Se = At(be)[Z], oe = At(ie)[Z];
927
+ const Z = z ? bt : yt, { kt: ie, Mt: ye } = q, Se = At(ye)[Z], oe = At(ie)[Z];
928
928
  return Ds(0, 1, Se / oe || 0);
929
929
  }
930
- const j = z ? "x" : "y", { Rt: C, Vt: N } = s, G = N[j], K = C[j];
930
+ const P = z ? "x" : "y", { Rt: C, Vt: N } = s, G = N[P], K = C[P];
931
931
  return Ds(0, 1, G / (G + K) || 0);
932
- }, D = (z, q, j) => {
933
- const C = B(j, z);
932
+ }, D = (z, q, P) => {
933
+ const C = B(P, z);
934
934
  return 1 / C * (1 - C) * q;
935
935
  }, L = (z) => re(z, {
936
936
  clear: ["left"]
937
937
  }), V = (z) => {
938
- y.forEach((q, j) => {
939
- (z ? Ws(Wn(z), j) : !0) && (ce(q || [], (N) => {
938
+ b.forEach((q, P) => {
939
+ (z ? Ws(Wn(z), P) : !0) && (ce(q || [], (N) => {
940
940
  N && N.cancel();
941
- }), y.delete(j));
941
+ }), b.delete(P));
942
942
  });
943
- }, T = (z, q, j, C) => {
944
- const N = y.get(z) || [], G = N.find((K) => K && K.timeline === q);
945
- G ? G.effect = new KeyframeEffect(z, j, {
943
+ }, T = (z, q, P, C) => {
944
+ const N = b.get(z) || [], G = N.find((K) => K && K.timeline === q);
945
+ G ? G.effect = new KeyframeEffect(z, P, {
946
946
  composite: C
947
- }) : y.set(z, Qe(N, [z.animate(j, {
947
+ }) : b.set(z, Qe(N, [z.animate(P, {
948
948
  timeline: q,
949
949
  composite: C
950
950
  })]));
951
- }, O = (z, q, j) => {
952
- const C = j ? Zs : lo;
951
+ }, O = (z, q, P) => {
952
+ const C = P ? Zs : lo;
953
953
  ce(z, (N) => {
954
954
  C(N.Lt, q);
955
955
  });
956
956
  }, M = (z, q) => {
957
- ce(z, (j) => {
958
- const [C, N] = q(j);
957
+ ce(z, (P) => {
958
+ const [C, N] = q(P);
959
959
  Vt(C, N);
960
960
  });
961
961
  }, S = (z, q) => {
962
- M(z, (j) => {
963
- const { Mt: C } = j;
962
+ M(z, (P) => {
963
+ const { Mt: C } = P;
964
964
  return [C, {
965
- [q ? yt : bt]: xn(B(q))
965
+ [q ? bt : yt]: xn(B(q))
966
966
  }];
967
967
  });
968
968
  }, H = (z, q) => {
969
- const { Pt: j } = s, C = q ? "x" : "y", N = k[C], G = wn(j)[C], K = (Z, ie) => ys(xn(D(Z, G ? ie : 1 - ie, q)), q);
969
+ const { Pt: P } = s, C = q ? "x" : "y", N = k[C], G = wn(P)[C], K = (Z, ie) => bs(xn(D(Z, G ? ie : 1 - ie, q)), q);
970
970
  N ? ce(z, (Z) => {
971
971
  const { Mt: ie } = Z;
972
972
  T(ie, N, L({
973
- transform: [0, 1].map((be) => K(Z, be))
973
+ transform: [0, 1].map((ye) => K(Z, ye))
974
974
  }));
975
975
  }) : M(z, (Z) => [Z.Mt, {
976
- transform: K(Z, kn(j, He(m))[C])
976
+ transform: K(Z, kn(P, He(m))[C])
977
977
  }]);
978
- }, $ = (z) => p && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q, j) => {
979
- const C = Kn(j), N = C ? j : !0, G = C ? !j : !0;
978
+ }, $ = (z) => h && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q, P) => {
979
+ const C = Kn(P), N = C ? P : !0, G = C ? !P : !0;
980
980
  N && O(I, z, q), G && O(R, z, q);
981
- }, de = () => {
981
+ }, ue = () => {
982
982
  S(I, !0), S(R);
983
983
  }, le = () => {
984
984
  H(I, !0), H(R);
985
985
  }, F = () => {
986
- if (p) {
987
- const { Rt: z, Pt: q } = s, j = wn(q), C = 0.5;
986
+ if (h) {
987
+ const { Rt: z, Pt: q } = s, P = wn(q), C = 0.5;
988
988
  if (k.x && k.y)
989
989
  ce(Qe(R, I), ({ Lt: N }) => {
990
990
  if ($(N)) {
991
991
  const G = (K) => T(N, k[K], L({
992
- transform: [0, j[K] ? 1 : -1].map((Z) => ys(Hs(Z * (z[K] - C)), K === "x"))
992
+ transform: [0, P[K] ? 1 : -1].map((Z) => bs(Hs(Z * (z[K] - C)), K === "x"))
993
993
  }), "add");
994
994
  G("x"), G("y");
995
995
  } else
@@ -997,14 +997,14 @@ const Xr = () => {
997
997
  });
998
998
  else {
999
999
  const N = kn(q, He(m)), G = (K) => {
1000
- const { Lt: Z } = K, ie = $(Z) && Z, be = (Se, oe, we) => {
1000
+ const { Lt: Z } = K, ie = $(Z) && Z, ye = (Se, oe, we) => {
1001
1001
  const Ee = oe * Se;
1002
1002
  return Hs(we ? Ee : -Ee);
1003
1003
  };
1004
1004
  return [ie, ie && {
1005
- transform: ys({
1006
- x: be(N.x, z.x, j.x),
1007
- y: be(N.y, z.y, j.y)
1005
+ transform: bs({
1006
+ x: ye(N.x, z.x, P.x),
1007
+ y: ye(N.y, z.y, P.y)
1008
1008
  })
1009
1009
  }];
1010
1010
  };
@@ -1012,15 +1012,15 @@ const Xr = () => {
1012
1012
  }
1013
1013
  }
1014
1014
  }, ee = (z) => {
1015
- const j = xt(`${Be} ${z ? jr : qr}`), C = xt(bo), N = xt(nn), G = {
1016
- Lt: j,
1015
+ const P = xt(`${Be} ${z ? Pr : qr}`), C = xt(yo), N = xt(nn), G = {
1016
+ Lt: P,
1017
1017
  kt: C,
1018
1018
  Mt: N
1019
1019
  };
1020
- return xe(z ? I : R, G), xe(w, [Oe(j, C), Oe(C, N), J(it, j), V, r(G, ne, H, z)]), G;
1021
- }, te = J(ee, !0), X = J(ee, !1), ue = () => (Oe(U, I[0].Lt), Oe(U, R[0].Lt), J(Ie, w));
1020
+ return xe(z ? I : R, G), xe(w, [Oe(P, C), Oe(C, N), J(it, P), V, r(G, ne, H, z)]), G;
1021
+ }, te = J(ee, !0), X = J(ee, !1), me = () => (Oe(U, I[0].Lt), Oe(U, R[0].Lt), J(Ie, w));
1022
1022
  return te(), X(), [{
1023
- Ut: de,
1023
+ Ut: ue,
1024
1024
  Nt: le,
1025
1025
  qt: F,
1026
1026
  Bt: ne,
@@ -1036,39 +1036,39 @@ const Xr = () => {
1036
1036
  Xt: X,
1037
1037
  Yt: J(M, R)
1038
1038
  }
1039
- }, ue];
1039
+ }, me];
1040
1040
  }, ua = (t, e, s, r) => (n, c, i, d) => {
1041
- const { ht: l, ot: u, nt: h, gt: m, Jt: v, Ot: p } = e, { Lt: x, kt: b, Mt: y } = n, [A, k] = mt(333), [U, B] = mt(444), [D, L] = mt(), V = J(i, [n], d), T = ($) => {
1041
+ const { ht: l, ot: u, nt: p, gt: m, Jt: v, Ot: h } = e, { Lt: x, kt: y, Mt: b } = n, [A, k] = mt(333), [U, B] = mt(444), [D, L] = mt(), V = J(i, [n], d), T = ($) => {
1042
1042
  Fe(m.scrollBy) && m.scrollBy({
1043
1043
  behavior: "smooth",
1044
1044
  left: $.x,
1045
1045
  top: $.y
1046
1046
  });
1047
- }, O = d ? yt : bt, M = () => {
1048
- const $ = "pointerup pointercancel lostpointercapture", w = `client${d ? "X" : "Y"}`, I = d ? "left" : "top", R = d ? "w" : "h", ne = d ? "x" : "y", de = (le, F) => (ee) => {
1049
- const { Rt: te } = s, X = Mt(b)[R] - Mt(y)[R], z = F * ee / X * te[ne];
1050
- je(m, {
1047
+ }, O = d ? bt : yt, M = () => {
1048
+ const $ = "pointerup pointercancel lostpointercapture", w = `client${d ? "X" : "Y"}`, I = d ? "left" : "top", R = d ? "w" : "h", ne = d ? "x" : "y", ue = (le, F) => (ee) => {
1049
+ const { Rt: te } = s, X = Mt(y)[R] - Mt(b)[R], z = F * ee / X * te[ne];
1050
+ Pe(m, {
1051
1051
  [ne]: le + z
1052
1052
  });
1053
1053
  };
1054
- return fe(b, "pointerdown", (le) => {
1055
- const F = _t(le.target, `.${nn}`) === y, ee = F ? y : b, te = t.scrollbars, { button: X, isPrimary: ue, pointerType: z } = le, { pointers: q } = te;
1056
- if (X === 0 && ue && te[F ? "dragScroll" : "clickScroll"] && (q || []).includes(z)) {
1054
+ return fe(y, "pointerdown", (le) => {
1055
+ const F = _t(le.target, `.${nn}`) === b, ee = F ? b : y, te = t.scrollbars, { button: X, isPrimary: me, pointerType: z } = le, { pointers: q } = te;
1056
+ if (X === 0 && me && te[F ? "dragScroll" : "clickScroll"] && (q || []).includes(z)) {
1057
1057
  B();
1058
- const C = !F && le.shiftKey, N = J(At, y), G = J(At, b), K = (_e, Me) => (_e || N())[I] - (Me || G())[I], Z = Cs(At(m)[O]) / Mt(m)[R] || 1, ie = de(He(m)[ne], 1 / Z), be = le[w], Se = N(), oe = G(), we = Se[O], Ee = K(Se, oe) + we / 2, Re = be - oe[I], ke = F ? 0 : Re - Ee, De = (_e) => {
1058
+ const C = !F && le.shiftKey, N = J(At, b), G = J(At, y), K = (_e, Me) => (_e || N())[I] - (Me || G())[I], Z = Cs(At(m)[O]) / Mt(m)[R] || 1, ie = ue(He(m)[ne], 1 / Z), ye = le[w], Se = N(), oe = G(), we = Se[O], Ee = K(Se, oe) + we / 2, Re = ye - oe[I], ke = F ? 0 : Re - Ee, De = (_e) => {
1059
1059
  Ie(Te), ee.releasePointerCapture(_e.pointerId);
1060
- }, ye = () => p(Rr, !0), ge = ye(), Te = [() => {
1060
+ }, be = () => h(Rr, !0), ge = be(), Te = [() => {
1061
1061
  const _e = He(m);
1062
1062
  ge();
1063
1063
  const Me = He(m), Le = {
1064
1064
  x: Me.x - _e.x,
1065
1065
  y: Me.y - _e.y
1066
1066
  };
1067
- (Jt(Le.x) > 3 || Jt(Le.y) > 3) && (ye(), je(m, _e), T(Le), U(ge));
1067
+ (Jt(Le.x) > 3 || Jt(Le.y) > 3) && (be(), Pe(m, _e), T(Le), U(ge));
1068
1068
  }, fe(v, $, De), fe(v, "selectstart", (_e) => Fs(_e), {
1069
1069
  H: !1
1070
- }), fe(b, $, De), fe(b, "pointermove", (_e) => {
1071
- const Me = _e[w] - be;
1070
+ }), fe(y, $, De), fe(y, "pointermove", (_e) => {
1071
+ const Me = _e[w] - ye;
1072
1072
  (F || C) && ie(ke + Me);
1073
1073
  })];
1074
1074
  if (ee.setPointerCapture(le.pointerId), C)
@@ -1082,11 +1082,11 @@ const Xr = () => {
1082
1082
  };
1083
1083
  let S = !0;
1084
1084
  const H = ($) => $.propertyName.indexOf(O) > -1;
1085
- return J(Ie, [fe(y, "pointermove pointerleave", r), fe(x, "pointerenter", () => {
1085
+ return J(Ie, [fe(b, "pointermove pointerleave", r), fe(x, "pointerenter", () => {
1086
1086
  c(An, !0);
1087
1087
  }), fe(x, "pointerleave pointercancel", () => {
1088
1088
  c(An, !1);
1089
- }), !h && fe(x, "mousedown", () => {
1089
+ }), !p && fe(x, "mousedown", () => {
1090
1090
  const $ = Os();
1091
1091
  (vn($, nt) || vn($, lt) || $ === document.body) && Qt(J(Is, u), 25);
1092
1092
  }), fe(x, "wheel", ($) => {
@@ -1100,14 +1100,14 @@ const Xr = () => {
1100
1100
  }, {
1101
1101
  H: !1,
1102
1102
  I: !0
1103
- }), fe(y, "transitionstart", ($) => {
1103
+ }), fe(b, "transitionstart", ($) => {
1104
1104
  if (H($)) {
1105
1105
  const w = () => {
1106
1106
  V(), D(w);
1107
1107
  };
1108
1108
  w();
1109
1109
  }
1110
- }), fe(y, "transitionend transitioncancel", ($) => {
1110
+ }), fe(b, "transitionend transitioncancel", ($) => {
1111
1111
  H($) && (L(), V());
1112
1112
  }), fe(x, "pointerdown", J(fe, v, "click", vo, {
1113
1113
  A: !0,
@@ -1117,8 +1117,8 @@ const Xr = () => {
1117
1117
  I: !0
1118
1118
  }), M(), k, B, L]);
1119
1119
  }, ma = (t, e, s, r, n, c) => {
1120
- let i, d, l, u, h, m = at, v = 0;
1121
- const p = (F) => F.pointerType === "mouse", [x, b] = mt(), [y, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n, r, ua(e, n, r, (F) => p(F) && R())), { ht: T, Kt: O, yt: M } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
1120
+ let i, d, l, u, p, m = at, v = 0;
1121
+ const h = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n, r, ua(e, n, r, (F) => h(F) && R())), { ht: T, Kt: O, yt: M } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
1122
1122
  if (D(), F)
1123
1123
  S(Ln);
1124
1124
  else {
@@ -1126,43 +1126,43 @@ const Xr = () => {
1126
1126
  v > 0 && !ee ? B(te) : te();
1127
1127
  }
1128
1128
  }, R = () => {
1129
- (l ? !i : !u) && (I(!0), y(() => {
1129
+ (l ? !i : !u) && (I(!0), b(() => {
1130
1130
  I(!1);
1131
1131
  }));
1132
1132
  }, ne = (F) => {
1133
1133
  S(zs, F, !0), S(zs, F, !1);
1134
- }, de = (F) => {
1135
- p(F) && (i = l, l && I(!0));
1136
- }, le = [D, A, U, b, () => m(), fe(T, "pointerover", de, {
1134
+ }, ue = (F) => {
1135
+ h(F) && (i = l, l && I(!0));
1136
+ }, le = [D, A, U, y, () => m(), fe(T, "pointerover", ue, {
1137
1137
  A: !0
1138
- }), fe(T, "pointerenter", de), fe(T, "pointerleave", (F) => {
1139
- p(F) && (i = !1, l && I(!1));
1138
+ }), fe(T, "pointerenter", ue), fe(T, "pointerleave", (F) => {
1139
+ h(F) && (i = !1, l && I(!1));
1140
1140
  }), fe(T, "pointermove", (F) => {
1141
- p(F) && d && R();
1141
+ h(F) && d && R();
1142
1142
  }), fe(O, "scroll", (F) => {
1143
1143
  x(() => {
1144
1144
  $(), R();
1145
1145
  }), c(F), w();
1146
1146
  })];
1147
1147
  return [() => J(Ie, xe(le, V())), ({ It: F, Tt: ee, Gt: te, Qt: X }) => {
1148
- const { Zt: ue, tn: z, nn: q, sn: j } = X || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ke(), { G: Z, en: ie } = r, [be, Se] = F("showNativeOverlaidScrollbars"), [oe, we] = F("scrollbars.theme"), [Ee, Re] = F("scrollbars.visibility"), [ke, De] = F("scrollbars.autoHide"), [ye, ge] = F("scrollbars.autoHideSuspend"), [Te] = F("scrollbars.autoHideDelay"), [_e, Me] = F("scrollbars.dragScroll"), [Le, vt] = F("scrollbars.clickScroll"), [Bt, hs] = F("overflow"), ps = N && !ee, vs = ie.x || ie.y, Ne = ue || z || j || C || ee, gs = q || Re || hs, Rt = be && K.x && K.y, Ft = (tt, Et, Tt) => {
1148
+ const { Zt: me, tn: z, nn: q, sn: P } = X || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ke(), { G: Z, en: ie } = r, [ye, Se] = F("showNativeOverlaidScrollbars"), [oe, we] = F("scrollbars.theme"), [Ee, Re] = F("scrollbars.visibility"), [ke, De] = F("scrollbars.autoHide"), [be, ge] = F("scrollbars.autoHideSuspend"), [Te] = F("scrollbars.autoHideDelay"), [_e, Me] = F("scrollbars.dragScroll"), [Le, vt] = F("scrollbars.clickScroll"), [Bt, hs] = F("overflow"), ps = N && !ee, vs = ie.x || ie.y, Ue = me || z || P || C || ee, gs = q || Re || hs, Rt = ye && K.x && K.y, Ft = (tt, Et, Tt) => {
1149
1149
  const It = tt.includes(wt) && (Ee === ot || Ee === "auto" && Et === wt);
1150
1150
  return S(Gr, It, Tt), It;
1151
1151
  };
1152
- if (v = Te, ps && (ye && vs ? (ne(!1), m(), k(() => {
1152
+ if (v = Te, ps && (be && vs ? (ne(!1), m(), k(() => {
1153
1153
  m = fe(O, "scroll", J(ne, !0), {
1154
1154
  A: !0
1155
1155
  });
1156
- })) : ne(!0)), Se && S(zr, Rt), we && (S(h), S(oe, !0), h = oe), ge && !ye && ne(!0), De && (d = ke === "move", l = ke === "leave", u = ke === "never", I(u, !0)), Me && S(Yr, _e), vt && S(Wr, Le), gs) {
1156
+ })) : ne(!0)), Se && S(zr, Rt), we && (S(p), S(oe, !0), p = oe), ge && !be && ne(!0), De && (d = ke === "move", l = ke === "leave", u = ke === "never", I(u, !0)), Me && S(Yr, _e), vt && S(Wr, Le), gs) {
1157
1157
  const tt = Ft(Bt.x, Z.x, !0), Et = Ft(Bt.y, Z.y, !1);
1158
1158
  S(Kr, !(tt && Et));
1159
1159
  }
1160
- Ne && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(Pr, G && !M));
1160
+ Ue && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(jr, G && !M));
1161
1161
  }, {}, L];
1162
1162
  }, fa = (t) => {
1163
- const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), h = u ? {} : t, { elements: m } = h, { host: v, padding: p, viewport: x, content: b } = m || {}, y = u ? t : h.target, A = co(y), k = ss(y, "textarea"), U = y.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Jr, [y]), V = J(ko, [y]), T = J(xt, ""), O = J(L, T, d), M = J(V, T, l), S = O(x), H = S === y, $ = H && A, w = !H && M(b), I = !H && S === w, R = $ ? B : S, ne = k ? L(T, c, v) : y, de = $ ? R : ne, le = !H && V(T, i, p), F = !I && w, ee = [F, R, le, de].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), X = te(R) ? y : R, ue = {
1164
- vt: y,
1165
- ht: de,
1163
+ const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), p = u ? {} : t, { elements: m } = p, { host: v, padding: h, viewport: x, content: y } = m || {}, b = u ? t : p.target, A = co(b), k = ss(b, "textarea"), U = b.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Jr, [b]), V = J(ko, [b]), T = J(xt, ""), O = J(L, T, d), M = J(V, T, l), S = O(x), H = S === b, $ = H && A, w = !H && M(y), I = !H && S === w, R = $ ? B : S, ne = k ? L(T, c, v) : b, ue = $ ? R : ne, le = !H && V(T, i, h), F = !I && w, ee = [F, R, le, ue].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), X = te(R) ? b : R, me = {
1164
+ vt: b,
1165
+ ht: ue,
1166
1166
  ot: R,
1167
1167
  cn: le,
1168
1168
  bt: F,
@@ -1177,49 +1177,49 @@ const Xr = () => {
1177
1177
  ln: D,
1178
1178
  St: (oe) => Qs(R, nt, oe),
1179
1179
  Ot: (oe, we) => Ls(R, nt, oe, we)
1180
- }, { vt: z, ht: q, cn: j, ot: C, bt: N } = ue, G = [() => {
1181
- Ue(q, [lt, bs]), Ue(z, bs), A && Ue(B, [bs, lt]);
1180
+ }, { vt: z, ht: q, cn: P, ot: C, bt: N } = me, G = [() => {
1181
+ ze(q, [lt, ys]), ze(z, ys), A && ze(B, [ys, lt]);
1182
1182
  }], K = k && te(q);
1183
- let Z = k ? z : Vs([N, C, j, q, z].find((oe) => oe && !te(oe)));
1184
- const ie = $ ? z : N || C, be = J(Ie, G);
1185
- return [ue, () => {
1183
+ let Z = k ? z : Vs([N, C, P, q, z].find((oe) => oe && !te(oe)));
1184
+ const ie = $ ? z : N || C, ye = J(Ie, G);
1185
+ return [me, () => {
1186
1186
  const oe = D(), we = Os(), Ee = (ge) => {
1187
1187
  Oe(kt(ge), Vs(ge)), it(ge);
1188
1188
  }, Re = (ge) => fe(ge, "focusin focusout focus blur", vo, {
1189
1189
  I: !0,
1190
1190
  H: !1
1191
- }), ke = "tabindex", De = Xs(C, ke), ye = Re(we);
1192
- return Je(q, lt, H ? "" : Vr), Je(j, Us, ""), Je(C, nt, ""), Je(N, Mn, ""), H || (Je(C, ke, De || "-1"), A && Je(B, Tn, "")), K && (gn(z, q), xe(G, () => {
1191
+ }), ke = "tabindex", De = Xs(C, ke), be = Re(we);
1192
+ return Je(q, lt, H ? "" : Vr), Je(P, Us, ""), Je(C, nt, ""), Je(N, Mn, ""), H || (Je(C, ke, De || "-1"), A && Je(B, Tn, "")), K && (gn(z, q), xe(G, () => {
1193
1193
  gn(q, z), it(q);
1194
- })), Oe(ie, Z), Oe(q, j), Oe(j || q, !H && C), Oe(C, N), xe(G, [ye, () => {
1194
+ })), Oe(ie, Z), Oe(q, P), Oe(P || q, !H && C), Oe(C, N), xe(G, [be, () => {
1195
1195
  const ge = Os(), Te = te(C), _e = Te && ge === C ? z : ge, Me = Re(_e);
1196
- Ue(j, Us), Ue(N, Mn), Ue(C, nt), A && Ue(B, Tn), De ? Je(C, ke, De) : Ue(C, ke), te(N) && Ee(N), Te && Ee(C), te(j) && Ee(j), Is(_e), Me();
1197
- }]), r && !H && (Js(C, nt, yo), xe(G, J(Ue, C, nt))), Is(!H && A && we === z && oe.top === oe ? C : we), ye(), Z = 0, be;
1198
- }, be];
1196
+ ze(P, Us), ze(N, Mn), ze(C, nt), A && ze(B, Tn), De ? Je(C, ke, De) : ze(C, ke), te(N) && Ee(N), Te && Ee(C), te(P) && Ee(P), Is(_e), Me();
1197
+ }]), r && !H && (Js(C, nt, bo), xe(G, J(ze, C, nt))), Is(!H && A && we === z && oe.top === oe ? C : we), be(), Z = 0, ye;
1198
+ }, ye];
1199
1199
  }, ha = ({ bt: t }) => ({ Gt: e, an: s, Tt: r }) => {
1200
1200
  const { xt: n } = e || {}, { $t: c } = s;
1201
1201
  t && (n || r) && Vt(t, {
1202
- [bt]: c && "100%"
1202
+ [yt]: c && "100%"
1203
1203
  });
1204
1204
  }, pa = ({ ht: t, cn: e, ot: s, nt: r }, n) => {
1205
1205
  const [c, i] = Ve({
1206
1206
  i: kr,
1207
- o: yn()
1208
- }, J(yn, t, "padding", ""));
1209
- return ({ It: d, Gt: l, an: u, Tt: h }) => {
1210
- let [m, v] = i(h);
1211
- const { R: p } = Ke(), { ft: x, Ht: b, Ct: y } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
1212
- (x || v || (h || b)) && ([m, v] = c(h));
1213
- const D = !r && (U || y || v);
1207
+ o: bn()
1208
+ }, J(bn, t, "padding", ""));
1209
+ return ({ It: d, Gt: l, an: u, Tt: p }) => {
1210
+ let [m, v] = i(p);
1211
+ const { R: h } = Ke(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
1212
+ (x || v || (p || y)) && ([m, v] = c(p));
1213
+ const D = !r && (U || b || v);
1214
1214
  if (D) {
1215
- const L = !k || !e && !p, V = m.r + m.l, T = m.t + m.b, O = {
1215
+ const L = !k || !e && !h, V = m.r + m.l, T = m.t + m.b, O = {
1216
1216
  [eo]: L && !A ? -V : 0,
1217
1217
  [to]: L ? -T : 0,
1218
1218
  [Zn]: L && A ? -V : 0,
1219
1219
  top: L ? -m.t : 0,
1220
1220
  right: L ? A ? -m.r : "auto" : 0,
1221
1221
  left: L ? A ? "auto" : -m.l : 0,
1222
- [yt]: L && `calc(100% + ${V}px)`
1222
+ [bt]: L && `calc(100% + ${V}px)`
1223
1223
  }, M = {
1224
1224
  [Yn]: L ? m.t : 0,
1225
1225
  [Xn]: L ? m.r : 0,
@@ -1237,7 +1237,7 @@ const Xr = () => {
1237
1237
  };
1238
1238
  };
1239
1239
  }, va = (t, e) => {
1240
- const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: h, ln: m } = t, { R: v } = s, p = u && i, x = J(jn, 0), b = ["display", "direction", "flexDirection", "writingMode"], y = {
1240
+ const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: p, ln: m } = t, { R: v } = s, h = u && i, x = J(Pn, 0), y = ["display", "direction", "flexDirection", "writingMode"], b = {
1241
1241
  i: so,
1242
1242
  o: {
1243
1243
  w: 0,
@@ -1247,7 +1247,7 @@ const Xr = () => {
1247
1247
  i: Wt,
1248
1248
  o: {}
1249
1249
  }, k = (F) => {
1250
- h(xo, !p && F);
1250
+ p(xo, !h && F);
1251
1251
  }, U = (F, ee) => {
1252
1252
  const te = Ae.devicePixelRatio % 1 !== 0 ? 1 : 0, X = {
1253
1253
  w: x(F.w - ee.w),
@@ -1257,62 +1257,62 @@ const Xr = () => {
1257
1257
  w: X.w > te ? X.w : 0,
1258
1258
  h: X.h > te ? X.h : 0
1259
1259
  };
1260
- }, [B, D] = Ve(y, J(tn, c)), [L, V] = Ve(y, J(Bs, c)), [T, O] = Ve(y), [M] = Ve(A), [S, H] = Ve(y), [$] = Ve(A), [w] = Ve({
1261
- i: (F, ee) => ds(F, ee, b),
1260
+ }, [B, D] = Ve(b, J(tn, c)), [L, V] = Ve(b, J(Bs, c)), [T, O] = Ve(b), [M] = Ve(A), [S, H] = Ve(b), [$] = Ve(A), [w] = Ve({
1261
+ i: (F, ee) => ds(F, ee, y),
1262
1262
  o: {}
1263
- }, () => Ar(c) ? pt(c, b) : {}), [I, R] = Ve({
1263
+ }, () => Ar(c) ? pt(c, y) : {}), [I, R] = Ve({
1264
1264
  i: (F, ee) => Wt(F.T, ee.T) && Wt(F.D, ee.D),
1265
1265
  o: go()
1266
1266
  }, () => {
1267
1267
  k(!0);
1268
- const F = He(l), ee = h(Fr, !0), te = fe(d, wt, (j) => {
1268
+ const F = He(l), ee = p(Fr, !0), te = fe(d, wt, (P) => {
1269
1269
  const C = He(l);
1270
- j.isTrusted && C.x === F.x && C.y === F.y && po(j);
1270
+ P.isTrusted && C.x === F.x && C.y === F.y && po(P);
1271
1271
  }, {
1272
1272
  I: !0,
1273
1273
  A: !0
1274
1274
  });
1275
- je(l, {
1275
+ Pe(l, {
1276
1276
  x: 0,
1277
1277
  y: 0
1278
1278
  }), ee();
1279
- const X = He(l), ue = Bs(l);
1280
- je(l, {
1281
- x: ue.w,
1282
- y: ue.h
1279
+ const X = He(l), me = Bs(l);
1280
+ Pe(l, {
1281
+ x: me.w,
1282
+ y: me.h
1283
1283
  });
1284
1284
  const z = He(l);
1285
- je(l, {
1286
- x: z.x - X.x < 1 && -ue.w,
1287
- y: z.y - X.y < 1 && -ue.h
1285
+ Pe(l, {
1286
+ x: z.x - X.x < 1 && -me.w,
1287
+ y: z.y - X.y < 1 && -me.h
1288
1288
  });
1289
1289
  const q = He(l);
1290
- return je(l, F), Gs(() => te()), {
1290
+ return Pe(l, F), Gs(() => te()), {
1291
1291
  T: X,
1292
1292
  D: q
1293
1293
  };
1294
- }), ne = Ht(To), de = (F, ee) => `${ee ? Or : Hr}${wr(F)}`, le = (F) => {
1295
- const ee = (X) => [ot, ut, wt].map((ue) => de(ue, X)), te = ee(!0).concat(ee()).join(" ");
1296
- h(te), h(et(F).map((X) => de(F[X], X === "x")).join(" "), !0);
1294
+ }), ne = Ht(To), ue = (F, ee) => `${ee ? Or : Hr}${wr(F)}`, le = (F) => {
1295
+ const ee = (X) => [ot, ut, wt].map((me) => ue(me, X)), te = ee(!0).concat(ee()).join(" ");
1296
+ p(te), p(et(F).map((X) => ue(F[X], X === "x")).join(" "), !0);
1297
1297
  };
1298
- return ({ It: F, Gt: ee, an: te, Tt: X }, { _n: ue }) => {
1299
- const { ft: z, Ht: q, Ct: j, dt: C, zt: N } = ee || {}, G = ne && ne.tt(t, e, te, s, F), { it: K, ut: Z, _t: ie } = G || {}, [be, Se] = ra(F, s), [oe, we] = F("overflow"), Ee = ns(oe.x), Re = ns(oe.y), ke = z || ue || q || j || N || Se;
1300
- let De = D(X), ye = V(X), ge = O(X), Te = H(X);
1301
- if (Se && v && h(yo, !be), ke) {
1298
+ return ({ It: F, Gt: ee, an: te, Tt: X }, { _n: me }) => {
1299
+ const { ft: z, Ht: q, Ct: P, dt: C, zt: N } = ee || {}, G = ne && ne.tt(t, e, te, s, F), { it: K, ut: Z, _t: ie } = G || {}, [ye, Se] = ra(F, s), [oe, we] = F("overflow"), Ee = ns(oe.x), Re = ns(oe.y), ke = z || me || q || P || N || Se;
1300
+ let De = D(X), be = V(X), ge = O(X), Te = H(X);
1301
+ if (Se && v && p(bo, !ye), ke) {
1302
1302
  Qs(r, lt, Xt) && k(!0);
1303
- const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] = ye = L(X), zt = fo(c), Pt = p && Mr(m()), qo = {
1303
+ const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] = be = L(X), zt = fo(c), jt = h && Mr(m()), qo = {
1304
1304
  w: x(Ut.w + Nt.w),
1305
1305
  h: x(Ut.h + Nt.h)
1306
1306
  }, un = {
1307
- w: x((Pt ? Pt.w : zt.w + x(zt.w - Ut.w)) + Nt.w),
1308
- h: x((Pt ? Pt.h : zt.h + x(zt.h - Ut.h)) + Nt.h)
1307
+ w: x((jt ? jt.w : zt.w + x(zt.w - Ut.w)) + Nt.w),
1308
+ h: x((jt ? jt.h : zt.h + x(zt.h - Ut.h)) + Nt.h)
1309
1309
  };
1310
1310
  dn && dn(), Te = S(un), ge = T(U(qo, un), X);
1311
1311
  }
1312
- const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] = ye, [ps, vs] = De, [Ne, gs] = M({
1312
+ const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] = be, [ps, vs] = De, [Ue, gs] = M({
1313
1313
  x: Le.w > 0,
1314
1314
  y: Le.h > 0
1315
- }), Rt = Ee && Re && (Ne.x || Ne.y) || Ee && Ne.x && !Ne.y || Re && Ne.y && !Ne.x, Ft = ue || j || N || vs || hs || Me || vt || we || Se || ke, tt = aa(Ne, oe), [Et, Tt] = $(tt.G), [, It] = w(X), cn = j || C || It || gs || X, [Po, jo] = cn ? I(X) : R();
1315
+ }), Rt = Ee && Re && (Ue.x || Ue.y) || Ee && Ue.x && !Ue.y || Re && Ue.y && !Ue.x, Ft = me || P || N || vs || hs || Me || vt || we || Se || ke, tt = aa(Ue, oe), [Et, Tt] = $(tt.G), [, It] = w(X), cn = P || C || It || gs || X, [jo, Po] = cn ? I(X) : R();
1316
1316
  return Ft && (Tt && le(tt.G), ie && K && Vt(c, ie(tt, te, K(tt, Bt, ps)))), k(!1), Ls(r, lt, Xt, Rt), Ls(n, Us, Xt, Rt), re(e, {
1317
1317
  G: Et,
1318
1318
  Vt: {
@@ -1323,13 +1323,13 @@ const Xr = () => {
1323
1323
  x: Le.w,
1324
1324
  y: Le.h
1325
1325
  },
1326
- en: Ne,
1327
- Pt: Dr(Po, Le)
1326
+ en: Ue,
1327
+ Pt: Dr(jo, Le)
1328
1328
  }), {
1329
1329
  nn: Tt,
1330
1330
  Zt: Me,
1331
1331
  tn: vt,
1332
- sn: jo || vt,
1332
+ sn: Po || vt,
1333
1333
  dn: cn
1334
1334
  };
1335
1335
  };
@@ -1368,17 +1368,17 @@ const Xr = () => {
1368
1368
  y: !1
1369
1369
  },
1370
1370
  Pt: go()
1371
- }, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(), h = !l && (u.x || u.y), m = [ha(e), pa(e, n), va(e, n)];
1371
+ }, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(), p = !l && (u.x || u.y), m = [ha(e), pa(e, n), va(e, n)];
1372
1372
  return [s, (v) => {
1373
- const p = {}, b = h && He(i);
1374
- return ce(m, (y) => {
1375
- re(p, y(v, p) || {});
1376
- }), je(i, b), !d && je(c, 0), p;
1373
+ const h = {}, y = p && He(i);
1374
+ return ce(m, (b) => {
1375
+ re(h, b(v, h) || {});
1376
+ }), Pe(i, y), !d && Pe(c, 0), h;
1377
1377
  }, n, e, r];
1378
1378
  }, _a = (t, e, s, r, n) => {
1379
- const c = En(e, {}), [i, d, l, u, h] = ga(t), [m, v, p] = ca(u, l, c, (U) => {
1379
+ const c = En(e, {}), [i, d, l, u, p] = ga(t), [m, v, h] = ca(u, l, c, (U) => {
1380
1380
  k({}, U);
1381
- }), [x, b, , y] = ma(t, e, p, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
1381
+ }), [x, y, , b] = ma(t, e, h, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
1382
1382
  if (s())
1383
1383
  return !1;
1384
1384
  const { fn: D, Tt: L, At: V, pn: T } = U, O = D || {}, M = !!L, S = {
@@ -1387,14 +1387,14 @@ const Xr = () => {
1387
1387
  Tt: M
1388
1388
  };
1389
1389
  if (T)
1390
- return b(S), !1;
1390
+ return y(S), !1;
1391
1391
  const H = B || v(re({}, S, {
1392
1392
  At: V
1393
1393
  })), $ = d(re({}, S, {
1394
- an: p,
1394
+ an: h,
1395
1395
  Gt: H
1396
1396
  }));
1397
- b(re({}, S, {
1397
+ y(re({}, S, {
1398
1398
  Gt: H,
1399
1399
  Qt: $
1400
1400
  }));
@@ -1406,25 +1406,25 @@ const Xr = () => {
1406
1406
  };
1407
1407
  return [() => {
1408
1408
  const { rn: U, gt: B } = u, D = He(U), L = [m(), i(), x()];
1409
- return je(B, D), J(Ie, L);
1409
+ return Pe(B, D), J(Ie, L);
1410
1410
  }, k, () => ({
1411
- vn: p,
1411
+ vn: h,
1412
1412
  hn: l
1413
1413
  }), {
1414
1414
  gn: u,
1415
- bn: y
1416
- }, h];
1415
+ bn: b
1416
+ }, p];
1417
1417
  }, ct = (t, e, s) => {
1418
1418
  const { N: r } = Ke(), n = ts(t), c = n ? t : t.target, i = $o(c);
1419
1419
  if (e && !i) {
1420
1420
  let d = !1;
1421
- const l = [], u = {}, h = (M) => {
1421
+ const l = [], u = {}, p = (M) => {
1422
1422
  const S = oo(M), H = Ht(na);
1423
1423
  return H ? H(S, !0) : S;
1424
- }, m = re({}, r(), h(e)), [v, p, x] = Ns(), [b, y, A] = Ns(s), k = (M, S) => {
1424
+ }, m = re({}, r(), p(e)), [v, h, x] = Ns(), [y, b, A] = Ns(s), k = (M, S) => {
1425
1425
  A(M, S), x(M, S);
1426
1426
  }, [U, B, D, L, V] = _a(t, m, () => d, ({ fn: M, Tt: S }, { Gt: H, Qt: $ }) => {
1427
- const { ft: w, Ct: I, xt: R, Ht: ne, Et: de, dt: le } = H, { Zt: F, tn: ee, nn: te, sn: X } = $;
1427
+ const { ft: w, Ct: I, xt: R, Ht: ne, Et: ue, dt: le } = H, { Zt: F, tn: ee, nn: te, sn: X } = $;
1428
1428
  k("updated", [O, {
1429
1429
  updateHints: {
1430
1430
  sizeChanged: !!w,
@@ -1435,30 +1435,30 @@ const Xr = () => {
1435
1435
  overflowStyleChanged: !!te,
1436
1436
  scrollCoordinatesChanged: !!X,
1437
1437
  contentMutation: !!ne,
1438
- hostMutation: !!de,
1438
+ hostMutation: !!ue,
1439
1439
  appear: !!le
1440
1440
  },
1441
1441
  changedOptions: M || {},
1442
1442
  force: !!S
1443
1443
  }]);
1444
1444
  }, (M) => k("scroll", [O, M])), T = (M) => {
1445
- ea(c), Ie(l), d = !0, k("destroyed", [O, M]), p(), y();
1445
+ ea(c), Ie(l), d = !0, k("destroyed", [O, M]), h(), b();
1446
1446
  }, O = {
1447
1447
  options(M, S) {
1448
1448
  if (M) {
1449
- const H = S ? r() : {}, $ = _o(m, re(H, h(M)));
1449
+ const H = S ? r() : {}, $ = _o(m, re(H, p(M)));
1450
1450
  Ys($) || (re(m, $), B({
1451
1451
  fn: $
1452
1452
  }));
1453
1453
  }
1454
1454
  return re({}, m);
1455
1455
  },
1456
- on: b,
1456
+ on: y,
1457
1457
  off: (M, S) => {
1458
- M && S && y(M, S);
1458
+ M && S && b(M, S);
1459
1459
  },
1460
1460
  state() {
1461
- const { vn: M, hn: S } = D(), { ct: H } = M, { Vt: $, Rt: w, G: I, en: R, cn: ne, un: de, Pt: le } = S;
1461
+ const { vn: M, hn: S } = D(), { ct: H } = M, { Vt: $, Rt: w, G: I, en: R, cn: ne, un: ue, Pt: le } = S;
1462
1462
  return re({}, {
1463
1463
  overflowEdge: $,
1464
1464
  overflowAmount: w,
@@ -1469,22 +1469,22 @@ const Xr = () => {
1469
1469
  end: le.D
1470
1470
  },
1471
1471
  padding: ne,
1472
- paddingAbsolute: de,
1472
+ paddingAbsolute: ue,
1473
1473
  directionRTL: H,
1474
1474
  destroyed: d
1475
1475
  });
1476
1476
  },
1477
1477
  elements() {
1478
- const { vt: M, ht: S, cn: H, ot: $, bt: w, gt: I, Kt: R } = L.gn, { Ft: ne, Wt: de } = L.bn, le = (ee) => {
1479
- const { Mt: te, kt: X, Lt: ue } = ee;
1478
+ const { vt: M, ht: S, cn: H, ot: $, bt: w, gt: I, Kt: R } = L.gn, { Ft: ne, Wt: ue } = L.bn, le = (ee) => {
1479
+ const { Mt: te, kt: X, Lt: me } = ee;
1480
1480
  return {
1481
- scrollbar: ue,
1481
+ scrollbar: me,
1482
1482
  track: X,
1483
1483
  handle: te
1484
1484
  };
1485
1485
  }, F = (ee) => {
1486
- const { jt: te, Xt: X } = ee, ue = le(te[0]);
1487
- return re({}, ue, {
1486
+ const { jt: te, Xt: X } = ee, me = le(te[0]);
1487
+ return re({}, me, {
1488
1488
  clone: () => {
1489
1489
  const z = le(X());
1490
1490
  return B({
@@ -1502,7 +1502,7 @@ const Xr = () => {
1502
1502
  scrollOffsetElement: I,
1503
1503
  scrollEventElement: R,
1504
1504
  scrollbarHorizontal: F(ne),
1505
- scrollbarVertical: F(de)
1505
+ scrollbarVertical: F(ue)
1506
1506
  });
1507
1507
  },
1508
1508
  update: (M) => B({
@@ -1541,8 +1541,8 @@ ct.env = () => {
1541
1541
  };
1542
1542
  function xa() {
1543
1543
  let t;
1544
- const e = E(null), s = Math.floor(Math.random() * 2 ** 32), r = E(!1), n = E([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = E(), h = E(null), m = E(null), v = E(null);
1545
- function p() {
1544
+ const e = E(null), s = Math.floor(Math.random() * 2 ** 32), r = E(!1), n = E([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = E(), p = E(null), m = E(null), v = E(null);
1545
+ function h() {
1546
1546
  t = new nr({
1547
1547
  area: e.value,
1548
1548
  keyboardDrag: !1,
@@ -1563,26 +1563,26 @@ function xa() {
1563
1563
  const x = () => ft(() => {
1564
1564
  t.addSelection(
1565
1565
  t.getSelectables()
1566
- ), b();
1567
- }), b = () => {
1566
+ ), y();
1567
+ }), y = () => {
1568
1568
  n.value = t.getSelection().map((B) => JSON.parse(B.dataset.item)), u.value(n.value);
1569
- }, y = () => ft(() => {
1569
+ }, b = () => ft(() => {
1570
1570
  const B = c().map((D) => D.path);
1571
1571
  l(), t.setSettings({
1572
1572
  selectables: document.getElementsByClassName("vf-item-" + s)
1573
1573
  }), t.addSelection(
1574
1574
  t.getSelectables().filter((D) => B.includes(JSON.parse(D.dataset.item).path))
1575
- ), b(), k();
1575
+ ), y(), k();
1576
1576
  }), A = (B) => {
1577
1577
  u.value = B, t.subscribe("DS:end", ({ items: D, event: L, isDragging: V }) => {
1578
1578
  n.value = D.map((T) => JSON.parse(T.dataset.item)), B(D.map((T) => JSON.parse(T.dataset.item)));
1579
1579
  });
1580
1580
  }, k = () => {
1581
- h.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (m.value.style.height = e.value.scrollHeight + "px", m.value.style.display = "block") : (m.value.style.height = "100%", m.value.style.display = "none"));
1581
+ p.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (m.value.style.height = e.value.scrollHeight + "px", m.value.style.display = "block") : (m.value.style.height = "100%", m.value.style.display = "none"));
1582
1582
  }, U = (B) => {
1583
- if (!h.value)
1583
+ if (!p.value)
1584
1584
  return;
1585
- const { scrollOffsetElement: D } = h.value.elements();
1585
+ const { scrollOffsetElement: D } = p.value.elements();
1586
1586
  D.scrollTo(
1587
1587
  {
1588
1588
  top: e.value.scrollTop,
@@ -1603,7 +1603,7 @@ function xa() {
1603
1603
  }
1604
1604
  }, {
1605
1605
  initialized: (B) => {
1606
- h.value = B;
1606
+ p.value = B;
1607
1607
  },
1608
1608
  scroll: (B, D) => {
1609
1609
  const { scrollOffsetElement: L } = B.elements();
@@ -1612,7 +1612,7 @@ function xa() {
1612
1612
  left: 0
1613
1613
  });
1614
1614
  }
1615
- }), p(), k(), new ResizeObserver(k).observe(e.value), e.value.addEventListener("scroll", U), t.subscribe("DS:scroll", ({ isDragging: B }) => B || U());
1615
+ }), h(), k(), new ResizeObserver(k).observe(e.value), e.value.addEventListener("scroll", U), t.subscribe("DS:scroll", ({ isDragging: B }) => B || U());
1616
1616
  }), qs(() => {
1617
1617
  t && t.stop();
1618
1618
  }), Rn(() => {
@@ -1627,14 +1627,14 @@ function xa() {
1627
1627
  getSelection: i,
1628
1628
  selectAll: x,
1629
1629
  clearSelection: l,
1630
- refreshSelection: y,
1630
+ refreshSelection: b,
1631
1631
  getCount: d,
1632
1632
  onSelect: A
1633
1633
  };
1634
1634
  }
1635
- function ya(t, e) {
1635
+ function ba(t, e) {
1636
1636
  const s = E(t), r = E(e), n = E([]), c = E([]), i = E([]), d = E(!1), l = E(5);
1637
- let u = !1, h = !1;
1637
+ let u = !1, p = !1;
1638
1638
  const m = Ot({
1639
1639
  adapter: s,
1640
1640
  storages: [],
@@ -1654,41 +1654,41 @@ function ya(t, e) {
1654
1654
  const [D, L] = x(U, l.value);
1655
1655
  i.value = L, n.value = D;
1656
1656
  }
1657
- function p(k) {
1657
+ function h(k) {
1658
1658
  l.value = k, v();
1659
1659
  }
1660
1660
  function x(k, U) {
1661
1661
  return k.length > U ? [k.slice(-U), k.slice(0, -U)] : [k, []];
1662
1662
  }
1663
- function b(k = null) {
1663
+ function y(k = null) {
1664
1664
  d.value = k ?? !d.value;
1665
1665
  }
1666
- function y() {
1667
- return n.value && n.value.length && !h;
1666
+ function b() {
1667
+ return n.value && n.value.length && !p;
1668
1668
  }
1669
1669
  const A = Ze(() => {
1670
1670
  var k;
1671
1671
  return ((k = n.value[n.value.length - 2]) == null ? void 0 : k.path) ?? s.value + "://";
1672
1672
  });
1673
1673
  return Ce(() => {
1674
- }), ze(r, v), Ce(v), {
1674
+ }), Ne(r, v), Ce(v), {
1675
1675
  adapter: s,
1676
1676
  path: r,
1677
1677
  loading: u,
1678
- searchMode: h,
1678
+ searchMode: p,
1679
1679
  data: m,
1680
1680
  breadcrumbs: n,
1681
1681
  breadcrumbItems: c,
1682
- limitBreadcrumbItems: p,
1682
+ limitBreadcrumbItems: h,
1683
1683
  hiddenBreadcrumbs: i,
1684
1684
  showHiddenBreadcrumbs: d,
1685
- toggleHiddenBreadcrumbs: b,
1686
- isGoUpAvailable: y,
1685
+ toggleHiddenBreadcrumbs: y,
1686
+ isGoUpAvailable: b,
1687
1687
  parentFolderPath: A
1688
1688
  };
1689
1689
  }
1690
- const ba = (t, e) => {
1691
- const s = dr(t.id), r = sr(), n = s.getStore("metricUnits", !1), c = vr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : fr, h = s.getStore("persist-path", t.persist), m = h ? s.getStore("path", t.path) : t.path;
1690
+ const ya = (t, e) => {
1691
+ const s = dr(t.id), r = sr(), n = s.getStore("metricUnits", !1), c = vr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : fr, p = s.getStore("persist-path", t.persist), m = p ? s.getStore("path", t.path) : t.path;
1692
1692
  return Ot({
1693
1693
  /**
1694
1694
  * Core properties
@@ -1739,11 +1739,11 @@ const ba = (t, e) => {
1739
1739
  // show large icons in list view
1740
1740
  compactListView: s.getStore("compact-list-view", !0),
1741
1741
  // persist state
1742
- persist: h,
1742
+ persist: p,
1743
1743
  // show thumbnails
1744
1744
  showThumbnails: s.getStore("show-thumbnails", t.showThumbnails),
1745
1745
  // file system
1746
- fs: ya(l, m)
1746
+ fs: ba(l, m)
1747
1747
  });
1748
1748
  }, wa = /* @__PURE__ */ o("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), ka = { class: "fixed z-10 inset-0 overflow-hidden" }, $a = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Sa = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, We = {
1749
1749
  __name: "ModalLayout",
@@ -1820,7 +1820,7 @@ const ba = (t, e) => {
1820
1820
  }, Ta = { key: 1 };
1821
1821
  function Ma(t, e, s, r, n, c) {
1822
1822
  return f(), g("div", {
1823
- class: me(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !r.shown }]])
1823
+ class: de(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !r.shown }]])
1824
1824
  }, [
1825
1825
  t.$slots.default ? Dt(t.$slots, "default", { key: 0 }) : (f(), g("span", Ta, _(r.t("Saved.")), 1))
1826
1826
  ], 2);
@@ -1865,7 +1865,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1865
1865
  }, Na = {
1866
1866
  key: 1,
1867
1867
  class: "mt-2"
1868
- }, Ua = { class: "m-1 text-sm text-gray-500" }, za = { class: "mt-3 text-left" }, Pa = { class: "space-y-2" }, ja = { class: "flex relative gap-x-3" }, qa = { class: "h-6 items-center" }, Ga = { class: "flex-1 block text-sm" }, Ka = {
1868
+ }, Ua = { class: "m-1 text-sm text-gray-500" }, za = { class: "mt-3 text-left" }, ja = { class: "space-y-2" }, Pa = { class: "flex relative gap-x-3" }, qa = { class: "h-6 items-center" }, Ga = { class: "flex-1 block text-sm" }, Ka = {
1869
1869
  for: "metric_unit",
1870
1870
  class: "flex w-full font-medium text-gray-900 dark:text-gray-400"
1871
1871
  }, Wa = { class: "flex relative gap-x-3" }, Ya = { class: "h-6 items-center" }, Xa = { class: "flex-1 block text-sm" }, Ja = {
@@ -1889,7 +1889,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1889
1889
  }, pl = { class: "flex text-sm" }, vl = ["label"], gl = ["value"], _l = {
1890
1890
  key: 2,
1891
1891
  class: "mt-3"
1892
- }, xl = { class: "space-y-2 sm:w-1/2" }, yl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, bl = /* @__PURE__ */ o("kbd", null, "F2", -1), wl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, kl = /* @__PURE__ */ o("kbd", null, "F5", -1), $l = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, Sl = /* @__PURE__ */ o("kbd", null, "Del", -1), Cl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, El = /* @__PURE__ */ o("div", null, [
1892
+ }, xl = { class: "space-y-2 sm:w-1/2" }, bl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, yl = /* @__PURE__ */ o("kbd", null, "F2", -1), wl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, kl = /* @__PURE__ */ o("kbd", null, "F5", -1), $l = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, Sl = /* @__PURE__ */ o("kbd", null, "Del", -1), Cl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, El = /* @__PURE__ */ o("div", null, [
1893
1893
  /* @__PURE__ */ o("kbd", null, "Esc")
1894
1894
  ], -1), Tl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, Ml = /* @__PURE__ */ o("div", null, [
1895
1895
  /* @__PURE__ */ o("kbd", null, "Ctrl"),
@@ -1927,19 +1927,19 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1927
1927
  { name: n("Settings"), key: d.SETTINGS },
1928
1928
  { name: n("Shortcuts"), key: d.SHORTCUTS },
1929
1929
  { name: n("Reset"), key: d.RESET }
1930
- ]), u = E("about"), h = async () => {
1930
+ ]), u = E("about"), p = async () => {
1931
1931
  r(), location.reload();
1932
1932
  }, m = (B) => {
1933
1933
  e.theme.set(B), e.emitter.emit("vf-theme-saved");
1934
1934
  }, v = () => {
1935
1935
  e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? zn : Un, s("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
1936
- }, p = () => {
1936
+ }, h = () => {
1937
1937
  e.compactListView = !e.compactListView, s("compactListView", e.compactListView), e.emitter.emit("vf-compact-view-saved");
1938
1938
  }, x = () => {
1939
1939
  e.showThumbnails = !e.showThumbnails, s("show-thumbnails", e.showThumbnails), e.emitter.emit("vf-show-thumbnails-saved");
1940
- }, b = () => {
1940
+ }, y = () => {
1941
1941
  e.persist = !e.persist, s("persist-path", e.persist), e.emitter.emit("vf-persist-path-saved");
1942
- }, { i18n: y } = ae("VueFinderOptions"), k = Object.fromEntries(
1942
+ }, { i18n: b } = ae("VueFinderOptions"), k = Object.fromEntries(
1943
1943
  Object.entries({
1944
1944
  en: "English",
1945
1945
  fr: "French (Français)",
@@ -1952,7 +1952,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1952
1952
  tr: "Turkish (Türkçe)",
1953
1953
  zhCN: "Simplified Chinese (简体中文)",
1954
1954
  zhTW: "Traditional Chinese (繁體中文)"
1955
- }).filter(([B]) => Object.keys(y).includes(B))
1955
+ }).filter(([B]) => Object.keys(b).includes(B))
1956
1956
  ), U = Ze(() => ({
1957
1957
  system: n("System"),
1958
1958
  light: n("Light"),
@@ -1977,7 +1977,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1977
1977
  (f(!0), g(he, null, $e(l.value, (L) => (f(), g("button", {
1978
1978
  key: L.name,
1979
1979
  onClick: (V) => u.value = L.key,
1980
- class: me([L.key === u.value ? "bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300 border-sky-500" : "text-gray-500 dark:text-gray-500 hover:text-gray-700 border-gray-300 dark:border-gray-600", "px-3 py-2 border-b font-medium text-sm"]),
1980
+ class: de([L.key === u.value ? "bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300 border-sky-500" : "text-gray-500 dark:text-gray-500 hover:text-gray-700 border-gray-300 dark:border-gray-600", "px-3 py-2 border-b font-medium text-sm"]),
1981
1981
  "aria-current": L.current ? "page" : void 0
1982
1982
  }, _(L.name), 11, Ha))), 128))
1983
1983
  ])
@@ -1987,13 +1987,13 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
1987
1987
  o("div", Ra, _(a(n)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")), 1),
1988
1988
  o("a", Fa, _(a(n)("Project home")), 1),
1989
1989
  o("a", Ia, _(a(n)("Follow on GitHub")), 1)
1990
- ])) : P("", !0),
1990
+ ])) : j("", !0),
1991
1991
  u.value === d.SETTINGS ? (f(), g("div", Na, [
1992
1992
  o("div", Ua, _(a(n)("Customize your experience with the following settings.")), 1),
1993
1993
  o("div", za, [
1994
1994
  o("fieldset", null, [
1995
- o("div", Pa, [
1996
- o("div", ja, [
1995
+ o("div", ja, [
1996
+ o("div", Pa, [
1997
1997
  o("div", qa, [
1998
1998
  ve(o("input", {
1999
1999
  id: "metric_unit",
@@ -2003,7 +2003,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2003
2003
  onClick: v,
2004
2004
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2005
2005
  }, null, 512), [
2006
- [jt, a(e).metricUnits]
2006
+ [Pt, a(e).metricUnits]
2007
2007
  ])
2008
2008
  ]),
2009
2009
  o("div", Ga, [
@@ -2028,10 +2028,10 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2028
2028
  name: "large_icons",
2029
2029
  type: "checkbox",
2030
2030
  "onUpdate:modelValue": D[1] || (D[1] = (L) => a(e).compactListView = L),
2031
- onClick: p,
2031
+ onClick: h,
2032
2032
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2033
2033
  }, null, 512), [
2034
- [jt, a(e).compactListView]
2034
+ [Pt, a(e).compactListView]
2035
2035
  ])
2036
2036
  ]),
2037
2037
  o("div", Xa, [
@@ -2056,10 +2056,10 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2056
2056
  name: "persist_path",
2057
2057
  type: "checkbox",
2058
2058
  "onUpdate:modelValue": D[2] || (D[2] = (L) => a(e).persist = L),
2059
- onClick: b,
2059
+ onClick: y,
2060
2060
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2061
2061
  }, null, 512), [
2062
- [jt, a(e).persist]
2062
+ [Pt, a(e).persist]
2063
2063
  ])
2064
2064
  ]),
2065
2065
  o("div", el, [
@@ -2087,7 +2087,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2087
2087
  onClick: x,
2088
2088
  class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
2089
2089
  }, null, 512), [
2090
- [jt, a(e).showThumbnails]
2090
+ [Pt, a(e).showThumbnails]
2091
2091
  ])
2092
2092
  ]),
2093
2093
  o("div", ol, [
@@ -2164,16 +2164,16 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2164
2164
  _: 1
2165
2165
  })
2166
2166
  ])
2167
- ])) : P("", !0)
2167
+ ])) : j("", !0)
2168
2168
  ])
2169
2169
  ])
2170
2170
  ])
2171
- ])) : P("", !0),
2171
+ ])) : j("", !0),
2172
2172
  u.value === d.SHORTCUTS ? (f(), g("div", _l, [
2173
2173
  o("div", xl, [
2174
- o("div", yl, [
2174
+ o("div", bl, [
2175
2175
  o("div", null, _(a(n)("Rename")), 1),
2176
- bl
2176
+ yl
2177
2177
  ]),
2178
2178
  o("div", wl, [
2179
2179
  o("div", null, _(a(n)("Refresh")), 1),
@@ -2208,15 +2208,15 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2208
2208
  Rl
2209
2209
  ])
2210
2210
  ])
2211
- ])) : P("", !0),
2211
+ ])) : j("", !0),
2212
2212
  u.value === d.RESET ? (f(), g("div", Fl, [
2213
2213
  o("div", Il, _(a(n)("Reset all settings to default")), 1),
2214
2214
  o("button", {
2215
- onClick: h,
2215
+ onClick: p,
2216
2216
  type: "button",
2217
2217
  class: "vf-btn vf-btn-secondary"
2218
2218
  }, _(a(n)("Reset Settings")), 1)
2219
- ])) : P("", !0)
2219
+ ])) : j("", !0)
2220
2220
  ])
2221
2221
  ])
2222
2222
  ]),
@@ -2250,18 +2250,18 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2250
2250
  setup(t, { emit: e }) {
2251
2251
  var u;
2252
2252
  const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = E(!1), i = E(null), d = E((u = i.value) == null ? void 0 : u.strMessage);
2253
- ze(d, () => c.value = !1);
2253
+ Ne(d, () => c.value = !1);
2254
2254
  const l = () => {
2255
2255
  s("hidden"), c.value = !0;
2256
2256
  };
2257
- return (h, m) => (f(), g("div", null, [
2258
- c.value ? P("", !0) : (f(), g("div", {
2257
+ return (p, m) => (f(), g("div", null, [
2258
+ c.value ? j("", !0) : (f(), g("div", {
2259
2259
  key: 0,
2260
2260
  ref_key: "strMessage",
2261
2261
  ref: i,
2262
- class: me(["flex mt-2 p-1 px-2 rounded text-sm break-all dark:opacity-75", t.error ? "bg-red-100 text-red-600 " : "bg-emerald-100 text-emerald-600"])
2262
+ class: de(["flex mt-2 p-1 px-2 rounded text-sm break-all dark:opacity-75", t.error ? "bg-red-100 text-red-600 " : "bg-emerald-100 text-emerald-600"])
2263
2263
  }, [
2264
- Dt(h.$slots, "default"),
2264
+ Dt(p.$slots, "default"),
2265
2265
  o("div", {
2266
2266
  class: "ml-auto cursor-pointer",
2267
2267
  onClick: l,
@@ -2270,7 +2270,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2270
2270
  ], 2))
2271
2271
  ]));
2272
2272
  }
2273
- }, Pl = { class: "sm:flex sm:items-start" }, jl = /* @__PURE__ */ o("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2273
+ }, jl = { class: "sm:flex sm:items-start" }, Pl = /* @__PURE__ */ o("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2274
2274
  /* @__PURE__ */ o("svg", {
2275
2275
  xmlns: "http://www.w3.org/2000/svg",
2276
2276
  class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
@@ -2356,8 +2356,8 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2356
2356
  o("div", oi, _(a(s)("This action cannot be undone.")), 1)
2357
2357
  ]),
2358
2358
  default: se(() => [
2359
- o("div", Pl, [
2360
- jl,
2359
+ o("div", jl, [
2360
+ Pl,
2361
2361
  o("div", ql, [
2362
2362
  o("h3", Gl, _(a(s)("Delete files")), 1),
2363
2363
  o("div", Kl, [
@@ -2377,7 +2377,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2377
2377
  Q(_(n.value), 1)
2378
2378
  ]),
2379
2379
  _: 1
2380
- })) : P("", !0)
2380
+ })) : j("", !0)
2381
2381
  ])
2382
2382
  ])
2383
2383
  ])
@@ -2495,7 +2495,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
2495
2495
  Q(_(c.value), 1)
2496
2496
  ]),
2497
2497
  _: 1
2498
- })) : P("", !0)
2498
+ })) : j("", !0)
2499
2499
  ])
2500
2500
  ])
2501
2501
  ])
@@ -2524,7 +2524,7 @@ function _i(t) {
2524
2524
  t.root.removeEventListener("keydown", e);
2525
2525
  });
2526
2526
  }
2527
- const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2527
+ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2528
2528
  /* @__PURE__ */ o("svg", {
2529
2529
  xmlns: "http://www.w3.org/2000/svg",
2530
2530
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -2539,7 +2539,7 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
2539
2539
  d: "M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"
2540
2540
  })
2541
2541
  ])
2542
- ], -1), bi = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, wi = {
2542
+ ], -1), yi = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, wi = {
2543
2543
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
2544
2544
  id: "modal-title"
2545
2545
  }, ki = { class: "mt-2" }, $i = { class: "text-sm text-gray-500" }, Si = ["placeholder"], Do = {
@@ -2581,8 +2581,8 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
2581
2581
  ]),
2582
2582
  default: se(() => [
2583
2583
  o("div", xi, [
2584
- yi,
2585
- o("div", bi, [
2584
+ bi,
2585
+ o("div", yi, [
2586
2586
  o("h3", wi, _(a(s)("New Folder")), 1),
2587
2587
  o("div", ki, [
2588
2588
  o("p", $i, _(a(s)("Create a new folder")), 1),
@@ -2604,7 +2604,7 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
2604
2604
  Q(_(n.value), 1)
2605
2605
  ]),
2606
2606
  _: 1
2607
- })) : P("", !0)
2607
+ })) : j("", !0)
2608
2608
  ])
2609
2609
  ])
2610
2610
  ])
@@ -2692,7 +2692,7 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
2692
2692
  Q(_(n.value), 1)
2693
2693
  ]),
2694
2694
  _: 1
2695
- })) : P("", !0)
2695
+ })) : j("", !0)
2696
2696
  ])
2697
2697
  ])
2698
2698
  ])
@@ -2701,7 +2701,7 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
2701
2701
  }));
2702
2702
  }
2703
2703
  };
2704
- function Ps(t, e = 14) {
2704
+ function js(t, e = 14) {
2705
2705
  let s = `((?=([\\w\\W]{0,${e}}))([\\w\\W]{${e + 1},})([\\w\\W]{8,}))`;
2706
2706
  return t.replace(new RegExp(s), "$2..$4");
2707
2707
  }
@@ -2729,7 +2729,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2729
2729
  }, Ni = {
2730
2730
  key: 1,
2731
2731
  class: "pointer-events-none"
2732
- }, Ui = ["disabled"], zi = ["disabled"], Pi = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, ji = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, qi = ["textContent"], Gi = { class: "ml-1 w-full h-fit" }, Ki = { class: "text-left hidden md:block" }, Wi = { class: "text-left md:hidden" }, Yi = {
2732
+ }, Ui = ["disabled"], zi = ["disabled"], ji = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, Pi = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, qi = ["textContent"], Gi = { class: "ml-1 w-full h-fit" }, Ki = { class: "text-left hidden md:block" }, Wi = { class: "text-left md:hidden" }, Yi = {
2733
2733
  key: 0,
2734
2734
  class: "ml-auto"
2735
2735
  }, Xi = ["title", "disabled", "onClick"], Ji = /* @__PURE__ */ o("svg", {
@@ -2759,13 +2759,13 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2759
2759
  UPLOADING: 2,
2760
2760
  ERROR: 3,
2761
2761
  DONE: 10
2762
- }, c = E({ QUEUE_ENTRY_STATUS: n }), i = E(null), d = E(null), l = E(null), u = E(null), h = E(null), m = E(null), v = E([]), p = E(""), x = E(!1), b = E(!1);
2763
- let y;
2762
+ }, c = E({ QUEUE_ENTRY_STATUS: n }), i = E(null), d = E(null), l = E(null), u = E(null), p = E(null), m = E(null), v = E([]), h = E(""), x = E(!1), y = E(!1);
2763
+ let b;
2764
2764
  function A(H) {
2765
2765
  return v.value.findIndex(($) => $.id === H);
2766
2766
  }
2767
2767
  function k(H, $ = null) {
2768
- $ = $ ?? (H.webkitRelativePath || H.name), y.addFile({
2768
+ $ = $ ?? (H.webkitRelativePath || H.name), b.addFile({
2769
2769
  name: $,
2770
2770
  type: H.type,
2771
2771
  data: H,
@@ -2803,23 +2803,23 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2803
2803
  function L() {
2804
2804
  if (!x.value) {
2805
2805
  if (!v.value.filter((H) => H.status !== n.DONE).length) {
2806
- p.value = s("Please select file to upload first.");
2806
+ h.value = s("Please select file to upload first.");
2807
2807
  return;
2808
2808
  }
2809
- p.value = "", y.retryAll(), y.upload();
2809
+ h.value = "", b.retryAll(), b.upload();
2810
2810
  }
2811
2811
  }
2812
2812
  function V() {
2813
- y.cancelAll({ reason: "user" }), v.value.forEach((H) => {
2813
+ b.cancelAll({ reason: "user" }), v.value.forEach((H) => {
2814
2814
  H.status !== n.DONE && (H.status = n.CANCELED, H.statusName = s("Canceled"));
2815
2815
  }), x.value = !1;
2816
2816
  }
2817
2817
  function T(H) {
2818
- x.value || (y.removeFile(H.id, "removed-by-user"), v.value.splice(A(H.id), 1));
2818
+ x.value || (b.removeFile(H.id, "removed-by-user"), v.value.splice(A(H.id), 1));
2819
2819
  }
2820
2820
  function O(H) {
2821
2821
  if (!x.value) {
2822
- if (y.cancelAll({ reason: "user" }), H) {
2822
+ if (b.cancelAll({ reason: "user" }), H) {
2823
2823
  const $ = [];
2824
2824
  v.value.forEach((w) => {
2825
2825
  w.status !== n.DONE && $.push(w);
@@ -2842,7 +2842,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2842
2842
  });
2843
2843
  }
2844
2844
  return Ce(async () => {
2845
- y = new or({
2845
+ b = new or({
2846
2846
  debug: e.debug,
2847
2847
  restrictions: {
2848
2848
  maxFileSize: pr(e.maxFileSize)
@@ -2853,7 +2853,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2853
2853
  onBeforeFileAdded(w, I) {
2854
2854
  if (I[w.id] != null) {
2855
2855
  const ne = A(w.id);
2856
- v.value[ne].status === n.PENDING && (p.value = y.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((de) => de.id !== w.id);
2856
+ v.value[ne].status === n.PENDING && (h.value = b.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((ue) => ue.id !== w.id);
2857
2857
  }
2858
2858
  return v.value.push({
2859
2859
  id: w.id,
@@ -2865,7 +2865,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2865
2865
  originalFile: w.data
2866
2866
  }), !0;
2867
2867
  }
2868
- }), y.use(rr, {
2868
+ }), b.use(rr, {
2869
2869
  endpoint: "WILL_BE_REPLACED_BEFORE_UPLOAD",
2870
2870
  limit: 5,
2871
2871
  timeout: 0,
@@ -2878,43 +2878,43 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2878
2878
  }
2879
2879
  return new Error(R);
2880
2880
  }
2881
- }), y.on("restriction-failed", (w, I) => {
2881
+ }), b.on("restriction-failed", (w, I) => {
2882
2882
  const R = v.value[A(w.id)];
2883
- T(R), p.value = I.message;
2884
- }), y.on("upload", () => {
2883
+ T(R), h.value = I.message;
2884
+ }), b.on("upload", () => {
2885
2885
  const w = S();
2886
- y.setMeta({ ...w.body });
2887
- const I = y.getPlugin("XHRUpload");
2886
+ b.setMeta({ ...w.body });
2887
+ const I = b.getPlugin("XHRUpload");
2888
2888
  I.opts.method = w.method, I.opts.endpoint = w.url + "?" + new URLSearchParams(w.params), I.opts.headers = w.headers, delete w.headers["Content-Type"], x.value = !0, v.value.forEach((R) => {
2889
2889
  R.status !== n.DONE && (R.percent = null, R.status = n.UPLOADING, R.statusName = s("Pending upload"));
2890
2890
  });
2891
- }), y.on("upload-progress", (w, I) => {
2891
+ }), b.on("upload-progress", (w, I) => {
2892
2892
  const R = Math.floor(I.bytesUploaded / I.bytesTotal * 100);
2893
2893
  v.value[A(w.id)].percent = `${R}%`;
2894
- }), y.on("upload-success", (w) => {
2894
+ }), b.on("upload-success", (w) => {
2895
2895
  const I = v.value[A(w.id)];
2896
2896
  I.status = n.DONE, I.statusName = s("Done");
2897
- }), y.on("upload-error", (w, I) => {
2897
+ }), b.on("upload-error", (w, I) => {
2898
2898
  const R = v.value[A(w.id)];
2899
2899
  R.percent = null, R.status = n.ERROR, I.isNetworkError ? R.statusName = s("Network Error, Unable establish connection to the server or interrupted.") : R.statusName = I ? I.message : s("Unknown Error");
2900
- }), y.on("error", (w) => {
2901
- p.value = w.message, x.value = !1, e.emitter.emit("vf-fetch", {
2900
+ }), b.on("error", (w) => {
2901
+ h.value = w.message, x.value = !1, e.emitter.emit("vf-fetch", {
2902
2902
  params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname },
2903
2903
  noCloseModal: !0
2904
2904
  });
2905
- }), y.on("complete", () => {
2905
+ }), b.on("complete", () => {
2906
2906
  x.value = !1, e.emitter.emit("vf-fetch", {
2907
2907
  params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname },
2908
2908
  noCloseModal: !0
2909
2909
  });
2910
2910
  }), u.value.addEventListener("click", () => {
2911
2911
  d.value.click();
2912
- }), h.value.addEventListener("click", () => {
2912
+ }), p.value.addEventListener("click", () => {
2913
2913
  l.value.click();
2914
2914
  }), m.value.addEventListener("dragover", (w) => {
2915
- w.preventDefault(), b.value = !0;
2915
+ w.preventDefault(), y.value = !0;
2916
2916
  }), m.value.addEventListener("dragleave", (w) => {
2917
- w.preventDefault(), b.value = !1;
2917
+ w.preventDefault(), y.value = !1;
2918
2918
  });
2919
2919
  function H(w, I) {
2920
2920
  I.isFile && I.file((R) => w(I, R)), I.isDirectory && I.createReader().readEntries((R) => {
@@ -2924,12 +2924,12 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2924
2924
  });
2925
2925
  }
2926
2926
  m.value.addEventListener("drop", (w) => {
2927
- w.preventDefault(), b.value = !1;
2927
+ w.preventDefault(), y.value = !1;
2928
2928
  const I = /^[/\\](.+)/;
2929
2929
  [...w.dataTransfer.items].forEach((R) => {
2930
- R.kind === "file" && H((ne, de) => {
2930
+ R.kind === "file" && H((ne, ue) => {
2931
2931
  const le = I.exec(ne.fullPath);
2932
- k(de, le[1]);
2932
+ k(ue, le[1]);
2933
2933
  }, R.webkitGetAsEntry());
2934
2934
  });
2935
2935
  });
@@ -2941,12 +2941,12 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2941
2941
  };
2942
2942
  d.value.addEventListener("change", $), l.value.addEventListener("change", $);
2943
2943
  }), In(() => {
2944
- y == null || y.close({ reason: "unmount" });
2944
+ b == null || b.close({ reason: "unmount" });
2945
2945
  }), (H, $) => (f(), W(We, null, {
2946
2946
  buttons: se(() => [
2947
2947
  o("button", {
2948
2948
  type: "button",
2949
- class: me(["vf-btn vf-btn-primary", x.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]),
2949
+ class: de(["vf-btn vf-btn-primary", x.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]),
2950
2950
  disabled: x.value,
2951
2951
  onClick: rt(L, ["prevent"])
2952
2952
  }, _(a(s)("Upload")), 11, ec),
@@ -2974,7 +2974,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2974
2974
  class: "flex items-center justify-center text-lg mb-4 text-gray-500 border-2 border-gray-300 rounded border-dashed select-none cursor-pointer dark:border-gray-600 h-[120px]",
2975
2975
  onClick: D
2976
2976
  }, [
2977
- b.value ? (f(), g("div", Ii, _(a(s)("Release to drop these files.")), 1)) : (f(), g("div", Ni, _(a(s)("Drag and drop the files/folders to here or click here.")), 1))
2977
+ y.value ? (f(), g("div", Ii, _(a(s)("Release to drop these files.")), 1)) : (f(), g("div", Ni, _(a(s)("Drag and drop the files/folders to here or click here.")), 1))
2978
2978
  ], 512),
2979
2979
  o("div", {
2980
2980
  ref_key: "container",
@@ -2989,7 +2989,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
2989
2989
  }, _(a(s)("Select Files")), 513),
2990
2990
  o("button", {
2991
2991
  ref_key: "pickFolders",
2992
- ref: h,
2992
+ ref: p,
2993
2993
  type: "button",
2994
2994
  class: "vf-btn vf-btn-secondary"
2995
2995
  }, _(a(s)("Select Folders")), 513),
@@ -3006,47 +3006,47 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3006
3006
  onClick: $[1] || ($[1] = (w) => O(!0))
3007
3007
  }, _(a(s)("Clear only successful")), 9, zi)
3008
3008
  ], 512),
3009
- o("div", Pi, [
3009
+ o("div", ji, [
3010
3010
  (f(!0), g(he, null, $e(v.value, (w) => (f(), g("div", {
3011
3011
  class: "flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",
3012
3012
  key: w.id
3013
3013
  }, [
3014
- o("span", ji, [
3014
+ o("span", Pi, [
3015
3015
  o("span", {
3016
- class: me(["text-base m-auto", U(w)]),
3016
+ class: de(["text-base m-auto", U(w)]),
3017
3017
  textContent: _(B(w))
3018
3018
  }, null, 10, qi)
3019
3019
  ]),
3020
3020
  o("div", Gi, [
3021
- o("div", Ki, _(a(Ps)(w.name, 40)) + " (" + _(w.size) + ")", 1),
3022
- o("div", Wi, _(a(Ps)(w.name, 16)) + " (" + _(w.size) + ")", 1),
3021
+ o("div", Ki, _(a(js)(w.name, 40)) + " (" + _(w.size) + ")", 1),
3022
+ o("div", Wi, _(a(js)(w.name, 16)) + " (" + _(w.size) + ")", 1),
3023
3023
  o("div", {
3024
- class: me(["flex break-all text-left", U(w)])
3024
+ class: de(["flex break-all text-left", U(w)])
3025
3025
  }, [
3026
3026
  Q(_(w.statusName) + " ", 1),
3027
- w.status === c.value.QUEUE_ENTRY_STATUS.UPLOADING ? (f(), g("b", Yi, _(w.percent), 1)) : P("", !0)
3027
+ w.status === c.value.QUEUE_ENTRY_STATUS.UPLOADING ? (f(), g("b", Yi, _(w.percent), 1)) : j("", !0)
3028
3028
  ], 2)
3029
3029
  ]),
3030
3030
  o("button", {
3031
3031
  type: "button",
3032
- class: me(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600", x.value ? "disabled:bg-gray-100 text-white text-opacity-50" : "bg-gray-100"]),
3032
+ class: de(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600", x.value ? "disabled:bg-gray-100 text-white text-opacity-50" : "bg-gray-100"]),
3033
3033
  title: a(s)("Delete"),
3034
3034
  disabled: x.value,
3035
3035
  onClick: (I) => T(w)
3036
3036
  }, Qi, 10, Xi)
3037
3037
  ]))), 128)),
3038
- v.value.length ? P("", !0) : (f(), g("div", Zi, _(a(s)("No files selected!")), 1))
3038
+ v.value.length ? j("", !0) : (f(), g("div", Zi, _(a(s)("No files selected!")), 1))
3039
3039
  ]),
3040
- p.value.length ? (f(), W(Ye, {
3040
+ h.value.length ? (f(), W(Ye, {
3041
3041
  key: 0,
3042
- onHidden: $[2] || ($[2] = (w) => p.value = ""),
3042
+ onHidden: $[2] || ($[2] = (w) => h.value = ""),
3043
3043
  error: ""
3044
3044
  }, {
3045
3045
  default: se(() => [
3046
- Q(_(p.value), 1)
3046
+ Q(_(h.value), 1)
3047
3047
  ]),
3048
3048
  _: 1
3049
- })) : P("", !0)
3049
+ })) : j("", !0)
3050
3050
  ])
3051
3051
  ])
3052
3052
  ]),
@@ -3170,7 +3170,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3170
3170
  Q(_(n.value), 1)
3171
3171
  ]),
3172
3172
  _: 1
3173
- })) : P("", !0)
3173
+ })) : j("", !0)
3174
3174
  ])
3175
3175
  ])
3176
3176
  ])
@@ -3196,7 +3196,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3196
3196
  ], -1), _c = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, xc = {
3197
3197
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3198
3198
  id: "modal-title"
3199
- }, yc = { class: "mt-2" }, bc = {
3199
+ }, bc = { class: "mt-2" }, yc = {
3200
3200
  class: "text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar",
3201
3201
  style: { "max-height": "200px" }
3202
3202
  }, wc = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, kc = {
@@ -3268,8 +3268,8 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3268
3268
  gc,
3269
3269
  o("div", _c, [
3270
3270
  o("h3", xc, _(a(s)("Archive the files")), 1),
3271
- o("div", yc, [
3272
- o("div", bc, [
3271
+ o("div", bc, [
3272
+ o("div", yc, [
3273
3273
  (f(!0), g(he, null, $e(c.value, (u) => (f(), g("p", wc, [
3274
3274
  u.type === "dir" ? (f(), g("svg", kc, Sc)) : (f(), g("svg", Cc, Tc)),
3275
3275
  o("span", Mc, _(u.basename), 1)
@@ -3293,7 +3293,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
3293
3293
  Q(_(n.value), 1)
3294
3294
  ]),
3295
3295
  _: 1
3296
- })) : P("", !0)
3296
+ })) : j("", !0)
3297
3297
  ])
3298
3298
  ])
3299
3299
  ])
@@ -3331,13 +3331,13 @@ const Nc = { render: Ic }, Uc = {
3331
3331
  "stroke-width": "1.5",
3332
3332
  class: "h-6 w-6 md:h-8 md:w-8 m-auto",
3333
3333
  viewBox: "0 0 24 24"
3334
- }, zc = /* @__PURE__ */ o("path", { d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" }, null, -1), Pc = [
3334
+ }, zc = /* @__PURE__ */ o("path", { d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" }, null, -1), jc = [
3335
3335
  zc
3336
3336
  ];
3337
- function jc(t, e) {
3338
- return f(), g("svg", Uc, [...Pc]);
3337
+ function Pc(t, e) {
3338
+ return f(), g("svg", Uc, [...jc]);
3339
3339
  }
3340
- const qc = { render: jc }, Gc = {
3340
+ const qc = { render: Pc }, Gc = {
3341
3341
  xmlns: "http://www.w3.org/2000/svg",
3342
3342
  fill: "none",
3343
3343
  "stroke-width": "1.5",
@@ -3417,10 +3417,10 @@ const ln = { render: vd }, gd = {
3417
3417
  }, _d = /* @__PURE__ */ o("path", { d: "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15" }, null, -1), xd = [
3418
3418
  _d
3419
3419
  ];
3420
- function yd(t, e) {
3420
+ function bd(t, e) {
3421
3421
  return f(), g("svg", gd, [...xd]);
3422
3422
  }
3423
- const bd = { render: yd }, wd = {
3423
+ const yd = { render: bd }, wd = {
3424
3424
  xmlns: "http://www.w3.org/2000/svg",
3425
3425
  fill: "none",
3426
3426
  "stroke-width": "1.5",
@@ -3459,7 +3459,7 @@ function Hd(t, e) {
3459
3459
  const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-between items-center py-1 text-sm grow-0" }, Fd = {
3460
3460
  key: 0,
3461
3461
  class: "flex text-center"
3462
- }, Id = ["title"], Nd = ["title"], Ud = ["title"], zd = ["title"], Pd = ["title"], jd = ["title"], qd = ["title"], Gd = {
3462
+ }, Id = ["title"], Nd = ["title"], Ud = ["title"], zd = ["title"], jd = ["title"], Pd = ["title"], qd = ["title"], Gd = {
3463
3463
  key: 1,
3464
3464
  class: "flex text-center"
3465
3465
  }, Kd = { class: "pl-2" }, Wd = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, Yd = { class: "flex text-center items-center justify-end" }, Xd = ["title"], Jd = ["title"], Qd = {
@@ -3472,7 +3472,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3472
3472
  const i = () => {
3473
3473
  e.fullScreen = !e.fullScreen;
3474
3474
  };
3475
- ze(() => e.fullScreen, () => {
3475
+ Ne(() => e.fullScreen, () => {
3476
3476
  e.fullScreen ? document.querySelector("body").style.overflow = "hidden" : document.querySelector("body").style.overflow = "", s("full-screen", e.fullScreen), e.emitter.emit("vf-fullscreen-toggle");
3477
3477
  });
3478
3478
  const d = () => {
@@ -3484,72 +3484,72 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3484
3484
  Q(_(a(r)("Search results for")) + " ", 1),
3485
3485
  o("span", Wd, _(c.value), 1)
3486
3486
  ]),
3487
- a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) : P("", !0)
3487
+ a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) : j("", !0)
3488
3488
  ])) : (f(), g("div", Fd, [
3489
3489
  a(e).features.includes(a(pe).NEW_FOLDER) ? (f(), g("div", {
3490
3490
  key: 0,
3491
3491
  class: "mx-1.5",
3492
3492
  title: a(r)("New Folder"),
3493
- onClick: u[0] || (u[0] = (h) => a(e).modal.open(Do, { items: a(n).getSelected() }))
3493
+ onClick: u[0] || (u[0] = (p) => a(e).modal.open(Do, { items: a(n).getSelected() }))
3494
3494
  }, [
3495
3495
  Y(a(Hc))
3496
- ], 8, Id)) : P("", !0),
3496
+ ], 8, Id)) : j("", !0),
3497
3497
  a(e).features.includes(a(pe).NEW_FILE) ? (f(), g("div", {
3498
3498
  key: 1,
3499
3499
  class: "mx-1.5",
3500
3500
  title: a(r)("New File"),
3501
- onClick: u[1] || (u[1] = (h) => a(e).modal.open(Vi, { items: a(n).getSelected() }))
3501
+ onClick: u[1] || (u[1] = (p) => a(e).modal.open(Vi, { items: a(n).getSelected() }))
3502
3502
  }, [
3503
3503
  Y(a(Nc))
3504
- ], 8, Nd)) : P("", !0),
3504
+ ], 8, Nd)) : j("", !0),
3505
3505
  a(e).features.includes(a(pe).RENAME) ? (f(), g("div", {
3506
3506
  key: 2,
3507
3507
  class: "mx-1.5",
3508
3508
  title: a(r)("Rename"),
3509
- onClick: u[2] || (u[2] = (h) => a(n).getCount() !== 1 || a(e).modal.open(an, { items: a(n).getSelected() }))
3509
+ onClick: u[2] || (u[2] = (p) => a(n).getCount() !== 1 || a(e).modal.open(an, { items: a(n).getSelected() }))
3510
3510
  }, [
3511
3511
  Y(a(qc), {
3512
- class: me(a(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3512
+ class: de(a(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3513
3513
  }, null, 8, ["class"])
3514
- ], 8, Ud)) : P("", !0),
3514
+ ], 8, Ud)) : j("", !0),
3515
3515
  a(e).features.includes(a(pe).DELETE) ? (f(), g("div", {
3516
3516
  key: 3,
3517
3517
  class: "mx-1.5",
3518
3518
  title: a(r)("Delete"),
3519
- onClick: u[3] || (u[3] = (h) => !a(n).getCount() || a(e).modal.open(rn, { items: a(n).getSelected() }))
3519
+ onClick: u[3] || (u[3] = (p) => !a(n).getCount() || a(e).modal.open(rn, { items: a(n).getSelected() }))
3520
3520
  }, [
3521
3521
  Y(a(Xc), {
3522
- class: me(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3522
+ class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3523
3523
  }, null, 8, ["class"])
3524
- ], 8, zd)) : P("", !0),
3524
+ ], 8, zd)) : j("", !0),
3525
3525
  a(e).features.includes(a(pe).UPLOAD) ? (f(), g("div", {
3526
3526
  key: 4,
3527
3527
  class: "mx-1.5",
3528
3528
  title: a(r)("Upload"),
3529
- onClick: u[4] || (u[4] = (h) => a(e).modal.open(tc, { items: a(n).getSelected() }))
3529
+ onClick: u[4] || (u[4] = (p) => a(e).modal.open(tc, { items: a(n).getSelected() }))
3530
3530
  }, [
3531
3531
  Y(a(td))
3532
- ], 8, Pd)) : P("", !0),
3532
+ ], 8, jd)) : j("", !0),
3533
3533
  a(e).features.includes(a(pe).UNARCHIVE) && a(n).getCount() === 1 && a(n).getSelected()[0].mime_type === "application/zip" ? (f(), g("div", {
3534
3534
  key: 5,
3535
3535
  class: "mx-1.5",
3536
3536
  title: a(r)("Unarchive"),
3537
- onClick: u[5] || (u[5] = (h) => !a(n).getCount() || a(e).modal.open(Lo, { items: a(n).getSelected() }))
3537
+ onClick: u[5] || (u[5] = (p) => !a(n).getCount() || a(e).modal.open(Lo, { items: a(n).getSelected() }))
3538
3538
  }, [
3539
3539
  Y(a(ud), {
3540
- class: me(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3540
+ class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3541
3541
  }, null, 8, ["class"])
3542
- ], 8, jd)) : P("", !0),
3542
+ ], 8, Pd)) : j("", !0),
3543
3543
  a(e).features.includes(a(pe).ARCHIVE) ? (f(), g("div", {
3544
3544
  key: 6,
3545
3545
  class: "mx-1.5",
3546
3546
  title: a(r)("Archive"),
3547
- onClick: u[6] || (u[6] = (h) => !a(n).getCount() || a(e).modal.open(Vo, { items: a(n).getSelected() }))
3547
+ onClick: u[6] || (u[6] = (p) => !a(n).getCount() || a(e).modal.open(Vo, { items: a(n).getSelected() }))
3548
3548
  }, [
3549
3549
  Y(a(ad), {
3550
- class: me(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3550
+ class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
3551
3551
  }, null, 8, ["class"])
3552
- ], 8, qd)) : P("", !0)
3552
+ ], 8, qd)) : j("", !0)
3553
3553
  ])),
3554
3554
  o("div", Yd, [
3555
3555
  a(e).features.includes(a(pe).FULL_SCREEN) ? (f(), g("div", {
@@ -3558,21 +3558,21 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3558
3558
  class: "mx-1.5",
3559
3559
  title: a(r)("Toggle Full Screen")
3560
3560
  }, [
3561
- a(e).fullScreen ? (f(), W(a(Cd), { key: 0 })) : (f(), W(a(bd), { key: 1 }))
3562
- ], 8, Xd)) : P("", !0),
3561
+ a(e).fullScreen ? (f(), W(a(Cd), { key: 0 })) : (f(), W(a(yd), { key: 1 }))
3562
+ ], 8, Xd)) : j("", !0),
3563
3563
  o("div", {
3564
3564
  class: "mx-1.5",
3565
3565
  title: a(r)("Change View"),
3566
- onClick: u[7] || (u[7] = (h) => c.value.length || d())
3566
+ onClick: u[7] || (u[7] = (p) => c.value.length || d())
3567
3567
  }, [
3568
3568
  a(e).view === "grid" ? (f(), W(a(Dd), {
3569
3569
  key: 0,
3570
- class: me(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
3571
- }, null, 8, ["class"])) : P("", !0),
3570
+ class: de(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
3571
+ }, null, 8, ["class"])) : j("", !0),
3572
3572
  a(e).view === "list" ? (f(), W(a(Bd), {
3573
3573
  key: 1,
3574
- class: me(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
3575
- }, null, 8, ["class"])) : P("", !0)
3574
+ class: de(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
3575
+ }, null, 8, ["class"])) : j("", !0)
3576
3576
  ], 8, Jd)
3577
3577
  ])
3578
3578
  ]));
@@ -3658,7 +3658,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3658
3658
  "stroke-linejoin": "round",
3659
3659
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
3660
3660
  })
3661
- ], -1), gu = { class: "ml-1.5 overflow-auto" }, _u = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, js = {
3661
+ ], -1), gu = { class: "ml-1.5 overflow-auto" }, _u = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, Ps = {
3662
3662
  __name: "ModalMove",
3663
3663
  setup(t) {
3664
3664
  const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(e.modal.data.items.from), n = E(""), c = () => {
@@ -3723,7 +3723,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3723
3723
  Q(_(n.value), 1)
3724
3724
  ]),
3725
3725
  _: 1
3726
- })) : P("", !0)
3726
+ })) : j("", !0)
3727
3727
  ])
3728
3728
  ])
3729
3729
  ]),
@@ -3735,11 +3735,11 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
3735
3735
  fill: "currentColor",
3736
3736
  class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer",
3737
3737
  viewBox: "-40 -40 580 580"
3738
- }, yu = /* @__PURE__ */ o("path", { d: "M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 224 344 224z" }, null, -1), bu = [
3739
- yu
3738
+ }, bu = /* @__PURE__ */ o("path", { d: "M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 224 344 224z" }, null, -1), yu = [
3739
+ bu
3740
3740
  ];
3741
3741
  function wu(t, e) {
3742
- return f(), g("svg", xu, [...bu]);
3742
+ return f(), g("svg", xu, [...yu]);
3743
3743
  }
3744
3744
  const ku = { render: wu }, $u = {
3745
3745
  xmlns: "http://www.w3.org/2000/svg",
@@ -3799,7 +3799,7 @@ const Fu = { render: Ru }, Iu = {
3799
3799
  function zu(t, e) {
3800
3800
  return f(), g("svg", Iu, [...Uu]);
3801
3801
  }
3802
- const Pu = { render: zu }, ju = {
3802
+ const ju = { render: zu }, Pu = {
3803
3803
  xmlns: "http://www.w3.org/2000/svg",
3804
3804
  fill: "none",
3805
3805
  stroke: "currentColor",
@@ -3814,7 +3814,7 @@ const Pu = { render: zu }, ju = {
3814
3814
  qu
3815
3815
  ];
3816
3816
  function Ku(t, e) {
3817
- return f(), g("svg", ju, [...Gu]);
3817
+ return f(), g("svg", Pu, [...Gu]);
3818
3818
  }
3819
3819
  const Wu = { render: Ku }, Yu = {
3820
3820
  xmlns: "http://www.w3.org/2000/svg",
@@ -3864,11 +3864,11 @@ function i0(t, e) {
3864
3864
  const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-sm grow-0" }, u0 = ["title"], m0 = ["title"], f0 = ["title"], h0 = ["title"], p0 = { class: "flex leading-6" }, v0 = {
3865
3865
  key: 0,
3866
3866
  class: "flex"
3867
- }, g0 = /* @__PURE__ */ o("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), _0 = { class: "relative" }, x0 = /* @__PURE__ */ o("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), y0 = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], b0 = { class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" }, w0 = ["placeholder"], k0 = { class: "z-30 absolute top-[65px] md:top-[75px] left-[90px] rounded -mx-1.5 mt-1 bg-neutral-50 dark:bg-gray-800 max-w-80 max-h-50 shadow overflow-y-auto text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600" }, $0 = ["onDrop", "onClick"], S0 = { class: "flex pointer-events-none" }, C0 = { class: "inline-block w-full text-ellipsis overflow-hidden" }, E0 = {
3867
+ }, g0 = /* @__PURE__ */ o("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), _0 = { class: "relative" }, x0 = /* @__PURE__ */ o("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), b0 = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], y0 = { class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" }, w0 = ["placeholder"], k0 = { class: "z-30 absolute top-[65px] md:top-[75px] left-[90px] rounded -mx-1.5 mt-1 bg-neutral-50 dark:bg-gray-800 max-w-80 max-h-50 shadow overflow-y-auto text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600" }, $0 = ["onDrop", "onClick"], S0 = { class: "flex pointer-events-none" }, C0 = { class: "inline-block w-full text-ellipsis overflow-hidden" }, E0 = {
3868
3868
  __name: "Breadcrumb",
3869
3869
  setup(t) {
3870
3870
  const e = ae("ServiceContainer"), { t: s } = e.i18n, r = e.dragSelect, { setStore: n } = e.storage, c = E(null), i = Hn(0, 100);
3871
- ze(i, (V) => {
3871
+ Ne(i, (V) => {
3872
3872
  const T = c.value.children;
3873
3873
  let O = 0, M = 0, S = 5, H = 1;
3874
3874
  e.fs.limitBreadcrumbItems(S), ft(() => {
@@ -3890,7 +3890,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3890
3890
  alert("Moving items between different storages is not supported yet.");
3891
3891
  return;
3892
3892
  }
3893
- e.modal.open(js, {
3893
+ e.modal.open(Ps, {
3894
3894
  items: {
3895
3895
  from: O,
3896
3896
  to: e.fs.hiddenBreadcrumbs[T] ?? { path: e.fs.adapter + "://" }
@@ -3903,19 +3903,19 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3903
3903
  alert("Moving items between different storages is not supported yet.");
3904
3904
  return;
3905
3905
  }
3906
- e.modal.open(js, {
3906
+ e.modal.open(Ps, {
3907
3907
  items: {
3908
3908
  from: O,
3909
3909
  to: e.fs.breadcrumbs[T] ?? { path: e.fs.adapter + "://" }
3910
3910
  }
3911
3911
  });
3912
- }, h = (V) => {
3912
+ }, p = (V) => {
3913
3913
  V.preventDefault(), e.fs.isGoUpAvailable() ? (V.dataTransfer.dropEffect = "copy", V.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-600")) : (V.dataTransfer.dropEffect = "none", V.dataTransfer.effectAllowed = "none");
3914
3914
  }, m = (V) => {
3915
3915
  V.preventDefault(), V.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600"), e.fs.isGoUpAvailable() && V.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600");
3916
3916
  }, v = () => {
3917
3917
  D(), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
3918
- }, p = () => {
3918
+ }, h = () => {
3919
3919
  D(), !e.fs.isGoUpAvailable() || e.emitter.emit("vf-fetch", {
3920
3920
  params: {
3921
3921
  q: "index",
@@ -3925,9 +3925,9 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3925
3925
  });
3926
3926
  }, x = (V) => {
3927
3927
  e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: V.path } }), e.fs.toggleHiddenBreadcrumbs(!1);
3928
- }, b = () => {
3928
+ }, y = () => {
3929
3929
  e.fs.showHiddenBreadcrumbs && e.fs.toggleHiddenBreadcrumbs(!1);
3930
- }, y = {
3930
+ }, b = {
3931
3931
  mounted(V, T, O, M) {
3932
3932
  V.clickOutsideEvent = function(S) {
3933
3933
  V === S.target || V.contains(S.target) || T.value();
@@ -3939,15 +3939,15 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3939
3939
  }, A = () => {
3940
3940
  e.showTreeView = !e.showTreeView;
3941
3941
  };
3942
- ze(() => e.showTreeView, (V, T) => {
3942
+ Ne(() => e.showTreeView, (V, T) => {
3943
3943
  V !== T && n("show-tree-view", V);
3944
3944
  });
3945
3945
  const k = E(null), U = () => {
3946
3946
  e.features.includes(pe.SEARCH) && (e.fs.searchMode = !0, ft(() => k.value.focus()));
3947
3947
  }, B = Hn("", 400);
3948
- ze(B, (V) => {
3948
+ Ne(B, (V) => {
3949
3949
  e.emitter.emit("vf-toast-clear"), e.emitter.emit("vf-search-query", { newQuery: V });
3950
- }), ze(() => e.fs.searchMode, (V) => {
3950
+ }), Ne(() => e.fs.searchMode, (V) => {
3951
3951
  V && ft(() => k.value.focus());
3952
3952
  });
3953
3953
  const D = () => {
@@ -3965,18 +3965,18 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3965
3965
  }, [
3966
3966
  Y(a(o0), {
3967
3967
  onClick: A,
3968
- class: me(["h-6 w-6 p-0.5 rounded cursor-pointer text-slate-700", a(e).showTreeView ? "bg-gray-300 dark:bg-gray-700" : ""])
3968
+ class: de(["h-6 w-6 p-0.5 rounded cursor-pointer text-slate-700", a(e).showTreeView ? "bg-gray-300 dark:bg-gray-700" : ""])
3969
3969
  }, null, 8, ["class"])
3970
3970
  ], 8, u0),
3971
3971
  o("span", {
3972
3972
  title: a(s)("Go up a directory")
3973
3973
  }, [
3974
3974
  Y(a(Tu), {
3975
- onDragover: T[0] || (T[0] = (O) => h(O)),
3975
+ onDragover: T[0] || (T[0] = (O) => p(O)),
3976
3976
  onDragleave: T[1] || (T[1] = (O) => m(O)),
3977
3977
  onDrop: T[2] || (T[2] = (O) => u(O)),
3978
- onClick: p,
3979
- class: me(a(e).fs.isGoUpAvailable() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500")
3978
+ onClick: h,
3979
+ class: de(a(e).fs.isGoUpAvailable() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500")
3980
3980
  }, null, 8, ["class"])
3981
3981
  ], 8, m0),
3982
3982
  a(e).fs.loading ? (f(), g("span", {
@@ -3998,7 +3998,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
3998
3998
  }, [
3999
3999
  o("div", null, [
4000
4000
  Y(a(Fu), {
4001
- onDragover: T[4] || (T[4] = (O) => h(O)),
4001
+ onDragover: T[4] || (T[4] = (O) => p(O)),
4002
4002
  onDragleave: T[5] || (T[5] = (O) => m(O)),
4003
4003
  onDrop: T[6] || (T[6] = (O) => u(O, -1)),
4004
4004
  onClick: T[7] || (T[7] = (O) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(e).fs.adapter } }))
@@ -4017,8 +4017,8 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4017
4017
  ], 32)
4018
4018
  ])
4019
4019
  ])), [
4020
- [y, b]
4021
- ]) : P("", !0)
4020
+ [b, y]
4021
+ ]) : j("", !0)
4022
4022
  ]),
4023
4023
  o("div", {
4024
4024
  ref_key: "breadcrumbContainer",
@@ -4029,22 +4029,22 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4029
4029
  (f(!0), g(he, null, $e(a(e).fs.breadcrumbs, (O, M) => (f(), g("div", { key: M }, [
4030
4030
  x0,
4031
4031
  o("span", {
4032
- onDragover: (S) => M === a(e).fs.breadcrumbs.length - 1 || h(S),
4032
+ onDragover: (S) => M === a(e).fs.breadcrumbs.length - 1 || p(S),
4033
4033
  onDragleave: (S) => M === a(e).fs.breadcrumbs.length - 1 || m(S),
4034
4034
  onDrop: (S) => M === a(e).fs.breadcrumbs.length - 1 || u(S, M),
4035
4035
  class: "px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer whitespace-nowrap",
4036
4036
  title: O.basename,
4037
4037
  onClick: (S) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(e).fs.adapter, path: O.path } })
4038
- }, _(O.name), 41, y0)
4038
+ }, _(O.name), 41, b0)
4039
4039
  ]))), 128))
4040
4040
  ], 512),
4041
- a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) : P("", !0)
4041
+ a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) : j("", !0)
4042
4042
  ], 512), [
4043
- [Pe, !a(e).fs.searchMode]
4043
+ [je, !a(e).fs.searchMode]
4044
4044
  ]),
4045
- ve(o("div", b0, [
4045
+ ve(o("div", y0, [
4046
4046
  o("div", null, [
4047
- Y(a(Pu))
4047
+ Y(a(ju))
4048
4048
  ]),
4049
4049
  ve(o("input", {
4050
4050
  ref_key: "searchInput",
@@ -4060,12 +4060,12 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4060
4060
  ]),
4061
4061
  Y(a(Wu), { onClick: D })
4062
4062
  ], 512), [
4063
- [Pe, a(e).fs.searchMode]
4063
+ [je, a(e).fs.searchMode]
4064
4064
  ]),
4065
4065
  ve(o("div", k0, [
4066
4066
  (f(!0), g(he, null, $e(a(e).fs.hiddenBreadcrumbs, (O, M) => (f(), g("div", {
4067
4067
  key: M,
4068
- onDragover: T[11] || (T[11] = (S) => h(S)),
4068
+ onDragover: T[11] || (T[11] = (S) => p(S)),
4069
4069
  onDragleave: T[12] || (T[12] = (S) => m(S)),
4070
4070
  onDrop: (S) => l(S, M),
4071
4071
  onClick: (S) => x(O),
@@ -4080,7 +4080,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4080
4080
  ])
4081
4081
  ], 40, $0))), 128))
4082
4082
  ], 512), [
4083
- [Pe, a(e).fs.showHiddenBreadcrumbs]
4083
+ [je, a(e).fs.showHiddenBreadcrumbs]
4084
4084
  ])
4085
4085
  ]));
4086
4086
  }
@@ -4090,7 +4090,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4090
4090
  const e = ae("ServiceContainer"), { getStore: s } = e.storage, r = E(s("full-screen", !1)), n = E([]), c = (l) => l === "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", i = (l) => {
4091
4091
  n.value.splice(l, 1);
4092
4092
  }, d = (l) => {
4093
- let u = n.value.findIndex((h) => h.id === l);
4093
+ let u = n.value.findIndex((p) => p.id === l);
4094
4094
  u !== -1 && i(u);
4095
4095
  };
4096
4096
  return e.emitter.on("vf-toast-clear", () => {
@@ -4101,7 +4101,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4101
4101
  d(u);
4102
4102
  }, 5e3);
4103
4103
  }), (l, u) => (f(), g("div", {
4104
- class: me([r.value.value ? "fixed" : "absolute", "max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2 z-10"])
4104
+ class: de([r.value.value ? "fixed" : "absolute", "max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2 z-10"])
4105
4105
  }, [
4106
4106
  Y(Xo, {
4107
4107
  name: "vf-toast-item",
@@ -4109,11 +4109,11 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
4109
4109
  "leave-to-class": "opacity-0"
4110
4110
  }, {
4111
4111
  default: se(() => [
4112
- (f(!0), g(he, null, $e(n.value, (h, m) => (f(), g("div", {
4112
+ (f(!0), g(he, null, $e(n.value, (p, m) => (f(), g("div", {
4113
4113
  onClick: (v) => i(m),
4114
- key: h,
4115
- class: me([c(h.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
4116
- }, _(h.label), 11, T0))), 128))
4114
+ key: p,
4115
+ class: de([c(p.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
4116
+ }, _(p.label), 11, T0))), 128))
4117
4117
  ]),
4118
4118
  _: 1
4119
4119
  })
@@ -4154,8 +4154,8 @@ const I0 = { render: F0 }, Kt = {
4154
4154
  props: { direction: String },
4155
4155
  setup(t) {
4156
4156
  return (e, s) => (f(), g("div", null, [
4157
- t.direction === "asc" ? (f(), W(a(O0), { key: 0 })) : P("", !0),
4158
- t.direction === "desc" ? (f(), W(a(I0), { key: 1 })) : P("", !0)
4157
+ t.direction === "asc" ? (f(), W(a(O0), { key: 0 })) : j("", !0),
4158
+ t.direction === "desc" ? (f(), W(a(I0), { key: 1 })) : j("", !0)
4159
4159
  ]));
4160
4160
  }
4161
4161
  }, N0 = {
@@ -4171,10 +4171,10 @@ const I0 = { render: F0 }, Kt = {
4171
4171
  }, null, -1), z0 = [
4172
4172
  U0
4173
4173
  ];
4174
- function P0(t, e) {
4174
+ function j0(t, e) {
4175
4175
  return f(), g("svg", N0, [...z0]);
4176
4176
  }
4177
- const j0 = { render: P0 }, ks = {
4177
+ const P0 = { render: j0 }, ks = {
4178
4178
  __name: "ItemIcon",
4179
4179
  props: {
4180
4180
  type: {
@@ -4190,10 +4190,10 @@ const j0 = { render: P0 }, ks = {
4190
4190
  return (e, s) => (f(), g("span", null, [
4191
4191
  t.type === "dir" ? (f(), W(a(fs), {
4192
4192
  key: 0,
4193
- class: me({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
4194
- }, null, 8, ["class"])) : (f(), W(a(j0), {
4193
+ class: de({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
4194
+ }, null, 8, ["class"])) : (f(), W(a(P0), {
4195
4195
  key: 1,
4196
- class: me({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
4196
+ class: de({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
4197
4197
  }, null, 8, ["class"]))
4198
4198
  ]));
4199
4199
  }
@@ -4235,15 +4235,15 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4235
4235
  __name: "Text",
4236
4236
  emits: ["success"],
4237
4237
  setup(t, { emit: e }) {
4238
- const s = e, r = E(""), n = E(""), c = E(null), i = E(!1), d = E(""), l = E(!1), u = ae("ServiceContainer"), { t: h } = u.i18n;
4238
+ const s = e, r = E(""), n = E(""), c = E(null), i = E(!1), d = E(""), l = E(!1), u = ae("ServiceContainer"), { t: p } = u.i18n;
4239
4239
  Ce(() => {
4240
4240
  u.requester.send({
4241
4241
  url: "",
4242
4242
  method: "get",
4243
4243
  params: { q: "preview", adapter: u.modal.data.adapter, path: u.modal.data.item.path },
4244
4244
  responseType: "text"
4245
- }).then((p) => {
4246
- r.value = p, s("success");
4245
+ }).then((h) => {
4246
+ r.value = h, s("success");
4247
4247
  });
4248
4248
  });
4249
4249
  const m = () => {
@@ -4261,13 +4261,13 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4261
4261
  content: n.value
4262
4262
  },
4263
4263
  responseType: "text"
4264
- }).then((p) => {
4265
- d.value = h("Updated."), r.value = p, s("success"), i.value = !i.value;
4266
- }).catch((p) => {
4267
- d.value = h(p.message), l.value = !0;
4264
+ }).then((h) => {
4265
+ d.value = p("Updated."), r.value = h, s("success"), i.value = !i.value;
4266
+ }).catch((h) => {
4267
+ d.value = p(h.message), l.value = !0;
4268
4268
  });
4269
4269
  };
4270
- return (p, x) => (f(), g(he, null, [
4270
+ return (h, x) => (f(), g(he, null, [
4271
4271
  o("div", Z0, [
4272
4272
  o("div", {
4273
4273
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
@@ -4279,12 +4279,12 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4279
4279
  key: 0,
4280
4280
  onClick: v,
4281
4281
  class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
4282
- }, _(a(h)("Save")), 1)) : P("", !0),
4282
+ }, _(a(p)("Save")), 1)) : j("", !0),
4283
4283
  a(u).features.includes(a(pe).EDIT) ? (f(), g("button", {
4284
4284
  key: 1,
4285
4285
  class: "ml-1 px-2 py-1 text-blue-500",
4286
- onClick: x[0] || (x[0] = (b) => m())
4287
- }, _(i.value ? a(h)("Cancel") : a(h)("Edit")), 1)) : P("", !0)
4286
+ onClick: x[0] || (x[0] = (y) => m())
4287
+ }, _(i.value ? a(p)("Cancel") : a(p)("Edit")), 1)) : j("", !0)
4288
4288
  ])
4289
4289
  ]),
4290
4290
  o("div", null, [
@@ -4292,7 +4292,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4292
4292
  ve(o("textarea", {
4293
4293
  ref_key: "editInput",
4294
4294
  ref: c,
4295
- "onUpdate:modelValue": x[1] || (x[1] = (b) => n.value = b),
4295
+ "onUpdate:modelValue": x[1] || (x[1] = (y) => n.value = y),
4296
4296
  class: "w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] max-h-[60vh]",
4297
4297
  name: "text",
4298
4298
  id: "",
@@ -4304,14 +4304,14 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4304
4304
  ])) : (f(), g("pre", sm, _(r.value), 1)),
4305
4305
  d.value.length ? (f(), W(Ye, {
4306
4306
  key: 2,
4307
- onHidden: x[2] || (x[2] = (b) => d.value = ""),
4307
+ onHidden: x[2] || (x[2] = (y) => d.value = ""),
4308
4308
  error: l.value
4309
4309
  }, {
4310
4310
  default: se(() => [
4311
4311
  Q(_(d.value), 1)
4312
4312
  ]),
4313
4313
  _: 1
4314
- }, 8, ["error"])) : P("", !0)
4314
+ }, 8, ["error"])) : j("", !0)
4315
4315
  ])
4316
4316
  ], 64));
4317
4317
  }
@@ -4319,7 +4319,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4319
4319
  __name: "Image",
4320
4320
  emits: ["success"],
4321
4321
  setup(t, { emit: e }) {
4322
- const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = E(null), i = E(null), d = E(!1), l = E(""), u = E(!1), h = () => {
4322
+ const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = E(null), i = E(null), d = E(!1), l = E(""), u = E(!1), p = () => {
4323
4323
  d.value = !d.value, d.value ? i.value = new lr(c.value, {
4324
4324
  crop(v) {
4325
4325
  }
@@ -4331,8 +4331,8 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4331
4331
  }).toBlob(
4332
4332
  (v) => {
4333
4333
  l.value = "", u.value = !1;
4334
- const p = new FormData();
4335
- p.set("file", v), r.requester.send({
4334
+ const h = new FormData();
4335
+ h.set("file", v), r.requester.send({
4336
4336
  url: "",
4337
4337
  method: "post",
4338
4338
  params: {
@@ -4340,9 +4340,9 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4340
4340
  adapter: r.modal.data.adapter,
4341
4341
  path: r.modal.data.item.path
4342
4342
  },
4343
- body: p
4343
+ body: h
4344
4344
  }).then((x) => {
4345
- l.value = n("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), h(), s("success");
4345
+ l.value = n("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), p(), s("success");
4346
4346
  }).catch((x) => {
4347
4347
  l.value = n(x.message), u.value = !0;
4348
4348
  });
@@ -4351,7 +4351,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4351
4351
  };
4352
4352
  return Ce(() => {
4353
4353
  s("success");
4354
- }), (v, p) => (f(), g(he, null, [
4354
+ }), (v, h) => (f(), g(he, null, [
4355
4355
  o("div", rm, [
4356
4356
  o("h3", {
4357
4357
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
@@ -4363,12 +4363,12 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4363
4363
  key: 0,
4364
4364
  onClick: m,
4365
4365
  class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
4366
- }, _(a(n)("Crop")), 1)) : P("", !0),
4366
+ }, _(a(n)("Crop")), 1)) : j("", !0),
4367
4367
  a(r).features.includes(a(pe).EDIT) ? (f(), g("button", {
4368
4368
  key: 1,
4369
4369
  class: "ml-1 px-2 py-1 text-blue-500",
4370
- onClick: p[0] || (p[0] = (x) => h())
4371
- }, _(d.value ? a(n)("Cancel") : a(n)("Edit")), 1)) : P("", !0)
4370
+ onClick: h[0] || (h[0] = (x) => p())
4371
+ }, _(d.value ? a(n)("Cancel") : a(n)("Edit")), 1)) : j("", !0)
4372
4372
  ])
4373
4373
  ]),
4374
4374
  o("div", im, [
@@ -4382,14 +4382,14 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4382
4382
  ]),
4383
4383
  l.value.length ? (f(), W(Ye, {
4384
4384
  key: 0,
4385
- onHidden: p[1] || (p[1] = (x) => l.value = ""),
4385
+ onHidden: h[1] || (h[1] = (x) => l.value = ""),
4386
4386
  error: u.value
4387
4387
  }, {
4388
4388
  default: se(() => [
4389
4389
  Q(_(l.value), 1)
4390
4390
  ]),
4391
4391
  _: 1
4392
- }, 8, ["error"])) : P("", !0)
4392
+ }, 8, ["error"])) : j("", !0)
4393
4393
  ], 64));
4394
4394
  }
4395
4395
  }, um = { class: "flex" }, mm = ["title"], fm = /* @__PURE__ */ o("div", null, null, -1), hm = {
@@ -4438,10 +4438,10 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4438
4438
  ])
4439
4439
  ]));
4440
4440
  }
4441
- }, xm = ["title"], ym = {
4441
+ }, xm = ["title"], bm = {
4442
4442
  class: "w-full",
4443
4443
  controls: ""
4444
- }, bm = ["src"], wm = {
4444
+ }, ym = ["src"], wm = {
4445
4445
  __name: "Audio",
4446
4446
  emits: ["success"],
4447
4447
  setup(t, { emit: e }) {
@@ -4455,11 +4455,11 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4455
4455
  title: a(r).modal.data.item.path
4456
4456
  }, _(a(r).modal.data.item.basename), 9, xm),
4457
4457
  o("div", null, [
4458
- o("audio", ym, [
4458
+ o("audio", bm, [
4459
4459
  o("source", {
4460
4460
  src: n(),
4461
4461
  type: "audio/mpeg"
4462
- }, null, 8, bm),
4462
+ }, null, 8, ym),
4463
4463
  Q(" Your browser does not support the audio element. ")
4464
4464
  ])
4465
4465
  ])
@@ -4544,7 +4544,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4544
4544
  class: "vf-btn vf-btn-primary",
4545
4545
  download: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item),
4546
4546
  href: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item)
4547
- }, _(a(s)("Download")), 9, Im)) : P("", !0)
4547
+ }, _(a(s)("Download")), 9, Im)) : j("", !0)
4548
4548
  ]),
4549
4549
  default: se(() => [
4550
4550
  o("div", Mm, [
@@ -4569,12 +4569,12 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4569
4569
  key: 5,
4570
4570
  onSuccess: d[5] || (d[5] = (l) => r.value = !0)
4571
4571
  }))
4572
- ])) : P("", !0),
4572
+ ])) : j("", !0),
4573
4573
  o("div", Lm, [
4574
4574
  r.value === !1 ? (f(), g("div", Vm, [
4575
4575
  Om,
4576
4576
  o("span", null, _(a(s)("Loading")), 1)
4577
- ])) : P("", !0)
4577
+ ])) : j("", !0)
4578
4578
  ])
4579
4579
  ])
4580
4580
  ]),
@@ -4590,7 +4590,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4590
4590
  ]),
4591
4591
  a(e).features.includes(a(pe).DOWNLOAD) ? (f(), g("div", Fm, [
4592
4592
  o("span", null, _(a(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
4593
- ])) : P("", !0)
4593
+ ])) : j("", !0)
4594
4594
  ]),
4595
4595
  _: 1
4596
4596
  }));
@@ -4607,14 +4607,14 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
4607
4607
  }, Um = /* @__PURE__ */ o("path", {
4608
4608
  stroke: "none",
4609
4609
  d: "M0 0h24v24H0z"
4610
- }, null, -1), zm = /* @__PURE__ */ o("path", { d: "m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" }, null, -1), Pm = [
4610
+ }, null, -1), zm = /* @__PURE__ */ o("path", { d: "m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" }, null, -1), jm = [
4611
4611
  Um,
4612
4612
  zm
4613
4613
  ];
4614
- function jm(t, e) {
4615
- return f(), g("svg", Nm, [...Pm]);
4614
+ function Pm(t, e) {
4615
+ return f(), g("svg", Nm, [...jm]);
4616
4616
  }
4617
- const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4617
+ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
4618
4618
  __name: "Item",
4619
4619
  props: {
4620
4620
  item: { type: Object },
@@ -4622,38 +4622,38 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4622
4622
  dragImage: { type: Object }
4623
4623
  },
4624
4624
  setup(t) {
4625
- const e = ae("ServiceContainer"), s = e.dragSelect, r = t, n = (p) => {
4626
- p.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: p.path } })) : e.modal.open(Ho, { adapter: e.fs.adapter, item: p });
4625
+ const e = ae("ServiceContainer"), s = e.dragSelect, r = t, n = (h) => {
4626
+ h.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: h.path } })) : e.modal.open(Ho, { adapter: e.fs.adapter, item: h });
4627
4627
  }, c = {
4628
- mounted(p, x, b, y) {
4629
- b.props.draggable && (p.addEventListener("dragstart", (A) => i(A, x.value)), p.addEventListener("dragover", (A) => l(A, x.value)), p.addEventListener("drop", (A) => d(A, x.value)));
4628
+ mounted(h, x, y, b) {
4629
+ y.props.draggable && (h.addEventListener("dragstart", (A) => i(A, x.value)), h.addEventListener("dragover", (A) => l(A, x.value)), h.addEventListener("drop", (A) => d(A, x.value)));
4630
4630
  },
4631
- beforeUnmount(p, x, b, y) {
4632
- b.props.draggable && (p.removeEventListener("dragstart", i), p.removeEventListener("dragover", l), p.removeEventListener("drop", d));
4631
+ beforeUnmount(h, x, y, b) {
4632
+ y.props.draggable && (h.removeEventListener("dragstart", i), h.removeEventListener("dragover", l), h.removeEventListener("drop", d));
4633
4633
  }
4634
- }, i = (p, x) => {
4635
- if (p.altKey || p.ctrlKey || p.metaKey)
4636
- return p.preventDefault(), !1;
4637
- s.isDraggingRef.value = !0, p.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), p.dataTransfer.effectAllowed = "all", p.dataTransfer.dropEffect = "copy", p.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
4638
- }, d = (p, x) => {
4639
- p.preventDefault(), s.isDraggingRef.value = !1;
4640
- let b = JSON.parse(p.dataTransfer.getData("items"));
4641
- if (b.find((y) => y.storage !== e.fs.adapter)) {
4634
+ }, i = (h, x) => {
4635
+ if (h.altKey || h.ctrlKey || h.metaKey)
4636
+ return h.preventDefault(), !1;
4637
+ s.isDraggingRef.value = !0, h.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), h.dataTransfer.effectAllowed = "all", h.dataTransfer.dropEffect = "copy", h.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
4638
+ }, d = (h, x) => {
4639
+ h.preventDefault(), s.isDraggingRef.value = !1;
4640
+ let y = JSON.parse(h.dataTransfer.getData("items"));
4641
+ if (y.find((b) => b.storage !== e.fs.adapter)) {
4642
4642
  alert("Moving items between different storages is not supported yet.");
4643
4643
  return;
4644
4644
  }
4645
- e.modal.open(js, { items: { from: b, to: x } });
4646
- }, l = (p, x) => {
4647
- p.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((b) => b === p.currentTarget) ? (p.dataTransfer.dropEffect = "none", p.dataTransfer.effectAllowed = "none") : p.dataTransfer.dropEffect = "copy";
4645
+ e.modal.open(Ps, { items: { from: y, to: x } });
4646
+ }, l = (h, x) => {
4647
+ h.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((y) => y === h.currentTarget) ? (h.dataTransfer.dropEffect = "none", h.dataTransfer.effectAllowed = "none") : h.dataTransfer.dropEffect = "copy";
4648
4648
  };
4649
- let u = null, h = !1;
4649
+ let u = null, p = !1;
4650
4650
  const m = () => {
4651
4651
  u && clearTimeout(u);
4652
- }, v = (p) => {
4653
- if (!h)
4654
- h = !0, setTimeout(() => h = !1, 300);
4652
+ }, v = (h) => {
4653
+ if (!p)
4654
+ p = !0, setTimeout(() => p = !1, 300);
4655
4655
  else
4656
- return h = !1, n(r.item), clearTimeout(u), !1;
4656
+ return p = !1, n(r.item), clearTimeout(u), !1;
4657
4657
  u = setTimeout(() => {
4658
4658
  const x = new MouseEvent("contextmenu", {
4659
4659
  bubbles: !0,
@@ -4661,29 +4661,29 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4661
4661
  view: window,
4662
4662
  button: 2,
4663
4663
  buttons: 0,
4664
- clientX: p.target.getBoundingClientRect().x,
4665
- clientY: p.target.getBoundingClientRect().y
4664
+ clientX: h.target.getBoundingClientRect().x,
4665
+ clientY: h.target.getBoundingClientRect().y
4666
4666
  });
4667
- p.target.dispatchEvent(x);
4667
+ h.target.dispatchEvent(x);
4668
4668
  }, 500);
4669
4669
  };
4670
- return (p, x) => ve((f(), g("div", {
4671
- style: os({ opacity: a(s).isDraggingRef.value && a(s).getSelection().find((b) => p.$el === b) ? "0.5 !important" : "" }),
4672
- class: me(["vf-item-" + a(s).explorerId, "relative"]),
4670
+ return (h, x) => ve((f(), g("div", {
4671
+ style: os({ opacity: a(s).isDraggingRef.value && a(s).getSelection().find((y) => h.$el === y) ? "0.5 !important" : "" }),
4672
+ class: de(["vf-item-" + a(s).explorerId, "relative"]),
4673
4673
  "data-type": t.item.type,
4674
4674
  key: t.item.path,
4675
4675
  "data-item": JSON.stringify(t.item),
4676
4676
  "data-index": t.index,
4677
- onDblclick: x[0] || (x[0] = (b) => n(t.item)),
4678
- onTouchstart: x[1] || (x[1] = (b) => v(b)),
4679
- onTouchend: x[2] || (x[2] = (b) => m()),
4680
- onContextmenu: x[3] || (x[3] = rt((b) => a(e).emitter.emit("vf-contextmenu-show", { event: b, items: a(s).getSelected(), target: t.item }), ["prevent"]))
4677
+ onDblclick: x[0] || (x[0] = (y) => n(t.item)),
4678
+ onTouchstart: x[1] || (x[1] = (y) => v(y)),
4679
+ onTouchend: x[2] || (x[2] = (y) => m()),
4680
+ onContextmenu: x[3] || (x[3] = rt((y) => a(e).emitter.emit("vf-contextmenu-show", { event: y, items: a(s).getSelected(), target: t.item }), ["prevent"]))
4681
4681
  }, [
4682
- Dt(p.$slots, "default"),
4683
- a(e).pinnedFolders.find((b) => b.path === t.item.path) ? (f(), W(a(Bo), {
4682
+ Dt(h.$slots, "default"),
4683
+ a(e).pinnedFolders.find((y) => y.path === t.item.path) ? (f(), W(a(Bo), {
4684
4684
  key: 0,
4685
4685
  class: "absolute top-0 right-0 text-amber-600"
4686
- })) : P("", !0)
4686
+ })) : j("", !0)
4687
4687
  ], 46, qm)), [
4688
4688
  [c, t.item]
4689
4689
  ]);
@@ -4715,12 +4715,12 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4715
4715
  }) : e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
4716
4716
  });
4717
4717
  const l = Ot({ active: !1, column: "", order: "" }), u = (m = !0) => {
4718
- let v = [...e.fs.data.files], p = l.column, x = l.order === "asc" ? 1 : -1;
4718
+ let v = [...e.fs.data.files], h = l.column, x = l.order === "asc" ? 1 : -1;
4719
4719
  if (!m)
4720
4720
  return v;
4721
- const b = (y, A) => typeof y == "string" && typeof A == "string" ? y.toLowerCase().localeCompare(A.toLowerCase()) : y < A ? -1 : y > A ? 1 : 0;
4722
- return l.active && (v = v.slice().sort((y, A) => b(y[p], A[p]) * x)), v;
4723
- }, h = (m) => {
4721
+ const y = (b, A) => typeof b == "string" && typeof A == "string" ? b.toLowerCase().localeCompare(A.toLowerCase()) : b < A ? -1 : b > A ? 1 : 0;
4722
+ return l.active && (v = v.slice().sort((b, A) => y(b[h], A[h]) * x)), v;
4723
+ }, p = (m) => {
4724
4724
  l.active && l.column === m ? (l.active = l.order === "asc", l.column = m, l.order = "desc") : (l.active = !0, l.column = m, l.order = "asc");
4725
4725
  };
4726
4726
  return Ce(() => {
@@ -4732,53 +4732,53 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4732
4732
  }), (m, v) => (f(), g("div", Gm, [
4733
4733
  a(e).view === "list" || c.value.length ? (f(), g("div", Km, [
4734
4734
  o("div", {
4735
- onClick: v[0] || (v[0] = (p) => h("basename")),
4735
+ onClick: v[0] || (v[0] = (h) => p("basename")),
4736
4736
  class: "col-span-7 vf-sort-button"
4737
4737
  }, [
4738
4738
  Q(_(a(s)("Name")) + " ", 1),
4739
4739
  ve(Y(Kt, {
4740
4740
  direction: l.order
4741
4741
  }, null, 8, ["direction"]), [
4742
- [Pe, l.active && l.column === "basename"]
4742
+ [je, l.active && l.column === "basename"]
4743
4743
  ])
4744
4744
  ]),
4745
- c.value.length ? P("", !0) : (f(), g("div", {
4745
+ c.value.length ? j("", !0) : (f(), g("div", {
4746
4746
  key: 0,
4747
- onClick: v[1] || (v[1] = (p) => h("file_size")),
4747
+ onClick: v[1] || (v[1] = (h) => p("file_size")),
4748
4748
  class: "justify-center col-span-2 vf-sort-button"
4749
4749
  }, [
4750
4750
  Q(_(a(s)("Size")) + " ", 1),
4751
4751
  ve(Y(Kt, {
4752
4752
  direction: l.order
4753
4753
  }, null, 8, ["direction"]), [
4754
- [Pe, l.active && l.column === "file_size"]
4754
+ [je, l.active && l.column === "file_size"]
4755
4755
  ])
4756
4756
  ])),
4757
- c.value.length ? P("", !0) : (f(), g("div", {
4757
+ c.value.length ? j("", !0) : (f(), g("div", {
4758
4758
  key: 1,
4759
- onClick: v[2] || (v[2] = (p) => h("last_modified")),
4759
+ onClick: v[2] || (v[2] = (h) => p("last_modified")),
4760
4760
  class: "justify-center col-span-3 vf-sort-button"
4761
4761
  }, [
4762
4762
  Q(_(a(s)("Date")) + " ", 1),
4763
4763
  ve(Y(Kt, {
4764
4764
  direction: l.order
4765
4765
  }, null, 8, ["direction"]), [
4766
- [Pe, l.active && l.column === "last_modified"]
4766
+ [je, l.active && l.column === "last_modified"]
4767
4767
  ])
4768
4768
  ])),
4769
4769
  c.value.length ? (f(), g("div", {
4770
4770
  key: 2,
4771
- onClick: v[3] || (v[3] = (p) => h("path")),
4771
+ onClick: v[3] || (v[3] = (h) => p("path")),
4772
4772
  class: "justify-center col-span-5 vf-sort-button"
4773
4773
  }, [
4774
4774
  Q(_(a(s)("Filepath")) + " ", 1),
4775
4775
  ve(Y(Kt, {
4776
4776
  direction: l.order
4777
4777
  }, null, 8, ["direction"]), [
4778
- [Pe, l.active && l.column === "path"]
4778
+ [je, l.active && l.column === "path"]
4779
4779
  ])
4780
- ])) : P("", !0)
4781
- ])) : P("", !0),
4780
+ ])) : j("", !0)
4781
+ ])) : j("", !0),
4782
4782
  o("div", Wm, [
4783
4783
  Y(Q0, {
4784
4784
  ref_key: "dragImage",
@@ -4788,7 +4788,7 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4788
4788
  ]),
4789
4789
  o("div", {
4790
4790
  ref: a(i).scrollBarContainer,
4791
- class: me(["vf-explorer-scrollbar-container", [{ "grid-view": a(e).view === "grid" }, { "search-active": c.value.length }]])
4791
+ class: de(["vf-explorer-scrollbar-container", [{ "grid-view": a(e).view === "grid" }, { "search-active": c.value.length }]])
4792
4792
  }, [
4793
4793
  o("div", {
4794
4794
  ref: a(i).scrollBar,
@@ -4798,10 +4798,10 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4798
4798
  o("div", {
4799
4799
  ref: a(i).area,
4800
4800
  class: "h-full w-full text-xs p-1 vf-explorer-scrollbar vf-selector-area min-h-[150px] z-0 overflow-y-auto",
4801
- onContextmenu: v[4] || (v[4] = rt((p) => a(e).emitter.emit("vf-contextmenu-show", { event: p, items: a(i).getSelected() }), ["self", "prevent"]))
4801
+ onContextmenu: v[4] || (v[4] = rt((h) => a(e).emitter.emit("vf-contextmenu-show", { event: h, items: a(i).getSelected() }), ["self", "prevent"]))
4802
4802
  }, [
4803
- c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (p, x) => (f(), W($s, {
4804
- item: p,
4803
+ c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (h, x) => (f(), W($s, {
4804
+ item: h,
4805
4805
  index: x,
4806
4806
  dragImage: n.value,
4807
4807
  class: "vf-item vf-item-list"
@@ -4810,41 +4810,41 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4810
4810
  o("div", Ym, [
4811
4811
  o("div", Xm, [
4812
4812
  Y(ks, {
4813
- type: p.type,
4813
+ type: h.type,
4814
4814
  small: a(e).compactListView
4815
4815
  }, null, 8, ["type", "small"]),
4816
- o("span", Jm, _(p.basename), 1)
4816
+ o("span", Jm, _(h.basename), 1)
4817
4817
  ]),
4818
- o("div", Qm, _(p.path), 1)
4818
+ o("div", Qm, _(h.path), 1)
4819
4819
  ])
4820
4820
  ]),
4821
4821
  _: 2
4822
- }, 1032, ["item", "index", "dragImage"]))), 256)) : P("", !0),
4823
- a(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (p, x) => (f(), W($s, {
4824
- item: p,
4822
+ }, 1032, ["item", "index", "dragImage"]))), 256)) : j("", !0),
4823
+ a(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (h, x) => (f(), W($s, {
4824
+ item: h,
4825
4825
  index: x,
4826
4826
  dragImage: n.value,
4827
4827
  class: "vf-item vf-item-list",
4828
4828
  draggable: "true",
4829
- key: p.path
4829
+ key: h.path
4830
4830
  }, {
4831
4831
  default: se(() => [
4832
4832
  o("div", Zm, [
4833
4833
  o("div", e1, [
4834
4834
  Y(ks, {
4835
- type: p.type,
4835
+ type: h.type,
4836
4836
  small: a(e).compactListView
4837
4837
  }, null, 8, ["type", "small"]),
4838
- o("span", t1, _(p.basename), 1)
4838
+ o("span", t1, _(h.basename), 1)
4839
4839
  ]),
4840
- o("div", s1, _(p.file_size ? a(e).filesize(p.file_size) : ""), 1),
4841
- o("div", n1, _(a(Oo)(p.last_modified)), 1)
4840
+ o("div", s1, _(h.file_size ? a(e).filesize(h.file_size) : ""), 1),
4841
+ o("div", n1, _(a(Oo)(h.last_modified)), 1)
4842
4842
  ])
4843
4843
  ]),
4844
4844
  _: 2
4845
- }, 1032, ["item", "index", "dragImage"]))), 128)) : P("", !0),
4846
- a(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (p, x) => (f(), W($s, {
4847
- item: p,
4845
+ }, 1032, ["item", "index", "dragImage"]))), 128)) : j("", !0),
4846
+ a(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (h, x) => (f(), W($s, {
4847
+ item: h,
4848
4848
  index: x,
4849
4849
  dragImage: n.value,
4850
4850
  class: "vf-item vf-item-grid",
@@ -4853,23 +4853,23 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4853
4853
  default: se(() => [
4854
4854
  o("div", null, [
4855
4855
  o("div", o1, [
4856
- (p.mime_type ?? "").startsWith("image") && a(e).showThumbnails ? (f(), g("img", {
4856
+ (h.mime_type ?? "").startsWith("image") && a(e).showThumbnails ? (f(), g("img", {
4857
4857
  src: "data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
4858
4858
  class: "lazy h-10 md:h-12 m-auto",
4859
- "data-src": a(e).requester.getPreviewUrl(a(e).fs.adapter, p),
4860
- alt: p.basename,
4861
- key: p.path
4859
+ "data-src": a(e).requester.getPreviewUrl(a(e).fs.adapter, h),
4860
+ alt: h.basename,
4861
+ key: h.path
4862
4862
  }, null, 8, r1)) : (f(), W(ks, {
4863
4863
  key: 1,
4864
- type: p.type
4864
+ type: h.type
4865
4865
  }, null, 8, ["type"])),
4866
- !((p.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && p.type !== "dir" ? (f(), g("div", a1, _(r(p.extension)), 1)) : P("", !0)
4866
+ !((h.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && h.type !== "dir" ? (f(), g("div", a1, _(r(h.extension)), 1)) : j("", !0)
4867
4867
  ]),
4868
- o("span", l1, _(a(Ps)(p.basename)), 1)
4868
+ o("span", l1, _(a(js)(h.basename)), 1)
4869
4869
  ])
4870
4870
  ]),
4871
4871
  _: 2
4872
- }, 1032, ["item", "index", "dragImage"]))), 256)) : P("", !0)
4872
+ }, 1032, ["item", "index", "dragImage"]))), 256)) : j("", !0)
4873
4873
  ], 544),
4874
4874
  Y(M0)
4875
4875
  ]));
@@ -4979,27 +4979,27 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
4979
4979
  };
4980
4980
  e.emitter.on("vf-search-query", ({ newQuery: m }) => {
4981
4981
  c.value = m;
4982
- }), e.emitter.on("vf-contextmenu-show", ({ event: m, items: v, target: p = null }) => {
4982
+ }), e.emitter.on("vf-contextmenu-show", ({ event: m, items: v, target: h = null }) => {
4983
4983
  if (i.items = [], c.value)
4984
- if (p)
4985
- i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [p]);
4984
+ if (h)
4985
+ i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [h]);
4986
4986
  else
4987
4987
  return;
4988
- else !p && !c.value ? (i.items.push(l.refresh), i.items.push(l.selectAll), i.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : v.length > 1 && v.some((x) => x.path === p.path) ? (i.items.push(l.refresh), i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", v)) : (p.type === "dir" ? (i.items.push(l.open), e.pinnedFolders.findIndex((x) => x.path === p.path) !== -1 ? i.items.push(l.unpinFolder) : i.items.push(l.pinFolder)) : (i.items.push(l.preview), i.items.push(l.download)), i.items.push(l.rename), p.mime_type === "application/zip" ? i.items.push(l.unarchive) : i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", [p]));
4989
- h(m);
4988
+ else !h && !c.value ? (i.items.push(l.refresh), i.items.push(l.selectAll), i.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : v.length > 1 && v.some((x) => x.path === h.path) ? (i.items.push(l.refresh), i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", v)) : (h.type === "dir" ? (i.items.push(l.open), e.pinnedFolders.findIndex((x) => x.path === h.path) !== -1 ? i.items.push(l.unpinFolder) : i.items.push(l.pinFolder)) : (i.items.push(l.preview), i.items.push(l.download)), i.items.push(l.rename), h.mime_type === "application/zip" ? i.items.push(l.unarchive) : i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", [h]));
4989
+ p(m);
4990
4990
  }), e.emitter.on("vf-contextmenu-hide", () => {
4991
4991
  i.active = !1;
4992
4992
  });
4993
- const h = (m) => {
4994
- const v = e.dragSelect.area.value, p = e.root.getBoundingClientRect(), x = v.getBoundingClientRect();
4995
- let b = m.clientX - p.left, y = m.clientY - p.top;
4993
+ const p = (m) => {
4994
+ const v = e.dragSelect.area.value, h = e.root.getBoundingClientRect(), x = v.getBoundingClientRect();
4995
+ let y = m.clientX - h.left, b = m.clientY - h.top;
4996
4996
  i.active = !0, ft(() => {
4997
4997
  var B;
4998
4998
  const A = (B = r.value) == null ? void 0 : B.getBoundingClientRect();
4999
4999
  let k = (A == null ? void 0 : A.height) ?? 0, U = (A == null ? void 0 : A.width) ?? 0;
5000
- b = x.right - m.pageX + window.scrollX < U ? b - U : b, y = x.bottom - m.pageY + window.scrollY < k ? y - k : y, i.positions = {
5001
- left: b + "px",
5002
- top: y + "px"
5000
+ y = x.right - m.pageX + window.scrollX < U ? y - U : y, b = x.bottom - m.pageY + window.scrollY < k ? b - k : b, i.positions = {
5001
+ left: y + "px",
5002
+ top: b + "px"
5003
5003
  };
5004
5004
  });
5005
5005
  };
@@ -5009,29 +5009,29 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
5009
5009
  style: os(i.positions),
5010
5010
  class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded-sm select-none"
5011
5011
  }, [
5012
- (f(!0), g(he, null, $e(d.value, (p) => (f(), g("li", {
5012
+ (f(!0), g(he, null, $e(d.value, (h) => (f(), g("li", {
5013
5013
  class: "cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
5014
- key: p.title
5014
+ key: h.title
5015
5015
  }, [
5016
- p.link ? (f(), g("a", {
5016
+ h.link ? (f(), g("a", {
5017
5017
  key: 0,
5018
5018
  class: "block pl-2 pr-3 py-2",
5019
5019
  target: "_blank",
5020
- href: p.link,
5021
- download: p.link,
5020
+ href: h.link,
5021
+ download: h.link,
5022
5022
  onClick: v[0] || (v[0] = (x) => a(e).emitter.emit("vf-contextmenu-hide"))
5023
5023
  }, [
5024
- o("span", null, _(p.title()), 1)
5024
+ o("span", null, _(h.title()), 1)
5025
5025
  ], 8, c1)) : (f(), g("div", {
5026
5026
  key: 1,
5027
5027
  class: "pl-2 pr-3 py-1.5",
5028
- onClick: (x) => u(p)
5028
+ onClick: (x) => u(h)
5029
5029
  }, [
5030
- o("span", null, _(p.title()), 1)
5030
+ o("span", null, _(h.title()), 1)
5031
5031
  ], 8, d1))
5032
5032
  ]))), 128))
5033
5033
  ], 4)), [
5034
- [Pe, i.active]
5034
+ [je, i.active]
5035
5035
  ]);
5036
5036
  }
5037
5037
  }, m1 = {
@@ -5067,7 +5067,7 @@ const Ro = { render: p1 }, v1 = {
5067
5067
  function x1(t, e) {
5068
5068
  return f(), g("svg", v1, [..._1]);
5069
5069
  }
5070
- const y1 = { render: x1 }, b1 = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none grow-0" }, w1 = { class: "flex leading-5 items-center" }, k1 = ["title"], $1 = ["value"], S1 = { class: "ml-3" }, C1 = { key: 0 }, E1 = { class: "ml-1" }, T1 = { class: "flex leading-5 items-center justify-end" }, M1 = ["disabled"], A1 = ["title"], D1 = {
5070
+ const b1 = { render: x1 }, y1 = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none grow-0" }, w1 = { class: "flex leading-5 items-center" }, k1 = ["title"], $1 = { class: "z-[1] pointer-events-none" }, S1 = ["value"], C1 = { class: "ml-3" }, E1 = { key: 0 }, T1 = { class: "ml-1" }, M1 = { class: "flex leading-5 items-center justify-end" }, A1 = ["disabled"], D1 = ["title"], L1 = {
5071
5071
  __name: "Statusbar",
5072
5072
  setup(t) {
5073
5073
  const e = ae("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, n = e.dragSelect, c = () => {
@@ -5080,79 +5080,81 @@ const y1 = { render: x1 }, b1 = { class: "p-1 text-xs border-t border-neutral-30
5080
5080
  const l = e.selectButton.multiple ? n.getSelected().length > 0 : n.getSelected().length === 1;
5081
5081
  return e.selectButton.active && l;
5082
5082
  });
5083
- return (l, u) => (f(), g("div", b1, [
5083
+ return (l, u) => (f(), g("div", y1, [
5084
5084
  o("div", w1, [
5085
5085
  o("div", {
5086
- class: "z-[1] pl-1 pointer-events-none",
5086
+ class: "flex leading-5 items-center rounded border dark:bg-gray-700 dark:border-gray-600",
5087
5087
  title: a(s)("Storage")
5088
5088
  }, [
5089
- Y(a(Ro))
5089
+ o("div", $1, [
5090
+ Y(a(Ro))
5091
+ ]),
5092
+ ve(o("select", {
5093
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => a(e).fs.adapter = p),
5094
+ onChange: c,
5095
+ class: "border-0 py-0.5 text-xs text-slate-500 bg-white dark:text-neutral-50 dark:bg-gray-700 rounded uppercase focus:outline-0 cursor-pointer",
5096
+ tabindex: "-1"
5097
+ }, [
5098
+ (f(!0), g(he, null, $e(a(e).fs.data.storages, (p) => (f(), g("option", { value: p }, _(p), 9, S1))), 256))
5099
+ ], 544), [
5100
+ [Ss, a(e).fs.adapter]
5101
+ ])
5090
5102
  ], 8, k1),
5091
- ve(o("select", {
5092
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(e).fs.adapter = h),
5093
- onChange: c,
5094
- class: "-translate-x-5 pl-4 pr-2 py-0.5 text-xs text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded uppercase focus:outline-0",
5095
- tabindex: "-1"
5096
- }, [
5097
- (f(!0), g(he, null, $e(a(e).fs.data.storages, (h) => (f(), g("option", { value: h }, _(h), 9, $1))), 256))
5098
- ], 544), [
5099
- [Ss, a(e).fs.adapter]
5100
- ]),
5101
- o("div", S1, [
5102
- i.value.length ? (f(), g("span", C1, _(a(e).fs.data.files.length) + " items found. ", 1)) : P("", !0),
5103
- o("span", E1, _(a(e).dragSelect.getCount() > 0 ? a(s)("%s item(s) selected.", a(e).dragSelect.getCount()) : ""), 1)
5103
+ o("div", C1, [
5104
+ i.value.length ? (f(), g("span", E1, _(a(e).fs.data.files.length) + " items found. ", 1)) : j("", !0),
5105
+ o("span", T1, _(a(e).dragSelect.getCount() > 0 ? a(s)("%s item(s) selected.", a(e).dragSelect.getCount()) : ""), 1)
5104
5106
  ])
5105
5107
  ]),
5106
- o("div", T1, [
5108
+ o("div", M1, [
5107
5109
  a(e).selectButton.active ? (f(), g("button", {
5108
5110
  key: 0,
5109
- class: me(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
5111
+ class: de(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
5110
5112
  disabled: !d.value,
5111
- onClick: u[1] || (u[1] = (h) => a(e).selectButton.click(a(n).getSelected(), h))
5112
- }, _(a(s)("Select")), 11, M1)) : P("", !0),
5113
+ onClick: u[1] || (u[1] = (p) => a(e).selectButton.click(a(n).getSelected(), p))
5114
+ }, _(a(s)("Select")), 11, A1)) : j("", !0),
5113
5115
  o("span", {
5114
5116
  class: "mr-1",
5115
5117
  title: a(s)("About"),
5116
- onClick: u[2] || (u[2] = (h) => a(e).modal.open(Ao))
5118
+ onClick: u[2] || (u[2] = (p) => a(e).modal.open(Ao))
5117
5119
  }, [
5118
- Y(a(y1))
5119
- ], 8, A1)
5120
+ Y(a(b1))
5121
+ ], 8, D1)
5120
5122
  ])
5121
5123
  ]));
5122
5124
  }
5123
- }, L1 = {
5125
+ }, V1 = {
5124
5126
  xmlns: "http://www.w3.org/2000/svg",
5125
5127
  fill: "none",
5126
5128
  stroke: "currentColor",
5127
5129
  "stroke-width": "1.5",
5128
5130
  class: "text-neutral-500 fill-sky-500 stroke-gray-100/50 dark:stroke-slate-700/50 dark:fill-slate-500",
5129
5131
  viewBox: "0 0 24 24"
5130
- }, V1 = /* @__PURE__ */ o("path", {
5132
+ }, O1 = /* @__PURE__ */ o("path", {
5131
5133
  "stroke-linecap": "round",
5132
5134
  "stroke-linejoin": "round",
5133
5135
  d: "M3.75 9.776q.168-.026.344-.026h15.812q.176 0 .344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"
5134
- }, null, -1), O1 = [
5135
- V1
5136
+ }, null, -1), H1 = [
5137
+ O1
5136
5138
  ];
5137
- function H1(t, e) {
5138
- return f(), g("svg", L1, [...O1]);
5139
+ function B1(t, e) {
5140
+ return f(), g("svg", V1, [...H1]);
5139
5141
  }
5140
- const Fo = { render: H1 }, B1 = {
5142
+ const Fo = { render: B1 }, R1 = {
5141
5143
  xmlns: "http://www.w3.org/2000/svg",
5142
5144
  fill: "currentColor",
5143
5145
  class: "h-5 w-5",
5144
5146
  viewBox: "0 0 24 24"
5145
- }, R1 = /* @__PURE__ */ o("path", {
5147
+ }, F1 = /* @__PURE__ */ o("path", {
5146
5148
  fill: "none",
5147
5149
  d: "M0 0h24v24H0z"
5148
- }, null, -1), F1 = /* @__PURE__ */ o("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.6 5.2a1 1 0 0 0-1.4.2L12 10.333 9.8 7.4a1 1 0 1 0-1.6 1.2l2.55 3.4-2.55 3.4a1 1 0 1 0 1.6 1.2l2.2-2.933 2.2 2.933a1 1 0 0 0 1.6-1.2L13.25 12l2.55-3.4a1 1 0 0 0-.2-1.4" }, null, -1), I1 = [
5149
- R1,
5150
- F1
5150
+ }, null, -1), I1 = /* @__PURE__ */ o("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.6 5.2a1 1 0 0 0-1.4.2L12 10.333 9.8 7.4a1 1 0 1 0-1.6 1.2l2.55 3.4-2.55 3.4a1 1 0 1 0 1.6 1.2l2.2-2.933 2.2 2.933a1 1 0 0 0 1.6-1.2L13.25 12l2.55-3.4a1 1 0 0 0-.2-1.4" }, null, -1), N1 = [
5151
+ F1,
5152
+ I1
5151
5153
  ];
5152
- function N1(t, e) {
5153
- return f(), g("svg", B1, [...I1]);
5154
+ function U1(t, e) {
5155
+ return f(), g("svg", R1, [...N1]);
5154
5156
  }
5155
- const U1 = { render: N1 }, z1 = {
5157
+ const z1 = { render: U1 }, j1 = {
5156
5158
  xmlns: "http://www.w3.org/2000/svg",
5157
5159
  fill: "none",
5158
5160
  stroke: "currentColor",
@@ -5163,14 +5165,14 @@ const U1 = { render: N1 }, z1 = {
5163
5165
  }, P1 = /* @__PURE__ */ o("path", {
5164
5166
  stroke: "none",
5165
5167
  d: "M0 0h24v24H0z"
5166
- }, null, -1), j1 = /* @__PURE__ */ o("path", { d: "M15 12H9M12 9v6" }, null, -1), q1 = [
5168
+ }, null, -1), q1 = /* @__PURE__ */ o("path", { d: "M15 12H9M12 9v6" }, null, -1), G1 = [
5167
5169
  P1,
5168
- j1
5170
+ q1
5169
5171
  ];
5170
- function G1(t, e) {
5171
- return f(), g("svg", z1, [...q1]);
5172
+ function K1(t, e) {
5173
+ return f(), g("svg", j1, [...G1]);
5172
5174
  }
5173
- const Io = { render: G1 }, K1 = {
5175
+ const Io = { render: K1 }, W1 = {
5174
5176
  xmlns: "http://www.w3.org/2000/svg",
5175
5177
  fill: "none",
5176
5178
  stroke: "currentColor",
@@ -5178,22 +5180,22 @@ const Io = { render: G1 }, K1 = {
5178
5180
  "stroke-linejoin": "round",
5179
5181
  "stroke-width": "2",
5180
5182
  viewBox: "0 0 24 24"
5181
- }, W1 = /* @__PURE__ */ o("path", {
5183
+ }, Y1 = /* @__PURE__ */ o("path", {
5182
5184
  stroke: "none",
5183
5185
  d: "M0 0h24v24H0z"
5184
- }, null, -1), Y1 = /* @__PURE__ */ o("path", { d: "M9 12h6" }, null, -1), X1 = [
5185
- W1,
5186
- Y1
5186
+ }, null, -1), X1 = /* @__PURE__ */ o("path", { d: "M9 12h6" }, null, -1), J1 = [
5187
+ Y1,
5188
+ X1
5187
5189
  ];
5188
- function J1(t, e) {
5189
- return f(), g("svg", K1, [...X1]);
5190
+ function Q1(t, e) {
5191
+ return f(), g("svg", W1, [...J1]);
5190
5192
  }
5191
- const No = { render: J1 };
5193
+ const No = { render: Q1 };
5192
5194
  function Uo(t, e) {
5193
5195
  const s = t.findIndex((r) => r.path === e.path);
5194
5196
  s > -1 ? t[s] = e : t.push(e);
5195
5197
  }
5196
- const Q1 = {
5198
+ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
5197
5199
  key: 1,
5198
5200
  class: "cursor-pointer"
5199
5201
  }, zo = {
@@ -5216,13 +5218,17 @@ const Q1 = {
5216
5218
  const e = t, s = ae("ServiceContainer");
5217
5219
  s.i18n;
5218
5220
  const r = Nn(t, "modelValue"), n = E(!1);
5221
+ Ne(
5222
+ () => r.value,
5223
+ () => {
5224
+ var d;
5225
+ return ((d = c()) == null ? void 0 : d.folders.length) || i();
5226
+ }
5227
+ );
5219
5228
  function c() {
5220
- return r.value = !r.value;
5221
- }
5222
- function i() {
5223
- return s.treeViewData.find((l) => l.path === e.path);
5229
+ return s.treeViewData.find((d) => d.path === e.path);
5224
5230
  }
5225
- const d = () => {
5231
+ const i = () => {
5226
5232
  n.value = !0, s.requester.send({
5227
5233
  url: "",
5228
5234
  method: "get",
@@ -5231,31 +5237,25 @@ const Q1 = {
5231
5237
  adapter: e.adapter,
5232
5238
  path: e.path
5233
5239
  }
5234
- }).then((l) => {
5235
- Uo(s.treeViewData, { path: e.path, ...l });
5236
- }).catch((l) => {
5240
+ }).then((d) => {
5241
+ Uo(s.treeViewData, { path: e.path, ...d });
5242
+ }).catch((d) => {
5237
5243
  }).finally(() => {
5238
5244
  n.value = !1;
5239
5245
  });
5240
5246
  };
5241
- return (l, u) => {
5242
- var h;
5243
- return f(), g("div", {
5244
- class: "h-5 w-5 shrink-0",
5245
- onClick: u[0] || (u[0] = (m) => {
5246
- var v;
5247
- return (!r.value || ((v = i()) == null ? void 0 : v.folders.length)) && c() && (i() || d());
5248
- })
5249
- }, [
5247
+ return (d, l) => {
5248
+ var u;
5249
+ return f(), g("div", Z1, [
5250
5250
  n.value ? (f(), W(a(ln), {
5251
5251
  key: 0,
5252
5252
  class: "p-1"
5253
- })) : (f(), g("div", Q1, [
5254
- r.value && ((h = i()) != null && h.folders.length) ? (f(), W(a(No), {
5253
+ })) : (f(), g("div", ef, [
5254
+ r.value && ((u = c()) != null && u.folders.length) ? (f(), W(a(No), {
5255
5255
  key: 0,
5256
5256
  class: "text-gray-600"
5257
- })) : P("", !0),
5258
- r.value ? P("", !0) : (f(), W(a(Io), {
5257
+ })) : j("", !0),
5258
+ r.value ? j("", !0) : (f(), W(a(Io), {
5259
5259
  key: 1,
5260
5260
  class: "text-gray-400"
5261
5261
  }))
@@ -5263,7 +5263,7 @@ const Q1 = {
5263
5263
  ]);
5264
5264
  };
5265
5265
  }
5266
- }, Z1 = { class: "block" }, ef = { class: "flex hover:text-sky-700 dark:hover:text-sky-200/50 rounded" }, tf = { class: "h-5 w-5 shrink-0" }, sf = ["onClick"], nf = { class: "h-5 w-5 shrink-0" }, of = { class: "pl-4" }, rf = {
5266
+ }, tf = { class: "block" }, sf = { class: "flex hover:text-sky-700 dark:hover:text-sky-200/50 rounded" }, nf = ["onClick"], of = ["onClick"], rf = { class: "h-5 w-5 shrink-0" }, af = { class: "pl-4" }, lf = {
5267
5267
  __name: "TreeSubfolderList",
5268
5268
  props: {
5269
5269
  adapter: {
@@ -5282,45 +5282,48 @@ const Q1 = {
5282
5282
  });
5283
5283
  return (c, i) => {
5284
5284
  const d = Qo("TreeSubfolderList", !0);
5285
- return f(), g("ul", Z1, [
5285
+ return f(), g("ul", tf, [
5286
5286
  (f(!0), g(he, null, $e(n.value, (l, u) => (f(), g("li", {
5287
5287
  class: "flex flex-col space-x-0.5 py-0.5 text-sm",
5288
5288
  key: l.path
5289
5289
  }, [
5290
- o("div", ef, [
5291
- o("div", tf, [
5290
+ o("div", sf, [
5291
+ o("div", {
5292
+ class: "h-5 w-5 shrink-0",
5293
+ onClick: (p) => s.value[l.path] = !s.value[l.path]
5294
+ }, [
5292
5295
  Y(zo, {
5293
5296
  adapter: t.adapter,
5294
5297
  path: l.path,
5295
5298
  modelValue: s.value[l.path],
5296
- "onUpdate:modelValue": (h) => s.value[l.path] = h
5299
+ "onUpdate:modelValue": (p) => s.value[l.path] = p
5297
5300
  }, null, 8, ["adapter", "path", "modelValue", "onUpdate:modelValue"])
5298
- ]),
5301
+ ], 8, nf),
5299
5302
  o("div", {
5300
5303
  class: "flex cursor-pointer",
5301
- onClick: (h) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: l.path } })
5304
+ onClick: (p) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: l.path } })
5302
5305
  }, [
5303
- o("div", nf, [
5306
+ o("div", rf, [
5304
5307
  a(e).fs.path === l.path ? (f(), W(a(Fo), { key: 0 })) : (f(), W(a(fs), { key: 1 }))
5305
5308
  ]),
5306
5309
  o("div", {
5307
- class: me(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === l.path }])
5310
+ class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === l.path }])
5308
5311
  }, _(l.basename), 3)
5309
- ], 8, sf)
5312
+ ], 8, of)
5310
5313
  ]),
5311
- o("div", of, [
5314
+ o("div", af, [
5312
5315
  ve(Y(d, {
5313
5316
  adapter: r.adapter,
5314
5317
  path: l.path
5315
5318
  }, null, 8, ["adapter", "path"]), [
5316
- [Pe, s.value[l.path]]
5319
+ [je, s.value[l.path]]
5317
5320
  ])
5318
5321
  ])
5319
5322
  ]))), 128))
5320
5323
  ]);
5321
5324
  };
5322
5325
  }
5323
- }, af = { class: "pt-1 px-1 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between" }, lf = { class: "h-5 w-5 shrink-0" }, cf = { class: "mr-3" }, df = {
5326
+ }, cf = { class: "pointer-events-none" }, df = {
5324
5327
  __name: "TreeStorageItem",
5325
5328
  props: {
5326
5329
  storage: {
@@ -5330,17 +5333,21 @@ const Q1 = {
5330
5333
  },
5331
5334
  setup(t) {
5332
5335
  const e = ae("ServiceContainer"), s = E(!1), r = (n) => {
5333
- e.fs.adapter = n, s.value = !s.value, e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: n } }), e.storage.setStore("adapter", n);
5336
+ console.log("ok"), s.value = !s.value;
5334
5337
  };
5335
5338
  return (n, c) => (f(), g(he, null, [
5336
- o("div", af, [
5339
+ o("div", {
5340
+ onClick: r,
5341
+ class: "pt-1 px-1 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between bg-gray-100 dark:bg-[#2e3c51] border-b dark:border-gray-600 cursor-pointer"
5342
+ }, [
5337
5343
  o("div", {
5338
- class: me(["flex flex-1 space-x-1 items-center cursor-pointer", t.storage === a(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""]),
5339
- onClick: c[0] || (c[0] = (i) => r(t.storage))
5344
+ class: de(["flex flex-1 space-x-1 items-center", t.storage === a(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""])
5340
5345
  }, [
5341
- o("div", lf, [
5346
+ o("div", {
5347
+ class: de(["h-5 w-5 shrink-0", t.storage === a(e).fs.adapter ? "text-sky-500 dark:text-slate-300" : ""])
5348
+ }, [
5342
5349
  Y(a(Ro))
5343
- ]),
5350
+ ], 2),
5344
5351
  o("div", null, _(t.storage), 1)
5345
5352
  ], 2),
5346
5353
  o("div", cf, [
@@ -5348,16 +5355,16 @@ const Q1 = {
5348
5355
  adapter: t.storage,
5349
5356
  path: t.storage + "://",
5350
5357
  modelValue: s.value,
5351
- "onUpdate:modelValue": c[1] || (c[1] = (i) => s.value = i)
5358
+ "onUpdate:modelValue": c[0] || (c[0] = (i) => s.value = i)
5352
5359
  }, null, 8, ["adapter", "path", "modelValue"])
5353
5360
  ])
5354
5361
  ]),
5355
- ve(Y(rf, {
5362
+ ve(Y(lf, {
5356
5363
  adapter: t.storage,
5357
5364
  path: t.storage + "://",
5358
5365
  class: "overflow-x-auto"
5359
5366
  }, null, 8, ["adapter", "path"]), [
5360
- [Pe, s.value]
5367
+ [je, s.value]
5361
5368
  ])
5362
5369
  ], 64));
5363
5370
  }
@@ -5375,48 +5382,48 @@ const Q1 = {
5375
5382
  e.value ? (f(), W(a(No), {
5376
5383
  key: 0,
5377
5384
  class: "text-gray-600"
5378
- })) : P("", !0),
5379
- e.value ? P("", !0) : (f(), W(a(Io), {
5385
+ })) : j("", !0),
5386
+ e.value ? j("", !0) : (f(), W(a(Io), {
5380
5387
  key: 1,
5381
5388
  class: "text-gray-400"
5382
5389
  }))
5383
5390
  ])
5384
5391
  ]));
5385
5392
  }
5386
- }, hf = { class: "sticky left-0 top-0 z-[1] bg-gray-100 dark:bg-[#2e3c51] border-b dark:border-gray-600" }, pf = { class: "flex items-center space-x-1" }, vf = { class: "text-nowrap" }, gf = {
5393
+ }, hf = { class: "sticky left-0 dark:border-gray-600" }, pf = { class: "flex items-center space-x-1" }, vf = { class: "text-nowrap" }, gf = {
5387
5394
  key: 0,
5388
5395
  class: "block"
5389
- }, _f = { class: "flex pl-2 py-0.5 text-sm space-x-2" }, xf = ["onClick"], yf = ["title"], bf = ["onClick"], wf = { key: 0 }, kf = { class: "rounded-lg p-1 bg-gray-100 dark:bg-gray-700 text-xs text-center" }, $f = {
5396
+ }, _f = { class: "flex pl-2 py-0.5 text-sm justify-between pr-1" }, xf = ["onClick"], bf = ["title"], yf = ["onClick"], wf = { key: 0 }, kf = { class: "p-1 text-xs text-center" }, $f = {
5390
5397
  __name: "TreeView",
5391
5398
  setup(t) {
5392
5399
  const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore: r, setStore: n } = e.storage, c = E(190), i = E(r("pinned-folders-opened", !0));
5393
- ze(i, (h) => n("pinned-folders-opened", h));
5394
- const d = (h) => {
5395
- e.pinnedFolders = e.pinnedFolders.filter((m) => m.path !== h.path), e.storage.setStore("pinned-folders", e.pinnedFolders);
5396
- }, l = (h) => {
5397
- const m = h.clientX, v = h.target.parentElement, p = v.getBoundingClientRect().width;
5400
+ Ne(i, (p) => n("pinned-folders-opened", p));
5401
+ const d = (p) => {
5402
+ e.pinnedFolders = e.pinnedFolders.filter((m) => m.path !== p.path), e.storage.setStore("pinned-folders", e.pinnedFolders);
5403
+ }, l = (p) => {
5404
+ const m = p.clientX, v = p.target.parentElement, h = v.getBoundingClientRect().width;
5398
5405
  v.classList.remove("transition-[width]"), v.classList.add("transition-none");
5399
- const x = (y) => {
5400
- c.value = p + y.clientX - m, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0);
5401
- }, b = () => {
5402
- const y = v.getBoundingClientRect();
5403
- c.value = y.width, v.classList.add("transition-[width]"), v.classList.remove("transition-none"), window.removeEventListener("mousemove", x), window.removeEventListener("mouseup", b);
5406
+ const x = (b) => {
5407
+ c.value = h + b.clientX - m, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0);
5408
+ }, y = () => {
5409
+ const b = v.getBoundingClientRect();
5410
+ c.value = b.width, v.classList.add("transition-[width]"), v.classList.remove("transition-none"), window.removeEventListener("mousemove", x), window.removeEventListener("mouseup", y);
5404
5411
  };
5405
- window.addEventListener("mousemove", x), window.addEventListener("mouseup", b);
5412
+ window.addEventListener("mousemove", x), window.addEventListener("mouseup", y);
5406
5413
  }, u = E(null);
5407
5414
  return Ce(() => {
5408
5415
  ct(u.value, {});
5409
- }), ze(e.fs.data, (h, m) => {
5410
- const v = h.files.filter((p) => p.type === "dir");
5411
- Uo(e.treeViewData, { path: e.fs.path, folders: v.map((p) => ({
5412
- adapter: p.storage,
5413
- path: p.path,
5414
- basename: p.basename
5416
+ }), Ne(e.fs.data, (p, m) => {
5417
+ const v = p.files.filter((h) => h.type === "dir");
5418
+ Uo(e.treeViewData, { path: e.fs.path, folders: v.map((h) => ({
5419
+ adapter: h.storage,
5420
+ path: h.path,
5421
+ basename: h.basename
5415
5422
  })) });
5416
- }), (h, m) => (f(), g(he, null, [
5423
+ }), (p, m) => (f(), g(he, null, [
5417
5424
  o("div", {
5418
5425
  onClick: m[0] || (m[0] = (v) => a(e).showTreeView = !a(e).showTreeView),
5419
- class: me(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]", a(e).showTreeView ? "backdrop-blur-sm absolute md:hidden" : "hidden"])
5426
+ class: de(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]", a(e).showTreeView ? "backdrop-blur-sm absolute md:hidden" : "hidden"])
5420
5427
  }, null, 2),
5421
5428
  o("div", {
5422
5429
  style: os(a(e).showTreeView ? "min-width:100px;max-width:75%; width: " + c.value + "px" : "width: 0"),
@@ -5430,7 +5437,7 @@ const Q1 = {
5430
5437
  o("div", hf, [
5431
5438
  o("div", {
5432
5439
  onClick: m[2] || (m[2] = (v) => i.value = !i.value),
5433
- class: "p-1 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center justify-between cursor-pointer"
5440
+ class: "bg-gray-100 dark:bg-[#2e3c51] dark:border-gray-600 border-b p-1 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center justify-between cursor-pointer"
5434
5441
  }, [
5435
5442
  o("div", pf, [
5436
5443
  Y(a(Bo), { class: "text-amber-600" }),
@@ -5445,32 +5452,32 @@ const Q1 = {
5445
5452
  (f(!0), g(he, null, $e(a(e).pinnedFolders, (v) => (f(), g("li", _f, [
5446
5453
  o("div", {
5447
5454
  class: "flex hover:text-sky-500 dark:hover:text-sky-200/50 rounded cursor-pointer",
5448
- onClick: (p) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
5455
+ onClick: (h) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
5449
5456
  }, [
5450
5457
  a(e).fs.path !== v.path ? (f(), W(a(fs), {
5451
5458
  key: 0,
5452
5459
  class: "h-5 w-5"
5453
- })) : P("", !0),
5460
+ })) : j("", !0),
5454
5461
  a(e).fs.path === v.path ? (f(), W(a(Fo), {
5455
5462
  key: 1,
5456
5463
  class: "h-5 w-5"
5457
- })) : P("", !0),
5464
+ })) : j("", !0),
5458
5465
  o("div", {
5459
5466
  title: v.path,
5460
- class: me(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === v.path }])
5461
- }, _(v.basename), 11, yf)
5467
+ class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === v.path }])
5468
+ }, _(v.basename), 11, bf)
5462
5469
  ], 8, xf),
5463
5470
  o("div", {
5464
5471
  class: "cursor-pointer",
5465
- onClick: (p) => d(v)
5472
+ onClick: (h) => d(v)
5466
5473
  }, [
5467
- Y(a(U1), { class: "p-0.5 text-gray-300 hover:text-gray-400 dark:text-gray-600 hover:dark:text-gray-400" })
5468
- ], 8, bf)
5474
+ Y(a(z1), { class: "p-0.5 text-gray-300 hover:text-gray-400 dark:text-gray-600 hover:dark:text-gray-400" })
5475
+ ], 8, yf)
5469
5476
  ]))), 256)),
5470
- a(e).pinnedFolders.length ? P("", !0) : (f(), g("li", wf, [
5477
+ a(e).pinnedFolders.length ? j("", !0) : (f(), g("li", wf, [
5471
5478
  o("div", kf, _(a(s)("No folders pinned")), 1)
5472
5479
  ]))
5473
- ])) : P("", !0)
5480
+ ])) : j("", !0)
5474
5481
  ]),
5475
5482
  (f(!0), g(he, null, $e(a(e).fs.data.storages, (v) => (f(), g("div", null, [
5476
5483
  Y(df, { storage: v }, null, 8, ["storage"])
@@ -5478,7 +5485,7 @@ const Q1 = {
5478
5485
  ], 512),
5479
5486
  o("div", {
5480
5487
  onMousedown: l,
5481
- class: me([(a(e).showTreeView, ""), "transition-colors ease-in-out duration-200 top-0 hover:bg-slate-600/10 dark:hover:bg-slate-300/10 w-1 h-full absolute -right-0.5 cursor-ew-resize"])
5488
+ class: de([(a(e).showTreeView, ""), "transition-colors ease-in-out duration-200 top-0 hover:bg-slate-600/10 dark:hover:bg-slate-300/10 w-1 h-full absolute -right-0.5 cursor-ew-resize"])
5482
5489
  }, null, 34)
5483
5490
  ], 4)
5484
5491
  ], 64));
@@ -5557,51 +5564,51 @@ const Q1 = {
5557
5564
  },
5558
5565
  emits: ["select"],
5559
5566
  setup(t, { emit: e }) {
5560
- const s = e, n = ba(t, ae("VueFinderOptions"));
5567
+ const s = e, n = ya(t, ae("VueFinderOptions"));
5561
5568
  Zo("ServiceContainer", n);
5562
5569
  const { setStore: c } = n.storage, i = E(null);
5563
5570
  n.root = i;
5564
5571
  const d = n.dragSelect;
5565
5572
  _i(n);
5566
- const l = (h) => {
5567
- Object.assign(n.fs.data, h), d.clearSelection(), d.refreshSelection();
5573
+ const l = (p) => {
5574
+ Object.assign(n.fs.data, p), d.clearSelection(), d.refreshSelection();
5568
5575
  };
5569
5576
  let u;
5570
5577
  return n.emitter.on("vf-fetch-abort", () => {
5571
5578
  u.abort(), n.fs.loading = !1;
5572
- }), n.emitter.on("vf-fetch", ({ params: h, body: m = null, onSuccess: v = null, onError: p = null, noCloseModal: x = !1 }) => {
5573
- ["index", "search"].includes(h.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
5574
- const b = u.signal;
5579
+ }), n.emitter.on("vf-fetch", ({ params: p, body: m = null, onSuccess: v = null, onError: h = null, noCloseModal: x = !1 }) => {
5580
+ ["index", "search"].includes(p.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
5581
+ const y = u.signal;
5575
5582
  n.requester.send({
5576
5583
  url: "",
5577
- method: h.m || "get",
5578
- params: h,
5584
+ method: p.m || "get",
5585
+ params: p,
5579
5586
  body: m,
5580
- abortSignal: b
5581
- }).then((y) => {
5582
- n.fs.adapter = y.adapter, n.persist && (n.fs.path = y.dirname, c("path", n.fs.path)), ["index", "search"].includes(h.q) && (n.fs.loading = !1), x || n.modal.close(), l(y), v && v(y);
5583
- }).catch((y) => {
5584
- console.error(y), p && p(y);
5587
+ abortSignal: y
5588
+ }).then((b) => {
5589
+ n.fs.adapter = b.adapter, n.persist && (n.fs.path = b.dirname, c("path", n.fs.path)), ["index", "search"].includes(p.q) && (n.fs.loading = !1), x || n.modal.close(), l(b), v && v(b);
5590
+ }).catch((b) => {
5591
+ console.error(b), h && h(b);
5585
5592
  });
5586
5593
  }), Ce(() => {
5587
- let h = {};
5588
- n.fs.path.includes("://") && (h = {
5594
+ let p = {};
5595
+ n.fs.path.includes("://") && (p = {
5589
5596
  adapter: n.fs.path.split("://")[0],
5590
5597
  path: n.fs.path
5591
- }), n.emitter.emit("vf-fetch", { params: { q: "index", adapter: n.fs.adapter, ...h } }), d.onSelect((m) => {
5598
+ }), n.emitter.emit("vf-fetch", { params: { q: "index", adapter: n.fs.adapter, ...p } }), d.onSelect((m) => {
5592
5599
  s("select", m);
5593
5600
  });
5594
- }), (h, m) => (f(), g("div", {
5601
+ }), (p, m) => (f(), g("div", {
5595
5602
  class: "vuefinder",
5596
5603
  ref_key: "root",
5597
5604
  ref: i,
5598
5605
  tabindex: "0"
5599
5606
  }, [
5600
5607
  o("div", {
5601
- class: me(a(n).theme.actualValue)
5608
+ class: de(a(n).theme.actualValue)
5602
5609
  }, [
5603
5610
  o("div", {
5604
- class: me([a(n).fullScreen ? "fixed w-screen inset-0 z-20" : "relative rounded resize-y ", "overflow-hidden min-h-44 border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 select-none"]),
5611
+ class: de([a(n).fullScreen ? "fixed w-screen inset-0 z-20" : "relative rounded resize-y ", "overflow-hidden min-h-44 border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 select-none"]),
5605
5612
  style: os(a(n).fullScreen ? "" : "max-height: " + t.maxHeight),
5606
5613
  onMousedown: m[0] || (m[0] = (v) => a(n).emitter.emit("vf-contextmenu-hide")),
5607
5614
  onTouchstart: m[1] || (m[1] = (v) => a(n).emitter.emit("vf-contextmenu-hide"))
@@ -5612,11 +5619,11 @@ const Q1 = {
5612
5619
  Y($f),
5613
5620
  Y(i1)
5614
5621
  ]),
5615
- Y(D1)
5622
+ Y(L1)
5616
5623
  ], 38),
5617
5624
  Y(er, { name: "fade" }, {
5618
5625
  default: se(() => [
5619
- a(n).modal.visible ? (f(), W(tr(a(n).modal.type), { key: 0 })) : P("", !0)
5626
+ a(n).modal.visible ? (f(), W(tr(a(n).modal.type), { key: 0 })) : j("", !0)
5620
5627
  ]),
5621
5628
  _: 1
5622
5629
  }),