@cubone/react-file-manager 1.17.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as De from "react";
2
- import Pe, { useState as L, useRef as de, useEffect as se, createContext as Ie, useContext as $e, useCallback as dr, useLayoutEffect as ln, useMemo as yt } from "react";
3
- function un(e) {
2
+ import Pe, { useState as L, useRef as de, useEffect as te, createContext as Ie, useContext as $e, useCallback as fr, useLayoutEffect as un, useMemo as yt } from "react";
3
+ function dn(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
6
6
  var vt = { exports: {} }, ze = {};
@@ -14,18 +14,18 @@ var vt = { exports: {} }, ze = {};
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
16
  var _t;
17
- function dn() {
17
+ function fn() {
18
18
  if (_t) return ze;
19
19
  _t = 1;
20
- var e = Pe, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function i(l, d, h) {
22
- var f, p = {}, w = null, S = null;
23
- h !== void 0 && (w = "" + h), d.key !== void 0 && (w = "" + d.key), d.ref !== void 0 && (S = d.ref);
24
- for (f in d) s.call(d, f) && !c.hasOwnProperty(f) && (p[f] = d[f]);
25
- if (l && l.defaultProps) for (f in d = l.defaultProps, d) p[f] === void 0 && (p[f] = d[f]);
26
- return { $$typeof: r, type: l, key: w, ref: S, props: p, _owner: a.current };
20
+ var e = Pe, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function c(l, d, p) {
22
+ var f, h = {}, w = null, S = null;
23
+ p !== void 0 && (w = "" + p), d.key !== void 0 && (w = "" + d.key), d.ref !== void 0 && (S = d.ref);
24
+ for (f in d) s.call(d, f) && !i.hasOwnProperty(f) && (h[f] = d[f]);
25
+ if (l && l.defaultProps) for (f in d = l.defaultProps, d) h[f] === void 0 && (h[f] = d[f]);
26
+ return { $$typeof: r, type: l, key: w, ref: S, props: h, _owner: a.current };
27
27
  }
28
- return ze.Fragment = n, ze.jsx = i, ze.jsxs = i, ze;
28
+ return ze.Fragment = n, ze.jsx = c, ze.jsxs = c, ze;
29
29
  }
30
30
  var Ae = {};
31
31
  /**
@@ -38,53 +38,53 @@ var Ae = {};
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
40
  var Nt;
41
- function fn() {
41
+ function hn() {
42
42
  return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
43
- var e = Pe, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), M = Symbol.iterator, z = "@@iterator";
44
- function D(o) {
43
+ var e = Pe, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), M = Symbol.iterator, z = "@@iterator";
44
+ function A(o) {
45
45
  if (o === null || typeof o != "object")
46
46
  return null;
47
- var v = M && o[M] || o[z];
48
- return typeof v == "function" ? v : null;
47
+ var m = M && o[M] || o[z];
48
+ return typeof m == "function" ? m : null;
49
49
  }
50
50
  var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
51
  function j(o) {
52
52
  {
53
- for (var v = arguments.length, T = new Array(v > 1 ? v - 1 : 0), B = 1; B < v; B++)
53
+ for (var m = arguments.length, T = new Array(m > 1 ? m - 1 : 0), B = 1; B < m; B++)
54
54
  T[B - 1] = arguments[B];
55
55
  y("error", o, T);
56
56
  }
57
57
  }
58
- function y(o, v, T) {
58
+ function y(o, m, T) {
59
59
  {
60
- var B = C.ReactDebugCurrentFrame, te = B.getStackAddendum();
61
- te !== "" && (v += "%s", T = T.concat([te]));
60
+ var B = C.ReactDebugCurrentFrame, re = B.getStackAddendum();
61
+ re !== "" && (m += "%s", T = T.concat([re]));
62
62
  var ie = T.map(function(ee) {
63
63
  return String(ee);
64
64
  });
65
- ie.unshift("Warning: " + v), Function.prototype.apply.call(console[o], console, ie);
65
+ ie.unshift("Warning: " + m), Function.prototype.apply.call(console[o], console, ie);
66
66
  }
67
67
  }
68
68
  var b = !1, u = !1, g = !1, _ = !1, x = !1, R;
69
69
  R = Symbol.for("react.module.reference");
70
70
  function F(o) {
71
- return !!(typeof o == "string" || typeof o == "function" || o === s || o === c || x || o === a || o === h || o === f || _ || o === S || b || u || g || typeof o == "object" && o !== null && (o.$$typeof === w || o.$$typeof === p || o.$$typeof === i || o.$$typeof === l || o.$$typeof === d || // This needs to include all possible module reference object
71
+ return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || x || o === a || o === p || o === f || _ || o === S || b || u || g || typeof o == "object" && o !== null && (o.$$typeof === w || o.$$typeof === h || o.$$typeof === c || o.$$typeof === l || o.$$typeof === d || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
75
  o.$$typeof === R || o.getModuleId !== void 0));
76
76
  }
77
- function A(o, v, T) {
77
+ function D(o, m, T) {
78
78
  var B = o.displayName;
79
79
  if (B)
80
80
  return B;
81
- var te = v.displayName || v.name || "";
82
- return te !== "" ? T + "(" + te + ")" : T;
81
+ var re = m.displayName || m.name || "";
82
+ return re !== "" ? T + "(" + re + ")" : T;
83
83
  }
84
- function N(o) {
84
+ function k(o) {
85
85
  return o.displayName || "Context";
86
86
  }
87
- function k(o) {
87
+ function N(o) {
88
88
  if (o == null)
89
89
  return null;
90
90
  if (typeof o.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
@@ -96,11 +96,11 @@ function fn() {
96
96
  return "Fragment";
97
97
  case n:
98
98
  return "Portal";
99
- case c:
99
+ case i:
100
100
  return "Profiler";
101
101
  case a:
102
102
  return "StrictMode";
103
- case h:
103
+ case p:
104
104
  return "Suspense";
105
105
  case f:
106
106
  return "SuspenseList";
@@ -108,20 +108,20 @@ function fn() {
108
108
  if (typeof o == "object")
109
109
  switch (o.$$typeof) {
110
110
  case l:
111
- var v = o;
112
- return N(v) + ".Consumer";
113
- case i:
111
+ var m = o;
112
+ return k(m) + ".Consumer";
113
+ case c:
114
114
  var T = o;
115
- return N(T._context) + ".Provider";
115
+ return k(T._context) + ".Provider";
116
116
  case d:
117
- return A(o, o.render, "ForwardRef");
118
- case p:
117
+ return D(o, o.render, "ForwardRef");
118
+ case h:
119
119
  var B = o.displayName || null;
120
- return B !== null ? B : k(o.type) || "Memo";
120
+ return B !== null ? B : N(o.type) || "Memo";
121
121
  case w: {
122
- var te = o, ie = te._payload, ee = te._init;
122
+ var re = o, ie = re._payload, ee = re._init;
123
123
  try {
124
- return k(ee(ie));
124
+ return N(ee(ie));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,14 +129,14 @@ function fn() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var X = Object.assign, oe = 0, ae, Q, he, xe, m, P, V;
132
+ var K = Object.assign, oe = 0, ae, Q, he, xe, v, P, V;
133
133
  function W() {
134
134
  }
135
135
  W.__reactDisabledLog = !0;
136
136
  function I() {
137
137
  {
138
138
  if (oe === 0) {
139
- ae = console.log, Q = console.info, he = console.warn, xe = console.error, m = console.group, P = console.groupCollapsed, V = console.groupEnd;
139
+ ae = console.log, Q = console.info, he = console.warn, xe = console.error, v = console.group, P = console.groupCollapsed, V = console.groupEnd;
140
140
  var o = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
@@ -156,7 +156,7 @@ function fn() {
156
156
  oe++;
157
157
  }
158
158
  }
159
- function K() {
159
+ function X() {
160
160
  {
161
161
  if (oe--, oe === 0) {
162
162
  var o = {
@@ -165,25 +165,25 @@ function fn() {
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: X({}, o, {
168
+ log: K({}, o, {
169
169
  value: ae
170
170
  }),
171
- info: X({}, o, {
171
+ info: K({}, o, {
172
172
  value: Q
173
173
  }),
174
- warn: X({}, o, {
174
+ warn: K({}, o, {
175
175
  value: he
176
176
  }),
177
- error: X({}, o, {
177
+ error: K({}, o, {
178
178
  value: xe
179
179
  }),
180
- group: X({}, o, {
181
- value: m
180
+ group: K({}, o, {
181
+ value: v
182
182
  }),
183
- groupCollapsed: X({}, o, {
183
+ groupCollapsed: K({}, o, {
184
184
  value: P
185
185
  }),
186
- groupEnd: X({}, o, {
186
+ groupEnd: K({}, o, {
187
187
  value: V
188
188
  })
189
189
  });
@@ -192,13 +192,13 @@ function fn() {
192
192
  }
193
193
  }
194
194
  var O = C.ReactCurrentDispatcher, $;
195
- function U(o, v, T) {
195
+ function U(o, m, T) {
196
196
  {
197
197
  if ($ === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (te) {
201
- var B = te.stack.trim().match(/\n( *(at )?)/);
200
+ } catch (re) {
201
+ var B = re.stack.trim().match(/\n( *(at )?)/);
202
202
  $ = B && B[1] || "";
203
203
  }
204
204
  return `
@@ -210,7 +210,7 @@ function fn() {
210
210
  var fe = typeof WeakMap == "function" ? WeakMap : Map;
211
211
  q = new fe();
212
212
  }
213
- function E(o, v) {
213
+ function E(o, m) {
214
214
  if (!o || Z)
215
215
  return "";
216
216
  {
@@ -220,12 +220,12 @@ function fn() {
220
220
  }
221
221
  var B;
222
222
  Z = !0;
223
- var te = Error.prepareStackTrace;
223
+ var re = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var ie;
226
226
  ie = O.current, O.current = null, I();
227
227
  try {
228
- if (v) {
228
+ if (m) {
229
229
  var ee = function() {
230
230
  throw Error();
231
231
  };
@@ -276,19 +276,19 @@ function fn() {
276
276
  }
277
277
  }
278
278
  } finally {
279
- Z = !1, O.current = ie, K(), Error.prepareStackTrace = te;
279
+ Z = !1, O.current = ie, X(), Error.prepareStackTrace = re;
280
280
  }
281
281
  var ke = o ? o.displayName || o.name : "", Me = ke ? U(ke) : "";
282
282
  return typeof o == "function" && q.set(o, Me), Me;
283
283
  }
284
- function ve(o, v, T) {
284
+ function ve(o, m, T) {
285
285
  return E(o, !1);
286
286
  }
287
287
  function Te(o) {
288
- var v = o.prototype;
289
- return !!(v && v.isReactComponent);
288
+ var m = o.prototype;
289
+ return !!(m && m.isReactComponent);
290
290
  }
291
- function Y(o, v, T) {
291
+ function Y(o, m, T) {
292
292
  if (o == null)
293
293
  return "";
294
294
  if (typeof o == "function")
@@ -296,7 +296,7 @@ function fn() {
296
296
  if (typeof o == "string")
297
297
  return U(o);
298
298
  switch (o) {
299
- case h:
299
+ case p:
300
300
  return U("Suspense");
301
301
  case f:
302
302
  return U("SuspenseList");
@@ -305,12 +305,12 @@ function fn() {
305
305
  switch (o.$$typeof) {
306
306
  case d:
307
307
  return ve(o.render);
308
- case p:
309
- return Y(o.type, v, T);
308
+ case h:
309
+ return Y(o.type, m, T);
310
310
  case w: {
311
- var B = o, te = B._payload, ie = B._init;
311
+ var B = o, re = B._payload, ie = B._init;
312
312
  try {
313
- return Y(ie(te), v, T);
313
+ return Y(ie(re), m, T);
314
314
  } catch {
315
315
  }
316
316
  }
@@ -320,12 +320,12 @@ function fn() {
320
320
  var le = Object.prototype.hasOwnProperty, je = {}, Re = C.ReactDebugCurrentFrame;
321
321
  function we(o) {
322
322
  if (o) {
323
- var v = o._owner, T = Y(o.type, o._source, v ? v.type : null);
323
+ var m = o._owner, T = Y(o.type, o._source, m ? m.type : null);
324
324
  Re.setExtraStackFrame(T);
325
325
  } else
326
326
  Re.setExtraStackFrame(null);
327
327
  }
328
- function He(o, v, T, B, te) {
328
+ function He(o, m, T, B, re) {
329
329
  {
330
330
  var ie = Function.call.bind(le);
331
331
  for (var ee in o)
@@ -336,11 +336,11 @@ function fn() {
336
336
  var me = Error((B || "React class") + ": " + T + " type `" + ee + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[ee] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
337
  throw me.name = "Invariant Violation", me;
338
338
  }
339
- J = o[ee](v, ee, B, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ J = o[ee](m, ee, B, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch (ce) {
341
341
  J = ce;
342
342
  }
343
- J && !(J instanceof Error) && (we(te), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", T, ee, typeof J), we(null)), J instanceof Error && !(J.message in je) && (je[J.message] = !0, we(te), j("Failed %s type: %s", T, J.message), we(null));
343
+ J && !(J instanceof Error) && (we(re), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", T, ee, typeof J), we(null)), J instanceof Error && !(J.message in je) && (je[J.message] = !0, we(re), j("Failed %s type: %s", T, J.message), we(null));
344
344
  }
345
345
  }
346
346
  }
@@ -348,13 +348,13 @@ function fn() {
348
348
  function et(o) {
349
349
  return Qe(o);
350
350
  }
351
- function Hr(o) {
351
+ function Wr(o) {
352
352
  {
353
- var v = typeof Symbol == "function" && Symbol.toStringTag, T = v && o[Symbol.toStringTag] || o.constructor.name || "Object";
353
+ var m = typeof Symbol == "function" && Symbol.toStringTag, T = m && o[Symbol.toStringTag] || o.constructor.name || "Object";
354
354
  return T;
355
355
  }
356
356
  }
357
- function Wr(o) {
357
+ function Vr(o) {
358
358
  try {
359
359
  return bt(o), !1;
360
360
  } catch {
@@ -365,38 +365,38 @@ function fn() {
365
365
  return "" + o;
366
366
  }
367
367
  function wt(o) {
368
- if (Wr(o))
369
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Hr(o)), bt(o);
368
+ if (Vr(o))
369
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wr(o)), bt(o);
370
370
  }
371
- var Et = C.ReactCurrentOwner, Vr = {
371
+ var Et = C.ReactCurrentOwner, Yr = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
376
  }, Rt, Pt;
377
- function Yr(o) {
377
+ function Ur(o) {
378
378
  if (le.call(o, "ref")) {
379
- var v = Object.getOwnPropertyDescriptor(o, "ref").get;
380
- if (v && v.isReactWarning)
379
+ var m = Object.getOwnPropertyDescriptor(o, "ref").get;
380
+ if (m && m.isReactWarning)
381
381
  return !1;
382
382
  }
383
383
  return o.ref !== void 0;
384
384
  }
385
- function Ur(o) {
385
+ function qr(o) {
386
386
  if (le.call(o, "key")) {
387
- var v = Object.getOwnPropertyDescriptor(o, "key").get;
388
- if (v && v.isReactWarning)
387
+ var m = Object.getOwnPropertyDescriptor(o, "key").get;
388
+ if (m && m.isReactWarning)
389
389
  return !1;
390
390
  }
391
391
  return o.key !== void 0;
392
392
  }
393
- function qr(o, v) {
393
+ function Kr(o, m) {
394
394
  typeof o.ref == "string" && Et.current;
395
395
  }
396
- function Kr(o, v) {
396
+ function Xr(o, m) {
397
397
  {
398
398
  var T = function() {
399
- Rt || (Rt = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
399
+ Rt || (Rt = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
400
400
  };
401
401
  T.isReactWarning = !0, Object.defineProperty(o, "key", {
402
402
  get: T,
@@ -404,10 +404,10 @@ function fn() {
404
404
  });
405
405
  }
406
406
  }
407
- function Xr(o, v) {
407
+ function Gr(o, m) {
408
408
  {
409
409
  var T = function() {
410
- Pt || (Pt = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
410
+ Pt || (Pt = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
411
411
  };
412
412
  T.isReactWarning = !0, Object.defineProperty(o, "ref", {
413
413
  get: T,
@@ -415,13 +415,13 @@ function fn() {
415
415
  });
416
416
  }
417
417
  }
418
- var Gr = function(o, v, T, B, te, ie, ee) {
418
+ var Jr = function(o, m, T, B, re, ie, ee) {
419
419
  var J = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
421
  $$typeof: r,
422
422
  // Built-in properties that belong on the element
423
423
  type: o,
424
- key: v,
424
+ key: m,
425
425
  ref: T,
426
426
  props: ee,
427
427
  // Record the component responsible for creating this element.
@@ -441,15 +441,15 @@ function fn() {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
- value: te
444
+ value: re
445
445
  }), Object.freeze && (Object.freeze(J.props), Object.freeze(J)), J;
446
446
  };
447
- function Jr(o, v, T, B, te) {
447
+ function Zr(o, m, T, B, re) {
448
448
  {
449
449
  var ie, ee = {}, J = null, me = null;
450
- T !== void 0 && (wt(T), J = "" + T), Ur(v) && (wt(v.key), J = "" + v.key), Yr(v) && (me = v.ref, qr(v, te));
451
- for (ie in v)
452
- le.call(v, ie) && !Vr.hasOwnProperty(ie) && (ee[ie] = v[ie]);
450
+ T !== void 0 && (wt(T), J = "" + T), qr(m) && (wt(m.key), J = "" + m.key), Ur(m) && (me = m.ref, Kr(m, re));
451
+ for (ie in m)
452
+ le.call(m, ie) && !Yr.hasOwnProperty(ie) && (ee[ie] = m[ie]);
453
453
  if (o && o.defaultProps) {
454
454
  var ce = o.defaultProps;
455
455
  for (ie in ce)
@@ -457,15 +457,15 @@ function fn() {
457
457
  }
458
458
  if (J || me) {
459
459
  var ue = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
460
- J && Kr(ee, ue), me && Xr(ee, ue);
460
+ J && Xr(ee, ue), me && Gr(ee, ue);
461
461
  }
462
- return Gr(o, J, me, te, B, Et.current, ee);
462
+ return Jr(o, J, me, re, B, Et.current, ee);
463
463
  }
464
464
  }
465
465
  var tt = C.ReactCurrentOwner, Tt = C.ReactDebugCurrentFrame;
466
466
  function Oe(o) {
467
467
  if (o) {
468
- var v = o._owner, T = Y(o.type, o._source, v ? v.type : null);
468
+ var m = o._owner, T = Y(o.type, o._source, m ? m.type : null);
469
469
  Tt.setExtraStackFrame(T);
470
470
  } else
471
471
  Tt.setExtraStackFrame(null);
@@ -478,7 +478,7 @@ function fn() {
478
478
  function Ft() {
479
479
  {
480
480
  if (tt.current) {
481
- var o = k(tt.current.type);
481
+ var o = N(tt.current.type);
482
482
  if (o)
483
483
  return `
484
484
 
@@ -487,83 +487,83 @@ Check the render method of \`` + o + "`.";
487
487
  return "";
488
488
  }
489
489
  }
490
- function Zr(o) {
490
+ function Qr(o) {
491
491
  return "";
492
492
  }
493
493
  var St = {};
494
- function Qr(o) {
494
+ function en(o) {
495
495
  {
496
- var v = Ft();
497
- if (!v) {
496
+ var m = Ft();
497
+ if (!m) {
498
498
  var T = typeof o == "string" ? o : o.displayName || o.name;
499
- T && (v = `
499
+ T && (m = `
500
500
 
501
501
  Check the top-level render call using <` + T + ">.");
502
502
  }
503
- return v;
503
+ return m;
504
504
  }
505
505
  }
506
- function Mt(o, v) {
506
+ function Mt(o, m) {
507
507
  {
508
508
  if (!o._store || o._store.validated || o.key != null)
509
509
  return;
510
510
  o._store.validated = !0;
511
- var T = Qr(v);
511
+ var T = en(m);
512
512
  if (St[T])
513
513
  return;
514
514
  St[T] = !0;
515
515
  var B = "";
516
- o && o._owner && o._owner !== tt.current && (B = " It was passed a child from " + k(o._owner.type) + "."), Oe(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, B), Oe(null);
516
+ o && o._owner && o._owner !== tt.current && (B = " It was passed a child from " + N(o._owner.type) + "."), Oe(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, B), Oe(null);
517
517
  }
518
518
  }
519
- function Lt(o, v) {
519
+ function Lt(o, m) {
520
520
  {
521
521
  if (typeof o != "object")
522
522
  return;
523
523
  if (et(o))
524
524
  for (var T = 0; T < o.length; T++) {
525
525
  var B = o[T];
526
- nt(B) && Mt(B, v);
526
+ nt(B) && Mt(B, m);
527
527
  }
528
528
  else if (nt(o))
529
529
  o._store && (o._store.validated = !0);
530
530
  else if (o) {
531
- var te = D(o);
532
- if (typeof te == "function" && te !== o.entries)
533
- for (var ie = te.call(o), ee; !(ee = ie.next()).done; )
534
- nt(ee.value) && Mt(ee.value, v);
531
+ var re = A(o);
532
+ if (typeof re == "function" && re !== o.entries)
533
+ for (var ie = re.call(o), ee; !(ee = ie.next()).done; )
534
+ nt(ee.value) && Mt(ee.value, m);
535
535
  }
536
536
  }
537
537
  }
538
- function en(o) {
538
+ function tn(o) {
539
539
  {
540
- var v = o.type;
541
- if (v == null || typeof v == "string")
540
+ var m = o.type;
541
+ if (m == null || typeof m == "string")
542
542
  return;
543
543
  var T;
544
- if (typeof v == "function")
545
- T = v.propTypes;
546
- else if (typeof v == "object" && (v.$$typeof === d || // Note: Memo only checks outer props here.
544
+ if (typeof m == "function")
545
+ T = m.propTypes;
546
+ else if (typeof m == "object" && (m.$$typeof === d || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
- v.$$typeof === p))
549
- T = v.propTypes;
548
+ m.$$typeof === h))
549
+ T = m.propTypes;
550
550
  else
551
551
  return;
552
552
  if (T) {
553
- var B = k(v);
553
+ var B = N(m);
554
554
  He(T, o.props, "prop", B, o);
555
- } else if (v.PropTypes !== void 0 && !rt) {
555
+ } else if (m.PropTypes !== void 0 && !rt) {
556
556
  rt = !0;
557
- var te = k(v);
558
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
557
+ var re = N(m);
558
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", re || "Unknown");
559
559
  }
560
- typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
+ typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
562
562
  }
563
- function tn(o) {
563
+ function rn(o) {
564
564
  {
565
- for (var v = Object.keys(o.props), T = 0; T < v.length; T++) {
566
- var B = v[T];
565
+ for (var m = Object.keys(o.props), T = 0; T < m.length; T++) {
566
+ var B = m[T];
567
567
  if (B !== "children" && B !== "key") {
568
568
  Oe(o), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", B), Oe(null);
569
569
  break;
@@ -573,22 +573,22 @@ Check the top-level render call using <` + T + ">.");
573
573
  }
574
574
  }
575
575
  var Ot = {};
576
- function kt(o, v, T, B, te, ie) {
576
+ function kt(o, m, T, B, re, ie) {
577
577
  {
578
578
  var ee = F(o);
579
579
  if (!ee) {
580
580
  var J = "";
581
581
  (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (J += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var me = Zr();
582
+ var me = Qr();
583
583
  me ? J += me : J += Ft();
584
584
  var ce;
585
- o === null ? ce = "null" : et(o) ? ce = "array" : o !== void 0 && o.$$typeof === r ? (ce = "<" + (k(o.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, J);
585
+ o === null ? ce = "null" : et(o) ? ce = "array" : o !== void 0 && o.$$typeof === r ? (ce = "<" + (N(o.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, J);
586
586
  }
587
- var ue = Jr(o, v, T, te, ie);
587
+ var ue = Zr(o, m, T, re, ie);
588
588
  if (ue == null)
589
589
  return ue;
590
590
  if (ee) {
591
- var be = v.children;
591
+ var be = m.children;
592
592
  if (be !== void 0)
593
593
  if (B)
594
594
  if (et(be)) {
@@ -600,52 +600,52 @@ Check the top-level render call using <` + T + ">.");
600
600
  else
601
601
  Lt(be, o);
602
602
  }
603
- if (le.call(v, "key")) {
604
- var Me = k(o), Ce = Object.keys(v).filter(function(cn) {
605
- return cn !== "key";
603
+ if (le.call(m, "key")) {
604
+ var Me = N(o), Ce = Object.keys(m).filter(function(ln) {
605
+ return ln !== "key";
606
606
  }), st = Ce.length > 0 ? "{key: someKey, " + Ce.join(": ..., ") + ": ...}" : "{key: someKey}";
607
607
  if (!Ot[Me + st]) {
608
- var an = Ce.length > 0 ? "{" + Ce.join(": ..., ") + ": ...}" : "{}";
608
+ var cn = Ce.length > 0 ? "{" + Ce.join(": ..., ") + ": ...}" : "{}";
609
609
  j(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
612
612
  React keys must be passed directly to JSX without using spread:
613
613
  let props = %s;
614
- <%s key={someKey} {...props} />`, st, Me, an, Me), Ot[Me + st] = !0;
614
+ <%s key={someKey} {...props} />`, st, Me, cn, Me), Ot[Me + st] = !0;
615
615
  }
616
616
  }
617
- return o === s ? tn(ue) : en(ue), ue;
617
+ return o === s ? rn(ue) : tn(ue), ue;
618
618
  }
619
619
  }
620
- function rn(o, v, T) {
621
- return kt(o, v, T, !0);
620
+ function nn(o, m, T) {
621
+ return kt(o, m, T, !0);
622
622
  }
623
- function nn(o, v, T) {
624
- return kt(o, v, T, !1);
623
+ function sn(o, m, T) {
624
+ return kt(o, m, T, !1);
625
625
  }
626
- var sn = nn, on = rn;
627
- Ae.Fragment = s, Ae.jsx = sn, Ae.jsxs = on;
626
+ var on = sn, an = nn;
627
+ Ae.Fragment = s, Ae.jsx = on, Ae.jsxs = an;
628
628
  }()), Ae;
629
629
  }
630
- process.env.NODE_ENV === "production" ? vt.exports = dn() : vt.exports = fn();
631
- var t = vt.exports, fr = {
630
+ process.env.NODE_ENV === "production" ? vt.exports = fn() : vt.exports = hn();
631
+ var t = vt.exports, hr = {
632
632
  color: void 0,
633
633
  size: void 0,
634
634
  className: void 0,
635
635
  style: void 0,
636
636
  attr: void 0
637
- }, zt = Pe.createContext && /* @__PURE__ */ Pe.createContext(fr), hn = ["attr", "size", "title"];
638
- function pn(e, r) {
637
+ }, zt = Pe.createContext && /* @__PURE__ */ Pe.createContext(hr), pn = ["attr", "size", "title"];
638
+ function vn(e, r) {
639
639
  if (e == null) return {};
640
- var n = vn(e, r), s, a;
640
+ var n = mn(e, r), s, a;
641
641
  if (Object.getOwnPropertySymbols) {
642
- var c = Object.getOwnPropertySymbols(e);
643
- for (a = 0; a < c.length; a++)
644
- s = c[a], !(r.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(e, s) && (n[s] = e[s]);
642
+ var i = Object.getOwnPropertySymbols(e);
643
+ for (a = 0; a < i.length; a++)
644
+ s = i[a], !(r.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(e, s) && (n[s] = e[s]);
645
645
  }
646
646
  return n;
647
647
  }
648
- function vn(e, r) {
648
+ function mn(e, r) {
649
649
  if (e == null) return {};
650
650
  var n = {};
651
651
  for (var s in e)
@@ -679,21 +679,21 @@ function Ye(e) {
679
679
  for (var r = 1; r < arguments.length; r++) {
680
680
  var n = arguments[r] != null ? arguments[r] : {};
681
681
  r % 2 ? At(Object(n), !0).forEach(function(s) {
682
- mn(e, s, n[s]);
682
+ gn(e, s, n[s]);
683
683
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : At(Object(n)).forEach(function(s) {
684
684
  Object.defineProperty(e, s, Object.getOwnPropertyDescriptor(n, s));
685
685
  });
686
686
  }
687
687
  return e;
688
688
  }
689
- function mn(e, r, n) {
690
- return r = gn(r), r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
689
+ function gn(e, r, n) {
690
+ return r = yn(r), r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
691
691
  }
692
- function gn(e) {
693
- var r = yn(e, "string");
692
+ function yn(e) {
693
+ var r = xn(e, "string");
694
694
  return typeof r == "symbol" ? r : r + "";
695
695
  }
696
- function yn(e, r) {
696
+ function xn(e, r) {
697
697
  if (typeof e != "object" || !e) return e;
698
698
  var n = e[Symbol.toPrimitive];
699
699
  if (n !== void 0) {
@@ -703,28 +703,28 @@ function yn(e, r) {
703
703
  }
704
704
  return (r === "string" ? String : Number)(e);
705
705
  }
706
- function hr(e) {
706
+ function pr(e) {
707
707
  return e && e.map((r, n) => /* @__PURE__ */ Pe.createElement(r.tag, Ye({
708
708
  key: n
709
- }, r.attr), hr(r.child)));
709
+ }, r.attr), pr(r.child)));
710
710
  }
711
711
  function H(e) {
712
- return (r) => /* @__PURE__ */ Pe.createElement(xn, Ve({
712
+ return (r) => /* @__PURE__ */ Pe.createElement(Cn, Ve({
713
713
  attr: Ye({}, e.attr)
714
- }, r), hr(e.child));
714
+ }, r), pr(e.child));
715
715
  }
716
- function xn(e) {
716
+ function Cn(e) {
717
717
  var r = (n) => {
718
718
  var {
719
719
  attr: s,
720
720
  size: a,
721
- title: c
722
- } = e, i = pn(e, hn), l = a || n.size || "1em", d;
721
+ title: i
722
+ } = e, c = vn(e, pn), l = a || n.size || "1em", d;
723
723
  return n.className && (d = n.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ Pe.createElement("svg", Ve({
724
724
  stroke: "currentColor",
725
725
  fill: "currentColor",
726
726
  strokeWidth: "0"
727
- }, n.attr, s, i, {
727
+ }, n.attr, s, c, {
728
728
  className: d,
729
729
  style: Ye(Ye({
730
730
  color: e.color || n.color
@@ -732,72 +732,72 @@ function xn(e) {
732
732
  height: l,
733
733
  width: l,
734
734
  xmlns: "http://www.w3.org/2000/svg"
735
- }), c && /* @__PURE__ */ Pe.createElement("title", null, c), e.children);
735
+ }), i && /* @__PURE__ */ Pe.createElement("title", null, i), e.children);
736
736
  };
737
- return zt !== void 0 ? /* @__PURE__ */ Pe.createElement(zt.Consumer, null, (n) => r(n)) : r(fr);
737
+ return zt !== void 0 ? /* @__PURE__ */ Pe.createElement(zt.Consumer, null, (n) => r(n)) : r(hr);
738
738
  }
739
- function Cn(e) {
739
+ function jn(e) {
740
740
  return H({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M16 8c-0.020-1.045-0.247-2.086-0.665-3.038-0.417-0.953-1.023-1.817-1.766-2.53s-1.624-1.278-2.578-1.651c-0.953-0.374-1.978-0.552-2.991-0.531-1.013 0.020-2.021 0.24-2.943 0.646-0.923 0.405-1.758 0.992-2.449 1.712s-1.237 1.574-1.597 2.497c-0.361 0.923-0.533 1.914-0.512 2.895 0.020 0.981 0.234 1.955 0.627 2.847 0.392 0.892 0.961 1.7 1.658 2.368s1.523 1.195 2.416 1.543c0.892 0.348 1.851 0.514 2.799 0.493 0.949-0.020 1.89-0.227 2.751-0.608 0.862-0.379 1.642-0.929 2.287-1.604s1.154-1.472 1.488-2.335c0.204-0.523 0.342-1.069 0.415-1.622 0.019 0.001 0.039 0.002 0.059 0.002 0.552 0 1-0.448 1-1 0-0.028-0.001-0.056-0.004-0.083h0.004zM14.411 10.655c-0.367 0.831-0.898 1.584-1.55 2.206s-1.422 1.112-2.254 1.434c-0.832 0.323-1.723 0.476-2.608 0.454-0.884-0.020-1.759-0.215-2.56-0.57-0.801-0.354-1.526-0.867-2.125-1.495s-1.071-1.371-1.38-2.173c-0.31-0.801-0.457-1.66-0.435-2.512s0.208-1.694 0.551-2.464c0.342-0.77 0.836-1.468 1.441-2.044s1.321-1.029 2.092-1.326c0.771-0.298 1.596-0.438 2.416-0.416s1.629 0.202 2.368 0.532c0.74 0.329 1.41 0.805 1.963 1.387s0.988 1.27 1.272 2.011c0.285 0.74 0.418 1.532 0.397 2.32h0.004c-0.002 0.027-0.004 0.055-0.004 0.083 0 0.516 0.39 0.94 0.892 0.994-0.097 0.544-0.258 1.075-0.481 1.578z" }, child: [] }] })(e);
741
741
  }
742
- const xt = ({ loading: e = !1, className: r }) => e ? /* @__PURE__ */ t.jsx("div", { className: `loader-container ${r}`, children: /* @__PURE__ */ t.jsx(Cn, { className: "spinner" }) }) : null;
743
- function pr(e) {
742
+ const xt = ({ loading: e = !1, className: r }) => e ? /* @__PURE__ */ t.jsx("div", { className: `loader-container ${r}`, children: /* @__PURE__ */ t.jsx(jn, { className: "spinner" }) }) : null;
743
+ function vr(e) {
744
744
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z" }, child: [] }] })(e);
745
745
  }
746
- function vr(e) {
746
+ function mr(e) {
747
747
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z" }, child: [] }, { tag: "path", attr: { d: "M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5" }, child: [] }] })(e);
748
748
  }
749
- function mr(e) {
749
+ function gr(e) {
750
750
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5z" }, child: [] }] })(e);
751
751
  }
752
752
  function Dt(e) {
753
753
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z" }, child: [] }] })(e);
754
754
  }
755
- function gr(e) {
755
+ function yr(e) {
756
756
  return H({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0" }, child: [] }] })(e);
757
757
  }
758
- function yr(e) {
758
+ function xr(e) {
759
759
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "23 4 23 10 17 10" }, child: [] }, { tag: "polyline", attr: { points: "1 20 1 14 7 14" }, child: [] }, { tag: "path", attr: { d: "M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" }, child: [] }] })(e);
760
760
  }
761
- function jn(e) {
761
+ function bn(e) {
762
762
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" }, child: [] }] })(e);
763
763
  }
764
- function bn(e) {
764
+ function wn(e) {
765
765
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(e);
766
766
  }
767
- function wn(e) {
767
+ function En(e) {
768
768
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, child: [] }] })(e);
769
769
  }
770
- function En(e) {
770
+ function Rn(e) {
771
771
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(e);
772
772
  }
773
- function Rn(e) {
773
+ function Pn(e) {
774
774
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }, child: [] }] })(e);
775
775
  }
776
- function xr(e) {
776
+ function Cr(e) {
777
777
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z" }, child: [] }] })(e);
778
778
  }
779
779
  function Ct(e) {
780
780
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z" }, child: [] }] })(e);
781
781
  }
782
- function Cr(e) {
782
+ function jr(e) {
783
783
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z" }, child: [] }] })(e);
784
784
  }
785
- function Pn(e) {
785
+ function Tn(e) {
786
786
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z" }, child: [] }] })(e);
787
787
  }
788
- function jr(e) {
788
+ function br(e) {
789
789
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z" }, child: [] }, { tag: "path", attr: { d: "M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z" }, child: [] }] })(e);
790
790
  }
791
- function Tn(e) {
791
+ function Fn(e) {
792
792
  return H({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20 2H8c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM8 16V4h12l.002 12H8z" }, child: [] }, { tag: "path", attr: { d: "M4 8H2v12c0 1.103.897 2 2 2h12v-2H4V8zm8.933 3.519-1.726-1.726-1.414 1.414 3.274 3.274 5.702-6.84-1.538-1.282z" }, child: [] }] })(e);
793
793
  }
794
- function br(e) {
794
+ function wr(e) {
795
795
  return H({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }, child: [] }] })(e);
796
796
  }
797
- function Fn(e) {
797
+ function Sn(e) {
798
798
  return H({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z" }, child: [] }] })(e);
799
799
  }
800
- function Sn(e) {
800
+ function Mn(e) {
801
801
  return H({ tag: "svg", attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M128 0C92.7 0 64 28.7 64 64l0 224-44.8 0C8.6 288 0 296.6 0 307.2C0 349.6 34.4 384 76.8 384L320 384l0-96-192 0 0-224 320 0 0 32 64 0 0-32c0-35.3-28.7-64-64-64L128 0zM512 128l-112 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-208-96 0c-17.7 0-32-14.3-32-32l0-96zm32 0l0 96 96 0-96-96z" }, child: [] }] })(e);
802
802
  }
803
803
  function Ue(e) {
@@ -815,10 +815,10 @@ function $t(e) {
815
815
  function ot(e) {
816
816
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2l48 0 32 0 40 0 72 0c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z" }, child: [] }] })(e);
817
817
  }
818
- function Mn(e) {
818
+ function Ln(e) {
819
819
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z" }, child: [] }] })(e);
820
820
  }
821
- function Ln(e) {
821
+ function On(e) {
822
822
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z" }, child: [] }] })(e);
823
823
  }
824
824
  function Bt(e) {
@@ -830,7 +830,7 @@ function Ht(e) {
830
830
  function Wt(e) {
831
831
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M48 448L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z" }, child: [] }] })(e);
832
832
  }
833
- function On(e) {
833
+ function kn(e) {
834
834
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l48 0c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l48 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm48 112c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm-6.3 71.8L82.1 335.9c-1.4 5.4-2.1 10.9-2.1 16.4c0 35.2 28.8 63.7 64 63.7s64-28.5 64-63.7c0-5.5-.7-11.1-2.1-16.4l-23.5-88.2c-3.7-14-16.4-23.8-30.9-23.8l-14.8 0c-14.5 0-27.2 9.7-30.9 23.8zM128 336l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z" }, child: [] }] })(e);
835
835
  }
836
836
  function qe(e) {
@@ -844,78 +844,84 @@ function mt(e) {
844
844
  }
845
845
  const Be = (e = () => {
846
846
  }) => {
847
- const [r, n] = L(!1), s = de(null), a = (c) => {
848
- var i;
849
- (i = s.current) != null && i.contains(c.target) ? n(!1) : (n(!0), e(c, s));
847
+ const [r, n] = L(!1), s = de(null), a = (i) => {
848
+ var c;
849
+ (c = s.current) != null && c.contains(i.target) ? n(!1) : (n(!0), e(i, s));
850
850
  };
851
- return se(() => (document.addEventListener("click", a, !0), document.addEventListener("mousedown", a, !0), () => {
851
+ return te(() => (document.addEventListener("click", a, !0), document.addEventListener("mousedown", a, !0), () => {
852
852
  document.removeEventListener("click", a, !0), document.removeEventListener("mousedown", a, !0);
853
853
  }), []), { ref: s, isClicked: r, setIsClicked: n };
854
- }, wr = Ie(), kn = ({ children: e, layout: r }) => {
854
+ }, Er = Ie(), _n = ({ children: e, layout: r }) => {
855
855
  const [n, s] = L(() => a(r));
856
- function a(c) {
857
- return ["list", "grid"].includes(c) ? c : "grid";
856
+ function a(i) {
857
+ return ["list", "grid"].includes(i) ? i : "grid";
858
858
  }
859
- return /* @__PURE__ */ t.jsx(wr.Provider, { value: { activeLayout: n, setActiveLayout: s }, children: e });
860
- }, Se = () => $e(wr), _n = ({ setShowToggleViewMenu: e, onLayoutChange: r }) => {
859
+ return /* @__PURE__ */ t.jsx(Er.Provider, { value: { activeLayout: n, setActiveLayout: s }, children: e });
860
+ }, Se = () => $e(Er), Nn = ({ setShowToggleViewMenu: e, onLayoutChange: r }) => {
861
861
  const n = Be(() => {
862
862
  e(!1);
863
- }), { activeLayout: s, setActiveLayout: a } = Se(), c = [
863
+ }), { activeLayout: s, setActiveLayout: a } = Se(), i = [
864
864
  {
865
865
  key: "grid",
866
866
  name: "Grid",
867
- icon: /* @__PURE__ */ t.jsx(mr, { size: 18 })
867
+ icon: /* @__PURE__ */ t.jsx(gr, { size: 18 })
868
868
  },
869
869
  {
870
870
  key: "list",
871
871
  name: "List",
872
872
  icon: /* @__PURE__ */ t.jsx(Ue, { size: 18 })
873
873
  }
874
- ], i = (l) => {
874
+ ], c = (l) => {
875
875
  a(l), r(l), e(!1);
876
876
  };
877
- return /* @__PURE__ */ t.jsx("div", { ref: n.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ t.jsx("ul", { role: "menu", "aria-orientation": "vertical", children: c.map((l) => /* @__PURE__ */ t.jsxs(
877
+ return /* @__PURE__ */ t.jsx("div", { ref: n.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ t.jsx("ul", { role: "menu", "aria-orientation": "vertical", children: i.map((l) => /* @__PURE__ */ t.jsxs(
878
878
  "li",
879
879
  {
880
880
  role: "menuitem",
881
- onClick: () => i(l.key),
882
- onKeyDown: () => i(l.key),
881
+ onClick: () => c(l.key),
882
+ onKeyDown: () => c(l.key),
883
883
  children: [
884
- /* @__PURE__ */ t.jsx("span", { children: l.key === s && /* @__PURE__ */ t.jsx(br, { size: 13 }) }),
884
+ /* @__PURE__ */ t.jsx("span", { children: l.key === s && /* @__PURE__ */ t.jsx(wr, { size: 13 }) }),
885
885
  /* @__PURE__ */ t.jsx("span", { children: l.icon }),
886
886
  /* @__PURE__ */ t.jsx("span", { children: l.name })
887
887
  ]
888
888
  },
889
889
  l.key
890
890
  )) }) });
891
- }, Er = Ie(), Nn = ({ children: e, filesData: r, onError: n }) => {
891
+ }, Rr = Ie(), zn = ({ children: e, filesData: r, onError: n }) => {
892
892
  const [s, a] = L([]);
893
- se(() => {
893
+ te(() => {
894
894
  a(r);
895
895
  }, [r]);
896
- const c = (i) => i.isDirectory ? s.filter((l) => l.path === `${i.path}/${l.name}`) : [];
897
- return /* @__PURE__ */ t.jsx(Er.Provider, { value: { files: s, setFiles: a, getChildren: c, onError: n }, children: e });
898
- }, Ge = () => $e(Er), Rr = Ie(), zn = ({ children: e, initialPath: r }) => {
899
- const { files: n } = Ge(), s = de(!1), [a, c] = L(""), [i, l] = L(null), [d, h] = L([]);
900
- return se(() => {
901
- Array.isArray(n) && n.length > 0 && (h(() => n.filter((f) => f.path === `${a}/${f.name}`)), l(() => n.find((f) => f.path === a) ?? null));
902
- }, [n, a]), se(() => {
903
- !s.current && Array.isArray(n) && n.length > 0 && (c(n.some((f) => f.path === r) ? r : ""), s.current = !0);
896
+ const i = (c) => c.isDirectory ? s.filter((l) => l.path === `${c.path}/${l.name}`) : [];
897
+ return /* @__PURE__ */ t.jsx(Rr.Provider, { value: { files: s, setFiles: a, getChildren: i, onError: n }, children: e });
898
+ }, Ge = () => $e(Rr), Yt = (e) => e.sort((r, n) => r.name.localeCompare(n.name)), An = (e) => {
899
+ const r = e.filter((i) => i.isDirectory), n = e.filter((i) => !i.isDirectory), s = Yt(r), a = Yt(n);
900
+ return [...s, ...a];
901
+ }, Pr = Ie(), Dn = ({ children: e, initialPath: r }) => {
902
+ const { files: n } = Ge(), s = de(!1), [a, i] = L(""), [c, l] = L(null), [d, p] = L([]);
903
+ return te(() => {
904
+ Array.isArray(n) && n.length > 0 && (p(() => {
905
+ const f = n.filter((h) => h.path === `${a}/${h.name}`);
906
+ return An(f);
907
+ }), l(() => n.find((f) => f.path === a) ?? null));
908
+ }, [n, a]), te(() => {
909
+ !s.current && Array.isArray(n) && n.length > 0 && (i(n.some((f) => f.path === r) ? r : ""), s.current = !0);
904
910
  }, [r, n]), /* @__PURE__ */ t.jsx(
905
- Rr.Provider,
911
+ Pr.Provider,
906
912
  {
907
913
  value: {
908
914
  currentPath: a,
909
- setCurrentPath: c,
910
- currentFolder: i,
915
+ setCurrentPath: i,
916
+ currentFolder: c,
911
917
  setCurrentFolder: l,
912
918
  currentPathFiles: d,
913
- setCurrentPathFiles: h
919
+ setCurrentPathFiles: p
914
920
  },
915
921
  children: e
916
922
  }
917
923
  );
918
- }, Ee = () => $e(Rr), Le = (e, r, ...n) => {
924
+ }, Ee = () => $e(Pr), Le = (e, r, ...n) => {
919
925
  try {
920
926
  if (typeof e == "function")
921
927
  e(...n);
@@ -926,24 +932,28 @@ const Be = (e = () => {
926
932
  } catch (s) {
927
933
  console.error(s.message);
928
934
  }
929
- }, Pr = Ie(), An = ({ children: e, onDownload: r }) => {
930
- const [n, s] = L([]), a = () => {
931
- Le(r, "onDownload", n);
935
+ }, Tr = Ie(), In = ({ children: e, onDownload: r, onSelect: n }) => {
936
+ const [s, a] = L([]);
937
+ te(() => {
938
+ s.length && n && n(s);
939
+ }, [s]);
940
+ const i = () => {
941
+ Le(r, "onDownload", s);
932
942
  };
933
- return /* @__PURE__ */ t.jsx(Pr.Provider, { value: { selectedFiles: n, setSelectedFiles: s, handleDownload: a }, children: e });
934
- }, Fe = () => $e(Pr), Tr = Ie(), Dn = ({ children: e, onPaste: r, onCut: n, onCopy: s }) => {
935
- const [a, c] = L(null), { selectedFiles: i, setSelectedFiles: l } = Fe(), d = (f) => {
936
- c({
937
- files: i,
943
+ return /* @__PURE__ */ t.jsx(Tr.Provider, { value: { selectedFiles: s, setSelectedFiles: a, handleDownload: i }, children: e });
944
+ }, Fe = () => $e(Tr), Fr = Ie(), $n = ({ children: e, onPaste: r, onCut: n, onCopy: s }) => {
945
+ const [a, i] = L(null), { selectedFiles: c, setSelectedFiles: l } = Fe(), d = (f) => {
946
+ i({
947
+ files: c,
938
948
  isMoving: f
939
- }), f ? n && n(i) : s && s(i);
940
- }, h = (f) => {
949
+ }), f ? n && n(c) : s && s(c);
950
+ }, p = (f) => {
941
951
  if (f && !f.isDirectory) return;
942
- const p = a.files, w = a.isMoving ? "move" : "copy";
943
- Le(r, "onPaste", p, f, w), a.isMoving && c(null), l([]);
952
+ const h = a.files, w = a.isMoving ? "move" : "copy";
953
+ Le(r, "onPaste", h, f, w), a.isMoving && i(null), l([]);
944
954
  };
945
- return /* @__PURE__ */ t.jsx(Tr.Provider, { value: { clipBoard: a, setClipBoard: c, handleCutCopy: d, handlePasting: h }, children: e });
946
- }, Je = () => $e(Tr), Fr = ({
955
+ return /* @__PURE__ */ t.jsx(Fr.Provider, { value: { clipBoard: a, setClipBoard: i, handleCutCopy: d, handlePasting: p }, children: e });
956
+ }, Je = () => $e(Fr), Sr = ({
947
957
  allowCreateFolder: e = !0,
948
958
  allowUploadFile: r = !0,
949
959
  onLayoutChange: n,
@@ -951,15 +961,15 @@ const Be = (e = () => {
951
961
  triggerAction: a
952
962
  }) => {
953
963
  var b;
954
- const [c, i] = L(!1), { currentFolder: l } = Ee(), { selectedFiles: d, setSelectedFiles: h, handleDownload: f } = Fe(), { clipBoard: p, setClipBoard: w, handleCutCopy: S, handlePasting: M } = Je(), { activeLayout: z } = Se(), D = [
964
+ const [i, c] = L(!1), { currentFolder: l } = Ee(), { selectedFiles: d, setSelectedFiles: p, handleDownload: f } = Fe(), { clipBoard: h, setClipBoard: w, handleCutCopy: S, handlePasting: M } = Je(), { activeLayout: z } = Se(), A = [
955
965
  {
956
- icon: /* @__PURE__ */ t.jsx(vr, { size: 17, strokeWidth: 0.3 }),
966
+ icon: /* @__PURE__ */ t.jsx(mr, { size: 17, strokeWidth: 0.3 }),
957
967
  text: "New folder",
958
968
  permission: e,
959
969
  onClick: () => a.show("createFolder")
960
970
  },
961
971
  {
962
- icon: /* @__PURE__ */ t.jsx(Cr, { size: 18 }),
972
+ icon: /* @__PURE__ */ t.jsx(jr, { size: 18 }),
963
973
  text: "Upload",
964
974
  permission: r,
965
975
  onClick: () => a.show("uploadFile")
@@ -967,17 +977,17 @@ const Be = (e = () => {
967
977
  {
968
978
  icon: /* @__PURE__ */ t.jsx(mt, { size: 18 }),
969
979
  text: "Paste",
970
- permission: !!p,
980
+ permission: !!h,
971
981
  onClick: j
972
982
  }
973
983
  ], C = [
974
984
  {
975
- icon: z === "grid" ? /* @__PURE__ */ t.jsx(mr, { size: 16 }) : /* @__PURE__ */ t.jsx(Ue, { size: 16 }),
985
+ icon: z === "grid" ? /* @__PURE__ */ t.jsx(gr, { size: 16 }) : /* @__PURE__ */ t.jsx(Ue, { size: 16 }),
976
986
  title: "Change View",
977
- onClick: () => i((u) => !u)
987
+ onClick: () => c((u) => !u)
978
988
  },
979
989
  {
980
- icon: /* @__PURE__ */ t.jsx(yr, { size: 16 }),
990
+ icon: /* @__PURE__ */ t.jsx(xr, { size: 16 }),
981
991
  title: "Refresh",
982
992
  onClick: () => {
983
993
  Le(s, "onRefresh"), w(null);
@@ -988,19 +998,19 @@ const Be = (e = () => {
988
998
  M(l);
989
999
  }
990
1000
  const y = () => {
991
- f(), h([]);
1001
+ f(), p([]);
992
1002
  };
993
1003
  return d.length > 0 ? /* @__PURE__ */ t.jsx("div", { className: "toolbar file-selected", children: /* @__PURE__ */ t.jsxs("div", { className: "file-action-container", children: [
994
1004
  /* @__PURE__ */ t.jsxs("div", { children: [
995
1005
  /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => S(!0), children: [
996
- /* @__PURE__ */ t.jsx(gr, { size: 18 }),
1006
+ /* @__PURE__ */ t.jsx(yr, { size: 18 }),
997
1007
  /* @__PURE__ */ t.jsx("span", { children: "Cut" })
998
1008
  ] }),
999
1009
  /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => S(!1), children: [
1000
- /* @__PURE__ */ t.jsx(pr, { strokeWidth: 0.1, size: 17 }),
1010
+ /* @__PURE__ */ t.jsx(vr, { strokeWidth: 0.1, size: 17 }),
1001
1011
  /* @__PURE__ */ t.jsx("span", { children: "Copy" })
1002
1012
  ] }),
1003
- ((b = p == null ? void 0 : p.files) == null ? void 0 : b.length) > 0 && /* @__PURE__ */ t.jsxs(
1013
+ ((b = h == null ? void 0 : h.files) == null ? void 0 : b.length) > 0 && /* @__PURE__ */ t.jsxs(
1004
1014
  "button",
1005
1015
  {
1006
1016
  className: "item-action file-action",
@@ -1017,7 +1027,7 @@ const Be = (e = () => {
1017
1027
  className: "item-action file-action",
1018
1028
  onClick: () => a.show("rename"),
1019
1029
  children: [
1020
- /* @__PURE__ */ t.jsx(jr, { size: 19 }),
1030
+ /* @__PURE__ */ t.jsx(br, { size: 19 }),
1021
1031
  /* @__PURE__ */ t.jsx("span", { children: "Rename" })
1022
1032
  ]
1023
1033
  }
@@ -1032,7 +1042,7 @@ const Be = (e = () => {
1032
1042
  className: "item-action file-action",
1033
1043
  onClick: () => a.show("delete"),
1034
1044
  children: [
1035
- /* @__PURE__ */ t.jsx(xr, { size: 19 }),
1045
+ /* @__PURE__ */ t.jsx(Cr, { size: 19 }),
1036
1046
  /* @__PURE__ */ t.jsx("span", { children: "Delete" })
1037
1047
  ]
1038
1048
  }
@@ -1043,7 +1053,7 @@ const Be = (e = () => {
1043
1053
  {
1044
1054
  className: "item-action file-action",
1045
1055
  title: "Clear selection",
1046
- onClick: () => h([]),
1056
+ onClick: () => p([]),
1047
1057
  children: [
1048
1058
  /* @__PURE__ */ t.jsxs("span", { children: [
1049
1059
  d.length,
@@ -1051,12 +1061,12 @@ const Be = (e = () => {
1051
1061
  d.length > 1 && "s",
1052
1062
  " selected"
1053
1063
  ] }),
1054
- /* @__PURE__ */ t.jsx(bn, { size: 18 })
1064
+ /* @__PURE__ */ t.jsx(wn, { size: 18 })
1055
1065
  ]
1056
1066
  }
1057
1067
  )
1058
1068
  ] }) }) : /* @__PURE__ */ t.jsx("div", { className: "toolbar", children: /* @__PURE__ */ t.jsxs("div", { className: "fm-toolbar", children: [
1059
- /* @__PURE__ */ t.jsx("div", { children: D.filter((u) => u.permission).map((u, g) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: u.onClick, children: [
1069
+ /* @__PURE__ */ t.jsx("div", { children: A.filter((u) => u.permission).map((u, g) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: u.onClick, children: [
1060
1070
  u.icon,
1061
1071
  /* @__PURE__ */ t.jsx("span", { children: u.text })
1062
1072
  ] }, g)) }),
@@ -1065,20 +1075,20 @@ const Be = (e = () => {
1065
1075
  /* @__PURE__ */ t.jsx("button", { className: "item-action icon-only", title: u.title, onClick: u.onClick, children: u.icon }),
1066
1076
  g !== C.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "item-separator" })
1067
1077
  ] }, g)),
1068
- c && /* @__PURE__ */ t.jsx(
1069
- _n,
1078
+ i && /* @__PURE__ */ t.jsx(
1079
+ Nn,
1070
1080
  {
1071
- setShowToggleViewMenu: i,
1081
+ setShowToggleViewMenu: c,
1072
1082
  onLayoutChange: n
1073
1083
  }
1074
1084
  )
1075
1085
  ] })
1076
1086
  ] }) });
1077
1087
  };
1078
- Fr.displayName = "Toolbar";
1079
- var In = process.env.NODE_ENV === "production";
1080
- function $n(e, r) {
1081
- if (!In) {
1088
+ Sr.displayName = "Toolbar";
1089
+ var Bn = process.env.NODE_ENV === "production";
1090
+ function Hn(e, r) {
1091
+ if (!Bn) {
1082
1092
  if (e)
1083
1093
  return;
1084
1094
  var n = "Warning: " + r;
@@ -1099,45 +1109,45 @@ function $n(e, r) {
1099
1109
  *
1100
1110
  * @license MIT
1101
1111
  */
1102
- var Bn = class extends Error {
1112
+ var Wn = class extends Error {
1103
1113
  constructor(e) {
1104
1114
  super(`react-collapsed: ${e}`);
1105
1115
  }
1106
- }, Ke = (...e) => $n(e[0], `[react-collapsed] -- ${e[1]}`);
1107
- function Sr(e) {
1116
+ }, Ke = (...e) => Hn(e[0], `[react-collapsed] -- ${e[1]}`);
1117
+ function Mr(e) {
1108
1118
  const r = de(e);
1109
- return se(() => {
1119
+ return te(() => {
1110
1120
  r.current = e;
1111
- }), dr((...n) => {
1121
+ }), fr((...n) => {
1112
1122
  var s;
1113
1123
  return (s = r.current) == null ? void 0 : s.call(r, ...n);
1114
1124
  }, []);
1115
1125
  }
1116
- function Hn(e, r, n) {
1117
- const [s, a] = L(r), c = de(typeof e < "u"), i = c.current ? e : s, l = Sr(n), d = dr(
1118
- (h) => {
1119
- const p = typeof h == "function" ? h(i) : h;
1120
- c.current || a(p), l == null || l(p);
1126
+ function Vn(e, r, n) {
1127
+ const [s, a] = L(r), i = de(typeof e < "u"), c = i.current ? e : s, l = Mr(n), d = fr(
1128
+ (p) => {
1129
+ const h = typeof p == "function" ? p(c) : p;
1130
+ i.current || a(h), l == null || l(h);
1121
1131
  },
1122
- [l, i]
1132
+ [l, c]
1123
1133
  );
1124
- return se(() => {
1134
+ return te(() => {
1125
1135
  Ke(
1126
- !(c.current && e == null),
1136
+ !(i.current && e == null),
1127
1137
  "`isExpanded` state is changing from controlled to uncontrolled. useCollapse should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled collapse for the lifetime of the component. Check the `isExpanded` prop."
1128
1138
  ), Ke(
1129
- !(!c.current && e != null),
1139
+ !(!i.current && e != null),
1130
1140
  "`isExpanded` state is changing from uncontrolled to controlled. useCollapse should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled collapse for the lifetime of the component. Check the `isExpanded` prop."
1131
1141
  );
1132
- }, [e]), [i, d];
1142
+ }, [e]), [c, d];
1133
1143
  }
1134
- var Wn = "(prefers-reduced-motion: reduce)";
1135
- function Vn() {
1144
+ var Yn = "(prefers-reduced-motion: reduce)";
1145
+ function Un() {
1136
1146
  const [e, r] = L(!1);
1137
- return se(() => {
1147
+ return te(() => {
1138
1148
  if (typeof window > "u" || typeof window.matchMedia != "function")
1139
1149
  return;
1140
- const n = window.matchMedia(Wn);
1150
+ const n = window.matchMedia(Yn);
1141
1151
  r(n.matches);
1142
1152
  const s = (a) => {
1143
1153
  r(a.matches);
@@ -1152,49 +1162,49 @@ function Vn() {
1152
1162
  };
1153
1163
  }, []), e;
1154
1164
  }
1155
- var Yn = De.useId || (() => {
1165
+ var qn = De.useId || (() => {
1156
1166
  });
1157
- function Un() {
1158
- return Yn() ?? "";
1159
- }
1160
- var qn = typeof window < "u" ? De.useLayoutEffect : De.useEffect, at = !1, Kn = 0, Yt = () => ++Kn;
1161
- function Xn(e) {
1162
- const r = e || (at ? Yt() : null), [n, s] = De.useState(r);
1163
- return qn(() => {
1164
- n === null && s(Yt());
1167
+ function Kn() {
1168
+ return qn() ?? "";
1169
+ }
1170
+ var Xn = typeof window < "u" ? De.useLayoutEffect : De.useEffect, at = !1, Gn = 0, Ut = () => ++Gn;
1171
+ function Jn(e) {
1172
+ const r = e || (at ? Ut() : null), [n, s] = De.useState(r);
1173
+ return Xn(() => {
1174
+ n === null && s(Ut());
1165
1175
  }, []), De.useEffect(() => {
1166
1176
  at === !1 && (at = !0);
1167
1177
  }, []), n != null ? String(n) : void 0;
1168
1178
  }
1169
- function Gn(e) {
1170
- const r = Un(), n = Xn(e);
1179
+ function Zn(e) {
1180
+ const r = Kn(), n = Jn(e);
1171
1181
  return typeof e == "string" ? e : typeof r == "string" ? r : n;
1172
1182
  }
1173
- function Jn(e, r) {
1183
+ function Qn(e, r) {
1174
1184
  const n = performance.now(), s = {};
1175
1185
  function a() {
1176
- s.id = requestAnimationFrame((c) => {
1177
- c - n > r ? e() : a();
1186
+ s.id = requestAnimationFrame((i) => {
1187
+ i - n > r ? e() : a();
1178
1188
  });
1179
1189
  }
1180
1190
  return a(), s;
1181
1191
  }
1182
- function Ut(e) {
1192
+ function qt(e) {
1183
1193
  e.id && cancelAnimationFrame(e.id);
1184
1194
  }
1185
- function qt(e) {
1195
+ function Kt(e) {
1186
1196
  return e != null && e.current ? e.current.scrollHeight : (Ke(
1187
1197
  !0,
1188
1198
  "Was not able to find a ref to the collapse element via `getCollapseProps`. Ensure that the element exposes its `ref` prop. If it exposes the ref prop under a different name (like `innerRef`), use the `refKey` property to change it. Example:\n\nconst collapseProps = getCollapseProps({refKey: 'innerRef'})"
1189
1199
  ), 0);
1190
1200
  }
1191
- function Zn(e) {
1201
+ function es(e) {
1192
1202
  if (!e || typeof e == "string")
1193
1203
  return 0;
1194
1204
  const r = e / 36;
1195
1205
  return Math.round((4 + 15 * r ** 0.25 + r / 5) * 10);
1196
1206
  }
1197
- function Qn(e, r) {
1207
+ function ts(e, r) {
1198
1208
  if (e != null)
1199
1209
  if (typeof e == "function")
1200
1210
  e(r);
@@ -1202,17 +1212,17 @@ function Qn(e, r) {
1202
1212
  try {
1203
1213
  e.current = r;
1204
1214
  } catch {
1205
- throw new Bn(`Cannot assign value "${r}" to ref "${e}"`);
1215
+ throw new Wn(`Cannot assign value "${r}" to ref "${e}"`);
1206
1216
  }
1207
1217
  }
1208
- function Kt(...e) {
1218
+ function Xt(...e) {
1209
1219
  return e.every((r) => r == null) ? null : (r) => {
1210
1220
  e.forEach((n) => {
1211
- Qn(n, r);
1221
+ ts(n, r);
1212
1222
  });
1213
1223
  };
1214
1224
  }
1215
- function es(e) {
1225
+ function rs(e) {
1216
1226
  let r = (n) => {
1217
1227
  };
1218
1228
  r = (n) => {
@@ -1231,46 +1241,46 @@ After: <div {...getCollapseProps()}>
1231
1241
  </div>
1232
1242
  </div>`
1233
1243
  );
1234
- }, se(() => {
1244
+ }, te(() => {
1235
1245
  r(e);
1236
1246
  }, [e]);
1237
1247
  }
1238
- var ts = typeof window > "u" ? se : ln;
1239
- function rs({
1248
+ var ns = typeof window > "u" ? te : un;
1249
+ function ss({
1240
1250
  duration: e,
1241
1251
  easing: r = "cubic-bezier(0.4, 0, 0.2, 1)",
1242
1252
  onTransitionStateChange: n = () => {
1243
1253
  },
1244
1254
  isExpanded: s,
1245
1255
  defaultExpanded: a = !1,
1246
- hasDisabledAnimation: c,
1247
- id: i,
1256
+ hasDisabledAnimation: i,
1257
+ id: c,
1248
1258
  ...l
1249
1259
  } = {}) {
1250
- const d = Sr(n), h = Gn(i ? `${i}` : void 0), [f, p] = Hn(
1260
+ const d = Mr(n), p = Zn(c ? `${c}` : void 0), [f, h] = Vn(
1251
1261
  s,
1252
1262
  a
1253
- ), w = de(f), [S, M] = L(!1), z = Vn(), D = c ?? z, C = de(), j = de(), y = de(null), [b, u] = L(null);
1254
- es(y);
1263
+ ), w = de(f), [S, M] = L(!1), z = Un(), A = i ?? z, C = de(), j = de(), y = de(null), [b, u] = L(null);
1264
+ rs(y);
1255
1265
  const g = `${l.collapsedHeight || 0}px`;
1256
1266
  function _(x) {
1257
1267
  if (!y.current)
1258
1268
  return;
1259
1269
  const R = y.current;
1260
1270
  for (const F in x) {
1261
- const A = x[F];
1262
- A ? R.style[F] = A : R.style.removeProperty(F);
1271
+ const D = x[F];
1272
+ D ? R.style[F] = D : R.style.removeProperty(F);
1263
1273
  }
1264
1274
  }
1265
- return ts(() => {
1275
+ return ns(() => {
1266
1276
  if (!y.current || f === w.current)
1267
1277
  return;
1268
1278
  w.current = f;
1269
- function R(N) {
1270
- return D ? 0 : e ?? Zn(N);
1279
+ function R(k) {
1280
+ return A ? 0 : e ?? es(k);
1271
1281
  }
1272
- const F = (N) => `height ${R(N)}ms ${r}`, A = (N) => {
1273
- function k() {
1282
+ const F = (k) => `height ${R(k)}ms ${r}`, D = (k) => {
1283
+ function N() {
1274
1284
  f ? (_({
1275
1285
  height: "",
1276
1286
  overflow: "",
@@ -1278,7 +1288,7 @@ function rs({
1278
1288
  display: ""
1279
1289
  }), d("expandEnd")) : (_({ transition: "" }), d("collapseEnd")), M(!1);
1280
1290
  }
1281
- j.current && Ut(j.current), j.current = Jn(k, N);
1291
+ j.current && qt(j.current), j.current = Qn(N, k);
1282
1292
  };
1283
1293
  return M(!0), f ? C.current = requestAnimationFrame(() => {
1284
1294
  d("expandStart"), _({
@@ -1287,15 +1297,15 @@ function rs({
1287
1297
  height: g
1288
1298
  }), C.current = requestAnimationFrame(() => {
1289
1299
  d("expanding");
1290
- const N = qt(y);
1291
- A(R(N)), y.current && (y.current.style.transition = F(N), y.current.style.height = `${N}px`);
1300
+ const k = Kt(y);
1301
+ D(R(k)), y.current && (y.current.style.transition = F(k), y.current.style.height = `${k}px`);
1292
1302
  });
1293
1303
  }) : C.current = requestAnimationFrame(() => {
1294
1304
  d("collapseStart");
1295
- const N = qt(y);
1296
- A(R(N)), _({
1297
- transition: F(N),
1298
- height: `${N}px`
1305
+ const k = Kt(y);
1306
+ D(R(k)), _({
1307
+ transition: F(k),
1308
+ height: `${k}px`
1299
1309
  }), C.current = requestAnimationFrame(() => {
1300
1310
  d("collapsing"), _({
1301
1311
  height: g,
@@ -1303,33 +1313,33 @@ function rs({
1303
1313
  });
1304
1314
  });
1305
1315
  }), () => {
1306
- C.current && cancelAnimationFrame(C.current), j.current && Ut(j.current);
1316
+ C.current && cancelAnimationFrame(C.current), j.current && qt(j.current);
1307
1317
  };
1308
1318
  }, [
1309
1319
  f,
1310
1320
  g,
1311
- D,
1321
+ A,
1312
1322
  e,
1313
1323
  r,
1314
1324
  d
1315
1325
  ]), {
1316
1326
  isExpanded: f,
1317
- setExpanded: p,
1327
+ setExpanded: h,
1318
1328
  getToggleProps(x) {
1319
- const { disabled: R, onClick: F, refKey: A, ...N } = {
1329
+ const { disabled: R, onClick: F, refKey: D, ...k } = {
1320
1330
  refKey: "ref",
1321
1331
  onClick() {
1322
1332
  },
1323
1333
  disabled: !1,
1324
1334
  ...x
1325
- }, k = b ? b.tagName === "BUTTON" : void 0, X = x == null ? void 0 : x[A || "ref"], oe = {
1326
- id: `react-collapsed-toggle-${h}`,
1327
- "aria-controls": `react-collapsed-panel-${h}`,
1335
+ }, N = b ? b.tagName === "BUTTON" : void 0, K = x == null ? void 0 : x[D || "ref"], oe = {
1336
+ id: `react-collapsed-toggle-${p}`,
1337
+ "aria-controls": `react-collapsed-panel-${p}`,
1328
1338
  "aria-expanded": f,
1329
1339
  onClick(he) {
1330
- R || (F == null || F(he), p((xe) => !xe));
1340
+ R || (F == null || F(he), h((xe) => !xe));
1331
1341
  },
1332
- [A || "ref"]: Kt(X, u)
1342
+ [D || "ref"]: Xt(K, u)
1333
1343
  }, ae = {
1334
1344
  type: "button",
1335
1345
  disabled: R ? !0 : void 0
@@ -1338,22 +1348,22 @@ function rs({
1338
1348
  role: "button",
1339
1349
  tabIndex: R ? -1 : 0
1340
1350
  };
1341
- return k === !1 ? { ...oe, ...Q, ...N } : k === !0 ? { ...oe, ...ae, ...N } : {
1351
+ return N === !1 ? { ...oe, ...Q, ...k } : N === !0 ? { ...oe, ...ae, ...k } : {
1342
1352
  ...oe,
1343
1353
  ...ae,
1344
1354
  ...Q,
1345
- ...N
1355
+ ...k
1346
1356
  };
1347
1357
  },
1348
1358
  getCollapseProps(x) {
1349
- const { style: R, refKey: F } = { refKey: "ref", style: {}, ...x }, A = x == null ? void 0 : x[F || "ref"];
1359
+ const { style: R, refKey: F } = { refKey: "ref", style: {}, ...x }, D = x == null ? void 0 : x[F || "ref"];
1350
1360
  return {
1351
- id: `react-collapsed-panel-${h}`,
1361
+ id: `react-collapsed-panel-${p}`,
1352
1362
  "aria-hidden": !f,
1353
- "aria-labelledby": `react-collapsed-toggle-${h}`,
1363
+ "aria-labelledby": `react-collapsed-toggle-${p}`,
1354
1364
  role: "region",
1355
1365
  ...x,
1356
- [F || "ref"]: Kt(y, A),
1366
+ [F || "ref"]: Xt(y, D),
1357
1367
  style: {
1358
1368
  boxSizing: "border-box",
1359
1369
  ...!S && !f ? {
@@ -1369,38 +1379,38 @@ function rs({
1369
1379
  }
1370
1380
  };
1371
1381
  }
1372
- const ns = ({ open: e, children: r }) => {
1373
- const [n, s] = L(e), { getCollapseProps: a } = rs({
1382
+ const os = ({ open: e, children: r }) => {
1383
+ const [n, s] = L(e), { getCollapseProps: a } = ss({
1374
1384
  isExpanded: n,
1375
1385
  duration: 500
1376
1386
  });
1377
- return se(() => {
1387
+ return te(() => {
1378
1388
  s(e);
1379
1389
  }, [e, s]), /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx("div", { ...a(), children: r }) });
1380
1390
  };
1381
- function ss(e) {
1391
+ function as(e) {
1382
1392
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z" }, child: [] }] })(e);
1383
1393
  }
1384
- function os(e) {
1394
+ function is(e) {
1385
1395
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z" }, child: [] }] })(e);
1386
1396
  }
1387
- function Xt(e) {
1397
+ function Gt(e) {
1388
1398
  return H({ tag: "svg", attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z" }, child: [] }] })(e);
1389
1399
  }
1390
- function Gt(e) {
1400
+ function Jt(e) {
1391
1401
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z" }, child: [] }] })(e);
1392
1402
  }
1393
- const Mr = ({ folder: e }) => {
1394
- const [r, n] = L(!1), [s, a] = L(!1), { currentPath: c, setCurrentPath: i } = Ee(), l = () => {
1395
- a(!0), i(e.path);
1396
- }, d = (h) => {
1397
- h.stopPropagation(), n((f) => !f);
1403
+ const Lr = ({ folder: e }) => {
1404
+ const [r, n] = L(!1), [s, a] = L(!1), { currentPath: i, setCurrentPath: c } = Ee(), l = () => {
1405
+ a(!0), c(e.path);
1406
+ }, d = (p) => {
1407
+ p.stopPropagation(), n((f) => !f);
1398
1408
  };
1399
- return se(() => {
1400
- a(c === e.path);
1401
- const h = c.split("/");
1402
- h.pop(), h.join("/") === e.path && n(!0);
1403
- }, [c]), e.subDirectories.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1409
+ return te(() => {
1410
+ a(i === e.path);
1411
+ const p = i.split("/");
1412
+ p.pop(), p.join("/") === e.path && n(!0);
1413
+ }, [i]), e.subDirectories.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1404
1414
  /* @__PURE__ */ t.jsxs(
1405
1415
  "div",
1406
1416
  {
@@ -1408,20 +1418,20 @@ const Mr = ({ folder: e }) => {
1408
1418
  onClick: l,
1409
1419
  children: [
1410
1420
  /* @__PURE__ */ t.jsx("span", { onClick: d, children: /* @__PURE__ */ t.jsx(
1411
- wn,
1421
+ En,
1412
1422
  {
1413
1423
  size: 20,
1414
1424
  className: `folder-icon-default ${r ? "folder-rotate-down" : ""}`
1415
1425
  }
1416
1426
  ) }),
1417
1427
  /* @__PURE__ */ t.jsxs("div", { className: "sb-folder-details", children: [
1418
- r || s ? /* @__PURE__ */ t.jsx(Xt, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(Gt, { size: 17, className: "folder-close-icon" }),
1428
+ r || s ? /* @__PURE__ */ t.jsx(Gt, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(Jt, { size: 17, className: "folder-close-icon" }),
1419
1429
  /* @__PURE__ */ t.jsx("span", { className: "sb-folder-name", title: e.name, children: e.name })
1420
1430
  ] })
1421
1431
  ]
1422
1432
  }
1423
1433
  ),
1424
- /* @__PURE__ */ t.jsx(ns, { open: r, children: /* @__PURE__ */ t.jsx("div", { className: "folder-collapsible", children: e.subDirectories.map((h, f) => /* @__PURE__ */ t.jsx(Mr, { folder: h }, f)) }) })
1434
+ /* @__PURE__ */ t.jsx(os, { open: r, children: /* @__PURE__ */ t.jsx("div", { className: "folder-collapsible", children: e.subDirectories.map((p, f) => /* @__PURE__ */ t.jsx(Lr, { folder: p }, f)) }) })
1425
1435
  ] }) : /* @__PURE__ */ t.jsxs(
1426
1436
  "div",
1427
1437
  {
@@ -1430,59 +1440,59 @@ const Mr = ({ folder: e }) => {
1430
1440
  children: [
1431
1441
  /* @__PURE__ */ t.jsx("span", { className: "non-expanable" }),
1432
1442
  /* @__PURE__ */ t.jsxs("div", { className: "sb-folder-details", children: [
1433
- s ? /* @__PURE__ */ t.jsx(Xt, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(Gt, { size: 17, className: "folder-close-icon" }),
1443
+ s ? /* @__PURE__ */ t.jsx(Gt, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(Jt, { size: 17, className: "folder-close-icon" }),
1434
1444
  /* @__PURE__ */ t.jsx("span", { className: "sb-folder-name", title: e.name, children: e.name })
1435
1445
  ] })
1436
1446
  ]
1437
1447
  }
1438
1448
  );
1439
- }, as = (e) => e == null ? void 0 : e.split("/").slice(0, -1).join("/"), Lr = () => {
1440
- const [e, r] = L([]), { files: n } = Ge(), s = (a, c) => {
1441
- var i;
1442
- return c[a] ? (i = c[a]) == null ? void 0 : i.map((l) => ({
1449
+ }, cs = (e) => e == null ? void 0 : e.split("/").slice(0, -1).join("/"), Or = () => {
1450
+ const [e, r] = L([]), { files: n } = Ge(), s = (a, i) => {
1451
+ var c;
1452
+ return i[a] ? (c = i[a]) == null ? void 0 : c.map((l) => ({
1443
1453
  ...l,
1444
- subDirectories: s(l.path, c)
1454
+ subDirectories: s(l.path, i)
1445
1455
  })) : [];
1446
1456
  };
1447
- return se(() => {
1457
+ return te(() => {
1448
1458
  if (Array.isArray(n)) {
1449
- const a = n.filter((i) => i.isDirectory), c = Object.groupBy(a, ({ path: i }) => as(i));
1450
- r(() => s("", c));
1459
+ const a = n.filter((c) => c.isDirectory), i = Object.groupBy(a, ({ path: c }) => cs(c));
1460
+ r(() => s("", i));
1451
1461
  }
1452
- }, [n]), /* @__PURE__ */ t.jsx("div", { className: "sb-folders-list", children: (e == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((a, c) => /* @__PURE__ */ t.jsx(Mr, { folder: a }, c)) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
1462
+ }, [n]), /* @__PURE__ */ t.jsx("div", { className: "sb-folders-list", children: (e == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((a, i) => /* @__PURE__ */ t.jsx(Lr, { folder: a }, i)) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
1453
1463
  };
1454
- Lr.displayName = "NavigationPane";
1455
- const Or = () => {
1456
- const [e, r] = L([]), [n, s] = L([]), [a, c] = L([]), [i, l] = L(!1), { currentPath: d, setCurrentPath: h } = Ee(), f = de(null), p = de([]), w = de(null), S = Be(() => {
1464
+ Or.displayName = "NavigationPane";
1465
+ const kr = () => {
1466
+ const [e, r] = L([]), [n, s] = L([]), [a, i] = L([]), [c, l] = L(!1), { currentPath: d, setCurrentPath: p } = Ee(), f = de(null), h = de([]), w = de(null), S = Be(() => {
1457
1467
  l(!1);
1458
1468
  });
1459
- se(() => {
1469
+ te(() => {
1460
1470
  r(() => {
1461
1471
  let j = "";
1462
1472
  return d == null ? void 0 : d.split("/").map((y) => ({
1463
1473
  name: y || "Home",
1464
1474
  path: y === "" ? y : j += `/${y}`
1465
1475
  }));
1466
- }), s([]), c([]);
1476
+ }), s([]), i([]);
1467
1477
  }, [d]);
1468
1478
  const M = (j) => {
1469
- h(j);
1479
+ p(j);
1470
1480
  }, z = () => {
1471
1481
  const j = f.current.clientWidth, y = getComputedStyle(f.current), b = parseFloat(y.paddingLeft), u = n.length > 0 ? 1 : 0, g = parseFloat(y.gap) * (e.length + u);
1472
1482
  return j - (b + g);
1473
- }, D = () => {
1483
+ }, A = () => {
1474
1484
  var u;
1475
- const j = z(), y = p.current.reduce((g, _) => _ ? g + _.clientWidth : g, 0), b = ((u = w.current) == null ? void 0 : u.clientWidth) || 0;
1485
+ const j = z(), y = h.current.reduce((g, _) => _ ? g + _.clientWidth : g, 0), b = ((u = w.current) == null ? void 0 : u.clientWidth) || 0;
1476
1486
  return j - (y + b);
1477
1487
  }, C = () => f.current.scrollWidth > f.current.clientWidth;
1478
- return se(() => {
1488
+ return te(() => {
1479
1489
  var j;
1480
1490
  if (C()) {
1481
- const y = e[1], b = (j = p.current[1]) == null ? void 0 : j.clientWidth;
1482
- c((u) => [...u, b]), s((u) => [...u, y]), r((u) => u.filter((g, _) => _ !== 1));
1483
- } else if (n.length > 0 && D() > a.at(-1)) {
1491
+ const y = e[1], b = (j = h.current[1]) == null ? void 0 : j.clientWidth;
1492
+ i((u) => [...u, b]), s((u) => [...u, y]), r((u) => u.filter((g, _) => _ !== 1));
1493
+ } else if (n.length > 0 && A() > a.at(-1)) {
1484
1494
  const y = [e[0], n.at(-1), ...e.slice(1)];
1485
- r(y), s((b) => b.slice(0, -1)), c((b) => b.slice(0, -1));
1495
+ r(y), s((b) => b.slice(0, -1)), i((b) => b.slice(0, -1));
1486
1496
  }
1487
1497
  }, [C]), /* @__PURE__ */ t.jsxs("div", { className: "bread-crumb-container", children: [
1488
1498
  /* @__PURE__ */ t.jsx("div", { className: "breadcrumb", ref: f, children: e.map((j, y) => /* @__PURE__ */ t.jsxs("div", { style: { display: "contents" }, children: [
@@ -1491,9 +1501,9 @@ const Or = () => {
1491
1501
  {
1492
1502
  className: "folder-name",
1493
1503
  onClick: () => M(j.path),
1494
- ref: (b) => p.current[y] = b,
1504
+ ref: (b) => h.current[y] = b,
1495
1505
  children: [
1496
- y === 0 ? /* @__PURE__ */ t.jsx(jn, {}) : /* @__PURE__ */ t.jsx(Pn, {}),
1506
+ y === 0 ? /* @__PURE__ */ t.jsx(bn, {}) : /* @__PURE__ */ t.jsx(Tn, {}),
1497
1507
  j.name
1498
1508
  ]
1499
1509
  }
@@ -1505,11 +1515,11 @@ const Or = () => {
1505
1515
  onClick: () => l(!0),
1506
1516
  ref: w,
1507
1517
  title: "Show more folders",
1508
- children: /* @__PURE__ */ t.jsx(Rn, { size: 22, className: "hidden-folders" })
1518
+ children: /* @__PURE__ */ t.jsx(Pn, { size: 22, className: "hidden-folders" })
1509
1519
  }
1510
1520
  )
1511
1521
  ] }, y)) }),
1512
- i && /* @__PURE__ */ t.jsx("ul", { ref: S.ref, className: "hidden-folders-container", children: n.map((j, y) => /* @__PURE__ */ t.jsx(
1522
+ c && /* @__PURE__ */ t.jsx("ul", { ref: S.ref, className: "hidden-folders-container", children: n.map((j, y) => /* @__PURE__ */ t.jsx(
1513
1523
  "li",
1514
1524
  {
1515
1525
  onClick: () => {
@@ -1521,25 +1531,25 @@ const Or = () => {
1521
1531
  )) })
1522
1532
  ] });
1523
1533
  };
1524
- Or.displayName = "BreadCrumb";
1534
+ kr.displayName = "BreadCrumb";
1525
1535
  const Xe = (e) => ({
1526
- pdf: /* @__PURE__ */ t.jsx(Ln, { size: e }),
1536
+ pdf: /* @__PURE__ */ t.jsx(On, { size: e }),
1527
1537
  jpg: /* @__PURE__ */ t.jsx(ot, { size: e }),
1528
1538
  jpeg: /* @__PURE__ */ t.jsx(ot, { size: e }),
1529
1539
  png: /* @__PURE__ */ t.jsx(ot, { size: e }),
1530
- txt: /* @__PURE__ */ t.jsx(Mn, { size: e }),
1540
+ txt: /* @__PURE__ */ t.jsx(Ln, { size: e }),
1531
1541
  doc: /* @__PURE__ */ t.jsx(Wt, { size: e }),
1532
1542
  docx: /* @__PURE__ */ t.jsx(Wt, { size: e }),
1533
1543
  mp4: /* @__PURE__ */ t.jsx(Ht, { size: e }),
1534
1544
  webm: /* @__PURE__ */ t.jsx(Ht, { size: e }),
1535
1545
  mp3: /* @__PURE__ */ t.jsx(It, { size: e }),
1536
1546
  m4a: /* @__PURE__ */ t.jsx(It, { size: e }),
1537
- zip: /* @__PURE__ */ t.jsx(On, { size: e }),
1547
+ zip: /* @__PURE__ */ t.jsx(kn, { size: e }),
1538
1548
  ppt: /* @__PURE__ */ t.jsx(Bt, { size: e }),
1539
1549
  pptx: /* @__PURE__ */ t.jsx(Bt, { size: e }),
1540
1550
  xls: /* @__PURE__ */ t.jsx($t, { size: e }),
1541
1551
  xlsx: /* @__PURE__ */ t.jsx($t, { size: e }),
1542
- exe: /* @__PURE__ */ t.jsx(Sn, { size: e }),
1552
+ exe: /* @__PURE__ */ t.jsx(Mn, { size: e }),
1543
1553
  html: /* @__PURE__ */ t.jsx(pe, { size: e }),
1544
1554
  css: /* @__PURE__ */ t.jsx(pe, { size: e }),
1545
1555
  js: /* @__PURE__ */ t.jsx(pe, { size: e }),
@@ -1557,23 +1567,23 @@ const Xe = (e) => ({
1557
1567
  csv: /* @__PURE__ */ t.jsx(pe, { size: e }),
1558
1568
  md: /* @__PURE__ */ t.jsx(pe, { size: e }),
1559
1569
  svg: /* @__PURE__ */ t.jsx(pe, { size: e })
1560
- }), kr = (e, r, n) => {
1570
+ }), _r = (e, r, n) => {
1561
1571
  if (n.find((s) => s.name === e)) {
1562
1572
  const s = "", a = e;
1563
- let c = 0;
1564
- const i = new RegExp(`${a} \\(\\d+\\)`);
1565
- n.forEach((h) => {
1566
- const f = h.isDirectory ? h.name : h.name.split(".").slice(0, -1).join(".");
1567
- if (i.test(f)) {
1568
- const p = f.split(`${a} (`).pop().slice(0, -1), w = parseInt(p);
1569
- !isNaN(w) && w > c && (c = w);
1573
+ let i = 0;
1574
+ const c = new RegExp(`${a} \\(\\d+\\)`);
1575
+ n.forEach((p) => {
1576
+ const f = p.isDirectory ? p.name : p.name.split(".").slice(0, -1).join(".");
1577
+ if (c.test(f)) {
1578
+ const h = f.split(`${a} (`).pop().slice(0, -1), w = parseInt(h);
1579
+ !isNaN(w) && w > i && (i = w);
1570
1580
  }
1571
1581
  });
1572
- const l = ` (${++c})`;
1582
+ const l = ` (${++i})`;
1573
1583
  return a + l + s;
1574
1584
  } else
1575
1585
  return e;
1576
- }, _r = ({ nameInputRef: e, maxLength: r, value: n, onChange: s, onKeyDown: a, onClick: c, rows: i }) => /* @__PURE__ */ t.jsx(
1586
+ }, Nr = ({ nameInputRef: e, maxLength: r, value: n, onChange: s, onKeyDown: a, onClick: i, rows: c }) => /* @__PURE__ */ t.jsx(
1577
1587
  "textarea",
1578
1588
  {
1579
1589
  ref: e,
@@ -1582,55 +1592,55 @@ const Xe = (e) => ({
1582
1592
  value: n,
1583
1593
  onChange: s,
1584
1594
  onKeyDown: a,
1585
- onClick: c,
1586
- rows: i
1595
+ onClick: i,
1596
+ rows: c
1587
1597
  }
1588
- ), Nr = ({ message: e, xPlacement: r, yPlacement: n }) => /* @__PURE__ */ t.jsx("p", { className: `error-tooltip ${r} ${n}`, children: e }), is = 220, cs = ({ filesViewRef: e, file: r, onCreateFolder: n, triggerAction: s }) => {
1589
- const [a, c] = L(r.name), [i, l] = L(!1), [d, h] = L(""), [f, p] = L("right"), [w, S] = L("bottom"), M = Be((g) => {
1598
+ ), zr = ({ message: e, xPlacement: r, yPlacement: n }) => /* @__PURE__ */ t.jsx("p", { className: `error-tooltip ${r} ${n}`, children: e }), ls = 220, us = ({ filesViewRef: e, file: r, onCreateFolder: n, triggerAction: s }) => {
1599
+ const [a, i] = L(r.name), [c, l] = L(!1), [d, p] = L(""), [f, h] = L("right"), [w, S] = L("bottom"), M = Be((g) => {
1590
1600
  g.preventDefault(), g.stopPropagation();
1591
- }), { currentFolder: z, currentPathFiles: D, setCurrentPathFiles: C } = Ee(), { activeLayout: j } = Se(), y = (g) => {
1592
- c(g.target.value), l(!1);
1601
+ }), { currentFolder: z, currentPathFiles: A, setCurrentPathFiles: C } = Ee(), { activeLayout: j } = Se(), y = (g) => {
1602
+ i(g.target.value), l(!1);
1593
1603
  }, b = (g) => {
1594
1604
  if (g.stopPropagation(), g.key === "Enter") {
1595
1605
  g.preventDefault(), u();
1596
1606
  return;
1597
1607
  }
1598
- g.key === "Escape" && (g.preventDefault(), s.close(), C((x) => x.filter((R) => R.key !== r.key))), /[\\/:*?"<>|]/.test(g.key) ? (g.preventDefault(), h(
1608
+ g.key === "Escape" && (g.preventDefault(), s.close(), C((x) => x.filter((R) => R.key !== r.key))), /[\\/:*?"<>|]/.test(g.key) ? (g.preventDefault(), p(
1599
1609
  `A file name can't contain any of the following characters: \\ / : * ? " < > |`
1600
- ), l(!0)) : (l(!1), h(""));
1610
+ ), l(!0)) : (l(!1), p(""));
1601
1611
  };
1602
- se(() => {
1603
- if (i) {
1612
+ te(() => {
1613
+ if (c) {
1604
1614
  const g = setTimeout(() => {
1605
- l(!1), h("");
1615
+ l(!1), p("");
1606
1616
  }, 7e3);
1607
1617
  return () => clearTimeout(g);
1608
1618
  }
1609
- }, [i]);
1619
+ }, [c]);
1610
1620
  function u() {
1611
1621
  var R, F;
1612
1622
  let g = a.trim();
1613
- const _ = D.filter((A) => !(A.key && A.key === r.key));
1614
- if (_.find((A) => A.name.toLowerCase() === g.toLowerCase())) {
1615
- h(`This destination already contains a folder named '${g}'.`), l(!0), (R = M.ref.current) == null || R.focus(), (F = M.ref.current) == null || F.select(), M.setIsClicked(!1);
1623
+ const _ = A.filter((D) => !(D.key && D.key === r.key));
1624
+ if (_.find((D) => D.name.toLowerCase() === g.toLowerCase())) {
1625
+ p(`This destination already contains a folder named '${g}'.`), l(!0), (R = M.ref.current) == null || R.focus(), (F = M.ref.current) == null || F.select(), M.setIsClicked(!1);
1616
1626
  return;
1617
1627
  }
1618
- g === "" && (g = kr("New Folder", !0, _)), Le(n, "onCreateFolder", g, z), C((A) => A.filter((N) => N.key !== r.key)), s.close();
1628
+ g === "" && (g = _r("New Folder", !0, _)), Le(n, "onCreateFolder", g, z), C((D) => D.filter((k) => k.key !== r.key)), s.close();
1619
1629
  }
1620
- return se(() => {
1630
+ return te(() => {
1621
1631
  var g, _, x;
1622
1632
  if ((g = M.ref.current) == null || g.focus(), (_ = M.ref.current) == null || _.select(), (x = M.ref) != null && x.current) {
1623
- const N = e.current.getBoundingClientRect(), k = M.ref.current, X = k.getBoundingClientRect();
1624
- N.right - X.left > 313 ? p("right") : p("left"), N.bottom - (X.top + k.clientHeight) > 88 ? S("bottom") : S("top");
1633
+ const k = e.current.getBoundingClientRect(), N = M.ref.current, K = N.getBoundingClientRect();
1634
+ k.right - K.left > 313 ? h("right") : h("left"), k.bottom - (K.top + N.clientHeight) > 88 ? S("bottom") : S("top");
1625
1635
  }
1626
- }, []), se(() => {
1636
+ }, []), te(() => {
1627
1637
  M.isClicked && u();
1628
1638
  }, [M.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1629
1639
  /* @__PURE__ */ t.jsx(
1630
- _r,
1640
+ Nr,
1631
1641
  {
1632
1642
  nameInputRef: M.ref,
1633
- maxLength: is,
1643
+ maxLength: ls,
1634
1644
  value: a,
1635
1645
  onChange: y,
1636
1646
  onKeyDown: b,
@@ -1638,8 +1648,8 @@ const Xe = (e) => ({
1638
1648
  ...j === "list" && { rows: 1 }
1639
1649
  }
1640
1650
  ),
1641
- i && /* @__PURE__ */ t.jsx(
1642
- Nr,
1651
+ c && /* @__PURE__ */ t.jsx(
1652
+ zr,
1643
1653
  {
1644
1654
  message: d,
1645
1655
  xPlacement: f,
@@ -1657,22 +1667,22 @@ const Xe = (e) => ({
1657
1667
  children: a
1658
1668
  }
1659
1669
  );
1660
- function ls(e) {
1670
+ function ds(e) {
1661
1671
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z" }, child: [] }, { tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z" }, child: [] }, { tag: "path", attr: { d: "M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z" }, child: [] }] })(e);
1662
1672
  }
1663
- const zr = ({
1673
+ const Ar = ({
1664
1674
  children: e,
1665
1675
  show: r,
1666
1676
  setShow: n,
1667
1677
  heading: s,
1668
1678
  dialogWidth: a = "25%",
1669
- contentClassName: c = "",
1670
- closeButton: i = !0
1679
+ contentClassName: i = "",
1680
+ closeButton: c = !0
1671
1681
  }) => {
1672
- const l = de(null), d = (h) => {
1673
- h.key === "Escape" && n(!1);
1682
+ const l = de(null), d = (p) => {
1683
+ p.key === "Escape" && n(!1);
1674
1684
  };
1675
- return se(() => {
1685
+ return te(() => {
1676
1686
  r ? l.current.showModal() : l.current.close();
1677
1687
  }, [r]), /* @__PURE__ */ t.jsxs(
1678
1688
  "dialog",
@@ -1684,14 +1694,14 @@ const zr = ({
1684
1694
  children: [
1685
1695
  /* @__PURE__ */ t.jsxs("div", { className: "fm-modal-header", children: [
1686
1696
  /* @__PURE__ */ t.jsx("span", { className: "fm-modal-heading", children: s }),
1687
- i && /* @__PURE__ */ t.jsx(En, { size: 18, onClick: () => n(!1), className: "close-icon", title: "Close" })
1697
+ c && /* @__PURE__ */ t.jsx(Rn, { size: 18, onClick: () => n(!1), className: "close-icon", title: "Close" })
1688
1698
  ] }),
1689
1699
  e
1690
1700
  ]
1691
1701
  }
1692
1702
  );
1693
- }, _e = (e) => e.split(".").pop(), us = 220, ds = ({ filesViewRef: e, file: r, onRename: n, triggerAction: s }) => {
1694
- const [a, c] = L(r == null ? void 0 : r.name), [i, l] = L(!1), [d, h] = L(!1), [f, p] = L(""), [w, S] = L("right"), [M, z] = L("bottom"), { currentPathFiles: D, setCurrentPathFiles: C } = Ee(), { activeLayout: j } = Se(), y = de(null), b = Be((x) => {
1703
+ }, _e = (e) => e.split(".").pop(), fs = 220, hs = ({ filesViewRef: e, file: r, onRename: n, triggerAction: s }) => {
1704
+ const [a, i] = L(r == null ? void 0 : r.name), [c, l] = L(!1), [d, p] = L(!1), [f, h] = L(""), [w, S] = L("right"), [M, z] = L("bottom"), { currentPathFiles: A, setCurrentPathFiles: C } = Ee(), { activeLayout: j } = Se(), y = de(null), b = Be((x) => {
1695
1705
  var R;
1696
1706
  (R = y.current) != null && R.contains(x.target) || (x.preventDefault(), x.stopPropagation());
1697
1707
  }), u = (x) => {
@@ -1699,14 +1709,14 @@ const zr = ({
1699
1709
  x.preventDefault(), b.setIsClicked(!0);
1700
1710
  return;
1701
1711
  }
1702
- /[\\/:*?"<>|]/.test(x.key) ? (x.preventDefault(), p(
1712
+ /[\\/:*?"<>|]/.test(x.key) ? (x.preventDefault(), h(
1703
1713
  `A file name can't contain any of the following characters: \\ / : * ? " < > |`
1704
- ), h(!0)) : h(!1);
1714
+ ), p(!0)) : p(!1);
1705
1715
  };
1706
- se(() => {
1716
+ te(() => {
1707
1717
  if (d) {
1708
1718
  const x = setTimeout(() => {
1709
- h(!1), p("");
1719
+ p(!1), h("");
1710
1720
  }, 7e3);
1711
1721
  return () => clearTimeout(x);
1712
1722
  }
@@ -1717,8 +1727,8 @@ const zr = ({
1717
1727
  (R) => R.map((F) => (F.key === r.key && (F.isEditing = !1), F))
1718
1728
  ), s.close();
1719
1729
  return;
1720
- } else if (D.some((R) => R.name === a)) {
1721
- h(!0), p(`This destination already contains a folder named '${a}'.`), b.setIsClicked(!1);
1730
+ } else if (A.some((R) => R.name === a)) {
1731
+ p(!0), h(`This destination already contains a folder named '${a}'.`), b.setIsClicked(!1);
1722
1732
  return;
1723
1733
  } else if (!r.isDirectory && !x) {
1724
1734
  const R = _e(r.name), F = _e(a);
@@ -1727,34 +1737,34 @@ const zr = ({
1727
1737
  return;
1728
1738
  }
1729
1739
  }
1730
- h(!1), Le(n, "onRename", r, a), C((R) => R.filter((F) => F.key !== r.key)), s.close();
1740
+ p(!1), Le(n, "onRename", r, a), C((R) => R.filter((F) => F.key !== r.key)), s.close();
1731
1741
  }
1732
1742
  const _ = () => {
1733
- var x, R, F, A, N, k;
1743
+ var x, R, F, D, k, N;
1734
1744
  if ((R = (x = b.ref) == null ? void 0 : x.current) == null || R.focus(), r.isDirectory)
1735
- (A = (F = b.ref) == null ? void 0 : F.current) == null || A.select();
1745
+ (D = (F = b.ref) == null ? void 0 : F.current) == null || D.select();
1736
1746
  else {
1737
- const X = _e(r.name), oe = r.name.length - X.length - 1;
1738
- (k = (N = b.ref) == null ? void 0 : N.current) == null || k.setSelectionRange(0, oe);
1747
+ const K = _e(r.name), oe = r.name.length - K.length - 1;
1748
+ (N = (k = b.ref) == null ? void 0 : k.current) == null || N.setSelectionRange(0, oe);
1739
1749
  }
1740
1750
  };
1741
- return se(() => {
1751
+ return te(() => {
1742
1752
  var x;
1743
1753
  if (_(), (x = b.ref) != null && x.current) {
1744
- const N = e.current.getBoundingClientRect(), k = b.ref.current, X = k.getBoundingClientRect();
1745
- N.right - X.left > 313 ? S("right") : S("left"), N.bottom - (X.top + k.clientHeight) > 88 ? z("bottom") : z("top");
1754
+ const k = e.current.getBoundingClientRect(), N = b.ref.current, K = N.getBoundingClientRect();
1755
+ k.right - K.left > 313 ? S("right") : S("left"), k.bottom - (K.top + N.clientHeight) > 88 ? z("bottom") : z("top");
1746
1756
  }
1747
- }, []), se(() => {
1757
+ }, []), te(() => {
1748
1758
  b.isClicked && g(!1), _();
1749
1759
  }, [b.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1750
1760
  /* @__PURE__ */ t.jsx(
1751
- _r,
1761
+ Nr,
1752
1762
  {
1753
1763
  nameInputRef: b.ref,
1754
- maxLength: us,
1764
+ maxLength: fs,
1755
1765
  value: a,
1756
1766
  onChange: (x) => {
1757
- c(x.target.value), h(!1);
1767
+ i(x.target.value), p(!1);
1758
1768
  },
1759
1769
  onKeyDown: u,
1760
1770
  onClick: (x) => x.stopPropagation(),
@@ -1762,7 +1772,7 @@ const zr = ({
1762
1772
  }
1763
1773
  ),
1764
1774
  d && /* @__PURE__ */ t.jsx(
1765
- Nr,
1775
+ zr,
1766
1776
  {
1767
1777
  message: f,
1768
1778
  xPlacement: w,
@@ -1770,16 +1780,16 @@ const zr = ({
1770
1780
  }
1771
1781
  ),
1772
1782
  /* @__PURE__ */ t.jsx(
1773
- zr,
1783
+ Ar,
1774
1784
  {
1775
1785
  heading: "Rename",
1776
- show: i,
1786
+ show: c,
1777
1787
  setShow: l,
1778
1788
  dialogWidth: "25vw",
1779
1789
  closeButton: !1,
1780
1790
  children: /* @__PURE__ */ t.jsxs("div", { className: "fm-rename-folder-container", ref: y, children: [
1781
1791
  /* @__PURE__ */ t.jsx("div", { className: "fm-rename-folder-input", children: /* @__PURE__ */ t.jsxs("div", { className: "fm-rename-warning", children: [
1782
- /* @__PURE__ */ t.jsx(ls, { size: 70, color: "orange" }),
1792
+ /* @__PURE__ */ t.jsx(ds, { size: 70, color: "orange" }),
1783
1793
  /* @__PURE__ */ t.jsx("div", { children: "If you change a file name extension, the file might become unusable. Are you sure you want to change it?" })
1784
1794
  ] }) }),
1785
1795
  /* @__PURE__ */ t.jsxs("div", { className: "fm-rename-folder-action", children: [
@@ -1819,43 +1829,43 @@ const zr = ({
1819
1829
  return `${s.toFixed(r)} MB`;
1820
1830
  if (s >= 1024)
1821
1831
  return `${a.toFixed(r)} GB`;
1822
- }, fs = (e) => {
1832
+ }, ps = (e) => {
1823
1833
  if (!e || isNaN(Date.parse(e))) return "";
1824
1834
  e = new Date(e);
1825
1835
  let r = e.getHours();
1826
1836
  const n = e.getMinutes(), s = r >= 12 ? "PM" : "AM";
1827
1837
  r = r % 12, r = r || 12;
1828
- const a = e.getMonth() + 1, c = e.getDate(), i = e.getFullYear();
1829
- return `${a}/${c}/${i} ${r}:${n < 10 ? "0" + n : n} ${s}`;
1830
- }, Ar = ({ name: e, id: r, checked: n, onClick: s, onChange: a, className: c = "", title: i, disabled: l = !1 }) => /* @__PURE__ */ t.jsx(
1838
+ const a = e.getMonth() + 1, i = e.getDate(), c = e.getFullYear();
1839
+ return `${a}/${i}/${c} ${r}:${n < 10 ? "0" + n : n} ${s}`;
1840
+ }, Dr = ({ name: e, id: r, checked: n, onClick: s, onChange: a, className: i = "", title: c, disabled: l = !1 }) => /* @__PURE__ */ t.jsx(
1831
1841
  "input",
1832
1842
  {
1833
- className: `fm-checkbox ${c}`,
1843
+ className: `fm-checkbox ${i}`,
1834
1844
  type: "checkbox",
1835
1845
  name: e,
1836
1846
  id: r,
1837
1847
  checked: n,
1838
1848
  onClick: s,
1839
1849
  onChange: a,
1840
- title: i,
1850
+ title: c,
1841
1851
  disabled: l
1842
1852
  }
1843
- ), it = 50, hs = ({
1853
+ ), it = 50, vs = ({
1844
1854
  index: e,
1845
1855
  file: r,
1846
1856
  onCreateFolder: n,
1847
1857
  onRename: s,
1848
1858
  enableFilePreview: a,
1849
- onFileOpen: c,
1850
- filesViewRef: i,
1859
+ onFileOpen: i,
1860
+ filesViewRef: c,
1851
1861
  selectedFileIndexes: l,
1852
1862
  triggerAction: d,
1853
- handleContextMenu: h,
1863
+ handleContextMenu: p,
1854
1864
  setLastSelectedFile: f
1855
1865
  }) => {
1856
1866
  var fe, E, ve, Te;
1857
- const [p, w] = L(!1), [S, M] = L(0), [z, D] = L("hidden"), [C, j] = L(""), [y, b] = L(null), { activeLayout: u } = Se(), g = u === "grid" ? 48 : 20, _ = Xe(g), { setCurrentPath: x, currentPathFiles: R } = Ee(), { setSelectedFiles: F } = Fe(), { clipBoard: A, handleCutCopy: N, setClipBoard: k, handlePasting: X } = Je(), oe = de(null), ae = Xe(it), Q = (A == null ? void 0 : A.isMoving) && A.files.find((Y) => Y.name === r.name && Y.path === r.path), he = () => {
1858
- c(r), r.isDirectory ? (x(r.path), F([])) : a && d.show("previewFile");
1867
+ const [h, w] = L(!1), [S, M] = L(0), [z, A] = L("hidden"), [C, j] = L(""), [y, b] = L(null), { activeLayout: u } = Se(), g = u === "grid" ? 48 : 20, _ = Xe(g), { setCurrentPath: x, currentPathFiles: R } = Ee(), { setSelectedFiles: F } = Fe(), { clipBoard: D, handleCutCopy: k, setClipBoard: N, handlePasting: K } = Je(), oe = de(null), ae = Xe(it), Q = (D == null ? void 0 : D.isMoving) && D.files.find((Y) => Y.name === r.name && Y.path === r.path), he = () => {
1868
+ i(r), r.isDirectory ? (x(r.path), F([])) : a && d.show("previewFile");
1859
1869
  }, xe = (Y, le) => {
1860
1870
  if (l.length > 0 && Y) {
1861
1871
  let je = !1, Re = l[0], we = e;
@@ -1869,7 +1879,7 @@ const zr = ({
1869
1879
  const Re = je.filter((we) => we.path !== r.path);
1870
1880
  return je.length === Re.length ? [...je, r] : Re;
1871
1881
  }) : F([r]);
1872
- }, m = (Y) => {
1882
+ }, v = (Y) => {
1873
1883
  if (Y.stopPropagation(), r.isEditing) return;
1874
1884
  xe(Y.shiftKey, Y.ctrlKey);
1875
1885
  const le = (/* @__PURE__ */ new Date()).getTime();
@@ -1881,36 +1891,36 @@ const zr = ({
1881
1891
  }, P = (Y) => {
1882
1892
  Y.key === "Enter" && (Y.stopPropagation(), F([r]), he());
1883
1893
  }, V = (Y) => {
1884
- Y.stopPropagation(), Y.preventDefault(), !r.isEditing && (p || F([r]), f(r), h(Y, !0));
1894
+ Y.stopPropagation(), Y.preventDefault(), !r.isEditing && (h || F([r]), f(r), p(Y, !0));
1885
1895
  }, W = () => {
1886
- D("visible");
1896
+ A("visible");
1887
1897
  }, I = () => {
1888
- !p && D("hidden");
1889
- }, K = (Y) => {
1898
+ !h && A("hidden");
1899
+ }, X = (Y) => {
1890
1900
  Y.target.checked ? F((le) => [...le, r]) : F((le) => le.filter((je) => je.name !== r.name && je.path !== r.path)), w(Y.target.checked);
1891
1901
  }, O = (Y) => {
1892
- Y.dataTransfer.setDragImage(oe.current, 30, 50), Y.dataTransfer.effectAllowed = "copy", N(!0);
1893
- }, $ = () => k(null), U = (Y) => {
1894
- Y.preventDefault(), p || !r.isDirectory ? Y.dataTransfer.dropEffect = "none" : (b({ x: Y.clientX, y: Y.clientY + 12 }), Y.dataTransfer.dropEffect = "copy", j("file-drop-zone"));
1902
+ Y.dataTransfer.setDragImage(oe.current, 30, 50), Y.dataTransfer.effectAllowed = "copy", k(!0);
1903
+ }, $ = () => N(null), U = (Y) => {
1904
+ Y.preventDefault(), h || !r.isDirectory ? Y.dataTransfer.dropEffect = "none" : (b({ x: Y.clientX, y: Y.clientY + 12 }), Y.dataTransfer.dropEffect = "copy", j("file-drop-zone"));
1895
1905
  }, Z = (Y) => {
1896
1906
  Y.currentTarget.contains(Y.relatedTarget) || (j((le) => le && ""), b(null));
1897
1907
  }, q = (Y) => {
1898
- Y.preventDefault(), !(p || !r.isDirectory) && (X(r), j((le) => le && ""), b(null));
1908
+ Y.preventDefault(), !(h || !r.isDirectory) && (K(r), j((le) => le && ""), b(null));
1899
1909
  };
1900
- return se(() => {
1901
- w(l.includes(e)), D(l.includes(e) ? "visible" : "hidden");
1910
+ return te(() => {
1911
+ w(l.includes(e)), A(l.includes(e) ? "visible" : "hidden");
1902
1912
  }, [l]), /* @__PURE__ */ t.jsxs(
1903
1913
  "div",
1904
1914
  {
1905
- className: `file-item-container ${C} ${p || r.isEditing ? "file-selected" : ""} ${Q ? "file-moving" : ""}`,
1915
+ className: `file-item-container ${C} ${h || r.isEditing ? "file-selected" : ""} ${Q ? "file-moving" : ""}`,
1906
1916
  tabIndex: 0,
1907
1917
  title: r.name,
1908
- onClick: m,
1918
+ onClick: v,
1909
1919
  onKeyDown: P,
1910
1920
  onContextMenu: V,
1911
1921
  onMouseOver: W,
1912
1922
  onMouseLeave: I,
1913
- draggable: p,
1923
+ draggable: h,
1914
1924
  onDragStart: O,
1915
1925
  onDragEnd: $,
1916
1926
  onDragEnter: U,
@@ -1920,29 +1930,29 @@ const zr = ({
1920
1930
  children: [
1921
1931
  /* @__PURE__ */ t.jsxs("div", { className: "file-item", children: [
1922
1932
  !r.isEditing && /* @__PURE__ */ t.jsx(
1923
- Ar,
1933
+ Dr,
1924
1934
  {
1925
1935
  name: r.name,
1926
1936
  id: r.name,
1927
- checked: p,
1937
+ checked: h,
1928
1938
  className: `selection-checkbox ${z}`,
1929
- onChange: K,
1939
+ onChange: X,
1930
1940
  onClick: (Y) => Y.stopPropagation()
1931
1941
  }
1932
1942
  ),
1933
1943
  r.isDirectory ? /* @__PURE__ */ t.jsx(Vt, { size: g }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: _[(E = (fe = r.name) == null ? void 0 : fe.split(".").pop()) == null ? void 0 : E.toLowerCase()] ?? /* @__PURE__ */ t.jsx(qe, { size: g }) }),
1934
1944
  r.isEditing ? /* @__PURE__ */ t.jsx("div", { className: `rename-file-container ${u}`, children: d.actionType === "createFolder" ? /* @__PURE__ */ t.jsx(
1935
- cs,
1945
+ us,
1936
1946
  {
1937
- filesViewRef: i,
1947
+ filesViewRef: c,
1938
1948
  file: r,
1939
1949
  onCreateFolder: n,
1940
1950
  triggerAction: d
1941
1951
  }
1942
1952
  ) : /* @__PURE__ */ t.jsx(
1943
- ds,
1953
+ hs,
1944
1954
  {
1945
- filesViewRef: i,
1955
+ filesViewRef: c,
1946
1956
  file: r,
1947
1957
  onRename: s,
1948
1958
  triggerAction: d
@@ -1950,7 +1960,7 @@ const zr = ({
1950
1960
  ) }) : /* @__PURE__ */ t.jsx("span", { className: "text-truncate file-name", children: r.name })
1951
1961
  ] }),
1952
1962
  u === "list" && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1953
- /* @__PURE__ */ t.jsx("div", { className: "modified-date", children: fs(r.updatedAt) }),
1963
+ /* @__PURE__ */ t.jsx("div", { className: "modified-date", children: ps(r.updatedAt) }),
1954
1964
  /* @__PURE__ */ t.jsx("div", { className: "size", children: (r == null ? void 0 : r.size) > 0 ? Ze(r == null ? void 0 : r.size) : "" })
1955
1965
  ] }),
1956
1966
  y && /* @__PURE__ */ t.jsxs(
@@ -1971,21 +1981,21 @@ const zr = ({
1971
1981
  ]
1972
1982
  }
1973
1983
  );
1974
- }, ps = ({ subMenuRef: e, list: r, position: n = "right" }) => /* @__PURE__ */ t.jsx("ul", { ref: e, className: `sub-menu ${n}`, children: r == null ? void 0 : r.map((s) => /* @__PURE__ */ t.jsxs("li", { onClick: s.onClick, children: [
1975
- /* @__PURE__ */ t.jsx("span", { className: "item-selected", children: s.selected && /* @__PURE__ */ t.jsx(br, { size: 13 }) }),
1984
+ }, ms = ({ subMenuRef: e, list: r, position: n = "right" }) => /* @__PURE__ */ t.jsx("ul", { ref: e, className: `sub-menu ${n}`, children: r == null ? void 0 : r.map((s) => /* @__PURE__ */ t.jsxs("li", { onClick: s.onClick, children: [
1985
+ /* @__PURE__ */ t.jsx("span", { className: "item-selected", children: s.selected && /* @__PURE__ */ t.jsx(wr, { size: 13 }) }),
1976
1986
  s.icon,
1977
1987
  /* @__PURE__ */ t.jsx("span", { children: s.title })
1978
- ] }, s.title)) }), vs = ({ filesViewRef: e, contextMenuRef: r, menuItems: n, visible: s, clickPosition: a }) => {
1979
- const [c, i] = L(0), [l, d] = L(0), [h, f] = L(null), [p, w] = L("right"), S = de(null), M = () => {
1980
- const { clickX: C, clickY: j } = a, y = e.current, b = y.getBoundingClientRect(), u = y.offsetWidth - y.clientWidth, g = r.current.getBoundingClientRect(), _ = g.width, x = g.height, R = C - b.left, F = b.width - (R + u) > _, A = !F, N = j - b.top, k = b.height - N > x, X = !k;
1981
- F ? (i(`${R}px`), w("right")) : A && (i(`${R - _}px`), w("left")), k ? d(`${N + y.scrollTop}px`) : X && d(`${N + y.scrollTop - x}px`);
1988
+ ] }, s.title)) }), gs = ({ filesViewRef: e, contextMenuRef: r, menuItems: n, visible: s, clickPosition: a }) => {
1989
+ const [i, c] = L(0), [l, d] = L(0), [p, f] = L(null), [h, w] = L("right"), S = de(null), M = () => {
1990
+ const { clickX: C, clickY: j } = a, y = e.current, b = y.getBoundingClientRect(), u = y.offsetWidth - y.clientWidth, g = r.current.getBoundingClientRect(), _ = g.width, x = g.height, R = C - b.left, F = b.width - (R + u) > _, D = !F, k = j - b.top, N = b.height - k > x, K = !N;
1991
+ F ? (c(`${R}px`), w("right")) : D && (c(`${R - _}px`), w("left")), N ? d(`${k + y.scrollTop}px`) : K && d(`${k + y.scrollTop - x}px`);
1982
1992
  }, z = (C) => {
1983
1993
  C.preventDefault(), C.stopPropagation();
1984
- }, D = (C) => {
1994
+ }, A = (C) => {
1985
1995
  f(C);
1986
1996
  };
1987
- if (se(() => {
1988
- s && r.current ? M() : (d(0), i(0), f(null));
1997
+ if (te(() => {
1998
+ s && r.current ? M() : (d(0), c(0), f(null));
1989
1999
  }, [s]), s)
1990
2000
  return /* @__PURE__ */ t.jsx(
1991
2001
  "div",
@@ -1996,28 +2006,28 @@ const zr = ({
1996
2006
  className: `fm-context-menu ${l ? "visible" : "hidden"}`,
1997
2007
  style: {
1998
2008
  top: l,
1999
- left: c
2009
+ left: i
2000
2010
  },
2001
2011
  children: /* @__PURE__ */ t.jsx("div", { className: "file-context-menu-list", children: /* @__PURE__ */ t.jsx("ul", { children: n.filter((C) => !C.hidden).map((C, j) => {
2002
- const y = C.hasOwnProperty("children"), b = h === j && y;
2012
+ const y = C.hasOwnProperty("children"), b = p === j && y;
2003
2013
  return /* @__PURE__ */ t.jsxs("div", { children: [
2004
2014
  /* @__PURE__ */ t.jsxs(
2005
2015
  "li",
2006
2016
  {
2007
2017
  onClick: C.onClick,
2008
2018
  className: `${C.className ?? ""} ${b ? "active" : ""}`,
2009
- onMouseOver: () => D(j),
2019
+ onMouseOver: () => A(j),
2010
2020
  children: [
2011
2021
  C.icon,
2012
2022
  /* @__PURE__ */ t.jsx("span", { children: C.title }),
2013
2023
  y && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2014
- /* @__PURE__ */ t.jsx(Fn, { size: 14, className: "list-expand-icon" }),
2024
+ /* @__PURE__ */ t.jsx(Sn, { size: 14, className: "list-expand-icon" }),
2015
2025
  b && /* @__PURE__ */ t.jsx(
2016
- ps,
2026
+ ms,
2017
2027
  {
2018
2028
  subMenuRef: S,
2019
2029
  list: C.children,
2020
- position: p
2030
+ position: h
2021
2031
  }
2022
2032
  )
2023
2033
  ] })
@@ -2030,31 +2040,31 @@ const zr = ({
2030
2040
  }
2031
2041
  );
2032
2042
  };
2033
- function ms(e) {
2043
+ function ys(e) {
2034
2044
  return H({ tag: "svg", attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z" }, child: [] }] })(e);
2035
2045
  }
2036
- const gs = (e, r, n) => {
2037
- const [s, a] = L([]), [c, i] = L(!1), [l, d] = L(!1), [h, f] = L({ clickX: 0, clickY: 0 }), [p, w] = L(null), { clipBoard: S, setClipBoard: M, handleCutCopy: z, handlePasting: D } = Je(), { selectedFiles: C, setSelectedFiles: j, handleDownload: y } = Fe(), { currentPath: b, setCurrentPath: u, currentPathFiles: g, setCurrentPathFiles: _ } = Ee(), { activeLayout: x, setActiveLayout: R } = Se(), F = () => {
2038
- p.isDirectory ? (u(p.path), a([]), j([])) : r && n.show("previewFile"), i(!1);
2039
- }, A = (O) => {
2040
- z(O), i(!1);
2041
- }, N = () => {
2042
- D(p), i(!1);
2046
+ const xs = (e, r, n) => {
2047
+ const [s, a] = L([]), [i, c] = L(!1), [l, d] = L(!1), [p, f] = L({ clickX: 0, clickY: 0 }), [h, w] = L(null), { clipBoard: S, setClipBoard: M, handleCutCopy: z, handlePasting: A } = Je(), { selectedFiles: C, setSelectedFiles: j, handleDownload: y } = Fe(), { currentPath: b, setCurrentPath: u, currentPathFiles: g, setCurrentPathFiles: _ } = Ee(), { activeLayout: x, setActiveLayout: R } = Se(), F = () => {
2048
+ h.isDirectory ? (u(h.path), a([]), j([])) : r && n.show("previewFile"), c(!1);
2049
+ }, D = (O) => {
2050
+ z(O), c(!1);
2043
2051
  }, k = () => {
2044
- i(!1), n.show("rename");
2045
- }, X = () => {
2046
- y(), i(!1);
2052
+ A(h), c(!1);
2053
+ }, N = () => {
2054
+ c(!1), n.show("rename");
2055
+ }, K = () => {
2056
+ y(), c(!1);
2047
2057
  }, oe = () => {
2048
- i(!1), n.show("delete");
2058
+ c(!1), n.show("delete");
2049
2059
  }, ae = () => {
2050
- i(!1), Le(e, "onRefresh"), M(null);
2060
+ c(!1), Le(e, "onRefresh"), M(null);
2051
2061
  }, Q = () => {
2052
- n.show("createFolder"), i(!1);
2062
+ n.show("createFolder"), c(!1);
2053
2063
  }, he = () => {
2054
- i(!1), n.show("uploadFile");
2064
+ c(!1), n.show("uploadFile");
2055
2065
  }, xe = () => {
2056
- j(g), i(!1);
2057
- }, m = [
2066
+ j(g), c(!1);
2067
+ }, v = [
2058
2068
  {
2059
2069
  title: "View",
2060
2070
  icon: x === "grid" ? /* @__PURE__ */ t.jsx(Dt, { size: 18 }) : /* @__PURE__ */ t.jsx(Ue, { size: 18 }),
@@ -2066,7 +2076,7 @@ const gs = (e, r, n) => {
2066
2076
  icon: /* @__PURE__ */ t.jsx(Dt, { size: 18 }),
2067
2077
  selected: x === "grid",
2068
2078
  onClick: () => {
2069
- R("grid"), i(!1);
2079
+ R("grid"), c(!1);
2070
2080
  }
2071
2081
  },
2072
2082
  {
@@ -2074,81 +2084,81 @@ const gs = (e, r, n) => {
2074
2084
  icon: /* @__PURE__ */ t.jsx(Ue, { size: 18 }),
2075
2085
  selected: x === "list",
2076
2086
  onClick: () => {
2077
- R("list"), i(!1);
2087
+ R("list"), c(!1);
2078
2088
  }
2079
2089
  }
2080
2090
  ]
2081
2091
  },
2082
2092
  {
2083
2093
  title: "Refresh",
2084
- icon: /* @__PURE__ */ t.jsx(yr, { size: 18 }),
2094
+ icon: /* @__PURE__ */ t.jsx(xr, { size: 18 }),
2085
2095
  onClick: ae,
2086
2096
  divider: !0
2087
2097
  },
2088
2098
  {
2089
2099
  title: "New folder",
2090
- icon: /* @__PURE__ */ t.jsx(vr, { size: 18 }),
2100
+ icon: /* @__PURE__ */ t.jsx(mr, { size: 18 }),
2091
2101
  onClick: Q
2092
2102
  },
2093
2103
  {
2094
2104
  title: "Upload",
2095
- icon: /* @__PURE__ */ t.jsx(Cr, { size: 18 }),
2105
+ icon: /* @__PURE__ */ t.jsx(jr, { size: 18 }),
2096
2106
  onClick: he,
2097
2107
  divider: !0
2098
2108
  },
2099
2109
  {
2100
2110
  title: "Select all",
2101
- icon: /* @__PURE__ */ t.jsx(Tn, { size: 18 }),
2111
+ icon: /* @__PURE__ */ t.jsx(Fn, { size: 18 }),
2102
2112
  onClick: xe
2103
2113
  }
2104
2114
  ], P = [
2105
2115
  {
2106
2116
  title: "Open",
2107
- icon: p != null && p.isDirectory ? /* @__PURE__ */ t.jsx(ms, { size: 20 }) : /* @__PURE__ */ t.jsx(qe, { size: 16 }),
2117
+ icon: h != null && h.isDirectory ? /* @__PURE__ */ t.jsx(ys, { size: 20 }) : /* @__PURE__ */ t.jsx(qe, { size: 16 }),
2108
2118
  onClick: F,
2109
2119
  divider: !0
2110
2120
  },
2111
2121
  {
2112
2122
  title: "Cut",
2113
- icon: /* @__PURE__ */ t.jsx(gr, { size: 19 }),
2114
- onClick: () => A(!0)
2123
+ icon: /* @__PURE__ */ t.jsx(yr, { size: 19 }),
2124
+ onClick: () => D(!0)
2115
2125
  },
2116
2126
  {
2117
2127
  title: "Copy",
2118
- icon: /* @__PURE__ */ t.jsx(pr, { strokeWidth: 0.1, size: 17 }),
2119
- onClick: () => A(!1),
2120
- divider: !(p != null && p.isDirectory)
2128
+ icon: /* @__PURE__ */ t.jsx(vr, { strokeWidth: 0.1, size: 17 }),
2129
+ onClick: () => D(!1),
2130
+ divider: !(h != null && h.isDirectory)
2121
2131
  },
2122
2132
  {
2123
2133
  title: "Paste",
2124
2134
  icon: /* @__PURE__ */ t.jsx(mt, { size: 18 }),
2125
- onClick: N,
2135
+ onClick: k,
2126
2136
  className: `${S ? "" : "disable-paste"}`,
2127
- hidden: !(p != null && p.isDirectory),
2137
+ hidden: !(h != null && h.isDirectory),
2128
2138
  divider: !0
2129
2139
  },
2130
2140
  {
2131
2141
  title: "Rename",
2132
- icon: /* @__PURE__ */ t.jsx(jr, { size: 19 }),
2133
- onClick: k,
2142
+ icon: /* @__PURE__ */ t.jsx(br, { size: 19 }),
2143
+ onClick: N,
2134
2144
  hidden: C.length > 1
2135
2145
  },
2136
2146
  {
2137
2147
  title: "Download",
2138
2148
  icon: /* @__PURE__ */ t.jsx(Ct, { size: 18 }),
2139
- onClick: X,
2140
- hidden: p == null ? void 0 : p.isDirectory
2149
+ onClick: K,
2150
+ hidden: h == null ? void 0 : h.isDirectory
2141
2151
  },
2142
2152
  {
2143
2153
  title: "Delete",
2144
- icon: /* @__PURE__ */ t.jsx(xr, { size: 19 }),
2154
+ icon: /* @__PURE__ */ t.jsx(Cr, { size: 19 }),
2145
2155
  onClick: oe
2146
2156
  }
2147
2157
  ], V = () => {
2148
2158
  _((O) => [
2149
2159
  ...O,
2150
2160
  {
2151
- name: kr("New Folder", !0, O),
2161
+ name: _r("New Folder", !0, O),
2152
2162
  isDirectory: !0,
2153
2163
  path: b,
2154
2164
  isEditing: !0,
@@ -2159,10 +2169,10 @@ const gs = (e, r, n) => {
2159
2169
  _((O) => (O[s.at(-1)] && (O[s.at(-1)].isEditing = !0), O)), a([]), j([]);
2160
2170
  }, I = () => {
2161
2171
  a([]), j((O) => O.length > 0 ? [] : O);
2162
- }, K = (O, $ = !1) => {
2163
- O.preventDefault(), f({ clickX: O.clientX, clickY: O.clientY }), d($), !$ && I(), i(!0);
2172
+ }, X = (O, $ = !1) => {
2173
+ O.preventDefault(), f({ clickX: O.clientX, clickY: O.clientY }), d($), !$ && I(), c(!0);
2164
2174
  };
2165
- return se(() => {
2175
+ return te(() => {
2166
2176
  if (n.isActive)
2167
2177
  switch (n.actionType) {
2168
2178
  case "createFolder":
@@ -2172,25 +2182,25 @@ const gs = (e, r, n) => {
2172
2182
  W();
2173
2183
  break;
2174
2184
  }
2175
- }, [n.isActive]), se(() => {
2185
+ }, [n.isActive]), te(() => {
2176
2186
  a([]), j([]);
2177
- }, [b]), se(() => {
2187
+ }, [b]), te(() => {
2178
2188
  C.length > 0 ? a(() => C.map((O) => g.findIndex(($) => $.path === O.path))) : a([]);
2179
2189
  }, [C, g]), {
2180
- emptySelecCtxItems: m,
2190
+ emptySelecCtxItems: v,
2181
2191
  selecCtxItems: P,
2182
- handleContextMenu: K,
2192
+ handleContextMenu: X,
2183
2193
  unselectFiles: I,
2184
- visible: c,
2185
- setVisible: i,
2194
+ visible: i,
2195
+ setVisible: c,
2186
2196
  setLastSelectedFile: w,
2187
2197
  selectedFileIndexes: s,
2188
- clickPosition: h,
2198
+ clickPosition: p,
2189
2199
  isSelectionCtx: l
2190
2200
  };
2191
- }, ys = ({ unselectFiles: e }) => {
2192
- const [r, n] = L(!1), { selectedFiles: s, setSelectedFiles: a } = Fe(), { currentPathFiles: c } = Ee(), i = yt(() => c.length > 0 && s.length === c.length, [s, c]), l = (d) => {
2193
- d.target.checked ? (a(c), n(!0)) : e();
2201
+ }, Cs = ({ unselectFiles: e }) => {
2202
+ const [r, n] = L(!1), { selectedFiles: s, setSelectedFiles: a } = Fe(), { currentPathFiles: i } = Ee(), c = yt(() => i.length > 0 && s.length === i.length, [s, i]), l = (d) => {
2203
+ d.target.checked ? (a(i), n(!0)) : e();
2194
2204
  };
2195
2205
  return /* @__PURE__ */ t.jsxs(
2196
2206
  "div",
@@ -2199,44 +2209,44 @@ const gs = (e, r, n) => {
2199
2209
  onMouseOver: () => n(!0),
2200
2210
  onMouseLeave: () => n(!1),
2201
2211
  children: [
2202
- /* @__PURE__ */ t.jsx("div", { className: "file-select-all", children: (r || i) && /* @__PURE__ */ t.jsx(Ar, { checked: i, onChange: l, title: "Select all", disabled: c.length === 0 }) }),
2212
+ /* @__PURE__ */ t.jsx("div", { className: "file-select-all", children: (r || c) && /* @__PURE__ */ t.jsx(Dr, { checked: c, onChange: l, title: "Select all", disabled: i.length === 0 }) }),
2203
2213
  /* @__PURE__ */ t.jsx("div", { className: "file-name", children: "Name" }),
2204
2214
  /* @__PURE__ */ t.jsx("div", { className: "file-date", children: "Modified" }),
2205
2215
  /* @__PURE__ */ t.jsx("div", { className: "file-size", children: "Size" })
2206
2216
  ]
2207
2217
  }
2208
2218
  );
2209
- }, Dr = ({
2219
+ }, Ir = ({
2210
2220
  onCreateFolder: e,
2211
2221
  onRename: r,
2212
2222
  onFileOpen: n,
2213
2223
  onRefresh: s,
2214
2224
  enableFilePreview: a,
2215
- triggerAction: c
2225
+ triggerAction: i
2216
2226
  }) => {
2217
- const { currentPathFiles: i } = Ee(), l = de(null), { activeLayout: d } = Se(), {
2218
- emptySelecCtxItems: h,
2227
+ const { currentPathFiles: c } = Ee(), l = de(null), { activeLayout: d } = Se(), {
2228
+ emptySelecCtxItems: p,
2219
2229
  selecCtxItems: f,
2220
- handleContextMenu: p,
2230
+ handleContextMenu: h,
2221
2231
  unselectFiles: w,
2222
2232
  visible: S,
2223
2233
  setVisible: M,
2224
2234
  setLastSelectedFile: z,
2225
- selectedFileIndexes: D,
2235
+ selectedFileIndexes: A,
2226
2236
  clickPosition: C,
2227
2237
  isSelectionCtx: j
2228
- } = gs(s, a, c), y = Be(() => M(!1));
2238
+ } = xs(s, a, i), y = Be(() => M(!1));
2229
2239
  return /* @__PURE__ */ t.jsxs(
2230
2240
  "div",
2231
2241
  {
2232
2242
  ref: l,
2233
2243
  className: `files ${d}`,
2234
- onContextMenu: p,
2244
+ onContextMenu: h,
2235
2245
  onClick: w,
2236
2246
  children: [
2237
- d === "list" && /* @__PURE__ */ t.jsx(ys, { unselectFiles: w }),
2238
- (i == null ? void 0 : i.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: i.map((b, u) => /* @__PURE__ */ t.jsx(
2239
- hs,
2247
+ d === "list" && /* @__PURE__ */ t.jsx(Cs, { unselectFiles: w }),
2248
+ (c == null ? void 0 : c.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: c.map((b, u) => /* @__PURE__ */ t.jsx(
2249
+ vs,
2240
2250
  {
2241
2251
  index: u,
2242
2252
  file: b,
@@ -2244,21 +2254,21 @@ const gs = (e, r, n) => {
2244
2254
  onRename: r,
2245
2255
  onFileOpen: n,
2246
2256
  enableFilePreview: a,
2247
- triggerAction: c,
2257
+ triggerAction: i,
2248
2258
  filesViewRef: l,
2249
- selectedFileIndexes: D,
2250
- handleContextMenu: p,
2259
+ selectedFileIndexes: A,
2260
+ handleContextMenu: h,
2251
2261
  setVisible: M,
2252
2262
  setLastSelectedFile: z
2253
2263
  },
2254
2264
  u
2255
2265
  )) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-folder", children: "This folder is empty." }),
2256
2266
  /* @__PURE__ */ t.jsx(
2257
- vs,
2267
+ gs,
2258
2268
  {
2259
2269
  filesViewRef: l,
2260
2270
  contextMenuRef: y.ref,
2261
- menuItems: j ? f : h,
2271
+ menuItems: j ? f : p,
2262
2272
  visible: S,
2263
2273
  setVisible: M,
2264
2274
  clickPosition: C
@@ -2268,10 +2278,10 @@ const gs = (e, r, n) => {
2268
2278
  }
2269
2279
  );
2270
2280
  };
2271
- Dr.displayName = "FileList";
2272
- const xs = ({ triggerAction: e, onDelete: r }) => {
2273
- const [n, s] = L(""), { selectedFiles: a, setSelectedFiles: c } = Fe();
2274
- se(() => {
2281
+ Ir.displayName = "FileList";
2282
+ const js = ({ triggerAction: e, onDelete: r }) => {
2283
+ const [n, s] = L(""), { selectedFiles: a, setSelectedFiles: i } = Fe();
2284
+ te(() => {
2275
2285
  s(() => {
2276
2286
  if (a.length === 1)
2277
2287
  return `Are you sure you want to delete "${a[0].name}"?`;
@@ -2279,46 +2289,46 @@ const xs = ({ triggerAction: e, onDelete: r }) => {
2279
2289
  return `Are you sure you want to delete these ${a.length} items?`;
2280
2290
  });
2281
2291
  }, []);
2282
- const i = () => {
2283
- r(a), c([]), e.close();
2292
+ const c = () => {
2293
+ r(a), i([]), e.close();
2284
2294
  };
2285
2295
  return /* @__PURE__ */ t.jsxs("div", { className: "file-delete-confirm", children: [
2286
2296
  /* @__PURE__ */ t.jsx("p", { className: "file-delete-confirm-text", children: n }),
2287
2297
  /* @__PURE__ */ t.jsxs("div", { className: "file-delete-confirm-actions", children: [
2288
2298
  /* @__PURE__ */ t.jsx(Ne, { type: "secondary", onClick: () => e.close(), children: "Cancel" }),
2289
- /* @__PURE__ */ t.jsx(Ne, { type: "danger", onClick: i, children: "Delete" })
2299
+ /* @__PURE__ */ t.jsx(Ne, { type: "danger", onClick: c, children: "Delete" })
2290
2300
  ] })
2291
2301
  ] });
2292
2302
  };
2293
- function Cs(e) {
2303
+ function bs(e) {
2294
2304
  return H({ tag: "svg", attr: { viewBox: "0 0 1024 1024", fill: "currentColor", fillRule: "evenodd" }, child: [{ tag: "path", attr: { d: "M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z" }, child: [] }] })(e);
2295
2305
  }
2296
- function js(e) {
2306
+ function ws(e) {
2297
2307
  return H({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z" }, child: [] }, { tag: "path", attr: { d: "M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z" }, child: [] }] })(e);
2298
2308
  }
2299
- const bs = ({ percent: e = 0, isCanceled: r = !1, isCompleted: n = !1, error: s }) => /* @__PURE__ */ t.jsxs("div", { role: "progressbar", className: "fm-progress", children: [
2309
+ const Es = ({ percent: e = 0, isCanceled: r = !1, isCompleted: n = !1, error: s }) => /* @__PURE__ */ t.jsxs("div", { role: "progressbar", className: "fm-progress", children: [
2300
2310
  !s && /* @__PURE__ */ t.jsx("div", { className: "fm-progress-bar", children: /* @__PURE__ */ t.jsx("div", { className: "fm-progress-bar-fill", style: { width: `${e}%` } }) }),
2301
2311
  r ? /* @__PURE__ */ t.jsx("span", { className: "fm-upload-canceled", children: "Canceled" }) : s ? /* @__PURE__ */ t.jsx("span", { className: "fm-upload-canceled", children: s }) : /* @__PURE__ */ t.jsx("div", { className: "fm-progress-status", children: /* @__PURE__ */ t.jsx("span", { children: n ? "Completed" : e + "% done" }) })
2302
2312
  ] });
2303
- function ws(e) {
2313
+ function Rs(e) {
2304
2314
  return H({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z" }, child: [] }] })(e);
2305
2315
  }
2306
- const Es = ({
2316
+ const Ps = ({
2307
2317
  index: e,
2308
2318
  fileData: r,
2309
2319
  setFiles: n,
2310
2320
  setIsUploading: s,
2311
2321
  fileUploadConfig: a,
2312
- onFileUploaded: c,
2313
- handleFileRemove: i
2322
+ onFileUploaded: i,
2323
+ handleFileRemove: c
2314
2324
  }) => {
2315
2325
  var g, _, x, R;
2316
- const [l, d] = L(0), [h, f] = L(!1), [p, w] = L(!1), [S, M] = L(!1), z = Xe(33), D = de(), { onError: C } = Ge(), j = (F) => {
2317
- d(0), s((N) => ({
2318
- ...N,
2326
+ const [l, d] = L(0), [p, f] = L(!1), [h, w] = L(!1), [S, M] = L(!1), z = Xe(33), A = de(), { onError: C } = Ge(), j = (F) => {
2327
+ d(0), s((k) => ({
2328
+ ...k,
2319
2329
  [e]: !1
2320
2330
  }));
2321
- const A = {
2331
+ const D = {
2322
2332
  type: "upload",
2323
2333
  message: "Upload failed.",
2324
2334
  response: {
@@ -2328,54 +2338,54 @@ const Es = ({
2328
2338
  }
2329
2339
  };
2330
2340
  n(
2331
- (N) => N.map((k, X) => e === X ? {
2332
- ...k,
2333
- error: A.message
2334
- } : k)
2335
- ), M(!0), C(A, r.file);
2341
+ (k) => k.map((N, K) => e === K ? {
2342
+ ...N,
2343
+ error: D.message
2344
+ } : N)
2345
+ ), M(!0), C(D, r.file);
2336
2346
  }, y = (F) => {
2337
2347
  if (!F.error)
2338
- return new Promise((A, N) => {
2339
- const k = new XMLHttpRequest();
2340
- D.current = k, s((Q) => ({
2348
+ return new Promise((D, k) => {
2349
+ const N = new XMLHttpRequest();
2350
+ A.current = N, s((Q) => ({
2341
2351
  ...Q,
2342
2352
  [e]: !0
2343
- })), k.upload.onprogress = (Q) => {
2353
+ })), N.upload.onprogress = (Q) => {
2344
2354
  if (Q.lengthComputable) {
2345
2355
  const he = Math.round(Q.loaded / Q.total * 100);
2346
2356
  d(he);
2347
2357
  }
2348
- }, k.onload = () => {
2358
+ }, N.onload = () => {
2349
2359
  s((Q) => ({
2350
2360
  ...Q,
2351
2361
  [e]: !1
2352
- })), k.status === 200 || k.status === 201 ? (f(!0), c(k.response), A(k.response)) : (N(k.statusText), j(k));
2353
- }, k.onerror = () => {
2354
- N(k.statusText), j(k);
2355
- }, k.open("POST", a == null ? void 0 : a.url, !0);
2356
- const X = a == null ? void 0 : a.headers;
2357
- for (let Q in X)
2358
- k.setRequestHeader(Q, X[Q]);
2362
+ })), N.status === 200 || N.status === 201 ? (f(!0), i(N.response), D(N.response)) : (k(N.statusText), j(N));
2363
+ }, N.onerror = () => {
2364
+ k(N.statusText), j(N);
2365
+ }, N.open("POST", a == null ? void 0 : a.url, !0);
2366
+ const K = a == null ? void 0 : a.headers;
2367
+ for (let Q in K)
2368
+ N.setRequestHeader(Q, K[Q]);
2359
2369
  const oe = new FormData(), ae = F == null ? void 0 : F.appendData;
2360
2370
  for (let Q in ae)
2361
2371
  ae[Q] && oe.append(Q, ae[Q]);
2362
- oe.append("file", F.file), k.send(oe);
2372
+ oe.append("file", F.file), N.send(oe);
2363
2373
  });
2364
2374
  };
2365
- se(() => {
2366
- D.current || y(r);
2375
+ te(() => {
2376
+ A.current || y(r);
2367
2377
  }, []);
2368
2378
  const b = () => {
2369
- D.current && (D.current.abort(), s((F) => ({
2379
+ A.current && (A.current.abort(), s((F) => ({
2370
2380
  ...F,
2371
2381
  [e]: !1
2372
2382
  })), w(!0), d(0));
2373
2383
  }, u = () => {
2374
2384
  r != null && r.file && (n(
2375
- (F) => F.map((A, N) => e === N ? {
2376
- ...A,
2385
+ (F) => F.map((D, k) => e === k ? {
2386
+ ...D,
2377
2387
  error: !1
2378
- } : A)
2388
+ } : D)
2379
2389
  ), y({ ...r, error: !1 }), w(!1), M(!1));
2380
2390
  };
2381
2391
  return r.removed ? null : /* @__PURE__ */ t.jsxs("li", { children: [
@@ -2386,37 +2396,37 @@ const Es = ({
2386
2396
  /* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (_ = r.file) == null ? void 0 : _.name, children: (x = r.file) == null ? void 0 : x.name }),
2387
2397
  /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Ze((R = r.file) == null ? void 0 : R.size) })
2388
2398
  ] }),
2389
- h ? /* @__PURE__ */ t.jsx(ss, { title: "Uploaded", className: "upload-success" }) : p || S ? /* @__PURE__ */ t.jsx(ws, { className: "retry-upload", title: "Retry", onClick: u }) : /* @__PURE__ */ t.jsx(
2399
+ p ? /* @__PURE__ */ t.jsx(as, { title: "Uploaded", className: "upload-success" }) : h || S ? /* @__PURE__ */ t.jsx(Rs, { className: "retry-upload", title: "Retry", onClick: u }) : /* @__PURE__ */ t.jsx(
2390
2400
  "div",
2391
2401
  {
2392
2402
  className: "rm-file",
2393
2403
  title: `${r.error ? "Remove" : "Abort Upload"}`,
2394
- onClick: r.error ? () => i(e) : b,
2395
- children: /* @__PURE__ */ t.jsx(Cs, {})
2404
+ onClick: r.error ? () => c(e) : b,
2405
+ children: /* @__PURE__ */ t.jsx(bs, {})
2396
2406
  }
2397
2407
  )
2398
2408
  ] }),
2399
2409
  /* @__PURE__ */ t.jsx(
2400
- bs,
2410
+ Es,
2401
2411
  {
2402
2412
  percent: l,
2403
- isCanceled: p,
2404
- isCompleted: h,
2413
+ isCanceled: h,
2414
+ isCompleted: p,
2405
2415
  error: r.error
2406
2416
  }
2407
2417
  )
2408
2418
  ] })
2409
2419
  ] });
2410
- }, Rs = ({
2420
+ }, Ts = ({
2411
2421
  fileUploadConfig: e,
2412
2422
  maxFileSize: r,
2413
2423
  acceptedFileTypes: n,
2414
2424
  onFileUploading: s,
2415
2425
  onFileUploaded: a
2416
2426
  }) => {
2417
- const [c, i] = L([]), [l, d] = L(!1), [h, f] = L({}), { currentFolder: p, currentPathFiles: w } = Ee(), { onError: S } = Ge(), M = de(null), z = (u) => {
2427
+ const [i, c] = L([]), [l, d] = L(!1), [p, f] = L({}), { currentFolder: h, currentPathFiles: w } = Ee(), { onError: S } = Ge(), M = de(null), z = (u) => {
2418
2428
  u.key === "Enter" && M.current.click();
2419
- }, D = (u) => {
2429
+ }, A = (u) => {
2420
2430
  if (n && !n.includes(_e(u.name)))
2421
2431
  return "File type is not allowed.";
2422
2432
  if (w.some(
@@ -2425,17 +2435,17 @@ const Es = ({
2425
2435
  if (r && u.size > r) return `Maximum upload size is ${Ze(r, 0)}.`;
2426
2436
  }, C = (u) => {
2427
2437
  if (u = u.filter(
2428
- (g) => !c.some((_) => _.file.name.toLowerCase() === g.name.toLowerCase())
2438
+ (g) => !i.some((_) => _.file.name.toLowerCase() === g.name.toLowerCase())
2429
2439
  ), u.length > 0) {
2430
2440
  const g = u.map((_) => {
2431
- const x = s(_, p), R = D(_);
2441
+ const x = s(_, h), R = A(_);
2432
2442
  return R && S({ type: "upload", message: R }, _), {
2433
2443
  file: _,
2434
2444
  appendData: x,
2435
2445
  ...R && { error: R }
2436
2446
  };
2437
2447
  });
2438
- i((_) => [..._, ...g]);
2448
+ c((_) => [..._, ...g]);
2439
2449
  }
2440
2450
  }, j = (u) => {
2441
2451
  u.preventDefault(), d(!1);
@@ -2445,7 +2455,7 @@ const Es = ({
2445
2455
  const g = Array.from(u.target.files);
2446
2456
  C(g);
2447
2457
  }, b = (u) => {
2448
- i((g) => {
2458
+ c((g) => {
2449
2459
  const _ = g.map((x, R) => u === R ? {
2450
2460
  ...x,
2451
2461
  removed: !0
@@ -2453,7 +2463,7 @@ const Es = ({
2453
2463
  return _.every((x) => !!x.removed) ? [] : _;
2454
2464
  });
2455
2465
  };
2456
- return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${c.length > 0 ? "file-selcted" : ""}`, children: [
2466
+ return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${i.length > 0 ? "file-selcted" : ""}`, children: [
2457
2467
  /* @__PURE__ */ t.jsxs("div", { className: "select-files", children: [
2458
2468
  /* @__PURE__ */ t.jsx(
2459
2469
  "div",
@@ -2464,7 +2474,7 @@ const Es = ({
2464
2474
  onDragEnter: () => d(!0),
2465
2475
  onDragLeave: () => d(!1),
2466
2476
  children: /* @__PURE__ */ t.jsxs("div", { className: "input-text", children: [
2467
- /* @__PURE__ */ t.jsx(js, { size: 30 }),
2477
+ /* @__PURE__ */ t.jsx(ws, { size: 30 }),
2468
2478
  /* @__PURE__ */ t.jsx("span", { children: "Drag files to upload" })
2469
2479
  ] })
2470
2480
  }
@@ -2485,17 +2495,17 @@ const Es = ({
2485
2495
  )
2486
2496
  ] }) })
2487
2497
  ] }),
2488
- c.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "files-progress", children: [
2489
- /* @__PURE__ */ t.jsx("div", { className: "heading", children: Object.values(h).some((u) => u) ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2498
+ i.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "files-progress", children: [
2499
+ /* @__PURE__ */ t.jsx("div", { className: "heading", children: Object.values(p).some((u) => u) ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2490
2500
  /* @__PURE__ */ t.jsx("h2", { children: "Uploading" }),
2491
2501
  /* @__PURE__ */ t.jsx(xt, { loading: !0, className: "upload-loading" })
2492
2502
  ] }) : /* @__PURE__ */ t.jsx("h2", { children: "Completed" }) }),
2493
- /* @__PURE__ */ t.jsx("ul", { children: c.map((u, g) => /* @__PURE__ */ t.jsx(
2494
- Es,
2503
+ /* @__PURE__ */ t.jsx("ul", { children: i.map((u, g) => /* @__PURE__ */ t.jsx(
2504
+ Ps,
2495
2505
  {
2496
2506
  index: g,
2497
2507
  fileData: u,
2498
- setFiles: i,
2508
+ setFiles: c,
2499
2509
  fileUploadConfig: e,
2500
2510
  setIsUploading: f,
2501
2511
  onFileUploaded: a,
@@ -2505,58 +2515,58 @@ const Es = ({
2505
2515
  )) })
2506
2516
  ] })
2507
2517
  ] });
2508
- }, Jt = ["jpg", "jpeg", "png"], Zt = ["mp4", "mov", "avi"], Qt = ["mp3", "wav", "m4a"], er = ["txt", "pdf"], Ps = ({ filePreviewPath: e, filePreviewComponent: r }) => {
2518
+ }, Zt = ["jpg", "jpeg", "png"], Qt = ["mp4", "mov", "avi"], er = ["mp3", "wav", "m4a"], tr = ["txt", "pdf"], Fs = ({ filePreviewPath: e, filePreviewComponent: r }) => {
2509
2519
  var M;
2510
- const [n, s] = L(!0), [a, c] = L(!1), { selectedFiles: i } = Fe(), l = Xe(73), d = (M = _e(i[0].name)) == null ? void 0 : M.toLowerCase(), h = `${e}${i[0].path}`, f = yt(
2511
- () => r == null ? void 0 : r(i[0]),
2520
+ const [n, s] = L(!0), [a, i] = L(!1), { selectedFiles: c } = Fe(), l = Xe(73), d = (M = _e(c[0].name)) == null ? void 0 : M.toLowerCase(), p = `${e}${c[0].path}`, f = yt(
2521
+ () => r == null ? void 0 : r(c[0]),
2512
2522
  [r]
2513
- ), p = () => {
2514
- s(!1), c(!1);
2523
+ ), h = () => {
2524
+ s(!1), i(!1);
2515
2525
  }, w = () => {
2516
- s(!1), c(!0);
2526
+ s(!1), i(!0);
2517
2527
  }, S = () => {
2518
- window.location.href = h;
2528
+ window.location.href = p;
2519
2529
  };
2520
2530
  return Pe.isValidElement(f) ? f : /* @__PURE__ */ t.jsxs("section", { className: `file-previewer ${d === "pdf" ? "pdf-previewer" : ""}`, children: [
2521
2531
  a || ![
2522
- ...Jt,
2523
2532
  ...Zt,
2524
2533
  ...Qt,
2525
- ...er
2534
+ ...er,
2535
+ ...tr
2526
2536
  ].includes(d) && /* @__PURE__ */ t.jsxs("div", { className: "preview-error", children: [
2527
- /* @__PURE__ */ t.jsx("span", { className: "error-icon", children: l[d] ?? /* @__PURE__ */ t.jsx(os, { size: 73 }) }),
2537
+ /* @__PURE__ */ t.jsx("span", { className: "error-icon", children: l[d] ?? /* @__PURE__ */ t.jsx(is, { size: 73 }) }),
2528
2538
  /* @__PURE__ */ t.jsx("span", { className: "error-msg", children: "Sorry! Preview is not available for this file." }),
2529
2539
  /* @__PURE__ */ t.jsxs("div", { className: "file-info", children: [
2530
- /* @__PURE__ */ t.jsx("span", { className: "file-name", children: i[0].name }),
2531
- i[0].size && /* @__PURE__ */ t.jsx("span", { children: "-" }),
2532
- /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Ze(i[0].size) })
2540
+ /* @__PURE__ */ t.jsx("span", { className: "file-name", children: c[0].name }),
2541
+ c[0].size && /* @__PURE__ */ t.jsx("span", { children: "-" }),
2542
+ /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Ze(c[0].size) })
2533
2543
  ] }),
2534
2544
  /* @__PURE__ */ t.jsx(Ne, { onClick: S, padding: "0.45rem .9rem", children: /* @__PURE__ */ t.jsxs("div", { className: "download-btn", children: [
2535
2545
  /* @__PURE__ */ t.jsx(Ct, { size: 18 }),
2536
2546
  /* @__PURE__ */ t.jsx("span", { children: "Download" })
2537
2547
  ] }) })
2538
2548
  ] }),
2539
- Jt.includes(d) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2549
+ Zt.includes(d) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2540
2550
  /* @__PURE__ */ t.jsx(xt, { isLoading: n }),
2541
2551
  /* @__PURE__ */ t.jsx(
2542
2552
  "img",
2543
2553
  {
2544
- src: h,
2554
+ src: p,
2545
2555
  alt: "Preview Unavailable",
2546
2556
  className: `photo-popup-image ${n ? "img-loading" : ""}`,
2547
- onLoad: p,
2557
+ onLoad: h,
2548
2558
  onError: w,
2549
2559
  loading: "lazy"
2550
2560
  }
2551
2561
  )
2552
2562
  ] }),
2553
- Zt.includes(d) && /* @__PURE__ */ t.jsx("video", { src: h, className: "video-preview", controls: !0, autoPlay: !0 }),
2554
- Qt.includes(d) && /* @__PURE__ */ t.jsx("audio", { src: h, controls: !0, autoPlay: !0, className: "audio-preview" }),
2555
- er.includes(d) && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
2563
+ Qt.includes(d) && /* @__PURE__ */ t.jsx("video", { src: p, className: "video-preview", controls: !0, autoPlay: !0 }),
2564
+ er.includes(d) && /* @__PURE__ */ t.jsx("audio", { src: p, controls: !0, autoPlay: !0, className: "audio-preview" }),
2565
+ tr.includes(d) && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
2556
2566
  "iframe",
2557
2567
  {
2558
- src: h,
2559
- onLoad: p,
2568
+ src: p,
2569
+ onLoad: h,
2560
2570
  onError: w,
2561
2571
  frameBorder: "0",
2562
2572
  className: `photo-popup-iframe ${n ? "img-loading" : ""}`
@@ -2564,18 +2574,18 @@ const Es = ({
2564
2574
  ) })
2565
2575
  ] });
2566
2576
  }, ct = (e) => e.toLowerCase(), ge = (e, r, n = !1) => {
2567
- const s = de(/* @__PURE__ */ new Set([])), a = yt(() => new Set(e.map((d) => ct(d))), [e]), c = (d) => {
2577
+ const s = de(/* @__PURE__ */ new Set([])), a = yt(() => new Set(e.map((d) => ct(d))), [e]), i = (d) => {
2568
2578
  if (!d.repeat && (s.current.add(ct(d.key)), a.isSubsetOf(s.current) && !n)) {
2569
2579
  d.preventDefault(), r(d);
2570
2580
  return;
2571
2581
  }
2572
- }, i = (d) => {
2582
+ }, c = (d) => {
2573
2583
  s.current.delete(ct(d.key));
2574
2584
  }, l = () => {
2575
2585
  s.current.clear();
2576
2586
  };
2577
- se(() => (window.addEventListener("keydown", c), window.addEventListener("keyup", i), window.addEventListener("blur", l), () => {
2578
- window.removeEventListener("keydown", c), window.removeEventListener("keyup", i), window.removeEventListener("blur", l);
2587
+ te(() => (window.addEventListener("keydown", i), window.addEventListener("keyup", c), window.addEventListener("blur", l), () => {
2588
+ window.removeEventListener("keydown", i), window.removeEventListener("keyup", c), window.removeEventListener("blur", l);
2579
2589
  }), [a, r, n]);
2580
2590
  }, ye = {
2581
2591
  createFolder: ["Alt", "Shift", "N"],
@@ -2599,61 +2609,61 @@ const Es = ({
2599
2609
  // Act as Ctrl + Shift + 2 but could cause problems for QWERTZ or DVORAK etc. keyborad layouts.
2600
2610
  refresh: ["F5"],
2601
2611
  clearSelection: ["Escape"]
2602
- }, Ts = (e, r) => {
2603
- const { setClipBoard: n, handleCutCopy: s, handlePasting: a } = Je(), { currentFolder: c, currentPathFiles: i } = Ee(), { setSelectedFiles: l, handleDownload: d } = Fe(), { setActiveLayout: h } = Se(), f = () => {
2612
+ }, Ss = (e, r) => {
2613
+ const { setClipBoard: n, handleCutCopy: s, handlePasting: a } = Je(), { currentFolder: i, currentPathFiles: c } = Ee(), { setSelectedFiles: l, handleDownload: d } = Fe(), { setActiveLayout: p } = Se(), f = () => {
2604
2614
  e.show("createFolder");
2605
- }, p = () => {
2615
+ }, h = () => {
2606
2616
  e.show("uploadFile");
2607
2617
  }, w = () => {
2608
2618
  s(!0);
2609
2619
  }, S = () => {
2610
2620
  s(!1);
2611
2621
  }, M = () => {
2612
- a(c);
2622
+ a(i);
2613
2623
  }, z = () => {
2614
2624
  e.show("rename");
2615
- }, D = () => {
2625
+ }, A = () => {
2616
2626
  d();
2617
2627
  }, C = () => {
2618
2628
  e.show("delete");
2619
2629
  }, j = () => {
2620
- i.length > 0 && l([i[0]]);
2630
+ c.length > 0 && l([c[0]]);
2621
2631
  }, y = () => {
2622
- i.length > 0 && l([i.at(-1)]);
2632
+ c.length > 0 && l([c.at(-1)]);
2623
2633
  }, b = () => {
2624
- l(i);
2634
+ l(c);
2625
2635
  }, u = () => {
2626
2636
  l((R) => R.length > 0 ? [] : R);
2627
2637
  }, g = () => {
2628
2638
  Le(r, "onRefresh"), n(null);
2629
2639
  }, _ = () => {
2630
- h("grid");
2640
+ p("grid");
2631
2641
  }, x = () => {
2632
- h("list");
2642
+ p("list");
2633
2643
  };
2634
- ge(ye.createFolder, f, e.isActive), ge(ye.uploadFiles, p, e.isActive), ge(ye.cut, w, e.isActive), ge(ye.copy, S, e.isActive), ge(ye.paste, M, e.isActive), ge(ye.rename, z, e.isActive), ge(ye.download, D, e.isActive), ge(ye.delete, C, e.isActive), ge(ye.jumpToFirst, j, e.isActive), ge(ye.jumpToLast, y, e.isActive), ge(ye.selectAll, b, e.isActive), ge(ye.clearSelection, u, e.isActive), ge(ye.refresh, g, e.isActive), ge(ye.gridLayout, _, e.isActive), ge(ye.listLayout, x, e.isActive);
2635
- }, Fs = ({
2644
+ ge(ye.createFolder, f, e.isActive), ge(ye.uploadFiles, h, e.isActive), ge(ye.cut, w, e.isActive), ge(ye.copy, S, e.isActive), ge(ye.paste, M, e.isActive), ge(ye.rename, z, e.isActive), ge(ye.download, A, e.isActive), ge(ye.delete, C, e.isActive), ge(ye.jumpToFirst, j, e.isActive), ge(ye.jumpToLast, y, e.isActive), ge(ye.selectAll, b, e.isActive), ge(ye.clearSelection, u, e.isActive), ge(ye.refresh, g, e.isActive), ge(ye.gridLayout, _, e.isActive), ge(ye.listLayout, x, e.isActive);
2645
+ }, Ms = ({
2636
2646
  fileUploadConfig: e,
2637
2647
  onFileUploading: r,
2638
2648
  onFileUploaded: n,
2639
2649
  onDelete: s,
2640
2650
  onRefresh: a,
2641
- maxFileSize: c,
2642
- filePreviewPath: i,
2651
+ maxFileSize: i,
2652
+ filePreviewPath: c,
2643
2653
  filePreviewComponent: l,
2644
2654
  acceptedFileTypes: d,
2645
- triggerAction: h
2655
+ triggerAction: p
2646
2656
  }) => {
2647
- const [f, p] = L(null), { selectedFiles: w } = Fe();
2648
- Ts(h, a);
2657
+ const [f, h] = L(null), { selectedFiles: w } = Fe();
2658
+ Ss(p, a);
2649
2659
  const S = {
2650
2660
  uploadFile: {
2651
2661
  title: "Upload",
2652
2662
  component: /* @__PURE__ */ t.jsx(
2653
- Rs,
2663
+ Ts,
2654
2664
  {
2655
2665
  fileUploadConfig: e,
2656
- maxFileSize: c,
2666
+ maxFileSize: i,
2657
2667
  acceptedFileTypes: d,
2658
2668
  onFileUploading: r,
2659
2669
  onFileUploaded: n
@@ -2663,72 +2673,72 @@ const Es = ({
2663
2673
  },
2664
2674
  delete: {
2665
2675
  title: "Delete",
2666
- component: /* @__PURE__ */ t.jsx(xs, { triggerAction: h, onDelete: s }),
2676
+ component: /* @__PURE__ */ t.jsx(js, { triggerAction: p, onDelete: s }),
2667
2677
  width: "25%"
2668
2678
  },
2669
2679
  previewFile: {
2670
2680
  title: "Preview",
2671
2681
  component: /* @__PURE__ */ t.jsx(
2672
- Ps,
2682
+ Fs,
2673
2683
  {
2674
- filePreviewPath: i,
2684
+ filePreviewPath: c,
2675
2685
  filePreviewComponent: l
2676
2686
  }
2677
2687
  ),
2678
2688
  width: "50%"
2679
2689
  }
2680
2690
  };
2681
- if (se(() => {
2682
- if (h.isActive) {
2683
- const M = h.actionType;
2684
- M === "previewFile" && (S[M].title = (w == null ? void 0 : w.name) ?? "Preview"), p(S[M]);
2691
+ if (te(() => {
2692
+ if (p.isActive) {
2693
+ const M = p.actionType;
2694
+ M === "previewFile" && (S[M].title = (w == null ? void 0 : w.name) ?? "Preview"), h(S[M]);
2685
2695
  } else
2686
- p(null);
2687
- }, [h.isActive]), f)
2696
+ h(null);
2697
+ }, [p.isActive]), f)
2688
2698
  return /* @__PURE__ */ t.jsx(
2689
- zr,
2699
+ Ar,
2690
2700
  {
2691
2701
  heading: f.title,
2692
- show: h.isActive,
2693
- setShow: h.close,
2702
+ show: p.isActive,
2703
+ setShow: p.close,
2694
2704
  dialogWidth: f.width,
2695
2705
  children: f == null ? void 0 : f.component
2696
2706
  }
2697
2707
  );
2698
- }, Ss = () => {
2708
+ }, Ls = () => {
2699
2709
  const [e, r] = L(!1), [n, s] = L(null);
2700
2710
  return {
2701
2711
  isActive: e,
2702
2712
  actionType: n,
2703
- show: (i) => {
2704
- r(!0), s(i);
2713
+ show: (c) => {
2714
+ r(!0), s(c);
2705
2715
  },
2706
2716
  close: () => {
2707
2717
  r(!1), s(null);
2708
2718
  }
2709
2719
  };
2710
- }, Ms = (e, r) => {
2711
- const [n, s] = L({ col1: e, col2: r }), [a, c] = L(!1), i = de(null);
2720
+ }, Os = (e, r) => {
2721
+ const [n, s] = L({ col1: e, col2: r }), [a, i] = L(!1), c = de(null);
2712
2722
  return {
2713
- containerRef: i,
2723
+ containerRef: c,
2714
2724
  colSizes: n,
2715
2725
  setColSizes: s,
2716
2726
  isDragging: a,
2717
2727
  handleMouseDown: () => {
2718
- c(!0);
2728
+ i(!0);
2719
2729
  },
2720
2730
  handleMouseUp: () => {
2721
- c(!1);
2731
+ i(!1);
2722
2732
  },
2723
2733
  handleMouseMove: (f) => {
2724
2734
  if (!a) return;
2725
2735
  f.preventDefault();
2726
- const w = i.current.getBoundingClientRect(), S = (f.clientX - w.left) / w.width * 100;
2736
+ const w = c.current.getBoundingClientRect(), S = (f.clientX - w.left) / w.width * 100;
2727
2737
  S >= 15 && S <= 60 && s({ col1: S, col2: 100 - S });
2728
2738
  }
2729
2739
  };
2730
2740
  };
2731
- var gt = { exports: {} }, We = { exports: {} }, re = {};
2741
+ var gt = { exports: {} }, We = { exports: {} }, ne = {};
2732
2742
  /** @license React v16.13.1
2733
2743
  * react-is.production.min.js
2734
2744
  *
@@ -2737,11 +2747,11 @@ var gt = { exports: {} }, We = { exports: {} }, re = {};
2737
2747
  * This source code is licensed under the MIT license found in the
2738
2748
  * LICENSE file in the root directory of this source tree.
2739
2749
  */
2740
- var tr;
2741
- function Ls() {
2742
- if (tr) return re;
2743
- tr = 1;
2744
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2750
+ var rr;
2751
+ function ks() {
2752
+ if (rr) return ne;
2753
+ rr = 1;
2754
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2745
2755
  function y(u) {
2746
2756
  if (typeof u == "object" && u !== null) {
2747
2757
  var g = u.$$typeof;
@@ -2749,11 +2759,11 @@ function Ls() {
2749
2759
  case r:
2750
2760
  switch (u = u.type, u) {
2751
2761
  case d:
2752
- case h:
2762
+ case p:
2753
2763
  case s:
2754
- case c:
2764
+ case i:
2755
2765
  case a:
2756
- case p:
2766
+ case h:
2757
2767
  return u;
2758
2768
  default:
2759
2769
  switch (u = u && u.$$typeof, u) {
@@ -2761,7 +2771,7 @@ function Ls() {
2761
2771
  case f:
2762
2772
  case M:
2763
2773
  case S:
2764
- case i:
2774
+ case c:
2765
2775
  return u;
2766
2776
  default:
2767
2777
  return g;
@@ -2773,37 +2783,37 @@ function Ls() {
2773
2783
  }
2774
2784
  }
2775
2785
  function b(u) {
2776
- return y(u) === h;
2786
+ return y(u) === p;
2777
2787
  }
2778
- return re.AsyncMode = d, re.ConcurrentMode = h, re.ContextConsumer = l, re.ContextProvider = i, re.Element = r, re.ForwardRef = f, re.Fragment = s, re.Lazy = M, re.Memo = S, re.Portal = n, re.Profiler = c, re.StrictMode = a, re.Suspense = p, re.isAsyncMode = function(u) {
2788
+ return ne.AsyncMode = d, ne.ConcurrentMode = p, ne.ContextConsumer = l, ne.ContextProvider = c, ne.Element = r, ne.ForwardRef = f, ne.Fragment = s, ne.Lazy = M, ne.Memo = S, ne.Portal = n, ne.Profiler = i, ne.StrictMode = a, ne.Suspense = h, ne.isAsyncMode = function(u) {
2779
2789
  return b(u) || y(u) === d;
2780
- }, re.isConcurrentMode = b, re.isContextConsumer = function(u) {
2790
+ }, ne.isConcurrentMode = b, ne.isContextConsumer = function(u) {
2781
2791
  return y(u) === l;
2782
- }, re.isContextProvider = function(u) {
2783
- return y(u) === i;
2784
- }, re.isElement = function(u) {
2792
+ }, ne.isContextProvider = function(u) {
2793
+ return y(u) === c;
2794
+ }, ne.isElement = function(u) {
2785
2795
  return typeof u == "object" && u !== null && u.$$typeof === r;
2786
- }, re.isForwardRef = function(u) {
2796
+ }, ne.isForwardRef = function(u) {
2787
2797
  return y(u) === f;
2788
- }, re.isFragment = function(u) {
2798
+ }, ne.isFragment = function(u) {
2789
2799
  return y(u) === s;
2790
- }, re.isLazy = function(u) {
2800
+ }, ne.isLazy = function(u) {
2791
2801
  return y(u) === M;
2792
- }, re.isMemo = function(u) {
2802
+ }, ne.isMemo = function(u) {
2793
2803
  return y(u) === S;
2794
- }, re.isPortal = function(u) {
2804
+ }, ne.isPortal = function(u) {
2795
2805
  return y(u) === n;
2796
- }, re.isProfiler = function(u) {
2797
- return y(u) === c;
2798
- }, re.isStrictMode = function(u) {
2806
+ }, ne.isProfiler = function(u) {
2807
+ return y(u) === i;
2808
+ }, ne.isStrictMode = function(u) {
2799
2809
  return y(u) === a;
2800
- }, re.isSuspense = function(u) {
2801
- return y(u) === p;
2802
- }, re.isValidElementType = function(u) {
2803
- return typeof u == "string" || typeof u == "function" || u === s || u === h || u === c || u === a || u === p || u === w || typeof u == "object" && u !== null && (u.$$typeof === M || u.$$typeof === S || u.$$typeof === i || u.$$typeof === l || u.$$typeof === f || u.$$typeof === D || u.$$typeof === C || u.$$typeof === j || u.$$typeof === z);
2804
- }, re.typeOf = y, re;
2810
+ }, ne.isSuspense = function(u) {
2811
+ return y(u) === h;
2812
+ }, ne.isValidElementType = function(u) {
2813
+ return typeof u == "string" || typeof u == "function" || u === s || u === p || u === i || u === a || u === h || u === w || typeof u == "object" && u !== null && (u.$$typeof === M || u.$$typeof === S || u.$$typeof === c || u.$$typeof === l || u.$$typeof === f || u.$$typeof === A || u.$$typeof === C || u.$$typeof === j || u.$$typeof === z);
2814
+ }, ne.typeOf = y, ne;
2805
2815
  }
2806
- var ne = {};
2816
+ var se = {};
2807
2817
  /** @license React v16.13.1
2808
2818
  * react-is.development.js
2809
2819
  *
@@ -2812,13 +2822,13 @@ var ne = {};
2812
2822
  * This source code is licensed under the MIT license found in the
2813
2823
  * LICENSE file in the root directory of this source tree.
2814
2824
  */
2815
- var rr;
2816
- function Os() {
2817
- return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
2818
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2825
+ var nr;
2826
+ function _s() {
2827
+ return nr || (nr = 1, process.env.NODE_ENV !== "production" && function() {
2828
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2819
2829
  function y(E) {
2820
2830
  return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2821
- E === s || E === h || E === c || E === a || E === p || E === w || typeof E == "object" && E !== null && (E.$$typeof === M || E.$$typeof === S || E.$$typeof === i || E.$$typeof === l || E.$$typeof === f || E.$$typeof === D || E.$$typeof === C || E.$$typeof === j || E.$$typeof === z);
2831
+ E === s || E === p || E === i || E === a || E === h || E === w || typeof E == "object" && E !== null && (E.$$typeof === M || E.$$typeof === S || E.$$typeof === c || E.$$typeof === l || E.$$typeof === f || E.$$typeof === A || E.$$typeof === C || E.$$typeof === j || E.$$typeof === z);
2822
2832
  }
2823
2833
  function b(E) {
2824
2834
  if (typeof E == "object" && E !== null) {
@@ -2828,11 +2838,11 @@ function Os() {
2828
2838
  var Te = E.type;
2829
2839
  switch (Te) {
2830
2840
  case d:
2831
- case h:
2841
+ case p:
2832
2842
  case s:
2833
- case c:
2843
+ case i:
2834
2844
  case a:
2835
- case p:
2845
+ case h:
2836
2846
  return Te;
2837
2847
  default:
2838
2848
  var Y = Te && Te.$$typeof;
@@ -2841,7 +2851,7 @@ function Os() {
2841
2851
  case f:
2842
2852
  case M:
2843
2853
  case S:
2844
- case i:
2854
+ case c:
2845
2855
  return Y;
2846
2856
  default:
2847
2857
  return ve;
@@ -2852,18 +2862,18 @@ function Os() {
2852
2862
  }
2853
2863
  }
2854
2864
  }
2855
- var u = d, g = h, _ = l, x = i, R = r, F = f, A = s, N = M, k = S, X = n, oe = c, ae = a, Q = p, he = !1;
2865
+ var u = d, g = p, _ = l, x = c, R = r, F = f, D = s, k = M, N = S, K = n, oe = i, ae = a, Q = h, he = !1;
2856
2866
  function xe(E) {
2857
- return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(E) || b(E) === d;
2867
+ return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), v(E) || b(E) === d;
2858
2868
  }
2859
- function m(E) {
2860
- return b(E) === h;
2869
+ function v(E) {
2870
+ return b(E) === p;
2861
2871
  }
2862
2872
  function P(E) {
2863
2873
  return b(E) === l;
2864
2874
  }
2865
2875
  function V(E) {
2866
- return b(E) === i;
2876
+ return b(E) === c;
2867
2877
  }
2868
2878
  function W(E) {
2869
2879
  return typeof E == "object" && E !== null && E.$$typeof === r;
@@ -2871,7 +2881,7 @@ function Os() {
2871
2881
  function I(E) {
2872
2882
  return b(E) === f;
2873
2883
  }
2874
- function K(E) {
2884
+ function X(E) {
2875
2885
  return b(E) === s;
2876
2886
  }
2877
2887
  function O(E) {
@@ -2884,123 +2894,123 @@ function Os() {
2884
2894
  return b(E) === n;
2885
2895
  }
2886
2896
  function Z(E) {
2887
- return b(E) === c;
2897
+ return b(E) === i;
2888
2898
  }
2889
2899
  function q(E) {
2890
2900
  return b(E) === a;
2891
2901
  }
2892
2902
  function fe(E) {
2893
- return b(E) === p;
2903
+ return b(E) === h;
2894
2904
  }
2895
- ne.AsyncMode = u, ne.ConcurrentMode = g, ne.ContextConsumer = _, ne.ContextProvider = x, ne.Element = R, ne.ForwardRef = F, ne.Fragment = A, ne.Lazy = N, ne.Memo = k, ne.Portal = X, ne.Profiler = oe, ne.StrictMode = ae, ne.Suspense = Q, ne.isAsyncMode = xe, ne.isConcurrentMode = m, ne.isContextConsumer = P, ne.isContextProvider = V, ne.isElement = W, ne.isForwardRef = I, ne.isFragment = K, ne.isLazy = O, ne.isMemo = $, ne.isPortal = U, ne.isProfiler = Z, ne.isStrictMode = q, ne.isSuspense = fe, ne.isValidElementType = y, ne.typeOf = b;
2896
- }()), ne;
2905
+ se.AsyncMode = u, se.ConcurrentMode = g, se.ContextConsumer = _, se.ContextProvider = x, se.Element = R, se.ForwardRef = F, se.Fragment = D, se.Lazy = k, se.Memo = N, se.Portal = K, se.Profiler = oe, se.StrictMode = ae, se.Suspense = Q, se.isAsyncMode = xe, se.isConcurrentMode = v, se.isContextConsumer = P, se.isContextProvider = V, se.isElement = W, se.isForwardRef = I, se.isFragment = X, se.isLazy = O, se.isMemo = $, se.isPortal = U, se.isProfiler = Z, se.isStrictMode = q, se.isSuspense = fe, se.isValidElementType = y, se.typeOf = b;
2906
+ }()), se;
2897
2907
  }
2898
- var nr;
2899
- function Ir() {
2900
- return nr || (nr = 1, process.env.NODE_ENV === "production" ? We.exports = Ls() : We.exports = Os()), We.exports;
2908
+ var sr;
2909
+ function $r() {
2910
+ return sr || (sr = 1, process.env.NODE_ENV === "production" ? We.exports = ks() : We.exports = _s()), We.exports;
2901
2911
  }
2902
2912
  /*
2903
2913
  object-assign
2904
2914
  (c) Sindre Sorhus
2905
2915
  @license MIT
2906
2916
  */
2907
- var lt, sr;
2908
- function ks() {
2909
- if (sr) return lt;
2910
- sr = 1;
2917
+ var lt, or;
2918
+ function Ns() {
2919
+ if (or) return lt;
2920
+ or = 1;
2911
2921
  var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
2912
- function s(c) {
2913
- if (c == null)
2922
+ function s(i) {
2923
+ if (i == null)
2914
2924
  throw new TypeError("Object.assign cannot be called with null or undefined");
2915
- return Object(c);
2925
+ return Object(i);
2916
2926
  }
2917
2927
  function a() {
2918
2928
  try {
2919
2929
  if (!Object.assign)
2920
2930
  return !1;
2921
- var c = new String("abc");
2922
- if (c[5] = "de", Object.getOwnPropertyNames(c)[0] === "5")
2931
+ var i = new String("abc");
2932
+ if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
2923
2933
  return !1;
2924
- for (var i = {}, l = 0; l < 10; l++)
2925
- i["_" + String.fromCharCode(l)] = l;
2926
- var d = Object.getOwnPropertyNames(i).map(function(f) {
2927
- return i[f];
2934
+ for (var c = {}, l = 0; l < 10; l++)
2935
+ c["_" + String.fromCharCode(l)] = l;
2936
+ var d = Object.getOwnPropertyNames(c).map(function(f) {
2937
+ return c[f];
2928
2938
  });
2929
2939
  if (d.join("") !== "0123456789")
2930
2940
  return !1;
2931
- var h = {};
2941
+ var p = {};
2932
2942
  return "abcdefghijklmnopqrst".split("").forEach(function(f) {
2933
- h[f] = f;
2934
- }), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
2943
+ p[f] = f;
2944
+ }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
2935
2945
  } catch {
2936
2946
  return !1;
2937
2947
  }
2938
2948
  }
2939
- return lt = a() ? Object.assign : function(c, i) {
2940
- for (var l, d = s(c), h, f = 1; f < arguments.length; f++) {
2949
+ return lt = a() ? Object.assign : function(i, c) {
2950
+ for (var l, d = s(i), p, f = 1; f < arguments.length; f++) {
2941
2951
  l = Object(arguments[f]);
2942
- for (var p in l)
2943
- r.call(l, p) && (d[p] = l[p]);
2952
+ for (var h in l)
2953
+ r.call(l, h) && (d[h] = l[h]);
2944
2954
  if (e) {
2945
- h = e(l);
2946
- for (var w = 0; w < h.length; w++)
2947
- n.call(l, h[w]) && (d[h[w]] = l[h[w]]);
2955
+ p = e(l);
2956
+ for (var w = 0; w < p.length; w++)
2957
+ n.call(l, p[w]) && (d[p[w]] = l[p[w]]);
2948
2958
  }
2949
2959
  }
2950
2960
  return d;
2951
2961
  }, lt;
2952
2962
  }
2953
- var ut, or;
2963
+ var ut, ar;
2954
2964
  function jt() {
2955
- if (or) return ut;
2956
- or = 1;
2965
+ if (ar) return ut;
2966
+ ar = 1;
2957
2967
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2958
2968
  return ut = e, ut;
2959
2969
  }
2960
- var dt, ar;
2961
- function $r() {
2962
- return ar || (ar = 1, dt = Function.call.bind(Object.prototype.hasOwnProperty)), dt;
2970
+ var dt, ir;
2971
+ function Br() {
2972
+ return ir || (ir = 1, dt = Function.call.bind(Object.prototype.hasOwnProperty)), dt;
2963
2973
  }
2964
- var ft, ir;
2965
- function _s() {
2966
- if (ir) return ft;
2967
- ir = 1;
2974
+ var ft, cr;
2975
+ function zs() {
2976
+ if (cr) return ft;
2977
+ cr = 1;
2968
2978
  var e = function() {
2969
2979
  };
2970
2980
  if (process.env.NODE_ENV !== "production") {
2971
- var r = jt(), n = {}, s = $r();
2972
- e = function(c) {
2973
- var i = "Warning: " + c;
2974
- typeof console < "u" && console.error(i);
2981
+ var r = jt(), n = {}, s = Br();
2982
+ e = function(i) {
2983
+ var c = "Warning: " + i;
2984
+ typeof console < "u" && console.error(c);
2975
2985
  try {
2976
- throw new Error(i);
2986
+ throw new Error(c);
2977
2987
  } catch {
2978
2988
  }
2979
2989
  };
2980
2990
  }
2981
- function a(c, i, l, d, h) {
2991
+ function a(i, c, l, d, p) {
2982
2992
  if (process.env.NODE_ENV !== "production") {
2983
- for (var f in c)
2984
- if (s(c, f)) {
2985
- var p;
2993
+ for (var f in i)
2994
+ if (s(i, f)) {
2995
+ var h;
2986
2996
  try {
2987
- if (typeof c[f] != "function") {
2997
+ if (typeof i[f] != "function") {
2988
2998
  var w = Error(
2989
- (d || "React class") + ": " + l + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2999
+ (d || "React class") + ": " + l + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2990
3000
  );
2991
3001
  throw w.name = "Invariant Violation", w;
2992
3002
  }
2993
- p = c[f](i, f, d, l, null, r);
3003
+ h = i[f](c, f, d, l, null, r);
2994
3004
  } catch (M) {
2995
- p = M;
3005
+ h = M;
2996
3006
  }
2997
- if (p && !(p instanceof Error) && e(
2998
- (d || "React class") + ": type specification of " + l + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2999
- ), p instanceof Error && !(p.message in n)) {
3000
- n[p.message] = !0;
3001
- var S = h ? h() : "";
3007
+ if (h && !(h instanceof Error) && e(
3008
+ (d || "React class") + ": type specification of " + l + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
3009
+ ), h instanceof Error && !(h.message in n)) {
3010
+ n[h.message] = !0;
3011
+ var S = p ? p() : "";
3002
3012
  e(
3003
- "Failed " + l + " type: " + p.message + (S ?? "")
3013
+ "Failed " + l + " type: " + h.message + (S ?? "")
3004
3014
  );
3005
3015
  }
3006
3016
  }
@@ -3010,13 +3020,13 @@ function _s() {
3010
3020
  process.env.NODE_ENV !== "production" && (n = {});
3011
3021
  }, ft = a, ft;
3012
3022
  }
3013
- var ht, cr;
3014
- function Ns() {
3015
- if (cr) return ht;
3016
- cr = 1;
3017
- var e = Ir(), r = ks(), n = jt(), s = $r(), a = _s(), c = function() {
3023
+ var ht, lr;
3024
+ function As() {
3025
+ if (lr) return ht;
3026
+ lr = 1;
3027
+ var e = $r(), r = Ns(), n = jt(), s = Br(), a = zs(), i = function() {
3018
3028
  };
3019
- process.env.NODE_ENV !== "production" && (c = function(l) {
3029
+ process.env.NODE_ENV !== "production" && (i = function(l) {
3020
3030
  var d = "Warning: " + l;
3021
3031
  typeof console < "u" && console.error(d);
3022
3032
  try {
@@ -3024,13 +3034,13 @@ function Ns() {
3024
3034
  } catch {
3025
3035
  }
3026
3036
  });
3027
- function i() {
3037
+ function c() {
3028
3038
  return null;
3029
3039
  }
3030
3040
  return ht = function(l, d) {
3031
- var h = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
3032
- function p(m) {
3033
- var P = m && (h && m[h] || m[f]);
3041
+ var p = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
3042
+ function h(v) {
3043
+ var P = v && (p && v[p] || v[f]);
3034
3044
  if (typeof P == "function")
3035
3045
  return P;
3036
3046
  }
@@ -3052,20 +3062,20 @@ function Ns() {
3052
3062
  objectOf: x,
3053
3063
  oneOf: _,
3054
3064
  oneOfType: R,
3055
- shape: N,
3056
- exact: k
3065
+ shape: k,
3066
+ exact: N
3057
3067
  };
3058
- function M(m, P) {
3059
- return m === P ? m !== 0 || 1 / m === 1 / P : m !== m && P !== P;
3068
+ function M(v, P) {
3069
+ return v === P ? v !== 0 || 1 / v === 1 / P : v !== v && P !== P;
3060
3070
  }
3061
- function z(m, P) {
3062
- this.message = m, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
3071
+ function z(v, P) {
3072
+ this.message = v, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
3063
3073
  }
3064
3074
  z.prototype = Error.prototype;
3065
- function D(m) {
3075
+ function A(v) {
3066
3076
  if (process.env.NODE_ENV !== "production")
3067
3077
  var P = {}, V = 0;
3068
- function W(K, O, $, U, Z, q, fe) {
3078
+ function W(X, O, $, U, Z, q, fe) {
3069
3079
  if (U = U || w, q = q || $, fe !== n) {
3070
3080
  if (d) {
3071
3081
  var E = new Error(
@@ -3075,130 +3085,130 @@ function Ns() {
3075
3085
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
3076
3086
  var ve = U + ":" + $;
3077
3087
  !P[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
3078
- V < 3 && (c(
3088
+ V < 3 && (i(
3079
3089
  "You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
3080
3090
  ), P[ve] = !0, V++);
3081
3091
  }
3082
3092
  }
3083
- return O[$] == null ? K ? O[$] === null ? new z("The " + Z + " `" + q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new z("The " + Z + " `" + q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : m(O, $, U, Z, q);
3093
+ return O[$] == null ? X ? O[$] === null ? new z("The " + Z + " `" + q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new z("The " + Z + " `" + q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : v(O, $, U, Z, q);
3084
3094
  }
3085
3095
  var I = W.bind(null, !1);
3086
3096
  return I.isRequired = W.bind(null, !0), I;
3087
3097
  }
3088
- function C(m) {
3089
- function P(V, W, I, K, O, $) {
3098
+ function C(v) {
3099
+ function P(V, W, I, X, O, $) {
3090
3100
  var U = V[W], Z = ae(U);
3091
- if (Z !== m) {
3101
+ if (Z !== v) {
3092
3102
  var q = Q(U);
3093
3103
  return new z(
3094
- "Invalid " + K + " `" + O + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("`" + m + "`."),
3095
- { expectedType: m }
3104
+ "Invalid " + X + " `" + O + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("`" + v + "`."),
3105
+ { expectedType: v }
3096
3106
  );
3097
3107
  }
3098
3108
  return null;
3099
3109
  }
3100
- return D(P);
3110
+ return A(P);
3101
3111
  }
3102
3112
  function j() {
3103
- return D(i);
3113
+ return A(c);
3104
3114
  }
3105
- function y(m) {
3106
- function P(V, W, I, K, O) {
3107
- if (typeof m != "function")
3115
+ function y(v) {
3116
+ function P(V, W, I, X, O) {
3117
+ if (typeof v != "function")
3108
3118
  return new z("Property `" + O + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
3109
3119
  var $ = V[W];
3110
3120
  if (!Array.isArray($)) {
3111
3121
  var U = ae($);
3112
- return new z("Invalid " + K + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected an array."));
3122
+ return new z("Invalid " + X + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected an array."));
3113
3123
  }
3114
3124
  for (var Z = 0; Z < $.length; Z++) {
3115
- var q = m($, Z, I, K, O + "[" + Z + "]", n);
3125
+ var q = v($, Z, I, X, O + "[" + Z + "]", n);
3116
3126
  if (q instanceof Error)
3117
3127
  return q;
3118
3128
  }
3119
3129
  return null;
3120
3130
  }
3121
- return D(P);
3131
+ return A(P);
3122
3132
  }
3123
3133
  function b() {
3124
- function m(P, V, W, I, K) {
3134
+ function v(P, V, W, I, X) {
3125
3135
  var O = P[V];
3126
3136
  if (!l(O)) {
3127
3137
  var $ = ae(O);
3128
- return new z("Invalid " + I + " `" + K + "` of type " + ("`" + $ + "` supplied to `" + W + "`, expected a single ReactElement."));
3138
+ return new z("Invalid " + I + " `" + X + "` of type " + ("`" + $ + "` supplied to `" + W + "`, expected a single ReactElement."));
3129
3139
  }
3130
3140
  return null;
3131
3141
  }
3132
- return D(m);
3142
+ return A(v);
3133
3143
  }
3134
3144
  function u() {
3135
- function m(P, V, W, I, K) {
3145
+ function v(P, V, W, I, X) {
3136
3146
  var O = P[V];
3137
3147
  if (!e.isValidElementType(O)) {
3138
3148
  var $ = ae(O);
3139
- return new z("Invalid " + I + " `" + K + "` of type " + ("`" + $ + "` supplied to `" + W + "`, expected a single ReactElement type."));
3149
+ return new z("Invalid " + I + " `" + X + "` of type " + ("`" + $ + "` supplied to `" + W + "`, expected a single ReactElement type."));
3140
3150
  }
3141
3151
  return null;
3142
3152
  }
3143
- return D(m);
3153
+ return A(v);
3144
3154
  }
3145
- function g(m) {
3146
- function P(V, W, I, K, O) {
3147
- if (!(V[W] instanceof m)) {
3148
- var $ = m.name || w, U = xe(V[W]);
3149
- return new z("Invalid " + K + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("instance of `" + $ + "`."));
3155
+ function g(v) {
3156
+ function P(V, W, I, X, O) {
3157
+ if (!(V[W] instanceof v)) {
3158
+ var $ = v.name || w, U = xe(V[W]);
3159
+ return new z("Invalid " + X + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("instance of `" + $ + "`."));
3150
3160
  }
3151
3161
  return null;
3152
3162
  }
3153
- return D(P);
3163
+ return A(P);
3154
3164
  }
3155
- function _(m) {
3156
- if (!Array.isArray(m))
3157
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? c(
3165
+ function _(v) {
3166
+ if (!Array.isArray(v))
3167
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
3158
3168
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
3159
- ) : c("Invalid argument supplied to oneOf, expected an array.")), i;
3160
- function P(V, W, I, K, O) {
3161
- for (var $ = V[W], U = 0; U < m.length; U++)
3162
- if (M($, m[U]))
3169
+ ) : i("Invalid argument supplied to oneOf, expected an array.")), c;
3170
+ function P(V, W, I, X, O) {
3171
+ for (var $ = V[W], U = 0; U < v.length; U++)
3172
+ if (M($, v[U]))
3163
3173
  return null;
3164
- var Z = JSON.stringify(m, function(fe, E) {
3174
+ var Z = JSON.stringify(v, function(fe, E) {
3165
3175
  var ve = Q(E);
3166
3176
  return ve === "symbol" ? String(E) : E;
3167
3177
  });
3168
- return new z("Invalid " + K + " `" + O + "` of value `" + String($) + "` " + ("supplied to `" + I + "`, expected one of " + Z + "."));
3178
+ return new z("Invalid " + X + " `" + O + "` of value `" + String($) + "` " + ("supplied to `" + I + "`, expected one of " + Z + "."));
3169
3179
  }
3170
- return D(P);
3180
+ return A(P);
3171
3181
  }
3172
- function x(m) {
3173
- function P(V, W, I, K, O) {
3174
- if (typeof m != "function")
3182
+ function x(v) {
3183
+ function P(V, W, I, X, O) {
3184
+ if (typeof v != "function")
3175
3185
  return new z("Property `" + O + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
3176
3186
  var $ = V[W], U = ae($);
3177
3187
  if (U !== "object")
3178
- return new z("Invalid " + K + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected an object."));
3188
+ return new z("Invalid " + X + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected an object."));
3179
3189
  for (var Z in $)
3180
3190
  if (s($, Z)) {
3181
- var q = m($, Z, I, K, O + "." + Z, n);
3191
+ var q = v($, Z, I, X, O + "." + Z, n);
3182
3192
  if (q instanceof Error)
3183
3193
  return q;
3184
3194
  }
3185
3195
  return null;
3186
3196
  }
3187
- return D(P);
3197
+ return A(P);
3188
3198
  }
3189
- function R(m) {
3190
- if (!Array.isArray(m))
3191
- return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOfType, expected an instance of array."), i;
3192
- for (var P = 0; P < m.length; P++) {
3193
- var V = m[P];
3199
+ function R(v) {
3200
+ if (!Array.isArray(v))
3201
+ return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
3202
+ for (var P = 0; P < v.length; P++) {
3203
+ var V = v[P];
3194
3204
  if (typeof V != "function")
3195
- return c(
3205
+ return i(
3196
3206
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + he(V) + " at index " + P + "."
3197
- ), i;
3207
+ ), c;
3198
3208
  }
3199
- function W(I, K, O, $, U) {
3200
- for (var Z = [], q = 0; q < m.length; q++) {
3201
- var fe = m[q], E = fe(I, K, O, $, U, n);
3209
+ function W(I, X, O, $, U) {
3210
+ for (var Z = [], q = 0; q < v.length; q++) {
3211
+ var fe = v[q], E = fe(I, X, O, $, U, n);
3202
3212
  if (E == null)
3203
3213
  return null;
3204
3214
  E.data && s(E.data, "expectedType") && Z.push(E.data.expectedType);
@@ -3206,83 +3216,83 @@ function Ns() {
3206
3216
  var ve = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
3207
3217
  return new z("Invalid " + $ + " `" + U + "` supplied to " + ("`" + O + "`" + ve + "."));
3208
3218
  }
3209
- return D(W);
3219
+ return A(W);
3210
3220
  }
3211
3221
  function F() {
3212
- function m(P, V, W, I, K) {
3213
- return X(P[V]) ? null : new z("Invalid " + I + " `" + K + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
3222
+ function v(P, V, W, I, X) {
3223
+ return K(P[V]) ? null : new z("Invalid " + I + " `" + X + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
3214
3224
  }
3215
- return D(m);
3225
+ return A(v);
3216
3226
  }
3217
- function A(m, P, V, W, I) {
3227
+ function D(v, P, V, W, I) {
3218
3228
  return new z(
3219
- (m || "React class") + ": " + P + " type `" + V + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
3229
+ (v || "React class") + ": " + P + " type `" + V + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
3220
3230
  );
3221
3231
  }
3222
- function N(m) {
3223
- function P(V, W, I, K, O) {
3232
+ function k(v) {
3233
+ function P(V, W, I, X, O) {
3224
3234
  var $ = V[W], U = ae($);
3225
3235
  if (U !== "object")
3226
- return new z("Invalid " + K + " `" + O + "` of type `" + U + "` " + ("supplied to `" + I + "`, expected `object`."));
3227
- for (var Z in m) {
3228
- var q = m[Z];
3236
+ return new z("Invalid " + X + " `" + O + "` of type `" + U + "` " + ("supplied to `" + I + "`, expected `object`."));
3237
+ for (var Z in v) {
3238
+ var q = v[Z];
3229
3239
  if (typeof q != "function")
3230
- return A(I, K, O, Z, Q(q));
3231
- var fe = q($, Z, I, K, O + "." + Z, n);
3240
+ return D(I, X, O, Z, Q(q));
3241
+ var fe = q($, Z, I, X, O + "." + Z, n);
3232
3242
  if (fe)
3233
3243
  return fe;
3234
3244
  }
3235
3245
  return null;
3236
3246
  }
3237
- return D(P);
3247
+ return A(P);
3238
3248
  }
3239
- function k(m) {
3240
- function P(V, W, I, K, O) {
3249
+ function N(v) {
3250
+ function P(V, W, I, X, O) {
3241
3251
  var $ = V[W], U = ae($);
3242
3252
  if (U !== "object")
3243
- return new z("Invalid " + K + " `" + O + "` of type `" + U + "` " + ("supplied to `" + I + "`, expected `object`."));
3244
- var Z = r({}, V[W], m);
3253
+ return new z("Invalid " + X + " `" + O + "` of type `" + U + "` " + ("supplied to `" + I + "`, expected `object`."));
3254
+ var Z = r({}, V[W], v);
3245
3255
  for (var q in Z) {
3246
- var fe = m[q];
3247
- if (s(m, q) && typeof fe != "function")
3248
- return A(I, K, O, q, Q(fe));
3256
+ var fe = v[q];
3257
+ if (s(v, q) && typeof fe != "function")
3258
+ return D(I, X, O, q, Q(fe));
3249
3259
  if (!fe)
3250
3260
  return new z(
3251
- "Invalid " + K + " `" + O + "` key `" + q + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(V[W], null, " ") + `
3252
- Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
3261
+ "Invalid " + X + " `" + O + "` key `" + q + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(V[W], null, " ") + `
3262
+ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
3253
3263
  );
3254
- var E = fe($, q, I, K, O + "." + q, n);
3264
+ var E = fe($, q, I, X, O + "." + q, n);
3255
3265
  if (E)
3256
3266
  return E;
3257
3267
  }
3258
3268
  return null;
3259
3269
  }
3260
- return D(P);
3270
+ return A(P);
3261
3271
  }
3262
- function X(m) {
3263
- switch (typeof m) {
3272
+ function K(v) {
3273
+ switch (typeof v) {
3264
3274
  case "number":
3265
3275
  case "string":
3266
3276
  case "undefined":
3267
3277
  return !0;
3268
3278
  case "boolean":
3269
- return !m;
3279
+ return !v;
3270
3280
  case "object":
3271
- if (Array.isArray(m))
3272
- return m.every(X);
3273
- if (m === null || l(m))
3281
+ if (Array.isArray(v))
3282
+ return v.every(K);
3283
+ if (v === null || l(v))
3274
3284
  return !0;
3275
- var P = p(m);
3285
+ var P = h(v);
3276
3286
  if (P) {
3277
- var V = P.call(m), W;
3278
- if (P !== m.entries) {
3287
+ var V = P.call(v), W;
3288
+ if (P !== v.entries) {
3279
3289
  for (; !(W = V.next()).done; )
3280
- if (!X(W.value))
3290
+ if (!K(W.value))
3281
3291
  return !1;
3282
3292
  } else
3283
3293
  for (; !(W = V.next()).done; ) {
3284
3294
  var I = W.value;
3285
- if (I && !X(I[1]))
3295
+ if (I && !K(I[1]))
3286
3296
  return !1;
3287
3297
  }
3288
3298
  } else
@@ -3292,27 +3302,27 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
3292
3302
  return !1;
3293
3303
  }
3294
3304
  }
3295
- function oe(m, P) {
3296
- return m === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1;
3305
+ function oe(v, P) {
3306
+ return v === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1;
3297
3307
  }
3298
- function ae(m) {
3299
- var P = typeof m;
3300
- return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : oe(P, m) ? "symbol" : P;
3308
+ function ae(v) {
3309
+ var P = typeof v;
3310
+ return Array.isArray(v) ? "array" : v instanceof RegExp ? "object" : oe(P, v) ? "symbol" : P;
3301
3311
  }
3302
- function Q(m) {
3303
- if (typeof m > "u" || m === null)
3304
- return "" + m;
3305
- var P = ae(m);
3312
+ function Q(v) {
3313
+ if (typeof v > "u" || v === null)
3314
+ return "" + v;
3315
+ var P = ae(v);
3306
3316
  if (P === "object") {
3307
- if (m instanceof Date)
3317
+ if (v instanceof Date)
3308
3318
  return "date";
3309
- if (m instanceof RegExp)
3319
+ if (v instanceof RegExp)
3310
3320
  return "regexp";
3311
3321
  }
3312
3322
  return P;
3313
3323
  }
3314
- function he(m) {
3315
- var P = Q(m);
3324
+ function he(v) {
3325
+ var P = Q(v);
3316
3326
  switch (P) {
3317
3327
  case "array":
3318
3328
  case "object":
@@ -3325,24 +3335,24 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
3325
3335
  return P;
3326
3336
  }
3327
3337
  }
3328
- function xe(m) {
3329
- return !m.constructor || !m.constructor.name ? w : m.constructor.name;
3338
+ function xe(v) {
3339
+ return !v.constructor || !v.constructor.name ? w : v.constructor.name;
3330
3340
  }
3331
3341
  return S.checkPropTypes = a, S.resetWarningCache = a.resetWarningCache, S.PropTypes = S, S;
3332
3342
  }, ht;
3333
3343
  }
3334
- var pt, lr;
3335
- function zs() {
3336
- if (lr) return pt;
3337
- lr = 1;
3344
+ var pt, ur;
3345
+ function Ds() {
3346
+ if (ur) return pt;
3347
+ ur = 1;
3338
3348
  var e = jt();
3339
3349
  function r() {
3340
3350
  }
3341
3351
  function n() {
3342
3352
  }
3343
3353
  return n.resetWarningCache = r, pt = function() {
3344
- function s(i, l, d, h, f, p) {
3345
- if (p !== e) {
3354
+ function s(c, l, d, p, f, h) {
3355
+ if (h !== e) {
3346
3356
  var w = new Error(
3347
3357
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
3348
3358
  );
@@ -3353,7 +3363,7 @@ function zs() {
3353
3363
  function a() {
3354
3364
  return s;
3355
3365
  }
3356
- var c = {
3366
+ var i = {
3357
3367
  array: s,
3358
3368
  bigint: s,
3359
3369
  bool: s,
@@ -3376,22 +3386,22 @@ function zs() {
3376
3386
  checkPropTypes: n,
3377
3387
  resetWarningCache: r
3378
3388
  };
3379
- return c.PropTypes = c, c;
3389
+ return i.PropTypes = i, i;
3380
3390
  }, pt;
3381
3391
  }
3382
3392
  if (process.env.NODE_ENV !== "production") {
3383
- var As = Ir(), Ds = !0;
3384
- gt.exports = Ns()(As.isElement, Ds);
3393
+ var Is = $r(), $s = !0;
3394
+ gt.exports = As()(Is.isElement, $s);
3385
3395
  } else
3386
- gt.exports = zs()();
3387
- var Is = gt.exports;
3388
- const G = /* @__PURE__ */ un(Is), $s = (e, r, n) => {
3396
+ gt.exports = Ds()();
3397
+ var Bs = gt.exports;
3398
+ const G = /* @__PURE__ */ dn(Bs), Hs = (e, r, n) => {
3389
3399
  const s = e[r];
3390
3400
  if (s && isNaN(Date.parse(s)))
3391
3401
  return new Error(
3392
3402
  `Invalid prop \`${r}\` supplied to \`${n}\`. Expected a valid date string (ISO 8601) but received \`${s}\`.`
3393
3403
  );
3394
- }, ur = (e, r, n) => {
3404
+ }, dr = (e, r, n) => {
3395
3405
  const s = e[r];
3396
3406
  try {
3397
3407
  new URL(s);
@@ -3401,88 +3411,89 @@ const G = /* @__PURE__ */ un(Is), $s = (e, r, n) => {
3401
3411
  `Invalid prop \`${r}\` supplied to \`${n}\`. Expected a valid URL but received \`${s}\`.`
3402
3412
  );
3403
3413
  }
3404
- }, Br = ({
3414
+ }, Hr = ({
3405
3415
  files: e,
3406
3416
  fileUploadConfig: r,
3407
3417
  isLoading: n,
3408
3418
  onCreateFolder: s,
3409
3419
  onFileUploading: a = () => {
3410
3420
  },
3411
- onFileUploaded: c = () => {
3421
+ onFileUploaded: i = () => {
3412
3422
  },
3413
- onCut: i,
3423
+ onCut: c,
3414
3424
  onCopy: l,
3415
3425
  onPaste: d,
3416
- onRename: h,
3426
+ onRename: p,
3417
3427
  onDownload: f,
3418
- onDelete: p = () => null,
3428
+ onDelete: h = () => null,
3419
3429
  onLayoutChange: w = () => {
3420
3430
  },
3421
3431
  onRefresh: S,
3422
3432
  onFileOpen: M = () => {
3423
3433
  },
3424
- onError: z = () => {
3434
+ onSelect: z,
3435
+ onError: A = () => {
3425
3436
  },
3426
- layout: D = "grid",
3427
- enableFilePreview: C = !0,
3428
- maxFileSize: j,
3429
- filePreviewPath: y,
3430
- acceptedFileTypes: b,
3431
- height: u = "600px",
3432
- width: g = "100%",
3433
- initialPath: _ = "",
3434
- filePreviewComponent: x,
3435
- primaryColor: R = "#6155b4",
3436
- fontFamily: F = "Nunito Sans, sans-serif"
3437
+ layout: C = "grid",
3438
+ enableFilePreview: j = !0,
3439
+ maxFileSize: y,
3440
+ filePreviewPath: b,
3441
+ acceptedFileTypes: u,
3442
+ height: g = "600px",
3443
+ width: _ = "100%",
3444
+ initialPath: x = "",
3445
+ filePreviewComponent: R,
3446
+ primaryColor: F = "#6155b4",
3447
+ fontFamily: D = "Nunito Sans, sans-serif"
3437
3448
  }) => {
3438
- const A = Ss(), { containerRef: N, colSizes: k, isDragging: X, handleMouseMove: oe, handleMouseUp: ae, handleMouseDown: Q } = Ms(20, 80), he = {
3439
- "--file-manager-font-family": F,
3440
- "--file-manager-primary-color": R,
3441
- height: u,
3442
- width: g
3449
+ const k = Ls(), { containerRef: N, colSizes: K, isDragging: oe, handleMouseMove: ae, handleMouseUp: Q, handleMouseDown: he } = Os(20, 80), xe = {
3450
+ "--file-manager-font-family": D,
3451
+ "--file-manager-primary-color": F,
3452
+ height: g,
3453
+ width: _
3443
3454
  };
3444
- return /* @__PURE__ */ t.jsxs("main", { className: "file-explorer", onContextMenu: (xe) => xe.preventDefault(), style: he, children: [
3455
+ return /* @__PURE__ */ t.jsxs("main", { className: "file-explorer", onContextMenu: (v) => v.preventDefault(), style: xe, children: [
3445
3456
  /* @__PURE__ */ t.jsx(xt, { loading: n }),
3446
- /* @__PURE__ */ t.jsx(Nn, { filesData: e, onError: z, children: /* @__PURE__ */ t.jsx(zn, { initialPath: _, children: /* @__PURE__ */ t.jsx(An, { onDownload: f, children: /* @__PURE__ */ t.jsx(Dn, { onPaste: d, onCut: i, onCopy: l, children: /* @__PURE__ */ t.jsxs(kn, { layout: D, children: [
3457
+ /* @__PURE__ */ t.jsx(zn, { filesData: e, onError: A, children: /* @__PURE__ */ t.jsx(Dn, { initialPath: x, children: /* @__PURE__ */ t.jsx(In, { onDownload: f, onSelect: z, children: /* @__PURE__ */ t.jsx($n, { onPaste: d, onCut: c, onCopy: l, children: /* @__PURE__ */ t.jsxs(_n, { layout: C, children: [
3447
3458
  /* @__PURE__ */ t.jsx(
3448
- Fr,
3459
+ Sr,
3449
3460
  {
3450
3461
  allowCreateFolder: !0,
3451
3462
  allowUploadFile: !0,
3452
3463
  onLayoutChange: w,
3453
3464
  onRefresh: S,
3454
- triggerAction: A
3465
+ triggerAction: k
3455
3466
  }
3456
3467
  ),
3457
3468
  /* @__PURE__ */ t.jsxs(
3458
3469
  "section",
3459
3470
  {
3460
3471
  ref: N,
3461
- onMouseMove: oe,
3462
- onMouseUp: ae,
3472
+ onMouseMove: ae,
3473
+ onMouseUp: Q,
3463
3474
  className: "files-container",
3464
3475
  children: [
3465
- /* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: k.col1 + "%" }, children: [
3466
- /* @__PURE__ */ t.jsx(Lr, {}),
3476
+ /* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: K.col1 + "%" }, children: [
3477
+ /* @__PURE__ */ t.jsx(Or, {}),
3467
3478
  /* @__PURE__ */ t.jsx(
3468
3479
  "div",
3469
3480
  {
3470
- className: `sidebar-resize ${X ? "sidebar-dragging" : ""}`,
3471
- onMouseDown: Q
3481
+ className: `sidebar-resize ${oe ? "sidebar-dragging" : ""}`,
3482
+ onMouseDown: he
3472
3483
  }
3473
3484
  )
3474
3485
  ] }),
3475
- /* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: k.col2 + "%" }, children: [
3476
- /* @__PURE__ */ t.jsx(Or, {}),
3486
+ /* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: K.col2 + "%" }, children: [
3487
+ /* @__PURE__ */ t.jsx(kr, {}),
3477
3488
  /* @__PURE__ */ t.jsx(
3478
- Dr,
3489
+ Ir,
3479
3490
  {
3480
3491
  onCreateFolder: s,
3481
- onRename: h,
3492
+ onRename: p,
3482
3493
  onFileOpen: M,
3483
3494
  onRefresh: S,
3484
- enableFilePreview: C,
3485
- triggerAction: A
3495
+ enableFilePreview: j,
3496
+ triggerAction: k
3486
3497
  }
3487
3498
  )
3488
3499
  ] })
@@ -3490,36 +3501,36 @@ const G = /* @__PURE__ */ un(Is), $s = (e, r, n) => {
3490
3501
  }
3491
3502
  ),
3492
3503
  /* @__PURE__ */ t.jsx(
3493
- Fs,
3504
+ Ms,
3494
3505
  {
3495
3506
  fileUploadConfig: r,
3496
3507
  onFileUploading: a,
3497
- onFileUploaded: c,
3498
- onDelete: p,
3508
+ onFileUploaded: i,
3509
+ onDelete: h,
3499
3510
  onRefresh: S,
3500
- maxFileSize: j,
3501
- filePreviewPath: y,
3502
- filePreviewComponent: x,
3503
- acceptedFileTypes: b,
3504
- triggerAction: A
3511
+ maxFileSize: y,
3512
+ filePreviewPath: b,
3513
+ filePreviewComponent: R,
3514
+ acceptedFileTypes: u,
3515
+ triggerAction: k
3505
3516
  }
3506
3517
  )
3507
3518
  ] }) }) }) }) })
3508
3519
  ] });
3509
3520
  };
3510
- Br.displayName = "FileManager";
3511
- Br.propTypes = {
3521
+ Hr.displayName = "FileManager";
3522
+ Hr.propTypes = {
3512
3523
  files: G.arrayOf(
3513
3524
  G.shape({
3514
3525
  name: G.string.isRequired,
3515
3526
  isDirectory: G.bool.isRequired,
3516
3527
  path: G.string.isRequired,
3517
- updatedAt: $s,
3528
+ updatedAt: Hs,
3518
3529
  size: G.number
3519
3530
  })
3520
3531
  ).isRequired,
3521
3532
  fileUploadConfig: G.shape({
3522
- url: ur,
3533
+ url: dr,
3523
3534
  headers: G.objectOf(G.string)
3524
3535
  }),
3525
3536
  isLoading: G.bool,
@@ -3535,11 +3546,12 @@ Br.propTypes = {
3535
3546
  onLayoutChange: G.func,
3536
3547
  onRefresh: G.func,
3537
3548
  onFileOpen: G.func,
3549
+ onSelect: G.func,
3538
3550
  onError: G.func,
3539
3551
  layout: G.oneOf(["grid", "list"]),
3540
3552
  maxFileSize: G.number,
3541
3553
  enableFilePreview: G.bool,
3542
- filePreviewPath: ur,
3554
+ filePreviewPath: dr,
3543
3555
  acceptedFileTypes: G.string,
3544
3556
  height: G.oneOfType([G.string, G.number]),
3545
3557
  width: G.oneOfType([G.string, G.number]),
@@ -3549,5 +3561,5 @@ Br.propTypes = {
3549
3561
  fontFamily: G.string
3550
3562
  };
3551
3563
  export {
3552
- Br as FileManager
3564
+ Hr as FileManager
3553
3565
  };